@molin.ai/shop-ai 0.8.9 → 0.8.11

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.
@@ -1,11 +1,11 @@
1
- var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in t?Ql(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var w=(t,e,r)=>eu(t,typeof e!="symbol"?e+"":e,r),_i=(t,e,r)=>e.has(t)||io("Cannot "+r);var l=(t,e,r)=>(_i(t,e,"read from private field"),r?r.call(t):e.get(t)),d=(t,e,r)=>e.has(t)?io("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),g=(t,e,r,n)=>(_i(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),m=(t,e,r)=>(_i(t,e,"access private method"),r);var so=(t,e,r,n)=>({set _(i){g(t,e,i,r)},get _(){return l(t,e,n)}});var Yr=globalThis,Qr=Yr.ShadowRoot&&(Yr.ShadyCSS===void 0||Yr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ai=Symbol(),oo=new WeakMap,er=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==Ai)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(Qr&&e===void 0){let n=r!==void 0&&r.length===1;n&&(e=oo.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&oo.set(r,e))}return e}toString(){return this.cssText}},ao=t=>new er(typeof t=="string"?t:t+"",void 0,Ai),Ee=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((n,i,s)=>n+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[s+1],t[0]);return new er(r,t,Ai)},Mi=(t,e)=>{if(Qr)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),i=Yr.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}},en=Qr?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let n of e.cssRules)r+=n.cssText;return ao(r)})(t):t;var{is:tu,defineProperty:ru,getOwnPropertyDescriptor:nu,getOwnPropertyNames:iu,getOwnPropertySymbols:su,getPrototypeOf:ou}=Object,tn=globalThis,lo=tn.trustedTypes,au=lo?lo.emptyScript:"",lu=tn.reactiveElementPolyfillSupport,tr=(t,e)=>t,Ii={toAttribute(t,e){switch(e){case Boolean:t=t?au:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},co=(t,e)=>!tu(t,e),uo={attribute:!0,type:String,converter:Ii,reflect:!1,hasChanged:co};Symbol.metadata??=Symbol("metadata"),tn.litPropertyMetadata??=new WeakMap;var Se=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=uo){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(e,n,r);i!==void 0&&ru(this.prototype,e,i)}}static getPropertyDescriptor(e,r,n){let{get:i,set:s}=nu(this.prototype,e)??{get(){return this[r]},set(o){this[r]=o}};return{get(){return i?.call(this)},set(o){let u=i?.call(this);s.call(this,o),this.requestUpdate(e,u,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??uo}static _$Ei(){if(this.hasOwnProperty(tr("elementProperties")))return;let e=ou(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(tr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(tr("properties"))){let r=this.properties,n=[...iu(r),...su(r)];for(let i of n)this.createProperty(i,r[i])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let i of n)r.unshift(en(i))}else e!==void 0&&r.push(en(e));return r}static _$Eu(e,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Mi(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$EC(e,r){let n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){let s=(n.converter?.toAttribute!==void 0?n.converter:Ii).toAttribute(r,n.type);this._$Em=e,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(e,r){let n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let s=n.getPropertyOptions(i),o=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:Ii;this._$Em=i,this[i]=o.fromAttribute(r,s.type),this._$Em=null}}requestUpdate(e,r,n){if(e!==void 0){if(n??=this.constructor.getPropertyOptions(e),!(n.hasChanged??co)(this[e],r))return;this.P(e,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,r,n){this._$AL.has(e)||this._$AL.set(e,r),n.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,s]of this._$Ep)this[i]=s;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,s]of n)s.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],s)}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$EU()}catch(n){throw e=!1,this._$EU(),n}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(r=>this._$EC(r,this[r])),this._$EU()}updated(e){}firstUpdated(e){}};Se.elementStyles=[],Se.shadowRootOptions={mode:"open"},Se[tr("elementProperties")]=new Map,Se[tr("finalized")]=new Map,lu?.({ReactiveElement:Se}),(tn.reactiveElementVersions??=[]).push("2.0.4");var Oi=globalThis,rn=Oi.trustedTypes,po=rn?rn.createPolicy("lit-html",{createHTML:t=>t}):void 0,ji="$lit$",_e=`lit$${Math.random().toFixed(9).slice(2)}$`,Di="?"+_e,uu=`<${Di}>`,Je=document,nr=()=>Je.createComment(""),ir=t=>t===null||typeof t!="object"&&typeof t!="function",Li=Array.isArray,vo=t=>Li(t)||typeof t?.[Symbol.iterator]=="function",Ti=`[
2
- \f\r]`,rr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fo=/-->/g,ho=/>/g,Ze=RegExp(`>|${Ti}(?:([^\\s"'>=/]+)(${Ti}*=${Ti}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),mo=/'/g,go=/"/g,wo=/^(?:script|style|textarea|title)$/i,Pi=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),h=Pi(1),np=Pi(2),ip=Pi(3),he=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),yo=new WeakMap,Xe=Je.createTreeWalker(Je,129);function bo(t,e){if(!Li(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return po!==void 0?po.createHTML(e):e}var xo=(t,e)=>{let r=t.length-1,n=[],i,s=e===2?"<svg>":e===3?"<math>":"",o=rr;for(let u=0;u<r;u++){let a=t[u],c,f,p=-1,b=0;for(;b<a.length&&(o.lastIndex=b,f=o.exec(a),f!==null);)b=o.lastIndex,o===rr?f[1]==="!--"?o=fo:f[1]!==void 0?o=ho:f[2]!==void 0?(wo.test(f[2])&&(i=RegExp("</"+f[2],"g")),o=Ze):f[3]!==void 0&&(o=Ze):o===Ze?f[0]===">"?(o=i??rr,p=-1):f[1]===void 0?p=-2:(p=o.lastIndex-f[2].length,c=f[1],o=f[3]===void 0?Ze:f[3]==='"'?go:mo):o===go||o===mo?o=Ze:o===fo||o===ho?o=rr:(o=Ze,i=void 0);let x=o===Ze&&t[u+1].startsWith("/>")?" ":"";s+=o===rr?a+uu:p>=0?(n.push(c),a.slice(0,p)+ji+a.slice(p)+_e+x):a+_e+(p===-2?u:x)}return[bo(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},sr=class t{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let s=0,o=0,u=e.length-1,a=this.parts,[c,f]=xo(e,r);if(this.el=t.createElement(c,n),Xe.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(i=Xe.nextNode())!==null&&a.length<u;){if(i.nodeType===1){if(i.hasAttributes())for(let p of i.getAttributeNames())if(p.endsWith(ji)){let b=f[o++],x=i.getAttribute(p).split(_e),k=/([.?@])?(.*)/.exec(b);a.push({type:1,index:s,name:k[2],strings:x,ctor:k[1]==="."?sn:k[1]==="?"?on:k[1]==="@"?an:Ye}),i.removeAttribute(p)}else p.startsWith(_e)&&(a.push({type:6,index:s}),i.removeAttribute(p));if(wo.test(i.tagName)){let p=i.textContent.split(_e),b=p.length-1;if(b>0){i.textContent=rn?rn.emptyScript:"";for(let x=0;x<b;x++)i.append(p[x],nr()),Xe.nextNode(),a.push({type:2,index:++s});i.append(p[b],nr())}}}else if(i.nodeType===8)if(i.data===Di)a.push({type:2,index:s});else{let p=-1;for(;(p=i.data.indexOf(_e,p+1))!==-1;)a.push({type:7,index:s}),p+=_e.length-1}s++}}static createElement(e,r){let n=Je.createElement("template");return n.innerHTML=e,n}};function Ke(t,e,r=t,n){if(e===he)return e;let i=n!==void 0?r._$Co?.[n]:r._$Cl,s=ir(e)?void 0:e._$litDirective$;return i?.constructor!==s&&(i?._$AO?.(!1),s===void 0?i=void 0:(i=new s(t),i._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(e=Ke(t,i._$AS(t,e.values),i,n)),e}var nn=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,i=(e?.creationScope??Je).importNode(r,!0);Xe.currentNode=i;let s=Xe.nextNode(),o=0,u=0,a=n[0];for(;a!==void 0;){if(o===a.index){let c;a.type===2?c=new gt(s,s.nextSibling,this,e):a.type===1?c=new a.ctor(s,a.name,a.strings,this,e):a.type===6&&(c=new ln(s,this,e)),this._$AV.push(c),a=n[++u]}o!==a?.index&&(s=Xe.nextNode(),o++)}return Xe.currentNode=Je,i}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},gt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Ke(this,e,r),ir(e)?e===E||e==null||e===""?(this._$AH!==E&&this._$AR(),this._$AH=E):e!==this._$AH&&e!==he&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):vo(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==E&&ir(this._$AH)?this._$AA.nextSibling.data=e:this.T(Je.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=sr.createElement(bo(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let s=new nn(i,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(e){let r=yo.get(e.strings);return r===void 0&&yo.set(e.strings,r=new sr(e)),r}k(e){Li(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let s of e)i===r.length?r.push(n=new t(this.O(nr()),this.O(nr()),this,this.options)):n=r[i],n._$AI(s),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Ye=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,s){this.type=1,this._$AH=E,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=E}_$AI(e,r=this,n,i){let s=this.strings,o=!1;if(s===void 0)e=Ke(this,e,r,0),o=!ir(e)||e!==this._$AH&&e!==he,o&&(this._$AH=e);else{let u=e,a,c;for(e=s[0],a=0;a<s.length-1;a++)c=Ke(this,u[n+a],r,a),c===he&&(c=this._$AH[a]),o||=!ir(c)||c!==this._$AH[a],c===E?e=E:e!==E&&(e+=(c??"")+s[a+1]),this._$AH[a]=c}o&&!i&&this.j(e)}j(e){e===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},sn=class extends Ye{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===E?void 0:e}},on=class extends Ye{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==E)}},an=class extends Ye{constructor(e,r,n,i,s){super(e,r,n,i,s),this.type=5}_$AI(e,r=this){if((e=Ke(this,e,r,0)??E)===he)return;let n=this._$AH,i=e===E&&n!==E||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==E&&(n===E||i);i&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},ln=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Ke(this,e)}},ko={M:ji,P:_e,A:Di,C:1,L:xo,R:nn,D:vo,V:Ke,I:gt,H:Ye,N:on,U:an,B:sn,F:ln},cu=Oi.litHtmlPolyfillSupport;cu?.(sr,gt),(Oi.litHtmlVersions??=[]).push("3.2.1");var Co=(t,e,r)=>{let n=r?.renderBefore??e,i=n._$litPart$;if(i===void 0){let s=r?.renderBefore??null;n._$litPart$=i=new gt(e.insertBefore(nr(),s),s,void 0,r??{})}return i._$AI(t),i};var S=class extends Se{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Co(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return he}};S._$litElement$=!0,S.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:S});var pu=globalThis.litElementPolyfillSupport;pu?.({LitElement:S});(globalThis.litElementVersions??=[]).push("4.1.1");var or=class or extends HTMLElement{constructor(){super();w(this,"name","");this.attachShadow({mode:"open"})}attributeChangedCallback(r,n,i){if(n!==i&&or.observedAttributes.includes(r)){switch(r){case"name":this.name=i||"";break}this.render()}}resolveIcon(r){throw new Error("Not implemented")}render(){let r=document.createElement("style");for(r.textContent=`
1
+ var eu=Object.defineProperty;var so=t=>{throw TypeError(t)};var tu=(t,e,r)=>e in t?eu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var w=(t,e,r)=>tu(t,typeof e!="symbol"?e+"":e,r),Ai=(t,e,r)=>e.has(t)||so("Cannot "+r);var l=(t,e,r)=>(Ai(t,e,"read from private field"),r?r.call(t):e.get(t)),d=(t,e,r)=>e.has(t)?so("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),m=(t,e,r,n)=>(Ai(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),g=(t,e,r)=>(Ai(t,e,"access private method"),r);var oo=(t,e,r,n)=>({set _(i){m(t,e,i,r)},get _(){return l(t,e,n)}});var en=globalThis,tn=en.ShadowRoot&&(en.ShadyCSS===void 0||en.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Mi=Symbol(),ao=new WeakMap,er=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==Mi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(tn&&e===void 0){let n=r!==void 0&&r.length===1;n&&(e=ao.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&ao.set(r,e))}return e}toString(){return this.cssText}},lo=t=>new er(typeof t=="string"?t:t+"",void 0,Mi),Ee=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((n,i,s)=>n+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[s+1],t[0]);return new er(r,t,Mi)},Ii=(t,e)=>{if(tn)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),i=en.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}},rn=tn?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let n of e.cssRules)r+=n.cssText;return lo(r)})(t):t;var{is:ru,defineProperty:nu,getOwnPropertyDescriptor:iu,getOwnPropertyNames:su,getOwnPropertySymbols:ou,getPrototypeOf:au}=Object,nn=globalThis,uo=nn.trustedTypes,lu=uo?uo.emptyScript:"",uu=nn.reactiveElementPolyfillSupport,tr=(t,e)=>t,Ti={toAttribute(t,e){switch(e){case Boolean:t=t?lu:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},po=(t,e)=>!ru(t,e),co={attribute:!0,type:String,converter:Ti,reflect:!1,hasChanged:po};Symbol.metadata??=Symbol("metadata"),nn.litPropertyMetadata??=new WeakMap;var Se=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=co){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(e,n,r);i!==void 0&&nu(this.prototype,e,i)}}static getPropertyDescriptor(e,r,n){let{get:i,set:s}=iu(this.prototype,e)??{get(){return this[r]},set(o){this[r]=o}};return{get(){return i?.call(this)},set(o){let u=i?.call(this);s.call(this,o),this.requestUpdate(e,u,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??co}static _$Ei(){if(this.hasOwnProperty(tr("elementProperties")))return;let e=au(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(tr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(tr("properties"))){let r=this.properties,n=[...su(r),...ou(r)];for(let i of n)this.createProperty(i,r[i])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let i of n)r.unshift(rn(i))}else e!==void 0&&r.push(rn(e));return r}static _$Eu(e,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ii(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$EC(e,r){let n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){let s=(n.converter?.toAttribute!==void 0?n.converter:Ti).toAttribute(r,n.type);this._$Em=e,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(e,r){let n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let s=n.getPropertyOptions(i),o=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:Ti;this._$Em=i,this[i]=o.fromAttribute(r,s.type),this._$Em=null}}requestUpdate(e,r,n){if(e!==void 0){if(n??=this.constructor.getPropertyOptions(e),!(n.hasChanged??po)(this[e],r))return;this.P(e,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,r,n){this._$AL.has(e)||this._$AL.set(e,r),n.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,s]of this._$Ep)this[i]=s;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,s]of n)s.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],s)}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$EU()}catch(n){throw e=!1,this._$EU(),n}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(r=>this._$EC(r,this[r])),this._$EU()}updated(e){}firstUpdated(e){}};Se.elementStyles=[],Se.shadowRootOptions={mode:"open"},Se[tr("elementProperties")]=new Map,Se[tr("finalized")]=new Map,uu?.({ReactiveElement:Se}),(nn.reactiveElementVersions??=[]).push("2.0.4");var Li=globalThis,sn=Li.trustedTypes,fo=sn?sn.createPolicy("lit-html",{createHTML:t=>t}):void 0,ji="$lit$",_e=`lit$${Math.random().toFixed(9).slice(2)}$`,Di="?"+_e,cu=`<${Di}>`,Xe=document,nr=()=>Xe.createComment(""),ir=t=>t===null||typeof t!="object"&&typeof t!="function",Ri=Array.isArray,wo=t=>Ri(t)||typeof t?.[Symbol.iterator]=="function",Oi=`[
2
+ \f\r]`,rr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ho=/-->/g,mo=/>/g,Ge=RegExp(`>|${Oi}(?:([^\\s"'>=/]+)(${Oi}*=${Oi}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),go=/'/g,yo=/"/g,bo=/^(?:script|style|textarea|title)$/i,Pi=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),h=Pi(1),sp=Pi(2),op=Pi(3),he=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),vo=new WeakMap,Je=Xe.createTreeWalker(Xe,129);function xo(t,e){if(!Ri(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return fo!==void 0?fo.createHTML(e):e}var ko=(t,e)=>{let r=t.length-1,n=[],i,s=e===2?"<svg>":e===3?"<math>":"",o=rr;for(let u=0;u<r;u++){let a=t[u],c,f,p=-1,b=0;for(;b<a.length&&(o.lastIndex=b,f=o.exec(a),f!==null);)b=o.lastIndex,o===rr?f[1]==="!--"?o=ho:f[1]!==void 0?o=mo:f[2]!==void 0?(bo.test(f[2])&&(i=RegExp("</"+f[2],"g")),o=Ge):f[3]!==void 0&&(o=Ge):o===Ge?f[0]===">"?(o=i??rr,p=-1):f[1]===void 0?p=-2:(p=o.lastIndex-f[2].length,c=f[1],o=f[3]===void 0?Ge:f[3]==='"'?yo:go):o===yo||o===go?o=Ge:o===ho||o===mo?o=rr:(o=Ge,i=void 0);let x=o===Ge&&t[u+1].startsWith("/>")?" ":"";s+=o===rr?a+cu:p>=0?(n.push(c),a.slice(0,p)+ji+a.slice(p)+_e+x):a+_e+(p===-2?u:x)}return[xo(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},sr=class t{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let s=0,o=0,u=e.length-1,a=this.parts,[c,f]=ko(e,r);if(this.el=t.createElement(c,n),Je.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(i=Je.nextNode())!==null&&a.length<u;){if(i.nodeType===1){if(i.hasAttributes())for(let p of i.getAttributeNames())if(p.endsWith(ji)){let b=f[o++],x=i.getAttribute(p).split(_e),k=/([.?@])?(.*)/.exec(b);a.push({type:1,index:s,name:k[2],strings:x,ctor:k[1]==="."?an:k[1]==="?"?ln:k[1]==="@"?un:Ye}),i.removeAttribute(p)}else p.startsWith(_e)&&(a.push({type:6,index:s}),i.removeAttribute(p));if(bo.test(i.tagName)){let p=i.textContent.split(_e),b=p.length-1;if(b>0){i.textContent=sn?sn.emptyScript:"";for(let x=0;x<b;x++)i.append(p[x],nr()),Je.nextNode(),a.push({type:2,index:++s});i.append(p[b],nr())}}}else if(i.nodeType===8)if(i.data===Di)a.push({type:2,index:s});else{let p=-1;for(;(p=i.data.indexOf(_e,p+1))!==-1;)a.push({type:7,index:s}),p+=_e.length-1}s++}}static createElement(e,r){let n=Xe.createElement("template");return n.innerHTML=e,n}};function Ke(t,e,r=t,n){if(e===he)return e;let i=n!==void 0?r._$Co?.[n]:r._$Cl,s=ir(e)?void 0:e._$litDirective$;return i?.constructor!==s&&(i?._$AO?.(!1),s===void 0?i=void 0:(i=new s(t),i._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(e=Ke(t,i._$AS(t,e.values),i,n)),e}var on=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,i=(e?.creationScope??Xe).importNode(r,!0);Je.currentNode=i;let s=Je.nextNode(),o=0,u=0,a=n[0];for(;a!==void 0;){if(o===a.index){let c;a.type===2?c=new vt(s,s.nextSibling,this,e):a.type===1?c=new a.ctor(s,a.name,a.strings,this,e):a.type===6&&(c=new cn(s,this,e)),this._$AV.push(c),a=n[++u]}o!==a?.index&&(s=Je.nextNode(),o++)}return Je.currentNode=Xe,i}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},vt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Ke(this,e,r),ir(e)?e===E||e==null||e===""?(this._$AH!==E&&this._$AR(),this._$AH=E):e!==this._$AH&&e!==he&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):wo(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==E&&ir(this._$AH)?this._$AA.nextSibling.data=e:this.T(Xe.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=sr.createElement(xo(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let s=new on(i,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(e){let r=vo.get(e.strings);return r===void 0&&vo.set(e.strings,r=new sr(e)),r}k(e){Ri(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let s of e)i===r.length?r.push(n=new t(this.O(nr()),this.O(nr()),this,this.options)):n=r[i],n._$AI(s),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Ye=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,s){this.type=1,this._$AH=E,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=E}_$AI(e,r=this,n,i){let s=this.strings,o=!1;if(s===void 0)e=Ke(this,e,r,0),o=!ir(e)||e!==this._$AH&&e!==he,o&&(this._$AH=e);else{let u=e,a,c;for(e=s[0],a=0;a<s.length-1;a++)c=Ke(this,u[n+a],r,a),c===he&&(c=this._$AH[a]),o||=!ir(c)||c!==this._$AH[a],c===E?e=E:e!==E&&(e+=(c??"")+s[a+1]),this._$AH[a]=c}o&&!i&&this.j(e)}j(e){e===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},an=class extends Ye{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===E?void 0:e}},ln=class extends Ye{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==E)}},un=class extends Ye{constructor(e,r,n,i,s){super(e,r,n,i,s),this.type=5}_$AI(e,r=this){if((e=Ke(this,e,r,0)??E)===he)return;let n=this._$AH,i=e===E&&n!==E||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==E&&(n===E||i);i&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},cn=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Ke(this,e)}},Co={M:ji,P:_e,A:Di,C:1,L:ko,R:on,D:wo,V:Ke,I:vt,H:Ye,N:ln,U:un,B:an,F:cn},pu=Li.litHtmlPolyfillSupport;pu?.(sr,vt),(Li.litHtmlVersions??=[]).push("3.2.1");var $o=(t,e,r)=>{let n=r?.renderBefore??e,i=n._$litPart$;if(i===void 0){let s=r?.renderBefore??null;n._$litPart$=i=new vt(e.insertBefore(nr(),s),s,void 0,r??{})}return i._$AI(t),i};var S=class extends Se{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=$o(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return he}};S._$litElement$=!0,S.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:S});var fu=globalThis.litElementPolyfillSupport;fu?.({LitElement:S});(globalThis.litElementVersions??=[]).push("4.1.1");var or=class or extends HTMLElement{constructor(){super();w(this,"name","");this.attachShadow({mode:"open"})}attributeChangedCallback(r,n,i){if(n!==i&&or.observedAttributes.includes(r)){switch(r){case"name":this.name=i||"";break}this.render()}}resolveIcon(r){throw new Error("Not implemented")}render(){let r=document.createElement("style");for(r.textContent=`
4
4
  :host {
5
5
  display: inline-block;
6
6
  line-height: 0;
7
7
  }
8
- `;this.shadowRoot?.firstChild;)this.shadowRoot.removeChild(this.shadowRoot.firstChild),this.shadowRoot.appendChild(r);if(!this.name)return;let n=this.resolveIcon(this.name);if(!n){console.warn(`'${this.name}' not found, please add it to ${or.name}`);return}let o=new DOMParser().parseFromString(n,"image/svg+xml").documentElement;o.setAttribute("fill","currentColor"),o.style.width="100%",o.style.height="100%",this.shadowRoot?.appendChild(o)}};w(or,"observedAttributes",["name"]);var un=or;var $o={clock:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
8
+ `;this.shadowRoot?.firstChild;)this.shadowRoot.removeChild(this.shadowRoot.firstChild),this.shadowRoot.appendChild(r);if(!this.name)return;let n=this.resolveIcon(this.name);if(!n){console.warn(`'${this.name}' not found, please add it to ${or.name}`);return}let o=new DOMParser().parseFromString(n,"image/svg+xml").documentElement;o.setAttribute("fill","currentColor"),o.style.width="100%",o.style.height="100%",this.shadowRoot?.appendChild(o)}};w(or,"observedAttributes",["name"]);var pn=or;var Eo={clock:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
9
9
  <path d="M12 6V12H16.5M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z" stroke="#0F172A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
10
10
  </svg>`,"arrow-path":`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
11
11
  <path d="M16.0228 9.34841H21.0154V9.34663M2.98413 19.6444V14.6517M2.98413 14.6517L7.97677 14.6517M2.98413 14.6517L6.16502 17.8347C7.15555 18.8271 8.41261 19.58 9.86436 19.969C14.2654 21.1483 18.7892 18.5364 19.9685 14.1353M4.03073 9.86484C5.21 5.46374 9.73377 2.85194 14.1349 4.03121C15.5866 4.4202 16.8437 5.17312 17.8342 6.1655L21.0154 9.34663M21.0154 4.3558V9.34663" stroke="#0F172A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
@@ -99,11 +99,25 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
99
99
  <path d="M3.75 13.5L14.25 2.25L12 10.5H20.25L9.75 21.75L12 13.5H3.75Z" stroke="#0F172A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
100
100
  </svg>`,"book-open":`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
101
101
  <path d="M12 6.04168C10.4077 4.61656 8.30506 3.75 6 3.75C4.94809 3.75 3.93834 3.93046 3 4.26212V18.5121C3.93834 18.1805 4.94809 18 6 18C8.30506 18 10.4077 18.8666 12 20.2917M12 6.04168C13.5923 4.61656 15.6949 3.75 18 3.75C19.0519 3.75 20.0617 3.93046 21 4.26212V18.5121C20.0617 18.1805 19.0519 18 18 18C15.6949 18 13.5923 18.8666 12 20.2917M12 6.04168V20.2917" stroke="#0F172A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
102
+ </svg>`,"paper-clip":`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
103
+ <path d="M18.375 12.739L10.682 20.432C8.92462 22.1893 6.07538 22.1893 4.31802 20.432C2.56066 18.6746 2.56066 15.8254 4.31802 14.068L15.2573 3.12868C16.4289 1.95711 18.3283 1.95711 19.4999 3.12868C20.6715 4.30025 20.6715 6.19975 19.4999 7.37132L8.55158 18.3197M8.56066 18.3107C8.55764 18.3137 8.55462 18.3167 8.55158 18.3197M14.2498 8.37865L6.43934 16.1893C5.85355 16.7751 5.85355 17.7249 6.43934 18.3107C7.02211 18.8934 7.9651 18.8964 8.55158 18.3197" stroke="#0F172A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
102
104
  </svg>`,share:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
103
105
  <path d="M7.21721 10.9071C6.83295 10.2169 6.096 9.75 5.25 9.75C4.00736 9.75 3 10.7574 3 12C3 13.2426 4.00736 14.25 5.25 14.25C6.096 14.25 6.83295 13.7831 7.21721 13.0929M7.21721 10.9071C7.39737 11.2307 7.5 11.6034 7.5 12C7.5 12.3966 7.39737 12.7693 7.21721 13.0929M7.21721 10.9071L16.7828 5.5929M7.21721 13.0929L16.7828 18.4071M16.7828 18.4071C16.6026 18.7307 16.5 19.1034 16.5 19.5C16.5 20.7426 17.5074 21.75 18.75 21.75C19.9926 21.75 21 20.7426 21 19.5C21 18.2574 19.9926 17.25 18.75 17.25C17.904 17.25 17.1671 17.7169 16.7828 18.4071ZM16.7828 5.5929C17.1671 6.28309 17.904 6.75 18.75 6.75C19.9926 6.75 21 5.74264 21 4.5C21 3.25736 19.9926 2.25 18.75 2.25C17.5074 2.25 16.5 3.25736 16.5 4.5C16.5 4.89664 16.6026 5.26931 16.7828 5.5929Z" stroke="#0F172A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
104
106
  </svg>`,"calendar-days":`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
105
107
  <path d="M6.75 3V5.25M17.25 3V5.25M3 18.75V7.5C3 6.25736 4.00736 5.25 5.25 5.25H18.75C19.9926 5.25 21 6.25736 21 7.5V18.75M3 18.75C3 19.9926 4.00736 21 5.25 21H18.75C19.9926 21 21 19.9926 21 18.75M3 18.75V11.25C3 10.0074 4.00736 9 5.25 9H18.75C19.9926 9 21 10.0074 21 11.25V18.75M12 12.75H12.0075V12.7575H12V12.75ZM12 15H12.0075V15.0075H12V15ZM12 17.25H12.0075V17.2575H12V17.25ZM9.75 15H9.7575V15.0075H9.75V15ZM9.75 17.25H9.7575V17.2575H9.75V17.25ZM7.5 15H7.5075V15.0075H7.5V15ZM7.5 17.25H7.5075V17.2575H7.5V17.25ZM14.25 12.75H14.2575V12.7575H14.25V12.75ZM14.25 15H14.2575V15.0075H14.25V15ZM14.25 17.25H14.2575V17.2575H14.25V17.25ZM16.5 12.75H16.5075V12.7575H16.5V12.75ZM16.5 15H16.5075V15.0075H16.5V15Z" stroke="#0F172A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
106
- </svg>`};var fu=$o,Ri=class extends un{resolveIcon(e){return fu[e]}render(){super.render();let e=this.shadowRoot?.querySelector("svg");if(!e)throw new Error("svgEl not found");e.setAttribute("fill","none"),e.querySelectorAll("[stroke]").forEach(r=>{r.setAttribute("stroke","currentColor")})}};customElements.get("hi-outline")||customElements.define("hi-outline",Ri);function Gi(t){return[...t.v,(t.i?"!":"")+t.n].join(":")}function hu(t,e=","){return t.map(Gi).join(e)}var To=typeof CSS<"u"&&CSS.escape||(t=>t.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function cn(t){for(var e=9,r=t.length;r--;)e=Math.imul(e^t.charCodeAt(r),1597334677);return"#"+((e^e>>>9)>>>0).toString(36)}function hn(t,e="@media "){return e+P(t).map(r=>(typeof r=="string"&&(r={min:r}),r.raw||Object.keys(r).map(n=>`(${n}-width:${r[n]})`).join(" and "))).join(",")}function P(t=[]){return Array.isArray(t)?t:t==null?[]:[t]}function Eo(t){return t}function dn(){}var W={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function Oo(t){return t.match(/[-=:;]/g)?.length||0}function Ni(t){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(t)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(Oo(t),15)<<18}var du=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function Zi({n:t,i:e,v:r=[]},n,i,s){t&&(t=Gi({n:t,i:e,v:r})),s=[...P(s)];for(let u of r){let a=n.theme("screens",u);for(let c of P(a&&hn(a)||n.v(u))){var o;s.push(c),i|=a?67108864|Ni(c):u=="dark"?1073741824:c[0]=="@"?Ni(c):(o=c,1<<~(/:([a-z-]+)/.test(o)&&~du.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:t,p:i,r:s,i:e}}var jo=new Map;function Bi(t){if(t.d){let e=[],r=Ui(t.r.reduce((n,i)=>i[0]=="@"?(e.push(i),n):i?Ui(n,s=>Ui(i,o=>{let u=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(u){let a=s.indexOf(u[1]);return~a?s.slice(0,a)+u[0]+s.slice(a+u[1].length):Vi(s,o)}return Vi(o,s)})):n,"&"),n=>Vi(n,t.n?"."+To(t.n):""));return r&&e.push(r.replace(/:merge\((.+?)\)/g,"$1")),e.reduceRight((n,i)=>i+"{"+n+"}",t.d)}}function Ui(t,e){return t.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(r,n,i)=>e(n)+i)}function Vi(t,e){return t.replace(/&/g,e)}var So=new Intl.Collator("en",{numeric:!0});function Do(t,e){for(var r=0,n=t.length;r<n;){let i=n+r>>1;0>=Lo(t[i],e)?r=i+1:n=i}return n}function Lo(t,e){let r=t.p&W.o;return r==(e.p&W.o)&&(r==W.b||r==W.o)?0:t.p-e.p||t.o-e.o||So.compare(_o(t.n),_o(e.n))||So.compare(Ao(t.n),Ao(e.n))}function _o(t){return(t||"").split(/:/).pop().split("/").pop()||"\0"}function Ao(t){return(t||"").replace(/\W/g,e=>String.fromCharCode(127+e.charCodeAt(0)))+"\0"}function Fi(t,e){return Math.round(parseInt(t,16)*e)}function ce(t,e={}){if(typeof t=="function")return t(e);let{opacityValue:r="1",opacityVariable:n}=e,i=n?`var(${n})`:r;if(t.includes("<alpha-value>"))return t.replace("<alpha-value>",i);if(t[0]=="#"&&(t.length==4||t.length==7)){let s=(t.length-1)/3,o=[17,1,.062272][s-1];return`rgba(${[Fi(t.substr(1,s),o),Fi(t.substr(1+s,s),o),Fi(t.substr(1+2*s,s),o),i]})`}return i=="1"?t:i=="0"?"#0000":t.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${i})`)}function Po(t,e,r,n,i=[]){return function s(o,{n:u,p:a,r:c=[],i:f},p){let b=[],x="",k=0,_=0;for(let $ in o||{}){var M,D;let A=o[$];if($[0]=="@"){if(!A)continue;if($[1]=="a"){b.push(...Ji(u,a,fn(""+A),p,a,c,f,!0));continue}if($[1]=="l"){for(let I of P(A))b.push(...s(I,{n:u,p:(M=W[$[7]],a&~W.o|M),r:$[7]=="d"?[]:c,i:f},p));continue}if($[1]=="i"){b.push(...P(A).map(I=>({p:-1,o:0,r:[],d:$+" "+I})));continue}if($[1]=="k"){b.push({p:W.d,o:0,r:[$],d:s(A,{p:W.d},p).map(Bi).join("")});continue}if($[1]=="f"){b.push(...P(A).map(I=>({p:W.d,o:0,r:[$],d:s(I,{p:W.d},p).map(Bi).join("")})));continue}}if(typeof A!="object"||Array.isArray(A))$=="label"&&A?u=A+cn(JSON.stringify([a,f,o])):(A||A===0)&&($=$.replace(/[A-Z]/g,I=>"-"+I.toLowerCase()),_+=1,k=Math.max(k,(D=$)[0]=="-"?0:Oo(D)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(D)?+!!RegExp.$1||-!!RegExp.$2:0)+1),x+=(x?";":"")+P(A).map(I=>p.s($,Xi(""+I,p.theme)+(f?" !important":""))).join(";"));else if($[0]=="@"||$.includes("&")){let I=a;$[0]=="@"&&($=$.replace(/\bscreen\(([^)]+)\)/g,(H,z)=>{let J=p.theme("screens",z);return J?(I|=67108864,hn(J,"")):H}),I|=Ni($)),b.push(...s(A,{n:u,p:I,r:[...c,$],i:f},p))}else b.push(...s(A,{p:a,r:[...c,$]},p))}return b.unshift({n:u,p:a,o:Math.max(0,15-_)+1.5*Math.min(k||15,15),r:c,d:x}),b.sort(Lo)}(t,Zi(e,r,n,i),r)}function Xi(t,e){return t.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(r,n,i,s,o="")=>{let u=e(i,o);return typeof u=="function"&&/color|fill|stroke/i.test(i)?ce(u):""+P(u).filter(a=>Object(a)!==a)})}function Ro(t,e){let r,n=[];for(let i of t)i.d&&i.n?r?.p==i.p&&""+r.r==""+i.r?(r.c=[r.c,i.c].filter(Boolean).join(" "),r.d=r.d+";"+i.d):n.push(r={...i,n:i.n&&e}):n.push({...i,n:i.n&&e});return n}function pn(t,e,r=W.u,n,i){let s=[];for(let o of t)for(let u of function(a,c,f,p,b){a={...a,i:a.i||b};let x=function(k,_){let M=jo.get(k.n);return M?M(k,_):_.r(k.n,k.v[0]=="dark")}(a,c);return x?typeof x=="string"?({r:p,p:f}=Zi(a,c,f,p),Ro(pn(fn(x),c,f,p,a.i),a.n)):Array.isArray(x)?x.map(k=>{var _,M;return{o:0,...k,r:[...P(p),...P(k.r)],p:(_=f,M=k.p??f,_&~W.o|M)}}):Po(x,a,c,f,p):[{c:Gi(a),p:0,o:0,r:[]}]}(o,e,r,n,i))s.splice(Do(s,u),0,u);return s}function Ji(t,e,r,n,i,s,o,u){return Ro((u?r.flatMap(a=>pn([a],n,i,s,o)):pn(r,n,i,s,o)).map(a=>a.p&W.o&&(a.n||e==W.b)?{...a,p:a.p&~W.o|e,o:0}:a),t)}function mu(t,e,r,n){var i;return i=(s,o)=>{let{n:u,p:a,r:c,i:f}=Zi(s,o,e);return r&&Ji(u,e,r,o,a,c,f,n)},jo.set(t,i),t}function Hi(t,e,r){if(t[t.length-1]!="("){let n=[],i=!1,s=!1,o="";for(let u of t)if(!(u=="("||/[~@]$/.test(u))){if(u[0]=="!"&&(u=u.slice(1),i=!i),u.endsWith(":")){n[u=="dark:"?"unshift":"push"](u.slice(0,-1));continue}u[0]=="-"&&(u=u.slice(1),s=!s),u.endsWith("-")&&(u=u.slice(0,-1)),u&&u!="&"&&(o+=(o&&"-")+u)}o&&(s&&(o="-"+o),e[0].push({n:o,v:n.filter(gu),i}))}}function gu(t,e,r){return r.indexOf(t)==e}var Mo=new Map;function fn(t){let e=Mo.get(t);if(!e){let r=[],n=[[]],i=0,s=0,o=null,u=0,a=(c,f=0)=>{i!=u&&(r.push(t.slice(i,u+f)),c&&Hi(r,n)),i=u+1};for(;u<t.length;u++){let c=t[u];if(s)t[u-1]!="\\"&&(s+=+(c=="[")||-(c=="]"));else if(c=="[")s+=1;else if(o)t[u-1]!="\\"&&o.test(t.slice(u))&&(o=null,i=u+RegExp.lastMatch.length);else if(c=="/"&&t[u-1]!="\\"&&(t[u+1]=="*"||t[u+1]=="/"))o=t[u+1]=="*"?/^\*\//:/^[\r\n]/;else if(c=="(")a(),r.push(c);else if(c==":")t[u+1]!=":"&&a(!1,1);else if(/[\s,)]/.test(c)){a(!0);let f=r.lastIndexOf("(");if(c==")"){let p=r[f-1];if(/[~@]$/.test(p)){let b=n.shift();r.length=f,Hi([...r,"#"],n);let{v:x}=n[0].pop();for(let k of b)k.v.splice(+(k.v[0]=="dark")-+(x[0]=="dark"),x.length);Hi([...r,mu(p.length>1?p.slice(0,-1)+cn(JSON.stringify([p,b])):p+"("+hu(b)+")",W.a,b,/@$/.test(p))],n)}f=r.lastIndexOf("(",f-1)}r.length=f+1}else/[~@]/.test(c)&&t[u+1]=="("&&n.unshift([])}a(!0),Mo.set(t,e=n[0])}return e}function y(t,e,r){return[t,qi(e,r)]}function qi(t,e){return typeof t=="function"?t:typeof t=="string"&&/^[\w-]+$/.test(t)?(r,n)=>({[t]:e?e(r,n):zi(r,1)}):r=>t||{[r[1]]:zi(r,2)}}function zi(t,e,r=t.slice(e).find(Boolean)||t.$$||t.input){return t.input[0]=="-"?`calc(${r} * -1)`:r}function v(t,e,r,n){return[t,Ki(e,r,n)]}function Ki(t,e,r){let n=typeof e=="string"?(i,s)=>({[e]:r?r(i,s):i._}):e||(({1:i,_:s},o,u)=>({[i||u]:s}));return(i,s)=>{let o=Uo(t||i[1]),u=s.theme(o,i.$$)??we(i.$$,o,s);if(u!=null)return i._=zi(i,0,u),n(i,s,o)}}function G(t,e={},r){return[t,yu(e,r)]}function yu(t={},e){return(r,n)=>{let{section:i=Uo(r[0]).replace("-","")+"Color"}=t,[s,o]=vu(r.$$);if(!s)return;let u=n.theme(i,s)||we(s,i,n);if(!u||typeof u=="object")return;let{opacityVariable:a=`--tw-${r[0].replace(/-$/,"")}-opacity`,opacitySection:c=i.replace("Color","Opacity"),property:f=i,selector:p}=t,b=n.theme(c,o||"DEFAULT")||o&&we(o,c,n),x=e||(({_})=>{let M=ar(f,_);return p?{[p]:M}:M});r._={value:ce(u,{opacityVariable:a||void 0,opacityValue:b||void 0}),color:_=>ce(u,_),opacityVariable:a||void 0,opacityValue:b||void 0};let k=x(r,n);if(!r.dark){let _=n.d(i,s,u);_&&_!==u&&(r._={value:ce(_,{opacityVariable:a||void 0,opacityValue:b||"1"}),color:M=>ce(_,M),opacityVariable:a||void 0,opacityValue:b||void 0},k={"&":k,[n.v("dark")]:x(r,n)})}return k}}function vu(t){return(t.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function ar(t,e){let r={};return typeof e=="string"?r[t]=e:(e.opacityVariable&&e.value.includes(e.opacityVariable)&&(r[e.opacityVariable]=e.opacityValue||"1"),r[t]=e.value),r}function we(t,e,r){if(t[0]=="["&&t.slice(-1)=="]"){if(t=yt(Xi(t.slice(1,-1),r.theme)),!e)return t;if(!(/color|fill|stroke/i.test(e)&&!(/^color:/.test(t)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(t))||/image/i.test(e)&&!(/^image:/.test(t)||/^[a-z-]+\(/.test(t))||/weight/i.test(e)&&!(/^(number|any):/.test(t)||/^\d+$/.test(t))||/position/i.test(e)&&/^(length|size):/.test(t)))return t.replace(/^[a-z-]+:/,"")}}function Uo(t){return t.replace(/-./g,e=>e[1].toUpperCase())}function yt(t){return t.includes("url(")?t.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,r="",n,i="")=>yt(r)+n+yt(i)):t.replace(/(^|[^\\])_+/g,(e,r)=>r+" ".repeat(e.length-r.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,e=>e.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}function lr({presets:t=[],...e}){let r={darkMode:void 0,darkColor:void 0,preflight:e.preflight!==!1&&[],theme:{},variants:P(e.variants),rules:P(e.rules),ignorelist:P(e.ignorelist),hash:void 0,stringify:(n,i)=>n+":"+i,finalize:[]};for(let n of P([...t,{darkMode:e.darkMode,darkColor:e.darkColor,preflight:e.preflight!==!1&&P(e.preflight),theme:e.theme,hash:e.hash,stringify:e.stringify,finalize:e.finalize}])){let{preflight:i,darkMode:s=r.darkMode,darkColor:o=r.darkColor,theme:u,variants:a,rules:c,ignorelist:f,hash:p=r.hash,stringify:b=r.stringify,finalize:x}=typeof n=="function"?n(r):n;r={preflight:r.preflight!==!1&&i!==!1&&[...r.preflight,...P(i)],darkMode:s,darkColor:o,theme:{...r.theme,...u,extend:{...r.theme.extend,...u?.extend}},variants:[...r.variants,...P(a)],rules:[...r.rules,...P(c)],ignorelist:[...r.ignorelist,...P(f)],hash:p,stringify:b,finalize:[...r.finalize,...P(x)]}}return r}function Io(t,e,r,n,i,s){for(let o of e){let u=r.get(o);u||r.set(o,u=n(o));let a=u(t,i,s);if(a)return a}}function wu(t){var e;return Wi(t[0],typeof(e=t[1])=="function"?e:()=>e)}function bu(t){var e,r;return Array.isArray(t)?Wi(t[0],qi(t[1],t[2])):Wi(t,qi(e,r))}function Wi(t,e){return Vo(t,(r,n,i,s)=>{let o=n.exec(r);if(o)return o.$$=r.slice(o[0].length),o.dark=s,e(o,i)})}function Vo(t,e){let r=P(t).map(xu);return(n,i,s)=>{for(let o of r){let u=e(n,o,i,s);if(u)return u}}}function xu(t){return typeof t=="string"?RegExp("^"+t+(t.includes("$")||t.slice(-1)=="-"?"":"$")):t}function Fo(t,e){let r=lr(t),n=function({theme:a,darkMode:c,darkColor:f=dn,variants:p,rules:b,hash:x,stringify:k,ignorelist:_,finalize:M}){let D=new Map,$=new Map,A=new Map,I=new Map,H=Vo(_,(j,K)=>K.test(j));p.push(["dark",Array.isArray(c)||c=="class"?`${P(c)[1]||".dark"} &`:typeof c=="string"&&c!="media"?c:"@media (prefers-color-scheme:dark)"]);let z=typeof x=="function"?j=>x(j,cn):x?cn:Eo;z!==Eo&&M.push(j=>({...j,n:j.n&&z(j.n),d:j.d?.replace(/--(tw(?:-[\w-]+)?)\b/g,(K,re)=>"--"+z(re).replace("#",""))}));let J={theme:function({extend:j={},...K}){let re={},Si={get colors(){return ze("colors")},theme:ze,negative(){return{}},breakpoints(N){let Q={};for(let ie in N)typeof N[ie]=="string"&&(Q["screen-"+ie]=N[ie]);return Q}};return ze;function ze(N,Q,ie,Kt){if(N){if({1:N,2:Kt}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(N)||[,N],/[.[]/.test(N)){let $e=[];N.replace(/\[([^\]]+)\]|([^.[]+)/g,(Ge,Qt,Yl=Qt)=>$e.push(Yl)),N=$e.shift(),ie=Q,Q=$e.join("-")}let ve=re[N]||Object.assign(Object.assign(re[N]={},Kr(K,N)),Kr(j,N));if(Q==null)return ve;Q||(Q="DEFAULT");let We=ve[Q]??Q.split("-").reduce(($e,Ge)=>$e?.[Ge],ve)??ie;return Kt?ce(We,{opacityValue:Xi(Kt,ze)}):We}let Yt={};for(let ve of[...Object.keys(K),...Object.keys(j)])Yt[ve]=ze(ve);return Yt}function Kr(N,Q){let ie=N[Q];return typeof ie=="function"&&(ie=ie(Si)),ie&&/color|fill|stroke/i.test(Q)?function Kt(Yt,ve=[]){let We={};for(let $e in Yt){let Ge=Yt[$e],Qt=[...ve,$e];We[Qt.join("-")]=Ge,$e=="DEFAULT"&&(Qt=ve,We[ve.join("-")]=Ge),typeof Ge=="object"&&Object.assign(We,Kt(Ge,Qt))}return We}(ie):ie}}(a),e:To,h:z,s(j,K){return k(j,K,J)},d(j,K,re){return f(j,K,J,re)},v(j){return D.has(j)||D.set(j,Io(j,p,$,wu,J)||"&:"+j),D.get(j)},r(j,K){let re=JSON.stringify([j,K]);return A.has(re)||A.set(re,!H(j,J)&&Io(j,b,I,bu,J,K)),A.get(re)},f(j){return M.reduce((K,re)=>re(K,J),j)}};return J}(r),i=new Map,s=[],o=new Set;e.resume(a=>i.set(a,a),(a,c)=>{e.insert(a,s.length,c),s.push(c),o.add(a)});function u(a){let c=n.f(a),f=Bi(c);if(f&&!o.has(f)){o.add(f);let p=Do(s,a);e.insert(f,p,a),s.splice(p,0,a)}return c.n}return Object.defineProperties(function(c){if(!i.size)for(let p of P(r.preflight))typeof p=="function"&&(p=p(n)),p&&(typeof p=="string"?Ji("",W.b,fn(p),n,W.b,[],!1,!0):Po(p,{},n,W.b)).forEach(u);c=""+c;let f=i.get(c);if(!f){let p=new Set;for(let b of pn(fn(c),n))p.add(b.c).add(u(b));f=[...p].filter(Boolean).join(" "),i.set(c,f).set(f,f)}return f},Object.getOwnPropertyDescriptors({get target(){return e.target},theme:n.theme,config:r,snapshot(){let a=e.snapshot(),c=new Set(o),f=new Map(i),p=[...s];return()=>{a(),o=c,i=f,s=p}},clear(){e.clear(),o=new Set,i=new Map,s=[]},destroy(){this.clear(),e.destroy()}}))}function ku(t,e){return t!=e&&""+t.split(" ").sort()!=""+e.split(" ").sort()}function Ho(t){let e=new MutationObserver(r);return{observe(i){e.observe(i,{attributeFilter:["class"],subtree:!0,childList:!0}),n(i),r([{target:i,type:""}])},disconnect(){e.disconnect()}};function r(i){for(let{type:s,target:o}of i)if(s[0]=="a")n(o);else for(let u of o.querySelectorAll("[class]"))n(u);e.takeRecords()}function n(i){let s,o=i.getAttribute?.("class");o&&ku(o,s=t(o))&&i.setAttribute("class",s)}}function Cu(t){let e=document.querySelector(t||'style[data-twind=""]');return(!e||e.tagName!="STYLE")&&(e=document.createElement("style"),document.head.prepend(e)),e.dataset.twind="claimed",e}function mn(t){let e=t?.cssRules?t:(t&&typeof t!="string"?t:Cu(t)).sheet;return{target:e,snapshot(){let r=Array.from(e.cssRules,n=>n.cssText);return()=>{this.clear(),r.forEach(this.insert)}},clear(){for(let r=e.cssRules.length;r--;)e.deleteRule(r)},destroy(){e.ownerNode?.remove()},insert(r,n){try{e.insertRule(r,n)}catch{e.insertRule(":root{}",n)}},resume:dn}}var $u=new Map([["align-self","-ms-grid-row-align"],["color-adjust","-webkit-print-color-adjust"],["column-gap","grid-column-gap"],["forced-color-adjust","-ms-high-contrast-adjust"],["gap","grid-gap"],["grid-template-columns","-ms-grid-columns"],["grid-template-rows","-ms-grid-rows"],["justify-self","-ms-grid-column-align"],["margin-inline-end","-webkit-margin-end"],["margin-inline-start","-webkit-margin-start"],["mask-border","-webkit-mask-box-image"],["mask-border-outset","-webkit-mask-box-image-outset"],["mask-border-slice","-webkit-mask-box-image-slice"],["mask-border-source","-webkit-mask-box-image-source"],["mask-border-repeat","-webkit-mask-box-image-repeat"],["mask-border-width","-webkit-mask-box-image-width"],["overflow-wrap","word-wrap"],["padding-inline-end","-webkit-padding-end"],["padding-inline-start","-webkit-padding-start"],["print-color-adjust","color-adjust"],["row-gap","grid-row-gap"],["scroll-margin-bottom","scroll-snap-margin-bottom"],["scroll-margin-left","scroll-snap-margin-left"],["scroll-margin-right","scroll-snap-margin-right"],["scroll-margin-top","scroll-snap-margin-top"],["scroll-margin","scroll-snap-margin"],["text-combine-upright","-ms-text-combine-horizontal"]]);function No(t){return $u.get(t)}function Bo(t){var e=/^(?:(text-(?:decoration$|e|or|si)|back(?:ground-cl|d|f)|box-d|mask(?:$|-[ispro]|-cl)|pr|hyphena|flex-d)|(tab-|column(?!-s)|text-align-l)|(ap)|u|hy)/i.exec(t);return e?e[1]?1:e[2]?2:e[3]?3:5:0}function qo(t,e){var r=/^(?:(pos)|(cli)|(background-i)|(flex(?:$|-b)|(?:max-|min-)?(?:block-s|inl|he|widt))|dis)/i.exec(t);return r?r[1]?/^sti/i.test(e)?1:0:r[2]?/^pat/i.test(e)?1:0:r[3]?/^image-/i.test(e)?1:0:r[4]?e[3]==="-"?2:0:/^(?:inline-)?grid$/i.test(e)?4:0:0}var Eu=[["-webkit-",1],["-moz-",2],["-ms-",4]];function gn(){return({stringify:t})=>({stringify(e,r,n){let i="",s=No(e);s&&(i+=t(s,r,n)+";");let o=Bo(e),u=qo(e,r);for(let a of Eu)o&a[1]&&(i+=t(a[0]+e,r,n)+";"),u&a[1]&&(i+=t(e,a[0]+r,n)+";");return i+t(e,r,n)}})}function yn(){return{rules:[["line-clamp-none",{"-webkit-line-clamp":"unset"}],["line-clamp-",Ki("lineClamp",({_:t})=>zo(t))],["line-clamp-(\\d+)",({1:t})=>zo(t)]]}}function zo(t){return{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":`${t}`}}var cr={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...se(4,"rem",4,.5,.5),...se(12,"rem",4,5),14:"3.5rem",...se(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:O("blur"),backdropBrightness:O("brightness"),backdropContrast:O("contrast"),backdropGrayscale:O("grayscale"),backdropHueRotate:O("hueRotate"),backdropInvert:O("invert"),backdropOpacity:O("opacity"),backdropSaturate:O("saturate"),backdropSepia:O("sepia"),backgroundColor:O("colors"),backgroundImage:{none:"none"},backgroundOpacity:O("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...se(200,"",100,0,50),...se(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:t})=>({DEFAULT:t("colors.gray.200","currentColor"),...t("colors")}),borderOpacity:O("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:O("spacing"),borderWidth:{DEFAULT:"1px",...pe(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:O("colors"),caretColor:O("colors"),accentColor:({theme:t})=>({auto:"auto",...t("colors")}),contrast:{...se(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:O("borderColor"),divideOpacity:O("borderOpacity"),divideWidth:O("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:t})=>({...t("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:t})=>({...t("spacing"),...ur(2,6),...ur(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:O("spacing"),gradientColorStops:O("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:t})=>({...t("spacing"),...ur(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:t})=>({...t("spacing"),...ur(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...se(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:t})=>({auto:"auto",...t("spacing")}),maxHeight:({theme:t})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...t("spacing")}),maxWidth:({theme:t,breakpoints:e})=>({...e(t("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...se(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:O("spacing"),placeholderColor:O("colors"),placeholderOpacity:O("opacity"),outlineColor:O("colors"),outlineOffset:pe(8,"px"),outlineWidth:pe(8,"px"),ringColor:({theme:t})=>({...t("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:O("colors"),ringOffsetWidth:pe(8,"px"),ringOpacity:({theme:t})=>({...t("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...pe(8,"px")},rotate:{...pe(2,"deg"),...pe(12,"deg",3),...pe(180,"deg",45)},saturate:se(200,"",100,0,50),scale:{...se(150,"",100,0,50),...se(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:O("spacing"),scrollPadding:O("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...pe(2,"deg"),...pe(12,"deg",3)},space:O("spacing"),stroke:({theme:t})=>({...t("colors"),none:"none"}),strokeWidth:se(2),textColor:O("colors"),textDecorationColor:O("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...pe(8,"px")},textUnderlineOffset:{auto:"auto",...pe(8,"px")},textIndent:O("spacing"),textOpacity:O("opacity"),transitionDuration:({theme:t})=>({...t("durations"),DEFAULT:"150ms"}),transitionDelay:O("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:t})=>({...t("spacing"),...ur(2,4),full:"100%"}),width:({theme:t})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...t("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...se(50,"",1,0,10),auto:"auto"}};function ur(t,e){let r={};do for(var n=1;n<t;n++)r[`${n}/${t}`]=Number((n/t*100).toFixed(6))+"%";while(++t<=e);return r}function pe(t,e,r=0){let n={};for(;r<=t;r=2*r||1)n[r]=r+e;return n}function se(t,e="",r=1,n=0,i=1,s={}){for(;n<=t;n+=i)s[n]=n/r+e;return s}function O(t){return({theme:e})=>e(t)}var Wo={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${cr.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${cr.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"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":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}};var Yo=[y("\\[([-\\w]+):(.+)]",({1:t,2:e},r)=>({"@layer overrides":{"&":{[t]:we(`[${e}]`,"",r)}}})),y("(group|peer)([~/][^-[]+)?",({input:t},{h:e})=>[{c:e(t)}]),v("aspect-","aspectRatio"),y("container",(t,{theme:e})=>{let{screens:r=e("screens"),center:n,padding:i}=e("container"),s={width:"100%",marginRight:n&&"auto",marginLeft:n&&"auto",...o("xs")};for(let u in r){let a=r[u];typeof a=="string"&&(s[hn(a)]={"&":{maxWidth:a,...o(u)}})}return s;function o(u){let a=i&&(typeof i=="string"?i:i[u]||i.DEFAULT);if(a)return{paddingRight:a,paddingLeft:a}}}),v("content-","content",({_:t})=>({"--tw-content":t,content:"var(--tw-content)"})),y("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),y("box-(border|content)","boxSizing",({1:t})=>t+"-box"),y("hidden",{display:"none"}),y("table-(auto|fixed)","tableLayout"),y(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",y("isolate","isolation"),y("object-(contain|cover|fill|none|scale-down)","objectFit"),v("object-","objectPosition"),y("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",vn),y("overscroll(-[xy])?-(auto|contain|none)",({1:t="",2:e})=>({["overscroll-behavior"+t]:e})),y("(static|fixed|absolute|relative|sticky)","position"),v("-?inset(-[xy])?(?:$|-)","inset",({1:t,_:e})=>({top:t!="-x"&&e,right:t!="-y"&&e,bottom:t!="-x"&&e,left:t!="-y"&&e})),v("-?(top|bottom|left|right)(?:$|-)","inset"),y("(visible|collapse)","visibility"),y("invisible",{visibility:"hidden"}),v("-?z-","zIndex"),y("flex-((row|col)(-reverse)?)","flexDirection",Go),y("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),v("(flex-(?:grow|shrink))(?:$|-)"),v("(flex)-"),v("grow(?:$|-)","flexGrow"),v("shrink(?:$|-)","flexShrink"),v("basis-","flexBasis"),v("-?(order)-"),"-?(order)-(\\d+)",v("grid-cols-","gridTemplateColumns"),y("grid-cols-(\\d+)","gridTemplateColumns",Ko),v("col-","gridColumn"),y("col-(span)-(\\d+)","gridColumn",Jo),v("col-start-","gridColumnStart"),y("col-start-(auto|\\d+)","gridColumnStart"),v("col-end-","gridColumnEnd"),y("col-end-(auto|\\d+)","gridColumnEnd"),v("grid-rows-","gridTemplateRows"),y("grid-rows-(\\d+)","gridTemplateRows",Ko),v("row-","gridRow"),y("row-(span)-(\\d+)","gridRow",Jo),v("row-start-","gridRowStart"),y("row-start-(auto|\\d+)","gridRowStart"),v("row-end-","gridRowEnd"),y("row-end-(auto|\\d+)","gridRowEnd"),y("grid-flow-((row|col)(-dense)?)","gridAutoFlow",t=>vn(Go(t))),y("grid-flow-(dense)","gridAutoFlow"),v("auto-cols-","gridAutoColumns"),v("auto-rows-","gridAutoRows"),v("gap-x(?:$|-)","gap","columnGap"),v("gap-y(?:$|-)","gap","rowGap"),v("gap(?:$|-)","gap"),"(justify-(?:items|self))-",y("justify-","justifyContent",Zo),y("(content|items|self)-",t=>({["align-"+t[1]]:Zo(t)})),y("(place-(content|items|self))-",({1:t,$$:e})=>({[t]:("wun".includes(e[3])?"space-":"")+e})),v("p([xytrbl])?(?:$|-)","padding",vt("padding")),v("-?m([xytrbl])?(?:$|-)","margin",vt("margin")),v("-?space-(x|y)(?:$|-)","space",({1:t,_:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${t}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[t]]:`calc(${e} * calc(1 - var(--tw-space-${t}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[t]]:`calc(${e} * var(--tw-space-${t}-reverse))`}})),y("space-(x|y)-reverse",({1:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${t}-reverse`]:"1"}})),v("w-","width"),v("min-w-","minWidth"),v("max-w-","maxWidth"),v("h-","height"),v("min-h-","minHeight"),v("max-h-","maxHeight"),v("font-","fontWeight"),v("font-","fontFamily",({_:t})=>typeof(t=P(t))[1]=="string"?{fontFamily:de(t)}:{fontFamily:de(t[0]),...t[1]}),y("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),y("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),y("italic","fontStyle"),y("not-italic",{fontStyle:"normal"}),y("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:t,2:e="",3:r})=>e=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(r?"numeric-fraction":"pt".includes(e[0])?"numeric-spacing":e?"numeric-figure":t)]:t,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...De({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),v("tracking-","letterSpacing"),v("leading-","lineHeight"),y("list-(inside|outside)","listStylePosition"),v("list-","listStyleType"),y("list-","listStyleType"),v("placeholder-opacity-","placeholderOpacity",({_:t})=>({"&::placeholder":{"--tw-placeholder-opacity":t}})),G("placeholder-",{property:"color",selector:"&::placeholder"}),y("text-(left|center|right|justify|start|end)","textAlign"),y("text-(ellipsis|clip)","textOverflow"),v("text-opacity-","textOpacity","--tw-text-opacity"),G("text-",{property:"color"}),v("text-","fontSize",({_:t})=>typeof t=="string"?{fontSize:t}:{fontSize:t[0],...typeof t[1]=="string"?{lineHeight:t[1]}:t[1]}),v("indent-","textIndent"),y("(overline|underline|line-through)","textDecorationLine"),y("no-underline",{textDecorationLine:"none"}),v("underline-offset-","textUnderlineOffset"),G("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),v("decoration-","textDecorationThickness"),y("decoration-","textDecorationStyle"),y("(uppercase|lowercase|capitalize)","textTransform"),y("normal-case",{textTransform:"none"}),y("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),y("align-","verticalAlign"),y("whitespace-","whiteSpace"),y("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),y("break-words",{overflowWrap:"break-word"}),y("break-all",{wordBreak:"break-all"}),y("break-keep",{wordBreak:"keep-all"}),G("caret-",{opacityVariable:!1,opacitySection:"opacity"}),G("accent-",{opacityVariable:!1,opacitySection:"opacity"}),y("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:t})=>`linear-gradient(to ${Qe(t," ")},var(--tw-gradient-stops))`),G("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-gradient-from":t.value,"--tw-gradient-to":t.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),G("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-gradient-to":t.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${t.value},var(--tw-gradient-to)`})),G("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),y("bg-(fixed|local|scroll)","backgroundAttachment"),y("bg-origin-(border|padding|content)","backgroundOrigin",({1:t})=>t+"-box"),y(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),y("bg-blend-","backgroundBlendMode"),y("bg-clip-(border|padding|content|text)","backgroundClip",({1:t})=>t+(t=="text"?"":"-box")),v("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),G("bg-",{section:"backgroundColor"}),v("bg-","backgroundImage"),v("bg-","backgroundPosition"),y("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",vn),v("bg-","backgroundSize"),v("rounded(?:$|-)","borderRadius"),v("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:t,_:e})=>{let r={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[t]||[t,t];return{[`border-${Qe(r[0])}-radius`]:e,[`border-${Qe(r[1])}-radius`]:e}}),y("border-(collapse|separate)","borderCollapse"),v("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),y("border-(solid|dashed|dotted|double|none)","borderStyle"),v("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:t,_:e})=>({...De({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(t||"-x")]:e,["--tw-border-spacing"+(t||"-y")]:e,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),G("border-([xytrbl])-",{section:"borderColor"},vt("border","Color")),G("border-"),v("border-([xytrbl])(?:$|-)","borderWidth",vt("border","Width")),v("border(?:$|-)","borderWidth"),v("divide-opacity(?:$|-)","divideOpacity",({_:t})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":t}})),y("divide-(solid|dashed|dotted|double|none)",({1:t})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:t}})),y("divide-([xy]-reverse)",({1:t})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+t]:"1"}})),v("divide-([xy])(?:$|-)","divideWidth",({1:t,_:e})=>{let r={x:"lr",y:"tb"}[t];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${t}-reverse`]:"0",[`border-${Qe(r[0])}Width`]:`calc(${e} * calc(1 - var(--tw-divide-${t}-reverse)))`,[`border-${Qe(r[1])}Width`]:`calc(${e} * var(--tw-divide-${t}-reverse))`}}}),G("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),v("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),G("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),v("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),y("ring-inset",{"--tw-ring-inset":"inset"}),G("ring-",{property:"--tw-ring-color"}),v("ring(?:$|-)","ringWidth",({_:t},{theme:e})=>({...De({"--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-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":e("ringOffsetWidth","","0px"),"--tw-ring-offset-color":ce(e("ringOffsetColor","","#fff")),"--tw-ring-color":ce(e("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":e("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${t} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),G("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-shadow-color":t.value,"--tw-shadow":"var(--tw-shadow-colored)"})),v("shadow(?:$|-)","boxShadow",({_:t})=>({...De({"--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-shadow":de(t),"--tw-shadow-colored":de(t).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),v("(opacity)-"),y("mix-blend-","mixBlendMode"),...Xo(),...Xo("backdrop-"),v("transition(?:$|-)","transitionProperty",(t,{theme:e})=>({transitionProperty:de(t),transitionTimingFunction:t._=="none"?void 0:de(e("transitionTimingFunction","")),transitionDuration:t._=="none"?void 0:de(e("transitionDuration",""))})),v("duration(?:$|-)","transitionDuration","transitionDuration",de),v("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",de),v("delay(?:$|-)","transitionDelay","transitionDelay",de),v("animate(?:$|-)","animation",(t,{theme:e,h:r,e:n})=>{let i=de(t),s=i.split(" "),o=e("keyframes",s[0]);return o?{["@keyframes "+(s[0]=n(r(s[0])))]:o,animation:s.join(" ")}:{animation:i}}),"(transform)-(none)",y("transform",Qi),y("transform-(cpu|gpu)",({1:t})=>({"--tw-transform":Qo(t=="gpu")})),v("scale(-[xy])?-","scale",({1:t,_:e})=>({["--tw-scale"+(t||"-x")]:e,["--tw-scale"+(t||"-y")]:e,...Qi()})),v("-?(rotate)-","rotate",Yi),v("-?(translate-[xy])-","translate",Yi),v("-?(skew-[xy])-","skew",Yi),y("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",vn),"(appearance)-",v("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",v("(cursor)-"),"(cursor)-",y("snap-(none)","scroll-snap-type"),y("snap-(x|y|both)",({1:t})=>({...De({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":t+" var(--tw-scroll-snap-strictness)"})),y("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),y("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),y("snap-(normal|always)","scroll-snap-stop"),y("scroll-(auto|smooth)","scroll-behavior"),v("scroll-p([xytrbl])?(?:$|-)","padding",vt("scroll-padding")),v("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",vt("scroll-margin")),y("touch-(auto|none|manipulation)","touch-action"),y("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:t,2:e,3:r})=>({...De({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${e?"pan-x":r?"pan-y":t}`]:t,"touch-action":"var(--tw-touch-action)"})),y("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),y("outline",{outlineStyle:"solid"}),y("outline-(dashed|dotted|double)","outlineStyle"),v("-?(outline-offset)-"),G("outline-",{opacityVariable:!1,opacitySection:"opacity"}),v("outline-","outlineWidth"),"(pointer-events)-",v("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:t})=>({x:"horizontal",y:"vertical"})[t]||t||"both"],y("select-(none|text|all|auto)","userSelect"),G("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),G("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),v("stroke-","strokeWidth"),y("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),y("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function vn(t){return(typeof t=="string"?t:t[1]).replace(/-/g," ").trim()}function Go(t){return(typeof t=="string"?t:t[1]).replace("col","column")}function Qe(t,e="-"){let r=[];for(let n of t)r.push({t:"top",r:"right",b:"bottom",l:"left"}[n]);return r.join(e)}function de(t){return t&&""+(t._||t)}function Zo({$$:t}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[t[3]||""]||"")+t}function vt(t,e=""){return({1:r,_:n})=>{let i={x:"lr",y:"tb"}[r]||r+r;return i?{...ar(t+"-"+Qe(i[0])+e,n),...ar(t+"-"+Qe(i[1])+e,n)}:ar(t+e,n)}}function Xo(t=""){let e=["blur","brightness","contrast","grayscale","hue-rotate","invert",t&&"opacity","saturate","sepia",!t&&"drop-shadow"].filter(Boolean),r={};for(let n of e)r[`--tw-${t}${n}`]="var(--tw-empty,/*!*/ /*!*/)";return r={...De(r),[`${t}filter`]:e.map(n=>`var(--tw-${t}${n})`).join(" ")},[`(${t}filter)-(none)`,y(`${t}filter`,r),...e.map(n=>v(`${n[0]=="h"?"-?":""}(${t}${n})(?:$|-)`,n,({1:i,_:s})=>({[`--tw-${i}`]:P(s).map(o=>`${n}(${o})`).join(" "),...r})))]}function Yi({1:t,_:e}){return{["--tw-"+t]:e,...Qi()}}function Qi(){return{...De({"--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-transform":Qo()}),transform:"var(--tw-transform)"}}function Qo(t){return[t?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Jo({1:t,2:e}){return`${t} ${e} / ${t} ${e}`}function Ko({1:t}){return`repeat(${t},minmax(0,1fr))`}function De(t){return{"@layer defaults":{"*,::before,::after":t,"::backdrop":t}}}var ea=[["sticky","@supports ((position: -webkit-sticky) or (position:sticky))"],["motion-reduce","@media (prefers-reduced-motion:reduce)"],["motion-safe","@media (prefers-reduced-motion:no-preference)"],["print","@media print"],["(portrait|landscape)",({1:t})=>`@media (orientation:${t})`],["contrast-(more|less)",({1:t})=>`@media (prefers-contrast:${t})`],["(first-(letter|line)|placeholder|backdrop|before|after)",({1:t})=>`&::${t}`],["(marker|selection)",({1:t})=>`& *::${t},&::${t}`],["file","&::file-selector-button"],["(first|last|only)",({1:t})=>`&:${t}-child`],["even","&:nth-child(2n)"],["odd","&:nth-child(odd)"],["open","&[open]"],["(aria|data)-",({1:t,$$:e},r)=>e&&`&[${t}-${r.theme(t,e)||we(e,"",r)||`${e}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:t,3:e="",4:r,5:n="",6:i=e},{e:s,h:o,v:u})=>{let a=yt(n)||(r[0]=="["?r:u(r.slice(1)));return`${(a.includes("&")?a:"&"+a).replace(/&/g,`:merge(.${s(o(t+i))})`)}${t[0]=="p"?"~":" "}&`}],["(ltr|rtl)",({1:t})=>`[dir="${t}"] &`],["supports-",({$$:t},e)=>{if(t&&(t=e.theme("supports",t)||we(t,"",e)),t)return t.includes(":")||(t+=":var(--tw)"),/^\w*\s*\(/.test(t)||(t=`(${t})`),`@supports ${t.replace(/\b(and|or|not)\b/g," $1 ").trim()}`}],["max-",({$$:t},e)=>{if(t&&(t=e.theme("screens",t)||we(t,"",e)),typeof t=="string")return`@media not all and (min-width:${t})`}],["min-",({$$:t},e)=>(t&&(t=we(t,"",e)),t&&`@media (min-width:${t})`)],[/^\[(.+)]$/,({1:t})=>/[&@]/.test(t)&&yt(t).replace(/[}]+$/,"").split("{")]];function ta({colors:t,disablePreflight:e}={}){return{preflight:e?void 0:Wo,theme:{...cr,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...t}},variants:ea,rules:Yo,finalize(r){return r.n&&r.d&&r.r.some(n=>/^&::(before|after)$/.test(n))&&!/(^|;)content:/.test(r.d)?{...r,d:"content:var(--tw-content);"+r.d}:r}}}var Su={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},_u={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},Au={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},Mu={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},Iu={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},Tu={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},Ou={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},ju={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},Du={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},Lu={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},Pu={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},Ru={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},Uu={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},Vu={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},Fu={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},Hu={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},Nu={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},Bu={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},qu={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},zu={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},Wu={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},Gu={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},ra={__proto__:null,slate:Su,gray:_u,zinc:Au,neutral:Mu,stone:Iu,red:Tu,orange:Ou,amber:ju,yellow:Du,lime:Lu,green:Pu,emerald:Ru,teal:Uu,cyan:Vu,sky:Fu,blue:Hu,indigo:Nu,violet:Bu,purple:qu,fuchsia:zu,pink:Wu,rose:Gu};function wn({disablePreflight:t}={}){return ta({colors:ra,disablePreflight:t})}function bn({className:t="prose",defaultColor:e="gray",extend:r={},colors:n={}}={}){return n={body:"700",headings:"900",lead:"600",links:"900",bold:"900",counters:"500",bullets:"300",hr:"200",quotes:"900","quote-borders":"200",captions:"500",code:"900","pre-code":"200","pre-bg":"800","th-borders":"300","td-borders":"200",...n,dark:n.dark===null?null:{body:"300",headings:"#fff",lead:"400",links:"#fff",bold:"#fff",counters:"400",bullets:"600",hr:"700",quotes:"100","quote-borders":"700",captions:"400",code:"#fff","pre-code":"300","pre-bg":"rgb(0 0 0 / 50%)","th-borders":"600","td-borders":"700",...n.dark}},{variants:[["headings","h1,h2,h3,h4,h5,h6,th"],["h1"],["h2"],["h3"],["h4"],["h5"],["h6"],["p"],["a"],["blockquote"],["figure"],["figcaption"],["strong"],["em"],["code"],["pre"],["ol"],["ul"],["li"],["table"],["thead"],["tr"],["th"],["td"],["img"],["video"],["hr"],["lead",".lead"]].map(([s,o=s])=>[`${t}-${s}`,(u,a)=>sa(t,o[0]=="."?"."+a.e(a.h(o.slice(1))):o,a,c=>`& :is(${c.trim()})`)]),rules:[[`(lead|not-${t})`,({1:s},{h:o})=>[{c:o(s)}]],[`${t}-invert`,{"@layer base":{"--tw-prose-body":"var(--tw-prose-invert-body)","--tw-prose-headings":"var(--tw-prose-invert-headings)","--tw-prose-lead":"var(--tw-prose-invert-lead)","--tw-prose-links":"var(--tw-prose-invert-links)","--tw-prose-bold":"var(--tw-prose-invert-bold)","--tw-prose-counters":"var(--tw-prose-invert-counters)","--tw-prose-bullets":"var(--tw-prose-invert-bullets)","--tw-prose-hr":"var(--tw-prose-invert-hr)","--tw-prose-quotes":"var(--tw-prose-invert-quotes)","--tw-prose-quote-borders":"var(--tw-prose-invert-quote-borders)","--tw-prose-captions":"var(--tw-prose-invert-captions)","--tw-prose-code":"var(--tw-prose-invert-code)","--tw-prose-pre-code":"var(--tw-prose-invert-pre-code)","--tw-prose-pre-bg":"var(--tw-prose-invert-pre-bg)","--tw-prose-th-borders":"var(--tw-prose-invert-th-borders)","--tw-prose-td-borders":"var(--tw-prose-invert-td-borders)"}}],[t+"-",({$$:s},o)=>{let u=ia(o.theme("fontSize",s));return u&&{"@layer components":u}}],[t+"-",({$$:s},o)=>i(s,o)],[t,(s,o)=>({...i(e,o),"@layer base":[na(t,o,{a:{color:"var(--tw-prose-links)",textDecorationLine:"underline",fontWeight:"500"},strong:{color:"var(--tw-prose-bold)",fontWeight:"600"},"a strong,blockquote strong,thead th strong":{color:"inherit"},ul:{listStyleType:"disc"},ol:{listStyleType:"decimal"},'ol[type="A"]':{listStyleType:"upper-alpha"},'ol[type="a"]':{listStyleType:"lower-alpha"},'ol[type="A" s]':{listStyleType:"upper-alpha"},'ol[type="a" s]':{listStyleType:"lower-alpha"},'ol[type="I"]':{listStyleType:"upper-roman"},'ol[type="i"]':{listStyleType:"lower-roman"},'ol[type="I" s]':{listStyleType:"upper-roman"},'ol[type="i" s]':{listStyleType:"lower-roman"},'ol[type="1"]':{listStyleType:"decimal"},"ol,ul":{marginTop:C(20,16),marginBottom:C(20,16),paddingLeft:C(26,16)},li:{marginTop:C(8,16),marginBottom:C(8,16)},"ol>li,ul>li":{paddingLeft:C(6,16)},">ul>li p":{marginTop:C(12,16),marginBottom:C(12,16)},">ul>li>*:first-child,>ol>li>*:last-child":{marginTop:C(20,16)},">ul>li>*:last-child,>ol>li>*:last-child":{marginBottom:C(20,16)},"ol>li::marker":{fontWeight:"400",color:"var(--tw-prose-counters)"},"ul>li::marker":{color:"var(--tw-prose-bullets)"},"ul ul,ul ol,ol ul,ol ol":{marginTop:C(12,16),marginBottom:C(12,16)},hr:{borderColor:"var(--tw-prose-hr)",borderTopWidth:"1",marginTop:C(48,16),marginBottom:C(48,16)},blockquote:{marginTop:C(32,20),marginBottom:C(32,20),paddingLeft:C(20,20),fontWeight:"500",fontStyle:"italic",color:"var(--tw-prose-quotes)",borderLeftWidth:"0.25rem",borderLeftColor:"var(--tw-prose-quote-borders)",quotes:'"\\201C""\\201D""\\2018""\\2019"'},"blockquote p:first-of-type::before":{content:"open-quote"},"blockquote p:last-of-type::after":{content:"close-quote"},p:{marginTop:C(20,16),marginBottom:C(20,16)},h1:{color:"var(--tw-prose-headings)",fontWeight:"800",fontSize:C(36,16),marginTop:"0",marginBottom:C(32,36),lineHeight:1.15},"h1 strong":{fontWeight:"900",color:"inherit"},h2:{color:"var(--tw-prose-headings)",fontWeight:"700",fontSize:C(24,16),marginTop:C(48,24),marginBottom:C(24,24),lineHeight:"1.35"},"h2 strong":{fontWeight:"800",color:"inherit"},h3:{color:"var(--tw-prose-headings)",fontWeight:"600",fontSize:C(20,16),marginTop:C(32,20),marginBottom:C(12,20),lineHeight:"1.6"},"h3 strong":{fontWeight:"700",color:"inherit"},h4:{color:"var(--tw-prose-headings)",fontWeight:"600",marginTop:C(24,16),marginBottom:C(8,16),lineHeight:"1.5"},"h4 strong":{fontWeight:"700",color:"inherit"},"hr+*,h2+*,h3+*,h4+*":{marginTop:"0"},"img,video,figure":{marginTop:C(32,16),marginBottom:C(32,16)},"figure>*":{marginTop:"0",marginBottom:"0"},figcaption:{color:"var(--tw-prose-captions)",fontSize:C(14,16),lineHeight:"1.4",marginTop:C(12,14)},code:{color:"var(--tw-prose-code)",fontWeight:"600",fontSize:C(14,16)},"code::before,code::after":{content:'"`"'},"h2 code":{fontSize:C(21,24)},"h3 code":{fontSize:C(18,20)},"a code,h1 code,h2 code,h3 code,h4 code,blockquote code,thead th code":{color:"inherit"},pre:{color:"var(--tw-prose-pre-code)",backgroundColor:"var(--tw-prose-pre-bg)",overflowX:"auto",fontWeight:"400",fontSize:C(14,16),lineHeight:"1.7",marginTop:C(24,14),marginBottom:C(24,14),borderRadius:"0.375rem",paddingTop:C(12,14),paddingRight:C(16,14),paddingBottom:C(12,14),paddingLeft:C(16,14)},"pre code":{backgroundColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0",fontWeight:"inherit",color:"inherit",fontSize:"inherit",fontFamily:"inherit",lineHeight:"inherit"},"pre code::before":{content:"none"},"pre code::after":{content:"none"},table:{width:"100%",tableLayout:"auto",textAlign:"left",marginTop:C(32,16),marginBottom:C(32,16),fontSize:C(14,16),lineHeight:"1.7"},thead:{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-th-borders)"},"thead th":{color:"var(--tw-prose-headings)",fontWeight:"600",verticalAlign:"bottom",paddingRight:C(8,14),paddingBottom:C(8,14),paddingLeft:C(8,14)},"thead th:first-child":{paddingLeft:"0"},"thead th:last-child":{paddingRight:"0"},"tbody tr":{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-td-borders)"},"tbody tr:last-child":{borderBottomWidth:"0"},"tbody td,tfoot td":{verticalAlign:"baseline",paddingTop:C(8,14),paddingRight:C(8,14),paddingBottom:C(8,14),paddingLeft:C(8,14)},"tbody td:first-child,tfoot td:first-child":{paddingLeft:"0"},"tbody td:last-child,tfoot td:last-child":{paddingRight:"0"},[`.${o.e(o.h("lead"))}`]:{color:"var(--tw-prose-lead)",fontSize:C(20,16),lineHeight:"1.6",marginTop:C(24,20),marginBottom:C(24,20)},">:first-child":{marginTop:"0"},">:last-child":{marginBottom:"0"}}),na(t,o,r)],"@layer components":{...ia(o.theme("fontSize","base")),color:"var(--tw-prose-body)",maxWidth:"theme(max-w.prose, 65ch)"}})]]};function i(s,o){let u={},a={},c=(f,p,b)=>{let x=o.theme(`colors.${s}.${p}`,p);b["--tw-prose-"+f]=ce(x);let k=b!=a&&o.d("colors",`${s}-${p}`,x);k&&(a["--tw-prose-"+f]=ce(k))};for(let f in n){let p=n[f];f!="dark"&&p&&c(f,p,u)}for(let f in n.dark||{}){let p=n.dark[f];p&&(n.dark?c("invert-"+f,p,u):c(f,p,a))}return Object.keys(u).length?{"@layer defaults":{"&":u,[o.v("dark")]:a}}:void 0}}function na(t,e,r){let n={};for(let i in r)n[sa(t,i,e,s=>`.${e.e(e.h(t))}${s}`)]=r[i];return n}function sa(t,e,{e:r,h:n},i){return e.replace(/^[^>:]+$|(>)?((?:[^:,]+(?::[\w-]+)?)|:[\w-]+)(::[\w-]+)?/g,(s,o=" ",u=s,a="")=>i(`${o}:where(${u}):not(:where(.${r(n("not-"+t))} *))${a}`))}function ia(t){return t?typeof t=="string"?{fontSize:t}:{fontSize:t[0],...typeof t[1]=="string"?{lineHeight:t[1]}:t[1]}:void 0}function C(t,e){return`${(t/e).toFixed(3).replace(/^0|\.?0+$/g,"")}em`}var es=lr({hash:!1,darkMode:"class",theme:{extend:{colors:{violet:{DEFAULT:"#601feb",50:"#f3f2ff",100:"#eae7ff",200:"#d7d2ff",300:"#baaeff",400:"#9980ff",500:"#784dff",600:"#6829fe",700:"#601feb",800:"#4b12c5",900:"#3f11a1",950:"#25086d"},pink:{DEFAULT:"#ff0bbb",50:"#fff0fc",100:"#ffe3fc",200:"#ffc6f9",300:"#ff98f2",400:"#ff58e5",500:"#ff27d5",600:"#ff0bbb",700:"#df0095",800:"#b8007b",900:"#980368",950:"#5f003b"},lime:{DEFAULT:"#b9e901",50:"#fdffe4",100:"#f9ffc5",200:"#f1ff92",300:"#e2ff54",400:"#d1fa21",500:"#b9e901",600:"#8ab400",700:"#688902",800:"#526b09",900:"#465a0d",950:"#243300"}},spacing:{px:"1px",0:"0",.5:"2px",1:"4px",1.5:"6px",2:"8px",2.5:"10px",3:"12px",3.5:"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",20:"80px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px",56:"224px",60:"240px",64:"256px",72:"288px",80:"320px",96:"384px"},padding:{px:"1px",0:"0",.5:"2px",1:"4px",1.5:"6px",2:"8px",2.5:"10px",3:"12px",3.5:"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",20:"80px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px",56:"224px",60:"240px",64:"256px",72:"288px",80:"320px",96:"384px"},lineHeight:{3:"12px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px"},maxWidth:{xs:"320px",sm:"384px",md:"448px",lg:"512px",xl:"576px","2xl":"672px","3xl":"768px","4xl":"896px","5xl":"1024px","6xl":"1152px","7xl":"1280px"},maxHeight:{.5:"2px",1:"4px",1.5:"6px",2:"8px",2.5:"10px",3:"12px",3.5:"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",20:"80px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px",56:"224px",60:"240px",64:"256px",72:"288px",80:"320px",96:"384px"},borderRadius:{sm:"2px",DEFAULT:"4px",md:"6px",lg:"8px",xl:"12px","2xl":"16px","3xl":"24px"},fontSize:{xs:["12px","16px"],sm:["14px","20px"],base:["16px","24px"],lg:["18px","28px"],xl:["20px","28px"],"2xl":["24px","32px"],"3xl":["30px","36px"],"4xl":["36px","40px"],"5xl":["48px","1"],"6xl":["60px","1"],"7xl":["72px","1"],"8xl":["96px","1"],"9xl":["128px","1"]}}},presets:[wn(),gn(),yn(),bn()]});function xn(t,e=!0){let r=function(){if(Zu)try{let a=mn(new CSSStyleSheet);return a.connect=c=>{let f=ts(c);f.adoptedStyleSheets=[...f.adoptedStyleSheets,a.target]},a.disconnect=dn,a}catch{}let s=document.createElement("style");s.media="not all",document.head.prepend(s);let o=[mn(s)],u=new WeakMap;return{get target(){return o[0].target},snapshot(){let a=o.map(c=>c.snapshot());return()=>a.forEach(c=>c())},clear(){o.forEach(a=>a.clear())},destroy(){o.forEach(a=>a.destroy())},insert(a,c,f){o[0].insert(a,c,f);let p=this.target.cssRules[c];o.forEach((b,x)=>x&&b.target.insertRule(p.cssText,c))},resume(a,c){return o[0].resume(a,c)},connect(a){let c=document.createElement("style");ts(a).appendChild(c);let f=mn(c),{cssRules:p}=this.target;for(let b=0;b<p.length;b++)f.target.insertRule(p[b].cssText,b);o.push(f),u.set(a,f)},disconnect(a){let c=o.indexOf(u.get(a));c>=0&&o.splice(c,1)}}}(),n=Fo({...t,hash:t.hash??e},r),i=Ho(n);return function(o){return class extends o{connectedCallback(){super.connectedCallback?.(),r.connect(this),i.observe(ts(this))}disconnectedCallback(){r.disconnect(this),super.disconnectedCallback?.()}constructor(...a){super(...a),this.tw=n}}}}var Zu=typeof ShadowRoot<"u"&&(typeof ShadyCSS>"u"||ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;function ts(t){return t.shadowRoot||t.attachShadow({mode:"open"})}var T=t=>xn(es)(t);var kn=class extends T(S){constructor(){super();w(this,"render",()=>h`
108
+ </svg>`,map:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
109
+ <path d="M9 6.75002V15M15 9.00002V17.25M15.5031 20.7485L20.3781 18.311C20.7592 18.1204 21 17.7309 21 17.3047V4.82031C21 3.98401 20.1199 3.44007 19.3719 3.81408L15.5031 5.74847C15.1864 5.90683 14.8136 5.90683 14.4969 5.74847L9.50312 3.25158C9.1864 3.09322 8.8136 3.09322 8.49688 3.25158L3.62188 5.68908C3.24075 5.87965 3 6.26919 3 6.69531V19.1797C3 20.016 3.8801 20.56 4.62811 20.186L8.49688 18.2516C8.8136 18.0932 9.1864 18.0932 9.50312 18.2516L14.4969 20.7485C14.8136 20.9068 15.1864 20.9068 15.5031 20.7485Z" stroke="#0F172A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
110
+ </svg>`,"document-text":`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
111
+ <path d="M19.5 14.25V11.625C19.5 9.76104 17.989 8.25 16.125 8.25H14.625C14.0037 8.25 13.5 7.74632 13.5 7.125V5.625C13.5 3.76104 11.989 2.25 10.125 2.25H8.25M8.25 15H15.75M8.25 18H12M10.5 2.25H5.625C5.00368 2.25 4.5 2.75368 4.5 3.375V20.625C4.5 21.2463 5.00368 21.75 5.625 21.75H18.375C18.9963 21.75 19.5 21.2463 19.5 20.625V11.25C19.5 6.27944 15.4706 2.25 10.5 2.25Z" stroke="#0F172A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
112
+ </svg>`,link:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
113
+ <path d="M13.1903 8.68842C13.6393 8.90291 14.0601 9.19611 14.432 9.56802C16.1893 11.3254 16.1893 14.1746 14.432 15.932L9.93198 20.432C8.17462 22.1893 5.32538 22.1893 3.56802 20.432C1.81066 18.6746 1.81066 15.8254 3.56802 14.068L5.32499 12.311M18.675 11.689L20.432 9.93198C22.1893 8.17462 22.1893 5.32538 20.432 3.56802C18.6746 1.81066 15.8254 1.81066 14.068 3.56802L9.56802 8.06802C7.81066 9.82538 7.81066 12.6746 9.56802 14.432C9.93992 14.8039 10.3607 15.0971 10.8097 15.3116" stroke="#0F172A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
114
+ </svg>`,"globe-alt":`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
115
+ <path d="M12 21C16.1926 21 19.7156 18.1332 20.7157 14.2529M12 21C7.80742 21 4.28442 18.1332 3.2843 14.2529M12 21C14.4853 21 16.5 16.9706 16.5 12C16.5 7.02944 14.4853 3 12 3M12 21C9.51472 21 7.5 16.9706 7.5 12C7.5 7.02944 9.51472 3 12 3M12 3C15.3652 3 18.299 4.84694 19.8431 7.58245M12 3C8.63481 3 5.70099 4.84694 4.15692 7.58245M19.8431 7.58245C17.7397 9.40039 14.9983 10.5 12 10.5C9.00172 10.5 6.26027 9.40039 4.15692 7.58245M19.8431 7.58245C20.5797 8.88743 21 10.3946 21 12C21 12.778 20.9013 13.5329 20.7157 14.2529M20.7157 14.2529C18.1334 15.6847 15.1619 16.5 12 16.5C8.8381 16.5 5.86662 15.6847 3.2843 14.2529M3.2843 14.2529C3.09871 13.5329 3 12.778 3 12C3 10.3946 3.42032 8.88743 4.15692 7.58245" stroke="#0F172A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
116
+ </svg>`,"exclamation-triangle":`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
117
+ <path d="M11.9998 9.00006V12.7501M2.69653 16.1257C1.83114 17.6257 2.91371 19.5001 4.64544 19.5001H19.3541C21.0858 19.5001 22.1684 17.6257 21.303 16.1257L13.9487 3.37819C13.0828 1.87736 10.9167 1.87736 10.0509 3.37819L2.69653 16.1257ZM11.9998 15.7501H12.0073V15.7576H11.9998V15.7501Z" stroke="#0F172A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
118
+ </svg>`,"arrow-down":`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
119
+ <path d="M19.5 13.5L12 21M12 21L4.5 13.5M12 21L12 3" stroke="#0F172A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
120
+ </svg>`};var hu=Eo,Ui=class extends pn{resolveIcon(e){return hu[e]}render(){super.render();let e=this.shadowRoot?.querySelector("svg");if(!e)throw new Error("svgEl not found");e.setAttribute("fill","none"),e.querySelectorAll("[stroke]").forEach(r=>{r.setAttribute("stroke","currentColor")})}};customElements.get("hi-outline")||customElements.define("hi-outline",Ui);function Gi(t){return[...t.v,(t.i?"!":"")+t.n].join(":")}function du(t,e=","){return t.map(Gi).join(e)}var Oo=typeof CSS<"u"&&CSS.escape||(t=>t.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function fn(t){for(var e=9,r=t.length;r--;)e=Math.imul(e^t.charCodeAt(r),1597334677);return"#"+((e^e>>>9)>>>0).toString(36)}function mn(t,e="@media "){return e+R(t).map(r=>(typeof r=="string"&&(r={min:r}),r.raw||Object.keys(r).map(n=>`(${n}-width:${r[n]})`).join(" and "))).join(",")}function R(t=[]){return Array.isArray(t)?t:t==null?[]:[t]}function So(t){return t}function gn(){}var W={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function Lo(t){return t.match(/[-=:;]/g)?.length||0}function Bi(t){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(t)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(Lo(t),15)<<18}var mu=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function Ji({n:t,i:e,v:r=[]},n,i,s){t&&(t=Gi({n:t,i:e,v:r})),s=[...R(s)];for(let u of r){let a=n.theme("screens",u);for(let c of R(a&&mn(a)||n.v(u))){var o;s.push(c),i|=a?67108864|Bi(c):u=="dark"?1073741824:c[0]=="@"?Bi(c):(o=c,1<<~(/:([a-z-]+)/.test(o)&&~mu.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:t,p:i,r:s,i:e}}var jo=new Map;function qi(t){if(t.d){let e=[],r=Vi(t.r.reduce((n,i)=>i[0]=="@"?(e.push(i),n):i?Vi(n,s=>Vi(i,o=>{let u=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(u){let a=s.indexOf(u[1]);return~a?s.slice(0,a)+u[0]+s.slice(a+u[1].length):Fi(s,o)}return Fi(o,s)})):n,"&"),n=>Fi(n,t.n?"."+Oo(t.n):""));return r&&e.push(r.replace(/:merge\((.+?)\)/g,"$1")),e.reduceRight((n,i)=>i+"{"+n+"}",t.d)}}function Vi(t,e){return t.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(r,n,i)=>e(n)+i)}function Fi(t,e){return t.replace(/&/g,e)}var _o=new Intl.Collator("en",{numeric:!0});function Do(t,e){for(var r=0,n=t.length;r<n;){let i=n+r>>1;0>=Ro(t[i],e)?r=i+1:n=i}return n}function Ro(t,e){let r=t.p&W.o;return r==(e.p&W.o)&&(r==W.b||r==W.o)?0:t.p-e.p||t.o-e.o||_o.compare(Ao(t.n),Ao(e.n))||_o.compare(Mo(t.n),Mo(e.n))}function Ao(t){return(t||"").split(/:/).pop().split("/").pop()||"\0"}function Mo(t){return(t||"").replace(/\W/g,e=>String.fromCharCode(127+e.charCodeAt(0)))+"\0"}function Hi(t,e){return Math.round(parseInt(t,16)*e)}function ce(t,e={}){if(typeof t=="function")return t(e);let{opacityValue:r="1",opacityVariable:n}=e,i=n?`var(${n})`:r;if(t.includes("<alpha-value>"))return t.replace("<alpha-value>",i);if(t[0]=="#"&&(t.length==4||t.length==7)){let s=(t.length-1)/3,o=[17,1,.062272][s-1];return`rgba(${[Hi(t.substr(1,s),o),Hi(t.substr(1+s,s),o),Hi(t.substr(1+2*s,s),o),i]})`}return i=="1"?t:i=="0"?"#0000":t.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${i})`)}function Po(t,e,r,n,i=[]){return function s(o,{n:u,p:a,r:c=[],i:f},p){let b=[],x="",k=0,_=0;for(let $ in o||{}){var M,j;let A=o[$];if($[0]=="@"){if(!A)continue;if($[1]=="a"){b.push(...Ki(u,a,dn(""+A),p,a,c,f,!0));continue}if($[1]=="l"){for(let I of R(A))b.push(...s(I,{n:u,p:(M=W[$[7]],a&~W.o|M),r:$[7]=="d"?[]:c,i:f},p));continue}if($[1]=="i"){b.push(...R(A).map(I=>({p:-1,o:0,r:[],d:$+" "+I})));continue}if($[1]=="k"){b.push({p:W.d,o:0,r:[$],d:s(A,{p:W.d},p).map(qi).join("")});continue}if($[1]=="f"){b.push(...R(A).map(I=>({p:W.d,o:0,r:[$],d:s(I,{p:W.d},p).map(qi).join("")})));continue}}if(typeof A!="object"||Array.isArray(A))$=="label"&&A?u=A+fn(JSON.stringify([a,f,o])):(A||A===0)&&($=$.replace(/[A-Z]/g,I=>"-"+I.toLowerCase()),_+=1,k=Math.max(k,(j=$)[0]=="-"?0:Lo(j)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(j)?+!!RegExp.$1||-!!RegExp.$2:0)+1),x+=(x?";":"")+R(A).map(I=>p.s($,Xi(""+I,p.theme)+(f?" !important":""))).join(";"));else if($[0]=="@"||$.includes("&")){let I=a;$[0]=="@"&&($=$.replace(/\bscreen\(([^)]+)\)/g,(H,z)=>{let X=p.theme("screens",z);return X?(I|=67108864,mn(X,"")):H}),I|=Bi($)),b.push(...s(A,{n:u,p:I,r:[...c,$],i:f},p))}else b.push(...s(A,{p:a,r:[...c,$]},p))}return b.unshift({n:u,p:a,o:Math.max(0,15-_)+1.5*Math.min(k||15,15),r:c,d:x}),b.sort(Ro)}(t,Ji(e,r,n,i),r)}function Xi(t,e){return t.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(r,n,i,s,o="")=>{let u=e(i,o);return typeof u=="function"&&/color|fill|stroke/i.test(i)?ce(u):""+R(u).filter(a=>Object(a)!==a)})}function Uo(t,e){let r,n=[];for(let i of t)i.d&&i.n?r?.p==i.p&&""+r.r==""+i.r?(r.c=[r.c,i.c].filter(Boolean).join(" "),r.d=r.d+";"+i.d):n.push(r={...i,n:i.n&&e}):n.push({...i,n:i.n&&e});return n}function hn(t,e,r=W.u,n,i){let s=[];for(let o of t)for(let u of function(a,c,f,p,b){a={...a,i:a.i||b};let x=function(k,_){let M=jo.get(k.n);return M?M(k,_):_.r(k.n,k.v[0]=="dark")}(a,c);return x?typeof x=="string"?({r:p,p:f}=Ji(a,c,f,p),Uo(hn(dn(x),c,f,p,a.i),a.n)):Array.isArray(x)?x.map(k=>{var _,M;return{o:0,...k,r:[...R(p),...R(k.r)],p:(_=f,M=k.p??f,_&~W.o|M)}}):Po(x,a,c,f,p):[{c:Gi(a),p:0,o:0,r:[]}]}(o,e,r,n,i))s.splice(Do(s,u),0,u);return s}function Ki(t,e,r,n,i,s,o,u){return Uo((u?r.flatMap(a=>hn([a],n,i,s,o)):hn(r,n,i,s,o)).map(a=>a.p&W.o&&(a.n||e==W.b)?{...a,p:a.p&~W.o|e,o:0}:a),t)}function gu(t,e,r,n){var i;return i=(s,o)=>{let{n:u,p:a,r:c,i:f}=Ji(s,o,e);return r&&Ki(u,e,r,o,a,c,f,n)},jo.set(t,i),t}function Ni(t,e,r){if(t[t.length-1]!="("){let n=[],i=!1,s=!1,o="";for(let u of t)if(!(u=="("||/[~@]$/.test(u))){if(u[0]=="!"&&(u=u.slice(1),i=!i),u.endsWith(":")){n[u=="dark:"?"unshift":"push"](u.slice(0,-1));continue}u[0]=="-"&&(u=u.slice(1),s=!s),u.endsWith("-")&&(u=u.slice(0,-1)),u&&u!="&"&&(o+=(o&&"-")+u)}o&&(s&&(o="-"+o),e[0].push({n:o,v:n.filter(yu),i}))}}function yu(t,e,r){return r.indexOf(t)==e}var Io=new Map;function dn(t){let e=Io.get(t);if(!e){let r=[],n=[[]],i=0,s=0,o=null,u=0,a=(c,f=0)=>{i!=u&&(r.push(t.slice(i,u+f)),c&&Ni(r,n)),i=u+1};for(;u<t.length;u++){let c=t[u];if(s)t[u-1]!="\\"&&(s+=+(c=="[")||-(c=="]"));else if(c=="[")s+=1;else if(o)t[u-1]!="\\"&&o.test(t.slice(u))&&(o=null,i=u+RegExp.lastMatch.length);else if(c=="/"&&t[u-1]!="\\"&&(t[u+1]=="*"||t[u+1]=="/"))o=t[u+1]=="*"?/^\*\//:/^[\r\n]/;else if(c=="(")a(),r.push(c);else if(c==":")t[u+1]!=":"&&a(!1,1);else if(/[\s,)]/.test(c)){a(!0);let f=r.lastIndexOf("(");if(c==")"){let p=r[f-1];if(/[~@]$/.test(p)){let b=n.shift();r.length=f,Ni([...r,"#"],n);let{v:x}=n[0].pop();for(let k of b)k.v.splice(+(k.v[0]=="dark")-+(x[0]=="dark"),x.length);Ni([...r,gu(p.length>1?p.slice(0,-1)+fn(JSON.stringify([p,b])):p+"("+du(b)+")",W.a,b,/@$/.test(p))],n)}f=r.lastIndexOf("(",f-1)}r.length=f+1}else/[~@]/.test(c)&&t[u+1]=="("&&n.unshift([])}a(!0),Io.set(t,e=n[0])}return e}function y(t,e,r){return[t,zi(e,r)]}function zi(t,e){return typeof t=="function"?t:typeof t=="string"&&/^[\w-]+$/.test(t)?(r,n)=>({[t]:e?e(r,n):Wi(r,1)}):r=>t||{[r[1]]:Wi(r,2)}}function Wi(t,e,r=t.slice(e).find(Boolean)||t.$$||t.input){return t.input[0]=="-"?`calc(${r} * -1)`:r}function v(t,e,r,n){return[t,Yi(e,r,n)]}function Yi(t,e,r){let n=typeof e=="string"?(i,s)=>({[e]:r?r(i,s):i._}):e||(({1:i,_:s},o,u)=>({[i||u]:s}));return(i,s)=>{let o=Vo(t||i[1]),u=s.theme(o,i.$$)??we(i.$$,o,s);if(u!=null)return i._=Wi(i,0,u),n(i,s,o)}}function Z(t,e={},r){return[t,vu(e,r)]}function vu(t={},e){return(r,n)=>{let{section:i=Vo(r[0]).replace("-","")+"Color"}=t,[s,o]=wu(r.$$);if(!s)return;let u=n.theme(i,s)||we(s,i,n);if(!u||typeof u=="object")return;let{opacityVariable:a=`--tw-${r[0].replace(/-$/,"")}-opacity`,opacitySection:c=i.replace("Color","Opacity"),property:f=i,selector:p}=t,b=n.theme(c,o||"DEFAULT")||o&&we(o,c,n),x=e||(({_})=>{let M=ar(f,_);return p?{[p]:M}:M});r._={value:ce(u,{opacityVariable:a||void 0,opacityValue:b||void 0}),color:_=>ce(u,_),opacityVariable:a||void 0,opacityValue:b||void 0};let k=x(r,n);if(!r.dark){let _=n.d(i,s,u);_&&_!==u&&(r._={value:ce(_,{opacityVariable:a||void 0,opacityValue:b||"1"}),color:M=>ce(_,M),opacityVariable:a||void 0,opacityValue:b||void 0},k={"&":k,[n.v("dark")]:x(r,n)})}return k}}function wu(t){return(t.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function ar(t,e){let r={};return typeof e=="string"?r[t]=e:(e.opacityVariable&&e.value.includes(e.opacityVariable)&&(r[e.opacityVariable]=e.opacityValue||"1"),r[t]=e.value),r}function we(t,e,r){if(t[0]=="["&&t.slice(-1)=="]"){if(t=wt(Xi(t.slice(1,-1),r.theme)),!e)return t;if(!(/color|fill|stroke/i.test(e)&&!(/^color:/.test(t)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(t))||/image/i.test(e)&&!(/^image:/.test(t)||/^[a-z-]+\(/.test(t))||/weight/i.test(e)&&!(/^(number|any):/.test(t)||/^\d+$/.test(t))||/position/i.test(e)&&/^(length|size):/.test(t)))return t.replace(/^[a-z-]+:/,"")}}function Vo(t){return t.replace(/-./g,e=>e[1].toUpperCase())}function wt(t){return t.includes("url(")?t.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,r="",n,i="")=>wt(r)+n+wt(i)):t.replace(/(^|[^\\])_+/g,(e,r)=>r+" ".repeat(e.length-r.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,e=>e.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}function lr({presets:t=[],...e}){let r={darkMode:void 0,darkColor:void 0,preflight:e.preflight!==!1&&[],theme:{},variants:R(e.variants),rules:R(e.rules),ignorelist:R(e.ignorelist),hash:void 0,stringify:(n,i)=>n+":"+i,finalize:[]};for(let n of R([...t,{darkMode:e.darkMode,darkColor:e.darkColor,preflight:e.preflight!==!1&&R(e.preflight),theme:e.theme,hash:e.hash,stringify:e.stringify,finalize:e.finalize}])){let{preflight:i,darkMode:s=r.darkMode,darkColor:o=r.darkColor,theme:u,variants:a,rules:c,ignorelist:f,hash:p=r.hash,stringify:b=r.stringify,finalize:x}=typeof n=="function"?n(r):n;r={preflight:r.preflight!==!1&&i!==!1&&[...r.preflight,...R(i)],darkMode:s,darkColor:o,theme:{...r.theme,...u,extend:{...r.theme.extend,...u?.extend}},variants:[...r.variants,...R(a)],rules:[...r.rules,...R(c)],ignorelist:[...r.ignorelist,...R(f)],hash:p,stringify:b,finalize:[...r.finalize,...R(x)]}}return r}function To(t,e,r,n,i,s){for(let o of e){let u=r.get(o);u||r.set(o,u=n(o));let a=u(t,i,s);if(a)return a}}function bu(t){var e;return Zi(t[0],typeof(e=t[1])=="function"?e:()=>e)}function xu(t){var e,r;return Array.isArray(t)?Zi(t[0],zi(t[1],t[2])):Zi(t,zi(e,r))}function Zi(t,e){return Fo(t,(r,n,i,s)=>{let o=n.exec(r);if(o)return o.$$=r.slice(o[0].length),o.dark=s,e(o,i)})}function Fo(t,e){let r=R(t).map(ku);return(n,i,s)=>{for(let o of r){let u=e(n,o,i,s);if(u)return u}}}function ku(t){return typeof t=="string"?RegExp("^"+t+(t.includes("$")||t.slice(-1)=="-"?"":"$")):t}function Ho(t,e){let r=lr(t),n=function({theme:a,darkMode:c,darkColor:f=gn,variants:p,rules:b,hash:x,stringify:k,ignorelist:_,finalize:M}){let j=new Map,$=new Map,A=new Map,I=new Map,H=Fo(_,(L,K)=>K.test(L));p.push(["dark",Array.isArray(c)||c=="class"?`${R(c)[1]||".dark"} &`:typeof c=="string"&&c!="media"?c:"@media (prefers-color-scheme:dark)"]);let z=typeof x=="function"?L=>x(L,fn):x?fn:So;z!==So&&M.push(L=>({...L,n:L.n&&z(L.n),d:L.d?.replace(/--(tw(?:-[\w-]+)?)\b/g,(K,re)=>"--"+z(re).replace("#",""))}));let X={theme:function({extend:L={},...K}){let re={},_i={get colors(){return ze("colors")},theme:ze,negative(){return{}},breakpoints(N){let Q={};for(let ie in N)typeof N[ie]=="string"&&(Q["screen-"+ie]=N[ie]);return Q}};return ze;function ze(N,Q,ie,Kt){if(N){if({1:N,2:Kt}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(N)||[,N],/[.[]/.test(N)){let $e=[];N.replace(/\[([^\]]+)\]|([^.[]+)/g,(Ze,Qt,Ql=Qt)=>$e.push(Ql)),N=$e.shift(),ie=Q,Q=$e.join("-")}let ve=re[N]||Object.assign(Object.assign(re[N]={},Qr(K,N)),Qr(L,N));if(Q==null)return ve;Q||(Q="DEFAULT");let We=ve[Q]??Q.split("-").reduce(($e,Ze)=>$e?.[Ze],ve)??ie;return Kt?ce(We,{opacityValue:Xi(Kt,ze)}):We}let Yt={};for(let ve of[...Object.keys(K),...Object.keys(L)])Yt[ve]=ze(ve);return Yt}function Qr(N,Q){let ie=N[Q];return typeof ie=="function"&&(ie=ie(_i)),ie&&/color|fill|stroke/i.test(Q)?function Kt(Yt,ve=[]){let We={};for(let $e in Yt){let Ze=Yt[$e],Qt=[...ve,$e];We[Qt.join("-")]=Ze,$e=="DEFAULT"&&(Qt=ve,We[ve.join("-")]=Ze),typeof Ze=="object"&&Object.assign(We,Kt(Ze,Qt))}return We}(ie):ie}}(a),e:Oo,h:z,s(L,K){return k(L,K,X)},d(L,K,re){return f(L,K,X,re)},v(L){return j.has(L)||j.set(L,To(L,p,$,bu,X)||"&:"+L),j.get(L)},r(L,K){let re=JSON.stringify([L,K]);return A.has(re)||A.set(re,!H(L,X)&&To(L,b,I,xu,X,K)),A.get(re)},f(L){return M.reduce((K,re)=>re(K,X),L)}};return X}(r),i=new Map,s=[],o=new Set;e.resume(a=>i.set(a,a),(a,c)=>{e.insert(a,s.length,c),s.push(c),o.add(a)});function u(a){let c=n.f(a),f=qi(c);if(f&&!o.has(f)){o.add(f);let p=Do(s,a);e.insert(f,p,a),s.splice(p,0,a)}return c.n}return Object.defineProperties(function(c){if(!i.size)for(let p of R(r.preflight))typeof p=="function"&&(p=p(n)),p&&(typeof p=="string"?Ki("",W.b,dn(p),n,W.b,[],!1,!0):Po(p,{},n,W.b)).forEach(u);c=""+c;let f=i.get(c);if(!f){let p=new Set;for(let b of hn(dn(c),n))p.add(b.c).add(u(b));f=[...p].filter(Boolean).join(" "),i.set(c,f).set(f,f)}return f},Object.getOwnPropertyDescriptors({get target(){return e.target},theme:n.theme,config:r,snapshot(){let a=e.snapshot(),c=new Set(o),f=new Map(i),p=[...s];return()=>{a(),o=c,i=f,s=p}},clear(){e.clear(),o=new Set,i=new Map,s=[]},destroy(){this.clear(),e.destroy()}}))}function Cu(t,e){return t!=e&&""+t.split(" ").sort()!=""+e.split(" ").sort()}function No(t){let e=new MutationObserver(r);return{observe(i){e.observe(i,{attributeFilter:["class"],subtree:!0,childList:!0}),n(i),r([{target:i,type:""}])},disconnect(){e.disconnect()}};function r(i){for(let{type:s,target:o}of i)if(s[0]=="a")n(o);else for(let u of o.querySelectorAll("[class]"))n(u);e.takeRecords()}function n(i){let s,o=i.getAttribute?.("class");o&&Cu(o,s=t(o))&&i.setAttribute("class",s)}}function $u(t){let e=document.querySelector(t||'style[data-twind=""]');return(!e||e.tagName!="STYLE")&&(e=document.createElement("style"),document.head.prepend(e)),e.dataset.twind="claimed",e}function yn(t){let e=t?.cssRules?t:(t&&typeof t!="string"?t:$u(t)).sheet;return{target:e,snapshot(){let r=Array.from(e.cssRules,n=>n.cssText);return()=>{this.clear(),r.forEach(this.insert)}},clear(){for(let r=e.cssRules.length;r--;)e.deleteRule(r)},destroy(){e.ownerNode?.remove()},insert(r,n){try{e.insertRule(r,n)}catch{e.insertRule(":root{}",n)}},resume:gn}}var Eu=new Map([["align-self","-ms-grid-row-align"],["color-adjust","-webkit-print-color-adjust"],["column-gap","grid-column-gap"],["forced-color-adjust","-ms-high-contrast-adjust"],["gap","grid-gap"],["grid-template-columns","-ms-grid-columns"],["grid-template-rows","-ms-grid-rows"],["justify-self","-ms-grid-column-align"],["margin-inline-end","-webkit-margin-end"],["margin-inline-start","-webkit-margin-start"],["mask-border","-webkit-mask-box-image"],["mask-border-outset","-webkit-mask-box-image-outset"],["mask-border-slice","-webkit-mask-box-image-slice"],["mask-border-source","-webkit-mask-box-image-source"],["mask-border-repeat","-webkit-mask-box-image-repeat"],["mask-border-width","-webkit-mask-box-image-width"],["overflow-wrap","word-wrap"],["padding-inline-end","-webkit-padding-end"],["padding-inline-start","-webkit-padding-start"],["print-color-adjust","color-adjust"],["row-gap","grid-row-gap"],["scroll-margin-bottom","scroll-snap-margin-bottom"],["scroll-margin-left","scroll-snap-margin-left"],["scroll-margin-right","scroll-snap-margin-right"],["scroll-margin-top","scroll-snap-margin-top"],["scroll-margin","scroll-snap-margin"],["text-combine-upright","-ms-text-combine-horizontal"]]);function Bo(t){return Eu.get(t)}function qo(t){var e=/^(?:(text-(?:decoration$|e|or|si)|back(?:ground-cl|d|f)|box-d|mask(?:$|-[ispro]|-cl)|pr|hyphena|flex-d)|(tab-|column(?!-s)|text-align-l)|(ap)|u|hy)/i.exec(t);return e?e[1]?1:e[2]?2:e[3]?3:5:0}function zo(t,e){var r=/^(?:(pos)|(cli)|(background-i)|(flex(?:$|-b)|(?:max-|min-)?(?:block-s|inl|he|widt))|dis)/i.exec(t);return r?r[1]?/^sti/i.test(e)?1:0:r[2]?/^pat/i.test(e)?1:0:r[3]?/^image-/i.test(e)?1:0:r[4]?e[3]==="-"?2:0:/^(?:inline-)?grid$/i.test(e)?4:0:0}var Su=[["-webkit-",1],["-moz-",2],["-ms-",4]];function vn(){return({stringify:t})=>({stringify(e,r,n){let i="",s=Bo(e);s&&(i+=t(s,r,n)+";");let o=qo(e),u=zo(e,r);for(let a of Su)o&a[1]&&(i+=t(a[0]+e,r,n)+";"),u&a[1]&&(i+=t(e,a[0]+r,n)+";");return i+t(e,r,n)}})}function wn(){return{rules:[["line-clamp-none",{"-webkit-line-clamp":"unset"}],["line-clamp-",Yi("lineClamp",({_:t})=>Wo(t))],["line-clamp-(\\d+)",({1:t})=>Wo(t)]]}}function Wo(t){return{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":`${t}`}}var cr={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...se(4,"rem",4,.5,.5),...se(12,"rem",4,5),14:"3.5rem",...se(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:O("blur"),backdropBrightness:O("brightness"),backdropContrast:O("contrast"),backdropGrayscale:O("grayscale"),backdropHueRotate:O("hueRotate"),backdropInvert:O("invert"),backdropOpacity:O("opacity"),backdropSaturate:O("saturate"),backdropSepia:O("sepia"),backgroundColor:O("colors"),backgroundImage:{none:"none"},backgroundOpacity:O("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...se(200,"",100,0,50),...se(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:t})=>({DEFAULT:t("colors.gray.200","currentColor"),...t("colors")}),borderOpacity:O("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:O("spacing"),borderWidth:{DEFAULT:"1px",...pe(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:O("colors"),caretColor:O("colors"),accentColor:({theme:t})=>({auto:"auto",...t("colors")}),contrast:{...se(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:O("borderColor"),divideOpacity:O("borderOpacity"),divideWidth:O("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:t})=>({...t("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:t})=>({...t("spacing"),...ur(2,6),...ur(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:O("spacing"),gradientColorStops:O("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:t})=>({...t("spacing"),...ur(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:t})=>({...t("spacing"),...ur(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...se(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:t})=>({auto:"auto",...t("spacing")}),maxHeight:({theme:t})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...t("spacing")}),maxWidth:({theme:t,breakpoints:e})=>({...e(t("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...se(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:O("spacing"),placeholderColor:O("colors"),placeholderOpacity:O("opacity"),outlineColor:O("colors"),outlineOffset:pe(8,"px"),outlineWidth:pe(8,"px"),ringColor:({theme:t})=>({...t("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:O("colors"),ringOffsetWidth:pe(8,"px"),ringOpacity:({theme:t})=>({...t("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...pe(8,"px")},rotate:{...pe(2,"deg"),...pe(12,"deg",3),...pe(180,"deg",45)},saturate:se(200,"",100,0,50),scale:{...se(150,"",100,0,50),...se(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:O("spacing"),scrollPadding:O("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...pe(2,"deg"),...pe(12,"deg",3)},space:O("spacing"),stroke:({theme:t})=>({...t("colors"),none:"none"}),strokeWidth:se(2),textColor:O("colors"),textDecorationColor:O("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...pe(8,"px")},textUnderlineOffset:{auto:"auto",...pe(8,"px")},textIndent:O("spacing"),textOpacity:O("opacity"),transitionDuration:({theme:t})=>({...t("durations"),DEFAULT:"150ms"}),transitionDelay:O("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:t})=>({...t("spacing"),...ur(2,4),full:"100%"}),width:({theme:t})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...t("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...se(50,"",1,0,10),auto:"auto"}};function ur(t,e){let r={};do for(var n=1;n<t;n++)r[`${n}/${t}`]=Number((n/t*100).toFixed(6))+"%";while(++t<=e);return r}function pe(t,e,r=0){let n={};for(;r<=t;r=2*r||1)n[r]=r+e;return n}function se(t,e="",r=1,n=0,i=1,s={}){for(;n<=t;n+=i)s[n]=n/r+e;return s}function O(t){return({theme:e})=>e(t)}var Zo={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${cr.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${cr.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"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":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}};var Qo=[y("\\[([-\\w]+):(.+)]",({1:t,2:e},r)=>({"@layer overrides":{"&":{[t]:we(`[${e}]`,"",r)}}})),y("(group|peer)([~/][^-[]+)?",({input:t},{h:e})=>[{c:e(t)}]),v("aspect-","aspectRatio"),y("container",(t,{theme:e})=>{let{screens:r=e("screens"),center:n,padding:i}=e("container"),s={width:"100%",marginRight:n&&"auto",marginLeft:n&&"auto",...o("xs")};for(let u in r){let a=r[u];typeof a=="string"&&(s[mn(a)]={"&":{maxWidth:a,...o(u)}})}return s;function o(u){let a=i&&(typeof i=="string"?i:i[u]||i.DEFAULT);if(a)return{paddingRight:a,paddingLeft:a}}}),v("content-","content",({_:t})=>({"--tw-content":t,content:"var(--tw-content)"})),y("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),y("box-(border|content)","boxSizing",({1:t})=>t+"-box"),y("hidden",{display:"none"}),y("table-(auto|fixed)","tableLayout"),y(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",y("isolate","isolation"),y("object-(contain|cover|fill|none|scale-down)","objectFit"),v("object-","objectPosition"),y("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",bn),y("overscroll(-[xy])?-(auto|contain|none)",({1:t="",2:e})=>({["overscroll-behavior"+t]:e})),y("(static|fixed|absolute|relative|sticky)","position"),v("-?inset(-[xy])?(?:$|-)","inset",({1:t,_:e})=>({top:t!="-x"&&e,right:t!="-y"&&e,bottom:t!="-x"&&e,left:t!="-y"&&e})),v("-?(top|bottom|left|right)(?:$|-)","inset"),y("(visible|collapse)","visibility"),y("invisible",{visibility:"hidden"}),v("-?z-","zIndex"),y("flex-((row|col)(-reverse)?)","flexDirection",Go),y("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),v("(flex-(?:grow|shrink))(?:$|-)"),v("(flex)-"),v("grow(?:$|-)","flexGrow"),v("shrink(?:$|-)","flexShrink"),v("basis-","flexBasis"),v("-?(order)-"),"-?(order)-(\\d+)",v("grid-cols-","gridTemplateColumns"),y("grid-cols-(\\d+)","gridTemplateColumns",Yo),v("col-","gridColumn"),y("col-(span)-(\\d+)","gridColumn",Ko),v("col-start-","gridColumnStart"),y("col-start-(auto|\\d+)","gridColumnStart"),v("col-end-","gridColumnEnd"),y("col-end-(auto|\\d+)","gridColumnEnd"),v("grid-rows-","gridTemplateRows"),y("grid-rows-(\\d+)","gridTemplateRows",Yo),v("row-","gridRow"),y("row-(span)-(\\d+)","gridRow",Ko),v("row-start-","gridRowStart"),y("row-start-(auto|\\d+)","gridRowStart"),v("row-end-","gridRowEnd"),y("row-end-(auto|\\d+)","gridRowEnd"),y("grid-flow-((row|col)(-dense)?)","gridAutoFlow",t=>bn(Go(t))),y("grid-flow-(dense)","gridAutoFlow"),v("auto-cols-","gridAutoColumns"),v("auto-rows-","gridAutoRows"),v("gap-x(?:$|-)","gap","columnGap"),v("gap-y(?:$|-)","gap","rowGap"),v("gap(?:$|-)","gap"),"(justify-(?:items|self))-",y("justify-","justifyContent",Jo),y("(content|items|self)-",t=>({["align-"+t[1]]:Jo(t)})),y("(place-(content|items|self))-",({1:t,$$:e})=>({[t]:("wun".includes(e[3])?"space-":"")+e})),v("p([xytrbl])?(?:$|-)","padding",bt("padding")),v("-?m([xytrbl])?(?:$|-)","margin",bt("margin")),v("-?space-(x|y)(?:$|-)","space",({1:t,_:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${t}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[t]]:`calc(${e} * calc(1 - var(--tw-space-${t}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[t]]:`calc(${e} * var(--tw-space-${t}-reverse))`}})),y("space-(x|y)-reverse",({1:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${t}-reverse`]:"1"}})),v("w-","width"),v("min-w-","minWidth"),v("max-w-","maxWidth"),v("h-","height"),v("min-h-","minHeight"),v("max-h-","maxHeight"),v("font-","fontWeight"),v("font-","fontFamily",({_:t})=>typeof(t=R(t))[1]=="string"?{fontFamily:de(t)}:{fontFamily:de(t[0]),...t[1]}),y("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),y("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),y("italic","fontStyle"),y("not-italic",{fontStyle:"normal"}),y("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:t,2:e="",3:r})=>e=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(r?"numeric-fraction":"pt".includes(e[0])?"numeric-spacing":e?"numeric-figure":t)]:t,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...je({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),v("tracking-","letterSpacing"),v("leading-","lineHeight"),y("list-(inside|outside)","listStylePosition"),v("list-","listStyleType"),y("list-","listStyleType"),v("placeholder-opacity-","placeholderOpacity",({_:t})=>({"&::placeholder":{"--tw-placeholder-opacity":t}})),Z("placeholder-",{property:"color",selector:"&::placeholder"}),y("text-(left|center|right|justify|start|end)","textAlign"),y("text-(ellipsis|clip)","textOverflow"),v("text-opacity-","textOpacity","--tw-text-opacity"),Z("text-",{property:"color"}),v("text-","fontSize",({_:t})=>typeof t=="string"?{fontSize:t}:{fontSize:t[0],...typeof t[1]=="string"?{lineHeight:t[1]}:t[1]}),v("indent-","textIndent"),y("(overline|underline|line-through)","textDecorationLine"),y("no-underline",{textDecorationLine:"none"}),v("underline-offset-","textUnderlineOffset"),Z("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),v("decoration-","textDecorationThickness"),y("decoration-","textDecorationStyle"),y("(uppercase|lowercase|capitalize)","textTransform"),y("normal-case",{textTransform:"none"}),y("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),y("align-","verticalAlign"),y("whitespace-","whiteSpace"),y("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),y("break-words",{overflowWrap:"break-word"}),y("break-all",{wordBreak:"break-all"}),y("break-keep",{wordBreak:"keep-all"}),Z("caret-",{opacityVariable:!1,opacitySection:"opacity"}),Z("accent-",{opacityVariable:!1,opacitySection:"opacity"}),y("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:t})=>`linear-gradient(to ${Qe(t," ")},var(--tw-gradient-stops))`),Z("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-gradient-from":t.value,"--tw-gradient-to":t.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),Z("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-gradient-to":t.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${t.value},var(--tw-gradient-to)`})),Z("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),y("bg-(fixed|local|scroll)","backgroundAttachment"),y("bg-origin-(border|padding|content)","backgroundOrigin",({1:t})=>t+"-box"),y(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),y("bg-blend-","backgroundBlendMode"),y("bg-clip-(border|padding|content|text)","backgroundClip",({1:t})=>t+(t=="text"?"":"-box")),v("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),Z("bg-",{section:"backgroundColor"}),v("bg-","backgroundImage"),v("bg-","backgroundPosition"),y("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",bn),v("bg-","backgroundSize"),v("rounded(?:$|-)","borderRadius"),v("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:t,_:e})=>{let r={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[t]||[t,t];return{[`border-${Qe(r[0])}-radius`]:e,[`border-${Qe(r[1])}-radius`]:e}}),y("border-(collapse|separate)","borderCollapse"),v("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),y("border-(solid|dashed|dotted|double|none)","borderStyle"),v("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:t,_:e})=>({...je({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(t||"-x")]:e,["--tw-border-spacing"+(t||"-y")]:e,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),Z("border-([xytrbl])-",{section:"borderColor"},bt("border","Color")),Z("border-"),v("border-([xytrbl])(?:$|-)","borderWidth",bt("border","Width")),v("border(?:$|-)","borderWidth"),v("divide-opacity(?:$|-)","divideOpacity",({_:t})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":t}})),y("divide-(solid|dashed|dotted|double|none)",({1:t})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:t}})),y("divide-([xy]-reverse)",({1:t})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+t]:"1"}})),v("divide-([xy])(?:$|-)","divideWidth",({1:t,_:e})=>{let r={x:"lr",y:"tb"}[t];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${t}-reverse`]:"0",[`border-${Qe(r[0])}Width`]:`calc(${e} * calc(1 - var(--tw-divide-${t}-reverse)))`,[`border-${Qe(r[1])}Width`]:`calc(${e} * var(--tw-divide-${t}-reverse))`}}}),Z("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),v("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),Z("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),v("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),y("ring-inset",{"--tw-ring-inset":"inset"}),Z("ring-",{property:"--tw-ring-color"}),v("ring(?:$|-)","ringWidth",({_:t},{theme:e})=>({...je({"--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-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":e("ringOffsetWidth","","0px"),"--tw-ring-offset-color":ce(e("ringOffsetColor","","#fff")),"--tw-ring-color":ce(e("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":e("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${t} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),Z("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-shadow-color":t.value,"--tw-shadow":"var(--tw-shadow-colored)"})),v("shadow(?:$|-)","boxShadow",({_:t})=>({...je({"--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-shadow":de(t),"--tw-shadow-colored":de(t).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),v("(opacity)-"),y("mix-blend-","mixBlendMode"),...Xo(),...Xo("backdrop-"),v("transition(?:$|-)","transitionProperty",(t,{theme:e})=>({transitionProperty:de(t),transitionTimingFunction:t._=="none"?void 0:de(e("transitionTimingFunction","")),transitionDuration:t._=="none"?void 0:de(e("transitionDuration",""))})),v("duration(?:$|-)","transitionDuration","transitionDuration",de),v("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",de),v("delay(?:$|-)","transitionDelay","transitionDelay",de),v("animate(?:$|-)","animation",(t,{theme:e,h:r,e:n})=>{let i=de(t),s=i.split(" "),o=e("keyframes",s[0]);return o?{["@keyframes "+(s[0]=n(r(s[0])))]:o,animation:s.join(" ")}:{animation:i}}),"(transform)-(none)",y("transform",es),y("transform-(cpu|gpu)",({1:t})=>({"--tw-transform":ea(t=="gpu")})),v("scale(-[xy])?-","scale",({1:t,_:e})=>({["--tw-scale"+(t||"-x")]:e,["--tw-scale"+(t||"-y")]:e,...es()})),v("-?(rotate)-","rotate",Qi),v("-?(translate-[xy])-","translate",Qi),v("-?(skew-[xy])-","skew",Qi),y("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",bn),"(appearance)-",v("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",v("(cursor)-"),"(cursor)-",y("snap-(none)","scroll-snap-type"),y("snap-(x|y|both)",({1:t})=>({...je({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":t+" var(--tw-scroll-snap-strictness)"})),y("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),y("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),y("snap-(normal|always)","scroll-snap-stop"),y("scroll-(auto|smooth)","scroll-behavior"),v("scroll-p([xytrbl])?(?:$|-)","padding",bt("scroll-padding")),v("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",bt("scroll-margin")),y("touch-(auto|none|manipulation)","touch-action"),y("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:t,2:e,3:r})=>({...je({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${e?"pan-x":r?"pan-y":t}`]:t,"touch-action":"var(--tw-touch-action)"})),y("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),y("outline",{outlineStyle:"solid"}),y("outline-(dashed|dotted|double)","outlineStyle"),v("-?(outline-offset)-"),Z("outline-",{opacityVariable:!1,opacitySection:"opacity"}),v("outline-","outlineWidth"),"(pointer-events)-",v("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:t})=>({x:"horizontal",y:"vertical"})[t]||t||"both"],y("select-(none|text|all|auto)","userSelect"),Z("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),Z("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),v("stroke-","strokeWidth"),y("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),y("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function bn(t){return(typeof t=="string"?t:t[1]).replace(/-/g," ").trim()}function Go(t){return(typeof t=="string"?t:t[1]).replace("col","column")}function Qe(t,e="-"){let r=[];for(let n of t)r.push({t:"top",r:"right",b:"bottom",l:"left"}[n]);return r.join(e)}function de(t){return t&&""+(t._||t)}function Jo({$$:t}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[t[3]||""]||"")+t}function bt(t,e=""){return({1:r,_:n})=>{let i={x:"lr",y:"tb"}[r]||r+r;return i?{...ar(t+"-"+Qe(i[0])+e,n),...ar(t+"-"+Qe(i[1])+e,n)}:ar(t+e,n)}}function Xo(t=""){let e=["blur","brightness","contrast","grayscale","hue-rotate","invert",t&&"opacity","saturate","sepia",!t&&"drop-shadow"].filter(Boolean),r={};for(let n of e)r[`--tw-${t}${n}`]="var(--tw-empty,/*!*/ /*!*/)";return r={...je(r),[`${t}filter`]:e.map(n=>`var(--tw-${t}${n})`).join(" ")},[`(${t}filter)-(none)`,y(`${t}filter`,r),...e.map(n=>v(`${n[0]=="h"?"-?":""}(${t}${n})(?:$|-)`,n,({1:i,_:s})=>({[`--tw-${i}`]:R(s).map(o=>`${n}(${o})`).join(" "),...r})))]}function Qi({1:t,_:e}){return{["--tw-"+t]:e,...es()}}function es(){return{...je({"--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-transform":ea()}),transform:"var(--tw-transform)"}}function ea(t){return[t?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Ko({1:t,2:e}){return`${t} ${e} / ${t} ${e}`}function Yo({1:t}){return`repeat(${t},minmax(0,1fr))`}function je(t){return{"@layer defaults":{"*,::before,::after":t,"::backdrop":t}}}var ta=[["sticky","@supports ((position: -webkit-sticky) or (position:sticky))"],["motion-reduce","@media (prefers-reduced-motion:reduce)"],["motion-safe","@media (prefers-reduced-motion:no-preference)"],["print","@media print"],["(portrait|landscape)",({1:t})=>`@media (orientation:${t})`],["contrast-(more|less)",({1:t})=>`@media (prefers-contrast:${t})`],["(first-(letter|line)|placeholder|backdrop|before|after)",({1:t})=>`&::${t}`],["(marker|selection)",({1:t})=>`& *::${t},&::${t}`],["file","&::file-selector-button"],["(first|last|only)",({1:t})=>`&:${t}-child`],["even","&:nth-child(2n)"],["odd","&:nth-child(odd)"],["open","&[open]"],["(aria|data)-",({1:t,$$:e},r)=>e&&`&[${t}-${r.theme(t,e)||we(e,"",r)||`${e}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:t,3:e="",4:r,5:n="",6:i=e},{e:s,h:o,v:u})=>{let a=wt(n)||(r[0]=="["?r:u(r.slice(1)));return`${(a.includes("&")?a:"&"+a).replace(/&/g,`:merge(.${s(o(t+i))})`)}${t[0]=="p"?"~":" "}&`}],["(ltr|rtl)",({1:t})=>`[dir="${t}"] &`],["supports-",({$$:t},e)=>{if(t&&(t=e.theme("supports",t)||we(t,"",e)),t)return t.includes(":")||(t+=":var(--tw)"),/^\w*\s*\(/.test(t)||(t=`(${t})`),`@supports ${t.replace(/\b(and|or|not)\b/g," $1 ").trim()}`}],["max-",({$$:t},e)=>{if(t&&(t=e.theme("screens",t)||we(t,"",e)),typeof t=="string")return`@media not all and (min-width:${t})`}],["min-",({$$:t},e)=>(t&&(t=we(t,"",e)),t&&`@media (min-width:${t})`)],[/^\[(.+)]$/,({1:t})=>/[&@]/.test(t)&&wt(t).replace(/[}]+$/,"").split("{")]];function ra({colors:t,disablePreflight:e}={}){return{preflight:e?void 0:Zo,theme:{...cr,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...t}},variants:ta,rules:Qo,finalize(r){return r.n&&r.d&&r.r.some(n=>/^&::(before|after)$/.test(n))&&!/(^|;)content:/.test(r.d)?{...r,d:"content:var(--tw-content);"+r.d}:r}}}var _u={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},Au={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},Mu={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},Iu={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},Tu={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},Ou={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},Lu={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},ju={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},Du={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},Ru={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},Pu={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},Uu={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},Vu={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},Fu={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},Hu={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},Nu={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},Bu={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},qu={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},zu={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},Wu={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},Zu={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},Gu={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},na={__proto__:null,slate:_u,gray:Au,zinc:Mu,neutral:Iu,stone:Tu,red:Ou,orange:Lu,amber:ju,yellow:Du,lime:Ru,green:Pu,emerald:Uu,teal:Vu,cyan:Fu,sky:Hu,blue:Nu,indigo:Bu,violet:qu,purple:zu,fuchsia:Wu,pink:Zu,rose:Gu};function xn({disablePreflight:t}={}){return ra({colors:na,disablePreflight:t})}function kn({className:t="prose",defaultColor:e="gray",extend:r={},colors:n={}}={}){return n={body:"700",headings:"900",lead:"600",links:"900",bold:"900",counters:"500",bullets:"300",hr:"200",quotes:"900","quote-borders":"200",captions:"500",code:"900","pre-code":"200","pre-bg":"800","th-borders":"300","td-borders":"200",...n,dark:n.dark===null?null:{body:"300",headings:"#fff",lead:"400",links:"#fff",bold:"#fff",counters:"400",bullets:"600",hr:"700",quotes:"100","quote-borders":"700",captions:"400",code:"#fff","pre-code":"300","pre-bg":"rgb(0 0 0 / 50%)","th-borders":"600","td-borders":"700",...n.dark}},{variants:[["headings","h1,h2,h3,h4,h5,h6,th"],["h1"],["h2"],["h3"],["h4"],["h5"],["h6"],["p"],["a"],["blockquote"],["figure"],["figcaption"],["strong"],["em"],["code"],["pre"],["ol"],["ul"],["li"],["table"],["thead"],["tr"],["th"],["td"],["img"],["video"],["hr"],["lead",".lead"]].map(([s,o=s])=>[`${t}-${s}`,(u,a)=>oa(t,o[0]=="."?"."+a.e(a.h(o.slice(1))):o,a,c=>`& :is(${c.trim()})`)]),rules:[[`(lead|not-${t})`,({1:s},{h:o})=>[{c:o(s)}]],[`${t}-invert`,{"@layer base":{"--tw-prose-body":"var(--tw-prose-invert-body)","--tw-prose-headings":"var(--tw-prose-invert-headings)","--tw-prose-lead":"var(--tw-prose-invert-lead)","--tw-prose-links":"var(--tw-prose-invert-links)","--tw-prose-bold":"var(--tw-prose-invert-bold)","--tw-prose-counters":"var(--tw-prose-invert-counters)","--tw-prose-bullets":"var(--tw-prose-invert-bullets)","--tw-prose-hr":"var(--tw-prose-invert-hr)","--tw-prose-quotes":"var(--tw-prose-invert-quotes)","--tw-prose-quote-borders":"var(--tw-prose-invert-quote-borders)","--tw-prose-captions":"var(--tw-prose-invert-captions)","--tw-prose-code":"var(--tw-prose-invert-code)","--tw-prose-pre-code":"var(--tw-prose-invert-pre-code)","--tw-prose-pre-bg":"var(--tw-prose-invert-pre-bg)","--tw-prose-th-borders":"var(--tw-prose-invert-th-borders)","--tw-prose-td-borders":"var(--tw-prose-invert-td-borders)"}}],[t+"-",({$$:s},o)=>{let u=sa(o.theme("fontSize",s));return u&&{"@layer components":u}}],[t+"-",({$$:s},o)=>i(s,o)],[t,(s,o)=>({...i(e,o),"@layer base":[ia(t,o,{a:{color:"var(--tw-prose-links)",textDecorationLine:"underline",fontWeight:"500"},strong:{color:"var(--tw-prose-bold)",fontWeight:"600"},"a strong,blockquote strong,thead th strong":{color:"inherit"},ul:{listStyleType:"disc"},ol:{listStyleType:"decimal"},'ol[type="A"]':{listStyleType:"upper-alpha"},'ol[type="a"]':{listStyleType:"lower-alpha"},'ol[type="A" s]':{listStyleType:"upper-alpha"},'ol[type="a" s]':{listStyleType:"lower-alpha"},'ol[type="I"]':{listStyleType:"upper-roman"},'ol[type="i"]':{listStyleType:"lower-roman"},'ol[type="I" s]':{listStyleType:"upper-roman"},'ol[type="i" s]':{listStyleType:"lower-roman"},'ol[type="1"]':{listStyleType:"decimal"},"ol,ul":{marginTop:C(20,16),marginBottom:C(20,16),paddingLeft:C(26,16)},li:{marginTop:C(8,16),marginBottom:C(8,16)},"ol>li,ul>li":{paddingLeft:C(6,16)},">ul>li p":{marginTop:C(12,16),marginBottom:C(12,16)},">ul>li>*:first-child,>ol>li>*:last-child":{marginTop:C(20,16)},">ul>li>*:last-child,>ol>li>*:last-child":{marginBottom:C(20,16)},"ol>li::marker":{fontWeight:"400",color:"var(--tw-prose-counters)"},"ul>li::marker":{color:"var(--tw-prose-bullets)"},"ul ul,ul ol,ol ul,ol ol":{marginTop:C(12,16),marginBottom:C(12,16)},hr:{borderColor:"var(--tw-prose-hr)",borderTopWidth:"1",marginTop:C(48,16),marginBottom:C(48,16)},blockquote:{marginTop:C(32,20),marginBottom:C(32,20),paddingLeft:C(20,20),fontWeight:"500",fontStyle:"italic",color:"var(--tw-prose-quotes)",borderLeftWidth:"0.25rem",borderLeftColor:"var(--tw-prose-quote-borders)",quotes:'"\\201C""\\201D""\\2018""\\2019"'},"blockquote p:first-of-type::before":{content:"open-quote"},"blockquote p:last-of-type::after":{content:"close-quote"},p:{marginTop:C(20,16),marginBottom:C(20,16)},h1:{color:"var(--tw-prose-headings)",fontWeight:"800",fontSize:C(36,16),marginTop:"0",marginBottom:C(32,36),lineHeight:1.15},"h1 strong":{fontWeight:"900",color:"inherit"},h2:{color:"var(--tw-prose-headings)",fontWeight:"700",fontSize:C(24,16),marginTop:C(48,24),marginBottom:C(24,24),lineHeight:"1.35"},"h2 strong":{fontWeight:"800",color:"inherit"},h3:{color:"var(--tw-prose-headings)",fontWeight:"600",fontSize:C(20,16),marginTop:C(32,20),marginBottom:C(12,20),lineHeight:"1.6"},"h3 strong":{fontWeight:"700",color:"inherit"},h4:{color:"var(--tw-prose-headings)",fontWeight:"600",marginTop:C(24,16),marginBottom:C(8,16),lineHeight:"1.5"},"h4 strong":{fontWeight:"700",color:"inherit"},"hr+*,h2+*,h3+*,h4+*":{marginTop:"0"},"img,video,figure":{marginTop:C(32,16),marginBottom:C(32,16)},"figure>*":{marginTop:"0",marginBottom:"0"},figcaption:{color:"var(--tw-prose-captions)",fontSize:C(14,16),lineHeight:"1.4",marginTop:C(12,14)},code:{color:"var(--tw-prose-code)",fontWeight:"600",fontSize:C(14,16)},"code::before,code::after":{content:'"`"'},"h2 code":{fontSize:C(21,24)},"h3 code":{fontSize:C(18,20)},"a code,h1 code,h2 code,h3 code,h4 code,blockquote code,thead th code":{color:"inherit"},pre:{color:"var(--tw-prose-pre-code)",backgroundColor:"var(--tw-prose-pre-bg)",overflowX:"auto",fontWeight:"400",fontSize:C(14,16),lineHeight:"1.7",marginTop:C(24,14),marginBottom:C(24,14),borderRadius:"0.375rem",paddingTop:C(12,14),paddingRight:C(16,14),paddingBottom:C(12,14),paddingLeft:C(16,14)},"pre code":{backgroundColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0",fontWeight:"inherit",color:"inherit",fontSize:"inherit",fontFamily:"inherit",lineHeight:"inherit"},"pre code::before":{content:"none"},"pre code::after":{content:"none"},table:{width:"100%",tableLayout:"auto",textAlign:"left",marginTop:C(32,16),marginBottom:C(32,16),fontSize:C(14,16),lineHeight:"1.7"},thead:{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-th-borders)"},"thead th":{color:"var(--tw-prose-headings)",fontWeight:"600",verticalAlign:"bottom",paddingRight:C(8,14),paddingBottom:C(8,14),paddingLeft:C(8,14)},"thead th:first-child":{paddingLeft:"0"},"thead th:last-child":{paddingRight:"0"},"tbody tr":{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-td-borders)"},"tbody tr:last-child":{borderBottomWidth:"0"},"tbody td,tfoot td":{verticalAlign:"baseline",paddingTop:C(8,14),paddingRight:C(8,14),paddingBottom:C(8,14),paddingLeft:C(8,14)},"tbody td:first-child,tfoot td:first-child":{paddingLeft:"0"},"tbody td:last-child,tfoot td:last-child":{paddingRight:"0"},[`.${o.e(o.h("lead"))}`]:{color:"var(--tw-prose-lead)",fontSize:C(20,16),lineHeight:"1.6",marginTop:C(24,20),marginBottom:C(24,20)},">:first-child":{marginTop:"0"},">:last-child":{marginBottom:"0"}}),ia(t,o,r)],"@layer components":{...sa(o.theme("fontSize","base")),color:"var(--tw-prose-body)",maxWidth:"theme(max-w.prose, 65ch)"}})]]};function i(s,o){let u={},a={},c=(f,p,b)=>{let x=o.theme(`colors.${s}.${p}`,p);b["--tw-prose-"+f]=ce(x);let k=b!=a&&o.d("colors",`${s}-${p}`,x);k&&(a["--tw-prose-"+f]=ce(k))};for(let f in n){let p=n[f];f!="dark"&&p&&c(f,p,u)}for(let f in n.dark||{}){let p=n.dark[f];p&&(n.dark?c("invert-"+f,p,u):c(f,p,a))}return Object.keys(u).length?{"@layer defaults":{"&":u,[o.v("dark")]:a}}:void 0}}function ia(t,e,r){let n={};for(let i in r)n[oa(t,i,e,s=>`.${e.e(e.h(t))}${s}`)]=r[i];return n}function oa(t,e,{e:r,h:n},i){return e.replace(/^[^>:]+$|(>)?((?:[^:,]+(?::[\w-]+)?)|:[\w-]+)(::[\w-]+)?/g,(s,o=" ",u=s,a="")=>i(`${o}:where(${u}):not(:where(.${r(n("not-"+t))} *))${a}`))}function sa(t){return t?typeof t=="string"?{fontSize:t}:{fontSize:t[0],...typeof t[1]=="string"?{lineHeight:t[1]}:t[1]}:void 0}function C(t,e){return`${(t/e).toFixed(3).replace(/^0|\.?0+$/g,"")}em`}var ts=lr({hash:!1,darkMode:"class",theme:{extend:{colors:{violet:{DEFAULT:"#601feb",50:"#f3f2ff",100:"#eae7ff",200:"#d7d2ff",300:"#baaeff",400:"#9980ff",500:"#784dff",600:"#6829fe",700:"#601feb",800:"#4b12c5",900:"#3f11a1",950:"#25086d"},pink:{DEFAULT:"#ff0bbb",50:"#fff0fc",100:"#ffe3fc",200:"#ffc6f9",300:"#ff98f2",400:"#ff58e5",500:"#ff27d5",600:"#ff0bbb",700:"#df0095",800:"#b8007b",900:"#980368",950:"#5f003b"},lime:{DEFAULT:"#b9e901",50:"#fdffe4",100:"#f9ffc5",200:"#f1ff92",300:"#e2ff54",400:"#d1fa21",500:"#b9e901",600:"#8ab400",700:"#688902",800:"#526b09",900:"#465a0d",950:"#243300"}},spacing:{px:"1px",0:"0",.5:"2px",1:"4px",1.5:"6px",2:"8px",2.5:"10px",3:"12px",3.5:"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",20:"80px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px",56:"224px",60:"240px",64:"256px",72:"288px",80:"320px",96:"384px"},padding:{px:"1px",0:"0",.5:"2px",1:"4px",1.5:"6px",2:"8px",2.5:"10px",3:"12px",3.5:"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",20:"80px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px",56:"224px",60:"240px",64:"256px",72:"288px",80:"320px",96:"384px"},lineHeight:{3:"12px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px"},maxWidth:{xs:"320px",sm:"384px",md:"448px",lg:"512px",xl:"576px","2xl":"672px","3xl":"768px","4xl":"896px","5xl":"1024px","6xl":"1152px","7xl":"1280px"},maxHeight:{.5:"2px",1:"4px",1.5:"6px",2:"8px",2.5:"10px",3:"12px",3.5:"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",20:"80px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px",56:"224px",60:"240px",64:"256px",72:"288px",80:"320px",96:"384px"},borderRadius:{sm:"2px",DEFAULT:"4px",md:"6px",lg:"8px",xl:"12px","2xl":"16px","3xl":"24px"},fontSize:{xs:["12px","16px"],sm:["14px","20px"],base:["16px","24px"],lg:["18px","28px"],xl:["20px","28px"],"2xl":["24px","32px"],"3xl":["30px","36px"],"4xl":["36px","40px"],"5xl":["48px","1"],"6xl":["60px","1"],"7xl":["72px","1"],"8xl":["96px","1"],"9xl":["128px","1"]}}},presets:[xn(),vn(),wn(),kn()]});function Cn(t,e=!0){let r=function(){if(Ju)try{let a=yn(new CSSStyleSheet);return a.connect=c=>{let f=rs(c);f.adoptedStyleSheets=[...f.adoptedStyleSheets,a.target]},a.disconnect=gn,a}catch{}let s=document.createElement("style");s.media="not all",document.head.prepend(s);let o=[yn(s)],u=new WeakMap;return{get target(){return o[0].target},snapshot(){let a=o.map(c=>c.snapshot());return()=>a.forEach(c=>c())},clear(){o.forEach(a=>a.clear())},destroy(){o.forEach(a=>a.destroy())},insert(a,c,f){o[0].insert(a,c,f);let p=this.target.cssRules[c];o.forEach((b,x)=>x&&b.target.insertRule(p.cssText,c))},resume(a,c){return o[0].resume(a,c)},connect(a){let c=document.createElement("style");rs(a).appendChild(c);let f=yn(c),{cssRules:p}=this.target;for(let b=0;b<p.length;b++)f.target.insertRule(p[b].cssText,b);o.push(f),u.set(a,f)},disconnect(a){let c=o.indexOf(u.get(a));c>=0&&o.splice(c,1)}}}(),n=Ho({...t,hash:t.hash??e},r),i=No(n);return function(o){return class extends o{connectedCallback(){super.connectedCallback?.(),r.connect(this),i.observe(rs(this))}disconnectedCallback(){r.disconnect(this),super.disconnectedCallback?.()}constructor(...a){super(...a),this.tw=n}}}}var Ju=typeof ShadowRoot<"u"&&(typeof ShadyCSS>"u"||ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;function rs(t){return t.shadowRoot||t.attachShadow({mode:"open"})}var T=t=>Cn(ts)(t);var $n=class extends T(S){constructor(){super();w(this,"render",()=>h`
107
121
  <!-- we want the transform transition on the root element so that both the transform transition and state switch transition are continuous and fluid -->
108
122
  <!-- the background color is set on the root button so that when we cross fade between the open/close states there's no white flicker -->
109
123
  <button class="leading-0 relative inline-block h-14 w-14 overflow-hidden rounded-full bg-slate-800 text-sm text-white shadow-xl transition-transform hover:scale-105 active:scale-90">
@@ -129,7 +143,7 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
129
143
  </svg>
130
144
  </div>
131
145
  </button>
132
- `);this.state="open",this.src=""}};w(kn,"properties",{state:{type:String},src:{type:String}});customElements.get("mw-bubble")||customElements.define("mw-bubble",kn);var Cn={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},$n=t=>(...e)=>({_$litDirective$:t,values:e}),wt=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,n){this._$Ct=e,this._$AM=r,this._$Ci=n}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:Xu}=ko;var oa=()=>document.createComment(""),bt=(t,e,r)=>{let n=t._$AA.parentNode,i=e===void 0?t._$AB:e._$AA;if(r===void 0){let s=n.insertBefore(oa(),i),o=n.insertBefore(oa(),i);r=new Xu(s,o,t,t.options)}else{let s=r._$AB.nextSibling,o=r._$AM,u=o!==t;if(u){let a;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(a=t._$AU)!==o._$AU&&r._$AP(a)}if(s!==i||u){let a=r._$AA;for(;a!==s;){let c=a.nextSibling;n.insertBefore(a,i),a=c}}}return r},Le=(t,e,r=t)=>(t._$AI(e,r),t),Ju={},aa=(t,e=Ju)=>t._$AH=e,la=t=>t._$AH,En=t=>{t._$AP?.(!1,!0);let e=t._$AA,r=t._$AB.nextSibling;for(;e!==r;){let n=e.nextSibling;e.remove(),e=n}};var ua=(t,e,r)=>{let n=new Map;for(let i=e;i<=r;i++)n.set(t[i],i);return n},me=$n(class extends wt{constructor(t){if(super(t),t.type!==Cn.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let n;r===void 0?r=e:e!==void 0&&(n=e);let i=[],s=[],o=0;for(let u of t)i[o]=n?n(u,o):o,s[o]=r(u,o),o++;return{values:s,keys:i}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,n]){let i=la(t),{values:s,keys:o}=this.dt(e,r,n);if(!Array.isArray(i))return this.ut=o,s;let u=this.ut??=[],a=[],c,f,p=0,b=i.length-1,x=0,k=s.length-1;for(;p<=b&&x<=k;)if(i[p]===null)p++;else if(i[b]===null)b--;else if(u[p]===o[x])a[x]=Le(i[p],s[x]),p++,x++;else if(u[b]===o[k])a[k]=Le(i[b],s[k]),b--,k--;else if(u[p]===o[k])a[k]=Le(i[p],s[k]),bt(t,a[k+1],i[p]),p++,k--;else if(u[b]===o[x])a[x]=Le(i[b],s[x]),bt(t,i[p],i[b]),b--,x++;else if(c===void 0&&(c=ua(o,x,k),f=ua(u,p,b)),c.has(u[p]))if(c.has(u[b])){let _=f.get(o[x]),M=_!==void 0?i[_]:null;if(M===null){let D=bt(t,i[p]);Le(D,s[x]),a[x]=D}else a[x]=Le(M,s[x]),bt(t,i[p],M),i[_]=null;x++}else En(i[b]),b--;else En(i[p]),p++;for(;x<=k;){let _=bt(t,a[k+1]);Le(_,s[x]),a[x++]=_}for(;p<=b;){let _=i[p++];_!==null&&En(_)}return this.ut=o,aa(t,a),he}});function pr(t,e,r){return t?e(t):r?.(t)}var Sn,ca,_n=class _n extends T(S){constructor(){super();d(this,Sn);this.examples={title:"",items:[]},this.color=""}render(){return!this.examples?.title&&!this.examples?.items?.length?E:h`
146
+ `);this.state="open",this.src=""}};w($n,"properties",{state:{type:String},src:{type:String}});customElements.get("mw-bubble")||customElements.define("mw-bubble",$n);var En={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Sn=t=>(...e)=>({_$litDirective$:t,values:e}),xt=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,n){this._$Ct=e,this._$AM=r,this._$Ci=n}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:Xu}=Co;var aa=()=>document.createComment(""),kt=(t,e,r)=>{let n=t._$AA.parentNode,i=e===void 0?t._$AB:e._$AA;if(r===void 0){let s=n.insertBefore(aa(),i),o=n.insertBefore(aa(),i);r=new Xu(s,o,t,t.options)}else{let s=r._$AB.nextSibling,o=r._$AM,u=o!==t;if(u){let a;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(a=t._$AU)!==o._$AU&&r._$AP(a)}if(s!==i||u){let a=r._$AA;for(;a!==s;){let c=a.nextSibling;n.insertBefore(a,i),a=c}}}return r},De=(t,e,r=t)=>(t._$AI(e,r),t),Ku={},la=(t,e=Ku)=>t._$AH=e,ua=t=>t._$AH,_n=t=>{t._$AP?.(!1,!0);let e=t._$AA,r=t._$AB.nextSibling;for(;e!==r;){let n=e.nextSibling;e.remove(),e=n}};var ca=(t,e,r)=>{let n=new Map;for(let i=e;i<=r;i++)n.set(t[i],i);return n},me=Sn(class extends xt{constructor(t){if(super(t),t.type!==En.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let n;r===void 0?r=e:e!==void 0&&(n=e);let i=[],s=[],o=0;for(let u of t)i[o]=n?n(u,o):o,s[o]=r(u,o),o++;return{values:s,keys:i}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,n]){let i=ua(t),{values:s,keys:o}=this.dt(e,r,n);if(!Array.isArray(i))return this.ut=o,s;let u=this.ut??=[],a=[],c,f,p=0,b=i.length-1,x=0,k=s.length-1;for(;p<=b&&x<=k;)if(i[p]===null)p++;else if(i[b]===null)b--;else if(u[p]===o[x])a[x]=De(i[p],s[x]),p++,x++;else if(u[b]===o[k])a[k]=De(i[b],s[k]),b--,k--;else if(u[p]===o[k])a[k]=De(i[p],s[k]),kt(t,a[k+1],i[p]),p++,k--;else if(u[b]===o[x])a[x]=De(i[b],s[x]),kt(t,i[p],i[b]),b--,x++;else if(c===void 0&&(c=ca(o,x,k),f=ca(u,p,b)),c.has(u[p]))if(c.has(u[b])){let _=f.get(o[x]),M=_!==void 0?i[_]:null;if(M===null){let j=kt(t,i[p]);De(j,s[x]),a[x]=j}else a[x]=De(M,s[x]),kt(t,i[p],M),i[_]=null;x++}else _n(i[b]),b--;else _n(i[p]),p++;for(;x<=k;){let _=kt(t,a[k+1]);De(_,s[x]),a[x++]=_}for(;p<=b;){let _=i[p++];_!==null&&_n(_)}return this.ut=o,la(t,a),he}});function pr(t,e,r){return t?e(t):r?.(t)}var An,pa,Mn=class Mn extends T(S){constructor(){super();d(this,An);this.examples={title:"",items:[]},this.color=""}render(){return!this.examples?.title&&!this.examples?.items?.length?E:h`
133
147
  <div class="flex h-full w-full flex-1 flex-col overflow-y-auto px-4 pb-2 pt-6">
134
148
  ${pr(this.examples.title,()=>h`
135
149
  <h2 class="mt-14 px-2 pb-2 pt-9 text-left text-3xl font-bold leading-tight tracking-tight">
@@ -146,14 +160,14 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
146
160
  ${me(this.examples.items,r=>r,r=>h`
147
161
  <li
148
162
  class="border-1 hover:bg-[${this.color}]/[0.08] border-gray my-auto inline-block cursor-pointer rounded-2xl px-4 py-2 text-left transition-all duration-200 hover:-translate-y-0.5 hover:opacity-80 hover:shadow"
149
- @click="${()=>m(this,Sn,ca).call(this,r)}">
163
+ @click="${()=>g(this,An,pa).call(this,r)}">
150
164
  <span>${r.trim()}</span>
151
165
  </li>
152
166
  `)}
153
167
  </ul>
154
168
  `:E}
155
169
  </div>
156
- `}};Sn=new WeakSet,ca=function(r){this.dispatchEvent(new _n.ExampleClickEvent({example:r}))},w(_n,"properties",{examples:{type:Object},color:{type:String}});var fr=_n,rs;fr.ExampleClickEvent=(rs=class extends CustomEvent{constructor(e,r={}){super(fr.ExampleClickEvent.type,{detail:e,...r})}},w(rs,"type","mw:example-click"),rs);customElements.get("mw-chat-background")||customElements.define("mw-chat-background",fr);var kt,pa,fa,xt=class xt extends T(S){constructor(){super();d(this,kt);this.content={logoUrl:"",title:"",color:""},this.showNewChat=!1,this.showClose=!1}render(){return h`
170
+ `}};An=new WeakSet,pa=function(r){this.dispatchEvent(new Mn.ExampleClickEvent({example:r}))},w(Mn,"properties",{examples:{type:Object},color:{type:String}});var fr=Mn,ns;fr.ExampleClickEvent=(ns=class extends CustomEvent{constructor(e,r={}){super(fr.ExampleClickEvent.type,{detail:e,...r})}},w(ns,"type","mw:example-click"),ns);customElements.get("mw-chat-background")||customElements.define("mw-chat-background",fr);var $t,fa,ha,Ct=class Ct extends T(S){constructor(){super();d(this,$t);this.content={logoUrl:"",title:"",color:""},this.showNewChat=!1,this.showClose=!1}render(){return h`
157
171
  <div class="relative z-10 h-12">
158
172
  <div class="gradient-blur absolute inset-x-0.5 mt-2 h-12"></div>
159
173
 
@@ -176,7 +190,7 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
176
190
  <div class="flex-grow"></div>
177
191
 
178
192
  <!-- new chat btn -->
179
- <button @click=${m(this,kt,pa)} type="button" class="${this.showNewChat?"inline-flex":"hidden"} shrink-0">
193
+ <button @click=${g(this,$t,fa)} type="button" class="${this.showNewChat?"inline-flex":"hidden"} shrink-0">
180
194
  <!-- svg icon of a bubble with a plus -->
181
195
  <svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 37 36">
182
196
  <path
@@ -188,7 +202,7 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
188
202
  </button>
189
203
 
190
204
  <!-- close chat btn -->
191
- <button @click=${m(this,kt,fa)} class="${this.showClose?"inline-flex":"hidden"} shrink-0">
205
+ <button @click=${g(this,$t,ha)} class="${this.showClose?"inline-flex":"hidden"} shrink-0">
192
206
  <!-- svg icon of an X -->
193
207
  <svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="white">
194
208
  <path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" />
@@ -203,7 +217,7 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
203
217
  </div>
204
218
  </div>
205
219
  </div>
206
- `}};kt=new WeakSet,pa=function(){this.dispatchEvent(new xt.NewChatClickEvent)},fa=function(){this.dispatchEvent(new xt.CloseClickEvent)},w(xt,"properties",{content:{type:Object},showNewChat:{type:Boolean,attribute:"show-new-chat"},showClose:{type:Boolean,attribute:"show-close"}}),w(xt,"styles",Ee`
220
+ `}};$t=new WeakSet,fa=function(){this.dispatchEvent(new Ct.NewChatClickEvent)},ha=function(){this.dispatchEvent(new Ct.CloseClickEvent)},w(Ct,"properties",{content:{type:Object},showNewChat:{type:Boolean,attribute:"show-new-chat"},showClose:{type:Boolean,attribute:"show-close"}}),w(Ct,"styles",Ee`
207
221
  /* blurred background */
208
222
 
209
223
  .gradient-blur {
@@ -215,16 +229,16 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
215
229
  /* bg-color gradient */
216
230
  background-image: linear-gradient(to bottom, white 20%, transparent);
217
231
  }
218
- `);var et=xt,ns;et.NewChatClickEvent=(ns=class extends CustomEvent{constructor(e={}){super(et.NewChatClickEvent.type,{...e})}},w(ns,"type","mw:new-chat-click"),ns);var is;et.CloseClickEvent=(is=class extends CustomEvent{constructor(e={}){super(et.CloseClickEvent.type,{...e})}},w(is,"type","mw:close-click"),is);customElements.get("mw-chat-header")||customElements.define("mw-chat-header",et);var ss={maxHeight:120,initialHeight:32,paddingY:12},ee,us,ha,da,ma,ga,cs,Ct=class Ct extends T(S){constructor(){super();d(this,ee);this.disabled=!1,this.streaming=!1,this.placeholder="Type a message..."}render(){return h`
219
- <form @submit="${m(this,ee,ma)}" class="flex w-full items-center overflow-hidden rounded-[18px] bg-white shadow-[0px_3px_20px_0px_rgba(0,0,0,0.2)]">
232
+ `);var et=Ct,is;et.NewChatClickEvent=(is=class extends CustomEvent{constructor(e={}){super(et.NewChatClickEvent.type,{...e})}},w(is,"type","mw:new-chat-click"),is);var ss;et.CloseClickEvent=(ss=class extends CustomEvent{constructor(e={}){super(et.CloseClickEvent.type,{...e})}},w(ss,"type","mw:close-click"),ss);customElements.get("mw-chat-header")||customElements.define("mw-chat-header",et);var os={maxHeight:120,initialHeight:32,paddingY:12},hr,ee,cs,da,ma,ga,ya,ps,Et=class Et extends T(S){constructor(){super();d(this,ee);d(this,hr,new Date);this.disabled=!1,this.streaming=!1,this.placeholder="Type a message..."}render(){return h`
233
+ <form @submit="${g(this,ee,ga)}" class="flex w-full items-center overflow-hidden rounded-[18px] bg-white shadow-[0px_3px_20px_0px_rgba(0,0,0,0.2)]">
220
234
  <textarea
221
235
  name="input"
222
- @input="${m(this,ee,ga)}"
223
- @keydown="${m(this,ee,da)}"
236
+ @input="${g(this,ee,ya)}"
237
+ @keydown="${g(this,ee,ma)}"
224
238
  autofocus
225
239
  ?disabled="${this.disabled}"
226
240
  placeholder="${this.placeholder}"
227
- class="box-content h-[${ss.initialHeight}px] w-full resize-none place-content-center rounded bg-white px-3 py-[${ss.paddingY}px] text-base text-gray-800 outline-none"></textarea>
241
+ class="box-content h-[${os.initialHeight}px] w-full resize-none place-content-center rounded bg-white px-3 py-[${os.paddingY}px] text-base text-gray-800 outline-none"></textarea>
228
242
 
229
243
  <button type="submit" ?disabled="${this.disabled}" class="mx-1 px-2 transition-opacity duration-200 hover:opacity-80">
230
244
  ${this.streaming?h`
@@ -248,7 +262,7 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
248
262
  <slot>
249
263
  <div class="h-5 w-full"></div>
250
264
  </slot>
251
- `}};ee=new WeakSet,us=function(){return this.renderRoot.querySelector('textarea[name="input"]')??null},ha=function(){return this.renderRoot.querySelector('button[type="submit"]')??null},da=function(r){Ku(r)&&(r.preventDefault(),this.streaming||l(this,ee,ha)?.click())},ma=function(r){if(r.preventDefault(),this.streaming){this.dispatchEvent(new Ct.CancelEvent);return}let n=l(this,ee,us);if(!n)throw new Error("Expected input element to be present");let i=n.value.trim();i&&this.dispatchEvent(new Ct.SubmitEvent(i))&&(n.value=""),m(this,ee,cs).call(this)},ga=function(r){this.dispatchEvent(new Ct.ChangeEvent({delta:r.data,full:r.target instanceof HTMLTextAreaElement?r.target.value:""})),m(this,ee,cs).call(this)},cs=function(){let r=l(this,ee,us);if(!r)return;let{maxHeight:n,initialHeight:i,paddingY:s}=ss;r.style.height=`${i}px`;let o=r.scrollHeight,u=s*2,a=Math.min(o-u,n);r.style.height=`${a}px`},w(Ct,"properties",{disabled:{type:Boolean},streaming:{type:Boolean},placeholder:{type:String}});var Ae=Ct,os;Ae.ChangeEvent=(os=class extends CustomEvent{constructor(e,r={}){super(Ae.ChangeEvent.type,{detail:e,...r})}},w(os,"type","mw:change"),os);var as;Ae.SubmitEvent=(as=class extends CustomEvent{constructor(e,r={}){super(Ae.SubmitEvent.type,{detail:e,...r,cancelable:!0})}},w(as,"type","mw:submit"),as);var ls;Ae.CancelEvent=(ls=class extends CustomEvent{constructor(e={}){super(Ae.CancelEvent.type,{...e})}},w(ls,"type","mw:cancel"),ls);function Ku(t){return(t.code==="Enter"||t.code==="NumpadEnter")&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey}customElements.get("mw-chat-input")||customElements.define("mw-chat-input",Ae);var An=class extends T(S){constructor(){super(),this.side="assistant",this.status="",this.color="",this.logoUrl="",this.position="single"}render(){let r=this.side==="user"&&this.position==="single"?"rounded-2xl":this.side==="user"&&["single-current","first"].includes(this.position)?"rounded-2xl rounded-br-[4px]":this.side==="user"&&["middle","last-current"].includes(this.position)?"rounded-2xl rounded-r-[4px]":this.side==="user"&&this.position==="last"?"rounded-2xl rounded-tr-[4px]":["support","assistant"].includes(this.side)&&["single","single-current"].includes(this.position)?"rounded-2xl":["support","assistant"].includes(this.side)&&this.position==="first"?"rounded-2xl rounded-bl-[4px]":["support","assistant"].includes(this.side)&&this.position==="middle"?"rounded-2xl rounded-l-[4px]":["support","assistant"].includes(this.side)&&["last","last-current"].includes(this.position)?"rounded-2xl rounded-tl-[4px]":"rounded-2xl";switch(this.side){case"user":return h`
265
+ `}};hr=new WeakMap,ee=new WeakSet,cs=function(){return this.renderRoot.querySelector('textarea[name="input"]')??null},da=function(){return this.renderRoot.querySelector('button[type="submit"]')??null},ma=function(r){Yu(r)&&(r.preventDefault(),this.streaming||l(this,ee,da)?.click())},ga=function(r){r.preventDefault();let n=new Date;if(n.getTime()-l(this,hr).getTime()<500)return;if(m(this,hr,n),this.streaming){this.dispatchEvent(new Et.CancelEvent);return}let s=l(this,ee,cs);if(!s)throw new Error("Expected input element to be present");let o=s.value.trim();o&&this.dispatchEvent(new Et.SubmitEvent(o))&&(s.value=""),g(this,ee,ps).call(this)},ya=function(r){this.dispatchEvent(new Et.ChangeEvent({delta:r.data,full:r.target instanceof HTMLTextAreaElement?r.target.value:""})),g(this,ee,ps).call(this)},ps=function(){let r=l(this,ee,cs);if(!r)return;let{maxHeight:n,initialHeight:i,paddingY:s}=os;r.style.height=`${i}px`;let o=r.scrollHeight,u=s*2,a=Math.min(o-u,n);r.style.height=`${a}px`},w(Et,"properties",{disabled:{type:Boolean},streaming:{type:Boolean},placeholder:{type:String}});var Ae=Et,as;Ae.ChangeEvent=(as=class extends CustomEvent{constructor(e,r={}){super(Ae.ChangeEvent.type,{detail:e,...r})}},w(as,"type","mw:change"),as);var ls;Ae.SubmitEvent=(ls=class extends CustomEvent{constructor(e,r={}){super(Ae.SubmitEvent.type,{detail:e,...r,cancelable:!0})}},w(ls,"type","mw:submit"),ls);var us;Ae.CancelEvent=(us=class extends CustomEvent{constructor(e={}){super(Ae.CancelEvent.type,{...e})}},w(us,"type","mw:cancel"),us);function Yu(t){return(t.code==="Enter"||t.code==="NumpadEnter")&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey}customElements.get("mw-chat-input")||customElements.define("mw-chat-input",Ae);var In=class extends T(S){constructor(){super(),this.side="assistant",this.status="",this.color="",this.logoUrl="",this.position="single"}render(){let r=this.side==="user"&&this.position==="single"?"rounded-2xl":this.side==="user"&&["single-current","first"].includes(this.position)?"rounded-2xl rounded-br-[4px]":this.side==="user"&&["middle","last-current"].includes(this.position)?"rounded-2xl rounded-r-[4px]":this.side==="user"&&this.position==="last"?"rounded-2xl rounded-tr-[4px]":["support","assistant"].includes(this.side)&&["single","single-current"].includes(this.position)?"rounded-2xl":["support","assistant"].includes(this.side)&&this.position==="first"?"rounded-2xl rounded-bl-[4px]":["support","assistant"].includes(this.side)&&this.position==="middle"?"rounded-2xl rounded-l-[4px]":["support","assistant"].includes(this.side)&&["last","last-current"].includes(this.position)?"rounded-2xl rounded-tl-[4px]":"rounded-2xl";switch(this.side){case"user":return h`
252
266
  <div class="ml-20 flex justify-end font-sans text-base">
253
267
  <div class="max-w-full">
254
268
  <!-- include an invisible border (same color as background) so that this message is the same height as the bot message -->
@@ -284,7 +298,7 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
284
298
  </div>
285
299
  </div>
286
300
  </div>
287
- `;default:throw new Error(`Unknown side: ${this.side}`)}}};w(An,"properties",{side:{type:String},status:{type:String},color:{type:String},logoUrl:{type:String,attribute:"logo"},position:{type:String}});customElements.get("mw-chat-message")||customElements.define("mw-chat-message",An);var ps=class extends T(S){constructor(){super(...arguments);w(this,"render",()=>h`
301
+ `;default:throw new Error(`Unknown side: ${this.side}`)}}};w(In,"properties",{side:{type:String},status:{type:String},color:{type:String},logoUrl:{type:String,attribute:"logo"},position:{type:String}});customElements.get("mw-chat-message")||customElements.define("mw-chat-message",In);var fs=class extends T(S){constructor(){super(...arguments);w(this,"render",()=>h`
288
302
  <svg class="leading-0 inline-block h-full w-full" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" xml:space="preserve">
289
303
  <circle fill="currentFill" stroke="none" cx="27" cy="50" r="6">
290
304
  <animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.1" />
@@ -296,11 +310,11 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
296
310
  <animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.3" />
297
311
  </circle>
298
312
  </svg>
299
- `)}};customElements.get("mw-loading")||customElements.define("mw-loading",ps);var Yu="https://molin.ai/?utm_source=molin-shop-ai&utm_medium=widget&utm_campaign=poweredby",fs=class extends T(S){constructor(){super(...arguments);w(this,"render",()=>h`
313
+ `)}};customElements.get("mw-loading")||customElements.define("mw-loading",fs);var Qu="https://molin.ai/?utm_source=molin-shop-ai&utm_medium=widget&utm_campaign=poweredby",hs=class extends T(S){constructor(){super(...arguments);w(this,"render",()=>h`
300
314
  <p class="flex items-center justify-center whitespace-nowrap text-xs">
301
315
  <span>Powered by</span>
302
316
 
303
- <a href="${Yu}" target="_blank" class="inline-flex items-center underline">
317
+ <a href="${Qu}" target="_blank" class="inline-flex items-center underline">
304
318
  <svg class="mx-1 inline-block h-4 w-4" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg">
305
319
  <circle cx="10.0361" cy="10.0361" r="10.0361" fill="#242038" />
306
320
  <path
@@ -319,7 +333,7 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
319
333
  <span>Molin AI</span>
320
334
  </a>
321
335
  </p>
322
- `)}};customElements.get("mw-powered-by")||customElements.define("mw-powered-by",fs);function hs(t){return new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(t)}function ya(t,e){let r=t instanceof URL?t:new URL(t);if(e)for(let[n,i]of e)r.searchParams.set(n,i);return r}var Pe=t=>t??E;var Qu={".section-spacing":{"@apply":"relative flex justify-center px-[25px] py-16 sm:px-9 sm:py-[45px] lg:px-24 lg:py-[104px]"}},ds=lr({preflight:{...Qu},hash:!1,darkMode:"class",theme:{extend:{fontFamily:{display:["Work Sans","sans-serif"],sans:["Inter","sans-serif"]},colors:{violet:{DEFAULT:"#601feb",50:"#f3f2ff",100:"#eae7ff",200:"#d7d2ff",300:"#baaeff",400:"#9980ff",500:"#784dff",600:"#6829fe",700:"#601feb",800:"#4b12c5",900:"#3f11a1",950:"#25086d"},pink:{DEFAULT:"#ff0bbb",50:"#fff0fc",100:"#ffe3fc",200:"#ffc6f9",300:"#ff98f2",400:"#ff58e5",500:"#ff27d5",600:"#ff0bbb",700:"#df0095",800:"#b8007b",900:"#980368",950:"#5f003b"},lime:{DEFAULT:"#b9e901",50:"#fdffe4",100:"#f9ffc5",200:"#f1ff92",300:"#e2ff54",400:"#d1fa21",500:"#b9e901",600:"#8ab400",700:"#688902",800:"#526b09",900:"#465a0d",950:"#243300"}}}},presets:[wn(),gn(),yn(),bn()],ignorelist:/^(sb-|css-|sbdocs|docblock|innerZoomElementWrapper|docs-|rejt-)/});var hr=t=>xn(ds)(t);var $t,dr,tt,Et,In,Mn=class extends hr(S){constructor(){super();d(this,Et);d(this,$t,!1);d(this,dr,!1);d(this,tt,!1);this.src=""}render(){return this.src?h`
336
+ `)}};customElements.get("mw-powered-by")||customElements.define("mw-powered-by",hs);function ds(t){return new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(t)}function va(t,e){let r=t instanceof URL?t:new URL(t);if(e)for(let[n,i]of e)r.searchParams.set(n,i);return r}var Re=t=>t??E;var ec={".section-spacing":{"@apply":"relative flex justify-center px-[25px] py-16 sm:px-9 sm:py-[45px] lg:px-24 lg:py-[104px]"}},ms=lr({preflight:{...ec},hash:!1,darkMode:"class",theme:{extend:{fontFamily:{display:["Work Sans","sans-serif"],sans:["Inter","sans-serif"]},colors:{violet:{DEFAULT:"#601feb",50:"#f3f2ff",100:"#eae7ff",200:"#d7d2ff",300:"#baaeff",400:"#9980ff",500:"#784dff",600:"#6829fe",700:"#601feb",800:"#4b12c5",900:"#3f11a1",950:"#25086d"},pink:{DEFAULT:"#ff0bbb",50:"#fff0fc",100:"#ffe3fc",200:"#ffc6f9",300:"#ff98f2",400:"#ff58e5",500:"#ff27d5",600:"#ff0bbb",700:"#df0095",800:"#b8007b",900:"#980368",950:"#5f003b"},lime:{DEFAULT:"#b9e901",50:"#fdffe4",100:"#f9ffc5",200:"#f1ff92",300:"#e2ff54",400:"#d1fa21",500:"#b9e901",600:"#8ab400",700:"#688902",800:"#526b09",900:"#465a0d",950:"#243300"}}}},presets:[xn(),vn(),wn(),kn()],ignorelist:/^(sb-|css-|sbdocs|docblock|innerZoomElementWrapper|docs-|rejt-)/});var dr=t=>Cn(ms)(t);var tt,gr,rt,nt,mr,Tn=class extends dr(S){constructor(){super();d(this,nt);d(this,tt,!1);d(this,gr,!1);d(this,rt,!1);this.src=""}render(){return(this.src?.startsWith("https://cdn.shopify.com")||!1)&&m(this,tt,!0),this.src?h`
323
337
  <div class="relative h-full w-full overflow-hidden rounded-lg">
324
338
  <!-- use the same icon as for missing image url as the background behind the image so there is no flicker while it's loading -->
325
339
  <div class="absolute inset-0 flex items-center justify-center bg-gray-100">
@@ -334,7 +348,7 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
334
348
 
335
349
  <!-- absolute position to take the height of the parent and to appear on top of the shopping bag background -->
336
350
  <div class="absolute inset-0 flex h-full w-full bg-gray-100">
337
- ${l(this,$t)&&l(this,dr)?h`
351
+ ${l(this,tt)&&l(this,gr)?h`
338
352
  <!-- missing image url -->
339
353
  <div class="flex h-full w-full items-center justify-center">
340
354
  <!-- shopping bag icon -->
@@ -345,25 +359,26 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
345
359
  d="M15.75 10.5V6a3.75 3.75 0 1 0-7.5 0v4.5m11.356-1.993 1.263 12c.07.665-.45 1.243-1.119 1.243H4.25a1.125 1.125 0 0 1-1.12-1.243l1.264-12A1.125 1.125 0 0 1 5.513 7.5h12.974c.576 0 1.059.435 1.119 1.007ZM8.625 10.5a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm7.5 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z" />
346
360
  </svg>
347
361
  </div>
348
- `:l(this,$t)?h`
362
+ `:l(this,tt)?h`
349
363
  <!-- we do not need an alt attribute because this does not matter for SEO and we do not have a non-generic image description anyway -->
350
364
  <img
351
- @error="${()=>{g(this,dr,!0),this.requestUpdate()}}"
352
- @load="${()=>{g(this,tt,!0),this.requestUpdate()}}"
353
- src="${m(this,Et,In).call(this,this.src)}"
354
- class="${l(this,tt)?"bg-white":""} h-full w-full object-cover"
365
+ @error="${()=>{m(this,gr,!0),this.requestUpdate()}}"
366
+ @load="${()=>{m(this,rt,!0),this.requestUpdate()}}"
367
+ src="${g(this,nt,mr).call(this,this.src)}"
368
+ class="${l(this,rt)?"bg-white":""} h-full w-full object-cover"
355
369
  loading="lazy" />
356
370
  `:h`
357
371
  <!-- Cloudflare Images: resize the source image -->
358
372
  <!-- we do not need an alt attribute because this does not matter for SEO and we do not have a non-generic image description anyway -->
359
373
  <img
360
- @error="${()=>{g(this,$t,!0),this.requestUpdate()}}"
361
- @load="${()=>{g(this,tt,!0),this.requestUpdate()}}"
374
+ @error="${()=>{m(this,tt,!0),this.requestUpdate()}}"
375
+ @load="${()=>{m(this,rt,!0),this.requestUpdate()}}"
376
+ src="https://molin.foo/cdn-cgi/image/w=70,fit=crop,format=auto,quality=75,dpr=1/${g(this,nt,mr).call(this,this.src)}"
362
377
  srcset="
363
- https://molin.foo/cdn-cgi/image/w=70,fit=crop,format=auto,quality=75,dpr=1/${m(this,Et,In).call(this,this.src)} 1x,
364
- https://molin.foo/cdn-cgi/image/w=70,fit=crop,format=auto,quality=75,dpr=2/${m(this,Et,In).call(this,this.src)} 2x
378
+ https://molin.foo/cdn-cgi/image/w=70,fit=crop,format=auto,quality=75,dpr=1/${g(this,nt,mr).call(this,this.src)} 1x,
379
+ https://molin.foo/cdn-cgi/image/w=70,fit=crop,format=auto,quality=75,dpr=2/${g(this,nt,mr).call(this,this.src)} 2x
365
380
  "
366
- class="${l(this,tt)?"bg-white":""} h-full w-full object-cover"
381
+ class="${l(this,rt)?"bg-white":""} h-full w-full object-cover"
367
382
  loading="lazy" />
368
383
  `}
369
384
  </div>
@@ -381,17 +396,17 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
381
396
  </svg>
382
397
  </div>
383
398
  </div>
384
- `}};$t=new WeakMap,dr=new WeakMap,tt=new WeakMap,Et=new WeakSet,In=function(r){try{return encodeURI(r)}catch{return r}},w(Mn,"properties",{src:{type:String}});customElements.get("mw-product-thumbnail")||customElements.define("mw-product-thumbnail",Mn);var Tn=class extends T(S){constructor(){super(),this.product=void 0,this.streaming=!1,this.linksNewTab=!1,this.searchParams=void 0,this.imagesByProductUrl={}}get trackedProductUrl(){let e=this.product?.url,r=this.searchParams;try{if(e&&r)return ya(e,r).href}catch{}return e}render(){let{name:e,description:r,price:n,url:i}=this.product||{},s=i?this.imagesByProductUrl?.[i]:void 0;return h`
399
+ `}};tt=new WeakMap,gr=new WeakMap,rt=new WeakMap,nt=new WeakSet,mr=function(r){try{return encodeURI(r)}catch{return r}},w(Tn,"properties",{src:{type:String}});customElements.get("mw-product-thumbnail")||customElements.define("mw-product-thumbnail",Tn);var On=class extends T(S){constructor(){super(),this.product=void 0,this.streaming=!1,this.linksNewTab=!1,this.searchParams=void 0,this.imagesByProductUrl={}}get trackedProductUrl(){let e=this.product?.url,r=this.searchParams;try{if(e&&r)return va(e,r).href}catch{}return e}render(){let{name:e,description:r,price:n,url:i}=this.product||{},s=i?this.imagesByProductUrl?.[i]:void 0;return h`
385
400
  <a
386
- href="${Pe(this.trackedProductUrl)}"
387
- title="${Pe(e)}"
401
+ href="${Re(this.trackedProductUrl)}"
402
+ title="${Re(e)}"
388
403
  class="group flex w-full max-w-md cursor-pointer gap-[10px] overflow-hidden rounded-lg"
389
404
  target="${this.linksNewTab?"_blank":"_self"}"
390
405
  ?disabled="${this.streaming}">
391
406
  ${this.streaming?h`
392
407
  <!-- shimmer -->
393
408
  <div class="h-[70px] w-[70px] animate-pulse overflow-hidden rounded-lg bg-gray-200"></div>
394
- `:h`<mw-product-thumbnail class="block h-[70px] w-[70px]" src="${Pe(s)}"></mw-product-thumbnail>`}
409
+ `:h`<mw-product-thumbnail class="block h-[70px] w-[70px]" src="${Re(s)}"></mw-product-thumbnail>`}
395
410
 
396
411
  <div class="flex flex-1 flex-col justify-between">
397
412
  <div>
@@ -407,7 +422,7 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
407
422
  ${n||!this.streaming?h`<span class="text-xs text-gray-900">${n}</span>`:h`<div class="h-4 w-14 animate-pulse rounded bg-gray-200"></div>`}
408
423
  </div>
409
424
  </a>
410
- `}};w(Tn,"properties",{product:{type:Object},streaming:{type:Boolean},linksNewTab:{type:Boolean,attribute:"links-new-tab"},searchParams:{type:Object},imagesByProductUrl:{type:Object}});customElements.get("mw-product-card-horizontal")||customElements.define("mw-product-card-horizontal",Tn);function On(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}var jn=function(){},St=function(){};var mr=(t,e,r)=>Math.min(Math.max(r,t),e);var ms=.001,ec=.01,va=10,tc=.05,rc=1;function wa({duration:t=800,bounce:e=.25,velocity:r=0,mass:n=1}){let i,s;jn(t<=va*1e3,"Spring duration must be 10 seconds or less");let o=1-e;o=mr(tc,rc,o),t=mr(ec,va,t/1e3),o<1?(i=c=>{let f=c*o,p=f*t,b=f-r,x=Dn(c,o),k=Math.exp(-p);return ms-b/x*k},s=c=>{let p=c*o*t,b=p*r+r,x=Math.pow(o,2)*Math.pow(c,2)*t,k=Math.exp(-p),_=Dn(Math.pow(c,2),o);return(-i(c)+ms>0?-1:1)*((b-x)*k)/_}):(i=c=>{let f=Math.exp(-c*t),p=(c-r)*t+1;return-ms+f*p},s=c=>{let f=Math.exp(-c*t),p=(r-c)*(t*t);return f*p});let u=5/t,a=ic(i,s,u);if(t=t*1e3,isNaN(a))return{stiffness:100,damping:10,duration:t};{let c=Math.pow(a,2)*n;return{stiffness:c,damping:o*2*Math.sqrt(n*c),duration:t}}}var nc=12;function ic(t,e,r){let n=r;for(let i=1;i<nc;i++)n=n-t(n)/e(n);return n}function Dn(t,e){return t*Math.sqrt(1-e*e)}var sc=["duration","bounce"],oc=["stiffness","damping","mass"];function ba(t,e){return e.some(r=>t[r]!==void 0)}function ac(t){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!ba(t,oc)&&ba(t,sc)){let r=wa(t);e=Object.assign(Object.assign(Object.assign({},e),r),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}function Ln(t){var{from:e=0,to:r=1,restSpeed:n=2,restDelta:i}=t,s=On(t,["from","to","restSpeed","restDelta"]);let o={done:!1,value:e},{stiffness:u,damping:a,mass:c,velocity:f,duration:p,isResolvedFromDuration:b}=ac(s),x=xa,k=xa;function _(){let M=f?-(f/1e3):0,D=r-e,$=a/(2*Math.sqrt(u*c)),A=Math.sqrt(u/c)/1e3;if(i===void 0&&(i=Math.min(Math.abs(r-e)/100,.4)),$<1){let I=Dn(A,$);x=H=>{let z=Math.exp(-$*A*H);return r-z*((M+$*A*D)/I*Math.sin(I*H)+D*Math.cos(I*H))},k=H=>{let z=Math.exp(-$*A*H);return $*A*z*(Math.sin(I*H)*(M+$*A*D)/I+D*Math.cos(I*H))-z*(Math.cos(I*H)*(M+$*A*D)-I*D*Math.sin(I*H))}}else if($===1)x=I=>r-Math.exp(-A*I)*(D+(M+A*D)*I);else{let I=A*Math.sqrt($*$-1);x=H=>{let z=Math.exp(-$*A*H),J=Math.min(I*H,300);return r-z*((M+$*A*D)*Math.sinh(J)+I*D*Math.cosh(J))/I}}}return _(),{next:M=>{let D=x(M);if(b)o.done=M>=p;else{let $=k(M)*1e3,A=Math.abs($)<=n,I=Math.abs(r-D)<=i;o.done=A&&I}return o.value=o.done?r:D,o},flipTarget:()=>{f=-f,[e,r]=[r,e],_()}}}Ln.needsInterpolation=(t,e)=>typeof t=="string"||typeof e=="string";var xa=t=>0;var gs=(t,e,r)=>{let n=e-t;return n===0?1:(r-t)/n};var _t=(t,e,r)=>-r*t+r*e+t;var Pn=(t,e)=>r=>Math.max(Math.min(r,e),t),Re=t=>t%1?Number(t.toFixed(5)):t,At=/(-)?([\d]*\.?[\d])+/g,Rn=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,ka=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Me(t){return typeof t=="string"}var Mt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Un=Object.assign(Object.assign({},Mt),{transform:Pn(0,1)}),X1=Object.assign(Object.assign({},Mt),{default:1});var gr=t=>({test:e=>Me(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Y1=gr("deg"),It=gr("%"),Q1=gr("px"),eh=gr("vh"),th=gr("vw"),rh=Object.assign(Object.assign({},It),{parse:t=>It.parse(t)/100,transform:t=>It.transform(t*100)});var Tt=(t,e)=>r=>!!(Me(r)&&ka.test(r)&&r.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(r,e)),Vn=(t,e,r)=>n=>{if(!Me(n))return n;let[i,s,o,u]=n.match(At);return{[t]:parseFloat(i),[e]:parseFloat(s),[r]:parseFloat(o),alpha:u!==void 0?parseFloat(u):1}};var be={test:Tt("hsl","hue"),parse:Vn("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+It.transform(Re(e))+", "+It.transform(Re(r))+", "+Re(Un.transform(n))+")"};var lc=Pn(0,255),Fn=Object.assign(Object.assign({},Mt),{transform:t=>Math.round(lc(t))}),fe={test:Tt("rgb","red"),parse:Vn("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+Fn.transform(t)+", "+Fn.transform(e)+", "+Fn.transform(r)+", "+Re(Un.transform(n))+")"};function uc(t){let e="",r="",n="",i="";return t.length>5?(e=t.substr(1,2),r=t.substr(3,2),n=t.substr(5,2),i=t.substr(7,2)):(e=t.substr(1,1),r=t.substr(2,1),n=t.substr(3,1),i=t.substr(4,1),e+=e,r+=r,n+=n,i+=i),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}var Ot={test:Tt("#"),parse:uc,transform:fe.transform};var Ue={test:t=>fe.test(t)||Ot.test(t)||be.test(t),parse:t=>fe.test(t)?fe.parse(t):be.test(t)?be.parse(t):Ot.parse(t),transform:t=>Me(t)?t:t.hasOwnProperty("red")?fe.transform(t):be.transform(t)};var Ca="${c}",$a="${n}";function cc(t){var e,r,n,i;return isNaN(t)&&Me(t)&&((r=(e=t.match(At))===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0)+((i=(n=t.match(Rn))===null||n===void 0?void 0:n.length)!==null&&i!==void 0?i:0)>0}function Ea(t){typeof t=="number"&&(t=`${t}`);let e=[],r=0,n=t.match(Rn);n&&(r=n.length,t=t.replace(Rn,Ca),e.push(...n.map(Ue.parse)));let i=t.match(At);return i&&(t=t.replace(At,$a),e.push(...i.map(Mt.parse))),{values:e,numColors:r,tokenised:t}}function Sa(t){return Ea(t).values}function _a(t){let{values:e,numColors:r,tokenised:n}=Ea(t),i=e.length;return s=>{let o=n;for(let u=0;u<i;u++)o=o.replace(u<r?Ca:$a,u<r?Ue.transform(s[u]):Re(s[u]));return o}}var pc=t=>typeof t=="number"?0:t;function fc(t){let e=Sa(t);return _a(t)(e.map(pc))}var Hn={test:cc,parse:Sa,createTransformer:_a,getAnimatableNone:fc};function ys(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function vs({hue:t,saturation:e,lightness:r,alpha:n}){t/=360,e/=100,r/=100;let i=0,s=0,o=0;if(!e)i=s=o=r;else{let u=r<.5?r*(1+e):r+e-r*e,a=2*r-u;i=ys(a,u,t+1/3),s=ys(a,u,t),o=ys(a,u,t-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:n}}var hc=(t,e,r)=>{let n=t*t,i=e*e;return Math.sqrt(Math.max(0,r*(i-n)+n))},dc=[Ot,fe,be],Aa=t=>dc.find(e=>e.test(t)),Ma=t=>`'${t}' is not an animatable color. Use the equivalent color code instead.`,Nn=(t,e)=>{let r=Aa(t),n=Aa(e);St(!!r,Ma(t)),St(!!n,Ma(e));let i=r.parse(t),s=n.parse(e);r===be&&(i=vs(i),r=fe),n===be&&(s=vs(s),n=fe);let o=Object.assign({},i);return u=>{for(let a in o)a!=="alpha"&&(o[a]=hc(i[a],s[a],u));return o.alpha=_t(i.alpha,s.alpha,u),r.transform(o)}};var Ia=t=>typeof t=="number";var mc=(t,e)=>r=>e(t(r)),Bn=(...t)=>t.reduce(mc);function Oa(t,e){return Ia(t)?r=>_t(t,e,r):Ue.test(t)?Nn(t,e):bs(t,e)}var ws=(t,e)=>{let r=[...t],n=r.length,i=t.map((s,o)=>Oa(s,e[o]));return s=>{for(let o=0;o<n;o++)r[o]=i[o](s);return r}},ja=(t,e)=>{let r=Object.assign(Object.assign({},t),e),n={};for(let i in r)t[i]!==void 0&&e[i]!==void 0&&(n[i]=Oa(t[i],e[i]));return i=>{for(let s in n)r[s]=n[s](i);return r}};function Ta(t){let e=Hn.parse(t),r=e.length,n=0,i=0,s=0;for(let o=0;o<r;o++)n||typeof e[o]=="number"?n++:e[o].hue!==void 0?s++:i++;return{parsed:e,numNumbers:n,numRGB:i,numHSL:s}}var bs=(t,e)=>{let r=Hn.createTransformer(e),n=Ta(t),i=Ta(e);return n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers?Bn(ws(n.parsed,i.parsed),r):(jn(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),o=>`${o>0?e:t}`)};var gc=(t,e)=>r=>_t(t,e,r);function yc(t){if(typeof t=="number")return gc;if(typeof t=="string")return Ue.test(t)?Nn:bs;if(Array.isArray(t))return ws;if(typeof t=="object")return ja}function vc(t,e,r){let n=[],i=r||yc(t[0]),s=t.length-1;for(let o=0;o<s;o++){let u=i(t[o],t[o+1]);if(e){let a=Array.isArray(e)?e[o]:e;u=Bn(a,u)}n.push(u)}return n}function wc([t,e],[r]){return n=>r(gs(t,e,n))}function bc(t,e){let r=t.length,n=r-1;return i=>{let s=0,o=!1;if(i<=t[0]?o=!0:i>=t[n]&&(s=n-1,o=!0),!o){let a=1;for(;a<r&&!(t[a]>i||a===n);a++);s=a-1}let u=gs(t[s],t[s+1],i);return e[s](u)}}function qn(t,e,{clamp:r=!0,ease:n,mixer:i}={}){let s=t.length;St(s===e.length,"Both input and output ranges must be the same length"),St(!n||!Array.isArray(n)||n.length===s-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[s-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());let o=vc(e,n,i),u=s===2?wc(t,o):bc(t,o);return r?a=>u(mr(t[0],t[s-1],a)):u}var yr=t=>e=>1-t(1-e),zn=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Da=t=>e=>Math.pow(e,t),xs=t=>e=>e*e*((t+1)*e-t),La=t=>{let e=xs(t);return r=>(r*=2)<1?.5*e(r):.5*(2-Math.pow(2,-10*(r-1)))};var Pa=1.525,xc=4/11,kc=8/11,Cc=9/10;var Ra=Da(2),sd=yr(Ra),Ua=zn(Ra),$c=t=>1-Math.sin(Math.acos(t)),Ec=yr($c),od=zn(Ec),Va=xs(Pa),ad=yr(Va),ld=zn(Va),ud=La(Pa),Sc=4356/361,_c=35442/1805,Ac=16061/1805,Mc=t=>{if(t===1||t===0)return t;let e=t*t;return t<xc?7.5625*e:t<kc?9.075*e-9.9*t+3.4:t<Cc?Sc*e-_c*t+Ac:10.8*t*t-20.52*t+10.72},cd=yr(Mc);function Ic(t,e){return t.map(()=>e||Ua).splice(0,t.length-1)}function Tc(t){let e=t.length;return t.map((r,n)=>n!==0?n/(e-1):0)}function Oc(t,e){return t.map(r=>r*e)}function vr({from:t=0,to:e=1,ease:r,offset:n,duration:i=300}){let s={done:!1,value:t},o=Array.isArray(e)?e:[t,e],u=Oc(n&&n.length===o.length?n:Tc(o),i);function a(){return qn(u,o,{ease:Array.isArray(r)?r:Ic(o,r)})}let c=a();return{next:f=>(s.value=c(f),s.done=f>=i,s),flipTarget:()=>{o.reverse(),c=a()}}}function Fa({velocity:t=0,from:e=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:s}){let o={done:!1,value:e},u=r*t,a=e+u,c=s===void 0?a:s(a);return c!==a&&(u=c-e),{next:f=>{let p=-u*Math.exp(-f/n);return o.done=!(p>i||p<-i),o.value=o.done?c:c+p,o},flipTarget:()=>{}}}var Ha={keyframes:vr,spring:Ln,decay:Fa};function Na(t){if(Array.isArray(t.to))return vr;if(Ha[t.type])return Ha[t.type];let e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?vr:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?Ln:vr}var ks=16.666666666666668,jc=typeof performance<"u"?()=>performance.now():()=>Date.now(),Cs=typeof window<"u"?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(jc()),ks);function Ba(t){let e=[],r=[],n=0,i=!1,s=!1,o=new WeakSet,u={schedule:(a,c=!1,f=!1)=>{let p=f&&i,b=p?e:r;return c&&o.add(a),b.indexOf(a)===-1&&(b.push(a),p&&i&&(n=e.length)),a},cancel:a=>{let c=r.indexOf(a);c!==-1&&r.splice(c,1),o.delete(a)},process:a=>{if(i){s=!0;return}if(i=!0,[e,r]=[r,e],r.length=0,n=e.length,n)for(let c=0;c<n;c++){let f=e[c];f(a),o.has(f)&&(u.schedule(f),t())}i=!1,s&&(s=!1,u.process(a))}};return u}var Dc=40,$s=!0,br=!1,Es=!1,wr={delta:0,timestamp:0},xr=["read","update","preRender","render","postRender"],Wn=xr.reduce((t,e)=>(t[e]=Ba(()=>br=!0),t),{}),Lc=xr.reduce((t,e)=>{let r=Wn[e];return t[e]=(n,i=!1,s=!1)=>(br||Rc(),r.schedule(n,i,s)),t},{}),qa=xr.reduce((t,e)=>(t[e]=Wn[e].cancel,t),{}),$d=xr.reduce((t,e)=>(t[e]=()=>Wn[e].process(wr),t),{}),Pc=t=>Wn[t].process(wr),za=t=>{br=!1,wr.delta=$s?ks:Math.max(Math.min(t-wr.timestamp,Dc),1),wr.timestamp=t,Es=!0,xr.forEach(Pc),Es=!1,br&&($s=!1,Cs(za))},Rc=()=>{br=!0,$s=!0,Es||Cs(za)};var Wa=Lc;function Ss(t,e,r=0){return t-e-r}function Ga(t,e,r=0,n=!0){return n?Ss(e+-t,e,r):e-(t-e)+r}function Za(t,e,r,n){return n?t>=e+r:t<=-r}var Uc=t=>{let e=({delta:r})=>t(r);return{start:()=>Wa.update(e,!0),stop:()=>qa.update(e)}};function _s(t){var e,r,{from:n,autoplay:i=!0,driver:s=Uc,elapsed:o=0,repeat:u=0,repeatType:a="loop",repeatDelay:c=0,onPlay:f,onStop:p,onComplete:b,onRepeat:x,onUpdate:k}=t,_=On(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:M}=_,D,$=0,A=_.duration,I,H=!1,z=!0,J,j=Na(_);!((r=(e=j).needsInterpolation)===null||r===void 0)&&r.call(e,n,M)&&(J=qn([0,100],[n,M],{clamp:!1}),n=0,M=100);let K=j(Object.assign(Object.assign({},_),{from:n,to:M}));function re(){$++,a==="reverse"?(z=$%2===0,o=Ga(o,A,c,z)):(o=Ss(o,A,c),a==="mirror"&&K.flipTarget()),H=!1,x&&x()}function Si(){D.stop(),b&&b()}function ze(N){if(z||(N=-N),o+=N,!H){let Q=K.next(Math.max(0,o));I=Q.value,J&&(I=J(I)),H=z?Q.done:o<=0}k?.(I),H&&($===0&&(A??(A=o)),$<u?Za(o,A,c,z)&&re():Si())}function Kr(){f?.(),D=s(ze),D.start()}return i&&Kr(),{stop:()=>{p?.(),D.stop()}}}var R,Xa,Gn,Ja,Zn,Ka,Ya,Qa,Xn,Jn=class Jn extends T(S){constructor(){super();d(this,R);this.product=void 0,this.labels={addToCart:"Add to cart",color:"Color",size:"Size"},this._currentImageIndex=0,this._isValidUrl=!1}willUpdate(r){r.has("product")&&m(this,R,Xa).call(this)}get images(){return this.product?.images||[]}render(){if(!this.product)return h`
425
+ `}};w(On,"properties",{product:{type:Object},streaming:{type:Boolean},linksNewTab:{type:Boolean,attribute:"links-new-tab"},searchParams:{type:Object},imagesByProductUrl:{type:Object}});customElements.get("mw-product-card-horizontal")||customElements.define("mw-product-card-horizontal",On);function Ln(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}var jn=function(){},St=function(){};var yr=(t,e,r)=>Math.min(Math.max(r,t),e);var gs=.001,tc=.01,wa=10,rc=.05,nc=1;function ba({duration:t=800,bounce:e=.25,velocity:r=0,mass:n=1}){let i,s;jn(t<=wa*1e3,"Spring duration must be 10 seconds or less");let o=1-e;o=yr(rc,nc,o),t=yr(tc,wa,t/1e3),o<1?(i=c=>{let f=c*o,p=f*t,b=f-r,x=Dn(c,o),k=Math.exp(-p);return gs-b/x*k},s=c=>{let p=c*o*t,b=p*r+r,x=Math.pow(o,2)*Math.pow(c,2)*t,k=Math.exp(-p),_=Dn(Math.pow(c,2),o);return(-i(c)+gs>0?-1:1)*((b-x)*k)/_}):(i=c=>{let f=Math.exp(-c*t),p=(c-r)*t+1;return-gs+f*p},s=c=>{let f=Math.exp(-c*t),p=(r-c)*(t*t);return f*p});let u=5/t,a=sc(i,s,u);if(t=t*1e3,isNaN(a))return{stiffness:100,damping:10,duration:t};{let c=Math.pow(a,2)*n;return{stiffness:c,damping:o*2*Math.sqrt(n*c),duration:t}}}var ic=12;function sc(t,e,r){let n=r;for(let i=1;i<ic;i++)n=n-t(n)/e(n);return n}function Dn(t,e){return t*Math.sqrt(1-e*e)}var oc=["duration","bounce"],ac=["stiffness","damping","mass"];function xa(t,e){return e.some(r=>t[r]!==void 0)}function lc(t){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!xa(t,ac)&&xa(t,oc)){let r=ba(t);e=Object.assign(Object.assign(Object.assign({},e),r),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}function Rn(t){var{from:e=0,to:r=1,restSpeed:n=2,restDelta:i}=t,s=Ln(t,["from","to","restSpeed","restDelta"]);let o={done:!1,value:e},{stiffness:u,damping:a,mass:c,velocity:f,duration:p,isResolvedFromDuration:b}=lc(s),x=ka,k=ka;function _(){let M=f?-(f/1e3):0,j=r-e,$=a/(2*Math.sqrt(u*c)),A=Math.sqrt(u/c)/1e3;if(i===void 0&&(i=Math.min(Math.abs(r-e)/100,.4)),$<1){let I=Dn(A,$);x=H=>{let z=Math.exp(-$*A*H);return r-z*((M+$*A*j)/I*Math.sin(I*H)+j*Math.cos(I*H))},k=H=>{let z=Math.exp(-$*A*H);return $*A*z*(Math.sin(I*H)*(M+$*A*j)/I+j*Math.cos(I*H))-z*(Math.cos(I*H)*(M+$*A*j)-I*j*Math.sin(I*H))}}else if($===1)x=I=>r-Math.exp(-A*I)*(j+(M+A*j)*I);else{let I=A*Math.sqrt($*$-1);x=H=>{let z=Math.exp(-$*A*H),X=Math.min(I*H,300);return r-z*((M+$*A*j)*Math.sinh(X)+I*j*Math.cosh(X))/I}}}return _(),{next:M=>{let j=x(M);if(b)o.done=M>=p;else{let $=k(M)*1e3,A=Math.abs($)<=n,I=Math.abs(r-j)<=i;o.done=A&&I}return o.value=o.done?r:j,o},flipTarget:()=>{f=-f,[e,r]=[r,e],_()}}}Rn.needsInterpolation=(t,e)=>typeof t=="string"||typeof e=="string";var ka=t=>0;var ys=(t,e,r)=>{let n=e-t;return n===0?1:(r-t)/n};var _t=(t,e,r)=>-r*t+r*e+t;var Pn=(t,e)=>r=>Math.max(Math.min(r,e),t),Pe=t=>t%1?Number(t.toFixed(5)):t,At=/(-)?([\d]*\.?[\d])+/g,Un=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Ca=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Me(t){return typeof t=="string"}var Mt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Vn=Object.assign(Object.assign({},Mt),{transform:Pn(0,1)}),Kf=Object.assign(Object.assign({},Mt),{default:1});var vr=t=>({test:e=>Me(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),eh=vr("deg"),It=vr("%"),th=vr("px"),rh=vr("vh"),nh=vr("vw"),ih=Object.assign(Object.assign({},It),{parse:t=>It.parse(t)/100,transform:t=>It.transform(t*100)});var Tt=(t,e)=>r=>!!(Me(r)&&Ca.test(r)&&r.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(r,e)),Fn=(t,e,r)=>n=>{if(!Me(n))return n;let[i,s,o,u]=n.match(At);return{[t]:parseFloat(i),[e]:parseFloat(s),[r]:parseFloat(o),alpha:u!==void 0?parseFloat(u):1}};var be={test:Tt("hsl","hue"),parse:Fn("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+It.transform(Pe(e))+", "+It.transform(Pe(r))+", "+Pe(Vn.transform(n))+")"};var uc=Pn(0,255),Hn=Object.assign(Object.assign({},Mt),{transform:t=>Math.round(uc(t))}),fe={test:Tt("rgb","red"),parse:Fn("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+Hn.transform(t)+", "+Hn.transform(e)+", "+Hn.transform(r)+", "+Pe(Vn.transform(n))+")"};function cc(t){let e="",r="",n="",i="";return t.length>5?(e=t.substr(1,2),r=t.substr(3,2),n=t.substr(5,2),i=t.substr(7,2)):(e=t.substr(1,1),r=t.substr(2,1),n=t.substr(3,1),i=t.substr(4,1),e+=e,r+=r,n+=n,i+=i),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}var Ot={test:Tt("#"),parse:cc,transform:fe.transform};var Ue={test:t=>fe.test(t)||Ot.test(t)||be.test(t),parse:t=>fe.test(t)?fe.parse(t):be.test(t)?be.parse(t):Ot.parse(t),transform:t=>Me(t)?t:t.hasOwnProperty("red")?fe.transform(t):be.transform(t)};var $a="${c}",Ea="${n}";function pc(t){var e,r,n,i;return isNaN(t)&&Me(t)&&((r=(e=t.match(At))===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0)+((i=(n=t.match(Un))===null||n===void 0?void 0:n.length)!==null&&i!==void 0?i:0)>0}function Sa(t){typeof t=="number"&&(t=`${t}`);let e=[],r=0,n=t.match(Un);n&&(r=n.length,t=t.replace(Un,$a),e.push(...n.map(Ue.parse)));let i=t.match(At);return i&&(t=t.replace(At,Ea),e.push(...i.map(Mt.parse))),{values:e,numColors:r,tokenised:t}}function _a(t){return Sa(t).values}function Aa(t){let{values:e,numColors:r,tokenised:n}=Sa(t),i=e.length;return s=>{let o=n;for(let u=0;u<i;u++)o=o.replace(u<r?$a:Ea,u<r?Ue.transform(s[u]):Pe(s[u]));return o}}var fc=t=>typeof t=="number"?0:t;function hc(t){let e=_a(t);return Aa(t)(e.map(fc))}var Nn={test:pc,parse:_a,createTransformer:Aa,getAnimatableNone:hc};function vs(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function ws({hue:t,saturation:e,lightness:r,alpha:n}){t/=360,e/=100,r/=100;let i=0,s=0,o=0;if(!e)i=s=o=r;else{let u=r<.5?r*(1+e):r+e-r*e,a=2*r-u;i=vs(a,u,t+1/3),s=vs(a,u,t),o=vs(a,u,t-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:n}}var dc=(t,e,r)=>{let n=t*t,i=e*e;return Math.sqrt(Math.max(0,r*(i-n)+n))},mc=[Ot,fe,be],Ma=t=>mc.find(e=>e.test(t)),Ia=t=>`'${t}' is not an animatable color. Use the equivalent color code instead.`,Bn=(t,e)=>{let r=Ma(t),n=Ma(e);St(!!r,Ia(t)),St(!!n,Ia(e));let i=r.parse(t),s=n.parse(e);r===be&&(i=ws(i),r=fe),n===be&&(s=ws(s),n=fe);let o=Object.assign({},i);return u=>{for(let a in o)a!=="alpha"&&(o[a]=dc(i[a],s[a],u));return o.alpha=_t(i.alpha,s.alpha,u),r.transform(o)}};var Ta=t=>typeof t=="number";var gc=(t,e)=>r=>e(t(r)),qn=(...t)=>t.reduce(gc);function La(t,e){return Ta(t)?r=>_t(t,e,r):Ue.test(t)?Bn(t,e):xs(t,e)}var bs=(t,e)=>{let r=[...t],n=r.length,i=t.map((s,o)=>La(s,e[o]));return s=>{for(let o=0;o<n;o++)r[o]=i[o](s);return r}},ja=(t,e)=>{let r=Object.assign(Object.assign({},t),e),n={};for(let i in r)t[i]!==void 0&&e[i]!==void 0&&(n[i]=La(t[i],e[i]));return i=>{for(let s in n)r[s]=n[s](i);return r}};function Oa(t){let e=Nn.parse(t),r=e.length,n=0,i=0,s=0;for(let o=0;o<r;o++)n||typeof e[o]=="number"?n++:e[o].hue!==void 0?s++:i++;return{parsed:e,numNumbers:n,numRGB:i,numHSL:s}}var xs=(t,e)=>{let r=Nn.createTransformer(e),n=Oa(t),i=Oa(e);return n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers?qn(bs(n.parsed,i.parsed),r):(jn(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),o=>`${o>0?e:t}`)};var yc=(t,e)=>r=>_t(t,e,r);function vc(t){if(typeof t=="number")return yc;if(typeof t=="string")return Ue.test(t)?Bn:xs;if(Array.isArray(t))return bs;if(typeof t=="object")return ja}function wc(t,e,r){let n=[],i=r||vc(t[0]),s=t.length-1;for(let o=0;o<s;o++){let u=i(t[o],t[o+1]);if(e){let a=Array.isArray(e)?e[o]:e;u=qn(a,u)}n.push(u)}return n}function bc([t,e],[r]){return n=>r(ys(t,e,n))}function xc(t,e){let r=t.length,n=r-1;return i=>{let s=0,o=!1;if(i<=t[0]?o=!0:i>=t[n]&&(s=n-1,o=!0),!o){let a=1;for(;a<r&&!(t[a]>i||a===n);a++);s=a-1}let u=ys(t[s],t[s+1],i);return e[s](u)}}function zn(t,e,{clamp:r=!0,ease:n,mixer:i}={}){let s=t.length;St(s===e.length,"Both input and output ranges must be the same length"),St(!n||!Array.isArray(n)||n.length===s-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[s-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());let o=wc(e,n,i),u=s===2?bc(t,o):xc(t,o);return r?a=>u(yr(t[0],t[s-1],a)):u}var wr=t=>e=>1-t(1-e),Wn=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Da=t=>e=>Math.pow(e,t),ks=t=>e=>e*e*((t+1)*e-t),Ra=t=>{let e=ks(t);return r=>(r*=2)<1?.5*e(r):.5*(2-Math.pow(2,-10*(r-1)))};var Pa=1.525,kc=4/11,Cc=8/11,$c=9/10;var Ua=Da(2),a0=wr(Ua),Va=Wn(Ua),Ec=t=>1-Math.sin(Math.acos(t)),Sc=wr(Ec),l0=Wn(Sc),Fa=ks(Pa),u0=wr(Fa),c0=Wn(Fa),p0=Ra(Pa),_c=4356/361,Ac=35442/1805,Mc=16061/1805,Ic=t=>{if(t===1||t===0)return t;let e=t*t;return t<kc?7.5625*e:t<Cc?9.075*e-9.9*t+3.4:t<$c?_c*e-Ac*t+Mc:10.8*t*t-20.52*t+10.72},f0=wr(Ic);function Tc(t,e){return t.map(()=>e||Va).splice(0,t.length-1)}function Oc(t){let e=t.length;return t.map((r,n)=>n!==0?n/(e-1):0)}function Lc(t,e){return t.map(r=>r*e)}function br({from:t=0,to:e=1,ease:r,offset:n,duration:i=300}){let s={done:!1,value:t},o=Array.isArray(e)?e:[t,e],u=Lc(n&&n.length===o.length?n:Oc(o),i);function a(){return zn(u,o,{ease:Array.isArray(r)?r:Tc(o,r)})}let c=a();return{next:f=>(s.value=c(f),s.done=f>=i,s),flipTarget:()=>{o.reverse(),c=a()}}}function Ha({velocity:t=0,from:e=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:s}){let o={done:!1,value:e},u=r*t,a=e+u,c=s===void 0?a:s(a);return c!==a&&(u=c-e),{next:f=>{let p=-u*Math.exp(-f/n);return o.done=!(p>i||p<-i),o.value=o.done?c:c+p,o},flipTarget:()=>{}}}var Na={keyframes:br,spring:Rn,decay:Ha};function Ba(t){if(Array.isArray(t.to))return br;if(Na[t.type])return Na[t.type];let e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?br:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?Rn:br}var Cs=16.666666666666668,jc=typeof performance<"u"?()=>performance.now():()=>Date.now(),$s=typeof window<"u"?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(jc()),Cs);function qa(t){let e=[],r=[],n=0,i=!1,s=!1,o=new WeakSet,u={schedule:(a,c=!1,f=!1)=>{let p=f&&i,b=p?e:r;return c&&o.add(a),b.indexOf(a)===-1&&(b.push(a),p&&i&&(n=e.length)),a},cancel:a=>{let c=r.indexOf(a);c!==-1&&r.splice(c,1),o.delete(a)},process:a=>{if(i){s=!0;return}if(i=!0,[e,r]=[r,e],r.length=0,n=e.length,n)for(let c=0;c<n;c++){let f=e[c];f(a),o.has(f)&&(u.schedule(f),t())}i=!1,s&&(s=!1,u.process(a))}};return u}var Dc=40,Es=!0,kr=!1,Ss=!1,xr={delta:0,timestamp:0},Cr=["read","update","preRender","render","postRender"],Zn=Cr.reduce((t,e)=>(t[e]=qa(()=>kr=!0),t),{}),Rc=Cr.reduce((t,e)=>{let r=Zn[e];return t[e]=(n,i=!1,s=!1)=>(kr||Uc(),r.schedule(n,i,s)),t},{}),za=Cr.reduce((t,e)=>(t[e]=Zn[e].cancel,t),{}),S0=Cr.reduce((t,e)=>(t[e]=()=>Zn[e].process(xr),t),{}),Pc=t=>Zn[t].process(xr),Wa=t=>{kr=!1,xr.delta=Es?Cs:Math.max(Math.min(t-xr.timestamp,Dc),1),xr.timestamp=t,Ss=!0,Cr.forEach(Pc),Ss=!1,kr&&(Es=!1,$s(Wa))},Uc=()=>{kr=!0,Es=!0,Ss||$s(Wa)};var Za=Rc;function _s(t,e,r=0){return t-e-r}function Ga(t,e,r=0,n=!0){return n?_s(e+-t,e,r):e-(t-e)+r}function Ja(t,e,r,n){return n?t>=e+r:t<=-r}var Vc=t=>{let e=({delta:r})=>t(r);return{start:()=>Za.update(e,!0),stop:()=>za.update(e)}};function As(t){var e,r,{from:n,autoplay:i=!0,driver:s=Vc,elapsed:o=0,repeat:u=0,repeatType:a="loop",repeatDelay:c=0,onPlay:f,onStop:p,onComplete:b,onRepeat:x,onUpdate:k}=t,_=Ln(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:M}=_,j,$=0,A=_.duration,I,H=!1,z=!0,X,L=Ba(_);!((r=(e=L).needsInterpolation)===null||r===void 0)&&r.call(e,n,M)&&(X=zn([0,100],[n,M],{clamp:!1}),n=0,M=100);let K=L(Object.assign(Object.assign({},_),{from:n,to:M}));function re(){$++,a==="reverse"?(z=$%2===0,o=Ga(o,A,c,z)):(o=_s(o,A,c),a==="mirror"&&K.flipTarget()),H=!1,x&&x()}function _i(){j.stop(),b&&b()}function ze(N){if(z||(N=-N),o+=N,!H){let Q=K.next(Math.max(0,o));I=Q.value,X&&(I=X(I)),H=z?Q.done:o<=0}k?.(I),H&&($===0&&(A??(A=o)),$<u?Ja(o,A,c,z)&&re():_i())}function Qr(){f?.(),j=s(ze),j.start()}return i&&Qr(),{stop:()=>{p?.(),j.stop()}}}var P,Xa,Gn,Ka,Jn,Ya,Qa,el,Xn,Kn=class Kn extends T(S){constructor(){super();d(this,P);this.product=void 0,this.labels={addToCart:"Add to cart",color:"Color",size:"Size"},this._currentImageIndex=0,this._isValidUrl=!1}willUpdate(r){r.has("product")&&g(this,P,Xa).call(this)}get images(){return this.product?.images||[]}render(){if(!this.product)return h`
411
426
  <div class="my-2 w-full rounded-3xl border bg-white p-4">
412
427
  <div class="relative mx-auto mb-4 max-w-[240px]">
413
428
  <div class="h-[180px] w-full animate-pulse rounded-2xl bg-gray-200"></div>
@@ -457,12 +472,12 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
457
472
  ${pr(this.images.length>1,()=>h`
458
473
  <div class="absolute inset-0 flex items-center justify-between px-4">
459
474
  <button
460
- @click="${m(this,R,Ya)}"
475
+ @click="${g(this,P,Qa)}"
461
476
  class="absolute left-2 top-1/2 flex h-5 w-5 -translate-y-1/2 items-center justify-center rounded-full bg-white bg-opacity-80 shadow transition-all hover:bg-opacity-100">
462
477
  <hi-outline class="block h-6 w-3" name="chevron-left"></hi-outline>
463
478
  </button>
464
479
  <button
465
- @click="${m(this,R,Ka)}"
480
+ @click="${g(this,P,Ya)}"
466
481
  class="absolute right-2 top-1/2 flex h-5 w-5 -translate-y-1/2 items-center justify-center rounded-full bg-white bg-opacity-80 shadow transition-all hover:bg-opacity-100">
467
482
  <hi-outline class="block h-6 w-3" name="chevron-right"></hi-outline>
468
483
  </button>
@@ -472,18 +487,18 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
472
487
  <div class="slider-dots absolute bottom-3 left-1/2 flex -translate-x-1/2 gap-2">
473
488
  ${this.images.map((o,u)=>h`
474
489
  <button
475
- @click="${()=>m(this,R,Qa).call(this,u)}"
490
+ @click="${()=>g(this,P,el).call(this,u)}"
476
491
  class="${u===this._currentImageIndex?"bg-opacity-100":"bg-opacity-60"} h-1.5 w-1.5 rounded-full bg-white transition-all hover:bg-opacity-80"></button>
477
492
  `)}
478
493
  </div>
479
494
  `)}
480
495
  </div>
481
496
  </div>
482
- <div @click="${m(this,R,Gn)}" class="cursor-pointer">
483
- ${s?h`<a @click="${m(this,R,Gn)}" class="${this._isValidUrl?"":"pointer-events-none"} line-clamp-1 text-xs text-gray-600 hover:underline"> ${s} </a>`:null}
497
+ <div @click="${g(this,P,Gn)}" class="cursor-pointer">
498
+ ${s?h`<a @click="${g(this,P,Gn)}" class="${this._isValidUrl?"":"pointer-events-none"} line-clamp-1 text-xs text-gray-600 hover:underline"> ${s} </a>`:null}
484
499
 
485
500
  <h3
486
- @click="${m(this,R,Gn)}"
501
+ @click="${g(this,P,Gn)}"
487
502
  class="${this._isValidUrl?"":"pointer-events-none cursor-default"} mb-1 line-clamp-2 cursor-pointer text-lg font-semibold transition-all hover:underline">
488
503
  ${r||h`<span class="inline-block h-6 w-32 animate-pulse rounded bg-gray-200"></span>`}
489
504
  </h3>
@@ -493,14 +508,14 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
493
508
  <!-- <div class="my-4 border-t border-gray-200"></div> -->
494
509
 
495
510
  <!-- <button
496
- @click="${m(this,R,Ja)}"
511
+ @click="${g(this,P,Ka)}"
497
512
  ?disabled="${!this._isValidUrl}"
498
513
  class="${this._isValidUrl?"bg-gray-900 hover:bg-gray-800":"bg-gray-900/80 cursor-default"} w-full rounded-xl px-4 py-1.5 text-sm text-white">
499
514
  ${this.labels.addToCart}
500
515
  </button> -->
501
516
  </div>
502
517
  </div>
503
- `}};R=new WeakSet,Xa=function(){if(!this.product?.url){this._isValidUrl=!1;return}try{let r=new URL(this.product.url);this._isValidUrl=r.protocol==="http:"||r.protocol==="https:"}catch{this._isValidUrl=!1}},Gn=function(r){r.preventDefault(),!(!this.product?.url||!this._isValidUrl)&&window.open(this.product.url,"_blank")},Ja=function(r){!this.product?.url||!this._isValidUrl||(window.open(this.product.url,"_blank"),this.dispatchEvent(new Jn.AddToCartEvent(this.product)))},Zn=function(r,n){l(this,R,Xn)&&_s({from:r,to:n,duration:300,onUpdate:i=>{l(this,R,Xn)&&(l(this,R,Xn).style.transform=`translateX(${i}%)`)}})},Ka=function(){if(!this.product?.images?.length)return;let r=this._currentImageIndex,n=(r+1)%this.product.images.length,i=-(r*100),s=-(n*100);m(this,R,Zn).call(this,i,s),this._currentImageIndex=n},Ya=function(){if(!this.product?.images?.length)return;let r=this._currentImageIndex,n=(r-1+this.product.images.length)%this.product.images.length,i=-(r*100),s=-(n*100);m(this,R,Zn).call(this,i,s),this._currentImageIndex=n},Qa=function(r){if(!this.product?.images?.length)return;let n=this._currentImageIndex,i=Math.max(0,Math.min(r,this.product.images.length-1)),s=-(n*100),o=-(i*100);m(this,R,Zn).call(this,s,o),this._currentImageIndex=i},Xn=function(){return this.renderRoot.querySelector(".image-slider")},w(Jn,"properties",{product:{type:Object},labels:{type:Object},_currentImageIndex:{type:Number,state:!0},_isValidUrl:{type:Boolean,state:!0}});var kr=Jn,As;kr.AddToCartEvent=(As=class extends CustomEvent{constructor(e,r={}){super(kr.AddToCartEvent.type,{detail:{product:e},...r})}},w(As,"type","mw-product-card:add-to-cart"),As);customElements.get("mw-product-card")||customElements.define("mw-product-card",kr);var Cr,ne,xe,$r,Ms,Kn=class{constructor(e,r){d(this,$r);d(this,Cr);d(this,ne);d(this,xe);if(!e)throw new Error("host is required");if(!r)throw new Error("config is required");g(this,Cr,e),l(this,Cr).addController(this),g(this,ne,r)}connect(e){g(this,ne,e),g(this,xe,m(this,$r,Ms).call(this))}hostConnected(){setTimeout(()=>{g(this,xe,m(this,$r,Ms).call(this))},0)}hostDisconnected(){l(this,xe)?.close(1e3,"lit_host_disconnected"),g(this,xe,void 0)}send(e){l(this,xe)?.send(e)}close(e,r){l(this,xe)?.close(e,r)}get isConnected(){return l(this,xe)?.readyState===WebSocket.OPEN}};Cr=new WeakMap,ne=new WeakMap,xe=new WeakMap,$r=new WeakSet,Ms=function(){let e=new WebSocket(l(this,ne).url());return l(this,ne).onClose&&(e.onclose=l(this,ne).onClose),l(this,ne).onOpen&&(e.onopen=l(this,ne).onOpen),l(this,ne).onError&&(e.onerror=l(this,ne).onError),l(this,ne).onMessage&&(e.onmessage=l(this,ne).onMessage),e};var el="664df22d-d461-42d6-801e-f70247e2cd7c",Z,X,ge,jt,Dt,Y,rt,tl,rl,nl,il,Yn=class{constructor(e,r){d(this,Y);d(this,Z);d(this,X);d(this,ge);w(this,"isStreaming",!1);w(this,"typingIndicator");w(this,"ranOutOfCredits",!1);w(this,"messages",[]);w(this,"conversationId","");d(this,jt,0);d(this,Dt);w(this,"isLiveMode",!1);g(this,Z,e),g(this,X,r),g(this,ge,this.initWS()),e.addController(this)}sendUserInput(e,{xUserData:r,xCustomInstructions:n,role:i="user",expectStreaming:s=!1}={}){return m(this,Y,rt).call(this,{type:"USER_INPUT",value:e,role:i,xUserData:r,xCustomInstructions:n},{expectStreaming:s})}sendUserCancel(){return m(this,Y,rt).call(this,{type:"USER_CANCEL"})}sendUserTypingStart(){return m(this,Y,rt).call(this,{type:"USER_TYPING_START"})}sendUserTypingStop(){return m(this,Y,rt).call(this,{type:"USER_TYPING_STOP"})}reloadConfig(){m(this,Y,rt).call(this,{type:"RELOAD_CONFIG"})}close(){l(this,ge).close(1e3,"closed by user")}retry(){clearTimeout(l(this,Dt)),g(this,Dt,setTimeout(()=>{l(this,X).onReconnect?.(),g(this,ge,this.initWS())},1e3*l(this,jt))),so(this,jt)._++}initWS(){return new Kn(l(this,Z),{url:()=>l(this,X).url(this.conversationId,{}),onOpen:e=>m(this,Y,tl).call(this,e),onMessage:e=>m(this,Y,rl).call(this,JSON.parse(e.data)),onError:e=>m(this,Y,nl).call(this,e),onClose:e=>m(this,Y,il).call(this,e)})}hostConnected(){this.conversationId=l(this,X).restoreConversationState?.()?.conversationId||"",this.messages=l(this,X).restoreConversationState?.()?.messages||[]}reset(){m(this,Y,rt).call(this,{type:"NEW_CHAT"}),l(this,X).onReset?.(),this.isStreaming=!1,this.typingIndicator=void 0,this.ranOutOfCredits=!1,this.messages=[],this.conversationId="",this.isLiveMode=!1,l(this,Z).requestUpdate()}hostDisconnected(){clearTimeout(l(this,Dt))}reconnectSocket(){l(this,ge).close(1e3,"destroy"),g(this,ge,this.initWS())}get lastMsg(){if(this.messages.length>0)return this.messages[this.messages.length-1]}};Z=new WeakMap,X=new WeakMap,ge=new WeakMap,jt=new WeakMap,Dt=new WeakMap,Y=new WeakSet,rt=function(e,{expectStreaming:r=!1}={}){return l(this,ge).isConnected?(r&&!this.isLiveMode&&(this.isStreaming=!0,l(this,Z).requestUpdate()),l(this,ge).send(JSON.stringify(e)),!0):(console.warn("WebSocket is not connected, message not sent - reconnecting now",e),this.retry(),!1)},tl=function(e){g(this,jt,0)},rl=function(e){switch(e.type){case"NEW_MESSAGE":{this.messages=[...this.messages,{...e.message,streaming:!0}].filter((r,n,i)=>n===i.findIndex(s=>s.id===r.id)),this.typingIndicator=void 0,l(this,Z).requestUpdate(),l(this,X).onNewMessage?.(e.message);break}case"APPEND_MESSAGE":{let r=this.messages.find(n=>n.id===e.message.id);if(r){switch(e.message.content_type){case"text":{let{part:n,delta:i,position:s}=e.message;r.content=r.content.slice(0,s)+i,r.parts||=[],r.parts[n]={text:r.parts[n]&&"text"in r.parts[n]?(r.parts[n].text||"").slice(0,s)+i:i};break}case"html":{let{part:n,delta:i,position:s}=e.message;r.parts||=[],r.parts[n]={html:r.parts[n]&&"html"in r.parts[n]?(r.parts[n].html||"").slice(0,s)+i:i};break}case"data":{let{part:n}=e.message;r.parts||=[],r.parts[n]={tag:e.message.tag,data:r.parts[n]&&"data"in r.parts[n]?Object.assign(r.parts[n].data||{},e.message.data):e.message.data};break}}e.metadata&&(r.metadata=e.metadata),l(this,X).onMessageAppend?.(e),l(this,Z).requestUpdate()}else throw new Error(`Message with id ${e.message.id} not found`);break}case"MESSAGE_DONE":{let r=this.messages.find(n=>n.id===e.message.id);if(r)Object.assign(r,e.message),r.streaming=!1;else throw new Error(`Message with id ${e.message.id} not found`);this.isStreaming=!1,l(this,Z).requestUpdate(),l(this,X).onMessageDone?.(e,r),l(this,X).persistConversationState?.(this.conversationId,this.messages);break}case"MESSAGE_CANCEL":{this.isStreaming=!1,this.typingIndicator=void 0,l(this,Z).requestUpdate();break}case"ERROR":{l(this,X).onMessageError?.(e);break}case"CONNECTED":{this.conversationId=e.conversationId,this.messages=e.messages,l(this,X).onConnect?.(e.conversationId),l(this,X).persistConversationState?.(this.conversationId,this.messages),this.isLiveMode=e.metadata?.isLiveMode,l(this,Z).requestUpdate();break}case"TYPING_START":{e.role==="assistant"&&(this.isStreaming=!0),this.typingIndicator={role:e.role,metadata:e.metadata},l(this,Z).requestUpdate();break}case"TYPING_STOP":{this.typingIndicator=void 0,l(this,Z).requestUpdate();break}case"RAN_OUT_OF_CREDITS":{this.messages.some(r=>r.id===el)||this.messages.push({id:el,role:"assistant",content:"Sorry, I've run out of credits. Please contact the shop directly.",timestamp:Date.now()}),this.ranOutOfCredits=!0,l(this,Z).requestUpdate();break}case"RECONNECT":{this.reconnectSocket(),l(this,Z).requestUpdate();break}default:console.warn(`Unknown message type: ${JSON.stringify(e)}`)}},nl=function(e){console.error("onError",e),l(this,X).onError?.(e)},il=function(e){l(this,Z).isConnected&&!l(this,ge).isConnected&&e.reason==="reconnect"&&this.retry(),this.isStreaming=!1,this.typingIndicator=void 0,l(this,Z).requestUpdate(),l(this,X).onClose?.()};function Lt(t){return Array.isArray(t)?t:t?[t]:[]}function sl(t,e){let r=new Map;for(let n of t){let i=e(n);r.has(i)||r.set(i,[]),(r.get(i)||[]).push(n)}return r}var Er=class extends wt{constructor(e){if(super(e),this.it=E,e.type!==Cn.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===E||e==null)return this._t=void 0,this.it=e;if(e===he)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};Er.directiveName="unsafeHTML",Er.resultType=1;var ol=$n(Er);var Is;function Ts(t){return{lang:t?.lang??Is?.lang,message:t?.message,abortEarly:t?.abortEarly??Is?.abortEarly,abortPipeEarly:t?.abortPipeEarly??Is?.abortPipeEarly}}var Vc;function Fc(t){return Vc?.get(t)}var Hc;function Nc(t){return Hc?.get(t)}var Bc;function qc(t,e){return Bc?.get(t)?.get(e)}function ll(t){let e=typeof t;return e==="string"?`"${t}"`:e==="number"||e==="bigint"||e==="boolean"?`${t}`:e==="object"||e==="function"?(t&&Object.getPrototypeOf(t)?.constructor?.name)??"null":e}function oe(t,e,r,n,i){let s=i&&"input"in i?i.input:r.value,o=i?.expected??t.expects??null,u=i?.received??ll(s),a={kind:t.kind,type:t.type,input:s,expected:o,received:u,message:`Invalid ${e}: ${o?`Expected ${o} but r`:"R"}eceived ${u}`,requirement:t.requirement,path:i?.path,issues:i?.issues,lang:n.lang,abortEarly:n.abortEarly,abortPipeEarly:n.abortPipeEarly},c=t.kind==="schema",f=i?.message??t.message??qc(t.reference,a.lang)??(c?Nc(a.lang):null)??n.message??Fc(a.lang);f&&(a.message=typeof f=="function"?f(a):f),c&&(r.typed=!1),r.issues?r.issues.push(a):r.issues=[a]}function ae(t){return{version:1,vendor:"valibot",validate(e){return t["~run"]({value:e},Ts())}}}function zc(t,e){return Object.hasOwn(t,e)&&e!=="__proto__"&&e!=="prototype"&&e!=="constructor"}function ul(t,e){let r=[...new Set(t)];return r.length>1?`(${r.join(` ${e} `)})`:r[0]??"never"}var Wc=class extends Error{constructor(t){super(t[0].message),this.name="ValiError",this.issues=t}};function Os(t,e){return{kind:"validation",type:"max_length",reference:Os,async:!1,expects:`<=${t}`,requirement:t,message:e,"~run"(r,n){return r.typed&&r.value.length>this.requirement&&oe(this,"length",r,n,{received:`${r.value.length}`}),r}}}function js(t,e){return{kind:"validation",type:"min_length",reference:js,async:!1,expects:`>=${t}`,requirement:t,message:e,"~run"(r,n){return r.typed&&r.value.length<this.requirement&&oe(this,"length",r,n,{received:`${r.value.length}`}),r}}}function cl(t,e,r){return typeof t.default=="function"?t.default(e,r):t.default}function Ds(){return{kind:"schema",type:"any",reference:Ds,expects:"any",async:!1,get"~standard"(){return ae(this)},"~run"(t){return t.typed=!0,t}}}function Pt(t,e){return{kind:"schema",type:"array",reference:Pt,expects:"Array",async:!1,item:t,message:e,get"~standard"(){return ae(this)},"~run"(r,n){let i=r.value;if(Array.isArray(i)){r.typed=!0,r.value=[];for(let s=0;s<i.length;s++){let o=i[s],u=this.item["~run"]({value:o},n);if(u.issues){let a={type:"array",origin:"value",input:i,key:s,value:o};for(let c of u.issues)c.path?c.path.unshift(a):c.path=[a],r.issues?.push(c);if(r.issues||(r.issues=u.issues),n.abortEarly){r.typed=!1;break}}u.typed||(r.typed=!1),r.value.push(u.value)}}else oe(this,"type",r,n);return r}}}function Ls(t){return{kind:"schema",type:"boolean",reference:Ls,expects:"boolean",async:!1,message:t,get"~standard"(){return ae(this)},"~run"(e,r){return typeof e.value=="boolean"?e.typed=!0:oe(this,"type",e,r),e}}}function Ps(t){return{kind:"schema",type:"null",reference:Ps,expects:"null",async:!1,message:t,get"~standard"(){return ae(this)},"~run"(e,r){return e.value===null?e.typed=!0:oe(this,"type",e,r),e}}}function Sr(t){return{kind:"schema",type:"number",reference:Sr,expects:"number",async:!1,message:t,get"~standard"(){return ae(this)},"~run"(e,r){return typeof e.value=="number"&&!isNaN(e.value)?e.typed=!0:oe(this,"type",e,r),e}}}function Ie(t,e){return{kind:"schema",type:"object",reference:Ie,expects:"Object",async:!1,entries:t,message:e,get"~standard"(){return ae(this)},"~run"(r,n){let i=r.value;if(i&&typeof i=="object"){r.typed=!0,r.value={};for(let s in this.entries){let o=this.entries[s];if(s in i||(o.type==="exact_optional"||o.type==="optional"||o.type==="nullish")&&o.default!==void 0){let u=s in i?i[s]:cl(o),a=o["~run"]({value:u},n);if(a.issues){let c={type:"object",origin:"value",input:i,key:s,value:u};for(let f of a.issues)f.path?f.path.unshift(c):f.path=[c],r.issues?.push(f);if(r.issues||(r.issues=a.issues),n.abortEarly){r.typed=!1;break}}a.typed||(r.typed=!1),r.value[s]=a.value}else if(o.type!=="exact_optional"&&o.type!=="optional"&&o.type!=="nullish"&&(oe(this,"key",r,n,{input:void 0,expected:`"${s}"`,path:[{type:"object",origin:"key",input:i,key:s,value:i[s]}]}),n.abortEarly))break}}else oe(this,"type",r,n);return r}}}function Rt(t,e){return{kind:"schema",type:"optional",reference:Rt,expects:`(${t.expects} | undefined)`,async:!1,wrapped:t,default:e,get"~standard"(){return ae(this)},"~run"(r,n){return r.value===void 0&&(this.default!==void 0&&(r.value=cl(this,r,n)),r.value===void 0)?(r.typed=!0,r):this.wrapped["~run"](r,n)}}}function Rs(t,e){return{kind:"schema",type:"picklist",reference:Rs,expects:ul(t.map(ll),"|"),async:!1,options:t,message:e,get"~standard"(){return ae(this)},"~run"(r,n){return this.options.includes(r.value)?r.typed=!0:oe(this,"type",r,n),r}}}function _r(t,e,r){return{kind:"schema",type:"record",reference:_r,expects:"Object",async:!1,key:t,value:e,message:r,get"~standard"(){return ae(this)},"~run"(n,i){let s=n.value;if(s&&typeof s=="object"){n.typed=!0,n.value={};for(let o in s)if(zc(s,o)){let u=s[o],a=this.key["~run"]({value:o},i);if(a.issues){let f={type:"object",origin:"key",input:s,key:o,value:u};for(let p of a.issues)p.path=[f],n.issues?.push(p);if(n.issues||(n.issues=a.issues),i.abortEarly){n.typed=!1;break}}let c=this.value["~run"]({value:u},i);if(c.issues){let f={type:"object",origin:"value",input:s,key:o,value:u};for(let p of c.issues)p.path?p.path.unshift(f):p.path=[f],n.issues?.push(p);if(n.issues||(n.issues=c.issues),i.abortEarly){n.typed=!1;break}}(!a.typed||!c.typed)&&(n.typed=!1),a.typed&&(n.value[a.value]=c.value)}}else oe(this,"type",n,i);return n}}}function B(t){return{kind:"schema",type:"string",reference:B,expects:"string",async:!1,message:t,get"~standard"(){return ae(this)},"~run"(e,r){return typeof e.value=="string"?e.typed=!0:oe(this,"type",e,r),e}}}function al(t){let e;if(t)for(let r of t)e?e.push(...r.issues):e=r.issues;return e}function nt(t,e){return{kind:"schema",type:"union",reference:nt,expects:ul(t.map(r=>r.expects),"|"),async:!1,options:t,message:e,get"~standard"(){return ae(this)},"~run"(r,n){let i,s,o;for(let u of this.options){let a=u["~run"]({value:r.value},n);if(a.typed)if(a.issues)s?s.push(a):s=[a];else{i=a;break}else o?o.push(a):o=[a]}if(i)return i;if(s){if(s.length===1)return s[0];oe(this,"type",r,n,{issues:al(s)}),r.typed=!0}else{if(o?.length===1)return o[0];oe(this,"type",r,n,{issues:al(o)})}return r}}}function pl(t,e,r){let n=t["~run"]({value:e},Ts(r));if(n.issues)throw new Wc(n.issues);return n.value}function fl(t,e){let r={};for(let n in t.entries)r[n]=!e||e.includes(n)?Rt(t.entries[n]):t.entries[n];return{...t,entries:r,get"~standard"(){return ae(this)}}}function hl(...t){return{...t[0],pipe:t,get"~standard"(){return ae(this)},"~run"(e,r){for(let n of t)if(n.kind!=="metadata"){if(e.issues&&(n.kind==="schema"||n.kind==="transformation")){e.typed=!1;break}(!e.issues||!r.abortEarly&&!r.abortPipeEarly)&&(e=n["~run"](e,r))}return e}}}function Ar(t,e,r){let n=t["~run"]({value:e},Ts(r));return{typed:n.typed,success:!n.issues,output:n.value,issues:n.issues}}var dl=fl(Ie({name:B(),description:B(),price:B(),image_url:nt([B(),Pt(B())]),category:B(),url:B()}));function ml(t,e,r,{imagesByProductUrl:n,linksNewTab:i=!0,searchParams:s,messageIsStreaming:o=!1}){if(!t)return h``;let u=e>0&&r[e-1]&&"data"in r[e-1],a=e<r.length-1||!o;if("text"in t)return h`<p>${t.text}</p>`;if("html"in t)return h`${ol(t.html)}`;if("data"in t)switch(t.tag){case"product-card":case"product-card-v1":case"product-card-horizontal":{let c=Ar(dl,t.data);if(c.success){let f={...c.output,images:[]};return f.images=Lt(f.image_url),h`
518
+ `}};P=new WeakSet,Xa=function(){if(!this.product?.url){this._isValidUrl=!1;return}try{let r=new URL(this.product.url);this._isValidUrl=r.protocol==="http:"||r.protocol==="https:"}catch{this._isValidUrl=!1}},Gn=function(r){r.preventDefault(),!(!this.product?.url||!this._isValidUrl)&&window.open(this.product.url,"_blank")},Ka=function(r){!this.product?.url||!this._isValidUrl||(window.open(this.product.url,"_blank"),this.dispatchEvent(new Kn.AddToCartEvent(this.product)))},Jn=function(r,n){l(this,P,Xn)&&As({from:r,to:n,duration:300,onUpdate:i=>{l(this,P,Xn)&&(l(this,P,Xn).style.transform=`translateX(${i}%)`)}})},Ya=function(){if(!this.product?.images?.length)return;let r=this._currentImageIndex,n=(r+1)%this.product.images.length,i=-(r*100),s=-(n*100);g(this,P,Jn).call(this,i,s),this._currentImageIndex=n},Qa=function(){if(!this.product?.images?.length)return;let r=this._currentImageIndex,n=(r-1+this.product.images.length)%this.product.images.length,i=-(r*100),s=-(n*100);g(this,P,Jn).call(this,i,s),this._currentImageIndex=n},el=function(r){if(!this.product?.images?.length)return;let n=this._currentImageIndex,i=Math.max(0,Math.min(r,this.product.images.length-1)),s=-(n*100),o=-(i*100);g(this,P,Jn).call(this,s,o),this._currentImageIndex=i},Xn=function(){return this.renderRoot.querySelector(".image-slider")},w(Kn,"properties",{product:{type:Object},labels:{type:Object},_currentImageIndex:{type:Number,state:!0},_isValidUrl:{type:Boolean,state:!0}});var $r=Kn,Ms;$r.AddToCartEvent=(Ms=class extends CustomEvent{constructor(e,r={}){super($r.AddToCartEvent.type,{detail:{product:e},...r})}},w(Ms,"type","mw-product-card:add-to-cart"),Ms);customElements.get("mw-product-card")||customElements.define("mw-product-card",$r);var Er,ne,xe,Sr,Is,Yn=class{constructor(e,r){d(this,Sr);d(this,Er);d(this,ne);d(this,xe);if(!e)throw new Error("host is required");if(!r)throw new Error("config is required");m(this,Er,e),l(this,Er).addController(this),m(this,ne,r)}connect(e){m(this,ne,e),m(this,xe,g(this,Sr,Is).call(this))}hostConnected(){setTimeout(()=>{m(this,xe,g(this,Sr,Is).call(this))},0)}hostDisconnected(){l(this,xe)?.close(1e3,"lit_host_disconnected"),m(this,xe,void 0)}send(e){l(this,xe)?.send(e)}close(e,r){l(this,xe)?.close(e,r)}get isConnected(){return l(this,xe)?.readyState===WebSocket.OPEN}};Er=new WeakMap,ne=new WeakMap,xe=new WeakMap,Sr=new WeakSet,Is=function(){let e=new WebSocket(l(this,ne).url());return l(this,ne).onClose&&(e.onclose=l(this,ne).onClose),l(this,ne).onOpen&&(e.onopen=l(this,ne).onOpen),l(this,ne).onError&&(e.onerror=l(this,ne).onError),l(this,ne).onMessage&&(e.onmessage=l(this,ne).onMessage),e};var tl="664df22d-d461-42d6-801e-f70247e2cd7c",G,J,ge,Lt,jt,Y,it,rl,nl,il,sl,Qn=class{constructor(e,r){d(this,Y);d(this,G);d(this,J);d(this,ge);w(this,"isStreaming",!1);w(this,"typingIndicator");w(this,"ranOutOfCredits",!1);w(this,"messages",[]);w(this,"conversationId","");d(this,Lt,0);d(this,jt);w(this,"isLiveMode",!1);m(this,G,e),m(this,J,r),m(this,ge,this.initWS()),e.addController(this)}sendUserInput(e,{xUserData:r,xCustomInstructions:n,role:i="user",expectStreaming:s=!1}={}){return g(this,Y,it).call(this,{type:"USER_INPUT",value:e,role:i,xUserData:r,xCustomInstructions:n},{expectStreaming:s})}sendUserCancel(){return g(this,Y,it).call(this,{type:"USER_CANCEL"})}sendUserTypingStart(){return g(this,Y,it).call(this,{type:"USER_TYPING_START"})}sendUserTypingStop(){return g(this,Y,it).call(this,{type:"USER_TYPING_STOP"})}reloadConfig(){g(this,Y,it).call(this,{type:"RELOAD_CONFIG"})}close(){l(this,ge).close(1e3,"closed by user")}retry(){clearTimeout(l(this,jt)),m(this,jt,setTimeout(()=>{l(this,J).onReconnect?.(),m(this,ge,this.initWS())},1e3*l(this,Lt))),oo(this,Lt)._++}initWS(){return new Yn(l(this,G),{url:()=>l(this,J).url(this.conversationId,{}),onOpen:e=>g(this,Y,rl).call(this,e),onMessage:e=>g(this,Y,nl).call(this,JSON.parse(e.data)),onError:e=>g(this,Y,il).call(this,e),onClose:e=>g(this,Y,sl).call(this,e)})}hostConnected(){this.conversationId=l(this,J).restoreConversationState?.()?.conversationId||"",this.messages=l(this,J).restoreConversationState?.()?.messages||[]}reset(){g(this,Y,it).call(this,{type:"NEW_CHAT"}),l(this,J).onReset?.(),this.isStreaming=!1,this.typingIndicator=void 0,this.ranOutOfCredits=!1,this.messages=[],this.conversationId="",this.isLiveMode=!1,l(this,G).requestUpdate()}hostDisconnected(){clearTimeout(l(this,jt))}reconnectSocket(){l(this,ge).close(1e3,"destroy"),m(this,ge,this.initWS())}get lastMsg(){if(this.messages.length>0)return this.messages[this.messages.length-1]}};G=new WeakMap,J=new WeakMap,ge=new WeakMap,Lt=new WeakMap,jt=new WeakMap,Y=new WeakSet,it=function(e,{expectStreaming:r=!1}={}){return l(this,ge).isConnected?(r&&!this.isLiveMode&&(this.isStreaming=!0,l(this,G).requestUpdate()),l(this,ge).send(JSON.stringify(e)),!0):(console.warn("WebSocket is not connected, message not sent - reconnecting now",e),this.retry(),!1)},rl=function(e){m(this,Lt,0)},nl=function(e){switch(e.type){case"NEW_MESSAGE":{this.messages=[...this.messages,{...e.message,streaming:!0}].filter((r,n,i)=>n===i.findIndex(s=>s.id===r.id)),this.typingIndicator=void 0,l(this,G).requestUpdate(),l(this,J).onNewMessage?.(e.message);break}case"APPEND_MESSAGE":{let r=this.messages.find(n=>n.id===e.message.id);if(r){switch(e.message.content_type){case"text":{let{part:n,delta:i,position:s}=e.message;r.content=r.content.slice(0,s)+i,r.parts||=[],r.parts[n]={text:r.parts[n]&&"text"in r.parts[n]?(r.parts[n].text||"").slice(0,s)+i:i};break}case"html":{let{part:n,delta:i,position:s}=e.message;r.parts||=[],r.parts[n]={html:r.parts[n]&&"html"in r.parts[n]?(r.parts[n].html||"").slice(0,s)+i:i};break}case"data":{let{part:n}=e.message;r.parts||=[],r.parts[n]={tag:e.message.tag,data:r.parts[n]&&"data"in r.parts[n]?Object.assign(r.parts[n].data||{},e.message.data):e.message.data};break}}e.metadata&&(r.metadata=e.metadata),l(this,J).onMessageAppend?.(e),l(this,G).requestUpdate()}else throw new Error(`Message with id ${e.message.id} not found`);break}case"MESSAGE_DONE":{let r=this.messages.find(n=>n.id===e.message.id);if(r)Object.assign(r,e.message),r.streaming=!1;else throw new Error(`Message with id ${e.message.id} not found`);this.isStreaming=!1,l(this,G).requestUpdate(),l(this,J).onMessageDone?.(e,r),l(this,J).persistConversationState?.(this.conversationId,this.messages);break}case"MESSAGE_CANCEL":{this.isStreaming=!1,this.typingIndicator=void 0,l(this,G).requestUpdate();break}case"ERROR":{l(this,J).onMessageError?.(e);break}case"CONNECTED":{this.conversationId=e.conversationId,this.messages=e.messages,l(this,J).onConnect?.(e.conversationId),l(this,J).persistConversationState?.(this.conversationId,this.messages),this.isLiveMode=e.metadata?.isLiveMode,l(this,G).requestUpdate();break}case"TYPING_START":{e.role==="assistant"&&(this.isStreaming=!0),this.typingIndicator={role:e.role,metadata:e.metadata},l(this,G).requestUpdate();break}case"TYPING_STOP":{this.typingIndicator=void 0,l(this,G).requestUpdate();break}case"RAN_OUT_OF_CREDITS":{this.messages.some(r=>r.id===tl)||this.messages.push({id:tl,role:"assistant",content:"Sorry, I've run out of credits. Please contact the shop directly.",timestamp:Date.now()}),this.ranOutOfCredits=!0,l(this,G).requestUpdate();break}case"RECONNECT":{this.reconnectSocket(),l(this,G).requestUpdate();break}default:console.warn(`Unknown message type: ${JSON.stringify(e)}`)}},il=function(e){console.error("onError",e),l(this,J).onError?.(e)},sl=function(e){l(this,G).isConnected&&!l(this,ge).isConnected&&e.reason==="reconnect"&&this.retry(),this.isStreaming=!1,this.typingIndicator=void 0,l(this,G).requestUpdate(),l(this,J).onClose?.()};function Dt(t){return Array.isArray(t)?t:t?[t]:[]}function ol(t,e){let r=new Map;for(let n of t){let i=e(n);r.has(i)||r.set(i,[]),(r.get(i)||[]).push(n)}return r}var _r=class extends xt{constructor(e){if(super(e),this.it=E,e.type!==En.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===E||e==null)return this._t=void 0,this.it=e;if(e===he)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};_r.directiveName="unsafeHTML",_r.resultType=1;var al=Sn(_r);var Ts;function Os(t){return{lang:t?.lang??Ts?.lang,message:t?.message,abortEarly:t?.abortEarly??Ts?.abortEarly,abortPipeEarly:t?.abortPipeEarly??Ts?.abortPipeEarly}}var Fc;function Hc(t){return Fc?.get(t)}var Nc;function Bc(t){return Nc?.get(t)}var qc;function zc(t,e){return qc?.get(t)?.get(e)}function ul(t){let e=typeof t;return e==="string"?`"${t}"`:e==="number"||e==="bigint"||e==="boolean"?`${t}`:e==="object"||e==="function"?(t&&Object.getPrototypeOf(t)?.constructor?.name)??"null":e}function oe(t,e,r,n,i){let s=i&&"input"in i?i.input:r.value,o=i?.expected??t.expects??null,u=i?.received??ul(s),a={kind:t.kind,type:t.type,input:s,expected:o,received:u,message:`Invalid ${e}: ${o?`Expected ${o} but r`:"R"}eceived ${u}`,requirement:t.requirement,path:i?.path,issues:i?.issues,lang:n.lang,abortEarly:n.abortEarly,abortPipeEarly:n.abortPipeEarly},c=t.kind==="schema",f=i?.message??t.message??zc(t.reference,a.lang)??(c?Bc(a.lang):null)??n.message??Hc(a.lang);f&&(a.message=typeof f=="function"?f(a):f),c&&(r.typed=!1),r.issues?r.issues.push(a):r.issues=[a]}function ae(t){return{version:1,vendor:"valibot",validate(e){return t["~run"]({value:e},Os())}}}function Wc(t,e){return Object.hasOwn(t,e)&&e!=="__proto__"&&e!=="prototype"&&e!=="constructor"}function cl(t,e){let r=[...new Set(t)];return r.length>1?`(${r.join(` ${e} `)})`:r[0]??"never"}var Zc=class extends Error{constructor(t){super(t[0].message),this.name="ValiError",this.issues=t}};function Ls(t,e){return{kind:"validation",type:"max_length",reference:Ls,async:!1,expects:`<=${t}`,requirement:t,message:e,"~run"(r,n){return r.typed&&r.value.length>this.requirement&&oe(this,"length",r,n,{received:`${r.value.length}`}),r}}}function js(t,e){return{kind:"validation",type:"min_length",reference:js,async:!1,expects:`>=${t}`,requirement:t,message:e,"~run"(r,n){return r.typed&&r.value.length<this.requirement&&oe(this,"length",r,n,{received:`${r.value.length}`}),r}}}function Gc(t,e,r){return typeof t.fallback=="function"?t.fallback(e,r):t.fallback}function pl(t,e,r){return typeof t.default=="function"?t.default(e,r):t.default}function Ds(){return{kind:"schema",type:"any",reference:Ds,expects:"any",async:!1,get"~standard"(){return ae(this)},"~run"(t){return t.typed=!0,t}}}function Rt(t,e){return{kind:"schema",type:"array",reference:Rt,expects:"Array",async:!1,item:t,message:e,get"~standard"(){return ae(this)},"~run"(r,n){let i=r.value;if(Array.isArray(i)){r.typed=!0,r.value=[];for(let s=0;s<i.length;s++){let o=i[s],u=this.item["~run"]({value:o},n);if(u.issues){let a={type:"array",origin:"value",input:i,key:s,value:o};for(let c of u.issues)c.path?c.path.unshift(a):c.path=[a],r.issues?.push(c);if(r.issues||(r.issues=u.issues),n.abortEarly){r.typed=!1;break}}u.typed||(r.typed=!1),r.value.push(u.value)}}else oe(this,"type",r,n);return r}}}function Rs(t){return{kind:"schema",type:"boolean",reference:Rs,expects:"boolean",async:!1,message:t,get"~standard"(){return ae(this)},"~run"(e,r){return typeof e.value=="boolean"?e.typed=!0:oe(this,"type",e,r),e}}}function Ps(t){return{kind:"schema",type:"null",reference:Ps,expects:"null",async:!1,message:t,get"~standard"(){return ae(this)},"~run"(e,r){return e.value===null?e.typed=!0:oe(this,"type",e,r),e}}}function Ar(t){return{kind:"schema",type:"number",reference:Ar,expects:"number",async:!1,message:t,get"~standard"(){return ae(this)},"~run"(e,r){return typeof e.value=="number"&&!isNaN(e.value)?e.typed=!0:oe(this,"type",e,r),e}}}function Ie(t,e){return{kind:"schema",type:"object",reference:Ie,expects:"Object",async:!1,entries:t,message:e,get"~standard"(){return ae(this)},"~run"(r,n){let i=r.value;if(i&&typeof i=="object"){r.typed=!0,r.value={};for(let s in this.entries){let o=this.entries[s];if(s in i||(o.type==="exact_optional"||o.type==="optional"||o.type==="nullish")&&o.default!==void 0){let u=s in i?i[s]:pl(o),a=o["~run"]({value:u},n);if(a.issues){let c={type:"object",origin:"value",input:i,key:s,value:u};for(let f of a.issues)f.path?f.path.unshift(c):f.path=[c],r.issues?.push(f);if(r.issues||(r.issues=a.issues),n.abortEarly){r.typed=!1;break}}a.typed||(r.typed=!1),r.value[s]=a.value}else if(o.fallback!==void 0)r.value[s]=Gc(o);else if(o.type!=="exact_optional"&&o.type!=="optional"&&o.type!=="nullish"&&(oe(this,"key",r,n,{input:void 0,expected:`"${s}"`,path:[{type:"object",origin:"key",input:i,key:s,value:i[s]}]}),n.abortEarly))break}}else oe(this,"type",r,n);return r}}}function Pt(t,e){return{kind:"schema",type:"optional",reference:Pt,expects:`(${t.expects} | undefined)`,async:!1,wrapped:t,default:e,get"~standard"(){return ae(this)},"~run"(r,n){return r.value===void 0&&(this.default!==void 0&&(r.value=pl(this,r,n)),r.value===void 0)?(r.typed=!0,r):this.wrapped["~run"](r,n)}}}function Us(t,e){return{kind:"schema",type:"picklist",reference:Us,expects:cl(t.map(ul),"|"),async:!1,options:t,message:e,get"~standard"(){return ae(this)},"~run"(r,n){return this.options.includes(r.value)?r.typed=!0:oe(this,"type",r,n),r}}}function Mr(t,e,r){return{kind:"schema",type:"record",reference:Mr,expects:"Object",async:!1,key:t,value:e,message:r,get"~standard"(){return ae(this)},"~run"(n,i){let s=n.value;if(s&&typeof s=="object"){n.typed=!0,n.value={};for(let o in s)if(Wc(s,o)){let u=s[o],a=this.key["~run"]({value:o},i);if(a.issues){let f={type:"object",origin:"key",input:s,key:o,value:u};for(let p of a.issues)p.path=[f],n.issues?.push(p);if(n.issues||(n.issues=a.issues),i.abortEarly){n.typed=!1;break}}let c=this.value["~run"]({value:u},i);if(c.issues){let f={type:"object",origin:"value",input:s,key:o,value:u};for(let p of c.issues)p.path?p.path.unshift(f):p.path=[f],n.issues?.push(p);if(n.issues||(n.issues=c.issues),i.abortEarly){n.typed=!1;break}}(!a.typed||!c.typed)&&(n.typed=!1),a.typed&&(n.value[a.value]=c.value)}}else oe(this,"type",n,i);return n}}}function B(t){return{kind:"schema",type:"string",reference:B,expects:"string",async:!1,message:t,get"~standard"(){return ae(this)},"~run"(e,r){return typeof e.value=="string"?e.typed=!0:oe(this,"type",e,r),e}}}function ll(t){let e;if(t)for(let r of t)e?e.push(...r.issues):e=r.issues;return e}function st(t,e){return{kind:"schema",type:"union",reference:st,expects:cl(t.map(r=>r.expects),"|"),async:!1,options:t,message:e,get"~standard"(){return ae(this)},"~run"(r,n){let i,s,o;for(let u of this.options){let a=u["~run"]({value:r.value},n);if(a.typed)if(a.issues)s?s.push(a):s=[a];else{i=a;break}else o?o.push(a):o=[a]}if(i)return i;if(s){if(s.length===1)return s[0];oe(this,"type",r,n,{issues:ll(s)}),r.typed=!0}else{if(o?.length===1)return o[0];oe(this,"type",r,n,{issues:ll(o)})}return r}}}function fl(t,e,r){let n=t["~run"]({value:e},Os(r));if(n.issues)throw new Zc(n.issues);return n.value}function hl(t,e){let r={};for(let n in t.entries)r[n]=!e||e.includes(n)?Pt(t.entries[n]):t.entries[n];return{...t,entries:r,get"~standard"(){return ae(this)}}}function dl(...t){return{...t[0],pipe:t,get"~standard"(){return ae(this)},"~run"(e,r){for(let n of t)if(n.kind!=="metadata"){if(e.issues&&(n.kind==="schema"||n.kind==="transformation")){e.typed=!1;break}(!e.issues||!r.abortEarly&&!r.abortPipeEarly)&&(e=n["~run"](e,r))}return e}}}function Ir(t,e,r){let n=t["~run"]({value:e},Os(r));return{typed:n.typed,success:!n.issues,output:n.value,issues:n.issues}}var ml=hl(Ie({name:B(),description:B(),price:B(),image_url:st([B(),Rt(B())]),category:B(),url:B()}));function gl(t,e,r,{imagesByProductUrl:n,linksNewTab:i=!0,searchParams:s,messageIsStreaming:o=!1}){if(!t)return h``;let u=e>0&&r[e-1]&&"data"in r[e-1],a=e<r.length-1||!o;if("text"in t)return h`<p>${t.text}</p>`;if("html"in t)return h`${al(t.html)}`;if("data"in t)switch(t.tag){case"product-card":case"product-card-v1":case"product-card-horizontal":{let c=Ir(ml,t.data);if(c.success){let f={...c.output,images:[]};return f.images=Dt(f.image_url),h`
504
519
  ${u?h`<div class="my-3 w-full border-t border-gray-200/50"></div>`:null}
505
520
  <mw-product-card-horizontal
506
521
  product="${JSON.stringify(f)}"
@@ -508,7 +523,7 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
508
523
  ?links-new-tab="${i}"
509
524
  .searchParams="${s}"
510
525
  .imagesByProductUrl="${n}"></mw-product-card-horizontal>
511
- `}console.warn(c.issues);break}case"order-status-card-v1":return h`<mw-product-order-status-card order-details="${JSON.stringify(t.data)}" ?streaming="${!a}" ?links-new-tab="${i}"></mw-product-order-status-card> `}return console.warn("could not render part:",t),h`<p><i>data type not supported</i></p>`}var Mr,Ut,Ve,it,ti,gl,ei=class{constructor(e,r,{timeoutMs:n=2e3}={}){d(this,ti);d(this,Mr);d(this,Ut);d(this,Ve);d(this,it,!1);w(this,"timeoutMs");g(this,Mr,e),g(this,Ut,r),this.timeoutMs=n,e.addController(this)}get isTyping(){return l(this,it)}hostDisconnected(){clearTimeout(l(this,Ve)),g(this,Ve,void 0)}onInput(e){if(l(this,Mr).isConnected){if(!e.trim()){this.typingStopped();return}clearTimeout(l(this,Ve)),g(this,Ve,setTimeout(()=>this.typingStopped(),this.timeoutMs)),l(this,it)||m(this,ti,gl).call(this)}}typingStopped(){clearTimeout(l(this,Ve)),g(this,it,!1),l(this,Ut).typingStopped()}};Mr=new WeakMap,Ut=new WeakMap,Ve=new WeakMap,it=new WeakMap,ti=new WeakSet,gl=function(){g(this,it,!0),l(this,Ut).typingStarted()};function yl(t,e="en-US"){let r=new Intl.DateTimeFormat(e,{hour:"numeric",minute:"numeric"}).format(t);return`${t.toLocaleDateString(e,{year:"numeric",month:"short",day:"numeric"})}, ${r}`}var vl=_r(B(),nt([B(),Sr(),Ls(),Ps()])),wl=hl(B(),js(1),Os(5e3));var Gc=!0,Us="Invariant failed";function bl(t,e){if(!t){if(Gc)throw new Error(Us);var r=typeof e=="function"?e():e,n=r?"".concat(Us,": ").concat(r):Us;throw new Error(n)}}var Zc="\xB7 \xB7 \xB7",Xc=Ie({conversationId:Rt(B()),messages:Rt(Pt(Ie({id:B(),timestamp:Sr(),role:Rs(["user","assistant","support"]),content:B(),parts:Rt(Pt(nt([Ie({text:B()}),Ie({html:B()}),Ie({tag:B(),data:_r(B(),Ds())})])))})))}),Vt,Ft,L,Fs,ri,Tr,st,V,Or,xl,kl,Cl,$l,El,Sl,_l,Al,ni,ii=class ii extends T(S){constructor(){super();d(this,L);d(this,Vt);d(this,Ft);d(this,Tr,new ei(this,{typingStarted:()=>l(this,V).sendUserTypingStart(),typingStopped:()=>l(this,V).sendUserTypingStop()}));d(this,st,!1);d(this,V,new Yn(this,{url:r=>{let n=new URL(this.config.wsApiUrl);return n.searchParams.set("widgetId",this.widgetId),n.searchParams.set("conversationId",r),n.searchParams.set("pageUrl",window.location.href),n},onReconnect:()=>{},onError:r=>{console.error("ws error",r)},onClose:()=>{},onNewMessage:r=>{g(this,st,!1),r.role==="user"&&l(this,L,ni)?.scrollTo(0,l(this,L,ni).scrollHeight),r.role==="assistant"&&this.callbacks.onNewMessageStartedStreaming?.({widgetId:this.widgetId,message:r,conversationId:this.conversationId})},onMessageAppend:r=>{let n=l(this,L,ni);if(!n)return;let i=l(this,V).lastMsg;!i||i.role!=="assistant"||requestAnimationFrame(()=>{let s=n.querySelector(`[data-id="${i.id}"]`);if(!s)return;let o=s.offsetHeight,u=n.getClientRects()[0].height-70;o>u&&!l(this,st)&&(n.scrollTop=s.offsetTop-80)})},onMessageDone:(r,n)=>{g(this,st,!1),n.role==="assistant"&&this.callbacks.onMessageEndedStreaming?.({widgetId:this.widgetId,text:n.content??"",message:n,usage_TOKENS_COMPLETION:r.message.usage.TOKENS_COMPLETION,conversationId:this.conversationId})},onMessageError:r=>{console.error("ws message error",r),r.message&&this.callbacks.onError?.({widgetId:this.widgetId,error:"WS: "+r.message})},onReset:()=>{localStorage.removeItem(l(this,L,ri))},onConnect:r=>{},persistConversationState:(r,n)=>{localStorage.setItem(l(this,L,ri),JSON.stringify({conversationId:r,messages:n}))},restoreConversationState:()=>{try{let r=JSON.parse(localStorage.getItem(l(this,L,ri))||"{}"),n=pl(Xc,r);return{conversationId:n.conversationId||"",messages:n.messages||[]}}catch(r){return console.error(r),{conversationId:"",messages:[]}}}}));d(this,Or,"single");this.widgetId="",this.config={},this.callbacks={},this.showClose=!1,this.xUserData={},this.xCustomInstructions=""}get conversationId(){return l(this,V).conversationId}get messages(){return l(this,V).messages}firstUpdated(){m(this,L,Fs).call(this)}updated(){m(this,L,Fs).call(this)}render(){bl(this.config,"config is required");let r=sl(this.messages,n=>{try{let i=new Date(n.timestamp),s=Math.floor(i.getUTCMinutes()/5)*5;return i.setUTCMinutes(s,0,0),i.valueOf().toString()}catch(i){console.error(i)}});return h`
526
+ `}console.warn(c.issues);break}case"order-status-card-v1":return h`<mw-product-order-status-card order-details="${JSON.stringify(t.data)}" ?streaming="${!a}" ?links-new-tab="${i}"></mw-product-order-status-card> `}return console.warn("could not render part:",t),h`<p><i>data type not supported</i></p>`}var Tr,Ut,Ve,ot,ri,yl,ti=class{constructor(e,r,{timeoutMs:n=2e3}={}){d(this,ri);d(this,Tr);d(this,Ut);d(this,Ve);d(this,ot,!1);w(this,"timeoutMs");m(this,Tr,e),m(this,Ut,r),this.timeoutMs=n,e.addController(this)}get isTyping(){return l(this,ot)}hostDisconnected(){clearTimeout(l(this,Ve)),m(this,Ve,void 0)}onInput(e){if(l(this,Tr).isConnected){if(!e.trim()){this.typingStopped();return}clearTimeout(l(this,Ve)),m(this,Ve,setTimeout(()=>this.typingStopped(),this.timeoutMs)),l(this,ot)||g(this,ri,yl).call(this)}}typingStopped(){clearTimeout(l(this,Ve)),m(this,ot,!1),l(this,Ut).typingStopped()}};Tr=new WeakMap,Ut=new WeakMap,Ve=new WeakMap,ot=new WeakMap,ri=new WeakSet,yl=function(){m(this,ot,!0),l(this,Ut).typingStarted()};function vl(t,e="en-US"){let r=new Intl.DateTimeFormat(e,{hour:"numeric",minute:"numeric"}).format(t);return`${t.toLocaleDateString(e,{year:"numeric",month:"short",day:"numeric"})}, ${r}`}var wl=Mr(B(),st([B(),Ar(),Rs(),Ps()])),bl=dl(B(),js(1),Ls(5e3));var Jc=!0,Vs="Invariant failed";function xl(t,e){if(!t){if(Jc)throw new Error(Vs);var r=typeof e=="function"?e():e,n=r?"".concat(Vs,": ").concat(r):Vs;throw new Error(n)}}var Xc="\xB7 \xB7 \xB7",Kc=Ie({conversationId:Pt(B()),messages:Pt(Rt(Ie({id:B(),timestamp:Ar(),role:Us(["user","assistant","support"]),content:B(),parts:Pt(Rt(st([Ie({text:B()}),Ie({html:B()}),Ie({tag:B(),data:Mr(B(),Ds())})])))})))}),Vt,Ft,D,Hs,ni,Lr,at,V,jr,kl,Cl,$l,El,Sl,_l,Al,Ml,ii,si=class si extends T(S){constructor(){super();d(this,D);d(this,Vt);d(this,Ft);d(this,Lr,new ti(this,{typingStarted:()=>l(this,V).sendUserTypingStart(),typingStopped:()=>l(this,V).sendUserTypingStop()}));d(this,at,!1);d(this,V,new Qn(this,{url:r=>{let n=new URL(this.config.wsApiUrl);return n.searchParams.set("widgetId",this.widgetId),n.searchParams.set("conversationId",r),n.searchParams.set("pageUrl",window.location.href),n},onReconnect:()=>{},onError:r=>{console.error("ws error",r)},onClose:()=>{},onNewMessage:r=>{m(this,at,!1),r.role==="user"&&l(this,D,ii)?.scrollTo(0,l(this,D,ii).scrollHeight),r.role==="assistant"&&this.callbacks.onNewMessageStartedStreaming?.({widgetId:this.widgetId,message:r,conversationId:this.conversationId})},onMessageAppend:r=>{let n=l(this,D,ii);if(!n)return;let i=l(this,V).lastMsg;!i||i.role!=="assistant"||requestAnimationFrame(()=>{let s=n.querySelector(`[data-id="${i.id}"]`);if(!s)return;let o=s.offsetHeight,u=n.getClientRects()[0].height-70;o>u&&!l(this,at)&&(n.scrollTop=s.offsetTop-80)})},onMessageDone:(r,n)=>{m(this,at,!1),n.role==="assistant"&&this.callbacks.onMessageEndedStreaming?.({widgetId:this.widgetId,text:n.content??"",message:n,usage_TOKENS_COMPLETION:r.message.usage.TOKENS_COMPLETION,conversationId:this.conversationId})},onMessageError:r=>{console.error("ws message error",r),r.message&&this.callbacks.onError?.({widgetId:this.widgetId,error:"WS: "+r.message})},onReset:()=>{localStorage.removeItem(l(this,D,ni))},onConnect:r=>{},persistConversationState:(r,n)=>{localStorage.setItem(l(this,D,ni),JSON.stringify({conversationId:r,messages:n}))},restoreConversationState:()=>{try{let r=JSON.parse(localStorage.getItem(l(this,D,ni))||"{}"),n=fl(Kc,r);return{conversationId:n.conversationId||"",messages:n.messages||[]}}catch(r){return console.error(r),{conversationId:"",messages:[]}}}}));d(this,jr,"single");this.widgetId="",this.config={},this.callbacks={},this.showClose=!1,this.xUserData={},this.xCustomInstructions=""}get conversationId(){return l(this,V).conversationId}get messages(){return l(this,V).messages}firstUpdated(){g(this,D,Hs).call(this)}updated(){g(this,D,Hs).call(this)}render(){xl(this.config,"config is required");let r=ol(this.messages,n=>{try{let i=new Date(n.timestamp),s=Math.floor(i.getUTCMinutes()/5)*5;return i.setUTCMinutes(s,0,0),i.valueOf().toString()}catch(i){console.error(i)}});return h`
512
527
  <div class="relative mx-auto h-full bg-[#FDFDFD] font-sans text-base before:absolute before:inset-0 before:bg-[#8d8d8d] before:opacity-10 sm:rounded-[36px] sm:p-1.5 sm:before:rounded-[36px]">
513
528
  <div
514
529
  class="relative flex h-full flex-col bg-white shadow-[0px_4px_4px_0px_rgba(0,0,0,0.25),-116px_177px_59px_0px_rgba(0,0,0,0.00),-74px_113px_54px_0px_rgba(0,0,0,0.01),-42px_64px_46px_0px_rgba(0,0,0,0.03),-19px_28px_34px_0px_rgba(0,0,0,0.06)] sm:rounded-[30px]">
@@ -517,8 +532,8 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
517
532
  .content="${{logoUrl:this.config.logoUrl,title:this.config.title,color:this.config.color}}"
518
533
  ?show-new-chat="${!l(this,V).isLiveMode&&this.messages.length>0}"
519
534
  ?show-close="${this.showClose}"
520
- @mw:new-chat-click="${m(this,L,_l)}"
521
- @mw:close-click="${m(this,L,Al)}">
535
+ @mw:new-chat-click="${g(this,D,Al)}"
536
+ @mw:close-click="${g(this,D,Ml)}">
522
537
  </mw-chat-header>
523
538
 
524
539
  <!-- used by the dashboard to inject content -->
@@ -527,7 +542,7 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
527
542
  </div>
528
543
 
529
544
  <!-- this structure of 2 divs is required for the browser native stick/scroll to bottom -->
530
- <div id="scrollable-content" class="mt-6 flex h-full flex-shrink flex-grow flex-col-reverse overflow-auto" @scroll="${m(this,L,xl)}">
545
+ <div id="scrollable-content" class="mt-6 flex h-full flex-shrink flex-grow flex-col-reverse overflow-auto" @scroll="${g(this,D,kl)}">
531
546
  ${this.config?.showStillLearningBanner?h`
532
547
  <div class="flex justify-center">
533
548
  <div class="mb-2 flex max-w-[70%] select-none items-center justify-center rounded-full bg-black px-3 py-2">
@@ -552,18 +567,19 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
552
567
  <!-- this is the 2nd (inner) div that will natively stick/scroll to bottom -->
553
568
  <div class="${this.messages.length>0?"pt-20":""}">
554
569
  ${me(Array.from(r),([n])=>n,([n,i])=>h`
555
- <div class="my-2 text-center text-xs text-gray-500">${yl(new Date(Number(n)),window.navigator.language)}</div>
556
- ${me(i??[],s=>s.id,(s,o)=>{let a=i[o+1]?.role===s.role,f=(o>0?i[o-1]:void 0)?.role===s.role,b=(i.length>0?i[i.length-1]:void 0)?.id===s.id;g(this,Or,b&&!f&&!a?"single-current":!f&&!a?"single":!f&&a?"first":b&&f&&!a?"last-current":f&&!a?"last":f&&a?"middle":"single");let k=l(this,V).isLiveMode&&s.role==="user"&&s.id===l(this,V).lastMsg?.id?"sent":"";return h`
570
+ <div class="my-2 text-center text-xs text-gray-500">${vl(new Date(Number(n)),window.navigator.language)}</div>
571
+ ${me(i??[],s=>s.id,(s,o)=>{let a=i[o+1]?.role===s.role,f=(o>0?i[o-1]:void 0)?.role===s.role,b=(i.length>0?i[i.length-1]:void 0)?.id===s.id;m(this,jr,b&&!f&&!a?"single-current":!f&&!a?"single":!f&&a?"first":b&&f&&!a?"last-current":f&&!a?"last":f&&a?"middle":"single");let k=l(this,V).isLiveMode&&s.role==="user"&&s.id===l(this,V).lastMsg?.id?"sent":"";return h`
557
572
  <div data-id="${s.id}" class="${a?"mb-[2px]":"mb-3"} mx-2 flex-row">
558
573
  <mw-chat-message
559
574
  color="${this.config.color}"
560
575
  status="${k}"
561
576
  logo="${s.metadata?.avatar||this.config.logoUrl}"
562
577
  side="${s.role}"
563
- position=${l(this,Or)}
564
- @click="${m(this,L,kl)}">
565
- <div class="prose break-words text-inherit">
566
- ${s.content===Zc?h`<mw-loading class="-mx-2 block h-8 max-h-[24px] w-8 fill-[${this.config.color}]"></mw-loading>`:s.parts?me(s.parts,(_,M)=>M,(_,M)=>ml(_,M,s.parts??[],{imagesByProductUrl:s.metadata?.imagesByProductUrl,linksNewTab:this.config.linksNewTab??!0,searchParams:new URLSearchParams({utm_source:"molin.ai",utm_medium:"chat",utm_campaign:"general"}),messageIsStreaming:s.streaming})):h`<p>${s.content}</p>`}
578
+ position=${l(this,jr)}
579
+ @click="${g(this,D,Cl)}">
580
+ <div
581
+ class="prose prose-h1:first:mt-0 prose-h2:first:mt-0 prose-h3:first:mt-0 prose-h4:first:mt-0 prose-h1:last:mb-0 prose-h2:last:mb-0 prose-h3:last:mb-0 prose-h4:last:mb-0 prose-h1:mt-5 prose-h2:mt-5 prose-h3:mt-5 prose-h4:mt-5 prose-h1:mb-2 prose-h2:mb-2 prose-h3:mb-2 prose-h4:mb-2 prose-h1:text-xl prose-h1:text-bold prose-h2:text-lg prose-h2:text-bold prose-h3:text-base prose-h3:text-bold prose-h4:text-sm prose-h4:text-bold break-words text-inherit">
582
+ ${s.content===Xc?h`<mw-loading class="-mx-2 block h-8 max-h-[24px] w-8 fill-[${this.config.color}]"></mw-loading>`:s.parts?me(s.parts,(_,M)=>M,(_,M)=>gl(_,M,s.parts??[],{imagesByProductUrl:s.metadata?.imagesByProductUrl,linksNewTab:this.config.linksNewTab??!0,searchParams:new URLSearchParams({utm_source:"molin.ai",utm_medium:"chat",utm_campaign:"general"}),messageIsStreaming:s.streaming})):h`<p>${s.content}</p>`}
567
583
  </div>
568
584
  </mw-chat-message>
569
585
  </div>
@@ -577,7 +593,8 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
577
593
  color="${this.config.color}"
578
594
  logo="${l(this,V)?.typingIndicator?.metadata?.avatar||this.config.logoUrl}"
579
595
  side="${l(this,V).typingIndicator.role}">
580
- <div class="prose break-words text-inherit">
596
+ <div
597
+ class="prose prose-h1:first:mt-0 prose-h2:first:mt-0 prose-h3:first:mt-0 prose-h4:first:mt-0 prose-h1:last:mb-0 prose-h2:last:mb-0 prose-h3:last:mb-0 prose-h4:last:mb-0 prose-h1:mt-5 prose-h2:mt-5 prose-h3:mt-5 prose-h4:mt-5 prose-h1:mb-2 prose-h2:mb-2 prose-h3:mb-2 prose-h4:mb-2 prose-h1:text-xl prose-h1:text-bold prose-h2:text-lg prose-h2:text-bold prose-h3:text-base prose-h3:text-bold prose-h4:text-sm prose-h4:text-bold break-words text-inherit">
581
598
  <mw-loading class="-mx-2 block h-8 max-h-[24px] w-8 fill-[${this.config.color}]"></mw-loading>
582
599
  </div>
583
600
  </mw-chat-message>
@@ -588,14 +605,14 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
588
605
  class="flex-grow"
589
606
  .examples="${this.messages.length>0?[]:this.config.examples}"
590
607
  color="${this.config.color}"
591
- @mw:example-click="${m(this,L,Cl)}"></mw-chat-background>
608
+ @mw:example-click="${g(this,D,$l)}"></mw-chat-background>
592
609
  </div>
593
610
 
594
611
  <div class="m-1.5 flex-shrink-0 flex-grow-0 space-y-2 rounded-3xl bg-[#eeedf1] p-1.5">
595
612
  <mw-chat-input
596
- @mw:change="${m(this,L,El)}"
597
- @mw:submit="${m(this,L,$l)}"
598
- @mw:cancel="${m(this,L,Sl)}"
613
+ @mw:change="${g(this,D,Sl)}"
614
+ @mw:submit="${g(this,D,El)}"
615
+ @mw:cancel="${g(this,D,_l)}"
599
616
  placeholder="${this.config.input?.placeholder}"
600
617
  ?disabled="${l(this,V).ranOutOfCredits}"
601
618
  ?streaming="${l(this,V)?.isStreaming??!0}">
@@ -610,35 +627,35 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
610
627
  </div>
611
628
  </div>
612
629
  </div>
613
- `}reloadConfig(){l(this,V).reloadConfig(),this.requestUpdate()}reset(){l(this,V).reset()}};Vt=new WeakMap,Ft=new WeakMap,L=new WeakSet,Fs=function(){function r(i){if(!i)return;let s;try{s=typeof i=="object"?i:JSON.parse(i)}catch(u){console.error("Molin: user-data is not valid JSON",u);return}if(!s||typeof s!="object"||Object.keys(s).length===0)return;let o=Ar(vl,s);if(!o.success){console.error("Molin: user-data does not pass schema validation",o.issues);return}return o.output}function n(i){if(!i)return;let s=Ar(wl,i);if(!s.success){console.error("Molin: custom-instructions does not pass schema validation",s.issues);return}return s.output}g(this,Vt,r(this.xUserData)),g(this,Ft,n(this.xCustomInstructions))},ri=function(){if(!this.widgetId)throw new Error("widgetId is not set");return`_molin_${this.widgetId}`},Tr=new WeakMap,st=new WeakMap,V=new WeakMap,Or=new WeakMap,xl=function(){g(this,st,!0)},kl=function(r){let n=r.target;if(n instanceof HTMLAnchorElement){if(r.preventDefault(),this.callbacks.onUserClickedLink?.({widgetId:this.widgetId,url:n.href,conversationId:this.conversationId}),window.self!==window.top){window.open(n.href,"_blank");return}let s=this.config.linksNewTab?"_blank":"_self";window.open(n.href,n.target||s)}},Cl=function(r){let n=r.detail.example;if(!l(this,V)?.sendUserInput(n,{xUserData:l(this,Vt),xCustomInstructions:l(this,Ft)})){r.preventDefault();return}this.callbacks.onUserSentInput?.({widgetId:this.widgetId,text:n,example:!0,conversationId:this.conversationId})},$l=function(r){let n=r.detail;if(!l(this,V)?.sendUserInput(n,{xUserData:l(this,Vt),xCustomInstructions:l(this,Ft)})){r.preventDefault();return}l(this,Tr).typingStopped(),this.callbacks.onUserSentInput?.({widgetId:this.widgetId,text:n,example:!1,conversationId:this.conversationId})},El=function(r){l(this,Tr).onInput(r.detail.full)},Sl=function(){l(this,V)?.sendUserCancel(),this.callbacks.onUserCanceledStreaming?.({widgetId:this.widgetId})},_l=function(){l(this,V).reset()},Al=function(){this.dispatchEvent(new ii.CloseClickEvent)},ni=function(){return this.renderRoot.querySelector("#scrollable-content")},w(ii,"properties",{widgetId:{type:String,attribute:"widget"},config:{type:Object,attribute:!1},callbacks:{type:Object,attribute:!1},showClose:{type:Boolean,attribute:"show-close"},xUserData:{type:Object,attribute:!1},xCustomInstructions:{type:String,attribute:!1}});var Ir=ii,Vs;Ir.CloseClickEvent=(Vs=class extends CustomEvent{constructor(e={}){super(Ir.CloseClickEvent.type,{...e})}},w(Vs,"type","mw:close-click"),Vs);customElements.get("mw-chat")||customElements.define("mw-chat",Ir);var Ht,Ml,Il,jr=class jr extends T(S){constructor(){super();d(this,Ht);w(this,"render",()=>h`
630
+ `}reloadConfig(){l(this,V).reloadConfig(),this.requestUpdate()}reset(){l(this,V).reset()}};Vt=new WeakMap,Ft=new WeakMap,D=new WeakSet,Hs=function(){function r(i){if(!i)return;let s;try{s=typeof i=="object"?i:JSON.parse(i)}catch(u){console.error("Molin: user-data is not valid JSON",u);return}if(!s||typeof s!="object"||Object.keys(s).length===0)return;let o=Ir(wl,s);if(!o.success){console.error("Molin: user-data does not pass schema validation",o.issues);return}return o.output}function n(i){if(!i)return;let s=Ir(bl,i);if(!s.success){console.error("Molin: custom-instructions does not pass schema validation",s.issues);return}return s.output}m(this,Vt,r(this.xUserData)),m(this,Ft,n(this.xCustomInstructions))},ni=function(){if(!this.widgetId)throw new Error("widgetId is not set");return`_molin_${this.widgetId}`},Lr=new WeakMap,at=new WeakMap,V=new WeakMap,jr=new WeakMap,kl=function(){m(this,at,!0)},Cl=function(r){let n=r.target;if(n instanceof HTMLAnchorElement){if(r.preventDefault(),this.callbacks.onUserClickedLink?.({widgetId:this.widgetId,url:n.href,conversationId:this.conversationId}),window.self!==window.top){window.open(n.href,"_blank");return}let s=this.config.linksNewTab?"_blank":"_self";window.open(n.href,n.target||s)}},$l=function(r){let n=r.detail.example;if(!l(this,V)?.sendUserInput(n,{xUserData:l(this,Vt),xCustomInstructions:l(this,Ft)})){r.preventDefault();return}this.callbacks.onUserSentInput?.({widgetId:this.widgetId,text:n,example:!0,conversationId:this.conversationId})},El=function(r){let n=r.detail;if(!l(this,V)?.sendUserInput(n,{xUserData:l(this,Vt),xCustomInstructions:l(this,Ft)})){r.preventDefault();return}l(this,Lr).typingStopped(),this.callbacks.onUserSentInput?.({widgetId:this.widgetId,text:n,example:!1,conversationId:this.conversationId})},Sl=function(r){l(this,Lr).onInput(r.detail.full)},_l=function(){l(this,V)?.sendUserCancel(),this.callbacks.onUserCanceledStreaming?.({widgetId:this.widgetId})},Al=function(){l(this,V).reset()},Ml=function(){this.dispatchEvent(new si.CloseClickEvent)},ii=function(){return this.renderRoot.querySelector("#scrollable-content")},w(si,"properties",{widgetId:{type:String,attribute:"widget"},config:{type:Object,attribute:!1},callbacks:{type:Object,attribute:!1},showClose:{type:Boolean,attribute:"show-close"},xUserData:{type:Object,attribute:!1},xCustomInstructions:{type:String,attribute:!1}});var Or=si,Fs;Or.CloseClickEvent=(Fs=class extends CustomEvent{constructor(e={}){super(Or.CloseClickEvent.type,{...e})}},w(Fs,"type","mw:close-click"),Fs);customElements.get("mw-chat")||customElements.define("mw-chat",Or);var Ht,Il,Tl,Dr=class Dr extends T(S){constructor(){super();d(this,Ht);w(this,"render",()=>h`
614
631
  <!-- wrapper -->
615
632
  <div class="group relative z-[2147483647] w-[300px] cursor-pointer select-none rounded-2xl rounded-t-2xl bg-white font-sans text-base leading-normal shadow-2xl">
616
633
  <!-- close button -->
617
634
  <button
618
635
  class="absolute -top-2 right-3 inline-flex h-6 w-6 items-center justify-center rounded-full bg-gray-300 bg-opacity-50 pb-[2px] text-center text-gray-700 opacity-0 shadow transition-opacity duration-300 ease-in-out group-hover:opacity-100"
619
- @click="${m(this,Ht,Ml)}"
636
+ @click="${g(this,Ht,Il)}"
620
637
  aria-label="Close">
621
638
  ×
622
639
  </button>
623
640
 
624
641
  <!-- content -->
625
- <div class="p-4 text-left text-gray-800" @click="${m(this,Ht,Il)}">
642
+ <div class="p-4 text-left text-gray-800" @click="${g(this,Ht,Tl)}">
626
643
  <p>${this.text}</p>
627
644
  </div>
628
645
  </div>
629
- `);this.text="Hello there. How can we help?"}};Ht=new WeakSet,Ml=function(){this.dispatchEvent(new jr.CloseEvent)},Il=function(){this.dispatchEvent(new jr.ClickEvent)},w(jr,"properties",{text:{type:String}});var ot=jr,Hs;ot.CloseEvent=(Hs=class extends CustomEvent{constructor(e={}){super(ot.CloseEvent.type,{...e})}},w(Hs,"type","mw:close"),Hs);var Ns;ot.ClickEvent=(Ns=class extends CustomEvent{constructor(e={}){super(ot.ClickEvent.type,{...e})}},w(Ns,"type","mw:click"),Ns);customElements.get("mw-popup-desktop")||customElements.define("mw-popup-desktop",ot);var Nt,Tl,Ol,Dr=class Dr extends T(S){constructor(){super();d(this,Nt);w(this,"render",()=>h`
646
+ `);this.text="Hello there. How can we help?"}};Ht=new WeakSet,Il=function(){this.dispatchEvent(new Dr.CloseEvent)},Tl=function(){this.dispatchEvent(new Dr.ClickEvent)},w(Dr,"properties",{text:{type:String}});var lt=Dr,Ns;lt.CloseEvent=(Ns=class extends CustomEvent{constructor(e={}){super(lt.CloseEvent.type,{...e})}},w(Ns,"type","mw:close"),Ns);var Bs;lt.ClickEvent=(Bs=class extends CustomEvent{constructor(e={}){super(lt.ClickEvent.type,{...e})}},w(Bs,"type","mw:click"),Bs);customElements.get("mw-popup-desktop")||customElements.define("mw-popup-desktop",lt);var Nt,Ol,Ll,Rr=class Rr extends T(S){constructor(){super();d(this,Nt);w(this,"render",()=>h`
630
647
  <!-- wrapper -->
631
648
  <div class="group relative z-[2147483647] select-none rounded-t-2xl bg-white text-left font-sans text-[16px] text-base leading-normal text-gray-800 shadow-2xl transition-all">
632
649
  <!-- close button -->
633
650
  <button
634
651
  class="absolute right-4 top-[28px] inline-flex h-7 w-7 items-center justify-center rounded-full bg-gray-300 bg-opacity-50 pb-[2px] text-center text-xl shadow-none duration-300 ease-in-out focus:outline-none"
635
- @click="${m(this,Nt,Tl)}"
652
+ @click="${g(this,Nt,Ol)}"
636
653
  aria-label="Close">
637
654
  ×
638
655
  </button>
639
656
 
640
657
  <!-- content -->
641
- <div class="p-4 text-gray-800" @click="${m(this,Nt,Ol)}">
658
+ <div class="p-4 text-gray-800" @click="${g(this,Nt,Ll)}">
642
659
  <h1 class="mr-8 py-2.5 text-left font-display text-lg font-bold">${this.title}</h1>
643
660
  <p class="py-2.5 text-left">${this.text}</p>
644
661
  <div class="h-4"></div>
@@ -651,31 +668,31 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
651
668
  <!-- can append any other content -->
652
669
  <slot name="footer"></slot>
653
670
  </div>
654
- `);this.title="Chat with Molin AI",this.text="Hello there. How can we help?",this.button="Chat now",this.color="#601feb"}};Nt=new WeakSet,Tl=function(){this.dispatchEvent(new Dr.CloseEvent)},Ol=function(){this.dispatchEvent(new Dr.ClickEvent)},w(Dr,"properties",{title:{type:String},text:{type:String},button:{type:String},color:{type:String}});var at=Dr,Bs;at.CloseEvent=(Bs=class extends CustomEvent{constructor(e={}){super(at.CloseEvent.type,{...e})}},w(Bs,"type","mw:close"),Bs);var qs;at.ClickEvent=(qs=class extends CustomEvent{constructor(e={}){super(at.ClickEvent.type,{...e})}},w(qs,"type","mw:click"),qs);customElements.get("mw-popup-mobile")||customElements.define("mw-popup-mobile",at);var Bt,Lr,lt,si=class{constructor(e,r){d(this,Bt);d(this,Lr,!1);d(this,lt,()=>{l(this,Lr)||(l(this,Bt).userFirstInteracted?.(),g(this,Lr,!0)),l(this,Bt).userInteracted?.()});g(this,Bt,r),e.addController(this)}hostConnected(){this.startListening()}hostDisconnected(){this.stopListening()}startListening(){window.addEventListener("click",l(this,lt)),window.addEventListener("keydown",l(this,lt))}stopListening(){window.removeEventListener("click",l(this,lt)),window.removeEventListener("keydown",l(this,lt))}};Bt=new WeakMap,Lr=new WeakMap,lt=new WeakMap;var Jc=24*60*60*1e3,qt,le,ut,Pr,ct,Rr,ai,jl,oi=class{constructor(e,r,n=Date){d(this,ai);d(this,qt);d(this,le);d(this,ut);d(this,Pr);d(this,ct,!1);d(this,Rr,!1);g(this,qt,e),g(this,le,r),g(this,ut,n),e.addController(this)}get showing(){return l(this,ct)}hostDisconnected(){this.abortAutoShowTimer()}show({sound:e}={}){if(this.abortAutoShowTimer(),!l(this,ct)&&(g(this,ct,!0),l(this,qt).requestUpdate(),e)){l(this,le).playPopupSound();let r=l(this,le).getPersistedState();l(this,le).setPersistedState({...r,playedSoundOnce:!0})}}hide(){g(this,Rr,!0),this.abortAutoShowTimer(),g(this,ct,!1),l(this,qt).requestUpdate()}abortAutoShowTimer(){clearTimeout(l(this,Pr))}onCloseClick(){let e=l(this,le).getPersistedState();l(this,le).setPersistedState({...e,userDismissedAt:l(this,ut).now()}),this.hide()}onContentClick(){let e=l(this,le).getPersistedState();l(this,le).setPersistedState({...e,userDismissedAt:l(this,ut).now()}),this.hide()}userFirstInteracted(){this.abortAutoShowTimer(),l(this,Rr)||g(this,Pr,setTimeout(()=>m(this,ai,jl).call(this),l(this,le).getDelayMs()))}};qt=new WeakMap,le=new WeakMap,ut=new WeakMap,Pr=new WeakMap,ct=new WeakMap,Rr=new WeakMap,ai=new WeakSet,jl=function(){let e=l(this,le).getPersistedState(),r=!!e?.playedSoundOnce;e?.userDismissedAt&&l(this,ut).now()-e.userDismissedAt<Jc||this.show({sound:!r})};var Fe,Gs,Te,li,Ws,ui=class ui extends T(S){constructor(){super();d(this,Te);d(this,Fe,new oi(this,{getDelayMs:()=>this.delayMs,playPopupSound:()=>{this.soundUrl&&new Audio(this.soundUrl).play().then(()=>{}).catch(r=>{console.error("Error playing audio:",r,{})})},setPersistedState:r=>{r?localStorage.setItem("_molin_popup",JSON.stringify(r)):localStorage.removeItem("_molin_popup")},getPersistedState:()=>{let r=localStorage.getItem("_molin_popup");try{return r?JSON.parse(r):null}catch{return null}}}));d(this,Gs,new si(this,l(this,Fe)));this.positionClasses="",this.delayMs=0,this.soundUrl="",this.content={desktop:{text:""},mobile:{title:"",text:"",button:"",color:"",poweredBy:!0}}}render(){let r=l(this,Fe).showing?"visible opacity-100 translate-y-0":"invisible opacity-0 translate-y-3",n=this.content;return h`
671
+ `);this.title="Chat with Molin AI",this.text="Hello there. How can we help?",this.button="Chat now",this.color="#601feb"}};Nt=new WeakSet,Ol=function(){this.dispatchEvent(new Rr.CloseEvent)},Ll=function(){this.dispatchEvent(new Rr.ClickEvent)},w(Rr,"properties",{title:{type:String},text:{type:String},button:{type:String},color:{type:String}});var ut=Rr,qs;ut.CloseEvent=(qs=class extends CustomEvent{constructor(e={}){super(ut.CloseEvent.type,{...e})}},w(qs,"type","mw:close"),qs);var zs;ut.ClickEvent=(zs=class extends CustomEvent{constructor(e={}){super(ut.ClickEvent.type,{...e})}},w(zs,"type","mw:click"),zs);customElements.get("mw-popup-mobile")||customElements.define("mw-popup-mobile",ut);var Bt,Pr,ct,oi=class{constructor(e,r){d(this,Bt);d(this,Pr,!1);d(this,ct,()=>{l(this,Pr)||(l(this,Bt).userFirstInteracted?.(),m(this,Pr,!0)),l(this,Bt).userInteracted?.()});m(this,Bt,r),e.addController(this)}hostConnected(){this.startListening()}hostDisconnected(){this.stopListening()}startListening(){window.addEventListener("click",l(this,ct)),window.addEventListener("keydown",l(this,ct))}stopListening(){window.removeEventListener("click",l(this,ct)),window.removeEventListener("keydown",l(this,ct))}};Bt=new WeakMap,Pr=new WeakMap,ct=new WeakMap;var Yc=24*60*60*1e3,qt,le,pt,Ur,ft,Vr,li,jl,ai=class{constructor(e,r,n=Date){d(this,li);d(this,qt);d(this,le);d(this,pt);d(this,Ur);d(this,ft,!1);d(this,Vr,!1);m(this,qt,e),m(this,le,r),m(this,pt,n),e.addController(this)}get showing(){return l(this,ft)}hostDisconnected(){this.abortAutoShowTimer()}show({sound:e}={}){if(this.abortAutoShowTimer(),!l(this,ft)&&(m(this,ft,!0),l(this,qt).requestUpdate(),e)){l(this,le).playPopupSound();let r=l(this,le).getPersistedState();l(this,le).setPersistedState({...r,playedSoundOnce:!0})}}hide(){m(this,Vr,!0),this.abortAutoShowTimer(),m(this,ft,!1),l(this,qt).requestUpdate()}abortAutoShowTimer(){clearTimeout(l(this,Ur))}onCloseClick(){let e=l(this,le).getPersistedState();l(this,le).setPersistedState({...e,userDismissedAt:l(this,pt).now()}),this.hide()}onContentClick(){let e=l(this,le).getPersistedState();l(this,le).setPersistedState({...e,userDismissedAt:l(this,pt).now()}),this.hide()}userFirstInteracted(){this.abortAutoShowTimer(),l(this,Vr)||m(this,Ur,setTimeout(()=>g(this,li,jl).call(this),l(this,le).getDelayMs()))}};qt=new WeakMap,le=new WeakMap,pt=new WeakMap,Ur=new WeakMap,ft=new WeakMap,Vr=new WeakMap,li=new WeakSet,jl=function(){let e=l(this,le).getPersistedState(),r=!!e?.playedSoundOnce;e?.userDismissedAt&&l(this,pt).now()-e.userDismissedAt<Yc||this.show({sound:!r})};var Fe,Gs,Te,ui,Zs,ci=class ci extends T(S){constructor(){super();d(this,Te);d(this,Fe,new ai(this,{getDelayMs:()=>this.delayMs,playPopupSound:()=>{this.soundUrl&&new Audio(this.soundUrl).play().then(()=>{}).catch(r=>{console.error("Error playing audio:",r,{})})},setPersistedState:r=>{r?localStorage.setItem("_molin_popup",JSON.stringify(r)):localStorage.removeItem("_molin_popup")},getPersistedState:()=>{let r=localStorage.getItem("_molin_popup");try{return r?JSON.parse(r):null}catch{return null}}}));d(this,Gs,new oi(this,l(this,Fe)));this.positionClasses="",this.delayMs=0,this.soundUrl="",this.content={desktop:{text:""},mobile:{title:"",text:"",button:"",color:"",poweredBy:!0}}}render(){let r=l(this,Fe).showing?"visible opacity-100 translate-y-0":"invisible opacity-0 translate-y-3",n=this.content;return h`
655
672
  <!-- mobile shadow backdrop -->
656
- <div @click="${m(this,Te,li)}" class="${r} fixed inset-0 z-[2147483647] bg-black/50 transition-[opacity,visibility] sm:hidden"></div>
673
+ <div @click="${g(this,Te,ui)}" class="${r} fixed inset-0 z-[2147483647] bg-black/50 transition-[opacity,visibility] sm:hidden"></div>
657
674
 
658
675
  <!-- mobile overlay -->
659
676
  <div class="${r} fixed bottom-0 left-0 right-0 z-[2147483647] sm:hidden">
660
- <mw-popup-mobile title="${n.mobile.title}" text="${n.mobile.text}" button="${n.mobile.button}" color="${n.mobile.color}" @mw:click="${m(this,Te,Ws)}" @mw:close="${m(this,Te,li)}">
677
+ <mw-popup-mobile title="${n.mobile.title}" text="${n.mobile.text}" button="${n.mobile.button}" color="${n.mobile.color}" @mw:click="${g(this,Te,Zs)}" @mw:close="${g(this,Te,ui)}">
661
678
  ${n.mobile.poweredBy?h`<mw-powered-by class="block p-4" slot="footer"></mw-powered-by>`:E}
662
679
  </mw-popup-mobile>
663
680
  </div>
664
681
 
665
682
  <!-- desktop -->
666
683
  <div class="${r} ${this.positionClasses} fixed z-[2147483647] transition-[opacity,translate,visibility] max-sm:hidden">
667
- <mw-popup-desktop text="${n.desktop.text}" @mw:click="${m(this,Te,Ws)}" @mw:close="${m(this,Te,li)}"></mw-popup-desktop>
684
+ <mw-popup-desktop text="${n.desktop.text}" @mw:click="${g(this,Te,Zs)}" @mw:close="${g(this,Te,ui)}"></mw-popup-desktop>
668
685
  </div>
669
- `}hide(){l(this,Fe).hide()}};Fe=new WeakMap,Gs=new WeakMap,Te=new WeakSet,li=function(){l(this,Fe).onCloseClick()},Ws=function(){this.dispatchEvent(new ui.ClickEvent),l(this,Fe).onContentClick()},w(ui,"properties",{positionClasses:{type:String,attribute:"position"},delayMs:{type:Number,attribute:"delay"},soundUrl:{type:String,attribute:"sound"},content:{type:Object}});var Ur=ui,zs;Ur.ClickEvent=(zs=class extends CustomEvent{constructor(e={}){super(Ur.ClickEvent.type,{...e})}},w(zs,"type","mw:click"),zs);customElements.get("mw-popup")||customElements.define("mw-popup",Ur);var pi,Dl,ci=class extends T(S){constructor(){super();d(this,pi);w(this,"render",()=>h`
686
+ `}hide(){l(this,Fe).hide()}};Fe=new WeakMap,Gs=new WeakMap,Te=new WeakSet,ui=function(){l(this,Fe).onCloseClick()},Zs=function(){this.dispatchEvent(new ci.ClickEvent),l(this,Fe).onContentClick()},w(ci,"properties",{positionClasses:{type:String,attribute:"position"},delayMs:{type:Number,attribute:"delay"},soundUrl:{type:String,attribute:"sound"},content:{type:Object}});var Fr=ci,Ws;Fr.ClickEvent=(Ws=class extends CustomEvent{constructor(e={}){super(Fr.ClickEvent.type,{...e})}},w(Ws,"type","mw:click"),Ws);customElements.get("mw-popup")||customElements.define("mw-popup",Fr);var fi,Dl,pi=class extends T(S){constructor(){super();d(this,fi);w(this,"render",()=>h`
670
687
  <span class="relative inline-flex">
671
688
  <slot></slot>
672
- <span class="${l(this,pi,Dl)} pointer-events-none absolute z-10 flex h-3 w-3">
689
+ <span class="${l(this,fi,Dl)} pointer-events-none absolute z-10 flex h-3 w-3">
673
690
  <span class="bg-${this.color} absolute inline-flex h-3 w-3 animate-ping rounded-full opacity-75"></span>
674
691
  <span class="bg-${this.color} relative inline-flex h-3 w-3 rounded-full"></span>
675
692
  </span>
676
693
  </span>
677
- `);this.color="sky-500",this.position="top-right"}};pi=new WeakSet,Dl=function(){switch(this.position){case"top-left":return"top-0 left-0 -mt-1 -ml-1";case"top-right":return"top-0 right-0 -mt-1 -mr-1";case"bottom-left":return"bottom-0 left-0 -mb-1 -ml-1";case"bottom-right":return"bottom-0 right-0 -mb-1 -mr-1";default:throw new Error(`Invalid position: ${this.position}`)}},w(ci,"properties",{color:{type:String,attribute:"color"},position:{type:String,attribute:"position"}});customElements.get("mw-pulse-dot")||customElements.define("mw-pulse-dot",ci);var fi=class extends T(S){constructor(){super();w(this,"render",()=>h`
678
- <div class="${this.positionClasses} fixed bottom-24 right-6 flex animate-bounce flex-col items-center justify-center font-sans text-base">
694
+ `);this.color="sky-500",this.position="top-right"}};fi=new WeakSet,Dl=function(){switch(this.position){case"top-left":return"top-0 left-0 -mt-1 -ml-1";case"top-right":return"top-0 right-0 -mt-1 -mr-1";case"bottom-left":return"bottom-0 left-0 -mb-1 -ml-1";case"bottom-right":return"bottom-0 right-0 -mb-1 -mr-1";default:throw new Error(`Invalid position: ${this.position}`)}},w(pi,"properties",{color:{type:String,attribute:"color"},position:{type:String,attribute:"position"}});customElements.get("mw-pulse-dot")||customElements.define("mw-pulse-dot",pi);var hi=class extends T(S){constructor(){super();w(this,"render",()=>h`
695
+ <div class="${this.positionClasses} fixed bottom-24 right-6 z-10 flex animate-bounce flex-col items-center justify-center font-sans text-base">
679
696
  <p class="mb-2 -translate-x-4 -rotate-12 transform text-lg font-bold leading-normal text-gray-800">${this.text}</p>
680
697
 
681
698
  <!-- arrow -->
@@ -687,7 +704,7 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
687
704
  stroke-linecap="round"></path>
688
705
  </svg>
689
706
  </div>
690
- `);this.positionClasses="",this.text="Try it out"}};w(fi,"properties",{positionClasses:{type:String,attribute:"position"},text:{type:String}});customElements.get("mw-try-it-out")||customElements.define("mw-try-it-out",fi);var Ll=(t,e,r)=>{for(let n of e)if(n[0]===t)return(0,n[1])();return r?.()};var hi=class extends hr(S){constructor(){super(),this.orderDetails=null,this.streaming=!1,this.linksNewTab=!1}render(){let e=Lt(this.orderDetails?.order_status?.step||[]),r=Lt(this.orderDetails?.items?.item||[]),n=Lt(this.orderDetails?.actions||[]);return h`
707
+ `);this.positionClasses="",this.text="Try it out"}};w(hi,"properties",{positionClasses:{type:String,attribute:"position"},text:{type:String}});customElements.get("mw-try-it-out")||customElements.define("mw-try-it-out",hi);var Rl=(t,e,r)=>{for(let n of e)if(n[0]===t)return(0,n[1])();return r?.()};var di=class extends dr(S){constructor(){super(),this.orderDetails=null,this.streaming=!1,this.linksNewTab=!1}render(){let e=Dt(this.orderDetails?.order_status?.step||[]),r=Dt(this.orderDetails?.items?.item||[]),n=Dt(this.orderDetails?.actions||[]);return h`
691
708
  <div class="flex w-full max-w-md flex-col rounded-3xl border bg-white p-4">
692
709
  <!-- Header with order ID -->
693
710
  <div class="mb-2">
@@ -716,7 +733,7 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
716
733
  ${a?"":h`<div class="${`absolute left-2 top-2 -ml-px mt-0.5 h-full w-0.5 ${o?"bg-[#601feb]":"bg-gray-300"}`}" aria-hidden="true"></div>`}
717
734
 
718
735
  <div class="group relative flex items-start">
719
- ${Ll(i.status,[["pending",()=>h` <span class="flex h-6 items-center">
736
+ ${Rl(i.status,[["pending",()=>h` <span class="flex h-6 items-center">
720
737
  <span class="flex h-4 w-4 items-center justify-center rounded-full border-2 border-gray-300 bg-white">
721
738
  <span class="h-1.5 w-1.5 rounded-full bg-transparent"></span>
722
739
  </span>
@@ -776,7 +793,7 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
776
793
  `)}
777
794
  `:r?.map(i=>{let s=i?.image_url;return h`
778
795
  <div class="flex items-center gap-2 py-1.5">
779
- <mw-product-thumbnail class="block h-12 w-12" src="${Pe(s)}"></mw-product-thumbnail>
796
+ <mw-product-thumbnail class="block h-12 w-12" src="${Re(s)}"></mw-product-thumbnail>
780
797
 
781
798
  <div class="min-w-0 flex-1">
782
799
  ${!i?.name&&this.streaming?h`<div class="h-4 w-32 animate-pulse rounded bg-gray-200"></div>`:h`<h3 class="truncate text-sm font-medium">${i?.name}</h3>`}
@@ -859,11 +876,11 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
859
876
 
860
877
  <!-- Action buttons section -->
861
878
  <div class="flex w-full flex-col gap-2 overflow-hidden">
862
- ${this.streaming&&!n[0]?.track_order?.label&&!hs(n[0]?.track_order?.tracking_url||"")?h`
879
+ ${this.streaming&&!n[0]?.track_order?.label&&!ds(n[0]?.track_order?.tracking_url||"")?h`
863
880
  <!-- Loading shimmer for buttons -->
864
881
  <div class="h-10 w-full min-w-[250px] animate-pulse overflow-hidden rounded-xl bg-gray-200"></div>
865
882
  `:me(n,(i,s)=>`action-${s}`,i=>{if(i?.track_order?.label)return h`
866
- ${hs(i.track_order?.tracking_url||"")?h` <a
883
+ ${ds(i.track_order?.tracking_url||"")?h` <a
867
884
  target="${this.linksNewTab?"_blank":"_self"}"
868
885
  href="${i.track_order?.tracking_url}"
869
886
  class="mt-1 w-full rounded-xl bg-[#601feb] px-4 py-2 text-center text-sm font-medium text-white hover:opacity-90"
@@ -872,34 +889,34 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
872
889
  `})}
873
890
  </div>
874
891
  </div>
875
- `}};w(hi,"properties",{orderDetails:{type:Object,attribute:"order-details"},streaming:{type:Boolean},linksNewTab:{type:Boolean,attribute:"links-new-tab"}});customElements.get("mw-product-order-status-card")||customElements.define("mw-product-order-status-card",hi);var He,ke,Xs,Vr,Zs=class{constructor(e=window.localStorage){d(this,ke);d(this,He);g(this,He,e)}setex(e,r,n){return l(this,He).setItem(e,m(this,ke,Vr).call(this,{value:m(this,ke,Vr).call(this,r),expiresAt:Date.now()+n*1e3})||"")}set(e,r){return l(this,He).setItem(e,m(this,ke,Vr).call(this,{value:m(this,ke,Vr).call(this,r)})||"")}get(e){let r=l(this,He).getItem(e);if(!r)return;let n=m(this,ke,Xs).call(this,r);if(n){if(n.expiresAt&&n.expiresAt<Date.now()){l(this,He).removeItem(e);return}return m(this,ke,Xs).call(this,n.value)}}get molin_shop_assistant_distinct_id(){return localStorage.getItem("molin_shop_assistant_distinct_id")}set molin_shop_assistant_distinct_id(e){e===null?localStorage.removeItem("molin_shop_assistant_distinct_id"):localStorage.setItem("molin_shop_assistant_distinct_id",e)}get molin_widget_open_state(){return ue.get("molin-shop-ai-widget-open")??null}set molin_widget_open_state(e){ue.set("molin-shop-ai-widget-open",e)}resetWidgetData(){ue.molin_shop_assistant_distinct_id=null,ue.molin_widget_open_state=null}};He=new WeakMap,ke=new WeakSet,Xs=function(e){if(!(typeof e!="string"||e===""))try{return JSON.parse(e)}catch{return}},Vr=function(e){if(e!==void 0)try{return JSON.stringify(e)}catch{return}};var ue=new Zs;var te,Oe,mi,Fr,zt,Js=class{constructor(){d(this,te,[]);d(this,Oe);d(this,mi,10);d(this,Fr,5e3);d(this,zt,!1)}async add(e,r){if(l(this,te).push({event:e,properties:Object.assign({},r,Ul()),distinct_id:Rl(r.distinct_id),timestamp:new Date().toISOString()}),l(this,te).length>=l(this,mi))return this.flush();l(this,Oe)||g(this,Oe,setTimeout(()=>{this.flush().catch(console.error)},l(this,Fr)))}async flush(){if(l(this,zt)||l(this,te).length===0)return;let e=[...l(this,te)];try{g(this,zt,!0),clearTimeout(l(this,Oe)),g(this,Oe,void 0),g(this,te,[]);let r=new AbortController,n=setTimeout(()=>r.abort(),5e3),i=new FormData;i.append("events",JSON.stringify(e));let s=await fetch(new URL("/widgets/data/collect",Ks()).href,{method:"POST",body:i,signal:r.signal});if(clearTimeout(n),!s.ok)throw new Error(`HTTP error! status: ${s.status}`);return s}catch(r){if(r.name==="AbortError")console.error("Request timed out, retrying events"),g(this,te,[...e,...l(this,te)]);else{console.error("Failed to send events to backend:",r);let n=e.filter(i=>i.event.includes("error"));g(this,te,[...n,...l(this,te)])}}finally{g(this,zt,!1),l(this,te).length>0&&!l(this,Oe)&&g(this,Oe,setTimeout(()=>{this.flush().catch(console.error)},l(this,Fr)))}}async flushBeforeUnload(){if(l(this,te).length>0)try{let e=new FormData;e.append("events",JSON.stringify(l(this,te))),navigator.sendBeacon(new URL("/widgets/data/collect",Ks()).href,e)}catch(e){console.error("Failed to send final events:",e)}}};te=new WeakMap,Oe=new WeakMap,mi=new WeakMap,Fr=new WeakMap,zt=new WeakMap;var Pl=new Js;window.addEventListener("beforeunload",()=>{Pl.flushBeforeUnload().catch(console.error)});async function F(t,e){try{if(e.immediate){let r=new FormData;r.append("events",JSON.stringify([{event:t,properties:Object.assign({},e,Ul()),distinct_id:Rl(e.distinct_id),timestamp:new Date().toISOString()}]));let n=await fetch(new URL("/widgets/data/collect",Ks()).href,{method:"POST",body:r});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return await n.json()}return Pl.add(t,e)}catch(r){console.error("Failed to send event:",r)}}function Rl(t=crypto.randomUUID()){try{let e=ue.molin_shop_assistant_distinct_id;return e||(e=t,ue.molin_shop_assistant_distinct_id=e),e}catch(e){console.error("Failed to handle distinct ID:",e);try{ue.molin_shop_assistant_distinct_id=t}catch(r){console.error("Failed to store new distinct ID:",r)}return t}}function Ul(){return{referrer:document.referrer,userAgent:navigator.userAgent,language:navigator.language,screenWidth:window.innerWidth,screenHeight:window.innerHeight,timestamp:new Date().toISOString(),timezoneOffset:new Date().getTimezoneOffset(),doNotTrack:navigator.doNotTrack}}var di;function Ks(){if(di)return di;let t=new URL(import.meta.url).hostname;return di=new Map([["localhost","http://localhost:8787"],["widget.molin.foo","https://molin.foo"],["widget.molin.ai","https://molin.ai"],["molin.foo","https://molin.foo"]]).get(t)||"https://molin.ai",di}var pt,Hr,Ne,ft,yi,Fl,gi=class{constructor(e,r,n){d(this,yi);d(this,pt);d(this,Hr);d(this,Ne);d(this,ft);w(this,"isLoading",!1);w(this,"data");g(this,pt,e),g(this,Hr,r),g(this,Ne,n),e.addController(this)}fetch(){if(this.isLoading)return;l(this,ft)?.abort();let e=new AbortController;g(this,ft,e),this.isLoading=!0,this.data=void 0,l(this,pt).requestUpdate(),(async()=>{let r=m(this,yi,Fl).call(this);return r.signal?.addEventListener("abort",()=>e.abort(),{signal:e.signal}),fetch(r,{signal:e.signal})})().then(async r=>{if(!r.ok)throw new Error(`${r.statusText}: ${await r.text()}`);this.isLoading=!1,this.data=typeof l(this,Ne)?.transform=="function"?await l(this,Ne).transform(r):r,l(this,pt).requestUpdate()}).catch(r=>{l(this,Ne)?.onError?.(r),this.isLoading=!1,this.data=void 0,l(this,pt).requestUpdate()}).finally(()=>{e.abort()})}hostConnected(){this.isLoading||l(this,Ne)?.fetchWhenConnected&&this.fetch()}hostDisconnected(){l(this,ft)?.abort(),g(this,ft,void 0)}};pt=new WeakMap,Hr=new WeakMap,Ne=new WeakMap,ft=new WeakMap,yi=new WeakSet,Fl=function(){let e=l(this,Hr);if(typeof e=="function"&&(e=e()),!e)throw new Error("missing request");return new Request(e)};var Ce,Nr,Wt,Gt,Be=class{constructor(e,r){d(this,Ce);d(this,Nr);d(this,Wt);d(this,Gt);g(this,Ce,e),g(this,Nr,r),e.addController(this)}get data(){return l(this,Gt)||l(this,Wt)?.data}hostConnected(){if(l(this,Wt)||l(this,Gt))return;let e=Hl();e&&e.widgetId===l(this,Ce).widgetId?g(this,Gt,e.config):g(this,Wt,new gi(l(this,Ce),()=>{if(l(this,Ce).cdn&&l(this,Ce).widgetId)return`${l(this,Ce).cdn}/config?w=${l(this,Ce).widgetId}`;throw new Error("missing cdn or widgetId")},{fetchWhenConnected:!0,transform:r=>r.json(),onError:l(this,Nr)?.onError}))}};Ce=new WeakMap,Nr=new WeakMap,Wt=new WeakMap,Gt=new WeakMap;function qe(){return window.molinSettings&&typeof window.molinSettings=="object"?window.molinSettings:null}var vi,zr,wi,je,Nl,Br,qr=class qr extends T(S){constructor(){super();d(this,je);d(this,vi,new Be(this,{onError:console.error}));d(this,zr);d(this,wi,{onError:r=>{alert(r.error),console.error(r.widgetId,r.error),F("ShopAssistant: error",{...r,immediate:!0})},onNewMessageStartedStreaming:r=>{F("ShopAssistant: user received bot message (streaming started)",r)},onMessageEndedStreaming:r=>{F("ShopAssistant: user received bot message (streaming ended)",r)},onUserCanceledStreaming:r=>{F("ShopAssistant: user canceled streaming",r)},onUserClickedLink:r=>{F("ShopAssistant: user clicked link",r)},onUserSentInput:r=>{F("ShopAssistant: user sent input",r)}});this.cdn="https://widget.molin.ai",this.widgetId="",this.showClose=!1,this.xUserData=qe()?.userData,this.xCustomInstructions=qe()?.customInstructions}get config(){return l(this,zr)||l(this,vi).data}render(){return this.config?h`
892
+ `}};w(di,"properties",{orderDetails:{type:Object,attribute:"order-details"},streaming:{type:Boolean},linksNewTab:{type:Boolean,attribute:"links-new-tab"}});customElements.get("mw-product-order-status-card")||customElements.define("mw-product-order-status-card",di);var He,ke,Xs,Hr,Js=class{constructor(e=window.localStorage){d(this,ke);d(this,He);m(this,He,e)}setex(e,r,n){return l(this,He).setItem(e,g(this,ke,Hr).call(this,{value:g(this,ke,Hr).call(this,r),expiresAt:Date.now()+n*1e3})||"")}set(e,r){return l(this,He).setItem(e,g(this,ke,Hr).call(this,{value:g(this,ke,Hr).call(this,r)})||"")}get(e){let r=l(this,He).getItem(e);if(!r)return;let n=g(this,ke,Xs).call(this,r);if(n){if(n.expiresAt&&n.expiresAt<Date.now()){l(this,He).removeItem(e);return}return g(this,ke,Xs).call(this,n.value)}}get molin_shop_assistant_distinct_id(){return localStorage.getItem("molin_shop_assistant_distinct_id")}set molin_shop_assistant_distinct_id(e){e===null?localStorage.removeItem("molin_shop_assistant_distinct_id"):localStorage.setItem("molin_shop_assistant_distinct_id",e)}get molin_widget_open_state(){return ue.get("molin-shop-ai-widget-open")??null}set molin_widget_open_state(e){ue.set("molin-shop-ai-widget-open",e)}resetWidgetData(){ue.molin_shop_assistant_distinct_id=null,ue.molin_widget_open_state=null}};He=new WeakMap,ke=new WeakSet,Xs=function(e){if(!(typeof e!="string"||e===""))try{return JSON.parse(e)}catch{return}},Hr=function(e){if(e!==void 0)try{return JSON.stringify(e)}catch{return}};var ue=new Js;var te,Oe,gi,Nr,zt,Ks=class{constructor(){d(this,te,[]);d(this,Oe);d(this,gi,10);d(this,Nr,5e3);d(this,zt,!1)}async add(e,r){if(l(this,te).push({event:e,properties:Object.assign({},r,Vl()),distinct_id:Ul(r.distinct_id),timestamp:new Date().toISOString()}),l(this,te).length>=l(this,gi))return this.flush();l(this,Oe)||m(this,Oe,setTimeout(()=>{this.flush().catch(console.error)},l(this,Nr)))}async flush(){if(l(this,zt)||l(this,te).length===0)return;let e=[...l(this,te)];try{m(this,zt,!0),clearTimeout(l(this,Oe)),m(this,Oe,void 0),m(this,te,[]);let r=new AbortController,n=setTimeout(()=>r.abort(),5e3),i=new FormData;i.append("events",JSON.stringify(e));let s=await fetch(new URL("/widgets/data/collect",Ys()).href,{method:"POST",body:i,signal:r.signal});if(clearTimeout(n),!s.ok)throw new Error(`HTTP error! status: ${s.status}`);return s}catch(r){if(r.name==="AbortError")console.error("Request timed out, retrying events"),m(this,te,[...e,...l(this,te)]);else{console.error("Failed to send events to backend:",r);let n=e.filter(i=>i.event.includes("error"));m(this,te,[...n,...l(this,te)])}}finally{m(this,zt,!1),l(this,te).length>0&&!l(this,Oe)&&m(this,Oe,setTimeout(()=>{this.flush().catch(console.error)},l(this,Nr)))}}async flushBeforeUnload(){if(l(this,te).length>0)try{let e=new FormData;e.append("events",JSON.stringify(l(this,te))),navigator.sendBeacon(new URL("/widgets/data/collect",Ys()).href,e)}catch(e){console.error("Failed to send final events:",e)}}};te=new WeakMap,Oe=new WeakMap,gi=new WeakMap,Nr=new WeakMap,zt=new WeakMap;var Pl=new Ks;window.addEventListener("beforeunload",()=>{Pl.flushBeforeUnload().catch(console.error)});async function F(t,e){try{if(e.immediate){let r=new FormData;r.append("events",JSON.stringify([{event:t,properties:Object.assign({},e,Vl()),distinct_id:Ul(e.distinct_id),timestamp:new Date().toISOString()}]));let n=await fetch(new URL("/widgets/data/collect",Ys()).href,{method:"POST",body:r});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return await n.json()}return Pl.add(t,e)}catch(r){console.error("Failed to send event:",r)}}function Ul(t=crypto.randomUUID()){try{let e=ue.molin_shop_assistant_distinct_id;return e||(e=t,ue.molin_shop_assistant_distinct_id=e),e}catch(e){console.error("Failed to handle distinct ID:",e);try{ue.molin_shop_assistant_distinct_id=t}catch(r){console.error("Failed to store new distinct ID:",r)}return t}}function Vl(){return{referrer:document.referrer,userAgent:navigator.userAgent,language:navigator.language,screenWidth:window.innerWidth,screenHeight:window.innerHeight,timestamp:new Date().toISOString(),timezoneOffset:new Date().getTimezoneOffset(),doNotTrack:navigator.doNotTrack}}var mi;function Ys(){if(mi)return mi;let t=new URL(import.meta.url).hostname;return mi=new Map([["localhost","http://localhost:8787"],["widget.molin.foo","https://molin.foo"],["widget.molin.ai","https://molin.ai"],["molin.foo","https://molin.foo"]]).get(t)||"https://molin.ai",mi}var ht,Br,Ne,dt,vi,Hl,yi=class{constructor(e,r,n){d(this,vi);d(this,ht);d(this,Br);d(this,Ne);d(this,dt);w(this,"isLoading",!1);w(this,"data");m(this,ht,e),m(this,Br,r),m(this,Ne,n),e.addController(this)}fetch(){if(this.isLoading)return;l(this,dt)?.abort();let e=new AbortController;m(this,dt,e),this.isLoading=!0,this.data=void 0,l(this,ht).requestUpdate(),(async()=>{let r=g(this,vi,Hl).call(this);return r.signal?.addEventListener("abort",()=>e.abort(),{signal:e.signal}),fetch(r,{signal:e.signal})})().then(async r=>{if(!r.ok)throw new Error(`${r.statusText}: ${await r.text()}`);this.isLoading=!1,this.data=typeof l(this,Ne)?.transform=="function"?await l(this,Ne).transform(r):r,l(this,ht).requestUpdate()}).catch(r=>{l(this,Ne)?.onError?.(r),this.isLoading=!1,this.data=void 0,l(this,ht).requestUpdate()}).finally(()=>{e.abort()})}hostConnected(){this.isLoading||l(this,Ne)?.fetchWhenConnected&&this.fetch()}hostDisconnected(){l(this,dt)?.abort(),m(this,dt,void 0)}};ht=new WeakMap,Br=new WeakMap,Ne=new WeakMap,dt=new WeakMap,vi=new WeakSet,Hl=function(){let e=l(this,Br);if(typeof e=="function"&&(e=e()),!e)throw new Error("missing request");return new Request(e)};var Ce,qr,Wt,Zt,Be=class{constructor(e,r){d(this,Ce);d(this,qr);d(this,Wt);d(this,Zt);m(this,Ce,e),m(this,qr,r),e.addController(this)}get data(){return l(this,Zt)||l(this,Wt)?.data}hostConnected(){if(l(this,Wt)||l(this,Zt))return;let e=Nl();e&&e.widgetId===l(this,Ce).widgetId?m(this,Zt,e.config):m(this,Wt,new yi(l(this,Ce),()=>{if(l(this,Ce).cdn&&l(this,Ce).widgetId)return`${l(this,Ce).cdn}/config?w=${l(this,Ce).widgetId}`;throw new Error("missing cdn or widgetId")},{fetchWhenConnected:!0,transform:r=>r.json(),onError:l(this,qr)?.onError}))}};Ce=new WeakMap,qr=new WeakMap,Wt=new WeakMap,Zt=new WeakMap;function qe(){return window.molinSettings&&typeof window.molinSettings=="object"?window.molinSettings:null}var wi,Zr,bi,Le,Bl,zr,Wr=class Wr extends T(S){constructor(){super();d(this,Le);d(this,wi,new Be(this,{onError:console.error}));d(this,Zr);d(this,bi,{onError:r=>{alert(r.error),console.error(r.widgetId,r.error),F("ShopAssistant: error",{...r,immediate:!0})},onNewMessageStartedStreaming:r=>{F("ShopAssistant: user received bot message (streaming started)",r)},onMessageEndedStreaming:r=>{F("ShopAssistant: user received bot message (streaming ended)",r)},onUserCanceledStreaming:r=>{F("ShopAssistant: user canceled streaming",r)},onUserClickedLink:r=>{F("ShopAssistant: user clicked link",r)},onUserSentInput:r=>{F("ShopAssistant: user sent input",r)}});this.cdn="https://widget.molin.ai",this.widgetId="",this.showClose=!1,this.xUserData=qe()?.userData,this.xCustomInstructions=qe()?.customInstructions}get config(){return l(this,Zr)||l(this,wi).data}render(){return this.config?h`
876
893
  <!-- embed our chat component forwarding props -->
877
894
  <mw-chat
878
895
  widget="${this.widgetId}"
879
896
  .config="${this.config}"
880
- .callbacks="${l(this,wi)}"
897
+ .callbacks="${l(this,bi)}"
881
898
  .xUserData="${this.xUserData}"
882
899
  .xCustomInstructions="${this.xCustomInstructions}"
883
900
  ?show-close="${this.showClose}"
884
- @mw:close-click="${m(this,je,Nl)}">
901
+ @mw:close-click="${g(this,Le,Bl)}">
885
902
  <slot name="banner" slot="banner"></slot>
886
903
  </mw-chat>
887
- `:E}injectConfig(r){g(this,zr,r),this.requestUpdate()}reloadConfig(){l(this,je,Br)?.reloadConfig()}reset(){this.xUserData={},this.xCustomInstructions="",l(this,je,Br)?.reset(),this.requestUpdate()}get conversationId(){return l(this,je,Br)?.conversationId??""}get messages(){return l(this,je,Br)?.messages??[]}};vi=new WeakMap,zr=new WeakMap,wi=new WeakMap,je=new WeakSet,Nl=function(){this.dispatchEvent(new qr.CloseClickEvent)},Br=function(){return this.renderRoot.querySelector("mw-chat")},w(qr,"styles",Ee`
904
+ `:E}injectConfig(r){m(this,Zr,r),this.requestUpdate()}reloadConfig(){l(this,Le,zr)?.reloadConfig()}reset(){this.xUserData={},this.xCustomInstructions="",l(this,Le,zr)?.reset(),this.requestUpdate()}get conversationId(){return l(this,Le,zr)?.conversationId??""}get messages(){return l(this,Le,zr)?.messages??[]}};wi=new WeakMap,Zr=new WeakMap,bi=new WeakMap,Le=new WeakSet,Bl=function(){this.dispatchEvent(new Wr.CloseClickEvent)},zr=function(){return this.renderRoot.querySelector("mw-chat")},w(Wr,"styles",Ee`
888
905
  :host {
889
906
  all: initial; /* reset all properties that can pierce the shadow DOM */
890
907
  }
891
- `),w(qr,"properties",{cdn:{type:String},widgetId:{type:String,attribute:"widget"},showClose:{type:Boolean,attribute:"show-close"},xUserData:{type:Object,attribute:!1},xCustomInstructions:{type:String,attribute:!1}});var ht=qr;customElements.define("molin-shop-ai-chat",ht);var Ys;ht.CloseClickEvent=(Ys=class extends CustomEvent{constructor(e={}){super(ht.CloseClickEvent.type,{...e})}},w(Ys,"type","mw:close-click"),Ys);var Qs=class{constructor({hidden:e=!1}){w(this,"hidden");this.hidden=e}setUserData(e){for(let r of document.querySelectorAll("molin-shop-ai"))e?r.setAttribute("user-data",JSON.stringify(e)):r.removeAttribute("user-data");for(let r of document.querySelectorAll("molin-shop-ai-chat"))e?r.setAttribute("user-data",JSON.stringify(e)):r.removeAttribute("user-data")}setCustomInstructions(e){for(let r of document.querySelectorAll("molin-shop-ai"))e?r.setAttribute("custom-instructions",e):r.removeAttribute("custom-instructions");for(let r of document.querySelectorAll("molin-shop-ai-chat"))e?r.setAttribute("custom-instructions",e):r.removeAttribute("custom-instructions")}showLauncher(){for(let e of document.querySelectorAll("molin-shop-ai"))e instanceof ye&&e.showLauncher()}hideLauncher(){for(let e of document.querySelectorAll("molin-shop-ai"))e instanceof ye&&e.hideLauncher()}openChat(){for(let e of document.querySelectorAll("molin-shop-ai"))e instanceof ye&&e.openChat()}closeChat(){for(let e of document.querySelectorAll("molin-shop-ai"))e instanceof ye&&e.closeChat()}reset(){ue.resetWidgetData();for(let e of document.querySelectorAll("molin-shop-ai"))e instanceof ye&&e.reset();for(let e of document.querySelectorAll("molin-shop-ai-chat"))e instanceof ht&&e.reset()}};function Bl({hidden:t}){let e=new Qs({hidden:t});return window.Molin=e,e}function bi(){let t=window.Molin;if(!t)throw new Error("window.Molin global not initialized");return t}window.__INIT_MOLIN_SHOP_AI=function(e){Kc(e);let r=qe(),n=typeof r?.hidden=="boolean"?r.hidden:window.self!==window.top;if(Bl({hidden:n}),e.auto){let i=document.createElement("molin-shop-ai");i.setAttribute("cdn",e.cdn),i.setAttribute("widget",e.widgetId),document.body.appendChild(i)}};function Kc(t){window.__INIT_MOLIN_SHOP_AI_OPTIONS=t}function Hl(){return window.__INIT_MOLIN_SHOP_AI_OPTIONS}var xi,Wr=class extends T(S){constructor(){super();d(this,xi,new Be(this,{onError:console.error}));this.cdn="https://widget.molin.ai",this.widgetId="",this.state="open"}get config(){return l(this,xi).data}render(){return this.config?h`
908
+ `),w(Wr,"properties",{cdn:{type:String},widgetId:{type:String,attribute:"widget"},showClose:{type:Boolean,attribute:"show-close"},xUserData:{type:Object,attribute:!1},xCustomInstructions:{type:String,attribute:!1}});var mt=Wr;customElements.define("molin-shop-ai-chat",mt);var Qs;mt.CloseClickEvent=(Qs=class extends CustomEvent{constructor(e={}){super(mt.CloseClickEvent.type,{...e})}},w(Qs,"type","mw:close-click"),Qs);var eo=class{constructor({hidden:e=!1}){w(this,"hidden");this.hidden=e}setUserData(e){for(let r of document.querySelectorAll("molin-shop-ai"))e?r.setAttribute("user-data",JSON.stringify(e)):r.removeAttribute("user-data");for(let r of document.querySelectorAll("molin-shop-ai-chat"))e?r.setAttribute("user-data",JSON.stringify(e)):r.removeAttribute("user-data")}setCustomInstructions(e){for(let r of document.querySelectorAll("molin-shop-ai"))e?r.setAttribute("custom-instructions",e):r.removeAttribute("custom-instructions");for(let r of document.querySelectorAll("molin-shop-ai-chat"))e?r.setAttribute("custom-instructions",e):r.removeAttribute("custom-instructions")}showLauncher(){for(let e of document.querySelectorAll("molin-shop-ai"))e instanceof ye&&e.showLauncher()}hideLauncher(){for(let e of document.querySelectorAll("molin-shop-ai"))e instanceof ye&&e.hideLauncher()}openChat(){for(let e of document.querySelectorAll("molin-shop-ai"))e instanceof ye&&e.openChat()}closeChat(){for(let e of document.querySelectorAll("molin-shop-ai"))e instanceof ye&&e.closeChat()}reset(){ue.resetWidgetData();for(let e of document.querySelectorAll("molin-shop-ai"))e instanceof ye&&e.reset();for(let e of document.querySelectorAll("molin-shop-ai-chat"))e instanceof mt&&e.reset()}};function ql({hidden:t}){let e=new eo({hidden:t});return window.Molin=e,e}function xi(){let t=window.Molin;if(!t)throw new Error("window.Molin global not initialized");return t}window.__INIT_MOLIN_SHOP_AI=function(e){Qc(e);let r=qe(),n=typeof r?.hidden=="boolean"?r.hidden:window.self!==window.top;if(ql({hidden:n}),e.auto){let i=document.createElement("molin-shop-ai");i.setAttribute("cdn",e.cdn),i.setAttribute("widget",e.widgetId),document.body.appendChild(i)}};function Qc(t){window.__INIT_MOLIN_SHOP_AI_OPTIONS=t}function Nl(){return window.__INIT_MOLIN_SHOP_AI_OPTIONS}var ki,Gr=class extends T(S){constructor(){super();d(this,ki,new Be(this,{onError:console.error}));this.cdn="https://widget.molin.ai",this.widgetId="",this.state="open"}get config(){return l(this,ki).data}render(){return this.config?h`
892
909
  <!-- embed our bubble component forwarding props -->
893
910
  <!-- these props are never internally updated by mw-bubble so we pass them down only one way -->
894
- <mw-bubble state="${this.state}" src="${Pe(this.config?.bubble?.imageUrl)}"></mw-bubble>
895
- `:E}};xi=new WeakMap,w(Wr,"styles",Ee`
911
+ <mw-bubble state="${this.state}" src="${Re(this.config?.bubble?.imageUrl)}"></mw-bubble>
912
+ `:E}};ki=new WeakMap,w(Gr,"styles",Ee`
896
913
  :host {
897
914
  all: initial; /* reset all properties that can pierce the shadow DOM */
898
915
  }
899
- `),w(Wr,"properties",{cdn:{type:String},widgetId:{type:String,attribute:"widget"},state:{type:String}});customElements.define("molin-shop-ai-launcher",Wr);var Ci,Zt,Xt,dt,Gr,Zr,ki=class{constructor(e,r,n,i=window.history){d(this,Ci);d(this,Zt);d(this,Xt);d(this,dt);d(this,Gr,!1);d(this,Zr,()=>{l(this,Zt).test(window.location.pathname)&&l(this,Xt).navigated()});g(this,Ci,e),g(this,Zt,r),g(this,Xt,n),g(this,dt,i),e.addController(this)}hostConnected(){window.addEventListener("pageshow",l(this,Zr));let e=l(this,dt).pushState;l(this,dt).pushState=(...r)=>{if(e.call(l(this,dt),...r),!l(this,Gr))try{let n=new URL(r[2],window.location.origin);l(this,Zt).test(n.pathname)&&l(this,Xt).navigated()}catch{}}}hostDisconnected(){window.removeEventListener("pageshow",l(this,Zr)),g(this,Gr,!0)}};Ci=new WeakMap,Zt=new WeakMap,Xt=new WeakMap,dt=new WeakMap,Gr=new WeakMap,Zr=new WeakMap;function ql({minMs:t,maxMs:e}){return Math.random()*(e-t)+t}function eo(t,e=""){return Object.entries(t).filter(([r,n])=>n).map(([r,n])=>`${e}${r}-[${n}]`).join(" ")}function zl(t,e={}){return[eo(t),eo(e,"max-sm:")].join(" ")}function Wl(t){return eo(t)}function to(t){return Object.entries(t).filter(([e,r])=>r).filter(([e])=>e==="left"||e==="right").map(([e,r])=>{let n=`sm:${e}-[${r}]`;return e==="left"&&(n+=" sm:right-auto"),e==="right"&&(n+=" sm:left-auto"),n}).join(" ")}function Gl(t){let e=to(t),n=`sm:bottom-[${t.bottom?`calc(${t.bottom}+72px)`:"72px"}]`;return[e,n].filter(Boolean).join(" ")}var $i,Jr,no,q,mt,Ei,U,Zl,Xr,ro,Xl,Jl,Kl,Jt,ye=class extends T(S){constructor(){super();d(this,U);d(this,$i,new Be(this,{onError:console.error}));d(this,Jr);d(this,no,new ki(this,/.*/i,{navigated:()=>{let r=l(this,U,ro);F("ShopAssistant: pageview",{widgetId:this.widgetId,conversationId:r?.conversationId||"",url:document.location.href,title:document.title,hidden:this.config?this.config.hidden||!1:void 0})}}));d(this,q,!1);d(this,mt,!1);d(this,Ei,{onError:r=>{alert(r.error),console.error(r.widgetId,r.error),F("ShopAssistant: error",{...r,immediate:!0})},onNewMessageStartedStreaming:r=>{F("ShopAssistant: user received bot message (streaming started)",r)},onMessageEndedStreaming:r=>{F("ShopAssistant: user received bot message (streaming ended)",r)},onUserCanceledStreaming:r=>{F("ShopAssistant: user canceled streaming",r)},onUserClickedLink:r=>{F("ShopAssistant: user clicked link",r)},onUserSentInput:r=>{F("ShopAssistant: user sent input",r)}});this.cdn="https://widget.molin.ai",this.widgetId="",this.xUserData=qe()?.userData,this.xCustomInstructions=qe()?.customInstructions}get config(){return l(this,Jr)||l(this,$i).data}render(){if(!this.config)return E;let r=zl(this.config.bubble.position,this.config.bubble.mobilePosition),n=Wl(this.config.bubble.position),i=to(this.config.bubble.position),s=Gl(this.config.bubble.position);return this.config.hidden?E:bi().hidden?E:h`
916
+ `),w(Gr,"properties",{cdn:{type:String},widgetId:{type:String,attribute:"widget"},state:{type:String}});customElements.define("molin-shop-ai-launcher",Gr);var $i,Gt,Jt,gt,Jr,Xr,Ci=class{constructor(e,r,n,i=window.history){d(this,$i);d(this,Gt);d(this,Jt);d(this,gt);d(this,Jr,!1);d(this,Xr,()=>{l(this,Gt).test(window.location.pathname)&&l(this,Jt).navigated()});m(this,$i,e),m(this,Gt,r),m(this,Jt,n),m(this,gt,i),e.addController(this)}hostConnected(){window.addEventListener("pageshow",l(this,Xr));let e=l(this,gt).pushState;l(this,gt).pushState=(...r)=>{if(e.call(l(this,gt),...r),!l(this,Jr))try{let n=new URL(r[2],window.location.origin);l(this,Gt).test(n.pathname)&&l(this,Jt).navigated()}catch{}}}hostDisconnected(){window.removeEventListener("pageshow",l(this,Xr)),m(this,Jr,!0)}};$i=new WeakMap,Gt=new WeakMap,Jt=new WeakMap,gt=new WeakMap,Jr=new WeakMap,Xr=new WeakMap;function zl({minMs:t,maxMs:e}){return Math.random()*(e-t)+t}function to(t,e=""){return Object.entries(t).filter(([r,n])=>n).map(([r,n])=>`${e}${r}-[${n}]`).join(" ")}function Wl(t,e={}){return[to(t),to(e,"max-sm:")].join(" ")}function Zl(t){return to(t)}function ro(t){return Object.entries(t).filter(([e,r])=>r).filter(([e])=>e==="left"||e==="right").map(([e,r])=>{let n=`sm:${e}-[${r}]`;return e==="left"&&(n+=" sm:right-auto"),e==="right"&&(n+=" sm:left-auto"),n}).join(" ")}function Gl(t){let e=ro(t),n=`sm:bottom-[${t.bottom?`calc(${t.bottom}+72px)`:"72px"}]`;return[e,n].filter(Boolean).join(" ")}var Ei,Yr,io,q,yt,Si,U,Jl,Kr,no,Xl,Kl,Yl,Xt,ye=class extends T(S){constructor(){super();d(this,U);d(this,Ei,new Be(this,{onError:console.error}));d(this,Yr);d(this,io,new Ci(this,/.*/i,{navigated:()=>{let r=l(this,U,no);F("ShopAssistant: pageview",{widgetId:this.widgetId,conversationId:r?.conversationId||"",url:document.location.href,title:document.title,hidden:this.config?this.config.hidden||!1:void 0})}}));d(this,q,!1);d(this,yt,!1);d(this,Si,{onError:r=>{alert(r.error),console.error(r.widgetId,r.error),F("ShopAssistant: error",{...r,immediate:!0})},onNewMessageStartedStreaming:r=>{F("ShopAssistant: user received bot message (streaming started)",r)},onMessageEndedStreaming:r=>{F("ShopAssistant: user received bot message (streaming ended)",r)},onUserCanceledStreaming:r=>{F("ShopAssistant: user canceled streaming",r)},onUserClickedLink:r=>{F("ShopAssistant: user clicked link",r)},onUserSentInput:r=>{F("ShopAssistant: user sent input",r)}});this.cdn="https://widget.molin.ai",this.widgetId="",this.xUserData=qe()?.userData,this.xCustomInstructions=qe()?.customInstructions}get config(){return l(this,Yr)||l(this,Ei).data}render(){if(!this.config)return E;let r=Wl(this.config.bubble.position,this.config.bubble.mobilePosition),n=Zl(this.config.bubble.position),i=ro(this.config.bubble.position),s=Gl(this.config.bubble.position);return this.config.hidden?E:xi().hidden?E:h`
900
917
  <mw-bubble
901
- class="${r} ${l(this,q)?"opacity-0":"opacity-100"} fixed z-[${l(this,U,Zl)}] transition-opacity"
902
- @click="${m(this,U,Jl)}"
918
+ class="${r} ${l(this,q)?"opacity-0":"opacity-100"} fixed z-[${l(this,U,Jl)}] transition-opacity"
919
+ @click="${g(this,U,Kl)}"
903
920
  state="${l(this,q)?"close":"open"}"
904
921
  src="${this.config.bubble?.imageUrl||""}"></mw-bubble>
905
922
 
@@ -907,10 +924,10 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
907
924
  ${this.isPopupEnabled?h`
908
925
  <mw-popup
909
926
  position="${s}"
910
- delay="${this.config.popup?.delayMs||ql({minMs:2e3,maxMs:5e3})}"
927
+ delay="${this.config.popup?.delayMs||zl({minMs:2e3,maxMs:5e3})}"
911
928
  sound="https://assets.molinai.io/2024/widget-v20241209/popup.aac"
912
929
  .content="${{desktop:{text:this.config.popup?.text||"Hello there. How can we help?"},mobile:{title:this.config.popup?.mobileTitleText||`Chat with ${this.config.title}`,text:this.config.popup?.text||"Hello there. How can we help?",button:this.config.popup?.mobileButtonText||`Chat with ${this.config.title}`,color:this.config.color,poweredBy:!this.config.removePoweredBy}}}"
913
- @mw:click="${m(this,U,Xl)}"></mw-popup>
930
+ @mw:click="${g(this,U,Xl)}"></mw-popup>
914
931
  `:E}
915
932
 
916
933
  <!-- show "Try it out" if enabled (even if the chat window is showing) -->
@@ -920,22 +937,22 @@ var Ql=Object.defineProperty;var io=t=>{throw TypeError(t)};var eu=(t,e,r)=>e in
920
937
  text="${this.config.tryItOut?.text||""}"></mw-try-it-out>`:E}
921
938
 
922
939
  <!-- On first render, do not render the dialog, so it does not connect to backend. Once it's rendered once, it's never removed from the DOM. -->
923
- ${l(this,mt)?h`
940
+ ${l(this,yt)?h`
924
941
  <div
925
942
  class="${l(this,q)?"visible opacity-100 translate-y-0":"invisible opacity-0 translate-y-3"} ${i} fixed inset-0 z-[2147483647] bg-white font-sans text-[16px] leading-normal text-gray-800 shadow-2xl transition-all sm:bottom-[1.5rem] sm:top-auto sm:h-[92%] sm:max-h-[800px] sm:w-[calc(100dvh*0.50)] sm:min-w-[300px] sm:max-w-[400px] sm:rounded-[36px] 2xl:max-w-[420px]">
926
943
  <mw-chat
927
944
  widget="${this.widgetId}"
928
945
  .config="${this.config}"
929
- .callbacks="${l(this,Ei)}"
946
+ .callbacks="${l(this,Si)}"
930
947
  .xUserData="${this.xUserData}"
931
948
  .xCustomInstructions="${this.xCustomInstructions}"
932
949
  ?show-close="${!0}"
933
- @mw:close-click="${m(this,U,Kl)}">
950
+ @mw:close-click="${g(this,U,Yl)}">
934
951
  <slot name="banner" slot="banner"></slot>
935
952
  </mw-chat>
936
953
  </div>
937
954
  `:E}
938
- `}get isPopupEnabled(){return window.matchMedia("(min-width: 640px)").matches?!!this.config?.popup?.desktopEnabled:!!this.config?.popup?.mobileEnabled}updated(){l(this,q)&&l(this,U,Xr)?.hide()}firstUpdated(){window.matchMedia("(min-width: 640px)").matches&&ue.molin_widget_open_state?.isOpen&&this.openChat()}openChat(){l(this,q)||(g(this,q,!0),g(this,mt,!0),this.requestUpdate(),m(this,U,Jt).call(this,!0),l(this,U,Xr)?.hide(),F("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"programmatic-method",state:l(this,q)?"open":"close"}))}closeChat(){l(this,q)&&(g(this,q,!1),this.requestUpdate(),m(this,U,Jt).call(this,!1),l(this,U,Xr)?.hide(),F("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"programmatic-method",state:l(this,q)?"open":"close"}))}showLauncher(){let r=bi();r.hidden=!1,this.requestUpdate(),F("ShopAssistant: called show launcher",{widgetId:this.widgetId,source:"programmatic-method"})}hideLauncher(){let r=bi();r.hidden=!0,this.requestUpdate(),F("ShopAssistant: called hide launcher",{widgetId:this.widgetId,source:"programmatic-method"})}injectConfig(r){g(this,Jr,r),this.requestUpdate()}reset(){this.xUserData={},this.xCustomInstructions="",l(this,U,ro)?.reset(),this.requestUpdate()}};$i=new WeakMap,Jr=new WeakMap,no=new WeakMap,q=new WeakMap,mt=new WeakMap,Ei=new WeakMap,U=new WeakSet,Zl=function(){return typeof this.config?.bubble?.zIndex=="number"?this.config.bubble.zIndex:2147483647},Xr=function(){return this.renderRoot.querySelector("mw-popup")},ro=function(){return this.renderRoot.querySelector("mw-chat")},Xl=function(){g(this,q,!0),g(this,mt,!0),this.requestUpdate(),m(this,U,Jt).call(this,!0),F("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"popup-click",state:l(this,q)?"open":"close"})},Jl=function(){g(this,q,!l(this,q)),g(this,mt,!0),this.requestUpdate(),m(this,U,Jt).call(this,l(this,q)),l(this,U,Xr)?.hide(),F("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"bubble-toggle",state:l(this,q)?"open":"close"})},Kl=function(){g(this,q,!1),this.requestUpdate(),m(this,U,Jt).call(this,!1),F("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"top-right-close-button",state:l(this,q)?"open":"close"})},Jt=function(r){ue.molin_widget_open_state={isOpen:r}},w(ye,"styles",Ee`
955
+ `}get isPopupEnabled(){return window.matchMedia("(min-width: 640px)").matches?!!this.config?.popup?.desktopEnabled:!!this.config?.popup?.mobileEnabled}updated(){l(this,q)&&l(this,U,Kr)?.hide()}firstUpdated(){window.matchMedia("(min-width: 640px)").matches&&ue.molin_widget_open_state?.isOpen&&this.openChat()}openChat(){l(this,q)||(m(this,q,!0),m(this,yt,!0),this.requestUpdate(),g(this,U,Xt).call(this,!0),l(this,U,Kr)?.hide(),F("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"programmatic-method",state:l(this,q)?"open":"close"}))}closeChat(){l(this,q)&&(m(this,q,!1),this.requestUpdate(),g(this,U,Xt).call(this,!1),l(this,U,Kr)?.hide(),F("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"programmatic-method",state:l(this,q)?"open":"close"}))}showLauncher(){let r=xi();r.hidden=!1,this.requestUpdate(),F("ShopAssistant: called show launcher",{widgetId:this.widgetId,source:"programmatic-method"})}hideLauncher(){let r=xi();r.hidden=!0,this.requestUpdate(),F("ShopAssistant: called hide launcher",{widgetId:this.widgetId,source:"programmatic-method"})}injectConfig(r){m(this,Yr,r),this.requestUpdate()}reset(){this.xUserData={},this.xCustomInstructions="",l(this,U,no)?.reset(),this.requestUpdate()}};Ei=new WeakMap,Yr=new WeakMap,io=new WeakMap,q=new WeakMap,yt=new WeakMap,Si=new WeakMap,U=new WeakSet,Jl=function(){return typeof this.config?.bubble?.zIndex=="number"?this.config.bubble.zIndex:2147483647},Kr=function(){return this.renderRoot.querySelector("mw-popup")},no=function(){return this.renderRoot.querySelector("mw-chat")},Xl=function(){m(this,q,!0),m(this,yt,!0),this.requestUpdate(),g(this,U,Xt).call(this,!0),F("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"popup-click",state:l(this,q)?"open":"close"})},Kl=function(){m(this,q,!l(this,q)),m(this,yt,!0),this.requestUpdate(),g(this,U,Xt).call(this,l(this,q)),l(this,U,Kr)?.hide(),F("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"bubble-toggle",state:l(this,q)?"open":"close"})},Yl=function(){m(this,q,!1),this.requestUpdate(),g(this,U,Xt).call(this,!1),F("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"top-right-close-button",state:l(this,q)?"open":"close"})},Xt=function(r){ue.molin_widget_open_state={isOpen:r}},w(ye,"styles",Ee`
939
956
  :host {
940
957
  all: initial; /* reset all properties that can pierce the shadow DOM */
941
958
  }