@mantou/gem 2.2.3 → 2.2.4
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.
- package/README.md +1 -0
- package/dist/gem.es.js +1 -1
- package/dist/gem.umd.js +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/src/lib/version.ts +1 -1
package/README.md
CHANGED
package/dist/gem.es.js
CHANGED
|
@@ -1295,7 +1295,7 @@ const Xc = (s, t, e) => {
|
|
|
1295
1295
|
);
|
|
1296
1296
|
}
|
|
1297
1297
|
return i._$setValue(s), i;
|
|
1298
|
-
}, th = "2.2.
|
|
1298
|
+
}, th = "2.2.4", eh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1299
1299
|
__proto__: null,
|
|
1300
1300
|
version: th
|
|
1301
1301
|
}, Symbol.toStringTag, { value: "Module" }));
|
package/dist/gem.umd.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/const We=globalThis.trustedTypes,Sr=We==null?void 0:We.createPolicy("lit-html",{createHTML:n=>n}),yr="$lit$",Tt=`lit$${Math.random().toFixed(9).slice(2)}$`,wr="?"+Tt,Vc=`<${wr}>`,It=document,te=()=>It.createComment(""),Ge=n=>n===null||typeof n!="object"&&typeof n!="function",ee=n=>n==null,Dc=n=>Symbol.iterator in n,vi=`[
|
|
6
6
|
\f\r]`,Uc=`[^
|
|
7
|
-
\f\r"'\`<>=]`,qc=`[^\\s"'>=/]`,ze=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Er=1,$i=2,Fc=3,Cr=/-->/g,br=/>/g,Ht=new RegExp(`>|${vi}(?:(${qc}+)(${vi}*=${vi}*(?:${Uc}|("|')|))|$)`,"g"),xc=0,Tr=1,Bc=2,kr=3,Pr=/'/g,Mr=/"/g,Or=/^(?:script|style|textarea|title)$/i,Kc=1,Mn=2,On=3,Si=1,Ln=2,jc=3,Qc=4,Jc=5,yi=6,Yc=7,Lr="v-if",Ar="v-else-if",Nr="v-else";class wi{constructor(t,e,i){$(this,"type");$(this,"strings");$(this,"values");this.type=t,this.strings=e,this.values=i}}const Ei=n=>(t,...e)=>new wi(n,t,e),Zc=Ei(Kc),Xc=Ei(Mn),th=Ei(On),Ci=Symbol.for("lit-noChange"),Rr=new WeakMap,Wt=It.createTreeWalker(It,129);function eh(n,t){if(!Array.isArray(n))throw new Error("invalid template");return Sr!==void 0?Sr.createHTML(t):t}const nh=(n,t)=>{const e=n.length-1,i=[];let s=t===Mn?"<svg>":t===On?"<math>":"",r,a=ze;for(let d=0;d<e;d++){const u=n[d];let m=-1,o,g=0,h;for(;g<u.length&&(a.lastIndex=g,h=a.exec(u),h!==null);)g=a.lastIndex,a===ze?h[Er]==="!--"?a=Cr:h[Er]!==void 0?a=br:h[$i]!==void 0?(Or.test(h[$i])&&(r=new RegExp(`</${h[$i]}`,"g")),a=Ht):h[Fc]!==void 0&&(a=Ht):a===Ht?h[xc]===">"?(a=r??ze,m=-1):h[Tr]===void 0?m=-2:(m=a.lastIndex-h[Bc].length,o=h[Tr],a=h[kr]===void 0?Ht:h[kr]==='"'?Mr:Pr):a===Mr||a===Pr?a=Ht:a===Cr||a===br?a=ze:(a=Ht,r=void 0);const v=a===Ht&&n[d+1].startsWith("/>")?" ":"";s+=a===ze?u+Vc:m>=0?(i.push(o),u.slice(0,m)+yr+u.slice(m)+Tt+v):u+Tt+(m===-2?d:v)}const c=s+(n[e]||"<?>")+(t===Mn?"</svg>":t===On?"</math>":"");return[eh(n,c),i]};class bi{constructor({strings:t,type:e},i){$(this,"el");$(this,"parts",[]);let s,r=0,a=0;const c=t.length-1,d=this.parts,[u,m]=nh(t,e);if(this.el=bi.createElement(u,i),Wt.currentNode=this.el.content,e===Mn||e===On){const o=this.el.content.firstChild;o.replaceWith(...o.childNodes)}for(;(s=Wt.nextNode())!==null&&d.length<c;){if(s.nodeType===1){if(s.hasAttributes())for(const o of s.getAttributeNames())if(o.endsWith(yr)){const g=m[a++],v=s.getAttribute(o).split(Tt),S=/([.?@])?(.*)/.exec(g);d.push({type:Si,index:r,name:S[2],strings:v,ctor:S[1]==="."?rh:S[1]==="?"?oh:S[1]==="@"?ah:An}),s.removeAttribute(o)}else o.startsWith(Tt)&&(d.push({type:yi,index:r}),s.removeAttribute(o));if(Or.test(s.tagName)){const o=s.textContent.split(Tt),g=o.length-1;if(g>0){s.textContent=We?We.emptyScript:"";for(let h=0;h<g;h++)s.append(o[h],te()),Wt.nextNode(),d.push({type:Ln,index:++r});s.append(o[g],te())}}}else if(s.nodeType===8)if(s.data===wr)d.push({type:Ln,index:r});else{let g=-1;for(;(g=s.data.indexOf(Tt,g+1))!==-1;)d.push({type:Yc,index:r}),g+=Tt.length-1}r++}}static createElement(t,e){const i=It.createElement("template");return i.innerHTML=t,i}}function ne(n,t,e=n,i){var a,c;if(t===Ci)return t;let s=i!==void 0?(a=e.__directives)==null?void 0:a[i]:e.__directive;const r=Ge(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==r&&((c=s==null?void 0:s._$notifyDirectiveConnectionChanged)==null||c.call(s,!1),r===void 0?s=void 0:(s=new r(n),s._$initialize(n,e,i)),i!==void 0?(e.__directives??(e.__directives=[]))[i]=s:e.__directive=s),s!==void 0&&(t=ne(n,s._$resolve(n,t.values),s,i)),t}class ih{constructor(t,e){$(this,"_$template");$(this,"_$parts",[]);$(this,"_$conditions",[]);$(this,"_$parent");$(this,"_$disconnectableChildren");this._$template=t,this._$parent=e}get parentNode(){return this._$parent.parentNode}get _$isConnected(){return this._$parent._$isConnected}_clone(t){const{el:{content:e},parts:i}=this._$template,s=new Map,r=new Map,a=((t==null?void 0:t.creationScope)??It).importNode(e,!0);Wt.currentNode=a;let c=Wt.nextNode(),d=0,u=0,m=i[0];for(;m!==void 0;){if(d===m.index){let o;m.type===Ln?o=new Ve(c,c.nextSibling,this,t):m.type===Si?(m.name===Lr&&s.set(c,u),m.name===Ar&&r.set(c,u),o=new m.ctor(c,m.name,m.strings,this,t)):m.type===yi&&(o=new ch(c,this,t)),this._$parts.push(o),m=i[++u]}d!==(m==null?void 0:m.index)&&(c=Wt.nextNode(),d++)}return s.forEach((o,g)=>{const h=new sh(g,o);this._$conditions.push(h);let v=g;for(;v=v.nextElementSibling;){const S=r.get(v);if(S===void 0)break;h.push(v,S)}}),Wt.currentNode=It,a}_update(t){let e=0;for(const i of this._$parts)i!==void 0&&(i.strings!==void 0?(i._$setValue(t,i,e),e+=i.strings.length-2):i.name===Lr||i.name===Ar||i._$setValue(t[e])),e++;this._$conditions.forEach(i=>i.update(t))}}class sh{constructor(t,e){$(this,"mark");$(this,"list");const i=te();i._$chain=this,t.before(i),this.mark=i,this.list=[{ele:t,idx:e}],this.check()}get next(){return this.list.at(-1).ele.nextElementSibling}push(t,e){this.list.push({ele:t,idx:e}),this.check()}check(){const t=this.next;t!=null&&t.attributes.getNamedItem(Nr)&&(this.list.push({ele:t}),t.removeAttribute(Nr))}update(t){const{mark:e,list:i}=this,s=i.find(({idx:r})=>r===void 0||!!t[r]);s&&!s.ele.parentNode&&e.after(s.ele),i.forEach(({ele:r})=>(!s||r!==s.ele)&&r.remove())}}class Ve{constructor(t,e,i,s){$(this,"type",Ln);$(this,"options");$(this,"_$committedValue");$(this,"__directive");$(this,"_$startNode");$(this,"_$endNode");$(this,"_$parent");$(this,"__isConnected");$(this,"_$disconnectableChildren");this._$startNode=t,this._$endNode=e,this._$parent=i,this.options=s,this.__isConnected=(s==null?void 0:s.isConnected)??!0}get _$isConnected(){var t;return((t=this._$parent)==null?void 0:t._$isConnected)??this.__isConnected}get parentNode(){let t=this._$startNode.parentNode;const e=this._$parent;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$startNode}get endNode(){return this._$endNode}_$setValue(t,e=this){this.parentNode&&(t=ne(this,t,e),Ge(t)?ee(t)||t===""?(ee(this._$committedValue)||this._$clear(),this._$committedValue=void 0):t!==this._$committedValue&&t!==Ci&&this._commitText(t):t instanceof wi?this._commitTemplateResult(t):t.nodeType!==void 0?this._commitNode(t):Dc(t)?this._commitIterable(t):this._commitText(t))}_insert(t){return this._$startNode.parentNode.insertBefore(t,this._$endNode)}_commitNode(t){this._$committedValue!==t&&(this._$clear(),this._$committedValue=this._insert(t))}_commitText(t){if(!ee(this._$committedValue)&&Ge(this._$committedValue)){const e=this._$startNode.nextSibling;e.data=t}else this._commitNode(It.createTextNode(t));this._$committedValue=t}_commitTemplateResult(t){var s;const{values:e}=t,i=this._$getTemplate(t);if(((s=this._$committedValue)==null?void 0:s._$template)===i)this._$committedValue._update(e);else{const r=new ih(i,this),a=r._clone(this.options);r._update(e),this._commitNode(a),this._$committedValue=r}}_$getTemplate(t){let e=Rr.get(t.strings);return e===void 0&&Rr.set(t.strings,e=new bi(t)),e}_commitIterable(t){Array.isArray(this._$committedValue)||(this._$committedValue=[],this._$clear());const e=this._$committedValue;let i=0,s;for(const r of t)i===e.length?e.push(s=new Ve(this._insert(te()),this._insert(te()),this,this.options)):s=e[i],s._$setValue(r),i++;i<e.length&&(this._$clear(s&&s._$endNode.nextSibling,i),e.length=i)}_$clear(t=this._$startNode.nextSibling,e){var i;for((i=this._$notifyConnectionChanged)==null||i.call(this,!1,!0,e);t&&t!==this._$endNode;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$parent===void 0&&(this.__isConnected=t,(e=this._$notifyConnectionChanged)==null||e.call(this,t))}}class An{constructor(t,e,i,s,r){$(this,"type",Si);$(this,"element");$(this,"name");$(this,"options");$(this,"strings");$(this,"_$committedValue");$(this,"__directives");$(this,"_$parent");$(this,"_$disconnectableChildren");this.element=t,this.name=e,this._$parent=s,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$committedValue=new Array(i.length-1).fill(new String),this.strings=i):this._$committedValue=void 0}get tagName(){return this.element.tagName}get _$isConnected(){return this._$parent._$isConnected}_$setValue(t,e=this,i,s){const r=this.strings;let a=!1;if(r===void 0)t=ne(this,t,e,0),a=!Ge(t)||t!==this._$committedValue,a&&(this._$committedValue=t);else{const c=t;t=r[0];let d,u;for(d=0;d<r.length-1;d++)u=ne(this,c[i+d],e,d),a||(a=!Ge(u)||u!==this._$committedValue[d]),ee(u)?t=void 0:ee(t)||(t+=u+r[d+1]),this._$committedValue[d]=u}a&&!s&&this._commitValue(t)}_commitValue(t){ee(t)?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t)}}class rh extends An{constructor(){super(...arguments);$(this,"type",jc)}_commitValue(e){this.element[this.name]=e}}class oh extends An{constructor(){super(...arguments);$(this,"type",Qc)}_commitValue(e){this.element.toggleAttribute(this.name,!!e)}}class ah extends An{constructor(){super(...arguments);$(this,"type",Jc)}_$setValue(e,i=this){e=ne(this,e,i,0);const s=this._$committedValue,r=s&&(!e||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive),a=e&&(!s||r);r&&this.element.removeEventListener(this.name,this,s),a&&this.element.addEventListener(this.name,this,e),this._$committedValue=e}handleEvent(e){var i;typeof this._$committedValue=="function"?this._$committedValue.call(((i=this.options)==null?void 0:i.host)??this.element,e):this._$committedValue.handleEvent(e)}}class ch{constructor(t,e,i){$(this,"type",yi);$(this,"__directive");$(this,"_$committedValue");$(this,"_$parent");$(this,"_$disconnectableChildren");$(this,"_$props");$(this,"options");this.element=t,this._$parent=e,this.options=i}get _$isConnected(){return this._$parent._$isConnected}_$setValue(t){if(t)if(t instanceof Ir)t.value=this.element;else if(t._$litDirective$)ne(this,t);else{if(this._$props)for(const e in this._$props)Reflect.set(this.element,e,void 0);Object.assign(this.element,t),this._$props=t}}}const hh=()=>new Ir;class Ir{constructor(){$(this,"value")}}const lh=(n,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let s=i._$litPart$;if(s===void 0){const r=(e==null?void 0:e.renderBefore)??null;i._$litPart$=s=new Ve(t.insertBefore(te(),r),r,void 0,e??{})}return s._$setValue(n),s},Hr="2.2.
|
|
7
|
+
\f\r"'\`<>=]`,qc=`[^\\s"'>=/]`,ze=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Er=1,$i=2,Fc=3,Cr=/-->/g,br=/>/g,Ht=new RegExp(`>|${vi}(?:(${qc}+)(${vi}*=${vi}*(?:${Uc}|("|')|))|$)`,"g"),xc=0,Tr=1,Bc=2,kr=3,Pr=/'/g,Mr=/"/g,Or=/^(?:script|style|textarea|title)$/i,Kc=1,Mn=2,On=3,Si=1,Ln=2,jc=3,Qc=4,Jc=5,yi=6,Yc=7,Lr="v-if",Ar="v-else-if",Nr="v-else";class wi{constructor(t,e,i){$(this,"type");$(this,"strings");$(this,"values");this.type=t,this.strings=e,this.values=i}}const Ei=n=>(t,...e)=>new wi(n,t,e),Zc=Ei(Kc),Xc=Ei(Mn),th=Ei(On),Ci=Symbol.for("lit-noChange"),Rr=new WeakMap,Wt=It.createTreeWalker(It,129);function eh(n,t){if(!Array.isArray(n))throw new Error("invalid template");return Sr!==void 0?Sr.createHTML(t):t}const nh=(n,t)=>{const e=n.length-1,i=[];let s=t===Mn?"<svg>":t===On?"<math>":"",r,a=ze;for(let d=0;d<e;d++){const u=n[d];let m=-1,o,g=0,h;for(;g<u.length&&(a.lastIndex=g,h=a.exec(u),h!==null);)g=a.lastIndex,a===ze?h[Er]==="!--"?a=Cr:h[Er]!==void 0?a=br:h[$i]!==void 0?(Or.test(h[$i])&&(r=new RegExp(`</${h[$i]}`,"g")),a=Ht):h[Fc]!==void 0&&(a=Ht):a===Ht?h[xc]===">"?(a=r??ze,m=-1):h[Tr]===void 0?m=-2:(m=a.lastIndex-h[Bc].length,o=h[Tr],a=h[kr]===void 0?Ht:h[kr]==='"'?Mr:Pr):a===Mr||a===Pr?a=Ht:a===Cr||a===br?a=ze:(a=Ht,r=void 0);const v=a===Ht&&n[d+1].startsWith("/>")?" ":"";s+=a===ze?u+Vc:m>=0?(i.push(o),u.slice(0,m)+yr+u.slice(m)+Tt+v):u+Tt+(m===-2?d:v)}const c=s+(n[e]||"<?>")+(t===Mn?"</svg>":t===On?"</math>":"");return[eh(n,c),i]};class bi{constructor({strings:t,type:e},i){$(this,"el");$(this,"parts",[]);let s,r=0,a=0;const c=t.length-1,d=this.parts,[u,m]=nh(t,e);if(this.el=bi.createElement(u,i),Wt.currentNode=this.el.content,e===Mn||e===On){const o=this.el.content.firstChild;o.replaceWith(...o.childNodes)}for(;(s=Wt.nextNode())!==null&&d.length<c;){if(s.nodeType===1){if(s.hasAttributes())for(const o of s.getAttributeNames())if(o.endsWith(yr)){const g=m[a++],v=s.getAttribute(o).split(Tt),S=/([.?@])?(.*)/.exec(g);d.push({type:Si,index:r,name:S[2],strings:v,ctor:S[1]==="."?rh:S[1]==="?"?oh:S[1]==="@"?ah:An}),s.removeAttribute(o)}else o.startsWith(Tt)&&(d.push({type:yi,index:r}),s.removeAttribute(o));if(Or.test(s.tagName)){const o=s.textContent.split(Tt),g=o.length-1;if(g>0){s.textContent=We?We.emptyScript:"";for(let h=0;h<g;h++)s.append(o[h],te()),Wt.nextNode(),d.push({type:Ln,index:++r});s.append(o[g],te())}}}else if(s.nodeType===8)if(s.data===wr)d.push({type:Ln,index:r});else{let g=-1;for(;(g=s.data.indexOf(Tt,g+1))!==-1;)d.push({type:Yc,index:r}),g+=Tt.length-1}r++}}static createElement(t,e){const i=It.createElement("template");return i.innerHTML=t,i}}function ne(n,t,e=n,i){var a,c;if(t===Ci)return t;let s=i!==void 0?(a=e.__directives)==null?void 0:a[i]:e.__directive;const r=Ge(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==r&&((c=s==null?void 0:s._$notifyDirectiveConnectionChanged)==null||c.call(s,!1),r===void 0?s=void 0:(s=new r(n),s._$initialize(n,e,i)),i!==void 0?(e.__directives??(e.__directives=[]))[i]=s:e.__directive=s),s!==void 0&&(t=ne(n,s._$resolve(n,t.values),s,i)),t}class ih{constructor(t,e){$(this,"_$template");$(this,"_$parts",[]);$(this,"_$conditions",[]);$(this,"_$parent");$(this,"_$disconnectableChildren");this._$template=t,this._$parent=e}get parentNode(){return this._$parent.parentNode}get _$isConnected(){return this._$parent._$isConnected}_clone(t){const{el:{content:e},parts:i}=this._$template,s=new Map,r=new Map,a=((t==null?void 0:t.creationScope)??It).importNode(e,!0);Wt.currentNode=a;let c=Wt.nextNode(),d=0,u=0,m=i[0];for(;m!==void 0;){if(d===m.index){let o;m.type===Ln?o=new Ve(c,c.nextSibling,this,t):m.type===Si?(m.name===Lr&&s.set(c,u),m.name===Ar&&r.set(c,u),o=new m.ctor(c,m.name,m.strings,this,t)):m.type===yi&&(o=new ch(c,this,t)),this._$parts.push(o),m=i[++u]}d!==(m==null?void 0:m.index)&&(c=Wt.nextNode(),d++)}return s.forEach((o,g)=>{const h=new sh(g,o);this._$conditions.push(h);let v=g;for(;v=v.nextElementSibling;){const S=r.get(v);if(S===void 0)break;h.push(v,S)}}),Wt.currentNode=It,a}_update(t){let e=0;for(const i of this._$parts)i!==void 0&&(i.strings!==void 0?(i._$setValue(t,i,e),e+=i.strings.length-2):i.name===Lr||i.name===Ar||i._$setValue(t[e])),e++;this._$conditions.forEach(i=>i.update(t))}}class sh{constructor(t,e){$(this,"mark");$(this,"list");const i=te();i._$chain=this,t.before(i),this.mark=i,this.list=[{ele:t,idx:e}],this.check()}get next(){return this.list.at(-1).ele.nextElementSibling}push(t,e){this.list.push({ele:t,idx:e}),this.check()}check(){const t=this.next;t!=null&&t.attributes.getNamedItem(Nr)&&(this.list.push({ele:t}),t.removeAttribute(Nr))}update(t){const{mark:e,list:i}=this,s=i.find(({idx:r})=>r===void 0||!!t[r]);s&&!s.ele.parentNode&&e.after(s.ele),i.forEach(({ele:r})=>(!s||r!==s.ele)&&r.remove())}}class Ve{constructor(t,e,i,s){$(this,"type",Ln);$(this,"options");$(this,"_$committedValue");$(this,"__directive");$(this,"_$startNode");$(this,"_$endNode");$(this,"_$parent");$(this,"__isConnected");$(this,"_$disconnectableChildren");this._$startNode=t,this._$endNode=e,this._$parent=i,this.options=s,this.__isConnected=(s==null?void 0:s.isConnected)??!0}get _$isConnected(){var t;return((t=this._$parent)==null?void 0:t._$isConnected)??this.__isConnected}get parentNode(){let t=this._$startNode.parentNode;const e=this._$parent;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$startNode}get endNode(){return this._$endNode}_$setValue(t,e=this){this.parentNode&&(t=ne(this,t,e),Ge(t)?ee(t)||t===""?(ee(this._$committedValue)||this._$clear(),this._$committedValue=void 0):t!==this._$committedValue&&t!==Ci&&this._commitText(t):t instanceof wi?this._commitTemplateResult(t):t.nodeType!==void 0?this._commitNode(t):Dc(t)?this._commitIterable(t):this._commitText(t))}_insert(t){return this._$startNode.parentNode.insertBefore(t,this._$endNode)}_commitNode(t){this._$committedValue!==t&&(this._$clear(),this._$committedValue=this._insert(t))}_commitText(t){if(!ee(this._$committedValue)&&Ge(this._$committedValue)){const e=this._$startNode.nextSibling;e.data=t}else this._commitNode(It.createTextNode(t));this._$committedValue=t}_commitTemplateResult(t){var s;const{values:e}=t,i=this._$getTemplate(t);if(((s=this._$committedValue)==null?void 0:s._$template)===i)this._$committedValue._update(e);else{const r=new ih(i,this),a=r._clone(this.options);r._update(e),this._commitNode(a),this._$committedValue=r}}_$getTemplate(t){let e=Rr.get(t.strings);return e===void 0&&Rr.set(t.strings,e=new bi(t)),e}_commitIterable(t){Array.isArray(this._$committedValue)||(this._$committedValue=[],this._$clear());const e=this._$committedValue;let i=0,s;for(const r of t)i===e.length?e.push(s=new Ve(this._insert(te()),this._insert(te()),this,this.options)):s=e[i],s._$setValue(r),i++;i<e.length&&(this._$clear(s&&s._$endNode.nextSibling,i),e.length=i)}_$clear(t=this._$startNode.nextSibling,e){var i;for((i=this._$notifyConnectionChanged)==null||i.call(this,!1,!0,e);t&&t!==this._$endNode;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$parent===void 0&&(this.__isConnected=t,(e=this._$notifyConnectionChanged)==null||e.call(this,t))}}class An{constructor(t,e,i,s,r){$(this,"type",Si);$(this,"element");$(this,"name");$(this,"options");$(this,"strings");$(this,"_$committedValue");$(this,"__directives");$(this,"_$parent");$(this,"_$disconnectableChildren");this.element=t,this.name=e,this._$parent=s,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$committedValue=new Array(i.length-1).fill(new String),this.strings=i):this._$committedValue=void 0}get tagName(){return this.element.tagName}get _$isConnected(){return this._$parent._$isConnected}_$setValue(t,e=this,i,s){const r=this.strings;let a=!1;if(r===void 0)t=ne(this,t,e,0),a=!Ge(t)||t!==this._$committedValue,a&&(this._$committedValue=t);else{const c=t;t=r[0];let d,u;for(d=0;d<r.length-1;d++)u=ne(this,c[i+d],e,d),a||(a=!Ge(u)||u!==this._$committedValue[d]),ee(u)?t=void 0:ee(t)||(t+=u+r[d+1]),this._$committedValue[d]=u}a&&!s&&this._commitValue(t)}_commitValue(t){ee(t)?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t)}}class rh extends An{constructor(){super(...arguments);$(this,"type",jc)}_commitValue(e){this.element[this.name]=e}}class oh extends An{constructor(){super(...arguments);$(this,"type",Qc)}_commitValue(e){this.element.toggleAttribute(this.name,!!e)}}class ah extends An{constructor(){super(...arguments);$(this,"type",Jc)}_$setValue(e,i=this){e=ne(this,e,i,0);const s=this._$committedValue,r=s&&(!e||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive),a=e&&(!s||r);r&&this.element.removeEventListener(this.name,this,s),a&&this.element.addEventListener(this.name,this,e),this._$committedValue=e}handleEvent(e){var i;typeof this._$committedValue=="function"?this._$committedValue.call(((i=this.options)==null?void 0:i.host)??this.element,e):this._$committedValue.handleEvent(e)}}class ch{constructor(t,e,i){$(this,"type",yi);$(this,"__directive");$(this,"_$committedValue");$(this,"_$parent");$(this,"_$disconnectableChildren");$(this,"_$props");$(this,"options");this.element=t,this._$parent=e,this.options=i}get _$isConnected(){return this._$parent._$isConnected}_$setValue(t){if(t)if(t instanceof Ir)t.value=this.element;else if(t._$litDirective$)ne(this,t);else{if(this._$props)for(const e in this._$props)Reflect.set(this.element,e,void 0);Object.assign(this.element,t),this._$props=t}}}const hh=()=>new Ir;class Ir{constructor(){$(this,"value")}}const lh=(n,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let s=i._$litPart$;if(s===void 0){const r=(e==null?void 0:e.renderBefore)??null;i._$litPart$=s=new Ve(t.insertBefore(te(),r),r,void 0,e??{})}return s._$setValue(n),s},Hr="2.2.4",dh=Object.freeze(Object.defineProperty({__proto__:null,version:Hr},Symbol.toStringTag,{value:"Module"}));/**
|
|
8
8
|
* @license
|
|
9
9
|
* Copyright 2017 Google LLC
|
|
10
10
|
* SPDX-License-Identifier: BSD-3-Clause
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "2.2.
|
|
1
|
+
export declare const version = "2.2.4";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/lib/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '2.2.
|
|
1
|
+
export const version = '2.2.4';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
package/src/lib/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '2.2.
|
|
1
|
+
export const version = '2.2.4';
|