@squeletteapp/widget 0.3.9 → 0.4.0
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/{app-BkawET7e.js → app-CZ8ztknA.js} +1 -1
- package/dist/{index-CqZ9Uw3Y.js → index-Bj_9-5Hl.js} +1665 -1256
- package/dist/types/banner/banner-modal.d.ts +2 -1
- package/dist/types/banner/banner.d.ts +3 -1
- package/dist/types/banner/index.d.ts +5 -1
- package/dist/types/changelog/changelog.d.ts +15 -0
- package/dist/types/changelog/element.d.ts +86 -0
- package/dist/types/changelog/index.d.ts +32 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/widget.es.js +13 -11
- package/dist/widget.js +6 -6
- package/package.json +1 -1
package/dist/widget.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var SqueletteWidgetBundle=function(E){"use strict";var gi=Object.defineProperty;var $n=E=>{throw TypeError(E)};var bi=(E,R,b)=>R in E?gi(E,R,{enumerable:!0,configurable:!0,writable:!0,value:b}):E[R]=b;var Ze=(E,R,b)=>bi(E,typeof R!="symbol"?R+"":R,b),Pn=(E,R,b)=>R.has(E)||$n("Cannot "+b);var u=(E,R,b)=>(Pn(E,R,"read from private field"),b?b.call(E):R.get(E)),V=(E,R,b)=>R.has(E)?$n("Cannot add the same private member more than once"):R instanceof WeakSet?R.add(E):R.set(E,b),A=(E,R,b,Be)=>(Pn(E,R,"write to private field"),Be?Be.call(E,b):R.set(E,b),b);var C,ve,We,te,we,qe,Ie,Ye,K,oe,ie,X,Xe,Oe,me;var R,b,Be,tr,ke,rr,nr,or,ir,yt,xt,kt,Ue={},ar=[],Mn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,je=Array.isArray;function pe(e,t){for(var r in t)e[r]=t[r];return e}function St(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Fe(e,t,r){var n,o,i,a={};for(i in t)i=="key"?n=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?R.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return Je(e,a,n,o,null)}function Je(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o==null?++Be:o,__i:-1,__u:0};return o==null&&b.vnode!=null&&b.vnode(i),i}function he(e){return e.children}function ue(e,t){this.props=e,this.context=t}function Ae(e,t){if(t==null)return e.__?Ae(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?Ae(e):null}function sr(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return sr(e)}}function lr(e){(!e.__d&&(e.__d=!0)&&ke.push(e)&&!Ke.__r++||rr!=b.debounceRendering)&&((rr=b.debounceRendering)||nr)(Ke)}function Ke(){for(var e,t,r,n,o,i,a,s=1;ke.length;)ke.length>s&&ke.sort(or),e=ke.shift(),s=ke.length,e.__d&&(r=void 0,n=void 0,o=(n=(t=e).__v).__e,i=[],a=[],t.__P&&((r=pe({},n)).__v=n.__v+1,b.vnode&&b.vnode(r),Et(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[o]:null,i,o==null?Ae(n):o,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,pr(i,r,a),n.__e=n.__=null,r.__e!=o&&sr(r)));Ke.__r=0}function cr(e,t,r,n,o,i,a,s,c,d,f){var l,g,h,y,$,q,x,w=n&&n.__k||ar,T=t.length;for(c=zn(r,t,w,c,T),l=0;l<T;l++)(h=r.__k[l])!=null&&(g=h.__i==-1?Ue:w[h.__i]||Ue,h.__i=l,q=Et(e,h,g,o,i,a,s,c,d,f),y=h.__e,h.ref&&g.ref!=h.ref&&(g.ref&&qt(g.ref,null,h),f.push(h.ref,h.__c||y,h)),$==null&&y!=null&&($=y),(x=!!(4&h.__u))||g.__k===h.__k?c=dr(h,c,e,x):typeof h.type=="function"&&q!==void 0?c=q:y&&(c=y.nextSibling),h.__u&=-7);return r.__e=$,c}function zn(e,t,r,n,o){var i,a,s,c,d,f=r.length,l=f,g=0;for(e.__k=new Array(o),i=0;i<o;i++)(a=t[i])!=null&&typeof a!="boolean"&&typeof a!="function"?(c=i+g,(a=e.__k[i]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?Je(null,a,null,null,null):je(a)?Je(he,{children:a},null,null,null):a.constructor==null&&a.__b>0?Je(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,(d=a.__i=Ln(a,r,c,l))!=-1&&(l--,(s=r[d])&&(s.__u|=2)),s==null||s.__v==null?(d==-1&&(o>f?g--:o<f&&g++),typeof a.type!="function"&&(a.__u|=4)):d!=c&&(d==c-1?g--:d==c+1?g++:(d>c?g--:g++,a.__u|=4))):e.__k[i]=null;if(l)for(i=0;i<f;i++)(s=r[i])!=null&&!(2&s.__u)&&(s.__e==n&&(n=Ae(s)),_r(s,s));return n}function dr(e,t,r,n){var o,i;if(typeof e.type=="function"){for(o=e.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=e,t=dr(o[i],t,r,n));return t}e.__e!=t&&(n&&(t&&e.type&&!t.parentNode&&(t=Ae(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Qe(e,t){return t=t||[],e==null||typeof e=="boolean"||(je(e)?e.some(function(r){Qe(r,t)}):t.push(e)),t}function Ln(e,t,r,n){var o,i,a,s=e.key,c=e.type,d=t[r],f=d!=null&&(2&d.__u)==0;if(d===null&&e.key==null||f&&s==d.key&&c==d.type)return r;if(n>(f?1:0)){for(o=r-1,i=r+1;o>=0||i<t.length;)if((d=t[a=o>=0?o--:i++])!=null&&!(2&d.__u)&&s==d.key&&c==d.type)return a}return-1}function ur(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||Mn.test(t)?r:r+"px"}function et(e,t,r,n,o){var i,a;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||ur(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||ur(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(ir,"$1")),a=t.toLowerCase(),t=a in e||t=="onFocusOut"||t=="onFocusIn"?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=yt,e.addEventListener(t,i?kt:xt,i)):e.removeEventListener(t,i?kt:xt,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r==null?"":r;break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function fr(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=yt++;else if(t.t<r.u)return;return r(b.event?b.event(t):t)}}}function Et(e,t,r,n,o,i,a,s,c,d){var f,l,g,h,y,$,q,x,w,T,U,G,B,Z,p,P,N,L=t.type;if(t.constructor!=null)return null;128&r.__u&&(c=!!(32&r.__u),i=[s=t.__e=r.__e]),(f=b.__b)&&f(t);e:if(typeof L=="function")try{if(x=t.props,w="prototype"in L&&L.prototype.render,T=(f=L.contextType)&&n[f.__c],U=f?T?T.props.value:f.__:n,r.__c?q=(l=t.__c=r.__c).__=l.__E:(w?t.__c=l=new L(x,U):(t.__c=l=new ue(x,U),l.constructor=L,l.render=Rn),T&&T.sub(l),l.props=x,l.state||(l.state={}),l.context=U,l.__n=n,g=l.__d=!0,l.__h=[],l._sb=[]),w&&l.__s==null&&(l.__s=l.state),w&&L.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=pe({},l.__s)),pe(l.__s,L.getDerivedStateFromProps(x,l.__s))),h=l.props,y=l.state,l.__v=t,g)w&&L.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),w&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(w&&L.getDerivedStateFromProps==null&&x!==h&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(x,U),!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(x,l.__s,U)===!1||t.__v==r.__v){for(t.__v!=r.__v&&(l.props=x,l.state=l.__s,l.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(F){F&&(F.__=t)}),G=0;G<l._sb.length;G++)l.__h.push(l._sb[G]);l._sb=[],l.__h.length&&a.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(x,l.__s,U),w&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(h,y,$)})}if(l.context=U,l.props=x,l.__P=e,l.__e=!1,B=b.__r,Z=0,w){for(l.state=l.__s,l.__d=!1,B&&B(t),f=l.render(l.props,l.state,l.context),p=0;p<l._sb.length;p++)l.__h.push(l._sb[p]);l._sb=[]}else do l.__d=!1,B&&B(t),f=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++Z<25);l.state=l.__s,l.getChildContext!=null&&(n=pe(pe({},n),l.getChildContext())),w&&!g&&l.getSnapshotBeforeUpdate!=null&&($=l.getSnapshotBeforeUpdate(h,y)),P=f,f!=null&&f.type===he&&f.key==null&&(P=hr(f.props.children)),s=cr(e,je(P)?P:[P],t,r,n,o,i,a,s,c,d),l.base=t.__e,t.__u&=-161,l.__h.length&&a.push(l),q&&(l.__E=l.__=null)}catch(F){if(t.__v=null,c||i!=null)if(F.then){for(t.__u|=c?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;i[i.indexOf(s)]=null,t.__e=s}else{for(N=i.length;N--;)St(i[N]);Ct(t)}else t.__e=r.__e,t.__k=r.__k,F.then||Ct(t);b.__e(F,t,r)}else i==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=Tn(r.__e,t,r,n,o,i,a,c,d);return(f=b.diffed)&&f(t),128&t.__u?void 0:s}function Ct(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(Ct)}function pr(e,t,r){for(var n=0;n<r.length;n++)qt(r[n],r[++n],r[++n]);b.__c&&b.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){b.__e(i,o.__v)}})}function hr(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:je(e)?e.map(hr):pe({},e)}function Tn(e,t,r,n,o,i,a,s,c){var d,f,l,g,h,y,$,q=r.props,x=t.props,w=t.type;if(w=="svg"?o="http://www.w3.org/2000/svg":w=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(d=0;d<i.length;d++)if((h=i[d])&&"setAttribute"in h==!!w&&(w?h.localName==w:h.nodeType==3)){e=h,i[d]=null;break}}if(e==null){if(w==null)return document.createTextNode(x);e=document.createElementNS(o,w,x.is&&x),s&&(b.__m&&b.__m(t,i),s=!1),i=null}if(w==null)q===x||s&&e.data==x||(e.data=x);else{if(i=i&&R.call(e.childNodes),q=r.props||Ue,!s&&i!=null)for(q={},d=0;d<e.attributes.length;d++)q[(h=e.attributes[d]).name]=h.value;for(d in q)if(h=q[d],d!="children"){if(d=="dangerouslySetInnerHTML")l=h;else if(!(d in x)){if(d=="value"&&"defaultValue"in x||d=="checked"&&"defaultChecked"in x)continue;et(e,d,null,h,o)}}for(d in x)h=x[d],d=="children"?g=h:d=="dangerouslySetInnerHTML"?f=h:d=="value"?y=h:d=="checked"?$=h:s&&typeof h!="function"||q[d]===h||et(e,d,h,q[d],o);if(f)s||l&&(f.__html==l.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(l&&(e.innerHTML=""),cr(t.type=="template"?e.content:e,je(g)?g:[g],t,r,n,w=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:r.__k&&Ae(r,0),s,c),i!=null)for(d=i.length;d--;)St(i[d]);s||(d="value",w=="progress"&&y==null?e.removeAttribute("value"):y!=null&&(y!==e[d]||w=="progress"&&!y||w=="option"&&y!=q[d])&&et(e,d,y,q[d],o),d="checked",$!=null&&$!=e[d]&&et(e,d,$,q[d],o))}return e}function qt(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(o){b.__e(o,r)}}function _r(e,t,r){var n,o;if(b.unmount&&b.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||qt(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(i){b.__e(i,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&_r(n[o],t,r||typeof e.type!="function");r||St(e.__e),e.__c=e.__=e.__e=void 0}function Rn(e,t,r){return this.constructor(e,r)}function $e(e,t,r){var n,o,i,a;t==document&&(t=document.documentElement),b.__&&b.__(e,t),o=(n=!1)?null:t.__k,i=[],a=[],Et(t,e=t.__k=Fe(he,null,[e]),o||Ue,Ue,t.namespaceURI,o?null:t.firstChild?R.call(t.childNodes):null,i,o?o.__e:t.firstChild,n,a),pr(i,e,a)}R=ar.slice,b={__e:function(e,t,r,n){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,n||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e}},Be=0,tr=function(e){return e!=null&&e.constructor==null},ue.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=pe({},this.state),typeof e=="function"&&(e=e(pe({},r),this.props)),e&&pe(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),lr(this))},ue.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),lr(this))},ue.prototype.render=he,ke=[],nr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,or=function(e,t){return e.__v.__b-t.__v.__b},Ke.__r=0,ir=/(PointerCapture)$|Capture$/i,yt=0,xt=fr(!1),kt=fr(!0);var Nn=0;function k(e,t,r,n,o,i){t||(t={});var a,s,c=t;if("ref"in c)for(s in c={},t)s=="ref"?a=t[s]:c[s]=t[s];var d={type:e,props:c,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Nn,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)c[s]===void 0&&(c[s]=a[s]);return b.vnode&&b.vnode(d),d}const mr=`/*
|
|
1
|
+
var SqueletteWidgetBundle=function(E){"use strict";var yi=Object.defineProperty;var Ln=E=>{throw TypeError(E)};var xi=(E,N,_)=>N in E?yi(E,N,{enumerable:!0,configurable:!0,writable:!0,value:_}):E[N]=_;var Z=(E,N,_)=>xi(E,typeof N!="symbol"?N+"":N,_),Pn=(E,N,_)=>N.has(E)||Ln("Cannot "+_);var h=(E,N,_)=>(Pn(E,N,"read from private field"),_?_.call(E):N.get(E)),Y=(E,N,_)=>N.has(E)?Ln("Cannot add the same private member more than once"):N instanceof WeakSet?N.add(E):N.set(E,_),L=(E,N,_,je)=>(Pn(E,N,"write to private field"),je?je.call(E,_):N.set(E,_),_);var A,xe,Ie,ne,ke,Le,Fe,Ke,te,ie,se,K,Qe,Ue,be;var N,_,je,nr,Ee,or,ir,sr,ar,kt,St,qt,He={},lr=[],Mn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,De=Array.isArray;function pe(e,t){for(var r in t)e[r]=t[r];return e}function Et(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Ge(e,t,r){var n,o,i,s={};for(i in t)i=="key"?n=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?N.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return et(e,s,n,o,null)}function et(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o==null?++je:o,__i:-1,__u:0};return o==null&&_.vnode!=null&&_.vnode(i),i}function ge(e){return e.children}function fe(e,t){this.props=e,this.context=t}function Pe(e,t){if(t==null)return e.__?Pe(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?Pe(e):null}function cr(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return cr(e)}}function dr(e){(!e.__d&&(e.__d=!0)&&Ee.push(e)&&!tt.__r++||or!=_.debounceRendering)&&((or=_.debounceRendering)||ir)(tt)}function tt(){for(var e,t,r,n,o,i,s,a=1;Ee.length;)Ee.length>a&&Ee.sort(sr),e=Ee.shift(),a=Ee.length,e.__d&&(r=void 0,n=void 0,o=(n=(t=e).__v).__e,i=[],s=[],t.__P&&((r=pe({},n)).__v=n.__v+1,_.vnode&&_.vnode(r),Ct(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[o]:null,i,o==null?Pe(n):o,!!(32&n.__u),s),r.__v=n.__v,r.__.__k[r.__i]=r,gr(i,r,s),n.__e=n.__=null,r.__e!=o&&cr(r)));tt.__r=0}function ur(e,t,r,n,o,i,s,a,l,c,u){var d,g,f,v,q,k,x,C=n&&n.__k||lr,$=t.length;for(l=zn(r,t,C,l,$),d=0;d<$;d++)(f=r.__k[d])!=null&&(g=f.__i==-1?He:C[f.__i]||He,f.__i=d,k=Ct(e,f,g,o,i,s,a,l,c,u),v=f.__e,f.ref&&g.ref!=f.ref&&(g.ref&&$t(g.ref,null,f),u.push(f.ref,f.__c||v,f)),q==null&&v!=null&&(q=v),(x=!!(4&f.__u))||g.__k===f.__k?l=fr(f,l,e,x):typeof f.type=="function"&&k!==void 0?l=k:v&&(l=v.nextSibling),f.__u&=-7);return r.__e=q,l}function zn(e,t,r,n,o){var i,s,a,l,c,u=r.length,d=u,g=0;for(e.__k=new Array(o),i=0;i<o;i++)(s=t[i])!=null&&typeof s!="boolean"&&typeof s!="function"?(l=i+g,(s=e.__k[i]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?et(null,s,null,null,null):De(s)?et(ge,{children:s},null,null,null):s.constructor==null&&s.__b>0?et(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,(c=s.__i=Tn(s,r,l,d))!=-1&&(d--,(a=r[c])&&(a.__u|=2)),a==null||a.__v==null?(c==-1&&(o>u?g--:o<u&&g++),typeof s.type!="function"&&(s.__u|=4)):c!=l&&(c==l-1?g--:c==l+1?g++:(c>l?g--:g++,s.__u|=4))):e.__k[i]=null;if(d)for(i=0;i<u;i++)(a=r[i])!=null&&!(2&a.__u)&&(a.__e==n&&(n=Pe(a)),br(a,a));return n}function fr(e,t,r,n){var o,i;if(typeof e.type=="function"){for(o=e.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=e,t=fr(o[i],t,r,n));return t}e.__e!=t&&(n&&(t&&e.type&&!t.parentNode&&(t=Pe(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function rt(e,t){return t=t||[],e==null||typeof e=="boolean"||(De(e)?e.some(function(r){rt(r,t)}):t.push(e)),t}function Tn(e,t,r,n){var o,i,s,a=e.key,l=e.type,c=t[r],u=c!=null&&(2&c.__u)==0;if(c===null&&e.key==null||u&&a==c.key&&l==c.type)return r;if(n>(u?1:0)){for(o=r-1,i=r+1;o>=0||i<t.length;)if((c=t[s=o>=0?o--:i++])!=null&&!(2&c.__u)&&a==c.key&&l==c.type)return s}return-1}function hr(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||Mn.test(t)?r:r+"px"}function nt(e,t,r,n,o){var i,s;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||hr(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||hr(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(ar,"$1")),s=t.toLowerCase(),t=s in e||t=="onFocusOut"||t=="onFocusIn"?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=kt,e.addEventListener(t,i?qt:St,i)):e.removeEventListener(t,i?qt:St,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r==null?"":r;break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function pr(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=kt++;else if(t.t<r.u)return;return r(_.event?_.event(t):t)}}}function Ct(e,t,r,n,o,i,s,a,l,c){var u,d,g,f,v,q,k,x,C,$,R,G,F,V,p,P,O,T=t.type;if(t.constructor!=null)return null;128&r.__u&&(l=!!(32&r.__u),i=[a=t.__e=r.__e]),(u=_.__b)&&u(t);e:if(typeof T=="function")try{if(x=t.props,C="prototype"in T&&T.prototype.render,$=(u=T.contextType)&&n[u.__c],R=u?$?$.props.value:u.__:n,r.__c?k=(d=t.__c=r.__c).__=d.__E:(C?t.__c=d=new T(x,R):(t.__c=d=new fe(x,R),d.constructor=T,d.render=Nn),$&&$.sub(d),d.props=x,d.state||(d.state={}),d.context=R,d.__n=n,g=d.__d=!0,d.__h=[],d._sb=[]),C&&d.__s==null&&(d.__s=d.state),C&&T.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=pe({},d.__s)),pe(d.__s,T.getDerivedStateFromProps(x,d.__s))),f=d.props,v=d.state,d.__v=t,g)C&&T.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),C&&d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(C&&T.getDerivedStateFromProps==null&&x!==f&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(x,R),!d.__e&&d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(x,d.__s,R)===!1||t.__v==r.__v){for(t.__v!=r.__v&&(d.props=x,d.state=d.__s,d.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(j){j&&(j.__=t)}),G=0;G<d._sb.length;G++)d.__h.push(d._sb[G]);d._sb=[],d.__h.length&&s.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(x,d.__s,R),C&&d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(f,v,q)})}if(d.context=R,d.props=x,d.__P=e,d.__e=!1,F=_.__r,V=0,C){for(d.state=d.__s,d.__d=!1,F&&F(t),u=d.render(d.props,d.state,d.context),p=0;p<d._sb.length;p++)d.__h.push(d._sb[p]);d._sb=[]}else do d.__d=!1,F&&F(t),u=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++V<25);d.state=d.__s,d.getChildContext!=null&&(n=pe(pe({},n),d.getChildContext())),C&&!g&&d.getSnapshotBeforeUpdate!=null&&(q=d.getSnapshotBeforeUpdate(f,v)),P=u,u!=null&&u.type===ge&&u.key==null&&(P=mr(u.props.children)),a=ur(e,De(P)?P:[P],t,r,n,o,i,s,a,l,c),d.base=t.__e,t.__u&=-161,d.__h.length&&s.push(d),k&&(d.__E=d.__=null)}catch(j){if(t.__v=null,l||i!=null)if(j.then){for(t.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,t.__e=a}else{for(O=i.length;O--;)Et(i[O]);At(t)}else t.__e=r.__e,t.__k=r.__k,j.then||At(t);_.__e(j,t,r)}else i==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):a=t.__e=Rn(r.__e,t,r,n,o,i,s,l,c);return(u=_.diffed)&&u(t),128&t.__u?void 0:a}function At(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(At)}function gr(e,t,r){for(var n=0;n<r.length;n++)$t(r[n],r[++n],r[++n]);_.__c&&_.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){_.__e(i,o.__v)}})}function mr(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:De(e)?e.map(mr):pe({},e)}function Rn(e,t,r,n,o,i,s,a,l){var c,u,d,g,f,v,q,k=r.props,x=t.props,C=t.type;if(C=="svg"?o="http://www.w3.org/2000/svg":C=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(c=0;c<i.length;c++)if((f=i[c])&&"setAttribute"in f==!!C&&(C?f.localName==C:f.nodeType==3)){e=f,i[c]=null;break}}if(e==null){if(C==null)return document.createTextNode(x);e=document.createElementNS(o,C,x.is&&x),a&&(_.__m&&_.__m(t,i),a=!1),i=null}if(C==null)k===x||a&&e.data==x||(e.data=x);else{if(i=i&&N.call(e.childNodes),k=r.props||He,!a&&i!=null)for(k={},c=0;c<e.attributes.length;c++)k[(f=e.attributes[c]).name]=f.value;for(c in k)if(f=k[c],c!="children"){if(c=="dangerouslySetInnerHTML")d=f;else if(!(c in x)){if(c=="value"&&"defaultValue"in x||c=="checked"&&"defaultChecked"in x)continue;nt(e,c,null,f,o)}}for(c in x)f=x[c],c=="children"?g=f:c=="dangerouslySetInnerHTML"?u=f:c=="value"?v=f:c=="checked"?q=f:a&&typeof f!="function"||k[c]===f||nt(e,c,f,k[c],o);if(u)a||d&&(u.__html==d.__html||u.__html==e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),ur(t.type=="template"?e.content:e,De(g)?g:[g],t,r,n,C=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:r.__k&&Pe(r,0),a,l),i!=null)for(c=i.length;c--;)Et(i[c]);a||(c="value",C=="progress"&&v==null?e.removeAttribute("value"):v!=null&&(v!==e[c]||C=="progress"&&!v||C=="option"&&v!=k[c])&&nt(e,c,v,k[c],o),c="checked",q!=null&&q!=e[c]&&nt(e,c,q,k[c],o))}return e}function $t(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(o){_.__e(o,r)}}function br(e,t,r){var n,o;if(_.unmount&&_.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||$t(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(i){_.__e(i,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&br(n[o],t,r||typeof e.type!="function");r||Et(e.__e),e.__c=e.__=e.__e=void 0}function Nn(e,t,r){return this.constructor(e,r)}function _e(e,t,r){var n,o,i,s;t==document&&(t=document.documentElement),_.__&&_.__(e,t),o=(n=!1)?null:t.__k,i=[],s=[],Ct(t,e=t.__k=Ge(ge,null,[e]),o||He,He,t.namespaceURI,o?null:t.firstChild?N.call(t.childNodes):null,i,o?o.__e:t.firstChild,n,s),gr(i,e,s)}N=lr.slice,_={__e:function(e,t,r,n){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,n||{}),s=o.__d),s)return o.__E=o}catch(a){e=a}throw e}},je=0,nr=function(e){return e!=null&&e.constructor==null},fe.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=pe({},this.state),typeof e=="function"&&(e=e(pe({},r),this.props)),e&&pe(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),dr(this))},fe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),dr(this))},fe.prototype.render=ge,Ee=[],ir=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,sr=function(e,t){return e.__v.__b-t.__v.__b},tt.__r=0,ar=/(PointerCapture)$|Capture$/i,kt=0,St=pr(!1),qt=pr(!0);var On=0;function y(e,t,r,n,o,i){t||(t={});var s,a,l=t;if("ref"in l)for(a in l={},t)a=="ref"?s=t[a]:l[a]=t[a];var c={type:e,props:l,key:r,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--On,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)l[a]===void 0&&(l[a]=s[a]);return _.vnode&&_.vnode(c),c}const _r=`/*
|
|
2
2
|
* Scoped styles for the embedded iframe element. These live in the Shadow DOM
|
|
3
3
|
* and are injected using constructable style sheets when supported.
|
|
4
4
|
*/
|
|
@@ -23,7 +23,7 @@ var SqueletteWidgetBundle=function(E){"use strict";var gi=Object.defineProperty;
|
|
|
23
23
|
:host([data-theme="dark"]) .sq-frame {
|
|
24
24
|
background: rgba(0, 0, 0, 0.3);
|
|
25
25
|
}
|
|
26
|
-
`;var
|
|
26
|
+
`;var Me,W,Lt,vr,ot=0,wr=[],I=_,yr=I.__b,xr=I.__r,kr=I.diffed,Sr=I.__c,qr=I.unmount,Er=I.__;function it(e,t){I.__h&&I.__h(W,e,ot||t),ot=0;var r=W.__H||(W.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function ze(e){return ot=1,Bn(Ar,e)}function Bn(e,t,r){var n=it(Me++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Ar(void 0,t),function(a){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,a);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=W,!W.__f)){var o=function(a,l,c){if(!n.__c.__H)return!0;var u=n.__c.__H.__.filter(function(g){return!!g.__c});if(u.every(function(g){return!g.__N}))return!i||i.call(this,a,l,c);var d=n.__c.props!==a;return u.forEach(function(g){if(g.__N){var f=g.__[0];g.__=g.__N,g.__N=void 0,f!==g.__[0]&&(d=!0)}}),i&&i.call(this,a,l,c)||d};W.__f=!0;var i=W.shouldComponentUpdate,s=W.componentWillUpdate;W.componentWillUpdate=function(a,l,c){if(this.__e){var u=i;i=void 0,o(a,l,c),i=u}s&&s.call(this,a,l,c)},W.shouldComponentUpdate=o}return n.__N||n.__}function ee(e,t){var r=it(Me++,3);!I.__s&&Tt(r.__H,t)&&(r.__=e,r.u=t,W.__H.__h.push(r))}function Pt(e,t){var r=it(Me++,4);!I.__s&&Tt(r.__H,t)&&(r.__=e,r.u=t,W.__h.push(r))}function X(e){return ot=5,Mt(function(){return{current:e}},[])}function Mt(e,t){var r=it(Me++,7);return Tt(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Wn(){for(var e;e=wr.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(st),e.__H.__h.forEach(zt),e.__H.__h=[]}catch(t){e.__H.__h=[],I.__e(t,e.__v)}}I.__b=function(e){W=null,yr&&yr(e)},I.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Er&&Er(e,t)},I.__r=function(e){xr&&xr(e),Me=0;var t=(W=e.__c).__H;t&&(Lt===W?(t.__h=[],W.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(st),t.__h.forEach(zt),t.__h=[],Me=0)),Lt=W},I.diffed=function(e){kr&&kr(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(wr.push(t)!==1&&vr===I.requestAnimationFrame||((vr=I.requestAnimationFrame)||In)(Wn)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Lt=W=null},I.__c=function(e,t){t.some(function(r){try{r.__h.forEach(st),r.__h=r.__h.filter(function(n){return!n.__||zt(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],I.__e(n,r.__v)}}),Sr&&Sr(e,t)},I.unmount=function(e){qr&&qr(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{st(n)}catch(o){t=o}}),r.__H=void 0,t&&I.__e(t,r.__v))};var Cr=typeof requestAnimationFrame=="function";function In(e){var t,r=function(){clearTimeout(n),Cr&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);Cr&&(t=requestAnimationFrame(r))}function st(e){var t=W,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),W=t}function zt(e){var t=W;e.__c=e.__(),W=t}function Tt(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Ar(e,t){return typeof t=="function"?t(e):t}function Fn({open:e,label:t,iframeSrc:r,FrameComponent:n,ensureFrame:o,onOpen:i,onClose:s,onFrameLoaded:a}){ee(()=>{e&&o()},[e,o]);const l=n;return y("div",{class:"sq-root",children:[y("button",{class:"sq-trigger",type:"button","aria-haspopup":"dialog","aria-expanded":e?"true":"false",onClick:e?s:i,part:"launcher",children:[y("span",{class:"sq-trigger-icon","aria-hidden":"true",children:"✶"}),y("span",{class:"sq-trigger-label",children:t})]}),y("div",{class:"sq-overlay","data-state":e?"open":"closed",onClick:s,role:"presentation"}),y("div",{class:"sq-panel","data-state":e?"open":"closed","aria-hidden":e?"false":"true",part:"panel",children:l&&r?y(l,{src:r,title:"Squelette feedback",onLoaded:a,onClose:s}):null})]})}const Rt="squelette-widget",Nt=typeof globalThis!="undefined"?globalThis:{},Ot=typeof Nt.SQUELETTE_WIDGET_BASE_URL=="string"&&Nt.SQUELETTE_WIDGET_BASE_URL.length>0?Nt.SQUELETTE_WIDGET_BASE_URL:"https://www.squelette.app",Un="https://cdn.squelette.app/widget.js",at="Feedback";class jn{constructor(){Z(this,"listeners",new Map)}on(t,r){var o;const n=(o=this.listeners.get(t))!=null?o:new Set;return n.add(r),this.listeners.set(t,n),()=>this.off(t,r)}off(t,r){const n=this.listeners.get(t);n&&n.delete(r)}emit(t,r){const n=this.listeners.get(t);if(n)for(const o of n)o(r)}}const Hn=`
|
|
27
27
|
:host {
|
|
28
28
|
position: relative;
|
|
29
29
|
z-index: 2147483000;
|
|
@@ -160,7 +160,7 @@ var SqueletteWidgetBundle=function(E){"use strict";var gi=Object.defineProperty;
|
|
|
160
160
|
max-height: min(85vh, 720px);
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
`,qr=new Map,Hn=typeof Document!="undefined"&&"adoptedStyleSheets"in Document.prototype;function it(e,t){var n;if(!t)return;if(Hn){let o=(n=qr.get(t))!=null?n:null;o||(o=new CSSStyleSheet,o.replaceSync(t),qr.set(t,o)),e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return}const r=document.createElement("style");r.textContent=t,e.appendChild(r)}function Dn(e){it(e,Fn)}function Gn(e,t,r){r?e.hasAttribute(t)||e.setAttribute(t,""):e.hasAttribute(t)&&e.removeAttribute(t)}function Ar(e){return e?e.toLowerCase():"en"}function $r(e){return e==="light"||e==="dark"?e:"auto"}function at(e){return e==="roadmap"||e==="changelog"?e:"feedback"}function Pr(e){if(!e.project)return null;const t=new URLSearchParams({locale:e.locale});e.theme&&e.theme!=="auto"&&t.set("theme",e.theme),e.signature&&t.set("signature",e.signature),e.token&&t.set("token",e.token);const r=e.apiBase.replace(/\/$/,"");switch(e.view){case"roadmap":return e.board&&t.set("board",e.board),`${r}/widget/${encodeURIComponent(e.project)}/roadmap?${t.toString()}`;case"changelog":return`${r}/widget/${encodeURIComponent(e.project)}/changelog?${t.toString()}`;case"feedback":default:return e.board&&t.set("board",e.board),`${r}/widget/${encodeURIComponent(e.project)}/feedback?${t.toString()}`}}function Vn(e,t){const r=window.matchMedia("(prefers-color-scheme: dark)"),n=o=>{e.dataset.theme=o?"dark":"light"};if(t==="auto"){n(r.matches);const o=i=>n(i.matches);return r.addEventListener("change",o),()=>r.removeEventListener("change",o)}return e.dataset.theme=t,()=>{}}const Nt={feedback:{width:340,height:200},roadmap:{width:400,height:420},changelog:{width:400,height:520}},Wt={width:400,height:540};function It(e,t){var o;const{width:r,height:n}=(o=Nt[t])!=null?o:Wt;e.style.setProperty("--sq-panel-width",`${r}px`),e.style.setProperty("--sq-panel-height",`${n}px`)}function Yn(e){const t=document.body.style;{const r={overflow:t.overflow,paddingRight:t.paddingRight},n=window.innerWidth-document.documentElement.clientWidth;return t.overflow="hidden",n>0&&(t.paddingRight=`${n}px`),()=>{t.overflow=r.overflow,t.paddingRight=r.paddingRight}}}class Mr extends HTMLElement{constructor(){super();V(this,C,{project:null,board:null,theme:"auto",locale:"en",apiBase:Rt,label:ot,view:"feedback"});V(this,ve,!1);V(this,We,!1);V(this,te,!1);V(this,we);V(this,qe);V(this,Ie,null);V(this,Ye,null);V(this,K,null);V(this,oe,null);V(this,ie,null);V(this,X,null);V(this,Xe,null);V(this,Oe,new jn);V(this,me,null);Ze(this,"ensureFrameModule",async()=>{var r,n,o;if(!(u(this,Ie)||u(this,We))){A(this,We,!0),this.render();try{(r=u(this,Ye))!=null||A(this,Ye,Promise.resolve().then(()=>mi));const i=await u(this,Ye),a=(n=i.WidgetFrame)!=null?n:i.default;if(!a)throw new Error("[SqueletteWidget] Widget app missing export");A(this,Ie,a),it(u(this,we),(o=i.stylesText)!=null?o:mr)}catch(i){console.error("[SqueletteWidget] Failed to load widget app",i)}finally{A(this,We,!1),this.render()}}});Ze(this,"handleFrameLoaded",()=>{A(this,te,!0),A(this,me,u(this,we).querySelector("iframe")),this.postIdentityToFrame(),this.render(),this.dispatchEvent(new CustomEvent("squelette:frame-loaded"))});A(this,we,this.attachShadow({mode:"open"})),A(this,qe,document.createElement("div")),Dn(u(this,we)),u(this,we).appendChild(u(this,qe)),this.render()}static get observedAttributes(){return["project","board","theme","locale","token","signature","label","view","open","api-base"]}connectedCallback(){var n,o,i;u(this,C).project=this.getAttribute("project"),u(this,C).board=this.getAttribute("board"),u(this,C).theme=$r(this.getAttribute("theme")),u(this,C).locale=Ar(this.getAttribute("locale")),u(this,C).token=(n=this.getAttribute("token"))!=null?n:void 0,u(this,C).signature=(o=this.getAttribute("signature"))!=null?o:void 0,u(this,C).label=(i=this.getAttribute("label"))!=null?i:ot,u(this,C).view=at(this.getAttribute("view"));const r=this.getAttribute("api-base");u(this,C).apiBase=r&&r.length>0?r:u(this,C).apiBase,this.applyTheme(u(this,C).theme),It(this,u(this,C).view),this.hasAttribute("open")&&this.setOpen(!0,"attribute"),A(this,ie,a=>{if(!u(this,C).project||!a.data||typeof a.data!="object")return;try{const d=new URL(u(this,C).apiBase).origin;if(a.origin!==d)return}catch{return}const s=a.data;if(s.type!=="squelette:submit")return;const c=s.payload;c&&u(this,Oe).emit("submit",{source:"app",payload:c})}),window.addEventListener("message",u(this,ie)),A(this,oe,a=>{var c;A(this,Xe,(c=a.detail)!=null?c:null),this.postIdentityToFrame()}),window.addEventListener("squelette:identity",u(this,oe)),this.render()}disconnectedCallback(){u(this,ie)&&(window.removeEventListener("message",u(this,ie)),A(this,ie,null)),u(this,K)&&(u(this,K).call(this),A(this,K,null)),u(this,oe)&&(window.removeEventListener("squelette:identity",u(this,oe)),A(this,oe,null)),u(this,X)&&(u(this,X).call(this),A(this,X,null))}attributeChangedCallback(r,n,o){if(r==="open"){if(u(this,ve)===(o!==null))return;this.setOpen(o!==null,"attribute");return}switch(r){case"project":u(this,C).project=o,A(this,te,!1);break;case"board":u(this,C).board=o,A(this,te,!1);break;case"locale":u(this,C).locale=Ar(o),A(this,te,!1);break;case"theme":u(this,C).theme=$r(o),this.applyTheme(u(this,C).theme);break;case"token":u(this,C).token=o!=null?o:void 0,A(this,te,!1);break;case"signature":u(this,C).signature=o!=null?o:void 0,A(this,te,!1);break;case"label":u(this,C).label=o!=null?o:ot;break;case"view":u(this,C).view=at(o),A(this,te,!1),It(this,u(this,C).view);break;case"api-base":u(this,C).apiBase=o&&o.length>0?o:Rt,A(this,te,!1);break}r!=="open"&&this.render()}async open(){await this.setOpen(!0,"api")}async close(){await this.setOpen(!1,"api")}async toggle(){await this.setOpen(!u(this,ve),"api")}on(r,n){return r==="submit"&&!u(this,C).project&&console.warn("[SqueletteWidget] Cannot listen for submit before project is set."),u(this,Oe).on(r,n)}async destroy(){$e(null,u(this,qe)),u(this,ie)&&(window.removeEventListener("message",u(this,ie)),A(this,ie,null)),u(this,K)&&(u(this,K).call(this),A(this,K,null)),u(this,oe)&&(window.removeEventListener("squelette:identity",u(this,oe)),A(this,oe,null)),this.parentNode&&this.parentNode.removeChild(this),u(this,X)&&(u(this,X).call(this),A(this,X,null))}render(){const r=Pr(u(this,C));$e(k(Bn,{open:u(this,ve),label:u(this,C).label,iframeSrc:r,FrameComponent:u(this,Ie),ensureFrame:this.ensureFrameModule,onOpen:()=>void this.setOpen(!0,"api"),onClose:()=>void this.setOpen(!1,"api"),onFrameLoaded:this.handleFrameLoaded}),u(this,qe))}async setOpen(r,n){if(r&&!u(this,C).project){console.warn("[SqueletteWidget] Missing `project` attribute or option.");return}if(u(this,ve)!==r){if(A(this,ve,r),Gn(this,"open",r),r)u(this,X)||A(this,X,Yn()),It(this,u(this,C).view);else{u(this,X)&&(u(this,X).call(this),A(this,X,null)),A(this,te,!1);const o=Pr(u(this,C));o&&u(this,me)&&(u(this,me).src=o)}this.render(),u(this,Oe).emit(r?"open":"close",{source:n})}}applyTheme(r){u(this,K)&&(u(this,K).call(this),A(this,K,null)),A(this,K,Vn(this,r))}postIdentityToFrame(){if(!(!u(this,me)||!u(this,me).contentWindow))try{const r=new URL(u(this,C).apiBase).origin;u(this,me).contentWindow.postMessage({type:"squelette-identify",payload:u(this,Xe)},r)}catch(r){console.warn("[SqueletteWidget] Unable to forward identity payload",r)}}}C=new WeakMap,ve=new WeakMap,We=new WeakMap,te=new WeakMap,we=new WeakMap,qe=new WeakMap,Ie=new WeakMap,Ye=new WeakMap,K=new WeakMap,oe=new WeakMap,ie=new WeakMap,X=new WeakMap,Xe=new WeakMap,Oe=new WeakMap,me=new WeakMap;function Ot(){customElements.get(Lt)||customElements.define(Lt,Mr)}let st=null;function zr(e){window.dispatchEvent(new CustomEvent("squelette:identity",{detail:e}))}function Lr(e){if(!e||!e.userId||!e.email||!e.signature){console.error("[SqueletteWidget] Invalid identification payload.",e);return}st=e,zr(st)}function Tr(){st=null,zr(null)}function Rr(){return st}function Bt(e,t,r){const n=Math.max(t,r);return Math.min(Math.max(e,t),n)}function Xn(e,t){var B,Z;const r=[],n=(B=t.position)!=null?B:"top",o=(Z=t.overlayBlur)!=null?Z:!0,i=12,a=n.startsWith("fixed-"),s=/^fixed-(top|center|bottom)-(left|center|right)$/;let c=null,d=!1,f=!1,l=null;const g=()=>{e.removeAttribute("data-anchor"),e.removeAttribute("data-anchor-origin"),e.removeAttribute("data-fixed-vertical"),e.removeAttribute("data-fixed-horizontal"),e.style.removeProperty("--sq-offset-top"),e.style.removeProperty("--sq-offset-left"),e.style.removeProperty("--sq-offset-bottom"),e.style.removeProperty("--sq-offset-right")},h=()=>{var ye;if(!d||!c)return;const p=c.getBoundingClientRect(),P=window.innerWidth,N=window.innerHeight,L=at(e.getAttribute("view")),F=(ye=Nt[L])!=null?ye:Wt,ae=Math.min(F.width,P-i*2),se=Math.min(F.height,N-i*2),le=Math.max(i,P-ae-i),J=Math.max(i,N-se-i),ce=p.top-i,v=N-p.bottom-i;let re=p.bottom+i,Q=p.left+p.width/2-ae/2,de="top";if(n==="left"||n==="right"){let M=n==="right";const H=p.right+i,fe=p.left-ae-i,xe=H+ae<=P-i,W=fe>=i;M&&!xe&&W?M=!1:!M&&!W&&xe&&(M=!0),M?(Q=H,de="left"):(Q=fe,de="right");const gt=p.top+p.height/2-se/2;re=Bt(gt,i,J)}else{let M=n==="bottom";n!=="top"&&n!=="bottom"&&(M=v>=ce);const H=p.bottom+i,fe=p.top-se-i,xe=H+se<=N-i,W=fe>=i;M&&!xe&&W?M=!1:!M&&!W&&xe&&(M=!0),M?(re=H,de="top"):(re=fe,de="bottom"),Q=p.left+p.width/2-ae/2}re=Bt(re,i,J),Q=Bt(Q,i,le),e.dataset.anchor="button",e.dataset.anchorOrigin=de,e.style.setProperty("--sq-offset-top",`${Math.round(re)}px`),e.style.setProperty("--sq-offset-left",`${Math.round(Q)}px`),e.style.setProperty("--sq-offset-bottom","auto"),e.style.setProperty("--sq-offset-right","auto")},y=()=>{d&&requestAnimationFrame(h)},$=()=>{f||(window.addEventListener("resize",y),window.addEventListener("scroll",y,!0),f=!0)},q=()=>{f&&(window.removeEventListener("resize",y),window.removeEventListener("scroll",y,!0),f=!1)},x=()=>{!c||a||(d=!0,e.dataset.anchor="button",e.style.setProperty("--sq-offset-bottom","auto"),e.style.setProperty("--sq-offset-right","auto"),$(),h(),requestAnimationFrame(h))},w=()=>{d=!1,q()};r.push(()=>{w(),g()}),o||(e.dataset.overlayBlur="off",r.push(()=>{delete e.dataset.overlayBlur}));const T=()=>{var M;if(!a)return;const p=n.match(s);if(!p){console.warn(`[SqueletteWidget] Unsupported position value: ${n}`);return}const[,P,N]=p,L=24,F=at(e.getAttribute("view")),ae=(M=Nt[F])!=null?M:Wt,se=window.innerWidth,le=window.innerHeight,J=Math.min(ae.width,se-L*2),ce=Math.min(ae.height,le-L*2);let v="auto",re="auto",Q="auto",de="auto";switch(P){case"top":v=`${L}px`;break;case"bottom":re=`${L}px`;break;case"center":v=`${Math.max(L,Math.round((le-ce)/2))}px`;break}switch(N){case"left":Q=`${L}px`;break;case"right":de=`${L}px`;break;case"center":Q=`${Math.max(L,Math.round((se-J)/2))}px`;break}e.dataset.anchor="fixed";const ye=P==="center"?N==="center"?"bottom":N:P;e.dataset.anchorOrigin=ye,e.dataset.fixedVertical=P,e.dataset.fixedHorizontal=N,e.style.setProperty("--sq-offset-top",v),e.style.setProperty("--sq-offset-bottom",re),e.style.setProperty("--sq-offset-left",Q),e.style.setProperty("--sq-offset-right",de)};if(a&&T(),t.buttonSelector)if(c=document.querySelector(t.buttonSelector),c){const p=c;e.dataset.launcherHidden="true",r.push(()=>{delete e.dataset.launcherHidden});const P=L=>{L.preventDefault(),L.stopPropagation(),e.toggle()};p.addEventListener("click",P,!1),r.push(()=>p.removeEventListener("click",P,!1));const N=()=>{a?T():requestAnimationFrame(h)};e.addEventListener("squelette:frame-loaded",N),r.push(()=>e.removeEventListener("squelette:frame-loaded",N)),l=L=>{if(!e.hasAttribute("open"))return;const F=L.target;!e.contains(F)&&!p.contains(F)&&e.close()},document.addEventListener("click",l,!0),r.push(()=>{l&&(document.removeEventListener("click",l,!0),l=null)})}else console.warn(`[SqueletteWidget] Button selector not found: ${t.buttonSelector}`);const U=e.on("open",()=>{a?T():c&&x()}),G=e.on("close",()=>{w()});if(r.push(U,G),t.onOpenChange){const p=e.on("open",()=>{var N;return(N=t.onOpenChange)==null?void 0:N.call(t,!0)}),P=e.on("close",()=>{var N;return(N=t.onOpenChange)==null?void 0:N.call(t,!1)});r.push(p,P)}if(t.onLoad){const p=()=>{var P;(P=t.onLoad)==null||P.call(t),e.removeEventListener("squelette:frame-loaded",p)};e.addEventListener("squelette:frame-loaded",p),r.push(()=>e.removeEventListener("squelette:frame-loaded",p))}return r}const Nr='*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0}.mx-4{margin-left:1rem;margin-right:1rem}.box-border{box-sizing:border-box}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.size-4{width:1rem;height:1rem}.h-6{height:1.5rem}.h-\\[64px\\]{height:64px}.h-full{height:100%}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-\\[400px\\]{max-width:400px}.max-w-lg{max-width:32rem}.shrink-0{flex-shrink:0}.origin-center{transform-origin:center}.translate-y-0\\.5{--tw-translate-y: .125rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.whitespace-nowrap{white-space:nowrap}.rounded-\\[32px\\]{border-radius:32px}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-0{border-width:0px}.border-\\[3px\\]{border-width:3px}.border-none{border-style:none}.border-\\[\\#222222\\]{--tw-border-opacity: 1;border-color:rgb(34 34 34 / var(--tw-border-opacity, 1))}.border-\\[\\#f0f0f0\\]{--tw-border-opacity: 1;border-color:rgb(240 240 240 / var(--tw-border-opacity, 1))}.bg-black\\/30{background-color:#0000004d}.bg-transparent{background-color:transparent}.bg-white\\/30{background-color:#ffffff4d}.p-0{padding:0}.p-1{padding:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.align-baseline{vertical-align:baseline}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-filter{backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.will-change-transform{will-change:transform}:host{display:block;width:100%;contain:content;--squelette-banner-bg: #ffffff;--squelette-banner-border: #e5e7eb;--squelette-banner-text: #111827;--squelette-banner-badge-bg: #7f3cec;--squelette-banner-badge-text: #ffffff;--squelette-banner-button-hover: .7}';var Zn=Symbol.for("preact-signals");function lt(){if(ge>1)ge--;else{for(var e,t=!1;He!==void 0;){var r=He;for(He=void 0,Ut++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Or(r))try{r.c()}catch(o){t||(e=o,t=!0)}r=n}}if(Ut=0,ge--,t)throw e}}function Jn(e){if(ge>0)return e();ge++;try{return e()}finally{lt()}}var z=void 0;function Wr(e){var t=z;z=void 0;try{return e()}finally{z=t}}var He=void 0,ge=0,Ut=0,ct=0;function Ir(e){if(z!==void 0){var t=e.n;if(t===void 0||t.t!==z)return t={i:0,S:e,p:z.s,n:void 0,t:z,e:void 0,x:void 0,r:t},z.s!==void 0&&(z.s.n=t),z.s=t,e.n=t,32&z.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=z.s,t.n=void 0,z.s.n=t,z.s=t),t}}function D(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}D.prototype.brand=Zn,D.prototype.h=function(){return!0},D.prototype.S=function(e){var t=this,r=this.t;r!==e&&e.e===void 0&&(e.x=r,this.t=e,r!==void 0?r.e=e:Wr(function(){var n;(n=t.W)==null||n.call(t)}))},D.prototype.U=function(e){var t=this;if(this.t!==void 0){var r=e.e,n=e.x;r!==void 0&&(r.x=n,e.e=void 0),n!==void 0&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,n===void 0&&Wr(function(){var o;(o=t.Z)==null||o.call(t)}))}},D.prototype.subscribe=function(e){var t=this;return De(function(){var r=t.value,n=z;z=void 0;try{e(r)}finally{z=n}},{name:"sub"})},D.prototype.valueOf=function(){return this.value},D.prototype.toString=function(){return this.value+""},D.prototype.toJSON=function(){return this.value},D.prototype.peek=function(){var e=z;z=void 0;try{return this.value}finally{z=e}},Object.defineProperty(D.prototype,"value",{get:function(){var e=Ir(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Ut>100)throw new Error("Cycle detected");this.v=e,this.i++,ct++,ge++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{lt()}}}});function Se(e,t){return new D(e,t)}function Or(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Br(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Ur(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function Ee(e,t){D.call(this,void 0),this.x=e,this.s=void 0,this.g=ct-1,this.f=4,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}Ee.prototype=new D,Ee.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===ct))return!0;if(this.g=ct,this.f|=1,this.i>0&&!Or(this))return this.f&=-2,!0;var e=z;try{Br(this),z=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return z=e,Ur(this),this.f&=-2,!0},Ee.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}D.prototype.S.call(this,e)},Ee.prototype.U=function(e){if(this.t!==void 0&&(D.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}},Ee.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}},Object.defineProperty(Ee.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Ir(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function jr(e,t){return new Ee(e,t)}function Fr(e){var t=e.u;if(e.u=void 0,typeof t=="function"){ge++;var r=z;z=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,jt(e),n}finally{z=r,lt()}}}function jt(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Fr(e)}function Kn(e){if(z!==this)throw new Error("Out-of-order effect");Ur(this),z=e,this.f&=-2,8&this.f&&jt(this),lt()}function ze(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=t==null?void 0:t.name}ze.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}},ze.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Fr(this),Br(this),ge++;var e=z;return z=this,Kn.bind(this,e)},ze.prototype.N=function(){2&this.f||(this.f|=2,this.o=He,He=this)},ze.prototype.d=function(){this.f|=8,1&this.f||jt(this)},ze.prototype.dispose=function(){this.d()};function De(e,t){var r=new ze(e,t);try{r.c()}catch(o){throw r.d(),o}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}var Hr,Ft,Dr=[];De(function(){Hr=this.N})();function Le(e,t){b[e]=t.bind(null,b[e]||function(){})}function dt(e){Ft&&Ft(),Ft=e&&e.S()}function Gr(e){var t=this,r=e.data,n=eo(r);n.value=r;var o=Pt(function(){for(var s=t,c=t.__v;c=c.__;)if(c.__c){c.__c.__$f|=4;break}var d=jr(function(){var h=n.value.value;return h===0?0:h===!0?"":h||""}),f=jr(function(){return!Array.isArray(d.value)&&!tr(d.value)}),l=De(function(){if(this.N=Vr,f.value){var h=d.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=h)}}),g=t.__$u.d;return t.__$u.d=function(){l(),g.call(this)},[f,d]},[]),i=o[0],a=o[1];return i.value?a.peek():a.value}Gr.displayName="ReactiveTextNode",Object.defineProperties(D.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Gr},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),Le("__b",function(e,t){if(typeof t.type=="function"&&typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),typeof t.type=="string"){var r,n=t.props;for(var o in n)if(o!=="children"){var i=n[o];i instanceof D&&(r||(t.__np=r={}),r[o]=i,n[o]=i.peek())}}e(t)}),Le("__r",function(e,t){if(typeof t.type=="function"&&typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.enterComponent(t),t.type!==he){dt();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(o){var i;return De(function(){i=this}),i.c=function(){n.__$f|=1,n.setState({})},i}())),dt(r)}e(t)}),Le("__e",function(e,t,r,n){typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),dt(),e(t,r,n)}),Le("diffed",function(e,t){typeof t.type=="function"&&typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),dt();var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,o=t.props;if(n){var i=r.U;if(i)for(var a in i){var s=i[a];s!==void 0&&!(a in n)&&(s.d(),i[a]=void 0)}else i={},r.U=i;for(var c in n){var d=i[c],f=n[c];d===void 0?(d=Qn(r,c,f,o),i[c]=d):d.o(f,o)}}}e(t)});function Qn(e,t,r,n){var o=t in e&&e.ownerSVGElement===void 0,i=Se(r);return{o:function(a,s){i.value=a,n=s},d:De(function(){this.N=Vr;var a=i.value.value;n[t]!==a&&(n[t]=a,o?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}Le("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var o in n){var i=n[o];i&&i.d()}}}}else{var a=t.__c;if(a){var s=a.__$u;s&&(a.__$u=void 0,s.d())}}e(t)}),Le("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)}),ue.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u,n=r&&r.s!==void 0;for(var o in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var i=2&this.__$f;if(!(n||i||4&this.__$f)||1&this.__$f)return!0}else if(!(n||4&this.__$f)||3&this.__$f)return!0;for(var a in e)if(a!=="__source"&&e[a]!==this.props[a])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};function eo(e,t){return Me(function(){return Se(e,t)})[0]}var to=function(e){queueMicrotask(function(){queueMicrotask(e)})};function ro(){Jn(function(){for(var e;e=Dr.shift();)Hr.call(e)})}function Vr(){Dr.push(this)===1&&(b.requestAnimationFrame||to)(ro)}function Yr(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Yr(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function no(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Yr(e))&&(n&&(n+=" "),n+=t);return n}const Ht="-",oo=e=>{const t=ao(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{const s=a.split(Ht);return s[0]===""&&s.length!==1&&s.shift(),Xr(s,t)||io(a)},getConflictingClassGroupIds:(a,s)=>{const c=r[a]||[];return s&&n[a]?[...c,...n[a]]:c}}},Xr=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Xr(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Ht);return(a=t.validators.find(({validator:s})=>s(i)))==null?void 0:a.classGroupId},Zr=/^\[(.+)\]$/,io=e=>{if(Zr.test(e)){const t=Zr.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ao=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)Dt(r[o],n,o,t);return n},Dt=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Jr(t,o);i.classGroupId=r;return}if(typeof o=="function"){if(so(o)){Dt(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,a])=>{Dt(a,Jr(t,i),r,n)})})},Jr=(e,t)=>{let r=e;return t.split(Ht).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},so=e=>e.isThemeGetter,lo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(i,a)=>{r.set(i,a),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let a=r.get(i);if(a!==void 0)return a;if((a=n.get(i))!==void 0)return o(i,a),a},set(i,a){r.has(i)?r.set(i,a):o(i,a)}}},Gt="!",Vt=":",co=Vt.length,uo=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const i=[];let a=0,s=0,c=0,d;for(let y=0;y<o.length;y++){let $=o[y];if(a===0&&s===0){if($===Vt){i.push(o.slice(c,y)),c=y+co;continue}if($==="/"){d=y;continue}}$==="["?a++:$==="]"?a--:$==="("?s++:$===")"&&s--}const f=i.length===0?o:o.substring(c),l=fo(f),g=l!==f,h=d&&d>c?d-c:void 0;return{modifiers:i,hasImportantModifier:g,baseClassName:l,maybePostfixModifierPosition:h}};if(t){const o=t+Vt,i=n;n=a=>a.startsWith(o)?i(a.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},fo=e=>e.endsWith(Gt)?e.substring(0,e.length-1):e.startsWith(Gt)?e.substring(1):e,po=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let i=[];return n.forEach(a=>{a[0]==="["||t[a]?(o.push(...i.sort(),a),i=[]):i.push(a)}),o.push(...i.sort()),o}},ho=e=>({cache:lo(e.cacheSize),parseClassName:uo(e),sortModifiers:po(e),...oo(e)}),_o=/\s+/,mo=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],s=e.trim().split(_o);let c="";for(let d=s.length-1;d>=0;d-=1){const f=s[d],{isExternal:l,modifiers:g,hasImportantModifier:h,baseClassName:y,maybePostfixModifierPosition:$}=r(f);if(l){c=f+(c.length>0?" "+c:c);continue}let q=!!$,x=n(q?y.substring(0,$):y);if(!x){if(!q){c=f+(c.length>0?" "+c:c);continue}if(x=n(y),!x){c=f+(c.length>0?" "+c:c);continue}q=!1}const w=i(g).join(":"),T=h?w+Gt:w,U=T+x;if(a.includes(U))continue;a.push(U);const G=o(x,q);for(let B=0;B<G.length;++B){const Z=G[B];a.push(T+Z)}c=f+(c.length>0?" "+c:c)}return c};function go(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Kr(t))&&(n&&(n+=" "),n+=r);return n}const Kr=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Kr(e[n]))&&(r&&(r+=" "),r+=t);return r};function bo(e,...t){let r,n,o,i=a;function a(c){const d=t.reduce((f,l)=>l(f),e());return r=ho(d),n=r.cache.get,o=r.cache.set,i=s,s(c)}function s(c){const d=n(c);if(d)return d;const f=mo(c,r);return o(c,f),f}return function(){return i(go.apply(null,arguments))}}const j=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Qr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,en=/^\((?:(\w[\w-]*):)?(.+)\)$/i,vo=/^\d+\/\d+$/,wo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yo=/\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$/,xo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ko=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,So=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Te=e=>vo.test(e),S=e=>!!e&&!Number.isNaN(Number(e)),be=e=>!!e&&Number.isInteger(Number(e)),Yt=e=>e.endsWith("%")&&S(e.slice(0,-1)),_e=e=>wo.test(e),Eo=()=>!0,Co=e=>yo.test(e)&&!xo.test(e),tn=()=>!1,qo=e=>ko.test(e),Ao=e=>So.test(e),$o=e=>!_(e)&&!m(e),Po=e=>Re(e,sn,tn),_=e=>Qr.test(e),Ce=e=>Re(e,ln,Co),Xt=e=>Re(e,Ro,S),rn=e=>Re(e,on,tn),Mo=e=>Re(e,an,Ao),ut=e=>Re(e,cn,qo),m=e=>en.test(e),Ge=e=>Ne(e,ln),zo=e=>Ne(e,No),nn=e=>Ne(e,on),Lo=e=>Ne(e,sn),To=e=>Ne(e,an),ft=e=>Ne(e,cn,!0),Re=(e,t,r)=>{const n=Qr.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Ne=(e,t,r=!1)=>{const n=en.exec(e);return n?n[1]?t(n[1]):r:!1},on=e=>e==="position"||e==="percentage",an=e=>e==="image"||e==="url",sn=e=>e==="length"||e==="size"||e==="bg-size",ln=e=>e==="length",Ro=e=>e==="number",No=e=>e==="family-name",cn=e=>e==="shadow",Wo=bo(()=>{const e=j("color"),t=j("font"),r=j("text"),n=j("font-weight"),o=j("tracking"),i=j("leading"),a=j("breakpoint"),s=j("container"),c=j("spacing"),d=j("radius"),f=j("shadow"),l=j("inset-shadow"),g=j("text-shadow"),h=j("drop-shadow"),y=j("blur"),$=j("perspective"),q=j("aspect"),x=j("ease"),w=j("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],G=()=>[...U(),m,_],B=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto","contain","none"],p=()=>[m,_,c],P=()=>[Te,"full","auto",...p()],N=()=>[be,"none","subgrid",m,_],L=()=>["auto",{span:["full",be,m,_]},be,m,_],F=()=>[be,"auto",m,_],ae=()=>["auto","min","max","fr",m,_],se=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],le=()=>["start","end","center","stretch","center-safe","end-safe"],J=()=>["auto",...p()],ce=()=>[Te,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...p()],v=()=>[e,m,_],re=()=>[...U(),nn,rn,{position:[m,_]}],Q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],de=()=>["auto","cover","contain",Lo,Po,{size:[m,_]}],ye=()=>[Yt,Ge,Ce],M=()=>["","none","full",d,m,_],H=()=>["",S,Ge,Ce],fe=()=>["solid","dashed","dotted","double"],xe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],W=()=>[S,Yt,nn,rn],gt=()=>["","none",y,m,_],bt=()=>["none",S,m,_],vt=()=>["none",S,m,_],er=()=>[S,m,_],wt=()=>[Te,"full",...p()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_e],breakpoint:[_e],color:[Eo],container:[_e],"drop-shadow":[_e],ease:["in","out","in-out"],font:[$o],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_e],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_e],shadow:[_e],spacing:["px",S],text:[_e],"text-shadow":[_e],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Te,_,m,q]}],container:["container"],columns:[{columns:[S,_,m,s]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"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"],sr:["sr-only","not-sr-only"],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:G()}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{start:P()}],end:[{end:P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[be,"auto",m,_]}],basis:[{basis:[Te,"full","auto",s,...p()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[S,Te,"auto","initial","none",_]}],grow:[{grow:["",S,m,_]}],shrink:[{shrink:["",S,m,_]}],order:[{order:[be,"first","last","none",m,_]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:L()}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:L()}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ae()}],"auto-rows":[{"auto-rows":ae()}],gap:[{gap:p()}],"gap-x":[{"gap-x":p()}],"gap-y":[{"gap-y":p()}],"justify-content":[{justify:[...se(),"normal"]}],"justify-items":[{"justify-items":[...le(),"normal"]}],"justify-self":[{"justify-self":["auto",...le()]}],"align-content":[{content:["normal",...se()]}],"align-items":[{items:[...le(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...le(),{baseline:["","last"]}]}],"place-content":[{"place-content":se()}],"place-items":[{"place-items":[...le(),"baseline"]}],"place-self":[{"place-self":["auto",...le()]}],p:[{p:p()}],px:[{px:p()}],py:[{py:p()}],ps:[{ps:p()}],pe:[{pe:p()}],pt:[{pt:p()}],pr:[{pr:p()}],pb:[{pb:p()}],pl:[{pl:p()}],m:[{m:J()}],mx:[{mx:J()}],my:[{my:J()}],ms:[{ms:J()}],me:[{me:J()}],mt:[{mt:J()}],mr:[{mr:J()}],mb:[{mb:J()}],ml:[{ml:J()}],"space-x":[{"space-x":p()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":p()}],"space-y-reverse":["space-y-reverse"],size:[{size:ce()}],w:[{w:[s,"screen",...ce()]}],"min-w":[{"min-w":[s,"screen","none",...ce()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...ce()]}],h:[{h:["screen","lh",...ce()]}],"min-h":[{"min-h":["screen","lh","none",...ce()]}],"max-h":[{"max-h":["screen","lh",...ce()]}],"font-size":[{text:["base",r,Ge,Ce]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,m,Xt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Yt,_]}],"font-family":[{font:[zo,_,t]}],"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-fractions"],tracking:[{tracking:[o,m,_]}],"line-clamp":[{"line-clamp":[S,"none",m,Xt]}],leading:[{leading:[i,...p()]}],"list-image":[{"list-image":["none",m,_]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",m,_]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:v()}],"text-color":[{text:v()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...fe(),"wavy"]}],"text-decoration-thickness":[{decoration:[S,"from-font","auto",m,Ce]}],"text-decoration-color":[{decoration:v()}],"underline-offset":[{"underline-offset":[S,"auto",m,_]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:p()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",m,_]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",m,_]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:re()}],"bg-repeat":[{bg:Q()}],"bg-size":[{bg:de()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},be,m,_],radial:["",m,_],conic:[be,m,_]},To,Mo]}],"bg-color":[{bg:v()}],"gradient-from-pos":[{from:ye()}],"gradient-via-pos":[{via:ye()}],"gradient-to-pos":[{to:ye()}],"gradient-from":[{from:v()}],"gradient-via":[{via:v()}],"gradient-to":[{to:v()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:H()}],"border-w-x":[{"border-x":H()}],"border-w-y":[{"border-y":H()}],"border-w-s":[{"border-s":H()}],"border-w-e":[{"border-e":H()}],"border-w-t":[{"border-t":H()}],"border-w-r":[{"border-r":H()}],"border-w-b":[{"border-b":H()}],"border-w-l":[{"border-l":H()}],"divide-x":[{"divide-x":H()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":H()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...fe(),"hidden","none"]}],"divide-style":[{divide:[...fe(),"hidden","none"]}],"border-color":[{border:v()}],"border-color-x":[{"border-x":v()}],"border-color-y":[{"border-y":v()}],"border-color-s":[{"border-s":v()}],"border-color-e":[{"border-e":v()}],"border-color-t":[{"border-t":v()}],"border-color-r":[{"border-r":v()}],"border-color-b":[{"border-b":v()}],"border-color-l":[{"border-l":v()}],"divide-color":[{divide:v()}],"outline-style":[{outline:[...fe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[S,m,_]}],"outline-w":[{outline:["",S,Ge,Ce]}],"outline-color":[{outline:v()}],shadow:[{shadow:["","none",f,ft,ut]}],"shadow-color":[{shadow:v()}],"inset-shadow":[{"inset-shadow":["none",l,ft,ut]}],"inset-shadow-color":[{"inset-shadow":v()}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:v()}],"ring-offset-w":[{"ring-offset":[S,Ce]}],"ring-offset-color":[{"ring-offset":v()}],"inset-ring-w":[{"inset-ring":H()}],"inset-ring-color":[{"inset-ring":v()}],"text-shadow":[{"text-shadow":["none",g,ft,ut]}],"text-shadow-color":[{"text-shadow":v()}],opacity:[{opacity:[S,m,_]}],"mix-blend":[{"mix-blend":[...xe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":xe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[S]}],"mask-image-linear-from-pos":[{"mask-linear-from":W()}],"mask-image-linear-to-pos":[{"mask-linear-to":W()}],"mask-image-linear-from-color":[{"mask-linear-from":v()}],"mask-image-linear-to-color":[{"mask-linear-to":v()}],"mask-image-t-from-pos":[{"mask-t-from":W()}],"mask-image-t-to-pos":[{"mask-t-to":W()}],"mask-image-t-from-color":[{"mask-t-from":v()}],"mask-image-t-to-color":[{"mask-t-to":v()}],"mask-image-r-from-pos":[{"mask-r-from":W()}],"mask-image-r-to-pos":[{"mask-r-to":W()}],"mask-image-r-from-color":[{"mask-r-from":v()}],"mask-image-r-to-color":[{"mask-r-to":v()}],"mask-image-b-from-pos":[{"mask-b-from":W()}],"mask-image-b-to-pos":[{"mask-b-to":W()}],"mask-image-b-from-color":[{"mask-b-from":v()}],"mask-image-b-to-color":[{"mask-b-to":v()}],"mask-image-l-from-pos":[{"mask-l-from":W()}],"mask-image-l-to-pos":[{"mask-l-to":W()}],"mask-image-l-from-color":[{"mask-l-from":v()}],"mask-image-l-to-color":[{"mask-l-to":v()}],"mask-image-x-from-pos":[{"mask-x-from":W()}],"mask-image-x-to-pos":[{"mask-x-to":W()}],"mask-image-x-from-color":[{"mask-x-from":v()}],"mask-image-x-to-color":[{"mask-x-to":v()}],"mask-image-y-from-pos":[{"mask-y-from":W()}],"mask-image-y-to-pos":[{"mask-y-to":W()}],"mask-image-y-from-color":[{"mask-y-from":v()}],"mask-image-y-to-color":[{"mask-y-to":v()}],"mask-image-radial":[{"mask-radial":[m,_]}],"mask-image-radial-from-pos":[{"mask-radial-from":W()}],"mask-image-radial-to-pos":[{"mask-radial-to":W()}],"mask-image-radial-from-color":[{"mask-radial-from":v()}],"mask-image-radial-to-color":[{"mask-radial-to":v()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":U()}],"mask-image-conic-pos":[{"mask-conic":[S]}],"mask-image-conic-from-pos":[{"mask-conic-from":W()}],"mask-image-conic-to-pos":[{"mask-conic-to":W()}],"mask-image-conic-from-color":[{"mask-conic-from":v()}],"mask-image-conic-to-color":[{"mask-conic-to":v()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:Q()}],"mask-size":[{mask:de()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",m,_]}],filter:[{filter:["","none",m,_]}],blur:[{blur:gt()}],brightness:[{brightness:[S,m,_]}],contrast:[{contrast:[S,m,_]}],"drop-shadow":[{"drop-shadow":["","none",h,ft,ut]}],"drop-shadow-color":[{"drop-shadow":v()}],grayscale:[{grayscale:["",S,m,_]}],"hue-rotate":[{"hue-rotate":[S,m,_]}],invert:[{invert:["",S,m,_]}],saturate:[{saturate:[S,m,_]}],sepia:[{sepia:["",S,m,_]}],"backdrop-filter":[{"backdrop-filter":["","none",m,_]}],"backdrop-blur":[{"backdrop-blur":gt()}],"backdrop-brightness":[{"backdrop-brightness":[S,m,_]}],"backdrop-contrast":[{"backdrop-contrast":[S,m,_]}],"backdrop-grayscale":[{"backdrop-grayscale":["",S,m,_]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[S,m,_]}],"backdrop-invert":[{"backdrop-invert":["",S,m,_]}],"backdrop-opacity":[{"backdrop-opacity":[S,m,_]}],"backdrop-saturate":[{"backdrop-saturate":[S,m,_]}],"backdrop-sepia":[{"backdrop-sepia":["",S,m,_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":p()}],"border-spacing-x":[{"border-spacing-x":p()}],"border-spacing-y":[{"border-spacing-y":p()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",m,_]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[S,"initial",m,_]}],ease:[{ease:["linear","initial",x,m,_]}],delay:[{delay:[S,m,_]}],animate:[{animate:["none",w,m,_]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[$,m,_]}],"perspective-origin":[{"perspective-origin":G()}],rotate:[{rotate:bt()}],"rotate-x":[{"rotate-x":bt()}],"rotate-y":[{"rotate-y":bt()}],"rotate-z":[{"rotate-z":bt()}],scale:[{scale:vt()}],"scale-x":[{"scale-x":vt()}],"scale-y":[{"scale-y":vt()}],"scale-z":[{"scale-z":vt()}],"scale-3d":["scale-3d"],skew:[{skew:er()}],"skew-x":[{"skew-x":er()}],"skew-y":[{"skew-y":er()}],transform:[{transform:[m,_,"","none","gpu","cpu"]}],"transform-origin":[{origin:G()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:wt()}],"translate-x":[{"translate-x":wt()}],"translate-y":[{"translate-y":wt()}],"translate-z":[{"translate-z":wt()}],"translate-none":["translate-none"],accent:[{accent:v()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:v()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",m,_]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":p()}],"scroll-mx":[{"scroll-mx":p()}],"scroll-my":[{"scroll-my":p()}],"scroll-ms":[{"scroll-ms":p()}],"scroll-me":[{"scroll-me":p()}],"scroll-mt":[{"scroll-mt":p()}],"scroll-mr":[{"scroll-mr":p()}],"scroll-mb":[{"scroll-mb":p()}],"scroll-ml":[{"scroll-ml":p()}],"scroll-p":[{"scroll-p":p()}],"scroll-px":[{"scroll-px":p()}],"scroll-py":[{"scroll-py":p()}],"scroll-ps":[{"scroll-ps":p()}],"scroll-pe":[{"scroll-pe":p()}],"scroll-pt":[{"scroll-pt":p()}],"scroll-pr":[{"scroll-pr":p()}],"scroll-pb":[{"scroll-pb":p()}],"scroll-pl":[{"scroll-pl":p()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",m,_]}],fill:[{fill:["none",...v()]}],"stroke-w":[{stroke:[S,Ge,Ce,Xt]}],stroke:[{stroke:["none",...v()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Ve(...e){return Wo(no(e))}function Io(e,t){for(var r in t)e[r]=t[r];return e}function dn(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function un(e,t){this.props=e,this.context=t}(un.prototype=new ue).isPureReactComponent=!0,un.prototype.shouldComponentUpdate=function(e,t){return dn(this.props,e)||dn(this.state,t)};var fn=b.__b;b.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),fn&&fn(e)};var Oo=b.__e;b.__e=function(e,t,r,n){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t)}Oo(e,t,r,n)};var pn=b.unmount;function hn(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=Io({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return hn(n,t,r)})),e}function _n(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return _n(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function Zt(){this.__u=0,this.o=null,this.__b=null}function mn(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function pt(){this.i=null,this.l=null}b.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),pn&&pn(e)},(Zt.prototype=new ue).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var o=mn(n.__v),i=!1,a=function(){i||(i=!0,r.__R=null,o?o(s):s())};r.__R=a;var s=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=_n(c,c.__c.__P,c.__c.__O)}var d;for(n.setState({__a:n.__b=null});d=n.o.pop();)d.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},Zt.prototype.componentWillUnmount=function(){this.o=[]},Zt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=hn(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&Fe(he,null,e.fallback);return o&&(o.__u&=-33),[Fe(he,null,t.__a?null:e.children),o]};var gn=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};function Bo(e){return this.getChildContext=function(){return e.context},e.children}function Uo(e){var t=this,r=e.h;if(t.componentWillUnmount=function(){$e(null,t.v),t.v=null,t.h=null},t.h&&t.h!==r&&t.componentWillUnmount(),!t.v){for(var n=t.__v;n!==null&&!n.__m&&n.__!==null;)n=n.__;t.h=r,t.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:n.__m},contains:function(){return!0},insertBefore:function(o,i){this.childNodes.push(o),t.h.insertBefore(o,i)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.h.removeChild(o)}}}$e(Fe(Bo,{context:t.context},e.__v),t.v)}function jo(e,t){var r=Fe(Uo,{__v:e,h:t});return r.containerInfo=t,r}(pt.prototype=new ue).__a=function(e){var t=this,r=mn(t.__v),n=t.l.get(e);return n[0]++,function(o){var i=function(){t.props.revealOrder?(n.push(o),gn(t,e,n)):o()};r?r(i):i()}},pt.prototype.render=function(e){this.i=null,this.l=new Map;var t=Qe(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},pt.prototype.componentDidUpdate=pt.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){gn(e,r,t)})};var Fo=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,Ho=/^(?: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]/,Do=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Go=/[A-Z0-9]/g,Vo=typeof document!="undefined",Yo=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};ue.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ue.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var bn=b.event;function Xo(){}function Zo(){return this.cancelBubble}function Jo(){return this.defaultPrevented}b.event=function(e){return bn&&(e=bn(e)),e.persist=Xo,e.isPropagationStopped=Zo,e.isDefaultPrevented=Jo,e.nativeEvent=e};var Ko={enumerable:!1,configurable:!0,get:function(){return this.class}},vn=b.vnode;b.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,o={},i=n.indexOf("-")===-1;for(var a in r){var s=r[a];if(!(a==="value"&&"defaultValue"in r&&s==null||Vo&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var c=a.toLowerCase();a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&s===!0?s="":c==="translate"&&s==="no"?s=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?a="ondblclick":c!=="onchange"||n!=="input"&&n!=="textarea"||Yo(r.type)?c==="onfocus"?a="onfocusin":c==="onblur"?a="onfocusout":Do.test(a)&&(a=c):c=a="oninput":i&&Ho.test(a)?a=a.replace(Go,"-$&").toLowerCase():s===null&&(s=void 0),c==="oninput"&&o[a=c]&&(a="oninputCapture"),o[a]=s}}n=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Qe(r.children).forEach(function(d){d.props.selected=o.value.indexOf(d.props.value)!=-1})),n=="select"&&o.defaultValue!=null&&(o.value=Qe(r.children).forEach(function(d){d.props.selected=o.multiple?o.defaultValue.indexOf(d.props.value)!=-1:o.defaultValue==d.props.value})),r.class&&!r.className?(o.class=r.class,Object.defineProperty(o,"className",Ko)):(r.className&&!r.class||r.class&&r.className)&&(o.class=o.className=r.className),t.props=o}(e),e.$$typeof=Fo,vn&&vn(e)};var wn=b.__r;b.__r=function(e){wn&&wn(e),e.__c};var yn=b.diffed;b.diffed=function(e){yn&&yn(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value)};function xn(){const e=Y(null),t=Y("idle"),r=Y();return ee(()=>()=>{r.current&&clearTimeout(r.current)},[]),{ref:e,animate:(o,i={})=>new Promise(a=>{const s=e.current;if(!s){a();return}const{duration:c=300,easing:d="ease-out",delay:f=0,onComplete:l}=i;t.current="running",s.style.transition=`all ${c}ms ${d} ${f}ms`,Object.entries(o).forEach(([h,y])=>{s.style.setProperty(h,y)});const g=c+f;r.current=setTimeout(()=>{t.current="finished",s.style.transition="",l==null||l(),a()},g)})}}function Qo(e,t){const{ref:r,animate:n}=xn();return ee(()=>{if(!e||!r.current)return;const o=setTimeout(()=>{n({transform:"translateY(0)",opacity:"1"},{duration:1e3,easing:"cubic-bezier(0.34, 1.56, 0.64, 1)",onComplete:t})},500);return()=>clearTimeout(o)},[e]),r}function ei(e,t){const{ref:r,animate:n}=xn();return ee(()=>{r.current&&(e?n({width:`${t+20}px`,paddingLeft:"0.5rem",paddingRight:"0.5rem"},{duration:1200,easing:"cubic-bezier(0.16, 1, 0.3, 1)"}):n({width:"0",paddingLeft:"0",paddingRight:"0"},{duration:300,easing:"cubic-bezier(0.16, 1, 0.3, 1)"}))},[e,t]),r}function ti(e){const t=Y(null),r=Y(null);return ee(()=>{!t.current||!r.current||e&&(t.current.style.transition="opacity 500ms ease-out",t.current.style.opacity="1",r.current.style.transition="transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 200ms ease-out",r.current.style.transform="translateY(0)",r.current.style.opacity="1")},[e]),{overlayRef:t,contentRef:r,close:async()=>{!t.current||!r.current||(t.current.style.transition="opacity 200ms ease-out",t.current.style.opacity="0",r.current.style.transition="transform 200ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms ease-out",r.current.style.transform="translateY(-70px)",r.current.style.opacity="0",await new Promise(o=>setTimeout(o,200)))}}}const ht=Se(!1),ri=Se(null);function ni({workspaceSlug:e,theme:t,base:r="https://www.squelette.app"}){const n=Y(null),o=Y(null),[i,a]=Me(null),s=Y(null),c=Y(!1),{overlayRef:d,contentRef:f,close:l}=ti(ht.value);ee(()=>{const w=document.createElement("div");w.id="squelette-banner-modal-portal",w.style.position="fixed",w.style.inset="0",w.style.zIndex="999999",w.style.pointerEvents="none";const T=w.attachShadow({mode:"open"});return it(T,Nr),document.body.appendChild(w),n.current=w,a(T),()=>{n.current&&(document.body.removeChild(n.current),n.current=null,a(null))}},[]);const g=()=>{var w;if(!(!((w=o.current)!=null&&w.contentWindow)||!s.current))try{const T=new URL(Rt).origin;o.current.contentWindow.postMessage({type:"squelette-identify",payload:s.current},T)}catch(T){console.warn("[BannerModal] Failed to send identity to iframe:",T)}};ee(()=>{const w=Rr();w&&(s.current=w);const T=G=>{var Z;const B=G;s.current=(Z=B.detail)!=null?Z:null,c.current?g():console.info("[BannerModal] Iframe not ready yet, identity will be sent when ready")},U=G=>{var B;((B=G.data)==null?void 0:B.type)==="squelette-iframe-ready"&&(c.current=!0,s.current?g():console.log("[BannerModal] Iframe ready but no identity yet"))};return window.addEventListener("squelette:identity",T),window.addEventListener("message",U),()=>{window.removeEventListener("squelette:identity",T),window.removeEventListener("message",U)}},[]);const h=()=>{console.log("[BannerModal] Iframe onLoad event fired")},y=async()=>{await l(),ht.value=!1},$=w=>{w.target===d.current&&y()};if(!i)return null;const q=Pt(()=>k("iframe",{ref:o,className:"w-full h-full border-none outline-none",src:`${r}/widget/${e}/changelog/last?theme=${t}`,onLoad:h}),[]),x=k("div",{ref:d,className:Ve("fixed inset-0 backdrop-blur-sm flex items-center justify-center",t==="dark"?"bg-black/30":"bg-white/30"),style:{pointerEvents:ht.value?"auto":"none",opacity:0},onClick:$,children:k("div",{ref:f,className:Ve("rounded-[32px] border-[3px] shadow-lg max-w-lg w-full mx-4 p-0 outline-none relative overflow-hidden",t==="light"?"border-[#f0f0f0]":"border-[#222222]"),style:{opacity:0,transform:"translateY(-70px)",height:650},children:q})});return jo(x,i)}const kn=()=>{try{return localStorage.getItem("squelette-enable-cache")!=="false"}catch{return!0}},oi=5*60*1e3,Sn="squelette_banner_last_ticket",En=48,ne=Se(null),_t=Se(!1),Jt=Se(!0);function ii({workspaceSlug:e="squelette",theme:t,base:r="https://www.squelette.app"}){const n=Y(null),o=Y(null),[i,a]=Me(96),s=Qo(!!ne.value,()=>{_t.value=!0});ee(()=>{if(!document.getElementById("squelette-shake-animation")){const l=document.createElement("style");l.id="squelette-shake-animation",l.textContent=`
|
|
163
|
+
`,$r=new Map,Dn=typeof Document!="undefined"&&"adoptedStyleSheets"in Document.prototype;function Ve(e,t){var n;if(!t)return;if(Dn){let o=(n=$r.get(t))!=null?n:null;o||(o=new CSSStyleSheet,o.replaceSync(t),$r.set(t,o)),e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return}const r=document.createElement("style");r.textContent=t,e.appendChild(r)}function Gn(e){Ve(e,Hn)}function Vn(e,t,r){r?e.hasAttribute(t)||e.setAttribute(t,""):e.hasAttribute(t)&&e.removeAttribute(t)}function Lr(e){return e?e.toLowerCase():"en"}function Pr(e){return e==="light"||e==="dark"?e:"auto"}function lt(e){return e==="roadmap"||e==="changelog"?e:"feedback"}function Mr(e){if(!e.project)return null;const t=new URLSearchParams({locale:e.locale});e.theme&&e.theme!=="auto"&&t.set("theme",e.theme),e.signature&&t.set("signature",e.signature),e.token&&t.set("token",e.token);const r=e.apiBase.replace(/\/$/,"");switch(e.view){case"roadmap":return e.board&&t.set("board",e.board),`${r}/widget/${encodeURIComponent(e.project)}/roadmap?${t.toString()}`;case"changelog":return`${r}/widget/${encodeURIComponent(e.project)}/changelog?${t.toString()}`;case"feedback":default:return e.board&&t.set("board",e.board),`${r}/widget/${encodeURIComponent(e.project)}/feedback?${t.toString()}`}}function Yn(e,t){const r=window.matchMedia("(prefers-color-scheme: dark)"),n=o=>{e.dataset.theme=o?"dark":"light"};if(t==="auto"){n(r.matches);const o=i=>n(i.matches);return r.addEventListener("change",o),()=>r.removeEventListener("change",o)}return e.dataset.theme=t,()=>{}}const Bt={feedback:{width:340,height:200},roadmap:{width:400,height:420},changelog:{width:400,height:520}},Wt={width:400,height:540};function It(e,t){var o;const{width:r,height:n}=(o=Bt[t])!=null?o:Wt;e.style.setProperty("--sq-panel-width",`${r}px`),e.style.setProperty("--sq-panel-height",`${n}px`)}function Xn(e){const t=document.body.style;{const r={overflow:t.overflow,paddingRight:t.paddingRight},n=window.innerWidth-document.documentElement.clientWidth;return t.overflow="hidden",n>0&&(t.paddingRight=`${n}px`),()=>{t.overflow=r.overflow,t.paddingRight=r.paddingRight}}}class zr extends HTMLElement{constructor(){super();Y(this,A,{project:null,board:null,theme:"auto",locale:"en",apiBase:Ot,label:at,view:"feedback"});Y(this,xe,!1);Y(this,Ie,!1);Y(this,ne,!1);Y(this,ke);Y(this,Le);Y(this,Fe,null);Y(this,Ke,null);Y(this,te,null);Y(this,ie,null);Y(this,se,null);Y(this,K,null);Y(this,Qe,null);Y(this,Ue,new jn);Y(this,be,null);Z(this,"ensureFrameModule",async()=>{var r,n,o;if(!(h(this,Fe)||h(this,Ie))){L(this,Ie,!0),this.render();try{(r=h(this,Ke))!=null||L(this,Ke,Promise.resolve().then(()=>wi));const i=await h(this,Ke),s=(n=i.WidgetFrame)!=null?n:i.default;if(!s)throw new Error("[SqueletteWidget] Widget app missing export");L(this,Fe,s),Ve(h(this,ke),(o=i.stylesText)!=null?o:_r)}catch(i){console.error("[SqueletteWidget] Failed to load widget app",i)}finally{L(this,Ie,!1),this.render()}}});Z(this,"handleFrameLoaded",()=>{L(this,ne,!0),L(this,be,h(this,ke).querySelector("iframe")),this.postIdentityToFrame(),this.render(),this.dispatchEvent(new CustomEvent("squelette:frame-loaded"))});L(this,ke,this.attachShadow({mode:"open"})),L(this,Le,document.createElement("div")),Gn(h(this,ke)),h(this,ke).appendChild(h(this,Le)),this.render()}static get observedAttributes(){return["project","board","theme","locale","token","signature","label","view","open","api-base"]}connectedCallback(){var n,o,i;h(this,A).project=this.getAttribute("project"),h(this,A).board=this.getAttribute("board"),h(this,A).theme=Pr(this.getAttribute("theme")),h(this,A).locale=Lr(this.getAttribute("locale")),h(this,A).token=(n=this.getAttribute("token"))!=null?n:void 0,h(this,A).signature=(o=this.getAttribute("signature"))!=null?o:void 0,h(this,A).label=(i=this.getAttribute("label"))!=null?i:at,h(this,A).view=lt(this.getAttribute("view"));const r=this.getAttribute("api-base");h(this,A).apiBase=r&&r.length>0?r:h(this,A).apiBase,this.applyTheme(h(this,A).theme),It(this,h(this,A).view),this.hasAttribute("open")&&this.setOpen(!0,"attribute"),L(this,se,s=>{if(!h(this,A).project||!s.data||typeof s.data!="object")return;try{const c=new URL(h(this,A).apiBase).origin;if(s.origin!==c)return}catch{return}const a=s.data;if(a.type!=="squelette:submit")return;const l=a.payload;l&&h(this,Ue).emit("submit",{source:"app",payload:l})}),window.addEventListener("message",h(this,se)),L(this,ie,s=>{var l;L(this,Qe,(l=s.detail)!=null?l:null),this.postIdentityToFrame()}),window.addEventListener("squelette:identity",h(this,ie)),this.render()}disconnectedCallback(){h(this,se)&&(window.removeEventListener("message",h(this,se)),L(this,se,null)),h(this,te)&&(h(this,te).call(this),L(this,te,null)),h(this,ie)&&(window.removeEventListener("squelette:identity",h(this,ie)),L(this,ie,null)),h(this,K)&&(h(this,K).call(this),L(this,K,null))}attributeChangedCallback(r,n,o){if(r==="open"){if(h(this,xe)===(o!==null))return;this.setOpen(o!==null,"attribute");return}switch(r){case"project":h(this,A).project=o,L(this,ne,!1);break;case"board":h(this,A).board=o,L(this,ne,!1);break;case"locale":h(this,A).locale=Lr(o),L(this,ne,!1);break;case"theme":h(this,A).theme=Pr(o),this.applyTheme(h(this,A).theme);break;case"token":h(this,A).token=o!=null?o:void 0,L(this,ne,!1);break;case"signature":h(this,A).signature=o!=null?o:void 0,L(this,ne,!1);break;case"label":h(this,A).label=o!=null?o:at;break;case"view":h(this,A).view=lt(o),L(this,ne,!1),It(this,h(this,A).view);break;case"api-base":h(this,A).apiBase=o&&o.length>0?o:Ot,L(this,ne,!1);break}r!=="open"&&this.render()}async open(){await this.setOpen(!0,"api")}async close(){await this.setOpen(!1,"api")}async toggle(){await this.setOpen(!h(this,xe),"api")}on(r,n){return r==="submit"&&!h(this,A).project&&console.warn("[SqueletteWidget] Cannot listen for submit before project is set."),h(this,Ue).on(r,n)}async destroy(){_e(null,h(this,Le)),h(this,se)&&(window.removeEventListener("message",h(this,se)),L(this,se,null)),h(this,te)&&(h(this,te).call(this),L(this,te,null)),h(this,ie)&&(window.removeEventListener("squelette:identity",h(this,ie)),L(this,ie,null)),this.parentNode&&this.parentNode.removeChild(this),h(this,K)&&(h(this,K).call(this),L(this,K,null))}render(){const r=Mr(h(this,A));_e(y(Fn,{open:h(this,xe),label:h(this,A).label,iframeSrc:r,FrameComponent:h(this,Fe),ensureFrame:this.ensureFrameModule,onOpen:()=>void this.setOpen(!0,"api"),onClose:()=>void this.setOpen(!1,"api"),onFrameLoaded:this.handleFrameLoaded}),h(this,Le))}async setOpen(r,n){if(r&&!h(this,A).project){console.warn("[SqueletteWidget] Missing `project` attribute or option.");return}if(h(this,xe)!==r){if(L(this,xe,r),Vn(this,"open",r),r)h(this,K)||L(this,K,Xn()),It(this,h(this,A).view);else{h(this,K)&&(h(this,K).call(this),L(this,K,null)),L(this,ne,!1);const o=Mr(h(this,A));o&&h(this,be)&&(h(this,be).src=o)}this.render(),h(this,Ue).emit(r?"open":"close",{source:n})}}applyTheme(r){h(this,te)&&(h(this,te).call(this),L(this,te,null)),L(this,te,Yn(this,r))}postIdentityToFrame(){if(!(!h(this,be)||!h(this,be).contentWindow))try{const r=new URL(h(this,A).apiBase).origin;h(this,be).contentWindow.postMessage({type:"squelette-identify",payload:h(this,Qe)},r)}catch(r){console.warn("[SqueletteWidget] Unable to forward identity payload",r)}}}A=new WeakMap,xe=new WeakMap,Ie=new WeakMap,ne=new WeakMap,ke=new WeakMap,Le=new WeakMap,Fe=new WeakMap,Ke=new WeakMap,te=new WeakMap,ie=new WeakMap,se=new WeakMap,K=new WeakMap,Qe=new WeakMap,Ue=new WeakMap,be=new WeakMap;function Ft(){customElements.get(Rt)||customElements.define(Rt,zr)}let ct=null;function Tr(e){window.dispatchEvent(new CustomEvent("squelette:identity",{detail:e}))}function Rr(e){if(!e||!e.userId||!e.email||!e.signature){console.error("[SqueletteWidget] Invalid identification payload.",e);return}ct=e,Tr(ct)}function Nr(){ct=null,Tr(null)}function Or(){return ct}function Ut(e,t,r){const n=Math.max(t,r);return Math.min(Math.max(e,t),n)}function Zn(e,t){var F,V;const r=[],n=(F=t.position)!=null?F:"top",o=(V=t.overlayBlur)!=null?V:!0,i=12,s=n.startsWith("fixed-"),a=/^fixed-(top|center|bottom)-(left|center|right)$/;let l=null,c=!1,u=!1,d=null;const g=()=>{e.removeAttribute("data-anchor"),e.removeAttribute("data-anchor-origin"),e.removeAttribute("data-fixed-vertical"),e.removeAttribute("data-fixed-horizontal"),e.style.removeProperty("--sq-offset-top"),e.style.removeProperty("--sq-offset-left"),e.style.removeProperty("--sq-offset-bottom"),e.style.removeProperty("--sq-offset-right")},f=()=>{var Se;if(!c||!l)return;const p=l.getBoundingClientRect(),P=window.innerWidth,O=window.innerHeight,T=lt(e.getAttribute("view")),j=(Se=Bt[T])!=null?Se:Wt,ae=Math.min(j.width,P-i*2),le=Math.min(j.height,O-i*2),ce=Math.max(i,P-ae-i),Q=Math.max(i,O-le-i),de=p.top-i,w=O-p.bottom-i;let oe=p.bottom+i,re=p.left+p.width/2-ae/2,ue="top";if(n==="left"||n==="right"){let M=n==="right";const H=p.right+i,he=p.left-ae-i,qe=H+ae<=P-i,B=he>=i;M&&!qe&&B?M=!1:!M&&!B&&qe&&(M=!0),M?(re=H,ue="left"):(re=he,ue="right");const vt=p.top+p.height/2-le/2;oe=Ut(vt,i,Q)}else{let M=n==="bottom";n!=="top"&&n!=="bottom"&&(M=w>=de);const H=p.bottom+i,he=p.top-le-i,qe=H+le<=O-i,B=he>=i;M&&!qe&&B?M=!1:!M&&!B&&qe&&(M=!0),M?(oe=H,ue="top"):(oe=he,ue="bottom"),re=p.left+p.width/2-ae/2}oe=Ut(oe,i,Q),re=Ut(re,i,ce),e.dataset.anchor="button",e.dataset.anchorOrigin=ue,e.style.setProperty("--sq-offset-top",`${Math.round(oe)}px`),e.style.setProperty("--sq-offset-left",`${Math.round(re)}px`),e.style.setProperty("--sq-offset-bottom","auto"),e.style.setProperty("--sq-offset-right","auto")},v=()=>{c&&requestAnimationFrame(f)},q=()=>{u||(window.addEventListener("resize",v),window.addEventListener("scroll",v,!0),u=!0)},k=()=>{u&&(window.removeEventListener("resize",v),window.removeEventListener("scroll",v,!0),u=!1)},x=()=>{!l||s||(c=!0,e.dataset.anchor="button",e.style.setProperty("--sq-offset-bottom","auto"),e.style.setProperty("--sq-offset-right","auto"),q(),f(),requestAnimationFrame(f))},C=()=>{c=!1,k()};r.push(()=>{C(),g()}),o||(e.dataset.overlayBlur="off",r.push(()=>{delete e.dataset.overlayBlur}));const $=()=>{var M;if(!s)return;const p=n.match(a);if(!p){console.warn(`[SqueletteWidget] Unsupported position value: ${n}`);return}const[,P,O]=p,T=24,j=lt(e.getAttribute("view")),ae=(M=Bt[j])!=null?M:Wt,le=window.innerWidth,ce=window.innerHeight,Q=Math.min(ae.width,le-T*2),de=Math.min(ae.height,ce-T*2);let w="auto",oe="auto",re="auto",ue="auto";switch(P){case"top":w=`${T}px`;break;case"bottom":oe=`${T}px`;break;case"center":w=`${Math.max(T,Math.round((ce-de)/2))}px`;break}switch(O){case"left":re=`${T}px`;break;case"right":ue=`${T}px`;break;case"center":re=`${Math.max(T,Math.round((le-Q)/2))}px`;break}e.dataset.anchor="fixed";const Se=P==="center"?O==="center"?"bottom":O:P;e.dataset.anchorOrigin=Se,e.dataset.fixedVertical=P,e.dataset.fixedHorizontal=O,e.style.setProperty("--sq-offset-top",w),e.style.setProperty("--sq-offset-bottom",oe),e.style.setProperty("--sq-offset-left",re),e.style.setProperty("--sq-offset-right",ue)};if(s&&$(),t.buttonSelector)if(l=document.querySelector(t.buttonSelector),l){const p=l;e.dataset.launcherHidden="true",r.push(()=>{delete e.dataset.launcherHidden});const P=T=>{T.preventDefault(),T.stopPropagation(),e.toggle()};p.addEventListener("click",P,!1),r.push(()=>p.removeEventListener("click",P,!1));const O=()=>{s?$():requestAnimationFrame(f)};e.addEventListener("squelette:frame-loaded",O),r.push(()=>e.removeEventListener("squelette:frame-loaded",O)),d=T=>{if(!e.hasAttribute("open"))return;const j=T.target;!e.contains(j)&&!p.contains(j)&&e.close()},document.addEventListener("click",d,!0),r.push(()=>{d&&(document.removeEventListener("click",d,!0),d=null)})}else console.warn(`[SqueletteWidget] Button selector not found: ${t.buttonSelector}`);const R=e.on("open",()=>{s?$():l&&x()}),G=e.on("close",()=>{C()});if(r.push(R,G),t.onOpenChange){const p=e.on("open",()=>{var O;return(O=t.onOpenChange)==null?void 0:O.call(t,!0)}),P=e.on("close",()=>{var O;return(O=t.onOpenChange)==null?void 0:O.call(t,!1)});r.push(p,P)}if(t.onLoad){const p=()=>{var P;(P=t.onLoad)==null||P.call(t),e.removeEventListener("squelette:frame-loaded",p)};e.addEventListener("squelette:frame-loaded",p),r.push(()=>e.removeEventListener("squelette:frame-loaded",p))}return r}const Br='*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0}.mx-4{margin-left:1rem;margin-right:1rem}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.size-4{width:1rem;height:1rem}.h-6{height:1.5rem}.h-\\[64px\\]{height:64px}.h-full{height:100%}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-\\[400px\\]{max-width:400px}.max-w-lg{max-width:32rem}.shrink-0{flex-shrink:0}.origin-center{transform-origin:center}.translate-y-0\\.5{--tw-translate-y: .125rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.whitespace-nowrap{white-space:nowrap}.rounded-\\[32px\\]{border-radius:32px}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-0{border-width:0px}.border-\\[3px\\]{border-width:3px}.border-none{border-style:none}.border-\\[\\#222222\\]{--tw-border-opacity: 1;border-color:rgb(34 34 34 / var(--tw-border-opacity, 1))}.border-\\[\\#f0f0f0\\]{--tw-border-opacity: 1;border-color:rgb(240 240 240 / var(--tw-border-opacity, 1))}.bg-black\\/30{background-color:#0000004d}.bg-transparent{background-color:transparent}.bg-white\\/30{background-color:#ffffff4d}.p-0{padding:0}.p-1{padding:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.align-baseline{vertical-align:baseline}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-filter{backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.will-change-transform{will-change:transform}:host{display:block;width:100%;contain:content;--squelette-banner-bg: #ffffff;--squelette-banner-border: #e5e7eb;--squelette-banner-text: #111827;--squelette-banner-badge-bg: #7f3cec;--squelette-banner-badge-text: #ffffff;--squelette-banner-button-hover: .7}';var Jn=Symbol.for("preact-signals");function dt(){if(ve>1)ve--;else{for(var e,t=!1;Ye!==void 0;){var r=Ye;for(Ye=void 0,jt++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Fr(r))try{r.c()}catch(o){t||(e=o,t=!0)}r=n}}if(jt=0,ve--,t)throw e}}function Kn(e){if(ve>0)return e();ve++;try{return e()}finally{dt()}}var z=void 0;function Wr(e){var t=z;z=void 0;try{return e()}finally{z=t}}var Ye=void 0,ve=0,jt=0,ut=0;function Ir(e){if(z!==void 0){var t=e.n;if(t===void 0||t.t!==z)return t={i:0,S:e,p:z.s,n:void 0,t:z,e:void 0,x:void 0,r:t},z.s!==void 0&&(z.s.n=t),z.s=t,e.n=t,32&z.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=z.s,t.n=void 0,z.s.n=t,z.s=t),t}}function D(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}D.prototype.brand=Jn,D.prototype.h=function(){return!0},D.prototype.S=function(e){var t=this,r=this.t;r!==e&&e.e===void 0&&(e.x=r,this.t=e,r!==void 0?r.e=e:Wr(function(){var n;(n=t.W)==null||n.call(t)}))},D.prototype.U=function(e){var t=this;if(this.t!==void 0){var r=e.e,n=e.x;r!==void 0&&(r.x=n,e.e=void 0),n!==void 0&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,n===void 0&&Wr(function(){var o;(o=t.Z)==null||o.call(t)}))}},D.prototype.subscribe=function(e){var t=this;return Xe(function(){var r=t.value,n=z;z=void 0;try{e(r)}finally{z=n}},{name:"sub"})},D.prototype.valueOf=function(){return this.value},D.prototype.toString=function(){return this.value+""},D.prototype.toJSON=function(){return this.value},D.prototype.peek=function(){var e=z;z=void 0;try{return this.value}finally{z=e}},Object.defineProperty(D.prototype,"value",{get:function(){var e=Ir(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(jt>100)throw new Error("Cycle detected");this.v=e,this.i++,ut++,ve++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{dt()}}}});function Ce(e,t){return new D(e,t)}function Fr(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Ur(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function jr(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function Ae(e,t){D.call(this,void 0),this.x=e,this.s=void 0,this.g=ut-1,this.f=4,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}Ae.prototype=new D,Ae.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===ut))return!0;if(this.g=ut,this.f|=1,this.i>0&&!Fr(this))return this.f&=-2,!0;var e=z;try{Ur(this),z=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return z=e,jr(this),this.f&=-2,!0},Ae.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}D.prototype.S.call(this,e)},Ae.prototype.U=function(e){if(this.t!==void 0&&(D.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}},Ae.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}},Object.defineProperty(Ae.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Ir(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function Hr(e,t){return new Ae(e,t)}function Dr(e){var t=e.u;if(e.u=void 0,typeof t=="function"){ve++;var r=z;z=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,Ht(e),n}finally{z=r,dt()}}}function Ht(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Dr(e)}function Qn(e){if(z!==this)throw new Error("Out-of-order effect");jr(this),z=e,this.f&=-2,8&this.f&&Ht(this),dt()}function Te(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=t==null?void 0:t.name}Te.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}},Te.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Dr(this),Ur(this),ve++;var e=z;return z=this,Qn.bind(this,e)},Te.prototype.N=function(){2&this.f||(this.f|=2,this.o=Ye,Ye=this)},Te.prototype.d=function(){this.f|=8,1&this.f||Ht(this)},Te.prototype.dispose=function(){this.d()};function Xe(e,t){var r=new Te(e,t);try{r.c()}catch(o){throw r.d(),o}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}var Gr,Dt,Vr=[];Xe(function(){Gr=this.N})();function Re(e,t){_[e]=t.bind(null,_[e]||function(){})}function ft(e){Dt&&Dt(),Dt=e&&e.S()}function Yr(e){var t=this,r=e.data,n=to(r);n.value=r;var o=Mt(function(){for(var a=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=Hr(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),u=Hr(function(){return!Array.isArray(c.value)&&!nr(c.value)}),d=Xe(function(){if(this.N=Xr,u.value){var f=c.value;a.__v&&a.__v.__e&&a.__v.__e.nodeType===3&&(a.__v.__e.data=f)}}),g=t.__$u.d;return t.__$u.d=function(){d(),g.call(this)},[u,c]},[]),i=o[0],s=o[1];return i.value?s.peek():s.value}Yr.displayName="ReactiveTextNode",Object.defineProperties(D.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Yr},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),Re("__b",function(e,t){if(typeof t.type=="function"&&typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),typeof t.type=="string"){var r,n=t.props;for(var o in n)if(o!=="children"){var i=n[o];i instanceof D&&(r||(t.__np=r={}),r[o]=i,n[o]=i.peek())}}e(t)}),Re("__r",function(e,t){if(typeof t.type=="function"&&typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.enterComponent(t),t.type!==ge){ft();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(o){var i;return Xe(function(){i=this}),i.c=function(){n.__$f|=1,n.setState({})},i}())),ft(r)}e(t)}),Re("__e",function(e,t,r,n){typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),ft(),e(t,r,n)}),Re("diffed",function(e,t){typeof t.type=="function"&&typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),ft();var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,o=t.props;if(n){var i=r.U;if(i)for(var s in i){var a=i[s];a!==void 0&&!(s in n)&&(a.d(),i[s]=void 0)}else i={},r.U=i;for(var l in n){var c=i[l],u=n[l];c===void 0?(c=eo(r,l,u,o),i[l]=c):c.o(u,o)}}}e(t)});function eo(e,t,r,n){var o=t in e&&e.ownerSVGElement===void 0,i=Ce(r);return{o:function(s,a){i.value=s,n=a},d:Xe(function(){this.N=Xr;var s=i.value.value;n[t]!==s&&(n[t]=s,o?e[t]=s:s?e.setAttribute(t,s):e.removeAttribute(t))})}}Re("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var o in n){var i=n[o];i&&i.d()}}}}else{var s=t.__c;if(s){var a=s.__$u;a&&(s.__$u=void 0,a.d())}}e(t)}),Re("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)}),fe.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u,n=r&&r.s!==void 0;for(var o in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var i=2&this.__$f;if(!(n||i||4&this.__$f)||1&this.__$f)return!0}else if(!(n||4&this.__$f)||3&this.__$f)return!0;for(var s in e)if(s!=="__source"&&e[s]!==this.props[s])return!0;for(var a in this.props)if(!(a in e))return!0;return!1};function to(e,t){return ze(function(){return Ce(e,t)})[0]}var ro=function(e){queueMicrotask(function(){queueMicrotask(e)})};function no(){Kn(function(){for(var e;e=Vr.shift();)Gr.call(e)})}function Xr(){Vr.push(this)===1&&(_.requestAnimationFrame||ro)(no)}function Zr(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Zr(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function oo(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Zr(e))&&(n&&(n+=" "),n+=t);return n}const Gt="-",io=e=>{const t=ao(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const a=s.split(Gt);return a[0]===""&&a.length!==1&&a.shift(),Jr(a,t)||so(s)},getConflictingClassGroupIds:(s,a)=>{const l=r[s]||[];return a&&n[s]?[...l,...n[s]]:l}}},Jr=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Jr(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Gt);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId},Kr=/^\[(.+)\]$/,so=e=>{if(Kr.test(e)){const t=Kr.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ao=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)Vt(r[o],n,o,t);return n},Vt=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Qr(t,o);i.classGroupId=r;return}if(typeof o=="function"){if(lo(o)){Vt(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{Vt(s,Qr(t,i),r,n)})})},Qr=(e,t)=>{let r=e;return t.split(Gt).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},lo=e=>e.isThemeGetter,co=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(i,s)=>{r.set(i,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let s=r.get(i);if(s!==void 0)return s;if((s=n.get(i))!==void 0)return o(i,s),s},set(i,s){r.has(i)?r.set(i,s):o(i,s)}}},Yt="!",Xt=":",uo=Xt.length,fo=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const i=[];let s=0,a=0,l=0,c;for(let v=0;v<o.length;v++){let q=o[v];if(s===0&&a===0){if(q===Xt){i.push(o.slice(l,v)),l=v+uo;continue}if(q==="/"){c=v;continue}}q==="["?s++:q==="]"?s--:q==="("?a++:q===")"&&a--}const u=i.length===0?o:o.substring(l),d=ho(u),g=d!==u,f=c&&c>l?c-l:void 0;return{modifiers:i,hasImportantModifier:g,baseClassName:d,maybePostfixModifierPosition:f}};if(t){const o=t+Xt,i=n;n=s=>s.startsWith(o)?i(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},ho=e=>e.endsWith(Yt)?e.substring(0,e.length-1):e.startsWith(Yt)?e.substring(1):e,po=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let i=[];return n.forEach(s=>{s[0]==="["||t[s]?(o.push(...i.sort(),s),i=[]):i.push(s)}),o.push(...i.sort()),o}},go=e=>({cache:co(e.cacheSize),parseClassName:fo(e),sortModifiers:po(e),...io(e)}),mo=/\s+/,bo=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(mo);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:d,modifiers:g,hasImportantModifier:f,baseClassName:v,maybePostfixModifierPosition:q}=r(u);if(d){l=u+(l.length>0?" "+l:l);continue}let k=!!q,x=n(k?v.substring(0,q):v);if(!x){if(!k){l=u+(l.length>0?" "+l:l);continue}if(x=n(v),!x){l=u+(l.length>0?" "+l:l);continue}k=!1}const C=i(g).join(":"),$=f?C+Yt:C,R=$+x;if(s.includes(R))continue;s.push(R);const G=o(x,k);for(let F=0;F<G.length;++F){const V=G[F];s.push($+V)}l=u+(l.length>0?" "+l:l)}return l};function _o(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=en(t))&&(n&&(n+=" "),n+=r);return n}const en=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=en(e[n]))&&(r&&(r+=" "),r+=t);return r};function vo(e,...t){let r,n,o,i=s;function s(l){const c=t.reduce((u,d)=>d(u),e());return r=go(c),n=r.cache.get,o=r.cache.set,i=a,a(l)}function a(l){const c=n(l);if(c)return c;const u=bo(l,r);return o(l,u),u}return function(){return i(_o.apply(null,arguments))}}const U=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},tn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,rn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,wo=/^\d+\/\d+$/,yo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xo=/\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$/,ko=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,So=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ne=e=>wo.test(e),S=e=>!!e&&!Number.isNaN(Number(e)),we=e=>!!e&&Number.isInteger(Number(e)),Zt=e=>e.endsWith("%")&&S(e.slice(0,-1)),me=e=>yo.test(e),Eo=()=>!0,Co=e=>xo.test(e)&&!ko.test(e),nn=()=>!1,Ao=e=>So.test(e),$o=e=>qo.test(e),Lo=e=>!m(e)&&!b(e),Po=e=>Oe(e,cn,nn),m=e=>tn.test(e),$e=e=>Oe(e,dn,Co),Jt=e=>Oe(e,No,S),on=e=>Oe(e,an,nn),Mo=e=>Oe(e,ln,$o),ht=e=>Oe(e,un,Ao),b=e=>rn.test(e),Ze=e=>Be(e,dn),zo=e=>Be(e,Oo),sn=e=>Be(e,an),To=e=>Be(e,cn),Ro=e=>Be(e,ln),pt=e=>Be(e,un,!0),Oe=(e,t,r)=>{const n=tn.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Be=(e,t,r=!1)=>{const n=rn.exec(e);return n?n[1]?t(n[1]):r:!1},an=e=>e==="position"||e==="percentage",ln=e=>e==="image"||e==="url",cn=e=>e==="length"||e==="size"||e==="bg-size",dn=e=>e==="length",No=e=>e==="number",Oo=e=>e==="family-name",un=e=>e==="shadow",Bo=vo(()=>{const e=U("color"),t=U("font"),r=U("text"),n=U("font-weight"),o=U("tracking"),i=U("leading"),s=U("breakpoint"),a=U("container"),l=U("spacing"),c=U("radius"),u=U("shadow"),d=U("inset-shadow"),g=U("text-shadow"),f=U("drop-shadow"),v=U("blur"),q=U("perspective"),k=U("aspect"),x=U("ease"),C=U("animate"),$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],G=()=>[...R(),b,m],F=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],p=()=>[b,m,l],P=()=>[Ne,"full","auto",...p()],O=()=>[we,"none","subgrid",b,m],T=()=>["auto",{span:["full",we,b,m]},we,b,m],j=()=>[we,"auto",b,m],ae=()=>["auto","min","max","fr",b,m],le=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ce=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...p()],de=()=>[Ne,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...p()],w=()=>[e,b,m],oe=()=>[...R(),sn,on,{position:[b,m]}],re=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ue=()=>["auto","cover","contain",To,Po,{size:[b,m]}],Se=()=>[Zt,Ze,$e],M=()=>["","none","full",c,b,m],H=()=>["",S,Ze,$e],he=()=>["solid","dashed","dotted","double"],qe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>[S,Zt,sn,on],vt=()=>["","none",v,b,m],wt=()=>["none",S,b,m],yt=()=>["none",S,b,m],rr=()=>[S,b,m],xt=()=>[Ne,"full",...p()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[me],breakpoint:[me],color:[Eo],container:[me],"drop-shadow":[me],ease:["in","out","in-out"],font:[Lo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[me],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[me],shadow:[me],spacing:["px",S],text:[me],"text-shadow":[me],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ne,m,b,k]}],container:["container"],columns:[{columns:[S,m,b,a]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"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"],sr:["sr-only","not-sr-only"],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:G()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{start:P()}],end:[{end:P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[we,"auto",b,m]}],basis:[{basis:[Ne,"full","auto",a,...p()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[S,Ne,"auto","initial","none",m]}],grow:[{grow:["",S,b,m]}],shrink:[{shrink:["",S,b,m]}],order:[{order:[we,"first","last","none",b,m]}],"grid-cols":[{"grid-cols":O()}],"col-start-end":[{col:T()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":O()}],"row-start-end":[{row:T()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ae()}],"auto-rows":[{"auto-rows":ae()}],gap:[{gap:p()}],"gap-x":[{"gap-x":p()}],"gap-y":[{"gap-y":p()}],"justify-content":[{justify:[...le(),"normal"]}],"justify-items":[{"justify-items":[...ce(),"normal"]}],"justify-self":[{"justify-self":["auto",...ce()]}],"align-content":[{content:["normal",...le()]}],"align-items":[{items:[...ce(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ce(),{baseline:["","last"]}]}],"place-content":[{"place-content":le()}],"place-items":[{"place-items":[...ce(),"baseline"]}],"place-self":[{"place-self":["auto",...ce()]}],p:[{p:p()}],px:[{px:p()}],py:[{py:p()}],ps:[{ps:p()}],pe:[{pe:p()}],pt:[{pt:p()}],pr:[{pr:p()}],pb:[{pb:p()}],pl:[{pl:p()}],m:[{m:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"space-x":[{"space-x":p()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":p()}],"space-y-reverse":["space-y-reverse"],size:[{size:de()}],w:[{w:[a,"screen",...de()]}],"min-w":[{"min-w":[a,"screen","none",...de()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...de()]}],h:[{h:["screen","lh",...de()]}],"min-h":[{"min-h":["screen","lh","none",...de()]}],"max-h":[{"max-h":["screen","lh",...de()]}],"font-size":[{text:["base",r,Ze,$e]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,b,Jt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Zt,m]}],"font-family":[{font:[zo,m,t]}],"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-fractions"],tracking:[{tracking:[o,b,m]}],"line-clamp":[{"line-clamp":[S,"none",b,Jt]}],leading:[{leading:[i,...p()]}],"list-image":[{"list-image":["none",b,m]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",b,m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:w()}],"text-color":[{text:w()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:[S,"from-font","auto",b,$e]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[S,"auto",b,m]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:p()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",b,m]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",b,m]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:re()}],"bg-size":[{bg:ue()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},we,b,m],radial:["",b,m],conic:[we,b,m]},Ro,Mo]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:Se()}],"gradient-via-pos":[{via:Se()}],"gradient-to-pos":[{to:Se()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:H()}],"border-w-x":[{"border-x":H()}],"border-w-y":[{"border-y":H()}],"border-w-s":[{"border-s":H()}],"border-w-e":[{"border-e":H()}],"border-w-t":[{"border-t":H()}],"border-w-r":[{"border-r":H()}],"border-w-b":[{"border-b":H()}],"border-w-l":[{"border-l":H()}],"divide-x":[{"divide-x":H()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":H()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...he(),"hidden","none"]}],"divide-style":[{divide:[...he(),"hidden","none"]}],"border-color":[{border:w()}],"border-color-x":[{"border-x":w()}],"border-color-y":[{"border-y":w()}],"border-color-s":[{"border-s":w()}],"border-color-e":[{"border-e":w()}],"border-color-t":[{"border-t":w()}],"border-color-r":[{"border-r":w()}],"border-color-b":[{"border-b":w()}],"border-color-l":[{"border-l":w()}],"divide-color":[{divide:w()}],"outline-style":[{outline:[...he(),"none","hidden"]}],"outline-offset":[{"outline-offset":[S,b,m]}],"outline-w":[{outline:["",S,Ze,$e]}],"outline-color":[{outline:w()}],shadow:[{shadow:["","none",u,pt,ht]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":["none",d,pt,ht]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[S,$e]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":H()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":["none",g,pt,ht]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[S,b,m]}],"mix-blend":[{"mix-blend":[...qe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":qe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[S]}],"mask-image-linear-from-pos":[{"mask-linear-from":B()}],"mask-image-linear-to-pos":[{"mask-linear-to":B()}],"mask-image-linear-from-color":[{"mask-linear-from":w()}],"mask-image-linear-to-color":[{"mask-linear-to":w()}],"mask-image-t-from-pos":[{"mask-t-from":B()}],"mask-image-t-to-pos":[{"mask-t-to":B()}],"mask-image-t-from-color":[{"mask-t-from":w()}],"mask-image-t-to-color":[{"mask-t-to":w()}],"mask-image-r-from-pos":[{"mask-r-from":B()}],"mask-image-r-to-pos":[{"mask-r-to":B()}],"mask-image-r-from-color":[{"mask-r-from":w()}],"mask-image-r-to-color":[{"mask-r-to":w()}],"mask-image-b-from-pos":[{"mask-b-from":B()}],"mask-image-b-to-pos":[{"mask-b-to":B()}],"mask-image-b-from-color":[{"mask-b-from":w()}],"mask-image-b-to-color":[{"mask-b-to":w()}],"mask-image-l-from-pos":[{"mask-l-from":B()}],"mask-image-l-to-pos":[{"mask-l-to":B()}],"mask-image-l-from-color":[{"mask-l-from":w()}],"mask-image-l-to-color":[{"mask-l-to":w()}],"mask-image-x-from-pos":[{"mask-x-from":B()}],"mask-image-x-to-pos":[{"mask-x-to":B()}],"mask-image-x-from-color":[{"mask-x-from":w()}],"mask-image-x-to-color":[{"mask-x-to":w()}],"mask-image-y-from-pos":[{"mask-y-from":B()}],"mask-image-y-to-pos":[{"mask-y-to":B()}],"mask-image-y-from-color":[{"mask-y-from":w()}],"mask-image-y-to-color":[{"mask-y-to":w()}],"mask-image-radial":[{"mask-radial":[b,m]}],"mask-image-radial-from-pos":[{"mask-radial-from":B()}],"mask-image-radial-to-pos":[{"mask-radial-to":B()}],"mask-image-radial-from-color":[{"mask-radial-from":w()}],"mask-image-radial-to-color":[{"mask-radial-to":w()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":R()}],"mask-image-conic-pos":[{"mask-conic":[S]}],"mask-image-conic-from-pos":[{"mask-conic-from":B()}],"mask-image-conic-to-pos":[{"mask-conic-to":B()}],"mask-image-conic-from-color":[{"mask-conic-from":w()}],"mask-image-conic-to-color":[{"mask-conic-to":w()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:re()}],"mask-size":[{mask:ue()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",b,m]}],filter:[{filter:["","none",b,m]}],blur:[{blur:vt()}],brightness:[{brightness:[S,b,m]}],contrast:[{contrast:[S,b,m]}],"drop-shadow":[{"drop-shadow":["","none",f,pt,ht]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:["",S,b,m]}],"hue-rotate":[{"hue-rotate":[S,b,m]}],invert:[{invert:["",S,b,m]}],saturate:[{saturate:[S,b,m]}],sepia:[{sepia:["",S,b,m]}],"backdrop-filter":[{"backdrop-filter":["","none",b,m]}],"backdrop-blur":[{"backdrop-blur":vt()}],"backdrop-brightness":[{"backdrop-brightness":[S,b,m]}],"backdrop-contrast":[{"backdrop-contrast":[S,b,m]}],"backdrop-grayscale":[{"backdrop-grayscale":["",S,b,m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[S,b,m]}],"backdrop-invert":[{"backdrop-invert":["",S,b,m]}],"backdrop-opacity":[{"backdrop-opacity":[S,b,m]}],"backdrop-saturate":[{"backdrop-saturate":[S,b,m]}],"backdrop-sepia":[{"backdrop-sepia":["",S,b,m]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":p()}],"border-spacing-x":[{"border-spacing-x":p()}],"border-spacing-y":[{"border-spacing-y":p()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",b,m]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[S,"initial",b,m]}],ease:[{ease:["linear","initial",x,b,m]}],delay:[{delay:[S,b,m]}],animate:[{animate:["none",C,b,m]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[q,b,m]}],"perspective-origin":[{"perspective-origin":G()}],rotate:[{rotate:wt()}],"rotate-x":[{"rotate-x":wt()}],"rotate-y":[{"rotate-y":wt()}],"rotate-z":[{"rotate-z":wt()}],scale:[{scale:yt()}],"scale-x":[{"scale-x":yt()}],"scale-y":[{"scale-y":yt()}],"scale-z":[{"scale-z":yt()}],"scale-3d":["scale-3d"],skew:[{skew:rr()}],"skew-x":[{"skew-x":rr()}],"skew-y":[{"skew-y":rr()}],transform:[{transform:[b,m,"","none","gpu","cpu"]}],"transform-origin":[{origin:G()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:xt()}],"translate-x":[{"translate-x":xt()}],"translate-y":[{"translate-y":xt()}],"translate-z":[{"translate-z":xt()}],"translate-none":["translate-none"],accent:[{accent:w()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:w()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",b,m]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":p()}],"scroll-mx":[{"scroll-mx":p()}],"scroll-my":[{"scroll-my":p()}],"scroll-ms":[{"scroll-ms":p()}],"scroll-me":[{"scroll-me":p()}],"scroll-mt":[{"scroll-mt":p()}],"scroll-mr":[{"scroll-mr":p()}],"scroll-mb":[{"scroll-mb":p()}],"scroll-ml":[{"scroll-ml":p()}],"scroll-p":[{"scroll-p":p()}],"scroll-px":[{"scroll-px":p()}],"scroll-py":[{"scroll-py":p()}],"scroll-ps":[{"scroll-ps":p()}],"scroll-pe":[{"scroll-pe":p()}],"scroll-pt":[{"scroll-pt":p()}],"scroll-pr":[{"scroll-pr":p()}],"scroll-pb":[{"scroll-pb":p()}],"scroll-pl":[{"scroll-pl":p()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",b,m]}],fill:[{fill:["none",...w()]}],"stroke-w":[{stroke:[S,Ze,$e,Jt]}],stroke:[{stroke:["none",...w()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Je(...e){return Bo(oo(e))}function Wo(e,t){for(var r in t)e[r]=t[r];return e}function fn(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function hn(e,t){this.props=e,this.context=t}(hn.prototype=new fe).isPureReactComponent=!0,hn.prototype.shouldComponentUpdate=function(e,t){return fn(this.props,e)||fn(this.state,t)};var pn=_.__b;_.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),pn&&pn(e)};var Io=_.__e;_.__e=function(e,t,r,n){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t)}Io(e,t,r,n)};var gn=_.unmount;function mn(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=Wo({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return mn(n,t,r)})),e}function bn(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return bn(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function Kt(){this.__u=0,this.o=null,this.__b=null}function _n(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function gt(){this.i=null,this.l=null}_.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),gn&&gn(e)},(Kt.prototype=new fe).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var o=_n(n.__v),i=!1,s=function(){i||(i=!0,r.__R=null,o?o(a):a())};r.__R=s;var a=function(){if(!--n.__u){if(n.state.__a){var l=n.state.__a;n.__v.__k[0]=bn(l,l.__c.__P,l.__c.__O)}var c;for(n.setState({__a:n.__b=null});c=n.o.pop();)c.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(s,s)},Kt.prototype.componentWillUnmount=function(){this.o=[]},Kt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=mn(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&Ge(ge,null,e.fallback);return o&&(o.__u&=-33),[Ge(ge,null,t.__a?null:e.children),o]};var vn=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};function Fo(e){return this.getChildContext=function(){return e.context},e.children}function Uo(e){var t=this,r=e.h;if(t.componentWillUnmount=function(){_e(null,t.v),t.v=null,t.h=null},t.h&&t.h!==r&&t.componentWillUnmount(),!t.v){for(var n=t.__v;n!==null&&!n.__m&&n.__!==null;)n=n.__;t.h=r,t.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:n.__m},contains:function(){return!0},insertBefore:function(o,i){this.childNodes.push(o),t.h.insertBefore(o,i)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.h.removeChild(o)}}}_e(Ge(Fo,{context:t.context},e.__v),t.v)}function jo(e,t){var r=Ge(Uo,{__v:e,h:t});return r.containerInfo=t,r}(gt.prototype=new fe).__a=function(e){var t=this,r=_n(t.__v),n=t.l.get(e);return n[0]++,function(o){var i=function(){t.props.revealOrder?(n.push(o),vn(t,e,n)):o()};r?r(i):i()}},gt.prototype.render=function(e){this.i=null,this.l=new Map;var t=rt(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},gt.prototype.componentDidUpdate=gt.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){vn(e,r,t)})};var Ho=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,Do=/^(?: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]/,Go=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Vo=/[A-Z0-9]/g,Yo=typeof document!="undefined",Xo=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};fe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(fe.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var wn=_.event;function Zo(){}function Jo(){return this.cancelBubble}function Ko(){return this.defaultPrevented}_.event=function(e){return wn&&(e=wn(e)),e.persist=Zo,e.isPropagationStopped=Jo,e.isDefaultPrevented=Ko,e.nativeEvent=e};var Qo={enumerable:!1,configurable:!0,get:function(){return this.class}},yn=_.vnode;_.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,o={},i=n.indexOf("-")===-1;for(var s in r){var a=r[s];if(!(s==="value"&&"defaultValue"in r&&a==null||Yo&&s==="children"&&n==="noscript"||s==="class"||s==="className")){var l=s.toLowerCase();s==="defaultValue"&&"value"in r&&r.value==null?s="value":s==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?s="ondblclick":l!=="onchange"||n!=="input"&&n!=="textarea"||Xo(r.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":Go.test(s)&&(s=l):l=s="oninput":i&&Do.test(s)?s=s.replace(Vo,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&o[s=l]&&(s="oninputCapture"),o[s]=a}}n=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=rt(r.children).forEach(function(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),n=="select"&&o.defaultValue!=null&&(o.value=rt(r.children).forEach(function(c){c.props.selected=o.multiple?o.defaultValue.indexOf(c.props.value)!=-1:o.defaultValue==c.props.value})),r.class&&!r.className?(o.class=r.class,Object.defineProperty(o,"className",Qo)):(r.className&&!r.class||r.class&&r.className)&&(o.class=o.className=r.className),t.props=o}(e),e.$$typeof=Ho,yn&&yn(e)};var xn=_.__r;_.__r=function(e){xn&&xn(e),e.__c};var kn=_.diffed;_.diffed=function(e){kn&&kn(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value)};function Sn(){const e=X(null),t=X("idle"),r=X();return ee(()=>()=>{r.current&&clearTimeout(r.current)},[]),{ref:e,animate:(o,i={})=>new Promise(s=>{const a=e.current;if(!a){s();return}const{duration:l=300,easing:c="ease-out",delay:u=0,onComplete:d}=i;t.current="running",a.style.transition=`all ${l}ms ${c} ${u}ms`,Object.entries(o).forEach(([f,v])=>{a.style.setProperty(f,v)});const g=l+u;r.current=setTimeout(()=>{t.current="finished",a.style.transition="",d==null||d(),s()},g)})}}function ei(e,t){const{ref:r,animate:n}=Sn();return ee(()=>{if(!e||!r.current)return;const o=setTimeout(()=>{n({transform:"translateY(0)",opacity:"1"},{duration:1e3,easing:"cubic-bezier(0.34, 1.56, 0.64, 1)",onComplete:t})},500);return()=>clearTimeout(o)},[e]),r}function ti(e,t){const{ref:r,animate:n}=Sn();return ee(()=>{r.current&&(e?n({width:`${t+20}px`,paddingLeft:"0.5rem",paddingRight:"0.5rem"},{duration:1200,easing:"cubic-bezier(0.16, 1, 0.3, 1)"}):n({width:"0",paddingLeft:"0",paddingRight:"0"},{duration:300,easing:"cubic-bezier(0.16, 1, 0.3, 1)"}))},[e,t]),r}function ri(e){const t=X(null),r=X(null);return ee(()=>{!t.current||!r.current||e&&(t.current.style.transition="opacity 500ms ease-out",t.current.style.opacity="1",r.current.style.transition="transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 200ms ease-out",r.current.style.transform="translateY(0)",r.current.style.opacity="1")},[e]),{overlayRef:t,contentRef:r,close:async()=>{!t.current||!r.current||(t.current.style.transition="opacity 200ms ease-out",t.current.style.opacity="0",r.current.style.transition="transform 200ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms ease-out",r.current.style.transform="translateY(-70px)",r.current.style.opacity="0",await new Promise(o=>setTimeout(o,200)))}}}const mt=Ce(!1),ni=Ce(null);function oi({workspaceSlug:e,theme:t,base:r="https://www.squelette.app",ticketId:n}){const o=X(null),i=X(null),[s,a]=ze(null),l=X(null),c=X(!1),{overlayRef:u,contentRef:d,close:g}=ri(mt.value);ee(()=>{const $=document.createElement("div");$.id="squelette-banner-modal-portal",$.style.position="fixed",$.style.inset="0",$.style.zIndex="999999",$.style.pointerEvents="none";const R=$.attachShadow({mode:"open"});return Ve(R,Br),document.body.appendChild($),o.current=$,a(R),()=>{o.current&&(document.body.removeChild(o.current),o.current=null,a(null))}},[]);const f=()=>{var $;if(!(!(($=i.current)!=null&&$.contentWindow)||!l.current))try{const R=new URL(Ot).origin;i.current.contentWindow.postMessage({type:"squelette-identify",payload:l.current},R)}catch(R){console.warn("[BannerModal] Failed to send identity to iframe:",R)}};ee(()=>{const $=Or();$&&(l.current=$);const R=F=>{var p;const V=F;l.current=(p=V.detail)!=null?p:null,c.current?f():console.info("[BannerModal] Iframe not ready yet, identity will be sent when ready")},G=F=>{var V;((V=F.data)==null?void 0:V.type)==="squelette-iframe-ready"&&(c.current=!0,l.current?f():console.log("[BannerModal] Iframe ready but no identity yet"))};return window.addEventListener("squelette:identity",R),window.addEventListener("message",G),()=>{window.removeEventListener("squelette:identity",R),window.removeEventListener("message",G)}},[]);const v=()=>{console.log("[BannerModal] Iframe onLoad event fired")},q=async()=>{await g(),mt.value=!1},k=$=>{$.target===u.current&&q()};if(!s)return null;const x=Mt(()=>y("iframe",{ref:i,className:"w-full h-full border-none outline-none",src:`${r}/widget/${e}/changelog/last?theme=${t}${n?`&ticketId=${n}`:""}`,onLoad:v}),[r,e,t,n]),C=y("div",{ref:u,className:Je("fixed inset-0 backdrop-blur-sm flex items-center justify-center",t==="dark"?"bg-black/30":"bg-white/30"),style:{pointerEvents:mt.value?"auto":"none",opacity:0},onClick:k,children:y("div",{ref:d,className:Je("rounded-[32px] border-[3px] shadow-lg max-w-lg w-full mx-4 p-0 outline-none relative overflow-hidden",t==="light"?"border-[#f0f0f0]":"border-[#222222]"),style:{opacity:0,transform:"translateY(-70px)",height:650},children:x})});return jo(C,s)}const Qt=e=>{if(e)return!1;try{return localStorage.getItem("squelette-enable-cache")!=="false"}catch{return!0}},ii=5*60*1e3,qn="squelette_banner_last_ticket",En=48,J=Ce(null),ye=Ce(!1),We=Ce(!0);function si({workspaceSlug:e="squelette",theme:t,base:r="https://www.squelette.app",debug:n=!1,ticketId:o}){const i=X(null),s=X(null),[a,l]=ze(96),c=ei(!!J.value,()=>{ye.value=!0});ee(()=>(console.log("[Banner] Component mounted, resetting signals"),J.value=null,ye.value=!1,We.value=!1,()=>{console.log("[Banner] Component unmounting")}),[]),ee(()=>{if(!document.getElementById("squelette-shake-animation")){const f=document.createElement("style");f.id="squelette-shake-animation",f.textContent=`
|
|
164
164
|
@keyframes shake {
|
|
165
165
|
0%, 100% { transform: rotate(0deg); }
|
|
166
166
|
20% { transform: rotate(-15deg); }
|
|
@@ -168,9 +168,9 @@ var SqueletteWidgetBundle=function(E){"use strict";var gi=Object.defineProperty;
|
|
|
168
168
|
60% { transform: rotate(-15deg); }
|
|
169
169
|
80% { transform: rotate(15deg); }
|
|
170
170
|
}
|
|
171
|
-
`,document.head.appendChild(
|
|
171
|
+
`,document.head.appendChild(f)}},[]),ee(()=>{console.log("[Banner] useEffect triggered",{workspaceSlug:e,debug:n,ticketId:o}),console.log("[Banner] Current signal states:",{lastTicket:J.value,isVisible:ye.value,showBanner:We.value}),di(r,e,n,o).then(f=>{if(console.log("[Banner] Fetched ticket:",f),!f){console.log("[Banner] No ticket found, returning");return}const v=localStorage.getItem(qn);console.log("[Banner] lastSeenCreatedAt from localStorage:",v),console.log("[Banner] ticket.created_at:",f.created_at),console.log("[Banner] getEnableCache(debug):",Qt(n)),!Qt(n)||!v||new Date(f.created_at)>new Date(v)?(console.log("[Banner] Setting signals to show banner"),J.value=f,ye.value=!1,We.value=!0,console.log("[Banner] After setting signals:",{lastTicket:J.value,isVisible:ye.value,showBanner:We.value})):console.log("[Banner] Not showing banner - already seen")})},[e,n,o]),ee(()=>{if(!c.current||!i.current)return;const f=c.current,v=i.current,q=()=>{v&&(v.style.animation="shake 0.6s ease-in-out infinite")},k=()=>{v.style.animation=""};return f.addEventListener("mouseenter",q),f.addEventListener("mouseleave",k),()=>{f.removeEventListener("mouseleave",k),f.removeEventListener("mouseenter",q)}},[]),Pt(()=>{if(!s.current)return;const f=()=>{s.current&&l(Math.ceil(s.current.getBoundingClientRect().width))};if(f(),typeof ResizeObserver=="undefined")return;const v=new ResizeObserver(f);return v.observe(s.current),()=>v.disconnect()},[J.value]);const u=async()=>{!J.value||!c.current||(ye.value=!1,await new Promise(f=>setTimeout(f,400)),c.current.style.transition="transform 500ms cubic-bezier(0.16, 1, 0.3, 1), opacity 500ms ease-out",c.current.style.transform="translateY(-100%)",c.current.style.opacity="0",await new Promise(f=>setTimeout(f,500)),localStorage.setItem(qn,J.value.created_at),We.value=!1)},d=()=>{J.value&&(ni.value=J.value,mt.value=!0,u())};if(!J.value)return null;const g=Math.max(0,a);return y(ge,{children:[We.value&&y("div",{className:"flex items-center justify-center w-full h-[64px] overflow-visible",children:y("div",{className:"group rounded-full p-1 border flex items-center cursor-pointer",style:{opacity:0,transform:"translateY(-100%)",backgroundColor:"var(--squelette-banner-bg)",borderColor:"var(--squelette-banner-border)"},ref:c,onClick:d,children:[y("div",{ref:s,className:"flex gap-1 h-6 px-2 items-center justify-center rounded-full text-sm",style:{backgroundColor:"var(--squelette-banner-badge-bg)",color:"var(--squelette-banner-badge-text)"},children:[y("span",{children:"Nouveau"}),y("div",{ref:i,className:"inline",children:y(li,{className:"size-4"})})]}),y(ai,{onClose:u,badgeWidth:g})]})}),y(oi,{base:r,workspaceSlug:e,theme:t,ticketId:o})]})}function ai({onClose:e,badgeWidth:t}){const r=X(null),[n,o]=ze(0),i=ti(ye.value,n);Pt(()=>{if(!r.current)return;const a=()=>{if(!r.current)return;const c=r.current.scrollWidth,u=typeof window!="undefined"?window.innerWidth:c,d=En,g=Math.max(0,u-t-d);o(Math.min(c,g))};a();const l=new ResizeObserver(a);return l.observe(r.current),typeof window!="undefined"&&window.addEventListener("resize",a),()=>{l.disconnect(),typeof window!="undefined"&&window.removeEventListener("resize",a)}},[J.value,t]);const s=a=>{a.stopPropagation(),e()};return J.value?y("div",{className:"overflow-hidden min-w-0 items-baseline box-border inline-flex",style:{width:0,paddingLeft:0,paddingRight:0,maxWidth:"100vw",maxInlineSize:`calc(100vw - ${t+En}px)`},ref:i,children:y("div",{className:"gap-2 inline-flex items-center",ref:r,children:[y("span",{className:"font-medium text-sm whitespace-nowrap max-w-[400px]",style:{color:"var(--squelette-banner-text)"},children:y(ui,{duration:4,gap:16,children:J.value.title})}),y("button",{onClick:s,className:"p-0 border-0 bg-transparent cursor-pointer transition-opacity",style:{color:"var(--squelette-banner-text)",opacity:1},onMouseEnter:a=>{a.currentTarget.style.opacity="var(--squelette-banner-button-hover)"},onMouseLeave:a=>{a.currentTarget.style.opacity="1"},"aria-label":"Close banner",children:y(ci,{className:"size-4"})})]})}):null}function li({className:e}){return y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:Je("lucide lucide-megaphone-icon lucide-megaphone origin-center",e),children:[y("path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z"}),y("path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14"}),y("path",{d:"M8 6v8"})]})}function ci({className:e}){return y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:Je("lucide lucide-x-icon lucide-x",e),children:[y("path",{d:"M18 6 6 18"}),y("path",{d:"m6 6 12 12"})]})}async function di(e,t,r,n){var o;try{const i=Qt(r);if(i&&!n){const u=`squelette_banner_cache_${t}`,d=localStorage.getItem(u);if(d){const{ticket:g,timestamp:f}=JSON.parse(d);if(!(Date.now()-f>ii))return g}}const s=n?`${e}/api/public/w/${t}/changelog/last?ticketId=${n}`:`${e}/api/public/w/${t}/changelog/last`,l=await(await fetch(s)).json(),c=(o=l==null?void 0:l.ticket)!=null?o:null;if(i&&c&&!n){const u=`squelette_banner_cache_${t}`,d={ticket:c,timestamp:Date.now()};localStorage.setItem(u,JSON.stringify(d))}return c}catch(i){return console.error("Error fetching changelog ticket:",i),null}}function ui({children:e,duration:t=50,gap:r=8,className:n,delay:o=.8}){const i=X(null),s=X(null),[a,l]=ze(0),[c,u]=ze(0);Pt(()=>{const q=()=>{s.current&&l(Math.ceil(s.current.offsetWidth)),i.current&&u(Math.ceil(i.current.offsetWidth))};q();const k=new ResizeObserver(q),x=new ResizeObserver(q);return s.current&&k.observe(s.current),i.current&&x.observe(i.current),()=>{k.disconnect(),x.disconnect()}},[e,r]);const d=a+r,g=d>0?Math.max(2,Math.ceil((c+d)/d)+1):2,v=d>0?d/50:t;return y(ge,{children:[y("style",{children:`
|
|
172
172
|
@keyframes marquee-banner {
|
|
173
173
|
from { transform: translate3d(0,0,0); }
|
|
174
|
-
to { transform: translate3d(calc(-${
|
|
174
|
+
to { transform: translate3d(calc(-${d}px),0,0); }
|
|
175
175
|
}
|
|
176
|
-
`}),k("span",{ref:i,className:Ve("relative inline-block overflow-hidden align-baseline w-full translate-y-0.5",n),style:{maskImage:"linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%)"},"aria-label":e,children:k("span",{className:"inline-flex items-baseline will-change-transform",style:{gap:`${r}px`,animation:_t.value&&l>0?`marquee-banner ${y}s linear ${o}s infinite`:"none"},children:Array.from({length:g}).map(($,q)=>k("span",{ref:q===0?a:null,className:"whitespace-nowrap shrink-0",children:e},q))})})]})}class mt extends HTMLElement{constructor(){super();Ze(this,"shadow");this.shadow=this.attachShadow({mode:"open"}),it(this.shadow,Nr),this.style.position="fixed",this.style.top="0",this.style.left="0",this.style.right="0",this.style.zIndex="9999"}connectedCallback(){var i;const r=(i=this.getAttribute("workspace-slug"))!=null?i:"squelette",n=this.getAttribute("theme")||"light",o=this.getAttribute("base")||"https://www.squelette.app";$e(k(ii,{workspaceSlug:r,theme:n,base:o}),this.shadow)}disconnectedCallback(){$e(null,this.shadow)}}typeof window!="undefined"&&typeof customElements!="undefined"&&(customElements.get("squelette-banner")||(console.debug("[SqueletteBanner] auto-registering custom element"),customElements.define("squelette-banner",mt)));const Cn={init({slug:e,theme:t,contentTheme:r,base:n}){if(typeof document=="undefined")return null;customElements.get("squelette-banner")||customElements.define("squelette-banner",mt);const o=document.querySelector("squelette-banner");if(o)return t&&this.setTheme(t),o;const i=new mt;return i.setAttribute("workspace-slug",e),i.setAttribute("theme",r!=null?r:"light"),n&&i.setAttribute("base",n),document.body.appendChild(i),t&&this.setTheme(t),i},setTheme(e){if(typeof document=="undefined")return;const t=document.querySelector("squelette-banner");if(!t){console.warn("[SqueletteBanner] No banner found to apply theme");return}e.bg&&t.style.setProperty("--squelette-banner-bg",e.bg),e.border&&t.style.setProperty("--squelette-banner-border",e.border),e.text&&t.style.setProperty("--squelette-banner-text",e.text),e.badgeBg&&t.style.setProperty("--squelette-banner-badge-bg",e.badgeBg),e.badgeText&&t.style.setProperty("--squelette-banner-badge-text",e.badgeText),e.buttonHover!==void 0&&t.style.setProperty("--squelette-banner-button-hover",String(e.buttonHover))}};function ui(e){switch(e){case"roadmap":return"Roadmap";case"changelog":return"Changelog";case"feedback":default:return ot}}function qn(e){var o;Ot();const t=document.createElement(Lt);t.setAttribute("project",e.project),e.board&&t.setAttribute("board",e.board),e.view&&t.setAttribute("view",e.view),e.theme&&t.setAttribute("theme",e.theme),e.locale&&t.setAttribute("locale",e.locale),e.token&&t.setAttribute("token",e.token),e.signature&&t.setAttribute("signature",e.signature),e.label&&t.setAttribute("label",e.label),e.apiBase&&t.setAttribute("api-base",e.apiBase),e.attributes&&Object.entries(e.attributes).forEach(([i,a])=>t.setAttribute(i,a)),((o=e.appendTo)!=null?o:document.body).appendChild(t);const n=Rr();return n&&window.dispatchEvent(new CustomEvent("squelette:identity",{detail:n})),t}function Kt(e,t,r,n){var i;const o=qn({project:t,board:r!=null?r:void 0,view:e,theme:n==null?void 0:n.theme,locale:n==null?void 0:n.locale,token:n==null?void 0:n.token,signature:n==null?void 0:n.signature,appendTo:n==null?void 0:n.appendTo,attributes:n==null?void 0:n.attributes,label:(i=n==null?void 0:n.label)!=null?i:ui(e),apiBase:n==null?void 0:n.apiBase});if(n){const a=Xn(o,n);if(a.length>0){const s=o.destroy.bind(o);o.destroy=async()=>{for(const c of a.splice(0,a.length))c();await s()}}}return o}function Qt(){const e=window;e.SqueletteWidget||(e.SqueletteWidget={create:qn,createFeedbackWidget:(t,r,n)=>Kt("feedback",t,r,n),createRoadmapWidget:(t,r,n)=>Kt("roadmap",t,r,n),createChangelogWidget:(t,r)=>Kt("changelog",t,null,r),identify:Lr,clearIdentity:Tr,banner:Cn,version:"0.3.9",cdn:Un})}Ot(),Qt(),Qt();function fi(...e){return window.SqueletteWidget.createFeedbackWidget(...e)}function pi(...e){return window.SqueletteWidget.createRoadmapWidget(...e)}function hi(...e){return window.SqueletteWidget.createChangelogWidget(...e)}function _i(...e){return window.SqueletteWidget.create(...e)}function An({src:e,title:t,onLoaded:r,onClose:n}){const o=Y(null);return ee(()=>{const i=o.current;if(!i)return;const a=()=>{i.dataset.ready="true",r==null||r()};return i.addEventListener("load",a),()=>i.removeEventListener("load",a)},[r]),ee(()=>{const i=a=>{a.data.type==="close-feedback-widget"&&(console.log("WidgetFrame closing widget as requested"),n())};return window.addEventListener("message",i),()=>window.removeEventListener("message",i)},[n]),k("iframe",{ref:o,class:"sq-frame",part:"frame",src:e,title:t,loading:"eager",allow:"clipboard-write; clipboard-read; fullscreen;",sandbox:"allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox"})}const mi=Object.freeze(Object.defineProperty({__proto__:null,WidgetFrame:An,default:An,stylesText:mr},Symbol.toStringTag,{value:"Module"}));return E.SqueletteBanner=Cn,E.SqueletteBannerElement=mt,E.SqueletteWidgetElement=Mr,E.clearIdentity=Tr,E.createChangelogWidget=hi,E.createFeedbackWidget=fi,E.createRoadmapWidget=pi,E.createWidget=_i,E.ensureGlobalHelper=Qt,E.identify=Lr,E.registerSqueletteWidget=Ot,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),E}({});
|
|
176
|
+
`}),y("span",{ref:i,className:Je("relative inline-block overflow-hidden align-baseline w-full translate-y-0.5",n),style:{maskImage:"linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%)"},"aria-label":e,children:y("span",{className:"inline-flex items-baseline will-change-transform",style:{gap:`${r}px`,animation:ye.value&&d>0?`marquee-banner ${v}s linear ${o}s infinite`:"none"},children:Array.from({length:g}).map((q,k)=>y("span",{ref:k===0?s:null,className:"whitespace-nowrap shrink-0",children:e},k))})})]})}class bt extends HTMLElement{constructor(){super();Z(this,"shadow");this.shadow=this.attachShadow({mode:"open"}),Ve(this.shadow,Br),this.style.position="fixed",this.style.top="0",this.style.left="0",this.style.right="0",this.style.zIndex="9999"}connectedCallback(){var l;const r=(l=this.getAttribute("workspace-slug"))!=null?l:"squelette",n=this.getAttribute("theme")||"light",o=this.getAttribute("base")||"https://www.squelette.app",i=this.getAttribute("debug")==="true",s=this.getAttribute("ticket-id"),a=s?Number(s):void 0;_e(y(si,{workspaceSlug:r,theme:n,base:o,debug:i,ticketId:a}),this.shadow)}disconnectedCallback(){_e(null,this.shadow)}}typeof window!="undefined"&&typeof customElements!="undefined"&&(customElements.get("squelette-banner")||(console.debug("[SqueletteBanner] auto-registering custom element"),customElements.define("squelette-banner",bt)));const Cn={init({slug:e,theme:t,contentTheme:r,base:n,debug:o,ticketId:i}){if(console.log("[SqueletteBanner] init called",{slug:e,contentTheme:r,base:n,debug:o,ticketId:i}),typeof document=="undefined")return null;customElements.get("squelette-banner")||customElements.define("squelette-banner",bt);const s=document.querySelector("squelette-banner");if(s)return console.log("[SqueletteBanner] Found existing banner, updating attributes"),t&&this.setTheme(t),r&&this.setContentTheme(r),o!==void 0&&s.setAttribute("debug",String(o)),i!==void 0&&s.setAttribute("ticket-id",String(i)),s;console.log("[SqueletteBanner] Creating new banner element");const a=new bt;return a.setAttribute("workspace-slug",e),a.setAttribute("theme",r!=null?r:"light"),n&&a.setAttribute("base",n),o!==void 0&&a.setAttribute("debug",String(o)),i!==void 0&&a.setAttribute("ticket-id",String(i)),document.body.appendChild(a),console.log("[SqueletteBanner] Banner element appended to body"),t&&this.setTheme(t),a},setTheme(e){if(typeof document=="undefined")return;const t=document.querySelector("squelette-banner");if(!t){console.warn("[SqueletteBanner] No banner found to apply theme");return}e.bg&&t.style.setProperty("--squelette-banner-bg",e.bg),e.border&&t.style.setProperty("--squelette-banner-border",e.border),e.text&&t.style.setProperty("--squelette-banner-text",e.text),e.badgeBg&&t.style.setProperty("--squelette-banner-badge-bg",e.badgeBg),e.badgeText&&t.style.setProperty("--squelette-banner-badge-text",e.badgeText),e.buttonHover!==void 0&&t.style.setProperty("--squelette-banner-button-hover",String(e.buttonHover))},setContentTheme(e){if(typeof document=="undefined")return;const t=document.querySelector("squelette-banner");if(!t){console.warn("[SqueletteBanner] No banner found to update content theme");return}t.setAttribute("theme",e)},destroy(){if(console.log("[SqueletteBanner] destroy called"),typeof document=="undefined")return;const e=document.querySelector("squelette-banner");if(!e){console.warn("[SqueletteBanner] No banner found to destroy");return}console.log("[SqueletteBanner] Removing banner element"),e.remove(),console.log("[SqueletteBanner] Banner element removed")}};function fi(e){switch(e){case"roadmap":return"Roadmap";case"changelog":return"Changelog";case"feedback":default:return at}}function An(e){var o;Ft();const t=document.createElement(Rt);t.setAttribute("project",e.project),e.board&&t.setAttribute("board",e.board),e.view&&t.setAttribute("view",e.view),e.theme&&t.setAttribute("theme",e.theme),e.locale&&t.setAttribute("locale",e.locale),e.token&&t.setAttribute("token",e.token),e.signature&&t.setAttribute("signature",e.signature),e.label&&t.setAttribute("label",e.label),e.apiBase&&t.setAttribute("api-base",e.apiBase),e.attributes&&Object.entries(e.attributes).forEach(([i,s])=>t.setAttribute(i,s)),((o=e.appendTo)!=null?o:document.body).appendChild(t);const n=Or();return n&&window.dispatchEvent(new CustomEvent("squelette:identity",{detail:n})),t}function er(e,t,r,n){var i;const o=An({project:t,board:r!=null?r:void 0,view:e,theme:n==null?void 0:n.theme,locale:n==null?void 0:n.locale,token:n==null?void 0:n.token,signature:n==null?void 0:n.signature,appendTo:n==null?void 0:n.appendTo,attributes:n==null?void 0:n.attributes,label:(i=n==null?void 0:n.label)!=null?i:fi(e),apiBase:n==null?void 0:n.apiBase});if(n){const s=Zn(o,n);if(s.length>0){const a=o.destroy.bind(o);o.destroy=async()=>{for(const l of s.splice(0,s.length))l();await a()}}}return o}function tr(){const e=window;e.SqueletteWidget||(e.SqueletteWidget={create:An,createFeedbackWidget:(t,r,n)=>er("feedback",t,r,n),createRoadmapWidget:(t,r,n)=>er("roadmap",t,r,n),createChangelogWidget:(t,r)=>er("changelog",t,null,r),identify:Rr,clearIdentity:Nr,banner:Cn,version:"0.4.0",cdn:Un})}Ft(),tr(),tr();function hi(...e){return window.SqueletteWidget.createFeedbackWidget(...e)}function pi(...e){return window.SqueletteWidget.createRoadmapWidget(...e)}function gi(...e){return window.SqueletteWidget.createChangelogWidget(...e)}function mi(...e){return window.SqueletteWidget.create(...e)}const bi=".squelette-changelog{display:flex;flex-direction:column;width:375px;height:var(--squelette-changelog-height, 400px);background:var(--squelette-changelog-bg, #ffffff);border:1px solid var(--squelette-changelog-border, #e5e7eb);border-radius:8px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;overflow:hidden;opacity:1;transform:translate(0)}.squelette-changelog--dark{--squelette-changelog-bg: #1f2937;--squelette-changelog-border: #374151}.squelette-changelog__header{display:flex;justify-content:flex-end;padding:8px;border-bottom:1px solid var(--squelette-changelog-border, #e5e7eb)}.squelette-changelog__close{background:transparent;border:none;font-size:24px;line-height:1;cursor:pointer;color:var(--squelette-changelog-text, #6b7280);padding:4px 8px;border-radius:4px;transition:background-color .2s}.squelette-changelog__close:hover{background:var(--squelette-changelog-close-hover, rgba(0, 0, 0, .05))}.squelette-changelog--dark .squelette-changelog__close{color:#9ca3af}.squelette-changelog--dark .squelette-changelog__close:hover{background:#ffffff1a}.squelette-changelog__iframe{flex:1;width:100%;border:none;display:block}";function _i({workspaceSlug:e,workspace:t,theme:r,contentTheme:n,base:o,debug:i,onClose:s}){return y("div",{className:`squelette-changelog squelette-changelog--${r}`,children:y("iframe",{className:"squelette-changelog__iframe",title:"Changelog",src:`${o}/widget/${e}/changelog?theme=${n}`})})}class _t extends HTMLElement{constructor(){super();Z(this,"shadow");Z(this,"targetElement",null);Z(this,"resizeObserver",null);Z(this,"scrollListener",null);Z(this,"clickListener",null);Z(this,"outsideClickListener",null);Z(this,"isOpen",!1);Z(this,"currentAlign","");Z(this,"instanceId");Z(this,"lastToggleTs",0);this.instanceId=`instance-${Math.random().toString(36).substr(2,9)}`,this.shadow=this.attachShadow({mode:"open"}),Ve(this.shadow,bi),this.style.position="fixed",this.style.zIndex="9999",this.style.display="none"}static get observedAttributes(){return["content-theme","theme"]}connectedCallback(){this.renderChangelog();const r=this.getAttribute("selector")||null,n=this.getAttribute("align")||"screen-bottom-right";r&&this.setupClickListener(r,n)}attributeChangedCallback(r,n,o){(r==="content-theme"||r==="theme")&&n!==o&&this.shadow&&this.renderChangelog()}renderChangelog(){var c,u;const r=(c=this.getAttribute("workspace-slug"))!=null?c:"squelette",n=(u=this.getAttribute("workspace"))!=null?u:"squelette",o=this.getAttribute("theme")||"light",i=this.getAttribute("content-theme")||o,s=this.getAttribute("base")||"https://www.squelette.app",a=this.getAttribute("debug")==="true",l=this.getAttribute("height");if(l){const d=typeof l=="string"&&l.includes("px")?l:`${l}px`;this.style.setProperty("--squelette-changelog-height",d)}_e(y(_i,{workspaceSlug:r,workspace:n,theme:o,contentTheme:i,base:s,debug:a,onClose:()=>this.close()}),this.shadow)}disconnectedCallback(){this.cleanupTracking(),this.cleanupClickListener(),this.cleanupOutsideClickListener(),_e(null,this.shadow)}open(){if(this.isOpen=!0,this.style.transition="",this.style.opacity="0",this.style.transform="translateY(-12px)",this.style.display="block",!this.targetElement){const r=this.getAttribute("selector");r&&(this.targetElement=document.querySelector(r),this.currentAlign=this.getAttribute("align")||this.currentAlign)}requestAnimationFrame(()=>{this.currentAlign&&this.updatePosition(this.currentAlign),requestAnimationFrame(()=>this.applyOpenAnimation())}),this.setupOutsideClickListener()}toggle(){const r=performance.now();r-this.lastToggleTs<30||(this.lastToggleTs=r,this.isOpen?this.close():this.open())}close(){this.isOpen=!1,this.applyCloseAnimation(),this.cleanupOutsideClickListener()}applyOpenAnimation(){this.style.transition="",this.style.opacity="0",this.style.transform="translateY(-12px)",requestAnimationFrame(()=>{this.style.transition="opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94)",this.style.opacity="1",this.style.transform="translateY(0)"})}applyCloseAnimation(){this.style.transition="opacity 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94)",this.style.opacity="0",this.style.transform="translateY(-8px)",setTimeout(()=>{this.isOpen||(this.style.display="none",this.style.transition="",this.style.opacity="",this.style.transform="")},250)}setupClickListener(r,n){const o=document.querySelector(r);o&&(this.targetElement=o,this.currentAlign=n,this.clickListener&&o.removeEventListener("click",this.clickListener,!0),this.clickListener=i=>{i.stopPropagation(),i.preventDefault(),this.toggle()},o.addEventListener("click",this.clickListener,!0),n.startsWith("element-")&&this.setupElementTracking(n))}cleanupClickListener(){this.clickListener&&this.targetElement&&(this.targetElement.removeEventListener("click",this.clickListener,!0),this.clickListener=null)}setupOutsideClickListener(){this.outsideClickListener=r=>{var o;const n=r.target;n===this.targetElement||(o=this.targetElement)!=null&&o.contains(n)||this===n||this.contains(n)||this.close()},document.addEventListener("click",this.outsideClickListener,!0)}cleanupOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener,!0),this.outsideClickListener=null)}updatePosition(r){const n=r.split("-"),o=n[0],i=n.slice(1).join("-");o==="screen"?this.positionRelativeToScreen(i):o==="element"&&this.targetElement&&this.positionRelativeToElement(this.targetElement,i)}positionRelativeToScreen(r){this.style.top="",this.style.bottom="",this.style.left="",this.style.right="",this.style.transform="";const n=16,o=window.innerWidth,i=window.innerHeight,{width:s,height:a}=this.getBoundingClientRect();switch(r){case"top-left":this.style.top=`${n}px`,this.style.left=`${n}px`;break;case"top-center":this.style.top=`${n}px`,this.style.left=`${Math.max(n,(o-s)/2)}px`;break;case"top-right":this.style.top=`${n}px`,this.style.left=`${o-s-n}px`;break;case"left":this.style.top=`${Math.max(n,(i-a)/2)}px`,this.style.left=`${n}px`;break;case"center":this.style.top=`${Math.max(n,(i-a)/2)}px`,this.style.left=`${Math.max(n,(o-s)/2)}px`;break;case"right":this.style.top=`${Math.max(n,(i-a)/2)}px`,this.style.left=`${o-s-n}px`;break;case"bottom-left":this.style.top=`${i-a-n}px`,this.style.left=`${n}px`;break;case"bottom-center":this.style.top=`${i-a-n}px`,this.style.left=`${Math.max(n,(o-s)/2)}px`;break;case"bottom-right":default:this.style.top=`${i-a-n}px`,this.style.left=`${o-s-n}px`;break}}positionRelativeToElement(r,n){const o=r.getBoundingClientRect(),i=8;this.style.top="",this.style.bottom="",this.style.left="",this.style.right="",this.style.transform="";const{width:s,height:a}=this.getBoundingClientRect();switch(n==="auto"&&(n=this.calculateBestPosition(o)),n){case"top-left":this.style.top=`${o.top-a-i}px`,this.style.left=`${o.left}px`;break;case"top-center":this.style.top=`${o.top-a-i}px`,this.style.left=`${o.left+o.width/2-s/2}px`;break;case"top-right":this.style.top=`${o.top-a-i}px`,this.style.left=`${o.right-s}px`;break;case"left":this.style.top=`${o.top+o.height/2-a/2}px`,this.style.left=`${o.left-s-i}px`;break;case"center":this.style.top=`${o.top+o.height/2-a/2}px`,this.style.left=`${o.left+o.width/2-s/2}px`;break;case"right":this.style.top=`${o.top+o.height/2-a/2}px`,this.style.left=`${o.right+i}px`;break;case"bottom-left":this.style.top=`${o.bottom+i}px`,this.style.left=`${o.left}px`;break;case"bottom-center":this.style.top=`${o.bottom+i}px`,this.style.left=`${o.left+o.width/2-s/2}px`;break;case"bottom-right":default:this.style.top=`${o.bottom+i}px`,this.style.left=`${o.right-s}px`;break}}calculateBestPosition(r){const n=window.innerWidth,o=window.innerHeight,i=400,s=this.style.getPropertyValue("--squelette-changelog-height")||"600px",a=parseInt(s),l=8,c=r.top,u=o-r.bottom,d=r.left,g=n-r.right,v=[{name:"bottom-center",score:u*1.5},{name:"top-center",score:c*1.4},{name:"bottom-right",score:Math.min(u,g)*1.2},{name:"bottom-left",score:Math.min(u,d)*1.2},{name:"top-right",score:Math.min(c,g)*1.1},{name:"top-left",score:Math.min(c,d)*1.1},{name:"right",score:g},{name:"left",score:d}].filter(q=>{switch(q.name){case"bottom-right":case"bottom-left":case"bottom-center":return u>=a+l;case"top-right":case"top-left":case"top-center":return c>=a+l;case"right":return g>=i+l;case"left":return d>=i+l;default:return!1}});return v.length>0?(v.sort((q,k)=>k.score-q.score),v[0].name):u>c&&u>Math.max(d,g)?g>d?"bottom-right":"bottom-left":c>Math.max(d,g)?g>d?"top-right":"top-left":g>d?"right":"left"}setupElementTracking(r){if(!this.targetElement)return;const o=r.split("-").slice(1).join("-");this.resizeObserver=new ResizeObserver(()=>{this.isOpen&&this.targetElement&&this.positionRelativeToElement(this.targetElement,o)}),this.resizeObserver.observe(this.targetElement),this.scrollListener=()=>{this.isOpen&&this.targetElement&&this.positionRelativeToElement(this.targetElement,o)},window.addEventListener("scroll",this.scrollListener,!0),window.addEventListener("resize",this.scrollListener)}cleanupTracking(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.scrollListener&&(window.removeEventListener("scroll",this.scrollListener,!0),window.removeEventListener("resize",this.scrollListener),this.scrollListener=null),this.targetElement=null}}typeof window!="undefined"&&typeof customElements!="undefined"&&(customElements.get("squelette-changelog")||customElements.define("squelette-changelog",_t));const vi={init({workspace:e,theme:t,contentTheme:r,base:n,debug:o,selector:i,align:s="screen-bottom-right",height:a}){if(console.log("[SqueletteChangelog] init called",{workspace:e,contentTheme:r,base:n,debug:o,selector:i,align:s,height:a}),typeof document=="undefined")return null;customElements.get("squelette-changelog")||customElements.define("squelette-changelog",_t);const l=document.querySelector("squelette-changelog");if(l)return t&&this.setTheme(t),r&&this.setContentTheme(r),o!==void 0&&l.setAttribute("debug",String(o)),i&&l.setAttribute("selector",i),l.setAttribute("align",s),l.setAttribute("workspace",e),a!==void 0&&l.setAttribute("height",String(a)),l;const c=new _t;return c.setAttribute("workspace-slug",e),c.setAttribute("workspace",e),c.setAttribute("theme",r!=null?r:"light"),c.setAttribute("content-theme",r!=null?r:"light"),n&&c.setAttribute("base",n),o!==void 0&&c.setAttribute("debug",String(o)),i&&c.setAttribute("selector",i),c.setAttribute("align",s),a!==void 0&&c.setAttribute("height",String(a)),document.body.appendChild(c),t&&this.setTheme(t),c},open(){if(typeof document=="undefined")return;const e=document.querySelector("squelette-changelog");e&&e.open()},close(){if(typeof document=="undefined")return;const e=document.querySelector("squelette-changelog");e&&e.close()},toggle(){if(typeof document=="undefined")return;const e=document.querySelector("squelette-changelog");e&&e.toggle()},setTheme(e){if(typeof document=="undefined")return;const t=document.querySelector("squelette-changelog");t&&(e.bg&&t.style.setProperty("--squelette-changelog-bg",e.bg),e.border&&t.style.setProperty("--squelette-changelog-border",e.border))},setContentTheme(e){if(typeof document=="undefined")return;const t=document.querySelector("squelette-changelog");t&&t.setAttribute("content-theme",e)},destroy(){if(typeof document=="undefined")return;const e=document.querySelector("squelette-changelog");e&&e.remove()}};function $n({src:e,title:t,onLoaded:r,onClose:n}){const o=X(null);return ee(()=>{const i=o.current;if(!i)return;const s=()=>{i.dataset.ready="true",r==null||r()};return i.addEventListener("load",s),()=>i.removeEventListener("load",s)},[r]),ee(()=>{const i=s=>{s.data.type==="close-feedback-widget"&&(console.log("WidgetFrame closing widget as requested"),n())};return window.addEventListener("message",i),()=>window.removeEventListener("message",i)},[n]),y("iframe",{ref:o,class:"sq-frame",part:"frame",src:e,title:t,loading:"eager",allow:"clipboard-write; clipboard-read; fullscreen;",sandbox:"allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox"})}const wi=Object.freeze(Object.defineProperty({__proto__:null,WidgetFrame:$n,default:$n,stylesText:_r},Symbol.toStringTag,{value:"Module"}));return E.SqueletteBanner=Cn,E.SqueletteBannerElement=bt,E.SqueletteChangelog=vi,E.SqueletteChangelogElement=_t,E.SqueletteWidgetElement=zr,E.clearIdentity=Nr,E.createChangelogWidget=gi,E.createFeedbackWidget=hi,E.createRoadmapWidget=pi,E.createWidget=mi,E.ensureGlobalHelper=tr,E.identify=Rr,E.registerSqueletteWidget=Ft,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),E}({});
|