UNPKG

@bikematrix/web-components

Version:
1 lines 352 kB
var BikeMatrix=function(){"use strict";var Oe,E,lr,cr,ke,dr,pr,Ft,gr,Ue={},fr=[],Qa=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,at=Array.isArray;function pe(t,e){for(var r in e)t[r]=e[r];return t}function hr(t){var e=t.parentNode;e&&e.removeChild(t)}function z(t,e,r){var a,o,i,n={};for(i in e)i=="key"?a=e[i]:i=="ref"?o=e[i]:n[i]=e[i];if(arguments.length>2&&(n.children=arguments.length>3?Oe.call(arguments,2):r),typeof t=="function"&&t.defaultProps!=null)for(i in t.defaultProps)n[i]===void 0&&(n[i]=t.defaultProps[i]);return Ie(t,n,a,o,null)}function Ie(t,e,r,a,o){var i={type:t,props:e,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++lr,__i:-1,__u:0};return o==null&&E.vnode!=null&&E.vnode(i),i}function L(t){return t.children}function ue(t,e){this.props=t,this.context=e}function Ae(t,e){if(e==null)return t.__?Ae(t.__,t.__i+1):null;for(var r;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null)return r.__e;return typeof t.type=="function"?Ae(t):null}function br(t){var e,r;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null){t.__e=t.__c.base=r.__e;break}return br(t)}}function Lt(t){(!t.__d&&(t.__d=!0)&&ke.push(t)&&!ot.__r++||dr!==E.debounceRendering)&&((dr=E.debounceRendering)||pr)(ot)}function ot(){var t,e,r,a,o,i,n,s,u;for(ke.sort(Ft);t=ke.shift();)t.__d&&(e=ke.length,a=void 0,i=(o=(r=t).__v).__e,s=[],u=[],(n=r.__P)&&((a=pe({},o)).__v=o.__v+1,E.vnode&&E.vnode(a),qt(n,a,o,r.__n,n.ownerSVGElement!==void 0,32&o.__u?[i]:null,s,i??Ae(o),!!(32&o.__u),u),a.__v=o.__v,a.__.__k[a.__i]=a,xr(s,a,u),a.__e!=i&&br(a)),ke.length>e&&ke.sort(Ft));ot.__r=0}function mr(t,e,r,a,o,i,n,s,u,l,p){var d,g,f,b,m,_=a&&a.__k||fr,v=e.length;for(r.__d=u,Xa(r,e,_),u=r.__d,d=0;d<v;d++)(f=r.__k[d])!=null&&typeof f!="boolean"&&typeof f!="function"&&(g=f.__i===-1?Ue:_[f.__i]||Ue,f.__i=d,qt(t,f,g,o,i,n,s,u,l,p),b=f.__e,f.ref&&g.ref!=f.ref&&(g.ref&&zt(g.ref,null,f),p.push(f.ref,f.__c||b,f)),m==null&&b!=null&&(m=b),65536&f.__u||g.__k===f.__k?u=_r(f,u,t):typeof f.type=="function"&&f.__d!==void 0?u=f.__d:b&&(u=b.nextSibling),f.__d=void 0,f.__u&=-196609);r.__d=u,r.__e=m}function Xa(t,e,r){var a,o,i,n,s,u=e.length,l=r.length,p=l,d=0;for(t.__k=[],a=0;a<u;a++)n=a+d,(o=t.__k[a]=(o=e[a])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?Ie(null,o,null,null,null):at(o)?Ie(L,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?Ie(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=t,o.__b=t.__b+1,s=eo(o,r,n,p),o.__i=s,i=null,s!==-1&&(p--,(i=r[s])&&(i.__u|=131072)),i==null||i.__v===null?(s==-1&&d--,typeof o.type!="function"&&(o.__u|=65536)):s!==n&&(s===n+1?d++:s>n?p>u-n?d+=s-n:d--:s<n?s==n-1&&(d=s-n):d=0,s!==a+d&&(o.__u|=65536))):(i=r[n])&&i.key==null&&i.__e&&!(131072&i.__u)&&(i.__e==t.__d&&(t.__d=Ae(i)),Rt(i,i,!1),r[n]=null,p--);if(p)for(a=0;a<l;a++)(i=r[a])!=null&&!(131072&i.__u)&&(i.__e==t.__d&&(t.__d=Ae(i)),Rt(i,i))}function _r(t,e,r){var a,o;if(typeof t.type=="function"){for(a=t.__k,o=0;a&&o<a.length;o++)a[o]&&(a[o].__=t,e=_r(a[o],e,r));return e}t.__e!=e&&(r.insertBefore(t.__e,e||null),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType===8);return e}function it(t,e){return e=e||[],t==null||typeof t=="boolean"||(at(t)?t.some(function(r){it(r,e)}):e.push(t)),e}function eo(t,e,r,a){var o=t.key,i=t.type,n=r-1,s=r+1,u=e[r];if(u===null||u&&o==u.key&&i===u.type&&!(131072&u.__u))return r;if(a>(u!=null&&!(131072&u.__u)?1:0))for(;n>=0||s<e.length;){if(n>=0){if((u=e[n])&&!(131072&u.__u)&&o==u.key&&i===u.type)return n;n--}if(s<e.length){if((u=e[s])&&!(131072&u.__u)&&o==u.key&&i===u.type)return s;s++}}return-1}function yr(t,e,r){e[0]==="-"?t.setProperty(e,r??""):t[e]=r==null?"":typeof r!="number"||Qa.test(e)?r:r+"px"}function nt(t,e,r,a,o){var i;e:if(e==="style")if(typeof r=="string")t.style.cssText=r;else{if(typeof a=="string"&&(t.style.cssText=a=""),a)for(e in a)r&&e in r||yr(t.style,e,"");if(r)for(e in r)a&&r[e]===a[e]||yr(t.style,e,r[e])}else if(e[0]==="o"&&e[1]==="n")i=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=r,r?a?r.u=a.u:(r.u=Date.now(),t.addEventListener(e,i?vr:kr,i)):t.removeEventListener(e,i?vr:kr,i);else{if(o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e!=="rowSpan"&&e!=="colSpan"&&e!=="role"&&e in t)try{t[e]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&e[4]!=="-"?t.removeAttribute(e):t.setAttribute(e,r))}}function kr(t){if(this.l){var e=this.l[t.type+!1];if(t.t){if(t.t<=e.u)return}else t.t=Date.now();return e(E.event?E.event(t):t)}}function vr(t){if(this.l)return this.l[t.type+!0](E.event?E.event(t):t)}function qt(t,e,r,a,o,i,n,s,u,l){var p,d,g,f,b,m,_,v,h,C,x,D,S,B,R,q=e.type;if(e.constructor!==void 0)return null;128&r.__u&&(u=!!(32&r.__u),i=[s=e.__e=r.__e]),(p=E.__b)&&p(e);e:if(typeof q=="function")try{if(v=e.props,h=(p=q.contextType)&&a[p.__c],C=p?h?h.props.value:p.__:a,r.__c?_=(d=e.__c=r.__c).__=d.__E:("prototype"in q&&q.prototype.render?e.__c=d=new q(v,C):(e.__c=d=new ue(v,C),d.constructor=q,d.render=ro),h&&h.sub(d),d.props=v,d.state||(d.state={}),d.context=C,d.__n=a,g=d.__d=!0,d.__h=[],d._sb=[]),d.__s==null&&(d.__s=d.state),q.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=pe({},d.__s)),pe(d.__s,q.getDerivedStateFromProps(v,d.__s))),f=d.props,b=d.state,d.__v=e,g)q.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(q.getDerivedStateFromProps==null&&v!==f&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(v,C),!d.__e&&(d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(v,d.__s,C)===!1||e.__v===r.__v)){for(e.__v!==r.__v&&(d.props=v,d.state=d.__s,d.__d=!1),e.__e=r.__e,e.__k=r.__k,e.__k.forEach(function(O){O&&(O.__=e)}),x=0;x<d._sb.length;x++)d.__h.push(d._sb[x]);d._sb=[],d.__h.length&&n.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(v,d.__s,C),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(f,b,m)})}if(d.context=C,d.props=v,d.__P=t,d.__e=!1,D=E.__r,S=0,"prototype"in q&&q.prototype.render){for(d.state=d.__s,d.__d=!1,D&&D(e),p=d.render(d.props,d.state,d.context),B=0;B<d._sb.length;B++)d.__h.push(d._sb[B]);d._sb=[]}else do d.__d=!1,D&&D(e),p=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++S<25);d.state=d.__s,d.getChildContext!=null&&(a=pe(pe({},a),d.getChildContext())),g||d.getSnapshotBeforeUpdate==null||(m=d.getSnapshotBeforeUpdate(f,b)),mr(t,at(R=p!=null&&p.type===L&&p.key==null?p.props.children:p)?R:[R],e,r,a,o,i,n,s,u,l),d.base=e.__e,e.__u&=-161,d.__h.length&&n.push(d),_&&(d.__E=d.__=null)}catch(O){e.__v=null,u||i!=null?(e.__e=s,e.__u|=u?160:32,i[i.indexOf(s)]=null):(e.__e=r.__e,e.__k=r.__k),E.__e(O,e,r)}else i==null&&e.__v===r.__v?(e.__k=r.__k,e.__e=r.__e):e.__e=to(r.__e,e,r,a,o,i,n,u,l);(p=E.diffed)&&p(e)}function xr(t,e,r){e.__d=void 0;for(var a=0;a<r.length;a++)zt(r[a],r[++a],r[++a]);E.__c&&E.__c(e,t),t.some(function(o){try{t=o.__h,o.__h=[],t.some(function(i){i.call(o)})}catch(i){E.__e(i,o.__v)}})}function to(t,e,r,a,o,i,n,s,u){var l,p,d,g,f,b,m,_=r.props,v=e.props,h=e.type;if(h==="svg"&&(o=!0),i!=null){for(l=0;l<i.length;l++)if((f=i[l])&&"setAttribute"in f==!!h&&(h?f.localName===h:f.nodeType===3)){t=f,i[l]=null;break}}if(t==null){if(h===null)return document.createTextNode(v);t=o?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,v.is&&v),i=null,s=!1}if(h===null)_===v||s&&t.data===v||(t.data=v);else{if(i=i&&Oe.call(t.childNodes),_=r.props||Ue,!s&&i!=null)for(_={},l=0;l<t.attributes.length;l++)_[(f=t.attributes[l]).name]=f.value;for(l in _)f=_[l],l=="children"||(l=="dangerouslySetInnerHTML"?d=f:l==="key"||l in v||nt(t,l,null,f,o));for(l in v)f=v[l],l=="children"?g=f:l=="dangerouslySetInnerHTML"?p=f:l=="value"?b=f:l=="checked"?m=f:l==="key"||s&&typeof f!="function"||_[l]===f||nt(t,l,f,_[l],o);if(p)s||d&&(p.__html===d.__html||p.__html===t.innerHTML)||(t.innerHTML=p.__html),e.__k=[];else if(d&&(t.innerHTML=""),mr(t,at(g)?g:[g],e,r,a,o&&h!=="foreignObject",i,n,i?i[0]:r.__k&&Ae(r,0),s,u),i!=null)for(l=i.length;l--;)i[l]!=null&&hr(i[l]);s||(l="value",b!==void 0&&(b!==t[l]||h==="progress"&&!b||h==="option"&&b!==_[l])&&nt(t,l,b,_[l],!1),l="checked",m!==void 0&&m!==t[l]&&nt(t,l,m,_[l],!1))}return t}function zt(t,e,r){try{typeof t=="function"?t(e):t.current=e}catch(a){E.__e(a,r)}}function Rt(t,e,r){var a,o;if(E.unmount&&E.unmount(t),(a=t.ref)&&(a.current&&a.current!==t.__e||zt(a,null,e)),(a=t.__c)!=null){if(a.componentWillUnmount)try{a.componentWillUnmount()}catch(i){E.__e(i,e)}a.base=a.__P=null,t.__c=void 0}if(a=t.__k)for(o=0;o<a.length;o++)a[o]&&Rt(a[o],e,r||typeof t.type!="function");r||t.__e==null||hr(t.__e),t.__=t.__e=t.__d=void 0}function ro(t,e,r){return this.constructor(t,r)}function st(t,e,r){var a,o,i,n;E.__&&E.__(t,e),o=(a=typeof r=="function")?null:r&&r.__k||e.__k,i=[],n=[],qt(e,t=(!a&&r||e).__k=z(L,null,[t]),o||Ue,Ue,e.ownerSVGElement!==void 0,!a&&r?[r]:o?null:e.firstChild?Oe.call(e.childNodes):null,i,!a&&r?r:o?o.__e:e.firstChild,a,n),xr(i,t,n)}function Cr(t,e){st(t,e,Cr)}function wr(t,e,r){var a,o,i,n,s=pe({},t.props);for(i in t.type&&t.type.defaultProps&&(n=t.type.defaultProps),e)i=="key"?a=e[i]:i=="ref"?o=e[i]:s[i]=e[i]===void 0&&n!==void 0?n[i]:e[i];return arguments.length>2&&(s.children=arguments.length>3?Oe.call(arguments,2):r),Ie(t.type,s,a||t.key,o||t.ref,null)}function Dr(t,e){var r={__c:e="__cC"+gr++,__:t,Consumer:function(a,o){return a.children(o)},Provider:function(a){var o,i;return this.getChildContext||(o=[],(i={})[e]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&o.some(function(s){s.__e=!0,Lt(s)})},this.sub=function(n){o.push(n);var s=n.componentWillUnmount;n.componentWillUnmount=function(){o.splice(o.indexOf(n),1),s&&s.call(n)}}),a.children}};return r.Provider.__=r.Consumer.contextType=r}Oe=fr.slice,E={__e:function(t,e,r,a){for(var o,i,n;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(t)),n=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(t,a||{}),n=o.__d),n)return o.__E=o}catch(s){t=s}throw t}},lr=0,cr=function(t){return t!=null&&t.constructor==null},ue.prototype.setState=function(t,e){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=pe({},this.state),typeof t=="function"&&(t=t(pe({},r),this.props)),t&&pe(r,t),t!=null&&this.__v&&(e&&this._sb.push(e),Lt(this))},ue.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Lt(this))},ue.prototype.render=L,ke=[],pr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ft=function(t,e){return t.__v.__b-e.__v.__b},ot.__r=0,gr=0;function Nt(){return(Nt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t}).apply(this,arguments)}var ao=["context","children"];function oo(t){this.getChildContext=function(){return t.context};var e=t.children,r=function(a,o){if(a==null)return{};var i,n,s={},u=Object.keys(a);for(n=0;n<u.length;n++)o.indexOf(i=u[n])>=0||(s[i]=a[i]);return s}(t,ao);return wr(e,r)}function io(){var t=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(t),this._vdom=z(oo,Nt({},this._props,{context:t.detail.context}),function e(r,a){if(r.nodeType===3)return r.data;if(r.nodeType!==1)return null;var o=[],i={},n=0,s=r.attributes,u=r.childNodes;for(n=s.length;n--;)s[n].name!=="slot"&&(i[s[n].name]=s[n].value,i[Ar(s[n].name)]=s[n].value);for(n=u.length;n--;){var l=e(u[n],null),p=u[n].slot;p?i[p]=z(Sr,{name:p},l):o[n]=l}var d=a?z(Sr,null,o):o;return z(a||r.nodeName.toLowerCase(),i,d)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Cr:st)(this._vdom,this._root)}function Ar(t){return t.replace(/-(\w)/g,function(e,r){return r?r.toUpperCase():""})}function no(t,e,r){if(this._vdom){var a={};a[t]=r=r??void 0,a[Ar(t)]=r,this._vdom=wr(this._vdom,a),st(this._vdom,this._root)}}function so(){st(this._vdom=null,this._root)}function Sr(t,e){var r=this;return z("slot",Nt({},t,{ref:function(a){a?(r.ref=a,r._listener||(r._listener=function(o){o.stopPropagation(),o.detail.context=e},a.addEventListener("_preact",r._listener))):r.ref.removeEventListener("_preact",r._listener)}}))}function uo(t,e,r,a){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=t,i._root=a&&a.shadow?i.attachShadow({mode:a.mode||"open"}):i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=io,o.prototype.attributeChangedCallback=no,o.prototype.disconnectedCallback=so,r=r||t.observedAttributes||Object.keys(t.propTypes||{}),o.observedAttributes=r,r.forEach(function(i){Object.defineProperty(o.prototype,i,{get:function(){return this._vdom.props[i]},set:function(n){this._vdom?this.attributeChangedCallback(i,null,n):(this._props||(this._props={}),this._props[i]=n,this.connectedCallback());var s=typeof n;n!=null&&s!=="string"&&s!=="boolean"&&s!=="number"||this.setAttribute(i,n)}})}),customElements.define(e||t.tagName||t.displayName||t.name,o)}var Se,K,Pt,Br,Ve=0,Er=[],ut=[],Z=E,Fr=Z.__b,Lr=Z.__r,qr=Z.diffed,zr=Z.__c,Rr=Z.unmount,Nr=Z.__;function lt(t,e){Z.__h&&Z.__h(K,t,Ve||e),Ve=0;var r=K.__H||(K.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({__V:ut}),r.__[t]}function Q(t){return Ve=1,lo(Ur,t)}function lo(t,e,r){var a=lt(Se++,2);if(a.t=t,!a.__c&&(a.__=[r?r(e):Ur(void 0,e),function(s){var u=a.__N?a.__N[0]:a.__[0],l=a.t(u,s);u!==l&&(a.__N=[l,a.__[1]],a.__c.setState({}))}],a.__c=K,!K.u)){var o=function(s,u,l){if(!a.__c.__H)return!0;var p=a.__c.__H.__.filter(function(g){return!!g.__c});if(p.every(function(g){return!g.__N}))return!i||i.call(this,s,u,l);var d=!1;return p.forEach(function(g){if(g.__N){var f=g.__[0];g.__=g.__N,g.__N=void 0,f!==g.__[0]&&(d=!0)}}),!(!d&&a.__c.props===s)&&(!i||i.call(this,s,u,l))};K.u=!0;var i=K.shouldComponentUpdate,n=K.componentWillUpdate;K.componentWillUpdate=function(s,u,l){if(this.__e){var p=i;i=void 0,o(s,u,l),i=p}n&&n.call(this,s,u,l)},K.shouldComponentUpdate=o}return a.__N||a.__}function J(t,e){var r=lt(Se++,3);!Z.__s&&Or(r.__H,e)&&(r.__=t,r.i=e,K.__H.__h.push(r))}function Me(t){return Ve=5,ge(function(){return{current:t}},[])}function ge(t,e){var r=lt(Se++,7);return Or(r.__H,e)?(r.__V=t(),r.i=e,r.__h=t,r.__V):r.__}function co(t,e){return Ve=8,ge(function(){return t},e)}function Pr(t){var e=K.context[t.__c],r=lt(Se++,9);return r.c=t,e?(r.__==null&&(r.__=!0,e.sub(K)),e.props.value):t.__}function po(){for(var t;t=Er.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(ct),t.__H.__h.forEach(Tt),t.__H.__h=[]}catch(e){t.__H.__h=[],Z.__e(e,t.__v)}}Z.__b=function(t){K=null,Fr&&Fr(t)},Z.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Nr&&Nr(t,e)},Z.__r=function(t){Lr&&Lr(t),Se=0;var e=(K=t.__c).__H;e&&(Pt===K?(e.__h=[],K.__h=[],e.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=ut,r.__N=r.i=void 0})):(e.__h.forEach(ct),e.__h.forEach(Tt),e.__h=[],Se=0)),Pt=K},Z.diffed=function(t){qr&&qr(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Er.push(e)!==1&&Br===Z.requestAnimationFrame||((Br=Z.requestAnimationFrame)||go)(po)),e.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==ut&&(r.__=r.__V),r.i=void 0,r.__V=ut})),Pt=K=null},Z.__c=function(t,e){e.some(function(r){try{r.__h.forEach(ct),r.__h=r.__h.filter(function(a){return!a.__||Tt(a)})}catch(a){e.some(function(o){o.__h&&(o.__h=[])}),e=[],Z.__e(a,r.__v)}}),zr&&zr(t,e)},Z.unmount=function(t){Rr&&Rr(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach(function(a){try{ct(a)}catch(o){e=o}}),r.__H=void 0,e&&Z.__e(e,r.__v))};var Tr=typeof requestAnimationFrame=="function";function go(t){var e,r=function(){clearTimeout(a),Tr&&cancelAnimationFrame(e),setTimeout(t)},a=setTimeout(r,100);Tr&&(e=requestAnimationFrame(r))}function ct(t){var e=K,r=t.__c;typeof r=="function"&&(t.__c=void 0,r()),K=e}function Tt(t){var e=K;t.__c=t.__(),K=e}function Or(t,e){return!t||t.length!==e.length||e.some(function(r,a){return r!==t[a]})}function Ur(t,e){return typeof e=="function"?e(t):e}function fo(t,e){for(var r in e)t[r]=e[r];return t}function Ir(t,e){for(var r in t)if(r!=="__source"&&!(r in e))return!0;for(var a in e)if(a!=="__source"&&t[a]!==e[a])return!0;return!1}function Vr(t,e){this.props=t,this.context=e}(Vr.prototype=new ue).isPureReactComponent=!0,Vr.prototype.shouldComponentUpdate=function(t,e){return Ir(this.props,t)||Ir(this.state,e)};var Mr=E.__b;E.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Mr&&Mr(t)};var ho=E.__e;E.__e=function(t,e,r,a){if(t.then){for(var o,i=e;i=i.__;)if((o=i.__c)&&o.__c)return e.__e==null&&(e.__e=r.__e,e.__k=r.__k),o.__c(t,e)}ho(t,e,r,a)};var jr=E.unmount;function $r(t,e,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(a){typeof a.__c=="function"&&a.__c()}),t.__c.__H=null),(t=fo({},t)).__c!=null&&(t.__c.__P===r&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(a){return $r(a,e,r)})),t}function Hr(t,e,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(a){return Hr(a,e,r)}),t.__c&&t.__c.__P===e&&(t.__e&&r.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=r)),t}function Ot(){this.__u=0,this.t=null,this.__b=null}function Gr(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function dt(){this.u=null,this.o=null}E.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),jr&&jr(t)},(Ot.prototype=new ue).__c=function(t,e){var r=e.__c,a=this;a.t==null&&(a.t=[]),a.t.push(r);var o=Gr(a.__v),i=!1,n=function(){i||(i=!0,r.__R=null,o?o(s):s())};r.__R=n;var s=function(){if(!--a.__u){if(a.state.__a){var u=a.state.__a;a.__v.__k[0]=Hr(u,u.__c.__P,u.__c.__O)}var l;for(a.setState({__a:a.__b=null});l=a.t.pop();)l.forceUpdate()}};a.__u++||32&e.__u||a.setState({__a:a.__b=a.__v.__k[0]}),t.then(n,n)},Ot.prototype.componentWillUnmount=function(){this.t=[]},Ot.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),a=this.__v.__k[0].__c;this.__v.__k[0]=$r(this.__b,r,a.__O=a.__P)}this.__b=null}var o=e.__a&&z(L,null,t.fallback);return o&&(o.__u&=-33),[z(L,null,e.__a?null:t.children),o]};var Kr=function(t,e,r){if(++r[1]===r[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(r=t.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;t.u=r=r[2]}};(dt.prototype=new ue).__a=function(t){var e=this,r=Gr(e.__v),a=e.o.get(t);return a[0]++,function(o){var i=function(){e.props.revealOrder?(a.push(o),Kr(e,t,a)):o()};r?r(i):i()}},dt.prototype.render=function(t){this.u=null,this.o=new Map;var e=it(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var r=e.length;r--;)this.o.set(e[r],this.u=[1,0,this.u]);return t.children},dt.prototype.componentDidUpdate=dt.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,r){Kr(t,r,e)})};var bo=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,mo=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,_o=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,yo=/[A-Z0-9]/g,ko=typeof document<"u",vo=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};ue.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(ue.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Jr=E.event;function xo(){}function Co(){return this.cancelBubble}function wo(){return this.defaultPrevented}E.event=function(t){return Jr&&(t=Jr(t)),t.persist=xo,t.isPropagationStopped=Co,t.isDefaultPrevented=wo,t.nativeEvent=t};var Do={enumerable:!1,configurable:!0,get:function(){return this.class}},Yr=E.vnode;E.vnode=function(t){typeof t.type=="string"&&function(e){var r=e.props,a=e.type,o={};for(var i in r){var n=r[i];if(!(i==="value"&&"defaultValue"in r&&n==null||ko&&i==="children"&&a==="noscript"||i==="class"||i==="className")){var s=i.toLowerCase();i==="defaultValue"&&"value"in r&&r.value==null?i="value":i==="download"&&n===!0?n="":s==="translate"&&n==="no"?n=!1:s==="ondoubleclick"?i="ondblclick":s!=="onchange"||a!=="input"&&a!=="textarea"||vo(r.type)?s==="onfocus"?i="onfocusin":s==="onblur"?i="onfocusout":_o.test(i)?i=s:a.indexOf("-")===-1&&mo.test(i)?i=i.replace(yo,"-$&").toLowerCase():n===null&&(n=void 0):s=i="oninput",s==="oninput"&&o[i=s]&&(i="oninputCapture"),o[i]=n}}a=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=it(r.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),a=="select"&&o.defaultValue!=null&&(o.value=it(r.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),r.class&&!r.className?(o.class=r.class,Object.defineProperty(o,"className",Do)):(r.className&&!r.class||r.class&&r.className)&&(o.class=o.className=r.className),e.props=o}(t),t.$$typeof=bo,Yr&&Yr(t)};var Wr=E.__r;E.__r=function(t){Wr&&Wr(t),t.__c};var Zr=E.diffed;E.diffed=function(t){Zr&&Zr(t);var e=t.props,r=t.__e;r!=null&&t.type==="textarea"&&"value"in e&&e.value!==r.value&&(r.value=e.value==null?"":e.value)};var Ut=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ao(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}const So=(...t)=>{console!=null&&console.warn&&(ve(t[0])&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t))},Qr={},It=(...t)=>{ve(t[0])&&Qr[t[0]]||(ve(t[0])&&(Qr[t[0]]=new Date),So(...t))},Xr=(t,e)=>()=>{if(t.isInitialized)e();else{const r=()=>{setTimeout(()=>{t.off("initialized",r)},0),e()};t.on("initialized",r)}},ea=(t,e,r)=>{t.loadNamespaces(e,Xr(t,r))},ta=(t,e,r,a)=>{ve(r)&&(r=[r]),r.forEach(o=>{t.options.ns.indexOf(o)<0&&t.options.ns.push(o)}),t.loadLanguages(e,Xr(t,a))},Bo=(t,e,r={})=>!e.languages||!e.languages.length?(It("i18n.languages were undefined or empty",e.languages),!0):e.hasLoadedNamespace(t,{lng:r.lng,precheck:(a,o)=>{var i;if(((i=r.bindI18n)==null?void 0:i.indexOf("languageChanging"))>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!o(a.isLanguageChangingTo,t))return!1}}),ve=t=>typeof t=="string",Eo=t=>typeof t=="object"&&t!==null,Fo=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Lo={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},qo=t=>Lo[t];let Vt={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:t=>t.replace(Fo,qo)};const zo=(t={})=>{Vt={...Vt,...t}},Ro=()=>Vt;let ra;const No=t=>{ra=t},pt=()=>ra,Po={type:"3rdParty",init(t){zo(t.options.react),No(t)}},To=Dr();class Oo{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Uo=(t,e)=>{const r=Me();return J(()=>{r.current=e?r.current:t},[t,e]),r.current},aa=(t,e,r,a)=>t.getFixedT(e,r,a),Io=(t,e,r,a)=>co(aa(t,e,r,a),[t,e,r,a]),re=(t,e={})=>{var x,D,S,B;const{i18n:r}=e,{i18n:a,defaultNS:o}=Pr(To)||{},i=r||a||pt();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new Oo),!i){It("You will need to pass in an i18next instance by using initReactI18next");const R=(O,V)=>ve(V)?V:Eo(V)&&ve(V.defaultValue)?V.defaultValue:Array.isArray(O)?O[O.length-1]:O,q=[R,{},!1];return q.t=R,q.i18n={},q.ready=!1,q}(x=i.options.react)!=null&&x.wait&&It("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const n={...Ro(),...i.options.react,...e},{useSuspense:s,keyPrefix:u}=n;let l=t||o||((D=i.options)==null?void 0:D.defaultNS);l=ve(l)?[l]:l||["translation"],(B=(S=i.reportNamespaces).addUsedNamespaces)==null||B.call(S,l);const p=(i.isInitialized||i.initializedStoreOnce)&&l.every(R=>Bo(R,i,n)),d=Io(i,e.lng||null,n.nsMode==="fallback"?l:l[0],u),g=()=>d,f=()=>aa(i,e.lng||null,n.nsMode==="fallback"?l:l[0],u),[b,m]=Q(g);let _=l.join();e.lng&&(_=`${e.lng}${_}`);const v=Uo(_),h=Me(!0);J(()=>{const{bindI18n:R,bindI18nStore:q}=n;h.current=!0,!p&&!s&&(e.lng?ta(i,e.lng,l,()=>{h.current&&m(f)}):ea(i,l,()=>{h.current&&m(f)})),p&&v&&v!==_&&h.current&&m(f);const O=()=>{h.current&&m(f)};return R&&(i==null||i.on(R,O)),q&&(i==null||i.store.on(q,O)),()=>{h.current=!1,i&&(R==null||R.split(" ").forEach(V=>i.off(V,O))),q&&i&&q.split(" ").forEach(V=>i.store.off(V,O))}},[i,_]),J(()=>{h.current&&p&&m(g)},[i,u,p]);const C=[b,i,p];if(C.t=b,C.i18n=i,C.ready=p,p||!p&&!s)return C;throw new Promise(R=>{e.lng?ta(i,e.lng,l,()=>R()):ea(i,l,()=>R())})};var Vo=Symbol.for("preact-signals");function gt(){if(be>1)be--;else{for(var t,e=!1;je!==void 0;){var r=je;for(je=void 0,Mt++;r!==void 0;){var a=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&ia(r))try{r.c()}catch(o){e||(t=o,e=!0)}r=a}}if(Mt=0,be--,e)throw t}}function Mo(t){if(be>0)return t();be++;try{return t()}finally{gt()}}var j=void 0,je=void 0,be=0,Mt=0,ft=0;function oa(t){if(j!==void 0){var e=t.n;if(e===void 0||e.t!==j)return e={i:0,S:t,p:j.s,n:void 0,t:j,e:void 0,x:void 0,r:e},j.s!==void 0&&(j.s.n=e),j.s=e,t.n=e,32&j.f&&t.S(e),e;if(e.i===-1)return e.i=0,e.n!==void 0&&(e.n.p=e.p,e.p!==void 0&&(e.p.n=e.n),e.p=j.s,e.n=void 0,j.s.n=e,j.s=e),e}}function X(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}X.prototype.brand=Vo,X.prototype.h=function(){return!0},X.prototype.S=function(t){this.t!==t&&t.e===void 0&&(t.x=this.t,this.t!==void 0&&(this.t.e=t),this.t=t)},X.prototype.U=function(t){if(this.t!==void 0){var e=t.e,r=t.x;e!==void 0&&(e.x=r,t.e=void 0),r!==void 0&&(r.e=e,t.x=void 0),t===this.t&&(this.t=r)}},X.prototype.subscribe=function(t){var e=this;return $t(function(){var r=e.value,a=j;j=void 0;try{t(r)}finally{j=a}})},X.prototype.valueOf=function(){return this.value},X.prototype.toString=function(){return this.value+""},X.prototype.toJSON=function(){return this.value},X.prototype.peek=function(){var t=j;j=void 0;try{return this.value}finally{j=t}},Object.defineProperty(X.prototype,"value",{get:function(){var t=oa(this);return t!==void 0&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(Mt>100)throw new Error("Cycle detected");this.v=t,this.i++,ft++,be++;try{for(var e=this.t;e!==void 0;e=e.x)e.t.N()}finally{gt()}}}});function le(t){return new X(t)}function ia(t){for(var e=t.s;e!==void 0;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function na(t){for(var e=t.s;e!==void 0;e=e.n){var r=e.S.n;if(r!==void 0&&(e.r=r),e.S.n=e,e.i=-1,e.n===void 0){t.s=e;break}}}function sa(t){for(var e=t.s,r=void 0;e!==void 0;){var a=e.p;e.i===-1?(e.S.U(e),a!==void 0&&(a.n=e.n),e.n!==void 0&&(e.n.p=a)):r=e,e.S.n=e.r,e.r!==void 0&&(e.r=void 0),e=a}t.s=r}function Be(t){X.call(this,void 0),this.x=t,this.s=void 0,this.g=ft-1,this.f=4}(Be.prototype=new X).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===ft))return!0;if(this.g=ft,this.f|=1,this.i>0&&!ia(this))return this.f&=-2,!0;var t=j;try{na(this),j=this;var e=this.x();(16&this.f||this.v!==e||this.i===0)&&(this.v=e,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return j=t,sa(this),this.f&=-2,!0},Be.prototype.S=function(t){if(this.t===void 0){this.f|=36;for(var e=this.s;e!==void 0;e=e.n)e.S.S(e)}X.prototype.S.call(this,t)},Be.prototype.U=function(t){if(this.t!==void 0&&(X.prototype.U.call(this,t),this.t===void 0)){this.f&=-33;for(var e=this.s;e!==void 0;e=e.n)e.S.U(e)}},Be.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;t!==void 0;t=t.x)t.t.N()}},Object.defineProperty(Be.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var t=oa(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});function jo(t){return new Be(t)}function ua(t){var e=t.u;if(t.u=void 0,typeof e=="function"){be++;var r=j;j=void 0;try{e()}catch(a){throw t.f&=-2,t.f|=8,jt(t),a}finally{j=r,gt()}}}function jt(t){for(var e=t.s;e!==void 0;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,ua(t)}function $o(t){if(j!==this)throw new Error("Out-of-order effect");sa(this),j=t,this.f&=-2,8&this.f&&jt(this),gt()}function $e(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}$e.prototype.c=function(){var t=this.S();try{if(8&this.f||this.x===void 0)return;var e=this.x();typeof e=="function"&&(this.u=e)}finally{t()}},$e.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,ua(this),na(this),be++;var t=j;return j=this,$o.bind(this,t)},$e.prototype.N=function(){2&this.f||(this.f|=2,this.o=je,je=this)},$e.prototype.d=function(){this.f|=8,1&this.f||jt(this)};function $t(t){var e=new $e(t);try{e.c()}catch(r){throw e.d(),r}return e.d.bind(e)}var Ht;function Ee(t,e){E[t]=e.bind(null,E[t]||function(){})}function ht(t){Ht&&Ht(),Ht=t&&t.S()}function la(t){var e=this,r=t.data,a=Go(r);a.value=r;var o=ge(function(){for(var i=e.__v;i=i.__;)if(i.__c){i.__c.__$f|=4;break}return e.__$u.c=function(){var n,s=e.__$u.S(),u=o.value;s(),cr(u)||((n=e.base)==null?void 0:n.nodeType)!==3?(e.__$f|=1,e.setState({})):e.base.data=u},jo(function(){var n=a.value.value;return n===0?0:n===!0?"":n||""})},[]);return o.value}la.displayName="_st",Object.defineProperties(X.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:la},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),Ee("__b",function(t,e){if(typeof e.type=="string"){var r,a=e.props;for(var o in a)if(o!=="children"){var i=a[o];i instanceof X&&(r||(e.__np=r={}),r[o]=i,a[o]=i.peek())}}t(e)}),Ee("__r",function(t,e){ht();var r,a=e.__c;a&&(a.__$f&=-2,(r=a.__$u)===void 0&&(a.__$u=r=function(o){var i;return $t(function(){i=this}),i.c=function(){a.__$f|=1,a.setState({})},i}())),ht(r),t(e)}),Ee("__e",function(t,e,r,a){ht(),t(e,r,a)}),Ee("diffed",function(t,e){ht();var r;if(typeof e.type=="string"&&(r=e.__e)){var a=e.__np,o=e.props;if(a){var i=r.U;if(i)for(var n in i){var s=i[n];s!==void 0&&!(n in a)&&(s.d(),i[n]=void 0)}else r.U=i={};for(var u in a){var l=i[u],p=a[u];l===void 0?(l=Ho(r,u,p,o),i[u]=l):l.o(p,o)}}}t(e)});function Ho(t,e,r,a){var o=e in t&&t.ownerSVGElement===void 0,i=le(r);return{o:function(n,s){i.value=n,a=s},d:$t(function(){var n=i.value.value;a[e]!==n&&(a[e]=n,o?t[e]=n:n?t.setAttribute(e,n):t.removeAttribute(e))})}}Ee("unmount",function(t,e){if(typeof e.type=="string"){var r=e.__e;if(r){var a=r.U;if(a){r.U=void 0;for(var o in a){var i=a[o];i&&i.d()}}}}else{var n=e.__c;if(n){var s=n.__$u;s&&(n.__$u=void 0,s.d())}}t(e)}),Ee("__h",function(t,e,r,a){(a<3||a===9)&&(e.__$f|=2),t(e,r,a)}),ue.prototype.shouldComponentUpdate=function(t,e){var r=this.__$u;if(!(r&&r.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var a in e)return!0;for(var o in t)if(o!=="__source"&&t[o]!==this.props[o])return!0;for(var i in this.props)if(!(i in t))return!0;return!1};function Go(t){return ge(function(){return le(t)},[])}const Gt=le(!1),M=le(null),Fe=le([]),ae=le(!1),Le=le([]),oe=le(!1),Ko=()=>{Mo(()=>{M.value=null,Fe.value=[],ae.value=!1,Le.value=[],oe.value=!1})},Kt="bm_currentBike",Jo="v2",Yo="https://cdn.bikematrix.io",ca={isShopify:!1,skuField:"sku",apiUrl:"https://api.bikematrix.io/",apiKey:"",currentCollectionHandle:"",categories:[],collections:[],pageType:"index",showHomePageCollection:!1,showSearchPageCollection:!1,designMode:!1,bikeSelectorBrands:"",productsCollections:{},isHomePage:!1,isSearchPage:!1,products:{},collectionUrl:"",compatiblityListCurrentPage:0,showCompatibleList:!0,sku:"",productCollections:[],logLevel:"none"},qe=function(t){return new URL(t,Yo).toString()};function da(t){var e,r,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=da(t[e]))&&(a&&(a+=" "),a+=r)}else for(r in t)t[r]&&(a&&(a+=" "),a+=r);return a}function Wo(){for(var t,e,r=0,a="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=da(t))&&(a&&(a+=" "),a+=e);return a}const Jt="-";function Zo(t){const e=Xo(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=t;function o(n){const s=n.split(Jt);return s[0]===""&&s.length!==1&&s.shift(),pa(s,e)||Qo(n)}function i(n,s){const u=r[n]||[];return s&&a[n]?[...u,...a[n]]:u}return{getClassGroupId:o,getConflictingClassGroupIds:i}}function pa(t,e){var n;if(t.length===0)return e.classGroupId;const r=t[0],a=e.nextPart.get(r),o=a?pa(t.slice(1),a):void 0;if(o)return o;if(e.validators.length===0)return;const i=t.join(Jt);return(n=e.validators.find(({validator:s})=>s(i)))==null?void 0:n.classGroupId}const ga=/^\[(.+)\]$/;function Qo(t){if(ga.test(t)){const e=ga.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}}function Xo(t){const{theme:e,prefix:r}=t,a={nextPart:new Map,validators:[]};return ti(Object.entries(t.classGroups),r).forEach(([i,n])=>{Yt(n,a,i,e)}),a}function Yt(t,e,r,a){t.forEach(o=>{if(typeof o=="string"){const i=o===""?e:fa(e,o);i.classGroupId=r;return}if(typeof o=="function"){if(ei(o)){Yt(o(a),e,r,a);return}e.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,n])=>{Yt(n,fa(e,i),r,a)})})}function fa(t,e){let r=t;return e.split(Jt).forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r}function ei(t){return t.isThemeGetter}function ti(t,e){return e?t.map(([r,a])=>{const o=a.map(i=>typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([n,s])=>[e+n,s])):i);return[r,o]}):t}function ri(t){if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,a=new Map;function o(i,n){r.set(i,n),e++,e>t&&(e=0,a=r,r=new Map)}return{get(i){let n=r.get(i);if(n!==void 0)return n;if((n=a.get(i))!==void 0)return o(i,n),n},set(i,n){r.has(i)?r.set(i,n):o(i,n)}}}const ha="!";function ai(t){const e=t.separator,r=e.length===1,a=e[0],o=e.length;return function(n){const s=[];let u=0,l=0,p;for(let m=0;m<n.length;m++){let _=n[m];if(u===0){if(_===a&&(r||n.slice(m,m+o)===e)){s.push(n.slice(l,m)),l=m+o;continue}if(_==="/"){p=m;continue}}_==="["?u++:_==="]"&&u--}const d=s.length===0?n:n.substring(l),g=d.startsWith(ha),f=g?d.substring(1):d,b=p&&p>l?p-l:void 0;return{modifiers:s,hasImportantModifier:g,baseClassName:f,maybePostfixModifierPosition:b}}}function oi(t){if(t.length<=1)return t;const e=[];let r=[];return t.forEach(a=>{a[0]==="["?(e.push(...r.sort(),a),r=[]):r.push(a)}),e.push(...r.sort()),e}function ii(t){return{cache:ri(t.cacheSize),splitModifiers:ai(t),...Zo(t)}}const ni=/\s+/;function si(t,e){const{splitModifiers:r,getClassGroupId:a,getConflictingClassGroupIds:o}=e,i=new Set;return t.trim().split(ni).map(n=>{const{modifiers:s,hasImportantModifier:u,baseClassName:l,maybePostfixModifierPosition:p}=r(n);let d=a(p?l.substring(0,p):l),g=!!p;if(!d){if(!p)return{isTailwindClass:!1,originalClassName:n};if(d=a(l),!d)return{isTailwindClass:!1,originalClassName:n};g=!1}const f=oi(s).join(":");return{isTailwindClass:!0,modifierId:u?f+ha:f,classGroupId:d,originalClassName:n,hasPostfixModifier:g}}).reverse().filter(n=>{if(!n.isTailwindClass)return!0;const{modifierId:s,classGroupId:u,hasPostfixModifier:l}=n,p=s+u;return i.has(p)?!1:(i.add(p),o(u,l).forEach(d=>i.add(s+d)),!0)}).reverse().map(n=>n.originalClassName).join(" ")}function ui(){let t=0,e,r,a="";for(;t<arguments.length;)(e=arguments[t++])&&(r=ba(e))&&(a&&(a+=" "),a+=r);return a}function ba(t){if(typeof t=="string")return t;let e,r="";for(let a=0;a<t.length;a++)t[a]&&(e=ba(t[a]))&&(r&&(r+=" "),r+=e);return r}function li(t,...e){let r,a,o,i=n;function n(u){const l=e.reduce((p,d)=>d(p),t());return r=ii(l),a=r.cache.get,o=r.cache.set,i=s,s(u)}function s(u){const l=a(u);if(l)return l;const p=si(u,r);return o(u,p),p}return function(){return i(ui.apply(null,arguments))}}function $(t){const e=r=>r[t]||[];return e.isThemeGetter=!0,e}const ma=/^\[(?:([a-z-]+):)?(.+)\]$/i,ci=/^\d+\/\d+$/,di=new Set(["px","full","screen"]),pi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gi=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,fi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,hi=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function fe(t){return xe(t)||di.has(t)||ci.test(t)}function me(t){return ze(t,"length",wi)}function xe(t){return!!t&&!Number.isNaN(Number(t))}function bt(t){return ze(t,"number",xe)}function He(t){return!!t&&Number.isInteger(Number(t))}function mi(t){return t.endsWith("%")&&xe(t.slice(0,-1))}function F(t){return ma.test(t)}function _e(t){return pi.test(t)}const _i=new Set(["length","size","percentage"]);function yi(t){return ze(t,_i,_a)}function ki(t){return ze(t,"position",_a)}const vi=new Set(["image","url"]);function xi(t){return ze(t,vi,Ai)}function Ci(t){return ze(t,"",Di)}function Ge(){return!0}function ze(t,e,r){const a=ma.exec(t);return a?a[1]?typeof e=="string"?a[1]===e:e.has(a[1]):r(a[2]):!1}function wi(t){return gi.test(t)&&!fi.test(t)}function _a(){return!1}function Di(t){return hi.test(t)}function Ai(t){return bi.test(t)}function Si(){const t=$("colors"),e=$("spacing"),r=$("blur"),a=$("brightness"),o=$("borderColor"),i=$("borderRadius"),n=$("borderSpacing"),s=$("borderWidth"),u=$("contrast"),l=$("grayscale"),p=$("hueRotate"),d=$("invert"),g=$("gap"),f=$("gradientColorStops"),b=$("gradientColorStopPositions"),m=$("inset"),_=$("margin"),v=$("opacity"),h=$("padding"),C=$("saturate"),x=$("scale"),D=$("sepia"),S=$("skew"),B=$("space"),R=$("translate"),q=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",F,e],I=()=>[F,e],Y=()=>["",fe,me],W=()=>["auto",xe,F],w=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],A=()=>["solid","dashed","dotted","double","none"],N=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],U=()=>["start","end","center","between","around","evenly","stretch"],y=()=>["","0",F],k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>[xe,bt],H=()=>[xe,F];return{cacheSize:500,separator:":",theme:{colors:[Ge],spacing:[fe,me],blur:["none","",_e,F],brightness:P(),borderColor:[t],borderRadius:["none","","full",_e,F],borderSpacing:I(),borderWidth:Y(),contrast:P(),grayscale:y(),hueRotate:H(),invert:y(),gap:I(),gradientColorStops:[t],gradientColorStopPositions:[mi,me],inset:V(),margin:V(),opacity:P(),padding:I(),saturate:P(),scale:P(),sepia:y(),skew:H(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",F]}],container:["container"],columns:[{columns:[_e]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...w(),F]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",He,F]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",F]}],grow:[{grow:y()}],shrink:[{shrink:y()}],order:[{order:["first","last","none",He,F]}],"grid-cols":[{"grid-cols":[Ge]}],"col-start-end":[{col:["auto",{span:["full",He,F]},F]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[Ge]}],"row-start-end":[{row:["auto",{span:[He,F]},F]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",F]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",F]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...U()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...U(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...U(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[_]}],mx:[{mx:[_]}],my:[{my:[_]}],ms:[{ms:[_]}],me:[{me:[_]}],mt:[{mt:[_]}],mr:[{mr:[_]}],mb:[{mb:[_]}],ml:[{ml:[_]}],"space-x":[{"space-x":[B]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[B]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",F,e]}],"min-w":[{"min-w":[F,e,"min","max","fit"]}],"max-w":[{"max-w":[F,e,"none","full","min","max","fit","prose",{screen:[_e]},_e]}],h:[{h:[F,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[F,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[F,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[F,e,"auto","min","max","fit"]}],"font-size":[{text:["base",_e,me]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",bt]}],"font-family":[{font:[Ge]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",F]}],"line-clamp":[{"line-clamp":["none",xe,bt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",fe,F]}],"list-image":[{"list-image":["none",F]}],"list-style-type":[{list:["none","disc","decimal",F]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...A(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",fe,me]}],"underline-offset":[{"underline-offset":["auto",fe,F]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",F]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",F]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...w(),ki]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",yi]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},xi]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...A(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:A()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...A()]}],"outline-offset":[{"outline-offset":[fe,F]}],"outline-w":[{outline:[fe,me]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[fe,me]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",_e,Ci]}],"shadow-color":[{shadow:[Ge]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":N()}],"bg-blend":[{"bg-blend":N()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",_e,F]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[d]}],saturate:[{saturate:[C]}],sepia:[{sepia:[D]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[D]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",F]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",F]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",F]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[He,F]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",F]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",F]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"s