@adobe/coral-spectrum
Version:
Coral Spectrum is a JavaScript library of Web Components following Spectrum design patterns.
1 lines • 1.12 MB
JavaScript
var Coral=function(e){"use strict";Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1==t.nodeType);return null}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode&&this.parentNode.removeChild(this)}})})),function(){var e=document.createElement("_");if(e.classList.add("c1","c2"),!e.classList.contains("c2")){var t=function(e){var t=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(e){var n,i=arguments.length;for(n=0;n<i;n++)e=arguments[n],t.call(this,e)}};t("add"),t("remove")}if(e.classList.toggle("c3",!1),e.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return 1 in arguments&&!this.contains(e)==!t?t:n.call(this,e)}}if(!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))){var i=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"classList");Object.defineProperty(SVGElement.prototype,"classList",i)}e=null}(),function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}();var t=!1;try{var n=document.createElement("div");n.addEventListener("focus",(function(e){e.preventDefault(),e.stopPropagation()}),!0),n.focus(Object.defineProperty({},"preventScroll",{get:function(){t=!0}}))}catch(e){}if(void 0===HTMLElement.prototype.nativeFocus&&!t){HTMLElement.prototype.nativeFocus=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(e){var t=function e(t){var n=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return t?"visible"!==n&&"hidden"!==n&&t.scrollHeight>=t.clientHeight?t:e(t.parentNode)||document.body:null}(this),n=t.scrollTop;this.nativeFocus(),e&&e.preventScroll&&setTimeout((function(){t.scrollTop=n}),0)}}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?u(e):t}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=s(e);if(t){var a=s(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return d(this,n)}}function m(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=s(e)););return e}function p(e,t,n){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=m(e,t);if(i){var a=Object.getOwnPropertyDescriptor(i,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function f(e,t,n,i){return(f="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,i){var a,r=m(e,t);if(r){if((a=Object.getOwnPropertyDescriptor(r,t)).set)return a.set.call(i,n),!0;if(!a.writable)return!1}if(a=Object.getOwnPropertyDescriptor(i,t)){if(!a.writable)return!1;a.value=n,Object.defineProperty(i,t,a)}else!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(i,t,n);return!0})(e,t,n,i)}function v(e,t,n,i,a){if(!f(e,t,n,i||e)&&a)throw new Error("failed to set property");return n}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],i=!0,a=!1,r=void 0;try{for(var o,l=e[Symbol.iterator]();!(i=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==l.return||l.return()}finally{if(a)throw r}}return n}(e,t)||b(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){if(e){if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var k="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function A(e,t){return e(t={exports:{}},t.exports),t.exports}var C=function(e){return e&&e.Math==Math&&e},x=C("object"==("undefined"==typeof globalThis?"undefined":i(globalThis))&&globalThis)||C("object"==("undefined"==typeof window?"undefined":i(window))&&window)||C("object"==("undefined"==typeof self?"undefined":i(self))&&self)||C("object"==i(k)&&k)||Function("return this")(),E=function(e){try{return!!e()}catch(e){return!0}},w=!E((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),S={}.propertyIsEnumerable,T=Object.getOwnPropertyDescriptor,L={f:T&&!S.call({1:2},1)?function(e){var t=T(this,e);return!!t&&t.enumerable}:S},I=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},N={}.toString,M=function(e){return N.call(e).slice(8,-1)},O="".split,D=E((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==M(e)?O.call(e,""):Object(e)}:Object,F=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},H=function(e){return D(F(e))},P=function(e){return"object"===i(e)?null!==e:"function"==typeof e},R=function(e,t){if(!P(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!P(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!P(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!P(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")},B={}.hasOwnProperty,U=function(e,t){return B.call(e,t)},q=x.document,V=P(q)&&P(q.createElement),z=function(e){return V?q.createElement(e):{}},j=!w&&!E((function(){return 7!=Object.defineProperty(z("div"),"a",{get:function(){return 7}}).a})),K=Object.getOwnPropertyDescriptor,G={f:w?K:function(e,t){if(e=H(e),t=R(t,!0),j)try{return K(e,t)}catch(e){}if(U(e,t))return I(!L.f.call(e,t),e[t])}},W=function(e){if(!P(e))throw TypeError(String(e)+" is not an object");return e},Z=Object.defineProperty,X={f:w?Z:function(e,t,n){if(W(e),t=R(t,!0),W(n),j)try{return Z(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Y=w?function(e,t,n){return X.f(e,t,I(1,n))}:function(e,t,n){return e[t]=n,e},Q=function(e,t){try{Y(x,e,t)}catch(n){x[e]=t}return t},J=x["__core-js_shared__"]||Q("__core-js_shared__",{}),$=Function.toString;"function"!=typeof J.inspectSource&&(J.inspectSource=function(e){return $.call(e)});var ee,te,ne,ie=J.inspectSource,ae=x.WeakMap,re="function"==typeof ae&&/native code/.test(ie(ae)),oe=A((function(e){(e.exports=function(e,t){return J[e]||(J[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),le=0,se=Math.random(),ce=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++le+se).toString(36)},ue=oe("keys"),de=function(e){return ue[e]||(ue[e]=ce(e))},he={},me=x.WeakMap;if(re){var pe=new me,fe=pe.get,ve=pe.has,_e=pe.set;ee=function(e,t){return _e.call(pe,e,t),t},te=function(e){return fe.call(pe,e)||{}},ne=function(e){return ve.call(pe,e)}}else{var ge=de("state");he[ge]=!0,ee=function(e,t){return Y(e,ge,t),t},te=function(e){return U(e,ge)?e[ge]:{}},ne=function(e){return U(e,ge)}}var be={set:ee,get:te,has:ne,enforce:function(e){return ne(e)?te(e):ee(e,{})},getterFor:function(e){return function(t){var n;if(!P(t)||(n=te(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},ye=A((function(e){var t=be.get,n=be.enforce,i=String(String).split("String");(e.exports=function(e,t,a,r){var o=!!r&&!!r.unsafe,l=!!r&&!!r.enumerable,s=!!r&&!!r.noTargetGet;"function"==typeof a&&("string"!=typeof t||U(a,"name")||Y(a,"name",t),n(a).source=i.join("string"==typeof t?t:"")),e!==x?(o?!s&&e[t]&&(l=!0):delete e[t],l?e[t]=a:Y(e,t,a)):l?e[t]=a:Q(t,a)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||ie(this)}))})),ke=x,Ae=function(e){return"function"==typeof e?e:void 0},Ce=function(e,t){return arguments.length<2?Ae(ke[e])||Ae(x[e]):ke[e]&&ke[e][t]||x[e]&&x[e][t]},xe=Math.ceil,Ee=Math.floor,we=function(e){return isNaN(e=+e)?0:(e>0?Ee:xe)(e)},Se=Math.min,Te=function(e){return e>0?Se(we(e),9007199254740991):0},Le=Math.max,Ie=Math.min,Ne=function(e){return function(t,n,i){var a,r=H(t),o=Te(r.length),l=function(e,t){var n=we(e);return n<0?Le(n+t,0):Ie(n,t)}(i,o);if(e&&n!=n){for(;o>l;)if((a=r[l++])!=a)return!0}else for(;o>l;l++)if((e||l in r)&&r[l]===n)return e||l||0;return!e&&-1}},Me={includes:Ne(!0),indexOf:Ne(!1)}.indexOf,Oe=function(e,t){var n,i=H(e),a=0,r=[];for(n in i)!U(he,n)&&U(i,n)&&r.push(n);for(;t.length>a;)U(i,n=t[a++])&&(~Me(r,n)||r.push(n));return r},De=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Fe=De.concat("length","prototype"),He={f:Object.getOwnPropertyNames||function(e){return Oe(e,Fe)}},Pe={f:Object.getOwnPropertySymbols},Re=Ce("Reflect","ownKeys")||function(e){var t=He.f(W(e)),n=Pe.f;return n?t.concat(n(e)):t},Be=function(e,t){for(var n=Re(t),i=X.f,a=G.f,r=0;r<n.length;r++){var o=n[r];U(e,o)||i(e,o,a(t,o))}},Ue=/#|\.prototype\./,qe=function(e,t){var n=ze[Ve(e)];return n==Ke||n!=je&&("function"==typeof t?E(t):!!t)},Ve=qe.normalize=function(e){return String(e).replace(Ue,".").toLowerCase()},ze=qe.data={},je=qe.NATIVE="N",Ke=qe.POLYFILL="P",Ge=qe,We=G.f,Ze=function(e,t){var n,a,r,o,l,s=e.target,c=e.global,u=e.stat;if(n=c?x:u?x[s]||Q(s,{}):(x[s]||{}).prototype)for(a in t){if(o=t[a],r=e.noTargetGet?(l=We(n,a))&&l.value:n[a],!Ge(c?a:s+(u?".":"#")+a,e.forced)&&void 0!==r){if(i(o)===i(r))continue;Be(o,r)}(e.sham||r&&r.sham)&&Y(o,"sham",!0),ye(n,a,o,e)}},Xe=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},Ye=Ce("Reflect","apply"),Qe=Function.apply,Je=!E((function(){Ye((function(){}))}));Ze({target:"Reflect",stat:!0,forced:Je},{apply:function(e,t,n){return Xe(e),W(n),Ye?Ye(e,t,n):Qe.call(e,t,n)}});var $e,et=Object.keys||function(e){return Oe(e,De)},tt=w?Object.defineProperties:function(e,t){W(e);for(var n,i=et(t),a=i.length,r=0;a>r;)X.f(e,n=i[r++],t[n]);return e},nt=Ce("document","documentElement"),it=de("IE_PROTO"),at=function(){},rt=function(e){return"<script>"+e+"<\/script>"},ot=function(){try{$e=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;ot=$e?function(e){e.write(rt("")),e.close();var t=e.parentWindow.Object;return e=null,t}($e):((t=z("iframe")).style.display="none",nt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(rt("document.F=Object")),e.close(),e.F);for(var n=De.length;n--;)delete ot.prototype[De[n]];return ot()};he[it]=!0;var lt=Object.create||function(e,t){var n;return null!==e?(at.prototype=W(e),n=new at,at.prototype=null,n[it]=e):n=ot(),void 0===t?n:tt(n,t)},st=[].slice,ct={},ut=function(e,t,n){if(!(t in ct)){for(var i=[],a=0;a<t;a++)i[a]="a["+a+"]";ct[t]=Function("C,a","return new C("+i.join(",")+")")}return ct[t](e,n)},dt=Function.bind||function(e){var t=Xe(this),n=st.call(arguments,1),i=function(){var a=n.concat(st.call(arguments));return this instanceof i?ut(t,a.length,a):t.apply(e,a)};return P(t.prototype)&&(i.prototype=t.prototype),i},ht=Ce("Reflect","construct"),mt=E((function(){function e(){}return!(ht((function(){}),[],e)instanceof e)})),pt=!E((function(){ht((function(){}))})),ft=mt||pt;Ze({target:"Reflect",stat:!0,forced:ft,sham:ft},{construct:function(e,t){Xe(e),W(t);var n=arguments.length<3?e:Xe(arguments[2]);if(pt&&!mt)return ht(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var i=[null];return i.push.apply(i,t),new(dt.apply(e,i))}var a=n.prototype,r=lt(P(a)?a:Object.prototype),o=Function.apply.call(e,r,t);return P(o)?o:r}});var vt=E((function(){Reflect.defineProperty(X.f({},1,{value:1}),1,{value:2})}));Ze({target:"Reflect",stat:!0,forced:vt,sham:!w},{defineProperty:function(e,t,n){W(e);var i=R(t,!0);W(n);try{return X.f(e,i,n),!0}catch(e){return!1}}});var _t=G.f;Ze({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=_t(W(e),t);return!(n&&!n.configurable)&&delete e[t]}});var gt=!E((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),bt=de("IE_PROTO"),yt=Object.prototype,kt=gt?Object.getPrototypeOf:function(e){return e=Object(F(e)),U(e,bt)?e[bt]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?yt:null};Ze({target:"Reflect",stat:!0},{get:function e(t,n){var i,a,r=arguments.length<3?t:arguments[2];return W(t)===r?t[n]:(i=G.f(t,n))?U(i,"value")?i.value:void 0===i.get?void 0:i.get.call(r):P(a=kt(t))?e(a,n,r):void 0}}),Ze({target:"Reflect",stat:!0,sham:!w},{getOwnPropertyDescriptor:function(e,t){return G.f(W(e),t)}}),Ze({target:"Reflect",stat:!0,sham:!gt},{getPrototypeOf:function(e){return kt(W(e))}}),Ze({target:"Reflect",stat:!0},{has:function(e,t){return t in e}});var At=Object.isExtensible;Ze({target:"Reflect",stat:!0},{isExtensible:function(e){return W(e),!At||At(e)}}),Ze({target:"Reflect",stat:!0},{ownKeys:Re});var Ct=!E((function(){return Object.isExtensible(Object.preventExtensions({}))}));Ze({target:"Reflect",stat:!0,sham:!Ct},{preventExtensions:function(e){W(e);try{var t=Ce("Object","preventExtensions");return t&&t(e),!0}catch(e){return!1}}});var xt=E((function(){var e=X.f({},"a",{configurable:!0});return!1!==Reflect.set(kt(e),"a",1,e)}));Ze({target:"Reflect",stat:!0,forced:xt},{set:function e(t,n,i){var a,r,o=arguments.length<4?t:arguments[3],l=G.f(W(t),n);if(!l){if(P(r=kt(t)))return e(r,n,i,o);l=I(0)}if(U(l,"value")){if(!1===l.writable||!P(o))return!1;if(a=G.f(o,n)){if(a.get||a.set||!1===a.writable)return!1;a.value=i,X.f(o,n,a)}else X.f(o,n,I(0,i));return!0}return void 0!==l.set&&(l.set.call(o,i),!0)}});var Et=function(e){if(!P(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e},wt=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return W(n),Et(i),t?e.call(n,i):n.__proto__=i,n}}():void 0);wt&&Ze({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){W(e),Et(t);try{return wt(e,t),!0}catch(e){return!1}}});ke.Reflect;var St=!!Object.getOwnPropertySymbols&&!E((function(){return!String(Symbol())})),Tt=St&&!Symbol.sham&&"symbol"==i(Symbol.iterator),Lt=oe("wks"),It=x.Symbol,Nt=Tt?It:It&&It.withoutSetter||ce,Mt=function(e){return U(Lt,e)||(St&&U(It,e)?Lt[e]=It[e]:Lt[e]=Nt("Symbol."+e)),Lt[e]},Ot={};Ot[Mt("toStringTag")]="z";var Dt="[object z]"===String(Ot),Ft=Mt("toStringTag"),Ht="Arguments"==M(function(){return arguments}()),Pt=Dt?M:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),Ft))?n:Ht?M(t):"Object"==(i=M(t))&&"function"==typeof t.callee?"Arguments":i},Rt=Dt?{}.toString:function(){return"[object "+Pt(this)+"]"};Dt||ye(Object.prototype,"toString",Rt,{unsafe:!0});var Bt,Ut,qt,Vt=function(e){return function(t,n){var i,a,r=String(F(t)),o=we(n),l=r.length;return o<0||o>=l?e?"":void 0:(i=r.charCodeAt(o))<55296||i>56319||o+1===l||(a=r.charCodeAt(o+1))<56320||a>57343?e?r.charAt(o):i:e?r.slice(o,o+2):a-56320+(i-55296<<10)+65536}},zt={codeAt:Vt(!1),charAt:Vt(!0)},jt=Mt("iterator"),Kt=!1;[].keys&&("next"in(qt=[].keys())?(Ut=kt(kt(qt)))!==Object.prototype&&(Bt=Ut):Kt=!0),null==Bt&&(Bt={}),U(Bt,jt)||Y(Bt,jt,(function(){return this}));var Gt={IteratorPrototype:Bt,BUGGY_SAFARI_ITERATORS:Kt},Wt=X.f,Zt=Mt("toStringTag"),Xt=function(e,t,n){e&&!U(e=n?e:e.prototype,Zt)&&Wt(e,Zt,{configurable:!0,value:t})},Yt={},Qt=Gt.IteratorPrototype,Jt=function(){return this},$t=Gt.IteratorPrototype,en=Gt.BUGGY_SAFARI_ITERATORS,tn=Mt("iterator"),nn=function(){return this},an=function(e,t,n,i,a,r,o){!function(e,t,n){var i=t+" Iterator";e.prototype=lt(Qt,{next:I(1,n)}),Xt(e,i,!1),Yt[i]=Jt}(n,t,i);var l,s,c,u=function(e){if(e===a&&f)return f;if(!en&&e in m)return m[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",h=!1,m=e.prototype,p=m[tn]||m["@@iterator"]||a&&m[a],f=!en&&p||u(a),v="Array"==t&&m.entries||p;if(v&&(l=kt(v.call(new e)),$t!==Object.prototype&&l.next&&(kt(l)!==$t&&(wt?wt(l,$t):"function"!=typeof l[tn]&&Y(l,tn,nn)),Xt(l,d,!0))),"values"==a&&p&&"values"!==p.name&&(h=!0,f=function(){return p.call(this)}),m[tn]!==f&&Y(m,tn,f),Yt[t]=f,a)if(s={values:u("values"),keys:r?f:u("keys"),entries:u("entries")},o)for(c in s)!en&&!h&&c in m||ye(m,c,s[c]);else Ze({target:t,proto:!0,forced:en||h},s);return s},rn=zt.charAt,on=be.set,ln=be.getterFor("String Iterator");an(String,"String",(function(e){on(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=ln(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=rn(n,i),t.index+=e.length,{value:e,done:!1})}));var sn={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},cn=Mt("unscopables"),un=Array.prototype;null==un[cn]&&X.f(un,cn,{configurable:!0,value:lt(null)});var dn=function(e){un[cn][e]=!0},hn=be.set,mn=be.getterFor("Array Iterator"),pn=an(Array,"Array",(function(e,t){hn(this,{type:"Array Iterator",target:H(e),index:0,kind:t})}),(function(){var e=mn(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values");Yt.Arguments=Yt.Array,dn("keys"),dn("values"),dn("entries");var fn=Mt("iterator"),vn=Mt("toStringTag"),_n=pn.values;for(var gn in sn){var bn=x[gn],yn=bn&&bn.prototype;if(yn){if(yn[fn]!==_n)try{Y(yn,fn,_n)}catch(e){yn[fn]=_n}if(yn[vn]||Y(yn,vn,gn),sn[gn])for(var kn in pn)if(yn[kn]!==pn[kn])try{Y(yn,kn,pn[kn])}catch(e){yn[kn]=pn[kn]}}}var An=x.Promise,Cn=Mt("species"),xn=Mt("iterator"),En=Array.prototype,wn=function(e,t,n){if(Xe(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,a){return e.call(t,n,i,a)}}return function(){return e.apply(t,arguments)}},Sn=Mt("iterator"),Tn=function(e,t,n,i){try{return i?t(W(n)[0],n[1]):t(n)}catch(t){var a=e.return;throw void 0!==a&&W(a.call(e)),t}},Ln=A((function(e){var t=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,n,a,r,o){var l,s,c,u,d,h,m,p,f=wn(n,a,r?2:1);if(o)l=e;else{if("function"!=typeof(s=function(e){if(null!=e)return e[Sn]||e["@@iterator"]||Yt[Pt(e)]}(e)))throw TypeError("Target is not iterable");if(void 0!==(p=s)&&(Yt.Array===p||En[xn]===p)){for(c=0,u=Te(e.length);u>c;c++)if((d=r?f(W(m=e[c])[0],m[1]):f(e[c]))&&d instanceof t)return d;return new t(!1)}l=s.call(e)}for(h=l.next;!(m=h.call(l)).done;)if("object"==i(d=Tn(l,f,m.value,r))&&d&&d instanceof t)return d;return new t(!1)}).stop=function(e){return new t(!0,e)}})),In=Mt("iterator"),Nn=!1;try{var Mn=0,On={next:function(){return{done:!!Mn++}},return:function(){Nn=!0}};On[In]=function(){return this},Array.from(On,(function(){throw 2}))}catch(e){}var Dn,Fn,Hn,Pn=Mt("species"),Rn=function(e,t){var n,i=W(e).constructor;return void 0===i||null==(n=W(i)[Pn])?t:Xe(n)},Bn=Ce("navigator","userAgent")||"",Un=/(iphone|ipod|ipad).*applewebkit/i.test(Bn),qn=x.location,Vn=x.setImmediate,zn=x.clearImmediate,jn=x.process,Kn=x.MessageChannel,Gn=x.Dispatch,Wn=0,Zn={},Xn=function(e){if(Zn.hasOwnProperty(e)){var t=Zn[e];delete Zn[e],t()}},Yn=function(e){return function(){Xn(e)}},Qn=function(e){Xn(e.data)},Jn=function(e){x.postMessage(e+"",qn.protocol+"//"+qn.host)};Vn&&zn||(Vn=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return Zn[++Wn]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},Dn(Wn),Wn},zn=function(e){delete Zn[e]},"process"==M(jn)?Dn=function(e){jn.nextTick(Yn(e))}:Gn&&Gn.now?Dn=function(e){Gn.now(Yn(e))}:Kn&&!Un?(Hn=(Fn=new Kn).port2,Fn.port1.onmessage=Qn,Dn=wn(Hn.postMessage,Hn,1)):!x.addEventListener||"function"!=typeof postMessage||x.importScripts||E(Jn)?Dn="onreadystatechange"in z("script")?function(e){nt.appendChild(z("script")).onreadystatechange=function(){nt.removeChild(this),Xn(e)}}:function(e){setTimeout(Yn(e),0)}:(Dn=Jn,x.addEventListener("message",Qn,!1)));var $n,ei,ti,ni,ii,ai,ri,oi,li={set:Vn,clear:zn},si=G.f,ci=li.set,ui=x.MutationObserver||x.WebKitMutationObserver,di=x.process,hi=x.Promise,mi="process"==M(di),pi=si(x,"queueMicrotask"),fi=pi&&pi.value;fi||($n=function(){var e,t;for(mi&&(e=di.domain)&&e.exit();ei;){t=ei.fn,ei=ei.next;try{t()}catch(e){throw ei?ni():ti=void 0,e}}ti=void 0,e&&e.enter()},mi?ni=function(){di.nextTick($n)}:ui&&!Un?(ii=!0,ai=document.createTextNode(""),new ui($n).observe(ai,{characterData:!0}),ni=function(){ai.data=ii=!ii}):hi&&hi.resolve?(ri=hi.resolve(void 0),oi=ri.then,ni=function(){oi.call(ri,$n)}):ni=function(){ci.call(x,$n)});var vi,_i,gi=fi||function(e){var t={fn:e,next:void 0};ti&&(ti.next=t),ei||(ei=t,ni()),ti=t},bi=function(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i})),this.resolve=Xe(t),this.reject=Xe(n)},yi={f:function(e){return new bi(e)}},ki=function(e,t){if(W(e),P(t)&&t.constructor===e)return t;var n=yi.f(e);return(0,n.resolve)(t),n.promise},Ai=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Ci=x.process,xi=Ci&&Ci.versions,Ei=xi&&xi.v8;Ei?_i=(vi=Ei.split("."))[0]+vi[1]:Bn&&(!(vi=Bn.match(/Edge\/(\d+)/))||vi[1]>=74)&&(vi=Bn.match(/Chrome\/(\d+)/))&&(_i=vi[1]);var wi,Si,Ti,Li,Ii=_i&&+_i,Ni=li.set,Mi=Mt("species"),Oi="Promise",Di=be.get,Fi=be.set,Hi=be.getterFor(Oi),Pi=An,Ri=x.TypeError,Bi=x.document,Ui=x.process,qi=Ce("fetch"),Vi=yi.f,zi=Vi,ji="process"==M(Ui),Ki=!!(Bi&&Bi.createEvent&&x.dispatchEvent),Gi=Ge(Oi,(function(){if(!(ie(Pi)!==String(Pi))){if(66===Ii)return!0;if(!ji&&"function"!=typeof PromiseRejectionEvent)return!0}if(Ii>=51&&/native code/.test(Pi))return!1;var e=Pi.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[Mi]=t,!(e.then((function(){}))instanceof t)})),Wi=Gi||!function(e,t){if(!t&&!Nn)return!1;var n=!1;try{var i={};i[In]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}((function(e){Pi.all(e).catch((function(){}))})),Zi=function(e){var t;return!(!P(e)||"function"!=typeof(t=e.then))&&t},Xi=function(e,t,n){if(!t.notified){t.notified=!0;var i=t.reactions;gi((function(){for(var a=t.value,r=1==t.state,o=0;i.length>o;){var l,s,c,u=i[o++],d=r?u.ok:u.fail,h=u.resolve,m=u.reject,p=u.domain;try{d?(r||(2===t.rejection&&$i(e,t),t.rejection=1),!0===d?l=a:(p&&p.enter(),l=d(a),p&&(p.exit(),c=!0)),l===u.promise?m(Ri("Promise-chain cycle")):(s=Zi(l))?s.call(l,h,m):h(l)):m(a)}catch(e){p&&!c&&p.exit(),m(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&Qi(e,t)}))}},Yi=function(e,t,n){var i,a;Ki?((i=Bi.createEvent("Event")).promise=t,i.reason=n,i.initEvent(e,!1,!0),x.dispatchEvent(i)):i={promise:t,reason:n},(a=x["on"+e])?a(i):"unhandledrejection"===e&&function(e,t){var n=x.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Qi=function(e,t){Ni.call(x,(function(){var n,i=t.value;if(Ji(t)&&(n=Ai((function(){ji?Ui.emit("unhandledRejection",i,e):Yi("unhandledrejection",e,i)})),t.rejection=ji||Ji(t)?2:1,n.error))throw n.value}))},Ji=function(e){return 1!==e.rejection&&!e.parent},$i=function(e,t){Ni.call(x,(function(){ji?Ui.emit("rejectionHandled",e):Yi("rejectionhandled",e,t.value)}))},ea=function(e,t,n,i){return function(a){e(t,n,a,i)}},ta=function(e,t,n,i){t.done||(t.done=!0,i&&(t=i),t.value=n,t.state=2,Xi(e,t,!0))},na=function e(t,n,i,a){if(!n.done){n.done=!0,a&&(n=a);try{if(t===i)throw Ri("Promise can't be resolved itself");var r=Zi(i);r?gi((function(){var a={done:!1};try{r.call(i,ea(e,t,a,n),ea(ta,t,a,n))}catch(e){ta(t,a,e,n)}})):(n.value=i,n.state=1,Xi(t,n,!1))}catch(e){ta(t,{done:!1},e,n)}}};Gi&&(Pi=function(e){!function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,Pi,Oi),Xe(e),wi.call(this);var t=Di(this);try{e(ea(na,this,t),ea(ta,this,t))}catch(e){ta(this,t,e)}},(wi=function(e){Fi(this,{type:Oi,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(e,t,n){for(var i in t)ye(e,i,t[i],n);return e}(Pi.prototype,{then:function(e,t){var n=Hi(this),i=Vi(Rn(this,Pi));return i.ok="function"!=typeof e||e,i.fail="function"==typeof t&&t,i.domain=ji?Ui.domain:void 0,n.parent=!0,n.reactions.push(i),0!=n.state&&Xi(this,n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),Si=function(){var e=new wi,t=Di(e);this.promise=e,this.resolve=ea(na,e,t),this.reject=ea(ta,e,t)},yi.f=Vi=function(e){return e===Pi||e===Ti?new Si(e):zi(e)},"function"==typeof An&&(Li=An.prototype.then,ye(An.prototype,"then",(function(e,t){var n=this;return new Pi((function(e,t){Li.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof qi&&Ze({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return ki(Pi,qi.apply(x,arguments))}}))),Ze({global:!0,wrap:!0,forced:Gi},{Promise:Pi}),Xt(Pi,Oi,!1),function(e){var t=Ce(e),n=X.f;w&&t&&!t[Cn]&&n(t,Cn,{configurable:!0,get:function(){return this}})}(Oi),Ti=Ce(Oi),Ze({target:Oi,stat:!0,forced:Gi},{reject:function(e){var t=Vi(this);return t.reject.call(void 0,e),t.promise}}),Ze({target:Oi,stat:!0,forced:Gi},{resolve:function(e){return ki(this,e)}}),Ze({target:Oi,stat:!0,forced:Wi},{all:function(e){var t=this,n=Vi(t),i=n.resolve,a=n.reject,r=Ai((function(){var n=Xe(t.resolve),r=[],o=0,l=1;Ln(e,(function(e){var s=o++,c=!1;r.push(void 0),l++,n.call(t,e).then((function(e){c||(c=!0,r[s]=e,--l||i(r))}),a)})),--l||i(r)}));return r.error&&a(r.value),n.promise},race:function(e){var t=this,n=Vi(t),i=n.reject,a=Ai((function(){var a=Xe(t.resolve);Ln(e,(function(e){a.call(t,e).then(n.resolve,i)}))}));return a.error&&i(a.value),n.promise}}),Ze({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=yi.f(t),i=n.resolve,a=n.reject,r=Ai((function(){var n=Xe(t.resolve),a=[],r=0,o=1;Ln(e,(function(e){var l=r++,s=!1;a.push(void 0),o++,n.call(t,e).then((function(e){s||(s=!0,a[l]={status:"fulfilled",value:e},--o||i(a))}),(function(e){s||(s=!0,a[l]={status:"rejected",reason:e},--o||i(a))}))})),--o||i(a)}));return r.error&&a(r.value),n.promise}});var ia=!!An&&E((function(){An.prototype.finally.call({then:function(){}},(function(){}))}));Ze({target:"Promise",proto:!0,real:!0,forced:ia},{finally:function(e){var t=Rn(this,Ce("Promise")),n="function"==typeof e;return this.then(n?function(n){return ki(t,e()).then((function(){return n}))}:e,n?function(n){return ki(t,e()).then((function(){throw n}))}:e)}}),"function"!=typeof An||An.prototype.finally||ye(An.prototype,"finally",Ce("Promise").prototype.finally);ke.Promise;!function(e){if(e){var t=["Tab","ArrowUp","ArrowRight","ArrowDown","ArrowLeft","Home","End","PageUp","PageDown","Enter"," ","Escape","Up","Right","Down","Left","Esc"],n=["text","date","datetime-local","email","month","number","password","search","tel","time","url","week"],i=!1,a=e.getElementsByClassName("focus-ring");e.addEventListener("keydown",(function(a){a.ctrlKey||a.altKey||a.metaKey||-1===t.indexOf(a.key)||(i=!0,!e.activeElement||e.activeElement===e.body||"TEXTAREA"===e.activeElement.tagName||"INPUT"===e.activeElement.tagName&&-1!==n.indexOf(e.activeElement.type)||e.activeElement.classList.add("focus-ring"))}),!0),e.addEventListener("mousedown",(function(){i=!1;for(var e=0;e<a.length;e++)a[e].classList.remove("focus-ring")}),!0),e.addEventListener("focus",(function(e){var t=e.target.classList;t&&i&&t.add("focus-ring")}),!0),e.addEventListener("blur",(function(e){var t=e.target.classList;t&&t.remove("focus-ring")}),!0)}}("undefined"==typeof window?void 0:document),window.customElements&&(window.customElements.forcePolyfill=!0),function(){var e=new function(){},t=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function n(e){var n=t.has(e);return e=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(e),!n&&e}function i(e){var t=e.isConnected;if(void 0!==t)return t;for(;e&&!(e.__CE_isImportDocument||e instanceof Document);)e=e.parentNode||(window.ShadowRoot&&e instanceof ShadowRoot?e.host:void 0);return!(!e||!(e.__CE_isImportDocument||e instanceof Document))}function a(e,t){for(;t&&t!==e&&!t.nextSibling;)t=t.parentNode;return t&&t!==e?t.nextSibling:null}function r(e,t,n){n=n||new Set;for(var i=e;i;){if(i.nodeType===Node.ELEMENT_NODE){var o=i;t(o);var l=o.localName;if("link"===l&&"import"===o.getAttribute("rel")){if((i=o.import)instanceof Node&&!n.has(i))for(n.add(i),i=i.firstChild;i;i=i.nextSibling)r(i,t,n);i=a(e,o);continue}if("template"===l){i=a(e,o);continue}if(o=o.__CE_shadowRoot)for(o=o.firstChild;o;o=o.nextSibling)r(o,t,n)}i=i.firstChild?i.firstChild:a(e,i)}}function o(e,t,n){e[t]=n}function l(){this.a=new Map,this.f=new Map,this.m=[],this.b=!1}function s(e,t){e.b=!0,e.m.push(t)}function c(e,t){e.b&&r(t,(function(t){return u(e,t)}))}function u(e,t){if(e.b&&!t.__CE_patched){t.__CE_patched=!0;for(var n=0;n<e.m.length;n++)e.m[n](t)}}function d(e,t){var n=[];for(r(t,(function(e){return n.push(e)})),t=0;t<n.length;t++){var i=n[t];1===i.__CE_state?e.connectedCallback(i):p(e,i)}}function h(e,t){var n=[];for(r(t,(function(e){return n.push(e)})),t=0;t<n.length;t++){var i=n[t];1===i.__CE_state&&e.disconnectedCallback(i)}}function m(e,t,n){n=n||new Set;var i=[];if(r(t,(function(t){var a;"link"===t.localName&&"import"===t.getAttribute("rel")?(a=t.import)instanceof Node&&"complete"===a.readyState?(a.__CE_isImportDocument=!0,a.__CE_hasRegistry=!0):t.addEventListener("load",(function(){var i=t.import;i.__CE_documentLoadHandled||(i.__CE_documentLoadHandled=!0,i.__CE_isImportDocument=!0,i.__CE_hasRegistry=!0,n.delete(i),m(e,i,n))})):((a=t.getAttribute("is"))&&(t.__CE_is=a),i.push(t))}),n),e.b)for(t=0;t<i.length;t++)u(e,i[t]);for(t=0;t<i.length;t++)p(e,i[t])}function p(e,t){if(void 0===t.__CE_state){var n=e.a.get(t.__CE_is||t.localName);if(n=n&&n.localName===t.localName?n:null){n.constructionStack.push(t);var a=n.constructor;try{try{if(new a!==t)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{n.constructionStack.pop()}}catch(e){throw t.__CE_state=2,e}if(t.__CE_state=1,t.__CE_definition=n,n.attributeChangedCallback)for(n=n.observedAttributes,a=0;a<n.length;a++){var r=n[a],o=t.getAttribute(r);null!==o&&e.attributeChangedCallback(t,r,null,o,null)}i(t)&&e.connectedCallback(t)}}}function f(e,t){this.c=e,this.a=t,this.b=void 0,m(this.c,this.a),"loading"===this.a.readyState&&(this.b=new MutationObserver(this.f.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function v(e){e.b&&e.b.disconnect()}function _(){var e=this;this.b=this.a=void 0,this.f=new Promise((function(t){e.b=t,e.a&&t(e.a)}))}function g(e){if(e.a)throw Error("Already resolved.");e.a=void 0,e.b&&e.b(void 0)}function b(e){this.i=!1,this.c=e,this.l=new Map,this.j=function(e){return e()},this.g=!1,this.h=[],this.s=new f(e,document)}l.prototype.connectedCallback=function(e){var t=e.__CE_definition;t.connectedCallback&&t.connectedCallback.call(e)},l.prototype.disconnectedCallback=function(e){var t=e.__CE_definition;t.disconnectedCallback&&t.disconnectedCallback.call(e)},l.prototype.attributeChangedCallback=function(e,t,n,i,a){var r=e.__CE_definition;r.attributeChangedCallback&&-1<r.observedAttributes.indexOf(t)&&r.attributeChangedCallback.call(e,t,n,i,a)},f.prototype.f=function(e){var t=this.a.readyState;for("interactive"!==t&&"complete"!==t||v(this),t=0;t<e.length;t++)for(var n=e[t].addedNodes,i=0;i<n.length;i++)m(this.c,n[i])},b.prototype.define=function(e,t,i){var a=this;if(!(t instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!n(e))throw new SyntaxError("The element name '"+e+"' is not valid.");if(this.c.a.get(e))throw Error("A custom element with name '"+e+"' has already been defined.");var r,o,l,s,c,u=e;if(i&&i.extends){if(!this.enableCustomizedBuiltins)throw Error("Customized builtin elements are disabled by default. Set customElements.enableCustomizedBuiltins = true.");if(n(i.extends))throw Error("A customized builtin element may not extend a custom element.");if(document.createElement(i.extends)instanceof window.HTMLUnknownElement)throw Error("Cannot extend '"+i.extends+"': is not a real HTML element");u=i.extends}if(this.i)throw Error("A custom element is already being defined.");this.i=!0;try{i=function(e){var t=d[e];if(void 0!==t&&!(t instanceof Function))throw Error("The '"+e+"' callback must be a function.");return t};var d=t.prototype;if(!(d instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");r=i("connectedCallback"),o=i("disconnectedCallback"),l=i("adoptedCallback"),s=i("attributeChangedCallback"),c=t.observedAttributes||[]}catch(e){return}finally{this.i=!1}!function(e,t,n){e.a.set(t,n),e.f.set(n.constructor,n)}(this.c,e,{name:e,localName:u,constructor:t,connectedCallback:r,disconnectedCallback:o,adoptedCallback:l,attributeChangedCallback:s,observedAttributes:c,constructionStack:[]}),this.h.push(e),this.g||(this.g=!0,this.j((function(){if(!1!==a.g)for(a.g=!1,m(a.c,document);0<a.h.length;){var e=a.h.shift();(e=a.l.get(e))&&g(e)}})))},b.prototype.get=function(e){if(e=this.c.a.get(e))return e.constructor},b.prototype.upgradeElement=function(e){p(this.c,e)},b.prototype.whenDefined=function(e){if(!n(e))return Promise.reject(new SyntaxError("'"+e+"' is not a valid custom element name."));var t=this.l.get(e);return t?t.f:(t=new _,this.l.set(e,t),this.c.a.get(e)&&-1===this.h.indexOf(e)&&g(t),t.f)},b.prototype.u=function(e){v(this.s);var t=this.j;this.j=function(n){return e((function(){return t(n)}))}},window.CustomElementRegistry=b,b.prototype.define=b.prototype.define,b.prototype.get=b.prototype.get,b.prototype.whenDefined=b.prototype.whenDefined,b.prototype.upgrade=b.prototype.upgradeElement,b.prototype.polyfillWrapFlushCallback=b.prototype.u;var y=window.Document.prototype.createElement,k=window.Document.prototype.createElementNS,A=window.Document.prototype.importNode,C=window.Document.prototype.prepend,x=window.Document.prototype.append,E=window.Node.prototype.cloneNode,w=window.Node.prototype.appendChild,S=window.Node.prototype.insertBefore,T=window.Node.prototype.removeChild,L=window.Node.prototype.replaceChild,I=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),N=window.Element.prototype.attachShadow,M=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),O=window.Element.prototype.getAttribute,D=window.Element.prototype.setAttribute,F=window.Element.prototype.removeAttribute,H=window.Element.prototype.getAttributeNS,P=window.Element.prototype.setAttributeNS,R=window.Element.prototype.removeAttributeNS,B=window.Element.prototype.insertAdjacentElement,U=window.Element.prototype.prepend,q=window.Element.prototype.append,V=window.Element.prototype.before,z=window.Element.prototype.after,j=window.Element.prototype.replaceWith,K=window.Element.prototype.remove,G=window.HTMLElement,W=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Z=window.HTMLElement.prototype.insertAdjacentElement,X={Button:window.HTMLButtonElement,Canvas:window.HTMLCanvasElement,Data:window.HTMLDataElement,Head:window.HTMLHeadElement,Mod:window.HTMLModElement,TableCell:window.HTMLTableCellElement,TableCol:window.HTMLTableColElement,Anchor:window.HTMLAnchorElement,Area:window.HTMLAreaElement,Base:window.HTMLBaseElement,Body:window.HTMLBodyElement,BR:window.HTMLBRElement,DataList:window.HTMLDataListElement,Details:window.HTMLDetailsElement,Dialog:window.HTMLDialogElement,Div:window.HTMLDivElement,DList:window.HTMLDListElement,Embed:window.HTMLEmbedElement,FieldSet:window.HTMLFieldSetElement,Form:window.HTMLFormElement,Heading:window.HTMLHeadingElement,HR:window.HTMLHRElement,Html:window.HTMLHtmlElement,IFrame:window.HTMLIFrameElement,Image:window.HTMLImageElement,Input:window.HTMLInputElement,Keygen:window.HTMLKeygenElement,Label:window.HTMLLabelElement,Legend:window.HTMLLegendElement,LI:window.HTMLLIElement,Link:window.HTMLLinkElement,Map:window.HTMLMapElement,Media:window.HTMLMediaElement,Menu:window.HTMLMenuElement,MenuItem:window.HTMLMenuItemElement,Meta:window.HTMLMetaElement,Meter:window.HTMLMeterElement,Object:window.HTMLObjectElement,OList:window.HTMLOListElement,OptGroup:window.HTMLOptGroupElement,Option:window.HTMLOptionElement,Output:window.HTMLOutputElement,Paragraph:window.HTMLParagraphElement,Param:window.HTMLParamElement,Picture:window.HTMLPictureElement,Pre:window.HTMLPreElement,Progress:window.HTMLProgressElement,Quote:window.HTMLQuoteElement,Script:window.HTMLScriptElement,Select:window.HTMLSelectElement,Slot:window.HTMLSlotElement,Source:window.HTMLSourceElement,Span:window.HTMLSpanElement,Style:window.HTMLStyleElement,TableCaption:window.HTMLTableCaptionElement,Table:window.HTMLTableElement,TableRow:window.HTMLTableRowElement,TableSection:window.HTMLTableSectionElement,Template:window.HTMLTemplateElement,TextArea:window.HTMLTextAreaElement,Time:window.HTMLTimeElement,Title:window.HTMLTitleElement,Track:window.HTMLTrackElement,UList:window.HTMLUListElement,Unknown:window.HTMLUnknownElement};function Y(e,t,n){t.prepend=function(t){for(var a=[],r=0;r<arguments.length;++r)a[r-0]=arguments[r];r=a.filter((function(e){return e instanceof Node&&i(e)})),n.o.apply(this,a);for(var o=0;o<r.length;o++)h(e,r[o]);if(i(this))for(r=0;r<a.length;r++)(o=a[r])instanceof Element&&d(e,o)},t.append=function(t){for(var a=[],r=0;r<arguments.length;++r)a[r-0]=arguments[r];r=a.filter((function(e){return e instanceof Node&&i(e)})),n.append.apply(this,a);for(var o=0;o<r.length;o++)h(e,r[o]);if(i(this))for(r=0;r<a.length;r++)(o=a[r])instanceof Element&&d(e,o)}}var Q,J=window.customElements;if(!J||J.forcePolyfill||"function"!=typeof J.define||"function"!=typeof J.get){var $=new l;Q=$,window.HTMLElement=function(){function t(){var t=this.constructor;if(!(i=Q.f.get(t)))throw Error("The custom element being constructed was not registered with `customElements`.");var n=i.constructionStack;if(!n.length)return n=y.call(document,i.localName),Object.setPrototypeOf(n,t.prototype),n.__CE_state=1,n.__CE_definition=i,u(Q,n),n;var i,a=n[i=n.length-1];if(a===e)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return n[i]=e,Object.setPrototypeOf(a,t.prototype),u(Q,a),a}return t.prototype=G.prototype,t}(),function(){var t=$;function n(n,i){i&&(window[n]=function(){function a(){var i=this.constructor;if(!(r=t.f.get(i)))throw Error("The custom element being constructed was not registered with `customElements`.");var a=r.constructionStack;if(!a.length)return(a=y.call(document,r.localName)).setAttribute("is",r.name),Object.setPrototypeOf(a,i.prototype),a.__CE_state=1,a.__CE_definition=r,u(t,a),a;var r,o=a[r=a.length-1];if(o===e)throw Error("The "+n+" constructor was either called reentrantly for this constructor or called multiple times.");return a[r]=e,Object.setPrototypeOf(o,i.prototype),u(t,o),o}return a.prototype=i.prototype,a}())}for(var i in X)n("HTML"+i+"Element",X[i])}(),function(){var e=$;o(Document.prototype,"createElement",(function(t,n){if(this.__CE_hasRegistry){var i=e.a.get(n&&n.is?n.is:t);if(i)return new i.constructor}return t=y.call(this,t),n&&n.is&&(t.__CE_is=n.is,t.setAttribute("is",n.is)),u(e,t),t})),o(Document.prototype,"importNode",(function(t,n){return t=A.call(this,t,n),this.__CE_hasRegistry?m(e,t):c(e,t),t})),o(Document.prototype,"createElementNS",(function(t,n,i){if(this.__CE_hasRegistry&&(null===t||"http://www.w3.org/1999/xhtml"===t)){var a=e.a.get(i&&i.is?i.is:n);if(a)return new a.constructor}return t=k.call(this,t,n),i&&i.is&&(t.__CE_is=i.is,t.setAttribute("is",i.is)),u(e,t),t})),Y(e,Document.prototype,{o:C,append:x})}(),function(){var e=$;function t(t,n){Object.defineProperty(t,"textContent",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(t){if(this.nodeType===Node.TEXT_NODE)n.set.call(this,t);else{var a=void 0;if(this.firstChild){var r=this.childNodes,o=r.length;if(0<o&&i(this)){a=Array(o);for(var l=0;l<o;l++)a[l]=r[l]}}if(n.set.call(this,t),a)for(t=0;t<a.length;t++)h(e,a[t])}}})}o(Node.prototype,"insertBefore",(function(t,n){if(t instanceof DocumentFragment){var a=Array.prototype.slice.apply(t.childNodes);if(t=S.call(this,t,n),i(this))for(n=0;n<a.length;n++)d(e,a[n]);return t}return a=i(t),n=S.call(this,t,n),a&&h(e,t),i(this)&&d(e,t),n})),o(Node.prototype,"appendChild",(function(t){if(t instanceof DocumentFragment){var n=Array.prototype.slice.apply(t.childNodes);if(t=w.call(this,t),i(this))for(var a=0;a<n.length;a++)d(e,n[a]);return t}return n=i(t),a=w.call(this,t),n&&h(e,t),i(this)&&d(e,t),a})),o(Node.prototype,"cloneNode",(function(t){return t=E.call(this,t),this.ownerDocument.__CE_hasRegistry?m(e,t):c(e,t),t})),o(Node.prototype,"removeChild",(function(t){var n=i(t),a=T.call(this,t);return n&&h(e,t),a})),o(Node.prototype,"replaceChild",(function(t,n){if(t instanceof DocumentFragment){var a=Array.prototype.slice.apply(t.childNodes);if(t=L.call(this,t,n),i(this))for(h(e,n),n=0;n<a.length;n++)d(e,a[n]);return t}a=i(t);var r=L.call(this,t,n),o=i(this);return o&&h(e,n),a&&h(e,t),o&&d(e,t),r})),I&&I.get?t(Node.prototype,I):s(e,(function(e){t(e,{enumerable:!0,configurable:!0,get:function(){for(var e=[],t=0;t<this.childNodes.length;t++)e.push(this.childNodes[t].textContent);return e.join("")},set:function(e){for(;this.firstChild;)T.call(this,this.firstChild);w.call(this,document.createTextNode(e))}})}))}(),function(){var e=$;function t(t,n){Object.defineProperty(t,"innerHTML",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(t){var a=this,o=void 0;if(i(this)&&(o=[],r(this,(function(e){e!==a&&o.push(e)}))),n.set.call(this,t),o)for(var l=0;l<o.length;l++){var s=o[l];1===s.__CE_state&&e.disconnectedCallback(s)}return this.ownerDocument.__CE_hasRegistry?m(e,this):c(e,this),t}})}function n(t,n){o(t,"insertAdjacentElement",(function(t,a){var r=i(a);return t=n.call(this,t,a),r&&h(e,a),i(t)&&d(e,a),t}))}if(N?o(Element.prototype,"attachShadow",(function(e){return this.__CE_shadowRoot=N.call(this,e)})):console.warn("Custom Elements: `Element#attachShadow` was not patched."),M&&M.get)t(Element.prototype,M);else if(W&&W.get)t(HTMLElement.prototype,W);else{var a=y.call(document,"div");s(e,(function(e){t(e,{enumerable:!0,configurable:!0,get:function(){return E.call(this,!0).innerHTML},set:function(e){var t="template"===this.localName?this.content:this;for(a.innerHTML=e;0<t.childNodes.length;)T.call(t,t.childNodes[0]);for(;0<a.childNodes.length;)w.call(t,a.childNodes[0])}})}))}o(Element.prototype,"setAttribute",(function(t,n){if(1!==this.__CE_state)return D.call(this,t,n);var i=O.call(this,t);D.call(this,t,n),n=O.call(this,t),e.attributeChangedCallback(this,t.toLowerCase(),i,n,null)})),o(Element.prototype,"setAttributeNS",(function(t,n,i){if(1!==this.__CE_state)return P.call(this,t,n,i);var a=H.call(this,t,n);P.call(this,t,n,i),i=H.call(this,t,n),e.attributeChangedCallback(this,n,a,i,t)})),o(Element.prototype,"removeAttribute",(function(t){if(1!==this.__CE_state)return F.call(this,t);var n=O.call(this,t);F.call(this,t),null!==n&&e.attributeChangedCallback(this,t.toLowerCase(),n,null,null)})),o(Element.prototype,"removeAttributeNS",(function(t,n){if(1!==this.__CE_state)return R.call(this,t,n);var i=H.call(this,t,n);R.call(this,t,n);var a=H.call(this,t,n);i!==a&&e.attributeChangedCallback(this,n,i,a,t)})),Z?n(HTMLElement.prototype,Z):B?n(Element.prototype,B):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),Y(e,Element.prototype,{o:U,append:q}),function(e){var t=Element.prototype;t.before=function(t){for(var n=[],a=0;a<arguments.length;++a)n[a-0]=arguments[a];a=n.filter((function(e){return e instanceof Node&&i(e)})),V.apply(this,n);for(var r=0;r<a.length;r++)h(e,a[r]);if(i(this))for(a=0;a<n.length;a++)(r=n[a])instanceof Element&&d(e,r)},t.after=function(t){for(var n=[],a=0;a<arguments.length;++a)n[a-0]=arguments[a];a=n.filter((function(e){return e instanceof Node&&i(e)})),z.apply(this,n);for(var r=0;r<a.length;r++)h(e,a[r]);if(i(this))for(a=0;a<n.length;a++)(r=n[a])instanceof Element&&d(e,r)},t.replaceWith=function(t){for(var n=[],a=0;a<arguments.length;++a)n[a-0]=arguments[a];a=n.filter((function(e){return e instanceof Node&&i(e)}));var r=i(this);j.apply(this,n);for(var o=0;o<a.length;o++)h(e,a[o]);if(r)for(h(e,this),a=0;a<n.length;a++)(r=n[a])instanceof Element&&d(e,r)},t.remove=function(){var t=i(this);K.call(this),t&&h(e,this)}}(e)}(),document.__CE_hasRegistry=!0;var ee=new b($);ee.enableCustomizedBuiltins=!0,Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:ee})}}.call(self);var aa=A((function(e,t){e.exports=function(){var e=0,t=/^\s*(>|:scope\s*>)/;function n(e,t){for(var n=0;n<t.length;n++)if(-1===e.indexOf(t[n]))return!1;return!0}function i(){this._ventPropagationStopped=!0,Event.prototype.stopPropagation.call(this)}function a(){this._ventImmediatePropagationStopped=!0,Event.prototype.stopImmediatePropagation.call(this)}var r=function(){var e=Element.prototype,t=e.matches||e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector;if(!t)throw new Error("Vent: Browser does not support matchesSelector");return t}();function o(t){if(this===n)throw new Error("Vent must be invoked with the new keyword");var n;n="string"==typeof t?document.querySelector(t):t,this.root=n,this._listenersByType=Object.create(null),this._allListeners=[],this._executeCaptureListeners=this._executeCaptureListeners.bind(this),this._executeBubbleListeners=this._executeBubbleListeners.bind(this),this._id=this._id||e++}return o.prototype._listenerMatchesRootTarget=function(e,t){return null===e.selector&&t===this.root},o.prototype._listenerMatchesDelegateTarget=function(e,t){return t!==document&&t!==this.root&&null!==e.selector&&(e.isScoped?r.call(t,'[__vent-id__="'+this._id+'"] '+e.selector):r.call(t,e.selector))},o.prototype._listenerMatchesEventPhase=function(e,t){return e.useCapture===t},o.prototype._executeListenersAtElement=function(e,t,n,i){for(var a,r=0;r<t.length&&(a=t[r],"click"===n.type&&!0===e.disabled||!this._listenerMatchesRootTarget(a,e)&&!this._listenerMatchesDelegateTarget(a,e)||!this._listenerMatchesEventPhase(a,i)||(n.matchedTarget=e,!1===a.handler.call(e,n)&&(n.preventDefault(),n.stopPropagation()),!n._ventImmediatePropagationStopped));r++);},o.prototype._executeCaptureListeners=function(e){var t=this._listenersByType[e.type];if(!t)throw new Error("Vent: _executeListeners called in response to "+e.type+", but we are not listening to it");if(t.length){t=t.slice(),this._decorateEvent(e);var n=this._getPath(e);e:for(var i=n.length-1;i>=0&&t.length;i--){var a=n[i];if(this._executeListenersAtElement(a,t,e,!0),e._ventImmediatePropagationStopped||e._ventPropagationStopped)break e}}this._undecorateEvent(e)},o.prototype._executeBubbleListeners=func