vite-plugin-lingo 0.0.1

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.
Files changed (38) hide show
  1. package/README.md +266 -0
  2. package/dist/index.d.ts +8 -0
  3. package/dist/index.js +10 -0
  4. package/dist/plugin/gettext-parser.d.ts +44 -0
  5. package/dist/plugin/index.cjs +449 -0
  6. package/dist/plugin/index.cjs.map +1 -0
  7. package/dist/plugin/index.d.cts +84 -0
  8. package/dist/plugin/index.d.ts +84 -0
  9. package/dist/plugin/index.js +413 -0
  10. package/dist/plugin/index.js.map +1 -0
  11. package/dist/plugin/middleware.d.ts +10 -0
  12. package/dist/plugin/middleware.js +137 -0
  13. package/dist/plugin/po-parser.d.ts +25 -0
  14. package/dist/plugin/po-parser.js +147 -0
  15. package/dist/plugin/types.d.ts +67 -0
  16. package/dist/plugin/types.js +1 -0
  17. package/dist/ui/App.svelte +92 -0
  18. package/dist/ui/App.svelte.d.ts +3 -0
  19. package/dist/ui/app.css +64 -0
  20. package/dist/ui/components/LanguageList.svelte +166 -0
  21. package/dist/ui/components/LanguageList.svelte.d.ts +6 -0
  22. package/dist/ui/components/ProgressBar.svelte +47 -0
  23. package/dist/ui/components/ProgressBar.svelte.d.ts +9 -0
  24. package/dist/ui/components/SearchBar.svelte +54 -0
  25. package/dist/ui/components/SearchBar.svelte.d.ts +6 -0
  26. package/dist/ui/components/ThemeToggle.svelte +17 -0
  27. package/dist/ui/components/ThemeToggle.svelte.d.ts +18 -0
  28. package/dist/ui/components/TranslationEditor.svelte +418 -0
  29. package/dist/ui/components/TranslationEditor.svelte.d.ts +8 -0
  30. package/dist/ui/index.html +24 -0
  31. package/dist/ui/main.d.ts +3 -0
  32. package/dist/ui/main.js +7 -0
  33. package/dist/ui/stores/refresh-signal.svelte.d.ts +6 -0
  34. package/dist/ui/stores/refresh-signal.svelte.js +11 -0
  35. package/dist/ui-dist/assets/index-B5dZv0sy.css +1 -0
  36. package/dist/ui-dist/assets/index-DsX4xzGF.js +10 -0
  37. package/dist/ui-dist/index.html +25 -0
  38. package/package.json +118 -0
@@ -0,0 +1,10 @@
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(s){if(s.ep)return;s.ep=!0;const a=r(s);fetch(s.href,a)}})();const Or=!1;var Yr=Array.isArray,va=Array.prototype.indexOf,Gr=Array.from,ha=Object.defineProperty,at=Object.getOwnPropertyDescriptor,Hn=Object.getOwnPropertyDescriptors,_a=Object.prototype,pa=Array.prototype,Qr=Object.getPrototypeOf,xn=Object.isExtensible;function Ht(e){return typeof e=="function"}const U=()=>{};function ga(e){return e()}function Fr(e){for(var t=0;t<e.length;t++)e[t]()}function Un(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}function ma(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const r=[];for(const n of e)if(r.push(n),r.length===t)break;return r}const ce=2,Jr=4,kr=8,Kn=1<<24,Xe=16,Ze=32,ut=64,Er=128,Fe=512,ve=1024,ke=2048,et=4096,Se=8192,Ye=16384,Xr=32768,Je=65536,wn=1<<17,Zr=1<<18,Et=1<<19,Yn=1<<20,yt=32768,Rr=1<<21,en=1<<22,it=1<<23,qe=Symbol("$state"),Gn=Symbol("legacy props"),ba=Symbol(""),Ct=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function ya(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function xa(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function wa(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ka(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ea(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Sa(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Aa(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ma(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Na(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ta(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function $a(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Qn=1,Jn=2,Xn=4,Pa=8,Ca=16,za=1,La=2,Ia=4,Oa=8,Fa=16,Ra=1,ja=2,ue=Symbol(),Da="http://www.w3.org/1999/xhtml",Va="http://www.w3.org/2000/svg",qa="@attach";function Ba(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Wa(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Zn(e){return e===this.v}function Ha(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function es(e){return!Ha(e,this.v)}let jt=!1,Ua=!1;function Ka(){jt=!0}let X=null;function Lt(e){X=e}function L(e,t=!1,r){X={p:X,i:!1,c:null,e:null,s:e,x:null,l:jt&&!t?{s:null,u:null,$:[]}:null}}function I(e){var t=X,r=t.e;if(r!==null){t.e=null;for(var n of r)ps(n)}return t.i=!0,X=t.p,{}}function nr(){return!jt||X!==null&&X.l===null}let pt=[];function ts(){var e=pt;pt=[],Fr(e)}function St(e){if(pt.length===0&&!Qt){var t=pt;queueMicrotask(()=>{t===pt&&ts()})}pt.push(e)}function Ya(){for(;pt.length>0;)ts()}function rs(e){var t=z;if(t===null)return P.f|=it,e;if((t.f&Xr)===0){if((t.f&Er)===0)throw e;t.b.error(e)}else It(e,t)}function It(e,t){for(;t!==null;){if((t.f&Er)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const dr=new Set;let R=null,hr=null,Pe=null,$e=[],Sr=null,jr=!1,Qt=!1;class Oe{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#n=0;#r=0;#a=null;#s=[];#o=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){$e=[],hr=null,this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#i(n,r);this.is_fork||this.#f(),this.is_deferred()?(this.#l(r.effects),this.#l(r.render_effects),this.#l(r.block_effects)):(hr=this,R=null,kn(r.render_effects),kn(r.effects),hr=null,this.#a?.resolve()),Pe=null}#i(t,r){t.f^=ve;for(var n=t.first;n!==null;){var s=n.f,a=(s&(Ze|ut))!==0,i=a&&(s&ve)!==0,l=i||(s&Se)!==0||this.skipped_effects.has(n);if((n.f&Er)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!l&&n.fn!==null){a?n.f^=ve:(s&Jr)!==0?r.effects.push(n):lr(n)&&((n.f&Xe)!==0&&r.block_effects.push(n),er(n));var o=n.first;if(o!==null){n=o;continue}}var u=n.parent;for(n=n.next;n===null&&u!==null;)u===r.effect&&(this.#l(r.effects),this.#l(r.render_effects),this.#l(r.block_effects),r=r.parent),n=u.next,u=u.parent}}#l(t){for(const r of t)((r.f&ke)!==0?this.#s:this.#o).push(r),this.#u(r.deps),he(r,ve)}#u(t){if(t!==null)for(const r of t)(r.f&ce)===0||(r.f&yt)===0||(r.f^=yt,this.#u(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&it)===0&&(this.current.set(t,t.v),Pe?.set(t,t.v))}activate(){R=this,this.apply()}deactivate(){R===this&&(R=null,Pe=null)}flush(){if(this.activate(),$e.length>0){if(ns(),R!==null&&R!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#f(){if(this.#r===0){for(const t of this.#t)t();this.#t.clear()}this.#n===0&&this.#c()}#c(){if(dr.size>1){this.previous.clear();var t=Pe,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const a of dr){if(a===this){r=!1;continue}const i=[];for(const[o,u]of this.current){if(a.current.has(o))if(r&&u!==a.current.get(o))a.current.set(o,u);else continue;i.push(o)}if(i.length===0)continue;const l=[...a.current.keys()].filter(o=>!this.current.has(o));if(l.length>0){var s=$e;$e=[];const o=new Set,u=new Map;for(const c of i)ss(c,l,o,u);if($e.length>0){R=a,a.apply();for(const c of $e)a.#i(c,n);a.deactivate()}$e=s}}R=null,Pe=t}this.committed=!0,dr.delete(this)}increment(t){this.#n+=1,t&&(this.#r+=1)}decrement(t){this.#n-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#s)he(t,ke),xt(t);for(const t of this.#o)he(t,et),xt(t);this.#s=[],this.#o=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#a??=Un()).promise}static ensure(){if(R===null){const t=R=new Oe;dr.add(R),Qt||Oe.enqueue(()=>{R===t&&t.flush()})}return R}static enqueue(t){St(t)}apply(){}}function Ga(e){var t=Qt;Qt=!0;try{for(var r;;){if(Ya(),$e.length===0&&(R?.flush(),$e.length===0))return Sr=null,r;ns()}}finally{Qt=t}}function ns(){var e=ot;jr=!0;var t=null;try{var r=0;for(mr(!0);$e.length>0;){var n=Oe.ensure();if(r++>1e3){var s,a;Qa()}n.process($e),lt.clear()}}finally{jr=!1,mr(e),Sr=null}}function Qa(){try{Sa()}catch(e){It(e,Sr)}}let Ue=null;function kn(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(Ye|Se))===0&&lr(n)&&(Ue=new Set,er(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?xs(n):n.fn=null),Ue?.size>0)){lt.clear();for(const s of Ue){if((s.f&(Ye|Se))!==0)continue;const a=[s];let i=s.parent;for(;i!==null;)Ue.has(i)&&(Ue.delete(i),a.push(i)),i=i.parent;for(let l=a.length-1;l>=0;l--){const o=a[l];(o.f&(Ye|Se))===0&&er(o)}}Ue.clear()}}Ue=null}}function ss(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const a=s.f;(a&ce)!==0?ss(s,t,r,n):(a&(en|Xe))!==0&&(a&ke)===0&&as(s,t,n)&&(he(s,ke),xt(s))}}function as(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&ce)!==0&&as(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function xt(e){for(var t=Sr=e;t.parent!==null;){t=t.parent;var r=t.f;if(jr&&t===z&&(r&Xe)!==0&&(r&Zr)===0)return;if((r&(ut|Ze))!==0){if((r&ve)===0)return;t.f^=ve}}$e.push(t)}function sr(e){let t=0,r=wt(0),n;return()=>{Xt()&&(f(r),ln(()=>(t===0&&(n=ft(()=>e(()=>Jt(r)))),t+=1,()=>{St(()=>{t-=1,t===0&&(n?.(),n=void 0,Jt(r))})})))}}var Ja=Je|Et|Er;function Xa(e,t,r){new Za(e,t,r)}class Za{parent;#t=!1;#e;#n=null;#r;#a;#s;#o=null;#i=null;#l=null;#u=null;#f=null;#c=0;#d=0;#h=!1;#v=null;#b=sr(()=>(this.#v=wt(this.#c),()=>{this.#v=null}));constructor(t,r,n){this.#e=t,this.#r=r,this.#a=n,this.parent=z.b,this.#t=!!this.#r.pending,this.#s=At(()=>{z.b=this;{var s=this.#g();try{this.#o=xe(()=>n(s))}catch(a){this.error(a)}this.#d>0?this.#p():this.#t=!1}return()=>{this.#f?.remove()}},Ja)}#y(){try{this.#o=xe(()=>this.#a(this.#e))}catch(t){this.error(t)}this.#t=!1}#x(){const t=this.#r.pending;t&&(this.#i=xe(()=>t(this.#e)),Oe.enqueue(()=>{var r=this.#g();this.#o=this.#_(()=>(Oe.ensure(),xe(()=>this.#a(r)))),this.#d>0?this.#p():(zt(this.#i,()=>{this.#i=null}),this.#t=!1)}))}#g(){var t=this.#e;return this.#t&&(this.#f=Be(),this.#e.before(this.#f),t=this.#f),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#_(t){var r=z,n=P,s=X;We(this.#s),we(this.#s),Lt(this.#s.ctx);try{return t()}catch(a){return rs(a),null}finally{We(r),we(n),Lt(s)}}#p(){const t=this.#r.pending;this.#o!==null&&(this.#u=document.createDocumentFragment(),this.#u.append(this.#f),Es(this.#o,this.#u)),this.#i===null&&(this.#i=xe(()=>t(this.#e)))}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#i&&zt(this.#i,()=>{this.#i=null}),this.#u&&(this.#e.before(this.#u),this.#u=null))}update_pending_count(t){this.#m(t),this.#c+=t,this.#v&&Ot(this.#v,this.#c)}get_effect_pending(){return this.#b(),f(this.#v)}error(t){var r=this.#r.onerror;let n=this.#r.failed;if(this.#h||!r&&!n)throw t;this.#o&&(le(this.#o),this.#o=null),this.#i&&(le(this.#i),this.#i=null),this.#l&&(le(this.#l),this.#l=null);var s=!1,a=!1;const i=()=>{if(s){Wa();return}s=!0,a&&$a(),Oe.ensure(),this.#c=0,this.#l!==null&&zt(this.#l,()=>{this.#l=null}),this.#t=this.has_pending_snippet(),this.#o=this.#_(()=>(this.#h=!1,xe(()=>this.#a(this.#e)))),this.#d>0?this.#p():this.#t=!1};var l=P;try{we(null),a=!0,r?.(t,i),a=!1}catch(o){It(o,this.#s&&this.#s.parent)}finally{we(l)}n&&St(()=>{this.#l=this.#_(()=>{Oe.ensure(),this.#h=!0;try{return xe(()=>{n(this.#e,()=>t,()=>i)})}catch(o){return It(o,this.#s.parent),null}finally{this.#h=!1}})})}}function ei(e,t){return t}function ti(e,t,r){for(var n=[],s=t.length,a=0;a<s;a++)on(t[a].e,n,!0);ws(n,()=>{var i=n.length===0&&r!==null;if(i){var l=r,o=l.parentNode;di(o),o.append(l),e.items.clear(),Le(e,t[0].prev,t[s-1].next)}for(var u=0;u<s;u++){var c=t[u];i||(e.items.delete(c.k),Le(e,c.prev,c.next)),le(c.e,!i)}e.first===t[0]&&(e.first=t[0].prev)})}function Ar(e,t,r,n,s,a=null){var i=e,l=new Map,o=null,u=(t&Xn)!==0,c=(t&Qn)!==0,v=(t&Jn)!==0;if(u){var d=e;i=d.appendChild(Be())}var h=null,y=tn(()=>{var b=r();return Yr(b)?b:b==null?[]:Gr(b)}),E,g=!0;function m(){ri(x,E,i,t,n),h!==null&&(E.length===0?(h.fragment?(i.before(h.fragment),h.fragment=null):un(h.effect),W.first=h.effect):zt(h.effect,()=>{h=null}))}var W=At(()=>{E=f(y);for(var b=E.length,M=new Set,D=R,O=null,A=hs(),V=0;V<b;V+=1){var re=E[V],ie=n(re,V),Z=g?null:l.get(ie);Z?(c&&Ot(Z.v,re),v?Ot(Z.i,V):Z.i=V,A&&D.skipped_effects.delete(Z.e)):(Z=ni(g?i:null,O,re,ie,V,s,t,r),g&&(Z.o=!0,O===null?o=Z:O.next=Z,O=Z),l.set(ie,Z)),M.add(ie)}if(b===0&&a&&!h)if(g)h={fragment:null,effect:xe(()=>a(i))};else{var oe=document.createDocumentFragment(),be=Be();oe.append(be),h={fragment:oe,effect:xe(()=>a(be))}}if(!g)if(A){for(const[_e,ne]of l)M.has(_e)||D.skipped_effects.add(ne.e);D.oncommit(m),D.ondiscard(()=>{})}else m();f(y)}),x={effect:W,items:l,first:o};g=!1}function ri(e,t,r,n,s){var a=(n&Pa)!==0,i=t.length,l=e.items,o=e.first,u,c=null,v,d=[],h=[],y,E,g,m;if(a)for(m=0;m<i;m+=1)y=t[m],E=s(y,m),g=l.get(E),g.o&&(g.a?.measure(),(v??=new Set).add(g));for(m=0;m<i;m+=1){if(y=t[m],E=s(y,m),g=l.get(E),e.first??=g,!g.o){g.o=!0;var W=c?c.next:o;Le(e,c,g),Le(e,g,W),Pr(g,W,r),c=g,d=[],h=[],o=c.next;continue}if((g.e.f&Se)!==0&&(un(g.e),a&&(g.a?.unfix(),(v??=new Set).delete(g))),g!==o){if(u!==void 0&&u.has(g)){if(d.length<h.length){var x=h[0],b;c=x.prev;var M=d[0],D=d[d.length-1];for(b=0;b<d.length;b+=1)Pr(d[b],x,r);for(b=0;b<h.length;b+=1)u.delete(h[b]);Le(e,M.prev,D.next),Le(e,c,M),Le(e,D,x),o=x,c=D,m-=1,d=[],h=[]}else u.delete(g),Pr(g,o,r),Le(e,g.prev,g.next),Le(e,g,c===null?e.first:c.next),Le(e,c,g),c=g;continue}for(d=[],h=[];o!==null&&o.k!==E;)(o.e.f&Se)===0&&(u??=new Set).add(o),h.push(o),o=o.next;if(o===null)continue;g=o}d.push(g),c=g,o=g.next}let O=l.size>i;if(o!==null||u!==void 0){for(var A=u===void 0?[]:Gr(u);o!==null;)(o.e.f&Se)===0&&A.push(o),o=o.next;var V=A.length;if(O=l.size-V>i,V>0){var re=(n&Xn)!==0&&i===0?r:null;if(a){for(m=0;m<V;m+=1)A[m].a?.measure();for(m=0;m<V;m+=1)A[m].a?.fix()}ti(e,A,re)}}if(O)for(const ie of l.values())ie.o||(Le(e,c,ie),c=ie);e.effect.last=c&&c.e,a&&St(()=>{if(v!==void 0)for(g of v)g.a?.apply()})}function ni(e,t,r,n,s,a,i,l){var o=(i&Qn)!==0,u=(i&Ca)===0,c=o?u?li(r,!1,!1):wt(r):r,v=(i&Jn)===0?s:wt(s),d={i:v,v:c,k:n,a:null,e:null,o:!1,prev:t,next:null};try{if(e===null){var h=document.createDocumentFragment();h.append(e=Be())}return d.e=xe(()=>a(e,c,v,l)),t!==null&&(t.next=d),d}finally{}}function Pr(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,s=t?t.e.nodes_start:r,a=e.e.nodes_start;a!==null&&a!==n;){var i=ir(a);s.before(a),a=i}}function Le(e,t,r){t===null?(e.first=r,e.effect.first=r&&r.e):(t.e.next&&(t.e.next.prev=null),t.next=r,t.e.next=r&&r.e),r!==null&&(r.e.prev&&(r.e.prev.next=null),r.prev=t,r.e.prev=t&&t.e)}function is(e,t,r,n){const s=nr()?ar:tn;if(r.length===0&&e.length===0){n(t.map(s));return}var a=R,i=z,l=si();function o(){Promise.all(r.map(u=>ai(u))).then(u=>{l();try{n([...t.map(s),...u])}catch(c){(i.f&Ye)===0&&It(c,i)}a?.deactivate(),gr()}).catch(u=>{It(u,i)})}e.length>0?Promise.all(e).then(()=>{l();try{return o()}finally{a?.deactivate(),gr()}}):o()}function si(){var e=z,t=P,r=X,n=R;return function(a=!0){We(e),we(t),Lt(r),a&&n?.activate()}}function gr(){We(null),we(null),Lt(null)}function ar(e){var t=ce|ke,r=P!==null&&(P.f&ce)!==0?P:null;return z!==null&&(z.f|=Et),{ctx:X,deps:null,effects:null,equals:Zn,f:t,fn:e,reactions:null,rv:0,v:ue,wv:0,parent:r??z,ac:null}}function ai(e,t){let r=z;r===null&&xa();var n=r.b,s=void 0,a=wt(ue),i=!P,l=new Map;return mi(()=>{var o=Un();s=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).then(()=>{u===R&&u.committed&&u.deactivate(),gr()})}catch(d){o.reject(d),gr()}var u=R;if(i){var c=!n.is_pending();n.update_pending_count(1),u.increment(c),l.get(u)?.reject(Ct),l.delete(u),l.set(u,o)}const v=(d,h=void 0)=>{if(u.activate(),h)h!==Ct&&(a.f|=it,Ot(a,h));else{(a.f&it)!==0&&(a.f^=it),Ot(a,d);for(const[y,E]of l){if(l.delete(y),y===u)break;E.reject(Ct)}}i&&(n.update_pending_count(-1),u.decrement(c))};o.promise.then(v,d=>v(null,d||"unknown"))}),nn(()=>{for(const o of l.values())o.reject(Ct)}),new Promise(o=>{function u(c){function v(){c===s?o(a):u(s)}c.then(v,v)}u(s)})}function Ge(e){const t=ar(e);return Ss(t),t}function tn(e){const t=ar(e);return t.equals=es,t}function ls(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)le(t[r])}}function ii(e){for(var t=e.parent;t!==null;){if((t.f&ce)===0)return(t.f&Ye)===0?t:null;t=t.parent}return null}function rn(e){var t,r=z;We(ii(e));try{e.f&=~yt,ls(e),t=Ts(e)}finally{We(r)}return t}function os(e){var t=rn(e);if(e.equals(t)||(R?.is_fork||(e.v=t),e.wv=Ms()),!Mt)if(Pe!==null)(Xt()||R?.is_fork)&&Pe.set(e,t);else{var r=(e.f&Fe)===0?et:ve;he(e,r)}}let Dr=new Set;const lt=new Map;let us=!1;function wt(e,t){var r={f:0,v:e,reactions:null,equals:Zn,rv:0,wv:0};return r}function j(e,t){const r=wt(e);return Ss(r),r}function li(e,t=!1,r=!0){const n=wt(e);return t||(n.equals=es),jt&&r&&X!==null&&X.l!==null&&(X.l.s??=[]).push(n),n}function S(e,t,r=!1){P!==null&&(!Ve||(P.f&wn)!==0)&&nr()&&(P.f&(ce|Xe|en|wn))!==0&&!Qe?.includes(e)&&Ta();let n=r?Ce(t):t;return Ot(e,n)}function Ot(e,t){if(!e.equals(t)){var r=e.v;Mt?lt.set(e,t):lt.set(e,r),e.v=t;var n=Oe.ensure();n.capture(e,r),(e.f&ce)!==0&&((e.f&ke)!==0&&rn(e),he(e,(e.f&Fe)!==0?ve:et)),e.wv=Ms(),fs(e,ke),nr()&&z!==null&&(z.f&ve)!==0&&(z.f&(Ze|ut))===0&&(Te===null?yi([e]):Te.push(e)),!n.is_fork&&Dr.size>0&&!us&&oi()}return t}function oi(){us=!1;var e=ot;mr(!0);const t=Array.from(Dr);try{for(const r of t)(r.f&ve)!==0&&he(r,et),lr(r)&&er(r)}finally{mr(e)}Dr.clear()}function ui(e,t=1){var r=f(e),n=t===1?r++:r--;return S(e,r),n}function Jt(e){S(e,e.v+1)}function fs(e,t){var r=e.reactions;if(r!==null)for(var n=nr(),s=r.length,a=0;a<s;a++){var i=r[a],l=i.f;if(!(!n&&i===z)){var o=(l&ke)===0;if(o&&he(i,t),(l&ce)!==0){var u=i;Pe?.delete(u),(l&yt)===0&&(l&Fe&&(i.f|=yt),fs(u,et))}else o&&((l&Xe)!==0&&Ue!==null&&Ue.add(i),xt(i))}}}function Ce(e){if(typeof e!="object"||e===null||qe in e)return e;const t=Qr(e);if(t!==_a&&t!==pa)return e;var r=new Map,n=Yr(e),s=j(0),a=bt,i=l=>{if(bt===a)return l();var o=P,u=bt;we(null),Nn(a);var c=l();return we(o),Nn(u),c};return n&&r.set("length",j(e.length)),new Proxy(e,{defineProperty(l,o,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Ma();var c=r.get(o);return c===void 0?c=i(()=>{var v=j(u.value);return r.set(o,v),v}):S(c,u.value,!0),!0},deleteProperty(l,o){var u=r.get(o);if(u===void 0){if(o in l){const c=i(()=>j(ue));r.set(o,c),Jt(s)}}else S(u,ue),Jt(s);return!0},get(l,o,u){if(o===qe)return e;var c=r.get(o),v=o in l;if(c===void 0&&(!v||at(l,o)?.writable)&&(c=i(()=>{var h=Ce(v?l[o]:ue),y=j(h);return y}),r.set(o,c)),c!==void 0){var d=f(c);return d===ue?void 0:d}return Reflect.get(l,o,u)},getOwnPropertyDescriptor(l,o){var u=Reflect.getOwnPropertyDescriptor(l,o);if(u&&"value"in u){var c=r.get(o);c&&(u.value=f(c))}else if(u===void 0){var v=r.get(o),d=v?.v;if(v!==void 0&&d!==ue)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return u},has(l,o){if(o===qe)return!0;var u=r.get(o),c=u!==void 0&&u.v!==ue||Reflect.has(l,o);if(u!==void 0||z!==null&&(!c||at(l,o)?.writable)){u===void 0&&(u=i(()=>{var d=c?Ce(l[o]):ue,h=j(d);return h}),r.set(o,u));var v=f(u);if(v===ue)return!1}return c},set(l,o,u,c){var v=r.get(o),d=o in l;if(n&&o==="length")for(var h=u;h<v.v;h+=1){var y=r.get(h+"");y!==void 0?S(y,ue):h in l&&(y=i(()=>j(ue)),r.set(h+"",y))}if(v===void 0)(!d||at(l,o)?.writable)&&(v=i(()=>j(void 0)),S(v,Ce(u)),r.set(o,v));else{d=v.v!==ue;var E=i(()=>Ce(u));S(v,E)}var g=Reflect.getOwnPropertyDescriptor(l,o);if(g?.set&&g.set.call(c,u),!d){if(n&&typeof o=="string"){var m=r.get("length"),W=Number(o);Number.isInteger(W)&&W>=m.v&&S(m,W+1)}Jt(s)}return!0},ownKeys(l){f(s);var o=Reflect.ownKeys(l).filter(v=>{var d=r.get(v);return d===void 0||d.v!==ue});for(var[u,c]of r)c.v!==ue&&!(u in l)&&o.push(u);return o},setPrototypeOf(){Na()}})}function En(e){try{if(e!==null&&typeof e=="object"&&qe in e)return e[qe]}catch{}return e}function fi(e,t){return Object.is(En(e),En(t))}var Sn,cs,ds,vs;function ci(){if(Sn===void 0){Sn=window,cs=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;ds=at(t,"firstChild").get,vs=at(t,"nextSibling").get,xn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),xn(r)&&(r.__t=void 0)}}function Be(e=""){return document.createTextNode(e)}function De(e){return ds.call(e)}function ir(e){return vs.call(e)}function _(e,t){return De(e)}function T(e,t=!1){{var r=De(e);return r instanceof Comment&&r.data===""?ir(r):r}}function k(e,t=1,r=!1){let n=e;for(;t--;)n=ir(n);return n}function di(e){e.textContent=""}function hs(){return!1}function vi(e,t){if(t){const r=document.body;e.autofocus=!0,St(()=>{document.activeElement===r&&e.focus()})}}let An=!1;function hi(){An||(An=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Mr(e){var t=P,r=z;we(null),We(null);try{return e()}finally{we(t),We(r)}}function _i(e,t,r,n=r){e.addEventListener(t,()=>Mr(r));const s=e.__on_r;s?e.__on_r=()=>{s(),n(!0)}:e.__on_r=()=>n(!0),hi()}function _s(e){z===null&&(P===null&&Ea(),ka()),Mt&&wa()}function pi(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ze(e,t,r){var n=z;n!==null&&(n.f&Se)!==0&&(e|=Se);var s={ctx:X,deps:null,nodes_start:null,nodes_end:null,f:e|ke|Fe,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{er(s),s.f|=Xr}catch(l){throw le(s),l}else t!==null&&xt(s);var a=s;if(r&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&Et)===0&&(a=a.first,(e&Xe)!==0&&(e&Je)!==0&&a!==null&&(a.f|=Je)),a!==null&&(a.parent=n,n!==null&&pi(a,n),P!==null&&(P.f&ce)!==0&&(e&ut)===0)){var i=P;(i.effects??=[]).push(a)}return s}function Xt(){return P!==null&&!Ve}function nn(e){const t=ze(kr,null,!1);return he(t,ve),t.teardown=e,t}function kt(e){_s();var t=z.f,r=!P&&(t&Ze)!==0&&(t&Xr)===0;if(r){var n=X;(n.e??=[]).push(e)}else return ps(e)}function ps(e){return ze(Jr|Yn,e,!1)}function Ie(e){return _s(),ze(kr|Yn,e,!0)}function sn(e){Oe.ensure();const t=ze(ut|Et,e,!0);return()=>{le(t)}}function gi(e){Oe.ensure();const t=ze(ut|Et,e,!0);return(r={})=>new Promise(n=>{r.outro?zt(t,()=>{le(t),n(void 0)}):(le(t),n(void 0))})}function an(e){return ze(Jr,e,!1)}function mi(e){return ze(en|Et,e,!0)}function ln(e,t=0){return ze(kr|t,e,!0)}function fe(e,t=[],r=[],n=[]){is(n,t,r,s=>{ze(kr,()=>e(...s.map(f)),!0)})}function At(e,t=0){var r=ze(Xe|t,e,!0);return r}function gs(e,t=0){var r=ze(Kn|t,e,!0);return r}function xe(e){return ze(Ze|Et,e,!0)}function ms(e){var t=e.teardown;if(t!==null){const r=Mt,n=P;Mn(!0),we(null);try{t.call(null)}finally{Mn(r),we(n)}}}function bs(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Mr(()=>{s.abort(Ct)});var n=r.next;(r.f&ut)!==0?r.parent=null:le(r,t),r=n}}function bi(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Ze)===0&&le(t),t=r}}function le(e,t=!0){var r=!1;(t||(e.f&Zr)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(ys(e.nodes_start,e.nodes_end),r=!0),bs(e,t&&!r),br(e,0),he(e,Ye);var n=e.transitions;if(n!==null)for(const a of n)a.stop();ms(e);var s=e.parent;s!==null&&s.first!==null&&xs(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function ys(e,t){for(;e!==null;){var r=e===t?null:ir(e);e.remove(),e=r}}function xs(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function zt(e,t,r=!0){var n=[];on(e,n,!0),ws(n,()=>{r&&le(e),t&&t()})}function ws(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var s of e)s.out(n)}else t()}function on(e,t,r){if((e.f&Se)===0){if(e.f^=Se,e.transitions!==null)for(const i of e.transitions)(i.is_global||r)&&t.push(i);for(var n=e.first;n!==null;){var s=n.next,a=(n.f&Je)!==0||(n.f&Ze)!==0&&(e.f&Xe)!==0;on(n,t,a?r:!1),n=s}}}function un(e){ks(e,!0)}function ks(e,t){if((e.f&Se)!==0){e.f^=Se,(e.f&ve)===0&&(he(e,ke),xt(e));for(var r=e.first;r!==null;){var n=r.next,s=(r.f&Je)!==0||(r.f&Ze)!==0;ks(r,s?t:!1),r=n}if(e.transitions!==null)for(const a of e.transitions)(a.is_global||t)&&a.in()}}function Es(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var s=r===n?null:ir(r);t.append(r),r=s}}let ot=!1;function mr(e){ot=e}let Mt=!1;function Mn(e){Mt=e}let P=null,Ve=!1;function we(e){P=e}let z=null;function We(e){z=e}let Qe=null;function Ss(e){P!==null&&(Qe===null?Qe=[e]:Qe.push(e))}let me=null,Ee=0,Te=null;function yi(e){Te=e}let As=1,Zt=0,bt=Zt;function Nn(e){bt=e}function Ms(){return++As}function lr(e){var t=e.f;if((t&ke)!==0)return!0;if(t&ce&&(e.f&=~yt),(t&et)!==0){var r=e.deps;if(r!==null)for(var n=r.length,s=0;s<n;s++){var a=r[s];if(lr(a)&&os(a),a.wv>e.wv)return!0}(t&Fe)!==0&&Pe===null&&he(e,ve)}return!1}function Ns(e,t,r=!0){var n=e.reactions;if(n!==null&&!Qe?.includes(e))for(var s=0;s<n.length;s++){var a=n[s];(a.f&ce)!==0?Ns(a,t,!1):t===a&&(r?he(a,ke):(a.f&ve)!==0&&he(a,et),xt(a))}}function Ts(e){var t=me,r=Ee,n=Te,s=P,a=Qe,i=X,l=Ve,o=bt,u=e.f;me=null,Ee=0,Te=null,P=(u&(Ze|ut))===0?e:null,Qe=null,Lt(e.ctx),Ve=!1,bt=++Zt,e.ac!==null&&(Mr(()=>{e.ac.abort(Ct)}),e.ac=null);try{e.f|=Rr;var c=e.fn,v=c(),d=e.deps;if(me!==null){var h;if(br(e,Ee),d!==null&&Ee>0)for(d.length=Ee+me.length,h=0;h<me.length;h++)d[Ee+h]=me[h];else e.deps=d=me;if(ot&&Xt()&&(e.f&Fe)!==0)for(h=Ee;h<d.length;h++)(d[h].reactions??=[]).push(e)}else d!==null&&Ee<d.length&&(br(e,Ee),d.length=Ee);if(nr()&&Te!==null&&!Ve&&d!==null&&(e.f&(ce|et|ke))===0)for(h=0;h<Te.length;h++)Ns(Te[h],e);return s!==null&&s!==e&&(Zt++,Te!==null&&(n===null?n=Te:n.push(...Te))),(e.f&it)!==0&&(e.f^=it),v}catch(y){return rs(y)}finally{e.f^=Rr,me=t,Ee=r,Te=n,P=s,Qe=a,Lt(i),Ve=l,bt=o}}function xi(e,t){let r=t.reactions;if(r!==null){var n=va.call(r,e);if(n!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[n]=r[s],r.pop())}}r===null&&(t.f&ce)!==0&&(me===null||!me.includes(t))&&(he(t,et),(t.f&Fe)!==0&&(t.f^=Fe,t.f&=~yt),ls(t),br(t,0))}function br(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)xi(e,r[n])}function er(e){var t=e.f;if((t&Ye)===0){he(e,ve);var r=z,n=ot;z=e,ot=!0;try{(t&(Xe|Kn))!==0?bi(e):bs(e),ms(e);var s=Ts(e);e.teardown=typeof s=="function"?s:null,e.wv=As;var a;Or&&Ua&&(e.f&ke)!==0&&e.deps}finally{ot=n,z=r}}}async function wi(){await Promise.resolve(),Ga()}function f(e){var t=e.f,r=(t&ce)!==0;if(P!==null&&!Ve){var n=z!==null&&(z.f&Ye)!==0;if(!n&&!Qe?.includes(e)){var s=P.deps;if((P.f&Rr)!==0)e.rv<Zt&&(e.rv=Zt,me===null&&s!==null&&s[Ee]===e?Ee++:me===null?me=[e]:me.includes(e)||me.push(e));else{(P.deps??=[]).push(e);var a=e.reactions;a===null?e.reactions=[P]:a.includes(P)||a.push(P)}}}if(Mt){if(lt.has(e))return lt.get(e);if(r){var i=e,l=i.v;return((i.f&ve)===0&&i.reactions!==null||Ps(i))&&(l=rn(i)),lt.set(i,l),l}}else r&&(!Pe?.has(e)||R?.is_fork&&!Xt())&&(i=e,lr(i)&&os(i),ot&&Xt()&&(i.f&Fe)===0&&$s(i));if(Pe?.has(e))return Pe.get(e);if((e.f&it)!==0)throw e.v;return e.v}function $s(e){if(e.deps!==null){e.f^=Fe;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&ce)!==0&&(t.f&Fe)===0&&$s(t)}}function Ps(e){if(e.v===ue)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(lt.has(t)||(t.f&ce)!==0&&Ps(t))return!0;return!1}function ft(e){var t=Ve;try{return Ve=!0,e()}finally{Ve=t}}const ki=-7169;function he(e,t){e.f=e.f&ki|t}function Ei(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(qe in e)Vr(e);else if(!Array.isArray(e))for(let t in e){const r=e[t];typeof r=="object"&&r&&qe in r&&Vr(r)}}}function Vr(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Vr(e[n],t)}catch{}const r=Qr(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const n=Hn(r);for(let s in n){const a=n[s].get;if(a)try{a.call(e)}catch{}}}}}function Si(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const Ai=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Mi(e){return Ai.includes(e)}const Ni={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Ti(e){return e=e.toLowerCase(),Ni[e]??e}const $i=["touchstart","touchmove"];function Pi(e){return $i.includes(e)}const Cs=new Set,qr=new Set;function zs(e,t,r,n={}){function s(a){if(n.capture||Gt.call(t,a),!a.cancelBubble)return Mr(()=>r?.call(this,a))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?St(()=>{t.addEventListener(e,s,n)}):t.addEventListener(e,s,n),s}function Ft(e,t,r,n={}){var s=zs(t,e,r,n);return()=>{e.removeEventListener(t,s,n)}}function Dt(e){for(var t=0;t<e.length;t++)Cs.add(e[t]);for(var r of qr)r(e)}let Tn=null;function Gt(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],a=s[0]||e.target;Tn=e;var i=0,l=Tn===e&&e.__root;if(l){var o=s.indexOf(l);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var u=s.indexOf(t);if(u===-1)return;o<=u&&(i=o)}if(a=s[i]||e.target,a!==t){ha(e,"currentTarget",{configurable:!0,get(){return a||r}});var c=P,v=z;we(null),We(null);try{for(var d,h=[];a!==null;){var y=a.assignedSlot||a.parentNode||a.host||null;try{var E=a["__"+n];E!=null&&(!a.disabled||e.target===a)&&E.call(a,e)}catch(g){d?h.push(g):d=g}if(e.cancelBubble||y===t||y===null)break;a=y}if(d){for(let g of h)queueMicrotask(()=>{throw g});throw d}}finally{e.__root=t,delete e.currentTarget,we(c),We(v)}}}function fn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Rt(e,t){var r=z;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function N(e,t){var r=(t&Ra)!==0,n=(t&ja)!==0,s,a=!e.startsWith("<!>");return()=>{s===void 0&&(s=fn(a?e:"<!>"+e),r||(s=De(s)));var i=n||cs?document.importNode(s,!0):s.cloneNode(!0);if(r){var l=De(i),o=i.lastChild;Rt(l,o)}else Rt(i,i);return i}}function Ci(e,t,r="svg"){var n=!e.startsWith("<!>"),s=`<${r}>${n?e:"<!>"+e}</${r}>`,a;return()=>{if(!a){var i=fn(s),l=De(i);a=De(l)}var o=a.cloneNode(!0);return Rt(o,o),o}}function zi(e,t){return Ci(e,t,"svg")}function F(){var e=document.createDocumentFragment(),t=document.createComment(""),r=Be();return e.append(t,r),Rt(t,r),e}function p(e,t){e!==null&&e.before(t)}function ee(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Li(e,t){return Ii(e,t)}const Pt=new Map;function Ii(e,{target:t,anchor:r,props:n={},events:s,context:a,intro:i=!0}){ci();var l=new Set,o=v=>{for(var d=0;d<v.length;d++){var h=v[d];if(!l.has(h)){l.add(h);var y=Pi(h);t.addEventListener(h,Gt,{passive:y});var E=Pt.get(h);E===void 0?(document.addEventListener(h,Gt,{passive:y}),Pt.set(h,1)):Pt.set(h,E+1)}}};o(Gr(Cs)),qr.add(o);var u=void 0,c=gi(()=>{var v=r??t.appendChild(Be());return Xa(v,{pending:()=>{}},d=>{if(a){L({});var h=X;h.c=a}s&&(n.$$events=s),u=e(d,n)||{},a&&I()}),()=>{for(var d of l){t.removeEventListener(d,Gt);var h=Pt.get(d);--h===0?(document.removeEventListener(d,Gt),Pt.delete(d)):Pt.set(d,h)}qr.delete(o),v!==r&&v.parentNode?.removeChild(v)}});return Oi.set(u,c),u}let Oi=new WeakMap;class Nr{anchor;#t=new Map;#e=new Map;#n=new Map;#r=new Set;#a=!0;constructor(t,r=!0){this.anchor=t,this.#a=r}#s=()=>{var t=R;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)un(n),this.#r.delete(r);else{var s=this.#n.get(r);s&&(this.#e.set(r,s.effect),this.#n.delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),n=s.effect)}for(const[a,i]of this.#t){if(this.#t.delete(a),a===t)break;const l=this.#n.get(i);l&&(le(l.effect),this.#n.delete(i))}for(const[a,i]of this.#e){if(a===r||this.#r.has(a))continue;const l=()=>{if(Array.from(this.#t.values()).includes(a)){var u=document.createDocumentFragment();Es(i,u),u.append(Be()),this.#n.set(a,{effect:i,fragment:u})}else le(i);this.#r.delete(a),this.#e.delete(a)};this.#a||!n?(this.#r.add(a),zt(i,l,!1)):l()}}};#o=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,s]of this.#n)r.includes(n)||(le(s.effect),this.#n.delete(n))};ensure(t,r){var n=R,s=hs();if(r&&!this.#e.has(t)&&!this.#n.has(t))if(s){var a=document.createDocumentFragment(),i=Be();a.append(i),this.#n.set(t,{effect:xe(()=>r(i)),fragment:a})}else this.#e.set(t,xe(()=>r(this.anchor)));if(this.#t.set(n,t),s){for(const[l,o]of this.#e)l===t?n.skipped_effects.delete(o):n.skipped_effects.add(o);for(const[l,o]of this.#n)l===t?n.skipped_effects.delete(o.effect):n.skipped_effects.add(o.effect);n.oncommit(this.#s),n.ondiscard(this.#o)}else this.#s()}}function H(e,t,r=!1){var n=new Nr(e),s=r?Je:0;function a(i,l){n.ensure(i,l)}At(()=>{var i=!1;t((l,o=!0)=>{i=!0,a(o,l)}),i||a(!1,null)},s)}function Fi(e,t,r=!1,n=!1,s=!1){var a=e,i="";fe(()=>{var l=z;if(i!==(i=t()??"")&&(l.nodes_start!==null&&(ys(l.nodes_start,l.nodes_end),l.nodes_start=l.nodes_end=null),i!=="")){var o=i+"";r?o=`<svg>${o}</svg>`:n&&(o=`<math>${o}</math>`);var u=fn(o);if((r||n)&&(u=De(u)),Rt(De(u),u.lastChild),r||n)for(;De(u);)a.before(De(u));else a.before(u)}})}function K(e,t,...r){var n=new Nr(e);At(()=>{const s=t()??null;n.ensure(s,s&&(a=>s(a,...r)))},Je)}function Ri(e,t,r){var n=new Nr(e);At(()=>{var s=t()??null;n.ensure(s,s&&(a=>r(a,s)))},Je)}function ji(e,t,r,n,s,a){var i=null,l=e,o=new Nr(l,!1);At(()=>{const u=t()||null;var c=Va;if(u===null){o.ensure(null,null);return}return o.ensure(u,v=>{if(u){if(i=document.createElementNS(c,u),Rt(i,i),n){var d=i.appendChild(Be());n(i,d)}z.nodes_end=i,v.before(i)}}),()=>{}},Je),nn(()=>{})}function Di(e,t){var r;r=document.head.appendChild(Be());try{At(()=>t(r),Zr)}finally{}}function Vi(e,t){var r=void 0,n;gs(()=>{r!==(r=t())&&(n&&(le(n),n=null),r&&(n=xe(()=>{an(()=>r(e))})))})}function Ls(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=Ls(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function qi(){for(var e,t,r=0,n="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=Ls(e))&&(n&&(n+=" "),n+=t);return n}function Bi(e){return typeof e=="object"?qi(e):e??""}const $n=[...`
2
+ \r\f \v\uFEFF`];function Wi(e,t,r){var n=e==null?"":""+e;if(r){for(var s in r)if(r[s])n=n?n+" "+s:s;else if(n.length)for(var a=s.length,i=0;(i=n.indexOf(s,i))>=0;){var l=i+a;(i===0||$n.includes(n[i-1]))&&(l===n.length||$n.includes(n[l]))?n=(i===0?"":n.substring(0,i))+n.substring(l+1):i=l}}return n===""?null:n}function Pn(e,t=!1){var r=t?" !important;":";",n="";for(var s in e){var a=e[s];a!=null&&a!==""&&(n+=" "+s+": "+a+r)}return n}function Cr(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function Hi(e,t){if(t){var r="",n,s;if(Array.isArray(t)?(n=t[0],s=t[1]):n=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,i=0,l=!1,o=[];n&&o.push(...Object.keys(n).map(Cr)),s&&o.push(...Object.keys(s).map(Cr));var u=0,c=-1;const E=e.length;for(var v=0;v<E;v++){var d=e[v];if(l?d==="/"&&e[v-1]==="*"&&(l=!1):a?a===d&&(a=!1):d==="/"&&e[v+1]==="*"?l=!0:d==='"'||d==="'"?a=d:d==="("?i++:d===")"&&i--,!l&&a===!1&&i===0){if(d===":"&&c===-1)c=v;else if(d===";"||v===E-1){if(c!==-1){var h=Cr(e.substring(u,c).trim());if(!o.includes(h)){d!==";"&&v++;var y=e.substring(u,v).trim();r+=" "+y+";"}}u=v+1,c=-1}}}}return n&&(r+=Pn(n)),s&&(r+=Pn(s,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function Ke(e,t,r,n,s,a){var i=e.__className;if(i!==r||i===void 0){var l=Wi(r,n,a);l==null?e.removeAttribute("class"):t?e.className=l:e.setAttribute("class",l),e.__className=r}else if(a&&s!==a)for(var o in a){var u=!!a[o];(s==null||u!==!!s[o])&&e.classList.toggle(o,u)}return a}function zr(e,t={},r,n){for(var s in r){var a=r[s];t[s]!==a&&(r[s]==null?e.style.removeProperty(s):e.style.setProperty(s,a,n))}}function Is(e,t,r,n){var s=e.__style;if(s!==t){var a=Hi(t,n);a==null?e.removeAttribute("style"):e.style.cssText=a,e.__style=t}else n&&(Array.isArray(n)?(zr(e,r?.[0],n[0]),zr(e,r?.[1],n[1],"important")):zr(e,r,n));return n}function Br(e,t,r=!1){if(e.multiple){if(t==null)return;if(!Yr(t))return Ba();for(var n of e.options)n.selected=t.includes(Cn(n));return}for(n of e.options){var s=Cn(n);if(fi(s,t)){n.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function Ui(e){var t=new MutationObserver(()=>{Br(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),nn(()=>{t.disconnect()})}function Cn(e){return"__value"in e?e.__value:e.value}const Ut=Symbol("class"),Kt=Symbol("style"),Os=Symbol("is custom element"),Fs=Symbol("is html");function Ki(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function tr(e,t,r,n){var s=Rs(e);s[t]!==(s[t]=r)&&(t==="loading"&&(e[ba]=r),r==null?e.removeAttribute(t):typeof r!="string"&&js(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Yi(e,t,r,n,s=!1,a=!1){var i=Rs(e),l=i[Os],o=!i[Fs],u=t||{},c=e.tagName==="OPTION";for(var v in t)v in r||(r[v]=null);r.class?r.class=Bi(r.class):r[Ut]&&(r.class=null),r[Kt]&&(r.style??=null);var d=js(e);for(const b in r){let M=r[b];if(c&&b==="value"&&M==null){e.value=e.__value="",u[b]=M;continue}if(b==="class"){var h=e.namespaceURI==="http://www.w3.org/1999/xhtml";Ke(e,h,M,n,t?.[Ut],r[Ut]),u[b]=M,u[Ut]=r[Ut];continue}if(b==="style"){Is(e,M,t?.[Kt],r[Kt]),u[b]=M,u[Kt]=r[Kt];continue}var y=u[b];if(!(M===y&&!(M===void 0&&e.hasAttribute(b)))){u[b]=M;var E=b[0]+b[1];if(E!=="$$")if(E==="on"){const D={},O="$$"+b;let A=b.slice(2);var g=Mi(A);if(Si(A)&&(A=A.slice(0,-7),D.capture=!0),!g&&y){if(M!=null)continue;e.removeEventListener(A,u[O],D),u[O]=null}if(M!=null)if(g)e[`__${A}`]=M,Dt([A]);else{let V=function(re){u[b].call(this,re)};var x=V;u[O]=zs(A,e,V,D)}else g&&(e[`__${A}`]=void 0)}else if(b==="style")tr(e,b,M);else if(b==="autofocus")vi(e,!!M);else if(!l&&(b==="__value"||b==="value"&&M!=null))e.value=e.__value=M;else if(b==="selected"&&c)Ki(e,M);else{var m=b;o||(m=Ti(m));var W=m==="defaultValue"||m==="defaultChecked";if(M==null&&!l&&!W)if(i[b]=null,m==="value"||m==="checked"){let D=e;const O=t===void 0;if(m==="value"){let A=D.defaultValue;D.removeAttribute(m),D.defaultValue=A,D.value=D.__value=O?A:null}else{let A=D.defaultChecked;D.removeAttribute(m),D.defaultChecked=A,D.checked=O?A:!1}}else e.removeAttribute(b);else W||d.includes(m)&&(l||typeof M!="string")?(e[m]=M,m in i&&(i[m]=ue)):typeof M!="function"&&tr(e,m,M)}}}return u}function zn(e,t,r=[],n=[],s=[],a,i=!1,l=!1){is(s,r,n,o=>{var u=void 0,c={},v=e.nodeName==="SELECT",d=!1;if(gs(()=>{var y=t(...o.map(f)),E=Yi(e,u,y,a,i,l);d&&v&&"value"in y&&Br(e,y.value);for(let m of Object.getOwnPropertySymbols(c))y[m]||le(c[m]);for(let m of Object.getOwnPropertySymbols(y)){var g=y[m];m.description===qa&&(!u||g!==u[m])&&(c[m]&&le(c[m]),c[m]=xe(()=>Vi(e,()=>g))),E[m]=g}u=E}),v){var h=e;an(()=>{Br(h,u.value,!0),Ui(h)})}d=!0})}function Rs(e){return e.__attributes??={[Os]:e.nodeName.includes("-"),[Fs]:e.namespaceURI===Da}}var Ln=new Map;function js(e){var t=e.getAttribute("is")||e.nodeName,r=Ln.get(t);if(r)return r;Ln.set(t,r=[]);for(var n,s=e,a=Element.prototype;a!==s;){n=Hn(s);for(var i in n)n[i].set&&r.push(i);s=Qr(s)}return r}function Ds(e,t,r=t){var n=new WeakSet;_i(e,"input",async s=>{var a=s?e.defaultValue:e.value;if(a=Lr(e)?Ir(a):a,r(a),R!==null&&n.add(R),await wi(),a!==(a=t())){var i=e.selectionStart,l=e.selectionEnd,o=e.value.length;if(e.value=a??"",l!==null){var u=e.value.length;i===l&&l===o&&u>o?(e.selectionStart=u,e.selectionEnd=u):(e.selectionStart=i,e.selectionEnd=Math.min(l,u))}}}),ft(t)==null&&e.value&&(r(Lr(e)?Ir(e.value):e.value),R!==null&&n.add(R)),ln(()=>{var s=t();if(e===document.activeElement){var a=hr??R;if(n.has(a))return}Lr(e)&&s===Ir(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function Lr(e){var t=e.type;return t==="number"||t==="range"}function Ir(e){return e===""?null:+e}function In(e,t){return e===t||e?.[qe]===t}function Gi(e={},t,r,n){return an(()=>{var s,a;return ln(()=>{s=a,a=[],ft(()=>{e!==r(...a)&&(t(e,...a),s&&In(r(...s),e)&&t(null,...s))})}),()=>{St(()=>{a&&In(r(...a),e)&&t(null,...a)})}}),e}function Qi(e=!1){const t=X,r=t.l.u;if(!r)return;let n=()=>Ei(t.s);if(e){let s=0,a={};const i=ar(()=>{let l=!1;const o=t.s;for(const u in o)o[u]!==a[u]&&(a[u]=o[u],l=!0);return l&&s++,s});n=()=>f(i)}r.b.length&&Ie(()=>{On(t,n),Fr(r.b)}),kt(()=>{const s=ft(()=>r.m.map(ga));return()=>{for(const a of s)typeof a=="function"&&a()}}),r.a.length&&kt(()=>{On(t,n),Fr(r.a)})}function On(e,t){if(e.l.s)for(const r of e.l.s)f(r);t()}let vr=!1;function Ji(e){var t=vr;try{return vr=!1,[e(),vr]}finally{vr=t}}const Xi={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function Y(e,t,r){return new Proxy({props:e,exclude:t},Xi)}const Zi={get(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(Ht(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n)return n[t]}},set(e,t,r){let n=e.props.length;for(;n--;){let s=e.props[n];Ht(s)&&(s=s());const a=at(s,t);if(a&&a.set)return a.set(r),!0}return!1},getOwnPropertyDescriptor(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(Ht(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n){const s=at(n,t);return s&&!s.configurable&&(s.configurable=!0),s}}},has(e,t){if(t===qe||t===Gn)return!1;for(let r of e.props)if(Ht(r)&&(r=r()),r!=null&&t in r)return!0;return!1},ownKeys(e){const t=[];for(let r of e.props)if(Ht(r)&&(r=r()),!!r){for(const n in r)t.includes(n)||t.push(n);for(const n of Object.getOwnPropertySymbols(r))t.includes(n)||t.push(n)}return t}};function G(...e){return new Proxy({props:e},Zi)}function ae(e,t,r,n){var s=!jt||(r&La)!==0,a=(r&Oa)!==0,i=(r&Fa)!==0,l=n,o=!0,u=()=>(o&&(o=!1,l=i?ft(n):n),l),c;if(a){var v=qe in e||Gn in e;c=at(e,t)?.set??(v&&t in e?x=>e[t]=x:void 0)}var d,h=!1;a?[d,h]=Ji(()=>e[t]):d=e[t],d===void 0&&n!==void 0&&(d=u(),c&&(s&&Aa(),c(d)));var y;if(s?y=()=>{var x=e[t];return x===void 0?u():(o=!0,x)}:y=()=>{var x=e[t];return x!==void 0&&(l=void 0),x===void 0?l:x},s&&(r&Ia)===0)return y;if(c){var E=e.$$legacy;return(function(x,b){return arguments.length>0?((!s||!b||E||h)&&c(b?y():x),x):y()})}var g=!1,m=((r&za)!==0?ar:tn)(()=>(g=!1,y()));a&&f(m);var W=z;return(function(x,b){if(arguments.length>0){const M=b?f(m):s&&a?Ce(x):x;return S(m,M),g=!0,l!==void 0&&(l=M),x}return Mt&&g||(W.f&Ye)!==0?m.v:f(m)})}function Vs(e){X===null&&ya(),jt&&X.l!==null?el(X).m.push(e):kt(()=>{const t=ft(e);if(typeof t=="function")return t})}function el(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}const tl="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(tl);const rl={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};var nl=zi("<svg><!><!></svg>");function Q(e,t){L(t,!0);const r=ae(t,"color",3,"currentColor"),n=ae(t,"size",3,24),s=ae(t,"strokeWidth",3,2),a=ae(t,"absoluteStrokeWidth",3,!1),i=ae(t,"iconNode",19,()=>[]),l=Y(t,["$$slots","$$events","$$legacy","name","color","size","strokeWidth","absoluteStrokeWidth","iconNode","children"]);var o=nl();zn(o,v=>({...rl,...l,width:n(),height:n(),stroke:r(),"stroke-width":v,class:["lucide-icon lucide",t.name&&`lucide-${t.name}`,t.class]}),[()=>a()?Number(s())*24/Number(n()):s()]);var u=_(o);Ar(u,17,i,ei,(v,d)=>{var h=Ge(()=>ma(f(d),2));let y=()=>f(h)[0],E=()=>f(h)[1];var g=F(),m=T(g);ji(m,y,!0,(W,x)=>{zn(W,()=>({...E()}))}),p(v,g)});var c=k(u);K(c,()=>t.children??U),p(e,o),I()}function sl(e,t){L(t,!0);let r=Y(t,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M20 6 9 17l-5-5"}]];Q(e,G({name:"check"},()=>r,{get iconNode(){return n},children:(s,a)=>{var i=F(),l=T(i);K(l,()=>t.children??U),p(s,i)},$$slots:{default:!0}})),I()}function Fn(e,t){L(t,!0);let r=Y(t,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"10"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16"}]];Q(e,G({name:"circle-alert"},()=>r,{get iconNode(){return n},children:(s,a)=>{var i=F(),l=T(i);K(l,()=>t.children??U),p(s,i)},$$slots:{default:!0}})),I()}function Rn(e,t){L(t,!0);let r=Y(t,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m9 12 2 2 4-4"}]];Q(e,G({name:"circle-check"},()=>r,{get iconNode(){return n},children:(s,a)=>{var i=F(),l=T(i);K(l,()=>t.children??U),p(s,i)},$$slots:{default:!0}})),I()}function jn(e,t){L(t,!0);let r=Y(t,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7"}]];Q(e,G({name:"circle-dashed"},()=>r,{get iconNode(){return n},children:(s,a)=>{var i=F(),l=T(i);K(l,()=>t.children??U),p(s,i)},$$slots:{default:!0}})),I()}function qs(e,t){L(t,!0);let r=Y(t,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M10 9H8"}],["path",{d:"M16 13H8"}],["path",{d:"M16 17H8"}]];Q(e,G({name:"file-text"},()=>r,{get iconNode(){return n},children:(s,a)=>{var i=F(),l=T(i);K(l,()=>t.children??U),p(s,i)},$$slots:{default:!0}})),I()}function al(e,t){L(t,!0);let r=Y(t,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528"}],["path",{d:"m2 2 20 20"}],["path",{d:"M4 22V4"}],["path",{d:"M7.656 2H8c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10.347"}]];Q(e,G({name:"flag-off"},()=>r,{get iconNode(){return n},children:(s,a)=>{var i=F(),l=T(i);K(l,()=>t.children??U),p(s,i)},$$slots:{default:!0}})),I()}function il(e,t){L(t,!0);let r=Y(t,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528"}]];Q(e,G({name:"flag"},()=>r,{get iconNode(){return n},children:(s,a)=>{var i=F(),l=T(i);K(l,()=>t.children??U),p(s,i)},$$slots:{default:!0}})),I()}function ll(e,t){L(t,!0);let r=Y(t,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"}]];Q(e,G({name:"folder-open"},()=>r,{get iconNode(){return n},children:(s,a)=>{var i=F(),l=T(i);K(l,()=>t.children??U),p(s,i)},$$slots:{default:!0}})),I()}function ol(e,t){L(t,!0);let r=Y(t,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z"}]];Q(e,G({name:"funnel"},()=>r,{get iconNode(){return n},children:(s,a)=>{var i=F(),l=T(i);K(l,()=>t.children??U),p(s,i)},$$slots:{default:!0}})),I()}function ul(e,t){L(t,!0);let r=Y(t,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"}],["path",{d:"M2 12h20"}]];Q(e,G({name:"globe"},()=>r,{get iconNode(){return n},children:(s,a)=>{var i=F(),l=T(i);K(l,()=>t.children??U),p(s,i)},$$slots:{default:!0}})),I()}function fl(e,t){L(t,!0);let r=Y(t,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 16v-4"}],["path",{d:"M12 8h.01"}]];Q(e,G({name:"info"},()=>r,{get iconNode(){return n},children:(s,a)=>{var i=F(),l=T(i);K(l,()=>t.children??U),p(s,i)},$$slots:{default:!0}})),I()}function cl(e,t){L(t,!0);let r=Y(t,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m5 8 6 6"}],["path",{d:"m4 14 6-6 2-3"}],["path",{d:"M2 5h12"}],["path",{d:"M7 2h1"}],["path",{d:"m22 22-5-10-5 10"}],["path",{d:"M14 18h6"}]];Q(e,G({name:"languages"},()=>r,{get iconNode(){return n},children:(s,a)=>{var i=F(),l=T(i);K(l,()=>t.children??U),p(s,i)},$$slots:{default:!0}})),I()}function _r(e,t){L(t,!0);let r=Y(t,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56"}]];Q(e,G({name:"loader-circle"},()=>r,{get iconNode(){return n},children:(s,a)=>{var i=F(),l=T(i);K(l,()=>t.children??U),p(s,i)},$$slots:{default:!0}})),I()}function dl(e,t){L(t,!0);let r=Y(t,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0"}],["circle",{cx:"12",cy:"10",r:"3"}]];Q(e,G({name:"map-pin"},()=>r,{get iconNode(){return n},children:(s,a)=>{var i=F(),l=T(i);K(l,()=>t.children??U),p(s,i)},$$slots:{default:!0}})),I()}function vl(e,t){L(t,!0);let r=Y(t,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z"}],["path",{d:"M7 11h10"}],["path",{d:"M7 15h6"}],["path",{d:"M7 7h8"}]];Q(e,G({name:"message-square-text"},()=>r,{get iconNode(){return n},children:(s,a)=>{var i=F(),l=T(i);K(l,()=>t.children??U),p(s,i)},$$slots:{default:!0}})),I()}function hl(e,t){L(t,!0);let r=Y(t,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"}]];Q(e,G({name:"moon"},()=>r,{get iconNode(){return n},children:(s,a)=>{var i=F(),l=T(i);K(l,()=>t.children??U),p(s,i)},$$slots:{default:!0}})),I()}function _l(e,t){L(t,!0);let r=Y(t,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"}],["path",{d:"m15 5 4 4"}]];Q(e,G({name:"pencil"},()=>r,{get iconNode(){return n},children:(s,a)=>{var i=F(),l=T(i);K(l,()=>t.children??U),p(s,i)},$$slots:{default:!0}})),I()}function pl(e,t){L(t,!0);let r=Y(t,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"}],["path",{d:"M21 3v5h-5"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"}],["path",{d:"M8 16H3v5"}]];Q(e,G({name:"refresh-cw"},()=>r,{get iconNode(){return n},children:(s,a)=>{var i=F(),l=T(i);K(l,()=>t.children??U),p(s,i)},$$slots:{default:!0}})),I()}function gl(e,t){L(t,!0);let r=Y(t,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m21 21-4.34-4.34"}],["circle",{cx:"11",cy:"11",r:"8"}]];Q(e,G({name:"search"},()=>r,{get iconNode(){return n},children:(s,a)=>{var i=F(),l=T(i);K(l,()=>t.children??U),p(s,i)},$$slots:{default:!0}})),I()}function ml(e,t){L(t,!0);let r=Y(t,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"4"}],["path",{d:"M12 2v2"}],["path",{d:"M12 20v2"}],["path",{d:"m4.93 4.93 1.41 1.41"}],["path",{d:"m17.66 17.66 1.41 1.41"}],["path",{d:"M2 12h2"}],["path",{d:"M20 12h2"}],["path",{d:"m6.34 17.66-1.41 1.41"}],["path",{d:"m19.07 4.93-1.41 1.41"}]];Q(e,G({name:"sun"},()=>r,{get iconNode(){return n},children:(s,a)=>{var i=F(),l=T(i);K(l,()=>t.children??U),p(s,i)},$$slots:{default:!0}})),I()}function Bs(e,t){L(t,!0);let r=Y(t,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}],["path",{d:"M12 9v4"}],["path",{d:"M12 17h.01"}]];Q(e,G({name:"triangle-alert"},()=>r,{get iconNode(){return n},children:(s,a)=>{var i=F(),l=T(i);K(l,()=>t.children??U),p(s,i)},$$slots:{default:!0}})),I()}function Ws(e,t){L(t,!0);let r=Y(t,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]];Q(e,G({name:"x"},()=>r,{get iconNode(){return n},children:(s,a)=>{var i=F(),l=T(i);K(l,()=>t.children??U),p(s,i)},$$slots:{default:!0}})),I()}const Hs=typeof window<"u"?window:void 0;function bl(e){let t=e.activeElement;for(;t?.shadowRoot;){const r=t.shadowRoot.activeElement;if(r===t)break;t=r}return t}class yl{#t;#e;constructor(t,r){this.#t=t,this.#e=sr(r)}get current(){return this.#e(),this.#t()}}const xl=/\(.+\)/,wl=new Set(["all","print","screen","and","or","not","only"]);class kl extends yl{constructor(t,r){let n=xl.test(t)||t.split(/[\s,]+/).some(a=>wl.has(a.trim()))?t:`(${t})`;const s=window.matchMedia(n);super(()=>s.matches,a=>Ft(s,"change",a))}}let El=class{#t;#e;constructor(t={}){const{window:r=Hs,document:n=r?.document}=t;r!==void 0&&(this.#t=n,this.#e=sr(s=>{const a=Ft(r,"focusin",s),i=Ft(r,"focusout",s);return()=>{a(),i()}}))}get current(){return this.#e?.(),this.#t?bl(this.#t):null}};new El;function Sl(e,t){switch(e){case"post":kt(t);break;case"pre":Ie(t);break}}function Us(e,t,r,n={}){const{lazy:s=!1}=n;let a=!s,i=Array.isArray(e)?[]:void 0;Sl(t,()=>{const l=Array.isArray(e)?e.map(u=>u()):e();if(!a){a=!0,i=l;return}const o=ft(()=>r(l,i));return i=l,o})}function cn(e,t,r){Us(e,"post",t,r)}function Al(e,t,r){Us(e,"pre",t,r)}cn.pre=Al;function Ml(e,t){switch(e){case"local":return t.localStorage;case"session":return t.sessionStorage}}class Ks{#t;#e;#n;#r;#a;#s=j(0);constructor(t,r,n={}){const{storage:s="local",serializer:a={serialize:JSON.stringify,deserialize:JSON.parse},syncTabs:i=!0,window:l=Hs}=n;if(this.#t=r,this.#e=t,this.#n=a,l===void 0)return;const o=Ml(s,l);this.#r=o;const u=o.getItem(t);u!==null?this.#t=this.#i(u):this.#l(r),i&&s==="local"&&(this.#a=sr(()=>Ft(l,"storage",this.#o)))}get current(){this.#a?.(),f(this.#s);const t=this.#i(this.#r?.getItem(this.#e))??this.#t,r=new WeakMap,n=s=>{if(s===null||s?.constructor.name==="Date"||typeof s!="object")return s;let a=r.get(s);return a||(a=new Proxy(s,{get:(i,l)=>(f(this.#s),n(Reflect.get(i,l))),set:(i,l,o)=>(S(this.#s,f(this.#s)+1),Reflect.set(i,l,o),this.#l(t),!0)}),r.set(s,a)),a};return n(t)}set current(t){this.#l(t),S(this.#s,f(this.#s)+1)}#o=t=>{t.key!==this.#e||t.newValue===null||(this.#t=this.#i(t.newValue),S(this.#s,f(this.#s)+1))};#i(t){try{return this.#n.deserialize(t)}catch(r){console.error(`Error when parsing "${t}" from persisted store "${this.#e}"`,r);return}}#l(t){try{t!=null&&this.#r?.setItem(this.#e,this.#n.serialize(t))}catch(r){console.error(`Error when writing value from persisted store "${this.#e}" to ${this.#r}`,r)}}}function Dn(e){return e.filter(t=>t.length>0)}const Ys={getItem:e=>null,setItem:(e,t)=>{}},or=typeof document<"u";function Nl(e){return typeof e=="function"}function Tl(e){return e!==null&&typeof e=="object"}const rr=Symbol("box"),dn=Symbol("is-writable");function $l(e){return Tl(e)&&rr in e}function Pl(e){return te.isBox(e)&&dn in e}function te(e){let t=j(Ce(e));return{[rr]:!0,[dn]:!0,get current(){return f(t)},set current(r){S(t,r,!0)}}}function Cl(e,t){const r=Ge(e);return t?{[rr]:!0,[dn]:!0,get current(){return f(r)},set current(n){t(n)}}:{[rr]:!0,get current(){return e()}}}function zl(e){return te.isBox(e)?e:Nl(e)?te.with(e):te(e)}function Ll(e){return Object.entries(e).reduce((t,[r,n])=>te.isBox(n)?(te.isWritableBox(n)?Object.defineProperty(t,r,{get(){return n.current},set(s){n.current=s}}):Object.defineProperty(t,r,{get(){return n.current}}),t):Object.assign(t,{[r]:n}),{})}function Il(e){return te.isWritableBox(e)?{[rr]:!0,get current(){return e.current}}:e}te.from=zl;te.with=Cl;te.flatten=Ll;te.readonly=Il;te.isBox=$l;te.isWritableBox=Pl;function Ol(e,t){const r=RegExp(e,"g");return n=>{if(typeof n!="string")throw new TypeError(`expected an argument of type string, but got ${typeof n}`);return n.match(r)?n.replace(r,t):n}}const Fl=Ol(/[A-Z]/,e=>`-${e.toLowerCase()}`);function Rl(e){if(!e||typeof e!="object"||Array.isArray(e))throw new TypeError(`expected an argument of type object, but got ${typeof e}`);return Object.keys(e).map(t=>`${Fl(t)}: ${e[t]};`).join(`
3
+ `)}function jl(e={}){return Rl(e).replace(`
4
+ `," ")}const Dl={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"};jl(Dl);const Vl=typeof window<"u"?window:void 0;function ql(e){let t=e.activeElement;for(;t?.shadowRoot;){const r=t.shadowRoot.activeElement;if(r===t)break;t=r}return t}class Bl{#t;#e;constructor(t={}){const{window:r=Vl,document:n=r?.document}=t;r!==void 0&&(this.#t=n,this.#e=sr(s=>{const a=Ft(r,"focusin",s),i=Ft(r,"focusout",s);return()=>{a(),i()}}))}get current(){return this.#e?.(),this.#t?ql(this.#t):null}}new Bl;const gt=te("mode-watcher-mode"),mt=te("mode-watcher-theme"),Wl=["dark","light","system"];function Wr(e){return typeof e!="string"?!1:Wl.includes(e)}class Hl{#t="system";#e=or?localStorage:Ys;#n=this.#e.getItem(gt.current);#r=Wr(this.#n)?this.#n:this.#t;#a=j(Ce(this.#s()));#s(t=this.#r){return new Ks(gt.current,t,{serializer:{serialize:r=>r,deserialize:r=>Wr(r)?r:this.#t}})}constructor(){sn(()=>cn.pre(()=>gt.current,(t,r)=>{const n=f(this.#a).current;S(this.#a,this.#s(n),!0),r&&localStorage.removeItem(r)}))}get current(){return f(this.#a).current}set current(t){f(this.#a).current=t}}class Ul{#t=void 0;#e=!0;#n=j(Ce(this.#t));#r=typeof window<"u"&&typeof window.matchMedia=="function"?new kl("prefers-color-scheme: light"):{current:!1};query(){or&&S(this.#n,this.#r.current?"light":"dark",!0)}tracking(t){this.#e=t}constructor(){sn(()=>{Ie(()=>{this.#e&&this.query()})}),this.query=this.query.bind(this),this.tracking=this.tracking.bind(this)}get current(){return f(this.#n)}}const yr=new Hl,Hr=new Ul;class Kl{#t=or?localStorage:Ys;#e=this.#t.getItem(mt.current);#n=this.#e===null||this.#e===void 0?"":this.#e;#r=j(Ce(this.#a()));#a(t=this.#n){return new Ks(mt.current,t,{serializer:{serialize:r=>typeof r!="string"?"":r,deserialize:r=>r}})}constructor(){sn(()=>cn.pre(()=>mt.current,(t,r)=>{const n=f(this.#r).current;S(this.#r,this.#a(n),!0),r&&localStorage.removeItem(r)}))}get current(){return f(this.#r).current}set current(t){f(this.#r).current=t}}const pr=new Kl;let Vn,qn,Bn=!1,Yt=null;function Yl(){return Yt||(Yt=document.createElement("style"),Yt.appendChild(document.createTextNode(`* {
5
+ -webkit-transition: none !important;
6
+ -moz-transition: none !important;
7
+ -o-transition: none !important;
8
+ -ms-transition: none !important;
9
+ transition: none !important;
10
+ }`)),Yt)}function Gs(e,t=!1){if(typeof document>"u")return;if(!Bn){Bn=!0,e();return}if(typeof window<"u"&&window.__vitest_worker__){e();return}clearTimeout(Vn),clearTimeout(qn);const n=Yl(),s=()=>document.head.appendChild(n),a=()=>{n.parentNode&&document.head.removeChild(n)};function i(){e(),window.requestAnimationFrame(a)}if(typeof window.requestAnimationFrame<"u"){s(),t?i():window.requestAnimationFrame(()=>{i()});return}s(),Vn=window.setTimeout(()=>{e(),qn=window.setTimeout(a,16)},16)}const st=te(void 0),xr=te(!0),wr=te(!1),Ur=te([]),Kr=te([]);function Gl(){const e=Ge(()=>{if(!or)return;const t=yr.current==="system"?Hr.current:yr.current,r=Dn(Ur.current),n=Dn(Kr.current);function s(){const a=document.documentElement,i=document.querySelector('meta[name="theme-color"]');t==="light"?(r.length&&a.classList.remove(...r),n.length&&a.classList.add(...n),a.style.colorScheme="light",i&&st.current&&i.setAttribute("content",st.current.light)):(n.length&&a.classList.remove(...n),r.length&&a.classList.add(...r),a.style.colorScheme="dark",i&&st.current&&i.setAttribute("content",st.current.dark))}return xr.current?Gs(s,wr.current):s(),t});return{get current(){return f(e)}}}function Ql(){const e=Ge(()=>{if(pr.current,!or)return;function t(){document.documentElement.setAttribute("data-theme",pr.current)}return xr.current?Gs(t,ft(()=>wr.current)):t(),pr.current});return{get current(){return f(e)}}}const vn=Gl(),Jl=Ql();function Xl(){yr.current=vn.current==="dark"?"light":"dark"}function Zl(e){yr.current=e}function eo(e){pr.current=e}function to({defaultMode:e="system",themeColors:t,darkClassNames:r=["dark"],lightClassNames:n=[],defaultTheme:s="",modeStorageKey:a="mode-watcher-mode",themeStorageKey:i="mode-watcher-theme"}){const l=document.documentElement,o=localStorage.getItem(a)??e,u=localStorage.getItem(i)??s,c=o==="light"||o==="system"&&window.matchMedia("(prefers-color-scheme: light)").matches;if(c?(r.length&&l.classList.remove(...r.filter(Boolean)),n.length&&l.classList.add(...n.filter(Boolean))):(n.length&&l.classList.remove(...n.filter(Boolean)),r.length&&l.classList.add(...r.filter(Boolean))),l.style.colorScheme=c?"light":"dark",t){const v=document.querySelector('meta[name="theme-color"]');v&&v.setAttribute("content",o==="light"?t.light:t.dark)}u&&(l.setAttribute("data-theme",u),localStorage.setItem(i,u)),localStorage.setItem(a,o)}var ro=N('<meta name="theme-color"/>');function no(e,t){L(t,!0);var r=F(),n=T(r);{var s=a=>{var i=ro();fe(()=>tr(i,"content",t.themeColors.dark)),p(a,i)};H(n,a=>{t.themeColors&&a(s)})}p(e,r),I()}var so=N('<meta name="theme-color"/>'),ao=N("<!> <!>",1);function io(e,t){L(t,!0);let r=ae(t,"trueNonce",3,"");Di("1funsus",n=>{var s=ao(),a=T(s);{var i=o=>{var u=so();fe(()=>tr(u,"content",t.themeColors.dark)),p(o,u)};H(a,o=>{t.themeColors&&o(i)})}var l=k(a,2);Fi(l,()=>`<script${r()?` nonce=${r()}`:""}>(`+to.toString()+")("+JSON.stringify(t.initConfig)+");<\/script>"),p(n,s)}),I()}function lo(e,t){L(t,!0);let r=ae(t,"track",3,!0),n=ae(t,"defaultMode",3,"system"),s=ae(t,"disableTransitions",3,!0),a=ae(t,"darkClassNames",19,()=>["dark"]),i=ae(t,"lightClassNames",19,()=>[]),l=ae(t,"defaultTheme",3,""),o=ae(t,"nonce",3,""),u=ae(t,"themeStorageKey",3,"mode-watcher-theme"),c=ae(t,"modeStorageKey",3,"mode-watcher-mode"),v=ae(t,"disableHeadScriptInjection",3,!1),d=ae(t,"synchronousModeChanges",3,!1);gt.current=c(),mt.current=u(),Ur.current=a(),Kr.current=i(),xr.current=s(),st.current=t.themeColors,wr.current=d(),Ie(()=>{wr.current=d()}),Ie(()=>{xr.current=s()}),Ie(()=>{st.current=t.themeColors}),Ie(()=>{Ur.current=a()}),Ie(()=>{Kr.current=i()}),Ie(()=>{gt.current=c()}),Ie(()=>{mt.current=u()}),Ie(()=>{vn.current,gt.current,mt.current,Jl.current}),Vs(()=>{Hr.tracking(r()),Hr.query();const x=localStorage.getItem(gt.current);Zl(Wr(x)?x:n());const b=localStorage.getItem(mt.current);eo(b||l())});const h={defaultMode:n(),themeColors:t.themeColors,darkClassNames:a(),lightClassNames:i(),defaultTheme:l(),modeStorageKey:c(),themeStorageKey:u()},y=Ge(()=>typeof window>"u"?o():"");var E=F(),g=T(E);{var m=x=>{no(x,{get themeColors(){return st.current}})},W=x=>{io(x,{get trueNonce(){return f(y)},get initConfig(){return h},get themeColors(){return st.current}})};H(g,x=>{v()?x(m):x(W,!1)})}p(e,E),I()}let Qs=j(0);function oo(){return f(Qs)}function Wn(){ui(Qs)}var uo=N('<div class="flex flex-1 flex-col items-center justify-center gap-2 text-slate-500 dark:text-slate-400"><!> <span class="text-sm">Loading languages...</span></div>'),fo=N('<div class="flex flex-1 flex-col items-center justify-center gap-3 px-4 text-center"><!> <p class="text-sm text-red-600 dark:text-red-400"> </p> <button type="button" class="btn btn-secondary text-sm">Retry</button></div>'),co=N('<div class="flex flex-1 flex-col items-center justify-center gap-2 px-4 text-center text-slate-500 dark:text-slate-400"><!> <p class="text-sm font-medium">No .po files found</p> <p class="text-xs text-slate-400 dark:text-slate-500">Add .po files to your locales directory</p></div>'),vo=N('<li><button type="button"><div class="flex items-start justify-between"><div><span> </span> <span class="text-xs text-slate-500 dark:text-slate-400"> </span></div> <span> </span></div> <div class="mt-2 h-1.5 overflow-hidden rounded-full bg-slate-200 dark:bg-slate-700"><div></div></div> <div class="mt-2 flex gap-3 text-xs text-slate-500 dark:text-slate-400"><span class="flex items-center gap-1"><span class="h-1.5 w-1.5 rounded-full bg-emerald-500"></span> </span> <span class="flex items-center gap-1"><span class="h-1.5 w-1.5 rounded-full bg-amber-500"></span> </span> <span class="flex items-center gap-1"><span class="h-1.5 w-1.5 rounded-full bg-red-500"></span> </span></div></button></li>'),ho=N('<ul class="flex-1 overflow-y-auto p-2"></ul>'),_o=N('<div class="flex h-full flex-col"><div class="flex items-center justify-between border-b border-slate-200 px-4 py-3 dark:border-slate-700"><div class="flex items-center gap-2"><!> <h2 class="text-xs font-semibold uppercase tracking-wide text-slate-500 dark:text-slate-400">Languages</h2></div> <button type="button" class="rounded-md p-1.5 text-slate-400 transition-colors hover:bg-slate-100 hover:text-slate-600 disabled:opacity-50 dark:hover:bg-slate-700 dark:hover:text-slate-300" title="Refresh languages"><!></button></div> <!></div>');function po(e,t){L(t,!0);let r=ae(t,"selected",15,null),n=j(Ce([])),s=j(!0),a=j(null),i=j(!1);Vs(async()=>{await l()}),kt(()=>{oo()>0&&l()});async function l(){if(!f(i)){S(s,f(n).length===0),S(i,!0),S(a,null);try{const b=await(await fetch("./api/languages")).json();if(!b.success)throw new Error(b.error||"Failed to load languages");S(n,b.data||[],!0)}catch(x){S(a,x instanceof Error?x.message:"Failed to load languages",!0)}finally{S(s,!1),S(i,!1)}}}function o(x){return x>=90?"bg-emerald-500":x>=50?"bg-amber-500":"bg-red-500"}function u(x){return x>=90?"text-emerald-600 dark:text-emerald-400":x>=50?"text-amber-600 dark:text-amber-400":"text-red-600 dark:text-red-400"}var c=_o(),v=_(c),d=_(v),h=_(d);cl(h,{class:"h-4 w-4 text-slate-400"});var y=k(d,2);y.__click=l;var E=_(y);{let x=Ge(()=>f(i)?"animate-spin":"");pl(E,{get class(){return`h-4 w-4 ${f(x)??""}`}})}var g=k(v,2);{var m=x=>{var b=uo(),M=_(b);_r(M,{class:"h-6 w-6 animate-spin"}),p(x,b)},W=x=>{var b=F(),M=T(b);{var D=A=>{var V=fo(),re=_(V);Bs(re,{class:"h-8 w-8 text-red-400"});var ie=k(re,2),Z=_(ie),oe=k(ie,2);oe.__click=l,fe(()=>ee(Z,f(a))),p(A,V)},O=A=>{var V=F(),re=T(V);{var ie=oe=>{var be=co(),_e=_(be);ll(_e,{class:"h-8 w-8 text-slate-300 dark:text-slate-600"}),p(oe,be)},Z=oe=>{var be=ho();Ar(be,21,()=>f(n),_e=>_e.code,(_e,ne)=>{var ur=vo(),Vt=_(ur);Vt.__click=()=>r(f(ne).code);var fr=_(Vt),cr=_(fr),qt=_(cr),Tr=_(qt),$r=k(qt,2),w=_($r),C=k(cr,2),ye=_(C),Ae=k(fr,2),tt=_(Ae),rt=k(Ae,2),nt=_(rt),Nt=k(_(nt)),ct=k(nt,2),Bt=k(_(ct)),Re=k(ct,2),dt=k(_(Re));fe((Tt,vt)=>{Ke(Vt,1,`group w-full rounded-lg p-3 text-left transition-colors ${r()===f(ne).code?"bg-blue-50 ring-1 ring-blue-200 dark:bg-blue-900/30 dark:ring-blue-700":"hover:bg-slate-50 dark:hover:bg-slate-700/50"}`),Ke(qt,1,`block font-medium text-slate-900 dark:text-white ${r()===f(ne).code?"text-blue-900 dark:text-blue-300":""}`),ee(Tr,f(ne).name),ee(w,f(ne).code),Ke(C,1,`text-xs font-medium ${Tt??""}`),ee(ye,`${f(ne).progress??""}%`),Ke(tt,1,`h-full transition-all duration-300 ${vt??""}`),Is(tt,`width: ${f(ne).progress??""}%`),ee(Nt,` ${f(ne).translated??""}`),ee(Bt,` ${f(ne).fuzzy??""}`),ee(dt,` ${f(ne).untranslated??""}`)},[()=>u(f(ne).progress),()=>o(f(ne).progress)]),p(_e,ur)}),p(oe,be)};H(re,oe=>{f(n).length===0?oe(ie):oe(Z,!1)},!0)}p(A,V)};H(M,A=>{f(a)?A(D):A(O,!1)},!0)}p(x,b)};H(g,x=>{f(s)?x(m):x(W,!1)})}fe(()=>y.disabled=f(i)),p(e,c),I()}Dt(["click"]);var go=N('<div class="flex flex-1 flex-col items-center justify-center gap-3 text-slate-500 dark:text-slate-400"><!> <span>Loading translations...</span></div>'),mo=N('<div class="flex flex-1 flex-col items-center justify-center gap-4"><!> <p class="text-red-600 dark:text-red-400"> </p> <button type="button" class="btn btn-secondary">Retry</button></div>'),bo=N('<p class="text-sm text-slate-400 dark:text-slate-500">Try adjusting your search or filter</p>'),yo=N('<div class="flex flex-1 flex-col items-center justify-center gap-3 text-slate-500 dark:text-slate-400"><!> <p class="font-medium">No translations found</p> <!></div>'),xo=N('<span class="badge badge-secondary text-xs"> </span>'),wo=N('<div class="mt-1 flex items-center gap-1 text-xs text-slate-400 dark:text-slate-500"><!> </div>'),ko=N('<div class="flex items-start gap-2 text-sm"><!> <div><span class="font-medium text-slate-600 dark:text-slate-300">Translator note:</span> <span class="ml-1 text-slate-700 dark:text-slate-200"> </span></div></div>'),Eo=N('<div><!> <div><span class="font-medium text-slate-600 dark:text-slate-300">Context:</span> <span class="ml-1 text-slate-700 dark:text-slate-200"> </span></div></div>'),So=N('<div class="rounded-lg border border-slate-200 bg-slate-50 p-3 dark:border-slate-600 dark:bg-slate-800/50"><!> <!></div>'),Ao=N('<span class="badge badge-warning">Fuzzy</span>'),Mo=N("<!> <span>Unflag</span>",1),No=N("<!> <span>Mark fuzzy</span>",1),To=N('<button type="button"><!></button>'),$o=N("<!> Saving...",1),Po=N("<!> Save",1),Co=N('<div class="space-y-2"><textarea rows="2" class="input w-full resize-none font-mono text-sm" placeholder="Enter translation..."></textarea> <div class="flex items-center gap-2"><button type="button" class="btn btn-primary"><!></button> <button type="button" class="btn btn-ghost"><!> Cancel</button> <span class="ml-2 text-xs text-slate-400 dark:text-slate-500">Enter to save, Esc to cancel</span></div></div>'),zo=N('<span class="flex-1 text-sm text-slate-800 dark:text-slate-200"> </span>'),Lo=N('<span class="flex-1 text-sm italic text-slate-400 dark:text-slate-500">Click to add translation</span>'),Io=N('<button type="button" class="group/edit flex w-full items-start gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-slate-100 dark:hover:bg-slate-700"><!> <!></button>'),Oo=N('<div><div class="flex gap-4"><div class="shrink-0 pt-0.5"><!></div> <div class="min-w-0 flex-1 space-y-3"><div><div class="mb-1 flex items-center gap-2"><span class="text-xs font-medium uppercase tracking-wide text-slate-400">Source</span> <!></div> <code class="block rounded bg-slate-100 px-3 py-2 text-sm text-slate-800 dark:bg-slate-700 dark:text-slate-200"> </code> <!></div> <!> <div><div class="mb-1 flex items-center gap-2"><span class="text-xs font-medium uppercase tracking-wide text-slate-400">Translation</span> <!> <!></div> <!></div></div></div></div>'),Fo=N('<div class="flex-1 overflow-y-auto"><div class="divide-y divide-slate-100 dark:divide-slate-700"></div></div>'),Ro=N('<div class="flex flex-1 flex-col overflow-hidden"><div class="flex items-center gap-6 border-b border-slate-200 bg-white px-6 py-3 dark:border-slate-700 dark:bg-slate-800"><div class="flex items-center gap-2"><span class="text-2xl font-semibold text-slate-900 dark:text-white"> </span> <span class="text-sm text-slate-500 dark:text-slate-400">Total</span></div> <div class="flex items-center gap-2"><!> <span class="font-medium text-emerald-600 dark:text-emerald-400"> </span> <span class="text-sm text-slate-500 dark:text-slate-400">Translated</span></div> <div class="flex items-center gap-2"><!> <span class="font-medium text-red-600 dark:text-red-400"> </span> <span class="text-sm text-slate-500 dark:text-slate-400">Untranslated</span></div> <div class="flex items-center gap-2"><!> <span class="font-medium text-amber-600 dark:text-amber-400"> </span> <span class="text-sm text-slate-500 dark:text-slate-400">Fuzzy</span></div> <div class="ml-auto text-sm text-slate-500 dark:text-slate-400"> </div></div> <!></div>');function jo(e,t){L(t,!0);let r=j(Ce([])),n=j(!0),s=j(null),a=j(null),i=j(null),l=j(""),o=j(null),u=Ge(()=>{let w=f(r);switch(t.filter){case"translated":w=w.filter(C=>C.msgstr&&!C.fuzzy);break;case"untranslated":w=w.filter(C=>!C.msgstr);break;case"fuzzy":w=w.filter(C=>C.fuzzy);break}if(t.searchQuery){const C=t.searchQuery.toLowerCase();w=w.filter(ye=>ye.msgid.toLowerCase().includes(C)||ye.msgstr.toLowerCase().includes(C))}return w}),c=Ge(()=>({total:f(r).length,translated:f(r).filter(w=>w.msgstr&&!w.fuzzy).length,untranslated:f(r).filter(w=>!w.msgstr).length,fuzzy:f(r).filter(w=>w.fuzzy).length}));kt(()=>{t.language&&v()});async function v(){S(n,!0),S(s,null);try{const C=await(await fetch(`./api/translations/${t.language}`)).json();if(!C.success)throw new Error(C.error||"Failed to load translations");S(r,C.data||[],!0)}catch(w){S(s,w instanceof Error?w.message:"Failed to load translations",!0)}finally{S(n,!1)}}function d(w){S(i,w.msgid,!0),S(l,w.msgstr,!0)}function h(){S(i,null),S(l,"")}async function y(w){if(f(l)===w.msgstr){h();return}S(a,w.msgid,!0);try{const ye=await(await fetch(`./api/translations/${t.language}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({msgid:w.msgid,msgstr:f(l),context:w.context})})).json();if(!ye.success)throw new Error(ye.error||"Failed to save");const Ae=f(r).findIndex(tt=>tt.msgid===w.msgid);Ae!==-1&&(f(r)[Ae]={...f(r)[Ae],msgstr:f(l)}),Wn(),h()}catch(C){alert(C instanceof Error?C.message:"Failed to save")}finally{S(a,null)}}function E(w,C){w.key==="Enter"&&!w.shiftKey&&(w.preventDefault(),y(C)),w.key==="Escape"&&h()}async function g(w){S(o,w.msgid,!0);try{const ye=await(await fetch(`./api/translations/${t.language}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({msgid:w.msgid,msgstr:w.msgstr,context:w.context,fuzzy:!w.fuzzy})})).json();if(!ye.success)throw new Error(ye.error||"Failed to toggle fuzzy status");const Ae=f(r).findIndex(tt=>tt.msgid===w.msgid);Ae!==-1&&(f(r)[Ae]={...f(r)[Ae],fuzzy:!w.fuzzy}),Wn()}catch(C){alert(C instanceof Error?C.message:"Failed to toggle fuzzy status")}finally{S(o,null)}}function m(w){return w.fuzzy?{icon:Fn,class:"text-amber-500"}:w.msgstr?{icon:Rn,class:"text-emerald-500"}:{icon:jn,class:"text-red-400"}}var W=Ro(),x=_(W),b=_(x),M=_(b),D=_(M),O=k(b,2),A=_(O);Rn(A,{class:"h-4 w-4 text-emerald-500"});var V=k(A,2),re=_(V),ie=k(O,2),Z=_(ie);jn(Z,{class:"h-4 w-4 text-red-400"});var oe=k(Z,2),be=_(oe),_e=k(ie,2),ne=_(_e);Fn(ne,{class:"h-4 w-4 text-amber-500"});var ur=k(ne,2),Vt=_(ur),fr=k(_e,2),cr=_(fr),qt=k(x,2);{var Tr=w=>{var C=go(),ye=_(C);_r(ye,{class:"h-8 w-8 animate-spin text-blue-500"}),p(w,C)},$r=w=>{var C=F(),ye=T(C);{var Ae=rt=>{var nt=mo(),Nt=_(nt);Bs(Nt,{class:"h-10 w-10 text-red-400"});var ct=k(Nt,2),Bt=_(ct),Re=k(ct,2);Re.__click=v,fe(()=>ee(Bt,f(s))),p(rt,nt)},tt=rt=>{var nt=F(),Nt=T(nt);{var ct=Re=>{var dt=yo(),Tt=_(dt);qs(Tt,{class:"h-10 w-10 text-slate-300 dark:text-slate-600"});var vt=k(Tt,4);{var $=$t=>{var Wt=bo();p($t,Wt)};H(vt,$t=>{(t.searchQuery||t.filter!=="all")&&$t($)})}p(Re,dt)},Bt=Re=>{var dt=Fo(),Tt=_(dt);Ar(Tt,21,()=>f(u),vt=>vt.msgid,(vt,$)=>{const $t=Ge(()=>m(f($)));var Wt=Oo(),Js=_(Wt),hn=_(Js),Xs=_(hn);Ri(Xs,()=>f($t).icon,(q,B)=>{B(q,{get class(){return`h-5 w-5 ${f($t).class??""}`}})});var Zs=k(hn,2),_n=_(Zs),pn=_(_n),ea=k(_(pn),2);{var ta=q=>{var B=xo(),de=_(B);fe(()=>ee(de,`ctx: ${f($).context??""}`)),p(q,B)};H(ea,q=>{f($).context&&q(ta)})}var gn=k(pn,2),ra=_(gn),na=k(gn,2);{var sa=q=>{var B=wo(),de=_(B);dl(de,{class:"h-3 w-3"});var He=k(de);fe(()=>ee(He,` ${f($).comments.reference??""}`)),p(q,B)};H(na,q=>{f($).comments?.reference&&q(sa)})}var mn=k(_n,2);{var aa=q=>{var B=So(),de=_(B);{var He=se=>{var pe=ko(),Ne=_(pe);vl(Ne,{class:"mt-0.5 h-4 w-4 shrink-0 text-blue-500"});var ht=k(Ne,2),J=k(_(ht),2),ge=_(J);fe(()=>ee(ge,f($).comments.translator)),p(se,pe)};H(de,se=>{f($).comments.translator&&se(He)})}var je=k(de,2);{var Me=se=>{var pe=Eo(),Ne=_(pe);fl(Ne,{class:"mt-0.5 h-4 w-4 shrink-0 text-slate-400"});var ht=k(Ne,2),J=k(_(ht),2),ge=_(J);fe(()=>{Ke(pe,1,`flex items-start gap-2 text-sm ${f($).comments.translator?"mt-2":""}`),ee(ge,f($).comments.extracted)}),p(se,pe)};H(je,se=>{f($).comments.extracted&&se(Me)})}p(q,B)};H(mn,q=>{(f($).comments?.translator||f($).comments?.extracted)&&q(aa)})}var ia=k(mn,2),bn=_(ia),yn=k(_(bn),2);{var la=q=>{var B=Ao();p(q,B)};H(yn,q=>{f($).fuzzy&&q(la)})}var oa=k(yn,2);{var ua=q=>{var B=To();B.__click=()=>g(f($));var de=_(B);{var He=Me=>{_r(Me,{class:"h-3 w-3 animate-spin"})},je=Me=>{var se=F(),pe=T(se);{var Ne=J=>{var ge=Mo(),_t=T(ge);al(_t,{class:"h-3 w-3"}),p(J,ge)},ht=J=>{var ge=No(),_t=T(ge);il(_t,{class:"h-3 w-3"}),p(J,ge)};H(pe,J=>{f($).fuzzy?J(Ne):J(ht,!1)},!0)}p(Me,se)};H(de,Me=>{f(o)===f($).msgid?Me(He):Me(je,!1)})}fe(()=>{Ke(B,1,`ml-auto flex items-center gap-1 rounded px-2 py-1 text-xs transition-colors ${f($).fuzzy?"bg-amber-100 text-amber-700 hover:bg-amber-200 dark:bg-amber-900/30 dark:text-amber-400 dark:hover:bg-amber-900/50":"bg-slate-100 text-slate-600 hover:bg-slate-200 dark:bg-slate-700 dark:text-slate-400 dark:hover:bg-slate-600"}`),B.disabled=f(o)===f($).msgid,tr(B,"title",f($).fuzzy?"Mark as not fuzzy":"Mark as fuzzy (needs review)")}),p(q,B)};H(oa,q=>{f($).msgstr&&q(ua)})}var fa=k(bn,2);{var ca=q=>{var B=Co(),de=_(B);de.__keydown=J=>E(J,f($));var He=k(de,2),je=_(He);je.__click=()=>y(f($));var Me=_(je);{var se=J=>{var ge=$o(),_t=T(ge);_r(_t,{class:"h-4 w-4 animate-spin"}),p(J,ge)},pe=J=>{var ge=Po(),_t=T(ge);sl(_t,{class:"h-4 w-4"}),p(J,ge)};H(Me,J=>{f(a)===f($).msgid?J(se):J(pe,!1)})}var Ne=k(je,2);Ne.__click=h;var ht=_(Ne);Ws(ht,{class:"h-4 w-4"}),fe(()=>je.disabled=f(a)===f($).msgid),Ds(de,()=>f(l),J=>S(l,J)),p(q,B)},da=q=>{var B=Io();B.__click=()=>d(f($));var de=_(B);{var He=se=>{var pe=zo(),Ne=_(pe);fe(()=>ee(Ne,f($).msgstr)),p(se,pe)},je=se=>{var pe=Lo();p(se,pe)};H(de,se=>{f($).msgstr?se(He):se(je,!1)})}var Me=k(de,2);_l(Me,{class:"h-4 w-4 shrink-0 text-slate-400 opacity-0 transition-opacity group-hover/edit:opacity-100"}),p(q,B)};H(fa,q=>{f(i)===f($).msgid?q(ca):q(da,!1)})}fe(()=>{Ke(Wt,1,`group px-6 py-4 transition-colors hover:bg-slate-50 dark:hover:bg-slate-800/50 ${f($).fuzzy?"bg-amber-50/50 dark:bg-amber-900/10":f($).msgstr?"":"bg-red-50/30 dark:bg-red-900/10"}`),ee(ra,f($).msgid)}),p(vt,Wt)}),p(Re,dt)};H(Nt,Re=>{f(u).length===0?Re(ct):Re(Bt,!1)},!0)}p(rt,nt)};H(ye,rt=>{f(s)?rt(Ae):rt(tt,!1)},!0)}p(w,C)};H(qt,w=>{f(n)?w(Tr):w($r,!1)})}fe(()=>{ee(D,f(c).total),ee(re,f(c).translated),ee(be,f(c).untranslated),ee(Vt,f(c).fuzzy),ee(cr,`Showing ${f(u).length??""} of ${f(c).total??""}`)}),p(e,W),I()}Dt(["click","keydown"]);var Do=N('<button type="button" class="absolute right-3 rounded p-0.5 text-slate-400 transition-colors hover:bg-slate-100 hover:text-slate-600 dark:hover:bg-slate-700 dark:hover:text-slate-300"><!></button>'),Vo=N('<kbd class="absolute right-3 flex items-center gap-0.5 rounded border border-slate-200 bg-slate-50 px-1.5 py-0.5 text-xs text-slate-500 dark:border-slate-600 dark:bg-slate-700 dark:text-slate-400"><span class="text-[10px]">⌘</span>K</kbd>'),qo=N('<div class="relative flex items-center"><!> <input type="text" placeholder="Search translations..." class="h-9 w-72 rounded-lg border border-slate-300 bg-white pl-9 pr-16 text-sm shadow-sm transition-colors placeholder:text-slate-400 focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500/20 dark:border-slate-600 dark:bg-slate-800 dark:text-slate-100 dark:placeholder:text-slate-500 dark:focus:border-blue-400"/> <!></div>');function Bo(e,t){L(t,!0);let r=ae(t,"query",15,""),n=j(null);function s(v){(v.ctrlKey||v.metaKey)&&v.key==="k"&&(v.preventDefault(),f(n)?.focus()),v.key==="Escape"&&document.activeElement===f(n)&&(r(""),f(n)?.blur())}kt(()=>(window.addEventListener("keydown",s),()=>window.removeEventListener("keydown",s)));var a=qo(),i=_(a);gl(i,{class:"absolute left-3 h-4 w-4 text-slate-400"});var l=k(i,2);Gi(l,v=>S(n,v),()=>f(n));var o=k(l,2);{var u=v=>{var d=Do();d.__click=()=>r("");var h=_(d);Ws(h,{class:"h-4 w-4"}),p(v,d)},c=v=>{var d=Vo();p(v,d)};H(o,v=>{r()?v(u):v(c,!1)})}Ds(l,r),p(e,a),I()}Dt(["click"]);Ka();var Wo=N('<button type="button" class="rounded-md p-2 text-slate-500 hover:bg-slate-100 hover:text-slate-700 dark:text-slate-400 dark:hover:bg-slate-800 dark:hover:text-slate-200 transition-colors" aria-label="Toggle theme"><!></button>');function Ho(e,t){L(t,!1),Qi();var r=Wo();r.__click=function(...i){Xl?.apply(this,i)};var n=_(r);{var s=i=>{ml(i,{class:"h-5 w-5"})},a=i=>{hl(i,{class:"h-5 w-5"})};H(n,i=>{vn.current==="dark"?i(s):i(a,!1)})}p(e,r),I()}Dt(["click"]);var Uo=N('<button type="button"> </button>'),Ko=N('<div class="flex items-center gap-4 border-b border-slate-200 bg-white px-6 py-3 dark:border-slate-700 dark:bg-slate-800"><!> <div class="flex gap-1"></div></div> <!>',1),Yo=N('<div class="flex flex-1 items-center justify-center bg-slate-50 dark:bg-slate-900"><div class="text-center"><!> <h2 class="mt-4 text-lg font-medium text-slate-900 dark:text-white">Select a language</h2> <p class="mt-1 text-sm text-slate-500 dark:text-slate-400">Choose a language from the sidebar to start editing translations</p></div></div>'),Go=N('<!> <div class="flex h-screen flex-col bg-slate-50 dark:bg-slate-900"><header class="flex items-center justify-between border-b border-slate-200 bg-white px-6 py-3 shadow-sm dark:border-slate-700 dark:bg-slate-800"><div class="flex items-center gap-3"><div class="flex items-center gap-2"><!> <h1 class="text-lg font-semibold text-slate-900 dark:text-white">Lingo</h1></div> <span class="text-sm text-slate-500 dark:text-slate-400">Translation Editor</span></div> <div class="flex items-center gap-4"><!> <!></div></header> <main class="flex flex-1 overflow-hidden"><aside class="w-72 overflow-y-auto border-r border-slate-200 bg-white dark:border-slate-700 dark:bg-slate-800"><!></aside> <section class="flex flex-1 flex-col overflow-hidden"><!></section></main></div>',1);function Qo(e,t){L(t,!0);let r=j(null),n=j(""),s=j("all");const a=[{value:"all",label:"All"},{value:"translated",label:"Translated"},{value:"untranslated",label:"Untranslated"},{value:"fuzzy",label:"Fuzzy"}];var i=Go(),l=T(i);lo(l,{});var o=k(l,2),u=_(o),c=_(u),v=_(c),d=_(v);ul(d,{class:"h-5 w-5 text-blue-600 dark:text-blue-400"});var h=k(c,2),y=_(h);Bo(y,{get query(){return f(n)},set query(O){S(n,O,!0)}});var E=k(y,2);Ho(E,{});var g=k(u,2),m=_(g),W=_(m);po(W,{get selected(){return f(r)},set selected(O){S(r,O,!0)}});var x=k(m,2),b=_(x);{var M=O=>{var A=Ko(),V=T(A),re=_(V);ol(re,{class:"h-4 w-4 text-slate-400"});var ie=k(re,2);Ar(ie,21,()=>a,oe=>oe.value,(oe,be)=>{var _e=Uo();_e.__click=()=>S(s,f(be).value,!0);var ne=_(_e);fe(()=>{Ke(_e,1,`rounded-md px-3 py-1.5 text-sm font-medium transition-colors ${f(s)===f(be).value?"bg-blue-600 text-white dark:bg-blue-500":"text-slate-600 hover:bg-slate-100 dark:text-slate-300 dark:hover:bg-slate-700"}`),ee(ne,f(be).label)}),p(oe,_e)});var Z=k(V,2);jo(Z,{get language(){return f(r)},get searchQuery(){return f(n)},get filter(){return f(s)}}),p(O,A)},D=O=>{var A=Yo(),V=_(A),re=_(V);qs(re,{class:"mx-auto h-12 w-12 text-slate-300 dark:text-slate-600"}),p(O,A)};H(b,O=>{f(r)?O(M):O(D,!1)})}p(e,i),I()}Dt(["click"]);Li(Qo,{target:document.getElementById("app")});
@@ -0,0 +1,25 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Lingo Translation Editor</title>
7
+ <script>
8
+ // Prevent FOUC by setting theme before page renders
9
+ (function() {
10
+ const stored = localStorage.getItem('mode-watcher-mode');
11
+ const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
12
+ const theme = stored ? JSON.parse(stored) : (prefersDark ? 'dark' : 'light');
13
+ if (theme === 'dark' || (theme === 'system' && prefersDark)) {
14
+ document.documentElement.classList.add('dark');
15
+ }
16
+ document.documentElement.style.colorScheme = theme === 'dark' || (theme === 'system' && prefersDark) ? 'dark' : 'light';
17
+ })();
18
+ </script>
19
+ <script type="module" crossorigin src="./assets/index-DsX4xzGF.js"></script>
20
+ <link rel="stylesheet" crossorigin href="./assets/index-B5dZv0sy.css">
21
+ </head>
22
+ <body>
23
+ <div id="app"></div>
24
+ </body>
25
+ </html>
package/package.json ADDED
@@ -0,0 +1,118 @@
1
+ {
2
+ "name": "vite-plugin-lingo",
3
+ "version": "0.0.1",
4
+ "description": "Visual translation editor for .po files in Vite projects",
5
+ "license": "AGPL-3.0-or-later",
6
+ "author": "Michael-Obele",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/Michael-Obele/vite-plugin-lingo.git"
10
+ },
11
+ "publishConfig": {
12
+ "access": "public"
13
+ },
14
+ "scripts": {
15
+ "dev": "bun run build:ui && concurrently -n main,ui -c blue,green \"vite dev\" \"vite build --config vite.ui.config.ts --watch\"",
16
+ "dev:simple": "vite dev",
17
+ "dev:ui": "vite --config vite.ui.config.ts",
18
+ "build": "bun run build:svelte && bun run build:plugin && bun run build:ui && publint",
19
+ "build:ui": "vite build --config vite.ui.config.ts",
20
+ "build:ui:watch": "vite build --config vite.ui.config.ts --watch",
21
+ "build:svelte": "svelte-kit sync && svelte-package",
22
+ "build:plugin": "tsup",
23
+ "package": "svelte-kit sync && svelte-package && publint",
24
+ "preview": "vite preview",
25
+ "prepare": "svelte-kit sync || echo ''",
26
+ "prepack": "bun run build",
27
+ "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
28
+ "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
29
+ "format": "prettier --write .",
30
+ "lint": "prettier --check .",
31
+ "test:unit": "vitest",
32
+ "test": "npm run test:unit -- --run",
33
+ "prepublishOnly": "echo 'Build will run via prepack'"
34
+ },
35
+ "files": [
36
+ "dist",
37
+ "!dist/**/*.test.*",
38
+ "!dist/**/*.spec.*"
39
+ ],
40
+ "sideEffects": [
41
+ "**/*.css"
42
+ ],
43
+ "main": "./dist/plugin/index.cjs",
44
+ "module": "./dist/plugin/index.js",
45
+ "types": "./dist/plugin/index.d.ts",
46
+ "type": "module",
47
+ "exports": {
48
+ ".": {
49
+ "import": {
50
+ "types": "./dist/plugin/index.d.ts",
51
+ "default": "./dist/plugin/index.js"
52
+ },
53
+ "require": {
54
+ "types": "./dist/plugin/index.d.cts",
55
+ "default": "./dist/plugin/index.cjs"
56
+ }
57
+ },
58
+ "./components": {
59
+ "types": "./dist/index.d.ts",
60
+ "svelte": "./dist/index.js"
61
+ }
62
+ },
63
+ "peerDependencies": {
64
+ "vite": "^5.0.0 || ^6.0.0 || ^7.0.0",
65
+ "svelte": "^4.0.0 || ^5.0.0"
66
+ },
67
+ "peerDependenciesMeta": {
68
+ "svelte": {
69
+ "optional": true
70
+ }
71
+ },
72
+ "devDependencies": {
73
+ "@sveltejs/adapter-auto": "^7.0.0",
74
+ "@sveltejs/kit": "^2.48.5",
75
+ "@sveltejs/package": "^2.5.6",
76
+ "@sveltejs/vite-plugin-svelte": "^6.2.1",
77
+ "@tailwindcss/forms": "^0.5.10",
78
+ "@tailwindcss/typography": "^0.5.19",
79
+ "@tailwindcss/vite": "^4.1.17",
80
+ "@vitest/browser-playwright": "^4.0.10",
81
+ "concurrently": "^9.2.1",
82
+ "playwright": "^1.56.1",
83
+ "prettier": "^3.6.2",
84
+ "prettier-plugin-svelte": "^3.4.0",
85
+ "prettier-plugin-tailwindcss": "^0.7.1",
86
+ "publint": "^0.3.15",
87
+ "svelte": "^5.43.8",
88
+ "svelte-check": "^4.3.4",
89
+ "tailwindcss": "^4.1.17",
90
+ "tsup": "^8.5.1",
91
+ "typescript": "^5.9.3",
92
+ "vite": "^7.2.2",
93
+ "vitest": "^4.0.10",
94
+ "vitest-browser-svelte": "^2.0.1"
95
+
96
+ },
97
+ "keywords": [
98
+ "vite-plugin",
99
+ "vite",
100
+ "i18n",
101
+ "translation",
102
+ "po",
103
+ "gettext",
104
+ "localization",
105
+ "wuchale",
106
+ "svelte",
107
+ "editor"
108
+ ],
109
+ "dependencies": {
110
+ "@lucide/svelte": "^0.555.0",
111
+ "@types/gettext-parser": "^8.0.0",
112
+ "autoprefixer": "^10.4.22",
113
+ "gettext-parser": "^8.0.0",
114
+ "mode-watcher": "^1.1.0",
115
+ "sirv": "^3.0.2",
116
+ "svelte-highlight": "^7.9.0"
117
+ }
118
+ }