@everymatrix/general-registration 1.86.26 → 1.86.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -19,18 +19,18 @@ const di=globalThis,ci=di.ShadowRoot&&(void 0===di.ShadyCSS||di.ShadyCSS.nativeS
|
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/,{is:gi,defineProperty:bi,getOwnPropertyDescriptor:Ei,getOwnPropertyNames:yi,getOwnPropertySymbols:wi,getPrototypeOf:ki}=Object,xi=globalThis,Si=xi.trustedTypes,Ai=Si?Si.emptyScript:"",Ci=xi.reactiveElementPolyfillSupport,Ii={toAttribute(t,e){switch(e){case Boolean:t=t?Ai:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},Ti=(t,e)=>!gi(t,e),Oi={attribute:!0,type:String,converter:Ii,reflect:!1,useDefault:!1,hasChanged:Ti};null!=Symbol.metadata||(Symbol.metadata=Symbol("metadata")),null!=xi.litPropertyMetadata||(xi.litPropertyMetadata=new WeakMap);
|
|
22
|
+
*/,{is:gi,defineProperty:bi,getOwnPropertyDescriptor:Ei,getOwnPropertyNames:yi,getOwnPropertySymbols:wi,getPrototypeOf:ki}=Object,xi=globalThis,Si=xi.trustedTypes,Ai=Si?Si.emptyScript:"",Ci=xi.reactiveElementPolyfillSupport,Ii={toAttribute(t,e){switch(e){case Boolean:t=t?Ai:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},Ti=(t,e)=>!gi(t,e),Oi={attribute:!0,type:String,converter:Ii,reflect:!1,useDefault:!1,hasChanged:Ti};null!=Symbol.metadata||(Symbol.metadata=Symbol("metadata")),null!=xi.litPropertyMetadata||(xi.litPropertyMetadata=new WeakMap);let Ni=class extends HTMLElement{static addInitializer(t){var e;this._$Ei(),(null!=(e=this.l)?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Oi){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,e);void 0!==r&&bi(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){var r;const{get:o,set:s}=null!=(r=Ei(this.prototype,t))?r:{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const r=null==o?void 0:o.call(this);null==s||s.call(this,e),this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return null!=(e=this.elementProperties.get(t))?e:Oi}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;const t=ki(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty("finalized"))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty("properties")){const t=this.properties,e=[...yi(t),...wi(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(fi(t))}else void 0!==t&&e.push(fi(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),null==(t=this.constructor.l)||t.forEach((t=>t(this)))}addController(t){var e,i;(null!=(e=this._$EO)?e:this._$EO=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&(null==(i=t.hostConnected)||i.call(t))}removeController(t){var e;null==(e=this._$EO)||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var t;const e=null!=(t=this.shadowRoot)?t:this.attachShadow(this.constructor.shadowRootOptions);return _i(e,this.constructor.elementStyles),e}connectedCallback(){var t;null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostConnected)?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostDisconnected)?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){var i;const r=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,r);if(void 0!==o&&!0===r.reflect){const s=(void 0!==(null==(i=r.converter)?void 0:i.toAttribute)?r.converter:Ii).toAttribute(e,r.type);this._$Em=t,null==s?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,e){var i,r,o;const s=this.constructor,n=s._$Eh.get(t);if(void 0!==n&&this._$Em!==n){const t=s.getPropertyOptions(n),a="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null==(i=t.converter)?void 0:i.fromAttribute)?t.converter:Ii;this._$Em=n;const l=a.fromAttribute(e,t.type);this[n]=null!=(o=null!=l?l:null==(r=this._$Ej)?void 0:r.get(n))?o:l,this._$Em=null}}requestUpdate(t,e,i,r=!1,o){var s,n;if(void 0!==t){const a=this.constructor;if(!1===r&&(o=this[t]),null!=i||(i=a.getPropertyOptions(t)),!((null!=(s=i.hasChanged)?s:Ti)(o,e)||i.useDefault&&i.reflect&&o===(null==(n=this._$Ej)?void 0:n.get(t))&&!this.hasAttribute(a._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:r,wrapped:o},s){var n,a,l;i&&!(null!=(n=this._$Ej)?n:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,null!=(a=null!=s?s:e)?a:this[t]),!0!==o||void 0!==s)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===r&&this._$Em!==t&&(null!=(l=this._$Eq)?l:this._$Eq=new Set).add(t))}_$EP(){return ai(this,null,(function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&(yield t),!this.isUpdatePending}))}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t){const{wrapped:t}=i,r=this[e];!0!==t||this._$AL.has(e)||void 0===r||this.C(e,void 0,i,r)}}let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostUpdate)?void 0:e.call(t)})),this.update(i)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null==(e=this._$EO)||e.forEach((t=>{var e;return null==(e=t.hostUpdated)?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach((t=>this._$ET(t,this[t])))),this._$EM()}updated(t){}firstUpdated(t){}};var Ri;Ni.elementStyles=[],Ni.shadowRootOptions={mode:"open"},Ni.elementProperties=new Map,Ni.finalized=new Map,null==Ci||Ci({ReactiveElement:Ni}),(null!=(Ri=xi.reactiveElementVersions)?Ri:xi.reactiveElementVersions=[]).push("2.1.2");
|
|
23
23
|
/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
27
|
*/
|
|
28
|
-
const Di=globalThis,zi=Di.trustedTypes,Gi=zi?zi.createPolicy("lit-html",{createHTML:t=>t}):void 0,Mi="$lit$",Bi=`lit$${Math.random().toFixed(9).slice(2)}$`,Ui="?"+Bi,Pi=`<${Ui}>`,Li=document,ji=()=>Li.createComment(""),Fi=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Vi=Array.isArray,Hi="[ \t\n\f\r]",qi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,$i=/-->/g,Xi=/>/g,Ki=RegExp(`>|${Hi}(?:([^\\s"'>=/]+)(${Hi}*=${Hi}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Yi=/'/g,Wi=/"/g,Zi=/^(?:script|style|textarea|title)$/i,Qi=Symbol.for("lit-noChange"),Ji=Symbol.for("lit-nothing"),tr=new WeakMap,er=Li.createTreeWalker(Li,129);function ir(t,e){if(!Vi(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Gi?Gi.createHTML(e):e}class rr{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,s=0;const n=t.length-1,a=this.parts,[l,h]=((t,e)=>{const i=t.length-1,r=[];let o,s=2===e?"<svg>":3===e?"<math>":"",n=qi;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,d=0;for(;d<i.length&&(n.lastIndex=d,l=n.exec(i),null!==l);)d=n.lastIndex,n===qi?"!--"===l[1]?n=$i:void 0!==l[1]?n=Xi:void 0!==l[2]?(Zi.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=Ki):void 0!==l[3]&&(n=Ki):n===Ki?">"===l[0]?(n=null!=o?o:qi,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?Ki:'"'===l[3]?Wi:Yi):n===Wi||n===Yi?n=Ki:n===$i||n===Xi?n=qi:(n=Ki,o=void 0);const c=n===Ki&&t[e+1].startsWith("/>")?" ":"";s+=n===qi?i+Pi:h>=0?(r.push(a),i.slice(0,h)+Mi+i.slice(h)+Bi+c):i+Bi+(-2===h?e:c)}return[ir(t,s+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),r]})(t,e);if(this.el=rr.createElement(l,i),er.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=er.nextNode())&&a.length<n;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(Mi)){const e=h[s++],i=r.getAttribute(t).split(Bi),n=/([.?@])?(.*)/.exec(e);a.push({type:1,index:o,name:n[2],strings:i,ctor:"."===n[1]?lr:"?"===n[1]?hr:"@"===n[1]?dr:ar}),r.removeAttribute(t)}else t.startsWith(Bi)&&(a.push({type:6,index:o}),r.removeAttribute(t));if(Zi.test(r.tagName)){const t=r.textContent.split(Bi),e=t.length-1;if(e>0){r.textContent=zi?zi.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],ji()),er.nextNode(),a.push({type:2,index:++o});r.append(t[e],ji())}}}else if(8===r.nodeType)if(r.data===Ui)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(Bi,t+1));)a.push({type:7,index:o}),t+=Bi.length-1}o++}}static createElement(t,e){const i=Li.createElement("template");return i.innerHTML=t,i}}function or(t,e,i=t,r){var o,s,n;if(e===Qi)return e;let a=void 0!==r?null==(o=i._$Co)?void 0:o[r]:i._$Cl;const l=Fi(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==l&&(null==(s=null==a?void 0:a._$AO)||s.call(a,!1),void 0===l?a=void 0:(a=new l(t),a._$AT(t,i,r)),void 0!==r?(null!=(n=i._$Co)?n:i._$Co=[])[r]=a:i._$Cl=a),void 0!==a&&(e=or(t,a._$AS(t,e.values),a,r)),e}class sr{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:r}=this._$AD,o=(null!=(e=null==t?void 0:t.creationScope)?e:Li).importNode(i,!0);er.currentNode=o;let s=er.nextNode(),n=0,a=0,l=r[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new nr(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new cr(s,this,t)),this._$AV.push(e),l=r[++a]}n!==(null==l?void 0:l.index)&&(s=er.nextNode(),n++)}return er.currentNode=Li,o}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class nr{get _$AU(){var t,e;return null!=(e=null==(t=this._$AM)?void 0:t._$AU)?e:this._$Cv}constructor(t,e,i,r){var o;this.type=2,this._$AH=Ji,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cv=null==(o=null==r?void 0:r.isConnected)||o}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){var i;t=or(this,t,e),Fi(t)?t===Ji||null==t||""===t?(this._$AH!==Ji&&this._$AR(),this._$AH=Ji):t!==this._$AH&&t!==Qi&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):Vi(i=t)||"function"==typeof(null==i?void 0:i[Symbol.iterator])?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Ji&&Fi(this._$AH)?this._$AA.nextSibling.data=t:this.T(Li.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=rr.createElement(ir(r.h,r.h[0]),this.options)),r);if((null==(e=this._$AH)?void 0:e._$AD)===o)this._$AH.p(i);else{const t=new sr(o,this),e=t.u(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=tr.get(t.strings);return void 0===e&&tr.set(t.strings,e=new rr(t)),e}k(t){Vi(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new nr(this.O(ji()),this.O(ji()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for(null==(i=this._$AP)||i.call(this,!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cv=t,null==(e=this._$AP)||e.call(this,t))}}class ar{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,r,o){this.type=1,this._$AH=Ji,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Ji}_$AI(t,e=this,i,r){const o=this.strings;let s=!1;if(void 0===o)t=or(this,t,e,0),s=!Fi(t)||t!==this._$AH&&t!==Qi,s&&(this._$AH=t);else{const r=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=or(this,r[i+n],e,n),a===Qi&&(a=this._$AH[n]),s||(s=!Fi(a)||a!==this._$AH[n]),a===Ji?t=Ji:t!==Ji&&(t+=(null!=a?a:"")+o[n+1]),this._$AH[n]=a}s&&!r&&this.j(t)}j(t){t===Ji?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class lr extends ar{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Ji?void 0:t}}class hr extends ar{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Ji)}}class dr extends ar{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){var i;if((t=null!=(i=or(this,t,e,0))?i:Ji)===Qi)return;const r=this._$AH,o=t===Ji&&r!==Ji||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==Ji&&(r===Ji||o);o&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!=(i=null==(e=this.options)?void 0:e.host)?i:this.element,t):this._$AH.handleEvent(t)}}class cr{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){or(this,t)}}const ur=Di.litHtmlPolyfillSupport;var mr;null==ur||ur(rr,nr),(null!=(mr=Di.litHtmlVersions)?mr:Di.litHtmlVersions=[]).push("3.3.
|
|
28
|
+
const Di=globalThis,zi=Di.trustedTypes,Gi=zi?zi.createPolicy("lit-html",{createHTML:t=>t}):void 0,Mi="$lit$",Bi=`lit$${Math.random().toFixed(9).slice(2)}$`,Ui="?"+Bi,Pi=`<${Ui}>`,Li=document,ji=()=>Li.createComment(""),Fi=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Vi=Array.isArray,Hi="[ \t\n\f\r]",qi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,$i=/-->/g,Xi=/>/g,Ki=RegExp(`>|${Hi}(?:([^\\s"'>=/]+)(${Hi}*=${Hi}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Yi=/'/g,Wi=/"/g,Zi=/^(?:script|style|textarea|title)$/i,Qi=Symbol.for("lit-noChange"),Ji=Symbol.for("lit-nothing"),tr=new WeakMap,er=Li.createTreeWalker(Li,129);function ir(t,e){if(!Vi(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Gi?Gi.createHTML(e):e}class rr{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,s=0;const n=t.length-1,a=this.parts,[l,h]=((t,e)=>{const i=t.length-1,r=[];let o,s=2===e?"<svg>":3===e?"<math>":"",n=qi;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,d=0;for(;d<i.length&&(n.lastIndex=d,l=n.exec(i),null!==l);)d=n.lastIndex,n===qi?"!--"===l[1]?n=$i:void 0!==l[1]?n=Xi:void 0!==l[2]?(Zi.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=Ki):void 0!==l[3]&&(n=Ki):n===Ki?">"===l[0]?(n=null!=o?o:qi,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?Ki:'"'===l[3]?Wi:Yi):n===Wi||n===Yi?n=Ki:n===$i||n===Xi?n=qi:(n=Ki,o=void 0);const c=n===Ki&&t[e+1].startsWith("/>")?" ":"";s+=n===qi?i+Pi:h>=0?(r.push(a),i.slice(0,h)+Mi+i.slice(h)+Bi+c):i+Bi+(-2===h?e:c)}return[ir(t,s+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),r]})(t,e);if(this.el=rr.createElement(l,i),er.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=er.nextNode())&&a.length<n;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(Mi)){const e=h[s++],i=r.getAttribute(t).split(Bi),n=/([.?@])?(.*)/.exec(e);a.push({type:1,index:o,name:n[2],strings:i,ctor:"."===n[1]?lr:"?"===n[1]?hr:"@"===n[1]?dr:ar}),r.removeAttribute(t)}else t.startsWith(Bi)&&(a.push({type:6,index:o}),r.removeAttribute(t));if(Zi.test(r.tagName)){const t=r.textContent.split(Bi),e=t.length-1;if(e>0){r.textContent=zi?zi.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],ji()),er.nextNode(),a.push({type:2,index:++o});r.append(t[e],ji())}}}else if(8===r.nodeType)if(r.data===Ui)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(Bi,t+1));)a.push({type:7,index:o}),t+=Bi.length-1}o++}}static createElement(t,e){const i=Li.createElement("template");return i.innerHTML=t,i}}function or(t,e,i=t,r){var o,s,n;if(e===Qi)return e;let a=void 0!==r?null==(o=i._$Co)?void 0:o[r]:i._$Cl;const l=Fi(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==l&&(null==(s=null==a?void 0:a._$AO)||s.call(a,!1),void 0===l?a=void 0:(a=new l(t),a._$AT(t,i,r)),void 0!==r?(null!=(n=i._$Co)?n:i._$Co=[])[r]=a:i._$Cl=a),void 0!==a&&(e=or(t,a._$AS(t,e.values),a,r)),e}class sr{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:r}=this._$AD,o=(null!=(e=null==t?void 0:t.creationScope)?e:Li).importNode(i,!0);er.currentNode=o;let s=er.nextNode(),n=0,a=0,l=r[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new nr(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new cr(s,this,t)),this._$AV.push(e),l=r[++a]}n!==(null==l?void 0:l.index)&&(s=er.nextNode(),n++)}return er.currentNode=Li,o}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class nr{get _$AU(){var t,e;return null!=(e=null==(t=this._$AM)?void 0:t._$AU)?e:this._$Cv}constructor(t,e,i,r){var o;this.type=2,this._$AH=Ji,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cv=null==(o=null==r?void 0:r.isConnected)||o}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){var i;t=or(this,t,e),Fi(t)?t===Ji||null==t||""===t?(this._$AH!==Ji&&this._$AR(),this._$AH=Ji):t!==this._$AH&&t!==Qi&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):Vi(i=t)||"function"==typeof(null==i?void 0:i[Symbol.iterator])?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Ji&&Fi(this._$AH)?this._$AA.nextSibling.data=t:this.T(Li.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=rr.createElement(ir(r.h,r.h[0]),this.options)),r);if((null==(e=this._$AH)?void 0:e._$AD)===o)this._$AH.p(i);else{const t=new sr(o,this),e=t.u(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=tr.get(t.strings);return void 0===e&&tr.set(t.strings,e=new rr(t)),e}k(t){Vi(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new nr(this.O(ji()),this.O(ji()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for(null==(i=this._$AP)||i.call(this,!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cv=t,null==(e=this._$AP)||e.call(this,t))}}class ar{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,r,o){this.type=1,this._$AH=Ji,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Ji}_$AI(t,e=this,i,r){const o=this.strings;let s=!1;if(void 0===o)t=or(this,t,e,0),s=!Fi(t)||t!==this._$AH&&t!==Qi,s&&(this._$AH=t);else{const r=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=or(this,r[i+n],e,n),a===Qi&&(a=this._$AH[n]),s||(s=!Fi(a)||a!==this._$AH[n]),a===Ji?t=Ji:t!==Ji&&(t+=(null!=a?a:"")+o[n+1]),this._$AH[n]=a}s&&!r&&this.j(t)}j(t){t===Ji?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class lr extends ar{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Ji?void 0:t}}class hr extends ar{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Ji)}}class dr extends ar{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){var i;if((t=null!=(i=or(this,t,e,0))?i:Ji)===Qi)return;const r=this._$AH,o=t===Ji&&r!==Ji||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==Ji&&(r===Ji||o);o&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!=(i=null==(e=this.options)?void 0:e.host)?i:this.element,t):this._$AH.handleEvent(t)}}class cr{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){or(this,t)}}const ur=Di.litHtmlPolyfillSupport;var mr;null==ur||ur(rr,nr),(null!=(mr=Di.litHtmlVersions)?mr:Di.litHtmlVersions=[]).push("3.3.2");const pr=(t,e,i)=>{var r,o;const s=null!=(r=null==i?void 0:i.renderBefore)?r:e;let n=s._$litPart$;if(void 0===n){const t=null!=(o=null==i?void 0:i.renderBefore)?o:null;s._$litPart$=n=new nr(e.insertBefore(ji(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n
|
|
29
29
|
/**
|
|
30
30
|
* @license
|
|
31
31
|
* Copyright 2017 Google LLC
|
|
32
32
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
33
|
-
*/},vr=globalThis;class _r extends Ni{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return null!=(t=this.renderOptions).renderBefore||(t.renderBefore=e.firstChild),e}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=pr(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null==(t=this._$Do)||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null==(t=this._$Do)||t.setConnected(!1)}render(){return Qi}}var fr;_r._$litElement$=!0,_r.finalized=!0,null==(fr=vr.litElementHydrateSupport)||fr.call(vr,{LitElement:_r});const gr=vr.litElementPolyfillSupport;var br;null==gr||gr({LitElement:_r}),(null!=(br=vr.litElementVersions)?br:vr.litElementVersions=[]).push("4.2.
|
|
33
|
+
*/},vr=globalThis;class _r extends Ni{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return null!=(t=this.renderOptions).renderBefore||(t.renderBefore=e.firstChild),e}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=pr(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null==(t=this._$Do)||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null==(t=this._$Do)||t.setConnected(!1)}render(){return Qi}}var fr;_r._$litElement$=!0,_r.finalized=!0,null==(fr=vr.litElementHydrateSupport)||fr.call(vr,{LitElement:_r});const gr=vr.litElementPolyfillSupport;var br;null==gr||gr({LitElement:_r}),(null!=(br=vr.litElementVersions)?br:vr.litElementVersions=[]).push("4.2.2");
|
|
34
34
|
/**
|
|
35
35
|
* @license
|
|
36
36
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|