UNPKG

sth-qrcode

Version:

A web component to generate QR codes for SmartHoldem payments.

74 lines 54.1 kB
/*!
 template
 Copyright (c) 2016 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
*/
(function(){var e="undefined"===typeof HTMLTemplateElement;/Trident/.test(navigator.userAgent)&&function(){var a=Document.prototype.importNode;Document.prototype.importNode=function(){var c=a.apply(this,arguments);if(c.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var f=this.createDocumentFragment();f.appendChild(c);return f}return c}}();var g=Node.prototype.cloneNode,t=Document.prototype.createElement,u=Document.prototype.importNode,l=function(){if(!e){var a=document.createElement("template"),c=document.createElement("template");
c.content.appendChild(document.createElement("div"));a.content.appendChild(c);a=a.cloneNode(!0);return 0===a.content.childNodes.length||0===a.content.firstChild.content.childNodes.length||!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment)}}(),b=function(){};if(e){var d=document.implementation.createHTMLDocument("template"),m=!0,n=document.createElement("style");n.textContent="template{display:none;}";var p=document.head;p.insertBefore(n,p.firstElementChild);b.prototype=Object.create(HTMLElement.prototype);
var v=!document.createElement("div").hasOwnProperty("innerHTML");b.decorate=function(a){if(!a.content){a.content=d.createDocumentFragment();for(var c;c=a.firstChild;)a.content.appendChild(c);if(v)a.__proto__=b.prototype;else if(a.cloneNode=function(a){return b._cloneNode(this,a)},m)try{q(a),r(a)}catch(f){m=!1}b.bootstrap(a.content)}};var q=function(a){Object.defineProperty(a,"innerHTML",{get:function(){for(var a="",b=this.content.firstChild;b;b=b.nextSibling)a+=b.outerHTML||b.data.replace(w,x);return a},
set:function(a){d.body.innerHTML=a;for(b.bootstrap(d);this.content.firstChild;)this.content.removeChild(this.content.firstChild);for(;d.body.firstChild;)this.content.appendChild(d.body.firstChild)},configurable:!0})},r=function(a){Object.defineProperty(a,"outerHTML",{get:function(){return"<template>"+this.innerHTML+"</template>"},set:function(a){if(this.parentNode){d.body.innerHTML=a;for(a=document.createDocumentFragment();d.body.firstChild;)a.appendChild(d.body.firstChild);this.parentNode.replaceChild(a,
this)}else throw Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");},configurable:!0})};q(b.prototype);r(b.prototype);b.bootstrap=function(a){a=a.querySelectorAll("template");for(var c=0,f=a.length,d;c<f&&(d=a[c]);c++)b.decorate(d)};document.addEventListener("DOMContentLoaded",function(){b.bootstrap(document)});Document.prototype.createElement=function(){var a=t.apply(this,arguments);"template"===a.localName&&b.decorate(a);return a};var w=/[&\u00A0<>]/g,
x=function(a){switch(a){case "&":return"&amp;";case "<":return"&lt;";case ">":return"&gt;";case "\u00a0":return"&nbsp;"}}}if(e||l)b._cloneNode=function(a,b){var c=g.call(a,!1);this.decorate&&this.decorate(c);b&&(c.content.appendChild(g.call(a.content,!0)),this.fixClonedDom(c.content,a.content));return c},b.prototype.cloneNode=function(a){return b._cloneNode(this,a)},b.fixClonedDom=function(a,b){if(b.querySelectorAll)for(var c=b.querySelectorAll("template"),d=a.querySelectorAll("template"),e=0,g=d.length,
h,k;e<g;e++)k=c[e],h=d[e],this.decorate&&this.decorate(k),h.parentNode.replaceChild(k.cloneNode(!0),h)},Node.prototype.cloneNode=function(a){if(this instanceof DocumentFragment)if(a)var c=this.ownerDocument.importNode(this,!0);else return this.ownerDocument.createDocumentFragment();else c=g.call(this,a);a&&b.fixClonedDom(c,this);return c},Document.prototype.importNode=function(a,c){if("template"===a.localName)return b._cloneNode(a,c);var d=u.call(this,a,c);c&&b.fixClonedDom(d,a);return d},l&&(window.HTMLTemplateElement.prototype.cloneNode=
function(a){return b._cloneNode(this,a)});e&&(window.HTMLTemplateElement=b)})();
/*! document-register-element, 1.7.0
https://github.com/WebReflection/document-register-element
(C) Andrea Giammarchi - @WebReflection - Mit Style License */
(function(e,t){"use strict";function Ht(){var e=wt.splice(0,wt.length);Et=0;while(e.length)e.shift().call(null,e.shift())}function Bt(e,t){for(var n=0,r=e.length;n<r;n++)Jt(e[n],t)}function jt(e){for(var t=0,n=e.length,r;t<n;t++)r=e[t],Pt(r,A[It(r)])}function Ft(e){return function(t){ut(t)&&(Jt(t,e),O.length&&Bt(t.querySelectorAll(O),e))}}function It(e){var t=ht.call(e,"is"),n=e.nodeName.toUpperCase(),r=_.call(L,t?N+t.toUpperCase():T+n);return t&&-1<r&&!qt(n,t)?-1:r}function qt(e,t){return-1<O.indexOf(e+'[is="'+t+'"]')}function Rt(e){var t=e.currentTarget,n=e.attrChange,r=e.attrName,i=e.target,s=e[y]||2,o=e[w]||3;kt&&(!i||i===t)&&t[h]&&r!=="style"&&(e.prevValue!==e.newValue||e.newValue===""&&(n===s||n===o))&&t[h](r,n===s?null:e.prevValue,n===o?null:e.newValue)}function Ut(e){var t=Ft(e);return function(e){wt.push(t,e.target),Et&&clearTimeout(Et),Et=setTimeout(Ht,1)}}function zt(e){Ct&&(Ct=!1,e.currentTarget.removeEventListener(S,zt)),O.length&&Bt((e.target||n).querySelectorAll(O),e.detail===l?l:a),st&&Vt()}function Wt(e,t){var n=this;vt.call(n,e,t),Lt.call(n,{target:n})}function Xt(e,t){nt(e,t),Mt?Mt.observe(e,yt):(Nt&&(e.setAttribute=Wt,e[o]=Ot(e),e[u](x,Lt)),e[u](E,Rt)),e[m]&&kt&&(e.created=!0,e[m](),e.created=!1)}function Vt(){for(var e,t=0,n=at.length;t<n;t++)e=at[t],M.contains(e)||(n--,at.splice(t--,1),Jt(e,l))}function $t(e){throw new Error("A "+e+" type is already registered")}function Jt(e,t){var n,r=It(e),i;-1<r&&(Dt(e,A[r]),r=0,t===a&&!e[a]?(e[l]=!1,e[a]=!0,i="connected",r=1,st&&_.call(at,e)<0&&at.push(e)):t===l&&!e[l]&&(e[a]=!1,e[l]=!0,i="disconnected",r=1),r&&(n=e[t+f]||e[i+f])&&n.call(e))}function Kt(){}function Qt(e,t,r){var i=r&&r[c]||"",o=t.prototype,u=tt(o),a=t.observedAttributes||j,f={prototype:u};ot(u,m,{value:function(){if(Q)Q=!1;else if(!this[W]){this[W]=!0,new t(this),o[m]&&o[m].call(this);var e=G[Z.get(t)];(!V||e.create.length>1)&&Zt(this)}}}),ot(u,h,{value:function(e){-1<_.call(a,e)&&o[h].apply(this,arguments)}}),o[d]&&ot(u,p,{value:o[d]}),o[v]&&ot(u,g,{value:o[v]}),i&&(f[c]=i),e=e.toUpperCase(),G[e]={constructor:t,create:i?[i,et(e)]:[e]},Z.set(t,e),n[s](e.toLowerCase(),f),en(e),Y[e].r()}function Gt(e){var t=G[e.toUpperCase()];return t&&t.constructor}function Yt(e){return typeof e=="string"?e:e&&e.is||""}function Zt(e){var t=e[h],n=t?e.attributes:j,r=n.length,i;while(r--)i=n[r],t.call(e,i.name||i.nodeName,null,i.value||i.nodeValue)}function en(e){return e=e.toUpperCase(),e in Y||(Y[e]={},Y[e].p=new K(function(t){Y[e].r=t})),Y[e].p}function tn(){X&&delete e.customElements,B(e,"customElements",{configurable:!0,value:new Kt}),B(e,"CustomElementRegistry",{configurable:!0,value:Kt});for(var t=function(t){var r=e[t];if(r){e[t]=function(t){var i,s;return t||(t=this),t[W]||(Q=!0,i=G[Z.get(t.constructor)],s=V&&i.create.length===1,t=s?Reflect.construct(r,j,i.constructor):n.createElement.apply(n,i.create),t[W]=!0,Q=!1,s||Zt(t)),t},e[t].prototype=r.prototype;try{r.prototype.constructor=e[t]}catch(i){z=!0,B(r,W,{value:e[t]})}}},r=i.get(/^HTML[A-Z]*[a-z]/),o=r.length;o--;t(r[o]));n.createElement=function(e,t){var n=Yt(t);return n?gt.call(this,e,et(n)):gt.call(this,e)},St||(Tt=!0,n[s](""))}var n=e.document,r=e.Object,i=function(e){var t=/^[A-Z]+[a-z]/,n=function(e){var t=[],n;for(n in s)e.test(n)&&t.push(n);return t},i=function(e,t){t=t.toLowerCase(),t in s||(s[e]=(s[e]||[]).concat(t),s[t]=s[t.toUpperCase()]=e)},s=(r.create||r)(null),o={},u,a,f,l;for(a in e)for(l in e[a]){f=e[a][l],s[l]=f;for(u=0;u<f.length;u++)s[f[u].toLowerCase()]=s[f[u].toUpperCase()]=l}return o.get=function(r){return typeof r=="string"?s[r]||(t.test(r)?[]:""):n(r)},o.set=function(n,r){return t.test(n)?i(n,r):i(r,n),o},o}({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"],HTMLEmbedElement:["embed"],HTMLFieldSetElement:["fieldset"],HTMLFontElement:["font"],HTMLFormElement:["form"],HTMLFrameElement:["frame"],HTMLFrameSetElement:["frameset"],HTMLHRElement:["hr"],HTMLHeadElement:["head"],HTMLHeadingElement:["h1","h2","h3","h4","h5","h6"],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"]}});typeof t!="object"&&(t={type:t||"auto"});var s="registerElement",o="__"+s+(e.Math.random()*1e5>>0),u="addEventListener",a="attached",f="Callback",l="detached",c="extends",h="attributeChanged"+f,p=a+f,d="connected"+f,v="disconnected"+f,m="created"+f,g=l+f,y="ADDITION",b="MODIFICATION",w="REMOVAL",E="DOMAttrModified",S="DOMContentLoaded",x="DOMSubtreeModified",T="<",N="=",C=/^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+$/,k=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],L=[],A=[],O="",M=n.documentElement,_=L.indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},D=r.prototype,P=D.hasOwnProperty,H=D.isPrototypeOf,B=r.defineProperty,j=[],F=r.getOwnPropertyDescriptor,I=r.getOwnPropertyNames,q=r.getPrototypeOf,R=r.setPrototypeOf,U=!!r.__proto__,z=!1,W="__dreCEv1",X=e.customElements,V=!/^force/.test(t.type)&&!!(X&&X.define&&X.get&&X.whenDefined),$=r.create||r,J=e.Map||function(){var t=[],n=[],r;return{get:function(e){return n[_.call(t,e)]},set:function(e,i){r=_.call(t,e),r<0?n[t.push(e)-1]=i:n[r]=i}}},K=e.Promise||function(e){function i(e){n=!0;while(t.length)t.shift()(e)}var t=[],n=!1,r={"catch":function(){return r},then:function(e){return t.push(e),n&&setTimeout(i,1),r}};return e(i),r},Q=!1,G=$(null),Y=$(null),Z=new J,et=function(e){return e.toLowerCase()},tt=r.create||function sn(e){return e?(sn.prototype=e,new sn):this},nt=R||(U?function(e,t){return e.__proto__=t,e}:I&&F?function(){function e(e,t){for(var n,r=I(t),i=0,s=r.length;i<s;i++)n=r[i],P.call(e,n)||B(e,n,F(t,n))}return function(t,n){do e(t,n);while((n=q(n))&&!H.call(n,t));return t}}():function(e,t){for(var n in t)e[n]=t[n];return e}),rt=e.MutationObserver||e.WebKitMutationObserver,it=(e.HTMLElement||e.Element||e.Node).prototype,st=!H.call(it,M),ot=st?function(e,t,n){return e[t]=n.value,e}:B,ut=st?function(e){return e.nodeType===1}:function(e){return H.call(it,e)},at=st&&[],ft=it.attachShadow,lt=it.cloneNode,ct=it.dispatchEvent,ht=it.getAttribute,pt=it.hasAttribute,dt=it.removeAttribute,vt=it.setAttribute,mt=n.createElement,gt=mt,yt=rt&&{attributes:!0,characterData:!0,attributeOldValue:!0},bt=rt||function(e){Nt=!1,M.removeEventListener(E,bt)},wt,Et=0,St=s in n&&!/^force-all/.test(t.type),xt=!0,Tt=!1,Nt=!0,Ct=!0,kt=!0,Lt,At,Ot,Mt,_t,Dt,Pt;St||(R||U?(Dt=function(e,t){H.call(t,e)||Xt(e,t)},Pt=Xt):(Dt=function(e,t){e[o]||(e[o]=r(!0),Xt(e,t))},Pt=Dt),st?(Nt=!1,function(){var e=F(it,u),t=e.value,n=function(e){var t=new CustomEvent(E,{bubbles:!0});t.attrName=e,t.prevValue=ht.call(this,e),t.newValue=null,t[w]=t.attrChange=2,dt.call(this,e),ct.call(this,t)},r=function(e,t){var n=pt.call(this,e),r=n&&ht.call(this,e),i=new CustomEvent(E,{bubbles:!0});vt.call(this,e,t),i.attrName=e,i.prevValue=n?r:null,i.newValue=t,n?i[b]=i.attrChange=1:i[y]=i.attrChange=0,ct.call(this,i)},i=function(e){var t=e.currentTarget,n=t[o],r=e.propertyName,i;n.hasOwnProperty(r)&&(n=n[r],i=new CustomEvent(E,{bubbles:!0}),i.attrName=n.name,i.prevValue=n.value||null,i.newValue=n.value=t[r]||null,i.prevValue==null?i[y]=i.attrChange=0:i[b]=i.attrChange=1,ct.call(t,i))};e.value=function(e,s,u){e===E&&this[h]&&this.setAttribute!==r&&(this[o]={className:{name:"class",value:this.className}},this.setAttribute=r,this.removeAttribute=n,t.call(this,"propertychange",i)),t.call(this,e,s,u)},B(it,u,e)}()):rt||(M[u](E,bt),M.setAttribute(o,1),M.removeAttribute(o),Nt&&(Lt=function(e){var t=this,n,r,i;if(t===e.target){n=t[o],t[o]=r=Ot(t);for(i in r){if(!(i in n))return At(0,t,i,n[i],r[i],y);if(r[i]!==n[i])return At(1,t,i,n[i],r[i],b)}for(i in n)if(!(i in r))return At(2,t,i,n[i],r[i],w)}},At=function(e,t,n,r,i,s){var o={attrChange:e,currentTarget:t,attrName:n,prevValue:r,newValue:i};o[s]=e,Rt(o)},Ot=function(e){for(var t,n,r={},i=e.attributes,s=0,o=i.length;s<o;s++)t=i[s],n=t.name,n!=="setAttribute"&&(r[n]=t.value);return r})),n[s]=function(t,r){p=t.toUpperCase(),xt&&(xt=!1,rt?(Mt=function(e,t){function n(e,t){for(var n=0,r=e.length;n<r;t(e[n++]));}return new rt(function(r){for(var i,s,o,u=0,a=r.length;u<a;u++)i=r[u],i.type==="childList"?(n(i.addedNodes,e),n(i.removedNodes,t)):(s=i.target,kt&&s[h]&&i.attributeName!=="style"&&(o=ht.call(s,i.attributeName),o!==i.oldValue&&s[h](i.attributeName,i.oldValue,o)))})}(Ft(a),Ft(l)),_t=function(e){return Mt.observe(e,{childList:!0,subtree:!0}),e},_t(n),ft&&(it.attachShadow=function(){return _t(ft.apply(this,arguments))})):(wt=[],n[u]("DOMNodeInserted",Ut(a)),n[u]("DOMNodeRemoved",Ut(l))),n[u](S,zt),n[u]("readystatechange",zt),it.cloneNode=function(e){var t=lt.call(this,!!e),n=It(t);return-1<n&&Pt(t,A[n]),e&&O.length&&jt(t.querySelectorAll(O)),t});if(Tt)return Tt=!1;-2<_.call(L,N+p)+_.call(L,T+p)&&$t(t);if(!C.test(p)||-1<_.call(k,p))throw new Error("The type "+t+" is invalid");var i=function(){return o?n.createElement(f,p):n.createElement(f)},s=r||D,o=P.call(s,c),f=o?r[c].toUpperCase():p,p,d;return o&&-1<_.call(L,T+f)&&$t(f),d=L.push((o?N:T)+p)-1,O=O.concat(O.length?",":"",o?f+'[is="'+t.toLowerCase()+'"]':f),i.prototype=A[d]=P.call(s,"prototype")?s.prototype:tt(it),O.length&&Bt(n.querySelectorAll(O),a),i},n.createElement=gt=function(e,t){var r=Yt(t),i=r?mt.call(n,e,et(r)):mt.call(n,e),s=""+e,o=_.call(L,(r?N:T)+(r||s).toUpperCase()),u=-1<o;return r&&(i.setAttribute("is",r=r.toLowerCase()),u&&(u=qt(s.toUpperCase(),r))),kt=!n.createElement.innerHTMLHelper,u&&Pt(i,A[o]),i}),Kt.prototype={constructor:Kt,define:V?function(e,t,n){if(n)Qt(e,t,n);else{var r=e.toUpperCase();G[r]={constructor:t,create:[r]},Z.set(t,r),X.define(e,t)}}:Qt,get:V?function(e){return X.get(e)||Gt(e)}:Gt,whenDefined:V?function(e){return K.race([X.whenDefined(e),en(e)])}:en};if(!X||/^force/.test(t.type))tn();else if(!t.noBuiltIn)try{(function(t,r,i){r[c]="a",t.prototype=tt(HTMLAnchorElement.prototype),t.prototype.constructor=t,e.customElements.define(i,t,r);if(ht.call(n.createElement("a",{is:i}),"is")!==i||V&&ht.call(new t,"is")!==i)throw r})(function on(){return Reflect.construct(HTMLAnchorElement,[],on)},{},"document-register-element-a")}catch(nn){tn()}if(!t.noBuiltIn)try{mt.call(n,"a","a")}catch(rn){et=function(e){return{is:e.toLowerCase()}}}})(window);
/*!
Array.prototype.find
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find
*/
Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(c,e){if(null==this)throw new TypeError('"this" is null or not defined');var b=Object(this),f=b.length>>>0;if("function"!==typeof c)throw new TypeError("predicate must be a function");for(var a=0;a<f;){var d=b[a];if(c.call(e,d,a,b))return d;a++}}});
/*! object-assign */
"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(d,f){if(null==d)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(d),b=1;b<arguments.length;b++){var a=arguments[b];if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c])}return e},writable:!0,configurable:!0});
/*!
 * @overview es6-promise - a tiny implementation of Promises/A+.
 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
 * @license   Licensed under MIT license
 *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
 * @version   4.1.0+f046478d
 */
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.ES6Promise=e()}(this,function(){"use strict";function t(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}function e(t){return"function"==typeof t}function n(t){I=t}function r(t){J=t}function o(){return function(){return process.nextTick(a)}}function i(){return"undefined"!=typeof H?function(){H(a)}:c()}function s(){var t=0,e=new V(a),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function u(){var t=new MessageChannel;return t.port1.onmessage=a,function(){return t.port2.postMessage(0)}}function c(){var t=setTimeout;return function(){return t(a,1)}}function a(){for(var t=0;t<G;t+=2){var e=$[t],n=$[t+1];e(n),$[t]=void 0,$[t+1]=void 0}G=0}function f(){try{var t=require,e=t("vertx");return H=e.runOnLoop||e.runOnContext,i()}catch(n){return c()}}function l(t,e){var n=arguments,r=this,o=new this.constructor(p);void 0===o[et]&&k(o);var i=r._state;return i?!function(){var t=n[i-1];J(function(){return x(i,o,t,r._result)})}():E(r,o,t,e),o}function h(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(p);return g(n,t),n}function p(){}function v(){return new TypeError("You cannot resolve a promise with itself")}function d(){return new TypeError("A promises callback cannot return that same promise.")}function _(t){try{return t.then}catch(e){return it.error=e,it}}function y(t,e,n,r){try{t.call(e,n,r)}catch(o){return o}}function m(t,e,n){J(function(t){var r=!1,o=y(n,e,function(n){r||(r=!0,e!==n?g(t,n):S(t,n))},function(e){r||(r=!0,j(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,j(t,o))},t)}function b(t,e){e._state===rt?S(t,e._result):e._state===ot?j(t,e._result):E(e,void 0,function(e){return g(t,e)},function(e){return j(t,e)})}function w(t,n,r){n.constructor===t.constructor&&r===l&&n.constructor.resolve===h?b(t,n):r===it?(j(t,it.error),it.error=null):void 0===r?S(t,n):e(r)?m(t,n,r):S(t,n)}function g(e,n){e===n?j(e,v()):t(n)?w(e,n,_(n)):S(e,n)}function A(t){t._onerror&&t._onerror(t._result),T(t)}function S(t,e){t._state===nt&&(t._result=e,t._state=rt,0!==t._subscribers.length&&J(T,t))}function j(t,e){t._state===nt&&(t._state=ot,t._result=e,J(A,t))}function E(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+rt]=n,o[i+ot]=r,0===i&&t._state&&J(T,t)}function T(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,o=void 0,i=t._result,s=0;s<e.length;s+=3)r=e[s],o=e[s+n],r?x(n,r,o,i):o(i);t._subscribers.length=0}}function M(){this.error=null}function P(t,e){try{return t(e)}catch(n){return st.error=n,st}}function x(t,n,r,o){var i=e(r),s=void 0,u=void 0,c=void 0,a=void 0;if(i){if(s=P(r,o),s===st?(a=!0,u=s.error,s.error=null):c=!0,n===s)return void j(n,d())}else s=o,c=!0;n._state!==nt||(i&&c?g(n,s):a?j(n,u):t===rt?S(n,s):t===ot&&j(n,s))}function C(t,e){try{e(function(e){g(t,e)},function(e){j(t,e)})}catch(n){j(t,n)}}function O(){return ut++}function k(t){t[et]=ut++,t._state=void 0,t._result=void 0,t._subscribers=[]}function Y(t,e){this._instanceConstructor=t,this.promise=new t(p),this.promise[et]||k(this.promise),B(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?S(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&S(this.promise,this._result))):j(this.promise,q())}function q(){return new Error("Array Methods must be provided an Array")}function F(t){return new Y(this,t).promise}function D(t){var e=this;return new e(B(t)?function(n,r){for(var o=t.length,i=0;i<o;i++)e.resolve(t[i]).then(n,r)}:function(t,e){return e(new TypeError("You must pass an array to race."))})}function K(t){var e=this,n=new e(p);return j(n,t),n}function L(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function N(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function U(t){this[et]=O(),this._result=this._state=void 0,this._subscribers=[],p!==t&&("function"!=typeof t&&L(),this instanceof U?C(this,t):N())}function W(){var t=void 0;if("undefined"!=typeof global)t=global;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;if(n){var r=null;try{r=Object.prototype.toString.call(n.resolve())}catch(e){}if("[object Promise]"===r&&!n.cast)return}t.Promise=U}var z=void 0;z=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var B=z,G=0,H=void 0,I=void 0,J=function(t,e){$[G]=t,$[G+1]=e,G+=2,2===G&&(I?I(a):tt())},Q="undefined"!=typeof window?window:void 0,R=Q||{},V=R.MutationObserver||R.WebKitMutationObserver,X="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),Z="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,$=new Array(1e3),tt=void 0;tt=X?o():V?s():Z?u():void 0===Q&&"function"==typeof require?f():c();var et=Math.random().toString(36).substring(16),nt=void 0,rt=1,ot=2,it=new M,st=new M,ut=0;return Y.prototype._enumerate=function(t){for(var e=0;this._state===nt&&e<t.length;e++)this._eachEntry(t[e],e)},Y.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===h){var o=_(t);if(o===l&&t._state!==nt)this._settledAt(t._state,e,t._result);else if("function"!=typeof o)this._remaining--,this._result[e]=t;else if(n===U){var i=new n(p);w(i,t,o),this._willSettleAt(i,e)}else this._willSettleAt(new n(function(e){return e(t)}),e)}else this._willSettleAt(r(t),e)},Y.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===nt&&(this._remaining--,t===ot?j(r,n):this._result[e]=n),0===this._remaining&&S(r,this._result)},Y.prototype._willSettleAt=function(t,e){var n=this;E(t,void 0,function(t){return n._settledAt(rt,e,t)},function(t){return n._settledAt(ot,e,t)})},U.all=F,U.race=D,U.resolve=h,U.reject=K,U._setScheduler=n,U._setAsap=r,U._asap=J,U.prototype={constructor:U,then:l,"catch":function(t){return this.then(null,t)}},U.polyfill=W,U.Promise=U,U.polyfill(),U});
/*! whatwg-fetch, 2.0.3
https://github.com/github/fetch
Copyright (c) 2014-2016 GitHub, Inc. - MIT License */
(function(e){function l(a){"string"!==typeof a&&(a=String(a));if(/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(a))throw new TypeError("Invalid character in header field name");return a.toLowerCase()}function q(a){"string"!==typeof a&&(a=String(a));return a}function n(a){var b={next:function(){var b=a.shift();return{done:void 0===b,value:b}}};g.iterable&&(b[Symbol.iterator]=function(){return b});return b}function d(a){this.map={};a instanceof d?a.forEach(function(a,c){this.append(c,a)},this):Array.isArray(a)?
a.forEach(function(a){this.append(a[0],a[1])},this):a&&Object.getOwnPropertyNames(a).forEach(function(b){this.append(b,a[b])},this)}function p(a){if(a.bodyUsed)return Promise.reject(new TypeError("Already read"));a.bodyUsed=!0}function r(a){return new Promise(function(b,c){a.onload=function(){b(a.result)};a.onerror=function(){c(a.error)}})}function w(a){var b=new FileReader,c=r(b);b.readAsArrayBuffer(a);return c}function x(a){a=new Uint8Array(a);for(var b=Array(a.length),c=0;c<a.length;c++)b[c]=String.fromCharCode(a[c]);
return b.join("")}function t(a){if(a.slice)return a.slice(0);var b=new Uint8Array(a.byteLength);b.set(new Uint8Array(a));return b.buffer}function u(){this.bodyUsed=!1;this._initBody=function(a){if(this._bodyInit=a)if("string"===typeof a)this._bodyText=a;else if(g.blob&&Blob.prototype.isPrototypeOf(a))this._bodyBlob=a;else if(g.formData&&FormData.prototype.isPrototypeOf(a))this._bodyFormData=a;else if(g.searchParams&&URLSearchParams.prototype.isPrototypeOf(a))this._bodyText=a.toString();else if(g.arrayBuffer&&
g.blob&&y(a))this._bodyArrayBuffer=t(a.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else if(g.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(a)||z(a)))this._bodyArrayBuffer=t(a);else throw Error("unsupported BodyInit type");else this._bodyText="";this.headers.get("content-type")||("string"===typeof a?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):g.searchParams&&URLSearchParams.prototype.isPrototypeOf(a)&&
this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))};g.blob&&(this.blob=function(){var a=p(this);if(a)return a;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):
this.blob().then(w)});this.text=function(){var a=p(this);if(a)return a;if(this._bodyBlob){a=this._bodyBlob;var b=new FileReader,c=r(b);b.readAsText(a);return c}if(this._bodyArrayBuffer)return Promise.resolve(x(this._bodyArrayBuffer));if(this._bodyFormData)throw Error("could not read FormData body as text");return Promise.resolve(this._bodyText)};g.formData&&(this.formData=function(){return this.text().then(A)});this.json=function(){return this.text().then(JSON.parse)};return this}function k(a,b){b=
b||{};var c=b.body;if(a instanceof k){if(a.bodyUsed)throw new TypeError("Already read");this.url=a.url;this.credentials=a.credentials;b.headers||(this.headers=new d(a.headers));this.method=a.method;this.mode=a.mode;c||null==a._bodyInit||(c=a._bodyInit,a.bodyUsed=!0)}else this.url=String(a);this.credentials=b.credentials||this.credentials||"omit";if(b.headers||!this.headers)this.headers=new d(b.headers);var v=b.method||this.method||"GET",g=v.toUpperCase();this.method=-1<B.indexOf(g)?g:v;this.mode=
b.mode||this.mode||null;this.referrer=null;if(("GET"===this.method||"HEAD"===this.method)&&c)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(c)}function A(a){var b=new FormData;a.trim().split("&").forEach(function(a){if(a){var c=a.split("=");a=c.shift().replace(/\+/g," ");c=c.join("=").replace(/\+/g," ");b.append(decodeURIComponent(a),decodeURIComponent(c))}});return b}function C(a){var b=new d;a.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(a){var c=
a.split(":");if(a=c.shift().trim())c=c.join(":").trim(),b.append(a,c)});return b}function h(a,b){b||(b={});this.type="default";this.status=void 0===b.status?200:b.status;this.ok=200<=this.status&&300>this.status;this.statusText="statusText"in b?b.statusText:"OK";this.headers=new d(b.headers);this.url=b.url||"";this._initBody(a)}if(!e.fetch){var D="Symbol"in e&&"iterator"in Symbol,m;if(m="FileReader"in e&&"Blob"in e)try{new Blob,m=!0}catch(a){m=!1}var g={searchParams:"URLSearchParams"in e,iterable:D,
blob:m,formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(g.arrayBuffer){var E="[object Int8Array];[object Uint8Array];[object Uint8ClampedArray];[object Int16Array];[object Uint16Array];[object Int32Array];[object Uint32Array];[object Float32Array];[object Float64Array]".split(";");var y=function(a){return a&&DataView.prototype.isPrototypeOf(a)};var z=ArrayBuffer.isView||function(a){return a&&-1<E.indexOf(Object.prototype.toString.call(a))}}d.prototype.append=function(a,b){a=l(a);b=q(b);var c=
this.map[a];this.map[a]=c?c+","+b:b};d.prototype["delete"]=function(a){delete this.map[l(a)]};d.prototype.get=function(a){a=l(a);return this.has(a)?this.map[a]:null};d.prototype.has=function(a){return this.map.hasOwnProperty(l(a))};d.prototype.set=function(a,b){this.map[l(a)]=q(b)};d.prototype.forEach=function(a,b){for(var c in this.map)this.map.hasOwnProperty(c)&&a.call(b,this.map[c],c,this)};d.prototype.keys=function(){var a=[];this.forEach(function(b,c){a.push(c)});return n(a)};d.prototype.values=
function(){var a=[];this.forEach(function(b){a.push(b)});return n(a)};d.prototype.entries=function(){var a=[];this.forEach(function(b,c){a.push([c,b])});return n(a)};g.iterable&&(d.prototype[Symbol.iterator]=d.prototype.entries);var B="DELETE GET HEAD OPTIONS POST PUT".split(" ");k.prototype.clone=function(){return new k(this,{body:this._bodyInit})};u.call(k.prototype);u.call(h.prototype);h.prototype.clone=function(){return new h(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),
url:this.url})};h.error=function(){var a=new h(null,{status:0,statusText:""});a.type="error";return a};var F=[301,302,303,307,308];h.redirect=function(a,b){if(-1===F.indexOf(b))throw new RangeError("Invalid status code");return new h(null,{status:b,headers:{location:a}})};e.Headers=d;e.Request=k;e.Response=h;e.fetch=function(a,b){return new Promise(function(c,d){var e=new k(a,b),f=new XMLHttpRequest;f.onload=function(){var a={status:f.status,statusText:f.statusText,headers:C(f.getAllResponseHeaders()||
"")};a.url="responseURL"in f?f.responseURL:a.headers.get("X-Request-URL");c(new h("response"in f?f.response:f.responseText,a))};f.onerror=function(){d(new TypeError("Network request failed"))};f.ontimeout=function(){d(new TypeError("Network request failed"))};f.open(e.method,e.url,!0);"include"===e.credentials?f.withCredentials=!0:"omit"===e.credentials&&(f.withCredentials=!1);"responseType"in f&&g.blob&&(f.responseType="blob");e.headers.forEach(function(a,b){f.setRequestHeader(b,a)});f.send("undefined"===
typeof e._bodyInit?null:e._bodyInit)})};e.fetch.polyfill=!0}})("undefined"!==typeof self?self:this);
/*!
requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
MIT license
*/
(function(a){for(var f=0,c=["ms","moz","webkit","o"],b=0;b<c.length&&!a.requestAnimationFrame;++b)a.requestAnimationFrame=a[c[b]+"RequestAnimationFrame"],a.cancelAnimationFrame=a[c[b]+"CancelAnimationFrame"]||a[c[b]+"CancelRequestAnimationFrame"];a.requestAnimationFrame||(a.requestAnimationFrame=function(b,c){var d=(new Date).getTime(),e=Math.max(0,16-(d-f)),g=a.setTimeout(function(){b(d+e)},e);f=d+e;return g});a.cancelAnimationFrame||(a.cancelAnimationFrame=function(a){clearTimeout(a)})})(window);
/*!
Element.closest and Element.matches
https://github.com/jonathantneal/closest
Creative Commons Zero v1.0 Universal
*/
(function(a){"function"!==typeof a.matches&&(a.matches=a.msMatchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||function(a){a=(this.document||this.ownerDocument).querySelectorAll(a);for(var b=0;a[b]&&a[b]!==this;)++b;return!!a[b]});"function"!==typeof a.closest&&(a.closest=function(a){for(var b=this;b&&1===b.nodeType;){if(b.matches(a))return b;b=b.parentNode}return null})})(window.Element.prototype);
/*! window.performance.now
http://opensource.org/licenses/MIT
Copyright Paul Irish 2015 */
!function(){if("performance"in window==0&&(window.performance={}),Date.now=Date.now||function(){return(new Date).getTime()},"now"in window.performance==0){var n=Date.now();performance.timing&&performance.timing.navigationStart&&(n=performance.timing.navigationStart),window.performance.now=function(){return Date.now()-n}}}();
/*! Built with http://stenciljs.com */
(function(Context,appNamespace,hydratedCssClass,publicPath){"use strict";
var s=document.querySelector("script[data-namespace='sthqrcode']");if(s){publicPath=s.getAttribute('data-path');}
this&&this.n||Object.setPrototypeOf||Array,function(n,t,r,i,e){"use strict";function u(n,t,r,i,e){var u=t.is+(r||""),o=t[u];if(o||(o=t[u=t.is]),o){var f=n.t;if(n.r)if("shadow"===t.i)f=i.shadowRoot;else for(;i=n.e(i);)if(i.host&&i.host.shadowRoot){f=i.host.shadowRoot;break}var c=f.u=f.u||{};if(!c[u]){(e=n.o("style")).innerHTML=o;var a=f.querySelector("[data-visibility]");n.f(f,e,a&&a.nextSibling||f.c),c[u]=!0}}}function o(n){return{a:n[0],l:n[1],s:!!n[2],v:!!n[3],d:!!n[4]}}function f(n,t){if(I(t)){if(n===Boolean||3===n)return"false"!==t&&(""===t||!!t);if(n===Number||4===n)return parseFloat(t)}return t}function c(n,t,r){n.m&&((r=n.m.$activeLoading)&&((t=r.indexOf(n))>-1&&r.splice(t,1),!r.length&&n.m.$initLoad()),n.m=null)}function a(n,t,r){for(var i,e=!1,u=!1,o=arguments.length;o-- >2;)W.push(arguments[o]);for(;W.length;)if((r=W.pop())&&void 0!==r.pop)for(o=r.length;o--;)W.push(r[o]);else"boolean"==typeof r&&(r=null),(u="function"!=typeof n)&&(null==r?r="":"number"==typeof r?r=String(r):"string"!=typeof r&&(u=!1)),u&&e?i[i.length-1].p+=r:void 0===i?i=[u?l(r):r]:i.push(u?l(r):r),e=u;var f=new z;if(f.b=n,f.y=i,t&&(f.g=t,f.w=t.j,f.O=t.ref,t.className&&(t.class=t.className),"object"==typeof t.class)){for(o in t.class)t.class[o]&&W.push(o);t.class=W.join(" "),W.length=0}return f}function l(n){var t=new z;return t.p=n,t}function s(n,t){t.C||(t.C=!0,n.N.add(function(){t.C=!1,v(n,t)}))}function v(n,t){if(!t.k){var r=!t.T;if(r){var i=t.m;if(i&&!i.$rendered)return void(i.$onRender=i.$onRender||[]).push(function(){v(n,t)});(function e(n,t,r){try{r=n.P(t).x,t.T=new r,function i(n,t,r,e,u,o){e.S=r,r.A=r.A||{},u=Object.assign({mode:{type:String},color:{type:String}},t.properties);for(o in u)d(n,u[o],r,e,o)}(n,r,t,t.T)}catch(r){t.T={},n.M(r,7,t,!0)}})(n,t)}h(n,t,r)}}function h(n,t,r){try{(function i(n,t,r,e){var u=t.T,o=r.host;if(u.render||u.hostData||o){n.L=!0;var f=u.render&&u.render();n.L=!1;var c=t.B||new z;c.H=t,t.B=n.render(c,a(null,void 0,f),e,t.I,r.i)}n.R(n.q,r,u.mode,t),t.$rendered=!0,t.$onRender&&(t.$onRender.forEach(function(n){return n()}),t.$onRender=null)})(n,t,n.P(t).x,!r)}catch(r){n.M(r,8,t,!0)}try{r?t.$initLoad():t.T.componentDidUpdate&&t.T.componentDidUpdate()}catch(r){n.M(r,6,t,!0)}}function d(n,t,r,i,e){function u(n){return(n=this.S)&&n.A&&n.A[e]}function o(r,i){(i=this.S)&&(t.state||t.mutable)&&m(n,i,e,r)}if(t.type||t.state){if(!t.state){if(t.attr&&(void 0===r.A[e]||""===r.A[e])){var c=n.q.D(r,t.attr);null!=c&&(r.A[e]=f(t.type,c))}r.hasOwnProperty(e)&&(void 0===r.A[e]&&(r.A[e]=r[e]),delete r[e])}i.hasOwnProperty(e)&&void 0===r.A[e]&&(r.A[e]=i[e]),t.watchCallbacks&&(r.A[Z+e]=t.watchCallbacks.slice()),b(i,e,u,o)}else t.elementRef?p(i,e,r):t.method&&p(r,e,i[e].bind(i))}function m(n,t,r,i,e,u,o){var f=(e=t.A=t.A||{})[r];if(i!==f&&(e[r]=i,u=t.T)){if(o=e[Z+r])for(var c=0;c<o.length;c++)try{u[o[c]].call(u,i,f)}catch(n){}n.L||s(n,t)}}function p(n,t,r){Object.defineProperty(n,t,{configurable:!0,value:r})}function b(n,t,r,i){Object.defineProperty(n,t,{configurable:!0,get:r,set:i})}function y(n,t,r,i,e){var u=11===r.H.nodeType&&r.H.host?r.H.host:r.H,o=t&&t.g||L,f=r.g||L;for(e in o)f&&null!=f[e]||null==o[e]||g(n,u,e,o[e],void 0,i);for(e in f)e in o&&f[e]===("value"===e||"checked"===e?u[e]:o[e])||g(n,u,e,o[e],f[e],i)}function g(n,t,r,i,e,u,o,f){if("class"!==r||u)if("style"===r){i=i||L,e=e||L;for(o in i)e[o]||(t.style[o]="");for(o in e)e[o]!==i[o]&&(t.style[o]=e[o])}else if("o"!==r[0]||"n"!==r[1]||r in t)if("list"!==r&&"type"!==r&&!u&&(r in t||-1!==["object","function"].indexOf(typeof e)&&null!==e)){var c=n.P(t);c&&c._&&c._[r]?w(t,r,e):"ref"!==r&&(w(t,r,null==e?"":e),null!=e&&!1!==e||t.removeAttribute(r))}else null!=e&&(o=r!==(r=r.replace(/^xlink\:?/,"")),1!==G[r]||e&&"false"!==e?"function"!=typeof e&&(o?t.setAttributeNS(J,q(r),e):t.setAttribute(r,e)):o?t.removeAttributeNS(J,q(r)):t.removeAttribute(r));else r=q(r.substring(2)),e?i||n.q.z(t,r,e):n.q.F(t,r);else if(i!==e){var a=null==i||""===i?B:i.trim().split(/\s+/),l=null==e||""===e?B:e.trim().split(/\s+/),s=null==t.className||""===t.className?B:t.className.trim().split(/\s+/);for(o=0,f=a.length;o<f;o++)-1===l.indexOf(a[o])&&(s=s.filter(function(n){return n!==a[o]}));for(o=0,f=l.length;o<f;o++)-1===a.indexOf(l[o])&&(s=s.concat([l[o]]));t.className=s.join(" ")}}function w(n,t,r){try{n[t]=r}catch(n){}}function $(n,t){n&&(n.O&&n.O(t?null:n.H),n.y&&n.y.forEach(function(n){$(n,t)}))}function j(n,t,r,i,e){var u,o,f,c,a=n.W(t);if(e&&1===a){(o=n.D(t,M))&&(f=o.split("."))[0]===i&&((c=new z).b=n.Z(c.H=t),r.y||(r.y=[]),r.y[f[1]]=c,r=c,e=""!==f[2]);for(var s=0;s<t.childNodes.length;s++)j(n,t.childNodes[s],r,i,e)}else 3===a&&(u=t.previousSibling)&&8===n.W(u)&&"s"===(f=n.G(u).split("."))[0]&&f[1]===i&&((c=l(n.G(t))).H=t,r.y||(r.y=[]),r.y[f[2]]=c)}function O(n,t,r,i){return function(){var e=arguments;return function u(n,t,r){return new Promise(function(i){var e=t[r];e||(e=n.J.querySelector(r)),e||(e=t[r]=n.o(r),n.K(n.J,e)),e.componentOnReady(i)})}(n,t,r).then(function(n){return n[i].apply(n,e)})}}function C(n){return N(function r(n){var t=new Q;t.Q=0,t.U=n.length;for(var r=t,i=0,e=n.length;i<e;i++)if(n[i]===X){r.V||(r.V=[]);var u=r,o=u.V[u.V.length-1]||null;(r=new Q).Q=i+1,r.X=u,r.Y=o,u.V.push(r)}else n[i]===Y&&(r.U=i+1,r=r.X||t);return t}(n=function t(n){return n.replace(nn,"").replace(tn,"")}(n)),n)}function N(n,t){var r=t.substring(n.Q,n.U-1);if(n.nn=n.tn=r.trim(),n.X){var i=n.Y?n.Y.U:n.X.Q;r=(r=(r=function e(n){return n.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var n=arguments[1],t=6-n.length;t--;)n="0"+n;return"\\"+n})}(r=t.substring(i,n.Q-1))).replace(on," ")).substring(r.lastIndexOf(";")+1);var u=n.rn=n.in=r.trim();n.en=0===u.indexOf(an),n.en?0===u.indexOf(cn)?n.type=4:u.match(un)&&(n.type=7,n.un=n.in.split(on).pop()):0===u.indexOf(fn)?n.type=1e3:n.type=1}var o=n.V;if(o)for(var f=0,c=o.length,a=void 0;f<c&&(a=o[f]);f++)N(a,t);return n}function k(n,t,r){void 0===r&&(r="");var i="";if(n.tn||n.V){var e=n.V;if(e)for(var u=0,o=e.length,f=void 0;u<o&&(f=e[u]);u++)i=k(f,t,i);else(i=(i=t?n.tn:function c(n){return function t(n){return n.replace(en,"")}(n=E(n))}(n.tn)).trim())&&(i="  "+i+"\n")}return i&&(n.in&&(r+=n.in+" "+X+"\n"),r+=i,n.in&&(r+=Y+"\n\n")),r}function E(n){return n.replace(rn,"")}function T(n){return!n.on&&n.textContent&&(n.on=C(n.textContent)),n.on||null}function x(n,t,r,i,e){if(t){var u=!1,o=t.type;if(e&&4===o){var f=t.in.match(sn);f&&(n.matchMedia(f[1]).matches||(u=!0))}1===o?r(t):i&&7===o?i(t):1e3===o&&(u=!0);var c=t.V;if(c&&!u)for(var a=0,l=c.length,s=void 0;a<l&&(s=c[a]);a++)x(n,s,r,i,e)}}function P(n,t){var r=n.indexOf("var(");if(-1===r)return t(n,"","","");var i=function e(n,t){for(var r=0,i=t,e=n.length;i<e;i++)if("("===n[i])r++;else if(")"===n[i]&&0==--r)return i;return-1}(n,r+3),u=n.substring(r+4,i),o=n.substring(0,r),f=P(n.substring(i+1),t),c=u.indexOf(",");return-1===c?t(o,u.trim(),"",f):t(o,u.substring(0,c).trim(),u.substring(c+1).trim(),f)}function S(n,t,r){var i=r.href;return fetch(i).then(function(n){return n.text()}).then(function(i){if(i.indexOf("--")>-1||i.indexOf("var(")>-1){var e=n.createElement("style");return e.innerHTML=i,r.parentNode.insertBefore(e,r),t.fn(e).then(function(){r.parentNode.removeChild(r)})}return Promise.resolve()}).catch(function(n){})}var A="data-ssrv",M="data-ssrc",L={},B=[],H={enter:13,escape:27,space:32,tab:9,left:37,up:38,right:39,down:40},I=function(n){return void 0!==n&&null!==n},R=function(n){return void 0===n||null===n},q=function(n){return n.toLowerCase()},D=function(n){return q(n.replace(/([A-Z])/g,function(n){return" "+n[0]}).trim().replace(/ /g,"-"))},_=function(){},z=function F(){},W=[],Z="wc-",G={allowfullscreen:1,async:1,autofocus:1,autoplay:1,checked:1,controls:1,disabled:1,enabled:1,formnovalidate:1,hidden:1,multiple:1,noresize:1,readonly:1,required:1,selected:1,spellcheck:1},J="http://www.w3.org/1999/xlink",K=!1,Q=function U(){this.V=null,this.Q=0,this.U=0,this.X=null,this.Y=null,this.nn="",this.tn="",this.rn="",this.en=!1,this.in="",this.type=0,this.un=""},V=function(){function n(n){this.cn=n||null,this.an=null}return n.get=function(n){return n?n[ln]:null},n.set=function(n,t){return n[ln]=t,t},n}(),X="{",Y="}",nn=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,tn=/@import[^;]*;/gim,rn=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,en=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,un=/^@[^\s]*keyframes/,on=/\s+/g,fn="--",cn="@media",an="@",ln="__styleInfo",sn=/@media\s(.*)/,vn=function(){function n(n){this.ln=n,this.matchesSelector=(t=n.Element.prototype,t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.webkitMatchesSelector);var t}return n.prototype.sn=function(n){if(n.vn)return n.vn;var t={},r={};return this.hn(n,r)&&(t.properties=r,n.V=null),t.tn=n.nn,n.vn=t,t},n.prototype.hn=function(n,t){var r=n.vn;if(!r){for(var i=void 0,e=n.nn,u=void 0,o=void 0;i=hn.exec(e);)"inherit"===(u=(i[2]||i[3]).trim())&&"unset"===u||(t[i[1].trim()]=u),o=!0;return o}if(r.properties)return Object.assign(t,r.properties),!0},n.prototype.dn=function(n){for(var t=Object.getOwnPropertyNames(n),r=0,i=void 0;r<t.length;r++)n[i=t[r]]=this.mn(n[i],n)},n.prototype.mn=function(n,t){var r=this;return n&&(n=n.indexOf(";")>=0?this.pn(n,t):P(n,function(n,i,e,u){if(!i)return n+u;var o=r.mn(t[i],t);return o&&"initial"!==o||(o=r.mn(t[e]||e,t)||e),n+(o||"")+u})),n&&n.trim()||""},n.prototype.pn=function(n,t){for(var r=n.split(";"),i=0,e=void 0;i<r.length;i++)if(e=r[i]){var u=e.indexOf(":");if(-1!==u){var o=e.substring(u);o=o.trim(),o=this.mn(o,t)||o,e=e.substring(0,u)+o}r[i]=e&&e.lastIndexOf(";")===e.length-1?e.slice(0,-1):e||""}return r.join(";")},n.prototype.bn=function(n,t){var r=this,i={},e=[];return x(this.ln,n,function(n){n.vn||r.sn(n);try{var u=n.yn||n.rn;t&&n.vn.properties&&u&&r.matchesSelector.call(t,u)&&(r.hn(n,i),function o(n,t){var r=parseInt(n/32,10),i=1<<n%32;t[r]=(t[r]||0)|i}(n.gn,e))}catch(n){}},null,!0),{properties:i,j:e}},n.prototype.wn=function(n,t){var r=this,i=T(n);n.textContent=function e(n,t,r){return t?("string"==typeof t&&(t=C(t)),r&&x(n,t,r),k(t,!1)):""}(this.ln,i,function(n){var i=n.tn=n.nn;n.vn&&n.vn.tn&&(i=E(i),n.tn=r.pn(i,t))})},n}(),hn=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,dn=function(){function n(n,t){if(this.ln=n,this.$n=[],this.jn=!1,this.On=[],this.Cn=!!(n.CSS&&n.CSS.supports&&n.CSS.supports("color","var(--c)")),!this.Cn){this.Nn=t.documentElement;var r=new Q;r.V=[],this.kn=V.set(this.Nn,new V(r)),this.an=new vn(n)}}return n.prototype.En=function(){var n=this.Tn();if(this.jn)for(this.xn(this.Nn,this.kn),this.Pn(n),this.jn=!1;this.On.length;)this.On.shift()()},n.prototype.Pn=function(n){for(var t=0;t<n.length;t++){var r=n[t],i=this.Sn(r);i&&this.an.wn(i,this.kn.an)}},n.prototype.xn=function(n,t){var r=this.Nn,i=V.get(r),e=i.an,u=Object.create(e||null),o=this.an.bn(i.cn,n).properties;Object.assign(u,o),this.an.dn(u),t.an=u},n.prototype.fn=function(n){var t=this;return new Promise(function(r){n.An?r():(n.An=!0,t.$n.push(n),t.On.push(r),t.jn||(t.jn=!0,t.ln.requestAnimationFrame(function(){t.jn&&t.En()})))})},n.prototype.Sn=function(n){return n.Mn?n.Mn:n.getStyle?n.getStyle():n},n.prototype.Tn=function(){for(var n=this.$n,t=0;t<n.length;t++){var r=n[t];if(!r.Mn){var i=this.Sn(r);i&&(this.Ln(i),r.Mn=i)}}return n},n.prototype.Ln=function(n){var t=T(n);this.kn.cn.V.push(t)},n}(),mn=n[i]=n[i]||{},pn=function bn(t,r,i,e,l,v){function h(n,t,r,i,e){function u(){clearTimeout(i),e.onerror=e.onload=null,k.Bn(k.e(e),e),C[r]=!1}r=l+t+(function o(n,t){return 2===t.i||1===t.i&&!n}(k.r,n)?".sc":"")+".es5.js",C[r]||(C[r]=!0,(e=k.o("script")).charset="utf-8",e.async=!0,e.src=r,i=setTimeout(u,12e4),e.onerror=e.onload=u,k.K(k.t,e))}var d={html:{}},g={},w={},C={},N={},k=function E(n,t){var r=new WeakMap,i={Hn:t.documentElement,t:t.head,J:t.body,In:!1,W:function(n){return n.nodeType},o:function(n){return t.createElement(n)},Rn:function(n,r){return t.createElementNS(n,r)},qn:function(n){return t.createTextNode(n)},Dn:function(n){return t.createComment(n)},f:function(n,t,r){return n.insertBefore(t,r)},Bn:function(n,t){return n.removeChild(t)},K:function(n,t){return n.appendChild(t)},_n:function(n){return n.childNodes},e:function(n){return n.parentNode},zn:function(n){return n.nextSibling},Z:function(n){return q(n.tagName)},G:function(n){return n.textContent},Fn:function(n,t){return n.textContent=t},D:function(n,t){return n.getAttribute(t)},Wn:function(n,t,r){return n.setAttribute(t,r)},Zn:function(n,t,r,i){return n.setAttributeNS(t,r,i)},Gn:function(n,t){return n.removeAttribute(t)},Jn:function(r,e){return"child"===e?r.firstElementChild:"parent"===e?i.Kn(r):"body"===e?i.J:"document"===e?t:"window"===e?n:r},z:function(n,t,e,u,o,f,c,a){var l=t,s=n,v=r.get(n);if(v&&v[l]&&v[l](),"string"==typeof f?s=i.Jn(n,f):"object"==typeof f?s=f:(a=t.split(":")).length>1&&(s=i.Jn(n,a[0]),t=a[1]),s){var h=e;(a=t.split(".")).length>1&&(t=a[0],h=function(n){n.keyCode===H[a[1]]&&e(n)}),c=i.In?{capture:!!u,passive:!!o}:!!u,s.addEventListener(t,h,c),v||r.set(n,v={}),v[l]=function(){s&&s.removeEventListener(t,h,c),v[l]=null}}},F:function(n,t){var i=r.get(n);i&&(t?i[t]&&i[t]():(Object.keys(i).forEach(function(n){i[n]&&i[n]()}),r.delete(n)))}};return i.Qn=function(n,t){return n.attachShadow(t)},i.r=!!i.Hn.attachShadow,i.Kn=function(n,t){return(t=i.e(n))&&11===i.W(t)?t.host:t},i}(i,e);t.isServer=t.isPrerender=!(t.isClient=!0),t.window=i,t.location=i.location,t.document=e,t.publicPath=l,r.h=a,r.Context=t;var T=i.$definedCmps=i.$definedCmps||{},x={Un:function P(n,r){r.mode||(r.mode=k.D(r,"mode")||t.mode),k.D(r,A)||function i(n,t){return n&&1===t.i}(k.r,n)||function e(n,t,r){t.$defaultHolder||n.f(t,t.$defaultHolder=n.Dn(""),r[0]);for(var i,e,u,o=0;o<r.length;o++){var f=r[o];1===n.W(f)&&null!=(i=n.D(f,"slot"))?(u=u||{})[i]?u[i].push(f):u[i]=[f]:e?e.push(f):e=[f]}t.I={Vn:e,Xn:u}}(k,r,r.childNodes),k.r||1!==n.i||(r.shadowRoot=r)},q:k,Yn:function M(n,t){var r=n.nt;if(!T[r]){T[r]=!0,function e(n,t,r,i){r.connectedCallback=function(){(function r(n,t,i){i.$connected||(i.$connected=!0,i.k=null,function e(n,t,r){for(r=t;r=n.q.Kn(r);)if(n.tt(r)){r.rt||(t.m=r,(r.$activeLoading=r.$activeLoading||[]).push(t));break}}(n,i),n.N.add(function(){n.Un(t,i),n.it(t,i.mode,function(){return s(n,i)})},3))})(n,t,this)},r.attributeChangedCallback=function(n,r,i){(function e(n,t,r,i,u,o){if(i!==u&&n){r=q(r);for(o in n)if(n[o].et===r){t[o]=f(n[o].ut,u);break}}})(t._,this,n,r,i)},r.disconnectedCallback=function(){(function t(n,r){!n.ot&&function i(n,t){for(;t;){if(!n.e(t))return 9!==n.W(t);t=n.e(t)}}(n.q,r)&&(r.k=!0,c(r),$(r.B,!0),n.q.F(r),r.I&&(r.I=r.I.Vn=r.I.Xn=null),r.T&&(r.T=r.T.S=null),r.$activeLoading=r.$connected=r.$defaultHolder=r.ft=r.A=r.B=r.m=r.rt=r.C=r.ct=null)})(n,this)},r.componentOnReady=function(n,t){return n||(t=new Promise(function(t){return n=t})),function r(n,t){n.k||(n.rt?t(n):(n.at=n.at||[]).push(t))}(this,n),t},r.$initLoad=function(){(function t(n,r,i){if(r.T&&!r.k&&(!r.$activeLoading||!r.$activeLoading.length)){r.$activeLoading=null,r.rt=!0;try{$(r.B),r.at&&(r.at.forEach(function(n){return n(r)}),r.at=null),r.T.componentDidLoad&&r.T.componentDidLoad()}catch(t){n.M(t,4,r)}r.classList.add(i),c(r)}})(n,this,i)},r.lt=function(){s(n,this)},function e(n,t,r){t&&Object.keys(t).forEach(function(i){var e=t[i].st;1===e||2===e?b(r,i,function n(){return(this.A=this.A||{})[i]},function t(r){m(n,this,i,r)}):6===e&&p(r,i,_)})}(n,t._,r)}(x,n,t.prototype,v);var u=[];for(var o in n._)n._[o].et&&u.push(n._[o].et);t.observedAttributes=u,i.customElements.define(r,t)}},vt:t.emit,P:function(n){return d[k.Z(n)]},ht:function(n){return t[n]},isClient:!0,tt:function(n){return!(!T[k.Z(n)]&&!x.P(n))},it:function L(n,t,r,i){i=n.dt[t]||n.dt,w[i]?r():((g[i]=g[i]||[]).push(r),G.Cn?h(n,i):J?J.push(function(){h(n,i)}):h(n,i))},M:function(n,t,r){},mt:function(n){return function t(n,r,i){return{create:O(n,r,i,"create"),componentOnReady:O(n,r,i,"componentOnReady")}}(k,N,n)},N:function B(t,r,i){function e(){for(;l.length>0;)l.shift()();r=!1}function u(n){for(n=f(),e();s.length>0&&f()-n<40;)s.shift()();(i=s.length>0)&&c(o)}function o(n){for(e(),n=4+f();s.length>0&&f()<n;)s.shift()();(i=s.length>0)&&c(u)}var f=function(){return t.performance.now()},c=function(t){return n.requestAnimationFrame(t)},a=Promise.resolve(),l=[],s=[];return{add:function(n,t){3===t?(l.push(n),r||(r=!0,a.then(e))):(s.push(n),i||(i=!0,c(u)))}}}(i),pt:function(n){return(n||[]).map(function(n){return function t(n,r,i){var e={nt:n[0],_:{color:{et:"color"}}};e.dt=n[1];var u=n[3];if(u)for(var f=0;f<u.length;f++){var c=u[f];e._[c[0]]={st:c[1],et:c[2]?1===i?q(c[0]):D(c[0]):0,ut:c[3]}}return e.i=n[4],n[5]&&(e.bt=n[5].map(o)),r[e.nt]=e}(n,d)})}};x.render=function F(n,t){function r(i,e,u){var o=0;if("function"==typeof i.b&&(i=i.b(Object.assign({},i.g,{yt:i.y}))),!l&&"slot"===i.b){if(a){s&&t.Wn(e,s+"-slot","");var f=i.g&&i.g.name,c=void 0;if(c=I(f)?a.Xn&&a.Xn[f]:a.Vn,I(c)){for(n.ot=!0;o<c.length;o++)t.K(e,t.Bn(t.e(c[o]),c[o]));n.ot=!1}}return null}if(I(i.p))i.H=t.qn(i.p);else{var v=i.H=K||"svg"===i.b?t.Rn("http://www.w3.org/2000/svg",i.b):t.o(i.b);K="svg"===i.b||"foreignObject"!==i.b&&K,y(n,null,i,K),null!==s&&v.gt!==s&&t.Wn(v,v.gt=s,"");var h=i.y;if(h)for(var d=void 0;o<h.length;++o)(d=r(h[o],v))&&t.K(v,d)}return i.H}function i(n,i,e,u,o){for(var f,c=n.$defaultHolder&&t.e(n.$defaultHolder)||n;u<=o;++u){var a=e[u];I(a)&&(f=I(a.p)?t.qn(a.p):r(a,n),I(f)&&(a.H=f,t.f(c,f,i)))}}function e(n,r,i,e){for(;i<=e;++i)I(r[i])&&t.Bn(n,r[i].H)}function u(n,t){return n.b===t.b&&n.w===t.w}function o(n,t,r){var i,e,u={};for(i=t;i<=r;++i)null!=(e=n[i])&&void 0!==e.w&&(u.wt=i);return u}function f(c,a){var l=a.H=c.H,s=c.y,v=a.y;if(K=a.H&&null!=a.H.parentElement&&void 0!==a.H.$t,K="svg"===a.b||"foreignObject"!==a.b&&K,R(a.p))"slot"!==a.b&&y(n,c,a,K),I(s)&&I(v)?function h(n,c,a){for(var l,s,v,h,d=0,m=0,p=c.length-1,b=c[0],y=c[p],g=a.length-1,w=a[0],$=a[g];d<=p&&m<=g;)null==b?b=c[++d]:null==y?y=c[--p]:null==w?w=a[++m]:null==$?$=a[--g]:u(b,w)?(f(b,w),b=c[++d],w=a[++m]):u(y,$)?(f(y,$),y=c[--p],$=a[--g]):u(b,$)?(f(b,$),t.f(n,b.H,t.zn(y.H)),b=c[++d],$=a[--g]):u(y,w)?(f(y,w),t.f(n,y.H,b.H),y=c[--p],w=a[++m]):(R(l)&&(l=o(c,d,p)),s=l[w.w],R(s)?(h=r(w,n),w=a[++m]):((v=c[s]).b!==w.b?h=r(w,n):(f(v,w),c[s]=void 0,h=v.H),w=a[++m]),h&&t.f(n,h,b.H));d>p?i(n,null==a[g+1]?null:a[g+1].H,a,m,g):m>g&&e(n,c,d,p)}(l,s,v):I(v)?(I(c.p)&&t.Fn(l,""),i(l,null,v,0,v.length-1)):I(s)&&e(l,s,0,s.length-1);else if(l.I&&l.I.Vn){var d=l.I.Vn[0].parentElement;t.Fn(d,a.p),l.I.Vn=[d.childNodes[0]]}else c.p!==a.p&&t.Fn(l,a.p)}var c,a,l,s;return function n(r,i,e,u,o,v){return c=e,a=u,s="scoped"===o||"shadow"===o&&!t.r?"data-"+t.Z(r.H):null,l="shadow"===o&&t.r,c||(l?r.H=t.Qn(r.H,{mode:"open"}):s&&t.Wn(r.H,s+"-host","")),f(r,i),i}}(x,k);var W=k.Hn;W.$rendered=!0,W.$activeLoading=[],W.$initLoad=function(){return W.rt=!0},function Z(n,t){var r,i,e,u,o,f,c=t.querySelectorAll("["+A+"]"),a=c.length;if(t.rt=a>0)for(u=0;u<a;u++)for(r=c[u],i=n.D(r,A),(e=r.B=new z).b=n.Z(e.H=r),o=0,f=r.childNodes.length;o<f;o++)j(n,r.childNodes[o],e,i,!0)}(k,W),r.loadComponents=function n(r,i){try{var e={};r(e,a,t),Object.keys(e).forEach(function(n){var t=d[D(n)];t&&(t.x=e[n],function r(n,t){var r=t.style;if(r){var i=t.is+(t.styleMode||"");t[i]||(t[i]=r)}}(0,t.x))})}catch(n){}var u=g[i];if(u){for(var o=0;o<u.length;o++)try{u[o]()}catch(n){}g[i]=null}w[i]=!0};var G,J;return G=new dn(i,e),J=[],function Q(n,t,r,i){r.Cn?i():n.requestAnimationFrame(function(){for(var n=[],e=t.querySelectorAll('link[rel="stylesheet"][href]'),u=0;u<e.length;u++)n.push(S(t,r,e[u]));var o=t.querySelectorAll("style");for(u=0;u<o.length;u++)n.push(r.fn(o[u]));Promise.all(n).then(function(){i()})})}(i,e,G,function(){for(;J.length;)J.shift()();J=null}),x.R=u,x}(r,mn,n,t,e,hydratedCssClass);pn.pt(mn.components).forEach(function(n){function t(n){return HTMLElement.call(this,n)}t.prototype=Object.create(HTMLElement.prototype,{constructor:{value:t,configurable:!0}}),pn.Yn(n,t)})}(window,document,Context,appNamespace,publicPath);
})({},"sthqrcode","hydrated","/build/sthqrcode/");