@everymatrix/helper-filters 1.86.27 → 1.86.29
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 C=globalThis,S=C.ShadowRoot&&(void 0===C.ShadyCSS||C.ShadyCSS.nativeShadow
|
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/,{is:P,defineProperty:E,getOwnPropertyDescriptor:O,getOwnPropertyNames:B,getOwnPropertySymbols:F,getPrototypeOf:N}=Object,j=globalThis,R=j.trustedTypes,L=R?R.emptyScript:"",$=j.reactiveElementPolyfillSupport,W={toAttribute(t,e){switch(e){case Boolean:t=t?L: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}},V=(t,e)=>!P(t,e),q={attribute:!0,type:String,converter:W,reflect:!1,useDefault:!1,hasChanged:V};null!=Symbol.metadata||(Symbol.metadata=Symbol("metadata")),null!=j.litPropertyMetadata||(j.litPropertyMetadata=new WeakMap);
|
|
22
|
+
*/,{is:P,defineProperty:E,getOwnPropertyDescriptor:O,getOwnPropertyNames:B,getOwnPropertySymbols:F,getPrototypeOf:N}=Object,j=globalThis,R=j.trustedTypes,L=R?R.emptyScript:"",$=j.reactiveElementPolyfillSupport,W={toAttribute(t,e){switch(e){case Boolean:t=t?L: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}},V=(t,e)=>!P(t,e),q={attribute:!0,type:String,converter:W,reflect:!1,useDefault:!1,hasChanged:V};null!=Symbol.metadata||(Symbol.metadata=Symbol("metadata")),null!=j.litPropertyMetadata||(j.litPropertyMetadata=new WeakMap);let H=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=q){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(),o=this.getPropertyDescriptor(t,i,e);void 0!==o&&E(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){var o;const{get:s,set:r}=null!=(o=O(this.prototype,t))?o:{get(){return this[e]},set(t){this[e]=t}};return{get:s,set(e){const o=null==s?void 0:s.call(this);null==r||r.call(this,e),this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return null!=(e=this.elementProperties.get(t))?e:q}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;const t=N(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=[...B(t),...F(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(M(t))}else void 0!==t&&e.push(M(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 D(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 o=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,o);if(void 0!==s&&!0===o.reflect){const r=(void 0!==(null==(i=o.converter)?void 0:i.toAttribute)?o.converter:W).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(s):this.setAttribute(s,r),this._$Em=null}}_$AK(t,e){var i,o,s;const r=this.constructor,a=r._$Eh.get(t);if(void 0!==a&&this._$Em!==a){const t=r.getPropertyOptions(a),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null==(i=t.converter)?void 0:i.fromAttribute)?t.converter:W;this._$Em=a;const l=n.fromAttribute(e,t.type);this[a]=null!=(s=null!=l?l:null==(o=this._$Ej)?void 0:o.get(a))?s:l,this._$Em=null}}requestUpdate(t,e,i,o=!1,s){var r,a;if(void 0!==t){const n=this.constructor;if(!1===o&&(s=this[t]),null!=i||(i=n.getPropertyOptions(t)),!((null!=(r=i.hasChanged)?r:V)(s,e)||i.useDefault&&i.reflect&&s===(null==(a=this._$Ej)?void 0:a.get(t))&&!this.hasAttribute(n._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:o,wrapped:s},r){var a,n,l;i&&!(null!=(a=this._$Ej)?a:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,null!=(n=null!=r?r:e)?n:this[t]),!0!==s||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===o&&this._$Em!==t&&(null!=(l=this._$Eq)?l:this._$Eq=new Set).add(t))}_$EP(){return _(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,o=this[e];!0!==t||this._$AL.has(e)||void 0===o||this.C(e,void 0,i,o)}}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 U;H.elementStyles=[],H.shadowRootOptions={mode:"open"},H.elementProperties=new Map,H.finalized=new Map,null==$||$({ReactiveElement:H}),(null!=(U=j.reactiveElementVersions)?U:j.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 Y=globalThis,G=Y.trustedTypes,K=G?G.createPolicy("lit-html",{createHTML:t=>t}):void 0,J="$lit$",X=`lit$${Math.random().toFixed(9).slice(2)}$`,Q="?"+X,Z=`<${Q}>`,tt=document,et=()=>tt.createComment(""),it=t=>null===t||"object"!=typeof t&&"function"!=typeof t,ot=Array.isArray,st="[ \t\n\f\r]",rt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,at=/-->/g,nt=/>/g,lt=RegExp(`>|${st}(?:([^\\s"'>=/]+)(${st}*=${st}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ht=/'/g,ct=/"/g,dt=/^(?:script|style|textarea|title)$/i,ut=Symbol.for("lit-noChange"),pt=Symbol.for("lit-nothing"),mt=new WeakMap,vt=tt.createTreeWalker(tt,129);function ft(t,e){if(!ot(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==K?K.createHTML(e):e}class bt{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const a=t.length-1,n=this.parts,[l,h]=((t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":3===e?"<math>":"",a=rt;for(let e=0;e<i;e++){const i=t[e];let n,l,h=-1,c=0;for(;c<i.length&&(a.lastIndex=c,l=a.exec(i),null!==l);)c=a.lastIndex,a===rt?"!--"===l[1]?a=at:void 0!==l[1]?a=nt:void 0!==l[2]?(dt.test(l[2])&&(s=RegExp("</"+l[2],"g")),a=lt):void 0!==l[3]&&(a=lt):a===lt?">"===l[0]?(a=null!=s?s:rt,h=-1):void 0===l[1]?h=-2:(h=a.lastIndex-l[2].length,n=l[1],a=void 0===l[3]?lt:'"'===l[3]?ct:ht):a===ct||a===ht?a=lt:a===at||a===nt?a=rt:(a=lt,s=void 0);const d=a===lt&&t[e+1].startsWith("/>")?" ":"";r+=a===rt?i+Z:h>=0?(o.push(n),i.slice(0,h)+J+i.slice(h)+X+d):i+X+(-2===h?e:d)}return[ft(t,r+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),o]})(t,e);if(this.el=bt.createElement(l,i),vt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=vt.nextNode())&&n.length<a;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(J)){const e=h[r++],i=o.getAttribute(t).split(X),a=/([.?@])?(.*)/.exec(e);n.push({type:1,index:s,name:a[2],strings:i,ctor:"."===a[1]?xt:"?"===a[1]?kt:"@"===a[1]?Ct:_t}),o.removeAttribute(t)}else t.startsWith(X)&&(n.push({type:6,index:s}),o.removeAttribute(t));if(dt.test(o.tagName)){const t=o.textContent.split(X),e=t.length-1;if(e>0){o.textContent=G?G.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],et()),vt.nextNode(),n.push({type:2,index:++s});o.append(t[e],et())}}}else if(8===o.nodeType)if(o.data===Q)n.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(X,t+1));)n.push({type:7,index:s}),t+=X.length-1}s++}}static createElement(t,e){const i=tt.createElement("template");return i.innerHTML=t,i}}function gt(t,e,i=t,o){var s,r,a;if(e===ut)return e;let n=void 0!==o?null==(s=i._$Co)?void 0:s[o]:i._$Cl;const l=it(e)?void 0:e._$litDirective$;return(null==n?void 0:n.constructor)!==l&&(null==(r=null==n?void 0:n._$AO)||r.call(n,!1),void 0===l?n=void 0:(n=new l(t),n._$AT(t,i,o)),void 0!==o?(null!=(a=i._$Co)?a:i._$Co=[])[o]=n:i._$Cl=n),void 0!==n&&(e=gt(t,n._$AS(t,e.values),n,o)),e}class yt{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:o}=this._$AD,s=(null!=(e=null==t?void 0:t.creationScope)?e:tt).importNode(i,!0);vt.currentNode=s;let r=vt.nextNode(),a=0,n=0,l=o[0];for(;void 0!==l;){if(a===l.index){let e;2===l.type?e=new wt(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new St(r,this,t)),this._$AV.push(e),l=o[++n]}a!==(null==l?void 0:l.index)&&(r=vt.nextNode(),a++)}return vt.currentNode=tt,s}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 wt{get _$AU(){var t,e;return null!=(e=null==(t=this._$AM)?void 0:t._$AU)?e:this._$Cv}constructor(t,e,i,o){var s;this.type=2,this._$AH=pt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=null==(s=null==o?void 0:o.isConnected)||s}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=gt(this,t,e),it(t)?t===pt||null==t||""===t?(this._$AH!==pt&&this._$AR(),this._$AH=pt):t!==this._$AH&&t!==ut&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):ot(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!==pt&&it(this._$AH)?this._$AA.nextSibling.data=t:this.T(tt.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=bt.createElement(ft(o.h,o.h[0]),this.options)),o);if((null==(e=this._$AH)?void 0:e._$AD)===s)this._$AH.p(i);else{const t=new yt(s,this),e=t.u(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=mt.get(t.strings);return void 0===e&&mt.set(t.strings,e=new bt(t)),e}k(t){ot(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new wt(this.O(et()),this.O(et()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$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 _t{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,s){this.type=1,this._$AH=pt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=pt}_$AI(t,e=this,i,o){const s=this.strings;let r=!1;if(void 0===s)t=gt(this,t,e,0),r=!it(t)||t!==this._$AH&&t!==ut,r&&(this._$AH=t);else{const o=t;let a,n;for(t=s[0],a=0;a<s.length-1;a++)n=gt(this,o[i+a],e,a),n===ut&&(n=this._$AH[a]),r||(r=!it(n)||n!==this._$AH[a]),n===pt?t=pt:t!==pt&&(t+=(null!=n?n:"")+s[a+1]),this._$AH[a]=n}r&&!o&&this.j(t)}j(t){t===pt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class xt extends _t{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===pt?void 0:t}}class kt extends _t{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==pt)}}class Ct extends _t{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!=(i=gt(this,t,e,0))?i:pt)===ut)return;const o=this._$AH,s=t===pt&&o!==pt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==pt&&(o===pt||s);s&&this.element.removeEventListener(this.name,this,o),r&&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 St{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){gt(this,t)}}const At=Y.litHtmlPolyfillSupport;var zt;null==At||At(bt,wt),(null!=(zt=Y.litHtmlVersions)?zt:Y.litHtmlVersions=[]).push("3.3.
|
|
28
|
+
const Y=globalThis,G=Y.trustedTypes,K=G?G.createPolicy("lit-html",{createHTML:t=>t}):void 0,J="$lit$",X=`lit$${Math.random().toFixed(9).slice(2)}$`,Q="?"+X,Z=`<${Q}>`,tt=document,et=()=>tt.createComment(""),it=t=>null===t||"object"!=typeof t&&"function"!=typeof t,ot=Array.isArray,st="[ \t\n\f\r]",rt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,at=/-->/g,nt=/>/g,lt=RegExp(`>|${st}(?:([^\\s"'>=/]+)(${st}*=${st}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ht=/'/g,ct=/"/g,dt=/^(?:script|style|textarea|title)$/i,ut=Symbol.for("lit-noChange"),pt=Symbol.for("lit-nothing"),mt=new WeakMap,vt=tt.createTreeWalker(tt,129);function ft(t,e){if(!ot(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==K?K.createHTML(e):e}class bt{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const a=t.length-1,n=this.parts,[l,h]=((t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":3===e?"<math>":"",a=rt;for(let e=0;e<i;e++){const i=t[e];let n,l,h=-1,c=0;for(;c<i.length&&(a.lastIndex=c,l=a.exec(i),null!==l);)c=a.lastIndex,a===rt?"!--"===l[1]?a=at:void 0!==l[1]?a=nt:void 0!==l[2]?(dt.test(l[2])&&(s=RegExp("</"+l[2],"g")),a=lt):void 0!==l[3]&&(a=lt):a===lt?">"===l[0]?(a=null!=s?s:rt,h=-1):void 0===l[1]?h=-2:(h=a.lastIndex-l[2].length,n=l[1],a=void 0===l[3]?lt:'"'===l[3]?ct:ht):a===ct||a===ht?a=lt:a===at||a===nt?a=rt:(a=lt,s=void 0);const d=a===lt&&t[e+1].startsWith("/>")?" ":"";r+=a===rt?i+Z:h>=0?(o.push(n),i.slice(0,h)+J+i.slice(h)+X+d):i+X+(-2===h?e:d)}return[ft(t,r+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),o]})(t,e);if(this.el=bt.createElement(l,i),vt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=vt.nextNode())&&n.length<a;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(J)){const e=h[r++],i=o.getAttribute(t).split(X),a=/([.?@])?(.*)/.exec(e);n.push({type:1,index:s,name:a[2],strings:i,ctor:"."===a[1]?xt:"?"===a[1]?kt:"@"===a[1]?Ct:_t}),o.removeAttribute(t)}else t.startsWith(X)&&(n.push({type:6,index:s}),o.removeAttribute(t));if(dt.test(o.tagName)){const t=o.textContent.split(X),e=t.length-1;if(e>0){o.textContent=G?G.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],et()),vt.nextNode(),n.push({type:2,index:++s});o.append(t[e],et())}}}else if(8===o.nodeType)if(o.data===Q)n.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(X,t+1));)n.push({type:7,index:s}),t+=X.length-1}s++}}static createElement(t,e){const i=tt.createElement("template");return i.innerHTML=t,i}}function gt(t,e,i=t,o){var s,r,a;if(e===ut)return e;let n=void 0!==o?null==(s=i._$Co)?void 0:s[o]:i._$Cl;const l=it(e)?void 0:e._$litDirective$;return(null==n?void 0:n.constructor)!==l&&(null==(r=null==n?void 0:n._$AO)||r.call(n,!1),void 0===l?n=void 0:(n=new l(t),n._$AT(t,i,o)),void 0!==o?(null!=(a=i._$Co)?a:i._$Co=[])[o]=n:i._$Cl=n),void 0!==n&&(e=gt(t,n._$AS(t,e.values),n,o)),e}class yt{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:o}=this._$AD,s=(null!=(e=null==t?void 0:t.creationScope)?e:tt).importNode(i,!0);vt.currentNode=s;let r=vt.nextNode(),a=0,n=0,l=o[0];for(;void 0!==l;){if(a===l.index){let e;2===l.type?e=new wt(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new St(r,this,t)),this._$AV.push(e),l=o[++n]}a!==(null==l?void 0:l.index)&&(r=vt.nextNode(),a++)}return vt.currentNode=tt,s}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 wt{get _$AU(){var t,e;return null!=(e=null==(t=this._$AM)?void 0:t._$AU)?e:this._$Cv}constructor(t,e,i,o){var s;this.type=2,this._$AH=pt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=null==(s=null==o?void 0:o.isConnected)||s}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=gt(this,t,e),it(t)?t===pt||null==t||""===t?(this._$AH!==pt&&this._$AR(),this._$AH=pt):t!==this._$AH&&t!==ut&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):ot(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!==pt&&it(this._$AH)?this._$AA.nextSibling.data=t:this.T(tt.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=bt.createElement(ft(o.h,o.h[0]),this.options)),o);if((null==(e=this._$AH)?void 0:e._$AD)===s)this._$AH.p(i);else{const t=new yt(s,this),e=t.u(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=mt.get(t.strings);return void 0===e&&mt.set(t.strings,e=new bt(t)),e}k(t){ot(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new wt(this.O(et()),this.O(et()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$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 _t{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,s){this.type=1,this._$AH=pt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=pt}_$AI(t,e=this,i,o){const s=this.strings;let r=!1;if(void 0===s)t=gt(this,t,e,0),r=!it(t)||t!==this._$AH&&t!==ut,r&&(this._$AH=t);else{const o=t;let a,n;for(t=s[0],a=0;a<s.length-1;a++)n=gt(this,o[i+a],e,a),n===ut&&(n=this._$AH[a]),r||(r=!it(n)||n!==this._$AH[a]),n===pt?t=pt:t!==pt&&(t+=(null!=n?n:"")+s[a+1]),this._$AH[a]=n}r&&!o&&this.j(t)}j(t){t===pt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class xt extends _t{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===pt?void 0:t}}class kt extends _t{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==pt)}}class Ct extends _t{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!=(i=gt(this,t,e,0))?i:pt)===ut)return;const o=this._$AH,s=t===pt&&o!==pt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==pt&&(o===pt||s);s&&this.element.removeEventListener(this.name,this,o),r&&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 St{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){gt(this,t)}}const At=Y.litHtmlPolyfillSupport;var zt;null==At||At(bt,wt),(null!=(zt=Y.litHtmlVersions)?zt:Y.litHtmlVersions=[]).push("3.3.2");const Tt=(t,e,i)=>{var o,s;const r=null!=(o=null==i?void 0:i.renderBefore)?o:e;let a=r._$litPart$;if(void 0===a){const t=null!=(s=null==i?void 0:i.renderBefore)?s:null;r._$litPart$=a=new wt(e.insertBefore(et(),t),t,void 0,null!=i?i:{})}return a._$AI(t),a
|
|
29
29
|
/**
|
|
30
30
|
* @license
|
|
31
31
|
* Copyright 2017 Google LLC
|
|
32
32
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
33
|
-
*/},It=globalThis;class Dt extends H{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=Tt(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 ut}}var Mt;Dt._$litElement$=!0,Dt.finalized=!0,null==(Mt=It.litElementHydrateSupport)||Mt.call(It,{LitElement:Dt});const Pt=It.litElementPolyfillSupport;var Et;null==Pt||Pt({LitElement:Dt}),(null!=(Et=It.litElementVersions)?Et:It.litElementVersions=[]).push("4.2.
|
|
33
|
+
*/},It=globalThis;class Dt extends H{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=Tt(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 ut}}var Mt;Dt._$litElement$=!0,Dt.finalized=!0,null==(Mt=It.litElementHydrateSupport)||Mt.call(It,{LitElement:Dt});const Pt=It.litElementPolyfillSupport;var Et;null==Pt||Pt({LitElement:Dt}),(null!=(Et=It.litElementVersions)?Et:It.litElementVersions=[]).push("4.2.2");
|
|
34
34
|
/**
|
|
35
35
|
* @license
|
|
36
36
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|