lyco 1.2.6 → 1.2.7

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/dist/index.cjs.js CHANGED
@@ -4,8 +4,8 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
4
4
  * Copyright 2017 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
6
  */
7
- const c=s(require(`lit`)),l=globalThis,u=l.trustedTypes,d=u?u.createPolicy(`lit-html`,{createHTML:e=>e}):void 0,f=`$lit$`,p=`lit$${Math.random().toFixed(9).slice(2)}$`,m=`?`+p,h=`<${m}>`,g=document,_=()=>g.createComment(``),v=e=>e===null||typeof e!=`object`&&typeof e!=`function`,y=Array.isArray,b=e=>y(e)||typeof e?.[Symbol.iterator]==`function`,x=`[
8
- \f\r]`,S=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,C=/-->/g,w=/>/g,T=RegExp(`>|${x}(?:([^\\s"'>=/]+)(${x}*=${x}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),E=/'/g,D=/"/g,O=/^(?:script|style|textarea|title)$/i,k=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),A=k(1),ee=k(2),j=k(3),M=Symbol.for(`lit-noChange`),N=Symbol.for(`lit-nothing`),P=new WeakMap,F=g.createTreeWalker(g,129);function I(e,t){if(!y(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return d===void 0?t:d.createHTML(t)}const L=(e,t)=>{let n=e.length-1,r=[],i,a=t===2?`<svg>`:t===3?`<math>`:``,o=S;for(let t=0;t<n;t++){let n=e[t],s,c,l=-1,u=0;for(;u<n.length&&(o.lastIndex=u,c=o.exec(n),c!==null);)u=o.lastIndex,o===S?c[1]===`!--`?o=C:c[1]===void 0?c[2]===void 0?c[3]!==void 0&&(o=T):(O.test(c[2])&&(i=RegExp(`</`+c[2],`g`)),o=T):o=w:o===T?c[0]===`>`?(o=i??S,l=-1):c[1]===void 0?l=-2:(l=o.lastIndex-c[2].length,s=c[1],o=c[3]===void 0?T:c[3]===`"`?D:E):o===D||o===E?o=T:o===C||o===w?o=S:(o=T,i=void 0);let d=o===T&&e[t+1].startsWith(`/>`)?` `:``;a+=o===S?n+h:l>=0?(r.push(s),n.slice(0,l)+f+n.slice(l)+p+d):n+p+(l===-2?t:d)}return[I(e,a+(e[n]||`<?>`)+(t===2?`</svg>`:t===3?`</math>`:``)),r]};var R=class e{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let a=0,o=0,s=t.length-1,c=this.parts,[l,d]=L(t,n);if(this.el=e.createElement(l,r),F.currentNode=this.el.content,n===2||n===3){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;(i=F.nextNode())!==null&&c.length<s;){if(i.nodeType===1){if(i.hasAttributes())for(let e of i.getAttributeNames())if(e.endsWith(f)){let t=d[o++],n=i.getAttribute(e).split(p),r=/([.?@])?(.*)/.exec(t);c.push({type:1,index:a,name:r[2],strings:n,ctor:r[1]===`.`?ne:r[1]===`?`?re:r[1]===`@`?ie:V}),i.removeAttribute(e)}else e.startsWith(p)&&(c.push({type:6,index:a}),i.removeAttribute(e));if(O.test(i.tagName)){let e=i.textContent.split(p),t=e.length-1;if(t>0){i.textContent=u?u.emptyScript:``;for(let n=0;n<t;n++)i.append(e[n],_()),F.nextNode(),c.push({type:2,index:++a});i.append(e[t],_())}}}else if(i.nodeType===8)if(i.data===m)c.push({type:2,index:a});else{let e=-1;for(;(e=i.data.indexOf(p,e+1))!==-1;)c.push({type:7,index:a}),e+=p.length-1}a++}}static createElement(e,t){let n=g.createElement(`template`);return n.innerHTML=e,n}};function z(e,t,n=e,r){var i,a;if(t===M)return t;let o=r===void 0?n._$Cl:(i=n._$Co)?.[r],s=v(t)?void 0:t._$litDirective$;return o?.constructor!==s&&(o==null||(a=o._$AO)==null||a.call(o,!1),s===void 0?o=void 0:(o=new s(e),o._$AT(e,n,r)),r===void 0?n._$Cl=o:(n._$Co??=[])[r]=o),o!==void 0&&(t=z(e,o._$AS(e,t.values),o,r)),t}var te=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??g).importNode(t,!0);F.currentNode=r;let i=F.nextNode(),a=0,o=0,s=n[0];for(;s!==void 0;){if(a===s.index){let t;s.type===2?t=new B(i,i.nextSibling,this,e):s.type===1?t=new s.ctor(i,s.name,s.strings,this,e):s.type===6&&(t=new ae(i,this,e)),this._$AV.push(t),s=n[++o]}a!==s?.index&&(i=F.nextNode(),a++)}return F.currentNode=g,r}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings===void 0?n._$AI(e[t]):(n._$AI(e,n,t),t+=n.strings.length-2)),t++}},B=class e{get _$AU(){var e;return(e=this._$AM)?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=N,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=z(this,e,t),v(e)?e===N||e==null||e===``?(this._$AH!==N&&this._$AR(),this._$AH=N):e!==this._$AH&&e!==M&&this._(e):e._$litType$===void 0?e.nodeType===void 0?b(e)?this.k(e):this._(e):this.T(e):this.$(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==N&&v(this._$AH)?this._$AA.nextSibling.data=e:this.T(g.createTextNode(e)),this._$AH=e}$(e){var t;let{values:n,_$litType$:r}=e,i=typeof r==`number`?this._$AC(e):(r.el===void 0&&(r.el=R.createElement(I(r.h,r.h[0]),this.options)),r);if((t=this._$AH)?._$AD===i)this._$AH.p(n);else{let e=new te(i,this),t=e.u(this.options);e.p(n),this.T(t),this._$AH=e}}_$AC(e){let t=P.get(e.strings);return t===void 0&&P.set(e.strings,t=new R(e)),t}k(t){y(this._$AH)||(this._$AH=[],this._$AR());let n=this._$AH,r,i=0;for(let a of t)i===n.length?n.push(r=new e(this.O(_()),this.O(_()),this,this.options)):r=n[i],r._$AI(a),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(e=this._$AA.nextSibling,t){var n;for((n=this._$AP)?.call(this,!1,!0,t);e&&e!==this._$AB;){let t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)?.call(this,e))}},V=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=N,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||n[0]!==``||n[1]!==``?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=N}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(i===void 0)e=z(this,e,t,0),a=!v(e)||e!==this._$AH&&e!==M,a&&(this._$AH=e);else{let r=e,o,s;for(e=i[0],o=0;o<i.length-1;o++)s=z(this,r[n+o],t,o),s===M&&(s=this._$AH[o]),a||=!v(s)||s!==this._$AH[o],s===N?e=N:e!==N&&(e+=(s??``)+i[o+1]),this._$AH[o]=s}a&&!r&&this.j(e)}j(e){e===N?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??``)}},ne=class extends V{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===N?void 0:e}},re=class extends V{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==N)}},ie=class extends V{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=z(this,e,t,0)??N)===M)return;let n=this._$AH,r=e===N&&n!==N||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==N&&(n===N||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t;typeof this._$AH==`function`?this._$AH.call((t=this.options)?.host??this.element,e):this._$AH.handleEvent(e)}},ae=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){z(this,e)}};const oe={M:f,P:p,A:m,C:1,L,R:te,D:b,V:z,I:B,H:V,N:re,U:ie,B:ne,F:ae},se=l.litHtmlPolyfillSupport;se?.(R,B),(l.litHtmlVersions??=[]).push(`3.3.0`);
7
+ const c=s(require(`lit`)),l=globalThis,u=l.trustedTypes,d=u?u.createPolicy(`lit-html`,{createHTML:e=>e}):void 0,f=`$lit$`,p=`lit$${Math.random().toFixed(9).slice(2)}$`,m=`?`+p,h=`<${m}>`,g=document,_=()=>g.createComment(``),v=e=>e===null||typeof e!=`object`&&typeof e!=`function`,y=Array.isArray,b=e=>y(e)||typeof e?.[Symbol.iterator]==`function`,ee=`[
8
+ \f\r]`,x=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,S=/-->/g,C=/>/g,w=RegExp(`>|${ee}(?:([^\\s"'>=/]+)(${ee}*=${ee}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),T=/'/g,E=/"/g,D=/^(?:script|style|textarea|title)$/i,O=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),k=O(1),te=O(2),A=O(3),j=Symbol.for(`lit-noChange`),M=Symbol.for(`lit-nothing`),N=new WeakMap,P=g.createTreeWalker(g,129);function F(e,t){if(!y(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return d===void 0?t:d.createHTML(t)}const I=(e,t)=>{let n=e.length-1,r=[],i,a=t===2?`<svg>`:t===3?`<math>`:``,o=x;for(let t=0;t<n;t++){let n=e[t],s,c,l=-1,u=0;for(;u<n.length&&(o.lastIndex=u,c=o.exec(n),c!==null);)u=o.lastIndex,o===x?c[1]===`!--`?o=S:c[1]===void 0?c[2]===void 0?c[3]!==void 0&&(o=w):(D.test(c[2])&&(i=RegExp(`</`+c[2],`g`)),o=w):o=C:o===w?c[0]===`>`?(o=i??x,l=-1):c[1]===void 0?l=-2:(l=o.lastIndex-c[2].length,s=c[1],o=c[3]===void 0?w:c[3]===`"`?E:T):o===E||o===T?o=w:o===S||o===C?o=x:(o=w,i=void 0);let d=o===w&&e[t+1].startsWith(`/>`)?` `:``;a+=o===x?n+h:l>=0?(r.push(s),n.slice(0,l)+f+n.slice(l)+p+d):n+p+(l===-2?t:d)}return[F(e,a+(e[n]||`<?>`)+(t===2?`</svg>`:t===3?`</math>`:``)),r]};var L=class e{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let a=0,o=0,s=t.length-1,c=this.parts,[l,d]=I(t,n);if(this.el=e.createElement(l,r),P.currentNode=this.el.content,n===2||n===3){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;(i=P.nextNode())!==null&&c.length<s;){if(i.nodeType===1){if(i.hasAttributes())for(let e of i.getAttributeNames())if(e.endsWith(f)){let t=d[o++],n=i.getAttribute(e).split(p),r=/([.?@])?(.*)/.exec(t);c.push({type:1,index:a,name:r[2],strings:n,ctor:r[1]===`.`?re:r[1]===`?`?ie:r[1]===`@`?ae:B}),i.removeAttribute(e)}else e.startsWith(p)&&(c.push({type:6,index:a}),i.removeAttribute(e));if(D.test(i.tagName)){let e=i.textContent.split(p),t=e.length-1;if(t>0){i.textContent=u?u.emptyScript:``;for(let n=0;n<t;n++)i.append(e[n],_()),P.nextNode(),c.push({type:2,index:++a});i.append(e[t],_())}}}else if(i.nodeType===8)if(i.data===m)c.push({type:2,index:a});else{let e=-1;for(;(e=i.data.indexOf(p,e+1))!==-1;)c.push({type:7,index:a}),e+=p.length-1}a++}}static createElement(e,t){let n=g.createElement(`template`);return n.innerHTML=e,n}};function R(e,t,n=e,r){var i,a;if(t===j)return t;let o=r===void 0?n._$Cl:(i=n._$Co)?.[r],s=v(t)?void 0:t._$litDirective$;return o?.constructor!==s&&(o==null||(a=o._$AO)==null||a.call(o,!1),s===void 0?o=void 0:(o=new s(e),o._$AT(e,n,r)),r===void 0?n._$Cl=o:(n._$Co??=[])[r]=o),o!==void 0&&(t=R(e,o._$AS(e,t.values),o,r)),t}var ne=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??g).importNode(t,!0);P.currentNode=r;let i=P.nextNode(),a=0,o=0,s=n[0];for(;s!==void 0;){if(a===s.index){let t;s.type===2?t=new z(i,i.nextSibling,this,e):s.type===1?t=new s.ctor(i,s.name,s.strings,this,e):s.type===6&&(t=new V(i,this,e)),this._$AV.push(t),s=n[++o]}a!==s?.index&&(i=P.nextNode(),a++)}return P.currentNode=g,r}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings===void 0?n._$AI(e[t]):(n._$AI(e,n,t),t+=n.strings.length-2)),t++}},z=class e{get _$AU(){var e;return(e=this._$AM)?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=M,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=R(this,e,t),v(e)?e===M||e==null||e===``?(this._$AH!==M&&this._$AR(),this._$AH=M):e!==this._$AH&&e!==j&&this._(e):e._$litType$===void 0?e.nodeType===void 0?b(e)?this.k(e):this._(e):this.T(e):this.$(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==M&&v(this._$AH)?this._$AA.nextSibling.data=e:this.T(g.createTextNode(e)),this._$AH=e}$(e){var t;let{values:n,_$litType$:r}=e,i=typeof r==`number`?this._$AC(e):(r.el===void 0&&(r.el=L.createElement(F(r.h,r.h[0]),this.options)),r);if((t=this._$AH)?._$AD===i)this._$AH.p(n);else{let e=new ne(i,this),t=e.u(this.options);e.p(n),this.T(t),this._$AH=e}}_$AC(e){let t=N.get(e.strings);return t===void 0&&N.set(e.strings,t=new L(e)),t}k(t){y(this._$AH)||(this._$AH=[],this._$AR());let n=this._$AH,r,i=0;for(let a of t)i===n.length?n.push(r=new e(this.O(_()),this.O(_()),this,this.options)):r=n[i],r._$AI(a),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(e=this._$AA.nextSibling,t){var n;for((n=this._$AP)?.call(this,!1,!0,t);e&&e!==this._$AB;){let t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)?.call(this,e))}},B=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=M,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||n[0]!==``||n[1]!==``?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=M}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(i===void 0)e=R(this,e,t,0),a=!v(e)||e!==this._$AH&&e!==j,a&&(this._$AH=e);else{let r=e,o,s;for(e=i[0],o=0;o<i.length-1;o++)s=R(this,r[n+o],t,o),s===j&&(s=this._$AH[o]),a||=!v(s)||s!==this._$AH[o],s===M?e=M:e!==M&&(e+=(s??``)+i[o+1]),this._$AH[o]=s}a&&!r&&this.j(e)}j(e){e===M?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??``)}},re=class extends B{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===M?void 0:e}},ie=class extends B{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==M)}},ae=class extends B{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=R(this,e,t,0)??M)===j)return;let n=this._$AH,r=e===M&&n!==M||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==M&&(n===M||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t;typeof this._$AH==`function`?this._$AH.call((t=this.options)?.host??this.element,e):this._$AH.handleEvent(e)}},V=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){R(this,e)}};const oe={M:f,P:p,A:m,C:1,L:I,R:ne,D:b,V:R,I:z,H:B,N:ie,U:ae,B:re,F:V},se=l.litHtmlPolyfillSupport;se?.(L,z),(l.litHtmlVersions??=[]).push(`3.3.0`);
9
9
  /**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
@@ -21,12 +21,12 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
21
21
  * @license
22
22
  * Copyright 2020 Google LLC
23
23
  * SPDX-License-Identifier: BSD-3-Clause
24
- */const Me=()=>new Ne;var Ne=class{};const Pe=new WeakMap,W=Te(class extends je{render(e){return N}update(e,[t]){var n;let r=t!==this.G;return r&&this.G!==void 0&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.G=t,this.ht=(n=e.options)?.host,this.rt(this.ct=e.element)),N}rt(e){if(this.isConnected||(e=void 0),typeof this.G==`function`){let t=this.ht??globalThis,n=Pe.get(t);n===void 0&&(n=new WeakMap,Pe.set(t,n)),n.get(this.G)!==void 0&&this.G.call(this.ht,void 0),n.set(this.G,e),e!==void 0&&this.G.call(this.ht,e)}else this.G.value=e}get lt(){var e,t;return typeof this.G==`function`?(e=Pe.get(this.ht??globalThis))?.get(this.G):(t=this.G)?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}}),Fe=Symbol(`___LYCO_NULL___`);function G(e){return e?typeof e==`function`?e():e:c.html``}function K(e,t){let n=t??(e=>e);if(e===void 0)return c.html``;if(Array.isArray(e))return e.map((e,t)=>n(G(e),t,!0,!1));if(typeof e!=`function`)return n(G(e),void 0,!1,!1);let r=e();return Array.isArray(r)?r.map((e,t)=>n(G(e),t,!0,!1)):n(G(r),void 0,!1,!0)}function Ie(e){let t=Math.random().toString(36).substring(2,15);return e?`lyco-${e}-${t}`:`lyco-${t}`}function Le(e,t){let n=t??(e=>e),r=e=>n(G(e));return e?r(e):r}function Re(e,t,n){let r=t??(e=>e),i=e=>r(K(e,n));return e?i(e):i}const q=e=>({init:!1,prefix:e,className:Fe}),J={"GridBreakpoint::grid-breakpoint":q(`grid-breakpoint`),"Hidden::hidden-container":q(`hidden-container`),"ListGroup::list-group":q(`list-group`),"ScrollBar::scrollbar-container":q(`scrollbar-container`),"SkeletonLoader::skeleton-shimmer":q(`skeleton-shimmer`),"Swiper::swiper":q(`swiper`),"Table::table":q(`table`),"WaterFlow::waterflow":q(`waterflow`),"AutoFitGrid::auto-fit-grid":q(`auto-fit-grid`),"GridCol::grid-col":q(`grid-col`),"GridRow::grid-row":q(`grid-row`),"List::list":q(`list`)};function Y(e){let t=J[e];return t.init||(J[e].init=!0,J[e].className=Ie(t.prefix)),J[e].className===Fe?Ie(t.prefix):J[e].className}const X={all:{value:0}};function Z(e){var t;return(t=X[e])?.value||(X[e]={value:0}),X[e].value}function Q(e,t){return X.all={value:X.all.value+1},X[e]===void 0?X[e]={value:0}:X[e].value=X[e].value+1,c.html`
24
+ */const Me=()=>new Ne;var Ne=class{};const Pe=new WeakMap,W=Te(class extends je{render(e){return M}update(e,[t]){var n;let r=t!==this.G;return r&&this.G!==void 0&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.G=t,this.ht=(n=e.options)?.host,this.rt(this.ct=e.element)),M}rt(e){if(this.isConnected||(e=void 0),typeof this.G==`function`){let t=this.ht??globalThis,n=Pe.get(t);n===void 0&&(n=new WeakMap,Pe.set(t,n)),n.get(this.G)!==void 0&&this.G.call(this.ht,void 0),n.set(this.G,e),e!==void 0&&this.G.call(this.ht,e)}else this.G.value=e}get lt(){var e,t;return typeof this.G==`function`?(e=Pe.get(this.ht??globalThis))?.get(this.G):(t=this.G)?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}}),Fe=Symbol(`___LYCO_NULL___`);function G(e){return e?typeof e==`function`?e():e:c.html``}function K(e,t){let n=t??(e=>e);if(e===void 0)return c.html``;if(Array.isArray(e))return e.map((e,t)=>n(G(e),t,!0,!1));if(typeof e!=`function`)return n(G(e),void 0,!1,!1);let r=e();return Array.isArray(r)?r.map((e,t)=>n(G(e),t,!0,!1)):n(G(r),void 0,!1,!0)}function Ie(e){let t=Math.random().toString(36).substring(2,15);return e?`lyco-${e}-${t}`:`lyco-${t}`}function Le(e,t){let n=t??(e=>e),r=e=>n(G(e));return e?r(e):r}function Re(e,t,n){let r=t??(e=>e),i=e=>r(K(e,n));return e?i(e):i}const q=e=>({init:!1,prefix:e,className:Fe}),J={"GridBreakpoint::grid-breakpoint":q(`grid-breakpoint`),"Hidden::hidden-container":q(`hidden-container`),"ListGroup::list-group":q(`list-group`),"ScrollBar::scrollbar-container":q(`scrollbar-container`),"SkeletonLoader::skeleton-shimmer":q(`skeleton-shimmer`),"Swiper::swiper":q(`swiper`),"Table::table":q(`table`),"WaterFlow::waterflow":q(`waterflow`),"AutoFitGrid::auto-fit-grid":q(`auto-fit-grid`),"GridCol::grid-col":q(`grid-col`),"GridRow::grid-row":q(`grid-row`),"List::list":q(`list`)};function Y(e){let t=J[e];return t.init||(J[e].init=!0,J[e].className=Ie(t.prefix)),J[e].className===Fe?Ie(t.prefix):J[e].className}const X={all:{value:0}};function Z(e){var t;return(t=X[e])?.value||(X[e]={value:0}),X[e].value}function Q(e,t){return X.all={value:X.all.value+1},X[e]===void 0?X[e]={value:0}:X[e].value=X[e].value+1,c.html`
25
25
  <!-- ${e} - ${X[e].value} -->
26
26
  ${t}
27
27
  `}function ze(e,t,n){t.forEach(([t,r])=>{n.has(t)&&e.removeEventListener(t,n.get(t));let i,a;typeof r==`function`?(i=r,a=void 0):(i=r.handler,a=r.options);let o=e=>i(e);e.addEventListener(t,o,a),n.set(t,o)})}function $(e){let t=new Map,n=Object.entries(e);return{bind(e){ze(e,n,t)},unbindAll(){t.clear()},auto(e){e?this.bind(e):this.unbindAll()}}}function Be(e,t){if(t===void 0){let t=t=>Be(e,t??c.html``);return t.html=(t,...n)=>Be(e,(0,c.html)(t,...n)),t}let n=e?.fadeBg??`rgba(0,0,0,0.7)`,r=e?.zIndex??2e3,i=$(e?.on??{});return c.html`
28
28
  <div
29
- ${W(i.auto)}
29
+ ${W(e=>{e?i.bind(e):i.unbindAll()})}
30
30
  style="
31
31
  position: fixed;
32
32
  top: 0; left: 0; right: 0; bottom: 0;
@@ -41,7 +41,7 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
41
41
  </div>
42
42
  `}function Ve(e,t){let n=$(e?.on??{});return t===void 0?t=>Ve(e,t??[c.html``]):c.html`
43
43
  <div
44
- ${W(n.auto)}
44
+ ${W(e=>{e?n.bind(e):n.unbindAll()})}
45
45
  .class="${e?.className}"
46
46
  style="
47
47
  display: flex;
@@ -54,7 +54,7 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
54
54
  </div>
55
55
  `}function He(e,t){if(t===void 0){let t=t=>He(e,t??c.html``);return t.html=(t,...n)=>He(e,(0,c.html)(t,...n)),t}let n=e?.direction??`row`,r=$(e?.on??{});return c.html`
56
56
  <div
57
- ${W(r.auto)}
57
+ ${W(e=>{e?r.bind(e):r.unbindAll()})}
58
58
  style="
59
59
  display: flex;
60
60
  flex-direction: ${n};
@@ -66,12 +66,15 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
66
66
  ${G(t)}
67
67
  </div>
68
68
  `}function Ue(e,t){if(t===void 0){let t=t=>Ue(e,t??c.html``);return t.html=(t,...n)=>Ue(e,(0,c.html)(t,...n)),t}let n=$(e?.on??{});return c.html`
69
- <div ${W(n.auto)} style="break-inside: avoid; margin-bottom: 16px;">
69
+ <div
70
+ ${W(e=>{e?n.bind(e):n.unbindAll()})}
71
+ style="break-inside: avoid; margin-bottom: 16px;"
72
+ >
70
73
  ${G(t)}
71
74
  </div>
72
75
  `}function We(e,t){if(t===void 0)return t=>We(e,t??[c.html``]);let n=e?.columns??1,r=$(e?.on??{});return c.html`
73
76
  <div
74
- ${W(r.auto)}
77
+ ${W(e=>{e?r.bind(e):r.unbindAll()})}
75
78
  style="
76
79
  display: grid;
77
80
  grid-template-columns: repeat(${n}, 1fr);
@@ -90,10 +93,15 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
90
93
  <style>
91
94
  ${a}
92
95
  </style>
93
- <div ${W(o.auto)} class="${r}">${G(t)}</div>
96
+ <div
97
+ ${W(e=>{e?o.bind(e):o.unbindAll()})}
98
+ class="${r}"
99
+ >
100
+ ${G(t)}
101
+ </div>
94
102
  `)}function Ke(e,t){if(t===void 0){let t=t=>Ke(e,t??c.html``);return t.html=(t,...n)=>Ke(e,(0,c.html)(t,...n)),t}let n=$(e?.on??{});return c.html`
95
103
  <div
96
- ${W(n.auto)}
104
+ ${W(e=>{e?n.bind(e):n.unbindAll()})}
97
105
  style="${e?.span?`grid-column: span ${e.span};`:``}"
98
106
  >
99
107
  ${G(t)}
@@ -108,10 +116,15 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
108
116
  <style>
109
117
  ${a}
110
118
  </style>
111
- <div ${W(o.auto)} class="${r}">${G(t)}</div>
119
+ <div
120
+ ${W(e=>{e?o.bind(e):o.unbindAll()})}
121
+ class="${r}"
122
+ >
123
+ ${G(t)}
124
+ </div>
112
125
  `)}function Je(e,t){if(t===void 0)return t=>Je(e,t??[c.html``]);let n=$(e?.on??{});return c.html`
113
126
  <div
114
- ${W(n.auto)}
127
+ ${W(e=>{e?n.bind(e):n.unbindAll()})}
115
128
  style="
116
129
  display: flex;
117
130
  flex-direction: row;
@@ -136,10 +149,15 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
136
149
  ${o}
137
150
  </style>
138
151
 
139
- <div ${W(s.auto)} class="${a}">${G(t)}</div>
152
+ <div
153
+ ${W(e=>{e?s.bind(e):s.unbindAll()})}
154
+ class="${a}"
155
+ >
156
+ ${G(t)}
157
+ </div>
140
158
  `)}function Xe(e,t){if(t===void 0){let t=t=>Xe(e,t??c.html``);return t.html=(t,...n)=>Xe(e,(0,c.html)(t,...n)),t}let n=e?.gap??`0px`,r=e?.firstHeight??`50%`,i=c.html``,a=c.html``;if(typeof t==`function`){var o;let e=(o=t.call)?.call(t,null)??[];i=e[0]??c.html``,a=e[1]??c.html``}else i=G(t);let s=$(e?.on??{});return c.html`
141
159
  <div
142
- ${W(s.auto)}
160
+ ${W(e=>{e?s.bind(e):s.unbindAll()})}
143
161
  style="
144
162
  display: flex;
145
163
  flex-direction: column;
@@ -153,7 +171,7 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
153
171
  </div>
154
172
  `}function Ze(e,t){if(t===void 0){let t=t=>Ze(e,t??c.html``);return t.html=(t,...n)=>Ze(e,(0,c.html)(t,...n)),t}let n=e?.gap??`0px`,r=e?.firstWidth??`50%`,i=c.html``,a=c.html``;if(typeof t==`function`){var o;let e=(o=t.call)?.call(t,null)??[];i=e[0]??c.html``,a=e[1]??c.html``}else i=G(t);let s=$(e?.on??{});return c.html`
155
173
  <div
156
- ${W(s.auto)}
174
+ ${W(e=>{e?s.bind(e):s.unbindAll()})}
157
175
  style="
158
176
  display: flex;
159
177
  flex-direction: row;
@@ -187,10 +205,15 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
187
205
  <style>
188
206
  ${u}
189
207
  </style>
190
- <div ${W(d.auto)} class="${s}">${G(t)}</div>
208
+ <div
209
+ ${W(e=>{e?d.bind(e):d.unbindAll()})}
210
+ class="${s}"
211
+ >
212
+ ${G(t)}
213
+ </div>
191
214
  `)}function $e(e,t){if(t===void 0)return t=>$e(e,t??[c.html``]);let n=e?.sidebarWidth??`240px`,r=e?.sidebarPosition??`left`,i=e?.gap??`0px`,a=c.html``,o=c.html``;if(typeof t==`function`){var s;let e=(s=t.call)?.call(t,null)??[];a=e[0]??c.html``,o=e[1]??c.html``}else o=K(t);let l=$(e?.on??{});return c.html`
192
215
  <div
193
- ${W(l.auto)}
216
+ ${W(e=>{e?l.bind(e):l.unbindAll()})}
194
217
  style="
195
218
  display: flex;
196
219
  flex-direction: ${r===`left`?`row`:`row-reverse`};
@@ -202,42 +225,42 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
202
225
  <div style="flex: 0 0 ${n}; overflow: auto;">${a}</div>
203
226
  <div style="flex: 1 1 auto; overflow: auto;">${o}</div>
204
227
  </div>
205
- `}function et(e={},t){if(t===void 0)return t=>et(e,t??[c.html``]);let n=Z(`Swiper`),{gap:r=`8px`,snapType:i=`mandatory`,height:a=`auto`,width:o=`100%`,className:s=Y(`Swiper::swiper`)+`-lyco-now-${n}`,direction:l=`x`,scrollBehavior:u=`smooth`,align:d=`start`,showNavigation:f=!0,navigationPosition:p=`inside`,showPagination:m=!0,paginationType:h=`dots`,autoPlay:g=!1,interval:_=3e3,loop:v=!1,touchEnabled:y=!0,mouseWheel:b=!1,onSlideChange:x,on:S}=e,C=s,w=C+`-container`,T=C+`-slide`,E=C+`-navigation`,D=C+`-pagination`,O;O=t?typeof t==`function`?t():t:[];let k=O.length,[A,ee]=(()=>{let e={value:0};return[()=>e.value,t=>{let n=Math.max(0,Math.min(t,k-1));e.value!==n&&(e.value=n,x?.(n))}]})(),j=e=>{let t=typeof document<`u`?document.querySelector(`.${w}`):null;if(!t)return;let n=t.querySelectorAll(`.${T}`);if(e<0||e>=n.length)return;let r=n[e],i=r.getBoundingClientRect(),a=t.getBoundingClientRect(),o;l===`x`?(o=r.offsetLeft-t.offsetLeft,d===`center`?o-=(a.width-i.width)/2:d===`end`&&(o-=a.width-i.width),t.scrollTo({left:o,behavior:u})):(o=r.offsetTop-t.offsetTop,d===`center`?o-=(a.height-i.height)/2:d===`end`&&(o-=a.height-i.height),t.scrollTo({top:o,behavior:u})),ee(e)},M=()=>{let e=A()+1>=k?v?0:A():A()+1;j(e)},N=()=>{let e=A()-1<0?v?k-1:A():A()-1;j(e)},P=()=>{let e=typeof document<`u`?document.querySelector(`.${w}`):null;if(!e)return;let t=e.querySelectorAll(`.${T}`),n=0,r=1/0;t.forEach((t,i)=>{let a=t.getBoundingClientRect(),o=e.getBoundingClientRect(),s;if(l===`x`){let e=a.left+a.width/2-(o.left+o.width/2);s=Math.abs(e)}else{let e=a.top+a.height/2-(o.top+o.height/2);s=Math.abs(e)}s<r&&(r=s,n=i)}),ee(n)},F=e=>{if(!y)return;let t=e.touches[0],n=e.currentTarget;n.dataset.touchStartX=t.clientX.toString(),n.dataset.touchStartY=t.clientY.toString()},I=e=>{if(!y)return;let t=e.touches[0],n=e.currentTarget,r=parseFloat(n.dataset.touchStartX||`0`),i=parseFloat(n.dataset.touchStartY||`0`),a=t.clientX-r,o=t.clientY-i;(Math.abs(a)>Math.abs(o)||l===`x`)&&e.preventDefault()},L=e=>{if(!y)return;let t=e.currentTarget,n=parseFloat(t.dataset.touchStartX||`0`),r=parseFloat(t.dataset.touchStartY||`0`);if(!n&&!r)return;let i=e.changedTouches[0],a=i.clientX-n,o=i.clientY-r,s=Math.max(Math.abs(a),Math.abs(o))>30;s&&(l===`x`?a>0?N():M():o>0?N():M()),delete t.dataset.touchStartX,delete t.dataset.touchStartY},R=e=>{b&&(e.preventDefault(),e.deltaY>0?M():N())},z=e=>{if(!g||!e)return;let t,n=()=>{t=setInterval(M,_)},r=()=>{clearInterval(t)};return e.addEventListener(`mouseenter`,r),e.addEventListener(`mouseleave`,n),n(),()=>{clearInterval(t),e.removeEventListener(`mouseenter`,r),e.removeEventListener(`mouseleave`,n)}},te=()=>{let e=typeof document<`u`?document.querySelector(`.${w}`):null;if(!e)return;let t=[];e.addEventListener(`scroll`,P),t.push(()=>e.removeEventListener(`scroll`,P)),y&&(e.addEventListener(`touchstart`,F),e.addEventListener(`touchmove`,I,{passive:!1}),e.addEventListener(`touchend`,L),t.push(()=>e.removeEventListener(`touchstart`,F)),t.push(()=>e.removeEventListener(`touchmove`,I)),t.push(()=>e.removeEventListener(`touchend`,L))),b&&(e.addEventListener(`wheel`,R,{passive:!1}),t.push(()=>e.removeEventListener(`wheel`,R)));let n=z(e);return n&&t.push(n),j(0),()=>t.forEach(e=>e())};typeof window<`u`&&typeof document<`u`&&setTimeout(te,0);let B=c.html`
206
- <div class="${D}">
207
- ${Array.from({length:k},(e,t)=>c.html`
228
+ `}function et(e={},t){if(t===void 0)return t=>et(e,t??[c.html``]);let n=Z(`Swiper`),{gap:r=`8px`,snapType:i=`mandatory`,height:a=`auto`,width:o=`100%`,className:s=Y(`Swiper::swiper`)+`-lyco-now-${n}`,direction:l=`x`,scrollBehavior:u=`smooth`,align:d=`start`,showNavigation:f=!0,navigationPosition:p=`inside`,showPagination:m=!0,paginationType:h=`dots`,autoPlay:g=!1,interval:_=3e3,loop:v=!1,touchEnabled:y=!0,mouseWheel:b=!1,onSlideChange:ee,on:x}=e,S=s,C=S+`-container`,w=S+`-slide`,T=S+`-navigation`,E=S+`-pagination`,D;D=t?typeof t==`function`?t():t:[];let O=D.length,[k,te]=(()=>{let e={value:0};return[()=>e.value,t=>{let n=Math.max(0,Math.min(t,O-1));e.value!==n&&(e.value=n,ee?.(n))}]})(),A=e=>{let t=typeof document<`u`?document.querySelector(`.${C}`):null;if(!t)return;let n=t.querySelectorAll(`.${w}`);if(e<0||e>=n.length)return;let r=n[e],i=r.getBoundingClientRect(),a=t.getBoundingClientRect(),o;l===`x`?(o=r.offsetLeft-t.offsetLeft,d===`center`?o-=(a.width-i.width)/2:d===`end`&&(o-=a.width-i.width),t.scrollTo({left:o,behavior:u})):(o=r.offsetTop-t.offsetTop,d===`center`?o-=(a.height-i.height)/2:d===`end`&&(o-=a.height-i.height),t.scrollTo({top:o,behavior:u})),te(e)},j=()=>{let e=k()+1>=O?v?0:k():k()+1;A(e)},M=()=>{let e=k()-1<0?v?O-1:k():k()-1;A(e)},N=()=>{let e=typeof document<`u`?document.querySelector(`.${C}`):null;if(!e)return;let t=e.querySelectorAll(`.${w}`),n=0,r=1/0;t.forEach((t,i)=>{let a=t.getBoundingClientRect(),o=e.getBoundingClientRect(),s;if(l===`x`){let e=a.left+a.width/2-(o.left+o.width/2);s=Math.abs(e)}else{let e=a.top+a.height/2-(o.top+o.height/2);s=Math.abs(e)}s<r&&(r=s,n=i)}),te(n)},P=e=>{if(!y)return;let t=e.touches[0],n=e.currentTarget;n.dataset.touchStartX=t.clientX.toString(),n.dataset.touchStartY=t.clientY.toString()},F=e=>{if(!y)return;let t=e.touches[0],n=e.currentTarget,r=parseFloat(n.dataset.touchStartX||`0`),i=parseFloat(n.dataset.touchStartY||`0`),a=t.clientX-r,o=t.clientY-i;(Math.abs(a)>Math.abs(o)||l===`x`)&&e.preventDefault()},I=e=>{if(!y)return;let t=e.currentTarget,n=parseFloat(t.dataset.touchStartX||`0`),r=parseFloat(t.dataset.touchStartY||`0`);if(!n&&!r)return;let i=e.changedTouches[0],a=i.clientX-n,o=i.clientY-r,s=Math.max(Math.abs(a),Math.abs(o))>30;s&&(l===`x`?a>0?M():j():o>0?M():j()),delete t.dataset.touchStartX,delete t.dataset.touchStartY},L=e=>{b&&(e.preventDefault(),e.deltaY>0?j():M())},R=e=>{if(!g||!e)return;let t,n=()=>{t=setInterval(j,_)},r=()=>{clearInterval(t)};return e.addEventListener(`mouseenter`,r),e.addEventListener(`mouseleave`,n),n(),()=>{clearInterval(t),e.removeEventListener(`mouseenter`,r),e.removeEventListener(`mouseleave`,n)}},ne=()=>{let e=typeof document<`u`?document.querySelector(`.${C}`):null;if(!e)return;let t=[];e.addEventListener(`scroll`,N),t.push(()=>e.removeEventListener(`scroll`,N)),y&&(e.addEventListener(`touchstart`,P),e.addEventListener(`touchmove`,F,{passive:!1}),e.addEventListener(`touchend`,I),t.push(()=>e.removeEventListener(`touchstart`,P)),t.push(()=>e.removeEventListener(`touchmove`,F)),t.push(()=>e.removeEventListener(`touchend`,I))),b&&(e.addEventListener(`wheel`,L,{passive:!1}),t.push(()=>e.removeEventListener(`wheel`,L)));let n=R(e);return n&&t.push(n),A(0),()=>t.forEach(e=>e())};typeof window<`u`&&typeof document<`u`&&setTimeout(ne,0);let z=c.html`
229
+ <div class="${E}">
230
+ ${Array.from({length:O},(e,t)=>c.html`
208
231
  <button
209
- class="${t===A()?`active`:``}"
210
- @click=${()=>j(t)}
232
+ class="${t===k()?`active`:``}"
233
+ @click=${()=>A(t)}
211
234
  ></button>
212
235
  `)}
213
236
  </div>
214
- `,V=c.html`
215
- <div class="${D} fraction">
216
- <span class="current">${A()+1}</span>
237
+ `,B=c.html`
238
+ <div class="${E} fraction">
239
+ <span class="current">${k()+1}</span>
217
240
  <span class="separator">/</span>
218
- <span class="total">${k}</span>
241
+ <span class="total">${O}</span>
219
242
  </div>
220
- `,ne=c.html`
221
- <div class="${D} progressbar">
243
+ `,re=c.html`
244
+ <div class="${E} progressbar">
222
245
  <div
223
246
  class="progress"
224
- style="width: ${k>1?A()/(k-1)*100:0}%"
247
+ style="width: ${O>1?k()/(O-1)*100:0}%"
225
248
  ></div>
226
249
  </div>
227
- `,re=c.html`
228
- <div class="${E}">
229
- <button class="prev" @click=${N}>◀</button>
230
- <button class="next" @click=${M}>▶</button>
250
+ `,ie=c.html`
251
+ <div class="${T}">
252
+ <button class="prev" @click=${M}>◀</button>
253
+ <button class="next" @click=${j}>▶</button>
231
254
  </div>
232
- `,ie=`
233
- .${C} {
255
+ `,ae=`
256
+ .${S} {
234
257
  position: relative;
235
258
  overflow: hidden;
236
259
  width: ${o};
237
260
  height: ${a};
238
261
  }
239
262
 
240
- .${w} {
263
+ .${C} {
241
264
  width: 100%;
242
265
  height: 100%;
243
266
  overflow: auto;
@@ -249,12 +272,12 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
249
272
  flex-direction: ${l===`x`?`row`:`column`};
250
273
  }
251
274
 
252
- .${T} {
275
+ .${w} {
253
276
  scroll-snap-align: ${d};
254
277
  flex-shrink: 0;
255
278
  }
256
279
 
257
- .${E} {
280
+ .${T} {
258
281
  position: absolute;
259
282
  top: 50%;
260
283
  left: 0;
@@ -266,7 +289,7 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
266
289
  padding: ${p===`outside`?`0 1rem`:`0 0.5rem`};
267
290
  }
268
291
 
269
- .${E} button {
292
+ .${T} button {
270
293
  width: 2.5rem;
271
294
  height: 2.5rem;
272
295
  border-radius: 50%;
@@ -281,11 +304,11 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
281
304
  transition: background-color 0.3s;
282
305
  }
283
306
 
284
- .${E} button:hover {
307
+ .${T} button:hover {
285
308
  background-color: rgba(0, 0, 0, 0.8);
286
309
  }
287
310
 
288
- .${D} {
311
+ .${E} {
289
312
  position: absolute;
290
313
  bottom: 1rem;
291
314
  left: 0;
@@ -295,7 +318,7 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
295
318
  gap: 0.5rem;
296
319
  align-items: center;
297
320
  }
298
- .${D} button {
321
+ .${E} button {
299
322
  width: 0.75rem;
300
323
  height: 0.75rem;
301
324
  border-radius: 50%;
@@ -304,12 +327,12 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
304
327
  cursor: pointer;
305
328
  transition: background-color 0.3s, transform 0.3s;
306
329
  }
307
- .${D} button.active {
330
+ .${E} button.active {
308
331
  background-color: white;
309
332
  transform: scale(1.2);
310
333
  }
311
334
 
312
- .${D}.fraction {
335
+ .${E}.fraction {
313
336
  position: absolute;
314
337
  bottom: 1rem;
315
338
  left: 50%;
@@ -321,7 +344,7 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
321
344
  gap: 0.25rem;
322
345
  }
323
346
 
324
- .${D}.progressbar {
347
+ .${E}.progressbar {
325
348
  position: absolute;
326
349
  bottom: 0.5rem;
327
350
  left: 0;
@@ -329,33 +352,36 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
329
352
  height: 0.25rem;
330
353
  background-color: rgba(255, 255, 255, 0.2);
331
354
  }
332
- .${D}.progressbar .progress {
355
+ .${E}.progressbar .progress {
333
356
  height: 100%;
334
357
  background-color: white;
335
358
  transition: width 0.3s;
336
359
  }
337
- `,ae=$(S??{});return Q(`Swiper`,c.html`
360
+ `,V=$(x??{});return Q(`Swiper`,c.html`
338
361
  <style>
339
- ${ie}
362
+ ${ae}
340
363
  </style>
341
364
 
342
- <div ${W(ae.auto)} class="${C}">
343
- <div class="${w}">
344
- ${O.map((e,t)=>c.html`
345
- <div class="${T} --slide-${t}" key=${t}>
365
+ <div
366
+ ${W(e=>{e?V.bind(e):V.unbindAll()})}
367
+ class="${S}"
368
+ >
369
+ <div class="${C}">
370
+ ${D.map((e,t)=>c.html`
371
+ <div class="${w} --slide-${t}" key=${t}>
346
372
  ${e}
347
373
  </div>
348
374
  `)}
349
375
  </div>
350
376
 
351
- ${f?re:null}
352
- ${m&&h===`dots`?B:null}
353
- ${m&&h===`fraction`?V:null}
354
- ${m&&h===`progressbar`?ne:null}
377
+ ${f?ie:null}
378
+ ${m&&h===`dots`?z:null}
379
+ ${m&&h===`fraction`?B:null}
380
+ ${m&&h===`progressbar`?re:null}
355
381
  </div>
356
382
  `)}function tt(e,t){let n=e?.top?`top: ${e.top};`:``,r=e?.right?`right: ${e.right};`:``,i=e?.bottom?`bottom: ${e.bottom};`:``,a=e?.left?`left: ${e.left};`:``,o=e?.width?`width: ${e.width};`:``,s=e?.height?`height: ${e.height};`:``,l=typeof e?.zIndex==`number`?`z-index: ${e.zIndex};`:``,u=e?.style?e.style:``,d=e?.className?e.className:``,f=$(e?.on??{}),p=e=>c.html`
357
383
  <div
358
- ${W(f.auto)}
384
+ ${W(e=>{e?f.bind(e):f.unbindAll()})}
359
385
  class="${d}"
360
386
  style="
361
387
  position: absolute;
@@ -369,7 +395,7 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
369
395
  </div>
370
396
  `;return Le(t,p)}function nt(e,t){let n=e?.width??`300px`,r=e?.height??`auto`,i=e?.top??`20%`,a=e?.bottom??`auto`,o=e?.left??`50%`,s=e?.right??`auto`,l=o===`auto`?``:`transform: translateX(-50%);`,u=e?.background??`rgba(255, 255, 255, 0.3)`,d=e?.blur??`10px`,f=e?.borderRadius??`12px`,p=e?.padding??`16px`,m=e?.zIndex??1e3,h=$(e?.on??{}),g=e=>c.html`
371
397
  <div
372
- ${W(h.auto)}
398
+ ${W(e=>{e?h.bind(e):h.unbindAll()})}
373
399
  style="
374
400
  position: fixed;
375
401
  top: ${i};
@@ -394,7 +420,7 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
394
420
  </div>
395
421
  `;return Re(t,void 0,g)}function rt(e,t){if(t===void 0)return t=>rt(e,t??[c.html``]);let n=`${100/e.ratio}%`,r=e.maxWidth?`max-width: ${e.maxWidth};`:``,i=e.background?`background: ${e.background};`:``,a=e.overflow??`hidden`,o=$(e.on??{});return c.html`
396
422
  <div
397
- ${W(o.auto)}
423
+ ${W(e=>{e?o.bind(e):o.unbindAll()})}
398
424
  style="
399
425
  position: relative;
400
426
  width: 100%;
@@ -426,7 +452,12 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
426
452
  <style>
427
453
  ${a}
428
454
  </style>
429
- <div class="${r}" ${W(o.auto)}>${G(t)}</div>
455
+ <div
456
+ class="${r}"
457
+ ${W(e=>{e?o.bind(e):o.unbindAll()})}
458
+ >
459
+ ${G(t)}
460
+ </div>
430
461
  `)}function at(e,t){if(t===void 0)return t=>at(e,t??[c.html``]);let n=e?.size??`32px`,r=e?.overlap??`-8px`,i=$(e?.on??{}),a=(e,t)=>c.html`
431
462
  <div
432
463
  style="
@@ -442,14 +473,17 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
442
473
  ${e}
443
474
  </div>
444
475
  `;return c.html`
445
- <div ${W(i.auto)} style="display: flex; align-items: center;">
476
+ <div
477
+ ${W(e=>{e?i.bind(e):i.unbindAll()})}
478
+ style="display: flex; align-items: center;"
479
+ >
446
480
  ${K(t,a)}
447
481
  </div>
448
482
  `}function ot(e,t){if(t===void 0){let t=t=>ot(e,t??c.html``);return t.html=(t,...n)=>ot(e,(0,c.html)(t,...n)),t}let n=e?.position??`top-right`,r=e?.size??`16px`,i=e?.background??`red`,a=e?.color??`#fff`,[o,s,l,u]=[n.includes(`top`)?`0`:`auto`,n.includes(`right`)?`0`:`auto`,n.includes(`bottom`)?`0`:`auto`,n.includes(`left`)?`0`:`auto`],d=$(e?.on??{});return c.html`
449
483
  <div style="position: relative; display: inline-block;">
450
484
  ${G(t)}
451
485
  <div
452
- ${W(d.auto)}
486
+ ${W(e=>{e?d.bind(e):d.unbindAll()})}
453
487
  style="
454
488
  position: absolute;
455
489
  top: ${o};
@@ -471,7 +505,7 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
471
505
  ${e?.content??``}
472
506
  </div>
473
507
  </div>
474
- `}function st(e,t){return e?n=>{typeof e==`function`?e(n):e.current=n,typeof t==`function`?t(n):t.current=n}:t}function ct(e,t){if(!t)return t=>ct(e,t??Me());let n=$(e?.on??{}),r=st(t,n.auto);return c.html`
508
+ `}function st(e,t){return e?n=>{typeof e==`function`?e(n):e.current=n,typeof t==`function`?t(n):t.current=n}:t}function ct(e,t){if(!t)return t=>ct(e,t??Me());let n=$(e?.on??{}),r=st(t,e=>{e?n.bind(e):n.unbindAll()});return c.html`
475
509
  <canvas
476
510
  ${W(r)}
477
511
  .class=${e?.className}
@@ -479,7 +513,7 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
479
513
  ></canvas>
480
514
  `}function lt(e,t){if(t===void 0)return t=>lt(e,t??[c.html``]);let n=e?.padding??`16px`,r=e?.borderRadius??`8px`,i=e?.shadow??`0 2px 8px rgba(0,0,0,0.1)`,a=e?.background??`#fff`,o=$(e?.on??{});return c.html`
481
515
  <div
482
- ${W(o.auto)}
516
+ ${W(e=>{e?o.bind(e):o.unbindAll()})}
483
517
  style="
484
518
  background: ${a};
485
519
  border-radius: ${r};
@@ -492,7 +526,7 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
492
526
  </div>
493
527
  `}function ut(e,t){if(t===void 0){let t=t=>ut(e,t??c.html``);return t.html=(t,...n)=>ut(e,(0,c.html)(t,...n)),t}let n=e?.width?`width: ${e.width};`:``,r=e?.height?`height: ${e.height};`:``,i=e?.background?`background: ${e.background};`:``,a=$(e?.on??{});return c.html`
494
528
  <div
495
- ${W(a.auto)}
529
+ ${W(e=>{e?a.bind(e):a.unbindAll()})}
496
530
  style="
497
531
  display: flex;
498
532
  justify-content: center;
@@ -504,7 +538,7 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
504
538
  </div>
505
539
  `}function dt(e,t){if(t===void 0)return t=>dt(e,t??[c.html``]);let n=e?.maxWidth??`1024px`,r=e?.padding??`0 16px`,i=e?.background?`background: ${e.background};`:``,a=e?.fullHeight?`height: 100%;`:``,o=$(e?.on??{});return c.html`
506
540
  <div
507
- ${W(o.auto)}
541
+ ${W(e=>{e?o.bind(e):o.unbindAll()})}
508
542
  style="
509
543
  width: 100%;
510
544
  max-width: ${n};
@@ -518,9 +552,12 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
518
552
  >
519
553
  ${K(t)}
520
554
  </div>
521
- `}function ft(e){let t=e?.orientation??`horizontal`,n=e?.thickness??`1px`,r=e?.color??`#e0e0e0`,i=e?.margin??(t===`horizontal`?`8px 0`:`0 8px`),a=$(e?.on??{}),o=t===`horizontal`?`width: 100%; height: ${n}; background: ${r}; margin: ${i};`:`width: ${n}; height: 100%; background: ${r}; margin: ${i};`;return c.html`<div ${W(a.auto)} style="${o}"></div>`}function pt(e,t){if(t===void 0){let t=t=>pt(e,t??c.html``);return t.html=(t,...n)=>pt(e,(0,c.html)(t,...n)),t}let n=e?.columns??4,r=e?.gap??`24px`,i=e?.background??`#f8f8f8`,a=e?.padding??`40px 16px`,o=$(e?.on??{});return c.html`
555
+ `}function ft(e){let t=e?.orientation??`horizontal`,n=e?.thickness??`1px`,r=e?.color??`#e0e0e0`,i=e?.margin??(t===`horizontal`?`8px 0`:`0 8px`),a=$(e?.on??{}),o=t===`horizontal`?`width: 100%; height: ${n}; background: ${r}; margin: ${i};`:`width: ${n}; height: 100%; background: ${r}; margin: ${i};`;return c.html`<div
556
+ ${W(e=>{e?a.bind(e):a.unbindAll()})}
557
+ style="${o}"
558
+ ></div>`}function pt(e,t){if(t===void 0){let t=t=>pt(e,t??c.html``);return t.html=(t,...n)=>pt(e,(0,c.html)(t,...n)),t}let n=e?.columns??4,r=e?.gap??`24px`,i=e?.background??`#f8f8f8`,a=e?.padding??`40px 16px`,o=$(e?.on??{});return c.html`
522
559
  <div
523
- ${W(o.auto)}
560
+ ${W(e=>{e?o.bind(e):o.unbindAll()})}
524
561
  style="
525
562
  width: 100%;
526
563
  background: ${i};
@@ -554,10 +591,15 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
554
591
  <style>
555
592
  ${s}
556
593
  </style>
557
- <div ${W(l.auto)} class="${a}">${G(t)}</div>
594
+ <div
595
+ ${W(e=>{e?l.bind(e):l.unbindAll()})}
596
+ class="${a}"
597
+ >
598
+ ${G(t)}
599
+ </div>
558
600
  `)}function gt(e,t){if(t===void 0)return t=>gt(e,t??[c.html``]);let n=e?.backgroundImage?`background-image: url('${e.backgroundImage}');`:``,r=e?.height??`400px`,i=e?.overlayColor??`rgba(0, 0, 0, 0.3)`,a=$(e?.on??{});return c.html`
559
601
  <div
560
- ${W(a.auto)}
602
+ ${W(e=>{e?a.bind(e):a.unbindAll()})}
561
603
  style="
562
604
  position: relative;
563
605
  width: 100%;
@@ -602,7 +644,12 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
602
644
  <style>
603
645
  ${s}
604
646
  </style>
605
- <div ${W(l.auto)} class="${a}">${G(t)}</div>
647
+ <div
648
+ ${W(e=>{e?l.bind(e):l.unbindAll()})}
649
+ class="${a}"
650
+ >
651
+ ${G(t)}
652
+ </div>
606
653
  `)}function vt(e){return c.html` <li>${K(e)}</li> `}function yt(e,t){let n=e?.bordered?`border: 1px solid #ddd; border-radius: 4px`:``,r=e?.striped?`li:nth-child(even) { background: #f9f9f9; }`:``,i=e?.hover?`li:hover { background: #f1f1f1; cursor: pointer; }`:``,a=Z(`List`),o=e?.className??Y(`List::list`)+`-lyco-now-${a}`,s=`
607
654
  ul.${o} {
608
655
  list-style: none;
@@ -646,12 +693,15 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
646
693
  <style>
647
694
  ${l}
648
695
  </style>
649
- <ul ${W(u.auto)} class="${o}">
696
+ <ul
697
+ ${W(e=>{e?u.bind(e):u.unbindAll()})}
698
+ class="${o}"
699
+ >
650
700
  ${K(e,s)}
651
701
  </ul>
652
702
  `);return Re(t,d)}function xt(e,t){if(t===void 0)return t=>xt(e,t??[c.html``]);let n=e?.background??`rgba(0, 0, 0, 0.5)`,r=e?.zIndex??1e3,i=e?.fullScreen!==!1,a=$(e?.on??{});return c.html`
653
703
  <div
654
- ${W(a.auto)}
704
+ ${W(e=>{e?a.bind(e):a.unbindAll()})}
655
705
  style="
656
706
  position: ${i?`fixed`:`absolute`};
657
707
  top: 0; left: 0; right: 0; bottom: 0;
@@ -666,7 +716,7 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
666
716
  </div>
667
717
  `}function St(e,t){if(t===void 0){let t=t=>St(e,t??c.html``);return t.html=(t,...n)=>St(e,(0,c.html)(t,...n)),t}let n=e?.width?`width: ${e.width};`:``,r=e?.height?`height: ${e.height};`:``,i=e?.background?`background: ${e.background};`:``,a=$(e?.on??{});return c.html`
668
718
  <div
669
- ${W(a.auto)}
719
+ ${W(e=>{e?a.bind(e):a.unbindAll()})}
670
720
  style="
671
721
  position: relative;
672
722
  ${n} ${r} ${i}
@@ -675,7 +725,10 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
675
725
  >
676
726
  ${G(t)}
677
727
  </div>
678
- `}function Ct(e){let t=e?.width?`width: ${e.width};`:``,n=e?.height?`height: ${e.height};`:``,r=$(e?.on??{});return c.html`<div ${W(r.auto)} style="${t} ${n}"></div>`}function wt(e){let t=e?.type??`rect`,n=e?.width??`100%`,r=e?.height??`16px`,i=e?.borderRadius??`4px`,a=e?.animation!==!1,o=Z(`SkeletonLoader`),s=e?.className??Y(`SkeletonLoader::skeleton-shimmer`)+`-lyco-now-`+o,l=t===`circle`?`border-radius: 50%; width: ${n}; height: ${n}`:`border-radius: ${i}; width: ${n}; height: ${r}`,u=$(e?.on??{});return Q(`SkeletonLoader`,c.html`
728
+ `}function Ct(e){let t=e?.width?`width: ${e.width};`:``,n=e?.height?`height: ${e.height};`:``,r=$(e?.on??{});return c.html`<div
729
+ ${W(e=>{e?r.bind(e):r.unbindAll()})}
730
+ style="${t} ${n}"
731
+ ></div>`}function wt(e){let t=e?.type??`rect`,n=e?.width??`100%`,r=e?.height??`16px`,i=e?.borderRadius??`4px`,a=e?.animation!==!1,o=Z(`SkeletonLoader`),s=e?.className??Y(`SkeletonLoader::skeleton-shimmer`)+`-lyco-now-`+o,l=t===`circle`?`border-radius: 50%; width: ${n}; height: ${n}`:`border-radius: ${i}; width: ${n}; height: ${r}`,u=$(e?.on??{});return Q(`SkeletonLoader`,c.html`
679
732
  <style>
680
733
  ${`
681
734
  @keyframes ${s+`-shimmer`} {
@@ -690,10 +743,16 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
690
743
  ${a?`animation: ${s+`-shimmer`} 1.2s infinite ease-in-out`:``};
691
744
  }
692
745
  </style>
693
- <div ${W(u.auto)} class="${s}"></div>
694
- `)}function Tt(e){let t=$(e?.on??{});return c.html`<div ${W(t.auto)} style="flex: 1 1 auto;"></div>`}function Et(e,t){if(t===void 0){let t=t=>Et(e,t??c.html``);return t.html=(t,...n)=>Et(e,(0,c.html)(t,...n)),t}let n=e?.top?`top: ${e.top};`:``,r=e?.bottom?`bottom: ${e.bottom};`:``,i=typeof e?.zIndex==`number`?`z-index: ${e.zIndex};`:``,a=$(e?.on??{});return c.html`
746
+ <div
747
+ ${W(e=>{e?u.bind(e):u.unbindAll()})}
748
+ class="${s}"
749
+ ></div>
750
+ `)}function Tt(e){let t=$(e?.on??{});return c.html`<div
751
+ ${W(e=>{e?t.bind(e):t.unbindAll()})}
752
+ style="flex: 1 1 auto;"
753
+ ></div>`}function Et(e,t){if(t===void 0){let t=t=>Et(e,t??c.html``);return t.html=(t,...n)=>Et(e,(0,c.html)(t,...n)),t}let n=e?.top?`top: ${e.top};`:``,r=e?.bottom?`bottom: ${e.bottom};`:``,i=typeof e?.zIndex==`number`?`z-index: ${e.zIndex};`:``,a=$(e?.on??{});return c.html`
695
754
  <div
696
- ${W(a.auto)}
755
+ ${W(e=>{e?a.bind(e):a.unbindAll()})}
697
756
  style="
698
757
  position: sticky;
699
758
  ${n} ${r}
@@ -727,14 +786,17 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
727
786
  ${s}
728
787
  </style>
729
788
 
730
- <div ${W(l.auto)} class="${r}">
789
+ <div
790
+ ${W(e=>{e?l.bind(e):l.unbindAll()})}
791
+ class="${r}"
792
+ >
731
793
  <table>
732
794
  ${G(t)}
733
795
  </table>
734
796
  </div>
735
797
  `)}function Ot(e,t){let n=e?.direction??`row`,r=$(e?.on??{});return t===void 0?t=>Ot(e,t??c.html``):c.html`
736
798
  <div
737
- ${W(r.auto)}
799
+ ${W(e=>{e?r.bind(e):r.unbindAll()})}
738
800
  style="
739
801
  display: flex;
740
802
  flex-direction: ${n};
@@ -748,7 +810,7 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
748
810
  </div>
749
811
  `}function kt(e,t){let n=e?.width?`width: ${e.width};`:``,r=e?.height?`height: ${e.height};`:``,i=e?.background?`background: ${e.background};`:``,a=$(e?.on??{});if(t===void 0)return t=>kt(e,t??[c.html``]);let o=`flex-start`,s=`flex-start`;switch(e?.align){case`top-right`:o=`flex-end`,s=`flex-start`;break;case`center`:o=`center`,s=`center`;break;case`bottom-left`:o=`flex-start`,s=`flex-end`;break;case`bottom-right`:o=`flex-end`,s=`flex-end`;break;default:o=`flex-start`,s=`flex-start`}return c.html`
750
812
  <div
751
- ${W(a.auto)}
813
+ ${W(e=>{e?a.bind(e):a.unbindAll()})}
752
814
  style="
753
815
  position: relative;
754
816
  display: flex;