@luftborn/custom-elements 2.0.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/demo/index.js +315 -336
  2. package/demo/index.min.js +314 -335
  3. package/demo/index.min.js.map +1 -1
  4. package/dist/elements/InternationaPhoneNumber/Flags.d.ts +1 -0
  5. package/dist/elements/InternationaPhoneNumber/Flags.js +7 -0
  6. package/dist/elements/InternationaPhoneNumber/Flags.js.map +1 -0
  7. package/dist/elements/InternationaPhoneNumber/Flags2x.d.ts +1 -0
  8. package/dist/elements/InternationaPhoneNumber/Flags2x.js +7 -0
  9. package/dist/elements/InternationaPhoneNumber/Flags2x.js.map +1 -0
  10. package/dist/elements/InternationaPhoneNumber/InternationaPhoneNumberElement.js +11 -2
  11. package/dist/elements/InternationaPhoneNumber/InternationaPhoneNumberElement.js.map +1 -1
  12. package/node_modules/@webcomponents/webcomponentsjs/CHANGELOG.md +0 -15
  13. package/node_modules/@webcomponents/webcomponentsjs/README.md +0 -13
  14. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-ce.js +31 -31
  15. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-ce.js.map +1 -1
  16. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-pf_dom.js +13 -15
  17. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-pf_dom.js.map +1 -1
  18. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-pf_js.js.map +1 -1
  19. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js +223 -237
  20. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js.map +1 -1
  21. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd-ce.js +176 -188
  22. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd-ce.js.map +1 -1
  23. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd.js +144 -155
  24. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd.js.map +1 -1
  25. package/node_modules/@webcomponents/webcomponentsjs/package.json +8 -7
  26. package/node_modules/@webcomponents/webcomponentsjs/src/entrypoints/webcomponents-pf_dom-index.js +0 -2
  27. package/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.d.ts +0 -1
  28. package/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js +225 -239
  29. package/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js.map +1 -1
  30. package/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js +3 -35
  31. package/package.json +2 -2
  32. package/src/elements/InternationaPhoneNumber/Flags.ts +3 -0
  33. package/src/elements/InternationaPhoneNumber/Flags2x.ts +3 -0
  34. package/src/elements/InternationaPhoneNumber/InternationaPhoneNumberElement.ts +16 -0
  35. package/node_modules/@webcomponents/webcomponentsjs/src/platform/event-listener-options.js +0 -122
  36. package/node_modules/@webcomponents/webcomponentsjs/src/platform/toggle-attribute.js +0 -39
@@ -16,73 +16,62 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
16
16
  Code distributed by Google as part of the polymer project is also
17
17
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
18
18
  */
19
- 'use strict';var n;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function p(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}function r(a){if(!(a instanceof Array)){a=p(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}
20
- function ba(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var ca=ba(this);function da(){}da.prototype.toJSON=function(){return{}};function t(a){a.__shady||(a.__shady=new da);return a.__shady}function u(a){return a&&a.__shady};var w=window.ShadyDOM||{};w.Ka=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var ea=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");w.j=!!(ea&&ea.configurable&&ea.get);w.ka=w.force||!w.Ka;w.s=w.noPatch||!1;w.R=w.preferPerformance;w.ma="on-demand"===w.s;var fa;var ha=w.querySelectorImplementation;fa=-1<["native","selectorEngine"].indexOf(ha)?ha:void 0;w.$a=fa;w.za=navigator.userAgent.match("Trident");
21
- function ia(){return Document.prototype.msElementsFromPoint?"msElementsFromPoint":"elementsFromPoint"}function x(a){return(a=u(a))&&void 0!==a.firstChild}function y(a){return a instanceof ShadowRoot}function ja(a){return(a=(a=u(a))&&a.root)&&ka(a)}var la=Element.prototype,ma=la.matches||la.matchesSelector||la.mozMatchesSelector||la.msMatchesSelector||la.oMatchesSelector||la.webkitMatchesSelector,na=document.createTextNode(""),oa=0,pa=[];
22
- (new MutationObserver(function(){for(;pa.length;)try{pa.shift()()}catch(a){throw na.textContent=oa++,a;}})).observe(na,{characterData:!0});function qa(a){pa.push(a);na.textContent=oa++}var ra=document.contains?function(a,b){return a.__shady_native_contains(b)}:function(a,b){return a===b||a.documentElement&&a.documentElement.__shady_native_contains(b)};function sa(a,b){for(;b;){if(b==a)return!0;b=b.__shady_parentNode}return!1}
23
- function ta(a){for(var b=a.length-1;0<=b;b--){var c=a[b],d=c.getAttribute("id")||c.getAttribute("name");d&&"length"!==d&&isNaN(d)&&(a[d]=c)}a.item=function(e){return a[e]};a.namedItem=function(e){if("length"!==e&&isNaN(e)&&a[e])return a[e];for(var f=p(a),g=f.next();!g.done;g=f.next())if(g=g.value,(g.getAttribute("id")||g.getAttribute("name"))==e)return g;return null};return a}function ua(a){var b=[];for(a=a.__shady_native_firstChild;a;a=a.__shady_native_nextSibling)b.push(a);return b}
24
- function va(a){var b=[];for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)b.push(a);return b}function wa(a,b,c){c.configurable=!0;if(c.value)a[b]=c.value;else try{Object.defineProperty(a,b,c)}catch(d){}}function z(a,b,c,d){c=void 0===c?"":c;for(var e in b)d&&0<=d.indexOf(e)||wa(a,c+e,b[e])}function xa(a,b){for(var c in b)c in a&&wa(a,c,b[c])}function A(a){var b={};Object.getOwnPropertyNames(a).forEach(function(c){b[c]=Object.getOwnPropertyDescriptor(a,c)});return b}
25
- function ya(a,b){for(var c=Object.getOwnPropertyNames(b),d=0,e;d<c.length;d++)e=c[d],a[e]=b[e]}function za(a){return a instanceof Node?a:document.createTextNode(""+a)}function Aa(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];if(1===b.length)return za(b[0]);c=document.createDocumentFragment();b=p(b);for(var d=b.next();!d.done;d=b.next())c.appendChild(za(d.value));return c}
26
- function Ba(a){var b;for(b=void 0===b?1:b;0<b;b--)a=a.reduce(function(c,d){Array.isArray(d)?c.push.apply(c,r(d)):c.push(d);return c},[]);return a}function Ca(a){var b=[],c=new Set;a=p(a);for(var d=a.next();!d.done;d=a.next())d=d.value,c.has(d)||(b.push(d),c.add(d));return b};var Da=[],Ea;function Fa(a){Ea||(Ea=!0,qa(Ga));Da.push(a)}function Ga(){Ea=!1;for(var a=!!Da.length;Da.length;)Da.shift()();return a}Ga.list=Da;function Ha(){this.g=!1;this.addedNodes=[];this.removedNodes=[];this.aa=new Set}function Ia(a){a.g||(a.g=!0,qa(function(){a.flush()}))}Ha.prototype.flush=function(){if(this.g){this.g=!1;var a=this.takeRecords();a.length&&this.aa.forEach(function(b){b(a)})}};Ha.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var a=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];this.addedNodes=[];this.removedNodes=[];return a}return[]};
27
- function Ja(a,b){var c=t(a);c.P||(c.P=new Ha);c.P.aa.add(b);var d=c.P;return{Da:b,J:d,Ea:a,takeRecords:function(){return d.takeRecords()}}}function Ka(a){var b=a&&a.J;b&&(b.aa.delete(a.Da),b.aa.size||(t(a.Ea).P=null))}
28
- function La(a,b){var c=b.getRootNode();return a.map(function(d){var e=c===d.target.getRootNode();if(e&&d.addedNodes){if(e=[].slice.call(d.addedNodes).filter(function(f){return c===f.getRootNode()}),e.length)return d=Object.create(d),Object.defineProperty(d,"addedNodes",{value:e,configurable:!0}),d}else if(e)return d}).filter(function(d){return d})};var Ma=/[&\u00A0"]/g,Na=/[&\u00A0<>]/g;function Oa(a){switch(a){case "&":return"&amp;";case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";case "\u00a0":return"&nbsp;"}}function Pa(a){for(var b={},c=0;c<a.length;c++)b[a[c]]=!0;return b}var Qa=Pa("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),Ra=Pa("style script xmp iframe noembed noframes plaintext noscript".split(" "));
29
- function Sa(a,b){"template"===a.localName&&(a=a.content);for(var c="",d=b?b(a):a.childNodes,e=0,f=d.length,g=void 0;e<f&&(g=d[e]);e++){a:{var h=g;var k=a,l=b;switch(h.nodeType){case Node.ELEMENT_NODE:k=h.localName;for(var m="<"+k,q=h.attributes,v=0,T;T=q[v];v++)m+=" "+T.name+'="'+T.value.replace(Ma,Oa)+'"';m+=">";h=Qa[k]?m:m+Sa(h,l)+"</"+k+">";break a;case Node.TEXT_NODE:h=h.data;h=k&&Ra[k.localName]?h:h.replace(Na,Oa);break a;case Node.COMMENT_NODE:h="\x3c!--"+h.data+"--\x3e";break a;default:throw window.console.error(h),
30
- Error("not implemented");}}c+=h}return c};var Ta=w.j,Ua={querySelector:function(a){return this.__shady_native_querySelector(a)},querySelectorAll:function(a){return this.__shady_native_querySelectorAll(a)}},Va={};function Wa(a){Va[a]=function(b){return b["__shady_native_"+a]}}function Xa(a,b){z(a,b,"__shady_native_");for(var c in b)Wa(c)}function B(a,b){b=void 0===b?[]:b;for(var c=0;c<b.length;c++){var d=b[c],e=Object.getOwnPropertyDescriptor(a,d);e&&(Object.defineProperty(a,"__shady_native_"+d,e),e.value?Ua[d]||(Ua[d]=e.value):Wa(d))}}
31
- var C=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),D=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),Ya=document.implementation.createHTMLDocument("inert");function Za(a){for(var b;b=a.__shady_native_firstChild;)a.__shady_native_removeChild(b)}var $a=["firstElementChild","lastElementChild","children","childElementCount"],ab=["querySelector","querySelectorAll","append","prepend","replaceChildren"];
32
- function bb(){var a=["dispatchEvent","addEventListener","removeEventListener"];window.EventTarget?(B(window.EventTarget.prototype,a),void 0===window.__shady_native_addEventListener&&B(Window.prototype,a)):(B(Node.prototype,a),B(Window.prototype,a),B(XMLHttpRequest.prototype,a));Ta?B(Node.prototype,"parentNode firstChild lastChild previousSibling nextSibling childNodes parentElement textContent".split(" ")):Xa(Node.prototype,{parentNode:{get:function(){C.currentNode=this;return C.parentNode()}},firstChild:{get:function(){C.currentNode=
33
- this;return C.firstChild()}},lastChild:{get:function(){C.currentNode=this;return C.lastChild()}},previousSibling:{get:function(){C.currentNode=this;return C.previousSibling()}},nextSibling:{get:function(){C.currentNode=this;return C.nextSibling()}},childNodes:{get:function(){var b=[];C.currentNode=this;for(var c=C.firstChild();c;)b.push(c),c=C.nextSibling();return b}},parentElement:{get:function(){D.currentNode=this;return D.parentNode()}},textContent:{get:function(){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(var b=
34
- document.createTreeWalker(this,NodeFilter.SHOW_TEXT,null,!1),c="",d;d=b.nextNode();)c+=d.nodeValue;return c;default:return this.nodeValue}},set:function(b){if("undefined"===typeof b||null===b)b="";switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:Za(this);(0<b.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_native_insertBefore(document.createTextNode(b),void 0);break;default:this.nodeValue=b}}}});B(Node.prototype,"appendChild insertBefore removeChild replaceChild cloneNode contains".split(" "));
35
- B(HTMLElement.prototype,["parentElement","contains"]);a={firstElementChild:{get:function(){D.currentNode=this;return D.firstChild()}},lastElementChild:{get:function(){D.currentNode=this;return D.lastChild()}},children:{get:function(){var b=[];D.currentNode=this;for(var c=D.firstChild();c;)b.push(c),c=D.nextSibling();return ta(b)}},childElementCount:{get:function(){return this.children?this.children.length:0}}};Ta?(B(Element.prototype,$a),B(Element.prototype,["previousElementSibling","nextElementSibling",
36
- "innerHTML","className"]),B(HTMLElement.prototype,["children","innerHTML","className"])):(Xa(Element.prototype,a),Xa(Element.prototype,{previousElementSibling:{get:function(){D.currentNode=this;return D.previousSibling()}},nextElementSibling:{get:function(){D.currentNode=this;return D.nextSibling()}},innerHTML:{get:function(){return Sa(this,ua)},set:function(b){var c="template"===this.localName?this.content:this;Za(c);var d=this.localName||"div";d=this.namespaceURI&&this.namespaceURI!==Ya.namespaceURI?
37
- Ya.createElementNS(this.namespaceURI,d):Ya.createElement(d);d.innerHTML=b;for(b="template"===this.localName?d.content:d;d=b.__shady_native_firstChild;)c.__shady_native_insertBefore(d,void 0)}},className:{get:function(){return this.getAttribute("class")||""},set:function(b){this.setAttribute("class",b)}}}));B(Element.prototype,"setAttribute getAttribute hasAttribute removeAttribute toggleAttribute focus blur".split(" "));B(Element.prototype,ab);B(HTMLElement.prototype,["focus","blur"]);window.HTMLTemplateElement&&
38
- B(window.HTMLTemplateElement.prototype,["innerHTML"]);Ta?B(DocumentFragment.prototype,$a):Xa(DocumentFragment.prototype,a);B(DocumentFragment.prototype,ab);Ta?(B(Document.prototype,$a),B(Document.prototype,["activeElement"])):Xa(Document.prototype,a);B(Document.prototype,["importNode","getElementById","elementFromPoint",ia()]);B(Document.prototype,ab)};var cb=A({get childNodes(){return this.__shady_childNodes},get firstChild(){return this.__shady_firstChild},get lastChild(){return this.__shady_lastChild},get childElementCount(){return this.__shady_childElementCount},get children(){return this.__shady_children},get firstElementChild(){return this.__shady_firstElementChild},get lastElementChild(){return this.__shady_lastElementChild},get shadowRoot(){return this.__shady_shadowRoot}}),eb=A({get textContent(){return this.__shady_textContent},set textContent(a){this.__shady_textContent=
39
- a},get innerHTML(){return this.__shady_innerHTML},set innerHTML(a){this.__shady_innerHTML=a}}),fb=A({get parentElement(){return this.__shady_parentElement},get parentNode(){return this.__shady_parentNode},get nextSibling(){return this.__shady_nextSibling},get previousSibling(){return this.__shady_previousSibling},get nextElementSibling(){return this.__shady_nextElementSibling},get previousElementSibling(){return this.__shady_previousElementSibling},get className(){return this.__shady_className},set className(a){this.__shady_className=
40
- a}});function gb(a){for(var b in a){var c=a[b];c&&(c.enumerable=!1)}}gb(cb);gb(eb);gb(fb);var hb=w.j||!0===w.s,ib=hb?function(){}:function(a){var b=t(a);b.Ba||(b.Ba=!0,xa(a,fb))},jb=hb?function(){}:function(a){var b=t(a);b.Aa||(b.Aa=!0,xa(a,cb),window.customElements&&window.customElements.polyfillWrapFlushCallback&&!w.s||xa(a,eb))};var kb="__eventWrappers"+Date.now(),lb=function(){var a=Object.getOwnPropertyDescriptor(Event.prototype,"composed");return a?function(b){return a.get.call(b)}:null}(),mb=function(){function a(){}var b=!1,c={get capture(){b=!0;return!1}};window.addEventListener("test",a,c);window.removeEventListener("test",a,c);return b}();function nb(a){if(null===a||"object"!==typeof a&&"function"!==typeof a){var b=!!a;var c=!1}else{b=!!a.capture;c=!!a.once;var d=a.G}return{xa:d,capture:b,once:c,wa:mb?a:b}}
41
- var ob={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,
42
- drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},pb={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function qb(a){return a instanceof Node?a.__shady_getRootNode():a}
43
- function rb(a,b){var c=[],d=a;for(a=qb(a);d;)c.push(d),d=d.__shady_assignedSlot?d.__shady_assignedSlot:d.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&d.host&&(b||d!==a)?d.host:d.__shady_parentNode;c[c.length-1]===document&&c.push(window);return c}function sb(a){a.__composedPath||(a.__composedPath=rb(a.target,!0));return a.__composedPath}function tb(a,b){if(!y)return a;a=rb(a,!0);for(var c=0,d,e=void 0,f,g=void 0;c<b.length;c++)if(d=b[c],f=qb(d),f!==e&&(g=a.indexOf(f),e=f),!y(f)||-1<g)return d}
44
- var ub={get composed(){void 0===this.__composed&&(lb?this.__composed="focusin"===this.type||"focusout"===this.type||lb(this):!1!==this.isTrusted&&(this.__composed=ob[this.type]));return this.__composed||!1},composedPath:function(){this.__composedPath||(this.__composedPath=rb(this.__target,this.composed));return this.__composedPath},get target(){return tb(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){if(!this.__relatedTarget)return null;this.__relatedTargetComposedPath||
45
- (this.__relatedTargetComposedPath=rb(this.__relatedTarget,!0));return tb(this.currentTarget||this.__previousCurrentTarget,this.__relatedTargetComposedPath)},stopPropagation:function(){Event.prototype.stopPropagation.call(this);this.fa=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this);this.fa=this.__immediatePropagationStopped=!0}},vb=w.j&&Object.getOwnPropertyDescriptor(Event.prototype,"eventPhase");
46
- vb&&(Object.defineProperty(ub,"eventPhase",{get:function(){return this.currentTarget===this.target?Event.AT_TARGET:this.__shady_native_eventPhase},enumerable:!0,configurable:!0}),Object.defineProperty(ub,"__shady_native_eventPhase",vb));function wb(a){function b(c,d){c=new a(c,d);c.__composed=d&&!!d.composed;return c}b.__proto__=a;b.prototype=a.prototype;return b}var xb={focus:!0,blur:!0};function yb(a){return a.__target!==a.target||a.__relatedTarget!==a.relatedTarget}
47
- function zb(a,b,c){if(c=b.__handlers&&b.__handlers[a.type]&&b.__handlers[a.type][c])for(var d=0,e;(e=c[d])&&(!yb(a)||a.target!==a.relatedTarget)&&(e.call(b,a),!a.__immediatePropagationStopped);d++);}var Ab=(new Event("e")).hasOwnProperty("currentTarget");
48
- function Bb(a){a=Ab?Object.create(a):a;var b=a.composedPath(),c=b.map(function(m){return tb(m,b)}),d=a.bubbles,e=Object.getOwnPropertyDescriptor(a,"currentTarget");Object.defineProperty(a,"currentTarget",{configurable:!0,enumerable:!0,get:function(){return k}});var f=Event.CAPTURING_PHASE,g=Object.getOwnPropertyDescriptor(a,"eventPhase");Object.defineProperty(a,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return f}});try{for(var h=b.length-1;0<=h;h--){var k=b[h];f=k===c[h]?Event.AT_TARGET:
49
- Event.CAPTURING_PHASE;zb(a,k,"capture");if(a.fa)return}for(h=0;h<b.length;h++){k=b[h];var l=k===c[h];if(l||d)if(f=l?Event.AT_TARGET:Event.BUBBLING_PHASE,zb(a,k,"bubble"),a.fa)break}}finally{Ab||(e?Object.defineProperty(a,"currentTarget",e):delete a.currentTarget,g?Object.defineProperty(a,"eventPhase",g):delete a.eventPhase)}}function Cb(a,b,c,d){for(var e=0;e<a.length;e++){var f=a[e],g=f.type,h=f.capture;if(b===f.node&&c===g&&d===h)return e}return-1}
50
- function Db(a){Ga();return!w.R&&this instanceof Node&&!ra(document,this)?(a.__target||Eb(a,this),Bb(a)):this.__shady_native_dispatchEvent(a)}
51
- function Fb(a,b,c){var d=this,e=nb(c),f=e.capture,g=e.once,h=e.xa;e=e.wa;if(b){var k=typeof b;if("function"===k||"object"===k)if("object"!==k||b.handleEvent&&"function"===typeof b.handleEvent){if(pb[a])return this.__shady_native_addEventListener(a,b,e);var l=h||this;if(h=b[kb]){if(-1<Cb(h,l,a,f))return}else b[kb]=[];h=function(m){g&&d.__shady_removeEventListener(a,b,c);m.__target||Eb(m);if(l!==d){var q=Object.getOwnPropertyDescriptor(m,"currentTarget");Object.defineProperty(m,"currentTarget",{get:function(){return l},
52
- configurable:!0});var v=Object.getOwnPropertyDescriptor(m,"eventPhase");Object.defineProperty(m,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return f?Event.CAPTURING_PHASE:Event.BUBBLING_PHASE}})}m.__previousCurrentTarget=m.currentTarget;if(!y(l)&&"slot"!==l.localName||-1!=m.composedPath().indexOf(l))if(m.composed||-1<m.composedPath().indexOf(l))if(yb(m)&&m.target===m.relatedTarget)m.eventPhase===Event.BUBBLING_PHASE&&m.stopImmediatePropagation();else if(m.eventPhase===Event.CAPTURING_PHASE||
53
- m.bubbles||m.target===l||l instanceof Window){var T="function"===k?b.call(l,m):b.handleEvent&&b.handleEvent(m);l!==d&&(q?(Object.defineProperty(m,"currentTarget",q),q=null):delete m.currentTarget,v?(Object.defineProperty(m,"eventPhase",v),v=null):delete m.eventPhase);return T}};b[kb].push({node:l,type:a,capture:f,Ya:h});this.__handlers=this.__handlers||{};this.__handlers[a]=this.__handlers[a]||{capture:[],bubble:[]};this.__handlers[a][f?"capture":"bubble"].push(h);xb[a]||this.__shady_native_addEventListener(a,
54
- h,e)}}}function Gb(a,b,c){if(b){var d=nb(c);c=d.capture;var e=d.xa;d=d.wa;if(pb[a])return this.__shady_native_removeEventListener(a,b,d);var f=e||this;e=void 0;var g=null;try{g=b[kb]}catch(h){}g&&(f=Cb(g,f,a,c),-1<f&&(e=g.splice(f,1)[0].Ya,g.length||(b[kb]=void 0)));this.__shady_native_removeEventListener(a,e||b,d);e&&this.__handlers&&this.__handlers[a]&&(a=this.__handlers[a][c?"capture":"bubble"],b=a.indexOf(e),-1<b&&a.splice(b,1))}}
55
- function Hb(){for(var a in xb)window.__shady_native_addEventListener(a,function(b){b.__target||(Eb(b),Bb(b))},!0)}var Ib=A(ub);function Eb(a,b){b=void 0===b?a.target:b;a.__target=b;a.__relatedTarget=a.relatedTarget;if(w.j){b=Object.getPrototypeOf(a);if(!b.hasOwnProperty("__shady_patchedProto")){var c=Object.create(b);c.__shady_sourceProto=b;z(c,Ib);b.__shady_patchedProto=c}a.__proto__=b.__shady_patchedProto}else z(a,Ib)}var Jb=wb(Event),Kb=wb(CustomEvent),Lb=wb(MouseEvent);
56
- function Mb(){if(!lb&&Object.getOwnPropertyDescriptor(Event.prototype,"isTrusted")){var a=function(){var b=new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0});this.__shady_dispatchEvent(b)};Element.prototype.click?Element.prototype.click=a:HTMLElement.prototype.click&&(HTMLElement.prototype.click=a)}}
57
- var Nb=Object.getOwnPropertyNames(Element.prototype).filter(function(a){return"on"===a.substring(0,2)}),Ob=Object.getOwnPropertyNames(HTMLElement.prototype).filter(function(a){return"on"===a.substring(0,2)});function Pb(a){return{set:function(b){var c=t(this),d=a.substring(2);c.F||(c.F={});c.F[a]&&this.removeEventListener(d,c.F[a]);this.__shady_addEventListener(d,b);c.F[a]=b},get:function(){var b=u(this);return b&&b.F&&b.F[a]},configurable:!0}};function Qb(a,b){return{index:a,S:[],Z:b}}
58
- function Rb(a,b,c,d){var e=0,f=0,g=0,h=0,k=Math.min(b-e,d-f);if(0==e&&0==f)a:{for(g=0;g<k;g++)if(a[g]!==c[g])break a;g=k}if(b==a.length&&d==c.length){h=a.length;for(var l=c.length,m=0;m<k-g&&Sb(a[--h],c[--l]);)m++;h=m}e+=g;f+=g;b-=h;d-=h;if(0==b-e&&0==d-f)return[];if(e==b){for(b=Qb(e,0);f<d;)b.S.push(c[f++]);return[b]}if(f==d)return[Qb(e,b-e)];k=e;g=f;d=d-g+1;h=b-k+1;b=Array(d);for(l=0;l<d;l++)b[l]=Array(h),b[l][0]=l;for(l=0;l<h;l++)b[0][l]=l;for(l=1;l<d;l++)for(m=1;m<h;m++)if(a[k+m-1]===c[g+l-1])b[l][m]=
59
- b[l-1][m-1];else{var q=b[l-1][m]+1,v=b[l][m-1]+1;b[l][m]=q<v?q:v}k=b.length-1;g=b[0].length-1;d=b[k][g];for(a=[];0<k||0<g;)0==k?(a.push(2),g--):0==g?(a.push(3),k--):(h=b[k-1][g-1],l=b[k-1][g],m=b[k][g-1],q=l<m?l<h?l:h:m<h?m:h,q==h?(h==d?a.push(0):(a.push(1),d=h),k--,g--):q==l?(a.push(3),k--,d=l):(a.push(2),g--,d=m));a.reverse();b=void 0;k=[];for(g=0;g<a.length;g++)switch(a[g]){case 0:b&&(k.push(b),b=void 0);e++;f++;break;case 1:b||(b=Qb(e,0));b.Z++;e++;b.S.push(c[f]);f++;break;case 2:b||(b=Qb(e,0));
60
- b.Z++;e++;break;case 3:b||(b=Qb(e,0)),b.S.push(c[f]),f++}b&&k.push(b);return k}function Sb(a,b){return a===b};var Tb=A({dispatchEvent:Db,addEventListener:Fb,removeEventListener:Gb});var Ub=null;function E(){Ub||(Ub=window.ShadyCSS&&window.ShadyCSS.ScopingShim);return Ub||null}function Vb(a,b,c){var d=E();return d&&"class"===b?(d.setElementClass(a,c),!0):!1}function Wb(a,b){var c=E();c&&c.unscopeNode(a,b)}function Xb(a,b){var c=E();if(!c)return!0;if(a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){c=!0;for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)c=c&&Xb(a,b);return c}return a.nodeType!==Node.ELEMENT_NODE?!0:c.currentScopeForNode(a)===b}
61
- function Yb(a){if(a.nodeType!==Node.ELEMENT_NODE)return"";var b=E();return b?b.currentScopeForNode(a):""}function Zb(a,b){if(a)for(a.nodeType===Node.ELEMENT_NODE&&b(a),a=a.__shady_firstChild;a;a=a.__shady_nextSibling)a.nodeType===Node.ELEMENT_NODE&&Zb(a,b)};var $b=window.document,ac=w.R,bc=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),cc=bc&&bc.get;function dc(a){for(var b;b=a.__shady_firstChild;)a.__shady_removeChild(b)}function ec(a){var b=u(a);if(b&&void 0!==b.ea)for(b=a.__shady_firstChild;b;b=b.__shady_nextSibling)ec(b);if(a=u(a))a.ea=void 0}function fc(a){var b=a;if(a&&"slot"===a.localName){var c=u(a);(c=c&&c.L)&&(b=c.length?c[0]:fc(a.__shady_nextSibling))}return b}
62
- function gc(a,b,c){if(a=(a=u(a))&&a.P){if(b)if(b.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(var d=0,e=b.childNodes.length;d<e;d++)a.addedNodes.push(b.childNodes[d]);else a.addedNodes.push(b);c&&a.removedNodes.push(c);Ia(a)}}
63
- var mc=A({get parentNode(){var a=u(this);a=a&&a.parentNode;return void 0!==a?a:this.__shady_native_parentNode},get firstChild(){var a=u(this);a=a&&a.firstChild;return void 0!==a?a:this.__shady_native_firstChild},get lastChild(){var a=u(this);a=a&&a.lastChild;return void 0!==a?a:this.__shady_native_lastChild},get nextSibling(){var a=u(this);a=a&&a.nextSibling;return void 0!==a?a:this.__shady_native_nextSibling},get previousSibling(){var a=u(this);a=a&&a.previousSibling;return void 0!==a?a:this.__shady_native_previousSibling},
64
- get childNodes(){if(x(this)){var a=u(this);if(!a.childNodes){a.childNodes=[];for(var b=this.__shady_firstChild;b;b=b.__shady_nextSibling)a.childNodes.push(b)}var c=a.childNodes}else c=this.__shady_native_childNodes;c.item=function(d){return c[d]};return c},get parentElement(){var a=u(this);(a=a&&a.parentNode)&&a.nodeType!==Node.ELEMENT_NODE&&(a=null);return void 0!==a?a:this.__shady_native_parentElement},get isConnected(){if(cc&&cc.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;
65
- var a=this.ownerDocument;if(null===a||ra(a,this))return!0;for(a=this;a&&!(a instanceof Document);)a=a.__shady_parentNode||(y(a)?a.host:void 0);return!!(a&&a instanceof Document)},get textContent(){if(x(this)){for(var a=[],b=this.__shady_firstChild;b;b=b.__shady_nextSibling)b.nodeType!==Node.COMMENT_NODE&&a.push(b.__shady_textContent);return a.join("")}return this.__shady_native_textContent},set textContent(a){if("undefined"===typeof a||null===a)a="";switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:if(!x(this)&&
66
- w.j){var b=this.__shady_firstChild;(b!=this.__shady_lastChild||b&&b.nodeType!=Node.TEXT_NODE)&&dc(this);this.__shady_native_textContent=a}else dc(this),(0<a.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_insertBefore(document.createTextNode(a));break;default:this.nodeValue=a}},insertBefore:function(a,b){if(this.ownerDocument!==$b&&a.ownerDocument!==$b)return this.__shady_native_insertBefore(a,b),a;if(a===this)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");
67
- if(b){var c=u(b);c=c&&c.parentNode;if(void 0!==c&&c!==this||void 0===c&&b.__shady_native_parentNode!==this)throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.");}if(b===a)return a;gc(this,a);var d=[],e=(c=hc(this))?c.host.localName:Yb(this),f=a.__shady_parentNode;if(f){var g=Yb(a);var h=!!c||!hc(a)||ac&&void 0!==this.__noInsertionPoint;f.__shady_removeChild(a,h)}f=!0;var k=(!ac||void 0===a.__noInsertionPoint&&void 0===
68
- this.__noInsertionPoint)&&!Xb(a,e),l=c&&!a.__noInsertionPoint&&(!ac||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE);if(l||k)k&&(g=g||Yb(a)),Zb(a,function(m){l&&"slot"===m.localName&&d.push(m);if(k){var q=g;E()&&(q&&Wb(m,q),(q=E())&&q.scopeNode(m,e))}});d.length&&(ic(c),c.i.push.apply(c.i,r(d)),F(c));x(this)&&(jc(a,this,b),h=u(this),h.root?(f=!1,ja(this)&&F(h.root)):c&&"slot"===this.localName&&(f=!1,F(c)));f?(c=y(this)?this.host:this,b?(b=fc(b),c.__shady_native_insertBefore(a,b)):c.__shady_native_appendChild(a)):
69
- a.ownerDocument!==this.ownerDocument&&this.ownerDocument.adoptNode(a);return a},appendChild:function(a){if(this!=a||!y(a))return this.__shady_insertBefore(a)},removeChild:function(a,b){b=void 0===b?!1:b;if(this.ownerDocument!==$b)return this.__shady_native_removeChild(a);if(a.__shady_parentNode!==this)throw Error("The node to be removed is not a child of this node: "+a);gc(this,null,a);var c=hc(a),d=c&&kc(c,a),e=u(this);if(x(this)&&(lc(a,this),ja(this))){F(e.root);var f=!0}if(E()&&!b&&c&&a.nodeType!==
70
- Node.TEXT_NODE){var g=Yb(a);Zb(a,function(h){Wb(h,g)})}ec(a);c&&((b="slot"===this.localName)&&(f=!0),(d||b)&&F(c));f||(f=y(this)?this.host:this,(!e.root&&"slot"!==a.localName||f===a.__shady_native_parentNode)&&f.__shady_native_removeChild(a));return a},replaceChild:function(a,b){this.__shady_insertBefore(a,b);this.__shady_removeChild(b);return a},cloneNode:function(a){if("template"==this.localName)return this.__shady_native_cloneNode(a);var b=this.__shady_native_cloneNode(!1);if(a&&b.nodeType!==Node.ATTRIBUTE_NODE){a=
71
- this.__shady_firstChild;for(var c;a;a=a.__shady_nextSibling)c=a.__shady_cloneNode(!0),b.__shady_appendChild(c)}return b},getRootNode:function(a){if(this&&this.nodeType){var b=t(this),c=b.ea;void 0===c&&(y(this)?(c=this,b.ea=c):(c=(c=this.__shady_parentNode)?c.__shady_getRootNode(a):this,document.documentElement.__shady_native_contains(this)&&(b.ea=c)));return c}},contains:function(a){return sa(this,a)}});var oc=A({get assignedSlot(){var a=this.__shady_parentNode;(a=a&&a.__shady_shadowRoot)&&nc(a);return(a=u(this))&&a.assignedSlot||null}});/*
72
-
73
- Copyright (c) 2022 The Polymer Project Authors
74
- SPDX-License-Identifier: BSD-3-Clause
75
- */
76
- var pc=new Map;[["(",{end:")",da:!0}],["[",{end:"]",da:!0}],['"',{end:'"',da:!1}],["'",{end:"'",da:!1}]].forEach(function(a){var b=p(a);a=b.next().value;b=b.next().value;pc.set(a,b)});function qc(a,b,c,d){for(d=void 0===d?!0:d;b<a.length;b++)if("\\"===a[b]&&b<a.length-1&&"\n"!==a[b+1])b++;else{if(-1!==c.indexOf(a[b]))return b;if(d&&pc.has(a[b])){var e=pc.get(a[b]);b=qc(a,b+1,[e.end],e.da)}}return a.length}
77
- function rc(a){function b(){if(0<d.length){for(;" "===d[d.length-1];)d.pop();c.push({ta:d.filter(function(k,l){return 0===l%2}),Ha:d.filter(function(k,l){return 1===l%2})});d.length=0}}for(var c=[],d=[],e=0;e<a.length;){var f=d[d.length-1],g=qc(a,e,[","," ",">","+","~"]),h=g===e?a[e]:a.substring(e,g);if(","===h)b();else if(-1===[void 0," ",">","+","~"].indexOf(f)||" "!==h)" "===f&&-1!==[">","+","~"].indexOf(h)?d[d.length-1]=h:d.push(h);e=g+(g===e?1:0)}b();return c};function sc(a,b,c){var d=[];tc(a,b,c,d);return d}function tc(a,b,c,d){for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling){var e;if(e=a.nodeType===Node.ELEMENT_NODE){e=a;var f=b,g=c,h=d,k=f(e);k&&h.push(e);g&&g(k)?e=k:(tc(e,f,g,h),e=void 0)}if(e)break}}
78
- var uc={get firstElementChild(){var a=u(this);if(a&&void 0!==a.firstChild){for(a=this.__shady_firstChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_nextSibling;return a}return this.__shady_native_firstElementChild},get lastElementChild(){var a=u(this);if(a&&void 0!==a.lastChild){for(a=this.__shady_lastChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_previousSibling;return a}return this.__shady_native_lastElementChild},get children(){return x(this)?ta(Array.prototype.filter.call(va(this),function(a){return a.nodeType===
79
- Node.ELEMENT_NODE})):this.__shady_native_children},get childElementCount(){var a=this.__shady_children;return a?a.length:0}},vc=A((uc.append=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];this.__shady_insertBefore(Aa.apply(null,r(b)),null)},uc.prepend=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];this.__shady_insertBefore(Aa.apply(null,r(b)),this.__shady_firstChild)},uc.replaceChildren=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];
80
- for(;null!==(c=this.__shady_firstChild);)this.__shady_removeChild(c);this.__shady_insertBefore(Aa.apply(null,r(b)),null)},uc));
81
- function wc(a,b){function c(e,f){return(e===a||-1===f.indexOf(":scope"))&&ma.call(e,f)}var d=rc(b);if(1>d.length)return[];for(b=Ba(sc(a,function(){return!0}).map(function(e){return Ba(d.map(function(f){var g=f.ta,h=g.length-1;return c(e,g[h])?{target:e,N:f,O:e,index:h}:[]}))}));b.some(function(e){return 0<e.index});)b=Ba(b.map(function(e){if(0>=e.index)return e;var f=e.target,g=e.O,h=e.N;e=e.index-1;var k=h.Ha[e],l=h.ta[e];if(" "===k){k=[];for(g=g.__shady_parentElement;g;g=g.__shady_parentElement)c(g,
82
- l)&&k.push({target:f,N:h,O:g,index:e});return k}if(">"===k)return g=g.__shady_parentElement,c(g,l)?{target:f,N:h,O:g,index:e}:[];if("+"===k)return(g=g.__shady_previousElementSibling)&&c(g,l)?{target:f,N:h,O:g,index:e}:[];if("~"===k){k=[];for(g=g.__shady_previousElementSibling;g;g=g.__shady_previousElementSibling)c(g,l)&&k.push({target:f,N:h,O:g,index:e});return k}throw Error("Unrecognized combinator: '"+k+"'.");}));return Ca(b.map(function(e){return e.target}))}
83
- var G=w.querySelectorImplementation,xc=A({querySelector:function(a){if("native"===G){var b=Array.prototype.slice.call((this instanceof ShadowRoot?this.host:this).__shady_native_querySelectorAll(a)),c=this.__shady_getRootNode();b=p(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,d.__shady_getRootNode()==c)return d;return null}if("selectorEngine"===G)return wc(this,a)[0]||null;if(void 0===G)return sc(this,function(e){return ma.call(e,a)},function(e){return!!e})[0]||null;throw Error("Unrecognized value of ShadyDOM.querySelectorImplementation: '"+
84
- (G+"'"));},querySelectorAll:function(a,b){if(b||"native"===G){b=Array.prototype.slice.call((this instanceof ShadowRoot?this.host:this).__shady_native_querySelectorAll(a));var c=this.__shady_getRootNode();return ta(b.filter(function(d){return d.__shady_getRootNode()==c}))}if("selectorEngine"===G)return ta(wc(this,a));if(void 0===G)return ta(sc(this,function(d){return ma.call(d,a)}));throw Error("Unrecognized value of ShadyDOM.querySelectorImplementation: '"+(G+"'"));}}),yc=w.R&&!w.s?ya({},vc):vc;
85
- ya(vc,xc);/*
19
+ 'use strict';var n;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function ba(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}function p(a){if(!(a instanceof Array)){a=ba(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}
20
+ function ca(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var da=ca(this);function ea(){}ea.prototype.toJSON=function(){return{}};function r(a){a.__shady||(a.__shady=new ea);return a.__shady}function t(a){return a&&a.__shady};var u=window.ShadyDOM||{};u.Fa=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var fa=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");u.m=!!(fa&&fa.configurable&&fa.get);u.ha=u.force||!u.Fa;u.s=u.noPatch||!1;u.O=u.preferPerformance;u.ja="on-demand"===u.s;u.va=navigator.userAgent.match("Trident");function ha(){return Document.prototype.msElementsFromPoint?"msElementsFromPoint":"elementsFromPoint"}function w(a){return(a=t(a))&&void 0!==a.firstChild}
21
+ function x(a){return a instanceof ShadowRoot}function ia(a){return(a=(a=t(a))&&a.root)&&ja(a)}var y=Element.prototype,ka=y.matches||y.matchesSelector||y.mozMatchesSelector||y.msMatchesSelector||y.oMatchesSelector||y.webkitMatchesSelector,la=document.createTextNode(""),ma=0,na=[];(new MutationObserver(function(){for(;na.length;)try{na.shift()()}catch(a){throw la.textContent=ma++,a;}})).observe(la,{characterData:!0});function oa(a){na.push(a);la.textContent=ma++}
22
+ var pa=document.contains?function(a,b){return a.__shady_native_contains(b)}:function(a,b){return a===b||a.documentElement&&a.documentElement.__shady_native_contains(b)};function qa(a,b){for(;b;){if(b==a)return!0;b=b.__shady_parentNode}return!1}
23
+ function ra(a){for(var b=a.length-1;0<=b;b--){var c=a[b],d=c.getAttribute("id")||c.getAttribute("name");d&&"length"!==d&&isNaN(d)&&(a[d]=c)}a.item=function(e){return a[e]};a.namedItem=function(e){if("length"!==e&&isNaN(e)&&a[e])return a[e];for(var f=ba(a),g=f.next();!g.done;g=f.next())if(g=g.value,(g.getAttribute("id")||g.getAttribute("name"))==e)return g;return null};return a}function sa(a){var b=[];for(a=a.__shady_native_firstChild;a;a=a.__shady_native_nextSibling)b.push(a);return b}
24
+ function ta(a){var b=[];for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)b.push(a);return b}function ua(a,b,c){c.configurable=!0;if(c.value)a[b]=c.value;else try{Object.defineProperty(a,b,c)}catch(d){}}function z(a,b,c,d){c=void 0===c?"":c;for(var e in b)d&&0<=d.indexOf(e)||ua(a,c+e,b[e])}function va(a,b){for(var c in b)c in a&&ua(a,c,b[c])}function A(a){var b={};Object.getOwnPropertyNames(a).forEach(function(c){b[c]=Object.getOwnPropertyDescriptor(a,c)});return b}
25
+ function wa(a,b){for(var c=Object.getOwnPropertyNames(b),d=0,e;d<c.length;d++)e=c[d],a[e]=b[e]}function xa(a){return a instanceof Node?a:document.createTextNode(""+a)}function B(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];if(1===b.length)return xa(b[0]);c=document.createDocumentFragment();b=ba(b);for(var d=b.next();!d.done;d=b.next())c.appendChild(xa(d.value));return c};var ya=[],za;function Aa(a){za||(za=!0,oa(Ba));ya.push(a)}function Ba(){za=!1;for(var a=!!ya.length;ya.length;)ya.shift()();return a}Ba.list=ya;function Ca(){this.g=!1;this.addedNodes=[];this.removedNodes=[];this.Y=new Set}function Da(a){a.g||(a.g=!0,oa(function(){a.flush()}))}Ca.prototype.flush=function(){if(this.g){this.g=!1;var a=this.takeRecords();a.length&&this.Y.forEach(function(b){b(a)})}};Ca.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var a=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];this.addedNodes=[];this.removedNodes=[];return a}return[]};
26
+ function Ea(a,b){var c=r(a);c.N||(c.N=new Ca);c.N.Y.add(b);var d=c.N;return{za:b,J:d,Aa:a,takeRecords:function(){return d.takeRecords()}}}function Fa(a){var b=a&&a.J;b&&(b.Y.delete(a.za),b.Y.size||(r(a.Aa).N=null))}
27
+ function Ga(a,b){var c=b.getRootNode();return a.map(function(d){var e=c===d.target.getRootNode();if(e&&d.addedNodes){if(e=[].slice.call(d.addedNodes).filter(function(f){return c===f.getRootNode()}),e.length)return d=Object.create(d),Object.defineProperty(d,"addedNodes",{value:e,configurable:!0}),d}else if(e)return d}).filter(function(d){return d})};var Ha=/[&\u00A0"]/g,Ia=/[&\u00A0<>]/g;function Ja(a){switch(a){case "&":return"&amp;";case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";case "\u00a0":return"&nbsp;"}}function Ka(a){for(var b={},c=0;c<a.length;c++)b[a[c]]=!0;return b}var La=Ka("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),Ma=Ka("style script xmp iframe noembed noframes plaintext noscript".split(" "));
28
+ function Na(a,b){"template"===a.localName&&(a=a.content);for(var c="",d=b?b(a):a.childNodes,e=0,f=d.length,g=void 0;e<f&&(g=d[e]);e++){a:{var h=g;var k=a,l=b;switch(h.nodeType){case Node.ELEMENT_NODE:k=h.localName;for(var m="<"+k,q=h.attributes,v=0,S;S=q[v];v++)m+=" "+S.name+'="'+S.value.replace(Ha,Ja)+'"';m+=">";h=La[k]?m:m+Na(h,l)+"</"+k+">";break a;case Node.TEXT_NODE:h=h.data;h=k&&Ma[k.localName]?h:h.replace(Ia,Ja);break a;case Node.COMMENT_NODE:h="\x3c!--"+h.data+"--\x3e";break a;default:throw window.console.error(h),
29
+ Error("not implemented");}}c+=h}return c};var Oa=u.m,Pa={querySelector:function(a){return this.__shady_native_querySelector(a)},querySelectorAll:function(a){return this.__shady_native_querySelectorAll(a)}},Qa={};function Ra(a){Qa[a]=function(b){return b["__shady_native_"+a]}}function Sa(a,b){z(a,b,"__shady_native_");for(var c in b)Ra(c)}function C(a,b){b=void 0===b?[]:b;for(var c=0;c<b.length;c++){var d=b[c],e=Object.getOwnPropertyDescriptor(a,d);e&&(Object.defineProperty(a,"__shady_native_"+d,e),e.value?Pa[d]||(Pa[d]=e.value):Ra(d))}}
30
+ var D=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),E=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),Ta=document.implementation.createHTMLDocument("inert");function Ua(a){for(var b;b=a.__shady_native_firstChild;)a.__shady_native_removeChild(b)}var Va=["firstElementChild","lastElementChild","children","childElementCount"],Wa=["querySelector","querySelectorAll","append","prepend","replaceChildren"];
31
+ function Xa(){var a=["dispatchEvent","addEventListener","removeEventListener"];window.EventTarget?(C(window.EventTarget.prototype,a),void 0===window.__shady_native_addEventListener&&C(Window.prototype,a)):(C(Node.prototype,a),C(Window.prototype,a));Oa?C(Node.prototype,"parentNode firstChild lastChild previousSibling nextSibling childNodes parentElement textContent".split(" ")):Sa(Node.prototype,{parentNode:{get:function(){D.currentNode=this;return D.parentNode()}},firstChild:{get:function(){D.currentNode=
32
+ this;return D.firstChild()}},lastChild:{get:function(){D.currentNode=this;return D.lastChild()}},previousSibling:{get:function(){D.currentNode=this;return D.previousSibling()}},nextSibling:{get:function(){D.currentNode=this;return D.nextSibling()}},childNodes:{get:function(){var b=[];D.currentNode=this;for(var c=D.firstChild();c;)b.push(c),c=D.nextSibling();return b}},parentElement:{get:function(){E.currentNode=this;return E.parentNode()}},textContent:{get:function(){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(var b=
33
+ document.createTreeWalker(this,NodeFilter.SHOW_TEXT,null,!1),c="",d;d=b.nextNode();)c+=d.nodeValue;return c;default:return this.nodeValue}},set:function(b){if("undefined"===typeof b||null===b)b="";switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:Ua(this);(0<b.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_native_insertBefore(document.createTextNode(b),void 0);break;default:this.nodeValue=b}}}});C(Node.prototype,"appendChild insertBefore removeChild replaceChild cloneNode contains".split(" "));
34
+ C(HTMLElement.prototype,["parentElement","contains"]);a={firstElementChild:{get:function(){E.currentNode=this;return E.firstChild()}},lastElementChild:{get:function(){E.currentNode=this;return E.lastChild()}},children:{get:function(){var b=[];E.currentNode=this;for(var c=E.firstChild();c;)b.push(c),c=E.nextSibling();return ra(b)}},childElementCount:{get:function(){return this.children?this.children.length:0}}};Oa?(C(Element.prototype,Va),C(Element.prototype,["previousElementSibling","nextElementSibling",
35
+ "innerHTML","className"]),C(HTMLElement.prototype,["children","innerHTML","className"])):(Sa(Element.prototype,a),Sa(Element.prototype,{previousElementSibling:{get:function(){E.currentNode=this;return E.previousSibling()}},nextElementSibling:{get:function(){E.currentNode=this;return E.nextSibling()}},innerHTML:{get:function(){return Na(this,sa)},set:function(b){var c="template"===this.localName?this.content:this;Ua(c);var d=this.localName||"div";d=this.namespaceURI&&this.namespaceURI!==Ta.namespaceURI?
36
+ Ta.createElementNS(this.namespaceURI,d):Ta.createElement(d);d.innerHTML=b;for(b="template"===this.localName?d.content:d;d=b.__shady_native_firstChild;)c.__shady_native_insertBefore(d,void 0)}},className:{get:function(){return this.getAttribute("class")||""},set:function(b){this.setAttribute("class",b)}}}));C(Element.prototype,"setAttribute getAttribute hasAttribute removeAttribute focus blur".split(" "));C(Element.prototype,Wa);C(HTMLElement.prototype,["focus","blur"]);window.HTMLTemplateElement&&
37
+ C(window.HTMLTemplateElement.prototype,["innerHTML"]);Oa?C(DocumentFragment.prototype,Va):Sa(DocumentFragment.prototype,a);C(DocumentFragment.prototype,Wa);Oa?(C(Document.prototype,Va),C(Document.prototype,["activeElement"])):Sa(Document.prototype,a);C(Document.prototype,["importNode","getElementById","elementFromPoint",ha()]);C(Document.prototype,Wa)};var Ya=A({get childNodes(){return this.__shady_childNodes},get firstChild(){return this.__shady_firstChild},get lastChild(){return this.__shady_lastChild},get childElementCount(){return this.__shady_childElementCount},get children(){return this.__shady_children},get firstElementChild(){return this.__shady_firstElementChild},get lastElementChild(){return this.__shady_lastElementChild},get shadowRoot(){return this.__shady_shadowRoot}}),Za=A({get textContent(){return this.__shady_textContent},set textContent(a){this.__shady_textContent=
38
+ a},get innerHTML(){return this.__shady_innerHTML},set innerHTML(a){this.__shady_innerHTML=a}}),ab=A({get parentElement(){return this.__shady_parentElement},get parentNode(){return this.__shady_parentNode},get nextSibling(){return this.__shady_nextSibling},get previousSibling(){return this.__shady_previousSibling},get nextElementSibling(){return this.__shady_nextElementSibling},get previousElementSibling(){return this.__shady_previousElementSibling},get className(){return this.__shady_className},set className(a){this.__shady_className=
39
+ a}});function bb(a){for(var b in a){var c=a[b];c&&(c.enumerable=!1)}}bb(Ya);bb(Za);bb(ab);var cb=u.m||!0===u.s,db=cb?function(){}:function(a){var b=r(a);b.xa||(b.xa=!0,va(a,ab))},eb=cb?function(){}:function(a){var b=r(a);b.wa||(b.wa=!0,va(a,Ya),window.customElements&&window.customElements.polyfillWrapFlushCallback&&!u.s||va(a,Za))};var fb="__eventWrappers"+Date.now(),gb=function(){var a=Object.getOwnPropertyDescriptor(Event.prototype,"composed");return a?function(b){return a.get.call(b)}:null}(),hb=function(){function a(){}var b=!1,c={get capture(){b=!0;return!1}};window.addEventListener("test",a,c);window.removeEventListener("test",a,c);return b}();function ib(a){if(a&&"object"===typeof a){var b=!!a.capture;var c=!!a.once;var d=!!a.passive;var e=a.G}else b=!!a,d=c=!1;return{ta:e,capture:b,once:c,passive:d,sa:hb?a:b}}
40
+ var jb={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,
41
+ drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},kb={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function lb(a){return a instanceof Node?a.__shady_getRootNode():a}
42
+ function mb(a,b){var c=[],d=a;for(a=lb(a);d;)c.push(d),d=d.__shady_assignedSlot?d.__shady_assignedSlot:d.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&d.host&&(b||d!==a)?d.host:d.__shady_parentNode;c[c.length-1]===document&&c.push(window);return c}function nb(a){a.__composedPath||(a.__composedPath=mb(a.target,!0));return a.__composedPath}function ob(a,b){if(!x)return a;a=mb(a,!0);for(var c=0,d,e=void 0,f,g=void 0;c<b.length;c++)if(d=b[c],f=lb(d),f!==e&&(g=a.indexOf(f),e=f),!x(f)||-1<g)return d}
43
+ function pb(a){function b(c,d){c=new a(c,d);c.__composed=d&&!!d.composed;return c}b.__proto__=a;b.prototype=a.prototype;return b}var qb={focus:!0,blur:!0};function rb(a){return a.__target!==a.target||a.__relatedTarget!==a.relatedTarget}function sb(a,b,c){if(c=b.__handlers&&b.__handlers[a.type]&&b.__handlers[a.type][c])for(var d=0,e;(e=c[d])&&(!rb(a)||a.target!==a.relatedTarget)&&(e.call(b,a),!a.__immediatePropagationStopped);d++);}
44
+ function tb(a){var b=a.composedPath(),c=b.map(function(k){return ob(k,b)}),d=a.bubbles;Object.defineProperty(a,"currentTarget",{configurable:!0,enumerable:!0,get:function(){return g}});var e=Event.CAPTURING_PHASE;Object.defineProperty(a,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return e}});for(var f=b.length-1;0<=f;f--){var g=b[f];e=g===c[f]?Event.AT_TARGET:Event.CAPTURING_PHASE;sb(a,g,"capture");if(a.ca)return}for(f=0;f<b.length;f++){g=b[f];var h=g===c[f];if(h||d)if(e=h?Event.AT_TARGET:
45
+ Event.BUBBLING_PHASE,sb(a,g,"bubble"),a.ca)return}e=0;g=null}function ub(a,b,c,d,e,f){for(var g=0;g<a.length;g++){var h=a[g],k=h.type,l=h.capture,m=h.once,q=h.passive;if(b===h.node&&c===k&&d===l&&e===m&&f===q)return g}return-1}function vb(a){Ba();return!u.O&&this instanceof Node&&!pa(document,this)?(a.__target||wb(a,this),tb(a)):this.__shady_native_dispatchEvent(a)}
46
+ function xb(a,b,c){var d=ib(c),e=d.capture,f=d.once,g=d.passive,h=d.ta;d=d.sa;if(b){var k=typeof b;if("function"===k||"object"===k)if("object"!==k||b.handleEvent&&"function"===typeof b.handleEvent){if(kb[a])return this.__shady_native_addEventListener(a,b,d);var l=h||this;if(h=b[fb]){if(-1<ub(h,l,a,e,f,g))return}else b[fb]=[];h=function(m){f&&this.__shady_removeEventListener(a,b,c);m.__target||wb(m);if(l!==this){var q=Object.getOwnPropertyDescriptor(m,"currentTarget");Object.defineProperty(m,"currentTarget",
47
+ {get:function(){return l},configurable:!0});var v=Object.getOwnPropertyDescriptor(m,"eventPhase");Object.defineProperty(m,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return e?Event.CAPTURING_PHASE:Event.BUBBLING_PHASE}})}m.__previousCurrentTarget=m.currentTarget;if(!x(l)&&"slot"!==l.localName||-1!=m.composedPath().indexOf(l))if(m.composed||-1<m.composedPath().indexOf(l))if(rb(m)&&m.target===m.relatedTarget)m.eventPhase===Event.BUBBLING_PHASE&&m.stopImmediatePropagation();else if(m.eventPhase===
48
+ Event.CAPTURING_PHASE||m.bubbles||m.target===l||l instanceof Window){var S="function"===k?b.call(l,m):b.handleEvent&&b.handleEvent(m);l!==this&&(q?(Object.defineProperty(m,"currentTarget",q),q=null):delete m.currentTarget,v?(Object.defineProperty(m,"eventPhase",v),v=null):delete m.eventPhase);return S}};b[fb].push({node:l,type:a,capture:e,once:f,passive:g,Ta:h});this.__handlers=this.__handlers||{};this.__handlers[a]=this.__handlers[a]||{capture:[],bubble:[]};this.__handlers[a][e?"capture":"bubble"].push(h);
49
+ qb[a]||this.__shady_native_addEventListener(a,h,d)}}}
50
+ function yb(a,b,c){if(b){var d=ib(c);c=d.capture;var e=d.once,f=d.passive,g=d.ta;d=d.sa;if(kb[a])return this.__shady_native_removeEventListener(a,b,d);var h=g||this;g=void 0;var k=null;try{k=b[fb]}catch(l){}k&&(e=ub(k,h,a,c,e,f),-1<e&&(g=k.splice(e,1)[0].Ta,k.length||(b[fb]=void 0)));this.__shady_native_removeEventListener(a,g||b,d);g&&this.__handlers&&this.__handlers[a]&&(a=this.__handlers[a][c?"capture":"bubble"],b=a.indexOf(g),-1<b&&a.splice(b,1))}}
51
+ function zb(){for(var a in qb)window.__shady_native_addEventListener(a,function(b){b.__target||(wb(b),tb(b))},!0)}
52
+ var Ab=A({get composed(){void 0===this.__composed&&(gb?this.__composed="focusin"===this.type||"focusout"===this.type||gb(this):!1!==this.isTrusted&&(this.__composed=jb[this.type]));return this.__composed||!1},composedPath:function(){this.__composedPath||(this.__composedPath=mb(this.__target,this.composed));return this.__composedPath},get target(){return ob(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){if(!this.__relatedTarget)return null;this.__relatedTargetComposedPath||
53
+ (this.__relatedTargetComposedPath=mb(this.__relatedTarget,!0));return ob(this.currentTarget||this.__previousCurrentTarget,this.__relatedTargetComposedPath)},stopPropagation:function(){Event.prototype.stopPropagation.call(this);this.ca=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this);this.ca=this.__immediatePropagationStopped=!0}});
54
+ function wb(a,b){b=void 0===b?a.target:b;a.__target=b;a.__relatedTarget=a.relatedTarget;if(u.m){b=Object.getPrototypeOf(a);if(!b.hasOwnProperty("__shady_patchedProto")){var c=Object.create(b);c.__shady_sourceProto=b;z(c,Ab);b.__shady_patchedProto=c}a.__proto__=b.__shady_patchedProto}else z(a,Ab)}var Bb=pb(Event),Cb=pb(CustomEvent),Db=pb(MouseEvent);
55
+ function Eb(){if(!gb&&Object.getOwnPropertyDescriptor(Event.prototype,"isTrusted")){var a=function(){var b=new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0});this.__shady_dispatchEvent(b)};Element.prototype.click?Element.prototype.click=a:HTMLElement.prototype.click&&(HTMLElement.prototype.click=a)}}
56
+ var Fb=Object.getOwnPropertyNames(Element.prototype).filter(function(a){return"on"===a.substring(0,2)}),Gb=Object.getOwnPropertyNames(HTMLElement.prototype).filter(function(a){return"on"===a.substring(0,2)});function Hb(a){return{set:function(b){var c=r(this),d=a.substring(2);c.F||(c.F={});c.F[a]&&this.removeEventListener(d,c.F[a]);this.__shady_addEventListener(d,b);c.F[a]=b},get:function(){var b=t(this);return b&&b.F&&b.F[a]},configurable:!0}};function Ib(a,b){return{index:a,P:[],X:b}}
57
+ function Jb(a,b,c,d){var e=0,f=0,g=0,h=0,k=Math.min(b-e,d-f);if(0==e&&0==f)a:{for(g=0;g<k;g++)if(a[g]!==c[g])break a;g=k}if(b==a.length&&d==c.length){h=a.length;for(var l=c.length,m=0;m<k-g&&Kb(a[--h],c[--l]);)m++;h=m}e+=g;f+=g;b-=h;d-=h;if(0==b-e&&0==d-f)return[];if(e==b){for(b=Ib(e,0);f<d;)b.P.push(c[f++]);return[b]}if(f==d)return[Ib(e,b-e)];k=e;g=f;d=d-g+1;h=b-k+1;b=Array(d);for(l=0;l<d;l++)b[l]=Array(h),b[l][0]=l;for(l=0;l<h;l++)b[0][l]=l;for(l=1;l<d;l++)for(m=1;m<h;m++)if(a[k+m-1]===c[g+l-1])b[l][m]=
58
+ b[l-1][m-1];else{var q=b[l-1][m]+1,v=b[l][m-1]+1;b[l][m]=q<v?q:v}k=b.length-1;g=b[0].length-1;d=b[k][g];for(a=[];0<k||0<g;)0==k?(a.push(2),g--):0==g?(a.push(3),k--):(h=b[k-1][g-1],l=b[k-1][g],m=b[k][g-1],q=l<m?l<h?l:h:m<h?m:h,q==h?(h==d?a.push(0):(a.push(1),d=h),k--,g--):q==l?(a.push(3),k--,d=l):(a.push(2),g--,d=m));a.reverse();b=void 0;k=[];for(g=0;g<a.length;g++)switch(a[g]){case 0:b&&(k.push(b),b=void 0);e++;f++;break;case 1:b||(b=Ib(e,0));b.X++;e++;b.P.push(c[f]);f++;break;case 2:b||(b=Ib(e,0));
59
+ b.X++;e++;break;case 3:b||(b=Ib(e,0)),b.P.push(c[f]),f++}b&&k.push(b);return k}function Kb(a,b){return a===b};var Lb=A({dispatchEvent:vb,addEventListener:xb,removeEventListener:yb});var Mb=null;function F(){Mb||(Mb=window.ShadyCSS&&window.ShadyCSS.ScopingShim);return Mb||null}function Nb(a,b,c){var d=F();return d&&"class"===b?(d.setElementClass(a,c),!0):!1}function Ob(a,b){var c=F();c&&c.unscopeNode(a,b)}function Pb(a,b){var c=F();if(!c)return!0;if(a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){c=!0;for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)c=c&&Pb(a,b);return c}return a.nodeType!==Node.ELEMENT_NODE?!0:c.currentScopeForNode(a)===b}
60
+ function Qb(a){if(a.nodeType!==Node.ELEMENT_NODE)return"";var b=F();return b?b.currentScopeForNode(a):""}function Rb(a,b){if(a)for(a.nodeType===Node.ELEMENT_NODE&&b(a),a=a.__shady_firstChild;a;a=a.__shady_nextSibling)a.nodeType===Node.ELEMENT_NODE&&Rb(a,b)};var Sb=window.document,Tb=u.O,Ub=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),Vb=Ub&&Ub.get;function Wb(a){for(var b;b=a.__shady_firstChild;)a.__shady_removeChild(b)}function Xb(a){var b=t(a);if(b&&void 0!==b.ba)for(b=a.__shady_firstChild;b;b=b.__shady_nextSibling)Xb(b);if(a=t(a))a.ba=void 0}function Yb(a){var b=a;if(a&&"slot"===a.localName){var c=t(a);(c=c&&c.L)&&(b=c.length?c[0]:Yb(a.__shady_nextSibling))}return b}
61
+ function Zb(a,b,c){if(a=(a=t(a))&&a.N){if(b)if(b.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(var d=0,e=b.childNodes.length;d<e;d++)a.addedNodes.push(b.childNodes[d]);else a.addedNodes.push(b);c&&a.removedNodes.push(c);Da(a)}}
62
+ var ec=A({get parentNode(){var a=t(this);a=a&&a.parentNode;return void 0!==a?a:this.__shady_native_parentNode},get firstChild(){var a=t(this);a=a&&a.firstChild;return void 0!==a?a:this.__shady_native_firstChild},get lastChild(){var a=t(this);a=a&&a.lastChild;return void 0!==a?a:this.__shady_native_lastChild},get nextSibling(){var a=t(this);a=a&&a.nextSibling;return void 0!==a?a:this.__shady_native_nextSibling},get previousSibling(){var a=t(this);a=a&&a.previousSibling;return void 0!==a?a:this.__shady_native_previousSibling},
63
+ get childNodes(){if(w(this)){var a=t(this);if(!a.childNodes){a.childNodes=[];for(var b=this.__shady_firstChild;b;b=b.__shady_nextSibling)a.childNodes.push(b)}var c=a.childNodes}else c=this.__shady_native_childNodes;c.item=function(d){return c[d]};return c},get parentElement(){var a=t(this);(a=a&&a.parentNode)&&a.nodeType!==Node.ELEMENT_NODE&&(a=null);return void 0!==a?a:this.__shady_native_parentElement},get isConnected(){if(Vb&&Vb.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;
64
+ var a=this.ownerDocument;if(null===a||pa(a,this))return!0;for(a=this;a&&!(a instanceof Document);)a=a.__shady_parentNode||(x(a)?a.host:void 0);return!!(a&&a instanceof Document)},get textContent(){if(w(this)){for(var a=[],b=this.__shady_firstChild;b;b=b.__shady_nextSibling)b.nodeType!==Node.COMMENT_NODE&&a.push(b.__shady_textContent);return a.join("")}return this.__shady_native_textContent},set textContent(a){if("undefined"===typeof a||null===a)a="";switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:if(!w(this)&&
65
+ u.m){var b=this.__shady_firstChild;(b!=this.__shady_lastChild||b&&b.nodeType!=Node.TEXT_NODE)&&Wb(this);this.__shady_native_textContent=a}else Wb(this),(0<a.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_insertBefore(document.createTextNode(a));break;default:this.nodeValue=a}},insertBefore:function(a,b){if(this.ownerDocument!==Sb&&a.ownerDocument!==Sb)return this.__shady_native_insertBefore(a,b),a;if(a===this)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");
66
+ if(b){var c=t(b);c=c&&c.parentNode;if(void 0!==c&&c!==this||void 0===c&&b.__shady_native_parentNode!==this)throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.");}if(b===a)return a;Zb(this,a);var d=[],e=(c=$b(this))?c.host.localName:Qb(this),f=a.__shady_parentNode;if(f){var g=Qb(a);var h=!!c||!$b(a)||Tb&&void 0!==this.__noInsertionPoint;f.__shady_removeChild(a,h)}f=!0;var k=(!Tb||void 0===a.__noInsertionPoint&&void 0===
67
+ this.__noInsertionPoint)&&!Pb(a,e),l=c&&!a.__noInsertionPoint&&(!Tb||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE);if(l||k)k&&(g=g||Qb(a)),Rb(a,function(m){l&&"slot"===m.localName&&d.push(m);if(k){var q=g;F()&&(q&&Ob(m,q),(q=F())&&q.scopeNode(m,e))}});d.length&&(ac(c),c.i.push.apply(c.i,p(d)),G(c));w(this)&&(bc(a,this,b),h=t(this),h.root?(f=!1,ia(this)&&G(h.root)):c&&"slot"===this.localName&&(f=!1,G(c)));f?(c=x(this)?this.host:this,b?(b=Yb(b),c.__shady_native_insertBefore(a,b)):c.__shady_native_appendChild(a)):
68
+ a.ownerDocument!==this.ownerDocument&&this.ownerDocument.adoptNode(a);return a},appendChild:function(a){if(this!=a||!x(a))return this.__shady_insertBefore(a)},removeChild:function(a,b){b=void 0===b?!1:b;if(this.ownerDocument!==Sb)return this.__shady_native_removeChild(a);if(a.__shady_parentNode!==this)throw Error("The node to be removed is not a child of this node: "+a);Zb(this,null,a);var c=$b(a),d=c&&cc(c,a),e=t(this);if(w(this)&&(dc(a,this),ia(this))){G(e.root);var f=!0}if(F()&&!b&&c&&a.nodeType!==
69
+ Node.TEXT_NODE){var g=Qb(a);Rb(a,function(h){Ob(h,g)})}Xb(a);c&&((b="slot"===this.localName)&&(f=!0),(d||b)&&G(c));f||(f=x(this)?this.host:this,(!e.root&&"slot"!==a.localName||f===a.__shady_native_parentNode)&&f.__shady_native_removeChild(a));return a},replaceChild:function(a,b){this.__shady_insertBefore(a,b);this.__shady_removeChild(b);return a},cloneNode:function(a){if("template"==this.localName)return this.__shady_native_cloneNode(a);var b=this.__shady_native_cloneNode(!1);if(a&&b.nodeType!==Node.ATTRIBUTE_NODE){a=
70
+ this.__shady_firstChild;for(var c;a;a=a.__shady_nextSibling)c=a.__shady_cloneNode(!0),b.__shady_appendChild(c)}return b},getRootNode:function(a){if(this&&this.nodeType){var b=r(this),c=b.ba;void 0===c&&(x(this)?(c=this,b.ba=c):(c=(c=this.__shady_parentNode)?c.__shady_getRootNode(a):this,document.documentElement.__shady_native_contains(this)&&(b.ba=c)));return c}},contains:function(a){return qa(this,a)}});var gc=A({get assignedSlot(){var a=this.__shady_parentNode;(a=a&&a.__shady_shadowRoot)&&fc(a);return(a=t(this))&&a.assignedSlot||null}});function hc(a,b,c){var d=[];ic(a,b,c,d);return d}function ic(a,b,c,d){for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling){var e;if(e=a.nodeType===Node.ELEMENT_NODE){e=a;var f=b,g=c,h=d,k=f(e);k&&h.push(e);g&&g(k)?e=k:(ic(e,f,g,h),e=void 0)}if(e)break}}
71
+ var jc={get firstElementChild(){var a=t(this);if(a&&void 0!==a.firstChild){for(a=this.__shady_firstChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_nextSibling;return a}return this.__shady_native_firstElementChild},get lastElementChild(){var a=t(this);if(a&&void 0!==a.lastChild){for(a=this.__shady_lastChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_previousSibling;return a}return this.__shady_native_lastElementChild},get children(){return w(this)?ra(Array.prototype.filter.call(ta(this),function(a){return a.nodeType===
72
+ Node.ELEMENT_NODE})):this.__shady_native_children},get childElementCount(){var a=this.__shady_children;return a?a.length:0}},kc=A((jc.append=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];this.__shady_insertBefore(B.apply(null,p(b)),null)},jc.prepend=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];this.__shady_insertBefore(B.apply(null,p(b)),this.__shady_firstChild)},jc.replaceChildren=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];
73
+ for(;null!==(c=this.__shady_firstChild);)this.__shady_removeChild(c);this.__shady_insertBefore(B.apply(null,p(b)),null)},jc)),lc=A({querySelector:function(a){return hc(this,function(b){return ka.call(b,a)},function(b){return!!b})[0]||null},querySelectorAll:function(a,b){if(b){b=Array.prototype.slice.call(this.__shady_native_querySelectorAll(a));var c=this.__shady_getRootNode();return ra(b.filter(function(d){return d.__shady_getRootNode()==c}))}return ra(hc(this,function(d){return ka.call(d,a)}))}}),
74
+ mc=u.O&&!u.s?wa({},kc):kc;wa(kc,lc);/*
86
75
 
87
76
  Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
88
77
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -91,50 +80,49 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
91
80
  Code distributed by Google as part of the polymer project is also
92
81
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
93
82
  */
94
- var zc=A({after:function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];c=this.__shady_parentNode;if(null!==c){var d=this.__shady_nextSibling;c.__shady_insertBefore(Aa.apply(null,r(b)),d)}},before:function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];c=this.__shady_parentNode;null!==c&&c.__shady_insertBefore(Aa.apply(null,r(b)),this)},remove:function(){var a=this.__shady_parentNode;null!==a&&a.__shady_removeChild(this)},replaceWith:function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=
95
- arguments[c];c=this.__shady_parentNode;if(null!==c){var d=this.__shady_nextSibling;c.__shady_removeChild(this);c.__shady_insertBefore(Aa.apply(null,r(b)),d)}}});var Ac=window.document;function Bc(a,b){if("slot"===b)a=a.__shady_parentNode,ja(a)&&F(u(a).root);else if("slot"===a.localName&&"name"===b&&(b=hc(a))){if(b.g){Cc(b);var c=a.Ca,d=Dc(a);if(d!==c){c=b.h[c];var e=c.indexOf(a);0<=e&&c.splice(e,1);c=b.h[d]||(b.h[d]=[]);c.push(a);1<c.length&&(b.h[d]=Ec(c))}}F(b)}}
96
- var Fc=A({get previousElementSibling(){var a=u(this);if(a&&void 0!==a.previousSibling){for(a=this.__shady_previousSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_previousSibling;return a}return this.__shady_native_previousElementSibling},get nextElementSibling(){var a=u(this);if(a&&void 0!==a.nextSibling){for(a=this.__shady_nextSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_nextSibling;return a}return this.__shady_native_nextElementSibling},get slot(){return this.getAttribute("slot")},
97
- set slot(a){this.__shady_setAttribute("slot",a)},get className(){return this.getAttribute("class")||""},set className(a){this.__shady_setAttribute("class",a)},setAttribute:function(a,b){this.ownerDocument!==Ac?this.__shady_native_setAttribute(a,b):Vb(this,a,b)||(this.__shady_native_setAttribute(a,b),Bc(this,a))},removeAttribute:function(a){this.ownerDocument!==Ac?this.__shady_native_removeAttribute(a):Vb(this,a,"")?""===this.getAttribute(a)&&this.__shady_native_removeAttribute(a):(this.__shady_native_removeAttribute(a),
98
- Bc(this,a))},toggleAttribute:function(a,b){if(this.ownerDocument!==Ac)return this.__shady_native_toggleAttribute(a,b);if(!Vb(this,a,""))return b=this.__shady_native_toggleAttribute(a,b),Bc(this,a),b;if(""===this.getAttribute(a)&&!b)return this.__shady_native_toggleAttribute(a,b)}});w.R||Nb.forEach(function(a){Fc[a]=Pb(a)});
99
- var Kc=A({attachShadow:function(a){if(!this)throw Error("Must provide a host.");if(!a)throw Error("Not enough arguments.");if(a.shadyUpgradeFragment&&!w.za){var b=a.shadyUpgradeFragment;b.__proto__=ShadowRoot.prototype;Gc(b,this,a);Hc(b,b);a=b.__noInsertionPoint?null:b.querySelectorAll("slot");b.__noInsertionPoint=void 0;if(a&&a.length){var c=b;ic(c);c.i.push.apply(c.i,r(a));F(b)}b.host.__shady_native_appendChild(b)}else b=new Ic(Jc,this,a);return this.__CE_shadowRoot=b},get shadowRoot(){var a=u(this);
100
- return a&&a.Pa||null}});ya(Fc,Kc);var Lc=document.implementation.createHTMLDocument("inert"),Mc=A({get innerHTML(){return x(this)?Sa("template"===this.localName?this.content:this,va):this.__shady_native_innerHTML},set innerHTML(a){if("template"===this.localName)this.__shady_native_innerHTML=a;else{dc(this);var b=this.localName||"div";b=this.namespaceURI&&this.namespaceURI!==Lc.namespaceURI?Lc.createElementNS(this.namespaceURI,b):Lc.createElement(b);for(w.j?b.__shady_native_innerHTML=a:b.innerHTML=a;a=b.__shady_firstChild;)this.__shady_insertBefore(a)}}});var Nc=A({blur:function(){var a=u(this);(a=(a=a&&a.root)&&a.activeElement)?a.__shady_blur():this.__shady_native_blur()}});w.R||Ob.forEach(function(a){Nc[a]=Pb(a)});var Oc=A({assignedNodes:function(a){if("slot"===this.localName){var b=this.__shady_getRootNode();b&&y(b)&&nc(b);return(b=u(this))?(a&&a.flatten?b.L:b.assignedNodes)||[]:[]}},addEventListener:function(a,b,c){if("slot"!==this.localName||"slotchange"===a)Fb.call(this,a,b,c);else{"object"!==typeof c&&(c={capture:!!c});var d=this.__shady_parentNode;if(!d)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");c.G=this;d.__shady_addEventListener(a,b,c)}},removeEventListener:function(a,
101
- b,c){if("slot"!==this.localName||"slotchange"===a)Gb.call(this,a,b,c);else{"object"!==typeof c&&(c={capture:!!c});var d=this.__shady_parentNode;if(!d)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");c.G=this;d.__shady_removeEventListener(a,b,c)}}});var Pc=A({getElementById:function(a){return""===a?null:sc(this,function(b){return b.id==a},function(b){return!!b})[0]||null}});function Qc(a,b){for(var c;b&&!a.has(c=b.__shady_getRootNode());)b=c.host;return b}function Rc(a){var b=new Set;for(b.add(a);y(a)&&a.host;)a=a.host.__shady_getRootNode(),b.add(a);return b}
102
- var Sc="__shady_native_"+ia(),Tc=A({get activeElement(){var a=w.j?document.__shady_native_activeElement:document.activeElement;if(!a||!a.nodeType)return null;var b=!!y(this);if(!(this===document||b&&this.host!==a&&this.host.__shady_native_contains(a)))return null;for(b=hc(a);b&&b!==this;)a=b.host,b=hc(a);return this===document?b?null:a:b===this?a:null},elementsFromPoint:function(a,b){a=document[Sc](a,b);if(this===document&&w.useNativeDocumentEFP)return a;a=[].slice.call(a);b=Rc(this);for(var c=new Set,
103
- d=0;d<a.length;d++)c.add(Qc(b,a[d]));var e=[];c.forEach(function(f){return e.push(f)});return e},elementFromPoint:function(a,b){return this===document&&w.useNativeDocumentEFP?this.__shady_native_elementFromPoint(a,b):this.__shady_elementsFromPoint(a,b)[0]||null}});var Uc=window.document,Vc=A({importNode:function(a,b){if(a.ownerDocument!==Uc||"template"===a.localName)return this.__shady_native_importNode(a,b);var c=this.__shady_native_importNode(a,!1);if(b)for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)b=this.__shady_importNode(a,!0),c.__shady_appendChild(b);return c}});var Wc=A({dispatchEvent:Db,addEventListener:Fb.bind(window),removeEventListener:Gb.bind(window)});var Xc={};Object.getOwnPropertyDescriptor(HTMLElement.prototype,"parentElement")&&(Xc.parentElement=mc.parentElement);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"contains")&&(Xc.contains=mc.contains);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"children")&&(Xc.children=vc.children);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML")&&(Xc.innerHTML=Mc.innerHTML);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"className")&&(Xc.className=Fc.className);
104
- var H={EventTarget:[Tb],Node:[mc,window.EventTarget?null:Tb],Text:[oc],Comment:[oc],CDATASection:[oc],ProcessingInstruction:[oc],Element:[Fc,vc,zc,oc,!w.j||"innerHTML"in Element.prototype?Mc:null,window.HTMLSlotElement?null:Oc],HTMLElement:[Nc,Xc],HTMLSlotElement:[Oc],DocumentFragment:[yc,Pc],Document:[Vc,yc,Pc,Tc],Window:[Wc],CharacterData:[zc],XMLHttpRequest:[window.EventTarget?null:Tb]},Yc=w.j?null:["innerHTML","textContent"];
105
- function I(a,b,c,d){b.forEach(function(e){return a&&e&&z(a,e,c,d)})}function Zc(a){var b=a?null:Yc,c;for(c in H)I(window[c]&&window[c].prototype,H[c],a,b)}["Text","Comment","CDATASection","ProcessingInstruction"].forEach(function(a){var b=window[a],c=Object.create(b.prototype);c.__shady_protoIsPatched=!0;I(c,H.EventTarget);I(c,H.Node);H[a]&&I(c,H[a]);b.prototype.__shady_patchedProto=c});
106
- function $c(a){a.__shady_protoIsPatched=!0;I(a,H.EventTarget);I(a,H.Node);I(a,H.Element);I(a,H.HTMLElement);I(a,H.HTMLSlotElement);return a};var ad=w.ma,bd=w.j;function cd(a,b){if(ad&&!a.__shady_protoIsPatched&&!y(a)){var c=Object.getPrototypeOf(a),d=c.hasOwnProperty("__shady_patchedProto")&&c.__shady_patchedProto;d||(d=Object.create(c),$c(d),c.__shady_patchedProto=d);Object.setPrototypeOf(a,d)}bd||(1===b?ib(a):2===b&&jb(a))}
107
- function dd(a,b,c,d){cd(a,1);d=d||null;var e=t(a),f=d?t(d):null;e.previousSibling=d?f.previousSibling:b.__shady_lastChild;if(f=u(e.previousSibling))f.nextSibling=a;if(f=u(e.nextSibling=d))f.previousSibling=a;e.parentNode=b;d?d===c.firstChild&&(c.firstChild=a):(c.lastChild=a,c.firstChild||(c.firstChild=a));c.childNodes=null}
108
- function jc(a,b,c){cd(b,2);var d=t(b);void 0!==d.firstChild&&(d.childNodes=null);if(a.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(a=a.__shady_native_firstChild;a;a=a.__shady_native_nextSibling)dd(a,b,d,c);else dd(a,b,d,c)}
109
- function lc(a,b){var c=t(a);b=t(b);a===b.firstChild&&(b.firstChild=c.nextSibling);a===b.lastChild&&(b.lastChild=c.previousSibling);a=c.previousSibling;var d=c.nextSibling;a&&(t(a).nextSibling=d);d&&(t(d).previousSibling=a);c.parentNode=c.previousSibling=c.nextSibling=void 0;void 0!==b.childNodes&&(b.childNodes=null)}
110
- function Hc(a,b){var c=t(a);if(b||void 0===c.firstChild){c.childNodes=null;var d=c.firstChild=a.__shady_native_firstChild;c.lastChild=a.__shady_native_lastChild;cd(a,2);c=d;for(d=void 0;c;c=c.__shady_native_nextSibling){var e=t(c);e.parentNode=b||a;e.nextSibling=c.__shady_native_nextSibling;e.previousSibling=d||null;d=c;cd(c,1)}}};var ed=A({addEventListener:function(a,b,c){"object"!==typeof c&&(c={capture:!!c});c.G=c.G||this;this.host.__shady_addEventListener(a,b,c)},removeEventListener:function(a,b,c){"object"!==typeof c&&(c={capture:!!c});c.G=c.G||this;this.host.__shady_removeEventListener(a,b,c)}});function fd(a,b){z(a,ed,b);z(a,Tc,b);z(a,Mc,b);z(a,vc,b);w.s&&!b?(z(a,mc,b),z(a,Pc,b)):w.j||(z(a,fb),z(a,cb),z(a,eb))};var Jc={},J=w.deferConnectionCallbacks&&"loading"===document.readyState,gd;function hd(a){var b=[];do b.unshift(a);while(a=a.__shady_parentNode);return b}function Ic(a,b,c){if(a!==Jc)throw new TypeError("Illegal constructor");this.g=null;Gc(this,b,c)}
111
- function Gc(a,b,c){a.host=b;a.mode=c&&c.mode;Hc(a.host);b=t(a.host);b.root=a;b.Pa="closed"!==a.mode?a:null;b=t(a);b.firstChild=b.lastChild=b.parentNode=b.nextSibling=b.previousSibling=null;if(w.preferPerformance)for(;b=a.host.__shady_native_firstChild;)a.host.__shady_native_removeChild(b);else F(a)}function F(a){a.K||(a.K=!0,Fa(function(){return nc(a)}))}
112
- function nc(a){var b;if(b=a.K){for(var c;a;)a:{a.K&&(c=a),b=a;a=b.host.__shady_getRootNode();if(y(a)&&(b=u(b.host))&&0<b.U)break a;a=void 0}b=c}(c=b)&&c._renderSelf()}
113
- Ic.prototype._renderSelf=function(){var a=J;J=!0;this.K=!1;if(this.g){Cc(this);for(var b=0,c;b<this.g.length;b++){c=this.g[b];var d=u(c),e=d.assignedNodes;d.assignedNodes=[];d.L=[];if(d.ra=e)for(d=0;d<e.length;d++){var f=u(e[d]);f.ha=f.assignedSlot;f.assignedSlot===c&&(f.assignedSlot=null)}}for(b=this.host.__shady_firstChild;b;b=b.__shady_nextSibling)id(this,b);for(b=0;b<this.g.length;b++){c=this.g[b];e=u(c);if(!e.assignedNodes.length)for(d=c.__shady_firstChild;d;d=d.__shady_nextSibling)id(this,d,
114
- c);(d=(d=u(c.__shady_parentNode))&&d.root)&&(ka(d)||d.K)&&d._renderSelf();jd(this,e.L,e.assignedNodes);if(d=e.ra){for(f=0;f<d.length;f++)u(d[f]).ha=null;e.ra=null;d.length>e.assignedNodes.length&&(e.ja=!0)}e.ja&&(e.ja=!1,kd(this,c))}c=this.g;b=[];for(e=0;e<c.length;e++)d=c[e].__shady_parentNode,(f=u(d))&&f.root||!(0>b.indexOf(d))||b.push(d);for(c=0;c<b.length;c++){f=b[c];e=f===this?this.host:f;d=[];for(f=f.__shady_firstChild;f;f=f.__shady_nextSibling)if("slot"==f.localName)for(var g=u(f).L,h=0;h<
115
- g.length;h++)d.push(g[h]);else d.push(f);f=ua(e);g=Rb(d,d.length,f,f.length);for(var k=h=0,l=void 0;h<g.length&&(l=g[h]);h++){for(var m=0,q=void 0;m<l.S.length&&(q=l.S[m]);m++)q.__shady_native_parentNode===e&&e.__shady_native_removeChild(q),f.splice(l.index+k,1);k-=l.Z}k=0;for(l=void 0;k<g.length&&(l=g[k]);k++)for(h=f[l.index],m=l.index;m<l.index+l.Z;m++)q=d[m],e.__shady_native_insertBefore(q,h),f.splice(m,0,q)}}if(!w.preferPerformance&&!this.qa)for(b=this.host.__shady_firstChild;b;b=b.__shady_nextSibling)c=
116
- u(b),b.__shady_native_parentNode!==this.host||"slot"!==b.localName&&c.assignedSlot||this.host.__shady_native_removeChild(b);this.qa=!0;J=a;gd&&gd()};function id(a,b,c){var d=t(b),e=d.ha;d.ha=null;c||(c=(a=a.h[b.__shady_slot||"__catchall"])&&a[0]);c?(t(c).assignedNodes.push(b),d.assignedSlot=c):d.assignedSlot=void 0;e!==d.assignedSlot&&d.assignedSlot&&(t(d.assignedSlot).ja=!0)}
117
- function jd(a,b,c){for(var d=0,e=void 0;d<c.length&&(e=c[d]);d++)if("slot"==e.localName){var f=u(e).assignedNodes;f&&f.length&&jd(a,b,f)}else b.push(c[d])}function kd(a,b){b.__shady_native_dispatchEvent(new Event("slotchange"));b=u(b);b.assignedSlot&&kd(a,b.assignedSlot)}function ic(a){a.i=a.i||[];a.g=a.g||[];a.h=a.h||{}}
118
- function Cc(a){if(a.i&&a.i.length){for(var b=a.i,c,d=0;d<b.length;d++){var e=b[d];Hc(e);var f=e.__shady_parentNode;Hc(f);f=u(f);f.U=(f.U||0)+1;f=Dc(e);a.h[f]?(c=c||{},c[f]=!0,a.h[f].push(e)):a.h[f]=[e];a.g.push(e)}if(c)for(var g in c)a.h[g]=Ec(a.h[g]);a.i=[]}}function Dc(a){var b=a.name||a.getAttribute("name")||"__catchall";return a.Ca=b}
119
- function Ec(a){return a.sort(function(b,c){b=hd(b);for(var d=hd(c),e=0;e<b.length;e++){c=b[e];var f=d[e];if(c!==f)return b=va(c.__shady_parentNode),b.indexOf(c)-b.indexOf(f)}})}
120
- function kc(a,b){if(a.g){Cc(a);var c=a.h,d;for(d in c)for(var e=c[d],f=0;f<e.length;f++){var g=e[f];if(sa(b,g)){e.splice(f,1);var h=a.g.indexOf(g);0<=h&&(a.g.splice(h,1),(h=u(g.__shady_parentNode))&&h.U&&h.U--);f--;g=u(g);if(h=g.L)for(var k=0;k<h.length;k++){var l=h[k],m=l.__shady_native_parentNode;m&&m.__shady_native_removeChild(l)}g.L=[];g.assignedNodes=[];h=!0}}return h}}function ka(a){Cc(a);return!(!a.g||!a.g.length)}
121
- (function(a){a.__proto__=DocumentFragment.prototype;fd(a,"__shady_");fd(a);Object.defineProperties(a,{nodeType:{value:Node.DOCUMENT_FRAGMENT_NODE,configurable:!0},nodeName:{value:"#document-fragment",configurable:!0},nodeValue:{value:null,configurable:!0}});["localName","namespaceURI","prefix"].forEach(function(b){Object.defineProperty(a,b,{value:void 0,configurable:!0})});["ownerDocument","baseURI","isConnected"].forEach(function(b){Object.defineProperty(a,b,{get:function(){return this.host[b]},
122
- configurable:!0})})})(Ic.prototype);
123
- if(window.customElements&&window.customElements.define&&w.ka&&!w.preferPerformance){var ld=new Map;gd=function(){var a=[];ld.forEach(function(d,e){a.push([e,d])});ld.clear();for(var b=0;b<a.length;b++){var c=a[b][0];a[b][1]?c.__shadydom_connectedCallback():c.__shadydom_disconnectedCallback()}};J&&document.addEventListener("readystatechange",function(){J=!1;gd()},{once:!0});var md=function(a,b,c){var d=0,e="__isConnected"+d++;if(b||c)a.prototype.connectedCallback=a.prototype.__shadydom_connectedCallback=
124
- function(){J?ld.set(this,!0):this[e]||(this[e]=!0,b&&b.call(this))},a.prototype.disconnectedCallback=a.prototype.__shadydom_disconnectedCallback=function(){J?this.isConnected||ld.set(this,!1):this[e]&&(this[e]=!1,c&&c.call(this))};return a},nd=window.customElements.define,od=function(a,b){var c=b.prototype.connectedCallback,d=b.prototype.disconnectedCallback;nd.call(window.customElements,a,md(b,c,d));b.prototype.connectedCallback=c;b.prototype.disconnectedCallback=d};window.customElements.define=
125
- od;Object.defineProperty(window.CustomElementRegistry.prototype,"define",{value:od,configurable:!0})}function hc(a){a=a.__shady_getRootNode();if(y(a))return a};function pd(a){this.node=a}n=pd.prototype;n.addEventListener=function(a,b,c){return this.node.__shady_addEventListener(a,b,c)};n.removeEventListener=function(a,b,c){return this.node.__shady_removeEventListener(a,b,c)};n.appendChild=function(a){return this.node.__shady_appendChild(a)};n.insertBefore=function(a,b){return this.node.__shady_insertBefore(a,b)};n.removeChild=function(a){return this.node.__shady_removeChild(a)};n.replaceChild=function(a,b){return this.node.__shady_replaceChild(a,b)};
126
- n.cloneNode=function(a){return this.node.__shady_cloneNode(a)};n.getRootNode=function(a){return this.node.__shady_getRootNode(a)};n.contains=function(a){return this.node.__shady_contains(a)};n.dispatchEvent=function(a){return this.node.__shady_dispatchEvent(a)};n.setAttribute=function(a,b){this.node.__shady_setAttribute(a,b)};n.getAttribute=function(a){return this.node.__shady_native_getAttribute(a)};n.removeAttribute=function(a){this.node.__shady_removeAttribute(a)};
127
- n.toggleAttribute=function(a,b){return this.node.__shady_toggleAttribute(a,b)};n.attachShadow=function(a){return this.node.__shady_attachShadow(a)};n.focus=function(){this.node.__shady_native_focus()};n.blur=function(){this.node.__shady_blur()};n.importNode=function(a,b){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_importNode(a,b)};n.getElementById=function(a){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_getElementById(a)};
128
- n.elementsFromPoint=function(a,b){return this.node.__shady_elementsFromPoint(a,b)};n.elementFromPoint=function(a,b){return this.node.__shady_elementFromPoint(a,b)};n.querySelector=function(a){return this.node.__shady_querySelector(a)};n.querySelectorAll=function(a,b){return this.node.__shady_querySelectorAll(a,b)};n.assignedNodes=function(a){if("slot"===this.node.localName)return this.node.__shady_assignedNodes(a)};
129
- n.append=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];return this.node.__shady_append.apply(this.node,r(b))};n.prepend=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];return this.node.__shady_prepend.apply(this.node,r(b))};n.after=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];return this.node.__shady_after.apply(this.node,r(b))};
130
- n.before=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];return this.node.__shady_before.apply(this.node,r(b))};n.remove=function(){return this.node.__shady_remove()};n.replaceWith=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];return this.node.__shady_replaceWith.apply(this.node,r(b))};
131
- ca.Object.defineProperties(pd.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){if(y(this.node)||this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_activeElement}},_activeElement:{configurable:!0,enumerable:!0,get:function(){return this.activeElement}},host:{configurable:!0,enumerable:!0,get:function(){if(y(this.node))return this.node.host}},parentNode:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_parentNode}},firstChild:{configurable:!0,
83
+ var nc=A({after:function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];c=this.__shady_parentNode;if(null!==c){var d=this.__shady_nextSibling;c.__shady_insertBefore(B.apply(null,p(b)),d)}},before:function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];c=this.__shady_parentNode;null!==c&&c.__shady_insertBefore(B.apply(null,p(b)),this)},remove:function(){var a=this.__shady_parentNode;null!==a&&a.__shady_removeChild(this)},replaceWith:function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=
84
+ arguments[c];c=this.__shady_parentNode;if(null!==c){var d=this.__shady_nextSibling;c.__shady_removeChild(this);c.__shady_insertBefore(B.apply(null,p(b)),d)}}});var oc=window.document;function pc(a,b){if("slot"===b)a=a.__shady_parentNode,ia(a)&&G(t(a).root);else if("slot"===a.localName&&"name"===b&&(b=$b(a))){if(b.g){qc(b);var c=a.ya,d=rc(a);if(d!==c){c=b.h[c];var e=c.indexOf(a);0<=e&&c.splice(e,1);c=b.h[d]||(b.h[d]=[]);c.push(a);1<c.length&&(b.h[d]=sc(c))}}G(b)}}
85
+ var tc=A({get previousElementSibling(){var a=t(this);if(a&&void 0!==a.previousSibling){for(a=this.__shady_previousSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_previousSibling;return a}return this.__shady_native_previousElementSibling},get nextElementSibling(){var a=t(this);if(a&&void 0!==a.nextSibling){for(a=this.__shady_nextSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_nextSibling;return a}return this.__shady_native_nextElementSibling},get slot(){return this.getAttribute("slot")},
86
+ set slot(a){this.__shady_setAttribute("slot",a)},get className(){return this.getAttribute("class")||""},set className(a){this.__shady_setAttribute("class",a)},setAttribute:function(a,b){this.ownerDocument!==oc?this.__shady_native_setAttribute(a,b):Nb(this,a,b)||(this.__shady_native_setAttribute(a,b),pc(this,a))},removeAttribute:function(a){this.ownerDocument!==oc?this.__shady_native_removeAttribute(a):Nb(this,a,"")?""===this.getAttribute(a)&&this.__shady_native_removeAttribute(a):(this.__shady_native_removeAttribute(a),
87
+ pc(this,a))}});u.O||Fb.forEach(function(a){tc[a]=Hb(a)});
88
+ var yc=A({attachShadow:function(a){if(!this)throw Error("Must provide a host.");if(!a)throw Error("Not enough arguments.");if(a.shadyUpgradeFragment&&!u.va){var b=a.shadyUpgradeFragment;b.__proto__=ShadowRoot.prototype;uc(b,this,a);vc(b,b);a=b.__noInsertionPoint?null:b.querySelectorAll("slot");b.__noInsertionPoint=void 0;if(a&&a.length){var c=b;ac(c);c.i.push.apply(c.i,p(a));G(b)}b.host.__shady_native_appendChild(b)}else b=new wc(xc,this,a);return this.__CE_shadowRoot=b},get shadowRoot(){var a=t(this);
89
+ return a&&a.Ka||null}});wa(tc,yc);var zc=document.implementation.createHTMLDocument("inert"),Ac=A({get innerHTML(){return w(this)?Na("template"===this.localName?this.content:this,ta):this.__shady_native_innerHTML},set innerHTML(a){if("template"===this.localName)this.__shady_native_innerHTML=a;else{Wb(this);var b=this.localName||"div";b=this.namespaceURI&&this.namespaceURI!==zc.namespaceURI?zc.createElementNS(this.namespaceURI,b):zc.createElement(b);for(u.m?b.__shady_native_innerHTML=a:b.innerHTML=a;a=b.__shady_firstChild;)this.__shady_insertBefore(a)}}});var Bc=A({blur:function(){var a=t(this);(a=(a=a&&a.root)&&a.activeElement)?a.__shady_blur():this.__shady_native_blur()}});u.O||Gb.forEach(function(a){Bc[a]=Hb(a)});var Cc=A({assignedNodes:function(a){if("slot"===this.localName){var b=this.__shady_getRootNode();b&&x(b)&&fc(b);return(b=t(this))?(a&&a.flatten?b.L:b.assignedNodes)||[]:[]}},addEventListener:function(a,b,c){if("slot"!==this.localName||"slotchange"===a)xb.call(this,a,b,c);else{"object"!==typeof c&&(c={capture:!!c});var d=this.__shady_parentNode;if(!d)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");c.G=this;d.__shady_addEventListener(a,b,c)}},removeEventListener:function(a,
90
+ b,c){if("slot"!==this.localName||"slotchange"===a)yb.call(this,a,b,c);else{"object"!==typeof c&&(c={capture:!!c});var d=this.__shady_parentNode;if(!d)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");c.G=this;d.__shady_removeEventListener(a,b,c)}}});var Dc=A({getElementById:function(a){return""===a?null:hc(this,function(b){return b.id==a},function(b){return!!b})[0]||null}});function Ec(a,b){for(var c;b&&!a.has(c=b.__shady_getRootNode());)b=c.host;return b}function Fc(a){var b=new Set;for(b.add(a);x(a)&&a.host;)a=a.host.__shady_getRootNode(),b.add(a);return b}
91
+ var Gc="__shady_native_"+ha(),Hc=A({get activeElement(){var a=u.m?document.__shady_native_activeElement:document.activeElement;if(!a||!a.nodeType)return null;var b=!!x(this);if(!(this===document||b&&this.host!==a&&this.host.__shady_native_contains(a)))return null;for(b=$b(a);b&&b!==this;)a=b.host,b=$b(a);return this===document?b?null:a:b===this?a:null},elementsFromPoint:function(a,b){a=[].slice.call(document[Gc](a,b));b=Fc(this);for(var c=new Set,d=0;d<a.length;d++)c.add(Ec(b,a[d]));var e=[];c.forEach(function(f){return e.push(f)});
92
+ return e},elementFromPoint:function(a,b){return this.__shady_elementsFromPoint(a,b)[0]||null}});var Ic=window.document,Jc=A({importNode:function(a,b){if(a.ownerDocument!==Ic||"template"===a.localName)return this.__shady_native_importNode(a,b);var c=this.__shady_native_importNode(a,!1);if(b)for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)b=this.__shady_importNode(a,!0),c.__shady_appendChild(b);return c}});var Kc=A({dispatchEvent:vb,addEventListener:xb.bind(window),removeEventListener:yb.bind(window)});var Lc={};Object.getOwnPropertyDescriptor(HTMLElement.prototype,"parentElement")&&(Lc.parentElement=ec.parentElement);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"contains")&&(Lc.contains=ec.contains);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"children")&&(Lc.children=kc.children);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML")&&(Lc.innerHTML=Ac.innerHTML);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"className")&&(Lc.className=tc.className);
93
+ var H={EventTarget:[Lb],Node:[ec,window.EventTarget?null:Lb],Text:[gc],Comment:[gc],CDATASection:[gc],ProcessingInstruction:[gc],Element:[tc,kc,nc,gc,!u.m||"innerHTML"in Element.prototype?Ac:null,window.HTMLSlotElement?null:Cc],HTMLElement:[Bc,Lc],HTMLSlotElement:[Cc],DocumentFragment:[mc,Dc],Document:[Jc,mc,Dc,Hc],Window:[Kc],CharacterData:[nc]},Mc=u.m?null:["innerHTML","textContent"];function I(a,b,c,d){b.forEach(function(e){return a&&e&&z(a,e,c,d)})}
94
+ function Nc(a){var b=a?null:Mc,c;for(c in H)I(window[c]&&window[c].prototype,H[c],a,b)}["Text","Comment","CDATASection","ProcessingInstruction"].forEach(function(a){var b=window[a],c=Object.create(b.prototype);c.__shady_protoIsPatched=!0;I(c,H.EventTarget);I(c,H.Node);H[a]&&I(c,H[a]);b.prototype.__shady_patchedProto=c});function Oc(a){a.__shady_protoIsPatched=!0;I(a,H.EventTarget);I(a,H.Node);I(a,H.Element);I(a,H.HTMLElement);I(a,H.HTMLSlotElement);return a};var Pc=u.ja,Qc=u.m;function Rc(a,b){if(Pc&&!a.__shady_protoIsPatched&&!x(a)){var c=Object.getPrototypeOf(a),d=c.hasOwnProperty("__shady_patchedProto")&&c.__shady_patchedProto;d||(d=Object.create(c),Oc(d),c.__shady_patchedProto=d);Object.setPrototypeOf(a,d)}Qc||(1===b?db(a):2===b&&eb(a))}
95
+ function Sc(a,b,c,d){Rc(a,1);d=d||null;var e=r(a),f=d?r(d):null;e.previousSibling=d?f.previousSibling:b.__shady_lastChild;if(f=t(e.previousSibling))f.nextSibling=a;if(f=t(e.nextSibling=d))f.previousSibling=a;e.parentNode=b;d?d===c.firstChild&&(c.firstChild=a):(c.lastChild=a,c.firstChild||(c.firstChild=a));c.childNodes=null}
96
+ function bc(a,b,c){Rc(b,2);var d=r(b);void 0!==d.firstChild&&(d.childNodes=null);if(a.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(a=a.__shady_native_firstChild;a;a=a.__shady_native_nextSibling)Sc(a,b,d,c);else Sc(a,b,d,c)}
97
+ function dc(a,b){var c=r(a);b=r(b);a===b.firstChild&&(b.firstChild=c.nextSibling);a===b.lastChild&&(b.lastChild=c.previousSibling);a=c.previousSibling;var d=c.nextSibling;a&&(r(a).nextSibling=d);d&&(r(d).previousSibling=a);c.parentNode=c.previousSibling=c.nextSibling=void 0;void 0!==b.childNodes&&(b.childNodes=null)}
98
+ function vc(a,b){var c=r(a);if(b||void 0===c.firstChild){c.childNodes=null;var d=c.firstChild=a.__shady_native_firstChild;c.lastChild=a.__shady_native_lastChild;Rc(a,2);c=d;for(d=void 0;c;c=c.__shady_native_nextSibling){var e=r(c);e.parentNode=b||a;e.nextSibling=c.__shady_native_nextSibling;e.previousSibling=d||null;d=c;Rc(c,1)}}};var Tc=A({addEventListener:function(a,b,c){"object"!==typeof c&&(c={capture:!!c});c.G=c.G||this;this.host.__shady_addEventListener(a,b,c)},removeEventListener:function(a,b,c){"object"!==typeof c&&(c={capture:!!c});c.G=c.G||this;this.host.__shady_removeEventListener(a,b,c)}});function Uc(a,b){z(a,Tc,b);z(a,Hc,b);z(a,Ac,b);z(a,kc,b);u.s&&!b?(z(a,ec,b),z(a,Dc,b)):u.m||(z(a,ab),z(a,Ya),z(a,Za))};var xc={},J=u.deferConnectionCallbacks&&"loading"===document.readyState,Vc;function Wc(a){var b=[];do b.unshift(a);while(a=a.__shady_parentNode);return b}function wc(a,b,c){if(a!==xc)throw new TypeError("Illegal constructor");this.g=null;uc(this,b,c)}
99
+ function uc(a,b,c){a.host=b;a.mode=c&&c.mode;vc(a.host);b=r(a.host);b.root=a;b.Ka="closed"!==a.mode?a:null;b=r(a);b.firstChild=b.lastChild=b.parentNode=b.nextSibling=b.previousSibling=null;if(u.preferPerformance)for(;b=a.host.__shady_native_firstChild;)a.host.__shady_native_removeChild(b);else G(a)}function G(a){a.K||(a.K=!0,Aa(function(){return fc(a)}))}
100
+ function fc(a){var b;if(b=a.K){for(var c;a;)a:{a.K&&(c=a),b=a;a=b.host.__shady_getRootNode();if(x(a)&&(b=t(b.host))&&0<b.S)break a;a=void 0}b=c}(c=b)&&c._renderSelf()}
101
+ wc.prototype._renderSelf=function(){var a=J;J=!0;this.K=!1;if(this.g){qc(this);for(var b=0,c;b<this.g.length;b++){c=this.g[b];var d=t(c),e=d.assignedNodes;d.assignedNodes=[];d.L=[];if(d.oa=e)for(d=0;d<e.length;d++){var f=t(e[d]);f.ea=f.assignedSlot;f.assignedSlot===c&&(f.assignedSlot=null)}}for(b=this.host.__shady_firstChild;b;b=b.__shady_nextSibling)Xc(this,b);for(b=0;b<this.g.length;b++){c=this.g[b];e=t(c);if(!e.assignedNodes.length)for(d=c.__shady_firstChild;d;d=d.__shady_nextSibling)Xc(this,d,
102
+ c);(d=(d=t(c.__shady_parentNode))&&d.root)&&(ja(d)||d.K)&&d._renderSelf();Yc(this,e.L,e.assignedNodes);if(d=e.oa){for(f=0;f<d.length;f++)t(d[f]).ea=null;e.oa=null;d.length>e.assignedNodes.length&&(e.ga=!0)}e.ga&&(e.ga=!1,Zc(this,c))}c=this.g;b=[];for(e=0;e<c.length;e++)d=c[e].__shady_parentNode,(f=t(d))&&f.root||!(0>b.indexOf(d))||b.push(d);for(c=0;c<b.length;c++){f=b[c];e=f===this?this.host:f;d=[];for(f=f.__shady_firstChild;f;f=f.__shady_nextSibling)if("slot"==f.localName)for(var g=t(f).L,h=0;h<
103
+ g.length;h++)d.push(g[h]);else d.push(f);f=sa(e);g=Jb(d,d.length,f,f.length);for(var k=h=0,l=void 0;h<g.length&&(l=g[h]);h++){for(var m=0,q=void 0;m<l.P.length&&(q=l.P[m]);m++)q.__shady_native_parentNode===e&&e.__shady_native_removeChild(q),f.splice(l.index+k,1);k-=l.X}k=0;for(l=void 0;k<g.length&&(l=g[k]);k++)for(h=f[l.index],m=l.index;m<l.index+l.X;m++)q=d[m],e.__shady_native_insertBefore(q,h),f.splice(m,0,q)}}if(!u.preferPerformance&&!this.na)for(b=this.host.__shady_firstChild;b;b=b.__shady_nextSibling)c=
104
+ t(b),b.__shady_native_parentNode!==this.host||"slot"!==b.localName&&c.assignedSlot||this.host.__shady_native_removeChild(b);this.na=!0;J=a;Vc&&Vc()};function Xc(a,b,c){var d=r(b),e=d.ea;d.ea=null;c||(c=(a=a.h[b.__shady_slot||"__catchall"])&&a[0]);c?(r(c).assignedNodes.push(b),d.assignedSlot=c):d.assignedSlot=void 0;e!==d.assignedSlot&&d.assignedSlot&&(r(d.assignedSlot).ga=!0)}
105
+ function Yc(a,b,c){for(var d=0,e=void 0;d<c.length&&(e=c[d]);d++)if("slot"==e.localName){var f=t(e).assignedNodes;f&&f.length&&Yc(a,b,f)}else b.push(c[d])}function Zc(a,b){b.__shady_native_dispatchEvent(new Event("slotchange"));b=t(b);b.assignedSlot&&Zc(a,b.assignedSlot)}function ac(a){a.i=a.i||[];a.g=a.g||[];a.h=a.h||{}}
106
+ function qc(a){if(a.i&&a.i.length){for(var b=a.i,c,d=0;d<b.length;d++){var e=b[d];vc(e);var f=e.__shady_parentNode;vc(f);f=t(f);f.S=(f.S||0)+1;f=rc(e);a.h[f]?(c=c||{},c[f]=!0,a.h[f].push(e)):a.h[f]=[e];a.g.push(e)}if(c)for(var g in c)a.h[g]=sc(a.h[g]);a.i=[]}}function rc(a){var b=a.name||a.getAttribute("name")||"__catchall";return a.ya=b}
107
+ function sc(a){return a.sort(function(b,c){b=Wc(b);for(var d=Wc(c),e=0;e<b.length;e++){c=b[e];var f=d[e];if(c!==f)return b=ta(c.__shady_parentNode),b.indexOf(c)-b.indexOf(f)}})}
108
+ function cc(a,b){if(a.g){qc(a);var c=a.h,d;for(d in c)for(var e=c[d],f=0;f<e.length;f++){var g=e[f];if(qa(b,g)){e.splice(f,1);var h=a.g.indexOf(g);0<=h&&(a.g.splice(h,1),(h=t(g.__shady_parentNode))&&h.S&&h.S--);f--;g=t(g);if(h=g.L)for(var k=0;k<h.length;k++){var l=h[k],m=l.__shady_native_parentNode;m&&m.__shady_native_removeChild(l)}g.L=[];g.assignedNodes=[];h=!0}}return h}}function ja(a){qc(a);return!(!a.g||!a.g.length)}
109
+ (function(a){a.__proto__=DocumentFragment.prototype;Uc(a,"__shady_");Uc(a);Object.defineProperties(a,{nodeType:{value:Node.DOCUMENT_FRAGMENT_NODE,configurable:!0},nodeName:{value:"#document-fragment",configurable:!0},nodeValue:{value:null,configurable:!0}});["localName","namespaceURI","prefix"].forEach(function(b){Object.defineProperty(a,b,{value:void 0,configurable:!0})});["ownerDocument","baseURI","isConnected"].forEach(function(b){Object.defineProperty(a,b,{get:function(){return this.host[b]},
110
+ configurable:!0})})})(wc.prototype);
111
+ if(window.customElements&&window.customElements.define&&u.ha&&!u.preferPerformance){var $c=new Map;Vc=function(){var a=[];$c.forEach(function(d,e){a.push([e,d])});$c.clear();for(var b=0;b<a.length;b++){var c=a[b][0];a[b][1]?c.__shadydom_connectedCallback():c.__shadydom_disconnectedCallback()}};J&&document.addEventListener("readystatechange",function(){J=!1;Vc()},{once:!0});var ad=function(a,b,c){var d=0,e="__isConnected"+d++;if(b||c)a.prototype.connectedCallback=a.prototype.__shadydom_connectedCallback=
112
+ function(){J?$c.set(this,!0):this[e]||(this[e]=!0,b&&b.call(this))},a.prototype.disconnectedCallback=a.prototype.__shadydom_disconnectedCallback=function(){J?this.isConnected||$c.set(this,!1):this[e]&&(this[e]=!1,c&&c.call(this))};return a},bd=window.customElements.define,cd=function(a,b){var c=b.prototype.connectedCallback,d=b.prototype.disconnectedCallback;bd.call(window.customElements,a,ad(b,c,d));b.prototype.connectedCallback=c;b.prototype.disconnectedCallback=d};window.customElements.define=
113
+ cd;Object.defineProperty(window.CustomElementRegistry.prototype,"define",{value:cd,configurable:!0})}function $b(a){a=a.__shady_getRootNode();if(x(a))return a};function dd(a){this.node=a}n=dd.prototype;n.addEventListener=function(a,b,c){return this.node.__shady_addEventListener(a,b,c)};n.removeEventListener=function(a,b,c){return this.node.__shady_removeEventListener(a,b,c)};n.appendChild=function(a){return this.node.__shady_appendChild(a)};n.insertBefore=function(a,b){return this.node.__shady_insertBefore(a,b)};n.removeChild=function(a){return this.node.__shady_removeChild(a)};n.replaceChild=function(a,b){return this.node.__shady_replaceChild(a,b)};
114
+ n.cloneNode=function(a){return this.node.__shady_cloneNode(a)};n.getRootNode=function(a){return this.node.__shady_getRootNode(a)};n.contains=function(a){return this.node.__shady_contains(a)};n.dispatchEvent=function(a){return this.node.__shady_dispatchEvent(a)};n.setAttribute=function(a,b){this.node.__shady_setAttribute(a,b)};n.getAttribute=function(a){return this.node.__shady_native_getAttribute(a)};n.removeAttribute=function(a){this.node.__shady_removeAttribute(a)};n.attachShadow=function(a){return this.node.__shady_attachShadow(a)};
115
+ n.focus=function(){this.node.__shady_native_focus()};n.blur=function(){this.node.__shady_blur()};n.importNode=function(a,b){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_importNode(a,b)};n.getElementById=function(a){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_getElementById(a)};n.elementsFromPoint=function(a,b){return this.node.__shady_elementsFromPoint(a,b)};n.elementFromPoint=function(a,b){return this.node.__shady_elementFromPoint(a,b)};
116
+ n.querySelector=function(a){return this.node.__shady_querySelector(a)};n.querySelectorAll=function(a,b){return this.node.__shady_querySelectorAll(a,b)};n.assignedNodes=function(a){if("slot"===this.node.localName)return this.node.__shady_assignedNodes(a)};n.append=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];return this.node.__shady_append.apply(this.node,p(b))};
117
+ n.prepend=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];return this.node.__shady_prepend.apply(this.node,p(b))};n.after=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];return this.node.__shady_after.apply(this.node,p(b))};n.before=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];return this.node.__shady_before.apply(this.node,p(b))};n.remove=function(){return this.node.__shady_remove()};
118
+ n.replaceWith=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];return this.node.__shady_replaceWith.apply(this.node,p(b))};
119
+ da.Object.defineProperties(dd.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){if(x(this.node)||this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_activeElement}},_activeElement:{configurable:!0,enumerable:!0,get:function(){return this.activeElement}},host:{configurable:!0,enumerable:!0,get:function(){if(x(this.node))return this.node.host}},parentNode:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_parentNode}},firstChild:{configurable:!0,
132
120
  enumerable:!0,get:function(){return this.node.__shady_firstChild}},lastChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_lastChild}},nextSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_nextSibling}},previousSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_previousSibling}},childNodes:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_childNodes}},parentElement:{configurable:!0,enumerable:!0,
133
121
  get:function(){return this.node.__shady_parentElement}},firstElementChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_firstElementChild}},lastElementChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_lastElementChild}},nextElementSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_nextElementSibling}},previousElementSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_previousElementSibling}},
134
122
  children:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_children}},childElementCount:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_childElementCount}},shadowRoot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_shadowRoot}},assignedSlot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_assignedSlot}},isConnected:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_isConnected}},innerHTML:{configurable:!0,
135
123
  enumerable:!0,get:function(){return this.node.__shady_innerHTML},set:function(a){this.node.__shady_innerHTML=a}},textContent:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_textContent},set:function(a){this.node.__shady_textContent=a}},slot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_slot},set:function(a){this.node.__shady_slot=a}},className:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_className},set:function(a){this.node.__shady_className=
136
- a}}});function qd(a){Object.defineProperty(pd.prototype,a,{get:function(){return this.node["__shady_"+a]},set:function(b){this.node["__shady_"+a]=b},configurable:!0})}Nb.forEach(function(a){return qd(a)});Ob.forEach(function(a){return qd(a)});var rd=new WeakMap;function sd(a){if(y(a)||a instanceof pd)return a;var b=rd.get(a);b||(b=new pd(a),rd.set(a,b));return b};if(w.ka){var td=w.j?function(a){return a}:function(a){jb(a);ib(a);return a},ShadyDOM={inUse:w.ka,patch:td,isShadyRoot:y,enqueue:Fa,flush:Ga,flushInitial:function(a){!a.qa&&a.K&&nc(a)},settings:w,filterMutations:La,observeChildren:Ja,unobserveChildren:Ka,deferConnectionCallbacks:w.deferConnectionCallbacks,preferPerformance:w.preferPerformance,handlesDynamicScoping:!0,wrap:w.s?sd:td,wrapIfNeeded:!0===w.s?sd:function(a){return a},Wrapper:pd,composedPath:sb,noPatch:w.s,patchOnDemand:w.ma,nativeMethods:Ua,
137
- nativeTree:Va,patchElementProto:$c,querySelectorImplementation:w.querySelectorImplementation};window.ShadyDOM=ShadyDOM;bb();Zc("__shady_");Object.defineProperty(document,"_activeElement",Tc.activeElement);z(Window.prototype,Wc,"__shady_");w.s?w.ma&&z(Element.prototype,Kc):(Zc(),Mb());Hb();window.Event=Jb;window.CustomEvent=Kb;window.MouseEvent=Lb;window.ShadowRoot=Ic};/*
124
+ a}}});function ed(a){Object.defineProperty(dd.prototype,a,{get:function(){return this.node["__shady_"+a]},set:function(b){this.node["__shady_"+a]=b},configurable:!0})}Fb.forEach(function(a){return ed(a)});Gb.forEach(function(a){return ed(a)});var fd=new WeakMap;function gd(a){if(x(a)||a instanceof dd)return a;var b=fd.get(a);b||(b=new dd(a),fd.set(a,b));return b};if(u.ha){var hd=u.m?function(a){return a}:function(a){eb(a);db(a);return a},ShadyDOM={inUse:u.ha,patch:hd,isShadyRoot:x,enqueue:Aa,flush:Ba,flushInitial:function(a){!a.na&&a.K&&fc(a)},settings:u,filterMutations:Ga,observeChildren:Ea,unobserveChildren:Fa,deferConnectionCallbacks:u.deferConnectionCallbacks,preferPerformance:u.preferPerformance,handlesDynamicScoping:!0,wrap:u.s?gd:hd,wrapIfNeeded:!0===u.s?gd:function(a){return a},Wrapper:dd,composedPath:nb,noPatch:u.s,patchOnDemand:u.ja,nativeMethods:Pa,
125
+ nativeTree:Qa,patchElementProto:Oc};window.ShadyDOM=ShadyDOM;Xa();Nc("__shady_");Object.defineProperty(document,"_activeElement",Hc.activeElement);z(Window.prototype,Kc,"__shady_");u.s?u.ja&&z(Element.prototype,yc):(Nc(),Eb());zb();window.Event=Bb;window.CustomEvent=Cb;window.MouseEvent=Db;window.ShadowRoot=wc};/*
138
126
 
139
127
  Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
140
128
  This code may only be used under the BSD style license found at
@@ -144,39 +132,39 @@ nativeTree:Va,patchElementProto:$c,querySelectorImplementation:w.querySelectorIm
144
132
  Google as part of the polymer project is also subject to an additional IP
145
133
  rights grant found at http://polymer.github.io/PATENTS.txt
146
134
  */
147
- var ud=window.Document.prototype.createElement,vd=window.Document.prototype.createElementNS,wd=window.Document.prototype.importNode,xd=window.Document.prototype.prepend,yd=window.Document.prototype.append,zd=window.DocumentFragment.prototype.prepend,Ad=window.DocumentFragment.prototype.append,Bd=window.Node.prototype.cloneNode,Cd=window.Node.prototype.appendChild,Dd=window.Node.prototype.insertBefore,Ed=window.Node.prototype.removeChild,Fd=window.Node.prototype.replaceChild,Gd=Object.getOwnPropertyDescriptor(window.Node.prototype,
148
- "textContent"),Hd=window.Element.prototype.attachShadow,Id=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),Jd=window.Element.prototype.getAttribute,Kd=window.Element.prototype.setAttribute,Ld=window.Element.prototype.removeAttribute,Md=window.Element.prototype.toggleAttribute,Nd=window.Element.prototype.getAttributeNS,Od=window.Element.prototype.setAttributeNS,Pd=window.Element.prototype.removeAttributeNS,Qd=window.Element.prototype.insertAdjacentElement,Rd=window.Element.prototype.insertAdjacentHTML,
149
- Sd=window.Element.prototype.prepend,Td=window.Element.prototype.append,Ud=window.Element.prototype.before,Vd=window.Element.prototype.after,Wd=window.Element.prototype.replaceWith,Xd=window.Element.prototype.remove,Yd=window.HTMLElement,Zd=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),$d=window.HTMLElement.prototype.insertAdjacentElement,ae=window.HTMLElement.prototype.insertAdjacentHTML;var be=new Set;"annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ").forEach(function(a){return be.add(a)});function ce(a){var b=be.has(a);a=/^[a-z][.0-9_a-z]*-[-.0-9_a-z]*$/.test(a);return!b&&a}var de=document.contains?document.contains.bind(document):document.documentElement.contains.bind(document.documentElement);
150
- function K(a){var b=a.isConnected;if(void 0!==b)return b;if(de(a))return!0;for(;a&&!(a.__CE_isImportDocument||a instanceof Document);)a=a.parentNode||(window.ShadowRoot&&a instanceof ShadowRoot?a.host:void 0);return!(!a||!(a.__CE_isImportDocument||a instanceof Document))}function ee(a){var b=a.children;if(b)return Array.prototype.slice.call(b);b=[];for(a=a.firstChild;a;a=a.nextSibling)a.nodeType===Node.ELEMENT_NODE&&b.push(a);return b}
151
- function fe(a,b){for(;b&&b!==a&&!b.nextSibling;)b=b.parentNode;return b&&b!==a?b.nextSibling:null}
152
- function ge(a,b,c){for(var d=a;d;){if(d.nodeType===Node.ELEMENT_NODE){var e=d;b(e);var f=e.localName;if("link"===f&&"import"===e.getAttribute("rel")){d=e.import;void 0===c&&(c=new Set);if(d instanceof Node&&!c.has(d))for(c.add(d),d=d.firstChild;d;d=d.nextSibling)ge(d,b,c);d=fe(a,e);continue}else if("template"===f){d=fe(a,e);continue}if(e=e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)ge(e,b,c)}d=d.firstChild?d.firstChild:fe(a,d)}};function he(){var a=!(null===L||void 0===L||!L.noDocumentConstructionObserver),b=!(null===L||void 0===L||!L.shadyDomFastWalk);this.M=[];this.g=[];this.I=!1;this.shadyDomFastWalk=b;this.Wa=!a}function ie(a,b,c,d){var e=window.ShadyDOM;if(a.shadyDomFastWalk&&e&&e.inUse){if(b.nodeType===Node.ELEMENT_NODE&&c(b),b.querySelectorAll)for(a=e.nativeMethods.querySelectorAll.call(b,"*"),b=0;b<a.length;b++)c(a[b])}else ge(b,c,d)}function je(a,b){a.I=!0;a.M.push(b)}function ke(a,b){a.I=!0;a.g.push(b)}
153
- function le(a,b){a.I&&ie(a,b,function(c){return me(a,c)})}function me(a,b){if(a.I&&!b.__CE_patched){b.__CE_patched=!0;for(var c=0;c<a.M.length;c++)a.M[c](b);for(c=0;c<a.g.length;c++)a.g[c](b)}}function M(a,b){var c=[];ie(a,b,function(e){return c.push(e)});for(b=0;b<c.length;b++){var d=c[b];1===d.__CE_state?a.connectedCallback(d):ne(a,d)}}function N(a,b){var c=[];ie(a,b,function(e){return c.push(e)});for(b=0;b<c.length;b++){var d=c[b];1===d.__CE_state&&a.disconnectedCallback(d)}}
154
- function O(a,b,c){c=void 0===c?{}:c;var d=c.Xa,e=c.upgrade||function(g){return ne(a,g)},f=[];ie(a,b,function(g){a.I&&me(a,g);if("link"===g.localName&&"import"===g.getAttribute("rel")){var h=g.import;h instanceof Node&&(h.__CE_isImportDocument=!0,h.__CE_registry=document.__CE_registry);h&&"complete"===h.readyState?h.__CE_documentLoadHandled=!0:g.addEventListener("load",function(){var k=g.import;if(!k.__CE_documentLoadHandled){k.__CE_documentLoadHandled=!0;var l=new Set;d&&(d.forEach(function(m){return l.add(m)}),
155
- l.delete(k));O(a,k,{Xa:l,upgrade:e})}})}else f.push(g)},d);for(b=0;b<f.length;b++)e(f[b])}
156
- function ne(a,b){try{var c=b.ownerDocument,d=c.__CE_registry;var e=d&&(c.defaultView||c.__CE_isImportDocument)?oe(d,b.localName):void 0;if(e&&void 0===b.__CE_state){e.constructionStack.push(b);try{try{if(new e.constructorFunction!==b)throw Error("The custom element constructor did not produce the element being upgraded.");}finally{e.constructionStack.pop()}}catch(k){throw b.__CE_state=2,k;}b.__CE_state=1;b.__CE_definition=e;if(e.attributeChangedCallback&&b.hasAttributes()){var f=e.observedAttributes;
157
- for(e=0;e<f.length;e++){var g=f[e],h=b.getAttribute(g);null!==h&&a.attributeChangedCallback(b,g,null,h,null)}}K(b)&&a.connectedCallback(b)}}catch(k){pe(k)}}he.prototype.connectedCallback=function(a){var b=a.__CE_definition;if(b.connectedCallback)try{b.connectedCallback.call(a)}catch(c){pe(c)}};he.prototype.disconnectedCallback=function(a){var b=a.__CE_definition;if(b.disconnectedCallback)try{b.disconnectedCallback.call(a)}catch(c){pe(c)}};
158
- he.prototype.attributeChangedCallback=function(a,b,c,d,e){var f=a.__CE_definition;if(f.attributeChangedCallback&&-1<f.observedAttributes.indexOf(b))try{f.attributeChangedCallback.call(a,b,c,d,e)}catch(g){pe(g)}};
159
- function qe(a,b,c,d){var e=b.__CE_registry;if(e&&(null===d||"http://www.w3.org/1999/xhtml"===d)&&(e=oe(e,c)))try{var f=new e.constructorFunction;if(void 0===f.__CE_state||void 0===f.__CE_definition)throw Error("Failed to construct '"+c+"': The returned value was not constructed with the HTMLElement constructor.");if("http://www.w3.org/1999/xhtml"!==f.namespaceURI)throw Error("Failed to construct '"+c+"': The constructed element's namespace must be the HTML namespace.");if(f.hasAttributes())throw Error("Failed to construct '"+
135
+ var id=window.Document.prototype.createElement,jd=window.Document.prototype.createElementNS,kd=window.Document.prototype.importNode,ld=window.Document.prototype.prepend,md=window.Document.prototype.append,nd=window.DocumentFragment.prototype.prepend,od=window.DocumentFragment.prototype.append,pd=window.Node.prototype.cloneNode,qd=window.Node.prototype.appendChild,rd=window.Node.prototype.insertBefore,sd=window.Node.prototype.removeChild,td=window.Node.prototype.replaceChild,ud=Object.getOwnPropertyDescriptor(window.Node.prototype,
136
+ "textContent"),vd=window.Element.prototype.attachShadow,wd=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),xd=window.Element.prototype.getAttribute,yd=window.Element.prototype.setAttribute,zd=window.Element.prototype.removeAttribute,Ad=window.Element.prototype.getAttributeNS,Bd=window.Element.prototype.setAttributeNS,Cd=window.Element.prototype.removeAttributeNS,Dd=window.Element.prototype.insertAdjacentElement,Ed=window.Element.prototype.insertAdjacentHTML,Fd=window.Element.prototype.prepend,
137
+ Gd=window.Element.prototype.append,Hd=window.Element.prototype.before,Id=window.Element.prototype.after,Jd=window.Element.prototype.replaceWith,Kd=window.Element.prototype.remove,Ld=window.HTMLElement,Md=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Nd=window.HTMLElement.prototype.insertAdjacentElement,Od=window.HTMLElement.prototype.insertAdjacentHTML;var Pd=new Set;"annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ").forEach(function(a){return Pd.add(a)});function Qd(a){var b=Pd.has(a);a=/^[a-z][.0-9_a-z]*-[-.0-9_a-z]*$/.test(a);return!b&&a}var Rd=document.contains?document.contains.bind(document):document.documentElement.contains.bind(document.documentElement);
138
+ function K(a){var b=a.isConnected;if(void 0!==b)return b;if(Rd(a))return!0;for(;a&&!(a.__CE_isImportDocument||a instanceof Document);)a=a.parentNode||(window.ShadowRoot&&a instanceof ShadowRoot?a.host:void 0);return!(!a||!(a.__CE_isImportDocument||a instanceof Document))}function Sd(a){var b=a.children;if(b)return Array.prototype.slice.call(b);b=[];for(a=a.firstChild;a;a=a.nextSibling)a.nodeType===Node.ELEMENT_NODE&&b.push(a);return b}
139
+ function Td(a,b){for(;b&&b!==a&&!b.nextSibling;)b=b.parentNode;return b&&b!==a?b.nextSibling:null}
140
+ function Ud(a,b,c){for(var d=a;d;){if(d.nodeType===Node.ELEMENT_NODE){var e=d;b(e);var f=e.localName;if("link"===f&&"import"===e.getAttribute("rel")){d=e.import;void 0===c&&(c=new Set);if(d instanceof Node&&!c.has(d))for(c.add(d),d=d.firstChild;d;d=d.nextSibling)Ud(d,b,c);d=Td(a,e);continue}else if("template"===f){d=Td(a,e);continue}if(e=e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)Ud(e,b,c)}d=d.firstChild?d.firstChild:Td(a,d)}};function Vd(){var a=!(null===L||void 0===L||!L.noDocumentConstructionObserver),b=!(null===L||void 0===L||!L.shadyDomFastWalk);this.M=[];this.g=[];this.I=!1;this.shadyDomFastWalk=b;this.Ra=!a}function Wd(a,b,c,d){var e=window.ShadyDOM;if(a.shadyDomFastWalk&&e&&e.inUse){if(b.nodeType===Node.ELEMENT_NODE&&c(b),b.querySelectorAll)for(a=e.nativeMethods.querySelectorAll.call(b,"*"),b=0;b<a.length;b++)c(a[b])}else Ud(b,c,d)}function Xd(a,b){a.I=!0;a.M.push(b)}function Yd(a,b){a.I=!0;a.g.push(b)}
141
+ function Zd(a,b){a.I&&Wd(a,b,function(c){return $d(a,c)})}function $d(a,b){if(a.I&&!b.__CE_patched){b.__CE_patched=!0;for(var c=0;c<a.M.length;c++)a.M[c](b);for(c=0;c<a.g.length;c++)a.g[c](b)}}function M(a,b){var c=[];Wd(a,b,function(e){return c.push(e)});for(b=0;b<c.length;b++){var d=c[b];1===d.__CE_state?a.connectedCallback(d):ae(a,d)}}function N(a,b){var c=[];Wd(a,b,function(e){return c.push(e)});for(b=0;b<c.length;b++){var d=c[b];1===d.__CE_state&&a.disconnectedCallback(d)}}
142
+ function O(a,b,c){c=void 0===c?{}:c;var d=c.Sa,e=c.upgrade||function(g){return ae(a,g)},f=[];Wd(a,b,function(g){a.I&&$d(a,g);if("link"===g.localName&&"import"===g.getAttribute("rel")){var h=g.import;h instanceof Node&&(h.__CE_isImportDocument=!0,h.__CE_registry=document.__CE_registry);h&&"complete"===h.readyState?h.__CE_documentLoadHandled=!0:g.addEventListener("load",function(){var k=g.import;if(!k.__CE_documentLoadHandled){k.__CE_documentLoadHandled=!0;var l=new Set;d&&(d.forEach(function(m){return l.add(m)}),
143
+ l.delete(k));O(a,k,{Sa:l,upgrade:e})}})}else f.push(g)},d);for(b=0;b<f.length;b++)e(f[b])}
144
+ function ae(a,b){try{var c=b.ownerDocument,d=c.__CE_registry;var e=d&&(c.defaultView||c.__CE_isImportDocument)?be(d,b.localName):void 0;if(e&&void 0===b.__CE_state){e.constructionStack.push(b);try{try{if(new e.constructorFunction!==b)throw Error("The custom element constructor did not produce the element being upgraded.");}finally{e.constructionStack.pop()}}catch(k){throw b.__CE_state=2,k;}b.__CE_state=1;b.__CE_definition=e;if(e.attributeChangedCallback&&b.hasAttributes()){var f=e.observedAttributes;
145
+ for(e=0;e<f.length;e++){var g=f[e],h=b.getAttribute(g);null!==h&&a.attributeChangedCallback(b,g,null,h,null)}}K(b)&&a.connectedCallback(b)}}catch(k){ce(k)}}Vd.prototype.connectedCallback=function(a){var b=a.__CE_definition;if(b.connectedCallback)try{b.connectedCallback.call(a)}catch(c){ce(c)}};Vd.prototype.disconnectedCallback=function(a){var b=a.__CE_definition;if(b.disconnectedCallback)try{b.disconnectedCallback.call(a)}catch(c){ce(c)}};
146
+ Vd.prototype.attributeChangedCallback=function(a,b,c,d,e){var f=a.__CE_definition;if(f.attributeChangedCallback&&-1<f.observedAttributes.indexOf(b))try{f.attributeChangedCallback.call(a,b,c,d,e)}catch(g){ce(g)}};
147
+ function de(a,b,c,d){var e=b.__CE_registry;if(e&&(null===d||"http://www.w3.org/1999/xhtml"===d)&&(e=be(e,c)))try{var f=new e.constructorFunction;if(void 0===f.__CE_state||void 0===f.__CE_definition)throw Error("Failed to construct '"+c+"': The returned value was not constructed with the HTMLElement constructor.");if("http://www.w3.org/1999/xhtml"!==f.namespaceURI)throw Error("Failed to construct '"+c+"': The constructed element's namespace must be the HTML namespace.");if(f.hasAttributes())throw Error("Failed to construct '"+
160
148
  c+"': The constructed element must not have any attributes.");if(null!==f.firstChild)throw Error("Failed to construct '"+c+"': The constructed element must not have any children.");if(null!==f.parentNode)throw Error("Failed to construct '"+c+"': The constructed element must not have a parent node.");if(f.ownerDocument!==b)throw Error("Failed to construct '"+c+"': The constructed element's owner document is incorrect.");if(f.localName!==c)throw Error("Failed to construct '"+c+"': The constructed element's local name is incorrect.");
161
- return f}catch(g){return pe(g),b=null===d?ud.call(b,c):vd.call(b,d,c),Object.setPrototypeOf(b,HTMLUnknownElement.prototype),b.__CE_state=2,b.__CE_definition=void 0,me(a,b),b}b=null===d?ud.call(b,c):vd.call(b,d,c);me(a,b);return b}
162
- function pe(a){var b="",c="",d=0,e=0;a instanceof Error?(b=a.message,c=a.sourceURL||a.fileName||"",d=a.line||a.lineNumber||0,e=a.column||a.columnNumber||0):b="Uncaught "+String(a);var f=void 0;void 0===ErrorEvent.prototype.initErrorEvent?f=new ErrorEvent("error",{cancelable:!0,message:b,filename:c,lineno:d,colno:e,error:a}):(f=document.createEvent("ErrorEvent"),f.initErrorEvent("error",!1,!0,b,c,d),f.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{configurable:!0,get:function(){return!0}})});
163
- void 0===f.error&&Object.defineProperty(f,"error",{configurable:!0,enumerable:!0,get:function(){return a}});window.dispatchEvent(f);f.defaultPrevented||console.error(a)};function re(){var a=this;this.g=void 0;this.sa=new Promise(function(b){a.h=b})}re.prototype.resolve=function(a){if(this.g)throw Error("Already resolved.");this.g=a;this.h(a)};function se(a){var b=document;this.J=void 0;this.D=a;this.g=b;O(this.D,this.g);"loading"===this.g.readyState&&(this.J=new MutationObserver(this.h.bind(this)),this.J.observe(this.g,{childList:!0,subtree:!0}))}function te(a){a.J&&a.J.disconnect()}se.prototype.h=function(a){var b=this.g.readyState;"interactive"!==b&&"complete"!==b||te(this);for(b=0;b<a.length;b++)for(var c=a[b].addedNodes,d=0;d<c.length;d++)O(this.D,c[d])};function P(a){this.W=new Map;this.X=new Map;this.oa=new Map;this.ga=!1;this.ia=new Map;this.V=function(b){return b()};this.H=!1;this.Y=[];this.D=a;this.pa=a.Wa?new se(a):void 0}n=P.prototype;n.Na=function(a,b){var c=this;if(!(b instanceof Function))throw new TypeError("Custom element constructor getters must be functions.");ue(this,a);this.W.set(a,b);this.Y.push(a);this.H||(this.H=!0,this.V(function(){return ve(c)}))};
164
- n.define=function(a,b){var c=this;if(!(b instanceof Function))throw new TypeError("Custom element constructors must be functions.");ue(this,a);we(this,a,b);this.Y.push(a);this.H||(this.H=!0,this.V(function(){return ve(c)}))};function ue(a,b){if(!ce(b))throw new SyntaxError("The element name '"+b+"' is not valid.");if(oe(a,b))throw Error("A custom element with name '"+(b+"' has already been defined."));if(a.ga)throw Error("A custom element is already being defined.");}
165
- function we(a,b,c){a.ga=!0;var d;try{var e=c.prototype;if(!(e instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var f=function(m){var q=e[m];if(void 0!==q&&!(q instanceof Function))throw Error("The '"+m+"' callback must be a function.");return q};var g=f("connectedCallback");var h=f("disconnectedCallback");var k=f("adoptedCallback");var l=(d=f("attributeChangedCallback"))&&c.observedAttributes||[]}catch(m){throw m;}finally{a.ga=!1}c={localName:b,
166
- constructorFunction:c,connectedCallback:g,disconnectedCallback:h,adoptedCallback:k,attributeChangedCallback:d,observedAttributes:l,constructionStack:[]};a.X.set(b,c);a.oa.set(c.constructorFunction,c);return c}n.upgrade=function(a){O(this.D,a)};
167
- function ve(a){if(!1!==a.H){a.H=!1;for(var b=[],c=a.Y,d=new Map,e=0;e<c.length;e++)d.set(c[e],[]);O(a.D,document,{upgrade:function(k){if(void 0===k.__CE_state){var l=k.localName,m=d.get(l);m?m.push(k):a.X.has(l)&&b.push(k)}}});for(e=0;e<b.length;e++)ne(a.D,b[e]);for(e=0;e<c.length;e++){for(var f=c[e],g=d.get(f),h=0;h<g.length;h++)ne(a.D,g[h]);(f=a.ia.get(f))&&f.resolve(void 0)}c.length=0}}n.get=function(a){if(a=oe(this,a))return a.constructorFunction};
168
- n.whenDefined=function(a){if(!ce(a))return Promise.reject(new SyntaxError("'"+a+"' is not a valid custom element name."));var b=this.ia.get(a);if(b)return b.sa;b=new re;this.ia.set(a,b);var c=this.X.has(a)||this.W.has(a);a=-1===this.Y.indexOf(a);c&&a&&b.resolve(void 0);return b.sa};n.polyfillWrapFlushCallback=function(a){this.pa&&te(this.pa);var b=this.V;this.V=function(c){return a(function(){return b(c)})}};
169
- function oe(a,b){var c=a.X.get(b);if(c)return c;if(c=a.W.get(b)){a.W.delete(b);try{return we(a,b,c())}catch(d){pe(d)}}}P.prototype.define=P.prototype.define;P.prototype.upgrade=P.prototype.upgrade;P.prototype.get=P.prototype.get;P.prototype.whenDefined=P.prototype.whenDefined;P.prototype.polyfillDefineLazy=P.prototype.Na;P.prototype.polyfillWrapFlushCallback=P.prototype.polyfillWrapFlushCallback;function xe(a,b,c){function d(e){return function(f){for(var g=[],h=0;h<arguments.length;++h)g[h]=arguments[h];h=[];for(var k=[],l=0;l<g.length;l++){var m=g[l];m instanceof Element&&K(m)&&k.push(m);if(m instanceof DocumentFragment)for(m=m.firstChild;m;m=m.nextSibling)h.push(m);else h.push(m)}e.apply(this,g);for(g=0;g<k.length;g++)N(a,k[g]);if(K(this))for(g=0;g<h.length;g++)k=h[g],k instanceof Element&&M(a,k)}}void 0!==c.prepend&&(b.prepend=d(c.prepend));void 0!==c.append&&(b.append=d(c.append))};function ye(a){Document.prototype.createElement=function(b){return qe(a,this,b,null)};Document.prototype.importNode=function(b,c){b=wd.call(this,b,!!c);this.__CE_registry?O(a,b):le(a,b);return b};Document.prototype.createElementNS=function(b,c){return qe(a,this,c,b)};xe(a,Document.prototype,{prepend:xd,append:yd})};function ze(a){function b(d){return function(e){for(var f=[],g=0;g<arguments.length;++g)f[g]=arguments[g];g=[];for(var h=[],k=0;k<f.length;k++){var l=f[k];l instanceof Element&&K(l)&&h.push(l);if(l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)g.push(l);else g.push(l)}d.apply(this,f);for(f=0;f<h.length;f++)N(a,h[f]);if(K(this))for(f=0;f<g.length;f++)h=g[f],h instanceof Element&&M(a,h)}}var c=Element.prototype;void 0!==Ud&&(c.before=b(Ud));void 0!==Vd&&(c.after=b(Vd));void 0!==Wd&&
170
- (c.replaceWith=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f]=arguments[f];f=[];for(var g=[],h=0;h<e.length;h++){var k=e[h];k instanceof Element&&K(k)&&g.push(k);if(k instanceof DocumentFragment)for(k=k.firstChild;k;k=k.nextSibling)f.push(k);else f.push(k)}h=K(this);Wd.apply(this,e);for(e=0;e<g.length;e++)N(a,g[e]);if(h)for(N(a,this),e=0;e<f.length;e++)g=f[e],g instanceof Element&&M(a,g)});void 0!==Xd&&(c.remove=function(){var d=K(this);Xd.call(this);d&&N(a,this)})};function Ae(a){function b(e,f){Object.defineProperty(e,"innerHTML",{enumerable:f.enumerable,configurable:!0,get:f.get,set:function(g){var h=this,k=void 0;K(this)&&(k=[],ie(a,this,function(q){q!==h&&k.push(q)}));f.set.call(this,g);if(k)for(var l=0;l<k.length;l++){var m=k[l];1===m.__CE_state&&a.disconnectedCallback(m)}this.ownerDocument.__CE_registry?O(a,this):le(a,this);return g}})}function c(e,f){e.insertAdjacentElement=function(g,h){var k=K(h);g=f.call(this,g,h);k&&N(a,h);K(g)&&M(a,h);return g}}
149
+ return f}catch(g){return ce(g),b=null===d?id.call(b,c):jd.call(b,d,c),Object.setPrototypeOf(b,HTMLUnknownElement.prototype),b.__CE_state=2,b.__CE_definition=void 0,$d(a,b),b}b=null===d?id.call(b,c):jd.call(b,d,c);$d(a,b);return b}
150
+ function ce(a){var b=a.message,c=a.sourceURL||a.fileName||"",d=a.line||a.lineNumber||0,e=a.column||a.columnNumber||0,f=void 0;void 0===ErrorEvent.prototype.initErrorEvent?f=new ErrorEvent("error",{cancelable:!0,message:b,filename:c,lineno:d,colno:e,error:a}):(f=document.createEvent("ErrorEvent"),f.initErrorEvent("error",!1,!0,b,c,d),f.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{configurable:!0,get:function(){return!0}})});void 0===f.error&&Object.defineProperty(f,"error",
151
+ {configurable:!0,enumerable:!0,get:function(){return a}});window.dispatchEvent(f);f.defaultPrevented||console.error(a)};function ee(){var a=this;this.g=void 0;this.pa=new Promise(function(b){a.h=b})}ee.prototype.resolve=function(a){if(this.g)throw Error("Already resolved.");this.g=a;this.h(a)};function fe(a){var b=document;this.J=void 0;this.D=a;this.g=b;O(this.D,this.g);"loading"===this.g.readyState&&(this.J=new MutationObserver(this.h.bind(this)),this.J.observe(this.g,{childList:!0,subtree:!0}))}function ge(a){a.J&&a.J.disconnect()}fe.prototype.h=function(a){var b=this.g.readyState;"interactive"!==b&&"complete"!==b||ge(this);for(b=0;b<a.length;b++)for(var c=a[b].addedNodes,d=0;d<c.length;d++)O(this.D,c[d])};function P(a){this.U=new Map;this.V=new Map;this.la=new Map;this.da=!1;this.fa=new Map;this.T=function(b){return b()};this.H=!1;this.W=[];this.D=a;this.ma=a.Ra?new fe(a):void 0}n=P.prototype;n.Ia=function(a,b){var c=this;if(!(b instanceof Function))throw new TypeError("Custom element constructor getters must be functions.");he(this,a);this.U.set(a,b);this.W.push(a);this.H||(this.H=!0,this.T(function(){return ie(c)}))};
152
+ n.define=function(a,b){var c=this;if(!(b instanceof Function))throw new TypeError("Custom element constructors must be functions.");he(this,a);je(this,a,b);this.W.push(a);this.H||(this.H=!0,this.T(function(){return ie(c)}))};function he(a,b){if(!Qd(b))throw new SyntaxError("The element name '"+b+"' is not valid.");if(be(a,b))throw Error("A custom element with name '"+(b+"' has already been defined."));if(a.da)throw Error("A custom element is already being defined.");}
153
+ function je(a,b,c){a.da=!0;var d;try{var e=c.prototype;if(!(e instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var f=function(m){var q=e[m];if(void 0!==q&&!(q instanceof Function))throw Error("The '"+m+"' callback must be a function.");return q};var g=f("connectedCallback");var h=f("disconnectedCallback");var k=f("adoptedCallback");var l=(d=f("attributeChangedCallback"))&&c.observedAttributes||[]}catch(m){throw m;}finally{a.da=!1}c={localName:b,
154
+ constructorFunction:c,connectedCallback:g,disconnectedCallback:h,adoptedCallback:k,attributeChangedCallback:d,observedAttributes:l,constructionStack:[]};a.V.set(b,c);a.la.set(c.constructorFunction,c);return c}n.upgrade=function(a){O(this.D,a)};
155
+ function ie(a){if(!1!==a.H){a.H=!1;for(var b=[],c=a.W,d=new Map,e=0;e<c.length;e++)d.set(c[e],[]);O(a.D,document,{upgrade:function(k){if(void 0===k.__CE_state){var l=k.localName,m=d.get(l);m?m.push(k):a.V.has(l)&&b.push(k)}}});for(e=0;e<b.length;e++)ae(a.D,b[e]);for(e=0;e<c.length;e++){for(var f=c[e],g=d.get(f),h=0;h<g.length;h++)ae(a.D,g[h]);(f=a.fa.get(f))&&f.resolve(void 0)}c.length=0}}n.get=function(a){if(a=be(this,a))return a.constructorFunction};
156
+ n.whenDefined=function(a){if(!Qd(a))return Promise.reject(new SyntaxError("'"+a+"' is not a valid custom element name."));var b=this.fa.get(a);if(b)return b.pa;b=new ee;this.fa.set(a,b);var c=this.V.has(a)||this.U.has(a);a=-1===this.W.indexOf(a);c&&a&&b.resolve(void 0);return b.pa};n.polyfillWrapFlushCallback=function(a){this.ma&&ge(this.ma);var b=this.T;this.T=function(c){return a(function(){return b(c)})}};
157
+ function be(a,b){var c=a.V.get(b);if(c)return c;if(c=a.U.get(b)){a.U.delete(b);try{return je(a,b,c())}catch(d){ce(d)}}}window.CustomElementRegistry=P;P.prototype.define=P.prototype.define;P.prototype.upgrade=P.prototype.upgrade;P.prototype.get=P.prototype.get;P.prototype.whenDefined=P.prototype.whenDefined;P.prototype.polyfillDefineLazy=P.prototype.Ia;P.prototype.polyfillWrapFlushCallback=P.prototype.polyfillWrapFlushCallback;function ke(a,b,c){function d(e){return function(f){for(var g=[],h=0;h<arguments.length;++h)g[h]=arguments[h];h=[];for(var k=[],l=0;l<g.length;l++){var m=g[l];m instanceof Element&&K(m)&&k.push(m);if(m instanceof DocumentFragment)for(m=m.firstChild;m;m=m.nextSibling)h.push(m);else h.push(m)}e.apply(this,g);for(g=0;g<k.length;g++)N(a,k[g]);if(K(this))for(g=0;g<h.length;g++)k=h[g],k instanceof Element&&M(a,k)}}void 0!==c.prepend&&(b.prepend=d(c.prepend));void 0!==c.append&&(b.append=d(c.append))};function le(a){Document.prototype.createElement=function(b){return de(a,this,b,null)};Document.prototype.importNode=function(b,c){b=kd.call(this,b,!!c);this.__CE_registry?O(a,b):Zd(a,b);return b};Document.prototype.createElementNS=function(b,c){return de(a,this,c,b)};ke(a,Document.prototype,{prepend:ld,append:md})};function me(a){function b(d){return function(e){for(var f=[],g=0;g<arguments.length;++g)f[g]=arguments[g];g=[];for(var h=[],k=0;k<f.length;k++){var l=f[k];l instanceof Element&&K(l)&&h.push(l);if(l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)g.push(l);else g.push(l)}d.apply(this,f);for(f=0;f<h.length;f++)N(a,h[f]);if(K(this))for(f=0;f<g.length;f++)h=g[f],h instanceof Element&&M(a,h)}}var c=Element.prototype;void 0!==Hd&&(c.before=b(Hd));void 0!==Id&&(c.after=b(Id));void 0!==Jd&&
158
+ (c.replaceWith=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f]=arguments[f];f=[];for(var g=[],h=0;h<e.length;h++){var k=e[h];k instanceof Element&&K(k)&&g.push(k);if(k instanceof DocumentFragment)for(k=k.firstChild;k;k=k.nextSibling)f.push(k);else f.push(k)}h=K(this);Jd.apply(this,e);for(e=0;e<g.length;e++)N(a,g[e]);if(h)for(N(a,this),e=0;e<f.length;e++)g=f[e],g instanceof Element&&M(a,g)});void 0!==Kd&&(c.remove=function(){var d=K(this);Kd.call(this);d&&N(a,this)})};function ne(a){function b(e,f){Object.defineProperty(e,"innerHTML",{enumerable:f.enumerable,configurable:!0,get:f.get,set:function(g){var h=this,k=void 0;K(this)&&(k=[],Wd(a,this,function(q){q!==h&&k.push(q)}));f.set.call(this,g);if(k)for(var l=0;l<k.length;l++){var m=k[l];1===m.__CE_state&&a.disconnectedCallback(m)}this.ownerDocument.__CE_registry?O(a,this):Zd(a,this);return g}})}function c(e,f){e.insertAdjacentElement=function(g,h){var k=K(h);g=f.call(this,g,h);k&&N(a,h);K(g)&&M(a,h);return g}}
171
159
  function d(e,f){function g(h,k){for(var l=[];h!==k;h=h.nextSibling)l.push(h);for(k=0;k<l.length;k++)O(a,l[k])}e.insertAdjacentHTML=function(h,k){h=h.toLowerCase();if("beforebegin"===h){var l=this.previousSibling;f.call(this,h,k);g(l||this.parentNode.firstChild,this)}else if("afterbegin"===h)l=this.firstChild,f.call(this,h,k),g(this.firstChild,l);else if("beforeend"===h)l=this.lastChild,f.call(this,h,k),g(l||this.firstChild,null);else if("afterend"===h)l=this.nextSibling,f.call(this,h,k),g(this.nextSibling,
172
- l);else throw new SyntaxError("The value provided ("+String(h)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");}}Hd&&(Element.prototype.attachShadow=function(e){e=Hd.call(this,e);if(a.I&&!e.__CE_patched){e.__CE_patched=!0;for(var f=0;f<a.M.length;f++)a.M[f](e)}return this.__CE_shadowRoot=e});Id&&Id.get?b(Element.prototype,Id):Zd&&Zd.get?b(HTMLElement.prototype,Zd):ke(a,function(e){b(e,{enumerable:!0,configurable:!0,get:function(){return Bd.call(this,!0).innerHTML},set:function(f){var g=
173
- "template"===this.localName,h=g?this.content:this,k=vd.call(document,this.namespaceURI,this.localName);for(k.innerHTML=f;0<h.childNodes.length;)Ed.call(h,h.childNodes[0]);for(f=g?k.content:k;0<f.childNodes.length;)Cd.call(h,f.childNodes[0])}})});Element.prototype.setAttribute=function(e,f){if(1!==this.__CE_state)return Kd.call(this,e,f);var g=Jd.call(this,e);Kd.call(this,e,f);f=Jd.call(this,e);a.attributeChangedCallback(this,e,g,f,null)};Element.prototype.setAttributeNS=function(e,f,g){if(1!==this.__CE_state)return Od.call(this,
174
- e,f,g);var h=Nd.call(this,e,f);Od.call(this,e,f,g);g=Nd.call(this,e,f);a.attributeChangedCallback(this,f,h,g,e)};Element.prototype.removeAttribute=function(e){if(1!==this.__CE_state)return Ld.call(this,e);var f=Jd.call(this,e);Ld.call(this,e);null!==f&&a.attributeChangedCallback(this,e,f,null,null)};Md&&(Element.prototype.toggleAttribute=function(e,f){if(1!==this.__CE_state)return Md.call(this,e,f);var g=Jd.call(this,e),h=null!==g;f=Md.call(this,e,f);h!==f&&a.attributeChangedCallback(this,e,g,f?"":
175
- null,null);return f});Element.prototype.removeAttributeNS=function(e,f){if(1!==this.__CE_state)return Pd.call(this,e,f);var g=Nd.call(this,e,f);Pd.call(this,e,f);var h=Nd.call(this,e,f);g!==h&&a.attributeChangedCallback(this,f,g,h,e)};$d?c(HTMLElement.prototype,$d):Qd&&c(Element.prototype,Qd);ae?d(HTMLElement.prototype,ae):Rd&&d(Element.prototype,Rd);xe(a,Element.prototype,{prepend:Sd,append:Td});ze(a)};var Be={};function Ce(a){function b(){var c=this.constructor;var d=document.__CE_registry.oa.get(c);if(!d)throw Error("Failed to construct a custom element: The constructor was not registered with `customElements`.");var e=d.constructionStack;if(0===e.length)return e=ud.call(document,d.localName),Object.setPrototypeOf(e,c.prototype),e.__CE_state=1,e.__CE_definition=d,me(a,e),e;var f=e.length-1,g=e[f];if(g===Be)throw Error("Failed to construct '"+d.localName+"': This element was already constructed.");e[f]=
176
- Be;Object.setPrototypeOf(g,c.prototype);me(a,g);return g}b.prototype=Yd.prototype;Object.defineProperty(HTMLElement.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:b});window.HTMLElement=b};function De(a){function b(c,d){Object.defineProperty(c,"textContent",{enumerable:d.enumerable,configurable:!0,get:d.get,set:function(e){if(this.nodeType===Node.TEXT_NODE)d.set.call(this,e);else{var f=void 0;if(this.firstChild){var g=this.childNodes,h=g.length;if(0<h&&K(this)){f=Array(h);for(var k=0;k<h;k++)f[k]=g[k]}}d.set.call(this,e);if(f)for(e=0;e<f.length;e++)N(a,f[e])}}})}Node.prototype.insertBefore=function(c,d){if(c instanceof DocumentFragment){var e=ee(c);c=Dd.call(this,c,d);if(K(this))for(d=
177
- 0;d<e.length;d++)M(a,e[d]);return c}e=c instanceof Element&&K(c);d=Dd.call(this,c,d);e&&N(a,c);K(this)&&M(a,c);return d};Node.prototype.appendChild=function(c){if(c instanceof DocumentFragment){var d=ee(c);c=Cd.call(this,c);if(K(this))for(var e=0;e<d.length;e++)M(a,d[e]);return c}d=c instanceof Element&&K(c);e=Cd.call(this,c);d&&N(a,c);K(this)&&M(a,c);return e};Node.prototype.cloneNode=function(c){c=Bd.call(this,!!c);this.ownerDocument.__CE_registry?O(a,c):le(a,c);return c};Node.prototype.removeChild=
178
- function(c){var d=c instanceof Element&&K(c),e=Ed.call(this,c);d&&N(a,c);return e};Node.prototype.replaceChild=function(c,d){if(c instanceof DocumentFragment){var e=ee(c);c=Fd.call(this,c,d);if(K(this))for(N(a,d),d=0;d<e.length;d++)M(a,e[d]);return c}e=c instanceof Element&&K(c);var f=Fd.call(this,c,d),g=K(this);g&&N(a,d);e&&N(a,c);g&&M(a,c);return f};Gd&&Gd.get?b(Node.prototype,Gd):je(a,function(c){b(c,{enumerable:!0,configurable:!0,get:function(){for(var d=[],e=this.firstChild;e;e=e.nextSibling)e.nodeType!==
179
- Node.COMMENT_NODE&&d.push(e.textContent);return d.join("")},set:function(d){for(;this.firstChild;)Ed.call(this,this.firstChild);null!=d&&""!==d&&Cd.call(this,document.createTextNode(d))}})})};var L=window.customElements;function Ee(){var a=new he;Ce(a);ye(a);xe(a,DocumentFragment.prototype,{prepend:zd,append:Ad});De(a);Ae(a);window.CustomElementRegistry=P;a=new P(a);document.__CE_registry=a;Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:a})}L&&!L.forcePolyfill&&"function"==typeof L.define&&"function"==typeof L.get||Ee();window.__CE_installPolyfill=Ee;/*
160
+ l);else throw new SyntaxError("The value provided ("+String(h)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");}}vd&&(Element.prototype.attachShadow=function(e){e=vd.call(this,e);if(a.I&&!e.__CE_patched){e.__CE_patched=!0;for(var f=0;f<a.M.length;f++)a.M[f](e)}return this.__CE_shadowRoot=e});wd&&wd.get?b(Element.prototype,wd):Md&&Md.get?b(HTMLElement.prototype,Md):Yd(a,function(e){b(e,{enumerable:!0,configurable:!0,get:function(){return pd.call(this,!0).innerHTML},set:function(f){var g=
161
+ "template"===this.localName,h=g?this.content:this,k=jd.call(document,this.namespaceURI,this.localName);for(k.innerHTML=f;0<h.childNodes.length;)sd.call(h,h.childNodes[0]);for(f=g?k.content:k;0<f.childNodes.length;)qd.call(h,f.childNodes[0])}})});Element.prototype.setAttribute=function(e,f){if(1!==this.__CE_state)return yd.call(this,e,f);var g=xd.call(this,e);yd.call(this,e,f);f=xd.call(this,e);a.attributeChangedCallback(this,e,g,f,null)};Element.prototype.setAttributeNS=function(e,f,g){if(1!==this.__CE_state)return Bd.call(this,
162
+ e,f,g);var h=Ad.call(this,e,f);Bd.call(this,e,f,g);g=Ad.call(this,e,f);a.attributeChangedCallback(this,f,h,g,e)};Element.prototype.removeAttribute=function(e){if(1!==this.__CE_state)return zd.call(this,e);var f=xd.call(this,e);zd.call(this,e);null!==f&&a.attributeChangedCallback(this,e,f,null,null)};Element.prototype.removeAttributeNS=function(e,f){if(1!==this.__CE_state)return Cd.call(this,e,f);var g=Ad.call(this,e,f);Cd.call(this,e,f);var h=Ad.call(this,e,f);g!==h&&a.attributeChangedCallback(this,
163
+ f,g,h,e)};Nd?c(HTMLElement.prototype,Nd):Dd&&c(Element.prototype,Dd);Od?d(HTMLElement.prototype,Od):Ed&&d(Element.prototype,Ed);ke(a,Element.prototype,{prepend:Fd,append:Gd});me(a)};var oe={};function pe(a){function b(){var c=this.constructor;var d=document.__CE_registry.la.get(c);if(!d)throw Error("Failed to construct a custom element: The constructor was not registered with `customElements`.");var e=d.constructionStack;if(0===e.length)return e=id.call(document,d.localName),Object.setPrototypeOf(e,c.prototype),e.__CE_state=1,e.__CE_definition=d,$d(a,e),e;var f=e.length-1,g=e[f];if(g===oe)throw Error("Failed to construct '"+d.localName+"': This element was already constructed.");e[f]=
164
+ oe;Object.setPrototypeOf(g,c.prototype);$d(a,g);return g}b.prototype=Ld.prototype;Object.defineProperty(HTMLElement.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:b});window.HTMLElement=b};function qe(a){function b(c,d){Object.defineProperty(c,"textContent",{enumerable:d.enumerable,configurable:!0,get:d.get,set:function(e){if(this.nodeType===Node.TEXT_NODE)d.set.call(this,e);else{var f=void 0;if(this.firstChild){var g=this.childNodes,h=g.length;if(0<h&&K(this)){f=Array(h);for(var k=0;k<h;k++)f[k]=g[k]}}d.set.call(this,e);if(f)for(e=0;e<f.length;e++)N(a,f[e])}}})}Node.prototype.insertBefore=function(c,d){if(c instanceof DocumentFragment){var e=Sd(c);c=rd.call(this,c,d);if(K(this))for(d=
165
+ 0;d<e.length;d++)M(a,e[d]);return c}e=c instanceof Element&&K(c);d=rd.call(this,c,d);e&&N(a,c);K(this)&&M(a,c);return d};Node.prototype.appendChild=function(c){if(c instanceof DocumentFragment){var d=Sd(c);c=qd.call(this,c);if(K(this))for(var e=0;e<d.length;e++)M(a,d[e]);return c}d=c instanceof Element&&K(c);e=qd.call(this,c);d&&N(a,c);K(this)&&M(a,c);return e};Node.prototype.cloneNode=function(c){c=pd.call(this,!!c);this.ownerDocument.__CE_registry?O(a,c):Zd(a,c);return c};Node.prototype.removeChild=
166
+ function(c){var d=c instanceof Element&&K(c),e=sd.call(this,c);d&&N(a,c);return e};Node.prototype.replaceChild=function(c,d){if(c instanceof DocumentFragment){var e=Sd(c);c=td.call(this,c,d);if(K(this))for(N(a,d),d=0;d<e.length;d++)M(a,e[d]);return c}e=c instanceof Element&&K(c);var f=td.call(this,c,d),g=K(this);g&&N(a,d);e&&N(a,c);g&&M(a,c);return f};ud&&ud.get?b(Node.prototype,ud):Xd(a,function(c){b(c,{enumerable:!0,configurable:!0,get:function(){for(var d=[],e=this.firstChild;e;e=e.nextSibling)e.nodeType!==
167
+ Node.COMMENT_NODE&&d.push(e.textContent);return d.join("")},set:function(d){for(;this.firstChild;)sd.call(this,this.firstChild);null!=d&&""!==d&&qd.call(this,document.createTextNode(d))}})})};var L=window.customElements;function re(){var a=new Vd;pe(a);le(a);ke(a,DocumentFragment.prototype,{prepend:nd,append:od});qe(a);ne(a);a=new P(a);document.__CE_registry=a;Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:a})}L&&!L.forcePolyfill&&"function"==typeof L.define&&"function"==typeof L.get||re();window.__CE_installPolyfill=re;/*
180
168
 
181
169
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
182
170
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -185,56 +173,56 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
185
173
  Code distributed by Google as part of the polymer project is also
186
174
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
187
175
  */
188
- function Fe(){this.end=this.start=0;this.rules=this.parent=this.previous=null;this.cssText=this.parsedCssText="";this.atRule=!1;this.type=0;this.parsedSelector=this.selector=this.keyframesName=""}
189
- function Ge(a){var b=a=a.replace(He,"").replace(Ie,""),c=new Fe;c.start=0;c.end=b.length;for(var d=c,e=0,f=b.length;e<f;e++)if("{"===b[e]){d.rules||(d.rules=[]);var g=d,h=g.rules[g.rules.length-1]||null;d=new Fe;d.start=e+1;d.parent=g;d.previous=h;g.rules.push(d)}else"}"===b[e]&&(d.end=e+1,d=d.parent||c);return Je(c,a)}
190
- function Je(a,b){var c=b.substring(a.start,a.end-1);a.parsedCssText=a.cssText=c.trim();a.parent&&(c=b.substring(a.previous?a.previous.end:a.parent.start,a.start-1),c=Ke(c),c=c.replace(Le," "),c=c.substring(c.lastIndexOf(";")+1),c=a.parsedSelector=a.selector=c.trim(),a.atRule=0===c.indexOf("@"),a.atRule?0===c.indexOf("@media")?a.type=Me:c.match(Ne)&&(a.type=Oe,a.keyframesName=a.selector.split(Le).pop()):a.type=0===c.indexOf("--")?Pe:Qe);if(c=a.rules)for(var d=0,e=c.length,f=void 0;d<e&&(f=c[d]);d++)Je(f,
191
- b);return a}function Ke(a){return a.replace(/\\([0-9a-f]{1,6})\s/gi,function(b,c){b=c;for(c=6-b.length;c--;)b="0"+b;return"\\"+b})}
192
- function Re(a,b,c){c=void 0===c?"":c;var d="";if(a.cssText||a.rules){var e=a.rules,f;if(f=e)f=e[0],f=!(f&&f.selector&&0===f.selector.indexOf("--"));if(f){f=0;for(var g=e.length,h=void 0;f<g&&(h=e[f]);f++)d=Re(h,b,d)}else b?b=a.cssText:(b=a.cssText,b=b.replace(Se,"").replace(Te,""),b=b.replace(Ue,"").replace(Ve,"")),(d=b.trim())&&(d=" "+d+"\n")}d&&(a.selector&&(c+=a.selector+" {\n"),c+=d,a.selector&&(c+="}\n\n"));return c}
193
- var Qe=1,Oe=7,Me=4,Pe=1E3,He=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,Ie=/@import[^;]*;/gim,Se=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,Te=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,Ue=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,Ve=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,Ne=/^@[^\s]*keyframes/,Le=/\s+/g;var Q=!(window.ShadyDOM&&window.ShadyDOM.inUse),We;function Xe(a){We=a&&a.shimcssproperties?!1:Q||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))}var Ye;window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(Ye=window.ShadyCSS.cssBuild);var Ze=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);
194
- window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?We=window.ShadyCSS.nativeCss:window.ShadyCSS?(Xe(window.ShadyCSS),window.ShadyCSS=void 0):Xe(window.WebComponents&&window.WebComponents.flags);var R=We;var $e=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,af=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,bf=/(--[\w-]+)\s*([:,;)]|$)/gi,cf=/(animation\s*:)|(animation-name\s*:)/,df=/@media\s(.*)/,ef=/\{[^}]*\}/g;var ff=new Set;function gf(a,b){if(!a)return"";"string"===typeof a&&(a=Ge(a));b&&hf(a,b);return Re(a,R)}function jf(a){!a.__cssRules&&a.textContent&&(a.__cssRules=Ge(a.textContent));return a.__cssRules||null}function kf(a){return!!a.parent&&a.parent.type===Oe}function hf(a,b,c,d){if(a){var e=!1,f=a.type;if(d&&f===Me){var g=a.selector.match(df);g&&(window.matchMedia(g[1]).matches||(e=!0))}f===Qe?b(a):c&&f===Oe?c(a):f===Pe&&(e=!0);if((a=a.rules)&&!e)for(e=0,f=a.length,g=void 0;e<f&&(g=a[e]);e++)hf(g,b,c,d)}}
195
- function lf(a,b,c,d){var e=document.createElement("style");b&&e.setAttribute("scope",b);e.textContent=a;mf(e,c,d);return e}var S=null;function nf(a){a=document.createComment(" Shady DOM styles for "+a+" ");var b=document.head;b.insertBefore(a,(S?S.nextSibling:null)||b.firstChild);return S=a}function mf(a,b,c){b=b||document.head;b.insertBefore(a,c&&c.nextSibling||b.firstChild);S?a.compareDocumentPosition(S)===Node.DOCUMENT_POSITION_PRECEDING&&(S=a):S=a}
196
- function of(a,b){for(var c=0,d=a.length;b<d;b++)if("("===a[b])c++;else if(")"===a[b]&&0===--c)return b;return-1}function pf(a,b){var c=a.indexOf("var(");if(-1===c)return b(a,"","","");var d=of(a,c+3),e=a.substring(c+4,d);c=a.substring(0,c);a=pf(a.substring(d+1),b);d=e.indexOf(",");return-1===d?b(c,e.trim(),"",a):b(c,e.substring(0,d).trim(),e.substring(d+1).trim(),a)}function qf(a,b){Q?a.setAttribute("class",b):window.ShadyDOM.nativeMethods.setAttribute.call(a,"class",b)}
197
- var rf=window.ShadyDOM&&window.ShadyDOM.wrap||function(a){return a};function U(a){var b=a.localName,c="";b?-1<b.indexOf("-")||(c=b,b=a.getAttribute&&a.getAttribute("is")||""):(b=a.is,c=a.extends);return{is:b,T:c}}function sf(a){for(var b=[],c="",d=0;0<=d&&d<a.length;d++)if("("===a[d]){var e=of(a,d);c+=a.slice(d,e+1);d=e}else","===a[d]?(b.push(c),c=""):c+=a[d];c&&b.push(c);return b}
198
- function tf(a){if(void 0!==Ye)return Ye;if(void 0===a.__cssBuild){var b=a.getAttribute("css-build");if(b)a.__cssBuild=b;else{a:{b="template"===a.localName?a.content.firstChild:a.firstChild;if(b instanceof Comment&&(b=b.textContent.trim().split(":"),"css-build"===b[0])){b=b[1];break a}b=""}if(""!==b){var c="template"===a.localName?a.content.firstChild:a.firstChild;c.parentNode.removeChild(c)}a.__cssBuild=b}}return a.__cssBuild||""}
199
- function uf(a){a=void 0===a?"":a;return""!==a&&R?Q?"shadow"===a:"shady"===a:!1};function vf(){}function wf(a,b){xf(V,a,function(c){W(c,b||"")})}function xf(a,b,c){b.nodeType===Node.ELEMENT_NODE&&c(b);var d;"template"===b.localName?d=(b.content||b._content||b).childNodes:d=b.children||b.childNodes;if(d)for(b=0;b<d.length;b++)xf(a,d[b],c)}
200
- function W(a,b,c){if(b)if(a.classList)c?(a.classList.remove("style-scope"),a.classList.remove(b)):(a.classList.add("style-scope"),a.classList.add(b));else if(a.getAttribute){var d=a.getAttribute("class");c?d&&(b=d.replace("style-scope","").replace(b,""),qf(a,b)):qf(a,(d?d+" ":"")+"style-scope "+b)}}function yf(a,b,c){xf(V,a,function(d){W(d,b,!0);W(d,c)})}function zf(a,b){xf(V,a,function(c){W(c,b||"",!0)})}
201
- function Af(a,b,c,d,e){var f=V;e=void 0===e?"":e;""===e&&(Q||"shady"===(void 0===d?"":d)?e=gf(b,c):(a=U(a),e=Bf(f,b,a.is,a.T,c)+"\n\n"));return e.trim()}function Bf(a,b,c,d,e){var f=Cf(c,d);c=c?"."+c:"";return gf(b,function(g){g.i||(g.selector=g.m=Df(a,g,a.h,c,f),g.i=!0);e&&e(g,c,f)})}function Cf(a,b){return b?"[is="+a+"]":a}
202
- function Df(a,b,c,d,e){var f=sf(b.selector);if(!kf(b)){b=0;for(var g=f.length,h=void 0;b<g&&(h=f[b]);b++)f[b]=c.call(a,h,d,e)}return f.filter(function(k){return!!k}).join(",")}function Ef(a){return a.replace(Ff,function(b,c,d){-1<d.indexOf("+")?d=d.replace(/\+/g,"___"):-1<d.indexOf("___")&&(d=d.replace(/___/g,"+"));return":"+c+"("+d+")"})}
203
- function Gf(a){for(var b=[],c;c=a.match(Hf);){var d=c.index,e=of(a,d);if(-1===e)throw Error(c.input+" selector missing ')'");c=a.slice(d,e+1);a=a.replace(c,"\ue000");b.push(c)}return{na:a,matches:b}}function If(a,b){var c=a.split("\ue000");return b.reduce(function(d,e,f){return d+e+c[f+1]},c[0])}
204
- vf.prototype.h=function(a,b,c){var d=!1;a=a.trim();var e=Ff.test(a);e&&(a=a.replace(Ff,function(h,k,l){return":"+k+"("+l.replace(/\s/g,"")+")"}),a=Ef(a));var f=Hf.test(a);if(f){var g=Gf(a);a=g.na;g=g.matches}a=a.replace(Jf,":host $1");a=a.replace(Kf,function(h,k,l){d||(h=Lf(l,k,b,c),d=d||h.stop,k=h.Ga,l=h.value);return k+l});f&&(a=If(a,g));e&&(a=Ef(a));return a=a.replace(Mf,function(h,k,l,m){return'[dir="'+l+'"] '+k+m+", "+k+'[dir="'+l+'"]'+m})};
205
- function Lf(a,b,c,d){var e=a.indexOf("::slotted");0<=a.indexOf(":host")?a=Nf(a,d):0!==e&&(a=c?Of(a,c):a);c=!1;0<=e&&(b="",c=!0);if(c){var f=!0;c&&(a=a.replace(Pf,function(g,h){return" > "+h}))}return{value:a,Ga:b,stop:f}}function Of(a,b){a=a.split(/(\[.+?\])/);for(var c=[],d=0;d<a.length;d++)if(1===d%2)c.push(a[d]);else{var e=a[d];if(""!==e||d!==a.length-1)e=e.split(":"),e[0]+=b,c.push(e.join(":"))}return c.join("")}
206
- function Nf(a,b){var c=a.match(Qf);return(c=c&&c[2].trim()||"")?c[0].match(Rf)?a.replace(Qf,function(d,e,f){return b+f}):c.split(Rf)[0]===b?c:"should_not_match":a.replace(":host",b)}function Sf(a){":root"===a.selector&&(a.selector="html")}vf.prototype.i=function(a){return a.match(":host")?"":a.match("::slotted")?this.h(a,":not(.style-scope)"):Of(a.trim(),":not(.style-scope)")};ca.Object.defineProperties(vf.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});
207
- var Ff=/:(nth[-\w]+)\(([^)]+)\)/,Kf=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,Rf=/[[.:#*]/,Jf=/^(::slotted)/,Qf=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Pf=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Mf=/(.*):dir\((?:(ltr|rtl))\)(.*)/,Hf=/:(?:matches|any|-(?:webkit|moz)-any)/,V=new vf;function Tf(a,b,c,d,e){this.A=a||null;this.h=b||null;this.la=c||[];this.u=null;this.cssBuild=e||"";this.T=d||"";this.g=this.v=this.C=null}function X(a){return a?a.__styleInfo:null}function Uf(a,b){return a.__styleInfo=b}Tf.prototype.i=function(){return this.A};Tf.prototype._getStyleRules=Tf.prototype.i;function Vf(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var Wf=/:host\s*>\s*/,Xf=navigator.userAgent.match("Trident");function Yf(){}function Zf(a){var b={},c=[],d=0;hf(a,function(f){$f(f);f.index=d++;f=f.l.cssText;for(var g;g=bf.exec(f);){var h=g[1];":"!==g[2]&&(b[h]=!0)}},function(f){c.push(f)});a.h=c;a=[];for(var e in b)a.push(e);return a}
208
- function $f(a){if(!a.l){var b={},c={};ag(a,c)&&(b.B=c,a.rules=null);b.cssText=a.parsedCssText.replace(ef,"").replace($e,"");a.l=b}}function ag(a,b){var c=a.l;if(c){if(c.B)return Object.assign(b,c.B),!0}else{c=a.parsedCssText;for(var d;a=$e.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}}
209
- function bg(a,b,c){b&&(b=0<=b.indexOf(";")?cg(a,b,c):pf(b,function(d,e,f,g){if(!e)return d+g;(e=bg(a,c[e],c))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=bg(a,c[f]||f,c)||f;return d+(e||"")+g}));return b&&b.trim()||""}
210
- function cg(a,b,c){b=b.split(";");for(var d=0,e,f;d<b.length;d++)if(e=b[d]){af.lastIndex=0;if(f=af.exec(e))e=bg(a,c[f[1]],c);else if(f=e.indexOf(":"),-1!==f){var g=e.substring(f);g=g.trim();g=bg(a,g,c)||g;e=e.substring(0,f)+g}b[d]=e&&e.lastIndexOf(";")===e.length-1?e.slice(0,-1):e||""}return b.join(";")}
211
- function dg(a,b){var c={},d=[];hf(a,function(e){e.l||$f(e);var f=e.m||e.parsedSelector;b&&e.l.B&&f&&Vf.call(b,f)&&(ag(e,c),e=e.index,f=parseInt(e/32,10),d[f]=(d[f]||0)|1<<e%32)},null,!0);return{B:c,key:d}}
212
- function eg(a,b,c,d){b.l||$f(b);if(b.l.B){var e=U(a);a=e.is;e=e.T;e=a?Cf(a,e):"html";var f=b.parsedSelector;var g=!!f.match(Wf)||"html"===e&&-1<f.indexOf("html");var h=0===f.indexOf(":host")&&!g;"shady"===c&&(g=f===e+" > *."+e||-1!==f.indexOf("html"),h=!g&&0===f.indexOf(e));if(g||h)c=e,h&&(b.m||(b.m=Df(V,b,V.h,a?"."+a:"",e)),c=b.m||e),g&&"html"===e&&(c=b.m||b.ca),d({na:c,Ma:h,Za:g})}}
213
- function fg(a,b,c){var d={},e={};hf(b,function(f){eg(a,f,c,function(g){Vf.call(a._element||a,g.na)&&(g.Ma?ag(f,d):ag(f,e))})},null,!0);return{Qa:e,La:d}}
214
- function gg(a,b,c,d){var e=U(b),f=Cf(e.is,e.T),g=new RegExp("(?:^|[^.#[:])"+(b.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])"),h=X(b);e=h.A;h=h.cssBuild;var k=hg(e,d);return Af(b,e,function(l){var m="";l.l||$f(l);l.l.cssText&&(m=cg(a,l.l.cssText,c));l.cssText=m;if(!Q&&!kf(l)&&l.cssText){var q=m=l.cssText;null==l.ua&&(l.ua=cf.test(m));if(l.ua)if(null==l.ba){l.ba=[];for(var v in k)q=k[v],q=q(m),m!==q&&(m=q,l.ba.push(v))}else{for(v=0;v<l.ba.length;++v)q=k[l.ba[v]],m=q(m);q=m}l.cssText=q;l.m=l.m||
215
- l.selector;m="."+d;v=sf(l.m);q=0;for(var T=v.length,db=void 0;q<T&&(db=v[q]);q++)v[q]=db.match(g)?db.replace(f,m):m+" "+db;l.selector=v.join(",")}},h)}function hg(a,b){a=a.h;var c={};if(!Q&&a)for(var d=0,e=a[d];d<a.length;e=a[++d]){var f=e,g=b;f.o=new RegExp("\\b"+f.keyframesName+"(?!\\B|-)","g");f.g=f.keyframesName+"-"+g;f.m=f.m||f.selector;f.selector=f.m.replace(f.keyframesName,f.g);c[e.keyframesName]=ig(e)}return c}function ig(a){return function(b){return b.replace(a.o,a.g)}}
216
- function jg(a,b){var c=kg,d=jf(a);a.textContent=gf(d,function(e){var f=e.cssText=e.parsedCssText;e.l&&e.l.cssText&&(f=f.replace(Se,"").replace(Te,""),e.cssText=cg(c,f,b))})}ca.Object.defineProperties(Yf.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var kg=new Yf;var lg={},mg=window.customElements;if(mg&&!Q&&!Ze){var ng=mg.define;mg.define=function(a,b,c){lg[a]||(lg[a]=nf(a));ng.call(mg,a,b,c)}};function og(){this.cache={}}og.prototype.store=function(a,b,c,d){var e=this.cache[a]||[];e.push({B:b,styleElement:c,v:d});100<e.length&&e.shift();this.cache[a]=e};function pg(){}var qg=new RegExp(V.g+"\\s*([^\\s]*)");function rg(a){return(a=(a.classList&&a.classList.value?a.classList.value:a.getAttribute("class")||"").match(qg))?a[1]:""}function sg(a){var b=rf(a).getRootNode();return b===a||b===a.ownerDocument?"":(a=b.host)?U(a).is:""}
217
- function tg(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.target!==document.documentElement&&c.target!==document.head)for(var d=0;d<c.addedNodes.length;d++){var e=c.addedNodes[d];if(e.nodeType===Node.ELEMENT_NODE){var f=e.getRootNode(),g=rg(e);if(g&&f===e.ownerDocument&&("style"!==e.localName&&"template"!==e.localName||""===tf(e)))zf(e,g);else if(f instanceof ShadowRoot)for(f=sg(e),f!==g&&yf(e,g,f),e=window.ShadyDOM.nativeMethods.querySelectorAll.call(e,":not(."+V.g+")"),g=0;g<e.length;g++){f=e[g];
218
- var h=sg(f);h&&W(f,h)}}}}}
219
- if(!(Q||window.ShadyDOM&&window.ShadyDOM.handlesDynamicScoping)){var ug=new MutationObserver(tg),vg=function(a){ug.observe(a,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)vg(document);else{var wg=function(){vg(document.body)};window.HTMLImports?window.HTMLImports.whenReady(wg):requestAnimationFrame(function(){if("loading"===document.readyState){var a=function(){wg();document.removeEventListener("readystatechange",a)};document.addEventListener("readystatechange",
220
- a)}else wg()})}pg=function(){tg(ug.takeRecords())}};var xg={};var yg=Promise.resolve();function zg(a){if(a=xg[a])a._applyShimCurrentVersion=a._applyShimCurrentVersion||0,a._applyShimValidatingVersion=a._applyShimValidatingVersion||0,a._applyShimNextVersion=(a._applyShimNextVersion||0)+1}function Ag(a){return a._applyShimCurrentVersion===a._applyShimNextVersion}function Bg(a){a._applyShimValidatingVersion=a._applyShimNextVersion;a._validating||(a._validating=!0,yg.then(function(){a._applyShimCurrentVersion=a._applyShimNextVersion;a._validating=!1}))};var Cg={},Dg=new og;function Y(){this.va={};this.i=document.documentElement;var a=new Fe;a.rules=[];this.o=Uf(this.i,new Tf(a));this.ca=!1;this.g=this.h=null}n=Y.prototype;n.flush=function(){pg()};n.Ja=function(a){return jf(a)};n.Ua=function(a){return gf(a)};n.prepareTemplate=function(a,b,c){this.prepareTemplateDom(a,b);this.prepareTemplateStyles(a,b,c)};
221
- n.prepareTemplateStyles=function(a,b,c){if(!a._prepared&&!Ze){Q||lg[b]||(lg[b]=nf(b));a._prepared=!0;a.name=b;a.extends=c;xg[b]=a;var d=tf(a),e=uf(d);c={is:b,extends:c};for(var f=[],g=a.content.querySelectorAll("style"),h=0;h<g.length;h++){var k=g[h];if(k.hasAttribute("shady-unscoped")){if(!Q){var l=k.textContent;if(!ff.has(l)){ff.add(l);var m=document.createElement("style");m.setAttribute("shady-unscoped","");m.textContent=l;document.head.appendChild(m)}k.parentNode.removeChild(k)}}else f.push(k.textContent),
222
- k.parentNode.removeChild(k)}f=f.join("").trim()+(Cg[b]||"");Eg(this);if(!e){if(g=!d)g=af.test(f)||$e.test(f),af.lastIndex=0,$e.lastIndex=0;h=Ge(f);g&&R&&this.h&&this.h.transformRules(h,b);a._styleAst=h}g=[];R||(g=Zf(a._styleAst));if(!g.length||R)h=Q?a.content:null,b=lg[b]||null,d=Af(c,a._styleAst,null,d,e?f:""),d=d.length?lf(d,c.is,h,b):null,a._style=d;a.g=g}};n.Oa=function(a,b){Cg[b]=a.join(" ")};
223
- n.prepareTemplateDom=function(a,b){if(!Ze){var c=tf(a);Q||"shady"===c||a._domPrepared||(a._domPrepared=!0,wf(a.content,b))}};function Fg(a){var b=U(a),c=b.is;b=b.T;var d=lg[c]||null,e=xg[c];if(e){c=e._styleAst;var f=e.g;e=tf(e);b=new Tf(c,d,f,b,e);Uf(a,b);return b}}
224
- function Gg(a){!a.g&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(a.g=window.ShadyCSS.CustomStyleInterface,a.g.transformCallback=function(b){a.ya(b)},a.g.validateCallback=function(){requestAnimationFrame(function(){(a.g.enqueued||a.ca)&&a.flushCustomStyles()})})}function Eg(a){if(!a.h&&window.ShadyCSS&&window.ShadyCSS.ApplyShim){a.h=window.ShadyCSS.ApplyShim;a.h.invalidCallback=zg;var b=!0}else b=!1;Gg(a);return b}
225
- n.flushCustomStyles=function(){if(!Ze){var a=Eg(this);if(this.g){var b=this.g.processStyles();if((a||this.g.enqueued)&&!uf(this.o.cssBuild)){if(R){if(!this.o.cssBuild)for(a=0;a<b.length;a++){var c=this.g.getStyleForCustomStyle(b[a]);if(c&&R&&this.h){var d=jf(c);Eg(this);this.h.transformRules(d);c.textContent=gf(d)}}}else{Hg(this,b);Ig(this,this.i,this.o);for(a=0;a<b.length;a++)(c=this.g.getStyleForCustomStyle(b[a]))&&jg(c,this.o.C);this.ca&&this.styleDocument()}this.g.enqueued=!1}}}};
226
- function Hg(a,b){b=b.map(function(c){return a.g.getStyleForCustomStyle(c)}).filter(function(c){return!!c});b.sort(function(c,d){c=d.compareDocumentPosition(c);return c&Node.DOCUMENT_POSITION_FOLLOWING?1:c&Node.DOCUMENT_POSITION_PRECEDING?-1:0});a.o.A.rules=b.map(function(c){return jf(c)})}
227
- n.styleElement=function(a,b){if(Ze){if(b){X(a)||Uf(a,new Tf(null));var c=X(a);c.u=c.u||{};Object.assign(c.u,b);Jg(this,a,c)}}else if(c=X(a)||Fg(a))if(a!==this.i&&(this.ca=!0),b&&(c.u=c.u||{},Object.assign(c.u,b)),R)Jg(this,a,c);else if(this.flush(),Ig(this,a,c),c.la&&c.la.length){b=U(a).is;var d;a:{if(d=Dg.cache[b])for(var e=d.length-1;0<=e;e--){var f=d[e];b:{var g=c.la;for(var h=0;h<g.length;h++){var k=g[h];if(f.B[k]!==c.C[k]){g=!1;break b}}g=!0}if(g){d=f;break a}}d=void 0}g=d?d.styleElement:null;
228
- e=c.v;(f=d&&d.v)||(f=this.va[b]=(this.va[b]||0)+1,f=b+"-"+f);c.v=f;f=c.v;h=kg;h=g?g.textContent||"":gg(h,a,c.C,f);k=X(a);var l=k.g;l&&!Q&&l!==g&&(l._useCount--,0>=l._useCount&&l.parentNode&&l.parentNode.removeChild(l));Q?k.g?(k.g.textContent=h,g=k.g):h&&(g=lf(h,f,a.shadowRoot,k.h)):g?g.parentNode||(Xf&&-1<h.indexOf("@media")&&(g.textContent=h),mf(g,null,k.h)):h&&(g=lf(h,f,null,k.h));g&&(g._useCount=g._useCount||0,k.g!=g&&g._useCount++,k.g=g);f=g;Q||(g=c.v,k=h=a.getAttribute("class")||"",e&&(k=h.replace(new RegExp("\\s*x-scope\\s*"+
229
- e+"\\s*","g")," ")),k+=(k?" ":"")+"x-scope "+g,h!==k&&qf(a,k));d||Dg.store(b,c.C,f,c.v)}};
230
- function Jg(a,b,c){var d=U(b).is;if(c.u){var e=c.u,f;for(f in e)null===f?b.style.removeProperty(f):b.style.setProperty(f,e[f])}e=xg[d];if(!(!e&&b!==a.i||e&&""!==tf(e))&&e&&e._style&&!Ag(e)){if(Ag(e)||e._applyShimValidatingVersion!==e._applyShimNextVersion)Eg(a),a.h&&a.h.transformRules(e._styleAst,d),e._style.textContent=Af(b,c.A),Bg(e);Q&&(a=b.shadowRoot)&&(a=a.querySelector("style"))&&(a.textContent=Af(b,c.A));c.A=e._styleAst}}
231
- function Kg(a,b){return(b=rf(b).getRootNode().host)?X(b)||Fg(b)?b:Kg(a,b):a.i}function Ig(a,b,c){var d=Kg(a,b),e=X(d),f=e.C;d===a.i||f||(Ig(a,d,e),f=e.C);a=Object.create(f||null);d=fg(b,c.A,c.cssBuild);b=dg(e.A,b).B;Object.assign(a,d.La,b,d.Qa);b=c.u;for(var g in b)if((e=b[g])||0===e)a[g]=e;g=kg;b=Object.getOwnPropertyNames(a);for(e=0;e<b.length;e++)d=b[e],a[d]=bg(g,a[d],a);c.C=a}n.styleDocument=function(a){this.styleSubtree(this.i,a)};
232
- n.styleSubtree=function(a,b){var c=rf(a),d=c.shadowRoot,e=a===this.i;(d||e)&&this.styleElement(a,b);if(a=e?c:d)for(a=Array.from(a.querySelectorAll("*")).filter(function(f){return rf(f).shadowRoot}),b=0;b<a.length;b++)this.styleSubtree(a[b])};
233
- n.ya=function(a){var b=this,c=tf(a);c!==this.o.cssBuild&&(this.o.cssBuild=c);if(!uf(c)){var d=jf(a);hf(d,function(e){if(Q)Sf(e);else{var f=V;e.selector=e.parsedSelector;Sf(e);e.selector=e.m=Df(f,e,f.i,void 0,void 0)}R&&""===c&&(Eg(b),b.h&&b.h.transformRule(e))});R?a.textContent=gf(d):this.o.A.rules.push(d)}};n.getComputedStyleValue=function(a,b){var c;R||(c=(X(a)||X(Kg(this,a))).C[b]);return(c=c||window.getComputedStyle(a).getPropertyValue(b))?c.trim():""};
234
- n.Ta=function(a,b){var c=rf(a).getRootNode();b=b?("string"===typeof b?b:String(b)).split(/\s/):[];c=c.host&&c.host.localName;if(!c){var d=a.getAttribute("class");if(d){d=d.split(/\s/);for(var e=0;e<d.length;e++)if(d[e]===V.g){c=d[e+1];break}}}c&&b.push(V.g,c);R||(c=X(a))&&c.v&&b.push(kg.g,c.v);qf(a,b.join(" "))};n.Fa=function(a){return X(a)};n.Sa=function(a,b){W(a,b)};n.Va=function(a,b){W(a,b,!0)};n.Ra=function(a){return sg(a)};n.Ia=function(a){return rg(a)};Y.prototype.flush=Y.prototype.flush;
235
- Y.prototype.prepareTemplate=Y.prototype.prepareTemplate;Y.prototype.styleElement=Y.prototype.styleElement;Y.prototype.styleDocument=Y.prototype.styleDocument;Y.prototype.styleSubtree=Y.prototype.styleSubtree;Y.prototype.getComputedStyleValue=Y.prototype.getComputedStyleValue;Y.prototype.setElementClass=Y.prototype.Ta;Y.prototype._styleInfoForNode=Y.prototype.Fa;Y.prototype.transformCustomStyleForDocument=Y.prototype.ya;Y.prototype.getStyleAst=Y.prototype.Ja;Y.prototype.styleAstToString=Y.prototype.Ua;
236
- Y.prototype.flushCustomStyles=Y.prototype.flushCustomStyles;Y.prototype.scopeNode=Y.prototype.Sa;Y.prototype.unscopeNode=Y.prototype.Va;Y.prototype.scopeForNode=Y.prototype.Ra;Y.prototype.currentScopeForNode=Y.prototype.Ia;Y.prototype.prepareAdoptedCssText=Y.prototype.Oa;Object.defineProperties(Y.prototype,{nativeShadow:{get:function(){return Q}},nativeCss:{get:function(){return R}}});var Z=new Y,Lg,Mg;window.ShadyCSS&&(Lg=window.ShadyCSS.ApplyShim,Mg=window.ShadyCSS.CustomStyleInterface);
176
+ function se(){this.end=this.start=0;this.rules=this.parent=this.previous=null;this.cssText=this.parsedCssText="";this.atRule=!1;this.type=0;this.parsedSelector=this.selector=this.keyframesName=""}
177
+ function te(a){var b=a=a.replace(ue,"").replace(ve,""),c=new se;c.start=0;c.end=b.length;for(var d=c,e=0,f=b.length;e<f;e++)if("{"===b[e]){d.rules||(d.rules=[]);var g=d,h=g.rules[g.rules.length-1]||null;d=new se;d.start=e+1;d.parent=g;d.previous=h;g.rules.push(d)}else"}"===b[e]&&(d.end=e+1,d=d.parent||c);return we(c,a)}
178
+ function we(a,b){var c=b.substring(a.start,a.end-1);a.parsedCssText=a.cssText=c.trim();a.parent&&(c=b.substring(a.previous?a.previous.end:a.parent.start,a.start-1),c=xe(c),c=c.replace(ye," "),c=c.substring(c.lastIndexOf(";")+1),c=a.parsedSelector=a.selector=c.trim(),a.atRule=0===c.indexOf("@"),a.atRule?0===c.indexOf("@media")?a.type=ze:c.match(Ae)&&(a.type=Be,a.keyframesName=a.selector.split(ye).pop()):a.type=0===c.indexOf("--")?Ce:De);if(c=a.rules)for(var d=0,e=c.length,f=void 0;d<e&&(f=c[d]);d++)we(f,
179
+ b);return a}function xe(a){return a.replace(/\\([0-9a-f]{1,6})\s/gi,function(b,c){b=c;for(c=6-b.length;c--;)b="0"+b;return"\\"+b})}
180
+ function Ee(a,b,c){c=void 0===c?"":c;var d="";if(a.cssText||a.rules){var e=a.rules,f;if(f=e)f=e[0],f=!(f&&f.selector&&0===f.selector.indexOf("--"));if(f){f=0;for(var g=e.length,h=void 0;f<g&&(h=e[f]);f++)d=Ee(h,b,d)}else b?b=a.cssText:(b=a.cssText,b=b.replace(Fe,"").replace(Ge,""),b=b.replace(He,"").replace(Ie,"")),(d=b.trim())&&(d=" "+d+"\n")}d&&(a.selector&&(c+=a.selector+" {\n"),c+=d,a.selector&&(c+="}\n\n"));return c}
181
+ var De=1,Be=7,ze=4,Ce=1E3,ue=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,ve=/@import[^;]*;/gim,Fe=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,Ge=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,He=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,Ie=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,Ae=/^@[^\s]*keyframes/,ye=/\s+/g;var Q=!(window.ShadyDOM&&window.ShadyDOM.inUse),Je;function Ke(a){Je=a&&a.shimcssproperties?!1:Q||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))}var Le;window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(Le=window.ShadyCSS.cssBuild);var Me=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);
182
+ window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?Je=window.ShadyCSS.nativeCss:window.ShadyCSS?(Ke(window.ShadyCSS),window.ShadyCSS=void 0):Ke(window.WebComponents&&window.WebComponents.flags);var R=Je;var Ne=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Oe=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Pe=/(--[\w-]+)\s*([:,;)]|$)/gi,Qe=/(animation\s*:)|(animation-name\s*:)/,Re=/@media\s(.*)/,Se=/\{[^}]*\}/g;var Te=new Set;function Ue(a,b){if(!a)return"";"string"===typeof a&&(a=te(a));b&&Ve(a,b);return Ee(a,R)}function We(a){!a.__cssRules&&a.textContent&&(a.__cssRules=te(a.textContent));return a.__cssRules||null}function Xe(a){return!!a.parent&&a.parent.type===Be}function Ve(a,b,c,d){if(a){var e=!1,f=a.type;if(d&&f===ze){var g=a.selector.match(Re);g&&(window.matchMedia(g[1]).matches||(e=!0))}f===De?b(a):c&&f===Be?c(a):f===Ce&&(e=!0);if((a=a.rules)&&!e)for(e=0,f=a.length,g=void 0;e<f&&(g=a[e]);e++)Ve(g,b,c,d)}}
183
+ function Ye(a,b,c,d){var e=document.createElement("style");b&&e.setAttribute("scope",b);e.textContent=a;Ze(e,c,d);return e}var T=null;function $e(a){a=document.createComment(" Shady DOM styles for "+a+" ");var b=document.head;b.insertBefore(a,(T?T.nextSibling:null)||b.firstChild);return T=a}function Ze(a,b,c){b=b||document.head;b.insertBefore(a,c&&c.nextSibling||b.firstChild);T?a.compareDocumentPosition(T)===Node.DOCUMENT_POSITION_PRECEDING&&(T=a):T=a}
184
+ function af(a,b){for(var c=0,d=a.length;b<d;b++)if("("===a[b])c++;else if(")"===a[b]&&0===--c)return b;return-1}function bf(a,b){var c=a.indexOf("var(");if(-1===c)return b(a,"","","");var d=af(a,c+3),e=a.substring(c+4,d);c=a.substring(0,c);a=bf(a.substring(d+1),b);d=e.indexOf(",");return-1===d?b(c,e.trim(),"",a):b(c,e.substring(0,d).trim(),e.substring(d+1).trim(),a)}function cf(a,b){Q?a.setAttribute("class",b):window.ShadyDOM.nativeMethods.setAttribute.call(a,"class",b)}
185
+ var df=window.ShadyDOM&&window.ShadyDOM.wrap||function(a){return a};function U(a){var b=a.localName,c="";b?-1<b.indexOf("-")||(c=b,b=a.getAttribute&&a.getAttribute("is")||""):(b=a.is,c=a.extends);return{is:b,R:c}}function ef(a){for(var b=[],c="",d=0;0<=d&&d<a.length;d++)if("("===a[d]){var e=af(a,d);c+=a.slice(d,e+1);d=e}else","===a[d]?(b.push(c),c=""):c+=a[d];c&&b.push(c);return b}
186
+ function ff(a){if(void 0!==Le)return Le;if(void 0===a.__cssBuild){var b=a.getAttribute("css-build");if(b)a.__cssBuild=b;else{a:{b="template"===a.localName?a.content.firstChild:a.firstChild;if(b instanceof Comment&&(b=b.textContent.trim().split(":"),"css-build"===b[0])){b=b[1];break a}b=""}if(""!==b){var c="template"===a.localName?a.content.firstChild:a.firstChild;c.parentNode.removeChild(c)}a.__cssBuild=b}}return a.__cssBuild||""}
187
+ function gf(a){a=void 0===a?"":a;return""!==a&&R?Q?"shadow"===a:"shady"===a:!1};function hf(){}function jf(a,b){kf(V,a,function(c){W(c,b||"")})}function kf(a,b,c){b.nodeType===Node.ELEMENT_NODE&&c(b);var d;"template"===b.localName?d=(b.content||b._content||b).childNodes:d=b.children||b.childNodes;if(d)for(b=0;b<d.length;b++)kf(a,d[b],c)}
188
+ function W(a,b,c){if(b)if(a.classList)c?(a.classList.remove("style-scope"),a.classList.remove(b)):(a.classList.add("style-scope"),a.classList.add(b));else if(a.getAttribute){var d=a.getAttribute("class");c?d&&(b=d.replace("style-scope","").replace(b,""),cf(a,b)):cf(a,(d?d+" ":"")+"style-scope "+b)}}function lf(a,b,c){kf(V,a,function(d){W(d,b,!0);W(d,c)})}function mf(a,b){kf(V,a,function(c){W(c,b||"",!0)})}
189
+ function nf(a,b,c,d,e){var f=V;e=void 0===e?"":e;""===e&&(Q||"shady"===(void 0===d?"":d)?e=Ue(b,c):(a=U(a),e=of(f,b,a.is,a.R,c)+"\n\n"));return e.trim()}function of(a,b,c,d,e){var f=pf(c,d);c=c?"."+c:"";return Ue(b,function(g){g.i||(g.selector=g.l=qf(a,g,a.h,c,f),g.i=!0);e&&e(g,c,f)})}function pf(a,b){return b?"[is="+a+"]":a}
190
+ function qf(a,b,c,d,e){var f=ef(b.selector);if(!Xe(b)){b=0;for(var g=f.length,h=void 0;b<g&&(h=f[b]);b++)f[b]=c.call(a,h,d,e)}return f.filter(function(k){return!!k}).join(",")}function rf(a){return a.replace(sf,function(b,c,d){-1<d.indexOf("+")?d=d.replace(/\+/g,"___"):-1<d.indexOf("___")&&(d=d.replace(/___/g,"+"));return":"+c+"("+d+")"})}
191
+ function tf(a){for(var b=[],c;c=a.match(uf);){var d=c.index,e=af(a,d);if(-1===e)throw Error(c.input+" selector missing ')'");c=a.slice(d,e+1);a=a.replace(c,"\ue000");b.push(c)}return{ka:a,matches:b}}function vf(a,b){var c=a.split("\ue000");return b.reduce(function(d,e,f){return d+e+c[f+1]},c[0])}
192
+ hf.prototype.h=function(a,b,c){var d=!1;a=a.trim();var e=sf.test(a);e&&(a=a.replace(sf,function(h,k,l){return":"+k+"("+l.replace(/\s/g,"")+")"}),a=rf(a));var f=uf.test(a);if(f){var g=tf(a);a=g.ka;g=g.matches}a=a.replace(wf,":host $1");a=a.replace(xf,function(h,k,l){d||(h=yf(l,k,b,c),d=d||h.stop,k=h.Ca,l=h.value);return k+l});f&&(a=vf(a,g));e&&(a=rf(a));return a=a.replace(zf,function(h,k,l,m){return'[dir="'+l+'"] '+k+m+", "+k+'[dir="'+l+'"]'+m})};
193
+ function yf(a,b,c,d){var e=a.indexOf("::slotted");0<=a.indexOf(":host")?a=Af(a,d):0!==e&&(a=c?Bf(a,c):a);c=!1;0<=e&&(b="",c=!0);if(c){var f=!0;c&&(a=a.replace(Cf,function(g,h){return" > "+h}))}return{value:a,Ca:b,stop:f}}function Bf(a,b){a=a.split(/(\[.+?\])/);for(var c=[],d=0;d<a.length;d++)if(1===d%2)c.push(a[d]);else{var e=a[d];if(""!==e||d!==a.length-1)e=e.split(":"),e[0]+=b,c.push(e.join(":"))}return c.join("")}
194
+ function Af(a,b){var c=a.match(Df);return(c=c&&c[2].trim()||"")?c[0].match(Ef)?a.replace(Df,function(d,e,f){return b+f}):c.split(Ef)[0]===b?c:"should_not_match":a.replace(":host",b)}function Ff(a){":root"===a.selector&&(a.selector="html")}hf.prototype.i=function(a){return a.match(":host")?"":a.match("::slotted")?this.h(a,":not(.style-scope)"):Bf(a.trim(),":not(.style-scope)")};da.Object.defineProperties(hf.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});
195
+ var sf=/:(nth[-\w]+)\(([^)]+)\)/,xf=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,Ef=/[[.:#*]/,wf=/^(::slotted)/,Df=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Cf=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,zf=/(.*):dir\((?:(ltr|rtl))\)(.*)/,uf=/:(?:matches|any|-(?:webkit|moz)-any)/,V=new hf;function Gf(a,b,c,d,e){this.A=a||null;this.h=b||null;this.ia=c||[];this.u=null;this.cssBuild=e||"";this.R=d||"";this.g=this.v=this.C=null}function X(a){return a?a.__styleInfo:null}function Hf(a,b){return a.__styleInfo=b}Gf.prototype.i=function(){return this.A};Gf.prototype._getStyleRules=Gf.prototype.i;function If(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var Jf=/:host\s*>\s*/,Kf=navigator.userAgent.match("Trident");function Lf(){}function Mf(a){var b={},c=[],d=0;Ve(a,function(f){Nf(f);f.index=d++;f=f.j.cssText;for(var g;g=Pe.exec(f);){var h=g[1];":"!==g[2]&&(b[h]=!0)}},function(f){c.push(f)});a.h=c;a=[];for(var e in b)a.push(e);return a}
196
+ function Nf(a){if(!a.j){var b={},c={};Of(a,c)&&(b.B=c,a.rules=null);b.cssText=a.parsedCssText.replace(Se,"").replace(Ne,"");a.j=b}}function Of(a,b){var c=a.j;if(c){if(c.B)return Object.assign(b,c.B),!0}else{c=a.parsedCssText;for(var d;a=Ne.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}}
197
+ function Pf(a,b,c){b&&(b=0<=b.indexOf(";")?Qf(a,b,c):bf(b,function(d,e,f,g){if(!e)return d+g;(e=Pf(a,c[e],c))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=Pf(a,c[f]||f,c)||f;return d+(e||"")+g}));return b&&b.trim()||""}
198
+ function Qf(a,b,c){b=b.split(";");for(var d=0,e,f;d<b.length;d++)if(e=b[d]){Oe.lastIndex=0;if(f=Oe.exec(e))e=Pf(a,c[f[1]],c);else if(f=e.indexOf(":"),-1!==f){var g=e.substring(f);g=g.trim();g=Pf(a,g,c)||g;e=e.substring(0,f)+g}b[d]=e&&e.lastIndexOf(";")===e.length-1?e.slice(0,-1):e||""}return b.join(";")}
199
+ function Rf(a,b){var c={},d=[];Ve(a,function(e){e.j||Nf(e);var f=e.l||e.parsedSelector;b&&e.j.B&&f&&If.call(b,f)&&(Of(e,c),e=e.index,f=parseInt(e/32,10),d[f]=(d[f]||0)|1<<e%32)},null,!0);return{B:c,key:d}}
200
+ function Sf(a,b,c,d){b.j||Nf(b);if(b.j.B){var e=U(a);a=e.is;e=e.R;e=a?pf(a,e):"html";var f=b.parsedSelector;var g=!!f.match(Jf)||"html"===e&&-1<f.indexOf("html");var h=0===f.indexOf(":host")&&!g;"shady"===c&&(g=f===e+" > *."+e||-1!==f.indexOf("html"),h=!g&&0===f.indexOf(e));if(g||h)c=e,h&&(b.l||(b.l=qf(V,b,V.h,a?"."+a:"",e)),c=b.l||e),g&&"html"===e&&(c=b.l||b.aa),d({ka:c,Ha:h,Ua:g})}}
201
+ function Tf(a,b,c){var d={},e={};Ve(b,function(f){Sf(a,f,c,function(g){If.call(a._element||a,g.ka)&&(g.Ha?Of(f,d):Of(f,e))})},null,!0);return{La:e,Ga:d}}
202
+ function Uf(a,b,c,d){var e=U(b),f=pf(e.is,e.R),g=new RegExp("(?:^|[^.#[:])"+(b.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])"),h=X(b);e=h.A;h=h.cssBuild;var k=Vf(e,d);return nf(b,e,function(l){var m="";l.j||Nf(l);l.j.cssText&&(m=Qf(a,l.j.cssText,c));l.cssText=m;if(!Q&&!Xe(l)&&l.cssText){var q=m=l.cssText;null==l.qa&&(l.qa=Qe.test(m));if(l.qa)if(null==l.Z){l.Z=[];for(var v in k)q=k[v],q=q(m),m!==q&&(m=q,l.Z.push(v))}else{for(v=0;v<l.Z.length;++v)q=k[l.Z[v]],m=q(m);q=m}l.cssText=q;l.l=l.l||l.selector;
203
+ m="."+d;v=ef(l.l);q=0;for(var S=v.length,$a=void 0;q<S&&($a=v[q]);q++)v[q]=$a.match(g)?$a.replace(f,m):m+" "+$a;l.selector=v.join(",")}},h)}function Vf(a,b){a=a.h;var c={};if(!Q&&a)for(var d=0,e=a[d];d<a.length;e=a[++d]){var f=e,g=b;f.o=new RegExp("\\b"+f.keyframesName+"(?!\\B|-)","g");f.g=f.keyframesName+"-"+g;f.l=f.l||f.selector;f.selector=f.l.replace(f.keyframesName,f.g);c[e.keyframesName]=Wf(e)}return c}function Wf(a){return function(b){return b.replace(a.o,a.g)}}
204
+ function Xf(a,b){var c=Yf,d=We(a);a.textContent=Ue(d,function(e){var f=e.cssText=e.parsedCssText;e.j&&e.j.cssText&&(f=f.replace(Fe,"").replace(Ge,""),e.cssText=Qf(c,f,b))})}da.Object.defineProperties(Lf.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var Yf=new Lf;var Zf={},$f=window.customElements;if($f&&!Q&&!Me){var ag=$f.define;$f.define=function(a,b,c){Zf[a]||(Zf[a]=$e(a));ag.call($f,a,b,c)}};function bg(){this.cache={}}bg.prototype.store=function(a,b,c,d){var e=this.cache[a]||[];e.push({B:b,styleElement:c,v:d});100<e.length&&e.shift();this.cache[a]=e};function cg(){}var dg=new RegExp(V.g+"\\s*([^\\s]*)");function eg(a){return(a=(a.classList&&a.classList.value?a.classList.value:a.getAttribute("class")||"").match(dg))?a[1]:""}function fg(a){var b=df(a).getRootNode();return b===a||b===a.ownerDocument?"":(a=b.host)?U(a).is:""}
205
+ function gg(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.target!==document.documentElement&&c.target!==document.head)for(var d=0;d<c.addedNodes.length;d++){var e=c.addedNodes[d];if(e.nodeType===Node.ELEMENT_NODE){var f=e.getRootNode(),g=eg(e);if(g&&f===e.ownerDocument&&("style"!==e.localName&&"template"!==e.localName||""===ff(e)))mf(e,g);else if(f instanceof ShadowRoot)for(f=fg(e),f!==g&&lf(e,g,f),e=window.ShadyDOM.nativeMethods.querySelectorAll.call(e,":not(."+V.g+")"),g=0;g<e.length;g++){f=e[g];
206
+ var h=fg(f);h&&W(f,h)}}}}}
207
+ if(!(Q||window.ShadyDOM&&window.ShadyDOM.handlesDynamicScoping)){var hg=new MutationObserver(gg),ig=function(a){hg.observe(a,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)ig(document);else{var jg=function(){ig(document.body)};window.HTMLImports?window.HTMLImports.whenReady(jg):requestAnimationFrame(function(){if("loading"===document.readyState){var a=function(){jg();document.removeEventListener("readystatechange",a)};document.addEventListener("readystatechange",
208
+ a)}else jg()})}cg=function(){gg(hg.takeRecords())}};var kg={};var lg=Promise.resolve();function mg(a){if(a=kg[a])a._applyShimCurrentVersion=a._applyShimCurrentVersion||0,a._applyShimValidatingVersion=a._applyShimValidatingVersion||0,a._applyShimNextVersion=(a._applyShimNextVersion||0)+1}function ng(a){return a._applyShimCurrentVersion===a._applyShimNextVersion}function og(a){a._applyShimValidatingVersion=a._applyShimNextVersion;a._validating||(a._validating=!0,lg.then(function(){a._applyShimCurrentVersion=a._applyShimNextVersion;a._validating=!1}))};var pg={},qg=new bg;function Y(){this.ra={};this.i=document.documentElement;var a=new se;a.rules=[];this.o=Hf(this.i,new Gf(a));this.aa=!1;this.g=this.h=null}n=Y.prototype;n.flush=function(){cg()};n.Ea=function(a){return We(a)};n.Pa=function(a){return Ue(a)};n.prepareTemplate=function(a,b,c){this.prepareTemplateDom(a,b);this.prepareTemplateStyles(a,b,c)};
209
+ n.prepareTemplateStyles=function(a,b,c){if(!a._prepared&&!Me){Q||Zf[b]||(Zf[b]=$e(b));a._prepared=!0;a.name=b;a.extends=c;kg[b]=a;var d=ff(a),e=gf(d);c={is:b,extends:c};for(var f=[],g=a.content.querySelectorAll("style"),h=0;h<g.length;h++){var k=g[h];if(k.hasAttribute("shady-unscoped")){if(!Q){var l=k.textContent;if(!Te.has(l)){Te.add(l);var m=document.createElement("style");m.setAttribute("shady-unscoped","");m.textContent=l;document.head.appendChild(m)}k.parentNode.removeChild(k)}}else f.push(k.textContent),
210
+ k.parentNode.removeChild(k)}f=f.join("").trim()+(pg[b]||"");rg(this);if(!e){if(g=!d)g=Oe.test(f)||Ne.test(f),Oe.lastIndex=0,Ne.lastIndex=0;h=te(f);g&&R&&this.h&&this.h.transformRules(h,b);a._styleAst=h}g=[];R||(g=Mf(a._styleAst));if(!g.length||R)h=Q?a.content:null,b=Zf[b]||null,d=nf(c,a._styleAst,null,d,e?f:""),d=d.length?Ye(d,c.is,h,b):null,a._style=d;a.g=g}};n.Ja=function(a,b){pg[b]=a.join(" ")};
211
+ n.prepareTemplateDom=function(a,b){if(!Me){var c=ff(a);Q||"shady"===c||a._domPrepared||(a._domPrepared=!0,jf(a.content,b))}};function sg(a){var b=U(a),c=b.is;b=b.R;var d=Zf[c]||null,e=kg[c];if(e){c=e._styleAst;var f=e.g;e=ff(e);b=new Gf(c,d,f,b,e);Hf(a,b);return b}}
212
+ function tg(a){!a.g&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(a.g=window.ShadyCSS.CustomStyleInterface,a.g.transformCallback=function(b){a.ua(b)},a.g.validateCallback=function(){requestAnimationFrame(function(){(a.g.enqueued||a.aa)&&a.flushCustomStyles()})})}function rg(a){if(!a.h&&window.ShadyCSS&&window.ShadyCSS.ApplyShim){a.h=window.ShadyCSS.ApplyShim;a.h.invalidCallback=mg;var b=!0}else b=!1;tg(a);return b}
213
+ n.flushCustomStyles=function(){if(!Me){var a=rg(this);if(this.g){var b=this.g.processStyles();if((a||this.g.enqueued)&&!gf(this.o.cssBuild)){if(R){if(!this.o.cssBuild)for(a=0;a<b.length;a++){var c=this.g.getStyleForCustomStyle(b[a]);if(c&&R&&this.h){var d=We(c);rg(this);this.h.transformRules(d);c.textContent=Ue(d)}}}else{ug(this,b);vg(this,this.i,this.o);for(a=0;a<b.length;a++)(c=this.g.getStyleForCustomStyle(b[a]))&&Xf(c,this.o.C);this.aa&&this.styleDocument()}this.g.enqueued=!1}}}};
214
+ function ug(a,b){b=b.map(function(c){return a.g.getStyleForCustomStyle(c)}).filter(function(c){return!!c});b.sort(function(c,d){c=d.compareDocumentPosition(c);return c&Node.DOCUMENT_POSITION_FOLLOWING?1:c&Node.DOCUMENT_POSITION_PRECEDING?-1:0});a.o.A.rules=b.map(function(c){return We(c)})}
215
+ n.styleElement=function(a,b){if(Me){if(b){X(a)||Hf(a,new Gf(null));var c=X(a);c.u=c.u||{};Object.assign(c.u,b);wg(this,a,c)}}else if(c=X(a)||sg(a))if(a!==this.i&&(this.aa=!0),b&&(c.u=c.u||{},Object.assign(c.u,b)),R)wg(this,a,c);else if(this.flush(),vg(this,a,c),c.ia&&c.ia.length){b=U(a).is;var d;a:{if(d=qg.cache[b])for(var e=d.length-1;0<=e;e--){var f=d[e];b:{var g=c.ia;for(var h=0;h<g.length;h++){var k=g[h];if(f.B[k]!==c.C[k]){g=!1;break b}}g=!0}if(g){d=f;break a}}d=void 0}g=d?d.styleElement:null;
216
+ e=c.v;(f=d&&d.v)||(f=this.ra[b]=(this.ra[b]||0)+1,f=b+"-"+f);c.v=f;f=c.v;h=Yf;h=g?g.textContent||"":Uf(h,a,c.C,f);k=X(a);var l=k.g;l&&!Q&&l!==g&&(l._useCount--,0>=l._useCount&&l.parentNode&&l.parentNode.removeChild(l));Q?k.g?(k.g.textContent=h,g=k.g):h&&(g=Ye(h,f,a.shadowRoot,k.h)):g?g.parentNode||(Kf&&-1<h.indexOf("@media")&&(g.textContent=h),Ze(g,null,k.h)):h&&(g=Ye(h,f,null,k.h));g&&(g._useCount=g._useCount||0,k.g!=g&&g._useCount++,k.g=g);f=g;Q||(g=c.v,k=h=a.getAttribute("class")||"",e&&(k=h.replace(new RegExp("\\s*x-scope\\s*"+
217
+ e+"\\s*","g")," ")),k+=(k?" ":"")+"x-scope "+g,h!==k&&cf(a,k));d||qg.store(b,c.C,f,c.v)}};
218
+ function wg(a,b,c){var d=U(b).is;if(c.u){var e=c.u,f;for(f in e)null===f?b.style.removeProperty(f):b.style.setProperty(f,e[f])}e=kg[d];if(!(!e&&b!==a.i||e&&""!==ff(e))&&e&&e._style&&!ng(e)){if(ng(e)||e._applyShimValidatingVersion!==e._applyShimNextVersion)rg(a),a.h&&a.h.transformRules(e._styleAst,d),e._style.textContent=nf(b,c.A),og(e);Q&&(a=b.shadowRoot)&&(a=a.querySelector("style"))&&(a.textContent=nf(b,c.A));c.A=e._styleAst}}
219
+ function xg(a,b){return(b=df(b).getRootNode().host)?X(b)||sg(b)?b:xg(a,b):a.i}function vg(a,b,c){var d=xg(a,b),e=X(d),f=e.C;d===a.i||f||(vg(a,d,e),f=e.C);a=Object.create(f||null);d=Tf(b,c.A,c.cssBuild);b=Rf(e.A,b).B;Object.assign(a,d.Ga,b,d.La);b=c.u;for(var g in b)if((e=b[g])||0===e)a[g]=e;g=Yf;b=Object.getOwnPropertyNames(a);for(e=0;e<b.length;e++)d=b[e],a[d]=Pf(g,a[d],a);c.C=a}n.styleDocument=function(a){this.styleSubtree(this.i,a)};
220
+ n.styleSubtree=function(a,b){var c=df(a),d=c.shadowRoot,e=a===this.i;(d||e)&&this.styleElement(a,b);if(a=e?c:d)for(a=Array.from(a.querySelectorAll("*")).filter(function(f){return df(f).shadowRoot}),b=0;b<a.length;b++)this.styleSubtree(a[b])};
221
+ n.ua=function(a){var b=this,c=ff(a);c!==this.o.cssBuild&&(this.o.cssBuild=c);if(!gf(c)){var d=We(a);Ve(d,function(e){if(Q)Ff(e);else{var f=V;e.selector=e.parsedSelector;Ff(e);e.selector=e.l=qf(f,e,f.i,void 0,void 0)}R&&""===c&&(rg(b),b.h&&b.h.transformRule(e))});R?a.textContent=Ue(d):this.o.A.rules.push(d)}};n.getComputedStyleValue=function(a,b){var c;R||(c=(X(a)||X(xg(this,a))).C[b]);return(c=c||window.getComputedStyle(a).getPropertyValue(b))?c.trim():""};
222
+ n.Oa=function(a,b){var c=df(a).getRootNode();b=b?("string"===typeof b?b:String(b)).split(/\s/):[];c=c.host&&c.host.localName;if(!c){var d=a.getAttribute("class");if(d){d=d.split(/\s/);for(var e=0;e<d.length;e++)if(d[e]===V.g){c=d[e+1];break}}}c&&b.push(V.g,c);R||(c=X(a))&&c.v&&b.push(Yf.g,c.v);cf(a,b.join(" "))};n.Ba=function(a){return X(a)};n.Na=function(a,b){W(a,b)};n.Qa=function(a,b){W(a,b,!0)};n.Ma=function(a){return fg(a)};n.Da=function(a){return eg(a)};Y.prototype.flush=Y.prototype.flush;
223
+ Y.prototype.prepareTemplate=Y.prototype.prepareTemplate;Y.prototype.styleElement=Y.prototype.styleElement;Y.prototype.styleDocument=Y.prototype.styleDocument;Y.prototype.styleSubtree=Y.prototype.styleSubtree;Y.prototype.getComputedStyleValue=Y.prototype.getComputedStyleValue;Y.prototype.setElementClass=Y.prototype.Oa;Y.prototype._styleInfoForNode=Y.prototype.Ba;Y.prototype.transformCustomStyleForDocument=Y.prototype.ua;Y.prototype.getStyleAst=Y.prototype.Ea;Y.prototype.styleAstToString=Y.prototype.Pa;
224
+ Y.prototype.flushCustomStyles=Y.prototype.flushCustomStyles;Y.prototype.scopeNode=Y.prototype.Na;Y.prototype.unscopeNode=Y.prototype.Qa;Y.prototype.scopeForNode=Y.prototype.Ma;Y.prototype.currentScopeForNode=Y.prototype.Da;Y.prototype.prepareAdoptedCssText=Y.prototype.Ja;Object.defineProperties(Y.prototype,{nativeShadow:{get:function(){return Q}},nativeCss:{get:function(){return R}}});var Z=new Y,yg,zg;window.ShadyCSS&&(yg=window.ShadyCSS.ApplyShim,zg=window.ShadyCSS.CustomStyleInterface);
237
225
  window.ShadyCSS={ScopingShim:Z,prepareTemplate:function(a,b,c){Z.flushCustomStyles();Z.prepareTemplate(a,b,c)},prepareTemplateDom:function(a,b){Z.prepareTemplateDom(a,b)},prepareTemplateStyles:function(a,b,c){Z.flushCustomStyles();Z.prepareTemplateStyles(a,b,c)},styleSubtree:function(a,b){Z.flushCustomStyles();Z.styleSubtree(a,b)},styleElement:function(a){Z.flushCustomStyles();Z.styleElement(a)},styleDocument:function(a){Z.flushCustomStyles();Z.styleDocument(a)},flushCustomStyles:function(){Z.flushCustomStyles()},
238
- getComputedStyleValue:function(a,b){return Z.getComputedStyleValue(a,b)},nativeCss:R,nativeShadow:Q,cssBuild:Ye,disableRuntime:Ze};Lg&&(window.ShadyCSS.ApplyShim=Lg);Mg&&(window.ShadyCSS.CustomStyleInterface=Mg);}).call(this);
226
+ getComputedStyleValue:function(a,b){return Z.getComputedStyleValue(a,b)},nativeCss:R,nativeShadow:Q,cssBuild:Le,disableRuntime:Me};yg&&(window.ShadyCSS.ApplyShim=yg);zg&&(window.ShadyCSS.CustomStyleInterface=zg);}).call(this);
239
227
 
240
228
  //# sourceMappingURL=webcomponents-sd-ce.js.map