mindpm 1.2.10 → 1.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var Ci=Object.defineProperty;var vr=e=>{throw TypeError(e)};var ji=(e,t,n)=>t in e?Ci(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ce=(e,t,n)=>ji(e,typeof t!="symbol"?t+"":t,n),On=(e,t,n)=>t.has(e)||vr("Cannot "+n);var c=(e,t,n)=>(On(e,t,"read from private field"),n?n.call(e):t.get(e)),N=(e,t,n)=>t.has(e)?vr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),P=(e,t,n,r)=>(On(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Q=(e,t,n)=>(On(e,t,"access private method"),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();const In=!1;var Zn=Array.isArray,Pi=Array.prototype.indexOf,Dt=Array.prototype.includes,wn=Array.from,Di=Object.defineProperty,Bt=Object.getOwnPropertyDescriptor,Ai=Object.prototype,Oi=Array.prototype,Ni=Object.getPrototypeOf,dr=Object.isExtensible;const Ri=()=>{};function Mi(e){for(var t=0;t<e.length;t++)e[t]()}function Cr(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const ee=2,en=4,kn=8,jr=1<<24,Le=16,xe=32,mt=64,Ln=128,_e=512,X=1024,te=2048,Se=4096,ue=8192,Ye=16384,ht=32768,At=65536,hr=1<<17,Pr=1<<18,Mt=1<<19,Ii=1<<20,Ke=1<<25,_t=65536,Fn=1<<21,$n=1<<22,Ge=1<<23,Ht=Symbol("$state"),rt=new class extends Error{constructor(){super(...arguments);Ce(this,"name","StaleReactionError");Ce(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};var Tr;const Li=!!((Tr=globalThis.document)!=null&&Tr.contentType)&&globalThis.document.contentType.includes("xml");function Fi(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function qi(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function zi(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Bi(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Hi(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Ui(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Vi(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ki(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ji(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Yi(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Gi=1,Wi=2,Qi=16,Xi=1,Zi=2,Z=Symbol(),Dr="http://www.w3.org/1999/xhtml";function $i(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function es(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Ar(e){return e===this.v}function ts(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Or(e){return!ts(e,this.v)}let ns=!1,pe=null;function Ot(e){pe=e}function Fe(e,t=!1,n){pe={p:pe,i:!1,c:null,e:null,s:e,x:null,l:null}}function qe(e){var t=pe,n=t.e;if(n!==null){t.e=null;for(var r of n)$r(r)}return t.i=!0,pe=t.p,{}}function Nr(){return!0}let it=[];function Rr(){var e=it;it=[],Mi(e)}function We(e){if(it.length===0&&!Ut){var t=it;queueMicrotask(()=>{t===it&&Rr()})}it.push(e)}function rs(){for(;it.length>0;)Rr()}function Mr(e){var t=F;if(t===null)return A.f|=Ge,e;if((t.f&ht)===0&&(t.f&en)===0)throw e;Je(e,t)}function Je(e,t){for(;t!==null;){if((t.f&Ln)!==0){if((t.f&ht)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const is=-7169;function V(e,t){e.f=e.f&is|t}function er(e){(e.f&_e)!==0||e.deps===null?V(e,X):V(e,Se)}function Ir(e){if(e!==null)for(const t of e)(t.f&ee)===0||(t.f&_t)===0||(t.f^=_t,Ir(t.deps))}function Lr(e,t,n){(e.f&te)!==0?t.add(e):(e.f&Se)!==0&&n.add(e),Ir(e.deps),V(e,X)}const fn=new Set;let j=null,_n=null,$=null,ie=[],En=null,qn=!1,Ut=!1;var Et,Tt,lt,St,Qt,Xt,ot,Ne,xt,ce,zn,Bn,Hn,Fr;const fr=class fr{constructor(){N(this,ce);Ce(this,"current",new Map);Ce(this,"previous",new Map);N(this,Et,new Set);N(this,Tt,new Set);N(this,lt,0);N(this,St,0);N(this,Qt,null);N(this,Xt,new Set);N(this,ot,new Set);N(this,Ne,new Map);Ce(this,"is_fork",!1);N(this,xt,!1)}skip_effect(t){c(this,Ne).has(t)||c(this,Ne).set(t,{d:[],m:[]})}unskip_effect(t){var n=c(this,Ne).get(t);if(n){c(this,Ne).delete(t);for(var r of n.d)V(r,te),ke(r);for(r of n.m)V(r,Se),ke(r)}}process(t){var s;ie=[],this.apply();var n=[],r=[];for(const i of t)Q(this,ce,Bn).call(this,i,n,r);if(Q(this,ce,zn).call(this)){Q(this,ce,Hn).call(this,r),Q(this,ce,Hn).call(this,n);for(const[i,a]of c(this,Ne))Hr(i,a)}else{for(const i of c(this,Et))i();c(this,Et).clear(),c(this,lt)===0&&Q(this,ce,Fr).call(this),_n=this,j=null,_r(r),_r(n),_n=null,(s=c(this,Qt))==null||s.resolve()}$=null}capture(t,n){n!==Z&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&Ge)===0&&(this.current.set(t,t.v),$==null||$.set(t,t.v))}activate(){j=this,this.apply()}deactivate(){j===this&&(j=null,$=null)}flush(){if(this.activate(),ie.length>0){if(qr(),j!==null&&j!==this)return}else c(this,lt)===0&&this.process([]);this.deactivate()}discard(){for(const t of c(this,Tt))t(this);c(this,Tt).clear()}increment(t){P(this,lt,c(this,lt)+1),t&&P(this,St,c(this,St)+1)}decrement(t){P(this,lt,c(this,lt)-1),t&&P(this,St,c(this,St)-1),!c(this,xt)&&(P(this,xt,!0),We(()=>{P(this,xt,!1),Q(this,ce,zn).call(this)?ie.length>0&&this.flush():this.revive()}))}revive(){for(const t of c(this,Xt))c(this,ot).delete(t),V(t,te),ke(t);for(const t of c(this,ot))V(t,Se),ke(t);this.flush()}oncommit(t){c(this,Et).add(t)}ondiscard(t){c(this,Tt).add(t)}settled(){return(c(this,Qt)??P(this,Qt,Cr())).promise}static ensure(){if(j===null){const t=j=new fr;fn.add(j),Ut||We(()=>{j===t&&t.flush()})}return j}apply(){}};Et=new WeakMap,Tt=new WeakMap,lt=new WeakMap,St=new WeakMap,Qt=new WeakMap,Xt=new WeakMap,ot=new WeakMap,Ne=new WeakMap,xt=new WeakMap,ce=new WeakSet,zn=function(){return this.is_fork||c(this,St)>0},Bn=function(t,n,r){t.f^=X;for(var s=t.first;s!==null;){var i=s.f,a=(i&(xe|mt))!==0,l=a&&(i&X)!==0,o=l||(i&ue)!==0||c(this,Ne).has(s);if(!o&&s.fn!==null){a?s.f^=X:(i&en)!==0?n.push(s):nn(s)&&((i&Le)!==0&&c(this,ot).add(s),Rt(s));var f=s.first;if(f!==null){s=f;continue}}for(;s!==null;){var h=s.next;if(h!==null){s=h;break}s=s.parent}}},Hn=function(t){for(var n=0;n<t.length;n+=1)Lr(t[n],c(this,Xt),c(this,ot))},Fr=function(){var s;if(fn.size>1){this.previous.clear();var t=$,n=!0;for(const i of fn){if(i===this){n=!1;continue}const a=[];for(const[o,f]of this.current){if(i.current.has(o))if(n&&f!==i.current.get(o))i.current.set(o,f);else continue;a.push(o)}if(a.length===0)continue;const l=[...i.current.keys()].filter(o=>!this.current.has(o));if(l.length>0){var r=ie;ie=[];const o=new Set,f=new Map;for(const h of a)zr(h,l,o,f);if(ie.length>0){j=i,i.apply();for(const h of ie)Q(s=i,ce,Bn).call(s,h,[],[]);i.deactivate()}ie=r}}j=null,$=t}fn.delete(this)};let Qe=fr;function ss(e){var t=Ut;Ut=!0;try{for(var n;;){if(rs(),ie.length===0&&(j==null||j.flush(),ie.length===0))return En=null,n;qr()}}finally{Ut=t}}function qr(){qn=!0;var e=null;try{for(var t=0;ie.length>0;){var n=Qe.ensure();if(t++>1e3){var r,s;as()}n.process(ie),Xe.clear()}}finally{ie=[],qn=!1,En=null}}function as(){try{Ui()}catch(e){Je(e,En)}}let ye=null;function _r(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(Ye|ue))===0&&nn(r)&&(ye=new Set,Rt(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&ni(r),(ye==null?void 0:ye.size)>0)){Xe.clear();for(const s of ye){if((s.f&(Ye|ue))!==0)continue;const i=[s];let a=s.parent;for(;a!==null;)ye.has(a)&&(ye.delete(a),i.push(a)),a=a.parent;for(let l=i.length-1;l>=0;l--){const o=i[l];(o.f&(Ye|ue))===0&&Rt(o)}}ye.clear()}}ye=null}}function zr(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&ee)!==0?zr(s,t,n,r):(i&($n|Le))!==0&&(i&te)===0&&Br(s,t,r)&&(V(s,te),ke(s))}}function Br(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(Dt.call(t,s))return!0;if((s.f&ee)!==0&&Br(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function ke(e){var t=En=e,n=t.b;if(n!=null&&n.is_pending&&(e.f&(en|kn|jr))!==0&&(e.f&ht)===0){n.defer_effect(e);return}for(;t.parent!==null;){t=t.parent;var r=t.f;if(qn&&t===F&&(r&Le)!==0&&(r&Pr)===0&&(r&ht)!==0)return;if((r&(mt|xe))!==0){if((r&X)===0)return;t.f^=X}}ie.push(t)}function Hr(e,t){if(!((e.f&xe)!==0&&(e.f&X)!==0)){(e.f&te)!==0?t.d.push(e):(e.f&Se)!==0&&t.m.push(e),V(e,X);for(var n=e.first;n!==null;)Hr(n,t),n=n.next}}function ls(e){let t=0,n=gt(0),r;return()=>{rr()&&(u(n),ei(()=>(t===0&&(r=di(()=>e(()=>Vt(n)))),t+=1,()=>{We(()=>{t-=1,t===0&&(r==null||r(),r=void 0,Vt(n))})})))}}var os=At|Mt;function fs(e,t,n,r){new us(e,t,n,r)}var de,Xn,je,ft,re,Pe,oe,be,Re,ut,Ve,Ct,jt,Pt,Me,yn,G,cs,vs,ds,Un,cn,vn,Vn;class us{constructor(t,n,r,s){N(this,G);Ce(this,"parent");Ce(this,"is_pending",!1);Ce(this,"transform_error");N(this,de);N(this,Xn,null);N(this,je);N(this,ft);N(this,re);N(this,Pe,null);N(this,oe,null);N(this,be,null);N(this,Re,null);N(this,ut,0);N(this,Ve,0);N(this,Ct,!1);N(this,jt,new Set);N(this,Pt,new Set);N(this,Me,null);N(this,yn,ls(()=>(P(this,Me,gt(c(this,ut))),()=>{P(this,Me,null)})));var i;P(this,de,t),P(this,je,n),P(this,ft,a=>{var l=F;l.b=this,l.f|=Ln,r(a)}),this.parent=F.b,this.transform_error=s??((i=this.parent)==null?void 0:i.transform_error)??(a=>a),P(this,re,sr(()=>{Q(this,G,Un).call(this)},os))}defer_effect(t){Lr(t,c(this,jt),c(this,Pt))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!c(this,je).pending}update_pending_count(t){Q(this,G,Vn).call(this,t),P(this,ut,c(this,ut)+t),!(!c(this,Me)||c(this,Ct))&&(P(this,Ct,!0),We(()=>{P(this,Ct,!1),c(this,Me)&&Nt(c(this,Me),c(this,ut))}))}get_effect_pending(){return c(this,yn).call(this),u(c(this,Me))}error(t){var n=c(this,je).onerror;let r=c(this,je).failed;if(!n&&!r)throw t;c(this,Pe)&&(ae(c(this,Pe)),P(this,Pe,null)),c(this,oe)&&(ae(c(this,oe)),P(this,oe,null)),c(this,be)&&(ae(c(this,be)),P(this,be,null));var s=!1,i=!1;const a=()=>{if(s){es();return}s=!0,i&&Yi(),c(this,be)!==null&&vt(c(this,be),()=>{P(this,be,null)}),Q(this,G,vn).call(this,()=>{Qe.ensure(),Q(this,G,Un).call(this)})},l=o=>{try{i=!0,n==null||n(o,a),i=!1}catch(f){Je(f,c(this,re)&&c(this,re).parent)}r&&P(this,be,Q(this,G,vn).call(this,()=>{Qe.ensure();try{return he(()=>{var f=F;f.b=this,f.f|=Ln,r(c(this,de),()=>o,()=>a)})}catch(f){return Je(f,c(this,re).parent),null}}))};We(()=>{var o;try{o=this.transform_error(t)}catch(f){Je(f,c(this,re)&&c(this,re).parent);return}o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(l,f=>Je(f,c(this,re)&&c(this,re).parent)):l(o)})}}de=new WeakMap,Xn=new WeakMap,je=new WeakMap,ft=new WeakMap,re=new WeakMap,Pe=new WeakMap,oe=new WeakMap,be=new WeakMap,Re=new WeakMap,ut=new WeakMap,Ve=new WeakMap,Ct=new WeakMap,jt=new WeakMap,Pt=new WeakMap,Me=new WeakMap,yn=new WeakMap,G=new WeakSet,cs=function(){try{P(this,Pe,he(()=>c(this,ft).call(this,c(this,de))))}catch(t){this.error(t)}},vs=function(t){const n=c(this,je).failed;n&&P(this,be,he(()=>{n(c(this,de),()=>t,()=>()=>{})}))},ds=function(){const t=c(this,je).pending;t&&(this.is_pending=!0,P(this,oe,he(()=>t(c(this,de)))),We(()=>{var n=P(this,Re,document.createDocumentFragment()),r=Ze();n.append(r),P(this,Pe,Q(this,G,vn).call(this,()=>(Qe.ensure(),he(()=>c(this,ft).call(this,r))))),c(this,Ve)===0&&(c(this,de).before(n),P(this,Re,null),vt(c(this,oe),()=>{P(this,oe,null)}),Q(this,G,cn).call(this))}))},Un=function(){try{if(this.is_pending=this.has_pending_snippet(),P(this,Ve,0),P(this,ut,0),P(this,Pe,he(()=>{c(this,ft).call(this,c(this,de))})),c(this,Ve)>0){var t=P(this,Re,document.createDocumentFragment());si(c(this,Pe),t);const n=c(this,je).pending;P(this,oe,he(()=>n(c(this,de))))}else Q(this,G,cn).call(this)}catch(n){this.error(n)}},cn=function(){this.is_pending=!1;for(const t of c(this,jt))V(t,te),ke(t);for(const t of c(this,Pt))V(t,Se),ke(t);c(this,jt).clear(),c(this,Pt).clear()},vn=function(t){var n=F,r=A,s=pe;Oe(c(this,re)),me(c(this,re)),Ot(c(this,re).ctx);try{return t()}catch(i){return Mr(i),null}finally{Oe(n),me(r),Ot(s)}},Vn=function(t){var n;if(!this.has_pending_snippet()){this.parent&&Q(n=this.parent,G,Vn).call(n,t);return}P(this,Ve,c(this,Ve)+t),c(this,Ve)===0&&(Q(this,G,cn).call(this),c(this,oe)&&vt(c(this,oe),()=>{P(this,oe,null)}),c(this,Re)&&(c(this,de).before(c(this,Re)),P(this,Re,null)))};function hs(e,t,n,r){const s=tr;var i=e.filter(_=>!_.settled);if(n.length===0&&i.length===0){r(t.map(s));return}var a=F,l=_s(),o=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(_=>_.promise)):null;function f(_){l();try{r(_)}catch(m){(a.f&Ye)===0&&Je(m,a)}Kn()}if(n.length===0){o.then(()=>f(t.map(s)));return}function h(){l(),Promise.all(n.map(_=>ps(_))).then(_=>f([...t.map(s),..._])).catch(_=>Je(_,a))}o?o.then(h):h()}function _s(){var e=F,t=A,n=pe,r=j;return function(i=!0){Oe(e),me(t),Ot(n),i&&(r==null||r.activate())}}function Kn(e=!0){Oe(null),me(null),Ot(null),e&&(j==null||j.deactivate())}function gs(){var e=F.b,t=j,n=e.is_rendered();return e.update_pending_count(1),t.increment(n),()=>{e.update_pending_count(-1),t.decrement(n)}}function tr(e){var t=ee|te,n=A!==null&&(A.f&ee)!==0?A:null;return F!==null&&(F.f|=Mt),{ctx:pe,deps:null,effects:null,equals:Ar,f:t,fn:e,reactions:null,rv:0,v:Z,wv:0,parent:n??F,ac:null}}function ps(e,t,n){F===null&&Fi();var s=void 0,i=gt(Z),a=!A,l=new Map;return Ns(()=>{var m;var o=Cr();s=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).finally(Kn)}catch(k){o.reject(k),Kn()}var f=j;if(a){var h=gs();(m=l.get(f))==null||m.reject(rt),l.delete(f),l.set(f,o)}const _=(k,v=void 0)=>{if(f.activate(),v)v!==rt&&(i.f|=Ge,Nt(i,v));else{(i.f&Ge)!==0&&(i.f^=Ge),Nt(i,k);for(const[y,d]of l){if(l.delete(y),y===f)break;d.reject(rt)}}h&&h()};o.promise.then(_,k=>_(null,k||"unknown"))}),ir(()=>{for(const o of l.values())o.reject(rt)}),new Promise(o=>{function f(h){function _(){h===s?o(i):f(s)}h.then(_,_)}f(s)})}function Ee(e){const t=tr(e);return ai(t),t}function ms(e){const t=tr(e);return t.equals=Or,t}function ys(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)ae(t[n])}}function bs(e){for(var t=e.parent;t!==null;){if((t.f&ee)===0)return(t.f&Ye)===0?t:null;t=t.parent}return null}function nr(e){var t,n=F;Oe(bs(e));try{e.f&=~_t,ys(e),t=ui(e)}finally{Oe(n)}return t}function Ur(e){var t=nr(e);if(!e.equals(t)&&(e.wv=oi(),(!(j!=null&&j.is_fork)||e.deps===null)&&(e.v=t,e.deps===null))){V(e,X);return}pt||($!==null?(rr()||j!=null&&j.is_fork)&&$.set(e,t):er(e))}function ws(e){var t,n;if(e.effects!==null)for(const r of e.effects)(r.teardown||r.ac)&&((t=r.teardown)==null||t.call(r),(n=r.ac)==null||n.abort(rt),r.teardown=Ri,r.ac=null,Yt(r,0),ar(r))}function Vr(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Rt(t)}let Jn=new Set;const Xe=new Map;let Kr=!1;function gt(e,t){var n={f:0,v:e,reactions:null,equals:Ar,rv:0,wv:0};return n}function M(e,t){const n=gt(e);return ai(n),n}function ks(e,t=!1,n=!0){const r=gt(e);return t||(r.equals=Or),r}function b(e,t,n=!1){A!==null&&(!Te||(A.f&hr)!==0)&&Nr()&&(A.f&(ee|Le|$n|hr))!==0&&(ge===null||!Dt.call(ge,e))&&Ji();let r=n?Ae(t):t;return Nt(e,r)}function Nt(e,t){if(!e.equals(t)){var n=e.v;pt?Xe.set(e,t):Xe.set(e,n),e.v=t;var r=Qe.ensure();if(r.capture(e,n),(e.f&ee)!==0){const s=e;(e.f&te)!==0&&nr(s),er(s)}e.wv=oi(),Jr(e,te),F!==null&&(F.f&X)!==0&&(F.f&(xe|mt))===0&&(ve===null?Is([e]):ve.push(e)),!r.is_fork&&Jn.size>0&&!Kr&&Es()}return t}function Es(){Kr=!1;for(const e of Jn)(e.f&X)!==0&&V(e,Se),nn(e)&&Rt(e);Jn.clear()}function Vt(e){b(e,e.v+1)}function Jr(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s],a=i.f,l=(a&te)===0;if(l&&V(i,t),(a&ee)!==0){var o=i;$==null||$.delete(o),(a&_t)===0&&(a&_e&&(i.f|=_t),Jr(o,Se))}else l&&((a&Le)!==0&&ye!==null&&ye.add(i),ke(i))}}function Ae(e){if(typeof e!="object"||e===null||Ht in e)return e;const t=Ni(e);if(t!==Ai&&t!==Oi)return e;var n=new Map,r=Zn(e),s=M(0),i=dt,a=l=>{if(dt===i)return l();var o=A,f=dt;me(null),yr(i);var h=l();return me(o),yr(f),h};return r&&n.set("length",M(e.length)),new Proxy(e,{defineProperty(l,o,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Vi();var h=n.get(o);return h===void 0?a(()=>{var _=M(f.value);return n.set(o,_),_}):b(h,f.value,!0),!0},deleteProperty(l,o){var f=n.get(o);if(f===void 0){if(o in l){const h=a(()=>M(Z));n.set(o,h),Vt(s)}}else b(f,Z),Vt(s);return!0},get(l,o,f){var k;if(o===Ht)return e;var h=n.get(o),_=o in l;if(h===void 0&&(!_||(k=Bt(l,o))!=null&&k.writable)&&(h=a(()=>{var v=Ae(_?l[o]:Z),y=M(v);return y}),n.set(o,h)),h!==void 0){var m=u(h);return m===Z?void 0:m}return Reflect.get(l,o,f)},getOwnPropertyDescriptor(l,o){var f=Reflect.getOwnPropertyDescriptor(l,o);if(f&&"value"in f){var h=n.get(o);h&&(f.value=u(h))}else if(f===void 0){var _=n.get(o),m=_==null?void 0:_.v;if(_!==void 0&&m!==Z)return{enumerable:!0,configurable:!0,value:m,writable:!0}}return f},has(l,o){var m;if(o===Ht)return!0;var f=n.get(o),h=f!==void 0&&f.v!==Z||Reflect.has(l,o);if(f!==void 0||F!==null&&(!h||(m=Bt(l,o))!=null&&m.writable)){f===void 0&&(f=a(()=>{var k=h?Ae(l[o]):Z,v=M(k);return v}),n.set(o,f));var _=u(f);if(_===Z)return!1}return h},set(l,o,f,h){var R;var _=n.get(o),m=o in l;if(r&&o==="length")for(var k=f;k<_.v;k+=1){var v=n.get(k+"");v!==void 0?b(v,Z):k in l&&(v=a(()=>M(Z)),n.set(k+"",v))}if(_===void 0)(!m||(R=Bt(l,o))!=null&&R.writable)&&(_=a(()=>M(void 0)),b(_,Ae(f)),n.set(o,_));else{m=_.v!==Z;var y=a(()=>Ae(f));b(_,y)}var d=Reflect.getOwnPropertyDescriptor(l,o);if(d!=null&&d.set&&d.set.call(h,f),!m){if(r&&typeof o=="string"){var w=n.get("length"),E=Number(o);Number.isInteger(E)&&E>=w.v&&b(w,E+1)}Vt(s)}return!0},ownKeys(l){u(s);var o=Reflect.ownKeys(l).filter(_=>{var m=n.get(_);return m===void 0||m.v!==Z});for(var[f,h]of n)h.v!==Z&&!(f in l)&&o.push(f);return o},setPrototypeOf(){Ki()}})}function gr(e){try{if(e!==null&&typeof e=="object"&&Ht in e)return e[Ht]}catch{}return e}function Ts(e,t){return Object.is(gr(e),gr(t))}var gn,Yr,Gr,Wr;function Ss(){if(gn===void 0){gn=window,Yr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Gr=Bt(t,"firstChild").get,Wr=Bt(t,"nextSibling").get,dr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),dr(n)&&(n.__t=void 0)}}function Ze(e=""){return document.createTextNode(e)}function pn(e){return Gr.call(e)}function tn(e){return Wr.call(e)}function T(e,t){return pn(e)}function Jt(e,t=!1){{var n=pn(e);return n instanceof Comment&&n.data===""?tn(n):n}}function S(e,t=1,n=!1){let r=e;for(;t--;)r=tn(r);return r}function xs(e){e.textContent=""}function Qr(){return!1}function Cs(e,t,n){return document.createElementNS(Dr,e,void 0)}function Xr(e,t){{const n=document.body;e.autofocus=!0,We(()=>{document.activeElement===n&&e.focus()})}}let pr=!1;function js(){pr||(pr=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const n of e.target.elements)(t=n.__on_r)==null||t.call(n)})},{capture:!0}))}function Tn(e){var t=A,n=F;me(null),Oe(null);try{return e()}finally{me(t),Oe(n)}}function Zr(e,t,n,r=n){e.addEventListener(t,()=>Tn(n));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),js()}function Ps(e){F===null&&(A===null&&Hi(),Bi()),pt&&zi()}function Ds(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function ze(e,t,n){var r=F;r!==null&&(r.f&ue)!==0&&(e|=ue);var s={ctx:pe,deps:null,nodes:null,f:e|te|_e,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{Rt(s)}catch(l){throw ae(s),l}else t!==null&&ke(s);var i=s;if(n&&i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&Mt)===0&&(i=i.first,(e&Le)!==0&&(e&At)!==0&&i!==null&&(i.f|=At)),i!==null&&(i.parent=r,r!==null&&Ds(i,r),A!==null&&(A.f&ee)!==0&&(e&mt)===0)){var a=A;(a.effects??(a.effects=[])).push(i)}return s}function rr(){return A!==null&&!Te}function ir(e){const t=ze(kn,null,!1);return V(t,X),t.teardown=e,t}function mn(e){Ps();var t=F.f,n=!A&&(t&xe)!==0&&(t&ht)===0;if(n){var r=pe;(r.e??(r.e=[])).push(e)}else return $r(e)}function $r(e){return ze(en|Ii,e,!1)}function As(e){Qe.ensure();const t=ze(mt|Mt,e,!0);return(n={})=>new Promise(r=>{n.outro?vt(t,()=>{ae(t),r(void 0)}):(ae(t),r(void 0))})}function Os(e){return ze(en,e,!1)}function Ns(e){return ze($n|Mt,e,!0)}function ei(e,t=0){return ze(kn|t,e,!0)}function H(e,t=[],n=[],r=[]){hs(r,t,n,s=>{ze(kn,()=>e(...s.map(u)),!0)})}function sr(e,t=0){var n=ze(Le|t,e,!0);return n}function he(e){return ze(xe|Mt,e,!0)}function ti(e){var t=e.teardown;if(t!==null){const n=pt,r=A;mr(!0),me(null);try{t.call(null)}finally{mr(n),me(r)}}}function ar(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Tn(()=>{s.abort(rt)});var r=n.next;(n.f&mt)!==0?n.parent=null:ae(n,t),n=r}}function Rs(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&xe)===0&&ae(t),t=n}}function ae(e,t=!0){var n=!1;(t||(e.f&Pr)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Ms(e.nodes.start,e.nodes.end),n=!0),ar(e,t&&!n),Yt(e,0),V(e,Ye);var r=e.nodes&&e.nodes.t;if(r!==null)for(const i of r)i.stop();ti(e);var s=e.parent;s!==null&&s.first!==null&&ni(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Ms(e,t){for(;e!==null;){var n=e===t?null:tn(e);e.remove(),e=n}}function ni(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function vt(e,t,n=!0){var r=[];ri(e,r,!0);var s=()=>{n&&ae(e),t&&t()},i=r.length;if(i>0){var a=()=>--i||s();for(var l of r)l.out(a)}else s()}function ri(e,t,n){if((e.f&ue)===0){e.f^=ue;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var s=e.first;s!==null;){var i=s.next,a=(s.f&At)!==0||(s.f&xe)!==0&&(e.f&Le)!==0;ri(s,t,a?n:!1),s=i}}}function lr(e){ii(e,!0)}function ii(e,t){if((e.f&ue)!==0){e.f^=ue,(e.f&X)===0&&(V(e,te),ke(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&At)!==0||(n.f&xe)!==0;ii(n,s?t:!1),n=r}var i=e.nodes&&e.nodes.t;if(i!==null)for(const a of i)(a.is_global||t)&&a.in()}}function si(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:tn(n);t.append(n),n=s}}let dn=!1,pt=!1;function mr(e){pt=e}let A=null,Te=!1;function me(e){A=e}let F=null;function Oe(e){F=e}let ge=null;function ai(e){A!==null&&(ge===null?ge=[e]:ge.push(e))}let se=null,le=0,ve=null;function Is(e){ve=e}let li=1,st=0,dt=st;function yr(e){dt=e}function oi(){return++li}function nn(e){var t=e.f;if((t&te)!==0)return!0;if(t&ee&&(e.f&=~_t),(t&Se)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var i=n[s];if(nn(i)&&Ur(i),i.wv>e.wv)return!0}(t&_e)!==0&&$===null&&V(e,X)}return!1}function fi(e,t,n=!0){var r=e.reactions;if(r!==null&&!(ge!==null&&Dt.call(ge,e)))for(var s=0;s<r.length;s++){var i=r[s];(i.f&ee)!==0?fi(i,t,!1):t===i&&(n?V(i,te):(i.f&X)!==0&&V(i,Se),ke(i))}}function ui(e){var y;var t=se,n=le,r=ve,s=A,i=ge,a=pe,l=Te,o=dt,f=e.f;se=null,le=0,ve=null,A=(f&(xe|mt))===0?e:null,ge=null,Ot(e.ctx),Te=!1,dt=++st,e.ac!==null&&(Tn(()=>{e.ac.abort(rt)}),e.ac=null);try{e.f|=Fn;var h=e.fn,_=h();e.f|=ht;var m=e.deps,k=j==null?void 0:j.is_fork;if(se!==null){var v;if(k||Yt(e,le),m!==null&&le>0)for(m.length=le+se.length,v=0;v<se.length;v++)m[le+v]=se[v];else e.deps=m=se;if(rr()&&(e.f&_e)!==0)for(v=le;v<m.length;v++)((y=m[v]).reactions??(y.reactions=[])).push(e)}else!k&&m!==null&&le<m.length&&(Yt(e,le),m.length=le);if(Nr()&&ve!==null&&!Te&&m!==null&&(e.f&(ee|Se|te))===0)for(v=0;v<ve.length;v++)fi(ve[v],e);if(s!==null&&s!==e){if(st++,s.deps!==null)for(let d=0;d<n;d+=1)s.deps[d].rv=st;if(t!==null)for(const d of t)d.rv=st;ve!==null&&(r===null?r=ve:r.push(...ve))}return(e.f&Ge)!==0&&(e.f^=Ge),_}catch(d){return Mr(d)}finally{e.f^=Fn,se=t,le=n,ve=r,A=s,ge=i,Ot(a),Te=l,dt=o}}function Ls(e,t){let n=t.reactions;if(n!==null){var r=Pi.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(n===null&&(t.f&ee)!==0&&(se===null||!Dt.call(se,t))){var i=t;(i.f&_e)!==0&&(i.f^=_e,i.f&=~_t),er(i),ws(i),Yt(i,0)}}function Yt(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Ls(e,n[r])}function Rt(e){var t=e.f;if((t&Ye)===0){V(e,X);var n=F,r=dn;F=e,dn=!0;try{(t&(Le|jr))!==0?Rs(e):ar(e),ti(e);var s=ui(e);e.teardown=typeof s=="function"?s:null,e.wv=li;var i;In&&ns&&(e.f&te)!==0&&e.deps}finally{dn=r,F=n}}}async function Fs(){await Promise.resolve(),ss()}function u(e){var t=e.f,n=(t&ee)!==0;if(A!==null&&!Te){var r=F!==null&&(F.f&Ye)!==0;if(!r&&(ge===null||!Dt.call(ge,e))){var s=A.deps;if((A.f&Fn)!==0)e.rv<st&&(e.rv=st,se===null&&s!==null&&s[le]===e?le++:se===null?se=[e]:se.push(e));else{(A.deps??(A.deps=[])).push(e);var i=e.reactions;i===null?e.reactions=[A]:Dt.call(i,A)||i.push(A)}}}if(pt&&Xe.has(e))return Xe.get(e);if(n){var a=e;if(pt){var l=a.v;return((a.f&X)===0&&a.reactions!==null||vi(a))&&(l=nr(a)),Xe.set(a,l),l}var o=(a.f&_e)===0&&!Te&&A!==null&&(dn||(A.f&_e)!==0),f=(a.f&ht)===0;nn(a)&&(o&&(a.f|=_e),Ur(a)),o&&!f&&(Vr(a),ci(a))}if($!=null&&$.has(e))return $.get(e);if((e.f&Ge)!==0)throw e.v;return e.v}function ci(e){if(e.f|=_e,e.deps!==null)for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),(t.f&ee)!==0&&(t.f&_e)===0&&(Vr(t),ci(t))}function vi(e){if(e.v===Z)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Xe.has(t)||(t.f&ee)!==0&&vi(t))return!0;return!1}function di(e){var t=Te;try{return Te=!0,e()}finally{Te=t}}const qs=["touchstart","touchmove"];function zs(e){return qs.includes(e)}const at=Symbol("events"),hi=new Set,Yn=new Set;function Bs(e,t,n,r={}){function s(i){if(r.capture||Gn.call(t,i),!i.cancelBubble)return Tn(()=>n==null?void 0:n.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?We(()=>{t.addEventListener(e,s,r)}):t.addEventListener(e,s,r),s}function Ie(e,t,n,r,s){var i={capture:r,passive:s},a=Bs(e,t,n,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ir(()=>{t.removeEventListener(e,a,i)})}function Y(e,t,n){(t[at]??(t[at]={}))[e]=n}function yt(e){for(var t=0;t<e.length;t++)hi.add(e[t]);for(var n of Yn)n(e)}let br=null;function Gn(e){var d,w;var t=this,n=t.ownerDocument,r=e.type,s=((d=e.composedPath)==null?void 0:d.call(e))||[],i=s[0]||e.target;br=e;var a=0,l=br===e&&e[at];if(l){var o=s.indexOf(l);if(o!==-1&&(t===document||t===window)){e[at]=t;return}var f=s.indexOf(t);if(f===-1)return;o<=f&&(a=o)}if(i=s[a]||e.target,i!==t){Di(e,"currentTarget",{configurable:!0,get(){return i||n}});var h=A,_=F;me(null),Oe(null);try{for(var m,k=[];i!==null;){var v=i.assignedSlot||i.parentNode||i.host||null;try{var y=(w=i[at])==null?void 0:w[r];y!=null&&(!i.disabled||e.target===i)&&y.call(i,e)}catch(E){m?k.push(E):m=E}if(e.cancelBubble||v===t||v===null)break;i=v}if(m){for(let E of k)queueMicrotask(()=>{throw E});throw m}}finally{e[at]=t,delete e.currentTarget,me(h),Oe(_)}}}var Sr;const Nn=((Sr=globalThis==null?void 0:globalThis.window)==null?void 0:Sr.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Hs(e){return(Nn==null?void 0:Nn.createHTML(e))??e}function Us(e){var t=Cs("template");return t.innerHTML=Hs(e.replaceAll("<!>","<!---->")),t.content}function Wn(e,t){var n=F;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function O(e,t){var n=(t&Xi)!==0,r=(t&Zi)!==0,s,i=!e.startsWith("<!>");return()=>{s===void 0&&(s=Us(i?e:"<!>"+e),n||(s=pn(s)));var a=r||Yr?document.importNode(s,!0):s.cloneNode(!0);if(n){var l=pn(a),o=a.lastChild;Wn(l,o)}else Wn(a,a);return a}}function _i(){var e=document.createDocumentFragment(),t=document.createComment(""),n=Ze();return e.append(t,n),Wn(t,n),e}function D(e,t){e!==null&&e.before(t)}function B(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=n,e.nodeValue=n+"")}function Vs(e,t){return Ks(e,t)}const un=new Map;function Ks(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:a=!0,transformError:l}){Ss();var o=void 0,f=As(()=>{var h=n??t.appendChild(Ze());fs(h,{pending:()=>{}},k=>{Fe({});var v=pe;i&&(v.c=i),s&&(r.$$events=s),o=e(k,r)||{},qe()},l);var _=new Set,m=k=>{for(var v=0;v<k.length;v++){var y=k[v];if(!_.has(y)){_.add(y);var d=zs(y);for(const R of[t,document]){var w=un.get(R);w===void 0&&(w=new Map,un.set(R,w));var E=w.get(y);E===void 0?(R.addEventListener(y,Gn,{passive:d}),w.set(y,1)):w.set(y,E+1)}}}};return m(wn(hi)),Yn.add(m),()=>{var d;for(var k of _)for(const w of[t,document]){var v=un.get(w),y=v.get(k);--y==0?(w.removeEventListener(k,Gn),v.delete(k),v.size===0&&un.delete(w)):v.set(k,y)}Yn.delete(m),h!==n&&((d=h.parentNode)==null||d.removeChild(h))}});return Js.set(o,f),o}let Js=new WeakMap;var we,De,fe,ct,Zt,$t,bn;class Ys{constructor(t,n=!0){Ce(this,"anchor");N(this,we,new Map);N(this,De,new Map);N(this,fe,new Map);N(this,ct,new Set);N(this,Zt,!0);N(this,$t,()=>{var t=j;if(c(this,we).has(t)){var n=c(this,we).get(t),r=c(this,De).get(n);if(r)lr(r),c(this,ct).delete(n);else{var s=c(this,fe).get(n);s&&(c(this,De).set(n,s.effect),c(this,fe).delete(n),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),r=s.effect)}for(const[i,a]of c(this,we)){if(c(this,we).delete(i),i===t)break;const l=c(this,fe).get(a);l&&(ae(l.effect),c(this,fe).delete(a))}for(const[i,a]of c(this,De)){if(i===n||c(this,ct).has(i))continue;const l=()=>{if(Array.from(c(this,we).values()).includes(i)){var f=document.createDocumentFragment();si(a,f),f.append(Ze()),c(this,fe).set(i,{effect:a,fragment:f})}else ae(a);c(this,ct).delete(i),c(this,De).delete(i)};c(this,Zt)||!r?(c(this,ct).add(i),vt(a,l,!1)):l()}}});N(this,bn,t=>{c(this,we).delete(t);const n=Array.from(c(this,we).values());for(const[r,s]of c(this,fe))n.includes(r)||(ae(s.effect),c(this,fe).delete(r))});this.anchor=t,P(this,Zt,n)}ensure(t,n){var r=j,s=Qr();if(n&&!c(this,De).has(t)&&!c(this,fe).has(t))if(s){var i=document.createDocumentFragment(),a=Ze();i.append(a),c(this,fe).set(t,{effect:he(()=>n(a)),fragment:i})}else c(this,De).set(t,he(()=>n(this.anchor)));if(c(this,we).set(r,t),s){for(const[l,o]of c(this,De))l===t?r.unskip_effect(o):r.skip_effect(o);for(const[l,o]of c(this,fe))l===t?r.unskip_effect(o.effect):r.skip_effect(o.effect);r.oncommit(c(this,$t)),r.ondiscard(c(this,bn))}else c(this,$t).call(this)}}we=new WeakMap,De=new WeakMap,fe=new WeakMap,ct=new WeakMap,Zt=new WeakMap,$t=new WeakMap,bn=new WeakMap;function U(e,t,n=!1){var r=new Ys(e),s=n?At:0;function i(a,l){r.ensure(a,l)}sr(()=>{var a=!1;t((l,o=0)=>{a=!0,i(o,l)}),a||i(!1,null)},s)}function Gt(e,t){return t}function Gs(e,t,n){for(var r=[],s=t.length,i,a=t.length,l=0;l<s;l++){let _=t[l];vt(_,()=>{if(i){if(i.pending.delete(_),i.done.add(_),i.pending.size===0){var m=e.outrogroups;Qn(wn(i.done)),m.delete(i),m.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var o=r.length===0&&n!==null;if(o){var f=n,h=f.parentNode;xs(h),h.append(f),e.items.clear()}Qn(t,!o)}else i={pending:new Set(t),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(i)}function Qn(e,t=!0){for(var n=0;n<e.length;n++)ae(e[n],t)}var wr;function $e(e,t,n,r,s,i=null){var a=e,l=new Map;{var o=e;a=o.appendChild(Ze())}var f=null,h=ms(()=>{var d=n();return Zn(d)?d:d==null?[]:wn(d)}),_,m=!0;function k(){y.fallback=f,Ws(y,_,a,t,r),f!==null&&(_.length===0?(f.f&Ke)===0?lr(f):(f.f^=Ke,zt(f,null,a)):vt(f,()=>{f=null}))}var v=sr(()=>{_=u(h);for(var d=_.length,w=new Set,E=j,R=Qr(),q=0;q<d;q+=1){var I=_[q],z=r(I,q),C=m?null:l.get(z);C?(C.v&&Nt(C.v,I),C.i&&Nt(C.i,q),R&&E.unskip_effect(C.e)):(C=Qs(l,m?a:wr??(wr=Ze()),I,z,q,s,t,n),m||(C.e.f|=Ke),l.set(z,C)),w.add(z)}if(d===0&&i&&!f&&(m?f=he(()=>i(a)):(f=he(()=>i(wr??(wr=Ze()))),f.f|=Ke)),d>w.size&&qi(),!m)if(R){for(const[W,J]of l)w.has(W)||E.skip_effect(J.e);E.oncommit(k),E.ondiscard(()=>{})}else k();u(h)}),y={effect:v,items:l,outrogroups:null,fallback:f};m=!1}function qt(e){for(;e!==null&&(e.f&xe)===0;)e=e.next;return e}function Ws(e,t,n,r,s){var W;var i=t.length,a=e.items,l=qt(e.effect.first),o,f=null,h=[],_=[],m,k,v,y;for(y=0;y<i;y+=1){if(m=t[y],k=s(m,y),v=a.get(k).e,e.outrogroups!==null)for(const J of e.outrogroups)J.pending.delete(v),J.done.delete(v);if((v.f&Ke)!==0)if(v.f^=Ke,v===l)zt(v,null,n);else{var d=f?f.next:l;v===e.effect.last&&(e.effect.last=v.prev),v.prev&&(v.prev.next=v.next),v.next&&(v.next.prev=v.prev),Be(e,f,v),Be(e,v,d),zt(v,d,n),f=v,h=[],_=[],l=qt(f.next);continue}if((v.f&ue)!==0&&lr(v),v!==l){if(o!==void 0&&o.has(v)){if(h.length<_.length){var w=_[0],E;f=w.prev;var R=h[0],q=h[h.length-1];for(E=0;E<h.length;E+=1)zt(h[E],w,n);for(E=0;E<_.length;E+=1)o.delete(_[E]);Be(e,R.prev,q.next),Be(e,f,R),Be(e,q,w),l=w,f=q,y-=1,h=[],_=[]}else o.delete(v),zt(v,l,n),Be(e,v.prev,v.next),Be(e,v,f===null?e.effect.first:f.next),Be(e,f,v),f=v;continue}for(h=[],_=[];l!==null&&l!==v;)(o??(o=new Set)).add(l),_.push(l),l=qt(l.next);if(l===null)continue}(v.f&Ke)===0&&h.push(v),f=v,l=qt(v.next)}if(e.outrogroups!==null){for(const J of e.outrogroups)J.pending.size===0&&(Qn(wn(J.done)),(W=e.outrogroups)==null||W.delete(J));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||o!==void 0){var I=[];if(o!==void 0)for(v of o)(v.f&ue)===0&&I.push(v);for(;l!==null;)(l.f&ue)===0&&l!==e.fallback&&I.push(l),l=qt(l.next);var z=I.length;if(z>0){var C=i===0?n:null;Gs(e,I,C)}}}function Qs(e,t,n,r,s,i,a,l){var o=(a&Gi)!==0?(a&Qi)===0?ks(n,!1,!1):gt(n):null,f=(a&Wi)!==0?gt(s):null;return{v:o,i:f,e:he(()=>(i(t,o??n,f??s,l),()=>{e.delete(r)}))}}function zt(e,t,n){if(e.nodes)for(var r=e.nodes.start,s=e.nodes.end,i=t&&(t.f&Ke)===0?t.nodes.start:n;r!==null;){var a=tn(r);if(i.before(r),r===s)return;r=a}}function Be(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}const kr=[...`
|
|
2
|
+
\r\f \v\uFEFF`];function Xs(e,t,n){var r=e==null?"":""+e;if(t&&(r=r?r+" "+t:t),n){for(var s of Object.keys(n))if(n[s])r=r?r+" "+s:s;else if(r.length)for(var i=s.length,a=0;(a=r.indexOf(s,a))>=0;){var l=a+i;(a===0||kr.includes(r[a-1]))&&(l===r.length||kr.includes(r[l]))?r=(a===0?"":r.substring(0,a))+r.substring(l+1):a=l}}return r===""?null:r}function Zs(e,t){return e==null?null:String(e)}function Wt(e,t,n,r,s,i){var a=e.__className;if(a!==n||a===void 0){var l=Xs(n,r,i);l==null?e.removeAttribute("class"):e.className=l,e.__className=n}else if(i&&s!==i)for(var o in i){var f=!!i[o];(s==null||f!==!!s[o])&&e.classList.toggle(o,f)}return i}function $s(e,t,n,r){var s=e.__style;if(s!==t){var i=Zs(t);i==null?e.removeAttribute("style"):e.style.cssText=i,e.__style=t}return r}function or(e,t,n=!1){if(e.multiple){if(t==null)return;if(!Zn(t))return $i();for(var r of e.options)r.selected=t.includes(Kt(r));return}for(r of e.options){var s=Kt(r);if(Ts(s,t)){r.selected=!0;return}}(!n||t!==void 0)&&(e.selectedIndex=-1)}function gi(e){var t=new MutationObserver(()=>{or(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),ir(()=>{t.disconnect()})}function Er(e,t,n=t){var r=new WeakSet,s=!0;Zr(e,"change",i=>{var a=i?"[selected]":":checked",l;if(e.multiple)l=[].map.call(e.querySelectorAll(a),Kt);else{var o=e.querySelector(a)??e.querySelector("option:not([disabled])");l=o&&Kt(o)}n(l),j!==null&&r.add(j)}),Os(()=>{var i=t();if(e===document.activeElement){var a=_n??j;if(r.has(a))return}if(or(e,i,s),s&&i===void 0){var l=e.querySelector(":checked");l!==null&&(i=Kt(l),n(i))}e.__value=i,s=!1}),gi(e)}function Kt(e){return"__value"in e?e.__value:e.value}const ea=Symbol("is custom element"),ta=Symbol("is html"),na=Li?"progress":"PROGRESS";function ra(e,t){var n=ia(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!==na)||(e.value=t??"")}function ia(e){return e.__attributes??(e.__attributes={[ea]:e.nodeName.includes("-"),[ta]:e.namespaceURI===Dr})}function hn(e,t,n=t){var r=new WeakSet;Zr(e,"input",async s=>{var i=s?e.defaultValue:e.value;if(i=Rn(e)?Mn(i):i,n(i),j!==null&&r.add(j),await Fs(),i!==(i=t())){var a=e.selectionStart,l=e.selectionEnd,o=e.value.length;if(e.value=i??"",l!==null){var f=e.value.length;a===l&&l===o&&f>o?(e.selectionStart=f,e.selectionEnd=f):(e.selectionStart=a,e.selectionEnd=Math.min(l,f))}}}),di(t)==null&&e.value&&(n(Rn(e)?Mn(e.value):e.value),j!==null&&r.add(j)),ei(()=>{var s=t();if(e===document.activeElement){var i=_n??j;if(r.has(i))return}Rn(e)&&s===Mn(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function Rn(e){var t=e.type;return t==="number"||t==="range"}function Mn(e){return e===""?null:+e}function pi(e,t,n,r){var s=r,i=!0,a=()=>(i&&(i=!1,s=r),s),l;l=e[t],l===void 0&&r!==void 0&&(l=a());var o;return o=()=>{var f=e[t];return f===void 0?a():(i=!0,f)},o}const sa="5";var xr;typeof window<"u"&&((xr=window.__svelte??(window.__svelte={})).v??(xr.v=new Set)).add(sa);async function He(e,t){const n=await fetch(`/api${e}`,{headers:{"Content-Type":"application/json"},...t});if(!n.ok){const r=await n.json().catch(()=>({error:n.statusText}));throw new Error(r.error||"Request failed")}return n.json()}const Ue={getProjects:()=>He("/projects"),getProject:e=>He(`/projects/${e}`),updateProject:(e,t)=>He(`/projects/${e}`,{method:"PATCH",body:JSON.stringify(t)}),getTasks:e=>He(`/projects/${e}/tasks?include_done=true`),createTask:(e,t)=>He(`/projects/${e}/tasks`,{method:"POST",body:JSON.stringify(t)}),updateTask:(e,t)=>He(`/tasks/${e}`,{method:"PATCH",body:JSON.stringify(t)}),deleteTask:e=>He(`/tasks/${e}`,{method:"DELETE"}),getDecisions:e=>He(`/projects/${e}/decisions`)};var aa=O('<option class="svelte-1kanzy0"> </option>'),la=O('<span class="project-slug svelte-1kanzy0"> </span>'),oa=O('<input class="rename-input svelte-1kanzy0" type="text"/>'),fa=O('<button class="rename-btn svelte-1kanzy0" title="Rename project">✎</button>'),ua=O("<!> <!>",1),ca=O('<header class="toolbar svelte-1kanzy0"><div class="brand svelte-1kanzy0"><span class="prompt svelte-1kanzy0">></span> mindpm</div> <div class="project-area svelte-1kanzy0"><span class="project-label svelte-1kanzy0">project:</span> <select class="svelte-1kanzy0"></select> <!></div></header>');function va(e,t){Fe(t,!0);let n=M(!1),r=M("");const s=Ee(()=>t.projects.find(v=>v.id===t.selectedId));function i(){u(s)&&(b(r,u(s).name,!0),b(n,!0))}function a(){if(!u(s)||!u(n))return;const v=u(r).trim();v&&v!==u(s).name&&t.onRenamed(u(s).id,v),b(n,!1)}function l(v){v.key==="Enter"&&a(),v.key==="Escape"&&b(n,!1)}var o=ca(),f=S(T(o),2),h=S(T(f),2);$e(h,21,()=>t.projects,Gt,(v,y)=>{var d=aa(),w=T(d),E={};H(()=>{B(w,u(y).name),E!==(E=u(y).id)&&(d.value=(d.__value=u(y).id)??"")}),D(v,d)});var _;gi(h);var m=S(h,2);{var k=v=>{var y=ua(),d=Jt(y);{var w=I=>{var z=la(),C=T(z);H(()=>B(C,`[${u(s).slug??""}]`)),D(I,z)};U(d,I=>{u(s).slug&&I(w)})}var E=S(d,2);{var R=I=>{var z=oa();Xr(z),Ie("blur",z,a),Y("keydown",z,l),hn(z,()=>u(r),C=>b(r,C)),D(I,z)},q=I=>{var z=fa();Y("click",z,i),D(I,z)};U(E,I=>{u(n)?I(R):I(q,!1)})}D(v,y)};U(m,v=>{u(s)&&v(k)})}H(()=>{_!==(_=t.selectedId??"")&&(h.value=(h.__value=t.selectedId??"")??"",or(h,t.selectedId??""))}),Y("change",h,v=>t.onSelect(v.target.value)),D(e,o),qe()}yt(["change","keydown","click"]);const da=[{status:"todo",label:"Todo"},{status:"in_progress",label:"In Progress"},{status:"blocked",label:"Blocked"},{status:"done",label:"Done"},{status:"cancelled",label:"Cancelled"}],mi=["critical","high","medium","low"];var ha=O('<span class="task-id svelte-35ep21"> </span>'),_a=O('<div class="card-desc svelte-35ep21"> </div>'),ga=O('<span class="tag svelte-35ep21"> </span>'),pa=O('<div class="card-tags svelte-35ep21"></div>'),ma=O('<div draggable="true" role="button" tabindex="0"><div class="card-header svelte-35ep21"><span> </span> <div class="card-header-right svelte-35ep21"><!> <button class="delete-btn svelte-35ep21" title="Delete task">×</button></div></div> <div class="card-title svelte-35ep21"> </div> <!> <!></div>');function ya(e,t){Fe(t,!0);let n=M(!1);function r(C){if(!C)return[];try{return JSON.parse(C)}catch{return[]}}const s=Ee(()=>r(t.task.tags)),i=Ee(()=>`priority-${t.task.priority}`);function a(C){b(n,!0),t.onDragStart(C,t.task)}function l(){b(n,!1)}var o=ma();let f;var h=T(o),_=T(h),m=T(_),k=S(_,2),v=T(k);{var y=C=>{var W=ha(),J=T(W);H(()=>B(J,t.task.short_id)),D(C,W)};U(v,C=>{t.task.short_id&&C(y)})}var d=S(v,2),w=S(h,2),E=T(w),R=S(w,2);{var q=C=>{var W=_a(),J=T(W);H(()=>B(J,t.task.description)),D(C,W)};U(R,C=>{t.task.description&&C(q)})}var I=S(R,2);{var z=C=>{var W=pa();$e(W,21,()=>u(s),Gt,(J,It)=>{var et=ga(),tt=T(et);H(()=>B(tt,u(It))),D(J,et)}),D(C,W)};U(I,C=>{u(s).length>0&&C(z)})}H(()=>{f=Wt(o,1,`card ${u(i)??""}`,"svelte-35ep21",f,{dragging:u(n)}),Wt(_,1,`priority-badge ${u(i)??""}`,"svelte-35ep21"),B(m,t.task.priority),B(E,t.task.title)}),Ie("dragstart",o,a),Ie("dragend",o,l),Y("click",o,()=>t.onEdit(t.task)),Y("keydown",o,C=>{C.key==="Enter"&&t.onEdit(t.task)}),Y("click",d,C=>{C.stopPropagation(),t.onDelete(t.task)}),D(e,o),qe()}yt(["click","keydown"]);var ba=O('<button class="add-btn svelte-zswfgn" title="Add task">+</button>'),wa=O('<div role="list"><div class="column-header svelte-zswfgn"><h3 class="svelte-zswfgn"><span class="chevron svelte-zswfgn">▸</span> <span class="count svelte-zswfgn"> </span></h3> <!></div> <div class="card-list svelte-zswfgn"></div></div>');function ka(e,t){Fe(t,!0);let n=M(!1);function r(d){d.preventDefault(),d.dataTransfer&&(d.dataTransfer.dropEffect="move"),b(n,!0)}function s(){b(n,!1)}function i(d){d.preventDefault(),b(n,!1),t.onDrop(t.status)}var a=wa();let l;var o=T(a),f=T(o),h=S(T(f)),_=S(h),m=T(_),k=S(f,2);{var v=d=>{var w=ba();Y("click",w,()=>t.onAddTask(t.status)),D(d,w)};U(k,d=>{t.status==="todo"&&d(v)})}var y=S(o,2);$e(y,21,()=>t.tasks,d=>d.id,(d,w)=>{ya(d,{get task(){return u(w)},get onEdit(){return t.onEdit},get onDelete(){return t.onDelete},get onDragStart(){return t.onDragStart}})}),H(()=>{l=Wt(a,1,"column svelte-zswfgn",null,l,{"drag-over":u(n)}),B(h,` ${t.label??""} `),B(m,`[${t.tasks.length??""}]`)}),Ie("dragover",a,r),Ie("dragleave",a,s),Ie("drop",a,i),D(e,a),qe()}yt(["click"]);var Ea=O('<span class="modal-task-id svelte-1gmf2hi"> </span>'),Ta=O("<option> </option>"),Sa=O('<div class="field svelte-1gmf2hi"><label for="status" class="svelte-1gmf2hi">Status</label> <select id="status" class="svelte-1gmf2hi"><option>Todo</option><option>In Progress</option><option>Blocked</option><option>Done</option><option>Cancelled</option></select></div>'),xa=O('<div class="decision-reasoning svelte-1gmf2hi"> </div>'),Ca=O('<div class="decision-alts svelte-1gmf2hi"> </div>'),ja=O('<div class="decision-item svelte-1gmf2hi"><div class="decision-title svelte-1gmf2hi"> </div> <div class="decision-body svelte-1gmf2hi"> </div> <!> <!></div>'),Pa=O('<div class="decisions-section svelte-1gmf2hi"><h3 class="decisions-heading svelte-1gmf2hi">Decisions</h3> <div class="decisions-list svelte-1gmf2hi"></div></div>'),Da=O('<div class="modal-backdrop svelte-1gmf2hi"><div class="modal svelte-1gmf2hi"><div class="modal-header svelte-1gmf2hi"><div class="modal-title svelte-1gmf2hi"><h2 class="svelte-1gmf2hi"> </h2> <!></div> <button class="close-btn svelte-1gmf2hi">×</button></div> <form><div class="field svelte-1gmf2hi"><label for="title" class="svelte-1gmf2hi">Title</label> <input id="title" type="text" placeholder="Task title" required="" class="svelte-1gmf2hi"/></div> <div class="field svelte-1gmf2hi"><label for="description" class="svelte-1gmf2hi">Description</label> <textarea id="description" placeholder="Optional description" rows="3" class="svelte-1gmf2hi"></textarea></div> <div class="row svelte-1gmf2hi"><div class="field svelte-1gmf2hi"><label for="priority" class="svelte-1gmf2hi">Priority</label> <select id="priority" class="svelte-1gmf2hi"></select></div> <!></div> <div class="field svelte-1gmf2hi"><label for="tags" class="svelte-1gmf2hi">Tags <span class="hint svelte-1gmf2hi">(comma-separated)</span></label> <input id="tags" type="text" placeholder="e.g. backend, auth, bug" class="svelte-1gmf2hi"/></div> <div class="actions svelte-1gmf2hi"><button type="button" class="btn-cancel svelte-1gmf2hi">Cancel</button> <button type="submit" class="btn-save svelte-1gmf2hi"> </button></div></form> <!></div></div>');function Aa(e,t){Fe(t,!0);let n=pi(t,"defaultStatus",3,"todo"),r=M(""),s=M(""),i=M("medium"),a=M("todo"),l=M(""),o=M(Ae([]));mn(()=>{var g,x,L,K,ne;if(b(r,((g=t.task)==null?void 0:g.title)??"",!0),b(s,((x=t.task)==null?void 0:x.description)??"",!0),b(i,((L=t.task)==null?void 0:L.priority)??"medium",!0),b(a,((K=t.task)==null?void 0:K.status)??n(),!0),(ne=t.task)!=null&&ne.tags)try{b(l,JSON.parse(t.task.tags).join(", "),!0)}catch{b(l,"")}else b(l,"")}),mn(()=>{t.task!==null?Ue.getDecisions(t.projectId).then(g=>{b(o,g,!0)}).catch(()=>{b(o,[],!0)}):b(o,[],!0)});const f=Ee(()=>t.task!==null);function h(g){g.preventDefault();const x=u(r).trim();if(!x)return;const L=u(l).split(",").map(K=>K.trim()).filter(Boolean);t.onSave({title:x,description:u(s).trim(),priority:u(i),...u(f)?{status:u(a)}:{},tags:L})}function _(g){g.target.classList.contains("modal-backdrop")&&t.onClose()}function m(g){g.key==="Escape"&&t.onClose()}var k=Da();Ie("keydown",gn,m);var v=T(k),y=T(v),d=T(y),w=T(d),E=T(w),R=S(w,2);{var q=g=>{var x=Ea(),L=T(x);H(()=>B(L,t.task.short_id)),D(g,x)};U(R,g=>{var x;(x=t.task)!=null&&x.short_id&&g(q)})}var I=S(d,2),z=S(y,2),C=T(z),W=S(T(C),2);Xr(W);var J=S(C,2),It=S(T(J),2),et=S(J,2),tt=T(et),Lt=S(T(tt),2);$e(Lt,21,()=>mi,Gt,(g,x)=>{var L=Ta(),K=T(L),ne={};H(()=>{B(K,u(x)),ne!==(ne=u(x))&&(L.value=(L.__value=u(x))??"")}),D(g,L)});var rn=S(tt,2);{var Sn=g=>{var x=Sa(),L=S(T(x),2),K=T(L);K.value=K.__value="todo";var ne=S(K);ne.value=ne.__value="in_progress";var bt=S(ne);bt.value=bt.__value="blocked";var wt=S(bt);wt.value=wt.__value="done";var an=S(wt);an.value=an.__value="cancelled",Er(L,()=>u(a),ln=>b(a,ln)),D(g,x)};U(rn,g=>{u(f)&&g(Sn)})}var sn=S(et,2),xn=S(T(sn),2),Cn=S(sn,2),Ft=T(Cn),jn=S(Ft,2),Pn=T(jn),Dn=S(z,2);{var p=g=>{var x=Pa(),L=S(T(x),2);$e(L,21,()=>u(o),K=>K.id,(K,ne)=>{var bt=ja(),wt=T(bt),an=T(wt),ln=S(wt,2),yi=T(ln),ur=S(ln,2);{var bi=nt=>{var kt=xa(),on=T(kt);H(()=>B(on,u(ne).reasoning)),D(nt,kt)};U(ur,nt=>{u(ne).reasoning&&nt(bi)})}var wi=S(ur,2);{var ki=nt=>{const kt=Ee(()=>(()=>{try{return JSON.parse(u(ne).alternatives)}catch{return null}})());var on=_i(),Ei=Jt(on);{var Ti=An=>{var cr=Ca(),Si=T(cr);H(xi=>B(Si,`Alternatives: ${xi??""}`),[()=>u(kt).join(", ")]),D(An,cr)};U(Ei,An=>{u(kt)&&u(kt).length>0&&An(Ti)})}D(nt,on)};U(wi,nt=>{u(ne).alternatives&&nt(ki)})}H(()=>{B(an,u(ne).title),B(yi,u(ne).decision)}),D(K,bt)}),D(g,x)};U(Dn,g=>{u(f)&&u(o).length>0&&g(p)})}H(()=>{B(E,u(f)?"Edit Task":"New Task"),B(Pn,u(f)?"Save":"Create")}),Y("click",k,_),Y("click",I,function(...g){var x;(x=t.onClose)==null||x.apply(this,g)}),Ie("submit",z,h),hn(W,()=>u(r),g=>b(r,g)),hn(It,()=>u(s),g=>b(s,g)),Er(Lt,()=>u(i),g=>b(i,g)),hn(xn,()=>u(l),g=>b(l,g)),Y("click",Ft,function(...g){var x;(x=t.onClose)==null||x.apply(this,g)}),D(e,k),qe()}yt(["click"]);var Oa=O('<div class="modal-backdrop svelte-1efofyg"><div class="dialog svelte-1efofyg"><h3 class="svelte-1efofyg"> </h3> <p class="svelte-1efofyg"> </p> <div class="actions svelte-1efofyg"><button class="btn-cancel svelte-1efofyg">Cancel</button> <button class="btn-confirm svelte-1efofyg"> </button></div></div></div>');function Na(e,t){Fe(t,!0);let n=pi(t,"confirmLabel",3,"Delete");function r(y){y.target.classList.contains("modal-backdrop")&&t.onCancel()}function s(y){y.key==="Escape"&&t.onCancel()}var i=Oa();Ie("keydown",gn,s);var a=T(i),l=T(a),o=T(l),f=S(l,2),h=T(f),_=S(f,2),m=T(_),k=S(m,2),v=T(k);H(()=>{B(o,t.title),B(h,t.message),B(v,n())}),Y("click",i,r),Y("click",m,function(...y){var d;(d=t.onCancel)==null||d.apply(this,y)}),Y("click",k,function(...y){var d;(d=t.onConfirm)==null||d.apply(this,y)}),D(e,i),qe()}yt(["click"]);var Ra=O('<button class="clear-input svelte-dhotvj">×</button>'),Ma=O("<button> </button>"),Ia=O("<button> </button>"),La=O('<div class="filter-section svelte-dhotvj"><span class="filter-label svelte-dhotvj">tags:</span> <div class="chip-group svelte-dhotvj"></div></div>'),Fa=O('<button class="clear-all svelte-dhotvj"> </button>'),qa=O('<div class="filter-bar svelte-dhotvj"><div class="filter-search svelte-dhotvj"><span class="search-icon svelte-dhotvj">/</span> <input type="text" placeholder="search tasks..." class="svelte-dhotvj"/> <!></div> <div class="filter-section svelte-dhotvj"><span class="filter-label svelte-dhotvj">priority:</span> <div class="chip-group svelte-dhotvj"></div></div> <!> <!></div>');function za(e,t){Fe(t,!0);const n=Ee(()=>(t.searchQuery.trim()?1:0)+t.selectedPriorities.size+t.selectedTags.size),r={critical:"var(--priority-critical)",high:"var(--priority-high)",medium:"var(--priority-medium)",low:"var(--text-muted)"};var s=qa(),i=T(s),a=S(T(i),2),l=S(a,2);{var o=y=>{var d=Ra();Y("click",d,()=>t.onSearchChange("")),D(y,d)};U(l,y=>{t.searchQuery&&y(o)})}var f=S(i,2),h=S(T(f),2);$e(h,21,()=>mi,Gt,(y,d)=>{var w=Ma();let E;var R=T(w);H(q=>{E=Wt(w,1,"chip svelte-dhotvj",null,E,q),$s(w,`--chip-color: ${r[u(d)]??""}`),B(R,u(d))},[()=>({active:t.selectedPriorities.has(u(d))})]),Y("click",w,()=>t.onPriorityToggle(u(d))),D(y,w)});var _=S(f,2);{var m=y=>{var d=La(),w=S(T(d),2);$e(w,21,()=>t.allTags,Gt,(E,R)=>{var q=Ia();let I;var z=T(q);H(C=>{I=Wt(q,1,"chip tag-chip svelte-dhotvj",null,I,C),B(z,`#${u(R)??""}`)},[()=>({active:t.selectedTags.has(u(R))})]),Y("click",q,()=>t.onTagToggle(u(R))),D(E,q)}),D(y,d)};U(_,y=>{t.allTags.length>0&&y(m)})}var k=S(_,2);{var v=y=>{var d=Fa(),w=T(d);H(()=>B(w,`clear [${u(n)??""}]`)),Y("click",d,function(...E){var R;(R=t.onClear)==null||R.apply(this,E)}),D(y,d)};U(k,y=>{u(n)>0&&y(v)})}H(()=>ra(a,t.searchQuery)),Y("input",a,y=>t.onSearchChange(y.target.value)),D(e,s),qe()}yt(["input","click"]);var Ba=O('<div class="board-message svelte-x7v2jt">Loading tasks...</div>'),Ha=O('<div class="board-message error svelte-x7v2jt"> <button class="svelte-x7v2jt">Retry</button></div>'),Ua=O('<div class="board svelte-x7v2jt"></div>'),Va=O('<!> <div class="board-wrapper svelte-x7v2jt"><!></div> <!> <!>',1);function Ka(e,t){Fe(t,!0);let n=M(Ae([])),r=M(!0),s=M(null),i=M(!1),a=M(null),l=M("todo"),o=M(!1),f=M(null),h=M(null),_=M(""),m=M(Ae(new Set)),k=M(Ae(new Set));const v=Ee(()=>()=>{const p=new Set;for(const g of u(n))if(g.tags)try{for(const x of JSON.parse(g.tags))p.add(x)}catch{}return[...p].sort()}),y=Ee(()=>()=>{let p=u(n);const g=u(_).trim().toLowerCase();return g&&(p=p.filter(x=>x.title.toLowerCase().includes(g)||(x.description??"").toLowerCase().includes(g)||(x.short_id??"").toLowerCase().includes(g))),u(m).size>0&&(p=p.filter(x=>u(m).has(x.priority))),u(k).size>0&&(p=p.filter(x=>{if(!x.tags)return!1;try{return JSON.parse(x.tags).some(K=>u(k).has(K))}catch{return!1}})),p}),d=Ee(()=>da.map(p=>({...p,tasks:u(y)().filter(g=>g.status===p.status)})));function w(p){const g=new Set(u(m));g.has(p)?g.delete(p):g.add(p),b(m,g,!0)}function E(p){const g=new Set(u(k));g.has(p)?g.delete(p):g.add(p),b(k,g,!0)}function R(){b(_,""),b(m,new Set,!0),b(k,new Set,!0)}async function q(){b(r,!0),b(s,null);try{b(n,await Ue.getTasks(t.project.id),!0)}catch(p){b(s,p.message,!0)}finally{b(r,!1)}}mn(()=>{t.project.id,q()});function I(p,g){b(h,g,!0),p.dataTransfer&&(p.dataTransfer.effectAllowed="move",p.dataTransfer.setData("text/plain",g.id))}async function z(p){if(!u(h)||u(h).status===p){b(h,null);return}const g=u(h),x=g.status;b(h,null);const L=u(n).findIndex(K=>K.id===g.id);L!==-1&&(u(n)[L]={...u(n)[L],status:p});try{await Ue.updateTask(g.id,{status:p})}catch(K){L!==-1&&(u(n)[L]={...u(n)[L],status:x}),b(s,K.message,!0)}}function C(p){b(a,null),b(l,p,!0),b(i,!0)}function W(p){b(a,p,!0),b(i,!0)}async function J(p){try{if(u(a)){const g=await Ue.updateTask(u(a).id,{title:p.title,description:p.description||null,priority:p.priority,status:p.status,tags:p.tags.length>0?p.tags:null}),x=u(n).findIndex(L=>L.id===u(a).id);x!==-1&&(u(n)[x]=g)}else{const g=await Ue.createTask(t.project.id,{title:p.title,description:p.description||void 0,priority:p.priority,tags:p.tags.length>0?p.tags:void 0});b(n,[g,...u(n)],!0)}b(i,!1),b(a,null)}catch(g){b(s,g.message,!0)}}function It(p){b(f,p,!0),b(o,!0)}async function et(){if(u(f))try{await Ue.deleteTask(u(f).id),b(n,u(n).filter(p=>p.id!==u(f).id&&p.parent_task_id!==u(f).id),!0),b(o,!1),b(f,null)}catch(p){b(s,p.message,!0)}}var tt=Va(),Lt=Jt(tt);{let p=Ee(()=>u(v)());za(Lt,{get allTags(){return u(p)},get searchQuery(){return u(_)},get selectedPriorities(){return u(m)},get selectedTags(){return u(k)},onSearchChange:g=>{b(_,g,!0)},onPriorityToggle:w,onTagToggle:E,onClear:R})}var rn=S(Lt,2),Sn=T(rn);{var sn=p=>{var g=Ba();D(p,g)},xn=p=>{var g=Ha(),x=T(g),L=S(x);H(()=>B(x,`${u(s)??""} `)),Y("click",L,()=>{b(s,null),q()}),D(p,g)},Cn=p=>{var g=Ua();$e(g,21,()=>u(d),x=>x.status,(x,L)=>{ka(x,{get status(){return u(L).status},get label(){return u(L).label},get tasks(){return u(L).tasks},onEdit:W,onDelete:It,onDragStart:I,onDrop:z,onAddTask:C})}),D(p,g)};U(Sn,p=>{u(r)?p(sn):u(s)?p(xn,1):p(Cn,!1)})}var Ft=S(rn,2);{var jn=p=>{Aa(p,{get task(){return u(a)},get projectId(){return t.project.id},get defaultStatus(){return u(l)},onSave:J,onClose:()=>{b(i,!1),b(a,null)}})};U(Ft,p=>{u(i)&&p(jn)})}var Pn=S(Ft,2);{var Dn=p=>{Na(p,{title:"Delete Task",get message(){return`Are you sure you want to delete "${u(f).title??""}"? This cannot be undone.`},onConfirm:et,onCancel:()=>{b(o,!1),b(f,null)}})};U(Pn,p=>{u(o)&&u(f)&&p(Dn)})}D(e,tt),qe()}yt(["click"]);var Ja=O('<div class="loading svelte-1n46o8q"><span class="prompt svelte-1n46o8q">></span> loading projects...</div>'),Ya=O('<div class="error svelte-1n46o8q"><span class="err-prefix svelte-1n46o8q">[error]</span> </div>'),Ga=O('<div class="empty svelte-1n46o8q"><p class="empty-prompt svelte-1n46o8q">> no projects found</p> <p class="empty-hint svelte-1n46o8q">// create a project using mindpm MCP tools to get started</p></div>'),Wa=O("<!> <!>",1);function Qa(e,t){Fe(t,!0);let n=M(Ae([])),r=M(null),s=M(!0),i=M(null);const a=Ee(()=>u(n).find(d=>d.id===u(r))??null);async function l(){try{if(b(n,await Ue.getProjects(),!0),u(n).length>0&&!u(r)){const d=new URLSearchParams(window.location.search).get("project"),w=d?u(n).find(E=>E.id===d||E.name===d):null;b(r,w?w.id:u(n)[0].id,!0)}}catch(d){b(i,d.message,!0)}finally{b(s,!1)}}function o(d){b(r,d,!0)}async function f(d,w){try{await Ue.updateProject(d,{name:w});const E=u(n).findIndex(R=>R.id===d);E!==-1&&(u(n)[E]={...u(n)[E],name:w})}catch(E){b(i,E.message,!0)}}mn(()=>{l()});var h=_i(),_=Jt(h);{var m=d=>{var w=Ja();D(d,w)},k=d=>{var w=Ya(),E=S(T(w));H(()=>B(E,` ${u(i)??""}`)),D(d,w)},v=d=>{var w=Ga();D(d,w)},y=d=>{var w=Wa(),E=Jt(w);va(E,{get projects(){return u(n)},get selectedId(){return u(r)},onSelect:o,onRenamed:f});var R=S(E,2);{var q=I=>{Ka(I,{get project(){return u(a)}})};U(R,I=>{u(a)&&I(q)})}D(d,w)};U(_,d=>{u(s)?d(m):u(i)?d(k,1):u(n).length===0?d(v,2):d(y,!1)})}D(e,h),qe()}Vs(Qa,{target:document.getElementById("app")});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.toolbar.svelte-1kanzy0{display:flex;align-items:center;gap:20px;padding:8px 16px;background:var(--surface);border-bottom:1px solid var(--border);flex-shrink:0}.brand.svelte-1kanzy0{font-size:.95rem;font-weight:700;color:var(--primary);letter-spacing:.5px;white-space:nowrap}.prompt.svelte-1kanzy0{color:var(--text-dim)}.project-area.svelte-1kanzy0{display:flex;align-items:center;gap:8px}.project-label.svelte-1kanzy0{color:var(--text-muted);font-size:.8rem}.project-slug.svelte-1kanzy0{color:var(--text-muted);font-size:.75rem}select.svelte-1kanzy0{padding:4px 8px;border-radius:var(--radius-sm);border:1px solid var(--border-bright);background:var(--surface-2);color:var(--text);-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}select.svelte-1kanzy0 option:where(.svelte-1kanzy0){background:var(--surface-2);color:var(--text)}.rename-btn.svelte-1kanzy0{background:none;border:1px solid var(--border);color:var(--text-muted);border-radius:var(--radius-sm);padding:2px 7px;font-size:.85rem;line-height:1.5}.rename-btn.svelte-1kanzy0:hover{border-color:var(--primary);color:var(--primary)}.rename-input.svelte-1kanzy0{padding:3px 8px;border-radius:var(--radius-sm);border:1px solid var(--primary);background:var(--surface-2);color:var(--text);width:180px;outline:none;box-shadow:0 0 0 2px var(--primary-dim)}.card.svelte-35ep21{background:var(--surface);border:1px solid var(--border);border-left-width:3px;border-radius:var(--radius);padding:8px 10px;cursor:grab;transition:border-color .15s,background .15s;position:relative}.card.priority-critical.svelte-35ep21{border-left-color:var(--priority-critical)}.card.priority-high.svelte-35ep21{border-left-color:var(--priority-high)}.card.priority-medium.svelte-35ep21{border-left-color:var(--priority-medium)}.card.priority-low.svelte-35ep21{border-left-color:var(--border-bright)}.card.svelte-35ep21:hover{background:var(--surface-2);border-color:var(--border-bright);border-left-color:inherit}.card.dragging.svelte-35ep21{opacity:.4}.card-header.svelte-35ep21{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px}.card-header-right.svelte-35ep21{display:flex;align-items:center;gap:6px}.task-id.svelte-35ep21{font-size:.65rem;color:var(--text-muted)}.priority-badge.svelte-35ep21{font-size:.6rem;font-weight:700;text-transform:uppercase;letter-spacing:.8px;color:var(--text-muted)}.priority-badge.priority-critical.svelte-35ep21{color:var(--priority-critical)}.priority-badge.priority-high.svelte-35ep21{color:var(--priority-high)}.priority-badge.priority-medium.svelte-35ep21{color:var(--priority-medium)}.priority-badge.priority-low.svelte-35ep21{color:var(--text-muted)}.delete-btn.svelte-35ep21{background:none;border:none;color:var(--text-muted);font-size:1rem;line-height:1;padding:0 2px;opacity:0;transition:opacity .1s}.card.svelte-35ep21:hover .delete-btn:where(.svelte-35ep21){opacity:1}.delete-btn.svelte-35ep21:hover{color:var(--danger)}.card-title.svelte-35ep21{font-size:.8rem;font-weight:500;word-break:break-word;color:var(--text);line-height:1.4}.card-desc.svelte-35ep21{font-size:.72rem;color:var(--text-muted);margin-top:4px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.4}.card-tags.svelte-35ep21{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}.tag.svelte-35ep21{font-size:.62rem;background:var(--bg);color:var(--text-muted);border:1px solid var(--border);padding:1px 5px;border-radius:2px}.column.svelte-zswfgn{background:var(--column-bg);border:1px solid var(--border);border-radius:var(--radius);width:270px;min-width:270px;max-height:calc(100vh - 60px);display:flex;flex-direction:column;transition:border-color .15s}.column.drag-over.svelte-zswfgn{border-color:var(--primary);box-shadow:0 0 0 1px var(--primary-dim)}.column-header.svelte-zswfgn{padding:8px 10px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;border-bottom:1px solid var(--border)}.column-header.svelte-zswfgn h3:where(.svelte-zswfgn){font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:var(--text-dim)}.chevron.svelte-zswfgn{color:var(--primary);margin-right:4px}.count.svelte-zswfgn{font-weight:400;color:var(--text-muted);margin-left:4px;font-size:.68rem}.add-btn.svelte-zswfgn{background:none;border:1px solid var(--border);border-radius:var(--radius-sm);width:22px;height:22px;font-size:1rem;color:var(--text-muted);display:flex;align-items:center;justify-content:center;line-height:1}.add-btn.svelte-zswfgn:hover{border-color:var(--primary);color:var(--primary)}.card-list.svelte-zswfgn{padding:6px;display:flex;flex-direction:column;gap:6px;overflow-y:auto;flex:1}.modal-backdrop.svelte-1gmf2hi{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:100}.modal.svelte-1gmf2hi{background:var(--surface);border:1px solid var(--border-bright);border-radius:var(--radius);width:520px;max-width:95vw;max-height:90vh;overflow-y:auto;padding:20px}.modal-title.svelte-1gmf2hi{display:flex;align-items:baseline;gap:10px}.modal-task-id.svelte-1gmf2hi{font-size:.7rem;color:var(--text-muted)}.modal-header.svelte-1gmf2hi{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;padding-bottom:12px;border-bottom:1px solid var(--border)}.modal-header.svelte-1gmf2hi h2:where(.svelte-1gmf2hi){font-size:.9rem;font-weight:700;color:var(--primary);text-transform:uppercase;letter-spacing:1px}.close-btn.svelte-1gmf2hi{background:none;border:none;font-size:1.2rem;color:var(--text-muted);padding:0 4px;line-height:1}.close-btn.svelte-1gmf2hi:hover{color:var(--danger)}.field.svelte-1gmf2hi{margin-bottom:14px;flex:1}label.svelte-1gmf2hi{display:block;font-size:.68rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.8px;margin-bottom:4px}.hint.svelte-1gmf2hi{font-weight:400;text-transform:none;letter-spacing:0}input.svelte-1gmf2hi,textarea.svelte-1gmf2hi,select.svelte-1gmf2hi{width:100%;padding:7px 9px;border:1px solid var(--border-bright);border-radius:var(--radius-sm);background:var(--bg);color:var(--text)}input.svelte-1gmf2hi:focus,textarea.svelte-1gmf2hi:focus,select.svelte-1gmf2hi:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 2px var(--primary-dim)}textarea.svelte-1gmf2hi{resize:vertical}.row.svelte-1gmf2hi{display:flex;gap:12px}.actions.svelte-1gmf2hi{display:flex;justify-content:flex-end;gap:8px;margin-top:18px;padding-top:14px;border-top:1px solid var(--border)}.btn-cancel.svelte-1gmf2hi,.btn-save.svelte-1gmf2hi{padding:6px 14px;border-radius:var(--radius-sm);font-weight:600;font-size:.78rem;text-transform:uppercase;letter-spacing:.5px}.btn-cancel.svelte-1gmf2hi{background:none;border:1px solid var(--border-bright);color:var(--text-muted)}.btn-cancel.svelte-1gmf2hi:hover{border-color:var(--text-muted);color:var(--text)}.btn-save.svelte-1gmf2hi{background:var(--primary);border:1px solid var(--primary);color:#0d0d0d;font-weight:700}.btn-save.svelte-1gmf2hi:hover{background:var(--primary-hover);border-color:var(--primary-hover)}.decisions-section.svelte-1gmf2hi{margin-top:18px;border-top:1px solid var(--border);padding-top:14px}.decisions-heading.svelte-1gmf2hi{font-size:.65rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:1px;margin-bottom:8px}.decisions-list.svelte-1gmf2hi{display:flex;flex-direction:column;gap:6px;max-height:240px;overflow-y:auto}.decision-item.svelte-1gmf2hi{background:var(--bg);border:1px solid var(--border);border-left:3px solid var(--border-bright);border-radius:var(--radius-sm);padding:8px 10px}.decision-title.svelte-1gmf2hi{font-size:.78rem;font-weight:700;color:var(--text);margin-bottom:3px}.decision-body.svelte-1gmf2hi{font-size:.75rem;color:var(--text-dim);line-height:1.4}.decision-reasoning.svelte-1gmf2hi{font-size:.7rem;color:var(--text-muted);margin-top:3px;line-height:1.4;font-style:italic}.decision-alts.svelte-1gmf2hi{font-size:.7rem;color:var(--text-muted);margin-top:3px}.modal-backdrop.svelte-1efofyg{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:200}.dialog.svelte-1efofyg{background:var(--surface);border:1px solid var(--border-bright);border-top:3px solid var(--danger);border-radius:var(--radius);padding:20px;width:340px;max-width:90vw}h3.svelte-1efofyg{font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:var(--danger);margin-bottom:10px}p.svelte-1efofyg{color:var(--text-dim);font-size:.78rem;margin-bottom:18px;line-height:1.5}.actions.svelte-1efofyg{display:flex;justify-content:flex-end;gap:8px}.btn-cancel.svelte-1efofyg,.btn-confirm.svelte-1efofyg{padding:5px 14px;border-radius:var(--radius-sm);font-weight:700;font-size:.72rem;text-transform:uppercase;letter-spacing:.5px}.btn-cancel.svelte-1efofyg{background:none;border:1px solid var(--border-bright);color:var(--text-muted)}.btn-cancel.svelte-1efofyg:hover{color:var(--text);border-color:var(--text-muted)}.btn-confirm.svelte-1efofyg{background:var(--danger);border:1px solid var(--danger);color:#fff}.btn-confirm.svelte-1efofyg:hover{background:var(--danger-hover);border-color:var(--danger-hover)}.board-wrapper.svelte-x7v2jt{flex:1;overflow-x:auto;padding:16px}.board.svelte-x7v2jt{display:flex;gap:12px;align-items:flex-start;min-height:calc(100vh - 100px)}.board-message.svelte-x7v2jt{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:200px;color:var(--text-muted);font-size:1rem}.board-message.error.svelte-x7v2jt{color:var(--danger)}.board-message.svelte-x7v2jt button:where(.svelte-x7v2jt){padding:5px 14px;background:none;color:var(--primary);border:1px solid var(--primary);border-radius:var(--radius-sm);font-weight:600;font-size:.75rem;text-transform:uppercase;letter-spacing:.5px}.board-message.svelte-x7v2jt button:where(.svelte-x7v2jt):hover{background:var(--primary-dim)}.loading.svelte-1n46o8q,.error.svelte-1n46o8q,.empty.svelte-1n46o8q{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;gap:8px;font-size:.85rem}.prompt.svelte-1n46o8q{color:var(--primary)}.loading.svelte-1n46o8q{color:var(--text-dim)}.error.svelte-1n46o8q{color:var(--danger)}.err-prefix.svelte-1n46o8q{margin-right:6px}.empty-prompt.svelte-1n46o8q{color:var(--text)}.empty-hint.svelte-1n46o8q{color:var(--text-muted);font-size:.75rem}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--bg: #0d0d0d;--surface: #141414;--surface-2: #1a1a1a;--border: #252525;--border-bright: #333333;--text: #d4d4d4;--text-muted: #555555;--text-dim: #888888;--primary: #39d353;--primary-hover: #2fb844;--primary-dim: rgba(57, 211, 83, .15);--danger: #f85149;--danger-hover: #da3633;--priority-critical: #f85149;--priority-high: #d29922;--priority-medium: #39d353;--priority-low: #3d444d;--column-bg: #111111;--card-shadow: none;--card-shadow-hover: 0 0 0 1px var(--border-bright);--radius: 4px;--radius-sm: 3px;--font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", "Consolas", "Courier New", monospace}body{font-family:var(--font-mono);background:var(--bg);color:var(--text);line-height:1.5;min-height:100vh;font-size:13px}button{cursor:pointer;font-family:inherit;font-size:inherit}input,textarea,select{font-family:inherit;font-size:inherit}#app{min-height:100vh;display:flex;flex-direction:column}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:var(--bg)}::-webkit-scrollbar-thumb{background:var(--border-bright);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:#444}
|
|
1
|
+
.toolbar.svelte-1kanzy0{display:flex;align-items:center;gap:20px;padding:8px 16px;background:var(--surface);border-bottom:1px solid var(--border);flex-shrink:0}.brand.svelte-1kanzy0{font-size:.95rem;font-weight:700;color:var(--primary);letter-spacing:.5px;white-space:nowrap}.prompt.svelte-1kanzy0{color:var(--text-dim)}.project-area.svelte-1kanzy0{display:flex;align-items:center;gap:8px}.project-label.svelte-1kanzy0{color:var(--text-muted);font-size:.8rem}.project-slug.svelte-1kanzy0{color:var(--text-muted);font-size:.75rem}select.svelte-1kanzy0{padding:4px 8px;border-radius:var(--radius-sm);border:1px solid var(--border-bright);background:var(--surface-2);color:var(--text);-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}select.svelte-1kanzy0 option:where(.svelte-1kanzy0){background:var(--surface-2);color:var(--text)}.rename-btn.svelte-1kanzy0{background:none;border:1px solid var(--border);color:var(--text-muted);border-radius:var(--radius-sm);padding:2px 7px;font-size:.85rem;line-height:1.5}.rename-btn.svelte-1kanzy0:hover{border-color:var(--primary);color:var(--primary)}.rename-input.svelte-1kanzy0{padding:3px 8px;border-radius:var(--radius-sm);border:1px solid var(--primary);background:var(--surface-2);color:var(--text);width:180px;outline:none;box-shadow:0 0 0 2px var(--primary-dim)}.card.svelte-35ep21{background:var(--surface);border:1px solid var(--border);border-left-width:3px;border-radius:var(--radius);padding:8px 10px;cursor:grab;transition:border-color .15s,background .15s;position:relative}.card.priority-critical.svelte-35ep21{border-left-color:var(--priority-critical)}.card.priority-high.svelte-35ep21{border-left-color:var(--priority-high)}.card.priority-medium.svelte-35ep21{border-left-color:var(--priority-medium)}.card.priority-low.svelte-35ep21{border-left-color:var(--border-bright)}.card.svelte-35ep21:hover{background:var(--surface-2);border-color:var(--border-bright);border-left-color:inherit}.card.dragging.svelte-35ep21{opacity:.4}.card-header.svelte-35ep21{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px}.card-header-right.svelte-35ep21{display:flex;align-items:center;gap:6px}.task-id.svelte-35ep21{font-size:.65rem;color:var(--text-muted)}.priority-badge.svelte-35ep21{font-size:.6rem;font-weight:700;text-transform:uppercase;letter-spacing:.8px;color:var(--text-muted)}.priority-badge.priority-critical.svelte-35ep21{color:var(--priority-critical)}.priority-badge.priority-high.svelte-35ep21{color:var(--priority-high)}.priority-badge.priority-medium.svelte-35ep21{color:var(--priority-medium)}.priority-badge.priority-low.svelte-35ep21{color:var(--text-muted)}.delete-btn.svelte-35ep21{background:none;border:none;color:var(--text-muted);font-size:1rem;line-height:1;padding:0 2px;opacity:0;transition:opacity .1s}.card.svelte-35ep21:hover .delete-btn:where(.svelte-35ep21){opacity:1}.delete-btn.svelte-35ep21:hover{color:var(--danger)}.card-title.svelte-35ep21{font-size:.8rem;font-weight:500;word-break:break-word;color:var(--text);line-height:1.4}.card-desc.svelte-35ep21{font-size:.72rem;color:var(--text-muted);margin-top:4px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.4}.card-tags.svelte-35ep21{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}.tag.svelte-35ep21{font-size:.62rem;background:var(--bg);color:var(--text-muted);border:1px solid var(--border);padding:1px 5px;border-radius:2px}.column.svelte-zswfgn{background:var(--column-bg);border:1px solid var(--border);border-radius:var(--radius);width:270px;min-width:270px;max-height:calc(100vh - 60px);display:flex;flex-direction:column;transition:border-color .15s}.column.drag-over.svelte-zswfgn{border-color:var(--primary);box-shadow:0 0 0 1px var(--primary-dim)}.column-header.svelte-zswfgn{padding:8px 10px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;border-bottom:1px solid var(--border)}.column-header.svelte-zswfgn h3:where(.svelte-zswfgn){font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:var(--text-dim)}.chevron.svelte-zswfgn{color:var(--primary);margin-right:4px}.count.svelte-zswfgn{font-weight:400;color:var(--text-muted);margin-left:4px;font-size:.68rem}.add-btn.svelte-zswfgn{background:none;border:1px solid var(--border);border-radius:var(--radius-sm);width:22px;height:22px;font-size:1rem;color:var(--text-muted);display:flex;align-items:center;justify-content:center;line-height:1}.add-btn.svelte-zswfgn:hover{border-color:var(--primary);color:var(--primary)}.card-list.svelte-zswfgn{padding:6px;display:flex;flex-direction:column;gap:6px;overflow-y:auto;flex:1}.modal-backdrop.svelte-1gmf2hi{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:100}.modal.svelte-1gmf2hi{background:var(--surface);border:1px solid var(--border-bright);border-radius:var(--radius);width:520px;max-width:95vw;max-height:90vh;overflow-y:auto;padding:20px}.modal-title.svelte-1gmf2hi{display:flex;align-items:baseline;gap:10px}.modal-task-id.svelte-1gmf2hi{font-size:.7rem;color:var(--text-muted)}.modal-header.svelte-1gmf2hi{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;padding-bottom:12px;border-bottom:1px solid var(--border)}.modal-header.svelte-1gmf2hi h2:where(.svelte-1gmf2hi){font-size:.9rem;font-weight:700;color:var(--primary);text-transform:uppercase;letter-spacing:1px}.close-btn.svelte-1gmf2hi{background:none;border:none;font-size:1.2rem;color:var(--text-muted);padding:0 4px;line-height:1}.close-btn.svelte-1gmf2hi:hover{color:var(--danger)}.field.svelte-1gmf2hi{margin-bottom:14px;flex:1}label.svelte-1gmf2hi{display:block;font-size:.68rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.8px;margin-bottom:4px}.hint.svelte-1gmf2hi{font-weight:400;text-transform:none;letter-spacing:0}input.svelte-1gmf2hi,textarea.svelte-1gmf2hi,select.svelte-1gmf2hi{width:100%;padding:7px 9px;border:1px solid var(--border-bright);border-radius:var(--radius-sm);background:var(--bg);color:var(--text)}input.svelte-1gmf2hi:focus,textarea.svelte-1gmf2hi:focus,select.svelte-1gmf2hi:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 2px var(--primary-dim)}textarea.svelte-1gmf2hi{resize:vertical}.row.svelte-1gmf2hi{display:flex;gap:12px}.actions.svelte-1gmf2hi{display:flex;justify-content:flex-end;gap:8px;margin-top:18px;padding-top:14px;border-top:1px solid var(--border)}.btn-cancel.svelte-1gmf2hi,.btn-save.svelte-1gmf2hi{padding:6px 14px;border-radius:var(--radius-sm);font-weight:600;font-size:.78rem;text-transform:uppercase;letter-spacing:.5px}.btn-cancel.svelte-1gmf2hi{background:none;border:1px solid var(--border-bright);color:var(--text-muted)}.btn-cancel.svelte-1gmf2hi:hover{border-color:var(--text-muted);color:var(--text)}.btn-save.svelte-1gmf2hi{background:var(--primary);border:1px solid var(--primary);color:#0d0d0d;font-weight:700}.btn-save.svelte-1gmf2hi:hover{background:var(--primary-hover);border-color:var(--primary-hover)}.decisions-section.svelte-1gmf2hi{margin-top:18px;border-top:1px solid var(--border);padding-top:14px}.decisions-heading.svelte-1gmf2hi{font-size:.65rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:1px;margin-bottom:8px}.decisions-list.svelte-1gmf2hi{display:flex;flex-direction:column;gap:6px;max-height:240px;overflow-y:auto}.decision-item.svelte-1gmf2hi{background:var(--bg);border:1px solid var(--border);border-left:3px solid var(--border-bright);border-radius:var(--radius-sm);padding:8px 10px}.decision-title.svelte-1gmf2hi{font-size:.78rem;font-weight:700;color:var(--text);margin-bottom:3px}.decision-body.svelte-1gmf2hi{font-size:.75rem;color:var(--text-dim);line-height:1.4}.decision-reasoning.svelte-1gmf2hi{font-size:.7rem;color:var(--text-muted);margin-top:3px;line-height:1.4;font-style:italic}.decision-alts.svelte-1gmf2hi{font-size:.7rem;color:var(--text-muted);margin-top:3px}.modal-backdrop.svelte-1efofyg{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:200}.dialog.svelte-1efofyg{background:var(--surface);border:1px solid var(--border-bright);border-top:3px solid var(--danger);border-radius:var(--radius);padding:20px;width:340px;max-width:90vw}h3.svelte-1efofyg{font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:var(--danger);margin-bottom:10px}p.svelte-1efofyg{color:var(--text-dim);font-size:.78rem;margin-bottom:18px;line-height:1.5}.actions.svelte-1efofyg{display:flex;justify-content:flex-end;gap:8px}.btn-cancel.svelte-1efofyg,.btn-confirm.svelte-1efofyg{padding:5px 14px;border-radius:var(--radius-sm);font-weight:700;font-size:.72rem;text-transform:uppercase;letter-spacing:.5px}.btn-cancel.svelte-1efofyg{background:none;border:1px solid var(--border-bright);color:var(--text-muted)}.btn-cancel.svelte-1efofyg:hover{color:var(--text);border-color:var(--text-muted)}.btn-confirm.svelte-1efofyg{background:var(--danger);border:1px solid var(--danger);color:#fff}.btn-confirm.svelte-1efofyg:hover{background:var(--danger-hover);border-color:var(--danger-hover)}.filter-bar.svelte-dhotvj{display:flex;align-items:center;gap:16px;padding:6px 16px;background:var(--surface);border-bottom:1px solid var(--border);flex-wrap:wrap;flex-shrink:0}.filter-search.svelte-dhotvj{position:relative;display:flex;align-items:center}.search-icon.svelte-dhotvj{position:absolute;left:8px;color:var(--primary);font-weight:700;font-size:.85rem;pointer-events:none}.filter-search.svelte-dhotvj input:where(.svelte-dhotvj){background:var(--bg);border:1px solid var(--border-bright);border-radius:var(--radius-sm);color:var(--text);padding:4px 26px 4px 22px;width:180px;font-size:.75rem}.filter-search.svelte-dhotvj input:where(.svelte-dhotvj):focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 2px var(--primary-dim)}.filter-search.svelte-dhotvj input:where(.svelte-dhotvj)::placeholder{color:var(--text-muted)}.clear-input.svelte-dhotvj{position:absolute;right:6px;background:none;border:none;color:var(--text-muted);font-size:.9rem;line-height:1;padding:0}.clear-input.svelte-dhotvj:hover{color:var(--text)}.filter-section.svelte-dhotvj{display:flex;align-items:center;gap:6px}.filter-label.svelte-dhotvj{font-size:.65rem;color:var(--text-muted);white-space:nowrap}.chip-group.svelte-dhotvj{display:flex;gap:4px;flex-wrap:wrap}.chip.svelte-dhotvj{font-size:.62rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px;padding:2px 7px;border-radius:2px;border:1px solid var(--border-bright);background:none;color:var(--text-muted);transition:border-color .1s,color .1s,background .1s}.chip.svelte-dhotvj:hover{border-color:var(--chip-color, var(--text-dim));color:var(--chip-color, var(--text))}.chip.active.svelte-dhotvj{border-color:var(--chip-color, var(--primary));color:var(--chip-color, var(--primary));background:color-mix(in srgb,var(--chip-color, var(--primary)) 12%,transparent)}.tag-chip.svelte-dhotvj{text-transform:none;letter-spacing:0;font-weight:600}.tag-chip.svelte-dhotvj:hover,.tag-chip.active.svelte-dhotvj{--chip-color: var(--primary)}.clear-all.svelte-dhotvj{background:none;border:none;color:var(--danger);font-size:.65rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px;padding:2px 0;margin-left:auto}.clear-all.svelte-dhotvj:hover{color:var(--danger-hover)}.board-wrapper.svelte-x7v2jt{flex:1;overflow-x:auto;padding:16px}.board.svelte-x7v2jt{display:flex;gap:12px;align-items:flex-start;min-height:calc(100vh - 100px)}.board-message.svelte-x7v2jt{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:200px;color:var(--text-muted);font-size:1rem}.board-message.error.svelte-x7v2jt{color:var(--danger)}.board-message.svelte-x7v2jt button:where(.svelte-x7v2jt){padding:5px 14px;background:none;color:var(--primary);border:1px solid var(--primary);border-radius:var(--radius-sm);font-weight:600;font-size:.75rem;text-transform:uppercase;letter-spacing:.5px}.board-message.svelte-x7v2jt button:where(.svelte-x7v2jt):hover{background:var(--primary-dim)}.loading.svelte-1n46o8q,.error.svelte-1n46o8q,.empty.svelte-1n46o8q{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;gap:8px;font-size:.85rem}.prompt.svelte-1n46o8q{color:var(--primary)}.loading.svelte-1n46o8q{color:var(--text-dim)}.error.svelte-1n46o8q{color:var(--danger)}.err-prefix.svelte-1n46o8q{margin-right:6px}.empty-prompt.svelte-1n46o8q{color:var(--text)}.empty-hint.svelte-1n46o8q{color:var(--text-muted);font-size:.75rem}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--bg: #0d0d0d;--surface: #141414;--surface-2: #1a1a1a;--border: #252525;--border-bright: #333333;--text: #d4d4d4;--text-muted: #555555;--text-dim: #888888;--primary: #39d353;--primary-hover: #2fb844;--primary-dim: rgba(57, 211, 83, .15);--danger: #f85149;--danger-hover: #da3633;--priority-critical: #f85149;--priority-high: #d29922;--priority-medium: #39d353;--priority-low: #3d444d;--column-bg: #111111;--card-shadow: none;--card-shadow-hover: 0 0 0 1px var(--border-bright);--radius: 4px;--radius-sm: 3px;--font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", "Consolas", "Courier New", monospace}body{font-family:var(--font-mono);background:var(--bg);color:var(--text);line-height:1.5;min-height:100vh;font-size:13px}button{cursor:pointer;font-family:inherit;font-size:inherit}input,textarea,select{font-family:inherit;font-size:inherit}#app{min-height:100vh;display:flex;flex-direction:column}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:var(--bg)}::-webkit-scrollbar-thumb{background:var(--border-bright);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:#444}
|
package/dist/ui/index.html
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>mindpm - Kanban</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-Bwp7d8m5.js"></script>
|
|
8
|
+
<link rel="stylesheet" crossorigin href="/assets/index-iJtHs5Qu.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
|
11
11
|
<div id="app"></div>
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var Ti=Object.defineProperty;var or=e=>{throw TypeError(e)};var xi=(e,t,n)=>t in e?Ti(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ae=(e,t,n)=>xi(e,typeof t!="symbol"?t+"":t,n),xn=(e,t,n)=>t.has(e)||or("Cannot "+n);var u=(e,t,n)=>(xn(e,t,"read from private field"),n?n.call(e):t.get(e)),j=(e,t,n)=>t.has(e)?or("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),C=(e,t,n,r)=>(xn(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Y=(e,t,n)=>(xn(e,t,"access private method"),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();const An=!1;var Yn=Array.isArray,Si=Array.prototype.indexOf,Ot=Array.prototype.includes,wn=Array.from,Ci=Object.defineProperty,Vt=Object.getOwnPropertyDescriptor,Di=Object.prototype,Ai=Array.prototype,ji=Object.getPrototypeOf,fr=Object.isExtensible;const Pi=()=>{};function Oi(e){for(var t=0;t<e.length;t++)e[t]()}function kr(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const Q=2,en=4,bn=8,Er=1<<24,Fe=16,De=32,yt=64,jn=128,me=512,J=1024,$=2048,Ce=4096,de=8192,We=16384,ht=32768,Nt=65536,ur=1<<17,Tr=1<<18,Ft=1<<19,Ni=1<<20,Ke=1<<25,_t=65536,Pn=1<<21,Wn=1<<22,Je=1<<23,Kt=Symbol("$state"),rt=new class extends Error{constructor(){super(...arguments);Ae(this,"name","StaleReactionError");Ae(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function Ri(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Mi(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Ii(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Li(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Fi(e){throw new Error("https://svelte.dev/e/effect_orphan")}function qi(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function zi(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Bi(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Hi(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Vi(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Ki=1,Ui=2,Yi=16,Wi=1,Ji=2,G=Symbol(),Gi="http://www.w3.org/1999/xhtml";function Xi(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Zi(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function xr(e){return e===this.v}function Qi(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Sr(e){return!Qi(e,this.v)}let $i=!1,we=null;function Rt(e){we=e}function $e(e,t=!1,n){we={p:we,i:!1,c:null,e:null,s:e,x:null,l:null}}function et(e){var t=we,n=t.e;if(n!==null){t.e=null;for(var r of n)Wr(r)}return t.i=!0,we=t.p,{}}function Cr(){return!0}let it=[];function Dr(){var e=it;it=[],Oi(e)}function Ge(e){if(it.length===0&&!Ut){var t=it;queueMicrotask(()=>{t===it&&Dr()})}it.push(e)}function es(){for(;it.length>0;)Dr()}function Ar(e){var t=R;if(t===null)return A.f|=Je,e;if((t.f&ht)===0&&(t.f&en)===0)throw e;Ue(e,t)}function Ue(e,t){for(;t!==null;){if((t.f&jn)!==0){if((t.f&ht)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const ts=-7169;function H(e,t){e.f=e.f&ts|t}function Jn(e){(e.f&me)!==0||e.deps===null?H(e,J):H(e,Ce)}function jr(e){if(e!==null)for(const t of e)(t.f&Q)===0||(t.f&_t)===0||(t.f^=_t,jr(t.deps))}function Pr(e,t,n){(e.f&$)!==0?t.add(e):(e.f&Ce)!==0&&n.add(e),jr(e.deps),H(e,J)}const on=new Set;let x=null,hn=null,X=null,ae=[],kn=null,On=!1,Ut=!1;var xt,St,lt,Ct,Xt,Zt,ot,Re,Dt,he,Nn,Rn,Mn,Or;const ir=class ir{constructor(){j(this,he);Ae(this,"current",new Map);Ae(this,"previous",new Map);j(this,xt,new Set);j(this,St,new Set);j(this,lt,0);j(this,Ct,0);j(this,Xt,null);j(this,Zt,new Set);j(this,ot,new Set);j(this,Re,new Map);Ae(this,"is_fork",!1);j(this,Dt,!1)}skip_effect(t){u(this,Re).has(t)||u(this,Re).set(t,{d:[],m:[]})}unskip_effect(t){var n=u(this,Re).get(t);if(n){u(this,Re).delete(t);for(var r of n.d)H(r,$),xe(r);for(r of n.m)H(r,Ce),xe(r)}}process(t){var s;ae=[],this.apply();var n=[],r=[];for(const i of t)Y(this,he,Rn).call(this,i,n,r);if(Y(this,he,Nn).call(this)){Y(this,he,Mn).call(this,r),Y(this,he,Mn).call(this,n);for(const[i,a]of u(this,Re))Ir(i,a)}else{for(const i of u(this,xt))i();u(this,xt).clear(),u(this,lt)===0&&Y(this,he,Or).call(this),hn=this,x=null,cr(r),cr(n),hn=null,(s=u(this,Xt))==null||s.resolve()}X=null}capture(t,n){n!==G&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&Je)===0&&(this.current.set(t,t.v),X==null||X.set(t,t.v))}activate(){x=this,this.apply()}deactivate(){x===this&&(x=null,X=null)}flush(){if(this.activate(),ae.length>0){if(Nr(),x!==null&&x!==this)return}else u(this,lt)===0&&this.process([]);this.deactivate()}discard(){for(const t of u(this,St))t(this);u(this,St).clear()}increment(t){C(this,lt,u(this,lt)+1),t&&C(this,Ct,u(this,Ct)+1)}decrement(t){C(this,lt,u(this,lt)-1),t&&C(this,Ct,u(this,Ct)-1),!u(this,Dt)&&(C(this,Dt,!0),Ge(()=>{C(this,Dt,!1),Y(this,he,Nn).call(this)?ae.length>0&&this.flush():this.revive()}))}revive(){for(const t of u(this,Zt))u(this,ot).delete(t),H(t,$),xe(t);for(const t of u(this,ot))H(t,Ce),xe(t);this.flush()}oncommit(t){u(this,xt).add(t)}ondiscard(t){u(this,St).add(t)}settled(){return(u(this,Xt)??C(this,Xt,kr())).promise}static ensure(){if(x===null){const t=x=new ir;on.add(x),Ut||Ge(()=>{x===t&&t.flush()})}return x}apply(){}};xt=new WeakMap,St=new WeakMap,lt=new WeakMap,Ct=new WeakMap,Xt=new WeakMap,Zt=new WeakMap,ot=new WeakMap,Re=new WeakMap,Dt=new WeakMap,he=new WeakSet,Nn=function(){return this.is_fork||u(this,Ct)>0},Rn=function(t,n,r){t.f^=J;for(var s=t.first;s!==null;){var i=s.f,a=(i&(De|yt))!==0,l=a&&(i&J)!==0,o=l||(i&de)!==0||u(this,Re).has(s);if(!o&&s.fn!==null){a?s.f^=J:(i&en)!==0?n.push(s):nn(s)&&((i&Fe)!==0&&u(this,ot).add(s),It(s));var f=s.first;if(f!==null){s=f;continue}}for(;s!==null;){var h=s.next;if(h!==null){s=h;break}s=s.parent}}},Mn=function(t){for(var n=0;n<t.length;n+=1)Pr(t[n],u(this,Zt),u(this,ot))},Or=function(){var s;if(on.size>1){this.previous.clear();var t=X,n=!0;for(const i of on){if(i===this){n=!1;continue}const a=[];for(const[o,f]of this.current){if(i.current.has(o))if(n&&f!==i.current.get(o))i.current.set(o,f);else continue;a.push(o)}if(a.length===0)continue;const l=[...i.current.keys()].filter(o=>!this.current.has(o));if(l.length>0){var r=ae;ae=[];const o=new Set,f=new Map;for(const h of a)Rr(h,l,o,f);if(ae.length>0){x=i,i.apply();for(const h of ae)Y(s=i,he,Rn).call(s,h,[],[]);i.deactivate()}ae=r}}x=null,X=t}on.delete(this)};let Xe=ir;function ns(e){var t=Ut;Ut=!0;try{for(var n;;){if(es(),ae.length===0&&(x==null||x.flush(),ae.length===0))return kn=null,n;Nr()}}finally{Ut=t}}function Nr(){On=!0;var e=null;try{for(var t=0;ae.length>0;){var n=Xe.ensure();if(t++>1e3){var r,s;rs()}n.process(ae),Ze.clear()}}finally{ae=[],On=!1,kn=null}}function rs(){try{qi()}catch(e){Ue(e,kn)}}let ke=null;function cr(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(We|de))===0&&nn(r)&&(ke=new Set,It(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Xr(r),(ke==null?void 0:ke.size)>0)){Ze.clear();for(const s of ke){if((s.f&(We|de))!==0)continue;const i=[s];let a=s.parent;for(;a!==null;)ke.has(a)&&(ke.delete(a),i.push(a)),a=a.parent;for(let l=i.length-1;l>=0;l--){const o=i[l];(o.f&(We|de))===0&&It(o)}}ke.clear()}}ke=null}}function Rr(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&Q)!==0?Rr(s,t,n,r):(i&(Wn|Fe))!==0&&(i&$)===0&&Mr(s,t,r)&&(H(s,$),xe(s))}}function Mr(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(Ot.call(t,s))return!0;if((s.f&Q)!==0&&Mr(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function xe(e){var t=kn=e,n=t.b;if(n!=null&&n.is_pending&&(e.f&(en|bn|Er))!==0&&(e.f&ht)===0){n.defer_effect(e);return}for(;t.parent!==null;){t=t.parent;var r=t.f;if(On&&t===R&&(r&Fe)!==0&&(r&Tr)===0&&(r&ht)!==0)return;if((r&(yt|De))!==0){if((r&J)===0)return;t.f^=J}}ae.push(t)}function Ir(e,t){if(!((e.f&De)!==0&&(e.f&J)!==0)){(e.f&$)!==0?t.d.push(e):(e.f&Ce)!==0&&t.m.push(e),H(e,J);for(var n=e.first;n!==null;)Ir(n,t),n=n.next}}function is(e){let t=0,n=gt(0),r;return()=>{Zn()&&(v(n),Jr(()=>(t===0&&(r=li(()=>e(()=>Yt(n)))),t+=1,()=>{Ge(()=>{t-=1,t===0&&(r==null||r(),r=void 0,Yt(n))})})))}}var ss=Nt|Ft;function as(e,t,n,r){new ls(e,t,n,r)}var pe,Un,je,ft,se,Pe,ce,Ee,Me,ut,Ve,At,jt,Pt,Ie,mn,K,os,fs,us,In,un,cn,Ln;class ls{constructor(t,n,r,s){j(this,K);Ae(this,"parent");Ae(this,"is_pending",!1);Ae(this,"transform_error");j(this,pe);j(this,Un,null);j(this,je);j(this,ft);j(this,se);j(this,Pe,null);j(this,ce,null);j(this,Ee,null);j(this,Me,null);j(this,ut,0);j(this,Ve,0);j(this,At,!1);j(this,jt,new Set);j(this,Pt,new Set);j(this,Ie,null);j(this,mn,is(()=>(C(this,Ie,gt(u(this,ut))),()=>{C(this,Ie,null)})));var i;C(this,pe,t),C(this,je,n),C(this,ft,a=>{var l=R;l.b=this,l.f|=jn,r(a)}),this.parent=R.b,this.transform_error=s??((i=this.parent)==null?void 0:i.transform_error)??(a=>a),C(this,se,$n(()=>{Y(this,K,In).call(this)},ss))}defer_effect(t){Pr(t,u(this,jt),u(this,Pt))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!u(this,je).pending}update_pending_count(t){Y(this,K,Ln).call(this,t),C(this,ut,u(this,ut)+t),!(!u(this,Ie)||u(this,At))&&(C(this,At,!0),Ge(()=>{C(this,At,!1),u(this,Ie)&&Mt(u(this,Ie),u(this,ut))}))}get_effect_pending(){return u(this,mn).call(this),v(u(this,Ie))}error(t){var n=u(this,je).onerror;let r=u(this,je).failed;if(!n&&!r)throw t;u(this,Pe)&&(oe(u(this,Pe)),C(this,Pe,null)),u(this,ce)&&(oe(u(this,ce)),C(this,ce,null)),u(this,Ee)&&(oe(u(this,Ee)),C(this,Ee,null));var s=!1,i=!1;const a=()=>{if(s){Zi();return}s=!0,i&&Vi(),u(this,Ee)!==null&&vt(u(this,Ee),()=>{C(this,Ee,null)}),Y(this,K,cn).call(this,()=>{Xe.ensure(),Y(this,K,In).call(this)})},l=o=>{try{i=!0,n==null||n(o,a),i=!1}catch(f){Ue(f,u(this,se)&&u(this,se).parent)}r&&C(this,Ee,Y(this,K,cn).call(this,()=>{Xe.ensure();try{return ge(()=>{var f=R;f.b=this,f.f|=jn,r(u(this,pe),()=>o,()=>a)})}catch(f){return Ue(f,u(this,se).parent),null}}))};Ge(()=>{var o;try{o=this.transform_error(t)}catch(f){Ue(f,u(this,se)&&u(this,se).parent);return}o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(l,f=>Ue(f,u(this,se)&&u(this,se).parent)):l(o)})}}pe=new WeakMap,Un=new WeakMap,je=new WeakMap,ft=new WeakMap,se=new WeakMap,Pe=new WeakMap,ce=new WeakMap,Ee=new WeakMap,Me=new WeakMap,ut=new WeakMap,Ve=new WeakMap,At=new WeakMap,jt=new WeakMap,Pt=new WeakMap,Ie=new WeakMap,mn=new WeakMap,K=new WeakSet,os=function(){try{C(this,Pe,ge(()=>u(this,ft).call(this,u(this,pe))))}catch(t){this.error(t)}},fs=function(t){const n=u(this,je).failed;n&&C(this,Ee,ge(()=>{n(u(this,pe),()=>t,()=>()=>{})}))},us=function(){const t=u(this,je).pending;t&&(this.is_pending=!0,C(this,ce,ge(()=>t(u(this,pe)))),Ge(()=>{var n=C(this,Me,document.createDocumentFragment()),r=Qe();n.append(r),C(this,Pe,Y(this,K,cn).call(this,()=>(Xe.ensure(),ge(()=>u(this,ft).call(this,r))))),u(this,Ve)===0&&(u(this,pe).before(n),C(this,Me,null),vt(u(this,ce),()=>{C(this,ce,null)}),Y(this,K,un).call(this))}))},In=function(){try{if(this.is_pending=this.has_pending_snippet(),C(this,Ve,0),C(this,ut,0),C(this,Pe,ge(()=>{u(this,ft).call(this,u(this,pe))})),u(this,Ve)>0){var t=C(this,Me,document.createDocumentFragment());$r(u(this,Pe),t);const n=u(this,je).pending;C(this,ce,ge(()=>n(u(this,pe))))}else Y(this,K,un).call(this)}catch(n){this.error(n)}},un=function(){this.is_pending=!1;for(const t of u(this,jt))H(t,$),xe(t);for(const t of u(this,Pt))H(t,Ce),xe(t);u(this,jt).clear(),u(this,Pt).clear()},cn=function(t){var n=R,r=A,s=we;Ne(u(this,se)),be(u(this,se)),Rt(u(this,se).ctx);try{return t()}catch(i){return Ar(i),null}finally{Ne(n),be(r),Rt(s)}},Ln=function(t){var n;if(!this.has_pending_snippet()){this.parent&&Y(n=this.parent,K,Ln).call(n,t);return}C(this,Ve,u(this,Ve)+t),u(this,Ve)===0&&(Y(this,K,un).call(this),u(this,ce)&&vt(u(this,ce),()=>{C(this,ce,null)}),u(this,Me)&&(u(this,pe).before(u(this,Me)),C(this,Me,null)))};function cs(e,t,n,r){const s=Gn;var i=e.filter(_=>!_.settled);if(n.length===0&&i.length===0){r(t.map(s));return}var a=R,l=vs(),o=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(_=>_.promise)):null;function f(_){l();try{r(_)}catch(p){(a.f&We)===0&&Ue(p,a)}Fn()}if(n.length===0){o.then(()=>f(t.map(s)));return}function h(){l(),Promise.all(n.map(_=>hs(_))).then(_=>f([...t.map(s),..._])).catch(_=>Ue(_,a))}o?o.then(h):h()}function vs(){var e=R,t=A,n=we,r=x;return function(i=!0){Ne(e),be(t),Rt(n),i&&(r==null||r.activate())}}function Fn(e=!0){Ne(null),be(null),Rt(null),e&&(x==null||x.deactivate())}function ds(){var e=R.b,t=x,n=e.is_rendered();return e.update_pending_count(1),t.increment(n),()=>{e.update_pending_count(-1),t.decrement(n)}}function Gn(e){var t=Q|$,n=A!==null&&(A.f&Q)!==0?A:null;return R!==null&&(R.f|=Ft),{ctx:we,deps:null,effects:null,equals:xr,f:t,fn:e,reactions:null,rv:0,v:G,wv:0,parent:n??R,ac:null}}function hs(e,t,n){R===null&&Ri();var s=void 0,i=gt(G),a=!A,l=new Map;return js(()=>{var p;var o=kr();s=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).finally(Fn)}catch(w){o.reject(w),Fn()}var f=x;if(a){var h=ds();(p=l.get(f))==null||p.reject(rt),l.delete(f),l.set(f,o)}const _=(w,c=void 0)=>{if(f.activate(),c)c!==rt&&(i.f|=Je,Mt(i,c));else{(i.f&Je)!==0&&(i.f^=Je),Mt(i,w);for(const[m,d]of l){if(l.delete(m),m===f)break;d.reject(rt)}}h&&h()};o.promise.then(_,w=>_(null,w||"unknown"))}),Qn(()=>{for(const o of l.values())o.reject(rt)}),new Promise(o=>{function f(h){function _(){h===s?o(i):f(s)}h.then(_,_)}f(s)})}function pt(e){const t=Gn(e);return ei(t),t}function _s(e){const t=Gn(e);return t.equals=Sr,t}function ps(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)oe(t[n])}}function gs(e){for(var t=e.parent;t!==null;){if((t.f&Q)===0)return(t.f&We)===0?t:null;t=t.parent}return null}function Xn(e){var t,n=R;Ne(gs(e));try{e.f&=~_t,ps(e),t=ii(e)}finally{Ne(n)}return t}function Lr(e){var t=Xn(e);if(!e.equals(t)&&(e.wv=ni(),(!(x!=null&&x.is_fork)||e.deps===null)&&(e.v=t,e.deps===null))){H(e,J);return}mt||(X!==null?(Zn()||x!=null&&x.is_fork)&&X.set(e,t):Jn(e))}function ms(e){var t,n;if(e.effects!==null)for(const r of e.effects)(r.teardown||r.ac)&&((t=r.teardown)==null||t.call(r),(n=r.ac)==null||n.abort(rt),r.teardown=Pi,r.ac=null,Gt(r,0),er(r))}function Fr(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&It(t)}let qn=new Set;const Ze=new Map;let qr=!1;function gt(e,t){var n={f:0,v:e,reactions:null,equals:xr,rv:0,wv:0};return n}function O(e,t){const n=gt(e);return ei(n),n}function ys(e,t=!1,n=!0){const r=gt(e);return t||(r.equals=Sr),r}function g(e,t,n=!1){A!==null&&(!Se||(A.f&ur)!==0)&&Cr()&&(A.f&(Q|Fe|Wn|ur))!==0&&(ye===null||!Ot.call(ye,e))&&Hi();let r=n?Ye(t):t;return Mt(e,r)}function Mt(e,t){if(!e.equals(t)){var n=e.v;mt?Ze.set(e,t):Ze.set(e,n),e.v=t;var r=Xe.ensure();if(r.capture(e,n),(e.f&Q)!==0){const s=e;(e.f&$)!==0&&Xn(s),Jn(s)}e.wv=ni(),zr(e,$),R!==null&&(R.f&J)!==0&&(R.f&(De|yt))===0&&(_e===null?Ns([e]):_e.push(e)),!r.is_fork&&qn.size>0&&!qr&&ws()}return t}function ws(){qr=!1;for(const e of qn)(e.f&J)!==0&&H(e,Ce),nn(e)&&It(e);qn.clear()}function Yt(e){g(e,e.v+1)}function zr(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s],a=i.f,l=(a&$)===0;if(l&&H(i,t),(a&Q)!==0){var o=i;X==null||X.delete(o),(a&_t)===0&&(a&me&&(i.f|=_t),zr(o,Ce))}else l&&((a&Fe)!==0&&ke!==null&&ke.add(i),xe(i))}}function Ye(e){if(typeof e!="object"||e===null||Kt in e)return e;const t=ji(e);if(t!==Di&&t!==Ai)return e;var n=new Map,r=Yn(e),s=O(0),i=dt,a=l=>{if(dt===i)return l();var o=A,f=dt;be(null),_r(i);var h=l();return be(o),_r(f),h};return r&&n.set("length",O(e.length)),new Proxy(e,{defineProperty(l,o,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&zi();var h=n.get(o);return h===void 0?a(()=>{var _=O(f.value);return n.set(o,_),_}):g(h,f.value,!0),!0},deleteProperty(l,o){var f=n.get(o);if(f===void 0){if(o in l){const h=a(()=>O(G));n.set(o,h),Yt(s)}}else g(f,G),Yt(s);return!0},get(l,o,f){var w;if(o===Kt)return e;var h=n.get(o),_=o in l;if(h===void 0&&(!_||(w=Vt(l,o))!=null&&w.writable)&&(h=a(()=>{var c=Ye(_?l[o]:G),m=O(c);return m}),n.set(o,h)),h!==void 0){var p=v(h);return p===G?void 0:p}return Reflect.get(l,o,f)},getOwnPropertyDescriptor(l,o){var f=Reflect.getOwnPropertyDescriptor(l,o);if(f&&"value"in f){var h=n.get(o);h&&(f.value=v(h))}else if(f===void 0){var _=n.get(o),p=_==null?void 0:_.v;if(_!==void 0&&p!==G)return{enumerable:!0,configurable:!0,value:p,writable:!0}}return f},has(l,o){var p;if(o===Kt)return!0;var f=n.get(o),h=f!==void 0&&f.v!==G||Reflect.has(l,o);if(f!==void 0||R!==null&&(!h||(p=Vt(l,o))!=null&&p.writable)){f===void 0&&(f=a(()=>{var w=h?Ye(l[o]):G,c=O(w);return c}),n.set(o,f));var _=v(f);if(_===G)return!1}return h},set(l,o,f,h){var F;var _=n.get(o),p=o in l;if(r&&o==="length")for(var w=f;w<_.v;w+=1){var c=n.get(w+"");c!==void 0?g(c,G):w in l&&(c=a(()=>O(G)),n.set(w+"",c))}if(_===void 0)(!p||(F=Vt(l,o))!=null&&F.writable)&&(_=a(()=>O(void 0)),g(_,Ye(f)),n.set(o,_));else{p=_.v!==G;var m=a(()=>Ye(f));g(_,m)}var d=Reflect.getOwnPropertyDescriptor(l,o);if(d!=null&&d.set&&d.set.call(h,f),!p){if(r&&typeof o=="string"){var y=n.get("length"),k=Number(o);Number.isInteger(k)&&k>=y.v&&g(y,k+1)}Yt(s)}return!0},ownKeys(l){v(s);var o=Reflect.ownKeys(l).filter(_=>{var p=n.get(_);return p===void 0||p.v!==G});for(var[f,h]of n)h.v!==G&&!(f in l)&&o.push(f);return o},setPrototypeOf(){Bi()}})}function vr(e){try{if(e!==null&&typeof e=="object"&&Kt in e)return e[Kt]}catch{}return e}function bs(e,t){return Object.is(vr(e),vr(t))}var _n,Br,Hr,Vr;function ks(){if(_n===void 0){_n=window,Br=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Hr=Vt(t,"firstChild").get,Vr=Vt(t,"nextSibling").get,fr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),fr(n)&&(n.__t=void 0)}}function Qe(e=""){return document.createTextNode(e)}function pn(e){return Hr.call(e)}function tn(e){return Vr.call(e)}function E(e,t){return pn(e)}function Jt(e,t=!1){{var n=pn(e);return n instanceof Comment&&n.data===""?tn(n):n}}function T(e,t=1,n=!1){let r=e;for(;t--;)r=tn(r);return r}function Es(e){e.textContent=""}function Kr(){return!1}function Ts(e,t,n){return document.createElementNS(Gi,e,void 0)}function Ur(e,t){{const n=document.body;e.autofocus=!0,Ge(()=>{document.activeElement===n&&e.focus()})}}let dr=!1;function xs(){dr||(dr=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const n of e.target.elements)(t=n.__on_r)==null||t.call(n)})},{capture:!0}))}function En(e){var t=A,n=R;be(null),Ne(null);try{return e()}finally{be(t),Ne(n)}}function Yr(e,t,n,r=n){e.addEventListener(t,()=>En(n));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),xs()}function Ss(e){R===null&&(A===null&&Fi(),Li()),mt&&Ii()}function Cs(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function qe(e,t,n){var r=R;r!==null&&(r.f&de)!==0&&(e|=de);var s={ctx:we,deps:null,nodes:null,f:e|$|me,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{It(s)}catch(l){throw oe(s),l}else t!==null&&xe(s);var i=s;if(n&&i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&Ft)===0&&(i=i.first,(e&Fe)!==0&&(e&Nt)!==0&&i!==null&&(i.f|=Nt)),i!==null&&(i.parent=r,r!==null&&Cs(i,r),A!==null&&(A.f&Q)!==0&&(e&yt)===0)){var a=A;(a.effects??(a.effects=[])).push(i)}return s}function Zn(){return A!==null&&!Se}function Qn(e){const t=qe(bn,null,!1);return H(t,J),t.teardown=e,t}function gn(e){Ss();var t=R.f,n=!A&&(t&De)!==0&&(t&ht)===0;if(n){var r=we;(r.e??(r.e=[])).push(e)}else return Wr(e)}function Wr(e){return qe(en|Ni,e,!1)}function Ds(e){Xe.ensure();const t=qe(yt|Ft,e,!0);return(n={})=>new Promise(r=>{n.outro?vt(t,()=>{oe(t),r(void 0)}):(oe(t),r(void 0))})}function As(e){return qe(en,e,!1)}function js(e){return qe(Wn|Ft,e,!0)}function Jr(e,t=0){return qe(bn|t,e,!0)}function Z(e,t=[],n=[],r=[]){cs(r,t,n,s=>{qe(bn,()=>e(...s.map(v)),!0)})}function $n(e,t=0){var n=qe(Fe|t,e,!0);return n}function ge(e){return qe(De|Ft,e,!0)}function Gr(e){var t=e.teardown;if(t!==null){const n=mt,r=A;hr(!0),be(null);try{t.call(null)}finally{hr(n),be(r)}}}function er(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&En(()=>{s.abort(rt)});var r=n.next;(n.f&yt)!==0?n.parent=null:oe(n,t),n=r}}function Ps(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&De)===0&&oe(t),t=n}}function oe(e,t=!0){var n=!1;(t||(e.f&Tr)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Os(e.nodes.start,e.nodes.end),n=!0),er(e,t&&!n),Gt(e,0),H(e,We);var r=e.nodes&&e.nodes.t;if(r!==null)for(const i of r)i.stop();Gr(e);var s=e.parent;s!==null&&s.first!==null&&Xr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Os(e,t){for(;e!==null;){var n=e===t?null:tn(e);e.remove(),e=n}}function Xr(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function vt(e,t,n=!0){var r=[];Zr(e,r,!0);var s=()=>{n&&oe(e),t&&t()},i=r.length;if(i>0){var a=()=>--i||s();for(var l of r)l.out(a)}else s()}function Zr(e,t,n){if((e.f&de)===0){e.f^=de;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var s=e.first;s!==null;){var i=s.next,a=(s.f&Nt)!==0||(s.f&De)!==0&&(e.f&Fe)!==0;Zr(s,t,a?n:!1),s=i}}}function tr(e){Qr(e,!0)}function Qr(e,t){if((e.f&de)!==0){e.f^=de,(e.f&J)===0&&(H(e,$),xe(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Nt)!==0||(n.f&De)!==0;Qr(n,s?t:!1),n=r}var i=e.nodes&&e.nodes.t;if(i!==null)for(const a of i)(a.is_global||t)&&a.in()}}function $r(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:tn(n);t.append(n),n=s}}let vn=!1,mt=!1;function hr(e){mt=e}let A=null,Se=!1;function be(e){A=e}let R=null;function Ne(e){R=e}let ye=null;function ei(e){A!==null&&(ye===null?ye=[e]:ye.push(e))}let le=null,ue=0,_e=null;function Ns(e){_e=e}let ti=1,st=0,dt=st;function _r(e){dt=e}function ni(){return++ti}function nn(e){var t=e.f;if((t&$)!==0)return!0;if(t&Q&&(e.f&=~_t),(t&Ce)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var i=n[s];if(nn(i)&&Lr(i),i.wv>e.wv)return!0}(t&me)!==0&&X===null&&H(e,J)}return!1}function ri(e,t,n=!0){var r=e.reactions;if(r!==null&&!(ye!==null&&Ot.call(ye,e)))for(var s=0;s<r.length;s++){var i=r[s];(i.f&Q)!==0?ri(i,t,!1):t===i&&(n?H(i,$):(i.f&J)!==0&&H(i,Ce),xe(i))}}function ii(e){var m;var t=le,n=ue,r=_e,s=A,i=ye,a=we,l=Se,o=dt,f=e.f;le=null,ue=0,_e=null,A=(f&(De|yt))===0?e:null,ye=null,Rt(e.ctx),Se=!1,dt=++st,e.ac!==null&&(En(()=>{e.ac.abort(rt)}),e.ac=null);try{e.f|=Pn;var h=e.fn,_=h();e.f|=ht;var p=e.deps,w=x==null?void 0:x.is_fork;if(le!==null){var c;if(w||Gt(e,ue),p!==null&&ue>0)for(p.length=ue+le.length,c=0;c<le.length;c++)p[ue+c]=le[c];else e.deps=p=le;if(Zn()&&(e.f&me)!==0)for(c=ue;c<p.length;c++)((m=p[c]).reactions??(m.reactions=[])).push(e)}else!w&&p!==null&&ue<p.length&&(Gt(e,ue),p.length=ue);if(Cr()&&_e!==null&&!Se&&p!==null&&(e.f&(Q|Ce|$))===0)for(c=0;c<_e.length;c++)ri(_e[c],e);if(s!==null&&s!==e){if(st++,s.deps!==null)for(let d=0;d<n;d+=1)s.deps[d].rv=st;if(t!==null)for(const d of t)d.rv=st;_e!==null&&(r===null?r=_e:r.push(..._e))}return(e.f&Je)!==0&&(e.f^=Je),_}catch(d){return Ar(d)}finally{e.f^=Pn,le=t,ue=n,_e=r,A=s,ye=i,Rt(a),Se=l,dt=o}}function Rs(e,t){let n=t.reactions;if(n!==null){var r=Si.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(n===null&&(t.f&Q)!==0&&(le===null||!Ot.call(le,t))){var i=t;(i.f&me)!==0&&(i.f^=me,i.f&=~_t),Jn(i),ms(i),Gt(i,0)}}function Gt(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Rs(e,n[r])}function It(e){var t=e.f;if((t&We)===0){H(e,J);var n=R,r=vn;R=e,vn=!0;try{(t&(Fe|Er))!==0?Ps(e):er(e),Gr(e);var s=ii(e);e.teardown=typeof s=="function"?s:null,e.wv=ti;var i;An&&$i&&(e.f&$)!==0&&e.deps}finally{vn=r,R=n}}}async function Ms(){await Promise.resolve(),ns()}function v(e){var t=e.f,n=(t&Q)!==0;if(A!==null&&!Se){var r=R!==null&&(R.f&We)!==0;if(!r&&(ye===null||!Ot.call(ye,e))){var s=A.deps;if((A.f&Pn)!==0)e.rv<st&&(e.rv=st,le===null&&s!==null&&s[ue]===e?ue++:le===null?le=[e]:le.push(e));else{(A.deps??(A.deps=[])).push(e);var i=e.reactions;i===null?e.reactions=[A]:Ot.call(i,A)||i.push(A)}}}if(mt&&Ze.has(e))return Ze.get(e);if(n){var a=e;if(mt){var l=a.v;return((a.f&J)===0&&a.reactions!==null||ai(a))&&(l=Xn(a)),Ze.set(a,l),l}var o=(a.f&me)===0&&!Se&&A!==null&&(vn||(A.f&me)!==0),f=(a.f&ht)===0;nn(a)&&(o&&(a.f|=me),Lr(a)),o&&!f&&(Fr(a),si(a))}if(X!=null&&X.has(e))return X.get(e);if((e.f&Je)!==0)throw e.v;return e.v}function si(e){if(e.f|=me,e.deps!==null)for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),(t.f&Q)!==0&&(t.f&me)===0&&(Fr(t),si(t))}function ai(e){if(e.v===G)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Ze.has(t)||(t.f&Q)!==0&&ai(t))return!0;return!1}function li(e){var t=Se;try{return Se=!0,e()}finally{Se=t}}const Is=["touchstart","touchmove"];function Ls(e){return Is.includes(e)}const at=Symbol("events"),oi=new Set,zn=new Set;function Fs(e,t,n,r={}){function s(i){if(r.capture||Bn.call(t,i),!i.cancelBubble)return En(()=>n==null?void 0:n.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Ge(()=>{t.addEventListener(e,s,r)}):t.addEventListener(e,s,r),s}function Le(e,t,n,r,s){var i={capture:r,passive:s},a=Fs(e,t,n,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Qn(()=>{t.removeEventListener(e,a,i)})}function fe(e,t,n){(t[at]??(t[at]={}))[e]=n}function qt(e){for(var t=0;t<e.length;t++)oi.add(e[t]);for(var n of zn)n(e)}let pr=null;function Bn(e){var d,y;var t=this,n=t.ownerDocument,r=e.type,s=((d=e.composedPath)==null?void 0:d.call(e))||[],i=s[0]||e.target;pr=e;var a=0,l=pr===e&&e[at];if(l){var o=s.indexOf(l);if(o!==-1&&(t===document||t===window)){e[at]=t;return}var f=s.indexOf(t);if(f===-1)return;o<=f&&(a=o)}if(i=s[a]||e.target,i!==t){Ci(e,"currentTarget",{configurable:!0,get(){return i||n}});var h=A,_=R;be(null),Ne(null);try{for(var p,w=[];i!==null;){var c=i.assignedSlot||i.parentNode||i.host||null;try{var m=(y=i[at])==null?void 0:y[r];m!=null&&(!i.disabled||e.target===i)&&m.call(i,e)}catch(k){p?w.push(k):p=k}if(e.cancelBubble||c===t||c===null)break;i=c}if(p){for(let k of w)queueMicrotask(()=>{throw k});throw p}}finally{e[at]=t,delete e.currentTarget,be(h),Ne(_)}}}var wr;const Sn=((wr=globalThis==null?void 0:globalThis.window)==null?void 0:wr.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function qs(e){return(Sn==null?void 0:Sn.createHTML(e))??e}function zs(e){var t=Ts("template");return t.innerHTML=qs(e.replaceAll("<!>","<!---->")),t.content}function Hn(e,t){var n=R;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function M(e,t){var n=(t&Wi)!==0,r=(t&Ji)!==0,s,i=!e.startsWith("<!>");return()=>{s===void 0&&(s=zs(i?e:"<!>"+e),n||(s=pn(s)));var a=r||Br?document.importNode(s,!0):s.cloneNode(!0);if(n){var l=pn(a),o=a.lastChild;Hn(l,o)}else Hn(a,a);return a}}function fi(){var e=document.createDocumentFragment(),t=document.createComment(""),n=Qe();return e.append(t,n),Hn(t,n),e}function P(e,t){e!==null&&e.before(t)}function z(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=n,e.nodeValue=n+"")}function Bs(e,t){return Hs(e,t)}const fn=new Map;function Hs(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:a=!0,transformError:l}){ks();var o=void 0,f=Ds(()=>{var h=n??t.appendChild(Qe());as(h,{pending:()=>{}},w=>{$e({});var c=we;i&&(c.c=i),s&&(r.$$events=s),o=e(w,r)||{},et()},l);var _=new Set,p=w=>{for(var c=0;c<w.length;c++){var m=w[c];if(!_.has(m)){_.add(m);var d=Ls(m);for(const F of[t,document]){var y=fn.get(F);y===void 0&&(y=new Map,fn.set(F,y));var k=y.get(m);k===void 0?(F.addEventListener(m,Bn,{passive:d}),y.set(m,1)):y.set(m,k+1)}}}};return p(wn(oi)),zn.add(p),()=>{var d;for(var w of _)for(const y of[t,document]){var c=fn.get(y),m=c.get(w);--m==0?(y.removeEventListener(w,Bn),c.delete(w),c.size===0&&fn.delete(y)):c.set(w,m)}zn.delete(p),h!==n&&((d=h.parentNode)==null||d.removeChild(h))}});return Vs.set(o,f),o}let Vs=new WeakMap;var Te,Oe,ve,ct,Qt,$t,yn;class Ks{constructor(t,n=!0){Ae(this,"anchor");j(this,Te,new Map);j(this,Oe,new Map);j(this,ve,new Map);j(this,ct,new Set);j(this,Qt,!0);j(this,$t,()=>{var t=x;if(u(this,Te).has(t)){var n=u(this,Te).get(t),r=u(this,Oe).get(n);if(r)tr(r),u(this,ct).delete(n);else{var s=u(this,ve).get(n);s&&(u(this,Oe).set(n,s.effect),u(this,ve).delete(n),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),r=s.effect)}for(const[i,a]of u(this,Te)){if(u(this,Te).delete(i),i===t)break;const l=u(this,ve).get(a);l&&(oe(l.effect),u(this,ve).delete(a))}for(const[i,a]of u(this,Oe)){if(i===n||u(this,ct).has(i))continue;const l=()=>{if(Array.from(u(this,Te).values()).includes(i)){var f=document.createDocumentFragment();$r(a,f),f.append(Qe()),u(this,ve).set(i,{effect:a,fragment:f})}else oe(a);u(this,ct).delete(i),u(this,Oe).delete(i)};u(this,Qt)||!r?(u(this,ct).add(i),vt(a,l,!1)):l()}}});j(this,yn,t=>{u(this,Te).delete(t);const n=Array.from(u(this,Te).values());for(const[r,s]of u(this,ve))n.includes(r)||(oe(s.effect),u(this,ve).delete(r))});this.anchor=t,C(this,Qt,n)}ensure(t,n){var r=x,s=Kr();if(n&&!u(this,Oe).has(t)&&!u(this,ve).has(t))if(s){var i=document.createDocumentFragment(),a=Qe();i.append(a),u(this,ve).set(t,{effect:ge(()=>n(a)),fragment:i})}else u(this,Oe).set(t,ge(()=>n(this.anchor)));if(u(this,Te).set(r,t),s){for(const[l,o]of u(this,Oe))l===t?r.unskip_effect(o):r.skip_effect(o);for(const[l,o]of u(this,ve))l===t?r.unskip_effect(o.effect):r.skip_effect(o.effect);r.oncommit(u(this,$t)),r.ondiscard(u(this,yn))}else u(this,$t).call(this)}}Te=new WeakMap,Oe=new WeakMap,ve=new WeakMap,ct=new WeakMap,Qt=new WeakMap,$t=new WeakMap,yn=new WeakMap;function W(e,t,n=!1){var r=new Ks(e),s=n?Nt:0;function i(a,l){r.ensure(a,l)}$n(()=>{var a=!1;t((l,o=0)=>{a=!0,i(o,l)}),a||i(!1,null)},s)}function nr(e,t){return t}function Us(e,t,n){for(var r=[],s=t.length,i,a=t.length,l=0;l<s;l++){let _=t[l];vt(_,()=>{if(i){if(i.pending.delete(_),i.done.add(_),i.pending.size===0){var p=e.outrogroups;Vn(wn(i.done)),p.delete(i),p.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var o=r.length===0&&n!==null;if(o){var f=n,h=f.parentNode;Es(h),h.append(f),e.items.clear()}Vn(t,!o)}else i={pending:new Set(t),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(i)}function Vn(e,t=!0){for(var n=0;n<e.length;n++)oe(e[n],t)}var gr;function Lt(e,t,n,r,s,i=null){var a=e,l=new Map;{var o=e;a=o.appendChild(Qe())}var f=null,h=_s(()=>{var d=n();return Yn(d)?d:d==null?[]:wn(d)}),_,p=!0;function w(){m.fallback=f,Ys(m,_,a,t,r),f!==null&&(_.length===0?(f.f&Ke)===0?tr(f):(f.f^=Ke,Ht(f,null,a)):vt(f,()=>{f=null}))}var c=$n(()=>{_=v(h);for(var d=_.length,y=new Set,k=x,F=Kr(),B=0;B<d;B+=1){var N=_[B],L=r(N,B),S=p?null:l.get(L);S?(S.v&&Mt(S.v,N),S.i&&Mt(S.i,B),F&&k.unskip_effect(S.e)):(S=Ws(l,p?a:gr??(gr=Qe()),N,L,B,s,t,n),p||(S.e.f|=Ke),l.set(L,S)),y.add(L)}if(d===0&&i&&!f&&(p?f=ge(()=>i(a)):(f=ge(()=>i(gr??(gr=Qe()))),f.f|=Ke)),d>y.size&&Mi(),!p)if(F){for(const[U,V]of l)y.has(U)||k.skip_effect(V.e);k.oncommit(w),k.ondiscard(()=>{})}else w();v(h)}),m={effect:c,items:l,outrogroups:null,fallback:f};p=!1}function Bt(e){for(;e!==null&&(e.f&De)===0;)e=e.next;return e}function Ys(e,t,n,r,s){var U;var i=t.length,a=e.items,l=Bt(e.effect.first),o,f=null,h=[],_=[],p,w,c,m;for(m=0;m<i;m+=1){if(p=t[m],w=s(p,m),c=a.get(w).e,e.outrogroups!==null)for(const V of e.outrogroups)V.pending.delete(c),V.done.delete(c);if((c.f&Ke)!==0)if(c.f^=Ke,c===l)Ht(c,null,n);else{var d=f?f.next:l;c===e.effect.last&&(e.effect.last=c.prev),c.prev&&(c.prev.next=c.next),c.next&&(c.next.prev=c.prev),ze(e,f,c),ze(e,c,d),Ht(c,d,n),f=c,h=[],_=[],l=Bt(f.next);continue}if((c.f&de)!==0&&tr(c),c!==l){if(o!==void 0&&o.has(c)){if(h.length<_.length){var y=_[0],k;f=y.prev;var F=h[0],B=h[h.length-1];for(k=0;k<h.length;k+=1)Ht(h[k],y,n);for(k=0;k<_.length;k+=1)o.delete(_[k]);ze(e,F.prev,B.next),ze(e,f,F),ze(e,B,y),l=y,f=B,m-=1,h=[],_=[]}else o.delete(c),Ht(c,l,n),ze(e,c.prev,c.next),ze(e,c,f===null?e.effect.first:f.next),ze(e,f,c),f=c;continue}for(h=[],_=[];l!==null&&l!==c;)(o??(o=new Set)).add(l),_.push(l),l=Bt(l.next);if(l===null)continue}(c.f&Ke)===0&&h.push(c),f=c,l=Bt(c.next)}if(e.outrogroups!==null){for(const V of e.outrogroups)V.pending.size===0&&(Vn(wn(V.done)),(U=e.outrogroups)==null||U.delete(V));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||o!==void 0){var N=[];if(o!==void 0)for(c of o)(c.f&de)===0&&N.push(c);for(;l!==null;)(l.f&de)===0&&l!==e.fallback&&N.push(l),l=Bt(l.next);var L=N.length;if(L>0){var S=i===0?n:null;Us(e,N,S)}}}function Ws(e,t,n,r,s,i,a,l){var o=(a&Ki)!==0?(a&Yi)===0?ys(n,!1,!1):gt(n):null,f=(a&Ui)!==0?gt(s):null;return{v:o,i:f,e:ge(()=>(i(t,o??n,f??s,l),()=>{e.delete(r)}))}}function Ht(e,t,n){if(e.nodes)for(var r=e.nodes.start,s=e.nodes.end,i=t&&(t.f&Ke)===0?t.nodes.start:n;r!==null;){var a=tn(r);if(i.before(r),r===s)return;r=a}}function ze(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}const mr=[...`
|
|
2
|
-
\r\f \v\uFEFF`];function Js(e,t,n){var r=e==null?"":""+e;if(t&&(r=r?r+" "+t:t),n){for(var s of Object.keys(n))if(n[s])r=r?r+" "+s:s;else if(r.length)for(var i=s.length,a=0;(a=r.indexOf(s,a))>=0;){var l=a+i;(a===0||mr.includes(r[a-1]))&&(l===r.length||mr.includes(r[l]))?r=(a===0?"":r.substring(0,a))+r.substring(l+1):a=l}}return r===""?null:r}function Kn(e,t,n,r,s,i){var a=e.__className;if(a!==n||a===void 0){var l=Js(n,r,i);l==null?e.removeAttribute("class"):e.className=l,e.__className=n}else if(i&&s!==i)for(var o in i){var f=!!i[o];(s==null||f!==!!s[o])&&e.classList.toggle(o,f)}return i}function rr(e,t,n=!1){if(e.multiple){if(t==null)return;if(!Yn(t))return Xi();for(var r of e.options)r.selected=t.includes(Wt(r));return}for(r of e.options){var s=Wt(r);if(bs(s,t)){r.selected=!0;return}}(!n||t!==void 0)&&(e.selectedIndex=-1)}function ui(e){var t=new MutationObserver(()=>{rr(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Qn(()=>{t.disconnect()})}function yr(e,t,n=t){var r=new WeakSet,s=!0;Yr(e,"change",i=>{var a=i?"[selected]":":checked",l;if(e.multiple)l=[].map.call(e.querySelectorAll(a),Wt);else{var o=e.querySelector(a)??e.querySelector("option:not([disabled])");l=o&&Wt(o)}n(l),x!==null&&r.add(x)}),As(()=>{var i=t();if(e===document.activeElement){var a=hn??x;if(r.has(a))return}if(rr(e,i,s),s&&i===void 0){var l=e.querySelector(":checked");l!==null&&(i=Wt(l),n(i))}e.__value=i,s=!1}),ui(e)}function Wt(e){return"__value"in e?e.__value:e.value}function dn(e,t,n=t){var r=new WeakSet;Yr(e,"input",async s=>{var i=s?e.defaultValue:e.value;if(i=Cn(e)?Dn(i):i,n(i),x!==null&&r.add(x),await Ms(),i!==(i=t())){var a=e.selectionStart,l=e.selectionEnd,o=e.value.length;if(e.value=i??"",l!==null){var f=e.value.length;a===l&&l===o&&f>o?(e.selectionStart=f,e.selectionEnd=f):(e.selectionStart=a,e.selectionEnd=Math.min(l,f))}}}),li(t)==null&&e.value&&(n(Cn(e)?Dn(e.value):e.value),x!==null&&r.add(x)),Jr(()=>{var s=t();if(e===document.activeElement){var i=hn??x;if(r.has(i))return}Cn(e)&&s===Dn(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function Cn(e){var t=e.type;return t==="number"||t==="range"}function Dn(e){return e===""?null:+e}function ci(e,t,n,r){var s=r,i=!0,a=()=>(i&&(i=!1,s=r),s),l;l=e[t],l===void 0&&r!==void 0&&(l=a());var o;return o=()=>{var f=e[t];return f===void 0?a():(i=!0,f)},o}const Gs="5";var br;typeof window<"u"&&((br=window.__svelte??(window.__svelte={})).v??(br.v=new Set)).add(Gs);async function Be(e,t){const n=await fetch(`/api${e}`,{headers:{"Content-Type":"application/json"},...t});if(!n.ok){const r=await n.json().catch(()=>({error:n.statusText}));throw new Error(r.error||"Request failed")}return n.json()}const He={getProjects:()=>Be("/projects"),getProject:e=>Be(`/projects/${e}`),updateProject:(e,t)=>Be(`/projects/${e}`,{method:"PATCH",body:JSON.stringify(t)}),getTasks:e=>Be(`/projects/${e}/tasks?include_done=true`),createTask:(e,t)=>Be(`/projects/${e}/tasks`,{method:"POST",body:JSON.stringify(t)}),updateTask:(e,t)=>Be(`/tasks/${e}`,{method:"PATCH",body:JSON.stringify(t)}),deleteTask:e=>Be(`/tasks/${e}`,{method:"DELETE"}),getDecisions:e=>Be(`/projects/${e}/decisions`)};var Xs=M('<option class="svelte-1kanzy0"> </option>'),Zs=M('<span class="project-slug svelte-1kanzy0"> </span>'),Qs=M('<input class="rename-input svelte-1kanzy0" type="text"/>'),$s=M('<button class="rename-btn svelte-1kanzy0" title="Rename project">✎</button>'),ea=M("<!> <!>",1),ta=M('<header class="toolbar svelte-1kanzy0"><div class="brand svelte-1kanzy0"><span class="prompt svelte-1kanzy0">></span> mindpm</div> <div class="project-area svelte-1kanzy0"><span class="project-label svelte-1kanzy0">project:</span> <select class="svelte-1kanzy0"></select> <!></div></header>');function na(e,t){$e(t,!0);let n=O(!1),r=O("");const s=pt(()=>t.projects.find(c=>c.id===t.selectedId));function i(){v(s)&&(g(r,v(s).name,!0),g(n,!0))}function a(){if(!v(s)||!v(n))return;const c=v(r).trim();c&&c!==v(s).name&&t.onRenamed(v(s).id,c),g(n,!1)}function l(c){c.key==="Enter"&&a(),c.key==="Escape"&&g(n,!1)}var o=ta(),f=T(E(o),2),h=T(E(f),2);Lt(h,21,()=>t.projects,nr,(c,m)=>{var d=Xs(),y=E(d),k={};Z(()=>{z(y,v(m).name),k!==(k=v(m).id)&&(d.value=(d.__value=v(m).id)??"")}),P(c,d)});var _;ui(h);var p=T(h,2);{var w=c=>{var m=ea(),d=Jt(m);{var y=N=>{var L=Zs(),S=E(L);Z(()=>z(S,`[${v(s).slug??""}]`)),P(N,L)};W(d,N=>{v(s).slug&&N(y)})}var k=T(d,2);{var F=N=>{var L=Qs();Ur(L),Le("blur",L,a),fe("keydown",L,l),dn(L,()=>v(r),S=>g(r,S)),P(N,L)},B=N=>{var L=$s();fe("click",L,i),P(N,L)};W(k,N=>{v(n)?N(F):N(B,!1)})}P(c,m)};W(p,c=>{v(s)&&c(w)})}Z(()=>{_!==(_=t.selectedId??"")&&(h.value=(h.__value=t.selectedId??"")??"",rr(h,t.selectedId??""))}),fe("change",h,c=>t.onSelect(c.target.value)),P(e,o),et()}qt(["change","keydown","click"]);const ra=[{status:"todo",label:"Todo"},{status:"in_progress",label:"In Progress"},{status:"blocked",label:"Blocked"},{status:"done",label:"Done"},{status:"cancelled",label:"Cancelled"}],ia=["critical","high","medium","low"];var sa=M('<span class="task-id svelte-35ep21"> </span>'),aa=M('<div class="card-desc svelte-35ep21"> </div>'),la=M('<span class="tag svelte-35ep21"> </span>'),oa=M('<div class="card-tags svelte-35ep21"></div>'),fa=M('<div draggable="true" role="button" tabindex="0"><div class="card-header svelte-35ep21"><span> </span> <div class="card-header-right svelte-35ep21"><!> <button class="delete-btn svelte-35ep21" title="Delete task">×</button></div></div> <div class="card-title svelte-35ep21"> </div> <!> <!></div>');function ua(e,t){$e(t,!0);let n=O(!1);function r(S){if(!S)return[];try{return JSON.parse(S)}catch{return[]}}const s=pt(()=>r(t.task.tags)),i=pt(()=>`priority-${t.task.priority}`);function a(S){g(n,!0),t.onDragStart(S,t.task)}function l(){g(n,!1)}var o=fa();let f;var h=E(o),_=E(h),p=E(_),w=T(_,2),c=E(w);{var m=S=>{var U=sa(),V=E(U);Z(()=>z(V,t.task.short_id)),P(S,U)};W(c,S=>{t.task.short_id&&S(m)})}var d=T(c,2),y=T(h,2),k=E(y),F=T(y,2);{var B=S=>{var U=aa(),V=E(U);Z(()=>z(V,t.task.description)),P(S,U)};W(F,S=>{t.task.description&&S(B)})}var N=T(F,2);{var L=S=>{var U=oa();Lt(U,21,()=>v(s),nr,(V,wt)=>{var tt=la(),bt=E(tt);Z(()=>z(bt,v(wt))),P(V,tt)}),P(S,U)};W(N,S=>{v(s).length>0&&S(L)})}Z(()=>{f=Kn(o,1,`card ${v(i)??""}`,"svelte-35ep21",f,{dragging:v(n)}),Kn(_,1,`priority-badge ${v(i)??""}`,"svelte-35ep21"),z(p,t.task.priority),z(k,t.task.title)}),Le("dragstart",o,a),Le("dragend",o,l),fe("click",o,()=>t.onEdit(t.task)),fe("keydown",o,S=>{S.key==="Enter"&&t.onEdit(t.task)}),fe("click",d,S=>{S.stopPropagation(),t.onDelete(t.task)}),P(e,o),et()}qt(["click","keydown"]);var ca=M('<button class="add-btn svelte-zswfgn" title="Add task">+</button>'),va=M('<div role="list"><div class="column-header svelte-zswfgn"><h3 class="svelte-zswfgn"><span class="chevron svelte-zswfgn">▸</span> <span class="count svelte-zswfgn"> </span></h3> <!></div> <div class="card-list svelte-zswfgn"></div></div>');function da(e,t){$e(t,!0);let n=O(!1);function r(d){d.preventDefault(),d.dataTransfer&&(d.dataTransfer.dropEffect="move"),g(n,!0)}function s(){g(n,!1)}function i(d){d.preventDefault(),g(n,!1),t.onDrop(t.status)}var a=va();let l;var o=E(a),f=E(o),h=T(E(f)),_=T(h),p=E(_),w=T(f,2);{var c=d=>{var y=ca();fe("click",y,()=>t.onAddTask(t.status)),P(d,y)};W(w,d=>{t.status==="todo"&&d(c)})}var m=T(o,2);Lt(m,21,()=>t.tasks,d=>d.id,(d,y)=>{ua(d,{get task(){return v(y)},get onEdit(){return t.onEdit},get onDelete(){return t.onDelete},get onDragStart(){return t.onDragStart}})}),Z(()=>{l=Kn(a,1,"column svelte-zswfgn",null,l,{"drag-over":v(n)}),z(h,` ${t.label??""} `),z(p,`[${t.tasks.length??""}]`)}),Le("dragover",a,r),Le("dragleave",a,s),Le("drop",a,i),P(e,a),et()}qt(["click"]);var ha=M('<span class="modal-task-id svelte-1gmf2hi"> </span>'),_a=M("<option> </option>"),pa=M('<div class="field svelte-1gmf2hi"><label for="status" class="svelte-1gmf2hi">Status</label> <select id="status" class="svelte-1gmf2hi"><option>Todo</option><option>In Progress</option><option>Blocked</option><option>Done</option><option>Cancelled</option></select></div>'),ga=M('<div class="decision-reasoning svelte-1gmf2hi"> </div>'),ma=M('<div class="decision-alts svelte-1gmf2hi"> </div>'),ya=M('<div class="decision-item svelte-1gmf2hi"><div class="decision-title svelte-1gmf2hi"> </div> <div class="decision-body svelte-1gmf2hi"> </div> <!> <!></div>'),wa=M('<div class="decisions-section svelte-1gmf2hi"><h3 class="decisions-heading svelte-1gmf2hi">Decisions</h3> <div class="decisions-list svelte-1gmf2hi"></div></div>'),ba=M('<div class="modal-backdrop svelte-1gmf2hi"><div class="modal svelte-1gmf2hi"><div class="modal-header svelte-1gmf2hi"><div class="modal-title svelte-1gmf2hi"><h2 class="svelte-1gmf2hi"> </h2> <!></div> <button class="close-btn svelte-1gmf2hi">×</button></div> <form><div class="field svelte-1gmf2hi"><label for="title" class="svelte-1gmf2hi">Title</label> <input id="title" type="text" placeholder="Task title" required="" class="svelte-1gmf2hi"/></div> <div class="field svelte-1gmf2hi"><label for="description" class="svelte-1gmf2hi">Description</label> <textarea id="description" placeholder="Optional description" rows="3" class="svelte-1gmf2hi"></textarea></div> <div class="row svelte-1gmf2hi"><div class="field svelte-1gmf2hi"><label for="priority" class="svelte-1gmf2hi">Priority</label> <select id="priority" class="svelte-1gmf2hi"></select></div> <!></div> <div class="field svelte-1gmf2hi"><label for="tags" class="svelte-1gmf2hi">Tags <span class="hint svelte-1gmf2hi">(comma-separated)</span></label> <input id="tags" type="text" placeholder="e.g. backend, auth, bug" class="svelte-1gmf2hi"/></div> <div class="actions svelte-1gmf2hi"><button type="button" class="btn-cancel svelte-1gmf2hi">Cancel</button> <button type="submit" class="btn-save svelte-1gmf2hi"> </button></div></form> <!></div></div>');function ka(e,t){$e(t,!0);let n=ci(t,"defaultStatus",3,"todo"),r=O(""),s=O(""),i=O("medium"),a=O("todo"),l=O(""),o=O(Ye([]));gn(()=>{var D,I,te,ie,ne;if(g(r,((D=t.task)==null?void 0:D.title)??"",!0),g(s,((I=t.task)==null?void 0:I.description)??"",!0),g(i,((te=t.task)==null?void 0:te.priority)??"medium",!0),g(a,((ie=t.task)==null?void 0:ie.status)??n(),!0),(ne=t.task)!=null&&ne.tags)try{g(l,JSON.parse(t.task.tags).join(", "),!0)}catch{g(l,"")}else g(l,"")}),gn(()=>{t.task!==null?He.getDecisions(t.projectId).then(D=>{g(o,D,!0)}).catch(()=>{g(o,[],!0)}):g(o,[],!0)});const f=pt(()=>t.task!==null);function h(D){D.preventDefault();const I=v(r).trim();if(!I)return;const te=v(l).split(",").map(ie=>ie.trim()).filter(Boolean);t.onSave({title:I,description:v(s).trim(),priority:v(i),...v(f)?{status:v(a)}:{},tags:te})}function _(D){D.target.classList.contains("modal-backdrop")&&t.onClose()}function p(D){D.key==="Escape"&&t.onClose()}var w=ba();Le("keydown",_n,p);var c=E(w),m=E(c),d=E(m),y=E(d),k=E(y),F=T(y,2);{var B=D=>{var I=ha(),te=E(I);Z(()=>z(te,t.task.short_id)),P(D,I)};W(F,D=>{var I;(I=t.task)!=null&&I.short_id&&D(B)})}var N=T(d,2),L=T(m,2),S=E(L),U=T(E(S),2);Ur(U);var V=T(S,2),wt=T(E(V),2),tt=T(V,2),bt=E(tt),rn=T(E(bt),2);Lt(rn,21,()=>ia,nr,(D,I)=>{var te=_a(),ie=E(te),ne={};Z(()=>{z(ie,v(I)),ne!==(ne=v(I))&&(te.value=(te.__value=v(I))??"")}),P(D,te)});var b=T(bt,2);{var q=D=>{var I=pa(),te=T(E(I),2),ie=E(te);ie.value=ie.__value="todo";var ne=T(ie);ne.value=ne.__value="in_progress";var kt=T(ne);kt.value=kt.__value="blocked";var Et=T(kt);Et.value=Et.__value="done";var sn=T(Et);sn.value=sn.__value="cancelled",yr(te,()=>v(a),an=>g(a,an)),P(D,I)};W(b,D=>{v(f)&&D(q)})}var re=T(tt,2),ee=T(E(re),2),zt=T(re,2),sr=E(zt),vi=T(sr,2),di=E(vi),hi=T(L,2);{var _i=D=>{var I=wa(),te=T(E(I),2);Lt(te,21,()=>v(o),ie=>ie.id,(ie,ne)=>{var kt=ya(),Et=E(kt),sn=E(Et),an=T(Et,2),pi=E(an),ar=T(an,2);{var gi=nt=>{var Tt=ga(),ln=E(Tt);Z(()=>z(ln,v(ne).reasoning)),P(nt,Tt)};W(ar,nt=>{v(ne).reasoning&&nt(gi)})}var mi=T(ar,2);{var yi=nt=>{const Tt=pt(()=>(()=>{try{return JSON.parse(v(ne).alternatives)}catch{return null}})());var ln=fi(),wi=Jt(ln);{var bi=Tn=>{var lr=ma(),ki=E(lr);Z(Ei=>z(ki,`Alternatives: ${Ei??""}`),[()=>v(Tt).join(", ")]),P(Tn,lr)};W(wi,Tn=>{v(Tt)&&v(Tt).length>0&&Tn(bi)})}P(nt,ln)};W(mi,nt=>{v(ne).alternatives&&nt(yi)})}Z(()=>{z(sn,v(ne).title),z(pi,v(ne).decision)}),P(ie,kt)}),P(D,I)};W(hi,D=>{v(f)&&v(o).length>0&&D(_i)})}Z(()=>{z(k,v(f)?"Edit Task":"New Task"),z(di,v(f)?"Save":"Create")}),fe("click",w,_),fe("click",N,function(...D){var I;(I=t.onClose)==null||I.apply(this,D)}),Le("submit",L,h),dn(U,()=>v(r),D=>g(r,D)),dn(wt,()=>v(s),D=>g(s,D)),yr(rn,()=>v(i),D=>g(i,D)),dn(ee,()=>v(l),D=>g(l,D)),fe("click",sr,function(...D){var I;(I=t.onClose)==null||I.apply(this,D)}),P(e,w),et()}qt(["click"]);var Ea=M('<div class="modal-backdrop svelte-1efofyg"><div class="dialog svelte-1efofyg"><h3 class="svelte-1efofyg"> </h3> <p class="svelte-1efofyg"> </p> <div class="actions svelte-1efofyg"><button class="btn-cancel svelte-1efofyg">Cancel</button> <button class="btn-confirm svelte-1efofyg"> </button></div></div></div>');function Ta(e,t){$e(t,!0);let n=ci(t,"confirmLabel",3,"Delete");function r(m){m.target.classList.contains("modal-backdrop")&&t.onCancel()}function s(m){m.key==="Escape"&&t.onCancel()}var i=Ea();Le("keydown",_n,s);var a=E(i),l=E(a),o=E(l),f=T(l,2),h=E(f),_=T(f,2),p=E(_),w=T(p,2),c=E(w);Z(()=>{z(o,t.title),z(h,t.message),z(c,n())}),fe("click",i,r),fe("click",p,function(...m){var d;(d=t.onCancel)==null||d.apply(this,m)}),fe("click",w,function(...m){var d;(d=t.onConfirm)==null||d.apply(this,m)}),P(e,i),et()}qt(["click"]);var xa=M('<div class="board-message svelte-x7v2jt">Loading tasks...</div>'),Sa=M('<div class="board-message error svelte-x7v2jt"> <button class="svelte-x7v2jt">Retry</button></div>'),Ca=M('<div class="board svelte-x7v2jt"></div>'),Da=M('<div class="board-wrapper svelte-x7v2jt"><!></div> <!> <!>',1);function Aa(e,t){$e(t,!0);let n=O(Ye([])),r=O(!0),s=O(null),i=O(!1),a=O(null),l=O("todo"),o=O(!1),f=O(null),h=O(null);const _=pt(()=>ra.map(b=>({...b,tasks:v(n).filter(q=>q.status===b.status)})));async function p(){g(r,!0),g(s,null);try{g(n,await He.getTasks(t.project.id),!0)}catch(b){g(s,b.message,!0)}finally{g(r,!1)}}gn(()=>{t.project.id,p()});function w(b,q){g(h,q,!0),b.dataTransfer&&(b.dataTransfer.effectAllowed="move",b.dataTransfer.setData("text/plain",q.id))}async function c(b){if(!v(h)||v(h).status===b){g(h,null);return}const q=v(h),re=q.status;g(h,null);const ee=v(n).findIndex(zt=>zt.id===q.id);ee!==-1&&(v(n)[ee]={...v(n)[ee],status:b});try{await He.updateTask(q.id,{status:b})}catch(zt){ee!==-1&&(v(n)[ee]={...v(n)[ee],status:re}),g(s,zt.message,!0)}}function m(b){g(a,null),g(l,b,!0),g(i,!0)}function d(b){g(a,b,!0),g(i,!0)}async function y(b){try{if(v(a)){const q=await He.updateTask(v(a).id,{title:b.title,description:b.description||null,priority:b.priority,status:b.status,tags:b.tags.length>0?b.tags:null}),re=v(n).findIndex(ee=>ee.id===v(a).id);re!==-1&&(v(n)[re]=q)}else{const q=await He.createTask(t.project.id,{title:b.title,description:b.description||void 0,priority:b.priority,tags:b.tags.length>0?b.tags:void 0});g(n,[q,...v(n)],!0)}g(i,!1),g(a,null)}catch(q){g(s,q.message,!0)}}function k(b){g(f,b,!0),g(o,!0)}async function F(){if(v(f))try{await He.deleteTask(v(f).id),g(n,v(n).filter(b=>b.id!==v(f).id&&b.parent_task_id!==v(f).id),!0),g(o,!1),g(f,null)}catch(b){g(s,b.message,!0)}}var B=Da(),N=Jt(B),L=E(N);{var S=b=>{var q=xa();P(b,q)},U=b=>{var q=Sa(),re=E(q),ee=T(re);Z(()=>z(re,`${v(s)??""} `)),fe("click",ee,()=>{g(s,null),p()}),P(b,q)},V=b=>{var q=Ca();Lt(q,21,()=>v(_),re=>re.status,(re,ee)=>{da(re,{get status(){return v(ee).status},get label(){return v(ee).label},get tasks(){return v(ee).tasks},onEdit:d,onDelete:k,onDragStart:w,onDrop:c,onAddTask:m})}),P(b,q)};W(L,b=>{v(r)?b(S):v(s)?b(U,1):b(V,!1)})}var wt=T(N,2);{var tt=b=>{ka(b,{get task(){return v(a)},get projectId(){return t.project.id},get defaultStatus(){return v(l)},onSave:y,onClose:()=>{g(i,!1),g(a,null)}})};W(wt,b=>{v(i)&&b(tt)})}var bt=T(wt,2);{var rn=b=>{Ta(b,{title:"Delete Task",get message(){return`Are you sure you want to delete "${v(f).title??""}"? This cannot be undone.`},onConfirm:F,onCancel:()=>{g(o,!1),g(f,null)}})};W(bt,b=>{v(o)&&v(f)&&b(rn)})}P(e,B),et()}qt(["click"]);var ja=M('<div class="loading svelte-1n46o8q"><span class="prompt svelte-1n46o8q">></span> loading projects...</div>'),Pa=M('<div class="error svelte-1n46o8q"><span class="err-prefix svelte-1n46o8q">[error]</span> </div>'),Oa=M('<div class="empty svelte-1n46o8q"><p class="empty-prompt svelte-1n46o8q">> no projects found</p> <p class="empty-hint svelte-1n46o8q">// create a project using mindpm MCP tools to get started</p></div>'),Na=M("<!> <!>",1);function Ra(e,t){$e(t,!0);let n=O(Ye([])),r=O(null),s=O(!0),i=O(null);const a=pt(()=>v(n).find(d=>d.id===v(r))??null);async function l(){try{if(g(n,await He.getProjects(),!0),v(n).length>0&&!v(r)){const d=new URLSearchParams(window.location.search).get("project"),y=d?v(n).find(k=>k.id===d||k.name===d):null;g(r,y?y.id:v(n)[0].id,!0)}}catch(d){g(i,d.message,!0)}finally{g(s,!1)}}function o(d){g(r,d,!0)}async function f(d,y){try{await He.updateProject(d,{name:y});const k=v(n).findIndex(F=>F.id===d);k!==-1&&(v(n)[k]={...v(n)[k],name:y})}catch(k){g(i,k.message,!0)}}gn(()=>{l()});var h=fi(),_=Jt(h);{var p=d=>{var y=ja();P(d,y)},w=d=>{var y=Pa(),k=T(E(y));Z(()=>z(k,` ${v(i)??""}`)),P(d,y)},c=d=>{var y=Oa();P(d,y)},m=d=>{var y=Na(),k=Jt(y);na(k,{get projects(){return v(n)},get selectedId(){return v(r)},onSelect:o,onRenamed:f});var F=T(k,2);{var B=N=>{Aa(N,{get project(){return v(a)}})};W(F,N=>{v(a)&&N(B)})}P(d,y)};W(_,d=>{v(s)?d(p):v(i)?d(w,1):v(n).length===0?d(c,2):d(m,!1)})}P(e,h),et()}Bs(Ra,{target:document.getElementById("app")});
|