aion-gql-webcomponents
Version:
AION Webcomponents using AION GraphQL
5 lines • 18.2 kB
JavaScript
/*! Built with http://stenciljs.com */
(function(window,document,Context,namespace,hydratedCssClass,components,resourcesUrl){"use strict";
(function(s){s&&(resourcesUrl=s.getAttribute('data-resources-url'))})(document.querySelector("script[data-namespace='aion-gql-webcomponents']"));
function t(t,e){return"sc-"+t.t+(e&&e!==j?"-"+e:"")}function e(t,e){return t+(e?"-h":"-s")}function n(e,n,o,i){let c=o.t+i.mode,r=o[c];if((2===o.e||1===o.e&&!e.o.n)&&(i["s-sc"]=r?t(o,i.mode):t(o)),r||(r=o[c=o.t+j]),r){let t=n.i.head;if(n.n)if(1===o.e)t=i.shadowRoot;else{let e=i;for(;e=n.c(e);)if(e.host&&e.host.shadowRoot){t=e.host.shadowRoot;break}}let f=e.r.get(t);if(f||e.r.set(t,f={}),!f[c]){let e;{e=r.content.cloneNode(!0),f[c]=!0;const o=t.querySelectorAll("[data-styles]");n.f(t,e,o.length&&o[o.length-1].nextSibling||t.firstChild)}}}}function o(t,e,n,o,r,f,s){if("class"!==n||f)if("style"===n){for(const t in o)r&&null!=r[t]||(/-/.test(t)?e.style.removeProperty(t):e.style[t]="");for(const t in r)o&&r[t]===o[t]||(/-/.test(t)?e.style.setProperty(t,r[t]):e.style[t]=r[t])}else if("o"!==n[0]||"n"!==n[1]||!/[A-Z]/.test(n[2])||n in e)if("list"!==n&&"type"!==n&&!f&&(n in e||-1!==["object","function"].indexOf(typeof r)&&null!==r)){const o=t.s(e);o&&o.l&&o.l[n]?c(e,n,r):"ref"!==n&&(c(e,n,null==r?"":r),null!=r&&!1!==r||t.o.u(e,n))}else null!=r&&"key"!==n?function l(t,e,n,o="boolean"==typeof n){const i=e!==(e=e.replace(/^xlink\:?/,""));null==n||o&&(!n||"false"===n)?i?t.removeAttributeNS(S,E(e)):t.removeAttribute(e):"function"!=typeof n&&(n=o?"":n.toString(),i?t.setAttributeNS(S,E(e),n):t.setAttribute(e,n))}(e,n,r):(f||t.o.a(e,n)&&(null==r||!1===r))&&t.o.u(e,n);else n=E(n)in e?E(n.substring(2)):E(n[2])+n.substring(3),r?r!==o&&t.o.p(e,n,r):t.o.d(e,n);else if(o!==r){const t=i(o),n=i(r),c=t.filter(t=>!n.includes(t)),f=i(e.className).filter(t=>!c.includes(t)),s=n.filter(e=>!t.includes(e)&&!f.includes(e));f.push(...s),e.className=f.join(" ")}}function i(t){return null==t||""===t?[]:t.trim().split(/\s+/)}function c(t,e,n){try{t[e]=n}catch(t){}}function r(t,e,n,i,c){const r=11===n.v.nodeType&&n.v.host?n.v.host:n.v,f=e&&e.vattrs||x,s=n.vattrs||x;for(c in f)s&&null!=s[c]||null==f[c]||o(t,r,c,f[c],void 0,i,n.m);for(c in s)c in f&&s[c]===("value"===c||"checked"===c?r[c]:f[c])||o(t,r,c,f[c],s[c],i,n.m)}function f(t,e){function n(i,c,f,s,l,p,y,h,w){if(h=c.vchildren[f],u||(d=!0,"slot"===h.vtag&&(a&&e.b(s,a+"-s"),h.vchildren?h.y=!0:h.w=!0)),W(h.vtext))h.v=e.g(h.vtext);else if(h.w)h.v=e.g("");else{if(p=h.v=A||"svg"===h.vtag?e.M("http://www.w3.org/2000/svg",h.vtag):e.k(h.y?"slot-fb":h.vtag),t.C(p)&&t.j.delete(b),A="svg"===h.vtag||"foreignObject"!==h.vtag&&A,r(t,null,h,A),W(a)&&p["s-si"]!==a&&e.b(p,p["s-si"]=a),h.vchildren)for(l=0;l<h.vchildren.length;++l)(y=n(i,h,l,p))&&e.x(p,y);"svg"===h.vtag&&(A=!1)}return h.v["s-hn"]=m,(h.y||h.w)&&(h.v["s-sr"]=!0,h.v["s-cr"]=v,h.v["s-sn"]=h.vname||"",(w=i&&i.vchildren&&i.vchildren[f])&&w.vtag===h.vtag&&i.v&&o(i.v)),h.v}function o(n,i,c,r){t.O=!0;const f=e.W(n);for(c=f.length-1;c>=0;c--)(r=f[c])["s-hn"]!==m&&r["s-ol"]&&(e.N(r),e.f(l(r),r,s(r)),e.N(r["s-ol"]),r["s-ol"]=null,d=!0),i&&o(r,i);t.O=!1}function i(t,o,i,c,r,f,l,u){const a=t["s-cr"];for((l=a&&e.c(a)||t).shadowRoot&&e.S(l)===m&&(l=l.shadowRoot);r<=f;++r)c[r]&&(u=W(c[r].vtext)?e.g(c[r].vtext):n(null,i,r,t))&&(c[r].v=u,e.f(l,u,s(o)))}function c(t,n,i,c){for(;n<=i;++n)W(t[n])&&(c=t[n].v,p=!0,c["s-ol"]?e.N(c["s-ol"]):o(c,!0),e.N(c))}function f(t,e){return t.vtag===e.vtag&&t.vkey===e.vkey&&("slot"!==t.vtag||t.vname===e.vname)}function s(t){return t&&t["s-ol"]?t["s-ol"]:t}function l(t){return e.c(t["s-ol"]?t["s-ol"]:t)}let u,a,p,d,v,m,b;const y=[];return function h(w,g,$,M,k,C,j,x,O,E,N,S){if(b=w,m=e.S(b),v=b["s-cr"],u=M,a=b["s-sc"],d=p=!1,function u(a,p,d){const v=p.v=a.v,m=a.vchildren,b=p.vchildren;A=p.v&&W(e.A(p.v))&&void 0!==p.v.ownerSVGElement,A="svg"===p.vtag||"foreignObject"!==p.vtag&&A,W(p.vtext)?(d=v["s-cr"])?e.R(e.c(d),p.vtext):a.vtext!==p.vtext&&e.R(v,p.vtext):("slot"!==p.vtag&&r(t,a,p,A),W(m)&&W(b)?function y(t,r,a,p,d,v,m,b){let y=0,h=0,w=r.length-1,g=r[0],$=r[w],M=p.length-1,k=p[0],C=p[M];for(;y<=w&&h<=M;)if(null==g)g=r[++y];else if(null==$)$=r[--w];else if(null==k)k=p[++h];else if(null==C)C=p[--M];else if(f(g,k))u(g,k),g=r[++y],k=p[++h];else if(f($,C))u($,C),$=r[--w],C=p[--M];else if(f(g,C))"slot"!==g.vtag&&"slot"!==C.vtag||o(e.c(g.v)),u(g,C),e.f(t,g.v,e.T($.v)),g=r[++y],C=p[--M];else if(f($,k))"slot"!==g.vtag&&"slot"!==C.vtag||o(e.c($.v)),u($,k),e.f(t,$.v,g.v),$=r[--w],k=p[++h];else{for(d=null,v=y;v<=w;++v)if(r[v]&&W(r[v].vkey)&&r[v].vkey===k.vkey){d=v;break}W(d)?((b=r[d]).vtag!==k.vtag?m=n(r&&r[h],a,d,t):(u(b,k),r[d]=void 0,m=b.v),k=p[++h]):(m=n(r&&r[h],a,h,t),k=p[++h]),m&&e.f(l(g.v),m,s(g.v))}y>w?i(t,null==p[M+1]?null:p[M+1].v,a,p,h,M):h>M&&c(r,y,w)}(v,m,p,b):W(b)?(W(a.vtext)&&e.R(v,""),i(v,null,p,b,0,b.length-1)):W(m)&&c(m,0,m.length-1)),A&&"svg"===p.vtag&&(A=!1)}(g,$),d){for(function t(n,o,i,c,r,f,s,l,u,a){for(r=0,f=(o=e.W(n)).length;r<f;r++){if((i=o[r])["s-sr"]&&(c=i["s-cr"]))for(l=e.W(e.c(c)),u=i["s-sn"],s=l.length-1;s>=0;s--)(c=l[s])["s-cn"]||c["s-nr"]||c["s-hn"]===i["s-hn"]||((3===(a=e.L(c))||8===a)&&""===u||1===a&&null===e.D(c,"slot")&&""===u||1===a&&e.D(c,"slot")===u)&&(y.some(t=>t.P===c)||(p=!0,c["s-sn"]=u,y.push({q:i,P:c})));1===e.L(i)&&t(i)}}($.v),j=0;j<y.length;j++)(x=y[j]).P["s-ol"]||((O=e.g(""))["s-nr"]=x.P,e.f(e.c(x.P),x.P["s-ol"]=O,x.P));for(t.O=!0,j=0;j<y.length;j++){for(x=y[j],N=e.c(x.q),S=e.T(x.q),O=x.P["s-ol"];O=e.B(O);)if((E=O["s-nr"])&&E&&E["s-sn"]===x.P["s-sn"]&&N===e.c(E)&&(E=e.T(E))&&E&&!E["s-nr"]){S=E;break}(!S&&N!==e.c(x.P)||e.T(x.P)!==S)&&x.P!==S&&(e.N(x.P),e.f(N,x.P,S))}t.O=!1}return p&&function t(n,o,i,c,r,f,s,l){for(c=0,r=(i=e.W(n)).length;c<r;c++)if(o=i[c],1===e.L(o)){if(o["s-sr"])for(s=o["s-sn"],o.hidden=!1,f=0;f<r;f++)if(i[f]["s-hn"]!==o["s-hn"])if(l=e.L(i[f]),""!==s){if(1===l&&s===e.D(i[f],"slot")){o.hidden=!0;break}}else if(1===l||3===l&&""!==e.I(i[f]).trim()){o.hidden=!0;break}t(o)}}($.v),y.length=0,$}}function s(t,e){t&&(t.vattrs&&t.vattrs.ref&&t.vattrs.ref(e?null:t.v),t.vchildren&&t.vchildren.forEach(t=>{s(t,e)}))}function l(t,e,n,o,i){const c=t.L(e);let r,f,s,u;if(i&&1===c){(f=t.D(e,C))&&(s=f.split("."))[0]===o&&((u={}).vtag=t.S(u.v=e),n.vchildren||(n.vchildren=[]),n.vchildren[s[1]]=u,n=u,i=""!==s[2]);for(let c=0;c<e.childNodes.length;c++)l(t,e.childNodes[c],n,o,i)}else 3===c&&(r=e.previousSibling)&&8===t.L(r)&&"s"===(s=t.I(r).split("."))[0]&&s[1]===o&&((u={vtext:t.I(e)}).v=e,n.vchildren||(n.vchildren=[]),n.vchildren[s[2]]=u)}function u(t,e){let n,o,i=null,c=!1,r=!1;for(var f=arguments.length;f-- >2;)R.push(arguments[f]);for(;R.length>0;){let e=R.pop();if(e&&void 0!==e.pop)for(f=e.length;f--;)R.push(e[f]);else"boolean"==typeof e&&(e=null),(r="function"!=typeof t)&&(null==e?e="":"number"==typeof e?e=String(e):"string"!=typeof e&&(r=!1)),r&&c?i[i.length-1].vtext+=e:null===i?i=[r?{vtext:e}:e]:i.push(r?{vtext:e}:e),c=r}if(null!=e){if(e.className&&(e.class=e.className),"object"==typeof e.class){for(f in e.class)e.class[f]&&R.push(f);e.class=R.join(" "),R.length=0}null!=e.key&&(n=e.key),null!=e.name&&(o=e.name)}return"function"==typeof t?t(e,i||[],T):{vtag:t,vchildren:i,vtext:void 0,vattrs:e,vkey:n,vname:o,v:void 0,m:!1}}function a(t){return{vtag:t.vtag,vchildren:t.vchildren,vtext:t.vtext,vattrs:t.vattrs,vkey:t.vkey,vname:t.vname}}function p(t){const[e,n,,o,i,c]=t,r={color:{F:"color"}};if(o)for(let t=0;t<o.length;t++){const e=o[t];r[e[0]]={H:e[1],U:!!e[2],F:"string"==typeof e[3]?e[3]:e[3]?e[0]:0,Q:e[4]}}return{t:e,Z:n,l:Object.assign({},r),e:i,z:c?c.map(d):void 0}}function d(t){return{G:t[0],J:t[1],K:!!t[2],V:!!t[3],X:!!t[4]}}function v(t,e){if(W(e)&&"object"!=typeof e&&"function"!=typeof e){if(t===Boolean||4===t)return"false"!==e&&(""===e||!!e);if(t===Number||8===t)return parseFloat(e);if(t===String||2===t)return e.toString()}return e}function m(t,e){t.Y.add(e),t._.has(e)||(t._.set(e,!0),t.tt?t.queue.write(()=>b(t,e)):t.queue.tick(()=>b(t,e)))}async function b(t,n,o,i,c){if(t._.delete(n),!t.et.has(n)){if(i=t.nt.get(n)){if(i)try{i.componentWillUpdate&&await i.componentWillUpdate()}catch(e){t.ot(e,5,n)}}else{if((c=t.it.get(n))&&!c["s-rn"])return void(c["s-rc"]=c["s-rc"]||[]).push(()=>{b(t,n)});if(i=function r(t,e,n,o,i,c,f){try{o=new(i=t.s(e).ct),function s(t,e,n,o,i){t.rt.set(o,n),t.ft.has(n)||t.ft.set(n,{}),Object.entries(Object.assign({color:{type:String}},e.properties,{mode:{type:String}})).forEach(([e,c])=>{(function r(t,e,n,o,i,c,f,s){if(e.type||e.state){const r=t.ft.get(n);e.state||(!e.attr||void 0!==r[i]&&""!==r[i]||(f=c&&c.st)&&W(s=f[e.attr])&&(r[i]=v(e.type,s)),n.hasOwnProperty(i)&&(void 0===r[i]&&(r[i]=v(e.type,n[i])),"mode"!==i&&delete n[i])),o.hasOwnProperty(i)&&void 0===r[i]&&(r[i]=o[i]),e.watchCallbacks&&(r[L+i]=e.watchCallbacks.slice()),w(o,i,function l(e){return(e=t.ft.get(t.rt.get(this)))&&e[i]},function u(n,o){(o=t.rt.get(this))&&(e.state||e.mutable)&&y(t,o,i,n)})}else e.method&&h(n,i,o[i].bind(o))})(t,c,n,o,e,i)})}(t,i,e,o,n),function l(t,e,n){if(e){const o=t.rt.get(n);e.forEach(e=>{n[e.method]={emit:n=>t.lt(o,e.name,{bubbles:e.bubbles,composed:e.composed,cancelable:e.cancelable,detail:n})}})}}(t,i.events,o)}catch(n){o={},t.ot(n,7,e,!0)}return t.nt.set(e,o),o}(t,n,t.ut.get(n)))try{i.componentWillLoad&&await i.componentWillLoad()}catch(e){t.ot(e,3,n)}}(function f(t,n,o,i){try{const c=n.ct.host,r=n.ct.encapsulation,f="shadow"===r&&t.o.n;let s,l=o;if(f&&(l=o.shadowRoot),!o["s-rn"]){t.at(t,t.o,n,o);const i=o["s-sc"];i&&(t.o.b(o,e(i,!0)),"scoped"===r&&t.o.b(o,e(i)))}if(i.render||i.hostData||c||s){t.pt=!0;const e=i.render&&i.render();let n;t.pt=!1;const c=t.dt.get(o)||{};c.v=l;const s=u(null,n,e);t.dt.set(o,t.render(o,c,s,f,r))}o["s-rn"]=!0,o["s-rc"]&&(o["s-rc"].forEach(t=>t()),o["s-rc"]=null)}catch(e){t.pt=!1,t.ot(e,8,o,!0)}})(t,t.s(n),n,i),n["s-init"]()}}function y(t,e,n,o,i){let c=t.ft.get(e);c||t.ft.set(e,c={}),o!==c[n]&&(c[n]=o,t.nt.get(e)&&!t.pt&&e["s-rn"]&&m(t,e))}function h(t,e,n){Object.defineProperty(t,e,{configurable:!0,value:n})}function w(t,e,n,o){Object.defineProperty(t,e,{configurable:!0,get:n,set:o})}function g(t,e,n,o,i,c){if(t.Y.delete(e),(i=t.it.get(e))&&((o=i["s-ld"])&&((n=o.indexOf(e))>-1&&o.splice(n,1),o.length||i["s-init"]&&i["s-init"]()),t.it.delete(e)),t.vt.length&&!t.Y.size)for(;c=t.vt.shift();)c()}function $(t,e,n,o){if(n.connectedCallback=function(){(function n(t,e,o){t.et.delete(o),t.mt.has(o)||(t.bt=!0,t.Y.add(o),t.mt.set(o,!0),o["s-id"]||(o["s-id"]=t.yt()),function i(t,e,n){for(n=e;n=t.o.A(n);)if(t.C(n)){t.j.has(e)||(t.it.set(e,n),(n["s-ld"]=n["s-ld"]||[]).push(e));break}}(t,o),t.queue.tick(()=>{t.ut.set(o,function n(t,e,o,i,c){return o.mode||(o.mode=t.ht(o)),o["s-cr"]||t.D(o,k)||t.n&&1===e.e||(o["s-cr"]=t.g(""),o["s-cr"]["s-cn"]=!0,t.f(o,o["s-cr"],t.W(o)[0])),t.n||1!==e.e||(o.shadowRoot=o),1===e.e&&t.n&&!o.shadowRoot&&t.wt(o,{mode:"open"}),i={gt:o["s-id"],st:{}},e.l&&Object.keys(e.l).forEach(n=>{(c=e.l[n].F)&&(i.st[c]=t.D(o,c))}),i}(t.o,e,o)),t.$t(e,o)}))})(t,e,this)},n.disconnectedCallback=function(){(function e(t,n){!t.O&&function o(t,e){for(;e;){if(!t.c(e))return 9!==t.L(e);e=t.c(e)}}(t.o,n)&&(t.et.set(n,!0),g(t,n),s(t.dt.get(n),!0),t.o.d(n),t.Mt.delete(n),[t.it,t.kt,t.ut].forEach(t=>t.delete(n)))})(t,this)},n["s-init"]=function(){(function e(t,n,o,i,c,r){if((i=t.nt.get(n))&&!t.et.has(n)&&(!n["s-ld"]||!n["s-ld"].length)){t.j.set(n,!0),(r=t.Ct.has(n))||(t.Ct.set(n,!0),n["s-ld"]=void 0,t.o.b(n,o));try{s(t.dt.get(n)),(c=t.kt.get(n))&&(c.forEach(t=>t(n)),t.kt.delete(n)),!r&&i.componentDidLoad&&i.componentDidLoad()}catch(e){t.ot(e,4,n)}g(t,n)}})(t,this,o)},n.forceUpdate=function(){m(t,this)},e.l){const o=Object.entries(e.l);{let t={};o.forEach(([e,{F:n}])=>{n&&(t[n]=e)}),t=Object.assign({},t),n.attributeChangedCallback=function(e,n,o){(function i(t,e,n,o){const i=t[E(n)];i&&(e[i]=o)})(t,this,e,o)}}(function i(t,e,n){e.forEach(([e,o])=>{const i=o.H;3&i?w(n,e,function n(){return(t.ft.get(this)||{})[e]},function n(i){y(t,this,e,v(o.Q,i))}):32===i&&h(n,e,N)})})(t,o,n)}}function M(t,e,n,o){return function(){const i=arguments;return function c(t,e,n){let o=e[n];const i=t.i.body;return i?(o||(o=i.querySelector(n)),o||(o=e[n]=t.k(n),t.x(i,o)),o.componentOnReady()):Promise.resolve()}(t,e,n).then(t=>t[o].apply(t,i))}}const k="ssrv",C="ssrc",j="$",x={},O={enter:13,escape:27,space:32,tab:9,left:37,up:38,right:39,down:40},W=t=>null!=t,E=t=>t.toLowerCase(),N=()=>{},S="http://www.w3.org/1999/xlink";let A=!1;const R=[],T={forEach:(t,e)=>{t.forEach((t,n,o)=>e(a(t),n,o))},map:(t,e)=>{return t.map((t,n,o)=>(function i(t){return{vtag:t.vtag,vchildren:t.vchildren,vtext:t.vtext,vattrs:t.vattrs,vkey:t.vkey,vname:t.vname}})(e(a(t),n,o)))}},L="wc-";(function D(t,e,o,i,c,r,s){function a(t,e){const n=t.t;o.customElements.get(n)||($(C,d[n]=t,e.prototype,r),e.observedAttributes=Object.values(t.l).map(t=>t.F).filter(t=>!!t),o.customElements.define(t.t,e))}const d={html:{}},v={},b=o[t]=o[t]||{},y=function h(t,e,n){t.ael||(t.ael=((t,e,n,o)=>t.addEventListener(e,n,o)),t.rel=((t,e,n,o)=>t.removeEventListener(e,n,o)));const o=new WeakMap,i={i:n,n:!!n.documentElement.attachShadow,jt:!1,L:t=>t.nodeType,k:t=>n.createElement(t),M:(t,e)=>n.createElementNS(t,e),g:t=>n.createTextNode(t),xt:t=>n.createComment(t),f:(t,e,n)=>t.insertBefore(e,n),N:t=>t.remove(),x:(t,e)=>t.appendChild(e),b:(t,e)=>{t.classList.add(e)},W:t=>t.childNodes,c:t=>t.parentNode,T:t=>t.nextSibling,B:t=>t.previousSibling,S:t=>E(t.nodeName),I:t=>t.textContent,R:(t,e)=>t.textContent=e,D:(t,e)=>t.getAttribute(e),Ot:(t,e,n)=>t.setAttribute(e,n),Wt:(t,e,n,o)=>t.setAttributeNS(e,n,o),u:(t,e)=>t.removeAttribute(e),a:(t,e)=>t.hasAttribute(e),ht:e=>e.getAttribute("mode")||(t.Context||{}).mode,Et:(t,o)=>{return"child"===o?t.firstElementChild:"parent"===o?i.A(t):"body"===o?n.body:"document"===o?n:"window"===o?e:t},p:(e,n,c,r,f,s,l,u)=>{const a=n;let p=e,d=o.get(e);if(d&&d[a]&&d[a](),"string"==typeof s?p=i.Et(e,s):"object"==typeof s?p=s:(u=n.split(":")).length>1&&(p=i.Et(e,u[0]),n=u[1]),!p)return;let v=c;(u=n.split(".")).length>1&&(n=u[0],v=(t=>{t.keyCode===O[u[1]]&&c(t)})),l=i.jt?{capture:!!r,passive:!!f}:!!r,t.ael(p,n,v,l),d||o.set(e,d={}),d[a]=(()=>{p&&t.rel(p,n,v,l),d[a]=null})},d:(t,e)=>{const n=o.get(t);n&&(e?n[e]&&n[e]():Object.keys(n).forEach(t=>{n[t]&&n[t]()}))},Nt:(t,n,o)=>{const i=new e.CustomEvent(n,o);return t&&t.dispatchEvent(i),i},A:(t,e)=>(e=i.c(t))&&11===i.L(e)?e.host:e,wt:(t,e)=>t.attachShadow(e)};try{e.addEventListener("e",null,Object.defineProperty({},"passive",{get:()=>i.jt=!0}))}catch(t){}return i}(b,o,i);e.isServer=e.isPrerender=!(e.isClient=!0),e.window=o,e.location=o.location,e.document=i,e.resourcesUrl=e.publicPath=c,e.emit=((t,n,o)=>y.Nt(t,e.eventNameFn?e.eventNameFn(n):n,o)),b.h=u,b.Context=e;const w=o["s-defined"]=o["s-defined"]||{};let g=0;const C={o:y,St:a,lt:e.emit,s:t=>d[y.S(t)],At:t=>e[t],isClient:!0,C:t=>!(!w[y.S(t)]&&!C.s(t)),yt:()=>t+g++,ot:(t,e,n)=>void 0,Rt:t=>(function e(t,n,o){return{create:M(t,n,o,"create"),componentOnReady:M(t,n,o,"componentOnReady")}})(y,v,t),queue:e.queue=function x(t,e){function n(e){return n=>{e.push(n),d||(d=!0,t.raf(c))}}function o(t){for(let e=0;e<t.length;e++)try{t[e](r())}catch(t){}t.length=0}function i(t,e){let n,o=0;for(;o<t.length&&(n=r())<e;)try{t[o++](n)}catch(t){}o===t.length?t.length=0:0!==o&&t.splice(0,o)}function c(){p++,o(l);const e=r()+7*Math.ceil(p*(1/22));i(u,e),i(a,e),u.length>0&&(a.push(...u),u.length=0),(d=l.length+u.length+a.length>0)?t.raf(c):p=0}const r=()=>e.performance.now(),f=Promise.resolve(),s=[],l=[],u=[],a=[];let p=0,d=!1;return t.raf||(t.raf=e.requestAnimationFrame.bind(e)),{tick(t){s.push(t),1===s.length&&f.then(()=>o(s))},read:n(l),write:n(u)}}(b,o),$t:function W(t,e,n){if(t.ct)m(C,e);else{const n="string"==typeof t.Z?t.Z:t.Z[e.mode],o=!y.n;import(c+n+(o?".sc":"")+".entry.js").then(n=>{try{t.ct=n[(t=>E(t).split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""))(t.t)],function o(t,e,n,i,c){if(i){const n=e.t+(c||j);if(!e[n]){const o=t.k("template");e[n]=o,o.innerHTML=`<style>${i}</style>`,t.x(t.i.head,o)}}}(y,t,t.e,t.ct.style,t.ct.styleMode),m(C,e)}catch(e){t.ct=class{}}},t=>void 0)}},pt:!1,tt:!1,O:!1,at:n,it:new WeakMap,r:new WeakMap,mt:new WeakMap,Mt:new WeakMap,Ct:new WeakMap,j:new WeakMap,rt:new WeakMap,ut:new WeakMap,nt:new WeakMap,et:new WeakMap,_:new WeakMap,kt:new WeakMap,Tt:new WeakMap,dt:new WeakMap,ft:new WeakMap,Y:new Set,vt:[]};b.onReady=(()=>new Promise(t=>C.queue.write(()=>C.Y.size?C.vt.push(t):t()))),C.render=f(C,y);const N=y.i.documentElement;return N["s-ld"]=[],N["s-rn"]=!0,N["s-init"]=(()=>{C.j.set(N,b.loaded=C.tt=!0),y.Nt(o,"appload",{detail:{namespace:t}})}),function S(t,e,n){const o=n.querySelectorAll(`[${k}]`),i=o.length;let c,r,f,s,u,a;if(i>0)for(t.j.set(n,!0),s=0;s<i;s++)for(c=o[s],r=e.D(c,k),(f={}).vtag=e.S(f.v=c),t.dt.set(c,f),u=0,a=c.childNodes.length;u<a;u++)l(e,c.childNodes[u],f,r,!0)}(C,y,N),s.map(p).forEach(t=>a(t,class extends HTMLElement{})),C.bt||N["s-init"](),function A(t,e,n,o,i,c){if(e.componentOnReady=((e,n)=>{if(!e.nodeName.includes("-"))return n(null),!1;const o=t.s(e);if(o)if(t.j.has(e))n(e);else{const o=t.kt.get(e)||[];o.push(n),t.kt.set(e,o)}return!!o}),i){for(c=i.length-1;c>=0;c--)e.componentOnReady(i[c][0],i[c][1])&&i.splice(c,1);for(c=0;c<o.length;c++)if(!n[o[c]].componentOnReady)return;for(c=0;c<i.length;c++)i[c][1](null);i.length=0}}(C,b,o,o["s-apps"],o["s-cr"]),b.initialized=!0,C})(namespace,Context,window,document,resourcesUrl,hydratedCssClass,components);
})(window,document,{},"AionGqlWebcomponents","hydrated",[["aion-blocks","6d5vvdrq",1,[["blocks",16],["duration",1,0,1,8],["gqlUrl",1,0,"gql-url",2],["limit",1,0,1,8]],1],["aion-pay","9bjy48hk",1,[["_to",16],["buttonText",1,0,"button-text",2],["encodedTxn",16],["errors",16],["from",16],["fromBalance",16],["gas",16],["gasPrice",16],["gqlUrl",1,0,"gql-url",2],["inputDialogEnable",16],["isError",16],["isNotification",16],["keystoreLoadingPercentage",16],["keystore_password",16],["message",16],["notification",16],["privateKey",16],["refreshAndShow",32],["showConfirm",16],["showWithData",32],["to",1,0,1,2],["txnDone",16],["txnInProgress",16],["txnResponse",16],["unlockBy",16],["value",16],["visible",16]],1]]);