Free javascript Hosting


amp-mustache-latest.js

Uploaded on Oct 20 2021 02:27 by jusjeruk8888

(self.AMP=self.AMP||[]).push({m:0,v:"2110082201001",n:"amp-mustache",ev:"0.2",l:true,f:function(AMP,_){"use strict";var v;function aa(a){for(var b=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global],c=0;c<b.length;++c){var d=b[c];if(d&&d.Math==Math)return}(function(){throw Error("Cannot find global object")})()}aa(this);"function"===typeof Symbol&&Symbol("x");var ea,ba="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b};if("function"==typeof Object.setPrototypeOf)ea=Object.setPrototypeOf;else{var ua;a:{var va={a:!0},wa={};try{wa.__proto__=va;ua=wa.a;break a}catch(a){}ua=!1}ea=ua?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var xa=ea;function Ba(a,b){for(var c=[],d=0,h=0;h<a.length;h++){var m=a[h];b(m,h,a)?c.push(m):(d<h&&(a[d]=m),d++)}d<a.length&&(a.length=d);return c}function Ca(a){return a||{}}function Da(a){return 1==(null==a?void 0:a.nodeType)?a.tagName.toLowerCase()+(a.id?"#"+a.id:""):a}function Ea(a,b,c,d){var h=void 0===c?"Assertion failed":c;if(!b){a&&-1==h.indexOf(a)&&(h+=a);for(var m=3,x=h.split("%s"),t=x.shift(),D=[t];x.length;){var y=arguments[m++],E=x.shift();t+=Da(y)+E;D.push(y,E.trim())}m=Error(t);m.messageArray=Ba(D,(function(B){return""!==B}));var z,p;null==(p=(z=self).__AMP_REPORT_ERROR)||p.call(z,m);throw m}}function Fa(a,b,c){Ea("​​​",a,b,c,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}
/* https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
function Ga(a,b){for(var c=a.length,d=0;d<c;d++)b(a[d],d)}var L=self.AMP_CONFIG||{},Ha=("string"==typeof L.cdnProxyRegex?new RegExp(L.cdnProxyRegex):L.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function Ia(a){if(!self.document||!self.document.head||self.location&&Ha.test(self.location.origin))return null;var b=self.document.head.querySelector('meta[name="'+a+'"]');return b&&b.getAttribute("content")||null}var Ja={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||Ia("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:Ha,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:L.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:L.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:L.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:L.geoApiUrl||Ia("amp-geo-api")};var Ka=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function Sa(a,b){var c=b=void 0===b?"":b;try{return decodeURIComponent(a)}catch(d){return c}}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var Ta=self.__AMP_LOG;function Ua(){if(!Ta.user)throw Error("failed to call initLogConstructor");return Ta.user}function Va(a,b,c){Ua().assert(a,b,c,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function Wa(a,b){var c=a=a.__AMP_TOP||(a.__AMP_TOP=a),d=Xa(c),h=d.purifier;h||(h=d.purifier={obj:null,promise:null,resolve:null,reject:null,context:null,ctor:null,sharedInstance:!1});h.ctor||(h.ctor=b,h.context=a,h.sharedInstance=!1,h.resolve&&Ya(c,"purifier"))}function Za(a,b){a=a.__AMP_TOP||(a.__AMP_TOP=a);return Ya(a,b)}function $a(a){return a.nodeType?Za((a.ownerDocument||a).defaultView,"ampdoc").getAmpDoc(a):a}function Ya(a,b){a=Xa(a)[b];a.obj||(a.obj=new a.ctor(a.context),a.context=null,a.resolve&&a.resolve(a.obj));return a.obj}function Xa(a){var b=a.__AMP_SERVICES;b||(b=a.__AMP_SERVICES={});return b}function ab(a,b){this.element=a;this.win=a.ownerDocument.defaultView||b;a=$a(this.element);a=$a(a);a=a.isSingleDoc()?a.win:a;this.L=Ya(a,"viewer");this.compileCallback()}v=ab.prototype;v.compileCallback=function(){};v.setHtml=function(){};v.render=function(){};v.renderAsString=function(){};function bb(a,b){for(a=a.firstChild;null!=a;a=a.nextSibling)if(3==a.nodeType){var c=a.textContent.trim();c&&b(c)}else 8!=a.nodeType&&1==(null==a?void 0:a.nodeType)&&b(a)}v.tryUnwrap=function(a){var b;bb(a,(function(c){b=void 0===b&&c.nodeType?c:null}));return b||a};v.unwrapChildren=function(a){var b=this,c=[];bb(a,(function(d){if("string"==typeof d){var h=b.win.document.createElement("div");h.textContent=d;c.push(h)}else c.push(d)}));return c};v.viewerCanRenderTemplates=function(){return this.L.hasCapability("viewerRenderTemplate")};
/* @license DOMPurify 2.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.3/LICENSE */var cb=Object.hasOwnProperty,db=Object.setPrototypeOf,eb=Object.isFrozen,ob=Object.getPrototypeOf,pb=Object.getOwnPropertyDescriptor,O=Object.freeze,S=Object.seal,qb=Object.create,rb="undefined"!==typeof Reflect&&Reflect,sb=rb.apply,tb=rb.construct;sb||(sb=function(a,b,c){return a.apply(b,c)});O||(O=function(a){return a});S||(S=function(a){return a});tb||(tb=function(a,b){var c=Function.prototype.bind,d=c.apply,h=[null],m=h.concat;if(Array.isArray(b)){for(var x=0,t=Array(b.length);x<b.length;x++)t[x]=b[x];b=t}else b=Array.from(b);return new(d.call(c,a,m.call(h,b)))});var ub=T(Array.prototype.forEach),vb=T(Array.prototype.pop),wb=T(Array.prototype.push),xb=T(String.prototype.toLowerCase),yb=T(String.prototype.match),zb=T(String.prototype.replace),Ab=T(String.prototype.indexOf),Bb=T(String.prototype.trim),V=T(RegExp.prototype.test),Db=Cb();function T(a){return function(b){for(var c=arguments.length,d=Array(1<c?c-1:0),h=1;h<c;h++)d[h-1]=arguments[h];return sb(a,b,d)}}function Cb(){var a=TypeError;return function(){for(var b=arguments.length,c=Array(b),d=0;d<b;d++)c[d]=arguments[d];return tb(a,c)}}function W(a,b){db&&db(a,null);for(var c=b.length;c--;){var d=b[c];if("string"===typeof d){var h=xb(d);h!==d&&(eb(b)||(b[c]=h),d=h)}a[d]=!0}return a}function Eb(a){var b=qb(null),c=void 0;for(c in a)sb(cb,a,[c])&&(b[c]=a[c]);return b}function Fb(a,b){for(;null!==a;){var c=pb(a,b);if(c){if(c.get)return T(c.get);if("function"===typeof c.value)return T(c.value)}a=ob(a)}return function(d){console.warn("fallback value for",d);return null}}var Gb=O("a abbr acronym address area article aside audio b bdi bdo big blink blockquote body br button canvas caption center cite code col colgroup content data datalist dd decorator del details dfn dialog dir div dl dt element em fieldset figcaption figure font footer form h1 h2 h3 h4 h5 h6 head header hgroup hr html i img input ins kbd label legend li main map mark marquee menu menuitem meter nav nobr ol optgroup option output p picture pre progress q rp rt ruby s samp section select shadow small source spacer span strike strong style sub summary sup table tbody td template textarea tfoot th thead time tr track tt u ul var video wbr".split(" ")),Hb=O("svg a altglyph altglyphdef altglyphitem animatecolor animatemotion animatetransform circle clippath defs desc ellipse filter font g glyph glyphref hkern image line lineargradient marker mask metadata mpath path pattern polygon polyline radialgradient rect stop style switch symbol text textpath title tref tspan view vkern".split(" ")),Ib=O("feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feMerge feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile feTurbulence".split(" ")),Jb=O("animate color-profile cursor discard fedropshadow feimage font-face font-face-format font-face-name font-face-src font-face-uri foreignobject hatch hatchpath mesh meshgradient meshpatch meshrow missing-glyph script set solidcolor unknown use".split(" ")),Kb=O("math menclose merror mfenced mfrac mglyph mi mlabeledtr mmultiscripts mn mo mover mpadded mphantom mroot mrow ms mspace msqrt mstyle msub msup msubsup mtable mtd mtext mtr munder munderover".split(" ")),Lb=O("maction maligngroup malignmark mlongdiv mscarries mscarry msgroup mstack msline msrow semantics annotation annotation-xml mprescripts none".split(" ")),Mb=O(["#text"]),$b=O("accept action align alt autocapitalize autocomplete autopictureinpicture autoplay background bgcolor border capture cellpadding cellspacing checked cite class clear color cols colspan controls controlslist coords crossorigin datetime decoding default dir disabled disablepictureinpicture disableremoteplayback download draggable enctype enterkeyhint face for headers height hidden high href hreflang id inputmode integrity ismap kind label lang list loading loop low max maxlength media method min minlength multiple muted name noshade novalidate nowrap open optimum pattern placeholder playsinline poster preload pubdate radiogroup readonly rel required rev reversed role rows rowspan spellcheck scope selected shape size sizes span srclang start src srcset step style summary tabindex title translate type usemap valign value width xmlns slot".split(" ")),ac=O("accent-height accumulate additive alignment-baseline ascent attributename attributetype azimuth basefrequency baseline-shift begin bias by class clip clippathunits clip-path clip-rule color color-interpolation color-interpolation-filters color-profile color-rendering cx cy d dx dy diffuseconstant direction display divisor dur edgemode elevation end fill fill-opacity fill-rule filter filterunits flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight fx fy g1 g2 glyph-name glyphref gradientunits gradienttransform height href id image-rendering in in2 k k1 k2 k3 k4 kerning keypoints keysplines keytimes lang lengthadjust letter-spacing kernelmatrix kernelunitlength lighting-color local marker-end marker-mid marker-start markerheight markerunits markerwidth maskcontentunits maskunits max mask media method mode min name numoctaves offset operator opacity order orient orientation origin overflow paint-order path pathlength patterncontentunits patterntransform patternunits points preservealpha preserveaspectratio primitiveunits r rx ry radius refx refy repeatcount repeatdur restart result rotate scale seed shape-rendering specularconstant specularexponent spreadmethod startoffset stddeviation stitchtiles stop-color stop-opacity stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke stroke-width style surfacescale systemlanguage tabindex targetx targety transform text-anchor text-decoration text-rendering textlength type u1 u2 unicode values viewbox visibility version vert-adv-y vert-origin-x vert-origin-y width word-spacing wrap writing-mode xchannelselector ychannelselector x x1 x2 xmlns y y1 y2 z zoomandpan".split(" ")),bc=O("accent accentunder align bevelled close columnsalign columnlines columnspan denomalign depth dir display displaystyle encoding fence frame height href id largeop length linethickness lspace lquote mathbackground mathcolor mathsize mathvariant maxsize minsize movablelimits notation numalign open rowalign rowlines rowspacing rowspan rspace rquote scriptlevel scriptminsize scriptsizemultiplier selection separator separators stretchy subscriptshift supscriptshift symmetric voffset width xmlns".split(" ")),cc=O(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),dc=S(/\{\{[\s\S]*|[\s\S]*\}\}/gm),ec=S(/<%[\s\S]*|[\s\S]*%>/gm),fc=S(/^data-[\-\w.\u00B7-\uFFFF]/),gc=S(/^aria-[\-\w]+$/),hc=S(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ic=S(/^(?:\w+script|data):/i),jc=S(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),kc="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};function X(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}return Array.from(a)}function lc(a,b){if("object"!==("undefined"===typeof a?"undefined":kc(a))||"function"!==typeof a.createPolicy)return null;var c=null;b.currentScript&&b.currentScript.hasAttribute("data-tt-policy-suffix")&&(c=b.currentScript.getAttribute("data-tt-policy-suffix"));var d="dompurify"+(c?"#"+c:"");try{return a.createPolicy(d,{createHTML:function(h){return h}})}catch(h){return console.warn("TrustedTypes policy "+d+" could not be created."),null}}function mc(){function a(e){var f,n;d("beforeSanitizeAttributes",e,null);var q=e.attributes;if(q){var G={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:K};for(n=q.length;n--;){var ca=f=q[n],R=ca.name,La=ca.namespaceURI;f=Bb(f.value);var Y=ha(R);G.attrName=Y;G.attrValue=f;G.keepAttr=!0;G.forceKeepAttr=void 0;d("uponSanitizeAttribute",e,G);f=G.attrValue;if(!G.forceKeepAttr&&(D(R,e),G.keepAttr))if(V(/\/>/i,f))D(R,e);else{ia&&(f=zb(f,dc," "),f=zb(f,ec," "));var Nc=ha(e.nodeName);if(b(Nc,Y,f))try{La?e.setAttributeNS(La,R,f):e.setAttribute(R,f),vb(p.removed)}catch(qd){}}}d("afterSanitizeAttributes",e,null)}}function b(e,f,n){if(Nb&&("id"===f||"name"===f)&&(n in P||n in Oc))return!1;if(!fb||gb[f]||!V(fc,f))if(!Ob||!V(gc,f))if(!K[f]||gb[f]||!(hb[f]||V(ya,zb(n,jc,""))||("src"===f||"xlink:href"===f||"href"===f)&&"script"!==e&&0===Ab(n,"data:")&&Pb[e]||Qb&&!V(ic,zb(n,jc,"")))&&n)return!1;return!0}function c(e){d("beforeSanitizeElements",e,null);if(m(e)||yb(e.nodeName,/[\u0080-\uFFFF]/))return y(e),!0;var f=ha(e.nodeName);d("uponSanitizeElement",e,{tagName:f,allowedTags:F});if(!(h(e.firstElementChild)||h(e.content)&&h(e.content.firstElementChild))&&V(/<[/\w]/g,e.innerHTML)&&V(/<[/\w]/g,e.textContent)||"select"===f&&V(/<template/i,e.innerHTML))return y(e),!0;if(!F[f]||ib[f]){if(jb&&!ja[f]){var n=A(e)||e.parentNode,q=C(e)||e.childNodes;if(q&&n)for(f=q.length-1;0<=f;--f)n.insertBefore(r(q[f],!0),w(e))}y(e);return!0}if(e instanceof Ma&&!E(e)||("noscript"===f||"noembed"===f)&&V(/<\/no(script|embed)/i,e.innerHTML))return y(e),!0;ia&&3===e.nodeType&&(f=e.textContent,f=zb(f,dc," "),f=zb(f,ec," "),e.textContent!==f&&(wb(p.removed,{element:e.cloneNode()}),e.textContent=f));d("afterSanitizeElements",e,null);return!1}function d(e,f,n){I[e]&&ub(I[e],(function(q){q.call(p,f,n,ka)}))}function h(e){return"object"===("undefined"===typeof la?"undefined":kc(la))?e instanceof la:e&&"object"===("undefined"===typeof e?"undefined":kc(e))&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName}function m(e){return e instanceof za||e instanceof g?!1:"string"===typeof e.nodeName&&"string"===typeof e.textContent&&"function"===typeof e.removeChild&&e.attributes instanceof kb&&"function"===typeof e.removeAttribute&&"function"===typeof e.setAttribute&&"string"===typeof e.namespaceURI&&"function"===typeof e.insertBefore?!1:!0}function x(e){return H.call(e.ownerDocument||e,e,ma.SHOW_ELEMENT|ma.SHOW_COMMENT|ma.SHOW_TEXT,null,!1)}function t(e){var f=void 0,n=void 0;if(lb)e="<remove></remove>"+e;else{var q=yb(e,/^[\r\n\t ]+/);n=q&&q[0]}"application/xhtml+xml"===na&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var G=u?u.createHTML(e):e;if("http://www.w3.org/1999/xhtml"===Na)try{f=(new k).parseFromString(G,na)}catch(ca){}if(!f||!f.documentElement){f=da.createDocument(Na,"template",null);try{f.documentElement.innerHTML=Rb?"":G}catch(ca){}}q=f.body||f.documentElement;e&&n&&q.insertBefore(P.createTextNode(n),q.childNodes[0]||null);return"http://www.w3.org/1999/xhtml"===Na?U.call(f,oa?"html":"body")[0]:oa?f.documentElement:q}function D(e,f){try{wb(p.removed,{attribute:f.getAttributeNode(e),from:f})}catch(n){wb(p.removed,{attribute:null,from:f})}f.removeAttribute(e);if("is"===e&&!K[e])if(pa||Oa)try{y(f)}catch(n){}else try{f.setAttribute(e,"")}catch(n){}}function y(e){wb(p.removed,{element:e});try{e.parentNode.removeChild(e)}catch(f){try{e.outerHTML=M}catch(n){e.remove()}}}function E(e){var f=A(e);f&&f.tagName||(f={namespaceURI:"http://www.w3.org/1999/xhtml",tagName:"template"});var n=xb(e.tagName),q=xb(f.tagName);if("http://www.w3.org/2000/svg"===e.namespaceURI)return"http://www.w3.org/1999/xhtml"===f.namespaceURI?"svg"===n:"http://www.w3.org/1998/Math/MathML"===f.namespaceURI?"svg"===n&&("annotation-xml"===q||Sb[q]):!!Pa[n];if("http://www.w3.org/1998/Math/MathML"===e.namespaceURI)return"http://www.w3.org/1999/xhtml"===f.namespaceURI?"math"===n:"http://www.w3.org/2000/svg"===f.namespaceURI?"math"===n&&Tb[q]:!!mb[n];if("http://www.w3.org/1999/xhtml"===e.namespaceURI){if("http://www.w3.org/2000/svg"===f.namespaceURI&&!Tb[q]||"http://www.w3.org/1998/Math/MathML"===f.namespaceURI&&!Sb[q])return!1;var G=W({},["title","style","font","a","script"]);return!mb[n]&&(G[n]||!Pa[n])}return!1}function z(e){ka&&ka===e||(e&&"object"===("undefined"===typeof e?"undefined":kc(e))||(e={}),e=Eb(e),F="ALLOWED_TAGS"in e?W({},e.ALLOWED_TAGS):Ub,K="ALLOWED_ATTR"in e?W({},e.ALLOWED_ATTR):Vb,hb="ADD_URI_SAFE_ATTR"in e?W(Eb(Wb),e.ADD_URI_SAFE_ATTR):Wb,Pb="ADD_DATA_URI_TAGS"in e?W(Eb(Xb),e.ADD_DATA_URI_TAGS):Xb,ja="FORBID_CONTENTS"in e?W({},e.FORBID_CONTENTS):Yb,ib="FORBID_TAGS"in e?W({},e.FORBID_TAGS):{},gb="FORBID_ATTR"in e?W({},e.FORBID_ATTR):{},qa="USE_PROFILES"in e?e.USE_PROFILES:!1,Ob=!1!==e.ALLOW_ARIA_ATTR,fb=!1!==e.ALLOW_DATA_ATTR,Qb=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ia=e.SAFE_FOR_TEMPLATES||!1,oa=e.WHOLE_DOCUMENT||!1,pa=e.RETURN_DOM||!1,Oa=e.RETURN_DOM_FRAGMENT||!1,Zb=!1!==e.RETURN_DOM_IMPORT,Qa=e.RETURN_TRUSTED_TYPE||!1,lb=e.FORCE_BODY||!1,Nb=!1!==e.SANITIZE_DOM,jb=!1!==e.KEEP_CONTENT,Aa=e.IN_PLACE||!1,ya=e.ALLOWED_URI_REGEXP||ya,Na=e.NAMESPACE||"http://www.w3.org/1999/xhtml",na=-1===Pc.indexOf(e.PARSER_MEDIA_TYPE)?na="text/html":na=e.PARSER_MEDIA_TYPE,ha="application/xhtml+xml"===na?function(f){return f}:xb,ia&&(fb=!1),Oa&&(pa=!0),qa&&(F=W({},[].concat(X(Mb))),K=[],!0===qa.html&&(W(F,Gb),W(K,$b)),!0===qa.svg&&(W(F,Hb),W(K,ac),W(K,cc)),!0===qa.svgFilters&&(W(F,Ib),W(K,ac),W(K,cc)),!0===qa.mathMl&&(W(F,Kb),W(K,bc),W(K,cc))),e.ADD_TAGS&&(F===Ub&&(F=Eb(F)),W(F,e.ADD_TAGS)),e.ADD_ATTR&&(K===Vb&&(K=Eb(K)),W(K,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&W(hb,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(ja===Yb&&(ja=Eb(ja)),W(ja,e.FORBID_CONTENTS)),jb&&(F["#text"]=!0),oa&&W(F,["html","head","body"]),F.table&&(W(F,["tbody"]),delete ib.tbody),O&&O(e),ka=e)}function p(e){return mc(e)}var B=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"undefined"===typeof window?null:window;p.version="2.3.3";p.removed=[];if(!B||!B.document||9!==B.document.nodeType)return p.isSupported=!1,p;var Q=B.document,P=B.document,Ra=B.DocumentFragment,fa=B.HTMLTemplateElement,la=B.Node,Ma=B.Element,ma=B.NodeFilter,ra=B.NamedNodeMap,kb=void 0===ra?B.NamedNodeMap||B.MozNamedAttrMap:ra,za=B.Text,g=B.Comment,k=B.DOMParser;ra=B.trustedTypes;var l=Ma.prototype,r=Fb(l,"cloneNode"),w=Fb(l,"nextSibling"),C=Fb(l,"childNodes"),A=Fb(l,"parentNode");"function"===typeof fa&&(fa=P.createElement("template"),fa.content&&fa.content.ownerDocument&&(P=fa.content.ownerDocument));var u=lc(ra,Q),M=u&&Qa?u.createHTML(""):"",N=P,da=N.implementation,H=N.createNodeIterator,J=N.createDocumentFragment,U=N.getElementsByTagName,sa=Q.importNode,ta={};try{ta=Eb(P).documentMode?P.documentMode:{}}catch(e){}var I={};p.isSupported="function"===typeof A&&da&&"undefined"!==typeof da.createHTMLDocument&&9!==ta;var ya=hc,F=null,Ub=W({},[].concat(X(Gb),X(Hb),X(Ib),X(Kb),X(Mb))),K=null,Vb=W({},[].concat(X($b),X(ac),X(bc),X(cc))),ib=null,gb=null,Ob=!0,fb=!0,Qb=!1,ia=!1,oa=!1,nb=!1,lb=!1,pa=!1,Oa=!1,Zb=!0,Qa=!1,Nb=!0,jb=!0,Aa=!1,qa={},ja=null,Yb=W({},"annotation-xml audio colgroup desc foreignobject head iframe math mi mn mo ms mtext noembed noframes noscript plaintext script style svg template thead title video xmp".split(" ")),Pb=null,Xb=W({},"audio video img source image track".split(" ")),hb=null,Wb=W({},"alt class for id label name pattern placeholder role summary title value style xmlns".split(" ")),Na="http://www.w3.org/1999/xhtml",Rb=!1,na=void 0,Pc=["application/xhtml+xml","text/html"],ha=void 0,ka=null,Oc=P.createElement("form"),Sb=W({},["mi","mo","mn","ms","mtext"]),Tb=W({},["foreignobject","desc","title","annotation-xml"]),Pa=W({},Hb);W(Pa,Ib);W(Pa,Jb);var mb=W({},Kb);W(mb,Lb);var Qc=function n(f){var q=void 0,G=x(f);for(d("beforeSanitizeShadowDOM",f,null);q=G.nextNode();)d("uponSanitizeShadowNode",q,null),c(q)||(q.content instanceof Ra&&n(q.content),a(q));d("afterSanitizeShadowDOM",f,null)};p.sanitize=function(f,n){var q=void 0,G=void 0,ca=void 0,R=void 0;(Rb=!f)&&(f="\x3c!--\x3e");if("string"!==typeof f&&!h(f)){if("function"!==typeof f.toString)throw Db("toString is not a function");f=f.toString();if("string"!==typeof f)throw Db("dirty is not a string, aborting")}if(!p.isSupported){if("object"===kc(B.toStaticHTML)||"function"===typeof B.toStaticHTML){if("string"===typeof f)return B.toStaticHTML(f);if(h(f))return B.toStaticHTML(f.outerHTML)}return f}nb||z(n);p.removed=[];"string"===typeof f&&(Aa=!1);if(!Aa)if(f instanceof la)q=t("\x3c!----\x3e"),G=q.ownerDocument.importNode(f,!0),1===G.nodeType&&"BODY"===G.nodeName?q=G:"HTML"===G.nodeName?q=G:q.appendChild(G);else{if(!pa&&!ia&&!oa&&-1===f.indexOf("<"))return u&&Qa?u.createHTML(f):f;q=t(f);if(!q)return pa?null:M}q&&lb&&y(q.firstChild);for(var La=x(Aa?f:q);n=La.nextNode();)3===n.nodeType&&n===ca||c(n)||(n.content instanceof Ra&&Qc(n.content),a(n),ca=n);ca=null;if(Aa)return f;if(pa){if(Oa)for(R=J.call(q.ownerDocument);q.firstChild;)R.appendChild(q.firstChild);else R=q;Zb&&(R=sa.call(Q,R,!0));return R}var Y=oa?q.outerHTML:q.innerHTML;ia&&(Y=zb(Y,dc," "),Y=zb(Y,ec," "));return u&&Qa?u.createHTML(Y):Y};p.setConfig=function(f){z(f);nb=!0};p.clearConfig=function(){ka=null;nb=!1};p.isValidAttribute=function(f,n,q){ka||z({});f=ha(f);n=ha(n);return b(f,n,q)};p.addHook=function(f,n){"function"===typeof n&&(I[f]=I[f]||[],wb(I[f],n))};p.removeHook=function(f){I[f]&&vb(I[f])};p.removeHooks=function(f){I[f]&&(I[f]=[])};p.removeAllHooks=function(){I={}};return p}var nc=mc();function oc(a){var b=a.documentElement;return["⚡4email","amp4email"].some((function(c){return b.hasAttribute(c)}))}var pc=/(\S+)(?:\s+(?:(-?\d+(?:\.\d+)?)([a-zA-Z]*)))?\s*(?:,|$)/g;function qc(a){for(var c,b=[];c=pc.exec(a);){var d=c[1],h=void 0,m=void 0;if(c[2]){var x=c[3].toLowerCase();if("w"==x)h=parseInt(c[2],10);else if("x"==x)m=parseFloat(c[2]);else continue}else m=1;b.push({url:d,width:h,dpr:m})}return new rc(b)}function rc(a){Fa(0<a.length,"Srcset must have at least one source");this.j=a;for(var b=!1,c=!1,d=0;d<a.length;d++){var h=a[d];b=b||!!h.width;c=c||!!h.dpr}Fa(!!(b^c),"Srcset must have width or dpr sources, but not both");a.sort(b?sc:tc);this.I=b}rc.prototype.select=function(a,b){if(this.I){b*=a;a=this.j;for(var c=0,d=1/0,h=1/0,m=0;m<a.length;m++){var x=a[m].width,t=Math.abs(x-b);if(t<=1.1*d||1.2<b/h)c=m,d=t,h=x;else break}b=c}else{a=this.j;c=0;d=1/0;for(h=0;h<a.length;h++)if(m=Math.abs(a[h].dpr-b),m<=d)c=h,d=m;else break;b=c}return this.j[b].url};rc.prototype.getUrls=function(){return this.j.map((function(a){return a.url}))};rc.prototype.stringify=function(a){for(var b=[],c=this.j,d=0;d<c.length;d++){var h=c[d],m=h.url;a&&(m=a(m));m=this.I?m+" "+h.width+"w":m+" "+h.dpr+"x";b.push(m)}return b.join(", ")};function sc(a,b){Fa(a.width!=b.width,"Duplicate width: %s",a.width);return a.width-b.width}function tc(a,b){Fa(a.dpr!=b.dpr,"Duplicate dpr: %s",a.dpr);return a.dpr-b.dpr}function uc(){this.J=100;this.B=this.D=0;this.o=Object.create(null)}uc.prototype.has=function(a){return!!this.o[a]};uc.prototype.get=function(a){var b=this.o[a];if(b)return b.access=++this.B,b.payload};uc.prototype.put=function(a,b){this.has(a)||this.D++;this.o[a]={payload:b,access:this.B};if(!(this.D<=this.J)){a=this.o;var d,c=this.B+1;for(d in a){var h=a[d].access;if(h<c){c=h;var m=d}}void 0!==m&&(delete a[m],this.D--)}};var wc,xc,vc=new Set(["c","v","a","ad"]);function yc(a){return"string"==typeof a?zc(a):a}function zc(a){wc||(wc=self.document.createElement("a"),xc=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new uc));var b=wc,c=xc;if(c&&c.has(a))a=c.get(a);else{b.href=a;b.protocol||(b.href=b.href);var d={href:b.href,protocol:b.protocol,host:b.host,hostname:b.hostname,port:"0"==b.port?"":b.port,pathname:b.pathname,search:b.search,hash:b.hash,origin:null};"/"!==d.pathname[0]&&(d.pathname="/"+d.pathname);if("http:"==d.protocol&&80==d.port||"https:"==d.protocol&&443==d.port)d.port="",d.host=d.hostname;d.origin=b.origin&&"null"!=b.origin?b.origin:"data:"!=d.protocol&&d.host?d.protocol+"//"+d.host:d.href;c&&c.put(a,d);a=d}return a}function Ac(a){a=yc(a);if(!Ja.cdnProxyRegex.test(yc(a).origin))return a.href;var b=a.pathname.split("/");Va(vc.has(b[1]),"Unknown path prefix in url %s",a.href);var c=b[2],d="s"==c?"https://"+decodeURIComponent(b[3]):"http://"+decodeURIComponent(c);Va(0<d.indexOf("."),"Expected a . in origin %s",d);b.splice(1,"s"==c?3:2);b=d+b.join("/");d=(d=a.search)&&"?"!=d?(d=d.replace(/[?&](amp_(js[^&=]*|gsa|r|kit)|usqp)\b[^&]*/g,"").replace(/^[?&]/,""))?"?"+d:"":"";return b+d+(a.hash||"")}function Bc(a,b){b=yc(b);if("function"==typeof URL)var c=new URL(a,b.href).toString();else{c=a;var d=yc(b);c=c.replace(/\\/g,"/");var h=zc(c);c=c.toLowerCase().startsWith(h.protocol)?h.href:c.startsWith("//")?d.protocol+c:c.startsWith("/")?d.origin+c:d.origin+d.pathname.replace(/\/[^/]*$/,"/")+c}return c}function Cc(a){var b=zc(a).search,c=Object.create(null);if(b)for(var d;d=Ka.exec(b);){var h=Sa(d[1],d[1]);d=d[2]?Sa(d[2].replace(/\+/g," "),d[2]):"";c[h]=d}Va(!("__amp_source_origin"in c),"Source origin is not allowed in %s",a)}function Dc(a,b,c){return Ec(b)?Fc(a,b,c):c}function Ec(a){return"src"==a||"href"==a||"xlink:href"==a||"srcset"==a}function Fc(a,b,c){var d=self.location;Cc(c);var h=Ja.cdnProxyRegex.test(yc(d).origin),m=zc(Ac(d));if("href"==b&&!c.startsWith("#"))return Bc(c,m);if("src"==b)return"amp-img"==a?Gc(c,m,h):Bc(c,m);if("srcset"==b){try{var x=qc(c)}catch(t){return Ua().error("URL-REWRITE","Failed to parse srcset: ",t),c}return x.stringify((function(t){return Gc(t,m,h)}))}return c}function Gc(a,b,c){a=zc(Bc(a,b));return"data:"==a.protocol||Ja.cdnProxyRegex.test(yc(a).origin)||!c?a.href:Ja.cdn+"/i/"+("https:"==a.protocol?"s/":"")+encodeURIComponent(a.host)+a.pathname+(a.search||"")+(a.hash||"")}var Hc={"AMP-IMG":["src","srcset","layout","width","height"]};function Ic(a,b){var c=a.tagName.startsWith("AMP-"),d=a.hasAttribute("i-amphtml-binding");if(!d&&Hc[a.tagName])a.setAttribute("i-amphtml-ignore","");else if(d||c)a.hasAttribute("i-amphtml-key")||a.setAttribute("i-amphtml-key",b())}var Jc={applet:!0,audio:!0,base:!0,embed:!0,frame:!0,frameset:!0,iframe:!0,img:!0,link:!0,meta:!0,object:!0,style:!0,video:!0},Kc={"amp-accordion":!0,"amp-anim":!0,"amp-bind-macro":!0,"amp-carousel":!0,"amp-fit-text":!0,"amp-img":!0,"amp-layout":!0,"amp-selector":!0,"amp-sidebar":!0,"amp-timeago":!0},Lc="a amp-img article aside b blockquote br caption code col colgroup dd del details div dl dt em figcaption figure footer h1 h2 h3 header hr i ins li main mark nav ol p pre q s section small span strong sub summary sup table tbody td tfoot th thead time tr u ul".split(" "),Mc="amp-fx fallback heights layout min-font-size max-font-size on option placeholder submitting submit-success submit-error validation-for verify-error visible-when-invalid href style text subscriptions-action subscriptions-actions subscriptions-decorate subscriptions-dialog subscriptions-display subscriptions-section subscriptions-service subscriptions-google-rtc amp-nested-submenu amp-nested-submenu-open amp-nested-submenu-close itemprop".split(" "),Rc={a:["rel","target"],div:["template"],form:["action-xhr","verify-xhr","custom-validation-reporting","target"],input:["mask-output"],template:["type"],textarea:["autoexpand"]},Sc=["_top","_blank"],Tc=/^(?:\w+script|data|blob):/i,Uc=/^(?:blob):/i,Vc=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,Wc=Object.freeze(Ca({input:{type:/(?:image|button)/i}})),Xc=Object.freeze(Ca({input:{type:/(?:button|file|image|password)/i}})),Yc=Object.freeze("form formaction formmethod formtarget formnovalidate formenctype".split(" ")),Zc=Object.freeze(Ca({input:Yc,textarea:Yc,select:Yc})),$c=Object.freeze(Ca({"amp-anim":["controls"],form:["name"]})),ad=/!important|position\s*:\s*fixed|position\s*:\s*sticky/i;function bd(a,b,c,d){var h=!0,m=h=void 0===h?!1:h,x=c?c.replace(Vc,""):"";if(!m){if(b.startsWith("on")&&"on"!=b)return!1;var t=x.toLowerCase();if(0<=t.indexOf("<script")||0<=t.indexOf("</script")||Tc.test(x))return!1}if(Uc.test(x))return!1;if("style"==b)return!ad.test(c);if("class"==b&&c&&/(^|\W)i-amphtml-/i.test(c)||Ec(b)&&/__amp_source_origin/.test(c))return!1;var D=oc(d),y=Object.assign(Object.create(null),Zc,D?$c:{})[a];if(y&&-1!=y.indexOf(b))return!1;var E=Object.assign(Object.create(null),Wc,D?Xc:{})[a];if(E){var z=E[b];if(z&&-1!=c.search(z))return!1}return!0}var cd={script:{attribute:"type",values:["application/json","application/ld+json"]}},dd={USE_PROFILES:{html:!0,svg:!0,svgFilters:!0}};function ed(a){this.A=a;this.K=1;this.h=nc(self);this.F=nc(self);a=Object.assign({},Object.assign({},dd,{ADD_ATTR:Mc,ADD_TAGS:["use"],FORBID_TAGS:Object.keys(Jc),FORCE_BODY:!0,RETURN_DOM:!0,ALLOW_UNKNOWN_PROTOCOLS:!0}));this.h.setConfig(a);fd(this,this.h);gd(this.F)}ed.prototype.purifyHtml=function(a){return this.h.sanitize(a)};ed.prototype.purifyTagsForTripleMustache=function(a){a=this.F.sanitize(a,{ALLOWED_TAGS:Lc,FORCE_BODY:!0,RETURN_DOM_FRAGMENT:!0});var b=this.A.createElement("div");b.appendChild(a);return b.innerHTML};ed.prototype.getAllowedTags=function(){var a={};this.h.addHook("uponSanitizeElement",(function(c,d){Object.assign(a,d.allowedTags)}));var b=this.A.createElement("p");this.h.sanitize(b);Object.keys(Jc).forEach((function(c){a[c]=!1}));this.h.removeHook("uponSanitizeElement");return a};ed.prototype.validateAttributeChange=function(a,b,c){var d=a.nodeName.toLowerCase(),h=cd[d];if(h){var m=h.values;if(h.attribute===b&&(null==c||!m.includes(c)))return!1}if("a"===d&&"target"===b&&(null==c||!Sc.includes(c)))return!1;if(null==c)return!0;if(hd(b)!==id)return!1;if(!this.h.isValidAttribute(d,b,c)){var x=Rc[d];if(!(x&&x.includes(b)||d.startsWith("amp-")))return!1}a=a.ownerDocument?a.ownerDocument:a;return c&&!bd(d,b,c,a)?!1:!0};function fd(a,b){var d,m,c=oc(a.A),h=[],x=[];b.addHook("uponSanitizeElement",(function(t,D){var y=D.tagName;d=D.allowedTags;y.startsWith("amp-")&&(d[y]=!c||Kc[y]);"a"===y&&t.hasAttribute("href")&&!t.hasAttribute("target")&&t.setAttribute("target","_top");var E=cd[y];E&&(D=E.attribute,E=E.values,t.hasAttribute(D)&&E.includes(t.getAttribute(D))&&(d[y]=!0,h.push(y)))}));b.addHook("afterSanitizeElements",(function(){h.forEach((function(t){delete d[t]}));h.length=0}));b.addHook("uponSanitizeAttribute",(function(t,D){function y(){m[z]||(m[z]=!0,x.push(z))}var E=t.nodeName.toLowerCase(),z=D.attrName,p=D.attrValue;m=D.allowedAttributes;if(E.startsWith("amp-"))y();else{if("a"==E&&"target"==z){var B=p.toLowerCase();p=Sc.includes(B)?B:"_top"}var Q=Rc[E];Q&&Q.includes(z)&&y()}var P=hd(z);P===jd&&(Q=z.substring(1,z.length-1),t.setAttribute("data-amp-bind-"+Q,p));P!==id&&t.setAttribute("i-amphtml-binding","");bd(E,z,p,a.A)?Dc&&p&&!z.startsWith("data-amp-bind-")&&(p=Dc(E,z,p)):(D.keepAttr=!1,Ua().error("purifier",'Removed invalid attribute %s[%s="%s"].',E,z,p));D.attrValue=p}));b.addHook("afterSanitizeAttributes",(function(t){Ic(t,(function(){return String(a.K++)}));x.forEach((function(D){delete m[D]}));x.length=0;"use"===t.nodeName.toLowerCase()&&["href","xlink:href"].forEach((function(D){if(t.hasAttribute(D)&&!t.getAttribute(D).startsWith("#")){var y;null==(y=t.parentElement)||y.removeChild(t);Ua().error("purifier",'Removed invalid <use>. use[href] must start with "#".')}}))}))}function gd(a){var b;a.addHook("uponSanitizeElement",(function(c,d){var h=d.tagName;b=d.allowedTags;"template"===h&&(c=c.getAttribute("type"))&&"amp-mustache"===c.toLowerCase()&&(b.template=!0)}));a.addHook("afterSanitizeElements",(function(){b.template=!1}))}var id=0,jd=1,kd=2;function hd(a){return"["==a[0]&&"]"==a[a.length-1]?jd:a.startsWith("data-amp-bind-")?kd:id}
/* mustache.js - Logic-less {{mustache}} templates with JavaScript http://github.com/janl/mustache.js */
var ld={};(function(a){function b(g){return"function"===typeof g}function c(g){return Q(g)?"array":typeof g}function d(g){return g.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function h(g,k){return null!=g&&"object"===typeof g&&Object.prototype.hasOwnProperty.call(g,k)}function m(g,k){return P.call(g,k)}function x(g){return!m(Ra,g)}function t(g,k){function l(){if(A&&!u)for(;C.length;)delete w[C.pop()];else C=[];u=A=!1}if(!g)return[];var M,N,da,r=[],w=[],C=[],A=!1,u=!1;(function(F){"string"===typeof F&&(F=F.split(Ma,2));if(!Q(F)||2!==F.length)throw Error("Invalid tags: "+F);M=new RegExp(d(F[0])+"\\s*");N=new RegExp("\\s*"+d(F[1]));da=new RegExp("\\s*"+d("}"+F[1]))})(k||a.tags);for(var J,U,sa,ta,I,H=new E(g);!H.eos();){g=H.pos;if(U=H.scanUntil(M)){J=0;for(var ya=U.length;J<ya;++J)sa=U.charAt(J),x(sa)?C.push(w.length):u=!0,w.push(["text",sa,g,g+1]),g+=1,"\n"===sa&&l()}if(!H.scan(M))break;A=!0;J=H.scan(kb)||"name";H.scan(la);"="===J?(U=H.scanUntil(ma),H.scan(ma),H.scanUntil(N)):"{"===J?(U=H.scanUntil(da),H.scan(ra),H.scanUntil(N),J="&"):U=H.scanUntil(N);if(!H.scan(N))throw Error("Unclosed tag at "+H.pos);ta=[J,U,g,H.pos];w.push(ta);if("#"===J||"^"===J)r.push(ta);else if("/"===J){I=r.pop();if(!I)throw Error('Unopened section "'+U+'" at '+g);if(I[1]!==U)throw Error('Unclosed section "'+I[1]+'" at '+g)}else if("name"===J||"{"===J||"&"===J)u=!0}if(I=r.pop())throw Error('Unclosed section "'+I[1]+'" at '+H.pos);return y(D(w))}function D(g){for(var l,r,k=[],w=0,C=g.length;w<C;++w)if(l=g[w])"text"===l[0]&&r&&"text"===r[0]?(r[1]+=l[1],r[3]=l[3]):(k.push(l),r=l);return k}function y(g){for(var w,C,k=[],l=k,r=[],A=0,u=g.length;A<u;++A)switch(w=g[A],w[0]){case"#":case"^":l.push(w);r.push(w);l=w[4]=[];break;case"/":C=r.pop();C[5]=w[2];l=0<r.length?r[r.length-1][4]:k;break;default:l.push(w)}return k}function E(g){this.tail=this.string=g;this.pos=0}function z(g,k){this.view=g;this.cache={".":this.view};this.parent=k}function p(){this.cache={}}var B=Object.prototype.toString,Q=Array.isArray||function(g){return"[object Array]"===B.call(g)},P=RegExp.prototype.test,Ra=/\S/,fa={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},la=/\s*/,Ma=/\s+/,ma=/\s*=/,ra=/\s*\}/,kb=/#|\^|\/|>|\{|&|=|!/;E.prototype.eos=function(){return""===this.tail};E.prototype.scan=function(g){g=this.tail.match(g);if(!g||0!==g.index)return"";g=g[0];this.tail=this.tail.substring(g.length);this.pos+=g.length;return g};E.prototype.scanUntil=function(g){g=this.tail.search(g);switch(g){case-1:var k=this.tail;this.tail="";break;case 0:k="";break;default:k=this.tail.substring(0,g),this.tail=this.tail.substring(g)}this.pos+=k.length;return k};z.prototype.push=function(g){return new z(g,this)};z.prototype.lookup=function(g){var k=this.cache;if(k.hasOwnProperty(g))var l=k[g];else{for(var w,C,r=this,A=!1;r;){if(0<g.indexOf("."))for(l=r.view,w=g.split("."),C=0;null!=l&&C<w.length;){if(!h(l,w[C])){l=null;break}C===w.length-1&&(A=!0);l=l[w[C++]]}else h(r.view,g)?(l=r.view[g],A=!0):l=null;if(A)break;r=r.parent}k[g]=l}b(l)&&(l=l.call(this.view));return l};p.prototype.clearCache=function(){this.cache={}};p.prototype.parse=function(g,k){var l=this.cache,r=l[g];null==r&&(r=l[g]=t(g,k));return r};p.prototype.render=function(g,k,l){var r=this.parse(g);k=k instanceof z?k:new z(k);return this.renderTokens(r,k,l,g)};p.prototype.renderTokens=function(g,k,l,r){for(var C,A,u,w="",M=0,N=g.length;M<N;++M)u=void 0,C=g[M],A=C[0],"#"===A?u=this.renderSection(C,k,l,r):"^"===A?u=this.renderInverted(C,k,l,r):">"===A?u=this.renderPartial(C,k,l,r):"&"===A?u=this.unescapedValue(C,k):"name"===A?u=this.escapedValue(C,k):"text"===A&&(u=this.rawValue(C)),void 0!==u&&(w+=u);return w};p.prototype.renderSection=function(g,k,l,r){function w(da){return C.render(da,k,l)}var C=this,A="",u=k.lookup(g[1]);if(u){if(Q(u))for(var M=0,N=u.length;M<N;++M)A+=this.renderTokens(g[4],k.push(u[M]),l,r);else if("object"===typeof u||"string"===typeof u||"number"===typeof u)A+=this.renderTokens(g[4],k.push(u),l,r);else if(b(u)){if("string"!==typeof r)throw Error("Cannot use higher-order sections without the original template");u=u.call(k.view,r.slice(g[3],g[5]),w);null!=u&&(A+=u)}else A+=this.renderTokens(g[4],k,l,r);return A}};p.prototype.renderInverted=function(g,k,l,r){var w=k.lookup(g[1]);if(!w||Q(w)&&0===w.length)return this.renderTokens(g[4],k,l,r)};p.prototype.renderPartial=function(g,k,l){if(l&&(g=b(l)?l(g[1]):l[g[1]],null!=g))return this.renderTokens(this.parse(g),k,l,g)};p.prototype.unescapedValue=function(g,k){g=k.lookup(g[1]);if(null!=g)return a.sanitizeUnescaped?a.sanitizeUnescaped(g):g};p.prototype.escapedValue=function(g,k){g=k.lookup(g[1]);if(null!=g)return a.escape(g)};p.prototype.rawValue=function(g){return g[1]};a.name="mustache.js";a.version="2.2.0";a.tags=["{{","}}"];var za=new p;a.clearCache=function(){return za.clearCache()};a.parse=function(g,k){return za.parse(g,k)};a.render=function(g,k,l){if("string"!==typeof g)throw new TypeError('Invalid template! Template should be a "string" but "'+c(g)+'" was given as the first argument for mustache#render(template, view, partials)');return za.render(g,k,l)};a.to_html=function(g,k,l,r){g=a.render(g,k,l);if(b(r))r(g);else return g};a.escape=function(g){return String(g).replace(/[&<>"'`=\/]/g,(function(k){return fa[k]}))};a.sanitizeUnescaped=null;a.setUnescapedSanitizer=function(g){a.sanitizeUnescaped=g};a.Scanner=E;a.Context=z;a.Writer=p})(ld);function Z(a,b){ab.call(this,a,b);var c=this;Wa(b,(function(){return new ed(b.document)}));this.C=Za(b,"purifier");ld.setUnescapedSanitizer((function(d){return c.C.purifyTagsForTripleMustache(d)}))}Z.prototype=ba(ab.prototype);Z.prototype.constructor=Z;if(xa)xa(Z,ab);else for(var md in ab)if("prototype"!=md)if(Object.defineProperties){var nd=Object.getOwnPropertyDescriptor(ab,md);nd&&Object.defineProperty(Z,md,nd)}else Z[md]=ab[md];Z.M=ab.prototype;Z.prototype.compileCallback=function(){if(!this.viewerCanRenderTemplates()){this.G={};if("TEMPLATE"==this.element.tagName){var a=this.element;if("content"in a)var b=a.content.cloneNode(!0);else{b=a.ownerDocument.createDocumentFragment();var c=b.ownerDocument.createDocumentFragment();for(a=a.firstChild;a;a=a.nextSibling)c.appendChild(a.cloneNode(!0));b.appendChild(c)}od(this,b);c=this.element.ownerDocument.createElement("div");c.appendChild(b);b=c.innerHTML}else b="SCRIPT"==this.element.tagName?this.element.textContent:"";this.H=b;try{ld.parse(this.H,void 0)}catch(d){Ua().error("amp-mustache",d.message,this.element)}}};function od(a,b){var c=b.querySelectorAll("template");Ga(c,(function(d,h){h="__AMP_NESTED_TEMPLATE_"+h;a.G[h]=d.outerHTML;var m=a.element.ownerDocument.createTextNode("{{{"+h+"}}}");d.parentNode.replaceChild(m,d)}))}Z.prototype.setHtml=function(a){var b=this.tryUnwrap(this.C.purifyHtml("<div><div>"+a+"</div></div>").firstElementChild);return this.unwrapChildren(b)};Z.prototype.render=function(a){return this.tryUnwrap(pd(this,a))};Z.prototype.renderAsString=function(a){return pd(this,a).innerHTML};function pd(a,b){var c=b;"object"===typeof b&&(c=Object.assign({},b,a.G));b=ld.render(a.H,c,void 0);return a.C.purifyHtml("<div>"+b+"</div>").firstElementChild}AMP.registerTemplate("amp-mustache",Z)}});//# sourceMappingURL=amp-mustache-0.2.js.map

Back to list