@zooid/web 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,63 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/json-editor-C4yUpXMd.js","assets/json-editor-DfH04Znl.css"])))=>i.map(i=>d[i]);
2
- var qa=Object.defineProperty;var us=e=>{throw TypeError(e)};var Wa=(e,t,r)=>t in e?qa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var te=(e,t,r)=>Wa(e,typeof t!="symbol"?t+"":t,r),Fn=(e,t,r)=>t.has(e)||us("Cannot "+r);var b=(e,t,r)=>(Fn(e,t,"read from private field"),r?r.call(e):t.get(e)),oe=(e,t,r)=>t.has(e)?us("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),X=(e,t,r,n)=>(Fn(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),je=(e,t,r)=>(Fn(e,t,"access private method"),r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(o){if(o.ep)return;o.ep=!0;const s=r(o);fetch(o.href,s)}})();const Ua="5";var Js;typeof window<"u"&&((Js=window.__svelte??(window.__svelte={})).v??(Js.v=new Set)).add(Ua);const Za=1,Ha=2,ei=4,Ka=8,Ya=16,Ja=1,Qa=2,ti=4,Xa=8,el=16,ri=1,tl=2,_e=Symbol(),ni="http://www.w3.org/1999/xhtml",rl="@attach",Xn=!1;var zo=Array.isArray,nl=Array.prototype.indexOf,Ar=Array.prototype.includes,On=Array.from,ol=Object.defineProperty,jt=Object.getOwnPropertyDescriptor,oi=Object.getOwnPropertyDescriptors,sl=Object.prototype,il=Array.prototype,Po=Object.getPrototypeOf,fs=Object.isExtensible;function Nr(e){return typeof e=="function"}const Tn=()=>{};function dp(e){return e()}function al(e){for(var t=0;t<e.length;t++)e[t]()}function si(){var e,t,r=new Promise((n,o)=>{e=n,t=o});return{promise:r,resolve:e,reject:t}}const Te=2,Qr=4,sn=8,Io=1<<24,It=16,nt=32,dr=64,eo=128,Ue=512,xe=1024,Re=2048,He=4096,qe=8192,zt=16384,an=32768,Vt=65536,ds=1<<17,ii=1<<18,Rr=1<<19,ai=1<<20,Ct=1<<25,lr=65536,to=1<<21,Mo=1<<22,Gt=1<<23,ht=Symbol("$state"),li=Symbol("legacy props"),ll=Symbol(""),Jt=new class extends Error{constructor(){super(...arguments);te(this,"name","StaleReactionError");te(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};var Qs;const $o=!!((Qs=globalThis.document)!=null&&Qs.contentType)&&globalThis.document.contentType.includes("xml");function cl(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function ul(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function fl(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function dl(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function pl(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function hl(e){throw new Error("https://svelte.dev/e/effect_orphan")}function gl(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function hp(e){throw new Error("https://svelte.dev/e/lifecycle_legacy_only")}function vl(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function ml(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function bl(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function wl(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function xl(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function yl(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function kl(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function ci(e){return e===this.v}function _l(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function ui(e){return!_l(e,this.v)}let ln=!1,Sl=!1;function gp(){ln=!0}let me=null;function Cr(e){me=e}function vp(e){return fi().get(e)}function mp(e,t){return fi().set(e,t),t}function ot(e,t=!1,r){me={p:me,i:!1,c:null,e:null,s:e,x:null,l:ln&&!t?{s:null,u:null,$:[]}:null}}function st(e){var t=me,r=t.e;if(r!==null){t.e=null;for(var n of r)Pi(n)}return e!==void 0&&(t.x=e),t.i=!0,me=t.p,e??{}}function cn(){return!ln||me!==null&&me.l===null}function fi(e){return me===null&&cl(),me.c??(me.c=new Map(Al(me)||void 0))}function Al(e){let t=e.p;for(;t!==null;){const r=t.c;if(r!==null)return r;t=t.p}return null}let Qt=[];function di(){var e=Qt;Qt=[],al(e)}function gt(e){if(Qt.length===0&&!Hr){var t=Qt;queueMicrotask(()=>{t===Qt&&di()})}Qt.push(e)}function Cl(){for(;Qt.length>0;)di()}function pi(e){var t=ie;if(t===null)return ne.f|=Gt,e;if((t.f&an)===0&&(t.f&Qr)===0)throw e;Er(e,t)}function Er(e,t){for(;t!==null;){if((t.f&eo)!==0){if((t.f&an)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}const El=-7169;function be(e,t){e.f=e.f&El|t}function Lo(e){(e.f&Ue)!==0||e.deps===null?be(e,xe):be(e,He)}function hi(e){if(e!==null)for(const t of e)(t.f&Te)===0||(t.f&lr)===0||(t.f^=lr,hi(t.deps))}function gi(e,t,r){(e.f&Re)!==0?t.add(e):(e.f&He)!==0&&r.add(e),hi(e.deps),be(e,xe)}const gn=new Set;let ee=null,ro=null,Ae=null,Le=[],Nn=null,no=!1,Hr=!1;var br,wr,tr,xr,tn,rn,rr,kt,yr,vt,oo,so,vi;const cs=class cs{constructor(){oe(this,vt);te(this,"committed",!1);te(this,"current",new Map);te(this,"previous",new Map);oe(this,br,new Set);oe(this,wr,new Set);oe(this,tr,0);oe(this,xr,0);oe(this,tn,null);oe(this,rn,new Set);oe(this,rr,new Set);oe(this,kt,new Map);te(this,"is_fork",!1);oe(this,yr,!1)}is_deferred(){return this.is_fork||b(this,xr)>0}skip_effect(t){b(this,kt).has(t)||b(this,kt).set(t,{d:[],m:[]})}unskip_effect(t){var r=b(this,kt).get(t);if(r){b(this,kt).delete(t);for(var n of r.d)be(n,Re),tt(n);for(n of r.m)be(n,He),tt(n)}}process(t){var o;Le=[],this.apply();var r=[],n=[];for(const s of t)je(this,vt,oo).call(this,s,r,n);if(this.is_deferred()){je(this,vt,so).call(this,n),je(this,vt,so).call(this,r);for(const[s,i]of b(this,kt))xi(s,i)}else{for(const s of b(this,br))s();b(this,br).clear(),b(this,tr)===0&&je(this,vt,vi).call(this),ro=this,ee=null,ps(n),ps(r),ro=null,(o=b(this,tn))==null||o.resolve()}Ae=null}capture(t,r){r!==_e&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&Gt)===0&&(this.current.set(t,t.v),Ae==null||Ae.set(t,t.v))}activate(){ee=this,this.apply()}deactivate(){ee===this&&(ee=null,Ae=null)}flush(){if(this.activate(),Le.length>0){if(mi(),ee!==null&&ee!==this)return}else b(this,tr)===0&&this.process([]);this.deactivate()}discard(){for(const t of b(this,wr))t(this);b(this,wr).clear()}increment(t){X(this,tr,b(this,tr)+1),t&&X(this,xr,b(this,xr)+1)}decrement(t){X(this,tr,b(this,tr)-1),t&&X(this,xr,b(this,xr)-1),!b(this,yr)&&(X(this,yr,!0),gt(()=>{X(this,yr,!1),this.is_deferred()?Le.length>0&&this.flush():this.revive()}))}revive(){for(const t of b(this,rn))b(this,rr).delete(t),be(t,Re),tt(t);for(const t of b(this,rr))be(t,He),tt(t);this.flush()}oncommit(t){b(this,br).add(t)}ondiscard(t){b(this,wr).add(t)}settled(){return(b(this,tn)??X(this,tn,si())).promise}static ensure(){if(ee===null){const t=ee=new cs;gn.add(ee),Hr||gt(()=>{ee===t&&t.flush()})}return ee}apply(){}};br=new WeakMap,wr=new WeakMap,tr=new WeakMap,xr=new WeakMap,tn=new WeakMap,rn=new WeakMap,rr=new WeakMap,kt=new WeakMap,yr=new WeakMap,vt=new WeakSet,oo=function(t,r,n){t.f^=xe;for(var o=t.first,s=null;o!==null;){var i=o.f,a=(i&(nt|dr))!==0,c=a&&(i&xe)!==0,l=c||(i&qe)!==0||b(this,kt).has(o);if(!l&&o.fn!==null){a?o.f^=xe:s!==null&&(i&(Qr|sn|Io))!==0?s.b.defer_effect(o):(i&Qr)!==0?r.push(o):zr(o)&&((i&It)!==0&&b(this,rr).add(o),cr(o));var u=o.first;if(u!==null){o=u;continue}}for(;o!==null;){o===s&&(s=null);var d=o.next;if(d!==null){o=d;break}o=o.parent}}},so=function(t){for(var r=0;r<t.length;r+=1)gi(t[r],b(this,rn),b(this,rr))},vi=function(){var o;if(gn.size>1){this.previous.clear();var t=Ae,r=!0;for(const s of gn){if(s===this){r=!1;continue}const i=[];for(const[c,l]of this.current){if(s.current.has(c))if(r&&l!==s.current.get(c))s.current.set(c,l);else continue;i.push(c)}if(i.length===0)continue;const a=[...s.current.keys()].filter(c=>!this.current.has(c));if(a.length>0){var n=Le;Le=[];const c=new Set,l=new Map;for(const u of i)bi(u,a,c,l);if(Le.length>0){ee=s,s.apply();for(const u of Le)je(o=s,vt,oo).call(o,u,[],[]);s.deactivate()}Le=n}}ee=null,Ae=t}this.committed=!0,gn.delete(this)};let Bt=cs;function Tl(e){var t=Hr;Hr=!0;try{for(var r;;){if(Cl(),Le.length===0&&(ee==null||ee.flush(),Le.length===0))return Nn=null,r;mi()}}finally{Hr=t}}function mi(){no=!0;var e=null;try{for(var t=0;Le.length>0;){var r=Bt.ensure();if(t++>1e3){var n,o;Rl()}r.process(Le),Dt.clear()}}finally{Le=[],no=!1,Nn=null}}function Rl(){try{gl()}catch(e){Er(e,Nn)}}let Qe=null;function ps(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(zt|qe))===0&&zr(n)&&(Qe=new Set,cr(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&Li(n),(Qe==null?void 0:Qe.size)>0)){Dt.clear();for(const o of Qe){if((o.f&(zt|qe))!==0)continue;const s=[o];let i=o.parent;for(;i!==null;)Qe.has(i)&&(Qe.delete(i),s.push(i)),i=i.parent;for(let a=s.length-1;a>=0;a--){const c=s[a];(c.f&(zt|qe))===0&&cr(c)}}Qe.clear()}}Qe=null}}function bi(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const o of e.reactions){const s=o.f;(s&Te)!==0?bi(o,t,r,n):(s&(Mo|It))!==0&&(s&Re)===0&&wi(o,t,n)&&(be(o,Re),tt(o))}}function wi(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const o of e.deps){if(Ar.call(t,o))return!0;if((o.f&Te)!==0&&wi(o,t,r))return r.set(o,!0),!0}return r.set(e,!1),!1}function tt(e){for(var t=Nn=e;t.parent!==null;){t=t.parent;var r=t.f;if(no&&t===ie&&(r&It)!==0&&(r&ii)===0)return;if((r&(dr|nt))!==0){if((r&xe)===0)return;t.f^=xe}}Le.push(t)}function xi(e,t){if(!((e.f&nt)!==0&&(e.f&xe)!==0)){(e.f&Re)!==0?t.d.push(e):(e.f&He)!==0&&t.m.push(e),be(e,xe);for(var r=e.first;r!==null;)xi(r,t),r=r.next}}function zl(e){let t=0,r=Ft(0),n;return()=>{jo()&&(p(r),fn(()=>(t===0&&(n=Pr(()=>e(()=>Kr(r)))),t+=1,()=>{gt(()=>{t-=1,t===0&&(n==null||n(),n=void 0,Kr(r))})})))}}var Pl=Vt|Rr;function Il(e,t,r){new Ml(e,t,r)}var Xe,Ro,_t,nr,ct,ut,Be,ft,St,or,Ot,kr,_r,Sr,At,$n,Ne,$l,Ll,io,An,ao;class Ml{constructor(t,r,n){oe(this,Ne);te(this,"parent");te(this,"is_pending",!1);oe(this,Xe);oe(this,Ro,null);oe(this,_t);oe(this,nr);oe(this,ct);oe(this,ut,null);oe(this,Be,null);oe(this,ft,null);oe(this,St,null);oe(this,or,0);oe(this,Ot,0);oe(this,kr,!1);oe(this,_r,new Set);oe(this,Sr,new Set);oe(this,At,null);oe(this,$n,zl(()=>(X(this,At,Ft(b(this,or))),()=>{X(this,At,null)})));X(this,Xe,t),X(this,_t,r),X(this,nr,o=>{var s=ie;s.b=this,s.f|=eo,n(o)}),this.parent=ie.b,X(this,ct,dn(()=>{je(this,Ne,io).call(this)},Pl))}defer_effect(t){gi(t,b(this,_r),b(this,Sr))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!b(this,_t).pending}update_pending_count(t){je(this,Ne,ao).call(this,t),X(this,or,b(this,or)+t),!(!b(this,At)||b(this,kr))&&(X(this,kr,!0),gt(()=>{X(this,kr,!1),b(this,At)&&Tr(b(this,At),b(this,or))}))}get_effect_pending(){return b(this,$n).call(this),p(b(this,At))}error(t){var r=b(this,_t).onerror;let n=b(this,_t).failed;if(!r&&!n)throw t;b(this,ut)&&(Ee(b(this,ut)),X(this,ut,null)),b(this,Be)&&(Ee(b(this,Be)),X(this,Be,null)),b(this,ft)&&(Ee(b(this,ft)),X(this,ft,null));var o=!1,s=!1;const i=()=>{if(o){kl();return}o=!0,s&&xl(),b(this,ft)!==null&&ir(b(this,ft),()=>{X(this,ft,null)}),je(this,Ne,An).call(this,()=>{Bt.ensure(),je(this,Ne,io).call(this)})};gt(()=>{try{s=!0,r==null||r(t,i),s=!1}catch(a){Er(a,b(this,ct)&&b(this,ct).parent)}n&&X(this,ft,je(this,Ne,An).call(this,()=>{Bt.ensure();try{return Ve(()=>{var a=ie;a.b=this,a.f|=eo,n(b(this,Xe),()=>t,()=>i)})}catch(a){return Er(a,b(this,ct).parent),null}}))})}}Xe=new WeakMap,Ro=new WeakMap,_t=new WeakMap,nr=new WeakMap,ct=new WeakMap,ut=new WeakMap,Be=new WeakMap,ft=new WeakMap,St=new WeakMap,or=new WeakMap,Ot=new WeakMap,kr=new WeakMap,_r=new WeakMap,Sr=new WeakMap,At=new WeakMap,$n=new WeakMap,Ne=new WeakSet,$l=function(){try{X(this,ut,Ve(()=>b(this,nr).call(this,b(this,Xe))))}catch(t){this.error(t)}},Ll=function(){const t=b(this,_t).pending;t&&(this.is_pending=!0,X(this,Be,Ve(()=>t(b(this,Xe)))),gt(()=>{var r=X(this,St,document.createDocumentFragment()),n=Pt();r.append(n),X(this,ut,je(this,Ne,An).call(this,()=>(Bt.ensure(),Ve(()=>b(this,nr).call(this,n))))),b(this,Ot)===0&&(b(this,Xe).before(r),X(this,St,null),ir(b(this,Be),()=>{X(this,Be,null)}),this.is_pending=!1)}))},io=function(){try{if(this.is_pending=this.has_pending_snippet(),X(this,Ot,0),X(this,or,0),X(this,ut,Ve(()=>{b(this,nr).call(this,b(this,Xe))})),b(this,Ot)>0){var t=X(this,St,document.createDocumentFragment());ji(b(this,ut),t);const r=b(this,_t).pending;X(this,Be,Ve(()=>r(b(this,Xe))))}else this.is_pending=!1}catch(r){this.error(r)}},An=function(t){var r=ie,n=ne,o=me;Ye(b(this,ct)),Ke(b(this,ct)),Cr(b(this,ct).ctx);try{return t()}catch(s){return pi(s),null}finally{Ye(r),Ke(n),Cr(o)}},ao=function(t){var r;if(!this.has_pending_snippet()){this.parent&&je(r=this.parent,Ne,ao).call(r,t);return}if(X(this,Ot,b(this,Ot)+t),b(this,Ot)===0){this.is_pending=!1;for(const n of b(this,_r))be(n,Re),tt(n);for(const n of b(this,Sr))be(n,He),tt(n);b(this,_r).clear(),b(this,Sr).clear(),b(this,Be)&&ir(b(this,Be),()=>{X(this,Be,null)}),b(this,St)&&(b(this,Xe).before(b(this,St)),X(this,St,null))}};function yi(e,t,r,n){const o=cn()?jn:Oo;var s=e.filter(f=>!f.settled);if(r.length===0&&s.length===0){n(t.map(o));return}var i=ee,a=ie,c=Ol(),l=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(f=>f.promise)):null;function u(f){c();try{n(f)}catch(v){(a.f&zt)===0&&Er(v,a)}i==null||i.deactivate(),lo()}if(r.length===0){l.then(()=>u(t.map(o)));return}function d(){c(),Promise.all(r.map(f=>Nl(f))).then(f=>u([...t.map(o),...f])).catch(f=>Er(f,a))}l?l.then(d):d()}function Ol(){var e=ie,t=ne,r=me,n=ee;return function(s=!0){Ye(e),Ke(t),Cr(r),s&&(n==null||n.activate())}}function lo(){Ye(null),Ke(null),Cr(null)}function jn(e){var t=Te|Re,r=ne!==null&&(ne.f&Te)!==0?ne:null;return ie!==null&&(ie.f|=Rr),{ctx:me,deps:null,effects:null,equals:ci,f:t,fn:e,reactions:null,rv:0,v:_e,wv:0,parent:r??ie,ac:null}}function Nl(e,t,r){let n=ie;n===null&&ul();var o=n.b,s=void 0,i=Ft(_e),a=!ne,c=new Map;return Ql(()=>{var v;var l=si();s=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{u===ee&&u.committed&&u.deactivate(),lo()})}catch(g){l.reject(g),lo()}var u=ee;if(a){var d=o.is_rendered();o.update_pending_count(1),u.increment(d),(v=c.get(u))==null||v.reject(Jt),c.delete(u),c.set(u,l)}const f=(g,y=void 0)=>{if(u.activate(),y)y!==Jt&&(i.f|=Gt,Tr(i,y));else{(i.f&Gt)!==0&&(i.f^=Gt),Tr(i,g);for(const[h,m]of c){if(c.delete(h),h===u)break;m.reject(Jt)}}a&&(o.update_pending_count(-1),u.decrement(d))};l.promise.then(f,g=>f(null,g||"unknown"))}),Go(()=>{for(const l of c.values())l.reject(Jt)}),new Promise(l=>{function u(d){function f(){d===s?l(i):u(s)}d.then(f,f)}u(s)})}function ze(e){const t=jn(e);return Gi(t),t}function Oo(e){const t=jn(e);return t.equals=ui,t}function jl(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Ee(t[r])}}function Gl(e){for(var t=e.parent;t!==null;){if((t.f&Te)===0)return(t.f&zt)===0?t:null;t=t.parent}return null}function No(e){var t,r=ie;Ye(Gl(e));try{e.f&=~lr,jl(e),t=Fi(e)}finally{Ye(r)}return t}function ki(e){var t=No(e);if(!e.equals(t)&&(e.wv=Di(),(!(ee!=null&&ee.is_fork)||e.deps===null)&&(e.v=t,e.deps===null))){be(e,xe);return}qt||(Ae!==null?(jo()||ee!=null&&ee.is_fork)&&Ae.set(e,t):Lo(e))}function Bl(e){var t,r;if(e.effects!==null)for(const n of e.effects)(n.teardown||n.ac)&&((t=n.teardown)==null||t.call(n),(r=n.ac)==null||r.abort(Jt),n.teardown=Tn,n.ac=null,Xr(n,0),Vo(n))}function _i(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&cr(t)}let co=new Set;const Dt=new Map;let Si=!1;function Ft(e,t){var r={f:0,v:e,reactions:null,equals:ci,rv:0,wv:0};return r}function se(e,t){const r=Ft(e);return Gi(r),r}function Dl(e,t=!1,r=!0){var o;const n=Ft(e);return t||(n.equals=ui),ln&&r&&me!==null&&me.l!==null&&((o=me.l).s??(o.s=[])).push(n),n}function bp(e,t){return C(e,Pr(()=>p(e))),t}function C(e,t,r=!1){ne!==null&&(!rt||(ne.f&ds)!==0)&&cn()&&(ne.f&(Te|It|Mo|ds))!==0&&(Ze===null||!Ar.call(Ze,e))&&wl();let n=r?pt(t):t;return Tr(e,n)}function Tr(e,t){if(!e.equals(t)){var r=e.v;qt?Dt.set(e,t):Dt.set(e,r),e.v=t;var n=Bt.ensure();if(n.capture(e,r),(e.f&Te)!==0){const o=e;(e.f&Re)!==0&&No(o),Lo(o)}e.wv=Di(),Ai(e,Re),cn()&&ie!==null&&(ie.f&xe)!==0&&(ie.f&(nt|dr))===0&&(We===null?ec([e]):We.push(e)),!n.is_fork&&co.size>0&&!Si&&Vl()}return t}function Vl(){Si=!1;for(const e of co)(e.f&xe)!==0&&be(e,He),zr(e)&&cr(e);co.clear()}function hs(e,t=1){var r=p(e),n=t===1?r++:r--;return C(e,r),n}function Kr(e){C(e,e.v+1)}function Ai(e,t){var r=e.reactions;if(r!==null)for(var n=cn(),o=r.length,s=0;s<o;s++){var i=r[s],a=i.f;if(!(!n&&i===ie)){var c=(a&Re)===0;if(c&&be(i,t),(a&Te)!==0){var l=i;Ae==null||Ae.delete(l),(a&lr)===0&&(a&Ue&&(i.f|=lr),Ai(l,He))}else c&&((a&It)!==0&&Qe!==null&&Qe.add(i),tt(i))}}}function pt(e){if(typeof e!="object"||e===null||ht in e)return e;const t=Po(e);if(t!==sl&&t!==il)return e;var r=new Map,n=zo(e),o=se(0),s=ar,i=a=>{if(ar===s)return a();var c=ne,l=ar;Ke(null),ws(s);var u=a();return Ke(c),ws(l),u};return n&&r.set("length",se(e.length)),new Proxy(e,{defineProperty(a,c,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&ml();var u=r.get(c);return u===void 0?i(()=>{var d=se(l.value);return r.set(c,d),d}):C(u,l.value,!0),!0},deleteProperty(a,c){var l=r.get(c);if(l===void 0){if(c in a){const u=i(()=>se(_e));r.set(c,u),Kr(o)}}else C(l,_e),Kr(o);return!0},get(a,c,l){var v;if(c===ht)return e;var u=r.get(c),d=c in a;if(u===void 0&&(!d||(v=jt(a,c))!=null&&v.writable)&&(u=i(()=>{var g=pt(d?a[c]:_e),y=se(g);return y}),r.set(c,u)),u!==void 0){var f=p(u);return f===_e?void 0:f}return Reflect.get(a,c,l)},getOwnPropertyDescriptor(a,c){var l=Reflect.getOwnPropertyDescriptor(a,c);if(l&&"value"in l){var u=r.get(c);u&&(l.value=p(u))}else if(l===void 0){var d=r.get(c),f=d==null?void 0:d.v;if(d!==void 0&&f!==_e)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return l},has(a,c){var f;if(c===ht)return!0;var l=r.get(c),u=l!==void 0&&l.v!==_e||Reflect.has(a,c);if(l!==void 0||ie!==null&&(!u||(f=jt(a,c))!=null&&f.writable)){l===void 0&&(l=i(()=>{var v=u?pt(a[c]):_e,g=se(v);return g}),r.set(c,l));var d=p(l);if(d===_e)return!1}return u},set(a,c,l,u){var _;var d=r.get(c),f=c in a;if(n&&c==="length")for(var v=l;v<d.v;v+=1){var g=r.get(v+"");g!==void 0?C(g,_e):v in a&&(g=i(()=>se(_e)),r.set(v+"",g))}if(d===void 0)(!f||(_=jt(a,c))!=null&&_.writable)&&(d=i(()=>se(void 0)),C(d,pt(l)),r.set(c,d));else{f=d.v!==_e;var y=i(()=>pt(l));C(d,y)}var h=Reflect.getOwnPropertyDescriptor(a,c);if(h!=null&&h.set&&h.set.call(u,l),!f){if(n&&typeof c=="string"){var m=r.get("length"),k=Number(c);Number.isInteger(k)&&k>=m.v&&C(m,k+1)}Kr(o)}return!0},ownKeys(a){p(o);var c=Reflect.ownKeys(a).filter(d=>{var f=r.get(d);return f===void 0||f.v!==_e});for(var[l,u]of r)u.v!==_e&&!(l in a)&&c.push(l);return c},setPrototypeOf(){bl()}})}function gs(e){try{if(e!==null&&typeof e=="object"&&ht in e)return e[ht]}catch{}return e}function Fl(e,t){return Object.is(gs(e),gs(t))}var vs,Ci,Ei,Ti;function ql(){if(vs===void 0){vs=window,Ci=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Ei=jt(t,"firstChild").get,Ti=jt(t,"nextSibling").get,fs(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),fs(r)&&(r.__t=void 0)}}function Pt(e=""){return document.createTextNode(e)}function Fe(e){return Ei.call(e)}function un(e){return Ti.call(e)}function N(e,t){return Fe(e)}function Se(e,t=!1){{var r=Fe(e);return r instanceof Comment&&r.data===""?un(r):r}}function H(e,t=1,r=!1){let n=e;for(;t--;)n=un(n);return n}function Wl(e){e.textContent=""}function Ri(){return!1}function Ul(e,t,r){return document.createElementNS(ni,e,void 0)}function Zl(e,t){if(t){const r=document.body;e.autofocus=!0,gt(()=>{document.activeElement===r&&e.focus()})}}let ms=!1;function Hl(){ms||(ms=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const r of e.target.elements)(t=r.__on_r)==null||t.call(r)})},{capture:!0}))}function Gn(e){var t=ne,r=ie;Ke(null),Ye(null);try{return e()}finally{Ke(t),Ye(r)}}function Kl(e,t,r,n=r){e.addEventListener(t,()=>Gn(r));const o=e.__on_r;o?e.__on_r=()=>{o(),n(!0)}:e.__on_r=()=>n(!0),Hl()}function zi(e){ie===null&&(ne===null&&hl(),pl()),qt&&dl()}function Yl(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function it(e,t,r){var n=ie;n!==null&&(n.f&qe)!==0&&(e|=qe);var o={ctx:me,deps:null,nodes:null,f:e|Re|Ue,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};if(r)try{cr(o)}catch(a){throw Ee(o),a}else t!==null&&tt(o);var s=o;if(r&&s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&Rr)===0&&(s=s.first,(e&It)!==0&&(e&Vt)!==0&&s!==null&&(s.f|=Vt)),s!==null&&(s.parent=n,n!==null&&Yl(s,n),ne!==null&&(ne.f&Te)!==0&&(e&dr)===0)){var i=ne;(i.effects??(i.effects=[])).push(s)}return o}function jo(){return ne!==null&&!rt}function Go(e){const t=it(sn,null,!1);return be(t,xe),t.teardown=e,t}function Bo(e){zi();var t=ie.f,r=!ne&&(t&nt)!==0&&(t&an)===0;if(r){var n=me;(n.e??(n.e=[])).push(e)}else return Pi(e)}function Pi(e){return it(Qr|ai,e,!1)}function wp(e){return zi(),it(sn|ai,e,!0)}function Jl(e){Bt.ensure();const t=it(dr|Rr,e,!0);return(r={})=>new Promise(n=>{r.outro?ir(t,()=>{Ee(t),n(void 0)}):(Ee(t),n(void 0))})}function Do(e){return it(Qr,e,!1)}function xp(e,t){var r=me,n={effect:null,ran:!1,deps:e};r.l.$.push(n),n.effect=fn(()=>{e(),!n.ran&&(n.ran=!0,Pr(t))})}function yp(){var e=me;fn(()=>{for(var t of e.l.$){t.deps();var r=t.effect;(r.f&xe)!==0&&r.deps!==null&&be(r,He),zr(r)&&cr(r),t.ran=!1}})}function Ql(e){return it(Mo|Rr,e,!0)}function fn(e,t=0){return it(sn|t,e,!0)}function ge(e,t=[],r=[],n=[]){yi(n,t,r,o=>{it(sn,()=>e(...o.map(p)),!0)})}function dn(e,t=0){var r=it(It|t,e,!0);return r}function Ii(e,t=0){var r=it(Io|t,e,!0);return r}function Ve(e){return it(nt|Rr,e,!0)}function Mi(e){var t=e.teardown;if(t!==null){const r=qt,n=ne;bs(!0),Ke(null);try{t.call(null)}finally{bs(r),Ke(n)}}}function Vo(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const o=r.ac;o!==null&&Gn(()=>{o.abort(Jt)});var n=r.next;(r.f&dr)!==0?r.parent=null:Ee(r,t),r=n}}function Xl(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&nt)===0&&Ee(t),t=r}}function Ee(e,t=!0){var r=!1;(t||(e.f&ii)!==0)&&e.nodes!==null&&e.nodes.end!==null&&($i(e.nodes.start,e.nodes.end),r=!0),Vo(e,t&&!r),Xr(e,0),be(e,zt);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();Mi(e);var o=e.parent;o!==null&&o.first!==null&&Li(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function $i(e,t){for(;e!==null;){var r=e===t?null:un(e);e.remove(),e=r}}function Li(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function ir(e,t,r=!0){var n=[];Oi(e,n,!0);var o=()=>{r&&Ee(e),t&&t()},s=n.length;if(s>0){var i=()=>--s||o();for(var a of n)a.out(i)}else o()}function Oi(e,t,r){if((e.f&qe)===0){e.f^=qe;var n=e.nodes&&e.nodes.t;if(n!==null)for(const a of n)(a.is_global||r)&&t.push(a);for(var o=e.first;o!==null;){var s=o.next,i=(o.f&Vt)!==0||(o.f&nt)!==0&&(e.f&It)!==0;Oi(o,t,i?r:!1),o=s}}}function Fo(e){Ni(e,!0)}function Ni(e,t){if((e.f&qe)!==0){e.f^=qe,(e.f&xe)===0&&(be(e,Re),tt(e));for(var r=e.first;r!==null;){var n=r.next,o=(r.f&Vt)!==0||(r.f&nt)!==0;Ni(r,o?t:!1),r=n}var s=e.nodes&&e.nodes.t;if(s!==null)for(const i of s)(i.is_global||t)&&i.in()}}function ji(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var o=r===n?null:un(r);t.append(r),r=o}}let Cn=!1,qt=!1;function bs(e){qt=e}let ne=null,rt=!1;function Ke(e){ne=e}let ie=null;function Ye(e){ie=e}let Ze=null;function Gi(e){ne!==null&&(Ze===null?Ze=[e]:Ze.push(e))}let Oe=null,Ge=0,We=null;function ec(e){We=e}let Bi=1,Xt=0,ar=Xt;function ws(e){ar=e}function Di(){return++Bi}function zr(e){var t=e.f;if((t&Re)!==0)return!0;if(t&Te&&(e.f&=~lr),(t&He)!==0){for(var r=e.deps,n=r.length,o=0;o<n;o++){var s=r[o];if(zr(s)&&ki(s),s.wv>e.wv)return!0}(t&Ue)!==0&&Ae===null&&be(e,xe)}return!1}function Vi(e,t,r=!0){var n=e.reactions;if(n!==null&&!(Ze!==null&&Ar.call(Ze,e)))for(var o=0;o<n.length;o++){var s=n[o];(s.f&Te)!==0?Vi(s,t,!1):t===s&&(r?be(s,Re):(s.f&xe)!==0&&be(s,He),tt(s))}}function Fi(e){var y;var t=Oe,r=Ge,n=We,o=ne,s=Ze,i=me,a=rt,c=ar,l=e.f;Oe=null,Ge=0,We=null,ne=(l&(nt|dr))===0?e:null,Ze=null,Cr(e.ctx),rt=!1,ar=++Xt,e.ac!==null&&(Gn(()=>{e.ac.abort(Jt)}),e.ac=null);try{e.f|=to;var u=e.fn,d=u();e.f|=an;var f=e.deps,v=ee==null?void 0:ee.is_fork;if(Oe!==null){var g;if(v||Xr(e,Ge),f!==null&&Ge>0)for(f.length=Ge+Oe.length,g=0;g<Oe.length;g++)f[Ge+g]=Oe[g];else e.deps=f=Oe;if(jo()&&(e.f&Ue)!==0)for(g=Ge;g<f.length;g++)((y=f[g]).reactions??(y.reactions=[])).push(e)}else!v&&f!==null&&Ge<f.length&&(Xr(e,Ge),f.length=Ge);if(cn()&&We!==null&&!rt&&f!==null&&(e.f&(Te|He|Re))===0)for(g=0;g<We.length;g++)Vi(We[g],e);if(o!==null&&o!==e){if(Xt++,o.deps!==null)for(let h=0;h<r;h+=1)o.deps[h].rv=Xt;if(t!==null)for(const h of t)h.rv=Xt;We!==null&&(n===null?n=We:n.push(...We))}return(e.f&Gt)!==0&&(e.f^=Gt),d}catch(h){return pi(h)}finally{e.f^=to,Oe=t,Ge=r,We=n,ne=o,Ze=s,Cr(i),rt=a,ar=c}}function tc(e,t){let r=t.reactions;if(r!==null){var n=nl.call(r,e);if(n!==-1){var o=r.length-1;o===0?r=t.reactions=null:(r[n]=r[o],r.pop())}}if(r===null&&(t.f&Te)!==0&&(Oe===null||!Ar.call(Oe,t))){var s=t;(s.f&Ue)!==0&&(s.f^=Ue,s.f&=~lr),Lo(s),Bl(s),Xr(s,0)}}function Xr(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)tc(e,r[n])}function cr(e){var t=e.f;if((t&zt)===0){be(e,xe);var r=ie,n=Cn;ie=e,Cn=!0;try{(t&(It|Io))!==0?Xl(e):Vo(e),Mi(e);var o=Fi(e);e.teardown=typeof o=="function"?o:null,e.wv=Bi;var s;Xn&&Sl&&(e.f&Re)!==0&&e.deps}finally{Cn=n,ie=r}}}async function qi(){await Promise.resolve(),Tl()}function p(e){var t=e.f,r=(t&Te)!==0;if(ne!==null&&!rt){var n=ie!==null&&(ie.f&zt)!==0;if(!n&&(Ze===null||!Ar.call(Ze,e))){var o=ne.deps;if((ne.f&to)!==0)e.rv<Xt&&(e.rv=Xt,Oe===null&&o!==null&&o[Ge]===e?Ge++:Oe===null?Oe=[e]:Oe.push(e));else{(ne.deps??(ne.deps=[])).push(e);var s=e.reactions;s===null?e.reactions=[ne]:Ar.call(s,ne)||s.push(ne)}}}if(qt&&Dt.has(e))return Dt.get(e);if(r){var i=e;if(qt){var a=i.v;return((i.f&xe)===0&&i.reactions!==null||Ui(i))&&(a=No(i)),Dt.set(i,a),a}var c=(i.f&Ue)===0&&!rt&&ne!==null&&(Cn||(ne.f&Ue)!==0),l=(i.f&an)===0;zr(i)&&(c&&(i.f|=Ue),ki(i)),c&&!l&&(_i(i),Wi(i))}if(Ae!=null&&Ae.has(e))return Ae.get(e);if((e.f&Gt)!==0)throw e.v;return e.v}function Wi(e){if(e.f|=Ue,e.deps!==null)for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),(t.f&Te)!==0&&(t.f&Ue)===0&&(_i(t),Wi(t))}function Ui(e){if(e.v===_e)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Dt.has(t)||(t.f&Te)!==0&&Ui(t))return!0;return!1}function Pr(e){var t=rt;try{return rt=!0,e()}finally{rt=t}}function kp(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(ht in e)uo(e);else if(!Array.isArray(e))for(let t in e){const r=e[t];typeof r=="object"&&r&&ht in r&&uo(r)}}}function uo(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{uo(e[n],t)}catch{}const r=Po(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const n=oi(r);for(let o in n){const s=n[o].get;if(s)try{s.call(e)}catch{}}}}}const er=Symbol("events"),Zi=new Set,fo=new Set;function Hi(e,t,r,n={}){function o(s){if(n.capture||po.call(t,s),!s.cancelBubble)return Gn(()=>r==null?void 0:r.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?gt(()=>{t.addEventListener(e,o,n)}):t.addEventListener(e,o,n),o}function rc(e,t,r,n,o){var s={capture:n,passive:o},i=Hi(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Go(()=>{t.removeEventListener(e,i,s)})}function Ce(e,t,r){(t[er]??(t[er]={}))[e]=r}function Ir(e){for(var t=0;t<e.length;t++)Zi.add(e[t]);for(var r of fo)r(e)}let xs=null;function po(e){var h,m;var t=this,r=t.ownerDocument,n=e.type,o=((h=e.composedPath)==null?void 0:h.call(e))||[],s=o[0]||e.target;xs=e;var i=0,a=xs===e&&e[er];if(a){var c=o.indexOf(a);if(c!==-1&&(t===document||t===window)){e[er]=t;return}var l=o.indexOf(t);if(l===-1)return;c<=l&&(i=c)}if(s=o[i]||e.target,s!==t){ol(e,"currentTarget",{configurable:!0,get(){return s||r}});var u=ne,d=ie;Ke(null),Ye(null);try{for(var f,v=[];s!==null;){var g=s.assignedSlot||s.parentNode||s.host||null;try{var y=(m=s[er])==null?void 0:m[n];y!=null&&(!s.disabled||e.target===s)&&y.call(s,e)}catch(k){f?v.push(k):f=k}if(e.cancelBubble||g===t||g===null)break;s=g}if(f){for(let k of v)queueMicrotask(()=>{throw k});throw f}}finally{e[er]=t,delete e.currentTarget,Ke(u),Ye(d)}}}var Xs;const qn=((Xs=globalThis==null?void 0:globalThis.window)==null?void 0:Xs.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function nc(e){return(qn==null?void 0:qn.createHTML(e))??e}function qo(e,t=!1){var r=Ul("template");return e=e.replaceAll("<!>","<!---->"),r.innerHTML=t?nc(e):e,r.content}function ur(e,t){var r=ie;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function K(e,t){var r=(t&ri)!==0,n=(t&tl)!==0,o,s=!e.startsWith("<!>");return()=>{o===void 0&&(o=qo(s?e:"<!>"+e,!0),r||(o=Fe(o)));var i=n||Ci?document.importNode(o,!0):o.cloneNode(!0);if(r){var a=Fe(i),c=i.lastChild;ur(a,c)}else ur(i,i);return i}}function oc(e,t,r="svg"){var n=!e.startsWith("<!>"),o=(t&ri)!==0,s=`<${r}>${n?e:"<!>"+e}</${r}>`,i;return()=>{if(!i){var a=qo(s,!0),c=Fe(a);if(o)for(i=document.createDocumentFragment();Fe(c);)i.appendChild(Fe(c));else i=Fe(c)}var l=i.cloneNode(!0);if(o){var u=Fe(l),d=l.lastChild;ur(u,d)}else ur(l,l);return l}}function Ki(e,t){return oc(e,t,"svg")}function mr(e=""){{var t=Pt(e+"");return ur(t,t),t}}function Yr(){var e=document.createDocumentFragment(),t=document.createComment(""),r=Pt();return e.append(t,r),ur(t,r),e}function G(e,t){e!==null&&e.before(t)}function sc(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const ic=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function ac(e){return ic.includes(e)}const lc={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function cc(e){return e=e.toLowerCase(),lc[e]??e}const uc=["touchstart","touchmove"];function fc(e){return uc.includes(e)}function ve(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=r,e.nodeValue=r+"")}function dc(e,t){return pc(e,t)}const vn=new Map;function pc(e,{target:t,anchor:r,props:n={},events:o,context:s,intro:i=!0}){ql();var a=void 0,c=Jl(()=>{var l=r??t.appendChild(Pt());Il(l,{pending:()=>{}},f=>{ot({});var v=me;s&&(v.c=s),o&&(n.$$events=o),a=e(f,n)||{},st()});var u=new Set,d=f=>{for(var v=0;v<f.length;v++){var g=f[v];if(!u.has(g)){u.add(g);var y=fc(g);for(const k of[t,document]){var h=vn.get(k);h===void 0&&(h=new Map,vn.set(k,h));var m=h.get(g);m===void 0?(k.addEventListener(g,po,{passive:y}),h.set(g,1)):h.set(g,m+1)}}}};return d(On(Zi)),fo.add(d),()=>{var y;for(var f of u)for(const h of[t,document]){var v=vn.get(h),g=v.get(f);--g==0?(h.removeEventListener(f,po),v.delete(f),v.size===0&&vn.delete(h)):v.set(f,g)}fo.delete(d),l!==r&&((y=l.parentNode)==null||y.removeChild(l))}});return hc.set(a,c),a}let hc=new WeakMap;var et,dt,De,sr,nn,on,Ln;class Wo{constructor(t,r=!0){te(this,"anchor");oe(this,et,new Map);oe(this,dt,new Map);oe(this,De,new Map);oe(this,sr,new Set);oe(this,nn,!0);oe(this,on,()=>{var t=ee;if(b(this,et).has(t)){var r=b(this,et).get(t),n=b(this,dt).get(r);if(n)Fo(n),b(this,sr).delete(r);else{var o=b(this,De).get(r);o&&(b(this,dt).set(r,o.effect),b(this,De).delete(r),o.fragment.lastChild.remove(),this.anchor.before(o.fragment),n=o.effect)}for(const[s,i]of b(this,et)){if(b(this,et).delete(s),s===t)break;const a=b(this,De).get(i);a&&(Ee(a.effect),b(this,De).delete(i))}for(const[s,i]of b(this,dt)){if(s===r||b(this,sr).has(s))continue;const a=()=>{if(Array.from(b(this,et).values()).includes(s)){var l=document.createDocumentFragment();ji(i,l),l.append(Pt()),b(this,De).set(s,{effect:i,fragment:l})}else Ee(i);b(this,sr).delete(s),b(this,dt).delete(s)};b(this,nn)||!n?(b(this,sr).add(s),ir(i,a,!1)):a()}}});oe(this,Ln,t=>{b(this,et).delete(t);const r=Array.from(b(this,et).values());for(const[n,o]of b(this,De))r.includes(n)||(Ee(o.effect),b(this,De).delete(n))});this.anchor=t,X(this,nn,r)}ensure(t,r){var n=ee,o=Ri();if(r&&!b(this,dt).has(t)&&!b(this,De).has(t))if(o){var s=document.createDocumentFragment(),i=Pt();s.append(i),b(this,De).set(t,{effect:Ve(()=>r(i)),fragment:s})}else b(this,dt).set(t,Ve(()=>r(this.anchor)));if(b(this,et).set(n,t),o){for(const[a,c]of b(this,dt))a===t?n.unskip_effect(c):n.skip_effect(c);for(const[a,c]of b(this,De))a===t?n.unskip_effect(c.effect):n.skip_effect(c.effect);n.oncommit(b(this,on)),n.ondiscard(b(this,Ln))}else b(this,on).call(this)}}et=new WeakMap,dt=new WeakMap,De=new WeakMap,sr=new WeakMap,nn=new WeakMap,on=new WeakMap,Ln=new WeakMap;function gc(e,t,...r){var n=new Wo(e);dn(()=>{const o=t()??null;n.ensure(o,o&&(s=>o(s,...r)))},Vt)}function pe(e,t,r=!1){var n=new Wo(e),o=r?Vt:0;function s(i,a){n.ensure(i,a)}dn(()=>{var i=!1;t((a,c=0)=>{i=!0,s(c,a)}),i||s(!1,null)},o)}function Wr(e,t){return t}function vc(e,t,r){for(var n=[],o=t.length,s,i=t.length,a=0;a<o;a++){let d=t[a];ir(d,()=>{if(s){if(s.pending.delete(d),s.done.add(d),s.pending.size===0){var f=e.outrogroups;ho(On(s.done)),f.delete(s),f.size===0&&(e.outrogroups=null)}}else i-=1},!1)}if(i===0){var c=n.length===0&&r!==null;if(c){var l=r,u=l.parentNode;Wl(u),u.append(l),e.items.clear()}ho(t,!c)}else s={pending:new Set(t),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(s)}function ho(e,t=!0){for(var r=0;r<e.length;r++)Ee(e[r],t)}var ys;function Nt(e,t,r,n,o,s=null){var i=e,a=new Map,c=(t&ei)!==0;if(c){var l=e;i=l.appendChild(Pt())}var u=null,d=Oo(()=>{var m=r();return zo(m)?m:m==null?[]:On(m)}),f,v=!0;function g(){h.fallback=u,mc(h,f,i,t,n),u!==null&&(f.length===0?(u.f&Ct)===0?Fo(u):(u.f^=Ct,Ur(u,null,i)):ir(u,()=>{u=null}))}var y=dn(()=>{f=p(d);for(var m=f.length,k=new Set,_=ee,x=Ri(),A=0;A<m;A+=1){var w=f[A],R=n(w,A),E=v?null:a.get(R);E?(E.v&&Tr(E.v,w),E.i&&Tr(E.i,A),x&&_.unskip_effect(E.e)):(E=bc(a,v?i:ys??(ys=Pt()),w,R,A,o,t,r),v||(E.e.f|=Ct),a.set(R,E)),k.add(R)}if(m===0&&s&&!u&&(v?u=Ve(()=>s(i)):(u=Ve(()=>s(ys??(ys=Pt()))),u.f|=Ct)),m>k.size&&fl(),!v)if(x){for(const[W,q]of a)k.has(W)||_.skip_effect(q.e);_.oncommit(g),_.ondiscard(()=>{})}else g();p(d)}),h={effect:y,items:a,outrogroups:null,fallback:u};v=!1}function jr(e){for(;e!==null&&(e.f&nt)===0;)e=e.next;return e}function mc(e,t,r,n,o){var q,Y,P,B,D,V,T,Z,S;var s=(n&Ka)!==0,i=t.length,a=e.items,c=jr(e.effect.first),l,u=null,d,f=[],v=[],g,y,h,m;if(s)for(m=0;m<i;m+=1)g=t[m],y=o(g,m),h=a.get(y).e,(h.f&Ct)===0&&((Y=(q=h.nodes)==null?void 0:q.a)==null||Y.measure(),(d??(d=new Set)).add(h));for(m=0;m<i;m+=1){if(g=t[m],y=o(g,m),h=a.get(y).e,e.outrogroups!==null)for(const U of e.outrogroups)U.pending.delete(h),U.done.delete(h);if((h.f&Ct)!==0)if(h.f^=Ct,h===c)Ur(h,null,r);else{var k=u?u.next:c;h===e.effect.last&&(e.effect.last=h.prev),h.prev&&(h.prev.next=h.next),h.next&&(h.next.prev=h.prev),Mt(e,u,h),Mt(e,h,k),Ur(h,k,r),u=h,f=[],v=[],c=jr(u.next);continue}if((h.f&qe)!==0&&(Fo(h),s&&((B=(P=h.nodes)==null?void 0:P.a)==null||B.unfix(),(d??(d=new Set)).delete(h))),h!==c){if(l!==void 0&&l.has(h)){if(f.length<v.length){var _=v[0],x;u=_.prev;var A=f[0],w=f[f.length-1];for(x=0;x<f.length;x+=1)Ur(f[x],_,r);for(x=0;x<v.length;x+=1)l.delete(v[x]);Mt(e,A.prev,w.next),Mt(e,u,A),Mt(e,w,_),c=_,u=w,m-=1,f=[],v=[]}else l.delete(h),Ur(h,c,r),Mt(e,h.prev,h.next),Mt(e,h,u===null?e.effect.first:u.next),Mt(e,u,h),u=h;continue}for(f=[],v=[];c!==null&&c!==h;)(l??(l=new Set)).add(c),v.push(c),c=jr(c.next);if(c===null)continue}(h.f&Ct)===0&&f.push(h),u=h,c=jr(h.next)}if(e.outrogroups!==null){for(const U of e.outrogroups)U.pending.size===0&&(ho(On(U.done)),(D=e.outrogroups)==null||D.delete(U));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||l!==void 0){var R=[];if(l!==void 0)for(h of l)(h.f&qe)===0&&R.push(h);for(;c!==null;)(c.f&qe)===0&&c!==e.fallback&&R.push(c),c=jr(c.next);var E=R.length;if(E>0){var W=(n&ei)!==0&&i===0?r:null;if(s){for(m=0;m<E;m+=1)(T=(V=R[m].nodes)==null?void 0:V.a)==null||T.measure();for(m=0;m<E;m+=1)(S=(Z=R[m].nodes)==null?void 0:Z.a)==null||S.fix()}vc(e,R,W)}}s&&gt(()=>{var U,le;if(d!==void 0)for(h of d)(le=(U=h.nodes)==null?void 0:U.a)==null||le.apply()})}function bc(e,t,r,n,o,s,i,a){var c=(i&Za)!==0?(i&Ya)===0?Dl(r,!1,!1):Ft(r):null,l=(i&Ha)!==0?Ft(o):null;return{v:c,i:l,e:Ve(()=>(s(t,c??r,l??o,a),()=>{e.delete(n)}))}}function Ur(e,t,r){if(e.nodes)for(var n=e.nodes.start,o=e.nodes.end,s=t&&(t.f&Ct)===0?t.nodes.start:r;n!==null;){var i=un(n);if(s.before(n),n===o)return;n=i}}function Mt(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function ks(e,t,r=!1,n=!1,o=!1){var s=e,i="";ge(()=>{var a=ie;if(i!==(i=t()??"")&&(a.nodes!==null&&($i(a.nodes.start,a.nodes.end),a.nodes=null),i!=="")){var c=i+"";r?c=`<svg>${c}</svg>`:n&&(c=`<math>${c}</math>`);var l=qo(c);if((r||n)&&(l=Fe(l)),ur(Fe(l),l.lastChild),r||n)for(;Fe(l);)s.before(Fe(l));else s.before(l)}})}function wc(e,t,r){var n=new Wo(e);dn(()=>{var o=t()??null;n.ensure(o,o&&(s=>r(s,o)))},Vt)}function xc(e,t){var r=void 0,n;Ii(()=>{r!==(r=t())&&(n&&(Ee(n),n=null),r&&(n=Ve(()=>{Do(()=>r(e))})))})}function Yi(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Yi(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ji(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Yi(e))&&(n&&(n+=" "),n+=t);return n}function Qi(e){return typeof e=="object"?Ji(e):e??""}const _s=[...`
3
- \r\f \v\uFEFF`];function yc(e,t,r){var n=e==null?"":""+e;if(t&&(n=n?n+" "+t:t),r){for(var o in r)if(r[o])n=n?n+" "+o:o;else if(n.length)for(var s=o.length,i=0;(i=n.indexOf(o,i))>=0;){var a=i+s;(i===0||_s.includes(n[i-1]))&&(a===n.length||_s.includes(n[a]))?n=(i===0?"":n.substring(0,i))+n.substring(a+1):i=a}}return n===""?null:n}function Ss(e,t=!1){var r=t?" !important;":";",n="";for(var o in e){var s=e[o];s!=null&&s!==""&&(n+=" "+o+": "+s+r)}return n}function Wn(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function kc(e,t){if(t){var r="",n,o;if(Array.isArray(t)?(n=t[0],o=t[1]):n=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,i=0,a=!1,c=[];n&&c.push(...Object.keys(n).map(Wn)),o&&c.push(...Object.keys(o).map(Wn));var l=0,u=-1;const y=e.length;for(var d=0;d<y;d++){var f=e[d];if(a?f==="/"&&e[d-1]==="*"&&(a=!1):s?s===f&&(s=!1):f==="/"&&e[d+1]==="*"?a=!0:f==='"'||f==="'"?s=f:f==="("?i++:f===")"&&i--,!a&&s===!1&&i===0){if(f===":"&&u===-1)u=d;else if(f===";"||d===y-1){if(u!==-1){var v=Wn(e.substring(l,u).trim());if(!c.includes(v)){f!==";"&&d++;var g=e.substring(l,d).trim();r+=" "+g+";"}}l=d+1,u=-1}}}}return n&&(r+=Ss(n)),o&&(r+=Ss(o,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function Et(e,t,r,n,o,s){var i=e.__className;if(i!==r||i===void 0){var a=yc(r,n,s);a==null?e.removeAttribute("class"):t?e.className=a:e.setAttribute("class",a),e.__className=r}else if(s&&o!==s)for(var c in s){var l=!!s[c];(o==null||l!==!!o[c])&&e.classList.toggle(c,l)}return s}function Un(e,t={},r,n){for(var o in r){var s=r[o];t[o]!==s&&(r[o]==null?e.style.removeProperty(o):e.style.setProperty(o,s,n))}}function Yt(e,t,r,n){var o=e.__style;if(o!==t){var s=kc(t,n);s==null?e.removeAttribute("style"):e.style.cssText=s,e.__style=t}else n&&(Array.isArray(n)?(Un(e,r==null?void 0:r[0],n[0]),Un(e,r==null?void 0:r[1],n[1],"important")):Un(e,r,n));return n}function go(e,t,r=!1){if(e.multiple){if(t==null)return;if(!zo(t))return yl();for(var n of e.options)n.selected=t.includes(As(n));return}for(n of e.options){var o=As(n);if(Fl(o,t)){n.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function _c(e){var t=new MutationObserver(()=>{go(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Go(()=>{t.disconnect()})}function As(e){return"__value"in e?e.__value:e.value}const Gr=Symbol("class"),Br=Symbol("style"),Xi=Symbol("is custom element"),ea=Symbol("is html"),Sc=$o?"option":"OPTION",Ac=$o?"select":"SELECT",Cc=$o?"progress":"PROGRESS";function _p(e,t){var r=Zo(e);r.value===(r.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!==Cc)||(e.value=t??"")}function Ec(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function Rn(e,t,r,n){var o=Zo(e);o[t]!==(o[t]=r)&&(t==="loading"&&(e[ll]=r),r==null?e.removeAttribute(t):typeof r!="string"&&ta(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Tc(e,t,r,n,o=!1,s=!1){var i=Zo(e),a=i[Xi],c=!i[ea],l=t||{},u=e.nodeName===Sc;for(var d in t)d in r||(r[d]=null);r.class?r.class=Qi(r.class):(n||r[Gr])&&(r.class=null),r[Br]&&(r.style??(r.style=null));var f=ta(e);for(const _ in r){let x=r[_];if(u&&_==="value"&&x==null){e.value=e.__value="",l[_]=x;continue}if(_==="class"){var v=e.namespaceURI==="http://www.w3.org/1999/xhtml";Et(e,v,x,n,t==null?void 0:t[Gr],r[Gr]),l[_]=x,l[Gr]=r[Gr];continue}if(_==="style"){Yt(e,x,t==null?void 0:t[Br],r[Br]),l[_]=x,l[Br]=r[Br];continue}var g=l[_];if(!(x===g&&!(x===void 0&&e.hasAttribute(_)))){l[_]=x;var y=_[0]+_[1];if(y!=="$$")if(y==="on"){const A={},w="$$"+_;let R=_.slice(2);var h=ac(R);if(sc(R)&&(R=R.slice(0,-7),A.capture=!0),!h&&g){if(x!=null)continue;e.removeEventListener(R,l[w],A),l[w]=null}if(h)Ce(R,e,x),Ir([R]);else if(x!=null){let E=function(W){l[_].call(this,W)};l[w]=Hi(R,e,E,A)}}else if(_==="style")Rn(e,_,x);else if(_==="autofocus")Zl(e,!!x);else if(!a&&(_==="__value"||_==="value"&&x!=null))e.value=e.__value=x;else if(_==="selected"&&u)Ec(e,x);else{var m=_;c||(m=cc(m));var k=m==="defaultValue"||m==="defaultChecked";if(x==null&&!a&&!k)if(i[_]=null,m==="value"||m==="checked"){let A=e;const w=t===void 0;if(m==="value"){let R=A.defaultValue;A.removeAttribute(m),A.defaultValue=R,A.value=A.__value=w?R:null}else{let R=A.defaultChecked;A.removeAttribute(m),A.defaultChecked=R,A.checked=w?R:!1}}else e.removeAttribute(_);else k||f.includes(m)&&(a||typeof x!="string")?(e[m]=x,m in i&&(i[m]=_e)):typeof x!="function"&&Rn(e,m,x)}}}return l}function Uo(e,t,r=[],n=[],o=[],s,i=!1,a=!1){yi(o,r,n,c=>{var l=void 0,u={},d=e.nodeName===Ac,f=!1;if(Ii(()=>{var g=t(...c.map(p)),y=Tc(e,l,g,s,i,a);f&&d&&"value"in g&&go(e,g.value);for(let m of Object.getOwnPropertySymbols(u))g[m]||Ee(u[m]);for(let m of Object.getOwnPropertySymbols(g)){var h=g[m];m.description===rl&&(!l||h!==l[m])&&(u[m]&&Ee(u[m]),u[m]=Ve(()=>xc(e,()=>h))),y[m]=h}l=y}),d){var v=e;Do(()=>{go(v,l.value,!0),_c(v)})}f=!0})}function Zo(e){return e.__attributes??(e.__attributes={[Xi]:e.nodeName.includes("-"),[ea]:e.namespaceURI===ni})}var Cs=new Map;function ta(e){var t=e.getAttribute("is")||e.nodeName,r=Cs.get(t);if(r)return r;Cs.set(t,r=[]);for(var n,o=e,s=Element.prototype;s!==o;){n=oi(o);for(var i in n)n[i].set&&r.push(i);o=Po(o)}return r}function vo(e,t,r=t){var n=new WeakSet;Kl(e,"input",async o=>{var s=o?e.defaultValue:e.value;if(s=Zn(e)?Hn(s):s,r(s),ee!==null&&n.add(ee),await qi(),s!==(s=t())){var i=e.selectionStart,a=e.selectionEnd,c=e.value.length;if(e.value=s??"",a!==null){var l=e.value.length;i===a&&a===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=i,e.selectionEnd=Math.min(a,l))}}}),Pr(t)==null&&e.value&&(r(Zn(e)?Hn(e.value):e.value),ee!==null&&n.add(ee)),fn(()=>{var o=t();if(e===document.activeElement){var s=ro??ee;if(n.has(s))return}Zn(e)&&o===Hn(e.value)||e.type==="date"&&!o&&!e.value||o!==e.value&&(e.value=o??"")})}function Zn(e){var t=e.type;return t==="number"||t==="range"}function Hn(e){return e===""?null:+e}function Es(e,t){return e===t||(e==null?void 0:e[ht])===t}function Rc(e={},t,r,n){return Do(()=>{var o,s;return fn(()=>{o=s,s=[],Pr(()=>{e!==r(...s)&&(t(e,...s),o&&Es(r(...o),e)&&t(null,...o))})}),()=>{gt(()=>{s&&Es(r(...s),e)&&t(null,...s)})}}),e}let mn=!1;function zc(e){var t=mn;try{return mn=!1,[e(),mn]}finally{mn=t}}const Pc={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function Ho(e,t,r){return new Proxy({props:e,exclude:t},Pc)}const Ic={get(e,t){if(!e.exclude.includes(t))return p(e.version),t in e.special?e.special[t]():e.props[t]},set(e,t,r){if(!(t in e.special)){var n=ie;try{Ye(e.parent_effect),e.special[t]=Wt({get[t](){return e.props[t]}},t,ti)}finally{Ye(n)}}return e.special[t](r),hs(e.version),!0},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},deleteProperty(e,t){return e.exclude.includes(t)||(e.exclude.push(t),hs(e.version)),!0},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function Sp(e,t){return new Proxy({props:e,exclude:t,special:{},version:Ft(0),parent_effect:ie},Ic)}const Mc={get(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(Nr(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n)return n[t]}},set(e,t,r){let n=e.props.length;for(;n--;){let o=e.props[n];Nr(o)&&(o=o());const s=jt(o,t);if(s&&s.set)return s.set(r),!0}return!1},getOwnPropertyDescriptor(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(Nr(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n){const o=jt(n,t);return o&&!o.configurable&&(o.configurable=!0),o}}},has(e,t){if(t===ht||t===li)return!1;for(let r of e.props)if(Nr(r)&&(r=r()),r!=null&&t in r)return!0;return!1},ownKeys(e){const t=[];for(let r of e.props)if(Nr(r)&&(r=r()),!!r){for(const n in r)t.includes(n)||t.push(n);for(const n of Object.getOwnPropertySymbols(r))t.includes(n)||t.push(n)}return t}};function Ap(...e){return new Proxy({props:e},Mc)}function Wt(e,t,r,n){var _;var o=!ln||(r&Qa)!==0,s=(r&Xa)!==0,i=(r&el)!==0,a=n,c=!0,l=()=>(c&&(c=!1,a=i?Pr(n):n),a),u;if(s){var d=ht in e||li in e;u=((_=jt(e,t))==null?void 0:_.set)??(d&&t in e?x=>e[t]=x:void 0)}var f,v=!1;s?[f,v]=zc(()=>e[t]):f=e[t],f===void 0&&n!==void 0&&(f=l(),u&&(o&&vl(),u(f)));var g;if(o?g=()=>{var x=e[t];return x===void 0?l():(c=!0,x)}:g=()=>{var x=e[t];return x!==void 0&&(a=void 0),x===void 0?a:x},o&&(r&ti)===0)return g;if(u){var y=e.$$legacy;return(function(x,A){return arguments.length>0?((!o||!A||y||v)&&u(A?g():x),x):g()})}var h=!1,m=((r&Ja)!==0?jn:Oo)(()=>(h=!1,g()));s&&p(m);var k=ie;return(function(x,A){if(arguments.length>0){const w=A?p(m):o&&s?pt(x):x;return C(m,w),h=!0,a!==void 0&&(a=w),x}return qt&&h||(k.f&zt)!==0?m.v:p(m)})}var $c=K('<button class="p-1.5 rounded hover:bg-secondary transition-colors md:hidden" aria-label="Close sidebar"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"></path><path d="m6 6 12 12"></path></svg></button>'),Lc=Ki('<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-muted-foreground/40 shrink-0"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg>'),Oc=K('<button><span class="text-muted-foreground/60 shrink-0">#</span> <span class="truncate flex-1"> </span> <!></button>'),Nc=K('<div class="px-3 py-4 text-xs text-muted-foreground/60 text-center">No channels yet</div>'),jc=K('<span class="text-muted-foreground/30">WS</span>'),Gc=K('<span class="text-muted-foreground/30"> </span>'),Bc=K('<div class="flex flex-col h-full w-full bg-[oklch(0.13_0_0)] border-r border-border"><div class="flex items-center justify-between px-3 h-12 border-b border-border shrink-0"><span class="font-semibold text-sm truncate"> </span> <!></div> <div class="flex-1 overflow-y-auto py-2"><div class="px-3 mb-1 text-[10px] font-semibold text-muted-foreground uppercase tracking-wider">Channels</div> <!> <!></div> <button class="border-t border-border px-3 h-12 flex items-center gap-2 w-full hover:bg-secondary/50 transition-colors shrink-0"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="8" r="5"></circle><path d="M20 21a8 8 0 0 0-16 0"></path></svg> <span> </span></button> <div class="border-t border-border px-3 py-2 flex items-center justify-between text-[10px] text-muted-foreground/50"><div class="flex items-center gap-1.5"><span></span> <span> </span> <!></div> <a href="https://zooid.dev" class="underline hover:text-muted-foreground/70">Zooid</a></div></div>');function Ts(e,t){ot(t,!0);const r={connected:"bg-primary",polling:"bg-primary",reconnecting:"bg-yellow-500",error:"bg-destructive",idle:"bg-muted-foreground",loading:"bg-muted-foreground"},n={connected:"Connected",polling:"Connected",reconnecting:"Reconnecting...",error:"Error",idle:"Idle",loading:"Loading..."};var o=Bc(),s=N(o),i=N(s),a=N(i),c=H(i,2);{var l=q=>{var Y=$c();Ce("click",Y,function(...P){var B;(B=t.onClose)==null||B.apply(this,P)}),G(q,Y)};pe(c,q=>{t.onClose&&q(l)})}var u=H(s,2),d=H(N(u),2);Nt(d,17,()=>t.channels,q=>q.id,(q,Y)=>{var P=Oc(),B=H(N(P),2),D=N(B),V=H(B,2);{var T=Z=>{var S=Lc();G(Z,S)};pe(V,Z=>{p(Y).is_public||Z(T)})}ge(()=>{Et(P,1,`w-full text-left px-3 py-1.5 flex items-center gap-2 text-sm transition-colors
4
- ${t.selectedId===p(Y).id?"bg-secondary text-foreground":"text-muted-foreground hover:text-foreground hover:bg-secondary/50"}`),ve(D,p(Y).name)}),Ce("click",P,()=>t.onSelect(p(Y).id)),G(q,P)});var f=H(d,2);{var v=q=>{var Y=Nc();G(q,Y)};pe(f,q=>{t.channels.length===0&&q(v)})}var g=H(u,2),y=N(g),h=H(y,2),m=N(h),k=H(g,2),_=N(k),x=N(_),A=H(x,2),w=N(A),R=H(A,2);{var E=q=>{var Y=jc();G(q,Y)},W=q=>{var Y=Gc(),P=N(Y);ge(()=>ve(P,`${t.pollInterval??""}s`)),G(q,Y)};pe(R,q=>{t.status==="connected"?q(E):t.status==="polling"&&q(W,1)})}ge(()=>{ve(a,t.serverName),Rn(g,"title",t.hasAuth?"Authenticated":"Sign in"),Et(y,0,Qi(t.hasAuth?"text-primary":"text-muted-foreground")),Et(h,1,`text-xs ${t.hasAuth?"text-foreground":"text-muted-foreground"}`),ve(m,t.hasAuth?"Signed in":"Sign in"),Et(x,1,`inline-block w-1.5 h-1.5 rounded-full ${r[t.status]}`),ve(w,n[t.status])}),Ce("click",g,function(...q){var Y;(Y=t.onAuthClick)==null||Y.apply(this,q)}),G(e,o),st()}Ir(["click"]);var Rs=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,$e=e=>!e||typeof e!="object"||Object.keys(e).length===0,Dc=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function ra(e,t){e.forEach(function(r){Array.isArray(r)?ra(r,t):t.push(r)})}function na(e){let t=[];return ra(e,t),t}var oa=(...e)=>na(e).filter(Boolean),sa=(e,t)=>{let r={},n=Object.keys(e),o=Object.keys(t);for(let s of n)if(o.includes(s)){let i=e[s],a=t[s];Array.isArray(i)||Array.isArray(a)?r[s]=oa(a,i):typeof i=="object"&&typeof a=="object"?r[s]=sa(i,a):r[s]=a+" "+i}else r[s]=e[s];for(let s of o)n.includes(s)||(r[s]=t[s]);return r},zs=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();const Ko="-",Vc=e=>{const t=qc(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const a=i.split(Ko);return a[0]===""&&a.length!==1&&a.shift(),ia(a,t)||Fc(i)},getConflictingClassGroupIds:(i,a)=>{const c=r[i]||[];return a&&n[i]?[...c,...n[i]]:c}}},ia=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?ia(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Ko);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},Ps=/^\[(.+)\]$/,Fc=e=>{if(Ps.test(e)){const t=Ps.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},qc=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)mo(r[o],n,o,t);return n},mo=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:Is(t,o);s.classGroupId=r;return}if(typeof o=="function"){if(Wc(o)){mo(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([s,i])=>{mo(i,Is(t,s),r,n)})})},Is=(e,t)=>{let r=e;return t.split(Ko).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Wc=e=>e.isThemeGetter,Uc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(s,i)=>{r.set(s,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(s){let i=r.get(s);if(i!==void 0)return i;if((i=n.get(s))!==void 0)return o(s,i),i},set(s,i){r.has(s)?r.set(s,i):o(s,i)}}},bo="!",wo=":",Zc=wo.length,Hc=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const s=[];let i=0,a=0,c=0,l;for(let g=0;g<o.length;g++){let y=o[g];if(i===0&&a===0){if(y===wo){s.push(o.slice(c,g)),c=g+Zc;continue}if(y==="/"){l=g;continue}}y==="["?i++:y==="]"?i--:y==="("?a++:y===")"&&a--}const u=s.length===0?o:o.substring(c),d=Kc(u),f=d!==u,v=l&&l>c?l-c:void 0;return{modifiers:s,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:v}};if(t){const o=t+wo,s=n;n=i=>i.startsWith(o)?s(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=s=>r({className:s,parseClassName:o})}return n},Kc=e=>e.endsWith(bo)?e.substring(0,e.length-1):e.startsWith(bo)?e.substring(1):e,Yc=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let s=[];return n.forEach(i=>{i[0]==="["||t[i]?(o.push(...s.sort(),i),s=[]):s.push(i)}),o.push(...s.sort()),o}},Jc=e=>({cache:Uc(e.cacheSize),parseClassName:Hc(e),sortModifiers:Yc(e),...Vc(e)}),Qc=/\s+/,Xc=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],a=e.trim().split(Qc);let c="";for(let l=a.length-1;l>=0;l-=1){const u=a[l],{isExternal:d,modifiers:f,hasImportantModifier:v,baseClassName:g,maybePostfixModifierPosition:y}=r(u);if(d){c=u+(c.length>0?" "+c:c);continue}let h=!!y,m=n(h?g.substring(0,y):g);if(!m){if(!h){c=u+(c.length>0?" "+c:c);continue}if(m=n(g),!m){c=u+(c.length>0?" "+c:c);continue}h=!1}const k=s(f).join(":"),_=v?k+bo:k,x=_+m;if(i.includes(x))continue;i.push(x);const A=o(m,h);for(let w=0;w<A.length;++w){const R=A[w];i.push(_+R)}c=u+(c.length>0?" "+c:c)}return c};function eu(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=aa(t))&&(n&&(n+=" "),n+=r);return n}const aa=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=aa(e[n]))&&(r&&(r+=" "),r+=t);return r};function xo(e,...t){let r,n,o,s=i;function i(c){const l=t.reduce((u,d)=>d(u),e());return r=Jc(l),n=r.cache.get,o=r.cache.set,s=a,a(c)}function a(c){const l=n(c);if(l)return l;const u=Xc(c,r);return o(c,u),u}return function(){return s(eu.apply(null,arguments))}}const ke=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},la=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ca=/^\((?:(\w[\w-]*):)?(.+)\)$/i,tu=/^\d+\/\d+$/,ru=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nu=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ou=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,su=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,iu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,gr=e=>tu.test(e),re=e=>!!e&&!Number.isNaN(Number(e)),Zt=e=>!!e&&Number.isInteger(Number(e)),Ms=e=>e.endsWith("%")&&re(e.slice(0,-1)),$t=e=>ru.test(e),au=()=>!0,lu=e=>nu.test(e)&&!ou.test(e),Yo=()=>!1,cu=e=>su.test(e),uu=e=>iu.test(e),fu=e=>!M(e)&&!$(e),du=e=>Mr(e,da,Yo),M=e=>la.test(e),Ht=e=>Mr(e,pa,lu),Kn=e=>Mr(e,_u,re),pu=e=>Mr(e,ua,Yo),hu=e=>Mr(e,fa,uu),gu=e=>Mr(e,Yo,cu),$=e=>ca.test(e),bn=e=>$r(e,pa),vu=e=>$r(e,Su),mu=e=>$r(e,ua),bu=e=>$r(e,da),wu=e=>$r(e,fa),xu=e=>$r(e,Au,!0),Mr=(e,t,r)=>{const n=la.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},$r=(e,t,r=!1)=>{const n=ca.exec(e);return n?n[1]?t(n[1]):r:!1},ua=e=>e==="position",yu=new Set(["image","url"]),fa=e=>yu.has(e),ku=new Set(["length","size","percentage"]),da=e=>ku.has(e),pa=e=>e==="length",_u=e=>e==="number",Su=e=>e==="family-name",Au=e=>e==="shadow",yo=()=>{const e=ke("color"),t=ke("font"),r=ke("text"),n=ke("font-weight"),o=ke("tracking"),s=ke("leading"),i=ke("breakpoint"),a=ke("container"),c=ke("spacing"),l=ke("radius"),u=ke("shadow"),d=ke("inset-shadow"),f=ke("drop-shadow"),v=ke("blur"),g=ke("perspective"),y=ke("aspect"),h=ke("ease"),m=ke("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],x=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],w=()=>[$,M,c],R=()=>[gr,"full","auto",...w()],E=()=>[Zt,"none","subgrid",$,M],W=()=>["auto",{span:["full",Zt,$,M]},$,M],q=()=>[Zt,"auto",$,M],Y=()=>["auto","min","max","fr",$,M],P=()=>["start","end","center","between","around","evenly","stretch","baseline"],B=()=>["start","end","center","stretch"],D=()=>["auto",...w()],V=()=>[gr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],T=()=>[e,$,M],Z=()=>[Ms,Ht],S=()=>["","none","full",l,$,M],U=()=>["",re,bn,Ht],le=()=>["solid","dashed","dotted","double"],z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>["","none",v,$,M],j=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",$,M],J=()=>["none",re,$,M],de=()=>["none",re,$,M],ye=()=>[re,$,M],fe=()=>[gr,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[$t],breakpoint:[$t],color:[au],container:[$t],"drop-shadow":[$t],ease:["in","out","in-out"],font:[fu],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[$t],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[$t],shadow:[$t],spacing:["px",re],text:[$t],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",gr,M,$,y]}],container:["container"],columns:[{columns:[re,M,$,a]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[..._(),M,$]}],overflow:[{overflow:x()}],"overflow-x":[{"overflow-x":x()}],"overflow-y":[{"overflow-y":x()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{start:R()}],end:[{end:R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[Zt,"auto",$,M]}],basis:[{basis:[gr,"full","auto",a,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[re,gr,"auto","initial","none",M]}],grow:[{grow:["",re,$,M]}],shrink:[{shrink:["",re,$,M]}],order:[{order:[Zt,"first","last","none",$,M]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:W()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:W()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Y()}],"auto-rows":[{"auto-rows":Y()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...P(),"normal"]}],"justify-items":[{"justify-items":[...B(),"normal"]}],"justify-self":[{"justify-self":["auto",...B()]}],"align-content":[{content:["normal",...P()]}],"align-items":[{items:[...B(),"baseline"]}],"align-self":[{self:["auto",...B(),"baseline"]}],"place-content":[{"place-content":P()}],"place-items":[{"place-items":[...B(),"baseline"]}],"place-self":[{"place-self":["auto",...B()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],w:[{w:[a,"screen",...V()]}],"min-w":[{"min-w":[a,"screen","none",...V()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...V()]}],h:[{h:["screen",...V()]}],"min-h":[{"min-h":["screen","none",...V()]}],"max-h":[{"max-h":["screen",...V()]}],"font-size":[{text:["base",r,bn,Ht]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,$,Kn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ms,M]}],"font-family":[{font:[vu,M,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,$,M]}],"line-clamp":[{"line-clamp":[re,"none",$,Kn]}],leading:[{leading:[s,...w()]}],"list-image":[{"list-image":["none",$,M]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",$,M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:[re,"from-font","auto",$,Ht]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[re,"auto",$,M]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$,M]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",$,M]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[..._(),mu,pu]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",bu,du]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Zt,$,M],radial:["",$,M],conic:[Zt,$,M]},wu,hu]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:Z()}],"gradient-via-pos":[{via:Z()}],"gradient-to-pos":[{to:Z()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:S()}],"rounded-s":[{"rounded-s":S()}],"rounded-e":[{"rounded-e":S()}],"rounded-t":[{"rounded-t":S()}],"rounded-r":[{"rounded-r":S()}],"rounded-b":[{"rounded-b":S()}],"rounded-l":[{"rounded-l":S()}],"rounded-ss":[{"rounded-ss":S()}],"rounded-se":[{"rounded-se":S()}],"rounded-ee":[{"rounded-ee":S()}],"rounded-es":[{"rounded-es":S()}],"rounded-tl":[{"rounded-tl":S()}],"rounded-tr":[{"rounded-tr":S()}],"rounded-br":[{"rounded-br":S()}],"rounded-bl":[{"rounded-bl":S()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...le(),"hidden","none"]}],"divide-style":[{divide:[...le(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...le(),"none","hidden"]}],"outline-offset":[{"outline-offset":[re,$,M]}],"outline-w":[{outline:["",re,bn,Ht]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",u,xu,gu]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",$,M,d]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[re,Ht]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":T()}],opacity:[{opacity:[re,$,M]}],"mix-blend":[{"mix-blend":[...z(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":z()}],filter:[{filter:["","none",$,M]}],blur:[{blur:I()}],brightness:[{brightness:[re,$,M]}],contrast:[{contrast:[re,$,M]}],"drop-shadow":[{"drop-shadow":["","none",f,$,M]}],grayscale:[{grayscale:["",re,$,M]}],"hue-rotate":[{"hue-rotate":[re,$,M]}],invert:[{invert:["",re,$,M]}],saturate:[{saturate:[re,$,M]}],sepia:[{sepia:["",re,$,M]}],"backdrop-filter":[{"backdrop-filter":["","none",$,M]}],"backdrop-blur":[{"backdrop-blur":I()}],"backdrop-brightness":[{"backdrop-brightness":[re,$,M]}],"backdrop-contrast":[{"backdrop-contrast":[re,$,M]}],"backdrop-grayscale":[{"backdrop-grayscale":["",re,$,M]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[re,$,M]}],"backdrop-invert":[{"backdrop-invert":["",re,$,M]}],"backdrop-opacity":[{"backdrop-opacity":[re,$,M]}],"backdrop-saturate":[{"backdrop-saturate":[re,$,M]}],"backdrop-sepia":[{"backdrop-sepia":["",re,$,M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",$,M]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[re,"initial",$,M]}],ease:[{ease:["linear","initial",h,$,M]}],delay:[{delay:[re,$,M]}],animate:[{animate:["none",m,$,M]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,$,M]}],"perspective-origin":[{"perspective-origin":j()}],rotate:[{rotate:J()}],"rotate-x":[{"rotate-x":J()}],"rotate-y":[{"rotate-y":J()}],"rotate-z":[{"rotate-z":J()}],scale:[{scale:de()}],"scale-x":[{"scale-x":de()}],"scale-y":[{"scale-y":de()}],"scale-z":[{"scale-z":de()}],"scale-3d":["scale-3d"],skew:[{skew:ye()}],"skew-x":[{"skew-x":ye()}],"skew-y":[{"skew-y":ye()}],transform:[{transform:[$,M,"","none","gpu","cpu"]}],"transform-origin":[{origin:j()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:fe()}],"translate-x":[{"translate-x":fe()}],"translate-y":[{"translate-y":fe()}],"translate-z":[{"translate-z":fe()}],"translate-none":["translate-none"],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",$,M]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",$,M]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[re,bn,Ht,Kn]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},Cu=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:s={}})=>(Zr(e,"cacheSize",t),Zr(e,"prefix",r),Zr(e,"experimentalParseClassName",n),wn(e.theme,s.theme),wn(e.classGroups,s.classGroups),wn(e.conflictingClassGroups,s.conflictingClassGroups),wn(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),Zr(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),xn(e.theme,o.theme),xn(e.classGroups,o.classGroups),xn(e.conflictingClassGroups,o.conflictingClassGroups),xn(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),ha(e,o,"orderSensitiveModifiers"),e),Zr=(e,t,r)=>{r!==void 0&&(e[t]=r)},wn=(e,t)=>{if(t)for(const r in t)Zr(e,r,t[r])},xn=(e,t)=>{if(t)for(const r in t)ha(e,t,r)},ha=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},Eu=(e,...t)=>typeof e=="function"?xo(yo,e,...t):xo(()=>Cu(yo(),e),...t),Tu=xo(yo);var Ru={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},ga=e=>e||void 0,en=(...e)=>ga(na(e).filter(Boolean).join(" ")),Yn=null,yt={},ko=!1,Dr=(...e)=>t=>t.twMerge?((!Yn||ko)&&(ko=!1,Yn=$e(yt)?Tu:Eu({...yt,extend:{theme:yt.theme,classGroups:yt.classGroups,conflictingClassGroupModifiers:yt.conflictingClassGroupModifiers,conflictingClassGroups:yt.conflictingClassGroups,...yt.extend}})),ga(Yn(en(e)))):en(e),$s=(e,t)=>{for(let r in t)e.hasOwnProperty(r)?e[r]=en(e[r],t[r]):e[r]=t[r];return e},va=(e,t)=>{let{extend:r=null,slots:n={},variants:o={},compoundVariants:s=[],compoundSlots:i=[],defaultVariants:a={}}=e,c={...Ru,...t},l=r!=null&&r.base?en(r.base,e==null?void 0:e.base):e==null?void 0:e.base,u=r!=null&&r.variants&&!$e(r.variants)?sa(o,r.variants):o,d=r!=null&&r.defaultVariants&&!$e(r.defaultVariants)?{...r.defaultVariants,...a}:a;!$e(c.twMergeConfig)&&!Dc(c.twMergeConfig,yt)&&(ko=!0,yt=c.twMergeConfig);let f=$e(r==null?void 0:r.slots),v=$e(n)?{}:{base:en(e==null?void 0:e.base,f&&(r==null?void 0:r.base)),...n},g=f?v:$s({...r==null?void 0:r.slots},$e(v)?{base:e==null?void 0:e.base}:v),y=$e(r==null?void 0:r.compoundVariants)?s:oa(r==null?void 0:r.compoundVariants,s),h=k=>{if($e(u)&&$e(n)&&f)return Dr(l,k==null?void 0:k.class,k==null?void 0:k.className)(c);if(y&&!Array.isArray(y))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof y}`);if(i&&!Array.isArray(i))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof i}`);let _=(P,B,D=[],V)=>{let T=D;if(typeof B=="string")T=T.concat(zs(B).split(" ").map(Z=>`${P}:${Z}`));else if(Array.isArray(B))T=T.concat(B.reduce((Z,S)=>Z.concat(`${P}:${S}`),[]));else if(typeof B=="object"&&typeof V=="string"){for(let Z in B)if(B.hasOwnProperty(Z)&&Z===V){let S=B[Z];if(S&&typeof S=="string"){let U=zs(S);T[V]?T[V]=T[V].concat(U.split(" ").map(le=>`${P}:${le}`)):T[V]=U.split(" ").map(le=>`${P}:${le}`)}else Array.isArray(S)&&S.length>0&&(T[V]=S.reduce((U,le)=>U.concat(`${P}:${le}`),[]))}}return T},x=(P,B=u,D=null,V=null)=>{var T;let Z=B[P];if(!Z||$e(Z))return null;let S=(T=V==null?void 0:V[P])!=null?T:k==null?void 0:k[P];if(S===null)return null;let U=Rs(S),le=Array.isArray(c.responsiveVariants)&&c.responsiveVariants.length>0||c.responsiveVariants===!0,z=d==null?void 0:d[P],I=[];if(typeof U=="object"&&le)for(let[de,ye]of Object.entries(U)){let fe=Z[ye];if(de==="initial"){z=ye;continue}Array.isArray(c.responsiveVariants)&&!c.responsiveVariants.includes(de)||(I=_(de,fe,I,D))}let j=U!=null&&typeof U!="object"?U:Rs(z),J=Z[j||"false"];return typeof I=="object"&&typeof D=="string"&&I[D]?$s(I,J):I.length>0?(I.push(J),D==="base"?I.join(" "):I):J},A=()=>u?Object.keys(u).map(P=>x(P,u)):null,w=(P,B)=>{if(!u||typeof u!="object")return null;let D=new Array;for(let V in u){let T=x(V,u,P,B),Z=P==="base"&&typeof T=="string"?T:T&&T[P];Z&&(D[D.length]=Z)}return D},R={};for(let P in k)k[P]!==void 0&&(R[P]=k[P]);let E=(P,B)=>{var D;let V=typeof(k==null?void 0:k[P])=="object"?{[P]:(D=k[P])==null?void 0:D.initial}:{};return{...d,...R,...V,...B}},W=(P=[],B)=>{let D=[];for(let{class:V,className:T,...Z}of P){let S=!0;for(let[U,le]of Object.entries(Z)){let z=E(U,B)[U];if(Array.isArray(le)){if(!le.includes(z)){S=!1;break}}else{let I=j=>j==null||j===!1;if(I(le)&&I(z))continue;if(z!==le){S=!1;break}}}S&&(V&&D.push(V),T&&D.push(T))}return D},q=P=>{let B=W(y,P);if(!Array.isArray(B))return B;let D={};for(let V of B)if(typeof V=="string"&&(D.base=Dr(D.base,V)(c)),typeof V=="object")for(let[T,Z]of Object.entries(V))D[T]=Dr(D[T],Z)(c);return D},Y=P=>{if(i.length<1)return null;let B={};for(let{slots:D=[],class:V,className:T,...Z}of i){if(!$e(Z)){let S=!0;for(let U of Object.keys(Z)){let le=E(U,P)[U];if(le===void 0||(Array.isArray(Z[U])?!Z[U].includes(le):Z[U]!==le)){S=!1;break}}if(!S)continue}for(let S of D)B[S]=B[S]||[],B[S].push([V,T])}return B};if(!$e(n)||!f){let P={};if(typeof g=="object"&&!$e(g))for(let B of Object.keys(g))P[B]=D=>{var V,T;return Dr(g[B],w(B,D),((V=q(D))!=null?V:[])[B],((T=Y(D))!=null?T:[])[B],D==null?void 0:D.class,D==null?void 0:D.className)(c)};return P}return Dr(l,A(),W(y),k==null?void 0:k.class,k==null?void 0:k.className)(c)},m=()=>{if(!(!u||typeof u!="object"))return Object.keys(u)};return h.variantKeys=m(),h.extend=r,h.base=l,h.slots=g,h.variants=u,h.defaultVariants=d,h.compoundSlots=i,h.compoundVariants=y,h};const zu=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},Pu=(e,t)=>({classGroupId:e,validator:t}),ma=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),zn="-",Ls=[],Iu="arbitrary..",Mu=e=>{const t=Lu(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return $u(i);const a=i.split(zn),c=a[0]===""&&a.length>1?1:0;return ba(a,c,t)},getConflictingClassGroupIds:(i,a)=>{if(a){const c=n[i],l=r[i];return c?l?zu(l,c):c:l||Ls}return r[i]||Ls}}},ba=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],s=r.nextPart.get(o);if(s){const l=ba(e,t+1,s);if(l)return l}const i=r.validators;if(i===null)return;const a=t===0?e.join(zn):e.slice(t).join(zn),c=i.length;for(let l=0;l<c;l++){const u=i[l];if(u.validator(a))return u.classGroupId}},$u=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?Iu+n:void 0})(),Lu=e=>{const{theme:t,classGroups:r}=e;return Ou(r,t)},Ou=(e,t)=>{const r=ma();for(const n in e){const o=e[n];Jo(o,r,n,t)}return r},Jo=(e,t,r,n)=>{const o=e.length;for(let s=0;s<o;s++){const i=e[s];Nu(i,t,r,n)}},Nu=(e,t,r,n)=>{if(typeof e=="string"){ju(e,t,r);return}if(typeof e=="function"){Gu(e,t,r,n);return}Bu(e,t,r,n)},ju=(e,t,r)=>{const n=e===""?t:wa(t,e);n.classGroupId=r},Gu=(e,t,r,n)=>{if(Du(e)){Jo(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(Pu(r,e))},Bu=(e,t,r,n)=>{const o=Object.entries(e),s=o.length;for(let i=0;i<s;i++){const[a,c]=o[i];Jo(c,wa(t,a),r,n)}},wa=(e,t)=>{let r=e;const n=t.split(zn),o=n.length;for(let s=0;s<o;s++){const i=n[s];let a=r.nextPart.get(i);a||(a=ma(),r.nextPart.set(i,a)),r=a}return r},Du=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Vu=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(s,i)=>{r[s]=i,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(s){let i=r[s];if(i!==void 0)return i;if((i=n[s])!==void 0)return o(s,i),i},set(s,i){s in r?r[s]=i:o(s,i)}}},_o="!",Os=":",Fu=[],Ns=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),qu=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const s=[];let i=0,a=0,c=0,l;const u=o.length;for(let y=0;y<u;y++){const h=o[y];if(i===0&&a===0){if(h===Os){s.push(o.slice(c,y)),c=y+1;continue}if(h==="/"){l=y;continue}}h==="["?i++:h==="]"?i--:h==="("?a++:h===")"&&a--}const d=s.length===0?o:o.slice(c);let f=d,v=!1;d.endsWith(_o)?(f=d.slice(0,-1),v=!0):d.startsWith(_o)&&(f=d.slice(1),v=!0);const g=l&&l>c?l-c:void 0;return Ns(s,v,f,g)};if(t){const o=t+Os,s=n;n=i=>i.startsWith(o)?s(i.slice(o.length)):Ns(Fu,!1,i,void 0,!0)}if(r){const o=n;n=s=>r({className:s,parseClassName:o})}return n},Wu=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let s=0;s<r.length;s++){const i=r[s],a=i[0]==="[",c=t.has(i);a||c?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(i)):o.push(i)}return o.length>0&&(o.sort(),n.push(...o)),n}},Uu=e=>({cache:Vu(e.cacheSize),parseClassName:qu(e),sortModifiers:Wu(e),...Mu(e)}),Zu=/\s+/,Hu=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],a=e.trim().split(Zu);let c="";for(let l=a.length-1;l>=0;l-=1){const u=a[l],{isExternal:d,modifiers:f,hasImportantModifier:v,baseClassName:g,maybePostfixModifierPosition:y}=r(u);if(d){c=u+(c.length>0?" "+c:c);continue}let h=!!y,m=n(h?g.substring(0,y):g);if(!m){if(!h){c=u+(c.length>0?" "+c:c);continue}if(m=n(g),!m){c=u+(c.length>0?" "+c:c);continue}h=!1}const k=f.length===0?"":f.length===1?f[0]:s(f).join(":"),_=v?k+_o:k,x=_+m;if(i.indexOf(x)>-1)continue;i.push(x);const A=o(m,h);for(let w=0;w<A.length;++w){const R=A[w];i.push(_+R)}c=u+(c.length>0?" "+c:c)}return c},Ku=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=xa(r))&&(o&&(o+=" "),o+=n);return o},xa=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=xa(e[n]))&&(r&&(r+=" "),r+=t);return r},Yu=(e,...t)=>{let r,n,o,s;const i=c=>{const l=t.reduce((u,d)=>d(u),e());return r=Uu(l),n=r.cache.get,o=r.cache.set,s=a,a(c)},a=c=>{const l=n(c);if(l)return l;const u=Hu(c,r);return o(c,u),u};return s=i,(...c)=>s(Ku(...c))},Ju=[],we=e=>{const t=r=>r[e]||Ju;return t.isThemeGetter=!0,t},ya=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ka=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Qu=/^\d+\/\d+$/,Xu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ef=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,tf=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,rf=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nf=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,vr=e=>Qu.test(e),Q=e=>!!e&&!Number.isNaN(Number(e)),Lt=e=>!!e&&Number.isInteger(Number(e)),Jn=e=>e.endsWith("%")&&Q(e.slice(0,-1)),xt=e=>Xu.test(e),_a=()=>!0,of=e=>ef.test(e)&&!tf.test(e),Qo=()=>!1,sf=e=>rf.test(e),af=e=>nf.test(e),lf=e=>!L(e)&&!O(e),cf=e=>Ut(e,Ca,Qo),L=e=>ya.test(e),Kt=e=>Ut(e,Ea,of),js=e=>Ut(e,mf,Q),uf=e=>Ut(e,Ra,_a),ff=e=>Ut(e,Ta,Qo),Gs=e=>Ut(e,Sa,Qo),df=e=>Ut(e,Aa,af),yn=e=>Ut(e,za,sf),O=e=>ka.test(e),Vr=e=>pr(e,Ea),pf=e=>pr(e,Ta),Bs=e=>pr(e,Sa),hf=e=>pr(e,Ca),gf=e=>pr(e,Aa),kn=e=>pr(e,za,!0),vf=e=>pr(e,Ra,!0),Ut=(e,t,r)=>{const n=ya.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},pr=(e,t,r=!1)=>{const n=ka.exec(e);return n?n[1]?t(n[1]):r:!1},Sa=e=>e==="position"||e==="percentage",Aa=e=>e==="image"||e==="url",Ca=e=>e==="length"||e==="size"||e==="bg-size",Ea=e=>e==="length",mf=e=>e==="number",Ta=e=>e==="family-name",Ra=e=>e==="number"||e==="weight",za=e=>e==="shadow",bf=()=>{const e=we("color"),t=we("font"),r=we("text"),n=we("font-weight"),o=we("tracking"),s=we("leading"),i=we("breakpoint"),a=we("container"),c=we("spacing"),l=we("radius"),u=we("shadow"),d=we("inset-shadow"),f=we("text-shadow"),v=we("drop-shadow"),g=we("blur"),y=we("perspective"),h=we("aspect"),m=we("ease"),k=we("animate"),_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],A=()=>[...x(),O,L],w=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],E=()=>[O,L,c],W=()=>[vr,"full","auto",...E()],q=()=>[Lt,"none","subgrid",O,L],Y=()=>["auto",{span:["full",Lt,O,L]},Lt,O,L],P=()=>[Lt,"auto",O,L],B=()=>["auto","min","max","fr",O,L],D=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],V=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...E()],Z=()=>[vr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],S=()=>[e,O,L],U=()=>[...x(),Bs,Gs,{position:[O,L]}],le=()=>["no-repeat",{repeat:["","x","y","space","round"]}],z=()=>["auto","cover","contain",hf,cf,{size:[O,L]}],I=()=>[Jn,Vr,Kt],j=()=>["","none","full",l,O,L],J=()=>["",Q,Vr,Kt],de=()=>["solid","dashed","dotted","double"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fe=()=>[Q,Jn,Bs,Gs],mt=()=>["","none",g,O,L],bt=()=>["none",Q,O,L],at=()=>["none",Q,O,L],wt=()=>[Q,O,L],Je=()=>[vr,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[xt],breakpoint:[xt],color:[_a],container:[xt],"drop-shadow":[xt],ease:["in","out","in-out"],font:[lf],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[xt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[xt],shadow:[xt],spacing:["px",Q],text:[xt],"text-shadow":[xt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",vr,L,O,h]}],container:["container"],columns:[{columns:[Q,L,O,a]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:A()}],overflow:[{overflow:w()}],"overflow-x":[{"overflow-x":w()}],"overflow-y":[{"overflow-y":w()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:W()}],"inset-x":[{"inset-x":W()}],"inset-y":[{"inset-y":W()}],start:[{start:W()}],end:[{end:W()}],top:[{top:W()}],right:[{right:W()}],bottom:[{bottom:W()}],left:[{left:W()}],visibility:["visible","invisible","collapse"],z:[{z:[Lt,"auto",O,L]}],basis:[{basis:[vr,"full","auto",a,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Q,vr,"auto","initial","none",L]}],grow:[{grow:["",Q,O,L]}],shrink:[{shrink:["",Q,O,L]}],order:[{order:[Lt,"first","last","none",O,L]}],"grid-cols":[{"grid-cols":q()}],"col-start-end":[{col:Y()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":q()}],"row-start-end":[{row:Y()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":B()}],"auto-rows":[{"auto-rows":B()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...D(),"normal"]}],"justify-items":[{"justify-items":[...V(),"normal"]}],"justify-self":[{"justify-self":["auto",...V()]}],"align-content":[{content:["normal",...D()]}],"align-items":[{items:[...V(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...V(),{baseline:["","last"]}]}],"place-content":[{"place-content":D()}],"place-items":[{"place-items":[...V(),"baseline"]}],"place-self":[{"place-self":["auto",...V()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:Z()}],w:[{w:[a,"screen",...Z()]}],"min-w":[{"min-w":[a,"screen","none",...Z()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...Z()]}],h:[{h:["screen","lh",...Z()]}],"min-h":[{"min-h":["screen","lh","none",...Z()]}],"max-h":[{"max-h":["screen","lh",...Z()]}],"font-size":[{text:["base",r,Vr,Kt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,vf,uf]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Jn,L]}],"font-family":[{font:[pf,ff,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,O,L]}],"line-clamp":[{"line-clamp":[Q,"none",O,js]}],leading:[{leading:[s,...E()]}],"list-image":[{"list-image":["none",O,L]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",O,L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:S()}],"text-color":[{text:S()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:[Q,"from-font","auto",O,Kt]}],"text-decoration-color":[{decoration:S()}],"underline-offset":[{"underline-offset":[Q,"auto",O,L]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O,L]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O,L]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:U()}],"bg-repeat":[{bg:le()}],"bg-size":[{bg:z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Lt,O,L],radial:["",O,L],conic:[Lt,O,L]},gf,df]}],"bg-color":[{bg:S()}],"gradient-from-pos":[{from:I()}],"gradient-via-pos":[{via:I()}],"gradient-to-pos":[{to:I()}],"gradient-from":[{from:S()}],"gradient-via":[{via:S()}],"gradient-to":[{to:S()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...de(),"hidden","none"]}],"divide-style":[{divide:[...de(),"hidden","none"]}],"border-color":[{border:S()}],"border-color-x":[{"border-x":S()}],"border-color-y":[{"border-y":S()}],"border-color-s":[{"border-s":S()}],"border-color-e":[{"border-e":S()}],"border-color-t":[{"border-t":S()}],"border-color-r":[{"border-r":S()}],"border-color-b":[{"border-b":S()}],"border-color-l":[{"border-l":S()}],"divide-color":[{divide:S()}],"outline-style":[{outline:[...de(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Q,O,L]}],"outline-w":[{outline:["",Q,Vr,Kt]}],"outline-color":[{outline:S()}],shadow:[{shadow:["","none",u,kn,yn]}],"shadow-color":[{shadow:S()}],"inset-shadow":[{"inset-shadow":["none",d,kn,yn]}],"inset-shadow-color":[{"inset-shadow":S()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:S()}],"ring-offset-w":[{"ring-offset":[Q,Kt]}],"ring-offset-color":[{"ring-offset":S()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":S()}],"text-shadow":[{"text-shadow":["none",f,kn,yn]}],"text-shadow-color":[{"text-shadow":S()}],opacity:[{opacity:[Q,O,L]}],"mix-blend":[{"mix-blend":[...ye(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ye()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Q]}],"mask-image-linear-from-pos":[{"mask-linear-from":fe()}],"mask-image-linear-to-pos":[{"mask-linear-to":fe()}],"mask-image-linear-from-color":[{"mask-linear-from":S()}],"mask-image-linear-to-color":[{"mask-linear-to":S()}],"mask-image-t-from-pos":[{"mask-t-from":fe()}],"mask-image-t-to-pos":[{"mask-t-to":fe()}],"mask-image-t-from-color":[{"mask-t-from":S()}],"mask-image-t-to-color":[{"mask-t-to":S()}],"mask-image-r-from-pos":[{"mask-r-from":fe()}],"mask-image-r-to-pos":[{"mask-r-to":fe()}],"mask-image-r-from-color":[{"mask-r-from":S()}],"mask-image-r-to-color":[{"mask-r-to":S()}],"mask-image-b-from-pos":[{"mask-b-from":fe()}],"mask-image-b-to-pos":[{"mask-b-to":fe()}],"mask-image-b-from-color":[{"mask-b-from":S()}],"mask-image-b-to-color":[{"mask-b-to":S()}],"mask-image-l-from-pos":[{"mask-l-from":fe()}],"mask-image-l-to-pos":[{"mask-l-to":fe()}],"mask-image-l-from-color":[{"mask-l-from":S()}],"mask-image-l-to-color":[{"mask-l-to":S()}],"mask-image-x-from-pos":[{"mask-x-from":fe()}],"mask-image-x-to-pos":[{"mask-x-to":fe()}],"mask-image-x-from-color":[{"mask-x-from":S()}],"mask-image-x-to-color":[{"mask-x-to":S()}],"mask-image-y-from-pos":[{"mask-y-from":fe()}],"mask-image-y-to-pos":[{"mask-y-to":fe()}],"mask-image-y-from-color":[{"mask-y-from":S()}],"mask-image-y-to-color":[{"mask-y-to":S()}],"mask-image-radial":[{"mask-radial":[O,L]}],"mask-image-radial-from-pos":[{"mask-radial-from":fe()}],"mask-image-radial-to-pos":[{"mask-radial-to":fe()}],"mask-image-radial-from-color":[{"mask-radial-from":S()}],"mask-image-radial-to-color":[{"mask-radial-to":S()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":x()}],"mask-image-conic-pos":[{"mask-conic":[Q]}],"mask-image-conic-from-pos":[{"mask-conic-from":fe()}],"mask-image-conic-to-pos":[{"mask-conic-to":fe()}],"mask-image-conic-from-color":[{"mask-conic-from":S()}],"mask-image-conic-to-color":[{"mask-conic-to":S()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:U()}],"mask-repeat":[{mask:le()}],"mask-size":[{mask:z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",O,L]}],filter:[{filter:["","none",O,L]}],blur:[{blur:mt()}],brightness:[{brightness:[Q,O,L]}],contrast:[{contrast:[Q,O,L]}],"drop-shadow":[{"drop-shadow":["","none",v,kn,yn]}],"drop-shadow-color":[{"drop-shadow":S()}],grayscale:[{grayscale:["",Q,O,L]}],"hue-rotate":[{"hue-rotate":[Q,O,L]}],invert:[{invert:["",Q,O,L]}],saturate:[{saturate:[Q,O,L]}],sepia:[{sepia:["",Q,O,L]}],"backdrop-filter":[{"backdrop-filter":["","none",O,L]}],"backdrop-blur":[{"backdrop-blur":mt()}],"backdrop-brightness":[{"backdrop-brightness":[Q,O,L]}],"backdrop-contrast":[{"backdrop-contrast":[Q,O,L]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Q,O,L]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Q,O,L]}],"backdrop-invert":[{"backdrop-invert":["",Q,O,L]}],"backdrop-opacity":[{"backdrop-opacity":[Q,O,L]}],"backdrop-saturate":[{"backdrop-saturate":[Q,O,L]}],"backdrop-sepia":[{"backdrop-sepia":["",Q,O,L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",O,L]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Q,"initial",O,L]}],ease:[{ease:["linear","initial",m,O,L]}],delay:[{delay:[Q,O,L]}],animate:[{animate:["none",k,O,L]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,O,L]}],"perspective-origin":[{"perspective-origin":A()}],rotate:[{rotate:bt()}],"rotate-x":[{"rotate-x":bt()}],"rotate-y":[{"rotate-y":bt()}],"rotate-z":[{"rotate-z":bt()}],scale:[{scale:at()}],"scale-x":[{"scale-x":at()}],"scale-y":[{"scale-y":at()}],"scale-z":[{"scale-z":at()}],"scale-3d":["scale-3d"],skew:[{skew:wt()}],"skew-x":[{"skew-x":wt()}],"skew-y":[{"skew-y":wt()}],transform:[{transform:[O,L,"","none","gpu","cpu"]}],"transform-origin":[{origin:A()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Je()}],"translate-x":[{"translate-x":Je()}],"translate-y":[{"translate-y":Je()}],"translate-z":[{"translate-z":Je()}],"translate-none":["translate-none"],accent:[{accent:S()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:S()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O,L]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",O,L]}],fill:[{fill:["none",...S()]}],"stroke-w":[{stroke:[Q,Vr,Kt,js]}],stroke:[{stroke:["none",...S()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},wf=Yu(bf);function Xo(...e){return wf(Ji(e))}va({base:"inline-flex items-center rounded-md border px-2 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground shadow",outline:"text-foreground"}},defaultVariants:{variant:"default"}});var xf=K("<div></div>");function yf(e,t){ot(t,!0);let r=Wt(t,"orientation",3,"horizontal"),n=Ho(t,["$$slots","$$events","$$legacy","class","orientation"]);var o=xf();Uo(o,s=>({role:"separator","aria-orientation":r(),class:s,...n}),[()=>Xo("shrink-0 bg-border",r()==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",t.class)]),G(e,o),st()}function kf(e){const r=/Z|[+-]\d{2}:?\d{2}$/.test(e)?e:e+"Z",n=Date.now()-new Date(r).getTime(),o=Math.floor(n/1e3);if(o<60)return`${o}s ago`;const s=Math.floor(o/60);if(s<60)return`${s}m ago`;const i=Math.floor(s/60);return i<24?`${i}h ago`:`${Math.floor(i/24)}d ago`}var _f=K('<button class="p-1 rounded hover:bg-secondary transition-colors md:hidden shrink-0" aria-label="Open channels"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="4" x2="20" y1="12" y2="12"></line><line x1="4" x2="20" y1="6" y2="6"></line><line x1="4" x2="20" y1="18" y2="18"></line></svg></button>'),Sf=Ki('<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-muted-foreground/40"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg>'),Af=K('<!> <span class="text-xs text-muted-foreground truncate hidden sm:block"> </span>',1),Cf=K('<div class="flex items-center gap-3 px-4 h-12 border-b border-border shrink-0"><!> <span class="text-muted-foreground/60">#</span> <span class="font-semibold text-sm"> </span> <!> <!> <div class="ml-auto flex items-center gap-2"><span class="text-[10px] text-muted-foreground hidden sm:block"> </span> <div class="flex items-center bg-muted/50 rounded-md p-0.5 text-[11px]"><button>Pretty</button> <button></button></div></div></div>');function Ef(e,t){ot(t,!0);let r=Wt(t,"viewMode",15,"pretty");var n=Cf(),o=N(n);{var s=k=>{var _=_f();Ce("click",_,function(...x){var A;(A=t.onMenuClick)==null||A.apply(this,x)}),G(k,_)};pe(o,k=>{t.onMenuClick&&k(s)})}var i=H(o,4),a=N(i),c=H(i,2);{var l=k=>{var _=Sf();G(k,_)};pe(c,k=>{t.channel.is_public||k(l)})}var u=H(c,2);{var d=k=>{var _=Af(),x=Se(_);yf(x,{orientation:"vertical",class:"h-4"});var A=H(x,2),w=N(A);ge(()=>ve(w,t.channel.description)),G(k,_)};pe(u,k=>{t.channel.description&&k(d)})}var f=H(u,2),v=N(f),g=N(v),y=H(v,2),h=N(y),m=H(h,2);m.textContent="{ }",ge(()=>{ve(a,t.channel.name),ve(g,`${t.channel.event_count??""} events`),Et(h,1,`px-2 py-0.5 rounded transition-colors ${r()==="pretty"?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`),Et(m,1,`px-2 py-0.5 rounded transition-colors font-mono ${r()==="raw"?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`)}),Ce("click",h,()=>r("pretty")),Ce("click",m,()=>r("raw")),G(e,n),st()}Ir(["click"]);function es(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var hr=es();function Pa(e){hr=e}var Jr={exec:()=>null};function ue(e,t=""){let r=typeof e=="string"?e:e.source;const n={replace:(o,s)=>{let i=typeof s=="string"?s:s.source;return i=i.replace(Pe.caret,"$1"),r=r.replace(o,i),n},getRegex:()=>new RegExp(r,t)};return n}var Pe={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Tf=/^(?:[ \t]*(?:\n|$))+/,Rf=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,zf=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,pn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Pf=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ts=/(?:[*+-]|\d{1,9}[.)])/,Ia=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ma=ue(Ia).replace(/bull/g,ts).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),If=ue(Ia).replace(/bull/g,ts).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),rs=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Mf=/^[^\n]+/,ns=/(?!\s*\])(?:\\.|[^\[\]\\])+/,$f=ue(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ns).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Lf=ue(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ts).getRegex(),Bn="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",os=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Of=ue("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",os).replace("tag",Bn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),$a=ue(rs).replace("hr",pn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Bn).getRegex(),Nf=ue(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",$a).getRegex(),ss={blockquote:Nf,code:Rf,def:$f,fences:zf,heading:Pf,hr:pn,html:Of,lheading:Ma,list:Lf,newline:Tf,paragraph:$a,table:Jr,text:Mf},Ds=ue("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",pn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Bn).getRegex(),jf={...ss,lheading:If,table:Ds,paragraph:ue(rs).replace("hr",pn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ds).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Bn).getRegex()},Gf={...ss,html:ue(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",os).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Jr,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ue(rs).replace("hr",pn).replace("heading",` *#{1,6} *[^
5
- ]`).replace("lheading",Ma).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Bf=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Df=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,La=/^( {2,}|\\)\n(?!\s*$)/,Vf=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Dn=/[\p{P}\p{S}]/u,is=/[\s\p{P}\p{S}]/u,Oa=/[^\s\p{P}\p{S}]/u,Ff=ue(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,is).getRegex(),Na=/(?!~)[\p{P}\p{S}]/u,qf=/(?!~)[\s\p{P}\p{S}]/u,Wf=/(?:[^\s\p{P}\p{S}]|~)/u,Uf=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,ja=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Zf=ue(ja,"u").replace(/punct/g,Dn).getRegex(),Hf=ue(ja,"u").replace(/punct/g,Na).getRegex(),Ga="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Kf=ue(Ga,"gu").replace(/notPunctSpace/g,Oa).replace(/punctSpace/g,is).replace(/punct/g,Dn).getRegex(),Yf=ue(Ga,"gu").replace(/notPunctSpace/g,Wf).replace(/punctSpace/g,qf).replace(/punct/g,Na).getRegex(),Jf=ue("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Oa).replace(/punctSpace/g,is).replace(/punct/g,Dn).getRegex(),Qf=ue(/\\(punct)/,"gu").replace(/punct/g,Dn).getRegex(),Xf=ue(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ed=ue(os).replace("(?:-->|$)","-->").getRegex(),td=ue("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ed).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Pn=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,rd=ue(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Pn).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ba=ue(/^!?\[(label)\]\[(ref)\]/).replace("label",Pn).replace("ref",ns).getRegex(),Da=ue(/^!?\[(ref)\](?:\[\])?/).replace("ref",ns).getRegex(),nd=ue("reflink|nolink(?!\\()","g").replace("reflink",Ba).replace("nolink",Da).getRegex(),as={_backpedal:Jr,anyPunctuation:Qf,autolink:Xf,blockSkip:Uf,br:La,code:Df,del:Jr,emStrongLDelim:Zf,emStrongRDelimAst:Kf,emStrongRDelimUnd:Jf,escape:Bf,link:rd,nolink:Da,punctuation:Ff,reflink:Ba,reflinkSearch:nd,tag:td,text:Vf,url:Jr},od={...as,link:ue(/^!?\[(label)\]\((.*?)\)/).replace("label",Pn).getRegex(),reflink:ue(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Pn).getRegex()},So={...as,emStrongRDelimAst:Yf,emStrongLDelim:Hf,url:ue(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},sd={...So,br:ue(La).replace("{2,}","*").getRegex(),text:ue(So.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},_n={normal:ss,gfm:jf,pedantic:Gf},Fr={normal:as,gfm:So,breaks:sd,pedantic:od},id={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Vs=e=>id[e];function lt(e,t){if(t){if(Pe.escapeTest.test(e))return e.replace(Pe.escapeReplace,Vs)}else if(Pe.escapeTestNoEncode.test(e))return e.replace(Pe.escapeReplaceNoEncode,Vs);return e}function Fs(e){try{e=encodeURI(e).replace(Pe.percentDecode,"%")}catch{return null}return e}function qs(e,t){var s;const r=e.replace(Pe.findPipe,(i,a,c)=>{let l=!1,u=a;for(;--u>=0&&c[u]==="\\";)l=!l;return l?"|":" |"}),n=r.split(Pe.splitPipe);let o=0;if(n[0].trim()||n.shift(),n.length>0&&!((s=n.at(-1))!=null&&s.trim())&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(Pe.slashPipe,"|");return n}function qr(e,t,r){const n=e.length;if(n===0)return"";let o=0;for(;o<n&&e.charAt(n-o-1)===t;)o++;return e.slice(0,n-o)}function ad(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}function Ws(e,t,r,n,o){const s=t.href,i=t.title||null,a=e[1].replace(o.other.outputLinkReplace,"$1");n.state.inLink=!0;const c={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:s,title:i,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,c}function ld(e,t,r){const n=e.match(r.other.indentCodeCompensation);if(n===null)return t;const o=n[1];return t.split(`
6
- `).map(s=>{const i=s.match(r.other.beginningSpace);if(i===null)return s;const[a]=i;return a.length>=o.length?s.slice(o.length):s}).join(`
7
- `)}var In=class{constructor(e){te(this,"options");te(this,"rules");te(this,"lexer");this.options=e||hr}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const r=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:qr(r,`
8
- `)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const r=t[0],n=ld(r,t[3]||"",this.rules);return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(this.rules.other.endingHash.test(r)){const n=qr(r,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(r=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:qr(t[0],`
9
- `)}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let r=qr(t[0],`
10
- `).split(`
11
- `),n="",o="";const s=[];for(;r.length>0;){let i=!1;const a=[];let c;for(c=0;c<r.length;c++)if(this.rules.other.blockquoteStart.test(r[c]))a.push(r[c]),i=!0;else if(!i)a.push(r[c]);else break;r=r.slice(c);const l=a.join(`
12
- `),u=l.replace(this.rules.other.blockquoteSetextReplace,`
13
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
14
- ${l}`:l,o=o?`${o}
15
- ${u}`:u;const d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,s,!0),this.lexer.state.top=d,r.length===0)break;const f=s.at(-1);if((f==null?void 0:f.type)==="code")break;if((f==null?void 0:f.type)==="blockquote"){const v=f,g=v.raw+`
16
- `+r.join(`
17
- `),y=this.blockquote(g);s[s.length-1]=y,n=n.substring(0,n.length-v.raw.length)+y.raw,o=o.substring(0,o.length-v.text.length)+y.text;break}else if((f==null?void 0:f.type)==="list"){const v=f,g=v.raw+`
18
- `+r.join(`
19
- `),y=this.list(g);s[s.length-1]=y,n=n.substring(0,n.length-f.raw.length)+y.raw,o=o.substring(0,o.length-v.raw.length)+y.raw,r=g.substring(s.at(-1).raw.length).split(`
20
- `);continue}}return{type:"blockquote",raw:n,tokens:s,text:o}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim();const n=r.length>1,o={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");const s=this.rules.other.listItemRegex(r);let i=!1;for(;e;){let c=!1,l="",u="";if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;l=t[0],e=e.substring(l.length);let d=t[2].split(`
21
- `,1)[0].replace(this.rules.other.listReplaceTabs,m=>" ".repeat(3*m.length)),f=e.split(`
22
- `,1)[0],v=!d.trim(),g=0;if(this.options.pedantic?(g=2,u=d.trimStart()):v?g=t[1].length+1:(g=t[2].search(this.rules.other.nonSpaceChar),g=g>4?1:g,u=d.slice(g),g+=t[1].length),v&&this.rules.other.blankLine.test(f)&&(l+=f+`
23
- `,e=e.substring(f.length+1),c=!0),!c){const m=this.rules.other.nextBulletRegex(g),k=this.rules.other.hrRegex(g),_=this.rules.other.fencesBeginRegex(g),x=this.rules.other.headingBeginRegex(g),A=this.rules.other.htmlBeginRegex(g);for(;e;){const w=e.split(`
24
- `,1)[0];let R;if(f=w,this.options.pedantic?(f=f.replace(this.rules.other.listReplaceNesting," "),R=f):R=f.replace(this.rules.other.tabCharGlobal," "),_.test(f)||x.test(f)||A.test(f)||m.test(f)||k.test(f))break;if(R.search(this.rules.other.nonSpaceChar)>=g||!f.trim())u+=`
25
- `+R.slice(g);else{if(v||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||_.test(d)||x.test(d)||k.test(d))break;u+=`
26
- `+f}!v&&!f.trim()&&(v=!0),l+=w+`
27
- `,e=e.substring(w.length+1),d=R.slice(g)}}o.loose||(i?o.loose=!0:this.rules.other.doubleBlankLine.test(l)&&(i=!0));let y=null,h;this.options.gfm&&(y=this.rules.other.listIsTask.exec(u),y&&(h=y[0]!=="[ ] ",u=u.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:l,task:!!y,checked:h,loose:!1,text:u,tokens:[]}),o.raw+=l}const a=o.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let c=0;c<o.items.length;c++)if(this.lexer.state.top=!1,o.items[c].tokens=this.lexer.blockTokens(o.items[c].text,[]),!o.loose){const l=o.items[c].tokens.filter(d=>d.type==="space"),u=l.length>0&&l.some(d=>this.rules.other.anyLine.test(d.raw));o.loose=u}if(o.loose)for(let c=0;c<o.items.length;c++)o.items[c].loose=!0;return o}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const r=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:r,raw:t[0],href:n,title:o}}}table(e){var i;const t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;const r=qs(t[1]),n=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=(i=t[3])!=null&&i.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
28
- `):[],s={type:"table",raw:t[0],header:[],align:[],rows:[]};if(r.length===n.length){for(const a of n)this.rules.other.tableAlignRight.test(a)?s.align.push("right"):this.rules.other.tableAlignCenter.test(a)?s.align.push("center"):this.rules.other.tableAlignLeft.test(a)?s.align.push("left"):s.align.push(null);for(let a=0;a<r.length;a++)s.header.push({text:r[a],tokens:this.lexer.inline(r[a]),header:!0,align:s.align[a]});for(const a of o)s.rows.push(qs(a,s.header.length).map((c,l)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:s.align[l]})));return s}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const r=t[1].charAt(t[1].length-1)===`
29
- `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const s=qr(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{const s=ad(t[2],"()");if(s===-2)return;if(s>-1){const a=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let n=t[2],o="";if(this.options.pedantic){const s=this.rules.other.pedanticHrefTitle.exec(n);s&&(n=s[1],o=s[3])}else o=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?n=n.slice(1):n=n.slice(1,-1)),Ws(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){const n=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=t[n.toLowerCase()];if(!o){const s=r[0].charAt(0);return{type:"text",raw:s,text:s}}return Ws(r,o,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!n||n[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(n[1]||n[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const s=[...n[0]].length-1;let i,a,c=s,l=0;const u=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+s);(n=u.exec(t))!=null;){if(i=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!i)continue;if(a=[...i].length,n[3]||n[4]){c+=a;continue}else if((n[5]||n[6])&&s%3&&!((s+a)%3)){l+=a;continue}if(c-=a,c>0)continue;a=Math.min(a,a+c+l);const d=[...n[0]][0].length,f=e.slice(0,s+n.index+d+a);if(Math.min(s,a)%2){const g=f.slice(1,-1);return{type:"em",raw:f,text:g,tokens:this.lexer.inlineTokens(g)}}const v=f.slice(2,-2);return{type:"strong",raw:f,text:v,tokens:this.lexer.inlineTokens(v)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(this.rules.other.newLineCharGlobal," ");const n=this.rules.other.nonSpaceChar.test(r),o=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return n&&o&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:t[0],text:r}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let r,n;return t[2]==="@"?(r=t[1],n="mailto:"+r):(r=t[1],n=r),{type:"link",raw:t[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}}}url(e){var r;let t;if(t=this.rules.inline.url.exec(e)){let n,o;if(t[2]==="@")n=t[0],o="mailto:"+n;else{let s;do s=t[0],t[0]=((r=this.rules.inline._backpedal.exec(t[0]))==null?void 0:r[0])??"";while(s!==t[0]);n=t[0],t[1]==="www."?o="http://"+t[0]:o=t[0]}return{type:"link",raw:t[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){const r=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:r}}}},Tt=class Ao{constructor(t){te(this,"tokens");te(this,"options");te(this,"state");te(this,"tokenizer");te(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||hr,this.options.tokenizer=this.options.tokenizer||new In,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const r={other:Pe,block:_n.normal,inline:Fr.normal};this.options.pedantic?(r.block=_n.pedantic,r.inline=Fr.pedantic):this.options.gfm&&(r.block=_n.gfm,this.options.breaks?r.inline=Fr.breaks:r.inline=Fr.gfm),this.tokenizer.rules=r}static get rules(){return{block:_n,inline:Fr}}static lex(t,r){return new Ao(r).lex(t)}static lexInline(t,r){return new Ao(r).inlineTokens(t)}lex(t){t=t.replace(Pe.carriageReturn,`
30
- `),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){const n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],n=!1){var o,s,i;for(this.options.pedantic&&(t=t.replace(Pe.tabCharGlobal," ").replace(Pe.spaceLine,""));t;){let a;if((s=(o=this.options.extensions)==null?void 0:o.block)!=null&&s.some(l=>(a=l.call({lexer:this},t,r))?(t=t.substring(a.raw.length),r.push(a),!0):!1))continue;if(a=this.tokenizer.space(t)){t=t.substring(a.raw.length);const l=r.at(-1);a.raw.length===1&&l!==void 0?l.raw+=`
31
- `:r.push(a);continue}if(a=this.tokenizer.code(t)){t=t.substring(a.raw.length);const l=r.at(-1);(l==null?void 0:l.type)==="paragraph"||(l==null?void 0:l.type)==="text"?(l.raw+=`
32
- `+a.raw,l.text+=`
33
- `+a.text,this.inlineQueue.at(-1).src=l.text):r.push(a);continue}if(a=this.tokenizer.fences(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.heading(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.hr(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.blockquote(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.list(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.html(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.def(t)){t=t.substring(a.raw.length);const l=r.at(-1);(l==null?void 0:l.type)==="paragraph"||(l==null?void 0:l.type)==="text"?(l.raw+=`
34
- `+a.raw,l.text+=`
35
- `+a.raw,this.inlineQueue.at(-1).src=l.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title});continue}if(a=this.tokenizer.table(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.lheading(t)){t=t.substring(a.raw.length),r.push(a);continue}let c=t;if((i=this.options.extensions)!=null&&i.startBlock){let l=1/0;const u=t.slice(1);let d;this.options.extensions.startBlock.forEach(f=>{d=f.call({lexer:this},u),typeof d=="number"&&d>=0&&(l=Math.min(l,d))}),l<1/0&&l>=0&&(c=t.substring(0,l+1))}if(this.state.top&&(a=this.tokenizer.paragraph(c))){const l=r.at(-1);n&&(l==null?void 0:l.type)==="paragraph"?(l.raw+=`
36
- `+a.raw,l.text+=`
37
- `+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):r.push(a),n=c.length!==t.length,t=t.substring(a.raw.length);continue}if(a=this.tokenizer.text(t)){t=t.substring(a.raw.length);const l=r.at(-1);(l==null?void 0:l.type)==="text"?(l.raw+=`
38
- `+a.raw,l.text+=`
39
- `+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):r.push(a);continue}if(t){const l="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var a,c,l;let n=t,o=null;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)u.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,o.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(o=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let s=!1,i="";for(;t;){s||(i=""),s=!1;let u;if((c=(a=this.options.extensions)==null?void 0:a.inline)!=null&&c.some(f=>(u=f.call({lexer:this},t,r))?(t=t.substring(u.raw.length),r.push(u),!0):!1))continue;if(u=this.tokenizer.escape(t)){t=t.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.tag(t)){t=t.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.link(t)){t=t.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(u.raw.length);const f=r.at(-1);u.type==="text"&&(f==null?void 0:f.type)==="text"?(f.raw+=u.raw,f.text+=u.text):r.push(u);continue}if(u=this.tokenizer.emStrong(t,n,i)){t=t.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.codespan(t)){t=t.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.br(t)){t=t.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.del(t)){t=t.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.autolink(t)){t=t.substring(u.raw.length),r.push(u);continue}if(!this.state.inLink&&(u=this.tokenizer.url(t))){t=t.substring(u.raw.length),r.push(u);continue}let d=t;if((l=this.options.extensions)!=null&&l.startInline){let f=1/0;const v=t.slice(1);let g;this.options.extensions.startInline.forEach(y=>{g=y.call({lexer:this},v),typeof g=="number"&&g>=0&&(f=Math.min(f,g))}),f<1/0&&f>=0&&(d=t.substring(0,f+1))}if(u=this.tokenizer.inlineText(d)){t=t.substring(u.raw.length),u.raw.slice(-1)!=="_"&&(i=u.raw.slice(-1)),s=!0;const f=r.at(-1);(f==null?void 0:f.type)==="text"?(f.raw+=u.raw,f.text+=u.text):r.push(u);continue}if(t){const f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return r}},Mn=class{constructor(e){te(this,"options");te(this,"parser");this.options=e||hr}space(e){return""}code({text:e,lang:t,escaped:r}){var s;const n=(s=(t||"").match(Pe.notSpaceStart))==null?void 0:s[0],o=e.replace(Pe.endingNewline,"")+`
40
- `;return n?'<pre><code class="language-'+lt(n)+'">'+(r?o:lt(o,!0))+`</code></pre>
41
- `:"<pre><code>"+(r?o:lt(o,!0))+`</code></pre>
42
- `}blockquote({tokens:e}){return`<blockquote>
43
- ${this.parser.parse(e)}</blockquote>
44
- `}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
45
- `}hr(e){return`<hr>
46
- `}list(e){const t=e.ordered,r=e.start;let n="";for(let i=0;i<e.items.length;i++){const a=e.items[i];n+=this.listitem(a)}const o=t?"ol":"ul",s=t&&r!==1?' start="'+r+'"':"";return"<"+o+s+`>
47
- `+n+"</"+o+`>
48
- `}listitem(e){var r;let t="";if(e.task){const n=this.checkbox({checked:!!e.checked});e.loose?((r=e.tokens[0])==null?void 0:r.type)==="paragraph"?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=n+" "+lt(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
49
- `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
50
- `}table(e){let t="",r="";for(let o=0;o<e.header.length;o++)r+=this.tablecell(e.header[o]);t+=this.tablerow({text:r});let n="";for(let o=0;o<e.rows.length;o++){const s=e.rows[o];r="";for(let i=0;i<s.length;i++)r+=this.tablecell(s[i]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
51
- <thead>
52
- `+t+`</thead>
53
- `+n+`</table>
54
- `}tablerow({text:e}){return`<tr>
55
- ${e}</tr>
56
- `}tablecell(e){const t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>
57
- `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${lt(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){const n=this.parser.parseInline(r),o=Fs(e);if(o===null)return n;e=o;let s='<a href="'+e+'"';return t&&(s+=' title="'+lt(t)+'"'),s+=">"+n+"</a>",s}image({href:e,title:t,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));const o=Fs(e);if(o===null)return lt(r);e=o;let s=`<img src="${e}" alt="${r}"`;return t&&(s+=` title="${lt(t)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:lt(e.text)}},ls=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Rt=class Co{constructor(t){te(this,"options");te(this,"renderer");te(this,"textRenderer");this.options=t||hr,this.options.renderer=this.options.renderer||new Mn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ls}static parse(t,r){return new Co(r).parse(t)}static parseInline(t,r){return new Co(r).parseInline(t)}parse(t,r=!0){var o,s;let n="";for(let i=0;i<t.length;i++){const a=t[i];if((s=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&s[a.type]){const l=a,u=this.options.extensions.renderers[l.type].call({parser:this},l);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(l.type)){n+=u||"";continue}}const c=a;switch(c.type){case"space":{n+=this.renderer.space(c);continue}case"hr":{n+=this.renderer.hr(c);continue}case"heading":{n+=this.renderer.heading(c);continue}case"code":{n+=this.renderer.code(c);continue}case"table":{n+=this.renderer.table(c);continue}case"blockquote":{n+=this.renderer.blockquote(c);continue}case"list":{n+=this.renderer.list(c);continue}case"html":{n+=this.renderer.html(c);continue}case"paragraph":{n+=this.renderer.paragraph(c);continue}case"text":{let l=c,u=this.renderer.text(l);for(;i+1<t.length&&t[i+1].type==="text";)l=t[++i],u+=`
58
- `+this.renderer.text(l);r?n+=this.renderer.paragraph({type:"paragraph",raw:u,text:u,tokens:[{type:"text",raw:u,text:u,escaped:!0}]}):n+=u;continue}default:{const l='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}parseInline(t,r=this.renderer){var o,s;let n="";for(let i=0;i<t.length;i++){const a=t[i];if((s=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&s[a.type]){const l=this.options.extensions.renderers[a.type].call({parser:this},a);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){n+=l||"";continue}}const c=a;switch(c.type){case"escape":{n+=r.text(c);break}case"html":{n+=r.html(c);break}case"link":{n+=r.link(c);break}case"image":{n+=r.image(c);break}case"strong":{n+=r.strong(c);break}case"em":{n+=r.em(c);break}case"codespan":{n+=r.codespan(c);break}case"br":{n+=r.br(c);break}case"del":{n+=r.del(c);break}case"text":{n+=r.text(c);break}default:{const l='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}},Qn,En=(Qn=class{constructor(e){te(this,"options");te(this,"block");this.options=e||hr}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?Tt.lex:Tt.lexInline}provideParser(){return this.block?Rt.parse:Rt.parseInline}},te(Qn,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),Qn),cd=class{constructor(...e){te(this,"defaults",es());te(this,"options",this.setOptions);te(this,"parse",this.parseMarkdown(!0));te(this,"parseInline",this.parseMarkdown(!1));te(this,"Parser",Rt);te(this,"Renderer",Mn);te(this,"TextRenderer",ls);te(this,"Lexer",Tt);te(this,"Tokenizer",In);te(this,"Hooks",En);this.use(...e)}walkTokens(e,t){var n,o;let r=[];for(const s of e)switch(r=r.concat(t.call(this,s)),s.type){case"table":{const i=s;for(const a of i.header)r=r.concat(this.walkTokens(a.tokens,t));for(const a of i.rows)for(const c of a)r=r.concat(this.walkTokens(c.tokens,t));break}case"list":{const i=s;r=r.concat(this.walkTokens(i.items,t));break}default:{const i=s;(o=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&o[i.type]?this.defaults.extensions.childTokens[i.type].forEach(a=>{const c=i[a].flat(1/0);r=r.concat(this.walkTokens(c,t))}):i.tokens&&(r=r.concat(this.walkTokens(i.tokens,t)))}}return r}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{const n={...r};if(n.async=this.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){const s=t.renderers[o.name];s?t.renderers[o.name]=function(...i){let a=o.renderer.apply(this,i);return a===!1&&(a=s.apply(this,i)),a}:t.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const s=t[o.level];s?s.unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),n.extensions=t),r.renderer){const o=this.defaults.renderer||new Mn(this.defaults);for(const s in r.renderer){if(!(s in o))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;const i=s,a=r.renderer[i],c=o[i];o[i]=(...l)=>{let u=a.apply(o,l);return u===!1&&(u=c.apply(o,l)),u||""}}n.renderer=o}if(r.tokenizer){const o=this.defaults.tokenizer||new In(this.defaults);for(const s in r.tokenizer){if(!(s in o))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;const i=s,a=r.tokenizer[i],c=o[i];o[i]=(...l)=>{let u=a.apply(o,l);return u===!1&&(u=c.apply(o,l)),u}}n.tokenizer=o}if(r.hooks){const o=this.defaults.hooks||new En;for(const s in r.hooks){if(!(s in o))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;const i=s,a=r.hooks[i],c=o[i];En.passThroughHooks.has(s)?o[i]=l=>{if(this.defaults.async)return Promise.resolve(a.call(o,l)).then(d=>c.call(o,d));const u=a.call(o,l);return c.call(o,u)}:o[i]=(...l)=>{let u=a.apply(o,l);return u===!1&&(u=c.apply(o,l)),u}}n.hooks=o}if(r.walkTokens){const o=this.defaults.walkTokens,s=r.walkTokens;n.walkTokens=function(i){let a=[];return a.push(s.call(this,i)),o&&(a=a.concat(o.call(this,i))),a}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Tt.lex(e,t??this.defaults)}parser(e,t){return Rt.parse(e,t??this.defaults)}parseMarkdown(e){return(r,n)=>{const o={...n},s={...this.defaults,...o},i=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&o.async===!1)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));s.hooks&&(s.hooks.options=s,s.hooks.block=e);const a=s.hooks?s.hooks.provideLexer():e?Tt.lex:Tt.lexInline,c=s.hooks?s.hooks.provideParser():e?Rt.parse:Rt.parseInline;if(s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(r):r).then(l=>a(l,s)).then(l=>s.hooks?s.hooks.processAllTokens(l):l).then(l=>s.walkTokens?Promise.all(this.walkTokens(l,s.walkTokens)).then(()=>l):l).then(l=>c(l,s)).then(l=>s.hooks?s.hooks.postprocess(l):l).catch(i);try{s.hooks&&(r=s.hooks.preprocess(r));let l=a(r,s);s.hooks&&(l=s.hooks.processAllTokens(l)),s.walkTokens&&this.walkTokens(l,s.walkTokens);let u=c(l,s);return s.hooks&&(u=s.hooks.postprocess(u)),u}catch(l){return i(l)}}}onError(e,t){return r=>{if(r.message+=`
59
- Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An error occurred:</p><pre>"+lt(r.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(r);throw r}}},fr=new cd;function ce(e,t){return fr.parse(e,t)}ce.options=ce.setOptions=function(e){return fr.setOptions(e),ce.defaults=fr.defaults,Pa(ce.defaults),ce};ce.getDefaults=es;ce.defaults=hr;ce.use=function(...e){return fr.use(...e),ce.defaults=fr.defaults,Pa(ce.defaults),ce};ce.walkTokens=function(e,t){return fr.walkTokens(e,t)};ce.parseInline=fr.parseInline;ce.Parser=Rt;ce.parser=Rt.parse;ce.Renderer=Mn;ce.TextRenderer=ls;ce.Lexer=Tt;ce.lexer=Tt.lex;ce.Tokenizer=In;ce.Hooks=En;ce.parse=ce;ce.options;ce.setOptions;ce.use;ce.walkTokens;ce.parseInline;Rt.parse;Tt.lex;ce.setOptions({breaks:!0,gfm:!0});const ud=/[*_#\[`~>]|\n[-*] |\n\d+\. /;function fd(e){return ud.test(e)}function Us(e){return ce.parse(e,{async:!1})}function dd(e){try{const t=JSON.parse(e);return typeof t!="object"||t===null||Array.isArray(t)?null:Eo(t)}catch{return null}}function Eo(e){return Object.entries(e).map(([t,r])=>{if(typeof r=="object"&&r!==null&&!Array.isArray(r))return{kind:"group",key:t,children:Eo(r)};if(Array.isArray(r)&&r.length>0)return{kind:"list",key:t,items:r.map(s=>typeof s=="object"&&s!==null&&!Array.isArray(s)?Eo(s):[{kind:"text",key:"",value:String(s),markdown:!1,multiline:!1}])};const n=typeof r=="string"?r:JSON.stringify(r),o=n.includes(`
60
- `);return{kind:"text",key:t,value:n,markdown:fd(n),multiline:o}})}const To=(e,t=Tn,r=Tn)=>{var n=Yr(),o=Se(n);{var s=l=>{var u=vd(),d=Se(u),f=N(d),v=N(f),g=H(d,2),y=N(g);{var h=k=>{var _=pd(),x=N(_);ks(x,()=>Us(t().value)),G(k,_)},m=k=>{var _=Yr(),x=Se(_);Nt(x,17,()=>t().value.split(`
61
- `),Wr,(A,w,R)=>{var E=gd(),W=Se(E);{var q=P=>{var B=hd();G(P,B)};pe(W,P=>{R>0&&P(q)})}var Y=H(W,1,!0);ge(()=>ve(Y,p(w))),G(A,E)}),G(k,_)};pe(y,k=>{t().markdown?k(h):k(m,!1)})}ge(()=>{Yt(d,r()>0?`padding-left: ${r()*.75}rem`:""),ve(v,t().key),Yt(g,`padding-left: ${(r()+1)*.75}rem`)}),G(l,u)},i=l=>{var u=wd(),d=N(u);{var f=h=>{var m=md(),k=Se(m),_=N(k);ge(()=>ve(_,t().key)),G(h,m)};pe(d,h=>{t().key&&h(f)})}var v=H(d);{var g=h=>{var m=bd(),k=N(m);ks(k,()=>Us(t().value)),G(h,m)},y=h=>{var m=mr();ge(()=>ve(m,t().value)),G(h,m)};pe(v,h=>{t().markdown?h(g):h(y,!1)})}ge(()=>Yt(u,r()>0?`padding-left: ${r()*.75}rem`:"")),G(l,u)},a=l=>{var u=xd(),d=Se(u),f=N(d),v=N(f),g=H(d,2);Nt(g,17,()=>t().children,Wr,(y,h)=>{To(y,()=>p(h),()=>r()+1)}),ge(()=>{Yt(d,r()>0?`padding-left: ${r()*.75}rem`:""),ve(v,t().key)}),G(l,u)},c=l=>{var u=kd(),d=Se(u),f=N(d),v=N(f),g=H(d,2);Nt(g,21,()=>t().items,Wr,(y,h)=>{var m=yd(),k=N(m);{var _=A=>{var w=mr();ge(()=>ve(w,p(h)[0].value)),G(A,w)},x=A=>{var w=Yr(),R=Se(w);Nt(R,17,()=>p(h),Wr,(E,W)=>{To(E,()=>p(W),()=>r()+2)}),G(A,w)};pe(k,A=>{p(h).length===1&&p(h)[0].kind==="text"&&!p(h)[0].key?A(_):A(x,!1)})}G(y,m)}),ge(()=>{Yt(d,r()>0?`padding-left: ${r()*.75}rem`:""),ve(v,t().key),Yt(g,`padding-left: ${(r()+1)*.75}rem`)}),G(l,u)};pe(o,l=>{t().kind==="text"&&t().multiline?l(s):t().kind==="text"?l(i,1):t().kind==="group"?l(a,2):l(c,!1)})}G(e,n)};var pd=K('<span class="prose-inline"><!></span>'),hd=K("<br/>"),gd=K("<!> ",1),vd=K('<div><span class="font-semibold text-foreground/90"> </span><span class="text-foreground/50">:</span></div> <div class="break-words overflow-wrap-anywhere text-foreground/70"><!></div>',1),md=K('<span class="font-semibold text-foreground/90"> </span><span class="text-foreground/50">:</span>',1),bd=K('<span class="prose-inline"><!></span>'),wd=K('<div class="break-words overflow-wrap-anywhere"><!><!></div>'),xd=K('<div><span class="font-semibold text-foreground/90"> </span><span class="text-foreground/50">:</span></div> <!>',1),yd=K('<li class="text-foreground/80"><!></li>'),kd=K('<div><span class="font-semibold text-foreground/90"> </span><span class="text-foreground/50">:</span></div> <ol class="list-decimal list-inside"></ol>',1),_d=K('<span class="text-[10px] font-mono text-muted-foreground/60 bg-secondary/60 px-1.5 py-0 rounded"> </span>'),Sd=K('<div class="text-sm text-foreground/80 flex flex-col gap-0.5 pl-0"></div>'),Ad=K('<pre class="text-xs text-foreground/60 overflow-x-auto whitespace-pre-wrap break-all font-mono"> </pre>'),Cd=K('<div class="group py-2 px-2 hover:bg-secondary/30 rounded transition-colors"><div class="flex items-baseline gap-2 mb-0.5"><span class="font-semibold text-sm text-foreground"> </span> <!> <span class="text-[10px] text-muted-foreground/40 ml-auto shrink-0"> </span></div> <!></div>');function Ed(e,t){ot(t,!0);let r=Wt(t,"viewMode",3,"pretty"),n=ze(()=>a(t.event.data)),o=ze(()=>dd(t.event.data)),s=ze(()=>kf(t.event.created_at)),i=ze(()=>c(t.event));function a(x){try{return JSON.stringify(JSON.parse(x),null,2)}catch{return x}}function c(x){const A=x.publisher_id,w=x.publisher_name;if(!w&&!A)return null;const R=(A==null?void 0:A.indexOf(":"))??-1,E=R>0?A.slice(0,R):null;return w&&(E&&E!=="local")?`${w} (@${E})`:w||A}var l=Cd(),u=N(l),d=N(u),f=N(d),v=H(d,2);{var g=x=>{var A=_d(),w=N(A);ge(()=>ve(w,t.event.type)),G(x,A)};pe(v,x=>{t.event.type&&x(g)})}var y=H(v,2),h=N(y),m=H(u,2);{var k=x=>{var A=Sd();Nt(A,21,()=>p(o),Wr,(w,R)=>{To(w,()=>p(R),()=>0)}),G(x,A)},_=x=>{var A=Ad(),w=N(A);ge(()=>ve(w,p(n))),G(x,A)};pe(m,x=>{r()==="pretty"&&p(o)?x(k):x(_,!1)})}ge(()=>{ve(f,p(i)??"anonymous"),ve(h,p(s))}),G(e,l),st()}var Td=K('<div class="flex items-center justify-center h-32 text-sm text-muted-foreground">No events yet. Waiting for signals...</div>'),Rd=K('<div class="border-t border-border/30 mx-2"></div>'),zd=K("<!> <!>",1),Pd=K('<div class="mt-auto"></div> <div class="flex flex-col pt-2 pb-4"></div>',1),Id=K('<div class="flex-1 overflow-auto px-4 flex flex-col"><!></div>');function Md(e,t){ot(t,!0);let r=Wt(t,"viewMode",3,"pretty"),n=ze(()=>[...t.events].reverse()),o=se(void 0);Bo(()=>{t.events.length,p(o)&&qi().then(()=>{p(o).scrollTop=p(o).scrollHeight})});var s=Id(),i=N(s);{var a=l=>{var u=Td();G(l,u)},c=l=>{var u=Pd(),d=H(Se(u),2);Nt(d,23,()=>p(n),f=>f.id,(f,v,g)=>{var y=zd(),h=Se(y);{var m=_=>{var x=Rd();G(_,x)};pe(h,_=>{p(g)>0&&_(m)})}var k=H(h,2);Ed(k,{get event(){return p(v)},get viewMode(){return r()}}),G(f,y)}),G(l,u)};pe(i,l=>{t.events.length===0?l(a):l(c,!1)})}Rc(s,l=>C(o,l),()=>p(o)),G(e,s),st()}const $d="modulepreload",Ld=function(e){return"/"+e},Zs={},Od=function(t,r,n){let o=Promise.resolve();if(r&&r.length>0){let i=function(l){return Promise.all(l.map(u=>Promise.resolve(u).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),c=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=i(r.map(l=>{if(l=Ld(l),l in Zs)return;Zs[l]=!0;const u=l.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":$d,u||(f.as="script"),f.crossOrigin="",f.href=l,c&&f.setAttribute("nonce",c),document.head.appendChild(f),u)return new Promise((v,g)=>{f.addEventListener("load",v),f.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return o.then(i=>{for(const a of i||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})};var Nd=K("<button> </button>"),jd=K('<div class="absolute bottom-full left-0 mb-1 bg-popover border border-border rounded-md shadow-lg py-1 z-10 min-w-[120px]"></div>'),Gd=K('<div class="relative"><button class="flex items-center gap-1 px-2 py-0.5 rounded text-[11px] bg-secondary text-muted-foreground hover:text-foreground transition-colors"><span class="font-mono"> </span> <svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"></path></svg></button> <!></div>'),Bd=K('<div class="flex items-center gap-1"><span class="text-[10px] text-muted-foreground/50">type:</span> <input type="text" class="bg-transparent border-none outline-none text-[11px] font-mono text-muted-foreground w-20 placeholder:text-muted-foreground/30" placeholder="message"/></div>'),Dd=K('<input type="text" class="w-full bg-transparent outline-none text-sm text-foreground placeholder:text-muted-foreground/40" autocomplete="off"/>'),Vd=K('<div class="text-sm text-muted-foreground/40 py-1">Loading editor...</div>'),Fd=K('<div class="fixed inset-0 z-5"></div>'),qd=K('<div class="border-t border-border mx-4 mb-3 mt-1 mb-[calc(0.75rem+env(safe-area-inset-bottom))] rounded-lg border bg-secondary/30 max-h-[250px] flex flex-col"><div class="flex items-center gap-2 px-3 py-1.5 border-b border-border/50"><!></div> <div class="px-3 py-2 flex-1 overflow-auto min-h-0"><!></div> <div class="flex items-center justify-between px-3 py-1.5 border-t border-border/50"><div class="flex items-center gap-1"></div> <button><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><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"></path><path d="m21.854 2.147-10.94 10.939"></path></svg></button></div></div> <!>',1);function Wd(e,t){ot(t,!0);let r=se(""),n=se(pt({json:{}})),o=se("message"),s=se(""),i=se(!1),a=se(!1),c=se(null);async function l(){if(!p(c)){const z=await Od(()=>import("./json-editor-C4yUpXMd.js"),__vite__mapDeps([0,1]));C(c,z.default,!0)}}let u=ze(()=>{const z=t.channel.config;return z!=null&&z.types?Object.keys(z.types):[]}),d=ze(()=>p(u).length>0?p(o):p(s).trim()||"message"),f=ze(()=>{var I,j;if(!p(d))return null;const z=t.channel.config;return((j=(I=z==null?void 0:z.types)==null?void 0:I[p(d)])==null?void 0:j.schema)??null}),v=ze(()=>{var j;if(!p(f))return!1;const z=p(f).properties;if(!z)return!1;const I=Object.keys(z);return!(I.length===1&&((j=z[I[0]])==null?void 0:j.type)==="string")}),g=ze(()=>{if(p(v)||!p(f))return null;const z=p(f).properties;return z?Object.keys(z)[0]:null});function y(z){if(!z)return{};const I=z.properties;if(!I)return{};const j={};for(const[J,de]of Object.entries(I))if(de.default!==void 0)j[J]=de.default;else if(de.enum&&de.enum.length>0)j[J]=de.enum[0];else{const ye={string:"",number:0,boolean:!1,array:[],object:{}};j[J]=ye[de.type??"string"]??""}return j}function h(z){var j,J;const I=t.channel.config;return((J=(j=I==null?void 0:I.types)==null?void 0:j[z])==null?void 0:J.schema)??null}let m="",k="";Bo(()=>{const z=t.channel.id!==m,I=p(d)!==k;if(z){m=t.channel.id,C(r,""),C(s,"");const j=t.channel.config,J=j!=null&&j.types?Object.keys(j.types):[];C(o,J[0]??"message",!0)}if(z||I){k=p(d);const j=h(p(d));C(n,{json:y(j)},!0),p(v)&&l()}});async function _(z){if(!p(i)){C(i,!0);try{if(p(v)){let I;"json"in p(n)?I=p(n).json:"text"in p(n)&&(I=JSON.parse(p(n).text)),t.onPublish({type:p(d),data:I}),C(n,{json:y(p(f))},!0)}else{const I=p(r).trim();if(!I)return;let j;if(p(g))j={[p(g)]:I};else try{j=JSON.parse(I)}catch{j={message:I}}t.onPublish({type:p(d),data:j}),C(r,"")}}catch{}finally{C(i,!1)}}}function x(z){z.key==="Enter"&&!z.shiftKey&&(z.preventDefault(),_())}function A(z){C(o,z,!0),C(a,!1)}var w=qd(),R=Se(w),E=N(R),W=N(E);{var q=z=>{var I=Gd(),j=N(I),J=N(j),de=N(J),ye=H(j,2);{var fe=mt=>{var bt=jd();Nt(bt,20,()=>p(u),at=>at,(at,wt)=>{var Je=Nd(),Vn=N(Je);ge(()=>{Et(Je,1,`w-full text-left px-3 py-1 text-[11px] font-mono transition-colors
62
- ${p(d)===wt?"bg-secondary text-foreground":"text-muted-foreground hover:text-foreground hover:bg-secondary/50"}`),ve(Vn,wt)}),Ce("click",Je,()=>A(wt)),G(at,Je)}),G(mt,bt)};pe(ye,mt=>{p(a)&&mt(fe)})}ge(()=>ve(de,p(d))),Ce("click",j,()=>C(a,!p(a))),G(z,I)},Y=z=>{var I=Bd(),j=H(N(I),2);vo(j,()=>p(s),J=>C(s,J)),G(z,I)};pe(W,z=>{p(u).length>0?z(q):z(Y,!1)})}var P=H(E,2),B=N(P);{var D=z=>{var I=Dd();ge(()=>Rn(I,"placeholder",`Message #${t.channel.id??""}`)),Ce("keydown",I,x),vo(I,()=>p(r),j=>C(r,j)),G(z,I)},V=z=>{var I=Yr(),j=Se(I);wc(j,()=>p(c),(J,de)=>{de(J,{get schema(){return p(f)},get content(){return p(n)},set content(ye){C(n,ye,!0)}})}),G(z,I)},T=z=>{var I=Vd();G(z,I)};pe(B,z=>{p(v)?p(c)?z(V,1):z(T,!1):z(D)})}var Z=H(P,2),S=H(N(Z),2),U=H(R,2);{var le=z=>{var I=Fd();Ce("click",I,()=>C(a,!1)),G(z,I)};pe(U,z=>{p(a)&&z(le)})}ge((z,I)=>{Et(S,1,`flex items-center gap-1 px-2 py-1 rounded text-xs transition-colors
63
- ${z??""}`),S.disabled=I},[()=>(p(v)||p(r).trim())&&!p(i)?"text-foreground hover:bg-secondary":"text-muted-foreground/30 cursor-default",()=>!p(v)&&!p(r).trim()||p(i)]),Ce("click",S,()=>_()),G(e,w),st()}Ir(["click","keydown"]);const Ud=va({base:"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}});var Zd=K("<button><!></button>");function Sn(e,t){ot(t,!0);let r=Wt(t,"variant",3,"default"),n=Wt(t,"size",3,"default"),o=Ho(t,["$$slots","$$events","$$legacy","class","variant","size","children"]);var s=Zd();Uo(s,a=>({class:a,...o}),[()=>Xo(Ud({variant:r(),size:n()}),t.class)]);var i=N(s);gc(i,()=>t.children??Tn),G(e,s),st()}var Hd=K("<input/>");function Kd(e,t){ot(t,!0);let r=Wt(t,"value",15),n=Ho(t,["$$slots","$$events","$$legacy","class","value"]);var o=Hd();Uo(o,s=>({class:s,...n}),[()=>Xo("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t.class)],void 0,void 0,void 0,!0),vo(o,r),G(e,o),st()}var Yd=K('<div class="bg-secondary rounded-md px-3 py-2 mb-4"><div class="text-[10px] text-muted-foreground mb-1">Current token</div> <div class="text-xs font-mono truncate text-foreground/80"> </div></div> <div class="flex gap-2"><!> <!></div>',1),Jd=K('<p class="text-xs text-destructive"> </p>'),Qd=K('<form class="flex flex-col gap-3"><!> <!> <div class="flex gap-2"><!> <!></div></form>'),Xd=K('<div class="fixed inset-0 bg-background/80 backdrop-blur-sm z-50 flex items-center justify-center p-4"><div class="bg-card border border-border rounded-lg shadow-lg w-full max-w-sm p-6"><h2 class="font-semibold text-sm mb-1">Authentication</h2> <p class="text-xs text-muted-foreground mb-4">Paste an admin or publish token to unlock channels and publishing.</p> <!></div></div>');function ep(e,t){ot(t,!0);let r=se(""),n=se(""),o=se(!1);async function s(d){d.preventDefault();const f=p(r).trim();if(!(!f||p(o))){C(n,""),C(o,!0);try{await t.onSave(f)?C(r,""):C(n,"Invalid token. Check that it is correct and not expired.")}catch{C(n,"Failed to validate token. Is the server reachable?")}finally{C(o,!1)}}}function i(d){d.target===d.currentTarget&&t.onClose()}function a(d){d.key==="Escape"&&t.onClose()}Bo(()=>{t.open&&C(n,"")});var c=Yr(),l=Se(c);{var u=d=>{var f=Xd(),v=N(f),g=H(N(v),4);{var y=m=>{var k=Yd(),_=Se(k),x=H(N(_),2),A=N(x),w=H(_,2),R=N(w);Sn(R,{variant:"destructive",size:"sm",class:"flex-1",get onclick(){return t.onLogout},children:(W,q)=>{var Y=mr("Sign out");G(W,Y)},$$slots:{default:!0}});var E=H(R,2);Sn(E,{variant:"outline",size:"sm",class:"flex-1",get onclick(){return t.onClose},children:(W,q)=>{var Y=mr("Close");G(W,Y)},$$slots:{default:!0}}),ge((W,q)=>ve(A,`${W??""}...${q??""}`),[()=>t.currentToken.slice(0,20),()=>t.currentToken.slice(-10)]),G(m,k)},h=m=>{var k=Qd(),_=N(k);Kd(_,{type:"text",placeholder:"eyJhbGci...",oninput:()=>C(n,""),autocomplete:"off",spellcheck:"false",get value(){return p(r)},set value(W){C(r,W,!0)}});var x=H(_,2);{var A=W=>{var q=Jd(),Y=N(q);ge(()=>ve(Y,p(n))),G(W,q)};pe(x,W=>{p(n)&&W(A)})}var w=H(x,2),R=N(w);{let W=ze(()=>!p(r).trim()||p(o));Sn(R,{type:"submit",size:"sm",class:"flex-1",get disabled(){return p(W)},children:(q,Y)=>{var P=mr();ge(()=>ve(P,p(o)?"Verifying...":"Sign in")),G(q,P)},$$slots:{default:!0}})}var E=H(R,2);Sn(E,{variant:"outline",size:"sm",class:"flex-1",get onclick(){return t.onClose},children:(W,q)=>{var Y=mr("Cancel");G(W,Y)},$$slots:{default:!0}}),rc("submit",k,s),G(m,k)};pe(g,m=>{t.currentToken?m(y):m(h,!1)})}Ce("click",f,i),Ce("keydown",f,a),G(d,f)};pe(l,d=>{t.open&&d(u)})}G(e,c),st()}Ir(["click","keydown"]);function hn(e){const t={};return e&&(t.Authorization=`Bearer ${e}`),t}async function tp(e,t){const r=await fetch(`${e}/api/v1/channels`,{headers:hn(t)});return r.ok?(await r.json()).channels:[]}async function Hs(e,t,r){const n=await fetch(`${e}/api/v1/channels`,{headers:hn(r)});return n.ok?(await n.json()).channels.find(s=>s.id===t)??null:null}const Ks={server_name:"Zooid",server_description:null,poll_interval:5,delivery:["poll"]};async function Ys(e){try{const t=await fetch(`${e}/.well-known/zooid.json`);if(!t.ok)return Ks;const r=await t.json();return{server_name:r.server_name??"Zooid",server_description:r.server_description??null,poll_interval:r.poll_interval??5,delivery:Array.isArray(r.delivery)?r.delivery:["poll"]}}catch{return Ks}}async function rp(e,t){try{const r=await fetch(`${e}/api/v1/tokens/claims`,{headers:hn(t)});return r.ok?r.json():null}catch{return null}}async function np(e,t,r,n){return(await fetch(`${e}/api/v1/channels/${t}/events`,{method:"POST",headers:{...hn(n),"Content-Type":"application/json"},body:JSON.stringify(r)})).ok}async function op(e,t,r){const n=new URLSearchParams;r.cursor&&n.set("cursor",r.cursor),r.since&&n.set("since",r.since),n.set("limit",String(r.limit));const o=n.toString(),s=`${e}/api/v1/channels/${t}/events${o?`?${o}`:""}`,i=await fetch(s,{headers:hn(r.token)});return i.ok?i.json():{events:[],cursor:null,has_more:!1}}var sp=K('<div class="fixed inset-0 bg-background/60 z-40 md:hidden"></div> <div class="fixed inset-y-0 left-0 w-60 z-50 md:hidden"><!></div>',1),ip=K("<!> <!> <!>",1),ap=K('<div class="flex-1 flex flex-col"><div class="flex items-center gap-3 px-4 h-12 border-b border-border"><button class="p-1 rounded hover:bg-secondary transition-colors md:hidden" aria-label="Open channels"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="4" x2="20" y1="12" y2="12"></line><line x1="4" x2="20" y1="6" y2="6"></line><line x1="4" x2="20" y1="18" y2="18"></line></svg></button> <span class="text-sm text-muted-foreground"> </span></div></div>'),lp=K('<div class="flex-1 flex flex-col items-center justify-center text-muted-foreground"><button class="p-2 rounded hover:bg-secondary transition-colors md:hidden mb-4" aria-label="Open channels"><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"><line x1="4" x2="20" y1="12" y2="12"></line><line x1="4" x2="20" y1="6" y2="6"></line><line x1="4" x2="20" y1="18" y2="18"></line></svg></button> <p class="text-sm">Select a channel</p> <p class="text-xs text-muted-foreground/60 mt-1">or create one with <code class="text-foreground/80">npx zooid channel create</code></p></div>'),cp=K('<div class="flex h-dvh w-full overflow-hidden"><div class="hidden md:flex w-60 shrink-0"><!></div> <!> <div class="flex-1 flex flex-col min-w-0"><!></div></div> <!>',1);function up(e,t){ot(t,!0);const r=60,n=[0,1e3,2e3,4e3,8e3],o=window.location.origin;let s=se(pt(localStorage.getItem("zooid_token")??"")),i=se(null),a=se(!1),c=se(pt([])),l=se(null),u=se(null),d=se(pt([])),f=se("pretty"),v=se("idle"),g=se(null),y=se(null),h=se(5),m=se(null),k=0,_=null,x=se("Zooid"),A=se(!1);const w=new Set;let R=ze(()=>{if(!p(i)||!p(l))return!1;const F=p(i).scopes;return F.includes("admin")?!0:F.some(ae=>ae===`pub:${p(l)}`||ae==="pub:*"||ae.endsWith("*")&&ae.startsWith("pub:")&&p(l).startsWith(ae.slice(4,-1)))});const W=window.location.pathname.match(/^\/([a-z0-9][a-z0-9-]{1,62}[a-z0-9])$/);W&&C(l,W[1],!0);async function q(){const[F]=await Promise.all([Ys(o),Y(),p(s)?P():Promise.resolve()]);C(x,F.server_name,!0),C(h,F.poll_interval,!0),p(l)&&B(p(l))}async function Y(){C(c,await tp(o,p(s)||void 0),!0)}async function P(){if(!p(s)){C(i,null);return}C(i,await rp(o,p(s)),!0),p(i)||(C(s,""),localStorage.removeItem("zooid_token"))}function B(F){p(l)===F&&p(u)||(C(l,F,!0),C(A,!1),window.history.pushState({},"",`/${F}`),document.title=`${F} — Zooid`,V())}function D(){p(y)&&(clearInterval(p(y)),C(y,null)),_&&(clearTimeout(_),_=null),p(m)&&(p(m).close(),C(m,null)),w.clear(),C(d,[],!0),C(g,null)}async function V(){if(!p(l))return;D(),C(v,"loading");const F=await Hs(o,p(l),p(s)||void 0);if(!F){C(u,null),C(v,"idle");return}C(u,F,!0),document.title=`${F.name} — Zooid`,le(p(l),p(s)||void 0),await T();const ae=await Ys(o);ae.delivery.includes("websocket")&&ae.poll_interval<=r?S():(C(h,ae.poll_interval,!0),Z())}async function T(){var F;if(p(l))try{const ae=await op(o,p(l),{cursor:p(g)??void 0,token:p(s)||void 0,limit:50});if(ae.events.length>0){const Ie=ae.events.slice().reverse().filter(Me=>!w.has(Me.id));for(const Me of Ie)w.add(Me.id);p(g)&&Ie.length>0?C(d,[...Ie,...p(d)],!0):p(g)||C(d,Ie,!0),C(g,((F=ae.events[ae.events.length-1])==null?void 0:F.id)??p(g),!0)}}catch{C(v,"error")}}function Z(){p(y)&&clearInterval(p(y)),C(v,"polling"),C(y,setInterval(async()=>{if(p(l)){const F=await Hs(o,p(l),p(s)||void 0);F&&C(u,F,!0)}await T(),C(v,"polling")},p(h)*1e3),!0)}function S(){if(!p(l))return;const F=window.location.protocol==="https:"?"wss:":"ws:",ae=new URL(`${F}//${window.location.host}/api/v1/channels/${p(l)}/ws`);p(s)&&ae.searchParams.set("token",p(s));const he=new WebSocket(ae.toString());he.addEventListener("open",()=>{C(v,"connected"),k=0,T()}),he.addEventListener("message",Ie=>{try{const Me=JSON.parse(Ie.data);if(w.has(Me.id))return;w.add(Me.id),C(d,[Me,...p(d)],!0),C(g,Me.id,!0)}catch{}}),he.addEventListener("close",()=>{C(m,null),U()}),he.addEventListener("error",()=>{}),C(m,he,!0)}function U(){if(k>=n.length){Z();return}C(v,"reconnecting");const F=n[k];k++,_=setTimeout(()=>{_=null,S()},F)}function le(F,ae){let he=document.querySelector('link[rel="alternate"][type="application/rss+xml"]');he||(he=document.createElement("link"),he.rel="alternate",he.type="application/rss+xml",document.head.appendChild(he)),he.href=ae?`${o}/api/v1/channels/${F}/rss?token=${ae}`:`${o}/api/v1/channels/${F}/rss`,he.title=`${F} RSS Feed`}async function z(F){return C(s,F,!0),localStorage.setItem("zooid_token",F),await P(),p(i)?(C(a,!1),await Y(),p(l)&&V(),!0):!1}function I(){C(s,""),C(i,null),localStorage.removeItem("zooid_token"),C(a,!1),Y(),p(l)&&V()}async function j(F){if(!p(l)||!p(s))return;await np(o,p(l),F,p(s))&&await T()}window.addEventListener("popstate",()=>{const F=window.location.pathname.match(/^\/([a-z0-9][a-z0-9-]{1,62}[a-z0-9])$/);F?(C(l,F[1],!0),V()):(C(l,null),C(u,null),D())}),q();var J=cp(),de=Se(J),ye=N(de),fe=N(ye);{let F=ze(()=>!!p(i));Ts(fe,{get channels(){return p(c)},get selectedId(){return p(l)},get serverName(){return p(x)},get hasAuth(){return p(F)},get status(){return p(v)},get pollInterval(){return p(h)},onSelect:B,onAuthClick:()=>C(a,!0)})}var mt=H(ye,2);{var bt=F=>{var ae=sp(),he=Se(ae),Ie=H(he,2),Me=N(Ie);{let Lr=ze(()=>!!p(i));Ts(Me,{get channels(){return p(c)},get selectedId(){return p(l)},get serverName(){return p(x)},get hasAuth(){return p(Lr)},get status(){return p(v)},get pollInterval(){return p(h)},onSelect:B,onAuthClick:()=>{C(A,!1),C(a,!0)},onClose:()=>C(A,!1)})}Ce("click",he,()=>C(A,!1)),G(F,ae)};pe(mt,F=>{p(A)&&F(bt)})}var at=H(mt,2),wt=N(at);{var Je=F=>{var ae=ip(),he=Se(ae);Ef(he,{get channel(){return p(u)},onMenuClick:()=>C(A,!0),get viewMode(){return p(f)},set viewMode(Or){C(f,Or,!0)}});var Ie=H(he,2);Md(Ie,{get events(){return p(d)},get viewMode(){return p(f)}});var Me=H(Ie,2);{var Lr=Or=>{Wd(Or,{get channel(){return p(u)},onPublish:j})};pe(Me,Or=>{p(R)&&Or(Lr)})}G(F,ae)},Vn=F=>{var ae=ap(),he=N(ae),Ie=N(he),Me=H(Ie,2),Lr=N(Me);ge(()=>ve(Lr,p(v)==="loading"?"Loading...":"Channel not found")),Ce("click",Ie,()=>C(A,!0)),G(F,ae)},Va=F=>{var ae=lp(),he=N(ae);Ce("click",he,()=>C(A,!0)),G(F,ae)};pe(wt,F=>{p(u)?F(Je):p(l)?F(Vn,1):F(Va,!1)})}var Fa=H(de,2);{let F=ze(()=>p(i)?p(s):null);ep(Fa,{get open(){return p(a)},get currentToken(){return p(F)},onSave:z,onLogout:I,onClose:()=>C(a,!1)})}G(e,J),st()}Ir(["click"]);dc(up,{target:document.getElementById("app")});export{vs as $,pe as A,Wo as B,Rc as C,G as D,st as E,Dl as F,N as G,H,wc as I,ge as J,Yt as K,K as L,Ap as M,mp as N,xp as O,yp as P,Se as Q,Nt as R,Wr as S,ks as T,Ki as U,Sp as V,Uo as W,Gr as X,Yr as Y,Rn as Z,Et as _,Pr as a,Oo as a0,Od as a1,vp as a2,Qi as a3,bp as a4,mr as a5,ve as a6,gc as a7,Tn as a8,Ce as a9,ze as aa,Ir as ab,se as ac,qi as ad,vo as ae,_p as af,Tl as ag,pt as ah,hp as b,me as c,ln as d,dn as e,cn as f,Do as g,kp as h,zo as i,jt as j,wp as k,cl as l,dp as m,al as n,p as o,jn as p,C as q,fn as r,_l as s,Go as t,Bo as u,Ft as v,gp as w,ot as x,Wt as y,rc as z};