CoreFiles by mySites.guru
webcomponents-sd-ce-pf.min.js1 lines, 119,068 bytes, from Joomla_4.0.0-beta7-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta6
md5
9ed069eacc6f536f8e4363abc5371282
sha1
a37062fb67aab4fb1b46ada13f112964a0061734
sha256
1298f710060967f6ee7926f6c55b6679333bcee76c2755b4dd0003b0ecac213d
(function(){"use strict";var t;function e(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}var n="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},r="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function o(){o=function(){},r.Symbol||(r.Symbol=s)}function i(t,e){this.a=t,n(this,"description",{configurable:!0,writable:!0,value:e})}i.prototype.toString=function(){return this.a};var a,s=function(){var t=0;return function e(n){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new i("jscomp_symbol_"+(n||"")+"_"+t++,n)}}();function l(){o();var t=r.Symbol.iterator;t||(t=r.Symbol.iterator=r.Symbol("Symbol.iterator")),"function"!=typeof Array.prototype[t]&&n(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return t=e(this),l(),(t={next:t})[r.Symbol.iterator]=function(){return this},t;var t}}),l=function(){}}function c(t){var n="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return n?n.call(t):{next:e(t)}}function u(t){if(!(t instanceof Array)){t=c(t);for(var e,n=[];!(e=t.next()).done;)n.push(e.value);t=n}return t}if("function"==typeof Object.setPrototypeOf)a=Object.setPrototypeOf;else{var h;t:{var d={};try{d.__proto__={Pa:!0},h=d.Pa;break t}catch(P){}h=!1}a=h?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var f=a;function p(){this.l=!1,this.b=null,this.Ea=void 0,this.a=1,this.Y=0,this.c=null}function _(t){if(t.l)throw new TypeError("Generator is already running");t.l=!0}function m(t,e){t.c={Sa:e,Wa:!0},t.a=t.Y}function v(t,e){return t.a=3,{value:e}}function y(t,e,n,r){try{var o=e.call(t.a.b,n);if(!(o instanceof Object))throw new TypeError("Iterator result "+o+" is not an object");if(!o.done)return t.a.l=!1,o;var i=o.value}catch(e){return t.a.b=null,m(t.a,e),g(t)}return t.a.b=null,r.call(t.a,i),g(t)}function g(t){for(;t.a.a;)try{var e=t.b(t.a);if(e)return t.a.l=!1,{value:e.value,done:!1}}catch(e){t.a.Ea=void 0,m(t.a,e)}if(t.a.l=!1,t.a.c){if(e=t.a.c,t.a.c=null,e.Wa)throw e.Sa;return{value:e.return,done:!0}}return{value:void 0,done:!0}}function b(t){this.next=function(e){return _(t.a),t.a.b?e=y(t,t.a.b.next,e,t.a.J):(t.a.J(e),e=g(t)),e},this.throw=function(e){return _(t.a),t.a.b?e=y(t,t.a.b.throw,e,t.a.J):(m(t.a,e),e=g(t)),e},this.return=function(e){return function(t,e){_(t.a);var n=t.a.b;return n?y(t,"return"in n?n.return:function(t){return{value:t,done:!0}},e,t.a.return):(t.a.return(e),g(t))}(t,e)},l(),this[Symbol.iterator]=function(){return this}}function E(t,e){return e=new b(new function(t){this.a=new p,this.b=t}(e)),f&&f(e,t.prototype),e}p.prototype.J=function(t){this.Ea=t},p.prototype.return=function(t){this.c={return:t},this.a=this.Y},Array.from||(Array.from=function(t){return[].slice.call(t)}),Object.assign||(Object.assign=function(t){for(var e,n=[].slice.call(arguments,1),r=0;r<n.length;r++)if(e=n[r])for(var o=t,i=Object.keys(e),a=0;a<i.length;a++){var s=i[a];o[s]=e[s]}return t});var w=setTimeout;function N(){}function C(t){if(!(this instanceof C))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this.I=0,this.za=!1,this.C=void 0,this.W=[],x(t,this)}function S(t,e){for(;3===t.I;)t=t.C;0===t.I?t.W.push(e):(t.za=!0,F(function(){var n=1===t.I?e.Ya:e.Za;if(null===n)(1===t.I?T:O)(e.va,t.C);else{try{var r=n(t.C)}catch(t){return void O(e.va,t)}T(e.va,r)}}))}function T(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof C)return t.I=3,t.C=e,void D(t);if("function"==typeof n)return void x(function(t,e){return function(){t.apply(e,arguments)}}(n,e),t)}t.I=1,t.C=e,D(t)}catch(e){O(t,e)}}function O(t,e){t.I=2,t.C=e,D(t)}function D(t){2===t.I&&0===t.W.length&&F(function(){t.za||"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t.C)});for(var e=0,n=t.W.length;e<n;e++)S(t,t.W[e]);t.W=null}function x(t,e){var n=!1;try{t(function(t){n||(n=!0,T(e,t))},function(t){n||(n=!0,O(e,t))})}catch(t){n||(n=!0,O(e,t))}}function M(t){return t&&"object"==typeof t&&t.constructor===C?t:new C(function(e){e(t)})}C.prototype.catch=function(t){return this.then(null,t)},C.prototype.then=function(t,e){var n=new this.constructor(N);return S(this,new function(t,e,n){this.Ya="function"==typeof t?t:null,this.Za="function"==typeof e?e:null,this.va=n}(t,e,n)),n},C.prototype.finally=function(t){var e=this.constructor;return this.then(function(n){return e.resolve(t()).then(function(){return n})},function(n){return e.resolve(t()).then(function(){return e.reject(n)})})};var P,L,A,j,k,R,F="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){w(t,0)};if(!window.Promise){window.Promise=C,C.prototype.then=C.prototype.then,C.all=function(t){return new C(function(e,n){function r(t,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,function(e){r(t,e)},n)}o[t]=a,0==--i&&e(o)}catch(t){n(t)}}if(!t||void 0===t.length)return n(new TypeError("Promise.all accepts an array"));var o=Array.prototype.slice.call(t);if(0===o.length)return e([]);for(var i=o.length,a=0;a<o.length;a++)r(a,o[a])})},C.race=function(t){return new C(function(e,n){if(!t||void 0===t.length)return n(new TypeError("Promise.race accepts an array"));for(var r=0,o=t.length;r<o;r++)M(t[r]).then(e,n)})},C.resolve=M,C.reject=function(t){return new C(function(e,n){n(t)})};var H=document.createTextNode(""),I=[];new MutationObserver(function(){for(var t=I.length,e=0;e<t;e++)I[e]();I.splice(0,t)}).observe(H,{characterData:!0}),F=function(t){I.push(t),H.textContent=0<H.textContent.length?"":"a"}}!function(t,e){if(!(e in t)){var n=typeof global==typeof n?window:global,r=0,o=""+Math.random(),i="__symbol@@"+o,a=t.getOwnPropertyNames,s=t.getOwnPropertyDescriptor,l=t.create,c=t.keys,u=t.freeze||t,h=t.defineProperty,d=t.defineProperties,f=s(t,"getOwnPropertyNames"),p=t.prototype,_=p.hasOwnProperty,m=p.propertyIsEnumerable,v=p.toString,y=function(t,e,n){_.call(t,i)||h(t,i,{enumerable:!1,configurable:!1,writable:!1,value:{}}),t[i]["@@"+e]=n},g=function(){},b=function(t){return t!=i&&!_.call(S,t)},E=function(t){return t!=i&&_.call(S,t)},w=function(t){var e=""+t;return E(e)?_.call(this,e)&&this[i]["@@"+e]:m.call(this,t)},N=function(e){return h(p,e,{enumerable:!1,configurable:!0,get:g,set:function(t){M(this,e,{enumerable:!1,configurable:!0,writable:!0,value:t}),y(this,e,!0)}}),u(S[e]=h(t(e),"constructor",T))},C=function t(e){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return N("__symbol:".concat(e||"",o,++r))},S=l(null),T={value:C},O=function(t){return S[t]},D=function(t,e,n){var r=""+e;if(E(r)){if(e=M,n.enumerable){var o=l(n);o.enumerable=!1}else o=n;e(t,r,o),y(t,r,!!n.enumerable)}else h(t,e,n);return t},x=function(t){return a(t).filter(E).map(O)};f.value=D,h(t,"defineProperty",f),f.value=x,h(t,e,f),f.value=function(t){return a(t).filter(b)},h(t,"getOwnPropertyNames",f),f.value=function(t,e){var n=x(e);return n.length?c(e).concat(n).forEach(function(n){w.call(e,n)&&D(t,n,e[n])}):d(t,e),t},h(t,"defineProperties",f),f.value=w,h(p,"propertyIsEnumerable",f),f.value=C,h(n,"Symbol",f),f.value=function(t){return(t="__symbol:".concat("__symbol:",t,o))in p?S[t]:N(t)},h(C,"for",f),f.value=function(t){if(b(t))throw new TypeError(t+" is not a symbol");if(_.call(S,t)&&("__symbol:"===(t=t.slice(10)).slice(0,10)&&(t=t.slice(10))!==o))return 0<(t=t.slice(0,t.length-o.length)).length?t:void 0},h(C,"keyFor",f),f.value=function(t,e){var n=s(t,e);return n&&E(e)&&(n.enumerable=w.call(t,e)),n},h(t,"getOwnPropertyDescriptor",f),f.value=function(t,e){return 1===arguments.length||void 0===e?l(t):function(t,e){var n=l(t);return a(e).forEach(function(t){w.call(e,t)&&D(n,t,e[t])}),n}(t,e)},h(t,"create",f),f.value=function(){var t=v.call(this);return"[object String]"===t&&E(this)?"[object Symbol]":t},h(p,"toString",f);try{if(!0!==l(h({},"__symbol:",{get:function(){return h(this,"__symbol:",{value:!0})["__symbol:"]}}))["__symbol:"])throw"IE11";var M=h}catch(t){M=function(t,e,n){var r=s(p,e);delete p[e],h(t,e,n),h(p,e,r)}}}}(Object,"getOwnPropertySymbols"),P=Object,L=Symbol,j=P.defineProperty,k=P.prototype,R=k.toString,"iterator match replace search split hasInstance isConcatSpreadable unscopables species toPrimitive toStringTag".split(" ").forEach(function(t){if(!(t in L))switch(j(L,t,{value:L(t)}),t){case"toStringTag":(A=P.getOwnPropertyDescriptor(k,"toString")).value=function(){var t=R.call(this),e=null!=this?this[L.toStringTag]:this;return null==e?t:"[object "+e+"]"},j(k,"toString",A)}}),function(t,e,n){function r(){return this}e[t]||(e[t]=function(){var e=0,n=this,o={next:function(){var t=n.length<=e;return t?{done:t}:{done:t,value:n[e++]}}};return o[t]=r,o}),n[t]||(n[t]=function(){var e=String.fromCodePoint,n=this,o=0,i=n.length,a={next:function(){var t=i<=o,r=t?"":e(n.codePointAt(o));return o+=r.length,t?{done:t}:{done:t,value:r}}};return a[t]=r,a})}(Symbol.iterator,Array.prototype,String.prototype);var B=Object.prototype.toString;Object.prototype.toString=function(){return void 0===this?"[object Undefined]":null===this?"[object Null]":B.call(this)},Object.keys=function(t){return Object.getOwnPropertyNames(t).filter(function(e){return(e=Object.getOwnPropertyDescriptor(t,e))&&e.enumerable})},o(),l(),String.prototype[Symbol.iterator]&&String.prototype.codePointAt||(o(),l(),String.prototype[Symbol.iterator]=function t(){var e,n=this;return E(t,function(t){if(1==t.a&&(e=0),3!=t.a)return e<n.length?t=v(t,n[e]):(t.a=0,t=void 0),t;e++,t.a=2})}),o(),l(),Set.prototype[Symbol.iterator]||(o(),l(),Set.prototype[Symbol.iterator]=function t(){var e,n,r=this;return E(t,function(t){if(1==t.a&&(e=[],r.forEach(function(t){e.push(t)}),n=0),3!=t.a)return n<e.length?t=v(t,e[n]):(t.a=0,t=void 0),t;n++,t.a=2})}),o(),l(),Map.prototype[Symbol.iterator]||(o(),l(),Map.prototype[Symbol.iterator]=function t(){var e,n,r=this;return E(t,function(t){if(1==t.a&&(e=[],r.forEach(function(t,n){e.push([n,t])}),n=0),3!=t.a)return n<e.length?t=v(t,e[n]):(t.a=0,t=void 0),t;n++,t.a=2})});var U=document.createEvent("Event");if(U.initEvent("foo",!0,!0),U.preventDefault(),!U.defaultPrevented){var q=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(q.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var W=/Trident/.test(navigator.userAgent);if(!window.Event||W&&"function"!=typeof window.Event){var V=window.Event;if(window.Event=function(t,e){e=e||{};var n=document.createEvent("Event");return n.initEvent(t,!!e.bubbles,!!e.cancelable),n},V){for(var G in V)window.Event[G]=V[G];window.Event.prototype=V.prototype}}if((!window.CustomEvent||W&&"function"!=typeof window.CustomEvent)&&(window.CustomEvent=function(t,e){e=e||{};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!!e.bubbles,!!e.cancelable,e.detail),n},window.CustomEvent.prototype=window.Event.prototype),!window.MouseEvent||W&&"function"!=typeof window.MouseEvent){var K=window.MouseEvent;if(window.MouseEvent=function(t,e){e=e||{};var n=document.createEvent("MouseEvent");return n.initMouseEvent(t,!!e.bubbles,!!e.cancelable,e.view||window,e.detail,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),n},K)for(var X in K)window.MouseEvent[X]=K[X];window.MouseEvent.prototype=K.prototype}Object.getOwnPropertyDescriptor(Node.prototype,"baseURI")||Object.defineProperty(Node.prototype,"baseURI",{get:function(){var t=(this.ownerDocument||this).querySelector("base[href]");return t&&t.href||window.location.href},configurable:!0,enumerable:!0});var z,J,$=Element.prototype,Y=null!==(z=Object.getOwnPropertyDescriptor($,"attributes"))&&void 0!==z?z:Object.getOwnPropertyDescriptor(Node.prototype,"attributes"),Z=null!==(J=null===Y||void 0===Y?void 0:Y.get)&&void 0!==J?J:function(){return this.attributes},Q=Array.prototype.map;$.hasOwnProperty("getAttributeNames")||($.getAttributeNames=function(){return Q.call(Z.call(this),function(t){return t.name})});var tt,et=Element.prototype;et.hasOwnProperty("matches")||(et.matches=null!==(tt=et.webkitMatchesSelector)&&void 0!==tt?tt:et.msMatchesSelector);var nt=Node.prototype.appendChild;function rt(t){(t=t.prototype).hasOwnProperty("append")||Object.defineProperty(t,"append",{configurable:!0,enumerable:!0,writable:!0,value:function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];for(n=(e=c(e)).next();!n.done;n=e.next())n=n.value,nt.call(this,"string"==typeof n?document.createTextNode(n):n)}})}rt(Document),rt(DocumentFragment),rt(Element);var ot,it,at=Node.prototype.insertBefore,st=null!==(it=null===(ot=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild"))||void 0===ot?void 0:ot.get)&&void 0!==it?it:function(){return this.firstChild};function lt(t){(t=t.prototype).hasOwnProperty("prepend")||Object.defineProperty(t,"prepend",{configurable:!0,enumerable:!0,writable:!0,value:function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];n=st.call(this);for(var r=(e=c(e)).next();!r.done;r=e.next())r=r.value,at.call(this,"string"==typeof r?document.createTextNode(r):r,n)}})}lt(Document),lt(DocumentFragment),lt(Element);var ct,ut,ht=Node.prototype.appendChild,dt=Node.prototype.removeChild,ft=null!==(ut=null===(ct=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild"))||void 0===ct?void 0:ct.get)&&void 0!==ut?ut:function(){return this.firstChild};function pt(t){(t=t.prototype).hasOwnProperty("replaceChildren")||Object.defineProperty(t,"replaceChildren",{configurable:!0,enumerable:!0,writable:!0,value:function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];for(;null!==(n=ft.call(this));)dt.call(this,n);for(n=(e=c(e)).next();!n.done;n=e.next())n=n.value,ht.call(this,"string"==typeof n?document.createTextNode(n):n)}})}pt(Document),pt(DocumentFragment),pt(Element);var _t,mt,vt,yt,gt=Node.prototype.insertBefore,bt=null!==(mt=null===(_t=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===_t?void 0:_t.get)&&void 0!==mt?mt:function(){return this.parentNode},Et=null!==(yt=null===(vt=Object.getOwnPropertyDescriptor(Node.prototype,"nextSibling"))||void 0===vt?void 0:vt.get)&&void 0!==yt?yt:function(){return this.nextSibling};function wt(t){(t=t.prototype).hasOwnProperty("after")||Object.defineProperty(t,"after",{configurable:!0,enumerable:!0,writable:!0,value:function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];if(null!==(n=bt.call(this)))for(var r=Et.call(this),o=(e=c(e)).next();!o.done;o=e.next())o=o.value,gt.call(n,"string"==typeof o?document.createTextNode(o):o,r)}})}wt(CharacterData),wt(Element);var Nt,Ct,St=Node.prototype.insertBefore,Tt=null!==(Ct=null===(Nt=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===Nt?void 0:Nt.get)&&void 0!==Ct?Ct:function(){return this.parentNode};function Ot(t){(t=t.prototype).hasOwnProperty("before")||Object.defineProperty(t,"before",{configurable:!0,enumerable:!0,writable:!0,value:function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];if(null!==(n=Tt.call(this)))for(var r=(e=c(e)).next();!r.done;r=e.next())r=r.value,St.call(n,"string"==typeof r?document.createTextNode(r):r,this)}})}Ot(CharacterData),Ot(Element);var Dt,xt,Mt=Node.prototype.removeChild,Pt=null!==(xt=null===(Dt=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===Dt?void 0:Dt.get)&&void 0!==xt?xt:function(){return this.parentNode};function Lt(t){(t=t.prototype).hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){var t=Pt.call(this);t&&Mt.call(t,this)}})}Lt(CharacterData),Lt(Element);var At,jt,kt=Node.prototype.insertBefore,Rt=Node.prototype.removeChild,Ft=null!==(jt=null===(At=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===At?void 0:At.get)&&void 0!==jt?jt:function(){return this.parentNode};function Ht(t){(t=t.prototype).hasOwnProperty("replaceWith")||Object.defineProperty(t,"replaceWith",{configurable:!0,enumerable:!0,writable:!0,value:function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];if(null!==(n=Ft.call(this))){for(var r=(e=c(e)).next();!r.done;r=e.next())r=r.value,kt.call(n,"string"==typeof r?document.createTextNode(r):r,this);Rt.call(n,this)}}})}Ht(CharacterData),Ht(Element);var It=window.Element.prototype,Bt=window.HTMLElement.prototype,Ut=window.SVGElement.prototype;!Bt.hasOwnProperty("classList")||It.hasOwnProperty("classList")||Ut.hasOwnProperty("classList")||Object.defineProperty(It,"classList",Object.getOwnPropertyDescriptor(Bt,"classList"));var qt=document.createElement("style");qt.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var Wt=document.querySelector("head");Wt.insertBefore(qt,Wt.firstChild);var Vt=window;Vt.WebComponents=Vt.WebComponents||{flags:{}};var Gt=document.querySelector('script[src*="webcomponents-bundle"]'),Kt=/wc-(.+)/,Xt={};if(!Xt.noOpts){if(location.search.slice(1).split("&").forEach(function(t){var e;(t=t.split("="))[0]&&(e=t[0].match(Kt))&&(Xt[e[1]]=t[1]||!0)}),Gt)for(var zt=0,Jt=void 0;Jt=Gt.attributes[zt];zt++)"src"!==Jt.name&&(Xt[Jt.name]=Jt.value||!0);var $t={};Xt.log&&Xt.log.split&&Xt.log.split(",").forEach(function(t){$t[t]=!0}),Xt.log=$t}Vt.WebComponents.flags=Xt;var Yt=Xt.shadydom;if(Yt){Vt.ShadyDOM=Vt.ShadyDOM||{},Vt.ShadyDOM.force=Yt;var Zt=Xt.noPatch;Vt.ShadyDOM.noPatch="true"===Zt||Zt}var Qt=Xt.register||Xt.ce;function te(){}function ee(t){return t.__shady||(t.__shady=new te),t.__shady}function ne(t){return t&&t.__shady}Qt&&window.customElements&&(Vt.customElements.forcePolyfill=Qt),function(){function t(){}function e(t,e){if(!t.childNodes.length)return[];switch(t.nodeType){case Node.DOCUMENT_NODE:return _.call(t,e);case Node.DOCUMENT_FRAGMENT_NODE:return m.call(t,e);default:return p.call(t,e)}}var n="undefined"==typeof HTMLTemplateElement,r=!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment),o=!1;/Trident/.test(navigator.userAgent)&&function(){function t(t,e){if(t instanceof DocumentFragment)for(var r;r=t.firstChild;)n.call(this,r,e);else n.call(this,t,e);return t}o=!0;var e=Node.prototype.cloneNode;Node.prototype.cloneNode=function(t){return t=e.call(this,t),this instanceof DocumentFragment&&(t.__proto__=DocumentFragment.prototype),t},DocumentFragment.prototype.querySelectorAll=HTMLElement.prototype.querySelectorAll,DocumentFragment.prototype.querySelector=HTMLElement.prototype.querySelector,Object.defineProperties(DocumentFragment.prototype,{nodeType:{get:function(){return Node.DOCUMENT_FRAGMENT_NODE},configurable:!0},localName:{get:function(){},configurable:!0},nodeName:{get:function(){return"#document-fragment"},configurable:!0}});var n=Node.prototype.insertBefore;Node.prototype.insertBefore=t;var r=Node.prototype.appendChild;Node.prototype.appendChild=function(e){return e instanceof DocumentFragment?t.call(this,e,null):r.call(this,e),e};var i=Node.prototype.removeChild,a=Node.prototype.replaceChild;Node.prototype.replaceChild=function(e,n){return e instanceof DocumentFragment?(t.call(this,e,n),i.call(this,n)):a.call(this,e,n),n},Document.prototype.createDocumentFragment=function(){var t=this.createElement("df");return t.__proto__=DocumentFragment.prototype,t};var s=Document.prototype.importNode;Document.prototype.importNode=function(t,e){return e=s.call(this,t,e||!1),t instanceof DocumentFragment&&(e.__proto__=DocumentFragment.prototype),e}}();var i=Node.prototype.cloneNode,a=Document.prototype.createElement,s=Document.prototype.importNode,l=Node.prototype.removeChild,c=Node.prototype.appendChild,u=Node.prototype.replaceChild,h=DOMParser.prototype.parseFromString,d=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML")||{get:function(){return this.innerHTML},set:function(t){this.innerHTML=t}},f=Object.getOwnPropertyDescriptor(window.Node.prototype,"childNodes")||{get:function(){return this.childNodes}},p=Element.prototype.querySelectorAll,_=Document.prototype.querySelectorAll,m=DocumentFragment.prototype.querySelectorAll,v=function(){if(!n){var t=document.createElement("template"),e=document.createElement("template");return e.content.appendChild(document.createElement("div")),t.content.appendChild(e),0===(t=t.cloneNode(!0)).content.childNodes.length||0===t.content.firstChild.content.childNodes.length||r}}();if(n){var y=document.implementation.createHTMLDocument("template"),g=!0,b=document.createElement("style");b.textContent="template{display:none;}";var E=document.head;E.insertBefore(b,E.firstElementChild),t.prototype=Object.create(HTMLElement.prototype);var w=!document.createElement("div").hasOwnProperty("innerHTML");t.U=function(e){if(!e.content&&e.namespaceURI===document.documentElement.namespaceURI){e.content=y.createDocumentFragment();for(var n;n=e.firstChild;)c.call(e.content,n);if(w)e.__proto__=t.prototype;else if(e.cloneNode=function(e){return t.b(this,e)},g)try{C(e),S(e)}catch(t){g=!1}t.a(e.content)}};var N={option:["select"],thead:["table"],col:["colgroup","table"],tr:["tbody","table"],th:["tr","tbody","table"],td:["tr","tbody","table"]},C=function(e){Object.defineProperty(e,"innerHTML",{get:function(){return P(this)},set:function(e){var n=N[(/<([a-z][^/\0>\x20\t\r\n\f]+)/i.exec(e)||["",""])[1].toLowerCase()];if(n)for(var r=0;r<n.length;r++)e="<"+n[r]+">"+e+"</"+n[r]+">";for(y.body.innerHTML=e,t.a(y);this.content.firstChild;)l.call(this.content,this.content.firstChild);if(e=y.body,n)for(r=0;r<n.length;r++)e=e.lastChild;for(;e.firstChild;)c.call(this.content,e.firstChild)},configurable:!0})},S=function(t){Object.defineProperty(t,"outerHTML",{get:function(){return"<template>"+this.innerHTML+"</template>"},set:function(t){if(!this.parentNode)throw Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");for(y.body.innerHTML=t,t=this.ownerDocument.createDocumentFragment();y.body.firstChild;)c.call(t,y.body.firstChild);u.call(this.parentNode,t,this)},configurable:!0})};C(t.prototype),S(t.prototype),t.a=function(n){for(var r,o=0,i=(n=e(n,"template")).length;o<i&&(r=n[o]);o++)t.U(r)},document.addEventListener("DOMContentLoaded",function(){t.a(document)}),Document.prototype.createElement=function(){var e=a.apply(this,arguments);return"template"===e.localName&&t.U(e),e},DOMParser.prototype.parseFromString=function(){var e=h.apply(this,arguments);return t.a(e),e},Object.defineProperty(HTMLElement.prototype,"innerHTML",{get:function(){return P(this)},set:function(e){d.set.call(this,e),t.a(this)},configurable:!0,enumerable:!0});var T=/[&\u00A0"]/g,O=/[&\u00A0<>]/g,D=function(t){switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}},x=(b=function(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=!0;return e})("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),M=b("style script xmp iframe noembed noframes plaintext noscript".split(" ")),P=function(t,e){"template"===t.localName&&(t=t.content);for(var n,r="",o=e?e(t):f.get.call(t),i=0,a=o.length;i<a&&(n=o[i]);i++){t:{var s=n,l=t,c=e;switch(s.nodeType){case Node.ELEMENT_NODE:for(var u=s.localName,h="<"+u,d=s.attributes,p=0;l=d[p];p++)h+=" "+l.name+'="'+l.value.replace(T,D)+'"';h+=">",s=x[u]?h:h+P(s,c)+"</"+u+">";break t;case Node.TEXT_NODE:s=s.data,s=l&&M[l.localName]?s:s.replace(O,D);break t;case Node.COMMENT_NODE:s="\x3c!--"+s.data+"--\x3e";break t;default:throw window.console.error(s),Error("not implemented")}}r+=s}return r}}if(n||v){t.b=function(t,e){var n=i.call(t,!1);return this.U&&this.U(n),e&&(c.call(n.content,i.call(t.content,!0)),L(n.content,t.content)),n};var L=function(n,r){if(r.querySelectorAll&&0!==(r=e(r,"template")).length)for(var o,i,a=0,s=(n=e(n,"template")).length;a<s;a++)i=r[a],o=n[a],t&&t.U&&t.U(i),u.call(o.parentNode,A.call(i,!0),o)},A=Node.prototype.cloneNode=function(e){if(!o&&r&&this instanceof DocumentFragment){if(!e)return this.ownerDocument.createDocumentFragment();var n=j.call(this.ownerDocument,this,!0)}else n=this.nodeType===Node.ELEMENT_NODE&&"template"===this.localName&&this.namespaceURI==document.documentElement.namespaceURI?t.b(this,e):i.call(this,e);return e&&L(n,this),n},j=Document.prototype.importNode=function(n,r){if(r=r||!1,"template"===n.localName)return t.b(n,r);var o=s.call(this,n,r);if(r){L(o,n),n=e(o,'script:not([type]),script[type="application/javascript"],script[type="text/javascript"]');for(var i,l=0;l<n.length;l++){i=n[l],(r=a.call(document,"script")).textContent=i.textContent;for(var c,h=i.attributes,d=0;d<h.length;d++)c=h[d],r.setAttribute(c.name,c.value);u.call(i.parentNode,r,i)}}return o}}n&&(window.HTMLTemplateElement=t)}(),te.prototype.toJSON=function(){return{}};var re=window.ShadyDOM||{};re.Ua=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var oe=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");function ie(t){return(t=ne(t))&&void 0!==t.firstChild}function ae(t){return t instanceof ShadowRoot}function se(t){return(t=(t=ne(t))&&t.root)&&Ur(t)}re.B=!!(oe&&oe.configurable&&oe.get),re.sa=re.force||!re.Ua,re.D=re.noPatch||!1,re.aa=re.preferPerformance,re.ua="on-demand"===re.D,re.Ia=navigator.userAgent.match("Trident");var le=Element.prototype,ce=le.matches||le.matchesSelector||le.mozMatchesSelector||le.msMatchesSelector||le.oMatchesSelector||le.webkitMatchesSelector,ue=document.createTextNode(""),he=0,de=[];function fe(t){de.push(t),ue.textContent=he++}new MutationObserver(function(){for(;de.length;)try{de.shift()()}catch(t){throw ue.textContent=he++,t}}).observe(ue,{characterData:!0});var pe=document.contains?function(t,e){return t.__shady_native_contains(e)}:function(t,e){return t===e||t.documentElement&&t.documentElement.__shady_native_contains(e)};function _e(t,e){for(;e;){if(e==t)return!0;e=e.__shady_parentNode}return!1}function me(t){for(var e=t.length-1;0<=e;e--){var n=t[e],r=n.getAttribute("id")||n.getAttribute("name");r&&"length"!==r&&isNaN(r)&&(t[r]=n)}return t.item=function(e){return t[e]},t.namedItem=function(e){if("length"!==e&&isNaN(e)&&t[e])return t[e];for(var n=c(t),r=n.next();!r.done;r=n.next())if(((r=r.value).getAttribute("id")||r.getAttribute("name"))==e)return r;return null},t}function ve(t){var e=[];for(t=t.__shady_native_firstChild;t;t=t.__shady_native_nextSibling)e.push(t);return e}function ye(t){var e=[];for(t=t.__shady_firstChild;t;t=t.__shady_nextSibling)e.push(t);return e}function ge(t,e,n){if(n.configurable=!0,n.value)t[e]=n.value;else try{Object.defineProperty(t,e,n)}catch(t){}}function be(t,e,n,r){for(var o in n=void 0===n?"":n,e)r&&0<=r.indexOf(o)||ge(t,n+o,e[o])}function Ee(t,e){for(var n in e)n in t&&ge(t,n,e[n])}function we(t){var e={};return Object.getOwnPropertyNames(t).forEach(function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)}),e}function Ne(t,e){for(var n,r=Object.getOwnPropertyNames(e),o=0;o<r.length;o++)t[n=r[o]]=e[n]}function Ce(t){return t instanceof Node?t:document.createTextNode(""+t)}function Se(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];if(1===e.length)return Ce(e[0]);n=document.createDocumentFragment();for(var r=(e=c(e)).next();!r.done;r=e.next())n.appendChild(Ce(r.value));return n}var Te,Oe=[];function De(t){Te||(Te=!0,fe(xe)),Oe.push(t)}function xe(){Te=!1;for(var t=!!Oe.length;Oe.length;)Oe.shift()();return t}function Me(){this.a=!1,this.addedNodes=[],this.removedNodes=[],this.ja=new Set}xe.list=Oe,Me.prototype.flush=function(){if(this.a){this.a=!1;var t=this.takeRecords();t.length&&this.ja.forEach(function(e){e(t)})}},Me.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var t=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],t}return[]};var Pe=/[&\u00A0"]/g,Le=/[&\u00A0<>]/g;function Ae(t){switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}}function je(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=!0;return e}var ke=je("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),Re=je("style script xmp iframe noembed noframes plaintext noscript".split(" "));function Fe(t,e){"template"===t.localName&&(t=t.content);for(var n="",r=e?e(t):t.childNodes,o=0,i=r.length,a=void 0;o<i&&(a=r[o]);o++){t:{var s=a,l=t,c=e;switch(s.nodeType){case Node.ELEMENT_NODE:for(var u,h="<"+(l=s.localName),d=s.attributes,f=0;u=d[f];f++)h+=" "+u.name+'="'+u.value.replace(Pe,Ae)+'"';h+=">",s=ke[l]?h:h+Fe(s,c)+"</"+l+">";break t;case Node.TEXT_NODE:s=s.data,s=l&&Re[l.localName]?s:s.replace(Le,Ae);break t;case Node.COMMENT_NODE:s="\x3c!--"+s.data+"--\x3e";break t;default:throw window.console.error(s),Error("not implemented")}}n+=s}return n}var He=re.B,Ie={querySelector:function(t){return this.__shady_native_querySelector(t)},querySelectorAll:function(t){return this.__shady_native_querySelectorAll(t)}},Be={};function Ue(t){Be[t]=function(e){return e["__shady_native_"+t]}}function qe(t,e){for(var n in be(t,e,"__shady_native_"),e)Ue(n)}function We(t,e){e=void 0===e?[]:e;for(var n=0;n<e.length;n++){var r=e[n],o=Object.getOwnPropertyDescriptor(t,r);o&&(Object.defineProperty(t,"__shady_native_"+r,o),o.value?Ie[r]||(Ie[r]=o.value):Ue(r))}}var Ve=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),Ge=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),Ke=document.implementation.createHTMLDocument("inert");function Xe(t){for(var e;e=t.__shady_native_firstChild;)t.__shady_native_removeChild(e)}var ze=["firstElementChild","lastElementChild","children","childElementCount"],Je=["querySelector","querySelectorAll","append","prepend","replaceChildren"];var $e=we({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}}),Ye=we({get textContent(){return this.__shady_textContent},set textContent(t){this.__shady_textContent=t},get innerHTML(){return this.__shady_innerHTML},set innerHTML(t){return this.__shady_innerHTML=t}}),Ze=we({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(t){return this.__shady_className=t}});function Qe(t){for(var e in t){var n=t[e];n&&(n.enumerable=!1)}}Qe($e),Qe(Ye),Qe(Ze);var tn=re.B||!0===re.D,en=tn?function(){}:function(t){var e=ee(t);e.Ka||(e.Ka=!0,Ee(t,Ze))},nn=tn?function(){}:function(t){var e=ee(t);e.Ja||(e.Ja=!0,Ee(t,$e),window.customElements&&window.customElements.polyfillWrapFlushCallback&&!re.D||Ee(t,Ye))},rn="__eventWrappers"+Date.now(),on=function(){var t=Object.getOwnPropertyDescriptor(Event.prototype,"composed");return t?function(e){return t.get.call(e)}:null}(),an=function(){function t(){}var e=!1,n={get capture(){return e=!0,!1}};return window.addEventListener("test",t,n),window.removeEventListener("test",t,n),e}();function sn(t){if(t&&"object"==typeof t)var e=!!t.capture,n=!!t.once,r=!!t.passive,o=t.O;else e=!!t,r=n=!1;return{Ga:o,capture:e,once:n,passive:r,Fa:an?t:e}}var ln={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},cn={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function un(t){return t instanceof Node?t.__shady_getRootNode():t}function hn(t,e){var n=[],r=t;for(t=un(t);r;)n.push(r),r=r.__shady_assignedSlot?r.__shady_assignedSlot:r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host&&(e||r!==t)?r.host:r.__shady_parentNode;return n[n.length-1]===document&&n.push(window),n}function dn(t,e){if(!ae)return t;t=hn(t,!0);for(var n,r,o=0,i=void 0,a=void 0;o<e.length;o++)if((r=un(n=e[o]))!==i&&(a=t.indexOf(r),i=r),!ae(r)||-1<a)return n}function fn(t){function e(e,n){return(e=new t(e,n)).__composed=n&&!!n.composed,e}return e.__proto__=t,e.prototype=t.prototype,e}var pn={focus:!0,blur:!0};function _n(t){return t.__target!==t.target||t.__relatedTarget!==t.relatedTarget}function mn(t,e,n){if(n=e.__handlers&&e.__handlers[t.type]&&e.__handlers[t.type][n])for(var r,o=0;(r=n[o])&&(!_n(t)||t.target!==t.relatedTarget)&&(r.call(e,t),!t.__immediatePropagationStopped);o++);}function vn(t){var e=t.composedPath(),n=e.map(function(t){return dn(t,e)}),r=t.bubbles;Object.defineProperty(t,"currentTarget",{configurable:!0,enumerable:!0,get:function(){return a}});var o=Event.CAPTURING_PHASE;Object.defineProperty(t,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return o}});for(var i=e.length-1;0<=i;i--){var a=e[i];if(o=a===n[i]?Event.AT_TARGET:Event.CAPTURING_PHASE,mn(t,a,"capture"),t.ma)return}for(i=0;i<e.length;i++){var s=(a=e[i])===n[i];if((s||r)&&(o=s?Event.AT_TARGET:Event.BUBBLING_PHASE,mn(t,a,"bubble"),t.ma))return}o=0,a=null}function yn(t,e,n,r,o,i){for(var a=0;a<t.length;a++){var s=t[a],l=s.type,c=s.capture,u=s.once,h=s.passive;if(e===s.node&&n===l&&r===c&&o===u&&i===h)return a}return-1}function gn(t){return xe(),!re.aa&&this instanceof Node&&!pe(document,this)?(t.__target||Nn(t,this),vn(t)):this.__shady_native_dispatchEvent(t)}function bn(t,e,n){var r=sn(n),o=r.capture,i=r.once,a=r.passive,s=r.Ga;if(r=r.Fa,e){var l=typeof e;if(("function"===l||"object"===l)&&("object"!==l||e.handleEvent&&"function"==typeof e.handleEvent)){if(cn[t])return this.__shady_native_addEventListener(t,e,r);var c=s||this;if(s=e[rn]){if(-1<yn(s,c,t,o,i,a))return}else e[rn]=[];s=function(r){if(i&&this.__shady_removeEventListener(t,e,n),r.__target||Nn(r),c!==this){var a=Object.getOwnPropertyDescriptor(r,"currentTarget");Object.defineProperty(r,"currentTarget",{get:function(){return c},configurable:!0});var s=Object.getOwnPropertyDescriptor(r,"eventPhase");Object.defineProperty(r,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return o?Event.CAPTURING_PHASE:Event.BUBBLING_PHASE}})}if(r.__previousCurrentTarget=r.currentTarget,(!ae(c)&&"slot"!==c.localName||-1!=r.composedPath().indexOf(c))&&(r.composed||-1<r.composedPath().indexOf(c)))if(_n(r)&&r.target===r.relatedTarget)r.eventPhase===Event.BUBBLING_PHASE&&r.stopImmediatePropagation();else if(r.eventPhase===Event.CAPTURING_PHASE||r.bubbles||r.target===c||c instanceof Window){var u="function"===l?e.call(c,r):e.handleEvent&&e.handleEvent(r);return c!==this&&(a?(Object.defineProperty(r,"currentTarget",a),a=null):delete r.currentTarget,s?(Object.defineProperty(r,"eventPhase",s),s=null):delete r.eventPhase),u}},e[rn].push({node:c,type:t,capture:o,once:i,passive:a,lb:s}),this.__handlers=this.__handlers||{},this.__handlers[t]=this.__handlers[t]||{capture:[],bubble:[]},this.__handlers[t][o?"capture":"bubble"].push(s),pn[t]||this.__shady_native_addEventListener(t,s,r)}}}function En(t,e,n){if(e){var r=sn(n);n=r.capture;var o=r.once,i=r.passive,a=r.Ga;if(r=r.Fa,cn[t])return this.__shady_native_removeEventListener(t,e,r);var s=a||this;a=void 0;var l=null;try{l=e[rn]}catch(t){}l&&(-1<(o=yn(l,s,t,n,o,i))&&(a=l.splice(o,1)[0].lb,l.length||(e[rn]=void 0))),this.__shady_native_removeEventListener(t,a||e,r),a&&this.__handlers&&this.__handlers[t]&&(-1<(e=(t=this.__handlers[t][n?"capture":"bubble"]).indexOf(a))&&t.splice(e,1))}}var wn=we({get composed(){return void 0===this.__composed&&(on?this.__composed="focusin"===this.type||"focusout"===this.type||on(this):!1!==this.isTrusted&&(this.__composed=ln[this.type])),this.__composed||!1},composedPath:function(){return this.__composedPath||(this.__composedPath=hn(this.__target,this.composed)),this.__composedPath},get target(){return dn(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){return this.__relatedTarget?(this.__relatedTargetComposedPath||(this.__relatedTargetComposedPath=hn(this.__relatedTarget,!0)),dn(this.currentTarget||this.__previousCurrentTarget,this.__relatedTargetComposedPath)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.ma=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.ma=this.__immediatePropagationStopped=!0}});function Nn(t,e){if(e=void 0===e?t.target:e,t.__target=e,t.__relatedTarget=t.relatedTarget,re.B){if(!(e=Object.getPrototypeOf(t)).hasOwnProperty("__shady_patchedProto")){var n=Object.create(e);n.__shady_sourceProto=e,be(n,wn),e.__shady_patchedProto=n}t.__proto__=e.__shady_patchedProto}else be(t,wn)}var Cn=fn(Event),Sn=fn(CustomEvent),Tn=fn(MouseEvent);var On=Object.getOwnPropertyNames(Element.prototype).filter(function(t){return"on"===t.substring(0,2)}),Dn=Object.getOwnPropertyNames(HTMLElement.prototype).filter(function(t){return"on"===t.substring(0,2)});function xn(t){return{set:function(e){var n=ee(this),r=t.substring(2);n.N||(n.N={}),n.N[t]&&this.removeEventListener(r,n.N[t]),this.__shady_addEventListener(r,e),n.N[t]=e},get:function(){var e=ne(this);return e&&e.N&&e.N[t]},configurable:!0}}function Mn(t,e){return{index:t,ba:[],ia:e}}function Pn(t,e,n,r){var o=0,i=0,a=0,s=0,l=Math.min(e-o,r-i);if(0==o&&0==i)t:{for(a=0;a<l;a++)if(t[a]!==n[a])break t;a=l}if(e==t.length&&r==n.length){s=t.length;for(var c=n.length,u=0;u<l-a&&Ln(t[--s],n[--c]);)u++;s=u}if(i+=a,r-=s,0==(e-=s)-(o+=a)&&0==r-i)return[];if(o==e){for(e=Mn(o,0);i<r;)e.ba.push(n[i++]);return[e]}if(i==r)return[Mn(o,e-o)];for(r=r-(a=i)+1,s=e-(l=o)+1,e=Array(r),c=0;c<r;c++)e[c]=Array(s),e[c][0]=c;for(c=0;c<s;c++)e[0][c]=c;for(c=1;c<r;c++)for(u=1;u<s;u++)if(t[l+u-1]===n[a+c-1])e[c][u]=e[c-1][u-1];else{var h=e[c-1][u]+1,d=e[c][u-1]+1;e[c][u]=h<d?h:d}for(l=e.length-1,a=e[0].length-1,r=e[l][a],t=[];0<l||0<a;)0==l?(t.push(2),a--):0==a?(t.push(3),l--):(s=e[l-1][a-1],(h=(c=e[l-1][a])<(u=e[l][a-1])?c<s?c:s:u<s?u:s)==s?(s==r?t.push(0):(t.push(1),r=s),l--,a--):h==c?(t.push(3),l--,r=c):(t.push(2),a--,r=u));for(t.reverse(),e=void 0,l=[],a=0;a<t.length;a++)switch(t[a]){case 0:e&&(l.push(e),e=void 0),o++,i++;break;case 1:e||(e=Mn(o,0)),e.ia++,o++,e.ba.push(n[i]),i++;break;case 2:e||(e=Mn(o,0)),e.ia++,o++;break;case 3:e||(e=Mn(o,0)),e.ba.push(n[i]),i++}return e&&l.push(e),l}function Ln(t,e){return t===e}var An=we({dispatchEvent:gn,addEventListener:bn,removeEventListener:En}),jn=null;function kn(){return jn||(jn=window.ShadyCSS&&window.ShadyCSS.ScopingShim),jn||null}function Rn(t,e,n){var r=kn();return!(!r||"class"!==e)&&(r.setElementClass(t,n),!0)}function Fn(t,e){var n=kn();n&&n.unscopeNode(t,e)}function Hn(t){if(t.nodeType!==Node.ELEMENT_NODE)return"";var e=kn();return e?e.currentScopeForNode(t):""}function In(t,e){if(t)for(t.nodeType===Node.ELEMENT_NODE&&e(t),t=t.__shady_firstChild;t;t=t.__shady_nextSibling)t.nodeType===Node.ELEMENT_NODE&&In(t,e)}var Bn=window.document,Un=re.aa,qn=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),Wn=qn&&qn.get;function Vn(t){for(var e;e=t.__shady_firstChild;)t.__shady_removeChild(e)}function Gn(t,e,n){if(t=(t=ne(t))&&t.Z){if(e)if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(var r=0,o=e.childNodes.length;r<o;r++)t.addedNodes.push(e.childNodes[r]);else t.addedNodes.push(e);n&&t.removedNodes.push(n),function(t){t.a||(t.a=!0,fe(function(){t.flush()}))}(t)}}var Kn=we({get parentNode(){var t=ne(this);return void 0!==(t=t&&t.parentNode)?t:this.__shady_native_parentNode},get firstChild(){var t=ne(this);return void 0!==(t=t&&t.firstChild)?t:this.__shady_native_firstChild},get lastChild(){var t=ne(this);return void 0!==(t=t&&t.lastChild)?t:this.__shady_native_lastChild},get nextSibling(){var t=ne(this);return void 0!==(t=t&&t.nextSibling)?t:this.__shady_native_nextSibling},get previousSibling(){var t=ne(this);return void 0!==(t=t&&t.previousSibling)?t:this.__shady_native_previousSibling},get childNodes(){if(ie(this)){var t=ne(this);if(!t.childNodes){t.childNodes=[];for(var e=this.__shady_firstChild;e;e=e.__shady_nextSibling)t.childNodes.push(e)}var n=t.childNodes}else n=this.__shady_native_childNodes;return n.item=function(t){return n[t]},n},get parentElement(){var t=ne(this);return(t=t&&t.parentNode)&&t.nodeType!==Node.ELEMENT_NODE&&(t=null),void 0!==t?t:this.__shady_native_parentElement},get isConnected(){if(Wn&&Wn.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;var t=this.ownerDocument;if(null===t||pe(t,this))return!0;for(t=this;t&&!(t instanceof Document);)t=t.__shady_parentNode||(ae(t)?t.host:void 0);return!!(t&&t instanceof Document)},get textContent(){if(ie(this)){for(var t=[],e=this.__shady_firstChild;e;e=e.__shady_nextSibling)e.nodeType!==Node.COMMENT_NODE&&t.push(e.__shady_textContent);return t.join("")}return this.__shady_native_textContent},set textContent(t){switch(void 0!==t&&null!==t||(t=""),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:if(!ie(this)&&re.B){var e=this.__shady_firstChild;(e!=this.__shady_lastChild||e&&e.nodeType!=Node.TEXT_NODE)&&Vn(this),this.__shady_native_textContent=t}else Vn(this),(0<t.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_insertBefore(document.createTextNode(t));break;default:this.nodeValue=t}},insertBefore:function(t,e){if(this.ownerDocument!==Bn&&t.ownerDocument!==Bn)return this.__shady_native_insertBefore(t,e),t;if(t===this)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");if(e){var n=ne(e);if(void 0!==(n=n&&n.parentNode)&&n!==this||void 0===n&&e.__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(e===t)return t;Gn(this,t);var r=[],o=(n=Gr(this))?n.host.localName:Hn(this),i=t.__shady_parentNode;if(i){var a=Hn(t),s=!!n||!Gr(t)||Un&&void 0!==this.__noInsertionPoint;i.__shady_removeChild(t,s)}i=!0;var l=(!Un||void 0===t.__noInsertionPoint&&void 0===this.__noInsertionPoint)&&!function t(e,n){var r=kn();if(!r)return!0;if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(r=!0,e=e.__shady_firstChild;e;e=e.__shady_nextSibling)r=r&&t(e,n);return r}return e.nodeType!==Node.ELEMENT_NODE||r.currentScopeForNode(e)===n}(t,o),c=n&&!t.__noInsertionPoint&&(!Un||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE);return(c||l)&&(l&&(a=a||Hn(t)),In(t,function(t){if(c&&"slot"===t.localName&&r.push(t),l){var e=a;kn()&&(e&&Fn(t,e),(e=kn())&&e.scopeNode(t,o))}})),r.length&&(Fr(n),n.c.push.apply(n.c,u(r)),Lr(n)),ie(this)&&(function(t,e,n){Er(e,2);var r=ee(e);if(void 0!==r.firstChild&&(r.childNodes=null),t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(t=t.__shady_native_firstChild;t;t=t.__shady_native_nextSibling)wr(t,e,r,n);else wr(t,e,r,n)}(t,this,e),(s=ne(this)).root?(i=!1,se(this)&&Lr(s.root)):n&&"slot"===this.localName&&(i=!1,Lr(n))),i?(n=ae(this)?this.host:this,e?(e=function t(e){var n=e;if(e&&"slot"===e.localName){var r=ne(e);(r=r&&r.V)&&(n=r.length?r[0]:t(e.__shady_nextSibling))}return n}(e),n.__shady_native_insertBefore(t,e)):n.__shady_native_appendChild(t)):t.ownerDocument!==this.ownerDocument&&this.ownerDocument.adoptNode(t),t},appendChild:function(t){if(this!=t||!ae(t))return this.__shady_insertBefore(t)},removeChild:function(t,e){if(e=void 0!==e&&e,this.ownerDocument!==Bn)return this.__shady_native_removeChild(t);if(t.__shady_parentNode!==this)throw Error("The node to be removed is not a child of this node: "+t);Gn(this,null,t);var n=Gr(t),r=n&&function(t,e){if(t.a){Hr(t);var n,r=t.b;for(n in r)for(var o=r[n],i=0;i<o.length;i++){var a=o[i];if(_e(e,a)){o.splice(i,1);var s=t.a.indexOf(a);if(0<=s&&(t.a.splice(s,1),(s=ne(a.__shady_parentNode))&&s.da&&s.da--),i--,a=ne(a),s=a.V)for(var l=0;l<s.length;l++){var c=s[l],u=c.__shady_native_parentNode;u&&u.__shady_native_removeChild(c)}a.V=[],a.assignedNodes=[],s=!0}}return s}}(n,t),o=ne(this);if(ie(this)&&(function(t,e){var n=ee(t);e=ee(e),t===e.firstChild&&(e.firstChild=n.nextSibling),t===e.lastChild&&(e.lastChild=n.previousSibling),t=n.previousSibling;var r=n.nextSibling;t&&(ee(t).nextSibling=r),r&&(ee(r).previousSibling=t),n.parentNode=n.previousSibling=n.nextSibling=void 0,void 0!==e.childNodes&&(e.childNodes=null)}(t,this),se(this))){Lr(o.root);var i=!0}if(kn()&&!e&&n&&t.nodeType!==Node.TEXT_NODE){var a=Hn(t);In(t,function(t){Fn(t,a)})}return function t(e){var n=ne(e);if(n&&void 0!==n.la)for(n=e.__shady_firstChild;n;n=n.__shady_nextSibling)t(n);(e=ne(e))&&(e.la=void 0)}(t),n&&((e="slot"===this.localName)&&(i=!0),(r||e)&&Lr(n)),i||(i=ae(this)?this.host:this,(!o.root&&"slot"!==t.localName||i===t.__shady_native_parentNode)&&i.__shady_native_removeChild(t)),t},replaceChild:function(t,e){return this.__shady_insertBefore(t,e),this.__shady_removeChild(e),t},cloneNode:function(t){if("template"==this.localName)return this.__shady_native_cloneNode(t);var e=this.__shady_native_cloneNode(!1);if(t&&e.nodeType!==Node.ATTRIBUTE_NODE){t=this.__shady_firstChild;for(var n;t;t=t.__shady_nextSibling)n=t.__shady_cloneNode(!0),e.__shady_appendChild(n)}return e},getRootNode:function(t){if(this&&this.nodeType){var e=ee(this),n=e.la;return void 0===n&&(ae(this)?(n=this,e.la=n):(n=(n=this.__shady_parentNode)?n.__shady_getRootNode(t):this,document.documentElement.__shady_native_contains(this)&&(e.la=n))),n}},contains:function(t){return _e(this,t)}}),Xn=we({get assignedSlot(){var t=this.__shady_parentNode;return(t=t&&t.__shady_shadowRoot)&&Ar(t),(t=ne(this))&&t.assignedSlot||null}});function zn(t,e,n){var r=[];return function t(e,n,r,o){for(e=e.__shady_firstChild;e;e=e.__shady_nextSibling){var i;if(i=e.nodeType===Node.ELEMENT_NODE){var a=n,s=r,l=o,c=a(i=e);c&&l.push(i),s&&s(c)?i=c:(t(i,a,s,l),i=void 0)}if(i)break}}(t,e,n,r),r}var Jn={get firstElementChild(){var t=ne(this);if(t&&void 0!==t.firstChild){for(t=this.__shady_firstChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.__shady_nextSibling;return t}return this.__shady_native_firstElementChild},get lastElementChild(){var t=ne(this);if(t&&void 0!==t.lastChild){for(t=this.__shady_lastChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.__shady_previousSibling;return t}return this.__shady_native_lastElementChild},get children(){return ie(this)?me(Array.prototype.filter.call(ye(this),function(t){return t.nodeType===Node.ELEMENT_NODE})):this.__shady_native_children},get childElementCount(){var t=this.__shady_children;return t?t.length:0}},$n=we((Jn.append=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];this.__shady_insertBefore(Se.apply(null,u(e)),null)},Jn.prepend=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];this.__shady_insertBefore(Se.apply(null,u(e)),this.__shady_firstChild)},Jn.replaceChildren=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];for(;null!==(n=this.__shady_firstChild);)this.__shady_removeChild(n);this.__shady_insertBefore(Se.apply(null,u(e)),null)},Jn)),Yn=we({querySelector:function(t){return zn(this,function(e){return ce.call(e,t)},function(t){return!!t})[0]||null},querySelectorAll:function(t,e){if(e){e=Array.prototype.slice.call(this.__shady_native_querySelectorAll(t));var n=this.__shady_getRootNode();return me(e.filter(function(t){return t.__shady_getRootNode()==n}))}return me(zn(this,function(e){return ce.call(e,t)}))}}),Zn=re.aa&&!re.D?Ne({},$n):$n;Ne($n,Yn);var Qn=we({after:function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];if(null!==(n=this.__shady_parentNode)){var r=this.__shady_nextSibling;n.__shady_insertBefore(Se.apply(null,u(e)),r)}},before:function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];null!==(n=this.__shady_parentNode)&&n.__shady_insertBefore(Se.apply(null,u(e)),this)},remove:function(){var t=this.__shady_parentNode;null!==t&&t.__shady_removeChild(this)},replaceWith:function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];if(null!==(n=this.__shady_parentNode)){var r=this.__shady_nextSibling;n.__shady_removeChild(this),n.__shady_insertBefore(Se.apply(null,u(e)),r)}}}),tr=window.document;function er(t,e){if("slot"===e)se(t=t.__shady_parentNode)&&Lr(ne(t).root);else if("slot"===t.localName&&"name"===e&&(e=Gr(t))){if(e.a){Hr(e);var n=t.La,r=Ir(t);if(r!==n){var o=(n=e.b[n]).indexOf(t);0<=o&&n.splice(o,1),(n=e.b[r]||(e.b[r]=[])).push(t),1<n.length&&(e.b[r]=Br(n))}}Lr(e)}}var nr=we({get previousElementSibling(){var t=ne(this);if(t&&void 0!==t.previousSibling){for(t=this.__shady_previousSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.__shady_previousSibling;return t}return this.__shady_native_previousElementSibling},get nextElementSibling(){var t=ne(this);if(t&&void 0!==t.nextSibling){for(t=this.__shady_nextSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.__shady_nextSibling;return t}return this.__shady_native_nextElementSibling},get slot(){return this.getAttribute("slot")},set slot(t){this.__shady_setAttribute("slot",t)},get className(){return this.getAttribute("class")||""},set className(t){this.__shady_setAttribute("class",t)},setAttribute:function(t,e){this.ownerDocument!==tr?this.__shady_native_setAttribute(t,e):Rn(this,t,e)||(this.__shady_native_setAttribute(t,e),er(this,t))},removeAttribute:function(t){this.ownerDocument!==tr?this.__shady_native_removeAttribute(t):Rn(this,t,"")?""===this.getAttribute(t)&&this.__shady_native_removeAttribute(t):(this.__shady_native_removeAttribute(t),er(this,t))}});re.aa||On.forEach(function(t){nr[t]=xn(t)});var rr=we({attachShadow:function(t){if(!this)throw Error("Must provide a host.");if(!t)throw Error("Not enough arguments.");if(t.shadyUpgradeFragment&&!re.Ia){var e=t.shadyUpgradeFragment;if(e.__proto__=ShadowRoot.prototype,Pr(e,this,t),Nr(e,e),t=e.__noInsertionPoint?null:e.querySelectorAll("slot"),e.__noInsertionPoint=void 0,t&&t.length){var n=e;Fr(n),n.c.push.apply(n.c,u(t)),Lr(e)}e.host.__shady_native_appendChild(e)}else e=new Mr(Or,this,t);return this.__CE_shadowRoot=e},get shadowRoot(){var t=ne(this);return t&&t.bb||null}});Ne(nr,rr);var or=document.implementation.createHTMLDocument("inert"),ir=we({get innerHTML(){return ie(this)?Fe("template"===this.localName?this.content:this,ye):this.__shady_native_innerHTML},set innerHTML(t){if("template"===this.localName)this.__shady_native_innerHTML=t;else{Vn(this);var e=this.localName||"div";for(e=this.namespaceURI&&this.namespaceURI!==or.namespaceURI?or.createElementNS(this.namespaceURI,e):or.createElement(e),re.B?e.__shady_native_innerHTML=t:e.innerHTML=t;t=e.__shady_firstChild;)this.__shady_insertBefore(t)}}}),ar=we({blur:function(){var t=ne(this);(t=(t=t&&t.root)&&t.activeElement)?t.__shady_blur():this.__shady_native_blur()}});re.aa||Dn.forEach(function(t){ar[t]=xn(t)});var sr=we({assignedNodes:function(t){if("slot"===this.localName){var e=this.__shady_getRootNode();return e&&ae(e)&&Ar(e),(e=ne(this))&&(t&&t.flatten?e.V:e.assignedNodes)||[]}},addEventListener:function(t,e,n){if("slot"!==this.localName||"slotchange"===t)bn.call(this,t,e,n);else{"object"!=typeof n&&(n={capture:!!n});var r=this.__shady_parentNode;if(!r)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");n.O=this,r.__shady_addEventListener(t,e,n)}},removeEventListener:function(t,e,n){if("slot"!==this.localName||"slotchange"===t)En.call(this,t,e,n);else{"object"!=typeof n&&(n={capture:!!n});var r=this.__shady_parentNode;if(!r)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");n.O=this,r.__shady_removeEventListener(t,e,n)}}}),lr=we({getElementById:function(t){return""===t?null:zn(this,function(e){return e.id==t},function(t){return!!t})[0]||null}}),cr=we({get activeElement(){var t=re.B?document.__shady_native_activeElement:document.activeElement;if(!t||!t.nodeType)return null;var e=!!ae(this);if(!(this===document||e&&this.host!==t&&this.host.__shady_native_contains(t)))return null;for(e=Gr(t);e&&e!==this;)e=Gr(t=e.host);return this===document?e?null:t:e===this?t:null}}),ur=window.document,hr=we({importNode:function(t,e){if(t.ownerDocument!==ur||"template"===t.localName)return this.__shady_native_importNode(t,e);var n=this.__shady_native_importNode(t,!1);if(e)for(t=t.__shady_firstChild;t;t=t.__shady_nextSibling)e=this.__shady_importNode(t,!0),n.__shady_appendChild(e);return n}}),dr=we({dispatchEvent:gn,addEventListener:bn.bind(window),removeEventListener:En.bind(window)}),fr={};Object.getOwnPropertyDescriptor(HTMLElement.prototype,"parentElement")&&(fr.parentElement=Kn.parentElement),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"contains")&&(fr.contains=Kn.contains),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"children")&&(fr.children=$n.children),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML")&&(fr.innerHTML=ir.innerHTML),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"className")&&(fr.className=nr.className);var pr={EventTarget:[An],Node:[Kn,window.EventTarget?null:An],Text:[Xn],Comment:[Xn],CDATASection:[Xn],ProcessingInstruction:[Xn],Element:[nr,$n,Qn,Xn,!re.B||"innerHTML"in Element.prototype?ir:null,window.HTMLSlotElement?null:sr],HTMLElement:[ar,fr],HTMLSlotElement:[sr],DocumentFragment:[Zn,lr],Document:[hr,Zn,lr,cr],Window:[dr],CharacterData:[Qn]},_r=re.B?null:["innerHTML","textContent"];function mr(t,e,n,r){e.forEach(function(e){return t&&e&&be(t,e,n,r)})}function vr(t){var e,n=t?null:_r;for(e in pr)mr(window[e]&&window[e].prototype,pr[e],t,n)}function yr(t){return t.__shady_protoIsPatched=!0,mr(t,pr.EventTarget),mr(t,pr.Node),mr(t,pr.Element),mr(t,pr.HTMLElement),mr(t,pr.HTMLSlotElement),t}["Text","Comment","CDATASection","ProcessingInstruction"].forEach(function(t){var e=window[t],n=Object.create(e.prototype);n.__shady_protoIsPatched=!0,mr(n,pr.EventTarget),mr(n,pr.Node),pr[t]&&mr(n,pr[t]),e.prototype.__shady_patchedProto=n});var gr=re.ua,br=re.B;function Er(t,e){if(gr&&!t.__shady_protoIsPatched&&!ae(t)){var n=Object.getPrototypeOf(t),r=n.hasOwnProperty("__shady_patchedProto")&&n.__shady_patchedProto;r||(yr(r=Object.create(n)),n.__shady_patchedProto=r),Object.setPrototypeOf(t,r)}br||(1===e?en(t):2===e&&nn(t))}function wr(t,e,n,r){Er(t,1),r=r||null;var o=ee(t),i=r?ee(r):null;o.previousSibling=r?i.previousSibling:e.__shady_lastChild,(i=ne(o.previousSibling))&&(i.nextSibling=t),(i=ne(o.nextSibling=r))&&(i.previousSibling=t),o.parentNode=e,r?r===n.firstChild&&(n.firstChild=t):(n.lastChild=t,n.firstChild||(n.firstChild=t)),n.childNodes=null}function Nr(t,e){var n=ee(t);if(e||void 0===n.firstChild){n.childNodes=null;var r=n.firstChild=t.__shady_native_firstChild;for(n.lastChild=t.__shady_native_lastChild,Er(t,2),n=r,r=void 0;n;n=n.__shady_native_nextSibling){var o=ee(n);o.parentNode=e||t,o.nextSibling=n.__shady_native_nextSibling,o.previousSibling=r||null,r=n,Er(n,1)}}}var Cr=we({addEventListener:function(t,e,n){"object"!=typeof n&&(n={capture:!!n}),n.O=n.O||this,this.host.__shady_addEventListener(t,e,n)},removeEventListener:function(t,e,n){"object"!=typeof n&&(n={capture:!!n}),n.O=n.O||this,this.host.__shady_removeEventListener(t,e,n)}});function Sr(t,e){be(t,Cr,e),be(t,cr,e),be(t,ir,e),be(t,$n,e),re.D&&!e?(be(t,Kn,e),be(t,lr,e)):re.B||(be(t,Ze),be(t,$e),be(t,Ye))}var Tr,Or={},Dr=re.deferConnectionCallbacks&&"loading"===document.readyState;function xr(t){var e=[];do{e.unshift(t)}while(t=t.__shady_parentNode);return e}function Mr(t,e,n){if(t!==Or)throw new TypeError("Illegal constructor");this.a=null,Pr(this,e,n)}function Pr(t,e,n){if(t.host=e,t.mode=n&&n.mode,Nr(t.host),(e=ee(t.host)).root=t,e.bb="closed"!==t.mode?t:null,(e=ee(t)).firstChild=e.lastChild=e.parentNode=e.nextSibling=e.previousSibling=null,re.preferPerformance)for(;e=t.host.__shady_native_firstChild;)t.host.__shady_native_removeChild(e);else Lr(t)}function Lr(t){t.T||(t.T=!0,De(function(){return Ar(t)}))}function Ar(t){var e;if(e=t.T){for(var n;t;)t.T&&(n=t),ae(t=(e=t).host.__shady_getRootNode())&&(e=ne(e.host))&&0<e.da||(t=void 0);e=n}(n=e)&&n._renderSelf()}function jr(t,e,n){var r=ee(e),o=r.oa;r.oa=null,n||(n=(t=t.b[e.__shady_slot||"__catchall"])&&t[0]),n?(ee(n).assignedNodes.push(e),r.assignedSlot=n):r.assignedSlot=void 0,o!==r.assignedSlot&&r.assignedSlot&&(ee(r.assignedSlot).ra=!0)}function kr(t,e,n){for(var r=0,o=void 0;r<n.length&&(o=n[r]);r++)if("slot"==o.localName){var i=ne(o).assignedNodes;i&&i.length&&kr(t,e,i)}else e.push(n[r])}function Rr(t,e){e.__shady_native_dispatchEvent(new Event("slotchange")),(e=ne(e)).assignedSlot&&Rr(t,e.assignedSlot)}function Fr(t){t.c=t.c||[],t.a=t.a||[],t.b=t.b||{}}function Hr(t){if(t.c&&t.c.length){for(var e,n=t.c,r=0;r<n.length;r++){var o=n[r];Nr(o);var i=o.__shady_parentNode;Nr(i),(i=ne(i)).da=(i.da||0)+1,i=Ir(o),t.b[i]?((e=e||{})[i]=!0,t.b[i].push(o)):t.b[i]=[o],t.a.push(o)}if(e)for(var a in e)t.b[a]=Br(t.b[a]);t.c=[]}}function Ir(t){var e=t.name||t.getAttribute("name")||"__catchall";return t.La=e}function Br(t){return t.sort(function(t,e){t=xr(t);for(var n=xr(e),r=0;r<t.length;r++){e=t[r];var o=n[r];if(e!==o)return(t=ye(e.__shady_parentNode)).indexOf(e)-t.indexOf(o)}})}function Ur(t){return Hr(t),!(!t.a||!t.a.length)}if(Mr.prototype._renderSelf=function(){var t=Dr;if(Dr=!0,this.T=!1,this.a){Hr(this);for(var e,n=0;n<this.a.length;n++){var r=ne(e=this.a[n]),o=r.assignedNodes;if(r.assignedNodes=[],r.V=[],r.Ba=o)for(r=0;r<o.length;r++){var i=ne(o[r]);i.oa=i.assignedSlot,i.assignedSlot===e&&(i.assignedSlot=null)}}for(n=this.host.__shady_firstChild;n;n=n.__shady_nextSibling)jr(this,n);for(n=0;n<this.a.length;n++){if(!(o=ne(e=this.a[n])).assignedNodes.length)for(r=e.__shady_firstChild;r;r=r.__shady_nextSibling)jr(this,r,e);if((r=(r=ne(e.__shady_parentNode))&&r.root)&&(Ur(r)||r.T)&&r._renderSelf(),kr(this,o.V,o.assignedNodes),r=o.Ba){for(i=0;i<r.length;i++)ne(r[i]).oa=null;o.Ba=null,r.length>o.assignedNodes.length&&(o.ra=!0)}o.ra&&(o.ra=!1,Rr(this,e))}for(e=this.a,n=[],o=0;o<e.length;o++)(i=ne(r=e[o].__shady_parentNode))&&i.root||!(0>n.indexOf(r))||n.push(r);for(e=0;e<n.length;e++){for(o=(i=n[e])===this?this.host:i,r=[],i=i.__shady_firstChild;i;i=i.__shady_nextSibling)if("slot"==i.localName)for(var a=ne(i).V,s=0;s<a.length;s++)r.push(a[s]);else r.push(i);i=ve(o),a=Pn(r,r.length,i,i.length);for(var l=s=0,c=void 0;s<a.length&&(c=a[s]);s++){for(var u=0,h=void 0;u<c.ba.length&&(h=c.ba[u]);u++)h.__shady_native_parentNode===o&&o.__shady_native_removeChild(h),i.splice(c.index+l,1);l-=c.ia}for(l=0,c=void 0;l<a.length&&(c=a[l]);l++)for(s=i[c.index],u=c.index;u<c.index+c.ia;u++)h=r[u],o.__shady_native_insertBefore(h,s),i.splice(u,0,h)}}if(!re.preferPerformance&&!this.Aa)for(n=this.host.__shady_firstChild;n;n=n.__shady_nextSibling)e=ne(n),n.__shady_native_parentNode!==this.host||"slot"!==n.localName&&e.assignedSlot||this.host.__shady_native_removeChild(n);this.Aa=!0,Dr=t,Tr&&Tr()},function(t){t.__proto__=DocumentFragment.prototype,Sr(t,"__shady_"),Sr(t),Object.defineProperties(t,{nodeType:{value:Node.DOCUMENT_FRAGMENT_NODE,configurable:!0},nodeName:{value:"#document-fragment",configurable:!0},nodeValue:{value:null,configurable:!0}}),["localName","namespaceURI","prefix"].forEach(function(e){Object.defineProperty(t,e,{value:void 0,configurable:!0})}),["ownerDocument","baseURI","isConnected"].forEach(function(e){Object.defineProperty(t,e,{get:function(){return this.host[e]},configurable:!0})})}(Mr.prototype),window.customElements&&window.customElements.define&&re.sa&&!re.preferPerformance){var qr=new Map;Tr=function(){var t=[];qr.forEach(function(e,n){t.push([n,e])}),qr.clear();for(var e=0;e<t.length;e++){var n=t[e][0];t[e][1]?n.__shadydom_connectedCallback():n.__shadydom_disconnectedCallback()}},Dr&&document.addEventListener("readystatechange",function(){Dr=!1,Tr()},{once:!0});var Wr=window.customElements.define,Vr=function(t,e){var n=e.prototype.connectedCallback,r=e.prototype.disconnectedCallback;Wr.call(window.customElements,t,function(t,e,n){var r=0,o="__isConnected"+r++;return(e||n)&&(t.prototype.connectedCallback=t.prototype.__shadydom_connectedCallback=function(){Dr?qr.set(this,!0):this[o]||(this[o]=!0,e&&e.call(this))},t.prototype.disconnectedCallback=t.prototype.__shadydom_disconnectedCallback=function(){Dr?this.isConnected||qr.set(this,!1):this[o]&&(this[o]=!1,n&&n.call(this))}),t}(e,n,r)),e.prototype.connectedCallback=n,e.prototype.disconnectedCallback=r};window.customElements.define=Vr,Object.defineProperty(window.CustomElementRegistry.prototype,"define",{value:Vr,configurable:!0})}function Gr(t){if(ae(t=t.__shady_getRootNode()))return t}function Kr(t){this.node=t}function Xr(t){Object.defineProperty(Kr.prototype,t,{get:function(){return this.node["__shady_"+t]},set:function(e){this.node["__shady_"+t]=e},configurable:!0})}(t=Kr.prototype).addEventListener=function(t,e,n){return this.node.__shady_addEventListener(t,e,n)},t.removeEventListener=function(t,e,n){return this.node.__shady_removeEventListener(t,e,n)},t.appendChild=function(t){return this.node.__shady_appendChild(t)},t.insertBefore=function(t,e){return this.node.__shady_insertBefore(t,e)},t.removeChild=function(t){return this.node.__shady_removeChild(t)},t.replaceChild=function(t,e){return this.node.__shady_replaceChild(t,e)},t.cloneNode=function(t){return this.node.__shady_cloneNode(t)},t.getRootNode=function(t){return this.node.__shady_getRootNode(t)},t.contains=function(t){return this.node.__shady_contains(t)},t.dispatchEvent=function(t){return this.node.__shady_dispatchEvent(t)},t.setAttribute=function(t,e){this.node.__shady_setAttribute(t,e)},t.getAttribute=function(t){return this.node.__shady_native_getAttribute(t)},t.hasAttribute=function(t){return this.node.__shady_native_hasAttribute(t)},t.removeAttribute=function(t){this.node.__shady_removeAttribute(t)},t.attachShadow=function(t){return this.node.__shady_attachShadow(t)},t.focus=function(){this.node.__shady_native_focus()},t.blur=function(){this.node.__shady_blur()},t.importNode=function(t,e){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_importNode(t,e)},t.getElementById=function(t){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_getElementById(t)},t.querySelector=function(t){return this.node.__shady_querySelector(t)},t.querySelectorAll=function(t,e){return this.node.__shady_querySelectorAll(t,e)},t.assignedNodes=function(t){if("slot"===this.node.localName)return this.node.__shady_assignedNodes(t)},t.append=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];return this.node.__shady_append.apply(this.node,u(e))},t.prepend=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];return this.node.__shady_prepend.apply(this.node,u(e))},t.after=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];return this.node.__shady_after.apply(this.node,u(e))},t.before=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];return this.node.__shady_before.apply(this.node,u(e))},t.remove=function(){return this.node.__shady_remove()},t.replaceWith=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];return this.node.__shady_replaceWith.apply(this.node,u(e))},r.Object.defineProperties(Kr.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){if(ae(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(ae(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(t){this.node.__shady_innerHTML=t}},textContent:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_textContent},set:function(t){this.node.__shady_textContent=t}},slot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_slot},set:function(t){this.node.__shady_slot=t}},className:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_className},set:function(t){return this.node.__shady_className=t}}}),On.forEach(function(t){return Xr(t)}),Dn.forEach(function(t){return Xr(t)});var zr=new WeakMap;function Jr(t){if(ae(t)||t instanceof Kr)return t;var e=zr.get(t);return e||(e=new Kr(t),zr.set(t,e)),e}if(re.sa){var $r=re.B?function(t){return t}:function(t){return nn(t),en(t),t},Yr={inUse:re.sa,patch:$r,isShadyRoot:ae,enqueue:De,flush:xe,flushInitial:function(t){!t.Aa&&t.T&&Ar(t)},settings:re,filterMutations:function(t,e){var n=e.getRootNode();return t.map(function(t){var e=n===t.target.getRootNode();if(e&&t.addedNodes){if((e=[].slice.call(t.addedNodes).filter(function(t){return n===t.getRootNode()})).length)return t=Object.create(t),Object.defineProperty(t,"addedNodes",{value:e,configurable:!0}),t}else if(e)return t}).filter(function(t){return t})},observeChildren:function(t,e){var n=ee(t);n.Z||(n.Z=new Me),n.Z.ja.add(e);var r=n.Z;return{Ma:e,S:r,Na:t,takeRecords:function(){return r.takeRecords()}}},unobserveChildren:function(t){var e=t&&t.S;e&&(e.ja.delete(t.Ma),e.ja.size||(ee(t.Na).Z=null))},deferConnectionCallbacks:re.deferConnectionCallbacks,preferPerformance:re.preferPerformance,handlesDynamicScoping:!0,wrap:re.D?Jr:$r,wrapIfNeeded:!0===re.D?Jr:function(t){return t},Wrapper:Kr,composedPath:function(t){return t.__composedPath||(t.__composedPath=hn(t.target,!0)),t.__composedPath},noPatch:re.D,patchOnDemand:re.ua,nativeMethods:Ie,nativeTree:Be,patchElementProto:yr};window.ShadyDOM=Yr,function(){var t=["dispatchEvent","addEventListener","removeEventListener"];window.EventTarget?We(window.EventTarget.prototype,t):(We(Node.prototype,t),We(Window.prototype,t)),He?We(Node.prototype,"parentNode firstChild lastChild previousSibling nextSibling childNodes parentElement textContent".split(" ")):qe(Node.prototype,{parentNode:{get:function(){return Ve.currentNode=this,Ve.parentNode()}},firstChild:{get:function(){return Ve.currentNode=this,Ve.firstChild()}},lastChild:{get:function(){return Ve.currentNode=this,Ve.lastChild()}},previousSibling:{get:function(){return Ve.currentNode=this,Ve.previousSibling()}},nextSibling:{get:function(){return Ve.currentNode=this,Ve.nextSibling()}},childNodes:{get:function(){var t=[];Ve.currentNode=this;for(var e=Ve.firstChild();e;)t.push(e),e=Ve.nextSibling();return t}},parentElement:{get:function(){return Ge.currentNode=this,Ge.parentNode()}},textContent:{get:function(){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(var t,e=document.createTreeWalker(this,NodeFilter.SHOW_TEXT,null,!1),n="";t=e.nextNode();)n+=t.nodeValue;return n;default:return this.nodeValue}},set:function(t){switch(void 0!==t&&null!==t||(t=""),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:Xe(this),(0<t.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_native_insertBefore(document.createTextNode(t),void 0);break;default:this.nodeValue=t}}}}),We(Node.prototype,"appendChild insertBefore removeChild replaceChild cloneNode contains".split(" ")),We(HTMLElement.prototype,["parentElement","contains"]),t={firstElementChild:{get:function(){return Ge.currentNode=this,Ge.firstChild()}},lastElementChild:{get:function(){return Ge.currentNode=this,Ge.lastChild()}},children:{get:function(){var t=[];Ge.currentNode=this;for(var e=Ge.firstChild();e;)t.push(e),e=Ge.nextSibling();return me(t)}},childElementCount:{get:function(){return this.children?this.children.length:0}}},He?(We(Element.prototype,ze),We(Element.prototype,["previousElementSibling","nextElementSibling","innerHTML","className"]),We(HTMLElement.prototype,["children","innerHTML","className"])):(qe(Element.prototype,t),qe(Element.prototype,{previousElementSibling:{get:function(){return Ge.currentNode=this,Ge.previousSibling()}},nextElementSibling:{get:function(){return Ge.currentNode=this,Ge.nextSibling()}},innerHTML:{get:function(){return Fe(this,ve)},set:function(t){var e="template"===this.localName?this.content:this;Xe(e);var n=this.localName||"div";for((n=this.namespaceURI&&this.namespaceURI!==Ke.namespaceURI?Ke.createElementNS(this.namespaceURI,n):Ke.createElement(n)).innerHTML=t,t="template"===this.localName?n.content:n;n=t.__shady_native_firstChild;)e.__shady_native_insertBefore(n,void 0)}},className:{get:function(){return this.getAttribute("class")||""},set:function(t){this.setAttribute("class",t)}}})),We(Element.prototype,"setAttribute getAttribute hasAttribute removeAttribute focus blur".split(" ")),We(Element.prototype,Je),We(HTMLElement.prototype,["focus","blur"]),window.HTMLTemplateElement&&We(window.HTMLTemplateElement.prototype,["innerHTML"]),He?We(DocumentFragment.prototype,ze):qe(DocumentFragment.prototype,t),We(DocumentFragment.prototype,Je),He?(We(Document.prototype,ze),We(Document.prototype,["activeElement"])):qe(Document.prototype,t),We(Document.prototype,["importNode","getElementById"]),We(Document.prototype,Je)}(),vr("__shady_"),Object.defineProperty(document,"_activeElement",cr.activeElement),be(Window.prototype,dr,"__shady_"),re.D?re.ua&&be(Element.prototype,rr):(vr(),function(){if(!on&&Object.getOwnPropertyDescriptor(Event.prototype,"isTrusted")){var t=function(){var t=new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0});this.__shady_dispatchEvent(t)};Element.prototype.click?Element.prototype.click=t:HTMLElement.prototype.click&&(HTMLElement.prototype.click=t)}}()),function(){for(var t in pn)window.__shady_native_addEventListener(t,function(t){t.__target||(Nn(t),vn(t))},!0)}(),window.Event=Cn,window.CustomEvent=Sn,window.MouseEvent=Tn,window.ShadowRoot=Mr}var Zr=window.Document.prototype.createElement,Qr=window.Document.prototype.createElementNS,to=window.Document.prototype.importNode,eo=window.Document.prototype.prepend,no=window.Document.prototype.append,ro=window.DocumentFragment.prototype.prepend,oo=window.DocumentFragment.prototype.append,io=window.Node.prototype.cloneNode,ao=window.Node.prototype.appendChild,so=window.Node.prototype.insertBefore,lo=window.Node.prototype.removeChild,co=window.Node.prototype.replaceChild,uo=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),ho=window.Element.prototype.attachShadow,fo=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),po=window.Element.prototype.getAttribute,_o=window.Element.prototype.setAttribute,mo=window.Element.prototype.removeAttribute,vo=window.Element.prototype.getAttributeNS,yo=window.Element.prototype.setAttributeNS,go=window.Element.prototype.removeAttributeNS,bo=window.Element.prototype.insertAdjacentElement,Eo=window.Element.prototype.insertAdjacentHTML,wo=window.Element.prototype.prepend,No=window.Element.prototype.append,Co=window.Element.prototype.before,So=window.Element.prototype.after,To=window.Element.prototype.replaceWith,Oo=window.Element.prototype.remove,Do=window.HTMLElement,xo=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Mo=window.HTMLElement.prototype.insertAdjacentElement,Po=window.HTMLElement.prototype.insertAdjacentHTML,Lo=new Set;function Ao(t){var e=Lo.has(t);return t=/^[a-z][.0-9_a-z]*-[-.0-9_a-z]*$/.test(t),!e&&t}"annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ").forEach(function(t){return Lo.add(t)});var jo=document.contains?document.contains.bind(document):document.documentElement.contains.bind(document.documentElement);function ko(t){var e=t.isConnected;if(void 0!==e)return e;if(jo(t))return!0;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function Ro(t){var e=t.children;if(e)return Array.prototype.slice.call(e);for(e=[],t=t.firstChild;t;t=t.nextSibling)t.nodeType===Node.ELEMENT_NODE&&e.push(t);return e}function Fo(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function Ho(){var t=!(null===ii||void 0===ii||!ii.noDocumentConstructionObserver),e=!(null===ii||void 0===ii||!ii.shadyDomFastWalk);this.X=[],this.a=[],this.R=!1,this.shadyDomFastWalk=e,this.jb=!t}function Io(t,e,n,r){var o=window.ShadyDom;if(t.shadyDomFastWalk&&o&&o.inUse){if(e.nodeType===Node.ELEMENT_NODE&&n(e),e.querySelectorAll)for(t=o.nativeMethods.querySelectorAll.call(e,"*"),e=0;e<t.length;e++)n(t[e])}else!function t(e,n,r){for(var o=e;o;){if(o.nodeType===Node.ELEMENT_NODE){var i=o;n(i);var a=i.localName;if("link"===a&&"import"===i.getAttribute("rel")){if(o=i.import,void 0===r&&(r=new Set),o instanceof Node&&!r.has(o))for(r.add(o),o=o.firstChild;o;o=o.nextSibling)t(o,n,r);o=Fo(e,i);continue}if("template"===a){o=Fo(e,i);continue}if(i=i.__CE_shadowRoot)for(i=i.firstChild;i;i=i.nextSibling)t(i,n,r)}o=o.firstChild?o.firstChild:Fo(e,o)}}(e,n,r)}function Bo(t,e){t.R&&Io(t,e,function(e){return Uo(t,e)})}function Uo(t,e){if(t.R&&!e.__CE_patched){e.__CE_patched=!0;for(var n=0;n<t.X.length;n++)t.X[n](e);for(n=0;n<t.a.length;n++)t.a[n](e)}}function qo(t,e){var n=[];for(Io(t,e,function(t){return n.push(t)}),e=0;e<n.length;e++){var r=n[e];1===r.__CE_state?t.connectedCallback(r):Go(t,r)}}function Wo(t,e){var n=[];for(Io(t,e,function(t){return n.push(t)}),e=0;e<n.length;e++){var r=n[e];1===r.__CE_state&&t.disconnectedCallback(r)}}function Vo(t,e,n){var r=(n=void 0===n?{}:n).kb,o=n.upgrade||function(e){return Go(t,e)},i=[];for(Io(t,e,function(e){if(t.R&&Uo(t,e),"link"===e.localName&&"import"===e.getAttribute("rel")){var n=e.import;n instanceof Node&&(n.__CE_isImportDocument=!0,n.__CE_registry=document.__CE_registry),n&&"complete"===n.readyState?n.__CE_documentLoadHandled=!0:e.addEventListener("load",function(){var n=e.import;if(!n.__CE_documentLoadHandled){n.__CE_documentLoadHandled=!0;var i=new Set;r&&(r.forEach(function(t){return i.add(t)}),i.delete(n)),Vo(t,n,{kb:i,upgrade:o})}})}else i.push(e)},r),e=0;e<i.length;e++)o(i[e])}function Go(t,e){try{var n=e.ownerDocument,r=n.__CE_registry,o=r&&(n.defaultView||n.__CE_isImportDocument)?ei(r,e.localName):void 0;if(o&&void 0===e.__CE_state){o.constructionStack.push(e);try{try{if(new o.constructorFunction!==e)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{o.constructionStack.pop()}}catch(t){throw e.__CE_state=2,t}if(e.__CE_state=1,e.__CE_definition=o,o.attributeChangedCallback&&e.hasAttributes()){var i=o.observedAttributes;for(o=0;o<i.length;o++){var a=i[o],s=e.getAttribute(a);null!==s&&t.attributeChangedCallback(e,a,null,s,null)}}ko(e)&&t.connectedCallback(e)}}catch(t){Xo(t)}}function Ko(t,e,n,r){var o=e.__CE_registry;if(o&&(null===r||"http://www.w3.org/1999/xhtml"===r)&&(o=ei(o,n)))try{var i=new o.constructorFunction;if(void 0===i.__CE_state||void 0===i.__CE_definition)throw Error("Failed to construct '"+n+"': The returned value was not constructed with the HTMLElement constructor.");if("http://www.w3.org/1999/xhtml"!==i.namespaceURI)throw Error("Failed to construct '"+n+"': The constructed element's namespace must be the HTML namespace.");if(i.hasAttributes())throw Error("Failed to construct '"+n+"': The constructed element must not have any attributes.");if(null!==i.firstChild)throw Error("Failed to construct '"+n+"': The constructed element must not have any children.");if(null!==i.parentNode)throw Error("Failed to construct '"+n+"': The constructed element must not have a parent node.");if(i.ownerDocument!==e)throw Error("Failed to construct '"+n+"': The constructed element's owner document is incorrect.");if(i.localName!==n)throw Error("Failed to construct '"+n+"': The constructed element's local name is incorrect.");return i}catch(o){return Xo(o),e=null===r?Zr.call(e,n):Qr.call(e,r,n),Object.setPrototypeOf(e,HTMLUnknownElement.prototype),e.__CE_state=2,e.__CE_definition=void 0,Uo(t,e),e}return Uo(t,e=null===r?Zr.call(e,n):Qr.call(e,r,n)),e}function Xo(t){var e=t.message,n=t.sourceURL||t.fileName||"",r=t.line||t.lineNumber||0,o=t.column||t.columnNumber||0,i=void 0;void 0===ErrorEvent.prototype.initErrorEvent?i=new ErrorEvent("error",{cancelable:!0,message:e,filename:n,lineno:r,colno:o,error:t}):((i=document.createEvent("ErrorEvent")).initErrorEvent("error",!1,!0,e,n,r),i.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{configurable:!0,get:function(){return!0}})}),void 0===i.error&&Object.defineProperty(i,"error",{configurable:!0,enumerable:!0,get:function(){return t}}),window.dispatchEvent(i),i.defaultPrevented||console.error(t)}function zo(){var t=this;this.C=void 0,this.Ca=new Promise(function(e){t.a=e})}function Jo(t){var e=document;this.S=void 0,this.M=t,this.a=e,Vo(this.M,this.a),"loading"===this.a.readyState&&(this.S=new MutationObserver(this.b.bind(this)),this.S.observe(this.a,{childList:!0,subtree:!0}))}function $o(t){t.S&&t.S.disconnect()}function Yo(t){this.fa=new Map,this.ga=new Map,this.xa=new Map,this.na=!1,this.qa=new Map,this.ea=function(t){return t()},this.P=!1,this.ha=[],this.M=t,this.ya=t.jb?new Jo(t):void 0}function Zo(t,e){if(!Ao(e))throw new SyntaxError("The element name '"+e+"' is not valid.");if(ei(t,e))throw Error("A custom element with name '"+e+"' has already been defined.");if(t.na)throw Error("A custom element is already being defined.")}function Qo(t,e,n){var r;t.na=!0;try{var o=n.prototype;if(!(o instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var i=function(t){var e=o[t];if(void 0!==e&&!(e instanceof Function))throw Error("The '"+t+"' callback must be a function.");return e},a=i("connectedCallback"),s=i("disconnectedCallback"),l=i("adoptedCallback"),c=(r=i("attributeChangedCallback"))&&n.observedAttributes||[]}catch(t){throw t}finally{t.na=!1}return n={localName:e,constructorFunction:n,connectedCallback:a,disconnectedCallback:s,adoptedCallback:l,attributeChangedCallback:r,observedAttributes:c,constructionStack:[]},t.ga.set(e,n),t.xa.set(n.constructorFunction,n),n}function ti(t){if(!1!==t.P){t.P=!1;for(var e=[],n=t.ha,r=new Map,o=0;o<n.length;o++)r.set(n[o],[]);for(Vo(t.M,document,{upgrade:function(n){if(void 0===n.__CE_state){var o=n.localName,i=r.get(o);i?i.push(n):t.ga.has(o)&&e.push(n)}}}),o=0;o<e.length;o++)Go(t.M,e[o]);for(o=0;o<n.length;o++){for(var i=n[o],a=r.get(i),s=0;s<a.length;s++)Go(t.M,a[s]);(i=t.qa.get(i))&&i.resolve(void 0)}n.length=0}}function ei(t,e){var n=t.ga.get(e);if(n)return n;if(n=t.fa.get(e)){t.fa.delete(e);try{return Qo(t,e,n())}catch(t){Xo(t)}}}function ni(t,e,n){function r(e){return function(n){for(var r=[],o=0;o<arguments.length;++o)r[o]=arguments[o];o=[];for(var i=[],a=0;a<r.length;a++){var s=r[a];if(s instanceof Element&&ko(s)&&i.push(s),s instanceof DocumentFragment)for(s=s.firstChild;s;s=s.nextSibling)o.push(s);else o.push(s)}for(e.apply(this,r),r=0;r<i.length;r++)Wo(t,i[r]);if(ko(this))for(r=0;r<o.length;r++)(i=o[r])instanceof Element&&qo(t,i)}}void 0!==n.prepend&&(e.prepend=r(n.prepend)),void 0!==n.append&&(e.append=r(n.append))}function ri(t){function e(e,n){Object.defineProperty(e,"innerHTML",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(e){var r=this,o=void 0;if(ko(this)&&(o=[],Io(t,this,function(t){t!==r&&o.push(t)})),n.set.call(this,e),o)for(var i=0;i<o.length;i++){var a=o[i];1===a.__CE_state&&t.disconnectedCallback(a)}return this.ownerDocument.__CE_registry?Vo(t,this):Bo(t,this),e}})}function n(e,n){e.insertAdjacentElement=function(e,r){var o=ko(r);return e=n.call(this,e,r),o&&Wo(t,r),ko(e)&&qo(t,r),e}}function r(e,n){function r(e,n){for(var r=[];e!==n;e=e.nextSibling)r.push(e);for(n=0;n<r.length;n++)Vo(t,r[n])}e.insertAdjacentHTML=function(t,e){if("beforebegin"===(t=t.toLowerCase())){var o=this.previousSibling;n.call(this,t,e),r(o||this.parentNode.firstChild,this)}else if("afterbegin"===t)o=this.firstChild,n.call(this,t,e),r(this.firstChild,o);else if("beforeend"===t)o=this.lastChild,n.call(this,t,e),r(o||this.firstChild,null);else{if("afterend"!==t)throw new SyntaxError("The value provided ("+String(t)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");o=this.nextSibling,n.call(this,t,e),r(this.nextSibling,o)}}}ho&&(Element.prototype.attachShadow=function(e){if(e=ho.call(this,e),t.R&&!e.__CE_patched){e.__CE_patched=!0;for(var n=0;n<t.X.length;n++)t.X[n](e)}return this.__CE_shadowRoot=e}),fo&&fo.get?e(Element.prototype,fo):xo&&xo.get?e(HTMLElement.prototype,xo):function(t,e){t.R=!0,t.a.push(e)}(t,function(t){e(t,{enumerable:!0,configurable:!0,get:function(){return io.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName,n=e?this.content:this,r=Qr.call(document,this.namespaceURI,this.localName);for(r.innerHTML=t;0<n.childNodes.length;)lo.call(n,n.childNodes[0]);for(t=e?r.content:r;0<t.childNodes.length;)ao.call(n,t.childNodes[0])}})}),Element.prototype.setAttribute=function(e,n){if(1!==this.__CE_state)return _o.call(this,e,n);var r=po.call(this,e);_o.call(this,e,n),n=po.call(this,e),t.attributeChangedCallback(this,e,r,n,null)},Element.prototype.setAttributeNS=function(e,n,r){if(1!==this.__CE_state)return yo.call(this,e,n,r);var o=vo.call(this,e,n);yo.call(this,e,n,r),r=vo.call(this,e,n),t.attributeChangedCallback(this,n,o,r,e)},Element.prototype.removeAttribute=function(e){if(1!==this.__CE_state)return mo.call(this,e);var n=po.call(this,e);mo.call(this,e),null!==n&&t.attributeChangedCallback(this,e,n,null,null)},Element.prototype.removeAttributeNS=function(e,n){if(1!==this.__CE_state)return go.call(this,e,n);var r=vo.call(this,e,n);go.call(this,e,n);var o=vo.call(this,e,n);r!==o&&t.attributeChangedCallback(this,n,r,o,e)},Mo?n(HTMLElement.prototype,Mo):bo&&n(Element.prototype,bo),Po?r(HTMLElement.prototype,Po):Eo&&r(Element.prototype,Eo),ni(t,Element.prototype,{prepend:wo,append:No}),function(t){function e(e){return function(n){for(var r=[],o=0;o<arguments.length;++o)r[o]=arguments[o];o=[];for(var i=[],a=0;a<r.length;a++){var s=r[a];if(s instanceof Element&&ko(s)&&i.push(s),s instanceof DocumentFragment)for(s=s.firstChild;s;s=s.nextSibling)o.push(s);else o.push(s)}for(e.apply(this,r),r=0;r<i.length;r++)Wo(t,i[r]);if(ko(this))for(r=0;r<o.length;r++)(i=o[r])instanceof Element&&qo(t,i)}}var n=Element.prototype;void 0!==Co&&(n.before=e(Co)),void 0!==So&&(n.after=e(So)),void 0!==To&&(n.replaceWith=function(e){for(var n=[],r=0;r<arguments.length;++r)n[r]=arguments[r];r=[];for(var o=[],i=0;i<n.length;i++){var a=n[i];if(a instanceof Element&&ko(a)&&o.push(a),a instanceof DocumentFragment)for(a=a.firstChild;a;a=a.nextSibling)r.push(a);else r.push(a)}for(i=ko(this),To.apply(this,n),n=0;n<o.length;n++)Wo(t,o[n]);if(i)for(Wo(t,this),n=0;n<r.length;n++)(o=r[n])instanceof Element&&qo(t,o)}),void 0!==Oo&&(n.remove=function(){var e=ko(this);Oo.call(this),e&&Wo(t,this)})}(t)}Ho.prototype.connectedCallback=function(t){var e=t.__CE_definition;if(e.connectedCallback)try{e.connectedCallback.call(t)}catch(t){Xo(t)}},Ho.prototype.disconnectedCallback=function(t){var e=t.__CE_definition;if(e.disconnectedCallback)try{e.disconnectedCallback.call(t)}catch(t){Xo(t)}},Ho.prototype.attributeChangedCallback=function(t,e,n,r,o){var i=t.__CE_definition;if(i.attributeChangedCallback&&-1<i.observedAttributes.indexOf(e))try{i.attributeChangedCallback.call(t,e,n,r,o)}catch(t){Xo(t)}},zo.prototype.resolve=function(t){if(this.C)throw Error("Already resolved.");this.C=t,this.a(t)},Jo.prototype.b=function(t){var e=this.a.readyState;for("interactive"!==e&&"complete"!==e||$o(this),e=0;e<t.length;e++)for(var n=t[e].addedNodes,r=0;r<n.length;r++)Vo(this.M,n[r])},(t=Yo.prototype).$a=function(t,e){var n=this;if(!(e instanceof Function))throw new TypeError("Custom element constructor getters must be functions.");Zo(this,t),this.fa.set(t,e),this.ha.push(t),this.P||(this.P=!0,this.ea(function(){return ti(n)}))},t.define=function(t,e){var n=this;if(!(e instanceof Function))throw new TypeError("Custom element constructors must be functions.");Zo(this,t),Qo(this,t,e),this.ha.push(t),this.P||(this.P=!0,this.ea(function(){return ti(n)}))},t.upgrade=function(t){Vo(this.M,t)},t.get=function(t){if(t=ei(this,t))return t.constructorFunction},t.whenDefined=function(t){if(!Ao(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var e=this.qa.get(t);if(e)return e.Ca;e=new zo,this.qa.set(t,e);var n=this.ga.has(t)||this.fa.has(t);return t=-1===this.ha.indexOf(t),n&&t&&e.resolve(void 0),e.Ca},t.polyfillWrapFlushCallback=function(t){this.ya&&$o(this.ya);var e=this.ea;this.ea=function(n){return t(function(){return e(n)})}},window.CustomElementRegistry=Yo,Yo.prototype.define=Yo.prototype.define,Yo.prototype.upgrade=Yo.prototype.upgrade,Yo.prototype.get=Yo.prototype.get,Yo.prototype.whenDefined=Yo.prototype.whenDefined,Yo.prototype.polyfillDefineLazy=Yo.prototype.$a,Yo.prototype.polyfillWrapFlushCallback=Yo.prototype.polyfillWrapFlushCallback;var oi={};var ii=window.customElements;function ai(){var t=new Ho;!function(t){function e(){var e=this.constructor,n=document.__CE_registry.xa.get(e);if(!n)throw Error("Failed to construct a custom element: The constructor was not registered with `customElements`.");var r=n.constructionStack;if(0===r.length)return r=Zr.call(document,n.localName),Object.setPrototypeOf(r,e.prototype),r.__CE_state=1,r.__CE_definition=n,Uo(t,r),r;var o=r.length-1,i=r[o];if(i===oi)throw Error("Failed to construct '"+n.localName+"': This element was already constructed.");return r[o]=oi,Object.setPrototypeOf(i,e.prototype),Uo(t,i),i}e.prototype=Do.prototype,Object.defineProperty(HTMLElement.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:e}),window.HTMLElement=e}(t),function(t){Document.prototype.createElement=function(e){return Ko(t,this,e,null)},Document.prototype.importNode=function(e,n){return e=to.call(this,e,!!n),this.__CE_registry?Vo(t,e):Bo(t,e),e},Document.prototype.createElementNS=function(e,n){return Ko(t,this,n,e)},ni(t,Document.prototype,{prepend:eo,append:no})}(t),ni(t,DocumentFragment.prototype,{prepend:ro,append:oo}),function(t){function e(e,n){Object.defineProperty(e,"textContent",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(e){if(this.nodeType===Node.TEXT_NODE)n.set.call(this,e);else{var r=void 0;if(this.firstChild){var o=this.childNodes,i=o.length;if(0<i&&ko(this)){r=Array(i);for(var a=0;a<i;a++)r[a]=o[a]}}if(n.set.call(this,e),r)for(e=0;e<r.length;e++)Wo(t,r[e])}}})}Node.prototype.insertBefore=function(e,n){if(e instanceof DocumentFragment){var r=Ro(e);if(e=so.call(this,e,n),ko(this))for(n=0;n<r.length;n++)qo(t,r[n]);return e}return r=e instanceof Element&&ko(e),n=so.call(this,e,n),r&&Wo(t,e),ko(this)&&qo(t,e),n},Node.prototype.appendChild=function(e){if(e instanceof DocumentFragment){var n=Ro(e);if(e=ao.call(this,e),ko(this))for(var r=0;r<n.length;r++)qo(t,n[r]);return e}return n=e instanceof Element&&ko(e),r=ao.call(this,e),n&&Wo(t,e),ko(this)&&qo(t,e),r},Node.prototype.cloneNode=function(e){return e=io.call(this,!!e),this.ownerDocument.__CE_registry?Vo(t,e):Bo(t,e),e},Node.prototype.removeChild=function(e){var n=e instanceof Element&&ko(e),r=lo.call(this,e);return n&&Wo(t,e),r},Node.prototype.replaceChild=function(e,n){if(e instanceof DocumentFragment){var r=Ro(e);if(e=co.call(this,e,n),ko(this))for(Wo(t,n),n=0;n<r.length;n++)qo(t,r[n]);return e}r=e instanceof Element&&ko(e);var o=co.call(this,e,n),i=ko(this);return i&&Wo(t,n),r&&Wo(t,e),i&&qo(t,e),o},uo&&uo.get?e(Node.prototype,uo):function(t,e){t.R=!0,t.X.push(e)}(t,function(t){e(t,{enumerable:!0,configurable:!0,get:function(){for(var t=[],e=this.firstChild;e;e=e.nextSibling)e.nodeType!==Node.COMMENT_NODE&&t.push(e.textContent);return t.join("")},set:function(t){for(;this.firstChild;)lo.call(this,this.firstChild);null!=t&&""!==t&&ao.call(this,document.createTextNode(t))}})})}(t),ri(t),t=new Yo(t),document.__CE_registry=t,Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:t})}function si(){this.end=this.start=0,this.rules=this.parent=this.previous=null,this.cssText=this.parsedCssText="",this.atRule=!1,this.type=0,this.parsedSelector=this.selector=this.keyframesName=""}function li(t){var e=t=t.replace(_i,"").replace(mi,""),n=new si;n.start=0,n.end=e.length;for(var r=n,o=0,i=e.length;o<i;o++)if("{"===e[o]){r.rules||(r.rules=[]);var a=r,s=a.rules[a.rules.length-1]||null;(r=new si).start=o+1,r.parent=a,r.previous=s,a.rules.push(r)}else"}"===e[o]&&(r.end=o+1,r=r.parent||n);return function t(e,n){var r=n.substring(e.start,e.end-1);e.parsedCssText=e.cssText=r.trim();e.parent&&(r=n.substring(e.previous?e.previous.end:e.parent.start,e.start-1),r=function(t){return t.replace(/\\([0-9a-f]{1,6})\s/gi,function(t,e){for(e=6-(t=e).length;e--;)t="0"+t;return"\\"+t})}(r),r=r.replace(wi," "),r=r.substring(r.lastIndexOf(";")+1),r=e.parsedSelector=e.selector=r.trim(),e.atRule=0===r.indexOf("@"),e.atRule?0===r.indexOf("@media")?e.type=fi:r.match(Ei)&&(e.type=di,e.keyframesName=e.selector.split(wi).pop()):e.type=0===r.indexOf("--")?pi:hi);if(r=e.rules)for(var o=0,i=r.length,a=void 0;o<i&&(a=r[o]);o++)t(a,n);return e}(n,t)}ii&&!ii.forcePolyfill&&"function"==typeof ii.define&&"function"==typeof ii.get||ai(),window.__CE_installPolyfill=ai;var ci,ui,hi=1,di=7,fi=4,pi=1e3,_i=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,mi=/@import[^;]*;/gim,vi=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,yi=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,gi=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,bi=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,Ei=/^@[^\s]*keyframes/,wi=/\s+/g,Ni=!(window.ShadyDOM&&window.ShadyDOM.inUse);function Ci(t){ci=(!t||!t.shimcssproperties)&&(Ni||!(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&&(ui=window.ShadyCSS.cssBuild);var Si=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?ci=window.ShadyCSS.nativeCss:window.ShadyCSS?(Ci(window.ShadyCSS),window.ShadyCSS=void 0):Ci(window.WebComponents&&window.WebComponents.flags);var Ti=ci,Oi=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Di=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,xi=/(--[\w-]+)\s*([:,;)]|$)/gi,Mi=/(animation\s*:)|(animation-name\s*:)/,Pi=/@media\s(.*)/,Li=/\{[^}]*\}/g,Ai=new Set;function ji(t,e){return t?("string"==typeof t&&(t=li(t)),e&&Fi(t,e),function t(e,n,r){r=void 0===r?"":r;var o="";if(e.cssText||e.rules){var i,a=e.rules;if((i=a)&&(i=!((i=a[0])&&i.selector&&0===i.selector.indexOf("--"))),i){i=0;for(var s=a.length,l=void 0;i<s&&(l=a[i]);i++)o=t(l,n,o)}else n=n?e.cssText:(n=(n=e.cssText).replace(vi,"").replace(yi,"")).replace(gi,"").replace(bi,""),(o=n.trim())&&(o="  "+o+"\n")}return o&&(e.selector&&(r+=e.selector+" {\n"),r+=o,e.selector&&(r+="}\n\n")),r}(t,Ti)):""}function ki(t){return!t.__cssRules&&t.textContent&&(t.__cssRules=li(t.textContent)),t.__cssRules||null}function Ri(t){return!!t.parent&&t.parent.type===di}function Fi(t,e,n,r){if(t){var o=!1,i=t.type;if(r&&i===fi){var a=t.selector.match(Pi);a&&(window.matchMedia(a[1]).matches||(o=!0))}if(i===hi?e(t):n&&i===di?n(t):i===pi&&(o=!0),(t=t.rules)&&!o)for(o=0,i=t.length,a=void 0;o<i&&(a=t[o]);o++)Fi(a,e,n,r)}}function Hi(t,e,n,r){var o=document.createElement("style");return e&&o.setAttribute("scope",e),o.textContent=t,Ui(o,n,r),o}var Ii=null;function Bi(t){t=document.createComment(" Shady DOM styles for "+t+" ");var e=document.head;return e.insertBefore(t,(Ii?Ii.nextSibling:null)||e.firstChild),Ii=t}function Ui(t,e,n){(e=e||document.head).insertBefore(t,n&&n.nextSibling||e.firstChild),Ii?t.compareDocumentPosition(Ii)===Node.DOCUMENT_POSITION_PRECEDING&&(Ii=t):Ii=t}function qi(t,e){for(var n=0,r=t.length;e<r;e++)if("("===t[e])n++;else if(")"===t[e]&&0==--n)return e;return-1}function Wi(t,e){Ni?t.setAttribute("class",e):window.ShadyDOM.nativeMethods.setAttribute.call(t,"class",e)}var Vi=window.ShadyDOM&&window.ShadyDOM.wrap||function(t){return t};function Gi(t){var e=t.localName,n="";return e?-1<e.indexOf("-")||(n=e,e=t.getAttribute&&t.getAttribute("is")||""):(e=t.is,n=t.extends),{is:e,ca:n}}function Ki(t){for(var e=[],n="",r=0;0<=r&&r<t.length;r++)if("("===t[r]){var o=qi(t,r);n+=t.slice(r,o+1),r=o}else","===t[r]?(e.push(n),n=""):n+=t[r];return n&&e.push(n),e}function Xi(t){if(void 0!==ui)return ui;if(void 0===t.__cssBuild){var e=t.getAttribute("css-build");if(e)t.__cssBuild=e;else{if(""!==(e=(e="template"===t.localName?t.content.firstChild:t.firstChild)instanceof Comment&&"css-build"===(e=e.textContent.trim().split(":"))[0]?e[1]:"")){var n="template"===t.localName?t.content.firstChild:t.firstChild;n.parentNode.removeChild(n)}t.__cssBuild=e}}return t.__cssBuild||""}function zi(t){return!(""===(t=void 0===t?"":t)||!Ti)&&(Ni?"shadow"===t:"shady"===t)}function Ji(){}function $i(t,e,n){var r;if(e.nodeType===Node.ELEMENT_NODE&&n(e),r="template"===e.localName?(e.content||e._content||e).childNodes:e.children||e.childNodes)for(e=0;e<r.length;e++)$i(t,r[e],n)}function Yi(t,e,n){if(e)if(t.classList)n?(t.classList.remove("style-scope"),t.classList.remove(e)):(t.classList.add("style-scope"),t.classList.add(e));else if(t.getAttribute){var r=t.getAttribute("class");n?r&&Wi(t,e=r.replace("style-scope","").replace(e,"")):Wi(t,(r?r+" ":"")+"style-scope "+e)}}function Zi(t,e,n){$i(pa,t,function(t){Yi(t,e,!0),Yi(t,n)})}function Qi(t,e){$i(pa,t,function(t){Yi(t,e||"",!0)})}function ta(t,e,n,r,o){var i=pa;return""===(o=void 0===o?"":o)&&(Ni||"shady"===(void 0===r?"":r)?o=ji(e,n):o=function(t,e,n,r,o){var i=ea(n,r);return n=n?"."+n:"",ji(e,function(e){e.c||(e.selector=e.w=na(t,e,t.b,n,i),e.c=!0),o&&o(e,n,i)})}(i,e,(t=Gi(t)).is,t.ca,n)+"\n\n"),o.trim()}function ea(t,e){return e?"[is="+t+"]":t}function na(t,e,n,r,o){var i=Ki(e.selector);if(!Ri(e)){e=0;for(var a=i.length,s=void 0;e<a&&(s=i[e]);e++)i[e]=n.call(t,s,r,o)}return i.filter(function(t){return!!t}).join(",")}function ra(t){return t.replace(aa,function(t,e,n){return-1<n.indexOf("+")?n=n.replace(/\+/g,"___"):-1<n.indexOf("___")&&(n=n.replace(/___/g,"+")),":"+e+"("+n+")"})}function oa(t,e){t=t.split(/(\[.+?\])/);for(var n=[],r=0;r<t.length;r++)if(1==r%2)n.push(t[r]);else{var o=t[r];""===o&&r===t.length-1||((o=o.split(":"))[0]+=e,n.push(o.join(":")))}return n.join("")}function ia(t){":root"===t.selector&&(t.selector="html")}Ji.prototype.b=function(t,e,n){var r=!1;t=t.trim();var o=aa.test(t);o&&(t=ra(t=t.replace(aa,function(t,e,n){return":"+e+"("+n.replace(/\s/g,"")+")"})));var i=fa.test(t);if(i){var a=function(t){for(var e,n=[];e=t.match(fa);){var r=e.index,o=qi(t,r);if(-1===o)throw Error(e.input+" selector missing ')'");e=t.slice(r,o+1),t=t.replace(e,""),n.push(e)}return{wa:t,matches:n}}(t);t=a.wa,a=a.matches}return t=(t=t.replace(ca,":host $1")).replace(sa,function(t,o,i){return r||(t=function(t,e,n,r){var o=t.indexOf("::slotted");if(0<=t.indexOf(":host")?t=function(t,e){var n=t.match(ua);return(n=n&&n[2].trim()||"")?n[0].match(la)?t.replace(ua,function(t,n,r){return e+r}):n.split(la)[0]===e?n:"should_not_match":t.replace(":host",e)}(t,r):0!==o&&(t=n?oa(t,n):t),n=!1,0<=o&&(e="",n=!0),n){var i=!0;n&&(t=t.replace(ha,function(t,e){return" > "+e}))}return{value:t,Qa:e,stop:i}}(i,o,e,n),r=r||t.stop,o=t.Qa,i=t.value),o+i}),i&&(t=function(t,e){var n=t.split("");return e.reduce(function(t,e,r){return t+e+n[r+1]},n[0])}(t,a)),o&&(t=ra(t)),t.replace(da,function(t,e,n,r){return'[dir="'+n+'"] '+e+r+", "+e+'[dir="'+n+'"]'+r})},Ji.prototype.c=function(t){return t.match(":host")?"":t.match("::slotted")?this.b(t,":not(.style-scope)"):oa(t.trim(),":not(.style-scope)")},r.Object.defineProperties(Ji.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var aa=/:(nth[-\w]+)\(([^)]+)\)/,sa=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,la=/[[.:#*]/,ca=/^(::slotted)/,ua=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,ha=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,da=/(.*):dir\((?:(ltr|rtl))\)(.*)/,fa=/:(?:matches|any|-(?:webkit|moz)-any)/,pa=new Ji;function _a(t,e,n,r,o){this.H=t||null,this.b=e||null,this.ta=n||[],this.F=null,this.cssBuild=o||"",this.ca=r||"",this.a=this.G=this.L=null}function ma(t){return t?t.__styleInfo:null}function va(t,e){return t.__styleInfo=e}function ya(t){var e=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return e&&e.call(this,t)}_a.prototype.c=function(){return this.H},_a.prototype._getStyleRules=_a.prototype.c;var ga=/:host\s*>\s*/,ba=navigator.userAgent.match("Trident");function Ea(){}function wa(t){if(!t.v){var e={},n={};Na(t,n)&&(e.K=n,t.rules=null),e.cssText=t.parsedCssText.replace(Li,"").replace(Oi,""),t.v=e}}function Na(t,e){var n=t.v;if(!n){n=t.parsedCssText;for(var r;t=Oi.exec(n);)"inherit"===(r=(t[2]||t[3]).trim())&&"unset"===r||(e[t[1].trim()]=r),r=!0;return r}if(n.K)return Object.assign(e,n.K),!0}function Ca(t,e,n){return e&&(e=0<=e.indexOf(";")?Sa(t,e,n):function t(e,n){var r=e.indexOf("var(");if(-1===r)return n(e,"","","");var o=qi(e,r+3),i=e.substring(r+4,o);return r=e.substring(0,r),e=t(e.substring(o+1),n),-1===(o=i.indexOf(","))?n(r,i.trim(),"",e):n(r,i.substring(0,o).trim(),i.substring(o+1).trim(),e)}(e,function(e,r,o,i){return r?((r=Ca(t,n[r],n))&&"initial"!==r?"apply-shim-inherit"===r&&(r="inherit"):r=Ca(t,n[o]||o,n)||o,e+(r||"")+i):e+i})),e&&e.trim()||""}function Sa(t,e,n){e=e.split(";");for(var r,o,i=0;i<e.length;i++)if(r=e[i]){if(Di.lastIndex=0,o=Di.exec(r))r=Ca(t,n[o[1]],n);else if(-1!==(o=r.indexOf(":"))){var a=r.substring(o);a=Ca(t,a=a.trim(),n)||a,r=r.substring(0,o)+a}e[i]=r&&r.lastIndexOf(";")===r.length-1?r.slice(0,-1):r||""}return e.join(";")}function Ta(t,e,n){var r={},o={};return Fi(e,function(e){!function(t,e,n,r){if(e.v||wa(e),e.v.K){var o=Gi(t);t=o.is,o=o.ca,o=t?ea(t,o):"html";var i=e.parsedSelector,a=!!i.match(ga)||"html"===o&&-1<i.indexOf("html"),s=0===i.indexOf(":host")&&!a;"shady"===n&&(s=!(a=i===o+" > *."+o||-1!==i.indexOf("html"))&&0===i.indexOf(o)),(a||s)&&(n=o,s&&(e.w||(e.w=na(pa,e,pa.b,t?"."+t:"",o)),n=e.w||o),a&&"html"===o&&(n=e.w||e.J),r({wa:n,Xa:s,mb:a}))}}(t,e,n,function(n){ya.call(t._element||t,n.wa)&&(n.Xa?Na(e,r):Na(e,o))})},null,!0),{cb:o,Va:r}}function Oa(t,e,n,r){var o=Gi(e),i=ea(o.is,o.ca),a=new RegExp("(?:^|[^.#[:])"+(e.extends?"\\"+i.slice(0,-1)+"\\]":i)+"($|[.:[\\s>+~])"),s=ma(e);o=s.H,s=s.cssBuild;var l=function(t,e){t=t.b;var n={};if(!Ni&&t)for(var r=0,o=t[r];r<t.length;o=t[++r]){var i=o,a=e;i.l=new RegExp("\\b"+i.keyframesName+"(?!\\B|-)","g"),i.a=i.keyframesName+"-"+a,i.w=i.w||i.selector,i.selector=i.w.replace(i.keyframesName,i.a),n[o.keyframesName]=Da(o)}return n}(o,r);return ta(e,o,function(e){var o="";if(e.v||wa(e),e.v.cssText&&(o=Sa(t,e.v.cssText,n)),e.cssText=o,!Ni&&!Ri(e)&&e.cssText){var s=o=e.cssText;if(null==e.Da&&(e.Da=Mi.test(o)),e.Da)if(null==e.ka)for(var c in e.ka=[],l)o!==(s=(s=l[c])(o))&&(o=s,e.ka.push(c));else{for(c=0;c<e.ka.length;++c)o=(s=l[e.ka[c]])(o);s=o}e.cssText=s,e.w=e.w||e.selector,o="."+r,s=0;for(var u=(c=Ki(e.w)).length,h=void 0;s<u&&(h=c[s]);s++)c[s]=h.match(a)?h.replace(i,o):o+" "+h;e.selector=c.join(",")}},s)}function Da(t){return function(e){return e.replace(t.l,t.a)}}function xa(t,e){var n=Ma,r=ki(t);t.textContent=ji(r,function(t){var r=t.cssText=t.parsedCssText;t.v&&t.v.cssText&&(r=r.replace(vi,"").replace(yi,""),t.cssText=Sa(n,r,e))})}r.Object.defineProperties(Ea.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var Ma=new Ea,Pa={},La=window.customElements;if(La&&!Ni&&!Si){var Aa=La.define;La.define=function(t,e,n){Pa[t]||(Pa[t]=Bi(t)),Aa.call(La,t,e,n)}}function ja(){this.cache={}}function ka(){}ja.prototype.store=function(t,e,n,r){var o=this.cache[t]||[];o.push({K:e,styleElement:n,G:r}),100<o.length&&o.shift(),this.cache[t]=o};var Ra=new RegExp(pa.a+"\\s*([^\\s]*)");function Fa(t){return(t=(t.classList&&t.classList.value?t.classList.value:t.getAttribute("class")||"").match(Ra))?t[1]:""}function Ha(t){var e=Vi(t).getRootNode();return e===t||e===t.ownerDocument?"":(t=e.host)?Gi(t).is:""}function Ia(t){for(var e=0;e<t.length;e++){var n=t[e];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.getRootNode(),a=Fa(o);if(a&&i===o.ownerDocument&&("style"!==o.localName&&"template"!==o.localName||""===Xi(o)))Qi(o,a);else if(i instanceof ShadowRoot)for((i=Ha(o))!==a&&Zi(o,a,i),o=window.ShadyDOM.nativeMethods.querySelectorAll.call(o,":not(."+pa.a+")"),a=0;a<o.length;a++){var s=Ha(i=o[a]);s&&Yi(i,s)}}}}}if(!(Ni||window.ShadyDOM&&window.ShadyDOM.handlesDynamicScoping)){var Ba=new MutationObserver(Ia),Ua=function(t){Ba.observe(t,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)Ua(document);else{var qa=function(){Ua(document.body)};window.HTMLImports?window.HTMLImports.whenReady(qa):requestAnimationFrame(function(){if("loading"===document.readyState){var t=function(){qa(),document.removeEventListener("readystatechange",t)};document.addEventListener("readystatechange",t)}else qa()})}ka=function(){Ia(Ba.takeRecords())}}var Wa={},Va=Promise.resolve();function Ga(t){(t=Wa[t])&&(t._applyShimCurrentVersion=t._applyShimCurrentVersion||0,t._applyShimValidatingVersion=t._applyShimValidatingVersion||0,t._applyShimNextVersion=(t._applyShimNextVersion||0)+1)}function Ka(t){return t._applyShimCurrentVersion===t._applyShimNextVersion}var Xa={},za=new ja;function Ja(){this.Y={},this.c=document.documentElement;var t=new si;t.rules=[],this.l=va(this.c,new _a(t)),this.J=!1,this.a=this.b=null}function $a(t){var e=Gi(t),n=e.is;e=e.ca;var r=Pa[n]||null,o=Wa[n];if(o)return va(t,e=new _a(n=o._styleAst,r,o.a,e,o=Xi(o))),e}function Ya(t){if(!t.b&&window.ShadyCSS&&window.ShadyCSS.ApplyShim){t.b=window.ShadyCSS.ApplyShim,t.b.invalidCallback=Ga;var e=!0}else e=!1;return function(t){!t.a&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(t.a=window.ShadyCSS.CustomStyleInterface,t.a.transformCallback=function(e){t.Ha(e)},t.a.validateCallback=function(){requestAnimationFrame(function(){(t.a.enqueued||t.J)&&t.flushCustomStyles()})})}(t),e}function Za(t,e,n){var r=Gi(e).is;if(n.F){var o,i=n.F;for(o in i)null===o?e.style.removeProperty(o):e.style.setProperty(o,i[o])}!(i=Wa[r])&&e!==t.c||i&&""!==Xi(i)||!i||!i._style||Ka(i)||((Ka(i)||i._applyShimValidatingVersion!==i._applyShimNextVersion)&&(Ya(t),t.b&&t.b.transformRules(i._styleAst,r),i._style.textContent=ta(e,n.H),function(t){t._applyShimValidatingVersion=t._applyShimNextVersion,t._validating||(t._validating=!0,Va.then(function(){t._applyShimCurrentVersion=t._applyShimNextVersion,t._validating=!1}))}(i)),Ni&&(t=e.shadowRoot)&&(t=t.querySelector("style"))&&(t.textContent=ta(e,n.H)),n.H=i._styleAst)}function Qa(t,e){return(e=Vi(e).getRootNode().host)?ma(e)||$a(e)?e:Qa(t,e):t.c}function ts(t,e,n){var r=Qa(t,e),o=ma(r),i=o.L;for(var a in r===t.c||i||(ts(t,r,o),i=o.L),t=Object.create(i||null),r=Ta(e,n.H,n.cssBuild),e=function(t,e){var n={},r=[];return Fi(t,function(t){t.v||wa(t);var o=t.w||t.parsedSelector;e&&t.v.K&&o&&ya.call(e,o)&&(Na(t,n),t=t.index,o=parseInt(t/32,10),r[o]=(r[o]||0)|1<<t%32)},null,!0),{K:n,key:r}}(o.H,e).K,Object.assign(t,r.Va,e,r.cb),e=n.F)((o=e[a])||0===o)&&(t[a]=o);for(a=Ma,e=Object.getOwnPropertyNames(t),o=0;o<e.length;o++)t[r=e[o]]=Ca(a,t[r],t);n.L=t}(t=Ja.prototype).flush=function(){ka()},t.Ta=function(t){return ki(t)},t.hb=function(t){return ji(t)},t.prepareTemplate=function(t,e,n){this.prepareTemplateDom(t,e),this.prepareTemplateStyles(t,e,n)},t.prepareTemplateStyles=function(t,e,n){if(!t._prepared&&!Si){Ni||Pa[e]||(Pa[e]=Bi(e)),t._prepared=!0,t.name=e,t.extends=n,Wa[e]=t;var r=Xi(t),o=zi(r);n={is:e,extends:n};for(var i=[],a=t.content.querySelectorAll("style"),s=0;s<a.length;s++){var l=a[s];if(l.hasAttribute("shady-unscoped")){if(!Ni){var c=l.textContent;if(!Ai.has(c)){Ai.add(c);var u=document.createElement("style");u.setAttribute("shady-unscoped",""),u.textContent=c,document.head.appendChild(u)}l.parentNode.removeChild(l)}}else i.push(l.textContent),l.parentNode.removeChild(l)}i=i.join("").trim()+(Xa[e]||""),Ya(this),o||((a=!r)&&(a=Di.test(i)||Oi.test(i),Di.lastIndex=0,Oi.lastIndex=0),s=li(i),a&&Ti&&this.b&&this.b.transformRules(s,e),t._styleAst=s),a=[],Ti||(a=function(t){var e={},n=[],r=0;for(var o in Fi(t,function(t){wa(t),t.index=r++,t=t.v.cssText;for(var n;n=xi.exec(t);){var o=n[1];":"!==n[2]&&(e[o]=!0)}},function(t){n.push(t)}),t.b=n,t=[],e)t.push(o);return t}(t._styleAst)),a.length&&!Ti||(s=Ni?t.content:null,e=Pa[e]||null,r=(r=ta(n,t._styleAst,null,r,o?i:"")).length?Hi(r,n.is,s,e):null,t._style=r),t.a=a}},t.ab=function(t,e){Xa[e]=t.join(" ")},t.prepareTemplateDom=function(t,e){if(!Si){var n=Xi(t);Ni||"shady"===n||t._domPrepared||(t._domPrepared=!0,function(t,e){$i(pa,t,function(t){Yi(t,e||"")})}(t.content,e))}},t.flushCustomStyles=function(){if(!Si){var t=Ya(this);if(this.a){var e=this.a.processStyles();if((t||this.a.enqueued)&&!zi(this.l.cssBuild)){if(Ti){if(!this.l.cssBuild)for(t=0;t<e.length;t++){var n=this.a.getStyleForCustomStyle(e[t]);if(n&&Ti&&this.b){var r=ki(n);Ya(this),this.b.transformRules(r),n.textContent=ji(r)}}}else{for(function(t,e){(e=e.map(function(e){return t.a.getStyleForCustomStyle(e)}).filter(function(t){return!!t})).sort(function(t,e){return(t=e.compareDocumentPosition(t))&Node.DOCUMENT_POSITION_FOLLOWING?1:t&Node.DOCUMENT_POSITION_PRECEDING?-1:0}),t.l.H.rules=e.map(function(t){return ki(t)})}(this,e),ts(this,this.c,this.l),t=0;t<e.length;t++)(n=this.a.getStyleForCustomStyle(e[t]))&&xa(n,this.l.L);this.J&&this.styleDocument()}this.a.enqueued=!1}}}},t.styleElement=function(t,e){if(Si){if(e){ma(t)||va(t,new _a(null));var n=ma(t);n.F=n.F||{},Object.assign(n.F,e),Za(this,t,n)}}else if(n=ma(t)||$a(t))if(t!==this.c&&(this.J=!0),e&&(n.F=n.F||{},Object.assign(n.F,e)),Ti)Za(this,t,n);else if(this.flush(),ts(this,t,n),n.ta&&n.ta.length){var r;e=Gi(t).is;t:{if(r=za.cache[e])for(var o=r.length-1;0<=o;o--){var i=r[o];e:{for(var a=n.ta,s=0;s<a.length;s++){var l=a[s];if(i.K[l]!==n.L[l]){a=!1;break e}}a=!0}if(a){r=i;break t}}r=void 0}a=r?r.styleElement:null,o=n.G,(i=r&&r.G)||(i=e+"-"+(i=this.Y[e]=(this.Y[e]||0)+1)),n.G=i,i=n.G,s=Ma,s=a?a.textContent||"":Oa(s,t,n.L,i);var c=(l=ma(t)).a;c&&!Ni&&c!==a&&(c._useCount--,0>=c._useCount&&c.parentNode&&c.parentNode.removeChild(c)),Ni?l.a?(l.a.textContent=s,a=l.a):s&&(a=Hi(s,i,t.shadowRoot,l.b)):a?a.parentNode||(ba&&-1<s.indexOf("@media")&&(a.textContent=s),Ui(a,null,l.b)):s&&(a=Hi(s,i,null,l.b)),a&&(a._useCount=a._useCount||0,l.a!=a&&a._useCount++,l.a=a),i=a,Ni||(a=n.G,l=s=t.getAttribute("class")||"",o&&(l=s.replace(new RegExp("\\s*x-scope\\s*"+o+"\\s*","g")," ")),s!==(l+=(l?" ":"")+"x-scope "+a)&&Wi(t,l)),r||za.store(e,n.L,i,n.G)}},t.styleDocument=function(t){this.styleSubtree(this.c,t)},t.styleSubtree=function(t,e){var n=Vi(t),r=n.shadowRoot,o=t===this.c;if((r||o)&&this.styleElement(t,e),t=o?n:r)for(t=Array.from(t.querySelectorAll("*")).filter(function(t){return Vi(t).shadowRoot}),e=0;e<t.length;e++)this.styleSubtree(t[e])},t.Ha=function(t){var e=this,n=Xi(t);if(n!==this.l.cssBuild&&(this.l.cssBuild=n),!zi(n)){var r=ki(t);Fi(r,function(t){if(Ni)ia(t);else{var r=pa;t.selector=t.parsedSelector,ia(t),t.selector=t.w=na(r,t,r.c,void 0,void 0)}Ti&&""===n&&(Ya(e),e.b&&e.b.transformRule(t))}),Ti?t.textContent=ji(r):this.l.H.rules.push(r)}},t.getComputedStyleValue=function(t,e){var n;return Ti||(n=(ma(t)||ma(Qa(this,t))).L[e]),(n=n||window.getComputedStyle(t).getPropertyValue(e))?n.trim():""},t.gb=function(t,e){var n,r=Vi(t).getRootNode();if(n=e?("string"==typeof e?e:String(e)).split(/\s/):[],!(e=r.host&&r.host.localName)&&(r=t.getAttribute("class"))){r=r.split(/\s/);for(var o=0;o<r.length;o++)if(r[o]===pa.a){e=r[o+1];break}}e&&n.push(pa.a,e),Ti||(e=ma(t))&&e.G&&n.push(Ma.a,e.G),Wi(t,n.join(" "))},t.Oa=function(t){return ma(t)},t.fb=function(t,e){Yi(t,e)},t.ib=function(t,e){Yi(t,e,!0)},t.eb=function(t){return Ha(t)},t.Ra=function(t){return Fa(t)},Ja.prototype.flush=Ja.prototype.flush,Ja.prototype.prepareTemplate=Ja.prototype.prepareTemplate,Ja.prototype.styleElement=Ja.prototype.styleElement,Ja.prototype.styleDocument=Ja.prototype.styleDocument,Ja.prototype.styleSubtree=Ja.prototype.styleSubtree,Ja.prototype.getComputedStyleValue=Ja.prototype.getComputedStyleValue,Ja.prototype.setElementClass=Ja.prototype.gb,Ja.prototype._styleInfoForNode=Ja.prototype.Oa,Ja.prototype.transformCustomStyleForDocument=Ja.prototype.Ha,Ja.prototype.getStyleAst=Ja.prototype.Ta,Ja.prototype.styleAstToString=Ja.prototype.hb,Ja.prototype.flushCustomStyles=Ja.prototype.flushCustomStyles,Ja.prototype.scopeNode=Ja.prototype.fb,Ja.prototype.unscopeNode=Ja.prototype.ib,Ja.prototype.scopeForNode=Ja.prototype.eb,Ja.prototype.currentScopeForNode=Ja.prototype.Ra,Ja.prototype.prepareAdoptedCssText=Ja.prototype.ab,Object.defineProperties(Ja.prototype,{nativeShadow:{get:function(){return Ni}},nativeCss:{get:function(){return Ti}}});var es,ns,rs=new Ja;window.ShadyCSS&&(es=window.ShadyCSS.ApplyShim,ns=window.ShadyCSS.CustomStyleInterface),window.ShadyCSS={ScopingShim:rs,prepareTemplate:function(t,e,n){rs.flushCustomStyles(),rs.prepareTemplate(t,e,n)},prepareTemplateDom:function(t,e){rs.prepareTemplateDom(t,e)},prepareTemplateStyles:function(t,e,n){rs.flushCustomStyles(),rs.prepareTemplateStyles(t,e,n)},styleSubtree:function(t,e){rs.flushCustomStyles(),rs.styleSubtree(t,e)},styleElement:function(t){rs.flushCustomStyles(),rs.styleElement(t)},styleDocument:function(t){rs.flushCustomStyles(),rs.styleDocument(t)},flushCustomStyles:function(){rs.flushCustomStyles()},getComputedStyleValue:function(t,e){return rs.getComputedStyleValue(t,e)},nativeCss:Ti,nativeShadow:Ni,cssBuild:ui,disableRuntime:Si},es&&(window.ShadyCSS.ApplyShim=es),ns&&(window.ShadyCSS.CustomStyleInterface=ns),function(t){function e(t){return""==t&&(i.call(this),this.h=!0),t.toLowerCase()}function n(t){var e=t.charCodeAt(0);return 32<e&&127>e&&-1==[34,35,60,62,63,96].indexOf(e)?t:encodeURIComponent(t)}function r(t){var e=t.charCodeAt(0);return 32<e&&127>e&&-1==[34,35,60,62,96].indexOf(e)?t:encodeURIComponent(t)}function o(t,o,a){function s(t){v.push(t)}var l=o||"scheme start",f=0,p="",_=!1,m=!1,v=[];t:for(;(void 0!=t[f-1]||0==f)&&!this.h;){var y=t[f];switch(l){case"scheme start":if(!y||!h.test(y)){if(o){s("Invalid scheme.");break t}p="",l="no scheme";continue}p+=y.toLowerCase(),l="scheme";break;case"scheme":if(y&&d.test(y))p+=y.toLowerCase();else{if(":"!=y){if(o){void 0!=y&&s("Code point not allowed in scheme: "+y);break t}p="",f=0,l="no scheme";continue}if(this.g=p,p="",o)break t;void 0!==c[this.g]&&(this.A=!0),l="file"==this.g?"relative":this.A&&a&&a.g==this.g?"relative or authority":this.A?"authority first slash":"scheme data"}break;case"scheme data":"?"==y?(this.o="?",l="query"):"#"==y?(this.u="#",l="fragment"):void 0!=y&&"\t"!=y&&"\n"!=y&&"\r"!=y&&(this.pa+=n(y));break;case"no scheme":if(a&&void 0!==c[a.g]){l="relative";continue}s("Missing scheme."),i.call(this),this.h=!0;break;case"relative or authority":if("/"!=y||"/"!=t[f+1]){s("Expected /, got: "+y),l="relative";continue}l="authority ignore slashes";break;case"relative":if(this.A=!0,"file"!=this.g&&(this.g=a.g),void 0==y){this.i=a.i,this.m=a.m,this.j=a.j.slice(),this.o=a.o,this.s=a.s,this.f=a.f;break t}if("/"==y||"\\"==y)"\\"==y&&s("\\ is an invalid code point."),l="relative slash";else if("?"==y)this.i=a.i,this.m=a.m,this.j=a.j.slice(),this.o="?",this.s=a.s,this.f=a.f,l="query";else{if("#"!=y){l=t[f+1];var g=t[f+2];("file"!=this.g||!h.test(y)||":"!=l&&"|"!=l||void 0!=g&&"/"!=g&&"\\"!=g&&"?"!=g&&"#"!=g)&&(this.i=a.i,this.m=a.m,this.s=a.s,this.f=a.f,this.j=a.j.slice(),this.j.pop()),l="relative path";continue}this.i=a.i,this.m=a.m,this.j=a.j.slice(),this.o=a.o,this.u="#",this.s=a.s,this.f=a.f,l="fragment"}break;case"relative slash":if("/"!=y&&"\\"!=y){"file"!=this.g&&(this.i=a.i,this.m=a.m,this.s=a.s,this.f=a.f),l="relative path";continue}"\\"==y&&s("\\ is an invalid code point."),l="file"==this.g?"file host":"authority ignore slashes";break;case"authority first slash":if("/"!=y){s("Expected '/', got: "+y),l="authority ignore slashes";continue}l="authority second slash";break;case"authority second slash":if(l="authority ignore slashes","/"!=y){s("Expected '/', got: "+y);continue}break;case"authority ignore slashes":if("/"!=y&&"\\"!=y){l="authority";continue}s("Expected authority, got: "+y);break;case"authority":if("@"==y){for(_&&(s("@ already seen."),p+="%40"),_=!0,y=0;y<p.length;y++)"\t"==(g=p[y])||"\n"==g||"\r"==g?s("Invalid whitespace in authority."):":"==g&&null===this.f?this.f="":(g=n(g),null!==this.f?this.f+=g:this.s+=g);p=""}else{if(void 0==y||"/"==y||"\\"==y||"?"==y||"#"==y){f-=p.length,p="",l="host";continue}p+=y}break;case"file host":if(void 0==y||"/"==y||"\\"==y||"?"==y||"#"==y){2!=p.length||!h.test(p[0])||":"!=p[1]&&"|"!=p[1]?(0!=p.length&&(this.i=e.call(this,p),p=""),l="relative path start"):l="relative path";continue}"\t"==y||"\n"==y||"\r"==y?s("Invalid whitespace in file host."):p+=y;break;case"host":case"hostname":if(":"!=y||m){if(void 0==y||"/"==y||"\\"==y||"?"==y||"#"==y){if(this.i=e.call(this,p),p="",l="relative path start",o)break t;continue}"\t"!=y&&"\n"!=y&&"\r"!=y?("["==y?m=!0:"]"==y&&(m=!1),p+=y):s("Invalid code point in host/hostname: "+y)}else if(this.i=e.call(this,p),p="",l="port","hostname"==o)break t;break;case"port":if(/[0-9]/.test(y))p+=y;else{if(void 0==y||"/"==y||"\\"==y||"?"==y||"#"==y||o){if(""!=p&&((p=parseInt(p,10))!=c[this.g]&&(this.m=p+""),p=""),o)break t;l="relative path start";continue}"\t"==y||"\n"==y||"\r"==y?s("Invalid code point in port: "+y):(i.call(this),this.h=!0)}break;case"relative path start":if("\\"==y&&s("'\\' not allowed in path."),l="relative path","/"!=y&&"\\"!=y)continue;break;case"relative path":void 0!=y&&"/"!=y&&"\\"!=y&&(o||"?"!=y&&"#"!=y)?"\t"!=y&&"\n"!=y&&"\r"!=y&&(p+=n(y)):("\\"==y&&s("\\ not allowed in relative path."),(g=u[p.toLowerCase()])&&(p=g),".."==p?(this.j.pop(),"/"!=y&&"\\"!=y&&this.j.push("")):"."==p&&"/"!=y&&"\\"!=y?this.j.push(""):"."!=p&&("file"==this.g&&0==this.j.length&&2==p.length&&h.test(p[0])&&"|"==p[1]&&(p=p[0]+":"),this.j.push(p)),p="","?"==y?(this.o="?",l="query"):"#"==y&&(this.u="#",l="fragment"));break;case"query":o||"#"!=y?void 0!=y&&"\t"!=y&&"\n"!=y&&"\r"!=y&&(this.o+=r(y)):(this.u="#",l="fragment");break;case"fragment":void 0!=y&&"\t"!=y&&"\n"!=y&&"\r"!=y&&(this.u+=y)}f++}}function i(){this.s=this.pa=this.g="",this.f=null,this.m=this.i="",this.j=[],this.u=this.o="",this.A=this.h=!1}function a(t,e){void 0===e||e instanceof a||(e=new a(String(e))),this.a=t,i.call(this),o.call(this,this.a.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,""),null,e)}var s=!1;try{var l=new URL("b","http://a");l.pathname="c%20d",s="http://a/c%20d"===l.href}catch(t){}if(!s){var c=Object.create(null);c.ftp=21,c.file=0,c.gopher=70,c.http=80,c.https=443,c.ws=80,c.wss=443;var u=Object.create(null);u["%2e"]=".",u[".%2e"]="..",u["%2e."]="..",u["%2e%2e"]="..";var h=/[a-zA-Z]/,d=/[a-zA-Z0-9\+\-\.]/;a.prototype={toString:function(){return this.href},get href(){if(this.h)return this.a;var t="";return""==this.s&&null==this.f||(t=this.s+(null!=this.f?":"+this.f:"")+"@"),this.protocol+(this.A?"//"+t+this.host:"")+this.pathname+this.o+this.u},set href(t){i.call(this),o.call(this,t)},get protocol(){return this.g+":"},set protocol(t){this.h||o.call(this,t+":","scheme start")},get host(){return this.h?"":this.m?this.i+":"+this.m:this.i},set host(t){!this.h&&this.A&&o.call(this,t,"host")},get hostname(){return this.i},set hostname(t){!this.h&&this.A&&o.call(this,t,"hostname")},get port(){return this.m},set port(t){!this.h&&this.A&&o.call(this,t,"port")},get pathname(){return this.h?"":this.A?"/"+this.j.join("/"):this.pa},set pathname(t){!this.h&&this.A&&(this.j=[],o.call(this,t,"relative path start"))},get search(){return this.h||!this.o||"?"==this.o?"":this.o},set search(t){!this.h&&this.A&&(this.o="?","?"==t[0]&&(t=t.slice(1)),o.call(this,t,"query"))},get hash(){return this.h||!this.u||"#"==this.u?"":this.u},set hash(t){this.h||(t?(this.u="#","#"==t[0]&&(t=t.slice(1)),o.call(this,t,"fragment")):this.u="")},get origin(){var t;if(this.h||!this.g)return"";switch(this.g){case"data":case"file":case"javascript":case"mailto":return"null"}return(t=this.host)?this.g+"://"+t:""}};var f=t.URL;f&&(a.createObjectURL=function(t){return f.createObjectURL.apply(f,arguments)},a.revokeObjectURL=function(t){f.revokeObjectURL(t)}),t.URL=a}}(window)}).call(this);

The same content is in 2 releases, Joomla 4.0.0-beta6 to 4.0.0-beta7. See them all, or every version of this file.