jekyll-theme-hydejack 9.1.5 → 9.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/body/footer.html +1 -1
  3. data/_includes/body/scripts.html +2 -2
  4. data/_includes/components/post.html +1 -1
  5. data/_includes/head/meta-static.html +1 -1
  6. data/_includes/head/styles-inline.html +1 -1
  7. data/_includes/head/styles-no-inline.html +1 -1
  8. data/_includes/header.txt +1 -1
  9. data/_includes/scripts/load-js.min.js +1 -1
  10. data/_includes/templates/index.html +0 -20
  11. data/_layouts/compress.html +1 -1
  12. data/_sass/_tippy.scss +3 -0
  13. data/_sass/hydejack/__link__/_mark-external.scss +1 -1
  14. data/_sass/hydejack/_mark-external.pre.scss +1 -1
  15. data/_sass/pooleparty/__inline__/_posts.scss +1 -1
  16. data/_sass/pooleparty/_posts.pre.scss +1 -1
  17. data/assets/css/{hydejack-9.1.5.css → hydejack-9.1.6.css} +0 -0
  18. data/assets/js/{LEGACY-clap-button-hydejack-9.1.5.js → LEGACY-clap-button-hydejack-9.1.6.js} +1 -1
  19. data/assets/js/{LEGACY-drawer-hydejack-9.1.5.js → LEGACY-drawer-hydejack-9.1.6.js} +1 -1
  20. data/assets/js/{LEGACY-fetch-hydejack-9.1.5.js → LEGACY-fetch-hydejack-9.1.6.js} +1 -1
  21. data/assets/js/LEGACY-hydejack-9.1.6.js +27 -0
  22. data/assets/js/{LEGACY-navbar-hydejack-9.1.5.js → LEGACY-navbar-hydejack-9.1.6.js} +2 -2
  23. data/assets/js/LEGACY-push-state-hydejack-9.1.6.js +14 -0
  24. data/assets/js/{LEGACY-resize-observer-hydejack-9.1.5.js → LEGACY-resize-observer-hydejack-9.1.6.js} +1 -1
  25. data/assets/js/{LEGACY-shadydom-hydejack-9.1.5.js → LEGACY-shadydom-hydejack-9.1.6.js} +1 -1
  26. data/assets/js/LEGACY-vendors~clap-button-hydejack-9.1.6.js +14 -0
  27. data/assets/js/LEGACY-vendors~drawer-hydejack-9.1.6.js +48 -0
  28. data/assets/js/{LEGACY-vendors~drawer~push-state-hydejack-9.1.5.js → LEGACY-vendors~drawer~push-state-hydejack-9.1.6.js} +14 -14
  29. data/assets/js/{LEGACY-vendors~fetch-hydejack-9.1.5.js → LEGACY-vendors~fetch-hydejack-9.1.6.js} +1 -1
  30. data/assets/js/{LEGACY-vendors~intersection-observer-hydejack-9.1.5.js → LEGACY-vendors~intersection-observer-hydejack-9.1.6.js} +1 -1
  31. data/assets/js/LEGACY-vendors~push-state-hydejack-9.1.6.js +34 -0
  32. data/assets/js/{LEGACY-vendors~shadydom-hydejack-9.1.5.js → LEGACY-vendors~shadydom-hydejack-9.1.6.js} +17 -17
  33. data/assets/js/{LEGACY-vendors~webanimations-hydejack-9.1.5.js → LEGACY-vendors~webanimations-hydejack-9.1.6.js} +1 -1
  34. data/assets/js/{LEGACY-vendors~webcomponents-hydejack-9.1.5.js → LEGACY-vendors~webcomponents-hydejack-9.1.6.js} +1 -1
  35. data/assets/js/{LEGACY-webcomponents-hydejack-9.1.5.js → LEGACY-webcomponents-hydejack-9.1.6.js} +1 -1
  36. data/assets/js/{clap-button-hydejack-9.1.5.js → clap-button-hydejack-9.1.6.js} +1 -1
  37. data/assets/js/{drawer-hydejack-9.1.5.js → drawer-hydejack-9.1.6.js} +1 -1
  38. data/assets/js/{fetch-hydejack-9.1.5.js → fetch-hydejack-9.1.6.js} +1 -1
  39. data/assets/js/hydejack-9.1.6.js +28 -0
  40. data/assets/js/{navbar-hydejack-9.1.5.js → navbar-hydejack-9.1.6.js} +2 -2
  41. data/assets/js/{push-state-hydejack-9.1.5.js → push-state-hydejack-9.1.6.js} +1 -1
  42. data/assets/js/{resize-observer-hydejack-9.1.5.js → resize-observer-hydejack-9.1.6.js} +1 -1
  43. data/assets/js/{shadydom-hydejack-9.1.5.js → shadydom-hydejack-9.1.6.js} +1 -1
  44. data/assets/js/{vendors~clap-button-hydejack-9.1.5.js → vendors~clap-button-hydejack-9.1.6.js} +1 -1
  45. data/assets/js/{vendors~drawer-hydejack-9.1.5.js → vendors~drawer-hydejack-9.1.6.js} +2 -2
  46. data/assets/js/{vendors~drawer~push-state-hydejack-9.1.5.js → vendors~drawer~push-state-hydejack-9.1.6.js} +4 -4
  47. data/assets/js/{vendors~fetch-hydejack-9.1.5.js → vendors~fetch-hydejack-9.1.6.js} +1 -1
  48. data/assets/js/{vendors~intersection-observer-hydejack-9.1.5.js → vendors~intersection-observer-hydejack-9.1.6.js} +1 -1
  49. data/assets/js/vendors~push-state-hydejack-9.1.6.js +34 -0
  50. data/assets/js/{vendors~shadydom-hydejack-9.1.5.js → vendors~shadydom-hydejack-9.1.6.js} +1 -1
  51. data/assets/js/{vendors~webanimations-hydejack-9.1.5.js → vendors~webanimations-hydejack-9.1.6.js} +1 -1
  52. data/assets/js/{webcomponents-hydejack-9.1.5.js → webcomponents-hydejack-9.1.6.js} +1 -1
  53. data/assets/version.json +2 -2
  54. metadata +43 -43
  55. data/assets/js/LEGACY-hydejack-9.1.5.js +0 -27
  56. data/assets/js/LEGACY-push-state-hydejack-9.1.5.js +0 -14
  57. data/assets/js/LEGACY-vendors~clap-button-hydejack-9.1.5.js +0 -14
  58. data/assets/js/LEGACY-vendors~drawer-hydejack-9.1.5.js +0 -48
  59. data/assets/js/LEGACY-vendors~push-state-hydejack-9.1.5.js +0 -34
  60. data/assets/js/hydejack-9.1.5.js +0 -28
  61. data/assets/js/vendors~push-state-hydejack-9.1.5.js +0 -34
@@ -9,9 +9,9 @@
9
9
  * /\___/ \ \____/
10
10
  * \/__/ \/___/
11
11
  *
12
- * Powered by Hydejack v9.1.5 <https://hydejack.com/>
12
+ * Powered by Hydejack v9.1.6 <https://hydejack.com/>
13
13
  */
14
- (window.webpackJsonp=window.webpackJsonp||[]).push([[14],{336:function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},350:function(e,t,n){(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}(function(){"use strict";var n;function r(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}function o(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:r(e)}}function i(e){if(!(e instanceof Array)){e=o(e);for(var t,n=[];!(t=e.next()).done;)n.push(t.value);e=n}return e}var s=function(n){n=["object"==("undefined"==typeof globalThis?"undefined":t(globalThis))&&globalThis,n,"object"==("undefined"==typeof window?"undefined":t(window))&&window,"object"==("undefined"==typeof self?"undefined":t(self))&&self,"object"==(void 0===e?"undefined":t(e))&&e];for(var r=0;r<n.length;++r){var o=n[r];if(o&&o.Math==Math)return o}throw Error("Cannot find global object")}(this);function a(){}function l(e){return e.__shady||(e.__shady=new a),e.__shady}function u(e){return e&&e.__shady}a.prototype.toJSON=function(){return{}};var c=window.ShadyDOM||{};c.Y=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var d=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");function h(){return Document.prototype.msElementsFromPoint?"msElementsFromPoint":"elementsFromPoint"}function f(e){return(e=u(e))&&void 0!==e.firstChild}function _(e){return e instanceof ShadowRoot}function p(e){return(e=(e=u(e))&&e.root)&&Jt(e)}c.i=!!(d&&d.configurable&&d.get),c.K=c.force||!c.Y,c.l=c.noPatch||!1,c.A=c.preferPerformance,c.L="on-demand"===c.l,c.R=navigator.userAgent.match("Trident");var y=Element.prototype,m=y.matches||y.matchesSelector||y.mozMatchesSelector||y.msMatchesSelector||y.oMatchesSelector||y.webkitMatchesSelector,v=document.createTextNode(""),g=0,S=[];function E(e){S.push(e),v.textContent=g++}new MutationObserver((function(){for(;S.length;)try{S.shift()()}catch(e){throw v.textContent=g++,e}})).observe(v,{characterData:!0});var N=document.contains?function(e,t){return e.__shady_native_contains(t)}:function(e,t){return e===t||e.documentElement&&e.documentElement.__shady_native_contains(t)};function b(e,t){for(;t;){if(t==e)return!0;t=t.__shady_parentNode}return!1}function C(e){for(var t=e.length-1;0<=t;t--){var n=e[t],r=n.getAttribute("id")||n.getAttribute("name");r&&"length"!==r&&isNaN(r)&&(e[r]=n)}return e.item=function(t){return e[t]},e.namedItem=function(t){if("length"!==t&&isNaN(t)&&e[t])return e[t];for(var n=o(e),r=n.next();!r.done;r=n.next())if(((r=r.value).getAttribute("id")||r.getAttribute("name"))==t)return r;return null},e}function w(e){var t=[];for(e=e.__shady_native_firstChild;e;e=e.__shady_native_nextSibling)t.push(e);return t}function T(e){var t=[];for(e=e.__shady_firstChild;e;e=e.__shady_nextSibling)t.push(e);return t}function O(e,t,n){if(n.configurable=!0,n.value)e[t]=n.value;else try{Object.defineProperty(e,t,n)}catch(e){}}function x(e,t,n,r){for(var o in n=void 0===n?"":n,t)r&&0<=r.indexOf(o)||O(e,n+o,t[o])}function P(e,t){for(var n in t)n in e&&O(e,n,t[n])}function k(e){var t={};return Object.getOwnPropertyNames(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t}function M(e,t){for(var n,r=Object.getOwnPropertyNames(t),o=0;o<r.length;o++)e[n=r[o]]=t[n]}function D(e){return e instanceof Node?e:document.createTextNode(""+e)}function R(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(1===t.length)return D(t[0]);n=document.createDocumentFragment();for(var r=(t=o(t)).next();!r.done;r=t.next())n.appendChild(D(r.value));return n}var A,L=[];function I(e){A||(A=!0,E(F)),L.push(e)}function F(){A=!1;for(var e=!!L.length;L.length;)L.shift()();return e}function j(){this.g=!1,this.addedNodes=[],this.removedNodes=[],this.F=new Set}F.list=L,j.prototype.flush=function(){if(this.g){this.g=!1;var e=this.takeRecords();e.length&&this.F.forEach((function(t){t(e)}))}},j.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var e=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],e}return[]};var H=/[&\u00A0"]/g,B=/[&\u00A0<>]/g;function U(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}}function q(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t}var V=q("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),G=q("style script xmp iframe noembed noframes plaintext noscript".split(" "));function W(e,t){"template"===e.localName&&(e=e.content);for(var n="",r=t?t(e):e.childNodes,o=0,i=r.length,s=void 0;o<i&&(s=r[o]);o++){e:{var a=s,l=e,u=t;switch(a.nodeType){case Node.ELEMENT_NODE:for(var c,d="<"+(l=a.localName),h=a.attributes,f=0;c=h[f];f++)d+=" "+c.name+'="'+c.value.replace(H,U)+'"';d+=">",a=V[l]?d:d+W(a,u)+"</"+l+">";break e;case Node.TEXT_NODE:a=a.data,a=l&&G[l.localName]?a:a.replace(B,U);break e;case Node.COMMENT_NODE:a="\x3c!--"+a.data+"--\x3e";break e;default:throw window.console.error(a),Error("not implemented")}}n+=a}return n}var K=c.i,X={querySelector:function(e){return this.__shady_native_querySelector(e)},querySelectorAll:function(e){return this.__shady_native_querySelectorAll(e)}},Y={};function $(e){Y[e]=function(t){return t["__shady_native_"+e]}}function z(e,t){for(var n in x(e,t,"__shady_native_"),t)$(n)}function J(e,t){t=void 0===t?[]:t;for(var n=0;n<t.length;n++){var r=t[n],o=Object.getOwnPropertyDescriptor(e,r);o&&(Object.defineProperty(e,"__shady_native_"+r,o),o.value?X[r]||(X[r]=o.value):$(r))}}var Z=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),Q=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),ee=document.implementation.createHTMLDocument("inert");function te(e){for(var t;t=e.__shady_native_firstChild;)e.__shady_native_removeChild(t)}var ne=["firstElementChild","lastElementChild","children","childElementCount"],re=["querySelector","querySelectorAll","append","prepend","replaceChildren"];var oe=k({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}}),ie=k({get textContent(){return this.__shady_textContent},set textContent(e){this.__shady_textContent=e},get innerHTML(){return this.__shady_innerHTML},set innerHTML(e){this.__shady_innerHTML=e}}),se=k({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(e){this.__shady_className=e}});function ae(e){for(var t in e){var n=e[t];n&&(n.enumerable=!1)}}ae(oe),ae(ie),ae(se);var le,ue=c.i||!0===c.l,ce=ue?function(){}:function(e){var t=l(e);t.T||(t.T=!0,P(e,se))},de=ue?function(){}:function(e){var t=l(e);t.S||(t.S=!0,P(e,oe),window.customElements&&window.customElements.polyfillWrapFlushCallback&&!c.l||P(e,ie))},he="__eventWrappers"+Date.now(),fe=(le=Object.getOwnPropertyDescriptor(Event.prototype,"composed"))?function(e){return le.get.call(e)}:null,_e=function(){function e(){}var t=!1,n={get capture(){return t=!0,!1}};return window.addEventListener("test",e,n),window.removeEventListener("test",e,n),t}();function pe(e){if(e&&"object"===t(e))var n=!!e.capture,r=!!e.once,o=!!e.passive,i=e.o;else n=!!e,o=r=!1;return{P:i,capture:n,once:r,passive:o,O:_e?e:n}}var ye={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,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},me={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function ve(e){return e instanceof Node?e.__shady_getRootNode():e}function ge(e,t){var n=[],r=e;for(e=ve(e);r;)n.push(r),r=r.__shady_assignedSlot?r.__shady_assignedSlot:r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host&&(t||r!==e)?r.host:r.__shady_parentNode;return n[n.length-1]===document&&n.push(window),n}function Se(e,t){if(!_)return e;e=ge(e,!0);for(var n,r,o=0,i=void 0,s=void 0;o<t.length;o++)if((r=ve(n=t[o]))!==i&&(s=e.indexOf(r),i=r),!_(r)||-1<s)return n}function Ee(e){function t(t,n){return(t=new e(t,n)).__composed=n&&!!n.composed,t}return t.__proto__=e,t.prototype=e.prototype,t}var Ne={focus:!0,blur:!0};function be(e){return e.__target!==e.target||e.__relatedTarget!==e.relatedTarget}function Ce(e,t,n){if(n=t.__handlers&&t.__handlers[e.type]&&t.__handlers[e.type][n])for(var r,o=0;(r=n[o])&&(!be(e)||e.target!==e.relatedTarget)&&(r.call(t,e),!e.__immediatePropagationStopped);o++);}function we(e){var t=e.composedPath(),n=t.map((function(e){return Se(e,t)})),r=e.bubbles;Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:function(){return s}});var o=Event.CAPTURING_PHASE;Object.defineProperty(e,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return o}});for(var i=t.length-1;0<=i;i--){var s=t[i];if(o=s===n[i]?Event.AT_TARGET:Event.CAPTURING_PHASE,Ce(e,s,"capture"),e.H)return}for(i=0;i<t.length;i++){var a=(s=t[i])===n[i];if((a||r)&&(o=a?Event.AT_TARGET:Event.BUBBLING_PHASE,Ce(e,s,"bubble"),e.H))return}o=0,s=null}function Te(e,t,n,r,o,i){for(var s=0;s<e.length;s++){var a=e[s],l=a.type,u=a.capture,c=a.once,d=a.passive;if(t===a.node&&n===l&&r===u&&o===c&&i===d)return s}return-1}function Oe(e){return F(),!c.A&&this instanceof Node&&!N(document,this)?(e.__target||Me(e,this),we(e)):this.__shady_native_dispatchEvent(e)}function xe(e,n,r){var o=pe(r),i=o.capture,s=o.once,a=o.passive,l=o.P;if(o=o.O,n){var u=t(n);if(("function"===u||"object"===u)&&("object"!==u||n.handleEvent&&"function"==typeof n.handleEvent)){if(me[e])return this.__shady_native_addEventListener(e,n,o);var c=l||this;if(l=n[he]){if(-1<Te(l,c,e,i,s,a))return}else n[he]=[];l=function(t){if(s&&this.__shady_removeEventListener(e,n,r),t.__target||Me(t),c!==this){var o=Object.getOwnPropertyDescriptor(t,"currentTarget");Object.defineProperty(t,"currentTarget",{get:function(){return c},configurable:!0});var a=Object.getOwnPropertyDescriptor(t,"eventPhase");Object.defineProperty(t,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return i?Event.CAPTURING_PHASE:Event.BUBBLING_PHASE}})}if(t.__previousCurrentTarget=t.currentTarget,(!_(c)&&"slot"!==c.localName||-1!=t.composedPath().indexOf(c))&&(t.composed||-1<t.composedPath().indexOf(c)))if(be(t)&&t.target===t.relatedTarget)t.eventPhase===Event.BUBBLING_PHASE&&t.stopImmediatePropagation();else if(t.eventPhase===Event.CAPTURING_PHASE||t.bubbles||t.target===c||c instanceof Window){var l="function"===u?n.call(c,t):n.handleEvent&&n.handleEvent(t);return c!==this&&(o?(Object.defineProperty(t,"currentTarget",o),o=null):delete t.currentTarget,a?(Object.defineProperty(t,"eventPhase",a),a=null):delete t.eventPhase),l}},n[he].push({node:c,type:e,capture:i,once:s,passive:a,aa:l}),this.__handlers=this.__handlers||{},this.__handlers[e]=this.__handlers[e]||{capture:[],bubble:[]},this.__handlers[e][i?"capture":"bubble"].push(l),Ne[e]||this.__shady_native_addEventListener(e,l,o)}}}function Pe(e,t,n){if(t){var r=pe(n);n=r.capture;var o=r.once,i=r.passive,s=r.P;if(r=r.O,me[e])return this.__shady_native_removeEventListener(e,t,r);var a=s||this;s=void 0;var l=null;try{l=t[he]}catch(e){}l&&(-1<(o=Te(l,a,e,n,o,i))&&(s=l.splice(o,1)[0].aa,l.length||(t[he]=void 0))),this.__shady_native_removeEventListener(e,s||t,r),s&&this.__handlers&&this.__handlers[e]&&(-1<(t=(e=this.__handlers[e][n?"capture":"bubble"]).indexOf(s))&&e.splice(t,1))}}var ke=k({get composed(){return void 0===this.__composed&&(fe?this.__composed="focusin"===this.type||"focusout"===this.type||fe(this):!1!==this.isTrusted&&(this.__composed=ye[this.type])),this.__composed||!1},composedPath:function(){return this.__composedPath||(this.__composedPath=ge(this.__target,this.composed)),this.__composedPath},get target(){return Se(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){return this.__relatedTarget?(this.__relatedTargetComposedPath||(this.__relatedTargetComposedPath=ge(this.__relatedTarget,!0)),Se(this.currentTarget||this.__previousCurrentTarget,this.__relatedTargetComposedPath)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.H=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.H=this.__immediatePropagationStopped=!0}});function Me(e,t){if(t=void 0===t?e.target:t,e.__target=t,e.__relatedTarget=e.relatedTarget,c.i){if(!(t=Object.getPrototypeOf(e)).hasOwnProperty("__shady_patchedProto")){var n=Object.create(t);n.__shady_sourceProto=t,x(n,ke),t.__shady_patchedProto=n}e.__proto__=t.__shady_patchedProto}else x(e,ke)}var De=Ee(Event),Re=Ee(CustomEvent),Ae=Ee(MouseEvent);var Le=Object.getOwnPropertyNames(Element.prototype).filter((function(e){return"on"===e.substring(0,2)})),Ie=Object.getOwnPropertyNames(HTMLElement.prototype).filter((function(e){return"on"===e.substring(0,2)}));function Fe(e){return{set:function(t){var n=l(this),r=e.substring(2);n.m||(n.m={}),n.m[e]&&this.removeEventListener(r,n.m[e]),this.__shady_addEventListener(r,t),n.m[e]=t},get:function(){var t=u(this);return t&&t.m&&t.m[e]},configurable:!0}}function je(e,t){return{index:e,B:[],D:t}}function He(e,t,n,r){var o=0,i=0,s=0,a=0,l=Math.min(t-o,r-i);if(0==o&&0==i)e:{for(s=0;s<l;s++)if(e[s]!==n[s])break e;s=l}if(t==e.length&&r==n.length){a=e.length;for(var u=n.length,c=0;c<l-s&&Be(e[--a],n[--u]);)c++;a=c}if(i+=s,r-=a,0==(t-=a)-(o+=s)&&0==r-i)return[];if(o==t){for(t=je(o,0);i<r;)t.B.push(n[i++]);return[t]}if(i==r)return[je(o,t-o)];for(r=r-(s=i)+1,a=t-(l=o)+1,t=Array(r),u=0;u<r;u++)t[u]=Array(a),t[u][0]=u;for(u=0;u<a;u++)t[0][u]=u;for(u=1;u<r;u++)for(c=1;c<a;c++)if(e[l+c-1]===n[s+u-1])t[u][c]=t[u-1][c-1];else{var d=t[u-1][c]+1,h=t[u][c-1]+1;t[u][c]=d<h?d:h}for(l=t.length-1,s=t[0].length-1,r=t[l][s],e=[];0<l||0<s;)0==l?(e.push(2),s--):0==s?(e.push(3),l--):(a=t[l-1][s-1],(d=(u=t[l-1][s])<(c=t[l][s-1])?u<a?u:a:c<a?c:a)==a?(a==r?e.push(0):(e.push(1),r=a),l--,s--):d==u?(e.push(3),l--,r=u):(e.push(2),s--,r=c));for(e.reverse(),t=void 0,l=[],s=0;s<e.length;s++)switch(e[s]){case 0:t&&(l.push(t),t=void 0),o++,i++;break;case 1:t||(t=je(o,0)),t.D++,o++,t.B.push(n[i]),i++;break;case 2:t||(t=je(o,0)),t.D++,o++;break;case 3:t||(t=je(o,0)),t.B.push(n[i]),i++}return t&&l.push(t),l}function Be(e,t){return e===t}var Ue=k({dispatchEvent:Oe,addEventListener:xe,removeEventListener:Pe}),qe=null;function Ve(){return qe||(qe=window.ShadyCSS&&window.ShadyCSS.ScopingShim),qe||null}function Ge(e,t,n){var r=Ve();return!(!r||"class"!==t)&&(r.setElementClass(e,n),!0)}function We(e,t){var n=Ve();n&&n.unscopeNode(e,t)}function Ke(e){if(e.nodeType!==Node.ELEMENT_NODE)return"";var t=Ve();return t?t.currentScopeForNode(e):""}function Xe(e,t){if(e)for(e.nodeType===Node.ELEMENT_NODE&&t(e),e=e.__shady_firstChild;e;e=e.__shady_nextSibling)e.nodeType===Node.ELEMENT_NODE&&Xe(e,t)}var Ye=window.document,$e=c.A,ze=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),Je=ze&&ze.get;function Ze(e){for(var t;t=e.__shady_firstChild;)e.__shady_removeChild(t)}function Qe(e,t,n){if(e=(e=u(e))&&e.v){if(t)if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(var r=0,o=t.childNodes.length;r<o;r++)e.addedNodes.push(t.childNodes[r]);else e.addedNodes.push(t);n&&e.removedNodes.push(n),function(e){e.g||(e.g=!0,E((function(){e.flush()})))}(e)}}var et=k({get parentNode(){var e=u(this);return void 0!==(e=e&&e.parentNode)?e:this.__shady_native_parentNode},get firstChild(){var e=u(this);return void 0!==(e=e&&e.firstChild)?e:this.__shady_native_firstChild},get lastChild(){var e=u(this);return void 0!==(e=e&&e.lastChild)?e:this.__shady_native_lastChild},get nextSibling(){var e=u(this);return void 0!==(e=e&&e.nextSibling)?e:this.__shady_native_nextSibling},get previousSibling(){var e=u(this);return void 0!==(e=e&&e.previousSibling)?e:this.__shady_native_previousSibling},get childNodes(){if(f(this)){var e=u(this);if(!e.childNodes){e.childNodes=[];for(var t=this.__shady_firstChild;t;t=t.__shady_nextSibling)e.childNodes.push(t)}var n=e.childNodes}else n=this.__shady_native_childNodes;return n.item=function(e){return n[e]},n},get parentElement(){var e=u(this);return(e=e&&e.parentNode)&&e.nodeType!==Node.ELEMENT_NODE&&(e=null),void 0!==e?e:this.__shady_native_parentElement},get isConnected(){if(Je&&Je.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;var e=this.ownerDocument;if(null===e||N(e,this))return!0;for(e=this;e&&!(e instanceof Document);)e=e.__shady_parentNode||(_(e)?e.host:void 0);return!!(e&&e instanceof Document)},get textContent(){if(f(this)){for(var e=[],t=this.__shady_firstChild;t;t=t.__shady_nextSibling)t.nodeType!==Node.COMMENT_NODE&&e.push(t.__shady_textContent);return e.join("")}return this.__shady_native_textContent},set textContent(e){switch(null==e&&(e=""),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:if(!f(this)&&c.i){var t=this.__shady_firstChild;(t!=this.__shady_lastChild||t&&t.nodeType!=Node.TEXT_NODE)&&Ze(this),this.__shady_native_textContent=e}else Ze(this),(0<e.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_insertBefore(document.createTextNode(e));break;default:this.nodeValue=e}},insertBefore:function(e,t){if(this.ownerDocument!==Ye&&e.ownerDocument!==Ye)return this.__shady_native_insertBefore(e,t),e;if(e===this)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");if(t){var n=u(t);if(void 0!==(n=n&&n.parentNode)&&n!==this||void 0===n&&t.__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(t===e)return e;Qe(this,e);var r=[],o=(n=tn(this))?n.host.localName:Ke(this),s=e.__shady_parentNode;if(s){var a=Ke(e),c=!!n||!tn(e)||$e&&void 0!==this.__noInsertionPoint;s.__shady_removeChild(e,c)}s=!0;var d=(!$e||void 0===e.__noInsertionPoint&&void 0===this.__noInsertionPoint)&&!function e(t,n){var r=Ve();if(!r)return!0;if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(r=!0,t=t.__shady_firstChild;t;t=t.__shady_nextSibling)r=r&&e(t,n);return r}return t.nodeType!==Node.ELEMENT_NODE||r.currentScopeForNode(t)===n}(e,o),h=n&&!e.__noInsertionPoint&&(!$e||e.nodeType===Node.DOCUMENT_FRAGMENT_NODE);return(h||d)&&(d&&(a=a||Ke(e)),Xe(e,(function(e){if(h&&"slot"===e.localName&&r.push(e),d){var t=a;Ve()&&(t&&We(e,t),(t=Ve())&&t.scopeNode(e,o))}}))),r.length&&(Xt(n),n.j.push.apply(n.j,i(r)),qt(n)),f(this)&&(function(e,t,n){Mt(t,2);var r=l(t);if(void 0!==r.firstChild&&(r.childNodes=null),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(e=e.__shady_native_firstChild;e;e=e.__shady_native_nextSibling)Dt(e,t,r,n);else Dt(e,t,r,n)}(e,this,t),(c=u(this)).root?(s=!1,p(this)&&qt(c.root)):n&&"slot"===this.localName&&(s=!1,qt(n))),s?(n=_(this)?this.host:this,t?(t=function e(t){var n=t;if(t&&"slot"===t.localName){var r=u(t);(r=r&&r.u)&&(n=r.length?r[0]:e(t.__shady_nextSibling))}return n}(t),n.__shady_native_insertBefore(e,t)):n.__shady_native_appendChild(e)):e.ownerDocument!==this.ownerDocument&&this.ownerDocument.adoptNode(e),e},appendChild:function(e){if(this!=e||!_(e))return this.__shady_insertBefore(e)},removeChild:function(e,t){if(t=void 0!==t&&t,this.ownerDocument!==Ye)return this.__shady_native_removeChild(e);if(e.__shady_parentNode!==this)throw Error("The node to be removed is not a child of this node: "+e);Qe(this,null,e);var n=tn(e),r=n&&function(e,t){if(e.g){Yt(e);var n,r=e.h;for(n in r)for(var o=r[n],i=0;i<o.length;i++){var s=o[i];if(b(t,s)){o.splice(i,1);var a=e.g.indexOf(s);if(0<=a&&(e.g.splice(a,1),(a=u(s.__shady_parentNode))&&a.C&&a.C--),i--,s=u(s),a=s.u)for(var l=0;l<a.length;l++){var c=a[l],d=c.__shady_native_parentNode;d&&d.__shady_native_removeChild(c)}s.u=[],s.assignedNodes=[],a=!0}}return a}}(n,e),o=u(this);if(f(this)&&(function(e,t){var n=l(e);t=l(t),e===t.firstChild&&(t.firstChild=n.nextSibling),e===t.lastChild&&(t.lastChild=n.previousSibling),e=n.previousSibling;var r=n.nextSibling;e&&(l(e).nextSibling=r),r&&(l(r).previousSibling=e),n.parentNode=n.previousSibling=n.nextSibling=void 0,void 0!==t.childNodes&&(t.childNodes=null)}(e,this),p(this))){qt(o.root);var i=!0}if(Ve()&&!t&&n&&e.nodeType!==Node.TEXT_NODE){var s=Ke(e);Xe(e,(function(e){We(e,s)}))}return function e(t){var n=u(t);if(n&&void 0!==n.G)for(n=t.__shady_firstChild;n;n=n.__shady_nextSibling)e(n);(t=u(t))&&(t.G=void 0)}(e),n&&((t="slot"===this.localName)&&(i=!0),(r||t)&&qt(n)),i||(i=_(this)?this.host:this,(!o.root&&"slot"!==e.localName||i===e.__shady_native_parentNode)&&i.__shady_native_removeChild(e)),e},replaceChild:function(e,t){return this.__shady_insertBefore(e,t),this.__shady_removeChild(t),e},cloneNode:function(e){if("template"==this.localName)return this.__shady_native_cloneNode(e);var t=this.__shady_native_cloneNode(!1);if(e&&t.nodeType!==Node.ATTRIBUTE_NODE){e=this.__shady_firstChild;for(var n;e;e=e.__shady_nextSibling)n=e.__shady_cloneNode(!0),t.__shady_appendChild(n)}return t},getRootNode:function(e){if(this&&this.nodeType){var t=l(this),n=t.G;return void 0===n&&(_(this)?(n=this,t.G=n):(n=(n=this.__shady_parentNode)?n.__shady_getRootNode(e):this,document.documentElement.__shady_native_contains(this)&&(t.G=n))),n}},contains:function(e){return b(this,e)}}),tt=k({get assignedSlot(){var e=this.__shady_parentNode;return(e=e&&e.__shady_shadowRoot)&&Vt(e),(e=u(this))&&e.assignedSlot||null}});function nt(e,t,n){var r=[];return function e(t,n,r,o){for(t=t.__shady_firstChild;t;t=t.__shady_nextSibling){var i;if(i=t.nodeType===Node.ELEMENT_NODE){var s=n,a=r,l=o,u=s(i=t);u&&l.push(i),a&&a(u)?i=u:(e(i,s,a,l),i=void 0)}if(i)break}}(e,t,n,r),r}var rt={get firstElementChild(){var e=u(this);if(e&&void 0!==e.firstChild){for(e=this.__shady_firstChild;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_nextSibling;return e}return this.__shady_native_firstElementChild},get lastElementChild(){var e=u(this);if(e&&void 0!==e.lastChild){for(e=this.__shady_lastChild;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_previousSibling;return e}return this.__shady_native_lastElementChild},get children(){return f(this)?C(Array.prototype.filter.call(T(this),(function(e){return e.nodeType===Node.ELEMENT_NODE}))):this.__shady_native_children},get childElementCount(){var e=this.__shady_children;return e?e.length:0}},ot=k((rt.append=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];this.__shady_insertBefore(R.apply(null,i(t)),null)},rt.prepend=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];this.__shady_insertBefore(R.apply(null,i(t)),this.__shady_firstChild)},rt.replaceChildren=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];for(;null!==(n=this.__shady_firstChild);)this.__shady_removeChild(n);this.__shady_insertBefore(R.apply(null,i(t)),null)},rt)),it=k({querySelector:function(e){return nt(this,(function(t){return m.call(t,e)}),(function(e){return!!e}))[0]||null},querySelectorAll:function(e,t){if(t){t=Array.prototype.slice.call(this.__shady_native_querySelectorAll(e));var n=this.__shady_getRootNode();return C(t.filter((function(e){return e.__shady_getRootNode()==n})))}return C(nt(this,(function(t){return m.call(t,e)})))}}),st=c.A&&!c.l?M({},ot):ot;M(ot,it);var at=k({after:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(null!==(n=this.__shady_parentNode)){var r=this.__shady_nextSibling;n.__shady_insertBefore(R.apply(null,i(t)),r)}},before:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];null!==(n=this.__shady_parentNode)&&n.__shady_insertBefore(R.apply(null,i(t)),this)},remove:function(){var e=this.__shady_parentNode;null!==e&&e.__shady_removeChild(this)},replaceWith:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(null!==(n=this.__shady_parentNode)){var r=this.__shady_nextSibling;n.__shady_removeChild(this),n.__shady_insertBefore(R.apply(null,i(t)),r)}}}),lt=window.document;function ut(e,t){if("slot"===t)p(e=e.__shady_parentNode)&&qt(u(e).root);else if("slot"===e.localName&&"name"===t&&(t=tn(e))){if(t.g){Yt(t);var n=e.U,r=$t(e);if(r!==n){var o=(n=t.h[n]).indexOf(e);0<=o&&n.splice(o,1),(n=t.h[r]||(t.h[r]=[])).push(e),1<n.length&&(t.h[r]=zt(n))}}qt(t)}}var ct=k({get previousElementSibling(){var e=u(this);if(e&&void 0!==e.previousSibling){for(e=this.__shady_previousSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_previousSibling;return e}return this.__shady_native_previousElementSibling},get nextElementSibling(){var e=u(this);if(e&&void 0!==e.nextSibling){for(e=this.__shady_nextSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_nextSibling;return e}return this.__shady_native_nextElementSibling},get slot(){return this.getAttribute("slot")},set slot(e){this.__shady_setAttribute("slot",e)},get className(){return this.getAttribute("class")||""},set className(e){this.__shady_setAttribute("class",e)},setAttribute:function(e,t){this.ownerDocument!==lt?this.__shady_native_setAttribute(e,t):Ge(this,e,t)||(this.__shady_native_setAttribute(e,t),ut(this,e))},removeAttribute:function(e){this.ownerDocument!==lt?this.__shady_native_removeAttribute(e):Ge(this,e,"")?""===this.getAttribute(e)&&this.__shady_native_removeAttribute(e):(this.__shady_native_removeAttribute(e),ut(this,e))}});c.A||Le.forEach((function(e){ct[e]=Fe(e)}));var dt=k({attachShadow:function(e){if(!this)throw Error("Must provide a host.");if(!e)throw Error("Not enough arguments.");if(e.shadyUpgradeFragment&&!c.R){var t=e.shadyUpgradeFragment;if(t.__proto__=ShadowRoot.prototype,Ut(t,this,e),Rt(t,t),e=t.__noInsertionPoint?null:t.querySelectorAll("slot"),t.__noInsertionPoint=void 0,e&&e.length){var n=t;Xt(n),n.j.push.apply(n.j,i(e)),qt(t)}t.host.__shady_native_appendChild(t)}else t=new Bt(Ft,this,e);return this.__CE_shadowRoot=t},get shadowRoot(){var e=u(this);return e&&e.Z||null}});M(ct,dt);var ht=document.implementation.createHTMLDocument("inert"),ft=k({get innerHTML(){return f(this)?W("template"===this.localName?this.content:this,T):this.__shady_native_innerHTML},set innerHTML(e){if("template"===this.localName)this.__shady_native_innerHTML=e;else{Ze(this);var t=this.localName||"div";for(t=this.namespaceURI&&this.namespaceURI!==ht.namespaceURI?ht.createElementNS(this.namespaceURI,t):ht.createElement(t),c.i?t.__shady_native_innerHTML=e:t.innerHTML=e;e=t.__shady_firstChild;)this.__shady_insertBefore(e)}}}),_t=k({blur:function(){var e=u(this);(e=(e=e&&e.root)&&e.activeElement)?e.__shady_blur():this.__shady_native_blur()}});c.A||Ie.forEach((function(e){_t[e]=Fe(e)}));var pt=k({assignedNodes:function(e){if("slot"===this.localName){var t=this.__shady_getRootNode();return t&&_(t)&&Vt(t),(t=u(this))&&(e&&e.flatten?t.u:t.assignedNodes)||[]}},addEventListener:function(e,n,r){if("slot"!==this.localName||"slotchange"===e)xe.call(this,e,n,r);else{"object"!==t(r)&&(r={capture:!!r});var o=this.__shady_parentNode;if(!o)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");r.o=this,o.__shady_addEventListener(e,n,r)}},removeEventListener:function(e,n,r){if("slot"!==this.localName||"slotchange"===e)Pe.call(this,e,n,r);else{"object"!==t(r)&&(r={capture:!!r});var o=this.__shady_parentNode;if(!o)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");r.o=this,o.__shady_removeEventListener(e,n,r)}}}),yt=k({getElementById:function(e){return""===e?null:nt(this,(function(t){return t.id==e}),(function(e){return!!e}))[0]||null}});function mt(e,t){for(var n;t&&!e.has(n=t.__shady_getRootNode());)t=n.host;return t}var vt="__shady_native_"+h(),gt=k({get activeElement(){var e=c.i?document.__shady_native_activeElement:document.activeElement;if(!e||!e.nodeType)return null;var t=!!_(this);if(!(this===document||t&&this.host!==e&&this.host.__shady_native_contains(e)))return null;for(t=tn(e);t&&t!==this;)t=tn(e=t.host);return this===document?t?null:e:t===this?e:null},elementsFromPoint:function(e,t){e=[].slice.call(document[vt](e,t)),t=function(e){var t=new Set;for(t.add(e);_(e)&&e.host;)e=e.host.__shady_getRootNode(),t.add(e);return t}(this);for(var n=new Set,r=0;r<e.length;r++)n.add(mt(t,e[r]));var o=[];return n.forEach((function(e){return o.push(e)})),o},elementFromPoint:function(e,t){return this.__shady_elementsFromPoint(e,t)[0]||null}}),St=window.document,Et=k({importNode:function(e,t){if(e.ownerDocument!==St||"template"===e.localName)return this.__shady_native_importNode(e,t);var n=this.__shady_native_importNode(e,!1);if(t)for(e=e.__shady_firstChild;e;e=e.__shady_nextSibling)t=this.__shady_importNode(e,!0),n.__shady_appendChild(t);return n}}),Nt=k({dispatchEvent:Oe,addEventListener:xe.bind(window),removeEventListener:Pe.bind(window)}),bt={};Object.getOwnPropertyDescriptor(HTMLElement.prototype,"parentElement")&&(bt.parentElement=et.parentElement),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"contains")&&(bt.contains=et.contains),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"children")&&(bt.children=ot.children),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML")&&(bt.innerHTML=ft.innerHTML),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"className")&&(bt.className=ct.className);var Ct={EventTarget:[Ue],Node:[et,window.EventTarget?null:Ue],Text:[tt],Comment:[tt],CDATASection:[tt],ProcessingInstruction:[tt],Element:[ct,ot,at,tt,!c.i||"innerHTML"in Element.prototype?ft:null,window.HTMLSlotElement?null:pt],HTMLElement:[_t,bt],HTMLSlotElement:[pt],DocumentFragment:[st,yt],Document:[Et,st,yt,gt],Window:[Nt],CharacterData:[at]},wt=c.i?null:["innerHTML","textContent"];function Tt(e,t,n,r){t.forEach((function(t){return e&&t&&x(e,t,n,r)}))}function Ot(e){var t,n=e?null:wt;for(t in Ct)Tt(window[t]&&window[t].prototype,Ct[t],e,n)}function xt(e){return e.__shady_protoIsPatched=!0,Tt(e,Ct.EventTarget),Tt(e,Ct.Node),Tt(e,Ct.Element),Tt(e,Ct.HTMLElement),Tt(e,Ct.HTMLSlotElement),e}["Text","Comment","CDATASection","ProcessingInstruction"].forEach((function(e){var t=window[e],n=Object.create(t.prototype);n.__shady_protoIsPatched=!0,Tt(n,Ct.EventTarget),Tt(n,Ct.Node),Ct[e]&&Tt(n,Ct[e]),t.prototype.__shady_patchedProto=n}));var Pt=c.L,kt=c.i;function Mt(e,t){if(Pt&&!e.__shady_protoIsPatched&&!_(e)){var n=Object.getPrototypeOf(e),r=n.hasOwnProperty("__shady_patchedProto")&&n.__shady_patchedProto;r||(xt(r=Object.create(n)),n.__shady_patchedProto=r),Object.setPrototypeOf(e,r)}kt||(1===t?ce(e):2===t&&de(e))}function Dt(e,t,n,r){Mt(e,1),r=r||null;var o=l(e),i=r?l(r):null;o.previousSibling=r?i.previousSibling:t.__shady_lastChild,(i=u(o.previousSibling))&&(i.nextSibling=e),(i=u(o.nextSibling=r))&&(i.previousSibling=e),o.parentNode=t,r?r===n.firstChild&&(n.firstChild=e):(n.lastChild=e,n.firstChild||(n.firstChild=e)),n.childNodes=null}function Rt(e,t){var n=l(e);if(t||void 0===n.firstChild){n.childNodes=null;var r=n.firstChild=e.__shady_native_firstChild;for(n.lastChild=e.__shady_native_lastChild,Mt(e,2),n=r,r=void 0;n;n=n.__shady_native_nextSibling){var o=l(n);o.parentNode=t||e,o.nextSibling=n.__shady_native_nextSibling,o.previousSibling=r||null,r=n,Mt(n,1)}}}var At=k({addEventListener:function(e,n,r){"object"!==t(r)&&(r={capture:!!r}),r.o=r.o||this,this.host.__shady_addEventListener(e,n,r)},removeEventListener:function(e,n,r){"object"!==t(r)&&(r={capture:!!r}),r.o=r.o||this,this.host.__shady_removeEventListener(e,n,r)}});function Lt(e,t){x(e,At,t),x(e,gt,t),x(e,ft,t),x(e,ot,t),c.l&&!t?(x(e,et,t),x(e,yt,t)):c.i||(x(e,se),x(e,oe),x(e,ie))}var It,Ft={},jt=c.deferConnectionCallbacks&&"loading"===document.readyState;function Ht(e){var t=[];do{t.unshift(e)}while(e=e.__shady_parentNode);return t}function Bt(e,t,n){if(e!==Ft)throw new TypeError("Illegal constructor");this.g=null,Ut(this,t,n)}function Ut(e,t,n){if(e.host=t,e.mode=n&&n.mode,Rt(e.host),(t=l(e.host)).root=e,t.Z="closed"!==e.mode?e:null,(t=l(e)).firstChild=t.lastChild=t.parentNode=t.nextSibling=t.previousSibling=null,c.preferPerformance)for(;t=e.host.__shady_native_firstChild;)e.host.__shady_native_removeChild(t);else qt(e)}function qt(e){e.s||(e.s=!0,I((function(){return Vt(e)})))}function Vt(e){var t;if(t=e.s){for(var n;e;)e.s&&(n=e),_(e=(t=e).host.__shady_getRootNode())&&(t=u(t.host))&&0<t.C||(e=void 0);t=n}(n=t)&&n._renderSelf()}function Gt(e,t,n){var r=l(t),o=r.I;r.I=null,n||(n=(e=e.h[t.__shady_slot||"__catchall"])&&e[0]),n?(l(n).assignedNodes.push(t),r.assignedSlot=n):r.assignedSlot=void 0,o!==r.assignedSlot&&r.assignedSlot&&(l(r.assignedSlot).J=!0)}function Wt(e,t,n){for(var r=0,o=void 0;r<n.length&&(o=n[r]);r++)if("slot"==o.localName){var i=u(o).assignedNodes;i&&i.length&&Wt(e,t,i)}else t.push(n[r])}function Kt(e,t){t.__shady_native_dispatchEvent(new Event("slotchange")),(t=u(t)).assignedSlot&&Kt(e,t.assignedSlot)}function Xt(e){e.j=e.j||[],e.g=e.g||[],e.h=e.h||{}}function Yt(e){if(e.j&&e.j.length){for(var t,n=e.j,r=0;r<n.length;r++){var o=n[r];Rt(o);var i=o.__shady_parentNode;Rt(i),(i=u(i)).C=(i.C||0)+1,i=$t(o),e.h[i]?((t=t||{})[i]=!0,e.h[i].push(o)):e.h[i]=[o],e.g.push(o)}if(t)for(var s in t)e.h[s]=zt(e.h[s]);e.j=[]}}function $t(e){var t=e.name||e.getAttribute("name")||"__catchall";return e.U=t}function zt(e){return e.sort((function(e,t){e=Ht(e);for(var n=Ht(t),r=0;r<e.length;r++){t=e[r];var o=n[r];if(t!==o)return(e=T(t.__shady_parentNode)).indexOf(t)-e.indexOf(o)}}))}function Jt(e){return Yt(e),!(!e.g||!e.g.length)}if(Bt.prototype._renderSelf=function(){var e=jt;if(jt=!0,this.s=!1,this.g){Yt(this);for(var t,n=0;n<this.g.length;n++){var r=u(t=this.g[n]),o=r.assignedNodes;if(r.assignedNodes=[],r.u=[],r.N=o)for(r=0;r<o.length;r++){var i=u(o[r]);i.I=i.assignedSlot,i.assignedSlot===t&&(i.assignedSlot=null)}}for(n=this.host.__shady_firstChild;n;n=n.__shady_nextSibling)Gt(this,n);for(n=0;n<this.g.length;n++){if(!(o=u(t=this.g[n])).assignedNodes.length)for(r=t.__shady_firstChild;r;r=r.__shady_nextSibling)Gt(this,r,t);if((r=(r=u(t.__shady_parentNode))&&r.root)&&(Jt(r)||r.s)&&r._renderSelf(),Wt(this,o.u,o.assignedNodes),r=o.N){for(i=0;i<r.length;i++)u(r[i]).I=null;o.N=null,r.length>o.assignedNodes.length&&(o.J=!0)}o.J&&(o.J=!1,Kt(this,t))}for(t=this.g,n=[],o=0;o<t.length;o++)(i=u(r=t[o].__shady_parentNode))&&i.root||!(0>n.indexOf(r))||n.push(r);for(t=0;t<n.length;t++){for(o=(i=n[t])===this?this.host:i,r=[],i=i.__shady_firstChild;i;i=i.__shady_nextSibling)if("slot"==i.localName)for(var s=u(i).u,a=0;a<s.length;a++)r.push(s[a]);else r.push(i);i=w(o),s=He(r,r.length,i,i.length);for(var l=a=0,d=void 0;a<s.length&&(d=s[a]);a++){for(var h=0,f=void 0;h<d.B.length&&(f=d.B[h]);h++)f.__shady_native_parentNode===o&&o.__shady_native_removeChild(f),i.splice(d.index+l,1);l-=d.D}for(l=0,d=void 0;l<s.length&&(d=s[l]);l++)for(a=i[d.index],h=d.index;h<d.index+d.D;h++)f=r[h],o.__shady_native_insertBefore(f,a),i.splice(h,0,f)}}if(!c.preferPerformance&&!this.M)for(n=this.host.__shady_firstChild;n;n=n.__shady_nextSibling)t=u(n),n.__shady_native_parentNode!==this.host||"slot"!==n.localName&&t.assignedSlot||this.host.__shady_native_removeChild(n);this.M=!0,jt=e,It&&It()},function(e){e.__proto__=DocumentFragment.prototype,Lt(e,"__shady_"),Lt(e),Object.defineProperties(e,{nodeType:{value:Node.DOCUMENT_FRAGMENT_NODE,configurable:!0},nodeName:{value:"#document-fragment",configurable:!0},nodeValue:{value:null,configurable:!0}}),["localName","namespaceURI","prefix"].forEach((function(t){Object.defineProperty(e,t,{value:void 0,configurable:!0})})),["ownerDocument","baseURI","isConnected"].forEach((function(t){Object.defineProperty(e,t,{get:function(){return this.host[t]},configurable:!0})}))}(Bt.prototype),window.customElements&&window.customElements.define&&c.K&&!c.preferPerformance){var Zt=new Map;It=function(){var e=[];Zt.forEach((function(t,n){e.push([n,t])})),Zt.clear();for(var t=0;t<e.length;t++){var n=e[t][0];e[t][1]?n.__shadydom_connectedCallback():n.__shadydom_disconnectedCallback()}},jt&&document.addEventListener("readystatechange",(function(){jt=!1,It()}),{once:!0});var Qt=window.customElements.define,en=function(e,t){var n=t.prototype.connectedCallback,r=t.prototype.disconnectedCallback;Qt.call(window.customElements,e,function(e,t,n){var r=0,o="__isConnected"+r++;return(t||n)&&(e.prototype.connectedCallback=e.prototype.__shadydom_connectedCallback=function(){jt?Zt.set(this,!0):this[o]||(this[o]=!0,t&&t.call(this))},e.prototype.disconnectedCallback=e.prototype.__shadydom_disconnectedCallback=function(){jt?this.isConnected||Zt.set(this,!1):this[o]&&(this[o]=!1,n&&n.call(this))}),e}(t,n,r)),t.prototype.connectedCallback=n,t.prototype.disconnectedCallback=r};window.customElements.define=en,Object.defineProperty(window.CustomElementRegistry.prototype,"define",{value:en,configurable:!0})}function tn(e){if(_(e=e.__shady_getRootNode()))return e}function nn(e){this.node=e}function rn(e){Object.defineProperty(nn.prototype,e,{get:function(){return this.node["__shady_"+e]},set:function(t){this.node["__shady_"+e]=t},configurable:!0})}(n=nn.prototype).addEventListener=function(e,t,n){return this.node.__shady_addEventListener(e,t,n)},n.removeEventListener=function(e,t,n){return this.node.__shady_removeEventListener(e,t,n)},n.appendChild=function(e){return this.node.__shady_appendChild(e)},n.insertBefore=function(e,t){return this.node.__shady_insertBefore(e,t)},n.removeChild=function(e){return this.node.__shady_removeChild(e)},n.replaceChild=function(e,t){return this.node.__shady_replaceChild(e,t)},n.cloneNode=function(e){return this.node.__shady_cloneNode(e)},n.getRootNode=function(e){return this.node.__shady_getRootNode(e)},n.contains=function(e){return this.node.__shady_contains(e)},n.dispatchEvent=function(e){return this.node.__shady_dispatchEvent(e)},n.setAttribute=function(e,t){this.node.__shady_setAttribute(e,t)},n.getAttribute=function(e){return this.node.__shady_native_getAttribute(e)},n.removeAttribute=function(e){this.node.__shady_removeAttribute(e)},n.attachShadow=function(e){return this.node.__shady_attachShadow(e)},n.focus=function(){this.node.__shady_native_focus()},n.blur=function(){this.node.__shady_blur()},n.importNode=function(e,t){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_importNode(e,t)},n.getElementById=function(e){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_getElementById(e)},n.elementsFromPoint=function(e,t){return this.node.__shady_elementsFromPoint(e,t)},n.elementFromPoint=function(e,t){return this.node.__shady_elementFromPoint(e,t)},n.querySelector=function(e){return this.node.__shady_querySelector(e)},n.querySelectorAll=function(e,t){return this.node.__shady_querySelectorAll(e,t)},n.assignedNodes=function(e){if("slot"===this.node.localName)return this.node.__shady_assignedNodes(e)},n.append=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_append.apply(this.node,i(t))},n.prepend=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_prepend.apply(this.node,i(t))},n.after=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_after.apply(this.node,i(t))},n.before=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_before.apply(this.node,i(t))},n.remove=function(){return this.node.__shady_remove()},n.replaceWith=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_replaceWith.apply(this.node,i(t))},s.Object.defineProperties(nn.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){if(_(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(_(this.node))return this.node.host}},parentNode:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_parentNode}},firstChild:{configurable:!0,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,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}},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,enumerable:!0,get:function(){return this.node.__shady_innerHTML},set:function(e){this.node.__shady_innerHTML=e}},textContent:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_textContent},set:function(e){this.node.__shady_textContent=e}},slot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_slot},set:function(e){this.node.__shady_slot=e}},className:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_className},set:function(e){this.node.__shady_className=e}}}),Le.forEach((function(e){return rn(e)})),Ie.forEach((function(e){return rn(e)}));var on=new WeakMap;function sn(e){if(_(e)||e instanceof nn)return e;var t=on.get(e);return t||(t=new nn(e),on.set(e,t)),t}if(c.K){var an=c.i?function(e){return e}:function(e){return de(e),ce(e),e};window.ShadyDOM={inUse:c.K,patch:an,isShadyRoot:_,enqueue:I,flush:F,flushInitial:function(e){!e.M&&e.s&&Vt(e)},settings:c,filterMutations:function(e,t){var n=t.getRootNode();return e.map((function(e){var t=n===e.target.getRootNode();if(t&&e.addedNodes){if((t=[].slice.call(e.addedNodes).filter((function(e){return n===e.getRootNode()}))).length)return e=Object.create(e),Object.defineProperty(e,"addedNodes",{value:t,configurable:!0}),e}else if(t)return e})).filter((function(e){return e}))},observeChildren:function(e,t){var n=l(e);n.v||(n.v=new j),n.v.F.add(t);var r=n.v;return{V:t,X:r,W:e,takeRecords:function(){return r.takeRecords()}}},unobserveChildren:function(e){var t=e&&e.X;t&&(t.F.delete(e.V),t.F.size||(l(e.W).v=null))},deferConnectionCallbacks:c.deferConnectionCallbacks,preferPerformance:c.preferPerformance,handlesDynamicScoping:!0,wrap:c.l?sn:an,wrapIfNeeded:!0===c.l?sn:function(e){return e},Wrapper:nn,composedPath:function(e){return e.__composedPath||(e.__composedPath=ge(e.target,!0)),e.__composedPath},noPatch:c.l,patchOnDemand:c.L,nativeMethods:X,nativeTree:Y,patchElementProto:xt},function(){var e=["dispatchEvent","addEventListener","removeEventListener"];window.EventTarget?(J(window.EventTarget.prototype,e),void 0===window.__shady_native_addEventListener&&J(Window.prototype,e)):(J(Node.prototype,e),J(Window.prototype,e)),K?J(Node.prototype,"parentNode firstChild lastChild previousSibling nextSibling childNodes parentElement textContent".split(" ")):z(Node.prototype,{parentNode:{get:function(){return Z.currentNode=this,Z.parentNode()}},firstChild:{get:function(){return Z.currentNode=this,Z.firstChild()}},lastChild:{get:function(){return Z.currentNode=this,Z.lastChild()}},previousSibling:{get:function(){return Z.currentNode=this,Z.previousSibling()}},nextSibling:{get:function(){return Z.currentNode=this,Z.nextSibling()}},childNodes:{get:function(){var e=[];Z.currentNode=this;for(var t=Z.firstChild();t;)e.push(t),t=Z.nextSibling();return e}},parentElement:{get:function(){return Q.currentNode=this,Q.parentNode()}},textContent:{get:function(){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(var e,t=document.createTreeWalker(this,NodeFilter.SHOW_TEXT,null,!1),n="";e=t.nextNode();)n+=e.nodeValue;return n;default:return this.nodeValue}},set:function(e){switch(null==e&&(e=""),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:te(this),(0<e.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_native_insertBefore(document.createTextNode(e),void 0);break;default:this.nodeValue=e}}}}),J(Node.prototype,"appendChild insertBefore removeChild replaceChild cloneNode contains".split(" ")),J(HTMLElement.prototype,["parentElement","contains"]),e={firstElementChild:{get:function(){return Q.currentNode=this,Q.firstChild()}},lastElementChild:{get:function(){return Q.currentNode=this,Q.lastChild()}},children:{get:function(){var e=[];Q.currentNode=this;for(var t=Q.firstChild();t;)e.push(t),t=Q.nextSibling();return C(e)}},childElementCount:{get:function(){return this.children?this.children.length:0}}},K?(J(Element.prototype,ne),J(Element.prototype,["previousElementSibling","nextElementSibling","innerHTML","className"]),J(HTMLElement.prototype,["children","innerHTML","className"])):(z(Element.prototype,e),z(Element.prototype,{previousElementSibling:{get:function(){return Q.currentNode=this,Q.previousSibling()}},nextElementSibling:{get:function(){return Q.currentNode=this,Q.nextSibling()}},innerHTML:{get:function(){return W(this,w)},set:function(e){var t="template"===this.localName?this.content:this;te(t);var n=this.localName||"div";for((n=this.namespaceURI&&this.namespaceURI!==ee.namespaceURI?ee.createElementNS(this.namespaceURI,n):ee.createElement(n)).innerHTML=e,e="template"===this.localName?n.content:n;n=e.__shady_native_firstChild;)t.__shady_native_insertBefore(n,void 0)}},className:{get:function(){return this.getAttribute("class")||""},set:function(e){this.setAttribute("class",e)}}})),J(Element.prototype,"setAttribute getAttribute hasAttribute removeAttribute focus blur".split(" ")),J(Element.prototype,re),J(HTMLElement.prototype,["focus","blur"]),window.HTMLTemplateElement&&J(window.HTMLTemplateElement.prototype,["innerHTML"]),K?J(DocumentFragment.prototype,ne):z(DocumentFragment.prototype,e),J(DocumentFragment.prototype,re),K?(J(Document.prototype,ne),J(Document.prototype,["activeElement"])):z(Document.prototype,e),J(Document.prototype,["importNode","getElementById","elementFromPoint",h()]),J(Document.prototype,re)}(),Ot("__shady_"),Object.defineProperty(document,"_activeElement",gt.activeElement),x(Window.prototype,Nt,"__shady_"),c.l?c.L&&x(Element.prototype,dt):(Ot(),function(){if(!fe&&Object.getOwnPropertyDescriptor(Event.prototype,"isTrusted")){var e=function(){var e=new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0});this.__shady_dispatchEvent(e)};Element.prototype.click?Element.prototype.click=e:HTMLElement.prototype.click&&(HTMLElement.prototype.click=e)}}()),function(){for(var e in Ne)window.__shady_native_addEventListener(e,(function(e){e.__target||(Me(e),we(e))}),!0)}(),window.Event=De,window.CustomEvent=Re,window.MouseEvent=Ae,window.ShadowRoot=Bt}}).call(this)}).call(this,n(336))},354:function(e,t,n){"use strict";
14
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[14],{336:function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},350:function(e,t,n){(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}(function(){"use strict";var n;function r(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}function o(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:r(e)}}function i(e){if(!(e instanceof Array)){e=o(e);for(var t,n=[];!(t=e.next()).done;)n.push(t.value);e=n}return e}var s=function(n){n=["object"==("undefined"==typeof globalThis?"undefined":t(globalThis))&&globalThis,n,"object"==("undefined"==typeof window?"undefined":t(window))&&window,"object"==("undefined"==typeof self?"undefined":t(self))&&self,"object"==(void 0===e?"undefined":t(e))&&e];for(var r=0;r<n.length;++r){var o=n[r];if(o&&o.Math==Math)return o}throw Error("Cannot find global object")}(this);function a(){}function l(e){return e.__shady||(e.__shady=new a),e.__shady}function u(e){return e&&e.__shady}a.prototype.toJSON=function(){return{}};var c=window.ShadyDOM||{};c.Y=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var d=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");function h(){return Document.prototype.msElementsFromPoint?"msElementsFromPoint":"elementsFromPoint"}function f(e){return(e=u(e))&&void 0!==e.firstChild}function _(e){return e instanceof ShadowRoot}function p(e){return(e=(e=u(e))&&e.root)&&Jt(e)}c.i=!!(d&&d.configurable&&d.get),c.K=c.force||!c.Y,c.l=c.noPatch||!1,c.A=c.preferPerformance,c.L="on-demand"===c.l,c.R=navigator.userAgent.match("Trident");var y=Element.prototype,m=y.matches||y.matchesSelector||y.mozMatchesSelector||y.msMatchesSelector||y.oMatchesSelector||y.webkitMatchesSelector,v=document.createTextNode(""),g=0,S=[];function b(e){S.push(e),v.textContent=g++}new MutationObserver((function(){for(;S.length;)try{S.shift()()}catch(e){throw v.textContent=g++,e}})).observe(v,{characterData:!0});var E=document.contains?function(e,t){return e.__shady_native_contains(t)}:function(e,t){return e===t||e.documentElement&&e.documentElement.__shady_native_contains(t)};function N(e,t){for(;t;){if(t==e)return!0;t=t.__shady_parentNode}return!1}function C(e){for(var t=e.length-1;0<=t;t--){var n=e[t],r=n.getAttribute("id")||n.getAttribute("name");r&&"length"!==r&&isNaN(r)&&(e[r]=n)}return e.item=function(t){return e[t]},e.namedItem=function(t){if("length"!==t&&isNaN(t)&&e[t])return e[t];for(var n=o(e),r=n.next();!r.done;r=n.next())if(((r=r.value).getAttribute("id")||r.getAttribute("name"))==t)return r;return null},e}function w(e){var t=[];for(e=e.__shady_native_firstChild;e;e=e.__shady_native_nextSibling)t.push(e);return t}function T(e){var t=[];for(e=e.__shady_firstChild;e;e=e.__shady_nextSibling)t.push(e);return t}function O(e,t,n){if(n.configurable=!0,n.value)e[t]=n.value;else try{Object.defineProperty(e,t,n)}catch(e){}}function P(e,t,n,r){for(var o in n=void 0===n?"":n,t)r&&0<=r.indexOf(o)||O(e,n+o,t[o])}function x(e,t){for(var n in t)n in e&&O(e,n,t[n])}function k(e){var t={};return Object.getOwnPropertyNames(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t}function M(e,t){for(var n,r=Object.getOwnPropertyNames(t),o=0;o<r.length;o++)e[n=r[o]]=t[n]}function D(e){return e instanceof Node?e:document.createTextNode(""+e)}function R(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(1===t.length)return D(t[0]);n=document.createDocumentFragment();for(var r=(t=o(t)).next();!r.done;r=t.next())n.appendChild(D(r.value));return n}var A,L=[];function I(e){A||(A=!0,b(j)),L.push(e)}function j(){A=!1;for(var e=!!L.length;L.length;)L.shift()();return e}function F(){this.g=!1,this.addedNodes=[],this.removedNodes=[],this.F=new Set}j.list=L,F.prototype.flush=function(){if(this.g){this.g=!1;var e=this.takeRecords();e.length&&this.F.forEach((function(t){t(e)}))}},F.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var e=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],e}return[]};var H=/[&\u00A0"]/g,B=/[&\u00A0<>]/g;function U(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}}function q(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t}var V=q("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),G=q("style script xmp iframe noembed noframes plaintext noscript".split(" "));function W(e,t){"template"===e.localName&&(e=e.content);for(var n="",r=t?t(e):e.childNodes,o=0,i=r.length,s=void 0;o<i&&(s=r[o]);o++){e:{var a=s,l=e,u=t;switch(a.nodeType){case Node.ELEMENT_NODE:for(var c,d="<"+(l=a.localName),h=a.attributes,f=0;c=h[f];f++)d+=" "+c.name+'="'+c.value.replace(H,U)+'"';d+=">",a=V[l]?d:d+W(a,u)+"</"+l+">";break e;case Node.TEXT_NODE:a=a.data,a=l&&G[l.localName]?a:a.replace(B,U);break e;case Node.COMMENT_NODE:a="\x3c!--"+a.data+"--\x3e";break e;default:throw window.console.error(a),Error("not implemented")}}n+=a}return n}var K=c.i,X={querySelector:function(e){return this.__shady_native_querySelector(e)},querySelectorAll:function(e){return this.__shady_native_querySelectorAll(e)}},Y={};function $(e){Y[e]=function(t){return t["__shady_native_"+e]}}function z(e,t){for(var n in P(e,t,"__shady_native_"),t)$(n)}function J(e,t){t=void 0===t?[]:t;for(var n=0;n<t.length;n++){var r=t[n],o=Object.getOwnPropertyDescriptor(e,r);o&&(Object.defineProperty(e,"__shady_native_"+r,o),o.value?X[r]||(X[r]=o.value):$(r))}}var Z=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),Q=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),ee=document.implementation.createHTMLDocument("inert");function te(e){for(var t;t=e.__shady_native_firstChild;)e.__shady_native_removeChild(t)}var ne=["firstElementChild","lastElementChild","children","childElementCount"],re=["querySelector","querySelectorAll","append","prepend","replaceChildren"];var oe=k({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}}),ie=k({get textContent(){return this.__shady_textContent},set textContent(e){this.__shady_textContent=e},get innerHTML(){return this.__shady_innerHTML},set innerHTML(e){this.__shady_innerHTML=e}}),se=k({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(e){this.__shady_className=e}});function ae(e){for(var t in e){var n=e[t];n&&(n.enumerable=!1)}}ae(oe),ae(ie),ae(se);var le,ue=c.i||!0===c.l,ce=ue?function(){}:function(e){var t=l(e);t.T||(t.T=!0,x(e,se))},de=ue?function(){}:function(e){var t=l(e);t.S||(t.S=!0,x(e,oe),window.customElements&&window.customElements.polyfillWrapFlushCallback&&!c.l||x(e,ie))},he="__eventWrappers"+Date.now(),fe=(le=Object.getOwnPropertyDescriptor(Event.prototype,"composed"))?function(e){return le.get.call(e)}:null,_e=function(){function e(){}var t=!1,n={get capture(){return t=!0,!1}};return window.addEventListener("test",e,n),window.removeEventListener("test",e,n),t}();function pe(e){if(e&&"object"===t(e))var n=!!e.capture,r=!!e.once,o=!!e.passive,i=e.o;else n=!!e,o=r=!1;return{P:i,capture:n,once:r,passive:o,O:_e?e:n}}var ye={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,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},me={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function ve(e){return e instanceof Node?e.__shady_getRootNode():e}function ge(e,t){var n=[],r=e;for(e=ve(e);r;)n.push(r),r=r.__shady_assignedSlot?r.__shady_assignedSlot:r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host&&(t||r!==e)?r.host:r.__shady_parentNode;return n[n.length-1]===document&&n.push(window),n}function Se(e,t){if(!_)return e;e=ge(e,!0);for(var n,r,o=0,i=void 0,s=void 0;o<t.length;o++)if((r=ve(n=t[o]))!==i&&(s=e.indexOf(r),i=r),!_(r)||-1<s)return n}function be(e){function t(t,n){return(t=new e(t,n)).__composed=n&&!!n.composed,t}return t.__proto__=e,t.prototype=e.prototype,t}var Ee={focus:!0,blur:!0};function Ne(e){return e.__target!==e.target||e.__relatedTarget!==e.relatedTarget}function Ce(e,t,n){if(n=t.__handlers&&t.__handlers[e.type]&&t.__handlers[e.type][n])for(var r,o=0;(r=n[o])&&(!Ne(e)||e.target!==e.relatedTarget)&&(r.call(t,e),!e.__immediatePropagationStopped);o++);}function we(e){var t=e.composedPath(),n=t.map((function(e){return Se(e,t)})),r=e.bubbles;Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:function(){return s}});var o=Event.CAPTURING_PHASE;Object.defineProperty(e,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return o}});for(var i=t.length-1;0<=i;i--){var s=t[i];if(o=s===n[i]?Event.AT_TARGET:Event.CAPTURING_PHASE,Ce(e,s,"capture"),e.H)return}for(i=0;i<t.length;i++){var a=(s=t[i])===n[i];if((a||r)&&(o=a?Event.AT_TARGET:Event.BUBBLING_PHASE,Ce(e,s,"bubble"),e.H))return}o=0,s=null}function Te(e,t,n,r,o,i){for(var s=0;s<e.length;s++){var a=e[s],l=a.type,u=a.capture,c=a.once,d=a.passive;if(t===a.node&&n===l&&r===u&&o===c&&i===d)return s}return-1}function Oe(e){return j(),!c.A&&this instanceof Node&&!E(document,this)?(e.__target||Me(e,this),we(e)):this.__shady_native_dispatchEvent(e)}function Pe(e,n,r){var o=pe(r),i=o.capture,s=o.once,a=o.passive,l=o.P;if(o=o.O,n){var u=t(n);if(("function"===u||"object"===u)&&("object"!==u||n.handleEvent&&"function"==typeof n.handleEvent)){if(me[e])return this.__shady_native_addEventListener(e,n,o);var c=l||this;if(l=n[he]){if(-1<Te(l,c,e,i,s,a))return}else n[he]=[];l=function(t){if(s&&this.__shady_removeEventListener(e,n,r),t.__target||Me(t),c!==this){var o=Object.getOwnPropertyDescriptor(t,"currentTarget");Object.defineProperty(t,"currentTarget",{get:function(){return c},configurable:!0});var a=Object.getOwnPropertyDescriptor(t,"eventPhase");Object.defineProperty(t,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return i?Event.CAPTURING_PHASE:Event.BUBBLING_PHASE}})}if(t.__previousCurrentTarget=t.currentTarget,(!_(c)&&"slot"!==c.localName||-1!=t.composedPath().indexOf(c))&&(t.composed||-1<t.composedPath().indexOf(c)))if(Ne(t)&&t.target===t.relatedTarget)t.eventPhase===Event.BUBBLING_PHASE&&t.stopImmediatePropagation();else if(t.eventPhase===Event.CAPTURING_PHASE||t.bubbles||t.target===c||c instanceof Window){var l="function"===u?n.call(c,t):n.handleEvent&&n.handleEvent(t);return c!==this&&(o?(Object.defineProperty(t,"currentTarget",o),o=null):delete t.currentTarget,a?(Object.defineProperty(t,"eventPhase",a),a=null):delete t.eventPhase),l}},n[he].push({node:c,type:e,capture:i,once:s,passive:a,aa:l}),this.__handlers=this.__handlers||{},this.__handlers[e]=this.__handlers[e]||{capture:[],bubble:[]},this.__handlers[e][i?"capture":"bubble"].push(l),Ee[e]||this.__shady_native_addEventListener(e,l,o)}}}function xe(e,t,n){if(t){var r=pe(n);n=r.capture;var o=r.once,i=r.passive,s=r.P;if(r=r.O,me[e])return this.__shady_native_removeEventListener(e,t,r);var a=s||this;s=void 0;var l=null;try{l=t[he]}catch(e){}l&&(-1<(o=Te(l,a,e,n,o,i))&&(s=l.splice(o,1)[0].aa,l.length||(t[he]=void 0))),this.__shady_native_removeEventListener(e,s||t,r),s&&this.__handlers&&this.__handlers[e]&&(-1<(t=(e=this.__handlers[e][n?"capture":"bubble"]).indexOf(s))&&e.splice(t,1))}}var ke=k({get composed(){return void 0===this.__composed&&(fe?this.__composed="focusin"===this.type||"focusout"===this.type||fe(this):!1!==this.isTrusted&&(this.__composed=ye[this.type])),this.__composed||!1},composedPath:function(){return this.__composedPath||(this.__composedPath=ge(this.__target,this.composed)),this.__composedPath},get target(){return Se(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){return this.__relatedTarget?(this.__relatedTargetComposedPath||(this.__relatedTargetComposedPath=ge(this.__relatedTarget,!0)),Se(this.currentTarget||this.__previousCurrentTarget,this.__relatedTargetComposedPath)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.H=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.H=this.__immediatePropagationStopped=!0}});function Me(e,t){if(t=void 0===t?e.target:t,e.__target=t,e.__relatedTarget=e.relatedTarget,c.i){if(!(t=Object.getPrototypeOf(e)).hasOwnProperty("__shady_patchedProto")){var n=Object.create(t);n.__shady_sourceProto=t,P(n,ke),t.__shady_patchedProto=n}e.__proto__=t.__shady_patchedProto}else P(e,ke)}var De=be(Event),Re=be(CustomEvent),Ae=be(MouseEvent);var Le=Object.getOwnPropertyNames(Element.prototype).filter((function(e){return"on"===e.substring(0,2)})),Ie=Object.getOwnPropertyNames(HTMLElement.prototype).filter((function(e){return"on"===e.substring(0,2)}));function je(e){return{set:function(t){var n=l(this),r=e.substring(2);n.m||(n.m={}),n.m[e]&&this.removeEventListener(r,n.m[e]),this.__shady_addEventListener(r,t),n.m[e]=t},get:function(){var t=u(this);return t&&t.m&&t.m[e]},configurable:!0}}function Fe(e,t){return{index:e,B:[],D:t}}function He(e,t,n,r){var o=0,i=0,s=0,a=0,l=Math.min(t-o,r-i);if(0==o&&0==i)e:{for(s=0;s<l;s++)if(e[s]!==n[s])break e;s=l}if(t==e.length&&r==n.length){a=e.length;for(var u=n.length,c=0;c<l-s&&Be(e[--a],n[--u]);)c++;a=c}if(i+=s,r-=a,0==(t-=a)-(o+=s)&&0==r-i)return[];if(o==t){for(t=Fe(o,0);i<r;)t.B.push(n[i++]);return[t]}if(i==r)return[Fe(o,t-o)];for(r=r-(s=i)+1,a=t-(l=o)+1,t=Array(r),u=0;u<r;u++)t[u]=Array(a),t[u][0]=u;for(u=0;u<a;u++)t[0][u]=u;for(u=1;u<r;u++)for(c=1;c<a;c++)if(e[l+c-1]===n[s+u-1])t[u][c]=t[u-1][c-1];else{var d=t[u-1][c]+1,h=t[u][c-1]+1;t[u][c]=d<h?d:h}for(l=t.length-1,s=t[0].length-1,r=t[l][s],e=[];0<l||0<s;)0==l?(e.push(2),s--):0==s?(e.push(3),l--):(a=t[l-1][s-1],(d=(u=t[l-1][s])<(c=t[l][s-1])?u<a?u:a:c<a?c:a)==a?(a==r?e.push(0):(e.push(1),r=a),l--,s--):d==u?(e.push(3),l--,r=u):(e.push(2),s--,r=c));for(e.reverse(),t=void 0,l=[],s=0;s<e.length;s++)switch(e[s]){case 0:t&&(l.push(t),t=void 0),o++,i++;break;case 1:t||(t=Fe(o,0)),t.D++,o++,t.B.push(n[i]),i++;break;case 2:t||(t=Fe(o,0)),t.D++,o++;break;case 3:t||(t=Fe(o,0)),t.B.push(n[i]),i++}return t&&l.push(t),l}function Be(e,t){return e===t}var Ue=k({dispatchEvent:Oe,addEventListener:Pe,removeEventListener:xe}),qe=null;function Ve(){return qe||(qe=window.ShadyCSS&&window.ShadyCSS.ScopingShim),qe||null}function Ge(e,t,n){var r=Ve();return!(!r||"class"!==t)&&(r.setElementClass(e,n),!0)}function We(e,t){var n=Ve();n&&n.unscopeNode(e,t)}function Ke(e){if(e.nodeType!==Node.ELEMENT_NODE)return"";var t=Ve();return t?t.currentScopeForNode(e):""}function Xe(e,t){if(e)for(e.nodeType===Node.ELEMENT_NODE&&t(e),e=e.__shady_firstChild;e;e=e.__shady_nextSibling)e.nodeType===Node.ELEMENT_NODE&&Xe(e,t)}var Ye=window.document,$e=c.A,ze=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),Je=ze&&ze.get;function Ze(e){for(var t;t=e.__shady_firstChild;)e.__shady_removeChild(t)}function Qe(e,t,n){if(e=(e=u(e))&&e.v){if(t)if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(var r=0,o=t.childNodes.length;r<o;r++)e.addedNodes.push(t.childNodes[r]);else e.addedNodes.push(t);n&&e.removedNodes.push(n),function(e){e.g||(e.g=!0,b((function(){e.flush()})))}(e)}}var et=k({get parentNode(){var e=u(this);return void 0!==(e=e&&e.parentNode)?e:this.__shady_native_parentNode},get firstChild(){var e=u(this);return void 0!==(e=e&&e.firstChild)?e:this.__shady_native_firstChild},get lastChild(){var e=u(this);return void 0!==(e=e&&e.lastChild)?e:this.__shady_native_lastChild},get nextSibling(){var e=u(this);return void 0!==(e=e&&e.nextSibling)?e:this.__shady_native_nextSibling},get previousSibling(){var e=u(this);return void 0!==(e=e&&e.previousSibling)?e:this.__shady_native_previousSibling},get childNodes(){if(f(this)){var e=u(this);if(!e.childNodes){e.childNodes=[];for(var t=this.__shady_firstChild;t;t=t.__shady_nextSibling)e.childNodes.push(t)}var n=e.childNodes}else n=this.__shady_native_childNodes;return n.item=function(e){return n[e]},n},get parentElement(){var e=u(this);return(e=e&&e.parentNode)&&e.nodeType!==Node.ELEMENT_NODE&&(e=null),void 0!==e?e:this.__shady_native_parentElement},get isConnected(){if(Je&&Je.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;var e=this.ownerDocument;if(null===e||E(e,this))return!0;for(e=this;e&&!(e instanceof Document);)e=e.__shady_parentNode||(_(e)?e.host:void 0);return!!(e&&e instanceof Document)},get textContent(){if(f(this)){for(var e=[],t=this.__shady_firstChild;t;t=t.__shady_nextSibling)t.nodeType!==Node.COMMENT_NODE&&e.push(t.__shady_textContent);return e.join("")}return this.__shady_native_textContent},set textContent(e){switch(null==e&&(e=""),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:if(!f(this)&&c.i){var t=this.__shady_firstChild;(t!=this.__shady_lastChild||t&&t.nodeType!=Node.TEXT_NODE)&&Ze(this),this.__shady_native_textContent=e}else Ze(this),(0<e.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_insertBefore(document.createTextNode(e));break;default:this.nodeValue=e}},insertBefore:function(e,t){if(this.ownerDocument!==Ye&&e.ownerDocument!==Ye)return this.__shady_native_insertBefore(e,t),e;if(e===this)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");if(t){var n=u(t);if(void 0!==(n=n&&n.parentNode)&&n!==this||void 0===n&&t.__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(t===e)return e;Qe(this,e);var r=[],o=(n=tn(this))?n.host.localName:Ke(this),s=e.__shady_parentNode;if(s){var a=Ke(e),c=!!n||!tn(e)||$e&&void 0!==this.__noInsertionPoint;s.__shady_removeChild(e,c)}s=!0;var d=(!$e||void 0===e.__noInsertionPoint&&void 0===this.__noInsertionPoint)&&!function e(t,n){var r=Ve();if(!r)return!0;if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(r=!0,t=t.__shady_firstChild;t;t=t.__shady_nextSibling)r=r&&e(t,n);return r}return t.nodeType!==Node.ELEMENT_NODE||r.currentScopeForNode(t)===n}(e,o),h=n&&!e.__noInsertionPoint&&(!$e||e.nodeType===Node.DOCUMENT_FRAGMENT_NODE);return(h||d)&&(d&&(a=a||Ke(e)),Xe(e,(function(e){if(h&&"slot"===e.localName&&r.push(e),d){var t=a;Ve()&&(t&&We(e,t),(t=Ve())&&t.scopeNode(e,o))}}))),r.length&&(Xt(n),n.j.push.apply(n.j,i(r)),qt(n)),f(this)&&(function(e,t,n){Mt(t,2);var r=l(t);if(void 0!==r.firstChild&&(r.childNodes=null),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(e=e.__shady_native_firstChild;e;e=e.__shady_native_nextSibling)Dt(e,t,r,n);else Dt(e,t,r,n)}(e,this,t),(c=u(this)).root?(s=!1,p(this)&&qt(c.root)):n&&"slot"===this.localName&&(s=!1,qt(n))),s?(n=_(this)?this.host:this,t?(t=function e(t){var n=t;if(t&&"slot"===t.localName){var r=u(t);(r=r&&r.u)&&(n=r.length?r[0]:e(t.__shady_nextSibling))}return n}(t),n.__shady_native_insertBefore(e,t)):n.__shady_native_appendChild(e)):e.ownerDocument!==this.ownerDocument&&this.ownerDocument.adoptNode(e),e},appendChild:function(e){if(this!=e||!_(e))return this.__shady_insertBefore(e)},removeChild:function(e,t){if(t=void 0!==t&&t,this.ownerDocument!==Ye)return this.__shady_native_removeChild(e);if(e.__shady_parentNode!==this)throw Error("The node to be removed is not a child of this node: "+e);Qe(this,null,e);var n=tn(e),r=n&&function(e,t){if(e.g){Yt(e);var n,r=e.h;for(n in r)for(var o=r[n],i=0;i<o.length;i++){var s=o[i];if(N(t,s)){o.splice(i,1);var a=e.g.indexOf(s);if(0<=a&&(e.g.splice(a,1),(a=u(s.__shady_parentNode))&&a.C&&a.C--),i--,s=u(s),a=s.u)for(var l=0;l<a.length;l++){var c=a[l],d=c.__shady_native_parentNode;d&&d.__shady_native_removeChild(c)}s.u=[],s.assignedNodes=[],a=!0}}return a}}(n,e),o=u(this);if(f(this)&&(function(e,t){var n=l(e);t=l(t),e===t.firstChild&&(t.firstChild=n.nextSibling),e===t.lastChild&&(t.lastChild=n.previousSibling),e=n.previousSibling;var r=n.nextSibling;e&&(l(e).nextSibling=r),r&&(l(r).previousSibling=e),n.parentNode=n.previousSibling=n.nextSibling=void 0,void 0!==t.childNodes&&(t.childNodes=null)}(e,this),p(this))){qt(o.root);var i=!0}if(Ve()&&!t&&n&&e.nodeType!==Node.TEXT_NODE){var s=Ke(e);Xe(e,(function(e){We(e,s)}))}return function e(t){var n=u(t);if(n&&void 0!==n.G)for(n=t.__shady_firstChild;n;n=n.__shady_nextSibling)e(n);(t=u(t))&&(t.G=void 0)}(e),n&&((t="slot"===this.localName)&&(i=!0),(r||t)&&qt(n)),i||(i=_(this)?this.host:this,(!o.root&&"slot"!==e.localName||i===e.__shady_native_parentNode)&&i.__shady_native_removeChild(e)),e},replaceChild:function(e,t){return this.__shady_insertBefore(e,t),this.__shady_removeChild(t),e},cloneNode:function(e){if("template"==this.localName)return this.__shady_native_cloneNode(e);var t=this.__shady_native_cloneNode(!1);if(e&&t.nodeType!==Node.ATTRIBUTE_NODE){e=this.__shady_firstChild;for(var n;e;e=e.__shady_nextSibling)n=e.__shady_cloneNode(!0),t.__shady_appendChild(n)}return t},getRootNode:function(e){if(this&&this.nodeType){var t=l(this),n=t.G;return void 0===n&&(_(this)?(n=this,t.G=n):(n=(n=this.__shady_parentNode)?n.__shady_getRootNode(e):this,document.documentElement.__shady_native_contains(this)&&(t.G=n))),n}},contains:function(e){return N(this,e)}}),tt=k({get assignedSlot(){var e=this.__shady_parentNode;return(e=e&&e.__shady_shadowRoot)&&Vt(e),(e=u(this))&&e.assignedSlot||null}});function nt(e,t,n){var r=[];return function e(t,n,r,o){for(t=t.__shady_firstChild;t;t=t.__shady_nextSibling){var i;if(i=t.nodeType===Node.ELEMENT_NODE){var s=n,a=r,l=o,u=s(i=t);u&&l.push(i),a&&a(u)?i=u:(e(i,s,a,l),i=void 0)}if(i)break}}(e,t,n,r),r}var rt={get firstElementChild(){var e=u(this);if(e&&void 0!==e.firstChild){for(e=this.__shady_firstChild;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_nextSibling;return e}return this.__shady_native_firstElementChild},get lastElementChild(){var e=u(this);if(e&&void 0!==e.lastChild){for(e=this.__shady_lastChild;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_previousSibling;return e}return this.__shady_native_lastElementChild},get children(){return f(this)?C(Array.prototype.filter.call(T(this),(function(e){return e.nodeType===Node.ELEMENT_NODE}))):this.__shady_native_children},get childElementCount(){var e=this.__shady_children;return e?e.length:0}},ot=k((rt.append=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];this.__shady_insertBefore(R.apply(null,i(t)),null)},rt.prepend=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];this.__shady_insertBefore(R.apply(null,i(t)),this.__shady_firstChild)},rt.replaceChildren=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];for(;null!==(n=this.__shady_firstChild);)this.__shady_removeChild(n);this.__shady_insertBefore(R.apply(null,i(t)),null)},rt)),it=k({querySelector:function(e){return nt(this,(function(t){return m.call(t,e)}),(function(e){return!!e}))[0]||null},querySelectorAll:function(e,t){if(t){t=Array.prototype.slice.call(this.__shady_native_querySelectorAll(e));var n=this.__shady_getRootNode();return C(t.filter((function(e){return e.__shady_getRootNode()==n})))}return C(nt(this,(function(t){return m.call(t,e)})))}}),st=c.A&&!c.l?M({},ot):ot;M(ot,it);var at=k({after:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(null!==(n=this.__shady_parentNode)){var r=this.__shady_nextSibling;n.__shady_insertBefore(R.apply(null,i(t)),r)}},before:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];null!==(n=this.__shady_parentNode)&&n.__shady_insertBefore(R.apply(null,i(t)),this)},remove:function(){var e=this.__shady_parentNode;null!==e&&e.__shady_removeChild(this)},replaceWith:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(null!==(n=this.__shady_parentNode)){var r=this.__shady_nextSibling;n.__shady_removeChild(this),n.__shady_insertBefore(R.apply(null,i(t)),r)}}}),lt=window.document;function ut(e,t){if("slot"===t)p(e=e.__shady_parentNode)&&qt(u(e).root);else if("slot"===e.localName&&"name"===t&&(t=tn(e))){if(t.g){Yt(t);var n=e.U,r=$t(e);if(r!==n){var o=(n=t.h[n]).indexOf(e);0<=o&&n.splice(o,1),(n=t.h[r]||(t.h[r]=[])).push(e),1<n.length&&(t.h[r]=zt(n))}}qt(t)}}var ct=k({get previousElementSibling(){var e=u(this);if(e&&void 0!==e.previousSibling){for(e=this.__shady_previousSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_previousSibling;return e}return this.__shady_native_previousElementSibling},get nextElementSibling(){var e=u(this);if(e&&void 0!==e.nextSibling){for(e=this.__shady_nextSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_nextSibling;return e}return this.__shady_native_nextElementSibling},get slot(){return this.getAttribute("slot")},set slot(e){this.__shady_setAttribute("slot",e)},get className(){return this.getAttribute("class")||""},set className(e){this.__shady_setAttribute("class",e)},setAttribute:function(e,t){this.ownerDocument!==lt?this.__shady_native_setAttribute(e,t):Ge(this,e,t)||(this.__shady_native_setAttribute(e,t),ut(this,e))},removeAttribute:function(e){this.ownerDocument!==lt?this.__shady_native_removeAttribute(e):Ge(this,e,"")?""===this.getAttribute(e)&&this.__shady_native_removeAttribute(e):(this.__shady_native_removeAttribute(e),ut(this,e))}});c.A||Le.forEach((function(e){ct[e]=je(e)}));var dt=k({attachShadow:function(e){if(!this)throw Error("Must provide a host.");if(!e)throw Error("Not enough arguments.");if(e.shadyUpgradeFragment&&!c.R){var t=e.shadyUpgradeFragment;if(t.__proto__=ShadowRoot.prototype,Ut(t,this,e),Rt(t,t),e=t.__noInsertionPoint?null:t.querySelectorAll("slot"),t.__noInsertionPoint=void 0,e&&e.length){var n=t;Xt(n),n.j.push.apply(n.j,i(e)),qt(t)}t.host.__shady_native_appendChild(t)}else t=new Bt(jt,this,e);return this.__CE_shadowRoot=t},get shadowRoot(){var e=u(this);return e&&e.Z||null}});M(ct,dt);var ht=document.implementation.createHTMLDocument("inert"),ft=k({get innerHTML(){return f(this)?W("template"===this.localName?this.content:this,T):this.__shady_native_innerHTML},set innerHTML(e){if("template"===this.localName)this.__shady_native_innerHTML=e;else{Ze(this);var t=this.localName||"div";for(t=this.namespaceURI&&this.namespaceURI!==ht.namespaceURI?ht.createElementNS(this.namespaceURI,t):ht.createElement(t),c.i?t.__shady_native_innerHTML=e:t.innerHTML=e;e=t.__shady_firstChild;)this.__shady_insertBefore(e)}}}),_t=k({blur:function(){var e=u(this);(e=(e=e&&e.root)&&e.activeElement)?e.__shady_blur():this.__shady_native_blur()}});c.A||Ie.forEach((function(e){_t[e]=je(e)}));var pt=k({assignedNodes:function(e){if("slot"===this.localName){var t=this.__shady_getRootNode();return t&&_(t)&&Vt(t),(t=u(this))&&(e&&e.flatten?t.u:t.assignedNodes)||[]}},addEventListener:function(e,n,r){if("slot"!==this.localName||"slotchange"===e)Pe.call(this,e,n,r);else{"object"!==t(r)&&(r={capture:!!r});var o=this.__shady_parentNode;if(!o)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");r.o=this,o.__shady_addEventListener(e,n,r)}},removeEventListener:function(e,n,r){if("slot"!==this.localName||"slotchange"===e)xe.call(this,e,n,r);else{"object"!==t(r)&&(r={capture:!!r});var o=this.__shady_parentNode;if(!o)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");r.o=this,o.__shady_removeEventListener(e,n,r)}}}),yt=k({getElementById:function(e){return""===e?null:nt(this,(function(t){return t.id==e}),(function(e){return!!e}))[0]||null}});function mt(e,t){for(var n;t&&!e.has(n=t.__shady_getRootNode());)t=n.host;return t}var vt="__shady_native_"+h(),gt=k({get activeElement(){var e=c.i?document.__shady_native_activeElement:document.activeElement;if(!e||!e.nodeType)return null;var t=!!_(this);if(!(this===document||t&&this.host!==e&&this.host.__shady_native_contains(e)))return null;for(t=tn(e);t&&t!==this;)t=tn(e=t.host);return this===document?t?null:e:t===this?e:null},elementsFromPoint:function(e,t){e=[].slice.call(document[vt](e,t)),t=function(e){var t=new Set;for(t.add(e);_(e)&&e.host;)e=e.host.__shady_getRootNode(),t.add(e);return t}(this);for(var n=new Set,r=0;r<e.length;r++)n.add(mt(t,e[r]));var o=[];return n.forEach((function(e){return o.push(e)})),o},elementFromPoint:function(e,t){return this.__shady_elementsFromPoint(e,t)[0]||null}}),St=window.document,bt=k({importNode:function(e,t){if(e.ownerDocument!==St||"template"===e.localName)return this.__shady_native_importNode(e,t);var n=this.__shady_native_importNode(e,!1);if(t)for(e=e.__shady_firstChild;e;e=e.__shady_nextSibling)t=this.__shady_importNode(e,!0),n.__shady_appendChild(t);return n}}),Et=k({dispatchEvent:Oe,addEventListener:Pe.bind(window),removeEventListener:xe.bind(window)}),Nt={};Object.getOwnPropertyDescriptor(HTMLElement.prototype,"parentElement")&&(Nt.parentElement=et.parentElement),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"contains")&&(Nt.contains=et.contains),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"children")&&(Nt.children=ot.children),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML")&&(Nt.innerHTML=ft.innerHTML),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"className")&&(Nt.className=ct.className);var Ct={EventTarget:[Ue],Node:[et,window.EventTarget?null:Ue],Text:[tt],Comment:[tt],CDATASection:[tt],ProcessingInstruction:[tt],Element:[ct,ot,at,tt,!c.i||"innerHTML"in Element.prototype?ft:null,window.HTMLSlotElement?null:pt],HTMLElement:[_t,Nt],HTMLSlotElement:[pt],DocumentFragment:[st,yt],Document:[bt,st,yt,gt],Window:[Et],CharacterData:[at]},wt=c.i?null:["innerHTML","textContent"];function Tt(e,t,n,r){t.forEach((function(t){return e&&t&&P(e,t,n,r)}))}function Ot(e){var t,n=e?null:wt;for(t in Ct)Tt(window[t]&&window[t].prototype,Ct[t],e,n)}function Pt(e){return e.__shady_protoIsPatched=!0,Tt(e,Ct.EventTarget),Tt(e,Ct.Node),Tt(e,Ct.Element),Tt(e,Ct.HTMLElement),Tt(e,Ct.HTMLSlotElement),e}["Text","Comment","CDATASection","ProcessingInstruction"].forEach((function(e){var t=window[e],n=Object.create(t.prototype);n.__shady_protoIsPatched=!0,Tt(n,Ct.EventTarget),Tt(n,Ct.Node),Ct[e]&&Tt(n,Ct[e]),t.prototype.__shady_patchedProto=n}));var xt=c.L,kt=c.i;function Mt(e,t){if(xt&&!e.__shady_protoIsPatched&&!_(e)){var n=Object.getPrototypeOf(e),r=n.hasOwnProperty("__shady_patchedProto")&&n.__shady_patchedProto;r||(Pt(r=Object.create(n)),n.__shady_patchedProto=r),Object.setPrototypeOf(e,r)}kt||(1===t?ce(e):2===t&&de(e))}function Dt(e,t,n,r){Mt(e,1),r=r||null;var o=l(e),i=r?l(r):null;o.previousSibling=r?i.previousSibling:t.__shady_lastChild,(i=u(o.previousSibling))&&(i.nextSibling=e),(i=u(o.nextSibling=r))&&(i.previousSibling=e),o.parentNode=t,r?r===n.firstChild&&(n.firstChild=e):(n.lastChild=e,n.firstChild||(n.firstChild=e)),n.childNodes=null}function Rt(e,t){var n=l(e);if(t||void 0===n.firstChild){n.childNodes=null;var r=n.firstChild=e.__shady_native_firstChild;for(n.lastChild=e.__shady_native_lastChild,Mt(e,2),n=r,r=void 0;n;n=n.__shady_native_nextSibling){var o=l(n);o.parentNode=t||e,o.nextSibling=n.__shady_native_nextSibling,o.previousSibling=r||null,r=n,Mt(n,1)}}}var At=k({addEventListener:function(e,n,r){"object"!==t(r)&&(r={capture:!!r}),r.o=r.o||this,this.host.__shady_addEventListener(e,n,r)},removeEventListener:function(e,n,r){"object"!==t(r)&&(r={capture:!!r}),r.o=r.o||this,this.host.__shady_removeEventListener(e,n,r)}});function Lt(e,t){P(e,At,t),P(e,gt,t),P(e,ft,t),P(e,ot,t),c.l&&!t?(P(e,et,t),P(e,yt,t)):c.i||(P(e,se),P(e,oe),P(e,ie))}var It,jt={},Ft=c.deferConnectionCallbacks&&"loading"===document.readyState;function Ht(e){var t=[];do{t.unshift(e)}while(e=e.__shady_parentNode);return t}function Bt(e,t,n){if(e!==jt)throw new TypeError("Illegal constructor");this.g=null,Ut(this,t,n)}function Ut(e,t,n){if(e.host=t,e.mode=n&&n.mode,Rt(e.host),(t=l(e.host)).root=e,t.Z="closed"!==e.mode?e:null,(t=l(e)).firstChild=t.lastChild=t.parentNode=t.nextSibling=t.previousSibling=null,c.preferPerformance)for(;t=e.host.__shady_native_firstChild;)e.host.__shady_native_removeChild(t);else qt(e)}function qt(e){e.s||(e.s=!0,I((function(){return Vt(e)})))}function Vt(e){var t;if(t=e.s){for(var n;e;)e.s&&(n=e),_(e=(t=e).host.__shady_getRootNode())&&(t=u(t.host))&&0<t.C||(e=void 0);t=n}(n=t)&&n._renderSelf()}function Gt(e,t,n){var r=l(t),o=r.I;r.I=null,n||(n=(e=e.h[t.__shady_slot||"__catchall"])&&e[0]),n?(l(n).assignedNodes.push(t),r.assignedSlot=n):r.assignedSlot=void 0,o!==r.assignedSlot&&r.assignedSlot&&(l(r.assignedSlot).J=!0)}function Wt(e,t,n){for(var r=0,o=void 0;r<n.length&&(o=n[r]);r++)if("slot"==o.localName){var i=u(o).assignedNodes;i&&i.length&&Wt(e,t,i)}else t.push(n[r])}function Kt(e,t){t.__shady_native_dispatchEvent(new Event("slotchange")),(t=u(t)).assignedSlot&&Kt(e,t.assignedSlot)}function Xt(e){e.j=e.j||[],e.g=e.g||[],e.h=e.h||{}}function Yt(e){if(e.j&&e.j.length){for(var t,n=e.j,r=0;r<n.length;r++){var o=n[r];Rt(o);var i=o.__shady_parentNode;Rt(i),(i=u(i)).C=(i.C||0)+1,i=$t(o),e.h[i]?((t=t||{})[i]=!0,e.h[i].push(o)):e.h[i]=[o],e.g.push(o)}if(t)for(var s in t)e.h[s]=zt(e.h[s]);e.j=[]}}function $t(e){var t=e.name||e.getAttribute("name")||"__catchall";return e.U=t}function zt(e){return e.sort((function(e,t){e=Ht(e);for(var n=Ht(t),r=0;r<e.length;r++){t=e[r];var o=n[r];if(t!==o)return(e=T(t.__shady_parentNode)).indexOf(t)-e.indexOf(o)}}))}function Jt(e){return Yt(e),!(!e.g||!e.g.length)}if(Bt.prototype._renderSelf=function(){var e=Ft;if(Ft=!0,this.s=!1,this.g){Yt(this);for(var t,n=0;n<this.g.length;n++){var r=u(t=this.g[n]),o=r.assignedNodes;if(r.assignedNodes=[],r.u=[],r.N=o)for(r=0;r<o.length;r++){var i=u(o[r]);i.I=i.assignedSlot,i.assignedSlot===t&&(i.assignedSlot=null)}}for(n=this.host.__shady_firstChild;n;n=n.__shady_nextSibling)Gt(this,n);for(n=0;n<this.g.length;n++){if(!(o=u(t=this.g[n])).assignedNodes.length)for(r=t.__shady_firstChild;r;r=r.__shady_nextSibling)Gt(this,r,t);if((r=(r=u(t.__shady_parentNode))&&r.root)&&(Jt(r)||r.s)&&r._renderSelf(),Wt(this,o.u,o.assignedNodes),r=o.N){for(i=0;i<r.length;i++)u(r[i]).I=null;o.N=null,r.length>o.assignedNodes.length&&(o.J=!0)}o.J&&(o.J=!1,Kt(this,t))}for(t=this.g,n=[],o=0;o<t.length;o++)(i=u(r=t[o].__shady_parentNode))&&i.root||!(0>n.indexOf(r))||n.push(r);for(t=0;t<n.length;t++){for(o=(i=n[t])===this?this.host:i,r=[],i=i.__shady_firstChild;i;i=i.__shady_nextSibling)if("slot"==i.localName)for(var s=u(i).u,a=0;a<s.length;a++)r.push(s[a]);else r.push(i);i=w(o),s=He(r,r.length,i,i.length);for(var l=a=0,d=void 0;a<s.length&&(d=s[a]);a++){for(var h=0,f=void 0;h<d.B.length&&(f=d.B[h]);h++)f.__shady_native_parentNode===o&&o.__shady_native_removeChild(f),i.splice(d.index+l,1);l-=d.D}for(l=0,d=void 0;l<s.length&&(d=s[l]);l++)for(a=i[d.index],h=d.index;h<d.index+d.D;h++)f=r[h],o.__shady_native_insertBefore(f,a),i.splice(h,0,f)}}if(!c.preferPerformance&&!this.M)for(n=this.host.__shady_firstChild;n;n=n.__shady_nextSibling)t=u(n),n.__shady_native_parentNode!==this.host||"slot"!==n.localName&&t.assignedSlot||this.host.__shady_native_removeChild(n);this.M=!0,Ft=e,It&&It()},function(e){e.__proto__=DocumentFragment.prototype,Lt(e,"__shady_"),Lt(e),Object.defineProperties(e,{nodeType:{value:Node.DOCUMENT_FRAGMENT_NODE,configurable:!0},nodeName:{value:"#document-fragment",configurable:!0},nodeValue:{value:null,configurable:!0}}),["localName","namespaceURI","prefix"].forEach((function(t){Object.defineProperty(e,t,{value:void 0,configurable:!0})})),["ownerDocument","baseURI","isConnected"].forEach((function(t){Object.defineProperty(e,t,{get:function(){return this.host[t]},configurable:!0})}))}(Bt.prototype),window.customElements&&window.customElements.define&&c.K&&!c.preferPerformance){var Zt=new Map;It=function(){var e=[];Zt.forEach((function(t,n){e.push([n,t])})),Zt.clear();for(var t=0;t<e.length;t++){var n=e[t][0];e[t][1]?n.__shadydom_connectedCallback():n.__shadydom_disconnectedCallback()}},Ft&&document.addEventListener("readystatechange",(function(){Ft=!1,It()}),{once:!0});var Qt=window.customElements.define,en=function(e,t){var n=t.prototype.connectedCallback,r=t.prototype.disconnectedCallback;Qt.call(window.customElements,e,function(e,t,n){var r=0,o="__isConnected"+r++;return(t||n)&&(e.prototype.connectedCallback=e.prototype.__shadydom_connectedCallback=function(){Ft?Zt.set(this,!0):this[o]||(this[o]=!0,t&&t.call(this))},e.prototype.disconnectedCallback=e.prototype.__shadydom_disconnectedCallback=function(){Ft?this.isConnected||Zt.set(this,!1):this[o]&&(this[o]=!1,n&&n.call(this))}),e}(t,n,r)),t.prototype.connectedCallback=n,t.prototype.disconnectedCallback=r};window.customElements.define=en,Object.defineProperty(window.CustomElementRegistry.prototype,"define",{value:en,configurable:!0})}function tn(e){if(_(e=e.__shady_getRootNode()))return e}function nn(e){this.node=e}function rn(e){Object.defineProperty(nn.prototype,e,{get:function(){return this.node["__shady_"+e]},set:function(t){this.node["__shady_"+e]=t},configurable:!0})}(n=nn.prototype).addEventListener=function(e,t,n){return this.node.__shady_addEventListener(e,t,n)},n.removeEventListener=function(e,t,n){return this.node.__shady_removeEventListener(e,t,n)},n.appendChild=function(e){return this.node.__shady_appendChild(e)},n.insertBefore=function(e,t){return this.node.__shady_insertBefore(e,t)},n.removeChild=function(e){return this.node.__shady_removeChild(e)},n.replaceChild=function(e,t){return this.node.__shady_replaceChild(e,t)},n.cloneNode=function(e){return this.node.__shady_cloneNode(e)},n.getRootNode=function(e){return this.node.__shady_getRootNode(e)},n.contains=function(e){return this.node.__shady_contains(e)},n.dispatchEvent=function(e){return this.node.__shady_dispatchEvent(e)},n.setAttribute=function(e,t){this.node.__shady_setAttribute(e,t)},n.getAttribute=function(e){return this.node.__shady_native_getAttribute(e)},n.removeAttribute=function(e){this.node.__shady_removeAttribute(e)},n.attachShadow=function(e){return this.node.__shady_attachShadow(e)},n.focus=function(){this.node.__shady_native_focus()},n.blur=function(){this.node.__shady_blur()},n.importNode=function(e,t){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_importNode(e,t)},n.getElementById=function(e){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_getElementById(e)},n.elementsFromPoint=function(e,t){return this.node.__shady_elementsFromPoint(e,t)},n.elementFromPoint=function(e,t){return this.node.__shady_elementFromPoint(e,t)},n.querySelector=function(e){return this.node.__shady_querySelector(e)},n.querySelectorAll=function(e,t){return this.node.__shady_querySelectorAll(e,t)},n.assignedNodes=function(e){if("slot"===this.node.localName)return this.node.__shady_assignedNodes(e)},n.append=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_append.apply(this.node,i(t))},n.prepend=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_prepend.apply(this.node,i(t))},n.after=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_after.apply(this.node,i(t))},n.before=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_before.apply(this.node,i(t))},n.remove=function(){return this.node.__shady_remove()},n.replaceWith=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_replaceWith.apply(this.node,i(t))},s.Object.defineProperties(nn.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){if(_(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(_(this.node))return this.node.host}},parentNode:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_parentNode}},firstChild:{configurable:!0,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,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}},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,enumerable:!0,get:function(){return this.node.__shady_innerHTML},set:function(e){this.node.__shady_innerHTML=e}},textContent:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_textContent},set:function(e){this.node.__shady_textContent=e}},slot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_slot},set:function(e){this.node.__shady_slot=e}},className:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_className},set:function(e){this.node.__shady_className=e}}}),Le.forEach((function(e){return rn(e)})),Ie.forEach((function(e){return rn(e)}));var on=new WeakMap;function sn(e){if(_(e)||e instanceof nn)return e;var t=on.get(e);return t||(t=new nn(e),on.set(e,t)),t}if(c.K){var an=c.i?function(e){return e}:function(e){return de(e),ce(e),e};window.ShadyDOM={inUse:c.K,patch:an,isShadyRoot:_,enqueue:I,flush:j,flushInitial:function(e){!e.M&&e.s&&Vt(e)},settings:c,filterMutations:function(e,t){var n=t.getRootNode();return e.map((function(e){var t=n===e.target.getRootNode();if(t&&e.addedNodes){if((t=[].slice.call(e.addedNodes).filter((function(e){return n===e.getRootNode()}))).length)return e=Object.create(e),Object.defineProperty(e,"addedNodes",{value:t,configurable:!0}),e}else if(t)return e})).filter((function(e){return e}))},observeChildren:function(e,t){var n=l(e);n.v||(n.v=new F),n.v.F.add(t);var r=n.v;return{V:t,X:r,W:e,takeRecords:function(){return r.takeRecords()}}},unobserveChildren:function(e){var t=e&&e.X;t&&(t.F.delete(e.V),t.F.size||(l(e.W).v=null))},deferConnectionCallbacks:c.deferConnectionCallbacks,preferPerformance:c.preferPerformance,handlesDynamicScoping:!0,wrap:c.l?sn:an,wrapIfNeeded:!0===c.l?sn:function(e){return e},Wrapper:nn,composedPath:function(e){return e.__composedPath||(e.__composedPath=ge(e.target,!0)),e.__composedPath},noPatch:c.l,patchOnDemand:c.L,nativeMethods:X,nativeTree:Y,patchElementProto:Pt},function(){var e=["dispatchEvent","addEventListener","removeEventListener"];window.EventTarget?(J(window.EventTarget.prototype,e),void 0===window.__shady_native_addEventListener&&J(Window.prototype,e)):(J(Node.prototype,e),J(Window.prototype,e)),K?J(Node.prototype,"parentNode firstChild lastChild previousSibling nextSibling childNodes parentElement textContent".split(" ")):z(Node.prototype,{parentNode:{get:function(){return Z.currentNode=this,Z.parentNode()}},firstChild:{get:function(){return Z.currentNode=this,Z.firstChild()}},lastChild:{get:function(){return Z.currentNode=this,Z.lastChild()}},previousSibling:{get:function(){return Z.currentNode=this,Z.previousSibling()}},nextSibling:{get:function(){return Z.currentNode=this,Z.nextSibling()}},childNodes:{get:function(){var e=[];Z.currentNode=this;for(var t=Z.firstChild();t;)e.push(t),t=Z.nextSibling();return e}},parentElement:{get:function(){return Q.currentNode=this,Q.parentNode()}},textContent:{get:function(){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(var e,t=document.createTreeWalker(this,NodeFilter.SHOW_TEXT,null,!1),n="";e=t.nextNode();)n+=e.nodeValue;return n;default:return this.nodeValue}},set:function(e){switch(null==e&&(e=""),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:te(this),(0<e.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_native_insertBefore(document.createTextNode(e),void 0);break;default:this.nodeValue=e}}}}),J(Node.prototype,"appendChild insertBefore removeChild replaceChild cloneNode contains".split(" ")),J(HTMLElement.prototype,["parentElement","contains"]),e={firstElementChild:{get:function(){return Q.currentNode=this,Q.firstChild()}},lastElementChild:{get:function(){return Q.currentNode=this,Q.lastChild()}},children:{get:function(){var e=[];Q.currentNode=this;for(var t=Q.firstChild();t;)e.push(t),t=Q.nextSibling();return C(e)}},childElementCount:{get:function(){return this.children?this.children.length:0}}},K?(J(Element.prototype,ne),J(Element.prototype,["previousElementSibling","nextElementSibling","innerHTML","className"]),J(HTMLElement.prototype,["children","innerHTML","className"])):(z(Element.prototype,e),z(Element.prototype,{previousElementSibling:{get:function(){return Q.currentNode=this,Q.previousSibling()}},nextElementSibling:{get:function(){return Q.currentNode=this,Q.nextSibling()}},innerHTML:{get:function(){return W(this,w)},set:function(e){var t="template"===this.localName?this.content:this;te(t);var n=this.localName||"div";for((n=this.namespaceURI&&this.namespaceURI!==ee.namespaceURI?ee.createElementNS(this.namespaceURI,n):ee.createElement(n)).innerHTML=e,e="template"===this.localName?n.content:n;n=e.__shady_native_firstChild;)t.__shady_native_insertBefore(n,void 0)}},className:{get:function(){return this.getAttribute("class")||""},set:function(e){this.setAttribute("class",e)}}})),J(Element.prototype,"setAttribute getAttribute hasAttribute removeAttribute focus blur".split(" ")),J(Element.prototype,re),J(HTMLElement.prototype,["focus","blur"]),window.HTMLTemplateElement&&J(window.HTMLTemplateElement.prototype,["innerHTML"]),K?J(DocumentFragment.prototype,ne):z(DocumentFragment.prototype,e),J(DocumentFragment.prototype,re),K?(J(Document.prototype,ne),J(Document.prototype,["activeElement"])):z(Document.prototype,e),J(Document.prototype,["importNode","getElementById","elementFromPoint",h()]),J(Document.prototype,re)}(),Ot("__shady_"),Object.defineProperty(document,"_activeElement",gt.activeElement),P(Window.prototype,Et,"__shady_"),c.l?c.L&&P(Element.prototype,dt):(Ot(),function(){if(!fe&&Object.getOwnPropertyDescriptor(Event.prototype,"isTrusted")){var e=function(){var e=new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0});this.__shady_dispatchEvent(e)};Element.prototype.click?Element.prototype.click=e:HTMLElement.prototype.click&&(HTMLElement.prototype.click=e)}}()),function(){for(var e in Ee)window.__shady_native_addEventListener(e,(function(e){e.__target||(Me(e),we(e))}),!0)}(),window.Event=De,window.CustomEvent=Re,window.MouseEvent=Ae,window.ShadowRoot=Bt}}).call(this)}).call(this,n(336))},354:function(e,t,n){"use strict";
15
15
  /**
16
16
  @license
17
17
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -20,7 +20,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
20
20
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
21
21
  Code distributed by Google as part of the polymer project is also
22
22
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
23
- */var r=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};function o(e){return function e(t,n){var r=n.substring(t.start,t.end-1);if(t.parsedCssText=t.cssText=r.trim(),t.parent){var o=t.previous?t.previous.end:t.parent.start;r=(r=(r=function(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e}))}(r=n.substring(o,t.start-1))).replace(f.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var i=t.parsedSelector=t.selector=r.trim();t.atRule=0===i.indexOf(y),t.atRule?0===i.indexOf(p)?t.type=c.MEDIA_RULE:i.match(f.keyframesRule)&&(t.type=c.KEYFRAMES_RULE,t.keyframesName=t.selector.split(f.multipleSpaces).pop()):0===i.indexOf(_)?t.type=c.MIXIN_RULE:t.type=c.STYLE_RULE}var s=t.rules;if(s)for(var a,l=0,u=s.length;l<u&&(a=s[l]);l++)e(a,n);return t}(function(e){var t=new r;t.start=0,t.end=e.length;for(var n=t,o=0,i=e.length;o<i;o++)if(e[o]===d){n.rules||(n.rules=[]);var s=n,a=s.rules[s.rules.length-1]||null;(n=new r).start=o+1,n.parent=s,n.previous=a,s.rules.push(n)}else e[o]===h&&(n.end=o+1,n=n.parent||t);return t}(e=e.replace(f.comments,"").replace(f.port,"")),e)}function i(e){var t=e[0];return Boolean(t)&&Boolean(t.selector)&&0===t.selector.indexOf(_)}function s(e){return function(e){return e.replace(f.mixinApply,"").replace(f.varApply,"")}(e=a(e))}function a(e){return e.replace(f.customProp,"").replace(f.mixinProp,"")}var l,u,c={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},d="{",h="}",f={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},_="--",p="@media",y="@",m=!(window.ShadyDOM&&window.ShadyDOM.inUse);function v(e){l=(!e||!e.shimcssproperties)&&(m||Boolean(!navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)&&window.CSS&&CSS.supports&&CSS.supports("box-shadow","0 0 0 var(--foo)")))}window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(u=window.ShadyCSS.cssBuild);var g=Boolean(window.ShadyCSS&&window.ShadyCSS.disableRuntime);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?l=window.ShadyCSS.nativeCss:window.ShadyCSS?(v(window.ShadyCSS),window.ShadyCSS=void 0):v(window.WebComponents&&window.WebComponents.flags);var S=l,E=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,N=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,b=/(--[\w-]+)\s*([:,;)]|$)/gi,C=/(animation\s*:)|(animation-name\s*:)/,w=/@media\s(.*)/,T=/\{[^}]*\}/g,O=new Set;
23
+ */function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var i=o((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""}));function s(e){return function e(t,n){var r=n.substring(t.start,t.end-1);if(t.parsedCssText=t.cssText=r.trim(),t.parent){var o=t.previous?t.previous.end:t.parent.start;r=(r=(r=function(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e}))}(r=n.substring(o,t.start-1))).replace(p.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var i=t.parsedSelector=t.selector=r.trim();t.atRule=0===i.indexOf(v),t.atRule?0===i.indexOf(m)?t.type=h.MEDIA_RULE:i.match(p.keyframesRule)&&(t.type=h.KEYFRAMES_RULE,t.keyframesName=t.selector.split(p.multipleSpaces).pop()):0===i.indexOf(y)?t.type=h.MIXIN_RULE:t.type=h.STYLE_RULE}var s=t.rules;if(s)for(var a,l=0,u=s.length;l<u&&(a=s[l]);l++)e(a,n);return t}(function(e){var t=new i;t.start=0,t.end=e.length;for(var n=t,r=0,o=e.length;r<o;r++)if(e[r]===f){n.rules||(n.rules=[]);var s=n,a=s.rules[s.rules.length-1]||null;(n=new i).start=r+1,n.parent=s,n.previous=a,s.rules.push(n)}else e[r]===_&&(n.end=r+1,n=n.parent||t);return t}(e=e.replace(p.comments,"").replace(p.port,"")),e)}function a(e){var t=e[0];return Boolean(t)&&Boolean(t.selector)&&0===t.selector.indexOf(y)}function l(e){return function(e){return e.replace(p.mixinApply,"").replace(p.varApply,"")}(e=u(e))}function u(e){return e.replace(p.customProp,"").replace(p.mixinProp,"")}var c,d,h={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},f="{",_="}",p={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},y="--",m="@media",v="@",g=!(window.ShadyDOM&&window.ShadyDOM.inUse);function S(e){c=(!e||!e.shimcssproperties)&&(g||Boolean(!navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)&&window.CSS&&CSS.supports&&CSS.supports("box-shadow","0 0 0 var(--foo)")))}window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(d=window.ShadyCSS.cssBuild);var b=Boolean(window.ShadyCSS&&window.ShadyCSS.disableRuntime);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?c=window.ShadyCSS.nativeCss:window.ShadyCSS?(S(window.ShadyCSS),window.ShadyCSS=void 0):S(window.WebComponents&&window.WebComponents.flags);var E=c,N=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,C=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,w=/(--[\w-]+)\s*([:,;)]|$)/gi,T=/(animation\s*:)|(animation-name\s*:)/,O=/@media\s(.*)/,P=/\{[^}]*\}/g,x=new Set;
24
24
  /**
25
25
  @license
26
26
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -29,7 +29,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
29
29
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
30
30
  Code distributed by Google as part of the polymer project is also
31
31
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
32
- */function x(e){var t=e.textContent;if(!O.has(t)){O.add(t);var n=document.createElement("style");n.setAttribute("shady-unscoped",""),n.textContent=t,document.head.appendChild(n)}}function P(e){return e.hasAttribute("shady-unscoped")}
32
+ */function k(e){var t=e.textContent;if(!x.has(t)){x.add(t);var n=document.createElement("style");n.setAttribute("shady-unscoped",""),n.textContent=t,document.head.appendChild(n)}}function M(e){return e.hasAttribute("shady-unscoped")}
33
33
  /**
34
34
  @license
35
35
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -38,7 +38,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
38
38
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
39
39
  Code distributed by Google as part of the polymer project is also
40
40
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
41
- */function k(e,t){return e?("string"==typeof e&&(e=o(e)),t&&R(e,t),function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o="";if(t.cssText||t.rules){var a=t.rules;if(a&&!i(a))for(var l,u=0,c=a.length;u<c&&(l=a[u]);u++)o=e(l,n,o);else(o=(o=n?t.cssText:s(t.cssText)).trim())&&(o=" "+o+"\n")}return o&&(t.selector&&(r+=t.selector+" "+d+"\n"),r+=o,t.selector&&(r+=h+"\n\n")),r}(e,S)):""}function M(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=o(e.textContent)),e.__cssRules||null}function D(e){return Boolean(e.parent)&&e.parent.type===c.KEYFRAMES_RULE}function R(e,t,n,r){if(e){var o=!1,i=e.type;if(r&&i===c.MEDIA_RULE){var s=e.selector.match(w);s&&(window.matchMedia(s[1]).matches||(o=!0))}i===c.STYLE_RULE?t(e):n&&i===c.KEYFRAMES_RULE?n(e):i===c.MIXIN_RULE&&(o=!0);var a=e.rules;if(a&&!o)for(var l,u=0,d=a.length;u<d&&(l=a[u]);u++)R(l,t,n,r)}}function A(e,t,n,r){var o=function(e,t){var n=document.createElement("style");t&&n.setAttribute("scope",t);return n.textContent=e,n}(e,t);return I(o,n,r),o}var L=null;function I(e,t,n){t=t||document.head;var r=n&&n.nextSibling||t.firstChild;(t.insertBefore(e,r),L)?e.compareDocumentPosition(L)===Node.DOCUMENT_POSITION_PRECEDING&&(L=e):L=e}function F(e,t){for(var n=0,r=t,o=e.length;r<o;r++)if("("===e[r])n++;else if(")"===e[r]&&0==--n)return r;return-1}function j(e,t){m?e.setAttribute("class",t):window.ShadyDOM.nativeMethods.setAttribute.call(e,"class",t)}var H=window.ShadyDOM&&window.ShadyDOM.wrap||function(e){return e};function B(e){var t=e.localName,n="",r="";return t?t.indexOf("-")>-1?n=t:(r=t,n=e.getAttribute&&e.getAttribute("is")||""):(n=e.is,r=e.extends),{is:n,typeExtension:r}}function U(e){for(var t=[],n="",r=0;r>=0&&r<e.length;r++)if("("===e[r]){var o=F(e,r);n+=e.slice(r,o+1),r=o}else","===e[r]?(t.push(n),n=""):n+=e[r];return n&&t.push(n),t}function q(e){if(void 0!==u)return u;if(void 0===e.__cssBuild){var t=e.getAttribute("css-build");if(t)e.__cssBuild=t;else{var n=function(e){var t="template"===e.localName?e.content.firstChild:e.firstChild;if(t instanceof Comment){var n=t.textContent.trim().split(":");if("css-build"===n[0])return n[1]}return""}(e);""!==n&&function(e){var t="template"===e.localName?e.content.firstChild:e.firstChild;t.parentNode.removeChild(t)}
41
+ */function D(e,t){return e?("string"==typeof e&&(e=s(e)),t&&L(e,t),function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o="";if(t.cssText||t.rules){var i=t.rules;if(i&&!a(i))for(var s,u=0,c=i.length;u<c&&(s=i[u]);u++)o=e(s,n,o);else(o=(o=n?t.cssText:l(t.cssText)).trim())&&(o=" "+o+"\n")}return o&&(t.selector&&(r+=t.selector+" "+f+"\n"),r+=o,t.selector&&(r+=_+"\n\n")),r}(e,E)):""}function R(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=s(e.textContent)),e.__cssRules||null}function A(e){return Boolean(e.parent)&&e.parent.type===h.KEYFRAMES_RULE}function L(e,t,n,r){if(e){var o=!1,i=e.type;if(r&&i===h.MEDIA_RULE){var s=e.selector.match(O);s&&(window.matchMedia(s[1]).matches||(o=!0))}i===h.STYLE_RULE?t(e):n&&i===h.KEYFRAMES_RULE?n(e):i===h.MIXIN_RULE&&(o=!0);var a=e.rules;if(a&&!o)for(var l,u=0,c=a.length;u<c&&(l=a[u]);u++)L(l,t,n,r)}}function I(e,t,n,r){var o=function(e,t){var n=document.createElement("style");t&&n.setAttribute("scope",t);return n.textContent=e,n}(e,t);return F(o,n,r),o}var j=null;function F(e,t,n){t=t||document.head;var r=n&&n.nextSibling||t.firstChild;(t.insertBefore(e,r),j)?e.compareDocumentPosition(j)===Node.DOCUMENT_POSITION_PRECEDING&&(j=e):j=e}function H(e,t){for(var n=0,r=t,o=e.length;r<o;r++)if("("===e[r])n++;else if(")"===e[r]&&0==--n)return r;return-1}function B(e,t){g?e.setAttribute("class",t):window.ShadyDOM.nativeMethods.setAttribute.call(e,"class",t)}var U=window.ShadyDOM&&window.ShadyDOM.wrap||function(e){return e};function q(e){var t=e.localName,n="",r="";return t?t.indexOf("-")>-1?n=t:(r=t,n=e.getAttribute&&e.getAttribute("is")||""):(n=e.is,r=e.extends),{is:n,typeExtension:r}}function V(e){for(var t=[],n="",r=0;r>=0&&r<e.length;r++)if("("===e[r]){var o=H(e,r);n+=e.slice(r,o+1),r=o}else","===e[r]?(t.push(n),n=""):n+=e[r];return n&&t.push(n),t}function G(e){if(void 0!==d)return d;if(void 0===e.__cssBuild){var t=e.getAttribute("css-build");if(t)e.__cssBuild=t;else{var n=function(e){var t="template"===e.localName?e.content.firstChild:e.firstChild;if(t instanceof Comment){var n=t.textContent.trim().split(":");if("css-build"===n[0])return n[1]}return""}(e);""!==n&&function(e){var t="template"===e.localName?e.content.firstChild:e.firstChild;t.parentNode.removeChild(t)}
42
42
  /**
43
43
  @license
44
44
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -47,7 +47,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
47
47
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
48
48
  Code distributed by Google as part of the polymer project is also
49
49
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
50
- */(e),e.__cssBuild=n}}return e.__cssBuild||""}function V(e){return""!==q(e)}function G(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!(""===e||!S)&&(m?"shadow"===e:"shady"===e)}function W(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var K=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"SCOPE_NAME",get:function(){return"style-scope"}},{key:"dom",value:function(e,t,n){var r=this;this._transformDom(e,(function(e){r.element(e,t||"",n)}))}},{key:"domAddScope",value:function(e,t){var n=this;this._transformDom(e,(function(e){n.element(e,t||"")}))}},{key:"_transformDom",value:function(e,t){var n;if(e.nodeType===Node.ELEMENT_NODE&&t(e),"template"===e.localName){var r=e;n=(r.content||r._content||r).childNodes}else n=e.children||e.childNodes;if(n)for(var o=0;o<n.length;o++)this._transformDom(n[o],t)}},{key:"element",value:function(e,t,n){if(t)if(e.classList)n?(e.classList.remove("style-scope"),e.classList.remove(t)):(e.classList.add("style-scope"),e.classList.add(t));else if(e.getAttribute){var r=e.getAttribute(ae);n?r&&j(e,r.replace("style-scope","").replace(t,"")):j(e,(r?r+" ":"")+"style-scope "+t)}}},{key:"domReplaceScope",value:function(e,t,n){var r=this;this._transformDom(e,(function(e){r.element(e,t,!0),r.element(e,n)}))}},{key:"domRemoveScope",value:function(e,t){var n=this;this._transformDom(e,(function(e){n.element(e,t||"",!0)}))}},{key:"elementStyles",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";if(""===o)if(m||"shady"===r)o=k(t,n);else{var i=B(e),s=i.is,a=i.typeExtension;o=this.css(t,s,a,n)+"\n\n"}return o.trim()}},{key:"css",value:function(e,t,n,r){var o=this._calcHostScope(t,n);t=this._calcElementScope(t);var i=this;return k(e,(function(e){e.isScoped||(i.rule(e,t,o),e.isScoped=!0),r&&r(e,t,o)}))}},{key:"_calcElementScope",value:function(e){return e?ie+e:""}},{key:"_calcHostScope",value:function(e,t){return t?"[is=".concat(e,"]"):e}},{key:"rule",value:function(e,t,n){this._transformRule(e,this._transformComplexSelector,t,n)}},{key:"_transformRule",value:function(e,t,n,r){e.selector=e.transformedSelector=this._transformRuleCss(e,t,n,r)}},{key:"_transformRuleCss",value:function(e,t,n,r){var o=U(e.selector);if(!D(e))for(var i,s=0,a=o.length;s<a&&(i=o[s]);s++)o[s]=t.call(this,i,n,r);return o.filter((function(e){return Boolean(e)})).join($)}},{key:"_twiddleNthPlus",value:function(e){return e.replace(X,(function(e,t,n){return n.indexOf("+")>-1?n=n.replace(/\+/g,"___"):n.indexOf("___")>-1&&(n=n.replace(/___/g,"+")),":".concat(t,"(").concat(n,")")}))}},{key:"_preserveMatchesPseudo",value:function(e){for(var t,n=[];t=e.match(ue);){var r=t.index,o=F(e,r);if(-1===o)throw new Error("".concat(t.input," selector missing ')'"));var i=e.slice(r,o+1);e=e.replace(i,ce),n.push(i)}return{selector:e,matches:n}}},{key:"_replaceMatchesPseudo",value:function(e,t){var n=e.split(ce);return t.reduce((function(e,t,r){return e+t+n[r+1]}),n[0])}},{key:"_transformComplexSelector",value:function(e,t,n){var r=this,o=!1;e=e.trim();var i=X.test(e);i&&(e=e.replace(X,(function(e,t,n){return":".concat(t,"(").concat(n.replace(/\s/g,""),")")})),e=this._twiddleNthPlus(e));var s,a=ue.test(e);if(a){var l=this._preserveMatchesPseudo(e);e=l.selector,s=l.matches}return e=(e=e.replace(te,"".concat(Z," $1"))).replace(z,(function(e,i,s){if(!o){var a=r._transformCompoundSelector(s,i,t,n);o=o||a.stop,i=a.combinator,s=a.value}return i+s})),a&&(e=this._replaceMatchesPseudo(e,s)),i&&(e=this._twiddleNthPlus(e)),e=e.replace(oe,(function(e,t,n,r){return'[dir="'.concat(n,'"] ').concat(t).concat(r,", ").concat(t,'[dir="').concat(n,'"]').concat(r)}))}},{key:"_transformCompoundSelector",value:function(e,t,n,r){var o=e.indexOf(ee);e.indexOf(Z)>=0?e=this._transformHostSelector(e,r):0!==o&&(e=n?this._transformSimpleSelector(e,n):e);var i,s=!1;return o>=0&&(t="",s=!0),s&&(i=!0,s&&(e=e.replace(re,(function(e,t){return" > ".concat(t)})))),{value:e,combinator:t,stop:i}}},{key:"_transformSimpleSelector",value:function(e,t){for(var n=e.split(/(\[.+?\])/),r=[],o=0;o<n.length;o++)if(o%2==1)r.push(n[o]);else{var i=n[o];if(""!==i||o!==n.length-1){var s=i.split(se);s[0]+=t,r.push(s.join(se))}}return r.join("")}},{key:"_transformHostSelector",value:function(e,t){var n=e.match(ne),r=n&&n[2].trim()||"";return r?r[0].match(J)?e.replace(ne,(function(e,n,r){return t+r})):r.split(J)[0]===t?r:le:e.replace(Z,t)}},{key:"documentRule",value:function(e){e.selector=e.parsedSelector,this.normalizeRootSelector(e),this._transformRule(e,this._transformDocumentSelector)}},{key:"normalizeRootSelector",value:function(e){e.selector===Q&&(e.selector="html")}},{key:"_transformDocumentSelector",value:function(e){return e.match(Z)?"":e.match(ee)?this._transformComplexSelector(e,Y):this._transformSimpleSelector(e.trim(),Y)}}])&&W(t.prototype,n),r&&W(t,r),e}(),X=/:(nth[-\w]+)\(([^)]+)\)/,Y=":not(.".concat("style-scope",")"),$=",",z=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,J=/[[.:#*]/,Z=":host",Q=":root",ee="::slotted",te=new RegExp("^(".concat(ee,")")),ne=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,re=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,oe=/(.*):dir\((?:(ltr|rtl))\)(.*)/,ie=".",se=":",ae="class",le="should_not_match",ue=/:(?:matches|any|-(?:webkit|moz)-any)/,ce="",de=new K;function he(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var fe=function(){function e(t,n,r,o,i,s){!
50
+ */(e),e.__cssBuild=n}}return e.__cssBuild||""}function W(e){return""!==G(e)}function K(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!(""===e||!E)&&(g?"shadow"===e:"shady"===e)}function X(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Y=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"SCOPE_NAME",get:function(){return"style-scope"}},{key:"dom",value:function(e,t,n){var r=this;this._transformDom(e,(function(e){r.element(e,t||"",n)}))}},{key:"domAddScope",value:function(e,t){var n=this;this._transformDom(e,(function(e){n.element(e,t||"")}))}},{key:"_transformDom",value:function(e,t){var n;if(e.nodeType===Node.ELEMENT_NODE&&t(e),"template"===e.localName){var r=e;n=(r.content||r._content||r).childNodes}else n=e.children||e.childNodes;if(n)for(var o=0;o<n.length;o++)this._transformDom(n[o],t)}},{key:"element",value:function(e,t,n){if(t)if(e.classList)n?(e.classList.remove("style-scope"),e.classList.remove(t)):(e.classList.add("style-scope"),e.classList.add(t));else if(e.getAttribute){var r=e.getAttribute(ue);n?r&&B(e,r.replace("style-scope","").replace(t,"")):B(e,(r?r+" ":"")+"style-scope "+t)}}},{key:"domReplaceScope",value:function(e,t,n){var r=this;this._transformDom(e,(function(e){r.element(e,t,!0),r.element(e,n)}))}},{key:"domRemoveScope",value:function(e,t){var n=this;this._transformDom(e,(function(e){n.element(e,t||"",!0)}))}},{key:"elementStyles",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";if(""===o)if(g||"shady"===r)o=D(t,n);else{var i=q(e),s=i.is,a=i.typeExtension;o=this.css(t,s,a,n)+"\n\n"}return o.trim()}},{key:"css",value:function(e,t,n,r){var o=this._calcHostScope(t,n);t=this._calcElementScope(t);var i=this;return D(e,(function(e){e.isScoped||(i.rule(e,t,o),e.isScoped=!0),r&&r(e,t,o)}))}},{key:"_calcElementScope",value:function(e){return e?ae+e:""}},{key:"_calcHostScope",value:function(e,t){return t?"[is=".concat(e,"]"):e}},{key:"rule",value:function(e,t,n){this._transformRule(e,this._transformComplexSelector,t,n)}},{key:"_transformRule",value:function(e,t,n,r){e.selector=e.transformedSelector=this._transformRuleCss(e,t,n,r)}},{key:"_transformRuleCss",value:function(e,t,n,r){var o=V(e.selector);if(!A(e))for(var i,s=0,a=o.length;s<a&&(i=o[s]);s++)o[s]=t.call(this,i,n,r);return o.filter((function(e){return Boolean(e)})).join(J)}},{key:"_twiddleNthPlus",value:function(e){return e.replace($,(function(e,t,n){return n.indexOf("+")>-1?n=n.replace(/\+/g,"___"):n.indexOf("___")>-1&&(n=n.replace(/___/g,"+")),":".concat(t,"(").concat(n,")")}))}},{key:"_preserveMatchesPseudo",value:function(e){for(var t,n=[];t=e.match(de);){var r=t.index,o=H(e,r);if(-1===o)throw new Error("".concat(t.input," selector missing ')'"));var i=e.slice(r,o+1);e=e.replace(i,he),n.push(i)}return{selector:e,matches:n}}},{key:"_replaceMatchesPseudo",value:function(e,t){var n=e.split(he);return t.reduce((function(e,t,r){return e+t+n[r+1]}),n[0])}},{key:"_transformComplexSelector",value:function(e,t,n){var r=this,o=!1;e=e.trim();var i=$.test(e);i&&(e=e.replace($,(function(e,t,n){return":".concat(t,"(").concat(n.replace(/\s/g,""),")")})),e=this._twiddleNthPlus(e));var s,a=de.test(e);if(a){var l=this._preserveMatchesPseudo(e);e=l.selector,s=l.matches}return e=(e=e.replace(re,"".concat(ee," $1"))).replace(Z,(function(e,i,s){if(!o){var a=r._transformCompoundSelector(s,i,t,n);o=o||a.stop,i=a.combinator,s=a.value}return i+s})),a&&(e=this._replaceMatchesPseudo(e,s)),i&&(e=this._twiddleNthPlus(e)),e=e.replace(se,(function(e,t,n,r){return'[dir="'.concat(n,'"] ').concat(t).concat(r,", ").concat(t,'[dir="').concat(n,'"]').concat(r)}))}},{key:"_transformCompoundSelector",value:function(e,t,n,r){var o=e.indexOf(ne);e.indexOf(ee)>=0?e=this._transformHostSelector(e,r):0!==o&&(e=n?this._transformSimpleSelector(e,n):e);var i,s=!1;return o>=0&&(t="",s=!0),s&&(i=!0,s&&(e=e.replace(ie,(function(e,t){return" > ".concat(t)})))),{value:e,combinator:t,stop:i}}},{key:"_transformSimpleSelector",value:function(e,t){for(var n=e.split(/(\[.+?\])/),r=[],o=0;o<n.length;o++)if(o%2==1)r.push(n[o]);else{var i=n[o];if(""!==i||o!==n.length-1){var s=i.split(le);s[0]+=t,r.push(s.join(le))}}return r.join("")}},{key:"_transformHostSelector",value:function(e,t){var n=e.match(oe),r=n&&n[2].trim()||"";return r?r[0].match(Q)?e.replace(oe,(function(e,n,r){return t+r})):r.split(Q)[0]===t?r:ce:e.replace(ee,t)}},{key:"documentRule",value:function(e){e.selector=e.parsedSelector,this.normalizeRootSelector(e),this._transformRule(e,this._transformDocumentSelector)}},{key:"normalizeRootSelector",value:function(e){e.selector===te&&(e.selector="html")}},{key:"_transformDocumentSelector",value:function(e){return e.match(ee)?"":e.match(ne)?this._transformComplexSelector(e,z):this._transformSimpleSelector(e.trim(),z)}}])&&X(t.prototype,n),r&&X(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),$=/:(nth[-\w]+)\(([^)]+)\)/,z=":not(.".concat("style-scope",")"),J=",",Z=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,Q=/[[.:#*]/,ee=":host",te=":root",ne="::slotted",re=new RegExp("^(".concat(ne,")")),oe=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,ie=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,se=/(.*):dir\((?:(ltr|rtl))\)(.*)/,ae=".",le=":",ue="class",ce="should_not_match",de=/:(?:matches|any|-(?:webkit|moz)-any)/,he="",fe=new Y;function _e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var pe=function(){function e(t,n,r,o,i,s){!
51
51
  /**
52
52
  @license
53
53
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -57,7 +57,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
57
57
  Code distributed by Google as part of the polymer project is also
58
58
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
59
59
  */
60
- function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.styleRules=t||null,this.placeholder=n||null,this.ownStylePropertyNames=r||[],this.overrideStyleProperties=null,this.elementName=o||"",this.cssBuild=s||"",this.typeExtension=i||"",this.styleProperties=null,this.scopeSelector=null,this.customStyle=null}var t,n,r;return t=e,r=[{key:"get",value:function(e){return e?e.__styleInfo:null}},{key:"set",value:function(e,t){return e.__styleInfo=t,t}}],(n=[{key:"_getStyleRules",value:function(){return this.styleRules}}])&&he(t.prototype,n),r&&he(t,r),e}();function _e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}fe.prototype._getStyleRules=fe.prototype._getStyleRules;var pe=function(e){var t=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return t&&t.call(this,e)},ye=/:host\s*>\s*/;var me=navigator.userAgent.match("Trident");var ve=new(function(){function e(){!
60
+ function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.styleRules=t||null,this.placeholder=n||null,this.ownStylePropertyNames=r||[],this.overrideStyleProperties=null,this.elementName=o||"",this.cssBuild=s||"",this.typeExtension=i||"",this.styleProperties=null,this.scopeSelector=null,this.customStyle=null}var t,n,r;return t=e,r=[{key:"get",value:function(e){return e?e.__styleInfo:null}},{key:"set",value:function(e,t){return e.__styleInfo=t,t}}],(n=[{key:"_getStyleRules",value:function(){return this.styleRules}}])&&_e(t.prototype,n),r&&_e(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ye(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}pe.prototype._getStyleRules=pe.prototype._getStyleRules;var me=function(e){var t=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return t&&t.call(this,e)},ve=/:host\s*>\s*/;var ge=navigator.userAgent.match("Trident");var Se=new(function(){function e(){!
61
61
  /**
62
62
  @license
63
63
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -67,7 +67,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
67
67
  Code distributed by Google as part of the polymer project is also
68
68
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
69
69
  */
70
- function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"XSCOPE_NAME",get:function(){return"x-scope"}},{key:"decorateStyles",value:function(e){var t=this,n={},r=[],o=0;R(e,(function(e){t.decorateRule(e),e.index=o++,t.collectPropertiesInCssText(e.propertyInfo.cssText,n)}),(function(e){r.push(e)})),e._keyframes=r;var i=[];for(var s in n)i.push(s);return i}},{key:"decorateRule",value:function(e){if(e.propertyInfo)return e.propertyInfo;var t={},n={};return this.collectProperties(e,n)&&(t.properties=n,e.rules=null),t.cssText=this.collectCssText(e),e.propertyInfo=t,t}},{key:"collectProperties",value:function(e,t){var n=e.propertyInfo;if(!n){for(var r,o,i,s=E,a=e.parsedCssText;r=s.exec(a);)"inherit"===(o=(r[2]||r[3]).trim())&&"unset"===o||(t[r[1].trim()]=o),i=!0;return i}if(n.properties)return Object.assign(t,n.properties),!0}},{key:"collectCssText",value:function(e){return this.collectConsumingCssText(e.parsedCssText)}},{key:"collectConsumingCssText",value:function(e){return e.replace(T,"").replace(E,"")}},{key:"collectPropertiesInCssText",value:function(e,t){for(var n;n=b.exec(e);){var r=n[1];":"!==n[2]&&(t[r]=!0)}}},{key:"reify",value:function(e){for(var t,n=Object.getOwnPropertyNames(e),r=0;r<n.length;r++)e[t=n[r]]=this.valueForProperty(e[t],e)}},{key:"valueForProperty",value:function(e,t){if(e)if(e.indexOf(";")>=0)e=this.valueForProperties(e,t);else{var n=this;e=function e(t,n){var r=t.indexOf("var(");if(-1===r)return n(t,"","","");var o=F(t,r+3),i=t.substring(r+4,o),s=t.substring(0,r),a=e(t.substring(o+1),n),l=i.indexOf(",");return-1===l?n(s,i.trim(),"",a):n(s,i.substring(0,l).trim(),i.substring(l+1).trim(),a)}(e,(function(e,r,o,i){if(!r)return e+i;var s=n.valueForProperty(t[r],t);return s&&"initial"!==s?"apply-shim-inherit"===s&&(s="inherit"):s=n.valueForProperty(t[o]||o,t)||o,e+(s||"")+i}))}return e&&e.trim()||""}},{key:"valueForProperties",value:function(e,t){for(var n,r,o=e.split(";"),i=0;i<o.length;i++)if(n=o[i]){if(N.lastIndex=0,r=N.exec(n))n=this.valueForProperty(t[r[1]],t);else{var s=n.indexOf(":");if(-1!==s){var a=n.substring(s);a=a.trim(),a=this.valueForProperty(a,t)||a,n=n.substring(0,s)+a}}o[i]=n&&n.lastIndexOf(";")===n.length-1?n.slice(0,-1):n||""}return o.join(";")}},{key:"applyProperties",value:function(e,t){var n="";e.propertyInfo||this.decorateRule(e),e.propertyInfo.cssText&&(n=this.valueForProperties(e.propertyInfo.cssText,t)),e.cssText=n}},{key:"applyKeyframeTransforms",value:function(e,t){var n=e.cssText,r=e.cssText;if(null==e.hasAnimations&&(e.hasAnimations=C.test(n)),e.hasAnimations)if(null==e.keyframeNamesToTransform)for(var o in e.keyframeNamesToTransform=[],t)n!==(r=(0,t[o])(n))&&(n=r,e.keyframeNamesToTransform.push(o));else{for(var i=0;i<e.keyframeNamesToTransform.length;++i)n=(0,t[e.keyframeNamesToTransform[i]])(n);r=n}e.cssText=r}},{key:"propertyDataFromStyles",value:function(e,t){var n=this,r={},o=[];return R(e,(function(e){e.propertyInfo||n.decorateRule(e);var i=e.transformedSelector||e.parsedSelector;t&&e.propertyInfo.properties&&i&&pe.call(t,i)&&(n.collectProperties(e,r),function(e,t){var n=parseInt(e/32,10),r=1<<e%32;t[n]=(t[n]||0)|r}(e.index,o))}),null,!0),{properties:r,key:o}}},{key:"whenHostOrRootRule",value:function(e,t,n,r){if(t.propertyInfo||this.decorateRule(t),t.propertyInfo.properties){var o=B(e),i=o.is,s=o.typeExtension,a=i?de._calcHostScope(i,s):"html",l=t.parsedSelector,u=function(e,t){return Boolean(t.match(ye))||"html"===e&&t.indexOf("html")>-1}(a,l),c=0===l.indexOf(":host")&&!u;if("shady"===n&&(c=!(u=l===a+" > *."+a||-1!==l.indexOf("html"))&&0===l.indexOf(a)),u||c){var d=a;c&&(t.transformedSelector||(t.transformedSelector=de._transformRuleCss(t,de._transformComplexSelector,de._calcElementScope(i),a)),d=t.transformedSelector||a),u&&"html"===a&&(d=t.transformedSelector||t.parsedSelector),r({selector:d,isHost:c,isRoot:u})}}}},{key:"hostAndRootPropertiesForScope",value:function(e,t,n){var r=this,o={},i={};return R(t,(function(t){r.whenHostOrRootRule(e,t,n,(function(n){var s=e._element||e;pe.call(s,n.selector)&&(n.isHost?r.collectProperties(t,o):r.collectProperties(t,i))}))}),null,!0),{rootProps:i,hostProps:o}}},{key:"transformStyles",value:function(e,t,n){var r=this,o=B(e),i=o.is,s=o.typeExtension,a=de._calcHostScope(i,s),l=e.extends?"\\"+a.slice(0,-1)+"\\]":a,u=new RegExp("(?:^|[^.#[:])"+l+"($|[.:[\\s>+~])"),c=fe.get(e),d=c.styleRules,h=c.cssBuild,f=this._elementKeyframeTransforms(e,d,n);return de.elementStyles(e,d,(function(e){r.applyProperties(e,t),m||D(e)||!e.cssText||(r.applyKeyframeTransforms(e,f),r._scopeSelector(e,u,a,n))}),h)}},{key:"_elementKeyframeTransforms",value:function(e,t,n){var r=t._keyframes,o={};if(!m&&r)for(var i=0,s=r[i];i<r.length;s=r[++i])this._scopeKeyframes(s,n),o[s.keyframesName]=this._keyframesRuleTransformer(s);return o}},{key:"_keyframesRuleTransformer",value:function(e){return function(t){return t.replace(e.keyframesNameRx,e.transformedKeyframesName)}}},{key:"_scopeKeyframes",value:function(e,t){e.keyframesNameRx=new RegExp("\\b".concat(e.keyframesName,"(?!\\B|-)"),"g"),e.transformedKeyframesName=e.keyframesName+"-"+t,e.transformedSelector=e.transformedSelector||e.selector,e.selector=e.transformedSelector.replace(e.keyframesName,e.transformedKeyframesName)}},{key:"_scopeSelector",value:function(e,t,n,r){e.transformedSelector=e.transformedSelector||e.selector;for(var o,i="."+r,s=U(e.transformedSelector),a=0,l=s.length;a<l&&(o=s[a]);a++)s[a]=o.match(t)?o.replace(n,i):i+" "+o;e.selector=s.join(",")}},{key:"applyElementScopeSelector",value:function(e,t,n){var r=e.getAttribute("class")||"",o=r;n&&(o=r.replace(new RegExp("\\s*x-scope\\s*"+n+"\\s*","g")," ")),r!==(o+=(o?" ":"")+"x-scope "+t)&&j(e,o)}},{key:"applyElementStyle",value:function(e,t,n,r){var o=r?r.textContent||"":this.transformStyles(e,t,n),i=fe.get(e),s=i.customStyle;return s&&!m&&s!==r&&(s._useCount--,s._useCount<=0&&s.parentNode&&s.parentNode.removeChild(s)),m?i.customStyle?(i.customStyle.textContent=o,r=i.customStyle):o&&(r=A(o,n,e.shadowRoot,i.placeholder)):r?r.parentNode||(me&&o.indexOf("@media")>-1&&(r.textContent=o),I(r,null,i.placeholder)):o&&(r=A(o,n,null,i.placeholder)),r&&(r._useCount=r._useCount||0,i.customStyle!=r&&r._useCount++,i.customStyle=r),r}},{key:"applyCustomStyle",value:function(e,t){var n=M(e),r=this;e.textContent=k(n,(function(e){var n=e.cssText=e.parsedCssText;e.propertyInfo&&e.propertyInfo.cssText&&(n=a(n),e.cssText=r.valueForProperties(n,t))}))}}])&&_e(t.prototype,n),r&&_e(t,r),e}()),ge={};
70
+ function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"XSCOPE_NAME",get:function(){return"x-scope"}},{key:"decorateStyles",value:function(e){var t=this,n={},r=[],o=0;L(e,(function(e){t.decorateRule(e),e.index=o++,t.collectPropertiesInCssText(e.propertyInfo.cssText,n)}),(function(e){r.push(e)})),e._keyframes=r;var i=[];for(var s in n)i.push(s);return i}},{key:"decorateRule",value:function(e){if(e.propertyInfo)return e.propertyInfo;var t={},n={};return this.collectProperties(e,n)&&(t.properties=n,e.rules=null),t.cssText=this.collectCssText(e),e.propertyInfo=t,t}},{key:"collectProperties",value:function(e,t){var n=e.propertyInfo;if(!n){for(var r,o,i,s=N,a=e.parsedCssText;r=s.exec(a);)"inherit"===(o=(r[2]||r[3]).trim())&&"unset"===o||(t[r[1].trim()]=o),i=!0;return i}if(n.properties)return Object.assign(t,n.properties),!0}},{key:"collectCssText",value:function(e){return this.collectConsumingCssText(e.parsedCssText)}},{key:"collectConsumingCssText",value:function(e){return e.replace(P,"").replace(N,"")}},{key:"collectPropertiesInCssText",value:function(e,t){for(var n;n=w.exec(e);){var r=n[1];":"!==n[2]&&(t[r]=!0)}}},{key:"reify",value:function(e){for(var t,n=Object.getOwnPropertyNames(e),r=0;r<n.length;r++)e[t=n[r]]=this.valueForProperty(e[t],e)}},{key:"valueForProperty",value:function(e,t){if(e)if(e.indexOf(";")>=0)e=this.valueForProperties(e,t);else{var n=this;e=function e(t,n){var r=t.indexOf("var(");if(-1===r)return n(t,"","","");var o=H(t,r+3),i=t.substring(r+4,o),s=t.substring(0,r),a=e(t.substring(o+1),n),l=i.indexOf(",");return-1===l?n(s,i.trim(),"",a):n(s,i.substring(0,l).trim(),i.substring(l+1).trim(),a)}(e,(function(e,r,o,i){if(!r)return e+i;var s=n.valueForProperty(t[r],t);return s&&"initial"!==s?"apply-shim-inherit"===s&&(s="inherit"):s=n.valueForProperty(t[o]||o,t)||o,e+(s||"")+i}))}return e&&e.trim()||""}},{key:"valueForProperties",value:function(e,t){for(var n,r,o=e.split(";"),i=0;i<o.length;i++)if(n=o[i]){if(C.lastIndex=0,r=C.exec(n))n=this.valueForProperty(t[r[1]],t);else{var s=n.indexOf(":");if(-1!==s){var a=n.substring(s);a=a.trim(),a=this.valueForProperty(a,t)||a,n=n.substring(0,s)+a}}o[i]=n&&n.lastIndexOf(";")===n.length-1?n.slice(0,-1):n||""}return o.join(";")}},{key:"applyProperties",value:function(e,t){var n="";e.propertyInfo||this.decorateRule(e),e.propertyInfo.cssText&&(n=this.valueForProperties(e.propertyInfo.cssText,t)),e.cssText=n}},{key:"applyKeyframeTransforms",value:function(e,t){var n=e.cssText,r=e.cssText;if(null==e.hasAnimations&&(e.hasAnimations=T.test(n)),e.hasAnimations)if(null==e.keyframeNamesToTransform)for(var o in e.keyframeNamesToTransform=[],t)n!==(r=(0,t[o])(n))&&(n=r,e.keyframeNamesToTransform.push(o));else{for(var i=0;i<e.keyframeNamesToTransform.length;++i)n=(0,t[e.keyframeNamesToTransform[i]])(n);r=n}e.cssText=r}},{key:"propertyDataFromStyles",value:function(e,t){var n=this,r={},o=[];return L(e,(function(e){e.propertyInfo||n.decorateRule(e);var i=e.transformedSelector||e.parsedSelector;t&&e.propertyInfo.properties&&i&&me.call(t,i)&&(n.collectProperties(e,r),function(e,t){var n=parseInt(e/32,10),r=1<<e%32;t[n]=(t[n]||0)|r}(e.index,o))}),null,!0),{properties:r,key:o}}},{key:"whenHostOrRootRule",value:function(e,t,n,r){if(t.propertyInfo||this.decorateRule(t),t.propertyInfo.properties){var o=q(e),i=o.is,s=o.typeExtension,a=i?fe._calcHostScope(i,s):"html",l=t.parsedSelector,u=function(e,t){return Boolean(t.match(ve))||"html"===e&&t.indexOf("html")>-1}(a,l),c=0===l.indexOf(":host")&&!u;if("shady"===n&&(c=!(u=l===a+" > *."+a||-1!==l.indexOf("html"))&&0===l.indexOf(a)),u||c){var d=a;c&&(t.transformedSelector||(t.transformedSelector=fe._transformRuleCss(t,fe._transformComplexSelector,fe._calcElementScope(i),a)),d=t.transformedSelector||a),u&&"html"===a&&(d=t.transformedSelector||t.parsedSelector),r({selector:d,isHost:c,isRoot:u})}}}},{key:"hostAndRootPropertiesForScope",value:function(e,t,n){var r=this,o={},i={};return L(t,(function(t){r.whenHostOrRootRule(e,t,n,(function(n){var s=e._element||e;me.call(s,n.selector)&&(n.isHost?r.collectProperties(t,o):r.collectProperties(t,i))}))}),null,!0),{rootProps:i,hostProps:o}}},{key:"transformStyles",value:function(e,t,n){var r=this,o=q(e),i=o.is,s=o.typeExtension,a=fe._calcHostScope(i,s),l=e.extends?"\\"+a.slice(0,-1)+"\\]":a,u=new RegExp("(?:^|[^.#[:])"+l+"($|[.:[\\s>+~])"),c=pe.get(e),d=c.styleRules,h=c.cssBuild,f=this._elementKeyframeTransforms(e,d,n);return fe.elementStyles(e,d,(function(e){r.applyProperties(e,t),g||A(e)||!e.cssText||(r.applyKeyframeTransforms(e,f),r._scopeSelector(e,u,a,n))}),h)}},{key:"_elementKeyframeTransforms",value:function(e,t,n){var r=t._keyframes,o={};if(!g&&r)for(var i=0,s=r[i];i<r.length;s=r[++i])this._scopeKeyframes(s,n),o[s.keyframesName]=this._keyframesRuleTransformer(s);return o}},{key:"_keyframesRuleTransformer",value:function(e){return function(t){return t.replace(e.keyframesNameRx,e.transformedKeyframesName)}}},{key:"_scopeKeyframes",value:function(e,t){e.keyframesNameRx=new RegExp("\\b".concat(e.keyframesName,"(?!\\B|-)"),"g"),e.transformedKeyframesName=e.keyframesName+"-"+t,e.transformedSelector=e.transformedSelector||e.selector,e.selector=e.transformedSelector.replace(e.keyframesName,e.transformedKeyframesName)}},{key:"_scopeSelector",value:function(e,t,n,r){e.transformedSelector=e.transformedSelector||e.selector;for(var o,i="."+r,s=V(e.transformedSelector),a=0,l=s.length;a<l&&(o=s[a]);a++)s[a]=o.match(t)?o.replace(n,i):i+" "+o;e.selector=s.join(",")}},{key:"applyElementScopeSelector",value:function(e,t,n){var r=e.getAttribute("class")||"",o=r;n&&(o=r.replace(new RegExp("\\s*x-scope\\s*"+n+"\\s*","g")," ")),r!==(o+=(o?" ":"")+"x-scope "+t)&&B(e,o)}},{key:"applyElementStyle",value:function(e,t,n,r){var o=r?r.textContent||"":this.transformStyles(e,t,n),i=pe.get(e),s=i.customStyle;return s&&!g&&s!==r&&(s._useCount--,s._useCount<=0&&s.parentNode&&s.parentNode.removeChild(s)),g?i.customStyle?(i.customStyle.textContent=o,r=i.customStyle):o&&(r=I(o,n,e.shadowRoot,i.placeholder)):r?r.parentNode||(ge&&o.indexOf("@media")>-1&&(r.textContent=o),F(r,null,i.placeholder)):o&&(r=I(o,n,null,i.placeholder)),r&&(r._useCount=r._useCount||0,i.customStyle!=r&&r._useCount++,i.customStyle=r),r}},{key:"applyCustomStyle",value:function(e,t){var n=R(e),r=this;e.textContent=D(n,(function(e){var n=e.cssText=e.parsedCssText;e.propertyInfo&&e.propertyInfo.cssText&&(n=u(n),e.cssText=r.valueForProperties(n,t))}))}}])&&ye(t.prototype,n),r&&ye(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()),be={};
71
71
  /**
72
72
  @license
73
73
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -76,7 +76,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
76
76
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
77
77
  Code distributed by Google as part of the polymer project is also
78
78
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
79
- */function Se(e){return ge[e]||null}function Ee(e){var t,n,r,o;ge[e]||(ge[e]=(t=e,n=document.createComment(" Shady DOM styles for "+t+" "),r=L?L.nextSibling:null,(o=document.head).insertBefore(n,r||o.firstChild),L=n,n))}var Ne=window.customElements;if(Ne&&!m&&!g){var be=Ne.define;Ne.define=function(e,t,n){Ee(e),be.call(Ne,e,t,n)}}
79
+ */function Ee(e){return be[e]||null}function Ne(e){var t,n,r,o;be[e]||(be[e]=(t=e,n=document.createComment(" Shady DOM styles for "+t+" "),r=j?j.nextSibling:null,(o=document.head).insertBefore(n,r||o.firstChild),j=n,n))}var Ce=window.customElements;if(Ce&&!g&&!b){var we=Ce.define;Ce.define=function(e,t,n){Ne(e),we.call(Ce,e,t,n)}}
80
80
  /**
81
81
  @license
82
82
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -85,7 +85,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
85
85
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
86
86
  Code distributed by Google as part of the polymer project is also
87
87
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
88
- */function Ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function we(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Te=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;Ce(this,e),this.cache={},this.typeMax=t}var t,n,r;return t=e,(n=[{key:"_validate",value:function(e,t,n){for(var r=0;r<n.length;r++){var o=n[r];if(e.properties[o]!==t[o])return!1}return!0}},{key:"store",value:function(e,t,n,r){var o=this.cache[e]||[];o.push({properties:t,styleElement:n,scopeSelector:r}),o.length>this.typeMax&&o.shift(),this.cache[e]=o}},{key:"fetch",value:function(e,t,n){var r=this.cache[e];if(r)for(var o=r.length-1;o>=0;o--){var i=r[o];if(this._validate(i,t,n))return i}}}])&&we(t.prototype,n),r&&we(t,r),e}(),Oe=function(){};
88
+ */function Te(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Pe=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;Te(this,e),this.cache={},this.typeMax=t}var t,n,r;return t=e,(n=[{key:"_validate",value:function(e,t,n){for(var r=0;r<n.length;r++){var o=n[r];if(e.properties[o]!==t[o])return!1}return!0}},{key:"store",value:function(e,t,n,r){var o=this.cache[e]||[];o.push({properties:t,styleElement:n,scopeSelector:r}),o.length>this.typeMax&&o.shift(),this.cache[e]=o}},{key:"fetch",value:function(e,t,n){var r=this.cache[e];if(r)for(var o=r.length-1;o>=0;o--){var i=r[o];if(this._validate(i,t,n))return i}}}])&&Oe(t.prototype,n),r&&Oe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),xe=function(){};
89
89
  /**
90
90
  @license
91
91
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -94,7 +94,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
94
94
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
95
95
  Code distributed by Google as part of the polymer project is also
96
96
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
97
- */var xe=new RegExp("".concat(de.SCOPE_NAME,"\\s*([^\\s]*)"));function Pe(e){var t=function(e){return e.classList&&e.classList.value?e.classList.value:e.getAttribute("class")||""}(e).match(xe);return t?t[1]:""}function ke(e){var t=H(e).getRootNode();if(t===e||t===e.ownerDocument)return"";var n=t.host;return n?B(n).is:""}function Me(e){for(var t=window.ShadyDOM.nativeMethods.querySelectorAll.call(e,":not(.".concat(de.SCOPE_NAME,")")),n=0;n<t.length;n++){var r=t[n],o=ke(r);o&&de.element(r,o)}}function De(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.target!==document.documentElement&&n.target!==document.head)for(var r=0;r<n.addedNodes.length;r++){var o=n.addedNodes[r];if(o.nodeType===Node.ELEMENT_NODE){var i=(o=o).getRootNode(),s=Pe(o);if(s&&i===o.ownerDocument&&("style"!==(l=o).localName&&"template"!==l.localName||!V(l)))de.domRemoveScope(o,s);else if(i instanceof ShadowRoot){var a=ke(o);a!==s&&de.domReplaceScope(o,s,a),Me(o)}}}}var l}if(!(m||window.ShadyDOM&&window.ShadyDOM.handlesDynamicScoping)){var Re=new MutationObserver(De),Ae=function(e){Re.observe(e,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)Ae(document);else{var Le=function(){Ae(document.body)};window.HTMLImports?window.HTMLImports.whenReady(Le):requestAnimationFrame((function(){if("loading"===document.readyState){document.addEventListener("readystatechange",(function e(){Le(),document.removeEventListener("readystatechange",e)}))}else Le()}))}Oe=function(){De(Re.takeRecords())}}
97
+ */var ke=new RegExp("".concat(fe.SCOPE_NAME,"\\s*([^\\s]*)"));function Me(e){var t=function(e){return e.classList&&e.classList.value?e.classList.value:e.getAttribute("class")||""}(e).match(ke);return t?t[1]:""}function De(e){var t=U(e).getRootNode();if(t===e||t===e.ownerDocument)return"";var n=t.host;return n?q(n).is:""}function Re(e){for(var t=window.ShadyDOM.nativeMethods.querySelectorAll.call(e,":not(.".concat(fe.SCOPE_NAME,")")),n=0;n<t.length;n++){var r=t[n],o=De(r);o&&fe.element(r,o)}}function Ae(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.target!==document.documentElement&&n.target!==document.head)for(var r=0;r<n.addedNodes.length;r++){var o=n.addedNodes[r];if(o.nodeType===Node.ELEMENT_NODE){var i=(o=o).getRootNode(),s=Me(o);if(s&&i===o.ownerDocument&&("style"!==(l=o).localName&&"template"!==l.localName||!W(l)))fe.domRemoveScope(o,s);else if(i instanceof ShadowRoot){var a=De(o);a!==s&&fe.domReplaceScope(o,s,a),Re(o)}}}}var l}if(!(g||window.ShadyDOM&&window.ShadyDOM.handlesDynamicScoping)){var Le=new MutationObserver(Ae),Ie=function(e){Le.observe(e,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)Ie(document);else{var je=function(){Ie(document.body)};window.HTMLImports?window.HTMLImports.whenReady(je):requestAnimationFrame((function(){if("loading"===document.readyState){document.addEventListener("readystatechange",(function e(){je(),document.removeEventListener("readystatechange",e)}))}else je()}))}xe=function(){Ae(Le.takeRecords())}}
98
98
  /**
99
99
  @license
100
100
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -103,7 +103,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
103
103
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
104
104
  Code distributed by Google as part of the polymer project is also
105
105
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
106
- */var Ie={},Fe="_applyShimCurrentVersion",je="_applyShimNextVersion",He=Promise.resolve();function Be(e){var t=Ie[e];t&&function(e){e[Fe]=e[Fe]||0,e._applyShimValidatingVersion=e._applyShimValidatingVersion||0,e[je]=(e[je]||0)+1}(t)}function Ue(e){return e[Fe]===e[je]}function qe(e){return!Ue(e)&&e._applyShimValidatingVersion===e[je]}function Ve(e){e._applyShimValidatingVersion=e[je],e._validating||(e._validating=!0,He.then((function(){e[Fe]=e[je],e._validating=!1})))}
106
+ */var Fe={},He="_applyShimCurrentVersion",Be="_applyShimNextVersion",Ue=Promise.resolve();function qe(e){var t=Fe[e];t&&function(e){e[He]=e[He]||0,e._applyShimValidatingVersion=e._applyShimValidatingVersion||0,e[Be]=(e[Be]||0)+1}(t)}function Ve(e){return e[He]===e[Be]}function Ge(e){return!Ve(e)&&e._applyShimValidatingVersion===e[Be]}function We(e){e._applyShimValidatingVersion=e[Be],e._validating||(e._validating=!0,Ue.then((function(){e[He]=e[Be],e._validating=!1})))}
107
107
  /**
108
108
  @license
109
109
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -113,7 +113,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
113
113
  Code distributed by Google as part of the polymer project is also
114
114
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
115
115
  */
116
- var Ge,We=null,Ke=window.HTMLImports&&window.HTMLImports.whenReady||null;function Xe(e){requestAnimationFrame((function(){Ke?Ke(e):(We||(We=new Promise((function(e){Ge=e})),"complete"===document.readyState?Ge():document.addEventListener("readystatechange",(function(){"complete"===document.readyState&&Ge()}))),We.then((function(){e&&e()})))}))}
116
+ var Ke,Xe=null,Ye=window.HTMLImports&&window.HTMLImports.whenReady||null;function $e(e){requestAnimationFrame((function(){Ye?Ye(e):(Xe||(Xe=new Promise((function(e){Ke=e})),"complete"===document.readyState?Ke():document.addEventListener("readystatechange",(function(){"complete"===document.readyState&&Ke()}))),Xe.then((function(){e&&e()})))}))}
117
117
  /**
118
118
  @license
119
119
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -122,7 +122,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
122
122
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
123
123
  Code distributed by Google as part of the polymer project is also
124
124
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
125
- */function Ye(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var $e="__shadyCSSCachedStyle",ze=null,Je=null,Ze=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.customStyles=[],this.enqueued=!1,Xe((function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()}))}var t,n,r;return t=e,(n=[{key:"enqueueDocumentValidation",value:function(){!this.enqueued&&Je&&(this.enqueued=!0,Xe(Je))}},{key:"addCustomStyle",value:function(e){e.__seenByShadyCSS||(e.__seenByShadyCSS=!0,this.customStyles.push(e),this.enqueueDocumentValidation())}},{key:"getStyleForCustomStyle",value:function(e){return e[$e]?e[$e]:e.getStyle?e.getStyle():e}},{key:"processStyles",value:function(){for(var e=this.customStyles,t=0;t<e.length;t++){var n=e[t];if(!n[$e]){var r=this.getStyleForCustomStyle(n);if(r){var o=r.__appliedElement||r;ze&&ze(o),n[$e]=o}}}return e}}])&&Ye(t.prototype,n),r&&Ye(t,r),e}();function Qe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Ze.prototype.addCustomStyle=Ze.prototype.addCustomStyle,Ze.prototype.getStyleForCustomStyle=Ze.prototype.getStyleForCustomStyle,Ze.prototype.processStyles=Ze.prototype.processStyles,Object.defineProperties(Ze.prototype,{transformCallback:{get:function(){return ze},set:function(e){ze=e}},validateCallback:{get:function(){return Je},set:function(e){var t=!1;Je||(t=!0),Je=e,t&&this.enqueueDocumentValidation()}}});var et={},tt=new Te,nt=function(){function e(){!
125
+ */function ze(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Je="__shadyCSSCachedStyle",Ze=null,Qe=null,et=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.customStyles=[],this.enqueued=!1,$e((function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()}))}var t,n,r;return t=e,(n=[{key:"enqueueDocumentValidation",value:function(){!this.enqueued&&Qe&&(this.enqueued=!0,$e(Qe))}},{key:"addCustomStyle",value:function(e){e.__seenByShadyCSS||(e.__seenByShadyCSS=!0,this.customStyles.push(e),this.enqueueDocumentValidation())}},{key:"getStyleForCustomStyle",value:function(e){return e[Je]?e[Je]:e.getStyle?e.getStyle():e}},{key:"processStyles",value:function(){for(var e=this.customStyles,t=0;t<e.length;t++){var n=e[t];if(!n[Je]){var r=this.getStyleForCustomStyle(n);if(r){var o=r.__appliedElement||r;Ze&&Ze(o),n[Je]=o}}}return e}}])&&ze(t.prototype,n),r&&ze(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function tt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}et.prototype.addCustomStyle=et.prototype.addCustomStyle,et.prototype.getStyleForCustomStyle=et.prototype.getStyleForCustomStyle,et.prototype.processStyles=et.prototype.processStyles,Object.defineProperties(et.prototype,{transformCallback:{get:function(){return Ze},set:function(e){Ze=e}},validateCallback:{get:function(){return Qe},set:function(e){var t=!1;Qe||(t=!0),Qe=e,t&&this.enqueueDocumentValidation()}}});var nt={},rt=new Pe,ot=function(){function e(){!
126
126
  /**
127
127
  @license
128
128
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -132,7 +132,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
132
132
  Code distributed by Google as part of the polymer project is also
133
133
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
134
134
  */
135
- function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._scopeCounter={},this._documentOwner=document.documentElement;var t=new r;t.rules=[],this._documentOwnerStyleInfo=fe.set(this._documentOwner,new fe(t)),this._elementsHaveApplied=!1,this._applyShim=null,this._customStyleInterface=null}var t,n,i;return t=e,(n=[{key:"flush",value:function(){Oe()}},{key:"_generateScopeSelector",value:function(e){var t=this._scopeCounter[e]=(this._scopeCounter[e]||0)+1;return"".concat(e,"-").concat(t)}},{key:"getStyleAst",value:function(e){return M(e)}},{key:"styleAstToString",value:function(e){return k(e)}},{key:"_gatherStyles",value:function(e){return function(e){for(var t=[],n=e.querySelectorAll("style"),r=0;r<n.length;r++){var o=n[r];P(o)?m||(x(o),o.parentNode.removeChild(o)):(t.push(o.textContent),o.parentNode.removeChild(o))}return t.join("").trim()}(e.content)}},{key:"prepareTemplate",value:function(e,t,n){this.prepareTemplateDom(e,t),this.prepareTemplateStyles(e,t,n)}},{key:"prepareTemplateStyles",value:function(e,t,n){if(!e._prepared&&!g){m||Ee(t),e._prepared=!0,e.name=t,e.extends=n,Ie[t]=e;var r=q(e),i=G(r),s={is:t,extends:n},a=this._gatherStyles(e)+(et[t]||"");if(this._ensure(),!i){var l=!r&&function(e){var t=N.test(e)||E.test(e);return N.lastIndex=0,E.lastIndex=0,t}(a),u=o(a);l&&S&&this._applyShim&&this._applyShim.transformRules(u,t),e._styleAst=u}var c=[];if(S||(c=ve.decorateStyles(e._styleAst)),!c.length||S){var d=m?e.content:null,h=Se(t),f=this._generateStaticStyle(s,e._styleAst,d,h,r,i?a:"");e._style=f}e._ownPropertyNames=c}}},{key:"prepareAdoptedCssText",value:function(e,t){et[t]=e.join(" ")}},{key:"prepareTemplateDom",value:function(e,t){if(!g){var n=q(e);m||"shady"===n||e._domPrepared||(e._domPrepared=!0,de.domAddScope(e.content,t))}}},{key:"_generateStaticStyle",value:function(e,t,n,r,o,i){return(i=de.elementStyles(e,t,null,o,i)).length?A(i,e.is,n,r):null}},{key:"_prepareHost",value:function(e){var t=B(e),n=t.is,r=t.typeExtension,o=Se(n),i=Ie[n];if(i){var s=i._styleAst,a=i._ownPropertyNames,l=q(i),u=new fe(s,o,a,n,r,l);return fe.set(e,u),u}}},{key:"_ensureApplyShim",value:function(){return!(this._applyShim||!window.ShadyCSS||!window.ShadyCSS.ApplyShim||(this._applyShim=window.ShadyCSS.ApplyShim,this._applyShim.invalidCallback=Be,0))}},{key:"_ensureCustomStyleInterface",value:function(){var e=this;this._customStyleInterface||window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(this._customStyleInterface=window.ShadyCSS.CustomStyleInterface,this._customStyleInterface.transformCallback=function(t){e.transformCustomStyleForDocument(t)},this._customStyleInterface.validateCallback=function(){requestAnimationFrame((function(){(e._customStyleInterface.enqueued||e._elementsHaveApplied)&&e.flushCustomStyles()}))})}},{key:"_ensure",value:function(){var e=this._ensureApplyShim();return this._ensureCustomStyleInterface(),e}},{key:"flushCustomStyles",value:function(){if(!g){var e=this._ensure();if(this._customStyleInterface){var t=this._customStyleInterface.processStyles();(e||this._customStyleInterface.enqueued)&&(G(this._documentOwnerStyleInfo.cssBuild)||(S?this._documentOwnerStyleInfo.cssBuild||this._revalidateCustomStyleApplyShim(t):(this._reorderCustomStylesRules(t),this._updateProperties(this._documentOwner,this._documentOwnerStyleInfo),this._applyCustomStyles(t),this._elementsHaveApplied&&this.styleDocument()),this._customStyleInterface.enqueued=!1))}}}},{key:"_reorderCustomStylesRules",value:function(e){var t=this,n=e.map((function(e){return t._customStyleInterface.getStyleForCustomStyle(e)})).filter((function(e){return!!e}));n.sort((function(e,t){var n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_FOLLOWING?1:n&Node.DOCUMENT_POSITION_PRECEDING?-1:0})),this._documentOwnerStyleInfo.styleRules.rules=n.map((function(e){return M(e)}))}},{key:"styleElement",value:function(e,t){if(g){if(t){fe.get(e)||fe.set(e,new fe(null));var n=fe.get(e);this._mixOverrideStyleProps(n,t),this.styleElementNativeVariables(e,n)}}else{var r=fe.get(e)||this._prepareHost(e);r&&(this._isRootOwner(e)||(this._elementsHaveApplied=!0),t&&this._mixOverrideStyleProps(r,t),S?this.styleElementNativeVariables(e,r):this.styleElementShimVariables(e,r))}}},{key:"_mixOverrideStyleProps",value:function(e,t){e.overrideStyleProperties=e.overrideStyleProperties||{},Object.assign(e.overrideStyleProperties,t)}},{key:"styleElementShimVariables",value:function(e,t){this.flush(),this._updateProperties(e,t),t.ownStylePropertyNames&&t.ownStylePropertyNames.length&&this._applyStyleProperties(e,t)}},{key:"styleElementNativeVariables",value:function(e,t){var n=B(e).is;t.overrideStyleProperties&&
135
+ function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._scopeCounter={},this._documentOwner=document.documentElement;var t=new i;t.rules=[],this._documentOwnerStyleInfo=pe.set(this._documentOwner,new pe(t)),this._elementsHaveApplied=!1,this._applyShim=null,this._customStyleInterface=null}var t,n,r;return t=e,(n=[{key:"flush",value:function(){xe()}},{key:"_generateScopeSelector",value:function(e){var t=this._scopeCounter[e]=(this._scopeCounter[e]||0)+1;return"".concat(e,"-").concat(t)}},{key:"getStyleAst",value:function(e){return R(e)}},{key:"styleAstToString",value:function(e){return D(e)}},{key:"_gatherStyles",value:function(e){return function(e){for(var t=[],n=e.querySelectorAll("style"),r=0;r<n.length;r++){var o=n[r];M(o)?g||(k(o),o.parentNode.removeChild(o)):(t.push(o.textContent),o.parentNode.removeChild(o))}return t.join("").trim()}(e.content)}},{key:"prepareTemplate",value:function(e,t,n){this.prepareTemplateDom(e,t),this.prepareTemplateStyles(e,t,n)}},{key:"prepareTemplateStyles",value:function(e,t,n){if(!e._prepared&&!b){g||Ne(t),e._prepared=!0,e.name=t,e.extends=n,Fe[t]=e;var r=G(e),o=K(r),i={is:t,extends:n},a=this._gatherStyles(e)+(nt[t]||"");if(this._ensure(),!o){var l=!r&&function(e){var t=C.test(e)||N.test(e);return C.lastIndex=0,N.lastIndex=0,t}(a),u=s(a);l&&E&&this._applyShim&&this._applyShim.transformRules(u,t),e._styleAst=u}var c=[];if(E||(c=Se.decorateStyles(e._styleAst)),!c.length||E){var d=g?e.content:null,h=Ee(t),f=this._generateStaticStyle(i,e._styleAst,d,h,r,o?a:"");e._style=f}e._ownPropertyNames=c}}},{key:"prepareAdoptedCssText",value:function(e,t){nt[t]=e.join(" ")}},{key:"prepareTemplateDom",value:function(e,t){if(!b){var n=G(e);g||"shady"===n||e._domPrepared||(e._domPrepared=!0,fe.domAddScope(e.content,t))}}},{key:"_generateStaticStyle",value:function(e,t,n,r,o,i){return(i=fe.elementStyles(e,t,null,o,i)).length?I(i,e.is,n,r):null}},{key:"_prepareHost",value:function(e){var t=q(e),n=t.is,r=t.typeExtension,o=Ee(n),i=Fe[n];if(i){var s=i._styleAst,a=i._ownPropertyNames,l=G(i),u=new pe(s,o,a,n,r,l);return pe.set(e,u),u}}},{key:"_ensureApplyShim",value:function(){return!(this._applyShim||!window.ShadyCSS||!window.ShadyCSS.ApplyShim||(this._applyShim=window.ShadyCSS.ApplyShim,this._applyShim.invalidCallback=qe,0))}},{key:"_ensureCustomStyleInterface",value:function(){var e=this;this._customStyleInterface||window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(this._customStyleInterface=window.ShadyCSS.CustomStyleInterface,this._customStyleInterface.transformCallback=function(t){e.transformCustomStyleForDocument(t)},this._customStyleInterface.validateCallback=function(){requestAnimationFrame((function(){(e._customStyleInterface.enqueued||e._elementsHaveApplied)&&e.flushCustomStyles()}))})}},{key:"_ensure",value:function(){var e=this._ensureApplyShim();return this._ensureCustomStyleInterface(),e}},{key:"flushCustomStyles",value:function(){if(!b){var e=this._ensure();if(this._customStyleInterface){var t=this._customStyleInterface.processStyles();(e||this._customStyleInterface.enqueued)&&(K(this._documentOwnerStyleInfo.cssBuild)||(E?this._documentOwnerStyleInfo.cssBuild||this._revalidateCustomStyleApplyShim(t):(this._reorderCustomStylesRules(t),this._updateProperties(this._documentOwner,this._documentOwnerStyleInfo),this._applyCustomStyles(t),this._elementsHaveApplied&&this.styleDocument()),this._customStyleInterface.enqueued=!1))}}}},{key:"_reorderCustomStylesRules",value:function(e){var t=this,n=e.map((function(e){return t._customStyleInterface.getStyleForCustomStyle(e)})).filter((function(e){return!!e}));n.sort((function(e,t){var n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_FOLLOWING?1:n&Node.DOCUMENT_POSITION_PRECEDING?-1:0})),this._documentOwnerStyleInfo.styleRules.rules=n.map((function(e){return R(e)}))}},{key:"styleElement",value:function(e,t){if(b){if(t){pe.get(e)||pe.set(e,new pe(null));var n=pe.get(e);this._mixOverrideStyleProps(n,t),this.styleElementNativeVariables(e,n)}}else{var r=pe.get(e)||this._prepareHost(e);r&&(this._isRootOwner(e)||(this._elementsHaveApplied=!0),t&&this._mixOverrideStyleProps(r,t),E?this.styleElementNativeVariables(e,r):this.styleElementShimVariables(e,r))}}},{key:"_mixOverrideStyleProps",value:function(e,t){e.overrideStyleProperties=e.overrideStyleProperties||{},Object.assign(e.overrideStyleProperties,t)}},{key:"styleElementShimVariables",value:function(e,t){this.flush(),this._updateProperties(e,t),t.ownStylePropertyNames&&t.ownStylePropertyNames.length&&this._applyStyleProperties(e,t)}},{key:"styleElementNativeVariables",value:function(e,t){var n=q(e).is;t.overrideStyleProperties&&
136
136
  /**
137
137
  @license
138
138
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -142,7 +142,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
142
142
  Code distributed by Google as part of the polymer project is also
143
143
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
144
144
  */
145
- function(e,t){for(var n in t)null===n?e.style.removeProperty(n):e.style.setProperty(n,t[n])}(e,t.overrideStyleProperties);var r=Ie[n];if((r||this._isRootOwner(e))&&(!r||!V(r))&&r&&r._style&&!Ue(r)){if(qe(r)||(this._ensure(),this._applyShim&&this._applyShim.transformRules(r._styleAst,n),r._style.textContent=de.elementStyles(e,t.styleRules),Ve(r)),m){var o=e.shadowRoot;if(o){var i=o.querySelector("style");i&&(i.textContent=de.elementStyles(e,t.styleRules))}}t.styleRules=r._styleAst}}},{key:"_styleOwnerForNode",value:function(e){var t=H(e).getRootNode().host;return t?fe.get(t)||this._prepareHost(t)?t:this._styleOwnerForNode(t):this._documentOwner}},{key:"_isRootOwner",value:function(e){return e===this._documentOwner}},{key:"_applyStyleProperties",value:function(e,t){var n=B(e).is,r=tt.fetch(n,t.styleProperties,t.ownStylePropertyNames),o=r&&r.scopeSelector,i=r?r.styleElement:null,s=t.scopeSelector;t.scopeSelector=o||this._generateScopeSelector(n);var a=ve.applyElementStyle(e,t.styleProperties,t.scopeSelector,i);return m||ve.applyElementScopeSelector(e,t.scopeSelector,s),r||tt.store(n,t.styleProperties,a,t.scopeSelector),a}},{key:"_updateProperties",value:function(e,t){var n=this._styleOwnerForNode(e),r=fe.get(n),o=r.styleProperties;n===this._documentOwner||o||(this._updateProperties(n,r),o=r.styleProperties);var i=Object.create(o||null),s=ve.hostAndRootPropertiesForScope(e,t.styleRules,t.cssBuild),a=ve.propertyDataFromStyles(r.styleRules,e).properties;Object.assign(i,s.hostProps,a,s.rootProps),this._mixinOverrideStyles(i,t.overrideStyleProperties),ve.reify(i),t.styleProperties=i}},{key:"_mixinOverrideStyles",value:function(e,t){for(var n in t){var r=t[n];(r||0===r)&&(e[n]=r)}}},{key:"styleDocument",value:function(e){this.styleSubtree(this._documentOwner,e)}},{key:"styleSubtree",value:function(e,t){var n=H(e),r=n.shadowRoot,o=this._isRootOwner(e);(r||o)&&this.styleElement(e,t);var i=o?n:r;if(i)for(var s=Array.from(i.querySelectorAll("*")).filter((function(e){return H(e).shadowRoot})),a=0;a<s.length;a++)this.styleSubtree(s[a])}},{key:"_revalidateCustomStyleApplyShim",value:function(e){for(var t=0;t<e.length;t++){var n=e[t],r=this._customStyleInterface.getStyleForCustomStyle(n);r&&this._revalidateApplyShim(r)}}},{key:"_applyCustomStyles",value:function(e){for(var t=0;t<e.length;t++){var n=e[t],r=this._customStyleInterface.getStyleForCustomStyle(n);r&&ve.applyCustomStyle(r,this._documentOwnerStyleInfo.styleProperties)}}},{key:"transformCustomStyleForDocument",value:function(e){var t=this,n=q(e);if(n!==this._documentOwnerStyleInfo.cssBuild&&(this._documentOwnerStyleInfo.cssBuild=n),!G(n)){var r=M(e);R(r,(function(e){m?de.normalizeRootSelector(e):de.documentRule(e),S&&""===n&&(t._ensure(),t._applyShim&&t._applyShim.transformRule(e))})),S?e.textContent=k(r):this._documentOwnerStyleInfo.styleRules.rules.push(r)}}},{key:"_revalidateApplyShim",value:function(e){if(S&&this._applyShim){var t=M(e);this._ensure(),this._applyShim.transformRules(t),e.textContent=k(t)}}},{key:"getComputedStyleValue",value:function(e,t){var n;return S||(n=(fe.get(e)||fe.get(this._styleOwnerForNode(e))).styleProperties[t]),(n=n||window.getComputedStyle(e).getPropertyValue(t))?n.trim():""}},{key:"setElementClass",value:function(e,t){var n,r=H(e).getRootNode();n=t?("string"==typeof t?t:String(t)).split(/\s/):[];var o=r.host&&r.host.localName;if(!o){var i=e.getAttribute("class");if(i)for(var s=i.split(/\s/),a=0;a<s.length;a++)if(s[a]===de.SCOPE_NAME){o=s[a+1];break}}if(o&&n.push(de.SCOPE_NAME,o),!S){var l=fe.get(e);l&&l.scopeSelector&&n.push(ve.XSCOPE_NAME,l.scopeSelector)}j(e,n.join(" "))}},{key:"_styleInfoForNode",value:function(e){return fe.get(e)}},{key:"scopeNode",value:function(e,t){de.element(e,t)}},{key:"unscopeNode",value:function(e,t){de.element(e,t,!0)}},{key:"scopeForNode",value:function(e){return ke(e)}},{key:"currentScopeForNode",value:function(e){return Pe(e)}}])&&Qe(t.prototype,n),i&&Qe(t,i),e}();nt.prototype.flush=nt.prototype.flush,nt.prototype.prepareTemplate=nt.prototype.prepareTemplate,nt.prototype.styleElement=nt.prototype.styleElement,nt.prototype.styleDocument=nt.prototype.styleDocument,nt.prototype.styleSubtree=nt.prototype.styleSubtree,nt.prototype.getComputedStyleValue=nt.prototype.getComputedStyleValue,nt.prototype.setElementClass=nt.prototype.setElementClass,nt.prototype._styleInfoForNode=nt.prototype._styleInfoForNode,nt.prototype.transformCustomStyleForDocument=nt.prototype.transformCustomStyleForDocument,nt.prototype.getStyleAst=nt.prototype.getStyleAst,nt.prototype.styleAstToString=nt.prototype.styleAstToString,nt.prototype.flushCustomStyles=nt.prototype.flushCustomStyles,nt.prototype.scopeNode=nt.prototype.scopeNode,nt.prototype.unscopeNode=nt.prototype.unscopeNode,nt.prototype.scopeForNode=nt.prototype.scopeForNode,nt.prototype.currentScopeForNode=nt.prototype.currentScopeForNode,nt.prototype.prepareAdoptedCssText=nt.prototype.prepareAdoptedCssText,Object.defineProperties(nt.prototype,{nativeShadow:{get:function(){return m}},nativeCss:{get:function(){return S}}});
145
+ function(e,t){for(var n in t)null===n?e.style.removeProperty(n):e.style.setProperty(n,t[n])}(e,t.overrideStyleProperties);var r=Fe[n];if((r||this._isRootOwner(e))&&(!r||!W(r))&&r&&r._style&&!Ve(r)){if(Ge(r)||(this._ensure(),this._applyShim&&this._applyShim.transformRules(r._styleAst,n),r._style.textContent=fe.elementStyles(e,t.styleRules),We(r)),g){var o=e.shadowRoot;if(o){var i=o.querySelector("style");i&&(i.textContent=fe.elementStyles(e,t.styleRules))}}t.styleRules=r._styleAst}}},{key:"_styleOwnerForNode",value:function(e){var t=U(e).getRootNode().host;return t?pe.get(t)||this._prepareHost(t)?t:this._styleOwnerForNode(t):this._documentOwner}},{key:"_isRootOwner",value:function(e){return e===this._documentOwner}},{key:"_applyStyleProperties",value:function(e,t){var n=q(e).is,r=rt.fetch(n,t.styleProperties,t.ownStylePropertyNames),o=r&&r.scopeSelector,i=r?r.styleElement:null,s=t.scopeSelector;t.scopeSelector=o||this._generateScopeSelector(n);var a=Se.applyElementStyle(e,t.styleProperties,t.scopeSelector,i);return g||Se.applyElementScopeSelector(e,t.scopeSelector,s),r||rt.store(n,t.styleProperties,a,t.scopeSelector),a}},{key:"_updateProperties",value:function(e,t){var n=this._styleOwnerForNode(e),r=pe.get(n),o=r.styleProperties;n===this._documentOwner||o||(this._updateProperties(n,r),o=r.styleProperties);var i=Object.create(o||null),s=Se.hostAndRootPropertiesForScope(e,t.styleRules,t.cssBuild),a=Se.propertyDataFromStyles(r.styleRules,e).properties;Object.assign(i,s.hostProps,a,s.rootProps),this._mixinOverrideStyles(i,t.overrideStyleProperties),Se.reify(i),t.styleProperties=i}},{key:"_mixinOverrideStyles",value:function(e,t){for(var n in t){var r=t[n];(r||0===r)&&(e[n]=r)}}},{key:"styleDocument",value:function(e){this.styleSubtree(this._documentOwner,e)}},{key:"styleSubtree",value:function(e,t){var n=U(e),r=n.shadowRoot,o=this._isRootOwner(e);(r||o)&&this.styleElement(e,t);var i=o?n:r;if(i)for(var s=Array.from(i.querySelectorAll("*")).filter((function(e){return U(e).shadowRoot})),a=0;a<s.length;a++)this.styleSubtree(s[a])}},{key:"_revalidateCustomStyleApplyShim",value:function(e){for(var t=0;t<e.length;t++){var n=e[t],r=this._customStyleInterface.getStyleForCustomStyle(n);r&&this._revalidateApplyShim(r)}}},{key:"_applyCustomStyles",value:function(e){for(var t=0;t<e.length;t++){var n=e[t],r=this._customStyleInterface.getStyleForCustomStyle(n);r&&Se.applyCustomStyle(r,this._documentOwnerStyleInfo.styleProperties)}}},{key:"transformCustomStyleForDocument",value:function(e){var t=this,n=G(e);if(n!==this._documentOwnerStyleInfo.cssBuild&&(this._documentOwnerStyleInfo.cssBuild=n),!K(n)){var r=R(e);L(r,(function(e){g?fe.normalizeRootSelector(e):fe.documentRule(e),E&&""===n&&(t._ensure(),t._applyShim&&t._applyShim.transformRule(e))})),E?e.textContent=D(r):this._documentOwnerStyleInfo.styleRules.rules.push(r)}}},{key:"_revalidateApplyShim",value:function(e){if(E&&this._applyShim){var t=R(e);this._ensure(),this._applyShim.transformRules(t),e.textContent=D(t)}}},{key:"getComputedStyleValue",value:function(e,t){var n;return E||(n=(pe.get(e)||pe.get(this._styleOwnerForNode(e))).styleProperties[t]),(n=n||window.getComputedStyle(e).getPropertyValue(t))?n.trim():""}},{key:"setElementClass",value:function(e,t){var n,r=U(e).getRootNode();n=t?("string"==typeof t?t:String(t)).split(/\s/):[];var o=r.host&&r.host.localName;if(!o){var i=e.getAttribute("class");if(i)for(var s=i.split(/\s/),a=0;a<s.length;a++)if(s[a]===fe.SCOPE_NAME){o=s[a+1];break}}if(o&&n.push(fe.SCOPE_NAME,o),!E){var l=pe.get(e);l&&l.scopeSelector&&n.push(Se.XSCOPE_NAME,l.scopeSelector)}B(e,n.join(" "))}},{key:"_styleInfoForNode",value:function(e){return pe.get(e)}},{key:"scopeNode",value:function(e,t){fe.element(e,t)}},{key:"unscopeNode",value:function(e,t){fe.element(e,t,!0)}},{key:"scopeForNode",value:function(e){return De(e)}},{key:"currentScopeForNode",value:function(e){return Me(e)}}])&&tt(t.prototype,n),r&&tt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();ot.prototype.flush=ot.prototype.flush,ot.prototype.prepareTemplate=ot.prototype.prepareTemplate,ot.prototype.styleElement=ot.prototype.styleElement,ot.prototype.styleDocument=ot.prototype.styleDocument,ot.prototype.styleSubtree=ot.prototype.styleSubtree,ot.prototype.getComputedStyleValue=ot.prototype.getComputedStyleValue,ot.prototype.setElementClass=ot.prototype.setElementClass,ot.prototype._styleInfoForNode=ot.prototype._styleInfoForNode,ot.prototype.transformCustomStyleForDocument=ot.prototype.transformCustomStyleForDocument,ot.prototype.getStyleAst=ot.prototype.getStyleAst,ot.prototype.styleAstToString=ot.prototype.styleAstToString,ot.prototype.flushCustomStyles=ot.prototype.flushCustomStyles,ot.prototype.scopeNode=ot.prototype.scopeNode,ot.prototype.unscopeNode=ot.prototype.unscopeNode,ot.prototype.scopeForNode=ot.prototype.scopeForNode,ot.prototype.currentScopeForNode=ot.prototype.currentScopeForNode,ot.prototype.prepareAdoptedCssText=ot.prototype.prepareAdoptedCssText,Object.defineProperties(ot.prototype,{nativeShadow:{get:function(){return g}},nativeCss:{get:function(){return E}}});
146
146
  /**
147
147
  @license
148
148
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -152,4 +152,4 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
152
152
  Code distributed by Google as part of the polymer project is also
153
153
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
154
154
  */
155
- var rt,ot,it=new nt;window.ShadyCSS&&(rt=window.ShadyCSS.ApplyShim,ot=window.ShadyCSS.CustomStyleInterface),window.ShadyCSS={ScopingShim:it,prepareTemplate:function(e,t,n){it.flushCustomStyles(),it.prepareTemplate(e,t,n)},prepareTemplateDom:function(e,t){it.prepareTemplateDom(e,t)},prepareTemplateStyles:function(e,t,n){it.flushCustomStyles(),it.prepareTemplateStyles(e,t,n)},styleSubtree:function(e,t){it.flushCustomStyles(),it.styleSubtree(e,t)},styleElement:function(e){it.flushCustomStyles(),it.styleElement(e)},styleDocument:function(e){it.flushCustomStyles(),it.styleDocument(e)},flushCustomStyles:function(){it.flushCustomStyles()},getComputedStyleValue:function(e,t){return it.getComputedStyleValue(e,t)},nativeCss:S,nativeShadow:m,cssBuild:u,disableRuntime:g},rt&&(window.ShadyCSS.ApplyShim=rt),ot&&(window.ShadyCSS.CustomStyleInterface=ot)}}]);
155
+ var it,st,at=new ot;window.ShadyCSS&&(it=window.ShadyCSS.ApplyShim,st=window.ShadyCSS.CustomStyleInterface),window.ShadyCSS={ScopingShim:at,prepareTemplate:function(e,t,n){at.flushCustomStyles(),at.prepareTemplate(e,t,n)},prepareTemplateDom:function(e,t){at.prepareTemplateDom(e,t)},prepareTemplateStyles:function(e,t,n){at.flushCustomStyles(),at.prepareTemplateStyles(e,t,n)},styleSubtree:function(e,t){at.flushCustomStyles(),at.styleSubtree(e,t)},styleElement:function(e){at.flushCustomStyles(),at.styleElement(e)},styleDocument:function(e){at.flushCustomStyles(),at.styleDocument(e)},flushCustomStyles:function(){at.flushCustomStyles()},getComputedStyleValue:function(e,t){return at.getComputedStyleValue(e,t)},nativeCss:E,nativeShadow:g,cssBuild:d,disableRuntime:b},it&&(window.ShadyCSS.ApplyShim=it),st&&(window.ShadyCSS.CustomStyleInterface=st)}}]);