Created
March 29, 2019 20:47
-
-
Save erwinmombay/cfb863a566daaadb7ac700274fe1a3f7 to your computer and use it in GitHub Desktop.
parse times
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var global=self;self.AMP=self.AMP||[];try{(function(_){ | |
| var F,AA="function"==typeof Object.create?Object.create:function(A){function B(){}B.prototype=A;return new B},CA;if("function"==typeof Object.setPrototypeOf)CA=Object.setPrototypeOf;else{var EA;A:{var GA={a:!0},HA={};try{HA.__proto__=GA;EA=HA.a;break A}catch(A){}EA=!1}CA=EA?function(A,B){A.__proto__=B;if(A.__proto__!==B)throw new TypeError(A+" is not extensible");return A}:null}var IA=CA; | |
| function LA(A,B){A.prototype=AA(B.prototype);A.prototype.constructor=A;if(IA)IA(A,B);else for(var C in B)if("prototype"!=C)if(Object.defineProperties){var D=Object.getOwnPropertyDescriptor(B,C);D&&Object.defineProperty(A,C,D)}else A[C]=B[C];A.JP=B.prototype}var NA=function(A){return"undefined"!=typeof window&&window===A?A:"undefined"!=typeof global&&null!=global?global:A}(this);function PA(A,B){B=void 0===B?"":B;try{return decodeURIComponent(A)}catch(C){return B}};var QA=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function RA(A){var B=Object.create(null);if(!A)return B;for(var C;C=QA.exec(A);){var D=PA(C[1],C[1]),E=C[2]?PA(C[2],C[2]):"";B[D]=E}return B};var SA=""; | |
| function N(A){var B=A||self;if(B.AMP_MODE)var C=B.AMP_MODE;else{C=B;var D=self.AMP_CONFIG||{},E=!!D.test||!1,G=RA(C.location.originalHash||C.location.hash);D=D.spt;var H=RA(C.location.search);SA||(SA=C.AMP_CONFIG&&C.AMP_CONFIG.v?C.AMP_CONFIG.v:"011903251702181");C=B.AMP_MODE={localDev:!1,development:!("1"!=G.development&&!C.AMP_DEV_MODE),examiner:"2"==G.development,filter:G.filter,geoOverride:G["amp-geo"],minified:!0,lite:void 0!=H.amp_lite,test:E,log:G.log,version:"1903251702181",rtvVersion:SA, | |
| singlePassType:D}}return C};function TA(A,B){var C=B||0,D=this.length;for(B=0<=C?C:Math.max(D+C,0);B<D;B++){var E=this[B];if(E===A||A!==A&&E!==E)return!0}return!1};function UA(A,B){var C=void 0===B?this.contains(A):!B;if(C)return this.remove(A),!1;this.add(A);return!0}function XA(A){/Trident|MSIE|IEMobile/i.test(A.navigator.userAgent)&&A.DOMTokenList&&A.Object.defineProperty(A.DOMTokenList.prototype,"toggle",{enumerable:!1,configurable:!0,writable:!0,value:UA})};function YA(A){return A==this||this.documentElement.contains(A)}function ZA(A){var B=A.HTMLDocument||A.Document;B.prototype.contains||A.Object.defineProperty(B.prototype,"contains",{enumerable:!1,configurable:!0,writable:!0,value:YA})};var $A=Object.prototype.toString;function CB(A){return Array.isArray(A)}function EB(A){return"[object Object]"===$A.call(A)}function GB(A){return"number"===typeof A&&isFinite(A)};function IB(A){return 0<=A.indexOf("\u200b\u200b\u200b")}var JB=void 0;function KB(A){JB=A}function LB(A,B,C){this.win=A;this.UN=B;this.VN=this.win.console&&this.win.console.log&&"0"!=N().log?this.UN({localDev:!1,development:N(void 0).development,filter:N(void 0).filter,minified:!0,lite:N(void 0).lite,test:!1,log:N(void 0).log,version:N(void 0).version,rtvVersion:N(void 0).rtvVersion,singlePassType:N(void 0).singlePassType}):0;this.NF=C||""}function MB(A){return void 0!==JB?JB:A.VN} | |
| function NB(A,B,C){if(0!=MB(A)){var D=A.win.console.log;"ERROR"==B?D=A.win.console.error||D:"INFO"==B?D=A.win.console.info||D:"WARN"==B&&(D=A.win.console.warn||D);D.apply(A.win.console,C)}}F=LB.prototype;F.isEnabled=function(){return 0!=MB(this)};F.fine=function(A,B){4<=MB(this)&&NB(this,"FINE",Array.prototype.slice.call(arguments,1))};F.info=function(A,B){3<=MB(this)&&NB(this,"INFO",Array.prototype.slice.call(arguments,1))}; | |
| F.warn=function(A,B){2<=MB(this)&&NB(this,"WARN",Array.prototype.slice.call(arguments,1))};F.GB=function(A,B){if(1<=MB(this))NB(this,"ERROR",Array.prototype.slice.call(arguments,1));else{var C=OB.apply(null,Array.prototype.slice.call(arguments,1));RB(this,C);return C}};F.error=function(A,B){var C=this.GB.apply(this,arguments);C&&(C.name=A||C.name,self.reportError(C))};F.expectedError=function(A,B){var C=this.GB.apply(this,arguments);C&&(C.expected=!0,self.reportError(C))}; | |
| F.createError=function(A){var B=OB.apply(null,arguments);RB(this,B);return B};F.createExpectedError=function(A){var B=OB.apply(null,arguments);RB(this,B);B.expected=!0;return B}; | |
| F.assert=function(A,B,C){var D;if(!A){var E=(B||"Assertion failed").split("%s"),G=E.shift(),H=G,I=[],J=2;for(""!=G&&I.push(G);0<E.length;){var K=E.shift(),L=arguments[J++];L&&L.tagName&&(D=L);I.push(L);G=K.trim();""!=G&&I.push(G);G=L;H+=(G&&1==G.nodeType?G.tagName.toLowerCase()+(G.id?"#"+G.id:""):G)+K}J=Error(H);J.fromAssert=!0;J.associatedElement=D;J.messageArray=I;RB(this,J);self.reportError(J);throw J;}return A}; | |
| F.assertElement=function(A,B){this.assert(A&&1==A.nodeType,(B||"Element expected")+": %s",A);return A};F.assertString=function(A,B){this.assert("string"==typeof A,(B||"String expected")+": %s",A);return A};F.assertNumber=function(A,B){this.assert("number"==typeof A,(B||"Number expected")+": %s",A);return A};F.assertArray=function(A,B){this.assert(Array.isArray(A),(B||"Array expected")+": %s",A);return A};F.assertBoolean=function(A,B){this.assert(!!A===A,(B||"Boolean expected")+": %s",A);return A}; | |
| F.assertEnumValue=function(A,B,C){A:{for(var D in A)if(A[D]===B){A=!0;break A}A=!1}if(A)return B;this.assert(!1,'Unknown %s value: "%s"',C||"enum",B)};function RB(A,B){B=SB(B);A.NF?B.message?-1==B.message.indexOf(A.NF)&&(B.message+=A.NF):B.message=A.NF:IB(B.message)&&(B.message=B.message.replace("\u200b\u200b\u200b",""))}function SB(A){var B=Object.getOwnPropertyDescriptor(A,"message");if(B&&B.writable)return A;var C=A.stack,D=Error(A.message),E;for(E in A)D[E]=A[E];D.stack=C;return D} | |
| function OB(A){for(var B=null,C="",D=0;D<arguments.length;D++){var E=arguments[D];E instanceof Error&&!B?B=SB(E):(C&&(C+=" "),C+=E)}B?C&&(B.message=C+": "+B.message):B=Error(C);return B}function TB(A){var B=OB.apply(null,arguments);setTimeout(function(){self.reportError(B);throw B;})}self.log=self.log||{user:null,dev:null,userForEmbed:null};var UB=self.log,VB=null; | |
| function O(A){UB.user||(UB.user=WB("\u200b\u200b\u200b"));var B=UB.user.win;return A&&A.ownerDocument.defaultView!=B?UB.userForEmbed?UB.userForEmbed:UB.userForEmbed=WB("\u200b\u200b\u200b\u200b"):UB.user}function WB(A){if(!VB)throw Error("failed to call initLogConstructor");return new VB(self,function(A){var B=parseInt(A.log,10);return A.development||1<=B?4:2},A)} | |
| function S(){if(UB.dev)return UB.dev;if(!VB)throw Error("failed to call initLogConstructor");return UB.dev=new VB(self,function(A){A=parseInt(A.log,10);return 3<=A?4:2<=A?3:0})}function T(A,B,C,D,E,G){return O().assert(A,B,C,D,E,G,void 0,void 0,void 0,void 0,void 0)};var YB=Object.prototype.hasOwnProperty;function ZB(A){var B=Object.create(null);A&&Object.assign(B,A);return B}function $B(A){return A||{}};function AC(){var A,B;this.promise=new Promise(function(C,D){A=C;B=D});this.resolve=A;this.reject=B}function BC(A){return new Promise(function(B){B(A())})};/* | |
| https://mths.be/cssescape v1.5.1 by @mathias | MIT license */ | |
| var CC=/(\0)|^(-)$|([\x01-\x1f\x7f]|^-?[0-9])|([\x80-\uffff0-9a-zA-Z_-]+)|[^]/g;function DC(A,B,C,D,E){return E?E:B?"\ufffd":D?A.slice(0,-1)+"\\"+A.slice(-1).charCodeAt(0).toString(16)+" ":"\\"+A};var GC;function HC(A){try{var B=A.ownerDocument,C=B.createElement("div"),D=B.createElement("div");C.appendChild(D);return C.querySelector(":scope div")===D}catch(E){return!1}};function IC(A){return"loading"!=A.readyState&&"uninitialized"!=A.readyState}function JC(A){return"complete"==A.readyState}function KC(A,B){LC(A,IC,B)}function LC(A,B,C){var D=B(A);if(D)C(A);else{var E=function(){B(A)&&(D||(D=!0,C(A)),A.removeEventListener("readystatechange",E))};A.addEventListener("readystatechange",E)}}function MC(A){return new Promise(function(B){KC(A,B)})}function NC(A){return new Promise(function(B){LC(A,JC,B)})};function RC(A,B){var C=A.length-B.length;return 0<=C&&A.indexOf(B,C)==C}function SC(A,B){return B.length>A.length?!1:0==A.lastIndexOf(B,0)};function TC(A,B,C){if(B(A))C();else{var D=A.ownerDocument.defaultView;if(D.MutationObserver){var E=new D.MutationObserver(function(){B(A)&&(E.disconnect(),C())});E.observe(A,{childList:!0})}else var G=D.setInterval(function(){B(A)&&(D.clearInterval(G),C())},5)}}function UC(A,B){TC(A.documentElement,function(){return!!A.body},B)}function VC(A,B){KC(A,function(){return UC(A,B)})}function WC(A){return new Promise(function(B){return VC(A,B)})} | |
| function XC(A){var B=A.isConnected;if(void 0!==B)return B;do if(A=YC(A),A.host)A=A.host;else break;while(1);return A.nodeType===Node.DOCUMENT_NODE}function YC(A){if(Node.prototype.getRootNode)return A.getRootNode()||A;for(;A.parentNode;A=A.parentNode);return A}function ZC(A,B){for(var C;A&&A!==C;A=A.parentElement)if(B(A))return A;return null}function $C(A,B){for(;A;A=A.parentNode)if(B(A))return A;return null}function AD(A,B){return A.closest?A.closest(B):ZC(A,function(A){return BD(A,B)})} | |
| function CD(A,B){var C=[];for(A=A.firstElementChild;A;A=A.nextElementSibling)B(A)&&C.push(A);return C}function JD(A,B){for(A=A.lastElementChild;A;A=A.previousElementSibling)if(B(A))return A;return null}function KD(A,B){var C=[];for(A=A.firstChild;A;A=A.nextSibling)B(A)&&C.push(A);return C}function LD(A,B){/^[\w-]+$/.test(B);return MD(A,"> ["+B+"]")}function BD(A,B){var C=A.matches||A.webkitMatchesSelector||A.mozMatchesSelector||A.msMatchesSelector||A.oMatchesSelector;return C?C.call(A,B):!1} | |
| function ND(A,B){var C="i-amphtml-scoped";A.classList.add(C);var D=B.replace(/^|,/g,"$&."+C+" "),E=A.querySelectorAll(D);A.classList.remove(C);return E}function MD(A,B){if(void 0!==GC?GC:GC=HC(A))return A.querySelector(B.replace(/^|,/g,"$&:scope "));var C=ND(A,B);return void 0===C[0]?null:C[0]}function OD(A,B,C,D){try{var E=A.open(B,C,D)}catch(G){S().error("DOM","Failed to open url on target: ",C,G)}E||"_top"==C||(E=A.open(B,"_top"));return E}function PD(A){try{A.focus()}catch(B){}} | |
| function QD(A){return A.parent&&A.parent!=A}var RD=Node.DOCUMENT_POSITION_PRECEDING|Node.DOCUMENT_POSITION_CONTAINS;function SD(A){var B=Object.create(null),C;for(C in A)if(TD(A,C)){var D=A[C];B[C]=EB(D)?SD(D):D}return B}function UD(A){return JSON.parse(A)}function TD(A,B){return null==A||"object"!=typeof A?!1:Object.prototype.hasOwnProperty.call(A,B)};function VD(A){return"undefined"!==typeof TextEncoder?(new TextEncoder("utf-8")).encode(A):DE(unescape(encodeURIComponent(A)))}function DE(A){for(var B=new Uint8Array(A.length),C=0;C<A.length;C++){var D=A.charCodeAt(C);B[C]=D}return B}function EE(A){for(var B=Array(A.length),C=0;C<A.length;C++)B[C]=String.fromCharCode(A[C]);return B.join("")};var FE={document:1,text:2},GE=["GET","POST"]; | |
| function HE(A,B){B=void 0===B?{}:B;return new Promise(function(C,D){var E=IE(B.method||"GET"),G=JE(E,A);"include"==B.credentials&&(G.withCredentials=!0);B.responseType in FE&&(G.responseType=B.responseType);B.headers&&Object.keys(B.headers).forEach(function(A){G.setRequestHeader(A,B.headers[A])});G.onreadystatechange=function(){2>G.readyState||(100>G.status||599<G.status?(G.onreadystatechange=null,D(O().createExpectedError("Unknown HTTP status "+G.status))):4==G.readyState&&C(new KE(G)))};G.onerror= | |
| function(){D(O().createExpectedError("Network failure"))};G.onabort=function(){D(O().createExpectedError("Request aborted"))};"POST"==E?G.send(B.body):G.send()})}function JE(A,B){var C=new XMLHttpRequest;if("withCredentials"in C)C.open(A,B,!0);else throw S().createExpectedError("CORS is not supported");return C}function KE(A){this.AC=A;this.status=this.AC.status;this.statusText=this.AC.statusText;this.ok=200<=this.status&&300>this.status;this.headers=new LE(A);this.bodyUsed=!1;this.body=null} | |
| KE.prototype.clone=function(){return new KE(this.AC)};function ME(A){A.bodyUsed=!0;return Promise.resolve(A.AC.responseText)}KE.prototype.text=function(){return ME(this)};KE.prototype.json=function(){return ME(this).then(UD)};KE.prototype.arrayBuffer=function(){return ME(this).then(VD)};function IE(A){if(void 0===A)return"GET";A=A.toUpperCase();GE.includes(A);return A}function LE(A){this.AC=A}LE.prototype.get=function(A){return this.AC.getResponseHeader(A)}; | |
| LE.prototype.has=function(A){return null!=this.AC.getResponseHeader(A)}; | |
| function NE(A,B){B=void 0===B?{}:B;var C=ZB();A=Object.assign({status:200,statusText:"OK",responseText:A?String(A):"",getResponseHeader:function(A){var B=String(A).toLowerCase();return YB.call(C,B)?C[B]:null}},B);A.status=void 0===B.status?200:parseInt(B.status,10);if(CB(B.headers))B.headers.forEach(function(A){var B=A[1];C[String(A[0]).toLowerCase()]=String(B)});else if(EB(B.headers))for(var D in B.headers)C[String(D).toLowerCase()]=String(B.headers[D]);B.statusText&&(A.statusText=String(B.statusText)); | |
| KE.call(this,A)}LA(NE,KE);function OE(A,B,C,D){return{left:A,top:B,width:C,height:D,bottom:B+D,right:A+C,x:A,y:B}}function PE(A){for(var B=-Infinity,C=Infinity,D=-Infinity,E=Infinity,G=0;G<arguments.length;G++){var H=arguments[G];if(H&&(B=Math.max(B,H.left),C=Math.min(C,H.left+H.width),D=Math.max(D,H.top),E=Math.min(E,H.top+H.height),C<B||E<D))return null}return Infinity==C?null:OE(B,D,C-B,E-D)}function QE(A,B,C){return OE(A.left-A.width*B,A.top-A.height*C,A.width*(1+2*B),A.height*(1+2*C))} | |
| function RE(A,B,C){return 0==B&&0==C||0==A.width&&0==A.height?A:OE(A.left+B,A.top+C,A.width,A.height)};var SE=Element.prototype.getBoundingClientRect;function TE(){return XC(this)?SE.call(this):OE(0,0,0,0)};function UE(A){return(A=Number(A))?0<A?1:-1:A};var VE=Object.prototype.hasOwnProperty;function WE(A,B){if(null==A)throw new TypeError("Cannot convert undefined or null to object");for(var C=Object(A),D=1;D<arguments.length;D++){var E=arguments[D];if(null!=E)for(var G in E)VE.call(E,G)&&(C[G]=E[G])}return C};function XE(A){return Object.keys(A).map(function(B){return A[B]})};function YE(A){if(!(this instanceof YE))throw new TypeError("Constructor Promise requires `new`");if(!ZE(A))throw new TypeError("Must pass resolver function");this._state=$E;this._value=[];this._isChainEnd=!0;AF(this,BF(this,CF),BF(this,DF),{then:A})}YE.prototype.then=function(A,B){A=ZE(A)?A:void 0;B=ZE(B)?B:void 0;if(A||B)this._isChainEnd=!1;return this._state(this._value,A,B)};YE.prototype.catch=function(A){return this.then(void 0,A)}; | |
| function EF(A){var B=this;return A===Object(A)&&A instanceof this?A:new B(function(B){B(A)})}function FF(A){return new this(function(B,C){C(A)})}function GF(A){var B=this;return new B(function(C,D){var E=A.length,G=Array(E);if(0===E)return C(G);HF(A,function(A,I){B.resolve(A).then(function(A){G[I]=A;0===--E&&C(G)},D)})})}function IF(A){var B=this;return new B(function(C,D){for(var E=0;E<A.length;E++)B.resolve(A[E]).then(C,D)})} | |
| function CF(A,B,C,D){if(!B)return D&&(B=D.promise,B._state=CF,B._value=A),this;D||(D=new JF(this.constructor));KF(LF(D,B,A));return D.promise}function DF(A,B,C,D){if(!C)return D&&(B=D.promise,B._state=DF,B._value=A),this;D||(D=new JF(this.constructor));KF(LF(D,C,A));return D.promise}function $E(A,B,C,D){if(!D){if(!B&&!C)return this;D=new JF(this.constructor)}A.push({deferred:D,onFulfilled:B||D.resolve,onRejected:C||D.reject});return D.promise} | |
| function JF(A){var B=this;this.promise=new A(function(A,D){B.resolve=A;B.reject=D});return B}function MF(A,B,C,D){var E=A._value;A._state=B;A._value=C;D&&B===$E&&D._state(C,void 0,void 0,{promise:A,resolve:void 0,reject:void 0});for(var G=0;G<E.length;G++){var H=E[G];A._state(C,H.onFulfilled,H.onRejected,H.deferred)}E.length=0;B===DF&&A._isChainEnd&&setTimeout(function(){if(A._isChainEnd)throw C;},0)}function BF(A,B){return function(C){MF(A,B,C)}}function NF(){} | |
| function ZE(A){return"function"===typeof A}function HF(A,B){for(var C=0;C<A.length;C++)B(A[C],C)}function LF(A,B,C){var D=A.promise,E=A.resolve,G=A.reject;return function(){try{var A=B(C);AF(D,E,G,A,A)}catch(I){G(I)}}} | |
| var KF=function(){function A(){for(var A=0;A<E;A++){var B=D[A];D[A]=null;B()}E=0}function B(A){0===E&&C();D[E++]=A}if("undefined"!==typeof window&&window.postMessage){window.addEventListener("message",A);var C=function(){window.postMessage("macro-task","*")}}else C=function(){setTimeout(A,0)};var D=Array(16),E=0;return B}(); | |
| function AF(A,B,C,D,E){var G=C,H;try{if(D===A)throw new TypeError("Cannot fulfill promise with itself");var I=D===Object(D);if(I&&D instanceof A.constructor)MF(A,D._state,D._value,D);else if(I&&(H=D.then)&&ZE(H)){var J=function(D){J=G=NF;AF(A,B,C,D,D)};G=function(A){J=G=NF;C(A)};H.call(E,function(A){J(A)},function(A){G(A)})}else B(D)}catch(K){G(K)}};/* | |
| Copyright (C) 2014-2016 by Andrea Giammarchi - @WebReflection | |
| Use of this source code is governed by a MIT-style | |
| license that can be found in the LICENSE file or at | |
| https://opensource.org/licenses/MIT. | |
| */ | |
| function OF(A){function B(A){return A.toLowerCase()}var C="auto";function D(){var A=TF.splice(0,TF.length);for(UF=0;A.length;)A.shift().call(null,A.shift())}function E(A,B){for(var C=0,D=A.length;C<D;C++)FA(A[C],B)}function G(A){for(var B=0,C=A.length,D;B<C;B++)D=A[B],WF(D,WD[I(D)])}function H(A){return function(B){QU(B)&&(FA(B,A),DB.length&&E(B.querySelectorAll(DB),A))}}function I(A){var B=DD.call(A,"is"),C=A.nodeName.toUpperCase();A=PB.call(OC,B?XF+B.toUpperCase():XD+C);return B&&-1<A&&!J(C,B)? | |
| -1:A}function J(A,B){return-1<DB.indexOf(A+'[is="'+B+'"]')}function K(A){var B=A.currentTarget,C=A.attrChange,D=A.attrName,E=A.target,G=A[YF]||2,H=A[$H]||3;if(ZF&&(!E||E===B)&&B[EC]&&"style"!==D&&(A.prevValue!==A.newValue||""===A.newValue&&(C===G||C===H)))B[EC](D,C===G?null:A.prevValue,C===H?null:A.newValue)}function L(A){var B=H(A);return function(A){TF.push(B,A.target);UF&&clearTimeout(UF);UF=setTimeout(D,1)}}function M(A){JM&&(JM=!1,A.currentTarget.removeEventListener(KM,M));DB.length&&E((A.target|| | |
| V).querySelectorAll(DB),A.detail===QB?QB:HB);ED&&R()}function P(A,B){LM.call(this,A,B);MM.call(this,{target:this})}function Q(A,B){RU(A,B);$F?$F.observe(A,SU):(AG&&(A.setAttribute=P,A[AB]=NM(A),A[BB](TU,MM)),A[BB](PC,K));A[YD]&&ZF&&(A.created=!0,A[YD](),A.created=!1)}function R(){for(var A,B=0,C=ZD.length;B<C;B++)A=ZD[B],FD.contains(A)||(C--,ZD.splice(B--,1),FA(A,QB))}function Z(A){throw Error("A "+A+" type is already registered");}function FA(A,B){var C,D=I(A);-1<D&&(OM(A,WD[D]),D=0,B!==HB||A[HB]? | |
| B!==QB||A[QB]||(A[HB]=!1,A[QB]=!0,D=1):(A[QB]=!1,A[HB]=!0,D=1,ED&&0>PB.call(ZD,A)&&ZD.push(A)),D&&(C=A[B+QC])&&C.call(A))}function JA(){}function KA(A,C,D){D=D&&D[$D]||"";var E=C.prototype,G=AI(E),H=C.observedAttributes||BI,I={prototype:G};BG(G,YD,{value:function(){if(CG)CG=!1;else if(!this[AE]){this[AE]=!0;new C(this);E[YD]&&E[YD].call(this);var A=BE[DG.get(C)];(!GD||1<A.create.length)&&X(this)}}});BG(G,EC,{value:function(A){-1<PB.call(H,A)&&E[EC].apply(this,arguments)}});E[PM]&&BG(G,UU,{value:E[PM]}); | |
| E[QM]&&BG(G,VU,{value:E[QM]});D&&(I[$D]=D);A=A.toUpperCase();BE[A]={constructor:C,create:D?[D,B(A)]:[A]};DG.set(C,A);V[BA](A.toLowerCase(),I);OA(A);HD[A].r()}function VA(A){return(A=BE[A.toUpperCase()])&&A.constructor}function DA(A){return"string"===typeof A?A:A&&A.is||""}function X(A){for(var B=A[EC],C=B?A.attributes:BI,D=C.length,E;D--;)E=C[D],B.call(A,E.name||E.nodeName,null,E.value||E.nodeValue)}function OA(A){A=A.toUpperCase();A in HD||(HD[A]={},HD[A].p=new RM(function(B){HD[A].r=B}));return HD[A].p} | |
| function FC(){function C(B){var C=A[B];if(C){A[B]=function(A){var B;A||(A=this);A[AE]||(CG=!0,A=BE[DG.get(A.constructor)],A=(B=GD&&1===A.create.length)?Reflect.construct(C,BI,A.constructor):V.createElement.apply(V,A.create),A[AE]=!0,CG=!1,B||X(A));return A};A[B].prototype=C.prototype;try{C.prototype.constructor=A[B]}catch(G0){ID(C,AE,{value:A[B]})}}}XB&&delete A.customElements;ID(A,"customElements",{configurable:!0,value:new JA});ID(A,"CustomElementRegistry",{configurable:!0,value:JA});for(var D= | |
| EG.get(/^HTML[A-Z]*[a-z]/),E=D.length;E--;C(D[E]));V.createElement=function(A,C){return(C=DA(C))?CI.call(this,A,B(C)):CI.call(this,A)};SM||(DI=!0,V[BA](""))}var V=A.document,MA=A.Object,EG=function(A){function B(A,B){B=B.toLowerCase();B in E||(E[A]=(E[A]||[]).concat(B),E[B]=E[B.toUpperCase()]=A)}function C(A){var B=[],C;for(C in E)A.test(C)&&B.push(C);return B}var D=/^[A-Z]+[a-z]/,E=(MA.create||MA)(null),G={},H,I,J;for(I in A)for(J in A[I]){var K=A[I][J];E[J]=K;for(H=0;H<K.length;H++)E[K[H].toLowerCase()]= | |
| E[K[H].toUpperCase()]=J}G.get=function(A){return"string"===typeof A?E[A]||(D.test(A)?[]:""):C(A)};G.set=function(A,C){return D.test(A)?B(A,C):B(C,A),G};return G}({collections:{HTMLAllCollection:["all"],HTMLCollection:["forms"],HTMLFormControlsCollection:["elements"],HTMLOptionsCollection:["options"]},elements:{Element:["element"],HTMLAnchorElement:["a"],HTMLAppletElement:["applet"],HTMLAreaElement:["area"],HTMLAttachmentElement:["attachment"],HTMLAudioElement:["audio"],HTMLBRElement:["br"],HTMLBaseElement:["base"], | |
| HTMLBodyElement:["body"],HTMLButtonElement:["button"],HTMLCanvasElement:["canvas"],HTMLContentElement:["content"],HTMLDListElement:["dl"],HTMLDataElement:["data"],HTMLDataListElement:["datalist"],HTMLDetailsElement:["details"],HTMLDialogElement:["dialog"],HTMLDirectoryElement:["dir"],HTMLDivElement:["div"],HTMLDocument:["document"],HTMLElement:"element abbr address article aside b bdi bdo cite code command dd dfn dt em figcaption figure footer header i kbd mark nav noscript rp rt ruby s samp section small strong sub summary sup u var wbr".split(" "), | |
| HTMLEmbedElement:["embed"],HTMLFieldSetElement:["fieldset"],HTMLFontElement:["font"],HTMLFormElement:["form"],HTMLFrameElement:["frame"],HTMLFrameSetElement:["frameset"],HTMLHRElement:["hr"],HTMLHeadElement:["head"],HTMLHeadingElement:"h1 h2 h3 h4 h5 h6".split(" "),HTMLHtmlElement:["html"],HTMLIFrameElement:["iframe"],HTMLImageElement:["img"],HTMLInputElement:["input"],HTMLKeygenElement:["keygen"],HTMLLIElement:["li"],HTMLLabelElement:["label"],HTMLLegendElement:["legend"],HTMLLinkElement:["link"], | |
| HTMLMapElement:["map"],HTMLMarqueeElement:["marquee"],HTMLMediaElement:["media"],HTMLMenuElement:["menu"],HTMLMenuItemElement:["menuitem"],HTMLMetaElement:["meta"],HTMLMeterElement:["meter"],HTMLModElement:["del","ins"],HTMLOListElement:["ol"],HTMLObjectElement:["object"],HTMLOptGroupElement:["optgroup"],HTMLOptionElement:["option"],HTMLOutputElement:["output"],HTMLParagraphElement:["p"],HTMLParamElement:["param"],HTMLPictureElement:["picture"],HTMLPreElement:["pre"],HTMLProgressElement:["progress"], | |
| HTMLQuoteElement:["blockquote","q","quote"],HTMLScriptElement:["script"],HTMLSelectElement:["select"],HTMLShadowElement:["shadow"],HTMLSlotElement:["slot"],HTMLSourceElement:["source"],HTMLSpanElement:["span"],HTMLStyleElement:["style"],HTMLTableCaptionElement:["caption"],HTMLTableCellElement:["td","th"],HTMLTableColElement:["col","colgroup"],HTMLTableElement:["table"],HTMLTableRowElement:["tr"],HTMLTableSectionElement:["thead","tbody","tfoot"],HTMLTemplateElement:["template"],HTMLTextAreaElement:["textarea"], | |
| HTMLTimeElement:["time"],HTMLTitleElement:["title"],HTMLTrackElement:["track"],HTMLUListElement:["ul"],HTMLUnknownElement:["unknown","vhgroupv","vkeygen"],HTMLVideoElement:["video"]},nodes:{Attr:["node"],Audio:["audio"],CDATASection:["node"],CharacterData:["node"],Comment:["#comment"],Document:["#document"],DocumentFragment:["#document-fragment"],DocumentType:["node"],HTMLDocument:["#document"],Image:["img"],Option:["option"],ProcessingInstruction:["node"],ShadowRoot:["#shadow-root"],Text:["#text"], | |
| XMLDocument:["xml"]}});C||(C="auto");var BA="registerElement",AB="__"+BA+(1E5*A.Math.random()>>0),BB="addEventListener",HB="attached",QC="Callback",QB="detached",$D="extends",EC="attributeChanged"+QC,UU=HB+QC,PM="connected"+QC,QM="disconnected"+QC,YD="created"+QC,VU=QB+QC,YF="ADDITION",EI="MODIFICATION",$H="REMOVAL",PC="DOMAttrModified",KM="DOMContentLoaded",TU="DOMSubtreeModified",XD="<",XF="=",WU=/^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+$/,XU="ANNOTATION-XML COLOR-PROFILE FONT-FACE FONT-FACE-SRC FONT-FACE-URI FONT-FACE-FORMAT FONT-FACE-NAME MISSING-GLYPH".split(" "), | |
| OC=[],WD=[],DB="",FD=V.documentElement,PB=OC.indexOf||function(A){for(var B=this.length;B--&&this[B]!==A;);return B},FI=MA.prototype,GI=FI.hasOwnProperty,FG=FI.isPrototypeOf,ID=MA.defineProperty,BI=[],HI=MA.getOwnPropertyDescriptor,TM=MA.getOwnPropertyNames,YU=MA.getPrototypeOf,UM=MA.setPrototypeOf,VM=!!MA.__proto__,AE="__dreCEv1",XB=A.customElements,GD="force"!==C&&!!(XB&&XB.define&&XB.get&&XB.whenDefined),WM=MA.create||MA,ZU=A.Map||function(){var A=[],B=[],C;return{get:function(C){return B[PB.call(A, | |
| C)]},set:function(D,E){C=PB.call(A,D);0>C?B[A.push(D)-1]=E:B[C]=E}}},RM=A.Promise||function(A){function B(A){for(D=!0;C.length;)C.shift()(A)}var C=[],D=!1,E={"catch":function(){return E},then:function(A){C.push(A);D&&setTimeout(B,1);return E}};A(B);return E},CG=!1,BE=WM(null),HD=WM(null),DG=new ZU,AI=MA.create||function VF(A){return A?(VF.prototype=A,new VF):this},RU=UM||(VM?function(A,B){A.__proto__=B;return A}:TM&&HI?function(){function A(A,B){for(var C,D=TM(B),E=0,G=D.length;E<G;E++)C=D[E],GI.call(A, | |
| C)||ID(A,C,HI(B,C))}return function(B,C){do A(B,C);while((C=YU(C))&&!FG.call(C,B));return B}}():function(A,B){for(var C in B)A[C]=B[C];return A}),CE=A.MutationObserver||A.WebKitMutationObserver,WA=(A.HTMLElement||A.Element||A.Node).prototype,ED=!FG.call(WA,FD),BG=ED?function(A,B,C){A[B]=C.value;return A}:ID,QU=ED?function(A){return 1===A.nodeType}:function(A){return FG.call(WA,A)},ZD=ED&&[],XM=WA.attachShadow,$U=WA.cloneNode,II=WA.dispatchEvent,DD=WA.getAttribute,AV=WA.hasAttribute,BV=WA.removeAttribute, | |
| LM=WA.setAttribute,GG=V.createElement,CI=GG,SU=CE&&{attributes:!0,characterData:!0,attributeOldValue:!0},YM=CE||function(){AG=!1;FD.removeEventListener(PC,YM)},TF,UF=0,SM=BA in V,ZM=!0,DI=!1,AG=!0,JM=!0,ZF=!0,$F,JI;if(!SM){if(UM||VM){var OM=function(A,B){FG.call(B,A)||Q(A,B)};var WF=Q}else WF=OM=function(A,B){A[AB]||(A[AB]=MA(!0),Q(A,B))};if(ED)AG=!1,function(){function A(A){var B=A.currentTarget,C=B[AB];A=A.propertyName;if(C.hasOwnProperty(A)){C=C[A];var D=new CustomEvent(PC,{bubbles:!0});D.attrName= | |
| C.name;D.prevValue=C.value||null;D.newValue=C.value=B[A]||null;null==D.prevValue?D[YF]=D.attrChange=0:D[EI]=D.attrChange=1;II.call(B,D)}}function B(A,B){var C=AV.call(this,A),D=C&&DD.call(this,A),E=new CustomEvent(PC,{bubbles:!0});LM.call(this,A,B);E.attrName=A;E.prevValue=C?D:null;E.newValue=B;C?E[EI]=E.attrChange=1:E[YF]=E.attrChange=0;II.call(this,E)}function C(A){var B=new CustomEvent(PC,{bubbles:!0});B.attrName=A;B.prevValue=DD.call(this,A);B.newValue=null;B[$H]=B.attrChange=2;BV.call(this,A); | |
| II.call(this,B)}var D=HI(WA,BB),E=D.value;D.value=function(D,G,H){D===PC&&this[EC]&&this.setAttribute!==B&&(this[AB]={className:{name:"class",value:this.className}},this.setAttribute=B,this.removeAttribute=C,E.call(this,"propertychange",A));E.call(this,D,G,H)};ID(WA,BB,D)}();else if(!CE&&(FD[BB](PC,YM),FD.setAttribute(AB,1),FD.removeAttribute(AB),AG)){var MM=function(A){var B,C;if(this===A.target){var D=this[AB];this[AB]=B=NM(this);for(C in B){if(!(C in D))return KI(0,this,C,D[C],B[C],YF);if(B[C]!== | |
| D[C])return KI(1,this,C,D[C],B[C],EI)}for(C in D)if(!(C in B))return KI(2,this,C,D[C],B[C],$H)}};var KI=function(A,B,C,D,E,G){C={attrChange:A,currentTarget:B,attrName:C,prevValue:D,newValue:E};C[G]=A;K(C)};var NM=function(A){for(var B,C={},D=A.attributes,E=0,G=D.length;E<G;E++)A=D[E],B=A.name,"setAttribute"!==B&&(C[B]=A.value);return C}}V[BA]=function(A,B){function C(){return K?V.createElement(P,D):V.createElement(P)}var D=A.toUpperCase();ZM&&(ZM=!1,CE?($F=function(A,B){function C(A,B){for(var C= | |
| 0,D=A.length;C<D;B(A[C++]));}return new CE(function(D){for(var E,G,H,I=0,J=D.length;I<J;I++)if(E=D[I],"childList"===E.type)C(E.addedNodes,A),C(E.removedNodes,B);else if(G=E.target,ZF&&G[EC]&&"style"!==E.attributeName&&(H=DD.call(G,E.attributeName),H!==E.oldValue))G[EC](E.attributeName,E.oldValue,H)})}(H(HB),H(QB)),JI=function(A){$F.observe(A,{childList:!0,subtree:!0});return A},JI(V),XM&&(WA.attachShadow=function(){return JI(XM.apply(this,arguments))})):(TF=[],V[BB]("DOMNodeInserted",L(HB)),V[BB]("DOMNodeRemoved", | |
| L(QB))),V[BB](KM,M),V[BB]("readystatechange",M),WA.cloneNode=function(A){var B=$U.call(this,!!A),C=I(B);-1<C&&WF(B,WD[C]);A&&DB.length&&G(B.querySelectorAll(DB));return B});if(DI)return DI=!1;-2<PB.call(OC,XF+D)+PB.call(OC,XD+D)&&Z(A);if(!WU.test(D)||-1<PB.call(XU,D))throw Error("The type "+A+" is invalid");var J=B||FI,K=GI.call(J,$D),P=K?B[$D].toUpperCase():D;K&&-1<PB.call(OC,XD+P)&&Z(P);B=OC.push((K?XF:XD)+D)-1;DB=DB.concat(DB.length?",":"",K?P+'[is="'+A.toLowerCase()+'"]':P);C.prototype=WD[B]= | |
| GI.call(J,"prototype")?J.prototype:AI(WA);DB.length&&E(V.querySelectorAll(DB),HB);return C};V.createElement=CI=function(A,C){var D=DA(C),E=D?GG.call(V,A,B(D)):GG.call(V,A);A=""+A;var G=PB.call(OC,(D?XF:XD)+(D||A).toUpperCase()),H=-1<G;D&&(E.setAttribute("is",D=D.toLowerCase()),H&&(H=J(A.toUpperCase(),D)));ZF=!V.createElement.innerHTMLHelper;H&&WF(E,WD[G]);return E}}JA.prototype={constructor:JA,define:GD?function(A,B,C){if(C)KA(A,B,C);else{var D=A.toUpperCase();BE[D]={constructor:B,create:[D]};DG.set(B, | |
| D);XB.define(A,B)}}:KA,get:GD?function(A){return XB.get(A)||VA(A)}:VA,whenDefined:GD?function(A){return RM.race([XB.whenDefined(A),OA(A)])}:OA};if(XB&&"force"!==C)try{(function(B,C,D){C[$D]="a";B.prototype=AI(HTMLAnchorElement.prototype);B.prototype.constructor=B;A.customElements.define(D,B,C);if(DD.call(V.createElement("a",{is:D}),"is")!==D||GD&&DD.call(new B,"is")!==D)throw C;})(function VF(){return Reflect.construct(HTMLAnchorElement,[],VF)},{},"document-register-element-a")}catch(PU){FC()}else FC(); | |
| try{GG.call(V,"a","a")}catch(PU){B=function(A){return{is:A.toLowerCase()}}}};function PF(){var A=100;this.UM=A;this.$F=this.Z=0;this.CC=Object.create(null)}PF.prototype.has=function(A){return!!this.CC[A]};PF.prototype.get=function(A){var B=this.CC[A];if(B)return B.access=++this.$F,B.payload};PF.prototype.put=function(A,B){this.has(A)||this.Z++;this.CC[A]={payload:B,access:this.$F};if(!(this.Z<=this.UM)){S().warn("lru-cache","Trimming LRU cache");A=this.CC;var C=this.$F+1,D;for(D in A){var E=A[D].access;if(E<C){C=E;var G=D}}void 0!==G&&(delete A[G],this.Z--)}};var QF=self.AMP_CONFIG||{},RF={thirdParty:QF.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:QF.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:("string"==typeof QF.thirdPartyFrameRegex?new RegExp(QF.thirdPartyFrameRegex):QF.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,cdn:QF.cdnUrl||"https://cdn.ampproject.org",cdnProxyRegex:("string"==typeof QF.cdnProxyRegex?new RegExp(QF.cdnProxyRegex):QF.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/,localhostRegex:/^https?:\/\/localhost(:\d+)?$/, | |
| errorReporting:QF.errorReportingUrl||"https://amp-error-reporting.appspot.com/r",localDev:QF.localDev||!1},SF={urls:RF};var HG=$B({c:!0,v:!0,a:!0,ad:!0,action:!0}),IG,JG,KG=/[?&]amp_js[^&]*/,LG=/[?&]amp_gsa[^&]*/,MG=/[?&]amp_r[^&]*/,NG=/[?&]amp_kit[^&]*/,OG=/[?&]usqp[^&]*/,PG=["javascript:","data:","vbscript:"];function U(A,B){IG||(IG=self.document.createElement("a"),JG=self.UrlCache||(self.UrlCache=new PF));return QG(IG,A,B?null:JG)} | |
| function QG(A,B,C){if(C&&C.has(B))return C.get(B);A.href=B;A.protocol||(A.href=A.href);var D={href:A.href,protocol:A.protocol,host:A.host,hostname:A.hostname,port:"0"==A.port?"":A.port,pathname:A.pathname,search:A.search,hash:A.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=A.origin&&"null"!=A.origin?A.origin:"data:"!=D.protocol&&D.host?D.protocol+"//"+D.host:D.href;var E= | |
| D;C&&C.put(B,E);return E}function RG(A,B,C){if(!B)return A;var D=A.split("#",2),E=D[0].split("?",2),G=E[0]+(E[1]?C?"?"+B+"&"+E[1]:"?"+E[1]+"&"+B:"?"+B);return G+=D[1]?"#"+D[1]:""}function SG(A,B){return RG(A,TG(B))}function TG(A){var B=[],C;for(C in A){var D=A[C];if(null!=D)if(CB(D))for(var E=0;E<D.length;E++){var G=D[E];B.push(encodeURIComponent(C)+"="+encodeURIComponent(G))}else B.push(encodeURIComponent(C)+"="+encodeURIComponent(D))}return B.join("&")} | |
| function UG(A){"string"==typeof A&&(A=U(A));return"https:"==A.protocol||"localhost"==A.hostname||RC(A.hostname,".localhost")}function VG(A,B,C){C=void 0===C?"source":C;T(null!=A,"%s %s must be available",B,C);var D=A;T(UG(D)||/^(\/\/)/.test(D),'%s %s must start with "https://" or "//" or be relative and served from either https or from localhost. Invalid value: %s',B,C,D);return D}function WG(A){var B=A.indexOf("#");return-1==B?A:A.substring(0,B)} | |
| function XG(A){"string"==typeof A&&(A=U(A));return RF.cdnProxyRegex.test(A.origin)}function YG(A){if(!A)return!0;"string"==typeof A&&(A=U(A));return!PG.includes(A.protocol)}function ZG(A){var B=U(A),C=$G(B.search);return B.origin+B.pathname+C+B.hash}function $G(A){if(!A||"?"==A)return"";var B=A.replace(KG,"").replace(LG,"").replace(MG,"").replace(NG,"").replace(OG,"").replace(/^[?&]/,"");return B?"?"+B:""} | |
| function AH(A){"string"==typeof A&&(A=U(A));if(!XG(A))return A.href;var B=A.pathname.split("/");T(HG[B[1]],"Unknown path prefix in url %s",A.href);var C=B[2],D="s"==C?"https://"+decodeURIComponent(B[3]):"http://"+decodeURIComponent(C);T(0<D.indexOf("."),"Expected a . in origin %s",D);B.splice(1,"s"==C?3:2);return D+B.join("/")+$G(A.search)+(A.hash||"")}function BH(A){return U(AH(A)).origin} | |
| function CH(A,B){DH(B);var C=BH(A.location.href);A=encodeURIComponent("__amp_source_origin")+"="+encodeURIComponent(C);return RG(B,A,void 0)}function DH(A){var B=U(A),C=RA(B.search);T(!("__amp_source_origin"in C),"Source origin is not allowed in %s",A)};function EH(A,B){try{var C=A.document.cookie}catch(I){C=""}var D=C;if(!D)return null;var E=D.split(";");for(A=0;A<E.length;A++){var G=E[A].trim(),H=G.indexOf("=");if(-1!=H&&PA(G.substring(0,H).trim(),void 0)==B)return B=G.substring(H+1).trim(),PA(B,B)}return null} | |
| function FH(A,B,C,D,E){if(!E||!E.allowOnProxyOrigin){if(XG(A.location.href))throw Error("Should never attempt to set cookie on proxy origin: "+B);var G=U(A.location.href).hostname.toLowerCase(),H=U(RF.cdn).hostname.toLowerCase();if(G==H||RC(G,"."+H))throw Error("Should never attempt to set cookie on proxy origin. (in depth check): "+B);}if(E&&E.highestAvailableDomain){G=A.location.hostname.split(".");H=G[G.length-1];for(var I=G.length-2;0<=I;I--)if(H=G[I]+"."+H,GH(A,B,C,D,H),EH(A,B)==C)return}G=void 0; | |
| E&&E.domain&&(G=E.domain);GH(A,B,C,D,G)}function GH(A,B,C,D,E){"ampproject.org"==E&&(C="delete",D=0);B=encodeURIComponent(B)+"="+encodeURIComponent(C)+"; path=/"+(E?"; domain="+E:"")+"; expires="+(new Date(D)).toUTCString();try{A.document.cookie=B}catch(G){}};function HH(A){return!(!A.AMP_CONFIG||!A.AMP_CONFIG.canary)}function W(A,B){var C=IH(A);return!!C[B]}function JH(A,B,C,D){var E=W(A,B),G=!(void 0!==C?!C:E);if(G!=E&&(IH(A)[B]=G,!D)){var H=KH(A);H[B]=G;B=H;var I=[],J;for(J in B)I.push((!1===B[J]?"-":"")+J);FH(A,"AMP_EXP",I.join(","),Date.now()+15552E6,{domain:A.location.hostname,allowOnProxyOrigin:!0})}return G} | |
| function IH(A){if(A.__AMP__EXPERIMENT_TOGGLES)return A.__AMP__EXPERIMENT_TOGGLES;A.__AMP__EXPERIMENT_TOGGLES=Object.create(null);var B=A.__AMP__EXPERIMENT_TOGGLES;if(A.AMP_CONFIG)for(var C in A.AMP_CONFIG){var D=A.AMP_CONFIG[C];"number"===typeof D&&0<=D&&1>=D&&(B[C]=Math.random()<D)}if(A.AMP_CONFIG&&Array.isArray(A.AMP_CONFIG["allow-doc-opt-in"])&&0<A.AMP_CONFIG["allow-doc-opt-in"].length){var E=A.AMP_CONFIG["allow-doc-opt-in"],G=A.document.head.querySelector('meta[name="amp-experiments-opt-in"]'); | |
| if(G){var H=G.getAttribute("content").split(",");for(C=0;C<H.length;C++)-1!=E.indexOf(H[C])&&(B[H[C]]=!0)}}Object.assign(B,KH(A));if(A.AMP_CONFIG&&Array.isArray(A.AMP_CONFIG["allow-url-opt-in"])&&0<A.AMP_CONFIG["allow-url-opt-in"].length){C=A.AMP_CONFIG["allow-url-opt-in"];A=RA(A.location.originalHash||A.location.hash);for(var I=0;I<C.length;I++){var J=A["e-"+C[I]];"1"==J&&(B[C[I]]=!0);"0"==J&&(B[C[I]]=!1)}}return B} | |
| function KH(A){var B=EH(A,"AMP_EXP"),C=B?B.split(/\s*,\s*/g):[];A=Object.create(null);for(var D=0;D<C.length;D++)0!=C[D].length&&("-"==C[D][0]?A[C[D].substr(1)]=!1:A[C[D]]=!0);return A};XA(self);(function(A){A.fetch||(Object.defineProperty(A,"fetch",{value:HE,writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(A,"Response",{value:NE,writable:!0,enumerable:!1,configurable:!0}))})(self);(function(A){A.Math.sign||A.Object.defineProperty(A.Math,"sign",{enumerable:!1,configurable:!0,writable:!0,value:UE})})(self);(function(A){A.Object.assign||A.Object.defineProperty(A.Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:WE})})(self); | |
| (function(A){A.Object.values||A.Object.defineProperty(A.Object,"values",{configurable:!0,writable:!0,value:XE})})(self);(function(A){A.Promise||(A.Promise=YE,YE.default&&(A.Promise=YE.default),A.Promise.resolve=EF,A.Promise.reject=FF,A.Promise.all=GF,A.Promise.race=IF)})(self);ZA(self);(function(A){A.Array.prototype.includes||A.Object.defineProperty(Array.prototype,"includes",{enumerable:!1,configurable:!0,writable:!0,value:TA})})(self); | |
| (function(A){try{var B=0!==A.document.createElement("div").getBoundingClientRect().top}catch(C){B=!0}B&&A.Object.defineProperty(A.Element.prototype,"getBoundingClientRect",{value:TE})})(self);OF(self);function LH(A,B){var C,D=A.ownerDocument.defaultView,E=D!=MH(D);if(E){if(NH(D,B)){var G=OH(D,B);if(G)return G}if(!C)return null}A=PH(A);A=QH(A);return NH(A,B)?OH(A,B):null}function RH(A,B,C){MH(A);NH(A,B);SH(A,A,B,function(){return C});OH(A,B)}function TH(A,B,C){var D;A=MH(A);SH(A,A,B,C);D&&OH(A,B)}function UH(A,B,C,D){var E=PH(A),G=QH(E);SH(G,E,B,C);D&&OH(G,B)}function VH(A,B){A=MH(A);return OH(A,B)}function WH(A){A=MH(A);return NH(A,"performance")?OH(A,"performance"):null} | |
| function XH(A,B){var C=PH(A);C=QH(C);return OH(C,B)}function YH(A,B){return ZH(QH(A),B)}function LI(A,B){return MI(QH(A),B)}function NI(A,B){A.__AMP_PARENT=B;A.__AMP_TOP=MH(B)}function MH(A){return A.__AMP_TOP||A}function OI(A,B){var C=(A.ownerDocument||A).defaultView;if(C&&C!=B&&MH(C)==B)try{return C.frameElement}catch(D){}return null}function PH(A){return A.nodeType?VH((A.ownerDocument||A).defaultView,"ampdoc").getAmpDoc(A):A}function QH(A){A=PH(A);return A.isSingleDoc()?A.win:A} | |
| function OH(A,B){NH(A,B);var C=PI(A);A=C[B];A.obj||(A.obj=new A.ctor(A.context),A.ctor=null,A.context=null,A.resolve&&A.resolve(A.obj));return A.obj}function SH(A,B,C,D){var E=PI(A),G=E[C];G||(G=E[C]={obj:null,promise:null,resolve:null,reject:null,context:null,ctor:null});G.ctor||G.obj||(G.ctor=D,G.context=B,G.resolve&&OH(A,C))}function ZH(A,B){var C=MI(A,B);if(C)return C;A=PI(A);A[B]=QI();return A[B].promise} | |
| function MI(A,B){var C=PI(A)[B];if(C){if(C.promise)return C.promise;OH(A,B);return C.promise=Promise.resolve(C.obj)}return null}function PI(A){var B=A.services;B||(B=A.services={});return B}function NH(A,B){A=A.services&&A.services[B];return!(!A||!A.ctor&&!A.obj)}function QI(){var A=new AC,B=A.promise,C=A.resolve;A=A.reject;B.catch(function(){});return{obj:null,promise:B,resolve:C,reject:A,context:null,ctor:null}};function RI(A,B,C){var D=MI(A,B);return D?D:SI(A,B,C,!0)}function TI(A,B,C){return UI(A,B,C,void 0).then(function(A){return T(A,"Service %s was requested to be provided through %s, but %s is not loaded in the current page. To fix this problem load the JavaScript file for %s in this page.",B,C,C,C)})} | |
| function UI(A,B,C,D){var E=LI(A,B);if(E)return E;var G=PH(A);return G.whenBodyAvailable().then(function(){return VI(G.win,C,G.win.document.head)}).then(function(){if(D)var E=LI(A,B);else E=G.win,E=E.ampExtendedElements&&E.ampExtendedElements[C]?YH(A,B):null;return E})}function WI(A){var B=LH(A,"bind");if(B)return Promise.resolve(B);B=A.ownerDocument.defaultView;var C=MH(B);return B!==C?SI(B,"bind","amp-bind"):UI(A,"bind","amp-bind")} | |
| function XI(A){if(!A)return[];for(var B=[],C=A.querySelectorAll("script[custom-element]"),D=0;D<C.length;D++)B.push(C[D].getAttribute("custom-element"));return B}function YI(A){var B="amp-form";return A.whenBodyAvailable().then(function(){var C=A.getHeadNode(),D=B;return XI(C).includes(D)})}function VI(A,B,C){if(!XI(C).includes(B))return Promise.resolve();var D=VH(A,"extensions");return D.waitForExtension(A,B)} | |
| function SI(A,B,C,D){return WC(A.document).then(function(){return VI(A,C,A.document.head)}).then(function(){return D?MI(A,B):A.ampExtendedElements&&A.ampExtendedElements[C]?ZH(A,B):null})};function ZI(A){return VH(A,"ampdoc")}function $I(A){return XH(A,"documentInfo").get()}function AJ(A){return VH(A,"extensions")}function BJ(A){return VH(A,"performance")}function CJ(A){return VH(A,"platform")}function DJ(A){return XH(A,"resources")}function EJ(A){return VH(A,"timer")}function FJ(A){return XH(A,"viewer")}function GJ(A){return VH(A,"vsync")}function HJ(A){return XH(A,"viewport")};var IJ;function JJ(A){A=A.ownerDocument||A;IJ&&IJ.ownerDocument===A||(IJ=A.createElement("div"));return KJ}function KJ(A){IJ.innerHTML=A[0];var B=IJ.firstElementChild;IJ.removeChild(B);return B};var LJ,MJ="Webkit webkit Moz moz ms O o".split(" ");function NJ(A,B,C){if(SC(B,"--"))return B;LJ||(LJ=ZB());var D=LJ[B];if(!D||C){D=B;if(void 0===A[B]){var E=B.charAt(0).toUpperCase()+B.slice(1);A:{for(var G=0;G<MJ.length;G++){var H=MJ[G]+E;if(void 0!==A[H]){E=H;break A}}E=""}var I=E;void 0!==A[I]&&(D=I)}C||(LJ[B]=D)}return D}function OJ(A,B){A=A.style;for(var C in B)A.setProperty(NJ(A,C),B[C].toString(),"important")}function Y(A,B,C,D){(B=NJ(A.style,B,void 0))&&(A.style[B]=D?C+D:C)} | |
| function PJ(A,B){if(B=NJ(A.style,B,void 0))return A.style[B]}function QJ(A,B){for(var C in B)Y(A,C,B[C])}function RJ(A){"display"in A&&S().error("STYLE","`display` style detected in styles. You must use toggle instead.");return A}function SJ(A,B){void 0===B&&(B=A.hasAttribute("hidden"));B?A.removeAttribute("hidden"):A.setAttribute("hidden","")}function TJ(A,B){return A.getComputedStyle(B)||ZB()};var UJ=['\n <i-amphtml-sizer class="i-amphtml-sizer">\n <img alt="" role="presentation" aria-hidden="true"\n class="i-amphtml-intrinsic-sizer" />\n </i-amphtml-sizer>'];UJ.raw=['\n <i-amphtml-sizer class="i-amphtml-sizer">\n <img alt="" role="presentation" aria-hidden="true"\n class="i-amphtml-intrinsic-sizer" />\n </i-amphtml-sizer>']; | |
| var VJ={NODISPLAY:"nodisplay",FIXED:"fixed",FIXED_HEIGHT:"fixed-height",RESPONSIVE:"responsive",CONTAINER:"container",FILL:"fill",FLEX_ITEM:"flex-item",FLUID:"fluid",INTRINSIC:"intrinsic"},WJ={"AMP-PIXEL":{width:"0px",height:"0px"},"AMP-ANALYTICS":{width:"1px",height:"1px"},"AMP-AUDIO":null,"AMP-SOCIAL-SHARE":{width:"60px",height:"44px"}},XJ={"AMP-AD":!0,"AMP-ANIM":!0,"AMP-BRIGHTCOVE":!0,"AMP-DAILYMOTION":!0,"AMP-EMBED":!0,"AMP-FACEBOOK":!0,"AMP-FACEBOOK-COMMENTS":!0,"AMP-FACEBOOK-LIKE":!0,"AMP-FACEBOOK-PAGE":!0, | |
| "AMP-GOOGLE-DOCUMENT-EMBED":!0,"AMP-IFRAME":!0,"AMP-IMG":!0,"AMP-INSTAGRAM":!0,"AMP-LIST":!0,"AMP-PINTEREST":!0,"AMP-PLAYBUZZ":!0,"AMP-YOUTUBE":!0,"AMP-VIMEO":!0},YJ=/^amp\-(video|.+player)/i;function ZJ(A){for(var B in VJ)if(VJ[B]==A)return VJ[B]}function $J(A){return"fixed"==A||"fixed-height"==A||"responsive"==A||"fill"==A||"flex-item"==A||"fluid"==A||"intrinsic"==A} | |
| function AK(A){if("number"==typeof A)return A+"px";if(A&&/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)?$/.test(A))return/^\d+(\.\d+)?$/.test(A)?A+"px":A}function BK(A){T(/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)$/.test(A),"Invalid length value: %s",A);return A}function CK(A){T(/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|%)$/.test(A),"Invalid length or percent value: %s",A);return A} | |
| function DK(A){BK(A);var B=T(A.match(/[a-z]+/i),"Failed to read units from %s",A);return B[0]}function EK(A){A=parseFloat(A);return GB(A)?A:void 0};var FK;function GK(A,B,C,D){var E=A,G=C;var H=function(A){try{return G(A)}catch(L){throw self.reportError(L),L;}};var I=HK(),J=!1;D&&(J=D.capture);E.addEventListener(B,H,I?D:J);return function(){E&&E.removeEventListener(B,H,I?D:J);H=E=G=null}}function HK(){if(void 0!==FK)return FK;FK=!1;try{var A={get capture(){FK=!0}};self.addEventListener("test-options",null,A);self.removeEventListener("test-options",null,A)}catch(B){}return FK};function IK(A,B,C,D){return GK(A,B,C,D)}function JK(A,B,C,D){var E=C,G=GK(A,B,function(A){try{E(A)}finally{E=null,G()}},D);return G}function KK(A,B){var C,D=new Promise(function(B){C=JK(A,"click",B,void 0)});D.then(C,C);B&&B(C);return D} | |
| function LK(A){var B,C;if(A.complete||"complete"==A.readyState||A.document&&"complete"==A.document.readyState)return Promise.resolve(A);var D=new Promise(function(D,G){var E=A.tagName;B="AUDIO"===E||"VIDEO"===E?JK(A,"loadstart",D):JK(A,"load",D);E&&(C=JK(A,"error",G))});return D.then(function(){C&&C();return A},function(){B&&B();var C=A;C&&C.src&&(C=C.src);throw O().createError("Failed to load:",C);})};var MK=['\n <link rel="preload" referrerpolicy="origin" />'];MK.raw=['\n <link rel="preload" referrerpolicy="origin" />'];var NK=null; | |
| function OK(A){this.DA=A.document;this.TG=A.document.head;this.LD={};this.AM={};this.VA=CJ(A);this.LD[U(A.location.href).origin]=!0;A:{if(!NK){var B=A.document.createElement("link");var C=B.relList;B.as="invalid-value";if(!C||!C.supports){B={};break A}NK={preconnect:C.supports("preconnect"),preload:C.supports("preload"),onlyValidAs:"invalid-value"!=B.as}}B=NK}this.DE=B;this.X=EJ(A)}OK.prototype.url=function(A,B,C){var D=this;A.whenFirstVisible().then(function(){D.MI(A,B,C)})}; | |
| OK.prototype.MI=function(A,B,C){if(PK(B)){A=U(B).origin;var D=Date.now(),E=this.LD[A];if(E&&D<E)C&&(this.LD[A]=D+18E4);else{this.LD[A]=D+(C?18E4:1E4);if(!this.DE.preconnect){var G=this.DA.createElement("link");G.setAttribute("rel","dns-prefetch");G.setAttribute("href",A);this.TG.appendChild(G)}var H=this.DA.createElement("link");H.setAttribute("rel","preconnect");H.setAttribute("href",A);H.setAttribute("referrerpolicy","origin");this.TG.appendChild(H);this.X.delay(function(){G&&G.parentNode&&G.parentNode.removeChild(G); | |
| H.parentNode&&H.parentNode.removeChild(H)},1E4);QK(this,A)}}};OK.prototype.preload=function(A,B,C){var D=this;PK(B)&&!this.AM[B]&&(this.AM[B]=!0,this.url(A,B,!0),this.DE.preload&&("document"==C&&this.VA.isSafari()||A.whenFirstVisible().then(function(){var A=JJ(D.DA)(MK);A.setAttribute("href",B);A.as=D.DE.onlyValidAs?"fetch":"";D.TG.appendChild(A)})))};function PK(A){return SC(A,"https:")||SC(A,"http:")?!0:!1} | |
| function QK(A,B){if(!A.DE.preconnect&&(A.VA.isSafari()||A.VA.isIos())){var C=Date.now();A.LD[B]=C+18E4;var D=C-C%18E4;A=new XMLHttpRequest;A.open("HEAD",B+"/amp_preconnect_polyfill_404_or_other_error_expected._Do_not_worry_about_it?"+D,!0);A.withCredentials=!0;A.send()}}function RK(A,B){this.AL=A;this.$=B;this.A=null}function SK(A){A.A||(A.A=FJ(A.$));return A.A}RK.prototype.url=function(A,B){this.AL.url(SK(this),A,B)};RK.prototype.preload=function(A,B){this.AL.preload(SK(this),A,B)};function TK(A){this.element=A;this.layout_="nodisplay";this.layoutWidth_=-1;this.inViewport_=!1;this.win=A.ownerDocument.defaultView;this.defaultActionAlias_=this.actionMap_=null;A=this.element;var B=A.ownerDocument.defaultView;TH(B,"preconnect",OK);B=VH(B,"preconnect");this.preconnect=new RK(B,A);this.config=null;this.layoutScheduleTime=0}F=TK.prototype;F.signals=function(){return this.element.signals()};F.getDefaultActionAlias=function(){return this.defaultActionAlias_};F.getLayoutPriority=function(){return 0}; | |
| F.updateLayoutPriority=function(A){this.element.getResources().updateLayoutPriority(this.element,A)};F.getLayout=function(){return this.layout_};F.getLayoutBox=function(){return this.element.getLayoutBox()};F.getPageLayoutBox=function(){return this.element.getPageLayoutBox()};F.getWin=function(){return this.win};F.getAmpDoc=function(){return this.element.getAmpDoc()};F.getVsync=function(){return GJ(this.win)};F.getLayoutWidth=function(){return this.layoutWidth_}; | |
| F.getConsentPolicy=function(){var A=null;this.element.hasAttribute("data-block-on-consent")&&(A=this.element.getAttribute("data-block-on-consent")||"default");return A};F.isLayoutSupported=function(A){return"nodisplay"==A};F.isAlwaysFixed=function(){return!1};F.isInViewport=function(){return this.inViewport_};F.upgradeCallback=function(){return null};F.createdCallback=function(){};F.firstAttachedCallback=function(){};F.buildCallback=function(){};F.preconnectCallback=function(){}; | |
| F.detachedCallback=function(){};F.setAsOwner=function(A){this.element.getResources().setOwner(A,this.element)};F.prerenderAllowed=function(){return!1};F.createPlaceholderCallback=function(){return null};F.renderOutsideViewport=function(){return"inabox"==N(this.win).runtime||3};F.idleRenderOutsideViewport=function(){return!1};F.isRelayoutNeeded=function(){return!1};F.layoutCallback=function(){return Promise.resolve()};F.firstLayoutCompleted=function(){this.togglePlaceholder(!1)}; | |
| F.viewportCallback=function(){};F.pauseCallback=function(){};F.resumeCallback=function(){};F.unlayoutCallback=function(){return!1};F.unlayoutOnPause=function(){return!1};F.reconstructWhenReparented=function(){return!0};F.activate=function(){};F.activationTrust=function(){return 100};F.loadPromise=function(A){return LK(A)};function UK(A){A.actionMap_||(A.actionMap_=A.win.Object.create(null))}F.registerAction=function(A,B,C){C=void 0===C?100:C;UK(this);this.actionMap_[A]={handler:B,minTrust:C}}; | |
| F.registerDefaultAction=function(A,B,C){B=void 0===B?"activate":B;this.registerAction(B,A,void 0===C?100:C);this.defaultActionAlias_=B};F.executeAction=function(A){var B=A.method;"activate"===B&&(B=this.defaultActionAlias_||B);UK(this);var C=this.actionMap_[B];T(C,"Method not found: "+B+" in "+this.element.tagName);B=C.handler;if(A.satisfiesTrust(C.minTrust))return B(A)};F.getMaxDpr=function(){return this.element.getResources().getMaxDpr()};F.getDpr=function(){return this.element.getResources().getDpr()}; | |
| F.propagateAttributes=function(A,B,C){A=CB(A)?A:[A];for(var D=0;D<A.length;D++){var E=A[D];this.element.hasAttribute(E)?B.setAttribute(E,this.element.getAttribute(E)):C&&B.removeAttribute(E)}};F.forwardEvents=function(A,B){var C=this,D=(CB(A)?A:[A]).map(function(A){return IK(B,A,function(B){C.element.dispatchCustomEvent(A,B.data||{})})});return function(){return D.forEach(function(A){return A()})}};F.getPlaceholder=function(){return this.element.getPlaceholder()};F.togglePlaceholder=function(A){this.element.togglePlaceholder(A)}; | |
| F.getFallback=function(){return this.element.getFallback()};F.toggleFallback=function(A){this.element.toggleFallback(A)};F.toggleLoading=function(A,B){this.element.toggleLoading(A,{force:!!B})};F.isLoadingReused=function(){return!1};F.getOverflowElement=function(){return this.element.getOverflowElement()};F.renderStarted=function(){this.element.renderStarted()};F.getRealChildNodes=function(){return this.element.getRealChildNodes()};F.getRealChildren=function(){return this.element.getRealChildren()}; | |
| F.applyFillContent=function(A,B){A.classList.add("i-amphtml-fill-content");B&&A.classList.add("i-amphtml-replaced-content")};F.getViewport=function(){return HJ(this.getAmpDoc())};F.getIntersectionElementLayoutBox=function(){return this.getLayoutBox()};F.scheduleLayout=function(A){this.element.getResources().scheduleLayout(this.element,A)};F.schedulePause=function(A){this.element.getResources().schedulePause(this.element,A)}; | |
| F.scheduleResume=function(A){this.element.getResources().scheduleResume(this.element,A)};F.schedulePreload=function(A){this.element.getResources().schedulePreload(this.element,A)};F.scheduleUnlayout=function(A){this.element.getResources().scheduleUnlayout(this.element,A)};F.updateInViewport=function(A,B){this.element.getResources().updateInViewport(this.element,A,B)};F.changeHeight=function(A){this.element.getResources().changeSize(this.element,A,void 0)};F.collapse=function(){this.element.getResources().collapseElement(this.element)}; | |
| F.attemptCollapse=function(){return this.element.getResources().attemptCollapse(this.element)};F.attemptChangeHeight=function(A){return this.element.getResources().attemptChangeSize(this.element,A,void 0)};F.attemptChangeSize=function(A,B){return this.element.getResources().attemptChangeSize(this.element,A,B)};F.measureElement=function(A){return this.element.getResources().measureElement(A)};F.mutateElement=function(A,B){return this.measureMutateElement(null,A,B)}; | |
| F.measureMutateElement=function(A,B,C){return this.element.getResources().measureMutateElement(C||this.element,A,B)};F.collapsedCallback=function(){};F.expand=function(){this.element.getResources().expandElement(this.element)};F.expandedCallback=function(){};F.mutatedAttributesCallback=function(){};F.onLayoutMeasure=function(){};F.onMeasureChanged=function(){};F.user=function(){return O(this.element)}; | |
| F.declareLayer=function(A){W(this.win,"layers");A&&this.element.contains(A);return this.element.getLayers().declareLayer(A||this.element)};function VK(A,B){this.element=A;this.win=A.ownerDocument.defaultView||B;this.A=XH(this.element,"viewer");this.compileCallback()}F=VK.prototype;F.compileCallback=function(){};F.setHtml=function(){throw Error("Not implemented");};F.render=function(){throw Error("Not implemented");}; | |
| F.unwrap=function(A){for(var B=null,C=A.firstChild;null!=C;C=C.nextSibling)if(3==C.nodeType){if(C.textContent.trim()){B=null;break}}else if(8!=C.nodeType)if(1==C.nodeType)if(B){B=null;break}else B=C;else B=null;return B||A};F.viewerCanRenderTemplates=function(){return this.A.hasCapability("viewerRenderTemplate")};function WK(A){this.F=A;this.OC={};this.OF={}}F=WK.prototype;F.setHtmlForTemplate=function(A,B){return XK(this,A).then(function(A){return A.setHtml(B)})}; | |
| F.renderTemplate=function(A,B){return XK(this,A).then(function(A){return A.render(B)})};F.renderTemplateArray=function(A,B){return 0==B.length?Promise.resolve([]):XK(this,A).then(function(A){return B.map(function(B){return A.render(B)})})};F.findAndRenderTemplate=function(A,B,C){return this.renderTemplate(this.findTemplate(A,C),B)};F.findAndSetHtmlForTemplate=function(A,B,C){return this.setHtmlForTemplate(this.findTemplate(A,C),B)}; | |
| F.findAndRenderTemplateArray=function(A,B,C){return this.renderTemplateArray(this.findTemplate(A,C),B)};F.hasTemplate=function(A,B){return!!this.maybeFindTemplate(A,B)};F.findTemplate=function(A,B){B=this.maybeFindTemplate(A,B);T(B,"Template not found for %s",A);var C=B.tagName;T("TEMPLATE"==C||"SCRIPT"==C&&"text/plain"===B.getAttribute("type"),'Template must be defined in a <template> or <script type="text/plain"> tag');return B}; | |
| F.maybeFindTemplate=function(A,B){var C=A.getAttribute("template");return C?YC(A).getElementById(C):B?MD(A,B):A.querySelector("template, script")};function XK(A,B){var C=B.__AMP_IMPL_;if(C)return Promise.resolve(C);C="";var D=B.tagName;"TEMPLATE"==D?C=B.getAttribute("type"):"SCRIPT"==D&&(C=B.getAttribute("template"));T(C,"Type must be specified: %s",B);if(D=B.__AMP_WAIT_)return D;D=YK(A,C).then(function(C){var D=B.__AMP_IMPL_=new C(B,A.F);delete B.__AMP_WAIT_;return D});return B.__AMP_WAIT_=D} | |
| function YK(A,B){if(A.OC[B])return A.OC[B];var C=new AC,D=C.promise;C=C.resolve;A.OC[B]=D;A.OF[B]=C;return D}F.unregisterTemplate=function(A){delete this.OC[A];delete this.OF[A]};var ZK={PRERENDER:"prerender",VISIBLE:"visible",HIDDEN:"hidden",PAUSED:"paused",INACTIVE:"inactive"};/* | |
| Copyright (c) 2014 The Polymer Project Authors. All rights reserved. | |
| Use of this source code is governed by a BSD-style | |
| license that can be found in the LICENSE file or at | |
| https://developers.google.com/open-source/licenses/bsd | |
| */ | |
| var $K;function AL(){var A;if(void 0===$K){var B=A||Element;$K=B.prototype.attachShadow?"v1":B.prototype.createShadowRoot?"v0":"none"}return $K};var BL={"amp-dynamic-css-classes":"[custom-element=amp-dynamic-css-classes]",variant:"amp-experiment"};function CL(A){var B=DL(A).map(function(B){var C=ZH(A,B).then(function(A){return A&&EL(A)?A.whenReady().then(function(){return A}):A});return EJ(A).timeoutPromise(3E3,C,"Render timeout waiting for service "+B+" to be ready.")});return Promise.all(B)}function EL(A){var B=A;return"function"==typeof B.whenReady} | |
| function DL(A){var B=A.document;return Object.keys(BL).filter(function(A){return B.querySelector(BL[A])})};function FL(A,B,C,D,E){var G=A.getHeadNode(),H=GL(G,HL(G,B),D||!1,E||null);if(C){var I=A.getRootNode();if(IL(I,H))C(H);else var J=setInterval(function(){IL(I,H)&&(clearInterval(J),C(H))},4)}}function JL(A,B,C,D,E){var G=GL(A.head,B,D||!1,E||null);if(C)if(IL(A,G))C(G);else var H=setInterval(function(){IL(A,G)&&(clearInterval(H),C(G))},4)} | |
| function GL(A,B,C,D){var E=A.__AMP_CSS_SM;E||(E=A.__AMP_CSS_SM=ZB());var G=!C&&D&&"amp-custom"!=D&&"amp-keyframes"!=D,H=C?"amp-runtime":G?"amp-extension="+D:null;if(H){var I=KL(A,E,H);if(I)return I.textContent!==B&&(I.textContent=B),I}var J=(A.ownerDocument||A).createElement("style");J.textContent=B;var K=null;C?J.setAttribute("amp-runtime",""):G?(J.setAttribute("amp-extension",D||""),K=KL(A,E,"amp-runtime")):(D&&J.setAttribute(D,""),K=A.lastChild);B=K;A.insertBefore(J,B?B.nextSibling:A.firstChild); | |
| H&&(E[H]=J);return J}function KL(A,B,C){return B[C]?B[C]:(A=A.querySelector("style["+C+"]"))?B[C]=A:null}function HL(A,B){return(A=A.__AMP_CSS_TR)?A(B):B}var LL=!1;function ML(){var A=self.document,B=A.defaultView;WC(A).then(function(){return CL(B)}).catch(function(A){TB(A);return[]}).then(function(C){LL=!0;NL(A);try{DJ(A.documentElement).renderStarted()}catch(G){}if(0<C.length){var D=DJ(A.documentElement);D.schedulePass(1,!0)}try{var E=BJ(B);E.tick("mbv");E.flush()}catch(G){}})} | |
| function OL(A){LL||(LL=!0,NL(A))}function NL(A){QJ(A.body,{opacity:1,visibility:"visible",animation:"none"})}function IL(A,B){var C=A.styleSheets;for(A=0;A<C.length;A++){var D=C[A];if(D.ownerNode==B)return!0}return!1};var PL={composed:!1};function QL(A){return"none"!=AL()&&Node.prototype.getRootNode?A.getRootNode(PL):$C(A,function(A){return A?"I-AMPHTML-SHADOW-ROOT"==A.tagName?!0:11==A.nodeType&&"[object ShadowRoot]"===Object.prototype.toString.call(A):!1})};var cssText$$module$build$css="html{overflow-x:hidden!important}body,html{height:auto!important}html.i-amphtml-fie{height:100%!important;width:100%!important}body{margin:0!important;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;-ms-text-size-adjust:100%;text-size-adjust:100%}[hidden]{display:none!important}html.i-amphtml-singledoc.i-amphtml-embedded{-ms-touch-action:pan-y;touch-action:pan-y}html.i-amphtml-fie>body,html.i-amphtml-singledoc>body{overflow:visible!important}html.i-amphtml-fie:not(.i-amphtml-inabox)>body,html.i-amphtml-singledoc:not(.i-amphtml-inabox)>body{position:relative!important}html.i-amphtml-webview>body{overflow-x:hidden!important;overflow-y:visible!important;min-height:100vh!important}html.i-amphtml-ios-embed-legacy>body{overflow-x:hidden!important;overflow-y:auto!important;position:absolute!important}html.i-amphtml-ios-embed{overflow-y:auto!important;position:static}#i-amphtml-wrapper{overflow-x:hidden!important;overflow-y:auto!important;position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;margin:0!important;display:block!important}html.i-amphtml-ios-embed.i-amphtml-ios-overscroll,html.i-amphtml-ios-embed.i-amphtml-ios-overscroll>#i-amphtml-wrapper{-webkit-overflow-scrolling:touch!important}#i-amphtml-wrapper>body{position:relative!important;border-top:1px solid transparent!important}#i-amphtml-wrapper+body .i-amphtml-lightbox-element,#i-amphtml-wrapper+body[i-amphtml-lightbox]{visibility:hidden}#i-amphtml-wrapper+body[i-amphtml-lightbox] .i-amphtml-lightbox-element{visibility:visible}html.i-amphtml-ios-embed-sd{overflow:hidden!important;position:static!important}html.i-amphtml-ios-embed-sd>body,html.i-amphtml-singledoc.i-amphtml-ios-embed-sd>body{position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;overflow:hidden!important}.i-amphtml-body-minheight>body{min-height:calc(100vh + 1px)}.i-amphtml-element{display:inline-block}.i-amphtml-blurry-placeholder{-webkit-transition:opacity 0.3s cubic-bezier(0.0,0.0,0.2,1)!important;transition:opacity 0.3s cubic-bezier(0.0,0.0,0.2,1)!important}[layout=nodisplay]:not(.i-amphtml-element){display:none!important}.i-amphtml-layout-fixed,[layout=fixed][width][height]:not(.i-amphtml-layout-fixed){display:inline-block;position:relative}.i-amphtml-layout-responsive,[layout=responsive][width][height]:not(.i-amphtml-layout-responsive),[width][height][sizes]:not(.i-amphtml-layout-responsive){display:block;position:relative}.i-amphtml-layout-intrinsic{display:inline-block;position:relative;max-width:100%}.i-amphtml-intrinsic-sizer{max-width:100%;display:block!important}.i-amphtml-layout-container,.i-amphtml-layout-fixed-height,[layout=container],[layout=fixed-height][height]{display:block;position:relative}.i-amphtml-layout-fill,[layout=fill]:not(.i-amphtml-layout-fill){display:block;overflow:hidden!important;position:absolute;top:0;left:0;bottom:0;right:0}.i-amphtml-layout-flex-item,[layout=flex-item]:not(.i-amphtml-layout-flex-item){display:block;position:relative;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}.i-amphtml-layout-fluid{position:relative}.i-amphtml-layout-size-defined{overflow:hidden!important}.i-amphtml-layout-awaiting-size{position:absolute!important;top:auto!important;bottom:auto!important}i-amphtml-sizer{display:block!important}.i-amphtml-blurry-placeholder,.i-amphtml-fill-content{display:block;height:0;max-height:100%;max-width:100%;min-height:100%;min-width:100%;width:0;margin:auto}.i-amphtml-layout-size-defined .i-amphtml-fill-content{position:absolute;top:0;left:0;bottom:0;right:0}.i-amphtml-layout-intrinsic .i-amphtml-sizer{max-width:100%}.i-amphtml-replaced-content,.i-amphtml-screen-reader{padding:0!important;border:none!important}.i-amphtml-screen-reader{position:fixed!important;top:0px!important;left:0px!important;width:4px!important;height:4px!important;opacity:0!important;overflow:hidden!important;margin:0!important;display:block!important;visibility:visible!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:8px!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:12px!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:16px!important}.i-amphtml-unresolved{position:relative;overflow:hidden!important}#i-amphtml-wrapper.i-amphtml-scroll-disabled,.i-amphtml-scroll-disabled{overflow-x:hidden!important;overflow-y:hidden!important}.i-amphtml-select-disabled{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important}.i-amphtml-notbuilt,[layout]:not(.i-amphtml-element){position:relative;overflow:hidden!important;color:transparent!important}.i-amphtml-notbuilt:not(.i-amphtml-layout-container)>*,[layout]:not([layout=container]):not(.i-amphtml-element)>*{display:none}.i-amphtml-ghost{visibility:hidden!important}.i-amphtml-element>[placeholder],[layout]:not(.i-amphtml-element)>[placeholder]{display:block}.i-amphtml-element>[placeholder].amp-hidden,.i-amphtml-element>[placeholder].hidden{visibility:hidden}.i-amphtml-element:not(.amp-notsupported)>[fallback],.i-amphtml-layout-container>[placeholder].amp-hidden,.i-amphtml-layout-container>[placeholder].hidden{display:none}.i-amphtml-layout-size-defined>[fallback],.i-amphtml-layout-size-defined>[placeholder]{position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;z-index:1}.i-amphtml-notbuilt>[placeholder]{display:block!important}.i-amphtml-hidden-by-media-query{display:none!important}.i-amphtml-element-error{background:red!important;color:#fff!important;position:relative!important}.i-amphtml-element-error:before{content:attr(error-message)}i-amp-scroll-container,i-amphtml-scroll-container{position:absolute;top:0;left:0;right:0;bottom:0;display:block}i-amp-scroll-container.amp-active,i-amphtml-scroll-container.amp-active{overflow:auto;-webkit-overflow-scrolling:touch}.i-amphtml-loading-container{display:block!important;pointer-events:none;z-index:1}.i-amphtml-notbuilt>.i-amphtml-loading-container{display:block!important}.i-amphtml-loading-container.amp-hidden{visibility:hidden}.i-amphtml-loader-line{position:absolute;top:0;left:0;right:0;height:1px;overflow:hidden!important;background-color:hsla(0,0%,59.2%,0.2);display:block}.i-amphtml-loader-moving-line{display:block;position:absolute;width:100%;height:100%!important;background-color:hsla(0,0%,59.2%,0.65);z-index:2}@-webkit-keyframes i-amphtml-loader-line-moving{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}to{-webkit-transform:translateX(100%);transform:translateX(100%)}}@keyframes i-amphtml-loader-line-moving{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}to{-webkit-transform:translateX(100%);transform:translateX(100%)}}.i-amphtml-loader-line.amp-active .i-amphtml-loader-moving-line{-webkit-animation:i-amphtml-loader-line-moving 4s ease infinite;animation:i-amphtml-loader-line-moving 4s ease infinite}.i-amphtml-loader{position:absolute;display:block;height:10px;top:50%;left:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;white-space:nowrap}.i-amphtml-loader.amp-active .i-amphtml-loader-dot{-webkit-animation:i-amphtml-loader-dots 2s infinite;animation:i-amphtml-loader-dots 2s infinite}.i-amphtml-loader-dot{position:relative;display:inline-block;height:10px;width:10px;margin:2px;border-radius:100%;background-color:rgba(0,0,0,0.3);box-shadow:2px 2px 2px 1px rgba(0,0,0,0.2);will-change:transform}.i-amphtml-loader .i-amphtml-loader-dot:first-child{-webkit-animation-delay:0s;animation-delay:0s}.i-amphtml-loader .i-amphtml-loader-dot:nth-child(2){-webkit-animation-delay:.1s;animation-delay:.1s}.i-amphtml-loader .i-amphtml-loader-dot:nth-child(3){-webkit-animation-delay:.2s;animation-delay:.2s}@-webkit-keyframes i-amphtml-loader-dots{0%,to{-webkit-transform:scale(.7);transform:scale(.7);background-color:rgba(0,0,0,0.3)}50%{-webkit-transform:scale(.8);transform:scale(.8);background-color:rgba(0,0,0,0.5)}}@keyframes i-amphtml-loader-dots{0%,to{-webkit-transform:scale(.7);transform:scale(.7);background-color:rgba(0,0,0,0.3)}50%{-webkit-transform:scale(.8);transform:scale(.8);background-color:rgba(0,0,0,0.5)}}.i-amphtml-element>[overflow]{cursor:pointer;position:relative;z-index:2;visibility:hidden}.i-amphtml-element>[overflow].amp-visible{visibility:visible}template{display:none!important}.amp-border-box,.amp-border-box *,.amp-border-box :after,.amp-border-box :before{box-sizing:border-box}amp-pixel{display:none!important}amp-instagram{padding:64px 0px 0px!important;background-color:#fff}amp-analytics,amp-story-auto-ads{position:fixed!important;top:0!important;width:1px!important;height:1px!important;overflow:hidden!important;visibility:hidden}html.i-amphtml-fie>amp-analytics{position:initial!important}amp-iframe iframe{box-sizing:border-box!important}[amp-access][amp-access-hide]{display:none}[subscriptions-dialog],body:not(.i-amphtml-subs-ready) [subscriptions-action],body:not(.i-amphtml-subs-ready) [subscriptions-section]{display:none!important}[visible-when-invalid]:not(.visible),amp-experiment,amp-live-list>[update],amp-share-tracking,form [submit-error],form [submit-success],form [submitting]{display:none}.i-amphtml-jank-meter{position:fixed;background-color:rgba(232,72,95,0.5);bottom:0;right:0;color:#fff;font-size:16px;z-index:1000;padding:5px}amp-accordion{display:block!important}amp-accordion>section{float:none!important}amp-accordion>section>*{float:none!important;display:block!important;overflow:hidden!important;position:relative!important}.i-amphtml-accordion-content,.i-amphtml-accordion-header,amp-accordion,amp-accordion>section{margin:0}.i-amphtml-accordion-header{cursor:pointer;background-color:#efefef;padding-right:20px;border:1px solid #dfdfdf}amp-accordion>section>:last-child{display:none!important}amp-accordion>section[expanded]>:last-child{display:block!important}amp-list[resizable-children]>.i-amphtml-loading-container.amp-hidden{display:none!important}amp-list[load-more] [load-more-button],amp-list[load-more] [load-more-end],amp-list[load-more] [load-more-failed],amp-list[load-more] [load-more-loading]{display:none}amp-story-page,amp-story[standalone]{display:block!important;height:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;width:100%!important}amp-story[standalone]{background-color:#202125!important;position:relative!important}amp-story-page{background-color:#757575}amp-story .i-amphtml-loader{display:none!important}amp-story-page:not(:first-of-type):not([distance]):not([active]){-webkit-transform:translateY(1000vh)!important;transform:translateY(1000vh)!important}amp-autocomplete{position:relative!important;display:inline-block!important}amp-autocomplete>input{padding:4px!important}[amp-fx^=fly-in]{visibility:hidden}@media only screen and (max-width:979px){amp-addthis[data-widget-type=floating]{position:fixed!important;width:100%!important;height:50px;bottom:0}}@media only screen and (min-width:980px){amp-addthis[data-widget-type=floating]{display:none}}\n/*# sourceURL=/css/amp.css*/";function RL(A,B){var C=100;function D(D){H=null;G=A.setTimeout(E,C);B.apply(null,D)}function E(){G=0;H&&D(H)}var G=0,H=null;return function(A){for(var B=[],C=0;C<arguments.length;++C)B[C-0]=arguments[C];G?H=B:D(B)}}function SL(A,B){function C(){D=0;var H=300-(A.Date.now()-E);if(0<H)D=A.setTimeout(C,H);else{var I=G;G=null;B.apply(null,I)}}var D=0,E=0,G=null;return function(B){for(var H=[],J=0;J<arguments.length;++J)H[J-0]=arguments[J];E=A.Date.now();G=H;D||(D=A.setTimeout(C,300))}};function TL(){var A=UL();return function(B){return setTimeout(B,A())}}function UL(){var A=0;return function(){var B=Math.pow(1.5,A++);var C=B*(C||.3)*Math.random();.5<Math.random()&&(C*=-1);B+=C;return 1E3*B}};function VL(A,B){UI(A,"amp-analytics-instrumentation","amp-analytics").then(function(C){C&&C.triggerEventForTarget(A,"user-error",B)})};var WL=self.AMPErrors||[];self.AMPErrors=WL;function XL(A){XL=TL();return XL(A)}function YL(A){try{return JSON.stringify(A)}catch(B){return String(A)}}var ZL; | |
| function $L(A,B){try{if(A)if(void 0!==A.message)A=SB(A);else{var C=A;A=Error(YL(C));A.origError=C}else A=Error("Unknown error");if(A.reported)return A;A.reported=!0;var D=B||A.associatedElement;D&&D.classList&&(D.classList.add("i-amphtml-error"),N().development&&(D.classList.add("i-amphtml-element-error"),D.setAttribute("error-message",A.message)));if(self.console){var E=console.error||console.log;A.messageArray?E.apply(console,A.messageArray):D?E.call(console,A.message,D):E.call(console,A.message)}D&& | |
| D.QB&&D.QB("amp:error",A.message);AM.call(void 0,void 0,void 0,void 0,void 0,A)}catch(G){setTimeout(function(){throw G;})}return A}function BM(A){return A?"string"==typeof A?SC(A,"BLOCK_BY_CONSENT"):"string"==typeof A.message?SC(A.message,"BLOCK_BY_CONSENT"):!1:!1}function CM(){var A=self;A.onerror=AM;A.addEventListener("unhandledrejection",function(A){!A.reason||"CANCELLED"!==A.reason.message&&"BLOCK_BY_CONSENT"!==A.reason.message?$L(A.reason||Error("rejected promise "+A)):A.preventDefault()})} | |
| function AM(A,B,C,D,E){var G=this;this&&this.document&&OL(this.document);if(!N().development){var H=!1;try{H=DM()}catch(J){}if(!(H&&.01<Math.random())){var I=EM(A,B,C,D,E,H);I&&XL(function(){return FM(G,I)})}}}function FM(A,B){return GM(A,B).then(function(A){if(!A){var C=new XMLHttpRequest;C.open("POST",RF.errorReporting,!0);C.send(JSON.stringify(B))}})} | |
| function GM(A,B){A=ZI(A);if(!A.isSingleDoc())return Promise.resolve(!1);var C=A.getAmpDoc(),D=C.getRootNode().documentElement,E=D.hasAttribute("report-errors-to-viewer");if(!E)return Promise.resolve(!1);var G=FJ(C);return G.hasCapability("errorReporter")?G.isTrustedViewer().then(function(A){if(!A)return!1;G.sendMessage("error",$B({m:B.m,a:B.a,s:B.s,el:B.el,v:B.v,jse:B.jse}));return!0}):Promise.resolve(!1)} | |
| function EM(A,B,C,D,E,G){var H=A;E&&(H=E.message?E.message:String(E));H||(H="Unknown error");A=H;var I=!(!E||!E.expected);if(!/_reported_/.test(A)&&"CANCELLED"!=A){var J=!(self&&self.window),K=Math.random();if(-1!=A.indexOf("Failed to load:")||"Script error."==A||J)if(I=!0,.001<K)return;var L=IB(A);if(!(L&&.1<K)){H=Object.create(null);H.v=N().rtvVersion;H.noAmp=G?"1":"0";H.m=A.replace("\u200b\u200b\u200b","");H.a=L?"1":"0";H.ex=I?"1":"0";H.dw=J?"1":"0";var M="1p";self.context&&self.context.location? | |
| (H["3p"]="1",M="3p"):N().runtime&&(M=N().runtime);N().singlePassType&&(H.spt=N().singlePassType);H.rt=M;"inabox"===M&&(H.adid=N().a4aId);H.ca=HH(self)?"1":"0";G=self;H.bt=G.AMP_CONFIG&&G.AMP_CONFIG.type?G.AMP_CONFIG.type:"unknown";self.location.ancestorOrigins&&self.location.ancestorOrigins[0]&&(H.or=self.location.ancestorOrigins[0]);self.viewerState&&(H.vs=self.viewerState);self.parent&&self.parent!=self&&(H.iem="1");if(self.AMP&&self.AMP.viewer){var P=self.AMP.viewer.getResolvedViewerUrl(),Q=self.AMP.viewer.maybeGetMessagingOrigin(); | |
| P&&(H.rvu=P);Q&&(H.mso=Q)}ZL||(ZL=HM());H.jse=ZL;var R=[];G=self.__AMP__EXPERIMENT_TOGGLES||null;for(var Z in G)R.push(Z+"="+(G[Z]?"1":"0"));H.exps=R.join(",");E?(H.el=E.associatedElement?E.associatedElement.tagName:"u",E.args&&(H.args=JSON.stringify(E.args)),L||E.ignoreStack||!E.stack||(H.s=E.stack),E.message&&(E.message+=" _reported_")):(H.f=B||"",H.l=C||"",H.c=D||"");H.r=self.document.referrer;H.ae=WL.join(",");H.fr=self.location.originalHash||self.location.hash;B=A;25<=WL.length&&WL.splice(0, | |
| WL.length-25+1);WL.push(B);return H}}}function DM(){for(var A=self.document.querySelectorAll("script[src]"),B=0;B<A.length;B++)if(!XG(A[B].src.toLowerCase()))return!0;return!1}function HM(){function A(){}A.prototype.t=function(){throw Error("message");};var B=new A;try{B.t()}catch(D){B=D.stack;if(SC(B,"t@"))return"Safari";if(-1<B.indexOf(".prototype.t@"))return"Firefox";var C=B.split("\n").pop();if(/\bat .* \(/i.test(C))return"IE";if(SC(B,"Error: message"))return"Chrome"}return"unknown"};var IM="__AMP_ACTION_MAP__"+Math.random(),$M={form:["submit","clear"]},AN={button:!0,checkbox:!0,link:!0,listbox:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,option:!0,radio:!0,scrollbar:!0,slider:!0,spinbutton:!0,"switch":!0,tab:!0,treeitem:!0}; | |
| function BN(A,B,C,D,E,G,H,I,J,K){I=void 0===I?"?":I;J=void 0===J?null:J;K=void 0===K?Math.random():K;this.node=A;this.method=B;this.args=C;this.source=D;this.caller=E;this.event=G;this.trust=H;this.actionEventType=I;this.tagOrTarget=J||A.tagName;this.sequenceId=K} | |
| BN.prototype.satisfiesTrust=function(A){return GB(this.trust)?this.trust<A?(O().error("Action",'"'+this.actionEventType+'" is not allowed to invoke '+('"'+this.tagOrTarget+"."+this.method+'".')),!1):!0:(S().error("Action","Invalid trust for '"+this.method+"': "+this.trust),!1)}; | |
| function CN(A,B){this.ampdoc=A;this.PA=B||A.getRootNode();this.$B=DN(this);this.HE=ZB();this.DK=ZB();this.addEvent("tap");this.addEvent("submit");this.addEvent("change");this.addEvent("input-debounced");this.addEvent("input-throttled");this.addEvent("valid");this.addEvent("invalid")}CN.installInEmbedWindow=function(A,B){RH(A,"action",new CN(B,A.document))};F=CN.prototype; | |
| F.addEvent=function(A){var B=this;if("tap"==A)this.PA.addEventListener("click",function(C){C.defaultPrevented||B.trigger(C.target,A,C,100)}),this.PA.addEventListener("keydown",function(C){var D=C.target,E=C.key;if("Enter"==E||" "==E){var I=D.getAttribute("role"),J=I&&YB.call(AN,I.toLowerCase());!C.defaultPrevented&&J&&(C.preventDefault(),B.trigger(D,A,C,100))}});else if("submit"==A)this.PA.addEventListener(A,function(C){B.trigger(C.target,A,C,100)});else if("change"==A)this.PA.addEventListener(A, | |
| function(C){var D=C.target;EN(C);B.trigger(D,A,C,100)});else if("input-debounced"==A){var C=SL(this.ampdoc.win,function(C){B.trigger(C.target,A,C,100)});this.PA.addEventListener("input",function(A){var B=new FN(A);EN(B);C(B)})}else if("input-throttled"==A){var D=RL(this.ampdoc.win,function(C){B.trigger(C.target,A,C,100)});this.PA.addEventListener("input",function(A){A=new FN(A);EN(A);D(A)})}else"valid"!=A&&"invalid"!=A||this.PA.addEventListener(A,function(C){B.trigger(C.target,A,C,100)})}; | |
| F.addGlobalTarget=function(A,B){this.HE[A]=B};F.addGlobalMethodHandler=function(A,B,C){this.DK[A]={handler:B,minTrust:void 0===C?100:C}};F.trigger=function(A,B,C,D,E){GN(this,A,B,C,D,E)};F.execute=function(A,B,C,D,E,G,H){A=new BN(A,B,C,D,E,G,H);HN(this,A)}; | |
| F.installActionHandler=function(A,B){A.getAttribute("id");if(A.__AMP_ACTION_HANDLER__)S().error("Action","Action handler already installed for "+A);else{A.__AMP_ACTION_HANDLER__=B;var C=A.__AMP_ACTION_QUEUE__;CB(C)&&EJ(A.ownerDocument.defaultView).delay(function(){C.forEach(function(A){try{B(A)}catch(E){S().error("Action","Action execution failed:",A,E)}});A.__AMP_ACTION_QUEUE__.length=0},1)}};F.hasAction=function(A,B,C){return!!IN(A,B,C)}; | |
| F.hasResolvableAction=function(A,B,C){var D=this;return(A=IN(A,B,C))?A.actionInfos.some(function(A){A=A.target;return!(D.HE[A]?!D.PA:!D.PA.getElementById(A))}):!1};F.setWhitelist=function(A){this.$B=A};F.addToWhitelist=function(A,B){this.$B||(this.$B=[]);this.$B.push({tagOrTarget:A,method:B})}; | |
| function GN(A,B,C,D,E,G){var H=IN(B,C);if(H){var I=Math.random(),J=null;H.actionInfos.forEach(function(K){function L(){var G=A.HE[M]?A.PA:A.PA.getElementById(M);if(G)return G=new BN(G,P,R,B,H.node,D,E,C,G.tagName||M,I),HN(A,G);A.GB('Target "'+M+'" not found for action ['+Q+"].")}var M=K.target,P=K.method,Q=K.str,R=JN(K.args,D,G);J=J?J.then(L):L()})}}F.GB=function(A,B){if(B)throw A=O().createError("[Action] "+A),$L(A,B),A;O().error("Action",A)}; | |
| function HN(A,B){var C=B.method,D=B.tagOrTarget;if(A.$B&&!KN(B,A.$B))return A.GB('"'+D+"."+C+'" is not whitelisted '+JSON.stringify(A.$B)+"."),null;var E=A.HE[D];if(E)return E(B);var G=B.node,H=A.DK[C];if(H&&B.satisfiesTrust(H.minTrust))return H.handler(B);var I=G.tagName.toLowerCase();if("amp-"===I.substring(0,4))return G.enqueAction?G.enqueAction(B):A.GB('Unrecognized AMP element "'+I+'".',G),null;var J=$M[I];if("amp-"===(G.getAttribute("id")||"").substring(0,4)||J&&-1<J.indexOf(C))return(A=G.__AMP_ACTION_HANDLER__)? | |
| A(B):(G.__AMP_ACTION_QUEUE__=G.__AMP_ACTION_QUEUE__||[],G.__AMP_ACTION_QUEUE__.push(B)),null;A.GB("Target ("+D+") doesn't support \""+C+'" action.',B.caller);return null} | |
| function IN(A,B,C){for(;A&&(!C||A!=C);){var D=B;var E=A;var G=D,H=E[IM];void 0===H&&(H=null,E.hasAttribute("on")?(G=E.getAttribute("on"),H=LN(G,E),E[IM]=H):E.hasAttribute("execute")&&(H=E.getAttribute("execute"),H=LN(G+":"+H,E),E[IM]=H));var I=(E=H)?E[D]||null:null;if(I&&!A.disabled&&!BD(A,":disabled"))return{node:A,actionInfos:I};A=A.parentElement}return null}F.setActions=function(A,B){A.setAttribute("on",B);delete A[IM]}; | |
| function DN(A){var B=A.ampdoc.getRootNode().head;return B?(B=B.querySelector('meta[name="amp-action-whitelist"]'))?B.getAttribute("content").split(",").filter(function(A){return A}).map(function(B){var C=B.split(".");if(2>C.length)A.GB("Invalid action whitelist entry: "+B+".");else return{tagOrTarget:C[0].trim(),method:C[1].trim()}}).filter(function(A){return A}):null:null} | |
| function EN(A){var B=ZB(),C=A.target;void 0!==C.value&&(B.value=C.value);"INPUT"==C.tagName&&(B.valueAsNumber=Number(C.value));void 0!==C.checked&&(B.checked=C.checked);if(void 0!==C.min||void 0!==C.max)B.min=C.min,B.max=C.max;0<Object.keys(B).length&&(A.detail=B)} | |
| function KN(A,B){var C=A.method,D=A.node;A=A.tagOrTarget;"activate"===C&&"function"==typeof D.getDefaultActionAlias&&(C=D.getDefaultActionAlias());var E=C.toLowerCase(),G=A.toLowerCase();return B.some(function(A){return A.tagOrTarget.toLowerCase()!==G&&"*"!==A.tagOrTarget||A.method.toLowerCase()!==E?!1:!0})}function FN(A){this.detail=null;var B=this||ZB(),C;for(C in A)B[C]="function"===typeof A[C]?MN:A[C]}function MN(){} | |
| function LN(A,B){var C=NN.bind(null,A,B),D=ON.bind(null,A,B);B=null;var E=new PN(A);do{var G=E.next();if(G.type!=QN&&(G.type!=RN||";"!=G.value))if(G.type==SN||G.type==TN){var H=G.value;D(E.next(),[RN],":");var I=[];do{var J=D(E.next(),[SN,TN]).value,K="activate",L=null;var M=E.peek();if(M.type==RN&&"."==M.value&&(E.next(),K=D(E.next(),[SN,TN]).value||K,M=E.peek(),M.type==RN&&"("==M.value)){E.next();L=E;var P=D,Q=C,R=L.peek(),Z=null;if(R.type==UN){Z=ZB();var FA=L.next().value;Z.__AMP_OBJECT_STRING__= | |
| FA;P(L.next(),[RN],")")}else{do{var JA=FA=L.next();R=JA.type;JA=JA.value;if(R!=RN||","!=JA&&")"!=JA)if(R==SN||R==TN){P(L.next(),[RN],"=");FA=P(L.next(!0),[SN,TN]);var KA=[FA];if(FA.type==TN)for(R=L.peek();R.type==RN&&"."==R.value;R=L.peek())L.next(),FA=P(L.next(!1),[TN]),KA.push(FA);R=VN(KA);Z||(Z=ZB());Z[JA]=R;R=L.peek();Q(R.type==RN&&(","==R.value||")"==R.value),"Expected either [,] or [)]")}else Q(!1,"; unexpected token ["+(FA.value||"")+"]")}while(FA.type!=RN||")"!=FA.value)}L=Z}I.push({event:H, | |
| target:J,method:K,args:L,str:A});M=E.peek()}while(M.type==RN&&","==M.value&&E.next());B||(B=ZB());B[H]=I}else C(!1,"; unexpected token ["+(G.value||"")+"]")}while(G.type!=QN);return B}function VN(A){return 0==A.length?null:1==A.length?A[0].value:{expression:A.map(function(A){return A.value}).join(".")}} | |
| function JN(A,B,C){if(!A)return A;var D=C||$B({});B&&(B=B.detail)&&(D.event=B);var E=ZB();Object.keys(A).forEach(function(B){var C=A[B];if("object"==typeof C&&C.expression){C=C.expression;if("."==C)C=D;else{C=C.split(".");for(var G=D,J=0;J<C.length;J++){var K=C[J];if(K&&G&&void 0!==G[K]&&TD(G,K))G=G[K];else{G=void 0;break}}C=G}var L=C;C=void 0===L?null:L}E[B]=D[C]?D[C]:C});return E}function NN(A,B,C,D){return T(C,"Invalid action definition in %s: [%s] %s",B,A,D||"")} | |
| function ON(A,B,C,D,E){void 0!==E?NN(A,B,D.includes(C.type)&&C.value==E,"; expected ["+E+"]"):NN(A,B,D.includes(C.type));return C}var QN=1,RN=2,SN=3,TN=4,UN=5;function PN(A){this.O=A;this.WG=-1}PN.prototype.next=function(A){var B=WN(this,A||!1);this.WG=B.index;return B};PN.prototype.peek=function(A){return WN(this,A||!1)}; | |
| function WN(A,B){var C=A.WG+1;if(C>=A.O.length)return{type:QN,index:A.WG};var D=A.O.charAt(C);if(-1!=" \t\n\r\f\v\u00a0\u2028\u2029".indexOf(D)){for(C++;C<A.O.length&&-1!=" \t\n\r\f\v\u00a0\u2028\u2029".indexOf(A.O.charAt(C));C++);if(C>=A.O.length)return{type:QN,index:C};D=A.O.charAt(C)}if(B&&(XN(D)||"."==D&&C+1<A.O.length&&XN(A.O[C+1]))){for(var E="."==D,G=C+1;G<A.O.length;G++){var H=A.O.charAt(G);if("."==H)E=!0;else if(!XN(H))break}A=A.O.substring(C,G);A=E?parseFloat(A):parseInt(A,10);C=G-1;return{type:SN, | |
| value:A,index:C}}if(-1!=";:.()=,|!".indexOf(D))return{type:RN,value:D,index:C};if(-1!="\"'".indexOf(D)){G=-1;for(var I=C+1;I<A.O.length;I++)if(A.O.charAt(I)==D){G=I;break}if(-1==G)return{type:0,index:C};A=A.O.substring(C+1,G);C=G;return{type:SN,value:A,index:C}}if("{"==D){var J=1;G=-1;for(D=C+1;D<A.O.length;D++){var K=A.O[D];"{"==K?J++:"}"==K&&J--;if(0>=J){G=D;break}}if(-1==G)return{type:0,index:C};A=A.O.substring(C,G+1);C=G;return{type:UN,value:A,index:C}}for(G=C+1;G<A.O.length&&-1==" \t\n\r\f\x0B\u00a0\u2028\u2029;:.()=,|!\"'{}".indexOf(A.O.charAt(G));G++); | |
| A=A.O.substring(C,G);C=G-1;return!B||"true"!=A&&"false"!=A?XN(A.charAt(0))?{type:SN,value:A,index:C}:{type:TN,value:A,index:C}:{type:SN,value:"true"==A,index:C}}function XN(A){return"0"<=A&&"9">=A};function YN(A,B){for(var C=[],D=0,E=0;E<A.length;E++){var G=A[E];B(G,E,A)?C.push(G):(D<E&&(A[D]=G),D++)}D<A.length&&(A.length=D);return C}function ZN(A,B){for(var C=0;C<A.length;C++)if(B(A[C],C,A))return C;return-1};function $N(A){return!!A&&"function"==typeof A.getFormData};var AO=["GET","POST"],BO=[CB,EB];function CO(A,B){var C=Object.assign({},B);if($N(B.body)){var D=B.body;C.headers["Content-Type"]="multipart/form-data;charset=utf-8";B=D.entries();for(var E=[],G=B.next();!G.done;G=B.next())E.push(G.value);C.body=E}return{input:A,init:C}} | |
| function DO(A,B){T(EB(A),"Object expected: %s",A);var C="document"==B;if(!C)return new Response(A.body,A.init);var D=ZB(),E={status:200,statusText:"OK",getResponseHeader:function(A){return D[String(A).toLowerCase()]||null}};if(A.init){var G=A.init;CB(G.headers)&&G.headers.forEach(function(A){D[String(A[0]).toLowerCase()]=String(A[1])});G.status&&(E.status=parseInt(G.status,10));G.statusText&&(E.statusText=String(G.statusText))}return new Response(A.body?String(A.body):"",E)} | |
| function EO(A,B,C,D){if(!B)return Promise.resolve();var E=FJ(B),G=E.whenFirstVisible();return!XG(C)&&E.hasCapability("xhrInterceptor")&&B.getRootNode().documentElement.hasAttribute("allow-xhr-interception")?G.then(function(){return E.isTrustedViewer()}).then(function(B){var G=N(A).development;if(B||G){var H=$B({originalRequest:CO(C,D)});return E.sendMessageAwaitResponse("xhr",H).then(function(A){return DO(A,D.responseType)})}}):G}function FO(A,B,C){!1!==C.ampCors&&(B=CH(A,B));return B} | |
| function GO(A,B){A=A||{};var C=A.method;void 0===C?C="GET":(C=C.toUpperCase(),AO.includes(C));A.method=C;A.headers=A.headers||$B({});B&&(A.headers.Accept=B);return A} | |
| function HO(A,B,C){!1===C.ampCors&&(C.requireAmpResponseSourceOrigin=!1);!0===C.requireAmpResponseSourceOrigin&&S().error("XHR","requireAmpResponseSourceOrigin is deprecated, use ampCors instead");void 0===C.requireAmpResponseSourceOrigin&&(C.requireAmpResponseSourceOrigin=!0);var D=A.origin||U(A.location.href).origin,E=U(B).origin;D==E&&(C.headers=C.headers||{},C.headers["AMP-Same-Origin"]="true");return C} | |
| function IO(A){var B=GO(A,"application/json");if("POST"==B.method&&!$N(B.body)){BO.some(function(A){return A(B.body)});B.headers["Content-Type"]=B.headers["Content-Type"]||"text/plain;charset=utf-8";var C=B.headers["Content-Type"];B.body="application/x-www-form-urlencoded"===C?TG(B.body):JSON.stringify(B.body)}return B}function JO(A){return new Promise(function(B){if(A.ok)return B(A);B=A.status;var C=O().createError("HTTP error "+B);C.retriable=415==B||500<=B&&600>B;C.response=A;throw C;})};function KO(A){this.win=A;A=ZI(A);this.GM=A.isSingleDoc()?A.getAmpDoc():null}F=KO.prototype;F.BN=function(A,B){var C=this,D=arguments;return EO(this.win,this.GM,A,B).then(function(A){if(A)return A;if($N(B.body)){var E=B.body;B.body=E.getFormData()}return C.win.fetch.apply(null,D)})}; | |
| function LO(A,B,C){C=void 0===C?{}:C;B=FO(A.win,B,C);C=HO(A.win,B,C);return A.BN(B,C).then(function(B){var D=A.win,G=C,H=B.headers.get("AMP-Access-Control-Allow-Source-Origin");H?(D=BH(D.location.href),T(H==D,"Returned AMP-Access-Control-Allow-Source-Origin is not equal to the current: "+H+(" vs "+D))):G.requireAmpResponseSourceOrigin&&T(!1,"Response must contain the AMP-Access-Control-Allow-Source-Origin header");return B},function(A){var C=U(B).origin;throw O().createExpectedError("XHR","Failed fetching"+ | |
| (" ("+C+"/...):"),A&&A.message);})}F.fetchJson=function(A,B){return this.fetch(A,IO(B))};F.fetchText=function(A,B){return this.fetch(A,GO(B,"text/plain"))};F.fetch=function(A,B){B=GO(B);return LO(this,A,B).then(function(A){return JO(A)})};F.sendSignal=function(A,B){return LO(this,A,B).then(function(A){return JO(A)})};F.getCorsUrl=function(A,B){return CH(A,B)};function MO(A){KO.call(this,A);this.YC=ZB()}LA(MO,KO);MO.prototype.fetch=function(A,B){var C=this,D=B&&B.headers&&B.headers.Accept||"",E=!B||!B.method||"GET"===B.method,G=WG(A)+D,H=!!this.YC[G];if(E&&H)return this.YC[G].then(function(A){return A.clone()});var I=KO.prototype.fetch.call(this,A,B);E&&(this.YC[G]=I.then(function(A){delete C.YC[G];return A.clone()},function(A){delete C.YC[G];throw A;}));return I};var NO=[];function OO(A){TK.call(this,A);NO.push(this)}LA(OO,TK);OO.prototype.getLayoutPriority=function(){return 0};OO.prototype.isLayoutSupported=function(){return!0};OO.prototype.reconstructWhenReparented=function(){return!1};var PO={0:"cld",2:"adld"};function QO(A,B){this.F=A;this.FF=WH(A);this.FE=this.EE=null;this.VJ=!1;this.JH=PO[B]}QO.prototype.enterViewport=function(){this.JH&&!this.EE&&(this.EE=this.F.Date.now(),RO(this))};QO.prototype.startLayout=function(){this.JH&&!this.FE&&(this.FE=this.F.Date.now(),RO(this))};function RO(A){if(A.FF&&A.FF.isPerformanceTrackingOn()&&!A.VJ&&A.EE&&A.FE){var B=A.F.Math.max(A.FE-A.EE,0);A.FF.tickDelta(A.JH,B);A.FF.throttledFlush();A.VJ=!0}};function SO(A,B,C){B.__AMP__RESOURCE=this;this.VG=A;this.element=B;this.debugid=B.tagName.toLowerCase()+"#"+A;this.hostWin=B.ownerDocument.defaultView;this.D=C;this.RN=B.hasAttribute("placeholder");this.AD=!1;this.KC=void 0;this.L=B.isBuilt()?1:0;this.$H=-1;this.KA=0;this.PK=null;this.LE=!1;this.FA=OE(-1E4,-1E4,0,0);this.ZG=null;this.FH=!1;this.HC=this.SA=null;this.ZH=void 0;this.RK=!1;A=new AC;this.WN=A.promise;this.MH=A.resolve;this.I=W(this.hostWin,"layers");this.UF=W(this.hostWin,"layers-prioritization")} | |
| function TO(A){return A.__AMP__RESOURCE}F=SO.prototype;F.getId=function(){return this.VG};F.updateOwner=function(A){this.KC=A};F.getOwner=function(){if(void 0===this.KC){for(var A=this.element;A;A=A.parentElement)if(A.__AMP__OWNER){this.KC=A.__AMP__OWNER;break}void 0===this.KC&&(this.KC=null)}return this.KC};F.hasOwner=function(){return!!this.getOwner()};F.getLayoutPriority=function(){return-1!=this.$H?this.$H:this.element.getLayoutPriority()};F.updateLayoutPriority=function(A){this.$H=A}; | |
| F.getState=function(){return this.L};F.isBuilt=function(){return this.element.isBuilt()};F.isBuilding=function(){return this.AD};F.whenBuilt=function(){return this.element.signals().whenSignal("res-built")}; | |
| F.build=function(){var A=this;if(this.AD||!this.element.isUpgraded()||!this.D.grantBuildPermission())return null;this.AD=!0;return this.element.build().then(function(){A.AD=!1;A.hasBeenMeasured()?(A.L=2,A.element.updateLayoutBox(A.getLayoutBox(),!0)):A.L=1;A.element.signals().signal("res-built");A.element.dispatchCustomEvent("amp:built")},function(B){A.maybeReportErrorOnBuildFailure(B);A.AD=!1;A.element.signals().rejectSignal("res-built",B);throw B;})}; | |
| F.maybeReportErrorOnBuildFailure=function(A){BM(A)||S().error("Resource","failed to build:",this.debugid,A)};F.applySizesAndMediaQuery=function(){this.element.applySizesAndMediaQuery()};F.changeSize=function(A,B,C){this.element.changeSize(A,B,C);this.requestMeasure()};F.overflowCallback=function(A,B,C,D){A&&(this.ZH={height:B,width:C,margins:D});this.element.overflowCallback(A,B,C,D)};F.resetPendingChangeSize=function(){this.ZH=void 0};F.getPendingChangeSize=function(){return this.ZH}; | |
| F.getUpgradeDelayMs=function(){return this.element.getUpgradeDelayMs()}; | |
| F.measure=function(){if(!(this.RN&&this.element.parentElement&&SC(this.element.parentElement.tagName,"AMP-"))||"__AMP__RESOURCE"in this.element.parentElement){this.FH=!1;var A=this.FA;if(this.I){var B=this.element;B.getLayers().remeasure(B,!0);this.FA=this.getPageLayoutBox()}else{B=this.D.getViewport();var C=this.D.getViewport().getLayoutRect(this.element);this.FA=C;var D=!1;if(B.supportsPositionFixed()&&this.isDisplayed())for(var E=this.D.win,G=E.document.body,H=this.element;H&&H!=G;H=H.offsetParent){if(H.isAlwaysFixed&& | |
| H.isAlwaysFixed()){D=!0;break}if(B.isDeclaredFixed(H)&&"fixed"==TJ(E,H).position){D=!0;break}}if(this.LE=D)this.FA=RE(C,-B.getScrollLeft(),-B.getScrollTop())}var I=this.FA;B=A;C=I;var J=!(B.width==C.width&&B.height===C.height);1!=this.L&&A.top==I.top&&!J||!this.element.isUpgraded()||0==this.L||1!=this.L&&!this.element.isRelayoutNeeded()||(this.L=2);this.hasBeenMeasured()||(this.ZG=I);this.element.updateLayoutBox(I,J)}}; | |
| F.completeCollapse=function(){SJ(this.element,!1);this.FA=this.I?OE(0,0,0,0):OE(this.FA.left,this.FA.top,0,0);this.LE=!1;this.element.updateLayoutBox(this.getLayoutBox());var A=this.getOwner();A&&A.collapsedCallback(this.element)};F.completeExpand=function(){SJ(this.element,!0);this.requestMeasure()};F.isMeasureRequested=function(){return this.FH};F.hasBeenMeasured=function(){return!!this.ZG};F.requestMeasure=function(){this.FH=!0}; | |
| F.getLayoutBox=function(){if(this.I){var A=this.element,B=A.getLayers(),C=B.getScrolledPosition(A);A=B.getSize(A);return OE(C.left,C.top,A.width,A.height)}if(!this.LE)return this.FA;C=this.D.getViewport();return RE(this.FA,C.getScrollLeft(),C.getScrollTop())};F.getPageLayoutBox=function(){if(this.I){var A=this.element,B=A.getLayers(),C=B.getOffsetPosition(A);A=B.getSize(A);return OE(C.left,C.top,A.width,A.height)}return this.FA};F.getInitialLayoutBox=function(){return this.ZG||this.FA}; | |
| F.isDisplayed=function(){var A="fluid"==this.element.getLayout(),B=this.getLayoutBox(),C=0<B.height&&0<B.width;return(A||C)&&!!this.element.ownerDocument&&!!this.element.ownerDocument.defaultView};F.isFixed=function(){return this.LE};F.overlaps=function(A){var B=this.getLayoutBox();return B.top<=A.bottom&&A.top<=B.bottom&&B.left<=A.right&&A.left<=B.right};F.prerenderAllowed=function(){return this.element.prerenderAllowed()}; | |
| F.whenWithinViewport=function(A){if(!this.isLayoutPending()||!0===A)return Promise.resolve();var B=A;A=String(B);if(this.SA&&this.SA[A])return this.SA[A].promise;if(this.isWithinViewportRatio(B))return Promise.resolve();this.SA=this.SA||{};this.SA[A]=new AC;return this.SA[A].promise};function UO(A){if(A.SA){var B=A.getDistanceViewportRatio(),C;for(C in A.SA)A.isWithinViewportRatio(parseFloat(C),B)&&(A.SA[C].resolve(),delete A.SA[C])}} | |
| F.getDistanceViewportRatio=function(){if(this.I&&this.UF){var A=this.element;return{distance:A.getLayers().iterateAncestry(A,this.TN)}}var B=this.D.getViewport().getRect(),C=this.getLayoutBox(),D=this.D.getScrollDirection(),E=1,G=0;if(B.right<C.left||B.left>C.right)return{distance:!1};if(B.bottom<C.top)G=C.top-B.bottom,-1==D&&(E=2);else if(B.top>C.bottom)G=B.top-C.bottom,1==D&&(E=2);else return{distance:!0};return{distance:G,scrollPenalty:E,viewportHeight:B.height}}; | |
| F.isWithinViewportRatio=function(A,B){if("boolean"===typeof A)return A;var C=B||this.getDistanceViewportRatio(),D=C.distance,E=C.viewportHeight;return this.I&&this.UF?D<A:"boolean"==typeof D?D:D<E*A/C.scrollPenalty};F.TN=function(A,B,C){A=A||0;var D=1+C/10,E=B.isActiveUnsafe()?1:2;B=B.getHorizontalViewportsFromParent()+B.getVerticalViewportsFromParent();return A+E*D*B};F.renderOutsideViewport=function(){UO(this);return this.hasOwner()||this.isWithinViewportRatio(this.element.renderOutsideViewport())}; | |
| F.idleRenderOutsideViewport=function(){return this.isWithinViewportRatio(this.element.idleRenderOutsideViewport())};F.layoutScheduled=function(A){this.L=3;this.element.layoutScheduleTime=A};F.layoutCanceled=function(){this.L=this.hasBeenMeasured()?2:1}; | |
| F.startLayout=function(){var A=this;if(this.HC)return this.HC;if(4==this.L)return Promise.resolve();if(5==this.L)return Promise.reject(this.PK);this.isDisplayed();if(0<this.KA&&!this.element.isRelayoutNeeded())return this.L=4,Promise.resolve();this.KA++;this.L=3;return this.HC=(new Promise(function(B,C){GJ(A.hostWin).mutate(function(){try{B(A.element.layoutCallback())}catch(D){C(D)}})})).then(function(){return VO(A,!0)},function(B){return VO(A,!1,B)})}; | |
| function VO(A,B,C){A.MH&&(A.MH(),A.MH=null);A.HC=null;A.RK=!0;A.L=B?4:5;A.PK=C;if(!B)return Promise.reject(C)}F.isLayoutPending=function(){return 4!=this.L&&5!=this.L};F.loadedOnce=function(){return this.WN};F.hasLoadedOnce=function(){return this.RK};F.isInViewport=function(){var A=this.element.isInViewport();A&&UO(this);return A};F.setInViewport=function(A){this.element.viewportCallback(A)}; | |
| F.unlayout=function(){0!=this.L&&1!=this.L&&(this.setInViewport(!1),this.element.unlayoutCallback()&&(this.element.togglePlaceholder(!0),this.L=1,this.KA=0,this.HC=null))};F.getTaskId=function(A){return this.debugid+"#"+A};F.pause=function(){this.element.pauseCallback();this.element.unlayoutOnPause()&&this.unlayout()};F.pauseOnRemove=function(){this.element.pauseCallback()};F.resume=function(){this.element.resumeCallback()};F.unload=function(){this.pause();this.unlayout()}; | |
| F.disconnect=function(){delete this.element.__AMP__RESOURCE;this.element.disconnect(!0)};function WO(){this.IB=ZB();this.HA=null}F=WO.prototype;F.get=function(A){return this.IB[A]||null};F.whenSignal=function(A){var B=this.HA&&this.HA[A];if(!B){var C=this.IB[A];null!=C?B={promise:"number"==typeof C?Promise.resolve(C):Promise.reject(C)}:(C=new AC,B={promise:C.promise,resolve:C.resolve,reject:C.reject});this.HA||(this.HA=ZB());this.HA[A]=B}return B.promise}; | |
| F.signal=function(A,B){if(null==this.IB[A]){var C=B||Date.now();this.IB[A]=C;(A=this.HA&&this.HA[A])&&A.resolve&&(A.resolve(C),A.resolve=void 0,A.reject=void 0)}};F.rejectSignal=function(A,B){null==this.IB[A]&&(this.IB[A]=B,(A=this.HA&&this.HA[A])&&A.reject&&(A.reject(B),A.resolve=void 0,A.reject=void 0))};F.reset=function(A){this.IB[A]&&delete this.IB[A];var B=this.HA&&this.HA[A];B&&!B.resolve&&delete this.HA[A]};var XO=['<div class="i-amphtml-loader">\n <div class="i-amphtml-loader-dot"></div>\n <div class="i-amphtml-loader-dot"></div>\n <div class="i-amphtml-loader-dot"></div>\n </div>'];XO.raw=['<div class="i-amphtml-loader">\n <div class="i-amphtml-loader-dot"></div>\n <div class="i-amphtml-loader-dot"></div>\n <div class="i-amphtml-loader-dot"></div>\n </div>'];var YO=['<div class="i-amphtml-loader-line">\n <div class="i-amphtml-loader-moving-line"></div>\n </div>']; | |
| YO.raw=['<div class="i-amphtml-loader-line">\n <div class="i-amphtml-loader-moving-line"></div>\n </div>'];var ZO={"AMP-AD":!0};function $O(A,B,C){var D=this;this.X=EJ(A);this.JN=B;this.XM=C||0;this.WA=-1;this.UH=0;this.VB=!1;this.OM=function(){return D.EF()}}$O.prototype.isPending=function(){return-1!=this.WA};$O.prototype.schedule=function(A){A=A||this.XM;this.VB&&10>A&&(A=10);var B=Date.now()+A;return!this.isPending()||-10>B-this.UH?(this.cancel(),this.UH=B,this.WA=this.X.delay(this.OM,A),!0):!1};$O.prototype.EF=function(){this.WA=-1;this.UH=0;this.VB=!0;this.JN();this.VB=!1}; | |
| $O.prototype.cancel=function(){this.isPending()&&(this.X.cancel(this.WA),this.WA=-1)};var AP=Date.now();function BP(A,B){var C=A.split(",");T(0<C.length,"sizes has to have at least one size");var D=[];C.forEach(function(A){A=A.replace(/\s+/g," ").trim();if(0!=A.length){var C=A.charAt(A.length-1),E,I=!1;if(")"==C){I=!0;var J=1;for(E=A.length-2;0<=E;E--){var K=A.charAt(E);"("==K?J--:")"==K&&J++;if(0==J)break}var L=E-1;if(0<E)for(E--;0<=E&&(K=A.charAt(E),"%"==K||"-"==K||"_"==K||"a"<=K&&"z">=K||"A"<=K&&"Z">=K||"0"<=K&&"9">=K);E--);T(E<L,'Invalid CSS function in "%s"',A)}else for(E=A.length-2;0<=E&&(K=A.charAt(E), | |
| "%"==K||"."==K||"a"<=K&&"z">=K||"A"<=K&&"Z">=K||"0"<=K&&"9">=K);E--);if(0<=E){var M=A.substring(0,E+1).trim();var P=A.substring(E+1).trim()}else P=A,M=void 0;D.push({mediaQuery:M,size:I?P:B?CK(P):BK(P)})}});return new CP(D)} | |
| function CP(A){T(0<A.length,"SizeList must have at least one option");this.VO=A;for(var B=0;B<A.length;B++){var C=A[B];B<A.length-1?T(C.mediaQuery,"All options except for the last must have a media condition"):T(!C.mediaQuery,"The last option must not have a media condition")}}CP.prototype.select=function(A){for(var B=this.VO,C=B.length-1,D=0;D<C;D++){var E=B[D];if(A.matchMedia(E.mediaQuery).matches)return E.size}return B[C].size};var DP=['\n <div class="i-amphtml-loading-container i-amphtml-fill-content\n amp-hidden"></div>'];DP.raw=['\n <div class="i-amphtml-loading-container i-amphtml-fill-content\n amp-hidden"></div>'];var EP;function FP(A,B){function C(A){return D.call(this,A)||this}var D=GP(A);LA(C,D);C.prototype.elementName=function(){return B};return C} | |
| function GP(A){function B(A){A=C.call(this,A)||this;A.createdCallback();return A}if(A.BaseCustomElementClass)return A.BaseCustomElementClass;var C=A.HTMLElement;LA(B,C);B.prototype.createdCallback=function(){this.KE=this.NJ=!1;this.IG=null;this.readyState="loading";this.everAttached=!1;this.GC=this.D=this.J=null;this.layout_="nodisplay";this.layoutWidth_=-1;this.KA=0;this.ND=this.EC=this.DH=!1;this.IE=this.KF=this.TE=void 0;this.warnOnMissingOverflow=!0;this.PH=this.NH=this.sizerElement=void 0;this.OH= | |
| this.SB=null;this.LA=void 0;var B=A.ampExtendedElements&&A.ampExtendedElements[this.elementName()];this.implementation_=new B(this);this.QC=1;this.$L=0;this.DD=this.NB=void 0;this.W=new WO;var C=WH(A);this.ZK=C&&C.isPerformanceTrackingOn();this.LH=null;this.__AMP_UPG_RES&&(this.__AMP_UPG_RES(this),delete this.__AMP_UPG_RES,delete this.__AMP_UPG_PRM)};B.prototype.elementName=function(){};B.prototype.signals=function(){return this.W};B.prototype.getAmpDoc=function(){return this.J};B.prototype.getResources= | |
| function(){return this.D};B.prototype.getLayers=function(){return this.GC};B.prototype.isUpgraded=function(){return 2==this.QC};B.prototype.upgrade=function(A){this.DD||1!=this.QC||(this.implementation_=new A(this),this.everAttached&&this.XL())};B.prototype.getUpgradeDelayMs=function(){return this.$L};B.prototype.MG=function(B,C){this.$L=A.Date.now()-C;this.QC=2;this.implementation_=B;this.classList.remove("amp-unresolved");this.classList.remove("i-amphtml-unresolved");this.implementation_.createdCallback(); | |
| this.IM();this.implementation_.layout_=this.layout_;this.implementation_.layoutWidth_=this.layoutWidth_;this.implementation_.firstAttachedCallback();this.QB("amp:attached");this.getResources().upgraded(this)};B.prototype.IM=function(){if("nodisplay"!=this.layout_&&!this.implementation_.isLayoutSupported(this.layout_)){var A="Layout not supported: "+this.layout_;this.getAttribute("layout")||(A+=". The element did not specify a layout attribute. Check https://www.ampproject.org/docs/guides/responsive/control_layout and the respective element documentation for details."); | |
| throw O().createError(A);}};B.prototype.isBuilt=function(){return this.NJ};B.prototype.whenBuilt=function(){return this.W.whenSignal("built")};B.prototype.getLayoutPriority=function(){this.isUpgraded();return this.implementation_.getLayoutPriority()};B.prototype.getDefaultActionAlias=function(){this.isUpgraded();return this.implementation_.getDefaultActionAlias()};B.prototype.build=function(){var A=this;this.isUpgraded();return this.IG?this.IG:this.IG=(new Promise(function(B,C){var D=A.CN();D?UI(A, | |
| "consentPolicyManager","amp-consent").then(function(A){return A?A.whenPolicyUnblock(D):!0}).then(function(D){D?B(A.implementation_.buildCallback()):C(Error("BLOCK_BY_CONSENT"))}):B(A.implementation_.buildCallback())})).then(function(){A.preconnect(!1);A.NJ=!0;A.classList.remove("i-amphtml-notbuilt");A.classList.remove("amp-notbuilt");A.W.signal("built");A.EC&&A.YL(!0);A.NB&&EJ(A.ownerDocument.defaultView).delay(A.YM.bind(A),1);if(!A.getPlaceholder()){var B=A.createPlaceholder();B&&A.appendChild(B)}}, | |
| function(B){A.W.rejectSignal("built",B);BM(B)||$L(B,A);throw B;})};B.prototype.preconnect=function(A){var B=this;A?this.implementation_.preconnectCallback(A):EJ(this.ownerDocument.defaultView).delay(function(){var C=B.tagName;B.ownerDocument?B.ownerDocument.defaultView?B.implementation_.preconnectCallback(A):S().error(C,"preconnect without defaultView"):S().error(C,"preconnect without ownerDocument")},1)};B.prototype.isAlwaysFixed=function(){return this.implementation_.isAlwaysFixed()};B.prototype.updateLayoutBox= | |
| function(A,B){var C=this;this.layoutWidth_=A.width;this.isUpgraded()&&(this.implementation_.layoutWidth_=this.layoutWidth_);if(this.isBuilt())try{if(this.implementation_.onLayoutMeasure(),B)this.implementation_.onMeasureChanged()}catch(H){$L(H,this)}this.ME()&&(this.EC?this.toggleLoading(!0):1E3>A.top&&0<=A.top&&this.WE(function(){return C.BL()}))};B.prototype.CK=function(){void 0===this.sizerElement&&"responsive"===this.layout_&&(this.sizerElement=this.querySelector("i-amphtml-sizer"));return this.sizerElement|| | |
| null};B.prototype.applySizesAndMediaQuery=function(){void 0===this.TE&&(this.TE=this.getAttribute("media")||null);if(this.TE){var A=this.ownerDocument.defaultView;this.classList.toggle("i-amphtml-hidden-by-media-query",!A.matchMedia(this.TE).matches)}if(void 0===this.KF){var B=this.getAttribute("sizes");this.KF=B?BP(B):null}this.KF&&Y(this,"width",this.KF.select(this.ownerDocument.defaultView));void 0===this.IE&&"responsive"===this.layout_&&(this.IE=(B=this.getAttribute("heights"))?BP(B,!0):null); | |
| this.IE&&(B=this.CK())&&Y(B,"paddingTop",this.IE.select(this.ownerDocument.defaultView))};B.prototype.changeSize=function(A,B,C){var D=this.CK();D&&(this.sizerElement=null,Y(D,"paddingTop","0"),this.WE(function(){D.parentElement&&D.parentElement.removeChild(D)}));void 0!==A&&Y(this,"height",A,"px");void 0!==B&&Y(this,"width",B,"px");C&&(null!=C.top&&Y(this,"marginTop",C.top,"px"),null!=C.right&&Y(this,"marginRight",C.right,"px"),null!=C.bottom&&Y(this,"marginBottom",C.bottom,"px"),null!=C.left&&Y(this, | |
| "marginLeft",C.left,"px"));this.LN()&&this.UO();this.dispatchCustomEvent("amp:size-changed")};B.prototype.connectedCallback=function(){void 0===EP&&(EP="content"in self.document.createElement("template"));EP||void 0!==this.DD||(this.DD=!!AD(this,"template"));if(!this.DD&&!this.KE&&XC(this)){this.KE=!0;this.everAttached||(this.classList.add("i-amphtml-element"),this.classList.add("i-amphtml-notbuilt"),this.classList.add("amp-notbuilt"));if(!this.J){var A=this.ownerDocument.defaultView,B=ZI(A).getAmpDoc(this); | |
| this.J=B;var C=this.tagName.toLowerCase();this.implementation_ instanceof OO&&!B.declaresExtension(C)&&AJ(A).installExtensionForDoc(B,C)}this.D||(this.D=DJ(this.J));W(this.J.win,"layers")&&(this.GC||(this.GC=XH(this.J,"layers")),this.getLayers().add(this));this.getResources().add(this);if(this.everAttached){var H=this.reconstructWhenReparented();H&&this.IL();this.isUpgraded()&&(H&&this.getResources().upgraded(this),this.QB("amp:attached"))}else{this.everAttached=!0;try{var I=this.getAttribute("i-amphtml-layout"); | |
| if(I){var J=ZJ(I);"responsive"!=J&&"intrinsic"!=J||!this.firstElementChild?"nodisplay"==J&&(SJ(this,!1),this.style.display=""):this.sizerElement=this.querySelector("i-amphtml-sizer")||void 0;var K=J}else{var L=this.getAttribute("layout"),M=this.getAttribute("width"),P=this.getAttribute("height"),Q=this.getAttribute("sizes"),R=this.getAttribute("heights"),Z=L?ZJ(L):null;T(void 0!==Z,"Unknown layout: %s",L);var FA=M&&"auto"!=M?AK(M):M;T(void 0!==FA,"Invalid width value: %s",M);var JA=P&&"fluid"!=P? | |
| AK(P):P;T(void 0!==JA,"Invalid height value: %s",P);var KA;if(!(KA=Z&&"fixed"!=Z&&"fixed-height"!=Z||FA&&JA)){var VA=this.tagName;VA=VA.toUpperCase();KA=void 0===WJ[VA]}if(KA){var DA=FA;var X=JA}else{var OA=this.tagName.toUpperCase();if(!WJ[OA]){var FC=this.ownerDocument,V=OA.replace(/^AMP\-/,""),MA=FC.createElement(V);MA.controls=!0;QJ(MA,{position:"absolute",visibility:"hidden"});FC.body.appendChild(MA);WJ[OA]={width:(MA.offsetWidth||1)+"px",height:(MA.offsetHeight||1)+"px"};FC.body.removeChild(MA)}var EG= | |
| WJ[OA];DA=FA||"fixed-height"==Z?FA:EG.width;X=JA||EG.height}var BA=Z?Z:DA||X?"fluid"==X?"fluid":!X||DA&&"auto"!=DA?X&&DA&&(Q||R)?"responsive":"fixed":"fixed-height":"container";"fixed"!=BA&&"fixed-height"!=BA&&"responsive"!=BA&&"intrinsic"!=BA||T(X,"Expected height to be available: %s",P);"fixed-height"==BA&&T(!DA||"auto"==DA,'Expected width to be either absent or equal "auto" for fixed-height layout: %s',M);"fixed"!=BA&&"responsive"!=BA&&"intrinsic"!=BA||T(DA&&"auto"!=DA,'Expected width to be available and not equal to "auto": %s', | |
| M);"responsive"==BA||"intrinsic"==BA?T(DK(DA)==DK(X),"Length units should be the same for width and height: %s, %s",M,P):T(null===R,'Unexpected "heights" attribute for none-responsive layout');this.classList.add("i-amphtml-layout-"+BA);$J(BA)&&this.classList.add("i-amphtml-layout-size-defined");if("nodisplay"==BA)SJ(this,!1),this.style.display="";else if("fixed"==BA)QJ(this,{width:DA,height:X});else if("fixed-height"==BA)Y(this,"height",X);else if("responsive"==BA){var AB=this.ownerDocument.createElement("i-amphtml-sizer"); | |
| QJ(AB,{paddingTop:EK(X)/EK(DA)*100+"%"});this.insertBefore(AB,this.firstChild);this.sizerElement=AB}else if("intrinsic"==BA){var BB=JJ(this)(UJ);BB.firstElementChild.setAttribute("src",'data:image/svg+xml;charset=utf-8,<svg height="'+X+'" width="'+DA+'" xmlns="http://www.w3.org/2000/svg" version="1.1"/>');this.insertBefore(BB,this.firstChild);this.sizerElement=BB}else"fill"!=BA&&"container"!=BA&&("flex-item"==BA?(DA&&Y(this,"width",DA),X&&Y(this,"height",X)):"fluid"==BA&&(this.classList.add("i-amphtml-layout-awaiting-size"), | |
| DA&&Y(this,"width",DA),Y(this,"height",0)));this.setAttribute("i-amphtml-layout",BA);K=BA}this.layout_=K}catch(HB){$L(HB,this)}this.implementation_ instanceof OO||this.XL();this.isUpgraded()||(this.classList.add("amp-unresolved"),this.classList.add("i-amphtml-unresolved"),this.QB("amp:stubbed"))}}};B.prototype.LN=function(){return this.classList.contains("i-amphtml-layout-awaiting-size")};B.prototype.UO=function(){this.classList.remove("i-amphtml-layout-awaiting-size")};B.prototype.attachedCallback= | |
| function(){this.connectedCallback()};B.prototype.XL=function(){var B=this,C=this.implementation_;if(1==this.QC){this.QC=4;var G=A.Date.now(),H=C.upgradeCallback();H?"function"==typeof H.then?H.then(function(A){B.MG(A||C,G)}).catch(function(A){B.QC=3;TB(A)}):this.MG(H,G):this.MG(C,G)}};B.prototype.disconnectedCallback=function(){this.disconnect(!1)};B.prototype.detachedCallback=function(){this.disconnectedCallback()};B.prototype.disconnect=function(A){this.DD||!this.KE||!A&&XC(this)||(A&&this.classList.remove("i-amphtml-element"), | |
| this.KE=!1,this.getResources().remove(this),W(this.J.win,"layers")&&this.getLayers().remove(this),this.implementation_.detachedCallback())};B.prototype.dispatchCustomEvent=function(A,B){B=B||{};var C=this.ownerDocument.createEvent("Event");C.data=B;C.initEvent(A,!0,!0);this.dispatchEvent(C)};B.prototype.QB=function(){};B.prototype.prerenderAllowed=function(){return this.implementation_.prerenderAllowed()};B.prototype.createPlaceholder=function(){return this.implementation_.createPlaceholderCallback()}; | |
| B.prototype.renderOutsideViewport=function(){return this.implementation_.renderOutsideViewport()};B.prototype.idleRenderOutsideViewport=function(){return this.implementation_.idleRenderOutsideViewport()};B.prototype.getLayoutBox=function(){return this.getResources().getResourceForElement(this).getLayoutBox()};B.prototype.getPageLayoutBox=function(){return this.getResources().getResourceForElement(this).getPageLayoutBox()};B.prototype.getOwner=function(){return this.getResources().getResourceForElement(this).getOwner()}; | |
| B.prototype.getIntersectionChangeEntry=function(){var A=this.implementation_.getIntersectionElementLayoutBox(),B=this.getResources().getResourceForElement(this).getOwner(),C=this.implementation_.getViewport().getRect(),H=B&&B.getLayoutBox(),I=PE(A,H,C)||OE(0,0,0,0);B=I.width*I.height;var J=A.width*A.height;B=0===J?0:B/J;if(J=C)I=RE(I,-C.left,-C.top),A=RE(A,-C.left,-C.top),J=RE(J,-C.left,-C.top);return{time:"undefined"!==typeof performance&&performance.now?performance.now():Date.now()-AP,rootBounds:J, | |
| boundingClientRect:A,intersectionRect:I,intersectionRatio:B}};B.prototype.getResourceId=function(){return this.getResources().getResourceForElement(this).getId()};B.prototype.DN=function(){return this.getResources().getResourceForElement(this).getState()};B.prototype.isRelayoutNeeded=function(){return this.implementation_.isRelayoutNeeded()};B.prototype.getImpl=function(){var A=this;return this.whenBuilt().then(function(){return A.implementation_})};B.prototype.getLayout=function(){return this.layout_}; | |
| B.prototype.layoutCallback=function(){var A=this;this.isBuilt();this.QB("amp:load:start");var B=0==this.KA;this.W.reset("unload");B&&this.W.signal("load-start");this.ZK&&this.BK().startLayout();var C=BC(function(){return A.implementation_.layoutCallback()});this.preconnect(!0);this.classList.add("i-amphtml-layout");return C.then(function(){B&&A.W.signal("load-end");A.readyState="complete";A.KA++;A.toggleLoading(!1,{cleanup:!0});A.DH||(A.implementation_.firstLayoutCompleted(),A.DH=!0,A.QB("amp:load:end"))}, | |
| function(C){B&&A.W.rejectSignal("load-end",C);A.KA++;A.toggleLoading(!1,{cleanup:!0});throw C;})};B.prototype.isInViewport=function(){return this.EC};B.prototype.viewportCallback=function(A){var B=this;A!=this.EC&&this.ownerDocument&&this.ownerDocument.defaultView&&(this.EC=A,0==this.KA&&(A?EJ(this.ownerDocument.defaultView).delay(function(){B.EC&&B.ownerDocument&&B.ownerDocument.defaultView&&B.toggleLoading(!0)},100):this.toggleLoading(!1)),this.isBuilt()&&this.YL(A))};B.prototype.YL=function(A){this.implementation_.inViewport_= | |
| A;this.implementation_.viewportCallback(A);A&&this.ZK&&this.BK().enterViewport()};B.prototype.isPaused=function(){return this.ND};B.prototype.pauseCallback=function(){this.ND||(this.ND=!0,this.viewportCallback(!1),this.isBuilt()&&this.implementation_.pauseCallback())};B.prototype.resumeCallback=function(){this.ND&&(this.ND=!1,this.isBuilt()&&this.implementation_.resumeCallback())};B.prototype.unlayoutCallback=function(){if(!this.isBuilt())return!1;this.W.signal("unload");var A=this.implementation_.unlayoutCallback(); | |
| A&&this.IL();return A};B.prototype.IL=function(){this.KA=0;this.DH=!1;this.W.reset("render-start");this.W.reset("load-start");this.W.reset("load-end");this.W.reset("ini-load")};B.prototype.unlayoutOnPause=function(){return this.implementation_.unlayoutOnPause()};B.prototype.reconstructWhenReparented=function(){return this.implementation_.reconstructWhenReparented()};B.prototype.collapse=function(){this.implementation_.collapse()};B.prototype.collapsedCallback=function(A){this.implementation_.collapsedCallback(A)}; | |
| B.prototype.expand=function(){this.implementation_.expand()};B.prototype.expandedCallback=function(A){this.implementation_.expandedCallback(A)};B.prototype.mutatedAttributesCallback=function(A){this.implementation_.mutatedAttributesCallback(A)};B.prototype.enqueAction=function(A){this.isBuilt()?this.YJ(A,!1):(void 0===this.NB&&(this.NB=[]),this.NB.push(A))};B.prototype.YM=function(){var A=this;if(this.NB){var B=this.NB;this.NB=null;B.forEach(function(B){A.YJ(B,!0)})}};B.prototype.YJ=function(A,B){try{this.implementation_.executeAction(A, | |
| B)}catch(G){TB("Action execution failed:",G,A.node.tagName,A.method)}};B.prototype.CN=function(){var A=this.getAttribute("data-block-on-consent");if(null===A)if(A=this.getAmpDoc(),(A=$I(A).metaTags["amp-consent-blocking"])?"string"!==typeof A?(O().error("CONSENT","Invalid amp-consent-blocking value, ignore meta tag"),A=!1):(A=A.toUpperCase().replace(/\s/g,"").split(","),A=A.includes(this.tagName)?!0:!1):A=!1,A)A="default",this.setAttribute("data-block-on-consent",A);else return null;return""==A|| | |
| "default"==A?this.implementation_.getConsentPolicy():A};B.prototype.getRealChildNodes=function(){return KD(this,function(A){return!HP(A)})};B.prototype.getRealChildren=function(){return CD(this,function(A){return!HP(A)})};B.prototype.getPlaceholder=function(){return JD(this,function(A){return A.hasAttribute("placeholder")&&!("placeholder"in A)})};B.prototype.togglePlaceholder=function(A){if(A){var B=this.getPlaceholder();B&&B.classList.remove("amp-hidden")}else{/^[\w-]+$/.test("placeholder");var C= | |
| (void 0!==GC?GC:GC=HC(this))?this.querySelectorAll("> [placeholder]".replace(/^|,/g,"$&:scope ")):ND(this,"> [placeholder]");for(B=0;B<C.length;B++)"placeholder"in C[B]||C[B].classList.add("amp-hidden")}};B.prototype.getFallback=function(){return LD(this,"fallback")};B.prototype.toggleFallback=function(A){var B=this.DN();if(!A||0!=B&&1!=B&&2!=B)if(this.classList.toggle("amp-notsupported",A),1==A){var C=this.getFallback();C&&this.getResources().scheduleLayout(this,C)}};B.prototype.renderStarted=function(){this.W.signal("render-start"); | |
| this.togglePlaceholder(!1);this.toggleLoading(!1)};B.prototype.ME=function(){if(this.NN())return!1;void 0===this.NH&&(this.NH=this.hasAttribute("noloading"));var A;(A=this.NH)||(A=this.tagName.toUpperCase(),A=!(XJ[A]||YJ.test(A)));return A||100>this.layoutWidth_||0<this.KA||HP(this)||!$J(this.layout_)?!1:!0};B.prototype.NN=function(){return this.J&&this.J.win!=this.ownerDocument.defaultView||"inabox"==N().runtime};B.prototype.BL=function(){if(this.ME()&&!this.SB){var A=this.ownerDocument,B=JJ(A)(DP), | |
| C=this.elementName();A=ZO[C.toUpperCase()]?JJ(A)(YO):JJ(A)(XO);B.appendChild(A);this.appendChild(B);this.SB=B;this.OH=A}};B.prototype.toggleLoading=function(A,B){var C=this,D=B&&B.cleanup,E=B&&B.force;if(!A||this.implementation_.isLoadingReused()||!(0<this.KA||this.W.get("render-start")))if((this.PH=A)||this.SB)!A||E||this.ME()?this.WE(function(){var A=C.PH;!A||E||C.ME()||(A=!1);A&&C.BL();if(C.SB&&(C.SB.classList.toggle("amp-hidden",!A),C.OH.classList.toggle("amp-active",A),!A&&D&&!C.implementation_.isLoadingReused())){var B= | |
| C.SB;C.SB=null;C.OH=null;C.WE(function(){var A=B;A.parentElement&&A.parentElement.removeChild(A)})}}):this.PH=!1};B.prototype.BK=function(){this.LH||(this.LH=new QO(this.ownerDocument.defaultView,this.getLayoutPriority()));return this.LH};B.prototype.getOverflowElement=function(){void 0===this.LA&&(this.LA=LD(this,"overflow"))&&(this.LA.hasAttribute("tabindex")||this.LA.setAttribute("tabindex","0"),this.LA.hasAttribute("role")||this.LA.setAttribute("role","button"));return this.LA};B.prototype.overflowCallback= | |
| function(A,B,C){var D=this;this.getOverflowElement();this.LA?(this.LA.classList.toggle("amp-visible",A),this.LA.onclick=A?function(){var A=D.getResources();A.changeSize(D,B,C);A.mutateElement(D,function(){D.overflowCallback(!1,B,C)})}:null):A&&this.warnOnMissingOverflow&&O().warn("CustomElement","Cannot resize element and overflow is not available",this)};B.prototype.WE=function(A){this.D?this.getResources().mutateElement(this,A):A()};A.BaseCustomElementClass=B;return A.BaseCustomElementClass} | |
| function HP(A){var B="string"==typeof A?A:A.tagName;return B&&SC(B.toLowerCase(),"i-")||A.tagName&&(A.hasAttribute("placeholder")||A.hasAttribute("fallback")||A.hasAttribute("overflow"))?!0:!1};function IP(A){A.ampExtendedElements||(A.ampExtendedElements={});return A.ampExtendedElements}function JP(A,B,C){var D=IP(A);if(!D[B])KP(A,B,C);else if(D[B]!=C){T(D[B]==OO,"%s is already registered. The script tag for %s is likely included twice in the page.",B,B);D[B]=C;for(var E=0;E<NO.length;E++){var G=NO[E],H=G.element;if(H.tagName.toLowerCase()==B&&H.ownerDocument.defaultView==A){try{H.upgrade(C)}catch(I){$L(I,H)}NO.splice(E--,1)}}}} | |
| function LP(A){XI(A.getHeadNode()).forEach(function(B){A.declareExtension(B);MP(A.win,B)})}function MP(A,B){IP(A)[B]||KP(A,B,OO)}function KP(A,B,C){IP(A)[B]=C;var D=FP(A,B),E="customElements"in A;E?A.customElements.define(B,D):A.document.registerElement(B,{prototype:D.prototype})};function NP(A){if(!A.hasAttribute("src")&&0=="srcset"in A){var B=A.getAttribute("srcset"),C=/\S+/.exec(B);if(null!=C){var D=C[0];A.setAttribute("src",D)}}};var OP="alt title referrerpolicy aria-label aria-describedby aria-labelledby srcset src sizes".split(" ");function PP(A){TK.call(this,A);this.CL=this.ZD=!0;this.RF=this.SF=this.N=null;this.ZI=W(this.win,"amp-img-auto-sizes");this.QL=0}LA(PP,TK);F=PP.prototype;F.mutatedAttributesCallback=function(A){if(this.N){var B=OP.filter(function(B){return void 0!==A[B]});this.propagateAttributes(B,this.N,!0);NP(this.N)}};F.onMeasureChanged=function(){this.ZI&&QP(this)}; | |
| F.preconnectCallback=function(A){var B=this.element.getAttribute("src");B?this.preconnect.url(B,A):(B=this.element.getAttribute("srcset"))&&(B=/\S+/.exec(B))&&this.preconnect.url(B[0],A)};F.firstAttachedCallback=function(){this.element.hasAttribute("noprerender")&&(this.CL=!1)};F.isLayoutSupported=function(A){return $J(A)}; | |
| F.JE=function(){this.N||(this.ZD=!this.element.hasAttribute("fallback"),this.element.hasAttribute("i-amphtml-ssr")&&(this.N=this.element.querySelector("img")),this.N=this.N||new Image,this.N.setAttribute("decoding","async"),this.element.id&&this.N.setAttribute("amp-img-id",this.element.id),"img"==this.element.getAttribute("role")&&(this.element.removeAttribute("role"),this.user().error("AMP-IMG","Setting role=img on amp-img elements breaks screen readers please just set alt or ARIA attributes, they will be correctly propagated for the underlying <img> element.")), | |
| this.propagateAttributes(OP,this.N),NP(this.N),this.ZI&&QP(this),this.applyFillContent(this.N,!0),this.element.appendChild(this.N))}; | |
| function QP(A){if(A.N&&!A.element.getAttribute("sizes")){var B=A.element.getAttribute("srcset");if(B&&!/[0-9]+x(?:,|$)/.test(B)&&(B=A.getLayoutWidth(),A.N.hasAttribute("sizes")?B>A.QL:1)){var C=A.getViewport().getWidth(),D="(max-width: "+C+"px) "+B+"px, ",E=B+"px";"fixed"!==A.getLayout()&&(E=Math.max(Math.round(100*B/C),100)+"vw");var G=D+E;A.mutateElement(function(){A.N.setAttribute("sizes",G)});A.QL=B}}}F.prerenderAllowed=function(){return this.CL};F.reconstructWhenReparented=function(){return!1}; | |
| F.layoutCallback=function(){var A=this;this.JE();var B=this.N;this.SF=IK(B,"load",function(){return RP(A)});this.RF=IK(B,"error",function(){return SP(A)});return 0>=this.getLayoutWidth()?Promise.resolve():this.loadPromise(B)};F.unlayoutCallback=function(){this.RF&&(this.RF(),this.RF=null);this.SF&&(this.SF(),this.SF=null);return!0}; | |
| F.firstLayoutCompleted=function(){var A=this.getPlaceholder();A&&A.classList.contains("i-amphtml-blurry-placeholder")&&W(this.win,"blurry-placeholder")?OJ(A,{opacity:0}):this.togglePlaceholder(!1)};function RP(A){!A.ZD&&A.N.classList.contains("i-amphtml-ghost")&&A.getVsync().mutate(function(){A.N.classList.remove("i-amphtml-ghost");A.toggleFallback(!1)})} | |
| function SP(A){A.ZD&&(A.getVsync().mutate(function(){A.N.classList.add("i-amphtml-ghost");A.toggleFallback(!0);A.togglePlaceholder(!1)}),A.ZD=!1)};function TP(A){TK.apply(this,arguments)}LA(TP,TK);TP.prototype.isLayoutSupported=function(A){return"container"==A||$J(A)};TP.prototype.buildCallback=function(){if("container"!=this.getLayout()){var A=this.win.document.createElement("div");this.applyFillContent(A);this.getRealChildNodes().forEach(function(B){A.appendChild(B)});this.element.appendChild(A)}};TP.prototype.prerenderAllowed=function(){return!0};function UP(A,B,C){C=void 0===C?!1:C;A=new A.Image;C&&(A.referrerPolicy="no-referrer");A.src=B;return A};function VP(A){TK.call(this,A);this.JI=null}LA(VP,TK);VP.prototype.isLayoutSupported=function(){return!0};VP.prototype.buildCallback=function(){this.element.setAttribute("aria-hidden","true");(this.HF=this.element.getAttribute("referrerpolicy"))&&T("no-referrer"==this.HF,'amp-pixel: invalid "referrerpolicy" value "'+this.HF+'". Only "no-referrer" is supported');this.element.hasAttribute("i-amphtml-ssr")&&this.element.querySelector("img")?S().info("amp-pixel","inabox img already present"):FJ(this.getAmpDoc()).whenFirstVisible().then(this.$O.bind(this))}; | |
| VP.prototype.$O=function(){var A=this;if(this.JI)return S().error("amp-pixel","duplicate pixel"),this.JI;this.JI=EJ(this.win).promise(1).then(function(){var B=A.element.getAttribute("src");if(B)return LH(A.element,"url-replace").expandUrlAsync(WP(B)).then(function(B){var C=A.win,E=A.HF;E&&"no-referrer"!==E&&O().error("pixel","Unsupported referrerPolicy: %s",E);if("no-referrer"===E)if("referrerPolicy"in Image.prototype)C=UP(C,B,!0);else{var G=C.document;E=$B({src:"about:blank",style:"display:none"}); | |
| G=G.createElement("iframe");for(var H in E)G.setAttribute(H,E[H]);C.document.body.appendChild(G);UP(G.contentWindow,B);C=G}else C=UP(C,B);var I=C;S().info("amp-pixel","pixel triggered: ",B);return I})})};function WP(A){T(/^(https:\/\/|\/\/)/i.test(A),'The <amp-pixel> src attribute must start with "https://" or "//". Invalid value: '+A);return A};var XP=["amp-ad","amp-embed","amp-video"],YP=["amp-mustache"];function ZP(A){this.win=A;this.OB=ZI(A);this.CE={};this.DC=null}F=ZP.prototype;F.registerExtension=function(A,B,C){var D=$P(this,A,!0);try{this.DC=A,B(C,C._),D.loaded=!0,D.resolve&&D.resolve(D.extension)}catch(E){throw D.error=E,D.reject&&D.reject(E),E;}finally{this.DC=null}};F.waitForExtension=function(A,B,C){return EJ(A).timeoutPromise(C||8E3,AQ($P(this,B,!1)),"Render timeout waiting for extension "+B+" to be load.")}; | |
| F.preloadExtension=function(A,B){"amp-embed"==A&&(A="amp-ad");var C=$P(this,A,!1);if(C.loaded||C.error)var D=!1;else void 0===C.scriptPresent&&(C.scriptPresent=!!this.win.document.head.querySelector('[custom-element="'+A+'"]')),D=!C.scriptPresent;if(D){D=B;B=this.win.document.createElement("script");B.async=!0;SC(A,"_")?D="":B.setAttribute(0<=YP.indexOf(A)?"custom-template":"custom-element",A);B.setAttribute("data-script",A);B.setAttribute("i-amphtml-inserted","");var E=D;D=RF.cdn;var G=N().rtvVersion; | |
| null==E&&(E="0.1");E=E?"-"+E:"";var H=N().singlePassType?N().singlePassType+"/":"";B.src=D+"/rtv/"+G+"/"+H+"v0/"+A+E+".js";this.win.document.head.appendChild(B);C.scriptPresent=!0}return AQ(C)};F.installExtensionForDoc=function(A,B,C){var D=this,E=A.getRootNode(),G=E.__AMP_EXT_LDR;G||(G=E.__AMP_EXT_LDR=ZB());if(G[B])return G[B];MP(A.win,B);return G[B]=this.preloadExtension(B,C).then(function(){return BQ(D,A,B)})}; | |
| F.reloadExtension=function(A,B){this.CE[A]&&delete this.CE[A];B.removeAttribute("custom-element");B.setAttribute("i-amphtml-loaded-new-version",A);var C=B.src.match(/^(.*)\/(.*)-([0-9.]+)\.js$/i),D={extensionId:C?C[2]:void 0,extensionVersion:C?C[3]:void 0};return this.preloadExtension(A,D.extensionVersion)};F.loadElementClass=function(A){return this.preloadExtension(A).then(function(B){return B.elements[A].implementationClass})}; | |
| F.addElement=function(A,B,C){CQ(this,A).extension.elements[A]={implementationClass:B,css:C};this.addDocFactory(function(D){DQ(D,A,B,C)})};function DQ(A,B,C,D){D?FL(A,D,function(){EQ(A.win,B,C)},!1,B):EQ(A.win,B,C)}function EQ(A,B,C){JP(A,B,C);TH(A,B,FQ)}F.addService=function(A,B){CQ(this).extension.services.push({serviceName:A,serviceClass:B});this.addDocFactory(function(C){UH(C,A,B,!0)})}; | |
| F.addDocFactory=function(A,B){var C=CQ(this,B);C.docFactories.push(A);if(this.DC&&(this.OB.isSingleDoc()||this.OB.hasAmpDocShell())){var D=this.OB.getAmpDoc(this.win.document);(D.declaresExtension(this.DC)||C.auto)&&A(D)}};F.installExtensionsInDoc=function(A,B){var C=this,D=[];B.forEach(function(B){D.push(BQ(C,A,B))});return Promise.all(D)}; | |
| function BQ(A,B,C){var D=$P(A,C,!1);return AQ(D).then(function(){B.declareExtension(C);D.docFactories.forEach(function(A){try{A(B)}catch(G){TB("Doc factory failed: ",G,C)}})})} | |
| F.installExtensionsInChildWindow=function(A,B,C){var D=this,E=this.win,G=A.frameElement.ownerDocument.defaultView;NI(A,G);GQ(A);JL(A.document,cssText$$module$build$css,null,!0,"amp-runtime");C&&C(A);HQ(A,G);IQ(E,A);JQ(A);var H=[];B.forEach(function(B){XP.includes(B)||MP(A,B);var C=D.preloadExtension(B).then(function(C){C.services.forEach(function(B){B=B.serviceClass;if("function"===typeof B.installInEmbedWindow){var C=PH(A.frameElement);B.installInEmbedWindow(A,C)}});var D=null,E={},G;for(G in C.elements){E.elementName= | |
| G;E.elementDef=C.elements[E.elementName];var H=(new Promise(function(C){return function(D){C.elementDef.css?JL(A.document,C.elementDef.css,D,!1,B):D()}}(E))).then(function(B){return function(){JP(A,B.elementName,B.elementDef.implementationClass)}}(E));D?D.push(H):D=[H];E={elementDef:E.elementDef,elementName:E.elementName}}return D?Promise.all(D).then(function(){return C}):C});H.push(C)});return Promise.all(H)}; | |
| function $P(A,B,C){var D=A.CE[B];D||(D={extension:{elements:{},services:[]},auto:C,docFactories:[],promise:void 0,resolve:void 0,reject:void 0,loaded:void 0,error:void 0,scriptPresent:void 0},A.CE[B]=D);return D}function CQ(A,B){A.DC||S().error("extensions","unknown extension for ",B);return $P(A,A.DC||"_UNKNOWN_",!0)} | |
| function AQ(A){if(!A.promise)if(A.loaded)A.promise=Promise.resolve(A.extension);else if(A.error)A.promise=Promise.reject(A.error);else{var B=new AC;A.promise=B.promise;A.resolve=B.resolve;A.reject=B.reject}return A.promise}function IQ(A,B){var C=IP(A)["amp-img"];KP(B,"amp-img",C||OO);A=IP(A)["amp-pixel"];KP(B,"amp-pixel",A||OO)}function JQ(A){XP.forEach(function(B){MP(A,B)})}function GQ(A){ZA(A);XA(A);OF(A)} | |
| function HQ(A,B){var C=A.frameElement,D=[LH(C,"url"),LH(C,"action"),LH(C,"standard-actions"),XH(C,"navigation"),EJ(B)],E=PH(C);D.forEach(function(B){B.constructor.installInEmbedWindow(A,E)})}function FQ(){return{}};function KQ(A){this.J=A;this.A=FJ(this.J);this.AI=null;this.X=EJ(this.J.win)}KQ.prototype.isSupported=function(){return this.A.isCctEmbedded()&&this.A.isProxyOrigin()};KQ.prototype.getScopedCid=function(A){var B=this;if(!this.A.isCctEmbedded())return Promise.resolve(null);this.AI||(this.AI=this.XC("https://ampcid.google.com/v1/cache:getClientId?key=AIzaSyDKtqGxnoeIqVM33Uf7hRSa3GJxuzR7mLc"));return this.AI.then(function(C){return C?LQ(B,C,A):null})}; | |
| KQ.prototype.XC=function(A,B){var C=this;B=void 0===B?!0:B;var D=$B({publisherOrigin:BH(this.J.win.location)});return this.X.timeoutPromise(3E4,VH(this.J.win,"xhr").fetchJson(A,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:D})).then(function(A){return A.json().then(function(A){if(A.optOut)return null;var D=A.publisherClientId;if(!D&&B&&A.alternateUrl){var E=A.alternateUrl+"?key=AIzaSyDKtqGxnoeIqVM33Uf7hRSa3GJxuzR7mLc";return C.XC(E,!1)}return D})}).catch(function(A){A&&A.response? | |
| A.response.json().then(function(A){S().error("CacheCidApi",JSON.stringify(A))}):S().error("CacheCidApi",A);return null})};function LQ(A,B,C){B=B+";"+C;return VH(A.J.win,"crypto").sha384Base64(B).then(function(A){return"amp-"+A})};function MQ(A){this.F=A.win;this.X=EJ(this.F);this.LG={};var B=$I(A).canonicalUrl;this.KG=B?U(B).origin:null} | |
| MQ.prototype.getScopedCid=function(A,B){var C=this;if(this.LG[B])return this.LG[B];var D;return this.LG[B]=this.X.poll(200,function(){D=EH(C.F,"AMP_TOKEN");return"$RETRIEVING"!==D}).then(function(){if("$OPT_OUT"===D)return"$OPT_OUT";var E="$NOT_FOUND"===D&&XG(C.F.document.referrer);if(!E&&D&&"$"===D[0])return null;D&&(!D||"$"!==D[0])||NQ(C,"$RETRIEVING",3E4);return C.XC("https://ampcid.google.com/v1/publisher:getClientId?key="+A,B,D).then(function(E){var G=C.FK(E);if(!G&&E.alternateUrl){var I=E.alternateUrl+ | |
| "?key="+A;return C.XC(I,B,D).then(C.FK.bind(C))}return G}).catch(function(A){NQ(C,"$ERROR",3E4);A&&A.response?A.response.json().then(function(A){S().error("GoogleCidApi",JSON.stringify(A))}):S().error("GoogleCidApi",A);return null})})};MQ.prototype.XC=function(A,B,C){B=$B({originScope:B,canonicalOrigin:this.KG});C&&(B.securityToken=C);return this.X.timeoutPromise(3E4,VH(this.F,"xhr").fetchJson(A,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:B}).then(function(A){return A.json()}))}; | |
| MQ.prototype.FK=function(A){if(A.optOut)return NQ(this,"$OPT_OUT",31536E6),"$OPT_OUT";if(A.clientId)return NQ(this,A.securityToken,31536E6),A.clientId;if(A.alternateUrl)return null;NQ(this,"$NOT_FOUND",36E5);return null};function NQ(A,B,C){B&&FH(A.F,"AMP_TOKEN",B,A.F.Date.now()+C,{highestAvailableDomain:!0})};function OQ(A){this.J=A;this.A=FJ(this.J);this.KG=(A=$I(this.J).canonicalUrl)?U(A).origin:null}OQ.prototype.isSupported=function(){return this.A.hasCapability("cid")?this.A.isTrustedViewer():Promise.resolve(!1)};OQ.prototype.getScopedCid=function(A,B){B=$B({scope:B,clientIdApi:!!A,canonicalOrigin:this.KG});A&&(B.apiKey=A);return this.A.sendMessageAwaitResponse("cid",B)};var PQ={"+":"-","/":"_","=":"."};function QQ(A){A=EE(A);return btoa(A).replace(/[+/=]/g,function(A){return PQ[A]})};var RQ=/^[a-zA-Z0-9-_.]+$/,SQ={googleanalytics:"AMP_ECID_GOOGLE"},TQ={googleanalytics:"AIzaSyA65lEHUEizIsNtlbNo-l2K18dT680nsaM"};function UQ(A){this.ampdoc=A;this.BG=null;this.NG=Object.create(null);this.OJ=new KQ(A);this.CM=new OQ(A);this.VM=new MQ(A);this.AG=null} | |
| UQ.prototype.get=function(A,B,C){var D=this;T(RQ.test(A.scope)&&RQ.test(A.cookieName),"The CID scope and cookie name must only use the characters [a-zA-Z0-9-_.]+\nInstead found: %s",A.scope);return B.then(function(){return FJ(D.ampdoc).whenFirstVisible()}).then(function(){return VQ(D.ampdoc)}).then(function(E){if(E)return"";var G=WQ(D,A,C||B);return EJ(D.ampdoc.win).timeoutPromise(1E4,G,'Getting cid for "'+A.scope+'" timed out').catch(function(A){TB(A)})})};UQ.prototype.optOut=function(){return XQ(this.ampdoc)}; | |
| function WQ(A,B,C){var D=B.scope,E=U(A.ampdoc.win.location.href);if(!XG(E)){var G=YQ(A,D);return G?A.VM.getScopedCid(G,D).then(function(E){if("$OPT_OUT"==E)return null;if(E){var G=B.cookieName||D;ZQ(A.ampdoc.win,G,E);return E}return $Q(A,B,C)}):$Q(A,B,C)}return A.CM.isSupported().then(function(B){if(B){var G=YQ(A,D);return A.CM.getScopedCid(G,D)}return A.OJ.isSupported()&&YQ(A,D)?A.OJ.getScopedCid(D).then(function(B){return B?B:AR(A,C,D,E)}):AR(A,C,D,E)})} | |
| function AR(A,B,C,D){return BR(A,B).then(function(B){return VH(A.ampdoc.win,"crypto").sha384Base64(B+CR(D)+C)})}function YQ(A,B){A.AG||(A.AG=DR(A));return A.AG[B]} | |
| function DR(A){var B={},C=A.ampdoc.win.document.head.querySelector("meta[name=amp-google-client-id-api]");C&&C.hasAttribute("content")&&C.getAttribute("content").split(",").forEach(function(A){A=A.trim();if(0<A.indexOf("=")){var C=A.split("=");B[C[0].trim()]=C[1].trim()}else{var D=A;(A=SQ[D])?B[A]=TQ[D]:O().error("CID","Unsupported client for Google CID API: "+D)}});return B} | |
| function XQ(A){FJ(A).sendMessage("cidOptOut",{});return YH(A,"storage").then(function(A){return A.set("amp-cid-optout",!0)})}function VQ(A){return YH(A,"storage").then(function(A){return A.get("amp-cid-optout").then(function(A){return!!A})}).catch(function(){return!1})}function ZQ(A,B,C){var D=Date.now()+31536E6;FH(A,B,C,D,{highestAvailableDomain:!0})} | |
| function $Q(A,B,C){var D=A.ampdoc.win,E=B.scope,G=B.cookieName||E,H=EH(D,G);if(!H&&!B.createCookieIfNotPresent)return Promise.resolve(null);if(A.NG[E])return A.NG[E];if(H)return/^amp-/.test(H)&&ZQ(D,G,H),Promise.resolve(H);var I=ER(D).then(function(A){return"amp-"+A});Promise.all([I,C]).then(function(A){var B=A[0],C=EH(D,G);C||ZQ(D,G,B)});return A.NG[E]=I}function CR(A){T(XG(A),"Expected proxy origin %s",A.origin);return BH(A)} | |
| function BR(A,B){if(A.BG)return A.BG;var C=A.ampdoc.win;return A.BG=FR(A.ampdoc).then(function(D){var E=!1;if(D&&!GR(D)){var G=Promise.resolve(D.cid);D.time+864E5<Date.now()&&(E=!0)}else G=VH(C,"crypto").sha384Base64(HR(C)),E=!0;E&&G.then(function(C){IR(A.ampdoc,B,C)});return G})}function IR(A,B,C){var D=A.win;QD(D)?JR(A,JSON.stringify($B({time:Date.now(),cid:C}))):B.then(function(){try{D.localStorage.setItem("amp-cid",JSON.stringify($B({time:Date.now(),cid:C})))}catch(E){}})} | |
| function JR(A,B){var C=FJ(A);return C.isTrustedViewer().then(function(A){if(A)return S().expectedError("CID","Viewer does not provide cap=cid"),C.sendMessageAwaitResponse("cid",B).then(function(A){var B;if(B=A){A:{try{var C=UD(A);break A}catch(I){}C=void 0}B=!C}return B?(S().expectedError("CID","invalid cid format"),JSON.stringify($B({time:Date.now(),cid:A}))):A})})} | |
| function FR(A){var B=A.win;try{var C=B.localStorage.getItem("amp-cid")}catch(E){}var D=Promise.resolve(C);!C&&QD(B)&&(D=JR(A));return D.then(function(A){if(!A)return null;A=UD(A);return{time:A.time,cid:A.cid}})}function GR(A){var B=A.time;return B+31536E6<Date.now()}function HR(A){if(A.crypto&&A.crypto.getRandomValues){var B=new Uint8Array(16);A.crypto.getRandomValues(B)}else B=null;return B?B:String(A.location.href+Date.now()+A.Math.random()+A.screen.width+A.screen.height)} | |
| function ER(A){var B=HR(A);if("string"==typeof B)return VH(A,"crypto").sha384Base64(B);var C=B;return BC(function(){return QQ(C).replace(/\.+$/,"")})};function KR(A){this.F=A;var B=null,C=!1;A.crypto&&(A.crypto.subtle?B=A.crypto.subtle:A.crypto.webkitSubtle&&(B=A.crypto.webkitSubtle,C=!0));this.pkcsAlgo={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};this.subtle=B;this.QN=C;this.OD=null}F=KR.prototype; | |
| F.sha384=function(A){var B=this;"string"===typeof A&&(A=DE(A));if(!this.subtle||this.OD)return(this.OD||LR(this)).then(function(B){return B(A)});try{return this.subtle.digest({name:"SHA-384"},A).then(function(A){return new Uint8Array(A)},function(C){C.message&&0>C.message.indexOf("secure origin")&&O().error("Crypto","SubtleCrypto failed, fallback to closure lib.",C);return LR(B).then(function(){return B.sha384(A)})})}catch(C){return S().error("Crypto","SubtleCrypto failed, fallback to closure lib.", | |
| C),LR(this).then(function(){return B.sha384(A)})}};F.sha384Base64=function(A){return this.sha384(A).then(function(A){return QQ(A)})};F.uniform=function(A){return this.sha384(A).then(function(A){for(var B=0,D=2;0<=D;D--)B=(B+A[D])/256;return B})};function LR(A){return A.OD?A.OD:A.OD=AJ(A.F).preloadExtension("amp-crypto-polyfill").then(function(){return VH(A.F,"crypto-polyfill")})}F.isPkcsAvailable=function(){return!!this.subtle&&!1!==this.F.isSecureContext}; | |
| F.importPkcsKey=function(A){this.isPkcsAvailable();var B=this.QN?VD(JSON.stringify(A)):A;return this.subtle.importKey("jwk",B,this.pkcsAlgo,!0,["verify"])};F.verifyPkcs=function(A,B,C){this.isPkcsAvailable();return this.subtle.verify(this.pkcsAlgo,A,B,C)};var MR=["prefetch","preload","preconnect","dns-prefetch"];function NR(A){this.J=A;this.XG=null} | |
| NR.prototype.get=function(){if(this.XG)return this.XG;var A=this.J,B=A.getUrl(),C=AH(B),D=(B=A.getRootNode())&&B.AMP&&B.AMP.canonicalUrl;if(!D){var E=B.querySelector("link[rel=canonical]");D=E?U(E.href).href:C}var G=String(Math.floor(1E4*A.win.Math.random())),H=OR(A.win.document),I=PR(A.win.document),J=QR(A);return this.XG={get sourceUrl(){return AH(A.getUrl())},canonicalUrl:D,pageViewId:G,linkRels:H,metaTags:I,replaceParams:J}}; | |
| function OR(A){var B=ZB();if(A.head){var C=A.head.querySelectorAll("link[rel]");A={};for(var D=0;D<C.length;A={href:A.href},D++){var E=C[D];A.href=E.href;var G=E.getAttribute("rel");G&&A.href&&G.split(/\s+/).forEach(function(A){return function(C){if(-1==MR.indexOf(C)){var D=B[C];D?(CB(D)||(D=B[C]=[D]),D.push(A.href)):B[C]=A.href}}}(A))}}return B} | |
| function PR(A){var B=ZB();if(A.head){var C=A.head.querySelectorAll("meta[name]");for(A=0;A<C.length;A++){var D=C[A],E=D.getAttribute("content");if((D=D.getAttribute("name"))&&E){var G=B[D];G?(CB(G)||(G=B[D]=[G]),G.push(E)):B[D]=E}}}return B}function QR(A){var B;(B=!A.isSingleDoc())||(B=A.win.location.href,"string"==typeof B&&(B=U(B)),B="a"!=(XG(B)?B.pathname.split("/",2)[1]:null));if(B)return null;A=U(A.win.location.href);var C=RA(A.search).amp_r;return void 0===C?null:RA(C)};function RR(){this.EA=null}F=RR.prototype;F.add=function(A){var B=this;this.EA||(this.EA=[]);this.EA.push(A);return function(){B.remove(A)}};F.remove=function(A){this.EA&&(A=this.EA.indexOf(A),-1<A&&this.EA.splice(A,1))};F.removeAll=function(){this.EA&&(this.EA.length=0)};F.fire=function(A){if(this.EA)for(var B=this.EA,C=0;C<B.length;C++)(0,B[C])(A)};F.getHandlerCount=function(){return this.EA?this.EA.length:0};function SR(A){this.win=A;this.DA=A.document;this.RB=NJ(this.DA,"hidden",!0);void 0===this.DA[this.RB]&&(this.RB=null);this.WF=NJ(this.DA,"visibilityState",!0);void 0===this.DA[this.WF]&&(this.WF=null);this.XD=new RR;this.VF=null;if(this.RB){this.VF="visibilitychange";var B=this.RB.indexOf("Hidden");-1!=B&&(this.VF=this.RB.substring(0,B)+"Visibilitychange")}this.NM=this.WH.bind(this);this.VF&&this.DA.addEventListener(this.VF,this.NM);this.BC=null}F=SR.prototype; | |
| F.isHidden=function(){return this.RB?this.DA[this.RB]:!1};F.getVisibilityState=function(){return this.WF?this.DA[this.WF]:this.isHidden()?"hidden":"visible"};F.onVisibilityChanged=function(A){return this.XD.add(A)};F.WH=function(){this.XD.fire()};F.onBodyAvailable=function(A){var B=this.DA;if(B.body)return A(),null;this.BC||(this.BC=new RR,TC(B.documentElement,function(){return!!B.body},this.$N.bind(this)));return this.BC.add(A)};F.$N=function(){this.BC.fire();this.BC.removeAll();this.BC=null};var TR=null,UR=["gclid","gclsrc"],VR=[/^t.co$/];function WR(){return T(TR,"E#19457 trackImpressionPromise")} | |
| function XR(){var A=self,B=new AC,C=B.promise,D=B.resolve;TR=EJ(A).timeoutPromise(8E3,C,"TrackImpressionPromise timeout").catch(function(A){S().warn("IMPRESSION",A)});B=FJ(A.document.documentElement);var E=B.isTrustedViewer(),G=B.getReferrerUrl().then(function(A){return YR(A)});Promise.all([E,G]).then(function(B){var C=B[0],E=B[1];if(C||E||W(A,"alp")){var G=ZR(A),H=$R(A);Promise.all([G,H]).then(function(){D()},function(){})}else D()})} | |
| function ZR(A){var B=FJ(A.document.documentElement);return B.getParam("replaceUrl")?B.hasCapability("replaceUrl")?B.sendMessageAwaitResponse("getReplaceUrl",void 0).then(function(A){A&&"object"==typeof A?B.replaceUrl(A.replaceUrl||null):S().warn("IMPRESSION","get invalid replaceUrl response")},function(A){S().warn("IMPRESSION","Error request replaceUrl from viewer",A)}):(B.replaceUrl(B.getParam("replaceUrl")||null),Promise.resolve()):Promise.resolve()} | |
| function YR(A){var B=U(A);return"https:"!=B.protocol?!1:VR.some(function(A){return A.test(B.hostname)})} | |
| function $R(A){var B=FJ(A.document.documentElement),C=B.getParam("click");if(!C)return Promise.resolve();if(0!=C.indexOf("https://"))return O().warn("IMPRESSION","click fragment param should start with https://. Found ",C),Promise.resolve();A.location.hash&&(A.location.hash="");return B.whenFirstVisible().then(function(){return AS(A,C)}).then(function(B){if(B){var C=B.location;(B=B.tracking_url||C)&&!XG(B)&&((new Image).src=B);if(C&&A.history.replaceState){B=FJ(A.document.documentElement);var D=A.location.href; | |
| C=U(C);C=RA(C.search);C=SG(D,C);A.history.replaceState(null,"",C);B.maybeUpdateFragmentForCct()}}}).catch(function(A){O().warn("IMPRESSION","Error on request clickUrl: ",A)})}function AS(A,B){return VH(A,"xhr").fetchJson(B,{credentials:"include",requireAmpResponseSourceOrigin:!1}).then(function(A){return 204==A.status?null:A.json()})}function BS(A){return A.whenReady().then(function(){return!!A.getBody().querySelector("amp-analytics[type=googleanalytics]")})};function CS(){this.H=[]}CS.prototype.peek=function(){var A=this.H.length;return A?this.H[A-1].item:null};CS.prototype.enqueue=function(A,B){if(isNaN(B))throw Error("Priority must not be NaN.");for(var C=-1,D=0,E=this.H.length;D<=E;){C=Math.floor((D+E)/2);if(C===this.H.length)break;if(this.H[C].priority<B)D=C+1;else if(0<C&&this.H[C-1].priority>=B)E=C-1;else break}this.H.splice(C,0,{item:A,priority:B})};CS.prototype.forEach=function(A){for(var B=this.H.length;B--;)A(this.H[B].item)}; | |
| CS.prototype.dequeue=function(){return this.H.length?this.H.pop().item:null};NA.Object.defineProperties(CS.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.H.length}}});var DS=["_top","_blank"]; | |
| function ES(A,B){var C=this;this.ampdoc=A;this.OA=B||A.getRootNode();this.K=HJ(this.ampdoc);this.A=FJ(this.ampdoc);this.U=XH(this.ampdoc,"history");this.VA=CJ(this.ampdoc.win);this.PN=this.VA.isIos()&&this.VA.isSafari();this.CD=QD(this.ampdoc.win)&&this.A.isOvertakeHistory();this.CH=this.OA!=this.ampdoc.getRootNode();this.ON="inabox"==N(this.ampdoc.win).runtime;this.OL=this.OA.nodeType==Node.DOCUMENT_NODE?this.OA.documentElement:this.OA;this.SC=this.IN.bind(this);this.OA.addEventListener("click",this.SC); | |
| this.OA.addEventListener("contextmenu",this.SC);this.YI=!1;BS(this.ampdoc).then(function(A){C.YI=A});this.ZF=null;this.XI=new CS}ES.installInEmbedWindow=function(A,B){RH(A,"navigation",new ES(B,A.document))};F=ES.prototype;F.cleanup=function(){this.SC&&(this.OA.removeEventListener("click",this.SC),this.OA.removeEventListener("contextmenu",this.SC))};F.openWindow=function(A,B,C,D){var E="";!this.VA.isIos()&&this.VA.isChrome()||D||(E+="noopener");var G=OD(A,B,C,E);G&&!D&&(G.opener=null)}; | |
| F.navigateTo=function(A,B,C,D){var E=void 0===D?{}:D;D=void 0===E.target?"_top":E.target;E=void 0===E.opener?!1:E.opener;var G=LH(this.OL,"url");if(G.isProtocolValid(B))if(T(DS.includes(D),"Target '"+D+"' not supported."),"_blank"==D)this.openWindow(A,B,D,E);else{if(C&&(this.ZF||(this.ZF=FS(this)),this.ZF.includes(C)&&this.navigateToAmpUrl(B,C)))return;A.top.location.href=B}else O().error("navigation","Cannot navigate to invalid protocol: "+B)}; | |
| F.navigateToAmpUrl=function(A,B){return this.A.hasCapability("a2a")?(this.A.sendMessage("a2aNavigate",$B({url:A,requestedBy:B})),!0):!1};function FS(A){return(A=A.OA.querySelector('meta[name="amp-to-amp-navigation"]'))&&A.hasAttribute("content")?A.getAttribute("content").split(",").map(function(A){return A.trim()}):[]} | |
| F.IN=function(A){if(!A.defaultPrevented){var B=AD(A.target,"A");if(B&&B.href)if("click"==A.type){GS(this,B);var C=HS(this,B.href),D;if(D=!IS(this,A,B,C)){if(this.CD){D=B.ownerDocument.defaultView;var E=B.href;C=C.protocol;"ftp:"==C?(OD(D,E,"_blank"),A.preventDefault(),D=!0):(C=/^(https?|mailto):$/.test(C),this.PN&&!C?(OD(D,E,"_top"),A.preventDefault(),D=!0):D=!1)}else D=!1;D=!D}D&&(JS(this,B,A),C=HS(this,B.href),KS(this,A,B,C))}else"contextmenu"==A.type&&(GS(this,B),JS(this,B,A))}}; | |
| function JS(A,B,C){A.XI.forEach(function(A){A(B,C)})} | |
| function GS(A,B){var C=null;if(A.YI&&!A.CH){A=U(A.ampdoc.win.location.href);var D=RA(A.search);A=[];for(var E=0;E<UR.length;E++){var G=UR[E];"undefined"!==typeof D[G]&&A.push(G)}D=B.getAttribute("data-amp-addparams");E=B.href;D&&(E=SG(E,RA(D)));D=U(E);D=RA(D.search);for(E=A.length-1;0<=E;E--)"undefined"!==typeof D[A[E]]&&A.splice(E,1);D="";for(E=0;E<A.length;E++)G=A[E],D+=0==E?G+"=QUERY_PARAM("+G+")":"&"+G+"=QUERY_PARAM("+G+")";C=D}var H=LH(B,"url-replace");H.maybeExpandLink(B,C)} | |
| function IS(A,B,C,D){if(!C.hasAttribute("rel"))return!1;var E=C.getAttribute("rel").split(" ").map(function(A){return A.trim()});return E.includes("amphtml")?A.navigateToAmpUrl(D.href,"<a rel=amphtml>")?(B.preventDefault(),!0):!1:!1} | |
| function KS(A,B,C,D){var E="",G=HS(A,E),H=""+D.origin+D.pathname+D.search,I=""+G.origin+G.pathname+G.search;if(D.hash&&H==I){if(B.preventDefault(),!A.CH){var J=D.hash.slice(1),K=null;if(J){var L=String(J).replace(CC,DC);K=A.OA.getElementById(J)||A.OA.querySelector('a[name="'+L+'"]')}D.hash!=G.hash?A.U.replaceStateForTarget(D.hash).then(function(){LS(A,K,J)}):LS(A,K,J)}}else if(A.CH||A.ON){var M=(C.getAttribute("target")||"").toLowerCase();"_top"!=M&&"_blank"!=M&&C.setAttribute("target","_blank")}else if(CJ(A.ampdoc.win).isIe()){var P= | |
| D.hash.substring(1),Q=A.ampdoc.getElementById(P);Q&&(/^(?:a|select|input|button|textarea)$/i.test(Q.tagName)||(Q.tabIndex=-1),PD(Q))}}F.registerAnchorMutator=function(A,B){this.XI.enqueue(A,B)};function LS(A,B,C){B?(A.K.scrollIntoView(B),EJ(A.ampdoc.win).delay(function(){return A.K.scrollIntoView(B)},1)):S().warn("navigation","failed to find element with id="+C+" or a[name="+C+"]")}function HS(A,B){return LH(A.OL,"url").parse(B)};function MS(A){YI(A).then(function(B){B&&A.getRootNode().addEventListener("submit",NS,!0)})} | |
| function NS(A){if(!A.defaultPrevented){var B=A.target;if(B&&"FORM"==B.tagName){var C=B.classList.contains("i-amphtml-form"),D;(D=C?!B.hasAttribute("amp-novalidate"):!B.hasAttribute("novalidate"))&&B.checkValidity&&!B.checkValidity()&&A.preventDefault();for(var E=B.elements,G=0;G<E.length;G++)T(!E[G].name||"__amp_source_origin"!=E[G].name,"Illegal input name, %s found: %s","__amp_source_origin",E[G]);G=B.getAttribute("action");var H=B.getAttribute("action-xhr"),I=(B.getAttribute("method")||"GET").toUpperCase(); | |
| H&&(VG(H,B,"action-xhr"),T(!XG(H),"form action-xhr should not be on AMP CDN: %s",B),DH(H));G&&(VG(G,B,"action"),T(!XG(G),"form action should not be on AMP CDN: %s",B),DH(G));"GET"==I?T(H||G,"form action-xhr or action attribute is required for method=GET: %s",B):"POST"==I&&(G&&O().error("form","action attribute is invalid for method=POST: %s",B),H||(A.preventDefault(),T(!1,"Only XHR based (via action-xhr attribute) submissions are support for POST requests. %s",B)));(G=B.getAttribute("target"))?T("_blank"== | |
| G||"_top"==G,"form target=%s is invalid can only be _blank or _top: %s",G,B):B.setAttribute("target","_top");H&&(A.preventDefault(),A.stopImmediatePropagation(),LH(B,"action").execute(B,"submit",null,B,B,A,100))}}};function OS(A){try{return A.state}catch(B){return null}};function PS(A,B){this.J=A;this.X=EJ(A.win);this.B=B;this.G=0;this.YB=[];this.H=[];this.B.setOnStateUpdated(this.GA.bind(this))}F=PS.prototype;F.cleanup=function(){this.B.cleanup()};F.push=function(A,B){var C=this;return QS(this,function(){return C.B.push(B).then(function(B){C.GA(B);A&&(C.YB[B.stackIndex]=A);return B.stackIndex})},"push")};F.pop=function(A){var B=this;return QS(this,function(){return B.B.pop(A).then(function(A){B.GA(A)})},"pop")}; | |
| F.replace=function(A){var B=this;return QS(this,function(){return B.B.replace(A)},"replace")};F.get=function(){var A=this;return QS(this,function(){return A.B.get()},"get")};F.goBack=function(){var A=this;return QS(this,function(){return 0>=A.G?Promise.resolve():A.B.pop(A.G).then(function(B){A.GA(B)})},"goBack")};F.replaceStateForTarget=function(A){var B=this,C=this.J.win.location.hash;return this.push(function(){B.J.win.location.replace(C||"#")}).then(function(){B.B.replaceStateForTarget(A)})}; | |
| F.getFragment=function(){return this.B.getFragment()};F.updateFragment=function(A){"#"==A[0]&&(A=A.substr(1));return this.B.updateFragment(A)};F.GA=function(A){this.G=A.stackIndex;RS(this,A)};function RS(A,B){if(!(A.G>=A.YB.length-1)){for(var C=[],D=A.YB.length-1;D>A.G;D--)A.YB[D]&&(C.push(A.YB[D]),A.YB[D]=void 0);A.YB.splice(A.G+1);if(0<C.length)for(D={$C:0};D.$C<C.length;D={$C:D.$C},D.$C++)A.X.delay(function(A){return function(){return C[A.$C](B)}}(D),1)}} | |
| function QS(A,B,C){var D=new AC,E=D.promise,G=Error("history trace for "+C+": ");A.H.push({callback:B,resolve:D.resolve,reject:D.reject,trace:G});1==A.H.length&&SS(A);return E}function SS(A){if(0!=A.H.length){var B=A.H[0];try{var C=B.callback()}catch(D){C=Promise.reject(D)}C.then(function(A){B.resolve(A)},function(A){S().error("History","failed to execute a task:",A);B.trace&&(B.trace.message+=A,S().error("History",B.trace));B.reject(A)}).then(function(){A.H.splice(0,1);SS(A)})}} | |
| function TS(A){var B=this;this.win=A;this.X=EJ(A);A=this.win.history;this.ZB=A.length-1;var C=OS(A);C&&void 0!==C["AMP.History"]&&(this.ZB=Math.min(C["AMP.History"],this.ZB));this.G=this.ZB;this.GA=null;this.XO="state"in A;this.PC=US(this,this.G);if(A.pushState&&A.replaceState){this.BF=A.originalPushState||A.pushState.bind(A);this.KD=A.originalReplaceState||A.replaceState.bind(A);var D=function(A,C,D){B.PC=A;B.BF(A,C,D||null)};var E=function(A,C,D){B.PC=A;void 0!==D?B.KD(A,C,D):B.KD(A,C)};A.originalPushState|| | |
| (A.originalPushState=this.BF);A.originalReplaceState||(A.originalReplaceState=this.KD)}else D=function(A){B.PC=A},E=function(A){B.PC=A};this.JO=D;this.IF=E;try{this.IF(US(this,this.G,!0))}catch(G){S().error("History","Initial replaceState failed: "+G.message)}A.pushState=this.IK.bind(this);A.replaceState=this.UG.bind(this);this.GF=function(){var A=VS(B),C=A?A["AMP.History"]:void 0,D=B.G,E=B.YF;B.YF=void 0;D>B.win.history.length-2&&(D=B.win.history.length-2,B.BB(WS(A,{stackIndex:D})));D=void 0==C? | |
| D+1:C<B.win.history.length?C:B.win.history.length-1;A||(A={});A["AMP.History"]=D;B.IF(A,void 0,void 0);D!=B.G&&B.BB(WS(A,{stackIndex:D}));D<B.ZB&&(B.ZB=D);E&&E.resolve()};this.win.addEventListener("popstate",this.GF)}F=TS.prototype;F.cleanup=function(){this.BF&&(this.win.history.pushState=this.BF);this.KD&&(this.win.history.replaceState=this.KD);this.win.removeEventListener("popstate",this.GF)};function US(A,B,C){A=ZB(C?VS(A):void 0);A["AMP.History"]=B;return A} | |
| F.setOnStateUpdated=function(A){this.GA=A};F.push=function(A){var B=this;return XS(this,function(){var C=WS(VS(B),A||{});B.IK(C,void 0,C.fragment?"#"+C.fragment:void 0);return BC(function(){return WS(C,{stackIndex:B.G})})})};F.pop=function(A){var B=this;A=Math.max(A,this.ZB);return XS(this,function(){return YS(B,B.G-A+1)}).then(function(A){return WS(VS(B),{stackIndex:A})})}; | |
| F.replace=function(A){var B=this;A=void 0===A?{}:A;return XS(this,function(){var C=WS(VS(B),A||{}),D=(C.url||"").replace(/#.*/,""),E=C.fragment?"#"+C.fragment:"";B.UG(C,C.title,D||E?D+E:void 0);return BC(function(){return WS(C,{stackIndex:B.G})})})};F.get=function(){var A=this;return BC(function(){return WS(VS(A),{stackIndex:A.G})})};F.backTo=function(A){var B=this;A=Math.max(A,this.ZB);return XS(this,function(){return YS(B,B.G-A)})};function VS(A){return A.XO?OS(A.win.history):A.PC} | |
| function XS(A,B){return A.YF?A.YF.promise.then(B,B):B()}function ZS(A){var B=new AC,C=B.resolve,D=B.reject;B=A.X.timeoutPromise(500,B.promise);A.YF={promise:B,resolve:C,reject:D};return B}function YS(A,B){if(0>=B)return Promise.resolve(A.G);A.PC=US(A,A.G-B);var C=ZS(A);A.win.history.go(-B);return C.then(function(){return Promise.resolve(A.G)})} | |
| F.IK=function(A,B,C){A||(A={});var D=this.G+1;A["AMP.History"]=D;this.JO(A,B,C);D!=this.win.history.length-1&&(D=this.win.history.length-1,A["AMP.History"]=D,this.IF(A));A=WS(A,{stackIndex:D});this.BB(A)};F.replaceStateForTarget=function(A){var B=this;XS(this,function(){B.win.removeEventListener("popstate",B.GF);try{B.win.location.replace(A)}finally{B.win.addEventListener("popstate",B.GF)}B.UG();return Promise.resolve()})}; | |
| F.UG=function(A,B,C){A||(A={});var D=Math.min(this.G,this.win.history.length-1);A["AMP.History"]=D;this.IF(A,B,C);A=WS(A,{stackIndex:D});this.BB(A)};F.BB=function(A){A.stackIndex=Math.min(A.stackIndex,this.win.history.length-1);this.G!=A.stackIndex&&(this.G=A.stackIndex,this.GA&&this.GA(A))};F.getFragment=function(){var A=this.win.location.hash;A=A.substr(1);return Promise.resolve(A)};F.updateFragment=function(A){return this.replace({fragment:A})}; | |
| function WS(A,B){var C=Object.assign({},A&&A.data||{},B.data||{});return Object.assign({},A||{},B,{data:C})}function $S(A,B){var C=this;this.win=A;this.A=B;this.G=0;this.GA=null;this.AP=this.A.onMessage("historyPopped",function(A){void 0!==A.newStackIndex&&(A.stackIndex=A.newStackIndex);C.BB(A)})}F=$S.prototype;F.replaceStateForTarget=function(A){this.win.location.replace(A)};F.cleanup=function(){this.AP()};F.setOnStateUpdated=function(A){this.GA=A}; | |
| F.push=function(A){var B=this,C=Object.assign({stackIndex:this.G+1},A||{});return this.A.sendMessageAwaitResponse("pushHistory",C).then(function(A){A=A||C;B.BB(A);return A})};F.pop=function(A){var B=this;if(A>this.G)return this.get();A=$B({stackIndex:this.G});return this.A.sendMessageAwaitResponse("popHistory",A).then(function(A){A=A||$B({stackIndex:B.G-1});B.BB(A);return A})}; | |
| F.replace=function(A){var B=this;if(A&&A.url){if(!this.A.hasCapability("fullReplaceHistory")){var C=$B({stackIndex:this.G});return Promise.resolve(C)}var D=A.url.replace(/#.*/,"");A.url=D}var E=Object.assign({stackIndex:this.G},A||{});return this.A.sendMessageAwaitResponse("replaceHistory",E,!0).then(function(A){A=A||E;B.BB(A);return A})};F.get=function(){return Promise.resolve({data:void 0,fragment:"",stackIndex:this.G,title:""})}; | |
| F.BB=function(A){var B=A.stackIndex;this.G!=B&&(this.G=B,this.GA&&this.GA(A))};F.getFragment=function(){return this.A.hasCapability("fragment")?this.A.sendMessageAwaitResponse("getFragment",void 0,!0).then(function(A){if(!A)return"";"#"==A[0]&&(A=A.substr(1));return A}):Promise.resolve("")};F.updateFragment=function(A){return this.A.hasCapability("fragment")?this.A.sendMessageAwaitResponse("replaceHistory",$B({fragment:A}),!0):Promise.resolve()}; | |
| function AT(A){var B=FJ(A);B.isOvertakeHistory()||A.win.AMP_TEST_IFRAME?B=new $S(A.win,B):(TH(A.win,"global-history-binding",TS),B=VH(A.win,"global-history-binding"));return new PS(A,B)};function BT(A){this.win=A;this.LM=this.AO.bind(this);this.MM=this.BO.bind(this);this.FG=this.EJ=this.GG=null;this.SG="ontouchstart"in A||void 0!==A.navigator.maxTouchPoints&&0<A.navigator.maxTouchPoints||void 0!==A.DocumentTouch;this.FD=!1;this.win.document.addEventListener("keydown",this.LM);this.win.document.addEventListener("mousedown",this.MM);this.RG=!0;this.VK=0;this.ZO=new RR;this.WK=new RR;this.IH=new RR;this.SG&&(this.RG=!this.SG,this.GG=this.CO.bind(this),JK(A.document,"mousemove",this.GG))} | |
| F=BT.prototype;F.isTouchDetected=function(){return this.SG};F.onTouchDetected=function(A,B){B&&A(this.isTouchDetected());return this.ZO.add(A)};F.isMouseDetected=function(){return this.RG};F.onMouseDetected=function(A,B){B&&A(this.isMouseDetected());return this.WK.add(A)};F.isKeyboardActive=function(){return this.FD};F.onKeyboardStateChanged=function(A,B){B&&A(this.isKeyboardActive());return this.IH.add(A)}; | |
| F.AO=function(A){this.FD||A.defaultPrevented||(A=A.target,A&&("INPUT"==A.tagName||"TEXTAREA"==A.tagName||"SELECT"==A.tagName||"OPTION"==A.tagName||A.hasAttribute("contenteditable")))||(this.FD=!0,this.IH.fire(!0))};F.BO=function(){this.FD&&(this.FD=!1,this.IH.fire(!1))}; | |
| F.CO=function(A){var B=this;if(A.sourceCapabilities&&A.sourceCapabilities.firesTouchEvents)this.UK();else{this.FG||(this.FG=this.ZN.bind(this),this.EJ=this.UK.bind(this));var C,D=KK(this.win.document,function(A){C=A});return EJ(this.win).timeoutPromise(300,D).then(this.EJ,function(){C&&C();B.FG()})}};F.ZN=function(){this.RG=!0;this.WK.fire(!0)};F.UK=function(){this.VK++;3>=this.VK&&JK(this.win.document,"mousemove",this.GG)};function CT(A){this.Y=A.navigator}F=CT.prototype;F.isAndroid=function(){return/Android/i.test(this.Y.userAgent)};F.isIos=function(){return/iPhone|iPad|iPod/i.test(this.Y.userAgent)};F.isSafari=function(){return/Safari/i.test(this.Y.userAgent)&&!this.isChrome()&&!this.isIe()&&!this.isEdge()&&!this.isFirefox()&&!this.isOpera()};F.isChrome=function(){return/Chrome|CriOS/i.test(this.Y.userAgent)&&!this.isEdge()&&!this.isOpera()};F.isFirefox=function(){return/Firefox|FxiOS/i.test(this.Y.userAgent)&&!this.isEdge()}; | |
| F.isOpera=function(){return/OPR\/|Opera|OPiOS/i.test(this.Y.userAgent)};F.isIe=function(){return/Trident|MSIE|IEMobile/i.test(this.Y.userAgent)};F.isEdge=function(){return/Edge/i.test(this.Y.userAgent)};F.isWebKit=function(){return/WebKit/i.test(this.Y.userAgent)&&!this.isEdge()};F.isWindows=function(){return/Windows/i.test(this.Y.userAgent)};F.isStandalone=function(){return this.isIos()&&this.Y.standalone};F.isBot=function(){return/bot/i.test(this.Y.userAgent)}; | |
| F.getMajorVersion=function(){return this.isSafari()?this.isIos()?this.getIosMajorVersion()||0:DT(this,/\sVersion\/(\d+)/,1):this.isChrome()?DT(this,/(Chrome|CriOS)\/(\d+)/,2):this.isFirefox()?DT(this,/(Firefox|FxiOS)\/(\d+)/,2):this.isOpera()?DT(this,/(OPR|Opera|OPiOS)\/(\d+)/,2):this.isIe()?DT(this,/MSIE\s(\d+)/,1):this.isEdge()?DT(this,/Edge\/(\d+)/,1):0};function DT(A,B,C){if(!A.Y.userAgent)return 0;A=A.Y.userAgent.match(B);return!A||C>=A.length?0:parseInt(A[C],10)} | |
| F.getIosVersionString=function(){if(!this.Y.userAgent||!this.isIos())return"";var A=this.Y.userAgent.match(/OS ([0-9]+[_.][0-9]+([_.][0-9]+)?)\b/);return A?A=A[1].replace(/_/g,"."):""};F.getIosMajorVersion=function(){var A=this.getIosVersionString();return""==A?null:Number(A.split(".")[0])};function ET(A){this.L=A;this.WL=Object.create(null)}ET.prototype.addTransition=function(A,B,C){var D=A+"|"+B;this.WL[D]=C};ET.prototype.setState=function(A){var B=this.L;this.L=A;(A=this.WL[B+"|"+A])&&A()};function FT(A){var B=6E4,C=this;this.win=A;this.IO=B;this.U=[];this.XK=new RR;this.QJ=function(A){A.target&&1==A.target.nodeType&>(C,A.target)};this.PJ=function(){EJ(A).delay(function(){GT(C,C.win.document.activeElement)},500)};this.win.document.addEventListener("focus",this.QJ,!0);this.win.addEventListener("blur",this.PJ)}F=FT.prototype;F.HP=function(){this.win.document.removeEventListener("focus",this.QJ,!0);this.win.removeEventListener("blur",this.PJ)};F.onFocus=function(A){return this.XK.add(A)}; | |
| function GT(A,B){var C=Date.now();0==A.U.length||A.U[A.U.length-1].el!=B?A.U.push({el:B,time:C}):A.U[A.U.length-1].time=C;A.purgeBefore(C-A.IO);A.XK.fire(B)}F.getLast=function(){return 0==this.U.length?null:this.U[this.U.length-1].el};F.purgeBefore=function(A){for(var B=this.U.length-1,C=0;C<this.U.length;C++)if(this.U[C].time>=A){B=C-1;break}-1!=B&&this.U.splice(0,B+1)}; | |
| F.hasDescendantsOf=function(A){this.win.document.activeElement&>(this,this.win.document.activeElement);for(var B=0;B<this.U.length;B++)if(A.contains(this.U[B].el))return!0;return!1};function HT(){this.M=[];this.UD={};this.NK=this.OK=0}F=HT.prototype;F.getSize=function(){return this.M.length};F.getLastEnqueueTime=function(){return this.OK};F.getLastDequeueTime=function(){return this.NK};F.getTaskById=function(A){return this.UD[A]||null};F.enqueue=function(A){this.M.push(A);this.UD[A.id]=A;this.OK=Date.now()};F.dequeue=function(A){var B=this.removeAtIndex(A,this.M.indexOf(this.UD[A.id]));if(!B)return!1;this.NK=Date.now();return!0}; | |
| F.peek=function(A,B){for(var C=1E6,D=null,E=0;E<this.M.length;E++){var G=this.M[E],H=A(G,B);H<C&&(C=H,D=G)}return D};F.forEach=function(A){this.M.forEach(A)};F.removeAtIndex=function(A,B){var C=this.UD[A.id];if(!C||this.M[B]!=C)return!1;this.M.splice(B,1);delete this.UD[A.id];return!0};F.purge=function(A){for(var B=this.M.length;B--;)A(this.M[B])&&this.removeAtIndex(this.M[B],B)};function IT(A){var B;return!(B||CJ(A)).isIe()||JT(A)?null:new Promise(function(B){var C=Date.now()+2E3,E=A.setInterval(function(){var D=Date.now(),H=JT(A);if(H||D>C)A.clearInterval(E),B(),H||S().error("ie-media-bug","IE media never resolved")},10)})}function JT(A){var B="(min-width: "+(A.innerWidth-1)+"px)"+(" AND (max-width: "+(A.innerWidth+1)+"px)");try{return A.matchMedia(B).matches}catch(C){return S().error("ie-media-bug","IE matchMedia failed: ",C),!0}};function KT(A){var B=this;this.ampdoc=A;this.win=A.win;this.A=FJ(A);this.TA=this.A.isRuntimeOn();this.MN=!1;this.TK=this.win.devicePixelRatio||1;this.QO=0;this.D=[];this.QM=this.TI=0;this.RA=this.A.isVisible();this.JB=this.A.getPrerenderSize();this.VC=!1;this.$J=!0;this.VI=!1;this.HB=-1;this.LC=!0;this.QD=-1;this.KH=this.PE=0;this.EF=new $O(this.win,function(){return B.doPass()});this.HL=new $O(this.win,function(){B.LC=!0;B.schedulePass()});this.ZA=new HT;this.H=new HT;this.I=W(this.win,"layers"); | |
| this.UF=W(this.win,"layers-prioritization");var C;this.GJ=C=this.I&&this.UF?this.SM.bind(this):this.TM.bind(this);this.MA=[];this.$A=[];this.BH=!1;this.K=HJ(this.ampdoc);this.C=GJ(this.win);this.RI=new FT(this.win);this.QI=!1;this.BE=0;this.TB=!1;this.DF=[];this.EM=new ET(this.A.getVisibilityState());LT(this,this.EM);this.K.onChanged(function(A){B.PE=Date.now();B.KH=A.velocity;A.relayoutAll&&(B.LC=!0,B.TB=!0);B.schedulePass()});this.K.onScroll(function(){B.PE=Date.now()});this.I&&(this.GC=XH(this.ampdoc, | |
| "layers"),this.KM=this.RM.bind(this));this.A.onVisibilityChanged(function(){-1==B.HB&&B.A.isVisible()&&(B.HB=Date.now());B.schedulePass()});this.A.onRuntimeState(function(A){B.TA=A;B.schedulePass(1)});this.RI.onFocus(function(A){MT(B,A)});this.schedulePass();this.rebuildDomWhenReady()}F=KT.prototype; | |
| F.rebuildDomWhenReady=function(){var A=this;this.ampdoc.whenReady().then(function(){function B(){return A.HL.schedule()}A.VC=!0;NT(A);A.$A=null;var C=IT(A.win);C?C.then(B):B();OT(A);Promise.race([LK(A.win),EJ(A.win).promise(3100)]).then(B);A.win.document.fonts&&"loaded"!=A.win.document.fonts.status&&A.win.document.fonts.ready.then(B)})};F.get=function(){return this.D.slice(0)};F.isRuntimeOn=function(){return this.TA};F.renderStarted=function(){this.ampdoc.signals().signal("render-start")}; | |
| F.getMeasuredResources=function(A,B){var C=this;return this.ampdoc.signals().whenSignal("ready-scan").then(function(){var B=[];C.D.forEach(function(D){D.hasBeenMeasured()||D.hostWin!=A||D.hasOwner()||B.push(PT(C,D))});return Promise.all(B)}).then(function(){return C.D.filter(function(C){return C.hostWin==A&&!C.hasOwner()&&C.hasBeenMeasured()&&B(C)})})}; | |
| F.getResourcesInRect=function(A,B,C){return this.getMeasuredResources(A,function(A){return!A.isDisplayed()||!A.overlaps(B)&&!A.isFixed()||C&&!A.prerenderAllowed()?!1:!0})};function OT(A){var B=VH(A.win,"input");B.onTouchDetected(function(B){QT(A,"amp-mode-touch",B)},!0);B.onMouseDetected(function(B){QT(A,"amp-mode-mouse",B)},!0);B.onKeyboardStateChanged(function(B){QT(A,"amp-mode-keyboard-active",B)},!0)} | |
| function QT(A,B,C){A.ampdoc.whenBodyAvailable().then(function(D){A.C.mutate(function(){D.classList.toggle(B,C)})})}F.getMaxDpr=function(){return this.TK};F.getDpr=function(){return this.TK};F.getResourceForElement=function(A){return TO(A)};F.getResourceForElementOptional=function(A){return TO(A)};F.getElementLayoutBox=function(A){var B=this,C=this.getResourceForElementOptional(A);return C?PT(this,C):this.C.measurePromise(function(){return B.getViewport().getLayoutRect(A)})}; | |
| function PT(A,B){return B.hasBeenMeasured()?BC(function(){return B.getPageLayoutBox()}):A.C.measurePromise(function(){B.measure();return B.getPageLayoutBox()})}F.getViewport=function(){return this.K};F.getScrollDirection=function(){return Math.sign(this.KH)||1};F.add=function(A){this.TI++;1==this.TI&&this.K.ensureReadyForElements();var B=TO(A);B&&0!=B.getState()&&!A.reconstructWhenReparented()?B.requestMeasure():B=new SO(++this.QO,A,this);this.D.push(B);this.HL.schedule(1E3)}; | |
| F.grantBuildPermission=function(){return 20>this.QM++||this.A.hasBeenVisible()};function RT(A,B,C){C=void 0===C?!1:C;var D=void 0===D?!0:D;var E=A.TA||A.MN,G="prerender"!=A.A.getVisibilityState()||B.prerenderAllowed();E&&G&&(A.VC?ST(A,B,D):B.isBuilt()||B.isBuilding()||C&&A.$A.includes(B)||(A.$A.push(B),NT(A,D)))} | |
| function NT(A,B){if(!A.BH)try{A.BH=!0;B=void 0===B?!0:B;B=void 0===B?!0:B;for(var C=0;C<A.$A.length;C++){var D=A.$A[C],E;if(!(E=A.VC))A:{var G=A.ampdoc.getRootNode(),H=D.element;do if(H.nextSibling){E=!0;break A}while((H=H.parentNode)&&H!=G);E=!1}E&&(A.$A.splice(C--,1),ST(A,D,B))}}finally{A.BH=!1}}function ST(A,B,C){var D=B.build();D&&C&&D.then(function(){return A.schedulePass()},function(C){TT(A,B);if(!BM(C))throw C;})}F.remove=function(A){(A=TO(A))&&TT(this,A)}; | |
| function TT(A,B,C){var D=A.D.indexOf(B);-1!=D&&A.D.splice(D,1);B.isBuilt()&&B.pauseOnRemove();C&&B.disconnect();UT(A,B,!0)}F.removeForChildWindow=function(A){var B=this,C=this.D.filter(function(B){return B.hostWin==A});C.forEach(function(A){return TT(B,A,!0)})};F.upgraded=function(A){A=TO(A);RT(this,A)};F.setOwner=function(A,B){B.contains(A);TO(A)&&TO(A).updateOwner(B);A.__AMP__OWNER=B;A=A.getElementsByClassName("i-amphtml-element");for(B=0;B<A.length;B++){var C=A[B];TO(C)&&TO(C).updateOwner(void 0)}}; | |
| F.requireLayout=function(A,B){var C=this,D=[];VT(this,A,function(A){4!=A.getState()&&(3!=A.getState()?D.push(A.whenBuilt().then(function(){A.measure();if(A.isDisplayed())return WT(C,A,!0,B,!0),A.loadedOnce()})):A.isDisplayed()&&D.push(A.loadedOnce()))});return Promise.all(D)};F.scheduleLayout=function(A,B){XT(this,TO(A),!0,YT(B))};F.schedulePause=function(A,B){var C=TO(A);B=YT(B);ZT(this,C,B,function(A){A.pause()})};F.scheduleResume=function(A,B){A=TO(A);B=YT(B);ZT(this,A,B,function(A){A.resume()})}; | |
| F.scheduleUnlayout=function(A,B){A=TO(A);B=YT(B);ZT(this,A,B,function(A){A.unlayout()})};F.schedulePreload=function(A,B){XT(this,TO(A),!1,YT(B))};F.updateLayoutPriority=function(A,B){var C=TO(A);C.updateLayoutPriority(B);this.H.forEach(function(A){A.resource==C&&(A.priority=B)});this.schedulePass()};F.updateInViewport=function(A,B,C){$T(this,TO(A),YT(B),C)};F.changeSize=function(A,B,C,D,E){AU(this,TO(A),B,C,E,!0,D)}; | |
| F.attemptChangeSize=function(A,B,C,D){var E=this;return new Promise(function(G,H){AU(E,TO(A),B,C,D,!1,function(A){A?G():H(Error("changeSize attempt denied"))})})};F.measureElement=function(A){return this.C.measurePromise(A)};F.mutateElement=function(A,B){return this.measureMutateElement(A,null,B)};F.measureMutateElement=function(A,B,C){return this.I?BU(this,A,B,C):CU(this,A,B,C)}; | |
| function CU(A,B,C,D){function E(){var C=A.K.getLayoutRect(B);return 0!=C.width&&0!=C.height?C.top:-1}var G=-1;return A.C.runPromise({measure:function(){C&&C();G=E()},mutate:function(){D();B.classList.contains("i-amphtml-element")&&TO(B).requestMeasure();for(var C=B.getElementsByClassName("i-amphtml-element"),I=0;I<C.length;I++)TO(C[I]).requestMeasure();-1!=G&&DU(A,G);A.schedulePass(70);A.C.measure(function(){var B=E();-1!=B&&B!=G&&(DU(A,B),A.schedulePass(70));A.TB=!0})}})} | |
| function BU(A,B,C,D){return A.C.runPromise({measure:C||void 0,mutate:function(){D();A.dirtyElement(B)}})}F.dirtyElement=function(A){var B=!1;if(this.I)this.GC.dirty(A),this.TB=!0;else{var C=A.classList.contains("i-amphtml-element");C?(A=TO(A),DU(this,A.getLayoutBox().top)):B=!0}this.schedulePass(70,B)};F.attemptCollapse=function(A){var B=this;return new Promise(function(C,D){AU(B,TO(A),0,0,void 0,!1,function(B){B?(TO(A).completeCollapse(),C()):D(Error("collapse attempt denied"))})})}; | |
| F.collapseElement=function(A){var B=this.K.getLayoutRect(A),C=TO(A);0!=B.width&&0!=B.height&&(W(this.win,"dirty-collapse-element")||this.I?this.dirtyElement(A):DU(this,B.top));C.completeCollapse();this.schedulePass(70)};F.expandElement=function(A){var B=TO(A);B.completeExpand();(B=B.getOwner())&&B.expandedCallback(A);this.schedulePass(70)};F.schedulePass=function(A,B){B&&(this.LC=!0);return this.EF.schedule(A)};F.schedulePassVsync=function(){var A=this;this.QI||(this.QI=!0,this.C.mutate(function(){return A.doPass()}))}; | |
| F.ampInitComplete=function(){this.VI=!0;this.schedulePass()};F.onNextPass=function(A){this.DF.push(A)}; | |
| F.doPass=function(){var A=this;if(this.TA){this.RA=this.A.isVisible();this.JB=this.A.getPrerenderSize();var B=this.VC&&this.$J;if(B){this.$J=!1;var C=this.win.document,D=$I(this.ampdoc);this.A.sendMessage("documentLoaded",$B({title:C.title,sourceUrl:AH(this.ampdoc.getUrl()),serverLayout:C.documentElement.hasAttribute("i-amphtml-element"),linkRels:D.linkRels,metaTags:D.metaTags}),!0);this.BE=this.K.getContentHeight();this.A.sendMessage("documentHeight",$B({height:this.BE}),!0)}this.K.getSize();this.EF.cancel(); | |
| this.QI=!1;this.EM.setState(this.A.getVisibilityState());this.VC&&this.VI&&!this.ampdoc.signals().get("ready-scan")&&this.ampdoc.signals().signal("ready-scan");this.TB&&(this.TB=!1,this.C.measure(function(){var B=A.K.getContentHeight();B!=A.BE&&(A.A.sendMessage("documentHeight",$B({height:B}),!0),A.BE=B,A.K.contentHeightChanged())}));for(C=0;C<this.DF.length;C++)(0,this.DF[C])();this.DF.length=0}}; | |
| function EU(A){var B=Date.now(),C=A.K.getRect(),D=C.height/10,E=C.height/10,G=.01>Math.abs(A.KH)&&500<B-A.PE||1E3<B-A.PE;if(0<A.MA.length){var H=A.MA;A.MA=[];var I=-1,J=[],K=[],L=0;for(B=0;B<H.length;B++){var M=H[B],P=M.resource,Q=P.getLayoutBox(),R=0,Z=0,FA=0,JA=0,KA=Q,VA=KA.top,DA=KA.bottom,X=void 0;M.marginChange&&(X=M.marginChange.newMargins,KA=M.marginChange.currentMargins,void 0!=X.top&&(R=X.top-KA.top),void 0!=X.bottom&&(Z=X.bottom-KA.bottom),void 0!=X.left&&(FA=X.left-KA.left),void 0!=X.right&& | |
| (JA=X.right-KA.right),R&&(VA=Q.top-KA.top),Z&&(DA=Q.bottom+KA.bottom));var OA=M.newHeight-Q.height,FC=M.newWidth-Q.width,V=!1;if(0!=OA||0!=R||0!=Z||0!=FC||0!=FA||0!=JA)if(M.force||!A.RA)V=!0;else if(A.RI.hasDescendantsOf(P.element))V=!0;else if(VA>=C.bottom-E||0==R&&Q.bottom+Math.min(OA,0)>=C.bottom-E)V=!0;else if(1<C.top&&DA<=C.top+D){if(0>OA&&C.top+L<-OA)continue;G?(L+=OA,J.push(M)):A.MA.push(M);continue}else FU(A,P,Q)?V=!0:0>OA||0>R||0>Z||M.resource.overflowCallback(!0,M.newHeight,M.newWidth,X); | |
| V&&(0<=Q.top&&(I=-1==I?Q.top:Math.min(I,Q.top)),A.I&&K.push(M.resource.element),M.resource.changeSize(M.newHeight,M.newWidth,X),M.resource.overflowCallback(!1,M.newHeight,M.newWidth,X),A.TB=!0);M.callback&&M.callback(V)}A.I?K.forEach(function(B){A.dirtyElement(B)}):-1!=I&&DU(A,I);0<J.length&&A.C.run({measure:function(B){B.scrollHeight=A.K.getScrollHeight();B.scrollTop=A.K.getScrollTop()},mutate:function(B){var C=-1;J.forEach(function(A){var B=A.resource.getLayoutBox();C=-1==C?B.top:Math.min(C,B.top); | |
| A.resource.changeSize(A.newHeight,A.newWidth,A.marginChange?A.marginChange.newMargins:void 0);A.callback&&A.callback(!0)});A.I?J.forEach(function(B){A.dirtyElement(B.resource.element)}):-1!=C&&DU(A,C);var D=A.K.getScrollHeight();D!=B.scrollHeight&&A.K.setScrollTop(B.scrollTop+(D-B.scrollHeight));A.TB=!0}},{})}}function FU(A,B,C){var D,E=A.K.getContentHeight();A=Math.max(.85*E,E-1E3);var G=C||B.getLayoutBox(),H=D||B.getInitialLayoutBox();return G.bottom>=A||H.bottom>=A} | |
| function DU(A,B){A.I?A.LC=!0:A.QD=-1==A.QD?B:Math.min(B,A.QD)}function MT(A,B){var C=ZC(B,function(A){return!!TO(A)});if(C){B=TO(C);var D=B.getPendingChangeSize();void 0!==D&&AU(A,B,D.height,D.width,D.margins,!0)}} | |
| function GU(A){var B=Date.now(),C=A.LC;A.LC=!1;var D=A.QD;A.QD=-1;for(var E=0,G=0,H=0;H<A.D.length;H++){var I=A.D[H];0!=I.getState()||I.isBuilding()||RT(A,I,!0);if(C||!I.hasBeenMeasured()||1==I.getState())I.applySizesAndMediaQuery(),E++;I.isMeasureRequested()&&G++}var J;if(0<E||0<G||C||-1!=D)for(H=0;H<A.D.length;H++)if(I=A.D[H],!I.hasOwner()||I.isMeasureRequested())if(C||1==I.getState()||!I.hasBeenMeasured()||I.isMeasureRequested()||-1!=D&&I.getLayoutBox().bottom>=D){var K=I.isDisplayed();I.measure(); | |
| K&&!I.isDisplayed()&&(J||(J=[]),J.push(I))}J&&A.C.mutate(function(){J.forEach(function(B){B.unload();UT(A,B)})});C=A.K.getRect();var L=A.RA?QE(C,.25,2):0<A.JB?QE(C,0,A.JB-1):null;var M=A.RA?QE(C,.25,.25):C;for(C=0;C<A.D.length;C++)if(D=A.D[C],0!=D.getState()&&!D.hasOwner()){var P=A.RA&&D.isDisplayed()&&D.overlaps(M);D.setInViewport(P)}if(L)for(C=0;C<A.D.length;C++)D=A.D[C],2!=D.getState()||D.hasOwner()||D.isDisplayed()&&D.overlaps(L)&&WT(A,D,!0);if(A.RA&&0==A.ZA.getSize()&&0==A.H.getSize()&&B>A.ZA.getLastDequeueTime()+ | |
| 5E3){var Q=0;for(B=0;B<A.D.length&&4>Q;B++)C=A.D[B],2==C.getState()&&!C.hasOwner()&&C.isDisplayed()&&C.idleRenderOutsideViewport()&&(WT(A,C,!1),Q++);for(B=0;B<A.D.length&&4>Q;B++)C=A.D[B],2==C.getState()&&!C.hasOwner()&&C.isDisplayed()&&(WT(A,C,!1),Q++)}}F.TM=function(A){var B=this.K.getRect(),C=A.resource.getLayoutBox(),D=Math.floor((C.top-B.top)/B.height);Math.sign(D)!=this.getScrollDirection()&&(D*=2);D=Math.abs(D);return 10*A.priority+D}; | |
| F.SM=function(A,B){var C=this.GC.iterateAncestry(A.resource.element,this.KM,B);return 10*A.priority+C};F.RM=function(A,B,C,D){var E=B.getId();if(YB.call(D,E))return D[E];A=A||0;C=1+C/10;var G=B.isActiveUnsafe()?1:2;B=B.getHorizontalDistanceFromParent()+B.getVerticalDistanceFromParent();return D[E]=A+G*C*B}; | |
| function HU(A,B){var C=Date.now();if(0==A.ZA.getSize()){if(-1===A.HB)return 0;var D=1E3*B.priority;return Math.max(D-(C-A.HB),0)}var E=0;A.ZA.forEach(function(A){E=Math.max(E,Math.max(1E3*(B.priority-A.priority),0)-(C-A.startTime))});return E}F.NO=function(A){this.H.getTaskById(A.id)||this.H.enqueue(A)};F.RL=function(A,B,C){this.ZA.dequeue(A);this.schedulePass(1E3);if(!B)return S().info("Resources","task failed:",A.id,A.resource.debugid,C),Promise.reject(C)}; | |
| function AU(A,B,C,D,E,G,H){B.hasBeenMeasured()&&!E?IU(A,B,C,D,void 0,G,H):A.C.measure(function(){B.hasBeenMeasured()||B.measure();if(E){var I=TJ(A.win,B.element);I={newMargins:E,currentMargins:{top:parseInt(I.marginTop,10)||0,right:parseInt(I.marginRight,10)||0,bottom:parseInt(I.marginBottom,10)||0,left:parseInt(I.marginLeft,10)||0}}}else I=void 0;var J=I;IU(A,B,C,D,J,G,H)})} | |
| function IU(A,B,C,D,E,G,H){B.resetPendingChangeSize();var I=B.getPageLayoutBox();if(!(I=void 0!==C&&C!=I.height||void 0!==D&&D!=I.width)&&(I=void 0!==E)){I=E.currentMargins;var J=E.newMargins;I=void 0!==J.top&&J.top!=I.top||void 0!==J.right&&J.right!=I.right||void 0!==J.bottom&&J.bottom!=I.bottom||void 0!==J.left&&J.left!=I.left}if(I){I=null;for(J=0;J<A.MA.length;J++)if(A.MA[J].resource==B){I=A.MA[J];break}I?(I.newHeight=C,I.newWidth=D,I.marginChange=E,I.force=G||I.force,I.callback=H):A.MA.push({resource:B, | |
| newHeight:C,newWidth:D,marginChange:E,force:G,callback:H});A.schedulePassVsync()}else void 0===C&&void 0===D&&void 0===E&&S().error("Resources","attempting to change size with undefined dimensions",B.debugid),H&&H(!0)}function JU(A,B,C){return 0!=B.getState()&&B.isDisplayed()&&(A.RA||"prerender"==A.A.getVisibilityState()&&B.prerenderAllowed())&&(C||B.isInViewport()||B.renderOutsideViewport()||B.idleRenderOutsideViewport())?!0:!1} | |
| function WT(A,B,C,D,E){0!=B.getState()&&B.isDisplayed();var G=E||!1;JU(A,B,G)&&(C?A.WB(B,"L",0,D||0,G,B.startLayout.bind(B)):A.WB(B,"P",2,D||0,G,B.startLayout.bind(B)))}function XT(A,B,C,D){ZT(A,B,D,function(D){0==D.getState()?D.whenBuilt().then(function(){KU(A,D,C,B.getLayoutPriority())}):KU(A,D,C,B.getLayoutPriority())})}function KU(A,B,C,D){B.measure();2==B.getState()&&B.isDisplayed()&&WT(A,B,C,D)} | |
| F.WB=function(A,B,C,D,E,G){B=A.getTaskId(B);A={id:B,resource:A,priority:Math.max(A.getLayoutPriority(),D)+C,forceOutsideViewport:E,callback:G,scheduleTime:Date.now(),startTime:0,promise:null};var H=this.H.getTaskById(B);if(!H||A.priority<H.priority)H&&this.H.dequeue(H),this.H.enqueue(A),this.schedulePass(HU(this,A));A.resource.layoutScheduled(A.scheduleTime)};function $T(A,B,C,D){var E=B.isInViewport()&&D;ZT(A,B,C,function(A){A.setInViewport(E)})} | |
| function ZT(A,B,C,D){C.forEach(function(C){B.element.contains(C);VT(A,C,D)})}function VT(A,B,C){if(B.classList.contains("i-amphtml-element"))C(TO(B)),(B=B.getPlaceholder())&&VT(A,B,C);else{A=B.getElementsByClassName("i-amphtml-element");B=[];for(var D=0;D<A.length;D++){for(var E=A[D],G=!1,H=0;H<B.length;H++)if(B[H].contains(E)){G=!0;break}G||(B.push(E),C(TO(E)))}}} | |
| function LT(A,B){function C(){A.D.forEach(function(A){return A.resume()});H()}function D(){A.D.forEach(function(B){B.unload();UT(A,B)});A.unselectText()}function E(){A.D.forEach(function(A){return A.pause()})}function G(){}function H(){var B=A.K.getSize();if(0<B.height&&0<B.width){0<A.MA.length&&EU(A);GU(A);B=Date.now();for(var C=-1,D=Object.create(null),E=A.H.peek(A.GJ,D);E;){C=HU(A,E);if(16<C)break;A.H.dequeue(E);(C=A.ZA.getTaskById(E.id))?(E=A.NO.bind(A,E),C.promise.then(E,E)):(E.resource.measure(), | |
| JU(A,E.resource,E.forceOutsideViewport)?(E.promise=E.callback(),E.startTime=B,A.ZA.enqueue(E),E.promise.then(A.RL.bind(A,E,!0),A.RL.bind(A,E,!1)).catch($L)):E.resource.layoutCanceled());E=A.H.peek(A.GJ,D);C=-1}0<=C?B=C:(B=2*(B-A.ZA.getLastDequeueTime()),B=Math.max(Math.min(3E4,B),5E3));0<A.MA.length&&(B=Math.min(B,500));A.RA&&A.schedulePass(B)}}var I="prerender",J="visible",K="hidden",L="paused",M="inactive";B.addTransition(I,I,H);B.addTransition(I,J,H);B.addTransition(I,K,H);B.addTransition(I,M, | |
| H);B.addTransition(I,L,H);B.addTransition(J,J,H);B.addTransition(J,K,H);B.addTransition(J,M,D);B.addTransition(J,L,E);B.addTransition(K,J,H);B.addTransition(K,K,H);B.addTransition(K,M,D);B.addTransition(K,L,E);B.addTransition(M,J,C);B.addTransition(M,K,C);B.addTransition(M,M,G);B.addTransition(M,L,H);B.addTransition(L,J,C);B.addTransition(L,K,H);B.addTransition(L,M,D);B.addTransition(L,L,G)}F.unselectText=function(){try{this.win.getSelection().removeAllRanges()}catch(A){}}; | |
| function UT(A,B,C){1==B.getState()&&(A.H.purge(function(A){return A.resource==B}),A.ZA.purge(function(A){return A.resource==B}),YN(A.MA,function(A){return A.resource===B}));if(0==B.getState()&&C&&A.$A){var D=A.$A.indexOf(B);-1!=D&&A.$A.splice(D,1)}}function YT(A){return CB(A)?A:[A]};function LU(A,B){this.ampdoc=A;B=B?B.document.documentElement:A.getHeadNode();this.D=DJ(A);this.K=HJ(A);A=LH(B,"action");A.addGlobalTarget("AMP",this.EN.bind(this));A.addGlobalMethodHandler("hide",this.EK.bind(this));A.addGlobalMethodHandler("show",this.HK.bind(this));A.addGlobalMethodHandler("toggleVisibility",this.HN.bind(this));A.addGlobalMethodHandler("scrollTo",this.GK.bind(this));A.addGlobalMethodHandler("focus",this.FN.bind(this));A.addGlobalMethodHandler("toggleClass",this.GN.bind(this))} | |
| LU.installInEmbedWindow=function(A,B){RH(A,"standard-actions",new LU(B,A))};F=LU.prototype; | |
| F.EN=function(A){if(!A.satisfiesTrust(100))return null;var B=A.node,C=A.method,D=A.args,E=(B.ownerDocument||B).defaultView;switch(C){case "pushState":case "setState":return WI(B.nodeType===Node.DOCUMENT_NODE?B.documentElement:B).then(function(B){T(B,"AMP-BIND is not installed.");return B.invoke(A)});case "navigateTo":return MU(this,A);case "closeOrNavigateTo":return NU(this,A);case "scrollTo":return T(D.id,"AMP.scrollTo must provide element ID"),A.node=PH(B).getElementById(D.id),this.GK(A);case "goBack":return XH(this.ampdoc, | |
| "history").goBack(),null;case "print":return E.print(),null;case "optoutOfCid":return YH(this.ampdoc,"cid").then(function(A){return A.optOut()}).catch(function(A){S().error("STANDARD-ACTIONS","Failed to opt out of CID",A)})}throw O().createError("Unknown AMP action ",C);}; | |
| function MU(A,B){var C=B.node,D=B.caller,E=B.method,G=B.args,H=(C.ownerDocument||C).defaultView;B=Promise.resolve();SC(D.tagName,"AMP-")&&(B=D.getImpl().then(function(A){"function"==typeof A.throwIfCannotNavigate&&A.throwIfCannotNavigate()}));return B.then(function(){XH(A.ampdoc,"navigation").navigateTo(H,G.url,"AMP."+E,{target:G.target,opener:G.opener})},function(A){O().error("STANDARD-ACTIONS",A.message)})} | |
| function NU(A,B){var C=B.node;C=(C.ownerDocument||C).defaultView;var D=C.parent!=C,E=C.opener&&A.ampdoc.isSingleDoc()&&!D,G=!1;E&&(C.close(),G=C.closed);return G?Promise.resolve():MU(A,B)}F.GK=function(A){var B=A.node,C=(A=A.args)&&A.position,D=A&&A.duration;C&&!["top","bottom","center"].includes(C)&&(C=void 0);GB(D)||(D=void 0);return this.K.animateScrollIntoView(B,C,D)};F.FN=function(A){PD(A.node);return null}; | |
| F.EK=function(A){var B=A.node;this.D.mutateElement(B,function(){B.classList.contains("i-amphtml-element")?B.collapse():SJ(B,!1)});return null}; | |
| F.HK=function(A){var B=A.node,C=B.ownerDocument.defaultView;if(B.classList.contains("i-amphtml-layout-nodisplay"))return O().warn("STANDARD-ACTIONS","Elements with layout=nodisplay cannot be dynamically shown.",B),null;this.D.measureElement(function(){"none"!=TJ(C,B).display||B.hasAttribute("hidden")||O().warn("STANDARD-ACTIONS",'Elements can only be dynamically shown when they have the "hidden" attribute set or when they were dynamically hidden.',B)});var D=B.hasAttribute("autofocus")?B:B.querySelector("[autofocus]"); | |
| D&&CJ(C).isIos()?OU(B,D):this.D.mutateElement(B,function(){OU(B,D)});return null};function OU(A,B){A.classList.contains("i-amphtml-element")?A.expand():SJ(A,!0);B&&PD(B)}F.HN=function(A){return A.node.hasAttribute("hidden")?this.HK(A):this.EK(A)}; | |
| F.GN=function(A){var B=A.node,C=A.args,D=O().assertString(C["class"],"Argument 'class' must be a string.");this.D.mutateElement(B,function(){if(void 0!==C.force){var A=O().assertBoolean(C.force,"Optional argument 'force' must be a boolean.");B.classList.toggle(D,A)}else B.classList.toggle(D)});return null};function CV(A,B,C){this.ampdoc=A;this.A=B;this.B=C;this.CF=BH(this.ampdoc.win.location);this.MF=null}F=CV.prototype;F.get=function(A){return DV(this).then(function(B){return B.get(A)})};F.set=function(A,B,C){return this.setNonBoolean(A,B,C)};F.setNonBoolean=function(A,B,C){return EV(this,function(D){return D.set(A,B,C)})};F.remove=function(A){return EV(this,function(B){return B.remove(A)})}; | |
| function DV(A){A.MF||(A.MF=A.B.loadBlob(A.CF).then(function(A){return A?UD(atob(A)):{}}).catch(function(A){S().expectedError("Storage","Failed to load store: ",A);return{}}).then(function(A){return new FV(A)}));return A.MF}function EV(A,B){return DV(A).then(function(C){B(C);C=btoa(JSON.stringify(C.obj));return A.B.saveBlob(A.CF,C)}).then(A.PM.bind(A))}function GV(A){A.A.onBroadcast(function(B){"amp-storage-reset"==B.type&&B.origin==A.CF&&(A.MF=null)})} | |
| F.PM=function(){this.A.broadcast({type:"amp-storage-reset",origin:this.CF})};function FV(A){var B;this.obj=SD(A);this.XN=B||8;this.CB=this.obj.vv||Object.create(null);this.obj.vv||(this.obj.vv=this.CB)}FV.prototype.get=function(A){return(A=this.CB[A])?A.v:void 0}; | |
| FV.prototype.set=function(A,B,C){if(void 0!==this.CB[A]){A=this.CB[A];var D=Date.now();C&&(D=A.t);A.v=B;A.t=D}else this.CB[A]=$B({v:B,t:Date.now()});B=Object.keys(this.CB);if(B.length>this.XN){var E=Infinity,G=null;for(C=0;C<B.length;C++)A=this.CB[B[C]],A.t<E&&(G=B[C],E=A.t);G&&delete this.CB[G]}};FV.prototype.remove=function(A){delete this.CB[A]}; | |
| function HV(A){this.win=A;try{if("localStorage"in this.win){this.win.localStorage.getItem("test");var B=!0}else B=!1}catch(C){B=!1}this.EH=B;this.EH||(A=Error("localStorage not supported."),S().expectedError("Storage",A))}HV.prototype.loadBlob=function(A){var B=this;return new Promise(function(C){B.EH?C(B.win.localStorage.getItem("amp-store:"+A)):C(null)})};HV.prototype.saveBlob=function(A,B){var C=this;return new Promise(function(D){C.EH&&C.win.localStorage.setItem("amp-store:"+A,B);D()})}; | |
| function IV(A){this.A=A}IV.prototype.loadBlob=function(A){return this.A.sendMessageAwaitResponse("loadStore",$B({origin:A})).then(function(A){return A.blob})};IV.prototype.saveBlob=function(A,B){return this.A.sendMessageAwaitResponse("saveStore",$B({origin:A,blob:B}))};function JV(A){UH(A,"storage",function(){var B=FJ(A),C=parseInt(B.getParam("storage"),10),D=C?new IV(B):new HV(A.win);B=new CV(A,B,D);GV(B);return B},!0)};function KV(A){this.win=A;this.PO=this.win.Promise.resolve();this.YO=0;this.JG={};this.HI=Date.now()}F=KV.prototype;F.timeSinceStart=function(){return Date.now()-this.HI};F.delay=function(A,B){var C=this;if(!B){var D="p"+this.YO++;this.PO.then(function(){C.JG[D]?delete C.JG[D]:A()}).catch($L);return D}return this.win.setTimeout(function(){try{A()}catch(E){throw $L(E),E;}},B)};F.cancel=function(A){"string"==typeof A?this.JG[A]=!0:this.win.clearTimeout(A)}; | |
| F.promise=function(A){var B=this;return new this.win.Promise(function(C){var D=B.delay(C,A);if(-1==D)throw Error("Failed to schedule timer.");})};F.timeoutPromise=function(A,B,C){function D(){E.cancel(G)}var E=this,G,H=new this.win.Promise(function(B,D){G=E.delay(function(){D(O().createError(C||"timeout"))},A);if(-1==G)throw Error("Failed to schedule timer.");});if(!B)return H;B.then(D,D);return this.win.Promise.race([H,B])}; | |
| F.poll=function(A,B){var C=this;return new this.win.Promise(function(D){var E=C.win.setInterval(function(){B()&&(C.win.clearInterval(E),D())},A)})};KV.installInEmbedWindow=function(A){RH(A,"timer",new KV(A))};function LV(A,B){this.J=A;A=B||A.getRootNode();this.HM=(A.ownerDocument||A).createElement("a");this.CC=new PF}LV.installInEmbedWindow=function(A,B){RH(A,"url",new LV(B,A.document))};F=LV.prototype;F.parse=function(A,B){return QG(this.HM,A,B?null:this.CC)};F.isProtocolValid=function(A){return YG(A)};F.getSourceOrigin=function(A){return BH(A)};F.assertHttpsUrl=function(A,B,C){return VG(A,B,void 0===C?"source":C)}; | |
| F.assertAbsoluteHttpOrHttpsUrl=function(A){T(/^https?:/i.test(A),'URL must start with "http://" or "https://". Invalid value: %s',A);return U(A).href};F.isProxyOrigin=function(A){return XG(A)};F.isSecure=function(A){return UG(this.parse(A))};F.getWinOrigin=function(A){return A.origin||this.parse(A.location.href).origin};function MV(A,B,C){return LK(A).then(function(){return NV(A,B,C)})}function NV(A,B,C){var D=A.performance&&A.performance.timing;if(D&&0!=D.navigationStart){var E=void 0===C?D[B]:D[C]-D[B];if(GB(E)&&!(0>E))return E}}function OV(A,B){var C=A.performance&&A.performance.navigation;if(C&&void 0!==C[B])return C[B]}function PV(A){this.ampdoc=A;this.KB=Object.create(null);this.$G=!1;QV(this)}F=PV.prototype;F.JE=function(){this.initialize();this.$G=!0};F.initialize=function(){}; | |
| F.get=function(A){this.$G||this.JE();return this.KB[A]};F.set=function(A,B){this.KB[A]=this.KB[A]||{sync:void 0,async:void 0};this.KB[A].sync=B;return this};F.setAsync=function(A,B){this.KB[A]=this.KB[A]||{sync:void 0,async:void 0};this.KB[A].async=B;return this};F.setBoth=function(A,B,C){return this.set(A,B).setAsync(A,C)};F.getExpr=function(A,B){this.$G||this.JE();var C=Object.assign({},this.KB,A);return RV(this,Object.keys(C),B)}; | |
| function RV(A,B,C){QV(A)&&(B=B.filter(function(B){return QV(A).includes(B)}));C&&(B=B.filter(function(A){return C[A]}));if(0===B.length){var D=/_^/g;return D}B.sort(function(A,B){return B.length-A.length});var E="\\$?("+B.map(function(A){return"$"===A[0]?"\\"+A:A}).join("|")+")";return new RegExp(E,"g")} | |
| function QV(A){if(A.NI)return A.NI;var B=A.ampdoc.getRootNode().head;if(!B)return null;B=B.querySelector('meta[name="amp-allowed-url-macros"]');if(!B)return null;A.NI=B.getAttribute("content").split(",").map(function(A){return A.trim()});return A.NI};var SV={ANCESTOR_ORIGIN:!0};function TV(A,B,C,D,E,G){this.IA=A;this.RC=B;this.SJ=C;this.NC=D;this.FM=E;this.AN=!G}TV.prototype.expand=function(A){if(!A.length)return this.NC?A:Promise.resolve(A);var B=this.IA.getExpr(this.RC,this.FM);B=UV(A,B);return B.length?VV(this,A,B):this.NC?A:Promise.resolve(A)};TV.prototype.getMacroNames=function(A){var B=this.IA.getExpr(this.RC,this.FM);return(A=A.match(B))?A:[]}; | |
| function UV(A,B){var C=[];A.replace(B,function(A,B,G){A=A.length;var D=A+G-1;C.push({start:G,stop:D,name:B,length:A})});return C} | |
| function VV(A,B,C){function D(M){for(var P="",Q=[];G<B.length&&H<=C.length;){if(I&&G===I.start){var R=void 0;R=A.RC&&YB.call(A.RC,I.name)?{name:I.name,prioritized:A.RC[I.name],encode:M}:Object.assign({},A.IA.get(I.name),{name:I.name,encode:M});G=I.stop+1;I=C[++H];"("===B[G]?(G++,J++,E.push(R),P.trim().length&&Q.push(P),Q.push(D(!1))):(P.length&&Q.push(P),Q.push(WV(A,R)));P=""}else{if("`"===B[G])K?K=!1:(L=K=!0,T(""===P.trim(),'The substring "'+P+'" was lost during url-replacement. Please ensure the url syntax is correct'), | |
| P="");else if(J&&","===B[G]&&!K){if(P.length){var Z=L?P:P.trim();Q.push(Z);L=!1}","===B[G+1]&&(Q.push(""),G++);P=""}else{if(J&&")"===B[G]&&!K)return G++,J--,R=E.pop(),Q.push(L?P:P.trim()),L=!1,WV(A,R,Q);P+=B[G]}G++}G===B.length&&P.length&&Q.push(P)}return A.NC?Q.join(""):Promise.all(Q).then(function(A){return A.join("")}).catch(function(A){TB(A);return""})}var E=[],G=0,H=0,I=C[H],J=0,K=!1,L=!1;return D(A.AN)} | |
| function WV(A,B,C){var D=B,E=D.encode;D=D.name;if(YB.call(B,"prioritized"))var G=B.prioritized;else A.NC&&YB.call(B,"sync")?G=B.sync:A.NC?(O().error("Expander","ignoring async replacement key: ",B.name),G=""):G=B.async||B.sync;var H=E&&!SV[D];return A.NC?(A=XV(A,G,D,C),H?encodeURIComponent(A):A):YV(A,G,D,C).then(function(A){return H?encodeURIComponent(A):A})} | |
| function YV(A,B,C,D){try{var E="function"===typeof B?D?Promise.all(D).then(function(A){return B.apply(null,A)}):BC(B):Promise.resolve(B);return E.then(function(B){ZV(A,C,B,D);return null==B?"":B}).catch(function(B){TB(B);ZV(A,C,"",D);return Promise.resolve("")})}catch(G){return TB(G),ZV(A,C,"",D),Promise.resolve("")}} | |
| function XV(A,B,C,D){try{var E="function"===typeof B?B.apply(null,D):B;if(E&&E.then){O().error("Expander","ignoring async macro resolution");var G=""}else"string"===typeof E||"number"===typeof E||"boolean"===typeof E?(ZV(A,C,E,D),G=E.toString()):(ZV(A,C,"",D),G="");return G}catch(H){return TB(H),ZV(A,C,"",D),""}}function ZV(A,B,C,D){if(A.SJ){var E="";if(D){var G=D.filter(function(A){return""!==A}).join(",");E="("+G+")"}A.SJ[""+B+E]=C||""}};function $V(A){return function(){return(new Date)[A]()}}function AW(A,B){return function(){return A[B]}}function BW(A){PV.call(this,A);this.EI=null}LA(BW,PV);function CW(A,B,C,D){A.setBoth(B,function(){return NV(A.ampdoc.win,C,D)},function(){return MV(A.ampdoc.win,C,D)})} | |
| BW.prototype.initialize=function(){function A(){var A=$I(B.ampdoc);return WG(DW(B,A.sourceUrl))}var B=this,C=this.ampdoc.win,D=this.ampdoc.getHeadNode(),E=HJ(this.ampdoc);this.set("RANDOM",function(){return Math.random()});var G=Object.create(null);this.set("COUNTER",function(A){return G[A]=(G[A]|0)+1});this.set("CANONICAL_URL",function(){return $I(B.ampdoc).canonicalUrl});this.set("CANONICAL_HOST",function(){return U($I(B.ampdoc).canonicalUrl).host});this.set("CANONICAL_HOSTNAME",function(){return U($I(B.ampdoc).canonicalUrl).hostname}); | |
| this.set("CANONICAL_PATH",function(){return U($I(B.ampdoc).canonicalUrl).pathname});this.setAsync("DOCUMENT_REFERRER",function(){return FJ(B.ampdoc).getReferrerUrl()});this.setAsync("EXTERNAL_REFERRER",function(){return FJ(B.ampdoc).getReferrerUrl().then(function(A){if(!A)return null;var B=U(AH(A)).hostname,D=C.location.hostname;return B===D?null:A})});this.set("TITLE",function(){var A=C.document;return A.originalTitle||A.title});this.set("AMPDOC_URL",function(){return WG(DW(B,C.location.href))}); | |
| this.set("AMPDOC_HOST",function(){var A=U(C.location.href);return A&&A.host});this.set("AMPDOC_HOSTNAME",function(){var A=U(C.location.href);return A&&A.hostname});this.setBoth("SOURCE_URL",function(){return A()},function(){return WR().then(function(){return A()})});this.set("SOURCE_HOST",function(){return U($I(B.ampdoc).sourceUrl).host});this.set("SOURCE_HOSTNAME",function(){return U($I(B.ampdoc).sourceUrl).hostname});this.set("SOURCE_PATH",function(){return U($I(B.ampdoc).sourceUrl).pathname}); | |
| this.set("PAGE_VIEW_ID",function(){return $I(B.ampdoc).pageViewId});this.setBoth("QUERY_PARAM",function(A,C){return EW(B,A,void 0===C?"":C)},function(A,C){C=void 0===C?"":C;return WR().then(function(){return EW(B,A,C)})});this.setAsync("FRAGMENT_PARAM",FW(this,"fragmentParam","FRAGMENT_PARAM"));this.setAsync("ANCESTOR_ORIGIN",FW(this,"ancestorOrigin","ANCESTOR_ORIGIN"));var H=null;this.setBoth("CLIENT_ID",function(A){return H?H[A]:null},function(A,C,E){O().assertString(A,"The first argument to CLIENT_ID, the fallback Cookie name, is required"); | |
| if("inabox"==N().runtime)return Promise.resolve(null);var G=Promise.resolve();C&&(G=TI(D,"userNotificationManager","amp-user-notification").then(function(A){return A.get(C)}));return YH(B.ampdoc,"cid").then(function(B){return B.get({scope:A,createCookieIfNotPresent:!0,cookieName:E},G)}).then(function(B){H||(H=Object.create(null));var C=E||A;B&&"_ga"==C&&("string"===typeof B?B=B.replace(/^(GA1|1)\.[\d-]+\./,""):S().error("UrlReplacements","non-string cid, what is it?",Object.keys(B)));return H[A]= | |
| B})});this.setAsync("VARIANT",function(A){return GW(B,function(B){var C=B[A];T(void 0!==C,"The value passed to VARIANT() is not a valid experiment name:"+A);return null===C?"none":C},"VARIANT")});this.setAsync("VARIANTS",function(){return GW(B,function(A){var B=[],C;for(C in A)B.push(C+"."+(A[C]||"none"));return B.join("!")},"VARIANTS")});this.setAsync("AMP_GEO",function(A){return HW(B,function(B){return A?(T("ISOCountry"===A,"The value passed to AMP_GEO() is not valid name:"+A),B[A]||"unknown"): | |
| B.matchedISOCountryGroups.join(",")})});this.setAsync("SHARE_TRACKING_INCOMING",function(){return IW(B,function(A){return A.incomingFragment},"SHARE_TRACKING_INCOMING")});this.setAsync("SHARE_TRACKING_OUTGOING",function(){return IW(B,function(A){return A.outgoingFragment},"SHARE_TRACKING_OUTGOING")});this.set("TIMESTAMP",$V("getTime"));this.set("TIMESTAMP_ISO",$V("toISOString"));this.set("TIMEZONE",$V("getTimezoneOffset"));this.set("TIMEZONE_CODE",function(){if("Intl"in C&&"DateTimeFormat"in C.Intl)var A= | |
| (new Intl.DateTimeFormat).resolvedOptions().timeZone;return A||""});this.set("SCROLL_TOP",function(){return E.getScrollTop()});this.set("SCROLL_LEFT",function(){return E.getScrollLeft()});this.set("SCROLL_HEIGHT",function(){return E.getScrollHeight()});this.set("SCROLL_WIDTH",function(){return E.getScrollWidth()});this.set("VIEWPORT_HEIGHT",function(){return E.getHeight()});this.set("VIEWPORT_WIDTH",function(){return E.getWidth()});var I=C.screen;this.set("SCREEN_WIDTH",AW(I,"width"));this.set("SCREEN_HEIGHT", | |
| AW(I,"height"));this.set("AVAILABLE_SCREEN_HEIGHT",AW(I,"availHeight"));this.set("AVAILABLE_SCREEN_WIDTH",AW(I,"availWidth"));this.set("SCREEN_COLOR_DEPTH",AW(I,"colorDepth"));this.set("DOCUMENT_CHARSET",function(){var A=C.document;return A.characterSet||A.charset});this.set("BROWSER_LANGUAGE",function(){var A=C.navigator;return(A.language||A.userLanguage||A.browserLanguage||"").toLowerCase()});this.set("USER_AGENT",function(){return C.navigator.userAgent});CW(this,"PAGE_LOAD_TIME","navigationStart", | |
| "loadEventStart");CW(this,"DOMAIN_LOOKUP_TIME","domainLookupStart","domainLookupEnd");CW(this,"TCP_CONNECT_TIME","connectStart","connectEnd");CW(this,"SERVER_RESPONSE_TIME","requestStart","responseStart");CW(this,"PAGE_DOWNLOAD_TIME","responseStart","responseEnd");CW(this,"REDIRECT_TIME","navigationStart","fetchStart");CW(this,"DOM_INTERACTIVE_TIME","navigationStart","domInteractive");CW(this,"CONTENT_LOAD_TIME","navigationStart","domContentLoadedEventStart");this.setAsync("ACCESS_READER_ID",function(){return JW(B, | |
| function(A){return A.getAccessReaderId()},"ACCESS_READER_ID")});this.setAsync("AUTHDATA",function(A){T(A,"The first argument to AUTHDATA, the field, is required");return JW(B,function(B){return B.getAuthdataField(A)},"AUTHDATA")});this.setAsync("VIEWER",function(){return FJ(B.ampdoc).getViewerOrigin().then(function(A){return void 0==A?"":A})});this.setAsync("TOTAL_ENGAGED_TIME",function(){return TI(D,"activity","amp-analytics").then(function(A){return A.getTotalEngagedTime()})});this.setAsync("INCREMENTAL_ENGAGED_TIME", | |
| function(A,B){return TI(D,"activity","amp-analytics").then(function(C){return C.getIncrementalEngagedTime(A,"false"!==B)})});this.set("NAV_TIMING",function(A,B){T(A,"The first argument to NAV_TIMING, the start attribute name, is required");return NV(C,A,B)});this.setAsync("NAV_TIMING",function(A,B){T(A,"The first argument to NAV_TIMING, the start attribute name, is required");return MV(C,A,B)});this.set("NAV_TYPE",function(){return OV(C,"type")});this.set("NAV_REDIRECT_COUNT",function(){return OV(C, | |
| "redirectCount")});this.set("AMP_VERSION",function(){return"1903251702181"});this.set("BACKGROUND_STATE",function(){return FJ(B.ampdoc).isVisible()?"0":"1"});this.setAsync("VIDEO_STATE",function(A,C){var D=B.ampdoc.getRootNode(),E=O().assertElement(D.getElementById(A),'Could not find an element with id="'+A+'" for VIDEO_STATE');return XH(B.ampdoc,"video-manager").getAnalyticsDetails(E).then(function(A){return A?A[C]:""})});this.setAsync("STORY_PAGE_INDEX",KW(this,"pageIndex","STORY_PAGE_INDEX")); | |
| this.setAsync("STORY_PAGE_ID",KW(this,"pageId","STORY_PAGE_ID"));this.setAsync("FIRST_CONTENTFUL_PAINT",function(){return BC(function(){return BJ(C).getFirstContentfulPaint()})});this.setAsync("FIRST_VIEWPORT_READY",function(){return BC(function(){return BJ(C).getFirstViewportReady()})});this.setAsync("MAKE_BODY_VISIBLE",function(){return BC(function(){return BJ(C).getMakeBodyVisible()})});this.setAsync("AMP_STATE",function(A){var C=B.ampdoc.getRootNode();return WI(C.documentElement||C).then(function(B){return B? | |
| B.getStateValue(A):""})})};function DW(A,B){if(A=$I(A.ampdoc).replaceParams){var C=ZG(B),D=U(C);D=RA(D.search);for(var E=$B({}),G=Object.keys(A),H=0;H<G.length;H++)YB.call(D,G[H])||(E[G[H]]=A[G[H]]);A=SG(C,E)}else A=B;return A} | |
| function JW(A,B,C){A=A.ampdoc.getHeadNode();return Promise.all([UI(A,"access","amp-access"),UI(A,"subscriptions","amp-subscriptions")]).then(function(A){A=A[0]||A[1];return A?B(A):(O().error("UrlReplacements","Access or subsciptions service is not installed to access: ",C),null)})} | |
| function EW(A,B,C){T(B,"The first argument to QUERY_PARAM, the query string param is required");var D=U(ZG(A.ampdoc.win.location.href));D=RA(D.search);B=O().assertString(B);A=$I(A.ampdoc).replaceParams;return"undefined"!==typeof D[B]?D[B]:A&&"undefined"!==typeof A[B]?A[B]:C}function GW(A,B,C){return UI(A.ampdoc.getHeadNode(),"variant","amp-experiment",!0).then(function(A){T(A,"To use variable %s, amp-experiment should be configured",C);return A.getVariants()}).then(function(A){return B(A)})} | |
| function HW(A,B){A=A.ampdoc.getHeadNode();return UI(A,"geo","amp-geo",!0).then(function(A){T(A,"To use variable %s, amp-geo should be configured","AMP_GEO");return B(A)})}function IW(A,B,C){A.EI||(A.EI=RI(A.ampdoc.win,"share-tracking","amp-share-tracking"));return A.EI.then(function(A){T(A,"To use variable %s, amp-share-tracking should be configured",C);return B(A)})} | |
| function KW(A,B,C){return function(){return RI(A.ampdoc.win,"story-variable","amp-story").then(function(A){T(A,"To use variable %s amp-story should be configured",C);return A[B]})}}function FW(A,B,C){return function(D,E){E=void 0===E?"":E;return RI(A.ampdoc.win,"viewer-integration-variable","amp-viewer-integration").then(function(A){T(A,"To use variable %s amp-viewer-integration must be installed",C);return A[B](D,E)})}}function LW(A,B){this.ampdoc=A;this.IA=B}F=LW.prototype; | |
| F.expandStringSync=function(A,B,C,D){return(new TV(this.IA,B,C,!0,D,!0)).expand(A)};F.expandStringAsync=function(A,B,C){return(new TV(this.IA,B,void 0,void 0,C,!0)).expand(A)};F.expandUrlSync=function(A,B,C,D){return MW(A,(new TV(this.IA,B,C,!0,D)).expand(A))};F.expandUrlAsync=function(A,B,C){return(new TV(this.IA,B,void 0,void 0,C)).expand(A).then(function(B){return MW(A,B)})};F.expandInputValueAsync=function(A){return NW(this,A,!1)};F.expandInputValueSync=function(A){return NW(this,A,!0)}; | |
| function NW(A,B,C){"INPUT"==B.tagName&&B.getAttribute("type");var D=OW(B);if(!D)return C?B.value:Promise.resolve(B.value);void 0===B["amp-original-value"]&&(B["amp-original-value"]=B.value);A=(new TV(A.IA,void 0,void 0,C,D)).expand(B["amp-original-value"]||B.value);return C?B.value=A:A.then(function(A){return B.value=A})} | |
| function OW(A,B){if(A=A.getAttribute("data-amp-replace")){var C={};A.trim().split(/\s+/).forEach(function(A){!B||YB.call(B,A)?C[A]=!0:O().warn("URL","Ignoring unsupported replacement",A)});return C}} | |
| F.maybeExpandLink=function(A,B){var C={CLIENT_ID:!0,QUERY_PARAM:!0,PAGE_VIEW_ID:!0,NAV_TIMING:!0},D=A.getAttribute("data-amp-addparams")||"",E=OW(A,C);if(E||D||B){var G=A["amp-original-href"]||A.getAttribute("href"),H=U(G);null==A["amp-original-href"]&&(A["amp-original-href"]=G);D&&(G=SG(G,RA(D)));A:{var I=$I(this.ampdoc);if(H.origin==U(I.canonicalUrl).origin||H.origin==U(I.sourceUrl).origin)H=!0;else{if((I=this.ampdoc.getRootNode().querySelector("meta[name=amp-link-variable-allowed-origin]"))&&I.hasAttribute("content")){I= | |
| I.getAttribute("content").trim().split(/\s+/);for(var J=0;J<I.length;J++)if(H.origin==U(I[J]).origin){H=!0;break A}}H=!1}}var K=H;if(!K)return E&&O().warn("URL","Ignoring link replacement",G," because the link does not go to the document's source, canonical, or whitelisted origin."),A.href=G;if(B){if(!E||!E.QUERY_PARAM){var L={QUERY_PARAM:!0};B=this.expandUrlSync(B,void 0,void 0,L)}G=SG(G,RA(B))}E&&(G=this.expandUrlSync(G,void 0,void 0,E));return A.href=G}}; | |
| F.collectVars=function(A,B){var C=Object.create(null);return(new TV(this.IA,B,C)).expand(A).then(function(){return C})};F.collectUnwhitelistedVarsSync=function(A){var B=A.getAttribute("src"),C=(new TV(this.IA)).getMacroNames(B),D=OW(A);return D?C.filter(function(A){return!D[A]}):C};function MW(A,B){var C=U(B,!0).protocol,D=U(A,!0).protocol;if(C!=D)return O().error("UrlReplacements","Illegal replacement of the protocol: ",A),A;T(YG(B),"The replacement url has invalid protocol: %s",B);return B} | |
| F.getVariableSource=function(){return this.IA};function PW(A){UH(A,"url-replace",function(A){return new LW(A,new BW(A))})};var QW=/^(https?:\/\/)((www[0-9]*|web|ftp|wap|home|mobile|amp|m)\.)+/i,RW=[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/]; | |
| function SW(A){var B=void 0,C=this;this.ampdoc=A;this.win=A.win;this.CD=QD(this.win);this.UC=VH(this.win,"documentState");this.TA=!0;this.YH=!1;this.DM=this.XF="visible";this.JB=1;this.QH=ZB();this.UE=ZB();this.KL=new RR;this.XD=new RR;this.MJ=new RR;this.VE=this.IC=null;this.JC=[];this.S={};this.ZC={};this.QK=this.HB=this.$E=this.ZE=null;A=new AC;this.FP=A.promise;this.GP=A.resolve;B?Object.assign(this.S,B):(this.win.name&&0==this.win.name.indexOf("__AMP__")&&TW(this.win.name.substring(7),this.S), | |
| this.win.location.hash&&(TW(this.win.location.hash,this.ZC),Object.assign(this.S,this.ZC)));this.TA=!parseInt(this.S.off,10);this.YH=!(!parseInt(this.S.history,10)&&!this.YH);UW(this,this.S.visibilityState);this.JB=parseInt(this.S.prerenderSize,10)||this.JB;this.BD=null;this.SN=XG(U(this.ampdoc.win.location.href));this.QG=this.isVisible();this.UC.onVisibilityChanged(this.GL.bind(this));var D=new AC;this.YN=D.resolve;this.UB=VW(this,D.promise);this.OI=this.HH=null;this.QF=this.isEmbedded()&&"referrer"in | |
| this.S&&!1!==WW(this)?this.S.referrer:this.win.document.referrer;this.LO=new Promise(function(A){C.isEmbedded()&&"referrer"in C.S?C.isTrustedViewer().then(function(B){B?A(C.S.referrer):(A(C.win.document.referrer),C.QF!=C.win.document.referrer&&(S().expectedError("Viewer","Untrusted viewer referrer override: "+C.QF+" at "+C.VE),C.QF=C.win.document.referrer))}):A(C.win.document.referrer)});this.JF=WG(this.win.location.href||"");this.EP=new Promise(function(A){var B=C.S.viewerUrl;C.isEmbedded()&&B?C.isTrustedViewer().then(function(D){D? | |
| C.JF=B:S().expectedError("Viewer","Untrusted viewer url override: "+B+" at "+C.VE);A(C.JF)}):A(C.JF)});this.S.click&&(A=WG(this.win.location.href),A!=this.win.location.href&&this.win.history.replaceState&&(this.win.location.originalHash||(this.win.location.originalHash=this.win.location.hash),this.win.history.replaceState({},"",A),delete this.ZC.click));this.GL();this.AF();this.whenFirstVisible().then(function(){C.maybeUpdateFragmentForCct()})} | |
| function VW(A,B){var C=!(!(A.CD&&!A.win.AMP_TEST_IFRAME&&(A.S.origin||A.S.visibilityState||-1!=A.win.location.search.indexOf("amp_js_v"))||A.isWebviewEmbedded()||A.isCctEmbedded())&&A.ampdoc.isSingleDoc());return C?EJ(A.win).timeoutPromise(2E4,B).catch(function(A){A=XW(A);$L(A);throw A;}):null}F=SW.prototype;F.AF=function(){if(this.isVisible()){var A=Date.now();this.HB||(this.HB=A);this.QK=A;this.QG=!0;this.GP();this.$E&&(this.$E(),this.ZE=this.$E=null)}this.XD.fire()};F.getParam=function(A){return this.S[A]}; | |
| F.hasCapability=function(A){var B=this.S.cap;return B?-1!=B.split(",").indexOf(A):!1};F.isEmbedded=function(){return!!this.UB};F.isWebviewEmbedded=function(){return!this.CD&&"1"==this.S.webview};F.isCctEmbedded=function(){if(null!=this.BD)return this.BD;this.BD=!1;if(!this.CD){var A=RA(this.win.location.search);this.BD="1"===A.amp_gsa&&SC(A.amp_js_v||"","a")}return this.BD};F.isProxyOrigin=function(){return this.SN}; | |
| F.maybeUpdateFragmentForCct=function(){if(this.isCctEmbedded()&&this.win.history.replaceState){var A=BH(this.win.location.href),B=$I(this.ampdoc).canonicalUrl,C=BH(B);YW(A,C)&&(this.ZC.ampshare=B,this.win.history.replaceState({},"","#"+TG(this.ZC)))}};function YW(A,B){function C(A){return 2<A.split(".").length?A.replace(QW,"$1"):A}return C(A)==C(B)}F.isRuntimeOn=function(){return this.TA};F.toggleRuntime=function(){this.TA=!this.TA;this.KL.fire(this.TA)};F.onRuntimeState=function(A){return this.KL.add(A)}; | |
| F.isOvertakeHistory=function(){return this.YH};F.getVisibilityState=function(){return this.XF};F.GL=function(){UW(this,this.DM)};function UW(A,B){if(B){var C=A.XF;B=S().assertEnumValue(ZK,B,"VisibilityState");"hidden"===B&&(B=A.QG?"inactive":"prerender");A.DM=B;!A.UC.isHidden()||"visible"!==B&&"paused"!==B||(B="hidden");A.XF=B;C!==B&&A.AF()}}F.isVisible=function(){return"visible"==this.getVisibilityState()};F.hasBeenVisible=function(){return this.QG};F.whenFirstVisible=function(){return this.FP}; | |
| F.whenNextVisible=function(){if(this.isVisible())return Promise.resolve();if(this.ZE)return this.ZE;var A=new AC;this.$E=A.resolve;return this.ZE=A.promise};F.getFirstVisibleTime=function(){return this.HB};F.getLastVisibleTime=function(){return this.QK};F.getPrerenderSize=function(){return this.JB};F.getResolvedViewerUrl=function(){return this.JF};F.getViewerUrl=function(){return this.EP};F.maybeGetMessagingOrigin=function(){return this.VE};F.getUnconfirmedReferrerUrl=function(){return this.QF}; | |
| F.getReferrerUrl=function(){return this.LO};F.isTrustedViewer=function(){if(!this.HH){var A=WW(this);this.HH=void 0!==A?Promise.resolve(A):this.UB.then(function(A){return A?ZW(A):!1})}return this.HH};function WW(A){if(!A.isEmbedded())return!1;if(A.win.location.ancestorOrigins&&!A.isWebviewEmbedded()&&!A.isCctEmbedded())return 0<A.win.location.ancestorOrigins.length&&ZW(A.win.location.ancestorOrigins[0])} | |
| F.getViewerOrigin=function(){if(!this.OI){var A;this.isEmbedded()?this.win.location.ancestorOrigins&&0<this.win.location.ancestorOrigins.length&&(A=this.win.location.ancestorOrigins[0]):A="";this.OI=void 0!==A?Promise.resolve(A):EJ(this.win).timeoutPromise(1E3,this.UB).catch(function(){return""})}return this.OI};function ZW(A){var B=U(A);A=B.protocol;return"x-thread:"==A?!0:"https:"!=A?!1:RW.some(function(A){return A.test(B.hostname)})}F.onVisibilityChanged=function(A){return this.XD.add(A)}; | |
| F.onMessage=function(A,B){var C=this.QH[A];C||(C=new RR,this.QH[A]=C);return C.add(B)};F.onMessageRespond=function(A,B){var C=this;this.UE[A]=B;return function(){C.UE[A]===B&&delete C.UE[A]}};F.receiveMessage=function(A,B){if("visibilitychange"==A)return void 0!==B.prerenderSize&&(this.JB=B.prerenderSize),UW(this,B.state),Promise.resolve();if("broadcast"==A)return this.MJ.fire(B),Promise.resolve();var C=this.QH[A];C&&C.fire(B);if(A=this.UE[A])return A(B);if(C)return Promise.resolve()}; | |
| F.setMessageDeliverer=function(A,B){var C=this;if(this.IC)throw Error("message channel can only be initialized once");if(null==B)throw Error("message channel must have an origin");this.IC=A;this.VE=B;this.YN(B);0<this.JC.length&&(B=this.JC.slice(0),this.JC=[],B.forEach(function(A){var B=C.IC(A.eventType,A.data,A.awaitResponse);A.awaitResponse&&A.responseResolver(B)}))};F.sendMessage=function(A,B,C){C=void 0===C?!1:C;$W(this,A,B,C,!1)}; | |
| F.sendMessageAwaitResponse=function(A,B,C){return $W(this,A,B,void 0===C?!1:C,!0)}; | |
| function $W(A,B,C,D,E){if(A.IC)return BC(function(){return A.IC(B,C,E)});if(!A.UB)return E?Promise.reject(XW()):Promise.resolve();if(!D)return A.UB.then(function(){return A.IC(B,C,E)});var G=ZN(A.JC,function(A){return A.eventType==B});if(-1!=G)D=A.JC.splice(G,1)[0],D.data=C,D.awaitResponse=D.awaitResponse||E;else{D=new AC;var H=D.resolve;D={eventType:B,data:C,awaitResponse:E,responsePromise:D.promise,responseResolver:H}}A.JC.push(D);return D.responsePromise} | |
| F.broadcast=function(A){return this.UB?$W(this,"broadcast",A,!1,!1).then(function(){return!0},function(){return!1}):Promise.resolve(!1)};F.onBroadcast=function(A){return this.MJ.add(A)};F.whenMessagingReady=function(){return this.UB}; | |
| F.replaceUrl=function(A){if(A&&this.ampdoc.isSingleDoc()&&this.win.history.replaceState)try{var B=U(this.win.location.href),C=U(WG(A)+this.win.location.hash);B.origin==C.origin&&BH(B)==BH(C)&&(this.win.history.replaceState({},"",C.href),this.win.location.originalHref=B.href)}catch(D){S().error("Viewer","replaceUrl failed",D)}};function TW(A,B){A=RA(A);for(var C in A)B[C]=A[C]} | |
| function XW(A){return A instanceof Error?(A=SB(A),A.message="No messaging channel: "+A.message,A):Error("No messaging channel: "+A)}function AX(A){UH(A,"viewer",function(){return new SW(A)},!0)};function BX(A,B,C,D){var E=new CX(A,B,C,D);return E.solveYValueFromXValue.bind(E)}function CX(A,B,C,D){var E=1,G=1;this.y0=this.x0=0;this.x1=A;this.y1=B;this.x2=C;this.y2=D;this.x3=E;this.y3=G}F=CX.prototype;F.solveYValueFromXValue=function(A){return this.getPointY(this.solvePositionFromXValue(A))}; | |
| F.solvePositionFromXValue=function(A){var B=1E-6,C=(A-this.x0)/(this.x3-this.x0);if(0>=C)return 0;if(1<=C)return 1;for(var D=0,E=1,G=0,H=0;8>H;H++){G=this.getPointX(C);var I=(this.getPointX(C+B)-G)/B;if(Math.abs(G-A)<B)return C;if(Math.abs(I)<B)break;else G<A?D=C:E=C,C-=(G-A)/I}for(H=0;Math.abs(G-A)>B&&8>H;H++)G<A?(D=C,C=(C+E)/2):(E=C,C=(C+D)/2),G=this.getPointX(C);return C}; | |
| F.getPointX=function(A){if(0==A)return this.x0;if(1==A)return this.x3;var B=this.lerp(this.x0,this.x1,A),C=this.lerp(this.x1,this.x2,A),D=this.lerp(this.x2,this.x3,A);B=this.lerp(B,C,A);C=this.lerp(C,D,A);return this.lerp(B,C,A)};F.getPointY=function(A){if(0==A)return this.y0;if(1==A)return this.y3;var B=this.lerp(this.y0,this.y1,A),C=this.lerp(this.y1,this.y2,A),D=this.lerp(this.y2,this.y3,A);B=this.lerp(B,C,A);C=this.lerp(C,D,A);return this.lerp(B,C,A)};F.lerp=function(A,B,C){return A+C*(B-A)}; | |
| var DX=BX(.25,.1,.25,1),EX=BX(.42,0,1,1),FX=BX(0,0,.58,1),GX=BX(.42,0,.58,1),HX={linear:function(A){return A},ease:DX,"ease-in":EX,"ease-out":FX,"ease-in-out":GX};function IX(A){if(!A)return null;if("string"==typeof A){if(-1!=A.indexOf("cubic-bezier")){var B=A.match(/cubic-bezier\((.+)\)/);if(B&&(B=B[1].split(",").map(parseFloat),4==B.length)){for(var C=0;4>C;C++)if(isNaN(B[C]))return null;return BX(B[0],B[1],B[2],B[3])}return null}return HX[A]}return A};function JX(){}function KX(A){var B;this.TC=A;this.C=B||GJ(self);this.TJ=null;this.BA=[]}function LX(A,B,C,D){return(new KX(A)).setCurve(D).add(0,B,1).start(C)}KX.prototype.setCurve=function(A){A&&(this.TJ=IX(A));return this};KX.prototype.add=function(A,B,C,D){this.BA.push({delay:A,func:B,duration:C,curve:IX(D)});return this};KX.prototype.start=function(A){var B=new MX(this.C,this.TC,this.BA,this.TJ,A);return B}; | |
| function MX(A,B,C,D,E){this.C=A;this.TC=B;this.BA=[];for(B=0;B<C.length;B++){var G=C[B];this.BA.push({delay:G.delay,func:G.func,duration:G.duration,curve:G.curve||D,started:!1,completed:!1})}this.$M=E;this.HI=Date.now();this.VB=!0;this.L={};E=new AC;this.DL=E.promise;this.OO=E.resolve;this.MO=E.reject;this.SL=this.C.createAnimTask(this.TC,{mutate:this.WO.bind(this)});this.C.canAnimate(this.TC)?this.SL(this.L):(S().warn("Animation","cannot animate"),NX(this,!1,0))} | |
| MX.prototype.then=function(A,B){return A||B?this.DL.then(A,B):this.DL};MX.prototype.thenAlways=function(A){A=A||JX;return this.then(A,A)};MX.prototype.halt=function(A){NX(this,!1,A||0)}; | |
| function NX(A,B,C){if(A.VB){A.VB=!1;if(0!=C){1<A.BA.length&&A.BA.sort(function(A,B){return A.delay+A.duration-(B.delay+B.duration)});try{if(0<C)for(C=0;C<A.BA.length;C++)A.BA[C].func(1,!0);else for(var D=A.BA.length-1;0<=D;D--)A.BA[D].func(0,!1)}catch(E){S().error("Animation","completion failed: "+E,E),B=!1}}B?A.OO():A.MO()}} | |
| MX.prototype.WO=function(){if(this.VB){for(var A=Date.now(),B=Math.min((A-this.HI)/this.$M,1),C=0;C<this.BA.length;C++){var D=this.BA[C];!D.started&&B>=D.delay&&(D.started=!0)}for(C=0;C<this.BA.length;C++)if(D=this.BA[C],D.started&&!D.completed)A:{var E;if(0<D.duration){var G=E=Math.min((B-D.delay)/D.duration,1);if(D.curve&&1!=G)try{G=D.curve(E)}catch(H){S().error("Animation","step curve failed: "+H,H);NX(this,!1,0);break A}}else G=E=1;1==E&&(D.completed=!0);try{D.func(G,D.completed)}catch(H){S().error("Animation", | |
| "step mutate failed: "+H,H),NX(this,!1,0)}}1==B?NX(this,!0,0):this.C.canAnimate(this.TC)?this.SL(this.L):(S().warn("Animation","cancel animation"),NX(this,!1,0))}};function OX(A){return-1!==A.tagName.indexOf("LIGHTBOX")}function PX(A,B,C,D,E){var G=this;this.ampdoc=A;this.C=B;this.JM=C;this.AE=this.V=D;this.MB=E&&A.isSingleDoc();this.LB=null;this.WM=0;this.P=[];this.LI=new $O(A.win,function(){G.update()});this.HD=null;this.GE=[];this.LF=[]}F=PX.prototype;F.enterLightbox=function(A,B){var C=this,D=QX(this);D&&D.setLightboxMode(!0);W(this.ampdoc.win,"fixed-elements-in-lightbox")&&A&&B&&B.then(function(){C.trySetupSelectorsNoInline(A,!0);RX(C);C.update()})}; | |
| F.leaveLightbox=function(){var A=QX(this);A&&A.setLightboxMode(!1);if(W(this.ampdoc.win,"fixed-elements-in-lightbox")){var B=YN(this.P,function(A){return!!A.lightboxed});SX(this,B);this.P.length||TX(this)}}; | |
| F.setup=function(){var A=this.ampdoc.getRootNode(),B=A.styleSheets;if(B){this.GE.length=0;for(var C=this.LF.length=0;C<B.length;C++){var D=B[C];if(!D){S().error("FixedLayer","Aborting setup due to null stylesheet.");return}var E=D,G=E.disabled,H=E.ownerNode;G||!H||"STYLE"!=H.tagName||H.hasAttribute("amp-boilerplate")||H.hasAttribute("amp-runtime")||H.hasAttribute("amp-extension")||UX(this,D.cssRules)}this.trySetupSelectorsNoInline(A,void 0);RX(this);this.update();0<this.P.length&&this.observeHiddenMutations(); | |
| A=CJ(this.ampdoc.win);0<this.P.length&&!this.MB&&A.isIos()&&O().warn("FixedLayer","Please test this page inside of an AMP Viewer such as Google's because the fixed or sticky positioning might have slightly different layout.")}};F.observeHiddenMutations=function(){W(this.ampdoc.win,"hidden-mutation-observer")&&VX(this).observe(this.ampdoc.getRootNode(),{attributes:!0,subtree:!0})};function TX(A){WX(A);(A=A.HD)&&A.disconnect()}function WX(A){A.LI.cancel();(A=A.HD)&&A.takeRecords()} | |
| function VX(A){return A.HD?A.HD:A.HD=new A.ampdoc.win.MutationObserver(function(B){if(!A.LI.isPending())for(var C=0;C<B.length;C++){var D=B[C];if("hidden"===D.attributeName){A.LI.schedule(16);break}}})}F.updatePaddingTop=function(A,B){this.V=A;B||(this.AE=A);this.update()}; | |
| F.transformMutate=function(A){A?this.P.forEach(function(B){B.fixedNow&&B.top&&(Y(B.element,"transition","none"),B.transform&&"none"!=B.transform?Y(B.element,"transform",B.transform+" "+A):Y(B.element,"transform",A))}):this.P.forEach(function(A){A.fixedNow&&A.top&&QJ(A.element,{transform:"",transition:""})})};F.addElement=function(A,B){XX(this,A,"*","fixed",B);RX(this);this.observeHiddenMutations();return this.update()};F.removeElement=function(A){A=YX(this,A);SX(this,A)}; | |
| function SX(A,B){0<B.length&&A.LB&&A.C.mutate(function(){for(var C=0;C<B.length;C++){var D=B[C];"fixed"==D.position&&A.LB.returnFrom(D)}})}F.isDeclaredFixed=function(A){return!!A.__AMP_DECLFIXED};F.isDeclaredSticky=function(A){return!!A.__AMP_DECLSTICKY}; | |
| F.update=function(){var A=this;this.P.filter(function(B){return!A.ampdoc.contains(B.element)}).forEach(function(B){return YX(A,B.element)});if(0==this.P.length)return Promise.resolve();WX(this);var B=!1;return this.C.runPromise({measure:function(C){for(var D=A.P,E=[],G=A.ampdoc.win,H=0;H<D.length;H++)OJ(D[H].element,{top:"",bottom:"-9999vh",transition:"none"});for(H=0;H<D.length;H++)E.push(TJ(G,D[H].element).top);for(H=0;H<D.length;H++)Y(D[H].element,"bottom","");for(H=0;H<D.length;H++){var I=D[H], | |
| J=I,K=J.element,L=J.forceTransfer;J=TJ(G,K);var M=K.offsetWidth,P=K.offsetHeight,Q=K.offsetTop,R=J,Z=void 0===R.position?"":R.position,FA=void 0===R.display?"":R.display;K=R.bottom;var JA=R.zIndex,KA=parseFloat(J.opacity);R=J[NJ(J,"transform")];J=J.top;var VA="fixed"===Z&&(L||0<M&&0<P),DA=RC(Z,"sticky"),X="none"!==FA;if(X&&(VA||DA)){if("auto"===J||E[H]!==J)J=VA&&Q===A.AE+A.JM?"0px":"";var OA=!1;VA&&(OA=!0===L?!0:!1===L?!1:0<KA&&300>P&&!(!J&&!K));OA&&(B=!0);C[I.id]={fixed:VA,sticky:DA,transferrable:OA, | |
| top:J,zIndex:JA,transform:R}}else C[I.id]={fixed:!1,sticky:!1,transferrable:!1,top:"",zIndex:""}}},mutate:function(C){B&&A.MB&&QX(A).update();for(var D=A.P,E=0;E<D.length;E++){var G=D[E],H=C[G.id];Y(G.element,"transition","none");Y(G.element,"transition","");if(H){var I=E,J=H,K=G.element,L=G.fixedNow;G.fixedNow=J.fixed;G.stickyNow=J.sticky;G.top=J.fixed||J.sticky?J.top:"";G.transform=J.transform;!L||J.fixed&&J.transferrable||!A.LB||A.LB.returnFrom(G);J.top&&(J.fixed||J.sticky)&&!G.lightboxed&&(J.fixed|| | |
| !A.MB?Y(K,"top","calc("+J.top+" + "+A.V+"px)"):A.AE===A.V?Y(K,"top",J.top):Y(K,"top","calc("+J.top+" - "+A.AE+"px)"));A.MB&&J.fixed&&J.transferrable&&QX(A).transferTo(G,I,J)}}}},{}).catch(function(A){S().error("FixedLayer","Failed to mutate fixed elements:",A)})}; | |
| F.trySetupSelectorsNoInline=function(A,B){try{for(var C=0;C<this.GE.length;C++)for(var D=this.GE[C],E=A.querySelectorAll(D),G=0;G<E.length&&!(10<this.P.length);G++)XX(this,E[G],D,"fixed",void 0,B);for(C=0;C<this.LF.length;C++){var H=this.LF[C],I=A.querySelectorAll(H);for(D=0;D<I.length;D++)XX(this,I[D],H,"sticky",void 0,B)}}catch(J){S().error("FixedLayer","Failed to setup fixed elements:",J)}}; | |
| function XX(A,B,C,D,E,G){B.hasAttribute("style")&&(PJ(B,"top")||PJ(B,"bottom"))&&O().error("FixedLayer","Inline styles with `top`, `bottom` and other CSS rules are not supported yet for fixed or sticky elements (#14186). Unexpected behavior may occur.",B);if(!OX(B)){var H=ZC(B,OX);if(G||!H){G=null;for(var I=0;I<A.P.length;I++){var J=A.P[I];if(J.element==B&&J.position==D){G=J;break}}I="fixed"==D;G?G.selectors.includes(C)||G.selectors.push(C):(G="F"+A.WM++,B.setAttribute("i-amphtml-fixedid",G),I?B.__AMP_DECLFIXED= | |
| !0:B.__AMP_DECLSTICKY=!0,G={id:G,element:B,position:D,selectors:[C],fixedNow:!1,stickyNow:!1,lightboxed:!!H},A.P.push(G));G.forceTransfer=I?E:!1}}}function YX(A,B){for(var C=[],D=0;D<A.P.length;D++){var E=A.P[D];E.element===B&&(E.lightboxed||A.C.mutate(function(){Y(B,"top","")}),A.P.splice(D,1),C.push(E))}A.P.length||TX(A);return C}function RX(A){A.P.sort(function(A,C){var B=A.element;var E=C.element;B=B===E?0:B.compareDocumentPosition(E)&RD?1:-1;return B})} | |
| function QX(A){if(!A.MB||A.LB)return A.LB;var B=A.ampdoc.win.document;A.LB=B.body.shadowRoot?new ZX(B,A.C):new $X(B,A.C);return A.LB}function UX(A,B){for(var C=0;C<B.length;C++){var D=B[C];if(4==D.type||12==D.type)UX(A,D.cssRules);else if(1==D.type){var E=D.selectorText;D=D.style.position;"*"!==E&&D&&("fixed"===D?A.GE.push(E):RC(D,"sticky")&&A.LF.push(E))}}} | |
| function $X(A,B){this.CA=A;this.C=B;this.KK=W(A.defaultView,"fixed-elements-in-lightbox");this.AA=A.body.cloneNode(!1);this.AA.removeAttribute("style");B={position:"absolute",top:0,left:0,height:0,width:0,pointerEvents:"none",overflow:"hidden",animation:"none",background:"none",border:"none",borderImage:"none",boxSizing:"border-box",boxShadow:"none",float:"none",margin:0,opacity:1,outline:"none",padding:"none",transform:"none",transition:"none",visibility:"visible"};this.KK&&delete B.visibility;QJ(this.AA, | |
| RJ(B));this.AA.style.display="block";A.documentElement.appendChild(this.AA)}F=$X.prototype;F.getRoot=function(){return this.AA};F.setLightboxMode=function(A){var B=this;this.C.mutate(function(){var C=B.getRoot();B.KK?A?C.setAttribute("i-amphtml-lightbox",""):C.removeAttribute("i-amphtml-lightbox"):Y(C,"visibility",A?"hidden":"visible")})}; | |
| F.update=function(){for(var A=this.CA.body,B=this.AA,C=A.attributes,D=B.attributes,E=0;E<C.length;E++){var G=C[E];"style"!==G.name&&D.setNamedItem(G.cloneNode(!1))}for(E=0;E<D.length;E++)G=D[E].name,"style"===G||"i-amphtml-lightbox"===G||A.hasAttribute(G)||(B.removeAttribute(G),E--)}; | |
| F.transferTo=function(A,B,C){var D=A.element;if(D.parentElement!=this.AA){O().warn("FixedLayer","In order to improve scrolling performance in Safari, we now move the element to a fixed positioning layer:",A.element);if(!A.placeholder){Y(D,"pointer-events","initial");var E=A.placeholder=this.CA.createElement("i-amphtml-fpa");SJ(E,!1);E.setAttribute("i-amphtml-fixedid",A.id)}Y(D,"zIndex","calc("+(1E4+B)+" + "+(C.zIndex||0)+")");A.lightboxed&&D.classList.add("i-amphtml-lightbox-element");D.parentElement.replaceChild(A.placeholder, | |
| D);this.AA.appendChild(D);A.selectors.some(function(A){try{var B=BD(D,A)}catch(I){S().error("FixedLayer","Failed to test query match:",I),B=!1}return B})||(O().warn("FixedLayer","Failed to move the element to the fixed position layer. This is most likely due to the compound CSS selector:",A.element),this.returnFrom(A))}}; | |
| F.returnFrom=function(A){if(A.placeholder&&this.CA.contains(A.placeholder)){var B=A.element,C=A.placeholder;A.lightboxed&&B.classList.remove("i-amphtml-lightbox-element");this.CA.contains(B)?(Y(A.element,"zIndex",""),C.parentElement.replaceChild(B,C)):C.parentElement.removeChild(C)}}; | |
| function ZX(A,B){this.C=B;this.AA=A.createElement("div");this.AA.id="i-amphtml-fixed-layer";OJ(this.AA,{position:"absolute",top:0,left:0,height:0,width:0,overflow:"hidden"});var C=A.createElement("slot");C.setAttribute("name","i-amphtml-fixed");this.AA.appendChild(C);A.body.shadowRoot.appendChild(this.AA)}F=ZX.prototype;F.getRoot=function(){return this.AA};F.setLightboxMode=function(A){var B=this;this.C.mutate(function(){Y(B.getRoot(),"visibility",A?"hidden":"visible")})};F.update=function(){}; | |
| F.transferTo=function(A){var B=A.element;O().warn("FixedLayer","In order to improve scrolling performance in Safari, we now move the element to a fixed positioning layer:",A.element);B.setAttribute("slot","i-amphtml-fixed")};F.returnFrom=function(A){A.element.removeAttribute("slot")};var AY=['\n <div id="i-amphtml-scroller">\n <div id="i-amphtml-body-wrapper">\n <slot></slot>\n </div>\n </div>'];AY.raw=['\n <div id="i-amphtml-scroller">\n <div id="i-amphtml-body-wrapper">\n <slot></slot>\n </div>\n </div>'];var BY="align-content align-items align-self alignment-baseline backface-visibility box-sizing column-count column-fill column-gap column-rule column-span column-width columns display flex flex-basis flex-direction flex-flow flex-grow flex-shrink flex-wrap gap grid grid-area grid-auto-columns grid-auto-flow grid-auto-rows grid-column grid-gap grid-row grid-template justify-content justify-items justify-self margin order padding perspective perspective-origin place-content place-items place-self table-layout".split(" "); | |
| function CY(A){var B=this;this.win=A;this.C=GJ(A);var C=this.win.document,D=C.documentElement;D.classList.add("i-amphtml-ios-embed-sd");W(A,"scroll-height-minheight")&&D.classList.add("i-amphtml-body-minheight");var E=JJ(C)(AY);this.R=E;this.T=E.firstElementChild;this.R.style.display="block";OJ(this.R,{"overflow-x":"hidden","overflow-y":"auto",position:"absolute",top:"0",left:"0",right:"0",bottom:"0",margin:"0",width:"100%","box-sizing":"border-box","padding-top":"0px","border-top":"1px solid transparent"}); | |
| OJ(this.T,{overflow:"visible",position:"relative","will-change":"transform"});this.QA=new RR;this.NA=new RR;this.EB=this.JD.bind(this);this.DB=this.DO.bind(this);this.I=W(this.win,"layers");this.SD=this.DG=!1;VC(C,this.TD.bind(this));MC(C).then(function(){B.R.classList.add("i-amphtml-ios-overscroll");OJ(B.R,{"-webkit-overflow-scrolling":"touch"})})}F=CY.prototype;F.ensureReadyForElements=function(){this.TD()}; | |
| F.TD=function(){if(!this.SD){this.SD=!0;var A=this.win.document.body;A.attachShadow({mode:"open"}).appendChild(this.R);this.KI();if(this.win.MutationObserver){var B=new this.win.MutationObserver(this.KI.bind(this));B.observe(A,{attributes:!0})}this.JD()}};F.KI=function(){var A=this;if(!this.DG){var B=this.win.document.body;if(B){var C={};this.DG=!0;this.C.run({measure:function(){var D=TJ(A.win,B);BY.forEach(function(A){C[A]=D[A]||""})},mutate:function(){A.DG=!1;OJ(A.T,RJ(C))}})}}}; | |
| F.DO=function(){this.NA.fire();this.KI()};F.connect=function(){this.win.addEventListener("resize",this.DB);this.R.addEventListener("scroll",this.EB)};F.disconnect=function(){this.win.removeEventListener("resize",this.DB);this.R.removeEventListener("scroll",this.EB)};F.getBorderTop=function(){return 1};F.requiresFixedLayerTransfer=function(){return!W(this.win,"ios-embed-sd-notransfer")};F.supportsPositionFixed=function(){return!0};F.onScroll=function(A){this.QA.add(A)};F.onResize=function(A){this.NA.add(A)}; | |
| F.updatePaddingTop=function(A){OJ(this.R,{"padding-top":A+"px"})};F.hideViewerHeader=function(A){A||this.updatePaddingTop(0)};F.showViewerHeader=function(A,B){A||this.updatePaddingTop(B)};F.disableScroll=function(){OJ(this.R,{"overflow-y":"hidden",position:"fixed"})};F.resetScroll=function(){OJ(this.R,{"overflow-y":"auto",position:"absolute"})};F.updateLightboxMode=function(){return Promise.resolve()};F.getSize=function(){return{width:this.win.innerWidth,height:this.win.innerHeight}}; | |
| F.getScrollTop=function(){return this.R.scrollTop};F.getScrollLeft=function(){return 0};F.getScrollWidth=function(){return this.R.scrollWidth};F.getScrollHeight=function(){return this.R.scrollHeight};F.getContentHeight=function(){var A=this.T,B=A.getBoundingClientRect(),C=TJ(this.win,A),D=B.top+this.getScrollTop();return B.height+D+parseInt(C.marginTop,10)+parseInt(C.marginBottom,10)}; | |
| F.contentHeightChanged=function(){var A=this;W(this.win,"scroll-height-bounce")&&this.C.mutate(function(){OJ(A.R,{"-webkit-overflow-scrolling":"auto"});A.C.mutate(function(){OJ(A.R,{"-webkit-overflow-scrolling":"touch"})})})};F.getLayoutRect=function(A,B,C){A=A.getBoundingClientRect();if(this.I)return OE(A.left,A.top,A.width,A.height);var D=void 0!=C?C:this.getScrollTop(),E=void 0!=B?B:this.getScrollLeft();return OE(Math.round(A.left+E),Math.round(A.top+D),Math.round(A.width),Math.round(A.height))}; | |
| F.getRootClientRectAsync=function(){return Promise.resolve(null)};F.setScrollTop=function(A){this.R.scrollTop=A||1};F.JD=function(A){0==this.R.scrollTop&&(this.R.scrollTop=1,A&&A.preventDefault());A&&this.QA.fire()};F.getScrollingElement=function(){return this.R};F.getScrollingElementScrollsLikeViewport=function(){return!1};function DY(A){var B=this;this.win=A;this.C=GJ(A);var C=this.win.document,D=C.documentElement,E=D.className;D.classList.add("i-amphtml-ios-embed");var G=C.createElement("html");this.T=G;G.id="i-amphtml-wrapper";G.className=E;W(A,"scroll-height-minheight")&&G.classList.add("i-amphtml-body-minheight");this.QA=new RR;this.NA=new RR;this.EB=this.JD.bind(this);this.DB=function(){return B.NA.fire()};this.I=W(this.win,"layers");this.V=0;this.SD=!1;VC(C,this.TD.bind(this));MC(C).then(function(){D.classList.add("i-amphtml-ios-overscroll")})} | |
| F=DY.prototype;F.ensureReadyForElements=function(){this.TD()};F.TD=function(){if(!this.SD){this.SD=!0;var A=this.win.document,B=A.body;A.documentElement.appendChild(this.T);this.T.appendChild(B);Object.defineProperty(A,"body",{get:function(){return B}});this.JD()}};F.connect=function(){this.win.addEventListener("resize",this.DB);this.T.addEventListener("scroll",this.EB)};F.disconnect=function(){this.win.removeEventListener("resize",this.DB);this.T.removeEventListener("scroll",this.EB)}; | |
| F.getBorderTop=function(){return 1};F.requiresFixedLayerTransfer=function(){return!0};F.supportsPositionFixed=function(){return!0};F.onScroll=function(A){this.QA.add(A)};F.onResize=function(A){this.NA.add(A)};F.updatePaddingTop=function(A){this.V=A;OJ(this.T,{"padding-top":A+"px"})};F.hideViewerHeader=function(A){A||this.updatePaddingTop(0)};F.showViewerHeader=function(A,B){A||this.updatePaddingTop(B)};F.disableScroll=function(){this.T.classList.add("i-amphtml-scroll-disabled")};F.resetScroll=function(){this.T.classList.remove("i-amphtml-scroll-disabled")}; | |
| F.updateLightboxMode=function(){return Promise.resolve()};F.getSize=function(){return{width:this.win.innerWidth,height:this.win.innerHeight}};F.getScrollTop=function(){return this.T.scrollTop};F.getScrollLeft=function(){return 0};F.getScrollWidth=function(){return this.T.scrollWidth};F.getScrollHeight=function(){return this.T.scrollHeight}; | |
| F.getContentHeight=function(){var A=this.win.document.body,B=A.getBoundingClientRect(),C=TJ(this.win,A);return B.height+this.V+parseInt(C.marginTop,10)+parseInt(C.marginBottom,10)};F.contentHeightChanged=function(){var A=this;if(W(this.win,"scroll-height-bounce")){var B=this.win.document.documentElement;this.C.mutate(function(){B.classList.remove("i-amphtml-ios-overscroll");A.C.mutate(function(){B.classList.add("i-amphtml-ios-overscroll")})})}}; | |
| F.getLayoutRect=function(A,B,C){A=A.getBoundingClientRect();if(this.I)return OE(A.left,A.top,A.width,A.height);C=void 0!=C?C:this.getScrollTop();B=void 0!=B?B:this.getScrollLeft();return OE(Math.round(A.left+B),Math.round(A.top+C),Math.round(A.width),Math.round(A.height))};F.getRootClientRectAsync=function(){return Promise.resolve(null)};F.setScrollTop=function(A){this.T.scrollTop=A||1};F.JD=function(A){0==this.T.scrollTop&&(this.T.scrollTop=1,A&&A.preventDefault());A&&this.QA.fire()}; | |
| F.getScrollingElement=function(){return this.T};F.getScrollingElementScrollsLikeViewport=function(){return!1};function EY(A){var B=this;this.ampdoc=A;this.win=A.win;this.VA=CJ(this.win);this.QA=new RR;this.NA=new RR;this.EB=function(){B.QA.fire()};this.DB=function(){return B.NA.fire()};this.I=W(this.win,"layers")}F=EY.prototype;F.connect=function(){this.win.addEventListener("scroll",this.EB);this.win.addEventListener("resize",this.DB)};F.disconnect=function(){this.win.removeEventListener("scroll",this.EB);this.win.removeEventListener("resize",this.DB)};F.ensureReadyForElements=function(){}; | |
| F.getBorderTop=function(){return 0};F.requiresFixedLayerTransfer=function(){return!1};F.supportsPositionFixed=function(){return!0};F.onScroll=function(A){this.QA.add(A)};F.onResize=function(A){this.NA.add(A)};F.updatePaddingTop=function(A){OJ(this.win.document.documentElement,{"padding-top":A+"px"})};F.hideViewerHeader=function(A){A||this.updatePaddingTop(0)};F.showViewerHeader=function(A,B){A||this.updatePaddingTop(B)};F.disableScroll=function(){this.win.document.documentElement.classList.add("i-amphtml-scroll-disabled")}; | |
| F.resetScroll=function(){this.win.document.documentElement.classList.remove("i-amphtml-scroll-disabled")};F.updateLightboxMode=function(){return Promise.resolve()};F.getSize=function(){var A=this.win.innerWidth,B=this.win.innerHeight;if(A&&B)return{width:A,height:B};var C=this.win.document.documentElement;return{width:C.clientWidth,height:C.clientHeight}}; | |
| F.getScrollTop=function(){var A=this.getScrollingElement().scrollTop||this.win.pageYOffset,B=this.ampdoc.getRootNode().host;return B?A-B.offsetTop:A};F.getScrollLeft=function(){return 0};F.getScrollWidth=function(){return this.getScrollingElement().scrollWidth};F.getScrollHeight=function(){return this.getScrollingElement().scrollHeight}; | |
| F.getContentHeight=function(){var A=this.getScrollingElement(),B=A.getBoundingClientRect();A=TJ(this.win,A);var C=B.top+this.getScrollTop();return B.height+C+parseInt(A.marginTop,10)+parseInt(A.marginBottom,10)};F.contentHeightChanged=function(){};F.getLayoutRect=function(A,B,C){A=A.getBoundingClientRect();if(this.I)return OE(A.left,A.top,A.width,A.height);C=void 0!=C?C:this.getScrollTop();B=void 0!=B?B:this.getScrollLeft();return OE(Math.round(A.left+B),Math.round(A.top+C),Math.round(A.width),Math.round(A.height))}; | |
| F.getRootClientRectAsync=function(){return Promise.resolve(null)};F.setScrollTop=function(A){this.getScrollingElement().scrollTop=A};F.getScrollingElement=function(){var A=this.win.document;return A.scrollingElement?A.scrollingElement:A.body&&this.VA.isWebKit()?A.body:A.documentElement};F.getScrollingElementScrollsLikeViewport=function(){return!0};function FY(A){var B=500,C=0;return Math.min(Math.max(A,C),B)};function GY(A,B){return{left:A,top:B}}var HY=[],IY=0;function JY(A,B,C){var D=this;A=A.win;this.ML=B;this.VH=null;this.QE=[];this.TF=[];KY(this,A.document);A.document.documentElement.contains(B)||KY(this,B);this.TF.push(IK(A,"resize",function(){for(var A=D.QE,B=0;B<A.length;B++){var C=A[B];C.undeclareLayer();C.forgetParentLayer()}},{capture:!0,passive:!0}));this.SI=LY(this,B,!0,C)}F=JY.prototype;F.dispose=function(){this.TF.forEach(function(A){return A()});this.TF.length=0}; | |
| F.add=function(A){var B=MY(A);B||(B=new NY(A));this.QE.includes(B)||this.QE.push(B);return B};F.remove=function(A){if(A=MY(A)){var B=this.QE,C=B.indexOf(A);-1<C&&B.splice(C,1);if(C=A.getParentLayer())C.remove(A);else for(C=0;C<B.length;C++)B[C].remove(A);A.forgetParentLayer();A.dirtyMeasurements()}};F.getScrolledPosition=function(A,B){A=this.add(A).getScrolledPosition(B);return GY(Math.round(A.left),Math.round(A.top))}; | |
| F.getOffsetPosition=function(A,B){A=this.add(A).getOffsetPosition(B);return GY(Math.round(A.left),Math.round(A.top))};F.getSize=function(A){A=this.add(A).getSize();return{height:Math.round(A.height),width:Math.round(A.width)}};F.remeasure=function(A,B){A=this.add(A);A=A.getParentLayer()||A;B&&A.dirtyMeasurements();A.remeasure()};F.declareLayer=function(A){LY(this,A,!1,!1)};F.dirty=function(A){(OY(A)||MY(this.ML)).dirtyMeasurements()};function LY(A,B,C,D){A=A.add(B);A.declareLayer(C,D);return A} | |
| function KY(A,B){A.TF.push(IK(B,"scroll",function(B){B=B.target;B=B.nodeType==Node.ELEMENT_NODE?B:A.ML;var C=MY(B);C&&C.isLayer()?C.dirtyScrollMeasurements():C=LY(A,B,!1,!1);A.SI=C;A.VH&&A.VH()},{capture:!0,passive:!0}))}F.onScroll=function(A){this.VH=A};F.getActiveLayer=function(){return this.SI};F.iterateAncestry=function(A,B,C){return this.add(A).iterateAncestry(B,C)}; | |
| function NY(A){A.__AMP_LAYOUT=this;this.$=A;this.VG=A.tagName+"-"+IY++;this.MD=void 0;this.ID=!0;this.Z={height:0,width:0};this.$K=GY(0,0);this.AH=void 0;this.XE=this.NL=this.LK=this.FC=!1;this.XA=this.XB=0;this.PB=[]}function MY(A){return A.__AMP_LAYOUT||null} | |
| function OY(A,B){if(PY(A))return null;if(!B&&(B=MY(A)))return B.getParentLayer();B=A.ownerDocument.defaultView;for(var C=A,D=A,E;C;){if((E=C===A?null:MY(C))&&E.isLayer())return E;if(C===D){if("fixed"==TJ(B,D).position){if(A=D!==A?D:QY(A.ownerDocument))return XH(A,"layers").declareLayer(A),MY(A);break}D=D.offsetParent}E=C;C=C.assignedSlot||C.parentNode||C.host;!C&&(D=C=QY(E))&&(B=C.ownerDocument.defaultView)}return null}F=NY.prototype;F.getId=function(){return this.VG}; | |
| F.contains=function(A){return A===this?!1:RY(this,this.$,A.$)};function RY(A,B,C){if(B.contains(C))return!0;if(B.ownerDocument!==C.ownerDocument){var D=QY(C.ownerDocument);return!!D&&RY(A,B,D)}A=(A=YC(B))&&A.host;return!!A&&A.contains(C)}F.add=function(A){this.isLayer();this.contains(A);this.PB.includes(A)||this.PB.push(A)};F.remove=function(A){A=this.PB.indexOf(A);-1<A&&this.PB.splice(A,1)};F.isLayer=function(){return this.FC}; | |
| F.declareLayer=function(A,B){this.FC||(this.FC=!0,this.LK=A,this.NL=B,this.XE=this.ID=!0,(A=this.getParentLayer())&&A.MB(this))};F.undeclareLayer=function(){if(this.FC&&!this.LK){var A=this.$;PY(A)||"fixed"===TJ(A.ownerDocument.defaultView,A).position||(this.FC=!1,A=this.getParentLayer()||OY(A,!0),this.MB(A))}};F.MB=function(A){var B=A.contains(this);YN(this.PB,function(C){return B||A.contains(C)?(C.dirtyMeasurements(),C.MD=A,A.PB.push(C),!0):!1})}; | |
| F.getParentLayer=function(){if(void 0===this.MD){var A=OY(this.$,!0);(this.MD=A)&&A.add(this)}return this.MD};F.forgetParentLayer=function(){this.MD=void 0};F.getSize=function(){this.remeasure();return this.Z};F.getOffsetFromParent=function(){this.remeasure();return this.$K};F.isActiveUnsafe=function(){return this.AH}; | |
| F.getHorizontalDistanceFromParent=function(){var A=this.getParentLayer();if(!A)return 0;var B=this.getOffsetFromParent().left,C=this.getSize().width,D=A.getScrollLeft(),E=A.getSize().width;return B+C<D?D-(B+C):D+E<B?B-(D+E):0};F.getHorizontalViewportsFromParent=function(){var A=this.getHorizontalDistanceFromParent();if(0===A)return 0;var B=this.getParentLayer().getSize().width;return A/B}; | |
| F.getVerticalDistanceFromParent=function(){var A=this.getParentLayer();if(!A)return 0;var B=this.getOffsetFromParent().top,C=this.getSize().height,D=A.getScrollTop(),E=A.getSize().height;return B+C<D?D-(B+C):D+E<B?B-(D+E):0};F.getVerticalViewportsFromParent=function(){var A=this.getVerticalDistanceFromParent();if(0===A)return 0;var B=this.getParentLayer().getSize().height;return A/B};F.getScrollTop=function(){SY(this);return this.XA};F.getScrollLeft=function(){SY(this);return this.XB}; | |
| F.getScrolledPosition=function(A){var B=this.getScrollLeft(),C=this.getScrollTop(),D=A?OY(A):null;for(A=this;A&&A!==D;A=A.getParentLayer()){var E=A.getOffsetFromParent();B+=E.left-A.getScrollLeft();C+=E.top-A.getScrollTop()}return GY(B,C)};F.getOffsetPosition=function(A){var B=0,C=0;A=A?OY(A):null;for(var D=this;D&&D!==A;D=D.getParentLayer()){var E=D.getOffsetFromParent();B+=E.left;C+=E.top}return GY(B,C)};F.dirtyMeasurements=function(){this.ID=!0};F.dirtyScrollMeasurements=function(){this.XE=!0}; | |
| F.remeasure=function(){for(var A=this,B=this.getParentLayer();B;B=B.getParentLayer())B.ID&&(A=B);A.ID&&TY(A)};F.iterateAncestry=function(A,B){for(var C=PY(this.$)?null:XH(this.$,"layers").getActiveLayer(),D=C===this||!!C&&C.contains(this),E=this;E;)HY.push(E),E.AH=D,E===C&&(D=!1),E=E.getParentLayer();var G=void 0;E=HY.length;for(var H=0;H<E;H++){var I=HY.pop();G=A(G,I,H,B);I.AH=void 0}return G}; | |
| function TY(A){SY(A);A.ID=!1;var B=A.$,C=A.getParentLayer();if(C)if(C.$.ownerDocument===A.$.ownerDocument){var D=C.getScrolledPosition(C.$.ownerDocument.documentElement);C=GY(D.left-C.getScrollLeft(),D.top-C.getScrollTop())}else C=GY(0,0);else C=GY(0,0);var E=C;A.Z={height:B.clientHeight,width:B.clientWidth};C=B.getBoundingClientRect();B=C.left;C=C.top;A.NL&&(B+=A.getScrollLeft(),C+=A.getScrollTop());A.$K=GY(B-E.left,C-E.top);A=A.PB;if(A.length)for(B=0;B<A.length;B++)TY(A[B])} | |
| function SY(A){A.FC&&A.XE&&(A.XE=!1,A.XB=A.$.scrollLeft,A.XA=A.$.scrollTop)}function QY(A){try{var B=A.defaultView,C=B&&B.frameElement;return C&&C.__AMP_EMBED__?C:null}catch(D){}return null}function PY(A){A=A.ownerDocument;if(!A)return!0;A=A.defaultView;return!A||!A.document}function UY(A,B,C){UH(A,"layers",function(A){return new JY(A,B,C)},!0)};function VY(A,B){return function(C){return A+(B-A)*C}};function WY(A,B,C){var D=this,E=A.win;this.ampdoc=A;this.PG=this.ampdoc.win.document;this.B=B;this.A=C;this.XA=this.Z=this.PD=null;this.CI=!1;this.XB=null;this.V=Number(C.getParam("paddingTop")||0);this.OE=0;this.X=EJ(E);this.C=GJ(E);this.DI=!1;this.LL=0;this.RJ=new RR;this.QA=new RR;this.NA=new RR;this.XH=this.WD=void 0;(this.I=W(E,"layers"))&&UY(A,this.B.getScrollingElement(),this.B.getScrollingElementScrollsLikeViewport());this.JA=new PX(A,this.C,this.B.getBorderTop(),this.V,this.B.requiresFixedLayerTransfer()); | |
| A.whenReady().then(function(){return D.JA.setup()});this.A.onMessage("viewport",this.BP.bind(this));this.A.onMessage("scroll",this.DP.bind(this));this.A.onMessage("disableScroll",this.ZM.bind(this));this.B.updatePaddingTop(this.V);this.B.onScroll(this.SO.bind(this));this.B.onResize(this.JL.bind(this));this.onScroll(this.TO.bind(this));this.RA=!1;this.A.onVisibilityChanged(this.ZL.bind(this));this.ZL();var G=this.PG.documentElement;A.isSingleDoc()&&G.classList.add("i-amphtml-singledoc");C.isEmbedded()? | |
| G.classList.add("i-amphtml-embedded"):G.classList.add("i-amphtml-standalone");QD(E)&&G.classList.add("i-amphtml-iframed");"1"===C.getParam("webview")&&G.classList.add("i-amphtml-webview");QD(E)&&"scrollRestoration"in E.history&&(E.history.scrollRestoration="manual")}F=WY.prototype;F.dispose=function(){this.B.disconnect()};F.ensureReadyForElements=function(){this.B.ensureReadyForElements()};F.ZL=function(){var A=this.A.isVisible();A!=this.RA&&((this.RA=A)?(this.B.connect(),this.Z&&this.JL()):this.B.disconnect())}; | |
| F.getPaddingTop=function(){return this.V};F.getTop=function(){return this.getScrollTop()};F.getScrollTop=function(){null==this.XA&&(this.XA=this.B.getScrollTop());return this.XA};F.getScrollLeft=function(){null==this.XB&&(this.XB=this.B.getScrollLeft());return this.XB};F.setScrollTop=function(A){this.XA=null;this.B.setScrollTop(A)};F.updatePaddingBottom=function(A){this.ampdoc.whenBodyAvailable().then(function(B){Y(B,"borderBottom",A+"px solid transparent")})}; | |
| F.getSize=function(){if(this.Z)return this.Z;this.Z=this.B.getSize();if(0==this.Z.width||0==this.Z.height){var A=this.A.getVisibilityState();("prerender"==A||"visible"==A)&&.01>Math.random()&&S().error("Viewport","viewport has zero dimensions")}return this.Z};F.getHeight=function(){return this.getSize().height};F.getWidth=function(){return this.getSize().width};F.getScrollWidth=function(){return this.B.getScrollWidth()};F.getScrollHeight=function(){return this.B.getScrollHeight()}; | |
| F.getContentHeight=function(){return this.B.getContentHeight()};F.contentHeightChanged=function(){this.B.contentHeightChanged()};F.getRect=function(){if(null==this.PD){var A=0,B=0;this.I||(A=this.getScrollTop(),B=this.getScrollLeft());var C=this.getSize();this.PD=OE(B,A,C.width,C.height)}return this.PD}; | |
| F.getLayoutRect=function(A){var B=this.getScrollLeft(),C=this.getScrollTop(),D=OI(A,this.ampdoc.win);return D?(A=this.B.getLayoutRect(A,0,0),B=this.B.getLayoutRect(D,B,C),OE(Math.round(A.left+B.left),Math.round(A.top+B.top),Math.round(A.width),Math.round(A.height))):this.B.getLayoutRect(A,B,C)}; | |
| F.getClientRectAsync=function(A){var B=this;if(this.I)return this.C.measurePromise(function(){return B.getLayoutRect(A)});var C=this.C.measurePromise(function(){return A.getBoundingClientRect()}),D=this.B.getRootClientRectAsync(),E=OI(A,this.ampdoc.win);E&&(D=this.C.measurePromise(function(){return E.getBoundingClientRect()}));return Promise.all([C,D]).then(function(A){var B=A[0];return(A=A[1])?RE(B,A.left,A.top):OE(Number(B.left),Number(B.top),Number(B.width),Number(B.height))})}; | |
| F.supportsPositionFixed=function(){return this.B.supportsPositionFixed()};F.isDeclaredFixed=function(A){return this.JA.isDeclaredFixed(A)};F.scrollIntoView=function(A){var B=this;return XY(this,A).then(function(C){return YY(B,A,C)})};function YY(A,B,C){var D=A.B.getLayoutRect(B).top,E=A.I?ZY(A,C).then(function(A){return D+A}):BC(function(){return Math.max(0,D-A.V)});E.then(function(B){return $Y(A,C,B)})} | |
| F.animateScrollIntoView=function(A,B,C,D){var E=this;B=void 0===B?"top":B;return XY(this,A).then(function(G){return E.animateScrollWithinParent(A,G,B,C,D)})}; | |
| F.animateScrollWithinParent=function(A,B,C,D,E){var G=this,H=this.B.getLayoutRect(A);A=(B==this.B.getScrollingElement()?this.getSize():this.getLayoutRect(B)).height;switch(C){case "bottom":var I=-A+H.height;break;case "center":I=-A/2+H.height/2;break;default:I=0}return ZY(this,B).then(function(A){if(G.I)var C=Math.max(0,H.top+I+A);else{var J=H.top-G.V+I;C=Math.max(0,J)}if(C!=A)return AZ(G,B,A,C,D,E)})}; | |
| function AZ(A,B,C,D,E,G){G=void 0===G?"ease-in":G;E=void 0!==E?E:Math.floor(FY(.65*Math.abs(C-D)));var H=VY(C,D);return LX(B,function(C){$Y(A,B,H(C))},E,G).thenAlways(function(){$Y(A,B,D)})}function XY(A,B){return A.C.measurePromise(function(){return AD(B,".i-amphtml-scrollable")||A.B.getScrollingElement()})}function $Y(A,B,C){B==A.B.getScrollingElement()?A.B.setScrollTop(C):A.C.mutate(function(){B.scrollTop=C})} | |
| function ZY(A,B){return B==A.B.getScrollingElement()?BC(function(){return A.getScrollTop()}):A.C.measurePromise(function(){return B.scrollTop})}F.getScrollingElement=function(){return this.B.getScrollingElement()};F.onChanged=function(A){return this.RJ.add(A)};F.onScroll=function(A){return this.QA.add(A)};F.onResize=function(A){return this.NA.add(A)}; | |
| F.enterLightboxMode=function(A,B){this.A.sendMessage("requestFullOverlay",{},!0);this.enterOverlayMode();this.JA.enterLightbox(A,B);A&&this.maybeEnterFieLightboxMode(A);return this.B.updateLightboxMode(!0)};F.leaveLightboxMode=function(A){this.A.sendMessage("cancelFullOverlay",{},!0);this.JA.leaveLightbox();this.leaveOverlayMode();A&&this.maybeLeaveFieLightboxMode(A);return this.B.updateLightboxMode(!1)};F.isLightboxExperimentOn=function(){return W(this.ampdoc.win,"amp-lightbox-a4a-proto")}; | |
| F.maybeEnterFieLightboxMode=function(A){var B=BZ(this,A);B&&(this.isLightboxExperimentOn(),B.enterFullOverlayMode())};F.maybeLeaveFieLightboxMode=function(A){(A=BZ(this,A))&&A.leaveFullOverlayMode()};function BZ(A,B){var C=OI(B,A.ampdoc.win);return C&&C.__AMP_EMBED__}F.enterOverlayMode=function(){this.disableTouchZoom();this.disableScroll()};F.leaveOverlayMode=function(){this.resetScroll();this.restoreOriginalTouchZoom()};F.disableScroll=function(){var A=this;this.C.mutate(function(){A.B.disableScroll()})}; | |
| F.resetScroll=function(){var A=this;this.C.mutate(function(){A.B.resetScroll()})};F.resetTouchZoom=function(){var A=this,B=this.ampdoc.win.innerHeight,C=this.PG.documentElement.clientHeight;B&&C&&B===C||this.disableTouchZoom()&&this.X.delay(function(){A.restoreOriginalTouchZoom()},50)}; | |
| F.disableTouchZoom=function(){var A=CZ(this);if(!A)return!1;var B=A.content,C={"maximum-scale":"1","user-scalable":"no"};var D=Object.create(null);if(B)for(var E=B.split(/,|;/),G=0;G<E.length;G++){var H=E[G].split("="),I=H[0].trim();H=H[1];H=(H||"").trim();I&&(D[I]=H)}E=!1;for(var J in C)D[J]!==C[J]&&(E=!0,void 0!==C[J]?D[J]=C[J]:delete D[J]);if(E){B="";for(var K in D)0<B.length&&(B+=","),B=D[K]?B+(K+"="+D[K]):B+K}D=B;return DZ(this,D)}; | |
| F.restoreOriginalTouchZoom=function(){return void 0!==this.XH?DZ(this,this.XH):!1};F.hasScrolled=function(){return 0<this.LL};F.updateFixedLayer=function(){this.JA.update()};F.addToFixedLayer=function(A,B){return this.JA.addElement(A,B)};F.removeFromFixedLayer=function(A){this.JA.removeElement(A)};function DZ(A,B){return(A=CZ(A))&&A.content!=B?(A.content=B,!0):!1} | |
| function CZ(A){if(QD(A.ampdoc.win))return null;void 0===A.WD&&(A.WD=A.PG.querySelector("meta[name=viewport]"),A.WD&&(A.XH=A.WD.content));return A.WD}F.DP=function(A){var B=A.scrollTop;this.setScrollTop(B)};F.BP=function(A){var B=this,C=A.paddingTop,D=A.duration||0,E=A.curve,G=A["transient"];if(void 0!=C&&C!=this.V){this.OE=this.V;this.V=C;var H=EZ(this,D,E,G);C<this.OE?this.B.hideViewerHeader(G,this.OE):H.then(function(){B.B.showViewerHeader(G,C)})}};F.ZM=function(A){A?this.disableScroll():this.resetScroll()}; | |
| function EZ(A,B,C,D){A.JA.updatePaddingTop(A.V,D);if(0>=B)return Promise.resolve();var E=VY(A.OE-A.V,0);return LX(A.ampdoc.getRootNode(),function(B){B=E(B);A.JA.transformMutate("translateY("+B+"px)")},B,C).thenAlways(function(){A.JA.transformMutate(null)})}function FZ(A,B,C){var D=A.getSize(),E=A.getScrollTop(),G=A.getScrollLeft();A.RJ.fire({relayoutAll:B,top:E,left:G,width:D.width,height:D.height,velocity:C})} | |
| F.SO=function(){var A=this;this.PD=null;this.LL++;this.XB=this.B.getScrollLeft();var B=this.B.getScrollTop();if(!(0>B)){this.XA=B;if(!this.DI){this.DI=!0;var C=Date.now();this.X.delay(function(){A.C.measure(function(){A.UL(C,B)})},36)}this.QA.fire()}};F.UL=function(A,B){var C=this,D=this.XA=this.B.getScrollTop(),E=Date.now(),G=0;E!=A&&(G=(D-B)/(E-A));.03>Math.abs(G)?(FZ(this,!1,G),this.DI=!1):this.X.delay(function(){return C.C.measure(C.UL.bind(C,E,D))},20)}; | |
| F.TO=function(){var A=this;this.CI||(this.CI=!0,this.C.measure(function(){A.CI=!1;A.A.sendMessage("scroll",$B({scrollTop:A.getScrollTop()}),!0)}))};F.JL=function(){var A=this;this.PD=null;var B=this.Z;this.Z=null;var C=this.getSize();this.JA.update().then(function(){var D=!B||B.width!=C.width;FZ(A,D,0);var E=D||B.height!=C.height;E&&A.NA.fire({relayoutAll:D,width:C.width,height:C.height})})}; | |
| function GZ(A){var B=FJ(A),C=A.win,D;if(D=A.isSingleDoc())D=B.getParam("viewportType")||HZ,CJ(C).isIos()&&D==HZ&&(!QD(C)&&N(C).development?D=IZ:(QD(C),D=QD(C)&&B.isEmbedded()?IZ:D)),D=D==IZ;C=D?W(C,"ios-embed-sd")&&C.Element.prototype.attachShadow&&11<=CJ(C).getMajorVersion()?new CY(C):new DY(C):new EY(A);return new WY(A,C,B)}var HZ="natural",IZ="natural-ios-embed";var JZ=['\n <div class="i-amphtml-jank-meter"></div>'];JZ.raw=['\n <div class="i-amphtml-jank-meter"></div>'];function KZ(A){this.F=A;this.SE=this.RE=this.VD=this.$D=0;this.RD=null;this.AB=WH(A);this.GD=this.AJ=this.BJ=null;LZ(this)}KZ.prototype.onScheduled=function(){MZ(this)&&null==this.RD&&(this.RD=this.F.Date.now())}; | |
| KZ.prototype.onRun=function(){if(MZ(this)&&null!=this.RD){var A=this.F.Date.now()-this.RD;this.RD=null;this.VD++;16<A&&(this.$D++,S().info("JANK","Paint latency: "+A+"ms"));if(this.AB&&200==this.VD){var B=this.F.Math.floor((this.VD-this.$D)/this.VD*100);this.AB.tickDelta("gfp",B);this.AB.tickDelta("bf",this.$D);this.GD&&(this.AB.tickDelta("lts",this.SE),this.AB.tickDelta("ltc",this.RE),this.GD.disconnect(),this.GD=null);var C=0;this.BJ&&null!=this.AJ&&(C=this.F.Math.max(0,this.F.Math.floor(100*this.BJ.level- | |
| this.AJ)),this.AB.tickDelta("bd",C));this.AB.flush();if(W(this.F,"jank-meter")){var D=C,E=this.F.document,G=JJ(E)(JZ);G.textContent="bf:"+this.$D+", lts: "+this.SE+", "+("ltc:"+this.RE+", bd:"+D);E.body.appendChild(G)}}}};function MZ(A){return W(A.F,"jank-meter")||A.AB&&A.AB.isPerformanceTrackingOn()&&200>A.VD} | |
| function LZ(A){MZ(A)&&NZ(A.F)&&(A.GD=new A.F.PerformanceObserver(function(B){for(var C=B.getEntries(),D=0;D<C.length;D++)if("longtask"==C[D].entryType){var E=A.F.Math.floor(C[D].duration/50);"cross-origin-descendant"==C[D].name?(A.RE+=E,O().info("LONGTASK","from child frame "+C[D].duration+"ms")):(A.SE+=E,S().info("LONGTASK","from self frame "+C[D].duration+"ms"))}}),A.GD.observe({entryTypes:["longtask"]}))} | |
| function NZ(A){return!!A.PerformanceObserver&&!!A.TaskAttributionTiming&&"containerName"in A.TaskAttributionTiming.prototype};function OZ(A){var B=this;this.win=A;this.OB=ZI(this.win);this.UC=VH(this.win,"documentState");this.KO=PZ(this);this.M=[];this.TH=[];this.II=[];this.SH=[];this.WA=!1;this.RH=this.YE=null;this.HG=this.RO.bind(this);this.KN=new $O(this.win,this.HG,16);this.$I=new $O(this.win,this.HG,40);this.FI=null;var C=this.WH.bind(this);if(this.OB.isSingleDoc())YH(this.OB.getAmpDoc(),"viewer").then(function(A){B.FI=A;A.onVisibilityChanged(C)});else this.UC.onVisibilityChanged(C);this.MK=new KZ(this.win)}F=OZ.prototype; | |
| F.WH=function(){this.WA&&QZ(this)};F.run=function(A,B){this.M.push(A);this.II.push(B||void 0);this.WB()};F.runPromise=function(A,B){this.run(A,B);if(this.YE)return this.YE;A=new AC;this.RH=A.resolve;return this.YE=A.promise};F.createTask=function(A){var B=this;return function(C){B.run(A,C)}};F.mutate=function(A){this.run({measure:void 0,mutate:A})};F.mutatePromise=function(A){return this.runPromise({measure:void 0,mutate:A})};F.measure=function(A){this.run({measure:A,mutate:void 0})}; | |
| F.measurePromise=function(A){var B=this;return new Promise(function(C){B.measure(function(){C(A())})})};F.canAnimate=function(A){return RZ(this,A)};function RZ(A,B){return A.UC.isHidden()?!1:A.FI?A.FI.isVisible():B?(A=A.OB.getAmpDocIfAvailable(B),!A||FJ(A).isVisible()):!0}F.runAnim=function(A,B,C){if(!RZ(this,A))return S().warn("VSYNC","Did not schedule a vsync request, because document was invisible"),!1;this.run(B,C);return!0}; | |
| F.createAnimTask=function(A,B){var C=this;return function(D){return C.runAnim(A,B,D)}};F.runAnimMutateSeries=function(A,B,C){var D=this;return RZ(this,A)?new Promise(function(E,G){var H=Date.now(),I=0,J=D.createAnimTask(A,{mutate:function(A){var D=Date.now()-H;B(D,D-I,A)?C&&D>C?G(Error("timeout")):(I=D,J(A)):E()}});J({})}):Promise.reject(Error("CANCELLED"))};F.WB=function(){this.WA||(this.WA=!0,this.MK.onScheduled(),QZ(this))};function QZ(A){RZ(A)?(A.KO(A.HG),A.$I.schedule()):A.KN.schedule()} | |
| F.RO=function(){this.$I.cancel();this.WA=!1;this.MK.onRun();var A=this.M,B=this.II,C=this.RH;this.YE=this.RH=null;this.M=this.TH;this.II=this.SH;for(var D=0;D<A.length;D++)A[D].measure&&!SZ(A[D].measure,B[D])&&(A[D].mutate=void 0);for(D=0;D<A.length;D++)A[D].mutate&&SZ(A[D].mutate,B[D]);this.TH=A;this.SH=B;this.TH.length=0;this.SH.length=0;C&&C()}; | |
| function PZ(A){var B=A.win.requestAnimationFrame||A.win.webkitRequestAnimationFrame;if(B)return B.bind(A.win);var C=0;return function(B){var D=Date.now(),G=Math.max(0,16-(D-C));C=D+G;A.win.setTimeout(B,G)}}function SZ(A,B){try{var C=A(B);void 0!==C&&S().error("VSYNC","callback returned a value but vsync cannot propogate it: %s",A.toString())}catch(D){return TB(D),!1}return!0};var TZ=/nochunking=1/.test(self.location.hash),UZ=Promise.resolve();function VZ(A){UH(A,"chunk",WZ);return XH(A,"chunk")}function XZ(A,B){TZ?UZ.then(B):VZ(A.documentElement).runForStartup(B)}function YZ(A,B){TZ?UZ.then(B):VZ(A).run(B,10)}function ZZ(A){this.state="not_run";this.OG=A}function $Z(A,B){if("run"!=A.state){A.state="run";try{A.OG(B)}catch(C){throw A.YK(),C;}}}ZZ.prototype.IP=function(){return this.OG.displayName||this.OG.name};ZZ.prototype.YK=function(){};ZZ.prototype.JK=function(){return!1}; | |
| ZZ.prototype.BM=function(){return!0};function A_(A,B,C){ZZ.call(this,A);var D=this;this.F=B;this.A=null;C.then(function(A){D.A=A;D.A.isVisible()&&$Z(D,null);D.A.onVisibilityChanged(function(){D.A.isVisible()&&$Z(D,null)})})}LA(A_,ZZ);A_.prototype.YK=function(){OL(self.document)};A_.prototype.JK=function(){return this.A?this.A.isVisible():this.F.document.hidden?!1:!/visibilityState=(hidden|prerender)/.test(this.F.location.hash)};A_.prototype.BM=function(){return!!this.A}; | |
| function WZ(A){var B=this;this.F=A.win;this.M=new CS;this.DJ=this.XJ.bind(this);this.CP=YH(A,"viewer");this.F.addEventListener("message",function(A){"amp-macro-task"==A.data&&B.XJ(null)})}WZ.prototype.run=function(A,B){A=new ZZ(A);B_(this,A,B)};WZ.prototype.runForStartup=function(A){A=new A_(A,this.F,this.CP);B_(this,A,Number.POSITIVE_INFINITY)};function B_(A,B,C){A.M.enqueue(B,C);UZ.then(function(){A.WB()})} | |
| function C_(A,B){for(var C=A.M.peek();C&&"not_run"!==C.state;)A.M.dequeue(),C=A.M.peek();C&&B&&A.M.dequeue();return C}WZ.prototype.XJ=function(A){var B=this,C=C_(this,!0);if(!C)return!1;$Z(C,A);UZ.then(function(){B.WB()});return!0};function D_(A){UZ.then(function(){A.DJ(null)})}WZ.prototype.WB=function(){var A=C_(this);A&&(A.JK()?D_(this):A.BM()&&this.F.requestIdleCallback?E_(this.F,this.DJ):this.F.postMessage("amp-macro-task","*"))}; | |
| function E_(A,B){var C=15;function D(G){if(G.timeRemaining()<C){var H=2E3-(Date.now()-E);0>=H||G.didTimeout?B(G):A.requestIdleCallback(D,{timeout:H})}else B(G)}var E=Date.now();A.requestIdleCallback(D,{timeout:2E3})};(function(){VB=LB;S();O()})();(function(A){self.reportError=A})(function(A,B,C){$L(B,C);B&&A&&IB(B.message)&&!(0<=B.message.indexOf("\u200b\u200b\u200b\u200b"))&&ZI(A).isSingleDoc()&&(B=$B({errorName:B.name,errorMessage:B.message}),A=ZI(A).getAmpDoc().getRootNode(),VL(A.documentElement||A.body||A,B))}.bind(null,self)); | |
| function F_(A){TH(A,"crypto",KR);TH(A,"batched-xhr",MO);TH(A,"documentState",SR);TH(A,"platform",CT);TH(A,"templates",WK);TH(A,"timer",KV);TH(A,"timer",KV);TH(A,"vsync",OZ);TH(A,"xhr",KO);TH(A,"input",BT)} | |
| function G_(A){var B=self;function C(A){function C(){G.then(function(){"function"==typeof A?A(B.AMP,B.AMP._):E.registerExtension(A.n,A.f,B.AMP)})}"function"!=typeof A&&A.i?H_(E,A).then(function(){return I_(B,A,C)}):I_(B,A,C)}if(B.AMP_TAG)Promise.resolve();else{B.AMP_TAG=!0;var D=B.AMP||[];TH(B,"extensions",ZP);var E=AJ(B);F_(B);JQ(B);B.AMP={win:B,_:B.AMP?B.AMP._:void 0};B.AMP.config=SF;B.AMP.BaseElement=TK;B.AMP.BaseTemplate=VK;B.AMP.registerElement=E.addElement.bind(E);B.AMP.registerTemplate=function(A, | |
| C){var D=VH(B,"templates");if(D.OC[A]){var E=D.OF[A];T(E,"Duplicate template type: %s",A);delete D.OF[A];E(C)}else D.OC[A]=Promise.resolve(C)};B.AMP.registerServiceForDoc=E.addService.bind(E);B.AMP.isExperimentOn=W.bind(null,B);B.AMP.toggleExperiment=JH.bind(null,B);B.AMP.setLogLevel=KB.bind(null);B.AMP.setTickFunction=function(){};var G=A(B,E);for(A=0;A<D.length;A++){var H=D[A];if(J_(B,H))D.splice(A--,1);else if("function"==typeof H||"high"==H.p){try{C(H)}catch(I){S().error("runtime","Extension failed: ", | |
| I,H.n)}D.splice(A--,1)}}K_(B,function(){B.AMP.push=function(A){J_(B,A)||C(A)};for(var A=0;A<D.length;A++){var E=D[A];if(!J_(B,E))try{C(E)}catch(K){S().error("runtime","Extension failed: ",K,E.n)}}D.length=0});B.AMP.push||(B.AMP.push=D.push.bind(D));CJ(B).isIos()&&Y(B.document.documentElement,"cursor","pointer")}} | |
| function H_(A,B){if(Array.isArray(B.i))return B=B.i.map(function(B){return A.preloadExtension(B)}),Promise.all(B);if("string"==typeof B.i)return A.preloadExtension(B.i);S().error("RUNTIME","dependency is neither an array or a string",B.i);return Promise.resolve()}function I_(A,B,C){"function"==typeof B||"high"==B.p?Promise.resolve().then(C):(C.displayName=B.n,XZ(A.document,C))} | |
| function L_(){G_(function(A){var B=A.document.documentElement,C=ZI(A).getAmpDoc();A.AMP.ampdoc=C;var D=FJ(B);A.AMP.viewer=D;N().development&&(A.AMP.toggleRuntime=D.toggleRuntime.bind(D),A.AMP.resources=DJ(B));B=HJ(B);A.AMP.viewport={};A.AMP.viewport.getScrollLeft=B.getScrollLeft.bind(B);A.AMP.viewport.getScrollWidth=B.getScrollWidth.bind(B);A.AMP.viewport.getWidth=B.getWidth.bind(B);return WC(A.document).then(function(){LP(C)})})} | |
| function J_(A,B){if(!W(A,"version-locking")||"function"==typeof B||"1903251702181"==B.v)return!1;var C=A.document.head.querySelector('[custom-element="'+B.n+'"]:not([i-amphtml-inserted])');if(!C)return!1;AJ(A).reloadExtension(B.n,C);return!0}function K_(A,B){W(A,"pump-early-frame")?A.document.body?0<DL(A).length?B():EJ(A).delay(B,1):B():B()};function M_(){var A=self;KC(A.document,function(){return N_(A)})} | |
| function N_(A){var B=0,C=A.performance;C&&C.timing&&C.timing.responseStart&&(B=Date.now()-C.timing.responseStart);var D=Math.max(1,250-B);A.setTimeout(function(){O_(A);var B=A.document.styleSheets;if(B){for(var C=A.document.querySelectorAll('link[rel~="stylesheet"]:not([href^="'+String(RF.cdn).replace(CC,DC)+'"])'),H=[],I=0;I<C.length;I++){for(var J=C[I],K=!1,L=0;L<B.length;L++)if(B[L].ownerNode==J){K=!0;break}K||H.push(J)}I={};for(J=0;J<H.length;I={UA:I.UA,media:I.media},J++)I.UA=H[J],I.media=I.UA.media|| | |
| "all",I.UA.media="not-matching",I.UA.onload=function(B){return function(){B.UA.media=B.media;O_(A)}}(I),I.UA.setAttribute("i-amphtml-timeout",D),I.UA.parentNode.insertBefore(I.UA,I.UA.nextSibling)}},D)}function O_(A){if(W(A,"font-display-swap")&&(A=A.document,A.fonts&&A.fonts.values))for(var B=A.fonts.values();A=B.next();){var C=A.value;if(!C)break;"loading"==C.status&&"display"in C&&"auto"==C.display&&(C.display="swap")}};function P_(A){var B=A.win;W(B,"amp-auto-lightbox")&&YZ(A,function(){AJ(B).installExtensionForDoc(A,"amp-auto-lightbox")})};function Q_(A){var B=!0;this.win=A;this.MC=null;B&&(this.MC=new R_(A));this.UI=W(A,"ampdoc-closest");this.YA=null}F=Q_.prototype;F.isSingleDoc=function(){return!!this.MC};F.hasAmpDocShell=function(){return!!this.YA}; | |
| F.getAmpDocIfAvailable=function(A,B){B=void 0===B?{}:B;var C=void 0===B.closestAmpDoc?!1:B.closestAmpDoc;if(this.MC&&!C&&!this.UI)return this.MC;if(W(this.win,"ampdoc-shell")&&A===this.win.document){if(this.YA)return this.YA;throw S().createError("Ampdoc for shell has not been installed");}for(B=A;B;){if(B.J&&(this.UI||!C))return B.J;var D=OI(B,this.win);if(D)B=D;else{B=QL(B);if(!B){if(this.YA)return this.YA;break}if(D=B.__AMPDOC)return D;B=B.host}}return this.MC?this.MC:null}; | |
| F.getAmpDoc=function(A,B){B=this.getAmpDocIfAvailable(A,B);if(!B)throw S().createError("No ampdoc found for",A);return B};F.installShadowDoc=function(A,B){A=new S_(this.win,A,B);return B.__AMPDOC=A};F.installShellShadowDoc=function(){var A=this;this.YA=new T_(this.win);this.win.document.__AMPDOC=this.YA;MC(this.win.document).then(function(B){A.YA.setBody(B.body);A.YA.setReady()});return this.YA};function U_(A){this.win=A;this.W=new WO;this.UJ=[]}F=U_.prototype;F.isSingleDoc=function(){return null}; | |
| F.getWin=function(){return this.win};F.signals=function(){return this.W};F.declaresExtension=function(A){return-1!=this.UJ.indexOf(A)};F.declareExtension=function(A){this.declaresExtension(A)||this.UJ.push(A)};F.getRootNode=function(){return null};F.getHeadNode=function(){};F.isBodyAvailable=function(){return!1};F.getBody=function(){return null};F.whenBodyAvailable=function(){return null};F.isReady=function(){return null};F.whenReady=function(){return null};F.getUrl=function(){return null}; | |
| F.getElementById=function(A){return this.getRootNode().getElementById(A)};F.contains=function(A){return this.getRootNode().contains(A)};function R_(A){U_.call(this,A);var B=this;this.CG=this.win.document.body?Promise.resolve(this.win.document.body):WC(this.win.document).then(function(){return B.getBody()});this.BI=MC(this.win.document)}LA(R_,U_);F=R_.prototype;F.isSingleDoc=function(){return!0};F.getRootNode=function(){return this.win.document};F.getUrl=function(){return this.win.location.href}; | |
| F.getHeadNode=function(){return this.win.document.head};F.isBodyAvailable=function(){return!!this.win.document.body};F.getBody=function(){return this.win.document.body};F.whenBodyAvailable=function(){return this.CG};F.isReady=function(){return IC(this.win.document)};F.whenReady=function(){return this.BI};function S_(A,B,C){U_.call(this,A);this.MI=B;this.PL=C;this.EG=null;var D=new AC;this.CG=D.promise;this.CJ=D.resolve;this.FL=!1;var E=new AC;this.BI=E.promise;this.EL=E.resolve}LA(S_,U_);F=S_.prototype; | |
| F.isSingleDoc=function(){return!1};F.getRootNode=function(){return this.PL};F.getUrl=function(){return this.MI};F.getHeadNode=function(){return this.PL};F.isBodyAvailable=function(){return!!this.EG};F.getBody=function(){return this.EG};F.setBody=function(A){this.EG=A;this.CJ(A);this.CJ=void 0};F.whenBodyAvailable=function(){return this.CG};F.isReady=function(){return this.FL};F.setReady=function(){this.FL=!0;this.EL();this.EL=void 0};F.whenReady=function(){return this.BI}; | |
| function T_(A){S_.call(this,A,A.location.href,A.document)}LA(T_,S_);T_.prototype.getHeadNode=function(){return this.win.document.head};function V_(){var A=self;TH(A,"ampdoc",function(){return new Q_(A)})};function W_(A){var B=this;this.win=A;this.YG=this.win.Date.now();this.WC=[];this.D=this.A=null;this.ED=this.GH=!1;this.WJ=ZB();this.WI="";this.AK=this.ZJ=this.SK=null;this.YD=this.NE=0;this.FJ=this.AF.bind(this);this.HJ=this.VL.bind(this);this.addEnabledExperiment("rtv-"+N(this.win).rtvVersion);HH(this.win)&&this.addEnabledExperiment("canary");NC(A.document).then(function(){B.tick("ol");if(!B.win.PerformancePaintTiming&&B.win.chrome&&"function"==typeof B.win.chrome.loadTimes){var A=1E3*B.win.chrome.loadTimes().firstPaintTime- | |
| B.win.performance.timing.navigationStart;1>=A||B.tickDelta("fp",A)}B.flush()});X_(this);Y_(this)}F=W_.prototype; | |
| F.coreServicesAvailable=function(){var A=this,B=this.win.document.documentElement;this.A=FJ(B);this.D=DJ(B);this.ED=this.A.isEmbedded()&&"1"===this.A.getParam("csi");this.A.onVisibilityChanged(this.flush.bind(this));Z_(this);var C=this.A.whenMessagingReady();this.A.whenFirstVisible().then(function(){A.tick("ofv");A.flush()});this.win.PerformanceLayoutJank&&(this.win.addEventListener("visibilitychange",this.FJ,{capture:!0}),CJ(this.win).isSafari()&&this.win.addEventListener("beforeunload",this.HJ)); | |
| return C?C.then(function(){A.GH=!0;A.tickDelta("msr",A.win.Date.now()-A.YG);$_(A);A.flush()}):Promise.resolve()}; | |
| function X_(A){function B(B){"first-paint"!=B.name||C?"first-contentful-paint"!=B.name||D?"firstInput"!==B.entryType||E?"layoutJank"===B.entryType&&(A.YD+=B.fraction):(A.tickDelta("fid",B.processingStart-B.startTime),E=!0):(A.tickDelta("fcp",B.startTime+B.duration),D=!0):(A.tickDelta("fp",B.startTime+B.duration),C=!0)}var C=!1,D=!1,E=!1,G=[];A.win.PerformancePaintTiming&&(A.win.performance.getEntriesByType("paint").forEach(B),G.push("paint"));A.win.PerformanceEventTiming&&(A.win.performance.getEntriesByType("firstInput").forEach(B), | |
| G.push("firstInput"));A.win.PerformanceLayoutJank&&(A.win.performance.getEntriesByType("layoutJank").forEach(B),G.push("layoutJank"));if(0!==G.length){var H=new A.win.PerformanceObserver(function(C){C.getEntries().forEach(B);A.flush()});try{H.observe({entryTypes:G})}catch(I){S().warn(I)}}}function Y_(A){if(A.win.perfMetrics&&A.win.perfMetrics.onFirstInputDelay)A.win.perfMetrics.onFirstInputDelay(function(B){A.tickDelta("fid-polyfill",B);A.flush()})} | |
| F.AF=function(){"hidden"===this.win.document.visibilityState&&this.VL()};F.VL=function(){0===this.NE?(this.tickDelta("lj",this.YD),this.flush(),this.NE=1):1===this.NE&&(this.tickDelta("lj-2",this.YD),this.flush(),this.NE=2,this.win.removeEventListener("visibilitychange",this.FJ,{capture:!0}),this.win.removeEventListener("beforeunload",this.HJ))}; | |
| function Z_(A){var B=!A.A.hasBeenVisible(),C=B?-1:A.YG;B&&A.A.whenFirstVisible().then(function(){C=A.win.Date.now();A.mark("visible")});A0(A).then(function(){if(B){var D=-1<C?A.win.Date.now()-C:0;A.A.whenFirstVisible().then(function(){A.tickDelta("pc",D)});B0(A,D);A.mark("pc")}else A.tick("pc"),B0(A,A.win.Date.now()-C);A.flush()})} | |
| function A0(A){var B=HJ(A.win.document.documentElement).getSize();B=OE(0,0,B.width,B.height);return A.D.getResourcesInRect(A.win,B,!0).then(function(A){return Promise.all(A.map(function(A){return A.loadedOnce()}))})} | |
| F.tick=function(A,B){var C=void 0==B?this.win.Date.now():void 0,D=$B({label:A,value:C,delta:null!=B?Math.max(B,0):void 0});this.GH&&this.ED?this.A.sendMessage("tick",D):(50<=this.WC.length&&this.WC.shift(),this.WC.push(D));1==arguments.length&&this.mark(A);var E=Math.round(null!=B?Math.max(B,0):C-this.YG);switch(A){case "fcp":this.ZJ=E;break;case "pc":this.AK=E;break;case "mbv":this.SK=E}};F.mark=function(A){this.win.performance&&this.win.performance.mark&&1==arguments.length&&this.win.performance.mark(A)}; | |
| F.tickDelta=function(A,B){this.tick(A,B)};F.tickSinceVisible=function(A){var B=this.win.Date.now(),C=this.A?this.A.getFirstVisibleTime():0;this.tickDelta(A,C?Math.max(B-C,0):0)};F.flush=function(){this.GH&&this.ED&&this.A.sendMessage("sendCsi",$B({ampexp:this.WI}),!0)};F.throttledFlush=function(){this.TL||(this.TL=RL(this.win,this.flush.bind(this)));this.TL()};F.addEnabledExperiment=function(A){this.WJ[A]=!0;this.WI=Object.keys(this.WJ).join(",")}; | |
| function $_(A){A.A&&(A.ED&&A.WC.forEach(function(B){A.A.sendMessage("tick",B)}),A.WC.length=0)}function B0(A,B){A.A&&A.A.sendMessage("prerenderComplete",$B({value:B}),!0)}F.isPerformanceTrackingOn=function(){return this.ED};F.getFirstContentfulPaint=function(){return this.ZJ};F.getMakeBodyVisible=function(){return this.SK};F.getFirstViewportReady=function(){return this.AK};function C0(A,B){this.CA=A;this.K=B;this.PF=!1;this.GI=0;this.LJ=this.HO.bind(this);this.KJ=this.GO.bind(this);this.JJ=this.FO.bind(this);this.IJ=this.EO.bind(this);this.CA.addEventListener("touchstart",this.LJ,!0)}F=C0.prototype;F.cleanup=function(){D0(this);this.CA.removeEventListener("touchstart",this.LJ,!0)}; | |
| F.HO=function(A){this.PF||!A.touches||1!=A.touches.length||0<this.K.getScrollTop()||(A=A.touches[0].clientY,this.PF=!0,this.GI=A,this.CA.addEventListener("touchmove",this.KJ,!0),this.CA.addEventListener("touchend",this.JJ,!0),this.CA.addEventListener("touchcancel",this.IJ,!0))};function D0(A){A.PF=!1;A.GI=0;A.CA.removeEventListener("touchmove",A.KJ,!0);A.CA.removeEventListener("touchend",A.JJ,!0);A.CA.removeEventListener("touchcancel",A.IJ,!0)} | |
| F.GO=function(A){if(this.PF){var B=A.touches[0].clientY-this.GI;0<B&&A.preventDefault();0!=B&&D0(this)}};F.FO=function(){D0(this)};F.EO=function(){D0(this)};function E0(){var A=self,B=A.location.href;if(!SC(B,"about:")){var C=!1;N().development&&(C="0"!==RA(A.location.originalHash||A.location.hash).validate);C?F0(A.document,RF.cdn+"/v0/validator.js").then(function(){amp.validator.validateUrlAndLog(B,A.document,N().filter)}):N().examiner&&F0(A.document,RF.cdn+"/examiner.js")}}function F0(A,B){var C=A.createElement("script");C.src=B;B=LK(C).then(function(){A.head.removeChild(C)},function(){});A.head.appendChild(C);return B};if(!self.IS_AMP_ALT){self.location&&(self.location.originalHash=self.location.hash);var ampdocService;try{CM(),V_(),ampdocService=ZI(self)}catch(A){throw OL(self.document),A;}XZ(self.document,function(){var A=ampdocService.getAmpDoc(self.document);TH(self,"performance",W_);var B=BJ(self);self.document.documentElement.hasAttribute("i-amphtml-no-boilerplate")&&B.addEnabledExperiment("no-boilerplate");TH(self,"platform",CT);M_();B.tick("is");FL(A,cssText$$module$build$css,function(){XZ(self.document, | |
| function(){F_(self);UH(A,"url",LV,!0);UH(A,"cid",UQ);UH(A,"documentInfo",NR);AX(A);UH(A,"viewport",GZ,!0);UH(A,"history",AT);UH(A,"resources",KT);PW(A);UH(A,"action",CN,!0);UH(A,"standard-actions",LU,!0);JV(A);UH(A,"navigation",ES,!0);MS(A);B.coreServicesAvailable();XR()});XZ(self.document,function(){L_()});XZ(self.document,function(){var A=self;KP(A,"amp-img",PP);KP(A,"amp-pixel",VP);KP(A,"amp-layout",TP)});XZ(self.document,function(){LP(A)});XZ(self.document,function(){var B=self,D=B.document.documentElement; | |
| "0"==FJ(D).getParam("p2r")&&CJ(B).isChrome()&&new C0(B.document,HJ(D));P_(A);E0();ML()});XZ(self.document,function(){B.tick("e_is");DJ(A).ampInitComplete();B.flush()})},!0,"amp-runtime")});self.console&&(console.info||console.log).call(console,"Powered by AMP \u26a1 HTML \u2013 Version 1903251702181",self.location.href);self.document.documentElement.setAttribute("amp-version","1903251702181")};})(AMP._=AMP._||{})}catch(e){setTimeout(function(){var s=document.body.style;s.opacity=1;s.visibility="visible";s.animation="none";s.WebkitAnimation="none;"},1000);throw e}; | |
| //# sourceMappingURL=v0.js.map | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var global=self;self.AMP=self.AMP||[];try{(function(_){ | |
| var f,ba="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ca;if("function"==typeof Object.setPrototypeOf)ca=Object.setPrototypeOf;else{var da;a:{var ea={a:!0},ha={};try{ha.__proto__=ea;da=ha.a;break a}catch(a){}da=!1}ca=da?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ja=ca; | |
| function ka(a,b){a.prototype=ba(b.prototype);a.prototype.constructor=a;if(ja)ja(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Xh=b.prototype}var ma=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a}(this);function na(a,b){b=void 0===b?"":b;try{return decodeURIComponent(a)}catch(c){return b}};var oa=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function q(a){var b=Object.create(null);if(!a)return b;for(var c;c=oa.exec(a);){var d=na(c[1],c[1]),e=c[2]?na(c[2],c[2]):"";b[d]=e}return b};var pa=""; | |
| function r(a){var b=a||self;if(b.AMP_MODE)var c=b.AMP_MODE;else{c=b;var d=self.AMP_CONFIG||{},e=!!d.test||!1,g=q(c.location.originalHash||c.location.hash);d=d.spt;var h=q(c.location.search);pa||(pa=c.AMP_CONFIG&&c.AMP_CONFIG.v?c.AMP_CONFIG.v:"011903251702180");c=b.AMP_MODE={localDev:!1,development:!("1"!=g.development&&!c.AMP_DEV_MODE),examiner:"2"==g.development,filter:g.filter,geoOverride:g["amp-geo"],minified:!0,lite:void 0!=h.amp_lite,test:e,log:g.log,version:"1903251702180",rtvVersion:pa, | |
| singlePassType:d}}return c};function qa(a,b){var c=b||0,d=this.length;for(b=0<=c?c:Math.max(d+c,0);b<d;b++){var e=this[b];if(e===a||a!==a&&e!==e)return!0}return!1};function ra(a,b){var c=void 0===b?this.contains(a):!b;if(c)return this.remove(a),!1;this.add(a);return!0}function sa(a){/Trident|MSIE|IEMobile/i.test(a.navigator.userAgent)&&a.DOMTokenList&&a.Object.defineProperty(a.DOMTokenList.prototype,"toggle",{enumerable:!1,configurable:!0,writable:!0,value:ra})};function va(a){return a==this||this.documentElement.contains(a)}function wa(a){var b=a.HTMLDocument||a.Document;b.prototype.contains||a.Object.defineProperty(b.prototype,"contains",{enumerable:!1,configurable:!0,writable:!0,value:va})};var xa=Object.prototype.toString;function ya(a){return Array.isArray(a)}function za(a){return"[object Object]"===xa.call(a)}function Aa(a){return"number"===typeof a&&isFinite(a)};function Ca(a){return 0<=a.indexOf("\u200b\u200b\u200b")}var Da=void 0;function Ea(a){Da=a}function Fa(a,b,c){this.win=a;this.fh=b;this.gh=this.win.console&&this.win.console.log&&"0"!=r().log?this.fh({localDev:!1,development:r(void 0).development,filter:r(void 0).filter,minified:!0,lite:r(void 0).lite,test:!1,log:r(void 0).log,version:r(void 0).version,rtvVersion:r(void 0).rtvVersion,singlePassType:r(void 0).singlePassType}):0;this.Nc=c||""}function Ga(a){return void 0!==Da?Da:a.gh} | |
| function Ha(a,b,c){if(0!=Ga(a)){var d=a.win.console.log;"ERROR"==b?d=a.win.console.error||d:"INFO"==b?d=a.win.console.info||d:"WARN"==b&&(d=a.win.console.warn||d);d.apply(a.win.console,c)}}f=Fa.prototype;f.isEnabled=function(){return 0!=Ga(this)};f.fine=function(a,b){4<=Ga(this)&&Ha(this,"FINE",Array.prototype.slice.call(arguments,1))};f.info=function(a,b){3<=Ga(this)&&Ha(this,"INFO",Array.prototype.slice.call(arguments,1))}; | |
| f.warn=function(a,b){2<=Ga(this)&&Ha(this,"WARN",Array.prototype.slice.call(arguments,1))};f.Da=function(a,b){if(1<=Ga(this))Ha(this,"ERROR",Array.prototype.slice.call(arguments,1));else{var c=Ia.apply(null,Array.prototype.slice.call(arguments,1));La(this,c);return c}};f.error=function(a,b){var c=this.Da.apply(this,arguments);c&&(c.name=a||c.name,self.reportError(c))};f.expectedError=function(a,b){var c=this.Da.apply(this,arguments);c&&(c.expected=!0,self.reportError(c))}; | |
| f.createError=function(a){var b=Ia.apply(null,arguments);La(this,b);return b};f.createExpectedError=function(a){var b=Ia.apply(null,arguments);La(this,b);b.expected=!0;return b}; | |
| f.assert=function(a,b,c){var d;if(!a){var e=(b||"Assertion failed").split("%s"),g=e.shift(),h=g,k=[],l=2;for(""!=g&&k.push(g);0<e.length;){var m=e.shift(),n=arguments[l++];n&&n.tagName&&(d=n);k.push(n);g=m.trim();""!=g&&k.push(g);g=n;h+=(g&&1==g.nodeType?g.tagName.toLowerCase()+(g.id?"#"+g.id:""):g)+m}l=Error(h);l.fromAssert=!0;l.associatedElement=d;l.messageArray=k;La(this,l);self.reportError(l);throw l;}return a}; | |
| f.assertElement=function(a,b){this.assert(a&&1==a.nodeType,(b||"Element expected")+": %s",a);return a};f.assertString=function(a,b){this.assert("string"==typeof a,(b||"String expected")+": %s",a);return a};f.assertNumber=function(a,b){this.assert("number"==typeof a,(b||"Number expected")+": %s",a);return a};f.assertArray=function(a,b){this.assert(Array.isArray(a),(b||"Array expected")+": %s",a);return a};f.assertBoolean=function(a,b){this.assert(!!a===a,(b||"Boolean expected")+": %s",a);return a}; | |
| f.assertEnumValue=function(a,b,c){a:{for(var d in a)if(a[d]===b){a=!0;break a}a=!1}if(a)return b;this.assert(!1,'Unknown %s value: "%s"',c||"enum",b)};function La(a,b){b=Ma(b);a.Nc?b.message?-1==b.message.indexOf(a.Nc)&&(b.message+=a.Nc):b.message=a.Nc:Ca(b.message)&&(b.message=b.message.replace("\u200b\u200b\u200b",""))}function Ma(a){var b=Object.getOwnPropertyDescriptor(a,"message");if(b&&b.writable)return a;var c=a.stack,d=Error(a.message),e;for(e in a)d[e]=a[e];d.stack=c;return d} | |
| function Ia(a){for(var b=null,c="",d=0;d<arguments.length;d++){var e=arguments[d];e instanceof Error&&!b?b=Ma(e):(c&&(c+=" "),c+=e)}b?c&&(b.message=c+": "+b.message):b=Error(c);return b}function Na(a){var b=Ia.apply(null,arguments);setTimeout(function(){self.reportError(b);throw b;})}self.log=self.log||{user:null,dev:null,userForEmbed:null};var Oa=self.log,Pa=null; | |
| function w(a){Oa.user||(Oa.user=Qa("\u200b\u200b\u200b"));var b=Oa.user.win;return a&&a.ownerDocument.defaultView!=b?Oa.userForEmbed?Oa.userForEmbed:Oa.userForEmbed=Qa("\u200b\u200b\u200b\u200b"):Oa.user}function Qa(a){if(!Pa)throw Error("failed to call initLogConstructor");return new Pa(self,function(a){var b=parseInt(a.log,10);return a.development||1<=b?4:2},a)} | |
| function x(){if(Oa.dev)return Oa.dev;if(!Pa)throw Error("failed to call initLogConstructor");return Oa.dev=new Pa(self,function(a){a=parseInt(a.log,10);return 3<=a?4:2<=a?3:0})}function y(a,b,c,d,e,g){return w().assert(a,b,c,d,e,g,void 0,void 0,void 0,void 0,void 0)};var Ra=Object.prototype.hasOwnProperty;function A(a){var b=Object.create(null);a&&Object.assign(b,a);return b}function C(a){return a||{}};function E(){var a,b;this.promise=new Promise(function(c,d){a=c;b=d});this.resolve=a;this.reject=b}function Sa(a){return new Promise(function(b){b(a())})};/* | |
| https://mths.be/cssescape v1.5.1 by @mathias | MIT license */ | |
| var Wa=/(\0)|^(-)$|([\x01-\x1f\x7f]|^-?[0-9])|([\x80-\uffff0-9a-zA-Z_-]+)|[^]/g;function Xa(a,b,c,d,e){return e?e:b?"\ufffd":d?a.slice(0,-1)+"\\"+a.slice(-1).charCodeAt(0).toString(16)+" ":"\\"+a};var Ya;function Za(a){try{var b=a.ownerDocument,c=b.createElement("div"),d=b.createElement("div");c.appendChild(d);return c.querySelector(":scope div")===d}catch(e){return!1}};function $a(a){return"loading"!=a.readyState&&"uninitialized"!=a.readyState}function ab(a){return"complete"==a.readyState}function bb(a,b){cb(a,$a,b)}function cb(a,b,c){var d=b(a);if(d)c(a);else{var e=function(){b(a)&&(d||(d=!0,c(a)),a.removeEventListener("readystatechange",e))};a.addEventListener("readystatechange",e)}}function db(a){return new Promise(function(b){bb(a,b)})}function eb(a){return new Promise(function(b){cb(a,ab,b)})};function fb(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}function gb(a,b){return b.length>a.length?!1:0==a.lastIndexOf(b,0)};function hb(a,b,c){if(b(a))c();else{var d=a.ownerDocument.defaultView;if(d.MutationObserver){var e=new d.MutationObserver(function(){b(a)&&(e.disconnect(),c())});e.observe(a,{childList:!0})}else var g=d.setInterval(function(){b(a)&&(d.clearInterval(g),c())},5)}}function ob(a,b){hb(a.documentElement,function(){return!!a.body},b)}function pb(a,b){bb(a,function(){return ob(a,b)})}function qb(a){return new Promise(function(b){return pb(a,b)})} | |
| function rb(a){var b=a.isConnected;if(void 0!==b)return b;do if(a=sb(a),a.host)a=a.host;else break;while(1);return a.nodeType===Node.DOCUMENT_NODE}function sb(a){if(Node.prototype.getRootNode)return a.getRootNode()||a;for(;a.parentNode;a=a.parentNode);return a}function tb(a,b){for(var c;a&&a!==c;a=a.parentElement)if(b(a))return a;return null}function ub(a,b){for(;a;a=a.parentNode)if(b(a))return a;return null}function vb(a,b){return a.closest?a.closest(b):tb(a,function(a){return wb(a,b)})} | |
| function xb(a,b){var c=[];for(a=a.firstElementChild;a;a=a.nextElementSibling)b(a)&&c.push(a);return c}function yb(a,b){for(a=a.lastElementChild;a;a=a.previousElementSibling)if(b(a))return a;return null}function zb(a,b){var c=[];for(a=a.firstChild;a;a=a.nextSibling)b(a)&&c.push(a);return c}function Ab(a,b){/^[\w-]+$/.test(b);return Jb(a,"> ["+b+"]")}function wb(a,b){var c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector;return c?c.call(a,b):!1} | |
| function Kb(a,b){var c="i-amphtml-scoped";a.classList.add(c);var d=b.replace(/^|,/g,"$&."+c+" "),e=a.querySelectorAll(d);a.classList.remove(c);return e}function Jb(a,b){if(void 0!==Ya?Ya:Ya=Za(a))return a.querySelector(b.replace(/^|,/g,"$&:scope "));var c=Kb(a,b);return void 0===c[0]?null:c[0]}function Lb(a,b,c,d){try{var e=a.open(b,c,d)}catch(g){x().error("DOM","Failed to open url on target: ",c,g)}e||"_top"==c||(e=a.open(b,"_top"));return e}function Mb(a){try{a.focus()}catch(b){}} | |
| function Nb(a){return a.parent&&a.parent!=a}var Ob=Node.DOCUMENT_POSITION_PRECEDING|Node.DOCUMENT_POSITION_CONTAINS;function Pb(a){var b=Object.create(null),c;for(c in a)if(Qb(a,c)){var d=a[c];b[c]=za(d)?Pb(d):d}return b}function Rb(a){return JSON.parse(a)}function Qb(a,b){return null==a||"object"!=typeof a?!1:Object.prototype.hasOwnProperty.call(a,b)};function Sb(a){return"undefined"!==typeof TextEncoder?(new TextEncoder("utf-8")).encode(a):Tb(unescape(encodeURIComponent(a)))}function Tb(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++){var d=a.charCodeAt(c);b[c]=d}return b}function Ub(a){for(var b=Array(a.length),c=0;c<a.length;c++)b[c]=String.fromCharCode(a[c]);return b.join("")};var Vb={document:1,text:2},Wb=["GET","POST"]; | |
| function Xb(a,b){b=void 0===b?{}:b;return new Promise(function(c,d){var e=Yb(b.method||"GET"),g=Zb(e,a);"include"==b.credentials&&(g.withCredentials=!0);b.responseType in Vb&&(g.responseType=b.responseType);b.headers&&Object.keys(b.headers).forEach(function(a){g.setRequestHeader(a,b.headers[a])});g.onreadystatechange=function(){2>g.readyState||(100>g.status||599<g.status?(g.onreadystatechange=null,d(w().createExpectedError("Unknown HTTP status "+g.status))):4==g.readyState&&c(new $b(g)))};g.onerror= | |
| function(){d(w().createExpectedError("Network failure"))};g.onabort=function(){d(w().createExpectedError("Request aborted"))};"POST"==e?g.send(b.body):g.send()})}function Zb(a,b){var c=new XMLHttpRequest;if("withCredentials"in c)c.open(a,b,!0);else throw x().createExpectedError("CORS is not supported");return c}function $b(a){this.Ya=a;this.status=this.Ya.status;this.statusText=this.Ya.statusText;this.ok=200<=this.status&&300>this.status;this.headers=new ac(a);this.bodyUsed=!1;this.body=null} | |
| $b.prototype.clone=function(){return new $b(this.Ya)};function bc(a){a.bodyUsed=!0;return Promise.resolve(a.Ya.responseText)}$b.prototype.text=function(){return bc(this)};$b.prototype.json=function(){return bc(this).then(Rb)};$b.prototype.arrayBuffer=function(){return bc(this).then(Sb)};function Yb(a){if(void 0===a)return"GET";a=a.toUpperCase();Wb.includes(a);return a}function ac(a){this.Ya=a}ac.prototype.get=function(a){return this.Ya.getResponseHeader(a)}; | |
| ac.prototype.has=function(a){return null!=this.Ya.getResponseHeader(a)}; | |
| function cc(a,b){b=void 0===b?{}:b;var c=A();a=Object.assign({status:200,statusText:"OK",responseText:a?String(a):"",getResponseHeader:function(a){var b=String(a).toLowerCase();return Ra.call(c,b)?c[b]:null}},b);a.status=void 0===b.status?200:parseInt(b.status,10);if(ya(b.headers))b.headers.forEach(function(a){var b=a[1];c[String(a[0]).toLowerCase()]=String(b)});else if(za(b.headers))for(var d in b.headers)c[String(d).toLowerCase()]=String(b.headers[d]);b.statusText&&(a.statusText=String(b.statusText)); | |
| $b.call(this,a)}ka(cc,$b);function G(a,b,c,d){return{left:a,top:b,width:c,height:d,bottom:b+d,right:a+c,x:a,y:b}}function dc(a){for(var b=-Infinity,c=Infinity,d=-Infinity,e=Infinity,g=0;g<arguments.length;g++){var h=arguments[g];if(h&&(b=Math.max(b,h.left),c=Math.min(c,h.left+h.width),d=Math.max(d,h.top),e=Math.min(e,h.top+h.height),c<b||e<d))return null}return Infinity==c?null:G(b,d,c-b,e-d)}function ec(a,b,c){return G(a.left-a.width*b,a.top-a.height*c,a.width*(1+2*b),a.height*(1+2*c))} | |
| function fc(a,b,c){return 0==b&&0==c||0==a.width&&0==a.height?a:G(a.left+b,a.top+c,a.width,a.height)};var gc=Element.prototype.getBoundingClientRect;function hc(){return rb(this)?gc.call(this):G(0,0,0,0)};function ic(a){return(a=Number(a))?0<a?1:-1:a};var jc=Object.prototype.hasOwnProperty;function kc(a,b){if(null==a)throw new TypeError("Cannot convert undefined or null to object");for(var c=Object(a),d=1;d<arguments.length;d++){var e=arguments[d];if(null!=e)for(var g in e)jc.call(e,g)&&(c[g]=e[g])}return c};function lc(a){return Object.keys(a).map(function(b){return a[b]})};function mc(a){if(!(this instanceof mc))throw new TypeError("Constructor Promise requires `new`");if(!nc(a))throw new TypeError("Must pass resolver function");this._state=oc;this._value=[];this._isChainEnd=!0;pc(this,qc(this,rc),qc(this,sc),{then:a})}mc.prototype.then=function(a,b){a=nc(a)?a:void 0;b=nc(b)?b:void 0;if(a||b)this._isChainEnd=!1;return this._state(this._value,a,b)};mc.prototype.catch=function(a){return this.then(void 0,a)}; | |
| function tc(a){var b=this;return a===Object(a)&&a instanceof this?a:new b(function(b){b(a)})}function uc(a){return new this(function(b,c){c(a)})}function vc(a){var b=this;return new b(function(c,d){var e=a.length,g=Array(e);if(0===e)return c(g);wc(a,function(a,k){b.resolve(a).then(function(a){g[k]=a;0===--e&&c(g)},d)})})}function xc(a){var b=this;return new b(function(c,d){for(var e=0;e<a.length;e++)b.resolve(a[e]).then(c,d)})} | |
| function rc(a,b,c,d){if(!b)return d&&(b=d.promise,b._state=rc,b._value=a),this;d||(d=new yc(this.constructor));Oc(Pc(d,b,a));return d.promise}function sc(a,b,c,d){if(!c)return d&&(b=d.promise,b._state=sc,b._value=a),this;d||(d=new yc(this.constructor));Oc(Pc(d,c,a));return d.promise}function oc(a,b,c,d){if(!d){if(!b&&!c)return this;d=new yc(this.constructor)}a.push({deferred:d,onFulfilled:b||d.resolve,onRejected:c||d.reject});return d.promise} | |
| function yc(a){var b=this;this.promise=new a(function(a,d){b.resolve=a;b.reject=d});return b}function Qc(a,b,c,d){var e=a._value;a._state=b;a._value=c;d&&b===oc&&d._state(c,void 0,void 0,{promise:a,resolve:void 0,reject:void 0});for(var g=0;g<e.length;g++){var h=e[g];a._state(c,h.onFulfilled,h.onRejected,h.deferred)}e.length=0;b===sc&&a._isChainEnd&&setTimeout(function(){if(a._isChainEnd)throw c;},0)}function qc(a,b){return function(c){Qc(a,b,c)}}function Rc(){} | |
| function nc(a){return"function"===typeof a}function wc(a,b){for(var c=0;c<a.length;c++)b(a[c],c)}function Pc(a,b,c){var d=a.promise,e=a.resolve,g=a.reject;return function(){try{var a=b(c);pc(d,e,g,a,a)}catch(k){g(k)}}} | |
| var Oc=function(){function a(){for(var a=0;a<e;a++){var b=d[a];d[a]=null;b()}e=0}function b(a){0===e&&c();d[e++]=a}if("undefined"!==typeof window&&window.postMessage){window.addEventListener("message",a);var c=function(){window.postMessage("macro-task","*")}}else c=function(){setTimeout(a,0)};var d=Array(16),e=0;return b}(); | |
| function pc(a,b,c,d,e){var g=c,h;try{if(d===a)throw new TypeError("Cannot fulfill promise with itself");var k=d===Object(d);if(k&&d instanceof a.constructor)Qc(a,d._state,d._value,d);else if(k&&(h=d.then)&&nc(h)){var l=function(d){l=g=Rc;pc(a,b,c,d,d)};g=function(a){l=g=Rc;c(a)};h.call(e,function(a){l(a)},function(a){g(a)})}else b(d)}catch(m){g(m)}};/* | |
| Copyright (C) 2014-2016 by Andrea Giammarchi - @WebReflection | |
| Use of this source code is governed by a MIT-style | |
| license that can be found in the LICENSE file or at | |
| https://opensource.org/licenses/MIT. | |
| */ | |
| function Sc(a){function b(a){return a.toLowerCase()}var c="auto";function d(){var a=zc.splice(0,zc.length);for(Ac=0;a.length;)a.shift().call(null,a.shift())}function e(a,b){for(var c=0,d=a.length;c<d;c++)J(a[c],b)}function g(a){for(var b=0,c=a.length,d;b<c;b++)d=a[b],Cc(d,Bb[k(d)])}function h(a){return function(b){fk(b)&&(J(b,a),ia.length&&e(b.querySelectorAll(ia),a))}}function k(a){var b=ib.call(a,"is"),c=a.nodeName.toUpperCase();a=ta.call(Ta,b?Dc+b.toUpperCase():Cb+c);return b&&-1<a&&!l(c,b)?-1: | |
| a}function l(a,b){return-1<ia.indexOf(a+'[is="'+b+'"]')}function m(a){var b=a.currentTarget,c=a.attrChange,d=a.attrName,e=a.target,g=a[Ec]||2,h=a[Hd]||3;if(Fc&&(!e||e===b)&&b[Ja]&&"style"!==d&&(a.prevValue!==a.newValue||""===a.newValue&&(c===g||c===h)))b[Ja](d,c===g?null:a.prevValue,c===h?null:a.newValue)}function n(a){var b=h(a);return function(a){zc.push(b,a.target);Ac&&clearTimeout(Ac);Ac=setTimeout(d,1)}}function p(a){Uf&&(Uf=!1,a.currentTarget.removeEventListener(Vf,p));ia.length&&e((a.target|| | |
| z).querySelectorAll(ia),a.detail===ua?ua:la);jb&&v()}function t(a,b){Wf.call(this,a,b);Xf.call(this,{target:this})}function u(a,b){gk(a,b);Gc?Gc.observe(a,hk):(Hc&&(a.setAttribute=t,a[fa]=Yf(a),a[ga](ik,Xf)),a[ga](Ua,m));a[Db]&&Fc&&(a.created=!0,a[Db](),a.created=!1)}function v(){for(var a,b=0,c=Eb.length;b<c;b++)a=Eb[b],kb.contains(a)||(c--,Eb.splice(b--,1),J(a,ua))}function D(a){throw Error("A "+a+" type is already registered");}function J(a,b){var c,d=k(a);-1<d&&(Zf(a,Bb[d]),d=0,b!==la||a[la]? | |
| b!==ua||a[ua]||(a[la]=!1,a[ua]=!0,d=1):(a[ua]=!1,a[la]=!0,d=1,jb&&0>ta.call(Eb,a)&&Eb.push(a)),d&&(c=a[b+Va])&&c.call(a))}function N(){}function O(a,c,d){d=d&&d[Fb]||"";var e=c.prototype,g=Id(e),h=c.observedAttributes||Jd,k={prototype:g};Ic(g,Db,{value:function(){if(Jc)Jc=!1;else if(!this[Gb]){this[Gb]=!0;new c(this);e[Db]&&e[Db].call(this);var a=Hb[Kc.get(c)];(!lb||1<a.create.length)&&B(this)}}});Ic(g,Ja,{value:function(a){-1<ta.call(h,a)&&e[Ja].apply(this,arguments)}});e[$f]&&Ic(g,jk,{value:e[$f]}); | |
| e[ag]&&Ic(g,kk,{value:e[ag]});d&&(k[Fb]=d);a=a.toUpperCase();Hb[a]={constructor:c,create:d?[d,b(a)]:[a]};Kc.set(c,a);z[F](a.toLowerCase(),k);S(a);mb[a].r()}function Z(a){return(a=Hb[a.toUpperCase()])&&a.constructor}function H(a){return"string"===typeof a?a:a&&a.is||""}function B(a){for(var b=a[Ja],c=b?a.attributes:Jd,d=c.length,e;d--;)e=c[d],b.call(a,e.name||e.nodeName,null,e.value||e.nodeValue)}function S(a){a=a.toUpperCase();a in mb||(mb[a]={},mb[a].p=new bg(function(b){mb[a].r=b}));return mb[a].p} | |
| function Ka(){function c(b){var c=a[b];if(c){a[b]=function(a){var b;a||(a=this);a[Gb]||(Jc=!0,a=Hb[Kc.get(a.constructor)],a=(b=lb&&1===a.create.length)?Reflect.construct(c,Jd,a.constructor):z.createElement.apply(z,a.create),a[Gb]=!0,Jc=!1,b||B(a));return a};a[b].prototype=c.prototype;try{c.prototype.constructor=a[b]}catch(An){nb(c,Gb,{value:a[b]})}}}Ba&&delete a.customElements;nb(a,"customElements",{configurable:!0,value:new N});nb(a,"CustomElementRegistry",{configurable:!0,value:N});for(var d=Lc.get(/^HTML[A-Z]*[a-z]/), | |
| e=d.length;e--;c(d[e]));z.createElement=function(a,c){return(c=H(c))?Kd.call(this,a,b(c)):Kd.call(this,a)};cg||(Ld=!0,z[F](""))}var z=a.document,Q=a.Object,Lc=function(a){function b(a,b){b=b.toLowerCase();b in e||(e[a]=(e[a]||[]).concat(b),e[b]=e[b.toUpperCase()]=a)}function c(a){var b=[],c;for(c in e)a.test(c)&&b.push(c);return b}var d=/^[A-Z]+[a-z]/,e=(Q.create||Q)(null),g={},h,k,l;for(k in a)for(l in a[k]){var m=a[k][l];e[l]=m;for(h=0;h<m.length;h++)e[m[h].toLowerCase()]=e[m[h].toUpperCase()]= | |
| l}g.get=function(a){return"string"===typeof a?e[a]||(d.test(a)?[]:""):c(a)};g.set=function(a,c){return d.test(a)?b(a,c):b(c,a),g};return g}({collections:{HTMLAllCollection:["all"],HTMLCollection:["forms"],HTMLFormControlsCollection:["elements"],HTMLOptionsCollection:["options"]},elements:{Element:["element"],HTMLAnchorElement:["a"],HTMLAppletElement:["applet"],HTMLAreaElement:["area"],HTMLAttachmentElement:["attachment"],HTMLAudioElement:["audio"],HTMLBRElement:["br"],HTMLBaseElement:["base"],HTMLBodyElement:["body"], | |
| HTMLButtonElement:["button"],HTMLCanvasElement:["canvas"],HTMLContentElement:["content"],HTMLDListElement:["dl"],HTMLDataElement:["data"],HTMLDataListElement:["datalist"],HTMLDetailsElement:["details"],HTMLDialogElement:["dialog"],HTMLDirectoryElement:["dir"],HTMLDivElement:["div"],HTMLDocument:["document"],HTMLElement:"element abbr address article aside b bdi bdo cite code command dd dfn dt em figcaption figure footer header i kbd mark nav noscript rp rt ruby s samp section small strong sub summary sup u var wbr".split(" "), | |
| HTMLEmbedElement:["embed"],HTMLFieldSetElement:["fieldset"],HTMLFontElement:["font"],HTMLFormElement:["form"],HTMLFrameElement:["frame"],HTMLFrameSetElement:["frameset"],HTMLHRElement:["hr"],HTMLHeadElement:["head"],HTMLHeadingElement:"h1 h2 h3 h4 h5 h6".split(" "),HTMLHtmlElement:["html"],HTMLIFrameElement:["iframe"],HTMLImageElement:["img"],HTMLInputElement:["input"],HTMLKeygenElement:["keygen"],HTMLLIElement:["li"],HTMLLabelElement:["label"],HTMLLegendElement:["legend"],HTMLLinkElement:["link"], | |
| HTMLMapElement:["map"],HTMLMarqueeElement:["marquee"],HTMLMediaElement:["media"],HTMLMenuElement:["menu"],HTMLMenuItemElement:["menuitem"],HTMLMetaElement:["meta"],HTMLMeterElement:["meter"],HTMLModElement:["del","ins"],HTMLOListElement:["ol"],HTMLObjectElement:["object"],HTMLOptGroupElement:["optgroup"],HTMLOptionElement:["option"],HTMLOutputElement:["output"],HTMLParagraphElement:["p"],HTMLParamElement:["param"],HTMLPictureElement:["picture"],HTMLPreElement:["pre"],HTMLProgressElement:["progress"], | |
| HTMLQuoteElement:["blockquote","q","quote"],HTMLScriptElement:["script"],HTMLSelectElement:["select"],HTMLShadowElement:["shadow"],HTMLSlotElement:["slot"],HTMLSourceElement:["source"],HTMLSpanElement:["span"],HTMLStyleElement:["style"],HTMLTableCaptionElement:["caption"],HTMLTableCellElement:["td","th"],HTMLTableColElement:["col","colgroup"],HTMLTableElement:["table"],HTMLTableRowElement:["tr"],HTMLTableSectionElement:["thead","tbody","tfoot"],HTMLTemplateElement:["template"],HTMLTextAreaElement:["textarea"], | |
| HTMLTimeElement:["time"],HTMLTitleElement:["title"],HTMLTrackElement:["track"],HTMLUListElement:["ul"],HTMLUnknownElement:["unknown","vhgroupv","vkeygen"],HTMLVideoElement:["video"]},nodes:{Attr:["node"],Audio:["audio"],CDATASection:["node"],CharacterData:["node"],Comment:["#comment"],Document:["#document"],DocumentFragment:["#document-fragment"],DocumentType:["node"],HTMLDocument:["#document"],Image:["img"],Option:["option"],ProcessingInstruction:["node"],ShadowRoot:["#shadow-root"],Text:["#text"], | |
| XMLDocument:["xml"]}});c||(c="auto");var F="registerElement",fa="__"+F+(1E5*a.Math.random()>>0),ga="addEventListener",la="attached",Va="Callback",ua="detached",Fb="extends",Ja="attributeChanged"+Va,jk=la+Va,$f="connected"+Va,ag="disconnected"+Va,Db="created"+Va,kk=ua+Va,Ec="ADDITION",Md="MODIFICATION",Hd="REMOVAL",Ua="DOMAttrModified",Vf="DOMContentLoaded",ik="DOMSubtreeModified",Cb="<",Dc="=",lk=/^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+$/,mk="ANNOTATION-XML COLOR-PROFILE FONT-FACE FONT-FACE-SRC FONT-FACE-URI FONT-FACE-FORMAT FONT-FACE-NAME MISSING-GLYPH".split(" "), | |
| Ta=[],Bb=[],ia="",kb=z.documentElement,ta=Ta.indexOf||function(a){for(var b=this.length;b--&&this[b]!==a;);return b},Nd=Q.prototype,Od=Nd.hasOwnProperty,Mc=Nd.isPrototypeOf,nb=Q.defineProperty,Jd=[],Pd=Q.getOwnPropertyDescriptor,dg=Q.getOwnPropertyNames,nk=Q.getPrototypeOf,eg=Q.setPrototypeOf,fg=!!Q.__proto__,Gb="__dreCEv1",Ba=a.customElements,lb="force"!==c&&!!(Ba&&Ba.define&&Ba.get&&Ba.whenDefined),gg=Q.create||Q,ok=a.Map||function(){var a=[],b=[],c;return{get:function(c){return b[ta.call(a,c)]}, | |
| set:function(d,e){c=ta.call(a,d);0>c?b[a.push(d)-1]=e:b[c]=e}}},bg=a.Promise||function(a){function b(a){for(d=!0;c.length;)c.shift()(a)}var c=[],d=!1,e={"catch":function(){return e},then:function(a){c.push(a);d&&setTimeout(b,1);return e}};a(b);return e},Jc=!1,Hb=gg(null),mb=gg(null),Kc=new ok,Id=Q.create||function Bc(a){return a?(Bc.prototype=a,new Bc):this},gk=eg||(fg?function(a,b){a.__proto__=b;return a}:dg&&Pd?function(){function a(a,b){for(var c,d=dg(b),e=0,g=d.length;e<g;e++)c=d[e],Od.call(a, | |
| c)||nb(a,c,Pd(b,c))}return function(b,c){do a(b,c);while((c=nk(c))&&!Mc.call(c,b));return b}}():function(a,b){for(var c in b)a[c]=b[c];return a}),Ib=a.MutationObserver||a.WebKitMutationObserver,aa=(a.HTMLElement||a.Element||a.Node).prototype,jb=!Mc.call(aa,kb),Ic=jb?function(a,b,c){a[b]=c.value;return a}:nb,fk=jb?function(a){return 1===a.nodeType}:function(a){return Mc.call(aa,a)},Eb=jb&&[],hg=aa.attachShadow,pk=aa.cloneNode,Qd=aa.dispatchEvent,ib=aa.getAttribute,qk=aa.hasAttribute,rk=aa.removeAttribute, | |
| Wf=aa.setAttribute,Nc=z.createElement,Kd=Nc,hk=Ib&&{attributes:!0,characterData:!0,attributeOldValue:!0},ig=Ib||function(){Hc=!1;kb.removeEventListener(Ua,ig)},zc,Ac=0,cg=F in z,jg=!0,Ld=!1,Hc=!0,Uf=!0,Fc=!0,Gc,Rd;if(!cg){if(eg||fg){var Zf=function(a,b){Mc.call(b,a)||u(a,b)};var Cc=u}else Cc=Zf=function(a,b){a[fa]||(a[fa]=Q(!0),u(a,b))};if(jb)Hc=!1,function(){function a(a){var b=a.currentTarget,c=b[fa];a=a.propertyName;if(c.hasOwnProperty(a)){c=c[a];var d=new CustomEvent(Ua,{bubbles:!0});d.attrName= | |
| c.name;d.prevValue=c.value||null;d.newValue=c.value=b[a]||null;null==d.prevValue?d[Ec]=d.attrChange=0:d[Md]=d.attrChange=1;Qd.call(b,d)}}function b(a,b){var c=qk.call(this,a),d=c&&ib.call(this,a),e=new CustomEvent(Ua,{bubbles:!0});Wf.call(this,a,b);e.attrName=a;e.prevValue=c?d:null;e.newValue=b;c?e[Md]=e.attrChange=1:e[Ec]=e.attrChange=0;Qd.call(this,e)}function c(a){var b=new CustomEvent(Ua,{bubbles:!0});b.attrName=a;b.prevValue=ib.call(this,a);b.newValue=null;b[Hd]=b.attrChange=2;rk.call(this,a); | |
| Qd.call(this,b)}var d=Pd(aa,ga),e=d.value;d.value=function(d,g,h){d===Ua&&this[Ja]&&this.setAttribute!==b&&(this[fa]={className:{name:"class",value:this.className}},this.setAttribute=b,this.removeAttribute=c,e.call(this,"propertychange",a));e.call(this,d,g,h)};nb(aa,ga,d)}();else if(!Ib&&(kb[ga](Ua,ig),kb.setAttribute(fa,1),kb.removeAttribute(fa),Hc)){var Xf=function(a){var b,c;if(this===a.target){var d=this[fa];this[fa]=b=Yf(this);for(c in b){if(!(c in d))return Sd(0,this,c,d[c],b[c],Ec);if(b[c]!== | |
| d[c])return Sd(1,this,c,d[c],b[c],Md)}for(c in d)if(!(c in b))return Sd(2,this,c,d[c],b[c],Hd)}};var Sd=function(a,b,c,d,e,g){c={attrChange:a,currentTarget:b,attrName:c,prevValue:d,newValue:e};c[g]=a;m(c)};var Yf=function(a){for(var b,c={},d=a.attributes,e=0,g=d.length;e<g;e++)a=d[e],b=a.name,"setAttribute"!==b&&(c[b]=a.value);return c}}z[F]=function(a,b){function c(){return m?z.createElement(t,d):z.createElement(t)}var d=a.toUpperCase();jg&&(jg=!1,Ib?(Gc=function(a,b){function c(a,b){for(var c=0, | |
| d=a.length;c<d;b(a[c++]));}return new Ib(function(d){for(var e,g,h,k=0,l=d.length;k<l;k++)if(e=d[k],"childList"===e.type)c(e.addedNodes,a),c(e.removedNodes,b);else if(g=e.target,Fc&&g[Ja]&&"style"!==e.attributeName&&(h=ib.call(g,e.attributeName),h!==e.oldValue))g[Ja](e.attributeName,e.oldValue,h)})}(h(la),h(ua)),Rd=function(a){Gc.observe(a,{childList:!0,subtree:!0});return a},Rd(z),hg&&(aa.attachShadow=function(){return Rd(hg.apply(this,arguments))})):(zc=[],z[ga]("DOMNodeInserted",n(la)),z[ga]("DOMNodeRemoved", | |
| n(ua))),z[ga](Vf,p),z[ga]("readystatechange",p),aa.cloneNode=function(a){var b=pk.call(this,!!a),c=k(b);-1<c&&Cc(b,Bb[c]);a&&ia.length&&g(b.querySelectorAll(ia));return b});if(Ld)return Ld=!1;-2<ta.call(Ta,Dc+d)+ta.call(Ta,Cb+d)&&D(a);if(!lk.test(d)||-1<ta.call(mk,d))throw Error("The type "+a+" is invalid");var l=b||Nd,m=Od.call(l,Fb),t=m?b[Fb].toUpperCase():d;m&&-1<ta.call(Ta,Cb+t)&&D(t);b=Ta.push((m?Dc:Cb)+d)-1;ia=ia.concat(ia.length?",":"",m?t+'[is="'+a.toLowerCase()+'"]':t);c.prototype=Bb[b]= | |
| Od.call(l,"prototype")?l.prototype:Id(aa);ia.length&&e(z.querySelectorAll(ia),la);return c};z.createElement=Kd=function(a,c){var d=H(c),e=d?Nc.call(z,a,b(d)):Nc.call(z,a);a=""+a;var g=ta.call(Ta,(d?Dc:Cb)+(d||a).toUpperCase()),h=-1<g;d&&(e.setAttribute("is",d=d.toLowerCase()),h&&(h=l(a.toUpperCase(),d)));Fc=!z.createElement.innerHTMLHelper;h&&Cc(e,Bb[g]);return e}}N.prototype={constructor:N,define:lb?function(a,b,c){if(c)O(a,b,c);else{var d=a.toUpperCase();Hb[d]={constructor:b,create:[d]};Kc.set(b, | |
| d);Ba.define(a,b)}}:O,get:lb?function(a){return Ba.get(a)||Z(a)}:Z,whenDefined:lb?function(a){return bg.race([Ba.whenDefined(a),S(a)])}:S};if(Ba&&"force"!==c)try{(function(b,c,d){c[Fb]="a";b.prototype=Id(HTMLAnchorElement.prototype);b.prototype.constructor=b;a.customElements.define(d,b,c);if(ib.call(z.createElement("a",{is:d}),"is")!==d||lb&&ib.call(new b,"is")!==d)throw c;})(function Bc(){return Reflect.construct(HTMLAnchorElement,[],Bc)},{},"document-register-element-a")}catch(ek){Ka()}else Ka(); | |
| try{Nc.call(z,"a","a")}catch(ek){b=function(a){return{is:a.toLowerCase()}}}};function Tc(){var a=100;this.Eg=a;this.$c=this.V=0;this.$a=Object.create(null)}Tc.prototype.has=function(a){return!!this.$a[a]};Tc.prototype.get=function(a){var b=this.$a[a];if(b)return b.access=++this.$c,b.payload};Tc.prototype.put=function(a,b){this.has(a)||this.V++;this.$a[a]={payload:b,access:this.$c};if(!(this.V<=this.Eg)){x().warn("lru-cache","Trimming LRU cache");a=this.$a;var c=this.$c+1,d;for(d in a){var e=a[d].access;if(e<c){c=e;var g=d}}void 0!==g&&(delete a[g],this.V--)}};var Uc=self.AMP_CONFIG||{},Vc={thirdParty:Uc.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:Uc.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:("string"==typeof Uc.thirdPartyFrameRegex?new RegExp(Uc.thirdPartyFrameRegex):Uc.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,cdn:Uc.cdnUrl||"https://cdn.ampproject.org",cdnProxyRegex:("string"==typeof Uc.cdnProxyRegex?new RegExp(Uc.cdnProxyRegex):Uc.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/,localhostRegex:/^https?:\/\/localhost(:\d+)?$/, | |
| errorReporting:Uc.errorReportingUrl||"https://amp-error-reporting.appspot.com/r",localDev:Uc.localDev||!1},Wc={urls:Vc};var Xc=C({c:!0,v:!0,a:!0,ad:!0,action:!0}),Yc,Zc,$c=/[?&]amp_js[^&]*/,ad=/[?&]amp_gsa[^&]*/,bd=/[?&]amp_r[^&]*/,cd=/[?&]amp_kit[^&]*/,dd=/[?&]usqp[^&]*/,ed=["javascript:","data:","vbscript:"];function I(a,b){Yc||(Yc=self.document.createElement("a"),Zc=self.UrlCache||(self.UrlCache=new Tc));return fd(Yc,a,b?null:Zc)} | |
| function fd(a,b,c){if(c&&c.has(b))return c.get(b);a.href=b;a.protocol||(a.href=a.href);var d={href:a.href,protocol:a.protocol,host:a.host,hostname:a.hostname,port:"0"==a.port?"":a.port,pathname:a.pathname,search:a.search,hash:a.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=a.origin&&"null"!=a.origin?a.origin:"data:"!=d.protocol&&d.host?d.protocol+"//"+d.host:d.href;var e= | |
| d;c&&c.put(b,e);return e}function gd(a,b,c){if(!b)return a;var d=a.split("#",2),e=d[0].split("?",2),g=e[0]+(e[1]?c?"?"+b+"&"+e[1]:"?"+e[1]+"&"+b:"?"+b);return g+=d[1]?"#"+d[1]:""}function hd(a,b){return gd(a,id(b))}function id(a){var b=[],c;for(c in a){var d=a[c];if(null!=d)if(ya(d))for(var e=0;e<d.length;e++){var g=d[e];b.push(encodeURIComponent(c)+"="+encodeURIComponent(g))}else b.push(encodeURIComponent(c)+"="+encodeURIComponent(d))}return b.join("&")} | |
| function jd(a){"string"==typeof a&&(a=I(a));return"https:"==a.protocol||"localhost"==a.hostname||fb(a.hostname,".localhost")}function kd(a,b,c){c=void 0===c?"source":c;y(null!=a,"%s %s must be available",b,c);var d=a;y(jd(d)||/^(\/\/)/.test(d),'%s %s must start with "https://" or "//" or be relative and served from either https or from localhost. Invalid value: %s',b,c,d);return d}function ld(a){var b=a.indexOf("#");return-1==b?a:a.substring(0,b)} | |
| function md(a){"string"==typeof a&&(a=I(a));return Vc.cdnProxyRegex.test(a.origin)}function nd(a){if(!a)return!0;"string"==typeof a&&(a=I(a));return!ed.includes(a.protocol)}function od(a){var b=I(a),c=pd(b.search);return b.origin+b.pathname+c+b.hash}function pd(a){if(!a||"?"==a)return"";var b=a.replace($c,"").replace(ad,"").replace(bd,"").replace(cd,"").replace(dd,"").replace(/^[?&]/,"");return b?"?"+b:""} | |
| function qd(a){"string"==typeof a&&(a=I(a));if(!md(a))return a.href;var b=a.pathname.split("/");y(Xc[b[1]],"Unknown path prefix in url %s",a.href);var c=b[2],d="s"==c?"https://"+decodeURIComponent(b[3]):"http://"+decodeURIComponent(c);y(0<d.indexOf("."),"Expected a . in origin %s",d);b.splice(1,"s"==c?3:2);return d+b.join("/")+pd(a.search)+(a.hash||"")}function rd(a){return I(qd(a)).origin} | |
| function sd(a,b){td(b);var c=rd(a.location.href);a=encodeURIComponent("__amp_source_origin")+"="+encodeURIComponent(c);return gd(b,a,void 0)}function td(a){var b=I(a),c=q(b.search);y(!("__amp_source_origin"in c),"Source origin is not allowed in %s",a)};function ud(a,b){try{var c=a.document.cookie}catch(k){c=""}var d=c;if(!d)return null;var e=d.split(";");for(a=0;a<e.length;a++){var g=e[a].trim(),h=g.indexOf("=");if(-1!=h&&na(g.substring(0,h).trim(),void 0)==b)return b=g.substring(h+1).trim(),na(b,b)}return null} | |
| function vd(a,b,c,d,e){if(!e||!e.allowOnProxyOrigin){if(md(a.location.href))throw Error("Should never attempt to set cookie on proxy origin: "+b);var g=I(a.location.href).hostname.toLowerCase(),h=I(Vc.cdn).hostname.toLowerCase();if(g==h||fb(g,"."+h))throw Error("Should never attempt to set cookie on proxy origin. (in depth check): "+b);}if(e&&e.highestAvailableDomain){g=a.location.hostname.split(".");h=g[g.length-1];for(var k=g.length-2;0<=k;k--)if(h=g[k]+"."+h,wd(a,b,c,d,h),ud(a,b)==c)return}g=void 0; | |
| e&&e.domain&&(g=e.domain);wd(a,b,c,d,g)}function wd(a,b,c,d,e){"ampproject.org"==e&&(c="delete",d=0);b=encodeURIComponent(b)+"="+encodeURIComponent(c)+"; path=/"+(e?"; domain="+e:"")+"; expires="+(new Date(d)).toUTCString();try{a.document.cookie=b}catch(g){}};function xd(a){return!(!a.AMP_CONFIG||!a.AMP_CONFIG.canary)}function K(a,b){var c=yd(a);return!!c[b]}function zd(a,b,c,d){var e=K(a,b),g=!(void 0!==c?!c:e);if(g!=e&&(yd(a)[b]=g,!d)){var h=Ad(a);h[b]=g;b=h;var k=[],l;for(l in b)k.push((!1===b[l]?"-":"")+l);vd(a,"AMP_EXP",k.join(","),Date.now()+15552E6,{domain:a.location.hostname,allowOnProxyOrigin:!0})}return g} | |
| function yd(a){if(a.__AMP__EXPERIMENT_TOGGLES)return a.__AMP__EXPERIMENT_TOGGLES;a.__AMP__EXPERIMENT_TOGGLES=Object.create(null);var b=a.__AMP__EXPERIMENT_TOGGLES;if(a.AMP_CONFIG)for(var c in a.AMP_CONFIG){var d=a.AMP_CONFIG[c];"number"===typeof d&&0<=d&&1>=d&&(b[c]=Math.random()<d)}if(a.AMP_CONFIG&&Array.isArray(a.AMP_CONFIG["allow-doc-opt-in"])&&0<a.AMP_CONFIG["allow-doc-opt-in"].length){var e=a.AMP_CONFIG["allow-doc-opt-in"],g=a.document.head.querySelector('meta[name="amp-experiments-opt-in"]'); | |
| if(g){var h=g.getAttribute("content").split(",");for(c=0;c<h.length;c++)-1!=e.indexOf(h[c])&&(b[h[c]]=!0)}}Object.assign(b,Ad(a));if(a.AMP_CONFIG&&Array.isArray(a.AMP_CONFIG["allow-url-opt-in"])&&0<a.AMP_CONFIG["allow-url-opt-in"].length){c=a.AMP_CONFIG["allow-url-opt-in"];a=q(a.location.originalHash||a.location.hash);for(var k=0;k<c.length;k++){var l=a["e-"+c[k]];"1"==l&&(b[c[k]]=!0);"0"==l&&(b[c[k]]=!1)}}return b} | |
| function Ad(a){var b=ud(a,"AMP_EXP"),c=b?b.split(/\s*,\s*/g):[];a=Object.create(null);for(var d=0;d<c.length;d++)0!=c[d].length&&("-"==c[d][0]?a[c[d].substr(1)]=!1:a[c[d]]=!0);return a};sa(self);(function(a){a.fetch||(Object.defineProperty(a,"fetch",{value:Xb,writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(a,"Response",{value:cc,writable:!0,enumerable:!1,configurable:!0}))})(self);(function(a){a.Math.sign||a.Object.defineProperty(a.Math,"sign",{enumerable:!1,configurable:!0,writable:!0,value:ic})})(self);(function(a){a.Object.assign||a.Object.defineProperty(a.Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:kc})})(self); | |
| (function(a){a.Object.values||a.Object.defineProperty(a.Object,"values",{configurable:!0,writable:!0,value:lc})})(self);(function(a){a.Promise||(a.Promise=mc,mc.default&&(a.Promise=mc.default),a.Promise.resolve=tc,a.Promise.reject=uc,a.Promise.all=vc,a.Promise.race=xc)})(self);wa(self);(function(a){a.Array.prototype.includes||a.Object.defineProperty(Array.prototype,"includes",{enumerable:!1,configurable:!0,writable:!0,value:qa})})(self); | |
| (function(a){try{var b=0!==a.document.createElement("div").getBoundingClientRect().top}catch(c){b=!0}b&&a.Object.defineProperty(a.Element.prototype,"getBoundingClientRect",{value:hc})})(self);Sc(self);function Bd(a,b){var c,d=a.ownerDocument.defaultView,e=d!=Cd(d);if(e){if(Dd(d,b)){var g=Ed(d,b);if(g)return g}if(!c)return null}a=Fd(a);a=Gd(a);return Dd(a,b)?Ed(a,b):null}function Td(a,b,c){Cd(a);Dd(a,b);Ud(a,a,b,function(){return c});Ed(a,b)}function L(a,b,c){var d;a=Cd(a);Ud(a,a,b,c);d&&Ed(a,b)}function M(a,b,c,d){var e=Fd(a),g=Gd(e);Ud(g,e,b,c);d&&Ed(g,b)}function P(a,b){a=Cd(a);return Ed(a,b)}function Vd(a){a=Cd(a);return Dd(a,"performance")?Ed(a,"performance"):null} | |
| function R(a,b){var c=Fd(a);c=Gd(c);return Ed(c,b)}function Wd(a,b){return Xd(Gd(a),b)}function Yd(a,b){return Zd(Gd(a),b)}function $d(a,b){a.__AMP_PARENT=b;a.__AMP_TOP=Cd(b)}function Cd(a){return a.__AMP_TOP||a}function ae(a,b){var c=(a.ownerDocument||a).defaultView;if(c&&c!=b&&Cd(c)==b)try{return c.frameElement}catch(d){}return null}function Fd(a){return a.nodeType?P((a.ownerDocument||a).defaultView,"ampdoc").getAmpDoc(a):a}function Gd(a){a=Fd(a);return a.isSingleDoc()?a.win:a} | |
| function Ed(a,b){Dd(a,b);var c=be(a);a=c[b];a.obj||(a.obj=new a.ctor(a.context),a.ctor=null,a.context=null,a.resolve&&a.resolve(a.obj));return a.obj}function Ud(a,b,c,d){var e=be(a),g=e[c];g||(g=e[c]={obj:null,promise:null,resolve:null,reject:null,context:null,ctor:null});g.ctor||g.obj||(g.ctor=d,g.context=b,g.resolve&&Ed(a,c))}function Xd(a,b){var c=Zd(a,b);if(c)return c;a=be(a);a[b]=ce();return a[b].promise} | |
| function Zd(a,b){var c=be(a)[b];if(c){if(c.promise)return c.promise;Ed(a,b);return c.promise=Promise.resolve(c.obj)}return null}function be(a){var b=a.services;b||(b=a.services={});return b}function Dd(a,b){a=a.services&&a.services[b];return!(!a||!a.ctor&&!a.obj)}function ce(){var a=new E,b=a.promise,c=a.resolve;a=a.reject;b.catch(function(){});return{obj:null,promise:b,resolve:c,reject:a,context:null,ctor:null}};function de(a,b,c){var d=Zd(a,b);return d?d:ee(a,b,c,!0)}function fe(a,b,c){return ge(a,b,c,void 0).then(function(a){return y(a,"Service %s was requested to be provided through %s, but %s is not loaded in the current page. To fix this problem load the JavaScript file for %s in this page.",b,c,c,c)})} | |
| function ge(a,b,c,d){var e=Yd(a,b);if(e)return e;var g=Fd(a);return g.whenBodyAvailable().then(function(){return he(g.win,c,g.win.document.head)}).then(function(){if(d)var e=Yd(a,b);else e=g.win,e=e.ampExtendedElements&&e.ampExtendedElements[c]?Wd(a,b):null;return e})}function ie(a){var b=Bd(a,"bind");if(b)return Promise.resolve(b);b=a.ownerDocument.defaultView;var c=Cd(b);return b!==c?ee(b,"bind","amp-bind"):ge(a,"bind","amp-bind")} | |
| function je(a){if(!a)return[];for(var b=[],c=a.querySelectorAll("script[custom-element]"),d=0;d<c.length;d++)b.push(c[d].getAttribute("custom-element"));return b}function ke(a){var b="amp-form";return a.whenBodyAvailable().then(function(){var c=a.getHeadNode(),d=b;return je(c).includes(d)})}function he(a,b,c){if(!je(c).includes(b))return Promise.resolve();var d=P(a,"extensions");return d.waitForExtension(a,b)} | |
| function ee(a,b,c,d){return qb(a.document).then(function(){return he(a,c,a.document.head)}).then(function(){return d?Zd(a,b):a.ampExtendedElements&&a.ampExtendedElements[c]?Xd(a,b):null})};function le(a){return P(a,"ampdoc")}function T(a){return R(a,"documentInfo").get()}function me(a){return P(a,"extensions")}function ne(a){return P(a,"performance")}function oe(a){return P(a,"platform")}function pe(a){return R(a,"resources")}function U(a){return P(a,"timer")}function V(a){return R(a,"viewer")}function qe(a){return P(a,"vsync")}function re(a){return R(a,"viewport")};var se;function te(a){a=a.ownerDocument||a;se&&se.ownerDocument===a||(se=a.createElement("div"));return ue}function ue(a){se.innerHTML=a[0];var b=se.firstElementChild;se.removeChild(b);return b};var ve,we="Webkit webkit Moz moz ms O o".split(" ");function xe(a,b,c){if(gb(b,"--"))return b;ve||(ve=A());var d=ve[b];if(!d||c){d=b;if(void 0===a[b]){var e=b.charAt(0).toUpperCase()+b.slice(1);a:{for(var g=0;g<we.length;g++){var h=we[g]+e;if(void 0!==a[h]){e=h;break a}}e=""}var k=e;void 0!==a[k]&&(d=k)}c||(ve[b]=d)}return d}function ye(a,b){a=a.style;for(var c in b)a.setProperty(xe(a,c),b[c].toString(),"important")}function W(a,b,c,d){(b=xe(a.style,b,void 0))&&(a.style[b]=d?c+d:c)} | |
| function ze(a,b){if(b=xe(a.style,b,void 0))return a.style[b]}function Ae(a,b){for(var c in b)W(a,c,b[c])}function Be(a){"display"in a&&x().error("STYLE","`display` style detected in styles. You must use toggle instead.");return a}function Ce(a,b){void 0===b&&(b=a.hasAttribute("hidden"));b?a.removeAttribute("hidden"):a.setAttribute("hidden","")}function De(a,b){return a.getComputedStyle(b)||A()};var Ee=['\n <i-amphtml-sizer class="i-amphtml-sizer">\n <img alt="" role="presentation" aria-hidden="true"\n class="i-amphtml-intrinsic-sizer" />\n </i-amphtml-sizer>'];Ee.raw=['\n <i-amphtml-sizer class="i-amphtml-sizer">\n <img alt="" role="presentation" aria-hidden="true"\n class="i-amphtml-intrinsic-sizer" />\n </i-amphtml-sizer>']; | |
| var Fe={NODISPLAY:"nodisplay",FIXED:"fixed",FIXED_HEIGHT:"fixed-height",RESPONSIVE:"responsive",CONTAINER:"container",FILL:"fill",FLEX_ITEM:"flex-item",FLUID:"fluid",INTRINSIC:"intrinsic"},Ge={"AMP-PIXEL":{width:"0px",height:"0px"},"AMP-ANALYTICS":{width:"1px",height:"1px"},"AMP-AUDIO":null,"AMP-SOCIAL-SHARE":{width:"60px",height:"44px"}},He={"AMP-AD":!0,"AMP-ANIM":!0,"AMP-BRIGHTCOVE":!0,"AMP-DAILYMOTION":!0,"AMP-EMBED":!0,"AMP-FACEBOOK":!0,"AMP-FACEBOOK-COMMENTS":!0,"AMP-FACEBOOK-LIKE":!0,"AMP-FACEBOOK-PAGE":!0, | |
| "AMP-GOOGLE-DOCUMENT-EMBED":!0,"AMP-IFRAME":!0,"AMP-IMG":!0,"AMP-INSTAGRAM":!0,"AMP-LIST":!0,"AMP-PINTEREST":!0,"AMP-PLAYBUZZ":!0,"AMP-YOUTUBE":!0,"AMP-VIMEO":!0},Ie=/^amp\-(video|.+player)/i;function Je(a){for(var b in Fe)if(Fe[b]==a)return Fe[b]}function Ke(a){return"fixed"==a||"fixed-height"==a||"responsive"==a||"fill"==a||"flex-item"==a||"fluid"==a||"intrinsic"==a} | |
| function Le(a){if("number"==typeof a)return a+"px";if(a&&/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)?$/.test(a))return/^\d+(\.\d+)?$/.test(a)?a+"px":a}function Me(a){y(/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)$/.test(a),"Invalid length value: %s",a);return a}function Ne(a){y(/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|%)$/.test(a),"Invalid length or percent value: %s",a);return a} | |
| function Oe(a){Me(a);var b=y(a.match(/[a-z]+/i),"Failed to read units from %s",a);return b[0]}function Pe(a){a=parseFloat(a);return Aa(a)?a:void 0};var Qe;function Re(a,b,c,d){var e=a,g=c;var h=function(a){try{return g(a)}catch(n){throw self.reportError(n),n;}};var k=Se(),l=!1;d&&(l=d.capture);e.addEventListener(b,h,k?d:l);return function(){e&&e.removeEventListener(b,h,k?d:l);h=e=g=null}}function Se(){if(void 0!==Qe)return Qe;Qe=!1;try{var a={get capture(){Qe=!0}};self.addEventListener("test-options",null,a);self.removeEventListener("test-options",null,a)}catch(b){}return Qe};function Te(a,b,c,d){return Re(a,b,c,d)}function Ue(a,b,c,d){var e=c,g=Re(a,b,function(a){try{e(a)}finally{e=null,g()}},d);return g}function Ve(a,b){var c,d=new Promise(function(b){c=Ue(a,"click",b,void 0)});d.then(c,c);b&&b(c);return d} | |
| function We(a){var b,c;if(a.complete||"complete"==a.readyState||a.document&&"complete"==a.document.readyState)return Promise.resolve(a);var d=new Promise(function(d,g){var e=a.tagName;b="AUDIO"===e||"VIDEO"===e?Ue(a,"loadstart",d):Ue(a,"load",d);e&&(c=Ue(a,"error",g))});return d.then(function(){c&&c();return a},function(){b&&b();var c=a;c&&c.src&&(c=c.src);throw w().createError("Failed to load:",c);})};var Xe=['\n <link rel="preload" referrerpolicy="origin" />'];Xe.raw=['\n <link rel="preload" referrerpolicy="origin" />'];var Ye=null; | |
| function Ze(a){this.$=a.document;this.xd=a.document.head;this.Kb={};this.jg={};this.sa=oe(a);this.Kb[I(a.location.href).origin]=!0;a:{if(!Ye){var b=a.document.createElement("link");var c=b.relList;b.as="invalid-value";if(!c||!c.supports){b={};break a}Ye={preconnect:c.supports("preconnect"),preload:c.supports("preload"),onlyValidAs:"invalid-value"!=b.as}}b=Ye}this.cc=b;this.T=U(a)}Ze.prototype.url=function(a,b,c){var d=this;a.whenFirstVisible().then(function(){d.se(a,b,c)})}; | |
| Ze.prototype.se=function(a,b,c){if($e(b)){a=I(b).origin;var d=Date.now(),e=this.Kb[a];if(e&&d<e)c&&(this.Kb[a]=d+18E4);else{this.Kb[a]=d+(c?18E4:1E4);if(!this.cc.preconnect){var g=this.$.createElement("link");g.setAttribute("rel","dns-prefetch");g.setAttribute("href",a);this.xd.appendChild(g)}var h=this.$.createElement("link");h.setAttribute("rel","preconnect");h.setAttribute("href",a);h.setAttribute("referrerpolicy","origin");this.xd.appendChild(h);this.T.delay(function(){g&&g.parentNode&&g.parentNode.removeChild(g); | |
| h.parentNode&&h.parentNode.removeChild(h)},1E4);af(this,a)}}};Ze.prototype.preload=function(a,b,c){var d=this;$e(b)&&!this.jg[b]&&(this.jg[b]=!0,this.url(a,b,!0),this.cc.preload&&("document"==c&&this.sa.isSafari()||a.whenFirstVisible().then(function(){var a=te(d.$)(Xe);a.setAttribute("href",b);a.as=d.cc.onlyValidAs?"fetch":"";d.xd.appendChild(a)})))};function $e(a){return gb(a,"https:")||gb(a,"http:")?!0:!1} | |
| function af(a,b){if(!a.cc.preconnect&&(a.sa.isSafari()||a.sa.isIos())){var c=Date.now();a.Kb[b]=c+18E4;var d=c-c%18E4;a=new XMLHttpRequest;a.open("HEAD",b+"/amp_preconnect_polyfill_404_or_other_error_expected._Do_not_worry_about_it?"+d,!0);a.withCredentials=!0;a.send()}}function bf(a,b){this.Jf=a;this.W=b;this.h=null}function cf(a){a.h||(a.h=V(a.W));return a.h}bf.prototype.url=function(a,b){this.Jf.url(cf(this),a,b)};bf.prototype.preload=function(a,b){this.Jf.preload(cf(this),a,b)};function df(a){this.element=a;this.layout_="nodisplay";this.layoutWidth_=-1;this.inViewport_=!1;this.win=a.ownerDocument.defaultView;this.defaultActionAlias_=this.actionMap_=null;a=this.element;var b=a.ownerDocument.defaultView;L(b,"preconnect",Ze);b=P(b,"preconnect");this.preconnect=new bf(b,a);this.config=null;this.layoutScheduleTime=0}f=df.prototype;f.signals=function(){return this.element.signals()};f.getDefaultActionAlias=function(){return this.defaultActionAlias_};f.getLayoutPriority=function(){return 0}; | |
| f.updateLayoutPriority=function(a){this.element.getResources().updateLayoutPriority(this.element,a)};f.getLayout=function(){return this.layout_};f.getLayoutBox=function(){return this.element.getLayoutBox()};f.getPageLayoutBox=function(){return this.element.getPageLayoutBox()};f.getWin=function(){return this.win};f.getAmpDoc=function(){return this.element.getAmpDoc()};f.getVsync=function(){return qe(this.win)};f.getLayoutWidth=function(){return this.layoutWidth_}; | |
| f.getConsentPolicy=function(){var a=null;this.element.hasAttribute("data-block-on-consent")&&(a=this.element.getAttribute("data-block-on-consent")||"default");return a};f.isLayoutSupported=function(a){return"nodisplay"==a};f.isAlwaysFixed=function(){return!1};f.isInViewport=function(){return this.inViewport_};f.upgradeCallback=function(){return null};f.createdCallback=function(){};f.firstAttachedCallback=function(){};f.buildCallback=function(){};f.preconnectCallback=function(){}; | |
| f.detachedCallback=function(){};f.setAsOwner=function(a){this.element.getResources().setOwner(a,this.element)};f.prerenderAllowed=function(){return!1};f.createPlaceholderCallback=function(){return null};f.renderOutsideViewport=function(){return"inabox"==r(this.win).runtime||3};f.idleRenderOutsideViewport=function(){return!1};f.isRelayoutNeeded=function(){return!1};f.layoutCallback=function(){return Promise.resolve()};f.firstLayoutCompleted=function(){this.togglePlaceholder(!1)}; | |
| f.viewportCallback=function(){};f.pauseCallback=function(){};f.resumeCallback=function(){};f.unlayoutCallback=function(){return!1};f.unlayoutOnPause=function(){return!1};f.reconstructWhenReparented=function(){return!0};f.activate=function(){};f.activationTrust=function(){return 100};f.loadPromise=function(a){return We(a)};function ef(a){a.actionMap_||(a.actionMap_=a.win.Object.create(null))}f.registerAction=function(a,b,c){c=void 0===c?100:c;ef(this);this.actionMap_[a]={handler:b,minTrust:c}}; | |
| f.registerDefaultAction=function(a,b,c){b=void 0===b?"activate":b;this.registerAction(b,a,void 0===c?100:c);this.defaultActionAlias_=b};f.executeAction=function(a){var b=a.method;"activate"===b&&(b=this.defaultActionAlias_||b);ef(this);var c=this.actionMap_[b];y(c,"Method not found: "+b+" in "+this.element.tagName);b=c.handler;if(a.satisfiesTrust(c.minTrust))return b(a)};f.getMaxDpr=function(){return this.element.getResources().getMaxDpr()};f.getDpr=function(){return this.element.getResources().getDpr()}; | |
| f.propagateAttributes=function(a,b,c){a=ya(a)?a:[a];for(var d=0;d<a.length;d++){var e=a[d];this.element.hasAttribute(e)?b.setAttribute(e,this.element.getAttribute(e)):c&&b.removeAttribute(e)}};f.forwardEvents=function(a,b){var c=this,d=(ya(a)?a:[a]).map(function(a){return Te(b,a,function(b){c.element.dispatchCustomEvent(a,b.data||{})})});return function(){return d.forEach(function(a){return a()})}};f.getPlaceholder=function(){return this.element.getPlaceholder()};f.togglePlaceholder=function(a){this.element.togglePlaceholder(a)}; | |
| f.getFallback=function(){return this.element.getFallback()};f.toggleFallback=function(a){this.element.toggleFallback(a)};f.toggleLoading=function(a,b){this.element.toggleLoading(a,{force:!!b})};f.isLoadingReused=function(){return!1};f.getOverflowElement=function(){return this.element.getOverflowElement()};f.renderStarted=function(){this.element.renderStarted()};f.getRealChildNodes=function(){return this.element.getRealChildNodes()};f.getRealChildren=function(){return this.element.getRealChildren()}; | |
| f.applyFillContent=function(a,b){a.classList.add("i-amphtml-fill-content");b&&a.classList.add("i-amphtml-replaced-content")};f.getViewport=function(){return re(this.getAmpDoc())};f.getIntersectionElementLayoutBox=function(){return this.getLayoutBox()};f.scheduleLayout=function(a){this.element.getResources().scheduleLayout(this.element,a)};f.schedulePause=function(a){this.element.getResources().schedulePause(this.element,a)}; | |
| f.scheduleResume=function(a){this.element.getResources().scheduleResume(this.element,a)};f.schedulePreload=function(a){this.element.getResources().schedulePreload(this.element,a)};f.scheduleUnlayout=function(a){this.element.getResources().scheduleUnlayout(this.element,a)};f.updateInViewport=function(a,b){this.element.getResources().updateInViewport(this.element,a,b)};f.changeHeight=function(a){this.element.getResources().changeSize(this.element,a,void 0)};f.collapse=function(){this.element.getResources().collapseElement(this.element)}; | |
| f.attemptCollapse=function(){return this.element.getResources().attemptCollapse(this.element)};f.attemptChangeHeight=function(a){return this.element.getResources().attemptChangeSize(this.element,a,void 0)};f.attemptChangeSize=function(a,b){return this.element.getResources().attemptChangeSize(this.element,a,b)};f.measureElement=function(a){return this.element.getResources().measureElement(a)};f.mutateElement=function(a,b){return this.measureMutateElement(null,a,b)}; | |
| f.measureMutateElement=function(a,b,c){return this.element.getResources().measureMutateElement(c||this.element,a,b)};f.collapsedCallback=function(){};f.expand=function(){this.element.getResources().expandElement(this.element)};f.expandedCallback=function(){};f.mutatedAttributesCallback=function(){};f.onLayoutMeasure=function(){};f.onMeasureChanged=function(){};f.user=function(){return w(this.element)}; | |
| f.declareLayer=function(a){K(this.win,"layers");a&&this.element.contains(a);return this.element.getLayers().declareLayer(a||this.element)};function ff(a,b){this.element=a;this.win=a.ownerDocument.defaultView||b;this.h=R(this.element,"viewer");this.compileCallback()}f=ff.prototype;f.compileCallback=function(){};f.setHtml=function(){throw Error("Not implemented");};f.render=function(){throw Error("Not implemented");}; | |
| f.unwrap=function(a){for(var b=null,c=a.firstChild;null!=c;c=c.nextSibling)if(3==c.nodeType){if(c.textContent.trim()){b=null;break}}else if(8!=c.nodeType)if(1==c.nodeType)if(b){b=null;break}else b=c;else b=null;return b||a};f.viewerCanRenderTemplates=function(){return this.h.hasCapability("viewerRenderTemplate")};function gf(a){this.A=a;this.mb={};this.Oc={}}f=gf.prototype;f.setHtmlForTemplate=function(a,b){return hf(this,a).then(function(a){return a.setHtml(b)})}; | |
| f.renderTemplate=function(a,b){return hf(this,a).then(function(a){return a.render(b)})};f.renderTemplateArray=function(a,b){return 0==b.length?Promise.resolve([]):hf(this,a).then(function(a){return b.map(function(b){return a.render(b)})})};f.findAndRenderTemplate=function(a,b,c){return this.renderTemplate(this.findTemplate(a,c),b)};f.findAndSetHtmlForTemplate=function(a,b,c){return this.setHtmlForTemplate(this.findTemplate(a,c),b)}; | |
| f.findAndRenderTemplateArray=function(a,b,c){return this.renderTemplateArray(this.findTemplate(a,c),b)};f.hasTemplate=function(a,b){return!!this.maybeFindTemplate(a,b)};f.findTemplate=function(a,b){b=this.maybeFindTemplate(a,b);y(b,"Template not found for %s",a);var c=b.tagName;y("TEMPLATE"==c||"SCRIPT"==c&&"text/plain"===b.getAttribute("type"),'Template must be defined in a <template> or <script type="text/plain"> tag');return b}; | |
| f.maybeFindTemplate=function(a,b){var c=a.getAttribute("template");return c?sb(a).getElementById(c):b?Jb(a,b):a.querySelector("template, script")};function hf(a,b){var c=b.__AMP_IMPL_;if(c)return Promise.resolve(c);c="";var d=b.tagName;"TEMPLATE"==d?c=b.getAttribute("type"):"SCRIPT"==d&&(c=b.getAttribute("template"));y(c,"Type must be specified: %s",b);if(d=b.__AMP_WAIT_)return d;d=jf(a,c).then(function(c){var d=b.__AMP_IMPL_=new c(b,a.A);delete b.__AMP_WAIT_;return d});return b.__AMP_WAIT_=d} | |
| function jf(a,b){if(a.mb[b])return a.mb[b];var c=new E,d=c.promise;c=c.resolve;a.mb[b]=d;a.Oc[b]=c;return d}f.unregisterTemplate=function(a){delete this.mb[a];delete this.Oc[a]};var kf={PRERENDER:"prerender",VISIBLE:"visible",HIDDEN:"hidden",PAUSED:"paused",INACTIVE:"inactive"};/* | |
| Copyright (c) 2014 The Polymer Project Authors. All rights reserved. | |
| Use of this source code is governed by a BSD-style | |
| license that can be found in the LICENSE file or at | |
| https://developers.google.com/open-source/licenses/bsd | |
| */ | |
| var lf;function mf(){var a;if(void 0===lf){var b=a||Element;lf=b.prototype.attachShadow?"v1":b.prototype.createShadowRoot?"v0":"none"}return lf};var nf={"amp-dynamic-css-classes":"[custom-element=amp-dynamic-css-classes]",variant:"amp-experiment"};function of(a){var b=pf(a).map(function(b){var c=Xd(a,b).then(function(a){return a&&qf(a)?a.whenReady().then(function(){return a}):a});return U(a).timeoutPromise(3E3,c,"Render timeout waiting for service "+b+" to be ready.")});return Promise.all(b)}function qf(a){var b=a;return"function"==typeof b.whenReady} | |
| function pf(a){var b=a.document;return Object.keys(nf).filter(function(a){return b.querySelector(nf[a])})};function rf(a,b,c,d,e){var g=a.getHeadNode(),h=sf(g,tf(g,b),d||!1,e||null);if(c){var k=a.getRootNode();if(uf(k,h))c(h);else var l=setInterval(function(){uf(k,h)&&(clearInterval(l),c(h))},4)}}function vf(a,b,c,d,e){var g=sf(a.head,b,d||!1,e||null);if(c)if(uf(a,g))c(g);else var h=setInterval(function(){uf(a,g)&&(clearInterval(h),c(g))},4)} | |
| function sf(a,b,c,d){var e=a.__AMP_CSS_SM;e||(e=a.__AMP_CSS_SM=A());var g=!c&&d&&"amp-custom"!=d&&"amp-keyframes"!=d,h=c?"amp-runtime":g?"amp-extension="+d:null;if(h){var k=wf(a,e,h);if(k)return k.textContent!==b&&(k.textContent=b),k}var l=(a.ownerDocument||a).createElement("style");l.textContent=b;var m=null;c?l.setAttribute("amp-runtime",""):g?(l.setAttribute("amp-extension",d||""),m=wf(a,e,"amp-runtime")):(d&&l.setAttribute(d,""),m=a.lastChild);b=m;a.insertBefore(l,b?b.nextSibling:a.firstChild); | |
| h&&(e[h]=l);return l}function wf(a,b,c){return b[c]?b[c]:(a=a.querySelector("style["+c+"]"))?b[c]=a:null}function tf(a,b){return(a=a.__AMP_CSS_TR)?a(b):b}var xf=!1;function yf(){var a=self.document,b=a.defaultView;qb(a).then(function(){return of(b)}).catch(function(a){Na(a);return[]}).then(function(c){xf=!0;zf(a);try{pe(a.documentElement).renderStarted()}catch(g){}if(0<c.length){var d=pe(a.documentElement);d.schedulePass(1,!0)}try{var e=ne(b);e.tick("mbv");e.flush()}catch(g){}})} | |
| function Af(a){xf||(xf=!0,zf(a))}function zf(a){Ae(a.body,{opacity:1,visibility:"visible",animation:"none"})}function uf(a,b){var c=a.styleSheets;for(a=0;a<c.length;a++){var d=c[a];if(d.ownerNode==b)return!0}return!1};var Bf={composed:!1};function Cf(a){return"none"!=mf()&&Node.prototype.getRootNode?a.getRootNode(Bf):ub(a,function(a){return a?"I-AMPHTML-SHADOW-ROOT"==a.tagName?!0:11==a.nodeType&&"[object ShadowRoot]"===Object.prototype.toString.call(a):!1})};var cssText$$module$build$css="html{overflow-x:hidden!important}body,html{height:auto!important}html.i-amphtml-fie{height:100%!important;width:100%!important}body{margin:0!important;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;-ms-text-size-adjust:100%;text-size-adjust:100%}[hidden]{display:none!important}html.i-amphtml-singledoc.i-amphtml-embedded{-ms-touch-action:pan-y;touch-action:pan-y}html.i-amphtml-fie>body,html.i-amphtml-singledoc>body{overflow:visible!important}html.i-amphtml-fie:not(.i-amphtml-inabox)>body,html.i-amphtml-singledoc:not(.i-amphtml-inabox)>body{position:relative!important}html.i-amphtml-webview>body{overflow-x:hidden!important;overflow-y:visible!important;min-height:100vh!important}html.i-amphtml-ios-embed-legacy>body{overflow-x:hidden!important;overflow-y:auto!important;position:absolute!important}html.i-amphtml-ios-embed{overflow-y:auto!important;position:static}#i-amphtml-wrapper{overflow-x:hidden!important;overflow-y:auto!important;position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;margin:0!important;display:block!important}html.i-amphtml-ios-embed.i-amphtml-ios-overscroll,html.i-amphtml-ios-embed.i-amphtml-ios-overscroll>#i-amphtml-wrapper{-webkit-overflow-scrolling:touch!important}#i-amphtml-wrapper>body{position:relative!important;border-top:1px solid transparent!important}#i-amphtml-wrapper+body .i-amphtml-lightbox-element,#i-amphtml-wrapper+body[i-amphtml-lightbox]{visibility:hidden}#i-amphtml-wrapper+body[i-amphtml-lightbox] .i-amphtml-lightbox-element{visibility:visible}html.i-amphtml-ios-embed-sd{overflow:hidden!important;position:static!important}html.i-amphtml-ios-embed-sd>body,html.i-amphtml-singledoc.i-amphtml-ios-embed-sd>body{position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;overflow:hidden!important}.i-amphtml-body-minheight>body{min-height:calc(100vh + 1px)}.i-amphtml-element{display:inline-block}.i-amphtml-blurry-placeholder{-webkit-transition:opacity 0.3s cubic-bezier(0.0,0.0,0.2,1)!important;transition:opacity 0.3s cubic-bezier(0.0,0.0,0.2,1)!important}[layout=nodisplay]:not(.i-amphtml-element){display:none!important}.i-amphtml-layout-fixed,[layout=fixed][width][height]:not(.i-amphtml-layout-fixed){display:inline-block;position:relative}.i-amphtml-layout-responsive,[layout=responsive][width][height]:not(.i-amphtml-layout-responsive),[width][height][sizes]:not(.i-amphtml-layout-responsive){display:block;position:relative}.i-amphtml-layout-intrinsic{display:inline-block;position:relative;max-width:100%}.i-amphtml-intrinsic-sizer{max-width:100%;display:block!important}.i-amphtml-layout-container,.i-amphtml-layout-fixed-height,[layout=container],[layout=fixed-height][height]{display:block;position:relative}.i-amphtml-layout-fill,[layout=fill]:not(.i-amphtml-layout-fill){display:block;overflow:hidden!important;position:absolute;top:0;left:0;bottom:0;right:0}.i-amphtml-layout-flex-item,[layout=flex-item]:not(.i-amphtml-layout-flex-item){display:block;position:relative;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}.i-amphtml-layout-fluid{position:relative}.i-amphtml-layout-size-defined{overflow:hidden!important}.i-amphtml-layout-awaiting-size{position:absolute!important;top:auto!important;bottom:auto!important}i-amphtml-sizer{display:block!important}.i-amphtml-blurry-placeholder,.i-amphtml-fill-content{display:block;height:0;max-height:100%;max-width:100%;min-height:100%;min-width:100%;width:0;margin:auto}.i-amphtml-layout-size-defined .i-amphtml-fill-content{position:absolute;top:0;left:0;bottom:0;right:0}.i-amphtml-layout-intrinsic .i-amphtml-sizer{max-width:100%}.i-amphtml-replaced-content,.i-amphtml-screen-reader{padding:0!important;border:none!important}.i-amphtml-screen-reader{position:fixed!important;top:0px!important;left:0px!important;width:4px!important;height:4px!important;opacity:0!important;overflow:hidden!important;margin:0!important;display:block!important;visibility:visible!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:8px!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:12px!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:16px!important}.i-amphtml-unresolved{position:relative;overflow:hidden!important}#i-amphtml-wrapper.i-amphtml-scroll-disabled,.i-amphtml-scroll-disabled{overflow-x:hidden!important;overflow-y:hidden!important}.i-amphtml-select-disabled{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important}.i-amphtml-notbuilt,[layout]:not(.i-amphtml-element){position:relative;overflow:hidden!important;color:transparent!important}.i-amphtml-notbuilt:not(.i-amphtml-layout-container)>*,[layout]:not([layout=container]):not(.i-amphtml-element)>*{display:none}.i-amphtml-ghost{visibility:hidden!important}.i-amphtml-element>[placeholder],[layout]:not(.i-amphtml-element)>[placeholder]{display:block}.i-amphtml-element>[placeholder].amp-hidden,.i-amphtml-element>[placeholder].hidden{visibility:hidden}.i-amphtml-element:not(.amp-notsupported)>[fallback],.i-amphtml-layout-container>[placeholder].amp-hidden,.i-amphtml-layout-container>[placeholder].hidden{display:none}.i-amphtml-layout-size-defined>[fallback],.i-amphtml-layout-size-defined>[placeholder]{position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;z-index:1}.i-amphtml-notbuilt>[placeholder]{display:block!important}.i-amphtml-hidden-by-media-query{display:none!important}.i-amphtml-element-error{background:red!important;color:#fff!important;position:relative!important}.i-amphtml-element-error:before{content:attr(error-message)}i-amp-scroll-container,i-amphtml-scroll-container{position:absolute;top:0;left:0;right:0;bottom:0;display:block}i-amp-scroll-container.amp-active,i-amphtml-scroll-container.amp-active{overflow:auto;-webkit-overflow-scrolling:touch}.i-amphtml-loading-container{display:block!important;pointer-events:none;z-index:1}.i-amphtml-notbuilt>.i-amphtml-loading-container{display:block!important}.i-amphtml-loading-container.amp-hidden{visibility:hidden}.i-amphtml-loader-line{position:absolute;top:0;left:0;right:0;height:1px;overflow:hidden!important;background-color:hsla(0,0%,59.2%,0.2);display:block}.i-amphtml-loader-moving-line{display:block;position:absolute;width:100%;height:100%!important;background-color:hsla(0,0%,59.2%,0.65);z-index:2}@-webkit-keyframes i-amphtml-loader-line-moving{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}to{-webkit-transform:translateX(100%);transform:translateX(100%)}}@keyframes i-amphtml-loader-line-moving{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}to{-webkit-transform:translateX(100%);transform:translateX(100%)}}.i-amphtml-loader-line.amp-active .i-amphtml-loader-moving-line{-webkit-animation:i-amphtml-loader-line-moving 4s ease infinite;animation:i-amphtml-loader-line-moving 4s ease infinite}.i-amphtml-loader{position:absolute;display:block;height:10px;top:50%;left:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;white-space:nowrap}.i-amphtml-loader.amp-active .i-amphtml-loader-dot{-webkit-animation:i-amphtml-loader-dots 2s infinite;animation:i-amphtml-loader-dots 2s infinite}.i-amphtml-loader-dot{position:relative;display:inline-block;height:10px;width:10px;margin:2px;border-radius:100%;background-color:rgba(0,0,0,0.3);box-shadow:2px 2px 2px 1px rgba(0,0,0,0.2);will-change:transform}.i-amphtml-loader .i-amphtml-loader-dot:first-child{-webkit-animation-delay:0s;animation-delay:0s}.i-amphtml-loader .i-amphtml-loader-dot:nth-child(2){-webkit-animation-delay:.1s;animation-delay:.1s}.i-amphtml-loader .i-amphtml-loader-dot:nth-child(3){-webkit-animation-delay:.2s;animation-delay:.2s}@-webkit-keyframes i-amphtml-loader-dots{0%,to{-webkit-transform:scale(.7);transform:scale(.7);background-color:rgba(0,0,0,0.3)}50%{-webkit-transform:scale(.8);transform:scale(.8);background-color:rgba(0,0,0,0.5)}}@keyframes i-amphtml-loader-dots{0%,to{-webkit-transform:scale(.7);transform:scale(.7);background-color:rgba(0,0,0,0.3)}50%{-webkit-transform:scale(.8);transform:scale(.8);background-color:rgba(0,0,0,0.5)}}.i-amphtml-element>[overflow]{cursor:pointer;position:relative;z-index:2;visibility:hidden}.i-amphtml-element>[overflow].amp-visible{visibility:visible}template{display:none!important}.amp-border-box,.amp-border-box *,.amp-border-box :after,.amp-border-box :before{box-sizing:border-box}amp-pixel{display:none!important}amp-instagram{padding:64px 0px 0px!important;background-color:#fff}amp-analytics,amp-story-auto-ads{position:fixed!important;top:0!important;width:1px!important;height:1px!important;overflow:hidden!important;visibility:hidden}html.i-amphtml-fie>amp-analytics{position:initial!important}amp-iframe iframe{box-sizing:border-box!important}[amp-access][amp-access-hide]{display:none}[subscriptions-dialog],body:not(.i-amphtml-subs-ready) [subscriptions-action],body:not(.i-amphtml-subs-ready) [subscriptions-section]{display:none!important}[visible-when-invalid]:not(.visible),amp-experiment,amp-live-list>[update],amp-share-tracking,form [submit-error],form [submit-success],form [submitting]{display:none}.i-amphtml-jank-meter{position:fixed;background-color:rgba(232,72,95,0.5);bottom:0;right:0;color:#fff;font-size:16px;z-index:1000;padding:5px}amp-accordion{display:block!important}amp-accordion>section{float:none!important}amp-accordion>section>*{float:none!important;display:block!important;overflow:hidden!important;position:relative!important}.i-amphtml-accordion-content,.i-amphtml-accordion-header,amp-accordion,amp-accordion>section{margin:0}.i-amphtml-accordion-header{cursor:pointer;background-color:#efefef;padding-right:20px;border:1px solid #dfdfdf}amp-accordion>section>:last-child{display:none!important}amp-accordion>section[expanded]>:last-child{display:block!important}amp-list[resizable-children]>.i-amphtml-loading-container.amp-hidden{display:none!important}amp-list[load-more] [load-more-button],amp-list[load-more] [load-more-end],amp-list[load-more] [load-more-failed],amp-list[load-more] [load-more-loading]{display:none}amp-story-page,amp-story[standalone]{display:block!important;height:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;width:100%!important}amp-story[standalone]{background-color:#202125!important;position:relative!important}amp-story-page{background-color:#757575}amp-story .i-amphtml-loader{display:none!important}amp-story-page:not(:first-of-type):not([distance]):not([active]){-webkit-transform:translateY(1000vh)!important;transform:translateY(1000vh)!important}amp-autocomplete{position:relative!important;display:inline-block!important}amp-autocomplete>input{padding:4px!important}[amp-fx^=fly-in]{visibility:hidden}@media only screen and (max-width:979px){amp-addthis[data-widget-type=floating]{position:fixed!important;width:100%!important;height:50px;bottom:0}}@media only screen and (min-width:980px){amp-addthis[data-widget-type=floating]{display:none}}\n/*# sourceURL=/css/amp.css*/";function Df(a,b){var c=100;function d(d){h=null;g=a.setTimeout(e,c);b.apply(null,d)}function e(){g=0;h&&d(h)}var g=0,h=null;return function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];g?h=b:d(b)}}function Ef(a,b){function c(){d=0;var h=300-(a.Date.now()-e);if(0<h)d=a.setTimeout(c,h);else{var k=g;g=null;b.apply(null,k)}}var d=0,e=0,g=null;return function(b){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];e=a.Date.now();g=h;d||(d=a.setTimeout(c,300))}};function Ff(){var a=Gf();return function(b){return setTimeout(b,a())}}function Gf(){var a=0;return function(){var b=Math.pow(1.5,a++);var c=b*(c||.3)*Math.random();.5<Math.random()&&(c*=-1);b+=c;return 1E3*b}};function Hf(a,b){ge(a,"amp-analytics-instrumentation","amp-analytics").then(function(c){c&&c.triggerEventForTarget(a,"user-error",b)})};var If=self.AMPErrors||[];self.AMPErrors=If;function Jf(a){Jf=Ff();return Jf(a)}function Kf(a){try{return JSON.stringify(a)}catch(b){return String(a)}}var Lf; | |
| function Mf(a,b){try{if(a)if(void 0!==a.message)a=Ma(a);else{var c=a;a=Error(Kf(c));a.origError=c}else a=Error("Unknown error");if(a.reported)return a;a.reported=!0;var d=b||a.associatedElement;d&&d.classList&&(d.classList.add("i-amphtml-error"),r().development&&(d.classList.add("i-amphtml-element-error"),d.setAttribute("error-message",a.message)));if(self.console){var e=console.error||console.log;a.messageArray?e.apply(console,a.messageArray):d?e.call(console,a.message,d):e.call(console,a.message)}d&& | |
| d.Na&&d.Na("amp:error",a.message);Nf.call(void 0,void 0,void 0,void 0,void 0,a)}catch(g){setTimeout(function(){throw g;})}return a}function Of(a){return a?"string"==typeof a?gb(a,"BLOCK_BY_CONSENT"):"string"==typeof a.message?gb(a.message,"BLOCK_BY_CONSENT"):!1:!1}function Pf(){var a=self;a.onerror=Nf;a.addEventListener("unhandledrejection",function(a){!a.reason||"CANCELLED"!==a.reason.message&&"BLOCK_BY_CONSENT"!==a.reason.message?Mf(a.reason||Error("rejected promise "+a)):a.preventDefault()})} | |
| function Nf(a,b,c,d,e){var g=this;this&&this.document&&Af(this.document);if(!r().development){var h=!1;try{h=Qf()}catch(l){}if(!(h&&.01<Math.random())){var k=Rf(a,b,c,d,e,h);k&&Jf(function(){return Sf(g,k)})}}}function Sf(a,b){return Tf(a,b).then(function(a){if(!a){var c=new XMLHttpRequest;c.open("POST",Vc.errorReporting,!0);c.send(JSON.stringify(b))}})} | |
| function Tf(a,b){a=le(a);if(!a.isSingleDoc())return Promise.resolve(!1);var c=a.getAmpDoc(),d=c.getRootNode().documentElement,e=d.hasAttribute("report-errors-to-viewer");if(!e)return Promise.resolve(!1);var g=V(c);return g.hasCapability("errorReporter")?g.isTrustedViewer().then(function(a){if(!a)return!1;g.sendMessage("error",C({m:b.m,a:b.a,s:b.s,el:b.el,v:b.v,jse:b.jse}));return!0}):Promise.resolve(!1)} | |
| function Rf(a,b,c,d,e,g){var h=a;e&&(h=e.message?e.message:String(e));h||(h="Unknown error");a=h;var k=!(!e||!e.expected);if(!/_reported_/.test(a)&&"CANCELLED"!=a){var l=!(self&&self.window),m=Math.random();if(-1!=a.indexOf("Failed to load:")||"Script error."==a||l)if(k=!0,.001<m)return;var n=Ca(a);if(!(n&&.1<m)){h=Object.create(null);h.v=r().rtvVersion;h.noAmp=g?"1":"0";h.m=a.replace("\u200b\u200b\u200b","");h.a=n?"1":"0";h.ex=k?"1":"0";h.dw=l?"1":"0";var p="1p";self.context&&self.context.location? | |
| (h["3p"]="1",p="3p"):r().runtime&&(p=r().runtime);r().singlePassType&&(h.spt=r().singlePassType);h.rt=p;"inabox"===p&&(h.adid=r().a4aId);h.ca=xd(self)?"1":"0";g=self;h.bt=g.AMP_CONFIG&&g.AMP_CONFIG.type?g.AMP_CONFIG.type:"unknown";self.location.ancestorOrigins&&self.location.ancestorOrigins[0]&&(h.or=self.location.ancestorOrigins[0]);self.viewerState&&(h.vs=self.viewerState);self.parent&&self.parent!=self&&(h.iem="1");if(self.AMP&&self.AMP.viewer){var t=self.AMP.viewer.getResolvedViewerUrl(),u=self.AMP.viewer.maybeGetMessagingOrigin(); | |
| t&&(h.rvu=t);u&&(h.mso=u)}Lf||(Lf=kg());h.jse=Lf;var v=[];g=self.__AMP__EXPERIMENT_TOGGLES||null;for(var D in g)v.push(D+"="+(g[D]?"1":"0"));h.exps=v.join(",");e?(h.el=e.associatedElement?e.associatedElement.tagName:"u",e.args&&(h.args=JSON.stringify(e.args)),n||e.ignoreStack||!e.stack||(h.s=e.stack),e.message&&(e.message+=" _reported_")):(h.f=b||"",h.l=c||"",h.c=d||"");h.r=self.document.referrer;h.ae=If.join(",");h.fr=self.location.originalHash||self.location.hash;b=a;25<=If.length&&If.splice(0, | |
| If.length-25+1);If.push(b);return h}}}function Qf(){for(var a=self.document.querySelectorAll("script[src]"),b=0;b<a.length;b++)if(!md(a[b].src.toLowerCase()))return!0;return!1}function kg(){function a(){}a.prototype.t=function(){throw Error("message");};var b=new a;try{b.t()}catch(d){b=d.stack;if(gb(b,"t@"))return"Safari";if(-1<b.indexOf(".prototype.t@"))return"Firefox";var c=b.split("\n").pop();if(/\bat .* \(/i.test(c))return"IE";if(gb(b,"Error: message"))return"Chrome"}return"unknown"};var lg="__AMP_ACTION_MAP__"+Math.random(),mg={form:["submit","clear"]},ng={button:!0,checkbox:!0,link:!0,listbox:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,option:!0,radio:!0,scrollbar:!0,slider:!0,spinbutton:!0,"switch":!0,tab:!0,treeitem:!0}; | |
| function og(a,b,c,d,e,g,h,k,l,m){k=void 0===k?"?":k;l=void 0===l?null:l;m=void 0===m?Math.random():m;this.node=a;this.method=b;this.args=c;this.source=d;this.caller=e;this.event=g;this.trust=h;this.actionEventType=k;this.tagOrTarget=l||a.tagName;this.sequenceId=m} | |
| og.prototype.satisfiesTrust=function(a){return Aa(this.trust)?this.trust<a?(w().error("Action",'"'+this.actionEventType+'" is not allowed to invoke '+('"'+this.tagOrTarget+"."+this.method+'".')),!1):!0:(x().error("Action","Invalid trust for '"+this.method+"': "+this.trust),!1)}; | |
| function pg(a,b){this.ampdoc=a;this.ma=b||a.getRootNode();this.Xa=qg(this);this.gc=A();this.kf=A();this.addEvent("tap");this.addEvent("submit");this.addEvent("change");this.addEvent("input-debounced");this.addEvent("input-throttled");this.addEvent("valid");this.addEvent("invalid")}pg.installInEmbedWindow=function(a,b){Td(a,"action",new pg(b,a.document))};f=pg.prototype; | |
| f.addEvent=function(a){var b=this;if("tap"==a)this.ma.addEventListener("click",function(c){c.defaultPrevented||b.trigger(c.target,a,c,100)}),this.ma.addEventListener("keydown",function(c){var d=c.target,e=c.key;if("Enter"==e||" "==e){var k=d.getAttribute("role"),l=k&&Ra.call(ng,k.toLowerCase());!c.defaultPrevented&&l&&(c.preventDefault(),b.trigger(d,a,c,100))}});else if("submit"==a)this.ma.addEventListener(a,function(c){b.trigger(c.target,a,c,100)});else if("change"==a)this.ma.addEventListener(a, | |
| function(c){var d=c.target;rg(c);b.trigger(d,a,c,100)});else if("input-debounced"==a){var c=Ef(this.ampdoc.win,function(c){b.trigger(c.target,a,c,100)});this.ma.addEventListener("input",function(a){var b=new sg(a);rg(b);c(b)})}else if("input-throttled"==a){var d=Df(this.ampdoc.win,function(c){b.trigger(c.target,a,c,100)});this.ma.addEventListener("input",function(a){a=new sg(a);rg(a);d(a)})}else"valid"!=a&&"invalid"!=a||this.ma.addEventListener(a,function(c){b.trigger(c.target,a,c,100)})}; | |
| f.addGlobalTarget=function(a,b){this.gc[a]=b};f.addGlobalMethodHandler=function(a,b,c){this.kf[a]={handler:b,minTrust:void 0===c?100:c}};f.trigger=function(a,b,c,d,e){tg(this,a,b,c,d,e)};f.execute=function(a,b,c,d,e,g,h){a=new og(a,b,c,d,e,g,h);ug(this,a)}; | |
| f.installActionHandler=function(a,b){a.getAttribute("id");if(a.__AMP_ACTION_HANDLER__)x().error("Action","Action handler already installed for "+a);else{a.__AMP_ACTION_HANDLER__=b;var c=a.__AMP_ACTION_QUEUE__;ya(c)&&U(a.ownerDocument.defaultView).delay(function(){c.forEach(function(a){try{b(a)}catch(e){x().error("Action","Action execution failed:",a,e)}});a.__AMP_ACTION_QUEUE__.length=0},1)}};f.hasAction=function(a,b,c){return!!vg(a,b,c)}; | |
| f.hasResolvableAction=function(a,b,c){var d=this;return(a=vg(a,b,c))?a.actionInfos.some(function(a){a=a.target;return!(d.gc[a]?!d.ma:!d.ma.getElementById(a))}):!1};f.setWhitelist=function(a){this.Xa=a};f.addToWhitelist=function(a,b){this.Xa||(this.Xa=[]);this.Xa.push({tagOrTarget:a,method:b})}; | |
| function tg(a,b,c,d,e,g){var h=vg(b,c);if(h){var k=Math.random(),l=null;h.actionInfos.forEach(function(m){function n(){var g=a.gc[p]?a.ma:a.ma.getElementById(p);if(g)return g=new og(g,t,v,b,h.node,d,e,c,g.tagName||p,k),ug(a,g);a.Da('Target "'+p+'" not found for action ['+u+"].")}var p=m.target,t=m.method,u=m.str,v=wg(m.args,d,g);l=l?l.then(n):n()})}}f.Da=function(a,b){if(b)throw a=w().createError("[Action] "+a),Mf(a,b),a;w().error("Action",a)}; | |
| function ug(a,b){var c=b.method,d=b.tagOrTarget;if(a.Xa&&!xg(b,a.Xa))return a.Da('"'+d+"."+c+'" is not whitelisted '+JSON.stringify(a.Xa)+"."),null;var e=a.gc[d];if(e)return e(b);var g=b.node,h=a.kf[c];if(h&&b.satisfiesTrust(h.minTrust))return h.handler(b);var k=g.tagName.toLowerCase();if("amp-"===k.substring(0,4))return g.enqueAction?g.enqueAction(b):a.Da('Unrecognized AMP element "'+k+'".',g),null;var l=mg[k];if("amp-"===(g.getAttribute("id")||"").substring(0,4)||l&&-1<l.indexOf(c))return(a=g.__AMP_ACTION_HANDLER__)? | |
| a(b):(g.__AMP_ACTION_QUEUE__=g.__AMP_ACTION_QUEUE__||[],g.__AMP_ACTION_QUEUE__.push(b)),null;a.Da("Target ("+d+") doesn't support \""+c+'" action.',b.caller);return null} | |
| function vg(a,b,c){for(;a&&(!c||a!=c);){var d=b;var e=a;var g=d,h=e[lg];void 0===h&&(h=null,e.hasAttribute("on")?(g=e.getAttribute("on"),h=yg(g,e),e[lg]=h):e.hasAttribute("execute")&&(h=e.getAttribute("execute"),h=yg(g+":"+h,e),e[lg]=h));var k=(e=h)?e[d]||null:null;if(k&&!a.disabled&&!wb(a,":disabled"))return{node:a,actionInfos:k};a=a.parentElement}return null}f.setActions=function(a,b){a.setAttribute("on",b);delete a[lg]}; | |
| function qg(a){var b=a.ampdoc.getRootNode().head;return b?(b=b.querySelector('meta[name="amp-action-whitelist"]'))?b.getAttribute("content").split(",").filter(function(a){return a}).map(function(b){var c=b.split(".");if(2>c.length)a.Da("Invalid action whitelist entry: "+b+".");else return{tagOrTarget:c[0].trim(),method:c[1].trim()}}).filter(function(a){return a}):null:null} | |
| function rg(a){var b=A(),c=a.target;void 0!==c.value&&(b.value=c.value);"INPUT"==c.tagName&&(b.valueAsNumber=Number(c.value));void 0!==c.checked&&(b.checked=c.checked);if(void 0!==c.min||void 0!==c.max)b.min=c.min,b.max=c.max;0<Object.keys(b).length&&(a.detail=b)} | |
| function xg(a,b){var c=a.method,d=a.node;a=a.tagOrTarget;"activate"===c&&"function"==typeof d.getDefaultActionAlias&&(c=d.getDefaultActionAlias());var e=c.toLowerCase(),g=a.toLowerCase();return b.some(function(a){return a.tagOrTarget.toLowerCase()!==g&&"*"!==a.tagOrTarget||a.method.toLowerCase()!==e?!1:!0})}function sg(a){this.detail=null;var b=this||A(),c;for(c in a)b[c]="function"===typeof a[c]?zg:a[c]}function zg(){} | |
| function yg(a,b){var c=Ag.bind(null,a,b),d=Bg.bind(null,a,b);b=null;var e=new Cg(a);do{var g=e.next();if(g.type!=Dg&&(g.type!=Eg||";"!=g.value))if(g.type==Fg||g.type==Gg){var h=g.value;d(e.next(),[Eg],":");var k=[];do{var l=d(e.next(),[Fg,Gg]).value,m="activate",n=null;var p=e.peek();if(p.type==Eg&&"."==p.value&&(e.next(),m=d(e.next(),[Fg,Gg]).value||m,p=e.peek(),p.type==Eg&&"("==p.value)){e.next();n=e;var t=d,u=c,v=n.peek(),D=null;if(v.type==Hg){D=A();var J=n.next().value;D.__AMP_OBJECT_STRING__= | |
| J;t(n.next(),[Eg],")")}else{do{var N=J=n.next();v=N.type;N=N.value;if(v!=Eg||","!=N&&")"!=N)if(v==Fg||v==Gg){t(n.next(),[Eg],"=");J=t(n.next(!0),[Fg,Gg]);var O=[J];if(J.type==Gg)for(v=n.peek();v.type==Eg&&"."==v.value;v=n.peek())n.next(),J=t(n.next(!1),[Gg]),O.push(J);v=Ig(O);D||(D=A());D[N]=v;v=n.peek();u(v.type==Eg&&(","==v.value||")"==v.value),"Expected either [,] or [)]")}else u(!1,"; unexpected token ["+(J.value||"")+"]")}while(J.type!=Eg||")"!=J.value)}n=D}k.push({event:h,target:l,method:m, | |
| args:n,str:a});p=e.peek()}while(p.type==Eg&&","==p.value&&e.next());b||(b=A());b[h]=k}else c(!1,"; unexpected token ["+(g.value||"")+"]")}while(g.type!=Dg);return b}function Ig(a){return 0==a.length?null:1==a.length?a[0].value:{expression:a.map(function(a){return a.value}).join(".")}} | |
| function wg(a,b,c){if(!a)return a;var d=c||C({});b&&(b=b.detail)&&(d.event=b);var e=A();Object.keys(a).forEach(function(b){var c=a[b];if("object"==typeof c&&c.expression){c=c.expression;if("."==c)c=d;else{c=c.split(".");for(var g=d,l=0;l<c.length;l++){var m=c[l];if(m&&g&&void 0!==g[m]&&Qb(g,m))g=g[m];else{g=void 0;break}}c=g}var n=c;c=void 0===n?null:n}e[b]=d[c]?d[c]:c});return e}function Ag(a,b,c,d){return y(c,"Invalid action definition in %s: [%s] %s",b,a,d||"")} | |
| function Bg(a,b,c,d,e){void 0!==e?Ag(a,b,d.includes(c.type)&&c.value==e,"; expected ["+e+"]"):Ag(a,b,d.includes(c.type));return c}var Dg=1,Eg=2,Fg=3,Gg=4,Hg=5;function Cg(a){this.K=a;this.Ad=-1}Cg.prototype.next=function(a){var b=Jg(this,a||!1);this.Ad=b.index;return b};Cg.prototype.peek=function(a){return Jg(this,a||!1)}; | |
| function Jg(a,b){var c=a.Ad+1;if(c>=a.K.length)return{type:Dg,index:a.Ad};var d=a.K.charAt(c);if(-1!=" \t\n\r\f\v\u00a0\u2028\u2029".indexOf(d)){for(c++;c<a.K.length&&-1!=" \t\n\r\f\v\u00a0\u2028\u2029".indexOf(a.K.charAt(c));c++);if(c>=a.K.length)return{type:Dg,index:c};d=a.K.charAt(c)}if(b&&(Kg(d)||"."==d&&c+1<a.K.length&&Kg(a.K[c+1]))){for(var e="."==d,g=c+1;g<a.K.length;g++){var h=a.K.charAt(g);if("."==h)e=!0;else if(!Kg(h))break}a=a.K.substring(c,g);a=e?parseFloat(a):parseInt(a,10);c=g-1;return{type:Fg, | |
| value:a,index:c}}if(-1!=";:.()=,|!".indexOf(d))return{type:Eg,value:d,index:c};if(-1!="\"'".indexOf(d)){g=-1;for(var k=c+1;k<a.K.length;k++)if(a.K.charAt(k)==d){g=k;break}if(-1==g)return{type:0,index:c};a=a.K.substring(c+1,g);c=g;return{type:Fg,value:a,index:c}}if("{"==d){var l=1;g=-1;for(d=c+1;d<a.K.length;d++){var m=a.K[d];"{"==m?l++:"}"==m&&l--;if(0>=l){g=d;break}}if(-1==g)return{type:0,index:c};a=a.K.substring(c,g+1);c=g;return{type:Hg,value:a,index:c}}for(g=c+1;g<a.K.length&&-1==" \t\n\r\f\x0B\u00a0\u2028\u2029;:.()=,|!\"'{}".indexOf(a.K.charAt(g));g++); | |
| a=a.K.substring(c,g);c=g-1;return!b||"true"!=a&&"false"!=a?Kg(a.charAt(0))?{type:Fg,value:a,index:c}:{type:Gg,value:a,index:c}:{type:Fg,value:"true"==a,index:c}}function Kg(a){return"0"<=a&&"9">=a};function Lg(a,b){for(var c=[],d=0,e=0;e<a.length;e++){var g=a[e];b(g,e,a)?c.push(g):(d<e&&(a[d]=g),d++)}d<a.length&&(a.length=d);return c}function Mg(a,b){for(var c=0;c<a.length;c++)if(b(a[c],c,a))return c;return-1};function Ng(a){return!!a&&"function"==typeof a.getFormData};var Og=["GET","POST"],Pg=[ya,za];function Qg(a,b){var c=Object.assign({},b);if(Ng(b.body)){var d=b.body;c.headers["Content-Type"]="multipart/form-data;charset=utf-8";b=d.entries();for(var e=[],g=b.next();!g.done;g=b.next())e.push(g.value);c.body=e}return{input:a,init:c}} | |
| function Rg(a,b){y(za(a),"Object expected: %s",a);var c="document"==b;if(!c)return new Response(a.body,a.init);var d=A(),e={status:200,statusText:"OK",getResponseHeader:function(a){return d[String(a).toLowerCase()]||null}};if(a.init){var g=a.init;ya(g.headers)&&g.headers.forEach(function(a){d[String(a[0]).toLowerCase()]=String(a[1])});g.status&&(e.status=parseInt(g.status,10));g.statusText&&(e.statusText=String(g.statusText))}return new Response(a.body?String(a.body):"",e)} | |
| function Sg(a,b,c,d){if(!b)return Promise.resolve();var e=V(b),g=e.whenFirstVisible();return!md(c)&&e.hasCapability("xhrInterceptor")&&b.getRootNode().documentElement.hasAttribute("allow-xhr-interception")?g.then(function(){return e.isTrustedViewer()}).then(function(b){var g=r(a).development;if(b||g){var h=C({originalRequest:Qg(c,d)});return e.sendMessageAwaitResponse("xhr",h).then(function(a){return Rg(a,d.responseType)})}}):g}function Tg(a,b,c){!1!==c.ampCors&&(b=sd(a,b));return b} | |
| function Ug(a,b){a=a||{};var c=a.method;void 0===c?c="GET":(c=c.toUpperCase(),Og.includes(c));a.method=c;a.headers=a.headers||C({});b&&(a.headers.Accept=b);return a} | |
| function Vg(a,b,c){!1===c.ampCors&&(c.requireAmpResponseSourceOrigin=!1);!0===c.requireAmpResponseSourceOrigin&&x().error("XHR","requireAmpResponseSourceOrigin is deprecated, use ampCors instead");void 0===c.requireAmpResponseSourceOrigin&&(c.requireAmpResponseSourceOrigin=!0);var d=a.origin||I(a.location.href).origin,e=I(b).origin;d==e&&(c.headers=c.headers||{},c.headers["AMP-Same-Origin"]="true");return c} | |
| function Wg(a){var b=Ug(a,"application/json");if("POST"==b.method&&!Ng(b.body)){Pg.some(function(a){return a(b.body)});b.headers["Content-Type"]=b.headers["Content-Type"]||"text/plain;charset=utf-8";var c=b.headers["Content-Type"];b.body="application/x-www-form-urlencoded"===c?id(b.body):JSON.stringify(b.body)}return b}function Xg(a){return new Promise(function(b){if(a.ok)return b(a);b=a.status;var c=w().createError("HTTP error "+b);c.retriable=415==b||500<=b&&600>b;c.response=a;throw c;})};function Yg(a){this.win=a;a=le(a);this.pg=a.isSingleDoc()?a.getAmpDoc():null}f=Yg.prototype;f.Mg=function(a,b){var c=this,d=arguments;return Sg(this.win,this.pg,a,b).then(function(a){if(a)return a;if(Ng(b.body)){var e=b.body;b.body=e.getFormData()}return c.win.fetch.apply(null,d)})}; | |
| function Zg(a,b,c){c=void 0===c?{}:c;b=Tg(a.win,b,c);c=Vg(a.win,b,c);return a.Mg(b,c).then(function(b){var d=a.win,g=c,h=b.headers.get("AMP-Access-Control-Allow-Source-Origin");h?(d=rd(d.location.href),y(h==d,"Returned AMP-Access-Control-Allow-Source-Origin is not equal to the current: "+h+(" vs "+d))):g.requireAmpResponseSourceOrigin&&y(!1,"Response must contain the AMP-Access-Control-Allow-Source-Origin header");return b},function(a){var c=I(b).origin;throw w().createExpectedError("XHR","Failed fetching"+ | |
| (" ("+c+"/...):"),a&&a.message);})}f.fetchJson=function(a,b){return this.fetch(a,Wg(b))};f.fetchText=function(a,b){return this.fetch(a,Ug(b,"text/plain"))};f.fetch=function(a,b){b=Ug(b);return Zg(this,a,b).then(function(a){return Xg(a)})};f.sendSignal=function(a,b){return Zg(this,a,b).then(function(a){return Xg(a)})};f.getCorsUrl=function(a,b){return sd(a,b)};function $g(a){Yg.call(this,a);this.wb=A()}ka($g,Yg);$g.prototype.fetch=function(a,b){var c=this,d=b&&b.headers&&b.headers.Accept||"",e=!b||!b.method||"GET"===b.method,g=ld(a)+d,h=!!this.wb[g];if(e&&h)return this.wb[g].then(function(a){return a.clone()});var k=Yg.prototype.fetch.call(this,a,b);e&&(this.wb[g]=k.then(function(a){delete c.wb[g];return a.clone()},function(a){delete c.wb[g];throw a;}));return k};var ah=[];function bh(a){df.call(this,a);ah.push(this)}ka(bh,df);bh.prototype.getLayoutPriority=function(){return 0};bh.prototype.isLayoutSupported=function(){return!0};bh.prototype.reconstructWhenReparented=function(){return!1};var ch={0:"cld",2:"adld"};function dh(a,b){this.A=a;this.Fc=Vd(a);this.ec=this.dc=null;this.af=!1;this.Od=ch[b]}dh.prototype.enterViewport=function(){this.Od&&!this.dc&&(this.dc=this.A.Date.now(),eh(this))};dh.prototype.startLayout=function(){this.Od&&!this.ec&&(this.ec=this.A.Date.now(),eh(this))};function eh(a){if(a.Fc&&a.Fc.isPerformanceTrackingOn()&&!a.af&&a.dc&&a.ec){var b=a.A.Math.max(a.ec-a.dc,0);a.Fc.tickDelta(a.Od,b);a.Fc.throttledFlush();a.af=!0}};function fh(a,b,c){b.__AMP__RESOURCE=this;this.zd=a;this.element=b;this.debugid=b.tagName.toLowerCase()+"#"+a;this.hostWin=b.ownerDocument.defaultView;this.w=c;this.bh=b.hasAttribute("placeholder");this.zb=!1;this.ib=void 0;this.H=b.isBuilt()?1:0;this.fe=-1;this.ha=0;this.xf=null;this.kc=!1;this.ba=G(-1E4,-1E4,0,0);this.Dd=null;this.Kd=!1;this.fb=this.pa=null;this.ee=void 0;this.zf=!1;a=new E;this.hh=a.promise;this.Rd=a.resolve;this.D=K(this.hostWin,"layers");this.Uc=K(this.hostWin,"layers-prioritization")} | |
| function X(a){return a.__AMP__RESOURCE}f=fh.prototype;f.getId=function(){return this.zd};f.updateOwner=function(a){this.ib=a};f.getOwner=function(){if(void 0===this.ib){for(var a=this.element;a;a=a.parentElement)if(a.__AMP__OWNER){this.ib=a.__AMP__OWNER;break}void 0===this.ib&&(this.ib=null)}return this.ib};f.hasOwner=function(){return!!this.getOwner()};f.getLayoutPriority=function(){return-1!=this.fe?this.fe:this.element.getLayoutPriority()};f.updateLayoutPriority=function(a){this.fe=a}; | |
| f.getState=function(){return this.H};f.isBuilt=function(){return this.element.isBuilt()};f.isBuilding=function(){return this.zb};f.whenBuilt=function(){return this.element.signals().whenSignal("res-built")}; | |
| f.build=function(){var a=this;if(this.zb||!this.element.isUpgraded()||!this.w.grantBuildPermission())return null;this.zb=!0;return this.element.build().then(function(){a.zb=!1;a.hasBeenMeasured()?(a.H=2,a.element.updateLayoutBox(a.getLayoutBox(),!0)):a.H=1;a.element.signals().signal("res-built");a.element.dispatchCustomEvent("amp:built")},function(b){a.maybeReportErrorOnBuildFailure(b);a.zb=!1;a.element.signals().rejectSignal("res-built",b);throw b;})}; | |
| f.maybeReportErrorOnBuildFailure=function(a){Of(a)||x().error("Resource","failed to build:",this.debugid,a)};f.applySizesAndMediaQuery=function(){this.element.applySizesAndMediaQuery()};f.changeSize=function(a,b,c){this.element.changeSize(a,b,c);this.requestMeasure()};f.overflowCallback=function(a,b,c,d){a&&(this.ee={height:b,width:c,margins:d});this.element.overflowCallback(a,b,c,d)};f.resetPendingChangeSize=function(){this.ee=void 0};f.getPendingChangeSize=function(){return this.ee}; | |
| f.getUpgradeDelayMs=function(){return this.element.getUpgradeDelayMs()}; | |
| f.measure=function(){if(!(this.bh&&this.element.parentElement&&gb(this.element.parentElement.tagName,"AMP-"))||"__AMP__RESOURCE"in this.element.parentElement){this.Kd=!1;var a=this.ba;if(this.D){var b=this.element;b.getLayers().remeasure(b,!0);this.ba=this.getPageLayoutBox()}else{b=this.w.getViewport();var c=this.w.getViewport().getLayoutRect(this.element);this.ba=c;var d=!1;if(b.supportsPositionFixed()&&this.isDisplayed())for(var e=this.w.win,g=e.document.body,h=this.element;h&&h!=g;h=h.offsetParent){if(h.isAlwaysFixed&& | |
| h.isAlwaysFixed()){d=!0;break}if(b.isDeclaredFixed(h)&&"fixed"==De(e,h).position){d=!0;break}}if(this.kc=d)this.ba=fc(c,-b.getScrollLeft(),-b.getScrollTop())}var k=this.ba;b=a;c=k;var l=!(b.width==c.width&&b.height===c.height);1!=this.H&&a.top==k.top&&!l||!this.element.isUpgraded()||0==this.H||1!=this.H&&!this.element.isRelayoutNeeded()||(this.H=2);this.hasBeenMeasured()||(this.Dd=k);this.element.updateLayoutBox(k,l)}}; | |
| f.completeCollapse=function(){Ce(this.element,!1);this.ba=this.D?G(0,0,0,0):G(this.ba.left,this.ba.top,0,0);this.kc=!1;this.element.updateLayoutBox(this.getLayoutBox());var a=this.getOwner();a&&a.collapsedCallback(this.element)};f.completeExpand=function(){Ce(this.element,!0);this.requestMeasure()};f.isMeasureRequested=function(){return this.Kd};f.hasBeenMeasured=function(){return!!this.Dd};f.requestMeasure=function(){this.Kd=!0}; | |
| f.getLayoutBox=function(){if(this.D){var a=this.element,b=a.getLayers(),c=b.getScrolledPosition(a);a=b.getSize(a);return G(c.left,c.top,a.width,a.height)}if(!this.kc)return this.ba;c=this.w.getViewport();return fc(this.ba,c.getScrollLeft(),c.getScrollTop())};f.getPageLayoutBox=function(){if(this.D){var a=this.element,b=a.getLayers(),c=b.getOffsetPosition(a);a=b.getSize(a);return G(c.left,c.top,a.width,a.height)}return this.ba};f.getInitialLayoutBox=function(){return this.Dd||this.ba}; | |
| f.isDisplayed=function(){var a="fluid"==this.element.getLayout(),b=this.getLayoutBox(),c=0<b.height&&0<b.width;return(a||c)&&!!this.element.ownerDocument&&!!this.element.ownerDocument.defaultView};f.isFixed=function(){return this.kc};f.overlaps=function(a){var b=this.getLayoutBox();return b.top<=a.bottom&&a.top<=b.bottom&&b.left<=a.right&&a.left<=b.right};f.prerenderAllowed=function(){return this.element.prerenderAllowed()}; | |
| f.whenWithinViewport=function(a){if(!this.isLayoutPending()||!0===a)return Promise.resolve();var b=a;a=String(b);if(this.pa&&this.pa[a])return this.pa[a].promise;if(this.isWithinViewportRatio(b))return Promise.resolve();this.pa=this.pa||{};this.pa[a]=new E;return this.pa[a].promise};function gh(a){if(a.pa){var b=a.getDistanceViewportRatio(),c;for(c in a.pa)a.isWithinViewportRatio(parseFloat(c),b)&&(a.pa[c].resolve(),delete a.pa[c])}} | |
| f.getDistanceViewportRatio=function(){if(this.D&&this.Uc){var a=this.element;return{distance:a.getLayers().iterateAncestry(a,this.eh)}}var b=this.w.getViewport().getRect(),c=this.getLayoutBox(),d=this.w.getScrollDirection(),e=1,g=0;if(b.right<c.left||b.left>c.right)return{distance:!1};if(b.bottom<c.top)g=c.top-b.bottom,-1==d&&(e=2);else if(b.top>c.bottom)g=b.top-c.bottom,1==d&&(e=2);else return{distance:!0};return{distance:g,scrollPenalty:e,viewportHeight:b.height}}; | |
| f.isWithinViewportRatio=function(a,b){if("boolean"===typeof a)return a;var c=b||this.getDistanceViewportRatio(),d=c.distance,e=c.viewportHeight;return this.D&&this.Uc?d<a:"boolean"==typeof d?d:d<e*a/c.scrollPenalty};f.eh=function(a,b,c){a=a||0;var d=1+c/10,e=b.isActiveUnsafe()?1:2;b=b.getHorizontalViewportsFromParent()+b.getVerticalViewportsFromParent();return a+e*d*b};f.renderOutsideViewport=function(){gh(this);return this.hasOwner()||this.isWithinViewportRatio(this.element.renderOutsideViewport())}; | |
| f.idleRenderOutsideViewport=function(){return this.isWithinViewportRatio(this.element.idleRenderOutsideViewport())};f.layoutScheduled=function(a){this.H=3;this.element.layoutScheduleTime=a};f.layoutCanceled=function(){this.H=this.hasBeenMeasured()?2:1}; | |
| f.startLayout=function(){var a=this;if(this.fb)return this.fb;if(4==this.H)return Promise.resolve();if(5==this.H)return Promise.reject(this.xf);this.isDisplayed();if(0<this.ha&&!this.element.isRelayoutNeeded())return this.H=4,Promise.resolve();this.ha++;this.H=3;return this.fb=(new Promise(function(b,c){qe(a.hostWin).mutate(function(){try{b(a.element.layoutCallback())}catch(d){c(d)}})})).then(function(){return hh(a,!0)},function(b){return hh(a,!1,b)})}; | |
| function hh(a,b,c){a.Rd&&(a.Rd(),a.Rd=null);a.fb=null;a.zf=!0;a.H=b?4:5;a.xf=c;if(!b)return Promise.reject(c)}f.isLayoutPending=function(){return 4!=this.H&&5!=this.H};f.loadedOnce=function(){return this.hh};f.hasLoadedOnce=function(){return this.zf};f.isInViewport=function(){var a=this.element.isInViewport();a&&gh(this);return a};f.setInViewport=function(a){this.element.viewportCallback(a)}; | |
| f.unlayout=function(){0!=this.H&&1!=this.H&&(this.setInViewport(!1),this.element.unlayoutCallback()&&(this.element.togglePlaceholder(!0),this.H=1,this.ha=0,this.fb=null))};f.getTaskId=function(a){return this.debugid+"#"+a};f.pause=function(){this.element.pauseCallback();this.element.unlayoutOnPause()&&this.unlayout()};f.pauseOnRemove=function(){this.element.pauseCallback()};f.resume=function(){this.element.resumeCallback()};f.unload=function(){this.pause();this.unlayout()}; | |
| f.disconnect=function(){delete this.element.__AMP__RESOURCE;this.element.disconnect(!0)};function ih(){this.Fa=A();this.ea=null}f=ih.prototype;f.get=function(a){return this.Fa[a]||null};f.whenSignal=function(a){var b=this.ea&&this.ea[a];if(!b){var c=this.Fa[a];null!=c?b={promise:"number"==typeof c?Promise.resolve(c):Promise.reject(c)}:(c=new E,b={promise:c.promise,resolve:c.resolve,reject:c.reject});this.ea||(this.ea=A());this.ea[a]=b}return b.promise}; | |
| f.signal=function(a,b){if(null==this.Fa[a]){var c=b||Date.now();this.Fa[a]=c;(a=this.ea&&this.ea[a])&&a.resolve&&(a.resolve(c),a.resolve=void 0,a.reject=void 0)}};f.rejectSignal=function(a,b){null==this.Fa[a]&&(this.Fa[a]=b,(a=this.ea&&this.ea[a])&&a.reject&&(a.reject(b),a.resolve=void 0,a.reject=void 0))};f.reset=function(a){this.Fa[a]&&delete this.Fa[a];var b=this.ea&&this.ea[a];b&&!b.resolve&&delete this.ea[a]};var jh=['<div class="i-amphtml-loader">\n <div class="i-amphtml-loader-dot"></div>\n <div class="i-amphtml-loader-dot"></div>\n <div class="i-amphtml-loader-dot"></div>\n </div>'];jh.raw=['<div class="i-amphtml-loader">\n <div class="i-amphtml-loader-dot"></div>\n <div class="i-amphtml-loader-dot"></div>\n <div class="i-amphtml-loader-dot"></div>\n </div>'];var kh=['<div class="i-amphtml-loader-line">\n <div class="i-amphtml-loader-moving-line"></div>\n </div>']; | |
| kh.raw=['<div class="i-amphtml-loader-line">\n <div class="i-amphtml-loader-moving-line"></div>\n </div>'];var lh={"AMP-AD":!0};function mh(a,b,c){var d=this;this.T=U(a);this.Ug=b;this.Hg=c||0;this.ta=-1;this.Zd=0;this.Sa=!1;this.yg=function(){return d.Ec()}}mh.prototype.isPending=function(){return-1!=this.ta};mh.prototype.schedule=function(a){a=a||this.Hg;this.Sa&&10>a&&(a=10);var b=Date.now()+a;return!this.isPending()||-10>b-this.Zd?(this.cancel(),this.Zd=b,this.ta=this.T.delay(this.yg,a),!0):!1};mh.prototype.Ec=function(){this.ta=-1;this.Zd=0;this.Sa=!0;this.Ug();this.Sa=!1}; | |
| mh.prototype.cancel=function(){this.isPending()&&(this.T.cancel(this.ta),this.ta=-1)};var nh=Date.now();function oh(a,b){var c=a.split(",");y(0<c.length,"sizes has to have at least one size");var d=[];c.forEach(function(a){a=a.replace(/\s+/g," ").trim();if(0!=a.length){var c=a.charAt(a.length-1),e,k=!1;if(")"==c){k=!0;var l=1;for(e=a.length-2;0<=e;e--){var m=a.charAt(e);"("==m?l--:")"==m&&l++;if(0==l)break}var n=e-1;if(0<e)for(e--;0<=e&&(m=a.charAt(e),"%"==m||"-"==m||"_"==m||"a"<=m&&"z">=m||"A"<=m&&"Z">=m||"0"<=m&&"9">=m);e--);y(e<n,'Invalid CSS function in "%s"',a)}else for(e=a.length-2;0<=e&&(m=a.charAt(e), | |
| "%"==m||"."==m||"a"<=m&&"z">=m||"A"<=m&&"Z">=m||"0"<=m&&"9">=m);e--);if(0<=e){var p=a.substring(0,e+1).trim();var t=a.substring(e+1).trim()}else t=a,p=void 0;d.push({mediaQuery:p,size:k?t:b?Ne(t):Me(t)})}});return new ph(d)} | |
| function ph(a){y(0<a.length,"SizeList must have at least one option");this.Ih=a;for(var b=0;b<a.length;b++){var c=a[b];b<a.length-1?y(c.mediaQuery,"All options except for the last must have a media condition"):y(!c.mediaQuery,"The last option must not have a media condition")}}ph.prototype.select=function(a){for(var b=this.Ih,c=b.length-1,d=0;d<c;d++){var e=b[d];if(a.matchMedia(e.mediaQuery).matches)return e.size}return b[c].size};var qh=['\n <div class="i-amphtml-loading-container i-amphtml-fill-content\n amp-hidden"></div>'];qh.raw=['\n <div class="i-amphtml-loading-container i-amphtml-fill-content\n amp-hidden"></div>'];var rh;function sh(a,b){function c(a){return d.call(this,a)||this}var d=th(a);ka(c,d);c.prototype.elementName=function(){return b};return c} | |
| function th(a){function b(a){a=c.call(this,a)||this;a.createdCallback();return a}if(a.BaseCustomElementClass)return a.BaseCustomElementClass;var c=a.HTMLElement;ka(b,c);b.prototype.createdCallback=function(){this.jc=this.Te=!1;this.ld=null;this.readyState="loading";this.everAttached=!1;this.eb=this.w=this.F=null;this.layout_="nodisplay";this.layoutWidth_=-1;this.ha=0;this.Mb=this.bb=this.Id=!1;this.hc=this.Kc=this.sc=void 0;this.warnOnMissingOverflow=!0;this.Ud=this.Sd=this.sizerElement=void 0;this.Td= | |
| this.Pa=null;this.ia=void 0;var b=a.ampExtendedElements&&a.ampExtendedElements[this.elementName()];this.implementation_=new b(this);this.ob=1;this.ig=0;this.Cb=this.Ka=void 0;this.S=new ih;var c=Vd(a);this.Hf=c&&c.isPerformanceTrackingOn();this.Qd=null;this.__AMP_UPG_RES&&(this.__AMP_UPG_RES(this),delete this.__AMP_UPG_RES,delete this.__AMP_UPG_PRM)};b.prototype.elementName=function(){};b.prototype.signals=function(){return this.S};b.prototype.getAmpDoc=function(){return this.F};b.prototype.getResources= | |
| function(){return this.w};b.prototype.getLayers=function(){return this.eb};b.prototype.isUpgraded=function(){return 2==this.ob};b.prototype.upgrade=function(a){this.Cb||1!=this.ob||(this.implementation_=new a(this),this.everAttached&&this.fg())};b.prototype.getUpgradeDelayMs=function(){return this.ig};b.prototype.pd=function(b,c){this.ig=a.Date.now()-c;this.ob=2;this.implementation_=b;this.classList.remove("amp-unresolved");this.classList.remove("i-amphtml-unresolved");this.implementation_.createdCallback(); | |
| this.rg();this.implementation_.layout_=this.layout_;this.implementation_.layoutWidth_=this.layoutWidth_;this.implementation_.firstAttachedCallback();this.Na("amp:attached");this.getResources().upgraded(this)};b.prototype.rg=function(){if("nodisplay"!=this.layout_&&!this.implementation_.isLayoutSupported(this.layout_)){var a="Layout not supported: "+this.layout_;this.getAttribute("layout")||(a+=". The element did not specify a layout attribute. Check https://www.ampproject.org/docs/guides/responsive/control_layout and the respective element documentation for details."); | |
| throw w().createError(a);}};b.prototype.isBuilt=function(){return this.Te};b.prototype.whenBuilt=function(){return this.S.whenSignal("built")};b.prototype.getLayoutPriority=function(){this.isUpgraded();return this.implementation_.getLayoutPriority()};b.prototype.getDefaultActionAlias=function(){this.isUpgraded();return this.implementation_.getDefaultActionAlias()};b.prototype.build=function(){var a=this;this.isUpgraded();return this.ld?this.ld:this.ld=(new Promise(function(b,c){var d=a.Ng();d?ge(a, | |
| "consentPolicyManager","amp-consent").then(function(a){return a?a.whenPolicyUnblock(d):!0}).then(function(d){d?b(a.implementation_.buildCallback()):c(Error("BLOCK_BY_CONSENT"))}):b(a.implementation_.buildCallback())})).then(function(){a.preconnect(!1);a.Te=!0;a.classList.remove("i-amphtml-notbuilt");a.classList.remove("amp-notbuilt");a.S.signal("built");a.bb&&a.gg(!0);a.Ka&&U(a.ownerDocument.defaultView).delay(a.Ig.bind(a),1);if(!a.getPlaceholder()){var b=a.createPlaceholder();b&&a.appendChild(b)}}, | |
| function(b){a.S.rejectSignal("built",b);Of(b)||Mf(b,a);throw b;})};b.prototype.preconnect=function(a){var b=this;a?this.implementation_.preconnectCallback(a):U(this.ownerDocument.defaultView).delay(function(){var c=b.tagName;b.ownerDocument?b.ownerDocument.defaultView?b.implementation_.preconnectCallback(a):x().error(c,"preconnect without defaultView"):x().error(c,"preconnect without ownerDocument")},1)};b.prototype.isAlwaysFixed=function(){return this.implementation_.isAlwaysFixed()};b.prototype.updateLayoutBox= | |
| function(a,b){var c=this;this.layoutWidth_=a.width;this.isUpgraded()&&(this.implementation_.layoutWidth_=this.layoutWidth_);if(this.isBuilt())try{if(this.implementation_.onLayoutMeasure(),b)this.implementation_.onMeasureChanged()}catch(h){Mf(h,this)}this.lc()&&(this.bb?this.toggleLoading(!0):1E3>a.top&&0<=a.top&&this.vc(function(){return c.Kf()}))};b.prototype.jf=function(){void 0===this.sizerElement&&"responsive"===this.layout_&&(this.sizerElement=this.querySelector("i-amphtml-sizer"));return this.sizerElement|| | |
| null};b.prototype.applySizesAndMediaQuery=function(){void 0===this.sc&&(this.sc=this.getAttribute("media")||null);if(this.sc){var a=this.ownerDocument.defaultView;this.classList.toggle("i-amphtml-hidden-by-media-query",!a.matchMedia(this.sc).matches)}if(void 0===this.Kc){var b=this.getAttribute("sizes");this.Kc=b?oh(b):null}this.Kc&&W(this,"width",this.Kc.select(this.ownerDocument.defaultView));void 0===this.hc&&"responsive"===this.layout_&&(this.hc=(b=this.getAttribute("heights"))?oh(b,!0):null); | |
| this.hc&&(b=this.jf())&&W(b,"paddingTop",this.hc.select(this.ownerDocument.defaultView))};b.prototype.changeSize=function(a,b,c){var d=this.jf();d&&(this.sizerElement=null,W(d,"paddingTop","0"),this.vc(function(){d.parentElement&&d.parentElement.removeChild(d)}));void 0!==a&&W(this,"height",a,"px");void 0!==b&&W(this,"width",b,"px");c&&(null!=c.top&&W(this,"marginTop",c.top,"px"),null!=c.right&&W(this,"marginRight",c.right,"px"),null!=c.bottom&&W(this,"marginBottom",c.bottom,"px"),null!=c.left&&W(this, | |
| "marginLeft",c.left,"px"));this.Wg()&&this.Hh();this.dispatchCustomEvent("amp:size-changed")};b.prototype.connectedCallback=function(){void 0===rh&&(rh="content"in self.document.createElement("template"));rh||void 0!==this.Cb||(this.Cb=!!vb(this,"template"));if(!this.Cb&&!this.jc&&rb(this)){this.jc=!0;this.everAttached||(this.classList.add("i-amphtml-element"),this.classList.add("i-amphtml-notbuilt"),this.classList.add("amp-notbuilt"));if(!this.F){var a=this.ownerDocument.defaultView,b=le(a).getAmpDoc(this); | |
| this.F=b;var c=this.tagName.toLowerCase();this.implementation_ instanceof bh&&!b.declaresExtension(c)&&me(a).installExtensionForDoc(b,c)}this.w||(this.w=pe(this.F));K(this.F.win,"layers")&&(this.eb||(this.eb=R(this.F,"layers")),this.getLayers().add(this));this.getResources().add(this);if(this.everAttached){var h=this.reconstructWhenReparented();h&&this.Rf();this.isUpgraded()&&(h&&this.getResources().upgraded(this),this.Na("amp:attached"))}else{this.everAttached=!0;try{var k=this.getAttribute("i-amphtml-layout"); | |
| if(k){var l=Je(k);"responsive"!=l&&"intrinsic"!=l||!this.firstElementChild?"nodisplay"==l&&(Ce(this,!1),this.style.display=""):this.sizerElement=this.querySelector("i-amphtml-sizer")||void 0;var m=l}else{var n=this.getAttribute("layout"),p=this.getAttribute("width"),t=this.getAttribute("height"),u=this.getAttribute("sizes"),v=this.getAttribute("heights"),D=n?Je(n):null;y(void 0!==D,"Unknown layout: %s",n);var J=p&&"auto"!=p?Le(p):p;y(void 0!==J,"Invalid width value: %s",p);var N=t&&"fluid"!=t?Le(t): | |
| t;y(void 0!==N,"Invalid height value: %s",t);var O;if(!(O=D&&"fixed"!=D&&"fixed-height"!=D||J&&N)){var Z=this.tagName;Z=Z.toUpperCase();O=void 0===Ge[Z]}if(O){var H=J;var B=N}else{var S=this.tagName.toUpperCase();if(!Ge[S]){var Ka=this.ownerDocument,z=S.replace(/^AMP\-/,""),Q=Ka.createElement(z);Q.controls=!0;Ae(Q,{position:"absolute",visibility:"hidden"});Ka.body.appendChild(Q);Ge[S]={width:(Q.offsetWidth||1)+"px",height:(Q.offsetHeight||1)+"px"};Ka.body.removeChild(Q)}var Lc=Ge[S];H=J||"fixed-height"== | |
| D?J:Lc.width;B=N||Lc.height}var F=D?D:H||B?"fluid"==B?"fluid":!B||H&&"auto"!=H?B&&H&&(u||v)?"responsive":"fixed":"fixed-height":"container";"fixed"!=F&&"fixed-height"!=F&&"responsive"!=F&&"intrinsic"!=F||y(B,"Expected height to be available: %s",t);"fixed-height"==F&&y(!H||"auto"==H,'Expected width to be either absent or equal "auto" for fixed-height layout: %s',p);"fixed"!=F&&"responsive"!=F&&"intrinsic"!=F||y(H&&"auto"!=H,'Expected width to be available and not equal to "auto": %s',p);"responsive"== | |
| F||"intrinsic"==F?y(Oe(H)==Oe(B),"Length units should be the same for width and height: %s, %s",p,t):y(null===v,'Unexpected "heights" attribute for none-responsive layout');this.classList.add("i-amphtml-layout-"+F);Ke(F)&&this.classList.add("i-amphtml-layout-size-defined");if("nodisplay"==F)Ce(this,!1),this.style.display="";else if("fixed"==F)Ae(this,{width:H,height:B});else if("fixed-height"==F)W(this,"height",B);else if("responsive"==F){var fa=this.ownerDocument.createElement("i-amphtml-sizer"); | |
| Ae(fa,{paddingTop:Pe(B)/Pe(H)*100+"%"});this.insertBefore(fa,this.firstChild);this.sizerElement=fa}else if("intrinsic"==F){var ga=te(this)(Ee);ga.firstElementChild.setAttribute("src",'data:image/svg+xml;charset=utf-8,<svg height="'+B+'" width="'+H+'" xmlns="http://www.w3.org/2000/svg" version="1.1"/>');this.insertBefore(ga,this.firstChild);this.sizerElement=ga}else"fill"!=F&&"container"!=F&&("flex-item"==F?(H&&W(this,"width",H),B&&W(this,"height",B)):"fluid"==F&&(this.classList.add("i-amphtml-layout-awaiting-size"), | |
| H&&W(this,"width",H),W(this,"height",0)));this.setAttribute("i-amphtml-layout",F);m=F}this.layout_=m}catch(la){Mf(la,this)}this.implementation_ instanceof bh||this.fg();this.isUpgraded()||(this.classList.add("amp-unresolved"),this.classList.add("i-amphtml-unresolved"),this.Na("amp:stubbed"))}}};b.prototype.Wg=function(){return this.classList.contains("i-amphtml-layout-awaiting-size")};b.prototype.Hh=function(){this.classList.remove("i-amphtml-layout-awaiting-size")};b.prototype.attachedCallback=function(){this.connectedCallback()}; | |
| b.prototype.fg=function(){var b=this,c=this.implementation_;if(1==this.ob){this.ob=4;var g=a.Date.now(),h=c.upgradeCallback();h?"function"==typeof h.then?h.then(function(a){b.pd(a||c,g)}).catch(function(a){b.ob=3;Na(a)}):this.pd(h,g):this.pd(c,g)}};b.prototype.disconnectedCallback=function(){this.disconnect(!1)};b.prototype.detachedCallback=function(){this.disconnectedCallback()};b.prototype.disconnect=function(a){this.Cb||!this.jc||!a&&rb(this)||(a&&this.classList.remove("i-amphtml-element"),this.jc= | |
| !1,this.getResources().remove(this),K(this.F.win,"layers")&&this.getLayers().remove(this),this.implementation_.detachedCallback())};b.prototype.dispatchCustomEvent=function(a,b){b=b||{};var c=this.ownerDocument.createEvent("Event");c.data=b;c.initEvent(a,!0,!0);this.dispatchEvent(c)};b.prototype.Na=function(){};b.prototype.prerenderAllowed=function(){return this.implementation_.prerenderAllowed()};b.prototype.createPlaceholder=function(){return this.implementation_.createPlaceholderCallback()};b.prototype.renderOutsideViewport= | |
| function(){return this.implementation_.renderOutsideViewport()};b.prototype.idleRenderOutsideViewport=function(){return this.implementation_.idleRenderOutsideViewport()};b.prototype.getLayoutBox=function(){return this.getResources().getResourceForElement(this).getLayoutBox()};b.prototype.getPageLayoutBox=function(){return this.getResources().getResourceForElement(this).getPageLayoutBox()};b.prototype.getOwner=function(){return this.getResources().getResourceForElement(this).getOwner()};b.prototype.getIntersectionChangeEntry= | |
| function(){var a=this.implementation_.getIntersectionElementLayoutBox(),b=this.getResources().getResourceForElement(this).getOwner(),c=this.implementation_.getViewport().getRect(),h=b&&b.getLayoutBox(),k=dc(a,h,c)||G(0,0,0,0);b=k.width*k.height;var l=a.width*a.height;b=0===l?0:b/l;if(l=c)k=fc(k,-c.left,-c.top),a=fc(a,-c.left,-c.top),l=fc(l,-c.left,-c.top);return{time:"undefined"!==typeof performance&&performance.now?performance.now():Date.now()-nh,rootBounds:l,boundingClientRect:a,intersectionRect:k, | |
| intersectionRatio:b}};b.prototype.getResourceId=function(){return this.getResources().getResourceForElement(this).getId()};b.prototype.Og=function(){return this.getResources().getResourceForElement(this).getState()};b.prototype.isRelayoutNeeded=function(){return this.implementation_.isRelayoutNeeded()};b.prototype.getImpl=function(){var a=this;return this.whenBuilt().then(function(){return a.implementation_})};b.prototype.getLayout=function(){return this.layout_};b.prototype.layoutCallback=function(){var a= | |
| this;this.isBuilt();this.Na("amp:load:start");var b=0==this.ha;this.S.reset("unload");b&&this.S.signal("load-start");this.Hf&&this.hf().startLayout();var c=Sa(function(){return a.implementation_.layoutCallback()});this.preconnect(!0);this.classList.add("i-amphtml-layout");return c.then(function(){b&&a.S.signal("load-end");a.readyState="complete";a.ha++;a.toggleLoading(!1,{cleanup:!0});a.Id||(a.implementation_.firstLayoutCompleted(),a.Id=!0,a.Na("amp:load:end"))},function(c){b&&a.S.rejectSignal("load-end", | |
| c);a.ha++;a.toggleLoading(!1,{cleanup:!0});throw c;})};b.prototype.isInViewport=function(){return this.bb};b.prototype.viewportCallback=function(a){var b=this;a!=this.bb&&this.ownerDocument&&this.ownerDocument.defaultView&&(this.bb=a,0==this.ha&&(a?U(this.ownerDocument.defaultView).delay(function(){b.bb&&b.ownerDocument&&b.ownerDocument.defaultView&&b.toggleLoading(!0)},100):this.toggleLoading(!1)),this.isBuilt()&&this.gg(a))};b.prototype.gg=function(a){this.implementation_.inViewport_=a;this.implementation_.viewportCallback(a); | |
| a&&this.Hf&&this.hf().enterViewport()};b.prototype.isPaused=function(){return this.Mb};b.prototype.pauseCallback=function(){this.Mb||(this.Mb=!0,this.viewportCallback(!1),this.isBuilt()&&this.implementation_.pauseCallback())};b.prototype.resumeCallback=function(){this.Mb&&(this.Mb=!1,this.isBuilt()&&this.implementation_.resumeCallback())};b.prototype.unlayoutCallback=function(){if(!this.isBuilt())return!1;this.S.signal("unload");var a=this.implementation_.unlayoutCallback();a&&this.Rf();return a}; | |
| b.prototype.Rf=function(){this.ha=0;this.Id=!1;this.S.reset("render-start");this.S.reset("load-start");this.S.reset("load-end");this.S.reset("ini-load")};b.prototype.unlayoutOnPause=function(){return this.implementation_.unlayoutOnPause()};b.prototype.reconstructWhenReparented=function(){return this.implementation_.reconstructWhenReparented()};b.prototype.collapse=function(){this.implementation_.collapse()};b.prototype.collapsedCallback=function(a){this.implementation_.collapsedCallback(a)};b.prototype.expand= | |
| function(){this.implementation_.expand()};b.prototype.expandedCallback=function(a){this.implementation_.expandedCallback(a)};b.prototype.mutatedAttributesCallback=function(a){this.implementation_.mutatedAttributesCallback(a)};b.prototype.enqueAction=function(a){this.isBuilt()?this.df(a,!1):(void 0===this.Ka&&(this.Ka=[]),this.Ka.push(a))};b.prototype.Ig=function(){var a=this;if(this.Ka){var b=this.Ka;this.Ka=null;b.forEach(function(b){a.df(b,!0)})}};b.prototype.df=function(a,b){try{this.implementation_.executeAction(a, | |
| b)}catch(g){Na("Action execution failed:",g,a.node.tagName,a.method)}};b.prototype.Ng=function(){var a=this.getAttribute("data-block-on-consent");if(null===a)if(a=this.getAmpDoc(),(a=T(a).metaTags["amp-consent-blocking"])?"string"!==typeof a?(w().error("CONSENT","Invalid amp-consent-blocking value, ignore meta tag"),a=!1):(a=a.toUpperCase().replace(/\s/g,"").split(","),a=a.includes(this.tagName)?!0:!1):a=!1,a)a="default",this.setAttribute("data-block-on-consent",a);else return null;return""==a||"default"== | |
| a?this.implementation_.getConsentPolicy():a};b.prototype.getRealChildNodes=function(){return zb(this,function(a){return!uh(a)})};b.prototype.getRealChildren=function(){return xb(this,function(a){return!uh(a)})};b.prototype.getPlaceholder=function(){return yb(this,function(a){return a.hasAttribute("placeholder")&&!("placeholder"in a)})};b.prototype.togglePlaceholder=function(a){if(a){var b=this.getPlaceholder();b&&b.classList.remove("amp-hidden")}else{/^[\w-]+$/.test("placeholder");var c=(void 0!== | |
| Ya?Ya:Ya=Za(this))?this.querySelectorAll("> [placeholder]".replace(/^|,/g,"$&:scope ")):Kb(this,"> [placeholder]");for(b=0;b<c.length;b++)"placeholder"in c[b]||c[b].classList.add("amp-hidden")}};b.prototype.getFallback=function(){return Ab(this,"fallback")};b.prototype.toggleFallback=function(a){var b=this.Og();if(!a||0!=b&&1!=b&&2!=b)if(this.classList.toggle("amp-notsupported",a),1==a){var c=this.getFallback();c&&this.getResources().scheduleLayout(this,c)}};b.prototype.renderStarted=function(){this.S.signal("render-start"); | |
| this.togglePlaceholder(!1);this.toggleLoading(!1)};b.prototype.lc=function(){if(this.Yg())return!1;void 0===this.Sd&&(this.Sd=this.hasAttribute("noloading"));var a;(a=this.Sd)||(a=this.tagName.toUpperCase(),a=!(He[a]||Ie.test(a)));return a||100>this.layoutWidth_||0<this.ha||uh(this)||!Ke(this.layout_)?!1:!0};b.prototype.Yg=function(){return this.F&&this.F.win!=this.ownerDocument.defaultView||"inabox"==r().runtime};b.prototype.Kf=function(){if(this.lc()&&!this.Pa){var a=this.ownerDocument,b=te(a)(qh), | |
| c=this.elementName();a=lh[c.toUpperCase()]?te(a)(kh):te(a)(jh);b.appendChild(a);this.appendChild(b);this.Pa=b;this.Td=a}};b.prototype.toggleLoading=function(a,b){var c=this,d=b&&b.cleanup,e=b&&b.force;if(!a||this.implementation_.isLoadingReused()||!(0<this.ha||this.S.get("render-start")))if((this.Ud=a)||this.Pa)!a||e||this.lc()?this.vc(function(){var a=c.Ud;!a||e||c.lc()||(a=!1);a&&c.Kf();if(c.Pa&&(c.Pa.classList.toggle("amp-hidden",!a),c.Td.classList.toggle("amp-active",a),!a&&d&&!c.implementation_.isLoadingReused())){var b= | |
| c.Pa;c.Pa=null;c.Td=null;c.vc(function(){var a=b;a.parentElement&&a.parentElement.removeChild(a)})}}):this.Ud=!1};b.prototype.hf=function(){this.Qd||(this.Qd=new dh(this.ownerDocument.defaultView,this.getLayoutPriority()));return this.Qd};b.prototype.getOverflowElement=function(){void 0===this.ia&&(this.ia=Ab(this,"overflow"))&&(this.ia.hasAttribute("tabindex")||this.ia.setAttribute("tabindex","0"),this.ia.hasAttribute("role")||this.ia.setAttribute("role","button"));return this.ia};b.prototype.overflowCallback= | |
| function(a,b,c){var d=this;this.getOverflowElement();this.ia?(this.ia.classList.toggle("amp-visible",a),this.ia.onclick=a?function(){var a=d.getResources();a.changeSize(d,b,c);a.mutateElement(d,function(){d.overflowCallback(!1,b,c)})}:null):a&&this.warnOnMissingOverflow&&w().warn("CustomElement","Cannot resize element and overflow is not available",this)};b.prototype.vc=function(a){this.w?this.getResources().mutateElement(this,a):a()};a.BaseCustomElementClass=b;return a.BaseCustomElementClass} | |
| function uh(a){var b="string"==typeof a?a:a.tagName;return b&&gb(b.toLowerCase(),"i-")||a.tagName&&(a.hasAttribute("placeholder")||a.hasAttribute("fallback")||a.hasAttribute("overflow"))?!0:!1};function vh(a){a.ampExtendedElements||(a.ampExtendedElements={});return a.ampExtendedElements}function wh(a,b,c){var d=vh(a);if(!d[b])xh(a,b,c);else if(d[b]!=c){y(d[b]==bh,"%s is already registered. The script tag for %s is likely included twice in the page.",b,b);d[b]=c;for(var e=0;e<ah.length;e++){var g=ah[e],h=g.element;if(h.tagName.toLowerCase()==b&&h.ownerDocument.defaultView==a){try{h.upgrade(c)}catch(k){Mf(k,h)}ah.splice(e--,1)}}}} | |
| function yh(a){je(a.getHeadNode()).forEach(function(b){a.declareExtension(b);zh(a.win,b)})}function zh(a,b){vh(a)[b]||xh(a,b,bh)}function xh(a,b,c){vh(a)[b]=c;var d=sh(a,b),e="customElements"in a;e?a.customElements.define(b,d):a.document.registerElement(b,{prototype:d.prototype})};function Ah(a){if(!a.hasAttribute("src")&&0=="srcset"in a){var b=a.getAttribute("srcset"),c=/\S+/.exec(b);if(null!=c){var d=c[0];a.setAttribute("src",d)}}};var Bh="alt title referrerpolicy aria-label aria-describedby aria-labelledby srcset src sizes".split(" ");function Ch(a){df.call(this,a);this.Lf=this.Yb=!0;this.Rc=this.Sc=this.J=null;this.Ee=K(this.win,"amp-img-auto-sizes");this.Zf=0}ka(Ch,df);f=Ch.prototype;f.mutatedAttributesCallback=function(a){if(this.J){var b=Bh.filter(function(b){return void 0!==a[b]});this.propagateAttributes(b,this.J,!0);Ah(this.J)}};f.onMeasureChanged=function(){this.Ee&&Dh(this)}; | |
| f.preconnectCallback=function(a){var b=this.element.getAttribute("src");b?this.preconnect.url(b,a):(b=this.element.getAttribute("srcset"))&&(b=/\S+/.exec(b))&&this.preconnect.url(b[0],a)};f.firstAttachedCallback=function(){this.element.hasAttribute("noprerender")&&(this.Lf=!1)};f.isLayoutSupported=function(a){return Ke(a)}; | |
| f.ic=function(){this.J||(this.Yb=!this.element.hasAttribute("fallback"),this.element.hasAttribute("i-amphtml-ssr")&&(this.J=this.element.querySelector("img")),this.J=this.J||new Image,this.J.setAttribute("decoding","async"),this.element.id&&this.J.setAttribute("amp-img-id",this.element.id),"img"==this.element.getAttribute("role")&&(this.element.removeAttribute("role"),this.user().error("AMP-IMG","Setting role=img on amp-img elements breaks screen readers please just set alt or ARIA attributes, they will be correctly propagated for the underlying <img> element.")), | |
| this.propagateAttributes(Bh,this.J),Ah(this.J),this.Ee&&Dh(this),this.applyFillContent(this.J,!0),this.element.appendChild(this.J))}; | |
| function Dh(a){if(a.J&&!a.element.getAttribute("sizes")){var b=a.element.getAttribute("srcset");if(b&&!/[0-9]+x(?:,|$)/.test(b)&&(b=a.getLayoutWidth(),a.J.hasAttribute("sizes")?b>a.Zf:1)){var c=a.getViewport().getWidth(),d="(max-width: "+c+"px) "+b+"px, ",e=b+"px";"fixed"!==a.getLayout()&&(e=Math.max(Math.round(100*b/c),100)+"vw");var g=d+e;a.mutateElement(function(){a.J.setAttribute("sizes",g)});a.Zf=b}}}f.prerenderAllowed=function(){return this.Lf};f.reconstructWhenReparented=function(){return!1}; | |
| f.layoutCallback=function(){var a=this;this.ic();var b=this.J;this.Sc=Te(b,"load",function(){return Eh(a)});this.Rc=Te(b,"error",function(){return Fh(a)});return 0>=this.getLayoutWidth()?Promise.resolve():this.loadPromise(b)};f.unlayoutCallback=function(){this.Rc&&(this.Rc(),this.Rc=null);this.Sc&&(this.Sc(),this.Sc=null);return!0}; | |
| f.firstLayoutCompleted=function(){var a=this.getPlaceholder();a&&a.classList.contains("i-amphtml-blurry-placeholder")&&K(this.win,"blurry-placeholder")?ye(a,{opacity:0}):this.togglePlaceholder(!1)};function Eh(a){!a.Yb&&a.J.classList.contains("i-amphtml-ghost")&&a.getVsync().mutate(function(){a.J.classList.remove("i-amphtml-ghost");a.toggleFallback(!1)})} | |
| function Fh(a){a.Yb&&(a.getVsync().mutate(function(){a.J.classList.add("i-amphtml-ghost");a.toggleFallback(!0);a.togglePlaceholder(!1)}),a.Yb=!1)};function Gh(a){df.apply(this,arguments)}ka(Gh,df);Gh.prototype.isLayoutSupported=function(a){return"container"==a||Ke(a)};Gh.prototype.buildCallback=function(){if("container"!=this.getLayout()){var a=this.win.document.createElement("div");this.applyFillContent(a);this.getRealChildNodes().forEach(function(b){a.appendChild(b)});this.element.appendChild(a)}};Gh.prototype.prerenderAllowed=function(){return!0};function Hh(a,b,c){c=void 0===c?!1:c;a=new a.Image;c&&(a.referrerPolicy="no-referrer");a.src=b;return a};function Ih(a){df.call(this,a);this.pe=null}ka(Ih,df);Ih.prototype.isLayoutSupported=function(){return!0};Ih.prototype.buildCallback=function(){this.element.setAttribute("aria-hidden","true");(this.Hc=this.element.getAttribute("referrerpolicy"))&&y("no-referrer"==this.Hc,'amp-pixel: invalid "referrerpolicy" value "'+this.Hc+'". Only "no-referrer" is supported');this.element.hasAttribute("i-amphtml-ssr")&&this.element.querySelector("img")?x().info("amp-pixel","inabox img already present"):V(this.getAmpDoc()).whenFirstVisible().then(this.Nh.bind(this))}; | |
| Ih.prototype.Nh=function(){var a=this;if(this.pe)return x().error("amp-pixel","duplicate pixel"),this.pe;this.pe=U(this.win).promise(1).then(function(){var b=a.element.getAttribute("src");if(b)return Bd(a.element,"url-replace").expandUrlAsync(Jh(b)).then(function(b){var c=a.win,e=a.Hc;e&&"no-referrer"!==e&&w().error("pixel","Unsupported referrerPolicy: %s",e);if("no-referrer"===e)if("referrerPolicy"in Image.prototype)c=Hh(c,b,!0);else{var g=c.document;e=C({src:"about:blank",style:"display:none"}); | |
| g=g.createElement("iframe");for(var h in e)g.setAttribute(h,e[h]);c.document.body.appendChild(g);Hh(g.contentWindow,b);c=g}else c=Hh(c,b);var k=c;x().info("amp-pixel","pixel triggered: ",b);return k})})};function Jh(a){y(/^(https:\/\/|\/\/)/i.test(a),'The <amp-pixel> src attribute must start with "https://" or "//". Invalid value: '+a);return a};var Kh=["amp-ad","amp-embed","amp-video"],Lh=["amp-mustache"];function Mh(a){this.win=a;this.La=le(a);this.bc={};this.ab=null}f=Mh.prototype;f.registerExtension=function(a,b,c){var d=Nh(this,a,!0);try{this.ab=a,b(c,c._),d.loaded=!0,d.resolve&&d.resolve(d.extension)}catch(e){throw d.error=e,d.reject&&d.reject(e),e;}finally{this.ab=null}};f.waitForExtension=function(a,b,c){return U(a).timeoutPromise(c||8E3,Oh(Nh(this,b,!1)),"Render timeout waiting for extension "+b+" to be load.")}; | |
| f.preloadExtension=function(a,b){"amp-embed"==a&&(a="amp-ad");var c=Nh(this,a,!1);if(c.loaded||c.error)var d=!1;else void 0===c.scriptPresent&&(c.scriptPresent=!!this.win.document.head.querySelector('[custom-element="'+a+'"]')),d=!c.scriptPresent;if(d){d=b;b=this.win.document.createElement("script");b.async=!0;gb(a,"_")?d="":b.setAttribute(0<=Lh.indexOf(a)?"custom-template":"custom-element",a);b.setAttribute("data-script",a);b.setAttribute("i-amphtml-inserted","");var e=d;d=Vc.cdn;var g=r().rtvVersion; | |
| null==e&&(e="0.1");e=e?"-"+e:"";var h=r().singlePassType?r().singlePassType+"/":"";b.src=d+"/rtv/"+g+"/"+h+"v0/"+a+e+".js";this.win.document.head.appendChild(b);c.scriptPresent=!0}return Oh(c)};f.installExtensionForDoc=function(a,b,c){var d=this,e=a.getRootNode(),g=e.__AMP_EXT_LDR;g||(g=e.__AMP_EXT_LDR=A());if(g[b])return g[b];zh(a.win,b);return g[b]=this.preloadExtension(b,c).then(function(){return Ph(d,a,b)})}; | |
| f.reloadExtension=function(a,b){this.bc[a]&&delete this.bc[a];b.removeAttribute("custom-element");b.setAttribute("i-amphtml-loaded-new-version",a);var c=b.src.match(/^(.*)\/(.*)-([0-9.]+)\.js$/i),d={extensionId:c?c[2]:void 0,extensionVersion:c?c[3]:void 0};return this.preloadExtension(a,d.extensionVersion)};f.loadElementClass=function(a){return this.preloadExtension(a).then(function(b){return b.elements[a].implementationClass})}; | |
| f.addElement=function(a,b,c){Qh(this,a).extension.elements[a]={implementationClass:b,css:c};this.addDocFactory(function(d){Rh(d,a,b,c)})};function Rh(a,b,c,d){d?rf(a,d,function(){Sh(a.win,b,c)},!1,b):Sh(a.win,b,c)}function Sh(a,b,c){wh(a,b,c);L(a,b,Th)}f.addService=function(a,b){Qh(this).extension.services.push({serviceName:a,serviceClass:b});this.addDocFactory(function(c){M(c,a,b,!0)})}; | |
| f.addDocFactory=function(a,b){var c=Qh(this,b);c.docFactories.push(a);if(this.ab&&(this.La.isSingleDoc()||this.La.hasAmpDocShell())){var d=this.La.getAmpDoc(this.win.document);(d.declaresExtension(this.ab)||c.auto)&&a(d)}};f.installExtensionsInDoc=function(a,b){var c=this,d=[];b.forEach(function(b){d.push(Ph(c,a,b))});return Promise.all(d)}; | |
| function Ph(a,b,c){var d=Nh(a,c,!1);return Oh(d).then(function(){b.declareExtension(c);d.docFactories.forEach(function(a){try{a(b)}catch(g){Na("Doc factory failed: ",g,c)}})})} | |
| f.installExtensionsInChildWindow=function(a,b,c){var d=this,e=this.win,g=a.frameElement.ownerDocument.defaultView;$d(a,g);Uh(a);vf(a.document,cssText$$module$build$css,null,!0,"amp-runtime");c&&c(a);Vh(a,g);Wh(e,a);Xh(a);var h=[];b.forEach(function(b){Kh.includes(b)||zh(a,b);var c=d.preloadExtension(b).then(function(c){c.services.forEach(function(b){b=b.serviceClass;if("function"===typeof b.installInEmbedWindow){var c=Fd(a.frameElement);b.installInEmbedWindow(a,c)}});var d=null,e={},g;for(g in c.elements){e.elementName= | |
| g;e.elementDef=c.elements[e.elementName];var h=(new Promise(function(c){return function(d){c.elementDef.css?vf(a.document,c.elementDef.css,d,!1,b):d()}}(e))).then(function(b){return function(){wh(a,b.elementName,b.elementDef.implementationClass)}}(e));d?d.push(h):d=[h];e={elementDef:e.elementDef,elementName:e.elementName}}return d?Promise.all(d).then(function(){return c}):c});h.push(c)});return Promise.all(h)}; | |
| function Nh(a,b,c){var d=a.bc[b];d||(d={extension:{elements:{},services:[]},auto:c,docFactories:[],promise:void 0,resolve:void 0,reject:void 0,loaded:void 0,error:void 0,scriptPresent:void 0},a.bc[b]=d);return d}function Qh(a,b){a.ab||x().error("extensions","unknown extension for ",b);return Nh(a,a.ab||"_UNKNOWN_",!0)} | |
| function Oh(a){if(!a.promise)if(a.loaded)a.promise=Promise.resolve(a.extension);else if(a.error)a.promise=Promise.reject(a.error);else{var b=new E;a.promise=b.promise;a.resolve=b.resolve;a.reject=b.reject}return a.promise}function Wh(a,b){var c=vh(a)["amp-img"];xh(b,"amp-img",c||bh);a=vh(a)["amp-pixel"];xh(b,"amp-pixel",a||bh)}function Xh(a){Kh.forEach(function(b){zh(a,b)})}function Uh(a){wa(a);sa(a);Sc(a)} | |
| function Vh(a,b){var c=a.frameElement,d=[Bd(c,"url"),Bd(c,"action"),Bd(c,"standard-actions"),R(c,"navigation"),U(b)],e=Fd(c);d.forEach(function(b){b.constructor.installInEmbedWindow(a,e)})}function Th(){return{}};function Yh(a){this.F=a;this.h=V(this.F);this.ge=null;this.T=U(this.F.win)}Yh.prototype.isSupported=function(){return this.h.isCctEmbedded()&&this.h.isProxyOrigin()};Yh.prototype.getScopedCid=function(a){var b=this;if(!this.h.isCctEmbedded())return Promise.resolve(null);this.ge||(this.ge=this.vb("https://ampcid.google.com/v1/cache:getClientId?key=AIzaSyDKtqGxnoeIqVM33Uf7hRSa3GJxuzR7mLc"));return this.ge.then(function(c){return c?Zh(b,c,a):null})}; | |
| Yh.prototype.vb=function(a,b){var c=this;b=void 0===b?!0:b;var d=C({publisherOrigin:rd(this.F.win.location)});return this.T.timeoutPromise(3E4,P(this.F.win,"xhr").fetchJson(a,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:d})).then(function(a){return a.json().then(function(a){if(a.optOut)return null;var d=a.publisherClientId;if(!d&&b&&a.alternateUrl){var e=a.alternateUrl+"?key=AIzaSyDKtqGxnoeIqVM33Uf7hRSa3GJxuzR7mLc";return c.vb(e,!1)}return d})}).catch(function(a){a&&a.response? | |
| a.response.json().then(function(a){x().error("CacheCidApi",JSON.stringify(a))}):x().error("CacheCidApi",a);return null})};function Zh(a,b,c){b=b+";"+c;return P(a.F.win,"crypto").sha384Base64(b).then(function(a){return"amp-"+a})};function $h(a){this.A=a.win;this.T=U(this.A);this.od={};var b=T(a).canonicalUrl;this.nd=b?I(b).origin:null} | |
| $h.prototype.getScopedCid=function(a,b){var c=this;if(this.od[b])return this.od[b];var d;return this.od[b]=this.T.poll(200,function(){d=ud(c.A,"AMP_TOKEN");return"$RETRIEVING"!==d}).then(function(){if("$OPT_OUT"===d)return"$OPT_OUT";var e="$NOT_FOUND"===d&&md(c.A.document.referrer);if(!e&&d&&"$"===d[0])return null;d&&(!d||"$"!==d[0])||ai(c,"$RETRIEVING",3E4);return c.vb("https://ampcid.google.com/v1/publisher:getClientId?key="+a,b,d).then(function(e){var g=c.mf(e);if(!g&&e.alternateUrl){var k=e.alternateUrl+ | |
| "?key="+a;return c.vb(k,b,d).then(c.mf.bind(c))}return g}).catch(function(a){ai(c,"$ERROR",3E4);a&&a.response?a.response.json().then(function(a){x().error("GoogleCidApi",JSON.stringify(a))}):x().error("GoogleCidApi",a);return null})})};$h.prototype.vb=function(a,b,c){b=C({originScope:b,canonicalOrigin:this.nd});c&&(b.securityToken=c);return this.T.timeoutPromise(3E4,P(this.A,"xhr").fetchJson(a,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:b}).then(function(a){return a.json()}))}; | |
| $h.prototype.mf=function(a){if(a.optOut)return ai(this,"$OPT_OUT",31536E6),"$OPT_OUT";if(a.clientId)return ai(this,a.securityToken,31536E6),a.clientId;if(a.alternateUrl)return null;ai(this,"$NOT_FOUND",36E5);return null};function ai(a,b,c){b&&vd(a.A,"AMP_TOKEN",b,a.A.Date.now()+c,{highestAvailableDomain:!0})};function bi(a){this.F=a;this.h=V(this.F);this.nd=(a=T(this.F).canonicalUrl)?I(a).origin:null}bi.prototype.isSupported=function(){return this.h.hasCapability("cid")?this.h.isTrustedViewer():Promise.resolve(!1)};bi.prototype.getScopedCid=function(a,b){b=C({scope:b,clientIdApi:!!a,canonicalOrigin:this.nd});a&&(b.apiKey=a);return this.h.sendMessageAwaitResponse("cid",b)};var ci={"+":"-","/":"_","=":"."};function di(a){a=Ub(a);return btoa(a).replace(/[+/=]/g,function(a){return ci[a]})};var ei=/^[a-zA-Z0-9-_.]+$/,fi={googleanalytics:"AMP_ECID_GOOGLE"},gi={googleanalytics:"AIzaSyA65lEHUEizIsNtlbNo-l2K18dT680nsaM"};function hi(a){this.ampdoc=a;this.cd=null;this.qd=Object.create(null);this.Ue=new Yh(a);this.lg=new bi(a);this.Fg=new $h(a);this.bd=null} | |
| hi.prototype.get=function(a,b,c){var d=this;y(ei.test(a.scope)&&ei.test(a.cookieName),"The CID scope and cookie name must only use the characters [a-zA-Z0-9-_.]+\nInstead found: %s",a.scope);return b.then(function(){return V(d.ampdoc).whenFirstVisible()}).then(function(){return ii(d.ampdoc)}).then(function(e){if(e)return"";var g=ji(d,a,c||b);return U(d.ampdoc.win).timeoutPromise(1E4,g,'Getting cid for "'+a.scope+'" timed out').catch(function(a){Na(a)})})};hi.prototype.optOut=function(){return ki(this.ampdoc)}; | |
| function ji(a,b,c){var d=b.scope,e=I(a.ampdoc.win.location.href);if(!md(e)){var g=li(a,d);return g?a.Fg.getScopedCid(g,d).then(function(e){if("$OPT_OUT"==e)return null;if(e){var g=b.cookieName||d;mi(a.ampdoc.win,g,e);return e}return ni(a,b,c)}):ni(a,b,c)}return a.lg.isSupported().then(function(b){if(b){var g=li(a,d);return a.lg.getScopedCid(g,d)}return a.Ue.isSupported()&&li(a,d)?a.Ue.getScopedCid(d).then(function(b){return b?b:oi(a,c,d,e)}):oi(a,c,d,e)})} | |
| function oi(a,b,c,d){return pi(a,b).then(function(b){return P(a.ampdoc.win,"crypto").sha384Base64(b+qi(d)+c)})}function li(a,b){a.bd||(a.bd=ri(a));return a.bd[b]} | |
| function ri(a){var b={},c=a.ampdoc.win.document.head.querySelector("meta[name=amp-google-client-id-api]");c&&c.hasAttribute("content")&&c.getAttribute("content").split(",").forEach(function(a){a=a.trim();if(0<a.indexOf("=")){var c=a.split("=");b[c[0].trim()]=c[1].trim()}else{var d=a;(a=fi[d])?b[a]=gi[d]:w().error("CID","Unsupported client for Google CID API: "+d)}});return b} | |
| function ki(a){V(a).sendMessage("cidOptOut",{});return Wd(a,"storage").then(function(a){return a.set("amp-cid-optout",!0)})}function ii(a){return Wd(a,"storage").then(function(a){return a.get("amp-cid-optout").then(function(a){return!!a})}).catch(function(){return!1})}function mi(a,b,c){var d=Date.now()+31536E6;vd(a,b,c,d,{highestAvailableDomain:!0})} | |
| function ni(a,b,c){var d=a.ampdoc.win,e=b.scope,g=b.cookieName||e,h=ud(d,g);if(!h&&!b.createCookieIfNotPresent)return Promise.resolve(null);if(a.qd[e])return a.qd[e];if(h)return/^amp-/.test(h)&&mi(d,g,h),Promise.resolve(h);var k=si(d).then(function(a){return"amp-"+a});Promise.all([k,c]).then(function(a){var b=a[0],c=ud(d,g);c||mi(d,g,b)});return a.qd[e]=k}function qi(a){y(md(a),"Expected proxy origin %s",a.origin);return rd(a)} | |
| function pi(a,b){if(a.cd)return a.cd;var c=a.ampdoc.win;return a.cd=ti(a.ampdoc).then(function(d){var e=!1;if(d&&!ui(d)){var g=Promise.resolve(d.cid);d.time+864E5<Date.now()&&(e=!0)}else g=P(c,"crypto").sha384Base64(vi(c)),e=!0;e&&g.then(function(c){wi(a.ampdoc,b,c)});return g})}function wi(a,b,c){var d=a.win;Nb(d)?xi(a,JSON.stringify(C({time:Date.now(),cid:c}))):b.then(function(){try{d.localStorage.setItem("amp-cid",JSON.stringify(C({time:Date.now(),cid:c})))}catch(e){}})} | |
| function xi(a,b){var c=V(a);return c.isTrustedViewer().then(function(a){if(a)return x().expectedError("CID","Viewer does not provide cap=cid"),c.sendMessageAwaitResponse("cid",b).then(function(a){var b;if(b=a){a:{try{var c=Rb(a);break a}catch(k){}c=void 0}b=!c}return b?(x().expectedError("CID","invalid cid format"),JSON.stringify(C({time:Date.now(),cid:a}))):a})})} | |
| function ti(a){var b=a.win;try{var c=b.localStorage.getItem("amp-cid")}catch(e){}var d=Promise.resolve(c);!c&&Nb(b)&&(d=xi(a));return d.then(function(a){if(!a)return null;a=Rb(a);return{time:a.time,cid:a.cid}})}function ui(a){var b=a.time;return b+31536E6<Date.now()}function vi(a){if(a.crypto&&a.crypto.getRandomValues){var b=new Uint8Array(16);a.crypto.getRandomValues(b)}else b=null;return b?b:String(a.location.href+Date.now()+a.Math.random()+a.screen.width+a.screen.height)} | |
| function si(a){var b=vi(a);if("string"==typeof b)return P(a,"crypto").sha384Base64(b);var c=b;return Sa(function(){return di(c).replace(/\.+$/,"")})};function yi(a){this.A=a;var b=null,c=!1;a.crypto&&(a.crypto.subtle?b=a.crypto.subtle:a.crypto.webkitSubtle&&(b=a.crypto.webkitSubtle,c=!0));this.pkcsAlgo={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};this.subtle=b;this.ah=c;this.Nb=null}f=yi.prototype; | |
| f.sha384=function(a){var b=this;"string"===typeof a&&(a=Tb(a));if(!this.subtle||this.Nb)return(this.Nb||zi(this)).then(function(b){return b(a)});try{return this.subtle.digest({name:"SHA-384"},a).then(function(a){return new Uint8Array(a)},function(c){c.message&&0>c.message.indexOf("secure origin")&&w().error("Crypto","SubtleCrypto failed, fallback to closure lib.",c);return zi(b).then(function(){return b.sha384(a)})})}catch(c){return x().error("Crypto","SubtleCrypto failed, fallback to closure lib.", | |
| c),zi(this).then(function(){return b.sha384(a)})}};f.sha384Base64=function(a){return this.sha384(a).then(function(a){return di(a)})};f.uniform=function(a){return this.sha384(a).then(function(a){for(var b=0,d=2;0<=d;d--)b=(b+a[d])/256;return b})};function zi(a){return a.Nb?a.Nb:a.Nb=me(a.A).preloadExtension("amp-crypto-polyfill").then(function(){return P(a.A,"crypto-polyfill")})}f.isPkcsAvailable=function(){return!!this.subtle&&!1!==this.A.isSecureContext}; | |
| f.importPkcsKey=function(a){this.isPkcsAvailable();var b=this.ah?Sb(JSON.stringify(a)):a;return this.subtle.importKey("jwk",b,this.pkcsAlgo,!0,["verify"])};f.verifyPkcs=function(a,b,c){this.isPkcsAvailable();return this.subtle.verify(this.pkcsAlgo,a,b,c)};var Ai=["prefetch","preload","preconnect","dns-prefetch"];function Bi(a){this.F=a;this.Bd=null} | |
| Bi.prototype.get=function(){if(this.Bd)return this.Bd;var a=this.F,b=a.getUrl(),c=qd(b),d=(b=a.getRootNode())&&b.AMP&&b.AMP.canonicalUrl;if(!d){var e=b.querySelector("link[rel=canonical]");d=e?I(e.href).href:c}var g=String(Math.floor(1E4*a.win.Math.random())),h=Ci(a.win.document),k=Di(a.win.document),l=Ei(a);return this.Bd={get sourceUrl(){return qd(a.getUrl())},canonicalUrl:d,pageViewId:g,linkRels:h,metaTags:k,replaceParams:l}}; | |
| function Ci(a){var b=A();if(a.head){var c=a.head.querySelectorAll("link[rel]");a={};for(var d=0;d<c.length;a={href:a.href},d++){var e=c[d];a.href=e.href;var g=e.getAttribute("rel");g&&a.href&&g.split(/\s+/).forEach(function(a){return function(c){if(-1==Ai.indexOf(c)){var d=b[c];d?(ya(d)||(d=b[c]=[d]),d.push(a.href)):b[c]=a.href}}}(a))}}return b} | |
| function Di(a){var b=A();if(a.head){var c=a.head.querySelectorAll("meta[name]");for(a=0;a<c.length;a++){var d=c[a],e=d.getAttribute("content");if((d=d.getAttribute("name"))&&e){var g=b[d];g?(ya(g)||(g=b[d]=[g]),g.push(e)):b[d]=e}}}return b}function Ei(a){var b;(b=!a.isSingleDoc())||(b=a.win.location.href,"string"==typeof b&&(b=I(b)),b="a"!=(md(b)?b.pathname.split("/",2)[1]:null));if(b)return null;a=I(a.win.location.href);var c=q(a.search).amp_r;return void 0===c?null:q(c)};function Y(){this.aa=null}f=Y.prototype;f.add=function(a){var b=this;this.aa||(this.aa=[]);this.aa.push(a);return function(){b.remove(a)}};f.remove=function(a){this.aa&&(a=this.aa.indexOf(a),-1<a&&this.aa.splice(a,1))};f.removeAll=function(){this.aa&&(this.aa.length=0)};f.fire=function(a){if(this.aa)for(var b=this.aa,c=0;c<b.length;c++)(0,b[c])(a)};f.getHandlerCount=function(){return this.aa?this.aa.length:0};function Fi(a){this.win=a;this.$=a.document;this.Oa=xe(this.$,"hidden",!0);void 0===this.$[this.Oa]&&(this.Oa=null);this.Wc=xe(this.$,"visibilityState",!0);void 0===this.$[this.Wc]&&(this.Wc=null);this.Wb=new Y;this.Vc=null;if(this.Oa){this.Vc="visibilitychange";var b=this.Oa.indexOf("Hidden");-1!=b&&(this.Vc=this.Oa.substring(0,b)+"Visibilitychange")}this.xg=this.be.bind(this);this.Vc&&this.$.addEventListener(this.Vc,this.xg);this.Za=null}f=Fi.prototype; | |
| f.isHidden=function(){return this.Oa?this.$[this.Oa]:!1};f.getVisibilityState=function(){return this.Wc?this.$[this.Wc]:this.isHidden()?"hidden":"visible"};f.onVisibilityChanged=function(a){return this.Wb.add(a)};f.be=function(){this.Wb.fire()};f.onBodyAvailable=function(a){var b=this.$;if(b.body)return a(),null;this.Za||(this.Za=new Y,hb(b.documentElement,function(){return!!b.body},this.lh.bind(this)));return this.Za.add(a)};f.lh=function(){this.Za.fire();this.Za.removeAll();this.Za=null};var Gi=null,Hi=["gclid","gclsrc"],Ii=[/^t.co$/];function Ji(){return y(Gi,"E#19457 trackImpressionPromise")} | |
| function Ki(){var a=self,b=new E,c=b.promise,d=b.resolve;Gi=U(a).timeoutPromise(8E3,c,"TrackImpressionPromise timeout").catch(function(a){x().warn("IMPRESSION",a)});b=V(a.document.documentElement);var e=b.isTrustedViewer(),g=b.getReferrerUrl().then(function(a){return Li(a)});Promise.all([e,g]).then(function(b){var c=b[0],e=b[1];if(c||e||K(a,"alp")){var g=Mi(a),h=Ni(a);Promise.all([g,h]).then(function(){d()},function(){})}else d()})} | |
| function Mi(a){var b=V(a.document.documentElement);return b.getParam("replaceUrl")?b.hasCapability("replaceUrl")?b.sendMessageAwaitResponse("getReplaceUrl",void 0).then(function(a){a&&"object"==typeof a?b.replaceUrl(a.replaceUrl||null):x().warn("IMPRESSION","get invalid replaceUrl response")},function(a){x().warn("IMPRESSION","Error request replaceUrl from viewer",a)}):(b.replaceUrl(b.getParam("replaceUrl")||null),Promise.resolve()):Promise.resolve()} | |
| function Li(a){var b=I(a);return"https:"!=b.protocol?!1:Ii.some(function(a){return a.test(b.hostname)})} | |
| function Ni(a){var b=V(a.document.documentElement),c=b.getParam("click");if(!c)return Promise.resolve();if(0!=c.indexOf("https://"))return w().warn("IMPRESSION","click fragment param should start with https://. Found ",c),Promise.resolve();a.location.hash&&(a.location.hash="");return b.whenFirstVisible().then(function(){return Oi(a,c)}).then(function(b){if(b){var c=b.location;(b=b.tracking_url||c)&&!md(b)&&((new Image).src=b);if(c&&a.history.replaceState){b=V(a.document.documentElement);var d=a.location.href; | |
| c=I(c);c=q(c.search);c=hd(d,c);a.history.replaceState(null,"",c);b.maybeUpdateFragmentForCct()}}}).catch(function(a){w().warn("IMPRESSION","Error on request clickUrl: ",a)})}function Oi(a,b){return P(a,"xhr").fetchJson(b,{credentials:"include",requireAmpResponseSourceOrigin:!1}).then(function(a){return 204==a.status?null:a.json()})}function Pi(a){return a.whenReady().then(function(){return!!a.getBody().querySelector("amp-analytics[type=googleanalytics]")})};function Qi(){this.C=[]}Qi.prototype.peek=function(){var a=this.C.length;return a?this.C[a-1].item:null};Qi.prototype.enqueue=function(a,b){if(isNaN(b))throw Error("Priority must not be NaN.");for(var c=-1,d=0,e=this.C.length;d<=e;){c=Math.floor((d+e)/2);if(c===this.C.length)break;if(this.C[c].priority<b)d=c+1;else if(0<c&&this.C[c-1].priority>=b)e=c-1;else break}this.C.splice(c,0,{item:a,priority:b})};Qi.prototype.forEach=function(a){for(var b=this.C.length;b--;)a(this.C[b].item)}; | |
| Qi.prototype.dequeue=function(){return this.C.length?this.C.pop().item:null};ma.Object.defineProperties(Qi.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.C.length}}});var Ri=["_top","_blank"]; | |
| function Si(a,b){var c=this;this.ampdoc=a;this.la=b||a.getRootNode();this.G=re(this.ampdoc);this.h=V(this.ampdoc);this.P=R(this.ampdoc,"history");this.sa=oe(this.ampdoc.win);this.$g=this.sa.isIos()&&this.sa.isSafari();this.Bb=Nb(this.ampdoc.win)&&this.h.isOvertakeHistory();this.Hd=this.la!=this.ampdoc.getRootNode();this.Zg="inabox"==r(this.ampdoc.win).runtime;this.Xf=this.la.nodeType==Node.DOCUMENT_NODE?this.la.documentElement:this.la;this.qb=this.Tg.bind(this);this.la.addEventListener("click",this.qb); | |
| this.la.addEventListener("contextmenu",this.qb);this.De=!1;Pi(this.ampdoc).then(function(a){c.De=a});this.Zc=null;this.Ce=new Qi}Si.installInEmbedWindow=function(a,b){Td(a,"navigation",new Si(b,a.document))};f=Si.prototype;f.cleanup=function(){this.qb&&(this.la.removeEventListener("click",this.qb),this.la.removeEventListener("contextmenu",this.qb))};f.openWindow=function(a,b,c,d){var e="";!this.sa.isIos()&&this.sa.isChrome()||d||(e+="noopener");var g=Lb(a,b,c,e);g&&!d&&(g.opener=null)}; | |
| f.navigateTo=function(a,b,c,d){var e=void 0===d?{}:d;d=void 0===e.target?"_top":e.target;e=void 0===e.opener?!1:e.opener;var g=Bd(this.Xf,"url");if(g.isProtocolValid(b))if(y(Ri.includes(d),"Target '"+d+"' not supported."),"_blank"==d)this.openWindow(a,b,d,e);else{if(c&&(this.Zc||(this.Zc=Ti(this)),this.Zc.includes(c)&&this.navigateToAmpUrl(b,c)))return;a.top.location.href=b}else w().error("navigation","Cannot navigate to invalid protocol: "+b)}; | |
| f.navigateToAmpUrl=function(a,b){return this.h.hasCapability("a2a")?(this.h.sendMessage("a2aNavigate",C({url:a,requestedBy:b})),!0):!1};function Ti(a){return(a=a.la.querySelector('meta[name="amp-to-amp-navigation"]'))&&a.hasAttribute("content")?a.getAttribute("content").split(",").map(function(a){return a.trim()}):[]} | |
| f.Tg=function(a){if(!a.defaultPrevented){var b=vb(a.target,"A");if(b&&b.href)if("click"==a.type){Ui(this,b);var c=Vi(this,b.href),d;if(d=!Wi(this,a,b,c)){if(this.Bb){d=b.ownerDocument.defaultView;var e=b.href;c=c.protocol;"ftp:"==c?(Lb(d,e,"_blank"),a.preventDefault(),d=!0):(c=/^(https?|mailto):$/.test(c),this.$g&&!c?(Lb(d,e,"_top"),a.preventDefault(),d=!0):d=!1)}else d=!1;d=!d}d&&(Xi(this,b,a),c=Vi(this,b.href),Yi(this,a,b,c))}else"contextmenu"==a.type&&(Ui(this,b),Xi(this,b,a))}}; | |
| function Xi(a,b,c){a.Ce.forEach(function(a){a(b,c)})} | |
| function Ui(a,b){var c=null;if(a.De&&!a.Hd){a=I(a.ampdoc.win.location.href);var d=q(a.search);a=[];for(var e=0;e<Hi.length;e++){var g=Hi[e];"undefined"!==typeof d[g]&&a.push(g)}d=b.getAttribute("data-amp-addparams");e=b.href;d&&(e=hd(e,q(d)));d=I(e);d=q(d.search);for(e=a.length-1;0<=e;e--)"undefined"!==typeof d[a[e]]&&a.splice(e,1);d="";for(e=0;e<a.length;e++)g=a[e],d+=0==e?g+"=QUERY_PARAM("+g+")":"&"+g+"=QUERY_PARAM("+g+")";c=d}var h=Bd(b,"url-replace");h.maybeExpandLink(b,c)} | |
| function Wi(a,b,c,d){if(!c.hasAttribute("rel"))return!1;var e=c.getAttribute("rel").split(" ").map(function(a){return a.trim()});return e.includes("amphtml")?a.navigateToAmpUrl(d.href,"<a rel=amphtml>")?(b.preventDefault(),!0):!1:!1} | |
| function Yi(a,b,c,d){var e="",g=Vi(a,e),h=""+d.origin+d.pathname+d.search,k=""+g.origin+g.pathname+g.search;if(d.hash&&h==k){if(b.preventDefault(),!a.Hd){var l=d.hash.slice(1),m=null;if(l){var n=String(l).replace(Wa,Xa);m=a.la.getElementById(l)||a.la.querySelector('a[name="'+n+'"]')}d.hash!=g.hash?a.P.replaceStateForTarget(d.hash).then(function(){Zi(a,m,l)}):Zi(a,m,l)}}else if(a.Hd||a.Zg){var p=(c.getAttribute("target")||"").toLowerCase();"_top"!=p&&"_blank"!=p&&c.setAttribute("target","_blank")}else if(oe(a.ampdoc.win).isIe()){var t= | |
| d.hash.substring(1),u=a.ampdoc.getElementById(t);u&&(/^(?:a|select|input|button|textarea)$/i.test(u.tagName)||(u.tabIndex=-1),Mb(u))}}f.registerAnchorMutator=function(a,b){this.Ce.enqueue(a,b)};function Zi(a,b,c){b?(a.G.scrollIntoView(b),U(a.ampdoc.win).delay(function(){return a.G.scrollIntoView(b)},1)):x().warn("navigation","failed to find element with id="+c+" or a[name="+c+"]")}function Vi(a,b){return Bd(a.Xf,"url").parse(b)};function $i(a){ke(a).then(function(b){b&&a.getRootNode().addEventListener("submit",aj,!0)})} | |
| function aj(a){if(!a.defaultPrevented){var b=a.target;if(b&&"FORM"==b.tagName){var c=b.classList.contains("i-amphtml-form"),d;(d=c?!b.hasAttribute("amp-novalidate"):!b.hasAttribute("novalidate"))&&b.checkValidity&&!b.checkValidity()&&a.preventDefault();for(var e=b.elements,g=0;g<e.length;g++)y(!e[g].name||"__amp_source_origin"!=e[g].name,"Illegal input name, %s found: %s","__amp_source_origin",e[g]);g=b.getAttribute("action");var h=b.getAttribute("action-xhr"),k=(b.getAttribute("method")||"GET").toUpperCase(); | |
| h&&(kd(h,b,"action-xhr"),y(!md(h),"form action-xhr should not be on AMP CDN: %s",b),td(h));g&&(kd(g,b,"action"),y(!md(g),"form action should not be on AMP CDN: %s",b),td(g));"GET"==k?y(h||g,"form action-xhr or action attribute is required for method=GET: %s",b):"POST"==k&&(g&&w().error("form","action attribute is invalid for method=POST: %s",b),h||(a.preventDefault(),y(!1,"Only XHR based (via action-xhr attribute) submissions are support for POST requests. %s",b)));(g=b.getAttribute("target"))?y("_blank"== | |
| g||"_top"==g,"form target=%s is invalid can only be _blank or _top: %s",g,b):b.setAttribute("target","_top");h&&(a.preventDefault(),a.stopImmediatePropagation(),Bd(b,"action").execute(b,"submit",null,b,b,a,100))}}};function bj(a){try{return a.state}catch(b){return null}};function cj(a,b){this.F=a;this.T=U(a.win);this.j=b;this.B=0;this.Va=[];this.C=[];this.j.setOnStateUpdated(this.da.bind(this))}f=cj.prototype;f.cleanup=function(){this.j.cleanup()};f.push=function(a,b){var c=this;return dj(this,function(){return c.j.push(b).then(function(b){c.da(b);a&&(c.Va[b.stackIndex]=a);return b.stackIndex})},"push")};f.pop=function(a){var b=this;return dj(this,function(){return b.j.pop(a).then(function(a){b.da(a)})},"pop")}; | |
| f.replace=function(a){var b=this;return dj(this,function(){return b.j.replace(a)},"replace")};f.get=function(){var a=this;return dj(this,function(){return a.j.get()},"get")};f.goBack=function(){var a=this;return dj(this,function(){return 0>=a.B?Promise.resolve():a.j.pop(a.B).then(function(b){a.da(b)})},"goBack")};f.replaceStateForTarget=function(a){var b=this,c=this.F.win.location.hash;return this.push(function(){b.F.win.location.replace(c||"#")}).then(function(){b.j.replaceStateForTarget(a)})}; | |
| f.getFragment=function(){return this.j.getFragment()};f.updateFragment=function(a){"#"==a[0]&&(a=a.substr(1));return this.j.updateFragment(a)};f.da=function(a){this.B=a.stackIndex;ej(this,a)};function ej(a,b){if(!(a.B>=a.Va.length-1)){for(var c=[],d=a.Va.length-1;d>a.B;d--)a.Va[d]&&(c.push(a.Va[d]),a.Va[d]=void 0);a.Va.splice(a.B+1);if(0<c.length)for(d={yb:0};d.yb<c.length;d={yb:d.yb},d.yb++)a.T.delay(function(a){return function(){return c[a.yb](b)}}(d),1)}} | |
| function dj(a,b,c){var d=new E,e=d.promise,g=Error("history trace for "+c+": ");a.C.push({callback:b,resolve:d.resolve,reject:d.reject,trace:g});1==a.C.length&&fj(a);return e}function fj(a){if(0!=a.C.length){var b=a.C[0];try{var c=b.callback()}catch(d){c=Promise.reject(d)}c.then(function(a){b.resolve(a)},function(a){x().error("History","failed to execute a task:",a);b.trace&&(b.trace.message+=a,x().error("History",b.trace));b.reject(a)}).then(function(){a.C.splice(0,1);fj(a)})}} | |
| function gj(a){var b=this;this.win=a;this.T=U(a);a=this.win.history;this.Wa=a.length-1;var c=bj(a);c&&void 0!==c["AMP.History"]&&(this.Wa=Math.min(c["AMP.History"],this.Wa));this.B=this.Wa;this.da=null;this.Kh="state"in a;this.nb=hj(this,this.B);if(a.pushState&&a.replaceState){this.Bc=a.originalPushState||a.pushState.bind(a);this.Jb=a.originalReplaceState||a.replaceState.bind(a);var d=function(a,c,d){b.nb=a;b.Bc(a,c,d||null)};var e=function(a,c,d){b.nb=a;void 0!==d?b.Jb(a,c,d):b.Jb(a,c)};a.originalPushState|| | |
| (a.originalPushState=this.Bc);a.originalReplaceState||(a.originalReplaceState=this.Jb)}else d=function(a){b.nb=a},e=function(a){b.nb=a};this.wh=d;this.Ic=e;try{this.Ic(hj(this,this.B,!0))}catch(g){x().error("History","Initial replaceState failed: "+g.message)}a.pushState=this.qf.bind(this);a.replaceState=this.yd.bind(this);this.Gc=function(){var a=ij(b),c=a?a["AMP.History"]:void 0,d=b.B,e=b.Yc;b.Yc=void 0;d>b.win.history.length-2&&(d=b.win.history.length-2,b.za(jj(a,{stackIndex:d})));d=void 0==c? | |
| d+1:c<b.win.history.length?c:b.win.history.length-1;a||(a={});a["AMP.History"]=d;b.Ic(a,void 0,void 0);d!=b.B&&b.za(jj(a,{stackIndex:d}));d<b.Wa&&(b.Wa=d);e&&e.resolve()};this.win.addEventListener("popstate",this.Gc)}f=gj.prototype;f.cleanup=function(){this.Bc&&(this.win.history.pushState=this.Bc);this.Jb&&(this.win.history.replaceState=this.Jb);this.win.removeEventListener("popstate",this.Gc)};function hj(a,b,c){a=A(c?ij(a):void 0);a["AMP.History"]=b;return a} | |
| f.setOnStateUpdated=function(a){this.da=a};f.push=function(a){var b=this;return kj(this,function(){var c=jj(ij(b),a||{});b.qf(c,void 0,c.fragment?"#"+c.fragment:void 0);return Sa(function(){return jj(c,{stackIndex:b.B})})})};f.pop=function(a){var b=this;a=Math.max(a,this.Wa);return kj(this,function(){return lj(b,b.B-a+1)}).then(function(a){return jj(ij(b),{stackIndex:a})})}; | |
| f.replace=function(a){var b=this;a=void 0===a?{}:a;return kj(this,function(){var c=jj(ij(b),a||{}),d=(c.url||"").replace(/#.*/,""),e=c.fragment?"#"+c.fragment:"";b.yd(c,c.title,d||e?d+e:void 0);return Sa(function(){return jj(c,{stackIndex:b.B})})})};f.get=function(){var a=this;return Sa(function(){return jj(ij(a),{stackIndex:a.B})})};f.backTo=function(a){var b=this;a=Math.max(a,this.Wa);return kj(this,function(){return lj(b,b.B-a)})};function ij(a){return a.Kh?bj(a.win.history):a.nb} | |
| function kj(a,b){return a.Yc?a.Yc.promise.then(b,b):b()}function mj(a){var b=new E,c=b.resolve,d=b.reject;b=a.T.timeoutPromise(500,b.promise);a.Yc={promise:b,resolve:c,reject:d};return b}function lj(a,b){if(0>=b)return Promise.resolve(a.B);a.nb=hj(a,a.B-b);var c=mj(a);a.win.history.go(-b);return c.then(function(){return Promise.resolve(a.B)})} | |
| f.qf=function(a,b,c){a||(a={});var d=this.B+1;a["AMP.History"]=d;this.wh(a,b,c);d!=this.win.history.length-1&&(d=this.win.history.length-1,a["AMP.History"]=d,this.Ic(a));a=jj(a,{stackIndex:d});this.za(a)};f.replaceStateForTarget=function(a){var b=this;kj(this,function(){b.win.removeEventListener("popstate",b.Gc);try{b.win.location.replace(a)}finally{b.win.addEventListener("popstate",b.Gc)}b.yd();return Promise.resolve()})}; | |
| f.yd=function(a,b,c){a||(a={});var d=Math.min(this.B,this.win.history.length-1);a["AMP.History"]=d;this.Ic(a,b,c);a=jj(a,{stackIndex:d});this.za(a)};f.za=function(a){a.stackIndex=Math.min(a.stackIndex,this.win.history.length-1);this.B!=a.stackIndex&&(this.B=a.stackIndex,this.da&&this.da(a))};f.getFragment=function(){var a=this.win.location.hash;a=a.substr(1);return Promise.resolve(a)};f.updateFragment=function(a){return this.replace({fragment:a})}; | |
| function jj(a,b){var c=Object.assign({},a&&a.data||{},b.data||{});return Object.assign({},a||{},b,{data:c})}function nj(a,b){var c=this;this.win=a;this.h=b;this.B=0;this.da=null;this.Oh=this.h.onMessage("historyPopped",function(a){void 0!==a.newStackIndex&&(a.stackIndex=a.newStackIndex);c.za(a)})}f=nj.prototype;f.replaceStateForTarget=function(a){this.win.location.replace(a)};f.cleanup=function(){this.Oh()};f.setOnStateUpdated=function(a){this.da=a}; | |
| f.push=function(a){var b=this,c=Object.assign({stackIndex:this.B+1},a||{});return this.h.sendMessageAwaitResponse("pushHistory",c).then(function(a){a=a||c;b.za(a);return a})};f.pop=function(a){var b=this;if(a>this.B)return this.get();a=C({stackIndex:this.B});return this.h.sendMessageAwaitResponse("popHistory",a).then(function(a){a=a||C({stackIndex:b.B-1});b.za(a);return a})}; | |
| f.replace=function(a){var b=this;if(a&&a.url){if(!this.h.hasCapability("fullReplaceHistory")){var c=C({stackIndex:this.B});return Promise.resolve(c)}var d=a.url.replace(/#.*/,"");a.url=d}var e=Object.assign({stackIndex:this.B},a||{});return this.h.sendMessageAwaitResponse("replaceHistory",e,!0).then(function(a){a=a||e;b.za(a);return a})};f.get=function(){return Promise.resolve({data:void 0,fragment:"",stackIndex:this.B,title:""})}; | |
| f.za=function(a){var b=a.stackIndex;this.B!=b&&(this.B=b,this.da&&this.da(a))};f.getFragment=function(){return this.h.hasCapability("fragment")?this.h.sendMessageAwaitResponse("getFragment",void 0,!0).then(function(a){if(!a)return"";"#"==a[0]&&(a=a.substr(1));return a}):Promise.resolve("")};f.updateFragment=function(a){return this.h.hasCapability("fragment")?this.h.sendMessageAwaitResponse("replaceHistory",C({fragment:a}),!0):Promise.resolve()}; | |
| function oj(a){var b=V(a);b.isOvertakeHistory()||a.win.AMP_TEST_IFRAME?b=new nj(a.win,b):(L(a.win,"global-history-binding",gj),b=P(a.win,"global-history-binding"));return new cj(a,b)};function pj(a){this.win=a;this.ug=this.mh.bind(this);this.wg=this.nh.bind(this);this.hd=this.Ke=this.jd=null;this.wd="ontouchstart"in a||void 0!==a.navigator.maxTouchPoints&&0<a.navigator.maxTouchPoints||void 0!==a.DocumentTouch;this.Eb=!1;this.win.document.addEventListener("keydown",this.ug);this.win.document.addEventListener("mousedown",this.wg);this.vd=!0;this.Df=0;this.Mh=new Y;this.Ef=new Y;this.Nd=new Y;this.wd&&(this.vd=!this.wd,this.jd=this.oh.bind(this),Ue(a.document,"mousemove",this.jd))} | |
| f=pj.prototype;f.isTouchDetected=function(){return this.wd};f.onTouchDetected=function(a,b){b&&a(this.isTouchDetected());return this.Mh.add(a)};f.isMouseDetected=function(){return this.vd};f.onMouseDetected=function(a,b){b&&a(this.isMouseDetected());return this.Ef.add(a)};f.isKeyboardActive=function(){return this.Eb};f.onKeyboardStateChanged=function(a,b){b&&a(this.isKeyboardActive());return this.Nd.add(a)}; | |
| f.mh=function(a){this.Eb||a.defaultPrevented||(a=a.target,a&&("INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"OPTION"==a.tagName||a.hasAttribute("contenteditable")))||(this.Eb=!0,this.Nd.fire(!0))};f.nh=function(){this.Eb&&(this.Eb=!1,this.Nd.fire(!1))}; | |
| f.oh=function(a){var b=this;if(a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents)this.Cf();else{this.hd||(this.hd=this.kh.bind(this),this.Ke=this.Cf.bind(this));var c,d=Ve(this.win.document,function(a){c=a});return U(this.win).timeoutPromise(300,d).then(this.Ke,function(){c&&c();b.hd()})}};f.kh=function(){this.vd=!0;this.Ef.fire(!0)};f.Cf=function(){this.Df++;3>=this.Df&&Ue(this.win.document,"mousemove",this.jd)};function qj(a){this.U=a.navigator}f=qj.prototype;f.isAndroid=function(){return/Android/i.test(this.U.userAgent)};f.isIos=function(){return/iPhone|iPad|iPod/i.test(this.U.userAgent)};f.isSafari=function(){return/Safari/i.test(this.U.userAgent)&&!this.isChrome()&&!this.isIe()&&!this.isEdge()&&!this.isFirefox()&&!this.isOpera()};f.isChrome=function(){return/Chrome|CriOS/i.test(this.U.userAgent)&&!this.isEdge()&&!this.isOpera()};f.isFirefox=function(){return/Firefox|FxiOS/i.test(this.U.userAgent)&&!this.isEdge()}; | |
| f.isOpera=function(){return/OPR\/|Opera|OPiOS/i.test(this.U.userAgent)};f.isIe=function(){return/Trident|MSIE|IEMobile/i.test(this.U.userAgent)};f.isEdge=function(){return/Edge/i.test(this.U.userAgent)};f.isWebKit=function(){return/WebKit/i.test(this.U.userAgent)&&!this.isEdge()};f.isWindows=function(){return/Windows/i.test(this.U.userAgent)};f.isStandalone=function(){return this.isIos()&&this.U.standalone};f.isBot=function(){return/bot/i.test(this.U.userAgent)}; | |
| f.getMajorVersion=function(){return this.isSafari()?this.isIos()?this.getIosMajorVersion()||0:rj(this,/\sVersion\/(\d+)/,1):this.isChrome()?rj(this,/(Chrome|CriOS)\/(\d+)/,2):this.isFirefox()?rj(this,/(Firefox|FxiOS)\/(\d+)/,2):this.isOpera()?rj(this,/(OPR|Opera|OPiOS)\/(\d+)/,2):this.isIe()?rj(this,/MSIE\s(\d+)/,1):this.isEdge()?rj(this,/Edge\/(\d+)/,1):0};function rj(a,b,c){if(!a.U.userAgent)return 0;a=a.U.userAgent.match(b);return!a||c>=a.length?0:parseInt(a[c],10)} | |
| f.getIosVersionString=function(){if(!this.U.userAgent||!this.isIos())return"";var a=this.U.userAgent.match(/OS ([0-9]+[_.][0-9]+([_.][0-9]+)?)\b/);return a?a=a[1].replace(/_/g,"."):""};f.getIosMajorVersion=function(){var a=this.getIosVersionString();return""==a?null:Number(a.split(".")[0])};function sj(a){this.H=a;this.eg=Object.create(null)}sj.prototype.addTransition=function(a,b,c){var d=a+"|"+b;this.eg[d]=c};sj.prototype.setState=function(a){var b=this.H;this.H=a;(a=this.eg[b+"|"+a])&&a()};function tj(a){var b=6E4,c=this;this.win=a;this.vh=b;this.P=[];this.Ff=new Y;this.We=function(a){a.target&&1==a.target.nodeType&&uj(c,a.target)};this.Ve=function(){U(a).delay(function(){uj(c,c.win.document.activeElement)},500)};this.win.document.addEventListener("focus",this.We,!0);this.win.addEventListener("blur",this.Ve)}f=tj.prototype;f.Vh=function(){this.win.document.removeEventListener("focus",this.We,!0);this.win.removeEventListener("blur",this.Ve)};f.onFocus=function(a){return this.Ff.add(a)}; | |
| function uj(a,b){var c=Date.now();0==a.P.length||a.P[a.P.length-1].el!=b?a.P.push({el:b,time:c}):a.P[a.P.length-1].time=c;a.purgeBefore(c-a.vh);a.Ff.fire(b)}f.getLast=function(){return 0==this.P.length?null:this.P[this.P.length-1].el};f.purgeBefore=function(a){for(var b=this.P.length-1,c=0;c<this.P.length;c++)if(this.P[c].time>=a){b=c-1;break}-1!=b&&this.P.splice(0,b+1)}; | |
| f.hasDescendantsOf=function(a){this.win.document.activeElement&&uj(this,this.win.document.activeElement);for(var b=0;b<this.P.length;b++)if(a.contains(this.P[b].el))return!0;return!1};function vj(){this.I=[];this.Tb={};this.vf=this.wf=0}f=vj.prototype;f.getSize=function(){return this.I.length};f.getLastEnqueueTime=function(){return this.wf};f.getLastDequeueTime=function(){return this.vf};f.getTaskById=function(a){return this.Tb[a]||null};f.enqueue=function(a){this.I.push(a);this.Tb[a.id]=a;this.wf=Date.now()};f.dequeue=function(a){var b=this.removeAtIndex(a,this.I.indexOf(this.Tb[a.id]));if(!b)return!1;this.vf=Date.now();return!0}; | |
| f.peek=function(a,b){for(var c=1E6,d=null,e=0;e<this.I.length;e++){var g=this.I[e],h=a(g,b);h<c&&(c=h,d=g)}return d};f.forEach=function(a){this.I.forEach(a)};f.removeAtIndex=function(a,b){var c=this.Tb[a.id];if(!c||this.I[b]!=c)return!1;this.I.splice(b,1);delete this.Tb[a.id];return!0};f.purge=function(a){for(var b=this.I.length;b--;)a(this.I[b])&&this.removeAtIndex(this.I[b],b)};function wj(a){var b;return!(b||oe(a)).isIe()||xj(a)?null:new Promise(function(b){var c=Date.now()+2E3,e=a.setInterval(function(){var d=Date.now(),h=xj(a);if(h||d>c)a.clearInterval(e),b(),h||x().error("ie-media-bug","IE media never resolved")},10)})}function xj(a){var b="(min-width: "+(a.innerWidth-1)+"px)"+(" AND (max-width: "+(a.innerWidth+1)+"px)");try{return a.matchMedia(b).matches}catch(c){return x().error("ie-media-bug","IE matchMedia failed: ",c),!0}};function yj(a){var b=this;this.ampdoc=a;this.win=a.win;this.h=V(a);this.qa=this.h.isRuntimeOn();this.Xg=!1;this.Bf=this.win.devicePixelRatio||1;this.Dh=0;this.w=[];this.Ag=this.ye=0;this.oa=this.h.isVisible();this.Ga=this.h.getPrerenderSize();this.tb=!1;this.ff=!0;this.Ae=!1;this.Ea=-1;this.jb=!0;this.Pb=-1;this.Pd=this.oc=0;this.Ec=new mh(this.win,function(){return b.doPass()});this.Qf=new mh(this.win,function(){b.jb=!0;b.schedulePass()});this.wa=new vj;this.C=new vj;this.D=K(this.win,"layers"); | |
| this.Uc=K(this.win,"layers-prioritization");var c;this.Me=c=this.D&&this.Uc?this.Cg.bind(this):this.Dg.bind(this);this.ja=[];this.xa=[];this.Gd=!1;this.G=re(this.ampdoc);this.o=qe(this.win);this.we=new tj(this.win);this.ve=!1;this.ac=0;this.Qa=!1;this.Dc=[];this.ng=new sj(this.h.getVisibilityState());zj(this,this.ng);this.G.onChanged(function(a){b.oc=Date.now();b.Pd=a.velocity;a.relayoutAll&&(b.jb=!0,b.Qa=!0);b.schedulePass()});this.G.onScroll(function(){b.oc=Date.now()});this.D&&(this.eb=R(this.ampdoc, | |
| "layers"),this.tg=this.Bg.bind(this));this.h.onVisibilityChanged(function(){-1==b.Ea&&b.h.isVisible()&&(b.Ea=Date.now());b.schedulePass()});this.h.onRuntimeState(function(a){b.qa=a;b.schedulePass(1)});this.we.onFocus(function(a){Aj(b,a)});this.schedulePass();this.rebuildDomWhenReady()}f=yj.prototype; | |
| f.rebuildDomWhenReady=function(){var a=this;this.ampdoc.whenReady().then(function(){function b(){return a.Qf.schedule()}a.tb=!0;Bj(a);a.xa=null;var c=wj(a.win);c?c.then(b):b();Cj(a);Promise.race([We(a.win),U(a.win).promise(3100)]).then(b);a.win.document.fonts&&"loaded"!=a.win.document.fonts.status&&a.win.document.fonts.ready.then(b)})};f.get=function(){return this.w.slice(0)};f.isRuntimeOn=function(){return this.qa};f.renderStarted=function(){this.ampdoc.signals().signal("render-start")}; | |
| f.getMeasuredResources=function(a,b){var c=this;return this.ampdoc.signals().whenSignal("ready-scan").then(function(){var b=[];c.w.forEach(function(d){d.hasBeenMeasured()||d.hostWin!=a||d.hasOwner()||b.push(Dj(c,d))});return Promise.all(b)}).then(function(){return c.w.filter(function(c){return c.hostWin==a&&!c.hasOwner()&&c.hasBeenMeasured()&&b(c)})})}; | |
| f.getResourcesInRect=function(a,b,c){return this.getMeasuredResources(a,function(a){return!a.isDisplayed()||!a.overlaps(b)&&!a.isFixed()||c&&!a.prerenderAllowed()?!1:!0})};function Cj(a){var b=P(a.win,"input");b.onTouchDetected(function(b){Ej(a,"amp-mode-touch",b)},!0);b.onMouseDetected(function(b){Ej(a,"amp-mode-mouse",b)},!0);b.onKeyboardStateChanged(function(b){Ej(a,"amp-mode-keyboard-active",b)},!0)} | |
| function Ej(a,b,c){a.ampdoc.whenBodyAvailable().then(function(d){a.o.mutate(function(){d.classList.toggle(b,c)})})}f.getMaxDpr=function(){return this.Bf};f.getDpr=function(){return this.Bf};f.getResourceForElement=function(a){return X(a)};f.getResourceForElementOptional=function(a){return X(a)};f.getElementLayoutBox=function(a){var b=this,c=this.getResourceForElementOptional(a);return c?Dj(this,c):this.o.measurePromise(function(){return b.getViewport().getLayoutRect(a)})}; | |
| function Dj(a,b){return b.hasBeenMeasured()?Sa(function(){return b.getPageLayoutBox()}):a.o.measurePromise(function(){b.measure();return b.getPageLayoutBox()})}f.getViewport=function(){return this.G};f.getScrollDirection=function(){return Math.sign(this.Pd)||1};f.add=function(a){this.ye++;1==this.ye&&this.G.ensureReadyForElements();var b=X(a);b&&0!=b.getState()&&!a.reconstructWhenReparented()?b.requestMeasure():b=new fh(++this.Dh,a,this);this.w.push(b);this.Qf.schedule(1E3)}; | |
| f.grantBuildPermission=function(){return 20>this.Ag++||this.h.hasBeenVisible()};function Fj(a,b,c){c=void 0===c?!1:c;var d=void 0===d?!0:d;var e=a.qa||a.Xg,g="prerender"!=a.h.getVisibilityState()||b.prerenderAllowed();e&&g&&(a.tb?Gj(a,b,d):b.isBuilt()||b.isBuilding()||c&&a.xa.includes(b)||(a.xa.push(b),Bj(a,d)))} | |
| function Bj(a,b){if(!a.Gd)try{a.Gd=!0;b=void 0===b?!0:b;b=void 0===b?!0:b;for(var c=0;c<a.xa.length;c++){var d=a.xa[c],e;if(!(e=a.tb))a:{var g=a.ampdoc.getRootNode(),h=d.element;do if(h.nextSibling){e=!0;break a}while((h=h.parentNode)&&h!=g);e=!1}e&&(a.xa.splice(c--,1),Gj(a,d,b))}}finally{a.Gd=!1}}function Gj(a,b,c){var d=b.build();d&&c&&d.then(function(){return a.schedulePass()},function(c){Hj(a,b);if(!Of(c))throw c;})}f.remove=function(a){(a=X(a))&&Hj(this,a)}; | |
| function Hj(a,b,c){var d=a.w.indexOf(b);-1!=d&&a.w.splice(d,1);b.isBuilt()&&b.pauseOnRemove();c&&b.disconnect();Ij(a,b,!0)}f.removeForChildWindow=function(a){var b=this,c=this.w.filter(function(b){return b.hostWin==a});c.forEach(function(a){return Hj(b,a,!0)})};f.upgraded=function(a){a=X(a);Fj(this,a)};f.setOwner=function(a,b){b.contains(a);X(a)&&X(a).updateOwner(b);a.__AMP__OWNER=b;a=a.getElementsByClassName("i-amphtml-element");for(b=0;b<a.length;b++){var c=a[b];X(c)&&X(c).updateOwner(void 0)}}; | |
| f.requireLayout=function(a,b){var c=this,d=[];Jj(this,a,function(a){4!=a.getState()&&(3!=a.getState()?d.push(a.whenBuilt().then(function(){a.measure();if(a.isDisplayed())return Kj(c,a,!0,b,!0),a.loadedOnce()})):a.isDisplayed()&&d.push(a.loadedOnce()))});return Promise.all(d)};f.scheduleLayout=function(a,b){Lj(this,X(a),!0,Mj(b))};f.schedulePause=function(a,b){var c=X(a);b=Mj(b);Nj(this,c,b,function(a){a.pause()})};f.scheduleResume=function(a,b){a=X(a);b=Mj(b);Nj(this,a,b,function(a){a.resume()})}; | |
| f.scheduleUnlayout=function(a,b){a=X(a);b=Mj(b);Nj(this,a,b,function(a){a.unlayout()})};f.schedulePreload=function(a,b){Lj(this,X(a),!1,Mj(b))};f.updateLayoutPriority=function(a,b){var c=X(a);c.updateLayoutPriority(b);this.C.forEach(function(a){a.resource==c&&(a.priority=b)});this.schedulePass()};f.updateInViewport=function(a,b,c){Oj(this,X(a),Mj(b),c)};f.changeSize=function(a,b,c,d,e){Pj(this,X(a),b,c,e,!0,d)}; | |
| f.attemptChangeSize=function(a,b,c,d){var e=this;return new Promise(function(g,h){Pj(e,X(a),b,c,d,!1,function(a){a?g():h(Error("changeSize attempt denied"))})})};f.measureElement=function(a){return this.o.measurePromise(a)};f.mutateElement=function(a,b){return this.measureMutateElement(a,null,b)};f.measureMutateElement=function(a,b,c){return this.D?Qj(this,a,b,c):Rj(this,a,b,c)}; | |
| function Rj(a,b,c,d){function e(){var c=a.G.getLayoutRect(b);return 0!=c.width&&0!=c.height?c.top:-1}var g=-1;return a.o.runPromise({measure:function(){c&&c();g=e()},mutate:function(){d();b.classList.contains("i-amphtml-element")&&X(b).requestMeasure();for(var c=b.getElementsByClassName("i-amphtml-element"),k=0;k<c.length;k++)X(c[k]).requestMeasure();-1!=g&&Sj(a,g);a.schedulePass(70);a.o.measure(function(){var b=e();-1!=b&&b!=g&&(Sj(a,b),a.schedulePass(70));a.Qa=!0})}})} | |
| function Qj(a,b,c,d){return a.o.runPromise({measure:c||void 0,mutate:function(){d();a.dirtyElement(b)}})}f.dirtyElement=function(a){var b=!1;if(this.D)this.eb.dirty(a),this.Qa=!0;else{var c=a.classList.contains("i-amphtml-element");c?(a=X(a),Sj(this,a.getLayoutBox().top)):b=!0}this.schedulePass(70,b)};f.attemptCollapse=function(a){var b=this;return new Promise(function(c,d){Pj(b,X(a),0,0,void 0,!1,function(b){b?(X(a).completeCollapse(),c()):d(Error("collapse attempt denied"))})})}; | |
| f.collapseElement=function(a){var b=this.G.getLayoutRect(a),c=X(a);0!=b.width&&0!=b.height&&(K(this.win,"dirty-collapse-element")||this.D?this.dirtyElement(a):Sj(this,b.top));c.completeCollapse();this.schedulePass(70)};f.expandElement=function(a){var b=X(a);b.completeExpand();(b=b.getOwner())&&b.expandedCallback(a);this.schedulePass(70)};f.schedulePass=function(a,b){b&&(this.jb=!0);return this.Ec.schedule(a)};f.schedulePassVsync=function(){var a=this;this.ve||(this.ve=!0,this.o.mutate(function(){return a.doPass()}))}; | |
| f.ampInitComplete=function(){this.Ae=!0;this.schedulePass()};f.onNextPass=function(a){this.Dc.push(a)}; | |
| f.doPass=function(){var a=this;if(this.qa){this.oa=this.h.isVisible();this.Ga=this.h.getPrerenderSize();var b=this.tb&&this.ff;if(b){this.ff=!1;var c=this.win.document,d=T(this.ampdoc);this.h.sendMessage("documentLoaded",C({title:c.title,sourceUrl:qd(this.ampdoc.getUrl()),serverLayout:c.documentElement.hasAttribute("i-amphtml-element"),linkRels:d.linkRels,metaTags:d.metaTags}),!0);this.ac=this.G.getContentHeight();this.h.sendMessage("documentHeight",C({height:this.ac}),!0)}this.G.getSize();this.Ec.cancel(); | |
| this.ve=!1;this.ng.setState(this.h.getVisibilityState());this.tb&&this.Ae&&!this.ampdoc.signals().get("ready-scan")&&this.ampdoc.signals().signal("ready-scan");this.Qa&&(this.Qa=!1,this.o.measure(function(){var b=a.G.getContentHeight();b!=a.ac&&(a.h.sendMessage("documentHeight",C({height:b}),!0),a.ac=b,a.G.contentHeightChanged())}));for(c=0;c<this.Dc.length;c++)(0,this.Dc[c])();this.Dc.length=0}}; | |
| function Tj(a){var b=Date.now(),c=a.G.getRect(),d=c.height/10,e=c.height/10,g=.01>Math.abs(a.Pd)&&500<b-a.oc||1E3<b-a.oc;if(0<a.ja.length){var h=a.ja;a.ja=[];var k=-1,l=[],m=[],n=0;for(b=0;b<h.length;b++){var p=h[b],t=p.resource,u=t.getLayoutBox(),v=0,D=0,J=0,N=0,O=u,Z=O.top,H=O.bottom,B=void 0;p.marginChange&&(B=p.marginChange.newMargins,O=p.marginChange.currentMargins,void 0!=B.top&&(v=B.top-O.top),void 0!=B.bottom&&(D=B.bottom-O.bottom),void 0!=B.left&&(J=B.left-O.left),void 0!=B.right&&(N=B.right- | |
| O.right),v&&(Z=u.top-O.top),D&&(H=u.bottom+O.bottom));var S=p.newHeight-u.height,Ka=p.newWidth-u.width,z=!1;if(0!=S||0!=v||0!=D||0!=Ka||0!=J||0!=N)if(p.force||!a.oa)z=!0;else if(a.we.hasDescendantsOf(t.element))z=!0;else if(Z>=c.bottom-e||0==v&&u.bottom+Math.min(S,0)>=c.bottom-e)z=!0;else if(1<c.top&&H<=c.top+d){if(0>S&&c.top+n<-S)continue;g?(n+=S,l.push(p)):a.ja.push(p);continue}else Uj(a,t,u)?z=!0:0>S||0>v||0>D||p.resource.overflowCallback(!0,p.newHeight,p.newWidth,B);z&&(0<=u.top&&(k=-1==k?u.top: | |
| Math.min(k,u.top)),a.D&&m.push(p.resource.element),p.resource.changeSize(p.newHeight,p.newWidth,B),p.resource.overflowCallback(!1,p.newHeight,p.newWidth,B),a.Qa=!0);p.callback&&p.callback(z)}a.D?m.forEach(function(b){a.dirtyElement(b)}):-1!=k&&Sj(a,k);0<l.length&&a.o.run({measure:function(b){b.scrollHeight=a.G.getScrollHeight();b.scrollTop=a.G.getScrollTop()},mutate:function(b){var c=-1;l.forEach(function(a){var b=a.resource.getLayoutBox();c=-1==c?b.top:Math.min(c,b.top);a.resource.changeSize(a.newHeight, | |
| a.newWidth,a.marginChange?a.marginChange.newMargins:void 0);a.callback&&a.callback(!0)});a.D?l.forEach(function(b){a.dirtyElement(b.resource.element)}):-1!=c&&Sj(a,c);var d=a.G.getScrollHeight();d!=b.scrollHeight&&a.G.setScrollTop(b.scrollTop+(d-b.scrollHeight));a.Qa=!0}},{})}}function Uj(a,b,c){var d,e=a.G.getContentHeight();a=Math.max(.85*e,e-1E3);var g=c||b.getLayoutBox(),h=d||b.getInitialLayoutBox();return g.bottom>=a||h.bottom>=a} | |
| function Sj(a,b){a.D?a.jb=!0:a.Pb=-1==a.Pb?b:Math.min(b,a.Pb)}function Aj(a,b){var c=tb(b,function(a){return!!X(a)});if(c){b=X(c);var d=b.getPendingChangeSize();void 0!==d&&Pj(a,b,d.height,d.width,d.margins,!0)}} | |
| function Vj(a){var b=Date.now(),c=a.jb;a.jb=!1;var d=a.Pb;a.Pb=-1;for(var e=0,g=0,h=0;h<a.w.length;h++){var k=a.w[h];0!=k.getState()||k.isBuilding()||Fj(a,k,!0);if(c||!k.hasBeenMeasured()||1==k.getState())k.applySizesAndMediaQuery(),e++;k.isMeasureRequested()&&g++}var l;if(0<e||0<g||c||-1!=d)for(h=0;h<a.w.length;h++)if(k=a.w[h],!k.hasOwner()||k.isMeasureRequested())if(c||1==k.getState()||!k.hasBeenMeasured()||k.isMeasureRequested()||-1!=d&&k.getLayoutBox().bottom>=d){var m=k.isDisplayed();k.measure(); | |
| m&&!k.isDisplayed()&&(l||(l=[]),l.push(k))}l&&a.o.mutate(function(){l.forEach(function(b){b.unload();Ij(a,b)})});c=a.G.getRect();var n=a.oa?ec(c,.25,2):0<a.Ga?ec(c,0,a.Ga-1):null;var p=a.oa?ec(c,.25,.25):c;for(c=0;c<a.w.length;c++)if(d=a.w[c],0!=d.getState()&&!d.hasOwner()){var t=a.oa&&d.isDisplayed()&&d.overlaps(p);d.setInViewport(t)}if(n)for(c=0;c<a.w.length;c++)d=a.w[c],2!=d.getState()||d.hasOwner()||d.isDisplayed()&&d.overlaps(n)&&Kj(a,d,!0);if(a.oa&&0==a.wa.getSize()&&0==a.C.getSize()&&b>a.wa.getLastDequeueTime()+ | |
| 5E3){var u=0;for(b=0;b<a.w.length&&4>u;b++)c=a.w[b],2==c.getState()&&!c.hasOwner()&&c.isDisplayed()&&c.idleRenderOutsideViewport()&&(Kj(a,c,!1),u++);for(b=0;b<a.w.length&&4>u;b++)c=a.w[b],2==c.getState()&&!c.hasOwner()&&c.isDisplayed()&&(Kj(a,c,!1),u++)}}f.Dg=function(a){var b=this.G.getRect(),c=a.resource.getLayoutBox(),d=Math.floor((c.top-b.top)/b.height);Math.sign(d)!=this.getScrollDirection()&&(d*=2);d=Math.abs(d);return 10*a.priority+d}; | |
| f.Cg=function(a,b){var c=this.eb.iterateAncestry(a.resource.element,this.tg,b);return 10*a.priority+c};f.Bg=function(a,b,c,d){var e=b.getId();if(Ra.call(d,e))return d[e];a=a||0;c=1+c/10;var g=b.isActiveUnsafe()?1:2;b=b.getHorizontalDistanceFromParent()+b.getVerticalDistanceFromParent();return d[e]=a+g*c*b}; | |
| function Wj(a,b){var c=Date.now();if(0==a.wa.getSize()){if(-1===a.Ea)return 0;var d=1E3*b.priority;return Math.max(d-(c-a.Ea),0)}var e=0;a.wa.forEach(function(a){e=Math.max(e,Math.max(1E3*(b.priority-a.priority),0)-(c-a.startTime))});return e}f.Ah=function(a){this.C.getTaskById(a.id)||this.C.enqueue(a)};f.$f=function(a,b,c){this.wa.dequeue(a);this.schedulePass(1E3);if(!b)return x().info("Resources","task failed:",a.id,a.resource.debugid,c),Promise.reject(c)}; | |
| function Pj(a,b,c,d,e,g,h){b.hasBeenMeasured()&&!e?Xj(a,b,c,d,void 0,g,h):a.o.measure(function(){b.hasBeenMeasured()||b.measure();if(e){var k=De(a.win,b.element);k={newMargins:e,currentMargins:{top:parseInt(k.marginTop,10)||0,right:parseInt(k.marginRight,10)||0,bottom:parseInt(k.marginBottom,10)||0,left:parseInt(k.marginLeft,10)||0}}}else k=void 0;var l=k;Xj(a,b,c,d,l,g,h)})} | |
| function Xj(a,b,c,d,e,g,h){b.resetPendingChangeSize();var k=b.getPageLayoutBox();if(!(k=void 0!==c&&c!=k.height||void 0!==d&&d!=k.width)&&(k=void 0!==e)){k=e.currentMargins;var l=e.newMargins;k=void 0!==l.top&&l.top!=k.top||void 0!==l.right&&l.right!=k.right||void 0!==l.bottom&&l.bottom!=k.bottom||void 0!==l.left&&l.left!=k.left}if(k){k=null;for(l=0;l<a.ja.length;l++)if(a.ja[l].resource==b){k=a.ja[l];break}k?(k.newHeight=c,k.newWidth=d,k.marginChange=e,k.force=g||k.force,k.callback=h):a.ja.push({resource:b, | |
| newHeight:c,newWidth:d,marginChange:e,force:g,callback:h});a.schedulePassVsync()}else void 0===c&&void 0===d&&void 0===e&&x().error("Resources","attempting to change size with undefined dimensions",b.debugid),h&&h(!0)}function Yj(a,b,c){return 0!=b.getState()&&b.isDisplayed()&&(a.oa||"prerender"==a.h.getVisibilityState()&&b.prerenderAllowed())&&(c||b.isInViewport()||b.renderOutsideViewport()||b.idleRenderOutsideViewport())?!0:!1} | |
| function Kj(a,b,c,d,e){0!=b.getState()&&b.isDisplayed();var g=e||!1;Yj(a,b,g)&&(c?a.Ta(b,"L",0,d||0,g,b.startLayout.bind(b)):a.Ta(b,"P",2,d||0,g,b.startLayout.bind(b)))}function Lj(a,b,c,d){Nj(a,b,d,function(d){0==d.getState()?d.whenBuilt().then(function(){Zj(a,d,c,b.getLayoutPriority())}):Zj(a,d,c,b.getLayoutPriority())})}function Zj(a,b,c,d){b.measure();2==b.getState()&&b.isDisplayed()&&Kj(a,b,c,d)} | |
| f.Ta=function(a,b,c,d,e,g){b=a.getTaskId(b);a={id:b,resource:a,priority:Math.max(a.getLayoutPriority(),d)+c,forceOutsideViewport:e,callback:g,scheduleTime:Date.now(),startTime:0,promise:null};var h=this.C.getTaskById(b);if(!h||a.priority<h.priority)h&&this.C.dequeue(h),this.C.enqueue(a),this.schedulePass(Wj(this,a));a.resource.layoutScheduled(a.scheduleTime)};function Oj(a,b,c,d){var e=b.isInViewport()&&d;Nj(a,b,c,function(a){a.setInViewport(e)})} | |
| function Nj(a,b,c,d){c.forEach(function(c){b.element.contains(c);Jj(a,c,d)})}function Jj(a,b,c){if(b.classList.contains("i-amphtml-element"))c(X(b)),(b=b.getPlaceholder())&&Jj(a,b,c);else{a=b.getElementsByClassName("i-amphtml-element");b=[];for(var d=0;d<a.length;d++){for(var e=a[d],g=!1,h=0;h<b.length;h++)if(b[h].contains(e)){g=!0;break}g||(b.push(e),c(X(e)))}}} | |
| function zj(a,b){function c(){a.w.forEach(function(a){return a.resume()});h()}function d(){a.w.forEach(function(b){b.unload();Ij(a,b)});a.unselectText()}function e(){a.w.forEach(function(a){return a.pause()})}function g(){}function h(){var b=a.G.getSize();if(0<b.height&&0<b.width){0<a.ja.length&&Tj(a);Vj(a);b=Date.now();for(var c=-1,d=Object.create(null),e=a.C.peek(a.Me,d);e;){c=Wj(a,e);if(16<c)break;a.C.dequeue(e);(c=a.wa.getTaskById(e.id))?(e=a.Ah.bind(a,e),c.promise.then(e,e)):(e.resource.measure(), | |
| Yj(a,e.resource,e.forceOutsideViewport)?(e.promise=e.callback(),e.startTime=b,a.wa.enqueue(e),e.promise.then(a.$f.bind(a,e,!0),a.$f.bind(a,e,!1)).catch(Mf)):e.resource.layoutCanceled());e=a.C.peek(a.Me,d);c=-1}0<=c?b=c:(b=2*(b-a.wa.getLastDequeueTime()),b=Math.max(Math.min(3E4,b),5E3));0<a.ja.length&&(b=Math.min(b,500));a.oa&&a.schedulePass(b)}}var k="prerender",l="visible",m="hidden",n="paused",p="inactive";b.addTransition(k,k,h);b.addTransition(k,l,h);b.addTransition(k,m,h);b.addTransition(k,p, | |
| h);b.addTransition(k,n,h);b.addTransition(l,l,h);b.addTransition(l,m,h);b.addTransition(l,p,d);b.addTransition(l,n,e);b.addTransition(m,l,h);b.addTransition(m,m,h);b.addTransition(m,p,d);b.addTransition(m,n,e);b.addTransition(p,l,c);b.addTransition(p,m,c);b.addTransition(p,p,g);b.addTransition(p,n,h);b.addTransition(n,l,c);b.addTransition(n,m,h);b.addTransition(n,p,d);b.addTransition(n,n,g)}f.unselectText=function(){try{this.win.getSelection().removeAllRanges()}catch(a){}}; | |
| function Ij(a,b,c){1==b.getState()&&(a.C.purge(function(a){return a.resource==b}),a.wa.purge(function(a){return a.resource==b}),Lg(a.ja,function(a){return a.resource===b}));if(0==b.getState()&&c&&a.xa){var d=a.xa.indexOf(b);-1!=d&&a.xa.splice(d,1)}}function Mj(a){return ya(a)?a:[a]};function ak(a,b){this.ampdoc=a;b=b?b.document.documentElement:a.getHeadNode();this.w=pe(a);this.G=re(a);a=Bd(b,"action");a.addGlobalTarget("AMP",this.Pg.bind(this));a.addGlobalMethodHandler("hide",this.lf.bind(this));a.addGlobalMethodHandler("show",this.pf.bind(this));a.addGlobalMethodHandler("toggleVisibility",this.Sg.bind(this));a.addGlobalMethodHandler("scrollTo",this.nf.bind(this));a.addGlobalMethodHandler("focus",this.Qg.bind(this));a.addGlobalMethodHandler("toggleClass",this.Rg.bind(this))} | |
| ak.installInEmbedWindow=function(a,b){Td(a,"standard-actions",new ak(b,a))};f=ak.prototype; | |
| f.Pg=function(a){if(!a.satisfiesTrust(100))return null;var b=a.node,c=a.method,d=a.args,e=(b.ownerDocument||b).defaultView;switch(c){case "pushState":case "setState":return ie(b.nodeType===Node.DOCUMENT_NODE?b.documentElement:b).then(function(b){y(b,"AMP-BIND is not installed.");return b.invoke(a)});case "navigateTo":return bk(this,a);case "closeOrNavigateTo":return ck(this,a);case "scrollTo":return y(d.id,"AMP.scrollTo must provide element ID"),a.node=Fd(b).getElementById(d.id),this.nf(a);case "goBack":return R(this.ampdoc, | |
| "history").goBack(),null;case "print":return e.print(),null;case "optoutOfCid":return Wd(this.ampdoc,"cid").then(function(a){return a.optOut()}).catch(function(a){x().error("STANDARD-ACTIONS","Failed to opt out of CID",a)})}throw w().createError("Unknown AMP action ",c);}; | |
| function bk(a,b){var c=b.node,d=b.caller,e=b.method,g=b.args,h=(c.ownerDocument||c).defaultView;b=Promise.resolve();gb(d.tagName,"AMP-")&&(b=d.getImpl().then(function(a){"function"==typeof a.throwIfCannotNavigate&&a.throwIfCannotNavigate()}));return b.then(function(){R(a.ampdoc,"navigation").navigateTo(h,g.url,"AMP."+e,{target:g.target,opener:g.opener})},function(a){w().error("STANDARD-ACTIONS",a.message)})} | |
| function ck(a,b){var c=b.node;c=(c.ownerDocument||c).defaultView;var d=c.parent!=c,e=c.opener&&a.ampdoc.isSingleDoc()&&!d,g=!1;e&&(c.close(),g=c.closed);return g?Promise.resolve():bk(a,b)}f.nf=function(a){var b=a.node,c=(a=a.args)&&a.position,d=a&&a.duration;c&&!["top","bottom","center"].includes(c)&&(c=void 0);Aa(d)||(d=void 0);return this.G.animateScrollIntoView(b,c,d)};f.Qg=function(a){Mb(a.node);return null}; | |
| f.lf=function(a){var b=a.node;this.w.mutateElement(b,function(){b.classList.contains("i-amphtml-element")?b.collapse():Ce(b,!1)});return null}; | |
| f.pf=function(a){var b=a.node,c=b.ownerDocument.defaultView;if(b.classList.contains("i-amphtml-layout-nodisplay"))return w().warn("STANDARD-ACTIONS","Elements with layout=nodisplay cannot be dynamically shown.",b),null;this.w.measureElement(function(){"none"!=De(c,b).display||b.hasAttribute("hidden")||w().warn("STANDARD-ACTIONS",'Elements can only be dynamically shown when they have the "hidden" attribute set or when they were dynamically hidden.',b)});var d=b.hasAttribute("autofocus")?b:b.querySelector("[autofocus]"); | |
| d&&oe(c).isIos()?dk(b,d):this.w.mutateElement(b,function(){dk(b,d)});return null};function dk(a,b){a.classList.contains("i-amphtml-element")?a.expand():Ce(a,!0);b&&Mb(b)}f.Sg=function(a){return a.node.hasAttribute("hidden")?this.pf(a):this.lf(a)}; | |
| f.Rg=function(a){var b=a.node,c=a.args,d=w().assertString(c["class"],"Argument 'class' must be a string.");this.w.mutateElement(b,function(){if(void 0!==c.force){var a=w().assertBoolean(c.force,"Optional argument 'force' must be a boolean.");b.classList.toggle(d,a)}else b.classList.toggle(d)});return null};function sk(a,b,c){this.ampdoc=a;this.h=b;this.j=c;this.Cc=rd(this.ampdoc.win.location);this.Mc=null}f=sk.prototype;f.get=function(a){return tk(this).then(function(b){return b.get(a)})};f.set=function(a,b,c){return this.setNonBoolean(a,b,c)};f.setNonBoolean=function(a,b,c){return uk(this,function(d){return d.set(a,b,c)})};f.remove=function(a){return uk(this,function(b){return b.remove(a)})}; | |
| function tk(a){a.Mc||(a.Mc=a.j.loadBlob(a.Cc).then(function(a){return a?Rb(atob(a)):{}}).catch(function(a){x().expectedError("Storage","Failed to load store: ",a);return{}}).then(function(a){return new vk(a)}));return a.Mc}function uk(a,b){return tk(a).then(function(c){b(c);c=btoa(JSON.stringify(c.obj));return a.j.saveBlob(a.Cc,c)}).then(a.zg.bind(a))}function wk(a){a.h.onBroadcast(function(b){"amp-storage-reset"==b.type&&b.origin==a.Cc&&(a.Mc=null)})} | |
| f.zg=function(){this.h.broadcast({type:"amp-storage-reset",origin:this.Cc})};function vk(a){var b;this.obj=Pb(a);this.ih=b||8;this.Aa=this.obj.vv||Object.create(null);this.obj.vv||(this.obj.vv=this.Aa)}vk.prototype.get=function(a){return(a=this.Aa[a])?a.v:void 0}; | |
| vk.prototype.set=function(a,b,c){if(void 0!==this.Aa[a]){a=this.Aa[a];var d=Date.now();c&&(d=a.t);a.v=b;a.t=d}else this.Aa[a]=C({v:b,t:Date.now()});b=Object.keys(this.Aa);if(b.length>this.ih){var e=Infinity,g=null;for(c=0;c<b.length;c++)a=this.Aa[b[c]],a.t<e&&(g=b[c],e=a.t);g&&delete this.Aa[g]}};vk.prototype.remove=function(a){delete this.Aa[a]}; | |
| function xk(a){this.win=a;try{if("localStorage"in this.win){this.win.localStorage.getItem("test");var b=!0}else b=!1}catch(c){b=!1}this.Jd=b;this.Jd||(a=Error("localStorage not supported."),x().expectedError("Storage",a))}xk.prototype.loadBlob=function(a){var b=this;return new Promise(function(c){b.Jd?c(b.win.localStorage.getItem("amp-store:"+a)):c(null)})};xk.prototype.saveBlob=function(a,b){var c=this;return new Promise(function(d){c.Jd&&c.win.localStorage.setItem("amp-store:"+a,b);d()})}; | |
| function yk(a){this.h=a}yk.prototype.loadBlob=function(a){return this.h.sendMessageAwaitResponse("loadStore",C({origin:a})).then(function(a){return a.blob})};yk.prototype.saveBlob=function(a,b){return this.h.sendMessageAwaitResponse("saveStore",C({origin:a,blob:b}))};function zk(a){M(a,"storage",function(){var b=V(a),c=parseInt(b.getParam("storage"),10),d=c?new yk(b):new xk(a.win);b=new sk(a,b,d);wk(b);return b},!0)};function Ak(a){this.win=a;this.Ch=this.win.Promise.resolve();this.Lh=0;this.md={};this.ne=Date.now()}f=Ak.prototype;f.timeSinceStart=function(){return Date.now()-this.ne};f.delay=function(a,b){var c=this;if(!b){var d="p"+this.Lh++;this.Ch.then(function(){c.md[d]?delete c.md[d]:a()}).catch(Mf);return d}return this.win.setTimeout(function(){try{a()}catch(e){throw Mf(e),e;}},b)};f.cancel=function(a){"string"==typeof a?this.md[a]=!0:this.win.clearTimeout(a)}; | |
| f.promise=function(a){var b=this;return new this.win.Promise(function(c){var d=b.delay(c,a);if(-1==d)throw Error("Failed to schedule timer.");})};f.timeoutPromise=function(a,b,c){function d(){e.cancel(g)}var e=this,g,h=new this.win.Promise(function(b,d){g=e.delay(function(){d(w().createError(c||"timeout"))},a);if(-1==g)throw Error("Failed to schedule timer.");});if(!b)return h;b.then(d,d);return this.win.Promise.race([h,b])}; | |
| f.poll=function(a,b){var c=this;return new this.win.Promise(function(d){var e=c.win.setInterval(function(){b()&&(c.win.clearInterval(e),d())},a)})};Ak.installInEmbedWindow=function(a){Td(a,"timer",new Ak(a))};function Bk(a,b){this.F=a;a=b||a.getRootNode();this.qg=(a.ownerDocument||a).createElement("a");this.$a=new Tc}Bk.installInEmbedWindow=function(a,b){Td(a,"url",new Bk(b,a.document))};f=Bk.prototype;f.parse=function(a,b){return fd(this.qg,a,b?null:this.$a)};f.isProtocolValid=function(a){return nd(a)};f.getSourceOrigin=function(a){return rd(a)};f.assertHttpsUrl=function(a,b,c){return kd(a,b,void 0===c?"source":c)}; | |
| f.assertAbsoluteHttpOrHttpsUrl=function(a){y(/^https?:/i.test(a),'URL must start with "http://" or "https://". Invalid value: %s',a);return I(a).href};f.isProxyOrigin=function(a){return md(a)};f.isSecure=function(a){return jd(this.parse(a))};f.getWinOrigin=function(a){return a.origin||this.parse(a.location.href).origin};function Ck(a,b,c){return We(a).then(function(){return Dk(a,b,c)})}function Dk(a,b,c){var d=a.performance&&a.performance.timing;if(d&&0!=d.navigationStart){var e=void 0===c?d[b]:d[c]-d[b];if(Aa(e)&&!(0>e))return e}}function Ek(a,b){var c=a.performance&&a.performance.navigation;if(c&&void 0!==c[b])return c[b]}function Fk(a){this.ampdoc=a;this.Ha=Object.create(null);this.Ed=!1;Gk(this)}f=Fk.prototype;f.ic=function(){this.initialize();this.Ed=!0};f.initialize=function(){}; | |
| f.get=function(a){this.Ed||this.ic();return this.Ha[a]};f.set=function(a,b){this.Ha[a]=this.Ha[a]||{sync:void 0,async:void 0};this.Ha[a].sync=b;return this};f.setAsync=function(a,b){this.Ha[a]=this.Ha[a]||{sync:void 0,async:void 0};this.Ha[a].async=b;return this};f.setBoth=function(a,b,c){return this.set(a,b).setAsync(a,c)};f.getExpr=function(a,b){this.Ed||this.ic();var c=Object.assign({},this.Ha,a);return Hk(this,Object.keys(c),b)}; | |
| function Hk(a,b,c){Gk(a)&&(b=b.filter(function(b){return Gk(a).includes(b)}));c&&(b=b.filter(function(a){return c[a]}));if(0===b.length){var d=/_^/g;return d}b.sort(function(a,b){return b.length-a.length});var e="\\$?("+b.map(function(a){return"$"===a[0]?"\\"+a:a}).join("|")+")";return new RegExp(e,"g")} | |
| function Gk(a){if(a.te)return a.te;var b=a.ampdoc.getRootNode().head;if(!b)return null;b=b.querySelector('meta[name="amp-allowed-url-macros"]');if(!b)return null;a.te=b.getAttribute("content").split(",").map(function(a){return a.trim()});return a.te};var Ik={ANCESTOR_ORIGIN:!0};function Jk(a,b,c,d,e,g){this.fa=a;this.pb=b;this.Ye=c;this.lb=d;this.og=e;this.Lg=!g}Jk.prototype.expand=function(a){if(!a.length)return this.lb?a:Promise.resolve(a);var b=this.fa.getExpr(this.pb,this.og);b=Kk(a,b);return b.length?Lk(this,a,b):this.lb?a:Promise.resolve(a)};Jk.prototype.getMacroNames=function(a){var b=this.fa.getExpr(this.pb,this.og);return(a=a.match(b))?a:[]}; | |
| function Kk(a,b){var c=[];a.replace(b,function(a,b,g){a=a.length;var d=a+g-1;c.push({start:g,stop:d,name:b,length:a})});return c} | |
| function Lk(a,b,c){function d(p){for(var t="",u=[];g<b.length&&h<=c.length;){if(k&&g===k.start){var v=void 0;v=a.pb&&Ra.call(a.pb,k.name)?{name:k.name,prioritized:a.pb[k.name],encode:p}:Object.assign({},a.fa.get(k.name),{name:k.name,encode:p});g=k.stop+1;k=c[++h];"("===b[g]?(g++,l++,e.push(v),t.trim().length&&u.push(t),u.push(d(!1))):(t.length&&u.push(t),u.push(Mk(a,v)));t=""}else{if("`"===b[g])m?m=!1:(n=m=!0,y(""===t.trim(),'The substring "'+t+'" was lost during url-replacement. Please ensure the url syntax is correct'), | |
| t="");else if(l&&","===b[g]&&!m){if(t.length){var D=n?t:t.trim();u.push(D);n=!1}","===b[g+1]&&(u.push(""),g++);t=""}else{if(l&&")"===b[g]&&!m)return g++,l--,v=e.pop(),u.push(n?t:t.trim()),n=!1,Mk(a,v,u);t+=b[g]}g++}g===b.length&&t.length&&u.push(t)}return a.lb?u.join(""):Promise.all(u).then(function(a){return a.join("")}).catch(function(a){Na(a);return""})}var e=[],g=0,h=0,k=c[h],l=0,m=!1,n=!1;return d(a.Lg)} | |
| function Mk(a,b,c){var d=b,e=d.encode;d=d.name;if(Ra.call(b,"prioritized"))var g=b.prioritized;else a.lb&&Ra.call(b,"sync")?g=b.sync:a.lb?(w().error("Expander","ignoring async replacement key: ",b.name),g=""):g=b.async||b.sync;var h=e&&!Ik[d];return a.lb?(a=Nk(a,g,d,c),h?encodeURIComponent(a):a):Ok(a,g,d,c).then(function(a){return h?encodeURIComponent(a):a})} | |
| function Ok(a,b,c,d){try{var e="function"===typeof b?d?Promise.all(d).then(function(a){return b.apply(null,a)}):Sa(b):Promise.resolve(b);return e.then(function(b){Pk(a,c,b,d);return null==b?"":b}).catch(function(b){Na(b);Pk(a,c,"",d);return Promise.resolve("")})}catch(g){return Na(g),Pk(a,c,"",d),Promise.resolve("")}} | |
| function Nk(a,b,c,d){try{var e="function"===typeof b?b.apply(null,d):b;if(e&&e.then){w().error("Expander","ignoring async macro resolution");var g=""}else"string"===typeof e||"number"===typeof e||"boolean"===typeof e?(Pk(a,c,e,d),g=e.toString()):(Pk(a,c,"",d),g="");return g}catch(h){return Na(h),Pk(a,c,"",d),""}}function Pk(a,b,c,d){if(a.Ye){var e="";if(d){var g=d.filter(function(a){return""!==a}).join(",");e="("+g+")"}a.Ye[""+b+e]=c||""}};function Qk(a){return function(){return(new Date)[a]()}}function Rk(a,b){return function(){return a[b]}}function Sk(a){Fk.call(this,a);this.ke=null}ka(Sk,Fk);function Tk(a,b,c,d){a.setBoth(b,function(){return Dk(a.ampdoc.win,c,d)},function(){return Ck(a.ampdoc.win,c,d)})} | |
| Sk.prototype.initialize=function(){function a(){var a=T(b.ampdoc);return ld(Uk(b,a.sourceUrl))}var b=this,c=this.ampdoc.win,d=this.ampdoc.getHeadNode(),e=re(this.ampdoc);this.set("RANDOM",function(){return Math.random()});var g=Object.create(null);this.set("COUNTER",function(a){return g[a]=(g[a]|0)+1});this.set("CANONICAL_URL",function(){return T(b.ampdoc).canonicalUrl});this.set("CANONICAL_HOST",function(){return I(T(b.ampdoc).canonicalUrl).host});this.set("CANONICAL_HOSTNAME",function(){return I(T(b.ampdoc).canonicalUrl).hostname}); | |
| this.set("CANONICAL_PATH",function(){return I(T(b.ampdoc).canonicalUrl).pathname});this.setAsync("DOCUMENT_REFERRER",function(){return V(b.ampdoc).getReferrerUrl()});this.setAsync("EXTERNAL_REFERRER",function(){return V(b.ampdoc).getReferrerUrl().then(function(a){if(!a)return null;var b=I(qd(a)).hostname,d=c.location.hostname;return b===d?null:a})});this.set("TITLE",function(){var a=c.document;return a.originalTitle||a.title});this.set("AMPDOC_URL",function(){return ld(Uk(b,c.location.href))});this.set("AMPDOC_HOST", | |
| function(){var a=I(c.location.href);return a&&a.host});this.set("AMPDOC_HOSTNAME",function(){var a=I(c.location.href);return a&&a.hostname});this.setBoth("SOURCE_URL",function(){return a()},function(){return Ji().then(function(){return a()})});this.set("SOURCE_HOST",function(){return I(T(b.ampdoc).sourceUrl).host});this.set("SOURCE_HOSTNAME",function(){return I(T(b.ampdoc).sourceUrl).hostname});this.set("SOURCE_PATH",function(){return I(T(b.ampdoc).sourceUrl).pathname});this.set("PAGE_VIEW_ID",function(){return T(b.ampdoc).pageViewId}); | |
| this.setBoth("QUERY_PARAM",function(a,c){return Vk(b,a,void 0===c?"":c)},function(a,c){c=void 0===c?"":c;return Ji().then(function(){return Vk(b,a,c)})});this.setAsync("FRAGMENT_PARAM",Wk(this,"fragmentParam","FRAGMENT_PARAM"));this.setAsync("ANCESTOR_ORIGIN",Wk(this,"ancestorOrigin","ANCESTOR_ORIGIN"));var h=null;this.setBoth("CLIENT_ID",function(a){return h?h[a]:null},function(a,c,e){w().assertString(a,"The first argument to CLIENT_ID, the fallback Cookie name, is required");if("inabox"==r().runtime)return Promise.resolve(null); | |
| var g=Promise.resolve();c&&(g=fe(d,"userNotificationManager","amp-user-notification").then(function(a){return a.get(c)}));return Wd(b.ampdoc,"cid").then(function(b){return b.get({scope:a,createCookieIfNotPresent:!0,cookieName:e},g)}).then(function(b){h||(h=Object.create(null));var c=e||a;b&&"_ga"==c&&("string"===typeof b?b=b.replace(/^(GA1|1)\.[\d-]+\./,""):x().error("UrlReplacements","non-string cid, what is it?",Object.keys(b)));return h[a]=b})});this.setAsync("VARIANT",function(a){return Xk(b, | |
| function(b){var c=b[a];y(void 0!==c,"The value passed to VARIANT() is not a valid experiment name:"+a);return null===c?"none":c},"VARIANT")});this.setAsync("VARIANTS",function(){return Xk(b,function(a){var b=[],c;for(c in a)b.push(c+"."+(a[c]||"none"));return b.join("!")},"VARIANTS")});this.setAsync("AMP_GEO",function(a){return Yk(b,function(b){return a?(y("ISOCountry"===a,"The value passed to AMP_GEO() is not valid name:"+a),b[a]||"unknown"):b.matchedISOCountryGroups.join(",")})});this.setAsync("SHARE_TRACKING_INCOMING", | |
| function(){return Zk(b,function(a){return a.incomingFragment},"SHARE_TRACKING_INCOMING")});this.setAsync("SHARE_TRACKING_OUTGOING",function(){return Zk(b,function(a){return a.outgoingFragment},"SHARE_TRACKING_OUTGOING")});this.set("TIMESTAMP",Qk("getTime"));this.set("TIMESTAMP_ISO",Qk("toISOString"));this.set("TIMEZONE",Qk("getTimezoneOffset"));this.set("TIMEZONE_CODE",function(){if("Intl"in c&&"DateTimeFormat"in c.Intl)var a=(new Intl.DateTimeFormat).resolvedOptions().timeZone;return a||""});this.set("SCROLL_TOP", | |
| function(){return e.getScrollTop()});this.set("SCROLL_LEFT",function(){return e.getScrollLeft()});this.set("SCROLL_HEIGHT",function(){return e.getScrollHeight()});this.set("SCROLL_WIDTH",function(){return e.getScrollWidth()});this.set("VIEWPORT_HEIGHT",function(){return e.getHeight()});this.set("VIEWPORT_WIDTH",function(){return e.getWidth()});var k=c.screen;this.set("SCREEN_WIDTH",Rk(k,"width"));this.set("SCREEN_HEIGHT",Rk(k,"height"));this.set("AVAILABLE_SCREEN_HEIGHT",Rk(k,"availHeight"));this.set("AVAILABLE_SCREEN_WIDTH", | |
| Rk(k,"availWidth"));this.set("SCREEN_COLOR_DEPTH",Rk(k,"colorDepth"));this.set("DOCUMENT_CHARSET",function(){var a=c.document;return a.characterSet||a.charset});this.set("BROWSER_LANGUAGE",function(){var a=c.navigator;return(a.language||a.userLanguage||a.browserLanguage||"").toLowerCase()});this.set("USER_AGENT",function(){return c.navigator.userAgent});Tk(this,"PAGE_LOAD_TIME","navigationStart","loadEventStart");Tk(this,"DOMAIN_LOOKUP_TIME","domainLookupStart","domainLookupEnd");Tk(this,"TCP_CONNECT_TIME", | |
| "connectStart","connectEnd");Tk(this,"SERVER_RESPONSE_TIME","requestStart","responseStart");Tk(this,"PAGE_DOWNLOAD_TIME","responseStart","responseEnd");Tk(this,"REDIRECT_TIME","navigationStart","fetchStart");Tk(this,"DOM_INTERACTIVE_TIME","navigationStart","domInteractive");Tk(this,"CONTENT_LOAD_TIME","navigationStart","domContentLoadedEventStart");this.setAsync("ACCESS_READER_ID",function(){return $k(b,function(a){return a.getAccessReaderId()},"ACCESS_READER_ID")});this.setAsync("AUTHDATA",function(a){y(a, | |
| "The first argument to AUTHDATA, the field, is required");return $k(b,function(b){return b.getAuthdataField(a)},"AUTHDATA")});this.setAsync("VIEWER",function(){return V(b.ampdoc).getViewerOrigin().then(function(a){return void 0==a?"":a})});this.setAsync("TOTAL_ENGAGED_TIME",function(){return fe(d,"activity","amp-analytics").then(function(a){return a.getTotalEngagedTime()})});this.setAsync("INCREMENTAL_ENGAGED_TIME",function(a,b){return fe(d,"activity","amp-analytics").then(function(c){return c.getIncrementalEngagedTime(a, | |
| "false"!==b)})});this.set("NAV_TIMING",function(a,b){y(a,"The first argument to NAV_TIMING, the start attribute name, is required");return Dk(c,a,b)});this.setAsync("NAV_TIMING",function(a,b){y(a,"The first argument to NAV_TIMING, the start attribute name, is required");return Ck(c,a,b)});this.set("NAV_TYPE",function(){return Ek(c,"type")});this.set("NAV_REDIRECT_COUNT",function(){return Ek(c,"redirectCount")});this.set("AMP_VERSION",function(){return"1903251702180"});this.set("BACKGROUND_STATE", | |
| function(){return V(b.ampdoc).isVisible()?"0":"1"});this.setAsync("VIDEO_STATE",function(a,c){var d=b.ampdoc.getRootNode(),e=w().assertElement(d.getElementById(a),'Could not find an element with id="'+a+'" for VIDEO_STATE');return R(b.ampdoc,"video-manager").getAnalyticsDetails(e).then(function(a){return a?a[c]:""})});this.setAsync("STORY_PAGE_INDEX",al(this,"pageIndex","STORY_PAGE_INDEX"));this.setAsync("STORY_PAGE_ID",al(this,"pageId","STORY_PAGE_ID"));this.setAsync("FIRST_CONTENTFUL_PAINT",function(){return Sa(function(){return ne(c).getFirstContentfulPaint()})}); | |
| this.setAsync("FIRST_VIEWPORT_READY",function(){return Sa(function(){return ne(c).getFirstViewportReady()})});this.setAsync("MAKE_BODY_VISIBLE",function(){return Sa(function(){return ne(c).getMakeBodyVisible()})});this.setAsync("AMP_STATE",function(a){var c=b.ampdoc.getRootNode();return ie(c.documentElement||c).then(function(b){return b?b.getStateValue(a):""})})}; | |
| function Uk(a,b){if(a=T(a.ampdoc).replaceParams){var c=od(b),d=I(c);d=q(d.search);for(var e=C({}),g=Object.keys(a),h=0;h<g.length;h++)Ra.call(d,g[h])||(e[g[h]]=a[g[h]]);a=hd(c,e)}else a=b;return a}function $k(a,b,c){a=a.ampdoc.getHeadNode();return Promise.all([ge(a,"access","amp-access"),ge(a,"subscriptions","amp-subscriptions")]).then(function(a){a=a[0]||a[1];return a?b(a):(w().error("UrlReplacements","Access or subsciptions service is not installed to access: ",c),null)})} | |
| function Vk(a,b,c){y(b,"The first argument to QUERY_PARAM, the query string param is required");var d=I(od(a.ampdoc.win.location.href));d=q(d.search);b=w().assertString(b);a=T(a.ampdoc).replaceParams;return"undefined"!==typeof d[b]?d[b]:a&&"undefined"!==typeof a[b]?a[b]:c}function Xk(a,b,c){return ge(a.ampdoc.getHeadNode(),"variant","amp-experiment",!0).then(function(a){y(a,"To use variable %s, amp-experiment should be configured",c);return a.getVariants()}).then(function(a){return b(a)})} | |
| function Yk(a,b){a=a.ampdoc.getHeadNode();return ge(a,"geo","amp-geo",!0).then(function(a){y(a,"To use variable %s, amp-geo should be configured","AMP_GEO");return b(a)})}function Zk(a,b,c){a.ke||(a.ke=de(a.ampdoc.win,"share-tracking","amp-share-tracking"));return a.ke.then(function(a){y(a,"To use variable %s, amp-share-tracking should be configured",c);return b(a)})} | |
| function al(a,b,c){return function(){return de(a.ampdoc.win,"story-variable","amp-story").then(function(a){y(a,"To use variable %s amp-story should be configured",c);return a[b]})}}function Wk(a,b,c){return function(d,e){e=void 0===e?"":e;return de(a.ampdoc.win,"viewer-integration-variable","amp-viewer-integration").then(function(a){y(a,"To use variable %s amp-viewer-integration must be installed",c);return a[b](d,e)})}}function bl(a,b){this.ampdoc=a;this.fa=b}f=bl.prototype; | |
| f.expandStringSync=function(a,b,c,d){return(new Jk(this.fa,b,c,!0,d,!0)).expand(a)};f.expandStringAsync=function(a,b,c){return(new Jk(this.fa,b,void 0,void 0,c,!0)).expand(a)};f.expandUrlSync=function(a,b,c,d){return cl(a,(new Jk(this.fa,b,c,!0,d)).expand(a))};f.expandUrlAsync=function(a,b,c){return(new Jk(this.fa,b,void 0,void 0,c)).expand(a).then(function(b){return cl(a,b)})};f.expandInputValueAsync=function(a){return dl(this,a,!1)};f.expandInputValueSync=function(a){return dl(this,a,!0)}; | |
| function dl(a,b,c){"INPUT"==b.tagName&&b.getAttribute("type");var d=el(b);if(!d)return c?b.value:Promise.resolve(b.value);void 0===b["amp-original-value"]&&(b["amp-original-value"]=b.value);a=(new Jk(a.fa,void 0,void 0,c,d)).expand(b["amp-original-value"]||b.value);return c?b.value=a:a.then(function(a){return b.value=a})} | |
| function el(a,b){if(a=a.getAttribute("data-amp-replace")){var c={};a.trim().split(/\s+/).forEach(function(a){!b||Ra.call(b,a)?c[a]=!0:w().warn("URL","Ignoring unsupported replacement",a)});return c}} | |
| f.maybeExpandLink=function(a,b){var c={CLIENT_ID:!0,QUERY_PARAM:!0,PAGE_VIEW_ID:!0,NAV_TIMING:!0},d=a.getAttribute("data-amp-addparams")||"",e=el(a,c);if(e||d||b){var g=a["amp-original-href"]||a.getAttribute("href"),h=I(g);null==a["amp-original-href"]&&(a["amp-original-href"]=g);d&&(g=hd(g,q(d)));a:{var k=T(this.ampdoc);if(h.origin==I(k.canonicalUrl).origin||h.origin==I(k.sourceUrl).origin)h=!0;else{if((k=this.ampdoc.getRootNode().querySelector("meta[name=amp-link-variable-allowed-origin]"))&&k.hasAttribute("content")){k= | |
| k.getAttribute("content").trim().split(/\s+/);for(var l=0;l<k.length;l++)if(h.origin==I(k[l]).origin){h=!0;break a}}h=!1}}var m=h;if(!m)return e&&w().warn("URL","Ignoring link replacement",g," because the link does not go to the document's source, canonical, or whitelisted origin."),a.href=g;if(b){if(!e||!e.QUERY_PARAM){var n={QUERY_PARAM:!0};b=this.expandUrlSync(b,void 0,void 0,n)}g=hd(g,q(b))}e&&(g=this.expandUrlSync(g,void 0,void 0,e));return a.href=g}}; | |
| f.collectVars=function(a,b){var c=Object.create(null);return(new Jk(this.fa,b,c)).expand(a).then(function(){return c})};f.collectUnwhitelistedVarsSync=function(a){var b=a.getAttribute("src"),c=(new Jk(this.fa)).getMacroNames(b),d=el(a);return d?c.filter(function(a){return!d[a]}):c};function cl(a,b){var c=I(b,!0).protocol,d=I(a,!0).protocol;if(c!=d)return w().error("UrlReplacements","Illegal replacement of the protocol: ",a),a;y(nd(b),"The replacement url has invalid protocol: %s",b);return b} | |
| f.getVariableSource=function(){return this.fa};function fl(a){M(a,"url-replace",function(a){return new bl(a,new Sk(a))})};var gl=/^(https?:\/\/)((www[0-9]*|web|ftp|wap|home|mobile|amp|m)\.)+/i,hl=[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/]; | |
| function il(a){var b=void 0,c=this;this.ampdoc=a;this.win=a.win;this.Bb=Nb(this.win);this.sb=P(this.win,"documentState");this.qa=!0;this.de=!1;this.mg=this.Xc="visible";this.Ga=1;this.Vd=A();this.tc=A();this.Tf=new Y;this.Wb=new Y;this.Se=new Y;this.uc=this.gb=null;this.hb=[];this.N={};this.xb={};this.yf=this.Ea=this.zc=this.yc=null;a=new E;this.Th=a.promise;this.Uh=a.resolve;b?Object.assign(this.N,b):(this.win.name&&0==this.win.name.indexOf("__AMP__")&&jl(this.win.name.substring(7),this.N),this.win.location.hash&& | |
| (jl(this.win.location.hash,this.xb),Object.assign(this.N,this.xb)));this.qa=!parseInt(this.N.off,10);this.de=!(!parseInt(this.N.history,10)&&!this.de);kl(this,this.N.visibilityState);this.Ga=parseInt(this.N.prerenderSize,10)||this.Ga;this.Ab=null;this.dh=md(I(this.ampdoc.win.location.href));this.ud=this.isVisible();this.sb.onVisibilityChanged(this.Pf.bind(this));var d=new E;this.jh=d.resolve;this.Ra=ll(this,d.promise);this.ue=this.Md=null;this.Qc=this.isEmbedded()&&"referrer"in this.N&&!1!==ml(this)? | |
| this.N.referrer:this.win.document.referrer;this.yh=new Promise(function(a){c.isEmbedded()&&"referrer"in c.N?c.isTrustedViewer().then(function(b){b?a(c.N.referrer):(a(c.win.document.referrer),c.Qc!=c.win.document.referrer&&(x().expectedError("Viewer","Untrusted viewer referrer override: "+c.Qc+" at "+c.uc),c.Qc=c.win.document.referrer))}):a(c.win.document.referrer)});this.Jc=ld(this.win.location.href||"");this.Sh=new Promise(function(a){var b=c.N.viewerUrl;c.isEmbedded()&&b?c.isTrustedViewer().then(function(d){d? | |
| c.Jc=b:x().expectedError("Viewer","Untrusted viewer url override: "+b+" at "+c.uc);a(c.Jc)}):a(c.Jc)});this.N.click&&(a=ld(this.win.location.href),a!=this.win.location.href&&this.win.history.replaceState&&(this.win.location.originalHash||(this.win.location.originalHash=this.win.location.hash),this.win.history.replaceState({},"",a),delete this.xb.click));this.Pf();this.Ac();this.whenFirstVisible().then(function(){c.maybeUpdateFragmentForCct()})} | |
| function ll(a,b){var c=!(!(a.Bb&&!a.win.AMP_TEST_IFRAME&&(a.N.origin||a.N.visibilityState||-1!=a.win.location.search.indexOf("amp_js_v"))||a.isWebviewEmbedded()||a.isCctEmbedded())&&a.ampdoc.isSingleDoc());return c?U(a.win).timeoutPromise(2E4,b).catch(function(a){a=nl(a);Mf(a);throw a;}):null}f=il.prototype;f.Ac=function(){if(this.isVisible()){var a=Date.now();this.Ea||(this.Ea=a);this.yf=a;this.ud=!0;this.Uh();this.zc&&(this.zc(),this.yc=this.zc=null)}this.Wb.fire()};f.getParam=function(a){return this.N[a]}; | |
| f.hasCapability=function(a){var b=this.N.cap;return b?-1!=b.split(",").indexOf(a):!1};f.isEmbedded=function(){return!!this.Ra};f.isWebviewEmbedded=function(){return!this.Bb&&"1"==this.N.webview};f.isCctEmbedded=function(){if(null!=this.Ab)return this.Ab;this.Ab=!1;if(!this.Bb){var a=q(this.win.location.search);this.Ab="1"===a.amp_gsa&&gb(a.amp_js_v||"","a")}return this.Ab};f.isProxyOrigin=function(){return this.dh}; | |
| f.maybeUpdateFragmentForCct=function(){if(this.isCctEmbedded()&&this.win.history.replaceState){var a=rd(this.win.location.href),b=T(this.ampdoc).canonicalUrl,c=rd(b);ol(a,c)&&(this.xb.ampshare=b,this.win.history.replaceState({},"","#"+id(this.xb)))}};function ol(a,b){function c(a){return 2<a.split(".").length?a.replace(gl,"$1"):a}return c(a)==c(b)}f.isRuntimeOn=function(){return this.qa};f.toggleRuntime=function(){this.qa=!this.qa;this.Tf.fire(this.qa)};f.onRuntimeState=function(a){return this.Tf.add(a)}; | |
| f.isOvertakeHistory=function(){return this.de};f.getVisibilityState=function(){return this.Xc};f.Pf=function(){kl(this,this.mg)};function kl(a,b){if(b){var c=a.Xc;b=x().assertEnumValue(kf,b,"VisibilityState");"hidden"===b&&(b=a.ud?"inactive":"prerender");a.mg=b;!a.sb.isHidden()||"visible"!==b&&"paused"!==b||(b="hidden");a.Xc=b;c!==b&&a.Ac()}}f.isVisible=function(){return"visible"==this.getVisibilityState()};f.hasBeenVisible=function(){return this.ud};f.whenFirstVisible=function(){return this.Th}; | |
| f.whenNextVisible=function(){if(this.isVisible())return Promise.resolve();if(this.yc)return this.yc;var a=new E;this.zc=a.resolve;return this.yc=a.promise};f.getFirstVisibleTime=function(){return this.Ea};f.getLastVisibleTime=function(){return this.yf};f.getPrerenderSize=function(){return this.Ga};f.getResolvedViewerUrl=function(){return this.Jc};f.getViewerUrl=function(){return this.Sh};f.maybeGetMessagingOrigin=function(){return this.uc};f.getUnconfirmedReferrerUrl=function(){return this.Qc}; | |
| f.getReferrerUrl=function(){return this.yh};f.isTrustedViewer=function(){if(!this.Md){var a=ml(this);this.Md=void 0!==a?Promise.resolve(a):this.Ra.then(function(a){return a?pl(a):!1})}return this.Md};function ml(a){if(!a.isEmbedded())return!1;if(a.win.location.ancestorOrigins&&!a.isWebviewEmbedded()&&!a.isCctEmbedded())return 0<a.win.location.ancestorOrigins.length&&pl(a.win.location.ancestorOrigins[0])} | |
| f.getViewerOrigin=function(){if(!this.ue){var a;this.isEmbedded()?this.win.location.ancestorOrigins&&0<this.win.location.ancestorOrigins.length&&(a=this.win.location.ancestorOrigins[0]):a="";this.ue=void 0!==a?Promise.resolve(a):U(this.win).timeoutPromise(1E3,this.Ra).catch(function(){return""})}return this.ue};function pl(a){var b=I(a);a=b.protocol;return"x-thread:"==a?!0:"https:"!=a?!1:hl.some(function(a){return a.test(b.hostname)})}f.onVisibilityChanged=function(a){return this.Wb.add(a)}; | |
| f.onMessage=function(a,b){var c=this.Vd[a];c||(c=new Y,this.Vd[a]=c);return c.add(b)};f.onMessageRespond=function(a,b){var c=this;this.tc[a]=b;return function(){c.tc[a]===b&&delete c.tc[a]}};f.receiveMessage=function(a,b){if("visibilitychange"==a)return void 0!==b.prerenderSize&&(this.Ga=b.prerenderSize),kl(this,b.state),Promise.resolve();if("broadcast"==a)return this.Se.fire(b),Promise.resolve();var c=this.Vd[a];c&&c.fire(b);if(a=this.tc[a])return a(b);if(c)return Promise.resolve()}; | |
| f.setMessageDeliverer=function(a,b){var c=this;if(this.gb)throw Error("message channel can only be initialized once");if(null==b)throw Error("message channel must have an origin");this.gb=a;this.uc=b;this.jh(b);0<this.hb.length&&(b=this.hb.slice(0),this.hb=[],b.forEach(function(a){var b=c.gb(a.eventType,a.data,a.awaitResponse);a.awaitResponse&&a.responseResolver(b)}))};f.sendMessage=function(a,b,c){c=void 0===c?!1:c;ql(this,a,b,c,!1)}; | |
| f.sendMessageAwaitResponse=function(a,b,c){return ql(this,a,b,void 0===c?!1:c,!0)}; | |
| function ql(a,b,c,d,e){if(a.gb)return Sa(function(){return a.gb(b,c,e)});if(!a.Ra)return e?Promise.reject(nl()):Promise.resolve();if(!d)return a.Ra.then(function(){return a.gb(b,c,e)});var g=Mg(a.hb,function(a){return a.eventType==b});if(-1!=g)d=a.hb.splice(g,1)[0],d.data=c,d.awaitResponse=d.awaitResponse||e;else{d=new E;var h=d.resolve;d={eventType:b,data:c,awaitResponse:e,responsePromise:d.promise,responseResolver:h}}a.hb.push(d);return d.responsePromise} | |
| f.broadcast=function(a){return this.Ra?ql(this,"broadcast",a,!1,!1).then(function(){return!0},function(){return!1}):Promise.resolve(!1)};f.onBroadcast=function(a){return this.Se.add(a)};f.whenMessagingReady=function(){return this.Ra}; | |
| f.replaceUrl=function(a){if(a&&this.ampdoc.isSingleDoc()&&this.win.history.replaceState)try{var b=I(this.win.location.href),c=I(ld(a)+this.win.location.hash);b.origin==c.origin&&rd(b)==rd(c)&&(this.win.history.replaceState({},"",c.href),this.win.location.originalHref=b.href)}catch(d){x().error("Viewer","replaceUrl failed",d)}};function jl(a,b){a=q(a);for(var c in a)b[c]=a[c]} | |
| function nl(a){return a instanceof Error?(a=Ma(a),a.message="No messaging channel: "+a.message,a):Error("No messaging channel: "+a)}function rl(a){M(a,"viewer",function(){return new il(a)},!0)};function sl(a,b,c,d){var e=new tl(a,b,c,d);return e.solveYValueFromXValue.bind(e)}function tl(a,b,c,d){var e=1,g=1;this.y0=this.x0=0;this.x1=a;this.y1=b;this.x2=c;this.y2=d;this.x3=e;this.y3=g}f=tl.prototype;f.solveYValueFromXValue=function(a){return this.getPointY(this.solvePositionFromXValue(a))}; | |
| f.solvePositionFromXValue=function(a){var b=1E-6,c=(a-this.x0)/(this.x3-this.x0);if(0>=c)return 0;if(1<=c)return 1;for(var d=0,e=1,g=0,h=0;8>h;h++){g=this.getPointX(c);var k=(this.getPointX(c+b)-g)/b;if(Math.abs(g-a)<b)return c;if(Math.abs(k)<b)break;else g<a?d=c:e=c,c-=(g-a)/k}for(h=0;Math.abs(g-a)>b&&8>h;h++)g<a?(d=c,c=(c+e)/2):(e=c,c=(c+d)/2),g=this.getPointX(c);return c}; | |
| f.getPointX=function(a){if(0==a)return this.x0;if(1==a)return this.x3;var b=this.lerp(this.x0,this.x1,a),c=this.lerp(this.x1,this.x2,a),d=this.lerp(this.x2,this.x3,a);b=this.lerp(b,c,a);c=this.lerp(c,d,a);return this.lerp(b,c,a)};f.getPointY=function(a){if(0==a)return this.y0;if(1==a)return this.y3;var b=this.lerp(this.y0,this.y1,a),c=this.lerp(this.y1,this.y2,a),d=this.lerp(this.y2,this.y3,a);b=this.lerp(b,c,a);c=this.lerp(c,d,a);return this.lerp(b,c,a)};f.lerp=function(a,b,c){return a+c*(b-a)}; | |
| var ul=sl(.25,.1,.25,1),vl=sl(.42,0,1,1),wl=sl(0,0,.58,1),xl=sl(.42,0,.58,1),yl={linear:function(a){return a},ease:ul,"ease-in":vl,"ease-out":wl,"ease-in-out":xl};function zl(a){if(!a)return null;if("string"==typeof a){if(-1!=a.indexOf("cubic-bezier")){var b=a.match(/cubic-bezier\((.+)\)/);if(b&&(b=b[1].split(",").map(parseFloat),4==b.length)){for(var c=0;4>c;c++)if(isNaN(b[c]))return null;return sl(b[0],b[1],b[2],b[3])}return null}return yl[a]}return a};function Al(){}function Bl(a){var b;this.rb=a;this.o=b||qe(self);this.Ze=null;this.Y=[]}function Cl(a,b,c,d){return(new Bl(a)).setCurve(d).add(0,b,1).start(c)}Bl.prototype.setCurve=function(a){a&&(this.Ze=zl(a));return this};Bl.prototype.add=function(a,b,c,d){this.Y.push({delay:a,func:b,duration:c,curve:zl(d)});return this};Bl.prototype.start=function(a){var b=new Dl(this.o,this.rb,this.Y,this.Ze,a);return b}; | |
| function Dl(a,b,c,d,e){this.o=a;this.rb=b;this.Y=[];for(b=0;b<c.length;b++){var g=c[b];this.Y.push({delay:g.delay,func:g.func,duration:g.duration,curve:g.curve||d,started:!1,completed:!1})}this.Kg=e;this.ne=Date.now();this.Sa=!0;this.H={};e=new E;this.Mf=e.promise;this.Bh=e.resolve;this.zh=e.reject;this.ag=this.o.createAnimTask(this.rb,{mutate:this.Jh.bind(this)});this.o.canAnimate(this.rb)?this.ag(this.H):(x().warn("Animation","cannot animate"),El(this,!1,0))} | |
| Dl.prototype.then=function(a,b){return a||b?this.Mf.then(a,b):this.Mf};Dl.prototype.thenAlways=function(a){a=a||Al;return this.then(a,a)};Dl.prototype.halt=function(a){El(this,!1,a||0)}; | |
| function El(a,b,c){if(a.Sa){a.Sa=!1;if(0!=c){1<a.Y.length&&a.Y.sort(function(a,b){return a.delay+a.duration-(b.delay+b.duration)});try{if(0<c)for(c=0;c<a.Y.length;c++)a.Y[c].func(1,!0);else for(var d=a.Y.length-1;0<=d;d--)a.Y[d].func(0,!1)}catch(e){x().error("Animation","completion failed: "+e,e),b=!1}}b?a.Bh():a.zh()}} | |
| Dl.prototype.Jh=function(){if(this.Sa){for(var a=Date.now(),b=Math.min((a-this.ne)/this.Kg,1),c=0;c<this.Y.length;c++){var d=this.Y[c];!d.started&&b>=d.delay&&(d.started=!0)}for(c=0;c<this.Y.length;c++)if(d=this.Y[c],d.started&&!d.completed)a:{var e;if(0<d.duration){var g=e=Math.min((b-d.delay)/d.duration,1);if(d.curve&&1!=g)try{g=d.curve(e)}catch(h){x().error("Animation","step curve failed: "+h,h);El(this,!1,0);break a}}else g=e=1;1==e&&(d.completed=!0);try{d.func(g,d.completed)}catch(h){x().error("Animation", | |
| "step mutate failed: "+h,h),El(this,!1,0)}}1==b?El(this,!0,0):this.o.canAnimate(this.rb)?this.ag(this.H):(x().warn("Animation","cancel animation"),El(this,!1,0))}};function Fl(a){return-1!==a.tagName.indexOf("LIGHTBOX")}function Gl(a,b,c,d,e){var g=this;this.ampdoc=a;this.o=b;this.sg=c;this.$b=this.R=d;this.Ja=e&&a.isSingleDoc();this.Ia=null;this.Gg=0;this.L=[];this.re=new mh(a.win,function(){g.update()});this.Gb=null;this.fc=[];this.Lc=[]}f=Gl.prototype;f.enterLightbox=function(a,b){var c=this,d=Hl(this);d&&d.setLightboxMode(!0);K(this.ampdoc.win,"fixed-elements-in-lightbox")&&a&&b&&b.then(function(){c.trySetupSelectorsNoInline(a,!0);Il(c);c.update()})}; | |
| f.leaveLightbox=function(){var a=Hl(this);a&&a.setLightboxMode(!1);if(K(this.ampdoc.win,"fixed-elements-in-lightbox")){var b=Lg(this.L,function(a){return!!a.lightboxed});Jl(this,b);this.L.length||Kl(this)}}; | |
| f.setup=function(){var a=this.ampdoc.getRootNode(),b=a.styleSheets;if(b){this.fc.length=0;for(var c=this.Lc.length=0;c<b.length;c++){var d=b[c];if(!d){x().error("FixedLayer","Aborting setup due to null stylesheet.");return}var e=d,g=e.disabled,h=e.ownerNode;g||!h||"STYLE"!=h.tagName||h.hasAttribute("amp-boilerplate")||h.hasAttribute("amp-runtime")||h.hasAttribute("amp-extension")||Ll(this,d.cssRules)}this.trySetupSelectorsNoInline(a,void 0);Il(this);this.update();0<this.L.length&&this.observeHiddenMutations(); | |
| a=oe(this.ampdoc.win);0<this.L.length&&!this.Ja&&a.isIos()&&w().warn("FixedLayer","Please test this page inside of an AMP Viewer such as Google's because the fixed or sticky positioning might have slightly different layout.")}};f.observeHiddenMutations=function(){K(this.ampdoc.win,"hidden-mutation-observer")&&Ml(this).observe(this.ampdoc.getRootNode(),{attributes:!0,subtree:!0})};function Kl(a){Nl(a);(a=a.Gb)&&a.disconnect()}function Nl(a){a.re.cancel();(a=a.Gb)&&a.takeRecords()} | |
| function Ml(a){return a.Gb?a.Gb:a.Gb=new a.ampdoc.win.MutationObserver(function(b){if(!a.re.isPending())for(var c=0;c<b.length;c++){var d=b[c];if("hidden"===d.attributeName){a.re.schedule(16);break}}})}f.updatePaddingTop=function(a,b){this.R=a;b||(this.$b=a);this.update()}; | |
| f.transformMutate=function(a){a?this.L.forEach(function(b){b.fixedNow&&b.top&&(W(b.element,"transition","none"),b.transform&&"none"!=b.transform?W(b.element,"transform",b.transform+" "+a):W(b.element,"transform",a))}):this.L.forEach(function(a){a.fixedNow&&a.top&&Ae(a.element,{transform:"",transition:""})})};f.addElement=function(a,b){Ol(this,a,"*","fixed",b);Il(this);this.observeHiddenMutations();return this.update()};f.removeElement=function(a){a=Pl(this,a);Jl(this,a)}; | |
| function Jl(a,b){0<b.length&&a.Ia&&a.o.mutate(function(){for(var c=0;c<b.length;c++){var d=b[c];"fixed"==d.position&&a.Ia.returnFrom(d)}})}f.isDeclaredFixed=function(a){return!!a.__AMP_DECLFIXED};f.isDeclaredSticky=function(a){return!!a.__AMP_DECLSTICKY}; | |
| f.update=function(){var a=this;this.L.filter(function(b){return!a.ampdoc.contains(b.element)}).forEach(function(b){return Pl(a,b.element)});if(0==this.L.length)return Promise.resolve();Nl(this);var b=!1;return this.o.runPromise({measure:function(c){for(var d=a.L,e=[],g=a.ampdoc.win,h=0;h<d.length;h++)ye(d[h].element,{top:"",bottom:"-9999vh",transition:"none"});for(h=0;h<d.length;h++)e.push(De(g,d[h].element).top);for(h=0;h<d.length;h++)W(d[h].element,"bottom","");for(h=0;h<d.length;h++){var k=d[h], | |
| l=k,m=l.element,n=l.forceTransfer;l=De(g,m);var p=m.offsetWidth,t=m.offsetHeight,u=m.offsetTop,v=l,D=void 0===v.position?"":v.position,J=void 0===v.display?"":v.display;m=v.bottom;var N=v.zIndex,O=parseFloat(l.opacity);v=l[xe(l,"transform")];l=l.top;var Z="fixed"===D&&(n||0<p&&0<t),H=fb(D,"sticky"),B="none"!==J;if(B&&(Z||H)){if("auto"===l||e[h]!==l)l=Z&&u===a.$b+a.sg?"0px":"";var S=!1;Z&&(S=!0===n?!0:!1===n?!1:0<O&&300>t&&!(!l&&!m));S&&(b=!0);c[k.id]={fixed:Z,sticky:H,transferrable:S,top:l,zIndex:N, | |
| transform:v}}else c[k.id]={fixed:!1,sticky:!1,transferrable:!1,top:"",zIndex:""}}},mutate:function(c){b&&a.Ja&&Hl(a).update();for(var d=a.L,e=0;e<d.length;e++){var g=d[e],h=c[g.id];W(g.element,"transition","none");W(g.element,"transition","");if(h){var k=e,l=h,m=g.element,n=g.fixedNow;g.fixedNow=l.fixed;g.stickyNow=l.sticky;g.top=l.fixed||l.sticky?l.top:"";g.transform=l.transform;!n||l.fixed&&l.transferrable||!a.Ia||a.Ia.returnFrom(g);l.top&&(l.fixed||l.sticky)&&!g.lightboxed&&(l.fixed||!a.Ja?W(m, | |
| "top","calc("+l.top+" + "+a.R+"px)"):a.$b===a.R?W(m,"top",l.top):W(m,"top","calc("+l.top+" - "+a.$b+"px)"));a.Ja&&l.fixed&&l.transferrable&&Hl(a).transferTo(g,k,l)}}}},{}).catch(function(a){x().error("FixedLayer","Failed to mutate fixed elements:",a)})}; | |
| f.trySetupSelectorsNoInline=function(a,b){try{for(var c=0;c<this.fc.length;c++)for(var d=this.fc[c],e=a.querySelectorAll(d),g=0;g<e.length&&!(10<this.L.length);g++)Ol(this,e[g],d,"fixed",void 0,b);for(c=0;c<this.Lc.length;c++){var h=this.Lc[c],k=a.querySelectorAll(h);for(d=0;d<k.length;d++)Ol(this,k[d],h,"sticky",void 0,b)}}catch(l){x().error("FixedLayer","Failed to setup fixed elements:",l)}}; | |
| function Ol(a,b,c,d,e,g){b.hasAttribute("style")&&(ze(b,"top")||ze(b,"bottom"))&&w().error("FixedLayer","Inline styles with `top`, `bottom` and other CSS rules are not supported yet for fixed or sticky elements (#14186). Unexpected behavior may occur.",b);if(!Fl(b)){var h=tb(b,Fl);if(g||!h){g=null;for(var k=0;k<a.L.length;k++){var l=a.L[k];if(l.element==b&&l.position==d){g=l;break}}k="fixed"==d;g?g.selectors.includes(c)||g.selectors.push(c):(g="F"+a.Gg++,b.setAttribute("i-amphtml-fixedid",g),k?b.__AMP_DECLFIXED= | |
| !0:b.__AMP_DECLSTICKY=!0,g={id:g,element:b,position:d,selectors:[c],fixedNow:!1,stickyNow:!1,lightboxed:!!h},a.L.push(g));g.forceTransfer=k?e:!1}}}function Pl(a,b){for(var c=[],d=0;d<a.L.length;d++){var e=a.L[d];e.element===b&&(e.lightboxed||a.o.mutate(function(){W(b,"top","")}),a.L.splice(d,1),c.push(e))}a.L.length||Kl(a);return c}function Il(a){a.L.sort(function(a,c){var b=a.element;var e=c.element;b=b===e?0:b.compareDocumentPosition(e)&Ob?1:-1;return b})} | |
| function Hl(a){if(!a.Ja||a.Ia)return a.Ia;var b=a.ampdoc.win.document;a.Ia=b.body.shadowRoot?new Ql(b,a.o):new Rl(b,a.o);return a.Ia}function Ll(a,b){for(var c=0;c<b.length;c++){var d=b[c];if(4==d.type||12==d.type)Ll(a,d.cssRules);else if(1==d.type){var e=d.selectorText;d=d.style.position;"*"!==e&&d&&("fixed"===d?a.fc.push(e):fb(d,"sticky")&&a.Lc.push(e))}}} | |
| function Rl(a,b){this.Z=a;this.o=b;this.sf=K(a.defaultView,"fixed-elements-in-lightbox");this.X=a.body.cloneNode(!1);this.X.removeAttribute("style");b={position:"absolute",top:0,left:0,height:0,width:0,pointerEvents:"none",overflow:"hidden",animation:"none",background:"none",border:"none",borderImage:"none",boxSizing:"border-box",boxShadow:"none",float:"none",margin:0,opacity:1,outline:"none",padding:"none",transform:"none",transition:"none",visibility:"visible"};this.sf&&delete b.visibility;Ae(this.X, | |
| Be(b));this.X.style.display="block";a.documentElement.appendChild(this.X)}f=Rl.prototype;f.getRoot=function(){return this.X};f.setLightboxMode=function(a){var b=this;this.o.mutate(function(){var c=b.getRoot();b.sf?a?c.setAttribute("i-amphtml-lightbox",""):c.removeAttribute("i-amphtml-lightbox"):W(c,"visibility",a?"hidden":"visible")})}; | |
| f.update=function(){for(var a=this.Z.body,b=this.X,c=a.attributes,d=b.attributes,e=0;e<c.length;e++){var g=c[e];"style"!==g.name&&d.setNamedItem(g.cloneNode(!1))}for(e=0;e<d.length;e++)g=d[e].name,"style"===g||"i-amphtml-lightbox"===g||a.hasAttribute(g)||(b.removeAttribute(g),e--)}; | |
| f.transferTo=function(a,b,c){var d=a.element;if(d.parentElement!=this.X){w().warn("FixedLayer","In order to improve scrolling performance in Safari, we now move the element to a fixed positioning layer:",a.element);if(!a.placeholder){W(d,"pointer-events","initial");var e=a.placeholder=this.Z.createElement("i-amphtml-fpa");Ce(e,!1);e.setAttribute("i-amphtml-fixedid",a.id)}W(d,"zIndex","calc("+(1E4+b)+" + "+(c.zIndex||0)+")");a.lightboxed&&d.classList.add("i-amphtml-lightbox-element");d.parentElement.replaceChild(a.placeholder, | |
| d);this.X.appendChild(d);a.selectors.some(function(a){try{var b=wb(d,a)}catch(k){x().error("FixedLayer","Failed to test query match:",k),b=!1}return b})||(w().warn("FixedLayer","Failed to move the element to the fixed position layer. This is most likely due to the compound CSS selector:",a.element),this.returnFrom(a))}}; | |
| f.returnFrom=function(a){if(a.placeholder&&this.Z.contains(a.placeholder)){var b=a.element,c=a.placeholder;a.lightboxed&&b.classList.remove("i-amphtml-lightbox-element");this.Z.contains(b)?(W(a.element,"zIndex",""),c.parentElement.replaceChild(b,c)):c.parentElement.removeChild(c)}}; | |
| function Ql(a,b){this.o=b;this.X=a.createElement("div");this.X.id="i-amphtml-fixed-layer";ye(this.X,{position:"absolute",top:0,left:0,height:0,width:0,overflow:"hidden"});var c=a.createElement("slot");c.setAttribute("name","i-amphtml-fixed");this.X.appendChild(c);a.body.shadowRoot.appendChild(this.X)}f=Ql.prototype;f.getRoot=function(){return this.X};f.setLightboxMode=function(a){var b=this;this.o.mutate(function(){W(b.getRoot(),"visibility",a?"hidden":"visible")})};f.update=function(){}; | |
| f.transferTo=function(a){var b=a.element;w().warn("FixedLayer","In order to improve scrolling performance in Safari, we now move the element to a fixed positioning layer:",a.element);b.setAttribute("slot","i-amphtml-fixed")};f.returnFrom=function(a){a.element.removeAttribute("slot")};var Sl=['\n <div id="i-amphtml-scroller">\n <div id="i-amphtml-body-wrapper">\n <slot></slot>\n </div>\n </div>'];Sl.raw=['\n <div id="i-amphtml-scroller">\n <div id="i-amphtml-body-wrapper">\n <slot></slot>\n </div>\n </div>'];var Tl="align-content align-items align-self alignment-baseline backface-visibility box-sizing column-count column-fill column-gap column-rule column-span column-width columns display flex flex-basis flex-direction flex-flow flex-grow flex-shrink flex-wrap gap grid grid-area grid-auto-columns grid-auto-flow grid-auto-rows grid-column grid-gap grid-row grid-template justify-content justify-items justify-self margin order padding perspective perspective-origin place-content place-items place-self table-layout".split(" "); | |
| function Ul(a){var b=this;this.win=a;this.o=qe(a);var c=this.win.document,d=c.documentElement;d.classList.add("i-amphtml-ios-embed-sd");K(a,"scroll-height-minheight")&&d.classList.add("i-amphtml-body-minheight");var e=te(c)(Sl);this.M=e;this.O=e.firstElementChild;this.M.style.display="block";ye(this.M,{"overflow-x":"hidden","overflow-y":"auto",position:"absolute",top:"0",left:"0",right:"0",bottom:"0",margin:"0",width:"100%","box-sizing":"border-box","padding-top":"0px","border-top":"1px solid transparent"}); | |
| ye(this.O,{overflow:"visible",position:"relative","will-change":"transform"});this.na=new Y;this.ka=new Y;this.Ca=this.Ib.bind(this);this.Ba=this.ph.bind(this);this.D=K(this.win,"layers");this.Rb=this.fd=!1;pb(c,this.Sb.bind(this));db(c).then(function(){b.M.classList.add("i-amphtml-ios-overscroll");ye(b.M,{"-webkit-overflow-scrolling":"touch"})})}f=Ul.prototype;f.ensureReadyForElements=function(){this.Sb()}; | |
| f.Sb=function(){if(!this.Rb){this.Rb=!0;var a=this.win.document.body;a.attachShadow({mode:"open"}).appendChild(this.M);this.qe();if(this.win.MutationObserver){var b=new this.win.MutationObserver(this.qe.bind(this));b.observe(a,{attributes:!0})}this.Ib()}};f.qe=function(){var a=this;if(!this.fd){var b=this.win.document.body;if(b){var c={};this.fd=!0;this.o.run({measure:function(){var d=De(a.win,b);Tl.forEach(function(a){c[a]=d[a]||""})},mutate:function(){a.fd=!1;ye(a.O,Be(c))}})}}}; | |
| f.ph=function(){this.ka.fire();this.qe()};f.connect=function(){this.win.addEventListener("resize",this.Ba);this.M.addEventListener("scroll",this.Ca)};f.disconnect=function(){this.win.removeEventListener("resize",this.Ba);this.M.removeEventListener("scroll",this.Ca)};f.getBorderTop=function(){return 1};f.requiresFixedLayerTransfer=function(){return!K(this.win,"ios-embed-sd-notransfer")};f.supportsPositionFixed=function(){return!0};f.onScroll=function(a){this.na.add(a)};f.onResize=function(a){this.ka.add(a)}; | |
| f.updatePaddingTop=function(a){ye(this.M,{"padding-top":a+"px"})};f.hideViewerHeader=function(a){a||this.updatePaddingTop(0)};f.showViewerHeader=function(a,b){a||this.updatePaddingTop(b)};f.disableScroll=function(){ye(this.M,{"overflow-y":"hidden",position:"fixed"})};f.resetScroll=function(){ye(this.M,{"overflow-y":"auto",position:"absolute"})};f.updateLightboxMode=function(){return Promise.resolve()};f.getSize=function(){return{width:this.win.innerWidth,height:this.win.innerHeight}}; | |
| f.getScrollTop=function(){return this.M.scrollTop};f.getScrollLeft=function(){return 0};f.getScrollWidth=function(){return this.M.scrollWidth};f.getScrollHeight=function(){return this.M.scrollHeight};f.getContentHeight=function(){var a=this.O,b=a.getBoundingClientRect(),c=De(this.win,a),d=b.top+this.getScrollTop();return b.height+d+parseInt(c.marginTop,10)+parseInt(c.marginBottom,10)}; | |
| f.contentHeightChanged=function(){var a=this;K(this.win,"scroll-height-bounce")&&this.o.mutate(function(){ye(a.M,{"-webkit-overflow-scrolling":"auto"});a.o.mutate(function(){ye(a.M,{"-webkit-overflow-scrolling":"touch"})})})};f.getLayoutRect=function(a,b,c){a=a.getBoundingClientRect();if(this.D)return G(a.left,a.top,a.width,a.height);var d=void 0!=c?c:this.getScrollTop(),e=void 0!=b?b:this.getScrollLeft();return G(Math.round(a.left+e),Math.round(a.top+d),Math.round(a.width),Math.round(a.height))}; | |
| f.getRootClientRectAsync=function(){return Promise.resolve(null)};f.setScrollTop=function(a){this.M.scrollTop=a||1};f.Ib=function(a){0==this.M.scrollTop&&(this.M.scrollTop=1,a&&a.preventDefault());a&&this.na.fire()};f.getScrollingElement=function(){return this.M};f.getScrollingElementScrollsLikeViewport=function(){return!1};function Vl(a){var b=this;this.win=a;this.o=qe(a);var c=this.win.document,d=c.documentElement,e=d.className;d.classList.add("i-amphtml-ios-embed");var g=c.createElement("html");this.O=g;g.id="i-amphtml-wrapper";g.className=e;K(a,"scroll-height-minheight")&&g.classList.add("i-amphtml-body-minheight");this.na=new Y;this.ka=new Y;this.Ca=this.Ib.bind(this);this.Ba=function(){return b.ka.fire()};this.D=K(this.win,"layers");this.R=0;this.Rb=!1;pb(c,this.Sb.bind(this));db(c).then(function(){d.classList.add("i-amphtml-ios-overscroll")})} | |
| f=Vl.prototype;f.ensureReadyForElements=function(){this.Sb()};f.Sb=function(){if(!this.Rb){this.Rb=!0;var a=this.win.document,b=a.body;a.documentElement.appendChild(this.O);this.O.appendChild(b);Object.defineProperty(a,"body",{get:function(){return b}});this.Ib()}};f.connect=function(){this.win.addEventListener("resize",this.Ba);this.O.addEventListener("scroll",this.Ca)};f.disconnect=function(){this.win.removeEventListener("resize",this.Ba);this.O.removeEventListener("scroll",this.Ca)}; | |
| f.getBorderTop=function(){return 1};f.requiresFixedLayerTransfer=function(){return!0};f.supportsPositionFixed=function(){return!0};f.onScroll=function(a){this.na.add(a)};f.onResize=function(a){this.ka.add(a)};f.updatePaddingTop=function(a){this.R=a;ye(this.O,{"padding-top":a+"px"})};f.hideViewerHeader=function(a){a||this.updatePaddingTop(0)};f.showViewerHeader=function(a,b){a||this.updatePaddingTop(b)};f.disableScroll=function(){this.O.classList.add("i-amphtml-scroll-disabled")};f.resetScroll=function(){this.O.classList.remove("i-amphtml-scroll-disabled")}; | |
| f.updateLightboxMode=function(){return Promise.resolve()};f.getSize=function(){return{width:this.win.innerWidth,height:this.win.innerHeight}};f.getScrollTop=function(){return this.O.scrollTop};f.getScrollLeft=function(){return 0};f.getScrollWidth=function(){return this.O.scrollWidth};f.getScrollHeight=function(){return this.O.scrollHeight}; | |
| f.getContentHeight=function(){var a=this.win.document.body,b=a.getBoundingClientRect(),c=De(this.win,a);return b.height+this.R+parseInt(c.marginTop,10)+parseInt(c.marginBottom,10)};f.contentHeightChanged=function(){var a=this;if(K(this.win,"scroll-height-bounce")){var b=this.win.document.documentElement;this.o.mutate(function(){b.classList.remove("i-amphtml-ios-overscroll");a.o.mutate(function(){b.classList.add("i-amphtml-ios-overscroll")})})}}; | |
| f.getLayoutRect=function(a,b,c){a=a.getBoundingClientRect();if(this.D)return G(a.left,a.top,a.width,a.height);c=void 0!=c?c:this.getScrollTop();b=void 0!=b?b:this.getScrollLeft();return G(Math.round(a.left+b),Math.round(a.top+c),Math.round(a.width),Math.round(a.height))};f.getRootClientRectAsync=function(){return Promise.resolve(null)};f.setScrollTop=function(a){this.O.scrollTop=a||1};f.Ib=function(a){0==this.O.scrollTop&&(this.O.scrollTop=1,a&&a.preventDefault());a&&this.na.fire()}; | |
| f.getScrollingElement=function(){return this.O};f.getScrollingElementScrollsLikeViewport=function(){return!1};function Wl(a){var b=this;this.ampdoc=a;this.win=a.win;this.sa=oe(this.win);this.na=new Y;this.ka=new Y;this.Ca=function(){b.na.fire()};this.Ba=function(){return b.ka.fire()};this.D=K(this.win,"layers")}f=Wl.prototype;f.connect=function(){this.win.addEventListener("scroll",this.Ca);this.win.addEventListener("resize",this.Ba)};f.disconnect=function(){this.win.removeEventListener("scroll",this.Ca);this.win.removeEventListener("resize",this.Ba)};f.ensureReadyForElements=function(){};f.getBorderTop=function(){return 0}; | |
| f.requiresFixedLayerTransfer=function(){return!1};f.supportsPositionFixed=function(){return!0};f.onScroll=function(a){this.na.add(a)};f.onResize=function(a){this.ka.add(a)};f.updatePaddingTop=function(a){ye(this.win.document.documentElement,{"padding-top":a+"px"})};f.hideViewerHeader=function(a){a||this.updatePaddingTop(0)};f.showViewerHeader=function(a,b){a||this.updatePaddingTop(b)};f.disableScroll=function(){this.win.document.documentElement.classList.add("i-amphtml-scroll-disabled")}; | |
| f.resetScroll=function(){this.win.document.documentElement.classList.remove("i-amphtml-scroll-disabled")};f.updateLightboxMode=function(){return Promise.resolve()};f.getSize=function(){var a=this.win.innerWidth,b=this.win.innerHeight;if(a&&b)return{width:a,height:b};var c=this.win.document.documentElement;return{width:c.clientWidth,height:c.clientHeight}}; | |
| f.getScrollTop=function(){var a=this.getScrollingElement().scrollTop||this.win.pageYOffset,b=this.ampdoc.getRootNode().host;return b?a-b.offsetTop:a};f.getScrollLeft=function(){return 0};f.getScrollWidth=function(){return this.getScrollingElement().scrollWidth};f.getScrollHeight=function(){return this.getScrollingElement().scrollHeight}; | |
| f.getContentHeight=function(){var a=this.getScrollingElement(),b=a.getBoundingClientRect();a=De(this.win,a);var c=b.top+this.getScrollTop();return b.height+c+parseInt(a.marginTop,10)+parseInt(a.marginBottom,10)};f.contentHeightChanged=function(){};f.getLayoutRect=function(a,b,c){a=a.getBoundingClientRect();if(this.D)return G(a.left,a.top,a.width,a.height);c=void 0!=c?c:this.getScrollTop();b=void 0!=b?b:this.getScrollLeft();return G(Math.round(a.left+b),Math.round(a.top+c),Math.round(a.width),Math.round(a.height))}; | |
| f.getRootClientRectAsync=function(){return Promise.resolve(null)};f.setScrollTop=function(a){this.getScrollingElement().scrollTop=a};f.getScrollingElement=function(){var a=this.win.document;return a.scrollingElement?a.scrollingElement:a.body&&this.sa.isWebKit()?a.body:a.documentElement};f.getScrollingElementScrollsLikeViewport=function(){return!0};function Xl(a){var b=500,c=0;return Math.min(Math.max(a,c),b)};function Yl(a,b){return{left:a,top:b}}var Zl=[],$l=0;function am(a,b,c){var d=this;a=a.win;this.Vf=b;this.$d=null;this.pc=[];this.Tc=[];bm(this,a.document);a.document.documentElement.contains(b)||bm(this,b);this.Tc.push(Te(a,"resize",function(){for(var a=d.pc,b=0;b<a.length;b++){var c=a[b];c.undeclareLayer();c.forgetParentLayer()}},{capture:!0,passive:!0}));this.xe=cm(this,b,!0,c)}f=am.prototype;f.dispose=function(){this.Tc.forEach(function(a){return a()});this.Tc.length=0}; | |
| f.add=function(a){var b=dm(a);b||(b=new em(a));this.pc.includes(b)||this.pc.push(b);return b};f.remove=function(a){if(a=dm(a)){var b=this.pc,c=b.indexOf(a);-1<c&&b.splice(c,1);if(c=a.getParentLayer())c.remove(a);else for(c=0;c<b.length;c++)b[c].remove(a);a.forgetParentLayer();a.dirtyMeasurements()}};f.getScrolledPosition=function(a,b){a=this.add(a).getScrolledPosition(b);return Yl(Math.round(a.left),Math.round(a.top))}; | |
| f.getOffsetPosition=function(a,b){a=this.add(a).getOffsetPosition(b);return Yl(Math.round(a.left),Math.round(a.top))};f.getSize=function(a){a=this.add(a).getSize();return{height:Math.round(a.height),width:Math.round(a.width)}};f.remeasure=function(a,b){a=this.add(a);a=a.getParentLayer()||a;b&&a.dirtyMeasurements();a.remeasure()};f.declareLayer=function(a){cm(this,a,!1,!1)};f.dirty=function(a){(fm(a)||dm(this.Vf)).dirtyMeasurements()};function cm(a,b,c,d){a=a.add(b);a.declareLayer(c,d);return a} | |
| function bm(a,b){a.Tc.push(Te(b,"scroll",function(b){b=b.target;b=b.nodeType==Node.ELEMENT_NODE?b:a.Vf;var c=dm(b);c&&c.isLayer()?c.dirtyScrollMeasurements():c=cm(a,b,!1,!1);a.xe=c;a.$d&&a.$d()},{capture:!0,passive:!0}))}f.onScroll=function(a){this.$d=a};f.getActiveLayer=function(){return this.xe};f.iterateAncestry=function(a,b,c){return this.add(a).iterateAncestry(b,c)}; | |
| function em(a){a.__AMP_LAYOUT=this;this.W=a;this.zd=a.tagName+"-"+$l++;this.Lb=void 0;this.Hb=!0;this.V={height:0,width:0};this.If=Yl(0,0);this.Fd=void 0;this.wc=this.Wf=this.tf=this.cb=!1;this.ua=this.Ua=0;this.Ma=[]}function dm(a){return a.__AMP_LAYOUT||null} | |
| function fm(a,b){if(gm(a))return null;if(!b&&(b=dm(a)))return b.getParentLayer();b=a.ownerDocument.defaultView;for(var c=a,d=a,e;c;){if((e=c===a?null:dm(c))&&e.isLayer())return e;if(c===d){if("fixed"==De(b,d).position){if(a=d!==a?d:hm(a.ownerDocument))return R(a,"layers").declareLayer(a),dm(a);break}d=d.offsetParent}e=c;c=c.assignedSlot||c.parentNode||c.host;!c&&(d=c=hm(e))&&(b=c.ownerDocument.defaultView)}return null}f=em.prototype;f.getId=function(){return this.zd}; | |
| f.contains=function(a){return a===this?!1:im(this,this.W,a.W)};function im(a,b,c){if(b.contains(c))return!0;if(b.ownerDocument!==c.ownerDocument){var d=hm(c.ownerDocument);return!!d&&im(a,b,d)}a=(a=sb(b))&&a.host;return!!a&&a.contains(c)}f.add=function(a){this.isLayer();this.contains(a);this.Ma.includes(a)||this.Ma.push(a)};f.remove=function(a){a=this.Ma.indexOf(a);-1<a&&this.Ma.splice(a,1)};f.isLayer=function(){return this.cb}; | |
| f.declareLayer=function(a,b){this.cb||(this.cb=!0,this.tf=a,this.Wf=b,this.wc=this.Hb=!0,(a=this.getParentLayer())&&a.Ja(this))};f.undeclareLayer=function(){if(this.cb&&!this.tf){var a=this.W;gm(a)||"fixed"===De(a.ownerDocument.defaultView,a).position||(this.cb=!1,a=this.getParentLayer()||fm(a,!0),this.Ja(a))}};f.Ja=function(a){var b=a.contains(this);Lg(this.Ma,function(c){return b||a.contains(c)?(c.dirtyMeasurements(),c.Lb=a,a.Ma.push(c),!0):!1})}; | |
| f.getParentLayer=function(){if(void 0===this.Lb){var a=fm(this.W,!0);(this.Lb=a)&&a.add(this)}return this.Lb};f.forgetParentLayer=function(){this.Lb=void 0};f.getSize=function(){this.remeasure();return this.V};f.getOffsetFromParent=function(){this.remeasure();return this.If};f.isActiveUnsafe=function(){return this.Fd}; | |
| f.getHorizontalDistanceFromParent=function(){var a=this.getParentLayer();if(!a)return 0;var b=this.getOffsetFromParent().left,c=this.getSize().width,d=a.getScrollLeft(),e=a.getSize().width;return b+c<d?d-(b+c):d+e<b?b-(d+e):0};f.getHorizontalViewportsFromParent=function(){var a=this.getHorizontalDistanceFromParent();if(0===a)return 0;var b=this.getParentLayer().getSize().width;return a/b}; | |
| f.getVerticalDistanceFromParent=function(){var a=this.getParentLayer();if(!a)return 0;var b=this.getOffsetFromParent().top,c=this.getSize().height,d=a.getScrollTop(),e=a.getSize().height;return b+c<d?d-(b+c):d+e<b?b-(d+e):0};f.getVerticalViewportsFromParent=function(){var a=this.getVerticalDistanceFromParent();if(0===a)return 0;var b=this.getParentLayer().getSize().height;return a/b};f.getScrollTop=function(){jm(this);return this.ua};f.getScrollLeft=function(){jm(this);return this.Ua}; | |
| f.getScrolledPosition=function(a){var b=this.getScrollLeft(),c=this.getScrollTop(),d=a?fm(a):null;for(a=this;a&&a!==d;a=a.getParentLayer()){var e=a.getOffsetFromParent();b+=e.left-a.getScrollLeft();c+=e.top-a.getScrollTop()}return Yl(b,c)};f.getOffsetPosition=function(a){var b=0,c=0;a=a?fm(a):null;for(var d=this;d&&d!==a;d=d.getParentLayer()){var e=d.getOffsetFromParent();b+=e.left;c+=e.top}return Yl(b,c)};f.dirtyMeasurements=function(){this.Hb=!0};f.dirtyScrollMeasurements=function(){this.wc=!0}; | |
| f.remeasure=function(){for(var a=this,b=this.getParentLayer();b;b=b.getParentLayer())b.Hb&&(a=b);a.Hb&&km(a)};f.iterateAncestry=function(a,b){for(var c=gm(this.W)?null:R(this.W,"layers").getActiveLayer(),d=c===this||!!c&&c.contains(this),e=this;e;)Zl.push(e),e.Fd=d,e===c&&(d=!1),e=e.getParentLayer();var g=void 0;e=Zl.length;for(var h=0;h<e;h++){var k=Zl.pop();g=a(g,k,h,b);k.Fd=void 0}return g}; | |
| function km(a){jm(a);a.Hb=!1;var b=a.W,c=a.getParentLayer();if(c)if(c.W.ownerDocument===a.W.ownerDocument){var d=c.getScrolledPosition(c.W.ownerDocument.documentElement);c=Yl(d.left-c.getScrollLeft(),d.top-c.getScrollTop())}else c=Yl(0,0);else c=Yl(0,0);var e=c;a.V={height:b.clientHeight,width:b.clientWidth};c=b.getBoundingClientRect();b=c.left;c=c.top;a.Wf&&(b+=a.getScrollLeft(),c+=a.getScrollTop());a.If=Yl(b-e.left,c-e.top);a=a.Ma;if(a.length)for(b=0;b<a.length;b++)km(a[b])} | |
| function jm(a){a.cb&&a.wc&&(a.wc=!1,a.Ua=a.W.scrollLeft,a.ua=a.W.scrollTop)}function hm(a){try{var b=a.defaultView,c=b&&b.frameElement;return c&&c.__AMP_EMBED__?c:null}catch(d){}return null}function gm(a){a=a.ownerDocument;if(!a)return!0;a=a.defaultView;return!a||!a.document}function lm(a,b,c){M(a,"layers",function(a){return new am(a,b,c)},!0)};function mm(a,b){return function(c){return a+(b-a)*c}};function nm(a,b,c){var d=this,e=a.win;this.ampdoc=a;this.sd=this.ampdoc.win.document;this.j=b;this.h=c;this.ua=this.V=this.Ob=null;this.ie=!1;this.Ua=null;this.R=Number(c.getParam("paddingTop")||0);this.nc=0;this.T=U(e);this.o=qe(e);this.je=!1;this.Uf=0;this.Xe=new Y;this.na=new Y;this.ka=new Y;this.ce=this.Vb=void 0;(this.D=K(e,"layers"))&&lm(a,this.j.getScrollingElement(),this.j.getScrollingElementScrollsLikeViewport());this.ga=new Gl(a,this.o,this.j.getBorderTop(),this.R,this.j.requiresFixedLayerTransfer()); | |
| a.whenReady().then(function(){return d.ga.setup()});this.h.onMessage("viewport",this.Ph.bind(this));this.h.onMessage("scroll",this.Rh.bind(this));this.h.onMessage("disableScroll",this.Jg.bind(this));this.j.updatePaddingTop(this.R);this.j.onScroll(this.Fh.bind(this));this.j.onResize(this.Sf.bind(this));this.onScroll(this.Gh.bind(this));this.oa=!1;this.h.onVisibilityChanged(this.hg.bind(this));this.hg();var g=this.sd.documentElement;a.isSingleDoc()&&g.classList.add("i-amphtml-singledoc");c.isEmbedded()? | |
| g.classList.add("i-amphtml-embedded"):g.classList.add("i-amphtml-standalone");Nb(e)&&g.classList.add("i-amphtml-iframed");"1"===c.getParam("webview")&&g.classList.add("i-amphtml-webview");Nb(e)&&"scrollRestoration"in e.history&&(e.history.scrollRestoration="manual")}f=nm.prototype;f.dispose=function(){this.j.disconnect()};f.ensureReadyForElements=function(){this.j.ensureReadyForElements()};f.hg=function(){var a=this.h.isVisible();a!=this.oa&&((this.oa=a)?(this.j.connect(),this.V&&this.Sf()):this.j.disconnect())}; | |
| f.getPaddingTop=function(){return this.R};f.getTop=function(){return this.getScrollTop()};f.getScrollTop=function(){null==this.ua&&(this.ua=this.j.getScrollTop());return this.ua};f.getScrollLeft=function(){null==this.Ua&&(this.Ua=this.j.getScrollLeft());return this.Ua};f.setScrollTop=function(a){this.ua=null;this.j.setScrollTop(a)};f.updatePaddingBottom=function(a){this.ampdoc.whenBodyAvailable().then(function(b){W(b,"borderBottom",a+"px solid transparent")})}; | |
| f.getSize=function(){if(this.V)return this.V;this.V=this.j.getSize();if(0==this.V.width||0==this.V.height){var a=this.h.getVisibilityState();("prerender"==a||"visible"==a)&&.01>Math.random()&&x().error("Viewport","viewport has zero dimensions")}return this.V};f.getHeight=function(){return this.getSize().height};f.getWidth=function(){return this.getSize().width};f.getScrollWidth=function(){return this.j.getScrollWidth()};f.getScrollHeight=function(){return this.j.getScrollHeight()}; | |
| f.getContentHeight=function(){return this.j.getContentHeight()};f.contentHeightChanged=function(){this.j.contentHeightChanged()};f.getRect=function(){if(null==this.Ob){var a=0,b=0;this.D||(a=this.getScrollTop(),b=this.getScrollLeft());var c=this.getSize();this.Ob=G(b,a,c.width,c.height)}return this.Ob}; | |
| f.getLayoutRect=function(a){var b=this.getScrollLeft(),c=this.getScrollTop(),d=ae(a,this.ampdoc.win);return d?(a=this.j.getLayoutRect(a,0,0),b=this.j.getLayoutRect(d,b,c),G(Math.round(a.left+b.left),Math.round(a.top+b.top),Math.round(a.width),Math.round(a.height))):this.j.getLayoutRect(a,b,c)}; | |
| f.getClientRectAsync=function(a){var b=this;if(this.D)return this.o.measurePromise(function(){return b.getLayoutRect(a)});var c=this.o.measurePromise(function(){return a.getBoundingClientRect()}),d=this.j.getRootClientRectAsync(),e=ae(a,this.ampdoc.win);e&&(d=this.o.measurePromise(function(){return e.getBoundingClientRect()}));return Promise.all([c,d]).then(function(a){var b=a[0];return(a=a[1])?fc(b,a.left,a.top):G(Number(b.left),Number(b.top),Number(b.width),Number(b.height))})}; | |
| f.supportsPositionFixed=function(){return this.j.supportsPositionFixed()};f.isDeclaredFixed=function(a){return this.ga.isDeclaredFixed(a)};f.scrollIntoView=function(a){var b=this;return om(this,a).then(function(c){return pm(b,a,c)})};function pm(a,b,c){var d=a.j.getLayoutRect(b).top,e=a.D?qm(a,c).then(function(a){return d+a}):Sa(function(){return Math.max(0,d-a.R)});e.then(function(b){return rm(a,c,b)})} | |
| f.animateScrollIntoView=function(a,b,c,d){var e=this;b=void 0===b?"top":b;return om(this,a).then(function(g){return e.animateScrollWithinParent(a,g,b,c,d)})}; | |
| f.animateScrollWithinParent=function(a,b,c,d,e){var g=this,h=this.j.getLayoutRect(a);a=(b==this.j.getScrollingElement()?this.getSize():this.getLayoutRect(b)).height;switch(c){case "bottom":var k=-a+h.height;break;case "center":k=-a/2+h.height/2;break;default:k=0}return qm(this,b).then(function(a){if(g.D)var c=Math.max(0,h.top+k+a);else{var l=h.top-g.R+k;c=Math.max(0,l)}if(c!=a)return sm(g,b,a,c,d,e)})}; | |
| function sm(a,b,c,d,e,g){g=void 0===g?"ease-in":g;e=void 0!==e?e:Math.floor(Xl(.65*Math.abs(c-d)));var h=mm(c,d);return Cl(b,function(c){rm(a,b,h(c))},e,g).thenAlways(function(){rm(a,b,d)})}function om(a,b){return a.o.measurePromise(function(){return vb(b,".i-amphtml-scrollable")||a.j.getScrollingElement()})}function rm(a,b,c){b==a.j.getScrollingElement()?a.j.setScrollTop(c):a.o.mutate(function(){b.scrollTop=c})} | |
| function qm(a,b){return b==a.j.getScrollingElement()?Sa(function(){return a.getScrollTop()}):a.o.measurePromise(function(){return b.scrollTop})}f.getScrollingElement=function(){return this.j.getScrollingElement()};f.onChanged=function(a){return this.Xe.add(a)};f.onScroll=function(a){return this.na.add(a)};f.onResize=function(a){return this.ka.add(a)}; | |
| f.enterLightboxMode=function(a,b){this.h.sendMessage("requestFullOverlay",{},!0);this.enterOverlayMode();this.ga.enterLightbox(a,b);a&&this.maybeEnterFieLightboxMode(a);return this.j.updateLightboxMode(!0)};f.leaveLightboxMode=function(a){this.h.sendMessage("cancelFullOverlay",{},!0);this.ga.leaveLightbox();this.leaveOverlayMode();a&&this.maybeLeaveFieLightboxMode(a);return this.j.updateLightboxMode(!1)};f.isLightboxExperimentOn=function(){return K(this.ampdoc.win,"amp-lightbox-a4a-proto")}; | |
| f.maybeEnterFieLightboxMode=function(a){var b=tm(this,a);b&&(this.isLightboxExperimentOn(),b.enterFullOverlayMode())};f.maybeLeaveFieLightboxMode=function(a){(a=tm(this,a))&&a.leaveFullOverlayMode()};function tm(a,b){var c=ae(b,a.ampdoc.win);return c&&c.__AMP_EMBED__}f.enterOverlayMode=function(){this.disableTouchZoom();this.disableScroll()};f.leaveOverlayMode=function(){this.resetScroll();this.restoreOriginalTouchZoom()};f.disableScroll=function(){var a=this;this.o.mutate(function(){a.j.disableScroll()})}; | |
| f.resetScroll=function(){var a=this;this.o.mutate(function(){a.j.resetScroll()})};f.resetTouchZoom=function(){var a=this,b=this.ampdoc.win.innerHeight,c=this.sd.documentElement.clientHeight;b&&c&&b===c||this.disableTouchZoom()&&this.T.delay(function(){a.restoreOriginalTouchZoom()},50)}; | |
| f.disableTouchZoom=function(){var a=um(this);if(!a)return!1;var b=a.content,c={"maximum-scale":"1","user-scalable":"no"};var d=Object.create(null);if(b)for(var e=b.split(/,|;/),g=0;g<e.length;g++){var h=e[g].split("="),k=h[0].trim();h=h[1];h=(h||"").trim();k&&(d[k]=h)}e=!1;for(var l in c)d[l]!==c[l]&&(e=!0,void 0!==c[l]?d[l]=c[l]:delete d[l]);if(e){b="";for(var m in d)0<b.length&&(b+=","),b=d[m]?b+(m+"="+d[m]):b+m}d=b;return vm(this,d)}; | |
| f.restoreOriginalTouchZoom=function(){return void 0!==this.ce?vm(this,this.ce):!1};f.hasScrolled=function(){return 0<this.Uf};f.updateFixedLayer=function(){this.ga.update()};f.addToFixedLayer=function(a,b){return this.ga.addElement(a,b)};f.removeFromFixedLayer=function(a){this.ga.removeElement(a)};function vm(a,b){return(a=um(a))&&a.content!=b?(a.content=b,!0):!1} | |
| function um(a){if(Nb(a.ampdoc.win))return null;void 0===a.Vb&&(a.Vb=a.sd.querySelector("meta[name=viewport]"),a.Vb&&(a.ce=a.Vb.content));return a.Vb}f.Rh=function(a){var b=a.scrollTop;this.setScrollTop(b)};f.Ph=function(a){var b=this,c=a.paddingTop,d=a.duration||0,e=a.curve,g=a["transient"];if(void 0!=c&&c!=this.R){this.nc=this.R;this.R=c;var h=wm(this,d,e,g);c<this.nc?this.j.hideViewerHeader(g,this.nc):h.then(function(){b.j.showViewerHeader(g,c)})}};f.Jg=function(a){a?this.disableScroll():this.resetScroll()}; | |
| function wm(a,b,c,d){a.ga.updatePaddingTop(a.R,d);if(0>=b)return Promise.resolve();var e=mm(a.nc-a.R,0);return Cl(a.ampdoc.getRootNode(),function(b){b=e(b);a.ga.transformMutate("translateY("+b+"px)")},b,c).thenAlways(function(){a.ga.transformMutate(null)})}function xm(a,b,c){var d=a.getSize(),e=a.getScrollTop(),g=a.getScrollLeft();a.Xe.fire({relayoutAll:b,top:e,left:g,width:d.width,height:d.height,velocity:c})} | |
| f.Fh=function(){var a=this;this.Ob=null;this.Uf++;this.Ua=this.j.getScrollLeft();var b=this.j.getScrollTop();if(!(0>b)){this.ua=b;if(!this.je){this.je=!0;var c=Date.now();this.T.delay(function(){a.o.measure(function(){a.cg(c,b)})},36)}this.na.fire()}};f.cg=function(a,b){var c=this,d=this.ua=this.j.getScrollTop(),e=Date.now(),g=0;e!=a&&(g=(d-b)/(e-a));.03>Math.abs(g)?(xm(this,!1,g),this.je=!1):this.T.delay(function(){return c.o.measure(c.cg.bind(c,e,d))},20)}; | |
| f.Gh=function(){var a=this;this.ie||(this.ie=!0,this.o.measure(function(){a.ie=!1;a.h.sendMessage("scroll",C({scrollTop:a.getScrollTop()}),!0)}))};f.Sf=function(){var a=this;this.Ob=null;var b=this.V;this.V=null;var c=this.getSize();this.ga.update().then(function(){var d=!b||b.width!=c.width;xm(a,d,0);var e=d||b.height!=c.height;e&&a.ka.fire({relayoutAll:d,width:c.width,height:c.height})})}; | |
| function ym(a){var b=V(a),c=a.win,d;if(d=a.isSingleDoc())d=b.getParam("viewportType")||zm,oe(c).isIos()&&d==zm&&(!Nb(c)&&r(c).development?d=Am:(Nb(c),d=Nb(c)&&b.isEmbedded()?Am:d)),d=d==Am;c=d?K(c,"ios-embed-sd")&&c.Element.prototype.attachShadow&&11<=oe(c).getMajorVersion()?new Ul(c):new Vl(c):new Wl(a);return new nm(a,c,b)}var zm="natural",Am="natural-ios-embed";var Bm=['\n <div class="i-amphtml-jank-meter"></div>'];Bm.raw=['\n <div class="i-amphtml-jank-meter"></div>'];function Cm(a){this.A=a;this.rc=this.qc=this.Ub=this.Zb=0;this.Qb=null;this.ya=Vd(a);this.Fb=this.Ge=this.He=null;Dm(this)}Cm.prototype.onScheduled=function(){Em(this)&&null==this.Qb&&(this.Qb=this.A.Date.now())}; | |
| Cm.prototype.onRun=function(){if(Em(this)&&null!=this.Qb){var a=this.A.Date.now()-this.Qb;this.Qb=null;this.Ub++;16<a&&(this.Zb++,x().info("JANK","Paint latency: "+a+"ms"));if(this.ya&&200==this.Ub){var b=this.A.Math.floor((this.Ub-this.Zb)/this.Ub*100);this.ya.tickDelta("gfp",b);this.ya.tickDelta("bf",this.Zb);this.Fb&&(this.ya.tickDelta("lts",this.rc),this.ya.tickDelta("ltc",this.qc),this.Fb.disconnect(),this.Fb=null);var c=0;this.He&&null!=this.Ge&&(c=this.A.Math.max(0,this.A.Math.floor(100*this.He.level- | |
| this.Ge)),this.ya.tickDelta("bd",c));this.ya.flush();if(K(this.A,"jank-meter")){var d=c,e=this.A.document,g=te(e)(Bm);g.textContent="bf:"+this.Zb+", lts: "+this.rc+", "+("ltc:"+this.qc+", bd:"+d);e.body.appendChild(g)}}}};function Em(a){return K(a.A,"jank-meter")||a.ya&&a.ya.isPerformanceTrackingOn()&&200>a.Ub} | |
| function Dm(a){Em(a)&&Fm(a.A)&&(a.Fb=new a.A.PerformanceObserver(function(b){for(var c=b.getEntries(),d=0;d<c.length;d++)if("longtask"==c[d].entryType){var e=a.A.Math.floor(c[d].duration/50);"cross-origin-descendant"==c[d].name?(a.qc+=e,w().info("LONGTASK","from child frame "+c[d].duration+"ms")):(a.rc+=e,x().info("LONGTASK","from self frame "+c[d].duration+"ms"))}}),a.Fb.observe({entryTypes:["longtask"]}))} | |
| function Fm(a){return!!a.PerformanceObserver&&!!a.TaskAttributionTiming&&"containerName"in a.TaskAttributionTiming.prototype};function Gm(a){var b=this;this.win=a;this.La=le(this.win);this.sb=P(this.win,"documentState");this.xh=Hm(this);this.I=[];this.Yd=[];this.oe=[];this.Xd=[];this.ta=!1;this.Wd=this.xc=null;this.kd=this.Eh.bind(this);this.Vg=new mh(this.win,this.kd,16);this.Fe=new mh(this.win,this.kd,40);this.le=null;var c=this.be.bind(this);if(this.La.isSingleDoc())Wd(this.La.getAmpDoc(),"viewer").then(function(a){b.le=a;a.onVisibilityChanged(c)});else this.sb.onVisibilityChanged(c);this.uf=new Cm(this.win)}f=Gm.prototype; | |
| f.be=function(){this.ta&&Im(this)};f.run=function(a,b){this.I.push(a);this.oe.push(b||void 0);this.Ta()};f.runPromise=function(a,b){this.run(a,b);if(this.xc)return this.xc;a=new E;this.Wd=a.resolve;return this.xc=a.promise};f.createTask=function(a){var b=this;return function(c){b.run(a,c)}};f.mutate=function(a){this.run({measure:void 0,mutate:a})};f.mutatePromise=function(a){return this.runPromise({measure:void 0,mutate:a})};f.measure=function(a){this.run({measure:a,mutate:void 0})}; | |
| f.measurePromise=function(a){var b=this;return new Promise(function(c){b.measure(function(){c(a())})})};f.canAnimate=function(a){return Jm(this,a)};function Jm(a,b){return a.sb.isHidden()?!1:a.le?a.le.isVisible():b?(a=a.La.getAmpDocIfAvailable(b),!a||V(a).isVisible()):!0}f.runAnim=function(a,b,c){if(!Jm(this,a))return x().warn("VSYNC","Did not schedule a vsync request, because document was invisible"),!1;this.run(b,c);return!0}; | |
| f.createAnimTask=function(a,b){var c=this;return function(d){return c.runAnim(a,b,d)}};f.runAnimMutateSeries=function(a,b,c){var d=this;return Jm(this,a)?new Promise(function(e,g){var h=Date.now(),k=0,l=d.createAnimTask(a,{mutate:function(a){var d=Date.now()-h;b(d,d-k,a)?c&&d>c?g(Error("timeout")):(k=d,l(a)):e()}});l({})}):Promise.reject(Error("CANCELLED"))};f.Ta=function(){this.ta||(this.ta=!0,this.uf.onScheduled(),Im(this))};function Im(a){Jm(a)?(a.xh(a.kd),a.Fe.schedule()):a.Vg.schedule()} | |
| f.Eh=function(){this.Fe.cancel();this.ta=!1;this.uf.onRun();var a=this.I,b=this.oe,c=this.Wd;this.xc=this.Wd=null;this.I=this.Yd;this.oe=this.Xd;for(var d=0;d<a.length;d++)a[d].measure&&!Km(a[d].measure,b[d])&&(a[d].mutate=void 0);for(d=0;d<a.length;d++)a[d].mutate&&Km(a[d].mutate,b[d]);this.Yd=a;this.Xd=b;this.Yd.length=0;this.Xd.length=0;c&&c()}; | |
| function Hm(a){var b=a.win.requestAnimationFrame||a.win.webkitRequestAnimationFrame;if(b)return b.bind(a.win);var c=0;return function(b){var d=Date.now(),g=Math.max(0,16-(d-c));c=d+g;a.win.setTimeout(b,g)}}function Km(a,b){try{var c=a(b);void 0!==c&&x().error("VSYNC","callback returned a value but vsync cannot propogate it: %s",a.toString())}catch(d){return Na(d),!1}return!0};var Lm=/nochunking=1/.test(self.location.hash),Mm=Promise.resolve();function Nm(a){M(a,"chunk",Om);return R(a,"chunk")}function Pm(a,b){Lm?Mm.then(b):Nm(a.documentElement).runForStartup(b)}function Qm(a,b){Lm?Mm.then(b):Nm(a).run(b,10)}function Rm(a){this.state="not_run";this.rd=a}function Sm(a,b){if("run"!=a.state){a.state="run";try{a.rd(b)}catch(c){throw a.Gf(),c;}}}Rm.prototype.Wh=function(){return this.rd.displayName||this.rd.name};Rm.prototype.Gf=function(){};Rm.prototype.rf=function(){return!1}; | |
| Rm.prototype.kg=function(){return!0};function Tm(a,b,c){Rm.call(this,a);var d=this;this.A=b;this.h=null;c.then(function(a){d.h=a;d.h.isVisible()&&Sm(d,null);d.h.onVisibilityChanged(function(){d.h.isVisible()&&Sm(d,null)})})}ka(Tm,Rm);Tm.prototype.Gf=function(){Af(self.document)};Tm.prototype.rf=function(){return this.h?this.h.isVisible():this.A.document.hidden?!1:!/visibilityState=(hidden|prerender)/.test(this.A.location.hash)};Tm.prototype.kg=function(){return!!this.h}; | |
| function Om(a){var b=this;this.A=a.win;this.I=new Qi;this.Je=this.cf.bind(this);this.Qh=Wd(a,"viewer");this.A.addEventListener("message",function(a){"amp-macro-task"==a.data&&b.cf(null)})}Om.prototype.run=function(a,b){a=new Rm(a);Um(this,a,b)};Om.prototype.runForStartup=function(a){a=new Tm(a,this.A,this.Qh);Um(this,a,Number.POSITIVE_INFINITY)};function Um(a,b,c){a.I.enqueue(b,c);Mm.then(function(){a.Ta()})} | |
| function Vm(a,b){for(var c=a.I.peek();c&&"not_run"!==c.state;)a.I.dequeue(),c=a.I.peek();c&&b&&a.I.dequeue();return c}Om.prototype.cf=function(a){var b=this,c=Vm(this,!0);if(!c)return!1;Sm(c,a);Mm.then(function(){b.Ta()});return!0};function Wm(a){Mm.then(function(){a.Je(null)})}Om.prototype.Ta=function(){var a=Vm(this);a&&(a.rf()?Wm(this):a.kg()&&this.A.requestIdleCallback?Xm(this.A,this.Je):this.A.postMessage("amp-macro-task","*"))}; | |
| function Xm(a,b){var c=15;function d(g){if(g.timeRemaining()<c){var h=2E3-(Date.now()-e);0>=h||g.didTimeout?b(g):a.requestIdleCallback(d,{timeout:h})}else b(g)}var e=Date.now();a.requestIdleCallback(d,{timeout:2E3})};(function(){Pa=Fa;x();w()})();(function(a){self.reportError=a})(function(a,b,c){Mf(b,c);b&&a&&Ca(b.message)&&!(0<=b.message.indexOf("\u200b\u200b\u200b\u200b"))&&le(a).isSingleDoc()&&(b=C({errorName:b.name,errorMessage:b.message}),a=le(a).getAmpDoc().getRootNode(),Hf(a.documentElement||a.body||a,b))}.bind(null,self)); | |
| function Ym(a){L(a,"crypto",yi);L(a,"batched-xhr",$g);L(a,"documentState",Fi);L(a,"platform",qj);L(a,"templates",gf);L(a,"timer",Ak);L(a,"timer",Ak);L(a,"vsync",Gm);L(a,"xhr",Yg);L(a,"input",pj)} | |
| function Zm(a){var b=self;function c(a){function c(){g.then(function(){"function"==typeof a?a(b.AMP,b.AMP._):e.registerExtension(a.n,a.f,b.AMP)})}"function"!=typeof a&&a.i?$m(e,a).then(function(){return an(b,a,c)}):an(b,a,c)}if(b.AMP_TAG)Promise.resolve();else{b.AMP_TAG=!0;var d=b.AMP||[];L(b,"extensions",Mh);var e=me(b);Ym(b);Xh(b);b.AMP={win:b,_:b.AMP?b.AMP._:void 0};b.AMP.config=Wc;b.AMP.BaseElement=df;b.AMP.BaseTemplate=ff;b.AMP.registerElement=e.addElement.bind(e);b.AMP.registerTemplate=function(a, | |
| c){var d=P(b,"templates");if(d.mb[a]){var e=d.Oc[a];y(e,"Duplicate template type: %s",a);delete d.Oc[a];e(c)}else d.mb[a]=Promise.resolve(c)};b.AMP.registerServiceForDoc=e.addService.bind(e);b.AMP.isExperimentOn=K.bind(null,b);b.AMP.toggleExperiment=zd.bind(null,b);b.AMP.setLogLevel=Ea.bind(null);b.AMP.setTickFunction=function(){};var g=a(b,e);for(a=0;a<d.length;a++){var h=d[a];if(bn(b,h))d.splice(a--,1);else if("function"==typeof h||"high"==h.p){try{c(h)}catch(k){x().error("runtime","Extension failed: ", | |
| k,h.n)}d.splice(a--,1)}}cn(b,function(){b.AMP.push=function(a){bn(b,a)||c(a)};for(var a=0;a<d.length;a++){var e=d[a];if(!bn(b,e))try{c(e)}catch(m){x().error("runtime","Extension failed: ",m,e.n)}}d.length=0});b.AMP.push||(b.AMP.push=d.push.bind(d));oe(b).isIos()&&W(b.document.documentElement,"cursor","pointer")}} | |
| function $m(a,b){if(Array.isArray(b.i))return b=b.i.map(function(b){return a.preloadExtension(b)}),Promise.all(b);if("string"==typeof b.i)return a.preloadExtension(b.i);x().error("RUNTIME","dependency is neither an array or a string",b.i);return Promise.resolve()}function an(a,b,c){"function"==typeof b||"high"==b.p?Promise.resolve().then(c):(c.displayName=b.n,Pm(a.document,c))} | |
| function dn(){Zm(function(a){var b=a.document.documentElement,c=le(a).getAmpDoc();a.AMP.ampdoc=c;var d=V(b);a.AMP.viewer=d;r().development&&(a.AMP.toggleRuntime=d.toggleRuntime.bind(d),a.AMP.resources=pe(b));b=re(b);a.AMP.viewport={};a.AMP.viewport.getScrollLeft=b.getScrollLeft.bind(b);a.AMP.viewport.getScrollWidth=b.getScrollWidth.bind(b);a.AMP.viewport.getWidth=b.getWidth.bind(b);return qb(a.document).then(function(){yh(c)})})} | |
| function bn(a,b){if(!K(a,"version-locking")||"function"==typeof b||"1903251702180"==b.v)return!1;var c=a.document.head.querySelector('[custom-element="'+b.n+'"]:not([i-amphtml-inserted])');if(!c)return!1;me(a).reloadExtension(b.n,c);return!0}function cn(a,b){K(a,"pump-early-frame")?a.document.body?0<pf(a).length?b():U(a).delay(b,1):b():b()};function en(){var a=self;bb(a.document,function(){return fn(a)})} | |
| function fn(a){var b=0,c=a.performance;c&&c.timing&&c.timing.responseStart&&(b=Date.now()-c.timing.responseStart);var d=Math.max(1,250-b);a.setTimeout(function(){gn(a);var b=a.document.styleSheets;if(b){for(var c=a.document.querySelectorAll('link[rel~="stylesheet"]:not([href^="'+String(Vc.cdn).replace(Wa,Xa)+'"])'),h=[],k=0;k<c.length;k++){for(var l=c[k],m=!1,n=0;n<b.length;n++)if(b[n].ownerNode==l){m=!0;break}m||h.push(l)}k={};for(l=0;l<h.length;k={ra:k.ra,media:k.media},l++)k.ra=h[l],k.media=k.ra.media|| | |
| "all",k.ra.media="not-matching",k.ra.onload=function(b){return function(){b.ra.media=b.media;gn(a)}}(k),k.ra.setAttribute("i-amphtml-timeout",d),k.ra.parentNode.insertBefore(k.ra,k.ra.nextSibling)}},d)}function gn(a){if(K(a,"font-display-swap")&&(a=a.document,a.fonts&&a.fonts.values))for(var b=a.fonts.values();a=b.next();){var c=a.value;if(!c)break;"loading"==c.status&&"display"in c&&"auto"==c.display&&(c.display="swap")}};function hn(a){var b=a.win;K(b,"amp-auto-lightbox")&&Qm(a,function(){me(b).installExtensionForDoc(a,"amp-auto-lightbox")})};function jn(a){var b=!0;this.win=a;this.kb=null;b&&(this.kb=new kn(a));this.ze=K(a,"ampdoc-closest");this.va=null}f=jn.prototype;f.isSingleDoc=function(){return!!this.kb};f.hasAmpDocShell=function(){return!!this.va}; | |
| f.getAmpDocIfAvailable=function(a,b){b=void 0===b?{}:b;var c=void 0===b.closestAmpDoc?!1:b.closestAmpDoc;if(this.kb&&!c&&!this.ze)return this.kb;if(K(this.win,"ampdoc-shell")&&a===this.win.document){if(this.va)return this.va;throw x().createError("Ampdoc for shell has not been installed");}for(b=a;b;){if(b.F&&(this.ze||!c))return b.F;var d=ae(b,this.win);if(d)b=d;else{b=Cf(b);if(!b){if(this.va)return this.va;break}if(d=b.__AMPDOC)return d;b=b.host}}return this.kb?this.kb:null}; | |
| f.getAmpDoc=function(a,b){b=this.getAmpDocIfAvailable(a,b);if(!b)throw x().createError("No ampdoc found for",a);return b};f.installShadowDoc=function(a,b){a=new ln(this.win,a,b);return b.__AMPDOC=a};f.installShellShadowDoc=function(){var a=this;this.va=new mn(this.win);this.win.document.__AMPDOC=this.va;db(this.win.document).then(function(b){a.va.setBody(b.body);a.va.setReady()});return this.va};function nn(a){this.win=a;this.S=new ih;this.$e=[]}f=nn.prototype;f.isSingleDoc=function(){return null}; | |
| f.getWin=function(){return this.win};f.signals=function(){return this.S};f.declaresExtension=function(a){return-1!=this.$e.indexOf(a)};f.declareExtension=function(a){this.declaresExtension(a)||this.$e.push(a)};f.getRootNode=function(){return null};f.getHeadNode=function(){};f.isBodyAvailable=function(){return!1};f.getBody=function(){return null};f.whenBodyAvailable=function(){return null};f.isReady=function(){return null};f.whenReady=function(){return null};f.getUrl=function(){return null}; | |
| f.getElementById=function(a){return this.getRootNode().getElementById(a)};f.contains=function(a){return this.getRootNode().contains(a)};function kn(a){nn.call(this,a);var b=this;this.ed=this.win.document.body?Promise.resolve(this.win.document.body):qb(this.win.document).then(function(){return b.getBody()});this.he=db(this.win.document)}ka(kn,nn);f=kn.prototype;f.isSingleDoc=function(){return!0};f.getRootNode=function(){return this.win.document};f.getUrl=function(){return this.win.location.href}; | |
| f.getHeadNode=function(){return this.win.document.head};f.isBodyAvailable=function(){return!!this.win.document.body};f.getBody=function(){return this.win.document.body};f.whenBodyAvailable=function(){return this.ed};f.isReady=function(){return $a(this.win.document)};f.whenReady=function(){return this.he};function ln(a,b,c){nn.call(this,a);this.se=b;this.Yf=c;this.gd=null;var d=new E;this.ed=d.promise;this.Ie=d.resolve;this.Of=!1;var e=new E;this.he=e.promise;this.Nf=e.resolve}ka(ln,nn);f=ln.prototype; | |
| f.isSingleDoc=function(){return!1};f.getRootNode=function(){return this.Yf};f.getUrl=function(){return this.se};f.getHeadNode=function(){return this.Yf};f.isBodyAvailable=function(){return!!this.gd};f.getBody=function(){return this.gd};f.setBody=function(a){this.gd=a;this.Ie(a);this.Ie=void 0};f.whenBodyAvailable=function(){return this.ed};f.isReady=function(){return this.Of};f.setReady=function(){this.Of=!0;this.Nf();this.Nf=void 0};f.whenReady=function(){return this.he}; | |
| function mn(a){ln.call(this,a,a.location.href,a.document)}ka(mn,ln);mn.prototype.getHeadNode=function(){return this.win.document.head};function on(){var a=self;L(a,"ampdoc",function(){return new jn(a)})};function pn(a){var b=this;this.win=a;this.Cd=this.win.Date.now();this.ub=[];this.w=this.h=null;this.Db=this.Ld=!1;this.bf=A();this.Be="";this.gf=this.ef=this.Af=null;this.Xb=this.mc=0;this.Le=this.Ac.bind(this);this.Ne=this.dg.bind(this);this.addEnabledExperiment("rtv-"+r(this.win).rtvVersion);xd(this.win)&&this.addEnabledExperiment("canary");eb(a.document).then(function(){b.tick("ol");if(!b.win.PerformancePaintTiming&&b.win.chrome&&"function"==typeof b.win.chrome.loadTimes){var a=1E3*b.win.chrome.loadTimes().firstPaintTime- | |
| b.win.performance.timing.navigationStart;1>=a||b.tickDelta("fp",a)}b.flush()});qn(this);rn(this)}f=pn.prototype; | |
| f.coreServicesAvailable=function(){var a=this,b=this.win.document.documentElement;this.h=V(b);this.w=pe(b);this.Db=this.h.isEmbedded()&&"1"===this.h.getParam("csi");this.h.onVisibilityChanged(this.flush.bind(this));sn(this);var c=this.h.whenMessagingReady();this.h.whenFirstVisible().then(function(){a.tick("ofv");a.flush()});this.win.PerformanceLayoutJank&&(this.win.addEventListener("visibilitychange",this.Le,{capture:!0}),oe(this.win).isSafari()&&this.win.addEventListener("beforeunload",this.Ne)); | |
| return c?c.then(function(){a.Ld=!0;a.tickDelta("msr",a.win.Date.now()-a.Cd);tn(a);a.flush()}):Promise.resolve()}; | |
| function qn(a){function b(b){"first-paint"!=b.name||c?"first-contentful-paint"!=b.name||d?"firstInput"!==b.entryType||e?"layoutJank"===b.entryType&&(a.Xb+=b.fraction):(a.tickDelta("fid",b.processingStart-b.startTime),e=!0):(a.tickDelta("fcp",b.startTime+b.duration),d=!0):(a.tickDelta("fp",b.startTime+b.duration),c=!0)}var c=!1,d=!1,e=!1,g=[];a.win.PerformancePaintTiming&&(a.win.performance.getEntriesByType("paint").forEach(b),g.push("paint"));a.win.PerformanceEventTiming&&(a.win.performance.getEntriesByType("firstInput").forEach(b), | |
| g.push("firstInput"));a.win.PerformanceLayoutJank&&(a.win.performance.getEntriesByType("layoutJank").forEach(b),g.push("layoutJank"));if(0!==g.length){var h=new a.win.PerformanceObserver(function(c){c.getEntries().forEach(b);a.flush()});try{h.observe({entryTypes:g})}catch(k){x().warn(k)}}}function rn(a){if(a.win.perfMetrics&&a.win.perfMetrics.onFirstInputDelay)a.win.perfMetrics.onFirstInputDelay(function(b){a.tickDelta("fid-polyfill",b);a.flush()})} | |
| f.Ac=function(){"hidden"===this.win.document.visibilityState&&this.dg()};f.dg=function(){0===this.mc?(this.tickDelta("lj",this.Xb),this.flush(),this.mc=1):1===this.mc&&(this.tickDelta("lj-2",this.Xb),this.flush(),this.mc=2,this.win.removeEventListener("visibilitychange",this.Le,{capture:!0}),this.win.removeEventListener("beforeunload",this.Ne))}; | |
| function sn(a){var b=!a.h.hasBeenVisible(),c=b?-1:a.Cd;b&&a.h.whenFirstVisible().then(function(){c=a.win.Date.now();a.mark("visible")});un(a).then(function(){if(b){var d=-1<c?a.win.Date.now()-c:0;a.h.whenFirstVisible().then(function(){a.tickDelta("pc",d)});vn(a,d);a.mark("pc")}else a.tick("pc"),vn(a,a.win.Date.now()-c);a.flush()})} | |
| function un(a){var b=re(a.win.document.documentElement).getSize();b=G(0,0,b.width,b.height);return a.w.getResourcesInRect(a.win,b,!0).then(function(a){return Promise.all(a.map(function(a){return a.loadedOnce()}))})} | |
| f.tick=function(a,b){var c=void 0==b?this.win.Date.now():void 0,d=C({label:a,value:c,delta:null!=b?Math.max(b,0):void 0});this.Ld&&this.Db?this.h.sendMessage("tick",d):(50<=this.ub.length&&this.ub.shift(),this.ub.push(d));1==arguments.length&&this.mark(a);var e=Math.round(null!=b?Math.max(b,0):c-this.Cd);switch(a){case "fcp":this.ef=e;break;case "pc":this.gf=e;break;case "mbv":this.Af=e}};f.mark=function(a){this.win.performance&&this.win.performance.mark&&1==arguments.length&&this.win.performance.mark(a)}; | |
| f.tickDelta=function(a,b){this.tick(a,b)};f.tickSinceVisible=function(a){var b=this.win.Date.now(),c=this.h?this.h.getFirstVisibleTime():0;this.tickDelta(a,c?Math.max(b-c,0):0)};f.flush=function(){this.Ld&&this.Db&&this.h.sendMessage("sendCsi",C({ampexp:this.Be}),!0)};f.throttledFlush=function(){this.bg||(this.bg=Df(this.win,this.flush.bind(this)));this.bg()};f.addEnabledExperiment=function(a){this.bf[a]=!0;this.Be=Object.keys(this.bf).join(",")}; | |
| function tn(a){a.h&&(a.Db&&a.ub.forEach(function(b){a.h.sendMessage("tick",b)}),a.ub.length=0)}function vn(a,b){a.h&&a.h.sendMessage("prerenderComplete",C({value:b}),!0)}f.isPerformanceTrackingOn=function(){return this.Db};f.getFirstContentfulPaint=function(){return this.ef};f.getMakeBodyVisible=function(){return this.Af};f.getFirstViewportReady=function(){return this.gf};function wn(a,b){this.Z=a;this.G=b;this.Pc=!1;this.me=0;this.Re=this.uh.bind(this);this.Qe=this.sh.bind(this);this.Pe=this.rh.bind(this);this.Oe=this.qh.bind(this);this.Z.addEventListener("touchstart",this.Re,!0)}f=wn.prototype;f.cleanup=function(){xn(this);this.Z.removeEventListener("touchstart",this.Re,!0)}; | |
| f.uh=function(a){this.Pc||!a.touches||1!=a.touches.length||0<this.G.getScrollTop()||(a=a.touches[0].clientY,this.Pc=!0,this.me=a,this.Z.addEventListener("touchmove",this.Qe,!0),this.Z.addEventListener("touchend",this.Pe,!0),this.Z.addEventListener("touchcancel",this.Oe,!0))};function xn(a){a.Pc=!1;a.me=0;a.Z.removeEventListener("touchmove",a.Qe,!0);a.Z.removeEventListener("touchend",a.Pe,!0);a.Z.removeEventListener("touchcancel",a.Oe,!0)} | |
| f.sh=function(a){if(this.Pc){var b=a.touches[0].clientY-this.me;0<b&&a.preventDefault();0!=b&&xn(this)}};f.rh=function(){xn(this)};f.qh=function(){xn(this)};function yn(){var a=self,b=a.location.href;if(!gb(b,"about:")){var c=!1;r().development&&(c="0"!==q(a.location.originalHash||a.location.hash).validate);c?zn(a.document,Vc.cdn+"/v0/validator.js").then(function(){amp.validator.validateUrlAndLog(b,a.document,r().filter)}):r().examiner&&zn(a.document,Vc.cdn+"/examiner.js")}}function zn(a,b){var c=a.createElement("script");c.src=b;b=We(c).then(function(){a.head.removeChild(c)},function(){});a.head.appendChild(c);return b};if(!self.IS_AMP_ALT){self.location&&(self.location.originalHash=self.location.hash);var ampdocService;try{Pf(),on(),ampdocService=le(self)}catch(a){throw Af(self.document),a;}Pm(self.document,function(){var a=ampdocService.getAmpDoc(self.document);L(self,"performance",pn);var b=ne(self);self.document.documentElement.hasAttribute("i-amphtml-no-boilerplate")&&b.addEnabledExperiment("no-boilerplate");L(self,"platform",qj);en();b.tick("is");rf(a,cssText$$module$build$css,function(){Pm(self.document,function(){Ym(self); | |
| M(a,"url",Bk,!0);M(a,"cid",hi);M(a,"documentInfo",Bi);rl(a);M(a,"viewport",ym,!0);M(a,"history",oj);M(a,"resources",yj);fl(a);M(a,"action",pg,!0);M(a,"standard-actions",ak,!0);zk(a);M(a,"navigation",Si,!0);$i(a);b.coreServicesAvailable();Ki()});Pm(self.document,function(){dn()});Pm(self.document,function(){var a=self;xh(a,"amp-img",Ch);xh(a,"amp-pixel",Ih);xh(a,"amp-layout",Gh)});Pm(self.document,function(){yh(a)});Pm(self.document,function(){var b=self,d=b.document.documentElement;"0"==V(d).getParam("p2r")&& | |
| oe(b).isChrome()&&new wn(b.document,re(d));hn(a);yn();yf()});Pm(self.document,function(){b.tick("e_is");pe(a).ampInitComplete();b.flush()})},!0,"amp-runtime")});self.console&&(console.info||console.log).call(console,"Powered by AMP \u26a1 HTML \u2013 Version 1903251702180",self.location.href);self.document.documentElement.setAttribute("amp-version","1903251702180")};})(AMP._=AMP._||{})}catch(e){setTimeout(function(){var s=document.body.style;s.opacity=1;s.visibility="visible";s.animation="none";s.WebkitAnimation="none;"},1000);throw e}; | |
| //# sourceMappingURL=v0.js.map | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment