UNPKG

@haxtheweb/haxcms-nodejs

Version:

HAXcms single and multisite nodejs server, api, and administration

10 lines 93.4 kB
/** @license @nocompile Copyright (c) 2018 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ (function(){var e;function aa(e){var n=0;return function(){return n<e.length?{done:!1,value:e[n++]}:{done:!0}}}function p(e){var n="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return n?n.call(e):{next:aa(e)}}function r(e){if(!(e instanceof Array)){e=p(e);for(var n,o=[];!(n=e.next()).done;)o.push(n.value);e=o}return e}var n=function ba(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var n=0;n<e.length;++n){var o=e[n];if(o&&o.Math==Math)return o}throw Error("Cannot find global object")}(this);function da(){}function t(e){return e.__shady||(e.__shady=new da),e.__shady}function u(e){return e&&e.__shady}da.prototype.toJSON=function(){return{}};var o=window.ShadyDOM||{};o.Ka=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var i,s=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");o.j=!!(s&&s.configurable&&s.get),o.ka=o.force||!o.Ka,o.s=o.noPatch||!1,o.R=o.preferPerformance,o.ma="on-demand"===o.s;var l=o.querySelectorImplementation;function ia(){return Document.prototype.msElementsFromPoint?"msElementsFromPoint":"elementsFromPoint"}function x(e){return(e=u(e))&&void 0!==e.firstChild}function y(e){return e instanceof ShadowRoot}function ja(e){return(e=(e=u(e))&&e.root)&&ka(e)}i=-1<["native","selectorEngine"].indexOf(l)?l:void 0,o.$a=i,o.za=navigator.userAgent.match("Trident");var h=Element.prototype,_=h.matches||h.matchesSelector||h.mozMatchesSelector||h.msMatchesSelector||h.oMatchesSelector||h.webkitMatchesSelector,m=document.createTextNode(""),v=0,w=[];function qa(e){w.push(e),m.textContent=v++}new MutationObserver((function(){for(;w.length;)try{w.shift()()}catch(e){throw m.textContent=v++,e}})).observe(m,{characterData:!0});var C=document.contains?function(e,n){return e.__shady_native_contains(n)}:function(e,n){return e===n||e.documentElement&&e.documentElement.__shady_native_contains(n)};function sa(e,n){for(;n;){if(n==e)return!0;n=n.__shady_parentNode}return!1}function ta(e){for(var n=e.length-1;0<=n;n--){var o=e[n],i=o.getAttribute("id")||o.getAttribute("name");i&&"length"!==i&&isNaN(i)&&(e[i]=o)}return e.item=function(n){return e[n]},e.namedItem=function(n){if("length"!==n&&isNaN(n)&&e[n])return e[n];for(var o=p(e),i=o.next();!i.done;i=o.next())if(((i=i.value).getAttribute("id")||i.getAttribute("name"))==n)return i;return null},e}function ua(e){var n=[];for(e=e.__shady_native_firstChild;e;e=e.__shady_native_nextSibling)n.push(e);return n}function va(e){var n=[];for(e=e.__shady_firstChild;e;e=e.__shady_nextSibling)n.push(e);return n}function wa(e,n,o){if(o.configurable=!0,o.value)e[n]=o.value;else try{Object.defineProperty(e,n,o)}catch(e){}}function z(e,n,o,i){for(var s in o=void 0===o?"":o,n)i&&0<=i.indexOf(s)||wa(e,o+s,n[s])}function xa(e,n){for(var o in n)o in e&&wa(e,o,n[o])}function A(e){var n={};return Object.getOwnPropertyNames(e).forEach((function(o){n[o]=Object.getOwnPropertyDescriptor(e,o)})),n}function ya(e,n){for(var o,i=Object.getOwnPropertyNames(n),s=0;s<i.length;s++)e[o=i[s]]=n[o]}function za(e){return e instanceof Node?e:document.createTextNode(""+e)}function Aa(e){for(var n=[],o=0;o<arguments.length;++o)n[o]=arguments[o];if(1===n.length)return za(n[0]);o=document.createDocumentFragment();for(var i=(n=p(n)).next();!i.done;i=n.next())o.appendChild(za(i.value));return o}function Ba(e){var n;for(n=void 0===n?1:n;0<n;n--)e=e.reduce((function(e,n){return Array.isArray(n)?e.push.apply(e,r(n)):e.push(n),e}),[]);return e}var S,T=[];function Fa(e){S||(S=!0,qa(Ga)),T.push(e)}function Ga(){S=!1;for(var e=!!T.length;T.length;)T.shift()();return e}function Ha(){this.g=!1,this.addedNodes=[],this.removedNodes=[],this.aa=new Set}Ga.list=T,Ha.prototype.flush=function(){if(this.g){this.g=!1;var e=this.takeRecords();e.length&&this.aa.forEach((function(n){n(e)}))}},Ha.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 D=/[&\u00A0"]/g,L=/[&\u00A0<>]/g;function Oa(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}}function Pa(e){for(var n={},o=0;o<e.length;o++)n[e[o]]=!0;return n}var j=Pa("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),k=Pa("style script xmp iframe noembed noframes plaintext noscript".split(" "));function Sa(e,n){"template"===e.localName&&(e=e.content);for(var o="",i=n?n(e):e.childNodes,s=0,l=i.length,h=void 0;s<l&&(h=i[s]);s++){e:{var _=h,m=e,v=n;switch(_.nodeType){case Node.ELEMENT_NODE:for(var w,C="<"+(m=_.localName),S=_.attributes,T=0;w=S[T];T++)C+=" "+w.name+'="'+w.value.replace(D,Oa)+'"';C+=">",_=j[m]?C:C+Sa(_,v)+"</"+m+">";break e;case Node.TEXT_NODE:_=_.data,_=m&&k[m.localName]?_:_.replace(L,Oa);break e;case Node.COMMENT_NODE:_="\x3c!--"+_.data+"--\x3e";break e;default:throw window.console.error(_),Error("not implemented")}}o+=_}return o}var R=o.j,H={querySelector:function(e){return this.__shady_native_querySelector(e)},querySelectorAll:function(e){return this.__shady_native_querySelectorAll(e)}},q={};function Wa(e){q[e]=function(n){return n["__shady_native_"+e]}}function Xa(e,n){for(var o in z(e,n,"__shady_native_"),n)Wa(o)}function B(e,n){n=void 0===n?[]:n;for(var o=0;o<n.length;o++){var i=n[o],s=Object.getOwnPropertyDescriptor(e,i);s&&(Object.defineProperty(e,"__shady_native_"+i,s),s.value?H[i]||(H[i]=s.value):Wa(i))}}var G=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),V=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),$=document.implementation.createHTMLDocument("inert");function Za(e){for(var n;n=e.__shady_native_firstChild;)e.__shady_native_removeChild(n)}var J=["firstElementChild","lastElementChild","children","childElementCount"],Z=["querySelector","querySelectorAll","append","prepend","replaceChildren"];var Q=A({get childNodes(){return this.__shady_childNodes},get firstChild(){return this.__shady_firstChild},get lastChild(){return this.__shady_lastChild},get childElementCount(){return this.__shady_childElementCount},get children(){return this.__shady_children},get firstElementChild(){return this.__shady_firstElementChild},get lastElementChild(){return this.__shady_lastElementChild},get shadowRoot(){return this.__shady_shadowRoot}}),ae=A({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}}),de=A({get parentElement(){return this.__shady_parentElement},get parentNode(){return this.__shady_parentNode},get nextSibling(){return this.__shady_nextSibling},get previousSibling(){return this.__shady_previousSibling},get nextElementSibling(){return this.__shady_nextElementSibling},get previousElementSibling(){return this.__shady_previousElementSibling},get className(){return this.__shady_className},set className(e){this.__shady_className=e}});function gb(e){for(var n in e){var o=e[n];o&&(o.enumerable=!1)}}gb(Q),gb(ae),gb(de);var _e,be=o.j||!0===o.s,Ne=be?function(){}:function(e){var n=t(e);n.Ba||(n.Ba=!0,xa(e,de))},Se=be?function(){}:function(e){var n=t(e);n.Aa||(n.Aa=!0,xa(e,Q),window.customElements&&window.customElements.polyfillWrapFlushCallback&&!o.s||xa(e,ae))},Te="__eventWrappers"+Date.now(),Oe=(_e=Object.getOwnPropertyDescriptor(Event.prototype,"composed"))?function(e){return _e.get.call(e)}:null,Me=function(){function a(){}var e=!1,n={get capture(){return e=!0,!1}};return window.addEventListener("test",a,n),window.removeEventListener("test",a,n),e}();function nb(e){if(null===e||"object"!=typeof e&&"function"!=typeof e)var n=!!e,o=!1;else{n=!!e.capture,o=!!e.once;var i=e.G}return{xa:i,capture:n,once:o,wa:Me?e:n}}var Pe={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},Le={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function qb(e){return e instanceof Node?e.__shady_getRootNode():e}function rb(e,n){var o=[],i=e;for(e=qb(e);i;)o.push(i),i=i.__shady_assignedSlot?i.__shady_assignedSlot:i.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&i.host&&(n||i!==e)?i.host:i.__shady_parentNode;return o[o.length-1]===document&&o.push(window),o}function tb(e,n){if(!y)return e;e=rb(e,!0);for(var o,i,s=0,l=void 0,h=void 0;s<n.length;s++)if((i=qb(o=n[s]))!==l&&(h=e.indexOf(i),l=i),!y(i)||-1<h)return o}var Ie={get composed(){return void 0===this.__composed&&(Oe?this.__composed="focusin"===this.type||"focusout"===this.type||Oe(this):!1!==this.isTrusted&&(this.__composed=Pe[this.type])),this.__composed||!1},composedPath:function(){return this.__composedPath||(this.__composedPath=rb(this.__target,this.composed)),this.__composedPath},get target(){return tb(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){return this.__relatedTarget?(this.__relatedTargetComposedPath||(this.__relatedTargetComposedPath=rb(this.__relatedTarget,!0)),tb(this.currentTarget||this.__previousCurrentTarget,this.__relatedTargetComposedPath)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.fa=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.fa=this.__immediatePropagationStopped=!0}},He=o.j&&Object.getOwnPropertyDescriptor(Event.prototype,"eventPhase");function wb(e){function b(n,o){return(n=new e(n,o)).__composed=o&&!!o.composed,n}return b.__proto__=e,b.prototype=e.prototype,b}He&&(Object.defineProperty(Ie,"eventPhase",{get:function(){return this.currentTarget===this.target?Event.AT_TARGET:this.__shady_native_eventPhase},enumerable:!0,configurable:!0}),Object.defineProperty(Ie,"__shady_native_eventPhase",He));var Be={focus:!0,blur:!0};function yb(e){return e.__target!==e.target||e.__relatedTarget!==e.relatedTarget}function zb(e,n,o){if(o=n.__handlers&&n.__handlers[e.type]&&n.__handlers[e.type][o])for(var i,s=0;(i=o[s])&&(!yb(e)||e.target!==e.relatedTarget)&&(i.call(n,e),!e.__immediatePropagationStopped);s++);}var Ue=new Event("e").hasOwnProperty("currentTarget");function Bb(e){var n=(e=Ue?Object.create(e):e).composedPath(),o=n.map((function(e){return tb(e,n)})),i=e.bubbles,s=Object.getOwnPropertyDescriptor(e,"currentTarget");Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:function(){return m}});var l=Event.CAPTURING_PHASE,h=Object.getOwnPropertyDescriptor(e,"eventPhase");Object.defineProperty(e,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return l}});try{for(var _=n.length-1;0<=_;_--){var m=n[_];if(l=m===o[_]?Event.AT_TARGET:Event.CAPTURING_PHASE,zb(e,m,"capture"),e.fa)return}for(_=0;_<n.length;_++){var v=(m=n[_])===o[_];if((v||i)&&(l=v?Event.AT_TARGET:Event.BUBBLING_PHASE,zb(e,m,"bubble"),e.fa))break}}finally{Ue||(s?Object.defineProperty(e,"currentTarget",s):delete e.currentTarget,h?Object.defineProperty(e,"eventPhase",h):delete e.eventPhase)}}function Cb(e,n,o,i){for(var s=0;s<e.length;s++){var l=e[s],h=l.type,_=l.capture;if(n===l.node&&o===h&&i===_)return s}return-1}function Db(e){return Ga(),!o.R&&this instanceof Node&&!C(document,this)?(e.__target||Eb(e,this),Bb(e)):this.__shady_native_dispatchEvent(e)}function Fb(e,n,o){var i=this,s=nb(o),l=s.capture,h=s.once,_=s.xa;if(s=s.wa,n){var m=typeof n;if(("function"===m||"object"===m)&&("object"!==m||n.handleEvent&&"function"==typeof n.handleEvent)){if(Le[e])return this.__shady_native_addEventListener(e,n,s);var v=_||this;if(_=n[Te]){if(-1<Cb(_,v,e,l))return}else n[Te]=[];_=function(s){if(h&&i.__shady_removeEventListener(e,n,o),s.__target||Eb(s),v!==i){var _=Object.getOwnPropertyDescriptor(s,"currentTarget");Object.defineProperty(s,"currentTarget",{get:function(){return v},configurable:!0});var w=Object.getOwnPropertyDescriptor(s,"eventPhase");Object.defineProperty(s,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return l?Event.CAPTURING_PHASE:Event.BUBBLING_PHASE}})}if(s.__previousCurrentTarget=s.currentTarget,(!y(v)&&"slot"!==v.localName||-1!=s.composedPath().indexOf(v))&&(s.composed||-1<s.composedPath().indexOf(v)))if(yb(s)&&s.target===s.relatedTarget)s.eventPhase===Event.BUBBLING_PHASE&&s.stopImmediatePropagation();else if(s.eventPhase===Event.CAPTURING_PHASE||s.bubbles||s.target===v||v instanceof Window){var C="function"===m?n.call(v,s):n.handleEvent&&n.handleEvent(s);return v!==i&&(_?(Object.defineProperty(s,"currentTarget",_),_=null):delete s.currentTarget,w?(Object.defineProperty(s,"eventPhase",w),w=null):delete s.eventPhase),C}},n[Te].push({node:v,type:e,capture:l,Ya:_}),this.__handlers=this.__handlers||{},this.__handlers[e]=this.__handlers[e]||{capture:[],bubble:[]},this.__handlers[e][l?"capture":"bubble"].push(_),Be[e]||this.__shady_native_addEventListener(e,_,s)}}}function Gb(e,n,o){if(n){var i=nb(o);o=i.capture;var s=i.xa;if(i=i.wa,Le[e])return this.__shady_native_removeEventListener(e,n,i);var l=s||this;s=void 0;var h=null;try{h=n[Te]}catch(e){}h&&(-1<(l=Cb(h,l,e,o))&&(s=h.splice(l,1)[0].Ya,h.length||(n[Te]=void 0))),this.__shady_native_removeEventListener(e,s||n,i),s&&this.__handlers&&this.__handlers[e]&&(-1<(n=(e=this.__handlers[e][o?"capture":"bubble"]).indexOf(s))&&e.splice(n,1))}}var We=A(Ie);function Eb(e,n){if(n=void 0===n?e.target:n,e.__target=n,e.__relatedTarget=e.relatedTarget,o.j){if(!(n=Object.getPrototypeOf(e)).hasOwnProperty("__shady_patchedProto")){var i=Object.create(n);i.__shady_sourceProto=n,z(i,We),n.__shady_patchedProto=i}e.__proto__=n.__shady_patchedProto}else z(e,We)}var Ye=wb(Event),Ve=wb(CustomEvent),$e=wb(MouseEvent);var Ze=Object.getOwnPropertyNames(Element.prototype).filter((function(e){return"on"===e.substring(0,2)})),Qe=Object.getOwnPropertyNames(HTMLElement.prototype).filter((function(e){return"on"===e.substring(0,2)}));function Pb(e){return{set:function(n){var o=t(this),i=e.substring(2);o.F||(o.F={}),o.F[e]&&this.removeEventListener(i,o.F[e]),this.__shady_addEventListener(i,n),o.F[e]=n},get:function(){var n=u(this);return n&&n.F&&n.F[e]},configurable:!0}}function Qb(e,n){return{index:e,S:[],Z:n}}function Rb(e,n,o,i){var s=0,l=0,h=0,_=0,m=Math.min(n-s,i-l);if(0==s&&0==l)e:{for(h=0;h<m;h++)if(e[h]!==o[h])break e;h=m}if(n==e.length&&i==o.length){_=e.length;for(var v=o.length,w=0;w<m-h&&Sb(e[--_],o[--v]);)w++;_=w}if(l+=h,i-=_,0==(n-=_)-(s+=h)&&0==i-l)return[];if(s==n){for(n=Qb(s,0);l<i;)n.S.push(o[l++]);return[n]}if(l==i)return[Qb(s,n-s)];for(i=i-(h=l)+1,_=n-(m=s)+1,n=Array(i),v=0;v<i;v++)n[v]=Array(_),n[v][0]=v;for(v=0;v<_;v++)n[0][v]=v;for(v=1;v<i;v++)for(w=1;w<_;w++)if(e[m+w-1]===o[h+v-1])n[v][w]=n[v-1][w-1];else{var C=n[v-1][w]+1,S=n[v][w-1]+1;n[v][w]=C<S?C:S}for(m=n.length-1,h=n[0].length-1,i=n[m][h],e=[];0<m||0<h;)0==m?(e.push(2),h--):0==h?(e.push(3),m--):(_=n[m-1][h-1],(C=(v=n[m-1][h])<(w=n[m][h-1])?v<_?v:_:w<_?w:_)==_?(_==i?e.push(0):(e.push(1),i=_),m--,h--):C==v?(e.push(3),m--,i=v):(e.push(2),h--,i=w));for(e.reverse(),n=void 0,m=[],h=0;h<e.length;h++)switch(e[h]){case 0:n&&(m.push(n),n=void 0),s++,l++;break;case 1:n||(n=Qb(s,0)),n.Z++,s++,n.S.push(o[l]),l++;break;case 2:n||(n=Qb(s,0)),n.Z++,s++;break;case 3:n||(n=Qb(s,0)),n.S.push(o[l]),l++}return n&&m.push(n),m}function Sb(e,n){return e===n}var et=A({dispatchEvent:Db,addEventListener:Fb,removeEventListener:Gb}),tt=null;function E(){return tt||(tt=window.ShadyCSS&&window.ShadyCSS.ScopingShim),tt||null}function Vb(e,n,o){var i=E();return!(!i||"class"!==n)&&(i.setElementClass(e,o),!0)}function Wb(e,n){var o=E();o&&o.unscopeNode(e,n)}function Xb(e,n){var o=E();if(!o)return!0;if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(o=!0,e=e.__shady_firstChild;e;e=e.__shady_nextSibling)o=o&&Xb(e,n);return o}return e.nodeType!==Node.ELEMENT_NODE||o.currentScopeForNode(e)===n}function Yb(e){if(e.nodeType!==Node.ELEMENT_NODE)return"";var n=E();return n?n.currentScopeForNode(e):""}function Zb(e,n){if(e)for(e.nodeType===Node.ELEMENT_NODE&&n(e),e=e.__shady_firstChild;e;e=e.__shady_nextSibling)e.nodeType===Node.ELEMENT_NODE&&Zb(e,n)}var nt=window.document,rt=o.R,ot=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),it=ot&&ot.get;function dc(e){for(var n;n=e.__shady_firstChild;)e.__shady_removeChild(n)}function ec(e){var n=u(e);if(n&&void 0!==n.ea)for(n=e.__shady_firstChild;n;n=n.__shady_nextSibling)ec(n);(e=u(e))&&(e.ea=void 0)}function fc(e){var n=e;if(e&&"slot"===e.localName){var o=u(e);(o=o&&o.L)&&(n=o.length?o[0]:fc(e.__shady_nextSibling))}return n}function gc(e,n,o){if(e=(e=u(e))&&e.P){if(n)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(var i=0,s=n.childNodes.length;i<s;i++)e.addedNodes.push(n.childNodes[i]);else e.addedNodes.push(n);o&&e.removedNodes.push(o),function Ia(e){e.g||(e.g=!0,qa((function(){e.flush()})))}(e)}}var at=A({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(x(this)){var e=u(this);if(!e.childNodes){e.childNodes=[];for(var n=this.__shady_firstChild;n;n=n.__shady_nextSibling)e.childNodes.push(n)}var o=e.childNodes}else o=this.__shady_native_childNodes;return o.item=function(e){return o[e]},o},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(it&&it.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;var e=this.ownerDocument;if(null===e||C(e,this))return!0;for(e=this;e&&!(e instanceof Document);)e=e.__shady_parentNode||(y(e)?e.host:void 0);return!!(e&&e instanceof Document)},get textContent(){if(x(this)){for(var e=[],n=this.__shady_firstChild;n;n=n.__shady_nextSibling)n.nodeType!==Node.COMMENT_NODE&&e.push(n.__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(!x(this)&&o.j){var n=this.__shady_firstChild;(n!=this.__shady_lastChild||n&&n.nodeType!=Node.TEXT_NODE)&&dc(this),this.__shady_native_textContent=e}else dc(this),(0<e.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_insertBefore(document.createTextNode(e));break;default:this.nodeValue=e}},insertBefore:function(e,n){if(this.ownerDocument!==nt&&e.ownerDocument!==nt)return this.__shady_native_insertBefore(e,n),e;if(e===this)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");if(n){var o=u(n);if(void 0!==(o=o&&o.parentNode)&&o!==this||void 0===o&&n.__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(n===e)return e;gc(this,e);var i=[],s=(o=hc(this))?o.host.localName:Yb(this),l=e.__shady_parentNode;if(l){var h=Yb(e),_=!!o||!hc(e)||rt&&void 0!==this.__noInsertionPoint;l.__shady_removeChild(e,_)}l=!0;var m=(!rt||void 0===e.__noInsertionPoint&&void 0===this.__noInsertionPoint)&&!Xb(e,s),v=o&&!e.__noInsertionPoint&&(!rt||e.nodeType===Node.DOCUMENT_FRAGMENT_NODE);return(v||m)&&(m&&(h=h||Yb(e)),Zb(e,(function(e){if(v&&"slot"===e.localName&&i.push(e),m){var n=h;E()&&(n&&Wb(e,n),(n=E())&&n.scopeNode(e,s))}}))),i.length&&(ic(o),o.i.push.apply(o.i,r(i)),F(o)),x(this)&&(function jc(e,n,o){cd(n,2);var i=t(n);if(void 0!==i.firstChild&&(i.childNodes=null),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(e=e.__shady_native_firstChild;e;e=e.__shady_native_nextSibling)dd(e,n,i,o);else dd(e,n,i,o)}(e,this,n),(_=u(this)).root?(l=!1,ja(this)&&F(_.root)):o&&"slot"===this.localName&&(l=!1,F(o))),l?(o=y(this)?this.host:this,n?(n=fc(n),o.__shady_native_insertBefore(e,n)):o.__shady_native_appendChild(e)):e.ownerDocument!==this.ownerDocument&&this.ownerDocument.adoptNode(e),e},appendChild:function(e){if(this!=e||!y(e))return this.__shady_insertBefore(e)},removeChild:function(e,n){if(n=void 0!==n&&n,this.ownerDocument!==nt)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);gc(this,null,e);var o=hc(e),i=o&&function kc(e,n){if(e.g){Cc(e);var o,i=e.h;for(o in i)for(var s=i[o],l=0;l<s.length;l++){var h=s[l];if(sa(n,h)){s.splice(l,1);var _=e.g.indexOf(h);if(0<=_&&(e.g.splice(_,1),(_=u(h.__shady_parentNode))&&_.U&&_.U--),l--,_=(h=u(h)).L)for(var m=0;m<_.length;m++){var v=_[m],w=v.__shady_native_parentNode;w&&w.__shady_native_removeChild(v)}h.L=[],h.assignedNodes=[],_=!0}}return _}}(o,e),s=u(this);if(x(this)&&(function lc(e,n){var o=t(e);n=t(n),e===n.firstChild&&(n.firstChild=o.nextSibling),e===n.lastChild&&(n.lastChild=o.previousSibling),e=o.previousSibling;var i=o.nextSibling;e&&(t(e).nextSibling=i),i&&(t(i).previousSibling=e),o.parentNode=o.previousSibling=o.nextSibling=void 0,void 0!==n.childNodes&&(n.childNodes=null)}(e,this),ja(this))){F(s.root);var l=!0}if(E()&&!n&&o&&e.nodeType!==Node.TEXT_NODE){var h=Yb(e);Zb(e,(function(e){Wb(e,h)}))}return ec(e),o&&((n="slot"===this.localName)&&(l=!0),(i||n)&&F(o)),l||(l=y(this)?this.host:this,(!s.root&&"slot"!==e.localName||l===e.__shady_native_parentNode)&&l.__shady_native_removeChild(e)),e},replaceChild:function(e,n){return this.__shady_insertBefore(e,n),this.__shady_removeChild(n),e},cloneNode:function(e){if("template"==this.localName)return this.__shady_native_cloneNode(e);var n=this.__shady_native_cloneNode(!1);if(e&&n.nodeType!==Node.ATTRIBUTE_NODE){e=this.__shady_firstChild;for(var o;e;e=e.__shady_nextSibling)o=e.__shady_cloneNode(!0),n.__shady_appendChild(o)}return n},getRootNode:function(e){if(this&&this.nodeType){var n=t(this),o=n.ea;return void 0===o&&(y(this)?(o=this,n.ea=o):(o=(o=this.__shady_parentNode)?o.__shady_getRootNode(e):this,document.documentElement.__shady_native_contains(this)&&(n.ea=o))),o}},contains:function(e){return sa(this,e)}}),st=A({get assignedSlot(){var e=this.__shady_parentNode;return(e=e&&e.__shady_shadowRoot)&&nc(e),(e=u(this))&&e.assignedSlot||null}}),lt=new Map;function qc(e,n,o,i){for(i=void 0===i||i;n<e.length;n++)if("\\"===e[n]&&n<e.length-1&&"\n"!==e[n+1])n++;else{if(-1!==o.indexOf(e[n]))return n;if(i&&lt.has(e[n])){var s=lt.get(e[n]);n=qc(e,n+1,[s.end],s.da)}}return e.length}function sc(e,n,o){var i=[];return tc(e,n,o,i),i}function tc(e,n,o,i){for(e=e.__shady_firstChild;e;e=e.__shady_nextSibling){var s;if(s=e.nodeType===Node.ELEMENT_NODE){var l=n,h=o,_=i,m=l(s=e);m&&_.push(s),h&&h(m)?s=m:(tc(s,l,h,_),s=void 0)}if(s)break}}[["(",{end:")",da:!0}],["[",{end:"]",da:!0}],['"',{end:'"',da:!1}],["'",{end:"'",da:!1}]].forEach((function(e){var n=p(e);e=n.next().value,n=n.next().value,lt.set(e,n)}));var ut={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 x(this)?ta(Array.prototype.filter.call(va(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}},ct=A((ut.append=function(e){for(var n=[],o=0;o<arguments.length;++o)n[o]=arguments[o];this.__shady_insertBefore(Aa.apply(null,r(n)),null)},ut.prepend=function(e){for(var n=[],o=0;o<arguments.length;++o)n[o]=arguments[o];this.__shady_insertBefore(Aa.apply(null,r(n)),this.__shady_firstChild)},ut.replaceChildren=function(e){for(var n=[],o=0;o<arguments.length;++o)n[o]=arguments[o];for(;null!==(o=this.__shady_firstChild);)this.__shady_removeChild(o);this.__shady_insertBefore(Aa.apply(null,r(n)),null)},ut));function wc(e,n){function c(n,o){return(n===e||-1===o.indexOf(":scope"))&&_.call(n,o)}var o=function rc(e){function b(){if(0<o.length){for(;" "===o[o.length-1];)o.pop();n.push({ta:o.filter((function(e,n){return 0==n%2})),Ha:o.filter((function(e,n){return 1==n%2}))}),o.length=0}}for(var n=[],o=[],i=0;i<e.length;){var s=o[o.length-1],l=qc(e,i,[","," ",">","+","~"]),h=l===i?e[i]:e.substring(i,l);","===h?b():-1!==[void 0," ",">","+","~"].indexOf(s)&&" "===h||(" "===s&&-1!==[">","+","~"].indexOf(h)?o[o.length-1]=h:o.push(h)),i=l+(l===i?1:0)}return b(),n}(n);if(1>o.length)return[];for(n=Ba(sc(e,(function(){return!0})).map((function(e){return Ba(o.map((function(n){var o=n.ta,i=o.length-1;return c(e,o[i])?{target:e,N:n,O:e,index:i}:[]})))})));n.some((function(e){return 0<e.index}));)n=Ba(n.map((function(e){if(0>=e.index)return e;var n=e.target,o=e.O,i=e.N;e=e.index-1;var s=i.Ha[e],l=i.ta[e];if(" "===s){for(s=[],o=o.__shady_parentElement;o;o=o.__shady_parentElement)c(o,l)&&s.push({target:n,N:i,O:o,index:e});return s}if(">"===s)return c(o=o.__shady_parentElement,l)?{target:n,N:i,O:o,index:e}:[];if("+"===s)return(o=o.__shady_previousElementSibling)&&c(o,l)?{target:n,N:i,O:o,index:e}:[];if("~"===s){for(s=[],o=o.__shady_previousElementSibling;o;o=o.__shady_previousElementSibling)c(o,l)&&s.push({target:n,N:i,O:o,index:e});return s}throw Error("Unrecognized combinator: '"+s+"'.")})));return function Ca(e){for(var n=[],o=new Set,i=(e=p(e)).next();!i.done;i=e.next())i=i.value,o.has(i)||(n.push(i),o.add(i));return n}(n.map((function(e){return e.target})))}var dt=o.querySelectorImplementation,ht=A({querySelector:function(e){if("native"===dt){for(var n=Array.prototype.slice.call((this instanceof ShadowRoot?this.host:this).__shady_native_querySelectorAll(e)),o=this.__shady_getRootNode(),i=(n=p(n)).next();!i.done;i=n.next())if((i=i.value).__shady_getRootNode()==o)return i;return null}if("selectorEngine"===dt)return wc(this,e)[0]||null;if(void 0===dt)return sc(this,(function(n){return _.call(n,e)}),(function(e){return!!e}))[0]||null;throw Error("Unrecognized value of ShadyDOM.querySelectorImplementation: '"+dt+"'")},querySelectorAll:function(e,n){if(n||"native"===dt){n=Array.prototype.slice.call((this instanceof ShadowRoot?this.host:this).__shady_native_querySelectorAll(e));var o=this.__shady_getRootNode();return ta(n.filter((function(e){return e.__shady_getRootNode()==o})))}if("selectorEngine"===dt)return ta(wc(this,e));if(void 0===dt)return ta(sc(this,(function(n){return _.call(n,e)})));throw Error("Unrecognized value of ShadyDOM.querySelectorImplementation: '"+dt+"'")}}),ft=o.R&&!o.s?ya({},ct):ct;ya(ct,ht);var pt=A({after:function(e){for(var n=[],o=0;o<arguments.length;++o)n[o]=arguments[o];if(null!==(o=this.__shady_parentNode)){var i=this.__shady_nextSibling;o.__shady_insertBefore(Aa.apply(null,r(n)),i)}},before:function(e){for(var n=[],o=0;o<arguments.length;++o)n[o]=arguments[o];null!==(o=this.__shady_parentNode)&&o.__shady_insertBefore(Aa.apply(null,r(n)),this)},remove:function(){var e=this.__shady_parentNode;null!==e&&e.__shady_removeChild(this)},replaceWith:function(e){for(var n=[],o=0;o<arguments.length;++o)n[o]=arguments[o];if(null!==(o=this.__shady_parentNode)){var i=this.__shady_nextSibling;o.__shady_removeChild(this),o.__shady_insertBefore(Aa.apply(null,r(n)),i)}}}),_t=window.document;function Bc(e,n){if("slot"===n)ja(e=e.__shady_parentNode)&&F(u(e).root);else if("slot"===e.localName&&"name"===n&&(n=hc(e))){if(n.g){Cc(n);var o=e.Ca,i=Dc(e);if(i!==o){var s=(o=n.h[o]).indexOf(e);0<=s&&o.splice(s,1),(o=n.h[i]||(n.h[i]=[])).push(e),1<o.length&&(n.h[i]=Ec(o))}}F(n)}}var mt=A({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,n){this.ownerDocument!==_t?this.__shady_native_setAttribute(e,n):Vb(this,e,n)||(this.__shady_native_setAttribute(e,n),Bc(this,e))},removeAttribute:function(e){this.ownerDocument!==_t?this.__shady_native_removeAttribute(e):Vb(this,e,"")?""===this.getAttribute(e)&&this.__shady_native_removeAttribute(e):(this.__shady_native_removeAttribute(e),Bc(this,e))},toggleAttribute:function(e,n){return this.ownerDocument!==_t?this.__shady_native_toggleAttribute(e,n):Vb(this,e,"")?""!==this.getAttribute(e)||n?void 0:this.__shady_native_toggleAttribute(e,n):(n=this.__shady_native_toggleAttribute(e,n),Bc(this,e),n)}});o.R||Ze.forEach((function(e){mt[e]=Pb(e)}));var vt=A({attachShadow:function(e){if(!this)throw Error("Must provide a host.");if(!e)throw Error("Not enough arguments.");if(e.shadyUpgradeFragment&&!o.za){var n=e.shadyUpgradeFragment;if(n.__proto__=ShadowRoot.prototype,Gc(n,this,e),Hc(n,n),e=n.__noInsertionPoint?null:n.querySelectorAll("slot"),n.__noInsertionPoint=void 0,e&&e.length){var i=n;ic(i),i.i.push.apply(i.i,r(e)),F(n)}n.host.__shady_native_appendChild(n)}else n=new Ic(kt,this,e);return this.__CE_shadowRoot=n},get shadowRoot(){var e=u(this);return e&&e.Pa||null}});ya(mt,vt);var gt=document.implementation.createHTMLDocument("inert"),yt=A({get innerHTML(){return x(this)?Sa("template"===this.localName?this.content:this,va):this.__shady_native_innerHTML},set innerHTML(e){if("template"===this.localName)this.__shady_native_innerHTML=e;else{dc(this);var n=this.localName||"div";for(n=this.namespaceURI&&this.namespaceURI!==gt.namespaceURI?gt.createElementNS(this.namespaceURI,n):gt.createElement(n),o.j?n.__shady_native_innerHTML=e:n.innerHTML=e;e=n.__shady_firstChild;)this.__shady_insertBefore(e)}}}),bt=A({blur:function(){var e=u(this);(e=(e=e&&e.root)&&e.activeElement)?e.__shady_blur():this.__shady_native_blur()}});o.R||Qe.forEach((function(e){bt[e]=Pb(e)}));var Et=A({assignedNodes:function(e){if("slot"===this.localName){var n=this.__shady_getRootNode();return n&&y(n)&&nc(n),(n=u(this))&&(e&&e.flatten?n.L:n.assignedNodes)||[]}},addEventListener:function(e,n,o){if("slot"!==this.localName||"slotchange"===e)Fb.call(this,e,n,o);else{"object"!=typeof o&&(o={capture:!!o});var i=this.__shady_parentNode;if(!i)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");o.G=this,i.__shady_addEventListener(e,n,o)}},removeEventListener:function(e,n,o){if("slot"!==this.localName||"slotchange"===e)Gb.call(this,e,n,o);else{"object"!=typeof o&&(o={capture:!!o});var i=this.__shady_parentNode;if(!i)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");o.G=this,i.__shady_removeEventListener(e,n,o)}}}),Nt=A({getElementById:function(e){return""===e?null:sc(this,(function(n){return n.id==e}),(function(e){return!!e}))[0]||null}});function Qc(e,n){for(var o;n&&!e.has(o=n.__shady_getRootNode());)n=o.host;return n}var wt="__shady_native_"+ia(),Ct=A({get activeElement(){var e=o.j?document.__shady_native_activeElement:document.activeElement;if(!e||!e.nodeType)return null;var n=!!y(this);if(!(this===document||n&&this.host!==e&&this.host.__shady_native_contains(e)))return null;for(n=hc(e);n&&n!==this;)n=hc(e=n.host);return this===document?n?null:e:n===this?e:null},elementsFromPoint:function(e,n){if(e=document[wt](e,n),this===document&&o.useNativeDocumentEFP)return e;e=[].slice.call(e),n=function Rc(e){var n=new Set;for(n.add(e);y(e)&&e.host;)e=e.host.__shady_getRootNode(),n.add(e);return n}(this);for(var i=new Set,s=0;s<e.length;s++)i.add(Qc(n,e[s]));var l=[];return i.forEach((function(e){return l.push(e)})),l},elementFromPoint:function(e,n){return this===document&&o.useNativeDocumentEFP?this.__shady_native_elementFromPoint(e,n):this.__shady_elementsFromPoint(e,n)[0]||null}}),St=window.document,Tt=A({importNode:function(e,n){if(e.ownerDocument!==St||"template"===e.localName)return this.__shady_native_importNode(e,n);var o=this.__shady_native_importNode(e,!1);if(n)for(e=e.__shady_firstChild;e;e=e.__shady_nextSibling)n=this.__shady_importNode(e,!0),o.__shady_appendChild(n);return o}}),Ot=A({dispatchEvent:Db,addEventListener:Fb.bind(window),removeEventListener:Gb.bind(window)}),xt={};Object.getOwnPropertyDescriptor(HTMLElement.prototype,"parentElement")&&(xt.parentElement=at.parentElement),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"contains")&&(xt.contains=at.contains),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"children")&&(xt.children=ct.children),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML")&&(xt.innerHTML=yt.innerHTML),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"className")&&(xt.className=mt.className);var Dt={EventTarget:[et],Node:[at,window.EventTarget?null:et],Text:[st],Comment:[st],CDATASection:[st],ProcessingInstruction:[st],Element:[mt,ct,pt,st,!o.j||"innerHTML"in Element.prototype?yt:null,window.HTMLSlotElement?null:Et],HTMLElement:[bt,xt],HTMLSlotElement:[Et],DocumentFragment:[ft,Nt],Document:[Tt,ft,Nt,Ct],Window:[Ot],CharacterData:[pt],XMLHttpRequest:[window.EventTarget?null:et]},At=o.j?null:["innerHTML","textContent"];function I(e,n,o,i){n.forEach((function(n){return e&&n&&z(e,n,o,i)}))}function Zc(e){var n,o=e?null:At;for(n in Dt)I(window[n]&&window[n].prototype,Dt[n],e,o)}function $c(e){return e.__shady_protoIsPatched=!0,I(e,Dt.EventTarget),I(e,Dt.Node),I(e,Dt.Element),I(e,Dt.HTMLElement),I(e,Dt.HTMLSlotElement),e}["Text","Comment","CDATASection","ProcessingInstruction"].forEach((function(e){var n=window[e],o=Object.create(n.prototype);o.__shady_protoIsPatched=!0,I(o,Dt.EventTarget),I(o,Dt.Node),Dt[e]&&I(o,Dt[e]),n.prototype.__shady_patchedProto=o}));var Mt=o.ma,Pt=o.j;function cd(e,n){if(Mt&&!e.__shady_protoIsPatched&&!y(e)){var o=Object.getPrototypeOf(e),i=o.hasOwnProperty("__shady_patchedProto")&&o.__shady_patchedProto;i||($c(i=Object.create(o)),o.__shady_patchedProto=i),Object.setPrototypeOf(e,i)}Pt||(1===n?Ne(e):2===n&&Se(e))}function dd(e,n,o,i){cd(e,1),i=i||null;var s=t(e),l=i?t(i):null;s.previousSibling=i?l.previousSibling:n.__shady_lastChild,(l=u(s.previousSibling))&&(l.nextSibling=e),(l=u(s.nextSibling=i))&&(l.previousSibling=e),s.parentNode=n,i?i===o.firstChild&&(o.firstChild=e):(o.lastChild=e,o.firstChild||(o.firstChild=e)),o.childNodes=null}function Hc(e,n){var o=t(e);if(n||void 0===o.firstChild){o.childNodes=null;var i=o.firstChild=e.__shady_native_firstChild;for(o.lastChild=e.__shady_native_lastChild,cd(e,2),o=i,i=void 0;o;o=o.__shady_native_nextSibling){var s=t(o);s.parentNode=n||e,s.nextSibling=o.__shady_native_nextSibling,s.previousSibling=i||null,i=o,cd(o,1)}}}var Lt=A({addEventListener:function(e,n,o){"object"!=typeof o&&(o={capture:!!o}),o.G=o.G||this,this.host.__shady_addEventListener(e,n,o)},removeEventListener:function(e,n,o){"object"!=typeof o&&(o={capture:!!o}),o.G=o.G||this,this.host.__shady_removeEventListener(e,n,o)}});function fd(e,n){z(e,Lt,n),z(e,Ct,n),z(e,yt,n),z(e,ct,n),o.s&&!n?(z(e,at,n),z(e,Nt,n)):o.j||(z(e,de),z(e,Q),z(e,ae))}var jt,kt={},Rt=o.deferConnectionCallbacks&&"loading"===document.readyState;function hd(e){var n=[];do{n.unshift(e)}while(e=e.__shady_parentNode);return n}function Ic(e,n,o){if(e!==kt)throw new TypeError("Illegal constructor");this.g=null,Gc(this,n,o)}function Gc(e,n,i){if(e.host=n,e.mode=i&&i.mode,Hc(e.host),(n=t(e.host)).root=e,n.Pa="closed"!==e.mode?e:null,(n=t(e)).firstChild=n.lastChild=n.parentNode=n.nextSibling=n.previousSibling=null,o.preferPerformance)for(;n=e.host.__shady_native_firstChild;)e.host.__shady_native_removeChild(n);else F(e)}function F(e){e.K||(e.K=!0,Fa((function(){return nc(e)})))}function nc(e){var n;if(n=e.K){for(var o;e;)e.K&&(o=e),y(e=(n=e).host.__shady_getRootNode())&&(n=u(n.host))&&0<n.U||(e=void 0);n=o}(o=n)&&o._renderSelf()}function id(e,n,o){var i=t(n),s=i.ha;i.ha=null,o||(o=(e=e.h[n.__shady_slot||"__catchall"])&&e[0]),o?(t(o).assignedNodes.push(n),i.assignedSlot=o):i.assignedSlot=void 0,s!==i.assignedSlot&&i.assignedSlot&&(t(i.assignedSlot).ja=!0)}function jd(e,n,o){for(var i=0,s=void 0;i<o.length&&(s=o[i]);i++)if("slot"==s.localName){var l=u(s).assignedNodes;l&&l.length&&jd(e,n,l)}else n.push(o[i])}function kd(e,n){n.__shady_native_dispatchEvent(new Event("slotchange")),(n=u(n)).assignedSlot&&kd(e,n.assignedSlot)}function ic(e){e.i=e.i||[],e.g=e.g||[],e.h=e.h||{}}function Cc(e){if(e.i&&e.i.length){for(var n,o=e.i,i=0;i<o.length;i++){var s=o[i];Hc(s);var l=s.__shady_parentNode;Hc(l),(l=u(l)).U=(l.U||0)+1,l=Dc(s),e.h[l]?((n=n||{})[l]=!0,e.h[l].push(s)):e.h[l]=[s],e.g.push(s)}if(n)for(var h in n)e.h[h]=Ec(e.h[h]);e.i=[]}}function Dc(e){var n=e.name||e.getAttribute("name")||"__catchall";return e.Ca=n}function Ec(e){return e.sort((function(e,n){e=hd(e);for(var o=hd(n),i=0;i<e.length;i++){n=e[i];var s=o[i];if(n!==s)return(e=va(n.__shady_parentNode)).indexOf(n)-e.indexOf(s)}}))}function ka(e){return Cc(e),!(!e.g||!e.g.length)}if(Ic.prototype._renderSelf=function(){var e=Rt;if(Rt=!0,this.K=!1,this.g){Cc(this);for(var n,i=0;i<this.g.length;i++){var s=u(n=this.g[i]),l=s.assignedNodes;if(s.assignedNodes=[],s.L=[],s.ra=l)for(s=0;s<l.length;s++){var h=u(l[s]);h.ha=h.assignedSlot,h.assignedSlot===n&&(h.assignedSlot=null)}}for(i=this.host.__shady_firstChild;i;i=i.__shady_nextSibling)id(this,i);for(i=0;i<this.g.length;i++){if(!(l=u(n=this.g[i])).assignedNodes.length)for(s=n.__shady_firstChild;s;s=s.__shady_nextSibling)id(this,s,n);if((s=(s=u(n.__shady_parentNode))&&s.root)&&(ka(s)||s.K)&&s._renderSelf(),jd(this,l.L,l.assignedNodes),s=l.ra){for(h=0;h<s.length;h++)u(s[h]).ha=null;l.ra=null,s.length>l.assignedNodes.length&&(l.ja=!0)}l.ja&&(l.ja=!1,kd(this,n))}for(n=this.g,i=[],l=0;l<n.length;l++)(h=u(s=n[l].__shady_parentNode))&&h.root||!(0>i.indexOf(s))||i.push(s);for(n=0;n<i.length;n++){for(l=(h=i[n])===this?this.host:h,s=[],h=h.__shady_firstChild;h;h=h.__shady_nextSibling)if("slot"==h.localName)for(var _=u(h).L,m=0;m<_.length;m++)s.push(_[m]);else s.push(h);h=ua(l),_=Rb(s,s.length,h,h.length);for(var v=m=0,w=void 0;m<_.length&&(w=_[m]);m++){for(var C=0,S=void 0;C<w.S.length&&(S=w.S[C]);C++)S.__shady_native_parentNode===l&&l.__shady_native_removeChild(S),h.splice(w.index+v,1);v-=w.Z}for(v=0,w=void 0;v<_.length&&(w=_[v]);v++)for(m=h[w.index],C=w.index;C<w.index+w.Z;C++)S=s[C],l.__shady_native_insertBefore(S,m),h.splice(C,0,S)}}if(!o.preferPerformance&&!this.qa)for(i=this.host.__shady_firstChild;i;i=i.__shady_nextSibling)n=u(i),i.__shady_native_parentNode!==this.host||"slot"!==i.localName&&n.assignedSlot||this.host.__shady_native_removeChild(i);this.qa=!0,Rt=e,jt&&jt()},function(e){e.__proto__=DocumentFragment.prototype,fd(e,"__shady_"),fd(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(n){Object.defineProperty(e,n,{value:void 0,configurable:!0})})),["ownerDocument","baseURI","isConnected"].forEach((function(n){Object.defineProperty(e,n,{get:function(){return this.host[n]},configurable:!0})}))}(Ic.prototype),window.customElements&&window.customElements.define&&o.ka&&!o.preferPerformance){var Ft=new Map;jt=function(){var e=[];Ft.forEach((function(n,o){e.push([o,n])})),Ft.clear();for(var n=0;n<e.length;n++){var o=e[n][0];e[n][1]?o.__shadydom_connectedCallback():o.__shadydom_disconnectedCallback()}},Rt&&document.addEventListener("readystatechange",(function(){Rt=!1,jt()}),{once:!0});var It=window.customElements.define,od=function(e,n){var o=n.prototype.connectedCallback,i=n.prototype.disconnectedCallback;It.call(window.customElements,e,function(e,n,o){var i=0,s="__isConnected"+i++;return(n||o)&&(e.prototype.connectedCallback=e.prototype.__shadydom_connectedCallback=function(){Rt?Ft.set(this,!0):this[s]||(this[s]=!0,n&&n.call(this))},e.prototype.disconnectedCallback=e.prototype.__shadydom_disconnectedCallback=function(){Rt?this.isConnected||Ft.set(this,!1):this[s]&&(this[s]=!1,o&&o.call(this))}),e}(n,o,i)),n.prototype.connectedCallback=o,n.prototype.disconnectedCallback=i};window.customElements.define=od,Object.defineProperty(window.CustomElementRegistry.prototype,"define",{value:od,configurable:!0})}function hc(e){if(y(e=e.__shady_getRootNode()))return e}function pd(e){this.node=e}function qd(e){Object.defineProperty(pd.prototype,e,{get:function(){return this.node["__shady_"+e]},set:function(n){this.node["__shady_"+e]=n},configurable:!0})}(e=pd.prototype).addEventListener=function(e,n,o){return this.node.__shady_addEventListener(e,n,o)},e.removeEventListener=function(e,n,o){return this.node.__shady_removeEventListener(e,n,o)},e.appendChild=function(e){return this.node.__shady_appendChild(e)},e.insertBefore=function(e,n){return this.node.__shady_insertBefore(e,n)},e.removeChild=function(e){return this.node.__shady_removeChild(e)},e.replaceChild=function(e,n){return this.node.__shady_replaceChild(e,n)},e.cloneNode=function(e){return this.node.__shady_cloneNode(e)},e.getRootNode=function(e){return this.node.__shady_getRootNode(e)},e.contains=function(e){return this.node.__shady_contains(e)},e.dispatchEvent=function(e){return this.node.__shady_dispatchEvent(e)},e.setAttribute=function(e,n){this.node.__shady_setAttribute(e,n)},e.getAttribute=function(e){return this.node.__shady_native_getAttribute(e)},e.removeAttribute=function(e){this.node.__shady_removeAttribute(e)},e.toggleAttribute=function(e,n){return this.node.__shady_toggleAttribute(e,n)},e.attachShadow=function(e){return this.node.__shady_attachShadow(e)},e.focus=function(){this.node.__shady_native_focus()},e.blur=function(){this.node.__shady_blur()},e.importNode=function(e,n){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_importNode(e,n)},e.getElementById=function(e){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_getElementById(e)},e.elementsFromPoint=function(e,n){return this.node.__shady_elementsFromPoint(e,n)},e.elementFromPoint=function(e,n){return this.node.__shady_elementFromPoint(e,n)},e.querySelector=function(e){return this.node.__shady_querySelector(e)},e.querySelectorAll=function(e,n){return this.node.__shady_querySelectorAll(e,n)},e.assignedNodes=function(e){if("slot"===this.node.localName)return this.node.__shady_assignedNodes(e)},e.append=function(e){for(var n=[],o=0;o<arguments.length;++o)n[o]=arguments[o];return this.node.__shady_append.apply(this.node,r(n))},e.prepend=function(e){for(var n=[],o=0;o<arguments.length;++o)n[o]=arguments[o];return this.node.__shady_prepend.apply(this.node,r(n))},e.after=function(e){for(var n=[],o=0;o<arguments.length;++o)n[o]=arguments[o];return this.node.__shady_after.apply(this.node,r(n))},e.before=function(e){for(var n=[],o=0;o<arguments.length;++o)n[o]=arguments[o];return this.node.__shady_before.apply(this.node,r(n))},e.remove=function(){return this.node.__shady_remove()},e.replaceWith=function(e){for(var n=[],o=0;o<arguments.length;++o)n[o]=arguments[o];return this.node.__shady_replaceWith.apply(this.node,r(n))},n.Object.defineProperties(pd.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){if(y(this.node)||this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_activeElement}},_activeElement:{configurable:!0,enumerable:!0,get:function(){return this.activeElement}},host:{configurable:!0,enumerable:!0,get:function(){if(y(this.node))return this.node.host}},parentNode:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_parentNode}},firstChild:{configurable:!0,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}}}),Ze.forEach((function(e){return qd(e)})),Qe.forEach((function(e){return qd(e)}));var Ht=new WeakMap;function sd(e){if(y(e)||e instanceof pd)return e;var n=Ht.get(e);return n||(n=new pd(e),Ht.set(e,n)),n}if(o.ka){var Bt=o.j?function(e){return e}:function(e){return Se(e),Ne(e),e},Ut={inUse:o.ka,patch:Bt,isShadyRoot:y,enqueue:Fa,flush:Ga,flushInitial:function(e){!e.qa&&e.K&&nc(e)},settings:o,filterMutations:function La(e,n){var o=n.getRootNode();return e.map((function(e){var n=o===e.target.getRootNode();if(n&&e.addedNodes){if((n=[].slice.call(e.addedNodes).filter((function(e){return o===e.getRootNode()}))).length)return e=Object.create(e),Object.defineProperty(e,"addedNodes",{value:n,configurable:!0}),e}else if(n)return e})).filter((function(e){return e}))},observeChildren:function Ja(e,n){var o=t(e);o.P||(o.P=new Ha),o.P.aa.add(n);var i=o.P;return{Da:n,J:i,Ea:e,takeRecords:function(){return i.takeRecords()}}},unobserveChildren:function Ka(e){var n=e&&e.J;n&&(n.aa.delete(e.Da),n.aa.size||(t(e.Ea).P=null))},deferConnectionCallbacks:o.deferConnectionCallbacks,preferPerformance:o.preferPerformance,handlesDynamicScoping:!0,wrap:o.s?sd:Bt,wrapIfNeeded:!0===o.s?sd:function(e){return e},Wrapper:pd,composedPath:function sb(e){return e.__composedPath||(e.__composedPath=rb(e.target,!0)),e.__composedPath},noPatch:o.s,patchOnDemand:o.ma,nativeMethods:H,nativeTree:q,patchElementProto:$c,querySelectorImplementation:o.querySelectorImplementation};window.ShadyDOM=Ut,function bb(){var e=["dispatchEvent","addEventListener","removeEventListener"];window.EventTarget?(B(window.EventTarget.prototype,e),void 0===window.__shady_native_addEventListener&&B(Window.prototype,e)):(B(Node.prototype,e),B(Window.prototype,e),B(XMLHttpRequest.prototype,e)),R?B(Node.prototype,"parentNode firstChild lastChild previousSibling nextSibling childNodes parentElement textContent".split(" ")):Xa(Node.prototype,{parentNode:{get:function(){return G.currentNode=this,G.parentNode()}},firstChild:{get:function(){return G.currentNode=this,G.firstChild()}},lastChild:{get:function(){return G.currentNode=this,G.lastChild()}},previousSibling:{get:function(){return G.currentNode=this,G.previousSibling()}},nextSibling:{get:function(){return G.currentNode=this,G.nextSibling()}},childNodes:{get:function(){var e=[];G.currentNode=this;for(var n=G.firstChild();n;)e.push(n),n=G.nextSibling();return e}},parentElement:{get:function(){return V.currentNode=this,V.parentNode()}},textContent:{get:function(){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(var e,n=document.createTreeWalker(this,NodeFilter.SHOW_TEXT,null,!1),o="";e=n.nextNode();)o+=e.nodeValue;return o;default:return this.nodeValue}},set:function(e){switch(null==e&&(e=""),this.nodeType){case Node.ELEMEN