UNPKG

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