Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jgraph/drawio-desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDavid Benson <david@jgraph.com>2017-08-16 19:43:15 +0300
committerDavid Benson <david@jgraph.com>2017-08-16 19:43:15 +0300
commitf99232c7b9697df24505ceb63c532fea2f825858 (patch)
treeccad34ebfc8d0927942a70787fb2804766dc3caf /doc
parentfce789df0964533d492f342dcdb6a32b17b57472 (diff)
Added doc
Diffstat (limited to 'doc')
-rw-r--r--doc/download_files/v0.js430
-rw-r--r--doc/index.html81
2 files changed, 511 insertions, 0 deletions
diff --git a/doc/download_files/v0.js b/doc/download_files/v0.js
new file mode 100644
index 0000000..1c3ac41
--- /dev/null
+++ b/doc/download_files/v0.js
@@ -0,0 +1,430 @@
+self.AMP_CONFIG={"allow-doc-opt-in":["visibility-v3","amp-animation"],"allow-url-opt-in":["pump-early-frame"],"canary":0,"expAdsenseA4A":0.01,"expDoubleclickA4A":0.01,"dbclk_a4a_viz_change":0.02,"a4aProfilingRate":0.1,"ad-type-custom":1,"ios-embed-wrapper":1,"amp-apester-media":1,"amp-playbuzz":1,"chunked-amp":1,"sticky-ad-early-load":1,"amp-auto-ads":1,"amp-auto-ads-adsense-holdout":0.1,"slidescroll-disable-css-snap":1,"version-locking":1,"visibility-v3":1,"a4aFastFetchDoubleclickLaunched":0,"a4aFastFetchAdSenseLaunched":0,"pump-early-frame":1,"a4a-measure-get-ad-urls":0,"ad-loader-v2":1,"3p-use-ampcontext":0,"amp-animation":1,"v":"011502819823157"};/*AMP_CONFIG*/try{(function(){var f;function aa(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a;for(var d in b)if(Object.defineProperties){var e=Object.getOwnPropertyDescriptor(b,d);e&&Object.defineProperty(a,d,e)}else a[d]=b[d]}var da=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global?global:a}(this);function ea(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}function fa(a,b){return b.length>a.length?!1:0==a.lastIndexOf(b,0)};function ga(a,b){b=void 0===b?"":b;try{return decodeURIComponent(a)}catch(c){return b}};var ha=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function ia(a){var b=Object.create(null);if(!a)return b;for(var c;c=ha.exec(a);){var d=ga(c[1],c[1]).trim(),e=c[2]?ga(c[2],c[2]).trim():"";b[d]=e}return b};var ja="";
+function p(a){var b=a||self,c;if(b.AMP_MODE)c=b.AMP_MODE;else{c=b;if(c.context&&c.context.mode)c=c.context.mode;else{var d=ia(c.location.originalHash||c.location.hash),e=ia(c.location.search);ja||(ja=c.AMP_CONFIG&&c.AMP_CONFIG.v?c.AMP_CONFIG.v:"011502819823157");c={localDev:!1,development:!("1"!=d.development&&!c.AMP_DEV_MODE),examiner:"2"==d.development,filter:d.filter,minified:!0,lite:void 0!=e.amp_lite,test:!1,log:d.log,version:"1502819823157",rtvVersion:ja}}c=b.AMP_MODE=c}return c}
+;var pa=Object.prototype.toString;function qa(a){return Array.isArray(a)}function ra(a){return"[object Object]"===pa.call(a)}function sa(a){return"number"===typeof a&&isFinite(a)};var ta=Date.now();function va(a){return 0<=a.indexOf("\u200b\u200b\u200b")}function wa(a,b,c){this.win=a;this.If=b;this.Ma=this.win.console&&this.win.console.log&&"0"!=p().log?this.If({localDev:!1,development:p(void 0).development,filter:p(void 0).filter,minified:!0,lite:p(void 0).lite,test:!1,log:p(void 0).log,version:p(void 0).version,rtvVersion:p(void 0).rtvVersion}):0;this.nc=c||""}
+function xa(a,b,c,d){if(0!=a.Ma){var e=a.win.console.log;"ERROR"==c?e=a.win.console.error||e:"INFO"==c?e=a.win.console.info||e:"WARN"==c&&(e=a.win.console.warn||e);d.unshift(Date.now()-ta,"["+b+"]");e.apply(a.win.console,d)}}f=wa.prototype;f.isEnabled=function(){return 0!=this.Ma};f.fine=function(a,b){4<=this.Ma&&xa(this,a,"FINE",Array.prototype.slice.call(arguments,1))};f.info=function(a,b){3<=this.Ma&&xa(this,a,"INFO",Array.prototype.slice.call(arguments,1))};
+f.warn=function(a,b){2<=this.Ma&&xa(this,a,"WARN",Array.prototype.slice.call(arguments,1))};f.ee=function(a,b){if(1<=this.Ma)xa(this,a,"ERROR",Array.prototype.slice.call(arguments,1));else{var c=ya.apply(null,Array.prototype.slice.call(arguments,1));za(this,c);return c}};f.error=function(a,b){var c=this.ee.apply(this,arguments);c&&(c.name=a||c.name,self.reportError(c))};f.expectedError=function(a,b){var c=this.ee.apply(this,arguments);c&&(c.expected=!0,self.reportError(c))};
+f.createError=function(a){var b=ya.apply(null,arguments);za(this,b);return b};f.createExpectedError=function(a){var b=ya.apply(null,arguments);za(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=[];""!=g&&k.push(g);for(g=2;g<arguments.length;g++){var l=arguments[g];l&&l.tagName&&(d=l);var m=e.shift();k.push(l);var n=m.trim();""!=n&&k.push(n);var n=h,q;q=(q=l)&&1==q.nodeType?q.tagName.toLowerCase()+(q.id?"#"+q.id:""):q;h=n+(q+m)}g=Error(h);g.fromAssert=!0;g.associatedElement=d;g.messageArray=k;za(this,g);self.reportError(g);throw g;}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.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 za(a,b){b=Aa(b);a.nc?b.message?-1==b.message.indexOf(a.nc)&&(b.message+=a.nc):b.message=a.nc:va(b.message)&&(b.message=b.message.replace("\u200b\u200b\u200b",""))}function Aa(a){var b=a.message,c=String(Math.random());a.message=c;if(a.message===c)return a.message=b,a;var b=Error(a.message),d;for(d in a)b[d]=a[d];b.stack=a.stack;return b}
+function ya(a){for(var b=null,c="",d=0;d<arguments.length;d++){var e=arguments[d];e instanceof Error&&!b?b=Aa(e):(c&&(c+=" "),c+=e)}b?c&&(b.message=c+": "+b.message):b=Error(c);return b}function Ba(a){var b=ya.apply(null,arguments);setTimeout(function(){self.reportError(b);throw b;})}self.log=self.log||{user:null,dev:null,userForEmbed:null};var Ca=self.log,Da=null;function r(){Ca.user||(Ca.user=Ea());return Ca.user}
+function Ea(){if(!Da)throw Error("failed to call initLogConstructor");return new Da(self,function(a){var b=parseInt(a.log,10);return a.development||1<=b?4:0},"\u200b\u200b\u200b")}function x(){if(Ca.dev)return Ca.dev;if(!Da)throw Error("failed to call initLogConstructor");return Ca.dev=new Da(self,function(a){a=parseInt(a.log,10);return 3<=a?4:2<=a?3:0})};function z(a){var b=Object.create(null);a&&Object.assign(b,a);return b}function D(a){return a||{}};function Fa(a){return a==this||this.documentElement.contains(a)}function Ja(a){a.HTMLDocument.prototype.contains||a.Object.defineProperty(a.HTMLDocument.prototype,"contains",{enumerable:!1,configurable:!0,writable:!0,value:Fa})};function Ka(a){return(a=Number(a))?0<a?1:-1:a};var La=Object.prototype.hasOwnProperty;function Ma(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)La.call(e,g)&&(c[g]=e[g])}return c};function Na(a){if(!(this instanceof Na))throw new TypeError("Constructor Promise requires `new`");if(!Oa(a))throw new TypeError("Must pass resolver function");this._state=Va;this._value=[];this._isChainEnd=!0;Wa(this,Xa(this,Ya),Xa(this,Za),{then:a})}Na.prototype.then=function(a,b){a=Oa(a)?a:void 0;b=Oa(b)?b:void 0;if(a||b)this._isChainEnd=!1;return this._state(this._value,a,b)};Na.prototype.catch=function(a){return this.then(void 0,a)};
+function $a(a){var b=this,c;return c=a===Object(a)&&a instanceof this?a:new b(function(b){b(a)})}function ab(a){return new this(function(b,c){c(a)})}function bb(a){var b=this;return new b(function(c,d){var e=a.length,g=Array(e);if(0===e)return c(g);mb(a,function(a,k){b.resolve(a).then(function(a){g[k]=a;0===--e&&c(g)},d)})})}function nb(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 Ya(a,b,c,d){if(!b){if(b=d)b=b.promise,b._state=Ya,b._value=a;return this}d||(d=new ob(this.constructor));pb(qb(d,b,a));return d.promise}function Za(a,b,c,d){if(!c)return d&&(b=d.promise,b._state=Za,b._value=a),this;d||(d=new ob(this.constructor));pb(qb(d,c,a));return d.promise}function Va(a,b,c,d){if(!d){if(!b&&!c)return this;d=new ob(this.constructor)}a.push({deferred:d,onFulfilled:b||d.resolve,onRejected:c||d.reject});return d.promise}
+function ob(a){var b=this;this.promise=new a(function(a,d){b.resolve=a;b.reject=d});return b}function rb(a,b,c,d){var e=a._value;a._state=b;a._value=c;d&&b===Va&&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===Za&&a._isChainEnd&&setTimeout(function(){if(a._isChainEnd)throw c;},0)}function Xa(a,b){return function(c){rb(a,b,c)}}function sb(){}
+function Oa(a){return"function"===typeof a}function mb(a,b){for(var c=0;c<a.length;c++)b(a[c],c)}function qb(a,b,c){var d=a.promise,e=a.resolve,g=a.reject;return function(){try{var a=b(c);Wa(d,e,g,a,a)}catch(k){g(k)}}}
+var pb=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}var c;"undefined"!==typeof window&&window.postMessage?(window.addEventListener("message",a),c=function(){window.postMessage("macro-task","*")}):c=function(){setTimeout(a,0)};var d=Array(16),e=0;return b}();
+function Wa(a,b,c,d,e){var g=c,h,k;try{if(d===a)throw new TypeError("Cannot fulfill promise with itself");var l=d===Object(d);l&&d instanceof a.constructor?rb(a,d._state,d._value,d):l&&(h=d.then)&&Oa(h)?(k=function(d){k=g=sb;Wa(a,b,c,d,d)},g=function(a){k=g=sb;c(a)},h.call(e,function(a){k(a)},function(a){g(a)})):b(d)}catch(m){g(m)}};function tb(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 ub(a){function b(a){return a.toLowerCase()}var c="auto";function d(){var a=Kb.splice(0,Kb.length);for(Lb=0;a.length;)a.shift().call(null,a.shift())}function e(a,b){for(var c=0,d=a.length;c<d;c++)y(a[c],b)}function g(a){for(var b=0,c=a.length,d;b<c;b++)d=a[b],cb(d,db[k(d)])}function h(a){return function(b){di(b)&&(y(b,a),U.length&&e(b.querySelectorAll(U),a))}}function k(a){var b=Pa.call(a,"is"),c=a.nodeName.toUpperCase();a=ba.call(Ga,b?Nb+b.toUpperCase():eb+c);return b&&-1<a&&!l(c,b)?-1:a}
+function l(a,b){return-1<U.indexOf(a+'[is="'+b+'"]')}function m(a){var b=a.currentTarget,c=a.attrChange,d=a.attrName,e=a.target,g=a[Ob]||2,h=a[Pc]||3;if(Pb&&(!e||e===b)&&b[ua]&&"style"!==d&&(a.prevValue!==a.newValue||""===a.newValue&&(c===g||c===h)))b[ua](d,c===g?null:a.prevValue,c===h?null:a.newValue)}function n(a){var b=h(a);return function(a){Kb.push(b,a.target);Lb&&clearTimeout(Lb);Lb=setTimeout(d,1)}}function q(a){He&&(He=!1,a.currentTarget.removeEventListener(Ie,q));U.length&&e((a.target||A).querySelectorAll(U),
+a.detail===ca?ca:ka);Qa&&t()}function w(a,b){Je.call(this,a,b);Qc.call(this,{target:this})}function v(a,b){fi(a,b);Qb?Qb.observe(a,gi):(Rb&&(a.setAttribute=w,a[la]=Rc(a),a[ma](hi,Qc)),a[ma](Ha,m));a[fb]&&Pb&&(a.created=!0,a[fb](),a.created=!1)}function t(){for(var a,b=0,c=gb.length;b<c;b++)a=gb[b],Ra.contains(a)||(c--,gb.splice(b--,1),y(a,ca))}function C(a){throw Error("A "+a+" type is already registered");}function y(a,b){var c,d=k(a);-1<d&&(Sc(a,db[d]),d=0,b!==ka||a[ka]?b!==ca||a[ca]||(a[ka]=!1,
+a[ca]=!0,d=1):(a[ca]=!1,a[ka]=!0,d=1,Qa&&0>ba.call(gb,a)&&gb.push(a)),d&&(c=a[b+Ia])&&c.call(a))}function u(){}function B(a,c,d){d=d&&d[hb]||"";var e=c.prototype,g=Tc(e),h=c.observedAttributes||Uc,k={prototype:g};Sb(g,fb,{value:function(){if(Tb)Tb=!1;else if(!this[ib]){this[ib]=!0;new c(this);e[fb]&&e[fb].call(this);var a=jb[Ub.get(c)];(!Sa||1<a.create.length)&&na(this)}}});Sb(g,ua,{value:function(a){-1<ba.call(h,a)&&e[ua].apply(this,arguments)}});e[Ke]&&Sb(g,ii,{value:e[Ke]});e[Le]&&Sb(g,ji,{value:e[Le]});
+d&&(k[hb]=d);a=a.toUpperCase();jb[a]={constructor:c,create:d?[d,b(a)]:[a]};Ub.set(c,a);A[kb](a.toLowerCase(),k);P(a);Ta[a].r()}function M(a){return(a=jb[a.toUpperCase()])&&a.constructor}function S(a){return"string"===typeof a?a:a&&a.is||""}function na(a){for(var b=a[ua],c=b?a.attributes:Uc,d=c.length,e;d--;)e=c[d],b.call(a,e.name||e.nodeName,null,e.value||e.nodeValue)}function P(a){a=a.toUpperCase();a in Ta||(Ta[a]={},Ta[a].p=new Me(function(b){Ta[a].r=b}));return Ta[a].p}function Q(){function c(b){var c=
+a[b];if(c){a[b]=function ei(a){var b;a||(a=this);a[ib]||(Tb=!0,a=jb[Ub.get(a.constructor)],a=(b=Sa&&1===a.create.length)?Reflect.construct(c,Uc,a.constructor):A.createElement.apply(A,a.create),a[ib]=!0,Tb=!1,b||na(a));return a};a[b].prototype=c.prototype;try{c.prototype.constructor=a[b]}catch(ei){ki=!0,Ua(c,ib,{value:a[b]})}}}oa&&delete a.customElements;Ua(a,"customElements",{configurable:!0,value:new u});Ua(a,"CustomElementRegistry",{configurable:!0,value:u});for(var d=Vc.get(/^HTML[A-Z]*[a-z]/),
+e=d.length;e--;c(d[e]));A.createElement=function(a,c){return(c=S(c))?Wc.call(this,a,b(c)):Wc.call(this,a)};Ne||(Xc=!0,A[kb](""))}var A=a.document,E=a.Object,Vc=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=(E.create||E)(null),g={},h,k,l,m;for(k in a)for(m in a[k])for(l=a[k][m],e[m]=l,h=0;h<l.length;h++)e[l[h].toLowerCase()]=e[l[h].toUpperCase()]=m;
+g.get=function(a){return"string"===typeof a?e[a]||(d.test(a)?[]:""):c(a)};g.set=function Uk(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 kb="registerElement",la="__"+kb+(1E5*a.Math.random()>>0),ma="addEventListener",ka="attached",Ia="Callback",ca="detached",hb="extends",ua="attributeChanged"+Ia,ii=ka+Ia,Ke="connected"+Ia,Le="disconnected"+Ia,fb="created"+Ia,ji=ca+Ia,Ob="ADDITION",Yc="MODIFICATION",Pc="REMOVAL",Ha="DOMAttrModified",Ie="DOMContentLoaded",hi="DOMSubtreeModified",eb="<",Nb="=",li=/^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+$/,mi="ANNOTATION-XML COLOR-PROFILE FONT-FACE FONT-FACE-SRC FONT-FACE-URI FONT-FACE-FORMAT FONT-FACE-NAME MISSING-GLYPH".split(" "),
+Ga=[],db=[],U="",Ra=A.documentElement,ba=Ga.indexOf||function(a){for(var b=this.length;b--&&this[b]!==a;);return b},Zc=E.prototype,$c=Zc.hasOwnProperty,Vb=Zc.isPrototypeOf,Ua=E.defineProperty,Uc=[],ad=E.getOwnPropertyDescriptor,Oe=E.getOwnPropertyNames,ni=E.getPrototypeOf,Pe=E.setPrototypeOf,Qe=!!E.__proto__,ki=!1,ib="__dreCEv1",oa=a.customElements,Sa="force"!==c&&!!(oa&&oa.define&&oa.get&&oa.whenDefined),Re=E.create||E,oi=a.Map||function(){var a=[],b=[],c;return{get:function(c){return b[ba.call(a,
+c)]},set:function(d,e){c=ba.call(a,d);0>c?b[a.push(d)-1]=e:b[c]=e}}},Me=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},Tb=!1,jb=Re(null),Ta=Re(null),Ub=new oi,Tc=E.create||function Mb(a){return a?(Mb.prototype=a,new Mb):this},fi=Pe||(Qe?function(a,b){a.__proto__=b;return a}:Oe&&ad?function(){function a(a,b){for(var c,d=Oe(b),e=0,g=d.length;e<g;e++)c=d[e],$c.call(a,
+c)||Ua(a,c,ad(b,c))}return function(b,c){do a(b,c);while((c=ni(c))&&!Vb.call(c,b));return b}}():function(a,b){for(var c in b)a[c]=b[c];return a}),lb=a.MutationObserver||a.WebKitMutationObserver,R=(a.HTMLElement||a.Element||a.Node).prototype,Qa=!Vb.call(R,Ra),Sb=Qa?function(a,b,c){a[b]=c.value;return a}:Ua,di=Qa?function(a){return 1===a.nodeType}:function(a){return Vb.call(R,a)},gb=Qa&&[],Se=R.attachShadow,pi=R.cloneNode,bd=R.dispatchEvent,Pa=R.getAttribute,qi=R.hasAttribute,ri=R.removeAttribute,Je=
+R.setAttribute,Wb=A.createElement,Wc=Wb,gi=lb&&{attributes:!0,characterData:!0,attributeOldValue:!0},Te=lb||function(){Rb=!1;Ra.removeEventListener(Ha,Te)},Kb,Lb=0,Ne=kb in A,Ue=!0,Xc=!1,Rb=!0,He=!0,Pb=!0,Qc,Xb,Rc,Qb,cd,Sc,cb;Ne||(Pe||Qe?(Sc=function(a,b){Vb.call(b,a)||v(a,b)},cb=v):cb=Sc=function(a,b){a[la]||(a[la]=E(!0),v(a,b))},Qa?(Rb=!1,function(){function a(a){var b=a.currentTarget,c=b[la];a=a.propertyName;var d;c.hasOwnProperty(a)&&(c=c[a],d=new CustomEvent(Ha,{bubbles:!0}),d.attrName=c.name,
+d.prevValue=c.value||null,d.newValue=c.value=b[a]||null,null==d.prevValue?d[Ob]=d.attrChange=0:d[Yc]=d.attrChange=1,bd.call(b,d))}function b(a,b){var c=qi.call(this,a),d=c&&Pa.call(this,a),e=new CustomEvent(Ha,{bubbles:!0});Je.call(this,a,b);e.attrName=a;e.prevValue=c?d:null;e.newValue=b;c?e[Yc]=e.attrChange=1:e[Ob]=e.attrChange=0;bd.call(this,e)}function c(a){var b=new CustomEvent(Ha,{bubbles:!0});b.attrName=a;b.prevValue=Pa.call(this,a);b.newValue=null;b[Pc]=b.attrChange=2;ri.call(this,a);bd.call(this,
+b)}var d=ad(R,ma),e=d.value;d.value=function(d,g,h){d===Ha&&this[ua]&&this.setAttribute!==b&&(this[la]={className:{name:"class",value:this.className}},this.setAttribute=b,this.removeAttribute=c,e.call(this,"propertychange",a));e.call(this,d,g,h)};Ua(R,ma,d)}()):lb||(Ra[ma](Ha,Te),Ra.setAttribute(la,1),Ra.removeAttribute(la),Rb&&(Qc=function(a){var b,c,d;if(this===a.target){b=this[la];this[la]=c=Rc(this);for(d in c){if(!(d in b))return Xb(0,this,d,b[d],c[d],Ob);if(c[d]!==b[d])return Xb(1,this,d,b[d],
+c[d],Yc)}for(d in b)if(!(d in c))return Xb(2,this,d,b[d],c[d],Pc)}},Xb=function(a,b,c,d,e,g){c={attrChange:a,currentTarget:b,attrName:c,prevValue:d,newValue:e};c[g]=a;m(c)},Rc=function(a){for(var b,c={},d=a.attributes,e=0,g=d.length;e<g;e++)b=d[e],a=b.name,"setAttribute"!==a&&(c[a]=b.value);return c})),A[kb]=function Ge(a,b){function c(){return l?A.createElement(m,v):A.createElement(m)}v=a.toUpperCase();Ue&&(Ue=!1,lb?(Qb=function(a,b){function c(a,b){for(var c=0,d=a.length;c<d;b(a[c++]));}return new lb(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,Pb&&g[ua]&&"style"!==e.attributeName&&(h=Pa.call(g,e.attributeName),h!==e.oldValue))g[ua](e.attributeName,e.oldValue,h)})}(h(ka),h(ca)),cd=function(a){Qb.observe(a,{childList:!0,subtree:!0});return a},cd(A),Se&&(R.attachShadow=function(){return cd(Se.apply(this,arguments))})):(Kb=[],A[ma]("DOMNodeInserted",n(ka)),A[ma]("DOMNodeRemoved",n(ca))),A[ma](Ie,q),A[ma]("readystatechange",q),
+R.cloneNode=function(a){var b=pi.call(this,!!a),c=k(b);-1<c&&cb(b,db[c]);a&&U.length&&g(b.querySelectorAll(U));return b});if(Xc)return Xc=!1;-2<ba.call(Ga,Nb+v)+ba.call(Ga,eb+v)&&C(a);if(!li.test(v)||-1<ba.call(mi,v))throw Error("The type "+a+" is invalid");var d=b||Zc,l=$c.call(d,hb),m=l?b[hb].toUpperCase():v,v;l&&-1<ba.call(Ga,eb+m)&&C(m);b=Ga.push((l?Nb:eb)+v)-1;U=U.concat(U.length?",":"",l?m+'[is="'+a.toLowerCase()+'"]':m);c.prototype=db[b]=$c.call(d,"prototype")?d.prototype:Tc(R);U.length&&e(A.querySelectorAll(U),
+ka);return c},A.createElement=Wc=function(a,c){var d=S(c),e=d?Wb.call(A,a,b(d)):Wb.call(A,a);a=""+a;var g=ba.call(Ga,(d?Nb:eb)+(d||a).toUpperCase()),h=-1<g;d&&(e.setAttribute("is",d=d.toLowerCase()),h&&(h=l(a.toUpperCase(),d)));Pb=!A.createElement.innerHTMLHelper;h&&cb(e,db[g]);return e});u.prototype={constructor:u,define:Sa?function(a,b,c){if(c)B(a,b,c);else{var d=a.toUpperCase();jb[d]={constructor:b,create:[d]};Ub.set(b,d);oa.define(a,b)}}:B,get:Sa?function(a){return oa.get(a)||M(a)}:M,whenDefined:Sa?
+function(a){return Me.race([oa.whenDefined(a),P(a)])}:P};if(oa&&"force"!==c)try{(function(b,c,d){c[hb]="a";b.prototype=Tc(HTMLAnchorElement.prototype);b.prototype.constructor=b;a.customElements.define(d,b,c);if(Pa.call(A.createElement("a",{is:d}),"is")!==d||Sa&&Pa.call(new b,"is")!==d)throw c;})(function Ge(){return Reflect.construct(HTMLAnchorElement,[],Ge)},{},"document-register-element-a")}catch(Mb){Q()}else Q();try{Wb.call(A,"a","a")}catch(Mb){b=function(a){return{is:a.toLowerCase()}}}};function vb(a,b){var c=void 0===b?this.contains(a):!b;if(c)return this.remove(a),!1;this.add(a);return!0}function wb(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:vb})};ub(self);wb(self);(function(a){a.Math.sign||a.Object.defineProperty(a.Math,"sign",{enumerable:!1,configurable:!0,writable:!0,value:Ka})})(self);(function(a){a.Object.assign||a.Object.defineProperty(a.Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:Ma})})(self);(function(a){a.Promise||(a.Promise=Na,Na.default&&(a.Promise=Na.default),a.Promise.resolve=$a,a.Promise.reject=ab,a.Promise.all=bb,a.Promise.race=nb)})(self);Ja(self);
+(function(a){a.Array.prototype.includes||a.Object.defineProperty(Array.prototype,"includes",{enumerable:!1,configurable:!0,writable:!0,value:tb})})(self);function xb(a,b,c){if(a.nodeType){var d=yb((a.ownerDocument||a).defaultView,b);if(d)return d}return!a.nodeType||c?zb(a,b):null}function Ab(a,b,c){var d=Bb(a);yb(a,b);Cb(a,a,b,function(){return c});Db(a,b)}function yb(a,b){var c=Bb(a);return a!=c&&Eb(a,b)?Db(a,b):null}function F(a,b,c){var d;a=Bb(a);Cb(a,a,b,c);d&&Db(a,b)}function G(a,b,c,d){var e=Fb(a),g=Gb(e);Cb(g,e,b,c);d&&Db(g,b)}function H(a,b){a=Bb(a);return Db(a,b)}function Hb(a){a=Bb(a);return Eb(a,"performance")?Db(a,"performance"):null}
+function zb(a,b){a=Fb(a);a=Gb(a);return Db(a,b)}function Ib(a,b){return Jb(Gb(a),b)}function Yb(a,b){return Zb(Gb(a),b)}function $b(a,b){a.__AMP_PARENT=b;a.__AMP_TOP=Bb(b)}function Bb(a){return a.__AMP_TOP||a}function ac(a,b){var c=(a.ownerDocument||a).defaultView;if(c&&c!=b&&Bb(c)==b)try{return c.frameElement}catch(d){}return null}function Fb(a){return a.nodeType?H((a.ownerDocument||a).defaultView,"ampdoc").getAmpDoc(a):a}function Gb(a){a=Fb(a);return a.isSingleDoc()?a.win:a}
+function Db(a,b){Eb(a,b);var c=bc(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 Cb(a,b,c,d){var e=bc(a),g=e[c];g||(g=e[c]={obj:null,promise:null,resolve:null,context:null,ctor:null});g.ctor||g.obj||(g.ctor=d,g.context=b,g.resolve&&Db(a,c))}function Jb(a,b){var c=Zb(a,b);if(c)return c;var d,e=new Promise(function(a){d=a});bc(a)[b]={obj:null,promise:e,resolve:d,context:null,ctor:null};return e}
+function Zb(a,b){var c=bc(a)[b];if(c){if(c.promise)return c.promise;Db(a,b);return c.promise=Promise.resolve(c.obj)}return null}function bc(a){var b=a.services;b||(b=a.services={});return b}function cc(a,b){var c=a.frameElement,d=Fb(c),d=Gb(d);Eb(d,b)&&(b=zb(c,b),"function"==typeof b.adoptEmbedWindow&&b.adoptEmbedWindow(a))}function Eb(a,b){a=a.services&&a.services[b];return!(!a||!a.ctor&&!a.obj)};function dc(a){if(0==arguments.length)throw new TypeError("`CSS.escape` requires an argument.");for(var b=String(a),c=b.length,d=-1,e,g="",h=b.charCodeAt(0);++d<c;)e=b.charCodeAt(d),g=0==e?g+"\ufffd":1<=e&&31>=e||127==e||0==d&&48<=e&&57>=e||1==d&&48<=e&&57>=e&&45==h?g+("\\"+e.toString(16)+" "):0==d&&1==c&&45==e?g+("\\"+b.charAt(d)):128<=e||45==e||95==e||48<=e&&57>=e||65<=e&&90>=e||97<=e&&122>=e?g+b.charAt(d):g+("\\"+b.charAt(d));return g};function ec(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 fc(a,b){ec(a.documentElement,function(){return!!a.body},b)}function gc(a){return new Promise(function(b){fc(a,b)})}function hc(a,b){for(var c,d=a;d&&d!==c;d=d.parentElement)if(b(d))return d;return null}
+function ic(a,b){for(;a;a=a.parentNode)if(b(a))return a;return null}function jc(a,b){if(a.closest)return a.closest(b);b=b.toUpperCase();return hc(a,function(a){return a.tagName==b})}function kc(a,b){var c=[];for(a=a.firstElementChild;a;a=a.nextElementSibling)b(a)&&c.push(a);return c}function lc(a,b){for(a=a.lastElementChild;a;a=a.previousElementSibling)if(b(a))return a;return null}function mc(a,b){var c=[];for(a=a.firstChild;a;a=a.nextSibling)b(a)&&c.push(a);return c}var nc;
+function oc(a){try{return a.ownerDocument.querySelector(":scope"),!0}catch(b){return!1}}function pc(a,b){null==nc&&(nc=oc(a));if(nc)return a.querySelector(":scope "+b);var c="i-amphtml-scoped";a.classList.add(c);b=a.querySelector("."+c+" "+b);a.classList.remove(c);return b}function qc(a,b,c){var d,e;try{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"))}function rc(a){return a.parent&&a.parent!=a};function sc(a,b,c){var d=Zb(a,b);return d?d:tc(a,b,c,!0)}function uc(a,b){return a.ampExtendedElements?!!a.ampExtendedElements[b]:!1}function vc(a,b,c){return wc(a,b,c,void 0).then(function(a){return r().assert(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 wc(a,b,c,d){var e=Fb(a),g=Yb(a,b);return g?g:Promise.resolve().then(function(){return!d&&uc(e.win,c)?Ib(a,b):e.whenBodyAvailable().then(function(){return d?Yb(a,b):uc(e.win,c)?Ib(a,b):null})})}function xc(a){var b=xb(a,"bind");if(b)return Promise.resolve(b);if(a.nodeType){var b=(a.ownerDocument||a).defaultView,c=Bb(b);return b!==c?tc(b,"bind","amp-bind"):wc(a,"bind","amp-bind")}return Promise.resolve(null)}
+function tc(a,b,c,d){return Promise.resolve().then(function(){return!d&&uc(a,c)?Jb(a,b):gc(a.document).then(function(){return d?Zb(a,b):uc(a,c)?Jb(a,b):null})})};function yc(a){return wc(a,"access","amp-access")}function zc(a){return H(a,"ampdoc")}function Ac(a){return zb(a,"documentInfo").get()}function Bc(a){return H(a,"documentState")}function Cc(a){return H(a,"extensions")}function Dc(a){return H(a,"platform")}function Ec(a){return zb(a,"resources")}function I(a){return H(a,"timer")}function Fc(a){return xb(a,"url-replace",!0)}function J(a){return zb(a,"viewer")}function K(a){return H(a,"vsync")}function Gc(a){return zb(a,"viewport")};function Hc(a){return"undefined"!==typeof TextEncoder?(new TextEncoder("utf-8")).encode(a):Ic(unescape(encodeURIComponent(a)))}function Ic(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 Jc(a){for(var b=Array(a.length),c=0;c<a.length;c++)b[c]=String.fromCharCode(a[c]);return b.join("")};var Kc={},L=self.AMP_CONFIG||{};
+Kc.urls={thirdParty:L.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:L.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:("string"==typeof L.thirdPartyFrameRegex?new RegExp(L.thirdPartyFrameRegex):L.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,cdn:L.cdnUrl||"https://cdn.ampproject.org",cdnProxyRegex:("string"==typeof L.cdnProxyRegex?new RegExp(L.cdnProxyRegex):L.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org/,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:L.errorReportingUrl||
+"https://amp-error-reporting.appspot.com/r",localDev:L.localDev||!1};var Lc,Mc,Nc=/[?&]amp_js[^&]*/,Oc=["javascript:","data:","vbscript:"];function N(a,b){Lc||(Lc=self.document.createElement("a"),Mc=self.UrlCache||(self.UrlCache=Object.create(null)));var c=Mc[a];if(c)return c;var d=dd(Lc,a);return b?d:Mc[a]=d}
+function dd(a,b){a.href=b;a.protocol||(a.href=a.href);b={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};"/"!==b.pathname[0]&&(b.pathname="/"+b.pathname);if("http:"==b.protocol&&80==b.port||"https:"==b.protocol&&443==b.port)b.port="",b.host=b.hostname;b.origin=a.origin&&"null"!=a.origin?a.origin:"data:"!=b.protocol&&b.host?b.protocol+"//"+b.host:b.href;return b}
+function ed(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 fd(a){var b=[],c;for(c in a){var d=a[c];if(null!=d)if(qa(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 gd(a){"string"==typeof a&&(a=N(a));return"https:"==a.protocol||"localhost"==a.hostname||ea(a.hostname,".localhost")}function hd(a,b,c){c=void 0===c?"source":c;r().assert(null!=a,"%s %s must be available",b,c);var d=a;r().assert(gd(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)}function id(a){var b=a.indexOf("#");return-1==b?a:a.substring(0,b)}
+function jd(a){"string"==typeof a&&(a=N(a));return Kc.urls.cdnProxyRegex.test(a.origin)}function kd(a){if(!a)return!0;"string"==typeof a&&(a=N(a));return!Oc.includes(a.protocol)}
+function ld(a){"string"==typeof a&&(a=N(a));if(!jd(a))return a.href;var b=a.pathname.split("/"),c=b[1];r().assert("a"==c||"c"==c||"v"==c,"Unknown path prefix in url %s",a.href);var d=b[2],e="s"==d?"https://"+decodeURIComponent(b[3]):"http://"+decodeURIComponent(d);r().assert(0<e.indexOf("."),"Expected a . in origin %s",e);b.splice(1,"s"==d?3:2);b=e+b.join("/");c=(c=a.search)&&"?"!=c?(c=c.replace(Nc,"").replace(/^[?&]/,""))?"?"+c:"":"";return b+c+(a.hash||"")}
+function md(a){return N(ld(a)).origin}function nd(a){var b=N(a),c=ia(b.search);r().assert(!("__amp_source_origin"in c),"Source origin is not allowed in %s",a)};function od(a,b){var c;try{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(c=-1!=h)c=g.substring(0,h).trim(),c=ga(c,void 0)==b;if(c)return b=g.substring(h+1).trim(),ga(b,b)}return null}
+function pd(a,b,c,d,e){if(!e||!e.allowOnProxyOrigin){if(jd(a.location.href))throw Error("Should never attempt to set cookie on proxy origin: "+b);var g=N(a.location.href).hostname.toLowerCase(),h=N(Kc.urls.cdn).hostname.toLowerCase();if(g==h||ea(g,"."+h))throw Error("Should never attempt to set cookie on proxy origin. (in depth check): "+b);}if(e&&e.highestAvailableDomain)for(var k=a.location.hostname.split("."),g=k[k.length-1],h=k.length-2;0<=h;h--)if(g=k[h]+"."+g,qd(a,b,c,d,g),od(a,b)==c)return;
+g=void 0;e&&e.domain&&(g=e.domain);qd(a,b,c,d,g)}function qd(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 rd(a){var b=Object.create(null),c;for(c in a)if(sd(a,c)){var d=a[c];b[c]=ra(d)?rd(d):d}return b}function td(a){return JSON.parse(a)}function sd(a,b){return null==a||"object"!=typeof a?!1:Object.prototype.hasOwnProperty.call(a,b)};Promise.resolve();function ud(a){return!(!a.AMP_CONFIG||!a.AMP_CONFIG.canary)}function O(a,b){var c=vd(a);return!!c[b]}function wd(a,b,c,d){var e=O(a,b),g=!(void 0!==c?!c:e);if(g!=e&&(vd(a)[b]=g,!d)){var h=xd(a);h[b]=g;b=h;var k=[],l;for(l in b)k.push((!1===b[l]?"-":"")+l);pd(a,"AMP_EXP",k.join(","),Date.now()+15552E6,{domain:a.location.hostname,allowOnProxyOrigin:!0})}return g}
+function vd(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"];if(c=a.document.head.querySelector('meta[name="amp-experiments-opt-in"]')){var g=
+c.getAttribute("content").split(",");for(c=0;c<g.length;c++)-1!=e.indexOf(g[c])&&(b[g[c]]=!0)}}Object.assign(b,xd(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=ia(a.location.originalHash||a.location.hash);for(var h=0;h<c.length;h++){var k=a["e-"+c[h]];"1"==k&&(b[c[h]]=!0);"0"==k&&(b[c[h]]=!1)}}return b}
+function xd(a){var b=od(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};function yd(){var a=zd();return function(b){return setTimeout(b,a())}}function zd(){var a=0;return function(){var b=Math.pow(1.5,a++),c;c=b*(c||.3)*Math.random();.5<Math.random()&&(c*=-1);b+=c;return 1E3*b}};var Ad,Bd="Webkit webkit Moz moz ms O o".split(" ");function Cd(a,b,c){if(fa(b,"--"))return b;Ad||(Ad=z());var d=Ad[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<Bd.length;g++){var h=Bd[g]+e;if(void 0!==a[h]){e=h;break a}}e=""}var k=e;void 0!==a[k]&&(d=k)}c||(Ad[b]=d)}return d}function T(a,b,c,d){(b=Cd(a.style,b,void 0))&&(a.style[b]=d?c+d:c)}function Dd(a){var b=Cd(a.style,"display",void 0);if(b)return a.style[b]}
+function V(a,b){for(var c in b)T(a,c,b[c])}function Ed(a,b){void 0===b&&(b="none"==Dd(a));T(a,"display",b?"":"none")};var Fd={"amp-dynamic-css-classes":"[custom-element=amp-dynamic-css-classes]",variant:"amp-experiment"};function Gd(a){var b=Hd(a).map(function(b){return I(a).timeoutPromise(3E3,Jb(a,b),"Render timeout waiting for service "+b+" to be ready.")});return Promise.all(b)}function Hd(a){var b=a.document;return Object.keys(Fd).filter(function(a){return b.querySelector(Fd[a])})};function Id(a,b,c,d,e){var g=Jd(a,a.head,b,d||!1,e||null);if(Kd(a,g))c(g);else var h=setInterval(function(){Kd(a,g)&&(clearInterval(h),c(g))},4)}
+function Jd(a,b,c,d,e){if(d&&b.runtimeStyleElement)return b.runtimeStyleElement;if(b.parentElement&&b.parentElement.hasAttribute("i-amphtml-layout")&&(d||e&&"amp-custom"!=e)){var g=d?b.querySelector("style[amp-runtime]"):b.querySelector("style[amp-extension="+e+"]");if(g)return d&&(b.runtimeStyleElement=g),g}a=a.createElement("style");a.textContent=c;var h=null;d?(a.setAttribute("amp-runtime",""),b.runtimeStyleElement=a):"amp-custom"==e?(a.setAttribute("amp-custom",""),h=b.lastChild):(a.setAttribute("amp-extension",
+e||""),h=b.runtimeStyleElement);c=b;var k=h;k?k.nextSibling?c.insertBefore(a,k.nextSibling):c.appendChild(a):c.insertBefore(a,c.firstChild);return a}
+function Ld(a,b){var c=a.defaultView;if(!c.__AMP_BODY_VISIBLE){var d=function(){V(a.body,{opacity:1,visibility:"visible",animation:"none"});try{Ec(a).renderStarted()}catch(e){}};try{Bc(c).onBodyAvailable(function(){c.__AMP_BODY_VISIBLE||(c.__AMP_BODY_VISIBLE=!0,b?Gd(c).catch(function(a){Ba(a);return[]}).then(function(b){d();0<b.length&&Ec(a).schedulePass(1,!0);try{var e=H(c,"performance");e.tick("mbv");e.flush()}catch(h){}}):d())})}catch(e){d(),Ba(e)}}}
+function Kd(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};function Md(a,b){wc(a,"amp-analytics-instrumentation","amp-analytics").then(function(c){c&&c.triggerEventForTarget(a,"user-error",b)})};function Nd(a,b,c,d){function e(a){try{return h(a)}catch(m){throw self.reportError(m),m;}}var g=a,h=c,k=d||!1;g.addEventListener(b,e,k);return function(){g&&g.removeEventListener(b,e,k);e=g=h=null}};function Od(a,b,c,d){var e=c,g=Nd(a,b,function(a){try{e(a)}finally{e=null,g()}},d);return g}function Pd(a,b){var c,d=new Promise(function(b){c=Od(a,"click",b,void 0)});d.then(c,c);b&&b(c);return d}
+function Qd(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?Od(a,"loadstart",d):Od(a,"load",d);e&&(c=Od(a,"error",g))});return d.then(function(){c&&c();return a},function(){b&&b();var c=a;c&&c.src&&(c=c.src);throw r().createError("Failed to load:",c);})};var Rd=self.AMPErrors||[];self.AMPErrors=Rd;function Sd(a){Sd=yd();return Sd(a)}function Td(a){try{return JSON.stringify(a)}catch(b){return String(a)}}var Ud;
+function Vd(a,b){try{var c;if(a)if(void 0!==a.message)a=Aa(a),c=!0;else{var d=a;a=Error(Td(d));a.origError=d}else a=Error("Unknown error");if(a.reported)return a;a.reported=!0;var e=b||a.associatedElement;e&&e.classList&&(e.classList.add("i-amphtml-error"),p().development&&(e.classList.add("i-amphtml-element-error"),e.setAttribute("error-message",a.message)));if(self.console){var g=console.error||console.log;a.messageArray?g.apply(console,a.messageArray):e?g.call(console,a.message,e):g.call(console,
+a.message)}e&&e.Ja&&e.Ja();Wd.call(void 0,void 0,void 0,void 0,void 0,a)}catch(h){setTimeout(function(){throw h;})}return a}function Xd(){var a=self;a.onerror=Wd;a.addEventListener("unhandledrejection",function(a){a.reason&&"CANCELLED"===a.reason.message?a.preventDefault():Vd(a.reason||Error("rejected promise "+a))})}
+function Wd(a,b,c,d,e){this&&this.document&&Ld(this.document);if(!p().development){var g=!1;try{g=Yd()}catch(k){}if(!(g&&.01<Math.random())){var h=Zd(a,b,c,d,e,g);h&&Sd(function(){(new Image).src=h})}}}
+function Zd(a,b,c,d,e,g){var h=!1;e&&(a=e.message?e.message:String(e),e.expected&&(h=!0));a||(a="Unknown error");if(!/_reported_/.test(a)&&"CANCELLED"!=a){if(-1!=a.indexOf("Failed to load:")||"Script error."==a)if(h=!0,.001<Math.random())return;var k=va(a);g=Kc.urls.errorReporting+"?v="+encodeURIComponent("1502819823157")+"&noAmp="+(g?1:0)+"&m="+encodeURIComponent(a.replace("\u200b\u200b\u200b",""))+"&a="+(k?1:0);h&&(g+="&ex=1");var l="1p";self.context&&self.context.location?(g+="&3p=1",
+l="3p"):p().runtime&&(l=p().runtime);g+="&rt="+l;ud(self)&&(g+="&ca=1");self.location.ancestorOrigins&&self.location.ancestorOrigins[0]&&(g+="&or="+encodeURIComponent(self.location.ancestorOrigins[0]));self.viewerState&&(g+="&vs="+encodeURIComponent(self.viewerState));self.parent&&self.parent!=self&&(g+="&iem=1");if(self.AMP&&self.AMP.viewer){var m=self.AMP.viewer.getResolvedViewerUrl(),n=self.AMP.viewer.maybeGetMessagingOrigin();m&&(g+="&rvu="+encodeURIComponent(m));n&&(g+="&mso="+encodeURIComponent(n))}Ud||
+(Ud=$d());g+="&jse="+Ud;var q=[],w=self.__AMP__EXPERIMENT_TOGGLES||null,v;for(v in w)q.push(v+"="+(w[v]?"1":"0"));g+="&exps="+encodeURIComponent(q.join(","));if(e){g+="&el="+encodeURIComponent(e&&e.associatedElement?e.associatedElement.tagName:"u");e.args&&(g+="&args="+encodeURIComponent(JSON.stringify(e.args)));if(!k&&!e.ignoreStack&&e.stack){var t=(e.stack||"").substr(0,1E3);g+="&s="+encodeURIComponent(t)}e.message+=" _reported_"}else g+="&f="+encodeURIComponent(b||"")+"&l="+encodeURIComponent(c||
+"")+"&c="+encodeURIComponent(d||"");g+="&r="+encodeURIComponent(self.document.referrer);g+="&ae="+encodeURIComponent(Rd.join(","));Rd.push(a);g+="&fr="+encodeURIComponent(self.location.originalHash||self.location.hash);2072<=g.length&&(g=g.substr(0,2064).replace(/\%[^&%]+$/,"")+"&SHORT=1");return g}}function Yd(){for(var a=self.document.querySelectorAll("script[src]"),b=0;b<a.length;b++)if(!jd(a[b].src.toLowerCase()))return!0;return!1}
+function $d(){function a(){}a.prototype.t=function(){throw Error("message");};var b=new a;try{b.t()}catch(e){var c=e.stack;if(fa(c,"t@"))return"Safari";if(-1<c.indexOf(".prototype.t@"))return"Firefox";var d=c.split("\n").pop();if(/\bat .* \(/i.test(d))return"IE";if(fa(c,"Error: message"))return"Chrome"}return"unknown"};var ae={"+":"-","/":"_","=":"."};function be(a){a=Jc(a);return btoa(a).replace(/[+/=]/g,function(a){return ae[a]})};var ce={NODISPLAY:"nodisplay",FIXED:"fixed",FIXED_HEIGHT:"fixed-height",RESPONSIVE:"responsive",CONTAINER:"container",FILL:"fill",FLEX_ITEM:"flex-item"},de={"AMP-PIXEL":{width:"0px",height:"0px"},"AMP-ANALYTICS":{width:"1px",height:"1px"},"AMP-AUDIO":null,"AMP-SOCIAL-SHARE":{width:"60px",height:"44px"}},ee={"AMP-ANIM":!0,"AMP-BRIGHTCOVE":!0,"AMP-EMBED":!0,"AMP-IFRAME":!0,"AMP-IMG":!0,"AMP-INSTAGRAM":!0,"AMP-LIST":!0,"AMP-OOYALA-PLAYER":!0,"AMP-PINTEREST":!0,"AMP-PLAYBUZZ":!0,"AMP-VIDEO":!0,"AMP-YOUTUBE":!0};
+function fe(a){for(var b in ce)if(ce[b]==a)return ce[b]}function ge(a){return"fixed"==a||"fixed-height"==a||"responsive"==a||"fill"==a||"flex-item"==a}function he(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 ie(a){r().assert(/^\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 je(a){r().assert(/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|%)$/.test(a),"Invalid length or percent value: %s",a);return a}function ke(a){ie(a);var b=r().assert(a.match(/[a-z]+/i),"Failed to read units from %s",a);return b[0]}function le(a){a=parseFloat(a);return sa(a)?a:void 0};function me(a,b,c){var d=ne(a,b,c);return""===d?Qd(a).then(function(){return ne(a,b,c)}):Promise.resolve(d)}function ne(a,b,c){var d=a.performance&&a.performance.timing;if(d&&0!=d.navigationStart&&(a=void 0===c?d[b]:d[c]-d[b],sa(a)))return 0>a?"":a}function oe(a,b){var c=a.performance&&a.performance.navigation;if(c&&void 0!==c[b])return c[b]}function pe(){this.pb=void 0;this.ba=Object.create(null);this.Oc=!1}f=pe.prototype;f.Gb=function(){this.initialize();this.Oc=!0};f.initialize=function(){};
+f.get=function(a){this.Oc||this.Gb();return this.ba[a]};f.set=function(a,b){a.indexOf("RETURN");this.ba[a]=this.ba[a]||{sync:void 0,async:void 0};this.ba[a].sync=b;this.pb=void 0;return this};f.setAsync=function(a,b){a.indexOf("RETURN");this.ba[a]=this.ba[a]||{sync:void 0,async:void 0};this.ba[a].async=b;this.pb=void 0;return this};f.setBoth=function(a,b,c){return this.set(a,b).setAsync(a,c)};
+f.getExpr=function(a){var b=this;this.Oc||this.Gb();var c=a?Object.keys(a):null;if(c&&0<c.length){var d=Object.keys(this.ba);c.forEach(function(a){void 0===b.ba[a]&&d.push(a)});return qe(d)}this.pb||(this.pb=qe(Object.keys(this.ba)));return this.pb};function qe(a){a.sort(function(a,b){return b.length-a.length});var b=a.join("|");return new RegExp("\\$?("+b+")(?:\\(([0-9a-zA-Z-_.,]+)\\))?","g")};function W(){this.O=null}f=W.prototype;f.add=function(a){var b=this;this.O||(this.O=[]);this.O.push(a);return function(){b.remove(a)}};f.remove=function(a){this.O&&(a=this.O.indexOf(a),-1<a&&this.O.splice(a,1))};f.removeAll=function(){this.O&&(this.O.length=0)};f.fire=function(a){if(this.O)for(var b=this.O,c=0;c<b.length;c++)(0,b[c])(a)};f.getHandlerCount=function(){return this.O?this.O.length:0};function re(){this.ma=z();this.R=null}f=re.prototype;f.get=function(a){return this.ma[a]||null};f.whenSignal=function(a){var b=this.R&&this.R[a];if(!b){var c=this.ma[a];if(null!=c)b={promise:"number"==typeof c?Promise.resolve(c):Promise.reject(c)};else var d,e,b={promise:new Promise(function(a,b){d=a;e=b}),resolve:d,reject:e};this.R||(this.R=z());this.R[a]=b}return b.promise};
+f.signal=function(a,b){if(null==this.ma[a]){var c=b||Date.now();this.ma[a]=c;(a=this.R&&this.R[a])&&a.resolve&&(a.resolve(c),a.resolve=void 0,a.reject=void 0)}};f.rejectSignal=function(a,b){null==this.ma[a]&&(this.ma[a]=b,(a=this.R&&this.R[a])&&a.reject&&(a.reject(b),a.resolve=void 0,a.reject=void 0))};f.reset=function(a){this.ma[a]&&delete this.ma[a];var b=this.R&&this.R[a];b&&!b.resolve&&delete this.R[a]};function se(a){return"loading"!=a.readyState&&"uninitialized"!=a.readyState}function te(a){return"complete"==a.readyState}function ue(a,b){ve(a,se,b)}function ve(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 we(a){return new Promise(function(b){ue(a,b)})}function xe(a){return new Promise(function(b){ve(a,te,b)})};function X(a,b,c,d){return{left:a,top:b,width:c,height:d,bottom:b+d,right:a+c,x:a,y:b}}function ye(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:X(b,d,c-b,e-d)}function ze(a,b,c){return X(a.left-a.width*b,a.top-a.height*c,a.width*(1+2*b),a.height*(1+2*c))}
+function Ae(a,b,c){return 0==b&&0==c||0==a.width&&0==a.height?a:X(a.left+b,a.top+c,a.width,a.height)};var Be=null;function Ce(){var a=self,b;Be=new Promise(function(a){b=a});var c=J(a.document);c.isTrustedViewer().then(function(d){d||O(a,"alp")?De(a,c,b):b()})}
+function De(a,b,c){var d=b.getParam("click");d?0!=d.indexOf("https://")?(r().warn("IMPRESSION","click fragment param should start with https://. Found ",d),c()):(a.location.hash&&(a.location.hash=""),b.whenFirstVisible().then(function(){var b=Ee(a,d).then(function(b){var c=b.location;(b=b.tracking_url||c)&&!jd(b)&&((new Image).src=b);c&&a.history.replaceState&&(b=a.location.href,c=N(c),c=ia(c.search),c=ed(b,fd(c)),a.history.replaceState(null,"",c))});c(I(a).timeoutPromise(8E3,b,"timeout waiting for ad server response").catch(function(){}))})):
+c()}function Ee(a,b){return H(a,"xhr").fetchJson(b,{credentials:"include"}).then(function(a){return a.json()})};function Fe(a){pe.call(this);this.ampdoc=a;this.uf=yc;this.sd=this.Cd=null}aa(Fe,pe);function Ve(a,b,c,d){a.setBoth(b,function(){return ne(a.ampdoc.win,c,d)},function(){return me(a.ampdoc.win,c,d)})}
+Fe.prototype.initialize=function(){var a=this,b=Gc(this.ampdoc);this.set("RANDOM",function(){return Math.random()});var c=null;this.set("COUNTER",function(a){c||(c=Object.create(null));c[a]||(c[a]=0);return++c[a]});this.set("CANONICAL_URL",this.$.bind(this,function(a){return a.canonicalUrl}));this.set("CANONICAL_HOST",this.$.bind(this,function(a){return(a=N(a.canonicalUrl))&&a.host}));this.set("CANONICAL_HOSTNAME",this.$.bind(this,function(a){return(a=N(a.canonicalUrl))&&a.hostname}));this.set("CANONICAL_PATH",
+this.$.bind(this,function(a){return(a=N(a.canonicalUrl))&&a.pathname}));this.setAsync("DOCUMENT_REFERRER",function(){return J(a.ampdoc).getReferrerUrl()});this.set("TITLE",function(){return a.ampdoc.win.document.title});this.set("AMPDOC_URL",function(){return id(a.ampdoc.win.location.href)});this.set("AMPDOC_HOST",function(){var b=N(a.ampdoc.win.location.href);return b&&b.host});this.set("AMPDOC_HOSTNAME",function(){var b=N(a.ampdoc.win.location.href);return b&&b.hostname});this.setBoth("SOURCE_URL",
+this.$.bind(this,function(a){return id(a.sourceUrl)}),function(){return Be.then(function(){return a.$(function(a){return id(a.sourceUrl)})})});this.set("SOURCE_HOST",this.$.bind(this,function(a){return N(a.sourceUrl).host}));this.set("SOURCE_HOSTNAME",this.$.bind(this,function(a){return N(a.sourceUrl).hostname}));this.set("SOURCE_PATH",this.$.bind(this,function(a){return N(a.sourceUrl).pathname}));this.set("PAGE_VIEW_ID",this.$.bind(this,function(a){return a.pageViewId}));this.setBoth("QUERY_PARAM",
+function(b,c){c=void 0===c?"":c;return We(a,b,c)},function(b,c){c=void 0===c?"":c;return Be.then(function(){return We(a,b,c)})});var d=null;this.setBoth("CLIENT_ID",function(a){return d?d[a]:null},function(b,c,h){r().assertString(b,"The first argument to CLIENT_ID, the fallback cookie name, is required");var e=Promise.resolve();c&&(e=vc(a.ampdoc,"userNotificationManager","amp-user-notification").then(function(a){return a.get(c)}));return Ib(a.ampdoc,"cid").then(function(a){return a.get({scope:b,createCookieIfNotPresent:!0,
+cookieName:h},e)}).then(function(a){d||(d=Object.create(null));var c=h||b;a&&"_ga"==c&&(a=a.replace(/^(GA1|1)\.[\d-]+\./,""));return d[b]=a})});this.setAsync("VARIANT",function(b){return Xe(a,function(a){var c=a[b];r().assert(void 0!==c,"The value passed to VARIANT() is not a valid experiment name:"+b);return null===c?"none":c},"VARIANT")});this.setAsync("VARIANTS",function(){return Xe(a,function(a){var b=[],c;for(c in a)b.push(c+"."+(a[c]||"none"));return b.join("!")},"VARIANTS")});this.setAsync("SHARE_TRACKING_INCOMING",
+function(){return Ye(a,function(a){return a.incomingFragment},"SHARE_TRACKING_INCOMING")});this.setAsync("SHARE_TRACKING_OUTGOING",function(){return Ye(a,function(a){return a.outgoingFragment},"SHARE_TRACKING_OUTGOING")});this.set("TIMESTAMP",function(){return Date.now()});this.set("TIMEZONE",function(){return(new Date).getTimezoneOffset()});this.set("SCROLL_TOP",function(){return b.getScrollTop()});this.set("SCROLL_LEFT",function(){return b.getScrollLeft()});this.set("SCROLL_HEIGHT",function(){return b.getScrollHeight()});
+this.set("SCROLL_WIDTH",function(){return b.getScrollWidth()});this.set("VIEWPORT_HEIGHT",function(){return b.getSize().height});this.set("VIEWPORT_WIDTH",function(){return b.getSize().width});this.set("SCREEN_WIDTH",function(){return a.ampdoc.win.screen.width});this.set("SCREEN_HEIGHT",function(){return a.ampdoc.win.screen.height});this.set("AVAILABLE_SCREEN_HEIGHT",function(){return a.ampdoc.win.screen.availHeight});this.set("AVAILABLE_SCREEN_WIDTH",function(){return a.ampdoc.win.screen.availWidth});
+this.set("SCREEN_COLOR_DEPTH",function(){return a.ampdoc.win.screen.colorDepth});this.set("DOCUMENT_CHARSET",function(){var b=a.ampdoc.win.document;return b.characterSet||b.charset});this.set("BROWSER_LANGUAGE",function(){var b=a.ampdoc.win.navigator;return(b.language||b.userLanguage||b.browserLanguage||"").toLowerCase()});this.set("USER_AGENT",function(){return a.ampdoc.win.navigator.userAgent});Ve(this,"PAGE_LOAD_TIME","navigationStart","loadEventStart");Ve(this,"DOMAIN_LOOKUP_TIME","domainLookupStart",
+"domainLookupEnd");Ve(this,"TCP_CONNECT_TIME","connectStart","connectEnd");Ve(this,"SERVER_RESPONSE_TIME","requestStart","responseStart");Ve(this,"PAGE_DOWNLOAD_TIME","responseStart","responseEnd");Ve(this,"REDIRECT_TIME","navigationStart","fetchStart");Ve(this,"DOM_INTERACTIVE_TIME","navigationStart","domInteractive");Ve(this,"CONTENT_LOAD_TIME","navigationStart","domContentLoadedEventStart");this.setAsync("ACCESS_READER_ID",function(){return Ze(a,function(a){return a.getAccessReaderId()},"ACCESS_READER_ID")});
+this.setAsync("AUTHDATA",function(b){r().assert(b,"The first argument to AUTHDATA, the field, is required");return Ze(a,function(a){return a.getAuthdataField(b)},"AUTHDATA")});this.setAsync("VIEWER",function(){return J(a.ampdoc).getViewerOrigin().then(function(a){return void 0==a?"":a})});this.setAsync("TOTAL_ENGAGED_TIME",function(){return vc(a.ampdoc,"activity","amp-analytics").then(function(a){return a.getTotalEngagedTime()})});this.set("NAV_TIMING",function(b,c){r().assert(b,"The first argument to NAV_TIMING, the start attribute name, is required");
+return ne(a.ampdoc.win,b,c)});this.setAsync("NAV_TIMING",function(b,c){r().assert(b,"The first argument to NAV_TIMING, the start attribute name, is required");return me(a.ampdoc.win,b,c)});this.set("NAV_TYPE",function(){return oe(a.ampdoc.win,"type")});this.set("NAV_REDIRECT_COUNT",function(){return oe(a.ampdoc.win,"redirectCount")});this.set("AMP_VERSION",function(){return"1502819823157"});this.set("BACKGROUND_STATE",function(){return J(a.ampdoc).isVisible()?"0":"1"});this.setAsync("VIDEO_STATE",
+function(b,c){var d=a.ampdoc.getRootNode(),e=r().assertElement(d.getElementById(b),'Could not find an element with id="'+b+'" for VIDEO_STATE');return zb(a.ampdoc,"video-manager").getVideoAnalyticsDetails(e).then(function(a){return a?a[c]:""})})};Fe.prototype.$=function(a){return a(Ac(this.ampdoc))};function Ze(a,b,c){return a.uf(a.ampdoc).then(function(a){return a?b(a):(r().error("UrlReplacements","Access service is not installed to access: ",c),null)})}
+function We(a,b,c){r().assert(b,"The first argument to QUERY_PARAM, the query string param is required");r().assert("string"==typeof b,"param should be a string");a=N(a.ampdoc.win.location.href);a=ia(a.search);return"undefined"!==typeof a[b]?a[b]:c}function Xe(a,b,c){a.Cd||(a.Cd=sc(a.ampdoc.win,"variant","amp-experiment"));return a.Cd.then(function(a){r().assert(a,"To use variable %s, amp-experiment should be configured",c);return b(a)})}
+function Ye(a,b,c){a.sd||(a.sd=sc(a.ampdoc.win,"share-tracking","amp-share-tracking"));return a.sd.then(function(a){r().assert(a,"To use variable %s, amp-share-tracking should be configured",c);return b(a)})}function $e(a,b){this.ampdoc=a;this.Bd=b}f=$e.prototype;f.expandSync=function(a,b,c,d){return this.expandUrlSync(a,b,c,d)};f.expandAsync=function(a,b,c){return this.expandUrlAsync(a,b,c)};f.expandStringSync=function(a,b,c,d){return af(this,a,b,c,!0,d)};
+f.expandStringAsync=function(a,b){return af(this,a,b)};f.expandUrlSync=function(a,b,c,d){return bf(a,af(this,a,b,c,!0,d))};f.expandUrlAsync=function(a,b,c){return af(this,a,b,void 0,void 0,c).then(function(b){return bf(a,b)})};f.expandInputValueAsync=function(a){return cf(this,a,!1)};f.expandInputValueSync=function(a){return cf(this,a,!0)};
+function cf(a,b,c){"INPUT"==b.tagName&&(b.getAttribute("type")||"").toLowerCase();var d=df(b);if(!d)return c?b.value:Promise.resolve(b.value);void 0===b["amp-original-value"]&&(b["amp-original-value"]=b.value);a=af(a,b["amp-original-value"]||b.value,void 0,void 0,c,d);return c?b.value=a:a.then(function(a){return b.value=a})}
+function df(a,b){if(a=a.getAttribute("data-amp-replace")){var c={};a.trim().split(/\s+/).forEach(function(a){!b||b&&b.hasOwnProperty(a)?c[a]=!0:b&&r().warn("URL","Ignoring unsupported replacement",a)});return c}}
+f.maybeExpandLink=function(a){var b={CLIENT_ID:!0,QUERY_PARAM:!0},c=a.getAttribute("data-amp-addparams"),d=df(a,b);if(d||c){var e=a["amp-original-href"]||a.getAttribute("href"),g=N(e);null==a["amp-original-href"]&&(a["amp-original-href"]=e);if(c)var h=ia(c),e=ed(e,fd(h));if(d){a:if(h=Ac(this.ampdoc),g.origin==N(h.canonicalUrl).origin||g.origin==N(h.sourceUrl).origin)g=!0;else{if((h=this.ampdoc.getRootNode().querySelector("meta[name=amp-link-variable-allowed-origin]"))&&h.hasAttribute("content"))for(var h=
+h.getAttribute("content").trim().split(/\s+/),k=0;k<h.length;k++)if(g.origin==N(h[k]).origin){g=!0;break a}g=!1}var l=g;l?e=this.expandSync(e,void 0,void 0,d):r().warn("URL","Ignoring link replacement",e," because the link does not go to the document's source, canonical, or whitelisted origin.")}return a.href=e}};
+function af(a,b,c,d,e,g){var h=a.Bd.getExpr(c),k,l=b.replace(h,function(b,h,q){var m=[];"string"==typeof q&&(m=q.split(","));if(g&&!g[h])return b;var n;if(c&&h in c)n=c[h];else if(n=a.Bd.get(h))if(e){if(n=n.sync,!n)return r().error("UrlReplacements","ignoring async replacement key: ",h),""}else n=n.async||n.sync;var t;try{t="function"==typeof n?n.apply(null,m):n}catch(y){e&&(t=""),Ba(y)}if(t&&t.then){if(e)return r().error("UrlReplacements","ignoring promise value for key: ",h),"";var C=t.catch(function(a){Ba(a)}).then(function(a){l=
+l.replace(b,null==a?"":encodeURIComponent(a));d&&(d[b]=a)});k=k?k.then(function(){return C}):C;return b}d&&(d[b]=t);return null==t?"":encodeURIComponent(t)});k&&(k=k.then(function(){return l}));return e?l:k||Promise.resolve(l)}f.collectVars=function(a,b){var c=Object.create(null);return af(this,a,b,c).then(function(){return c})};
+function bf(a,b){var c=N(b,!0).protocol,d=N(a,!0).protocol;if(c!=d)return r().error("UrlReplacements","Illegal replacement of the protocol: ",a),a;r().assert(kd(b),"The replacement url has invalid protocol: %s",b);return b}f.getVariableSource=function(){return this.Bd};function ef(a){G(a,"url-replace",function(a){return new $e(a,new Fe(a))})};function ff(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 gf(a,b){function c(){d=0;var h=300-(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=Date.now();g=h;d||(d=a.setTimeout(c,300))}};var cssText$$module$build$css="html{overflow-x:hidden!important}body,html{height:auto!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-singledoc>body{overflow:visible!important;position:relative!important}html.i-amphtml-webview>body{overflow-x:hidden!important;overflow-y:visible!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-element{display:inline-block}.i-amphtml-layout-fixed{display:inline-block;position:relative}.i-amphtml-layout-container,.i-amphtml-layout-fixed-height,.i-amphtml-layout-responsive{display:block;position:relative}.i-amphtml-layout-fill{display:block;overflow:hidden!important;position:absolute;top:0;left:0;bottom:0;right:0}.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-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-fill-content{display:block;width:1px;min-width:100%;height:1px;min-height:100%;margin:auto}.i-amphtml-layout-size-defined .i-amphtml-fill-content{position:absolute;top:0;left:0;bottom:0;right:0}.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:2px!important;height:2px!important;opacity:0!important;overflow:hidden!important;margin:0!important;display:block!important;visibility:visible!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-notbuilt{position:relative;overflow:hidden!important;color:transparent!important}.i-amphtml-notbuilt:not(.i-amphtml-layout-container)>*{display:none}.i-amphtml-ghost{visibility:hidden!important}[layout=nodisplay]:not(.i-amphtml-display){display:none!important}.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]{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}.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;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);display:block}.i-amphtml-loader-moving-line{display:block;position:absolute;width:100%;height:100%!important;background-color:hsla(0,0%,59%,.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,.3);box-shadow:2px 2px 2px 1px rgba(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,.3)}50%{-webkit-transform:scale(.8);transform:scale(.8);background-color:rgba(0,0,0,.5)}}@keyframes i-amphtml-loader-dots{0%,to{-webkit-transform:scale(.7);transform:scale(.7);background-color:rgba(0,0,0,.3)}50%{-webkit-transform:scale(.8);transform:scale(.8);background-color:rgba(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{position:fixed!important;top:0!important;width:1px!important;height:1px!important;overflow:hidden!important;visibility:hidden}amp-iframe iframe{box-sizing:border-box!important}[amp-access][amp-access-hide],amp-experiment,amp-live-list>[update],amp-share-tracking,form [submit-error],form [submit-success],form [submitting]{display:none}amp-fresh{visibility:hidden}.i-amphtml-jank-meter{position:fixed;background-color:rgba(232,72,95,.5);bottom:0;right:0;color:#fff;font-size:16px;z-index:1000;padding:5px}i-amp-video-mask,i-amphtml-video-mask{z-index:1}.amp-video-eq{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;bottom:7px;display:-webkit-box;display:-ms-flexbox;display:flex;height:12px;opacity:0.8;overflow:hidden;position:absolute;right:7px;width:20px;z-index:1}.amp-video-eq .amp-video-eq-col{-webkit-box-flex:1;-ms-flex:1;flex:1;height:100%;margin-right:1px;position:relative}.amp-video-eq .amp-video-eq-col div{-webkit-animation-name:amp-video-eq-animation;animation-name:amp-video-eq-animation;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-direction:alternate;animation-direction:alternate;background-color:#fafafa;height:100%;position:absolute;width:100%;will-change:transform;-webkit-animation-play-state:paused;animation-play-state:paused}.amp-video-eq[unpausable] .amp-video-eq-col div{-webkit-animation-name:none;animation-name:none}.amp-video-eq[unpausable].amp-video-eq-play .amp-video-eq-col div{-webkit-animation-name:amp-video-eq-animation;animation-name:amp-video-eq-animation}.amp-video-eq.amp-video-eq-play .amp-video-eq-col div{-webkit-animation-play-state:running;animation-play-state:running}.amp-video-eq-1-1{-webkit-animation-duration:0.3s;animation-duration:0.3s}.amp-video-eq-1-1,.amp-video-eq-1-2{-webkit-transform:translateY(60%);transform:translateY(60%)}.amp-video-eq-1-2{-webkit-animation-duration:0.45s;animation-duration:0.45s}.amp-video-eq-2-1{-webkit-animation-duration:0.5s;animation-duration:0.5s}.amp-video-eq-2-1,.amp-video-eq-2-2{-webkit-transform:translateY(30%);transform:translateY(30%)}.amp-video-eq-2-2{-webkit-animation-duration:0.4s;animation-duration:0.4s}.amp-video-eq-3-1{-webkit-animation-duration:0.3s;animation-duration:0.3s}.amp-video-eq-3-1,.amp-video-eq-3-2{-webkit-transform:translateY(70%);transform:translateY(70%)}.amp-video-eq-3-2{-webkit-animation-duration:0.35s;animation-duration:0.35s}.amp-video-eq-4-1{-webkit-animation-duration:0.4s;animation-duration:0.4s}.amp-video-eq-4-1,.amp-video-eq-4-2{-webkit-transform:translateY(50%);transform:translateY(50%)}.amp-video-eq-4-2{-webkit-animation-duration:0.25s;animation-duration:0.25s}@-webkit-keyframes amp-video-eq-animation{0%{-webkit-transform:translateY(100%);transform:translateY(100%)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes amp-video-eq-animation{0%{-webkit-transform:translateY(100%);transform:translateY(100%)}to{-webkit-transform:translateY(0);transform:translateY(0)}}.i-amphtml-dockable-video{padding:0px;margin:0px;-webkit-transition:background-color 1s;transition:background-color 1s}.i-amphtml-dockable-video>iframe.i-amphtml-dockable-video-minimizing,.i-amphtml-dockable-video>video.i-amphtml-dockable-video-minimizing{position:fixed;height:auto;overflow:hidden;z-index:16;will-change:transform;-webkit-transform:scale(0.6) translateX(20px) translateY(20px);transform:scale(0.6) translateX(20px) translateY(20px);border-radius:6px;box-shadow:0px 3px 9px 3px rgba(0,0,0,.1);-webkit-transition:box-shadow 1s,border-radius 1s;transition:box-shadow 1s,border-radius 1s;min-width:initial!important;min-height:initial!important;margin:initial!important}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}\n/*# sourceURL=/css/amp.css*/";function hf(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d];b(e,d,a)||(c.push(e),a.splice(d,1),d--)}}function jf(a,b){for(var c=0;c<a.length;c++)if(b(a[c],c,a))return c;return-1};var kf=Date.now();function lf(a){var b,c=Kc.urls.cdn;return b?c+"/rtv/"+p().rtvVersion+"/"+a+".js":c+"/"+a+".js"};function mf(a){var b=a.getAttribute("srcset");if(b){a=b.match(/\s*(?:[\S]*)(?:\s+(?:-?(?:\d+(?:\.(?:\d+)?)?|\.\d+)[a-zA-Z]))?(?:\s*,)?/g);r().assert(0<a.length,"srcset has to have at least one source: %s",void 0);for(var c=[],d=0;d<a.length;d++){var e=a[d].trim();","==e.substr(-1)&&(e=e.substr(0,e.length-1).trim());var g=e.split(/\s+/,2);if(0!=g.length&&(1!=g.length||g[0])&&(2!=g.length||g[0]||g[1]))if(e=g[0],1==g.length||2==g.length&&!g[1])c.push({url:e,width:void 0,dpr:1});else{var g=g[1].toLowerCase(),
+h=g.substring(g.length-1);"w"==h?c.push({url:e,width:parseFloat(g),dpr:void 0}):"x"==h&&c.push({url:e,width:void 0,dpr:parseFloat(g)})}}return new nf(c)}var k=r().assert(a.getAttribute("src"),'Either non-empty "srcset" or "src" attribute must be specified: %s',a);return new nf([{url:k,width:void 0,dpr:1}])}
+function nf(a){r().assert(0<a.length,"Srcset must have at least one source");this.M=a;var b=!1,c=!1;for(a=0;a<this.M.length;a++){var d=this.M[a];r().assert((d.width||d.dpr)&&(!d.width||!d.dpr),"Either dpr or width must be specified");b=b||!!d.width;c=c||!!d.dpr}r().assert(!b||!c,"Srcset cannot have both width and dpr sources");b?this.M.sort(of):this.M.sort(pf);this.ug=b;this.qf=c}
+nf.prototype.select=function(a,b){var c=-1;if(this.ug)a:{for(var c=-Infinity,d=this.M.length-1;0<=d;d--){var e=this.M[d].width/b;if(e>=a){c=1.1*(a-c)<e-a&&1.2>=a/c?d+1:d;break a}c=e}c=0}else if(this.qf){a=-1;c=1E6;for(d=0;d<this.M.length;d++)e=Math.abs((this.M[d].dpr||1)-b),e<c&&(c=e,a=d);c=a}return-1!=c?this.M[c]:this.getLast()};nf.prototype.getLast=function(){return this.M[this.M.length-1]};nf.prototype.getSources=function(){return this.M};
+nf.prototype.stringify=function(){for(var a=[],b=0;b<this.M.length;b++){var c=this.M[b];c.width?a.push(c.url+" "+c.width+"w"):c.dpr?a.push(c.url+" "+c.dpr+"x"):a.push(""+c.url)}return a.join(", ")};function of(a,b){r().assert(a.width!=b.width,"Duplicate width: %s",a.width);return b.width-a.width}function pf(a,b){r().assert(a.dpr!=b.dpr,"Duplicate dpr: %s",a.dpr);return b.dpr-a.dpr};function qf(){this.m=[]}qf.prototype.peek=function(){var a=this.m.length;return a?this.m[a-1].item:null};qf.prototype.enqueue=function(a,b){if(isNaN(b))throw Error("Priority must not be NaN.");for(var c=b,d=-1,e=0,g=this.m.length;e<=g;){d=Math.floor((e+g)/2);if(d===this.m.length)break;if(this.m[d].priority<c)e=d+1;else if(0<d&&this.m[d-1].priority>=c)g=d-1;else break}this.m.splice(d,0,{item:a,priority:b})};qf.prototype.dequeue=function(){return this.m.length?this.m.pop().item:null};
+da.Object.defineProperties(qf.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.m.length}}});var rf=/nochunking=1/.test(self.location.hash),sf=Promise.resolve();function tf(a,b){rf?sf.then(b):(G(a,"chunk",uf),a=zb(a,"chunk"),b=new vf(b,a.c,a.qg),wf(a,b,Number.POSITIVE_INFINITY))}function xf(a){this.state="not_run";this.Gc=a}function yf(a,b){if("run"!=a.state){a.state="run";try{a.Gc(b)}catch(c){throw a.De(c),c;}}}xf.prototype.Ag=function(){return this.Gc.displayName||this.Gc.name};xf.prototype.De=function(){};xf.prototype.oe=function(){return!1};xf.prototype.Ze=function(){return!0};
+function vf(a,b,c){var d=this;xf.call(this,a);this.c=b;this.a=null;c.then(function(a){d.a=a;d.a.isVisible()&&yf(d,null);d.a.onVisibilityChanged(function(){d.a.isVisible()&&yf(d,null)})})}aa(vf,xf);vf.prototype.De=function(){Ld(self.document)};vf.prototype.oe=function(){return this.a?this.a.isVisible():this.c.document.hidden?!1:!/visibilityState=(hidden|prerender)/.test(this.c.location.hash)};vf.prototype.Ze=function(){return!!this.a};
+function uf(a){var b=this;this.yg=a;this.c=a.win;this.u=new qf;this.Md=this.fe.bind(this);this.qg=Ib(a,"viewer");this.c.addEventListener("message",function(a){"amp-macro-task"==a.data&&b.fe(null)})}uf.prototype.run=function(a,b){var c=new xf(a);wf(this,c,b)};function wf(a,b,c){a.u.enqueue(b,c);sf.then(function(){a.za()})}function zf(a,b){for(var c=a.u.peek();c&&"not_run"!==c.state;)a.u.dequeue(),c=a.u.peek();c&&b&&a.u.dequeue();return c}
+uf.prototype.fe=function(a){var b=this,c=zf(this,!0);if(!c)return!1;var d=Date.now();yf(c,a);sf.then(function(){b.za()});return!0};function Af(a){sf.then(function(){a.Md(null)})}uf.prototype.za=function(){var a=zf(this);a&&(a.oe()?Af(this):a.Ze()&&this.c.requestIdleCallback?Bf(this.c,this.Md):this.c.postMessage("amp-macro-task","*"))};
+function Bf(a,b){var c=15,d=2E3;function e(h){if(h.timeRemaining()<c){var k=d-(Date.now()-g);0>=k||h.didTimeout?b(h):a.requestIdleCallback(e,{timeout:k})}else b(h)}var g=Date.now();a.requestIdleCallback(e,{timeout:d})};/*
+
+ Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
+ Code distributed by Google as part of the polymer project is also
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
+*/
+var Cf;function Df(){var a;if(void 0===Cf){var b=a||Element;Cf=b.prototype.attachShadow?"v1":b.prototype.createShadowRoot?"v0":"none"}return Cf};var Ef={composed:!1};function Ff(a){return"none"!=Df()&&Node.prototype.getRootNode?a.getRootNode(Ef):ic(a,function(a){return a?"I-AMPHTML-SHADOW-ROOT"==a.tagName?!0:11==a.nodeType&&"[object ShadowRoot]"===Object.prototype.toString.call(a):!1})};function Gf(){var a=self,b=0,c=a.performance;c&&c.timing&&c.timing.responseStart&&(b=Date.now()-c.timing.responseStart);var d=Math.max(1,1E3-b);a.setTimeout(function(){if(!se(a.document))for(var b=a.document.querySelectorAll('link[rel~="stylesheet"]'),c={},h=0;h<b.length;c={newLink:c.newLink,media:c.media},h++){var k=b[h];c.newLink=k.cloneNode(!1);c.media=k.media||"all";c.newLink.media="not-matching";c.newLink.onload=function(a){return function(){a.newLink.media=a.media}}(c);c.newLink.setAttribute("i-amphtml-timeout",
+d);var l=k.parentElement;l.insertBefore(c.newLink,k);l.removeChild(k)}},d)};function Hf(a){var b=this;this.win=a;this.pe=this.win.Date.now();this.cb=[];this.g=this.a=null;this.hb=this.Uc=!1;this.de=z();this.Id="";this.addEnabledExperiment("rtv-"+p(this.win).rtvVersion);ud(this.win)&&this.addEnabledExperiment("canary");xe(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()});
+If(this)}f=Hf.prototype;f.coreServicesAvailable=function(){var a=this;this.a=J(this.win.document);this.g=Ec(this.win.document);this.hb=this.a.isEmbedded()&&"1"===this.a.getParam("csi");this.a.onVisibilityChanged(this.flush.bind(this));Jf(this);var b=this.a.whenMessagingReady();this.a.whenFirstVisible().then(function(){a.tick("ofv");a.flush()});return b?b.then(function(){a.Uc=!0;a.tickDelta("msr",a.win.Date.now()-a.pe);Kf(a);a.flush()}):Promise.resolve()};
+function If(a){a.win.PerformancePaintTiming&&(new a.win.PerformanceObserver(function(b){b.getEntries().forEach(function(b){"first-paint"==b.name?a.tickDelta("fp",b.startTime+b.duration):"first-contentful-paint"==b.name&&a.tickDelta("fcp",b.startTime+b.duration)})})).observe({entryTypes:["paint"]})}
+function Jf(a){var b=!a.a.hasBeenVisible(),c=b?-1:a.pe;b&&a.a.whenFirstVisible().then(function(){c=a.win.Date.now()});Lf(a).then(function(){if(b){var d=-1<c?a.win.Date.now()-c:0;a.a.whenFirstVisible().then(function(){a.tickDelta("pc",d)});Mf(a,d)}else a.tick("pc"),Mf(a,a.win.Date.now()-c);a.flush()})}
+function Lf(a){var b=Gc(a.win.document).getSize(),b=X(0,0,b.width,b.height);return a.g.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,c=D({label:a,value:c,delta:null!=b?Math.max(b,0):void 0});this.Uc&&this.hb?this.a.sendMessage("tick",c):(50<=this.cb.length&&this.cb.shift(),this.cb.push(c));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.Uc&&this.hb&&this.a.sendMessage("sendCsi",D({ampexp:this.Id}),!0)};f.throttledFlush=function(){this.Te||(this.Te=ff(this.win,this.flush.bind(this)));this.Te()};f.addEnabledExperiment=function(a){this.de[a]=!0;this.Id=Object.keys(this.de).join(",")};
+function Kf(a){a.a&&(a.hb&&a.cb.forEach(function(b){a.a.sendMessage("tick",b)}),a.cb.length=0)}function Mf(a,b){a.a&&a.a.sendMessage("prerenderComplete",D({value:b}),!0)}f.isPerformanceTrackingOn=function(){return this.hb};function Nf(a,b){this.ja=a;this.o=b;this.oc=!1;this.ud=0;this.Vd=this.Uf.bind(this);this.Ud=this.Tf.bind(this);this.Td=this.Sf.bind(this);this.Sd=this.Rf.bind(this);this.ja.addEventListener("touchstart",this.Vd,!0)}f=Nf.prototype;f.cleanup=function(){Of(this);this.ja.removeEventListener("touchstart",this.Vd,!0)};
+f.Uf=function(a){this.oc||!a.touches||1!=a.touches.length||0<this.o.getScrollTop()||(a=a.touches[0].clientY,this.oc=!0,this.ud=a,this.ja.addEventListener("touchmove",this.Ud,!0),this.ja.addEventListener("touchend",this.Td,!0),this.ja.addEventListener("touchcancel",this.Sd,!0))};function Of(a){a.oc=!1;a.ud=0;a.ja.removeEventListener("touchmove",a.Ud,!0);a.ja.removeEventListener("touchend",a.Td,!0);a.ja.removeEventListener("touchcancel",a.Sd,!0)}
+f.Tf=function(a){if(this.oc){var b=a.touches[0].clientY-this.ud;0<b&&a.preventDefault();0!=b&&Of(this)}};f.Sf=function(){Of(this)};f.Rf=function(){Of(this)};function Pf(a,b){this.win=a;this.hc=null;b&&(this.hc=new Qf(a))}Pf.prototype.isSingleDoc=function(){return!!this.hc};Pf.prototype.getAmpDoc=function(a){if(this.hc)return this.hc;for(var b=a;b;){if(b.F)return b.F;var c=ac(b,this.win);if(c)b=c;else{b=Ff(b);if(!b)break;if(c=b.__AMPDOC)return c;b=b.host}}throw x().createError("No ampdoc found for",a);};function Rf(a){this.win=a;this.D=new re}f=Rf.prototype;f.isSingleDoc=function(){return null};f.getWin=function(){return this.win};f.signals=function(){return this.D};
+f.getRootNode=function(){return null};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 Qf(a){var b=this;Rf.call(this,a);this.ff=this.win.document.body?Promise.resolve(this.win.document.body):gc(this.win.document).then(function(){return b.getBody()});this.Yf=we(this.win.document)}aa(Qf,Rf);f=Qf.prototype;f.isSingleDoc=function(){return!0};f.getRootNode=function(){return this.win.document};f.getUrl=function(){return this.win.location.href};f.isBodyAvailable=function(){return!!this.win.document.body};f.getBody=function(){return this.win.document.body};f.whenBodyAvailable=function(){return this.ff};
+f.isReady=function(){return se(this.win.document)};f.whenReady=function(){return this.Yf};function Sf(){var a=self;F(a,"ampdoc",function(){return new Pf(a,!0)})};function Tf(){var a=self;I(a).delay(function(){if(O(a,"cache-service-worker")&&"serviceWorker"in navigator&&a.location.hostname===N(Kc.urls.cdn).hostname){var b=O(a,"cache-service-worker-kill"),c=lf("sw"+(b?"-kill":""));navigator.serviceWorker.register(c).then(function(a){x().info("cache-service-worker","ServiceWorker registration successful: ",a)},function(a){x().error("cache-service-worker","ServiceWorker registration failed: ",a)})}})};var Uf=null;function Vf(a){this.G=a.document;this.Kc=a.document.head;this.lb={};this.Ye={};this.Zb=Dc(a);this.lb[N(a.location.href).origin]=!0;var b;a:{if(!Uf){b=a.document.createElement("link");var c=b.relList;b.as="invalid-value";if(!c||!c.supports){b={};break a}Uf={preconnect:c.supports("preconnect"),preload:c.supports("preload"),onlyValidAs:"invalid-value"!=b.as}}b=Uf}this.Cb=b;this.I=I(a)}
+Vf.prototype.url=function(a,b,c){if(Wf(b)){b=N(b).origin;var d=Date.now(),e=this.lb[b];if(e&&d<e)c&&(this.lb[b]=d+18E4);else{this.lb[b]=d+(c?18E4:1E4);var g;this.Cb.preconnect||(g=this.G.createElement("link"),g.setAttribute("rel","dns-prefetch"),g.setAttribute("href",b),this.Kc.appendChild(g));var h=this.G.createElement("link");h.setAttribute("rel","preconnect");h.setAttribute("href",b);h.setAttribute("referrerpolicy","origin");this.Kc.appendChild(h);this.I.delay(function(){g&&g.parentNode&&g.parentNode.removeChild(g);
+h.parentNode&&h.parentNode.removeChild(h)},1E4);Xf(this,a,b)}}};Vf.prototype.preload=function(a,b,c){var d=this;Wf(b)&&!this.Ye[b]&&(this.Ye[b]=!0,this.url(a,b,!0),this.Cb.preload&&("document"==c&&this.Zb.isSafari()||a.whenFirstVisible().then(function(){var a=d.G.createElement("link");a.setAttribute("rel","preload");a.setAttribute("href",b);a.setAttribute("referrerpolicy","origin");a.as=d.Cb.onlyValidAs?"fetch":"";d.Kc.appendChild(a)})))};
+function Wf(a){return fa(a,"https:")||fa(a,"http:")?!0:!1}function Xf(a,b,c){!a.Cb.preconnect&&a.Zb.isSafari()&&b.whenFirstVisible().then(function(){var b=Date.now();a.lb[c]=b+18E4;var e=b-b%18E4,g=new XMLHttpRequest;g.open("HEAD",c+"/amp_preconnect_polyfill_404_or_other_error_expected._Do_not_worry_about_it?"+e,!0);g.send()})}function Yf(a,b){this.Ge=a;this.sf=b;this.a=null}function Zf(a){a.a||(a.a=J(a.sf));return a.a}Yf.prototype.url=function(a,b){this.Ge.url(Zf(this),a,b)};
+Yf.prototype.preload=function(a,b){this.Ge.preload(Zf(this),a,b)};function $f(a){this.element=a;this.layout_="nodisplay";this.layoutWidth_=-1;this.inViewport_=!1;this.win=a.ownerDocument.defaultView;this.actionMap_=null;a=this.element;var b=a.ownerDocument.defaultView;F(b,"preconnect",Vf);b=H(b,"preconnect");this.preconnect=new Yf(b,a);this.config=null}f=$f.prototype;f.signals=function(){return this.element.signals()};f.getPriority=function(){return 0};f.updatePriority=function(a){this.element.getResources().updatePriority(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 K(this.win)};f.getLayoutWidth=function(){return this.layoutWidth_};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 3};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 Qd(a)};function ag(a){a.actionMap_||(a.actionMap_=a.win.Object.create(null))}f.registerAction=function(a,b,c){c=void 0===c?100:c;ag(this);this.actionMap_[a]={handler:b,minTrust:c}};
+f.executeAction=function(a){if("activate"==a.method)a.satisfiesTrust(this.activationTrust())&&this.activate(a);else{ag(this);var b=this.actionMap_[a.method];r().assert(b,"Method not found: "+a.method+" in %s",this);var c=b.handler;a.satisfiesTrust(b.minTrust)&&c(a)}};f.getMaxDpr=function(){return this.element.getResources().getMaxDpr()};f.getDpr=function(){return this.element.getResources().getDpr()};
+f.propagateAttributes=function(a,b,c){a=qa(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;a=qa(a)?a:[a];for(var d={i:0};d.i<a.length;d={i:d.i},d.i++)b.addEventListener(a[d.i],function(b){return function(d){c.element.dispatchCustomEvent(a[b.i],d.data||{})}}(d))};f.toggleLayoutDisplay=function(a){this.element.toggleLayoutDisplay(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.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 Gc(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.mutateElement=function(a,b){return this.element.getResources().mutateElement(b||this.element,a)};f.deferMutate=function(a){this.element.getResources().deferMutate(this.element,a)};
+f.collapsedCallback=function(){};f.expand=function(){this.element.getResources().expandElement(this.element)};f.expandedCallback=function(){};f.mutatedAttributesCallback=function(){};f.onLayoutMeasure=function(){};var bg=[],cg={};function dg(a){$f.call(this,a);a=a.tagName.toLowerCase();cg[a]||(cg[a]=!0,Cc(this.win).loadExtension(a,!1));bg.push(this)}aa(dg,$f);dg.prototype.getPriority=function(){return 0};dg.prototype.isLayoutSupported=function(){return!0};dg.prototype.reconstructWhenReparented=function(){return!1};var eg={"AMP-AD":!0};function fg(a,b){var c=a.split(",");r().assert(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,e,k,l=!1;if(")"==a.charAt(a.length-1)){var l=!0,m=1;for(k=a.length-2;0<=k;k--){var n=a.charAt(k);"("==n?m--:")"==n&&m++;if(0==m)break}var q=k-1;if(0<k)for(k--;0<=k&&(n=a.charAt(k),"%"==n||"-"==n||"_"==n||"a"<=n&&"z">=n||"A"<=n&&"Z">=n||"0"<=n&&"9">=n);k--);r().assert(k<q,'Invalid CSS function in "%s"',a)}else for(k=a.length-
+2;0<=k&&(n=a.charAt(k),"%"==n||"."==n||"a"<=n&&"z">=n||"A"<=n&&"Z">=n||"0"<=n&&"9">=n);k--);0<=k?(c=a.substring(0,k+1).trim(),e=a.substring(k+1).trim()):(e=a,c=void 0);d.push({mediaQuery:c,size:l?e:b?je(e):ie(e)})}});return new gg(d)}
+function gg(a){r().assert(0<a.length,"SizeList must have at least one option");this.jc=a;for(var b=0;b<a.length;b++){var c=a[b];b<a.length-1?r().assert(c.mediaQuery,"All options except for the last must have a media condition"):r().assert(!c.mediaQuery,"The last option must not have a media condition")}}gg.prototype.select=function(a){for(var b=0;b<this.jc.length-1;b++){var c=this.jc[b];if(c.mediaQuery&&a.matchMedia(c.mediaQuery).matches)return c.size}return this.getLast()};
+gg.prototype.getLast=function(){return this.jc[this.jc.length-1].size};var hg={0:"cld",2:"adld"};function ig(a,b){this.c=a;this.Yb=Hb(a);this.Eb=this.Db=null;this.be=!1;this.Yc=hg[b]}ig.prototype.enterViewport=function(){this.Yc&&!this.Db&&(this.Db=this.c.Date.now(),jg(this))};ig.prototype.startLayout=function(){this.Yc&&!this.Eb&&(this.Eb=this.c.Date.now(),jg(this))};function jg(a){if(a.Yb&&a.Yb.isPerformanceTrackingOn()&&!a.be&&a.Db&&a.Eb){var b=a.c.Math.max(a.Eb-a.Db,0);a.Yb.tickDelta(a.Yc,b);a.Yb.throttledFlush();a.be=!0}};function kg(a,b,c){var d=this;b.__AMP__RESOURCE=this;this.zf=a;this.element=b;this.debugid=b.tagName.toLowerCase()+"#"+a;this.hostWin=b.ownerDocument.defaultView;this.g=c;this.Gf=b.hasAttribute("placeholder");this.wc=this.fb=!1;this.Qa=void 0;this.j=b.isBuilt()?1:0;this.pd=-1;this.T=0;this.ue=null;this.Ib=!1;this.K=X(-1E4,-1E4,0,0);this.Nc=null;this.la=this.Tc=!1;this.La=this.bc=this.ac=null;this.od=void 0;this.we=!1;this.Ob=null;this.Jf=new Promise(function(a){d.Ob=a});this.Ra=!1}
+function Y(a){return a.__AMP__RESOURCE}f=kg.prototype;f.getId=function(){return this.zf};f.updateOwner=function(a){this.Qa=a};f.getOwner=function(){if(void 0===this.Qa){for(var a=this.element;a;a=a.parentElement)if(a.__AMP__OWNER){this.Qa=a.__AMP__OWNER;break}void 0===this.Qa&&(this.Qa=null)}return this.Qa};f.hasOwner=function(){return!!this.getOwner()};f.getPriority=function(){return-1!=this.pd?this.pd:this.element.getPriority()};f.updatePriority=function(a){this.pd=a};f.getState=function(){return this.j};
+f.isBuilt=function(){return this.element.isBuilt()};f.isBuilding=function(){return this.fb};f.isBlacklisted=function(){return this.wc};f.whenBuilt=function(){return this.element.signals().whenSignal("res-built")};
+f.build=function(){var a=this;if(this.fb||this.wc||!this.element.isUpgraded()||!this.g.grantBuildPermission())return null;this.fb=!0;return this.element.build().then(function(){a.fb=!1;a.hasBeenMeasured()?(a.j=2,a.element.updateLayoutBox(a.K)):a.j=1;a.element.signals().signal("res-built");a.element.dispatchCustomEvent("amp:built")},function(b){x().error("Resource","failed to build:",a.debugid,b);a.fb=!1;a.wc=!0;a.element.signals().rejectSignal("res-built",b);throw b;})};
+f.applySizesAndMediaQuery=function(){this.element.applySizesAndMediaQuery()};f.changeSize=function(a,b,c){this.element.changeSize(a,b,c);0!=this.j&&(this.j=1)};f.overflowCallback=function(a,b,c,d){a&&(this.od={height:b,width:c,margins:d});this.element.overflowCallback(a,b,c,d)};f.resetPendingChangeSize=function(){this.od=void 0};f.getPendingChangeSize=function(){return this.od};
+f.measure=function(){if(!(this.Gf&&this.element.parentElement&&fa(this.element.parentElement.tagName,"AMP-"))||"__AMP__RESOURCE"in this.element.parentElement){this.Tc=!1;var a=this.g.getViewport().getLayoutRect(this.element),b=this.K,c=this.g.getViewport();this.K=a;var d=!1;if(this.isDisplayed())for(var e=this.g.win,g=e.document.body,h=this.element;h&&h!=g;h=h.offsetParent){if(h.isAlwaysFixed&&h.isAlwaysFixed()){d=!0;break}if(c.isDeclaredFixed(h)&&"fixed"==(e.getComputedStyle(h)||z()).position){d=
+!0;break}}if(this.Ib=d)a=this.K=Ae(a,-c.getScrollLeft(),-c.getScrollTop());1!=this.j&&b.top==a.top&&b.width==a.width&&b.height==a.height||!this.element.isUpgraded()||0==this.j||1!=this.j&&!this.element.isRelayoutNeeded()||(this.j=2);this.hasBeenMeasured()||(this.Nc=a);this.element.updateLayoutBox(a)}};f.completeCollapse=function(){Ed(this.element,!1);this.K=X(this.K.left,this.K.top,0,0);this.Ib=!1;this.element.updateLayoutBox(this.K);var a=this.getOwner();a&&a.collapsedCallback(this.element)};
+f.completeExpand=function(){Ed(this.element,!0);this.element.removeAttribute("hidden");this.requestMeasure()};f.isMeasureRequested=function(){return this.Tc};f.hasBeenMeasured=function(){return!!this.Nc};f.requestMeasure=function(){0!=this.j&&(this.Tc=!0)};f.getLayoutBox=function(){if(!this.Ib)return this.K;var a=this.g.getViewport();return Ae(this.K,a.getScrollLeft(),a.getScrollTop())};f.getPageLayoutBox=function(){return this.K};f.getInitialLayoutBox=function(){return this.Nc||this.K};
+f.isDisplayed=function(){return 0<this.K.height&&0<this.K.width&&!!this.element.ownerDocument&&!!this.element.ownerDocument.defaultView};f.isFixed=function(){return this.Ib};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.whenWithinRenderOutsideViewport=function(){var a=this;return this.isLayoutPending()?this.ac?this.ac:this.ac=new Promise(function(b){a.bc=b}):Promise.resolve()};function lg(a){a.bc&&(a.bc(),a.ac=null,a.bc=null)}
+f.renderOutsideViewport=function(){if(this.hasOwner())return lg(this),!0;var a=this.element.renderOutsideViewport();if(!0===a||!1===a)return!0===a&&lg(this),a;var b=this.g.getViewport().getRect(),c=this.getLayoutBox(),d=this.g.getScrollDirection(),e=Math.max(a,0),g=1,h;if(b.right<c.left||b.left>c.right)return!1;if(b.bottom<c.top)h=c.top-b.bottom,-1==d&&(g=2);else if(b.top>c.bottom)h=b.top-c.bottom,1==d&&(g=2);else return lg(this),!0;var k=h<b.height*e/g;k&&lg(this);return k};
+f.layoutScheduled=function(){this.j=3};f.layoutCanceled=function(){this.j=this.hasBeenMeasured()?2:1};
+f.startLayout=function(){var a=this;if(this.La)return this.La;if(4==this.j)return Promise.resolve();if(5==this.j)return Promise.reject(this.ue);this.isDisplayed();if(0<this.T&&!this.element.isRelayoutNeeded())return this.j=4,Promise.resolve();this.T++;this.j=3;var b;try{b=this.element.layoutCallback()}catch(c){return Promise.reject(c)}return this.La=b.then(function(){return mg(a,!0)},function(b){return mg(a,!1,b)})};
+function mg(a,b,c){a.Ob&&(a.Ob(),a.Ob=null);a.La=null;a.we=!0;a.j=b?4:5;a.ue=c;if(!b)return Promise.reject(c)}f.isLayoutPending=function(){return 4!=this.j&&5!=this.j};f.loadedOnce=function(){return this.Jf};f.hasLoadedOnce=function(){return this.we};f.isInViewport=function(){return this.la};f.setInViewport=function(a){a!=this.la&&this.element.ownerDocument&&this.element.ownerDocument.defaultView&&(this.la=a,this.element.viewportCallback(a))};
+f.unlayout=function(){0!=this.j&&1!=this.j&&(this.setInViewport(!1),this.element.unlayoutCallback()&&(this.element.togglePlaceholder(!0),this.j=1,this.T=0,this.La=null))};f.getTaskId=function(a){return this.debugid+"#"+a};f.pause=function(){0==this.j||this.Ra||(this.Ra=!0,this.setInViewport(!1),this.element.pauseCallback(),this.element.unlayoutOnPause()&&this.unlayout())};f.pauseOnRemove=function(){0!=this.j&&(this.setInViewport(!1),this.Ra||(this.Ra=!0,this.element.pauseCallback()))};
+f.resume=function(){0!=this.j&&this.Ra&&(this.Ra=!1,this.element.resumeCallback())};f.unload=function(){this.pause();this.unlayout()};f.disconnect=function(){delete this.element.__AMP__RESOURCE;this.element.disconnectedCallback()};var ng;function og(a){a.ampExtendedElements||(a.ampExtendedElements={});return a.ampExtendedElements}function pg(a,b,c){var d=og(a);if(d[b]){r().assert(d[b]==dg,"%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<bg.length;e++){var g=bg[e],h=g.element;if(h.tagName.toLowerCase()==b&&h.ownerDocument.defaultView==a){try{h.upgrade(c)}catch(k){Vd(k,h)}bg.splice(e--,1)}}}else qg(a,b,c)}
+function rg(a){for(var b=og(a),c=a.document.head.querySelectorAll("script[custom-element]"),d=0;d<c.length;d++){var e=c[d].getAttribute("custom-element");b[e]||qg(a,e,dg)}if(!a.document.body){var g=Bc(a);g.onBodyAvailable(function(){return rg(a)})}}function sg(a,b){og(a)[b]||qg(a,b,dg)}function tg(a){T(a,"display","none");a.classList.add("i-amphtml-display")}
+function ug(a){var b="string"==typeof a?a:a.tagName;return b&&fa(b.toLowerCase(),"i-")||a.tagName&&(a.hasAttribute("placeholder")||a.hasAttribute("fallback")||a.hasAttribute("overflow"))?!0:!1}function vg(a,b){function c(a){return d.call(this,a)}var d=wg(a);aa(c,d);c.prototype.elementName=function(){return b};return c}
+function wg(a){function b(a){a=c.call(this,a);a.createdCallback();return a}if(a.BaseCustomElementClass)return a.BaseCustomElementClass;var c=a.HTMLElement;aa(b,c);b.prototype.createdCallback=function(){this.Xd=!1;this.Bc=null;this.readyState="loading";this.everAttached=!1;this.g=this.F=null;this.layout_="nodisplay";this.layoutWidth_=-1;this.T=0;this.la=this.Rc=!1;this.cd=this.ad=this.Ta=this.Fb=this.ic=this.Rb=void 0;this.bd=this.va=null;this.U=void 0;var b=og(a)[this.elementName()];this.implementation_=
+new b(this);this.Va=1;this.gb=this.sa=void 0;this.D=new re;var c=Hb(a);this.Ee=c&&c.isPerformanceTrackingOn();this.$c=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.D};b.prototype.getAmpDoc=function(){return this.F};b.prototype.getResources=function(){return this.g};b.prototype.isUpgraded=function(){return 2==this.Va};b.prototype.upgrade=function(a){this.gb||1!=
+this.Va||(this.implementation_=new a(this),this.everAttached&&this.Ve())};b.prototype.Ec=function(a){this.Va=2;this.implementation_=a;this.classList.remove("amp-unresolved");this.classList.remove("i-amphtml-unresolved");this.implementation_.createdCallback();this.ef();this.implementation_.layout_=this.layout_;this.implementation_.layoutWidth_=this.layoutWidth_;this.implementation_.firstAttachedCallback();this.Ja();this.getResources().upgraded(this)};b.prototype.ef=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 r().createError(a);}};b.prototype.isBuilt=function(){return this.Xd};b.prototype.whenBuilt=function(){return this.D.whenSignal("built")};b.prototype.getPriority=function(){this.isUpgraded();
+return this.implementation_.getPriority()};b.prototype.build=function(){var a=this;this.isUpgraded();return this.Bc?this.Bc:this.Bc=(new Promise(function(b){b(a.implementation_.buildCallback())})).then(function(){a.preconnect(!1);a.Xd=!0;a.classList.remove("i-amphtml-notbuilt");a.classList.remove("amp-notbuilt");a.D.signal("built");a.la&&a.We(!0);a.sa&&I(a.ownerDocument.defaultView).delay(a.pf.bind(a),1);if(!a.getPlaceholder()){var b=a.createPlaceholder();b&&a.appendChild(b)}},function(b){a.D.rejectSignal("built",
+b);Vd(b,a);throw b;})};b.prototype.preconnect=function(a){var b=this;a?this.implementation_.preconnectCallback(a):I(this.ownerDocument.defaultView).delay(function(){b.implementation_.preconnectCallback(a)},1)};b.prototype.isAlwaysFixed=function(){return this.implementation_.isAlwaysFixed()};b.prototype.updateLayoutBox=function(a){var b=this;this.layoutWidth_=a.width;this.isUpgraded()&&(this.implementation_.layoutWidth_=this.layoutWidth_);if(this.isBuilt())try{this.implementation_.onLayoutMeasure()}catch(g){Vd(g,
+this)}this.Kb()&&(this.la?this.Ua(!0):1E3>a.top&&0<=a.top&&K(this.ownerDocument.defaultView).mutate(function(){b.Kb()&&b.He()}))};b.prototype.je=function(){void 0===this.Ta&&"responsive"===this.layout_&&(this.Ta=this.querySelector("i-amphtml-sizer"));return this.Ta||null};b.prototype.applySizesAndMediaQuery=function(){void 0===this.Rb&&(this.Rb=this.getAttribute("media")||null);if(this.Rb){var a=this.ownerDocument.defaultView;this.classList.toggle("i-amphtml-hidden-by-media-query",!a.matchMedia(this.Rb).matches)}if(void 0===
+this.ic){var b=this.getAttribute("sizes");this.ic=b?fg(b):null}this.ic&&T(this,"width",this.ic.select(this.ownerDocument.defaultView));void 0===this.Fb&&"responsive"===this.layout_&&(this.Fb=(b=this.getAttribute("heights"))?fg(b,!0):null);this.Fb&&(b=this.je())&&T(b,"paddingTop",this.Fb.select(this.ownerDocument.defaultView))};b.prototype.changeSize=function(a,b,c){var d=this.je();d&&(this.Ta=null,T(d,"paddingTop","0"),this.g&&this.g.deferMutate(this,function(){d.parentElement&&d.parentElement.removeChild(d)}));
+void 0!==a&&T(this,"height",a,"px");void 0!==b&&T(this,"width",b,"px");c&&(null!=c.top&&T(this,"marginTop",c.top,"px"),null!=c.right&&T(this,"marginRight",c.right,"px"),null!=c.bottom&&T(this,"marginBottom",c.bottom,"px"),null!=c.left&&T(this,"marginLeft",c.left,"px"));this.Bf()&&this.hg()};b.prototype.connectedCallback=function(){this.everAttached||(this.classList.add("i-amphtml-element"),this.classList.add("i-amphtml-notbuilt"),this.classList.add("amp-notbuilt"));void 0===ng&&(ng="content"in self.document.createElement("template"));
+ng||void 0!==this.gb||(this.gb=!!jc(this,"template"));if(!this.gb)if(this.F||(this.F=zc(this.ownerDocument.defaultView).getAmpDoc(this)),this.g||(this.g=Ec(this.F)),this.getResources().add(this),this.everAttached){var a=this.reconstructWhenReparented();a&&this.Le();this.isUpgraded()&&(a&&this.getResources().upgraded(this),this.Ja())}else{this.everAttached=!0;try{var b;var c=this.getAttribute("i-amphtml-layout");if(c){var h=fe(c);"responsive"==h&&this.firstElementChild?this.Ta=this.querySelector("i-amphtml-sizer")||
+void 0:"nodisplay"==h&&tg(this);b=h}else{var k=this.getAttribute("layout"),l=this.getAttribute("width"),m=this.getAttribute("height"),n=this.getAttribute("sizes"),q=this.getAttribute("heights"),w=k?fe(k):null;r().assert(void 0!==w,"Unknown layout: %s",k);var v=l&&"auto"!=l?he(l):l;r().assert(void 0!==v,"Invalid width value: %s",l);var t=m?he(m):null;r().assert(void 0!==t,"Invalid height value: %s",m);var C,y,u,B;if(!(B=w&&"fixed"!=w&&"fixed-height"!=w||v&&t)){var M=this.tagName,M=M.toUpperCase();
+B=void 0===de[M]}if(B)C=v,y=t;else{var S=this.tagName.toUpperCase();if(!de[S]){var na=this.ownerDocument,P=S.replace(/^AMP\-/,""),Q=na.createElement(P);Q.controls=!0;V(Q,{position:"absolute",visibility:"hidden"});na.body.appendChild(Q);de[S]={width:(Q.offsetWidth||1)+"px",height:(Q.offsetHeight||1)+"px"};na.body.removeChild(Q)}var A=de[S];C=v||"fixed-height"==w?v:A.width;y=t||A.height}u=w?w:C||y?!y||C&&"auto"!=C?y&&C&&(n||q)?"responsive":"fixed":"fixed-height":"container";"fixed"!=u&&"fixed-height"!=
+u&&"responsive"!=u||r().assert(y,"Expected height to be available: %s",m);"fixed-height"==u&&r().assert(!C||"auto"==C,'Expected width to be either absent or equal "auto" for fixed-height layout: %s',l);"fixed"!=u&&"responsive"!=u||r().assert(C&&"auto"!=C,'Expected width to be available and not equal to "auto": %s',l);"responsive"==u?r().assert(ke(C)==ke(y),"Length units should be the same for width and height: %s, %s",l,m):r().assert(null===q,'Unexpected "heights" attribute for none-responsive layout');
+this.classList.add("i-amphtml-layout-"+u);ge(u)&&this.classList.add("i-amphtml-layout-size-defined");if("nodisplay"==u)tg(this);else if("fixed"==u)V(this,{width:C,height:y});else if("fixed-height"==u)T(this,"height",y);else if("responsive"==u){var E=this.ownerDocument.createElement("i-amphtml-sizer");V(E,{display:"block",paddingTop:le(y)/le(C)*100+"%"});this.insertBefore(E,this.firstChild);this.Ta=E}else"fill"!=u&&"container"!=u&&"flex-item"==u&&(C&&T(this,"width",C),y&&T(this,"height",y));b=u}this.layout_=
+b}catch(Vc){Vd(Vc,this)}this.implementation_ instanceof dg||this.Ve();this.isUpgraded()||(this.classList.add("amp-unresolved"),this.classList.add("i-amphtml-unresolved"),this.Ja())}};b.prototype.Bf=function(){return this.classList.contains("i-amphtml-layout-awaiting-size")};b.prototype.hg=function(){this.classList.remove("i-amphtml-layout-awaiting-size")};b.prototype.attachedCallback=function(){this.connectedCallback()};b.prototype.Ve=function(){var a=this,b=this.implementation_;if(1==this.Va){this.Va=
+4;var c=b.upgradeCallback();c?"function"==typeof c.then?c.then(function(c){a.Ec(c||b)}).catch(function(b){a.Va=3;Ba(b)}):this.Ec(c):this.Ec(b)}};b.prototype.disconnectedCallback=function(){this.gb||(this.getResources().remove(this),this.implementation_.detachedCallback())};b.prototype.detachedCallback=function(){this.disconnectedCallback()};b.prototype.dispatchCustomEvent=function(a,b){b=b||{};var c=this.ownerDocument.defaultView.document.createEvent("Event");c.data=b;c.initEvent(a,!0,!0);this.dispatchEvent(c)};
+b.prototype.Ja=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.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=ye(a,h,c)||X(0,0,0,0),b=k.width*k.height/(a.width*a.height),l=c;c&&(k=Ae(k,-c.left,-c.top),a=Ae(a,-c.left,-c.top),l=Ae(l,-c.left,-c.top));return{time:"undefined"!==
+typeof performance&&performance.now?performance.now():Date.now()-kf,rootBounds:l,boundingClientRect:a,intersectionRect:k,intersectionRatio:b}};b.prototype.getResourceId=function(){return this.getResources().getResourceForElement(this).getId()};b.prototype.vf=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.layoutCallback=function(){var a=this;this.isBuilt();this.Ja();var b=0==this.T;this.D.reset("unload");b&&this.D.signal("load-start");this.Ee&&this.ie().startLayout();var c=this.implementation_.layoutCallback();this.preconnect(!0);this.classList.add("i-amphtml-layout");return c.then(function(){b&&a.D.signal("load-end");a.readyState="complete";a.T++;a.Ua(!1,!0);a.Rc||(a.implementation_.firstLayoutCompleted(),a.Rc=!0,a.dispatchCustomEvent("amp:load:end"))},function(c){b&&a.D.rejectSignal("load-end",
+c);a.T++;a.Ua(!1,!0);throw c;})};b.prototype.viewportCallback=function(a){var b=this;this.la=a;0==this.T&&(a?I(this.ownerDocument.defaultView).delay(function(){b.la&&b.ownerDocument&&b.ownerDocument.defaultView&&b.Ua(!0)},100):this.Ua(!1));this.isBuilt()&&this.We(a)};b.prototype.We=function(a){this.implementation_.inViewport_=a;this.implementation_.viewportCallback(a);a&&this.Ee&&this.ie().enterViewport()};b.prototype.pauseCallback=function(){this.isBuilt()&&this.implementation_.pauseCallback()};
+b.prototype.resumeCallback=function(){this.isBuilt()&&this.implementation_.resumeCallback()};b.prototype.unlayoutCallback=function(){if(!this.isBuilt())return!1;this.D.signal("unload");var a=this.implementation_.unlayoutCallback();a&&this.Le();return a};b.prototype.Le=function(){this.T=0;this.Rc=!1;this.D.reset("render-start");this.D.reset("load-start");this.D.reset("load-end");this.D.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.ge(a,!1):(void 0===this.sa&&(this.sa=[]),this.sa.push(a))};b.prototype.pf=function(){var a=this;if(this.sa){var b=this.sa;this.sa=null;b.forEach(function(b){a.ge(b,!0)})}};b.prototype.ge=function(a,b){try{this.implementation_.executeAction(a,b)}catch(g){Ba("Action execution failed:",g,a.target.tagName,a.method)}};b.prototype.getRealChildNodes=function(){return mc(this,function(a){return!ug(a)})};b.prototype.getRealChildren=function(){return kc(this,function(a){return!ug(a)})};b.prototype.toggleLayoutDisplay=
+function(a){this.classList.toggle("i-amphtml-display",a)};b.prototype.getPlaceholder=function(){return lc(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{null==nc&&(nc=oc(this));nc?b=this.querySelectorAll(":scope > [placeholder]"):(this.classList.add("i-amphtml-scoped"),b=this.querySelectorAll(".i-amphtml-scoped > [placeholder]"),this.classList.remove("i-amphtml-scoped"));
+for(var c=b,b=0;b<c.length;b++)c[b].classList.add("amp-hidden")}};b.prototype.getFallback=function(){return pc(this,"> [fallback]")};b.prototype.toggleFallback=function(a){var b=this.vf();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.D.signal("render-start");this.togglePlaceholder(!1);this.Ua(!1)};b.prototype.Kb=function(){if(this.Df())return!1;void 0===
+this.ad&&(this.ad=this.hasAttribute("noloading"));var a;(a=this.ad)||(a=this.tagName.toUpperCase(),a=!("AMP-AD"==a||"AMP-EMBED"==a||ee[a]));return a||100>this.layoutWidth_||0<this.T||ug(this)||!ge(this.layout_)?!1:!0};b.prototype.Df=function(){return this.F&&this.F.win!=this.ownerDocument.defaultView||"inabox"==p().runtime};b.prototype.He=function(){if(!this.va){var a=this.ownerDocument,b=a.createElement("div");b.classList.add("i-amphtml-loading-container");b.classList.add("i-amphtml-fill-content");
+b.classList.add("amp-hidden");var c=this.elementName(),h=a.createElement("div");if(eg[c.toUpperCase()])h.classList.add("i-amphtml-loader-line"),a=a.createElement("div"),a.classList.add("i-amphtml-loader-moving-line"),h.appendChild(a);else for(h.classList.add("i-amphtml-loader"),c=0;3>c;c++){var k=a.createElement("div");k.classList.add("i-amphtml-loader-dot");h.appendChild(k)}b.appendChild(h);this.appendChild(b);this.va=b;this.bd=h}};b.prototype.Ua=function(a,b){var c=this;if(!a||!(0<this.T||this.D.get("render-start")))if((this.cd=
+a)||this.va)a&&!this.Kb()?this.cd=!1:K(this.ownerDocument.defaultView).mutate(function(){var a=c.cd;a&&!c.Kb()&&(a=!1);a&&c.He();if(c.va&&(c.va.classList.toggle("amp-hidden",!a),c.bd.classList.toggle("amp-active",a),!a&&b)){var d=c.va;c.va=null;c.bd=null;c.getResources().deferMutate(c,function(){var a=d;a.parentElement&&a.parentElement.removeChild(a)})}})};b.prototype.ie=function(){this.$c||(this.$c=new ig(this.ownerDocument.defaultView,this.getPriority()));return this.$c};b.prototype.getOverflowElement=
+function(){void 0===this.U&&(this.U=pc(this,"> [overflow]"))&&(this.U.hasAttribute("tabindex")||this.U.setAttribute("tabindex","0"),this.U.hasAttribute("role")||this.U.setAttribute("role","button"));return this.U};b.prototype.overflowCallback=function(a,b,c){var d=this;this.getOverflowElement();this.U?(this.U.classList.toggle("amp-visible",a),this.U.onclick=a?function(){d.getResources().changeSize(d,b,c);K(d.ownerDocument.defaultView).mutate(function(){d.overflowCallback(!1,b,c)})}:null):a&&r().warn("CustomElement",
+"Cannot resize element and overflow is not available",this)};a.BaseCustomElementClass=b;return a.BaseCustomElementClass}function qg(a,b,c){og(a)[b]=c;var d=vg(a,b),e="customElements"in a;e?a.customElements.define(b,d):a.document.registerElement(b,{prototype:d.prototype})};function xg(){var a=self,b=a.location.href;fa(b,"about:")||(p().development?yg(a.document,Kc.urls.cdn+"/v0/validator.js").then(function(){amp.validator.validateUrlAndLog(b,a.document,p().filter)}):p().examiner&&yg(a.document,Kc.urls.cdn+"/examiner.js"))}function yg(a,b){var c=a.createElement("script");c.src=b;b=Qd(c).then(function(){a.head.removeChild(c)},function(){});a.head.appendChild(c);return b};function zg(a){this.element=a;this.win=a.ownerDocument.defaultView;this.compileCallback()}zg.prototype.compileCallback=function(){};zg.prototype.render=function(){throw Error("Not implemented");};zg.prototype.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};function Ag(a){this.c=a;this.sb={};this.xd={};this.Ab=void 0}f=Ag.prototype;
+f.renderTemplate=function(a,b){return Bg(this,a).then(function(a){return a.render(b)})};f.renderTemplateArray=function(a,b){return 0==b.length?Promise.resolve([]):Bg(this,a).then(function(a){return b.map(function(b){return a.render(b)})})};f.findAndRenderTemplate=function(a,b){return this.renderTemplate(Cg(a),b)};f.findAndRenderTemplateArray=function(a,b){return this.renderTemplateArray(Cg(a),b)};f.hasTemplate=function(a){return!!Dg(a)};
+function Cg(a){var b=Dg(a);r().assert(b,"Template not found for %s",a);r().assert("TEMPLATE"==b.tagName,'Template element must be a "template" tag %s',b);return b}function Dg(a){var b=a.getAttribute("template");return b?a.ownerDocument.getElementById(b):pc(a,"> template")}
+function Bg(a,b){var c=b.__AMP_IMPL_;if(c)return Promise.resolve(c);var c=r().assert(b.getAttribute("type"),"Type must be specified: %s",b),d=b.__AMP_WAIT_;if(d)return d;d=Eg(a,b,c).then(function(a){var c=b.__AMP_IMPL_=new a(b);delete b.__AMP_WAIT_;return c});return b.__AMP_WAIT_=d}function Eg(a,b,c){if(a.sb[c])return a.sb[c];Fg(a,b,c);var d;b=new Promise(function(a){d=a});a.sb[c]=b;a.xd[c]=d;return b}
+function Fg(a,b,c){if(!a.Ab){a.Ab=a.c.Object.create(null);for(var d=a.c.document.querySelectorAll("script[custom-template]"),e=0;e<d.length;e++)a.Ab[d[e].getAttribute("custom-template")]=!0}r().assert(a.Ab[c],"Template must be declared for %s as <script custom-template=%s>",b,c)};var Gg={PRERENDER:"prerender",VISIBLE:"visible",HIDDEN:"hidden",PAUSED:"paused",INACTIVE:"inactive"};var Hg="__AMP_ACTION_MAP__"+Math.random(),Ig={form:["submit"]};function Jg(a,b,c,d,e,g){this.target=a;this.method=b;this.args=c;this.source=d;this.event=e;this.trust=g}Jg.prototype.satisfiesTrust=function(a){return sa(this.trust)?this.trust<a?(r().error("Action","Trust for '"+this.method+"' ("+this.trust+") "+("insufficient (min: "+a+").")),!1):!0:(x().error("Action","Invalid trust for '"+this.method+"': "+this.trust),!1)};
+function Kg(a,b){this.ampdoc=a;this.ya=b||a.getRootNode();this.le=z();this.ke=z();this.l=K(a.win);this.addEvent("tap");this.addEvent("submit");this.addEvent("change");this.addEvent("input-debounced")}f=Kg.prototype;f.adoptEmbedWindow=function(a){Ab(a,"action",new Kg(this.ampdoc,a.document))};
+f.addEvent=function(a){var b=this;if("tap"==a)this.ya.addEventListener("click",function(c){c.defaultPrevented||b.trigger(c.target,a,c,100)}),this.ya.addEventListener("keydown",function(c){var d=c.target,g=c.keyCode;13!=g&&32!=g||c.defaultPrevented||"button"!=d.getAttribute("role")||(c.preventDefault(),b.trigger(d,a,c,100))});else if("submit"==a)this.ya.addEventListener(a,function(c){b.trigger(c.target,a,c,100)});else if("change"==a)this.ya.addEventListener(a,function(c){var d=c.target;Lg(c);b.trigger(d,
+a,c,100)});else if("input-debounced"==a){var c=gf(this.ampdoc.win,function(c){b.trigger(c.target,a,c,100)});this.ya.addEventListener("input",function(a){var b=new Mg(a);Lg(b);c(b)})}};function Lg(a){var b=z(),c=a.target,d=c.tagName;if("INPUT"==d||"SELECT"==d){var e=c.getAttribute("type");b.value="range"==e?Number(c.value):c.value;"INPUT"==d&&("checkbox"==e||"radio"==e?b.checked=c.checked:"range"==e&&(b.min=Number(c.min),b.max=Number(c.max)))}0<Object.keys(b).length&&(a.detail=b)}
+f.addGlobalTarget=function(a,b){this.le[a]=b};f.addGlobalMethodHandler=function(a,b,c){this.ke[a]={handler:b,minTrust:void 0===c?100:c}};
+f.trigger=function(a,b,c,d){a:{for(;a;){var e=b,g;g=a;var h=g[Hg];if(void 0===h){h=null;if(g.hasAttribute("on")){var h=g.getAttribute("on"),k=Ng.bind(null,h,g),l=Og.bind(null,h,g),m=null,n=new Pg(h),q,w;do if(q=n.next(),q.type!=Qg&&(q.type!=Z||";"!=q.value))if(q.type==Rg||q.type==Sg){var v=q.value;l(n.next(),[Z],":");var t=[];do{var C=l(n.next(),[Rg,Sg]).value,y="activate",u=null;w=n.peek();if(w.type==Z&&"."==w.value&&(n.next(),y=l(n.next(),[Rg,Sg]).value||y,w=n.peek(),w.type==Z&&"("==w.value)){n.next();
+var B=n.peek();w=null;if(B.type==Tg)w=z(),u=n.next().value,w.__AMP_OBJECT_STRING__=u,l(n.next(),[Z],")");else{do{var u=n.next(),B=u.type,M=u.value;if(B!=Z||","!=M&&")"!=M)if(B==Rg||B==Sg){l(n.next(),[Z],"=");var u=l(n.next(!0),[Rg,Sg]),S=[u];if(u.type==Sg)for(B=n.peek();B.type==Z&&"."==B.value;B=n.peek())n.next(),u=l(n.next(!1),[Sg]),S.push(u);B=Ug(S);w||(w=z());w[M]=B;B=n.peek();k(B.type==Z&&(","==B.value||")"==B.value),"Expected either [,] or [)]")}else k(!1,"; unexpected token ["+(u.value||"")+
+"]")}while(u.type!=Z||")"!=u.value)}u=w}t.push({event:v,target:C,method:y,args:u,str:h});w=n.peek()}while(w.type==Z&&","==w.value&&n.next());m||(m=z());m[v]=t}else k(!1,"; unexpected token ["+(q.value||"")+"]");while(q.type!=Qg);h=m}g[Hg]=h}if(g=e=(g=h)?g[e]||null:null)if(g=!a.disabled)g=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector,g=!(g&&g.call(a,":disabled"));if(g){b={node:a,actionInfos:e};break a}a=a.parentElement}b=null}if(b)for(a=0;a<b.actionInfos.length;a++)e=
+b.actionInfos[a],g=Vg(e.args,c),(h=this.le[e.target])?(e=new Jg(this.ya,e.method,g,b.node,c,d),h(e)):(h=this.ya.getElementById(e.target))?Wg(this,h,e.method,g,b.node,c,d,e):Xg("target not found",e,h)};f.execute=function(a,b,c,d,e,g){Wg(this,a,b,c,d,e,g,null)};
+f.installActionHandler=function(a,b,c){c=void 0===c?100:c;var d=a.getAttribute("id")||"",e=a.tagName+"#"+d;d&&"amp-"==d.substring(0,4)||a.tagName.toLowerCase();if(a.__AMP_ACTION_HANDLER__)x().error("Action","Action handler already installed for "+a);else{var g=a.__AMP_ACTION_QUEUE__;a.__AMP_ACTION_HANDLER__={handler:b,minTrust:c};qa(g)&&I(a.ownerDocument.defaultView).delay(function(){g.forEach(function(a){try{a.satisfiesTrust(c)&&b(a)}catch(k){x().error("Action","Action execution failed:",a,k)}});
+a.__AMP_ACTION_QUEUE__.length=0},1)}};function Xg(a,b,c){r().assert(!1,"Action Error: "+a+(b?" in ["+b.str+"]":"")+(c?" on ["+c+"]":""))}
+function Wg(a,b,c,d,e,g,h,k){d=new Jg(b,c,d,e,g,h);var l=a.ke[d.method];if(l&&d.satisfiesTrust(l.minTrust))l.handler(d);else{var m=b.tagName.toLowerCase();if("amp-"==m.substring(0,4))b.enqueAction?b.enqueAction(d):Xg('Unrecognized AMP element "'+m+'". Did you forget to include it via <script custom-element>?',k,b);else{var n=Ig[m];(a=b.getAttribute("id")||"")&&"amp-"==a.substring(0,4)||n&&-1!=n.indexOf(c)?(c=b.__AMP_ACTION_HANDLER__)?(b=c.handler,d.satisfiesTrust(c.minTrust)&&b(d)):(b.__AMP_ACTION_QUEUE__=
+b.__AMP_ACTION_QUEUE__||[],b.__AMP_ACTION_QUEUE__.push(d)):Xg("Target element does not support provided action",k,b)}}}function Mg(a){this.detail=null;var b=this||z(),c;for(c in a)b[c]="function"===typeof a[c]?Yg:a[c]}function Yg(){}function Ug(a){return 0==a.length?null:1==a.length?a[0].value:{expression:a.map(function(a){return a.value}).join(".")}}
+function Vg(a,b){if(!a)return a;var c=z();b&&b.detail&&(c.event=b.detail);var d=z();Object.keys(a).forEach(function(b){var e=a[b];if("object"==typeof e&&e.expression){e=e.expression;if("."==e)e=c;else{for(var e=e.split("."),h=c,k=0;k<e.length;k++){var l=e[k];if(!l){h=void 0;break}if(!ra(h)||void 0===h[l]||!sd(h,l)){h=void 0;break}h=h[l]}e=h}var m=e,e=void 0===m?null:m}d[b]=e});return d}function Ng(a,b,c,d){return r().assert(c,"Invalid action definition in %s: [%s] %s",b,a,d||"")}
+function Og(a,b,c,d,e){void 0!==e?Ng(a,b,d.includes(c.type)&&c.value==e,"; expected ["+e+"]"):Ng(a,b,d.includes(c.type));return c}var Qg=1,Z=2,Rg=3,Sg=4,Tg=5;function Pg(a){this.w=a;this.Lc=-1}Pg.prototype.next=function(a){var b=Zg(this,a||!1);this.Lc=b.index;return b};Pg.prototype.peek=function(a){return Zg(this,a||!1)};
+function Zg(a,b){var c=a.Lc+1;if(c>=a.w.length)return{type:Qg,index:a.Lc};var d=a.w.charAt(c);if(-1!=" \t\n\r\f\v\u00a0\u2028\u2029".indexOf(d)){for(c++;c<a.w.length&&-1!=" \t\n\r\f\v\u00a0\u2028\u2029".indexOf(a.w.charAt(c));c++);if(c>=a.w.length)return{type:Qg,index:c};d=a.w.charAt(c)}if(b&&($g(d)||"."==d&&c+1<a.w.length&&$g(a.w[c+1]))){for(var e="."==d,g=c+1;g<a.w.length;g++){var h=a.w.charAt(g);if("."==h)e=!0;else if(!$g(h))break}a=a.w.substring(c,g);a=e?parseFloat(a):parseInt(a,10);c=g-1;return{type:Rg,
+value:a,index:c}}if(-1!=";:.()=,|!".indexOf(d))return{type:Z,value:d,index:c};if(-1!="\"'".indexOf(d)){for(var g=-1,k=c+1;k<a.w.length;k++)if(a.w.charAt(k)==d){g=k;break}if(-1==g)return{type:0,index:c};a=a.w.substring(c+1,g);c=g;return{type:Rg,value:a,index:c}}if("{"==d){for(var l=1,g=-1,d=c+1;d<a.w.length;d++){var m=a.w[d];"{"==m?l++:"}"==m&&l--;if(0>=l){g=d;break}}if(-1==g)return{type:0,index:c};a=a.w.substring(c,g+1);c=g;return{type:Tg,value:a,index:c}}for(g=c+1;g<a.w.length&&-1==" \t\n\r\f\x0B\u00a0\u2028\u2029;:.()=,|!\"'{}".indexOf(a.w.charAt(g));g++);
+a=a.w.substring(c,g);c=g-1;return!b||"true"!=a&&"false"!=a?$g(a.charAt(0))?{type:Rg,value:a,index:c}:{type:Sg,value:a,index:c}:{type:Rg,value:"true"==a,index:c}}function $g(a){return"0"<=a&&"9">=a};var ah={googleanalytics:"AMP_ECID_GOOGLE"};function bh(a){this.F=a;this.a=J(this.F)}function ch(a,b){var c=a.document.head.querySelector("meta[name=amp-google-client-id-api]");if(!c||!c.hasAttribute("content"))return null;var d=c.getAttribute("content").split(",");for(a=0;a<d.length;++a)if(ah[d[a]]===b)return d[a];return null}bh.prototype.isSupported=function(){var a=this;return this.a.isTrustedViewer().then(function(b){return b&&a.a.hasCapability("cid")})};
+bh.prototype.getScopedCid=function(a){return this.a.sendMessageAwaitResponse("cid",D({scope:a,clientIdApi:!!ch(this.F.win,a)}))};var dh={googleanalytics:"AIzaSyA65lEHUEizIsNtlbNo-l2K18dT680nsaM"};function eh(a){this.c=a;this.I=I(this.c);this.Dc={}}
+eh.prototype.getScopedCid=function(a,b,c){var d=this,e=fh(a);if(!e)return Promise.resolve(null);if(this.Dc[b])return this.Dc[b];var g=c||b,h;return this.Dc[b]=this.I.poll(200,function(){h=od(d.c,"AMP_TOKEN");return"$RETRIEVING"!==h}).then(function(){if("$OPT_OUT"===h)return null;if("$ERROR"===h)return od(d.c,g);h||gh(d,"$RETRIEVING",3E4);return hh(d,e,b,h).then(d.wf.bind(d,g)).catch(function(a){gh(d,"$ERROR",3E4);x().error("GoogleCidApi",a);return od(d.c,g)})})};
+function hh(a,b,c,d){c=D({originScope:c});d&&(c.securityToken=d);return a.I.timeoutPromise(3E4,H(a.c,"xhr").fetchJson(b,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:c}).then(function(a){return a.json()}))}eh.prototype.wf=function(a,b){if(b.optOut)return gh(this,"$OPT_OUT",31536E6),null;if(b.clientId)return gh(this,b.securityToken,31536E6),pd(this.c,a,b.clientId,this.c.Date.now()+31536E6),b.clientId;gh(this,"$ERROR",864E5);return od(this.c,a)};
+function fh(a){return(a=dh[a])?"https://ampcid.google.com/v1/publisher:getClientId?key="+a:null}function gh(a,b,c){if(b){var d=a.c,e=c;a=a.c.Date.now()+e;pd(d,"AMP_TOKEN",b,a)}};var ih=/^[a-zA-Z0-9-_.]+$/;function jh(a){this.ampdoc=a;this.vc=null;this.Fc=Object.create(null);this.$e=new bh(a);this.lf=new eh(a.win)}
+jh.prototype.get=function(a,b,c){var d=this;r().assert(ih.test(a.scope)&&ih.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 J(d.ampdoc).whenFirstVisible()}).then(function(){return kh(d.ampdoc)}).then(function(e){if(e)return"";var g=lh(d,a,c||b);return I(d.ampdoc.win).timeoutPromise(1E4,g,'Getting cid for "'+a.scope+'" timed out').catch(function(a){Ba(a)})})};jh.prototype.optOut=function(){return mh(this.ampdoc)};
+function lh(a,b,c){var d=b.scope,e=N(a.ampdoc.win.location.href);if(!jd(e)){var g=ch(a.ampdoc.win,d);return g?a.lf.getScopedCid(g,d,b.cookieName):nh(a,b,c)}return a.$e.isSupported().then(function(b){return b?a.$e.getScopedCid(d):oh(a,c).then(function(b){return H(a.ampdoc.win,"crypto").sha384Base64(b+ph(e)+d)})})}function mh(a){J(a).sendMessage("cidOptOut",{});return Ib(a,"storage").then(function(a){return a.set("amp-cid-optout",!0)})}
+function kh(a){return Ib(a,"storage").then(function(a){return a.get("amp-cid-optout").then(function(a){return!!a})}).catch(function(){return!1})}function qh(a,b,c){var d=Date.now()+31536E6;pd(a,b,c,d,{highestAvailableDomain:!0})}
+function nh(a,b,c){var d=a.ampdoc.win,e=b.scope,g=b.cookieName||e,h=od(d,g);if(!h&&!b.createCookieIfNotPresent)return Promise.resolve(null);if(a.Fc[e])return a.Fc[e];if(h)return/^amp-/.test(h)&&qh(d,g,h),Promise.resolve(h);var k=rh(d).then(function(a){return"amp-"+a});Promise.all([k,c]).then(function(a){var b=a[0],c=od(d,g);c||qh(d,g,b)});return a.Fc[e]=k}function ph(a){r().assert(jd(a),"Expected proxy origin %s",a.origin);return md(a)}
+function oh(a,b){if(a.vc)return a.vc;var c=a.ampdoc.win;return a.vc=sh(a.ampdoc).then(function(d){var e=!1,g;d&&!th(d)?(g=Promise.resolve(d.cid),uh(d)&&(e=!0)):(g=H(c,"crypto").sha384Base64(vh(c)),e=!0);e&&g.then(function(c){wh(a.ampdoc,b,c)});return g})}function wh(a,b,c){var d=a.win;rc(d)?xh(a,yh(c)):b.then(function(){try{d.localStorage.setItem("amp-cid",yh(c))}catch(e){}})}
+function xh(a,b){var c=J(a);return c.isTrustedViewer().then(function(a){if(a)return c.sendMessageAwaitResponse("cid",b).then(function(a){var b;if(b=a){var c;a:{try{c=td(a);break a}catch(k){}c=void 0}b=!c}return b?JSON.stringify(D({time:Date.now(),cid:a})):a})})}function yh(a){return JSON.stringify(D({time:Date.now(),cid:a}))}
+function sh(a){var b=a.win,c;try{c=b.localStorage.getItem("amp-cid")}catch(e){}var d=Promise.resolve(c);!c&&rc(b)&&(d=xh(a));return d.then(function(a){if(!a)return null;a=td(a);return{time:a.time,cid:a.cid}})}function th(a){var b=a.time,c=Date.now();return b+31536E6<c}function uh(a){a=a.time;var b=Date.now();return a+864E5<b}
+function vh(a){var b;a.crypto&&a.crypto.getRandomValues?(b=new Uint8Array(16),a.crypto.getRandomValues(b)):b=null;return b?b:String(a.location.href+Date.now()+a.Math.random()+a.screen.width+a.screen.height)}function rh(a){var b=vh(a);return"string"==typeof b?H(a,"crypto").sha384Base64(b):Promise.resolve(be(b).replace(/\.+$/,""))};function zh(a){this.c=a;this.Hf=(this.Da=a.crypto?a.crypto.subtle||a.crypto.webkitSubtle||null:null)&&a.crypto&&"webkitSubtle"in a.crypto;this.mb=null}f=zh.prototype;
+f.sha384=function(a){var b=this;"string"===typeof a&&(a=Ic(a));if(!this.Da||this.mb)return(this.mb||Ah(this)).then(function(b){return b.sha384(a)});try{return this.Da.digest({name:"SHA-384"},a).then(function(a){return new Uint8Array(a)},function(c){c.message&&0>c.message.indexOf("secure origin")&&x().error("Crypto","SubtleCrypto failed, fallback to closure lib.",c);return Ah(b).then(function(){return b.sha384(a)})})}catch(c){return x().error("Crypto","SubtleCrypto failed, fallback to closure lib.",
+c),Ah(this).then(function(){return b.sha384(a)})}};f.sha384Base64=function(a){return this.sha384(a).then(function(a){return be(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 Ah(a){return a.mb?a.mb:a.mb=Cc(a.c).loadExtension("amp-crypto-polyfill").then(function(){return H(a.c,"crypto-polyfill")})}f.isPkcsAvailable=function(){return!!this.Da&&!1!==this.c.isSecureContext};
+f.importPkcsKey=function(a){this.isPkcsAvailable();return this.Da.importKey("jwk",this.Hf?Hc(JSON.stringify(a)):a,{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},!0,["verify"])};f.verifyPkcs=function(a,b,c){this.isPkcsAvailable();return this.Da.verify({name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},a,b,c)};f.sha1=function(a){this.isPkcsAvailable();return this.Da.digest({name:"SHA-1"},a)};var Bh=["prefetch","preload","preconnect","dns-prefetch"];function Ch(a){this.F=a;this.Mc=null}Ch.prototype.get=function(){if(this.Mc)return this.Mc;var a=this.F,b=a.getUrl(),c=ld(b),d=a.getRootNode(),e=d&&d.AMP&&d.AMP.canonicalUrl;if(!e)var g=d.querySelector("link[rel=canonical]"),e=g?N(g.href).href:c;var h=String(Math.floor(1E4*a.win.Math.random())),k=Dh(a.win.document);return this.Mc={get sourceUrl(){return ld(a.getUrl())},canonicalUrl:e,pageViewId:h,linkRels:k}};
+function Dh(a){var b=z();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==Bh.indexOf(c)){var d=b[c];d?(qa(d)||(d=b[c]=[d]),d.push(a.href)):b[c]=a.href}}}(a))}}return b};function Eh(a){this.win=a;this.G=a.document;this.ua=Cd(this.G,"hidden",!0);void 0===this.G[this.ua]&&(this.ua=null);this.qc=Cd(this.G,"visibilityState",!0);void 0===this.G[this.qc]&&(this.qc=null);this.wb=new W;this.Wa=null;if(this.ua){this.Wa="visibilitychange";var b=this.ua.indexOf("Hidden");-1!=b&&(this.Wa=this.ua.substring(0,b)+"Visibilitychange")}this.Qd=this.ld.bind(this);this.Wa&&this.G.addEventListener(this.Wa,this.Qd);this.Fa=null}f=Eh.prototype;
+f.Ga=function(){this.Wa&&this.G.removeEventListener(this.Wa,this.Qd)};f.isHidden=function(){return this.ua?this.G[this.ua]:!1};f.getVisibilityState=function(){return this.qc?this.G[this.qc]:this.isHidden()?"hidden":"visible"};f.onVisibilityChanged=function(a){return this.wb.add(a)};f.ld=function(){this.wb.fire()};f.onBodyAvailable=function(a){var b=this.G;if(b.body)return a(),null;this.Fa||(this.Fa=new W,ec(b.documentElement,function(){return!!b.body},this.Mf.bind(this)));return this.Fa.add(a)};
+f.Mf=function(){this.Fa.fire();this.Fa.removeAll();this.Fa=null};function Fh(a,b){this.ampdoc=a;this.xa=b||a.getRootNode();this.o=Gc(this.ampdoc);this.a=J(this.ampdoc);this.C=zb(this.ampdoc,"history");var c=Dc(this.ampdoc.win);this.Ff=c.isIos()&&c.isSafari();this.Jb=rc(this.ampdoc.win)&&this.a.isOvertakeHistory();this.Qc=this.xa!=this.ampdoc.getRootNode();this.Ef="inabox"==p(this.ampdoc.win).runtime;this.ce=null;this.xc=this.xf.bind(this);this.xa.addEventListener("click",this.xc)}
+Fh.prototype.adoptEmbedWindow=function(a){Ab(a,"clickhandler",new Fh(this.ampdoc,a.document))};Fh.prototype.cleanup=function(){this.xc&&this.xa.removeEventListener("click",this.xc)};
+Fh.prototype.xf=function(a){if(!a.defaultPrevented){var b=jc(a.target,"A");if(b&&b.href){Fc(b).maybeExpandLink(b);var c=Gh(this,b.href);if(this.Jb){var d=c,e=b.ownerDocument.defaultView;"ftp:"==d.protocol?(qc(e,b.href,"_blank"),a.preventDefault()):(d=/^(https?|mailto):$/.test(d.protocol),this.Ff&&!d&&(qc(e,b.href,"_top"),a.preventDefault()))}a.defaultPrevented||Hh(this,a,b,c)}}};
+function Hh(a,b,c,d){var e=b.target.ownerDocument.defaultView,g=Gh(a,""),h=""+d.origin+d.pathname+d.search,k=""+g.origin+g.pathname+g.search;if(d.hash&&h==k){if(b.preventDefault(),!a.Qc){var l=d.hash.slice(1),m=null;if(l)var n=e.CSS&&e.CSS.escape?e.CSS.escape(l):dc(l),m=a.xa.getElementById(l)||a.xa.querySelector('a[name="'+n+'"]');d.hash!=g.hash?a.C.replaceStateForTarget(d.hash).then(function(){Ih(a,m,l)}):Ih(a,m,l)}}else if(a.Qc||a.Ef){var q=(c.getAttribute("target")||"").toLowerCase();"_top"!=q&&
+"_blank"!=q&&c.setAttribute("target","_blank")}}function Ih(a,b,c){b?(a.o.scrollIntoView(b),I(a.ampdoc.win).delay(function(){return a.o.scrollIntoView(b)},1)):x().warn("clickhandler","failed to find element with id="+c+" or a[name="+c+"]")}function Gh(a,b){if(a.Qc){var c=a.ce;if(!c){var d=a.xa.ownerDocument||a.xa,c=d.createElement("a");a.ce=c}return dd(c,b)}return N(b||a.ampdoc.win.location.href)};function Jh(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++)r().assert(!e[g].name||"__amp_source_origin"!=e[g].name,"Illegal input name, %s found: %s","__amp_source_origin",e[g]);var g=b.getAttribute("action"),h=b.getAttribute("action-xhr"),k=(b.getAttribute("method")||
+"GET").toUpperCase();h&&(hd(h,b,"action-xhr"),r().assert(!jd(h),"form action-xhr should not be on AMP CDN: %s",b),nd(h));g&&(hd(g,b,"action"),r().assert(!jd(g),"form action should not be on AMP CDN: %s",b),nd(g));if("GET"==k)r().assert(h||g,"form action-xhr or action attribute is required for method=GET: %s",b);else if("POST"==k){if(g){var l="form";r().error(l,"action attribute is invalid for method=POST: %s",b)}h||(a.preventDefault(),r().assert(!1,"Only XHR based (via action-xhr attribute) submissions are support for POST requests. %s",
+b))}(g=b.getAttribute("target"))?r().assert("_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(),xb(b,"action",!0).execute(b,"submit",null,b,a,100))}}};function Kh(a,b){this.F=a;this.I=I(a.win);this.b=b;this.h=0;this.Ba=[];this.m=[];this.b.setOnStackIndexUpdated(this.P.bind(this))}f=Kh.prototype;f.Ga=function(){this.b.Ga()};f.push=function(a){var b=this;return Lh(this,function(){return b.b.push().then(function(c){b.P(c);a&&(b.Ba[c]=a);return c})},"push")};f.pop=function(a){var b=this;return Lh(this,function(){return b.b.pop(a).then(function(a){b.P(a)})},"pop")};
+f.goBack=function(){var a=this;return Lh(this,function(){return 0>=a.h?Promise.resolve():a.b.pop(a.h).then(function(b){a.P(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.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.P=function(a){this.h=a;if(!(this.h>=this.Ba.length-1)){a=[];for(var b=this.Ba.length-1;b>this.h;b--)this.Ba[b]&&(a.push(this.Ba[b]),this.Ba[b]=void 0);this.Ba.splice(this.h+1);if(0<a.length)for(b=0;b<a.length;b++)this.I.delay(a[b],1)}};function Lh(a,b,c){var d,e,g=new Promise(function(a,b){d=a;e=b}),h=Error("history trace for "+c+": ");a.m.push({callback:b,resolve:d,reject:e,trace:h});1==a.m.length&&Mh(a);return g}
+function Mh(a){if(0!=a.m.length){var b=a.m[0],c;try{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.m.splice(0,1);Mh(a)})}}
+function Nh(a){var b=this;this.win=a;this.I=I(a);a=this.win.history;this.Ca=a.length-1;a.state&&void 0!==a.state["AMP.History"]&&(this.Ca=Math.min(a.state["AMP.History"],this.Ca));this.h=this.Ca;this.P=null;this.Qe="state"in a;this.Ea=Oh(this,this.h);var c,d;a.pushState&&a.replaceState?(this.Vb=a.originalPushState||a.pushState.bind(a),this.kb=a.originalReplaceState||a.replaceState.bind(a),c=function(a,c,d){b.Ea=a;b.Vb(a,c,d||null)},d=function(a,c,d){b.Ea=a;void 0!==d?b.kb(a,c,d):b.kb(a,c)},a.originalPushState||
+(a.originalPushState=this.Vb),a.originalReplaceState||(a.originalReplaceState=this.kb)):(c=function(a){b.Ea=a},d=function(a){b.Ea=a});this.Wf=c;this.cc=d;try{this.cc(Oh(this,this.h,!0))}catch(e){x().error("History","Initial replaceState failed: "+e.message)}a.pushState=this.me.bind(this);a.replaceState=this.ne.bind(this);this.Lb=null;this.Fe=function(){if(b.Lb!=b.win.location.hash){b.Lb=b.win.location.hash;var a=b.Qe?b.win.history.state:b.Ea,c=a?a["AMP.History"]:void 0,d=b.h,k=b.sc;b.sc=void 0;d>
+b.win.history.length-2&&(d=b.win.history.length-2,b.qa(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.cc(a,void 0,void 0);d!=b.h&&b.qa(d);d<b.Ca&&(b.Ca=d);k&&k.resolve()}};this.win.addEventListener("popstate",this.Fe)}f=Nh.prototype;f.Ga=function(){this.Vb&&(this.win.history.pushState=this.Vb);this.kb&&(this.win.history.replaceState=this.kb);this.win.removeEventListener("popstate",this.Fe)};
+function Oh(a,b,c){a=z(c?a.Qe?a.win.history.state:a.Ea:void 0);a["AMP.History"]=b;return a}f.setOnStackIndexUpdated=function(a){this.P=a};f.push=function(){var a=this;return Ph(this,function(){a.me();return Promise.resolve(a.h)})};f.pop=function(a){var b=this;a=Math.max(a,this.Ca);return Ph(this,function(){b.Lb=null;return Qh(b,b.h-a+1)})};f.backTo=function(a){var b=this;a=Math.max(a,this.Ca);return Ph(this,function(){return Qh(b,b.h-a)})};function Ph(a,b){return a.sc?a.sc.promise.then(b,b):b()}
+function Rh(a){var b,c,d=a.I.timeoutPromise(500,new Promise(function(a,d){b=a;c=d}));a.sc={promise:d,resolve:b,reject:c};return d}function Qh(a,b){if(0>=b)return Promise.resolve(a.h);a.Ea=Oh(a,a.h-b);var c=Rh(a);a.win.history.go(-b);return c.then(function(){return Promise.resolve(a.h)})}f.me=function(a,b,c){a||(a={});var d=this.h+1;a["AMP.History"]=d;this.Wf(a,b,c);d!=this.win.history.length-1&&(d=this.win.history.length-1,a["AMP.History"]=d,this.cc(a));this.qa(d)};
+f.replaceStateForTarget=function(a){var b=this;Ph(this,function(){b.Lb=a;b.win.location.replace(a);b.ne();return Promise.resolve()})};f.ne=function(a,b,c){a||(a={});var d=Math.min(this.h,this.win.history.length-1);a["AMP.History"]=d;this.cc(a,b,c);this.qa(d)};f.qa=function(a){a=Math.min(a,this.win.history.length-1);this.h!=a&&(this.h=a,this.P&&this.P(a))};f.getFragment=function(){var a=this.win.location.hash,a=a.substr(1);return Promise.resolve(a)};
+f.updateFragment=function(a){this.win.history.replaceState&&this.win.history.replaceState({},"","#"+a);return Promise.resolve()};function Sh(a,b){this.win=a;this.a=b;this.h=0;this.P=null;this.mg=this.a.onMessage("historyPopped",this.Nf.bind(this))}f=Sh.prototype;f.replaceStateForTarget=function(a){this.win.location.replace(a)};f.Ga=function(){this.mg()};f.setOnStackIndexUpdated=function(a){this.P=a};
+f.push=function(){var a=this;this.qa(this.h+1);return this.a.sendMessageAwaitResponse("pushHistory",D({stackIndex:this.h})).then(function(){return a.h})};f.pop=function(a){var b=this;return a>this.h?Promise.resolve(this.h):this.a.sendMessageAwaitResponse("popHistory",D({stackIndex:this.h})).then(function(){b.qa(a-1);return b.h})};f.Nf=function(a){this.qa(a.newStackIndex)};f.qa=function(a){this.h!=a&&(this.h=a,this.P&&this.P(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",D({fragment:a}),!0):Promise.resolve()};
+function Th(a){var b=J(a);b.isOvertakeHistory()||a.win.AMP_TEST_IFRAME?b=new Sh(a.win,b):(F(a.win,"global-history-binding",Nh),b=H(a.win,"global-history-binding"));return new Kh(a,b)};function Uh(a){this.N=a.navigator}f=Uh.prototype;f.isAndroid=function(){return/Android/i.test(this.N.userAgent)};f.isIos=function(){return/iPhone|iPad|iPod/i.test(this.N.userAgent)};f.isSafari=function(){return/Safari/i.test(this.N.userAgent)&&!this.isChrome()&&!this.isIe()&&!this.isEdge()&&!this.isFirefox()};f.isChrome=function(){return/Chrome|CriOS/i.test(this.N.userAgent)&&!this.isEdge()};f.isFirefox=function(){return/Firefox|FxiOS/i.test(this.N.userAgent)&&!this.isEdge()};f.isIe=function(){return/Trident|MSIE|IEMobile/i.test(this.N.userAgent)};
+f.isEdge=function(){return/Edge/i.test(this.N.userAgent)};f.isWebKit=function(){return/WebKit/i.test(this.N.userAgent)&&!this.isEdge()};f.isStandalone=function(){return this.isIos()&&this.N.standalone};
+f.getMajorVersion=function(){return this.isSafari()?this.isIos()?this.getIosMajorVersion()||0:Vh(this,/\sVersion\/(\d+)/,1):this.isChrome()?Vh(this,/(Chrome|CriOS)\/(\d+)/,2):this.isFirefox()?Vh(this,/(Firefox|FxiOS)\/(\d+)/,2):this.isIe()?Vh(this,/MSIE\s(\d+)/,1):this.isEdge()?Vh(this,/Edge\/(\d+)/,1):0};function Vh(a,b,c){if(!a.N.userAgent)return 0;a=a.N.userAgent.match(b);return!a||c>=a.length?0:parseInt(a[c],10)}
+f.getIosVersionString=function(){if(!this.N.userAgent||!this.isIos())return"";var a=this.N.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 Wh(a){this.j=a;this.Ue=Object.create(null)}Wh.prototype.addTransition=function(a,b,c){var d=a+"|"+b;this.Ue[d]=c};Wh.prototype.setState=function(a){var b=this.j;this.j=a;(a=this.Ue[b+"|"+a])&&a()};function Xh(a,b){var c=this;this.win=a;this.Vf=b;this.C=[];this.Ce=new W;this.Zd=function(a){a.target&&Yh(c,a.target)};this.Yd=function(){I(a).delay(function(){Yh(c,c.win.document.activeElement)},500)};this.win.document.addEventListener("focus",this.Zd,!0);this.win.addEventListener("blur",this.Yd)}f=Xh.prototype;f.Ga=function(){this.win.document.removeEventListener("focus",this.Zd,!0);this.win.removeEventListener("blur",this.Yd)};f.onFocus=function(a){return this.Ce.add(a)};
+function Yh(a,b){var c=Date.now();0==a.C.length||a.C[a.C.length-1].el!=b?a.C.push({el:b,time:c}):a.C[a.C.length-1].time=c;a.purgeBefore(c-a.Vf);a.Ce.fire(b)}f.getLast=function(){return 0==this.C.length?null:this.C[this.C.length-1].el};f.purgeBefore=function(a){for(var b=this.C.length-1,c=0;c<this.C.length;c++)if(this.C[c].time>=a){b=c-1;break}-1!=b&&this.C.splice(0,b+1)};
+f.hasDescendantsOf=function(a){this.win.document.activeElement&&Yh(this,this.win.document.activeElement);for(var b=0;b<this.C.length;b++)if(a.contains(this.C[b].el))return!0;return!1};function Zh(a,b,c){var d=this;this.I=I(a);this.yf=b;this.nf=c||0;this.ca=-1;this.kd=0;this.oa=!1;this.hf=function(){return d.Xb()}}Zh.prototype.isPending=function(){return-1!=this.ca};Zh.prototype.schedule=function(a){a=a||this.nf;this.oa&&10>a&&(a=10);var b=Date.now()+a;return!this.isPending()||-10>b-this.kd?(this.cancel(),this.kd=b,this.ca=this.I.delay(this.hf,a),!0):!1};Zh.prototype.Xb=function(){this.ca=-1;this.kd=0;this.oa=!0;this.yf();this.oa=!1};
+Zh.prototype.cancel=function(){this.isPending()&&(this.I.cancel(this.ca),this.ca=-1)};function $h(){this.u=[];this.rb={};this.se=this.te=0}f=$h.prototype;f.getSize=function(){return this.u.length};f.getLastEnqueueTime=function(){return this.te};f.getLastDequeueTime=function(){return this.se};f.getTaskById=function(a){return this.rb[a]||null};f.enqueue=function(a){this.u.push(a);this.rb[a.id]=a;this.te=Date.now()};f.dequeue=function(a){var b=this.removeAtIndex(a,this.u.indexOf(this.rb[a.id]));if(!b)return!1;this.se=Date.now();return!0};
+f.peek=function(a){for(var b=1E6,c=null,d=0;d<this.u.length;d++){var e=this.u[d],g=a(e);g<b&&(b=g,c=e)}return c};f.forEach=function(a){this.u.forEach(a)};f.removeAtIndex=function(a,b){var c=this.rb[a.id];if(!c||this.u[b]!=c)return!1;this.u.splice(b,1);delete this.rb[a.id];return!0};f.purge=function(a){for(var b=this.u.length;b--;)a(this.u[b])&&this.removeAtIndex(this.u[b],b)};function ai(a){var b;return!(b||Dc(a)).isIe()||bi(a)?null:new Promise(function(b){var c=Date.now()+2E3,e=a.setInterval(function(){var d=Date.now(),h=bi(a);if(h||d>c)a.clearInterval(e),b(),h||x().error("ie-media-bug","IE media never resolved")},10)})}function bi(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 ci(a){this.win=a;this.Od=this.Of.bind(this);this.Pd=this.Pf.bind(this);this.yc=this.Nd=this.zc=null;this.Jc="ontouchstart"in a||void 0!==a.navigator.maxTouchPoints&&0<a.navigator.maxTouchPoints||void 0!==a.DocumentTouch;this.ib=!1;this.win.document.addEventListener("keydown",this.Od);this.win.document.addEventListener("mousedown",this.Pd);this.Ic=!0;this.Ae=0;this.kg=new W;this.Be=new W;this.Xc=new W;this.Jc&&(this.Ic=!this.Jc,this.zc=this.Qf.bind(this),Od(a.document,"mousemove",this.zc))}
+f=ci.prototype;f.Ga=function(){this.win.document.removeEventListener("keydown",this.Od);this.win.document.removeEventListener("mousedown",this.Pd)};f.isTouchDetected=function(){return this.Jc};f.onTouchDetected=function(a,b){b&&a(this.isTouchDetected());return this.kg.add(a)};f.isMouseDetected=function(){return this.Ic};f.onMouseDetected=function(a,b){b&&a(this.isMouseDetected());return this.Be.add(a)};f.isKeyboardActive=function(){return this.ib};
+f.onKeyboardStateChanged=function(a,b){b&&a(this.isKeyboardActive());return this.Xc.add(a)};f.Of=function(a){this.ib||a.defaultPrevented||(a=a.target,a&&("INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"OPTION"==a.tagName||a.hasAttribute("contenteditable")))||(this.ib=!0,this.Xc.fire(!0))};f.Pf=function(){this.ib&&(this.ib=!1,this.Xc.fire(!1))};
+f.Qf=function(a){var b=this;if(a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents)this.ze();else{this.yc||(this.yc=this.Lf.bind(this),this.Nd=this.ze.bind(this));var c,d=Pd(this.win.document,function(a){c=a});return I(this.win).timeoutPromise(300,d).then(this.Nd,function(){c&&c();b.yc()})}};f.Lf=function(){this.Ic=!0;this.Be.fire(!0)};f.ze=function(){this.Ae++;3>=this.Ae&&Od(this.win.document,"mousemove",this.zc)};function si(a){var b=this;this.ampdoc=a;this.win=a.win;this.a=J(a);this.aa=this.a.isRuntimeOn();this.Cf=!1;this.xe=this.win.devicePixelRatio||1;this.dg=0;this.g=[];this.kf=this.Gd=0;this.Z=this.a.isVisible();this.na=this.a.getPrerenderSize();this.bb=!1;this.he=!0;this.Hd=!1;this.ka=-1;this.Sa=!0;this.ob=-1;this.Zc=this.Nb=0;this.Xb=new Zh(this.win,function(){return b.doPass()});this.Ke=new Zh(this.win,function(){b.Sa=!0;b.schedulePass()});this.da=new $h;this.m=new $h;this.Rd=function(a){var c=b.o.getRect(),
+e=a.resource.getLayoutBox(),c=Math.floor((e.top-c.top)/c.height);Math.sign(c)!=b.getScrollDirection()&&(c*=2);c=Math.abs(c);return 10*a.priority+c};this.V=[];this.Ia=[];this.ea=[];this.Pc=!1;this.o=Gc(this.ampdoc);this.l=K(this.win);this.Fd=new Xh(this.win,6E4);this.Ed=!1;this.ec=0;this.Na=!1;this.bf=new Wh(this.a.getVisibilityState());ti(this,this.bf);this.o.onChanged(function(a){b.Nb=Date.now();b.Zc=a.velocity;b.Sa=b.Sa||a.relayoutAll;b.schedulePass()});this.o.onScroll(function(){b.Nb=Date.now()});
+this.a.onVisibilityChanged(function(){-1==b.ka&&b.a.isVisible()&&(b.ka=Date.now());b.schedulePass()});this.a.onRuntimeState(function(a){b.aa=a;b.schedulePass(1)});this.Fd.onFocus(function(a){ui(b,a)});this.schedulePass();this.ampdoc.whenReady().then(function(){function a(){return b.Ke.schedule()}b.bb=!0;vi(b);b.ea=null;var d=ai(b.win);d?d.then(a):a();wi(b);Promise.race([Qd(b.win),I(b.win).promise(3100)]).then(a);b.win.document.fonts&&"loaded"!=b.win.document.fonts.status&&b.win.document.fonts.ready.then(a)})}
+f=si.prototype;f.get=function(){return this.g.slice(0)};f.isRuntimeOn=function(){return this.aa};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.g.forEach(function(d){d.hasBeenMeasured()||d.hostWin!=a||d.hasOwner()||b.push(xi(c,d))});return Promise.all(b)}).then(function(){return c.g.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 wi(a){F(a.win,"input",ci);var b=H(a.win,"input");b.onTouchDetected(function(b){yi(a,"amp-mode-touch",b)},!0);b.onMouseDetected(function(b){yi(a,"amp-mode-mouse",b)},!0);b.onKeyboardStateChanged(function(b){yi(a,"amp-mode-keyboard-active",b)},!0)}
+function yi(a,b,c){a.ampdoc.whenBodyAvailable().then(function(d){a.l.mutate(function(){d.classList.toggle(b,c)})})}f.getMaxDpr=function(){return this.xe};f.getDpr=function(){return this.xe};f.getResourceForElement=function(a){return Y(a)};f.getResourceForElementOptional=function(a){return Y(a)};f.getElementLayoutBox=function(a){var b=this,c=this.getResourceForElementOptional(a);return c?xi(this,c):this.l.measurePromise(function(){return b.getViewport().getLayoutRect(a)})};
+function xi(a,b){return b.hasBeenMeasured()?Promise.resolve(b.getPageLayoutBox()):a.l.measurePromise(function(){b.measure();return b.getPageLayoutBox()})}f.getViewport=function(){return this.o};f.getScrollDirection=function(){return Math.sign(this.Zc)||1};f.add=function(a){this.Gd++;1==this.Gd&&this.o.ensureReadyForElements();var b=Y(a);b&&0!=b.getState()&&!a.reconstructWhenReparented()?b.requestMeasure():b=new kg(++this.dg,a,this);this.g.push(b);this.Ke.schedule(1E3)};
+f.grantBuildPermission=function(){return 20>this.kf++||this.a.hasBeenVisible()};function zi(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?!0:d;if(a.aa||a.Cf)a.bb?Ai(a,b,d):b.isBuilt()||b.isBuilding()||c&&a.ea.includes(b)||(a.ea.push(b),vi(a,d))}
+function vi(a,b){if(!a.Pc)try{a.Pc=!0;b=void 0===b?!0:b;b=void 0===b?!0:b;for(var c=0;c<a.ea.length;c++){var d=a.ea[c],e;if(!(e=a.bb))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.ea.splice(c--,1),Ai(a,d,b))}}finally{a.Pc=!1}}function Ai(a,b,c){(b=b.build())&&c&&b.then(function(){return a.schedulePass()})}f.remove=function(a){(a=Y(a))&&Bi(this,a)};
+function Bi(a,b,c){var d=a.g.indexOf(b);-1!=d&&a.g.splice(d,1);b.pauseOnRemove();c&&b.disconnect();Ci(a,b,!0)}f.removeForChildWindow=function(a){var b=this,c=this.g.filter(function(b){return b.hostWin==a});c.forEach(function(a){return Bi(b,a,!0)})};f.upgraded=function(a){a=Y(a);zi(this,a)};f.setOwner=function(a,b){b.contains(a);Y(a)&&Y(a).updateOwner(b);a.__AMP__OWNER=b;a=a.getElementsByClassName("i-amphtml-element");for(b=0;b<a.length;b++){var c=a[b];Y(c)&&Y(c).updateOwner(void 0)}};
+f.requireLayout=function(a,b){var c=this,d=[];Di(this,a,function(a){4!=a.getState()&&(3!=a.getState()?d.push(a.whenBuilt().then(function(){a.measure();if(a.isDisplayed())return Ei(c,a,!0,b,!0),a.loadedOnce()})):a.isDisplayed()&&d.push(a.loadedOnce()))});return Promise.all(d)};f.scheduleLayout=function(a,b){Fi(this,Y(a),!0,Gi(b))};f.schedulePause=function(a,b){var c=Y(a);b=Gi(b);Hi(this,c,b,function(a){a.pause()})};f.scheduleResume=function(a,b){a=Y(a);b=Gi(b);Hi(this,a,b,function(a){a.resume()})};
+f.scheduleUnlayout=function(a,b){a=Y(a);b=Gi(b);Hi(this,a,b,function(a){a.unlayout()})};f.schedulePreload=function(a,b){Fi(this,Y(a),!1,Gi(b))};f.updatePriority=function(a,b){var c=Y(a);c.updatePriority(b);this.m.forEach(function(a){a.resource==c&&(a.priority=b)});this.schedulePass()};f.updateInViewport=function(a,b,c){Ii(this,Y(a),Gi(b),c)};f.changeSize=function(a,b,c,d,e){Ji(this,Y(a),b,c,e,!0,d)};
+f.attemptChangeSize=function(a,b,c,d){var e=this;return new Promise(function(g,h){Ji(e,Y(a),b,c,d,!1,function(a){a?g():h(Error("changeSize attempt denied"))})})};f.deferMutate=function(a,b){Y(a);this.Ia.push(b);this.schedulePassVsync()};
+f.mutateElement=function(a,b){function c(){var b=d.o.getLayoutRect(a);return 0!=b.width&&0!=b.height?b.top:-1}var d=this,e=-1;return this.l.runPromise({measure:function(){e=c()},mutate:function(){b();a.classList.contains("i-amphtml-element")&&Y(a).requestMeasure();for(var g=a.getElementsByClassName("i-amphtml-element"),h=0;h<g.length;h++)Y(g[h]).requestMeasure();-1!=e&&Ki(d,e);d.schedulePass(70);d.l.measure(function(){var a=c();-1!=a&&a!=e&&(Ki(d,a),d.schedulePass(70));d.Na=!0})}})};
+f.attemptCollapse=function(a){var b=this;return new Promise(function(c,d){Ji(b,Y(a),0,0,void 0,!1,function(b){b?(Y(a).completeCollapse(),c()):d(Error("collapse attempt denied"))})})};f.collapseElement=function(a){var b=this.o.getLayoutRect(a);a=Y(a);0!=b.width&&0!=b.height&&Ki(this,b.top);a.completeCollapse();this.schedulePass(70)};f.expandElement=function(a){var b=Y(a);b.completeExpand();(b=b.getOwner())&&b.expandedCallback(a);this.schedulePass(70)};f.schedulePass=function(a,b){b&&(this.Sa=!0);return this.Xb.schedule(a)};
+f.schedulePassVsync=function(){var a=this;this.Ed||(this.Ed=!0,this.l.mutate(function(){return a.doPass()}))};f.ampInitComplete=function(){this.Hd=!0;this.schedulePass()};
+f.doPass=function(){var a=this;if(this.aa){this.Z=this.a.isVisible();this.na=this.a.getPrerenderSize();var b=this.bb&&this.he;if(b){this.he=!1;var c=this.win.document;this.a.sendMessage("documentLoaded",D({title:c.title,sourceUrl:ld(this.ampdoc.getUrl()),serverLayout:c.documentElement.hasAttribute("i-amphtml-element"),linkRels:Ac(this.ampdoc).linkRels}),!0);this.ec=this.o.getScrollHeight();this.a.sendMessage("documentHeight",D({height:this.ec}),!0)}var d=this.o.getSize();this.Xb.cancel();this.Ed=
+!1;this.bf.setState(this.a.getVisibilityState());this.bb&&this.Hd&&!this.ampdoc.signals().get("ready-scan")&&this.ampdoc.signals().signal("ready-scan");this.Na&&(this.Na=!1,this.l.measure(function(){var b=a.o.getScrollHeight();b!=a.ec&&(a.a.sendMessage("documentHeight",D({height:b}),!0),a.ec=b)}))}};
+function Li(a){var b=Date.now(),c=a.o.getRect(),d=a.o.getScrollHeight(),e=c.height/10,g=c.height/10,h=d-1E3,k=Math.max(.85*d,h),l=.01>Math.abs(a.Zc)&&500<b-a.Nb||1E3<b-a.Nb;if(0<a.Ia.length){var m=a.Ia;a.Ia=[];for(b=0;b<m.length;b++)m[b]();a.Na=!0}if(0<a.V.length){var n=a.V;a.V=[];for(var q=-1,w=[],v=0,b=0;b<n.length;b++){var t=n[b],C=t.resource,y=C.getLayoutBox(),u=C.getInitialLayoutBox(),B=0,M=0,S=y.top,na=y.bottom,P=void 0;if(t.marginChange){var P=t.marginChange.newMargins,Q=t.marginChange.currentMargins;
+void 0!=P.top&&(B=P.top-Q.top);void 0!=P.bottom&&(M=P.bottom-Q.bottom);B&&(S=y.top-Q.top);M&&(na=y.bottom+Q.bottom)}var A=t.newHeight-y.height,E=!1;if(0!=A||0!=B||0!=M)if(t.force||!a.Z)E=!0;else if(a.Fd.hasDescendantsOf(C.element))E=!0;else if(S>=c.bottom-g||0==B&&y.bottom+Math.min(A,0)>=c.bottom-g)E=!0;else if(1<c.top&&na<=c.top+e){if(0>A&&c.top+v<-A)continue;l?(v+=A,w.push(t)):a.V.push(t);continue}else u.bottom>=k||y.bottom>=k?E=!0:0>A||0>B||0>M||t.resource.overflowCallback(!0,t.newHeight,t.newWidth,
+P);E&&(0<=y.top&&(q=-1==q?y.top:Math.min(q,y.top)),t.resource.changeSize(t.newHeight,t.newWidth,P),t.resource.overflowCallback(!1,t.newHeight,t.newWidth,P),a.Na=!0);t.callback&&t.callback(E)}-1!=q&&Ki(a,q);0<w.length&&a.l.run({measure:function(b){b.scrollHeight=a.o.getScrollHeight();b.scrollTop=a.o.getScrollTop()},mutate:function(b){var c=-1;w.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)});-1!=c&&Ki(a,c);var d=a.o.getScrollHeight();d!=b.scrollHeight&&a.o.setScrollTop(b.scrollTop+(d-b.scrollHeight));a.Na=!0}},{})}}function Ki(a,b){a.ob=-1==a.ob?b:Math.min(b,a.ob)}function ui(a,b){var c=hc(b,function(a){return!!Y(a)});if(c){b=Y(c);var d=b.getPendingChangeSize();void 0!==d&&Ji(a,b,d.height,d.width,d.margins,!0)}}
+function Mi(a){var b=Date.now(),c=a.Sa;a.Sa=!1;var d=a.ob;a.ob=-1;for(var e=0,g=0,h=0;h<a.g.length;h++){var k=a.g[h];0!=k.getState()||k.isBlacklisted()||zi(a,k,!0,!1);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.g.length;h++)if(k=a.g[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.l.mutate(function(){l.forEach(function(b){b.unload();Ci(a,b)})});var d=a.o.getRect(),n;n=a.Z?ze(d,.25,2):0<a.na?ze(d,0,a.na-1):null;for(var q=a.Z?ze(d,.25,.25):d,d=0;d<a.g.length;d++)if(h=a.g[d],0!=h.getState()&&!h.hasOwner()){var w=a.Z&&h.isDisplayed()&&h.overlaps(q);h.setInViewport(w)}if(n)for(d=0;d<a.g.length;d++)h=a.g[d],2!=h.getState()||h.hasOwner()||h.isDisplayed()&&h.overlaps(n)&&Ei(a,h,!0);if(a.Z&&0==a.da.getSize()&&0==a.m.getSize()&&b>a.da.getLastDequeueTime()+
+5E3)for(var v=0,b=0;b<a.g.length&&!(d=a.g[b],2==d.getState()&&!d.hasOwner()&&d.isDisplayed()&&(Ei(a,d,!1),v++,4<=v));b++);}function Ni(a,b){var c=Date.now();if(0==a.da.getSize()){if(-1===a.ka)return 0;var d=1E3*b.priority;return Math.max(d-(c-a.ka),0)}var e=0;a.da.forEach(function(a){e=Math.max(e,Math.max(1E3*(b.priority-a.priority),0)-(c-a.startTime))});return e}f.ag=function(a){this.m.getTaskById(a.id)||this.m.enqueue(a)};
+f.Re=function(a,b,c){this.da.dequeue(a);this.schedulePass(1E3);if(!b)return x().info("Resources","task failed:",a.id,a.resource.debugid,c),Promise.reject(c)};
+function Ji(a,b,c,d,e,g,h){b.hasBeenMeasured()&&!e?Oi(a,b,c,d,void 0,g,h):a.l.measure(function(){b.hasBeenMeasured()||b.measure();var k;e?(k=a.win.getComputedStyle(b.element)||z(),k={top:parseInt(k.marginTop,10)||0,right:parseInt(k.marginRight,10)||0,bottom:parseInt(k.marginBottom,10)||0,left:parseInt(k.marginLeft,10)||0},k={newMargins:e,currentMargins:k}):k=void 0;var l=k;Oi(a,b,c,d,l,g,h)})}
+function Oi(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))var k=e.currentMargins,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.V.length;l++)if(a.V[l].resource==b){k=a.V[l];break}k?(k.newHeight=c,k.newWidth=d,k.marginChange=e,k.force=g||k.force,k.callback=h):a.V.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 Pi(a,b,c){return 0!=b.getState()&&b.isDisplayed()&&(a.Z||"prerender"==a.a.getVisibilityState()&&b.prerenderAllowed())&&(c||b.isInViewport()||b.renderOutsideViewport())?!0:!1}
+function Ei(a,b,c,d,e){0!=b.getState()&&b.isDisplayed();var g=e||!1;Pi(a,b,g)&&(c?a.za(b,"L",0,d||0,g,b.startLayout.bind(b)):a.za(b,"P",2,d||0,g,b.startLayout.bind(b)))}function Fi(a,b,c,d){Hi(a,b,d,function(d){0==d.getState()?d.whenBuilt().then(function(){Qi(a,d,c,b.getPriority())}):Qi(a,d,c,b.getPriority())})}function Qi(a,b,c,d){b.measure();2==b.getState()&&b.isDisplayed()&&Ei(a,b,c,d)}
+f.za=function(a,b,c,d,e,g){b=a.getTaskId(b);a={id:b,resource:a,priority:Math.max(a.getPriority(),d)+c,forceOutsideViewport:e,callback:g,scheduleTime:Date.now(),startTime:0,promise:null};var h=this.m.getTaskById(b);if(!h||a.priority<h.priority)h&&this.m.dequeue(h),this.m.enqueue(a),this.schedulePass(Ni(this,a));a.resource.layoutScheduled()};function Ii(a,b,c,d){var e=b.isInViewport()&&d;Hi(a,b,c,function(a){a.setInViewport(e)})}
+function Hi(a,b,c,d){c.forEach(function(c){b.element.contains(c);Di(a,c,d)})}function Di(a,b,c){if(b.classList.contains("i-amphtml-element"))c(Y(b)),(b=b.getPlaceholder())&&Di(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(Y(e)))}}}
+function ti(a,b){function c(){a.g.forEach(function(a){return a.resume()});h()}function d(){a.g.forEach(function(b){b.unload();Ci(a,b)});a.unselectText()}function e(){a.g.forEach(function(a){return a.pause()})}function g(){}function h(){var b=a.o.getSize();if(0<b.height&&0<b.width){(0<a.Ia.length||0<a.V.length)&&Li(a);Mi(a);for(var b=Date.now(),c=-1,d=a.m.peek(a.Rd);d;){c=Ni(a,d);if(16<c)break;a.m.dequeue(d);(c=a.da.getTaskById(d.id))?(d=a.ag.bind(a,d),c.promise.then(d,d)):(d.resource.measure(),Pi(a,
+d.resource,d.forceOutsideViewport)?(d.promise=d.callback(),d.startTime=b,a.da.enqueue(d),d.promise.then(a.Re.bind(a,d,!0),a.Re.bind(a,d,!1)).catch(Vd)):d.resource.layoutCanceled());d=a.m.peek(a.Rd);c=-1}0<=c?b=c:(b=2*(b-a.da.getLastDequeueTime()),b=Math.max(Math.min(3E4,b),5E3));(0<a.Ia.length||0<a.V.length)&&(b=Math.min(b,500));a.Z&&a.schedulePass(b)}}var k="prerender",l="hidden",m="paused",n="inactive";b.addTransition(k,k,h);b.addTransition(k,"visible",h);b.addTransition(k,l,h);b.addTransition(k,
+n,h);b.addTransition(k,m,h);b.addTransition("visible","visible",h);b.addTransition("visible",l,h);b.addTransition("visible",n,d);b.addTransition("visible",m,e);b.addTransition(l,"visible",h);b.addTransition(l,l,h);b.addTransition(l,n,d);b.addTransition(l,m,e);b.addTransition(n,"visible",c);b.addTransition(n,l,c);b.addTransition(n,n,g);b.addTransition(n,m,h);b.addTransition(m,"visible",c);b.addTransition(m,l,h);b.addTransition(m,n,d);b.addTransition(m,m,g)}f.unselectText=function(){try{this.win.getSelection().removeAllRanges()}catch(a){}};
+function Ci(a,b,c){1==b.getState()&&(a.m.purge(function(a){return a.resource==b}),a.da.purge(function(a){return a.resource==b}),hf(a.V,function(a){return a.resource!=b}));if(0==b.getState()&&c&&a.ea){var d=a.ea.indexOf(b);-1!=d&&a.ea.splice(d,1)}}function Gi(a){return qa(a)?a:[a]};function Ri(a){return"none"==Dd(a)||a.hasAttribute("hidden")}var Si=["top","bottom","center"];function Ti(a){this.ampdoc=a;this.df=xb(a,"action",!0);this.g=Ec(a);this.og=Fc(a);this.o=Gc(a);Ui(this,this.df)}f=Ti.prototype;f.adoptEmbedWindow=function(a){Ui(this,xb(a.document,"action",!0))};
+function Ui(a,b){b.addGlobalTarget("AMP",a.handleAmpTarget.bind(a));b.addGlobalMethodHandler("hide",a.handleHide.bind(a));b.addGlobalMethodHandler("show",a.handleShow.bind(a));b.addGlobalMethodHandler("toggleVisibility",a.handleToggle.bind(a));b.addGlobalMethodHandler("scrollTo",a.handleScrollTo.bind(a));b.addGlobalMethodHandler("focus",a.handleFocus.bind(a))}
+f.handleAmpTarget=function(a){switch(a.method){case "setState":Vi(a);return;case "navigateTo":if(a.satisfiesTrust(100)){var b=a.args.url;kd(b)?(b=this.og.expandUrlSync(b),a=a.target,(a.ownerDocument||a).defaultView.location=b):r().error("STANDARD-ACTIONS","Cannot navigate to invalid protocol: "+b)}return;case "goBack":a.satisfiesTrust(100)&&zb(this.ampdoc,"history").goBack();return;case "print":a.satisfiesTrust(100)&&(a=a.target,(a.ownerDocument||a).defaultView.print());return}throw r().createError("Unknown AMP action ",
+a.method);};function Vi(a){a.satisfiesTrust(100)&&xc(a.target).then(function(b){r().assert(b,"AMP-BIND is not installed.");var c=a.args.__AMP_OBJECT_STRING__;if(c){var d=Object.create(null),e=a.event;e&&e.detail&&(d.event=e.detail);b.setStateWithExpression(c,d)}else r().error("AMP-BIND","Please use the object-literal syntax, e.g. \"AMP.setState({foo: 'bar'})\" instead of \"AMP.setState(foo='bar')\".")})}
+f.handleScrollTo=function(a){if(a.satisfiesTrust(100)){var b=a.target,c=a.args&&a.args.duration&&0<=a.args.duration?a.args.duration:500;a=a.args&&a.args.position&&Si.includes(a.args.position)?a.args.position:"top";this.o.animateScrollIntoView(b,c,"ease-in",a)}};f.handleFocus=function(a){if(a.satisfiesTrust(100))try{a.target.focus()}catch(b){}};f.handleHide=function(a){var b=a.target;this.g.mutateElement(b,function(){b.classList.contains("i-amphtml-element")?b.collapse():Ed(b,!1)})};
+f.handleShow=function(a){var b=a.target,c=b.ownerDocument.defaultView;b.classList.contains("i-amphtml-layout-nodisplay")?r().warn("STANDARD-ACTIONS","Elements with layout=nodisplay cannot be dynamically shown.",b):(K(c).measure(function(){"none"!=(c.getComputedStyle(b)||z()).display||Ri(b)||r().warn("STANDARD-ACTIONS",'Elements can only be dynamically shown when they have the "hidden" attribute set or when they were dynamically hidden.',b)}),b.classList.contains("i-amphtml-element")?this.g.deferMutate(b,
+function(){b.expand()}):this.g.mutateElement(b,function(){Ed(b,!0);b.removeAttribute("hidden")}))};f.handleToggle=function(a){Ri(a.target)?this.handleShow(a):this.handleHide(a)};function Wi(a,b,c){this.ampdoc=a;this.a=b;this.b=c;this.Wb=md(this.ampdoc.win.location);this.mc=null}f=Wi.prototype;f.vd=function(){Xi(this);return this};f.get=function(a){return Yi(this).then(function(b){return b.get(a)})};f.set=function(a,b){return Zi(this,function(c){return c.set(a,b)})};f.remove=function(a){return Zi(this,function(b){return b.remove(a)})};
+function Yi(a){a.mc||(a.mc=a.b.loadBlob(a.Wb).then(function(a){return a?td(atob(a)):{}}).catch(function(a){x().expectedError("Storage","Failed to load store: ",a);return{}}).then(function(a){return new $i(a)}));return a.mc}function Zi(a,b){return Yi(a).then(function(c){b(c);c=btoa(JSON.stringify(c.obj));return a.b.saveBlob(a.Wb,c)}).then(a.jf.bind(a))}function Xi(a){a.a.onBroadcast(function(b){"amp-storage-reset"==b.type&&b.origin==a.Wb&&(a.mc=null)})}
+f.jf=function(){this.a.broadcast({type:"amp-storage-reset",origin:this.Wb})};function $i(a,b){this.obj=rd(a);this.Kf=b||8;this.ia=this.obj.vv||Object.create(null);this.obj.vv||(this.obj.vv=this.ia)}$i.prototype.get=function(a){return(a=this.ia[a])?a.v:void 0};
+$i.prototype.set=function(a,b){void 0!==this.ia[a]?(a=this.ia[a],a.v=b,a.t=Date.now()):this.ia[a]=D({v:b,t:Date.now()});b=Object.keys(this.ia);if(b.length>this.Kf){var c=Infinity,d=null;for(a=0;a<b.length;a++){var e=this.ia[b[a]];e.t<c&&(d=b[a],c=e.t)}d&&delete this.ia[d]}};$i.prototype.remove=function(a){delete this.ia[a]};
+function aj(a){this.win=a;var b;try{"localStorage"in this.win?(this.win.localStorage.getItem("test"),b=!0):b=!1}catch(c){b=!1}this.Sc=b;this.Sc||(a=Error("localStorage not supported."),x().expectedError("Storage",a))}aj.prototype.loadBlob=function(a){var b=this;return new Promise(function(c){b.Sc?c(b.win.localStorage.getItem("amp-store:"+a)):c(null)})};aj.prototype.saveBlob=function(a,b){var c=this;return new Promise(function(d){c.Sc&&c.win.localStorage.setItem("amp-store:"+a,b);d()})};
+function bj(a){this.a=a}bj.prototype.loadBlob=function(a){return this.a.sendMessageAwaitResponse("loadStore",D({origin:a})).then(function(a){return a.blob})};bj.prototype.saveBlob=function(a,b){return this.a.sendMessageAwaitResponse("saveStore",D({origin:a,blob:b}))};function cj(a){G(a,"storage",function(){var b=J(a),c=parseInt(b.getParam("storage"),10),d=c?new bj(b):new aj(a.win);return(new Wi(a,b,d)).vd()},!0)};function dj(a){this.win=a;this.cg=Promise.resolve();this.jg=0;this.Cc={};this.lc=Date.now()}f=dj.prototype;f.timeSinceStart=function(){return Date.now()-this.lc};f.delay=function(a,b){var c=this;if(!b){var d="p"+this.jg++;this.cg.then(function(){c.Cc[d]?delete c.Cc[d]:a()}).catch(Vd);return d}return this.win.setTimeout(function(){try{a()}catch(e){throw Vd(e),e;}},b)};f.cancel=function(a){"string"==typeof a?this.Cc[a]=!0:this.win.clearTimeout(a)};
+f.promise=function(a){var b=this;return new 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 Promise(function(b,d){g=e.delay(function(){d(r().createError(c||"timeout"))},a);if(-1==g)throw Error("Failed to schedule timer.");});if(!b)return h;b.then(d,d);return Promise.race([h,b])};
+f.poll=function(a,b){var c=this;return new Promise(function(d){var e=c.win.setInterval(function(){b()&&(c.win.clearInterval(e),d())},a)})};function ej(a,b,c,d){var e=new fj(0,0,a,b,c,d,1,1);return e.solveYValueFromXValue.bind(e)}function fj(a,b,c,d,e,g,h,k){this.x0=a;this.y0=b;this.x1=c;this.y1=d;this.x2=e;this.y2=g;this.x3=h;this.y3=k}f=fj.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++){var g=this.getPointX(c),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 gj=ej(.25,.1,.25,1),hj=ej(.42,0,1,1),ij=ej(0,0,.58,1),jj=ej(.42,0,.58,1),kj={linear:function(a){return a},ease:gj,"ease-in":hj,"ease-out":ij,"ease-in-out":jj};function lj(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 ej(b[0],b[1],b[2],b[3])}return null}return kj[a]}return a};function mj(){}function nj(a,b){this.$a=a;this.l=b||K(self);this.ae=null;this.L=[]}function oj(a,b,c,d){return(new nj(a)).setCurve(d).add(0,b,1).start(c)}nj.prototype.setCurve=function(a){a&&(this.ae=lj(a));return this};nj.prototype.add=function(a,b,c,d){this.L.push({delay:a,func:b,duration:c,curve:lj(d)});return this};nj.prototype.start=function(a){var b=new pj(this.l,this.$a,this.L,this.ae,a);b.vd();return b};
+function pj(a,b,c,d,e){var g=this;this.l=a;this.$a=b;this.L=[];for(b=0;b<c.length;b++){var h=c[b];this.L.push({delay:h.delay,func:h.func,duration:h.duration,curve:h.curve||d,started:!1,completed:!1})}this.rf=e;this.Cg=this.Bg=this.lc=0;this.oa=!1;this.j={};this.Ie=new Promise(function(a,b){g.bg=a;g.$f=b});this.Se=this.l.createAnimTask(this.$a,{mutate:this.ig.bind(this)})}f=pj.prototype;f.then=function(a,b){return a||b?this.Ie.then(a,b):this.Ie};
+f.thenAlways=function(a){a=a||mj;return this.then(a,a)};f.halt=function(a){this.Ha(!1,a||0)};f.vd=function(){this.lc=Date.now();this.oa=!0;this.l.canAnimate(this.$a)?this.Se(this.j):(x().warn("Animation","cannot animate"),this.Ha(!1,0))};
+f.Ha=function(a,b){if(this.oa){this.oa=!1;if(0!=b){1<this.L.length&&this.L.sort(function(a,b){return a.delay+a.duration-(b.delay+b.duration)});try{if(0<b)for(b=0;b<this.L.length;b++)this.L[b].func(1,!0);else for(var c=this.L.length-1;0<=c;c--)this.L[c].func(0,!1)}catch(d){x().error("Animation","completion failed: "+d,d),a=!1}}a?this.bg():this.$f()}};
+f.ig=function(){if(this.oa){for(var a=Date.now(),b=Math.min((a-this.lc)/this.rf,1),c=0;c<this.L.length;c++){var d=this.L[c];!d.started&&b>=d.delay&&(d.started=!0)}for(c=0;c<this.L.length;c++)if(d=this.L[c],d.started&&!d.completed)a:{var e,g;if(0<d.duration){if(g=e=Math.min((b-d.delay)/d.duration,1),d.curve&&1!=g)try{g=d.curve(e)}catch(h){x().error("Animation","step curve failed: "+h,h);this.Ha(!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),this.Ha(!1,0)}}1==b?this.Ha(!0,0):this.l.canAnimate(this.$a)?this.Se(this.j):(x().warn("Animation","cancel animation"),this.Ha(!1,0))}};function qj(a,b,c,d,e){this.ampdoc=a;this.l=b;this.gf=c;this.yb=this.s=d;this.ub=e&&a.isSingleDoc();this.Y=null;this.mf=0;this.B=[]}f=qj.prototype;f.setVisible=function(a){var b=this;this.Y&&this.l.mutate(function(){T(b.Y,"visibility",a?"visible":"hidden")})};
+f.setup=function(){var a=this.ampdoc.getRootNode().styleSheets;if(a){for(var b=[],c=[],d=0;d<a.length;d++){var e=a[d];e.disabled||!e.ownerNode||"STYLE"!=e.ownerNode.tagName||e.ownerNode.hasAttribute("amp-boilerplate")||e.ownerNode.hasAttribute("amp-runtime")||e.ownerNode.hasAttribute("amp-extension")||rj(this,e.cssRules,b,c)}this.trySetupSelectorsNoInline(b,c);sj(this);d=Dc(this.ampdoc.win);0<this.B.length&&!this.ub&&d.isIos()&&r().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.");
+this.update()}};f.updatePaddingTop=function(a,b){this.s=a;b||(this.yb=a);this.update()};f.transformMutate=function(a){a?this.B.forEach(function(b){b.fixedNow&&b.top&&(T(b.element,"transition","none"),b.transform&&"none"!=b.transform?T(b.element,"transform",b.transform+" "+a):T(b.element,"transform",a))}):this.B.forEach(function(a){a.fixedNow&&a.top&&V(a.element,{transform:"",transition:""})})};f.addElement=function(a,b){tj(this,a,"*","fixed",b);sj(this);return this.update()};
+f.removeElement=function(a){var b=this,c=uj(this,a);0<c.length&&this.Y&&this.l.mutate(function(){for(var a=0;a<c.length;a++){var e=c[a];"fixed"==e.position&&vj(b,e)}})};f.isDeclaredFixed=function(a){return!!a.__AMP_DECLFIXED};f.isDeclaredSticky=function(a){return!!a.__AMP_DECLSTICKY};
+f.update=function(){var a=this;this.B.filter(function(b){return!a.ampdoc.contains(b.element)}).forEach(function(b){return uj(a,b.element)});if(0==this.B.length)return Promise.resolve();var b=!1;return this.l.runPromise({measure:function(c){for(var d=a.B,e=[],g=a.ampdoc.win,h=0;h<d.length;h++)V(d[h].element,{top:"",bottom:"-9999vh",transition:"none"});for(h=0;h<d.length;h++)e.push((g.getComputedStyle(d[h].element)||z()).top);for(h=0;h<d.length;h++)V(d[h].element,{bottom:"",transition:""});for(h=0;h<
+d.length;h++){var k=d[h],l=k.element,m=g.getComputedStyle(l)||z(),n=l.offsetWidth,q=l.offsetHeight,w=l.offsetTop,v=m,t=void 0===v.position?"":v.position,l=v.bottom,C=v.zIndex,y=parseFloat(m.opacity),v=m[Cd(m,"transform")],m=m.top,u="fixed"==t&&(k.forceTransfer||0<n&&0<q),B=ea(t,"sticky");if(u||B){if("auto"===m||e[h]!==m)m=u&&w===a.yb+a.gf?"0px":"";var M=u&&(k.forceTransfer||0<y&&300>q&&(!!m&&0==parseInt(m,10)||!!l&&0==parseInt(l,10)));M&&(b=!0);c[k.id]={fixed:u,sticky:B,transferrable:M,top:m,zIndex:C,
+transform:v}}else c[k.id]={fixed:!1,sticky:!1,transferrable:!1,top:"",zIndex:""}}},mutate:function(c){if(b&&a.ub){var d=wj(a);d.className!=a.ampdoc.getBody().className&&(d.className=a.ampdoc.getBody().className)}a.B.forEach(function(b,d){var e=c[b.id];if(e){var g=e,l=b.element,m=b.fixedNow;b.fixedNow=g.fixed;b.stickyNow=g.sticky;b.top=g.fixed||g.sticky?g.top:"";b.transform=g.transform;!m||g.fixed&&g.transferrable||vj(a,b);g.top&&(g.fixed||g.sticky)&&(g.fixed||!a.ub?T(l,"top","calc("+g.top+" + "+a.s+
+"px)"):a.yb===a.s?T(l,"top",g.top):T(l,"top","calc("+g.top+" - "+a.yb+"px)"));a.ub&&g.fixed&&!m&&g.transferrable&&xj(a,b,d,g)}})}},{}).catch(function(a){x().error("FixedLayer","Failed to mutate fixed elements:",a)})};
+f.trySetupSelectorsNoInline=function(a,b){try{for(var c=0;c<a.length;c++)for(var d=a[c],e=this.ampdoc.getRootNode().querySelectorAll(d),g=0;g<e.length&&!(10<g);g++)tj(this,e[g],d,"fixed");for(a=0;a<b.length;a++)for(var h=b[a],k=this.ampdoc.getRootNode().querySelectorAll(h),c=0;c<k.length;c++)tj(this,k[c],h,"sticky")}catch(l){x().error("FixedLayer","Failed to setup fixed elements:",l)}};
+function tj(a,b,c,d,e){for(var g=null,h=0;h<a.B.length;h++)if(a.B[h].element==b&&a.B[h].position==d){g=a.B[h];break}h="fixed"==d;g?g.selectors.push(c):(g="F"+a.mf++,b.setAttribute("i-amphtml-fixedid",g),h?b.__AMP_DECLFIXED=!0:b.__AMP_DECLSTICKY=!0,g={id:g,element:b,position:d,selectors:[c],fixedNow:!1,stickyNow:!1},a.B.push(g));g.forceTransfer=h&&!!e}
+function uj(a,b){for(var c=[],d=0;d<a.B.length;d++)if(a.B[d].element==b){a.l.mutate(function(){T(b,"top","")});var e=a.B[d];a.B.splice(d,1);c.push(e)}return c}function sj(a){a.B.sort(function(a,c){return a.element.compareDocumentPosition(c.element)&1?1:-1})}
+function xj(a,b,c,d){var e=b.element;e.parentElement!=a.Y&&(r().warn("FixedLayer","In order to improve scrolling performance in Safari, we now move the element to a fixed positioning layer:",b.element),b.placeholder||(T(e,"pointer-events","initial"),b.placeholder=a.ampdoc.win.document.createElement("i-amphtml-fp"),b.placeholder.setAttribute("i-amphtml-fixedid",b.id),T(b.placeholder,"display","none")),T(e,"zIndex","calc("+(1E4+c)+" + "+(d.zIndex||0)+")"),e.parentElement.replaceChild(b.placeholder,
+e),wj(a).appendChild(e),b.selectors.some(function(a){var b;a:{try{var c=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector;if(c){b=c.call(e,a);break a}}catch(l){x().error("FixedLayer","Failed to test query match:",l)}b=!1}return b})||(r().warn("FixedLayer","Failed to move the element to the fixed position layer. This is most likely due to the compound CSS selector:",b.element),vj(a,b)))}
+function vj(a,b){b.placeholder&&a.ampdoc.contains(b.placeholder)&&(a.ampdoc.contains(b.element)?(T(b.element,"zIndex",""),b.placeholder.parentElement.replaceChild(b.element,b.placeholder)):b.placeholder.parentElement.removeChild(b.placeholder))}
+function wj(a){if(!a.ub||a.Y)return a.Y;var b=a.ampdoc.win.document;a.Y=b.body.cloneNode(!1);a.Y.removeAttribute("style");V(a.Y,{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",display:"block",float:"none",margin:0,opacity:1,outline:"none",padding:"none",transform:"none",transition:"none",visibility:"visible"});b.documentElement.appendChild(a.Y);return a.Y}
+function rj(a,b,c,d){for(var e=0;e<b.length;e++){var g=b[e];1==g.type?"*"!=g.selectorText&&g.style.position&&("fixed"==g.style.position?c.push(g.selectorText):ea(g.style.position,"sticky")&&d.push(g.selectorText)):4==g.type?rj(a,g.cssRules,c,d):12==g.type&&rj(a,g.cssRules,c,d)}};function yj(a,b){return function(c){return a+(b-a)*c}};function zj(a){var b,c=a.win,d=Dc(c);a=b||J(a);var e=K(c);!d.isIos()||!d.isSafari()||8<d.getMajorVersion()||"1"!=a.getParam("b29185497")||new Promise(function(a){e.mutate(function(){T(c.document.body,"bottom","");e.mutate(function(){T(c.document.body,"bottom","0px");a()})})})};function Aj(a,b,c){var d=this;this.ampdoc=a;this.ta=this.ampdoc.win.document;this.b=b;this.a=c;this.Aa=this.ha=this.nb=null;this.qd=!1;this.fc=null;this.s=Number(c.getParam("paddingTop")||0);this.Mb=0;this.I=I(this.ampdoc.win);this.l=K(this.ampdoc.win);this.rd=!1;this.Oe=0;this.$d=new W;this.X=new W;this.W=new W;this.md=this.vb=void 0;this.S=new qj(this.ampdoc,this.l,this.b.getBorderTop(),this.s,this.b.requiresFixedLayerTransfer());this.ampdoc.whenReady().then(function(){return d.S.setup()});this.zg=
+this.yd.bind(this);this.a.onMessage("viewport",this.ng.bind(this));this.a.onMessage("scroll",this.rg.bind(this));this.b.updatePaddingTop(this.s);this.b.onScroll(this.fg.bind(this));this.b.onResize(this.Me.bind(this));this.onScroll(this.gg.bind(this));this.Z=!1;this.a.onVisibilityChanged(this.Xe.bind(this));this.Xe();this.ampdoc.isSingleDoc()&&this.ta.documentElement.classList.add("i-amphtml-singledoc");c.isEmbedded()?this.ta.documentElement.classList.add("i-amphtml-embedded"):this.ta.documentElement.classList.add("i-amphtml-standalone");
+rc(this.ampdoc.win)&&this.ta.documentElement.classList.add("i-amphtml-iframed");"1"===c.getParam("webview")&&this.ta.documentElement.classList.add("i-amphtml-webview");rc(this.ampdoc.win)&&"scrollRestoration"in this.ampdoc.win.history&&(this.ampdoc.win.history.scrollRestoration="manual")}f=Aj.prototype;f.dispose=function(){this.b.disconnect()};f.ensureReadyForElements=function(){this.b.ensureReadyForElements()};
+f.Xe=function(){var a=this.a.isVisible();a!=this.Z&&((this.Z=a)?(this.b.connect(),this.ha&&this.Me()):this.b.disconnect())};f.getPaddingTop=function(){return this.s};f.getTop=function(){return this.getScrollTop()};f.getScrollTop=function(){null==this.Aa&&(this.Aa=this.b.getScrollTop());return this.Aa};f.getScrollLeft=function(){null==this.fc&&(this.fc=this.b.getScrollLeft());return this.fc};f.setScrollTop=function(a){this.Aa=null;this.b.setScrollTop(a)};
+f.updatePaddingBottom=function(a){this.ampdoc.whenBodyAvailable().then(function(b){T(b,"borderBottom",a+"px solid transparent")})};f.getSize=function(){if(this.ha)return this.ha;this.ha=this.b.getSize();if(0==this.ha.width||0==this.ha.height){var a=this.a.getVisibilityState();("prerender"==a||"visible"==a)&&.01>Math.random()&&x().error("Viewport","viewport has zero dimensions")}return this.ha};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.getRect=function(){if(null==this.nb){var a=this.getScrollTop(),b=this.getScrollLeft(),c=this.getSize();this.nb=X(b,a,c.width,c.height)}return this.nb};
+f.getLayoutRect=function(a){var b=this.getScrollLeft(),c=this.getScrollTop(),d=ac(a,this.ampdoc.win);return d?(a=this.b.getLayoutRect(a,0,0),b=this.b.getLayoutRect(d,b,c),X(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.isDeclaredFixed=function(a){return this.S.isDeclaredFixed(a)};f.scrollIntoView=function(a){var b=this.b.getLayoutRect(a).top,c=Math.max(0,b-this.s);this.b.setScrollTop(c)};
+f.animateScrollIntoView=function(a,b,c,d){b=void 0===b?500:b;c=void 0===c?"ease-in":c;d=void 0===d?"top":d;var e=this;a=this.b.getLayoutRect(a);switch(d){case "bottom":d=-this.getHeight()+a.height;break;case "center":d=-this.getHeight()/2+a.height/2;break;default:d=0}var g=a.top-this.s+d;d=Math.max(0,g);var h=this.getScrollTop();if(d==h)return Promise.resolve();var k=yj(h,d);return oj(this.ampdoc.getRootNode(),function(a){e.b.setScrollTop(k(a))},b,c).then()};f.onChanged=function(a){return this.$d.add(a)};
+f.onScroll=function(a){return this.X.add(a)};f.onResize=function(a){return this.W.add(a)};f.enterLightboxMode=function(a){this.a.sendMessage("requestFullOverlay",{},!0);this.enterOverlayMode();this.hideFixedLayer();a&&this.maybeEnterFieLightboxMode(a);return this.b.updateLightboxMode(!0)};f.leaveLightboxMode=function(a){this.a.sendMessage("cancelFullOverlay",{},!0);this.showFixedLayer();this.leaveOverlayMode();a&&this.maybeLeaveFieLightboxMode(a);return this.b.updateLightboxMode(!1)};
+f.isLightboxExperimentOn=function(){return O(this.ampdoc.win,"amp-lightbox-a4a-proto")};f.maybeEnterFieLightboxMode=function(a){var b=Bj(this,a);b&&(this.isLightboxExperimentOn(),b.enterFullOverlayMode())};f.maybeLeaveFieLightboxMode=function(a){(a=Bj(this,a))&&a.leaveFullOverlayMode()};function Bj(a,b){var c=ac(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.l.mutate(function(){a.b.disableScroll()})};f.resetScroll=function(){var a=this;this.l.mutate(function(){a.b.resetScroll()})};f.resetTouchZoom=function(){var a=this,b=this.ampdoc.win.innerHeight,c=this.ta.documentElement.clientHeight;b&&c&&b===c||this.disableTouchZoom()&&this.I.delay(function(){a.restoreOriginalTouchZoom()},50)};
+f.disableTouchZoom=function(){var a=Cj(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)}var e=!1,l;for(l in c)d[l]!==c[l]&&(e=!0,void 0!==c[l]?d[l]=c[l]:delete d[l]);if(e){var b="",m;for(m in d)0<b.length&&(b+=","),b=d[m]?b+(m+"="+d[m]):b+m}d=b;return Dj(this,d)};
+f.restoreOriginalTouchZoom=function(){return void 0!==this.md?Dj(this,this.md):!1};f.hasScrolled=function(){return 0<this.Oe};f.hideFixedLayer=function(){this.S.setVisible(!1)};f.showFixedLayer=function(){this.S.setVisible(!0)};f.updateFixedLayer=function(){this.S.update()};f.addToFixedLayer=function(a,b){return this.S.addElement(a,b)};f.removeFromFixedLayer=function(a){this.S.removeElement(a)};function Dj(a,b){return(a=Cj(a))&&a.content!=b?(a.content=b,!0):!1}
+function Cj(a){if(rc(a.ampdoc.win))return null;void 0===a.vb&&(a.vb=a.ta.querySelector("meta[name=viewport]"),a.vb&&(a.md=a.vb.content));return a.vb}f.rg=function(a){var b=a.scrollTop;this.setScrollTop(b)};f.ng=function(a){var b=this,c=a.paddingTop,d=a.duration||0,e=a.curve,g=a["transient"];void 0!=c&&c!=this.s&&(this.Mb=this.s,this.s=c,this.s<this.Mb?(this.b.hideViewerHeader(g,this.Mb),Ej(this,d,e,g)):Ej(this,d,e,g).then(function(){b.b.showViewerHeader(g,b.s)}))};
+function Ej(a,b,c,d){a.S.updatePaddingTop(a.s,d);if(0>=b)return Promise.resolve();var e=yj(a.Mb-a.s,0);return oj(a.ampdoc.getRootNode(),function(b){b=e(b);a.S.transformMutate("translateY("+b+"px)")},b,c).thenAlways(function(){a.S.transformMutate(null)})}function Fj(a,b,c){var d=a.getSize(),e=a.getScrollTop(),g=a.getScrollLeft();a.$d.fire({relayoutAll:b,top:e,left:g,width:d.width,height:d.height,velocity:c})}
+f.fg=function(){var a=this;this.nb=null;this.Oe++;this.fc=this.b.getScrollLeft();var b=this.b.getScrollTop();if(!(0>b)){this.Aa=b;if(!this.rd){this.rd=!0;var c=Date.now();this.I.delay(function(){a.l.measure(function(){a.yd(c,b)})},36)}this.X.fire()}};f.yd=function(a,b){var c=this,d=this.Aa=this.b.getScrollTop(),e=Date.now(),g=0;e!=a&&(g=(d-b)/(e-a));.03>Math.abs(g)?(Fj(this,!1,g),this.rd=!1):this.I.delay(function(){return c.l.measure(c.yd.bind(c,e,d))},20)};
+f.gg=function(){var a=this;this.qd||(this.qd=!0,this.l.measure(function(){a.qd=!1;a.a.sendMessage("scroll",D({scrollTop:a.getScrollTop()}),!0)}))};f.Me=function(){var a=this;this.nb=null;var b=this.ha;this.ha=null;var c=this.getSize();this.S.update().then(function(){var d=!b||b.width!=c.width;Fj(a,d,0);var e=d||b.height!=c.height;e&&a.W.fire({relayoutAll:d,width:c.width,height:c.height})})};
+function Gj(a,b){var c=this;this.ampdoc=a;this.win=a.win;this.Zb=Dc(this.win);this.a=b;this.X=new W;this.W=new W;this.Za=function(){return c.X.fire()};this.Ya=function(){return c.W.fire()}}f=Gj.prototype;f.connect=function(){this.win.addEventListener("scroll",this.Za);this.win.addEventListener("resize",this.Ya)};f.disconnect=function(){this.win.removeEventListener("scroll",this.Za);this.win.removeEventListener("resize",this.Ya)};f.ensureReadyForElements=function(){};f.getBorderTop=function(){return 0};
+f.requiresFixedLayerTransfer=function(){return!1};f.onScroll=function(a){this.X.add(a)};f.onResize=function(a){this.W.add(a)};f.updatePaddingTop=function(a){T(this.win.document.documentElement,"paddingTop",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=Hj(this).scrollTop||this.win.pageYOffset,b=this.ampdoc.getRootNode().host;return b?a-b.offsetTop:a};f.getScrollLeft=function(){return 0};f.getScrollWidth=function(){return Hj(this).scrollWidth};f.getScrollHeight=function(){return Hj(this).scrollHeight};
+f.getLayoutRect=function(a,b,c){var d=void 0!=c?c:this.getScrollTop(),e=void 0!=b?b:this.getScrollLeft();a=a.getBoundingClientRect();return X(Math.round(a.left+e),Math.round(a.top+d),Math.round(a.width),Math.round(a.height))};f.setScrollTop=function(a){Hj(this).scrollTop=a};function Hj(a){var b=a.win.document;return b.scrollingElement?b.scrollingElement:b.body&&a.Zb.isWebKit()?b.body:b.documentElement}
+function Ij(a,b){var c=this;this.win=a;this.ampdoc=b;this.Ka=this.pa=this.ga=null;this.wa={x:0,y:0};this.X=new W;this.W=new W;this.s=0;this.win.document.documentElement.classList.add("i-amphtml-ios-embed-legacy");we(this.win.document).then(function(){return c.gc()});this.win.addEventListener("resize",function(){return c.W.fire()})}f=Ij.prototype;f.ensureReadyForElements=function(){};f.getBorderTop=function(){return 0};f.requiresFixedLayerTransfer=function(){return!0};
+f.gc=function(){var a=this.win.document.body;V(this.win.document.documentElement,{overflowY:"auto",webkitOverflowScrolling:"touch"});V(a,{overflowX:"hidden",overflowY:"auto",webkitOverflowScrolling:"touch",position:"absolute",top:0,left:0,right:0,bottom:0});this.ga=this.win.document.createElement("div");this.ga.id="i-amphtml-scrollpos";V(this.ga,{position:"absolute",top:0,left:0,width:0,height:0,visibility:"hidden"});a.appendChild(this.ga);this.pa=this.win.document.createElement("div");this.pa.id=
+"i-amphtml-scrollmove";V(this.pa,{position:"absolute",top:0,left:0,width:0,height:0,visibility:"hidden"});a.appendChild(this.pa);this.Ka=this.win.document.createElement("div");this.Ka.id="i-amphtml-endpos";V(this.Ka,{width:0,height:0,visibility:"hidden"});a.appendChild(this.Ka);a.addEventListener("scroll",this.Ub.bind(this));zj(this.ampdoc)};f.connect=function(){};f.disconnect=function(){};
+f.hideViewerHeader=function(a,b){var c=this;a?ue(this.win.document,function(a){a=a.body;var d=(c.win.getComputedStyle(a)||z()).paddingTop||"0";V(a,{paddingTop:"calc("+d+" + "+b+"px)",borderTop:""})}):this.updatePaddingTop(0)};f.showViewerHeader=function(a,b){a||this.updatePaddingTop(b)};f.disableScroll=function(){};f.resetScroll=function(){};f.updatePaddingTop=function(a){var b=this;ue(this.win.document,function(c){b.s=a;V(c.body,{borderTop:a+"px solid transparent",paddingTop:""})})};
+f.updateLightboxMode=function(a){var b=this;return new Promise(function(c){ue(b.win.document,function(d){K(b.win).mutatePromise(function(){T(d.body,"borderTopStyle",a?"none":"solid")}).then(c)})})};f.onScroll=function(a){this.X.add(a)};f.onResize=function(a){this.W.add(a)};f.getSize=function(){return{width:this.win.innerWidth,height:this.win.innerHeight}};f.getScrollTop=function(){return Math.round(this.wa.y)};f.getScrollLeft=function(){return 0};f.getScrollWidth=function(){return this.win.innerWidth};
+f.getScrollHeight=function(){return this.Ka?Math.round(this.Ka.getBoundingClientRect().top-this.ga.getBoundingClientRect().top):0};f.getLayoutRect=function(a){a=a.getBoundingClientRect();return X(Math.round(a.left+this.wa.x),Math.round(a.top+this.wa.y),Math.round(a.width),Math.round(a.height))};f.setScrollTop=function(a){Jj(this,a||1)};
+f.Ub=function(a){this.ga&&(this.ga&&this.pa&&0==-this.ga.getBoundingClientRect().top+this.s&&(Jj(this,1),a&&a.preventDefault()),a=this.ga.getBoundingClientRect(),this.wa.x!=-a.left||this.wa.y!=-a.top)&&(this.wa.x=-a.left,this.wa.y=-a.top+this.s,this.X.fire())};function Jj(a,b){a.pa&&(T(a.pa,"transform","translateY("+(b-a.s)+"px)"),a.pa.scrollIntoView(!0))}
+function Kj(a){var b=this;this.win=a;var c=this.win.document.documentElement.className;this.win.document.documentElement.className="";this.win.document.documentElement.classList.add("i-amphtml-ios-embed");this.J=this.win.document.createElement("html");this.J.id="i-amphtml-wrapper";this.J.className=c;this.X=new W;this.W=new W;this.Za=this.Ub.bind(this);this.Ya=function(){return b.W.fire()};this.Pe=!1;fc(this.win.document,this.gc.bind(this));we(this.win.document).then(function(){b.win.document.documentElement.classList.add("i-amphtml-ios-overscroll")})}
+f=Kj.prototype;f.ensureReadyForElements=function(){this.gc()};f.gc=function(){if(!this.Pe){this.Pe=!0;var a=this.win.document,b=a.body;a.documentElement.appendChild(this.J);this.J.appendChild(b);Object.defineProperty(a,"body",{get:function(){return b}});this.Ub()}};f.connect=function(){this.win.addEventListener("resize",this.Ya);this.J.addEventListener("scroll",this.Za)};f.disconnect=function(){this.win.removeEventListener("resize",this.Ya);this.J.removeEventListener("scroll",this.Za)};
+f.getBorderTop=function(){return 1};f.requiresFixedLayerTransfer=function(){return!0};f.onScroll=function(a){this.X.add(a)};f.onResize=function(a){this.W.add(a)};f.updatePaddingTop=function(a){T(this.J,"paddingTop",a+"px")};f.hideViewerHeader=function(a){a||this.updatePaddingTop(0)};f.showViewerHeader=function(a,b){a||this.updatePaddingTop(b)};f.disableScroll=function(){this.J.classList.add("i-amphtml-scroll-disabled")};f.resetScroll=function(){this.J.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.J.scrollTop};f.getScrollLeft=function(){return 0};f.getScrollWidth=function(){return this.J.scrollWidth};f.getScrollHeight=function(){return this.J.scrollHeight};
+f.getLayoutRect=function(a,b,c){c=void 0!=c?c:this.getScrollTop();b=void 0!=b?b:this.getScrollLeft();a=a.getBoundingClientRect();return X(Math.round(a.left+b),Math.round(a.top+c),Math.round(a.width),Math.round(a.height))};f.setScrollTop=function(a){this.J.scrollTop=a||1};f.Ub=function(a){0==this.J.scrollTop&&(this.J.scrollTop=1,a&&a.preventDefault());a&&this.X.fire()};
+function Lj(a){var b=J(a),c;if(c=a.isSingleDoc()){c=a.win;var d=b.getParam("viewportType")||Mj;Dc(c).isIos()&&d==Mj?!rc(c)&&p(c).development?c=Nj:(rc(c),c=rc(c)&&b.isEmbedded()?Nj:d):c=d;c=c==Nj}c=c?8<Dc(a.win).getIosMajorVersion()?new Kj(a.win):new Ij(a.win,a):new Gj(a,b);return new Aj(a,c,b)}var Mj="natural",Nj="natural-ios-embed";function Oj(a){this.c=a;this.Qb=this.Pb=this.tb=this.xb=0;this.qb=null;this.fa=Hb(a);this.jb=this.Kd=this.Ld=null;Pj(this)}Oj.prototype.onScheduled=function(){Qj(this)&&null==this.qb&&(this.qb=this.c.Date.now())};
+Oj.prototype.onRun=function(){if(Qj(this)&&null!=this.qb){var a=this.c.Date.now()-this.qb;this.qb=null;this.tb++;16<a&&(this.xb++,x().info("JANK","Paint latency: "+a+"ms"));if(this.fa&&200==this.tb){var b=this.c.Math.floor((this.tb-this.xb)/this.tb*100);this.fa.tickDelta("gfp",b);this.fa.tickDelta("bf",this.xb);this.jb&&(this.fa.tickDelta("lts",this.Qb),this.fa.tickDelta("ltc",this.Pb),this.jb.disconnect(),this.jb=null);var c=0;this.Ld&&null!=this.Kd&&(c=this.c.Math.max(0,this.c.Math.floor(100*this.Ld.level-
+this.Kd)),this.fa.tickDelta("bd",c));this.fa.flush();if(O(this.c,"jank-meter")){var d=c,e=this.c.document.createElement("div");e.classList.add("i-amphtml-jank-meter");e.textContent="bf:"+this.xb+", lts: "+this.Qb+", "+("ltc:"+this.Pb+", bd:"+d);this.c.document.body.appendChild(e)}}}};function Qj(a){return O(a.c,"jank-meter")||a.fa&&a.fa.isPerformanceTrackingOn()&&200>a.tb}
+function Pj(a){Qj(a)&&Rj(a.c)&&(a.jb=new a.c.PerformanceObserver(function(b){for(var c=b.getEntries(),d=0;d<c.length;d++)if("longtask"==c[d].entryType){var e=a.c.Math.floor(c[d].duration/50);"cross-origin-descendant"==c[d].name?(a.Pb+=e,r().info("LONGTASK","from child frame "+c[d].duration+"ms")):(a.Qb+=e,x().info("LONGTASK","from self frame "+c[d].duration+"ms"))}}),a.jb.observe({entryTypes:["longtask"]}))}
+function Rj(a){return!!a.PerformanceObserver&&!!a.TaskAttributionTiming&&"containerName"in a.TaskAttributionTiming.prototype};function Sj(a){var b=this;this.win=a;this.tc=zc(this.win);this.ab=Bc(this.win);this.Xf=Tj(this);this.u=[];this.jd=[];this.wd=[];this.hd=[];this.ca=!1;this.gd=this.Tb=null;this.Ac=this.eg.bind(this);this.Af=new Zh(this.win,this.Ac,16);this.Jd=new Zh(this.win,this.Ac,40);this.td=null;var c=this.ld.bind(this);if(this.tc.isSingleDoc())Ib(this.tc.getAmpDoc(),"viewer").then(function(a){b.td=a;a.onVisibilityChanged(c)});else this.ab.onVisibilityChanged(c);this.re=new Oj(this.win)}f=Sj.prototype;
+f.ld=function(){this.ca&&Uj(this)};f.run=function(a,b){this.u.push(a);this.wd.push(b||void 0);this.za()};f.runPromise=function(a,b){var c=this;this.run(a,b);return this.Tb?this.Tb:this.Tb=new Promise(function(a){c.gd=a})};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 Vj(this,a)};function Vj(a,b){return a.ab.isHidden()?!1:a.td?a.td.isVisible():b?(a=a.tc.getAmpDoc(b),J(a).isVisible()):!0}f.runAnim=function(a,b,c){if(!Vj(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 Vj(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.za=function(){this.ca||(this.ca=!0,this.re.onScheduled(),Uj(this))};function Uj(a){Vj(a)?(a.Xf(a.Ac),a.Jd.schedule()):a.Af.schedule()}
+f.eg=function(){this.Jd.cancel();this.ca=!1;this.re.onRun();var a=this.u,b=this.wd,c=this.gd;this.Tb=this.gd=null;this.u=this.jd;this.wd=this.hd;for(var d=0;d<a.length;d++)a[d].measure&&!Wj(a[d].measure,b[d])&&(a[d].mutate=void 0);for(d=0;d<a.length;d++)a[d].mutate&&Wj(a[d].mutate,b[d]);this.jd=a;this.hd=b;this.jd.length=0;this.hd.length=0;c&&c()};
+function Tj(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 Wj(a,b){try{a(b)}catch(c){return Ba(c),!1}return!0};var Xj=["GET","POST"],Yj=[qa,ra],Zj={document:1,text:2};function ak(a){this.win=a;this.uc=null;a=zc(a);this.uc=a.isSingleDoc()?a.getAmpDoc():null}f=ak.prototype;f.tf=function(a,b){this.uc&&.01>Math.random()&&N(a).origin!=this.win.location.origin&&!J(this.uc).hasBeenVisible()&&x().error("XHR","attempted to fetch %s before viewer was visible",a);var c=b.credentials;return"document"==b.responseType?bk(a,b):(this.win.fetch||bk).apply(null,arguments)};
+function ck(a,b,c){c=void 0===c?{}:c;!1!==c.ampCors?b=a.getCorsUrl(a.win,b):c.requireAmpResponseSourceOrigin=!1;!0===c.requireAmpResponseSourceOrigin&&x().error("XHR","requireAmpResponseSourceOrigin is deprecated, use ampCors instead");void 0===c.requireAmpResponseSourceOrigin&&(c.requireAmpResponseSourceOrigin=!0);var d=N(a.win.location.href).origin,e=N(b).origin;d==e&&(c.headers=c.headers||{},c.headers["AMP-Same-Origin"]="true");return a.tf(b,c).then(function(b){var d=b.headers.get("AMP-Access-Control-Allow-Source-Origin");
+if(d){var e=md(a.win.location.href);r().assert(d==e,"Returned AMP-Access-Control-Allow-Source-Origin is not equal to the current: "+d+(" vs "+e))}else c.requireAmpResponseSourceOrigin&&r().assert(!1,"Response must contain the AMP-Access-Control-Allow-Source-Origin header");return b},function(a){throw r().createExpectedError("XHR","Failed fetching"+(" ("+e+"/...):"),a&&a.message);})}
+f.fetchJson=function(a,b){var c=dk(b,"application/json");"POST"==c.method&&"[object FormData]"!==pa.call(c.body)&&(Yj.some(function(a){return a(c.body)}),c.headers["Content-Type"]=c.headers["Content-Type"]||"text/plain;charset=utf-8",c.body=JSON.stringify(c.body));return this.fetch(a,c)};f.fetchText=function(a,b){return this.fetch(a,dk(b,"text/plain"))};f.fetchDocument=function(a,b){b=dk(b,"text/html");b.responseType="document";return this.fetch(a,b).then(function(a){return a.G()})};
+f.fetch=function(a,b){b=dk(b);return ck(this,a,b).then(function(a){return ek(a)})};f.sendSignal=function(a,b){return ck(this,a,b).then(function(a){return ek(a)})};f.getCorsUrl=function(a,b){nd(b);a=md(a.location.href);a=encodeURIComponent("__amp_source_origin")+"="+encodeURIComponent(a);return ed(b,a,void 0)};function dk(a,b){a=a||{};var c;c=a.method;void 0===c?c="GET":(c=c.toUpperCase(),Xj.includes(c));a.method=c;a.headers=a.headers||{};b&&(a.headers.Accept=b);return a}
+function bk(a,b){return new Promise(function(c,d){var e=fk(b.method||"GET",a);"include"==b.credentials&&(e.withCredentials=!0);b.responseType in Zj&&(e.responseType=b.responseType);b.headers&&Object.keys(b.headers).forEach(function(a){e.setRequestHeader(a,b.headers[a])});e.onreadystatechange=function(){2>e.readyState||(100>e.status||599<e.status?(e.onreadystatechange=null,d(r().createExpectedError("Unknown HTTP status "+e.status))):4==e.readyState&&c(new gk(e)))};e.onerror=function(){d(r().createExpectedError("Network failure"))};
+e.onabort=function(){d(r().createExpectedError("Request aborted"))};"POST"==b.method?e.send(b.body):e.send()})}function fk(a,b){var c=new XMLHttpRequest;if("withCredentials"in c)c.open(a,b,!0);else if("undefined"!=typeof XDomainRequest)c=new XDomainRequest,c.open(a,b);else throw x().createExpectedError("CORS is not supported");return c}
+function ek(a){return new Promise(function(b){if(a.ok)return b(a);b=a.status;var c=r().createError("HTTP error "+b);c.retriable=415==b||500<=b&&600>b;c.response=a;throw c;})}function gk(a){this.ra=a;this.status=this.ra.status;this.ok=200<=this.status&&300>this.status;this.headers=new hk(a);this.bodyUsed=!1;this.body=null}f=gk.prototype;f.clone=function(){return new gk(this.ra)};function ik(a){a.bodyUsed=!0;return Promise.resolve(a.ra.responseText)}f.text=function(){return ik(this)};f.json=function(){return ik(this).then(td)};
+f.G=function(){this.bodyUsed=!0;r().assert(this.ra.responseXML,"responseXML should exist. Make sure to return Content-Type: text/html header.");return Promise.resolve(this.ra.responseXML)};f.arrayBuffer=function(){return ik(this).then(Hc)};function hk(a){this.ra=a}hk.prototype.get=function(a){return this.ra.getResponseHeader(a)};hk.prototype.has=function(a){return null!=this.ra.getResponseHeader(a)};function jk(a){ak.call(this,a);this.eb=z()}aa(jk,ak);jk.prototype.fetch=function(a,b){var c=this,d=b&&b.headers&&b.headers.Accept||"",e=!b||!b.method||"GET"===b.method,g=id(a)+d,h=!!this.eb[g];if(e&&h)return this.eb[g].then(function(a){return a.clone()});var k=ak.prototype.fetch.call(this,a,b);e&&(this.eb[g]=k.then(function(a){delete c.eb[g];return a.clone()},function(a){delete c.eb[g];throw a;}));return k};var kk="alt title referrerpolicy aria-label aria-describedby aria-labelledby".split(" ");function lk(a){$f.call(this,a);this.qe=this.Xa=!0;this.kc=this.H=null}aa(lk,$f);f=lk.prototype;f.mutatedAttributesCallback=function(a){if(void 0!==a.src||void 0!==a.srcset)this.kc=mf(this.element),this.H&&mk(this);if(this.H){var b=kk.filter(function(b){return void 0!==a[b]});this.propagateAttributes(b,this.H,!0)}};
+f.preconnectCallback=function(a){var b=this.element.getAttribute("src");if(b)this.preconnect.url(b,a);else{var c=this.element.getAttribute("srcset");if(c){var d=c.match(/https?:\/\/[^\s]+/);d&&this.preconnect.url(d[0],a)}}};f.buildCallback=function(){this.qe=!this.element.hasAttribute("noprerender")};f.isLayoutSupported=function(a){return ge(a)};
+f.Gb=function(){this.H||(this.kc||(this.kc=mf(this.element)),this.Xa=!0,this.element.hasAttribute("fallback")&&(this.Xa=!1),this.H=new Image,this.element.id&&this.H.setAttribute("amp-img-id",this.element.id),"img"==this.element.getAttribute("role")&&(this.element.removeAttribute("role"),r().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(kk,
+this.H),this.applyFillContent(this.H,!0),this.element.appendChild(this.H))};f.prerenderAllowed=function(){return this.qe};f.isRelayoutNeeded=function(){return!0};f.reconstructWhenReparented=function(){return!1};f.layoutCallback=function(){var a=this;this.Gb();var b=mk(this);this.Xa&&(b=b.catch(function(b){nk(a);throw b;}),this.Xa=!1);return b};
+function mk(a){if(0>=a.getLayoutWidth())return Promise.resolve();var b=a.kc.select(a.getLayoutWidth(),a.getDpr()).url;if(b==a.H.getAttribute("src"))return Promise.resolve();a.H.setAttribute("src",b);return a.loadPromise(a.H).then(function(){!a.Xa&&a.H.classList.contains("i-amphtml-ghost")&&a.getVsync().mutate(function(){a.H.classList.remove("i-amphtml-ghost");a.toggleFallback(!1)})})}
+function nk(a){a.getVsync().mutate(function(){a.H.classList.add("i-amphtml-ghost");a.toggleFallback(!0);a.togglePlaceholder(!1)})};function ok(a){$f.call(this,a);this.zd=null}aa(ok,$f);ok.prototype.isLayoutSupported=function(){return!0};ok.prototype.buildCallback=function(){this.element.setAttribute("aria-hidden","true");(this.$b=this.element.getAttribute("referrerpolicy"))&&r().assert("no-referrer"==this.$b,'amp-pixel: invalid "referrerpolicy" value "'+this.$b+'". Only "no-referrer" is supported');J(this.getAmpDoc()).whenFirstVisible().then(this.lg.bind(this))};
+ok.prototype.lg=function(){var a=this;if(this.zd)return x().error("amp-pixel","duplicate pixel"),this.zd;this.zd=I(this.win).promise(1).then(function(){var b=a.element.getAttribute("src");if(b)return Fc(a.element).expandAsync(pk(b)).then(function(b){var c;if(a.$b)if(c=a.element,"referrerPolicy"in Image.prototype)c=qk(c.ownerDocument.defaultView,b,!0);else{var e=c.ownerDocument,g=D({src:"about:blank"}),e=e.createElement("iframe"),h;for(h in g)e.setAttribute(h,g[h]);c.appendChild(e);qk(e.contentWindow,
+b);c=e}else c=qk(a.win,b);var k=c;x().info("amp-pixel","pixel triggered: ",b);return k})})};function pk(a){r().assert(/^(https\:\/\/|\/\/)/i.test(a),'The <amp-pixel> src attribute must start with "https://" or "//". Invalid value: '+a);return a}function qk(a,b,c){a=new a.Image;c&&(a.referrerPolicy="no-referrer");a.src=b;return a};var rk=["amp-ad","amp-embed","amp-video"];function sk(a){this.win=a;this.Bb={};this.zb=null}f=sk.prototype;f.waitForExtension=function(a){return tk(uk(this,a))};
+f.loadExtension=function(a,b){b=void 0===b?!0:b;"amp-embed"==a&&(a="amp-ad");var c=uk(this,a),d=b,e;c.loaded||c.error?e=!1:(void 0===c.scriptPresent&&(e=this.win.document.head.querySelector('[custom-element="'+a+'"]'),c.scriptPresent=!!e),e=!c.scriptPresent);if(e){e=this.win.document.createElement("script");e.async=!0;e.setAttribute("custom-element",a);e.setAttribute("data-script",a);e.setAttribute("i-amphtml-inserted","");var g=Kc.urls.cdn+"/rtv/"+p().rtvVersion+"/v0/"+a+"-0.1.js";e.src=g;this.win.document.head.appendChild(e);
+c.scriptPresent=!0;d&&sg(this.win,a)}return tk(c)};f.reloadExtension=function(a,b){this.Bb[a]&&delete this.Bb[a];b.removeAttribute("custom-element");b.setAttribute("i-amphtml-loaded-new-version",a);return this.loadExtension(a,!1)};f.loadElementClass=function(a){return this.loadExtension(a).then(function(b){return b.elements[a].implementationClass})};function vk(a,b,c,d){wk(a,b).extension.elements[b]={implementationClass:c,css:d}}f.wg=function(a,b){wk(this,b).docFactories.push(a)};
+f.xg=function(a,b){wk(this,b).shadowRootFactories.push(a)};f.installFactoriesInShadowRoot=function(a,b){var c=this,d=[];b.forEach(function(b){var e=uk(c,b);d.push(tk(e).then(function(){e.shadowRootFactories.forEach(function(c){try{c(a)}catch(k){Ba("ShadowRoot factory failed: ",k,b)}})}))});return Promise.all(d)};
+f.installExtensionsInChildWindow=function(a,b,c){var d=this,e=this.win;$b(a,a.frameElement.ownerDocument.defaultView);xk(a);Id(a.document,cssText$$module$build$css,function(){},!0,"amp-runtime");c&&c(a);yk(a);zk(e,a);Ak(a);var g=[];b.forEach(function(b){sg(e,b);rk.includes(b)||qg(a,b,dg);var c=d.loadExtension(b).then(function(c){c.services.forEach(function(b){cc(a,b)});var d=c.elements[b];return d&&d.css?(new Promise(function(c){Id(a.document,d.css,c,!1,b)})).then(function(){return c}):c}).then(function(b){Object.keys(b.elements).forEach(function(b){var c=
+og(e)[b];c||x().warn("CustomElement","%s is not stubbed yet",b);pg(a,b,c)})});g.push(c)});return Promise.all(g)};function uk(a,b){var c=a.Bb[b];c||(c={extension:{elements:{},services:[]},docFactories:[],shadowRootFactories:[],promise:void 0,resolve:void 0,reject:void 0,loaded:void 0,error:void 0,scriptPresent:void 0},a.Bb[b]=c);return c}function wk(a,b){a.zb||x().error("extensions","unknown extension for ",b);return uk(a,a.zb||"_UNKNOWN_")}
+function tk(a){a.promise||(a.promise=a.loaded?Promise.resolve(a.extension):a.error?Promise.reject(a.error):new Promise(function(b,c){a.resolve=b;a.reject=c}));return a.promise}function zk(a,b){var c=og(a)["amp-img"];qg(b,"amp-img",c||dg);a=og(a)["amp-pixel"];qg(b,"amp-pixel",a||dg)}function Ak(a){rk.forEach(function(b){sg(a,b)})}function xk(a){Ja(a);wb(a);ub(a)}function yk(a){cc(a,"action");cc(a,"standard-actions");cc(a,"clickhandler")};var Bk=[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/];
+function Ck(a,b){var c=this;this.ampdoc=a;this.win=a.win;this.Jb=rc(this.win);this.ab=Bc(this.win);this.aa=!0;this.nd=!1;this.af=this.rc="visible";this.na=1;this.dd=z();this.Ne=new W;this.wb=new W;this.Wd=new W;this.Sb=this.Oa=null;this.Pa=[];this.A={};this.Ad=this.Dd=this.fd=this.ve=this.ka=this.cf=null;this.tg=new Promise(function(a){c.cf=a});b?Object.assign(this.A,b):(this.win.name&&0==this.win.name.indexOf("__AMP__")&&Dk(this.win.name.substring(7),this.A),this.win.location.hash&&Dk(this.win.location.hash,
+this.A));this.aa=!parseInt(this.A.off,10);this.nd=!(!parseInt(this.A.history,10)&&!this.nd);Ek(this,this.A.visibilityState);this.na=parseInt(this.A.prerenderSize,10)||this.na;this.Wc=!this.Jb&&"1"==this.A.webview;this.Hb=!(!(this.Jb&&!this.win.AMP_TEST_IFRAME&&(this.A.origin||this.A.visibilityState||-1!=this.win.location.search.indexOf("amp_js_v"))||this.Wc)&&a.isSingleDoc());this.Hc=this.isVisible();this.ab.onVisibilityChanged(this.Je.bind(this));this.ed=this.Hb?I(this.win).timeoutPromise(2E4,new Promise(function(a){c.fd=
+a})).catch(function(a){throw Fk(a);}):null;this.ye=this.Hb?this.ed.catch(function(a){Vd(Fk(a))}):null;var d,e;this.Hb?this.win.location.ancestorOrigins&&!this.Wc?(d=0<this.win.location.ancestorOrigins.length&&Gk(this,this.win.location.ancestorOrigins[0]),e=Promise.resolve(d)):(d=void 0,e=new Promise(function(a){c.Ad=a})):(d=!1,e=Promise.resolve(!1));this.Vc=e;this.pg=new Promise(function(a){c.isEmbedded()?c.win.location.ancestorOrigins&&0<c.win.location.ancestorOrigins.length?a(c.win.location.ancestorOrigins[0]):
+(I(c.win).delay(function(){return a("")},1E3),c.Dd=a):a("")});this.pc=this.isEmbedded()&&"referrer"in this.A&&!1!==d?this.A.referrer:this.win.document.referrer;this.Zf=new Promise(function(a){c.isEmbedded()&&"referrer"in c.A?c.Vc.then(function(b){b?a(c.A.referrer):(a(c.win.document.referrer),c.pc!=c.win.document.referrer&&(x().expectedError("Viewer","Untrusted viewer referrer override: "+c.pc+" at "+c.Sb),c.pc=c.win.document.referrer))}):a(c.win.document.referrer)});this.dc=id(this.win.location.href||
+"");this.sg=new Promise(function(a){var b=c.A.viewerUrl;c.isEmbedded()&&b?c.Vc.then(function(d){d?c.dc=b:x().error("Viewer","Untrusted viewer url override: "+b+" at "+c.Sb);a(c.dc)}):a(c.dc)});var g=this.A.replaceUrl;if(a.isSingleDoc()&&g&&this.win.history.replaceState)try{var h=N(this.win.location.href),k=N(id(g)+this.win.location.hash);h.origin==k.origin&&md(h)==md(k)&&(this.win.history.replaceState({},"",k.href),this.win.location.originalHref=h.href)}catch(l){x().error("Viewer","replaceUrl failed",
+l)}this.A.click&&(a=id(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)));this.Je();Hk(this)}function Hk(a){if(a.isVisible()){var b=Date.now();a.ka||(a.ka=b);a.ve=b;a.Hc=!0;a.cf()}a.wb.fire()}f=Ck.prototype;f.getParam=function(a){return this.A[a]};f.hasCapability=function(a){var b=this.A.cap;return b?-1!=b.split(",").indexOf(a):!1};
+f.navigateTo=function(a,b){jd(a);this.hasCapability("a2a")?this.sendMessage("a2a",D({url:a,requestedBy:b})):this.win.top.location.href=a};f.isEmbedded=function(){return this.Hb};f.isRuntimeOn=function(){return this.aa};f.toggleRuntime=function(){this.aa=!this.aa;this.Ne.fire(this.aa)};f.onRuntimeState=function(a){return this.Ne.add(a)};f.isOvertakeHistory=function(){return this.nd};f.getVisibilityState=function(){return this.rc};f.Je=function(){Ek(this,this.af)};
+function Ek(a,b){if(b){var c=a.rc;b=x().assertEnumValue(Gg,b,"VisibilityState");"hidden"===b&&(b=a.Hc?"inactive":"prerender");a.af=b;!a.ab.isHidden()||"visible"!==b&&"paused"!==b||(b="hidden");a.rc=b;c!==b&&Hk(a)}}f.isVisible=function(){return"visible"==this.getVisibilityState()};f.hasBeenVisible=function(){return this.Hc};f.whenFirstVisible=function(){return this.tg};f.getFirstVisibleTime=function(){return this.ka};f.getLastVisibleTime=function(){return this.ve};f.getPrerenderSize=function(){return this.na};
+f.getResolvedViewerUrl=function(){return this.dc};f.getViewerUrl=function(){return this.sg};f.maybeGetMessagingOrigin=function(){return this.Sb};f.getUnconfirmedReferrerUrl=function(){return this.pc};f.getReferrerUrl=function(){return this.Zf};f.isTrustedViewer=function(){return this.Vc};f.getViewerOrigin=function(){return this.pg};
+function Gk(a,b){if(a.Wc&&/^www\.[.a-z]+$/.test(b))return Bk.some(function(a){return a.test(b)});var c=N(b);return"https:"!=c.protocol?!1:Bk.some(function(a){return a.test(c.hostname)})}f.onVisibilityChanged=function(a){return this.wb.add(a)};f.onMessage=function(a,b){var c=this.dd[a];c||(c=new W,this.dd[a]=c);return c.add(b)};
+f.receiveMessage=function(a,b){if("visibilitychange"==a)return void 0!==b.prerenderSize&&(this.na=b.prerenderSize),Ek(this,b.state),Promise.resolve();if("broadcast"==a)return this.Wd.fire(b),Promise.resolve();if(a=this.dd[a])return a.fire(b),Promise.resolve()};
+f.setMessageDeliverer=function(a,b){var c=this;if(this.Oa)throw Error("message channel can only be initialized once");if(null==b)throw Error("message channel must have an origin");this.Oa=a;this.Sb=b;this.fd&&this.fd();this.Ad&&this.Ad(b?Gk(this,b):!1);this.Dd&&this.Dd(b||"");0<this.Pa.length&&(b=this.Pa.slice(0),this.Pa=[],b.forEach(function(a){var b=c.Oa(a.eventType,a.data,a.awaitResponse);a.awaitResponse&&a.responseResolver(b)}))};f.sendMessage=function(a,b,c){c=void 0===c?!1:c;Ik(this,a,b,c,!1)};
+f.sendMessageAwaitResponse=function(a,b,c){return Ik(this,a,b,void 0===c?!1:c,!0)};
+function Ik(a,b,c,d,e){if(a.Oa)return Promise.resolve(a.Oa(b,c,e));if(!a.ed)return e?Promise.reject(Fk()):Promise.resolve();if(!d)return a.ed.then(function(){return a.Oa(b,c,e)});var g=jf(a.Pa,function(a){return a.eventType==b});if(-1!=g)d=a.Pa.splice(g,1)[0],d.data=c,d.awaitResponse=d.awaitResponse||e;else{var h;d=new Promise(function(a){h=a});d={eventType:b,data:c,awaitResponse:e,responsePromise:d,responseResolver:h}}a.Pa.push(d);return d.responsePromise}
+f.broadcast=function(a){this.ye&&this.sendMessage("broadcast",a)};f.onBroadcast=function(a){return this.Wd.add(a)};f.whenMessagingReady=function(){return this.ye};function Dk(a,b){a=ia(a);for(var c in a)b[c]=a[c]}function Fk(a){return a instanceof Error?(a=Aa(a),a.message="No messaging channel: "+a.message,a):Error("No messaging channel: "+a)}function Jk(a){G(a,"viewer",function(){return new Ck(a,void 0)},!0)};(function(){Da=wa;x();r()})();(function(a){self.reportError=a})(function(a,b,c){Vd(b,c);b&&a&&va(b.message)&&!(0<=b.message.indexOf("\u200b\u200b\u200b\u200b"))&&O(a,"user-error-reporting")&&(b={errorName:b.name,errorMessage:b.message},a=zc(a).getAmpDoc().getRootNode(),Md(a.documentElement||a.body||a,b))}.bind(null,self));
+function Kk(a){F(a,"crypto",zh);F(a,"batched-xhr",jk);F(a,"documentState",Eh);F(a,"platform",Uh);F(a,"templates",Ag);F(a,"timer",dj);F(a,"timer",dj);F(a,"vsync",Sj);F(a,"xhr",ak)}
+function Lk(a){var b=self,c={registerElement:Mk,registerServiceForDoc:Nk};function d(a){function c(){fc(b.document,function(){if("function"==typeof a)a(b.AMP);else{var c=a.n,d=a.f,e=b.AMP,g=uk(h,c);try{h.zb=c,d(e),g.loaded=!0,g.resolve&&g.resolve(g.extension)}catch(t){throw g.error=t,g.reject&&g.reject(t),t;}finally{h.zb=null}}})}"function"==typeof a||"high"==a.p?Promise.resolve().then(c):(c.displayName=a.n,tf(b.document,c))}function e(){O(b,"amp-lightbox-viewer-auto")&&Cc(b).loadExtension("amp-lightbox-viewer")}
+if(!b.AMP_TAG){b.AMP_TAG=!0;var g=b.AMP||[];F(b,"extensions",sk);var h=Cc(b);Kk(b);Ak(b);b.AMP={win:b};b.AMP.config=Kc;b.AMP.BaseElement=$f;b.AMP.BaseTemplate=zg;b.AMP.registerElement=c.registerElement.bind(null,b,h);b.AMP.registerTemplate=function(a,c){var d=H(b,"templates");if(d.sb[a]){var e=d.xd[a];r().assert(e,"Duplicate template type: %s",a);delete d.xd[a];e(c)}else d.sb[a]=Promise.resolve(c)};b.AMP.registerServiceForDoc=c.registerServiceForDoc.bind(null,b,h);b.AMP.isExperimentOn=O.bind(null,
+b);b.AMP.toggleExperiment=wd.bind(null,b);b.AMP.setTickFunction=function(){};a(b,h);for(a=0;a<g.length;a++){var k=g[a];if(Ok(b,k))g.splice(a--,1);else if("function"==typeof k||"high"==k.p){try{d(k)}catch(l){x().error("runtime","Extension failed: ",l,k.n)}g.splice(a--,1)}}Pk(b,function(){b.AMP.push=function(a){Ok(b,a)||d(a)};for(var a=0;a<g.length;a++){var c=g[a];if(!Ok(b,c))try{d(c)}catch(n){x().error("runtime","Extension failed: ",n,c.n)}}g.length=0});b.AMP.push||(b.AMP.push=g.push.bind(g));e();
+Dc(b).isIos()&&T(b.document.documentElement,"cursor","pointer")}}function Qk(){Lk(function(a){var b=J(a.document);a.AMP.viewer=b;p().development&&(a.AMP.toggleRuntime=b.toggleRuntime.bind(b),a.AMP.resources=Ec(a.document));b=Gc(a.document);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)})}
+function Mk(a,b,c,d,e){vk(b,c,d,e);e?Id(a.document,e,function(){Rk(a,c,d)},!1,c):Rk(a,c,d)}function Rk(a,b,c){pg(a,b,c);F(a,b,Sk)}function Nk(a,b,c,d){a=zc(a).getAmpDoc();G(a,c,d,!0);wk(b).extension.services.push(c)}function Sk(){return{}}function Ok(a,b){if(!O(a,"version-locking")||"function"==typeof b||"1502819823157"==b.v)return!1;var c=a.document.head.querySelector('[custom-element="'+b.n+'"]:not([i-amphtml-inserted])');if(!c)return!1;Cc(a).reloadExtension(b.n,c);return!0}
+function Pk(a,b){O(a,"pump-early-frame")?a.document.body?0<Hd(a).length?b():I(a).delay(b,1):b():b()};self.location&&(self.location.originalHash=self.location.hash);var Tk;try{Xd(),Sf(),Tk=zc(self)}catch(a){throw Ld(self.document),a;}
+tf(self.document,function initial(){var b=Tk.getAmpDoc(self.document);F(self,"performance",Hf);var c=H(self,"performance");Gf();c.tick("is");Id(self.document,cssText$$module$build$css,function(){tf(self.document,function(){Kk(self);G(b,"cid",jh);G(b,"documentInfo",Ch);Jk(b);G(b,"viewport",Lj,!0);G(b,"history",Th);G(b,"resources",si);ef(b);G(b,"action",Kg,!0);G(b,"standard-actions",Ti,!0);cj(b);G(b,"clickhandler",Fh,!0);b.getRootNode().addEventListener("submit",Jh,!0);c.coreServicesAvailable();Ce()});
+tf(self.document,function e(){var b=self;qg(b,"amp-img",lk);qg(b,"amp-pixel",ok)});tf(self.document,function g(){Qk()});tf(self.document,function(){rg(self)});tf(self.document,function h(){var b=self;"0"==J(b.document).getParam("p2r")&&Dc(b).isChrome()&&new Nf(b.document,Gc(b.document));xg();Ld(self.document,!0);Tf()});tf(self.document,function k(){c.tick("e_is");Ec(b).ampInitComplete();c.flush()})},!0,"amp-runtime")});
+self.console&&(console.info||console.log).call(console,"Powered by AMP \u26a1 HTML \u2013 Version 1502819823157",self.location.href);self.document.documentElement.setAttribute("amp-version","1502819823157");})()}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
diff --git a/doc/index.html b/doc/index.html
new file mode 100644
index 0000000..92ecd69
--- /dev/null
+++ b/doc/index.html
@@ -0,0 +1,81 @@
+<!DOCTYPE html>
+<html style="padding-top: 0px;">
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8">
+ <style> html{overflow-x:hidden!important}body,html{height:auto!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-singledoc>body{overflow:visible!important;position:relative!important}html.i-amphtml-webview>body{overflow-x:hidden!important;overflow-y:visible!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-element{display:inline-block}.i-amphtml-layout-fixed{display:inline-block;position:relative}.i-amphtml-layout-container,.i-amphtml-layout-fixed-height,.i-amphtml-layout-responsive{display:block;position:relative}.i-amphtml-layout-fill{display:block;overflow:hidden!important;position:absolute;top:0;left:0;bottom:0;right:0}.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-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-fill-content{display:block;width:1px;min-width:100%;height:1px;min-height:100%;margin:auto}.i-amphtml-layout-size-defined .i-amphtml-fill-content{position:absolute;top:0;left:0;bottom:0;right:0}.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:2px!important;height:2px!important;opacity:0!important;overflow:hidden!important;margin:0!important;display:block!important;visibility:visible!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-notbuilt{position:relative;overflow:hidden!important;color:transparent!important}.i-amphtml-notbuilt:not(.i-amphtml-layout-container)>*{display:none}.i-amphtml-ghost{visibility:hidden!important}[layout=nodisplay]:not(.i-amphtml-display){display:none!important}.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]{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}.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;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);display:block}.i-amphtml-loader-moving-line{display:block;position:absolute;width:100%;height:100%!important;background-color:hsla(0,0%,59%,.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,.3);box-shadow:2px 2px 2px 1px rgba(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,.3)}50%{-webkit-transform:scale(.8);transform:scale(.8);background-color:rgba(0,0,0,.5)}}@keyframes i-amphtml-loader-dots{0%,to{-webkit-transform:scale(.7);transform:scale(.7);background-color:rgba(0,0,0,.3)}50%{-webkit-transform:scale(.8);transform:scale(.8);background-color:rgba(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{position:fixed!important;top:0!important;width:1px!important;height:1px!important;overflow:hidden!important;visibility:hidden}amp-iframe iframe{box-sizing:border-box!important}[amp-access][amp-access-hide],amp-experiment,amp-live-list>[update],amp-share-tracking,form [submit-error],form [submit-success],form [submitting]{display:none}amp-fresh{visibility:hidden}.i-amphtml-jank-meter{position:fixed;background-color:rgba(232,72,95,.5);bottom:0;right:0;color:#fff;font-size:16px;z-index:1000;padding:5px}i-amp-video-mask,i-amphtml-video-mask{z-index:1}.amp-video-eq{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;bottom:7px;display:-webkit-box;display:-ms-flexbox;display:flex;height:12px;opacity:0.8;overflow:hidden;position:absolute;right:7px;width:20px;z-index:1}.amp-video-eq .amp-video-eq-col{-webkit-box-flex:1;-ms-flex:1;flex:1;height:100%;margin-right:1px;position:relative}.amp-video-eq .amp-video-eq-col div{-webkit-animation-name:amp-video-eq-animation;animation-name:amp-video-eq-animation;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-direction:alternate;animation-direction:alternate;background-color:#fafafa;height:100%;position:absolute;width:100%;will-change:transform;-webkit-animation-play-state:paused;animation-play-state:paused}.amp-video-eq[unpausable] .amp-video-eq-col div{-webkit-animation-name:none;animation-name:none}.amp-video-eq[unpausable].amp-video-eq-play .amp-video-eq-col div{-webkit-animation-name:amp-video-eq-animation;animation-name:amp-video-eq-animation}.amp-video-eq.amp-video-eq-play .amp-video-eq-col div{-webkit-animation-play-state:running;animation-play-state:running}.amp-video-eq-1-1{-webkit-animation-duration:0.3s;animation-duration:0.3s}.amp-video-eq-1-1,.amp-video-eq-1-2{-webkit-transform:translateY(60%);transform:translateY(60%)}.amp-video-eq-1-2{-webkit-animation-duration:0.45s;animation-duration:0.45s}.amp-video-eq-2-1{-webkit-animation-duration:0.5s;animation-duration:0.5s}.amp-video-eq-2-1,.amp-video-eq-2-2{-webkit-transform:translateY(30%);transform:translateY(30%)}.amp-video-eq-2-2{-webkit-animation-duration:0.4s;animation-duration:0.4s}.amp-video-eq-3-1{-webkit-animation-duration:0.3s;animation-duration:0.3s}.amp-video-eq-3-1,.amp-video-eq-3-2{-webkit-transform:translateY(70%);transform:translateY(70%)}.amp-video-eq-3-2{-webkit-animation-duration:0.35s;animation-duration:0.35s}.amp-video-eq-4-1{-webkit-animation-duration:0.4s;animation-duration:0.4s}.amp-video-eq-4-1,.amp-video-eq-4-2{-webkit-transform:translateY(50%);transform:translateY(50%)}.amp-video-eq-4-2{-webkit-animation-duration:0.25s;animation-duration:0.25s}@-webkit-keyframes amp-video-eq-animation{0%{-webkit-transform:translateY(100%);transform:translateY(100%)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes amp-video-eq-animation{0%{-webkit-transform:translateY(100%);transform:translateY(100%)}to{-webkit-transform:translateY(0);transform:translateY(0)}}.i-amphtml-dockable-video{padding:0px;margin:0px;-webkit-transition:background-color 1s;transition:background-color 1s}.i-amphtml-dockable-video>iframe.i-amphtml-dockable-video-minimizing,.i-amphtml-dockable-video>video.i-amphtml-dockable-video-minimizing{position:fixed;height:auto;overflow:hidden;z-index:16;will-change:transform;-webkit-transform:scale(0.6) translateX(20px) translateY(20px);transform:scale(0.6) translateX(20px) translateY(20px);border-radius:6px;box-shadow:0px 3px 9px 3px rgba(0,0,0,.1);-webkit-transition:box-shadow 1s,border-radius 1s;transition:box-shadow 1s,border-radius 1s;min-width:initial!important;min-height:initial!important;margin:initial!important}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}
+ </style>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
+ <title>Download draw.io</title>
+ <link rel="canonical" href="https://download.draw.io/">
+ <link rel="shortcut icon" href="https://www.draw.io/favicon.ico">
+ <meta name="description" content="Download draw.io ">
+ <style> @font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v13/v0SdcGFAl2aezM9Vq_aFTQ.ttf) format('truetype'); } /* Preserve some sanity */ .grid, .unit { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } /* Set up some rules to govern the grid */ .grid { display: block; clear: both; } .grid .unit { float: left; width: 100%; padding: 10px; } /* This ensures the outer gutters are equal to the (doubled) inner gutters. */ .grid .unit:first-child { padding-left: 20px; } .grid .unit:last-child { padding-right: 20px; } /* Nested grids already have padding though, so let’s nuke it */ .unit .unit:first-child { padding-left: 0; } .unit .unit:last-child { padding-right: 0; } .unit .grid:first-child > .unit { padding-top: 0; } .unit .grid:last-child > .unit { padding-bottom: 0; } /* Let people nuke the gutters/padding completely in a couple of ways */ .no-gutters .unit, .unit.no-gutters { padding: 0; } /* Wrapping at a maximum width is optional */ .wrap .grid, .grid.wrap { max-width: 978px; margin: 0 auto; } /* Width classes also have shorthand versions numbered as fractions * For example: for a grid unit 1/3 (one third) of the parent width, * simply apply class="w-1-3" to the element. */ .grid .whole, .grid .w-1-1 { width: 100%; } .grid .half, .grid .w-1-2 { width: 50%; } .grid .one-third, .grid .w-1-3 { width: 33.3332%; } .grid .two-thirds, .grid .w-2-3 { width: 66.6665%; } .grid .one-quarter, .grid .w-1-4 { width: 25%; } .grid .three-quarters, .grid .w-3-4 { width: 75%; } .grid .one-fifth, .grid .w-1-5 { width: 20%; } .grid .two-fifths, .grid .w-2-5 { width: 40%; } .grid .three-fifths, .grid .w-3-5 { width: 60%; } .grid .four-fifths, .grid .w-4-5 { width: 80%; } .grid .golden-small, .grid .w-g-s { width: 38.2716%; } /* Golden section: smaller piece */ .grid .golden-large, .grid .w-g-l { width: 61.7283%; } /* Golden section: larger piece */ /* Clearfix after every .grid */ .grid:before, .grid:after { display: table; content: ""; line-height: 0; } .grid:after { clear: both; } /* Utility classes */ .align-center { text-align: center; } .align-left { text-align: left; } .align-right { text-align: right; } .pull-left { float: left; } .pull-right { float: right; } /* Responsive Stuff */ @media screen and (max-width: 568px) { /* Stack anything that isn’t full-width on smaller screens */ .grid .unit { width: 100%; padding-left: 20px; padding-right: 20px; } .unit .grid .unit { padding-left: 0px; padding-right: 0px; } /* Sometimes, you just want to be different on small screens */ .center-on-mobiles { text-align: center; } .hide-on-mobiles { display: none; } } /* added by me */ @media screen and (min-width: 569px) { .hide-on-desktops { display: none; } .card-content{ padding: 10px 20px 20px; } } @media screen and (max-width: 568px) { .card-content{ padding: 7px 7px 5px; } } body{ font-family: 'Lato', sans-serif; font-size: 18px; } h1{ font-size: 3rem; } h2{ font-size: 2.5rem; } h3{ font-size: 1.5rem; } h4{ font-size: 1.4m; } h5{ font-size: 1.3rem; } h6{ font-size: 1.2rem; } h1, h2, h3, h4, h5, h6{ margin: 6px 0 6px; font-family: 'Lato', sans-serif; font-weight: 500; } a{ text-decoration: none; color: #db4646; cursor: pointer; } a:hover{ color: #b21c1c; } a:active{ color: #910b0b; } ul{ list-style-type:disc; padding-left:1rem; } ol{ list-style-type: decimal; padding-left:1rem; } li{ display: list-item; text-align: -webkit-match-parent; margin: 0; } .github-icon:hover, .github-icon:focus, .github-icon:active{ color: #85d063; } .twitter-icon:hover, .twitter-icon:focus, .twitter-icon:active{ color: #1da0f2; } .mail-icon:hover, .mail-icon:focus, .mail-icon:active{color: #db4646; } .rss-icon:hover, .rss-icon:focus, .rss-icon:active{color:#f49c52;} .btn{ border: none; border-radius: 2px; display: inline-block; height: 36px; line-height: 36px; padding: 0 0.6rem; cursor: pointer; transition: background-color .2s; vertical-align: middle; color: #343434; background-color: transparent; box-shadow: none; -webkit-tap-highlight-color: transparent; text-decoration: none; text-transform: uppercase; font-size: 15px; font-weight: 600; letter-spacing: .18rem; font-family:'Lato',sans-serif; margin: 0.4rem 0 0.4rem; } .github-icon, .twitter-icon, .mail-icon, .rss-icon{ padding: 0 1rem; } .btn i{ font-size: 17px; } .btn:focus, .btn:hover { background-color: rgba(0,0,0,0.1); } .btn:active { background-color: rgba(0, 0, 0, 0.2); } .btn.disabled, btn:disabled { background-color: transparent; color: #b3b3b3; cursor: default; } .card{ border: 1px solid lightgrey; border-radius: 5px; margin: 10px 0 10px; min-height: 175px; } .card-content{ margin: 0; min-height: calc(175px - 36px); } .card-action{ border-top: 1px solid lightgrey; background: #f7f7e6; margin: 0; padding: 5px 7px 7px; min-height: 36px; } .card-action .btn{ margin:0 } .card-content img{ max-width: 100%; } article p{ padding-left: 0.5rem; } .chip{ display: inline-block; height: 30px; text-transform: uppercase; font-size: 13px; font-weight: 600; letter-spacing: .18rem; font-family:'Lato',sans-serif; line-height: 30px; padding: 0 10px; border-radius: 15px; background-color: #f7f7e6; margin-bottom: 5px; margin-right: 5px; } .chip i{ font-size: 17px; } code, kbd{ background: #eaeaea; border-radius: 3px; line-height: 16.5px; font-family:monospace; font-size: 17px; padding: 2px 4px; } @font-face{font-family:"Ionicons";src:url("/assets/fonts/ionicons.ttf")format("truetype");font-weight:normal;font-style:normal} .ion-social-github:before{content:"\f233"} .ion-social-twitter:before{content:"\f243"} .ion-email:before{content:"\f132"} .ion-social-rss:before{content:"\f23d"} .ion-earth:before{content:"\f276"} .ion-social-github:before,.ion-earth:before,.ion-email:before,.ion-social-rss:before,.ion-social-twitter:before{display:inline-block;font-family:"Ionicons";speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;text-rendering:auto;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
+ </style>
+ <style> body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}
+ </style>
+ <noscript>
+ <style> body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}
+ </style>
+ </noscript>
+ <script async="" src="download_files/v0.js">
+ </script>
+</head>
+<body class="wrap amp-mode-mouse" style="opacity: 1; visibility: visible; animation: 0s ease 0s normal none 1 running none;">
+<div class="grid">
+ <nav>
+ <div id="/home" class="unit whole align-center">
+ <h1>
+ Download draw.io
+ </h1>
+ </div>
+ </nav>
+ <main>
+ <div class="unit whole" id="content">
+ <div class="grid">
+ <div class="unit one-third">
+ <div class="card align-left">
+ <div class="card-content">
+ <h3>
+ Windows
+ </h3>
+ <span>Download and run the .exe (self-updating)</span>
+ </div>
+ <div class="card-action">
+ <a href="https://github.com/jgraph/drawio-desktop/releases/download/v7.1.2/draw.io-setup-7.1.2.exe" class="btn"><i class="icon ion-earth"></i> Download (.exe)</a>
+ </div>
+ </div>
+ </div>
+ <div class="unit one-third">
+ <div class="card align-left">
+ <div class="card-content">
+ <h3>
+ Mac OS
+ </h3>
+ <span>Download and install the .dmg (self-updating)</span>
+ </div>
+ <div class="card-action">
+ <a href="https://github.com/jgraph/drawio-desktop/releases/download/v7.1.3/draw.io-7.1.3.dmg" class="btn"><i class="icon ion-earth"></i> Download (.dmg)</a>
+ </div>
+ </div>
+ </div>
+ <div class="unit one-third">
+ <div class="card align-left">
+ <div class="card-content">
+ <h3>
+ Linux (Debian/Ubuntu)
+ </h3>
+ <span>Download Debian installer</span>
+ </div>
+ <div class="card-action">
+ <a href="https://github.com/jgraph/drawio-desktop/releases/download/v7.1.3/draw.io-amd64-7.1.3.deb" class="btn"><i class="icon ion-earth"></i> Download (.deb)</a>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </main>
+</div>
+</body>
+</html>