@molin.ai/shop-ai 0.9.69 → 0.9.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/molin-shop-ai.min.js +489 -1932
- package/package.json +3 -3
|
@@ -1,147 +1,131 @@
|
|
|
1
|
-
var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDescriptor;var pl=Object.getOwnPropertyNames;var fl=Object.getPrototypeOf,ml=Object.prototype.hasOwnProperty;var ze=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var gl=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of pl(e))!ml.call(t,n)&&n!==r&&us(t,n,{get:()=>e[n],enumerable:!(i=hl(e,n))||i.enumerable});return t};var ui=(t,e,r)=>(r=t!=null?dl(fl(t)):{},gl(e||!t||!t.__esModule?us(r,"default",{value:t,enumerable:!0}):r,t));var ji=ze(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.parseCookie=Bs;ae.parse=Bs;ae.stringifyCookie=zl;ae.stringifySetCookie=pr;ae.serialize=pr;ae.parseSetCookie=Wl;ae.stringifySetCookie=pr;ae.serialize=pr;var Us=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,Rs=/^[\u0021-\u003A\u003C-\u007E]*$/,Fl=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,ql=/^[\u0020-\u003A\u003D-\u007E]*$/,Vl=/^-?\d+$/,Nl=Object.prototype.toString,Hl=(()=>{let t=function(){};return t.prototype=Object.create(null),t})();function Bs(t,e){let r=new Hl,i=t.length;if(i<2)return r;let n=e?.decode||Fs,s=0;do{let o=Ti(t,s,i);if(o===-1)break;let a=Di(t,s,i);if(o>a){s=t.lastIndexOf(";",o-1)+1;continue}let l=be(t,s,o);r[l]===void 0&&(r[l]=n(be(t,o+1,a))),s=a+1}while(s<i);return r}function zl(t,e){let r=e?.encode||encodeURIComponent,i=[];for(let n of Object.keys(t)){let s=t[n];if(s===void 0)continue;if(!Us.test(n))throw new TypeError(`cookie name is invalid: ${n}`);let o=r(s);if(!Rs.test(o))throw new TypeError(`cookie val is invalid: ${s}`);i.push(`${n}=${o}`)}return i.join("; ")}function pr(t,e,r){let i=typeof t=="object"?t:{...r,name:t,value:String(e)},s=(typeof e=="object"?e:r)?.encode||encodeURIComponent;if(!Us.test(i.name))throw new TypeError(`argument name is invalid: ${i.name}`);let o=i.value?s(i.value):"";if(!Rs.test(o))throw new TypeError(`argument val is invalid: ${i.value}`);let a=i.name+"="+o;if(i.maxAge!==void 0){if(!Number.isInteger(i.maxAge))throw new TypeError(`option maxAge is invalid: ${i.maxAge}`);a+="; Max-Age="+i.maxAge}if(i.domain){if(!Fl.test(i.domain))throw new TypeError(`option domain is invalid: ${i.domain}`);a+="; Domain="+i.domain}if(i.path){if(!ql.test(i.path))throw new TypeError(`option path is invalid: ${i.path}`);a+="; Path="+i.path}if(i.expires){if(!Gl(i.expires)||!Number.isFinite(i.expires.valueOf()))throw new TypeError(`option expires is invalid: ${i.expires}`);a+="; Expires="+i.expires.toUTCString()}if(i.httpOnly&&(a+="; HttpOnly"),i.secure&&(a+="; Secure"),i.partitioned&&(a+="; Partitioned"),i.priority)switch(typeof i.priority=="string"?i.priority.toLowerCase():void 0){case"low":a+="; Priority=Low";break;case"medium":a+="; Priority=Medium";break;case"high":a+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${i.priority}`)}if(i.sameSite)switch(typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite){case!0:case"strict":a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"none":a+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${i.sameSite}`)}return a}function Wl(t,e){let r=e?.decode||Fs,i=t.length,n=Di(t,0,i),s=Ti(t,0,n),o=s===-1?{name:"",value:r(be(t,0,n))}:{name:be(t,0,s),value:r(be(t,s+1,n))},a=n+1;for(;a<i;){let l=Di(t,a,i),c=Ti(t,a,l),d=c===-1?be(t,a,l):be(t,a,c),h=c===-1?void 0:be(t,c+1,l);switch(d.toLowerCase()){case"httponly":o.httpOnly=!0;break;case"secure":o.secure=!0;break;case"partitioned":o.partitioned=!0;break;case"domain":o.domain=h;break;case"path":o.path=h;break;case"max-age":h&&Vl.test(h)&&(o.maxAge=Number(h));break;case"expires":if(!h)break;let f=new Date(h);Number.isFinite(f.valueOf())&&(o.expires=f);break;case"priority":if(!h)break;let w=h.toLowerCase();(w==="low"||w==="medium"||w==="high")&&(o.priority=w);break;case"samesite":if(!h)break;let p=h.toLowerCase();(p==="lax"||p==="strict"||p==="none")&&(o.sameSite=p);break}a=l+1}return o}function Di(t,e,r){let i=t.indexOf(";",e);return i===-1?r:i}function Ti(t,e,r){let i=t.indexOf("=",e);return i<r?i:-1}function be(t,e,r){let i=e,n=r;do{let s=t.charCodeAt(i);if(s!==32&&s!==9)break}while(++i<n);for(;n>i;){let s=t.charCodeAt(n-1);if(s!==32&&s!==9)break;n--}return t.slice(i,n)}function Fs(t){if(t.indexOf("%")===-1)return t;try{return decodeURIComponent(t)}catch{return t}}function Gl(t){return Nl.call(t)==="[object Date]"}});var Xo=ze(Re=>{"use strict";var Wc=Re&&Re.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(d){try{c(i.next(d))}catch(h){o(h)}}function l(d){try{c(i.throw(d))}catch(h){o(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(t,e||[])).next())})},Gc=Re&&Re.__generator||function(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,n,s,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(d){return l([c,d])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(r=0)),r;)try{if(i=1,n&&(s=c[0]&2?n.return:c[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,c[1])).done)return s;switch(n=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,n=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){r.label=c[1];break}if(c[0]===6&&r.label<s[1]){r.label=s[1],s=c;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(c);break}s[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(d){c=[6,d],n=0}finally{i=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(Re,"__esModule",{value:!0});Re.base64ToBlob=Zc;function Zc(t){return Wc(this,void 0,void 0,function(){var e,r,i;return Gc(this,function(n){switch(n.label){case 0:return[4,fetch(t)];case 1:return e=n.sent(),[4,e.blob()];case 2:return r=n.sent(),i=Jc(t),i&&(r=r.slice(0,r.size,i)),[2,r]}})})}var Xc=/^data:(.+);base64,/;function Jc(t){var e;return(e=t.match(Xc))===null||e===void 0?void 0:e.slice(1,2).pop()}});var Jo=ze(Be=>{"use strict";var Yc=Be&&Be.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(d){try{c(i.next(d))}catch(h){o(h)}}function l(d){try{c(i.throw(d))}catch(h){o(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(t,e||[])).next())})},Kc=Be&&Be.__generator||function(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,n,s,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(d){return l([c,d])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(r=0)),r;)try{if(i=1,n&&(s=c[0]&2?n.return:c[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,c[1])).done)return s;switch(n=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,n=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){r.label=c[1];break}if(c[0]===6&&r.label<s[1]){r.label=s[1],s=c;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(c);break}s[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(d){c=[6,d],n=0}finally{i=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(Be,"__esModule",{value:!0});Be.base64ToFile=Qc;function Qc(t,e,r){return Yc(this,void 0,void 0,function(){var i,n;return Kc(this,function(s){switch(s.label){case 0:return[4,fetch(t)];case 1:return i=s.sent(),[4,i.blob()];case 2:return n=s.sent(),[2,new File([n],e,r)]}})})}});var gn=ze(Fe=>{"use strict";var fn=Fe&&Fe.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(d){try{c(i.next(d))}catch(h){o(h)}}function l(d){try{c(i.throw(d))}catch(h){o(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(t,e||[])).next())})},mn=Fe&&Fe.__generator||function(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,n,s,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(d){return l([c,d])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(r=0)),r;)try{if(i=1,n&&(s=c[0]&2?n.return:c[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,c[1])).done)return s;switch(n=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,n=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){r.label=c[1];break}if(c[0]===6&&r.label<s[1]){r.label=s[1],s=c;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(c);break}s[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(d){c=[6,d],n=0}finally{i=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(Fe,"__esModule",{value:!0});Fe.blobToBase64=eu;function eu(t){return fn(this,void 0,void 0,function(){return mn(this,function(e){return[2,typeof FileReader=="function"?tu(t):iu(t)]})})}var nt;(function(t){t.error="error",t.loadend="loadend"})(nt||(nt={}));function tu(t){return fn(this,void 0,void 0,function(){return mn(this,function(e){return[2,new Promise(function(r,i){try{var n=new FileReader,s=function(){r(n.result),n.removeEventListener(nt.loadend,s)};n.addEventListener(nt.loadend,s);var o=function(){i(n.error),n.removeEventListener(nt.error,o)};n.addEventListener(nt.error,o),n.readAsDataURL(t)}catch(a){i(a)}})]})})}var ru="application/octet-stream";function iu(t){return fn(this,void 0,void 0,function(){var e,r,i,n;return mn(this,function(s){switch(s.label){case 0:return i=(r=Buffer).from,[4,t.text()];case 1:return e=i.apply(r,[s.sent()]),n=t.type||ru,[2,"data:".concat(n,";base64,").concat(e.toString("base64"))]}})})}});var Yo=ze(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.fileToBase64=void 0;var nu=gn();Object.defineProperty(Or,"fileToBase64",{enumerable:!0,get:function(){return nu.blobToBase64}})});var Ko=ze(ce=>{"use strict";var su=ce&&ce.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Pr=ce&&ce.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&su(e,t,r)};Object.defineProperty(ce,"__esModule",{value:!0});Pr(Xo(),ce);Pr(Jo(),ce);Pr(gn(),ce);Pr(Yo(),ce)});var Jt=globalThis,Yt=Jt.ShadowRoot&&(Jt.ShadyCSS===void 0||Jt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,di=Symbol(),ds=new WeakMap,yt=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==di)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(Yt&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=ds.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&ds.set(r,e))}return e}toString(){return this.cssText}},hs=t=>new yt(typeof t=="string"?t:t+"",void 0,di),j=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((i,n,s)=>i+(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.")})(n)+t[s+1],t[0]);return new yt(r,t,di)},ps=(t,e)=>{if(Yt)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=Jt.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}},hi=Yt?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return hs(r)})(t):t;var{is:wl,defineProperty:yl,getOwnPropertyDescriptor:vl,getOwnPropertyNames:bl,getOwnPropertySymbols:xl,getPrototypeOf:kl}=Object,Kt=globalThis,fs=Kt.trustedTypes,Cl=fs?fs.emptyScript:"",_l=Kt.reactiveElementPolyfillSupport,vt=(t,e)=>t,pi={toAttribute(t,e){switch(e){case Boolean:t=t?Cl: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}},gs=(t,e)=>!wl(t,e),ms={attribute:!0,type:String,converter:pi,reflect:!1,useDefault:!1,hasChanged:gs};Symbol.metadata??=Symbol("metadata"),Kt.litPropertyMetadata??=new WeakMap;var pe=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=ms){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,r);n!==void 0&&yl(this.prototype,e,n)}}static getPropertyDescriptor(e,r,i){let{get:n,set:s}=vl(this.prototype,e)??{get(){return this[r]},set(o){this[r]=o}};return{get:n,set(o){let a=n?.call(this);s?.call(this,o),this.requestUpdate(e,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ms}static _$Ei(){if(this.hasOwnProperty(vt("elementProperties")))return;let e=kl(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(vt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(vt("properties"))){let r=this.properties,i=[...bl(r),...xl(r)];for(let n of i)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[i,n]of r)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[r,i]of this.elementProperties){let n=this._$Eu(r,i);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)r.unshift(hi(n))}else e!==void 0&&r.push(hi(e));return r}static _$Eu(e,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i: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 i of r.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ps(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,i){this._$AK(e,i)}_$ET(e,r){let i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(n!==void 0&&i.reflect===!0){let s=(i.converter?.toAttribute!==void 0?i.converter:pi).toAttribute(r,i.type);this._$Em=e,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(e,r){let i=this.constructor,n=i._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let s=i.getPropertyOptions(n),o=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:pi;this._$Em=n;let a=o.fromAttribute(r,s.type);this[n]=a??this._$Ej?.get(n)??a,this._$Em=null}}requestUpdate(e,r,i,n=!1,s){if(e!==void 0){let o=this.constructor;if(n===!1&&(s=this[e]),i??=o.getPropertyOptions(e),!((i.hasChanged??gs)(s,r)||i.useDefault&&i.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(o._$Eu(e,i))))return;this.C(e,r,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:i,reflect:n,wrapped:s},o){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,o??r??this[e]),s!==!0||o!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(r=void 0),this._$AL.set(e,r)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){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[n,s]of this._$Ep)this[n]=s;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,s]of i){let{wrapped:o}=s,a=this[n];o!==!0||this._$AL.has(n)||a===void 0||this.C(n,void 0,s,a)}}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$EM()}catch(i){throw e=!1,this._$EM(),i}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)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(r=>this._$ET(r,this[r])),this._$EM()}updated(e){}firstUpdated(e){}};pe.elementStyles=[],pe.shadowRootOptions={mode:"open"},pe[vt("elementProperties")]=new Map,pe[vt("finalized")]=new Map,_l?.({ReactiveElement:pe}),(Kt.reactiveElementVersions??=[]).push("2.1.2");var mi=globalThis,ws=t=>t,Qt=mi.trustedTypes,ys=Qt?Qt.createPolicy("lit-html",{createHTML:t=>t}):void 0,gi="$lit$",fe=`lit$${Math.random().toFixed(9).slice(2)}$`,wi="?"+fe,$l=`<${wi}>`,Le=document,xt=()=>Le.createComment(""),kt=t=>t===null||typeof t!="object"&&typeof t!="function",yi=Array.isArray,_s=t=>yi(t)||typeof t?.[Symbol.iterator]=="function",fi=`[
|
|
2
|
-
\f\r]`,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),xs=/'/g,ks=/"/g,$s=/^(?:script|style|textarea|title)$/i,vi=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),u=vi(1),md=vi(2),gd=vi(3),ne=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),Cs=new WeakMap,Ie=Le.createTreeWalker(Le,129);function Ss(t,e){if(!yi(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ys!==void 0?ys.createHTML(e):e}var Es=(t,e)=>{let r=t.length-1,i=[],n,s=e===2?"<svg>":e===3?"<math>":"",o=bt;for(let a=0;a<r;a++){let l=t[a],c,d,h=-1,f=0;for(;f<l.length&&(o.lastIndex=f,d=o.exec(l),d!==null);)f=o.lastIndex,o===bt?d[1]==="!--"?o=vs:d[1]!==void 0?o=bs:d[2]!==void 0?($s.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=Ae):d[3]!==void 0&&(o=Ae):o===Ae?d[0]===">"?(o=n??bt,h=-1):d[1]===void 0?h=-2:(h=o.lastIndex-d[2].length,c=d[1],o=d[3]===void 0?Ae:d[3]==='"'?ks:xs):o===ks||o===xs?o=Ae:o===vs||o===bs?o=bt:(o=Ae,n=void 0);let w=o===Ae&&t[a+1].startsWith("/>")?" ":"";s+=o===bt?l+$l:h>=0?(i.push(c),l.slice(0,h)+gi+l.slice(h)+fe+w):l+fe+(h===-2?a:w)}return[Ss(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Ct=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let s=0,o=0,a=e.length-1,l=this.parts,[c,d]=Es(e,r);if(this.el=t.createElement(c,i),Ie.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=Ie.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(gi)){let f=d[o++],w=n.getAttribute(h).split(fe),p=/([.?@])?(.*)/.exec(f);l.push({type:1,index:s,name:p[2],strings:w,ctor:p[1]==="."?tr:p[1]==="?"?rr:p[1]==="@"?ir:Te}),n.removeAttribute(h)}else h.startsWith(fe)&&(l.push({type:6,index:s}),n.removeAttribute(h));if($s.test(n.tagName)){let h=n.textContent.split(fe),f=h.length-1;if(f>0){n.textContent=Qt?Qt.emptyScript:"";for(let w=0;w<f;w++)n.append(h[w],xt()),Ie.nextNode(),l.push({type:2,index:++s});n.append(h[f],xt())}}}else if(n.nodeType===8)if(n.data===wi)l.push({type:2,index:s});else{let h=-1;for(;(h=n.data.indexOf(fe,h+1))!==-1;)l.push({type:7,index:s}),h+=fe.length-1}s++}}static createElement(e,r){let i=Le.createElement("template");return i.innerHTML=e,i}};function De(t,e,r=t,i){if(e===ne)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,s=kt(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=De(t,n._$AS(t,e.values),n,i)),e}var er=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:i}=this._$AD,n=(e?.creationScope??Le).importNode(r,!0);Ie.currentNode=n;let s=Ie.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new We(s,s.nextSibling,this,e):l.type===1?c=new l.ctor(s,l.name,l.strings,this,e):l.type===6&&(c=new nr(s,this,e)),this._$AV.push(c),l=i[++a]}o!==l?.index&&(s=Ie.nextNode(),o++)}return Ie.currentNode=Le,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},We=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=P,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.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=De(this,e,r),kt(e)?e===P||e==null||e===""?(this._$AH!==P&&this._$AR(),this._$AH=P):e!==this._$AH&&e!==ne&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):_s(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!==P&&kt(this._$AH)?this._$AA.nextSibling.data=e:this.T(Le.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Ct.createElement(Ss(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new er(n,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(e){let r=Cs.get(e.strings);return r===void 0&&Cs.set(e.strings,r=new Ct(e)),r}k(e){yi(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of e)n===r.length?r.push(i=new t(this.O(xt()),this.O(xt()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=ws(e).nextSibling;ws(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Te=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,s){this.type=1,this._$AH=P,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=P}_$AI(e,r=this,i,n){let s=this.strings,o=!1;if(s===void 0)e=De(this,e,r,0),o=!kt(e)||e!==this._$AH&&e!==ne,o&&(this._$AH=e);else{let a=e,l,c;for(e=s[0],l=0;l<s.length-1;l++)c=De(this,a[i+l],r,l),c===ne&&(c=this._$AH[l]),o||=!kt(c)||c!==this._$AH[l],c===P?e=P:e!==P&&(e+=(c??"")+s[l+1]),this._$AH[l]=c}o&&!n&&this.j(e)}j(e){e===P?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},tr=class extends Te{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===P?void 0:e}},rr=class extends Te{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==P)}},ir=class extends Te{constructor(e,r,i,n,s){super(e,r,i,n,s),this.type=5}_$AI(e,r=this){if((e=De(this,e,r,0)??P)===ne)return;let i=this._$AH,n=e===P&&i!==P||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==P&&(i===P||n);n&&this.element.removeEventListener(this.name,this,i),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)}},nr=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){De(this,e)}},Ms={M:gi,P:fe,A:wi,C:1,L:Es,R:er,D:_s,V:De,I:We,H:Te,N:rr,U:ir,B:tr,F:nr},Sl=mi.litHtmlPolyfillSupport;Sl?.(Ct,We),(mi.litHtmlVersions??=[]).push("3.3.2");var As=(t,e,r)=>{let i=r?.renderBefore??e,n=i._$litPart$;if(n===void 0){let s=r?.renderBefore??null;i._$litPart$=n=new We(e.insertBefore(xt(),s),s,void 0,r??{})}return n._$AI(t),n};var bi=globalThis,v=class extends pe{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=As(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ne}};v._$litElement$=!0,v.finalized=!0,bi.litElementHydrateSupport?.({LitElement:v});var El=bi.litElementPolyfillSupport;El?.({LitElement:v});(bi.litElementVersions??=[]).push("4.2.2");var sr=class t extends HTMLElement{static observedAttributes=["name"];constructor(){super(),this.attachShadow({mode:"open"})}attributeChangedCallback(e,r,i){r!==i&&t.observedAttributes.includes(e)&&(e==="name"&&(this.name=i||""),this.render())}resolveIcon(e){throw new Error("Not implemented")}render(){let e=document.createElement("style");for(e.textContent=`
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
-
<path d="
|
|
34
|
-
</svg
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
<
|
|
38
|
-
|
|
39
|
-
<path d="
|
|
40
|
-
</svg
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
<path d="
|
|
44
|
-
<path d="
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
<
|
|
48
|
-
|
|
49
|
-
<
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
<
|
|
54
|
-
|
|
55
|
-
<path d="
|
|
56
|
-
|
|
57
|
-
<path d="
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
<
|
|
62
|
-
|
|
63
|
-
<path d="
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
<
|
|
68
|
-
<path d="
|
|
69
|
-
|
|
70
|
-
<path d="
|
|
71
|
-
</svg
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
<path d="
|
|
75
|
-
</svg
|
|
76
|
-
|
|
77
|
-
<
|
|
78
|
-
<path
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
<
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
<path d="
|
|
86
|
-
|
|
87
|
-
<
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
<path d="
|
|
92
|
-
|
|
93
|
-
<path d="
|
|
94
|
-
</svg
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
<path d="M9
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
<
|
|
102
|
-
|
|
103
|
-
<path d="
|
|
104
|
-
</svg
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
<path d="
|
|
108
|
-
|
|
109
|
-
<path d="
|
|
110
|
-
</svg
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
<path d="
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
</svg>`,"exclamation-triangle":`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
129
|
-
<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"/>
|
|
130
|
-
</svg>`,"arrow-down":`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
131
|
-
<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"/>
|
|
132
|
-
</svg>`,"bars-3":`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
133
|
-
<path d="M3.75 6.75H20.25M3.75 12H20.25M3.75 17.25H20.25" stroke="#0F172A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
134
|
-
</svg>`,phone:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
135
|
-
<path d="M2.25 6.75C2.25 15.0343 8.96573 21.75 17.25 21.75H19.5C20.7426 21.75 21.75 20.7426 21.75 19.5V18.1284C21.75 17.6121 21.3987 17.1622 20.8979 17.037L16.4747 15.9312C16.0355 15.8214 15.5734 15.9855 15.3018 16.3476L14.3316 17.6412C14.05 18.0166 13.563 18.1827 13.1223 18.0212C9.81539 16.8098 7.19015 14.1846 5.97876 10.8777C5.81734 10.437 5.98336 9.94998 6.3588 9.6684L7.65242 8.69818C8.01453 8.4266 8.17861 7.96445 8.06883 7.52533L6.96304 3.10215C6.83783 2.60133 6.38785 2.25 5.87163 2.25H4.5C3.25736 2.25 2.25 3.25736 2.25 4.5V6.75Z" stroke="#0F172A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
136
|
-
</svg>`,photo:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
137
|
-
<path d="M2.25 15.75L7.40901 10.591C8.28769 9.71231 9.71231 9.71231 10.591 10.591L15.75 15.75M14.25 14.25L15.659 12.841C16.5377 11.9623 17.9623 11.9623 18.841 12.841L21.75 15.75M3.75 19.5H20.25C21.0784 19.5 21.75 18.8284 21.75 18V6C21.75 5.17157 21.0784 4.5 20.25 4.5H3.75C2.92157 4.5 2.25 5.17157 2.25 6V18C2.25 18.8284 2.92157 19.5 3.75 19.5ZM14.25 8.25H14.2575V8.2575H14.25V8.25ZM14.625 8.25C14.625 8.45711 14.4571 8.625 14.25 8.625C14.0429 8.625 13.875 8.45711 13.875 8.25C13.875 8.04289 14.0429 7.875 14.25 7.875C14.4571 7.875 14.625 8.04289 14.625 8.25Z" stroke="#0F172A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
138
|
-
</svg>`,"eye-slash":`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
139
|
-
<path d="M3.97993 8.22257C3.05683 9.31382 2.35242 10.596 1.93436 12.0015C3.22565 16.338 7.24311 19.5 11.9991 19.5C12.9917 19.5 13.9521 19.3623 14.8623 19.1049M6.22763 6.22763C7.88389 5.13558 9.86771 4.5 12 4.5C16.756 4.5 20.7734 7.66205 22.0647 11.9985C21.3528 14.3919 19.8106 16.4277 17.772 17.772M6.22763 6.22763L3 3M6.22763 6.22763L9.87868 9.87868M17.772 17.772L21 21M17.772 17.772L14.1213 14.1213M14.1213 14.1213C14.6642 13.5784 15 12.8284 15 12C15 10.3431 13.6569 9 12 9C11.1716 9 10.4216 9.33579 9.87868 9.87868M14.1213 14.1213L9.87868 9.87868" stroke="#0F172A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
140
|
-
</svg>`,star:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
141
|
-
<path d="M11.4806 3.4987C11.6728 3.03673 12.3272 3.03673 12.5193 3.4987L14.6453 8.61016C14.7263 8.80492 14.9095 8.93799 15.1197 8.95485L20.638 9.39724C21.1367 9.43722 21.339 10.0596 20.959 10.3851L16.7546 13.9866C16.5945 14.1238 16.5245 14.3391 16.5734 14.5443L17.8579 19.9292C17.974 20.4159 17.4446 20.8005 17.0176 20.5397L12.2932 17.6541C12.1132 17.5441 11.8868 17.5441 11.7068 17.6541L6.98238 20.5397C6.55539 20.8005 6.02594 20.4159 6.14203 19.9292L7.42652 14.5443C7.47546 14.3391 7.4055 14.1238 7.24531 13.9866L3.04099 10.3851C2.661 10.0596 2.86323 9.43722 3.36197 9.39724L8.88022 8.95485C9.09048 8.93799 9.27363 8.80492 9.35464 8.61016L11.4806 3.4987Z" stroke="#0F172A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
142
|
-
</svg>`,"user-circle":`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
143
|
-
<path d="M17.9815 18.7248C16.6121 16.9175 14.4424 15.75 12 15.75C9.55761 15.75 7.38789 16.9175 6.01846 18.7248M17.9815 18.7248C19.8335 17.0763 21 14.6744 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 14.6744 4.1665 17.0763 6.01846 18.7248M17.9815 18.7248C16.3915 20.1401 14.2962 21 12 21C9.70383 21 7.60851 20.1401 6.01846 18.7248M15 9.75C15 11.4069 13.6569 12.75 12 12.75C10.3431 12.75 9 11.4069 9 9.75C9 8.09315 10.3431 6.75 12 6.75C13.6569 6.75 15 8.09315 15 9.75Z" stroke="#0F172A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
144
|
-
</svg>`};var Ml=Is,xi=class extends sr{resolveIcon(e){let r=Ml[e];if(!r)throw console.warn("hi-outline: icon not found",e),new Error(`Icon ${e} not found`);return r}render(){super.render();let e=this.shadowRoot?.querySelector("svg");if(!e)throw new Error("svgEl not found "+this.name);e.setAttribute("fill","none"),e.querySelectorAll("[stroke]").forEach(r=>{r.setAttribute("stroke","currentColor")})}};customElements.get("hi-outline")||customElements.define("hi-outline",xi);var or=class{#e;#t;#r;constructor(e,r){if(!e)throw new Error("host is required");if(!r)throw new Error("config is required");this.#e=e,this.#e.addController(this),this.#t=r}connect(e){this.#t=e,this.#r=this.#i()}hostConnected(){this.#r||setTimeout(()=>{this.#r||(this.#r=this.#i())},0)}hostDisconnected(){this.#r?.close(1e3,"lit_host_disconnected"),this.#r=void 0}send(e){this.#r?.send(e)}close(e,r){this.#r?.close(e,r)}get isConnected(){return this.#r?.readyState===WebSocket.OPEN}get isConnecting(){return this.#r?.readyState===WebSocket.CONNECTING}#i(){let e=new WebSocket(this.#t.url());return this.#t.onClose&&(e.onclose=this.#t.onClose),this.#t.onOpen&&(e.onopen=this.#t.onOpen),this.#t.onError&&(e.onerror=this.#t.onError),this.#t.onMessage&&(e.onmessage=this.#t.onMessage),e}};async function ki(t){await new Promise(e=>setTimeout(e,t))}async function Ls(t,e){let r=t?.times??3,i=t?.delay,n=t?.backoff??null,s=o=>{throw{_bailed:o}};for(let o=0;o<r;o++)try{return await e(s,o)}catch(a){if(a&&typeof a=="object"&&"_bailed"in a)throw a._bailed;if(o===r-1)throw a;i&&await ki(i),n&&await ki(n(o+1))}throw new Error("unreachable")}var Al=!0,Ci="Invariant failed";function L(t,e){if(!t){if(Al)throw new Error(Ci);var r=typeof e=="function"?e():e,i=r?"".concat(Ci,": ").concat(r):Ci;throw new Error(i)}}function _i(t,e,r){return t.slice(0,r)+e}function Il({content:t,parts:e,appendMessage:r}){let i=[...e],n=t,s=r.part??0;switch(r.content_type){case"text":{let{delta:o,position:a}=r;n=_i(n,o,a);let l=i[s]&&"text"in i[s]?i[s].text:"";i[s]={text:l?_i(l,o,a):o};break}case"html":{let{delta:o,position:a}=r,l=i[s]&&"html"in i[s]?i[s].html:"";i[s]={html:l?_i(l,o,a):o};break}case"data":{let o=i[s]&&"data"in i[s]?i[s].data:{};i[s]={tag:r.tag,data:Object.assign({},o,r.data)};break}}return{content:n,parts:i}}var ar=class{messages=Object.freeze([]);onEvent(e){switch(e.type){case"NEW_MESSAGE":{let r={...e.message,streaming:!0,parts:e.message.parts};return this.messages=Object.freeze([...this.messages.filter(i=>i.id!==r.id),r]),r}case"APPEND_MESSAGE":{let i=this.messages.find(s=>s.id===e.message.id)??(()=>{let s={id:e.message.id,timestamp:Date.now(),role:"assistant",content:"",streaming:!0,parts:[]};return this.messages=Object.freeze([...this.messages,s]),s})(),n=Il({content:i.content,parts:i.parts||[],appendMessage:e.message});return i.content=n.content,i.parts=n.parts,e.metadata&&(i.metadata=e.metadata),i}case"MESSAGE_DONE":{let r=this.messages.find(i=>i.id===e.message.id);return r?(Object.assign(r,e.message),r.streaming=!1,r):void 0}default:return}}onEvents(e){for(let r of e)this.onEvent(r)}getMessage(e){return this.messages.find(r=>r.id===e)}get lastMessage(){return this.messages.at(-1)}reset(){this.messages=Object.freeze([])}};var lr=class{#e;#t;#r=null;#i=new ar;isStreaming=!1;typingIndicator;toolCallIndicator;ranOutOfCredits=!1;get messages(){return this.#i.messages}set messages(e){this.#i.messages=e}conversationId="";#n=0;#s;isLiveMode=!1;get hasQueuedMessages(){return this.#o.length>0}constructor(e,r){this.#e=e,this.#t=r,this.#t.autoConnect!==!1&&(this.#r=this.initWS()),e.addController(this)}#o=[];#a(e,{expectStreaming:r=!1}={}){return this.ranOutOfCredits?!1:this.#r?this.#r.isConnecting?(console.warn("WebSocket is connecting, message not sent",e),!1):this.#r.isConnected?(r&&!this.isLiveMode&&(this.isStreaming=!0,this.#e.requestUpdate()),this.#r.send(JSON.stringify(e)),!0):(console.warn("WebSocket is not connected, message not sent",e),this.retry(),!1):(console.warn("WebSocket not initialized, message not sent",e),this.connect(),!1)}async enqueueMessage(e,{expectStreaming:r=!1}={}){if(this.#o.length>0){let i=this.#o[this.#o.length-1];if(e.type==="USER_INPUT"&&i.message.type==="USER_INPUT"&&e.value===i.message.value)return!0}return this.#r||this.connect(),this.#r?.isConnected?this.#a(e,{expectStreaming:r}):(this.#o.push({message:e,options:{expectStreaming:r}}),this.#e.requestUpdate(),this.#r&&!this.#r.isConnecting&&!this.#r.isConnected&&this.retry(),await Ls({times:5,delay:2e3},async()=>{if(this.#r?.isConnected){let i=[...this.#o];this.#o=[],this.#e.requestUpdate();let n=!1;for(let{message:s,options:o}of i){let a=this.#a(s,o);s===e&&(n=a)}return n}else throw new Error("WebSocket not connected yet")}).catch(()=>(console.warn("Failed to send message after retries",e),this.#o=[],this.#e.requestUpdate(),!1)))}async sendUserInput(e,{xUserData:r,xCustomInstructions:i,role:n="user",expectStreaming:s=!1}={}){return this.enqueueMessage({type:"USER_INPUT",value:e,role:n,xUserData:r,xCustomInstructions:i},{expectStreaming:s})}async enqueueUserInput(e,{xUserData:r,xCustomInstructions:i,role:n="user",expectStreaming:s=!1}={}){return this.enqueueMessage({type:"USER_INPUT",value:e,role:n,xUserData:r,xCustomInstructions:i},{expectStreaming:s})}async sendUserFeedback(e){return this.enqueueMessage({type:"USER_FEEDBACK",responses:e},{expectStreaming:!0})}sendFileDelete(e){L(e,"fileId is required"),this.enqueueMessage({type:"USER_FILE_DELETE",fileId:e}).catch(console.warn)}sendUserCancel(){this.enqueueMessage({type:"USER_CANCEL"}).catch(console.warn)}sendUserTypingStart(){this.#a({type:"USER_TYPING_START"})}sendUserTypingStop(){this.enqueueMessage({type:"USER_TYPING_STOP"}).catch(console.warn)}sendNewChat(){this.enqueueMessage({type:"NEW_CHAT"})}sendUserMeta(e){this.enqueueMessage({type:"USER_META",metadata:e}).catch(console.warn)}reloadConfig(){this.enqueueMessage({type:"RELOAD_CONFIG"}).catch(console.warn)}close(){this.#r?.close(1e3,"closed by user")}retry(){clearTimeout(this.#s),this.#s=setTimeout(()=>{this.#t.onReconnect?.(),this.#r=this.initWS()},1e3*this.#n),this.#n++}initWS(){return new or(this.#e,{url:()=>this.#t.url(this.conversationId,{}),onOpen:e=>this.#l(e),onMessage:e=>this.#d(JSON.parse(e.data)),onError:e=>this.#c(e),onClose:e=>this.#h(e)})}#l(e){this.#n=0}#d(e){switch(e.type){case"NEW_MESSAGE":{this.#i.onEvent(e),this.typingIndicator=void 0,this.toolCallIndicator=void 0,this.#t.onNewMessage?.(e.message),this.#t.persistConversationState?.(this.conversationId,this.messages),this.#e.requestUpdate();break}case"APPEND_MESSAGE":{let r=!this.#i.getMessage(e.message.id),i=this.#i.onEvent(e);i&&(this.typingIndicator=void 0,this.toolCallIndicator=void 0,r&&(this.#t.onNewMessage?.({id:i.id,timestamp:i.timestamp,role:i.role,content:i.content}),this.#t.persistConversationState?.(this.conversationId,this.messages)),this.#t.onMessageAppend?.(e),this.#e.requestUpdate());break}case"MESSAGE_DONE":{let r=this.#i.onEvent(e);if(!r)throw new Error(`Message with id ${e.message.id} not found`);this.isStreaming=!1,this.#e.requestUpdate(),this.#t.onMessageDone?.(e,r),this.#t.persistConversationState?.(this.conversationId,this.messages);break}case"MESSAGE_CANCEL":{this.isStreaming=!1,this.typingIndicator=void 0,this.#e.requestUpdate();break}case"ERROR":{this.#t.onMessageError?.(e);break}case"CONNECTED":{this.conversationId=e.conversationId,this.#i.messages=e.messages,this.#t.onConnect?.(e.conversationId,e.metadata),this.#t.persistConversationState?.(e.conversationId,e.messages),this.isLiveMode=e.metadata.isLiveMode,this.#e.requestUpdate();break}case"TYPING_START":{e.role==="assistant"&&(this.isStreaming=!0),this.toolCallIndicator=void 0,this.typingIndicator={role:e.role,metadata:e.metadata},this.#e.requestUpdate();break}case"TYPING_STOP":{this.typingIndicator=void 0,this.#e.requestUpdate();break}case"TOOL_CALL_START":{this.typingIndicator=void 0,this.toolCallIndicator=e.text,this.#e.requestUpdate();break}case"RAN_OUT_OF_CREDITS":{this.ranOutOfCredits=!0,this.#e.requestUpdate();break}case"RECONNECT":{this.reconnectSocket(),this.#e.requestUpdate();break}default:console.warn(`Unknown message type: ${JSON.stringify(e)}`)}}#c(e){console.error("onError",e),this.#t.onError?.(e)}#h(e){this.#e.isConnected&&this.#r&&!this.#r.isConnected&&e.reason==="reconnect"&&this.retry(),this.isStreaming=!1,this.typingIndicator=void 0,this.#e.requestUpdate(),this.#t.onClose?.()}hostConnected(){this.conversationId=this.#t.restoreConversationState?.()?.conversationId||"",this.#i.messages=this.#t.restoreConversationState?.()?.messages||[]}reset(){this.#t.onReset?.(),this.#i.reset(),this.isStreaming=!1,this.typingIndicator=void 0,this.ranOutOfCredits=!1,this.conversationId="",this.isLiveMode=!1,this.#o=[],this.#e.requestUpdate()}hostDisconnected(){clearTimeout(this.#s)}connect(){this.#r||(this.#r=this.initWS())}reconnectSocket(){this.#r?.close(1e3,"destroy"),this.#r=this.initWS()}get lastMsg(){if(this.messages.length>0)return this.messages[this.messages.length-1]}get isConnected(){return this.#r?.isConnected??!1}};var Ll=Symbol();var Ds=Object.getPrototypeOf,$i=new WeakMap,Dl=t=>t&&($i.has(t)?$i.get(t):Ds(t)===Object.prototype||Ds(t)===Array.prototype);var Ts=t=>Dl(t)&&t[Ll]||null,Si=(t,e=!0)=>{$i.set(t,e)};var Mi=t=>typeof t=="object"&&t!==null,Tl=t=>Mi(t)&&!Ai.has(t)&&(Array.isArray(t)||!(Symbol.iterator in t))&&!(t instanceof WeakMap)&&!(t instanceof WeakSet)&&!(t instanceof Error)&&!(t instanceof Number)&&!(t instanceof Date)&&!(t instanceof String)&&!(t instanceof RegExp)&&!(t instanceof ArrayBuffer)&&!(t instanceof Promise),Ps=(t,e)=>{let r=js.get(t);if(r?.[0]===e)return r[1];let i=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));return Si(i,!0),js.set(t,[e,i]),Reflect.ownKeys(t).forEach(n=>{if(Object.getOwnPropertyDescriptor(i,n))return;let s=Reflect.get(t,n),{enumerable:o}=Reflect.getOwnPropertyDescriptor(t,n),a={value:s,enumerable:o,configurable:!0};if(Ai.has(s))Si(s,!1);else if(je.has(s)){let[l,c]=je.get(s);a.value=Ps(l,c())}Object.defineProperty(i,n,a)}),Object.preventExtensions(i)},jl=(t,e,r,i)=>({deleteProperty(n,s){let o=Reflect.get(n,s);r(s);let a=Reflect.deleteProperty(n,s);return a&&i(cr?.("delete",s,o)),a},set(n,s,o,a){let l=!t()&&Reflect.has(n,s),c=Reflect.get(n,s,a);if(l&&(Os(c,o)||ur.has(o)&&Os(c,ur.get(o))))return!0;r(s),Mi(o)&&(o=Ts(o)||o);let d=!je.has(o)&&Pl(o)?Ii(o):o;return e(s,d),Reflect.set(n,s,d,a),i(cr?.("set",s,o,c)),!0}});var je=new WeakMap,Ai=new WeakSet,js=new WeakMap,Ei=[1],ur=new WeakMap,Os=Object.is,Ol=(t,e)=>new Proxy(t,e),Pl=Tl,Ul=Ps,Rl=jl,cr;function Ii(t={}){if(!Mi(t))throw new Error("object required");let e=ur.get(t);if(e)return e;let r=Ei[0],i=new Set,n=(b,$=++Ei[0])=>{r!==$&&(s=r=$,i.forEach(y=>y(b,$)))},s=r,o=(b=Ei[0])=>(s!==b&&(s=b,l.forEach(([$])=>{let y=$[1](b);y>r&&(r=y)})),r),a=b=>($,y)=>{let k;$&&(k=[...$],k[1]=[b,...k[1]]),n(k,y)},l=new Map,c=(b,$)=>{let y=!Ai.has($)&&je.get($);if(y){if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&l.has(b))throw new Error("prop listener already exists");if(i.size){let k=y[2](a(b));l.set(b,[y,k])}else l.set(b,[y])}},d=b=>{var $;let y=l.get(b);y&&(l.delete(b),($=y[1])==null||$.call(y))},h=b=>(i.add(b),i.size===1&&l.forEach(([y,k],E)=>{if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&k)throw new Error("remove already exists");let O=y[2](a(E));l.set(E,[y,O])}),()=>{i.delete(b),i.size===0&&l.forEach(([y,k],E)=>{k&&(k(),l.set(E,[y]))})}),f=!0,w=Rl(()=>f,c,d,n),p=Ol(t,w);ur.set(t,p);let S=[t,o,h];return je.set(p,S),Reflect.ownKeys(t).forEach(b=>{let $=Object.getOwnPropertyDescriptor(t,b);"value"in $&&$.writable&&(p[b]=t[b])}),f=!1,p}function dr(t,e,r){let i=je.get(t);(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&!i&&console.warn("Please use proxy object");let n,s=[],o=i[2],a=!1,c=o(d=>{if(d&&s.push(d),r){e(s.splice(0));return}n||(n=Promise.resolve().then(()=>{n=void 0,a&&e(s.splice(0))}))});return a=!0,()=>{a=!1,c()}}function Ge(t){let e=je.get(t);(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&!e&&console.warn("Please use proxy object");let[r,i]=e;return Ul(r,i())}var Ze=class{#e;#t;#r;#i=()=>{};constructor(e,r){this.#e=e,this.#t=r,this.#r=Ge(r),e.addController(this)}get state(){return this.#r}get value(){return this.#r}hostConnected(){this.#i(),this.#i=dr(this.#t,()=>{this.#r=Ge(this.#t),this.#e.requestUpdate()})}hostDisconnected(){this.#i()}};var ve=class{#e;#t;proxyObject;#r;#i=()=>{};constructor(e,r,i){this.#e=e,this.#t=i,this.proxyObject=Ii(r),this.#r=Ge(this.proxyObject),e.addController(this)}get state(){return this.#r}get value(){return this.#r}hostConnected(){this.#i(),this.#t?.subscribe&&(this.#i=dr(this.proxyObject,()=>{this.#r=Ge(this.proxyObject),this.#e.requestUpdate()}))}hostDisconnected(){this.#i()}};var hr=class{#e;#t;#r;#i=null;#n=null;constructor(e,{provider:r,tag:i,key:n}){this.#e=e,this.#t=i,this.#r=n,e.addController(this)}get value(){return this.#n?this.#n.value:null}hostConnected(){if(this.#n||(this.#i=Bl(this.#e,this.#t),!this.#i))return;let e=this.#i[this.#r]instanceof ve?this.#i[this.#r]:null;e&&(this.#n=new Ze(this.#e,e.proxyObject))}hostDisconnected(){}};function Bl(t,e){let r=t;for(;r;){let i=r.closest(e);if(i)return i;let n=r.getRootNode();if(n instanceof ShadowRoot)r=n.host;else break}return null}function Li(t,e){if(e<=0)return"";if(t=t??"",t.length>e){let r=e-1;return r>0&&t.charCodeAt(r-1)>=55296&&t.charCodeAt(r-1)<=56319&&r--,t.slice(0,r)+"\u2026"}return t}var _t=ui(ji(),1);var fr=class{#e;constructor({document:e}){this.#e=e}getCookies(){return(0,_t.parseCookie)(this.#e.cookie)||{}}getCookie(e){return this.getCookies()[e]||null}setCookie(e,r,i){if(L(typeof e=="string",`cookie name must be a string, got: ${typeof e}`),L(e,"cookie name must not be empty"),r==null){this.#e.cookie=(0,_t.stringifySetCookie)(e,"",{expires:new Date(0)});return}L(typeof r=="string",`value of cookie \`${e}\` must be a string, got: ${typeof r}`),this.#e.cookie=(0,_t.stringifySetCookie)(e,r,i)}deleteCookie(e){this.setCookie(e,null)}deleteCookies(e){let r=this.getCookies();for(let i in r)e(i)&&this.deleteCookie(i)}};var mr=class{#e;constructor({localStorage:e}){this.#e=e}getItem(e){try{let r=this.#e.getItem(e);return r?JSON.parse(r):null}catch{return null}}setItem(e,r){if(r==null){this.#e.removeItem(e);return}try{let i=JSON.stringify(r);this.#e.setItem(e,i)}catch(i){console.error(`Failed to store ${e} in localStorage:`,i)}}removeItem(e){this.#e.removeItem(e)}removeItems(e){let r=[];for(let i=0;i<this.#e.length;i++){let n=this.#e.key(i);n&&e(n)&&r.push(n)}for(let i of r)this.#e.removeItem(i)}};var $t=ui(ji(),1);function Oi({window:t}){let e=t.location.hostname,r=t.document;if(e==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(e)||/^\[.*\]$/.test(e))return;let i=e.split(".");if(i.length<2)return;let n="__molin_domain_test__";for(let s=2;s<=i.length;s++){let o=`.${i.slice(-s).join(".")}`;try{if(r.cookie=(0,$t.stringifySetCookie)(n,"1",{domain:o,path:"/"}),(0,$t.parseCookie)(r.cookie)[n]==="1")return r.cookie=(0,$t.stringifySetCookie)(n,"",{domain:o,path:"/",expires:new Date(0)}),o}catch{continue}}return`.${i.slice(-2).join(".")}`}var Pi=class{#e;#t;#r;#i;constructor({window:e}){this.#e=e,this.#t=new fr({document:e.document}),this.#r=new mr({localStorage:e.localStorage}),this.#i=e.localStorage}get distinctID(){return this.#t.getCookie("molin_distinct_id")||this.#i.getItem("molin_distinct_id")}set distinctID(e){if(!e){this.#t.deleteCookie("molin_distinct_id"),this.#i.removeItem("molin_distinct_id");return}L(typeof e=="string","distinct_id must be a string");try{this.#t.setCookie("molin_distinct_id",e,{path:"/",sameSite:"lax",expires:new Date(Date.now()+1e3*60*60*24*365),domain:Oi({window:this.#e})})}catch(r){console.warn("Could not write distinct_id to cookie:",r)}try{this.#i.setItem("molin_distinct_id",e)}catch(r){console.warn("Could not write distinct_id to localStorage:",r)}}get widgetState(){return this.#r.getItem("molin_widget")}set widgetState(e){this.#r.setItem("molin_widget",e)}get popupState(){return this.#r.getItem("molin_popup")}set popupState(e){this.#r.setItem("molin_popup",e)}get disclaimerDismissed(){return this.#r.getItem("molin_disclaimer_dismissed")??!1}set disclaimerDismissed(e){this.#r.setItem("molin_disclaimer_dismissed",e)}getConversationId(e){L(typeof e=="string","widgetId must be a string"),L(e,"widgetId must not be empty");let r=`molin_${e}_conversation_id`;return this.#t.getCookie(r)||this.#i.getItem(r)}setConversationId(e,r){L(typeof e=="string","widgetId must be a string"),L(e,"widgetId must not be empty");let i=`molin_${e}_conversation_id`;if(!r){this.#t.deleteCookie(i),this.#i.removeItem(i);return}L(typeof r=="string",`conversation ID for widget ${e} must be a string`);try{this.#t.setCookie(i,r,{path:"/",sameSite:"lax",expires:new Date(Date.now()+1e3*60*60*24*365),domain:Oi({window:this.#e})})}catch(n){console.warn(`Could not write ${i} to cookie:`,n)}try{this.#i.setItem(i,r)}catch(n){console.warn(`Could not write ${i} to localStorage:`,n)}}getConversationState(e){L(typeof e=="string","widgetId must be a string"),L(e,"widgetId must not be empty");let r=`molin_${e}_conversation`;return this.#r.getItem(r)}setConversationState(e,r){L(typeof e=="string","widgetId must be a string"),L(e,"widgetId must not be empty");let i=`molin_${e}_conversation`;this.#r.setItem(i,r)}resetAll(){this.distinctID=null,this.widgetState=null,this.popupState=null,this.disclaimerDismissed=!1,this.#r.removeItems(e=>e.startsWith("_molin_")),this.#t.deleteCookies(e=>e.startsWith("_molin_"))}},R=new Pi({window});var qs=()=>{if(window.Shopify)try{return{customerId:Zl()}}catch{return null}return null},Zl=()=>{try{let t=[()=>window.ShopifyAnalytics?.meta?.page?.customerId,()=>window.meta?.page?.customerId,()=>window._st?.cid,()=>window.ShopifyAnalytics?.lib?.user()?.traits()?.uniqToken];for(let e of t)try{let r=e();if(/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i.test(r))continue;if(r)return r}catch{}}catch{return null}return null},Vs=async()=>{try{return(await(await fetch(window.Shopify.routes.root+"cart.js")).json()).items.map(i=>({id:i.id,name:i.title,quantity:i.quantity,price:i.price,variantId:i.variant_id,sku:i.sku,url:i.url,description:i.product_description,image:i.featured_image?.url}))}catch{return[]}};function Ns(t,e="http"){return t.startsWith("http://")||t.startsWith("https://")?t:`${e}://${t}`}function Xe(t){let e="[-a-z\\d%_.~!$&'()*+,;=:@]",r="[-a-z\\d%_.~!$&'()*+,;=:@/?]";return new RegExp(`^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/${e}*)*(\\?${r}*)?(\\#${r}*)?$`,"i").test(t)}function Hs(t,e){let r=t instanceof URL?t:new URL(t);if(e)for(let[i,n]of e)r.searchParams.set(i,n);return r}var zs=()=>{if(window.ShopRenter)try{let t=Jl();return{customerEmail:t?.customerEmail,customerId:t?.customerId,customerName:t?.customerName}}catch{return null}return null},Jl=()=>{try{if(window.ShopRenter){let t=window.ShopRenter.customer;return{customerEmail:t?.email,customerId:t?.userId,customerName:[t?.name?.firstName,t?.name?.lastName].filter(Boolean).join(" ")}}return{customerEmail:null,customerId:null,customerName:null}}catch{return{customerEmail:null,customerId:null,customerName:null}}},Ws=async()=>{try{let t=window.ShopRenter.shop?.domain;if(!t)return[];let e=Ns(t,"https")+"/cart.json";return(await(await fetch(e)).json()).items.map(s=>({id:s.id,name:s.name,quantity:s.quantity,price:s.price,sku:s.sku,image:s.image,url:s.href}))}catch{return[]}};var Gs=()=>{if(window.UNAS)try{let t=window.UNAS.customer;return{customerEmail:t?.email,customerId:t?.id}}catch(t){return console.error("Error fetching customer information:",t),null}return null},Zs=async()=>new Promise((t,e)=>{try{window.UNAS.getCart(r=>{let n=r.items.map(s=>({id:s.id,name:s.name,quantity:s.quantity,price:s.price,sku:s.sku}));t(n)})}catch(r){console.error("Error fetching cart information:",r),e(r)}});var Ui;function Js(t){return{lang:t?.lang??Ui?.lang,message:t?.message,abortEarly:t?.abortEarly??Ui?.abortEarly,abortPipeEarly:t?.abortPipeEarly??Ui?.abortPipeEarly}}var Ql;function ec(t){return Ql?.get(t)}var tc;function rc(t){return tc?.get(t)}var ic;function nc(t,e){return ic?.get(t)?.get(e)}function Ys(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 G(t,e,r,i,n){let s=n&&"input"in n?n.input:r.value,o=n?.expected??t.expects??null,a=n?.received??Ys(s),l={kind:t.kind,type:t.type,input:s,expected:o,received:a,message:`Invalid ${e}: ${o?`Expected ${o} but r`:"R"}eceived ${a}`,requirement:t.requirement,path:n?.path,issues:n?.issues,lang:i.lang,abortEarly:i.abortEarly,abortPipeEarly:i.abortPipeEarly},c=t.kind==="schema",d=n?.message??t.message??nc(t.reference,l.lang)??(c?rc(l.lang):null)??i.message??ec(l.lang);d!==void 0&&(l.message=typeof d=="function"?d(l):d),c&&(r.typed=!1),r.issues?r.issues.push(l):r.issues=[l]}function Z(t){return{version:1,vendor:"valibot",validate(e){return t["~run"]({value:e},Js())}}}function sc(t,e){return Object.hasOwn(t,e)&&e!=="__proto__"&&e!=="prototype"&&e!=="constructor"}function Ks(t,e){let r=[...new Set(t)];return r.length>1?`(${r.join(` ${e} `)})`:r[0]??"never"}var oc=/^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])[T ](?:0\d|1\d|2[0-3])(?::[0-5]\d){2}(?:\.\d{1,9})?(?:Z|[+-](?:0\d|1\d|2[0-3])(?::?[0-5]\d)?)$/u;function Ri(t){return{kind:"validation",type:"iso_timestamp",reference:Ri,async:!1,expects:null,requirement:oc,message:t,"~run"(e,r){return e.typed&&!this.requirement.test(e.value)&&G(this,"timestamp",e,r),e}}}function Bi(t,e){return{kind:"validation",type:"max_length",reference:Bi,async:!1,expects:`<=${t}`,requirement:t,message:e,"~run"(r,i){return r.typed&&r.value.length>this.requirement&&G(this,"length",r,i,{received:`${r.value.length}`}),r}}}function Fi(t,e){return{kind:"validation",type:"min_length",reference:Fi,async:!1,expects:`>=${t}`,requirement:t,message:e,"~run"(r,i){return r.typed&&r.value.length<this.requirement&&G(this,"length",r,i,{received:`${r.value.length}`}),r}}}function qi(t){return{kind:"transformation",type:"to_date",reference:qi,async:!1,message:t,"~run"(e,r){try{e.value=new Date(e.value),isNaN(e.value)&&(G(this,"date",e,r,{received:'"Invalid Date"'}),e.typed=!1)}catch{G(this,"date",e,r),e.typed=!1}return e}}}function Vi(t){return{kind:"transformation",type:"transform",reference:Vi,async:!1,operation:t,"~run"(e){return e.value=this.operation(e.value),e}}}function Qs(t,e,r){return typeof t.fallback=="function"?t.fallback(e,r):t.fallback}function K(t,e){return{...t,fallback:e,get"~standard"(){return Z(this)},"~run"(r,i){let n=t["~run"](r,i);return n.issues?{typed:!0,value:Qs(this,n,i)}:n}}}function Ni(t,e,r){return typeof t.default=="function"?t.default(e,r):t.default}function St(){return{kind:"schema",type:"any",reference:St,expects:"any",async:!1,get"~standard"(){return Z(this)},"~run"(t){return t.typed=!0,t}}}function Je(t,e){return{kind:"schema",type:"array",reference:Je,expects:"Array",async:!1,item:t,message:e,get"~standard"(){return Z(this)},"~run"(r,i){let n=r.value;if(Array.isArray(n)){r.typed=!0,r.value=[];for(let s=0;s<n.length;s++){let o=n[s],a=this.item["~run"]({value:o},i);if(a.issues){let l={type:"array",origin:"value",input:n,key:s,value:o};for(let c of a.issues)c.path?c.path.unshift(l):c.path=[l],r.issues?.push(c);if(r.issues||(r.issues=a.issues),i.abortEarly){r.typed=!1;break}}a.typed||(r.typed=!1),r.value.push(a.value)}}else G(this,"type",r,i);return r}}}function Hi(t){return{kind:"schema",type:"boolean",reference:Hi,expects:"boolean",async:!1,message:t,get"~standard"(){return Z(this)},"~run"(e,r){return typeof e.value=="boolean"?e.typed=!0:G(this,"type",e,r),e}}}function zi(t){return{kind:"schema",type:"null",reference:zi,expects:"null",async:!1,message:t,get"~standard"(){return Z(this)},"~run"(e,r){return e.value===null?e.typed=!0:G(this,"type",e,r),e}}}function gr(t,e){return{kind:"schema",type:"nullish",reference:gr,expects:`(${t.expects} | null | undefined)`,async:!1,wrapped:t,default:e,get"~standard"(){return Z(this)},"~run"(r,i){return(r.value===null||r.value===void 0)&&(this.default!==void 0&&(r.value=Ni(this,r,i)),r.value===null||r.value===void 0)?(r.typed=!0,r):this.wrapped["~run"](r,i)}}}function wr(t){return{kind:"schema",type:"number",reference:wr,expects:"number",async:!1,message:t,get"~standard"(){return Z(this)},"~run"(e,r){return typeof e.value=="number"&&!isNaN(e.value)?e.typed=!0:G(this,"type",e,r),e}}}function V(t,e){return{kind:"schema",type:"object",reference:V,expects:"Object",async:!1,entries:t,message:e,get"~standard"(){return Z(this)},"~run"(r,i){let n=r.value;if(n&&typeof n=="object"){r.typed=!0,r.value={};for(let s in this.entries){let o=this.entries[s];if(s in n||(o.type==="exact_optional"||o.type==="optional"||o.type==="nullish")&&o.default!==void 0){let a=s in n?n[s]:Ni(o),l=o["~run"]({value:a},i);if(l.issues){let c={type:"object",origin:"value",input:n,key:s,value:a};for(let d of l.issues)d.path?d.path.unshift(c):d.path=[c],r.issues?.push(d);if(r.issues||(r.issues=l.issues),i.abortEarly){r.typed=!1;break}}l.typed||(r.typed=!1),r.value[s]=l.value}else if(o.fallback!==void 0)r.value[s]=Qs(o);else if(o.type!=="exact_optional"&&o.type!=="optional"&&o.type!=="nullish"&&(G(this,"key",r,i,{input:void 0,expected:`"${s}"`,path:[{type:"object",origin:"key",input:n,key:s,value:n[s]}]}),i.abortEarly))break}}else G(this,"type",r,i);return r}}}function A(t,e){return{kind:"schema",type:"optional",reference:A,expects:`(${t.expects} | undefined)`,async:!1,wrapped:t,default:e,get"~standard"(){return Z(this)},"~run"(r,i){return r.value===void 0&&(this.default!==void 0&&(r.value=Ni(this,r,i)),r.value===void 0)?(r.typed=!0,r):this.wrapped["~run"](r,i)}}}function Et(t,e){return{kind:"schema",type:"picklist",reference:Et,expects:Ks(t.map(Ys),"|"),async:!1,options:t,message:e,get"~standard"(){return Z(this)},"~run"(r,i){return this.options.includes(r.value)?r.typed=!0:G(this,"type",r,i),r}}}function Mt(t,e,r){return{kind:"schema",type:"record",reference:Mt,expects:"Object",async:!1,key:t,value:e,message:r,get"~standard"(){return Z(this)},"~run"(i,n){let s=i.value;if(s&&typeof s=="object"){i.typed=!0,i.value={};for(let o in s)if(sc(s,o)){let a=s[o],l=this.key["~run"]({value:o},n);if(l.issues){let d={type:"object",origin:"key",input:s,key:o,value:a};for(let h of l.issues)h.path=[d],i.issues?.push(h);if(i.issues||(i.issues=l.issues),n.abortEarly){i.typed=!1;break}}let c=this.value["~run"]({value:a},n);if(c.issues){let d={type:"object",origin:"value",input:s,key:o,value:a};for(let h of c.issues)h.path?h.path.unshift(d):h.path=[d],i.issues?.push(h);if(i.issues||(i.issues=c.issues),n.abortEarly){i.typed=!1;break}}(!l.typed||!c.typed)&&(i.typed=!1),l.typed&&(i.value[l.value]=c.value)}}else G(this,"type",i,n);return i}}}function _(t){return{kind:"schema",type:"string",reference:_,expects:"string",async:!1,message:t,get"~standard"(){return Z(this)},"~run"(e,r){return typeof e.value=="string"?e.typed=!0:G(this,"type",e,r),e}}}function Xs(t){let e;if(t)for(let r of t)e?e.push(...r.issues):e=r.issues;return e}function yr(t,e){return{kind:"schema",type:"union",reference:yr,expects:Ks(t.map(r=>r.expects),"|"),async:!1,options:t,message:e,get"~standard"(){return Z(this)},"~run"(r,i){let n,s,o;for(let a of this.options){let l=a["~run"]({value:r.value},i);if(l.typed)if(l.issues)s?s.push(l):s=[l];else{n=l;break}else o?o.push(l):o=[l]}if(n)return n;if(s){if(s.length===1)return s[0];G(this,"type",r,i,{issues:Xs(s)}),r.typed=!0}else{if(o?.length===1)return o[0];G(this,"type",r,i,{issues:Xs(o)})}return r}}}function eo(t,e){let r={};for(let i in t.entries)r[i]=!e||e.includes(i)?A(t.entries[i]):t.entries[i];return{...t,entries:r,get"~standard"(){return Z(this)}}}function Ye(...t){return{...t[0],pipe:t,get"~standard"(){return Z(this)},"~run"(e,r){for(let i of t)if(i.kind!=="metadata"){if(e.issues&&(i.kind==="schema"||i.kind==="transformation")){e.typed=!1;break}(!e.issues||!r.abortEarly&&!r.abortPipeEarly)&&(e=i["~run"](e,r))}return e}}}function me(t,e,r){let i=t["~run"]({value:e},Js(r));return{typed:i.typed,success:!i.issues,output:i.value,issues:i.issues}}var to=Mt(_(),yr([_(),wr(),Hi(),zi()])),ro=Ye(_(),Fi(1),Bi(5e3)),io=()=>{try{return window.UNAS?Gs():window.Shopify?qs():window.ShopRenter?zs():null}catch{return null}},no=async()=>{try{return window.UNAS?await Zs():window.Shopify?await Vs():window.ShopRenter?await Ws():[]}catch{return[]}},Ke={schema:V({conversationId:A(_()),messages:A(Je(V({id:_(),timestamp:wr(),role:Et(["user","assistant","support"]),content:_(),parts:A(Je(yr([V({text:_()}),V({html:_()}),V({tag:_(),data:Mt(_(),St())})])))})))}),persist(t,e,r){R.setConversationState(t,{conversationId:e,messages:r}),R.setConversationId(t,e)},restore(t){try{let e=R.getConversationState(t),r=e?me(this.schema,e):void 0;return r?.success&&r.output.conversationId?{conversationId:r.output.conversationId,messages:r.output.messages||[]}:{conversationId:R.getConversationId(t)||"",messages:[]}}catch(e){return console.error("Failed to restore conversation state:",e),{conversationId:"",messages:[]}}},reset(t){R.setConversationState(t,null),R.setConversationId(t,null)}};var Qe=class t extends v{static properties={widgetId:{type:String},config:{type:Object},callbacks:{type:Object},xUserData:{type:Object},xCustomInstructions:{type:Object},autoConnect:{type:Boolean}};contextCtrl;constructor(){super(),this.widgetId="",this.config={},this.callbacks={},this.xUserData=void 0,this.xCustomInstructions=void 0,this.autoConnect=!1,this.contextCtrl=new ve(this,{config:this.config,callbacks:this.callbacks,xUserData:this.xUserData,xCustomInstructions:this.xCustomInstructions,widgetId:this.widgetId,conversationId:"",messages:[],isStreaming:!1,typingIndicator:void 0,toolCallIndicator:void 0,ranOutOfCredits:!1,isLiveMode:!1,lastMsg:void 0,hasQueuedMessages:!1,isConnected:()=>this.#n.isConnected,sendUserInput:this.sendUserInput.bind(this),sendUserCancel:this.sendUserCancel.bind(this),sendUserTypingStart:this.sendUserTypingStart.bind(this),sendUserTypingStop:this.sendUserTypingStop.bind(this),sendNewChat:this.sendNewChat.bind(this),reset:this.reset.bind(this),reloadConfig:this.reloadConfig.bind(this),enqueueUserInput:this.enqueueUserInput.bind(this),sendUserFeedback:this.sendUserFeedback.bind(this),connect:this.connect.bind(this),sendFileDelete:this.#n.sendFileDelete.bind(this.#n)})}connectedCallback(){super.connectedCallback(),this.updated()}updated(){this.autoConnect&&this.#n.connect(),Object.assign(this.contextCtrl.proxyObject,{widgetId:this.widgetId,config:this.config,callbacks:this.callbacks,xUserData:this.#t,xCustomInstructions:this.#r,conversationId:this.#n.conversationId,messages:this.#e,isStreaming:this.#n.isStreaming,typingIndicator:this.#n.typingIndicator,toolCallIndicator:this.#n.toolCallIndicator,ranOutOfCredits:this.#n.ranOutOfCredits,isLiveMode:this.#n.isLiveMode,lastMsg:this.#n.lastMsg,hasQueuedMessages:this.#n.hasQueuedMessages,sendUserInput:this.sendUserInput.bind(this),sendUserCancel:this.sendUserCancel.bind(this),sendUserTypingStart:this.sendUserTypingStart.bind(this),sendUserTypingStop:this.sendUserTypingStop.bind(this),reset:this.reset.bind(this),reloadConfig:this.reloadConfig.bind(this),enqueueUserInput:this.enqueueUserInput.bind(this),sendUserFeedback:this.sendUserFeedback.bind(this),connect:this.connect.bind(this),sendFileDelete:this.#n.sendFileDelete.bind(this.#n)}),this.#s()}get#e(){return this.#n?.ranOutOfCredits?[{id:crypto.randomUUID(),role:"assistant",content:"Sorry, I've run out of credits. Please contact the shop directly.",timestamp:Date.now()}]:this.#n?.messages||[]}#t;#r;#i=null;get#n(){return this.#i||(this.#i=new lr(this,{autoConnect:this.autoConnect,url:e=>{let r=new URL(this.config.wsApiUrl);return r.searchParams.set("widgetId",this.widgetId),r.searchParams.set("conversationId",e),r.searchParams.set("pageUrl",window.location.href),r},onReconnect:()=>{},onError:e=>{console.error("ws error",e)},onClose:()=>{},onNewMessage:e=>{e.role==="assistant"&&this.callbacks.onNewMessageStartedStreaming?.({widgetId:this.widgetId,message:e,conversationId:this.#n.conversationId})},onMessageAppend:e=>{},onMessageDone:(e,r)=>{r.role==="assistant"&&this.callbacks.onMessageEndedStreaming?.({widgetId:this.widgetId,text:r.content??"",message:r,conversationId:this.#n.conversationId})},onMessageError:e=>{console.error("ws message error",e),e.message&&this.callbacks.onError?.({widgetId:this.widgetId,error:"WS: "+e.message})},onReset:()=>{Ke.reset(this.widgetId)},onConnect:(e,r)=>{let i=io();this.#n.sendUserMeta({xUserData:this.xUserData,xCustomInstructions:this.xCustomInstructions,customerInformation:i,language:window.navigator.language,cart:[]}),no().then(n=>{n?.length>0&&this.#n.sendUserMeta({xUserData:this.xUserData,xCustomInstructions:this.xCustomInstructions,customerInformation:i,cart:n,language:window.navigator.language})}).catch(n=>{console.error(n)}),this.dispatchEvent(new t.ConnectedEvent({conversationId:e,metadata:r,widgetId:this.widgetId,pendingImages:r?.pendingImages||[]}))},persistConversationState:(e,r)=>{Ke.persist(this.widgetId,e,r)},restoreConversationState:()=>Ke.restore(this.widgetId)})),this.#i}#s(){function e(i){if(!i)return;let n;try{n=typeof i=="object"?i:JSON.parse(i)}catch(o){console.error("Molin: user-data is not valid JSON",o);return}if(!n||typeof n!="object"||Object.keys(n).length===0)return;let s=me(to,n);if(!s.success){console.error("Molin: user-data does not pass schema validation",s.issues);return}return s.output}function r(i){if(!i)return;let n=me(ro,i);if(!n.success){console.error("Molin: custom-instructions does not pass schema validation",n.issues);return}return n.output}this.#t=e(this.xUserData),this.#r=r(this.xCustomInstructions)}async sendUserInput(e,r={}){let i={xUserData:this.xUserData,xCustomInstructions:this.xCustomInstructions,...r},n=await this.#n.sendUserInput(e,i);return n&&this.callbacks.onUserSentInput?.({widgetId:this.widgetId,text:e,example:!1,conversationId:this.#n.conversationId}),n}async enqueueUserInput(e,r={}){e.length>1e3&&(console.error("Message exceeds max length of 1000 characters, trimming"),e=Li(e,1e3)),this.#e.some(o=>o.role==="assistant"&&o.parts?.some(a=>"tag"in a&&a.tag==="request-input-v1"&&"data"in a&&a.data.type==="new-conversation-button"))&&(this.sendNewChat(),this.reset());let s={xUserData:this.xUserData,xCustomInstructions:this.xCustomInstructions,role:"user",expectStreaming:!0,...r};return this.#n.enqueueUserInput(e,s)}async sendUserFeedback(e){return this.#n.sendUserFeedback(e)}sendUserCancel(){this.#n.sendUserCancel(),this.callbacks.onUserCanceledStreaming?.({widgetId:this.widgetId})}sendUserTypingStart(){this.#n.sendUserTypingStart()}sendUserTypingStop(){this.#n.sendUserTypingStop()}sendNewChat(){this.#n.sendNewChat()}reset(){this.#n.reset()}reloadConfig(){this.#n.reloadConfig()}connect(){this.#n.connect()}render(){return u`<slot></slot>`}};function so(t){let e=new hr(t,{provider:Qe,tag:"mw-context-widget",key:"contextCtrl"});return new Proxy({value:null},{get(r,i){if(i==="value")return e.value}})}Qe.ConnectedEvent=class extends CustomEvent{static type="mw-context-widget:connected";constructor(e,r={}){super(Qe.ConnectedEvent.type,{detail:e,bubbles:!0,composed:!0,...r})}};customElements.get("mw-context-widget")||customElements.define("mw-context-widget",Qe);function tn(t){return[...t.v,(t.i?"!":"")+t.n].join(":")}function ac(t,e=","){return t.map(tn).join(e)}var po=typeof CSS<"u"&&CSS.escape||(t=>t.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function vr(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 kr(t,e="@media "){return e+D(t).map(r=>(typeof r=="string"&&(r={min:r}),r.raw||Object.keys(r).map(i=>`(${i}-width:${r[i]})`).join(" and "))).join(",")}function D(t=[]){return Array.isArray(t)?t:t==null?[]:[t]}function oo(t){return t}function Cr(){}var F={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function fo(t){return t.match(/[-=:;]/g)?.length||0}function Ji(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(fo(t),15)<<18}var lc=["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 rn({n:t,i:e,v:r=[]},i,n,s){t&&(t=tn({n:t,i:e,v:r})),s=[...D(s)];for(let a of r){let l=i.theme("screens",a);for(let c of D(l&&kr(l)||i.v(a))){var o;s.push(c),n|=l?67108864|Ji(c):a=="dark"?1073741824:c[0]=="@"?Ji(c):(o=c,1<<~(/:([a-z-]+)/.test(o)&&~lc.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:t,p:n,r:s,i:e}}var mo=new Map;function Yi(t){if(t.d){let e=[],r=Wi(t.r.reduce((i,n)=>n[0]=="@"?(e.push(n),i):n?Wi(i,s=>Wi(n,o=>{let a=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(a){let l=s.indexOf(a[1]);return~l?s.slice(0,l)+a[0]+s.slice(l+a[1].length):Gi(s,o)}return Gi(o,s)})):i,"&"),i=>Gi(i,t.n?"."+po(t.n):""));return r&&e.push(r.replace(/:merge\((.+?)\)/g,"$1")),e.reduceRight((i,n)=>n+"{"+i+"}",t.d)}}function Wi(t,e){return t.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(r,i,n)=>e(i)+n)}function Gi(t,e){return t.replace(/&/g,e)}var ao=new Intl.Collator("en",{numeric:!0});function go(t,e){for(var r=0,i=t.length;r<i;){let n=i+r>>1;0>=wo(t[n],e)?r=n+1:i=n}return i}function wo(t,e){let r=t.p&F.o;return r==(e.p&F.o)&&(r==F.b||r==F.o)?0:t.p-e.p||t.o-e.o||ao.compare(lo(t.n),lo(e.n))||ao.compare(co(t.n),co(e.n))}function lo(t){return(t||"").split(/:/).pop().split("/").pop()||"\0"}function co(t){return(t||"").replace(/\W/g,e=>String.fromCharCode(127+e.charCodeAt(0)))+"\0"}function Zi(t,e){return Math.round(parseInt(t,16)*e)}function te(t,e={}){if(typeof t=="function")return t(e);let{opacityValue:r="1",opacityVariable:i}=e,n=i?`var(${i})`:r;if(t.includes("<alpha-value>"))return t.replace("<alpha-value>",n);if(t[0]=="#"&&(t.length==4||t.length==7)){let s=(t.length-1)/3,o=[17,1,.062272][s-1];return`rgba(${[Zi(t.substr(1,s),o),Zi(t.substr(1+s,s),o),Zi(t.substr(1+2*s,s),o),n]})`}return n=="1"?t:n=="0"?"#0000":t.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${n})`)}function yo(t,e,r,i,n=[]){return(function s(o,{n:a,p:l,r:c=[],i:d},h){let f=[],w="",p=0,S=0;for(let y in o||{}){var b,$;let k=o[y];if(y[0]=="@"){if(!k)continue;if(y[1]=="a"){f.push(...sn(a,l,xr(""+k),h,l,c,d,!0));continue}if(y[1]=="l"){for(let E of D(k))f.push(...s(E,{n:a,p:(b=F[y[7]],l&~F.o|b),r:y[7]=="d"?[]:c,i:d},h));continue}if(y[1]=="i"){f.push(...D(k).map(E=>({p:-1,o:0,r:[],d:y+" "+E})));continue}if(y[1]=="k"){f.push({p:F.d,o:0,r:[y],d:s(k,{p:F.d},h).map(Yi).join("")});continue}if(y[1]=="f"){f.push(...D(k).map(E=>({p:F.d,o:0,r:[y],d:s(E,{p:F.d},h).map(Yi).join("")})));continue}}if(typeof k!="object"||Array.isArray(k))y=="label"&&k?a=k+vr(JSON.stringify([l,d,o])):(k||k===0)&&(y=y.replace(/[A-Z]/g,E=>"-"+E.toLowerCase()),S+=1,p=Math.max(p,($=y)[0]=="-"?0:fo($)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test($)?+!!RegExp.$1||-!!RegExp.$2:0)+1),w+=(w?";":"")+D(k).map(E=>h.s(y,nn(""+E,h.theme)+(d?" !important":""))).join(";"));else if(y[0]=="@"||y.includes("&")){let E=l;y[0]=="@"&&(y=y.replace(/\bscreen\(([^)]+)\)/g,(O,B)=>{let H=h.theme("screens",B);return H?(E|=67108864,kr(H,"")):O}),E|=Ji(y)),f.push(...s(k,{n:a,p:E,r:[...c,y],i:d},h))}else f.push(...s(k,{p:l,r:[...c,y]},h))}return f.unshift({n:a,p:l,o:Math.max(0,15-S)+1.5*Math.min(p||15,15),r:c,d:w}),f.sort(wo)})(t,rn(e,r,i,n),r)}function nn(t,e){return t.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(r,i,n,s,o="")=>{let a=e(n,o);return typeof a=="function"&&/color|fill|stroke/i.test(n)?te(a):""+D(a).filter(l=>Object(l)!==l)})}function vo(t,e){let r,i=[];for(let n of t)n.d&&n.n?r?.p==n.p&&""+r.r==""+n.r?(r.c=[r.c,n.c].filter(Boolean).join(" "),r.d=r.d+";"+n.d):i.push(r={...n,n:n.n&&e}):i.push({...n,n:n.n&&e});return i}function br(t,e,r=F.u,i,n){let s=[];for(let o of t)for(let a of(function(l,c,d,h,f){l={...l,i:l.i||f};let w=(function(p,S){let b=mo.get(p.n);return b?b(p,S):S.r(p.n,p.v[0]=="dark")})(l,c);return w?typeof w=="string"?({r:h,p:d}=rn(l,c,d,h),vo(br(xr(w),c,d,h,l.i),l.n)):Array.isArray(w)?w.map(p=>{var S,b;return{o:0,...p,r:[...D(h),...D(p.r)],p:(S=d,b=p.p??d,S&~F.o|b)}}):yo(w,l,c,d,h):[{c:tn(l),p:0,o:0,r:[]}]})(o,e,r,i,n))s.splice(go(s,a),0,a);return s}function sn(t,e,r,i,n,s,o,a){return vo((a?r.flatMap(l=>br([l],i,n,s,o)):br(r,i,n,s,o)).map(l=>l.p&F.o&&(l.n||e==F.b)?{...l,p:l.p&~F.o|e,o:0}:l),t)}function cc(t,e,r,i){var n;return n=(s,o)=>{let{n:a,p:l,r:c,i:d}=rn(s,o,e);return r&&sn(a,e,r,o,l,c,d,i)},mo.set(t,n),t}function Xi(t,e,r){if(t[t.length-1]!="("){let i=[],n=!1,s=!1,o="";for(let a of t)if(!(a=="("||/[~@]$/.test(a))){if(a[0]=="!"&&(a=a.slice(1),n=!n),a.endsWith(":")){i[a=="dark:"?"unshift":"push"](a.slice(0,-1));continue}a[0]=="-"&&(a=a.slice(1),s=!s),a.endsWith("-")&&(a=a.slice(0,-1)),a&&a!="&"&&(o+=(o&&"-")+a)}o&&(s&&(o="-"+o),e[0].push({n:o,v:i.filter(uc),i:n}))}}function uc(t,e,r){return r.indexOf(t)==e}var uo=new Map;function xr(t){let e=uo.get(t);if(!e){let r=[],i=[[]],n=0,s=0,o=null,a=0,l=(c,d=0)=>{n!=a&&(r.push(t.slice(n,a+d)),c&&Xi(r,i)),n=a+1};for(;a<t.length;a++){let c=t[a];if(s)t[a-1]!="\\"&&(s+=+(c=="[")||-(c=="]"));else if(c=="[")s+=1;else if(o)t[a-1]!="\\"&&o.test(t.slice(a))&&(o=null,n=a+RegExp.lastMatch.length);else if(c=="/"&&t[a-1]!="\\"&&(t[a+1]=="*"||t[a+1]=="/"))o=t[a+1]=="*"?/^\*\//:/^[\r\n]/;else if(c=="(")l(),r.push(c);else if(c==":")t[a+1]!=":"&&l(!1,1);else if(/[\s,)]/.test(c)){l(!0);let d=r.lastIndexOf("(");if(c==")"){let h=r[d-1];if(/[~@]$/.test(h)){let f=i.shift();r.length=d,Xi([...r,"#"],i);let{v:w}=i[0].pop();for(let p of f)p.v.splice(+(p.v[0]=="dark")-+(w[0]=="dark"),w.length);Xi([...r,cc(h.length>1?h.slice(0,-1)+vr(JSON.stringify([h,f])):h+"("+ac(f)+")",F.a,f,/@$/.test(h))],i)}d=r.lastIndexOf("(",d-1)}r.length=d+1}else/[~@]/.test(c)&&t[a+1]=="("&&i.unshift([])}l(!0),uo.set(t,e=i[0])}return e}function m(t,e,r){return[t,Ki(e,r)]}function Ki(t,e){return typeof t=="function"?t:typeof t=="string"&&/^[\w-]+$/.test(t)?(r,i)=>({[t]:e?e(r,i):Qi(r,1)}):r=>t||{[r[1]]:Qi(r,2)}}function Qi(t,e,r=t.slice(e).find(Boolean)||t.$$||t.input){return t.input[0]=="-"?`calc(${r} * -1)`:r}function g(t,e,r,i){return[t,on(e,r,i)]}function on(t,e,r){let i=typeof e=="string"?(n,s)=>({[e]:r?r(n,s):n._}):e||(({1:n,_:s},o,a)=>({[n||a]:s}));return(n,s)=>{let o=bo(t||n[1]),a=s.theme(o,n.$$)??le(n.$$,o,s);if(a!=null)return n._=Qi(n,0,a),i(n,s,o)}}function q(t,e={},r){return[t,dc(e,r)]}function dc(t={},e){return(r,i)=>{let{section:n=bo(r[0]).replace("-","")+"Color"}=t,[s,o]=hc(r.$$);if(!s)return;let a=i.theme(n,s)||le(s,n,i);if(!a||typeof a=="object")return;let{opacityVariable:l=`--tw-${r[0].replace(/-$/,"")}-opacity`,opacitySection:c=n.replace("Color","Opacity"),property:d=n,selector:h}=t,f=i.theme(c,o||"DEFAULT")||o&&le(o,c,i),w=e||(({_:S})=>{let b=At(d,S);return h?{[h]:b}:b});r._={value:te(a,{opacityVariable:l||void 0,opacityValue:f||void 0}),color:S=>te(a,S),opacityVariable:l||void 0,opacityValue:f||void 0};let p=w(r,i);if(!r.dark){let S=i.d(n,s,a);S&&S!==a&&(r._={value:te(S,{opacityVariable:l||void 0,opacityValue:f||"1"}),color:b=>te(S,b),opacityVariable:l||void 0,opacityValue:f||void 0},p={"&":p,[i.v("dark")]:w(r,i)})}return p}}function hc(t){return(t.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function At(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 le(t,e,r){if(t[0]=="["&&t.slice(-1)=="]"){if(t=et(nn(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 bo(t){return t.replace(/-./g,e=>e[1].toUpperCase())}function et(t){return t.includes("url(")?t.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,r="",i,n="")=>et(r)+i+et(n)):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 It({presets:t=[],...e}){let r={darkMode:void 0,darkColor:void 0,preflight:e.preflight!==!1&&[],theme:{},variants:D(e.variants),rules:D(e.rules),ignorelist:D(e.ignorelist),hash:void 0,stringify:(i,n)=>i+":"+n,finalize:[]};for(let i of D([...t,{darkMode:e.darkMode,darkColor:e.darkColor,preflight:e.preflight!==!1&&D(e.preflight),theme:e.theme,hash:e.hash,stringify:e.stringify,finalize:e.finalize}])){let{preflight:n,darkMode:s=r.darkMode,darkColor:o=r.darkColor,theme:a,variants:l,rules:c,ignorelist:d,hash:h=r.hash,stringify:f=r.stringify,finalize:w}=typeof i=="function"?i(r):i;r={preflight:r.preflight!==!1&&n!==!1&&[...r.preflight,...D(n)],darkMode:s,darkColor:o,theme:{...r.theme,...a,extend:{...r.theme.extend,...a?.extend}},variants:[...r.variants,...D(l)],rules:[...r.rules,...D(c)],ignorelist:[...r.ignorelist,...D(d)],hash:h,stringify:f,finalize:[...r.finalize,...D(w)]}}return r}function ho(t,e,r,i,n,s){for(let o of e){let a=r.get(o);a||r.set(o,a=i(o));let l=a(t,n,s);if(l)return l}}function pc(t){var e;return en(t[0],typeof(e=t[1])=="function"?e:()=>e)}function fc(t){var e,r;return Array.isArray(t)?en(t[0],Ki(t[1],t[2])):en(t,Ki(e,r))}function en(t,e){return xo(t,(r,i,n,s)=>{let o=i.exec(r);if(o)return o.$$=r.slice(o[0].length),o.dark=s,e(o,n)})}function xo(t,e){let r=D(t).map(mc);return(i,n,s)=>{for(let o of r){let a=e(i,o,n,s);if(a)return a}}}function mc(t){return typeof t=="string"?RegExp("^"+t+(t.includes("$")||t.slice(-1)=="-"?"":"$")):t}function ko(t,e){let r=It(t),i=(function({theme:l,darkMode:c,darkColor:d=Cr,variants:h,rules:f,hash:w,stringify:p,ignorelist:S,finalize:b}){let $=new Map,y=new Map,k=new Map,E=new Map,O=xo(S,(I,z)=>z.test(I));h.push(["dark",Array.isArray(c)||c=="class"?`${D(c)[1]||".dark"} &`:typeof c=="string"&&c!="media"?c:"@media (prefers-color-scheme:dark)"]);let B=typeof w=="function"?I=>w(I,vr):w?vr:oo;B!==oo&&b.push(I=>({...I,n:I.n&&B(I.n),d:I.d?.replace(/--(tw(?:-[\w-]+)?)\b/g,(z,J)=>"--"+B(J).replace("#",""))}));let H={theme:(function({extend:I={},...z}){let J={},ci={get colors(){return Se("colors")},theme:Se,negative(){return{}},breakpoints(U){let W={};for(let Y in U)typeof U[Y]=="string"&&(W["screen-"+Y]=U[Y]);return W}};return Se;function Se(U,W,Y,mt){if(U){if({1:U,2:mt}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(U)||[,U],/[.[]/.test(U)){let he=[];U.replace(/\[([^\]]+)\]|([^.[]+)/g,(Me,wt,ul=wt)=>he.push(ul)),U=he.shift(),Y=W,W=he.join("-")}let oe=J[U]||Object.assign(Object.assign(J[U]={},Xt(z,U)),Xt(I,U));if(W==null)return oe;W||(W="DEFAULT");let Ee=oe[W]??W.split("-").reduce((he,Me)=>he?.[Me],oe)??Y;return mt?te(Ee,{opacityValue:nn(mt,Se)}):Ee}let gt={};for(let oe of[...Object.keys(z),...Object.keys(I)])gt[oe]=Se(oe);return gt}function Xt(U,W){let Y=U[W];return typeof Y=="function"&&(Y=Y(ci)),Y&&/color|fill|stroke/i.test(W)?(function mt(gt,oe=[]){let Ee={};for(let he in gt){let Me=gt[he],wt=[...oe,he];Ee[wt.join("-")]=Me,he=="DEFAULT"&&(wt=oe,Ee[oe.join("-")]=Me),typeof Me=="object"&&Object.assign(Ee,mt(Me,wt))}return Ee})(Y):Y}})(l),e:po,h:B,s(I,z){return p(I,z,H)},d(I,z,J){return d(I,z,H,J)},v(I){return $.has(I)||$.set(I,ho(I,h,y,pc,H)||"&:"+I),$.get(I)},r(I,z){let J=JSON.stringify([I,z]);return k.has(J)||k.set(J,!O(I,H)&&ho(I,f,E,fc,H,z)),k.get(J)},f(I){return b.reduce((z,J)=>J(z,H),I)}};return H})(r),n=new Map,s=[],o=new Set;e.resume(l=>n.set(l,l),(l,c)=>{e.insert(l,s.length,c),s.push(c),o.add(l)});function a(l){let c=i.f(l),d=Yi(c);if(d&&!o.has(d)){o.add(d);let h=go(s,l);e.insert(d,h,l),s.splice(h,0,l)}return c.n}return Object.defineProperties(function(c){if(!n.size)for(let h of D(r.preflight))typeof h=="function"&&(h=h(i)),h&&(typeof h=="string"?sn("",F.b,xr(h),i,F.b,[],!1,!0):yo(h,{},i,F.b)).forEach(a);c=""+c;let d=n.get(c);if(!d){let h=new Set;for(let f of br(xr(c),i))h.add(f.c).add(a(f));d=[...h].filter(Boolean).join(" "),n.set(c,d).set(d,d)}return d},Object.getOwnPropertyDescriptors({get target(){return e.target},theme:i.theme,config:r,snapshot(){let l=e.snapshot(),c=new Set(o),d=new Map(n),h=[...s];return()=>{l(),o=c,n=d,s=h}},clear(){e.clear(),o=new Set,n=new Map,s=[]},destroy(){this.clear(),e.destroy()}}))}function gc(t,e){return t!=e&&""+t.split(" ").sort()!=""+e.split(" ").sort()}function Co(t){let e=new MutationObserver(r);return{observe(n){e.observe(n,{attributeFilter:["class"],subtree:!0,childList:!0}),i(n),r([{target:n,type:""}])},disconnect(){e.disconnect()}};function r(n){for(let{type:s,target:o}of n)if(s[0]=="a")i(o);else for(let a of o.querySelectorAll("[class]"))i(a);e.takeRecords()}function i(n){let s,o=n.getAttribute?.("class");o&&gc(o,s=t(o))&&n.setAttribute("class",s)}}function wc(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 _r(t){let e=t?.cssRules?t:(t&&typeof t!="string"?t:wc(t)).sheet;return{target:e,snapshot(){let r=Array.from(e.cssRules,i=>i.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,i){try{e.insertRule(r,i)}catch{e.insertRule(":root{}",i)}},resume:Cr}}var yc=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 _o(t){return yc.get(t)}function $o(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 So(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 vc=[["-webkit-",1],["-moz-",2],["-ms-",4]];function $r(){return({stringify:t})=>({stringify(e,r,i){let n="",s=_o(e);s&&(n+=t(s,r,i)+";");let o=$o(e),a=So(e,r);for(let l of vc)o&l[1]&&(n+=t(l[0]+e,r,i)+";"),a&l[1]&&(n+=t(e,l[0]+r,i)+";");return n+t(e,r,i)}})}function Sr(){return{rules:[["line-clamp-none",{"-webkit-line-clamp":"unset"}],["line-clamp-",on("lineClamp",({_:t})=>Eo(t))],["line-clamp-(\\d+)",({1:t})=>Eo(t)]]}}function Eo(t){return{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":`${t}`}}var Dt={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",...Q(4,"rem",4,.5,.5),...Q(12,"rem",4,5),14:"3.5rem",...Q(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:M("blur"),backdropBrightness:M("brightness"),backdropContrast:M("contrast"),backdropGrayscale:M("grayscale"),backdropHueRotate:M("hueRotate"),backdropInvert:M("invert"),backdropOpacity:M("opacity"),backdropSaturate:M("saturate"),backdropSepia:M("sepia"),backgroundColor:M("colors"),backgroundImage:{none:"none"},backgroundOpacity:M("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:{...Q(200,"",100,0,50),...Q(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:t})=>({DEFAULT:t("colors.gray.200","currentColor"),...t("colors")}),borderOpacity:M("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:M("spacing"),borderWidth:{DEFAULT:"1px",...re(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:M("colors"),caretColor:M("colors"),accentColor:({theme:t})=>({auto:"auto",...t("colors")}),contrast:{...Q(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:M("borderColor"),divideOpacity:M("borderOpacity"),divideWidth:M("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"),...Lt(2,6),...Lt(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:M("spacing"),gradientColorStops:M("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"),...Lt(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:t})=>({...t("spacing"),...Lt(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:{...Q(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:{...Q(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:M("spacing"),placeholderColor:M("colors"),placeholderOpacity:M("opacity"),outlineColor:M("colors"),outlineOffset:re(8,"px"),outlineWidth:re(8,"px"),ringColor:({theme:t})=>({...t("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:M("colors"),ringOffsetWidth:re(8,"px"),ringOpacity:({theme:t})=>({...t("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...re(8,"px")},rotate:{...re(2,"deg"),...re(12,"deg",3),...re(180,"deg",45)},saturate:Q(200,"",100,0,50),scale:{...Q(150,"",100,0,50),...Q(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:M("spacing"),scrollPadding:M("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...re(2,"deg"),...re(12,"deg",3)},space:M("spacing"),stroke:({theme:t})=>({...t("colors"),none:"none"}),strokeWidth:Q(2),textColor:M("colors"),textDecorationColor:M("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...re(8,"px")},textUnderlineOffset:{auto:"auto",...re(8,"px")},textIndent:M("spacing"),textOpacity:M("opacity"),transitionDuration:({theme:t})=>({...t("durations"),DEFAULT:"150ms"}),transitionDelay:M("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"),...Lt(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:{...Q(50,"",1,0,10),auto:"auto"}};function Lt(t,e){let r={};do for(var i=1;i<t;i++)r[`${i}/${t}`]=Number((i/t*100).toFixed(6))+"%";while(++t<=e);return r}function re(t,e,r=0){let i={};for(;r<=t;r=2*r||1)i[r]=r+e;return i}function Q(t,e="",r=1,i=0,n=1,s={}){for(;i<=t;i+=n)s[i]=i/r+e;return s}function M(t){return({theme:e})=>e(t)}var Mo={"*,::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, ${Dt.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, ${Dt.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 jo=[m("\\[([-\\w]+):(.+)]",({1:t,2:e},r)=>({"@layer overrides":{"&":{[t]:le(`[${e}]`,"",r)}}})),m("(group|peer)([~/][^-[]+)?",({input:t},{h:e})=>[{c:e(t)}]),g("aspect-","aspectRatio"),m("container",(t,{theme:e})=>{let{screens:r=e("screens"),center:i,padding:n}=e("container"),s={width:"100%",marginRight:i&&"auto",marginLeft:i&&"auto",...o("xs")};for(let a in r){let l=r[a];typeof l=="string"&&(s[kr(l)]={"&":{maxWidth:l,...o(a)}})}return s;function o(a){let l=n&&(typeof n=="string"?n:n[a]||n.DEFAULT);if(l)return{paddingRight:l,paddingLeft:l}}}),g("content-","content",({_:t})=>({"--tw-content":t,content:"var(--tw-content)"})),m("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),m("box-(border|content)","boxSizing",({1:t})=>t+"-box"),m("hidden",{display:"none"}),m("table-(auto|fixed)","tableLayout"),m(["(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)",m("isolate","isolation"),m("object-(contain|cover|fill|none|scale-down)","objectFit"),g("object-","objectPosition"),m("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",Er),m("overscroll(-[xy])?-(auto|contain|none)",({1:t="",2:e})=>({["overscroll-behavior"+t]:e})),m("(static|fixed|absolute|relative|sticky)","position"),g("-?inset(-[xy])?(?:$|-)","inset",({1:t,_:e})=>({top:t!="-x"&&e,right:t!="-y"&&e,bottom:t!="-x"&&e,left:t!="-y"&&e})),g("-?(top|bottom|left|right)(?:$|-)","inset"),m("(visible|collapse)","visibility"),m("invisible",{visibility:"hidden"}),g("-?z-","zIndex"),m("flex-((row|col)(-reverse)?)","flexDirection",Ao),m("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),g("(flex-(?:grow|shrink))(?:$|-)"),g("(flex)-"),g("grow(?:$|-)","flexGrow"),g("shrink(?:$|-)","flexShrink"),g("basis-","flexBasis"),g("-?(order)-"),"-?(order)-(\\d+)",g("grid-cols-","gridTemplateColumns"),m("grid-cols-(\\d+)","gridTemplateColumns",To),g("col-","gridColumn"),m("col-(span)-(\\d+)","gridColumn",Do),g("col-start-","gridColumnStart"),m("col-start-(auto|\\d+)","gridColumnStart"),g("col-end-","gridColumnEnd"),m("col-end-(auto|\\d+)","gridColumnEnd"),g("grid-rows-","gridTemplateRows"),m("grid-rows-(\\d+)","gridTemplateRows",To),g("row-","gridRow"),m("row-(span)-(\\d+)","gridRow",Do),g("row-start-","gridRowStart"),m("row-start-(auto|\\d+)","gridRowStart"),g("row-end-","gridRowEnd"),m("row-end-(auto|\\d+)","gridRowEnd"),m("grid-flow-((row|col)(-dense)?)","gridAutoFlow",t=>Er(Ao(t))),m("grid-flow-(dense)","gridAutoFlow"),g("auto-cols-","gridAutoColumns"),g("auto-rows-","gridAutoRows"),g("gap-x(?:$|-)","gap","columnGap"),g("gap-y(?:$|-)","gap","rowGap"),g("gap(?:$|-)","gap"),"(justify-(?:items|self))-",m("justify-","justifyContent",Io),m("(content|items|self)-",t=>({["align-"+t[1]]:Io(t)})),m("(place-(content|items|self))-",({1:t,$$:e})=>({[t]:("wun".includes(e[3])?"space-":"")+e})),g("p([xytrbl])?(?:$|-)","padding",tt("padding")),g("-?m([xytrbl])?(?:$|-)","margin",tt("margin")),g("-?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))`}})),m("space-(x|y)-reverse",({1:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${t}-reverse`]:"1"}})),g("w-","width"),g("min-w-","minWidth"),g("max-w-","maxWidth"),g("h-","height"),g("min-h-","minHeight"),g("max-h-","maxHeight"),g("font-","fontWeight"),g("font-","fontFamily",({_:t})=>typeof(t=D(t))[1]=="string"?{fontFamily:se(t)}:{fontFamily:se(t[0]),...t[1]}),m("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),m("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),m("italic","fontStyle"),m("not-italic",{fontStyle:"normal"}),m("(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)",...xe({"--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,/*!*/ /*!*/)"})}),g("tracking-","letterSpacing"),g("leading-","lineHeight"),m("list-(inside|outside)","listStylePosition"),g("list-","listStyleType"),m("list-","listStyleType"),g("placeholder-opacity-","placeholderOpacity",({_:t})=>({"&::placeholder":{"--tw-placeholder-opacity":t}})),q("placeholder-",{property:"color",selector:"&::placeholder"}),m("text-(left|center|right|justify|start|end)","textAlign"),m("text-(ellipsis|clip)","textOverflow"),g("text-opacity-","textOpacity","--tw-text-opacity"),q("text-",{property:"color"}),g("text-","fontSize",({_:t})=>typeof t=="string"?{fontSize:t}:{fontSize:t[0],...typeof t[1]=="string"?{lineHeight:t[1]}:t[1]}),g("indent-","textIndent"),m("(overline|underline|line-through)","textDecorationLine"),m("no-underline",{textDecorationLine:"none"}),g("underline-offset-","textUnderlineOffset"),q("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),g("decoration-","textDecorationThickness"),m("decoration-","textDecorationStyle"),m("(uppercase|lowercase|capitalize)","textTransform"),m("normal-case",{textTransform:"none"}),m("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),m("align-","verticalAlign"),m("whitespace-","whiteSpace"),m("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),m("break-words",{overflowWrap:"break-word"}),m("break-all",{wordBreak:"break-all"}),m("break-keep",{wordBreak:"keep-all"}),q("caret-",{opacityVariable:!1,opacitySection:"opacity"}),q("accent-",{opacityVariable:!1,opacitySection:"opacity"}),m("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:t})=>`linear-gradient(to ${Pe(t," ")},var(--tw-gradient-stops))`),q("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)"})),q("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)`})),q("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),m("bg-(fixed|local|scroll)","backgroundAttachment"),m("bg-origin-(border|padding|content)","backgroundOrigin",({1:t})=>t+"-box"),m(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),m("bg-blend-","backgroundBlendMode"),m("bg-clip-(border|padding|content|text)","backgroundClip",({1:t})=>t+(t=="text"?"":"-box")),g("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),q("bg-",{section:"backgroundColor"}),g("bg-","backgroundImage"),g("bg-","backgroundPosition"),m("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",Er),g("bg-","backgroundSize"),g("rounded(?:$|-)","borderRadius"),g("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-${Pe(r[0])}-radius`]:e,[`border-${Pe(r[1])}-radius`]:e}}),m("border-(collapse|separate)","borderCollapse"),g("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),m("border-(solid|dashed|dotted|double|none)","borderStyle"),g("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:t,_:e})=>({...xe({"--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)"})),q("border-([xytrbl])-",{section:"borderColor"},tt("border","Color")),q("border-"),g("border-([xytrbl])(?:$|-)","borderWidth",tt("border","Width")),g("border(?:$|-)","borderWidth"),g("divide-opacity(?:$|-)","divideOpacity",({_:t})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":t}})),m("divide-(solid|dashed|dotted|double|none)",({1:t})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:t}})),m("divide-([xy]-reverse)",({1:t})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+t]:"1"}})),g("divide-([xy])(?:$|-)","divideWidth",({1:t,_:e})=>{let r={x:"lr",y:"tb"}[t];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${t}-reverse`]:"0",[`border-${Pe(r[0])}Width`]:`calc(${e} * calc(1 - var(--tw-divide-${t}-reverse)))`,[`border-${Pe(r[1])}Width`]:`calc(${e} * var(--tw-divide-${t}-reverse))`}}}),q("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),g("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),q("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),g("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),m("ring-inset",{"--tw-ring-inset":"inset"}),q("ring-",{property:"--tw-ring-color"}),g("ring(?:$|-)","ringWidth",({_:t},{theme:e})=>({...xe({"--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":te(e("ringOffsetColor","","#fff")),"--tw-ring-color":te(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)"})),q("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-shadow-color":t.value,"--tw-shadow":"var(--tw-shadow-colored)"})),g("shadow(?:$|-)","boxShadow",({_:t})=>({...xe({"--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":se(t),"--tw-shadow-colored":se(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)"})),g("(opacity)-"),m("mix-blend-","mixBlendMode"),...Lo(),...Lo("backdrop-"),g("transition(?:$|-)","transitionProperty",(t,{theme:e})=>({transitionProperty:se(t),transitionTimingFunction:t._=="none"?void 0:se(e("transitionTimingFunction","")),transitionDuration:t._=="none"?void 0:se(e("transitionDuration",""))})),g("duration(?:$|-)","transitionDuration","transitionDuration",se),g("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",se),g("delay(?:$|-)","transitionDelay","transitionDelay",se),g("animate(?:$|-)","animation",(t,{theme:e,h:r,e:i})=>{let n=se(t),s=n.split(" "),o=e("keyframes",s[0]);return o?{["@keyframes "+(s[0]=i(r(s[0])))]:o,animation:s.join(" ")}:{animation:n}}),"(transform)-(none)",m("transform",ln),m("transform-(cpu|gpu)",({1:t})=>({"--tw-transform":Oo(t=="gpu")})),g("scale(-[xy])?-","scale",({1:t,_:e})=>({["--tw-scale"+(t||"-x")]:e,["--tw-scale"+(t||"-y")]:e,...ln()})),g("-?(rotate)-","rotate",an),g("-?(translate-[xy])-","translate",an),g("-?(skew-[xy])-","skew",an),m("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",Er),"(appearance)-",g("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",g("(cursor)-"),"(cursor)-",m("snap-(none)","scroll-snap-type"),m("snap-(x|y|both)",({1:t})=>({...xe({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":t+" var(--tw-scroll-snap-strictness)"})),m("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),m("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),m("snap-(normal|always)","scroll-snap-stop"),m("scroll-(auto|smooth)","scroll-behavior"),g("scroll-p([xytrbl])?(?:$|-)","padding",tt("scroll-padding")),g("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",tt("scroll-margin")),m("touch-(auto|none|manipulation)","touch-action"),m("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:t,2:e,3:r})=>({...xe({"--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)"})),m("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),m("outline",{outlineStyle:"solid"}),m("outline-(dashed|dotted|double)","outlineStyle"),g("-?(outline-offset)-"),q("outline-",{opacityVariable:!1,opacitySection:"opacity"}),g("outline-","outlineWidth"),"(pointer-events)-",g("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:t})=>({x:"horizontal",y:"vertical"})[t]||t||"both"],m("select-(none|text|all|auto)","userSelect"),q("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),q("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),g("stroke-","strokeWidth"),m("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),m("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function Er(t){return(typeof t=="string"?t:t[1]).replace(/-/g," ").trim()}function Ao(t){return(typeof t=="string"?t:t[1]).replace("col","column")}function Pe(t,e="-"){let r=[];for(let i of t)r.push({t:"top",r:"right",b:"bottom",l:"left"}[i]);return r.join(e)}function se(t){return t&&""+(t._||t)}function Io({$$:t}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[t[3]||""]||"")+t}function tt(t,e=""){return({1:r,_:i})=>{let n={x:"lr",y:"tb"}[r]||r+r;return n?{...At(t+"-"+Pe(n[0])+e,i),...At(t+"-"+Pe(n[1])+e,i)}:At(t+e,i)}}function Lo(t=""){let e=["blur","brightness","contrast","grayscale","hue-rotate","invert",t&&"opacity","saturate","sepia",!t&&"drop-shadow"].filter(Boolean),r={};for(let i of e)r[`--tw-${t}${i}`]="var(--tw-empty,/*!*/ /*!*/)";return r={...xe(r),[`${t}filter`]:e.map(i=>`var(--tw-${t}${i})`).join(" ")},[`(${t}filter)-(none)`,m(`${t}filter`,r),...e.map(i=>g(`${i[0]=="h"?"-?":""}(${t}${i})(?:$|-)`,i,({1:n,_:s})=>({[`--tw-${n}`]:D(s).map(o=>`${i}(${o})`).join(" "),...r})))]}function an({1:t,_:e}){return{["--tw-"+t]:e,...ln()}}function ln(){return{...xe({"--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":Oo()}),transform:"var(--tw-transform)"}}function Oo(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 Do({1:t,2:e}){return`${t} ${e} / ${t} ${e}`}function To({1:t}){return`repeat(${t},minmax(0,1fr))`}function xe(t){return{"@layer defaults":{"*,::before,::after":t,"::backdrop":t}}}var Po=[["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)||le(e,"",r)||`${e}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:t,3:e="",4:r,5:i="",6:n=e},{e:s,h:o,v:a})=>{let l=et(i)||(r[0]=="["?r:a(r.slice(1)));return`${(l.includes("&")?l:"&"+l).replace(/&/g,`:merge(.${s(o(t+n))})`)}${t[0]=="p"?"~":" "}&`}],["(ltr|rtl)",({1:t})=>`[dir="${t}"] &`],["supports-",({$$:t},e)=>{if(t&&(t=e.theme("supports",t)||le(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)||le(t,"",e)),typeof t=="string")return`@media not all and (min-width:${t})`}],["min-",({$$:t},e)=>(t&&(t=le(t,"",e)),t&&`@media (min-width:${t})`)],[/^\[(.+)]$/,({1:t})=>/[&@]/.test(t)&&et(t).replace(/[}]+$/,"").split("{")]];function Uo({colors:t,disablePreflight:e}={}){return{preflight:e?void 0:Mo,theme:{...Dt,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...t}},variants:Po,rules:jo,finalize(r){return r.n&&r.d&&r.r.some(i=>/^&::(before|after)$/.test(i))&&!/(^|;)content:/.test(r.d)?{...r,d:"content:var(--tw-content);"+r.d}:r}}}var bc={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},xc={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},kc={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},Cc={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},_c={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},$c={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},Sc={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},Ec={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},Mc={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},Ac={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},Ic={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},Lc={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},Dc={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},Tc={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},jc={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},Oc={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},Pc={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},Uc={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},Rc={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},Bc={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},Fc={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},qc={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},Ro={__proto__:null,slate:bc,gray:xc,zinc:kc,neutral:Cc,stone:_c,red:$c,orange:Sc,amber:Ec,yellow:Mc,lime:Ac,green:Ic,emerald:Lc,teal:Dc,cyan:Tc,sky:jc,blue:Oc,indigo:Pc,violet:Uc,purple:Rc,fuchsia:Bc,pink:Fc,rose:qc};function Mr({disablePreflight:t}={}){return Uo({colors:Ro,disablePreflight:t})}function Ar({className:t="prose",defaultColor:e="gray",extend:r={},colors:i={}}={}){return i={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",...i,dark:i.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",...i.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}`,(a,l)=>qo(t,o[0]=="."?"."+l.e(l.h(o.slice(1))):o,l,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 a=Fo(o.theme("fontSize",s));return a&&{"@layer components":a}}],[t+"-",({$$:s},o)=>n(s,o)],[t,(s,o)=>({...n(e,o),"@layer base":[Bo(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"}}),Bo(t,o,r)],"@layer components":{...Fo(o.theme("fontSize","base")),color:"var(--tw-prose-body)",maxWidth:"theme(max-w.prose, 65ch)"}})]]};function n(s,o){let a={},l={},c=(d,h,f)=>{let w=o.theme(`colors.${s}.${h}`,h);f["--tw-prose-"+d]=te(w);let p=f!=l&&o.d("colors",`${s}-${h}`,w);p&&(l["--tw-prose-"+d]=te(p))};for(let d in i){let h=i[d];d!="dark"&&h&&c(d,h,a)}for(let d in i.dark||{}){let h=i.dark[d];h&&(i.dark?c("invert-"+d,h,a):c(d,h,l))}return Object.keys(a).length?{"@layer defaults":{"&":a,[o.v("dark")]:l}}:void 0}}function Bo(t,e,r){let i={};for(let n in r)i[qo(t,n,e,s=>`.${e.e(e.h(t))}${s}`)]=r[n];return i}function qo(t,e,{e:r,h:i},n){return e.replace(/^[^>:]+$|(>)?((?:[^:,]+(?::[\w-]+)?)|:[\w-]+)(::[\w-]+)?/g,(s,o=" ",a=s,l="")=>n(`${o}:where(${a}):not(:where(.${r(i("not-"+t))} *))${l}`))}function Fo(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 cn=It({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:[Mr(),$r(),Sr(),Ar()]});function Ir(t,e=!0){let r=(function(){if(Vc)try{let l=_r(new CSSStyleSheet);return l.connect=c=>{let d=un(c);d.adoptedStyleSheets=[...d.adoptedStyleSheets,l.target]},l.disconnect=Cr,l}catch{}let s=document.createElement("style");s.media="not all",document.head.prepend(s);let o=[_r(s)],a=new WeakMap;return{get target(){return o[0].target},snapshot(){let l=o.map(c=>c.snapshot());return()=>l.forEach(c=>c())},clear(){o.forEach(l=>l.clear())},destroy(){o.forEach(l=>l.destroy())},insert(l,c,d){o[0].insert(l,c,d);let h=this.target.cssRules[c];o.forEach((f,w)=>w&&f.target.insertRule(h.cssText,c))},resume(l,c){return o[0].resume(l,c)},connect(l){let c=document.createElement("style");un(l).appendChild(c);let d=_r(c),{cssRules:h}=this.target;for(let f=0;f<h.length;f++)d.target.insertRule(h[f].cssText,f);o.push(d),a.set(l,d)},disconnect(l){let c=o.indexOf(a.get(l));c>=0&&o.splice(c,1)}}})(),i=ko({...t,hash:t.hash??e},r),n=Co(i);return function(o){return class extends o{connectedCallback(){super.connectedCallback?.(),r.connect(this),n.observe(un(this))}disconnectedCallback(){r.disconnect(this),super.disconnectedCallback?.()}constructor(...l){super(...l),this.tw=i}}}}var Vc=typeof ShadowRoot<"u"&&(typeof ShadyCSS>"u"||ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;function un(t){return t.shadowRoot||t.attachShadow({mode:"open"})}var x=t=>Ir(cn)(t);var dn=class extends x(v){static properties={color:{type:String},radius:{type:String},size:{type:String},border:{type:String},darkMode:{type:Boolean,attribute:"dark-mode"}};static styles=j`
|
|
1
|
+
var El=Object.create;var ps=Object.defineProperty;var Sl=Object.getOwnPropertyDescriptor;var Il=Object.getOwnPropertyNames;var Al=Object.getPrototypeOf,Tl=Object.prototype.hasOwnProperty;var Je=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Dl=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Il(e))!Tl.call(t,n)&&n!==r&&ps(t,n,{get:()=>e[n],enumerable:!(i=Sl(e,n))||i.enumerable});return t};var di=(t,e,r)=>(r=t!=null?El(Al(t)):{},Dl(e||!t||!t.__esModule?ps(r,"default",{value:t,enumerable:!0}):r,t));var zi=Je(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.parseCookie=to;le.parse=to;le.stringifyCookie=bc;le.stringifySetCookie=vr;le.serialize=vr;le.parseSetCookie=vc;le.stringifySetCookie=vr;le.serialize=vr;var Zs=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,eo=/^[\u0021-\u003A\u003C-\u007E]*$/,hc=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,fc=/^[\u0020-\u003A\u003D-\u007E]*$/,mc=/^-?\d+$/,gc=Object.prototype.toString,yc=(()=>{let t=function(){};return t.prototype=Object.create(null),t})();function to(t,e){let r=new yc,i=t.length;if(i<2)return r;let n=e?.decode||ro,s=0;do{let o=Ni(t,s,i);if(o===-1)break;let a=Bi(t,s,i);if(o>a){s=t.lastIndexOf(";",o-1)+1;continue}let l=_e(t,s,o);r[l]===void 0&&(r[l]=n(_e(t,o+1,a))),s=a+1}while(s<i);return r}function bc(t,e){let r=e?.encode||encodeURIComponent,i=[];for(let n of Object.keys(t)){let s=t[n];if(s===void 0)continue;if(!Zs.test(n))throw new TypeError(`cookie name is invalid: ${n}`);let o=r(s);if(!eo.test(o))throw new TypeError(`cookie val is invalid: ${s}`);i.push(`${n}=${o}`)}return i.join("; ")}function vr(t,e,r){let i=typeof t=="object"?t:{...r,name:t,value:String(e)},s=(typeof e=="object"?e:r)?.encode||encodeURIComponent;if(!Zs.test(i.name))throw new TypeError(`argument name is invalid: ${i.name}`);let o=i.value?s(i.value):"";if(!eo.test(o))throw new TypeError(`argument val is invalid: ${i.value}`);let a=i.name+"="+o;if(i.maxAge!==void 0){if(!Number.isInteger(i.maxAge))throw new TypeError(`option maxAge is invalid: ${i.maxAge}`);a+="; Max-Age="+i.maxAge}if(i.domain){if(!hc.test(i.domain))throw new TypeError(`option domain is invalid: ${i.domain}`);a+="; Domain="+i.domain}if(i.path){if(!fc.test(i.path))throw new TypeError(`option path is invalid: ${i.path}`);a+="; Path="+i.path}if(i.expires){if(!wc(i.expires)||!Number.isFinite(i.expires.valueOf()))throw new TypeError(`option expires is invalid: ${i.expires}`);a+="; Expires="+i.expires.toUTCString()}if(i.httpOnly&&(a+="; HttpOnly"),i.secure&&(a+="; Secure"),i.partitioned&&(a+="; Partitioned"),i.priority)switch(typeof i.priority=="string"?i.priority.toLowerCase():void 0){case"low":a+="; Priority=Low";break;case"medium":a+="; Priority=Medium";break;case"high":a+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${i.priority}`)}if(i.sameSite)switch(typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite){case!0:case"strict":a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"none":a+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${i.sameSite}`)}return a}function vc(t,e){let r=e?.decode||ro,i=t.length,n=Bi(t,0,i),s=Ni(t,0,n),o=s===-1?{name:"",value:r(_e(t,0,n))}:{name:_e(t,0,s),value:r(_e(t,s+1,n))},a=n+1;for(;a<i;){let l=Bi(t,a,i),c=Ni(t,a,l),d=c===-1?_e(t,a,l):_e(t,a,c),p=c===-1?void 0:_e(t,c+1,l);switch(d.toLowerCase()){case"httponly":o.httpOnly=!0;break;case"secure":o.secure=!0;break;case"partitioned":o.partitioned=!0;break;case"domain":o.domain=p;break;case"path":o.path=p;break;case"max-age":p&&mc.test(p)&&(o.maxAge=Number(p));break;case"expires":if(!p)break;let h=new Date(p);Number.isFinite(h.valueOf())&&(o.expires=h);break;case"priority":if(!p)break;let y=p.toLowerCase();(y==="low"||y==="medium"||y==="high")&&(o.priority=y);break;case"samesite":if(!p)break;let f=p.toLowerCase();(f==="lax"||f==="strict"||f==="none")&&(o.sameSite=f);break}a=l+1}return o}function Bi(t,e,r){let i=t.indexOf(";",e);return i===-1?r:i}function Ni(t,e,r){let i=t.indexOf("=",e);return i<r?i:-1}function _e(t,e,r){let i=e,n=r;do{let s=t.charCodeAt(i);if(s!==32&&s!==9)break}while(++i<n);for(;n>i;){let s=t.charCodeAt(n-1);if(s!==32&&s!==9)break;n--}return t.slice(i,n)}function ro(t){if(t.indexOf("%")===-1)return t;try{return decodeURIComponent(t)}catch{return t}}function wc(t){return gc.call(t)==="[object Date]"}});var ra=Je(Fe=>{"use strict";var ou=Fe&&Fe.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(d){try{c(i.next(d))}catch(p){o(p)}}function l(d){try{c(i.throw(d))}catch(p){o(p)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(t,e||[])).next())})},au=Fe&&Fe.__generator||function(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,n,s,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(d){return l([c,d])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(r=0)),r;)try{if(i=1,n&&(s=c[0]&2?n.return:c[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,c[1])).done)return s;switch(n=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,n=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){r.label=c[1];break}if(c[0]===6&&r.label<s[1]){r.label=s[1],s=c;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(c);break}s[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(d){c=[6,d],n=0}finally{i=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(Fe,"__esModule",{value:!0});Fe.base64ToBlob=lu;function lu(t){return ou(this,void 0,void 0,function(){var e,r,i;return au(this,function(n){switch(n.label){case 0:return[4,fetch(t)];case 1:return e=n.sent(),[4,e.blob()];case 2:return r=n.sent(),i=uu(t),i&&(r=r.slice(0,r.size,i)),[2,r]}})})}var cu=/^data:(.+);base64,/;function uu(t){var e;return(e=t.match(cu))===null||e===void 0?void 0:e.slice(1,2).pop()}});var ia=Je(qe=>{"use strict";var du=qe&&qe.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(d){try{c(i.next(d))}catch(p){o(p)}}function l(d){try{c(i.throw(d))}catch(p){o(p)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(t,e||[])).next())})},pu=qe&&qe.__generator||function(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,n,s,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(d){return l([c,d])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(r=0)),r;)try{if(i=1,n&&(s=c[0]&2?n.return:c[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,c[1])).done)return s;switch(n=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,n=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){r.label=c[1];break}if(c[0]===6&&r.label<s[1]){r.label=s[1],s=c;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(c);break}s[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(d){c=[6,d],n=0}finally{i=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(qe,"__esModule",{value:!0});qe.base64ToFile=hu;function hu(t,e,r){return du(this,void 0,void 0,function(){var i,n;return pu(this,function(s){switch(s.label){case 0:return[4,fetch(t)];case 1:return i=s.sent(),[4,i.blob()];case 2:return n=s.sent(),[2,new File([n],e,r)]}})})}});var yn=Je(Be=>{"use strict";var mn=Be&&Be.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(d){try{c(i.next(d))}catch(p){o(p)}}function l(d){try{c(i.throw(d))}catch(p){o(p)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(t,e||[])).next())})},gn=Be&&Be.__generator||function(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,n,s,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(d){return l([c,d])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(r=0)),r;)try{if(i=1,n&&(s=c[0]&2?n.return:c[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,c[1])).done)return s;switch(n=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,n=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){r.label=c[1];break}if(c[0]===6&&r.label<s[1]){r.label=s[1],s=c;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(c);break}s[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(d){c=[6,d],n=0}finally{i=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(Be,"__esModule",{value:!0});Be.blobToBase64=fu;function fu(t){return mn(this,void 0,void 0,function(){return gn(this,function(e){return[2,typeof FileReader=="function"?mu(t):yu(t)]})})}var lt;(function(t){t.error="error",t.loadend="loadend"})(lt||(lt={}));function mu(t){return mn(this,void 0,void 0,function(){return gn(this,function(e){return[2,new Promise(function(r,i){try{var n=new FileReader,s=function(){r(n.result),n.removeEventListener(lt.loadend,s)};n.addEventListener(lt.loadend,s);var o=function(){i(n.error),n.removeEventListener(lt.error,o)};n.addEventListener(lt.error,o),n.readAsDataURL(t)}catch(a){i(a)}})]})})}var gu="application/octet-stream";function yu(t){return mn(this,void 0,void 0,function(){var e,r,i,n;return gn(this,function(s){switch(s.label){case 0:return i=(r=Buffer).from,[4,t.text()];case 1:return e=i.apply(r,[s.sent()]),n=t.type||gu,[2,"data:".concat(n,";base64,").concat(e.toString("base64"))]}})})}});var na=Je(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.fileToBase64=void 0;var bu=yn();Object.defineProperty(Mr,"fileToBase64",{enumerable:!0,get:function(){return bu.blobToBase64}})});var sa=Je(ue=>{"use strict";var vu=ue&&ue.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Or=ue&&ue.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&vu(e,t,r)};Object.defineProperty(ue,"__esModule",{value:!0});Or(ra(),ue);Or(ia(),ue);Or(yn(),ue);Or(na(),ue)});var Qt=globalThis,Zt=Qt.ShadowRoot&&(Qt.ShadyCSS===void 0||Qt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,pi=Symbol(),hs=new WeakMap,xt=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==pi)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(Zt&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=hs.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&hs.set(r,e))}return e}toString(){return this.cssText}},fs=t=>new xt(typeof t=="string"?t:t+"",void 0,pi),O=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((i,n,s)=>i+(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.")})(n)+t[s+1],t[0]);return new xt(r,t,pi)},ms=(t,e)=>{if(Zt)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=Qt.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}},hi=Zt?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return fs(r)})(t):t;var{is:Ml,defineProperty:Ol,getOwnPropertyDescriptor:Pl,getOwnPropertyNames:Ul,getOwnPropertySymbols:Ll,getPrototypeOf:jl}=Object,er=globalThis,gs=er.trustedTypes,Rl=gs?gs.emptyScript:"",Fl=er.reactiveElementPolyfillSupport,kt=(t,e)=>t,fi={toAttribute(t,e){switch(e){case Boolean:t=t?Rl: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}},bs=(t,e)=>!Ml(t,e),ys={attribute:!0,type:String,converter:fi,reflect:!1,useDefault:!1,hasChanged:bs};Symbol.metadata??=Symbol("metadata"),er.litPropertyMetadata??=new WeakMap;var me=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=ys){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,r);n!==void 0&&Ol(this.prototype,e,n)}}static getPropertyDescriptor(e,r,i){let{get:n,set:s}=Pl(this.prototype,e)??{get(){return this[r]},set(o){this[r]=o}};return{get:n,set(o){let a=n?.call(this);s?.call(this,o),this.requestUpdate(e,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ys}static _$Ei(){if(this.hasOwnProperty(kt("elementProperties")))return;let e=jl(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(kt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(kt("properties"))){let r=this.properties,i=[...Ul(r),...Ll(r)];for(let n of i)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[i,n]of r)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[r,i]of this.elementProperties){let n=this._$Eu(r,i);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)r.unshift(hi(n))}else e!==void 0&&r.push(hi(e));return r}static _$Eu(e,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i: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 i of r.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ms(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,i){this._$AK(e,i)}_$ET(e,r){let i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(n!==void 0&&i.reflect===!0){let s=(i.converter?.toAttribute!==void 0?i.converter:fi).toAttribute(r,i.type);this._$Em=e,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(e,r){let i=this.constructor,n=i._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let s=i.getPropertyOptions(n),o=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:fi;this._$Em=n;let a=o.fromAttribute(r,s.type);this[n]=a??this._$Ej?.get(n)??a,this._$Em=null}}requestUpdate(e,r,i,n=!1,s){if(e!==void 0){let o=this.constructor;if(n===!1&&(s=this[e]),i??=o.getPropertyOptions(e),!((i.hasChanged??bs)(s,r)||i.useDefault&&i.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(o._$Eu(e,i))))return;this.C(e,r,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:i,reflect:n,wrapped:s},o){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,o??r??this[e]),s!==!0||o!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(r=void 0),this._$AL.set(e,r)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){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[n,s]of this._$Ep)this[n]=s;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,s]of i){let{wrapped:o}=s,a=this[n];o!==!0||this._$AL.has(n)||a===void 0||this.C(n,void 0,s,a)}}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$EM()}catch(i){throw e=!1,this._$EM(),i}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)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(r=>this._$ET(r,this[r])),this._$EM()}updated(e){}firstUpdated(e){}};me.elementStyles=[],me.shadowRootOptions={mode:"open"},me[kt("elementProperties")]=new Map,me[kt("finalized")]=new Map,Fl?.({ReactiveElement:me}),(er.reactiveElementVersions??=[]).push("2.1.2");var gi=globalThis,vs=t=>t,tr=gi.trustedTypes,ws=tr?tr.createPolicy("lit-html",{createHTML:t=>t}):void 0,yi="$lit$",ge=`lit$${Math.random().toFixed(9).slice(2)}$`,bi="?"+ge,ql=`<${bi}>`,Pe=document,Ct=()=>Pe.createComment(""),$t=t=>t===null||typeof t!="object"&&typeof t!="function",vi=Array.isArray,Es=t=>vi(t)||typeof t?.[Symbol.iterator]=="function",mi=`[
|
|
2
|
+
\f\r]`,_t=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,xs=/-->/g,ks=/>/g,Me=RegExp(`>|${mi}(?:([^\\s"'>=/]+)(${mi}*=${mi}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),_s=/'/g,Cs=/"/g,Ss=/^(?:script|style|textarea|title)$/i,wi=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),u=wi(1),Td=wi(2),Dd=wi(3),ne=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),$s=new WeakMap,Oe=Pe.createTreeWalker(Pe,129);function Is(t,e){if(!vi(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ws!==void 0?ws.createHTML(e):e}var As=(t,e)=>{let r=t.length-1,i=[],n,s=e===2?"<svg>":e===3?"<math>":"",o=_t;for(let a=0;a<r;a++){let l=t[a],c,d,p=-1,h=0;for(;h<l.length&&(o.lastIndex=h,d=o.exec(l),d!==null);)h=o.lastIndex,o===_t?d[1]==="!--"?o=xs:d[1]!==void 0?o=ks:d[2]!==void 0?(Ss.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=Me):d[3]!==void 0&&(o=Me):o===Me?d[0]===">"?(o=n??_t,p=-1):d[1]===void 0?p=-2:(p=o.lastIndex-d[2].length,c=d[1],o=d[3]===void 0?Me:d[3]==='"'?Cs:_s):o===Cs||o===_s?o=Me:o===xs||o===ks?o=_t:(o=Me,n=void 0);let y=o===Me&&t[a+1].startsWith("/>")?" ":"";s+=o===_t?l+ql:p>=0?(i.push(c),l.slice(0,p)+yi+l.slice(p)+ge+y):l+ge+(p===-2?a:y)}return[Is(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Et=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let s=0,o=0,a=e.length-1,l=this.parts,[c,d]=As(e,r);if(this.el=t.createElement(c,i),Oe.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(n=Oe.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let p of n.getAttributeNames())if(p.endsWith(yi)){let h=d[o++],y=n.getAttribute(p).split(ge),f=/([.?@])?(.*)/.exec(h);l.push({type:1,index:s,name:f[2],strings:y,ctor:f[1]==="."?ir:f[1]==="?"?nr:f[1]==="@"?sr:Le}),n.removeAttribute(p)}else p.startsWith(ge)&&(l.push({type:6,index:s}),n.removeAttribute(p));if(Ss.test(n.tagName)){let p=n.textContent.split(ge),h=p.length-1;if(h>0){n.textContent=tr?tr.emptyScript:"";for(let y=0;y<h;y++)n.append(p[y],Ct()),Oe.nextNode(),l.push({type:2,index:++s});n.append(p[h],Ct())}}}else if(n.nodeType===8)if(n.data===bi)l.push({type:2,index:s});else{let p=-1;for(;(p=n.data.indexOf(ge,p+1))!==-1;)l.push({type:7,index:s}),p+=ge.length-1}s++}}static createElement(e,r){let i=Pe.createElement("template");return i.innerHTML=e,i}};function Ue(t,e,r=t,i){if(e===ne)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,s=$t(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=Ue(t,n._$AS(t,e.values),n,i)),e}var rr=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:i}=this._$AD,n=(e?.creationScope??Pe).importNode(r,!0);Oe.currentNode=n;let s=Oe.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new Ye(s,s.nextSibling,this,e):l.type===1?c=new l.ctor(s,l.name,l.strings,this,e):l.type===6&&(c=new or(s,this,e)),this._$AV.push(c),l=i[++a]}o!==l?.index&&(s=Oe.nextNode(),o++)}return Oe.currentNode=Pe,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Ye=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.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=Ue(this,e,r),$t(e)?e===U||e==null||e===""?(this._$AH!==U&&this._$AR(),this._$AH=U):e!==this._$AH&&e!==ne&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Es(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!==U&&$t(this._$AH)?this._$AA.nextSibling.data=e:this.T(Pe.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Et.createElement(Is(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new rr(n,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(e){let r=$s.get(e.strings);return r===void 0&&$s.set(e.strings,r=new Et(e)),r}k(e){vi(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of e)n===r.length?r.push(i=new t(this.O(Ct()),this.O(Ct()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=vs(e).nextSibling;vs(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Le=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,s){this.type=1,this._$AH=U,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=U}_$AI(e,r=this,i,n){let s=this.strings,o=!1;if(s===void 0)e=Ue(this,e,r,0),o=!$t(e)||e!==this._$AH&&e!==ne,o&&(this._$AH=e);else{let a=e,l,c;for(e=s[0],l=0;l<s.length-1;l++)c=Ue(this,a[i+l],r,l),c===ne&&(c=this._$AH[l]),o||=!$t(c)||c!==this._$AH[l],c===U?e=U:e!==U&&(e+=(c??"")+s[l+1]),this._$AH[l]=c}o&&!n&&this.j(e)}j(e){e===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ir=class extends Le{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===U?void 0:e}},nr=class extends Le{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==U)}},sr=class extends Le{constructor(e,r,i,n,s){super(e,r,i,n,s),this.type=5}_$AI(e,r=this){if((e=Ue(this,e,r,0)??U)===ne)return;let i=this._$AH,n=e===U&&i!==U||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==U&&(i===U||n);n&&this.element.removeEventListener(this.name,this,i),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)}},or=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Ue(this,e)}},Ts={M:yi,P:ge,A:bi,C:1,L:As,R:rr,D:Es,V:Ue,I:Ye,H:Le,N:nr,U:sr,B:ir,F:or},Bl=gi.litHtmlPolyfillSupport;Bl?.(Et,Ye),(gi.litHtmlVersions??=[]).push("3.3.2");var Ds=(t,e,r)=>{let i=r?.renderBefore??e,n=i._$litPart$;if(n===void 0){let s=r?.renderBefore??null;i._$litPart$=n=new Ye(e.insertBefore(Ct(),s),s,void 0,r??{})}return n._$AI(t),n};var xi=globalThis,v=class extends me{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=Ds(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ne}};v._$litElement$=!0,v.finalized=!0,xi.litElementHydrateSupport?.({LitElement:v});var Nl=xi.litElementPolyfillSupport;Nl?.({LitElement:v});(xi.litElementVersions??=[]).push("4.2.2");var ar=class{#e;#t;#r;constructor(e,r){if(!e)throw new Error("host is required");if(!r)throw new Error("config is required");this.#e=e,this.#e.addController(this),this.#t=r}connect(e){this.#t=e,this.#r=this.#n()}hostConnected(){this.#r||setTimeout(()=>{this.#r||(this.#r=this.#n())},0)}hostDisconnected(){this.#r?.close(1e3,"lit_host_disconnected"),this.#r=void 0}send(e){this.#r?.send(e)}close(e,r){this.#r?.close(e,r)}get isConnected(){return this.#r?.readyState===WebSocket.OPEN}get isConnecting(){return this.#r?.readyState===WebSocket.CONNECTING}#n(){let e=new WebSocket(this.#t.url());return this.#t.onClose&&(e.onclose=this.#t.onClose),this.#t.onOpen&&(e.onopen=this.#t.onOpen),this.#t.onError&&(e.onerror=this.#t.onError),this.#t.onMessage&&(e.onmessage=this.#t.onMessage),e}};async function ki(t){await new Promise(e=>setTimeout(e,t))}async function lr({times:t=3,backoff:e=0},r){let i=n=>{throw{_bailed:n}};for(let n=0;n<t;n++)try{return await r(i,n)}catch(s){if(s&&typeof s=="object"&&"_bailed"in s)throw s._bailed;if(n===t-1)throw s;if(typeof e=="number")await ki(e);else if(typeof e=="function")await ki(e(n+1));else throw new TypeError("Invalid backoff option")}throw new Error("unreachable")}var zl=!0,_i="Invariant failed";function D(t,e){if(!t){if(zl)throw new Error(_i);var r=typeof e=="function"?e():e,i=r?"".concat(_i,": ").concat(r):_i;throw new Error(i)}}function Ci(t,e,r){return t.slice(0,r)+e}function Wl({content:t,parts:e,appendMessage:r}){let i=[...e],n=t,s=r.part??0;switch(r.content_type){case"text":{let{delta:o,position:a}=r;n=Ci(n,o,a);let l=i[s]&&"text"in i[s]?i[s].text:"";i[s]={text:l?Ci(l,o,a):o};break}case"html":{let{delta:o,position:a}=r,l=i[s]&&"html"in i[s]?i[s].html:"";i[s]={html:l?Ci(l,o,a):o};break}case"data":{let o=i[s]&&"data"in i[s]?i[s].data:{};i[s]={tag:r.tag,data:Object.assign({},o,r.data)};break}}return{content:n,parts:i}}var cr=class{messages=Object.freeze([]);onEvent(e){switch(e.type){case"NEW_MESSAGE":{let r={...e.message,streaming:!0,parts:e.message.parts};return this.messages=Object.freeze([...this.messages.filter(i=>i.id!==r.id),r]),r}case"APPEND_MESSAGE":{let i=this.messages.find(s=>s.id===e.message.id)??(()=>{let s={id:e.message.id,timestamp:Date.now(),role:"assistant",content:"",streaming:!0,parts:[]};return this.messages=Object.freeze([...this.messages,s]),s})(),n=Wl({content:i.content,parts:i.parts||[],appendMessage:e.message});return i.content=n.content,i.parts=n.parts,e.metadata&&(i.metadata=e.metadata),i}case"MESSAGE_DONE":{let r=this.messages.find(i=>i.id===e.message.id);return r?(Object.assign(r,e.message),r.streaming=!1,r):void 0}default:return}}onEvents(e){for(let r of e)this.onEvent(r)}getMessage(e){return this.messages.find(r=>r.id===e)}get lastMessage(){return this.messages.at(-1)}reset(){this.messages=Object.freeze([])}};var ur=class{#e;#t;#r=null;#n=new cr;isStreaming=!1;typingIndicator;toolCallIndicator;ranOutOfCredits=!1;get messages(){return this.#n.messages}set messages(e){this.#n.messages=e}conversationId="";#i=0;#o;isLiveMode=!1;get hasQueuedMessages(){return this.#s.length>0}constructor(e,r){this.#e=e,this.#t=r,this.#t.autoConnect!==!1&&(this.#r=this.initWS()),e.addController(this)}#s=[];#a(e,{expectStreaming:r=!1}={}){return this.ranOutOfCredits?!1:this.#r?this.#r.isConnecting?(console.warn("WebSocket is connecting, message not sent",e),!1):this.#r.isConnected?(r&&!this.isLiveMode&&(this.isStreaming=!0,this.#e.requestUpdate()),this.#r.send(JSON.stringify(e)),!0):(console.warn("WebSocket is not connected, message not sent",e),this.retry(),!1):(console.warn("WebSocket not initialized, message not sent",e),this.connect(),!1)}async enqueueMessage(e,{expectStreaming:r=!1}={}){if(this.#s.length>0){let i=this.#s[this.#s.length-1];if(e.type==="USER_INPUT"&&i.message.type==="USER_INPUT"&&e.value===i.message.value)return!0}return this.#r||this.connect(),this.#r?.isConnected?this.#a(e,{expectStreaming:r}):(this.#s.push({message:e,options:{expectStreaming:r}}),this.#e.requestUpdate(),this.#r&&!this.#r.isConnecting&&!this.#r.isConnected&&this.retry(),await lr({times:5,backoff:2e3},async()=>{if(this.#r?.isConnected){let i=[...this.#s];this.#s=[],this.#e.requestUpdate();let n=!1;for(let{message:s,options:o}of i){let a=this.#a(s,o);s===e&&(n=a)}return n}else throw new Error("WebSocket not connected yet")}).catch(()=>(console.warn("Failed to send message after retries",e),this.#s=[],this.#e.requestUpdate(),!1)))}async sendUserInput(e,{xUserData:r,xCustomInstructions:i,role:n="user",expectStreaming:s=!1}={}){return this.enqueueMessage({type:"USER_INPUT",value:e,role:n,xUserData:r,xCustomInstructions:i},{expectStreaming:s})}async enqueueUserInput(e,{xUserData:r,xCustomInstructions:i,role:n="user",expectStreaming:s=!1}={}){return this.enqueueMessage({type:"USER_INPUT",value:e,role:n,xUserData:r,xCustomInstructions:i},{expectStreaming:s})}async sendUserFeedback(e){return this.enqueueMessage({type:"USER_FEEDBACK",responses:e},{expectStreaming:!0})}sendFileDelete(e){D(e,"fileId is required"),this.enqueueMessage({type:"USER_FILE_DELETE",fileId:e}).catch(console.warn)}sendUserCancel(){this.enqueueMessage({type:"USER_CANCEL"}).catch(console.warn)}sendUserTypingStart(){this.#a({type:"USER_TYPING_START"})}sendUserTypingStop(){this.enqueueMessage({type:"USER_TYPING_STOP"}).catch(console.warn)}sendNewChat(){this.enqueueMessage({type:"NEW_CHAT"})}sendUserMeta(e){this.enqueueMessage({type:"USER_META",metadata:e}).catch(console.warn)}reloadConfig(){this.enqueueMessage({type:"RELOAD_CONFIG"}).catch(console.warn)}close(){this.#r?.close(1e3,"closed by user")}retry(){clearTimeout(this.#o),this.#o=setTimeout(()=>{this.#t.onReconnect?.(),this.#r=this.initWS()},1e3*this.#i),this.#i++}initWS(){return new ar(this.#e,{url:()=>this.#t.url(this.conversationId,{}),onOpen:e=>this.#l(e),onMessage:e=>this.#c(JSON.parse(e.data)),onError:e=>this.#d(e),onClose:e=>this.#u(e)})}#l(e){this.#i=0}#c(e){switch(e.type){case"NEW_MESSAGE":{this.#n.onEvent(e),this.typingIndicator=void 0,this.toolCallIndicator=void 0,this.#t.onNewMessage?.(e.message),this.#t.persistConversationState?.(this.conversationId,this.messages),this.#e.requestUpdate();break}case"APPEND_MESSAGE":{let r=!this.#n.getMessage(e.message.id),i=this.#n.onEvent(e);i&&(this.typingIndicator=void 0,this.toolCallIndicator=void 0,r&&(this.#t.onNewMessage?.({id:i.id,timestamp:i.timestamp,role:i.role,content:i.content}),this.#t.persistConversationState?.(this.conversationId,this.messages)),this.#t.onMessageAppend?.(e),this.#e.requestUpdate());break}case"MESSAGE_DONE":{let r=this.#n.onEvent(e);if(!r)throw new Error(`Message with id ${e.message.id} not found`);this.isStreaming=!1,this.#e.requestUpdate(),this.#t.onMessageDone?.(e,r),this.#t.persistConversationState?.(this.conversationId,this.messages);break}case"MESSAGE_CANCEL":{this.isStreaming=!1,this.typingIndicator=void 0,this.#e.requestUpdate();break}case"ERROR":{this.#t.onMessageError?.(e);break}case"CONNECTED":{this.conversationId=e.conversationId,this.#n.messages=e.messages,this.#t.onConnect?.(e.conversationId,e.metadata),this.#t.persistConversationState?.(e.conversationId,e.messages),this.isLiveMode=e.metadata.isLiveMode,this.#e.requestUpdate();break}case"TYPING_START":{e.role==="assistant"&&(this.isStreaming=!0),this.toolCallIndicator=void 0,this.typingIndicator={role:e.role,metadata:e.metadata},this.#e.requestUpdate();break}case"TYPING_STOP":{this.typingIndicator=void 0,this.#e.requestUpdate();break}case"TOOL_CALL_START":{this.typingIndicator=void 0,this.toolCallIndicator=e.text,this.#e.requestUpdate();break}case"RAN_OUT_OF_CREDITS":{this.ranOutOfCredits=!0,this.#e.requestUpdate();break}case"RECONNECT":{this.reconnectSocket(),this.#e.requestUpdate();break}default:console.warn(`Unknown message type: ${JSON.stringify(e)}`)}}#d(e){console.error("onError",e),this.#t.onError?.(e)}#u(e){this.#e.isConnected&&this.#r&&!this.#r.isConnected&&e.reason==="reconnect"&&this.retry(),this.isStreaming=!1,this.typingIndicator=void 0,this.#e.requestUpdate(),this.#t.onClose?.()}hostConnected(){this.conversationId=this.#t.restoreConversationState?.()?.conversationId||"",this.#n.messages=this.#t.restoreConversationState?.()?.messages||[]}reset(){this.#t.onReset?.(),this.#n.reset(),this.isStreaming=!1,this.typingIndicator=void 0,this.ranOutOfCredits=!1,this.conversationId="",this.isLiveMode=!1,this.#s=[],this.#e.requestUpdate()}hostDisconnected(){clearTimeout(this.#o)}connect(){this.#r||(this.#r=this.initWS())}reconnectSocket(){this.#r?.close(1e3,"destroy"),this.#r=this.initWS()}get lastMsg(){if(this.messages.length>0)return this.messages[this.messages.length-1]}get isConnected(){return this.#r?.isConnected??!1}};var $i;function Os(t){return{lang:t?.lang??$i?.lang,message:t?.message,abortEarly:t?.abortEarly??$i?.abortEarly,abortPipeEarly:t?.abortPipeEarly??$i?.abortPipeEarly}}var Vl;function Hl(t){return Vl?.get(t)}var Gl;function Xl(t){return Gl?.get(t)}var Jl;function Yl(t,e){return Jl?.get(t)?.get(e)}function Ps(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 H(t,e,r,i,n){let s=n&&"input"in n?n.input:r.value,o=n?.expected??t.expects??null,a=n?.received??Ps(s),l={kind:t.kind,type:t.type,input:s,expected:o,received:a,message:`Invalid ${e}: ${o?`Expected ${o} but r`:"R"}eceived ${a}`,requirement:t.requirement,path:n?.path,issues:n?.issues,lang:i.lang,abortEarly:i.abortEarly,abortPipeEarly:i.abortPipeEarly},c=t.kind==="schema",d=n?.message??t.message??Yl(t.reference,l.lang)??(c?Xl(l.lang):null)??i.message??Hl(l.lang);d!==void 0&&(l.message=typeof d=="function"?d(l):d),c&&(r.typed=!1),r.issues?r.issues.push(l):r.issues=[l]}function G(t){return{version:1,vendor:"valibot",validate(e){return t["~run"]({value:e},Os())}}}function Kl(t,e){return Object.hasOwn(t,e)&&e!=="__proto__"&&e!=="prototype"&&e!=="constructor"}function Us(t,e){let r=[...new Set(t)];return r.length>1?`(${r.join(` ${e} `)})`:r[0]??"never"}var Ql=/^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])[T ](?:0\d|1\d|2[0-3])(?::[0-5]\d){2}(?:\.\d{1,9})?(?:Z|[+-](?:0\d|1\d|2[0-3])(?::?[0-5]\d)?)$/u;function Ei(t){return{kind:"validation",type:"iso_timestamp",reference:Ei,async:!1,expects:null,requirement:Ql,message:t,"~run"(e,r){return e.typed&&!this.requirement.test(e.value)&&H(this,"timestamp",e,r),e}}}function Si(t,e){return{kind:"validation",type:"max_length",reference:Si,async:!1,expects:`<=${t}`,requirement:t,message:e,"~run"(r,i){return r.typed&&r.value.length>this.requirement&&H(this,"length",r,i,{received:`${r.value.length}`}),r}}}function Ii(t,e){return{kind:"validation",type:"min_length",reference:Ii,async:!1,expects:`>=${t}`,requirement:t,message:e,"~run"(r,i){return r.typed&&r.value.length<this.requirement&&H(this,"length",r,i,{received:`${r.value.length}`}),r}}}function Ai(t){return{kind:"transformation",type:"to_date",reference:Ai,async:!1,message:t,"~run"(e,r){try{e.value=new Date(e.value),isNaN(e.value)&&(H(this,"date",e,r,{received:'"Invalid Date"'}),e.typed=!1)}catch{H(this,"date",e,r),e.typed=!1}return e}}}function Ti(t){return{kind:"transformation",type:"transform",reference:Ti,async:!1,operation:t,"~run"(e){return e.value=this.operation(e.value),e}}}function Ls(t,e,r){return typeof t.fallback=="function"?t.fallback(e,r):t.fallback}function Q(t,e){return{...t,fallback:e,get"~standard"(){return G(this)},"~run"(r,i){let n=t["~run"](r,i);return n.issues?{typed:!0,value:Ls(this,n,i)}:n}}}function Di(t,e,r){return typeof t.default=="function"?t.default(e,r):t.default}function St(){return{kind:"schema",type:"any",reference:St,expects:"any",async:!1,get"~standard"(){return G(this)},"~run"(t){return t.typed=!0,t}}}function Ke(t,e){return{kind:"schema",type:"array",reference:Ke,expects:"Array",async:!1,item:t,message:e,get"~standard"(){return G(this)},"~run"(r,i){let n=r.value;if(Array.isArray(n)){r.typed=!0,r.value=[];for(let s=0;s<n.length;s++){let o=n[s],a=this.item["~run"]({value:o},i);if(a.issues){let l={type:"array",origin:"value",input:n,key:s,value:o};for(let c of a.issues)c.path?c.path.unshift(l):c.path=[l],r.issues?.push(c);if(r.issues||(r.issues=a.issues),i.abortEarly){r.typed=!1;break}}a.typed||(r.typed=!1),r.value.push(a.value)}}else H(this,"type",r,i);return r}}}function Mi(t){return{kind:"schema",type:"boolean",reference:Mi,expects:"boolean",async:!1,message:t,get"~standard"(){return G(this)},"~run"(e,r){return typeof e.value=="boolean"?e.typed=!0:H(this,"type",e,r),e}}}function Oi(t){return{kind:"schema",type:"null",reference:Oi,expects:"null",async:!1,message:t,get"~standard"(){return G(this)},"~run"(e,r){return e.value===null?e.typed=!0:H(this,"type",e,r),e}}}function dr(t,e){return{kind:"schema",type:"nullish",reference:dr,expects:`(${t.expects} | null | undefined)`,async:!1,wrapped:t,default:e,get"~standard"(){return G(this)},"~run"(r,i){return(r.value===null||r.value===void 0)&&(this.default!==void 0&&(r.value=Di(this,r,i)),r.value===null||r.value===void 0)?(r.typed=!0,r):this.wrapped["~run"](r,i)}}}function pr(t){return{kind:"schema",type:"number",reference:pr,expects:"number",async:!1,message:t,get"~standard"(){return G(this)},"~run"(e,r){return typeof e.value=="number"&&!isNaN(e.value)?e.typed=!0:H(this,"type",e,r),e}}}function B(t,e){return{kind:"schema",type:"object",reference:B,expects:"Object",async:!1,entries:t,message:e,get"~standard"(){return G(this)},"~run"(r,i){let n=r.value;if(n&&typeof n=="object"){r.typed=!0,r.value={};for(let s in this.entries){let o=this.entries[s];if(s in n||(o.type==="exact_optional"||o.type==="optional"||o.type==="nullish")&&o.default!==void 0){let a=s in n?n[s]:Di(o),l=o["~run"]({value:a},i);if(l.issues){let c={type:"object",origin:"value",input:n,key:s,value:a};for(let d of l.issues)d.path?d.path.unshift(c):d.path=[c],r.issues?.push(d);if(r.issues||(r.issues=l.issues),i.abortEarly){r.typed=!1;break}}l.typed||(r.typed=!1),r.value[s]=l.value}else if(o.fallback!==void 0)r.value[s]=Ls(o);else if(o.type!=="exact_optional"&&o.type!=="optional"&&o.type!=="nullish"&&(H(this,"key",r,i,{input:void 0,expected:`"${s}"`,path:[{type:"object",origin:"key",input:n,key:s,value:n[s]}]}),i.abortEarly))break}}else H(this,"type",r,i);return r}}}function A(t,e){return{kind:"schema",type:"optional",reference:A,expects:`(${t.expects} | undefined)`,async:!1,wrapped:t,default:e,get"~standard"(){return G(this)},"~run"(r,i){return r.value===void 0&&(this.default!==void 0&&(r.value=Di(this,r,i)),r.value===void 0)?(r.typed=!0,r):this.wrapped["~run"](r,i)}}}function It(t,e){return{kind:"schema",type:"picklist",reference:It,expects:Us(t.map(Ps),"|"),async:!1,options:t,message:e,get"~standard"(){return G(this)},"~run"(r,i){return this.options.includes(r.value)?r.typed=!0:H(this,"type",r,i),r}}}function At(t,e,r){return{kind:"schema",type:"record",reference:At,expects:"Object",async:!1,key:t,value:e,message:r,get"~standard"(){return G(this)},"~run"(i,n){let s=i.value;if(s&&typeof s=="object"){i.typed=!0,i.value={};for(let o in s)if(Kl(s,o)){let a=s[o],l=this.key["~run"]({value:o},n);if(l.issues){let d={type:"object",origin:"key",input:s,key:o,value:a};for(let p of l.issues)p.path=[d],i.issues?.push(p);if(i.issues||(i.issues=l.issues),n.abortEarly){i.typed=!1;break}}let c=this.value["~run"]({value:a},n);if(c.issues){let d={type:"object",origin:"value",input:s,key:o,value:a};for(let p of c.issues)p.path?p.path.unshift(d):p.path=[d],i.issues?.push(p);if(i.issues||(i.issues=c.issues),n.abortEarly){i.typed=!1;break}}(!l.typed||!c.typed)&&(i.typed=!1),l.typed&&(i.value[l.value]=c.value)}}else H(this,"type",i,n);return i}}}function C(t){return{kind:"schema",type:"string",reference:C,expects:"string",async:!1,message:t,get"~standard"(){return G(this)},"~run"(e,r){return typeof e.value=="string"?e.typed=!0:H(this,"type",e,r),e}}}function Ms(t){let e;if(t)for(let r of t)e?e.push(...r.issues):e=r.issues;return e}function hr(t,e){return{kind:"schema",type:"union",reference:hr,expects:Us(t.map(r=>r.expects),"|"),async:!1,options:t,message:e,get"~standard"(){return G(this)},"~run"(r,i){let n,s,o;for(let a of this.options){let l=a["~run"]({value:r.value},i);if(l.typed)if(l.issues)s?s.push(l):s=[l];else{n=l;break}else o?o.push(l):o=[l]}if(n)return n;if(s){if(s.length===1)return s[0];H(this,"type",r,i,{issues:Ms(s)}),r.typed=!0}else{if(o?.length===1)return o[0];H(this,"type",r,i,{issues:Ms(o)})}return r}}}function js(t,e){let r={};for(let i in t.entries)r[i]=!e||e.includes(i)?A(t.entries[i]):t.entries[i];return{...t,entries:r,get"~standard"(){return G(this)}}}function Qe(...t){return{...t[0],pipe:t,get"~standard"(){return G(this)},"~run"(e,r){for(let i of t)if(i.kind!=="metadata"){if(e.issues&&(i.kind==="schema"||i.kind==="transformation")){e.typed=!1;break}(!e.issues||!r.abortEarly&&!r.abortPipeEarly)&&(e=i["~run"](e,r))}return e}}}function se(t,e,r){let i=t["~run"]({value:e},Os(r));return{typed:i.typed,success:!i.issues,output:i.value,issues:i.issues}}var fr=js(B({url:C(),name:C(),description:C(),price:C()}));function Rs(t){return t.flatMap(e=>{if(!("tag"in e))return[];switch(e.tag){case"product-card":case"product-card-v1":case"product-card-horizontal":{let r=se(fr,e.data);if(r.success)return[{name:r.output.name??"",price:r.output.price??"0"}];break}case"thought":case"order-status-card-v1":case"order-card-v2":case"live-chat-wait-card-v1":case"live-chat-wait-card-v2":case"request-input-v1":break}return[]})}var Zl=Symbol();var Fs=Object.getPrototypeOf,Pi=new WeakMap,ec=t=>t&&(Pi.has(t)?Pi.get(t):Fs(t)===Object.prototype||Fs(t)===Array.prototype);var qs=t=>ec(t)&&t[Zl]||null,Ui=(t,e=!0)=>{Pi.set(t,e)};var ji=t=>typeof t=="object"&&t!==null,tc=t=>ji(t)&&!Ri.has(t)&&(Array.isArray(t)||!(Symbol.iterator in t))&&!(t instanceof WeakMap)&&!(t instanceof WeakSet)&&!(t instanceof Error)&&!(t instanceof Number)&&!(t instanceof Date)&&!(t instanceof String)&&!(t instanceof RegExp)&&!(t instanceof ArrayBuffer)&&!(t instanceof Promise),zs=(t,e)=>{let r=Bs.get(t);if(r?.[0]===e)return r[1];let i=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));return Ui(i,!0),Bs.set(t,[e,i]),Reflect.ownKeys(t).forEach(n=>{if(Object.getOwnPropertyDescriptor(i,n))return;let s=Reflect.get(t,n),{enumerable:o}=Reflect.getOwnPropertyDescriptor(t,n),a={value:s,enumerable:o,configurable:!0};if(Ri.has(s))Ui(s,!1);else if(je.has(s)){let[l,c]=je.get(s);a.value=zs(l,c())}Object.defineProperty(i,n,a)}),Object.preventExtensions(i)},rc=(t,e,r,i)=>({deleteProperty(n,s){let o=Reflect.get(n,s);r(s);let a=Reflect.deleteProperty(n,s);return a&&i(mr?.("delete",s,o)),a},set(n,s,o,a){let l=!t()&&Reflect.has(n,s),c=Reflect.get(n,s,a);if(l&&(Ns(c,o)||gr.has(o)&&Ns(c,gr.get(o))))return!0;r(s),ji(o)&&(o=qs(o)||o);let d=!je.has(o)&&nc(o)?Fi(o):o;return e(s,d),Reflect.set(n,s,d,a),i(mr?.("set",s,o,c)),!0}});var je=new WeakMap,Ri=new WeakSet,Bs=new WeakMap,Li=[1],gr=new WeakMap,Ns=Object.is,ic=(t,e)=>new Proxy(t,e),nc=tc,sc=zs,oc=rc,mr;function Fi(t={}){if(!ji(t))throw new Error("object required");let e=gr.get(t);if(e)return e;let r=Li[0],i=new Set,n=(x,$=++Li[0])=>{r!==$&&(s=r=$,i.forEach(b=>b(x,$)))},s=r,o=(x=Li[0])=>(s!==x&&(s=x,l.forEach(([$])=>{let b=$[1](x);b>r&&(r=b)})),r),a=x=>($,b)=>{let k;$&&(k=[...$],k[1]=[x,...k[1]]),n(k,b)},l=new Map,c=(x,$)=>{let b=!Ri.has($)&&je.get($);if(b){if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&l.has(x))throw new Error("prop listener already exists");if(i.size){let k=b[2](a(x));l.set(x,[b,k])}else l.set(x,[b])}},d=x=>{var $;let b=l.get(x);b&&(l.delete(x),($=b[1])==null||$.call(b))},p=x=>(i.add(x),i.size===1&&l.forEach(([b,k],S)=>{if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&k)throw new Error("remove already exists");let P=b[2](a(S));l.set(S,[b,P])}),()=>{i.delete(x),i.size===0&&l.forEach(([b,k],S)=>{k&&(k(),l.set(S,[b]))})}),h=!0,y=oc(()=>h,c,d,n),f=ic(t,y);gr.set(t,f);let E=[t,o,p];return je.set(f,E),Reflect.ownKeys(t).forEach(x=>{let $=Object.getOwnPropertyDescriptor(t,x);"value"in $&&$.writable&&(f[x]=t[x])}),h=!1,f}function yr(t,e,r){let i=je.get(t);(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&!i&&console.warn("Please use proxy object");let n,s=[],o=i[2],a=!1,c=o(d=>{if(d&&s.push(d),r){e(s.splice(0));return}n||(n=Promise.resolve().then(()=>{n=void 0,a&&e(s.splice(0))}))});return a=!0,()=>{a=!1,c()}}function Ze(t){let e=je.get(t);(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&!e&&console.warn("Please use proxy object");let[r,i]=e;return sc(r,i())}var et=class{#e;#t;#r;#n=()=>{};constructor(e,r){this.#e=e,this.#t=r,this.#r=Ze(r),e.addController(this)}get state(){return this.#r}get value(){return this.#r}hostConnected(){this.#n(),this.#n=yr(this.#t,()=>{this.#r=Ze(this.#t),this.#e.requestUpdate()})}hostDisconnected(){this.#n()}};var ke=class{#e;#t;proxyObject;#r;#n=()=>{};constructor(e,r,i){this.#e=e,this.#t=i,this.proxyObject=Fi(r),this.#r=Ze(this.proxyObject),e.addController(this)}get state(){return this.#r}get value(){return this.#r}hostConnected(){this.#n(),this.#t?.subscribe&&(this.#n=yr(this.proxyObject,()=>{this.#r=Ze(this.proxyObject),this.#e.requestUpdate()}))}hostDisconnected(){this.#n()}};var br=class{#e;#t;#r;#n=null;#i=null;constructor(e,{provider:r,tag:i,key:n}){this.#e=e,this.#t=i,this.#r=n,e.addController(this)}get value(){return this.#i?this.#i.value:null}hostConnected(){if(this.#i||(this.#n=ac(this.#e,this.#t),!this.#n))return;let e=this.#n[this.#r]instanceof ke?this.#n[this.#r]:null;e&&(this.#i=new et(this.#e,e.proxyObject))}hostDisconnected(){}};function ac(t,e){let r=t;for(;r;){let i=r.closest(e);if(i)return i;let n=r.getRootNode();if(n instanceof ShadowRoot)r=n.host;else break}return null}function qi(t,e){if(e<=0)return"";if(t=t??"",t.length>e){let r=e-1;return r>0&&t.charCodeAt(r-1)>=55296&&t.charCodeAt(r-1)<=56319&&r--,t.slice(0,r)+"\u2026"}return t}var Ws=()=>{if(window.Shopify)try{return{customerId:lc()}}catch{return null}return null},lc=()=>{try{let t=[()=>window.ShopifyAnalytics?.meta?.page?.customerId,()=>window.meta?.page?.customerId,()=>window._st?.cid,()=>window.ShopifyAnalytics?.lib?.user()?.traits()?.uniqToken];for(let e of t)try{let r=e();if(/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i.test(r))continue;if(r)return r}catch{}}catch{return null}return null},Vs=async()=>{try{return(await(await fetch(window.Shopify.routes.root+"cart.js")).json()).items.map(i=>({id:i.id,name:i.title,quantity:i.quantity,price:i.price,variantId:i.variant_id,sku:i.sku,url:i.url,description:i.product_description,image:i.featured_image?.url}))}catch{return[]}};function Hs(t){if(t instanceof URLSearchParams)return new URLSearchParams(t);let e=new URLSearchParams;for(let[r,i]of Object.entries(t))i!=null&&e.set(r,String(i));return e}function Gs(t,e="http"){return t.startsWith("http://")||t.startsWith("https://")?t:`${e}://${t}`}function tt(t){let e="[-a-z\\d%_.~!$&'()*+,;=:@]",r="[-a-z\\d%_.~!$&'()*+,;=:@/?]";return new RegExp(`^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/${e}*)*(\\?${r}*)?(\\#${r}*)?$`,"i").test(t)}function Xs(t,e){let r=t instanceof URL?t:new URL(t);if(e)for(let[i,n]of e)r.searchParams.set(i,n);return r}var Js=()=>{if(window.ShopRenter)try{let t=uc();return{customerEmail:t?.customerEmail,customerId:t?.customerId,customerName:t?.customerName}}catch{return null}return null},uc=()=>{try{if(window.ShopRenter){let t=window.ShopRenter.customer;return{customerEmail:t?.email,customerId:t?.userId,customerName:[t?.name?.firstName,t?.name?.lastName].filter(Boolean).join(" ")}}return{customerEmail:null,customerId:null,customerName:null}}catch{return{customerEmail:null,customerId:null,customerName:null}}},Ys=async()=>{try{let t=window.ShopRenter.shop?.domain;if(!t)return[];let e=Gs(t,"https")+"/cart.json";return(await(await fetch(e)).json()).items.map(s=>({id:s.id,name:s.name,quantity:s.quantity,price:s.price,sku:s.sku,image:s.image,url:s.href}))}catch{return[]}};var Ks=()=>{if(window.UNAS)try{let t=window.UNAS.customer;return{customerEmail:t?.email,customerId:t?.id}}catch(t){return console.error("Error fetching customer information:",t),null}return null},Qs=async()=>new Promise((t,e)=>{try{window.UNAS.getCart(r=>{let n=r.items.map(s=>({id:s.id,name:s.name,quantity:s.quantity,price:s.price,sku:s.sku}));t(n)})}catch(r){console.error("Error fetching cart information:",r),e(r)}});var Tt=di(zi(),1);var wr=class{#e;constructor({document:e}){this.#e=e}getCookies(){return(0,Tt.parseCookie)(this.#e.cookie)||{}}getCookie(e){return this.getCookies()[e]||null}setCookie(e,r,i){if(D(typeof e=="string",`cookie name must be a string, got: ${typeof e}`),D(e,"cookie name must not be empty"),r==null){this.#e.cookie=(0,Tt.stringifySetCookie)(e,"",{expires:new Date(0)});return}D(typeof r=="string",`value of cookie \`${e}\` must be a string, got: ${typeof r}`),this.#e.cookie=(0,Tt.stringifySetCookie)(e,r,i)}deleteCookie(e){this.setCookie(e,null)}deleteCookies(e){let r=this.getCookies();for(let i in r)e(i)&&this.deleteCookie(i)}};var xr=class{#e;constructor({localStorage:e}){this.#e=e}getItem(e){try{let r=this.#e.getItem(e);return r?JSON.parse(r):null}catch{return null}}setItem(e,r){if(r==null){this.#e.removeItem(e);return}try{let i=JSON.stringify(r);this.#e.setItem(e,i)}catch(i){console.error(`Failed to store ${e} in localStorage:`,i)}}removeItem(e){this.#e.removeItem(e)}removeItems(e){let r=[];for(let i=0;i<this.#e.length;i++){let n=this.#e.key(i);n&&e(n)&&r.push(n)}for(let i of r)this.#e.removeItem(i)}};var Dt=di(zi(),1);function Wi({window:t}){let e=t.location.hostname,r=t.document;if(e==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(e)||/^\[.*\]$/.test(e))return;let i=e.split(".");if(i.length<2)return;let n="__molin_domain_test__";for(let s=2;s<=i.length;s++){let o=`.${i.slice(-s).join(".")}`;try{if(r.cookie=(0,Dt.stringifySetCookie)(n,"1",{domain:o,path:"/"}),(0,Dt.parseCookie)(r.cookie)[n]==="1")return r.cookie=(0,Dt.stringifySetCookie)(n,"",{domain:o,path:"/",expires:new Date(0)}),o}catch{continue}}return`.${i.slice(-2).join(".")}`}var Vi=class{#e;#t;#r;#n;constructor({window:e}){this.#e=e,this.#t=new wr({document:e.document}),this.#r=new xr({localStorage:e.localStorage}),this.#n=e.localStorage}get distinctID(){return this.#t.getCookie("molin_distinct_id")||this.#n.getItem("molin_distinct_id")}set distinctID(e){if(!e){this.#t.deleteCookie("molin_distinct_id"),this.#n.removeItem("molin_distinct_id");return}D(typeof e=="string","distinct_id must be a string");try{this.#t.setCookie("molin_distinct_id",e,{path:"/",sameSite:"lax",expires:new Date(Date.now()+1e3*60*60*24*365),domain:Wi({window:this.#e})})}catch(r){console.warn("Could not write distinct_id to cookie:",r)}try{this.#n.setItem("molin_distinct_id",e)}catch(r){console.warn("Could not write distinct_id to localStorage:",r)}}get widgetState(){return this.#r.getItem("molin_widget")}set widgetState(e){this.#r.setItem("molin_widget",e)}get popupState(){return this.#r.getItem("molin_popup")}set popupState(e){this.#r.setItem("molin_popup",e)}get disclaimerDismissed(){return this.#r.getItem("molin_disclaimer_dismissed")??!1}set disclaimerDismissed(e){this.#r.setItem("molin_disclaimer_dismissed",e)}getConversationId(e){D(typeof e=="string","widgetId must be a string"),D(e,"widgetId must not be empty");let r=`molin_${e}_conversation_id`;return this.#t.getCookie(r)||this.#n.getItem(r)}setConversationId(e,r){D(typeof e=="string","widgetId must be a string"),D(e,"widgetId must not be empty");let i=`molin_${e}_conversation_id`;if(!r){this.#t.deleteCookie(i),this.#n.removeItem(i);return}D(typeof r=="string",`conversation ID for widget ${e} must be a string`);try{this.#t.setCookie(i,r,{path:"/",sameSite:"lax",expires:new Date(Date.now()+1e3*60*60*24*365),domain:Wi({window:this.#e})})}catch(n){console.warn(`Could not write ${i} to cookie:`,n)}try{this.#n.setItem(i,r)}catch(n){console.warn(`Could not write ${i} to localStorage:`,n)}}getConversationState(e){D(typeof e=="string","widgetId must be a string"),D(e,"widgetId must not be empty");let r=`molin_${e}_conversation`;return this.#r.getItem(r)}setConversationState(e,r){D(typeof e=="string","widgetId must be a string"),D(e,"widgetId must not be empty");let i=`molin_${e}_conversation`;this.#r.setItem(i,r)}resetAll(){this.distinctID=null,this.widgetState=null,this.popupState=null,this.disclaimerDismissed=!1,this.#r.removeItems(e=>e.startsWith("_molin_")),this.#t.deleteCookies(e=>e.startsWith("_molin_"))}},io;function j(){return io??=new Vi({window}),io}var no=At(C(),hr([C(),pr(),Mi(),Oi()])),so=Qe(C(),Ii(1),Si(5e3)),oo=()=>{try{return window.UNAS?Ks():window.Shopify?Ws():window.ShopRenter?Js():null}catch{return null}},ao=async()=>{try{return window.UNAS?await Qs():window.Shopify?await Vs():window.ShopRenter?await Ys():[]}catch{return[]}},rt={schema:B({conversationId:A(C()),messages:A(Ke(B({id:C(),timestamp:pr(),role:It(["user","assistant","support"]),content:C(),parts:A(Ke(hr([B({text:C()}),B({html:C()}),B({tag:C(),data:At(C(),St())})])))})))}),persist(t,e,r){j().setConversationState(t,{conversationId:e,messages:r}),j().setConversationId(t,e)},restore(t){try{let e=j().getConversationState(t),r=e?se(this.schema,e):void 0;return r?.success&&r.output.conversationId?{conversationId:r.output.conversationId,messages:r.output.messages||[]}:{conversationId:j().getConversationId(t)||"",messages:[]}}catch(e){return console.error("Failed to restore conversation state:",e),{conversationId:"",messages:[]}}},reset(t){j().setConversationState(t,null),j().setConversationId(t,null)}};var it=class t extends v{static properties={widgetId:{type:String},config:{type:Object},callbacks:{type:Object},xUserData:{type:Object},xCustomInstructions:{type:Object}};contextCtrl;constructor(){super(),this.widgetId="",this.config={},this.callbacks={},this.xUserData=void 0,this.xCustomInstructions=void 0,this.contextCtrl=new ke(this,{config:this.config,callbacks:this.callbacks,xUserData:this.xUserData,xCustomInstructions:this.xCustomInstructions,widgetId:this.widgetId,conversationId:"",messages:[],isStreaming:!1,typingIndicator:void 0,toolCallIndicator:void 0,ranOutOfCredits:!1,isLiveMode:!1,lastMsg:void 0,hasQueuedMessages:!1,isConnected:()=>this.#i.isConnected,sendUserInput:this.sendUserInput.bind(this),sendUserCancel:this.sendUserCancel.bind(this),sendUserTypingStart:this.sendUserTypingStart.bind(this),sendUserTypingStop:this.sendUserTypingStop.bind(this),sendNewChat:this.sendNewChat.bind(this),reset:this.reset.bind(this),reloadConfig:this.reloadConfig.bind(this),enqueueUserInput:this.enqueueUserInput.bind(this),sendUserFeedback:this.sendUserFeedback.bind(this),sendFileDelete:this.#i.sendFileDelete.bind(this.#i)})}connectedCallback(){super.connectedCallback(),this.updated()}updated(){this.#i.connect(),Object.assign(this.contextCtrl.proxyObject,{widgetId:this.widgetId,config:this.config,callbacks:this.callbacks,xUserData:this.#t,xCustomInstructions:this.#r,conversationId:this.#i.conversationId,messages:this.#e,isStreaming:this.#i.isStreaming,typingIndicator:this.#i.typingIndicator,toolCallIndicator:this.#i.toolCallIndicator,ranOutOfCredits:this.#i.ranOutOfCredits,isLiveMode:this.#i.isLiveMode,lastMsg:this.#i.lastMsg,hasQueuedMessages:this.#i.hasQueuedMessages,sendUserInput:this.sendUserInput.bind(this),sendUserCancel:this.sendUserCancel.bind(this),sendUserTypingStart:this.sendUserTypingStart.bind(this),sendUserTypingStop:this.sendUserTypingStop.bind(this),reset:this.reset.bind(this),reloadConfig:this.reloadConfig.bind(this),enqueueUserInput:this.enqueueUserInput.bind(this),sendUserFeedback:this.sendUserFeedback.bind(this),sendFileDelete:this.#i.sendFileDelete.bind(this.#i)}),this.#o()}get#e(){return this.#i?.ranOutOfCredits?[{id:crypto.randomUUID(),role:"assistant",content:"Sorry, I've run out of credits. Please contact the shop directly.",timestamp:Date.now()}]:this.#i?.messages||[]}#t;#r;#n=null;get#i(){return this.#n||(this.#n=new ur(this,{url:e=>{let r=new URL(this.config.wsApiUrl);return r.searchParams.set("widgetId",this.widgetId),r.searchParams.set("conversationId",e),r.searchParams.set("pageUrl",window.location.href),r},onReconnect:()=>{},onError:e=>{console.error("ws error",e)},onClose:()=>{},onNewMessage:e=>{e.role==="assistant"&&this.callbacks.onNewMessageStartedStreaming?.({widgetId:this.widgetId,message:e,conversationId:this.#i.conversationId})},onMessageAppend:e=>{},onMessageDone:(e,r)=>{if(r.role==="assistant"){let i=Rs(r.parts??[]);this.callbacks.onMessageEndedStreaming?.({widgetId:this.widgetId,text:r.content??"",message:r,conversationId:this.#i.conversationId,products:i})}},onMessageError:e=>{console.error("ws message error",e),e.message&&this.callbacks.onError?.({widgetId:this.widgetId,error:"WS: "+e.message})},onReset:()=>{rt.reset(this.widgetId)},onConnect:(e,r)=>{let i=oo();this.#i.sendUserMeta({xUserData:this.xUserData,xCustomInstructions:this.xCustomInstructions,customerInformation:i,language:window.navigator.language,cart:[]}),ao().then(n=>{n?.length>0&&this.#i.sendUserMeta({xUserData:this.xUserData,xCustomInstructions:this.xCustomInstructions,customerInformation:i,cart:n,language:window.navigator.language})}).catch(n=>{console.error(n)}),this.dispatchEvent(new t.ConnectedEvent({conversationId:e,metadata:r,widgetId:this.widgetId,pendingImages:r?.pendingImages||[]}))},persistConversationState:(e,r)=>{rt.persist(this.widgetId,e,r)},restoreConversationState:()=>rt.restore(this.widgetId)})),this.#n}#o(){function e(i){if(!i)return;let n;try{n=typeof i=="object"?i:JSON.parse(i)}catch(o){console.error("Molin: user-data is not valid JSON",o);return}if(!n||typeof n!="object"||Object.keys(n).length===0)return;let s=se(no,n);if(!s.success){console.error("Molin: user-data does not pass schema validation",s.issues);return}return s.output}function r(i){if(!i)return;let n=se(so,i);if(!n.success){console.error("Molin: custom-instructions does not pass schema validation",n.issues);return}return n.output}this.#t=e(this.xUserData),this.#r=r(this.xCustomInstructions)}async sendUserInput(e,r={}){let i={xUserData:this.xUserData,xCustomInstructions:this.xCustomInstructions,...r},n=await this.#i.sendUserInput(e,i);return n&&this.callbacks.onUserSentInput?.({widgetId:this.widgetId,text:e,example:!1,conversationId:this.#i.conversationId}),n}async enqueueUserInput(e,r={}){e.length>1e3&&(console.error("Message exceeds max length of 1000 characters, trimming"),e=qi(e,1e3)),this.#e.some(o=>o.role==="assistant"&&o.parts?.some(a=>"tag"in a&&a.tag==="request-input-v1"&&"data"in a&&a.data.type==="new-conversation-button"))&&(this.sendNewChat(),this.reset());let s={xUserData:this.xUserData,xCustomInstructions:this.xCustomInstructions,role:"user",expectStreaming:!0,...r};return this.#i.enqueueUserInput(e,s)}async sendUserFeedback(e){return this.#i.sendUserFeedback(e)}sendUserCancel(){this.#i.sendUserCancel(),this.callbacks.onUserCanceledStreaming?.({widgetId:this.widgetId})}sendUserTypingStart(){this.#i.sendUserTypingStart()}sendUserTypingStop(){this.#i.sendUserTypingStop()}sendNewChat(){this.#i.sendNewChat()}reset(){this.#i.reset()}reloadConfig(){this.#i.reloadConfig()}render(){return u`<slot></slot>`}};function lo(t){let e=new br(t,{provider:it,tag:"mw-context-widget",key:"contextCtrl"});return new Proxy({value:null},{get(r,i){if(i==="value")return e.value}})}it.ConnectedEvent=class extends CustomEvent{static type="mw-context-widget:connected";constructor(e,r={}){super(it.ConnectedEvent.type,{detail:e,bubbles:!0,composed:!0,...r})}};customElements.get("mw-context-widget")||customElements.define("mw-context-widget",it);var xc=Object.freeze({"lucide:arrow-up":u`
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
5
|
+
<path d="m5 12 7-7 7 7" />
|
|
6
|
+
<path d="M12 19V5" />
|
|
7
|
+
</svg>
|
|
8
|
+
`,"lucide:badge-alert":u`
|
|
9
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
10
|
+
<path d="M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z" />
|
|
11
|
+
<line x1="12" x2="12" y1="8" y2="12" />
|
|
12
|
+
<line x1="12" x2="12.01" y1="16" y2="16" />
|
|
13
|
+
</svg>
|
|
14
|
+
`,"lucide:check":u`
|
|
15
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
16
|
+
<path d="M20 6 9 17l-5-5" />
|
|
17
|
+
</svg>
|
|
18
|
+
`,"lucide:chevron-down":u`
|
|
19
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
20
|
+
<path d="m6 9 6 6 6-6" />
|
|
21
|
+
</svg>
|
|
22
|
+
`,"lucide:chevron-left":u`
|
|
23
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
24
|
+
<path d="m15 18-6-6 6-6" />
|
|
25
|
+
</svg>
|
|
26
|
+
`,"lucide:chevron-right":u`
|
|
27
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
28
|
+
<path d="m9 18 6-6-6-6" />
|
|
29
|
+
</svg>
|
|
30
|
+
`,"lucide:circle-check":u`
|
|
31
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
32
|
+
<circle cx="12" cy="12" r="10" />
|
|
33
|
+
<path d="m9 12 2 2 4-4" />
|
|
34
|
+
</svg>
|
|
35
|
+
`,"lucide:circle-x":u`
|
|
36
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
37
|
+
<circle cx="12" cy="12" r="10" />
|
|
38
|
+
<path d="m15 9-6 6" />
|
|
39
|
+
<path d="m9 9 6 6" />
|
|
40
|
+
</svg>
|
|
41
|
+
`,"lucide:file":u`
|
|
42
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
43
|
+
<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" />
|
|
44
|
+
<path d="M14 2v5a1 1 0 0 0 1 1h5" />
|
|
45
|
+
</svg>
|
|
46
|
+
`,"lucide:image":u`
|
|
47
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
48
|
+
<rect width="18" height="18" x="3" y="3" rx="2" ry="2" />
|
|
49
|
+
<circle cx="9" cy="9" r="2" />
|
|
50
|
+
<path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" />
|
|
51
|
+
</svg>
|
|
52
|
+
`,"lucide:image-plus":u`
|
|
53
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
54
|
+
<path d="M16 5h6" />
|
|
55
|
+
<path d="M19 2v6" />
|
|
56
|
+
<path d="M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5" />
|
|
57
|
+
<path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" />
|
|
58
|
+
<circle cx="9" cy="9" r="2" />
|
|
59
|
+
</svg>
|
|
60
|
+
`,"lucide:info":u`
|
|
61
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
62
|
+
<circle cx="12" cy="12" r="10" />
|
|
63
|
+
<path d="M12 16v-4" />
|
|
64
|
+
<path d="M12 8h.01" />
|
|
65
|
+
</svg>
|
|
66
|
+
`,"lucide:message-circle-plus":u`
|
|
67
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
68
|
+
<path d="M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719" />
|
|
69
|
+
<path d="M8 12h8" />
|
|
70
|
+
<path d="M12 8v8" />
|
|
71
|
+
</svg>
|
|
72
|
+
`,"lucide:loader-circle":u`
|
|
73
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
74
|
+
<path d="M21 12a9 9 0 1 1-6.219-8.56" />
|
|
75
|
+
</svg>
|
|
76
|
+
`,"lucide:star":u`
|
|
77
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
78
|
+
<path
|
|
79
|
+
d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z" />
|
|
80
|
+
</svg>
|
|
81
|
+
`,"lucide:sparkles":u`
|
|
82
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
83
|
+
<path
|
|
84
|
+
d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z" />
|
|
85
|
+
<path d="M20 2v4" />
|
|
86
|
+
<path d="M22 4h-4" />
|
|
87
|
+
<circle cx="4" cy="20" r="2" />
|
|
88
|
+
</svg>
|
|
89
|
+
`,"lucide:shopping-bag":u`
|
|
90
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
91
|
+
<path d="M16 10a4 4 0 0 1-8 0" />
|
|
92
|
+
<path d="M3.103 6.034h17.794" />
|
|
93
|
+
<path d="M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z" />
|
|
94
|
+
</svg>
|
|
95
|
+
`,"lucide:thumbs-down":u`
|
|
96
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
97
|
+
<path d="M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z" />
|
|
98
|
+
<path d="M17 14V2" />
|
|
99
|
+
</svg>
|
|
100
|
+
`,"lucide:thumbs-up":u`
|
|
101
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
102
|
+
<path d="M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z" />
|
|
103
|
+
<path d="M7 10v12" />
|
|
104
|
+
</svg>
|
|
105
|
+
`,"lucide:triangle-alert":u`
|
|
106
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
107
|
+
<path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" />
|
|
108
|
+
<path d="M12 9v4" />
|
|
109
|
+
<path d="M12 17h.01" />
|
|
110
|
+
</svg>
|
|
111
|
+
`,"lucide:x":u`
|
|
112
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
113
|
+
<path d="M18 6 6 18" />
|
|
114
|
+
<path d="m6 6 12 12" />
|
|
115
|
+
</svg>
|
|
116
|
+
`}),Hi=class extends v{static properties={name:{type:String},fill:{type:Boolean,reflect:!0}};static styles=O`
|
|
117
|
+
:host {
|
|
118
|
+
display: inline-block;
|
|
119
|
+
line-height: 0;
|
|
120
|
+
}
|
|
121
|
+
svg {
|
|
122
|
+
width: 100%;
|
|
123
|
+
height: 100%;
|
|
124
|
+
}
|
|
125
|
+
:host([fill]) svg {
|
|
126
|
+
fill: currentColor;
|
|
127
|
+
}
|
|
128
|
+
`;constructor(){super(),this.name,this.fill=!1}render(){if(!this.name)return null;let e=xc[this.name];return e||(console.warn(`mw-icon: '${this.name}' not found`),null)}};customElements.get("mw-icon")||customElements.define("mw-icon",Hi);function rn(t){return[...t.v,(t.i?"!":"")+t.n].join(":")}function kc(t,e=","){return t.map(rn).join(e)}var go=typeof CSS<"u"&&CSS.escape||(t=>t.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function kr(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 $r(t,e="@media "){return e+M(t).map(r=>(typeof r=="string"&&(r={min:r}),r.raw||Object.keys(r).map(i=>`(${i}-width:${r[i]})`).join(" and "))).join(",")}function M(t=[]){return Array.isArray(t)?t:t==null?[]:[t]}function co(t){return t}function Er(){}var F={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function yo(t){return t.match(/[-=:;]/g)?.length||0}function Ki(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(yo(t),15)<<18}var _c=["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 nn({n:t,i:e,v:r=[]},i,n,s){t&&(t=rn({n:t,i:e,v:r})),s=[...M(s)];for(let a of r){let l=i.theme("screens",a);for(let c of M(l&&$r(l)||i.v(a))){var o;s.push(c),n|=l?67108864|Ki(c):a=="dark"?1073741824:c[0]=="@"?Ki(c):(o=c,1<<~(/:([a-z-]+)/.test(o)&&~_c.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:t,p:n,r:s,i:e}}var bo=new Map;function Qi(t){if(t.d){let e=[],r=Gi(t.r.reduce((i,n)=>n[0]=="@"?(e.push(n),i):n?Gi(i,s=>Gi(n,o=>{let a=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(a){let l=s.indexOf(a[1]);return~l?s.slice(0,l)+a[0]+s.slice(l+a[1].length):Xi(s,o)}return Xi(o,s)})):i,"&"),i=>Xi(i,t.n?"."+go(t.n):""));return r&&e.push(r.replace(/:merge\((.+?)\)/g,"$1")),e.reduceRight((i,n)=>n+"{"+i+"}",t.d)}}function Gi(t,e){return t.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(r,i,n)=>e(i)+n)}function Xi(t,e){return t.replace(/&/g,e)}var uo=new Intl.Collator("en",{numeric:!0});function vo(t,e){for(var r=0,i=t.length;r<i;){let n=i+r>>1;0>=wo(t[n],e)?r=n+1:i=n}return i}function wo(t,e){let r=t.p&F.o;return r==(e.p&F.o)&&(r==F.b||r==F.o)?0:t.p-e.p||t.o-e.o||uo.compare(po(t.n),po(e.n))||uo.compare(ho(t.n),ho(e.n))}function po(t){return(t||"").split(/:/).pop().split("/").pop()||"\0"}function ho(t){return(t||"").replace(/\W/g,e=>String.fromCharCode(127+e.charCodeAt(0)))+"\0"}function Ji(t,e){return Math.round(parseInt(t,16)*e)}function te(t,e={}){if(typeof t=="function")return t(e);let{opacityValue:r="1",opacityVariable:i}=e,n=i?`var(${i})`:r;if(t.includes("<alpha-value>"))return t.replace("<alpha-value>",n);if(t[0]=="#"&&(t.length==4||t.length==7)){let s=(t.length-1)/3,o=[17,1,.062272][s-1];return`rgba(${[Ji(t.substr(1,s),o),Ji(t.substr(1+s,s),o),Ji(t.substr(1+2*s,s),o),n]})`}return n=="1"?t:n=="0"?"#0000":t.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${n})`)}function xo(t,e,r,i,n=[]){return(function s(o,{n:a,p:l,r:c=[],i:d},p){let h=[],y="",f=0,E=0;for(let b in o||{}){var x,$;let k=o[b];if(b[0]=="@"){if(!k)continue;if(b[1]=="a"){h.push(...on(a,l,Cr(""+k),p,l,c,d,!0));continue}if(b[1]=="l"){for(let S of M(k))h.push(...s(S,{n:a,p:(x=F[b[7]],l&~F.o|x),r:b[7]=="d"?[]:c,i:d},p));continue}if(b[1]=="i"){h.push(...M(k).map(S=>({p:-1,o:0,r:[],d:b+" "+S})));continue}if(b[1]=="k"){h.push({p:F.d,o:0,r:[b],d:s(k,{p:F.d},p).map(Qi).join("")});continue}if(b[1]=="f"){h.push(...M(k).map(S=>({p:F.d,o:0,r:[b],d:s(S,{p:F.d},p).map(Qi).join("")})));continue}}if(typeof k!="object"||Array.isArray(k))b=="label"&&k?a=k+kr(JSON.stringify([l,d,o])):(k||k===0)&&(b=b.replace(/[A-Z]/g,S=>"-"+S.toLowerCase()),E+=1,f=Math.max(f,($=b)[0]=="-"?0:yo($)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test($)?+!!RegExp.$1||-!!RegExp.$2:0)+1),y+=(y?";":"")+M(k).map(S=>p.s(b,sn(""+S,p.theme)+(d?" !important":""))).join(";"));else if(b[0]=="@"||b.includes("&")){let S=l;b[0]=="@"&&(b=b.replace(/\bscreen\(([^)]+)\)/g,(P,R)=>{let z=p.theme("screens",R);return z?(S|=67108864,$r(z,"")):P}),S|=Ki(b)),h.push(...s(k,{n:a,p:S,r:[...c,b],i:d},p))}else h.push(...s(k,{p:l,r:[...c,b]},p))}return h.unshift({n:a,p:l,o:Math.max(0,15-E)+1.5*Math.min(f||15,15),r:c,d:y}),h.sort(wo)})(t,nn(e,r,i,n),r)}function sn(t,e){return t.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(r,i,n,s,o="")=>{let a=e(n,o);return typeof a=="function"&&/color|fill|stroke/i.test(n)?te(a):""+M(a).filter(l=>Object(l)!==l)})}function ko(t,e){let r,i=[];for(let n of t)n.d&&n.n?r?.p==n.p&&""+r.r==""+n.r?(r.c=[r.c,n.c].filter(Boolean).join(" "),r.d=r.d+";"+n.d):i.push(r={...n,n:n.n&&e}):i.push({...n,n:n.n&&e});return i}function _r(t,e,r=F.u,i,n){let s=[];for(let o of t)for(let a of(function(l,c,d,p,h){l={...l,i:l.i||h};let y=(function(f,E){let x=bo.get(f.n);return x?x(f,E):E.r(f.n,f.v[0]=="dark")})(l,c);return y?typeof y=="string"?({r:p,p:d}=nn(l,c,d,p),ko(_r(Cr(y),c,d,p,l.i),l.n)):Array.isArray(y)?y.map(f=>{var E,x;return{o:0,...f,r:[...M(p),...M(f.r)],p:(E=d,x=f.p??d,E&~F.o|x)}}):xo(y,l,c,d,p):[{c:rn(l),p:0,o:0,r:[]}]})(o,e,r,i,n))s.splice(vo(s,a),0,a);return s}function on(t,e,r,i,n,s,o,a){return ko((a?r.flatMap(l=>_r([l],i,n,s,o)):_r(r,i,n,s,o)).map(l=>l.p&F.o&&(l.n||e==F.b)?{...l,p:l.p&~F.o|e,o:0}:l),t)}function Cc(t,e,r,i){var n;return n=(s,o)=>{let{n:a,p:l,r:c,i:d}=nn(s,o,e);return r&&on(a,e,r,o,l,c,d,i)},bo.set(t,n),t}function Yi(t,e,r){if(t[t.length-1]!="("){let i=[],n=!1,s=!1,o="";for(let a of t)if(!(a=="("||/[~@]$/.test(a))){if(a[0]=="!"&&(a=a.slice(1),n=!n),a.endsWith(":")){i[a=="dark:"?"unshift":"push"](a.slice(0,-1));continue}a[0]=="-"&&(a=a.slice(1),s=!s),a.endsWith("-")&&(a=a.slice(0,-1)),a&&a!="&"&&(o+=(o&&"-")+a)}o&&(s&&(o="-"+o),e[0].push({n:o,v:i.filter($c),i:n}))}}function $c(t,e,r){return r.indexOf(t)==e}var fo=new Map;function Cr(t){let e=fo.get(t);if(!e){let r=[],i=[[]],n=0,s=0,o=null,a=0,l=(c,d=0)=>{n!=a&&(r.push(t.slice(n,a+d)),c&&Yi(r,i)),n=a+1};for(;a<t.length;a++){let c=t[a];if(s)t[a-1]!="\\"&&(s+=+(c=="[")||-(c=="]"));else if(c=="[")s+=1;else if(o)t[a-1]!="\\"&&o.test(t.slice(a))&&(o=null,n=a+RegExp.lastMatch.length);else if(c=="/"&&t[a-1]!="\\"&&(t[a+1]=="*"||t[a+1]=="/"))o=t[a+1]=="*"?/^\*\//:/^[\r\n]/;else if(c=="(")l(),r.push(c);else if(c==":")t[a+1]!=":"&&l(!1,1);else if(/[\s,)]/.test(c)){l(!0);let d=r.lastIndexOf("(");if(c==")"){let p=r[d-1];if(/[~@]$/.test(p)){let h=i.shift();r.length=d,Yi([...r,"#"],i);let{v:y}=i[0].pop();for(let f of h)f.v.splice(+(f.v[0]=="dark")-+(y[0]=="dark"),y.length);Yi([...r,Cc(p.length>1?p.slice(0,-1)+kr(JSON.stringify([p,h])):p+"("+kc(h)+")",F.a,h,/@$/.test(p))],i)}d=r.lastIndexOf("(",d-1)}r.length=d+1}else/[~@]/.test(c)&&t[a+1]=="("&&i.unshift([])}l(!0),fo.set(t,e=i[0])}return e}function m(t,e,r){return[t,Zi(e,r)]}function Zi(t,e){return typeof t=="function"?t:typeof t=="string"&&/^[\w-]+$/.test(t)?(r,i)=>({[t]:e?e(r,i):en(r,1)}):r=>t||{[r[1]]:en(r,2)}}function en(t,e,r=t.slice(e).find(Boolean)||t.$$||t.input){return t.input[0]=="-"?`calc(${r} * -1)`:r}function g(t,e,r,i){return[t,an(e,r,i)]}function an(t,e,r){let i=typeof e=="string"?(n,s)=>({[e]:r?r(n,s):n._}):e||(({1:n,_:s},o,a)=>({[n||a]:s}));return(n,s)=>{let o=_o(t||n[1]),a=s.theme(o,n.$$)??ce(n.$$,o,s);if(a!=null)return n._=en(n,0,a),i(n,s,o)}}function q(t,e={},r){return[t,Ec(e,r)]}function Ec(t={},e){return(r,i)=>{let{section:n=_o(r[0]).replace("-","")+"Color"}=t,[s,o]=Sc(r.$$);if(!s)return;let a=i.theme(n,s)||ce(s,n,i);if(!a||typeof a=="object")return;let{opacityVariable:l=`--tw-${r[0].replace(/-$/,"")}-opacity`,opacitySection:c=n.replace("Color","Opacity"),property:d=n,selector:p}=t,h=i.theme(c,o||"DEFAULT")||o&&ce(o,c,i),y=e||(({_:E})=>{let x=Mt(d,E);return p?{[p]:x}:x});r._={value:te(a,{opacityVariable:l||void 0,opacityValue:h||void 0}),color:E=>te(a,E),opacityVariable:l||void 0,opacityValue:h||void 0};let f=y(r,i);if(!r.dark){let E=i.d(n,s,a);E&&E!==a&&(r._={value:te(E,{opacityVariable:l||void 0,opacityValue:h||"1"}),color:x=>te(E,x),opacityVariable:l||void 0,opacityValue:h||void 0},f={"&":f,[i.v("dark")]:y(r,i)})}return f}}function Sc(t){return(t.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function Mt(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 ce(t,e,r){if(t[0]=="["&&t.slice(-1)=="]"){if(t=nt(sn(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 _o(t){return t.replace(/-./g,e=>e[1].toUpperCase())}function nt(t){return t.includes("url(")?t.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,r="",i,n="")=>nt(r)+i+nt(n)):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 ln({presets:t=[],...e}){let r={darkMode:void 0,darkColor:void 0,preflight:e.preflight!==!1&&[],theme:{},variants:M(e.variants),rules:M(e.rules),ignorelist:M(e.ignorelist),hash:void 0,stringify:(i,n)=>i+":"+n,finalize:[]};for(let i of M([...t,{darkMode:e.darkMode,darkColor:e.darkColor,preflight:e.preflight!==!1&&M(e.preflight),theme:e.theme,hash:e.hash,stringify:e.stringify,finalize:e.finalize}])){let{preflight:n,darkMode:s=r.darkMode,darkColor:o=r.darkColor,theme:a,variants:l,rules:c,ignorelist:d,hash:p=r.hash,stringify:h=r.stringify,finalize:y}=typeof i=="function"?i(r):i;r={preflight:r.preflight!==!1&&n!==!1&&[...r.preflight,...M(n)],darkMode:s,darkColor:o,theme:{...r.theme,...a,extend:{...r.theme.extend,...a?.extend}},variants:[...r.variants,...M(l)],rules:[...r.rules,...M(c)],ignorelist:[...r.ignorelist,...M(d)],hash:p,stringify:h,finalize:[...r.finalize,...M(y)]}}return r}function mo(t,e,r,i,n,s){for(let o of e){let a=r.get(o);a||r.set(o,a=i(o));let l=a(t,n,s);if(l)return l}}function Ic(t){var e;return tn(t[0],typeof(e=t[1])=="function"?e:()=>e)}function Ac(t){var e,r;return Array.isArray(t)?tn(t[0],Zi(t[1],t[2])):tn(t,Zi(e,r))}function tn(t,e){return Co(t,(r,i,n,s)=>{let o=i.exec(r);if(o)return o.$$=r.slice(o[0].length),o.dark=s,e(o,n)})}function Co(t,e){let r=M(t).map(Tc);return(i,n,s)=>{for(let o of r){let a=e(i,o,n,s);if(a)return a}}}function Tc(t){return typeof t=="string"?RegExp("^"+t+(t.includes("$")||t.slice(-1)=="-"?"":"$")):t}function $o(t,e){let r=ln(t),i=(function({theme:l,darkMode:c,darkColor:d=Er,variants:p,rules:h,hash:y,stringify:f,ignorelist:E,finalize:x}){let $=new Map,b=new Map,k=new Map,S=new Map,P=Co(E,(T,W)=>W.test(T));p.push(["dark",Array.isArray(c)||c=="class"?`${M(c)[1]||".dark"} &`:typeof c=="string"&&c!="media"?c:"@media (prefers-color-scheme:dark)"]);let R=typeof y=="function"?T=>y(T,kr):y?kr:co;R!==co&&x.push(T=>({...T,n:T.n&&R(T.n),d:T.d?.replace(/--(tw(?:-[\w-]+)?)\b/g,(W,Y)=>"--"+R(Y).replace("#",""))}));let z={theme:(function({extend:T={},...W}){let Y={},ui={get colors(){return Ae("colors")},theme:Ae,negative(){return{}},breakpoints(L){let V={};for(let K in L)typeof L[K]=="string"&&(V["screen-"+K]=L[K]);return V}};return Ae;function Ae(L,V,K,bt){if(L){if({1:L,2:bt}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(L)||[,L],/[.[]/.test(L)){let fe=[];L.replace(/\[([^\]]+)\]|([^.[]+)/g,(De,wt,$l=wt)=>fe.push($l)),L=fe.shift(),K=V,V=fe.join("-")}let ae=Y[L]||Object.assign(Object.assign(Y[L]={},Kt(W,L)),Kt(T,L));if(V==null)return ae;V||(V="DEFAULT");let Te=ae[V]??V.split("-").reduce((fe,De)=>fe?.[De],ae)??K;return bt?te(Te,{opacityValue:sn(bt,Ae)}):Te}let vt={};for(let ae of[...Object.keys(W),...Object.keys(T)])vt[ae]=Ae(ae);return vt}function Kt(L,V){let K=L[V];return typeof K=="function"&&(K=K(ui)),K&&/color|fill|stroke/i.test(V)?(function bt(vt,ae=[]){let Te={};for(let fe in vt){let De=vt[fe],wt=[...ae,fe];Te[wt.join("-")]=De,fe=="DEFAULT"&&(wt=ae,Te[ae.join("-")]=De),typeof De=="object"&&Object.assign(Te,bt(De,wt))}return Te})(K):K}})(l),e:go,h:R,s(T,W){return f(T,W,z)},d(T,W,Y){return d(T,W,z,Y)},v(T){return $.has(T)||$.set(T,mo(T,p,b,Ic,z)||"&:"+T),$.get(T)},r(T,W){let Y=JSON.stringify([T,W]);return k.has(Y)||k.set(Y,!P(T,z)&&mo(T,h,S,Ac,z,W)),k.get(Y)},f(T){return x.reduce((W,Y)=>Y(W,z),T)}};return z})(r),n=new Map,s=[],o=new Set;e.resume(l=>n.set(l,l),(l,c)=>{e.insert(l,s.length,c),s.push(c),o.add(l)});function a(l){let c=i.f(l),d=Qi(c);if(d&&!o.has(d)){o.add(d);let p=vo(s,l);e.insert(d,p,l),s.splice(p,0,l)}return c.n}return Object.defineProperties(function(c){if(!n.size)for(let p of M(r.preflight))typeof p=="function"&&(p=p(i)),p&&(typeof p=="string"?on("",F.b,Cr(p),i,F.b,[],!1,!0):xo(p,{},i,F.b)).forEach(a);c=""+c;let d=n.get(c);if(!d){let p=new Set;for(let h of _r(Cr(c),i))p.add(h.c).add(a(h));d=[...p].filter(Boolean).join(" "),n.set(c,d).set(d,d)}return d},Object.getOwnPropertyDescriptors({get target(){return e.target},theme:i.theme,config:r,snapshot(){let l=e.snapshot(),c=new Set(o),d=new Map(n),p=[...s];return()=>{l(),o=c,n=d,s=p}},clear(){e.clear(),o=new Set,n=new Map,s=[]},destroy(){this.clear(),e.destroy()}}))}function Dc(t,e){return t!=e&&""+t.split(" ").sort()!=""+e.split(" ").sort()}function Eo(t){let e=new MutationObserver(r);return{observe(n){e.observe(n,{attributeFilter:["class"],subtree:!0,childList:!0}),i(n),r([{target:n,type:""}])},disconnect(){e.disconnect()}};function r(n){for(let{type:s,target:o}of n)if(s[0]=="a")i(o);else for(let a of o.querySelectorAll("[class]"))i(a);e.takeRecords()}function i(n){let s,o=n.getAttribute?.("class");o&&Dc(o,s=t(o))&&n.setAttribute("class",s)}}function Mc(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 Sr(t){let e=t?.cssRules?t:(t&&typeof t!="string"?t:Mc(t)).sheet;return{target:e,snapshot(){let r=Array.from(e.cssRules,i=>i.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,i){try{e.insertRule(r,i)}catch{e.insertRule(":root{}",i)}},resume:Er}}var Oc=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 So(t){return Oc.get(t)}function Io(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 Ao(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 Pc=[["-webkit-",1],["-moz-",2],["-ms-",4]];function To(){return({stringify:t})=>({stringify(e,r,i){let n="",s=So(e);s&&(n+=t(s,r,i)+";");let o=Io(e),a=Ao(e,r);for(let l of Pc)o&l[1]&&(n+=t(l[0]+e,r,i)+";"),a&l[1]&&(n+=t(e,l[0]+r,i)+";");return n+t(e,r,i)}})}function Mo(){return{rules:[["line-clamp-none",{"-webkit-line-clamp":"unset"}],["line-clamp-",an("lineClamp",({_:t})=>Do(t))],["line-clamp-(\\d+)",({1:t})=>Do(t)]]}}function Do(t){return{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":`${t}`}}var Pt={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",...Z(4,"rem",4,.5,.5),...Z(12,"rem",4,5),14:"3.5rem",...Z(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:I("blur"),backdropBrightness:I("brightness"),backdropContrast:I("contrast"),backdropGrayscale:I("grayscale"),backdropHueRotate:I("hueRotate"),backdropInvert:I("invert"),backdropOpacity:I("opacity"),backdropSaturate:I("saturate"),backdropSepia:I("sepia"),backgroundColor:I("colors"),backgroundImage:{none:"none"},backgroundOpacity:I("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:{...Z(200,"",100,0,50),...Z(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:t})=>({DEFAULT:t("colors.gray.200","currentColor"),...t("colors")}),borderOpacity:I("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:I("spacing"),borderWidth:{DEFAULT:"1px",...re(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:I("colors"),caretColor:I("colors"),accentColor:({theme:t})=>({auto:"auto",...t("colors")}),contrast:{...Z(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:I("borderColor"),divideOpacity:I("borderOpacity"),divideWidth:I("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"),...Ot(2,6),...Ot(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:I("spacing"),gradientColorStops:I("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"),...Ot(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:t})=>({...t("spacing"),...Ot(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:{...Z(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:{...Z(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:I("spacing"),placeholderColor:I("colors"),placeholderOpacity:I("opacity"),outlineColor:I("colors"),outlineOffset:re(8,"px"),outlineWidth:re(8,"px"),ringColor:({theme:t})=>({...t("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:I("colors"),ringOffsetWidth:re(8,"px"),ringOpacity:({theme:t})=>({...t("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...re(8,"px")},rotate:{...re(2,"deg"),...re(12,"deg",3),...re(180,"deg",45)},saturate:Z(200,"",100,0,50),scale:{...Z(150,"",100,0,50),...Z(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:I("spacing"),scrollPadding:I("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...re(2,"deg"),...re(12,"deg",3)},space:I("spacing"),stroke:({theme:t})=>({...t("colors"),none:"none"}),strokeWidth:Z(2),textColor:I("colors"),textDecorationColor:I("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...re(8,"px")},textUnderlineOffset:{auto:"auto",...re(8,"px")},textIndent:I("spacing"),textOpacity:I("opacity"),transitionDuration:({theme:t})=>({...t("durations"),DEFAULT:"150ms"}),transitionDelay:I("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"),...Ot(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:{...Z(50,"",1,0,10),auto:"auto"}};function Ot(t,e){let r={};do for(var i=1;i<t;i++)r[`${i}/${t}`]=Number((i/t*100).toFixed(6))+"%";while(++t<=e);return r}function re(t,e,r=0){let i={};for(;r<=t;r=2*r||1)i[r]=r+e;return i}function Z(t,e="",r=1,i=0,n=1,s={}){for(;i<=t;i+=n)s[i]=i/r+e;return s}function I(t){return({theme:e})=>e(t)}var Oo={"*,::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, ${Pt.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, ${Pt.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 Fo=[m("\\[([-\\w]+):(.+)]",({1:t,2:e},r)=>({"@layer overrides":{"&":{[t]:ce(`[${e}]`,"",r)}}})),m("(group|peer)([~/][^-[]+)?",({input:t},{h:e})=>[{c:e(t)}]),g("aspect-","aspectRatio"),m("container",(t,{theme:e})=>{let{screens:r=e("screens"),center:i,padding:n}=e("container"),s={width:"100%",marginRight:i&&"auto",marginLeft:i&&"auto",...o("xs")};for(let a in r){let l=r[a];typeof l=="string"&&(s[$r(l)]={"&":{maxWidth:l,...o(a)}})}return s;function o(a){let l=n&&(typeof n=="string"?n:n[a]||n.DEFAULT);if(l)return{paddingRight:l,paddingLeft:l}}}),g("content-","content",({_:t})=>({"--tw-content":t,content:"var(--tw-content)"})),m("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),m("box-(border|content)","boxSizing",({1:t})=>t+"-box"),m("hidden",{display:"none"}),m("table-(auto|fixed)","tableLayout"),m(["(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)",m("isolate","isolation"),m("object-(contain|cover|fill|none|scale-down)","objectFit"),g("object-","objectPosition"),m("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",Ir),m("overscroll(-[xy])?-(auto|contain|none)",({1:t="",2:e})=>({["overscroll-behavior"+t]:e})),m("(static|fixed|absolute|relative|sticky)","position"),g("-?inset(-[xy])?(?:$|-)","inset",({1:t,_:e})=>({top:t!="-x"&&e,right:t!="-y"&&e,bottom:t!="-x"&&e,left:t!="-y"&&e})),g("-?(top|bottom|left|right)(?:$|-)","inset"),m("(visible|collapse)","visibility"),m("invisible",{visibility:"hidden"}),g("-?z-","zIndex"),m("flex-((row|col)(-reverse)?)","flexDirection",Po),m("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),g("(flex-(?:grow|shrink))(?:$|-)"),g("(flex)-"),g("grow(?:$|-)","flexGrow"),g("shrink(?:$|-)","flexShrink"),g("basis-","flexBasis"),g("-?(order)-"),"-?(order)-(\\d+)",g("grid-cols-","gridTemplateColumns"),m("grid-cols-(\\d+)","gridTemplateColumns",Ro),g("col-","gridColumn"),m("col-(span)-(\\d+)","gridColumn",jo),g("col-start-","gridColumnStart"),m("col-start-(auto|\\d+)","gridColumnStart"),g("col-end-","gridColumnEnd"),m("col-end-(auto|\\d+)","gridColumnEnd"),g("grid-rows-","gridTemplateRows"),m("grid-rows-(\\d+)","gridTemplateRows",Ro),g("row-","gridRow"),m("row-(span)-(\\d+)","gridRow",jo),g("row-start-","gridRowStart"),m("row-start-(auto|\\d+)","gridRowStart"),g("row-end-","gridRowEnd"),m("row-end-(auto|\\d+)","gridRowEnd"),m("grid-flow-((row|col)(-dense)?)","gridAutoFlow",t=>Ir(Po(t))),m("grid-flow-(dense)","gridAutoFlow"),g("auto-cols-","gridAutoColumns"),g("auto-rows-","gridAutoRows"),g("gap-x(?:$|-)","gap","columnGap"),g("gap-y(?:$|-)","gap","rowGap"),g("gap(?:$|-)","gap"),"(justify-(?:items|self))-",m("justify-","justifyContent",Uo),m("(content|items|self)-",t=>({["align-"+t[1]]:Uo(t)})),m("(place-(content|items|self))-",({1:t,$$:e})=>({[t]:("wun".includes(e[3])?"space-":"")+e})),g("p([xytrbl])?(?:$|-)","padding",st("padding")),g("-?m([xytrbl])?(?:$|-)","margin",st("margin")),g("-?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))`}})),m("space-(x|y)-reverse",({1:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${t}-reverse`]:"1"}})),g("w-","width"),g("min-w-","minWidth"),g("max-w-","maxWidth"),g("h-","height"),g("min-h-","minHeight"),g("max-h-","maxHeight"),g("font-","fontWeight"),g("font-","fontFamily",({_:t})=>typeof(t=M(t))[1]=="string"?{fontFamily:oe(t)}:{fontFamily:oe(t[0]),...t[1]}),m("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),m("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),m("italic","fontStyle"),m("not-italic",{fontStyle:"normal"}),m("(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)",...Ce({"--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,/*!*/ /*!*/)"})}),g("tracking-","letterSpacing"),g("leading-","lineHeight"),m("list-(inside|outside)","listStylePosition"),g("list-","listStyleType"),m("list-","listStyleType"),g("placeholder-opacity-","placeholderOpacity",({_:t})=>({"&::placeholder":{"--tw-placeholder-opacity":t}})),q("placeholder-",{property:"color",selector:"&::placeholder"}),m("text-(left|center|right|justify|start|end)","textAlign"),m("text-(ellipsis|clip)","textOverflow"),g("text-opacity-","textOpacity","--tw-text-opacity"),q("text-",{property:"color"}),g("text-","fontSize",({_:t})=>typeof t=="string"?{fontSize:t}:{fontSize:t[0],...typeof t[1]=="string"?{lineHeight:t[1]}:t[1]}),g("indent-","textIndent"),m("(overline|underline|line-through)","textDecorationLine"),m("no-underline",{textDecorationLine:"none"}),g("underline-offset-","textUnderlineOffset"),q("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),g("decoration-","textDecorationThickness"),m("decoration-","textDecorationStyle"),m("(uppercase|lowercase|capitalize)","textTransform"),m("normal-case",{textTransform:"none"}),m("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),m("align-","verticalAlign"),m("whitespace-","whiteSpace"),m("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),m("break-words",{overflowWrap:"break-word"}),m("break-all",{wordBreak:"break-all"}),m("break-keep",{wordBreak:"keep-all"}),q("caret-",{opacityVariable:!1,opacitySection:"opacity"}),q("accent-",{opacityVariable:!1,opacitySection:"opacity"}),m("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:t})=>`linear-gradient(to ${Re(t," ")},var(--tw-gradient-stops))`),q("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)"})),q("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)`})),q("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),m("bg-(fixed|local|scroll)","backgroundAttachment"),m("bg-origin-(border|padding|content)","backgroundOrigin",({1:t})=>t+"-box"),m(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),m("bg-blend-","backgroundBlendMode"),m("bg-clip-(border|padding|content|text)","backgroundClip",({1:t})=>t+(t=="text"?"":"-box")),g("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),q("bg-",{section:"backgroundColor"}),g("bg-","backgroundImage"),g("bg-","backgroundPosition"),m("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",Ir),g("bg-","backgroundSize"),g("rounded(?:$|-)","borderRadius"),g("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-${Re(r[0])}-radius`]:e,[`border-${Re(r[1])}-radius`]:e}}),m("border-(collapse|separate)","borderCollapse"),g("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),m("border-(solid|dashed|dotted|double|none)","borderStyle"),g("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:t,_:e})=>({...Ce({"--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)"})),q("border-([xytrbl])-",{section:"borderColor"},st("border","Color")),q("border-"),g("border-([xytrbl])(?:$|-)","borderWidth",st("border","Width")),g("border(?:$|-)","borderWidth"),g("divide-opacity(?:$|-)","divideOpacity",({_:t})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":t}})),m("divide-(solid|dashed|dotted|double|none)",({1:t})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:t}})),m("divide-([xy]-reverse)",({1:t})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+t]:"1"}})),g("divide-([xy])(?:$|-)","divideWidth",({1:t,_:e})=>{let r={x:"lr",y:"tb"}[t];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${t}-reverse`]:"0",[`border-${Re(r[0])}Width`]:`calc(${e} * calc(1 - var(--tw-divide-${t}-reverse)))`,[`border-${Re(r[1])}Width`]:`calc(${e} * var(--tw-divide-${t}-reverse))`}}}),q("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),g("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),q("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),g("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),m("ring-inset",{"--tw-ring-inset":"inset"}),q("ring-",{property:"--tw-ring-color"}),g("ring(?:$|-)","ringWidth",({_:t},{theme:e})=>({...Ce({"--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":te(e("ringOffsetColor","","#fff")),"--tw-ring-color":te(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)"})),q("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-shadow-color":t.value,"--tw-shadow":"var(--tw-shadow-colored)"})),g("shadow(?:$|-)","boxShadow",({_:t})=>({...Ce({"--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":oe(t),"--tw-shadow-colored":oe(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)"})),g("(opacity)-"),m("mix-blend-","mixBlendMode"),...Lo(),...Lo("backdrop-"),g("transition(?:$|-)","transitionProperty",(t,{theme:e})=>({transitionProperty:oe(t),transitionTimingFunction:t._=="none"?void 0:oe(e("transitionTimingFunction","")),transitionDuration:t._=="none"?void 0:oe(e("transitionDuration",""))})),g("duration(?:$|-)","transitionDuration","transitionDuration",oe),g("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",oe),g("delay(?:$|-)","transitionDelay","transitionDelay",oe),g("animate(?:$|-)","animation",(t,{theme:e,h:r,e:i})=>{let n=oe(t),s=n.split(" "),o=e("keyframes",s[0]);return o?{["@keyframes "+(s[0]=i(r(s[0])))]:o,animation:s.join(" ")}:{animation:n}}),"(transform)-(none)",m("transform",un),m("transform-(cpu|gpu)",({1:t})=>({"--tw-transform":qo(t=="gpu")})),g("scale(-[xy])?-","scale",({1:t,_:e})=>({["--tw-scale"+(t||"-x")]:e,["--tw-scale"+(t||"-y")]:e,...un()})),g("-?(rotate)-","rotate",cn),g("-?(translate-[xy])-","translate",cn),g("-?(skew-[xy])-","skew",cn),m("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",Ir),"(appearance)-",g("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",g("(cursor)-"),"(cursor)-",m("snap-(none)","scroll-snap-type"),m("snap-(x|y|both)",({1:t})=>({...Ce({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":t+" var(--tw-scroll-snap-strictness)"})),m("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),m("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),m("snap-(normal|always)","scroll-snap-stop"),m("scroll-(auto|smooth)","scroll-behavior"),g("scroll-p([xytrbl])?(?:$|-)","padding",st("scroll-padding")),g("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",st("scroll-margin")),m("touch-(auto|none|manipulation)","touch-action"),m("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:t,2:e,3:r})=>({...Ce({"--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)"})),m("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),m("outline",{outlineStyle:"solid"}),m("outline-(dashed|dotted|double)","outlineStyle"),g("-?(outline-offset)-"),q("outline-",{opacityVariable:!1,opacitySection:"opacity"}),g("outline-","outlineWidth"),"(pointer-events)-",g("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:t})=>({x:"horizontal",y:"vertical"})[t]||t||"both"],m("select-(none|text|all|auto)","userSelect"),q("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),q("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),g("stroke-","strokeWidth"),m("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),m("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function Ir(t){return(typeof t=="string"?t:t[1]).replace(/-/g," ").trim()}function Po(t){return(typeof t=="string"?t:t[1]).replace("col","column")}function Re(t,e="-"){let r=[];for(let i of t)r.push({t:"top",r:"right",b:"bottom",l:"left"}[i]);return r.join(e)}function oe(t){return t&&""+(t._||t)}function Uo({$$:t}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[t[3]||""]||"")+t}function st(t,e=""){return({1:r,_:i})=>{let n={x:"lr",y:"tb"}[r]||r+r;return n?{...Mt(t+"-"+Re(n[0])+e,i),...Mt(t+"-"+Re(n[1])+e,i)}:Mt(t+e,i)}}function Lo(t=""){let e=["blur","brightness","contrast","grayscale","hue-rotate","invert",t&&"opacity","saturate","sepia",!t&&"drop-shadow"].filter(Boolean),r={};for(let i of e)r[`--tw-${t}${i}`]="var(--tw-empty,/*!*/ /*!*/)";return r={...Ce(r),[`${t}filter`]:e.map(i=>`var(--tw-${t}${i})`).join(" ")},[`(${t}filter)-(none)`,m(`${t}filter`,r),...e.map(i=>g(`${i[0]=="h"?"-?":""}(${t}${i})(?:$|-)`,i,({1:n,_:s})=>({[`--tw-${n}`]:M(s).map(o=>`${i}(${o})`).join(" "),...r})))]}function cn({1:t,_:e}){return{["--tw-"+t]:e,...un()}}function un(){return{...Ce({"--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 Ro({1:t}){return`repeat(${t},minmax(0,1fr))`}function Ce(t){return{"@layer defaults":{"*,::before,::after":t,"::backdrop":t}}}var Bo=[["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)||ce(e,"",r)||`${e}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:t,3:e="",4:r,5:i="",6:n=e},{e:s,h:o,v:a})=>{let l=nt(i)||(r[0]=="["?r:a(r.slice(1)));return`${(l.includes("&")?l:"&"+l).replace(/&/g,`:merge(.${s(o(t+n))})`)}${t[0]=="p"?"~":" "}&`}],["(ltr|rtl)",({1:t})=>`[dir="${t}"] &`],["supports-",({$$:t},e)=>{if(t&&(t=e.theme("supports",t)||ce(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)||ce(t,"",e)),typeof t=="string")return`@media not all and (min-width:${t})`}],["min-",({$$:t},e)=>(t&&(t=ce(t,"",e)),t&&`@media (min-width:${t})`)],[/^\[(.+)]$/,({1:t})=>/[&@]/.test(t)&&nt(t).replace(/[}]+$/,"").split("{")]];function No({colors:t,disablePreflight:e}={}){return{preflight:e?void 0:Oo,theme:{...Pt,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...t}},variants:Bo,rules:Fo,finalize(r){return r.n&&r.d&&r.r.some(i=>/^&::(before|after)$/.test(i))&&!/(^|;)content:/.test(r.d)?{...r,d:"content:var(--tw-content);"+r.d}:r}}}var Uc={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},Lc={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},jc={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},Rc={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},Fc={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},qc={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},Bc={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},Nc={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},zc={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},Wc={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},Vc={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},Hc={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},Gc={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},Xc={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},Jc={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},Yc={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},Kc={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},Qc={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},Zc={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},eu={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},tu={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},ru={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},zo={__proto__:null,slate:Uc,gray:Lc,zinc:jc,neutral:Rc,stone:Fc,red:qc,orange:Bc,amber:Nc,yellow:zc,lime:Wc,green:Vc,emerald:Hc,teal:Gc,cyan:Xc,sky:Jc,blue:Yc,indigo:Kc,violet:Qc,purple:Zc,fuchsia:eu,pink:tu,rose:ru};function Wo({disablePreflight:t}={}){return No({colors:zo,disablePreflight:t})}function Go({className:t="prose",defaultColor:e="gray",extend:r={},colors:i={}}={}){return i={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",...i,dark:i.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",...i.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}`,(a,l)=>Xo(t,o[0]=="."?"."+l.e(l.h(o.slice(1))):o,l,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 a=Ho(o.theme("fontSize",s));return a&&{"@layer components":a}}],[t+"-",({$$:s},o)=>n(s,o)],[t,(s,o)=>({...n(e,o),"@layer base":[Vo(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:_(20,16),marginBottom:_(20,16),paddingLeft:_(26,16)},li:{marginTop:_(8,16),marginBottom:_(8,16)},"ol>li,ul>li":{paddingLeft:_(6,16)},">ul>li p":{marginTop:_(12,16),marginBottom:_(12,16)},">ul>li>*:first-child,>ol>li>*:last-child":{marginTop:_(20,16)},">ul>li>*:last-child,>ol>li>*:last-child":{marginBottom:_(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:_(12,16),marginBottom:_(12,16)},hr:{borderColor:"var(--tw-prose-hr)",borderTopWidth:"1",marginTop:_(48,16),marginBottom:_(48,16)},blockquote:{marginTop:_(32,20),marginBottom:_(32,20),paddingLeft:_(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:_(20,16),marginBottom:_(20,16)},h1:{color:"var(--tw-prose-headings)",fontWeight:"800",fontSize:_(36,16),marginTop:"0",marginBottom:_(32,36),lineHeight:1.15},"h1 strong":{fontWeight:"900",color:"inherit"},h2:{color:"var(--tw-prose-headings)",fontWeight:"700",fontSize:_(24,16),marginTop:_(48,24),marginBottom:_(24,24),lineHeight:"1.35"},"h2 strong":{fontWeight:"800",color:"inherit"},h3:{color:"var(--tw-prose-headings)",fontWeight:"600",fontSize:_(20,16),marginTop:_(32,20),marginBottom:_(12,20),lineHeight:"1.6"},"h3 strong":{fontWeight:"700",color:"inherit"},h4:{color:"var(--tw-prose-headings)",fontWeight:"600",marginTop:_(24,16),marginBottom:_(8,16),lineHeight:"1.5"},"h4 strong":{fontWeight:"700",color:"inherit"},"hr+*,h2+*,h3+*,h4+*":{marginTop:"0"},"img,video,figure":{marginTop:_(32,16),marginBottom:_(32,16)},"figure>*":{marginTop:"0",marginBottom:"0"},figcaption:{color:"var(--tw-prose-captions)",fontSize:_(14,16),lineHeight:"1.4",marginTop:_(12,14)},code:{color:"var(--tw-prose-code)",fontWeight:"600",fontSize:_(14,16)},"code::before,code::after":{content:'"`"'},"h2 code":{fontSize:_(21,24)},"h3 code":{fontSize:_(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:_(14,16),lineHeight:"1.7",marginTop:_(24,14),marginBottom:_(24,14),borderRadius:"0.375rem",paddingTop:_(12,14),paddingRight:_(16,14),paddingBottom:_(12,14),paddingLeft:_(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:_(32,16),marginBottom:_(32,16),fontSize:_(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:_(8,14),paddingBottom:_(8,14),paddingLeft:_(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:_(8,14),paddingRight:_(8,14),paddingBottom:_(8,14),paddingLeft:_(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:_(20,16),lineHeight:"1.6",marginTop:_(24,20),marginBottom:_(24,20)},">:first-child":{marginTop:"0"},">:last-child":{marginBottom:"0"}}),Vo(t,o,r)],"@layer components":{...Ho(o.theme("fontSize","base")),color:"var(--tw-prose-body)",maxWidth:"theme(max-w.prose, 65ch)"}})]]};function n(s,o){let a={},l={},c=(d,p,h)=>{let y=o.theme(`colors.${s}.${p}`,p);h["--tw-prose-"+d]=te(y);let f=h!=l&&o.d("colors",`${s}-${p}`,y);f&&(l["--tw-prose-"+d]=te(f))};for(let d in i){let p=i[d];d!="dark"&&p&&c(d,p,a)}for(let d in i.dark||{}){let p=i.dark[d];p&&(i.dark?c("invert-"+d,p,a):c(d,p,l))}return Object.keys(a).length?{"@layer defaults":{"&":a,[o.v("dark")]:l}}:void 0}}function Vo(t,e,r){let i={};for(let n in r)i[Xo(t,n,e,s=>`.${e.e(e.h(t))}${s}`)]=r[n];return i}function Xo(t,e,{e:r,h:i},n){return e.replace(/^[^>:]+$|(>)?((?:[^:,]+(?::[\w-]+)?)|:[\w-]+)(::[\w-]+)?/g,(s,o=" ",a=s,l="")=>n(`${o}:where(${a}):not(:where(.${r(i("not-"+t))} *))${l}`))}function Ho(t){return t?typeof t=="string"?{fontSize:t}:{fontSize:t[0],...typeof t[1]=="string"?{lineHeight:t[1]}:t[1]}:void 0}function _(t,e){return`${(t/e).toFixed(3).replace(/^0|\.?0+$/g,"")}em`}var dn=ln({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:[Wo(),To(),Mo(),Go()]});function Jo(t,e=!0){let r=(function(){if(iu)try{let l=Sr(new CSSStyleSheet);return l.connect=c=>{let d=pn(c);d.adoptedStyleSheets=[...d.adoptedStyleSheets,l.target]},l.disconnect=Er,l}catch{}let s=document.createElement("style");s.media="not all",document.head.prepend(s);let o=[Sr(s)],a=new WeakMap;return{get target(){return o[0].target},snapshot(){let l=o.map(c=>c.snapshot());return()=>l.forEach(c=>c())},clear(){o.forEach(l=>l.clear())},destroy(){o.forEach(l=>l.destroy())},insert(l,c,d){o[0].insert(l,c,d);let p=this.target.cssRules[c];o.forEach((h,y)=>y&&h.target.insertRule(p.cssText,c))},resume(l,c){return o[0].resume(l,c)},connect(l){let c=document.createElement("style");pn(l).appendChild(c);let d=Sr(c),{cssRules:p}=this.target;for(let h=0;h<p.length;h++)d.target.insertRule(p[h].cssText,h);o.push(d),a.set(l,d)},disconnect(l){let c=o.indexOf(a.get(l));c>=0&&o.splice(c,1)}}})(),i=$o({...t,hash:t.hash??e},r),n=Eo(i);return function(o){return class extends o{connectedCallback(){super.connectedCallback?.(),r.connect(this),n.observe(pn(this))}disconnectedCallback(){r.disconnect(this),super.disconnectedCallback?.()}constructor(...l){super(...l),this.tw=i}}}}var iu=typeof ShadowRoot<"u"&&(typeof ShadyCSS>"u"||ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;function pn(t){return t.shadowRoot||t.attachShadow({mode:"open"})}var w=t=>Jo(dn)(t);var hn=class extends w(v){static properties={color:{type:String},radius:{type:String},size:{type:String},border:{type:String},darkMode:{type:Boolean,attribute:"dark-mode"}};static styles=O`
|
|
145
129
|
:host {
|
|
146
130
|
display: block;
|
|
147
131
|
}
|
|
@@ -181,7 +165,7 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
181
165
|
<slot></slot>
|
|
182
166
|
</div>
|
|
183
167
|
</div>
|
|
184
|
-
`}};customElements.get("mw-spinning-border")||customElements.define("mw-spinning-border",
|
|
168
|
+
`}};customElements.get("mw-spinning-border")||customElements.define("mw-spinning-border",hn);var fn=class extends w(v){static properties={state:{type:String},color:{type:String},bubbleStyle:{type:String},src:{type:String},width:{type:String},height:{type:String}};static styles=O`
|
|
185
169
|
.shadow-button {
|
|
186
170
|
box-shadow:
|
|
187
171
|
-58.9194px 74.8436px 38.218px rgba(0, 0, 0, 0.01),
|
|
@@ -239,14 +223,12 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
239
223
|
<div
|
|
240
224
|
class="${this.state==="close"?"visible opacity-100":"invisible opacity-0"} absolute top-0 right-0 bottom-0 left-0 inline-flex items-center justify-center bg-slate-800 transition-[opacity,visibility]">
|
|
241
225
|
<!-- down arrow -->
|
|
242
|
-
<
|
|
243
|
-
<path stroke-linecap="round" stroke-linejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5" />
|
|
244
|
-
</svg>
|
|
226
|
+
<mw-icon class="h-8 w-8" name="lucide:chevron-down"></mw-icon>
|
|
245
227
|
</div>
|
|
246
228
|
</button>
|
|
247
229
|
</mw-spinning-border>
|
|
248
230
|
</div>
|
|
249
|
-
`};customElements.get("mw-bubble")||customElements.define("mw-bubble",
|
|
231
|
+
`};customElements.get("mw-bubble")||customElements.define("mw-bubble",fn);var Ar={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Tr=t=>(...e)=>({_$litDirective$:t,values:e}),ot=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,i){this._$Ct=e,this._$AM=r,this._$Ci=i}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:nu}=Ts,Yo=t=>t;var Ko=()=>document.createComment(""),at=(t,e,r)=>{let i=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(r===void 0){let s=i.insertBefore(Ko(),n),o=i.insertBefore(Ko(),n);r=new nu(s,o,t,t.options)}else{let s=r._$AB.nextSibling,o=r._$AM,a=o!==t;if(a){let l;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(l=t._$AU)!==o._$AU&&r._$AP(l)}if(s!==n||a){let l=r._$AA;for(;l!==s;){let c=Yo(l).nextSibling;Yo(i).insertBefore(l,n),l=c}}}return r},$e=(t,e,r=t)=>(t._$AI(e,r),t),su={},Qo=(t,e=su)=>t._$AH=e,Zo=t=>t._$AH,Dr=t=>{t._$AR(),t._$AA.remove()};var ea=(t,e,r)=>{let i=new Map;for(let n=e;n<=r;n++)i.set(t[n],n);return i},X=Tr(class extends ot{constructor(t){if(super(t),t.type!==Ar.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let i;r===void 0?r=e:e!==void 0&&(i=e);let n=[],s=[],o=0;for(let a of t)n[o]=i?i(a,o):o,s[o]=r(a,o),o++;return{values:s,keys:n}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,i]){let n=Zo(t),{values:s,keys:o}=this.dt(e,r,i);if(!Array.isArray(n))return this.ut=o,s;let a=this.ut??=[],l=[],c,d,p=0,h=n.length-1,y=0,f=s.length-1;for(;p<=h&&y<=f;)if(n[p]===null)p++;else if(n[h]===null)h--;else if(a[p]===o[y])l[y]=$e(n[p],s[y]),p++,y++;else if(a[h]===o[f])l[f]=$e(n[h],s[f]),h--,f--;else if(a[p]===o[f])l[f]=$e(n[p],s[f]),at(t,l[f+1],n[p]),p++,f--;else if(a[h]===o[y])l[y]=$e(n[h],s[y]),at(t,n[p],n[h]),h--,y++;else if(c===void 0&&(c=ea(o,y,f),d=ea(a,p,h)),c.has(a[p]))if(c.has(a[h])){let E=d.get(o[y]),x=E!==void 0?n[E]:null;if(x===null){let $=at(t,n[p]);$e($,s[y]),l[y]=$}else l[y]=$e(x,s[y]),at(t,n[p],x),n[E]=null;y++}else Dr(n[h]),h--;else Dr(n[p]),p++;for(;y<=f;){let E=at(t,l[f+1]);$e(E,s[y]),l[y++]=E}for(;p<=h;){let E=n[p++];E!==null&&Dr(E)}return this.ut=o,Qo(t,l),ne}});var Ut=class t extends w(v){static properties={examples:{type:Object},color:{type:String},darkMode:{type:Boolean,attribute:"dark-mode"}};constructor(){super(),this.examples={title:"",items:[]},this.color="",this.darkMode=!1}render(){return!this.examples?.title&&!this.examples?.items?.length?null:u`
|
|
250
232
|
<div class="${this.darkMode?"dark":""} flex h-full w-full flex-1 flex-col overflow-y-auto px-4 pt-6 pb-2">
|
|
251
233
|
${this.examples.title?u`
|
|
252
234
|
<h2 class="mt-14 px-2 pt-9 pb-2 text-left text-3xl leading-tight font-bold tracking-tight text-black dark:text-white">
|
|
@@ -265,7 +247,7 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
265
247
|
</ul>
|
|
266
248
|
`:null}
|
|
267
249
|
</div>
|
|
268
|
-
`}#e(e){this.dispatchEvent(new t.ExampleClickEvent({example:e}))}};
|
|
250
|
+
`}#e(e){this.dispatchEvent(new t.ExampleClickEvent({example:e}))}};Ut.ExampleClickEvent=class extends CustomEvent{static type="mw:example-click";constructor(e,r={}){super(Ut.ExampleClickEvent.type,{detail:e,...r})}};customElements.get("mw-chat-background")||customElements.define("mw-chat-background",Ut);var ye=class t extends w(v){static properties={content:{type:Object},showNewChat:{type:Boolean,attribute:"show-new-chat"},showClose:{type:Boolean,attribute:"show-close"},showExpand:{type:Boolean,attribute:"show-expand"},expanded:{type:Boolean},darkMode:{type:Boolean,attribute:"dark-mode"}};static styles=O`
|
|
269
251
|
/* blurred background */
|
|
270
252
|
|
|
271
253
|
[part='gradient-blur'] {
|
|
@@ -282,7 +264,7 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
282
264
|
/* bg-color gradient for dark mode */
|
|
283
265
|
background-image: linear-gradient(to bottom, #2b2d31 20%, transparent);
|
|
284
266
|
}
|
|
285
|
-
`;render(){return u`
|
|
267
|
+
`;constructor(){super(),this.content={logoUrl:"",title:"",color:""},this.showNewChat=!1,this.showClose=!1,this.showExpand=!1,this.expanded=!1,this.darkMode=!1}render(){return u`
|
|
286
268
|
<div class="${this.darkMode?"dark":""} relative z-10 h-12">
|
|
287
269
|
<div part="gradient-blur" class="absolute inset-x-0.5 mt-2 h-12"></div>
|
|
288
270
|
|
|
@@ -304,23 +286,20 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
304
286
|
<!-- spacer to push other elements to the sides -->
|
|
305
287
|
<div class="flex-grow"></div>
|
|
306
288
|
|
|
289
|
+
<!-- expand/collapse btn (desktop only, hidden on mobile) -->
|
|
290
|
+
<button @click=${this.#t} type="button" class="${this.showExpand?"hidden sm:inline-flex":"hidden"} shrink-0">
|
|
291
|
+
<lucide-icon class="h-5 w-5 text-white dark:text-black" name="${this.expanded?"minimize-2":"maximize-2"}"></lucide-icon>
|
|
292
|
+
</button>
|
|
293
|
+
|
|
307
294
|
<!-- new chat btn -->
|
|
308
295
|
<button @click=${this.#e} type="button" class="${this.showNewChat?"inline-flex":"hidden"} shrink-0">
|
|
309
|
-
|
|
310
|
-
<svg class="h-6 w-6 fill-white dark:fill-black" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 37 36">
|
|
311
|
-
<path
|
|
312
|
-
fill-rule="evenodd"
|
|
313
|
-
d="M36.201 17.62c0 10.996-6.18 17.181-17.17 17.181-3.236 0-6.055-.536-8.422-1.574l-8.084 2.697c-1.136.379-2.206-.722-1.797-1.848l2.823-7.77c-1.113-2.42-1.69-5.33-1.69-8.687C1.862 6.623 8.044.438 19.032.438c10.99 0 17.17 6.185 17.17 17.181Zm-15.88-8.653a1.355 1.355 0 0 0-2.71 0v7.897H9.716a1.355 1.355 0 1 0 0 2.71h7.897v7.896a1.355 1.355 0 1 0 2.71 0v-7.896h7.896a1.355 1.355 0 1 0 0-2.71h-7.896V8.967Z"
|
|
314
|
-
clip-rule="evenodd" />
|
|
315
|
-
</svg>
|
|
296
|
+
<mw-icon class="h-6 w-6 text-white dark:text-black" name="lucide:message-circle-plus"></mw-icon>
|
|
316
297
|
</button>
|
|
317
298
|
|
|
318
299
|
<!-- close chat btn -->
|
|
319
|
-
<button @click=${this.#
|
|
300
|
+
<button @click=${this.#r} class="${this.showClose?"inline-flex":"hidden"} shrink-0">
|
|
320
301
|
<!-- svg icon of an X -->
|
|
321
|
-
<
|
|
322
|
-
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" />
|
|
323
|
-
</svg>
|
|
302
|
+
<mw-icon class="h-6 w-6 text-white dark:text-black" name="lucide:x"></mw-icon>
|
|
324
303
|
</button>
|
|
325
304
|
</div>
|
|
326
305
|
|
|
@@ -331,1348 +310,7 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
331
310
|
</div>
|
|
332
311
|
</div>
|
|
333
312
|
</div>
|
|
334
|
-
`}#e(){this.dispatchEvent(new t.NewChatClickEvent)}#t(){this.dispatchEvent(new t.CloseClickEvent)}};
|
|
335
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
336
|
-
width="24"
|
|
337
|
-
height="24"
|
|
338
|
-
viewBox="0 0 24 24"
|
|
339
|
-
fill="none"
|
|
340
|
-
stroke="currentColor"
|
|
341
|
-
stroke-width="2"
|
|
342
|
-
stroke-linecap="round"
|
|
343
|
-
stroke-linejoin="round"
|
|
344
|
-
>
|
|
345
|
-
<path d="M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1" />
|
|
346
|
-
<path d="m12 15 5 6H7Z" />
|
|
347
|
-
</svg>`,"arrow-down-up":`<svg
|
|
348
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
349
|
-
width="24"
|
|
350
|
-
height="24"
|
|
351
|
-
viewBox="0 0 24 24"
|
|
352
|
-
fill="none"
|
|
353
|
-
stroke="currentColor"
|
|
354
|
-
stroke-width="2"
|
|
355
|
-
stroke-linecap="round"
|
|
356
|
-
stroke-linejoin="round"
|
|
357
|
-
>
|
|
358
|
-
<path d="m3 16 4 4 4-4" />
|
|
359
|
-
<path d="M7 20V4" />
|
|
360
|
-
<path d="m21 8-4-4-4 4" />
|
|
361
|
-
<path d="M17 4v16" />
|
|
362
|
-
</svg>`,"arrow-down-wide-narrow":`<svg
|
|
363
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
364
|
-
width="24"
|
|
365
|
-
height="24"
|
|
366
|
-
viewBox="0 0 24 24"
|
|
367
|
-
fill="none"
|
|
368
|
-
stroke="currentColor"
|
|
369
|
-
stroke-width="2"
|
|
370
|
-
stroke-linecap="round"
|
|
371
|
-
stroke-linejoin="round"
|
|
372
|
-
>
|
|
373
|
-
<path d="m3 16 4 4 4-4" />
|
|
374
|
-
<path d="M7 20V4" />
|
|
375
|
-
<path d="M11 4h10" />
|
|
376
|
-
<path d="M11 8h7" />
|
|
377
|
-
<path d="M11 12h4" />
|
|
378
|
-
</svg>`,"arrow-down":`<svg
|
|
379
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
380
|
-
width="24"
|
|
381
|
-
height="24"
|
|
382
|
-
viewBox="0 0 24 24"
|
|
383
|
-
fill="none"
|
|
384
|
-
stroke="currentColor"
|
|
385
|
-
stroke-width="2"
|
|
386
|
-
stroke-linecap="round"
|
|
387
|
-
stroke-linejoin="round"
|
|
388
|
-
>
|
|
389
|
-
<path d="M12 5v14" />
|
|
390
|
-
<path d="m19 12-7 7-7-7" />
|
|
391
|
-
</svg>`,"arrow-left-to-line":`<svg
|
|
392
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
393
|
-
width="24"
|
|
394
|
-
height="24"
|
|
395
|
-
viewBox="0 0 24 24"
|
|
396
|
-
fill="none"
|
|
397
|
-
stroke="currentColor"
|
|
398
|
-
stroke-width="2"
|
|
399
|
-
stroke-linecap="round"
|
|
400
|
-
stroke-linejoin="round"
|
|
401
|
-
>
|
|
402
|
-
<path d="M3 19V5" />
|
|
403
|
-
<path d="m13 6-6 6 6 6" />
|
|
404
|
-
<path d="M7 12h14" />
|
|
405
|
-
</svg>`,"arrow-left":`<svg
|
|
406
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
407
|
-
width="24"
|
|
408
|
-
height="24"
|
|
409
|
-
viewBox="0 0 24 24"
|
|
410
|
-
fill="none"
|
|
411
|
-
stroke="currentColor"
|
|
412
|
-
stroke-width="2"
|
|
413
|
-
stroke-linecap="round"
|
|
414
|
-
stroke-linejoin="round"
|
|
415
|
-
>
|
|
416
|
-
<path d="m12 19-7-7 7-7" />
|
|
417
|
-
<path d="M19 12H5" />
|
|
418
|
-
</svg>`,"arrow-right-to-line":`<svg
|
|
419
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
420
|
-
width="24"
|
|
421
|
-
height="24"
|
|
422
|
-
viewBox="0 0 24 24"
|
|
423
|
-
fill="none"
|
|
424
|
-
stroke="currentColor"
|
|
425
|
-
stroke-width="2"
|
|
426
|
-
stroke-linecap="round"
|
|
427
|
-
stroke-linejoin="round"
|
|
428
|
-
>
|
|
429
|
-
<path d="M17 12H3" />
|
|
430
|
-
<path d="m11 18 6-6-6-6" />
|
|
431
|
-
<path d="M21 5v14" />
|
|
432
|
-
</svg>`,"arrow-right":`<svg
|
|
433
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
434
|
-
width="24"
|
|
435
|
-
height="24"
|
|
436
|
-
viewBox="0 0 24 24"
|
|
437
|
-
fill="none"
|
|
438
|
-
stroke="currentColor"
|
|
439
|
-
stroke-width="2"
|
|
440
|
-
stroke-linecap="round"
|
|
441
|
-
stroke-linejoin="round"
|
|
442
|
-
>
|
|
443
|
-
<path d="M5 12h14" />
|
|
444
|
-
<path d="m12 5 7 7-7 7" />
|
|
445
|
-
</svg>`,"arrow-up":`<svg
|
|
446
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
447
|
-
width="24"
|
|
448
|
-
height="24"
|
|
449
|
-
viewBox="0 0 24 24"
|
|
450
|
-
fill="none"
|
|
451
|
-
stroke="currentColor"
|
|
452
|
-
stroke-width="2"
|
|
453
|
-
stroke-linecap="round"
|
|
454
|
-
stroke-linejoin="round"
|
|
455
|
-
>
|
|
456
|
-
<path d="m5 12 7-7 7 7" />
|
|
457
|
-
<path d="M12 19V5" />
|
|
458
|
-
</svg>`,"badge-alert":`<svg
|
|
459
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
460
|
-
width="24"
|
|
461
|
-
height="24"
|
|
462
|
-
viewBox="0 0 24 24"
|
|
463
|
-
fill="none"
|
|
464
|
-
stroke="currentColor"
|
|
465
|
-
stroke-width="2"
|
|
466
|
-
stroke-linecap="round"
|
|
467
|
-
stroke-linejoin="round"
|
|
468
|
-
>
|
|
469
|
-
<path d="M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z" />
|
|
470
|
-
<line x1="12" x2="12" y1="8" y2="12" />
|
|
471
|
-
<line x1="12" x2="12.01" y1="16" y2="16" />
|
|
472
|
-
</svg>`,"bed-double":`<svg
|
|
473
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
474
|
-
width="24"
|
|
475
|
-
height="24"
|
|
476
|
-
viewBox="0 0 24 24"
|
|
477
|
-
fill="none"
|
|
478
|
-
stroke="currentColor"
|
|
479
|
-
stroke-width="2"
|
|
480
|
-
stroke-linecap="round"
|
|
481
|
-
stroke-linejoin="round"
|
|
482
|
-
>
|
|
483
|
-
<path d="M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8" />
|
|
484
|
-
<path d="M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4" />
|
|
485
|
-
<path d="M12 4v6" />
|
|
486
|
-
<path d="M2 18h20" />
|
|
487
|
-
</svg>`,bell:`<svg
|
|
488
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
489
|
-
width="24"
|
|
490
|
-
height="24"
|
|
491
|
-
viewBox="0 0 24 24"
|
|
492
|
-
fill="none"
|
|
493
|
-
stroke="currentColor"
|
|
494
|
-
stroke-width="2"
|
|
495
|
-
stroke-linecap="round"
|
|
496
|
-
stroke-linejoin="round"
|
|
497
|
-
>
|
|
498
|
-
<path d="M10.268 21a2 2 0 0 0 3.464 0" />
|
|
499
|
-
<path d="M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326" />
|
|
500
|
-
</svg>`,"book-open":`<svg
|
|
501
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
502
|
-
width="24"
|
|
503
|
-
height="24"
|
|
504
|
-
viewBox="0 0 24 24"
|
|
505
|
-
fill="none"
|
|
506
|
-
stroke="currentColor"
|
|
507
|
-
stroke-width="2"
|
|
508
|
-
stroke-linecap="round"
|
|
509
|
-
stroke-linejoin="round"
|
|
510
|
-
>
|
|
511
|
-
<path d="M12 7v14" />
|
|
512
|
-
<path d="M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z" />
|
|
513
|
-
</svg>`,"chart-line":`<svg
|
|
514
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
515
|
-
width="24"
|
|
516
|
-
height="24"
|
|
517
|
-
viewBox="0 0 24 24"
|
|
518
|
-
fill="none"
|
|
519
|
-
stroke="currentColor"
|
|
520
|
-
stroke-width="2"
|
|
521
|
-
stroke-linecap="round"
|
|
522
|
-
stroke-linejoin="round"
|
|
523
|
-
>
|
|
524
|
-
<path d="M3 3v16a2 2 0 0 0 2 2h16" />
|
|
525
|
-
<path d="m19 9-5 5-4-4-3 3" />
|
|
526
|
-
</svg>`,check:`<svg
|
|
527
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
528
|
-
width="24"
|
|
529
|
-
height="24"
|
|
530
|
-
viewBox="0 0 24 24"
|
|
531
|
-
fill="none"
|
|
532
|
-
stroke="currentColor"
|
|
533
|
-
stroke-width="2"
|
|
534
|
-
stroke-linecap="round"
|
|
535
|
-
stroke-linejoin="round"
|
|
536
|
-
>
|
|
537
|
-
<path d="M20 6 9 17l-5-5" />
|
|
538
|
-
</svg>`,"chevron-down":`<svg
|
|
539
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
540
|
-
width="24"
|
|
541
|
-
height="24"
|
|
542
|
-
viewBox="0 0 24 24"
|
|
543
|
-
fill="none"
|
|
544
|
-
stroke="currentColor"
|
|
545
|
-
stroke-width="2"
|
|
546
|
-
stroke-linecap="round"
|
|
547
|
-
stroke-linejoin="round"
|
|
548
|
-
>
|
|
549
|
-
<path d="m6 9 6 6 6-6" />
|
|
550
|
-
</svg>`,"chevron-left":`<svg
|
|
551
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
552
|
-
width="24"
|
|
553
|
-
height="24"
|
|
554
|
-
viewBox="0 0 24 24"
|
|
555
|
-
fill="none"
|
|
556
|
-
stroke="currentColor"
|
|
557
|
-
stroke-width="2"
|
|
558
|
-
stroke-linecap="round"
|
|
559
|
-
stroke-linejoin="round"
|
|
560
|
-
>
|
|
561
|
-
<path d="m15 18-6-6 6-6" />
|
|
562
|
-
</svg>`,"chevron-right":`<svg
|
|
563
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
564
|
-
width="24"
|
|
565
|
-
height="24"
|
|
566
|
-
viewBox="0 0 24 24"
|
|
567
|
-
fill="none"
|
|
568
|
-
stroke="currentColor"
|
|
569
|
-
stroke-width="2"
|
|
570
|
-
stroke-linecap="round"
|
|
571
|
-
stroke-linejoin="round"
|
|
572
|
-
>
|
|
573
|
-
<path d="m9 18 6-6-6-6" />
|
|
574
|
-
</svg>`,"circle-check-big":`<svg
|
|
575
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
576
|
-
width="24"
|
|
577
|
-
height="24"
|
|
578
|
-
viewBox="0 0 24 24"
|
|
579
|
-
fill="none"
|
|
580
|
-
stroke="currentColor"
|
|
581
|
-
stroke-width="2"
|
|
582
|
-
stroke-linecap="round"
|
|
583
|
-
stroke-linejoin="round"
|
|
584
|
-
>
|
|
585
|
-
<path d="M21.801 10A10 10 0 1 1 17 3.335" />
|
|
586
|
-
<path d="m9 11 3 3L22 4" />
|
|
587
|
-
</svg>`,"circle-check":`<svg
|
|
588
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
589
|
-
width="24"
|
|
590
|
-
height="24"
|
|
591
|
-
viewBox="0 0 24 24"
|
|
592
|
-
fill="none"
|
|
593
|
-
stroke="currentColor"
|
|
594
|
-
stroke-width="2"
|
|
595
|
-
stroke-linecap="round"
|
|
596
|
-
stroke-linejoin="round"
|
|
597
|
-
>
|
|
598
|
-
<circle cx="12" cy="12" r="10" />
|
|
599
|
-
<path d="m9 12 2 2 4-4" />
|
|
600
|
-
</svg>`,"circle-x":`<svg
|
|
601
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
602
|
-
width="24"
|
|
603
|
-
height="24"
|
|
604
|
-
viewBox="0 0 24 24"
|
|
605
|
-
fill="none"
|
|
606
|
-
stroke="currentColor"
|
|
607
|
-
stroke-width="2"
|
|
608
|
-
stroke-linecap="round"
|
|
609
|
-
stroke-linejoin="round"
|
|
610
|
-
>
|
|
611
|
-
<circle cx="12" cy="12" r="10" />
|
|
612
|
-
<path d="m15 9-6 6" />
|
|
613
|
-
<path d="m9 9 6 6" />
|
|
614
|
-
</svg>`,circle:`<svg
|
|
615
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
616
|
-
width="24"
|
|
617
|
-
height="24"
|
|
618
|
-
viewBox="0 0 24 24"
|
|
619
|
-
fill="none"
|
|
620
|
-
stroke="currentColor"
|
|
621
|
-
stroke-width="2"
|
|
622
|
-
stroke-linecap="round"
|
|
623
|
-
stroke-linejoin="round"
|
|
624
|
-
>
|
|
625
|
-
<circle cx="12" cy="12" r="10" />
|
|
626
|
-
</svg>`,"circle-alert":`<svg
|
|
627
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
628
|
-
width="24"
|
|
629
|
-
height="24"
|
|
630
|
-
viewBox="0 0 24 24"
|
|
631
|
-
fill="none"
|
|
632
|
-
stroke="currentColor"
|
|
633
|
-
stroke-width="2"
|
|
634
|
-
stroke-linecap="round"
|
|
635
|
-
stroke-linejoin="round"
|
|
636
|
-
>
|
|
637
|
-
<circle cx="12" cy="12" r="10" />
|
|
638
|
-
<line x1="12" x2="12" y1="8" y2="12" />
|
|
639
|
-
<line x1="12" x2="12.01" y1="16" y2="16" />
|
|
640
|
-
</svg>`,clock:`<svg
|
|
641
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
642
|
-
width="24"
|
|
643
|
-
height="24"
|
|
644
|
-
viewBox="0 0 24 24"
|
|
645
|
-
fill="none"
|
|
646
|
-
stroke="currentColor"
|
|
647
|
-
stroke-width="2"
|
|
648
|
-
stroke-linecap="round"
|
|
649
|
-
stroke-linejoin="round"
|
|
650
|
-
>
|
|
651
|
-
<path d="M12 6v6l4 2" />
|
|
652
|
-
<circle cx="12" cy="12" r="10" />
|
|
653
|
-
</svg>`,code:`<svg
|
|
654
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
655
|
-
width="24"
|
|
656
|
-
height="24"
|
|
657
|
-
viewBox="0 0 24 24"
|
|
658
|
-
fill="none"
|
|
659
|
-
stroke="currentColor"
|
|
660
|
-
stroke-width="2"
|
|
661
|
-
stroke-linecap="round"
|
|
662
|
-
stroke-linejoin="round"
|
|
663
|
-
>
|
|
664
|
-
<path d="m16 18 6-6-6-6" />
|
|
665
|
-
<path d="m8 6-6 6 6 6" />
|
|
666
|
-
</svg>`,compass:`<svg
|
|
667
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
668
|
-
width="24"
|
|
669
|
-
height="24"
|
|
670
|
-
viewBox="0 0 24 24"
|
|
671
|
-
fill="none"
|
|
672
|
-
stroke="currentColor"
|
|
673
|
-
stroke-width="2"
|
|
674
|
-
stroke-linecap="round"
|
|
675
|
-
stroke-linejoin="round"
|
|
676
|
-
>
|
|
677
|
-
<path d="m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z" />
|
|
678
|
-
<circle cx="12" cy="12" r="10" />
|
|
679
|
-
</svg>`,copy:`<svg
|
|
680
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
681
|
-
width="24"
|
|
682
|
-
height="24"
|
|
683
|
-
viewBox="0 0 24 24"
|
|
684
|
-
fill="none"
|
|
685
|
-
stroke="currentColor"
|
|
686
|
-
stroke-width="2"
|
|
687
|
-
stroke-linecap="round"
|
|
688
|
-
stroke-linejoin="round"
|
|
689
|
-
>
|
|
690
|
-
<rect width="14" height="14" x="8" y="8" rx="2" ry="2" />
|
|
691
|
-
<path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" />
|
|
692
|
-
</svg>`,"credit-card":`<svg
|
|
693
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
694
|
-
width="24"
|
|
695
|
-
height="24"
|
|
696
|
-
viewBox="0 0 24 24"
|
|
697
|
-
fill="none"
|
|
698
|
-
stroke="currentColor"
|
|
699
|
-
stroke-width="2"
|
|
700
|
-
stroke-linecap="round"
|
|
701
|
-
stroke-linejoin="round"
|
|
702
|
-
>
|
|
703
|
-
<rect width="20" height="14" x="2" y="5" rx="2" />
|
|
704
|
-
<line x1="2" x2="22" y1="10" y2="10" />
|
|
705
|
-
</svg>`,dock:`<svg
|
|
706
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
707
|
-
width="24"
|
|
708
|
-
height="24"
|
|
709
|
-
viewBox="0 0 24 24"
|
|
710
|
-
fill="none"
|
|
711
|
-
stroke="currentColor"
|
|
712
|
-
stroke-width="2"
|
|
713
|
-
stroke-linecap="round"
|
|
714
|
-
stroke-linejoin="round"
|
|
715
|
-
>
|
|
716
|
-
<path d="M2 8h20" />
|
|
717
|
-
<rect width="20" height="16" x="2" y="4" rx="2" />
|
|
718
|
-
<path d="M6 16h12" />
|
|
719
|
-
</svg>`,"dollar-sign":`<svg
|
|
720
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
721
|
-
width="24"
|
|
722
|
-
height="24"
|
|
723
|
-
viewBox="0 0 24 24"
|
|
724
|
-
fill="none"
|
|
725
|
-
stroke="currentColor"
|
|
726
|
-
stroke-width="2"
|
|
727
|
-
stroke-linecap="round"
|
|
728
|
-
stroke-linejoin="round"
|
|
729
|
-
>
|
|
730
|
-
<line x1="12" x2="12" y1="2" y2="22" />
|
|
731
|
-
<path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6" />
|
|
732
|
-
</svg>`,download:`<svg
|
|
733
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
734
|
-
width="24"
|
|
735
|
-
height="24"
|
|
736
|
-
viewBox="0 0 24 24"
|
|
737
|
-
fill="none"
|
|
738
|
-
stroke="currentColor"
|
|
739
|
-
stroke-width="2"
|
|
740
|
-
stroke-linecap="round"
|
|
741
|
-
stroke-linejoin="round"
|
|
742
|
-
>
|
|
743
|
-
<path d="M12 15V3" />
|
|
744
|
-
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" />
|
|
745
|
-
<path d="m7 10 5 5 5-5" />
|
|
746
|
-
</svg>`,"external-link":`<svg
|
|
747
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
748
|
-
width="24"
|
|
749
|
-
height="24"
|
|
750
|
-
viewBox="0 0 24 24"
|
|
751
|
-
fill="none"
|
|
752
|
-
stroke="currentColor"
|
|
753
|
-
stroke-width="2"
|
|
754
|
-
stroke-linecap="round"
|
|
755
|
-
stroke-linejoin="round"
|
|
756
|
-
>
|
|
757
|
-
<path d="M15 3h6v6" />
|
|
758
|
-
<path d="M10 14 21 3" />
|
|
759
|
-
<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" />
|
|
760
|
-
</svg>`,"eye-off":`<svg
|
|
761
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
762
|
-
width="24"
|
|
763
|
-
height="24"
|
|
764
|
-
viewBox="0 0 24 24"
|
|
765
|
-
fill="none"
|
|
766
|
-
stroke="currentColor"
|
|
767
|
-
stroke-width="2"
|
|
768
|
-
stroke-linecap="round"
|
|
769
|
-
stroke-linejoin="round"
|
|
770
|
-
>
|
|
771
|
-
<path d="M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49" />
|
|
772
|
-
<path d="M14.084 14.158a3 3 0 0 1-4.242-4.242" />
|
|
773
|
-
<path d="M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143" />
|
|
774
|
-
<path d="m2 2 20 20" />
|
|
775
|
-
</svg>`,facebook:`<svg
|
|
776
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
777
|
-
width="24"
|
|
778
|
-
height="24"
|
|
779
|
-
viewBox="0 0 24 24"
|
|
780
|
-
fill="none"
|
|
781
|
-
stroke="currentColor"
|
|
782
|
-
stroke-width="2"
|
|
783
|
-
stroke-linecap="round"
|
|
784
|
-
stroke-linejoin="round"
|
|
785
|
-
>
|
|
786
|
-
<path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z" />
|
|
787
|
-
</svg>`,file:`<svg
|
|
788
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
789
|
-
width="24"
|
|
790
|
-
height="24"
|
|
791
|
-
viewBox="0 0 24 24"
|
|
792
|
-
fill="none"
|
|
793
|
-
stroke="currentColor"
|
|
794
|
-
stroke-width="2"
|
|
795
|
-
stroke-linecap="round"
|
|
796
|
-
stroke-linejoin="round"
|
|
797
|
-
>
|
|
798
|
-
<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" />
|
|
799
|
-
<path d="M14 2v5a1 1 0 0 0 1 1h5" />
|
|
800
|
-
</svg>`,"file-text":`<svg
|
|
801
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
802
|
-
width="24"
|
|
803
|
-
height="24"
|
|
804
|
-
viewBox="0 0 24 24"
|
|
805
|
-
fill="none"
|
|
806
|
-
stroke="currentColor"
|
|
807
|
-
stroke-width="2"
|
|
808
|
-
stroke-linecap="round"
|
|
809
|
-
stroke-linejoin="round"
|
|
810
|
-
>
|
|
811
|
-
<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" />
|
|
812
|
-
<path d="M14 2v5a1 1 0 0 0 1 1h5" />
|
|
813
|
-
<path d="M10 9H8" />
|
|
814
|
-
<path d="M16 13H8" />
|
|
815
|
-
<path d="M16 17H8" />
|
|
816
|
-
</svg>`,"file-x":`<svg
|
|
817
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
818
|
-
width="24"
|
|
819
|
-
height="24"
|
|
820
|
-
viewBox="0 0 24 24"
|
|
821
|
-
fill="none"
|
|
822
|
-
stroke="currentColor"
|
|
823
|
-
stroke-width="2"
|
|
824
|
-
stroke-linecap="round"
|
|
825
|
-
stroke-linejoin="round"
|
|
826
|
-
>
|
|
827
|
-
<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" />
|
|
828
|
-
<path d="M14 2v5a1 1 0 0 0 1 1h5" />
|
|
829
|
-
<path d="m14.5 12.5-5 5" />
|
|
830
|
-
<path d="m9.5 12.5 5 5" />
|
|
831
|
-
</svg>`,folder:`<svg
|
|
832
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
833
|
-
width="24"
|
|
834
|
-
height="24"
|
|
835
|
-
viewBox="0 0 24 24"
|
|
836
|
-
fill="none"
|
|
837
|
-
stroke="currentColor"
|
|
838
|
-
stroke-width="2"
|
|
839
|
-
stroke-linecap="round"
|
|
840
|
-
stroke-linejoin="round"
|
|
841
|
-
>
|
|
842
|
-
<path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" />
|
|
843
|
-
</svg>`,funnel:`<svg
|
|
844
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
845
|
-
width="24"
|
|
846
|
-
height="24"
|
|
847
|
-
viewBox="0 0 24 24"
|
|
848
|
-
fill="none"
|
|
849
|
-
stroke="currentColor"
|
|
850
|
-
stroke-width="2"
|
|
851
|
-
stroke-linecap="round"
|
|
852
|
-
stroke-linejoin="round"
|
|
853
|
-
>
|
|
854
|
-
<path d="M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z" />
|
|
855
|
-
</svg>`,globe:`<svg
|
|
856
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
857
|
-
width="24"
|
|
858
|
-
height="24"
|
|
859
|
-
viewBox="0 0 24 24"
|
|
860
|
-
fill="none"
|
|
861
|
-
stroke="currentColor"
|
|
862
|
-
stroke-width="2"
|
|
863
|
-
stroke-linecap="round"
|
|
864
|
-
stroke-linejoin="round"
|
|
865
|
-
>
|
|
866
|
-
<circle cx="12" cy="12" r="10" />
|
|
867
|
-
<path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20" />
|
|
868
|
-
<path d="M2 12h20" />
|
|
869
|
-
</svg>`,hash:`<svg
|
|
870
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
871
|
-
width="24"
|
|
872
|
-
height="24"
|
|
873
|
-
viewBox="0 0 24 24"
|
|
874
|
-
fill="none"
|
|
875
|
-
stroke="currentColor"
|
|
876
|
-
stroke-width="2"
|
|
877
|
-
stroke-linecap="round"
|
|
878
|
-
stroke-linejoin="round"
|
|
879
|
-
>
|
|
880
|
-
<line x1="4" x2="20" y1="9" y2="9" />
|
|
881
|
-
<line x1="4" x2="20" y1="15" y2="15" />
|
|
882
|
-
<line x1="10" x2="8" y1="3" y2="21" />
|
|
883
|
-
<line x1="16" x2="14" y1="3" y2="21" />
|
|
884
|
-
</svg>`,"image-plus":`<svg
|
|
885
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
886
|
-
width="24"
|
|
887
|
-
height="24"
|
|
888
|
-
viewBox="0 0 24 24"
|
|
889
|
-
fill="none"
|
|
890
|
-
stroke="currentColor"
|
|
891
|
-
stroke-width="2"
|
|
892
|
-
stroke-linecap="round"
|
|
893
|
-
stroke-linejoin="round"
|
|
894
|
-
>
|
|
895
|
-
<path d="M16 5h6" />
|
|
896
|
-
<path d="M19 2v6" />
|
|
897
|
-
<path d="M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5" />
|
|
898
|
-
<path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" />
|
|
899
|
-
<circle cx="9" cy="9" r="2" />
|
|
900
|
-
</svg>`,image:`<svg
|
|
901
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
902
|
-
width="24"
|
|
903
|
-
height="24"
|
|
904
|
-
viewBox="0 0 24 24"
|
|
905
|
-
fill="none"
|
|
906
|
-
stroke="currentColor"
|
|
907
|
-
stroke-width="2"
|
|
908
|
-
stroke-linecap="round"
|
|
909
|
-
stroke-linejoin="round"
|
|
910
|
-
>
|
|
911
|
-
<rect width="18" height="18" x="3" y="3" rx="2" ry="2" />
|
|
912
|
-
<circle cx="9" cy="9" r="2" />
|
|
913
|
-
<path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" />
|
|
914
|
-
</svg>`,info:`<svg
|
|
915
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
916
|
-
width="24"
|
|
917
|
-
height="24"
|
|
918
|
-
viewBox="0 0 24 24"
|
|
919
|
-
fill="none"
|
|
920
|
-
stroke="currentColor"
|
|
921
|
-
stroke-width="2"
|
|
922
|
-
stroke-linecap="round"
|
|
923
|
-
stroke-linejoin="round"
|
|
924
|
-
>
|
|
925
|
-
<circle cx="12" cy="12" r="10" />
|
|
926
|
-
<path d="M12 16v-4" />
|
|
927
|
-
<path d="M12 8h.01" />
|
|
928
|
-
</svg>`,keyboard:`<svg
|
|
929
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
930
|
-
width="24"
|
|
931
|
-
height="24"
|
|
932
|
-
viewBox="0 0 24 24"
|
|
933
|
-
fill="none"
|
|
934
|
-
stroke="currentColor"
|
|
935
|
-
stroke-width="2"
|
|
936
|
-
stroke-linecap="round"
|
|
937
|
-
stroke-linejoin="round"
|
|
938
|
-
>
|
|
939
|
-
<path d="M10 8h.01" />
|
|
940
|
-
<path d="M12 12h.01" />
|
|
941
|
-
<path d="M14 8h.01" />
|
|
942
|
-
<path d="M16 12h.01" />
|
|
943
|
-
<path d="M18 8h.01" />
|
|
944
|
-
<path d="M6 8h.01" />
|
|
945
|
-
<path d="M7 16h10" />
|
|
946
|
-
<path d="M8 12h.01" />
|
|
947
|
-
<rect width="20" height="16" x="2" y="4" rx="2" />
|
|
948
|
-
</svg>`,"layout-panel-left":`<svg
|
|
949
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
950
|
-
width="24"
|
|
951
|
-
height="24"
|
|
952
|
-
viewBox="0 0 24 24"
|
|
953
|
-
fill="none"
|
|
954
|
-
stroke="currentColor"
|
|
955
|
-
stroke-width="2"
|
|
956
|
-
stroke-linecap="round"
|
|
957
|
-
stroke-linejoin="round"
|
|
958
|
-
>
|
|
959
|
-
<rect width="7" height="18" x="3" y="3" rx="1" />
|
|
960
|
-
<rect width="7" height="7" x="14" y="3" rx="1" />
|
|
961
|
-
<rect width="7" height="7" x="14" y="14" rx="1" />
|
|
962
|
-
</svg>`,linkedin:`<svg
|
|
963
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
964
|
-
width="24"
|
|
965
|
-
height="24"
|
|
966
|
-
viewBox="0 0 24 24"
|
|
967
|
-
fill="none"
|
|
968
|
-
stroke="currentColor"
|
|
969
|
-
stroke-width="2"
|
|
970
|
-
stroke-linecap="round"
|
|
971
|
-
stroke-linejoin="round"
|
|
972
|
-
>
|
|
973
|
-
<path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z" />
|
|
974
|
-
<rect width="4" height="12" x="2" y="9" />
|
|
975
|
-
<circle cx="4" cy="4" r="2" />
|
|
976
|
-
</svg>`,"loader-circle":`<svg
|
|
977
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
978
|
-
width="24"
|
|
979
|
-
height="24"
|
|
980
|
-
viewBox="0 0 24 24"
|
|
981
|
-
fill="none"
|
|
982
|
-
stroke="currentColor"
|
|
983
|
-
stroke-width="2"
|
|
984
|
-
stroke-linecap="round"
|
|
985
|
-
stroke-linejoin="round"
|
|
986
|
-
>
|
|
987
|
-
<path d="M21 12a9 9 0 1 1-6.219-8.56" />
|
|
988
|
-
</svg>`,"log-out":`<svg
|
|
989
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
990
|
-
width="24"
|
|
991
|
-
height="24"
|
|
992
|
-
viewBox="0 0 24 24"
|
|
993
|
-
fill="none"
|
|
994
|
-
stroke="currentColor"
|
|
995
|
-
stroke-width="2"
|
|
996
|
-
stroke-linecap="round"
|
|
997
|
-
stroke-linejoin="round"
|
|
998
|
-
>
|
|
999
|
-
<path d="m16 17 5-5-5-5" />
|
|
1000
|
-
<path d="M21 12H9" />
|
|
1001
|
-
<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" />
|
|
1002
|
-
</svg>`,mail:`<svg
|
|
1003
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1004
|
-
width="24"
|
|
1005
|
-
height="24"
|
|
1006
|
-
viewBox="0 0 24 24"
|
|
1007
|
-
fill="none"
|
|
1008
|
-
stroke="currentColor"
|
|
1009
|
-
stroke-width="2"
|
|
1010
|
-
stroke-linecap="round"
|
|
1011
|
-
stroke-linejoin="round"
|
|
1012
|
-
>
|
|
1013
|
-
<path d="m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7" />
|
|
1014
|
-
<rect x="2" y="4" width="20" height="16" rx="2" />
|
|
1015
|
-
</svg>`,"maximize-2":`<svg
|
|
1016
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1017
|
-
width="24"
|
|
1018
|
-
height="24"
|
|
1019
|
-
viewBox="0 0 24 24"
|
|
1020
|
-
fill="none"
|
|
1021
|
-
stroke="currentColor"
|
|
1022
|
-
stroke-width="2"
|
|
1023
|
-
stroke-linecap="round"
|
|
1024
|
-
stroke-linejoin="round"
|
|
1025
|
-
>
|
|
1026
|
-
<path d="M15 3h6v6" />
|
|
1027
|
-
<path d="m21 3-7 7" />
|
|
1028
|
-
<path d="m3 21 7-7" />
|
|
1029
|
-
<path d="M9 21H3v-6" />
|
|
1030
|
-
</svg>`,menu:`<svg
|
|
1031
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1032
|
-
width="24"
|
|
1033
|
-
height="24"
|
|
1034
|
-
viewBox="0 0 24 24"
|
|
1035
|
-
fill="none"
|
|
1036
|
-
stroke="currentColor"
|
|
1037
|
-
stroke-width="2"
|
|
1038
|
-
stroke-linecap="round"
|
|
1039
|
-
stroke-linejoin="round"
|
|
1040
|
-
>
|
|
1041
|
-
<path d="M4 5h16" />
|
|
1042
|
-
<path d="M4 12h16" />
|
|
1043
|
-
<path d="M4 19h16" />
|
|
1044
|
-
</svg>`,"message-square":`<svg
|
|
1045
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1046
|
-
width="24"
|
|
1047
|
-
height="24"
|
|
1048
|
-
viewBox="0 0 24 24"
|
|
1049
|
-
fill="none"
|
|
1050
|
-
stroke="currentColor"
|
|
1051
|
-
stroke-width="2"
|
|
1052
|
-
stroke-linecap="round"
|
|
1053
|
-
stroke-linejoin="round"
|
|
1054
|
-
>
|
|
1055
|
-
<path d="M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z" />
|
|
1056
|
-
</svg>`,"minimize-2":`<svg
|
|
1057
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1058
|
-
width="24"
|
|
1059
|
-
height="24"
|
|
1060
|
-
viewBox="0 0 24 24"
|
|
1061
|
-
fill="none"
|
|
1062
|
-
stroke="currentColor"
|
|
1063
|
-
stroke-width="2"
|
|
1064
|
-
stroke-linecap="round"
|
|
1065
|
-
stroke-linejoin="round"
|
|
1066
|
-
>
|
|
1067
|
-
<path d="m14 10 7-7" />
|
|
1068
|
-
<path d="M20 10h-6V4" />
|
|
1069
|
-
<path d="m3 21 7-7" />
|
|
1070
|
-
<path d="M4 14h6v6" />
|
|
1071
|
-
</svg>`,monitor:`<svg
|
|
1072
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1073
|
-
width="24"
|
|
1074
|
-
height="24"
|
|
1075
|
-
viewBox="0 0 24 24"
|
|
1076
|
-
fill="none"
|
|
1077
|
-
stroke="currentColor"
|
|
1078
|
-
stroke-width="2"
|
|
1079
|
-
stroke-linecap="round"
|
|
1080
|
-
stroke-linejoin="round"
|
|
1081
|
-
>
|
|
1082
|
-
<rect width="20" height="14" x="2" y="3" rx="2" />
|
|
1083
|
-
<line x1="8" x2="16" y1="21" y2="21" />
|
|
1084
|
-
<line x1="12" x2="12" y1="17" y2="21" />
|
|
1085
|
-
</svg>`,moon:`<svg
|
|
1086
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1087
|
-
width="24"
|
|
1088
|
-
height="24"
|
|
1089
|
-
viewBox="0 0 24 24"
|
|
1090
|
-
fill="none"
|
|
1091
|
-
stroke="currentColor"
|
|
1092
|
-
stroke-width="2"
|
|
1093
|
-
stroke-linecap="round"
|
|
1094
|
-
stroke-linejoin="round"
|
|
1095
|
-
>
|
|
1096
|
-
<path d="M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401" />
|
|
1097
|
-
</svg>`,"mouse-pointer-click":`<svg
|
|
1098
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1099
|
-
width="24"
|
|
1100
|
-
height="24"
|
|
1101
|
-
viewBox="0 0 24 24"
|
|
1102
|
-
fill="none"
|
|
1103
|
-
stroke="currentColor"
|
|
1104
|
-
stroke-width="2"
|
|
1105
|
-
stroke-linecap="round"
|
|
1106
|
-
stroke-linejoin="round"
|
|
1107
|
-
>
|
|
1108
|
-
<path d="M14 4.1 12 6" />
|
|
1109
|
-
<path d="m5.1 8-2.9-.8" />
|
|
1110
|
-
<path d="m6 12-1.9 2" />
|
|
1111
|
-
<path d="M7.2 2.2 8 5.1" />
|
|
1112
|
-
<path d="M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z" />
|
|
1113
|
-
</svg>`,package:`<svg
|
|
1114
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1115
|
-
width="24"
|
|
1116
|
-
height="24"
|
|
1117
|
-
viewBox="0 0 24 24"
|
|
1118
|
-
fill="none"
|
|
1119
|
-
stroke="currentColor"
|
|
1120
|
-
stroke-width="2"
|
|
1121
|
-
stroke-linecap="round"
|
|
1122
|
-
stroke-linejoin="round"
|
|
1123
|
-
>
|
|
1124
|
-
<path d="M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z" />
|
|
1125
|
-
<path d="M12 22V12" />
|
|
1126
|
-
<polyline points="3.29 7 12 12 20.71 7" />
|
|
1127
|
-
<path d="m7.5 4.27 9 5.15" />
|
|
1128
|
-
</svg>`,palette:`<svg
|
|
1129
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1130
|
-
width="24"
|
|
1131
|
-
height="24"
|
|
1132
|
-
viewBox="0 0 24 24"
|
|
1133
|
-
fill="none"
|
|
1134
|
-
stroke="currentColor"
|
|
1135
|
-
stroke-width="2"
|
|
1136
|
-
stroke-linecap="round"
|
|
1137
|
-
stroke-linejoin="round"
|
|
1138
|
-
>
|
|
1139
|
-
<path d="M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z" />
|
|
1140
|
-
<circle cx="13.5" cy="6.5" r=".5" fill="currentColor" />
|
|
1141
|
-
<circle cx="17.5" cy="10.5" r=".5" fill="currentColor" />
|
|
1142
|
-
<circle cx="6.5" cy="12.5" r=".5" fill="currentColor" />
|
|
1143
|
-
<circle cx="8.5" cy="7.5" r=".5" fill="currentColor" />
|
|
1144
|
-
</svg>`,"panel-left-close":`<svg
|
|
1145
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1146
|
-
width="24"
|
|
1147
|
-
height="24"
|
|
1148
|
-
viewBox="0 0 24 24"
|
|
1149
|
-
fill="none"
|
|
1150
|
-
stroke="currentColor"
|
|
1151
|
-
stroke-width="2"
|
|
1152
|
-
stroke-linecap="round"
|
|
1153
|
-
stroke-linejoin="round"
|
|
1154
|
-
>
|
|
1155
|
-
<rect width="18" height="18" x="3" y="3" rx="2" />
|
|
1156
|
-
<path d="M9 3v18" />
|
|
1157
|
-
<path d="m16 15-3-3 3-3" />
|
|
1158
|
-
</svg>`,"panel-left-open":`<svg
|
|
1159
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1160
|
-
width="24"
|
|
1161
|
-
height="24"
|
|
1162
|
-
viewBox="0 0 24 24"
|
|
1163
|
-
fill="none"
|
|
1164
|
-
stroke="currentColor"
|
|
1165
|
-
stroke-width="2"
|
|
1166
|
-
stroke-linecap="round"
|
|
1167
|
-
stroke-linejoin="round"
|
|
1168
|
-
>
|
|
1169
|
-
<rect width="18" height="18" x="3" y="3" rx="2" />
|
|
1170
|
-
<path d="M9 3v18" />
|
|
1171
|
-
<path d="m14 9 3 3-3 3" />
|
|
1172
|
-
</svg>`,paperclip:`<svg
|
|
1173
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1174
|
-
width="24"
|
|
1175
|
-
height="24"
|
|
1176
|
-
viewBox="0 0 24 24"
|
|
1177
|
-
fill="none"
|
|
1178
|
-
stroke="currentColor"
|
|
1179
|
-
stroke-width="2"
|
|
1180
|
-
stroke-linecap="round"
|
|
1181
|
-
stroke-linejoin="round"
|
|
1182
|
-
>
|
|
1183
|
-
<path d="m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551" />
|
|
1184
|
-
</svg>`,pause:`<svg
|
|
1185
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1186
|
-
width="24"
|
|
1187
|
-
height="24"
|
|
1188
|
-
viewBox="0 0 24 24"
|
|
1189
|
-
fill="none"
|
|
1190
|
-
stroke="currentColor"
|
|
1191
|
-
stroke-width="2"
|
|
1192
|
-
stroke-linecap="round"
|
|
1193
|
-
stroke-linejoin="round"
|
|
1194
|
-
>
|
|
1195
|
-
<rect x="14" y="3" width="5" height="18" rx="1" />
|
|
1196
|
-
<rect x="5" y="3" width="5" height="18" rx="1" />
|
|
1197
|
-
</svg>`,pencil:`<svg
|
|
1198
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1199
|
-
width="24"
|
|
1200
|
-
height="24"
|
|
1201
|
-
viewBox="0 0 24 24"
|
|
1202
|
-
fill="none"
|
|
1203
|
-
stroke="currentColor"
|
|
1204
|
-
stroke-width="2"
|
|
1205
|
-
stroke-linecap="round"
|
|
1206
|
-
stroke-linejoin="round"
|
|
1207
|
-
>
|
|
1208
|
-
<path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" />
|
|
1209
|
-
<path d="m15 5 4 4" />
|
|
1210
|
-
</svg>`,phone:`<svg
|
|
1211
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1212
|
-
width="24"
|
|
1213
|
-
height="24"
|
|
1214
|
-
viewBox="0 0 24 24"
|
|
1215
|
-
fill="none"
|
|
1216
|
-
stroke="currentColor"
|
|
1217
|
-
stroke-width="2"
|
|
1218
|
-
stroke-linecap="round"
|
|
1219
|
-
stroke-linejoin="round"
|
|
1220
|
-
>
|
|
1221
|
-
<path d="M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384" />
|
|
1222
|
-
</svg>`,play:`<svg
|
|
1223
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1224
|
-
width="24"
|
|
1225
|
-
height="24"
|
|
1226
|
-
viewBox="0 0 24 24"
|
|
1227
|
-
fill="none"
|
|
1228
|
-
stroke="currentColor"
|
|
1229
|
-
stroke-width="2"
|
|
1230
|
-
stroke-linecap="round"
|
|
1231
|
-
stroke-linejoin="round"
|
|
1232
|
-
>
|
|
1233
|
-
<path d="M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z" />
|
|
1234
|
-
</svg>`,plus:`<svg
|
|
1235
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1236
|
-
width="24"
|
|
1237
|
-
height="24"
|
|
1238
|
-
viewBox="0 0 24 24"
|
|
1239
|
-
fill="none"
|
|
1240
|
-
stroke="currentColor"
|
|
1241
|
-
stroke-width="2"
|
|
1242
|
-
stroke-linecap="round"
|
|
1243
|
-
stroke-linejoin="round"
|
|
1244
|
-
>
|
|
1245
|
-
<path d="M5 12h14" />
|
|
1246
|
-
<path d="M12 5v14" />
|
|
1247
|
-
</svg>`,"refresh-cw":`<svg
|
|
1248
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1249
|
-
width="24"
|
|
1250
|
-
height="24"
|
|
1251
|
-
viewBox="0 0 24 24"
|
|
1252
|
-
fill="none"
|
|
1253
|
-
stroke="currentColor"
|
|
1254
|
-
stroke-width="2"
|
|
1255
|
-
stroke-linecap="round"
|
|
1256
|
-
stroke-linejoin="round"
|
|
1257
|
-
>
|
|
1258
|
-
<path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" />
|
|
1259
|
-
<path d="M21 3v5h-5" />
|
|
1260
|
-
<path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" />
|
|
1261
|
-
<path d="M8 16H3v5" />
|
|
1262
|
-
</svg>`,rocket:`<svg
|
|
1263
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1264
|
-
width="24"
|
|
1265
|
-
height="24"
|
|
1266
|
-
viewBox="0 0 24 24"
|
|
1267
|
-
fill="none"
|
|
1268
|
-
stroke="currentColor"
|
|
1269
|
-
stroke-width="2"
|
|
1270
|
-
stroke-linecap="round"
|
|
1271
|
-
stroke-linejoin="round"
|
|
1272
|
-
>
|
|
1273
|
-
<path d="M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z" />
|
|
1274
|
-
<path d="m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z" />
|
|
1275
|
-
<path d="M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0" />
|
|
1276
|
-
<path d="M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5" />
|
|
1277
|
-
</svg>`,save:`<svg
|
|
1278
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1279
|
-
width="24"
|
|
1280
|
-
height="24"
|
|
1281
|
-
viewBox="0 0 24 24"
|
|
1282
|
-
fill="none"
|
|
1283
|
-
stroke="currentColor"
|
|
1284
|
-
stroke-width="2"
|
|
1285
|
-
stroke-linecap="round"
|
|
1286
|
-
stroke-linejoin="round"
|
|
1287
|
-
>
|
|
1288
|
-
<path d="M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z" />
|
|
1289
|
-
<path d="M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7" />
|
|
1290
|
-
<path d="M7 3v4a1 1 0 0 0 1 1h7" />
|
|
1291
|
-
</svg>`,search:`<svg
|
|
1292
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1293
|
-
width="24"
|
|
1294
|
-
height="24"
|
|
1295
|
-
viewBox="0 0 24 24"
|
|
1296
|
-
fill="none"
|
|
1297
|
-
stroke="currentColor"
|
|
1298
|
-
stroke-width="2"
|
|
1299
|
-
stroke-linecap="round"
|
|
1300
|
-
stroke-linejoin="round"
|
|
1301
|
-
>
|
|
1302
|
-
<path d="m21 21-4.34-4.34" />
|
|
1303
|
-
<circle cx="11" cy="11" r="8" />
|
|
1304
|
-
</svg>`,send:`<svg
|
|
1305
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1306
|
-
width="24"
|
|
1307
|
-
height="24"
|
|
1308
|
-
viewBox="0 0 24 24"
|
|
1309
|
-
fill="none"
|
|
1310
|
-
stroke="currentColor"
|
|
1311
|
-
stroke-width="2"
|
|
1312
|
-
stroke-linecap="round"
|
|
1313
|
-
stroke-linejoin="round"
|
|
1314
|
-
>
|
|
1315
|
-
<path d="M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z" />
|
|
1316
|
-
<path d="m21.854 2.147-10.94 10.939" />
|
|
1317
|
-
</svg>`,settings:`<svg
|
|
1318
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1319
|
-
width="24"
|
|
1320
|
-
height="24"
|
|
1321
|
-
viewBox="0 0 24 24"
|
|
1322
|
-
fill="none"
|
|
1323
|
-
stroke="currentColor"
|
|
1324
|
-
stroke-width="2"
|
|
1325
|
-
stroke-linecap="round"
|
|
1326
|
-
stroke-linejoin="round"
|
|
1327
|
-
>
|
|
1328
|
-
<path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915" />
|
|
1329
|
-
<circle cx="12" cy="12" r="3" />
|
|
1330
|
-
</svg>`,share:`<svg
|
|
1331
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1332
|
-
width="24"
|
|
1333
|
-
height="24"
|
|
1334
|
-
viewBox="0 0 24 24"
|
|
1335
|
-
fill="none"
|
|
1336
|
-
stroke="currentColor"
|
|
1337
|
-
stroke-width="2"
|
|
1338
|
-
stroke-linecap="round"
|
|
1339
|
-
stroke-linejoin="round"
|
|
1340
|
-
>
|
|
1341
|
-
<path d="M12 2v13" />
|
|
1342
|
-
<path d="m16 6-4-4-4 4" />
|
|
1343
|
-
<path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8" />
|
|
1344
|
-
</svg>`,"skip-back":`<svg
|
|
1345
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1346
|
-
width="24"
|
|
1347
|
-
height="24"
|
|
1348
|
-
viewBox="0 0 24 24"
|
|
1349
|
-
fill="none"
|
|
1350
|
-
stroke="currentColor"
|
|
1351
|
-
stroke-width="2"
|
|
1352
|
-
stroke-linecap="round"
|
|
1353
|
-
stroke-linejoin="round"
|
|
1354
|
-
>
|
|
1355
|
-
<path d="M17.971 4.285A2 2 0 0 1 21 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z" />
|
|
1356
|
-
<path d="M3 20V4" />
|
|
1357
|
-
</svg>`,"skip-forward":`<svg
|
|
1358
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1359
|
-
width="24"
|
|
1360
|
-
height="24"
|
|
1361
|
-
viewBox="0 0 24 24"
|
|
1362
|
-
fill="none"
|
|
1363
|
-
stroke="currentColor"
|
|
1364
|
-
stroke-width="2"
|
|
1365
|
-
stroke-linecap="round"
|
|
1366
|
-
stroke-linejoin="round"
|
|
1367
|
-
>
|
|
1368
|
-
<path d="M21 4v16" />
|
|
1369
|
-
<path d="M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z" />
|
|
1370
|
-
</svg>`,"sliders-horizontal":`<svg
|
|
1371
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1372
|
-
width="24"
|
|
1373
|
-
height="24"
|
|
1374
|
-
viewBox="0 0 24 24"
|
|
1375
|
-
fill="none"
|
|
1376
|
-
stroke="currentColor"
|
|
1377
|
-
stroke-width="2"
|
|
1378
|
-
stroke-linecap="round"
|
|
1379
|
-
stroke-linejoin="round"
|
|
1380
|
-
>
|
|
1381
|
-
<path d="M10 5H3" />
|
|
1382
|
-
<path d="M12 19H3" />
|
|
1383
|
-
<path d="M14 3v4" />
|
|
1384
|
-
<path d="M16 17v4" />
|
|
1385
|
-
<path d="M21 12h-9" />
|
|
1386
|
-
<path d="M21 19h-5" />
|
|
1387
|
-
<path d="M21 5h-7" />
|
|
1388
|
-
<path d="M8 10v4" />
|
|
1389
|
-
<path d="M8 12H3" />
|
|
1390
|
-
</svg>`,smartphone:`<svg
|
|
1391
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1392
|
-
width="24"
|
|
1393
|
-
height="24"
|
|
1394
|
-
viewBox="0 0 24 24"
|
|
1395
|
-
fill="none"
|
|
1396
|
-
stroke="currentColor"
|
|
1397
|
-
stroke-width="2"
|
|
1398
|
-
stroke-linecap="round"
|
|
1399
|
-
stroke-linejoin="round"
|
|
1400
|
-
>
|
|
1401
|
-
<rect width="14" height="20" x="5" y="2" rx="2" ry="2" />
|
|
1402
|
-
<path d="M12 18h.01" />
|
|
1403
|
-
</svg>`,sparkles:`<svg
|
|
1404
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1405
|
-
width="24"
|
|
1406
|
-
height="24"
|
|
1407
|
-
viewBox="0 0 24 24"
|
|
1408
|
-
fill="none"
|
|
1409
|
-
stroke="currentColor"
|
|
1410
|
-
stroke-width="2"
|
|
1411
|
-
stroke-linecap="round"
|
|
1412
|
-
stroke-linejoin="round"
|
|
1413
|
-
>
|
|
1414
|
-
<path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z" />
|
|
1415
|
-
<path d="M20 2v4" />
|
|
1416
|
-
<path d="M22 4h-4" />
|
|
1417
|
-
<circle cx="4" cy="20" r="2" />
|
|
1418
|
-
</svg>`,"square-library":`<svg
|
|
1419
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1420
|
-
width="24"
|
|
1421
|
-
height="24"
|
|
1422
|
-
viewBox="0 0 24 24"
|
|
1423
|
-
fill="none"
|
|
1424
|
-
stroke="currentColor"
|
|
1425
|
-
stroke-width="2"
|
|
1426
|
-
stroke-linecap="round"
|
|
1427
|
-
stroke-linejoin="round"
|
|
1428
|
-
>
|
|
1429
|
-
<rect width="18" height="18" x="3" y="3" rx="2" />
|
|
1430
|
-
<path d="M7 7v10" />
|
|
1431
|
-
<path d="M11 7v10" />
|
|
1432
|
-
<path d="m15 7 2 10" />
|
|
1433
|
-
</svg>`,"square-mouse-pointer":`<svg
|
|
1434
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1435
|
-
width="24"
|
|
1436
|
-
height="24"
|
|
1437
|
-
viewBox="0 0 24 24"
|
|
1438
|
-
fill="none"
|
|
1439
|
-
stroke="currentColor"
|
|
1440
|
-
stroke-width="2"
|
|
1441
|
-
stroke-linecap="round"
|
|
1442
|
-
stroke-linejoin="round"
|
|
1443
|
-
>
|
|
1444
|
-
<path d="M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z" />
|
|
1445
|
-
<path d="M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6" />
|
|
1446
|
-
</svg>`,"square-pen":`<svg
|
|
1447
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1448
|
-
width="24"
|
|
1449
|
-
height="24"
|
|
1450
|
-
viewBox="0 0 24 24"
|
|
1451
|
-
fill="none"
|
|
1452
|
-
stroke="currentColor"
|
|
1453
|
-
stroke-width="2"
|
|
1454
|
-
stroke-linecap="round"
|
|
1455
|
-
stroke-linejoin="round"
|
|
1456
|
-
>
|
|
1457
|
-
<path d="M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" />
|
|
1458
|
-
<path d="M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z" />
|
|
1459
|
-
</svg>`,sun:`<svg
|
|
1460
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1461
|
-
width="24"
|
|
1462
|
-
height="24"
|
|
1463
|
-
viewBox="0 0 24 24"
|
|
1464
|
-
fill="none"
|
|
1465
|
-
stroke="currentColor"
|
|
1466
|
-
stroke-width="2"
|
|
1467
|
-
stroke-linecap="round"
|
|
1468
|
-
stroke-linejoin="round"
|
|
1469
|
-
>
|
|
1470
|
-
<circle cx="12" cy="12" r="4" />
|
|
1471
|
-
<path d="M12 2v2" />
|
|
1472
|
-
<path d="M12 20v2" />
|
|
1473
|
-
<path d="m4.93 4.93 1.41 1.41" />
|
|
1474
|
-
<path d="m17.66 17.66 1.41 1.41" />
|
|
1475
|
-
<path d="M2 12h2" />
|
|
1476
|
-
<path d="M20 12h2" />
|
|
1477
|
-
<path d="m6.34 17.66-1.41 1.41" />
|
|
1478
|
-
<path d="m19.07 4.93-1.41 1.41" />
|
|
1479
|
-
</svg>`,"thumbs-down":`<svg
|
|
1480
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1481
|
-
width="24"
|
|
1482
|
-
height="24"
|
|
1483
|
-
viewBox="0 0 24 24"
|
|
1484
|
-
fill="none"
|
|
1485
|
-
stroke="currentColor"
|
|
1486
|
-
stroke-width="2"
|
|
1487
|
-
stroke-linecap="round"
|
|
1488
|
-
stroke-linejoin="round"
|
|
1489
|
-
>
|
|
1490
|
-
<path d="M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z" />
|
|
1491
|
-
<path d="M17 14V2" />
|
|
1492
|
-
</svg>`,"thumbs-up":`<svg
|
|
1493
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1494
|
-
width="24"
|
|
1495
|
-
height="24"
|
|
1496
|
-
viewBox="0 0 24 24"
|
|
1497
|
-
fill="none"
|
|
1498
|
-
stroke="currentColor"
|
|
1499
|
-
stroke-width="2"
|
|
1500
|
-
stroke-linecap="round"
|
|
1501
|
-
stroke-linejoin="round"
|
|
1502
|
-
>
|
|
1503
|
-
<path d="M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z" />
|
|
1504
|
-
<path d="M7 10v12" />
|
|
1505
|
-
</svg>`,"trash-2":`<svg
|
|
1506
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1507
|
-
width="24"
|
|
1508
|
-
height="24"
|
|
1509
|
-
viewBox="0 0 24 24"
|
|
1510
|
-
fill="none"
|
|
1511
|
-
stroke="currentColor"
|
|
1512
|
-
stroke-width="2"
|
|
1513
|
-
stroke-linecap="round"
|
|
1514
|
-
stroke-linejoin="round"
|
|
1515
|
-
>
|
|
1516
|
-
<path d="M10 11v6" />
|
|
1517
|
-
<path d="M14 11v6" />
|
|
1518
|
-
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" />
|
|
1519
|
-
<path d="M3 6h18" />
|
|
1520
|
-
<path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" />
|
|
1521
|
-
</svg>`,"trending-up":`<svg
|
|
1522
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1523
|
-
width="24"
|
|
1524
|
-
height="24"
|
|
1525
|
-
viewBox="0 0 24 24"
|
|
1526
|
-
fill="none"
|
|
1527
|
-
stroke="currentColor"
|
|
1528
|
-
stroke-width="2"
|
|
1529
|
-
stroke-linecap="round"
|
|
1530
|
-
stroke-linejoin="round"
|
|
1531
|
-
>
|
|
1532
|
-
<path d="M16 7h6v6" />
|
|
1533
|
-
<path d="m22 7-8.5 8.5-5-5L2 17" />
|
|
1534
|
-
</svg>`,"triangle-alert":`<svg
|
|
1535
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1536
|
-
width="24"
|
|
1537
|
-
height="24"
|
|
1538
|
-
viewBox="0 0 24 24"
|
|
1539
|
-
fill="none"
|
|
1540
|
-
stroke="currentColor"
|
|
1541
|
-
stroke-width="2"
|
|
1542
|
-
stroke-linecap="round"
|
|
1543
|
-
stroke-linejoin="round"
|
|
1544
|
-
>
|
|
1545
|
-
<path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" />
|
|
1546
|
-
<path d="M12 9v4" />
|
|
1547
|
-
<path d="M12 17h.01" />
|
|
1548
|
-
</svg>`,twitter:`<svg
|
|
1549
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1550
|
-
width="24"
|
|
1551
|
-
height="24"
|
|
1552
|
-
viewBox="0 0 24 24"
|
|
1553
|
-
fill="none"
|
|
1554
|
-
stroke="currentColor"
|
|
1555
|
-
stroke-width="2"
|
|
1556
|
-
stroke-linecap="round"
|
|
1557
|
-
stroke-linejoin="round"
|
|
1558
|
-
>
|
|
1559
|
-
<path d="M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z" />
|
|
1560
|
-
</svg>`,upload:`<svg
|
|
1561
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1562
|
-
width="24"
|
|
1563
|
-
height="24"
|
|
1564
|
-
viewBox="0 0 24 24"
|
|
1565
|
-
fill="none"
|
|
1566
|
-
stroke="currentColor"
|
|
1567
|
-
stroke-width="2"
|
|
1568
|
-
stroke-linecap="round"
|
|
1569
|
-
stroke-linejoin="round"
|
|
1570
|
-
>
|
|
1571
|
-
<path d="M12 3v12" />
|
|
1572
|
-
<path d="m17 8-5-5-5 5" />
|
|
1573
|
-
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" />
|
|
1574
|
-
</svg>`,user:`<svg
|
|
1575
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1576
|
-
width="24"
|
|
1577
|
-
height="24"
|
|
1578
|
-
viewBox="0 0 24 24"
|
|
1579
|
-
fill="none"
|
|
1580
|
-
stroke="currentColor"
|
|
1581
|
-
stroke-width="2"
|
|
1582
|
-
stroke-linecap="round"
|
|
1583
|
-
stroke-linejoin="round"
|
|
1584
|
-
>
|
|
1585
|
-
<path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" />
|
|
1586
|
-
<circle cx="12" cy="7" r="4" />
|
|
1587
|
-
</svg>`,users:`<svg
|
|
1588
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1589
|
-
width="24"
|
|
1590
|
-
height="24"
|
|
1591
|
-
viewBox="0 0 24 24"
|
|
1592
|
-
fill="none"
|
|
1593
|
-
stroke="currentColor"
|
|
1594
|
-
stroke-width="2"
|
|
1595
|
-
stroke-linecap="round"
|
|
1596
|
-
stroke-linejoin="round"
|
|
1597
|
-
>
|
|
1598
|
-
<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" />
|
|
1599
|
-
<path d="M16 3.128a4 4 0 0 1 0 7.744" />
|
|
1600
|
-
<path d="M22 21v-2a4 4 0 0 0-3-3.87" />
|
|
1601
|
-
<circle cx="9" cy="7" r="4" />
|
|
1602
|
-
</svg>`,"volume-2":`<svg
|
|
1603
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1604
|
-
width="24"
|
|
1605
|
-
height="24"
|
|
1606
|
-
viewBox="0 0 24 24"
|
|
1607
|
-
fill="none"
|
|
1608
|
-
stroke="currentColor"
|
|
1609
|
-
stroke-width="2"
|
|
1610
|
-
stroke-linecap="round"
|
|
1611
|
-
stroke-linejoin="round"
|
|
1612
|
-
>
|
|
1613
|
-
<path d="M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z" />
|
|
1614
|
-
<path d="M16 9a5 5 0 0 1 0 6" />
|
|
1615
|
-
<path d="M19.364 18.364a9 9 0 0 0 0-12.728" />
|
|
1616
|
-
</svg>`,"volume-off":`<svg
|
|
1617
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1618
|
-
width="24"
|
|
1619
|
-
height="24"
|
|
1620
|
-
viewBox="0 0 24 24"
|
|
1621
|
-
fill="none"
|
|
1622
|
-
stroke="currentColor"
|
|
1623
|
-
stroke-width="2"
|
|
1624
|
-
stroke-linecap="round"
|
|
1625
|
-
stroke-linejoin="round"
|
|
1626
|
-
>
|
|
1627
|
-
<path d="M16 9a5 5 0 0 1 .95 2.293" />
|
|
1628
|
-
<path d="M19.364 5.636a9 9 0 0 1 1.889 9.96" />
|
|
1629
|
-
<path d="m2 2 20 20" />
|
|
1630
|
-
<path d="m7 7-.587.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298V11" />
|
|
1631
|
-
<path d="M9.828 4.172A.686.686 0 0 1 11 4.657v.686" />
|
|
1632
|
-
</svg>`,x:`<svg
|
|
1633
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1634
|
-
width="24"
|
|
1635
|
-
height="24"
|
|
1636
|
-
viewBox="0 0 24 24"
|
|
1637
|
-
fill="none"
|
|
1638
|
-
stroke="currentColor"
|
|
1639
|
-
stroke-width="2"
|
|
1640
|
-
stroke-linecap="round"
|
|
1641
|
-
stroke-linejoin="round"
|
|
1642
|
-
>
|
|
1643
|
-
<path d="M18 6 6 18" />
|
|
1644
|
-
<path d="m6 6 12 12" />
|
|
1645
|
-
</svg>`,youtube:`<svg
|
|
1646
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1647
|
-
width="24"
|
|
1648
|
-
height="24"
|
|
1649
|
-
viewBox="0 0 24 24"
|
|
1650
|
-
fill="none"
|
|
1651
|
-
stroke="currentColor"
|
|
1652
|
-
stroke-width="2"
|
|
1653
|
-
stroke-linecap="round"
|
|
1654
|
-
stroke-linejoin="round"
|
|
1655
|
-
>
|
|
1656
|
-
<path d="M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17" />
|
|
1657
|
-
<path d="m10 15 5-3-5-3z" />
|
|
1658
|
-
</svg>`,zap:`<svg
|
|
1659
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1660
|
-
width="24"
|
|
1661
|
-
height="24"
|
|
1662
|
-
viewBox="0 0 24 24"
|
|
1663
|
-
fill="none"
|
|
1664
|
-
stroke="currentColor"
|
|
1665
|
-
stroke-width="2"
|
|
1666
|
-
stroke-linecap="round"
|
|
1667
|
-
stroke-linejoin="round"
|
|
1668
|
-
>
|
|
1669
|
-
<path d="M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z" />
|
|
1670
|
-
</svg>`};var jr=class t extends HTMLElement{static observedAttributes=["name","fill","stroke"];constructor(){super(),this.attachShadow({mode:"open"})}attributeChangedCallback(e,r,i){if(r!==i&&t.observedAttributes.includes(e)){switch(e){case"name":this.name=i||"";break;case"fill":this.fill=i||"none";break;case"stroke":this.stroke=i||"currentColor";break}this.render()}}resolveIcon(e){throw new Error("Not implemented")}render(){let e=document.createElement("style");if(e.textContent=`
|
|
1671
|
-
:host {
|
|
1672
|
-
display: inline-block;
|
|
1673
|
-
line-height: 0;
|
|
1674
|
-
}
|
|
1675
|
-
`,this.shadowRoot){for(;this.shadowRoot.firstChild;)this.shadowRoot.removeChild(this.shadowRoot.firstChild);this.shadowRoot.appendChild(e)}if(!this.name)return;let r=this.resolveIcon(this.name);if(!r){console.warn(`'${this.name}' not found, please add it to ${t.name}`);return}let s=new DOMParser().parseFromString(r,"image/svg+xml").documentElement;s.setAttribute("fill",this.fill),s.setAttribute("stroke",this.stroke),s.style.width="100%",s.style.height="100%",this.shadowRoot?.appendChild(s)}name="";fill="none";stroke="currentColor"};var zc=Go,pn=class extends jr{resolveIcon(e){return zc[e]}};customElements.get("lucide-icon")||customElements.define("lucide-icon",pn);async function Zo(t,e,r){let i=e.map((c,d)=>({index:d,item:c})),n=async c=>{let d=[];for(;;){let h=i.pop();if(!h)return c(d);try{let f=await r(h.item);d.push({error:null,result:f,index:h.index})}catch(f){d.push({error:f,result:void 0,index:h.index})}}},s=Array.from({length:t},()=>new Promise(n)),a=(await Promise.all(s)).flat().sort((c,d)=>c.index-d.index),l=a.filter(c=>c.error);if(l.length>0)throw new AggregateError(l.map(c=>c.error));return a.map(c=>c.result)}var ta=ui(Ko(),1);var wn=t=>!!(t&&t.constructor&&t.call&&t.apply);var Qo=t=>!(!t||!t.then||!wn(t.then));function*ea(t,e,r=n=>n,i=1){let n=wn(r)?r:()=>r,s=e?t:0,o=e??t;for(let a=s;a<=o&&(yield n(a),!(a+i>o));a+=i);}var vn=async(t,e)=>{let r=t?.times??3,i=t?.delay,n=t?.backoff??null;for(let s of ea(1,r)){let[o,a]=await bn(e)(l=>{throw{_exited:l}});if(!o)return a;if(o._exited)throw o._exited;if(s===r)throw o;i&&await yn(i),n&&await yn(n(s))}},yn=t=>new Promise(e=>setTimeout(e,t)),bn=t=>(...e)=>{try{let r=t(...e);return Qo(r)?r.then(i=>[void 0,i]).catch(i=>[i,void 0]):[void 0,r]}catch(r){return[r,void 0]}};var xn=({delay:t},e)=>{let r,i=!0,n=(...s)=>{i?(clearTimeout(r),r=setTimeout(()=>{i&&e(...s),r=void 0},t)):e(...s)};return n.isPending=()=>r!==void 0,n.cancel=()=>{i=!1},n.flush=(...s)=>e(...s),n},st=({interval:t},e)=>{let r=!0,i,n=(...s)=>{r&&(e(...s),r=!1,i=setTimeout(()=>{r=!0,i=void 0},t))};return n.isThrottled=()=>i!==void 0,n};var ue=Object.freeze({PENDING:"pending",READY:"ready",ERROR:"error"}),Ur=class{#e;#t;#r=null;#i=!1;#n=null;#s=[];constructor(e,r){this.#e=e,this.#t={acceptedTypes:["image/jpeg","image/png","image/gif","image/webp","image/svg+xml","image/heic"],maxFileSize:10*1024*1024,maxFiles:3,onError:()=>{},onFilesAdded:()=>{},isConnected:()=>!1,onConnect:()=>{},...r},e.addController(this),this.#c()}hostDisconnected(){this.#a(),this.#d(),this.#r&&this.#r.parentNode&&this.#r.parentNode.removeChild(this.#r)}#o(){this.#e.addEventListener("dragover",this.#p),this.#e.addEventListener("dragenter",this.#f),this.#e.addEventListener("dragleave",this.#g),this.#e.addEventListener("drop",this.#x)}#a(){this.#e.removeEventListener("dragover",this.#p),this.#e.removeEventListener("dragenter",this.#f),this.#e.removeEventListener("dragleave",this.#g),this.#e.removeEventListener("drop",this.#x)}#l(){this.#e.addEventListener("paste",this.#y)}#d(){this.#e.removeEventListener("paste",this.#y)}#c(){this.#r=document.createElement("input"),this.#r.type="file",this.#r.accept=this.#t.acceptedTypes?.join(",")??"",this.#r.multiple=this.#t.maxFiles>1,this.#r.style.display="none",this.#r.addEventListener("change",this.#h),document.body.appendChild(this.#r)}#h=e=>{let r=e.target,i=Array.from(r.files||[]);this.#t.isConnected()||this.#t.onConnect?.(),this.#m(i),r.value=""};#p=e=>{e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="copy")};#f=e=>{e.preventDefault(),e.dataTransfer&&this.#v(e.dataTransfer)&&this.#w(!0)};#g=e=>{e.preventDefault();let r=e.relatedTarget;this.#e.contains(r)||this.#w(!1)};#x=e=>{if(e.preventDefault(),this.#w(!1),e.dataTransfer){let r=Array.from(e.dataTransfer.files||[]);this.#m(r)}};#y=e=>{if(!e.clipboardData)return;let i=Array.from(e.clipboardData.items||[]).filter(s=>s.kind==="file");if(i.length===0)return;e.preventDefault();let n=i.map(s=>s.getAsFile()).flatMap(s=>s?[s]:[]);this.#m(n)};#v(e){return e.types&&e.types.includes("Files")}#w(e){this.#i!==e&&(this.#i=e,this.#e.requestUpdate())}#u(e){this.#n=e,this.#t.onError(e),this.#e.requestUpdate(),setTimeout(()=>{this.#k()},6e3)}#k(){this.#n=null,this.#e.requestUpdate()}async#m(e){if(e.length===0)return;this.#t.onFilesAdded?.(),this.#k();let r=e.filter(o=>this.#_(o));if(r.length===0)return;let i=this.#s.length,n=this.#t.maxFiles??1/0,s=r.length;if(i+s>n){this.#u(`You can upload a maximum of ${n} files`);return}try{let a=(await Promise.all(r.map(l=>this.#$(l)))).filter(l=>!this.#s.some(c=>c.dataUrl===l.dataUrl));this.#s=[...this.#s,...a],this.#e.requestUpdate(),await vn({times:5,delay:2e3},async()=>{if(this.#t.isConnected())await Zo(3,a,async l=>{await this.#C(l)});else throw new Error("Not connected yet")}),this.#e.requestUpdate()}catch(o){console.error("Failed to process and upload files:",o),this.#u("Upload failed")}}#_(e){return this.#t.acceptedTypes&&!this.#t.acceptedTypes.includes(e.type)?(this.#u("Invalid file type"),!1):e.size>this.#t.maxFileSize?(this.#u(`Max file size: ${this.#t.maxFileSize/(1024*1024)}MB`),!1):!0}async#$(e){try{let r=await(0,ta.fileToBase64)(e);return{id:crypto.randomUUID(),name:e.name,type:e.type,size:e.size,dataUrl:r,file:e,processingState:ue.PENDING}}catch(r){let i=r instanceof Error?r:new Error(String(r));throw new Error(`Failed to read file: ${e.name} - ${i.message}`)}}async#C(e){if(!e){console.error("No file provided to upload"),this.#u("No file provided");return}if(!this.#t?.uploadUrl){console.error("Missing uploadUrl in options"),this.#u("Upload URL not configured");return}e.processingState=ue.PENDING,this.#e.requestUpdate();let r=new FormData;r.append("file",e.file),r.append("fileId",e.id),r.append("role",this.#t.role||"user"),this.#t.conversationId&&r.append("conversationId",this.#t.conversationId),this.#t.widgetId&&r.append("widgetId",this.#t.widgetId),this.#t.taskId&&r.append("taskId",this.#t.taskId);try{let i=await fetch(this.#t.uploadUrl,{method:"POST",body:r});if(!i.ok)throw new Error(`Upload failed with status: ${i.status}`);let n=await i.json();if(!!!n?.success){let o=n?.error||"Upload failed";throw new Error(o)}n.fileUrl&&n.fileId?(e.fileUrl=n.fileUrl,e.id=n.fileId,e.processingState=ue.READY):e.processingState=ue.PENDING,this.#e.requestUpdate()}catch(i){let n=i instanceof Error?i:new Error(String(i));console.error("Upload error:",n.message),this.#u(n.message),e.processingState=ue.ERROR,this.#e.requestUpdate()}}get isDragging(){return this.#i}get error(){return this.#n}get selectedFiles(){return this.#s}get hasPendingFiles(){return this.#s.some(e=>e.processingState===ue.PENDING)}openFilePicker=()=>{if(!this.#t.widgetId&&!this.#t.taskId){console.warn("File uploads are disabled");return}this.#r&&this.#r.click()};clearError(){this.#k()}updateUploadOptions(e){e.conversationId!==void 0&&(this.#t.conversationId=e.conversationId),e.widgetId!==void 0&&(this.#t.widgetId=e.widgetId),e.taskId!==void 0&&(this.#t.taskId=e.taskId),e.isConnected!==void 0&&(this.#t.isConnected=e.isConnected),e.onConnect!==void 0&&(this.#t.onConnect=e.onConnect),this.#o(),this.#l()}restoreFiles(e){if(!Array.isArray(e)||e.length===0){this.#s=[],this.#e.requestUpdate();return}let r=e.map(i=>{let n=new File([],i.name,{type:i.type});return{id:i.id,name:i.name,type:i.type,size:i.size,dataUrl:i.url,file:n,processingState:ue.READY,fileUrl:i.url}});this.#s=r,this.#e.requestUpdate()}clearFiles(){this.#s=[],this.clearError(),this.#e.requestUpdate()}onFileDelete=e=>{this.#t.onFileDelete&&this.#t.onFileDelete(e),this.#s=this.#s.filter(r=>r.id!==e),this.#k(),this.#e.requestUpdate()}};var Rr={maxHeight:120,initialHeight:32,paddingY:12},ee=class t extends x(v){static properties={disabled:{type:Boolean},streaming:{type:Boolean},loading:{type:Boolean},placeholder:{type:String},color:{type:String},enableFileUpload:{type:Boolean},darkMode:{type:Boolean,attribute:"dark-mode"},files:{type:Array}};#e=new Date;constructor(){super(),this.disabled=!1,this.streaming=!1,this.loading=!1,this.placeholder="Type a message...",this.color="#8B5CF6",this.enableFileUpload=!1,this.darkMode=!1,this.files=[]}get value(){return this.#t?.value?.trim()??""}render(){let e=this.streaming||this.loading||!this.value&&(!this.enableFileUpload||this.files.length===0);return u`
|
|
313
|
+
`}#e(){this.dispatchEvent(new t.NewChatClickEvent)}#t(){this.dispatchEvent(new t.ExpandClickEvent)}#r(){this.dispatchEvent(new t.CloseClickEvent)}};ye.NewChatClickEvent=class extends CustomEvent{static type="mw:new-chat-click";constructor(e={}){super(ye.NewChatClickEvent.type,{...e})}};ye.ExpandClickEvent=class extends CustomEvent{static type="mw:expand-click";constructor(e={}){super(ye.ExpandClickEvent.type,{...e})}};ye.CloseClickEvent=class extends CustomEvent{static type="mw:close-click";constructor(e={}){super(ye.CloseClickEvent.type,{...e})}};customElements.get("mw-chat-header")||customElements.define("mw-chat-header",ye);async function ta(t,e,r){let i=e.map((c,d)=>({index:d,item:c})),n=async c=>{let d=[];for(;;){let p=i.pop();if(!p)return c(d);try{let h=await r(p.item);d.push({error:null,result:h,index:p.index})}catch(h){d.push({error:h,result:void 0,index:p.index})}}},s=Array.from({length:t},()=>new Promise(n)),a=(await Promise.all(s)).flat().sort((c,d)=>c.index-d.index),l=a.filter(c=>c.error);if(l.length>0)throw new AggregateError(l.map(c=>c.error));return a.map(c=>c.result)}var oa=di(sa(),1);var bn=(t,e)=>{let r=t.reduce((i,n)=>{let s=e?e(n):n;return i[s]||(i[s]=n),i},{});return Object.values(r)};var vn=({interval:t},e)=>{let r=!0,i,n=(...s)=>{r&&(e(...s),r=!1,i=setTimeout(()=>{r=!0,i=void 0},t))};return n.isThrottled=()=>i!==void 0,n};var de=Object.freeze({pending_upload:"pending_upload",uploaded:"uploaded",errored:"errored"}),Pr=class{#e;#t;#r=!1;#n=!1;#i=null;#o=null;#s=null;#a=[];constructor(e,{acceptedTypes:r,maxFileSize:i,maxFileCount:n,canAcceptFiles:s,onFilesAdded:o,onFileDelete:a,onFileUpload:l,onError:c}){this.#e=e,this.#t={acceptedTypes:r,maxFileSize:i,maxFileCount:n,canAcceptFiles:s,onFilesAdded:o,onFileDelete:a,onFileUpload:l,onError:c},e.addController(this)}hostConnected(){this.#p()}hostDisconnected(){this.#c(),this.#u(),this.#s&&(clearTimeout(this.#s),this.#s=null),this.#i&&this.#i.parentNode&&this.#i.parentNode.removeChild(this.#i),this.#i=null}#l(){this.#c(),this.#e.addEventListener("dragover",this.#f),this.#e.addEventListener("dragenter",this.#g),this.#e.addEventListener("dragleave",this.#m),this.#e.addEventListener("drop",this.#_)}#c(){this.#e.removeEventListener("dragover",this.#f),this.#e.removeEventListener("dragenter",this.#g),this.#e.removeEventListener("dragleave",this.#m),this.#e.removeEventListener("drop",this.#_)}#d(){this.#u(),this.#e.addEventListener("paste",this.#w)}#u(){this.#e.removeEventListener("paste",this.#w)}#p(){this.#i||(this.#i=document.createElement("input"),this.#i.type="file",this.#i.accept=this.#t.acceptedTypes?.join(",")??"",this.#i.multiple=this.#t.maxFileCount>1,this.#i.style.display="none",this.#i.addEventListener("change",this.#v),document.body.appendChild(this.#i))}#v=e=>{if(e.target instanceof HTMLInputElement){let r=e.target,i=Array.from(r.files||[]);this.#h(i),r.value=""}};#f=e=>{e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="copy")};#g=e=>{e.preventDefault(),e.dataTransfer&&this.#C(e.dataTransfer)&&this.#x(!0)};#m=e=>{if(e.preventDefault(),e.relatedTarget instanceof Node){let r=e.relatedTarget;this.#e.contains(r)||this.#x(!1)}};#_=e=>{if(e.preventDefault(),this.#x(!1),e.dataTransfer){let r=Array.from(e.dataTransfer.files||[]);this.#h(r)}};#w=e=>{if(!e.clipboardData)return;let i=Array.from(e.clipboardData.items||[]).filter(s=>s.kind==="file");if(i.length===0)return;e.preventDefault();let n=i.map(s=>s.getAsFile()).flatMap(s=>s?[s]:[]);this.#h(n)};#C(e){return e.types&&e.types.includes("Files")}#x(e){this.#n!==e&&(this.#n=e,this.#e.requestUpdate())}#y(e){this.#o=e,this.#t.onError?.(e),this.#e.requestUpdate(),this.#s&&clearTimeout(this.#s),this.#s=setTimeout(()=>{this.#b()},6e3)}#b(){this.#s&&(clearTimeout(this.#s),this.#s=null),this.#o=null,this.#e.requestUpdate()}async#h(e){if(e.length===0||this.#t.canAcceptFiles?.()===!1)return;this.#t.onFilesAdded?.(),this.#b();let r=e.filter(o=>this.#E(o));if(r.length===0)return;let i=this.#a.length,n=this.#t.maxFileCount??1/0,s=r.length;if(i+s>n){this.#y(`You can upload a maximum of ${n} files`);return}try{let o=await Promise.all(r.map(l=>this.#S(l))),a=bn(o,l=>l.dataUrl);this.#a=[...this.#a,...a],this.#e.requestUpdate(),await ta(3,a,l=>lr({times:5,backoff:c=>c*3e3},()=>this.#$(l))),this.#e.requestUpdate()}catch(o){console.error("Failed to process and upload files:",o),this.#y("Upload failed")}}#E(e){return this.#t.acceptedTypes&&!this.#t.acceptedTypes.includes(e.type)?(this.#y("Invalid file type"),!1):e.size>this.#t.maxFileSize?(this.#y(`Max file size: ${this.#t.maxFileSize/(1024*1024)}MB`),!1):!0}async#S(e){try{let r=await(0,oa.fileToBase64)(e);return{id:crypto.randomUUID(),name:e.name,type:e.type,size:e.size,dataUrl:r,file:e,processingState:de.pending_upload}}catch(r){let i=r instanceof Error?r:new Error(String(r));throw new Error(`Failed to read file: ${e.name} - ${i.message}`)}}async#$(e){if(!e){console.error("No file provided to upload"),this.#y("No file provided");return}e.processingState=de.pending_upload,this.#e.requestUpdate();try{let r=await this.#t.onFileUpload(e);e.publicUrl=r.publicUrl,e.processingState=de.uploaded,this.#e.requestUpdate()}catch(r){console.error("Upload error:",r);let i=r instanceof Error?r:new Error(String(r));this.#y(i.message),e.processingState=de.errored,this.#e.requestUpdate()}}get isDragging(){return this.#n}get error(){return this.#o}get selectedFiles(){return this.#a}get hasPendingFiles(){return this.#a.some(e=>e.processingState===de.pending_upload)}openFilePicker=()=>{if(!this.#r){console.warn("File uploads are disabled");return}this.#i&&this.#i.click()};clearError(){this.#b()}clearFiles(){this.#a=[],this.clearError(),this.#e.requestUpdate()}setEnabled(e){this.#r!==e&&(this.#r=e,this.#r?(this.#l(),this.#d()):(this.#c(),this.#u()))}restoreFiles(e){this.#a=e,this.#e.requestUpdate()}deleteFile=e=>{this.#t.onFileDelete?.(e),this.#a=this.#a.filter(r=>r.id!==e),this.#b(),this.#e.requestUpdate()}};var Ur={maxHeight:120,initialHeight:32,paddingY:12},ee=class t extends w(v){static properties={disabled:{type:Boolean},streaming:{type:Boolean},loading:{type:Boolean},placeholder:{type:String},color:{type:String},enableFileUpload:{type:Boolean},darkMode:{type:Boolean,attribute:"dark-mode"},files:{type:Array}};#e=new Date;constructor(){super(),this.disabled=!1,this.streaming=!1,this.loading=!1,this.placeholder="Type a message...",this.color="#8B5CF6",this.enableFileUpload=!1,this.darkMode=!1,this.files=[]}get value(){return this.#t?.value?.trim()??""}render(){let e=this.streaming||this.loading||!this.value&&(!this.enableFileUpload||this.files.length===0);return u`
|
|
1676
314
|
<div
|
|
1677
315
|
class="${this.darkMode?"dark bg-[#1E1F23]":"bg-white"} ${this.enableFileUpload&&this.files.length>0?`ring-2 ring-[${this.color}] ring-opacity-50`:""} focus-within:ring-opacity-50 w-full overflow-hidden rounded-[18px] shadow-[0px_3px_20px_0px_rgba(0,0,0,0.2)] transition-all duration-200 focus-within:ring-2 focus-within:ring-[${this.color}]">
|
|
1678
316
|
<!-- File preview area -->
|
|
@@ -1682,18 +320,18 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
1682
320
|
<div class="relative inline-block">
|
|
1683
321
|
${i?u`<img src="${r.dataUrl}" alt="${r.name}" class="h-[60px] w-[60px] rounded-xl object-cover" />`:u`
|
|
1684
322
|
<div class="flex h-[60px] w-[60px] items-center justify-center rounded-xl bg-gray-100 dark:bg-gray-700">
|
|
1685
|
-
<
|
|
323
|
+
<mw-icon name="lucide:file" class="h-6 w-6 text-gray-500 dark:text-gray-300"></mw-icon>
|
|
1686
324
|
</div>
|
|
1687
325
|
`}
|
|
1688
326
|
|
|
1689
327
|
<!-- Progress/Status overlay -->
|
|
1690
|
-
${r.processingState===
|
|
328
|
+
${r.processingState===de.pending_upload?u`
|
|
1691
329
|
<div class="absolute inset-0 flex items-center justify-center rounded-xl bg-black/40">
|
|
1692
|
-
<
|
|
330
|
+
<mw-icon name="lucide:loader-circle" class="inline-flex h-6 w-6 animate-spin text-white transition-all duration-1000"></mw-icon>
|
|
1693
331
|
</div>
|
|
1694
|
-
`:r.processingState===
|
|
332
|
+
`:r.processingState===de.errored?u`
|
|
1695
333
|
<div class="absolute inset-0 flex items-center justify-center rounded-xl bg-red-500/60">
|
|
1696
|
-
<
|
|
334
|
+
<mw-icon name="lucide:badge-alert" class="h-6 w-6 text-white"></mw-icon>
|
|
1697
335
|
</div>
|
|
1698
336
|
`:null}
|
|
1699
337
|
|
|
@@ -1703,7 +341,7 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
1703
341
|
type="button"
|
|
1704
342
|
@click="${()=>this.#l(r.id)}"
|
|
1705
343
|
class="absolute -top-1 -right-1 flex h-5 w-5 items-center justify-center rounded-full bg-[#eeedf1] text-white hover:bg-[#eeedf195] dark:bg-gray-700 dark:hover:bg-gray-600">
|
|
1706
|
-
<
|
|
344
|
+
<mw-icon name="lucide:x" class="h-3 w-3 text-[#14161a] dark:text-gray-200"></mw-icon>
|
|
1707
345
|
</button>
|
|
1708
346
|
</div>
|
|
1709
347
|
`})}
|
|
@@ -1711,7 +349,7 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
1711
349
|
`:null}
|
|
1712
350
|
|
|
1713
351
|
<!-- Input form -->
|
|
1714
|
-
<form @submit="${this.#
|
|
352
|
+
<form @submit="${this.#i}" class="flex w-full items-center">
|
|
1715
353
|
${this.enableFileUpload?u`
|
|
1716
354
|
<button
|
|
1717
355
|
data-testid="file-upload-btn"
|
|
@@ -1719,7 +357,7 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
1719
357
|
@click="${this.#a}"
|
|
1720
358
|
?disabled="${this.disabled||this.loading}"
|
|
1721
359
|
class="mx-1 px-2 transition-opacity duration-200 hover:opacity-80">
|
|
1722
|
-
<
|
|
360
|
+
<mw-icon name="lucide:image-plus" class="block h-6 w-6 text-[#312E30] dark:text-gray-300"></mw-icon>
|
|
1723
361
|
</button>
|
|
1724
362
|
`:null}
|
|
1725
363
|
|
|
@@ -1727,13 +365,13 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
1727
365
|
<textarea
|
|
1728
366
|
data-testid="mw-chat-input-textarea"
|
|
1729
367
|
name="input"
|
|
1730
|
-
@input="${this.#
|
|
1731
|
-
@keydown="${this.#
|
|
368
|
+
@input="${this.#o}"
|
|
369
|
+
@keydown="${this.#n}"
|
|
1732
370
|
autofocus
|
|
1733
371
|
?disabled="${this.disabled}"
|
|
1734
372
|
maxlength="1000"
|
|
1735
373
|
placeholder="${this.placeholder}"
|
|
1736
|
-
class="${this.enableFileUpload?"px-1":"pl-3 pr-1"} box-content h-[${
|
|
374
|
+
class="${this.enableFileUpload?"px-1":"pl-3 pr-1"} box-content h-[${Ur.initialHeight}px] w-full resize-none place-content-center rounded bg-transparent py-[${Ur.paddingY}px] text-base text-gray-800 outline-none placeholder:text-[14px] placeholder:font-light disabled:content-baseline disabled:leading-[${Ur.initialHeight}px] dark:text-gray-200"></textarea>
|
|
1737
375
|
|
|
1738
376
|
<button
|
|
1739
377
|
type="submit"
|
|
@@ -1742,7 +380,7 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
1742
380
|
class="mx-1 rounded-full px-2 transition-all duration-150 ease-out disabled:cursor-not-allowed disabled:opacity-50">
|
|
1743
381
|
<div
|
|
1744
382
|
class="${this.streaming||this.loading||!this.value&&(!this.enableFileUpload||this.files.length===0)?"bg-gray-400 dark:bg-gray-600":""} ${this.streaming||this.loading?"scale-100":"scale-95"} flex h-8 w-8 flex-row items-center justify-center rounded-full bg-[${this.color}] p-1.5 transition-all transition-colors duration-200">
|
|
1745
|
-
${this.loading?u`<
|
|
383
|
+
${this.loading?u`<mw-icon name="lucide:loader-circle" class="${e?"text-white":"text-white dark:text-gray-800"} inline-flex h-5 w-5 animate-spin transition-all"></mw-icon>`:this.streaming?u`<mw-icon name="lucide:x" class="${e?"text-white":"text-white dark:text-gray-800"} inline-flex h-4 w-4 transition-colors"></mw-icon>`:u`<mw-icon name="lucide:arrow-up" class="${e?"text-white":"text-white dark:text-gray-800"} inline-flex h-4 w-4 transition-colors"></mw-icon>`}
|
|
1746
384
|
</div>
|
|
1747
385
|
</button>
|
|
1748
386
|
</form>
|
|
@@ -1751,7 +389,7 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
1751
389
|
<div class="h-5 w-full"></div>
|
|
1752
390
|
</slot>
|
|
1753
391
|
</div>
|
|
1754
|
-
`}get#t(){return this.renderRoot.querySelector('textarea[name="input"]')??null}get#r(){return this.renderRoot.querySelector('button[type="submit"]')??null}#
|
|
392
|
+
`}get#t(){return this.renderRoot.querySelector('textarea[name="input"]')??null}get#r(){return this.renderRoot.querySelector('button[type="submit"]')??null}#n(e){wu(e)&&(e.preventDefault(),!this.streaming&&!this.disabled&&!this.loading&&this.#r?.click())}#i(e){e.preventDefault();let r=new Date;if(r.getTime()-this.#e.getTime()<500)return;if(this.#e=r,this.streaming){this.dispatchEvent(new t.CancelEvent);return}let n=this.#t;if(!n)throw new Error("Expected input element to be present");let s=n.value.trim();(s||this.enableFileUpload&&this.files.length>0)&&this.dispatchEvent(new t.SubmitEvent(s))&&(n.value=""),this.#s(),this.focus()}#o(e){this.dispatchEvent(new t.ChangeEvent({delta:e.data,full:e.target instanceof HTMLTextAreaElement?e.target.value:""})),this.#s()}#s(){let e=this.#t;if(!e)return;let{maxHeight:r,initialHeight:i,paddingY:n}=Ur;e.style.height=`${i}px`;let s=e.scrollHeight,o=n*2,a=Math.min(s-o,r);e.style.height=`${a}px`,this.requestUpdate()}#a(){this.dispatchEvent(new t.FileUploadClickEvent)}#l(e){this.dispatchEvent(new t.FileDeleteEvent(e))}setValue(e){let r=this.#t;if(!r){console.warn("input element not found, cannot set value");return}r.value=e,this.#s(),this.dispatchEvent(new t.ChangeEvent({delta:null,full:e}))}focus(){window.requestAnimationFrame(()=>{this.#t?.focus()})}};ee.ChangeEvent=class extends CustomEvent{static type="mw:change";constructor(e,r={}){super(ee.ChangeEvent.type,{detail:e,...r})}};ee.SubmitEvent=class extends CustomEvent{static type="mw:submit";constructor(e,r={}){super(ee.SubmitEvent.type,{detail:e,...r,cancelable:!0})}};ee.CancelEvent=class extends CustomEvent{static type="mw:cancel";constructor(e={}){super(ee.CancelEvent.type,{...e})}};ee.FileUploadClickEvent=class extends CustomEvent{static type="mw:file-upload-click";constructor(e={}){super(ee.FileUploadClickEvent.type,{...e})}};ee.FileDeleteEvent=class extends CustomEvent{static type="mw:file-delete";constructor(e,r={}){super(ee.FileDeleteEvent.type,{detail:e,...r})}};function wu(t){return(t.code==="Enter"||t.code==="NumpadEnter")&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey}customElements.get("mw-chat-input")||customElements.define("mw-chat-input",ee);function aa({delay:t},e){let r=!0,i;return Object.assign((...n)=>{r?(clearTimeout(i),i=setTimeout(()=>{r&&e(...n),i=void 0},t)):e(...n)},{isPending:()=>i!==void 0,cancel:()=>{r=!1},flush:(...n)=>e(...n)})}var wn=class{#e;constructor(e,{delay:r},i){this.#e=aa({delay:r},i),e.addController(this)}get call(){return this.#e}hostDisconnected(){this.#e.cancel()}};function la(t,e,r){return new wn(t,e,r)}function ua(t){let e=Math.floor(t/3600);t=t%3600;let r=Math.floor(t/60);return t=Math.floor(t%60),e>0?r>0?`${ca(e)} hr ${r} min`:`${ca(e)} hr`:r>0?t>0?`${r} min ${t} sec`:`${r} min`:`${t} sec`}function da(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}`}function ca(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}var xn=class extends w(v){static properties={content:{type:String},darkMode:{type:Boolean,attribute:"dark-mode"},expanded:{type:Boolean,state:!0},_inProgress:{type:Boolean,state:!0}};static styles=O`
|
|
1755
393
|
@keyframes ellipsis {
|
|
1756
394
|
0% {
|
|
1757
395
|
content: '';
|
|
@@ -1771,16 +409,14 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
1771
409
|
content: '';
|
|
1772
410
|
animation: ellipsis 1.5s infinite;
|
|
1773
411
|
}
|
|
1774
|
-
`;#e=
|
|
412
|
+
`;#e=la(this,{delay:1200},()=>{this._inProgress=!1,this.#t&&(this.#r=Date.now()),this.requestUpdate()});#t=null;#r=null;constructor(){super(),this.content="",this.darkMode=!1,this.expanded=!1,this._inProgress=!1}getStreamDuration(){return this.#t?Date.now()-this.#t:null}#n(){if(!this.#t||!this.#r)return null;let e=this.#r-this.#t,r=Math.round(e/1e3);return Math.max(1,r)}#i(){if(this._inProgress)return"Thinking";let e=this.#n();return e?`Thought for ${ua(e)}`:"Thought"}updated(e){e.has("content")&&(!this.#t&&this.content&&(this.#t=Date.now()),this._inProgress=!0,this.#e.call())}#o=()=>{this.expanded=!this.expanded};render(){return u`
|
|
1775
413
|
<div class="${this.darkMode?"dark":""} w-full">
|
|
1776
414
|
<button
|
|
1777
|
-
@click="${this.#
|
|
415
|
+
@click="${this.#o}"
|
|
1778
416
|
class="flex items-center gap-1.5 text-left text-xs text-gray-500 transition-colors hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300"
|
|
1779
417
|
type="button">
|
|
1780
|
-
<
|
|
1781
|
-
|
|
1782
|
-
</svg>
|
|
1783
|
-
<span class="thinking-text ${this._inProgress?"in-progress":""}">${this.#n()}</span>
|
|
418
|
+
<mw-icon class="${this.expanded?"rotate-90":""} h-3 w-3 shrink-0 transition-transform" name="lucide:chevron-right"></mw-icon>
|
|
419
|
+
<span class="thinking-text ${this._inProgress?"in-progress":""}">${this.#i()}</span>
|
|
1784
420
|
</button>
|
|
1785
421
|
|
|
1786
422
|
${this.expanded?u`
|
|
@@ -1791,7 +427,7 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
1791
427
|
</div>
|
|
1792
428
|
`:null}
|
|
1793
429
|
</div>
|
|
1794
|
-
`}};customElements.get("mw-thought-block")||customElements.define("mw-thought-block",
|
|
430
|
+
`}};customElements.get("mw-thought-block")||customElements.define("mw-thought-block",xn);var kn=class extends w(v){static properties={side:{type:String},status:{type:String},color:{type:String},logoUrl:{type:String,attribute:"logo"},position:{type:String},darkMode:{type:Boolean,attribute:"dark-mode"}};constructor(){super(),this.side="assistant",this.status="",this.color="",this.logoUrl="",this.position="single",this.darkMode=!1}render(){return this.#e()}#e(){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 u`
|
|
1795
431
|
<div class="${this.darkMode?"dark":""} ml-20 flex justify-end font-sans text-base">
|
|
1796
432
|
<div class="max-w-full">
|
|
1797
433
|
<!-- include an invisible border (same color as background) so that this message is the same height as the bot message -->
|
|
@@ -1802,9 +438,7 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
1802
438
|
<!-- render status (if any) -->
|
|
1803
439
|
${this.status==="sent"?u`
|
|
1804
440
|
<!-- tick mark -->
|
|
1805
|
-
<
|
|
1806
|
-
<path stroke-linecap="round" stroke-linejoin="round" d="m4.5 12.75 6 6 9-13.5" />
|
|
1807
|
-
</svg>
|
|
441
|
+
<mw-icon class="ml-auto h-3 w-3 text-gray-400" name="lucide:check"></mw-icon>
|
|
1808
442
|
`:null}
|
|
1809
443
|
</div>
|
|
1810
444
|
</div>
|
|
@@ -1827,167 +461,16 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
1827
461
|
</div>
|
|
1828
462
|
</div>
|
|
1829
463
|
</div>
|
|
1830
|
-
`;default:throw new Error(`Unknown side: ${this.side}`)}}};customElements.get("mw-chat-message")||customElements.define("mw-chat-message",_n);var
|
|
1831
|
-
<div class="${this.#a} mb-2 min-h-[100px]">
|
|
1832
|
-
<div class="${this.#l} relative">
|
|
1833
|
-
<!-- Placeholder background that's only shown when loading or error -->
|
|
1834
|
-
${this.#e?null:u`
|
|
1835
|
-
<div class="flex items-center justify-center bg-gray-100" style="width: ${this.width}; height: 200px;">
|
|
1836
|
-
${this.#t?u`
|
|
1837
|
-
<!-- Error icon -->
|
|
1838
|
-
<svg class="h-8 w-8 text-gray-400" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
|
1839
|
-
<path
|
|
1840
|
-
stroke-linecap="round"
|
|
1841
|
-
stroke-linejoin="round"
|
|
1842
|
-
d="m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z" />
|
|
1843
|
-
</svg>
|
|
1844
|
-
`:u`
|
|
1845
|
-
<!-- Loading pulse animation -->
|
|
1846
|
-
<div class="h-8 w-8 animate-pulse rounded-full bg-gray-300"></div>
|
|
1847
|
-
`}
|
|
1848
|
-
</div>
|
|
1849
|
-
`}
|
|
1850
|
-
|
|
1851
|
-
<!-- Actual image -->
|
|
1852
|
-
<img
|
|
1853
|
-
src="${this.src}"
|
|
1854
|
-
alt="${this.alt}"
|
|
1855
|
-
style="width: ${this.width}; height: ${this.height}; display: block;"
|
|
1856
|
-
class="${this.#e?"opacity-100":"opacity-0 hidden"} ${this.clickable?"cursor-pointer hover:scale-[105%]":""} h-full w-full max-w-full transition-all duration-200"
|
|
1857
|
-
@error="${this.#c}"
|
|
1858
|
-
@load="${this.#h}"
|
|
1859
|
-
@click="${this.clickable?this.#p:void 0}"
|
|
1860
|
-
loading="lazy" />
|
|
1861
|
-
</div>
|
|
1862
|
-
</div>
|
|
1863
|
-
|
|
1864
|
-
<!-- Full image modal -->
|
|
1865
|
-
${this.#r?u`
|
|
1866
|
-
<div
|
|
1867
|
-
class="${this.#i?"bg-opacity-0":"bg-opacity-75"} fixed inset-0 z-50 flex items-center justify-center bg-black p-4 transition-opacity duration-300"
|
|
1868
|
-
@click="${this.#f}">
|
|
1869
|
-
<!-- Close button -->
|
|
1870
|
-
<button
|
|
1871
|
-
type="button"
|
|
1872
|
-
class="bg-opacity-50 ${this.#i?"opacity-0":"opacity-75"} hover:bg-opacity-75 absolute top-8 right-8 z-10 rounded-full bg-black p-2 text-white transition-[colors,opacity] delay-300 focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-transparent focus:outline-none"
|
|
1873
|
-
@click="${this.#f}"
|
|
1874
|
-
aria-label="Close full image">
|
|
1875
|
-
<!-- X mark icon -->
|
|
1876
|
-
<svg class="h-5 w-5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
|
1877
|
-
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
|
|
1878
|
-
</svg>
|
|
1879
|
-
</button>
|
|
1880
|
-
<div class="relative flex max-h-full max-w-full">
|
|
1881
|
-
<img
|
|
1882
|
-
src="${this.#d()}"
|
|
1883
|
-
alt="${this.alt}"
|
|
1884
|
-
class="${this.#i?"scale-75 opacity-0":"scale-100 opacity-100"} max-h-full max-w-full transform rounded-lg shadow-2xl transition-all duration-100 ease-out"
|
|
1885
|
-
@click="${this.#g}" />
|
|
1886
|
-
</div>
|
|
1887
|
-
</div>
|
|
1888
|
-
`:null}
|
|
1889
|
-
`:(console.warn("MwChatImage: No src provided"),null)}#c=e=>{console.error("Failed to load chat image:",this.src),this.#t=!0,this.requestUpdate(),this.dispatchEvent(new CustomEvent("mw-chat-image:error",{detail:{src:this.src,event:e},bubbles:!0}))};#h=e=>{this.#e=!0,this.requestUpdate(),this.dispatchEvent(new CustomEvent("mw-chat-image:load",{detail:{src:this.src,event:e},bubbles:!0}))};#p=e=>{this.clickable&&(e.preventDefault(),e.stopPropagation(),this.#r=!0,this.#n(),this.requestUpdate(),this.#i=!0,this.requestUpdate(),setTimeout(()=>{this.#i=!1,this.requestUpdate()},500),this.dispatchEvent(new CustomEvent("mw-chat-image:click",{detail:{src:this.src,event:e},bubbles:!0})))};#f=e=>{e.preventDefault(),e.stopPropagation(),this.#s(),this.#r=!1,this.requestUpdate()};#g=e=>{e.preventDefault(),e.stopPropagation()}};ge.ErrorEvent=class extends CustomEvent{static type="mw-chat-image:error";constructor(e,r={}){super(ge.ErrorEvent.type,{detail:e,...r})}};ge.LoadEvent=class extends CustomEvent{static type="mw-chat-image:load";constructor(e,r={}){super(ge.LoadEvent.type,{detail:e,...r})}};ge.ClickEvent=class extends CustomEvent{static type="mw-chat-image:click";constructor(e,r={}){super(ge.ClickEvent.type,{detail:e,...r})}};customElements.get("mw-chat-image")||customElements.define("mw-chat-image",ge);var N=t=>t??P;var lu=["javascript:","data:text/html","vbscript:","data:text/javascript","data:text/vbscript","data:text/css","data:text/plain","data:text/xml"],jt=class t extends x(v){static properties={text:{type:String},color:{type:String},dismissible:{type:Boolean},ephemeral:{type:Boolean},darkMode:{type:Boolean,attribute:"dark-mode"},_dismissed:{type:Boolean,state:!0}};constructor(){super(),this.text="By chatting with us, you agree to the monitoring and recording of this chat to deliver our services and processing of your personal data in accordance with our [Privacy Policy](https://docs.molin.ai/legal/privacy-policy).",this.color="#3b82f6",this.dismissible=!1,this.ephemeral=!1,this.darkMode=!1,this._dismissed=!1}connectedCallback(){super.connectedCallback(),this.dismissible&&(this._dismissed=this.#e())}#e(){return this.ephemeral?!1:R.disclaimerDismissed}#t(){this.ephemeral||(R.disclaimerDismissed=!0)}#r=e=>{e.preventDefault(),this._dismissed=!0,this.#t(),this.dispatchEvent(new t.DismissEvent)};#i(e){let i=/\[([^\]]+)\]\(([^)]+)\)/g.exec(e);if(i){let n=i[0],s=i[1],o=i[2],a=i.index;return lu.some(l=>o.toLowerCase().startsWith(l))||!o||!s?e:u`${e.slice(0,a)}<a href="${N(o)}" target="_blank" rel="noopener noreferrer" @click="${this.#n}" class="underline" style="color: ${this.color}"
|
|
1890
|
-
>${s}</a
|
|
1891
|
-
>${e.slice(a+n.length)}`}return e}#n=e=>{e.stopPropagation()};render(){if(this._dismissed)return null;let e=this.#i(this.text);return u`
|
|
1892
|
-
<div class="${this.darkMode?"dark":""} flex items-center justify-between">
|
|
1893
|
-
<div class="flex flex-1 items-center justify-center">
|
|
1894
|
-
<span class="px-3 text-center text-xs font-light text-gray-500 dark:text-gray-400">${e}</span>
|
|
1895
|
-
</div>
|
|
1896
|
-
|
|
1897
|
-
${this.dismissible?u`
|
|
1898
|
-
<button
|
|
1899
|
-
type="button"
|
|
1900
|
-
aria-label="Dismiss"
|
|
1901
|
-
class="ml-2 flex h-4 w-4 flex-shrink-0 cursor-pointer items-center justify-center rounded hover:bg-gray-200 dark:hover:bg-gray-600"
|
|
1902
|
-
@click="${this.#r}">
|
|
1903
|
-
<lucide-icon name="x" class="h-3 w-3 text-gray-500 dark:text-gray-400"></lucide-icon>
|
|
1904
|
-
</button>
|
|
1905
|
-
`:null}
|
|
1906
|
-
</div>
|
|
1907
|
-
`}};jt.DismissEvent=class extends CustomEvent{static type="mw-disclaimer:dismiss";constructor(e={}){super(jt.DismissEvent.type,{...e})}};customElements.get("mw-disclaimer")||customElements.define("mw-disclaimer",jt);var $n=class extends x(v){static properties={text:{type:String},variant:{type:String},autoDismissable:{type:Boolean,attribute:"auto-dismissable"},dismissDelay:{type:Number,attribute:"dismiss-delay"},_isVisible:{type:Boolean,state:!0}};constructor(){super(),this.text="I'm still learning!",this.variant="info",this.autoDismissable=!1,this.dismissDelay=5e3,this._isVisible=!0}connectedCallback(){super.connectedCallback(),this.autoDismissable&&this.#e()}#e(){setTimeout(()=>{this._isVisible=!1,this.requestUpdate()},this.dismissDelay)}#t(){switch(this.variant){case"error":return{bg:"bg-red-600",text:"text-white",icon:"badge-alert"};case"warning":return{bg:"bg-yellow-600",text:"text-white",icon:"alert-triangle"};case"success":return{bg:"bg-green-600",text:"text-white",icon:"check-circle"};default:return{bg:"bg-black",text:"text-white",icon:"info"}}}render(){let e=this.#t();return u`
|
|
1908
|
-
<div
|
|
1909
|
-
class="${this._isVisible?"opacity-100 translate-y-0":"opacity-0 translate-y-[50px] pointer-events-none mt-[-40px]"} flex justify-center transition-all transition-discrete duration-[1s] ease-in-out">
|
|
1910
|
-
<div class="${e.bg} mb-2 flex max-w-[70%] items-center justify-center rounded-full px-3 py-2 select-none">
|
|
1911
|
-
<!-- Icon based on variant -->
|
|
1912
|
-
${this.variant==="info"?u`
|
|
1913
|
-
<!-- (i) symbol for info -->
|
|
1914
|
-
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="h-4 w-4">
|
|
1915
|
-
<path
|
|
1916
|
-
fill-rule="evenodd"
|
|
1917
|
-
clip-rule="evenodd"
|
|
1918
|
-
d="M2.25 12C2.25 6.61522 6.61522 2.25 12 2.25C17.3848 2.25 21.75 6.61522 21.75 12C21.75 17.3848 17.3848 21.75 12 21.75C6.61522 21.75 2.25 17.3848 2.25 12ZM10.9562 10.5584C12.1025 9.98533 13.3931 11.0206 13.0823 12.2639L12.3733 15.0999L12.4148 15.0792C12.7852 14.894 13.2357 15.0441 13.421 15.4146C13.6062 15.7851 13.4561 16.2356 13.0856 16.4208L13.0441 16.4416C11.8979 17.0147 10.6072 15.9794 10.9181 14.7361L11.6271 11.9001L11.5856 11.9208C11.2151 12.1061 10.7646 11.9559 10.5793 11.5854C10.3941 11.2149 10.5443 10.7644 10.9148 10.5792L10.9562 10.5584ZM12 9C12.4142 9 12.75 8.66421 12.75 8.25C12.75 7.83579 12.4142 7.5 12 7.5C11.5858 7.5 11.25 7.83579 11.25 8.25C11.25 8.66421 11.5858 9 12 9Z"
|
|
1919
|
-
fill="white" />
|
|
1920
|
-
</svg>
|
|
1921
|
-
`:this.variant==="error"?u`
|
|
1922
|
-
<!-- Alert circle for error -->
|
|
1923
|
-
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="h-4 w-4">
|
|
1924
|
-
<circle cx="12" cy="12" r="10" stroke="white" stroke-width="2" />
|
|
1925
|
-
<line x1="15" y1="9" x2="9" y2="15" stroke="white" stroke-width="2" />
|
|
1926
|
-
<line x1="9" y1="9" x2="15" y2="15" stroke="white" stroke-width="2" />
|
|
1927
|
-
</svg>
|
|
1928
|
-
`:this.variant==="warning"?u`
|
|
1929
|
-
<!-- Alert triangle for warning -->
|
|
1930
|
-
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="h-4 w-4">
|
|
1931
|
-
<path d="M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
|
1932
|
-
<line x1="12" y1="9" x2="12" y2="13" stroke="white" stroke-width="2" stroke-linecap="round" />
|
|
1933
|
-
<path d="M12 17h.01" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
|
1934
|
-
</svg>
|
|
1935
|
-
`:u`
|
|
1936
|
-
<!-- Check circle for success -->
|
|
1937
|
-
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="h-4 w-4">
|
|
1938
|
-
<path d="M22 11.08V12a10 10 0 11-5.93-9.14" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
|
1939
|
-
<polyline points="22,4 12,14.01 9,11.01" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
|
1940
|
-
</svg>
|
|
1941
|
-
`}
|
|
1942
|
-
|
|
1943
|
-
<span class="${e.text} ml-1 text-xs">${this.text}</span>
|
|
1944
|
-
</div>
|
|
1945
|
-
</div>
|
|
1946
|
-
`}};customElements.get("mw-info-banner")||customElements.define("mw-info-banner",$n);var Sn=class extends x(v){render=()=>u`
|
|
1947
|
-
<svg class="inline-block h-full w-full leading-none" 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">
|
|
1948
|
-
<circle fill="currentColor" stroke="none" cx="27" cy="50" r="6">
|
|
1949
|
-
<animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.1" />
|
|
1950
|
-
</circle>
|
|
1951
|
-
<circle fill="currentColor" stroke="none" cx="47" cy="50" r="6">
|
|
1952
|
-
<animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.2" />
|
|
1953
|
-
</circle>
|
|
1954
|
-
<circle fill="currentColor" stroke="none" cx="67" cy="50" r="6">
|
|
1955
|
-
<animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.3" />
|
|
1956
|
-
</circle>
|
|
1957
|
-
</svg>
|
|
1958
|
-
`};customElements.get("mw-loading")||customElements.define("mw-loading",Sn);var cu="https://molin.ai/?utm_source=molin.ai&utm_medium=widget&utm_campaign=poweredby",En=class extends x(v){static properties={darkMode:{type:Boolean,attribute:"dark-mode"}};constructor(){super(),this.darkMode=!1}render(){return u`
|
|
1959
|
-
<p class="${this.darkMode?"text-gray-300":"text-gray-600"} flex items-center justify-center text-xs whitespace-nowrap">
|
|
1960
|
-
<span>Powered by</span>
|
|
1961
|
-
|
|
1962
|
-
<a href="${cu}" target="_blank" class="inline-flex items-center underline">
|
|
1963
|
-
<svg class="mx-1 inline-block h-4 w-4" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1964
|
-
<circle cx="10.0361" cy="10.0361" r="10.0361" fill="#242038" />
|
|
1965
|
-
<path
|
|
1966
|
-
fill-rule="evenodd"
|
|
1967
|
-
clip-rule="evenodd"
|
|
1968
|
-
d="M14.4482 15.0424C15.0767 15.2108 15.7464 15.1227 16.3099 14.7973L15.0832 12.6725L13.8564 10.5477L13.8562 10.5479L11.4869 6.44411L11.4774 6.42785L11.475 6.42371C11.1496 5.86018 10.6137 5.44898 9.98519 5.28057C9.35666 5.11215 8.68697 5.20032 8.12345 5.52567L9.35019 7.65045L10.5769 9.77523L10.577 9.77516L12.9461 13.8785L12.9593 13.9008C13.2847 14.4635 13.8202 14.8741 14.4482 15.0424ZM10.8392 15.0436C11.4677 15.212 12.1374 15.1238 12.701 14.7985L11.4742 12.6737L10.2475 10.5489L10.2474 10.549L7.87793 6.44488L7.87142 6.43373L7.86629 6.4248C7.54093 5.86127 7.00505 5.45007 6.37652 5.28166C5.90455 5.15519 5.40058 5.17178 4.94379 5.32631C4.44552 5.48229 4.08397 5.94754 4.08397 6.49724V12.5389C4.08354 12.5576 4.08333 12.5763 4.08333 12.5951C4.08333 13.2451 4.34182 13.8686 4.80194 14.3283C5.26205 14.7879 5.88611 15.0462 6.53681 15.0462V12.6098C6.53724 12.5964 6.53746 12.5831 6.53746 12.5696V9.7318C6.33805 9.40929 6.1011 8.99037 5.8593 8.52589C5.2972 7.44609 4.92176 6.52897 5.02074 6.47745C5.03257 6.47129 5.05064 6.47777 5.07425 6.4958L5.07612 6.49904C5.25259 6.63858 5.72449 7.39502 6.21645 8.34007C6.38575 8.66529 6.53812 8.97576 6.66569 9.25226L6.96825 9.77632L6.96829 9.77629L9.33716 13.8793L9.34457 13.892L9.34944 13.9004C9.67479 14.464 10.2107 14.8752 10.8392 15.0436Z"
|
|
1969
|
-
fill="url(#paint0_linear_1_17)" />
|
|
1970
|
-
<defs>
|
|
1971
|
-
<linearGradient id="paint0_linear_1_17" x1="4.08333" y1="10.1653" x2="16.3099" y2="10.1653" gradientUnits="userSpaceOnUse">
|
|
1972
|
-
<stop offset="0.197917" stop-color="#E4FF1A" />
|
|
1973
|
-
<stop offset="0.822917" stop-color="#21F4F0" />
|
|
1974
|
-
</linearGradient>
|
|
1975
|
-
</defs>
|
|
1976
|
-
</svg>
|
|
1977
|
-
|
|
1978
|
-
<span>Molin AI</span>
|
|
1979
|
-
</a>
|
|
1980
|
-
</p>
|
|
1981
|
-
`}};customElements.get("mw-powered-by")||customElements.define("mw-powered-by",En);function oa(t){return e=>{let i=(t?Math[t]:Math.trunc)(e);return i===0?0:i}}var uu=Math.pow(10,8)*24*60*60*1e3,V1=-uu;var du=3600;var aa=du*24,N1=aa*7,hu=aa*365.2425,pu=hu/12,H1=pu*3,Mn=Symbol.for("constructDateFrom");function la(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Mn in t?t[Mn](e):t instanceof Date?new t.constructor(e):new Date(e)}function An(t,e){return la(e||t,t)}function ca(t,e){return+An(t)-+An(e)}function In(t,e,r){let i=ca(t,e)/1e3;return oa(r?.roundingMethod)(i)}var Ln=class extends x(v){static properties={question:{type:String},options:{type:Array},heading:{type:String},gameTitle:{type:String},resultPrefix:{type:String},correctButtonText:{type:String},wrongButtonText:{type:String},color:{type:String},apiBaseUrl:{type:String},cdnBaseUrl:{type:String},minutes:{type:String},seconds:{type:String},darkMode:{type:Boolean,attribute:"dark-mode"},_currentQuestion:{type:String,state:!0},_questionHistory:{type:Array,state:!0},_guessedJob:{type:String,state:!0},_isLoadingNextQuestion:{type:Boolean,state:!0},_loadingAnswer:{type:String,state:!0},_guessValidated:{type:Boolean,state:!0},_validatingButton:{type:String,state:!0},_currentAttemptQuestionCount:{type:Number,state:!0}};static styles=j`
|
|
464
|
+
`;default:throw new Error(`Unknown side: ${this.side}`)}}};customElements.get("mw-chat-message")||customElements.define("mw-chat-message",kn);function pa(t){return e=>{let i=(t?Math[t]:Math.trunc)(e);return i===0?0:i}}var xu=Math.pow(10,8)*24*60*60*1e3,Xm=-xu;var ku=3600;var ha=ku*24,Jm=ha*7,_u=ha*365.2425,Cu=_u/12,Ym=Cu*3,_n=Symbol.for("constructDateFrom");function fa(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&_n in t?t[_n](e):t instanceof Date?new t.constructor(e):new Date(e)}function Cn(t,e){return fa(e||t,t)}function ma(t,e){return+Cn(t)-+Cn(e)}function $n(t,e,r){let i=ma(t,e)/1e3;return pa(r?.roundingMethod)(i)}var En=class extends w(v){static properties={question:{type:String},options:{type:Array},heading:{type:String},gameTitle:{type:String},resultPrefix:{type:String},correctButtonText:{type:String},wrongButtonText:{type:String},color:{type:String},apiBaseUrl:{type:String},cdnBaseUrl:{type:String},minutes:{type:String},seconds:{type:String},darkMode:{type:Boolean,attribute:"dark-mode"},_currentQuestion:{type:String,state:!0},_questionHistory:{type:Array,state:!0},_guessedJob:{type:String,state:!0},_isLoadingNextQuestion:{type:Boolean,state:!0},_loadingAnswer:{type:String,state:!0},_guessValidated:{type:Boolean,state:!0},_validatingButton:{type:String,state:!0},_currentAttemptQuestionCount:{type:Number,state:!0}};static styles=O`
|
|
1982
465
|
:host {
|
|
1983
466
|
display: block;
|
|
1984
467
|
}
|
|
1985
|
-
`;#e=7;constructor(){super(),this.question="",this.options=["No","Yes"],this.heading="",this.gameTitle="",this.resultPrefix="",this.correctButtonText="Correct",this.wrongButtonText="Wrong",this.color="#601feb",this.apiBaseUrl="",this.cdnBaseUrl="",this.minutes="00",this.seconds="00",this.darkMode=!1,this._currentQuestion="",this._questionHistory=[],this._guessedJob="",this._isLoadingNextQuestion=!1,this._loadingAnswer="",this._guessValidated=!1,this._validatingButton="",this._currentAttemptQuestionCount=0}firstUpdated(){this._currentQuestion=this.question}async#t(){if(!this.apiBaseUrl)return console.warn("API base URL not configured, cannot fetch next question"),null;this._isLoadingNextQuestion=!0;try{let e=await fetch(`${this.apiBaseUrl}/preview/wait-game/next-question`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({questionAnswers:this._questionHistory,takeGuess:this._currentAttemptQuestionCount>=this.#e})});return e.ok?await e.json():(console.error("failed to fetch next question",e.status),null)}catch(e){return console.error("error fetching next question",e),null}finally{this._isLoadingNextQuestion=!1}}#r=async e=>{this._loadingAnswer=e,this._questionHistory.push({question:this._currentQuestion,answer:e}),this._currentAttemptQuestionCount++,this.dispatchEvent(new CustomEvent("mw-chat-wait-game:question-answered",{bubbles:!0,composed:!0,detail:{questionIndex:this._questionHistory.length-1,question:this._currentQuestion,answer:e,totalQuestions:this.#e,allAnswers:this._questionHistory.map(i=>i.answer)}}));let r=await this.#t();r&&(r.isComplete&&r.guessedJob?(this._guessedJob=r.guessedJob,this.dispatchEvent(new CustomEvent("mw-chat-wait-game:game-completed",{bubbles:!0,composed:!0,detail:{guessedProfession:this._guessedJob,questionCount:this._questionHistory.length,allAnswers:this._questionHistory.map(i=>i.answer)}}))):r.nextQuestion&&(this._currentQuestion=r.nextQuestion)),this._loadingAnswer=""};#
|
|
468
|
+
`;#e=7;constructor(){super(),this.question="",this.options=["No","Yes"],this.heading="",this.gameTitle="",this.resultPrefix="",this.correctButtonText="Correct",this.wrongButtonText="Wrong",this.color="#601feb",this.apiBaseUrl="",this.cdnBaseUrl="",this.minutes="00",this.seconds="00",this.darkMode=!1,this._currentQuestion="",this._questionHistory=[],this._guessedJob="",this._isLoadingNextQuestion=!1,this._loadingAnswer="",this._guessValidated=!1,this._validatingButton="",this._currentAttemptQuestionCount=0}firstUpdated(){this._currentQuestion=this.question}async#t(){if(!this.apiBaseUrl)return console.warn("API base URL not configured, cannot fetch next question"),null;this._isLoadingNextQuestion=!0;try{let e=await fetch(`${this.apiBaseUrl}/preview/wait-game/next-question`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({questionAnswers:this._questionHistory,takeGuess:this._currentAttemptQuestionCount>=this.#e})});return e.ok?await e.json():(console.error("failed to fetch next question",e.status),null)}catch(e){return console.error("error fetching next question",e),null}finally{this._isLoadingNextQuestion=!1}}#r=async e=>{this._loadingAnswer=e,this._questionHistory.push({question:this._currentQuestion,answer:e}),this._currentAttemptQuestionCount++,this.dispatchEvent(new CustomEvent("mw-chat-wait-game:question-answered",{bubbles:!0,composed:!0,detail:{questionIndex:this._questionHistory.length-1,question:this._currentQuestion,answer:e,totalQuestions:this.#e,allAnswers:this._questionHistory.map(i=>i.answer)}}));let r=await this.#t();r&&(r.isComplete&&r.guessedJob?(this._guessedJob=r.guessedJob,this.dispatchEvent(new CustomEvent("mw-chat-wait-game:game-completed",{bubbles:!0,composed:!0,detail:{guessedProfession:this._guessedJob,questionCount:this._questionHistory.length,allAnswers:this._questionHistory.map(i=>i.answer)}}))):r.nextQuestion&&(this._currentQuestion=r.nextQuestion)),this._loadingAnswer=""};#n=async e=>{if(this._validatingButton=e?"correct":"wrong",this.dispatchEvent(new CustomEvent("mw-chat-wait-game:guess-validated",{bubbles:!0,composed:!0,detail:{guessedProfession:this._guessedJob,isCorrect:e,questionCount:this._questionHistory.length,allAnswers:this._questionHistory.map(r=>r.answer)}})),e)this._guessValidated=!0,this._validatingButton="";else{let r=await this.#t();r?.nextQuestion&&(this._currentQuestion=r.nextQuestion),this._guessedJob="",this._currentAttemptQuestionCount=0,this._validatingButton=""}};#i(){return Math.round(this._currentAttemptQuestionCount/this.#e*100)}#o(){let e=new URL("/assets/career-ladder.png",this.cdnBaseUrl||"https://widget.molin.ai");return u`
|
|
1986
469
|
<div class="mt-3 flex items-center justify-center gap-1">
|
|
1987
470
|
<span class="text-[11px] text-black/40 dark:text-gray-500">Inspired by</span>
|
|
1988
471
|
<img src="${e.href}" alt="Career Ladder" class="h-6" />
|
|
1989
472
|
</div>
|
|
1990
|
-
`}render(){let e=this.#
|
|
473
|
+
`}render(){let e=this.#i(),r=this.heading||"Agent joining in",i=this.gameTitle||"\u{1F9E0} I'll guess your job",n=this.resultPrefix||"I'm pretty confident:";return this._guessedJob?u`
|
|
1991
474
|
<div class="${this.darkMode?"dark bg-[#1E1F23] ring-white/10":"bg-white/70 ring-black/10"} mx-auto w-full rounded-2xl p-4 shadow-sm ring-1 backdrop-blur">
|
|
1992
475
|
<div class="flex items-center justify-between">
|
|
1993
476
|
<div class="text-[13px] text-black/60 dark:text-gray-300">${r}</div>
|
|
@@ -2006,16 +489,16 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
2006
489
|
${this._guessValidated?"":u`
|
|
2007
490
|
<div class="mt-3 grid grid-cols-2 gap-2">
|
|
2008
491
|
<button
|
|
2009
|
-
@click="${()=>this.#
|
|
492
|
+
@click="${()=>this.#n(!1)}"
|
|
2010
493
|
?disabled="${!!this._validatingButton}"
|
|
2011
494
|
class="flex items-center justify-center gap-1 rounded-xl border border-[${this.color}] bg-white px-4 py-2 text-sm font-medium text-black transition-colors hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-[#2B2D31] dark:text-white">
|
|
2012
|
-
${this._validatingButton==="wrong"?u`<
|
|
495
|
+
${this._validatingButton==="wrong"?u`<mw-icon class="h-4 w-4 animate-spin" name="lucide:loader-circle"></mw-icon>`:this.wrongButtonText}
|
|
2013
496
|
</button>
|
|
2014
497
|
<button
|
|
2015
|
-
@click="${()=>this.#
|
|
498
|
+
@click="${()=>this.#n(!0)}"
|
|
2016
499
|
?disabled="${!!this._validatingButton}"
|
|
2017
500
|
class="flex items-center justify-center gap-1 rounded-xl bg-[${this.color}] px-4 py-2 text-sm font-medium text-white transition-colors hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-50 dark:text-black">
|
|
2018
|
-
${this._validatingButton==="correct"?u`<
|
|
501
|
+
${this._validatingButton==="correct"?u`<mw-icon class="h-4 w-4 animate-spin" name="lucide:loader-circle"></mw-icon>`:this.correctButtonText}
|
|
2019
502
|
</button>
|
|
2020
503
|
</div>
|
|
2021
504
|
`}
|
|
@@ -2024,7 +507,7 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
2024
507
|
<div class="h-full rounded-full bg-[${this.color}] transition-[width] duration-300" style="width: 100%"></div>
|
|
2025
508
|
</div>
|
|
2026
509
|
`}
|
|
2027
|
-
${this.#
|
|
510
|
+
${this.#o()}
|
|
2028
511
|
</div>
|
|
2029
512
|
`:this._currentQuestion?u`
|
|
2030
513
|
<div class="${this.darkMode?"dark bg-[#1E1F23] ring-white/10":"bg-white/70 ring-black/10"} mx-auto w-full rounded-2xl p-4 shadow-sm ring-1 backdrop-blur">
|
|
@@ -2051,7 +534,7 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
2051
534
|
@click="${()=>this.#r(s)}"
|
|
2052
535
|
?disabled="${this._isLoadingNextQuestion}"
|
|
2053
536
|
class="${o===0?`bg-white dark:bg-[#2B2D31] text-black dark:text-white flex items-center justify-center gap-1 rounded-xl border border-[${this.color}] px-1 py-1.5 max-h-[35px] text-sm transition-colors hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-50`:`flex items-center justify-center gap-1 rounded-xl bg-[${this.color}] py-1.5 max-h-[35px] px-1 text-sm text-white dark:text-black transition-colors hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-50`}">
|
|
2054
|
-
${a?u`<
|
|
537
|
+
${a?u`<mw-icon class="h-3.5 w-3.5 animate-spin" name="lucide:loader-circle"></mw-icon>`:s}
|
|
2055
538
|
</button>
|
|
2056
539
|
`})}
|
|
2057
540
|
</div>
|
|
@@ -2060,13 +543,13 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
2060
543
|
<div class="h-full rounded-full bg-[${this.color}] transition-[width] duration-300" style="width: ${e}%"></div>
|
|
2061
544
|
</div>
|
|
2062
545
|
|
|
2063
|
-
${this.#
|
|
546
|
+
${this.#o()}
|
|
2064
547
|
</div>
|
|
2065
|
-
`:u`<p class="text-sm text-black italic dark:text-white">There was a problem loading the game, please refresh the page.</p>`}};customElements.get("mw-chat-wait-game")||customElements.define("mw-chat-wait-game",
|
|
548
|
+
`:u`<p class="text-sm text-black italic dark:text-white">There was a problem loading the game, please refresh the page.</p>`}};customElements.get("mw-chat-wait-game")||customElements.define("mw-chat-wait-game",En);var Sn=class extends w(v){static styles=O`
|
|
2066
549
|
:host {
|
|
2067
550
|
display: block;
|
|
2068
551
|
}
|
|
2069
|
-
`;static properties={data:{type:Object},color:{type:String},apiBaseUrl:{type:String},cdnBaseUrl:{type:String},soundUrl:{type:String,attribute:"sound"},darkMode:{type:Boolean,attribute:"dark-mode"},_remainingSeconds:{type:Number,state:!0},_isComplete:{type:Boolean,state:!0},_showGame:{type:Boolean,state:!0}};#e=null;#t=null;#r=0;constructor(){super(),this.data,this.color="#601feb",this.apiBaseUrl="",this.cdnBaseUrl="",this.soundUrl="",this.darkMode=!1,this._remainingSeconds=480,this._isComplete=!1,this._showGame=!1}connectedCallback(){super.connectedCallback(),this.#
|
|
552
|
+
`;static properties={data:{type:Object},color:{type:String},apiBaseUrl:{type:String},cdnBaseUrl:{type:String},soundUrl:{type:String,attribute:"sound"},darkMode:{type:Boolean,attribute:"dark-mode"},_remainingSeconds:{type:Number,state:!0},_isComplete:{type:Boolean,state:!0},_showGame:{type:Boolean,state:!0}};#e=null;#t=null;#r=0;constructor(){super(),this.data,this.color="#601feb",this.apiBaseUrl="",this.cdnBaseUrl="",this.soundUrl="",this.darkMode=!1,this._remainingSeconds=480,this._isComplete=!1,this._showGame=!1}connectedCallback(){super.connectedCallback(),this.#n(),this.#o()}disconnectedCallback(){super.disconnectedCallback(),this.#s()}#n(){this.data?.expected_join_time?this.#t=new Date(this.data.expected_join_time):this.#t=new Date(Date.now()+this._remainingSeconds*1e3),this.#r=Math.max($n(this.#t,new Date),0),this.#i()}#i(){if(this.#t===null)return;let e=new Date,r=$n(this.#t,e);r>=0?(this._remainingSeconds=r,this._isComplete=!1):(this._remainingSeconds=Math.abs(r),this._isComplete=!0)}#o(){this.#s(),this.#e=setInterval(()=>{this.#i()},1e3)}#s(){this.#e!==null&&(clearInterval(this.#e),this.#e=null)}#a=()=>{this.#d(),this._showGame=!0,this.dispatchEvent(new CustomEvent("mw-chat-wait-timer:game-click",{bubbles:!0,composed:!0}))};#l(){if(!this.data?.game_first_question)return!1;try{return localStorage.getItem("_molin_timer_sound_question")===this.data.game_first_question}catch{return!1}}#c(){if(this.data?.game_first_question)try{localStorage.setItem("_molin_timer_sound_question",this.data.game_first_question)}catch(e){console.error("Error saving sound state to localStorage:",e,{})}}#d(){if(!this.soundUrl||!this.data?.game_first_question||this.#l())return;let e=new Audio(this.soundUrl);e.volume=.5,e.play().then(()=>{this.#c()}).catch(r=>{console.error("Error playing audio:",r,{})})}#u(){let e=Math.floor(this._remainingSeconds/60),r=this._remainingSeconds%60,i=n=>String(n).padStart(2,"0");return{minutes:i(e),seconds:i(r)}}#p(){return this._isComplete?0:this.#t===null||this.#r===0?100:Math.round(this._remainingSeconds/this.#r*100)}render(){let{minutes:e,seconds:r}=this.#u();if(this._showGame)return u`
|
|
2070
553
|
<mw-chat-wait-game
|
|
2071
554
|
.question="${this.data?.game_first_question}"
|
|
2072
555
|
.options="${[this.data?.game_button_answer_negative||"No",this.data?.game_button_answer_affirmative||"Yes"]}"
|
|
@@ -2103,7 +586,122 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
2103
586
|
</button>
|
|
2104
587
|
</div>
|
|
2105
588
|
</div>
|
|
2106
|
-
`}};customElements.get("mw-chat-wait-timer")||customElements.define("mw-chat-wait-timer",
|
|
589
|
+
`}};customElements.get("mw-chat-wait-timer")||customElements.define("mw-chat-wait-timer",Sn);var In=class{#e=[];#t=[];#r=[];constructor(e){e.addController(this)}hostDisconnected(){this.clearTimeouts(),this.clearIntervals(),this.clearAnimationFrames()}clearTimeouts(){this.#e.forEach(clearTimeout),this.#e=[]}clearIntervals(){this.#t.forEach(clearInterval),this.#t=[]}clearAnimationFrames(){this.#r.forEach(cancelAnimationFrame),this.#r=[]}setTimeout(e,r,...i){let n=setTimeout(e,r,...i);return this.#e.push(n),n}setInterval(e,r,...i){let n=setInterval(e,r,...i);return this.#t.push(n),n}requestAnimationFrame(e){let r=requestAnimationFrame(e);return this.#r.push(r),r}};function Ee(t){return new In(t)}var be=class extends w(v){static properties={src:{type:String},alt:{type:String},side:{type:String},position:{type:String},width:{type:String},height:{type:String},clickable:{type:Boolean}};constructor(){super(),this.src="",this.alt="",this.side="right",this.position="single",this.width="300px",this.height="auto",this.clickable=!1}#e=Ee(this);#t=!1;#r=!1;#n=!1;#i=!1;updated(e){e.has("src")&&(this.#t=!1,this.#r=!1)}#o(){document.addEventListener("keydown",this.#a)}#s(){document.removeEventListener("keydown",this.#a)}#a=e=>{e.key==="Escape"&&this.#f(e)};get#l(){return this.side==="left"||this.side==="assistant"?"flex justify-start ml-[25px]":"flex justify-end"}get#c(){let e="inline-block overflow-hidden shadow-sm";if(this.side==="right"||this.side==="user")switch(this.position){case"first":e+=" rounded-2xl rounded-br-[4px]";break;case"middle":e+=" rounded-2xl rounded-r-[4px]";break;case"last":case"last-current":e+=" rounded-2xl rounded-tr-[4px]";break;default:e+=" rounded-2xl";break}else switch(this.position){case"first":e+=" rounded-2xl rounded-bl-[4px]";break;case"middle":e+=" rounded-2xl rounded-l-[4px]";break;case"last":case"last-current":e+=" rounded-2xl rounded-tl-[4px]";break;default:e+=" rounded-2xl";break}return e}#d(){if(!this.src)return"";try{let e=new URL(this.src);return e.searchParams.set("for","full"),e.href}catch{return this.src}}render(){return this.src?u`
|
|
590
|
+
<div class="${this.#l} mb-2 min-h-[100px]">
|
|
591
|
+
<div class="${this.#c} relative">
|
|
592
|
+
<!-- Placeholder background that's only shown when loading or error -->
|
|
593
|
+
${this.#t?null:u`
|
|
594
|
+
<div class="flex items-center justify-center bg-gray-100" style="width: ${this.width}; height: 200px;">
|
|
595
|
+
${this.#r?u`
|
|
596
|
+
<!-- Error icon -->
|
|
597
|
+
<mw-icon class="h-8 w-8 text-gray-400" name="lucide:image"></mw-icon>
|
|
598
|
+
`:u`
|
|
599
|
+
<!-- Loading pulse animation -->
|
|
600
|
+
<div class="h-8 w-8 animate-pulse rounded-full bg-gray-300"></div>
|
|
601
|
+
`}
|
|
602
|
+
</div>
|
|
603
|
+
`}
|
|
604
|
+
|
|
605
|
+
<!-- Actual image -->
|
|
606
|
+
<img
|
|
607
|
+
src="${this.src}"
|
|
608
|
+
alt="${this.alt}"
|
|
609
|
+
style="width: ${this.width}; height: ${this.height}; display: block;"
|
|
610
|
+
class="${this.#t?"opacity-100":"opacity-0 hidden"} ${this.clickable?"cursor-pointer hover:scale-[105%]":""} h-full w-full max-w-full transition-all duration-200"
|
|
611
|
+
@error="${this.#u}"
|
|
612
|
+
@load="${this.#p}"
|
|
613
|
+
@click="${this.clickable?this.#v:void 0}"
|
|
614
|
+
loading="lazy" />
|
|
615
|
+
</div>
|
|
616
|
+
</div>
|
|
617
|
+
|
|
618
|
+
<!-- Full image modal -->
|
|
619
|
+
${this.#n?u`
|
|
620
|
+
<div
|
|
621
|
+
class="${this.#i?"bg-opacity-0":"bg-opacity-75"} fixed inset-0 z-50 flex items-center justify-center bg-black p-4 transition-opacity duration-300"
|
|
622
|
+
@click="${this.#f}">
|
|
623
|
+
<!-- Close button -->
|
|
624
|
+
<button
|
|
625
|
+
type="button"
|
|
626
|
+
class="bg-opacity-50 ${this.#i?"opacity-0":"opacity-75"} hover:bg-opacity-75 absolute top-8 right-8 z-10 rounded-full bg-black p-2 text-white transition-[colors,opacity] delay-300 focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-transparent focus:outline-none"
|
|
627
|
+
@click="${this.#f}"
|
|
628
|
+
aria-label="Close full image">
|
|
629
|
+
<!-- X mark icon -->
|
|
630
|
+
<mw-icon class="h-5 w-5" name="lucide:x"></mw-icon>
|
|
631
|
+
</button>
|
|
632
|
+
<div class="relative flex max-h-full max-w-full">
|
|
633
|
+
<img
|
|
634
|
+
src="${this.#d()}"
|
|
635
|
+
alt="${this.alt}"
|
|
636
|
+
class="${this.#i?"scale-75 opacity-0":"scale-100 opacity-100"} max-h-full max-w-full transform rounded-lg shadow-2xl transition-all duration-100 ease-out"
|
|
637
|
+
@click="${this.#g}" />
|
|
638
|
+
</div>
|
|
639
|
+
</div>
|
|
640
|
+
`:null}
|
|
641
|
+
`:(console.warn("MwChatImage: No src provided"),null)}#u=e=>{console.error("Failed to load chat image:",this.src),this.#r=!0,this.requestUpdate(),this.dispatchEvent(new CustomEvent("mw-chat-image:error",{detail:{src:this.src,event:e},bubbles:!0}))};#p=e=>{this.#t=!0,this.requestUpdate(),this.dispatchEvent(new CustomEvent("mw-chat-image:load",{detail:{src:this.src,event:e},bubbles:!0}))};#v=e=>{this.clickable&&(e.preventDefault(),e.stopPropagation(),this.#n=!0,this.#o(),this.requestUpdate(),this.#i=!0,this.requestUpdate(),this.#e.setTimeout(()=>{this.#i=!1,this.requestUpdate()},500),this.dispatchEvent(new CustomEvent("mw-chat-image:click",{detail:{src:this.src,event:e},bubbles:!0})))};#f=e=>{e.preventDefault(),e.stopPropagation(),this.#s(),this.#n=!1,this.requestUpdate()};#g=e=>{e.preventDefault(),e.stopPropagation()}};be.ErrorEvent=class extends CustomEvent{static type="mw-chat-image:error";constructor(e,r={}){super(be.ErrorEvent.type,{detail:e,...r})}};be.LoadEvent=class extends CustomEvent{static type="mw-chat-image:load";constructor(e,r={}){super(be.LoadEvent.type,{detail:e,...r})}};be.ClickEvent=class extends CustomEvent{static type="mw-chat-image:click";constructor(e,r={}){super(be.ClickEvent.type,{detail:e,...r})}};customElements.get("mw-chat-image")||customElements.define("mw-chat-image",be);var N=t=>t??U;var $u=["javascript:","data:text/html","vbscript:","data:text/javascript","data:text/vbscript","data:text/css","data:text/plain","data:text/xml"],Lt=class t extends w(v){static properties={text:{type:String},color:{type:String},dismissible:{type:Boolean},ephemeral:{type:Boolean},darkMode:{type:Boolean,attribute:"dark-mode"},_dismissed:{type:Boolean,state:!0}};constructor(){super(),this.text="By chatting with us, you agree to the monitoring and recording of this chat to deliver our services and processing of your personal data in accordance with our [Privacy Policy](https://docs.molin.ai/legal/privacy-policy).",this.color="#3b82f6",this.dismissible=!1,this.ephemeral=!1,this.darkMode=!1,this._dismissed=!1}connectedCallback(){super.connectedCallback(),this.dismissible&&(this._dismissed=this.#e())}#e(){return this.ephemeral?!1:j().disclaimerDismissed}#t(){this.ephemeral||(j().disclaimerDismissed=!0)}#r=e=>{e.preventDefault(),this._dismissed=!0,this.#t(),this.dispatchEvent(new t.DismissEvent)};#n(e){let i=/\[([^\]]+)\]\(([^)]+)\)/g.exec(e);if(i){let n=i[0],s=i[1],o=i[2],a=i.index;return $u.some(l=>o.toLowerCase().startsWith(l))||!o||!s?e:u`${e.slice(0,a)}<a href="${N(o)}" target="_blank" rel="noopener noreferrer" @click="${this.#i}" class="underline" style="color: ${this.color}"
|
|
642
|
+
>${s}</a
|
|
643
|
+
>${e.slice(a+n.length)}`}return e}#i=e=>{e.stopPropagation()};render(){if(this._dismissed)return null;let e=this.#n(this.text);return u`
|
|
644
|
+
<div class="${this.darkMode?"dark":""} flex items-center justify-between">
|
|
645
|
+
<div class="flex flex-1 items-center justify-center">
|
|
646
|
+
<span class="px-3 text-center text-xs font-light text-gray-500 dark:text-gray-400">${e}</span>
|
|
647
|
+
</div>
|
|
648
|
+
|
|
649
|
+
${this.dismissible?u`
|
|
650
|
+
<button
|
|
651
|
+
type="button"
|
|
652
|
+
aria-label="Dismiss"
|
|
653
|
+
class="ml-2 flex h-4 w-4 flex-shrink-0 cursor-pointer items-center justify-center rounded hover:bg-gray-200 dark:hover:bg-gray-600"
|
|
654
|
+
@click="${this.#r}">
|
|
655
|
+
<mw-icon name="lucide:x" class="h-3 w-3 text-gray-500 dark:text-gray-400"></mw-icon>
|
|
656
|
+
</button>
|
|
657
|
+
`:null}
|
|
658
|
+
</div>
|
|
659
|
+
`}};Lt.DismissEvent=class extends CustomEvent{static type="mw-disclaimer:dismiss";constructor(e={}){super(Lt.DismissEvent.type,{...e})}};customElements.get("mw-disclaimer")||customElements.define("mw-disclaimer",Lt);var An=class extends w(v){static properties={text:{type:String},variant:{type:String},autoDismissable:{type:Boolean,attribute:"auto-dismissable"},dismissDelay:{type:Number,attribute:"dismiss-delay"},_isVisible:{type:Boolean,state:!0}};constructor(){super(),this.text="I'm still learning!",this.variant="info",this.autoDismissable=!1,this.dismissDelay=5e3,this._isVisible=!0}#e=Ee(this);connectedCallback(){super.connectedCallback(),this.autoDismissable&&this.#t()}#t(){this.#e.setTimeout(()=>{this._isVisible=!1,this.requestUpdate()},this.dismissDelay)}#r(){switch(this.variant){case"error":return{bg:"bg-red-600",text:"text-white",icon:"badge-alert"};case"warning":return{bg:"bg-yellow-600",text:"text-white",icon:"alert-triangle"};case"success":return{bg:"bg-green-600",text:"text-white",icon:"check-circle"};default:return{bg:"bg-black",text:"text-white",icon:"info"}}}render(){let e=this.#r();return u`
|
|
660
|
+
<div
|
|
661
|
+
class="${this._isVisible?"opacity-100 translate-y-0":"opacity-0 translate-y-[50px] pointer-events-none mt-[-40px]"} flex justify-center transition-all transition-discrete duration-[1s] ease-in-out">
|
|
662
|
+
<div class="${e.bg} mb-2 flex max-w-[70%] items-center justify-center rounded-full px-3 py-2 select-none">
|
|
663
|
+
<!-- Icon based on variant -->
|
|
664
|
+
${this.variant==="info"?u`<mw-icon class="h-4 w-4 text-white" name="lucide:info"></mw-icon>`:this.variant==="error"?u`<mw-icon class="h-4 w-4 text-white" name="lucide:circle-x"></mw-icon>`:this.variant==="warning"?u`<mw-icon class="h-4 w-4 text-white" name="lucide:triangle-alert"></mw-icon>`:u`<mw-icon class="h-4 w-4 text-white" name="lucide:circle-check"></mw-icon>`}
|
|
665
|
+
|
|
666
|
+
<span class="${e.text} ml-1 text-xs">${this.text}</span>
|
|
667
|
+
</div>
|
|
668
|
+
</div>
|
|
669
|
+
`}};customElements.get("mw-info-banner")||customElements.define("mw-info-banner",An);var Tn=class extends w(v){render=()=>u`
|
|
670
|
+
<svg class="inline-block h-full w-full leading-none" 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">
|
|
671
|
+
<circle fill="currentColor" stroke="none" cx="27" cy="50" r="6">
|
|
672
|
+
<animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.1" />
|
|
673
|
+
</circle>
|
|
674
|
+
<circle fill="currentColor" stroke="none" cx="47" cy="50" r="6">
|
|
675
|
+
<animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.2" />
|
|
676
|
+
</circle>
|
|
677
|
+
<circle fill="currentColor" stroke="none" cx="67" cy="50" r="6">
|
|
678
|
+
<animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.3" />
|
|
679
|
+
</circle>
|
|
680
|
+
</svg>
|
|
681
|
+
`};customElements.get("mw-loading")||customElements.define("mw-loading",Tn);var Eu="https://molin.ai/?utm_source=molin.ai&utm_medium=widget&utm_campaign=poweredby",Dn=class extends w(v){static properties={darkMode:{type:Boolean,attribute:"dark-mode"}};constructor(){super(),this.darkMode=!1}render(){return u`
|
|
682
|
+
<p class="${this.darkMode?"text-gray-300":"text-gray-600"} flex items-center justify-center text-xs whitespace-nowrap">
|
|
683
|
+
<span>Powered by</span>
|
|
684
|
+
|
|
685
|
+
<a href="${Eu}" target="_blank" class="inline-flex items-center underline">
|
|
686
|
+
<svg class="mx-1 inline-block h-4 w-4" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
687
|
+
<circle cx="10.0361" cy="10.0361" r="10.0361" fill="#242038" />
|
|
688
|
+
<path
|
|
689
|
+
fill-rule="evenodd"
|
|
690
|
+
clip-rule="evenodd"
|
|
691
|
+
d="M14.4482 15.0424C15.0767 15.2108 15.7464 15.1227 16.3099 14.7973L15.0832 12.6725L13.8564 10.5477L13.8562 10.5479L11.4869 6.44411L11.4774 6.42785L11.475 6.42371C11.1496 5.86018 10.6137 5.44898 9.98519 5.28057C9.35666 5.11215 8.68697 5.20032 8.12345 5.52567L9.35019 7.65045L10.5769 9.77523L10.577 9.77516L12.9461 13.8785L12.9593 13.9008C13.2847 14.4635 13.8202 14.8741 14.4482 15.0424ZM10.8392 15.0436C11.4677 15.212 12.1374 15.1238 12.701 14.7985L11.4742 12.6737L10.2475 10.5489L10.2474 10.549L7.87793 6.44488L7.87142 6.43373L7.86629 6.4248C7.54093 5.86127 7.00505 5.45007 6.37652 5.28166C5.90455 5.15519 5.40058 5.17178 4.94379 5.32631C4.44552 5.48229 4.08397 5.94754 4.08397 6.49724V12.5389C4.08354 12.5576 4.08333 12.5763 4.08333 12.5951C4.08333 13.2451 4.34182 13.8686 4.80194 14.3283C5.26205 14.7879 5.88611 15.0462 6.53681 15.0462V12.6098C6.53724 12.5964 6.53746 12.5831 6.53746 12.5696V9.7318C6.33805 9.40929 6.1011 8.99037 5.8593 8.52589C5.2972 7.44609 4.92176 6.52897 5.02074 6.47745C5.03257 6.47129 5.05064 6.47777 5.07425 6.4958L5.07612 6.49904C5.25259 6.63858 5.72449 7.39502 6.21645 8.34007C6.38575 8.66529 6.53812 8.97576 6.66569 9.25226L6.96825 9.77632L6.96829 9.77629L9.33716 13.8793L9.34457 13.892L9.34944 13.9004C9.67479 14.464 10.2107 14.8752 10.8392 15.0436Z"
|
|
692
|
+
fill="url(#paint0_linear_1_17)" />
|
|
693
|
+
<defs>
|
|
694
|
+
<linearGradient id="paint0_linear_1_17" x1="4.08333" y1="10.1653" x2="16.3099" y2="10.1653" gradientUnits="userSpaceOnUse">
|
|
695
|
+
<stop offset="0.197917" stop-color="#E4FF1A" />
|
|
696
|
+
<stop offset="0.822917" stop-color="#21F4F0" />
|
|
697
|
+
</linearGradient>
|
|
698
|
+
</defs>
|
|
699
|
+
</svg>
|
|
700
|
+
|
|
701
|
+
<span>Molin AI</span>
|
|
702
|
+
</a>
|
|
703
|
+
</p>
|
|
704
|
+
`}};customElements.get("mw-powered-by")||customElements.define("mw-powered-by",Dn);var ct=(t,e,r)=>{for(let i of e)if(i[0]===t)return(0,i[1])();return r?.()};var Mn=class extends w(v){static properties={orderDetails:{type:Object},streaming:{type:Boolean},linksNewTab:{type:Boolean,attribute:"links-new-tab"},color:{type:String},darkMode:{type:Boolean,attribute:"dark-mode"}};constructor(){super(),this.orderDetails=null,this.streaming=!1,this.linksNewTab=!1,this.color="#601feb",this.darkMode=!1}render(){if(!this.orderDetails)return u`
|
|
2107
705
|
<div class="${this.darkMode?"dark border-white/10 bg-[#1E1F23]":"border-gray-200 bg-white"} flex w-full max-w-md flex-col rounded-3xl border p-4">
|
|
2108
706
|
<div class="mb-2">
|
|
2109
707
|
<div class="h-7 w-full animate-pulse rounded bg-gray-200 dark:bg-gray-600"></div>
|
|
@@ -2124,10 +722,10 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
2124
722
|
${a?"":u`<div class="${`absolute left-2 top-2 -ml-px mt-0.5 h-full w-0.5 ${s?`bg-[${this.color}]`:"bg-gray-300 dark:bg-gray-600"}`}" aria-hidden="true"></div>`}
|
|
2125
723
|
|
|
2126
724
|
<div class="group relative flex items-start">
|
|
2127
|
-
${
|
|
725
|
+
${ct(i.status,[["completed",()=>u`
|
|
2128
726
|
<span class="flex h-6 items-center">
|
|
2129
727
|
<span class="flex h-4 w-4 items-center justify-center rounded-full bg-[${this.color}]">
|
|
2130
|
-
<
|
|
728
|
+
<mw-icon class="h-3 w-3 text-white dark:text-gray-800" name="lucide:check"></mw-icon>
|
|
2131
729
|
</span>
|
|
2132
730
|
</span>
|
|
2133
731
|
`],["in_progress",()=>u`
|
|
@@ -2284,10 +882,10 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
2284
882
|
|
|
2285
883
|
<!-- Action buttons section -->
|
|
2286
884
|
<div class="flex w-full flex-col gap-2 overflow-hidden">
|
|
2287
|
-
${this.streaming&&!this.orderDetails.order_tracking_label&&!
|
|
885
|
+
${this.streaming&&!this.orderDetails.order_tracking_label&&!tt(this.orderDetails.order_tracking_url||"")?u`
|
|
2288
886
|
<!-- Loading shimmer for buttons -->
|
|
2289
887
|
<div class="h-10 w-full min-w-[250px] animate-pulse overflow-hidden rounded-xl bg-gray-200 dark:bg-gray-600"></div>
|
|
2290
|
-
`:this.orderDetails.order_tracking_url&&
|
|
888
|
+
`:this.orderDetails.order_tracking_url&&tt(this.orderDetails.order_tracking_url)?u`
|
|
2291
889
|
<a
|
|
2292
890
|
target="${this.linksNewTab?"_blank":"_self"}"
|
|
2293
891
|
href="${this.orderDetails.order_tracking_url}"
|
|
@@ -2297,53 +895,7 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
2297
895
|
`:null}
|
|
2298
896
|
</div>
|
|
2299
897
|
</div>
|
|
2300
|
-
`}};customElements.get("mw-order-card")||customElements.define("mw-order-card",Tn);var jn=class{#e;isLoading=!0;hasError=!1;isLoaded=!1;constructor(e){this.#e=e,e.addController(this)}hostConnected(){}hostDisconnected(){}handleLoad=()=>{this.isLoading=!1,this.isLoaded=!0,this.hasError=!1,this.#e.requestUpdate()};handleError=()=>{this.isLoading=!1,this.hasError=!0,this.isLoaded=!1,this.#e.requestUpdate()}};function ua(t){return new jn(t)}var On=class extends x(v){static properties={product:{type:Object},streaming:{type:Boolean},linksNewTab:{type:Boolean,attribute:"links-new-tab"},searchParams:{type:Object},imagesByProductUrl:{type:Object},darkMode:{type:Boolean,attribute:"dark-mode"}};#e=ua(this);constructor(){super(),this.product=void 0,this.streaming=!1,this.linksNewTab=!1,this.searchParams=void 0,this.imagesByProductUrl={},this.darkMode=!1}get trackedProductUrl(){let e=this.product?.url,r=this.searchParams;try{if(e&&r)return Hs(e,r).href}catch{}return e}render(){let{name:e,description:r,price:i,url:n}=this.product||{},s=n?this.imagesByProductUrl?.[n]:void 0;return u`
|
|
2301
|
-
<a
|
|
2302
|
-
href="${N(this.trackedProductUrl)}"
|
|
2303
|
-
title="${N(e)}"
|
|
2304
|
-
class="${this.darkMode?"dark":""} group flex w-full max-w-md cursor-pointer gap-2.5 overflow-hidden rounded-lg"
|
|
2305
|
-
target="${this.linksNewTab?"_blank":"_self"}"
|
|
2306
|
-
?disabled="${this.streaming}">
|
|
2307
|
-
${this.streaming?u`
|
|
2308
|
-
<!-- shimmer -->
|
|
2309
|
-
<div class="h-[70px] w-[70px] animate-pulse overflow-hidden rounded-lg bg-gray-200 dark:bg-gray-700"></div>
|
|
2310
|
-
`:s&&!this.#e.hasError?u`<img
|
|
2311
|
-
src="${s}"
|
|
2312
|
-
@load="${this.#e.handleLoad}"
|
|
2313
|
-
@error="${this.#e.handleError}"
|
|
2314
|
-
class="block h-[70px] w-[70px] rounded-lg bg-gray-100 object-contain dark:bg-gray-700"
|
|
2315
|
-
loading="lazy" />`:u`
|
|
2316
|
-
<div class="flex h-[70px] w-[70px] items-center justify-center overflow-hidden rounded-lg bg-gray-100 object-cover dark:bg-gray-700">
|
|
2317
|
-
<svg class="block" viewBox="0 0 100 133" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2318
|
-
<rect width="100" height="133" rx="2" class="fill-gray-200 dark:fill-gray-600" transform="matrix(0.9999999999999999, 0, 0, 0.9999999999999999, 0, -7.105427357601002e-15)" />
|
|
2319
|
-
<g transform="matrix(0.6458070278167725, 0, 0, 0.5434090495109558, -19.74715805053711, -14.242161750793464)">
|
|
2320
|
-
<rect x="92" y="135.169" width="32" height="26.831" rx="2" stroke-width="4" class="stroke-gray-400 dark:stroke-white" style="isolation: isolate; fill: none;" />
|
|
2321
|
-
<path
|
|
2322
|
-
fill-rule="evenodd"
|
|
2323
|
-
clip-rule="evenodd"
|
|
2324
|
-
d="M 109.142 156.857 L 104 149 L 94 160 L 108 160 L 114 160 L 122 160 L 115 153 L 109.142 156.857 Z"
|
|
2325
|
-
class="fill-gray-400 dark:fill-white" />
|
|
2326
|
-
<circle cx="110" cy="146" r="3" class="fill-gray-400 dark:fill-white" />
|
|
2327
|
-
</g>
|
|
2328
|
-
</svg>
|
|
2329
|
-
</div>
|
|
2330
|
-
`}
|
|
2331
|
-
|
|
2332
|
-
<div class="flex flex-1 flex-col justify-between">
|
|
2333
|
-
<div>
|
|
2334
|
-
${e||!this.streaming?u`<h3 class="line-clamp-1 text-sm font-medium text-black group-hover:underline dark:text-white">${e}</h3>`:u`<div class="h-5 w-32 animate-pulse rounded bg-gray-200 dark:bg-gray-700"></div>`}
|
|
2335
|
-
|
|
2336
|
-
<!-- no margin here -->
|
|
2337
|
-
|
|
2338
|
-
${r||!this.streaming?u`<p class="line-clamp-2 text-xs text-gray-500 dark:text-gray-400">${r}</p>`:u`<div class="my-1 h-6 w-3/4 animate-pulse rounded bg-gray-200 dark:bg-gray-700"></div>`}
|
|
2339
|
-
</div>
|
|
2340
|
-
|
|
2341
|
-
<!-- flexbox filled space -->
|
|
2342
|
-
|
|
2343
|
-
${i||!this.streaming?u`<span class="text-xs text-gray-900 dark:text-white">${i}</span>`:u`<div class="h-4 w-14 animate-pulse rounded bg-gray-200 dark:bg-gray-700"></div>`}
|
|
2344
|
-
</div>
|
|
2345
|
-
</a>
|
|
2346
|
-
`}};customElements.get("mw-product-card-horizontal")||customElements.define("mw-product-card-horizontal",On);function Br(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(t);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(r[i[n]]=t[i[n]]);return r}var Fr=function(){},at=function(){};var Ot=(t,e,r)=>Math.min(Math.max(r,t),e);var Pn=.001,fu=.01,da=10,mu=.05,gu=1;function ha({duration:t=800,bounce:e=.25,velocity:r=0,mass:i=1}){let n,s;Fr(t<=da*1e3,"Spring duration must be 10 seconds or less");let o=1-e;o=Ot(mu,gu,o),t=Ot(fu,da,t/1e3),o<1?(n=c=>{let d=c*o,h=d*t,f=d-r,w=qr(c,o),p=Math.exp(-h);return Pn-f/w*p},s=c=>{let h=c*o*t,f=h*r+r,w=Math.pow(o,2)*Math.pow(c,2)*t,p=Math.exp(-h),S=qr(Math.pow(c,2),o);return(-n(c)+Pn>0?-1:1)*((f-w)*p)/S}):(n=c=>{let d=Math.exp(-c*t),h=(c-r)*t+1;return-Pn+d*h},s=c=>{let d=Math.exp(-c*t),h=(r-c)*(t*t);return d*h});let a=5/t,l=yu(n,s,a);if(t=t*1e3,isNaN(l))return{stiffness:100,damping:10,duration:t};{let c=Math.pow(l,2)*i;return{stiffness:c,damping:o*2*Math.sqrt(i*c),duration:t}}}var wu=12;function yu(t,e,r){let i=r;for(let n=1;n<wu;n++)i=i-t(i)/e(i);return i}function qr(t,e){return t*Math.sqrt(1-e*e)}var vu=["duration","bounce"],bu=["stiffness","damping","mass"];function pa(t,e){return e.some(r=>t[r]!==void 0)}function xu(t){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!pa(t,bu)&&pa(t,vu)){let r=ha(t);e=Object.assign(Object.assign(Object.assign({},e),r),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}function Vr(t){var{from:e=0,to:r=1,restSpeed:i=2,restDelta:n}=t,s=Br(t,["from","to","restSpeed","restDelta"]);let o={done:!1,value:e},{stiffness:a,damping:l,mass:c,velocity:d,duration:h,isResolvedFromDuration:f}=xu(s),w=fa,p=fa;function S(){let b=d?-(d/1e3):0,$=r-e,y=l/(2*Math.sqrt(a*c)),k=Math.sqrt(a/c)/1e3;if(n===void 0&&(n=Math.min(Math.abs(r-e)/100,.4)),y<1){let E=qr(k,y);w=O=>{let B=Math.exp(-y*k*O);return r-B*((b+y*k*$)/E*Math.sin(E*O)+$*Math.cos(E*O))},p=O=>{let B=Math.exp(-y*k*O);return y*k*B*(Math.sin(E*O)*(b+y*k*$)/E+$*Math.cos(E*O))-B*(Math.cos(E*O)*(b+y*k*$)-E*$*Math.sin(E*O))}}else if(y===1)w=E=>r-Math.exp(-k*E)*($+(b+k*$)*E);else{let E=k*Math.sqrt(y*y-1);w=O=>{let B=Math.exp(-y*k*O),H=Math.min(E*O,300);return r-B*((b+y*k*$)*Math.sinh(H)+E*$*Math.cosh(H))/E}}}return S(),{next:b=>{let $=w(b);if(f)o.done=b>=h;else{let y=p(b)*1e3,k=Math.abs(y)<=i,E=Math.abs(r-$)<=n;o.done=k&&E}return o.value=o.done?r:$,o},flipTarget:()=>{d=-d,[e,r]=[r,e],S()}}}Vr.needsInterpolation=(t,e)=>typeof t=="string"||typeof e=="string";var fa=t=>0;var Un=(t,e,r)=>{let i=e-t;return i===0?1:(r-t)/i};var lt=(t,e,r)=>-r*t+r*e+t;var Nr=(t,e)=>r=>Math.max(Math.min(r,e),t),Ce=t=>t%1?Number(t.toFixed(5)):t,ct=/(-)?([\d]*\.?[\d])+/g,Hr=/(#[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,ma=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function we(t){return typeof t=="string"}var ut={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},zr=Object.assign(Object.assign({},ut),{transform:Nr(0,1)}),Vf=Object.assign(Object.assign({},ut),{default:1});var Pt=t=>({test:e=>we(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),zf=Pt("deg"),dt=Pt("%"),Wf=Pt("px"),Gf=Pt("vh"),Zf=Pt("vw"),Xf=Object.assign(Object.assign({},dt),{parse:t=>dt.parse(t)/100,transform:t=>dt.transform(t*100)});var ht=(t,e)=>r=>!!(we(r)&&ma.test(r)&&r.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(r,e)),Wr=(t,e,r)=>i=>{if(!we(i))return i;let[n,s,o,a]=i.match(ct);return{[t]:parseFloat(n),[e]:parseFloat(s),[r]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}};var de={test:ht("hsl","hue"),parse:Wr("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:i=1})=>"hsla("+Math.round(t)+", "+dt.transform(Ce(e))+", "+dt.transform(Ce(r))+", "+Ce(zr.transform(i))+")"};var ku=Nr(0,255),Gr=Object.assign(Object.assign({},ut),{transform:t=>Math.round(ku(t))}),ie={test:ht("rgb","red"),parse:Wr("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:i=1})=>"rgba("+Gr.transform(t)+", "+Gr.transform(e)+", "+Gr.transform(r)+", "+Ce(zr.transform(i))+")"};function Cu(t){let e="",r="",i="",n="";return t.length>5?(e=t.substr(1,2),r=t.substr(3,2),i=t.substr(5,2),n=t.substr(7,2)):(e=t.substr(1,1),r=t.substr(2,1),i=t.substr(3,1),n=t.substr(4,1),e+=e,r+=r,i+=i,n+=n),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(i,16),alpha:n?parseInt(n,16)/255:1}}var pt={test:ht("#"),parse:Cu,transform:ie.transform};var _e={test:t=>ie.test(t)||pt.test(t)||de.test(t),parse:t=>ie.test(t)?ie.parse(t):de.test(t)?de.parse(t):pt.parse(t),transform:t=>we(t)?t:t.hasOwnProperty("red")?ie.transform(t):de.transform(t)};var ga="${c}",wa="${n}";function _u(t){var e,r,i,n;return isNaN(t)&&we(t)&&((r=(e=t.match(ct))===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0)+((n=(i=t.match(Hr))===null||i===void 0?void 0:i.length)!==null&&n!==void 0?n:0)>0}function ya(t){typeof t=="number"&&(t=`${t}`);let e=[],r=0,i=t.match(Hr);i&&(r=i.length,t=t.replace(Hr,ga),e.push(...i.map(_e.parse)));let n=t.match(ct);return n&&(t=t.replace(ct,wa),e.push(...n.map(ut.parse))),{values:e,numColors:r,tokenised:t}}function va(t){return ya(t).values}function ba(t){let{values:e,numColors:r,tokenised:i}=ya(t),n=e.length;return s=>{let o=i;for(let a=0;a<n;a++)o=o.replace(a<r?ga:wa,a<r?_e.transform(s[a]):Ce(s[a]));return o}}var $u=t=>typeof t=="number"?0:t;function Su(t){let e=va(t);return ba(t)(e.map($u))}var Zr={test:_u,parse:va,createTransformer:ba,getAnimatableNone:Su};function Rn(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 Bn({hue:t,saturation:e,lightness:r,alpha:i}){t/=360,e/=100,r/=100;let n=0,s=0,o=0;if(!e)n=s=o=r;else{let a=r<.5?r*(1+e):r+e-r*e,l=2*r-a;n=Rn(l,a,t+1/3),s=Rn(l,a,t),o=Rn(l,a,t-1/3)}return{red:Math.round(n*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:i}}var Eu=(t,e,r)=>{let i=t*t,n=e*e;return Math.sqrt(Math.max(0,r*(n-i)+i))},Mu=[pt,ie,de],xa=t=>Mu.find(e=>e.test(t)),ka=t=>`'${t}' is not an animatable color. Use the equivalent color code instead.`,Xr=(t,e)=>{let r=xa(t),i=xa(e);at(!!r,ka(t)),at(!!i,ka(e));let n=r.parse(t),s=i.parse(e);r===de&&(n=Bn(n),r=ie),i===de&&(s=Bn(s),i=ie);let o=Object.assign({},n);return a=>{for(let l in o)l!=="alpha"&&(o[l]=Eu(n[l],s[l],a));return o.alpha=lt(n.alpha,s.alpha,a),r.transform(o)}};var Ca=t=>typeof t=="number";var Au=(t,e)=>r=>e(t(r)),Jr=(...t)=>t.reduce(Au);function $a(t,e){return Ca(t)?r=>lt(t,e,r):_e.test(t)?Xr(t,e):qn(t,e)}var Fn=(t,e)=>{let r=[...t],i=r.length,n=t.map((s,o)=>$a(s,e[o]));return s=>{for(let o=0;o<i;o++)r[o]=n[o](s);return r}},Sa=(t,e)=>{let r=Object.assign(Object.assign({},t),e),i={};for(let n in r)t[n]!==void 0&&e[n]!==void 0&&(i[n]=$a(t[n],e[n]));return n=>{for(let s in i)r[s]=i[s](n);return r}};function _a(t){let e=Zr.parse(t),r=e.length,i=0,n=0,s=0;for(let o=0;o<r;o++)i||typeof e[o]=="number"?i++:e[o].hue!==void 0?s++:n++;return{parsed:e,numNumbers:i,numRGB:n,numHSL:s}}var qn=(t,e)=>{let r=Zr.createTransformer(e),i=_a(t),n=_a(e);return i.numHSL===n.numHSL&&i.numRGB===n.numRGB&&i.numNumbers>=n.numNumbers?Jr(Fn(i.parsed,n.parsed),r):(Fr(!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 Iu=(t,e)=>r=>lt(t,e,r);function Lu(t){if(typeof t=="number")return Iu;if(typeof t=="string")return _e.test(t)?Xr:qn;if(Array.isArray(t))return Fn;if(typeof t=="object")return Sa}function Du(t,e,r){let i=[],n=r||Lu(t[0]),s=t.length-1;for(let o=0;o<s;o++){let a=n(t[o],t[o+1]);if(e){let l=Array.isArray(e)?e[o]:e;a=Jr(l,a)}i.push(a)}return i}function Tu([t,e],[r]){return i=>r(Un(t,e,i))}function ju(t,e){let r=t.length,i=r-1;return n=>{let s=0,o=!1;if(n<=t[0]?o=!0:n>=t[i]&&(s=i-1,o=!0),!o){let l=1;for(;l<r&&!(t[l]>n||l===i);l++);s=l-1}let a=Un(t[s],t[s+1],n);return e[s](a)}}function Yr(t,e,{clamp:r=!0,ease:i,mixer:n}={}){let s=t.length;at(s===e.length,"Both input and output ranges must be the same length"),at(!i||!Array.isArray(i)||i.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=Du(e,i,n),a=s===2?Tu(t,o):ju(t,o);return r?l=>a(Ot(t[0],t[s-1],l)):a}var Ut=t=>e=>1-t(1-e),Kr=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Ea=t=>e=>Math.pow(e,t),Vn=t=>e=>e*e*((t+1)*e-t),Ma=t=>{let e=Vn(t);return r=>(r*=2)<1?.5*e(r):.5*(2-Math.pow(2,-10*(r-1)))};var Aa=1.525,Ou=4/11,Pu=8/11,Uu=9/10;var Ia=Ea(2),K2=Ut(Ia),La=Kr(Ia),Ru=t=>1-Math.sin(Math.acos(t)),Bu=Ut(Ru),Q2=Kr(Bu),Da=Vn(Aa),em=Ut(Da),tm=Kr(Da),rm=Ma(Aa),Fu=4356/361,qu=35442/1805,Vu=16061/1805,Nu=t=>{if(t===1||t===0)return t;let e=t*t;return t<Ou?7.5625*e:t<Pu?9.075*e-9.9*t+3.4:t<Uu?Fu*e-qu*t+Vu:10.8*t*t-20.52*t+10.72},im=Ut(Nu);function Hu(t,e){return t.map(()=>e||La).splice(0,t.length-1)}function zu(t){let e=t.length;return t.map((r,i)=>i!==0?i/(e-1):0)}function Wu(t,e){return t.map(r=>r*e)}function Rt({from:t=0,to:e=1,ease:r,offset:i,duration:n=300}){let s={done:!1,value:t},o=Array.isArray(e)?e:[t,e],a=Wu(i&&i.length===o.length?i:zu(o),n);function l(){return Yr(a,o,{ease:Array.isArray(r)?r:Hu(o,r)})}let c=l();return{next:d=>(s.value=c(d),s.done=d>=n,s),flipTarget:()=>{o.reverse(),c=l()}}}function Ta({velocity:t=0,from:e=0,power:r=.8,timeConstant:i=350,restDelta:n=.5,modifyTarget:s}){let o={done:!1,value:e},a=r*t,l=e+a,c=s===void 0?l:s(l);return c!==l&&(a=c-e),{next:d=>{let h=-a*Math.exp(-d/i);return o.done=!(h>n||h<-n),o.value=o.done?c:c+h,o},flipTarget:()=>{}}}var ja={keyframes:Rt,spring:Vr,decay:Ta};function Oa(t){if(Array.isArray(t.to))return Rt;if(ja[t.type])return ja[t.type];let e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?Rt:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?Vr:Rt}var Nn=16.666666666666668,Gu=typeof performance<"u"?()=>performance.now():()=>Date.now(),Hn=typeof window<"u"?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(Gu()),Nn);function Pa(t){let e=[],r=[],i=0,n=!1,s=!1,o=new WeakSet,a={schedule:(l,c=!1,d=!1)=>{let h=d&&n,f=h?e:r;return c&&o.add(l),f.indexOf(l)===-1&&(f.push(l),h&&n&&(i=e.length)),l},cancel:l=>{let c=r.indexOf(l);c!==-1&&r.splice(c,1),o.delete(l)},process:l=>{if(n){s=!0;return}if(n=!0,[e,r]=[r,e],r.length=0,i=e.length,i)for(let c=0;c<i;c++){let d=e[c];d(l),o.has(d)&&(a.schedule(d),t())}n=!1,s&&(s=!1,a.process(l))}};return a}var Zu=40,zn=!0,Ft=!1,Wn=!1,Bt={delta:0,timestamp:0},qt=["read","update","preRender","render","postRender"],Qr=qt.reduce((t,e)=>(t[e]=Pa(()=>Ft=!0),t),{}),Xu=qt.reduce((t,e)=>{let r=Qr[e];return t[e]=(i,n=!1,s=!1)=>(Ft||Yu(),r.schedule(i,n,s)),t},{}),Ua=qt.reduce((t,e)=>(t[e]=Qr[e].cancel,t),{}),wm=qt.reduce((t,e)=>(t[e]=()=>Qr[e].process(Bt),t),{}),Ju=t=>Qr[t].process(Bt),Ra=t=>{Ft=!1,Bt.delta=zn?Nn:Math.max(Math.min(t-Bt.timestamp,Zu),1),Bt.timestamp=t,Wn=!0,qt.forEach(Ju),Wn=!1,Ft&&(zn=!1,Hn(Ra))},Yu=()=>{Ft=!0,zn=!0,Wn||Hn(Ra)};var Ba=Xu;function Gn(t,e,r=0){return t-e-r}function Fa(t,e,r=0,i=!0){return i?Gn(e+-t,e,r):e-(t-e)+r}function qa(t,e,r,i){return i?t>=e+r:t<=-r}var Ku=t=>{let e=({delta:r})=>t(r);return{start:()=>Ba.update(e,!0),stop:()=>Ua.update(e)}};function Zn(t){var e,r,{from:i,autoplay:n=!0,driver:s=Ku,elapsed:o=0,repeat:a=0,repeatType:l="loop",repeatDelay:c=0,onPlay:d,onStop:h,onComplete:f,onRepeat:w,onUpdate:p}=t,S=Br(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:b}=S,$,y=0,k=S.duration,E,O=!1,B=!0,H,I=Oa(S);!((r=(e=I).needsInterpolation)===null||r===void 0)&&r.call(e,i,b)&&(H=Yr([0,100],[i,b],{clamp:!1}),i=0,b=100);let z=I(Object.assign(Object.assign({},S),{from:i,to:b}));function J(){y++,l==="reverse"?(B=y%2===0,o=Fa(o,k,c,B)):(o=Gn(o,k,c),l==="mirror"&&z.flipTarget()),O=!1,w&&w()}function ci(){$.stop(),f&&f()}function Se(U){if(B||(U=-U),o+=U,!O){let W=z.next(Math.max(0,o));E=W.value,H&&(E=H(E)),O=B?W.done:o<=0}p?.(E),O&&(y===0&&(k??(k=o)),y<a?qa(o,k,c,B)&&J():ci())}function Xt(){d?.(),$=s(Se),$.start()}return n&&Xt(),{stop:()=>{h?.(),$.stop()}}}var Vt=class t extends x(v){static properties={product:{type:Object},labels:{type:Object},darkMode:{type:Boolean,attribute:"dark-mode"},_currentImageIndex:{type:Number,state:!0},_isValidUrl:{type:Boolean,state:!0}};constructor(){super(),this.product=void 0,this.labels={addToCart:"Add to cart",color:"Color",size:"Size"},this.darkMode=!1,this._currentImageIndex=0,this._isValidUrl=!1}willUpdate(e){e.has("product")&&this.#e()}#e(){if(!this.product?.url){this._isValidUrl=!1;return}try{let e=new URL(this.product.url);this._isValidUrl=e.protocol==="http:"||e.protocol==="https:"}catch{this._isValidUrl=!1}}get images(){return this.product?.images||[]}render(){if(!this.product)return u`
|
|
898
|
+
`}};customElements.get("mw-order-card")||customElements.define("mw-order-card",Mn);function Lr(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(t);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(r[i[n]]=t[i[n]]);return r}var jr=function(){},ut=function(){};var jt=(t,e,r)=>Math.min(Math.max(r,t),e);var On=.001,Su=.01,ga=10,Iu=.05,Au=1;function ya({duration:t=800,bounce:e=.25,velocity:r=0,mass:i=1}){let n,s;jr(t<=ga*1e3,"Spring duration must be 10 seconds or less");let o=1-e;o=jt(Iu,Au,o),t=jt(Su,ga,t/1e3),o<1?(n=c=>{let d=c*o,p=d*t,h=d-r,y=Rr(c,o),f=Math.exp(-p);return On-h/y*f},s=c=>{let p=c*o*t,h=p*r+r,y=Math.pow(o,2)*Math.pow(c,2)*t,f=Math.exp(-p),E=Rr(Math.pow(c,2),o);return(-n(c)+On>0?-1:1)*((h-y)*f)/E}):(n=c=>{let d=Math.exp(-c*t),p=(c-r)*t+1;return-On+d*p},s=c=>{let d=Math.exp(-c*t),p=(r-c)*(t*t);return d*p});let a=5/t,l=Du(n,s,a);if(t=t*1e3,isNaN(l))return{stiffness:100,damping:10,duration:t};{let c=Math.pow(l,2)*i;return{stiffness:c,damping:o*2*Math.sqrt(i*c),duration:t}}}var Tu=12;function Du(t,e,r){let i=r;for(let n=1;n<Tu;n++)i=i-t(i)/e(i);return i}function Rr(t,e){return t*Math.sqrt(1-e*e)}var Mu=["duration","bounce"],Ou=["stiffness","damping","mass"];function ba(t,e){return e.some(r=>t[r]!==void 0)}function Pu(t){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!ba(t,Ou)&&ba(t,Mu)){let r=ya(t);e=Object.assign(Object.assign(Object.assign({},e),r),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}function Fr(t){var{from:e=0,to:r=1,restSpeed:i=2,restDelta:n}=t,s=Lr(t,["from","to","restSpeed","restDelta"]);let o={done:!1,value:e},{stiffness:a,damping:l,mass:c,velocity:d,duration:p,isResolvedFromDuration:h}=Pu(s),y=va,f=va;function E(){let x=d?-(d/1e3):0,$=r-e,b=l/(2*Math.sqrt(a*c)),k=Math.sqrt(a/c)/1e3;if(n===void 0&&(n=Math.min(Math.abs(r-e)/100,.4)),b<1){let S=Rr(k,b);y=P=>{let R=Math.exp(-b*k*P);return r-R*((x+b*k*$)/S*Math.sin(S*P)+$*Math.cos(S*P))},f=P=>{let R=Math.exp(-b*k*P);return b*k*R*(Math.sin(S*P)*(x+b*k*$)/S+$*Math.cos(S*P))-R*(Math.cos(S*P)*(x+b*k*$)-S*$*Math.sin(S*P))}}else if(b===1)y=S=>r-Math.exp(-k*S)*($+(x+k*$)*S);else{let S=k*Math.sqrt(b*b-1);y=P=>{let R=Math.exp(-b*k*P),z=Math.min(S*P,300);return r-R*((x+b*k*$)*Math.sinh(z)+S*$*Math.cosh(z))/S}}}return E(),{next:x=>{let $=y(x);if(h)o.done=x>=p;else{let b=f(x)*1e3,k=Math.abs(b)<=i,S=Math.abs(r-$)<=n;o.done=k&&S}return o.value=o.done?r:$,o},flipTarget:()=>{d=-d,[e,r]=[r,e],E()}}}Fr.needsInterpolation=(t,e)=>typeof t=="string"||typeof e=="string";var va=t=>0;var Pn=(t,e,r)=>{let i=e-t;return i===0?1:(r-t)/i};var dt=(t,e,r)=>-r*t+r*e+t;var qr=(t,e)=>r=>Math.max(Math.min(r,e),t),Se=t=>t%1?Number(t.toFixed(5)):t,pt=/(-)?([\d]*\.?[\d])+/g,Br=/(#[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,wa=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ve(t){return typeof t=="string"}var ht={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Nr=Object.assign(Object.assign({},ht),{transform:qr(0,1)}),v0=Object.assign(Object.assign({},ht),{default:1});var Rt=t=>({test:e=>ve(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),k0=Rt("deg"),ft=Rt("%"),_0=Rt("px"),C0=Rt("vh"),$0=Rt("vw"),E0=Object.assign(Object.assign({},ft),{parse:t=>ft.parse(t)/100,transform:t=>ft.transform(t*100)});var mt=(t,e)=>r=>!!(ve(r)&&wa.test(r)&&r.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(r,e)),zr=(t,e,r)=>i=>{if(!ve(i))return i;let[n,s,o,a]=i.match(pt);return{[t]:parseFloat(n),[e]:parseFloat(s),[r]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}};var pe={test:mt("hsl","hue"),parse:zr("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:i=1})=>"hsla("+Math.round(t)+", "+ft.transform(Se(e))+", "+ft.transform(Se(r))+", "+Se(Nr.transform(i))+")"};var Uu=qr(0,255),Wr=Object.assign(Object.assign({},ht),{transform:t=>Math.round(Uu(t))}),ie={test:mt("rgb","red"),parse:zr("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:i=1})=>"rgba("+Wr.transform(t)+", "+Wr.transform(e)+", "+Wr.transform(r)+", "+Se(Nr.transform(i))+")"};function Lu(t){let e="",r="",i="",n="";return t.length>5?(e=t.substr(1,2),r=t.substr(3,2),i=t.substr(5,2),n=t.substr(7,2)):(e=t.substr(1,1),r=t.substr(2,1),i=t.substr(3,1),n=t.substr(4,1),e+=e,r+=r,i+=i,n+=n),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(i,16),alpha:n?parseInt(n,16)/255:1}}var gt={test:mt("#"),parse:Lu,transform:ie.transform};var Ie={test:t=>ie.test(t)||gt.test(t)||pe.test(t),parse:t=>ie.test(t)?ie.parse(t):pe.test(t)?pe.parse(t):gt.parse(t),transform:t=>ve(t)?t:t.hasOwnProperty("red")?ie.transform(t):pe.transform(t)};var xa="${c}",ka="${n}";function ju(t){var e,r,i,n;return isNaN(t)&&ve(t)&&((r=(e=t.match(pt))===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0)+((n=(i=t.match(Br))===null||i===void 0?void 0:i.length)!==null&&n!==void 0?n:0)>0}function _a(t){typeof t=="number"&&(t=`${t}`);let e=[],r=0,i=t.match(Br);i&&(r=i.length,t=t.replace(Br,xa),e.push(...i.map(Ie.parse)));let n=t.match(pt);return n&&(t=t.replace(pt,ka),e.push(...n.map(ht.parse))),{values:e,numColors:r,tokenised:t}}function Ca(t){return _a(t).values}function $a(t){let{values:e,numColors:r,tokenised:i}=_a(t),n=e.length;return s=>{let o=i;for(let a=0;a<n;a++)o=o.replace(a<r?xa:ka,a<r?Ie.transform(s[a]):Se(s[a]));return o}}var Ru=t=>typeof t=="number"?0:t;function Fu(t){let e=Ca(t);return $a(t)(e.map(Ru))}var Vr={test:ju,parse:Ca,createTransformer:$a,getAnimatableNone:Fu};function Un(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 Ln({hue:t,saturation:e,lightness:r,alpha:i}){t/=360,e/=100,r/=100;let n=0,s=0,o=0;if(!e)n=s=o=r;else{let a=r<.5?r*(1+e):r+e-r*e,l=2*r-a;n=Un(l,a,t+1/3),s=Un(l,a,t),o=Un(l,a,t-1/3)}return{red:Math.round(n*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:i}}var qu=(t,e,r)=>{let i=t*t,n=e*e;return Math.sqrt(Math.max(0,r*(n-i)+i))},Bu=[gt,ie,pe],Ea=t=>Bu.find(e=>e.test(t)),Sa=t=>`'${t}' is not an animatable color. Use the equivalent color code instead.`,Hr=(t,e)=>{let r=Ea(t),i=Ea(e);ut(!!r,Sa(t)),ut(!!i,Sa(e));let n=r.parse(t),s=i.parse(e);r===pe&&(n=Ln(n),r=ie),i===pe&&(s=Ln(s),i=ie);let o=Object.assign({},n);return a=>{for(let l in o)l!=="alpha"&&(o[l]=qu(n[l],s[l],a));return o.alpha=dt(n.alpha,s.alpha,a),r.transform(o)}};var Ia=t=>typeof t=="number";var Nu=(t,e)=>r=>e(t(r)),Gr=(...t)=>t.reduce(Nu);function Ta(t,e){return Ia(t)?r=>dt(t,e,r):Ie.test(t)?Hr(t,e):Rn(t,e)}var jn=(t,e)=>{let r=[...t],i=r.length,n=t.map((s,o)=>Ta(s,e[o]));return s=>{for(let o=0;o<i;o++)r[o]=n[o](s);return r}},Da=(t,e)=>{let r=Object.assign(Object.assign({},t),e),i={};for(let n in r)t[n]!==void 0&&e[n]!==void 0&&(i[n]=Ta(t[n],e[n]));return n=>{for(let s in i)r[s]=i[s](n);return r}};function Aa(t){let e=Vr.parse(t),r=e.length,i=0,n=0,s=0;for(let o=0;o<r;o++)i||typeof e[o]=="number"?i++:e[o].hue!==void 0?s++:n++;return{parsed:e,numNumbers:i,numRGB:n,numHSL:s}}var Rn=(t,e)=>{let r=Vr.createTransformer(e),i=Aa(t),n=Aa(e);return i.numHSL===n.numHSL&&i.numRGB===n.numRGB&&i.numNumbers>=n.numNumbers?Gr(jn(i.parsed,n.parsed),r):(jr(!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 zu=(t,e)=>r=>dt(t,e,r);function Wu(t){if(typeof t=="number")return zu;if(typeof t=="string")return Ie.test(t)?Hr:Rn;if(Array.isArray(t))return jn;if(typeof t=="object")return Da}function Vu(t,e,r){let i=[],n=r||Wu(t[0]),s=t.length-1;for(let o=0;o<s;o++){let a=n(t[o],t[o+1]);if(e){let l=Array.isArray(e)?e[o]:e;a=Gr(l,a)}i.push(a)}return i}function Hu([t,e],[r]){return i=>r(Pn(t,e,i))}function Gu(t,e){let r=t.length,i=r-1;return n=>{let s=0,o=!1;if(n<=t[0]?o=!0:n>=t[i]&&(s=i-1,o=!0),!o){let l=1;for(;l<r&&!(t[l]>n||l===i);l++);s=l-1}let a=Pn(t[s],t[s+1],n);return e[s](a)}}function Xr(t,e,{clamp:r=!0,ease:i,mixer:n}={}){let s=t.length;ut(s===e.length,"Both input and output ranges must be the same length"),ut(!i||!Array.isArray(i)||i.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=Vu(e,i,n),a=s===2?Hu(t,o):Gu(t,o);return r?l=>a(jt(t[0],t[s-1],l)):a}var Ft=t=>e=>1-t(1-e),Jr=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Ma=t=>e=>Math.pow(e,t),Fn=t=>e=>e*e*((t+1)*e-t),Oa=t=>{let e=Fn(t);return r=>(r*=2)<1?.5*e(r):.5*(2-Math.pow(2,-10*(r-1)))};var Pa=1.525,Xu=4/11,Ju=8/11,Yu=9/10;var Ua=Ma(2),Ay=Ft(Ua),La=Jr(Ua),Ku=t=>1-Math.sin(Math.acos(t)),Qu=Ft(Ku),Ty=Jr(Qu),ja=Fn(Pa),Dy=Ft(ja),My=Jr(ja),Oy=Oa(Pa),Zu=4356/361,ed=35442/1805,td=16061/1805,rd=t=>{if(t===1||t===0)return t;let e=t*t;return t<Xu?7.5625*e:t<Ju?9.075*e-9.9*t+3.4:t<Yu?Zu*e-ed*t+td:10.8*t*t-20.52*t+10.72},Py=Ft(rd);function id(t,e){return t.map(()=>e||La).splice(0,t.length-1)}function nd(t){let e=t.length;return t.map((r,i)=>i!==0?i/(e-1):0)}function sd(t,e){return t.map(r=>r*e)}function qt({from:t=0,to:e=1,ease:r,offset:i,duration:n=300}){let s={done:!1,value:t},o=Array.isArray(e)?e:[t,e],a=sd(i&&i.length===o.length?i:nd(o),n);function l(){return Xr(a,o,{ease:Array.isArray(r)?r:id(o,r)})}let c=l();return{next:d=>(s.value=c(d),s.done=d>=n,s),flipTarget:()=>{o.reverse(),c=l()}}}function Ra({velocity:t=0,from:e=0,power:r=.8,timeConstant:i=350,restDelta:n=.5,modifyTarget:s}){let o={done:!1,value:e},a=r*t,l=e+a,c=s===void 0?l:s(l);return c!==l&&(a=c-e),{next:d=>{let p=-a*Math.exp(-d/i);return o.done=!(p>n||p<-n),o.value=o.done?c:c+p,o},flipTarget:()=>{}}}var Fa={keyframes:qt,spring:Fr,decay:Ra};function qa(t){if(Array.isArray(t.to))return qt;if(Fa[t.type])return Fa[t.type];let e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?qt:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?Fr:qt}var qn=16.666666666666668,od=typeof performance<"u"?()=>performance.now():()=>Date.now(),Bn=typeof window<"u"?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(od()),qn);function Ba(t){let e=[],r=[],i=0,n=!1,s=!1,o=new WeakSet,a={schedule:(l,c=!1,d=!1)=>{let p=d&&n,h=p?e:r;return c&&o.add(l),h.indexOf(l)===-1&&(h.push(l),p&&n&&(i=e.length)),l},cancel:l=>{let c=r.indexOf(l);c!==-1&&r.splice(c,1),o.delete(l)},process:l=>{if(n){s=!0;return}if(n=!0,[e,r]=[r,e],r.length=0,i=e.length,i)for(let c=0;c<i;c++){let d=e[c];d(l),o.has(d)&&(a.schedule(d),t())}n=!1,s&&(s=!1,a.process(l))}};return a}var ad=40,Nn=!0,Nt=!1,zn=!1,Bt={delta:0,timestamp:0},zt=["read","update","preRender","render","postRender"],Yr=zt.reduce((t,e)=>(t[e]=Ba(()=>Nt=!0),t),{}),ld=zt.reduce((t,e)=>{let r=Yr[e];return t[e]=(i,n=!1,s=!1)=>(Nt||ud(),r.schedule(i,n,s)),t},{}),Na=zt.reduce((t,e)=>(t[e]=Yr[e].cancel,t),{}),Xy=zt.reduce((t,e)=>(t[e]=()=>Yr[e].process(Bt),t),{}),cd=t=>Yr[t].process(Bt),za=t=>{Nt=!1,Bt.delta=Nn?qn:Math.max(Math.min(t-Bt.timestamp,ad),1),Bt.timestamp=t,zn=!0,zt.forEach(cd),zn=!1,Nt&&(Nn=!1,Bn(za))},ud=()=>{Nt=!0,Nn=!0,zn||Bn(za)};var Wa=ld;function Wn(t,e,r=0){return t-e-r}function Va(t,e,r=0,i=!0){return i?Wn(e+-t,e,r):e-(t-e)+r}function Ha(t,e,r,i){return i?t>=e+r:t<=-r}var dd=t=>{let e=({delta:r})=>t(r);return{start:()=>Wa.update(e,!0),stop:()=>Na.update(e)}};function Vn(t){var e,r,{from:i,autoplay:n=!0,driver:s=dd,elapsed:o=0,repeat:a=0,repeatType:l="loop",repeatDelay:c=0,onPlay:d,onStop:p,onComplete:h,onRepeat:y,onUpdate:f}=t,E=Lr(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:x}=E,$,b=0,k=E.duration,S,P=!1,R=!0,z,T=qa(E);!((r=(e=T).needsInterpolation)===null||r===void 0)&&r.call(e,i,x)&&(z=Xr([0,100],[i,x],{clamp:!1}),i=0,x=100);let W=T(Object.assign(Object.assign({},E),{from:i,to:x}));function Y(){b++,l==="reverse"?(R=b%2===0,o=Va(o,k,c,R)):(o=Wn(o,k,c),l==="mirror"&&W.flipTarget()),P=!1,y&&y()}function ui(){$.stop(),h&&h()}function Ae(L){if(R||(L=-L),o+=L,!P){let V=W.next(Math.max(0,o));S=V.value,z&&(S=z(S)),P=R?V.done:o<=0}f?.(S),P&&(b===0&&(k??(k=o)),b<a?Ha(o,k,c,R)&&Y():ui())}function Kt(){d?.(),$=s(Ae),$.start()}return n&&Kt(),{stop:()=>{p?.(),$.stop()}}}var Ne=class t extends w(v){static properties={product:{type:Object},labels:{type:Object},darkMode:{type:Boolean,attribute:"dark-mode"},_currentImageIndex:{type:Number,state:!0},_isValidUrl:{type:Boolean,state:!0}};constructor(){super(),this.product=void 0,this.labels={addToCart:"Add to cart",color:"Color",size:"Size"},this.darkMode=!1,this._currentImageIndex=0,this._isValidUrl=!1}willUpdate(e){e.has("product")&&this.#e()}#e(){if(!this.product?.url){this._isValidUrl=!1;return}try{let e=new URL(this.product.url);this._isValidUrl=e.protocol==="http:"||e.protocol==="https:"}catch{this._isValidUrl=!1}}get images(){return this.product?.images||[]}render(){if(!this.product)return u`
|
|
2347
899
|
<div class="${this.darkMode?"dark border-gray-600 bg-[#1E1F23]":"border-[#5e5d59]/25 bg-white"} my-2 w-full rounded-3xl border p-4">
|
|
2348
900
|
<div class="relative mx-auto mb-4 max-w-[240px]">
|
|
2349
901
|
<div class="h-[180px] w-full animate-pulse rounded-2xl bg-gray-200 dark:bg-gray-700"></div>
|
|
@@ -2385,14 +937,14 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
2385
937
|
${this.images.length>1?u`
|
|
2386
938
|
<div class="absolute inset-0 flex items-center justify-between px-4">
|
|
2387
939
|
<button
|
|
2388
|
-
@click="${this.#
|
|
940
|
+
@click="${this.#o}"
|
|
2389
941
|
class="bg-opacity-80 hover:bg-opacity-100 absolute top-1/2 left-2 flex h-5 w-5 -translate-y-1/2 items-center justify-center rounded-full bg-white shadow transition-all dark:bg-gray-700">
|
|
2390
|
-
<
|
|
942
|
+
<mw-icon class="block h-6 w-3" name="lucide:chevron-left"></mw-icon>
|
|
2391
943
|
</button>
|
|
2392
944
|
<button
|
|
2393
|
-
@click="${this.#
|
|
945
|
+
@click="${this.#i}"
|
|
2394
946
|
class="bg-opacity-80 hover:bg-opacity-100 absolute top-1/2 right-2 flex h-5 w-5 -translate-y-1/2 items-center justify-center rounded-full bg-white shadow transition-all dark:bg-gray-700">
|
|
2395
|
-
<
|
|
947
|
+
<mw-icon class="block h-6 w-3" name="lucide:chevron-right"></mw-icon>
|
|
2396
948
|
</button>
|
|
2397
949
|
</div>
|
|
2398
950
|
`:null}
|
|
@@ -2400,7 +952,7 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
2400
952
|
<div class="slider-dots absolute bottom-3 left-1/2 flex -translate-x-1/2 gap-2">
|
|
2401
953
|
${this.images.map((s,o)=>u`
|
|
2402
954
|
<button
|
|
2403
|
-
@click="${()=>this.#
|
|
955
|
+
@click="${()=>this.#s(o)}"
|
|
2404
956
|
class="${o===this._currentImageIndex?"bg-opacity-100":"bg-opacity-60"} hover:bg-opacity-80 h-1.5 w-1.5 rounded-full bg-white transition-all dark:bg-gray-400"></button>
|
|
2405
957
|
`)}
|
|
2406
958
|
</div>
|
|
@@ -2432,7 +984,53 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
2432
984
|
</button> -->
|
|
2433
985
|
</div>
|
|
2434
986
|
</div>
|
|
2435
|
-
`}#t(e){e.preventDefault(),!(!this.product?.url||!this._isValidUrl)&&window.open(this.product.url,"_blank")}#r(e){!this.product?.url||!this._isValidUrl||(window.open(this.product.url,"_blank"),this.dispatchEvent(new t.AddToCartEvent(this.product)))}#
|
|
987
|
+
`}#t(e){e.preventDefault(),!(!this.product?.url||!this._isValidUrl)&&window.open(this.product.url,"_blank")}#r(e){!this.product?.url||!this._isValidUrl||(window.open(this.product.url,"_blank"),this.dispatchEvent(new t.AddToCartEvent(this.product)))}#n(e,r){this.#a&&Vn({from:e,to:r,duration:300,onUpdate:i=>{this.#a&&(this.#a.style.transform=`translateX(${i}%)`)}})}#i(){if(!this.product?.images?.length)return;let e=this._currentImageIndex,r=(e+1)%this.product.images.length,i=-(e*100),n=-(r*100);this.#n(i,n),this._currentImageIndex=r}#o(){if(!this.product?.images?.length)return;let e=this._currentImageIndex,r=(e-1+this.product.images.length)%this.product.images.length,i=-(e*100),n=-(r*100);this.#n(i,n),this._currentImageIndex=r}#s(e){if(!this.product?.images?.length)return;let r=this._currentImageIndex,i=Math.max(0,Math.min(e,this.product.images.length-1)),n=-(r*100),s=-(i*100);this.#n(n,s),this._currentImageIndex=i}get#a(){return this.renderRoot.querySelector(".image-slider")}};Ne.AddToCartEvent=class extends CustomEvent{static type="mw-product-card:add-to-cart";constructor(e,r={}){super(Ne.AddToCartEvent.type,{detail:{product:e},...r})}};customElements.get("mw-product-card")||customElements.define("mw-product-card",Ne);var Hn=class{#e;isLoading=!0;hasError=!1;isLoaded=!1;constructor(e){this.#e=e,e.addController(this)}hostConnected(){}hostDisconnected(){}handleLoad=()=>{this.isLoading=!1,this.isLoaded=!0,this.hasError=!1,this.#e.requestUpdate()};handleError=()=>{this.isLoading=!1,this.hasError=!0,this.isLoaded=!1,this.#e.requestUpdate()}};function Ga(t){return new Hn(t)}var Wt=class extends w(v){static properties={product:{type:Object},streaming:{type:Boolean},linksNewTab:{type:Boolean,attribute:"links-new-tab"},searchParams:{type:Object},imagesByProductUrl:{type:Object},darkMode:{type:Boolean,attribute:"dark-mode"}};#e=Ga(this);constructor(){super(),this.product=void 0,this.streaming=!1,this.linksNewTab=!1,this.searchParams=void 0,this.imagesByProductUrl={},this.darkMode=!1}get trackedProductUrl(){let e=this.product?.url,r=this.searchParams;try{if(e&&r)return Xs(e,r).href}catch{}return e}render(){let{name:e,description:r,price:i,url:n}=this.product||{},s=n?this.imagesByProductUrl?.[n]:void 0;return u`
|
|
988
|
+
<a
|
|
989
|
+
href="${N(this.trackedProductUrl)}"
|
|
990
|
+
title="${N(e)}"
|
|
991
|
+
class="${this.darkMode?"dark":""} group flex w-full max-w-md cursor-pointer gap-2.5 overflow-hidden rounded-lg"
|
|
992
|
+
target="${this.linksNewTab?"_blank":"_self"}"
|
|
993
|
+
?disabled="${this.streaming}">
|
|
994
|
+
${this.streaming?u`
|
|
995
|
+
<!-- shimmer -->
|
|
996
|
+
<div class="h-[70px] w-[70px] animate-pulse overflow-hidden rounded-lg bg-gray-200 dark:bg-gray-700"></div>
|
|
997
|
+
`:s&&!this.#e.hasError?u`<img
|
|
998
|
+
src="${s}"
|
|
999
|
+
@load="${this.#e.handleLoad}"
|
|
1000
|
+
@error="${this.#e.handleError}"
|
|
1001
|
+
class="block h-[70px] w-[70px] rounded-lg bg-gray-100 object-contain dark:bg-gray-700"
|
|
1002
|
+
loading="lazy" />`:u`
|
|
1003
|
+
<div class="flex h-[70px] w-[70px] items-center justify-center overflow-hidden rounded-lg bg-gray-100 object-cover dark:bg-gray-700">
|
|
1004
|
+
<svg class="block" viewBox="0 0 100 133" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1005
|
+
<rect width="100" height="133" rx="2" class="fill-gray-200 dark:fill-gray-600" transform="matrix(0.9999999999999999, 0, 0, 0.9999999999999999, 0, -7.105427357601002e-15)" />
|
|
1006
|
+
<g transform="matrix(0.6458070278167725, 0, 0, 0.5434090495109558, -19.74715805053711, -14.242161750793464)">
|
|
1007
|
+
<rect x="92" y="135.169" width="32" height="26.831" rx="2" stroke-width="4" class="stroke-gray-400 dark:stroke-white" style="isolation: isolate; fill: none;" />
|
|
1008
|
+
<path
|
|
1009
|
+
fill-rule="evenodd"
|
|
1010
|
+
clip-rule="evenodd"
|
|
1011
|
+
d="M 109.142 156.857 L 104 149 L 94 160 L 108 160 L 114 160 L 122 160 L 115 153 L 109.142 156.857 Z"
|
|
1012
|
+
class="fill-gray-400 dark:fill-white" />
|
|
1013
|
+
<circle cx="110" cy="146" r="3" class="fill-gray-400 dark:fill-white" />
|
|
1014
|
+
</g>
|
|
1015
|
+
</svg>
|
|
1016
|
+
</div>
|
|
1017
|
+
`}
|
|
1018
|
+
|
|
1019
|
+
<div class="flex flex-1 flex-col justify-between">
|
|
1020
|
+
<div>
|
|
1021
|
+
${e||!this.streaming?u`<h3 class="line-clamp-1 text-sm font-medium text-black group-hover:underline dark:text-white">${e}</h3>`:u`<div class="h-5 w-32 animate-pulse rounded bg-gray-200 dark:bg-gray-700"></div>`}
|
|
1022
|
+
|
|
1023
|
+
<!-- no margin here -->
|
|
1024
|
+
|
|
1025
|
+
${r||!this.streaming?u`<p class="line-clamp-2 text-xs text-gray-500 dark:text-gray-400">${r}</p>`:u`<div class="my-1 h-6 w-3/4 animate-pulse rounded bg-gray-200 dark:bg-gray-700"></div>`}
|
|
1026
|
+
</div>
|
|
1027
|
+
|
|
1028
|
+
<!-- flexbox filled space -->
|
|
1029
|
+
|
|
1030
|
+
${i||!this.streaming?u`<span class="text-xs text-gray-900 dark:text-white">${i}</span>`:u`<div class="h-4 w-14 animate-pulse rounded bg-gray-200 dark:bg-gray-700"></div>`}
|
|
1031
|
+
</div>
|
|
1032
|
+
</a>
|
|
1033
|
+
`}};customElements.get("mw-product-card-horizontal")||customElements.define("mw-product-card-horizontal",Wt);function Kr(t){return Array.isArray(t)?t:t?[t]:[]}function Xa(t,e){let r=new Map;for(let i of t){let n=e(i),s=r.get(n);s?s.push(i):r.set(n,[i])}return r}var Gn=class extends w(v){static properties={orderDetails:{type:Object},streaming:{type:Boolean},linksNewTab:{type:Boolean,attribute:"links-new-tab"},color:{type:String},darkMode:{type:Boolean,attribute:"dark-mode"}};constructor(){super(),this.orderDetails=null,this.streaming=!1,this.linksNewTab=!1,this.color="#601feb",this.darkMode=!1}render(){let e=Kr(this.orderDetails?.order_status?.step||[]),r=Kr(this.orderDetails?.items?.item||[]),i=Kr(this.orderDetails?.actions||[]);return u`
|
|
2436
1034
|
<div class="${this.darkMode?"dark border-white/10 bg-[#1E1F23]":"border-gray-200 bg-white"} flex w-full max-w-md flex-col rounded-3xl border p-4">
|
|
2437
1035
|
<!-- Header with order ID -->
|
|
2438
1036
|
<div class="mb-2">
|
|
@@ -2462,7 +1060,7 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
2462
1060
|
${l?"":u`<div class="${`absolute left-2 top-2 -ml-px mt-0.5 h-full w-0.5 ${o?`bg-[${this.color}]`:"bg-gray-300 dark:bg-gray-600"}`}" aria-hidden="true"></div>`}
|
|
2463
1061
|
|
|
2464
1062
|
<div class="group relative flex items-start">
|
|
2465
|
-
${
|
|
1063
|
+
${ct(n.status,[["pending",()=>u`
|
|
2466
1064
|
<span class="flex h-6 items-center">
|
|
2467
1065
|
<span class="flex h-4 w-4 items-center justify-center rounded-full border-2 border-gray-300 bg-white dark:border-gray-500 dark:bg-[#1E1F23]">
|
|
2468
1066
|
<span class="h-1.5 w-1.5 rounded-full bg-transparent"></span>
|
|
@@ -2477,7 +1075,7 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
2477
1075
|
`],["completed",()=>u`
|
|
2478
1076
|
<span class="flex h-6 items-center">
|
|
2479
1077
|
<span class="flex h-4 w-4 items-center justify-center rounded-full bg-[${this.color}]">
|
|
2480
|
-
<
|
|
1078
|
+
<mw-icon class="mb-3 block h-3 w-3 text-white dark:text-gray-800" name="lucide:check"></mw-icon>
|
|
2481
1079
|
</span>
|
|
2482
1080
|
</span>
|
|
2483
1081
|
`]],()=>u`
|
|
@@ -2614,11 +1212,11 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
2614
1212
|
|
|
2615
1213
|
<!-- Action buttons section -->
|
|
2616
1214
|
<div class="flex w-full flex-col gap-2 overflow-hidden">
|
|
2617
|
-
${this.streaming&&!i[0]?.track_order?.label&&!
|
|
1215
|
+
${this.streaming&&!i[0]?.track_order?.label&&!tt(i[0]?.track_order?.tracking_url||"")?u`
|
|
2618
1216
|
<!-- Loading shimmer for buttons -->
|
|
2619
1217
|
<div class="h-10 w-full min-w-[250px] animate-pulse overflow-hidden rounded-xl bg-gray-200 dark:bg-gray-600"></div>
|
|
2620
1218
|
`:X(i,(n,s)=>`action-${s}`,n=>{if(n?.track_order?.label)return u`
|
|
2621
|
-
${
|
|
1219
|
+
${tt(n.track_order?.tracking_url||"")?u` <a
|
|
2622
1220
|
target="${this.linksNewTab?"_blank":"_self"}"
|
|
2623
1221
|
href="${n.track_order?.tracking_url}"
|
|
2624
1222
|
class="mt-1 w-full rounded-xl bg-[${this.color}] px-4 py-2 text-center text-sm font-medium text-white hover:opacity-90 dark:text-black"
|
|
@@ -2627,56 +1225,35 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
2627
1225
|
`})}
|
|
2628
1226
|
</div>
|
|
2629
1227
|
</div>
|
|
2630
|
-
`}};customElements.get("mw-product-order-status-card")||customElements.define("mw-product-order-status-card",
|
|
2631
|
-
:host {
|
|
2632
|
-
--w-hover-arrow--hovered: 0;
|
|
2633
|
-
}
|
|
2634
|
-
|
|
2635
|
-
[part='line'] {
|
|
2636
|
-
opacity: calc(var(--w-hover-arrow--hovered) * 1);
|
|
2637
|
-
transition: opacity 0.3s ease-in-out;
|
|
2638
|
-
}
|
|
2639
|
-
|
|
2640
|
-
[part='tip'] {
|
|
2641
|
-
transform: translateX(calc(var(--w-hover-arrow--hovered) * 3px));
|
|
2642
|
-
transition: transform 0.3s ease-in-out;
|
|
2643
|
-
}
|
|
2644
|
-
`;render(){return u`
|
|
2645
|
-
<svg width="10" height="10" viewBox="0 0 10 10" aria-hidden="true">
|
|
2646
|
-
<g fill-rule="evenodd">
|
|
2647
|
-
<path part="line" stroke="currentColor" fill="currentColor" d="M0 5h7"></path>
|
|
2648
|
-
<path part="tip" stroke="currentColor" fill="transparent" d="M1 1l4 4-4 4"></path>
|
|
2649
|
-
</g>
|
|
2650
|
-
</svg>
|
|
2651
|
-
`}};customElements.get("w-hover-arrow")||customElements.define("w-hover-arrow",Yn);var Ht=class t extends x(v){static properties={heading:{type:String},type:{type:String,reflect:!0},color:{type:String},darkMode:{type:Boolean,attribute:"dark-mode"},_hoverRating:{type:Number,state:!0},_selectedRating:{type:Number,state:!0},_selectedVote:{type:String,state:!0}};constructor(){super(),this.heading="",this.type="star-rating",this.color="#8B5CF6",this.darkMode=!1,this._hoverRating=0,this._selectedRating=0,this._selectedVote=""}updated(e){(e.has("type")||e.has("heading"))&&(this._selectedRating=0,this._selectedVote="",this._hoverRating=0)}render(){return u`
|
|
1228
|
+
`}};customElements.get("mw-product-order-status-card")||customElements.define("mw-product-order-status-card",Gn);var Vt=class t extends w(v){static properties={heading:{type:String},type:{type:String,reflect:!0},color:{type:String},darkMode:{type:Boolean,attribute:"dark-mode"},_hoverRating:{type:Number,state:!0},_selectedRating:{type:Number,state:!0},_selectedVote:{type:String,state:!0}};constructor(){super(),this.heading="",this.type="star-rating",this.color="#8B5CF6",this.darkMode=!1,this._hoverRating=0,this._selectedRating=0,this._selectedVote=""}updated(e){(e.has("type")||e.has("heading"))&&(this._selectedRating=0,this._selectedVote="",this._hoverRating=0)}render(){return u`
|
|
2652
1229
|
<div
|
|
2653
1230
|
class="${this.darkMode?"dark bg-[#1E1F23]":"bg-white"} focus-within:ring-opacity-50 w-full overflow-hidden rounded-[18px] shadow-[0px_3px_20px_0px_rgba(0,0,0,0.2)] transition-all duration-200 focus-within:ring-2 focus-within:ring-[${this.color}]">
|
|
2654
1231
|
<div class="flex flex-col gap-2 p-4">
|
|
2655
|
-
${
|
|
1232
|
+
${ct(this.type,[["star-rating",()=>this.#t()],["binary-vote",()=>this.#r()],["new-conversation-button",()=>this.#e()]],()=>u`<span class="text-sm text-gray-500">Unsupported input type</span>`)}
|
|
2656
1233
|
</div>
|
|
2657
1234
|
</div>
|
|
2658
1235
|
`}#e(){return u`
|
|
2659
1236
|
<button
|
|
2660
1237
|
type="button"
|
|
2661
1238
|
@click="${()=>this.dispatchEvent(new t.SubmitEvent({type:"new-conversation-button"}))}">
|
|
2662
|
-
<span class="group relative flex items-center justify-center gap-
|
|
1239
|
+
<span class="group relative flex items-center justify-center gap-1 font-sans text-sm font-semibold whitespace-nowrap text-[${this.color}]">
|
|
2663
1240
|
${this.heading||"Start a new conversation"}
|
|
2664
|
-
<
|
|
1241
|
+
<span class="transition-transform group-hover:translate-x-0.5">→</span>
|
|
2665
1242
|
</span>
|
|
2666
1243
|
</button>
|
|
2667
1244
|
`}#t(){return u`
|
|
2668
1245
|
${this.heading?u`<p class="text-sm font-medium text-gray-700 dark:text-gray-200">${this.heading}</p>`:null}
|
|
2669
|
-
<div class="flex justify-center
|
|
1246
|
+
<div class="flex justify-center">
|
|
2670
1247
|
${[1,2,3,4,5].map(e=>u`
|
|
2671
1248
|
<button
|
|
2672
1249
|
type="button"
|
|
2673
1250
|
?disabled="${this._selectedRating>0}"
|
|
2674
|
-
@click="${()=>this.#
|
|
2675
|
-
@mouseenter="${()=>this.#
|
|
2676
|
-
@mouseleave="${this.#
|
|
1251
|
+
@click="${()=>this.#i(e)}"
|
|
1252
|
+
@mouseenter="${()=>this.#o(e)}"
|
|
1253
|
+
@mouseleave="${this.#s}"
|
|
2677
1254
|
class="p-1 transition-transform hover:scale-110 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:scale-100"
|
|
2678
1255
|
aria-label="${e} star${e>1?"s":""}">
|
|
2679
|
-
${this.#
|
|
1256
|
+
${this.#n(e)}
|
|
2680
1257
|
</button>
|
|
2681
1258
|
`)}
|
|
2682
1259
|
</div>
|
|
@@ -2688,101 +1265,81 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
2688
1265
|
?disabled="${this._selectedVote!==""}"
|
|
2689
1266
|
@click="${()=>this.#a("negative")}"
|
|
2690
1267
|
class="${e?"border-red-400 bg-red-50 dark:bg-red-900/20":"border-gray-300 hover:border-red-400 dark:border-gray-600"} flex flex-col items-center gap-1 rounded-lg border-2 p-1 transition-all disabled:cursor-not-allowed disabled:opacity-50">
|
|
2691
|
-
<
|
|
2692
|
-
<path
|
|
2693
|
-
stroke-linecap="round"
|
|
2694
|
-
stroke-linejoin="round"
|
|
2695
|
-
stroke-width="2"
|
|
2696
|
-
d="M10 14H5.236a2 2 0 01-1.789-2.894l3.5-7A2 2 0 018.736 3h4.018a2 2 0 01.485.06l3.76.94m-7 10v5a2 2 0 002 2h.096c.5 0 .905-.405.905-.904 0-.715.211-1.413.608-2.008L17 13V4m-7 10h2m5-10h2a2 2 0 012 2v6a2 2 0 01-2 2h-2.5" />
|
|
2697
|
-
</svg>
|
|
1268
|
+
<mw-icon class="${e?"text-red-500":"text-gray-400 dark:text-gray-300"} h-6 w-6" name="lucide:thumbs-down"></mw-icon>
|
|
2698
1269
|
</button>
|
|
2699
1270
|
<button
|
|
2700
1271
|
type="button"
|
|
2701
1272
|
?disabled="${this._selectedVote!==""}"
|
|
2702
1273
|
@click="${()=>this.#a("positive")}"
|
|
2703
1274
|
class="${r?"border-green-400 bg-green-50 dark:bg-green-900/20":"border-gray-300 hover:border-green-400 dark:border-gray-600"} flex flex-col items-center gap-1 rounded-lg border-2 p-1 transition-all disabled:cursor-not-allowed disabled:opacity-50">
|
|
2704
|
-
<
|
|
2705
|
-
<path
|
|
2706
|
-
stroke-linecap="round"
|
|
2707
|
-
stroke-linejoin="round"
|
|
2708
|
-
stroke-width="2"
|
|
2709
|
-
d="M14 10h4.764a2 2 0 011.789 2.894l-3.5 7A2 2 0 0115.263 21h-4.017c-.163 0-.326-.02-.485-.06L7 20m7-10V5a2 2 0 00-2-2h-.095c-.5 0-.905.405-.905.905 0 .714-.211 1.412-.608 2.006L7 11v9m7-10h-2M7 20H5a2 2 0 01-2-2v-6a2 2 0 012-2h2.5" />
|
|
2710
|
-
</svg>
|
|
1275
|
+
<mw-icon class="${r?"text-green-500":"text-gray-400 dark:text-gray-300"} h-6 w-6" name="lucide:thumbs-up"></mw-icon>
|
|
2711
1276
|
</button>
|
|
2712
1277
|
</div>
|
|
2713
|
-
`}#
|
|
2714
|
-
<svg class="${i?"text-yellow-400":"text-gray-300"} h-6 w-6" fill="${i?"currentColor":"none"}" stroke="currentColor" viewBox="0 0 24 24">
|
|
2715
|
-
<path
|
|
2716
|
-
stroke-linecap="round"
|
|
2717
|
-
stroke-linejoin="round"
|
|
2718
|
-
stroke-width="2"
|
|
2719
|
-
d="M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z" />
|
|
2720
|
-
</svg>
|
|
2721
|
-
`}#n(e){this._selectedRating>0||(this._selectedRating=e,this._hoverRating=0,this.dispatchEvent(new t.SubmitEvent({type:"star-rating",rating:e})))}#s(e){this._selectedRating>0||(this._hoverRating=e)}#o(){this._selectedRating>0||(this._hoverRating=0)}#a(e){this._selectedVote||(this._selectedVote=e,this.dispatchEvent(new t.SubmitEvent({type:"binary-vote",vote:e})))}};Ht.SubmitEvent=class extends CustomEvent{static type="mw-request-input:submit";constructor(e,r={}){super(Ht.SubmitEvent.type,{detail:e,bubbles:!0,composed:!0,...r})}};customElements.get("mw-request-input")||customElements.define("mw-request-input",Ht);var Kn=class{#e;#t=0;#r;#i;#n;#s;#o=0;#a;constructor(e,{duration:r,initial:i,easing:n,onFrame:s,onComplete:o}){this.#a=i,this.#t=typeof r=="function"?0:r,this.#r=typeof r=="function"?r:void 0,this.#i=n??(a=>a),this.#n=s,this.#s=o,e.addController(this)}start(e){this.cancel(),this.#a=e,this.#r&&(this.#t=this.#r(e)),this.#o=performance.now(),this.#e=requestAnimationFrame(this.#l)}cancel(){this.#e!==void 0&&(cancelAnimationFrame(this.#e),this.#e=void 0)}get running(){return this.#e!==void 0}#l=e=>{let r=Math.min((e-this.#o)/this.#t,1),i=this.#i(r);this.#n(i,this.#a),r<1?this.#e=requestAnimationFrame(this.#l):(this.#e=void 0,this.#s?.(this.#a))};hostDisconnected(){this.cancel()}};function Na(t,e){return new Kn(t,e)}var zt=class t extends Nt(v){static properties={text:{type:String},speed:{type:Number},spotlightWidth:{type:Number},loop:{type:Boolean},delay:{type:Number},textColor:{type:String},highlightColor:{type:String},className:{type:String},_position:{type:Number,state:!0},_containerWidth:{type:Number,state:!0}};constructor(){super(),this.text="",this.speed=5,this.spotlightWidth=120,this.loop=!0,this.delay=0,this.textColor="#9CA3AF",this.highlightColor="#000000",this.className="",this._position=-this.spotlightWidth,this._containerWidth=0}#e=Na(this,{duration:({range:e})=>e*10/this.speed,initial:{range:0},onFrame:(e,{range:r})=>{this._position=-this.spotlightWidth+e*r,this.requestUpdate()},onComplete:({range:e})=>{this.loop?(this._position=-this.spotlightWidth,this.requestUpdate(),setTimeout(()=>this.#e.start({range:e}),this.delay)):this.dispatchEvent(new t.AnimationEndEvent)}});firstUpdated(){setTimeout(()=>{this._containerWidth=this.#t?.offsetWidth||0;let e=this._containerWidth+this.spotlightWidth*3;this.#e.start({range:e})},this.delay)}render(){let e=this.text.split("");return u`
|
|
1278
|
+
`}#n(e){let r=this._selectedRating>0?this._selectedRating:this._hoverRating,i=e<=r;return u`<mw-icon class="${i?"text-yellow-400":"text-gray-300"} h-6 w-6" name="lucide:star" ?fill="${i}"></mw-icon>`}#i(e){this._selectedRating>0||(this._selectedRating=e,this._hoverRating=0,this.dispatchEvent(new t.SubmitEvent({type:"star-rating",rating:e})))}#o(e){this._selectedRating>0||(this._hoverRating=e)}#s(){this._selectedRating>0||(this._hoverRating=0)}#a(e){this._selectedVote||(this._selectedVote=e,this.dispatchEvent(new t.SubmitEvent({type:"binary-vote",vote:e})))}};Vt.SubmitEvent=class extends CustomEvent{static type="mw-request-input:submit";constructor(e,r={}){super(Vt.SubmitEvent.type,{detail:e,bubbles:!0,composed:!0,...r})}};customElements.get("mw-request-input")||customElements.define("mw-request-input",Vt);var Xn=class{#e;#t=0;#r;#n;#i;#o;#s=0;#a;constructor(e,{duration:r,initial:i,easing:n,onFrame:s,onComplete:o}){this.#a=i,this.#t=typeof r=="function"?0:r,this.#r=typeof r=="function"?r:void 0,this.#n=n??(a=>a),this.#i=s,this.#o=o,e.addController(this)}start(e){this.cancel(),this.#a=e,this.#r&&(this.#t=this.#r(e)),this.#s=performance.now(),this.#e=requestAnimationFrame(this.#l)}cancel(){this.#e!==void 0&&(cancelAnimationFrame(this.#e),this.#e=void 0)}get running(){return this.#e!==void 0}#l=e=>{let r=Math.min((e-this.#s)/this.#t,1),i=this.#n(r);this.#i(i,this.#a),r<1?this.#e=requestAnimationFrame(this.#l):(this.#e=void 0,this.#o?.(this.#a))};hostDisconnected(){this.cancel()}};function Ja(t,e){return new Xn(t,e)}var Jn=class extends w(v){static properties={text:{type:String},speed:{type:Number},spotlightWidth:{type:Number},loop:{type:Boolean},delay:{type:Number},textColor:{type:String},highlightColor:{type:String},className:{type:String},_position:{type:Number,state:!0},_containerWidth:{type:Number,state:!0}};constructor(){super(),this.text="",this.speed=5,this.spotlightWidth=120,this.loop=!0,this.delay=0,this.textColor="#9CA3AF",this.highlightColor="#000000",this.className="",this._position=-this.spotlightWidth,this._containerWidth=0}#e=Ee(this);#t=Ja(this,{duration:({range:e})=>e*10/this.speed,initial:{range:0},onFrame:(e,{range:r})=>{this._position=-this.spotlightWidth+e*r,this.requestUpdate()},onComplete:({range:e})=>{this.loop&&(this._position=-this.spotlightWidth,this.requestUpdate(),this.#e.setTimeout(()=>this.#t.start({range:e}),this.delay))}});firstUpdated(){this.#e.setTimeout(()=>{this._containerWidth=this.#r?.offsetWidth||0;let e=this._containerWidth+this.spotlightWidth*3;this.#t.start({range:e})},this.delay)}render(){let e=this.text.split("");return u`
|
|
2722
1279
|
<div id="text-spotlight-container" class="${this.className} relative inline-block overflow-hidden whitespace-nowrap">
|
|
2723
1280
|
<div class="text-[${this.textColor}]">
|
|
2724
1281
|
${e.map((r,i)=>{let n=i*(this._containerWidth/e.length),o=Math.abs(n-this._position)<this.spotlightWidth/2;return u`<span class="inline text-[${o?this.highlightColor:this.textColor}] transition-colors duration-300">${r}</span>`})}
|
|
2725
1282
|
</div>
|
|
2726
1283
|
</div>
|
|
2727
|
-
`}get#
|
|
2728
|
-
<
|
|
1284
|
+
`}get#r(){return this.renderRoot.querySelector("#text-spotlight-container")}};customElements.define("mw-text-spotlight",Jn);var Yn=class extends w(v){static properties={text:{type:String},color:{type:String},darkMode:{type:Boolean,attribute:"dark-mode"}};constructor(){super(),this.text="",this.color="",this.darkMode=!1}render(){return u`
|
|
1285
|
+
<mw-text-spotlight
|
|
2729
1286
|
text="${`${this.text||"Working"}\u2026`}"
|
|
2730
1287
|
.speed="${3}"
|
|
2731
1288
|
.textColor="${this.darkMode?"#9CA3AF":"#6B7280"}"
|
|
2732
1289
|
.highlightColor="${this.color||(this.darkMode?"#FFFFFF":"#000000")}"
|
|
2733
1290
|
class="block h-6 leading-6">
|
|
2734
|
-
</
|
|
2735
|
-
`}};customElements.get("mw-tool-call-indicator")||customElements.define("mw-tool-call-indicator",
|
|
2736
|
-
${
|
|
1291
|
+
</mw-text-spotlight>
|
|
1292
|
+
`}};customElements.get("mw-tool-call-indicator")||customElements.define("mw-tool-call-indicator",Yn);var Ya=["image/jpeg","image/png","image/gif","image/webp","image/svg+xml","image/heic"];var Ht=class extends ot{constructor(e){if(super(e),this.it=U,e.type!==Ar.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===U||e==null)return this._t=void 0,this.it=e;if(e===ne)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:[]}}};Ht.directiveName="unsafeHTML",Ht.resultType=1;var Ka=Tr(Ht);var Qa=B({title:Q(C(),"Agent joining in"),subtitle:Q(C(),"We are finding a human agent to help you."),subtitle_past_join_time:Q(C(),"It is taking a bit longer. A human agent will join any moment now."),expected_join_time:dr(Qe(C(),Ei(),Ai())),game_title:Q(C(),"\u{1F9E0} I will guess your job"),game_first_question:Q(C(),"Does your job involve computers?"),game_result_prefix:Q(C(),"My guess:"),game_button_start:Q(C(),"\u{1F3AE} Play a game"),game_button_answer_affirmative:Q(C(),"Yes"),game_button_answer_negative:Q(C(),"No"),game_button_result_correct:Q(C(),"Correct"),game_button_result_wrong:Q(C(),"Wrong")});var Kn=t=>Qe(St(),Ti(e=>Array.isArray(e)?e:[e]),Ke(t));var Za=B({order_id_label:A(C()),order_id_value:A(C()),timeline:A(B({step:Kn(B({label:A(C()),status:A(It(["completed","in_progress","pending"]))}))})),items:A(B({item:Kn(B({name:A(C()),quantity:A(C()),price:A(C()),image:A(C())}))})),shipping_cost_label:A(C()),shipping_cost_amount:A(C()),total_label:A(C()),total_amount:A(C()),customer_name:A(C()),shipping_label:A(C()),shipping_method:A(C()),payment_label:A(C()),payment_method_label:A(C()),payment_method_value:A(C()),payment_status_label:A(C()),payment_status_value:A(C()),order_tracking_label:A(C()),order_tracking_url:A(C())});function el(t,e,r,{imagesByProductUrl:i,linksNewTab:n=!0,searchParams:s,messageIsStreaming:o=!1,isSupportAgent:a,color:l="#601feb",darkMode:c=!1,apiBaseUrl:d="",cdnBaseUrl:p=""}){if(!t)return u``;let h=e>0&&r[e-1]&&"data"in r[e-1],y=e<r.length-1||!o;if("text"in t)return u`<p>${t.text}</p>`;if("html"in t)return u`${Ka(t.html)}`;if("data"in t)switch(t.tag){case"thought":{let f=t.data.__TEXT__?String(t.data.__TEXT__):"";return u`<mw-thought-block .content="${f}" ?dark-mode="${c}"></mw-thought-block>`}case"product-card":case"product-card-v1":case"product-card-horizontal":{let f=se(fr,t.data);if(f.success)return u`
|
|
1293
|
+
${h?u`<div class="my-3 w-full border-t border-gray-200/50"></div>`:null}
|
|
2737
1294
|
<mw-product-card-horizontal
|
|
2738
|
-
.product="${
|
|
2739
|
-
?streaming="${!
|
|
1295
|
+
.product="${f.output}"
|
|
1296
|
+
?streaming="${!y}"
|
|
2740
1297
|
?links-new-tab="${n}"
|
|
2741
1298
|
?dark-mode="${c}"
|
|
2742
1299
|
.searchParams="${s}"
|
|
2743
1300
|
.imagesByProductUrl="${i}"></mw-product-card-horizontal>
|
|
2744
|
-
`;console.warn("cannot parse product-card-v1",
|
|
1301
|
+
`;console.warn("cannot parse product-card-v1",f.issues);break}case"order-status-card-v1":return u`
|
|
2745
1302
|
<mw-product-order-status-card
|
|
2746
1303
|
.orderDetails="${t.data}"
|
|
2747
|
-
?streaming="${!
|
|
1304
|
+
?streaming="${!y}"
|
|
2748
1305
|
?links-new-tab="${n}"
|
|
2749
1306
|
?dark-mode="${c}"
|
|
2750
1307
|
color="${l}"></mw-product-order-status-card>
|
|
2751
|
-
`;case"order-card-v2":{let
|
|
1308
|
+
`;case"order-card-v2":{let f=se(Za,t.data);f.success||console.warn("cannot parse order-card-v2",f.issues);let E=f.success?f.output:t.data;return u`
|
|
2752
1309
|
<!-- -->
|
|
2753
|
-
<mw-order-card .orderDetails="${
|
|
2754
|
-
`}case"live-chat-wait-card-v1":{let
|
|
1310
|
+
<mw-order-card .orderDetails="${E}" ?streaming="${!y}" ?links-new-tab="${n}" ?dark-mode="${c}" color="${l}"></mw-order-card>
|
|
1311
|
+
`}case"live-chat-wait-card-v1":{let f=t.data||{};return a?u`<p><i>${f.message}</i></p>`:u`
|
|
2755
1312
|
<mw-chat-wait-timer
|
|
2756
|
-
heading="${
|
|
2757
|
-
message="${
|
|
2758
|
-
completeMessage="${
|
|
2759
|
-
gameButton="${
|
|
2760
|
-
target-end-time="${
|
|
2761
|
-
question="${
|
|
2762
|
-
.options="${
|
|
2763
|
-
game-title="${
|
|
2764
|
-
result-prefix="${
|
|
2765
|
-
correct-button-text="${
|
|
2766
|
-
wrong-button-text="${
|
|
1313
|
+
heading="${f.title||""}"
|
|
1314
|
+
message="${f.message||""}"
|
|
1315
|
+
completeMessage="${f.completemessage||""}"
|
|
1316
|
+
gameButton="${f.gamebutton||""}"
|
|
1317
|
+
target-end-time="${f.targetendtime||""}"
|
|
1318
|
+
question="${f.firstquestion||""}"
|
|
1319
|
+
.options="${f.options?.option||["No","Yes"]}"
|
|
1320
|
+
game-title="${f.gametitle||""}"
|
|
1321
|
+
result-prefix="${f.resultprefix||""}"
|
|
1322
|
+
correct-button-text="${f.correctbuttontext||"Correct"}"
|
|
1323
|
+
wrong-button-text="${f.wrongbuttontext||"Wrong"}"
|
|
2767
1324
|
color="${l}"
|
|
2768
1325
|
apiBaseUrl="${d}"
|
|
2769
|
-
cdnBaseUrl="${
|
|
2770
|
-
sound="${
|
|
1326
|
+
cdnBaseUrl="${p}"
|
|
1327
|
+
sound="${p?`${p}/assets/game-intro.aac`:""}"
|
|
2771
1328
|
?dark-mode="${c}"></mw-chat-wait-timer>
|
|
2772
|
-
`}case"live-chat-wait-card-v2":{let
|
|
1329
|
+
`}case"live-chat-wait-card-v2":{let f=se(Qa,t.data||{});f.success||console.warn("cannot parse live-chat-wait-card-v2",f.issues);let E=f.success?f.output:t.data||{};return a?u`<p><i>${E.subtitle}</i></p>`:u`
|
|
2773
1330
|
<mw-chat-wait-timer
|
|
2774
|
-
.data="${
|
|
1331
|
+
.data="${E}"
|
|
2775
1332
|
color="${l}"
|
|
2776
1333
|
apiBaseUrl="${d}"
|
|
2777
|
-
cdnBaseUrl="${
|
|
2778
|
-
sound="${
|
|
1334
|
+
cdnBaseUrl="${p}"
|
|
1335
|
+
sound="${p?`${p}/assets/game-intro.aac`:""}"
|
|
2779
1336
|
?dark-mode="${c}"></mw-chat-wait-timer>
|
|
2780
|
-
`}case"request-input-v1":return u``}return console.warn("could not render part:",t),u`<p><i>data type not supported</i></p>`}var
|
|
1337
|
+
`}case"request-input-v1":return u``}return console.warn("could not render part:",t),u`<p><i>data type not supported</i></p>`}var Qr=class{#e;#t;#r;#n=!1;timeoutMs;get isTyping(){return this.#n}constructor(e,r,{timeoutMs:i=2e3}={}){this.#e=e,this.#t=r,this.timeoutMs=i,e.addController(this)}hostDisconnected(){clearTimeout(this.#r),this.#r=void 0}onInput(e){if(this.#e.isConnected){if(!e.trim()){this.typingStopped();return}clearTimeout(this.#r),this.#r=setTimeout(()=>this.typingStopped(),this.timeoutMs),this.#n||this.#i()}}#i(){this.#n=!0,this.#t.typingStarted()}typingStopped(){clearTimeout(this.#r),this.#n=!1,this.#t.typingStopped()}};function Qn({interval:t},e){let r=!0,i;return Object.assign((...n)=>{r&&(e(...n),r=!1,i=setTimeout(()=>{r=!0,i=void 0},t))},{isThrottled:()=>i!==void 0})}function tl(t){let e=new FormData;for(let[r,i]of Object.entries(t))i!=null&&(i instanceof Blob?e.append(r,i):e.append(r,String(i)));return e}var Zr=class extends Error{constructor(e,r,i){super(),this.name=this.constructor.name,this.message=e,this.type=r,this.code=i}},Zn=class{#e;#t;constructor(e,r,{fetch:i,headers:n}={}){this.baseUrl=e,this.path=r,this.#e=i,this.#t=n}GET({query:e,params:r,headers:i,signal:n}={}){return this.#n(this.#r(this.path,r),"GET",{query:e,headers:i,signal:n})}POST({query:e,params:r,body:i,formData:n,headers:s,signal:o}={}){return this.#n(this.#r(this.path,r),"POST",{query:e,body:i,formData:n,headers:s,signal:o})}PUT({query:e,params:r,body:i,formData:n,headers:s,signal:o}={}){return this.#n(this.#r(this.path,r),"PUT",{query:e,body:i,formData:n,headers:s,signal:o})}PATCH({query:e,params:r,body:i,formData:n,headers:s,signal:o}={}){return this.#n(this.#r(this.path,r),"PATCH",{query:e,body:i,formData:n,headers:s,signal:o})}DELETE({query:e,params:r,headers:i,signal:n}={}){return this.#n(this.#r(this.path,r),"DELETE",{query:e,headers:i,signal:n})}#r(e,r){if(!r)return e;let i=e;for(let[n,s]of Object.entries(r))i=i.replace(`:${n}`,encodeURIComponent(s.toString()));return i}async#n(e,r,{query:i,body:n,formData:s,headers:o,signal:a}){let l=new URL(e,this.baseUrl);i&&(l.search=Hs(i).toString());let c=new Headers(this.#t);if(o)for(let[p,h]of new Headers(o))c.set(p,h);s||n instanceof URLSearchParams||n instanceof FormData||n instanceof Blob||n instanceof ArrayBuffer||n instanceof ReadableStream||c.set("Content-Type","application/json");let d=await(this.#e??fetch)(l,{method:r,headers:c,body:c.get("Content-Type")==="application/json"?JSON.stringify(n):(s?tl(s):null)||n,signal:a});if(!d.ok){let p="";try{p=await d.text().then(h=>h.substring(0,1e3))}catch(h){p=h?.toString()??""}throw new Zr(p,"HTTP",d.status)}if(d.status!==204){if(d.headers.get("Content-Type")?.startsWith("application/json"))return d.json();throw new Zr("Response content type is not JSON and we do not handle others yet","HTTP",d.status)}}};function rl(t,{fetch:e,headers:r}={}){let i={baseUrl:t};return new Proxy(i,{get(s,o){if(typeof o!="string"||!o.startsWith("/"))return;let a=o;return new Zn(s.baseUrl,a,{fetch:e,headers:r})}})}var es=class{#e;uploadsAPI;constructor(e,r){this.#e=e,this.uploadsAPI=rl(r),e.addController(this)}hostDisconnected(){}};function il(t,e){return new es(t,e).uploadsAPI}var ts="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:font-bold prose-h2:text-lg prose-h2:font-bold prose-h3:text-base prose-h3:font-bold prose-h4:text-sm prose-h4:font-bold prose-p:whitespace-pre-wrap prose-blockquote:border-l-4 prose-blockquote:border-gray-300 prose-blockquote:pl-4 prose-blockquote:my-4 prose-blockquote:italic prose-blockquote:text-gray-600 prose-blockquote:whitespace-normal prose-blockquote:before:content-none prose-blockquote:after:content-none dark:prose-headings:text-white dark:prose-strong:text-white dark:prose-p:text-inherit dark:prose-a:text-white dark:prose-blockquote:border-gray-500 dark:prose-blockquote:text-gray-300";function rs(){return new URL(import.meta.url).hostname}function ei(){let t=Object.freeze({localhost:"http://localhost:8787","molin.localhost":"http://molin.localhost:8787","molin.ai":"https://molin.ai","molin.foo":"https://molin.foo","widget.molin.foo":"https://widget.molin.foo","widget.molin.ai":"https://widget.molin.ai"}),e=rs(),r=t[e];if(!r)throw new Error(`Unknown JS bundle hostname: ${e}. Please make sure to add it to getMolinApiBaseUrl.`);return r}function nl(){let t=Object.freeze({localhost:"http://uploads.molin.localhost:8787","molin.localhost":"http://uploads.molin.localhost:8787","molin.ai":"https://widget.molin.ai","molin.foo":"https://widget.molin.foo","widget.molin.foo":"https://widget.molin.foo","widget.molin.ai":"https://widget.molin.ai"}),e=rs(),r=t[e];if(!r)throw new Error(`Unknown JS bundle hostname: ${e}. Please make sure to add it to getMolinUploadsBaseUrl.`);return r}function sl(){let t=Object.freeze({localhost:"http://localhost:8702","molin.localhost":"http://localhost:8702","molin.ai":"https://widget.molin.ai","molin.foo":"https://widget.molin.foo","widget.molin.foo":"https://widget.molin.foo","widget.molin.ai":"https://widget.molin.ai"}),e=rs(),r=t[e];if(!r)throw new Error(`Unknown JS bundle hostname: ${e}. Please make sure to add it to getMolinCdnBaseUrl.`);return r}var hd=["star-rating","binary-vote","new-conversation-button"],ze=class t extends w(v){static styles=O`
|
|
2781
1338
|
div.dark::before {
|
|
2782
1339
|
opacity: 0.8;
|
|
2783
1340
|
background-color: rgba(20, 22, 26, var(--tw-bg-opacity));
|
|
2784
1341
|
}
|
|
2785
|
-
`;static properties={showClose:{type:Boolean,attribute:"show-close"},open:{type:Boolean},_currentRequestInputIndex:{type:Number,state:!0}};#e=
|
|
1342
|
+
`;static properties={showClose:{type:Boolean,attribute:"show-close"},showExpand:{type:Boolean,attribute:"show-expand"},expanded:{type:Boolean},open:{type:Boolean},_currentRequestInputIndex:{type:Number,state:!0}};#e=lo(this);#t=il(this,nl());#r=new Map;constructor(){super(),this.showClose=!1,this.showExpand=!1,this.expanded=!1,this.open=!1,this._currentRequestInputIndex=0}#n=new Qr(this,{typingStarted:()=>this.#e.value?.sendUserTypingStart(),typingStopped:()=>this.#e.value?.sendUserTypingStop()});#i=new Pr(this,{acceptedTypes:Ya,maxFileSize:10485760,maxFileCount:3,onFileUpload:async e=>{let r=this.#e.value;if(!r?.isConnected())throw new Error("Not connected");return this.#t["/v1/uploads"].POST({formData:{file:e.file,fileId:e.id,conversationId:this.conversationId,widgetId:r.widgetId,role:"user"}})},onFileDelete:e=>{if(!this.#e.value){console.warn("widget context not available, cannot delete file");return}this.#e.value.sendFileDelete(e),this.#k?.focus()},onFilesAdded:()=>{this.focusInput()}});get conversationId(){return this.#e.value?.conversationId||""}get messages(){return this.#e.value?.messages||[]}get config(){return this.#e.value?.config}get callbacks(){return this.#e.value?.callbacks||{}}get widgetId(){return this.#e.value?.widgetId||""}get typingIndicator(){return this.#e.value?.typingIndicator}get toolCallIndicator(){return this.#e.value?.toolCallIndicator}get isStreaming(){return this.#e.value?.isStreaming}get ranOutOfCredits(){return this.#e.value?.ranOutOfCredits}get isLiveMode(){return this.#e.value?.isLiveMode}get lastMsg(){return this.#e.value?.lastMsg}get hasQueuedMessages(){return this.#e.value?.hasQueuedMessages}#o="single";#s=null;firstUpdated(){document.addEventListener("mw-context-widget:connected",this.#a,{once:!0}),this.addEventListener("mw-chat-wait-game:question-answered",this.#l),this.addEventListener("mw-chat-wait-game:game-completed",this.#c),this.addEventListener("mw-chat-wait-game:guess-validated",this.#d)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("mw-chat-wait-game:question-answered",this.#l),this.removeEventListener("mw-chat-wait-game:game-completed",this.#c),this.removeEventListener("mw-chat-wait-game:guess-validated",this.#d)}#a=e=>{let r=e,{pendingImages:i}=r.detail;Array.isArray(i)&&this.#i.restoreFiles(i.map(n=>({id:n.id,name:n.name,type:n.type,size:n.size,dataUrl:n.url,file:new File([],n.name,{type:n.type}),processingState:de.uploaded,publicUrl:n.url})))};#l=e=>{let r=e,{questionIndex:i,question:n,answer:s,totalQuestions:o}=r.detail;this.callbacks.onWaitGameQuestionAnswered?.({widgetId:this.widgetId,conversationId:this.conversationId,questionIndex:i,question:n,answer:s,totalQuestions:o})};#c=e=>{let r=e,{guessedProfession:i,questionCount:n}=r.detail;this.callbacks.onWaitGameCompleted?.({widgetId:this.widgetId,conversationId:this.conversationId,guessedProfession:i,questionCount:n})};#d=e=>{let r=e,{guessedProfession:i,isCorrect:n,questionCount:s}=r.detail;this.callbacks.onWaitGameGuessValidated?.({widgetId:this.widgetId,conversationId:this.conversationId,guessedProfession:i,isCorrect:n,questionCount:s})};updated(e){e.has("open")&&this.open&&this.focusInput();let r=this.lastMsg?.id;r&&r!==this.#s&&(this.#s=r,this._currentRequestInputIndex=0),this.#i.setEnabled(!!this.#e.value?.widgetId)}render(){D(this.config,"config is required");let e=Xa(this.messages,s=>{try{let o=new Date(s.timestamp),a=Math.floor(o.getUTCMinutes()/5)*5;return o.setUTCMinutes(a,0,0),o.valueOf().toString()}catch(o){console.error(o)}}),r=Math.max(0,Math.min(this._currentRequestInputIndex,this.#h.length-1)),i=this.#h[r],n=this.config.darkMode;return u`
|
|
2786
1343
|
<div
|
|
2787
1344
|
class="${n?"dark":""} 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] dark:bg-[#14161A]">
|
|
2788
1345
|
<div
|
|
@@ -2790,11 +1347,14 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
2790
1347
|
<mw-chat-header
|
|
2791
1348
|
class="absolute top-1.5 right-1.5 left-1.5"
|
|
2792
1349
|
.content="${{logoUrl:this.config.logoUrl,title:this.config.title,color:this.config.color}}"
|
|
2793
|
-
?show-new-chat="${!this.isLiveMode&&this.messages.length>0&&!this.#
|
|
1350
|
+
?show-new-chat="${!this.isLiveMode&&this.messages.length>0&&!this.#E}"
|
|
2794
1351
|
?show-close="${this.showClose}"
|
|
1352
|
+
?show-expand="${this.showExpand}"
|
|
1353
|
+
?expanded="${this.expanded}"
|
|
2795
1354
|
?dark-mode="${n}"
|
|
2796
|
-
@mw:new-chat-click="${this.#
|
|
2797
|
-
@mw:
|
|
1355
|
+
@mw:new-chat-click="${this.#w}"
|
|
1356
|
+
@mw:expand-click="${this.#C}"
|
|
1357
|
+
@mw:close-click="${this.#x}">
|
|
2798
1358
|
</mw-chat-header>
|
|
2799
1359
|
|
|
2800
1360
|
<!-- used by the dashboard to inject content -->
|
|
@@ -2806,7 +1366,7 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
2806
1366
|
${this.#i.isDragging?u`
|
|
2807
1367
|
<div class="bg-opacity-90 absolute inset-0 z-50 flex items-center justify-center bg-white sm:rounded-[30px] dark:bg-[#2B2D31]">
|
|
2808
1368
|
<div class="p-8 text-center">
|
|
2809
|
-
<
|
|
1369
|
+
<mw-icon name="lucide:image-plus" class="mx-auto mb-4 h-12 w-12 text-blue-500"></mw-icon>
|
|
2810
1370
|
<p class="mb-2 text-lg font-semibold text-black dark:text-white">Add images</p>
|
|
2811
1371
|
<p class="text-opacity-80 text-sm text-black dark:text-gray-300">JPEG, PNG, GIF, WebP, SVG, HEIC supported. Max size: 10MB.</p>
|
|
2812
1372
|
</div>
|
|
@@ -2825,15 +1385,15 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
2825
1385
|
<!-- this is the 2nd (inner) div that will natively stick/scroll to bottom -->
|
|
2826
1386
|
<div class="${this.messages.length>0?"pt-20":""}">
|
|
2827
1387
|
${X(Array.from(e),([s])=>s,([s,o])=>u`
|
|
2828
|
-
<div class="my-2 text-center text-xs text-gray-500 dark:text-gray-400">${
|
|
2829
|
-
${X(o??[],a=>a.id,(a,l)=>{let d=o[l+1]?.role===a.role,
|
|
2830
|
-
${a.images?X(a.images,
|
|
1388
|
+
<div class="my-2 text-center text-xs text-gray-500 dark:text-gray-400">${da(new Date(Number(s)),window.navigator.language)}</div>
|
|
1389
|
+
${X(o??[],a=>a.id,(a,l)=>{let d=o[l+1]?.role===a.role,h=(l>0?o[l-1]:void 0)?.role===a.role,f=(o.length>0?o[o.length-1]:void 0)?.id===a.id,E=()=>f&&!h&&!d?"single-current":!h&&!d?"single":!h&&d?"first":f&&h&&!d?"last-current":h&&!d?"last":h&&d?"middle":"single";this.#o=E();let x=this.isLiveMode&&a.role==="user"&&a.id===this.lastMsg?.id?"sent":"",$=(a.content.includes("<request-input-v1>")||!a.content)&&a.parts?.every(b=>"data"in b&&b.tag==="request-input-v1");return u`
|
|
1390
|
+
${a.images?X(a.images,b=>b,b=>u`
|
|
2831
1391
|
<div data-id="${a.id}" class="${d?"mb-[1px]":"mb-3"} mr-2 ml-[15px] flex-row">
|
|
2832
1392
|
<mw-chat-image
|
|
2833
|
-
src="${
|
|
1393
|
+
src="${b}"
|
|
2834
1394
|
alt="User uploaded image"
|
|
2835
1395
|
.side="${a.role==="user"?"right":"left"}"
|
|
2836
|
-
position=${this.#
|
|
1396
|
+
position=${this.#o}
|
|
2837
1397
|
width="300px"></mw-chat-image>
|
|
2838
1398
|
</div>
|
|
2839
1399
|
`):null}
|
|
@@ -2841,14 +1401,14 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
2841
1401
|
<div data-id="${a.id}" class="${d?"mb-[1px]":"mb-3"} mx-2 flex-row">
|
|
2842
1402
|
<mw-chat-message
|
|
2843
1403
|
.color="${this.config?.color}"
|
|
2844
|
-
status="${
|
|
1404
|
+
status="${x}"
|
|
2845
1405
|
logo="${a.role==="support"&&a.metadata&&"avatar"in a.metadata&&a.metadata.avatar||this.config?.logoUrl||""}"
|
|
2846
1406
|
side="${a.role}"
|
|
2847
|
-
position=${this.#
|
|
1407
|
+
position=${this.#o}
|
|
2848
1408
|
?dark-mode="${n}"
|
|
2849
|
-
@click="${this.#
|
|
1409
|
+
@click="${this.#u}">
|
|
2850
1410
|
<div class="${ts} break-words text-inherit">
|
|
2851
|
-
${a.
|
|
1411
|
+
${a.parts?.length?X(a.parts,(b,k)=>k,(b,k)=>el(b,k,a.parts??[],{imagesByProductUrl:a.role==="assistant"&&a.metadata&&"imagesByProductUrl"in a.metadata?a.metadata.imagesByProductUrl:void 0,linksNewTab:this.config?.linksNewTab??!0,searchParams:this.config?.disableUtmInjection?void 0:new URLSearchParams({utm_source:"molin.ai"}),messageIsStreaming:a.streaming,color:this.config?.color,darkMode:n,apiBaseUrl:ei(),cdnBaseUrl:sl()})):u`<p>${a.content}</p>`}
|
|
2852
1412
|
</div>
|
|
2853
1413
|
</mw-chat-message>
|
|
2854
1414
|
</div>
|
|
@@ -2883,7 +1443,7 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
2883
1443
|
.examples="${this.messages.length>0?[]:this.config.examples}"
|
|
2884
1444
|
color="${this.config.color}"
|
|
2885
1445
|
?dark-mode="${n}"
|
|
2886
|
-
@mw:example-click="${this.#
|
|
1446
|
+
@mw:example-click="${this.#p}"></mw-chat-background>
|
|
2887
1447
|
</div>
|
|
2888
1448
|
|
|
2889
1449
|
${this.messages.length===0&&this.config.disclaimerFloating?u`
|
|
@@ -2899,13 +1459,13 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
2899
1459
|
<mw-disclaimer .text="${this.config.disclaimer}" .color="${this.config.color}" ?dark-mode="${n}"></mw-disclaimer>
|
|
2900
1460
|
</div>
|
|
2901
1461
|
`:null}
|
|
2902
|
-
${this.#
|
|
1462
|
+
${this.#h.length===0?u`
|
|
2903
1463
|
<mw-chat-input
|
|
2904
1464
|
@mw:change="${this.#g}"
|
|
2905
1465
|
@mw:submit="${this.#f}"
|
|
2906
|
-
@mw:cancel="${this.#
|
|
1466
|
+
@mw:cancel="${this.#m}"
|
|
2907
1467
|
@mw:file-upload-click="${this.#i.openFilePicker}"
|
|
2908
|
-
@mw:file-delete="${this.#
|
|
1468
|
+
@mw:file-delete="${this.#_}"
|
|
2909
1469
|
placeholder="${this.config?.input?.placeholder??""}"
|
|
2910
1470
|
?disabled="${this.ranOutOfCredits||this.hasQueuedMessages}"
|
|
2911
1471
|
?streaming="${this.isStreaming??!0}"
|
|
@@ -2921,7 +1481,7 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
2921
1481
|
.type="${i?.type}"
|
|
2922
1482
|
.color="${this.config?.color??"#8B5CF6"}"
|
|
2923
1483
|
?dark-mode="${n}"
|
|
2924
|
-
@mw-request-input:submit="${this.#
|
|
1484
|
+
@mw-request-input:submit="${this.#y}">
|
|
2925
1485
|
</mw-request-input>
|
|
2926
1486
|
`}
|
|
2927
1487
|
${this.config.removePoweredBy?this.config.disclaimer?u`
|
|
@@ -2938,17 +1498,17 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
2938
1498
|
</div>
|
|
2939
1499
|
</div>
|
|
2940
1500
|
</div>
|
|
2941
|
-
`}#
|
|
1501
|
+
`}#u(e){let r=e.composedPath(),i=r.find(n=>n instanceof HTMLAnchorElement);if(i){e.preventDefault();let n=r.find(c=>c instanceof Ne||c instanceof Wt),s=n?.product,o=0;if(n){let c=n.parentElement?.querySelectorAll("mw-product-card, mw-product-card-horizontal");c&&(o=Array.from(c).indexOf(n))}if(this.callbacks.onUserClickedLink?.({widgetId:this.widgetId,url:i.href,conversationId:this.conversationId,product:s?.name&&s?.price?{name:s.name,price:s.price,rank:o}:void 0}),window.self!==window.top){window.open(i.href,"_blank");return}let l=this.config?.linksNewTab?"_blank":"_self";window.open(i.href,i.target||l)}}#p(e){if(this.isStreaming)return;e.preventDefault();let r=e.detail.example;this.#v(r)}#v=Qn({interval:200},async e=>{D(this.#e.value,"widget context is required"),await this.#e.value.enqueueUserInput(e,{xUserData:this.#e.value?.xUserData,xCustomInstructions:this.#e.value?.xCustomInstructions})&&(this.#k?.setValue(""),this.#$(),this.callbacks.onUserSentInput?.({widgetId:this.widgetId,text:e,example:!0,conversationId:this.conversationId}))});#f(e){if(D(this.#e.value,"widget context is required"),e.preventDefault(),this.#i.hasPendingFiles)return;let r=e.detail;this.#e.value.enqueueUserInput(r,{xUserData:this.#e.value?.xUserData,xCustomInstructions:this.#e.value?.xCustomInstructions}).then(i=>{i&&(this.#k?.setValue(""),this.#i.clearFiles(),this.#n.typingStopped(),this.#$(),this.callbacks.onUserSentInput?.({widgetId:this.widgetId,text:r,example:!1,conversationId:this.conversationId}),window.requestAnimationFrame(()=>{this.#k?.focus()}))}).catch(console.warn)}#g(e){this.#n.onInput(e.detail.full)}#m(){D(this.#e.value,"widget context is required"),this.#e.value.sendUserCancel(),this.callbacks.onUserCanceledStreaming?.({widgetId:this.widgetId})}#_(e){this.#i.deleteFile(e.detail)}#w(){D(this.#e.value,"widget context is required"),this.#e.value.sendNewChat(),this.reset()}#C(){this.dispatchEvent(new t.ExpandClickEvent)}#x(){this.dispatchEvent(new t.CloseClickEvent)}#y(e){D(this.#e.value,"widget context is required");let r=this.#h,i=r[this._currentRequestInputIndex];if(!i){console.warn("no current state found for request input");return}switch(e.detail.type){case"star-rating":{let{rating:s,type:o}=e.detail;this.#r.set(i.key||i.title,{type:o,rating:s,key:i.key,title:i.title});break}case"binary-vote":{let{vote:s,type:o}=e.detail;this.#r.set(i.key||i.title,{type:o,vote:s,key:i.key,title:i.title});break}case"new-conversation-button":{this.#w(),this.requestUpdate();return}default:console.warn("unknown request input type",e.detail);return}this._currentRequestInputIndex+=1;let n=r.filter(s=>s.type==="star-rating"||s.type==="binary-vote").length;this.#r.size>=n&&this.#b(),this.requestUpdate()}async#b(){if(D(this.#e.value,"widget context is required"),this.#r.size===0)return;if(!this.#e.value.lastMsg?.id){console.warn("cannot submit request inputs without message ID");return}await this.#e.value.sendUserFeedback([...this.#r.values()])&&this.#r.clear(),this.requestUpdate()}get#h(){D(this.#e.value,"widget context is required");let e=this.messages.findLast(n=>n.role==="assistant"&&n.parts?.some(s=>"tag"in s&&s.tag==="request-input-v1"&&"data"in s&&s.data.type==="new-conversation-button")),r=this.#e.value.lastMsg;if(e&&r?.id!==e.id){let n=e?.parts?.find(s=>"tag"in s&&s.tag==="request-input-v1"&&"data"in s&&s.data.type==="new-conversation-button");if(n&&"data"in n&&(n.data.type==="new-conversation-button"||n.data.type==="binary-vote"||n.data.type==="star-rating"))return[{title:String(n.data.title),type:n.data.type,key:String(n.data.key)}]}if(r?.role!=="assistant")return[];let i=r.parts?.filter(n=>"tag"in n&&n.tag==="request-input-v1");return!i||i.length===0?[]:i.map(n=>!("data"in n)||n.data.type!=="star-rating"&&n.data.type!=="binary-vote"&&n.data.type!=="new-conversation-button"||!hd.includes(n.data.type)?null:{title:String(n.data.title),type:n.data.type,key:String(n.data.key)}).filter(n=>n!==null)}get#E(){if(this.#h.length===0)return!1;let r=this.#h.filter(i=>i.type==="star-rating"||i.type==="binary-vote").length;return this.#r.size<r}get#S(){return this.renderRoot.querySelector("#scrollable-content")}#$(){this.#S?.scrollTo({top:0,behavior:"instant"})}get#k(){return this.renderRoot.querySelector("mw-chat-input")}reloadConfig(){this.#e.value?.reloadConfig(),this.requestUpdate()}sendMessage=Qn({interval:200},async e=>{if(!e?.trim())return console.warn("sendMessage: Message must be a non-empty string"),!1;D(this.#e.value,"Widget context is required");let{value:r}=this.#e,i=await r.enqueueUserInput(e,{xUserData:r.xUserData,xCustomInstructions:r.xCustomInstructions,role:"user",expectStreaming:!0});return i&&this.#k?.setValue(""),i??!1});setInputValue(e){if(!e||typeof e!="string"){console.warn("setInputValue requires a valid string value");return}let r=this.#k;if(!r){console.warn("input element not found, cannot set value");return}r.setValue?r.setValue(e):console.warn("input element does not have setValue method")}focusInput(){window.requestAnimationFrame(()=>{this.#k?.focus()})}reset(){this.#i.clearFiles(),this._currentRequestInputIndex=0,this.#r.clear(),this.#e.value?.reset()}};ze.ExpandClickEvent=class extends CustomEvent{static type="mw:expand-click";constructor(e={}){super(ze.ExpandClickEvent.type,{...e})}};ze.CloseClickEvent=class extends CustomEvent{static type="mw:close-click";constructor(e={}){super(ze.CloseClickEvent.type,{...e})}};customElements.get("mw-chat")||customElements.define("mw-chat",ze);var We=class t extends w(v){static properties={color:{type:String},disabled:{type:Boolean},placeholder:{type:String},dark:{type:Boolean},_inputValue:{type:String,state:!0}};constructor(){super(),this.color="#8B5CF6",this.disabled=!1,this.placeholder="Ask AI...",this.dark=!1,this._inputValue=""}#e=new Date;#t(e){let r=e.target;this._inputValue=r.value,this.dispatchEvent(new t.ChangeEvent({value:this._inputValue}))}render(){return u`
|
|
2942
1502
|
<div class="${this.dark?"dark":""} group rounded-[18px] font-sans text-sm shadow-lg transition-transform duration-500 focus-within:scale-100 hover:scale-105">
|
|
2943
1503
|
<mw-spinning-border .size=${"420px"} .color=${this.color||"#8B5CF6"} .radius=${"18px"} ?dark-mode="${this.dark}">
|
|
2944
1504
|
<form
|
|
2945
1505
|
@submit="${this.#r}"
|
|
2946
1506
|
class="m-[1px] flex w-[250px] items-center rounded-[17px] bg-white px-2 py-2 text-gray-800 transition-all duration-500 group-focus-within:w-[calc(100vw-2rem)] md:group-focus-within:w-[350px] dark:bg-gray-900 dark:text-white">
|
|
2947
|
-
<
|
|
1507
|
+
<mw-icon class="h-5 w-5 flex-none" style="color: ${this.color};" name="lucide:sparkles"></mw-icon>
|
|
2948
1508
|
|
|
2949
1509
|
<input
|
|
2950
1510
|
?disabled="${this.disabled}"
|
|
2951
|
-
@keydown="${this.#
|
|
1511
|
+
@keydown="${this.#i}"
|
|
2952
1512
|
@input="${this.#t}"
|
|
2953
1513
|
.value="${this._inputValue}"
|
|
2954
1514
|
placeholder="${this.placeholder}"
|
|
@@ -2963,13 +1523,13 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
2963
1523
|
style="background-color: ${this.color};"
|
|
2964
1524
|
type="submit">
|
|
2965
1525
|
<div class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2">
|
|
2966
|
-
<
|
|
1526
|
+
<mw-icon class="${this.dark?"text-gray-800":"text-white"} block h-5 w-5" name="lucide:arrow-up"></mw-icon>
|
|
2967
1527
|
</div>
|
|
2968
1528
|
</button>
|
|
2969
1529
|
</form>
|
|
2970
1530
|
</mw-spinning-border>
|
|
2971
1531
|
</div>
|
|
2972
|
-
`}#r(e){e.preventDefault();let r=new Date;if(r.getTime()-this.#e.getTime()<500)return;this.#e=r;let n=this._inputValue.trim();n&&this.dispatchEvent(new t.SubmitInputEvent({text:n}))&&(this._inputValue="")}get#
|
|
1532
|
+
`}#r(e){e.preventDefault();let r=new Date;if(r.getTime()-this.#e.getTime()<500)return;this.#e=r;let n=this._inputValue.trim();n&&this.dispatchEvent(new t.SubmitInputEvent({text:n}))&&(this._inputValue="")}get#n(){return this.renderRoot.querySelector('button[type="submit"]')??null}#i(e){fd(e)&&(e.preventDefault(),this.disabled||this.#n?.click())}};We.SubmitInputEvent=class extends CustomEvent{static type="mw-floating-ask-ai:submit";constructor(e,r={}){super(We.SubmitInputEvent.type,{detail:e,bubbles:!0,composed:!0,...r})}};We.ChangeEvent=class extends CustomEvent{static type="mw-floating-ask-ai:change";constructor(e,r={}){super(We.ChangeEvent.type,{detail:e,bubbles:!0,composed:!0,...r})}};function fd(t){return(t.code==="Enter"||t.code==="NumpadEnter")&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey}customElements.get("mw-floating-ask-ai")||customElements.define("mw-floating-ask-ai",We);var Ve=class t extends w(v){static properties={text:{type:String},color:{type:String},darkMode:{type:Boolean,attribute:"dark-mode"}};static styles=O`
|
|
2973
1533
|
.popup-desktop:hover button {
|
|
2974
1534
|
transition-delay: 0s !important;
|
|
2975
1535
|
}
|
|
@@ -2997,7 +1557,7 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
2997
1557
|
×
|
|
2998
1558
|
</button>
|
|
2999
1559
|
</div>
|
|
3000
|
-
`;#e(){this.dispatchEvent(new t.CloseEvent)}#t(){this.dispatchEvent(new t.ClickEvent)}};Ve.CloseEvent=class extends CustomEvent{static type="mw:close";constructor(e={}){super(Ve.CloseEvent.type,{...e})}};Ve.ClickEvent=class extends CustomEvent{static type="mw:click";constructor(e={}){super(Ve.ClickEvent.type,{...e})}};customElements.get("mw-popup-desktop")||customElements.define("mw-popup-desktop",Ve);var
|
|
1560
|
+
`;#e(){this.dispatchEvent(new t.CloseEvent)}#t(){this.dispatchEvent(new t.ClickEvent)}};Ve.CloseEvent=class extends CustomEvent{static type="mw:close";constructor(e={}){super(Ve.CloseEvent.type,{...e})}};Ve.ClickEvent=class extends CustomEvent{static type="mw:click";constructor(e={}){super(Ve.ClickEvent.type,{...e})}};customElements.get("mw-popup-desktop")||customElements.define("mw-popup-desktop",Ve);var He=class t extends w(v){static properties={text:{type:String},button:{type:String},color:{type:String},darkMode:{type:Boolean,attribute:"dark-mode"}};constructor(){super(),this.text="Hello there. How can we help?",this.button="Chat now",this.color="#601feb",this.darkMode=!1}render(){return u`
|
|
3001
1561
|
<!-- wrapper -->
|
|
3002
1562
|
<div
|
|
3003
1563
|
class="${this.darkMode?"dark bg-[#2B2D31] text-gray-200":"bg-white text-gray-800"} group relative z-[2147483647] rounded-t-2xl text-left font-sans text-base text-[16px] leading-normal shadow-2xl transition-all select-none">
|
|
@@ -3022,7 +1582,7 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
3022
1582
|
<!-- can append any other content -->
|
|
3023
1583
|
<slot name="footer"></slot>
|
|
3024
1584
|
</div>
|
|
3025
|
-
`}#e(){this.dispatchEvent(new t.CloseEvent)}#t(){this.dispatchEvent(new t.ClickEvent)}};
|
|
1585
|
+
`}#e(){this.dispatchEvent(new t.CloseEvent)}#t(){this.dispatchEvent(new t.ClickEvent)}};He.CloseEvent=class extends CustomEvent{static type="mw:close";constructor(e={}){super(He.CloseEvent.type,{...e})}};He.ClickEvent=class extends CustomEvent{static type="mw:click";constructor(e={}){super(He.ClickEvent.type,{...e})}};customElements.get("mw-popup-mobile")||customElements.define("mw-popup-mobile",He);var ti=class{#e;#t=!1;constructor(e,r){this.#e=r,e.addController(this)}hostConnected(){this.startListening()}hostDisconnected(){this.stopListening()}startListening(){window.addEventListener("click",this.#r),window.addEventListener("keydown",this.#r)}stopListening(){window.removeEventListener("click",this.#r),window.removeEventListener("keydown",this.#r)}#r=()=>{this.#t||(this.#e.userFirstInteracted?.(),this.#t=!0),this.#e.userInteracted?.()}};var md=1440*60*1e3,ri=class{#e;#t;#r;#n;#i=!1;#o=!1;get showing(){return this.#i}constructor(e,r,i=Date){this.#e=e,this.#t=r,this.#r=i,e.addController(this)}hostDisconnected(){this.abortAutoShowTimer()}show({sound:e}={}){if(this.abortAutoShowTimer(),!this.#i&&(this.#i=!0,this.#e.requestUpdate(),e)){this.#t.playPopupSound();let r=this.#t.getPersistedState();this.#t.setPersistedState({...r,playedSoundOnce:!0})}}#s(){let e=this.#t.getPersistedState(),r=!!e?.playedSoundOnce;e?.userDismissedAt&&this.#r.now()-e.userDismissedAt<md||this.show({sound:!r})}hide(){this.#o=!0,this.abortAutoShowTimer(),this.#i=!1,this.#e.requestUpdate()}abortAutoShowTimer(){clearTimeout(this.#n)}onCloseClick(){let e=this.#t.getPersistedState();this.#t.setPersistedState({...e,userDismissedAt:this.#r.now()}),this.hide()}onContentClick(){let e=this.#t.getPersistedState();this.#t.setPersistedState({...e,userDismissedAt:this.#r.now()}),this.hide()}userFirstInteracted(){this.abortAutoShowTimer(),this.#o||(this.#n=setTimeout(()=>this.#s(),this.#t.getDelayMs()))}};var Gt=class t extends w(v){static properties={positionClasses:{type:String,attribute:"position"},delayMs:{type:Number,attribute:"delay"},soundUrl:{type:String,attribute:"sound"},content:{type:Object},darkMode:{type:Boolean,attribute:"dark-mode"}};#e=new ri(this,{getDelayMs:()=>this.delayMs,playPopupSound:()=>{this.soundUrl&&new Audio(this.soundUrl).play().then(()=>{}).catch(e=>{console.error("Error playing audio:",e,{})})},setPersistedState:e=>{j().popupState=e},getPersistedState:()=>j().popupState});#t=new ti(this,this.#e);constructor(){super(),this.positionClasses="",this.delayMs=0,this.soundUrl="",this.content={desktop:{text:"",color:""},mobile:{text:"",button:"",color:"",poweredBy:!0}},this.darkMode=!1}render(){let e=this.#e.showing?"visible opacity-100 translate-y-0":"invisible opacity-0 translate-y-3",r=this.content;return u`
|
|
3026
1586
|
<!-- mobile shadow backdrop -->
|
|
3027
1587
|
<div @click="${this.#r}" class="${e} fixed inset-0 z-[2147483647] bg-black/50 transition-[opacity,visibility] sm:hidden"></div>
|
|
3028
1588
|
|
|
@@ -3033,7 +1593,7 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
3033
1593
|
button="${r.mobile.button}"
|
|
3034
1594
|
color="${r.mobile.color}"
|
|
3035
1595
|
?dark-mode="${this.darkMode}"
|
|
3036
|
-
@mw:click="${this.#
|
|
1596
|
+
@mw:click="${this.#n}"
|
|
3037
1597
|
@mw:close="${this.#r}">
|
|
3038
1598
|
${r.mobile.poweredBy?u`<mw-powered-by class="block p-4" slot="footer" ?dark-mode="${this.darkMode}"></mw-powered-by>`:null}
|
|
3039
1599
|
</mw-popup-mobile>
|
|
@@ -3041,9 +1601,9 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
3041
1601
|
|
|
3042
1602
|
<!-- desktop -->
|
|
3043
1603
|
<div class="${e} ${this.positionClasses} fixed z-[2147483647] transition-[opacity,translate,visibility] max-sm:hidden">
|
|
3044
|
-
<mw-popup-desktop color="${r.desktop.color}" text="${r.desktop.text}" ?dark-mode="${this.darkMode}" @mw:click="${this.#
|
|
1604
|
+
<mw-popup-desktop color="${r.desktop.color}" text="${r.desktop.text}" ?dark-mode="${this.darkMode}" @mw:click="${this.#n}" @mw:close="${this.#r}"></mw-popup-desktop>
|
|
3045
1605
|
</div>
|
|
3046
|
-
`}#r(){this.#e.onCloseClick()}#
|
|
1606
|
+
`}#r(){this.#e.onCloseClick()}#n(){this.dispatchEvent(new t.ClickEvent),this.#e.onContentClick()}hide(){this.#e.hide()}};Gt.ClickEvent=class extends CustomEvent{static type="mw:click";constructor(e={}){super(Gt.ClickEvent.type,{...e})}};customElements.get("mw-popup")||customElements.define("mw-popup",Gt);var is=class extends w(v){static properties={color:{type:String,attribute:"color"},position:{type:String,attribute:"position"}};constructor(){super(),this.color="sky-500",this.position="top-right"}render=()=>u`
|
|
3047
1607
|
<span class="relative inline-flex">
|
|
3048
1608
|
<slot></slot>
|
|
3049
1609
|
<span class="${this.#e} pointer-events-none absolute z-10 flex h-3 w-3">
|
|
@@ -3051,7 +1611,7 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
3051
1611
|
<span class="bg-${this.color} relative inline-flex h-3 w-3 rounded-full"></span>
|
|
3052
1612
|
</span>
|
|
3053
1613
|
</span>
|
|
3054
|
-
`;get#e(){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}`)}}};customElements.get("mw-pulse-dot")||customElements.define("mw-pulse-dot",is);var ns=class extends
|
|
1614
|
+
`;get#e(){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}`)}}};customElements.get("mw-pulse-dot")||customElements.define("mw-pulse-dot",is);var ns=class extends w(v){static properties={positionClasses:{type:String,attribute:"position"},text:{type:String}};constructor(){super(),this.positionClasses="",this.text="Try it out"}render=()=>u`
|
|
3055
1615
|
<div class="${this.positionClasses} fixed right-6 bottom-24 z-10 flex animate-bounce flex-col items-center justify-center font-sans text-base">
|
|
3056
1616
|
<p class="mb-2 -translate-x-4 -rotate-12 transform text-lg leading-normal font-bold text-gray-800">${this.text}</p>
|
|
3057
1617
|
|
|
@@ -3064,28 +1624,22 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
3064
1624
|
stroke-linecap="round"></path>
|
|
3065
1625
|
</svg>
|
|
3066
1626
|
</div>
|
|
3067
|
-
`};customElements.get("mw-try-it-out")||customElements.define("mw-try-it-out",ns);function
|
|
1627
|
+
`};customElements.get("mw-try-it-out")||customElements.define("mw-try-it-out",ns);function he(){return window.molinSettings&&typeof window.molinSettings=="object"?window.molinSettings:null}function Ge(t,e){try{window.dispatchEvent(new CustomEvent(t,{detail:e}))}catch(r){console.error(r)}try{let r=he();if(!r)return;switch(t){case"molin:ready":r.onReady?.(e);break;case"molin:chat-open":r.onChatOpen?.(e);break;case"molin:chat-close":r.onChatClose?.(e);break;case"molin:message-sent":r.onMessageSent?.(e);break;case"molin:link-click":r.onLinkClick?.(e);break}}catch(r){console.error(r)}}var ii=class{#e;#t;#r;#n;isLoading=!1;data=void 0;constructor(e,r,i){this.#e=e,this.#t=r,this.#r=i,e.addController(this)}fetch(){if(this.isLoading)return;this.#n?.abort();let e=new AbortController;this.#n=e,this.isLoading=!0,this.data=void 0,this.#e.requestUpdate(),(async()=>{let r=this.#i();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 this.#r?.transform=="function"?await this.#r.transform(r):r,this.#e.requestUpdate()}).catch(r=>{this.#r?.onError?.(r),this.isLoading=!1,this.data=void 0,this.#e.requestUpdate()}).finally(()=>{e.abort()})}#i(){let e=this.#t;if(typeof e=="function"&&(e=e()),!e)throw new Error("missing request");return new Request(e)}hostConnected(){this.isLoading||this.#r?.fetchWhenConnected&&this.fetch()}hostDisconnected(){this.#n?.abort(),this.#n=void 0}};var ss=class{#e;#t;#r;#n;get data(){return this.#n||this.#r?.data}constructor(e,r){this.#e=e,this.#t=r,e.addController(this)}hostConnected(){if(this.#r||this.#n)return;let e=ol();e&&e.widgetId===this.#e.widgetId?this.#n=e.config:this.#r=new ii(this.#e,()=>{if(this.#e.cdn&&this.#e.widgetId)return`${this.#e.cdn}/config?w=${this.#e.widgetId}`;throw new Error("missing cdn or widgetId")},{fetchWhenConnected:!0,transform:async r=>{let i=await r.json();return i&&!e&&window.__INIT_MOLIN_SHOP_AI({cdn:this.#e.cdn,widgetId:this.#e.widgetId,config:i}),i},onError:this.#t?.onError})}},yt=(t,e)=>new ss(t,{onError:e?.onError||console.error,...e});var ni=class{#e=[];#t;#r=!1;#n;#i;#o;#s;#a;constructor({send:e,sendBeacon:r,maxBufferSize:i=10,flushIntervalMs:n=5*1e3,sendTimeoutMs:s=10*1e3}){this.#n=e,this.#i=r,this.#o=i,this.#s=n,this.#a=s}async add(e){if(this.#e.push(e),this.#e.length>=this.#o)return this.flush();this.#l()}async flush(){if(this.#r||this.#e.length===0)return;this.#r=!0,clearTimeout(this.#t),this.#t=void 0;let e=[...this.#e];this.#e=[];let r=new AbortController,i=setTimeout(()=>r.abort(),this.#a);try{await this.#n(e,r.signal)}catch(n){console.error("sending events failed",n),this.#e=[...e,...this.#e]}finally{clearTimeout(i),this.#r=!1,this.#l()}}async flushBeacon(){if(this.#e.length>0)try{this.#i(this.#e)}catch(e){console.error("Failed to send final events:",e)}}#l(){this.#e.length!==0&&(this.#t||(this.#t=setTimeout(()=>{this.flush().catch(console.error)},this.#s)))}};function al(t){t?.body?.cancel().catch(console.warn)}function cl(){return new URL("/widgets/data/collect",ei())}var ll;function gd(){return ll??=new ni({send:async(t,e)=>yd(t,{signal:e}),sendBeacon:t=>navigator.sendBeacon(cl(),ul(t))}),ll}function J(t,e,{flush:r=!1,now:i=new Date,buffer:n=gd(),storage:s=j(),window:o=globalThis}={}){if(typeof t!="string")throw new TypeError("ClickHouse: event name must be a string");if(!e||typeof e!="object")throw new TypeError("ClickHouse: properties must be an object");try{let a=bd(t,e,{storage:s,window:o,now:i});n.add(a).catch(console.error),r&&n.flush().catch(console.error)}catch(a){console.error("Failed to send event:",a)}}function ul(t){let e=new FormData;return e.set("events",JSON.stringify(t)),e}async function yd(t,{signal:e}={}){let r=await fetch(cl(),{method:"POST",body:ul(t),signal:e});if(al(r),!r.ok)throw new Error(`HTTP error! status: ${r.status}`)}function bd(t,e,{storage:r,window:i,now:n}){return{event:t,widget_id:e.widgetId,properties:Object.assign({},e,wd({window:i,now:n})),distinct_id:vd({storage:r,window:i}),timestamp:n.toISOString()}}function vd({storage:t,window:e}){let r=t.distinctID;if(r&&typeof r=="string")return r;let i=e.crypto.randomUUID();try{t.distinctID=i}catch(n){console.error("Failed to store distinct_id:",n)}return i}function wd({window:t,now:e}){return{referrer:t.document.referrer,userAgent:t.navigator.userAgent,language:t.navigator.language,screenWidth:t.innerWidth,screenHeight:t.innerHeight,timestamp:e.toISOString(),timezoneOffset:e.getTimezoneOffset(),doNotTrack:t.navigator.doNotTrack??void 0}}function si(t,e=globalThis){try{(!("dataLayer"in e)||!Array.isArray(e.dataLayer))&&(e.dataLayer=[]),t(e.dataLayer)}catch(r){console.error(r)}}function Xt(t,e){si(r=>{r.push(t)},e)}function dl(t,e){t.items.length&&si(r=>{r.push({ecommerce:null}),r.push({event:"view_item_list",ecommerce:t})},e)}function pl(t,e){si(r=>{r.push({ecommerce:null}),r.push({event:"select_item",ecommerce:t})},e)}function hl(t,e){si(r=>{r.push({ecommerce:null}),r.push({event:"view_item",ecommerce:t})},e)}function os(t,e=globalThis){try{"clarity"in e&&typeof e.clarity=="function"&&t(e.clarity)}catch(r){console.error(r)}}var fl=!1;function Jt(t,e){fl||os(r=>{r("set","molin_widget_id",t),fl=!0},e)}function Yt(t,e){os(r=>{r("event",t)},e)}function ml(t,e){os(r=>{r("upgrade",t)},e)}function oi(){return{onError:t=>{console.error("Molin","ERROR",t.widgetId,t.error),J("ShopAssistant: error",{...t},{flush:!0}),alert(t.error)},onNewMessageStartedStreaming:t=>{J("ShopAssistant: user received bot message (streaming started)",t)},onMessageEndedStreaming:t=>{J("ShopAssistant: user received bot message (streaming ended)",t),t.products.length&&dl({item_list_id:"molin_ai_chat",item_list_name:"Molin AI chat",items:t.products.map((e,r)=>({item_name:e.name,price:0,index:r,item_list_id:"molin_ai_chat",item_list_name:"Molin AI chat",google_business_vertical:"retail"}))})},onUserCanceledStreaming:t=>{J("ShopAssistant: user canceled streaming",t)},onUserClickedLink:t=>{if(J("ShopAssistant: user clicked link",t),Xt({event:"molin_link_click",widget_id:t.widgetId,url:t.url}),t.product){let e={item_name:t.product.name,price:0,index:t.product.rank,item_list_id:"molin_ai_chat",item_list_name:"Molin AI chat",google_business_vertical:"retail"};pl({item_list_id:"molin_ai_chat",item_list_name:"Molin AI chat",items:[e]}),hl({items:[e]})}Jt(t.widgetId),Yt("molin_link_click"),Ge("molin:link-click",{widgetId:t.widgetId,url:t.url})},onUserSentInput:t=>{J("ShopAssistant: user sent input",t),Xt({event:"molin_message_sent",widget_id:t.widgetId}),Jt(t.widgetId),Yt("molin_message_sent"),ml("molin_message_sent"),Ge("molin:message-sent",{widgetId:t.widgetId})},onWaitGameQuestionAnswered:t=>{J("ShopAssistant: wait game question answered",t)},onWaitGameCompleted:t=>{J("ShopAssistant: wait game completed",t)},onWaitGameGuessValidated:t=>{J("ShopAssistant: wait game guess validated",t)}}}function gl(){return{onPageview:t=>{J("ShopAssistant: pageview",t)},onChatOpen:({widgetId:t,source:e})=>{J("ShopAssistant: user toggled window",{widgetId:t,source:e,state:"open"}),Xt({event:"molin_chat_open",widget_id:t}),Jt(t),Yt("molin_chat_open"),Ge("molin:chat-open",{widgetId:t})},onChatClose:({widgetId:t,source:e})=>{J("ShopAssistant: user toggled window",{widgetId:t,source:e,state:"close"}),Xt({event:"molin_chat_close",widget_id:t}),Jt(t),Yt("molin_chat_close"),Ge("molin:chat-close",{widgetId:t})},onShowLauncher:({widgetId:t,source:e})=>{J("ShopAssistant: called show launcher",{widgetId:t,source:e})},onHideLauncher:({widgetId:t,source:e})=>{J("ShopAssistant: called hide launcher",{widgetId:t,source:e})}}}var Xe=class t extends w(v){static styles=O`
|
|
3068
1628
|
:host {
|
|
3069
1629
|
all: initial; /* reset all properties that can pierce the shadow DOM */
|
|
3070
1630
|
}
|
|
3071
|
-
`;static 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}};#e;get config(){return this.#t||this.#e.data}#t;#r=
|
|
3072
|
-
<mw-context-widget
|
|
3073
|
-
.widgetId="${this.widgetId}"
|
|
3074
|
-
.config="${this.config}"
|
|
3075
|
-
.callbacks="${this.#r}"
|
|
3076
|
-
.xUserData="${this.xUserData}"
|
|
3077
|
-
.xCustomInstructions="${this.xCustomInstructions}"
|
|
3078
|
-
autoConnect>
|
|
1631
|
+
`;static 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}};#e;get config(){return this.#t||this.#e.data}#t;#r=oi();constructor(){super(),this.cdn="https://widget.molin.ai",this.widgetId="",this.showClose=!1,this.xUserData=he()?.userData,this.xCustomInstructions=he()?.customInstructions,this.#e=yt(this)}render(){return this.config?u`
|
|
1632
|
+
<mw-context-widget .widgetId="${this.widgetId}" .config="${this.config}" .callbacks="${this.#r}" .xUserData="${this.xUserData}" .xCustomInstructions="${this.xCustomInstructions}">
|
|
3079
1633
|
<!-- embed our chat component forwarding props -->
|
|
3080
|
-
<mw-chat ?show-close="${this.showClose}" @mw:close-click="${this.#
|
|
1634
|
+
<mw-chat ?show-close="${this.showClose}" @mw:close-click="${this.#n}">
|
|
3081
1635
|
<slot name="banner" slot="banner"></slot>
|
|
3082
1636
|
</mw-chat>
|
|
3083
1637
|
</mw-context-widget>
|
|
3084
|
-
`:null}#
|
|
1638
|
+
`:null}#n(){this.dispatchEvent(new t.CloseClickEvent)}injectConfig(e){this.#t=e,this.requestUpdate()}reloadConfig(){this.#i?.reloadConfig()}reset(){this.xUserData={},this.xCustomInstructions="",this.#i?.reset(),this.requestUpdate()}get#i(){return this.renderRoot.querySelector("mw-chat")}get conversationId(){return this.#i?.conversationId??""}get messages(){return this.#i?.messages??[]}};Xe.CloseClickEvent=class extends CustomEvent{static type="mw:close-click";constructor(e={}){super(Xe.CloseClickEvent.type,{...e})}};customElements.get("molin-shop-ai-chat")||customElements.define("molin-shop-ai-chat",Xe);var as=class{#e;#t;get hidden(){return this.#e}get version(){return this.#t}constructor({hidden:e,version:r}){this.#e=e,this.#t=r}setHidden(e){this.#e=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 we&&e.showLauncher()}hideLauncher(){for(let e of document.querySelectorAll("molin-shop-ai"))e instanceof we&&e.hideLauncher()}openChat(e){let{message:r,autoSend:i}=e||{};for(let n of document.querySelectorAll("molin-shop-ai"))n instanceof we&&n.openChat({message:r,autoSend:i})}closeChat(){for(let e of document.querySelectorAll("molin-shop-ai"))e instanceof we&&e.closeChat()}reset(){j().resetAll();for(let e of document.querySelectorAll("molin-shop-ai"))e instanceof we&&e.reset();for(let e of document.querySelectorAll("molin-shop-ai-chat"))e instanceof Xe&&e.reset()}};function yl({hidden:t,version:e}){let r=new as({hidden:t,version:e});return window.Molin=r,r}function ai(){let t=window.Molin;if(!t)throw new Error("window.Molin global not initialized");return t}window.__INIT_MOLIN_SHOP_AI=function(e){kd(e);let r=he(),i=typeof r?.hidden=="boolean"?r.hidden:window.self!==window.top;if(yl({hidden:i,version:e.version}),e.auto){let n=document.createElement("molin-shop-ai");n.setAttribute("cdn",e.cdn),n.setAttribute("widget",e.widgetId),document.body.appendChild(n)}Ge("molin:ready",{widgetId:e.widgetId})};function kd(t){window.__INIT_MOLIN_SHOP_AI_OPTIONS=t}function ol(){return window.__INIT_MOLIN_SHOP_AI_OPTIONS}var ls=class extends w(v){static styles=O`
|
|
3085
1639
|
:host {
|
|
3086
1640
|
all: initial; /* reset all properties that can pierce the shadow DOM */
|
|
3087
1641
|
}
|
|
3088
|
-
`;static properties={cdn:{type:String},widgetId:{type:String,attribute:"widget"},state:{type:String}};constructor(){super(),this.cdn="https://widget.molin.ai",this.widgetId="",this.state="open"}#e=
|
|
1642
|
+
`;static properties={cdn:{type:String},widgetId:{type:String,attribute:"widget"},state:{type:String}};constructor(){super(),this.cdn="https://widget.molin.ai",this.widgetId="",this.state="open"}#e=yt(this);get config(){return this.#e.data}render(){return this.config?u`
|
|
3089
1643
|
<!-- embed our bubble component forwarding props -->
|
|
3090
1644
|
<!-- these props are never internally updated by mw-bubble so we pass them down only one way -->
|
|
3091
1645
|
<mw-bubble
|
|
@@ -3095,67 +1649,70 @@ var dl=Object.create;var us=Object.defineProperty;var hl=Object.getOwnPropertyDe
|
|
|
3095
1649
|
.src="${this.config?.bubble?.bubbleUrl}"
|
|
3096
1650
|
width="${N(this.config?.bubble?.size?.width)}"
|
|
3097
1651
|
height="${N(this.config?.bubble?.size?.height)}"></mw-bubble>
|
|
3098
|
-
`:null}};customElements.get("molin-shop-ai-launcher")||customElements.define("molin-shop-ai-launcher",
|
|
1652
|
+
`:null}};customElements.get("molin-shop-ai-launcher")||customElements.define("molin-shop-ai-launcher",ls);var $1="navigator"in globalThis&&/Mobi|Android|iPhone/i.test(navigator.userAgent),E1="navigator"in globalThis&&"share"in navigator,_d=Object.freeze({sm:640,md:768,lg:1024,xl:1280,"2xl":1536});function Cd(t){if(typeof window>"u")return!1;let e=_d[t];return typeof e!="number"?(console.warn(`Invalid breakpoint: ${t}`),!1):window.matchMedia(`(min-width: ${e}px)`).matches}function cs(){return Cd("sm")}var li=class{#e;#t;#r;#n;#i=!1;constructor(e,r,i,n=window.history){this.#e=e,this.#t=r,this.#r=i,this.#n=n,e.addController(this)}hostConnected(){this.#o();let e=this.#n.pushState;this.#n.pushState=(...r)=>{if(e.call(this.#n,...r),!this.#i)try{let i=new URL(r[2],window.location.origin);this.#t.test(i.pathname)&&this.#r.navigated()}catch{}}}hostDisconnected(){this.#i=!0}#o=()=>{this.#t.test(window.location.pathname)&&this.#r.navigated()}};var us=class{#e;#t;constructor(e,r){this.#t=r,e.addController(this)}request(){this.cancel(),this.#e=requestAnimationFrame(this.#t)}cancel(){this.#e!==void 0&&(cancelAnimationFrame(this.#e),this.#e=void 0)}get pending(){return this.#e!==void 0}hostDisconnected(){this.cancel()}};function bl(t,e){return new us(t,e)}function vl({minMs:t,maxMs:e}){return Math.random()*(e-t)+t}function ci(t,e=""){return Object.entries(t).filter(([r,i])=>i).map(([r,i])=>`${e}${r}-[${i}]`).join(" ")}function wl(t,e={}){return[ci(t),ci(e,"max-sm:")].join(" ")}function xl(t){return ci(t)}function kl(t){return Object.entries(t).filter(([e,r])=>r).filter(([e])=>e==="left"||e==="right").map(([e,r])=>{let i=`sm:${e}-[${r}]`;return e==="left"&&(i+=" sm:right-auto"),e==="right"&&(i+=" sm:left-auto"),i}).join(" ")}function _l(t){let e=ci(t),i=`sm:bottom-[${t.bottom?`calc(${t.bottom}+72px)`:"72px"}]`;return[e,i].filter(Boolean).join(" ")}var ds=class{#e=0;#t;#r;#n;constructor(e,r,{threshold:i=5}={}){this.#t=r,this.#r=i,e.addController(this)}hostConnected(){this.#e=window.scrollY,window.removeEventListener("scroll",this.#i),window.addEventListener("scroll",this.#i,{passive:!0})}hostDisconnected(){window.removeEventListener("scroll",this.#i),this.#n!==void 0&&(cancelAnimationFrame(this.#n),this.#n=void 0)}#i=()=>{this.#n===void 0&&(this.#n=requestAnimationFrame(this.#o))};#o=()=>{this.#n=void 0;let e=window.scrollY,r=e-this.#e;if(Math.abs(r)>=this.#r){let i=r>0?"down":"up";this.#t({scrollY:e,direction:i,deltaY:Math.abs(r)}),this.#e=e}}};function Cl(t,e,r){return new ds(t,e,r)}var we=class extends w(v){static styles=O`
|
|
3099
1653
|
:host {
|
|
3100
1654
|
all: initial; /* reset all properties that can pierce the shadow DOM */
|
|
3101
1655
|
}
|
|
3102
|
-
`;static properties={cdn:{type:String},widgetId:{type:String,attribute:"widget"},xUserData:{type:Object,attribute:!1},xCustomInstructions:{type:String,attribute:!1},_floatingInputVisible:{type:Boolean,state:!0},_dialogShown:{type:Boolean,state:!0}};constructor(){super(),this.cdn="https://widget.molin.ai",this.widgetId="",this.xUserData
|
|
3103
|
-
<mw-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
.
|
|
3108
|
-
.
|
|
3109
|
-
.
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
@click="${this.#f}"
|
|
3113
|
-
state="${this._dialogShown?"close":"open"}"
|
|
3114
|
-
.color="${this.config?.bubble?.color||this.config?.color}"
|
|
3115
|
-
.bubbleStyle="${this.config?.bubble?.style}"
|
|
3116
|
-
.src="${this.config?.bubble?.bubbleUrl}"
|
|
3117
|
-
width="${N(this.config?.bubble?.size?.width)}"
|
|
3118
|
-
height="${N(this.config?.bubble?.size?.height)}"></mw-bubble>
|
|
3119
|
-
|
|
3120
|
-
<!-- only load the component if enabled on any platform -->
|
|
3121
|
-
${this.isPopupEnabled?u`
|
|
3122
|
-
<mw-popup
|
|
3123
|
-
position="${n}"
|
|
3124
|
-
delay="${this.config.popup?.delayMs||nl({minMs:2e3,maxMs:5e3})}"
|
|
3125
|
-
sound="${this.config.popup?.muteSounds?"":this.config.popup?.soundUrl||""}"
|
|
3126
|
-
?dark-mode="${this.config?.darkMode}"
|
|
3127
|
-
.content="${{desktop:{text:this.config.popup?.text||"Hello there. How can we help?",color:this.config?.bubble?.color||this.config.color},mobile:{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}}}"
|
|
3128
|
-
@mw:click="${this.#p}"></mw-popup>
|
|
3129
|
-
`:null}
|
|
1656
|
+
`;static properties={cdn:{type:String},widgetId:{type:String,attribute:"widget"},xUserData:{type:Object,attribute:!1},xCustomInstructions:{type:String,attribute:!1},_floatingInputVisible:{type:Boolean,state:!0},_dialogShown:{type:Boolean,state:!0},_expanded:{type:Boolean,state:!0}};constructor(){super(),this.cdn="https://widget.molin.ai",this.widgetId="",this.xUserData=he()?.userData,this.xCustomInstructions=he()?.customInstructions,this._floatingInputVisible=!0,this._dialogShown=!1,this._expanded=!1}#e=yt(this);#t=Cl(this,e=>{this.#d&&!this._dialogShown&&(e.direction==="down"?this._floatingInputVisible=!1:e.direction==="up"&&(this._floatingInputVisible=!0),this.requestUpdate())},{threshold:20});get config(){return this.#r||this.#e.data}#r;#n=new li(this,/.*/i,{navigated:()=>{if(this.requestUpdate(),!this.widgetId){console.warn("No widgetId set, cannot track page view");return}let e=this.#m?.conversationId,r=rt.restore(this.widgetId)?.conversationId,i=e||r;i&&this.#a.onPageview({widgetId:this.widgetId,conversationId:i,url:document.location.href,title:document.title,hidden:this.config?this.config.hidden||!1:void 0,shouldHideForCurrentUrl:this.#u})}});#i=!1;#o=bl(this,()=>{this._dialogShown=!0});#s=oi();#a=gl();#l=Ee(this);get#c(){return typeof this.config?.bubble?.zIndex=="number"?this.config.bubble.zIndex:2147483647}get#d(){return this.config?.floatingAskAI?.enabled||!0}get#u(){if(!this.config?.hideUrls||!Array.isArray(this.config.hideUrls))return!1;let e=window.location.href,r=window.location.pathname;return this.config.hideUrls.some(i=>{if(!i||typeof i!="string")return!1;let n=i.endsWith("*"),s=n?i.slice(0,-1):i;return i.startsWith("http")?n?e.startsWith(s):e===s:n?r.startsWith(s):r===s})}render(){if(!this.config)return null;let e=wl(this.config.bubble.position,this.config.bubble.mobilePosition),r=xl(this.config.bubble.position),i=kl(this.config.bubble.position),n=_l(this.config.bubble.position);return this.config.hidden||ai().hidden||this.#u?null:u`
|
|
1657
|
+
<mw-bubble
|
|
1658
|
+
class="${e} ${this._dialogShown?"opacity-0":"opacity-100"} fixed z-[${this.#c}] transition-opacity"
|
|
1659
|
+
@click="${this.#w}"
|
|
1660
|
+
state="${this._dialogShown?"close":"open"}"
|
|
1661
|
+
.color="${this.config?.bubble?.color||this.config?.color}"
|
|
1662
|
+
.bubbleStyle="${this.config?.bubble?.style}"
|
|
1663
|
+
.src="${this.config?.bubble?.bubbleUrl}"
|
|
1664
|
+
width="${N(this.config?.bubble?.size?.width)}"
|
|
1665
|
+
height="${N(this.config?.bubble?.size?.height)}"></mw-bubble>
|
|
3130
1666
|
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
1667
|
+
<!-- only load the component if enabled on any platform -->
|
|
1668
|
+
${this.isPopupEnabled?u`
|
|
1669
|
+
<mw-popup
|
|
1670
|
+
position="${n}"
|
|
1671
|
+
delay="${this.config.popup?.delayMs||vl({minMs:2e3,maxMs:5e3})}"
|
|
1672
|
+
sound="${this.config.popup?.muteSounds?"":this.config.popup?.soundUrl||""}"
|
|
1673
|
+
?dark-mode="${this.config?.darkMode}"
|
|
1674
|
+
.content="${{desktop:{text:this.config.popup?.text||"Hello there. How can we help?",color:this.config?.bubble?.color||this.config.color},mobile:{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}}}"
|
|
1675
|
+
@mw:click="${this.#_}"></mw-popup>
|
|
1676
|
+
`:null}
|
|
3138
1677
|
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
1678
|
+
<!-- show "Try it out" if enabled (even if the chat window is showing) -->
|
|
1679
|
+
${this.config?.tryItOut?.mobileEnabled||this.config?.tryItOut?.desktopEnabled?u`
|
|
1680
|
+
<mw-try-it-out
|
|
1681
|
+
class="${this.config?.tryItOut?.mobileEnabled?"visible":"invisible"} ${this.config?.tryItOut?.desktopEnabled?"sm:visible":"sm:invisible"}"
|
|
1682
|
+
position="${r}"
|
|
1683
|
+
text="${this.config.tryItOut?.text||""}"></mw-try-it-out>
|
|
1684
|
+
`:null}
|
|
3146
1685
|
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
1686
|
+
<!-- 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. -->
|
|
1687
|
+
${this.#i?u`
|
|
1688
|
+
<div
|
|
1689
|
+
class="${this._dialogShown?"visible opacity-100 translate-y-0":"invisible opacity-0 translate-y-3"} ${i} ${this.config?.darkMode?"bg-[#14161A]":"bg-white"} ${this._expanded?"sm:w-[700px] sm:max-w-[700px] sm:min-w-[300px]":"sm:w-[calc(100dvh*0.50)] sm:max-w-[400px] sm:min-w-[300px] 2xl:max-w-[420px]"} fixed inset-0 z-[2147483647] font-sans text-[16px] leading-normal text-gray-800 shadow-2xl transition-all duration-300 ease-in-out sm:top-auto sm:bottom-6 sm:h-[92%] sm:max-h-[800px] sm:rounded-[36px]">
|
|
1690
|
+
<molin-shop-ai-chat
|
|
1691
|
+
widget="${this.widgetId}"
|
|
1692
|
+
cdn="${this.cdn}"
|
|
1693
|
+
?show-close="${!0}"
|
|
1694
|
+
?show-expand="${!0}"
|
|
1695
|
+
?expanded="${this._expanded}"
|
|
1696
|
+
.xUserData="${this.xUserData}"
|
|
1697
|
+
.xCustomInstructions="${this.xCustomInstructions}"
|
|
1698
|
+
@mw:expand-click="${this.#v}"
|
|
1699
|
+
@mw:close-click="${this.#C}">
|
|
1700
|
+
<slot name="banner" slot="banner"></slot>
|
|
1701
|
+
</molin-shop-ai-chat>
|
|
1702
|
+
</div>
|
|
1703
|
+
`:null}
|
|
1704
|
+
|
|
1705
|
+
<!-- floating input only visible when enabled, in center, on desktop only -->
|
|
1706
|
+
${this.config?.floatingAskAI?.enabled&&this.#d?u`
|
|
1707
|
+
<mw-floating-ask-ai
|
|
1708
|
+
?dark="${this.config?.floatingAskAI?.darkMode}"
|
|
1709
|
+
.color="${this.config.color||this.config?.bubble?.color}"
|
|
1710
|
+
placeholder="${N(this.config?.floatingAskAI?.placeholder)}"
|
|
1711
|
+
class="${!this._dialogShown&&this._floatingInputVisible?"opacity-100 translate-y-0":"opacity-0 translate-y-full"} fixed left-1/2 z-[${this.#c}] hidden -translate-x-1/2 transition-all duration-300 ease-in-out max-md:hidden sm:block"
|
|
1712
|
+
style="bottom: ${this.config.bubble.position.bottom||"1.5rem"}"
|
|
1713
|
+
@mw-floating-ask-ai:submit="${this.#x}"></mw-floating-ask-ai>
|
|
1714
|
+
`:null}
|
|
1715
|
+
`}#p({source:e}){this.#i?this._dialogShown=!0:(this.#i=!0,this.requestUpdate(),this.updateComplete.then(()=>{this.#o.request()})),j().widgetState={isOpen:!0},this.#a.onChatOpen({widgetId:this.widgetId,source:e})}#v(){this._expanded=!this._expanded,this.requestUpdate()}#f({source:e}){this._dialogShown=!1,this._expanded=!1,this._floatingInputVisible=!0,j().widgetState={isOpen:!1},this.#a.onChatClose({widgetId:this.widgetId,source:e})}get isPopupEnabled(){return cs()?!!this.config?.popup?.desktopEnabled:!!this.config?.popup?.mobileEnabled}updated(){this._dialogShown&&this.#g?.hide(),this._dialogShown&&this.#l.setTimeout(()=>this.#m?.focusInput(),0)}firstUpdated(){cs()&&j().widgetState?.isOpen&&!this._dialogShown&&this.#p({source:"page-navigation-restore"})}get#g(){return this.renderRoot.querySelector("mw-popup")}get#m(){return this.renderRoot.querySelector("molin-shop-ai-chat")?.renderRoot.querySelector("mw-chat")??null}#_(){this.#p({source:"popup-click"})}#w(){this._dialogShown?this.#f({source:"bubble-toggle"}):this.#p({source:"bubble-toggle"}),this.#g?.hide()}#C(){this.#f({source:"top-right-close-button"})}#x=e=>{this.#p({source:"ask-ai"});let r=e.detail.text;this.#l.setTimeout(()=>{this.#h(r),this.#b(r)},100),this.#s.onUserSentInput({widgetId:this.widgetId,text:r,example:!1,conversationId:this.#m?.conversationId||""})};#y=vn({interval:200},({message:e,autoSend:r=!1}={})=>{if(!e)return;this.#h(e);let i=this.#m?.isLiveMode;i||this.reset(),r&&!i&&this.#b(e)});openChat(e){let{message:r,autoSend:i}=e||{};if(this._dialogShown){this.#y({message:r,autoSend:i});return}this.#p({source:"programmatic-method"}),this.#g?.hide(),this.#l.setTimeout(()=>{this.#y({message:r,autoSend:i})},100)}closeChat(){this._dialogShown&&(this.#f({source:"programmatic-method"}),this.#g?.hide())}showLauncher(){ai().setHidden(!1),this.requestUpdate(),this.#a.onShowLauncher({widgetId:this.widgetId,source:"programmatic-method"})}hideLauncher(){ai().setHidden(!0),this.requestUpdate(),this.#a.onHideLauncher({widgetId:this.widgetId,source:"programmatic-method"})}injectConfig(e){this.#r=e,this.requestUpdate()}reset(){this.xUserData={},this.xCustomInstructions="",this.#m?.reset(),this.requestUpdate()}#b(e){let r=this.#m;if(!r){console.warn("Chat element not found, cannot send message");return}if(!r.sendMessage){console.warn("Chat element does not have sendMessage method, cannot send message");return}r.sendMessage(e)}#h(e){let r=this.#m;if(!r){console.warn("Chat element not found, cannot set input value");return}if(!r.setInputValue){console.warn("Chat element does not have setInputValue method, cannot set input value");return}r.setInputValue(e)}};customElements.get("molin-shop-ai")||customElements.define("molin-shop-ai",we);export{we as MolinShopAI};
|
|
3159
1716
|
/*! Bundled license information:
|
|
3160
1717
|
|
|
3161
1718
|
@lit/reactive-element/css-tag.js:
|