rssany 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +1 -1
- package/README.md +10 -11
- package/{plugins/sources → app/plugins/builtin}/email.rssany.js +92 -96
- package/app/plugins/builtin/rss.rssany.js +164 -0
- package/{plugins/templates → app/plugins}/site.rssany.js +6 -7
- package/dist/index.js +1200 -807
- package/dist/index.js.map +1 -1
- package/{config.examples.json → init/config.json} +7 -1
- package/init/sources.json +353 -0
- package/package.json +6 -7
- package/statics/401.html +1 -1
- package/statics/README.md +1 -1
- package/webui/build/200.html +16 -18
- package/webui/build/_app/immutable/assets/0.C6Q_nuW9.css +1 -0
- package/webui/build/_app/immutable/assets/10.Dj8_pmut.css +1 -0
- package/webui/build/_app/immutable/assets/11.qYZMiTb0.css +1 -0
- package/webui/build/_app/immutable/assets/12.Ct59LCqW.css +1 -0
- package/webui/build/_app/immutable/assets/13.BhO9zvFi.css +1 -0
- package/webui/build/_app/immutable/assets/14.CujIhjQK.css +1 -0
- package/webui/build/_app/immutable/assets/15.nNGjXhCQ.css +1 -0
- package/webui/build/_app/immutable/assets/16.PP9XLDf7.css +1 -0
- package/webui/build/_app/immutable/assets/4.9wPHhVwv.css +1 -0
- package/webui/build/_app/immutable/assets/6.DSJfjJwx.css +1 -0
- package/webui/build/_app/immutable/assets/7.CrNxmd8B.css +1 -0
- package/webui/build/_app/immutable/assets/8.Ba5_jYIY.css +1 -0
- package/webui/build/_app/immutable/assets/{9.BZheTlzZ.css → 9.m-LCx_kl.css} +1 -1
- package/webui/build/_app/immutable/assets/BackToParentRoute.DGk-X5ow.css +1 -0
- package/webui/build/_app/immutable/assets/SourcesList.yTBBi3_m.css +1 -0
- package/webui/build/_app/immutable/assets/homeFeedPanelStore.BopJZtHu.css +1 -0
- package/webui/build/_app/immutable/chunks/{V2-VOe88.js → B-OsL1Ct.js} +1 -1
- package/webui/build/_app/immutable/chunks/B2Q1a1-H.js +2 -0
- package/webui/build/_app/immutable/chunks/BK3WtZwv.js +1 -0
- package/webui/build/_app/immutable/chunks/BQqoDzLx.js +1 -0
- package/webui/build/_app/immutable/chunks/BXCWEhUd.js +1 -0
- package/webui/build/_app/immutable/chunks/BbWUOQ_m.js +1 -0
- package/webui/build/_app/immutable/chunks/Bp63qm3L.js +1 -0
- package/webui/build/_app/immutable/chunks/CVzlFH44.js +1 -0
- package/webui/build/_app/immutable/chunks/CWNeClHp.js +6 -0
- package/webui/build/_app/immutable/chunks/Cihqbfi5.js +1 -0
- package/webui/build/_app/immutable/chunks/CkUAV0m0.js +41 -0
- package/webui/build/_app/immutable/chunks/CtijX1u3.js +31 -0
- package/webui/build/_app/immutable/chunks/D5GvRCv7.js +1 -0
- package/webui/build/_app/immutable/chunks/DEDI7Ecm.js +1 -0
- package/webui/build/_app/immutable/chunks/DFuhmi31.js +1 -0
- package/webui/build/_app/immutable/chunks/DMWEh-Ek.js +2 -0
- package/webui/build/_app/immutable/chunks/{Cg3zih_x.js → DcAshVxe.js} +1 -1
- package/webui/build/_app/immutable/chunks/DjNLq3TF.js +1 -0
- package/webui/build/_app/immutable/chunks/Dt2CddFe.js +1 -0
- package/webui/build/_app/immutable/chunks/Dw782Tjs.js +1 -0
- package/webui/build/_app/immutable/chunks/EIZIMsXK.js +1 -0
- package/webui/build/_app/immutable/chunks/Xy_fhzQq.js +1 -0
- package/webui/build/_app/immutable/chunks/lk5LaiqA.js +1 -0
- package/webui/build/_app/immutable/chunks/mW5RwvnK.js +13 -0
- package/webui/build/_app/immutable/chunks/{CtHRh_pJ.js → tB7QMF3U.js} +1 -1
- package/webui/build/_app/immutable/chunks/xtNWTdbD.js +1 -0
- package/webui/build/_app/immutable/entry/app.DdgnooOk.js +2 -0
- package/webui/build/_app/immutable/entry/start.DhJaJZhR.js +1 -0
- package/webui/build/_app/immutable/nodes/0.BE05Cuc4.js +11 -0
- package/webui/build/_app/immutable/nodes/1.5DFDaT4c.js +1 -0
- package/webui/build/_app/immutable/nodes/10.OVK4i9XE.js +1 -0
- package/webui/build/_app/immutable/nodes/11.Dhn_rO4A.js +1 -0
- package/webui/build/_app/immutable/nodes/12.Cg8AeCSH.js +1 -0
- package/webui/build/_app/immutable/nodes/13.nT3SOzEB.js +1 -0
- package/webui/build/_app/immutable/nodes/14.B_KpJLxn.js +1 -0
- package/webui/build/_app/immutable/nodes/15.RaWaA-0I.js +1 -0
- package/webui/build/_app/immutable/nodes/{12.D9g8GCjm.js → 16.DSUgqolV.js} +15 -15
- package/webui/build/_app/immutable/nodes/2.BYWOpaxy.js +1 -0
- package/webui/build/_app/immutable/nodes/3.wQvGs9w-.js +1 -0
- package/webui/build/_app/immutable/nodes/4.DTSxpKm7.js +2 -0
- package/webui/build/_app/immutable/nodes/5.CCtn90c0.js +1 -0
- package/webui/build/_app/immutable/nodes/6.C2_mjW1u.js +1 -0
- package/webui/build/_app/immutable/nodes/7.Dwz6W7A1.js +1 -0
- package/webui/build/_app/immutable/nodes/8.DzkEw6rx.js +1 -0
- package/webui/build/_app/immutable/nodes/9.DtlXEwe1.js +1 -0
- package/webui/build/_app/version.json +1 -1
- package/plugins/sources/rss.rssany.js +0 -83
- package/sources.example.json +0 -562
- package/webui/build/_app/immutable/assets/0.BUAXpTm6.css +0 -1
- package/webui/build/_app/immutable/assets/10.I1OuCLrU.css +0 -1
- package/webui/build/_app/immutable/assets/11.CrO9xaki.css +0 -1
- package/webui/build/_app/immutable/assets/12.BEi6fInA.css +0 -1
- package/webui/build/_app/immutable/assets/14.Ctlgn1LZ.css +0 -1
- package/webui/build/_app/immutable/assets/2.eJ80XOGm.css +0 -1
- package/webui/build/_app/immutable/assets/4.B8-jYAVj.css +0 -1
- package/webui/build/_app/immutable/assets/6.Drn-0DON.css +0 -1
- package/webui/build/_app/immutable/assets/7.ms2diq_q.css +0 -1
- package/webui/build/_app/immutable/assets/8.DKymkjjs.css +0 -1
- package/webui/build/_app/immutable/assets/SourcesList.BhtYlRsQ.css +0 -1
- package/webui/build/_app/immutable/chunks/BUngiKFg.js +0 -1
- package/webui/build/_app/immutable/chunks/Bt0fzibd.js +0 -1
- package/webui/build/_app/immutable/chunks/BxHqDcpw.js +0 -1
- package/webui/build/_app/immutable/chunks/ByQRbEUX.js +0 -1
- package/webui/build/_app/immutable/chunks/C12mHcUp.js +0 -6
- package/webui/build/_app/immutable/chunks/C1kQ4pHy.js +0 -1
- package/webui/build/_app/immutable/chunks/C74gbb4Q.js +0 -1
- package/webui/build/_app/immutable/chunks/CAtemnMo.js +0 -1
- package/webui/build/_app/immutable/chunks/CVjCNJia.js +0 -1
- package/webui/build/_app/immutable/chunks/CjQQ9_Q2.js +0 -2
- package/webui/build/_app/immutable/chunks/CkS2JMkE.js +0 -1
- package/webui/build/_app/immutable/chunks/D-6mYMI1.js +0 -1
- package/webui/build/_app/immutable/chunks/D1Gs8-g3.js +0 -1
- package/webui/build/_app/immutable/chunks/D9dRVKgL.js +0 -1
- package/webui/build/_app/immutable/chunks/DCEY1XiC.js +0 -1
- package/webui/build/_app/immutable/chunks/DI-t-G_K.js +0 -2
- package/webui/build/_app/immutable/chunks/DTUxjyWL.js +0 -1
- package/webui/build/_app/immutable/chunks/DWJZOHke.js +0 -1
- package/webui/build/_app/immutable/chunks/Dgs6d7X5.js +0 -1
- package/webui/build/_app/immutable/chunks/DjpPK99f.js +0 -71
- package/webui/build/_app/immutable/chunks/DjzVVxpy.js +0 -1
- package/webui/build/_app/immutable/chunks/LQVMBmDN.js +0 -1
- package/webui/build/_app/immutable/chunks/Qw0Qgx6J.js +0 -1
- package/webui/build/_app/immutable/chunks/bohabpgg.js +0 -1
- package/webui/build/_app/immutable/chunks/c-YfbAB_.js +0 -8
- package/webui/build/_app/immutable/chunks/tpTQfoNn.js +0 -1
- package/webui/build/_app/immutable/entry/app.4I2fqDIL.js +0 -2
- package/webui/build/_app/immutable/entry/start.CrgdT2Qb.js +0 -1
- package/webui/build/_app/immutable/nodes/0.gA9sQtoM.js +0 -11
- package/webui/build/_app/immutable/nodes/1.Bybh7btp.js +0 -1
- package/webui/build/_app/immutable/nodes/10.DEkJCZ6X.js +0 -1
- package/webui/build/_app/immutable/nodes/11.CDNNJqlQ.js +0 -1
- package/webui/build/_app/immutable/nodes/13.DRpZV72T.js +0 -1
- package/webui/build/_app/immutable/nodes/14.DVeJW6bd.js +0 -1
- package/webui/build/_app/immutable/nodes/2.DIZ4IPNm.js +0 -1
- package/webui/build/_app/immutable/nodes/3.BFSNf0FK.js +0 -1
- package/webui/build/_app/immutable/nodes/4.BSsIjejE.js +0 -2
- package/webui/build/_app/immutable/nodes/5.COxRT9Oe.js +0 -1
- package/webui/build/_app/immutable/nodes/6.CBgQ4YzB.js +0 -1
- package/webui/build/_app/immutable/nodes/7.BbzWOL0V.js +0 -6
- package/webui/build/_app/immutable/nodes/8.C8120200.js +0 -1
- package/webui/build/_app/immutable/nodes/9.BH_BGQQ4.js +0 -1
- /package/webui/build/_app/immutable/nodes/{15.BtYZF6FM.js → 17.BtYZF6FM.js} +0 -0
- /package/webui/build/_app/immutable/nodes/{16.Ba_qJjp6.js → 18.Ba_qJjp6.js} +0 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import{c as S,a as r,t as et,f as p}from"./BK3WtZwv.js";import"./lk5LaiqA.js";import{f as N,at as tt,b4 as ve,a4 as Oe,an as Ne,a5 as x,U as Me,i as e,au as st,aA as W,aw as P,av as s,ay as at,az as L,ax as t}from"./BbWUOQ_m.js";import{s as J}from"./B-OsL1Ct.js";import{l as K,s as Q,p as q}from"./xtNWTdbD.js";import{I as Y,P as rt,a as lt,b as it,c as ot,d as nt,D as vt}from"./mW5RwvnK.js";import{s as D}from"./DMWEh-Ek.js";import{i as U}from"./Dt2CddFe.js";import{e as je}from"./BQqoDzLx.js";import{c as X}from"./DFuhmi31.js";import{s as M}from"./B2Q1a1-H.js";import{a as ct}from"./CBY2biv-.js";import{w as Be}from"./D5GvRCv7.js";function Gt(f,a){const l=K(a,["children","$$slots","$$events","$$legacy"]);/**
|
|
2
|
+
* @license lucide-svelte v0.460.1 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const i=[["path",{d:"M4 11a9 9 0 0 1 9 9"}],["path",{d:"M4 4a16 16 0 0 1 16 16"}],["circle",{cx:"5",cy:"19",r:"1"}]];Y(f,Q({name:"rss"},()=>l,{get iconNode(){return i},children:(m,T)=>{var n=S(),y=N(n);J(y,a,"default",{}),r(m,n)},$$slots:{default:!0}}))}function Vt(f,a){const l=K(a,["children","$$slots","$$events","$$legacy"]);/**
|
|
7
|
+
* @license lucide-svelte v0.460.1 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/const i=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z"}]];Y(f,Q({name:"puzzle"},()=>l,{get iconNode(){return i},children:(m,T)=>{var n=S(),y=N(n);J(y,a,"default",{}),r(m,n)},$$slots:{default:!0}}))}function dt(f,a){const l=K(a,["children","$$slots","$$events","$$legacy"]);/**
|
|
12
|
+
* @license lucide-svelte v0.460.1 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/const i=[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]];Y(f,Q({name:"x"},()=>l,{get iconNode(){return i},children:(m,T)=>{var n=S(),y=N(n);J(y,a,"default",{}),r(m,n)},$$slots:{default:!0}}))}function qe(f,a){const l=K(a,["children","$$slots","$$events","$$legacy"]);/**
|
|
17
|
+
* @license lucide-svelte v0.460.1 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/const i=[["path",{d:"M15 3h6v6"}],["path",{d:"M10 14 21 3"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}]];Y(f,Q({name:"external-link"},()=>l,{get iconNode(){return i},children:(m,T)=>{var n=S(),y=N(n);J(y,a,"default",{}),r(m,n)},$$slots:{default:!0}}))}function ut(f,a){const l=K(a,["children","$$slots","$$events","$$legacy"]);/**
|
|
22
|
+
* @license lucide-svelte v0.460.1 - ISC
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the ISC license.
|
|
25
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/const i=[["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"}]];Y(f,Q({name:"refresh-cw"},()=>l,{get iconNode(){return i},children:(m,T)=>{var n=S(),y=N(n);J(y,a,"default",{}),r(m,n)},$$slots:{default:!0}}))}function Ue(f,a){const l=K(a,["children","$$slots","$$events","$$legacy"]);/**
|
|
27
|
+
* @license lucide-svelte v0.460.1 - ISC
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the ISC license.
|
|
30
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
+
*/const i=[["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"}]];Y(f,Q({name:"globe"},()=>l,{get iconNode(){return i},children:(m,T)=>{var n=S(),y=N(n);J(y,a,"default",{}),r(m,n)},$$slots:{default:!0}}))}const ke=Be({});function Wt(f,a){ke.update(l=>({...l,[f]:a}))}function Xt(f){ke.update(a=>{const l={...a};return delete l[f],l})}var ht=p('<span class="source-sheet-proxy svelte-ypseth" aria-label="已配置代理"><!></span>'),pt=p('<div class="source-sheet-state svelte-ypseth">加载中…</div>'),ft=p('<div class="source-sheet-state err svelte-ypseth"> </div>'),_t=p('<div class="source-sheet-state svelte-ypseth">暂无条目</div>'),mt=p('<li class="source-feed-row svelte-ypseth"><a class="source-feed-link svelte-ypseth" target="_blank" rel="noopener noreferrer"><span class="source-feed-title svelte-ypseth"> </span> <span class="source-feed-meta svelte-ypseth"><time> </time> <span class="source-feed-ext svelte-ypseth" aria-hidden="true"><!></span></span></a></li>'),yt=p('<ul class="source-feed-list svelte-ypseth"></ul>'),gt=p('<header class="source-sheet-header svelte-ypseth"><div class="source-sheet-title-wrap svelte-ypseth"><div class="source-sheet-title-row svelte-ypseth"><div class="source-sheet-title-cluster svelte-ypseth"><!> <!></div></div> <p class="source-sheet-sub source-sheet-sub-desc svelte-ypseth"> </p></div> <!></header> <div class="source-sheet-body svelte-ypseth"><!></div>',1),$t=p("<!> <!>",1),bt=p('<span class="source-sheet-proxy svelte-ypseth" aria-label="已配置代理"><!></span>'),xt=p('<div class="source-sheet-pull-status svelte-ypseth" title="拉取中…" aria-live="polite"><!></div>'),Pt=p('<div class="source-sheet-state svelte-ypseth">加载中…</div>'),zt=p('<div class="source-sheet-state err svelte-ypseth"> </div>'),Nt=p('<div class="source-sheet-state svelte-ypseth">暂无条目</div>'),Mt=p('<li class="source-feed-row svelte-ypseth"><a class="source-feed-link svelte-ypseth" target="_blank" rel="noopener noreferrer"><span class="source-feed-title svelte-ypseth"> </span> <span class="source-feed-meta svelte-ypseth"><time> </time> <span class="source-feed-ext svelte-ypseth" aria-hidden="true"><!></span></span></a></li>'),kt=p('<ul class="source-feed-list svelte-ypseth"></ul>'),Dt=p('<header class="source-sheet-header source-sheet-header-inline svelte-ypseth"><div class="source-sheet-title-wrap svelte-ypseth"><div class="source-sheet-title-row svelte-ypseth"><div class="source-sheet-title-cluster svelte-ypseth"><h2 class="source-sheet-title svelte-ypseth"> </h2> <!></div></div> <p class="source-sheet-sub source-sheet-sub-desc svelte-ypseth"> </p></div> <!></header> <div class="source-sheet-body svelte-ypseth"><!></div>',1),Lt=p('<div class="source-sheet-inline-empty svelte-ypseth"><p class="source-sheet-inline-empty-title svelte-ypseth">信源条目</p> <p class="source-sheet-inline-empty-hint svelte-ypseth">在左侧列表中点击某一信源,在此查看已拉取的条目。</p></div>'),St=p('<aside class="source-feed-panel-inline svelte-ypseth" aria-label="信源条目列表"><!></aside>');function Jt(f,a){tt(a,!0);let l=q(a,"open",3,!1),i=q(a,"sourceRef",3,""),m=q(a,"sourceLabel",3,""),T=q(a,"sourceDescription",3,""),n=q(a,"sourceProxy",3,""),y=q(a,"variant",3,"overlay"),Ge=q(a,"onOpenChange",3,()=>{}),k=ve(Oe([])),Z=ve(!1),A=ve(""),R=ve(0),De=ve(Oe({}));Ne(()=>{const u=ke.subscribe(g=>{x(De,g,!0)});return()=>u()});async function Le(){const u=i().trim();if(!u){x(k,[],!0);return}x(R,e(R)+1);const g=e(R);x(Z,!0),x(A,"");try{const z=new URLSearchParams;z.set("ref",u),z.set("limit","100"),z.set("offset","0");const E=await ct("/api/items?"+z.toString());if(g!==e(R))return;if(!E.ok)throw new Error(await E.text().catch(()=>`HTTP ${E.status}`));const B=await E.json();x(k,Array.isArray(B.items)?B.items:[],!0)}catch(z){if(g!==e(R))return;x(A,z instanceof Error?z.message:String(z),!0),x(k,[],!0)}finally{g===e(R)&&x(Z,!1)}}Ne(()=>{l()&&i().trim()?Me(()=>void Le()):l()||Me(()=>{x(R,e(R)+1),x(k,[],!0),x(A,""),x(Z,!1)})});function Ve(u){if(!u)return"—";try{const g=new Date(u);return Number.isNaN(g.getTime())?"—":g.toLocaleString("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}catch{return"—"}}function Se(u){return Ve(u.pub_date||u.fetched_at)}const Te=W(()=>T().trim()?T().trim():"—"),Re=W(()=>[m(),i()].filter(Boolean).join(" · ")||void 0),Ee=W(()=>y()==="inline"&&l()&&i().trim()!==""&&i()in e(De));let Ie=!1;Ne(()=>{const u=e(Ee);Ie&&!u&&l()&&y()==="inline"&&i().trim()&&Me(()=>void Le()),Ie=u});var Ae=S(),We=N(Ae);{var Xe=u=>{var g=S(),z=N(g);X(z,()=>vt,(E,B)=>{B(E,{get open(){return l()},onOpenChange:w=>Ge()(w),children:(w,C)=>{var F=S(),ee=N(F);X(ee,()=>rt,(te,se)=>{se(te,{children:(ce,ae)=>{var de=$t(),ue=N(de);X(ue,()=>lt,(re,H)=>{H(re,{class:"source-sheet-overlay"})});var ge=P(ue,2);X(ge,()=>it,(re,H)=>{H(re,{class:"source-sheet-panel","aria-describedby":void 0,children:($e,Ce)=>{var he=gt(),G=N(he),le=s(G),ie=s(le),pe=s(ie),fe=s(pe);X(fe,()=>ot,(o,d)=>{d(o,{class:"source-sheet-title",get title(){return e(Re)},children:(h,_)=>{at();var I=et();L(()=>D(I,m()||i()||"信源条目")),r(h,I)},$$slots:{default:!0}})});var be=P(fe,2);{var v=o=>{var d=ht(),h=s(d);Ue(h,{size:16,class:"source-sheet-proxy-globe","aria-hidden":"true"}),t(d),L(_=>M(d,"title",`代理:${_??""}`),[()=>n().trim()]),r(o,d)},c=W(()=>n().trim());U(be,o=>{e(c)&&o(v)})}t(pe),t(ie);var b=P(ie,2),$=s(b,!0);t(b),t(le);var oe=P(le,2);X(oe,()=>nt,(o,d)=>{d(o,{class:"source-sheet-close","aria-label":"关闭",children:(h,_)=>{dt(h,{size:18})},$$slots:{default:!0}})}),t(G);var O=P(G,2),ne=s(O);{var xe=o=>{var d=pt();r(o,d)},_e=o=>{var d=ft(),h=s(d,!0);t(d),L(()=>D(h,e(A))),r(o,d)},V=o=>{var d=_t();r(o,d)},Pe=o=>{var d=yt();je(d,21,()=>e(k),h=>h.id,(h,_)=>{var I=mt(),me=s(I),ze=s(me),Ke=s(ze,!0);t(ze);var Fe=P(ze,2),ye=s(Fe),Qe=s(ye,!0);t(ye);var He=P(ye,2),Ye=s(He);qe(Ye,{size:12}),t(He),t(Fe),t(me),t(I),L((j,Ze,we)=>{M(me,"href",e(_).url),M(me,"title",j),D(Ke,Ze),M(ye,"datetime",e(_).pub_date||e(_).fetched_at),D(Qe,we)},[()=>{var j;return((j=e(_).summary)==null?void 0:j.trim())||e(_).title||e(_).url},()=>{var j;return(j=e(_).title)!=null&&j.trim()?e(_).title:e(_).url},()=>Se(e(_))]),r(h,I)}),t(d),r(o,d)};U(ne,o=>{e(Z)&&e(k).length===0?o(xe):e(A)?o(_e,1):e(k).length===0?o(V,2):o(Pe,-1)})}t(O),L(()=>{M(b,"title",i()),D($,e(Te))}),r($e,he)},$$slots:{default:!0}})}),r(ce,de)},$$slots:{default:!0}})}),r(w,F)},$$slots:{default:!0}})}),r(u,g)},Je=u=>{var g=St(),z=s(g);{var E=C=>{var F=Dt(),ee=N(F),te=s(ee),se=s(te),ce=s(se),ae=s(ce),de=s(ae,!0);t(ae);var ue=P(ae,2);{var ge=v=>{var c=bt(),b=s(c);Ue(b,{size:16,class:"source-sheet-proxy-globe","aria-hidden":"true"}),t(c),L($=>M(c,"title",`代理:${$??""}`),[()=>n().trim()]),r(v,c)},re=W(()=>n().trim());U(ue,v=>{e(re)&&v(ge)})}t(ce),t(se);var H=P(se,2),$e=s(H,!0);t(H),t(te);var Ce=P(te,2);{var he=v=>{var c=xt(),b=s(c);ut(b,{size:18}),t(c),r(v,c)};U(Ce,v=>{e(Ee)&&v(he)})}t(ee);var G=P(ee,2),le=s(G);{var ie=v=>{var c=Pt();r(v,c)},pe=v=>{var c=zt(),b=s(c,!0);t(c),L(()=>D(b,e(A))),r(v,c)},fe=v=>{var c=Nt();r(v,c)},be=v=>{var c=kt();je(c,21,()=>e(k),b=>b.id,(b,$)=>{var oe=Mt(),O=s(oe),ne=s(O),xe=s(ne,!0);t(ne);var _e=P(ne,2),V=s(_e),Pe=s(V,!0);t(V);var o=P(V,2),d=s(o);qe(d,{size:12}),t(o),t(_e),t(O),t(oe),L((h,_,I)=>{M(O,"href",e($).url),M(O,"title",h),D(xe,_),M(V,"datetime",e($).pub_date||e($).fetched_at),D(Pe,I)},[()=>{var h;return((h=e($).summary)==null?void 0:h.trim())||e($).title||e($).url},()=>{var h;return(h=e($).title)!=null&&h.trim()?e($).title:e($).url},()=>Se(e($))]),r(b,oe)}),t(c),r(v,c)};U(le,v=>{e(Z)&&e(k).length===0?v(ie):e(A)?v(pe,1):e(k).length===0?v(fe,2):v(be,-1)})}t(G),L(()=>{M(ae,"title",e(Re)),D(de,m()||i()||"信源条目"),M(H,"title",i()),D($e,e(Te))}),r(C,F)},B=W(()=>l()&&i().trim()),w=C=>{var F=Lt();r(C,F)};U(z,C=>{e(B)?C(E):C(w,-1)})}t(g),r(u,g)};U(We,u=>{y()==="overlay"?u(Xe):u(Je,-1)})}r(f,Ae),st()}const Kt=Be(null);export{qe as E,Vt as P,Gt as R,Jt as S,ut as a,Xt as c,Kt as h,ke as r,Wt as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aj as o,U as a,aE as d}from"./BbWUOQ_m.js";function p(s,u,e){if(s==null)return u(void 0),o;const t=a(()=>s.subscribe(u,e));return t.unsubscribe?()=>t.unsubscribe():t}const i=[];function _(s,u=o){let e=null;const t=new Set;function c(r){if(d(s,r)&&(s=r,e)){const b=!i.length;for(const n of t)n[1](),i.push(n,s);if(b){for(let n=0;n<i.length;n+=2)i[n][0](i[n+1]);i.length=0}}}function f(r){c(r(s))}function l(r,b=o){const n=[r,b];return t.add(n),t.size===1&&(e=u(c,f)||o),r(s),()=>{t.delete(n),t.size===0&&e&&(e(),e=null)}}return{set:c,update:f,subscribe:l}}function h(s){let u;return p(s,e=>u=e)(),u}export{h as g,p as s,_ as w};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as y,b as u,ak as _,al as g,h as t,C as o,P as l,e as i,c as n,g as p,N as m}from"./BbWUOQ_m.js";function C(d,r){let a=null,E=t;var s;if(t){a=p;for(var e=m(document.head);e!==null&&(e.nodeType!==o||e.data!==d);)e=l(e);if(e===null)i(!1);else{var f=l(e);e.remove(),n(f)}}t||(s=document.head.appendChild(y()));try{u(()=>r(s),_|g)}finally{E&&(i(!0),n(a))}}export{C as h};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as o,a as v,b as y,E as f,r as l,s as m,c as p,e as i,H as T,g}from"./BbWUOQ_m.js";import{B as A}from"./Dt2CddFe.js";function b(d,_,e){var s;o&&(s=g,v());var r=new A(d);y(()=>{var a=_()??null;if(o){var h=l(s),c=h===T,u=a!==null;if(c!==u){var t=m();p(t),r.anchor=t,i(!1),r.ensure(a,a&&(n=>e(n,a))),i(!0);return}}r.ensure(a,a&&(n=>e(n,a)))},f)}export{b as c};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var Le=Object.defineProperty;var he=t=>{throw TypeError(t)};var Me=(t,e,r)=>e in t?Le(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var q=(t,e,r)=>Me(t,typeof e!="symbol"?e+"":e,r),re=(t,e,r)=>e.has(t)||he("Cannot "+r);var s=(t,e,r)=>(re(t,e,"read from private field"),r?r.call(t):e.get(t)),c=(t,e,r)=>e.has(t)?he("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),a=(t,e,r,i)=>(re(t,e,"write to private field"),i?i.call(t,r):e.set(t,r),r),p=(t,e,r)=>(re(t,e,"access private method"),r);import{aM as Fe,i as be,V as Ie,U as Ve,aN as de,O as H,A as Ee,g as F,h as O,Y as W,aO as _e,b as Ce,a as Pe,j as We,aP as pe,p as M,n as me,G as se,m as ge,L as xe,aQ as Ye,a8 as K,aR as Q,aS as ve,aT as He,aU as Be,aV as we,W as Te,l as je,M as ie,c as Z,ay as $e,s as qe,aW as U,E as Ue,al as ze,aX as Ge,aY as Xe,ah as Je,aZ as Ke,ai as Qe,a_ as ne,N as Ze,C as Se,H as et,P as tt,a$ as ae,e as z,b0 as rt,K as st,b1 as it,w as nt,at,k as ot,b2 as ft,au as ut}from"./BbWUOQ_m.js";import{b as lt}from"./BK3WtZwv.js";function ct(t){let e=0,r=Ee(0),i;return()=>{Fe()&&(be(r),Ie(()=>(e===0&&(i=Ve(()=>t(()=>de(r)))),e+=1,()=>{H(()=>{e-=1,e===0&&(i==null||i(),i=void 0,de(r))})})))}}var ht=Ue|ze;function dt(t,e,r,i){new _t(t,e,r,i)}var E,B,T,V,g,S,m,w,A,C,k,x,j,$,N,ee,u,Ae,Ne,Re,oe,X,J,fe;class _t{constructor(e,r,i,o){c(this,u);q(this,"parent");q(this,"is_pending",!1);q(this,"transform_error");c(this,E);c(this,B,O?F:null);c(this,T);c(this,V);c(this,g);c(this,S,null);c(this,m,null);c(this,w,null);c(this,A,null);c(this,C,0);c(this,k,0);c(this,x,!1);c(this,j,new Set);c(this,$,new Set);c(this,N,null);c(this,ee,ct(()=>(a(this,N,Ee(s(this,C))),()=>{a(this,N,null)})));var n;a(this,E,e),a(this,T,r),a(this,V,f=>{var d=W;d.b=this,d.f|=_e,i(f)}),this.parent=W.b,this.transform_error=o??((n=this.parent)==null?void 0:n.transform_error)??(f=>f),a(this,g,Ce(()=>{if(O){const f=s(this,B);Pe();const d=f.data===We;if(f.data.startsWith(pe)){const h=JSON.parse(f.data.slice(pe.length));p(this,u,Ne).call(this,h)}else d?p(this,u,Re).call(this):p(this,u,Ae).call(this)}else p(this,u,oe).call(this)},ht)),O&&a(this,E,F)}defer_effect(e){Ye(e,s(this,j),s(this,$))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!s(this,T).pending}update_pending_count(e,r){p(this,u,fe).call(this,e,r),a(this,C,s(this,C)+e),!(!s(this,N)||s(this,x))&&(a(this,x,!0),H(()=>{a(this,x,!1),s(this,N)&&je(s(this,N),s(this,C))}))}get_effect_pending(){return s(this,ee).call(this),be(s(this,N))}error(e){var r=s(this,T).onerror;let i=s(this,T).failed;if(!r&&!i)throw e;s(this,S)&&(ie(s(this,S)),a(this,S,null)),s(this,m)&&(ie(s(this,m)),a(this,m,null)),s(this,w)&&(ie(s(this,w)),a(this,w,null)),O&&(Z(s(this,B)),$e(),Z(qe()));var o=!1,n=!1;const f=()=>{if(o){Xe();return}o=!0,n&&Ge(),s(this,w)!==null&&se(s(this,w),()=>{a(this,w,null)}),p(this,u,J).call(this,()=>{p(this,u,oe).call(this)})},d=l=>{try{n=!0,r==null||r(l,f),n=!1}catch(h){U(h,s(this,g)&&s(this,g).parent)}i&&a(this,w,p(this,u,J).call(this,()=>{try{return M(()=>{var h=W;h.b=this,h.f|=_e,i(s(this,E),()=>l,()=>f)})}catch(h){return U(h,s(this,g).parent),null}}))};H(()=>{var l;try{l=this.transform_error(e)}catch(h){U(h,s(this,g)&&s(this,g).parent);return}l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(d,h=>U(h,s(this,g)&&s(this,g).parent)):d(l)})}}E=new WeakMap,B=new WeakMap,T=new WeakMap,V=new WeakMap,g=new WeakMap,S=new WeakMap,m=new WeakMap,w=new WeakMap,A=new WeakMap,C=new WeakMap,k=new WeakMap,x=new WeakMap,j=new WeakMap,$=new WeakMap,N=new WeakMap,ee=new WeakMap,u=new WeakSet,Ae=function(){try{a(this,S,M(()=>s(this,V).call(this,s(this,E))))}catch(e){this.error(e)}},Ne=function(e){const r=s(this,T).failed;r&&a(this,w,M(()=>{r(s(this,E),()=>e,()=>()=>{})}))},Re=function(){const e=s(this,T).pending;e&&(this.is_pending=!0,a(this,m,M(()=>e(s(this,E)))),H(()=>{var r=a(this,A,document.createDocumentFragment()),i=me();r.append(i),a(this,S,p(this,u,J).call(this,()=>M(()=>s(this,V).call(this,i)))),s(this,k)===0&&(s(this,E).before(r),a(this,A,null),se(s(this,m),()=>{a(this,m,null)}),p(this,u,X).call(this,ge))}))},oe=function(){try{if(this.is_pending=this.has_pending_snippet(),a(this,k,0),a(this,C,0),a(this,S,M(()=>{s(this,V).call(this,s(this,E))})),s(this,k)>0){var e=a(this,A,document.createDocumentFragment());xe(s(this,S),e);const r=s(this,T).pending;a(this,m,M(()=>r(s(this,E))))}else p(this,u,X).call(this,ge)}catch(r){this.error(r)}},X=function(e){this.is_pending=!1,e.transfer_effects(s(this,j),s(this,$))},J=function(e){var r=W,i=we,o=Te;K(s(this,g)),Q(s(this,g)),ve(s(this,g).ctx);try{return He.ensure(),e()}catch(n){return Be(n),null}finally{K(r),Q(i),ve(o)}},fe=function(e,r){var i;if(!this.has_pending_snippet()){this.parent&&p(i=this.parent,u,fe).call(i,e,r);return}a(this,k,s(this,k)+e),s(this,k)===0&&(p(this,u,X).call(this,r),s(this,m)&&se(s(this,m),()=>{a(this,m,null)}),s(this,A)&&(s(this,E).before(s(this,A)),a(this,A,null)))};function St(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const pt=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function At(t){return pt.includes(t)}const gt={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 Nt(t){return t=t.toLowerCase(),gt[t]??t}const vt=["touchstart","touchmove"];function yt(t){return vt.includes(t)}const bt=["textarea","script","style","title"];function Rt(t){return bt.includes(t)}const I=Symbol("events"),ke=new Set,ue=new Set;function kt(t){if(!O)return;t.removeAttribute("onload"),t.removeAttribute("onerror");const e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Oe(t,e,r,i={}){function o(n){if(i.capture||le.call(e,n),!n.cancelBubble)return Ke(()=>r==null?void 0:r.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?H(()=>{e.addEventListener(t,o,i)}):e.addEventListener(t,o,i),o}function Ot(t,e,r,i={}){var o=Oe(e,t,r,i);return()=>{t.removeEventListener(e,o,i)}}function Dt(t,e,r,i,o){var n={capture:i,passive:o},f=Oe(t,e,r,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Je(()=>{e.removeEventListener(t,f,n)})}function Lt(t,e,r){(e[I]??(e[I]={}))[t]=r}function Mt(t){for(var e=0;e<t.length;e++)ke.add(t[e]);for(var r of ue)r(t)}let ye=null;function le(t){var D,b;var e=this,r=e.ownerDocument,i=t.type,o=((D=t.composedPath)==null?void 0:D.call(t))||[],n=o[0]||t.target;ye=t;var f=0,d=ye===t&&t[I];if(d){var l=o.indexOf(d);if(l!==-1&&(e===document||e===window)){t[I]=e;return}var h=o.indexOf(e);if(h===-1)return;l<=h&&(f=l)}if(n=o[f]||t.target,n!==e){Qe(t,"currentTarget",{configurable:!0,get(){return n||r}});var P=we,Y=W;Q(null),K(null);try{for(var R,v=[];n!==null;){var _=n.assignedSlot||n.parentNode||n.host||null;try{var y=(b=n[I])==null?void 0:b[i];y!=null&&(!n.disabled||t.target===n)&&y.call(n,t)}catch(L){R?v.push(L):R=L}if(t.cancelBubble||_===e||_===null)break;n=_}if(R){for(let L of v)queueMicrotask(()=>{throw L});throw R}}finally{t[I]=e,delete t.currentTarget,Q(P),K(Y)}}}function Ft(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=r,t.nodeValue=`${r}`)}function Et(t,e){return De(t,e)}function It(t,e){ne(),e.intro=e.intro??!1;const r=e.target,i=O,o=F;try{for(var n=Ze(r);n&&(n.nodeType!==Se||n.data!==et);)n=tt(n);if(!n)throw ae;z(!0),Z(n);const f=De(t,{...e,anchor:n});return z(!1),f}catch(f){if(f instanceof Error&&f.message.split(`
|
|
2
|
+
`).some(d=>d.startsWith("https://svelte.dev/e/")))throw f;return f!==ae&&console.warn("Failed to hydrate: ",f),e.recover===!1&&rt(),ne(),st(r),z(!1),Et(t,e)}finally{z(i),Z(o)}}const G=new Map;function De(t,{target:e,anchor:r,props:i={},events:o,context:n,intro:f=!0,transformError:d}){ne();var l=void 0,h=it(()=>{var P=r??e.appendChild(me());dt(P,{pending:()=>{}},v=>{at({});var _=Te;if(n&&(_.c=n),o&&(i.$$events=o),O&<(v,null),l=t(v,i)||{},O&&(W.nodes.end=F,F===null||F.nodeType!==Se||F.data!==ot))throw ft(),ae;ut()},d);var Y=new Set,R=v=>{for(var _=0;_<v.length;_++){var y=v[_];if(!Y.has(y)){Y.add(y);var D=yt(y);for(const te of[e,document]){var b=G.get(te);b===void 0&&(b=new Map,G.set(te,b));var L=b.get(y);L===void 0?(te.addEventListener(y,le,{passive:D}),b.set(y,1)):b.set(y,L+1)}}}};return R(nt(ke)),ue.add(R),()=>{var D;for(var v of Y)for(const b of[e,document]){var _=G.get(b),y=_.get(v);--y==0?(b.removeEventListener(v,le),_.delete(v),_.size===0&&G.delete(b)):_.set(v,y)}ue.delete(R),P!==r&&((D=P.parentNode)==null||D.removeChild(P))}});return ce.set(l,h),l}let ce=new WeakMap;function Vt(t,e){const r=ce.get(t);return r?(ce.delete(t),r(e)):Promise.resolve()}export{Lt as a,At as b,Oe as c,Mt as d,Dt as e,ct as f,Rt as g,It as h,St as i,Et as m,Nt as n,Ot as o,kt as r,Ft as s,Vt as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as e}from"./
|
|
1
|
+
import{s as e}from"./BXCWEhUd.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as c,g as l}from"./D5GvRCv7.js";import{ah as o,ai as b,aj as f,z as p,i as d,a5 as _}from"./BbWUOQ_m.js";let i=!1,s=Symbol();function y(e,n,r){const u=r[n]??(r[n]={store:null,source:p(void 0),unsubscribe:f});if(u.store!==e&&!(s in r))if(u.unsubscribe(),u.store=e??null,e==null)u.source.v=void 0,u.unsubscribe=f;else{var t=!0;u.unsubscribe=c(e,a=>{t?u.source.v=a:_(u.source,a)}),t=!1}return e&&s in r?l(e):d(u.source)}function m(){const e={};function n(){o(()=>{for(var r in e)e[r].unsubscribe();b(e,s,{enumerable:!1,value:!0})})}return[e,n]}function N(e){var n=i;try{return i=!1,[e(),i]}finally{i=n}}export{y as a,N as c,m as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var C=Object.defineProperty;var w=a=>{throw TypeError(a)};var D=(a,e,s)=>e in a?C(a,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):a[e]=s;var F=(a,e,s)=>D(a,typeof e!="symbol"?e+"":e,s),M=(a,e,s)=>e.has(a)||w("Cannot "+s);var t=(a,e,s)=>(M(a,e,"read from private field"),s?s.call(a):e.get(a)),u=(a,e,s)=>e.has(a)?w("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,s),A=(a,e,s,i)=>(M(a,e,"write to private field"),i?i.call(a,s):e.set(a,s),s);import{F as N,M as g,G as R,n as E,p as x,m as S,h as k,g as B,L as G,t as I,b as L,a as P,E as j,r as q,s as z,c as H,e as T}from"./BbWUOQ_m.js";var d,l,c,p,m,v,b;class J{constructor(e,s=!0){F(this,"anchor");u(this,d,new Map);u(this,l,new Map);u(this,c,new Map);u(this,p,new Set);u(this,m,!0);u(this,v,e=>{if(t(this,d).has(e)){var s=t(this,d).get(e),i=t(this,l).get(s);if(i)N(i),t(this,p).delete(s);else{var f=t(this,c).get(s);f&&(t(this,l).set(s,f.effect),t(this,c).delete(s),f.fragment.lastChild.remove(),this.anchor.before(f.fragment),i=f.effect)}for(const[n,h]of t(this,d)){if(t(this,d).delete(n),n===e)break;const r=t(this,c).get(h);r&&(g(r.effect),t(this,c).delete(h))}for(const[n,h]of t(this,l)){if(n===s||t(this,p).has(n))continue;const r=()=>{if(Array.from(t(this,d).values()).includes(n)){var _=document.createDocumentFragment();G(h,_),_.append(E()),t(this,c).set(n,{effect:h,fragment:_})}else g(h);t(this,p).delete(n),t(this,l).delete(n)};t(this,m)||!i?(t(this,p).add(n),R(h,r,!1)):r()}}});u(this,b,e=>{t(this,d).delete(e);const s=Array.from(t(this,d).values());for(const[i,f]of t(this,c))s.includes(i)||(g(f.effect),t(this,c).delete(i))});this.anchor=e,A(this,m,s)}ensure(e,s){var i=S,f=I();if(s&&!t(this,l).has(e)&&!t(this,c).has(e))if(f){var n=document.createDocumentFragment(),h=E();n.append(h),t(this,c).set(e,{effect:x(()=>s(h)),fragment:n})}else t(this,l).set(e,x(()=>s(this.anchor)));if(t(this,d).set(i,e),f){for(const[r,o]of t(this,l))r===e?i.unskip_effect(o):i.skip_effect(o);for(const[r,o]of t(this,c))r===e?i.unskip_effect(o.effect):i.skip_effect(o.effect);i.oncommit(t(this,v)),i.ondiscard(t(this,b))}else k&&(this.anchor=B),t(this,v).call(this,i)}}d=new WeakMap,l=new WeakMap,c=new WeakMap,p=new WeakMap,m=new WeakMap,v=new WeakMap,b=new WeakMap;function Q(a,e,s=!1){var i;k&&(i=B,P());var f=new J(a),n=s?j:0;function h(r,o){if(k){var _=q(i);if(r!==parseInt(_.substring(1))){var y=z();H(y),f.anchor=y,T(!1),f.ensure(r,o),T(!0);return}}f.ensure(r,o)}L(()=>{var r=!1;e((o,_=0)=>{r=!0,h(_,o)}),r||h(-1,null)},n)}export{J as B,Q as i};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{S as m,m as v,T as _,U as b,V as i,h as y}from"./BbWUOQ_m.js";function h(e,l,u=l){var s=new WeakSet;m(e,"input",async r=>{var a=r?e.defaultValue:e.value;if(a=t(e)?o(a):a,u(a),v!==null&&s.add(v),await _(),a!==(a=l())){var d=e.selectionStart,f=e.selectionEnd,n=e.value.length;if(e.value=a??"",f!==null){var c=e.value.length;d===f&&f===n&&c>n?(e.selectionStart=c,e.selectionEnd=c):(e.selectionStart=d,e.selectionEnd=Math.min(f,c))}}}),(y&&e.defaultValue!==e.value||b(l)==null&&e.value)&&(u(t(e)?o(e.value):e.value),v!==null&&s.add(v)),i(()=>{var r=l();if(e===document.activeElement){var a=v;if(s.has(a))return}t(e)&&r===o(e.value)||e.type==="date"&&!r&&!e.value||r!==e.value&&(e.value=r??"")})}function t(e){var l=e.type;return l==="number"||l==="range"}function o(e){return e===""?null:+e}export{h as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as _,a as s,f as g}from"./BK3WtZwv.js";import"./lk5LaiqA.js";import{at as d,aC as b,aD as h,f as v,au as $,a5 as k,i as n,z as y,az as B}from"./BbWUOQ_m.js";import{s as z,a as j}from"./DjNLq3TF.js";import{i as x}from"./Dt2CddFe.js";import{s as C}from"./B2Q1a1-H.js";import{i as D}from"./CVzlFH44.js";import{p as H}from"./DcAshVxe.js";var P=g('<a class="back-to-parent admin-toolbar-btn admin-toolbar-btn--secondary svelte-1md38m6" data-sveltekit-preload-data="hover" aria-label="返回上一层">返回</a>');function I(i,p){d(p,!1);const r=()=>j(H,"$page",f),[f,l]=z(),e=y();function m(t){const a=t.split("/").filter(Boolean);return a.length===0?null:a.length===1?a[0]==="admin"?null:a[0]==="plugins"||a[0]==="logs"?"/":null:(a.pop(),"/"+a.join("/"))}b(()=>r(),()=>{k(e,m(r().url.pathname))}),h(),D();var o=_(),c=v(o);{var u=t=>{var a=P();B(()=>C(a,"href",n(e))),s(t,a)};x(c,t=>{n(e)&&t(u)})}s(i,o),$(),l()}export{I as B};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{W as S,X as T,V as Y,U as x,Y as E,Z as O,_ as k}from"./BbWUOQ_m.js";function n(r,f){return r===f||(r==null?void 0:r[k])===f}function D(r={},f,i,A){var p=S.r,h=E;return T(()=>{var a,t;return Y(()=>{a=t,t=[],x(()=>{r!==i(...t)&&(f(r,...t),a&&n(i(...a),r)&&f(null,...a))})}),()=>{let s=h;for(;s!==p&&s.parent!==null&&s.parent.f&O;)s=s.parent;const w=()=>{t&&n(i(...t),r)&&f(null,...t)},c=s.teardown;s.teardown=()=>{w(),c==null||c()}}}),r}export{D as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{as as a}from"./BbWUOQ_m.js";a();
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
var Zr=Object.defineProperty;var Jr=Object.getPrototypeOf;var Qr=Reflect.get;var Hn=n=>{throw TypeError(n)};var $r=(n,t,e)=>t in n?Zr(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var w=(n,t,e)=>$r(n,typeof t!="symbol"?t+"":t,e),ln=(n,t,e)=>t.has(n)||Hn("Cannot "+e);var s=(n,t,e)=>(ln(n,t,"read from private field"),e?e.call(n):t.get(n)),c=(n,t,e)=>t.has(n)?Hn("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),E=(n,t,e,r)=>(ln(n,t,"write to private field"),r?r.call(n,e):t.set(n,e),e),A=(n,t,e)=>(ln(n,t,"access private method"),e);var Xn=(n,t,e)=>Qr(Jr(n),e,t);import{b as ts,a as C,d as es,c as k,p as nn,f as we}from"./BK3WtZwv.js";import"./lk5LaiqA.js";import{bb as ns,b as hr,E as pr,h as Y,a as Yn,g as dn,bi as rs,aF as ss,bj as is,N as os,n as as,e as Zn,c as fn,Y as us,ah as cs,at as W,au as U,aq as Mt,U as Kt,av as Ee,f as O,aw as gn,ax as Se,i as v,aA as _,aB as ls,b4 as x,a4 as ds,a5 as T,bk as Jn,A as fs,aN as Bt,bl as hs,bm as Qn,bn as ps,am as vs,an as rn,T as gs,aj as z,bo as bs,bp as ms}from"./BbWUOQ_m.js";import{e as ys,i as ws}from"./BQqoDzLx.js";import{s as Es}from"./B-OsL1Ct.js";import{g as Ss,f as Ts,o as V,m as As,u as Cs}from"./DMWEh-Ek.js";import{B as vr,i as it}from"./Dt2CddFe.js";import{e as kt,f as hn}from"./B2Q1a1-H.js";import{i as Is}from"./CVzlFH44.js";import{l as $n,p as b,r as sn,s as pn}from"./xtNWTdbD.js";import{k as Os}from"./Cihqbfi5.js";function Ns(){return Symbol(ns)}function F(n,t,...e){var r=new vr(n);hr(()=>{const i=t()??null;r.ensure(i,i&&(a=>i(a,...e)))},pr)}function Ps(n,t,e,r,i,a){let o=Y;Y&&Yn();var u=null;Y&&dn.nodeType===rs&&(u=dn,Yn());var f=Y?dn:n,d=new vr(f,!1);hr(()=>{const g=t()||null;var p=is;if(g===null){d.ensure(null,null);return}return d.ensure(g,S=>{if(g){if(u=Y?u:ss(g,p),ts(u,u),r){Y&&Ss(g)&&u.append(document.createComment(""));var m=Y?os(u):u.appendChild(as());Y&&(m===null?Zn(!1):fn(m)),r(u,m)}us.nodes.end=u,S.before(u)}Y&&fn(S)}),()=>{}},pr),cs(()=>{}),o&&(Zn(!0),fn(f))}/**
|
|
2
|
+
* @license lucide-svelte v0.460.1 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const ks={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 xs=es("<svg><!><!></svg>");function Bo(n,t){const e=$n(t,["children","$$slots","$$events","$$legacy"]),r=$n(e,["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"]);W(t,!1);let i=b(t,"name",8,void 0),a=b(t,"color",8,"currentColor"),o=b(t,"size",8,24),u=b(t,"strokeWidth",8,2),f=b(t,"absoluteStrokeWidth",8,!1),d=b(t,"iconNode",24,()=>[]);const g=(...l)=>l.filter((h,I,D)=>!!h&&D.indexOf(h)===I).join(" ");Is();var p=xs();kt(p,(l,h)=>({...ks,...r,width:o(),height:o(),stroke:a(),"stroke-width":l,class:h}),[()=>(Mt(f()),Mt(u()),Mt(o()),Kt(()=>f()?Number(u())*24/Number(o()):u())),()=>(Mt(i()),Mt(e),Kt(()=>g("lucide-icon","lucide",i()?`lucide-${i()}`:"",e.class)))]);var S=Ee(p);ys(S,1,d,ws,(l,h)=>{var I=_(()=>ls(v(h),2));let D=()=>v(I)[0],j=()=>v(I)[1];var B=k(),yt=O(B);Ps(yt,D,!0,(un,Ae)=>{kt(un,()=>({...j()}))}),C(l,B)});var m=gn(S);Es(m,t,"default",{}),Se(p),C(n,p),U()}function _s(n){return typeof n=="function"}function Te(n){return n!==null&&typeof n=="object"}const Rs=["string","number","bigint","boolean"];function bn(n){return n==null||Rs.includes(typeof n)?!0:Array.isArray(n)?n.every(t=>bn(t)):typeof n=="object"?Object.getPrototypeOf(n)===Object.prototype:!1}const Fe=Symbol("box"),gr=Symbol("is-writable");function y(n,t){const e=_(n);return t?{[Fe]:!0,[gr]:!0,get current(){return v(e)},set current(r){t(r)}}:{[Fe]:!0,get current(){return n()}}}function br(n){return Te(n)&&Fe in n}function Vo(n){return br(n)?n:_s(n)?y(n):mr(n)}function mr(n){let t=x(ds(n));return{[Fe]:!0,[gr]:!0,get current(){return v(t)},set current(e){T(t,e,!0)}}}function yr(...n){return function(t){var e;for(const r of n)if(r){if(t.defaultPrevented)return;typeof r=="function"?r.call(this,t):(e=r.current)==null||e.call(this,t)}}}var tr=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Fs=/\n/g,Ds=/^\s*/,Ls=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ms=/^:\s*/,Bs=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Vs=/^[;\s]*/,Ws=/^\s+|\s+$/g,Us=`
|
|
7
|
+
`,er="/",nr="*",ct="",js="comment",Ks="declaration";function zs(n,t){if(typeof n!="string")throw new TypeError("First argument must be a string");if(!n)return[];t=t||{};var e=1,r=1;function i(l){var h=l.match(Fs);h&&(e+=h.length);var I=l.lastIndexOf(Us);r=~I?l.length-I:r+l.length}function a(){var l={line:e,column:r};return function(h){return h.position=new o(l),d(),h}}function o(l){this.start=l,this.end={line:e,column:r},this.source=t.source}o.prototype.content=n;function u(l){var h=new Error(t.source+":"+e+":"+r+": "+l);if(h.reason=l,h.filename=t.source,h.line=e,h.column=r,h.source=n,!t.silent)throw h}function f(l){var h=l.exec(n);if(h){var I=h[0];return i(I),n=n.slice(I.length),h}}function d(){f(Ds)}function g(l){var h;for(l=l||[];h=p();)h!==!1&&l.push(h);return l}function p(){var l=a();if(!(er!=n.charAt(0)||nr!=n.charAt(1))){for(var h=2;ct!=n.charAt(h)&&(nr!=n.charAt(h)||er!=n.charAt(h+1));)++h;if(h+=2,ct===n.charAt(h-1))return u("End of comment missing");var I=n.slice(2,h-2);return r+=2,i(I),n=n.slice(h),r+=2,l({type:js,comment:I})}}function S(){var l=a(),h=f(Ls);if(h){if(p(),!f(Ms))return u("property missing ':'");var I=f(Bs),D=l({type:Ks,property:rr(h[0].replace(tr,ct)),value:I?rr(I[0].replace(tr,ct)):ct});return f(Vs),D}}function m(){var l=[];g(l);for(var h;h=S();)h!==!1&&(l.push(h),g(l));return l}return d(),m()}function rr(n){return n?n.replace(Ws,ct):ct}function Gs(n,t){let e=null;if(!n||typeof n!="string")return e;const r=zs(n),i=typeof t=="function";return r.forEach(a=>{if(a.type!=="declaration")return;const{property:o,value:u}=a;i?t(o,u,a):u&&(e=e||{},e[o]=u)}),e}const qs=/\d/,Hs=["-","_","/","."];function Xs(n=""){if(!qs.test(n))return n!==n.toLowerCase()}function Ys(n){const t=[];let e="",r,i;for(const a of n){const o=Hs.includes(a);if(o===!0){t.push(e),e="",r=void 0;continue}const u=Xs(a);if(i===!1){if(r===!1&&u===!0){t.push(e),e=a,r=u;continue}if(r===!0&&u===!1&&e.length>1){const f=e.at(-1);t.push(e.slice(0,Math.max(0,e.length-1))),e=f+a,r=u;continue}}e+=a,r=u,i=o}return t.push(e),t}function wr(n){return n?Ys(n).map(t=>Js(t)).join(""):""}function Zs(n){return Qs(wr(n||""))}function Js(n){return n?n[0].toUpperCase()+n.slice(1):""}function Qs(n){return n?n[0].toLowerCase()+n.slice(1):""}function Oe(n){if(!n)return{};const t={};function e(r,i){if(r.startsWith("-moz-")||r.startsWith("-webkit-")||r.startsWith("-ms-")||r.startsWith("-o-")){t[wr(r)]=i;return}if(r.startsWith("--")){t[r]=i;return}t[Zs(r)]=i}return Gs(n,e),t}function jt(...n){return(...t)=>{for(const e of n)typeof e=="function"&&e(...t)}}function $s(n,t){const e=RegExp(n,"g");return r=>{if(typeof r!="string")throw new TypeError(`expected an argument of type string, but got ${typeof r}`);return r.match(e)?r.replace(e,t):r}}const ti=$s(/[A-Z]/,n=>`-${n.toLowerCase()}`);function ei(n){if(!n||typeof n!="object"||Array.isArray(n))throw new TypeError(`expected an argument of type object, but got ${typeof n}`);return Object.keys(n).map(t=>`${ti(t)}: ${n[t]};`).join(`
|
|
8
|
+
`)}function ni(n={}){return ei(n).replace(`
|
|
9
|
+
`," ")}const ri=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],si=new Set(ri);function ii(n){return si.has(n)}function ot(...n){const t={...n[0]};for(let e=1;e<n.length;e++){const r=n[e];if(r){for(const i of Object.keys(r)){const a=t[i],o=r[i],u=typeof a=="function",f=typeof o=="function";if(u&&ii(i)){const d=a,g=o;t[i]=yr(d,g)}else if(u&&f)t[i]=jt(a,o);else if(i==="class"){const d=bn(a),g=bn(o);d&&g?t[i]=hn(a,o):d?t[i]=hn(a):g&&(t[i]=hn(o))}else if(i==="style"){const d=typeof a=="object",g=typeof o=="object",p=typeof a=="string",S=typeof o=="string";if(d&&g)t[i]={...a,...o};else if(d&&S){const m=Oe(o);t[i]={...a,...m}}else if(p&&g){const m=Oe(a);t[i]={...m,...o}}else if(p&&S){const m=Oe(a),l=Oe(o);t[i]={...m,...l}}else d?t[i]=a:g?t[i]=o:p?t[i]=a:S&&(t[i]=o)}else t[i]=o!==void 0?o:a}for(const i of Object.getOwnPropertySymbols(r)){const a=t[i],o=r[i];t[i]=o!==void 0?o:a}}}return typeof t.style=="object"&&(t.style=ni(t.style).replaceAll(`
|
|
10
|
+
`," ")),t.hidden===!1&&(t.hidden=void 0,delete t.hidden),t.disabled===!1&&(t.disabled=void 0,delete t.disabled),t}const oi=typeof window<"u"?window:void 0;function ai(n){let t=n.activeElement;for(;t!=null&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var G,q,Z,Ue,K,Ut,ke;const Dn=class Dn extends Map{constructor(e){super();c(this,K);c(this,G,new Map);c(this,q,x(0));c(this,Z,x(0));c(this,Ue,Jn||-1);if(e){for(var[r,i]of e)super.set(r,i);s(this,Z).v=super.size}}has(e){var r=s(this,G),i=r.get(e);if(i===void 0)if(super.has(e))i=A(this,K,Ut).call(this,0),r.set(e,i);else return v(s(this,q)),!1;return v(i),!0}forEach(e,r){A(this,K,ke).call(this),super.forEach(e,r)}get(e){var r=s(this,G),i=r.get(e);if(i===void 0)if(super.has(e))i=A(this,K,Ut).call(this,0),r.set(e,i);else{v(s(this,q));return}return v(i),super.get(e)}set(e,r){var p;var i=s(this,G),a=i.get(e),o=super.get(e),u=super.set(e,r),f=s(this,q);if(a===void 0)a=A(this,K,Ut).call(this,0),i.set(e,a),T(s(this,Z),super.size),Bt(f);else if(o!==r){Bt(a);var d=f.reactions===null?null:new Set(f.reactions),g=d===null||!((p=a.reactions)!=null&&p.every(S=>d.has(S)));g&&Bt(f)}return u}delete(e){var r=s(this,G),i=r.get(e),a=super.delete(e);return i!==void 0&&(r.delete(e),T(i,-1)),a&&(T(s(this,Z),super.size),Bt(s(this,q))),a}clear(){if(super.size!==0){super.clear();var e=s(this,G);T(s(this,Z),0);for(var r of e.values())T(r,-1);Bt(s(this,q)),e.clear()}}keys(){return v(s(this,q)),super.keys()}values(){return A(this,K,ke).call(this),super.values()}entries(){return A(this,K,ke).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return v(s(this,Z)),super.size}};G=new WeakMap,q=new WeakMap,Z=new WeakMap,Ue=new WeakMap,K=new WeakSet,Ut=function(e){return Jn===s(this,Ue)?x(e):fs(e)},ke=function(){v(s(this,q));var e=s(this,G);if(s(this,Z).v!==e.size){for(var r of Xn(Dn.prototype,this,"keys").call(this))if(!e.has(r)){var i=A(this,K,Ut).call(this,0);e.set(r,i)}}for([,i]of s(this,G))v(i)};let mn=Dn;var Et,zt;class ui{constructor(t={}){c(this,Et);c(this,zt);const{window:e=oi,document:r=e==null?void 0:e.document}=t;e!==void 0&&(E(this,Et,r),E(this,zt,Ts(i=>{const a=V(e,"focusin",i),o=V(e,"focusout",i);return()=>{a(),o()}})))}get current(){var t;return(t=s(this,zt))==null||t.call(this),s(this,Et)?ai(s(this,Et)):null}}Et=new WeakMap,zt=new WeakMap;new ui;var Gt,J;class Er{constructor(t){c(this,Gt);c(this,J);E(this,Gt,t),E(this,J,Symbol(t))}get key(){return s(this,J)}exists(){return hs(s(this,J))}get(){const t=Qn(s(this,J));if(t===void 0)throw new Error(`Context "${s(this,Gt)}" not found`);return t}getOr(t){const e=Qn(s(this,J));return e===void 0?t:e}set(t){return ps(s(this,J),t)}}Gt=new WeakMap,J=new WeakMap;function ci(n,t){switch(n){case"post":rn(t);break;case"pre":vs(t);break}}function Sr(n,t,e,r={}){const{lazy:i=!1}=r;let a=!i,o=Array.isArray(n)?[]:void 0;ci(t,()=>{const u=Array.isArray(n)?n.map(d=>d()):n();if(!a){a=!0,o=u;return}const f=Kt(()=>e(u,o));return o=u,f})}function X(n,t,e){Sr(n,"post",t,e)}function li(n,t,e){Sr(n,"pre",t,e)}X.pre=li;function Rt(n){rn(()=>()=>{n()})}function di(n,t){return setTimeout(t,n)}function Fn(n){gs().then(n)}const fi=1,hi=9,pi=11;function yn(n){return Te(n)&&n.nodeType===fi&&typeof n.nodeName=="string"}function Tr(n){return Te(n)&&n.nodeType===hi}function vi(n){var t;return Te(n)&&((t=n.constructor)==null?void 0:t.name)==="VisualViewport"}function gi(n){return Te(n)&&n.nodeType!==void 0}function Ar(n){return gi(n)&&n.nodeType===pi&&"host"in n}function bi(n,t){var r;if(!n||!t||!yn(n)||!yn(t))return!1;const e=(r=t.getRootNode)==null?void 0:r.call(t);if(n===t||n.contains(t))return!0;if(e&&Ar(e)){let i=t;for(;i;){if(n===i)return!0;i=i.parentNode||i.host}}return!1}function mi(n){return Tr(n)?n:vi(n)?n.document:(n==null?void 0:n.ownerDocument)??document}function yi(n){var t;return Ar(n)?yi(n.host):Tr(n)?n.defaultView??window:yn(n)?((t=n.ownerDocument)==null?void 0:t.defaultView)??window:window}function wi(n){let t=n.activeElement;for(;t!=null&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var qt;class Cr{constructor(t){w(this,"element");c(this,qt,_(()=>this.element.current?this.element.current.getRootNode()??document:document));w(this,"getDocument",()=>mi(this.root));w(this,"getWindow",()=>this.getDocument().defaultView??window);w(this,"getActiveElement",()=>wi(this.root));w(this,"isActiveElement",t=>t===this.getActiveElement());w(this,"querySelector",t=>this.root?this.root.querySelector(t):null);w(this,"querySelectorAll",t=>this.root?this.root.querySelectorAll(t):[]);w(this,"setTimeout",(t,e)=>this.getWindow().setTimeout(t,e));w(this,"clearTimeout",t=>this.getWindow().clearTimeout(t));typeof t=="function"?this.element=y(t):this.element=t}get root(){return v(s(this,qt))}set root(t){T(s(this,qt),t)}getElementById(t){return this.root.getElementById(t)}}qt=new WeakMap;function on(n,t){return{[Ns()]:e=>br(n)?(n.current=e,Kt(()=>t==null?void 0:t(e)),()=>{"isConnected"in e&&e.isConnected||(n.current=null,t==null||t(null))}):(n(e),Kt(()=>t==null?void 0:t(e)),()=>{"isConnected"in e&&e.isConnected||(n(null),t==null||t(null))})}}function Wo(n){return n?"true":"false"}function De(n){return n?"":void 0}function Ei(n){return n?"open":"closed"}var St,Ht;class Si{constructor(t){c(this,St);c(this,Ht);w(this,"attrs");E(this,St,t.getVariant?t.getVariant():null),E(this,Ht,s(this,St)?`data-${s(this,St)}-`:`data-${t.component}-`),this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(t.parts.map(e=>[e,this.getAttr(e)]))}getAttr(t,e){return e?`data-${e}-${t}`:`${s(this,Ht)}${t}`}selector(t,e){return`[${this.getAttr(t,e)}]`}}St=new WeakMap,Ht=new WeakMap;function Ir(n){const t=new Si(n);return{...t.attrs,selector:t.selector,getAttr:t.getAttr}}const Ti="Enter",Ai="Escape",Ci=" ",Or=typeof document<"u",sr=Ii();function Ii(){var n,t;return Or&&((n=window==null?void 0:window.navigator)==null?void 0:n.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function ir(n){return n instanceof HTMLElement}function Uo(n){return n instanceof Element}function Oi(n){return n instanceof Element||n instanceof SVGElement}function jo(n){return n.pointerType==="touch"}function Ko(n){return n!==null}var Tt,lt,tt,wn,xe;class Ni{constructor(t){c(this,tt);c(this,Tt);c(this,lt,null);E(this,Tt,t),Rt(()=>A(this,tt,wn).call(this))}run(t){A(this,tt,wn).call(this);const e=s(this,Tt).ref.current;if(e){if(typeof e.getAnimations!="function"){A(this,tt,xe).call(this,t);return}E(this,lt,window.requestAnimationFrame(()=>{const r=e.getAnimations();if(r.length===0){A(this,tt,xe).call(this,t);return}Promise.allSettled(r.map(i=>i.finished)).then(()=>{A(this,tt,xe).call(this,t)})}))}}}Tt=new WeakMap,lt=new WeakMap,tt=new WeakSet,wn=function(){s(this,lt)&&(window.cancelAnimationFrame(s(this,lt)),E(this,lt,null))},xe=function(t){const e=()=>{t()};s(this,Tt).afterTick?Fn(e):e()};var H,Xt,Yt,dt;class or{constructor(t){c(this,H);c(this,Xt);c(this,Yt);c(this,dt,x(!1));E(this,H,t),T(s(this,dt),t.open.current,!0),E(this,Xt,t.enabled??!0),E(this,Yt,new Ni({ref:s(this,H).ref,afterTick:s(this,H).open})),X(()=>s(this,H).open.current,e=>{e&&T(s(this,dt),!0),s(this,Xt)&&s(this,Yt).run(()=>{var r,i;e===s(this,H).open.current&&(s(this,H).open.current||T(s(this,dt),!1),(i=(r=s(this,H)).onComplete)==null||i.call(r))})})}get shouldRender(){return v(s(this,dt))}}H=new WeakMap,Xt=new WeakMap,Yt=new WeakMap,dt=new WeakMap;function P(){}function an(n,t){return`bits-${n}`}const Pi=Ir({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),xt=new Er("Dialog.Root | AlertDialog.Root");var Zt,Jt,Qt,$t,te,ee,ne,re,se,ie,oe;const Ln=class Ln{constructor(t,e){w(this,"opts");c(this,Zt,x(null));c(this,Jt,x(null));c(this,Qt,x(null));c(this,$t,x(null));c(this,te,x(void 0));c(this,ee,x(void 0));c(this,ne,x(void 0));c(this,re,x(void 0));c(this,se,x(null));c(this,ie,x(0));w(this,"depth");w(this,"parent");w(this,"contentPresence");w(this,"overlayPresence");w(this,"getBitsAttr",t=>Pi.getAttr(t,this.opts.variant.current));c(this,oe,_(()=>({"data-state":Ei(this.opts.open.current)})));this.opts=t,this.parent=e,this.depth=e?e.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new or({ref:y(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new or({ref:y(()=>this.overlayNode),open:this.opts.open,enabled:!0}),X(()=>this.opts.open.current,r=>{this.parent&&(r?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),Rt(()=>{var r;this.opts.open.current&&((r=this.parent)==null||r.decrementNested())})}static create(t){const e=xt.getOr(null);return xt.set(new Ln(t,e))}get triggerNode(){return v(s(this,Zt))}set triggerNode(t){T(s(this,Zt),t,!0)}get contentNode(){return v(s(this,Jt))}set contentNode(t){T(s(this,Jt),t,!0)}get overlayNode(){return v(s(this,Qt))}set overlayNode(t){T(s(this,Qt),t,!0)}get descriptionNode(){return v(s(this,$t))}set descriptionNode(t){T(s(this,$t),t,!0)}get contentId(){return v(s(this,te))}set contentId(t){T(s(this,te),t,!0)}get titleId(){return v(s(this,ee))}set titleId(t){T(s(this,ee),t,!0)}get triggerId(){return v(s(this,ne))}set triggerId(t){T(s(this,ne),t,!0)}get descriptionId(){return v(s(this,re))}set descriptionId(t){T(s(this,re),t,!0)}get cancelNode(){return v(s(this,se))}set cancelNode(t){T(s(this,se),t,!0)}get nestedOpenCount(){return v(s(this,ie))}set nestedOpenCount(t){T(s(this,ie),t,!0)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}incrementNested(){var t;this.nestedOpenCount++,(t=this.parent)==null||t.incrementNested()}decrementNested(){var t;this.nestedOpenCount!==0&&(this.nestedOpenCount--,(t=this.parent)==null||t.decrementNested())}get sharedProps(){return v(s(this,oe))}set sharedProps(t){T(s(this,oe),t)}};Zt=new WeakMap,Jt=new WeakMap,Qt=new WeakMap,$t=new WeakMap,te=new WeakMap,ee=new WeakMap,ne=new WeakMap,re=new WeakMap,se=new WeakMap,ie=new WeakMap,oe=new WeakMap;let En=Ln;var ae;const Mn=class Mn{constructor(t,e){w(this,"opts");w(this,"root");w(this,"attachment");c(this,ae,_(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment})));this.opts=t,this.root=e,this.attachment=on(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(t){return new Mn(t,xt.get())}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===Ci||t.key===Ti)&&(t.preventDefault(),this.root.handleClose())}get props(){return v(s(this,ae))}set props(t){T(s(this,ae),t)}};ae=new WeakMap;let Sn=Mn;var ue;const Bn=class Bn{constructor(t,e){w(this,"opts");w(this,"root");w(this,"attachment");c(this,ue,_(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment})));this.opts=t,this.root=e,this.root.titleId=this.opts.id.current,this.attachment=on(this.opts.ref),X.pre(()=>this.opts.id.current,r=>{this.root.titleId=r})}static create(t){return new Bn(t,xt.get())}get props(){return v(s(this,ue))}set props(t){T(s(this,ue),t)}};ue=new WeakMap;let Tn=Bn;var ce,le;const Vn=class Vn{constructor(t,e){w(this,"opts");w(this,"root");w(this,"attachment");c(this,ce,_(()=>({open:this.root.opts.open.current})));c(this,le,_(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":De(this.root.nestedOpenCount>0),"data-nested":De(this.root.parent!==null),...this.root.sharedProps,...this.attachment})));this.opts=t,this.root=e,this.attachment=on(this.opts.ref,r=>{this.root.contentNode=r,this.root.contentId=r==null?void 0:r.id})}static create(t){return new Vn(t,xt.get())}get snippetProps(){return v(s(this,ce))}set snippetProps(t){T(s(this,ce),t)}get props(){return v(s(this,le))}set props(t){T(s(this,le),t)}get shouldRender(){return this.root.contentPresence.shouldRender}};ce=new WeakMap,le=new WeakMap;let An=Vn;var de,fe;const Wn=class Wn{constructor(t,e){w(this,"opts");w(this,"root");w(this,"attachment");c(this,de,_(()=>({open:this.root.opts.open.current})));c(this,fe,_(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":De(this.root.nestedOpenCount>0),"data-nested":De(this.root.parent!==null),...this.root.sharedProps,...this.attachment})));this.opts=t,this.root=e,this.attachment=on(this.opts.ref,r=>this.root.overlayNode=r)}static create(t){return new Wn(t,xt.get())}get snippetProps(){return v(s(this,de))}set snippetProps(t){T(s(this,de),t)}get props(){return v(s(this,fe))}set props(t){T(s(this,fe),t)}get shouldRender(){return this.root.overlayPresence.shouldRender}};de=new WeakMap,fe=new WeakMap;let Cn=Wn;var ki=we("<div><!></div>");function zo(n,t){const e=nn();W(t,!0);let r=b(t,"id",19,()=>an(e)),i=b(t,"ref",15,null),a=b(t,"level",3,2),o=sn(t,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const u=Tn.create({id:y(()=>r()),level:y(()=>a()),ref:y(()=>i(),m=>i(m))}),f=_(()=>ot(o,u.props));var d=k(),g=O(d);{var p=m=>{var l=k(),h=O(l);F(h,()=>t.child,()=>({props:v(f)})),C(m,l)},S=m=>{var l=ki();kt(l,()=>({...v(f)}));var h=Ee(l);F(h,()=>t.children??z),Se(l),C(m,l)};it(g,m=>{t.child?m(p):m(S,-1)})}C(n,d),U()}function xi(n,t){var e=k(),r=O(e);Os(r,()=>t.children,i=>{var a=k(),o=O(a);F(o,()=>t.children??z),C(i,a)}),C(n,e)}const _i=new Er("BitsConfig");function Ri(){const n=new Fi(null,{});return _i.getOr(n).opts}class Fi{constructor(t,e){w(this,"opts");const r=Di(t,e);this.opts={defaultPortalTo:r(i=>i.defaultPortalTo),defaultLocale:r(i=>i.defaultLocale)}}}function Di(n,t){return e=>y(()=>{var a,o;const i=(a=e(t))==null?void 0:a.current;if(i!==void 0)return i;if(n!==null)return(o=e(n.opts))==null?void 0:o.current})}function Li(n,t){return e=>{const r=Ri();return y(()=>{const i=e();if(i!==void 0)return i;const a=n(r).current;return a!==void 0?a:t})}}const Mi=Li(n=>n.defaultPortalTo,"body");function Go(n,t){W(t,!0);const e=Mi(()=>t.to),r=bs();let i=_(a);function a(){if(!Or||t.disabled)return null;let p=null;return typeof e.current=="string"?p=document.querySelector(e.current):p=e.current,p}let o;function u(){o&&(Cs(o),o=null)}X([()=>v(i),()=>t.disabled],([p,S])=>{if(!p||S){u();return}return o=As(xi,{target:p,props:{children:t.children},context:r}),()=>{u()}});var f=k(),d=O(f);{var g=p=>{var S=k(),m=O(S);F(m,()=>t.children??z),C(p,S)};it(d,p=>{t.disabled&&p(g)})}C(n,f),U()}function ar(n,t=500){let e=null;const r=(...i)=>{e!==null&&clearTimeout(e),e=setTimeout(()=>{n(...i)},t)};return r.destroy=()=>{e!==null&&(clearTimeout(e),e=null)},r}function Nr(n,t){return n===t||n.contains(t)}function Pr(n){return(n==null?void 0:n.ownerDocument)??document}function Bi(n,t){const{clientX:e,clientY:r}=n,i=t.getBoundingClientRect();return e<i.left||e>i.right||r<i.top||r>i.bottom}/*!
|
|
11
|
+
* tabbable 6.4.0
|
|
12
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
13
|
+
*/var kr=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Le=kr.join(","),xr=typeof Element>"u",mt=xr?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Me=!xr&&Element.prototype.getRootNode?function(n){var t;return n==null||(t=n.getRootNode)===null||t===void 0?void 0:t.call(n)}:function(n){return n==null?void 0:n.ownerDocument},Be=function(t,e){var r;e===void 0&&(e=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),a=i===""||i==="true",o=a||e&&t&&(typeof t.closest=="function"?t.closest("[inert]"):Be(t.parentNode));return o},Vi=function(t){var e,r=t==null||(e=t.getAttribute)===null||e===void 0?void 0:e.call(t,"contenteditable");return r===""||r==="true"},_r=function(t,e,r){if(Be(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(Le));return e&&mt.call(t,Le)&&i.unshift(t),i=i.filter(r),i},Ve=function(t,e,r){for(var i=[],a=Array.from(t);a.length;){var o=a.shift();if(!Be(o,!1))if(o.tagName==="SLOT"){var u=o.assignedElements(),f=u.length?u:o.children,d=Ve(f,!0,r);r.flatten?i.push.apply(i,d):i.push({scopeParent:o,candidates:d})}else{var g=mt.call(o,Le);g&&r.filter(o)&&(e||!t.includes(o))&&i.push(o);var p=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),S=!Be(p,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(p&&S){var m=Ve(p===!0?o.children:p.children,!0,r);r.flatten?i.push.apply(i,m):i.push({scopeParent:o,candidates:m})}else a.unshift.apply(a,o.children)}}return i},Rr=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Fr=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Vi(t))&&!Rr(t)?0:t.tabIndex},Wi=function(t,e){var r=Fr(t);return r<0&&e&&!Rr(t)?0:r},Ui=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},Dr=function(t){return t.tagName==="INPUT"},ji=function(t){return Dr(t)&&t.type==="hidden"},Ki=function(t){var e=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return e},zi=function(t,e){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===e)return t[r]},Gi=function(t){if(!t.name)return!0;var e=t.form||Me(t),r=function(u){return e.querySelectorAll('input[type="radio"][name="'+u+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var a=zi(i,t.form);return!a||a===t},qi=function(t){return Dr(t)&&t.type==="radio"},Hi=function(t){return qi(t)&&!Gi(t)},Xi=function(t){var e,r=t&&Me(t),i=(e=r)===null||e===void 0?void 0:e.host,a=!1;if(r&&r!==t){var o,u,f;for(a=!!((o=i)!==null&&o!==void 0&&(u=o.ownerDocument)!==null&&u!==void 0&&u.contains(i)||t!=null&&(f=t.ownerDocument)!==null&&f!==void 0&&f.contains(t));!a&&i;){var d,g,p;r=Me(i),i=(d=r)===null||d===void 0?void 0:d.host,a=!!((g=i)!==null&&g!==void 0&&(p=g.ownerDocument)!==null&&p!==void 0&&p.contains(i))}}return a},ur=function(t){var e=t.getBoundingClientRect(),r=e.width,i=e.height;return r===0&&i===0},Yi=function(t,e){var r=e.displayCheck,i=e.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var a=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!a}if(getComputedStyle(t).visibility==="hidden")return!0;var o=mt.call(t,"details>summary:first-of-type"),u=o?t.parentElement:t;if(mt.call(u,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof i=="function"){for(var f=t;t;){var d=t.parentElement,g=Me(t);if(d&&!d.shadowRoot&&i(d)===!0)return ur(t);t.assignedSlot?t=t.assignedSlot:!d&&g!==t.ownerDocument?t=g.host:t=d}t=f}if(Xi(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return ur(t);return!1},Zi=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if(e.tagName==="FIELDSET"&&e.disabled){for(var r=0;r<e.children.length;r++){var i=e.children.item(r);if(i.tagName==="LEGEND")return mt.call(e,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}e=e.parentElement}return!1},We=function(t,e){return!(e.disabled||ji(e)||Yi(e,t)||Ki(e)||Zi(e))},In=function(t,e){return!(Hi(e)||Fr(e)<0||!We(t,e))},Ji=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},Lr=function(t){var e=[],r=[];return t.forEach(function(i,a){var o=!!i.scopeParent,u=o?i.scopeParent:i,f=Wi(u,o),d=o?Lr(i.candidates):u;f===0?o?e.push.apply(e,d):e.push(u):r.push({documentOrder:a,tabIndex:f,item:i,isScope:o,content:d})}),r.sort(Ui).reduce(function(i,a){return a.isScope?i.push.apply(i,a.content):i.push(a.content),i},[]).concat(e)},Qi=function(t,e){e=e||{};var r;return e.getShadowRoot?r=Ve([t],e.includeContainer,{filter:In.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:Ji}):r=_r(t,e.includeContainer,In.bind(null,e)),Lr(r)},$i=function(t,e){e=e||{};var r;return e.getShadowRoot?r=Ve([t],e.includeContainer,{filter:We.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):r=_r(t,e.includeContainer,We.bind(null,e)),r},qo=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return mt.call(t,Le)===!1?!1:In(e,t)},to=kr.concat("iframe:not([inert]):not([inert] *)").join(","),eo=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return mt.call(t,to)===!1?!1:We(e,t)};const no="data-context-menu-trigger",ro="data-context-menu-content";Ir({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});globalThis.bitsDismissableLayers??(globalThis.bitsDismissableLayers=new Map);var At,ft,et,Ct,It,nt,he,Q,je,_t,Mr,Ke,Ot,ze,Ge,qe,He,pe,Br,Xe,Ye;const Un=class Un{constructor(t){c(this,_t);w(this,"opts");c(this,At);c(this,ft);c(this,et,{pointerdown:!1});c(this,Ct,!1);c(this,It,!1);c(this,nt);c(this,he);c(this,Q,P);c(this,je,t=>{t.defaultPrevented||this.opts.ref.current&&Fn(()=>{var e,r;!this.opts.ref.current||s(this,He).call(this,t.target)||t.target&&!s(this,It)&&((r=(e=s(this,he)).current)==null||r.call(e,t))})});c(this,Ke,t=>{let e=t;e.defaultPrevented&&(e=cr(t)),s(this,At).current(t)});c(this,Ot,ar(t=>{if(!this.opts.ref.current){s(this,Q).call(this);return}const e=this.opts.isValidEvent.current(t,this.opts.ref.current)||oo(t,this.opts.ref.current);if(!s(this,Ct)||A(this,_t,Br).call(this)||!e){s(this,Q).call(this);return}let r=t;if(r.defaultPrevented&&(r=cr(r)),s(this,ft).current!=="close"&&s(this,ft).current!=="defer-otherwise-close"){s(this,Q).call(this);return}t.pointerType==="touch"?(s(this,Q).call(this),E(this,Q,V(s(this,nt),"click",s(this,Ke),{once:!0}))):s(this,At).current(r)},10));c(this,ze,t=>{s(this,et)[t.type]=!0});c(this,Ge,t=>{s(this,et)[t.type]=!1});c(this,qe,()=>{this.opts.ref.current&&E(this,Ct,io(this.opts.ref.current))});c(this,He,t=>this.opts.ref.current?Nr(this.opts.ref.current,t):!1);c(this,pe,ar(()=>{for(const t in s(this,et))s(this,et)[t]=!1;E(this,Ct,!1)},20));c(this,Xe,()=>{E(this,It,!0)});c(this,Ye,()=>{E(this,It,!1)});w(this,"props",{onfocuscapture:s(this,Xe),onblurcapture:s(this,Ye)});this.opts=t,E(this,ft,t.interactOutsideBehavior),E(this,At,t.onInteractOutside),E(this,he,t.onFocusOutside),rn(()=>{E(this,nt,Pr(this.opts.ref.current))});let e=P;const r=()=>{s(this,pe).call(this),globalThis.bitsDismissableLayers.delete(this),s(this,Ot).destroy(),e()};X([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return di(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,s(this,ft)),e(),e=A(this,_t,Mr).call(this))}),r}),Rt(()=>{s(this,pe).destroy(),globalThis.bitsDismissableLayers.delete(this),s(this,Ot).destroy(),s(this,Q).call(this),e()})}static create(t){return new Un(t)}};At=new WeakMap,ft=new WeakMap,et=new WeakMap,Ct=new WeakMap,It=new WeakMap,nt=new WeakMap,he=new WeakMap,Q=new WeakMap,je=new WeakMap,_t=new WeakSet,Mr=function(){return jt(V(s(this,nt),"pointerdown",jt(s(this,ze),s(this,qe)),{capture:!0}),V(s(this,nt),"pointerdown",jt(s(this,Ge),s(this,Ot))),V(s(this,nt),"focusin",s(this,je)))},Ke=new WeakMap,Ot=new WeakMap,ze=new WeakMap,Ge=new WeakMap,qe=new WeakMap,He=new WeakMap,pe=new WeakMap,Br=function(){return Object.values(s(this,et)).some(Boolean)},Xe=new WeakMap,Ye=new WeakMap;let On=Un;function so(n=[...globalThis.bitsDismissableLayers]){return n.findLast(([t,{current:e}])=>e==="close"||e==="ignore")}function io(n){const t=[...globalThis.bitsDismissableLayers],e=so(t);if(e)return e[0].opts.ref.current===n;const[r]=t[0];return r.opts.ref.current===n}function oo(n,t){const e=n.target;if(!Oi(e))return!1;const r=!!e.closest(`[${no}]`);if("button"in n&&n.button>0&&!r)return!1;if("button"in n&&n.button===0&&r)return!0;const i=!!t.closest(`[${ro}]`);return r&&i?!1:Pr(e).documentElement.contains(e)&&!Nr(t,e)&&Bi(n,t)}function cr(n){const t=n.currentTarget,e=n.target;let r;n instanceof PointerEvent?r=new PointerEvent(n.type,n):r=new PointerEvent("pointerdown",n);let i=!1;return new Proxy(r,{get:(o,u)=>u==="currentTarget"?t:u==="target"?e:u==="preventDefault"?()=>{i=!0,typeof o.preventDefault=="function"&&o.preventDefault()}:u==="defaultPrevented"?i:u in o?o[u]:n[u]})}function ao(n,t){W(t,!0);let e=b(t,"interactOutsideBehavior",3,"close"),r=b(t,"onInteractOutside",3,P),i=b(t,"onFocusOutside",3,P),a=b(t,"isValidEvent",3,()=>!1);const o=On.create({id:y(()=>t.id),interactOutsideBehavior:y(()=>e()),onInteractOutside:y(()=>r()),enabled:y(()=>t.enabled),onFocusOutside:y(()=>i()),isValidEvent:y(()=>a()),ref:t.ref});var u=k(),f=O(u);F(f,()=>t.children??z,()=>({props:o.props})),C(n,u),U()}globalThis.bitsEscapeLayers??(globalThis.bitsEscapeLayers=new Map);var Ze,Je;const jn=class jn{constructor(t){w(this,"opts");w(this,"domContext");c(this,Ze,()=>V(this.domContext.getDocument(),"keydown",s(this,Je),{passive:!1}));c(this,Je,t=>{if(t.key!==Ai||!uo(this))return;const e=new KeyboardEvent(t.type,t);t.preventDefault();const r=this.opts.escapeKeydownBehavior.current;r!=="close"&&r!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(e)});this.opts=t,this.domContext=new Cr(this.opts.ref);let e=P;X(()=>t.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,t.escapeKeydownBehavior),e=s(this,Ze).call(this)),()=>{e(),globalThis.bitsEscapeLayers.delete(this)}))}static create(t){return new jn(t)}};Ze=new WeakMap,Je=new WeakMap;let Nn=jn;function uo(n){const t=[...globalThis.bitsEscapeLayers],e=t.findLast(([i,{current:a}])=>a==="close"||a==="ignore");if(e)return e[0]===n;const[r]=t[0];return r===n}function co(n,t){W(t,!0);let e=b(t,"escapeKeydownBehavior",3,"close"),r=b(t,"onEscapeKeydown",3,P);Nn.create({escapeKeydownBehavior:y(()=>e()),onEscapeKeydown:y(()=>r()),enabled:y(()=>t.enabled),ref:t.ref});var i=k(),a=O(i);F(a,()=>t.children??z),C(n,i),U()}var $,ve,ht;const Qe=class Qe{constructor(){c(this,$,mr([]));c(this,ve,new WeakMap);c(this,ht,new WeakMap)}static getInstance(){return this.instance||(this.instance=new Qe),this.instance}register(t){const e=this.getActive();e&&e!==t&&e.pause();const r=document.activeElement;r&&r!==document.body&&s(this,ht).set(t,r),s(this,$).current=s(this,$).current.filter(i=>i!==t),s(this,$).current.unshift(t)}unregister(t){s(this,$).current=s(this,$).current.filter(r=>r!==t);const e=this.getActive();e&&e.resume()}getActive(){return s(this,$).current[0]}setFocusMemory(t,e){s(this,ve).set(t,e)}getFocusMemory(t){return s(this,ve).get(t)}isActiveScope(t){return this.getActive()===t}setPreFocusMemory(t,e){s(this,ht).set(t,e)}getPreFocusMemory(t){return s(this,ht).get(t)}clearPreFocusMemory(t){s(this,ht).delete(t)}};$=new WeakMap,ve=new WeakMap,ht=new WeakMap,w(Qe,"instance");let Pn=Qe;var rt,R,L,pt,st,N,Vr,Wr,Ur,jr,xn,_e,_n;const Kn=class Kn{constructor(t){c(this,N);c(this,rt,!1);c(this,R,null);c(this,L,Pn.getInstance());c(this,pt,[]);c(this,st);E(this,st,t)}get paused(){return s(this,rt)}pause(){E(this,rt,!0)}resume(){E(this,rt,!1)}mount(t){s(this,R)&&this.unmount(),E(this,R,t),s(this,L).register(this),A(this,N,jr).call(this),A(this,N,Wr).call(this)}unmount(){s(this,R)&&(A(this,N,Vr).call(this),A(this,N,Ur).call(this),s(this,L).unregister(this),s(this,L).clearPreFocusMemory(this),E(this,R,null))}static use(t){let e=null;return X([()=>t.ref.current,()=>t.enabled.current],([r,i])=>{r&&i?(e||(e=new Kn(t)),e.mount(r)):e&&(e.unmount(),e=null)}),Rt(()=>{e==null||e.unmount()}),{get props(){return{tabindex:-1}}}}};rt=new WeakMap,R=new WeakMap,L=new WeakMap,pt=new WeakMap,st=new WeakMap,N=new WeakSet,Vr=function(){for(const t of s(this,pt))t();E(this,pt,[])},Wr=function(){if(!s(this,R))return;const t=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});s(this,st).onOpenAutoFocus.current(t),t.defaultPrevented||requestAnimationFrame(()=>{if(!s(this,R))return;const e=A(this,N,_e).call(this);e?(e.focus(),s(this,L).setFocusMemory(this,e)):s(this,R).focus()})},Ur=function(){var e,r;const t=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if((r=(e=s(this,st).onCloseAutoFocus).current)==null||r.call(e,t),!t.defaultPrevented){const i=s(this,L).getPreFocusMemory(this);if(i&&document.contains(i))try{i.focus()}catch{document.body.focus()}}},jr=function(){if(!s(this,R)||!s(this,st).trap.current)return;const t=s(this,R),e=t.ownerDocument,r=o=>{if(s(this,rt)||!s(this,L).isActiveScope(this))return;const u=o.target;if(!u)return;if(t.contains(u))s(this,L).setFocusMemory(this,u);else{const d=s(this,L).getFocusMemory(this);if(d&&t.contains(d)&&eo(d))o.preventDefault(),d.focus();else{const g=A(this,N,_e).call(this),p=A(this,N,_n).call(this)[0];(g||p||t).focus()}}},i=o=>{if(!s(this,st).loop||s(this,rt)||o.key!=="Tab"||!s(this,L).isActiveScope(this))return;const u=A(this,N,xn).call(this);if(u.length===0)return;const f=u[0],d=u[u.length-1];!o.shiftKey&&e.activeElement===d?(o.preventDefault(),f.focus()):o.shiftKey&&e.activeElement===f&&(o.preventDefault(),d.focus())};s(this,pt).push(V(e,"focusin",r,{capture:!0}),V(t,"keydown",i));const a=new MutationObserver(()=>{const o=s(this,L).getFocusMemory(this);if(o&&!t.contains(o)){const u=A(this,N,_e).call(this),f=A(this,N,_n).call(this)[0],d=u||f;d?(d.focus(),s(this,L).setFocusMemory(this,d)):t.focus()}});a.observe(t,{childList:!0,subtree:!0}),s(this,pt).push(()=>a.disconnect())},xn=function(){return s(this,R)?Qi(s(this,R),{includeContainer:!1,getShadowRoot:!0}):[]},_e=function(){return A(this,N,xn).call(this)[0]||null},_n=function(){return s(this,R)?$i(s(this,R),{includeContainer:!1,getShadowRoot:!0}):[]};let kn=Kn;function lo(n,t){W(t,!0);let e=b(t,"enabled",3,!1),r=b(t,"trapFocus",3,!1),i=b(t,"loop",3,!1),a=b(t,"onCloseAutoFocus",3,P),o=b(t,"onOpenAutoFocus",3,P);const u=kn.use({enabled:y(()=>e()),trap:y(()=>r()),loop:i(),onCloseAutoFocus:y(()=>a()),onOpenAutoFocus:y(()=>o()),ref:t.ref});var f=k(),d=O(f);F(d,()=>t.focusScope??z,()=>({props:u.props})),C(n,f),U()}globalThis.bitsTextSelectionLayers??(globalThis.bitsTextSelectionLayers=new Map);var Nt,$e,Kr,tn,ge;const zn=class zn{constructor(t){c(this,$e);w(this,"opts");w(this,"domContext");c(this,Nt,P);c(this,tn,t=>{const e=this.opts.ref.current,r=t.target;!ir(e)||!ir(r)||!this.opts.enabled.current||!ho(this)||!bi(e,r)||(this.opts.onPointerDown.current(t),!t.defaultPrevented&&E(this,Nt,fo(e,this.domContext.getDocument().body)))});c(this,ge,()=>{s(this,Nt).call(this),E(this,Nt,P)});this.opts=t,this.domContext=new Cr(t.ref);let e=P;X(()=>this.opts.enabled.current,r=>(r&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),e(),e=A(this,$e,Kr).call(this)),()=>{e(),s(this,ge).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}static create(t){return new zn(t)}};Nt=new WeakMap,$e=new WeakSet,Kr=function(){return jt(V(this.domContext.getDocument(),"pointerdown",s(this,tn)),V(this.domContext.getDocument(),"pointerup",yr(s(this,ge),this.opts.onPointerUp.current)))},tn=new WeakMap,ge=new WeakMap;let Rn=zn;const lr=n=>n.style.userSelect||n.style.webkitUserSelect;function fo(n,t){const e=lr(t),r=lr(n);return Ne(t,"none"),Ne(n,"text"),()=>{Ne(t,e),Ne(n,r)}}function Ne(n,t){n.style.userSelect=t,n.style.webkitUserSelect=t}function ho(n){const t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;const e=t.at(-1);return e?e[0]===n:!1}function po(n,t){W(t,!0);let e=b(t,"preventOverflowTextSelection",3,!0),r=b(t,"onPointerDown",3,P),i=b(t,"onPointerUp",3,P);Rn.create({id:y(()=>t.id),onPointerDown:y(()=>r()),onPointerUp:y(()=>i()),enabled:y(()=>t.enabled&&e()),ref:t.ref});var a=k(),o=O(a);F(o,()=>t.children??z),C(n,a),U()}globalThis.bitsIdCounter??(globalThis.bitsIdCounter={current:0});function vo(n="bits"){return globalThis.bitsIdCounter.current++,`${n}-${globalThis.bitsIdCounter.current}`}var be,Pt,vt,gt,en,zr;class go{constructor(t){c(this,en);c(this,be);c(this,Pt,0);c(this,vt,x());c(this,gt);E(this,be,t)}get(...t){return E(this,Pt,s(this,Pt)+1),v(s(this,vt))===void 0&&E(this,gt,ms(()=>{T(s(this,vt),s(this,be).call(this,...t),!0)})),rn(()=>()=>{A(this,en,zr).call(this)}),v(s(this,vt))}}be=new WeakMap,Pt=new WeakMap,vt=new WeakMap,gt=new WeakMap,en=new WeakSet,zr=function(){E(this,Pt,s(this,Pt)-1),s(this,gt)&&s(this,Pt)<=0&&(s(this,gt).call(this),T(s(this,vt),void 0),E(this,gt,void 0))};const Re=new mn;let Pe=x(null),ut=null,Vt=null,Wt=!1;const dr=y(()=>{for(const n of Re.values())if(n)return!0;return!1});let vn=null;const bo=new go(()=>{function n(){document.body.setAttribute("style",v(Pe)??""),document.body.style.removeProperty("--scrollbar-width"),sr&&(ut==null||ut()),T(Pe,null)}function t(){Vt!==null&&(window.clearTimeout(Vt),Vt=null)}function e(i,a){t(),Wt=!0,vn=Date.now();const o=vn,u=()=>{Vt=null,vn===o&&(Gr(Re)?Wt=!1:(Wt=!1,a()))},f=i===null?24:i;Vt=window.setTimeout(u,f)}function r(){v(Pe)===null&&Re.size===0&&!Wt&&T(Pe,document.body.getAttribute("style"),!0)}return X(()=>dr.current,()=>{var g,p;if(!dr.current)return;r(),Wt=!1;const i=getComputedStyle(document.documentElement),a=getComputedStyle(document.body),o=((g=i.scrollbarGutter)==null?void 0:g.includes("stable"))||((p=a.scrollbarGutter)==null?void 0:p.includes("stable")),u=window.innerWidth-document.documentElement.clientWidth,d={padding:Number.parseInt(a.paddingRight??"0",10)+u,margin:Number.parseInt(a.marginRight??"0",10)};u>0&&!o&&(document.body.style.paddingRight=`${d.padding}px`,document.body.style.marginRight=`${d.margin}px`,document.body.style.setProperty("--scrollbar-width",`${u}px`)),document.body.style.overflow="hidden",sr&&(ut=V(document,"touchmove",S=>{S.target===document.documentElement&&(S.touches.length>1||S.preventDefault())},{passive:!1})),Fn(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),Rt(()=>()=>{ut==null||ut()}),{get lockMap(){return Re},resetBodyStyle:n,scheduleCleanupIfNoNewLocks:e,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}});var bt,me,ye,M;class mo{constructor(t,e=()=>null){c(this,bt,vo());c(this,me);c(this,ye,()=>null);c(this,M);w(this,"locked");E(this,me,t),E(this,ye,e),E(this,M,bo.get()),s(this,M)&&(s(this,M).cancelPendingCleanup(),s(this,M).ensureInitialStyleCaptured(),s(this,M).lockMap.set(s(this,bt),s(this,me)??!1),this.locked=y(()=>s(this,M).lockMap.get(s(this,bt))??!1,r=>s(this,M).lockMap.set(s(this,bt),r)),Rt(()=>{if(s(this,M).lockMap.delete(s(this,bt)),Gr(s(this,M).lockMap))return;const r=s(this,ye).call(this);s(this,M).scheduleCleanupIfNoNewLocks(r,()=>{s(this,M).resetBodyStyle()})}))}}bt=new WeakMap,me=new WeakMap,ye=new WeakMap,M=new WeakMap;function Gr(n){for(const[t,e]of n)if(e)return!0;return!1}function fr(n,t){W(t,!0);let e=b(t,"preventScroll",3,!0),r=b(t,"restoreScrollDelay",3,null);e()&&new mo(e(),()=>r()),U()}var yo=we("<div><!></div>");function Ho(n,t){const e=nn();W(t,!0);let r=b(t,"id",19,()=>an(e)),i=b(t,"forceMount",3,!1),a=b(t,"ref",15,null),o=sn(t,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const u=Cn.create({id:y(()=>r()),ref:y(()=>a(),S=>a(S))}),f=_(()=>ot(o,u.props));var d=k(),g=O(d);{var p=S=>{var m=k(),l=O(m);{var h=D=>{var j=k(),B=O(j);{let yt=_(()=>({props:ot(v(f)),...u.snippetProps}));F(B,()=>t.child,()=>v(yt))}C(D,j)},I=D=>{var j=yo();kt(j,yt=>({...yt}),[()=>ot(v(f))]);var B=Ee(j);F(B,()=>t.children??z,()=>u.snippetProps),Se(j),C(D,j)};it(l,D=>{t.child?D(h):D(I,-1)})}C(S,m)};it(g,S=>{(u.shouldRender||i())&&S(p)})}C(n,d),U()}function Xo(n,t){W(t,!0);let e=b(t,"open",15,!1),r=b(t,"onOpenChange",3,P),i=b(t,"onOpenChangeComplete",3,P);En.create({variant:y(()=>"dialog"),open:y(()=>e(),u=>{e(u),r()(u)}),onOpenChangeComplete:y(()=>i())});var a=k(),o=O(a);F(o,()=>t.children??z),C(n,a),U()}var wo=we("<button><!></button>");function Yo(n,t){const e=nn();W(t,!0);let r=b(t,"id",19,()=>an(e)),i=b(t,"ref",15,null),a=b(t,"disabled",3,!1),o=sn(t,["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]);const u=Sn.create({variant:y(()=>"close"),id:y(()=>r()),ref:y(()=>i(),m=>i(m)),disabled:y(()=>!!a())}),f=_(()=>ot(o,u.props));var d=k(),g=O(d);{var p=m=>{var l=k(),h=O(l);F(h,()=>t.child,()=>({props:v(f)})),C(m,l)},S=m=>{var l=wo();kt(l,()=>({...v(f)}));var h=Ee(l);F(h,()=>t.children??z),Se(l),C(m,l)};it(g,m=>{t.child?m(p):m(S,-1)})}C(n,d),U()}var Eo=we("<!> <!>",1),So=we("<!> <div><!></div>",1);function Zo(n,t){const e=nn();W(t,!0);let r=b(t,"id",19,()=>an(e)),i=b(t,"ref",15,null),a=b(t,"forceMount",3,!1),o=b(t,"onCloseAutoFocus",3,P),u=b(t,"onOpenAutoFocus",3,P),f=b(t,"onEscapeKeydown",3,P),d=b(t,"onInteractOutside",3,P),g=b(t,"trapFocus",3,!0),p=b(t,"preventScroll",3,!0),S=b(t,"restoreScrollDelay",3,null),m=sn(t,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const l=An.create({id:y(()=>r()),ref:y(()=>i(),B=>i(B))}),h=_(()=>ot(m,l.props));var I=k(),D=O(I);{var j=B=>{lo(B,{get ref(){return l.opts.ref},loop:!0,get trapFocus(){return g()},get enabled(){return l.root.opts.open.current},get onOpenAutoFocus(){return u()},get onCloseAutoFocus(){return o()},focusScope:(un,Ae)=>{let Gn=()=>Ae==null?void 0:Ae().props;co(un,pn(()=>v(h),{get enabled(){return l.root.opts.open.current},get ref(){return l.opts.ref},onEscapeKeydown:Ce=>{f()(Ce),!Ce.defaultPrevented&&l.root.handleClose()},children:(Ce,To)=>{ao(Ce,pn(()=>v(h),{get ref(){return l.opts.ref},get enabled(){return l.root.opts.open.current},onInteractOutside:Ie=>{d()(Ie),!Ie.defaultPrevented&&l.root.handleClose()},children:(Ie,Ao)=>{po(Ie,pn(()=>v(h),{get ref(){return l.opts.ref},get enabled(){return l.root.opts.open.current},children:(qr,Co)=>{var qn=k(),Hr=O(qn);{var Xr=wt=>{var Ft=Eo(),Dt=O(Ft);{var Lt=at=>{fr(at,{get preventScroll(){return p()},get restoreScrollDelay(){return S()}})};it(Dt,at=>{l.root.opts.open.current&&at(Lt)})}var cn=gn(Dt,2);{let at=_(()=>({props:ot(v(h),Gn()),...l.snippetProps}));F(cn,()=>t.child,()=>v(at))}C(wt,Ft)},Yr=wt=>{var Ft=So(),Dt=O(Ft);fr(Dt,{get preventScroll(){return p()}});var Lt=gn(Dt,2);kt(Lt,at=>({...at}),[()=>ot(v(h),Gn())]);var cn=Ee(Lt);F(cn,()=>t.children??z),Se(Lt),C(wt,Ft)};it(Hr,wt=>{t.child?wt(Xr):wt(Yr,-1)})}C(qr,qn)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};it(D,B=>{(l.shouldRender||a())&&B(j)})}C(n,I),U()}export{Wo as A,qo as B,Er as C,Xo as D,co as E,lo as F,Ir as G,an as H,Bo as I,P as J,Go as P,fr as S,po as T,Ho as a,Zo as b,zo as c,Yo as d,oi as e,Vo as f,on as g,Oe as h,Ko as i,ni as j,yi as k,F as l,y as m,ot as n,ao as o,mi as p,Uo as q,or as r,mr as s,Cr as t,vo as u,jo as v,X as w,Ti as x,Ci as y,Ei as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w as a}from"./
|
|
1
|
+
import{w as a}from"./D5GvRCv7.js";let t=null;const s=a({msg:"",type:""});function m(e,o=""){s.set({msg:e,type:o}),t&&clearTimeout(t),t=setTimeout(()=>s.set({msg:"",type:""}),3500)}export{m as s,s as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Y as w,A as K,a1 as h,a2 as Y,a3 as R,i as _,a4 as y,a5 as B,a6 as U,D as j,a7 as m,a8 as I,a9 as M,U as N,aa as $,ab as q,ac as z,ad as C,u as G,ae as p,_ as D,af as A,ag as Z}from"./BbWUOQ_m.js";import{c as F}from"./DjNLq3TF.js";const H={get(e,r){if(!e.exclude.includes(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function k(e,r,s){return new Proxy({props:e,exclude:r},H)}const J={get(e,r){if(!e.exclude.includes(r))return _(e.version),r in e.special?e.special[r]():e.props[r]},set(e,r,s){if(!(r in e.special)){var n=w;try{I(e.parent_effect),e.special[r]=V({get[r](){return e.props[r]}},r,R)}finally{I(n)}}return e.special[r](s),m(e.version),!0},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},deleteProperty(e,r){return e.exclude.includes(r)||(e.exclude.push(r),m(e.version)),!0},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function ee(e,r){return new Proxy({props:e,exclude:r,special:{},version:K(0),parent_effect:w},J)}const Q={get(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(p(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,s){let n=e.props.length;for(;n--;){let i=e.props[n];p(i)&&(i=i());const t=h(i,r);if(t&&t.set)return t.set(s),!0}return!1},getOwnPropertyDescriptor(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(p(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const i=h(n,r);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,r){if(r===D||r===A)return!1;for(let s of e.props)if(p(s)&&(s=s()),s!=null&&r in s)return!0;return!1},ownKeys(e){const r=[];for(let s of e.props)if(p(s)&&(s=s()),!!s){for(const n in s)r.includes(n)||r.push(n);for(const n of Object.getOwnPropertySymbols(s))r.includes(n)||r.push(n)}return r}};function re(...e){return new Proxy({props:e},Q)}function V(e,r,s,n){var x;var i=!$||(s&q)!==0,t=(s&M)!==0,E=(s&Z)!==0,f=n,v=!0,S=()=>(v&&(v=!1,f=E?N(n):n),f);let l;if(t){var L=D in e||A in e;l=((x=h(e,r))==null?void 0:x.set)??(L&&r in e?u=>e[r]=u:void 0)}var o,b=!1;t?[o,b]=F(()=>e[r]):o=e[r],o===void 0&&n!==void 0&&(o=S(),l&&(i&&Y(),l(o)));var a;if(i?a=()=>{var u=e[r];return u===void 0?S():(v=!0,u)}:a=()=>{var u=e[r];return u!==void 0&&(f=void 0),u===void 0?f:u},i&&(s&R)===0)return a;if(l){var T=e.$$legacy;return(function(u,d){return arguments.length>0?((!i||!d||T||b)&&l(d?a():u),u):a()})}var P=!1,c=((s&z)!==0?C:G)(()=>(P=!1,a()));t&&_(c);var g=w;return(function(u,d){if(arguments.length>0){const O=d?_(c):i&&t?y(u):u;return B(c,O),P=!0,f!==void 0&&(f=O),u}return U&&P||(g.f&j)!==0?c.v:_(c)})}export{ee as l,V as p,k as r,re as s};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.BE05Cuc4.js","../chunks/BK3WtZwv.js","../chunks/BbWUOQ_m.js","../chunks/lk5LaiqA.js","../chunks/DjNLq3TF.js","../chunks/D5GvRCv7.js","../chunks/DMWEh-Ek.js","../chunks/Dt2CddFe.js","../chunks/B-OsL1Ct.js","../chunks/B2Q1a1-H.js","../chunks/CVzlFH44.js","../chunks/DcAshVxe.js","../chunks/BXCWEhUd.js","../chunks/BUApaBEI.js","../chunks/Bp63qm3L.js","../chunks/tB7QMF3U.js","../chunks/CtijX1u3.js","../chunks/xtNWTdbD.js","../chunks/mW5RwvnK.js","../chunks/BQqoDzLx.js","../chunks/Cihqbfi5.js","../chunks/DFuhmi31.js","../chunks/CBY2biv-.js","../assets/homeFeedPanelStore.BopJZtHu.css","../assets/0.C6Q_nuW9.css","../nodes/1.5DFDaT4c.js","../nodes/2.BYWOpaxy.js","../nodes/3.wQvGs9w-.js","../chunks/DEDI7Ecm.js","../chunks/CkUAV0m0.js","../chunks/Dw782Tjs.js","../chunks/CWNeClHp.js","../assets/SourcesList.yTBBi3_m.css","../nodes/4.DTSxpKm7.js","../assets/4.9wPHhVwv.css","../nodes/5.CCtn90c0.js","../chunks/EIZIMsXK.js","../assets/BackToParentRoute.DGk-X5ow.css","../assets/5.ClehBQ0g.css","../nodes/6.C2_mjW1u.js","../assets/6.DSJfjJwx.css","../nodes/7.Dwz6W7A1.js","../assets/7.CrNxmd8B.css","../nodes/8.DzkEw6rx.js","../chunks/Bfc47y5P.js","../assets/8.Ba5_jYIY.css","../nodes/9.DtlXEwe1.js","../assets/9.m-LCx_kl.css","../nodes/10.OVK4i9XE.js","../assets/10.Dj8_pmut.css","../nodes/11.Dhn_rO4A.js","../assets/11.qYZMiTb0.css","../nodes/12.Cg8AeCSH.js","../assets/12.Ct59LCqW.css","../nodes/13.nT3SOzEB.js","../assets/13.BhO9zvFi.css","../nodes/14.B_KpJLxn.js","../assets/14.CujIhjQK.css","../nodes/15.RaWaA-0I.js","../assets/15.nNGjXhCQ.css","../nodes/16.DSUgqolV.js","../chunks/Xy_fhzQq.js","../assets/16.PP9XLDf7.css","../nodes/17.BtYZF6FM.js","../chunks/hp4PFHFv.js","../nodes/18.Ba_qJjp6.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var Z=r=>{throw TypeError(r)};var M=(r,t,e)=>t.has(r)||Z("Cannot "+e);var l=(r,t,e)=>(M(r,t,"read from private field"),e?e.call(r):t.get(r)),F=(r,t,e)=>t.has(r)?Z("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),H=(r,t,e,i)=>(M(r,t,"write to private field"),i?i.call(r,e):t.set(r,e),e);import{a5 as z,af as it,i as v,b3 as mt,ai as ut,z as ct,at as lt,am as _t,an as dt,T as ft,f as A,aw as vt,au as ht,b4 as J,av as gt,ax as Et,az as Pt,aA as x}from"../chunks/BbWUOQ_m.js";import{h as pt,m as Rt,u as yt,s as Ot}from"../chunks/DMWEh-Ek.js";import{a as E,c as I,f as $,t as bt}from"../chunks/BK3WtZwv.js";import{o as Lt}from"../chunks/Bp63qm3L.js";import{i as B}from"../chunks/Dt2CddFe.js";import{c as k}from"../chunks/DFuhmi31.js";import{b as S}from"../chunks/Xy_fhzQq.js";import{p as q}from"../chunks/xtNWTdbD.js";function At(r){return class extends Tt{constructor(t){super({component:r,...t})}}}var P,_;class Tt{constructor(t){F(this,P);F(this,_);var p;var e=new Map,i=(o,a)=>{var m=ct(a,!1,!1);return e.set(o,m),m};const u=new Proxy({...t.props||{},$$events:{}},{get(o,a){return v(e.get(a)??i(a,Reflect.get(o,a)))},has(o,a){return a===it?!0:(v(e.get(a)??i(a,Reflect.get(o,a))),Reflect.has(o,a))},set(o,a,m){return z(e.get(a)??i(a,m),m),Reflect.set(o,a,m)}});H(this,_,(t.hydrate?pt:Rt)(t.component,{target:t.target,anchor:t.anchor,props:u,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError})),(!((p=t==null?void 0:t.props)!=null&&p.$$host)||t.sync===!1)&&mt(),H(this,P,u.$$events);for(const o of Object.keys(l(this,_)))o==="$set"||o==="$destroy"||o==="$on"||ut(this,o,{get(){return l(this,_)[o]},set(a){l(this,_)[o]=a},enumerable:!0});l(this,_).$set=o=>{Object.assign(u,o)},l(this,_).$destroy=()=>{yt(l(this,_))}}$set(t){l(this,_).$set(t)}$on(t,e){l(this,P)[t]=l(this,P)[t]||[];const i=(...u)=>e.call(this,...u);return l(this,P)[t].push(i),()=>{l(this,P)[t]=l(this,P)[t].filter(u=>u!==i)}}$destroy(){l(this,_).$destroy()}}P=new WeakMap,_=new WeakMap;const Dt="modulepreload",It=function(r,t){return new URL(r,t).href},N={},s=function(t,e,i){let u=Promise.resolve();if(e&&e.length>0){let o=function(c){return Promise.all(c.map(h=>Promise.resolve(h).then(R=>({status:"fulfilled",value:R}),R=>({status:"rejected",reason:R}))))};const a=document.getElementsByTagName("link"),m=document.querySelector("meta[property=csp-nonce]"),j=(m==null?void 0:m.nonce)||(m==null?void 0:m.getAttribute("nonce"));u=o(e.map(c=>{if(c=It(c,i),c in N)return;N[c]=!0;const h=c.endsWith(".css"),R=h?'[rel="stylesheet"]':"";if(!!i)for(let y=a.length-1;y>=0;y--){const n=a[y];if(n.href===c&&(!h||n.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${R}`))return;const g=document.createElement("link");if(g.rel=h?"stylesheet":Dt,h||(g.as="script"),g.crossOrigin="",g.href=c,j&&g.setAttribute("nonce",j),document.head.appendChild(g),h)return new Promise((y,n)=>{g.addEventListener("load",y),g.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${c}`)))})}))}function p(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return u.then(o=>{for(const a of o||[])a.status==="rejected"&&p(a.reason);return t().catch(p)})},Ht={};var Vt=$('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),wt=$("<!> <!>",1);function xt(r,t){lt(t,!0);let e=q(t,"components",23,()=>[]),i=q(t,"data_0",3,null),u=q(t,"data_1",3,null),p=q(t,"data_2",3,null);_t(()=>t.stores.page.set(t.page)),dt(()=>{t.stores,t.page,t.constructors,e(),t.form,i(),u(),p(),t.stores.page.notify()});let o=J(!1),a=J(!1),m=J(null);Lt(()=>{const n=t.stores.page.subscribe(()=>{v(o)&&(z(a,!0),ft().then(()=>{z(m,document.title||"untitled page",!0)}))});return z(o,!0),n});const j=x(()=>t.constructors[2]);var c=wt(),h=A(c);{var R=n=>{const O=x(()=>t.constructors[0]);var b=I(),V=A(b);k(V,()=>v(O),(L,T)=>{S(T(L,{get data(){return i()},get form(){return t.form},get params(){return t.page.params},children:(d,St)=>{var Q=I(),et=A(Q);{var rt=D=>{const U=x(()=>t.constructors[1]);var w=I(),G=A(w);k(G,()=>v(U),(W,Y)=>{S(Y(W,{get data(){return u()},get form(){return t.form},get params(){return t.page.params},children:(f,jt)=>{var X=I(),ot=A(X);k(ot,()=>v(j),(st,nt)=>{S(nt(st,{get data(){return p()},get form(){return t.form},get params(){return t.page.params}}),C=>e()[2]=C,()=>{var C;return(C=e())==null?void 0:C[2]})}),E(f,X)},$$slots:{default:!0}}),f=>e()[1]=f,()=>{var f;return(f=e())==null?void 0:f[1]})}),E(D,w)},at=D=>{const U=x(()=>t.constructors[1]);var w=I(),G=A(w);k(G,()=>v(U),(W,Y)=>{S(Y(W,{get data(){return u()},get form(){return t.form},get params(){return t.page.params}}),f=>e()[1]=f,()=>{var f;return(f=e())==null?void 0:f[1]})}),E(D,w)};B(et,D=>{t.constructors[2]?D(rt):D(at,-1)})}E(d,Q)},$$slots:{default:!0}}),d=>e()[0]=d,()=>{var d;return(d=e())==null?void 0:d[0]})}),E(n,b)},K=n=>{const O=x(()=>t.constructors[0]);var b=I(),V=A(b);k(V,()=>v(O),(L,T)=>{S(T(L,{get data(){return i()},get form(){return t.form},get params(){return t.page.params}}),d=>e()[0]=d,()=>{var d;return(d=e())==null?void 0:d[0]})}),E(n,b)};B(h,n=>{t.constructors[1]?n(R):n(K,-1)})}var g=vt(h,2);{var y=n=>{var O=Vt(),b=gt(O);{var V=L=>{var T=bt();Pt(()=>Ot(T,v(m))),E(L,T)};B(b,L=>{v(a)&&L(V)})}Et(O),E(n,O)};B(g,n=>{v(o)&&n(y)})}E(r,c),ht()}const Jt=At(xt),Kt=[()=>s(()=>import("../nodes/0.BE05Cuc4.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]),import.meta.url),()=>s(()=>import("../nodes/1.5DFDaT4c.js"),__vite__mapDeps([25,1,2,3,6,10,12,5,13,14]),import.meta.url),()=>s(()=>import("../nodes/2.BYWOpaxy.js"),__vite__mapDeps([26,1,2,3,8]),import.meta.url),()=>s(()=>import("../nodes/3.wQvGs9w-.js"),__vite__mapDeps([27,1,2,3,28,29,14,6,4,5,7,19,9,30,10,11,12,13,15,16,8,17,18,20,21,22,23,31,32]),import.meta.url),()=>s(()=>import("../nodes/4.DTSxpKm7.js"),__vite__mapDeps([33,1,2,3,14,6,7,19,28,9,10,22,34]),import.meta.url),()=>s(()=>import("../nodes/5.CCtn90c0.js"),__vite__mapDeps([35,1,2,3,14,6,7,28,9,30,10,36,4,5,11,12,13,37,22,15,38]),import.meta.url),()=>s(()=>import("../nodes/6.C2_mjW1u.js"),__vite__mapDeps([39,1,2,3,14,6,7,28,9,30,10,36,4,5,11,12,13,37,22,15,40]),import.meta.url),()=>s(()=>import("../nodes/7.Dwz6W7A1.js"),__vite__mapDeps([41,1,2,3,14,4,5,10,12,13,11,42]),import.meta.url),()=>s(()=>import("../nodes/8.DzkEw6rx.js"),__vite__mapDeps([43,1,2,3,6,7,28,9,30,44,10,36,4,5,11,12,13,14,37,45]),import.meta.url),()=>s(()=>import("../nodes/9.DtlXEwe1.js"),__vite__mapDeps([46,1,2,3,14,6,7,19,28,9,10,36,4,5,11,12,13,37,22,15,47]),import.meta.url),()=>s(()=>import("../nodes/10.OVK4i9XE.js"),__vite__mapDeps([48,1,2,3,14,6,7,28,9,30,10,36,4,5,11,12,13,37,22,15,49]),import.meta.url),()=>s(()=>import("../nodes/11.Dhn_rO4A.js"),__vite__mapDeps([50,1,2,3,28,29,14,6,4,5,7,19,9,30,10,11,12,13,15,16,8,17,18,20,21,22,23,31,32,36,37,51]),import.meta.url),()=>s(()=>import("../nodes/12.Cg8AeCSH.js"),__vite__mapDeps([52,1,2,3,14,6,7,19,28,9,30,44,10,22,15,5,53]),import.meta.url),()=>s(()=>import("../nodes/13.nT3SOzEB.js"),__vite__mapDeps([54,1,2,3,14,6,7,19,28,9,30,10,22,15,5,55]),import.meta.url),()=>s(()=>import("../nodes/14.B_KpJLxn.js"),__vite__mapDeps([56,1,2,3,14,6,5,7,19,28,9,30,10,22,11,12,13,15,31,8,17,4,18,20,57]),import.meta.url),()=>s(()=>import("../nodes/15.RaWaA-0I.js"),__vite__mapDeps([58,1,2,3,14,28,10,12,5,13,59]),import.meta.url),()=>s(()=>import("../nodes/16.DSUgqolV.js"),__vite__mapDeps([60,1,2,3,4,5,6,7,20,28,10,9,22,11,12,13,14,15,61,17,36,37,62]),import.meta.url),()=>s(()=>import("../nodes/17.BtYZF6FM.js"),__vite__mapDeps([63,64,13]),import.meta.url),()=>s(()=>import("../nodes/18.Ba_qJjp6.js"),__vite__mapDeps([65,64,13]),import.meta.url)],Qt=[],Xt={"/":[3],"/admin":[4,[2]],"/admin/deliver":[5,[2]],"/admin/llm":[6,[2]],"/admin/logs":[7,[2]],"/admin/parse":[8,[2]],"/admin/pipeline":[9,[2]],"/admin/proxy":[10,[2]],"/admin/sources":[11,[2]],"/admin/tags":[12,[2]],"/logs":[13],"/plugins":[14],"/plugins/new":[15],"/plugins/[id]":[16],"/tags":[17],"/[sub]":[18]},tt={handleError:(({error:r})=>{console.error(r)}),reroute:(()=>{}),transport:{}},kt=Object.fromEntries(Object.entries(tt.transport).map(([r,t])=>[r,t.decode])),Zt=Object.fromEntries(Object.entries(tt.transport).map(([r,t])=>[r,t.encode])),Mt=!1,Nt=(r,t)=>kt[r](t);export{Nt as decode,kt as decoders,Xt as dictionary,Zt as encoders,Mt as hash,tt as hooks,Ht as matchers,Kt as nodes,Jt as root,Qt as server_loads};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,a as r}from"../chunks/BXCWEhUd.js";export{o as load_css,r as start};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import{c as U,a as m,f as V}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{f as S,at as la,au as ra,av as t,ax as s,az as ia,aC as w,aD as Ha,a5 as O,i as a,aw as h,aq as Ga,U as _,z as W,u as $}from"../chunks/BbWUOQ_m.js";import{s as oa,a as T}from"../chunks/DjNLq3TF.js";import{s as na}from"../chunks/DMWEh-Ek.js";import{i as va}from"../chunks/Dt2CddFe.js";import{s as B}from"../chunks/B-OsL1Ct.js";import{a as p,s as I,G as Ra,P as ta}from"../chunks/B2Q1a1-H.js";import{i as ca}from"../chunks/CVzlFH44.js";import{p as Ca}from"../chunks/DcAshVxe.js";import{t as Fa}from"../chunks/tB7QMF3U.js";import{R as Na,P as Oa,h as P,S as Wa}from"../chunks/CtijX1u3.js";import{l as ua,s as da}from"../chunks/xtNWTdbD.js";import{I as ha}from"../chunks/mW5RwvnK.js";const Ia=!1,Ta=!1,ve=Object.freeze(Object.defineProperty({__proto__:null,prerender:Ta,ssr:Ia},Symbol.toStringTag,{value:"Module"})),Ua='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>',Va='</title><path d="',Ba='"/></svg>',sa={title:"GitHub",slug:"github",get svg(){return Ua+"GitHub"+Va+this.path+Ba},path:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12",source:"https://github.com/logos",hex:"181717",guidelines:"https://github.com/logos"};function Da(f,o){const n=ua(o,["children","$$slots","$$events","$$legacy"]);/**
|
|
2
|
+
* @license lucide-svelte v0.460.1 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const l=[["path",{d:"M15 12h-5"}],["path",{d:"M15 8h-5"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3"}]];ha(f,da({name:"scroll-text"},()=>n,{get iconNode(){return l},children:(u,g)=>{var e=U(),d=S(e);B(d,o,"default",{}),m(u,e)},$$slots:{default:!0}}))}function La(f,o){const n=ua(o,["children","$$slots","$$events","$$legacy"]);/**
|
|
7
|
+
* @license lucide-svelte v0.460.1 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/const l=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}],["circle",{cx:"12",cy:"12",r:"3"}]];ha(f,da({name:"settings"},()=>n,{get iconNode(){return l},children:(u,g)=>{var e=U(),d=S(e);B(d,o,"default",{}),m(u,e)},$$slots:{default:!0}}))}var ja=V("<div> </div>");function Aa(f,o){la(o,!1);const n=()=>T(Fa,"$toast",l),[l,u]=oa();ca();var g=U(),e=S(g);{var d=v=>{var c=ja(),M=t(c,!0);s(c),ia(()=>{p(c,1,`toast ${n().type??""}`,"svelte-zemmny"),na(M,n().msg)}),m(v,c)};va(e,v=>{n().msg&&v(d)})}m(f,g),ra(),u()}var Ea=V('<div class="layout-feed-rail layout-feed-rail--home svelte-12qhfyh"><!></div>'),Ja=V('<div class="layout-outer svelte-12qhfyh"><div class="layout-app svelte-12qhfyh"><div id="layout-inner-scroll" class="layout-merged-cluster svelte-12qhfyh"><aside class="layout-nav-rail svelte-12qhfyh" aria-label="主导航"><nav class="nav-rail-links svelte-12qhfyh"><div class="nav-rail-cluster svelte-12qhfyh"><a href="/" title="信源" aria-label="信源"><!></a> <a href="/logs" title="日志" aria-label="日志"><!></a> <a href="/plugins" title="插件" aria-label="插件"><!></a> <a href="/admin" title="设置" aria-label="设置"><!></a></div></nav> <div class="nav-rail-footer svelte-12qhfyh"><a class="nav-rail-github svelte-12qhfyh" target="_blank" rel="noopener noreferrer" aria-label="在 GitHub 打开源码仓库" title="GitHub"><svg class="nav-rail-github-icon svelte-12qhfyh" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path fill="currentColor"></path></svg></a> <span class="nav-rail-brand svelte-12qhfyh"> </span></div></aside> <div><main><!></main></div> <!></div></div></div> <!>',1);function ce(f,o){la(o,!1);const n=()=>T(Ca,"$page",u),l=()=>T(P,"$homeFeedPanelSource",u),[u,g]=oa(),e=W(),d=W(),v=W(),c=18;function M(i){return!!(i==="/"||i==="/admin"||i==="/admin/sources"||i==="/admin/tags"||i==="/plugins"||i==="/logs"||i.startsWith("/plugins/")||i.startsWith("/logs/"))}w(()=>n(),()=>{O(e,n().url.pathname)}),w(()=>a(e),()=>{O(d,M(a(e)))}),w(()=>(a(e),P),()=>{a(e)!=="/"&&P.set(null)}),w(()=>a(e),()=>{O(v,{sources:a(e)==="/"||a(e)==="/admin/sources",logs:a(e)==="/logs"||a(e).startsWith("/logs/"),plugins:a(e).startsWith("/plugins"),settings:a(e)==="/admin"||a(e).startsWith("/admin/")})}),Ha(),ca();var D=Ja(),k=S(D),L=t(k),j=t(L),H=t(j),G=t(H),A=t(G),y=t(A);let E;var fa=t(y);Na(fa,{size:c}),s(y);var b=h(y,2);let J;var pa=t(b);Da(pa,{size:c}),s(b);var q=h(b,2);let K;var ga=t(q);Oa(ga,{size:c}),s(q);var R=h(q,2);let Q;var ma=t(R);La(ma,{size:c}),s(R),s(A),s(G);var X=h(G,2),x=t(X),Y=t(x),_a=t(Y);s(Y),s(x);var C=h(x,2),$a=t(C,!0);s(C),s(X),s(H);var z=h(H,2);let Z;var F=t(z);let aa;var ya=t(F);B(ya,o,"default",{}),s(F),s(z);var ba=h(z,2);{var qa=i=>{var N=Ea(),za=t(N);{let wa=$(()=>l()!=null),Pa=$(()=>(l(),_(()=>{var r;return((r=l())==null?void 0:r.ref)??""}))),Sa=$(()=>(l(),_(()=>{var r;return((r=l())==null?void 0:r.displayLabel)??""}))),Ma=$(()=>(l(),_(()=>{var r;return((r=l())==null?void 0:r.description)??""}))),ka=$(()=>(l(),_(()=>{var r,ea;return((ea=(r=l())==null?void 0:r.proxy)==null?void 0:ea.trim())??""})));Wa(za,{variant:"inline",get open(){return a(wa)},get sourceRef(){return a(Pa)},get sourceLabel(){return a(Sa)},get sourceDescription(){return a(Ma)},get sourceProxy(){return a(ka)},onOpenChange:r=>{r||P.set(null)}})}s(N),m(i,N)};va(ba,i=>{a(e)==="/"&&i(qa)})}s(j),s(L),s(k);var xa=h(k,2);Aa(xa,{}),ia(()=>{E=p(y,1,"nav-rail-link svelte-12qhfyh",null,E,{active:a(v).sources}),J=p(b,1,"nav-rail-link svelte-12qhfyh",null,J,{active:a(v).logs}),K=p(q,1,"nav-rail-link svelte-12qhfyh",null,K,{active:a(v).plugins}),Q=p(R,1,"nav-rail-link svelte-12qhfyh",null,Q,{active:a(v).settings}),I(x,"href",Ra),I(_a,"d",(Ga(sa),_(()=>sa.path))),I(C,"title",ta),na($a,ta),Z=p(z,1,"shell-frame svelte-12qhfyh",null,Z,{"shell-frame--with-feed-rail":a(e)==="/"}),aa=p(F,1,"main shell svelte-12qhfyh",null,aa,{"main-fill":a(d)})}),m(f,D),ra(),g()}export{ce as component,ve as universal};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as h,f as g}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{at as v,f as l,az as d,au as x,av as e,ax as o,aw as _}from"../chunks/BbWUOQ_m.js";import{s as p}from"../chunks/DMWEh-Ek.js";import{i as $}from"../chunks/CVzlFH44.js";import{s as k,p as m}from"../chunks/BXCWEhUd.js";const b={get error(){return m.error},get status(){return m.status}};k.updated.check;const i=b;var w=g("<h1> </h1> <p> </p>",1);function B(f,n){v(n,!1),$();var t=w(),r=l(t),c=e(r,!0);o(r);var a=_(r,2),u=e(a,!0);o(a),d(()=>{var s;p(c,i.status),p(u,(s=i.error)==null?void 0:s.message)}),h(f,t),x()}export{B as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as v,f as u}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{o as H}from"../chunks/Bp63qm3L.js";import{at as $,az as B,au as C,d as J,av as a,a5 as t,i as o,z as d,$ as M,aw as m,ax as r,f as N,ay as U}from"../chunks/BbWUOQ_m.js";import{d as X,a as Y,s as A}from"../chunks/DMWEh-Ek.js";import{i as D}from"../chunks/Dt2CddFe.js";import{h as F}from"../chunks/DEDI7Ecm.js";import{P as q,r as G}from"../chunks/B2Q1a1-H.js";import{b as I}from"../chunks/Dw782Tjs.js";import{i as K}from"../chunks/CVzlFH44.js";import{B as L}from"../chunks/EIZIMsXK.js";import{b as j}from"../chunks/CBY2biv-.js";import{s as z}from"../chunks/tB7QMF3U.js";var Q=u('<p class="hint svelte-1f24zj">加载中…</p>'),V=u('<input type="text" class="text-input svelte-1f24zj" placeholder="http://127.0.0.1:7890" autocomplete="off"/> <p class="hint svelte-1f24zj">留空表示不在配置中设置全局代理(可继续用环境变量)。支持带账号:<code>http://user:pass@host:port</code></p>',1),W=u('<div class="feed-wrap svelte-1f24zj"><div class="feed-col svelte-1f24zj"><div class="body svelte-1f24zj"><!> <p class="intro svelte-1f24zj">写入 <code class="svelte-1f24zj">.rssany/config.json</code> 的 <code class="svelte-1f24zj">globalProxy</code>。抓取与站点登录时,若未在 <code class="svelte-1f24zj">sources.json</code> 或插件中指定单源代理,则使用此处;未填写时仍可使用环境变量 <code class="svelte-1f24zj">HTTP_PROXY</code> / <code class="svelte-1f24zj">HTTPS_PROXY</code>。</p> <section class="form-section svelte-1f24zj"><h3 class="section-title svelte-1f24zj">全局 HTTP(S) 代理</h3> <!></section> <div class="btn-row svelte-1f24zj"><button type="button" class="btn btn-primary svelte-1f24zj"> </button></div></div></div></div>');function ve(x,P){$(P,!1);let s=d(""),l=d(!0),i=d(!1);async function T(){t(l,!0);try{const e=await j("/api/proxy");t(s,typeof(e==null?void 0:e.globalProxy)=="string"?e.globalProxy:"")}catch{t(s,"")}finally{t(l,!1)}}async function w(){t(i,!0);try{const e=await j("/api/proxy",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({globalProxy:o(s).trim()})});if(!(e!=null&&e.ok))throw new Error("保存失败");t(s,typeof e.globalProxy=="string"?e.globalProxy:""),z("已保存","success")}catch(e){z("保存失败: "+(e instanceof Error?e.message:String(e)),"error")}finally{t(i,!1)}}H(T),K();var f=W();F("1f24zj",e=>{J(()=>{M.title=`代理 - ${q}`})});var y=a(f),b=a(y),h=a(b);L(h,{});var p=m(h,4),k=m(a(p),2);{var O=e=>{var n=Q();v(e,n)},R=e=>{var n=V(),_=N(n);G(_),U(2),I(_,()=>o(s),E=>t(s,E)),v(e,n)};D(k,e=>{o(l)?e(O):e(R,-1)})}r(p);var g=m(p,2),c=a(g),S=a(c,!0);r(c),r(g),r(b),r(y),r(f),B(()=>{c.disabled=o(l)||o(i),A(S,o(i)?"保存中…":"保存")}),Y("click",c,w),v(x,f),C()}X(["click"]);export{ve as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as s,f as m}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{f as i,d as c,av as f,aw as d,$ as n,ax as p}from"../chunks/BbWUOQ_m.js";import{h as v}from"../chunks/DEDI7Ecm.js";import{S as l}from"../chunks/CkUAV0m0.js";import{B as _}from"../chunks/EIZIMsXK.js";import{P as h}from"../chunks/B2Q1a1-H.js";var u=m('<div class="admin-sources-back svelte-8cr5m9"><!></div> <!>',1);function R(o){var r=u();v("8cr5m9",$=>{c(()=>{n.title=`Sources — ${h}`})});var a=i(r),e=f(a);_(e,{}),p(a);var t=d(a,2);l(t,{}),s(o,r)}export{R as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as v,f as c}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{o as ye}from"../chunks/Bp63qm3L.js";import{v as xe,at as we,f as ke,az as E,i as s,au as Ce,d as Te,av as n,a5 as a,z as w,aw as i,$ as Le,ax as r,u as Ee}from"../chunks/BbWUOQ_m.js";import{e as f,s as P}from"../chunks/DMWEh-Ek.js";import{i as O}from"../chunks/Dt2CddFe.js";import{e as te,i as se}from"../chunks/BQqoDzLx.js";import{h as $e}from"../chunks/DEDI7Ecm.js";import{P as Me,r as Se,d as Pe}from"../chunks/B2Q1a1-H.js";import{b as Oe}from"../chunks/Dw782Tjs.js";import{s as Y}from"../chunks/Bfc47y5P.js";import{i as Fe}from"../chunks/CVzlFH44.js";import{b as B}from"../chunks/CBY2biv-.js";import{s as F}from"../chunks/tB7QMF3U.js";function Je(z,$){var k;var o=(k=z.$$events)==null?void 0:k[$.type],p=xe(o)?o.slice():o==null?[]:[o];for(var u of p)u.call(this,$)}var Ne=c('<div class="state svelte-1s5glru">加载中…</div>'),je=c('<p class="empty-hint svelte-1s5glru">暂无标签。添加后,pipeline 会对新入库条目自动打标签。</p>'),ze=c('<span class="tag-meta svelte-1s5glru"> </span>'),De=c('<div class="tag-badge svelte-1s5glru"><span class="tag-name svelte-1s5glru"> </span> <!> <button type="button" class="tag-remove svelte-1s5glru" title="从系统标签中删除">×</button></div>'),Ie=c('<div class="tag-list svelte-1s5glru"></div>'),Ue=c('<div class="tag-badge suggested svelte-1s5glru"><span class="tag-name svelte-1s5glru"> </span> <span class="tag-meta svelte-1s5glru"> </span> <button type="button" class="tag-add svelte-1s5glru" title="添加到系统标签">+</button></div>'),qe=c('<div class="suggested-section svelte-1s5glru"><h3 class="section-title svelte-1s5glru">建议添加(文章中出现但未在系统标签库中)</h3> <div class="tag-list svelte-1s5glru"></div></div>'),Ae=c('<div class="body svelte-1s5glru"><div class="tags-section svelte-1s5glru"><h3 class="section-title svelte-1s5glru"> </h3> <!></div> <!></div>'),Re=c('<div class="context-menu svelte-1s5glru" role="menu" tabindex="-1"><button type="button" class="context-menu-item svelte-1s5glru">从所有文章中移除该标签</button></div>'),Xe=c('<div class="feed-wrap svelte-1s5glru"><div class="feed-col svelte-1s5glru"><div class="feed-toolbar-block svelte-1s5glru"><div class="admin-feed-header"><div class="admin-feed-header__left"><h2>系统标签</h2> <p class="admin-feed-header__desc">系统标签库,新入库条目会由 LLM 自动匹配打标签。</p></div> <div class="admin-feed-header__actions"><input type="text" class="admin-toolbar-input" placeholder="输入新标签,回车添加"/> <button type="button" class="admin-toolbar-btn admin-toolbar-btn--primary">添加</button></div></div></div> <div class="feed-body-scroll svelte-1s5glru"><!></div></div></div> <!>',1);function ot(z,$){we($,!1);let o=w([]),p=[],u=w([]),k=w(!0),_=w(!1),M=w(""),b=w(null),J=w(!1);async function ae(){a(k,!0);try{const t=await B("/api/tags");a(o,(t==null?void 0:t.tags)??[]),p=(t==null?void 0:t.stats)??[],a(u,(t==null?void 0:t.suggestedTags)??[])}catch{a(o,[]),p=[],a(u,[])}finally{a(k,!1)}}function re(t){return p.find(e=>e.name.toLowerCase()===t.toLowerCase())}async function D(t){a(_,!0);try{const e=await B("/api/tags",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tags:t})});if(!(e!=null&&e.ok))throw new Error((e==null?void 0:e.message)??"保存失败");a(o,(e==null?void 0:e.tags)??t),p=(e==null?void 0:e.stats)??[],a(u,(e==null?void 0:e.suggestedTags)??[]),F("已保存","success")}catch(e){F("保存失败: "+(e instanceof Error?e.message:String(e)),"error")}finally{a(_,!1)}}function G(){const t=s(M).trim();if(!(!t||s(_))){if(s(o).some(e=>e.toLowerCase()===t.toLowerCase())){F("标签已存在","error");return}a(M,""),D([...s(o),t])}}function oe(t){s(_)||D(s(o).filter(e=>e!==t))}function ne(t){s(_)||s(o).some(e=>e.toLowerCase()===t.toLowerCase())||D([...s(o),t])}function H(t,e){t.preventDefault(),t.stopPropagation(),a(b,{x:t.clientX,y:t.clientY,tag:e})}function I(){a(b,null)}async function ie(t){if(!s(J)){a(J,!0),a(b,null);try{const e=await B("/api/tags/remove-from-items",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tag:t})});if(!(e!=null&&e.ok))throw new Error((e==null?void 0:e.message)??"操作失败");a(o,(e==null?void 0:e.tags)??s(o)),p=(e==null?void 0:e.stats)??p,a(u,(e==null?void 0:e.suggestedTags)??s(u)),F(`已从 ${(e==null?void 0:e.removedCount)??0} 篇文章中移除该标签`,"success")}catch(e){F("操作失败: "+(e instanceof Error?e.message:String(e)),"error")}finally{a(J,!1)}}}ye(()=>{ae();const t=()=>I(),e=()=>I();return document.addEventListener("click",t),document.addEventListener("contextmenu",e),()=>{document.removeEventListener("click",t),document.removeEventListener("contextmenu",e)}}),Fe();var K=Xe();$e("1s5glru",t=>{Te(()=>{Le.title=`标签 - ${Me}`})});var U=ke(K),Q=n(U),q=n(Q),V=n(q),W=i(n(V),2),N=n(W);Se(N);var Z=i(N,2);r(W),r(V),r(q);var ee=i(q,2),le=n(ee);{var ve=t=>{var e=Ne();v(t,e)},ce=t=>{var e=Ae(),C=n(e),h=n(C),me=n(h);r(h);var ge=i(h,2);{var fe=l=>{var d=je();v(l,d)},pe=l=>{var d=Ie();te(d,5,()=>s(o),se,(j,T)=>{const m=Ee(()=>re(s(T)));var g=De(),y=n(g),A=n(y,!0);r(y);var L=i(y,2);{var R=x=>{var X=ze(),he=n(X);r(X),E(()=>P(he,`${s(m).count??""} 篇 · 热度 ${s(m).hotness??""}`)),v(x,X)};O(L,x=>{s(m)&&x(R)})}var S=i(L,2);r(g),E(()=>{P(A,s(T)),S.disabled=s(_)}),f("click",S,Y(()=>oe(s(T)))),f("contextmenu",g,x=>H(x,s(T))),v(j,g)}),r(d),v(l,d)};O(ge,l=>{s(o).length===0?l(fe):l(pe,-1)})}r(C);var _e=i(C,2);{var be=l=>{var d=qe(),j=i(n(d),2);te(j,5,()=>s(u),se,(T,m)=>{var g=Ue(),y=n(g),A=n(y,!0);r(y);var L=i(y,2),R=n(L);r(L);var S=i(L,2);r(g),E(()=>{P(A,s(m).name),P(R,`${s(m).count??""} 篇 · 热度 ${s(m).hotness??""}`),S.disabled=s(_)}),f("click",S,Y(()=>ne(s(m).name))),f("contextmenu",g,x=>H(x,s(m).name)),v(T,g)}),r(j),r(d),v(l,d)};O(_e,l=>{s(u).length>0&&l(be)})}r(e),E(()=>P(me,`当前标签 (${s(o).length??""})`)),v(t,e)};O(le,t=>{s(k)?t(ve):t(ce,-1)})}r(ee),r(Q),r(U);var ue=i(U,2);{var de=t=>{var e=Re(),C=n(e);r(e),E(()=>{Pe(e,`left: ${s(b).x??""}px; top: ${s(b).y??""}px`),C.disabled=s(J)}),f("click",C,()=>ie(s(b).tag)),f("click",e,Y(function(h){Je.call(this,$,h)})),f("keydown",e,h=>h.key==="Escape"&&I()),v(t,e)};O(ue,t=>{s(b)&&t(de)})}E(t=>Z.disabled=t,[()=>!s(M).trim()||s(_)]),Oe(N,()=>s(M),t=>a(M,t)),f("keydown",N,t=>t.key==="Enter"&&G()),f("click",Z,G),v(z,K),Ce()}export{ot as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as p,f as u}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{o as Rt,a as jt}from"../chunks/Bp63qm3L.js";import{at as At,az as g,i as e,au as Ht,d as Bt,av as a,a5 as r,z as c,aw as n,$ as Gt,ax as s,f as Vt}from"../chunks/BbWUOQ_m.js";import{e as m,s as f}from"../chunks/DMWEh-Ek.js";import{i as nt}from"../chunks/Dt2CddFe.js";import{e as vt}from"../chunks/BQqoDzLx.js";import{h as Zt}from"../chunks/DEDI7Ecm.js";import{c as qt,P as Kt,r as Qt,a as Wt,s as Xt}from"../chunks/B2Q1a1-H.js";import{b as Yt}from"../chunks/Dw782Tjs.js";import{i as te}from"../chunks/CVzlFH44.js";import{a as dt}from"../chunks/CBY2biv-.js";import{s as q}from"../chunks/tB7QMF3U.js";var ee=u("<option> </option>"),se=u('<div class="state err svelte-1lsf4ps"> </div>'),ae=u('<div class="state svelte-1lsf4ps">加载中…</div>'),le=u('<div class="state svelte-1lsf4ps">暂无日志</div>'),re=u('<tr class="payload-row svelte-1lsf4ps"><td colspan="5" class="svelte-1lsf4ps"><pre class="payload-content svelte-1lsf4ps"> </pre></td></tr>'),ie=u('<tr class="log-row svelte-1lsf4ps" role="button" tabindex="0"><td class="td-time svelte-1lsf4ps"> </td><td class="td-level svelte-1lsf4ps"><span> </span></td><td class="td-cat svelte-1lsf4ps"> </td><td class="td-msg svelte-1lsf4ps"> </td><td class="td-detail svelte-1lsf4ps"> </td></tr> <!>',1),oe=u('<div class="log-has-data svelte-1lsf4ps"><div class="log-table-scroll svelte-1lsf4ps"><div class="table-wrap svelte-1lsf4ps"><table class="svelte-1lsf4ps"><thead class="svelte-1lsf4ps"><tr><th class="th-time svelte-1lsf4ps">时间</th><th class="th-level svelte-1lsf4ps">级别</th><th class="th-cat svelte-1lsf4ps">分类</th><th class="th-msg svelte-1lsf4ps">消息</th><th class="th-detail svelte-1lsf4ps">详情</th></tr></thead><tbody class="svelte-1lsf4ps"></tbody></table></div></div> <div class="log-toolbar svelte-1lsf4ps"><span class="pagination-info svelte-1lsf4ps"> </span> <div class="pagination-btns svelte-1lsf4ps"><button class="btn btn-secondary btn-sm svelte-1lsf4ps">上一页</button> <button class="btn btn-secondary btn-sm svelte-1lsf4ps">下一页</button></div></div></div>'),ne=u('<div class="feed-wrap svelte-1lsf4ps"><div class="feed-col svelte-1lsf4ps"><div class="feed-toolbar-block svelte-1lsf4ps"><div class="feed-header svelte-1lsf4ps"><div class="header-left svelte-1lsf4ps"><input type="search" class="filter-input svelte-1lsf4ps" placeholder="过滤…" autocomplete="off" spellcheck="false" aria-label="分类"/></div> <div class="header-right svelte-1lsf4ps"><select class="filter-input filter-input--level svelte-1lsf4ps" aria-label="级别"><option>全部</option><!></select> <button class="admin-toolbar-btn admin-toolbar-btn--danger" type="button" title="清空全部日志">清空</button></div></div></div> <div class="log-body-scroll svelte-1lsf4ps"><!></div></div></div>');function we(ct,ft){At(ft,!1);const pt=["error","warn","info","debug"],ut=350;let d=c([]),y=c(0),h=c(!1),T=c(""),L=c(""),O=c(""),x=null,o=c(0),P=c(null),D=c(!1);const $=100;function I(){x&&(clearTimeout(x),x=null)}function _t(){I(),x=setTimeout(()=>{x=null,r(o,0),b()},ut)}function mt(){r(o,0),b()}Rt(()=>{b()}),jt(()=>{I()});function ht(){const t=new URLSearchParams;t.set("limit",String($)),t.set("offset",String(e(o))),e(L)&&t.set("level",e(L));const l=e(O).trim();return l&&t.set("category",l),"/api/logs?"+t.toString()}async function b(){r(h,!0),r(T,"");try{const t=await dt(ht());if(!t.ok)throw new Error(await t.text().catch(()=>`HTTP ${t.status}`));const l=await t.json();r(d,l.items??[]),r(y,l.total??0)}catch(t){r(T,t instanceof Error?t.message:String(t)),r(d,[]),r(y,0)}finally{r(h,!1)}}async function bt(){if(confirm("确定清空全部日志?此操作不可恢复。")){r(D,!0),I();try{const t=await dt("/api/logs",{method:"DELETE"}),l=await t.text();let i={};try{i=l?JSON.parse(l):{}}catch{i={}}if(!t.ok){q(i.error||l||`HTTP ${t.status}`,"error");return}i.ok&&(q(i.deleted!=null?`已清空 ${i.deleted} 条`:"已清空日志","success"),r(o,0),r(P,null),await b())}catch(t){q(t instanceof Error?t.message:String(t),"error")}finally{r(D,!1)}}}function gt(){e(o)<=0||(r(o,Math.max(0,e(o)-$)),b())}function yt(){e(o)+e(d).length>=e(y)||(r(o,e(o)+$),b())}function K(t){r(P,e(P)===t?null:t)}function xt(t){try{return new Date(t).toLocaleString("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}catch{return t}}function wt(t){if(!t)return"";try{return JSON.stringify(JSON.parse(t),null,2)}catch{return t}}function Et(t){if(t==null||t.trim()==="")return"—";try{return JSON.stringify(JSON.parse(t))}catch{return t.replace(/\s+/g," ").trim()}}te();var C=ne();Zt("1lsf4ps",t=>{Bt(()=>{Gt.title=`日志 - ${Kt}`})});var Q=a(C),F=a(Q),W=a(F),J=a(W),M=a(J);Qt(M),s(J);var X=n(J,2),w=a(X),U=a(w);U.value=U.__value="";var St=n(U);vt(St,1,()=>pt,t=>t,(t,l)=>{var i=ee(),N=a(i,!0);s(i);var E={};g(()=>{f(N,e(l)),E!==(E=e(l))&&(i.value=(i.__value=e(l))??"")}),p(t,i)}),s(w);var Y=n(w,2);s(X),s(W),s(F);var tt=n(F,2),kt=a(tt);{var Tt=t=>{var l=se(),i=a(l,!0);s(l),g(()=>f(i,e(T))),p(t,l)},Lt=t=>{var l=ae();p(t,l)},Pt=t=>{var l=le();p(t,l)},Nt=t=>{var l=oe(),i=a(l),N=a(i),E=a(N),et=n(a(E));vt(et,5,()=>e(d),j=>j.id,(j,v)=>{var rt=ie(),S=Vt(rt),A=a(S),Dt=a(A,!0);s(A);var H=n(A),B=a(H),$t=a(B,!0);s(B),s(H);var G=n(H),It=a(G,!0);s(G);var V=n(G),Ct=a(V,!0);s(V);var Z=n(V),Ft=a(Z,!0);s(Z),s(S);var Jt=n(S,2);{var Mt=_=>{var k=re(),it=a(k),ot=a(it),Ut=a(ot,!0);s(ot),s(it),s(k),g(zt=>f(Ut,zt),[()=>wt(e(v).payload)]),p(_,k)};nt(Jt,_=>{e(P)===e(v).id&&e(v).payload&&_(Mt)})}g((_,k)=>{f(Dt,_),Wt(B,1,`badge level-${e(v).level??""}`,"svelte-1lsf4ps"),f($t,e(v).level),f(It,e(v).category),f(Ct,e(v).message),Xt(Z,"title",e(v).payload??void 0),f(Ft,k)},[()=>xt(e(v).created_at),()=>Et(e(v).payload)]),m("click",S,()=>K(e(v).id)),m("keydown",S,_=>_.key==="Enter"&&K(e(v).id)),p(j,rt)}),s(et),s(E),s(N),s(i);var st=n(i,2),z=a(st),Ot=a(z);s(z);var at=n(z,2),R=a(at),lt=n(R,2);s(at),s(st),s(l),g(()=>{f(Ot,`共 ${e(y)??""} 条,当前 ${e(d).length?`${e(o)+1}–${e(o)+e(d).length}`:"—"}`),R.disabled=e(o)<=0||e(h),lt.disabled=e(o)+e(d).length>=e(y)||e(h)}),m("click",R,gt),m("click",lt,yt),p(t,l)};nt(kt,t=>{e(T)?t(Tt):e(h)&&e(d).length===0?t(Lt,1):e(d).length===0?t(Pt,2):t(Nt,-1)})}s(tt),s(Q),s(C),g(()=>Y.disabled=e(h)||e(D)),Yt(M,()=>e(O),t=>r(O,t)),m("input",M,_t),qt(w,()=>e(L),t=>r(L,t)),m("change",w,mt),m("click",Y,bt),p(ct,C),Ht()}export{we as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as u,t as rt,f as p}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{o as Et}from"../chunks/Bp63qm3L.js";import{at as Lt,aC as bt,aD as Ot,f as lt,i as t,au as Nt,d as zt,av as r,az as ot,a5 as o,aw as c,z as h,$ as Jt,ax as s,U as b,ay as H}from"../chunks/BbWUOQ_m.js";import{d as Mt,a as D,e as Bt,s as K}from"../chunks/DMWEh-Ek.js";import{g as Ft}from"../chunks/D5GvRCv7.js";import{i as Q}from"../chunks/Dt2CddFe.js";import{e as Ht}from"../chunks/BQqoDzLx.js";import{h as Kt}from"../chunks/DEDI7Ecm.js";import{s as O,P as Qt,r as it}from"../chunks/B2Q1a1-H.js";import{b as nt}from"../chunks/Dw782Tjs.js";import{i as qt}from"../chunks/CVzlFH44.js";import{a as q}from"../chunks/CBY2biv-.js";import{p as Gt}from"../chunks/DcAshVxe.js";import{g as dt}from"../chunks/BXCWEhUd.js";import{s as m}from"../chunks/tB7QMF3U.js";import{P as Vt}from"../chunks/CWNeClHp.js";import{D as Wt,P as Xt,a as Yt,b as Zt,c as te,d as gt}from"../chunks/mW5RwvnK.js";var ee=p('<div class="state svelte-1nj0iur">加载中…</div>'),ae=p('<div class="state error svelte-1nj0iur"> </div>'),se=p('<div class="state svelte-1nj0iur">暂无已加载插件。可 <button type="button" class="link-btn svelte-1nj0iur">添加插件</button> 从模板创建,或在 <code>app/plugins/builtin/</code>、<code>.rssany/plugins/</code> 放置 *.rssany.js / *.rssany.ts</div>'),re=p('<div class="state svelte-1nj0iur">无匹配结果</div>'),le=p('<span class="kind-badge svelte-1nj0iur">Source</span>'),oe=p('<button type="button" class="cell-btn cell-btn--primary svelte-1nj0iur">登录</button>'),ie=p('<span class="cell-dash svelte-1nj0iur" title="未声明站点登录">—</span>'),ne=p('<button type="button" class="cell-btn cell-btn--secondary svelte-1nj0iur">检查登录</button>'),de=p('<span class="cell-dash svelte-1nj0iur" title="未声明站点登录">—</span>'),ce=p('<tr class="plugin-row svelte-1nj0iur" tabindex="0"><td class="td-name svelte-1nj0iur"><div class="name-cell svelte-1nj0iur"><span class="plugin-id-text svelte-1nj0iur"> </span> <!></div></td><td class="td-pattern svelte-1nj0iur"><span class="pattern-text svelte-1nj0iur"> </span></td><td class="td-login svelte-1nj0iur"><!></td><td class="td-check svelte-1nj0iur"><!></td></tr>'),ve=p('<div class="plugin-table-wrap svelte-1nj0iur"><table class="plugin-table svelte-1nj0iur"><thead class="svelte-1nj0iur"><tr><th class="th-name svelte-1nj0iur" scope="col">插件名</th><th class="th-pattern svelte-1nj0iur" scope="col">匹配规则</th><th class="th-login svelte-1nj0iur" scope="col">登录</th><th class="th-check svelte-1nj0iur" scope="col">检查登录</th></tr></thead><tbody class="svelte-1nj0iur"></tbody></table></div>'),ue=p('<div class="modal-header svelte-1nj0iur"><!> <!></div> <form class="modal-body svelte-1nj0iur"><p class="add-hint svelte-1nj0iur">对于不支持RSS的站点,添加插件可以覆盖特定站点的解析规则</p> <div class="field svelte-1nj0iur"><span class="field-label svelte-1nj0iur">站点匹配规则</span> <input class="field-input svelte-1nj0iur" type="text" name="listUrlPattern" placeholder="例如 https://www.example.com/* 或 https://example.com/list/{segment}" autocomplete="off"/></div> <div class="field svelte-1nj0iur"><span class="field-label svelte-1nj0iur">插件 id</span> <input class="field-input svelte-1nj0iur" type="text" name="pluginId" placeholder="例如 my-site" autocomplete="off"/></div> <div class="modal-footer svelte-1nj0iur"><div class="modal-footer-right svelte-1nj0iur"><!> <button type="submit" class="btn-save svelte-1nj0iur"> </button></div></div></form>',1),pe=p("<!> <!>",1),fe=p('<div class="feed-wrap svelte-1nj0iur"><div class="feed-col svelte-1nj0iur"><div class="plugins-toolbar-block svelte-1nj0iur"><div class="feed-header svelte-1nj0iur"><div class="header-left svelte-1nj0iur"><input class="filter-input svelte-1nj0iur" type="search" placeholder="过滤…" autocomplete="off"/></div> <div class="header-right svelte-1nj0iur"><button type="button" class="btn-add svelte-1nj0iur" title="添加插件" aria-label="添加插件"><!></button></div></div></div> <div class="plugins-body-scroll svelte-1nj0iur"><!></div></div></div> <!>',1);function Re(jt,yt){Lt(yt,!1);const U=h(),N=h();let $=h([]),z=h(""),G=h(!0),C=h(!1),j=h(""),y=h(""),S=h(!1),J=h("");function ct(){o(j,""),o(y,""),o(C,!0)}function wt(e){o(C,e),e||(o(j,""),o(y,""))}async function Pt(e){e.preventDefault();const a=t(j).trim(),i=t(y).trim();if(!a){m("请填写插件 id","error");return}if(!i){m("请填写支持的站点(URL 或匹配规则)","error");return}o(S,!0);try{const n=await q("/api/plugins",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,listUrlPattern:i})}),_=await n.text();let l={};try{l=_?JSON.parse(_):{}}catch{l={}}if(!n.ok){m(l.error||_||`HTTP ${n.status}`,"error");return}l.ok&&(m("已创建插件文件","success"),o(C,!1),o(j,""),o(y,""),await vt(),await dt("/plugins/"+encodeURIComponent(a)))}catch(n){m("请求失败: "+(n instanceof Error?n.message:String(n)),"error")}finally{o(S,!1)}}async function vt(){o(G,!0),o(z,"");try{const a=await(await q("/api/plugins")).json();o($,[...a].sort((i,n)=>(n.hasAuth?1:0)-(i.hasAuth?1:0)))}catch(e){o(z,"加载失败: "+(e instanceof Error?e.message:String(e)))}finally{o(G,!1)}}async function kt(e,a){a.preventDefault(),a.stopPropagation();try{const n=await(await q(`/auth/check?siteId=${encodeURIComponent(e.id)}`)).json();n.ok?m(`${e.id}:${n.authenticated?"✓ 已登录":"✗ 未登录"}`,n.authenticated?"success":"error"):m(n.message||"检查失败","error")}catch(i){m("请求失败: "+(i instanceof Error?i.message:String(i)),"error")}}function ut(e){dt("/plugins/"+encodeURIComponent(e.id))}function $t(e,a){(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),ut(e))}async function xt(e,a){a.preventDefault(),a.stopPropagation();try{const n=await(await q(`/auth/open?siteId=${encodeURIComponent(e.id)}`,{method:"POST"})).json();n.ok?m(n.message||"已打开登录页面","success"):m(n.message||"打开失败","error")}catch(i){m("请求失败: "+(i instanceof Error?i.message:String(i)),"error")}}Et(()=>{vt(),Ft(Gt).url.searchParams.get("openAdd")==="1"&&(o(j,""),o(y,""),o(C,!0),dt("/plugins",{replaceState:!0}))}),bt(()=>t(J),()=>{o(U,t(J).trim().toLowerCase())}),bt(()=>(t(U),t($)),()=>{o(N,t(U)?t($).filter(e=>e.id.toLowerCase().includes(t(U))||e.listUrlPattern.toLowerCase().includes(t(U))):t($))}),Ot(),qt();var pt=fe();Kt("1nj0iur",e=>{zt(()=>{Jt.title=`插件 - ${Qt}`})});var V=lt(pt),ft=r(V),W=r(ft),mt=r(W),X=r(mt),Y=r(X);it(Y),O(Y,"spellcheck",!1),s(X);var _t=c(X,2),Z=r(_t),Dt=r(Z);Vt(Dt,{size:16,"aria-hidden":"true"}),s(Z),s(_t),s(mt),s(W);var ht=c(W,2),Ut=r(ht);{var Ct=e=>{var a=ee();u(e,a)},St=e=>{var a=ae(),i=r(a,!0);s(a),ot(()=>K(i,t(z))),u(e,a)},At=e=>{var a=se(),i=c(r(a));H(5),s(a),D("click",i,ct),u(e,a)},It=e=>{var a=re();u(e,a)},Rt=e=>{var a=ve(),i=r(a),n=c(r(i));Ht(n,5,()=>t(N),_=>_.id,(_,l)=>{var g=ce(),A=r(g),tt=r(A),x=r(tt),I=r(x,!0);s(x);var M=c(x,2);{var et=d=>{var v=le();u(d,v)};Q(M,d=>{t(l),b(()=>t(l).kind==="source")&&d(et)})}s(tt),s(A);var w=c(A),P=r(w),R=r(P,!0);s(P),s(w);var k=c(w),T=r(k);{var B=d=>{var v=oe();D("click",v,st=>xt(t(l),st)),u(d,v)},F=d=>{var v=ie();u(d,v)};Q(T,d=>{t(l),b(()=>t(l).hasAuth)?d(B):d(F,-1)})}s(k);var E=c(k),L=r(E);{var at=d=>{var v=ne();D("click",v,st=>kt(t(l),st)),u(d,v)},f=d=>{var v=de();u(d,v)};Q(L,d=>{t(l),b(()=>t(l).hasAuth)?d(at):d(f,-1)})}s(E),s(g),ot(()=>{O(g,"aria-label",`打开插件 ${t(l),b(()=>t(l).id)??""}`),K(I,(t(l),b(()=>t(l).id))),O(P,"title",(t(l),b(()=>t(l).listUrlPattern))),K(R,(t(l),b(()=>t(l).listUrlPattern)))}),D("click",g,()=>ut(t(l))),D("keydown",g,d=>$t(t(l),d)),u(_,g)}),s(n),s(i),s(a),u(e,a)};Q(Ut,e=>{t(G)?e(Ct):t(z)?e(St,1):(t($),b(()=>t($).length===0)?e(At,2):(t(N),b(()=>t(N).length===0)?e(It,3):e(Rt,-1)))})}s(ht),s(ft),s(V);var Tt=c(V,2);Wt(Tt,{get open(){return t(C)},onOpenChange:wt,children:(e,a)=>{Xt(e,{children:(i,n)=>{var _=pe(),l=lt(_);Yt(l,{class:"modal-overlay"});var g=c(l,2);Zt(g,{class:"modal","aria-describedby":void 0,children:(A,tt)=>{var x=ue(),I=lt(x),M=r(I);te(M,{class:"modal-title",children:(f,d)=>{H();var v=rt("添加插件");u(f,v)},$$slots:{default:!0}});var et=c(M,2);gt(et,{class:"modal-close","aria-label":"关闭",children:(f,d)=>{H();var v=rt("✕");u(f,v)},$$slots:{default:!0}}),s(I);var w=c(I,2),P=c(r(w),2),R=c(r(P),2);it(R),O(R,"spellcheck",!1),s(P);var k=c(P,2),T=c(r(k),2);it(T),O(T,"spellcheck",!1),s(k);var B=c(k,2),F=r(B),E=r(F);gt(E,{class:"btn-cancel",get disabled(){return t(S)},type:"button",children:(f,d)=>{H();var v=rt("取消");u(f,v)},$$slots:{default:!0}});var L=c(E,2),at=r(L,!0);s(L),s(F),s(B),s(w),ot(()=>{L.disabled=t(S),K(at,t(S)?"创建中…":"创建并打开编辑")}),Bt("submit",w,Pt),nt(R,()=>t(y),f=>o(y,f)),nt(T,()=>t(j),f=>o(j,f)),u(A,x)},$$slots:{default:!0}}),u(i,_)},$$slots:{default:!0}})},$$slots:{default:!0}}),nt(Y,()=>t(J),e=>o(J,e)),D("click",Z,ct),u(jt,pt),Nt()}Mt(["click","keydown"]);export{Re as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,f as p}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{o as m}from"../chunks/Bp63qm3L.js";import{at as e,au as s,X as i,$ as f}from"../chunks/BbWUOQ_m.js";import{h as n}from"../chunks/DEDI7Ecm.js";import{i as c}from"../chunks/CVzlFH44.js";import{g as d}from"../chunks/BXCWEhUd.js";var h=p('<p class="redirect-msg svelte-1b0rhdm">正在打开添加插件…</p>');function A(o,r){e(r,!1),m(()=>{d("/plugins?openAdd=1",{replaceState:!0})}),c();var t=h();n("1b0rhdm",l=>{i(()=>{f.title="插件"})}),a(o,t),s()}export{A as component};
|