/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var e,n=new Set,o=new Map,t=function(e,i){var l,a;if(void 0!==window.ShadyCSS&&(!window.ShadyCSS.nativeShadow||window.ShadyCSS.ApplyShim)){var d=(null===(l=window.ShadyDOM)||void 0===l?void 0:l.inUse)&&!0===(null===(a=window.ShadyDOM)||void 0===a?void 0:a.noPatch)?window.ShadyDOM.wrap:function(e){return e},u=function(e){return void 0!==e&&!n.has(e)},r=function(e){var n=o.get(e);return void 0===n&&o.set(e,n=[]),n},v=new Map,h=e.createElement;e.createElement=function(n,o){var i=h.call(e,n,o),l=null==o?void 0:o.scope;if(void 0!==l&&(window.ShadyCSS.nativeShadow||window.ShadyCSS.prepareTemplateDom(i,l),u(l))){var a=r(l),d=i.content.querySelectorAll("style");a.push.apply(a,Array.from(d).map((function(e){var n;return null===(n=e.parentNode)||void 0===n||n.removeChild(e),e.textContent})))}return i};var p=document.createDocumentFragment(),S=document.createComment(""),s=i.prototype,c=s._$AI;s._$AI=function(e,i){var l,a;void 0===i&&(i=this);var v=d(this._$AA).parentNode,h=null===(l=this.options)||void 0===l?void 0:l.scope;if(v instanceof ShadowRoot&&u(h)){var s=this._$AA,w=this._$AB;p.appendChild(S),this._$AA=S,this._$AB=null,c.call(this,e,i);var y=(null==e?void 0:e._$litType$)?this._$AH._$AD.el:document.createElement("template");if(function(e,i){var l,a=r(e),d=0!==a.length;d&&((l=document.createElement("style")).textContent=a.join("\n"),i.content.appendChild(l)),n.add(e),o.delete(e),window.ShadyCSS.prepareTemplateStyles(i,e),d&&window.ShadyCSS.nativeShadow&&null!==(l=i.content.querySelector("style"))&&i.content.appendChild(l)}(h,y),p.removeChild(S),null===(a=window.ShadyCSS)||void 0===a?void 0:a.nativeShadow){var m=y.content.querySelector("style");null!==m&&p.appendChild(m.cloneNode(!0))}v.insertBefore(p,w),this._$AA=s,this._$AB=w}else c.call(this,e,i)},s._$AC=function(n){var o,i=null===(o=this.options)||void 0===o?void 0:o.scope,l=v.get(i);void 0===l&&v.set(i,l=new Map);var a=l.get(n.strings);return void 0===a&&l.set(n.strings,a=new e(n,this.options)),a}}};t.noPatchSupported=!0,null!==(e=globalThis.litHtmlPolyfillSupportDevMode)&&void 0!==e||(globalThis.litHtmlPolyfillSupportDevMode=t);