rssany 0.3.1 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/.env.example +52 -52
  2. package/README.md +156 -147
  3. package/app/plugins/builtin/email.rssany.js +84 -84
  4. package/app/plugins/builtin/rss.rssany.js +164 -164
  5. package/app/plugins/builtin/xiaohongshu.rssany.js +59 -2
  6. package/app/statics/README.md +7 -7
  7. package/app/webui/build/200.html +36 -36
  8. package/app/webui/build/_app/immutable/assets/0.BLOTwIuF.css +1 -0
  9. package/app/webui/build/_app/immutable/assets/10.CmGYYZFR.css +1 -0
  10. package/app/webui/build/_app/immutable/assets/11.Dkz3VS_N.css +1 -0
  11. package/app/webui/build/_app/immutable/assets/14.BCCBoMGj.css +1 -0
  12. package/app/webui/build/_app/immutable/assets/6.Cm_jpHOq.css +1 -0
  13. package/app/webui/build/_app/immutable/assets/7.CJ3BjogD.css +1 -0
  14. package/app/webui/build/_app/immutable/assets/9.CATKVZ-n.css +1 -0
  15. package/app/webui/build/_app/immutable/assets/{SourcesList.D5Lso0bo.css → SourcesList.ke66uOSi.css} +1 -1
  16. package/app/webui/build/_app/immutable/assets/chevron-down.CV-KWLNP.css +1 -0
  17. package/app/webui/build/_app/immutable/chunks/{CGCMIfh3.js → 4TuV_psf.js} +1 -1
  18. package/app/webui/build/_app/immutable/chunks/{DAdOEnFb.js → B0czyjwj.js} +1 -1
  19. package/app/webui/build/_app/immutable/chunks/{CFwxUBGi.js → B553hBXT.js} +1 -1
  20. package/app/webui/build/_app/immutable/chunks/B8StT3Do.js +6 -0
  21. package/app/webui/build/_app/immutable/chunks/BI_ale1m.js +1 -0
  22. package/app/webui/build/_app/immutable/chunks/BK0ygNWX.js +2 -0
  23. package/app/webui/build/_app/immutable/chunks/BKm6QCwp.js +1 -0
  24. package/app/webui/build/_app/immutable/chunks/BT6b4LcZ.js +36 -0
  25. package/app/webui/build/_app/immutable/chunks/BZY5aksi.js +36 -0
  26. package/app/webui/build/_app/immutable/chunks/{C8umpVpB.js → BnqaikL8.js} +1 -1
  27. package/app/webui/build/_app/immutable/chunks/BsQ08Wq_.js +1 -0
  28. package/app/webui/build/_app/immutable/chunks/C9wTDiHH.js +1 -0
  29. package/app/webui/build/_app/immutable/chunks/{B-CeeY89.js → CAKuIoAf.js} +1 -1
  30. package/app/webui/build/_app/immutable/chunks/CEWi_rGa.js +1 -0
  31. package/app/webui/build/_app/immutable/chunks/{ChUctqXA.js → Cc7aBSsN.js} +1 -1
  32. package/app/webui/build/_app/immutable/chunks/{BAJAS8BI.js → D8G961Hm.js} +1 -1
  33. package/app/webui/build/_app/immutable/chunks/{CS53ooo0.js → DIeahUKq.js} +1 -1
  34. package/app/webui/build/_app/immutable/chunks/DO5OXNYS.js +1 -0
  35. package/app/webui/build/_app/immutable/chunks/Dg_D3pjF.js +1 -0
  36. package/app/webui/build/_app/immutable/chunks/{Dyvi1wBH.js → DptdhtA1.js} +1 -1
  37. package/app/webui/build/_app/immutable/chunks/{ClknbeNl.js → FDS7fbwH.js} +1 -1
  38. package/app/webui/build/_app/immutable/chunks/{CqYSO3Dx.js → GeNMTUn1.js} +1 -1
  39. package/app/webui/build/_app/immutable/chunks/{DCEayuDt.js → IhDlsCxD.js} +1 -1
  40. package/app/webui/build/_app/immutable/chunks/Nd0ktDhd.js +1 -0
  41. package/app/webui/build/_app/immutable/chunks/{D6kzEN_P.js → SvdgnirT.js} +1 -1
  42. package/app/webui/build/_app/immutable/chunks/WW6La7Nt.js +2 -0
  43. package/app/webui/build/_app/immutable/chunks/{DsxvjlCC.js → pd_p3yYy.js} +5 -5
  44. package/app/webui/build/_app/immutable/chunks/rNwPv4DZ.js +1 -0
  45. package/app/webui/build/_app/immutable/entry/app.BKLBG-4w.js +2 -0
  46. package/app/webui/build/_app/immutable/entry/start.D-X6pVtx.js +1 -0
  47. package/app/webui/build/_app/immutable/nodes/{0.DK_mcVDm.js → 0.CJDC_3s9.js} +3 -3
  48. package/app/webui/build/_app/immutable/nodes/1.DsKocFSb.js +1 -0
  49. package/app/webui/build/_app/immutable/nodes/10.BeejAn8z.js +1 -0
  50. package/app/webui/build/_app/immutable/nodes/11.D--uwkk0.js +3 -0
  51. package/app/webui/build/_app/immutable/nodes/12.BLyQ6rUu.js +1 -0
  52. package/app/webui/build/_app/immutable/nodes/13.Cl0WQK13.js +1 -0
  53. package/app/webui/build/_app/immutable/nodes/14.T9l5Rh19.js +1 -0
  54. package/app/webui/build/_app/immutable/nodes/15.DHfwIlBx.js +1 -0
  55. package/app/webui/build/_app/immutable/nodes/{16.zfSe93Ab.js → 16.BKDfR-KV.js} +2 -2
  56. package/app/webui/build/_app/immutable/nodes/17.DofB8HQB.js +1 -0
  57. package/app/webui/build/_app/immutable/nodes/2.BOYqXdCa.js +1 -0
  58. package/app/webui/build/_app/immutable/nodes/3.B9ucbp_W.js +1 -0
  59. package/app/webui/build/_app/immutable/nodes/5.9zgwFV6I.js +2 -0
  60. package/app/webui/build/_app/immutable/nodes/6.Bs32Ieii.js +2 -0
  61. package/app/webui/build/_app/immutable/nodes/7.Cigxrk0v.js +1 -0
  62. package/app/webui/build/_app/immutable/nodes/8.pG10rCF0.js +1 -0
  63. package/app/webui/build/_app/immutable/nodes/9.Bzqb3xHY.js +1 -0
  64. package/app/webui/build/_app/version.json +1 -1
  65. package/bin/rssany.js +55 -3
  66. package/dist/index.js +361 -99
  67. package/dist/index.js.map +1 -1
  68. package/package.json +107 -103
  69. package/scripts/dev.mjs +5 -1
  70. package/scripts/postinstall.mjs +44 -0
  71. package/scripts/reset.mjs +137 -135
  72. package/scripts/user-dir.mjs +52 -0
  73. package/app/webui/build/_app/immutable/assets/0.DsKls1SN.css +0 -1
  74. package/app/webui/build/_app/immutable/assets/10.Dj8_pmut.css +0 -1
  75. package/app/webui/build/_app/immutable/assets/13.Qu_tY6H9.css +0 -1
  76. package/app/webui/build/_app/immutable/assets/5.B-dPiwB7.css +0 -1
  77. package/app/webui/build/_app/immutable/assets/6.B27N7pdA.css +0 -1
  78. package/app/webui/build/_app/immutable/assets/8.Cgji2b15.css +0 -1
  79. package/app/webui/build/_app/immutable/assets/9.BsCIAvn3.css +0 -1
  80. package/app/webui/build/_app/immutable/chunks/6prdYIKP.js +0 -1
  81. package/app/webui/build/_app/immutable/chunks/B2cyTHdf.js +0 -2
  82. package/app/webui/build/_app/immutable/chunks/B6WG2Sd3.js +0 -1
  83. package/app/webui/build/_app/immutable/chunks/BA4Gucnq.js +0 -1
  84. package/app/webui/build/_app/immutable/chunks/BkD3yAYe.js +0 -1
  85. package/app/webui/build/_app/immutable/chunks/C4uF_YIK.js +0 -1
  86. package/app/webui/build/_app/immutable/chunks/CBY2biv-.js +0 -1
  87. package/app/webui/build/_app/immutable/chunks/CVW0ymE1.js +0 -1
  88. package/app/webui/build/_app/immutable/chunks/DJ2e04vK.js +0 -36
  89. package/app/webui/build/_app/immutable/chunks/DL3Q5sfb.js +0 -1
  90. package/app/webui/build/_app/immutable/chunks/DVa8Y-mQ.js +0 -1
  91. package/app/webui/build/_app/immutable/chunks/DkamXS6W.js +0 -36
  92. package/app/webui/build/_app/immutable/chunks/DoRPmqLn.js +0 -2
  93. package/app/webui/build/_app/immutable/chunks/_qj9U-za.js +0 -1
  94. package/app/webui/build/_app/immutable/chunks/vtBo8kBV.js +0 -1
  95. package/app/webui/build/_app/immutable/entry/app.RFfWi3_i.js +0 -2
  96. package/app/webui/build/_app/immutable/entry/start.DU_kyeGS.js +0 -1
  97. package/app/webui/build/_app/immutable/nodes/1.0PRrU2uQ.js +0 -1
  98. package/app/webui/build/_app/immutable/nodes/10.CsxzlUER.js +0 -1
  99. package/app/webui/build/_app/immutable/nodes/11.D-PkhIRW.js +0 -1
  100. package/app/webui/build/_app/immutable/nodes/12.GGf-JLUY.js +0 -1
  101. package/app/webui/build/_app/immutable/nodes/13.DWWcH27k.js +0 -6
  102. package/app/webui/build/_app/immutable/nodes/14.COwSLwDN.js +0 -1
  103. package/app/webui/build/_app/immutable/nodes/15.nDN_AHrs.js +0 -1
  104. package/app/webui/build/_app/immutable/nodes/2.AJd2163d.js +0 -1
  105. package/app/webui/build/_app/immutable/nodes/3.CEVEHuaH.js +0 -1
  106. package/app/webui/build/_app/immutable/nodes/4.BT_N8pCh.js +0 -2
  107. package/app/webui/build/_app/immutable/nodes/5.BZScQ2CH.js +0 -2
  108. package/app/webui/build/_app/immutable/nodes/6.CkFk8X--.js +0 -1
  109. package/app/webui/build/_app/immutable/nodes/7.CuQJk7te.js +0 -1
  110. package/app/webui/build/_app/immutable/nodes/8.DIavWJnU.js +0 -1
  111. package/app/webui/build/_app/immutable/nodes/9.Db30M8x0.js +0 -1
  112. /package/app/webui/build/_app/immutable/assets/{11.qYZMiTb0.css → 12.qYZMiTb0.css} +0 -0
  113. /package/app/webui/build/_app/immutable/assets/{12.DfJcfUWl.css → 13.DfJcfUWl.css} +0 -0
  114. /package/app/webui/build/_app/immutable/assets/{14.DfMfOrS3.css → 15.DfMfOrS3.css} +0 -0
  115. /package/app/webui/build/_app/immutable/assets/{15.nNGjXhCQ.css → 17.nNGjXhCQ.css} +0 -0
  116. /package/app/webui/build/_app/immutable/assets/{4.Di6rvlY-.css → 5.Di6rvlY-.css} +0 -0
  117. /package/app/webui/build/_app/immutable/assets/{7.CrNxmd8B.css → 8.CrNxmd8B.css} +0 -0
  118. /package/app/webui/build/_app/immutable/nodes/{17.BtYZF6FM.js → 18.BtYZF6FM.js} +0 -0
  119. /package/app/webui/build/_app/immutable/nodes/{18.BIzqhTqv.js → 4.BIzqhTqv.js} +0 -0
@@ -0,0 +1,36 @@
1
+ var Br=Object.defineProperty;var Os=p=>{throw TypeError(p)};var qr=(p,t,r)=>t in p?Br(p,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):p[t]=r;var ge=(p,t,r)=>qr(p,typeof t!="symbol"?t+"":t,r),Xo=(p,t,r)=>t.has(p)||Os("Cannot "+r);var f=(p,t,r)=>(Xo(p,t,"read from private field"),r?r.call(p):t.get(p)),A=(p,t,r)=>t.has(p)?Os("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(p):t.set(p,r),D=(p,t,r,l)=>(Xo(p,t,"write to private field"),l?l.call(p,r):t.set(p,r),r),C=(p,t,r)=>(Xo(p,t,"access private method"),r);import{p as er,c as Z,a as m,f as T,t as st}from"./DIeahUKq.js";import"./CEWi_rGa.js";import{o as Jr}from"./DptdhtA1.js";import{b8 as rt,k as e,a5 as n,aA as Ee,at as Do,f as S,au as Fo,av as h,aj as Mo,ax as d,aC as Qe,aD as Xr,aw as y,ay as te,az as oe,u as z,y as Ke,F as $,aq as Yo}from"./BsQ08Wq_.js";import{o as eo,d as Yr,a as ie,s as le,e as Qr,r as Gr}from"./BK0ygNWX.js";import{s as Zr,a as Ms}from"./BI_ale1m.js";import{i as ue}from"./rNwPv4DZ.js";import{e as xo,i as Rr}from"./B553hBXT.js";import{f as so,r as to,b as Dt,a as He,s as Qo}from"./WW6La7Nt.js";import{b as oo}from"./BnqaikL8.js";import{i as en}from"./Nd0ktDhd.js";import{g as As}from"./FDS7fbwH.js";import{p as Go}from"./GeNMTUn1.js";import{s as Ft}from"./4TuV_psf.js";import{R as tn,M as on,P as sn,a as rn,h as Ds,S as nn,b as an,r as ln,s as un,c as cn}from"./BZY5aksi.js";import{D as Fs,a as Is,b as Ls,c as Ns,d as So}from"./B0czyjwj.js";import{P as dn}from"./SvdgnirT.js";import{w as cs,j as pn,k as yt,C as hn,a as Hs,b as fe,d as tr,l as fn,p as Ao,E as vn,S as mn,g as or,q as yn,r as bn,c as _n,f as sr,n as Lt,m as To,s as bt,I as Ct,P as It}from"./pd_p3yYy.js";import{P as gn,e as wn,g as Es,F as Cn,f as $n,S as Ws,a as Vs,C as js,b as Us,c as Ks,d as Bs}from"./B8StT3Do.js";import{s as $t}from"./Cc7aBSsN.js";import{p as q,s as Ge,r as rr,l as Pt}from"./D8G961Hm.js";function Zo(p,t){const[r,l]=p;let u=!1;const c=t.length;for(let v=0,_=c-1;v<c;_=v++){const[J,ve]=t[v]??[0,0],[Se,R]=t[_]??[0,0];ve>=l!=R>=l&&r<=(Se-J)*(l-ve)/(R-ve)+J&&(u=!u)}return u}function Ro(p,t){return p[0]>=t.left&&p[0]<=t.right&&p[1]>=t.top&&p[1]<=t.bottom}function qs(p,t){const r=p.left+p.width/2,l=p.top+p.height/2,u=t.left+t.width/2,c=t.top+t.height/2,v=u-r,_=c-l;return Math.abs(v)>Math.abs(_)?v>0?"right":"left":_>0?"bottom":"top"}var at,Nt,Ht,qe,we,_t,gt,it,lt,x,Oo,es,ts,nr,ar,Be,os,ir,lr;class Pn{constructor(t){A(this,x);A(this,at);A(this,Nt);A(this,Ht);A(this,qe,null);A(this,we,null);A(this,_t,[]);A(this,gt,null);A(this,it,null);A(this,lt,null);D(this,at,t),D(this,Nt,t.buffer??1);const r=t.transitIntentTimeout;D(this,Ht,typeof r=="number"&&r>0?r:null),cs([t.triggerNode,t.contentNode,t.enabled],([l,u,c])=>{if(!l||!u||!c){D(this,gt,null),C(this,x,Be).call(this);return}f(this,gt)&&f(this,gt)!==l&&C(this,x,Be).call(this),D(this,gt,l);const v=pn(l),_=M=>{C(this,x,ar).call(this,[M.clientX,M.clientY],l,u)},J=M=>{var Te,Oe;const F=M.relatedTarget;if(yt(F)&&u.contains(F))return;const V=((Oe=(Te=f(this,at)).ignoredTargets)==null?void 0:Oe.call(Te))??[];yt(F)&&V.some(Ie=>Ie===F||Ie.contains(F))||(D(this,_t,yt(F)&&V.length>0?V.filter(Ie=>F.contains(Ie)):[]),D(this,qe,[M.clientX,M.clientY]),D(this,we,"content"),C(this,x,es).call(this))},ve=()=>{C(this,x,Be).call(this)},Se=()=>{C(this,x,Be).call(this)},R=M=>{const F=M.relatedTarget;yt(F)&&l.contains(F)||(D(this,qe,[M.clientX,M.clientY]),D(this,we,"trigger"),C(this,x,es).call(this))};return[eo(v,"pointermove",_),eo(l,"pointerleave",J),eo(l,"pointerenter",ve),eo(u,"pointerenter",Se),eo(u,"pointerleave",R)].reduce((M,F)=>()=>{M(),F()},()=>{})})}}at=new WeakMap,Nt=new WeakMap,Ht=new WeakMap,qe=new WeakMap,we=new WeakMap,_t=new WeakMap,gt=new WeakMap,it=new WeakMap,lt=new WeakMap,x=new WeakSet,Oo=function(){f(this,it)!==null&&(cancelAnimationFrame(f(this,it)),D(this,it,null))},es=function(){C(this,x,Oo).call(this),D(this,it,requestAnimationFrame(()=>{D(this,it,null),!(!f(this,qe)||!f(this,we))&&(C(this,x,Be).call(this),f(this,at).onPointerExit())}))},ts=function(){f(this,lt)!==null&&(clearTimeout(f(this,lt)),D(this,lt,null))},nr=function(){f(this,Ht)!==null&&(C(this,x,ts).call(this),D(this,lt,window.setTimeout(()=>{D(this,lt,null),!(!f(this,qe)||!f(this,we))&&(C(this,x,Be).call(this),f(this,at).onPointerExit())},f(this,Ht))))},ar=function(t,r,l){if(!f(this,qe)||!f(this,we))return;C(this,x,Oo).call(this),C(this,x,nr).call(this);const u=r.getBoundingClientRect(),c=l.getBoundingClientRect();if(f(this,we)==="content"&&Ro(t,c)){C(this,x,Be).call(this);return}if(f(this,we)==="trigger"&&Ro(t,u)){C(this,x,Be).call(this);return}if(f(this,we)==="content"&&f(this,_t).length>0)for(const Se of f(this,_t)){const R=Se.getBoundingClientRect();if(Ro(t,R))return;const M=qs(u,R),F=C(this,x,os).call(this,u,R,M);if(F&&Zo(t,F))return}const v=qs(u,c),_=C(this,x,os).call(this,u,c,v);if(_&&Zo(t,_))return;const J=f(this,we)==="content"?c:u,ve=C(this,x,ir).call(this,f(this,qe),J,v,f(this,we));Zo(t,ve)||(C(this,x,Be).call(this),f(this,at).onPointerExit())},Be=function(){D(this,qe,null),D(this,we,null),D(this,_t,[]),C(this,x,Oo).call(this),C(this,x,ts).call(this)},os=function(t,r,l){const u=f(this,Nt);switch(l){case"top":return[[Math.min(t.left,r.left)-u,t.top],[Math.min(t.left,r.left)-u,r.bottom],[Math.max(t.right,r.right)+u,r.bottom],[Math.max(t.right,r.right)+u,t.top]];case"bottom":return[[Math.min(t.left,r.left)-u,t.bottom],[Math.min(t.left,r.left)-u,r.top],[Math.max(t.right,r.right)+u,r.top],[Math.max(t.right,r.right)+u,t.bottom]];case"left":return[[t.left,Math.min(t.top,r.top)-u],[r.right,Math.min(t.top,r.top)-u],[r.right,Math.max(t.bottom,r.bottom)+u],[t.left,Math.max(t.bottom,r.bottom)+u]];case"right":return[[t.right,Math.min(t.top,r.top)-u],[r.left,Math.min(t.top,r.top)-u],[r.left,Math.max(t.bottom,r.bottom)+u],[t.right,Math.max(t.bottom,r.bottom)+u]]}},ir=function(t,r,l,u){const c=f(this,Nt)*4,[v,_]=t;switch(u==="trigger"?C(this,x,lr).call(this,l):l){case"top":return[[v-c,_+c],[v+c,_+c],[r.right+c,r.bottom],[r.right+c,r.top],[r.left-c,r.top],[r.left-c,r.bottom]];case"bottom":return[[v-c,_-c],[v+c,_-c],[r.right+c,r.top],[r.right+c,r.bottom],[r.left-c,r.bottom],[r.left-c,r.top]];case"left":return[[v+c,_-c],[v+c,_+c],[r.right,r.bottom+c],[r.left,r.bottom+c],[r.left,r.top-c],[r.right,r.top-c]];case"right":return[[v-c,_-c],[v-c,_+c],[r.left,r.bottom+c],[r.right,r.bottom+c],[r.right,r.top-c],[r.left,r.top-c]]}},lr=function(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}};const ss=_n({component:"popover",parts:["root","trigger","content","close","overlay"]}),ds=new hn("Popover.Root");var ro,no,ao,io,lo,uo,co,ut,ct,Je,nt;const ps=class ps{constructor(t){A(this,Je);ge(this,"opts");A(this,ro,rt(null));ge(this,"contentPresence");A(this,no,rt(null));A(this,ao,rt(null));ge(this,"overlayPresence");A(this,io,rt(!1));A(this,lo,rt(!1));A(this,uo,rt(!1));A(this,co,rt(0));A(this,ut,null);A(this,ct,null);this.opts=t,this.contentPresence=new Hs({ref:fe(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Hs({ref:fe(()=>this.overlayNode),open:this.opts.open}),cs(()=>this.opts.open.current,r=>{r||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,C(this,Je,nt).call(this))})}static create(t){return ds.set(new ps(t))}get contentNode(){return e(f(this,ro))}set contentNode(t){n(f(this,ro),t,!0)}get triggerNode(){return e(f(this,no))}set triggerNode(t){n(f(this,no),t,!0)}get overlayNode(){return e(f(this,ao))}set overlayNode(t){n(f(this,ao),t,!0)}get openedViaHover(){return e(f(this,io))}set openedViaHover(t){n(f(this,io),t,!0)}get hasInteractedWithContent(){return e(f(this,lo))}set hasInteractedWithContent(t){n(f(this,lo),t,!0)}get hoverCooldown(){return e(f(this,uo))}set hoverCooldown(t){n(f(this,uo),t,!0)}get closeDelay(){return e(f(this,co))}set closeDelay(t){n(f(this,co),t,!0)}setDomContext(t){D(this,ct,t)}toggleOpen(){C(this,Je,nt).call(this),this.opts.open.current=!this.opts.open.current}handleClose(){C(this,Je,nt).call(this),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){C(this,Je,nt).call(this),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(C(this,Je,nt).call(this),this.closeDelay<=0?this.opts.open.current=!1:f(this,ct)&&D(this,ut,f(this,ct).setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),D(this,ut,null)},this.closeDelay))))}cancelDelayedClose(){C(this,Je,nt).call(this)}markInteraction(){this.hasInteractedWithContent=!0,C(this,Je,nt).call(this)}};ro=new WeakMap,no=new WeakMap,ao=new WeakMap,io=new WeakMap,lo=new WeakMap,uo=new WeakMap,co=new WeakMap,ut=new WeakMap,ct=new WeakMap,Je=new WeakSet,nt=function(){f(this,ut)!==null&&f(this,ct)&&(f(this,ct).clearTimeout(f(this,ut)),D(this,ut,null))};let rs=ps;var dt,Et,wt,xe,as,is,ls,ur,po;const hs=class hs{constructor(t,r){A(this,xe);ge(this,"opts");ge(this,"root");ge(this,"attachment");ge(this,"domContext");A(this,dt,null);A(this,Et,null);A(this,wt,rt(!1));A(this,po,Ee(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":yn(this.root.opts.open.current),"data-state":or(this.root.opts.open.current),"aria-controls":C(this,xe,ur).call(this),[ss.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));this.opts=t,this.root=r,this.attachment=tr(this.opts.ref,l=>this.root.triggerNode=l),this.domContext=new fn(t.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),cs(()=>this.opts.closeDelay.current,l=>{this.root.closeDelay=l})}static create(t){return new hs(t,ds.get())}onpointerenter(t){if(this.opts.disabled.current||!this.opts.openOnHover.current||Ao(t)||(n(f(this,wt),!0),C(this,xe,is).call(this),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const r=this.opts.openDelay.current;r<=0?this.root.handleHoverOpen():D(this,dt,this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),D(this,dt,null)},r))}onpointerleave(t){this.opts.disabled.current||this.opts.openOnHover.current&&(Ao(t)||(n(f(this,wt),!1),C(this,xe,as).call(this),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(C(this,xe,ls).call(this),e(f(this,wt))&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}e(f(this,wt))&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(t){this.opts.disabled.current||(t.key===vn||t.key===mn)&&(t.preventDefault(),C(this,xe,ls).call(this),this.root.toggleOpen())}get props(){return e(f(this,po))}set props(t){n(f(this,po),t)}};dt=new WeakMap,Et=new WeakMap,wt=new WeakMap,xe=new WeakSet,as=function(){f(this,dt)!==null&&(this.domContext.clearTimeout(f(this,dt)),D(this,dt,null))},is=function(){f(this,Et)!==null&&(this.domContext.clearTimeout(f(this,Et)),D(this,Et,null))},ls=function(){C(this,xe,as).call(this),C(this,xe,is).call(this)},ur=function(){var t,r;if(this.root.opts.open.current&&((t=this.root.contentNode)!=null&&t.id))return(r=this.root.contentNode)==null?void 0:r.id},po=new WeakMap;let ns=hs;var ho,fo;const fs=class fs{constructor(t,r){ge(this,"opts");ge(this,"root");ge(this,"attachment");ge(this,"onInteractOutside",t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!yt(t.target))return;const r=t.target.closest(ss.selector("trigger"));if(!(r&&r===this.root.triggerNode)){if(this.opts.customAnchor.current){if(yt(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const l=document.querySelector(this.opts.customAnchor.current);if(l&&l.contains(t.target))return}}this.root.handleClose()}});ge(this,"onEscapeKeydown",t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()});A(this,ho,Ee(()=>({open:this.root.opts.open.current})));A(this,fo,Ee(()=>({id:this.opts.id.current,tabindex:-1,"data-state":or(this.root.opts.open.current),[ss.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));ge(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown});this.opts=t,this.root=r,this.attachment=tr(this.opts.ref,l=>this.root.contentNode=l),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new Pn({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}static create(t){return new fs(t,ds.get())}onpointerdown(t){this.root.markInteraction()}onfocusin(t){const r=t.target;yt(r)&&bn(r)&&this.root.markInteraction()}onpointerenter(t){Ao(t)||this.root.cancelDelayedClose()}onpointerleave(t){Ao(t)}get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}get snippetProps(){return e(f(this,ho))}set snippetProps(t){n(f(this,ho),t)}get props(){return e(f(this,fo))}set props(t){n(f(this,fo),t)}};ho=new WeakMap,fo=new WeakMap;let us=fs;var kn=T("<div><div><!></div></div>"),zn=T("<div><div><!></div></div>");function Js(p,t){const r=er();Do(t,!0);let l=q(t,"ref",15,null),u=q(t,"id",19,()=>sr(r)),c=q(t,"forceMount",3,!1),v=q(t,"onOpenAutoFocus",3,Lt),_=q(t,"onCloseAutoFocus",3,Lt),J=q(t,"onEscapeKeydown",3,Lt),ve=q(t,"onInteractOutside",3,Lt),Se=q(t,"trapFocus",3,!0),R=q(t,"preventScroll",3,!1),M=q(t,"customAnchor",3,null),F=rr(t,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]);const V=us.create({id:fe(()=>u()),ref:fe(()=>l(),U=>l(U)),onInteractOutside:fe(()=>ve()),onEscapeKeydown:fe(()=>J()),customAnchor:fe(()=>M())}),Te=Ee(()=>To(F,V.props)),Oe=Ee(()=>Se()&&V.shouldTrapFocus);function Ie(U){V.shouldTrapFocus||U.preventDefault(),v()(U)}var kt=Z(),We=S(kt);{var j=U=>{gn(U,Ge(()=>e(Te),()=>V.popperProps,{get ref(){return V.opts.ref},get enabled(){return V.root.opts.open.current},get id(){return u()},get trapFocus(){return e(Oe)},get preventScroll(){return R()},loop:!0,forceMount:!0,get customAnchor(){return M()},onOpenAutoFocus:Ie,get onCloseAutoFocus(){return _()},get shouldRender(){return V.shouldRender},popper:(Ze,X)=>{let Me=()=>X==null?void 0:X().props,Ce=()=>X==null?void 0:X().wrapperProps;const Ae=Ee(()=>To(Me(),{style:Es("popover")},{style:t.style}));var Ve=Z(),$e=S(Ve);{var Re=L=>{var K=Z(),B=S(K);{let De=Ee(()=>({props:e(Ae),wrapperProps:Ce(),...V.snippetProps}));bt(B,()=>t.child,()=>e(De))}m(L,K)},Le=L=>{var K=kn();so(K,()=>({...Ce()}));var B=h(K);so(B,()=>({...e(Ae)}));var De=h(B);bt(De,()=>t.children??Mo),d(B),d(K),m(L,K)};ue($e,L=>{t.child?L(Re):L(Le,-1)})}m(Ze,Ve)},$$slots:{popper:!0}}))},ee=U=>{wn(U,Ge(()=>e(Te),()=>V.popperProps,{get ref(){return V.opts.ref},get open(){return V.root.opts.open.current},get id(){return u()},get trapFocus(){return e(Oe)},get preventScroll(){return R()},loop:!0,forceMount:!1,get customAnchor(){return M()},onOpenAutoFocus:Ie,get onCloseAutoFocus(){return _()},get shouldRender(){return V.shouldRender},popper:(Ze,X)=>{let Me=()=>X==null?void 0:X().props,Ce=()=>X==null?void 0:X().wrapperProps;const Ae=Ee(()=>To(Me(),{style:Es("popover")},{style:t.style}));var Ve=Z(),$e=S(Ve);{var Re=L=>{var K=Z(),B=S(K);{let De=Ee(()=>({props:e(Ae),wrapperProps:Ce(),...V.snippetProps}));bt(B,()=>t.child,()=>e(De))}m(L,K)},Le=L=>{var K=zn();so(K,()=>({...Ce()}));var B=h(K);so(B,()=>({...e(Ae)}));var De=h(B);bt(De,()=>t.children??Mo),d(B),d(K),m(L,K)};ue($e,L=>{t.child?L(Re):L(Le,-1)})}m(Ze,Ve)},$$slots:{popper:!0}}))};ue(We,U=>{c()?U(j):c()||U(ee,1)})}m(p,kt),Fo()}var xn=T("<button><!></button>");function Xs(p,t){const r=er();Do(t,!0);let l=q(t,"id",19,()=>sr(r)),u=q(t,"ref",15,null),c=q(t,"type",3,"button"),v=q(t,"disabled",3,!1),_=q(t,"openOnHover",3,!1),J=q(t,"openDelay",3,700),ve=q(t,"closeDelay",3,300),Se=rr(t,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]);const R=ns.create({id:fe(()=>l()),ref:fe(()=>u(),F=>u(F)),disabled:fe(()=>!!v()),openOnHover:fe(()=>_()),openDelay:fe(()=>J()),closeDelay:fe(()=>ve())}),M=Ee(()=>To(Se,R.props,{type:c()}));Cn(p,{get id(){return l()},get ref(){return R.opts.ref},children:(F,V)=>{var Te=Z(),Oe=S(Te);{var Ie=We=>{var j=Z(),ee=S(j);bt(ee,()=>t.child,()=>({props:e(M)})),m(We,j)},kt=We=>{var j=xn();so(j,()=>({...e(M)}));var ee=h(j);bt(ee,()=>t.children??Mo),d(j),m(We,j)};ue(Oe,We=>{t.child?We(Ie):We(kt,-1)})}m(F,Te)},$$slots:{default:!0}}),Fo()}function Ys(p,t){Do(t,!0);let r=q(t,"open",15,!1),l=q(t,"onOpenChange",3,Lt),u=q(t,"onOpenChangeComplete",3,Lt);rs.create({open:fe(()=>r(),c=>{r(c),l()(c)}),onOpenChangeComplete:fe(()=>u())}),$n(p,{children:(c,v)=>{var _=Z(),J=S(_);bt(J,()=>t.children??Mo),m(c,_)},$$slots:{default:!0}}),Fo()}function Sn(p,t){const r=Pt(t,["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:"m3 16 4 4 4-4"}],["path",{d:"M7 20V4"}],["path",{d:"m21 8-4-4-4 4"}],["path",{d:"M17 4v16"}]];Ct(p,Ge({name:"arrow-down-up"},()=>r,{get iconNode(){return l},children:(u,c)=>{var v=Z(),_=S(v);$t(_,t,"default",{}),m(u,v)},$$slots:{default:!0}}))}function Tn(p,t){const r=Pt(t,["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=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}]];Ct(p,Ge({name:"copy"},()=>r,{get iconNode(){return l},children:(u,c)=>{var v=Z(),_=S(v);$t(_,t,"default",{}),m(u,v)},$$slots:{default:!0}}))}function On(p,t){const r=Pt(t,["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 l=[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"19",cy:"12",r:"1"}],["circle",{cx:"5",cy:"12",r:"1"}]];Ct(p,Ge({name:"ellipsis"},()=>r,{get iconNode(){return l},children:(u,c)=>{var v=Z(),_=S(v);$t(_,t,"default",{}),m(u,v)},$$slots:{default:!0}}))}function Mn(p,t){const r=Pt(t,["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 l=[["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"}]];Ct(p,Ge({name:"external-link"},()=>r,{get iconNode(){return l},children:(u,c)=>{var v=Z(),_=S(v);$t(_,t,"default",{}),m(u,v)},$$slots:{default:!0}}))}function An(p,t){const r=Pt(t,["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 l=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"}],["path",{d:"m15 5 4 4"}]];Ct(p,Ge({name:"pencil"},()=>r,{get iconNode(){return l},children:(u,c)=>{var v=Z(),_=S(v);$t(_,t,"default",{}),m(u,v)},$$slots:{default:!0}}))}function Qs(p,t){const r=Pt(t,["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 l=[["path",{d:"M3 6h18"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17"}]];Ct(p,Ge({name:"trash-2"},()=>r,{get iconNode(){return l},children:(u,c)=>{var v=Z(),_=S(v);$t(_,t,"default",{}),m(u,v)},$$slots:{default:!0}}))}function Dn(p,t){const r=Pt(t,["children","$$slots","$$events","$$legacy"]);/**
32
+ * @license lucide-svelte v0.460.1 - ISC
33
+ *
34
+ * This source code is licensed under the ISC license.
35
+ * See the LICENSE file in the root directory of this source tree.
36
+ */const l=[["path",{d:"M3 6h18"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"}]];Ct(p,Ge({name:"trash"},()=>r,{get iconNode(){return l},children:(u,c)=>{var v=Z(),_=S(v);$t(_,t,"default",{}),m(u,v)},$$slots:{default:!0}}))}function Gs(p,t={}){const r=p.trim();if(!r)return r;if(!/^https?:\/\//i.test(r))return r.toLowerCase();try{const l=new URL(r),u=l.protocol.toLowerCase(),c=l.host.toLowerCase();let v=l.pathname;return v.length>1&&v.endsWith("/")&&(v=v.slice(0,-1)),t.lowerPathCase&&(v=v.toLowerCase()),`${u}//${c}${v}${l.search}${l.hash}`}catch{return r.toLowerCase()}}function Zs(p){const t=p.trim();if(!/^https?:\/\//i.test(t))return null;try{return new URL(t).hostname.replace(/^www\./i,"")||null}catch{return null}}function Rs(p){return`/api/feed-favicon?domain=${encodeURIComponent(p)}`}var Fn=T("<span> </span> <!>",1),In=T("<!> <!>",1),Ln=T("<span> </span> <!>",1),Nn=T("<!> <!>",1),Hn=T('<p class="field-hint svelte-1beoyzy">暂无代理列表,可在后台「代理」中添加。</p>'),En=T('<p class="save-error svelte-1beoyzy"> </p>'),Wn=T('<span class="confirm-delete-row svelte-1beoyzy"><span class="confirm-delete-text svelte-1beoyzy">确认删除?</span> <button type="button" class="btn-confirm-yes svelte-1beoyzy">删除</button> <button type="button" class="btn-confirm-no svelte-1beoyzy">取消</button></span>'),Vn=T('<button type="button" class="btn-delete svelte-1beoyzy"><!> 删除</button>'),jn=T('<div class="modal-header svelte-1beoyzy"><!> <!></div> <div class="modal-body svelte-1beoyzy"><div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">Ref <span class="required svelte-1beoyzy">*</span></span> <div class="ref-input-wrap svelte-1beoyzy"><input class="field-input svelte-1beoyzy" type="text" placeholder="https://example.com/feed"/></div></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">来源</span> <div class="parse-hints svelte-1beoyzy" role="status" aria-live="polite"><span title="标准 RSS/Atom/JSON Feed(内置 __rss__,rss-parser)"><!> <span>RSS/Atom</span></span> <span title="内置 IMAP 邮件插件(__email__)"><!> <span>邮箱</span></span> <span title="Site 插件(listUrlPattern)或语鲸协议(lingowhale://)"><!> <span>插件</span></span> <span title="通用网页列表:无 Feed 特征且未命中插件时,走 LLM 解析(generic)"><!> <span>LLM</span></span></div></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">名称</span> <input class="field-input svelte-1beoyzy" type="text" placeholder="显示名称(留空则显示 ref)"/></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">描述</span> <input class="field-input svelte-1beoyzy" type="text" placeholder="简短说明"/></div> <div class="field-row svelte-1beoyzy"><div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">权重(0–1)</span> <input class="field-input field-input--weight svelte-1beoyzy" type="number" min="0" max="1" step="0.01" inputmode="decimal" placeholder="0–1"/></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">刷新间隔</span> <!></div></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">代理</span> <!> <!></div> <!></div> <div class="modal-footer svelte-1beoyzy"><div class="modal-footer-left svelte-1beoyzy"><!></div> <div class="modal-footer-right svelte-1beoyzy"><!> <button type="button" class="btn-save svelte-1beoyzy"> </button></div></div>',1),Un=T("<!> <!>",1),Kn=T('<p class="remove-dialog-target svelte-1beoyzy"> </p>'),Bn=T('<div class="modal-header svelte-1beoyzy"><!> <!></div> <div class="modal-body svelte-1beoyzy"><p id="remove-source-desc" class="remove-dialog-text svelte-1beoyzy">确定删除该信源吗?操作会同时删除该信源下已入库的所有条目,且不可恢复。</p> <!></div> <div class="modal-footer remove-dialog-footer svelte-1beoyzy"><!> <button type="button" class="btn-confirm-yes svelte-1beoyzy">移除</button></div>',1),qn=T("<!> <!>",1),Jn=T('<span class="sort-menu-dir svelte-1beoyzy" aria-hidden="true"> </span>'),Xn=T('<button type="button"><span> </span> <!></button>'),Yn=T("<!> <!>",1),Qn=T('<div class="state svelte-1beoyzy">加载中…</div>'),Gn=T('<div class="state error svelte-1beoyzy"> </div>'),Zn=T('<div class="state svelte-1beoyzy">暂无信源。<button type="button" class="link-btn svelte-1beoyzy">点击添加</button>第一个信源。</div>'),Rn=T('<div class="state svelte-1beoyzy">无匹配结果</div>'),ea=T('<img class="source-title-favicon svelte-1beoyzy" alt="" width="16" height="16" loading="lazy" decoding="async"/>'),ta=T('<span class="source-title-favicon-slot svelte-1beoyzy" aria-hidden="true"><!></span>'),oa=T('<button type="button" class="more-menu-item svelte-1beoyzy" title="在本机服务端启动与抓取相同的有头 Chrome(共用浏览器数据目录与代理)"><!> <span>打开链接</span></button>'),sa=T('<button type="button" title="强制拉取"><!> <span> </span></button> <button type="button" class="more-menu-item svelte-1beoyzy"><!> <span>编辑</span></button> <button type="button" class="more-menu-item svelte-1beoyzy" title="复制本服务的 RSS 订阅地址(/rss?ref=…)"><!> <span>复制 RSS 地址</span></button> <!> <button type="button" class="more-menu-item more-menu-item-danger svelte-1beoyzy" title="清空该信源下所有已入库条目"><!> <span> </span></button> <button type="button" class="more-menu-item more-menu-item-remove svelte-1beoyzy" title="从订阅列表中移除此信源"><!> <span> </span></button>',1),ra=T("<!> <!>",1),na=T('<div class="card row-grid svelte-1beoyzy" role="button" tabindex="0"><div class="cell-title svelte-1beoyzy"><div class="title-block svelte-1beoyzy"><!> <div class="title-line svelte-1beoyzy"><span class="title-text svelte-1beoyzy"> </span> <span class="title-item-count svelte-1beoyzy"> </span></div></div></div> <div class="cell-actions svelte-1beoyzy"><!></div></div>'),aa=T('<div class="list svelte-1beoyzy"></div>'),ia=T('<!> <!> <!> <div class="feed-wrap svelte-1beoyzy"><div class="feed-col svelte-1beoyzy"><div class="feed-toolbar-block svelte-1beoyzy"><div class="feed-header svelte-1beoyzy"><div class="header-left svelte-1beoyzy"><input class="filter-input svelte-1beoyzy" type="search" placeholder="过滤…"/> <!></div> <div class="header-right svelte-1beoyzy"><button type="button" class="btn-add svelte-1beoyzy" title="添加信源" aria-label="添加信源"><!></button></div></div></div> <div class="feed-body-scroll svelte-1beoyzy"><!></div></div></div>',1);function Oa(p,t){Do(t,!1);const r=()=>Ms(ln,"$refToTaskId",u),l=()=>Ms(Go,"$page",u),[u,c]=Zr(),v=$(),_=$(),J=$(),ve=$(),Se=$(),R=$(),M=$(),F=$();function V(o){return o==="alpha"||o==="parse"?"asc":"desc"}const Te="1day",Oe=[{value:"10min",label:"10 分钟"},{value:"30min",label:"30 分钟"},{value:"1h",label:"1 小时"},{value:"6h",label:"6 小时"},{value:"12h",label:"12 小时"},{value:"1day",label:"1 天"},{value:"3day",label:"3 天"},{value:"7day",label:"7 天"}];function Ie(o){const s=(o==null?void 0:o.trim())??"";return Oe.some(a=>a.value===s)?s:Te}function kt(o){return Math.min(1,Math.max(0,o))}function We(o){const s=typeof o=="number"&&!Number.isNaN(o)?o:Number(String(o).trim());return Number.isFinite(s)?s<0||s>1?{ok:!1,message:"权重需在 0–1 之间"}:{ok:!0,value:s}:{ok:!1,message:"权重需为 0–1 之间的数字"}}let j=[],ee=$([]),U=$([]),Wt=$(!0),Ze=$(""),X=$(""),Me=$("weight"),Ce=$("desc"),Ae=$(!1),Ve="",$e=$(null),Re=$({}),Le=$(null),L=$(null),K=$(!1),B=$(null),De=$(!1),me=$(null),Vt=$(!1),jt=$(!1),Xe=$(!1),se=$(""),Fe=$(""),zt=$(""),xt=$(""),Ut=$(0),pt=$(Te),ye=$("");function cr(o){n(ye,o)}function dr(o){n(pt,o)}let St=$(null),vo=null;function mo(o){const s=(o==null?void 0:o.trim())??"";if(!s)return s;const a=s.toLowerCase();return a.startsWith("http://")||a.startsWith("https://")||a.startsWith("imaps://")||a.startsWith("imap://")||a.startsWith("lingowhale://")?s:"https://"+s}function pr(o){const s=o.toLowerCase();return s.includes("/feed")||s.includes("/rss")||s.includes("/atom")||s.endsWith(".xml")||s.endsWith(".rss")||s.endsWith(".atom")||s.includes("format=rss")||s.includes("format=atom")||s.includes("output=rss")}function vs(o,s){const a=(o==null?void 0:o.trim())??"";if(!a)return null;const i=a.toLowerCase();if(i.startsWith("imaps://")||i.startsWith("imap://"))return"email";if(i.startsWith("lingowhale://"))return"plugin";const g=mo(a);return!g.startsWith("http://")&&!g.startsWith("https://")?null:pr(g)?"rss":s?"plugin":"llm"}function Io(o){return o==="rss"?"RSS/Atom":o==="plugin"?"插件":o==="llm"?"LLM":o==="email"?"邮箱":"—"}function hr(o){vo&&clearTimeout(vo);const s=o==null?void 0:o.trim();if(!s){n(St,null);return}n(St,null);const a=mo(s);vo=setTimeout(async()=>{vo=null;try{const i=await He("/api/sources/plugin-match",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refs:[a]})});if(i.ok){const g=await i.json();mo(e(Fe).trim())===a&&n(St,g[a]??null)}}catch{mo(e(Fe).trim())===a&&n(St,null)}},400)}function fr(o,s,a){const i=a==="desc"?-1:1;return[...o].sort((g,k)=>{let b=0;switch(s){case"weight":b=g.weight-k.weight;break;case"alpha":b=g.displayLabel.localeCompare(k.displayLabel,"zh-CN");break;case"parse":b=Io(g.parseHint).localeCompare(Io(k.parseHint),"zh-CN");break;case"latest":{const H=g.latestAt?new Date(g.latestAt).getTime():NaN,re=k.latestAt?new Date(k.latestAt).getTime():NaN,ce=Number.isFinite(H),Y=Number.isFinite(re);if(!ce&&!Y)b=0;else if(ce)if(Y)b=H-re;else return-1;else return 1;break}case"count":b=g.count-k.count;break;case"week":b=g.weekCount-k.weekCount;break}return b!==0?i*b:g.displayLabel.localeCompare(k.displayLabel,"zh-CN")})}function vr(o){e(Me)===o?n(Ce,e(Ce)==="asc"?"desc":"asc"):(n(Me,o),n(Ce,V(o)))}let Lo=$(!1);function ms(o){return o==="alpha"?"标题":o==="weight"?"权重":o==="latest"?"最近拉取":o==="parse"?"解析":o==="week"?"近7天":"数量"}function mr(o){vr(o),n(Lo,!1)}const yr=["alpha","weight","latest","parse","count","week"];async function Tt(o){const s=(o==null?void 0:o.silent)===!0;s||n(Wt,!0),n(Ze,"");try{const[a,i,g]=await Promise.all([He("/api/sources/raw"),He("/api/sources/stats"),He("/api/proxy")]),k=await a.text(),b=JSON.parse(k||"{}");if(j=Array.isArray(b.sources)?b.sources:[],g.ok){const w=await g.json();n(U,Array.isArray(w.proxyList)?w.proxyList.filter(I=>typeof I=="string"&&I.trim().length>0):[])}else n(U,[]);const H=i.ok?await i.json():[],re=new Map;for(const w of H){const I=Gs(w.source_url),P=re.get(I),N=w.latest_at??null,ne=typeof w.count_7d=="number"&&Number.isFinite(w.count_7d)?w.count_7d:0;P?re.set(I,{count:P.count+w.count,weekCount:P.weekCount+ne,latestAt:P.latestAt?N?P.latestAt>=N?P.latestAt:N:P.latestAt:N}):re.set(I,{count:w.count,weekCount:ne,latestAt:N})}const ce=j.filter(w=>{var I;return(I=w==null?void 0:w.ref)==null?void 0:I.trim()}).map(w=>w.ref.trim());let Y={};if(ce.length>0)try{const w=await He("/api/sources/plugin-match",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refs:ce})});w.ok&&(Y=await w.json())}catch{}n(ee,j.filter(w=>{var I;return(I=w==null?void 0:w.ref)==null?void 0:I.trim()}).map(w=>{var be,E;const I=w.ref.trim(),P=re.get(Gs(I))??{count:0,weekCount:0,latestAt:null},N=Y[I]??null,ne=(be=w.proxy)==null?void 0:be.trim();return{ref:I,displayLabel:w.label&&w.label.trim()||I,description:(E=w.description)==null?void 0:E.trim(),count:(P==null?void 0:P.count)??0,weekCount:(P==null?void 0:P.weekCount)??0,latestAt:(P==null?void 0:P.latestAt)??null,pluginId:N,weight:w.weight??0,...ne?{proxy:ne}:{},parseHint:vs(I,N)}}))}catch(a){n(Ze,a instanceof Error?a.message:String(a)),s||n(ee,[])}finally{s||n(Wt,!1)}}async function No(o){return(await He("/api/sources/raw",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({sources:o})})).ok}function ys(){n(jt,!1),n(Fe,""),n(zt,""),n(xt,""),n(Ut,0),n(pt,Te),n(ye,""),n(se,""),n(Vt,!0)}function br(o){const s=j.find(a=>a.ref===o.ref);n(jt,!0),Ve=o.ref,n(Fe,o.ref),n(zt,(s==null?void 0:s.label)??""),n(xt,(s==null?void 0:s.description)??""),n(Ut,kt((s==null?void 0:s.weight)??0)),n(pt,Ie(s==null?void 0:s.refresh)),n(ye,(s==null?void 0:s.proxy)??""),n(se,""),n(Ae,!1),n(Vt,!0)}function bs(){n(Vt,!1),n(Ae,!1)}async function _r(){const o=e(Fe).trim();if(!o){n(se,"ref 不能为空");return}const s=We(e(Ut));if(!s.ok){n(se,s.message);return}n(Xe,!0),n(se,"");try{const a=s.value,i={ref:o,...e(zt).trim()?{label:e(zt).trim()}:{},...e(xt).trim()?{description:e(xt).trim()}:{},refresh:e(pt),...e(ye).trim()?{proxy:e(ye).trim()}:{},...a!==0?{weight:a}:{}};let g;if(e(jt)){if(o!==Ve&&j.some(b=>b.ref===o)){n(se,"该 ref 已存在");return}g=j.map(b=>b.ref===Ve?{...b,...i}:b)}else{if(j.some(b=>b.ref===o)){n(se,"该 ref 已存在");return}g=[...j,i]}if(!await No(g)){n(se,"保存失败,请重试");return}bs(),await Tt({silent:!0})}catch(a){n(se,a instanceof Error?a.message:String(a))}finally{n(Xe,!1)}}async function _s(o){try{const s=await He("/api/items/by-source?source_url="+encodeURIComponent(o),{method:"DELETE"}),a=await s.json();return!s.ok||!a.ok?{ok:!1,message:a.message??"删除信源条目失败"}:{ok:!0,deleted:Number(a.deleted??0)}}catch(s){return{ok:!1,message:s instanceof Error?s.message:"删除信源条目失败"}}}async function gr(){const o=Ve.trim();if(!o){n(se,"缺少信源 ref");return}n(Xe,!0),n(se,"");try{const s=await _s(o);if(!s.ok){n(se,s.message);return}const a=j.filter(g=>g.ref!==o);if(!await No(a)){n(se,"删除信源失败,请重试");return}bs(),await Tt({silent:!0})}catch(s){n(se,s instanceof Error?s.message:String(s))}finally{n(Xe,!1)}}async function wr(o){for(let s=0;s<120;s++){const a=await He(`/api/tasks/${o}`);if(!a.ok)return{ok:!1,error:"轮询失败"};const i=await a.json();if(i.status==="done")return{ok:!0};if(i.status==="error")return{ok:!1,error:i.error??"拉取失败"};await new Promise(g=>setTimeout(g,800))}return{ok:!1,error:"超时"}}async function Cr(o,s){if(s==null||s.preventDefault(),s==null||s.stopPropagation(),!(o in r()))try{const a=await He("/api/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"source-pull",ref:o})}),i=await a.json();if(!a.ok||!i.taskId)return;un(o,i.taskId),(await wr(i.taskId)).ok&&await Tt({silent:!0})}catch{}finally{cn(o)}}function $r(o){const s=o.trim().toLowerCase();return s.startsWith("http://")||s.startsWith("https://")}function Pr(o){const s=new URL("/rss",typeof window<"u"?window.location.origin:"http://127.0.0.1");return s.searchParams.set("ref",o),s.href}async function kr(o,s){s==null||s.preventDefault(),s==null||s.stopPropagation();try{const a=await He("/api/sources/open-browser",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:o})}),i=await a.json();a.ok&&i.ok?Ft(i.message??"已在爬虫浏览器中打开","success"):Ft(i.message??"打开失败","error")}catch{Ft("打开失败","error")}finally{n($e,null)}}async function zr(o){const s=Pr(o);try{await navigator.clipboard.writeText(s)}catch{try{const a=document.createElement("textarea");a.value=s,a.style.position="fixed",a.style.left="-9999px",document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a)}catch{}}n($e,null)}function xr(o){n(K,o),o||n(B,null)}function Sr(o){e(L)||(n(B,o),n(K,!0),n($e,null))}async function Tr(){var s;const o=e(B);if(!(!o||e(L))){n(K,!1),n(B,null),n(L,o);try{const a=await _s(o);if(!a.ok){Ft(a.message,"error");return}const i=j.filter(k=>k.ref!==o);if(!await No(i)){Ft("移除失败,请重试","error");return}As(Go).url.pathname==="/"?Ds.update(k=>(k==null?void 0:k.ref)===o?null:k):((s=e(me))==null?void 0:s.ref)===o&&(n(De,!1),n(me,null)),await Tt({silent:!0})}catch(a){Ft(a instanceof Error?a.message:"移除失败","error")}finally{n(L,null)}}}async function Or(o){if(!e(Le)&&confirm("确定要清空该信源下的所有条目吗?此操作不可恢复。")){n(Le,o),n($e,null);try{const s=await He("/api/items/by-source?source_url="+encodeURIComponent(o),{method:"DELETE"}),a=await s.json();s.ok&&a.ok?await Tt({silent:!0}):s.ok||alert(a.message??"清空失败")}catch(s){alert(s instanceof Error?s.message:"清空失败")}finally{n(Le,null)}}}function gs(o){var s,a;if(As(Go).url.pathname==="/"){Ds.set({ref:o.ref,displayLabel:o.displayLabel,...(s=o.description)!=null&&s.trim()?{description:o.description.trim()}:{},...(a=o.proxy)!=null&&a.trim()?{proxy:o.proxy.trim()}:{},...o.parseHint!=null?{parseHint:o.parseHint}:{}});return}n(me,o),n(De,!0)}function Mr(o,s){const a=s.target;a&&(a.closest("a[href], button")||gs(o))}function Ar(o,s){s.key!=="Enter"&&s.key!==" "||(s.preventDefault(),gs(o))}Jr(Tt),Qe(()=>(e(B),e(ee)),()=>{var o;n(v,e(B)!=null?((o=e(ee).find(s=>s.ref===e(B)))==null?void 0:o.displayLabel)??e(B):"")}),Qe(()=>(e(ye),e(U)),()=>{n(_,e(ye).trim()&&!e(U).includes(e(ye).trim()))}),Qe(()=>(e(_),e(ye),e(U)),()=>{n(J,[{value:"",label:"使用默认代理"},...e(_)?[{value:e(ye),label:`${e(ye)}(当前配置,未在代理列表中)`}]:[],...e(U).map(o=>({value:o,label:o}))])}),Qe(()=>(e(J),e(ye)),()=>{var o;n(ve,((o=e(J).find(s=>s.value===e(ye)))==null?void 0:o.label)??"使用默认代理")}),Qe(()=>e(pt),()=>{var o;n(Se,((o=Oe.find(s=>s.value===e(pt)))==null?void 0:o.label)??"1 天")}),Qe(()=>e(Fe),()=>{e(Fe),hr(e(Fe))}),Qe(()=>(e(Fe),e(St)),()=>{n(R,vs(e(Fe),e(St)))}),Qe(()=>e(R),()=>{n(M,e(R)??"llm")}),Qe(()=>(e(X),e(ee),e(Me),e(Ce)),()=>{n(F,fr(e(X).trim()?e(ee).filter(o=>{var a;const s=e(X).trim().toLowerCase();return o.displayLabel.toLowerCase().includes(s)||(((a=o.description)==null?void 0:a.toLowerCase().includes(s))??!1)||o.ref.toLowerCase().includes(s)||Io(o.parseHint).toLowerCase().includes(s)}):e(ee),e(Me),e(Ce)))}),Xr(),en();var ws=ia(),Cs=S(ws);Fs(Cs,{get open(){return e(Vt)},onOpenChange:o=>{n(Vt,o),o||n(Ae,!1)},children:(o,s)=>{It(o,{children:(a,i)=>{var g=Un(),k=S(g);Is(k,{class:"modal-overlay"});var b=y(k,2);Ls(b,{class:"modal","aria-describedby":void 0,children:(H,re)=>{var ce=jn(),Y=S(ce),w=h(Y);Ns(w,{class:"modal-title",children:(O,Pe)=>{te();var ae=st();oe(()=>le(ae,e(jt)?"编辑信源":"添加信源")),m(O,ae)},$$slots:{default:!0}});var I=y(w,2);So(I,{class:"modal-close","aria-label":"关闭",children:(O,Pe)=>{te();var ae=st("✕");m(O,ae)},$$slots:{default:!0}}),d(Y);var P=y(Y,2),N=h(P),ne=y(h(N),2),be=h(ne);to(be),d(ne),d(N);var E=y(N,2),de=y(h(E),2),Q=h(de);let W;var G=h(Q);tn(G,{size:14,class:"parse-hint-icon"}),te(2),d(Q);var pe=y(Q,2);let je;var jo=h(pe);on(jo,{size:14,class:"parse-hint-icon"}),te(2),d(pe);var et=y(pe,2);let Uo;var yo=h(et);sn(yo,{size:14,class:"parse-hint-icon"}),te(2),d(et);var Ue=y(et,2);let Kt;var bo=h(Ue);rn(bo,{size:14,class:"parse-hint-icon"}),te(2),d(Ue),d(de),d(E);var Ot=y(E,2),_o=y(h(Ot),2);to(_o),d(Ot);var tt=y(Ot,2),go=y(h(tt),2);to(go),d(tt);var ot=y(tt,2),Bt=h(ot),qt=y(h(Bt),2);to(qt),d(Bt);var wo=y(Bt,2),Ko=y(h(wo),2);Ws(Ko,{type:"single",get value(){return e(pt)},onValueChange:dr,get items(){return Oe},children:(O,Pe)=>{var ae=In(),ft=S(ae);Vs(ft,{class:"source-modal-select-trigger","aria-label":"刷新间隔",children:(_e,ke)=>{var he=Fn(),Ne=S(he),vt=h(Ne,!0);d(Ne);var Gt=y(Ne,2);js(Gt,{size:14,"aria-hidden":"true"}),oe(()=>le(vt,e(Se))),m(_e,he)},$$slots:{default:!0}});var Qt=y(ft,2);It(Qt,{children:(_e,ke)=>{Us(_e,{class:"source-modal-select-content",sideOffset:4,children:(he,Ne)=>{Ks(he,{class:"source-modal-select-viewport",children:(vt,Gt)=>{var Zt=Z(),qo=S(Zt);xo(qo,1,()=>Oe,mt=>mt.value,(mt,ze)=>{Bs(mt,{class:"source-modal-select-item",get value(){return e(ze),z(()=>e(ze).value)},get label(){return e(ze),z(()=>e(ze).label)},children:(Jo,Kr)=>{te();var Rt=st();oe(()=>le(Rt,(e(ze),z(()=>e(ze).label)))),m(Jo,Rt)},$$slots:{default:!0}})}),m(vt,Zt)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}}),m(O,ae)},$$slots:{default:!0}}),d(wo),d(ot);var Ye=y(ot,2),Jt=y(h(Ye),2);Ws(Jt,{type:"single",get value(){return e(ye)},onValueChange:cr,get items(){return e(J)},children:(O,Pe)=>{var ae=Nn(),ft=S(ae);Vs(ft,{class:"source-modal-select-trigger","aria-label":"代理",children:(_e,ke)=>{var he=Ln(),Ne=S(he),vt=h(Ne,!0);d(Ne);var Gt=y(Ne,2);js(Gt,{size:14,"aria-hidden":"true"}),oe(()=>le(vt,e(ve))),m(_e,he)},$$slots:{default:!0}});var Qt=y(ft,2);It(Qt,{children:(_e,ke)=>{Us(_e,{class:"source-modal-select-content",sideOffset:4,children:(he,Ne)=>{Ks(he,{class:"source-modal-select-viewport",children:(vt,Gt)=>{var Zt=Z(),qo=S(Zt);xo(qo,1,()=>e(J),mt=>mt.value,(mt,ze)=>{Bs(mt,{class:"source-modal-select-item",get value(){return e(ze),z(()=>e(ze).value)},get label(){return e(ze),z(()=>e(ze).label)},children:(Jo,Kr)=>{te();var Rt=st();oe(()=>le(Rt,(e(ze),z(()=>e(ze).label)))),m(Jo,Rt)},$$slots:{default:!0}})}),m(vt,Zt)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}}),m(O,ae)},$$slots:{default:!0}});var Co=y(Jt,2);{var Bo=O=>{var Pe=Hn();m(O,Pe)};ue(Co,O=>{e(U),z(()=>e(U).length===0)&&O(Bo)})}d(Ye);var Mt=y(Ye,2);{var $o=O=>{var Pe=En(),ae=h(Pe,!0);d(Pe),oe(()=>le(ae,e(se))),m(O,Pe)};ue(Mt,O=>{e(se)&&O($o)})}d(P);var Xt=y(P,2),Yt=h(Xt),ht=h(Yt);{var At=O=>{var Pe=Z(),ae=S(Pe);{var ft=_e=>{var ke=Wn(),he=y(h(ke),2),Ne=y(he,2);d(ke),oe(()=>he.disabled=e(Xe)),ie("click",he,gr),ie("click",Ne,()=>n(Ae,!1)),m(_e,ke)},Qt=_e=>{var ke=Vn(),he=h(ke);Qs(he,{size:13}),te(),d(ke),oe(()=>ke.disabled=e(Xe)),ie("click",ke,()=>n(Ae,!0)),m(_e,ke)};ue(ae,_e=>{e(Ae)?_e(ft):_e(Qt,-1)})}m(O,Pe)};ue(ht,O=>{e(jt)&&O(At)})}d(Yt);var Po=y(Yt,2),ko=h(Po);So(ko,{class:"btn-cancel",get disabled(){return e(Xe)},children:(O,Pe)=>{te();var ae=st("取消");m(O,ae)},$$slots:{default:!0}});var zo=y(ko,2),Ur=h(zo,!0);d(zo),d(Po),d(Xt),oe(()=>{W=Dt(Q,1,"parse-hint svelte-1beoyzy",null,W,{active:e(M)==="rss"}),je=Dt(pe,1,"parse-hint svelte-1beoyzy",null,je,{active:e(M)==="email"}),Uo=Dt(et,1,"parse-hint svelte-1beoyzy",null,Uo,{active:e(M)==="plugin"}),Kt=Dt(Ue,1,"parse-hint svelte-1beoyzy",null,Kt,{active:e(M)==="llm"}),zo.disabled=e(Xe),le(Ur,e(Xe)?"保存中…":"保存")}),oo(be,()=>e(Fe),O=>n(Fe,O)),oo(_o,()=>e(zt),O=>n(zt,O)),oo(go,()=>e(xt),O=>n(xt,O)),oo(qt,()=>e(Ut),O=>n(Ut,O)),ie("click",zo,_r),m(H,ce)},$$slots:{default:!0}}),m(a,g)},$$slots:{default:!0}})},$$slots:{default:!0}});var $s=y(Cs,2);Fs($s,{get open(){return e(K)},onOpenChange:xr,children:(o,s)=>{It(o,{children:(a,i)=>{var g=qn(),k=S(g);Is(k,{class:"modal-overlay"});var b=y(k,2);Ls(b,{class:"modal","aria-describedby":"remove-source-desc",children:(H,re)=>{var ce=Bn(),Y=S(ce),w=h(Y);Ns(w,{class:"modal-title",children:(Q,W)=>{te();var G=st("移除信源");m(Q,G)},$$slots:{default:!0}});var I=y(w,2);So(I,{class:"modal-close","aria-label":"关闭",children:(Q,W)=>{te();var G=st("✕");m(Q,G)},$$slots:{default:!0}}),d(Y);var P=y(Y,2),N=y(h(P),2);{var ne=Q=>{var W=Kn(),G=h(W,!0);d(W),oe(()=>le(G,e(v))),m(Q,W)};ue(N,Q=>{e(v)&&Q(ne)})}d(P);var be=y(P,2),E=h(be);{let Q=Ke(()=>!!e(L));So(E,{class:"btn-cancel",get disabled(){return e(Q)},children:(W,G)=>{te();var pe=st("取消");m(W,pe)},$$slots:{default:!0}})}var de=y(E,2);d(be),oe(()=>de.disabled=!!e(L)),ie("click",de,Tr),m(H,ce)},$$slots:{default:!0}}),m(a,g)},$$slots:{default:!0}})},$$slots:{default:!0}});var Ps=y($s,2);{var Dr=o=>{{let s=Ke(()=>(e(me),z(()=>{var b;return((b=e(me))==null?void 0:b.ref)??""}))),a=Ke(()=>(e(me),z(()=>{var b;return((b=e(me))==null?void 0:b.displayLabel)??""}))),i=Ke(()=>(e(me),z(()=>{var b,H;return((H=(b=e(me))==null?void 0:b.description)==null?void 0:H.trim())??""}))),g=Ke(()=>(e(me),z(()=>{var b,H;return((H=(b=e(me))==null?void 0:b.proxy)==null?void 0:H.trim())??""}))),k=Ke(()=>(e(me),z(()=>{var b;return((b=e(me))==null?void 0:b.parseHint)??null})));nn(o,{variant:"overlay",get open(){return e(De)},get sourceRef(){return e(s)},get sourceLabel(){return e(a)},get sourceDescription(){return e(i)},get sourceProxy(){return e(g)},get sourceParseHint(){return e(k)},onOpenChange:b=>{n(De,b),b||n(me,null)}})}};ue(Ps,o=>{l(),z(()=>l().url.pathname!=="/")&&o(Dr)})}var ks=y(Ps,2),zs=h(ks),Ho=h(zs),xs=h(Ho),Eo=h(xs),Wo=h(Eo);to(Wo);var Fr=y(Wo,2);{var Ir=o=>{Ys(o,{get open(){return e(Lo)},onOpenChange:s=>{n(Lo,s)},children:(s,a)=>{var i=Yn(),g=S(i);{let b=Ke(()=>(e(Me),z(()=>ms(e(Me))))),H=Ke(()=>e(Ce)==="asc"?" 升序":" 降序");Xs(g,{type:"button",class:"btn-sort",get title(){return`排序:${e(b)??""}${e(H)??""},点此选择依据或同项切换方向`},"aria-label":"排序",children:(re,ce)=>{Sn(re,{size:16})},$$slots:{default:!0}})}var k=y(g,2);It(k,{children:(b,H)=>{Js(b,{class:"dropdown-panel sort-menu",sideOffset:6,align:"start",children:(re,ce)=>{var Y=Z(),w=S(Y);xo(w,1,()=>yr,Rr,(I,P)=>{var N=Xn();let ne;var be=h(N),E=h(be,!0);d(be);var de=y(be,2);{var Q=W=>{var G=Jn(),pe=h(G,!0);d(G),oe(()=>le(pe,e(Ce)==="asc"?"↑":"↓")),m(W,G)};ue(de,W=>{e(Me)===e(P)&&W(Q)})}d(N),oe(W=>{ne=Dt(N,1,"sort-menu-item svelte-1beoyzy",null,ne,{active:e(Me)===e(P)}),le(E,W)},[()=>(e(P),z(()=>ms(e(P))))]),ie("click",N,()=>mr(e(P))),m(I,N)}),m(re,Y)},$$slots:{default:!0}})},$$slots:{default:!0}}),m(s,i)},$$slots:{default:!0}})};ue(Fr,o=>{l(),e(ee),z(()=>l().url.pathname==="/"&&e(ee).length>0)&&o(Ir)})}d(Eo);var Ss=y(Eo,2),Vo=h(Ss),Lr=h(Vo);dn(Lr,{size:16,"aria-hidden":"true"}),d(Vo),d(Ss),d(xs),d(Ho);var Ts=y(Ho,2),Nr=h(Ts);{var Hr=o=>{var s=Qn();m(o,s)},Er=o=>{var s=Gn(),a=h(s,!0);d(s),oe(()=>le(a,e(Ze))),m(o,s)},Wr=o=>{var s=Zn(),a=y(h(s));te(),d(s),ie("click",a,ys),m(o,s)},Vr=o=>{var s=Rn();m(o,s)},jr=o=>{var s=aa();xo(s,5,()=>e(F),a=>a.ref,(a,i)=>{const g=Ke(()=>(Yo(Zs),e(i),z(()=>Zs(e(i).ref))));var k=na(),b=h(k),H=h(b),re=h(H);{var ce=E=>{var de=ta(),Q=h(de);{var W=G=>{var pe=ea();oe(je=>Qo(pe,"src",je),[()=>(Yo(Rs),Yo(e(g)),z(()=>Rs(e(g))))]),Qr("error",pe,()=>{n(Re,{...e(Re),[e(i).ref]:!0})}),Gr(pe),m(G,pe)};ue(Q,G=>{e(Re),e(i),z(()=>!e(Re)[e(i).ref])&&G(W)})}d(de),m(E,de)};ue(re,E=>{e(g)&&E(ce)})}var Y=y(re,2),w=h(Y),I=h(w,!0);d(w);var P=y(w,2),N=h(P,!0);d(P),d(Y),d(H),d(b);var ne=y(b,2),be=h(ne);{let E=Ke(()=>(e($e),e(i),z(()=>e($e)===e(i).ref)));Ys(be,{get open(){return e(E)},onOpenChange:de=>{n($e,de?e(i).ref:null)},children:(de,Q)=>{var W=ra(),G=S(W);Xs(G,{class:"btn-icon",title:"更多",onclick:je=>je.stopPropagation(),children:(je,jo)=>{On(je,{size:13})},$$slots:{default:!0}});var pe=y(G,2);It(pe,{children:(je,jo)=>{Js(je,{class:"dropdown-panel more-menu",sideOffset:6,align:"center",onclick:et=>et.stopPropagation(),children:(et,Uo)=>{var yo=sa(),Ue=S(yo);let Kt;var bo=h(Ue);an(bo,{size:14});var Ot=y(bo,2),_o=h(Ot,!0);d(Ot),d(Ue);var tt=y(Ue,2),go=h(tt);An(go,{size:14}),te(2),d(tt);var ot=y(tt,2),Bt=h(ot);Tn(Bt,{size:14}),te(2),d(ot);var qt=y(ot,2);{var wo=ht=>{var At=oa(),Po=h(At);Mn(Po,{size:14}),te(2),d(At),ie("click",At,ko=>kr(e(i).ref,ko)),m(ht,At)},Ko=Ee(()=>(e(i),z(()=>$r(e(i).ref))));ue(qt,ht=>{e(Ko)&&ht(wo)})}var Ye=y(qt,2),Jt=h(Ye);Dn(Jt,{size:14});var Co=y(Jt,2),Bo=h(Co,!0);d(Co),d(Ye);var Mt=y(Ye,2),$o=h(Mt);Qs($o,{size:14});var Xt=y($o,2),Yt=h(Xt,!0);d(Xt),d(Mt),oe(()=>{Kt=Dt(Ue,1,"more-menu-item svelte-1beoyzy",null,Kt,{pulling:e(i).ref in r()}),Ue.disabled=(e(i),r(),z(()=>e(i).ref in r())),le(_o,(e(i),r(),z(()=>e(i).ref in r()?"拉取中…":"拉取"))),Ye.disabled=(e(Le),e(i),z(()=>e(Le)===e(i).ref)),le(Bo,(e(Le),e(i),z(()=>e(Le)===e(i).ref?"清空中…":"清空该源条目"))),Mt.disabled=(e(L),e(i),z(()=>e(L)===e(i).ref)),le(Yt,(e(L),e(i),z(()=>e(L)===e(i).ref?"移除中…":"移除信源")))}),ie("click",Ue,ht=>{Cr(e(i).ref,ht),n($e,null)}),ie("click",tt,()=>{br(e(i)),n($e,null)}),ie("click",ot,()=>zr(e(i).ref)),ie("click",Ye,()=>Or(e(i).ref)),ie("click",Mt,()=>Sr(e(i).ref)),m(et,yo)},$$slots:{default:!0}})},$$slots:{default:!0}}),m(de,W)},$$slots:{default:!0}})}d(ne),d(k),oe(()=>{Qo(H,"title",(e(i),z(()=>e(i).ref))),le(I,(e(i),z(()=>e(i).displayLabel))),Qo(P,"title",`已收录 ${e(i),z(()=>e(i).count)??""} 条 · 近 7 天内有拉取记录的条目 ${e(i),z(()=>e(i).weekCount)??""} 条`),le(N,(e(i),z(()=>e(i).count)))}),ie("click",k,E=>Mr(e(i),E)),ie("keydown",k,E=>Ar(e(i),E)),m(a,k)}),d(s),m(o,s)};ue(Nr,o=>{e(Wt)?o(Hr):e(Ze)?o(Er,1):(e(ee),z(()=>e(ee).length===0)?o(Wr,2):(e(F),z(()=>e(F).length===0)?o(Vr,3):o(jr,-1)))})}d(Ts),d(zs),d(ks),oo(Wo,()=>e(X),o=>n(X,o)),ie("click",Vo,ys),m(p,ws),Fo(),c()}Yr(["click","keydown"]);export{Oa as S};
@@ -0,0 +1,36 @@
1
+ import{c as q,a as n,f as h,t as xt}from"./DIeahUKq.js";import{f as C,at as mt,b8 as ie,a4 as at,an as Ge,a5 as L,av as c,ax as i,aw as A,k as e,az as w,au as gt,aA as k,u as tt,ay as kt}from"./BsQ08Wq_.js";import{d as _t,a as ye,s as O,e as ot,r as it}from"./BK0ygNWX.js";import{i as D}from"./rNwPv4DZ.js";import{e as st,i as $t}from"./B553hBXT.js";import{c as Ne}from"./C9wTDiHH.js";import{b as We,s as S,e as rt,a as Xe}from"./WW6La7Nt.js";import{l as be,s as ze,p as T}from"./D8G961Hm.js";import{s as Oe}from"./4TuV_psf.js";import{w as pt}from"./FDS7fbwH.js";import{I as xe,P as Pt}from"./pd_p3yYy.js";import{a as wt,b as St,c as It,d as Mt,D as Dt}from"./B0czyjwj.js";import"./CEWi_rGa.js";import{s as ke}from"./Cc7aBSsN.js";function lt(f,r){const d=be(r,["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 o=[["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"}]];xe(f,ze({name:"rss"},()=>d,{get iconNode(){return o},children:(z,F)=>{var p=q(),v=C(p);ke(v,r,"default",{}),n(z,p)},$$slots:{default:!0}}))}function ct(f,r){const d=be(r,["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 o=[["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"}]];xe(f,ze({name:"puzzle"},()=>d,{get iconNode(){return o},children:(z,F)=>{var p=q(),v=C(p);ke(v,r,"default",{}),n(z,p)},$$slots:{default:!0}}))}function Lt(f,r){const d=be(r,["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 o=[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]];xe(f,ze({name:"x"},()=>d,{get iconNode(){return o},children:(z,F)=>{var p=q(),v=C(p);ke(v,r,"default",{}),n(z,p)},$$slots:{default:!0}}))}function dt(f){const r=f.trim();if(!r)return"";const d=r.charAt(0);return/[a-z0-9\u4e00-\u9fff]/i.test(d)?d.toUpperCase():""}function yt(f,r){const d=o=>{const z=o==null?void 0:o.trim();if(!z)return"";try{return new URL(z.startsWith("http")?z:`https://${z}`).hostname.replace(/^www\./i,"")||""}catch{return""}};return d(f)||d(r||"")}function Nt(f){if(!f)return"";const r=f.charAt(0);return/[a-z0-9\u4e00-\u9fff]/i.test(r)?r.toUpperCase():""}function Tt(f,r,d,o){const z=yt(f,r),F=Nt(z);if(F)return F;if(d&&d.length>0){const v=dt(d[0].name);if(v)return v}if(o){const v=dt(o);if(v)return v}const p=(r||"").trim();if(p){const v=p.charAt(0);return/[a-z0-9\u4e00-\u9fff]/i.test(v)?v.toUpperCase():"?"}return"?"}function Rt(f){return f?`/api/feed-favicon?domain=${encodeURIComponent(f)}`:""}function Ht(f){let r=2166136261;for(let z=0;z<f.length;z++)r^=f.charCodeAt(z),r=Math.imul(r,16777619);return`hsl(${(r>>>0)%360} 46% 46%)`}function At(f){const r=f.link||"",d=f.sourceRef,{author:o,authors:z,guid:F,title:p}=f,v=yt(r,d),G=Rt(v),he=Tt(r,d,z,o),R=(F||[r,d,p,o,z==null?void 0:z.map(U=>U.name).join("|")].filter(Boolean).join("|")||he).trim(),J=Ht(R||"feed");return{siteHost:v,faviconSrc:G,letter:he,avatarSeed:R,avatarBg:J}}function Ct(f){const r=f==null?void 0:f.trim();if(r)return r}var Ft=h('<img alt="" class="feed-card-favicon svelte-1dgd2z5" width="26" height="26" loading="lazy" decoding="async"/>'),Ut=h('<span class="feed-card-icon-letter svelte-1dgd2z5" aria-hidden="true"> </span>'),jt=h('<a data-sveltekit-preload-data="hover"><!></a>'),Et=h('<img alt="" class="feed-card-favicon svelte-1dgd2z5" width="26" height="26" loading="lazy" decoding="async"/>'),Ot=h('<span class="feed-card-icon-letter svelte-1dgd2z5" aria-hidden="true"> </span>'),Bt=h('<div role="img"><!></div>'),Jt=h('<span class="feed-card-author-sep svelte-1dgd2z5">、</span>'),qt=h('<a class="feed-card-author-link svelte-1dgd2z5"> </a><!>',1),Xt=h('<a class="feed-card-author-link svelte-1dgd2z5"> </a>'),Gt=h('<span class="feed-card-author-plain svelte-1dgd2z5"> </span>'),Wt=h('<span class="feed-card-author-empty svelte-1dgd2z5">未署名</span>'),Yt=h('<time class="feed-card-time svelte-1dgd2z5"> </time>'),Kt=h('<a class="feed-card-title svelte-1dgd2z5" target="_blank" rel="noopener noreferrer"> </a>'),Qt=h('<span class="feed-card-title feed-card-title-text svelte-1dgd2z5"> </span>'),Vt=h('<div class="feed-card-title-row svelte-1dgd2z5"><!></div>'),Zt=h('<a class="feed-card-summary-link svelte-1dgd2z5" target="_blank" rel="noopener noreferrer" title="打开原文"><p class="feed-card-summary svelte-1dgd2z5"> </p></a>'),er=h('<p class="feed-card-summary svelte-1dgd2z5"> </p>'),tr=h('<a class="feed-card-open-original svelte-1dgd2z5" target="_blank" rel="noopener noreferrer">查看原文</a>'),rr=h('<a class="feed-card-media-anchor svelte-1dgd2z5" target="_blank" rel="noopener noreferrer" title="打开原文"><img alt="" class="feed-card-media-img svelte-1dgd2z5" loading="lazy" decoding="async" referrerpolicy="no-referrer"/></a>'),ar=h('<img alt="" class="feed-card-media-img svelte-1dgd2z5" loading="lazy" decoding="async" referrerpolicy="no-referrer"/>'),sr=h('<div class="feed-card-media svelte-1dgd2z5"><!></div>'),nr=h('<button class="ctx-menu-item svelte-1dgd2z5" type="button"> </button>'),or=h('<button class="ctx-menu-item ctx-delete svelte-1dgd2z5" type="button">删除</button>'),ir=h('<div class="ctx-menu-backdrop svelte-1dgd2z5" role="presentation"><div class="ctx-menu svelte-1dgd2z5" role="menu" tabindex="-1"><!> <!></div></div>'),lr=h('<div role="article"><div class="feed-card-aside svelte-1dgd2z5"><!></div> <div class="feed-card-main svelte-1dgd2z5"><div class="feed-card-author-line svelte-1dgd2z5"><span class="feed-card-author svelte-1dgd2z5"><!></span> <!></div> <!> <!> <!></div></div> <!>',1);function vt(f,r){mt(r,!0);let d=T(r,"title",3,""),o=T(r,"link",3,""),z=T(r,"summary",3,void 0),F=T(r,"content",3,void 0),p=T(r,"author",3,void 0),v=T(r,"pubDate",3,void 0),G=T(r,"sourceRef",3,void 0),he=T(r,"sourceHref",3,void 0),R=T(r,"authorHref",3,void 0),J=T(r,"authors",3,void 0),U=T(r,"guid",3,void 0),Y=T(r,"coverImg",3,void 0),te=T(r,"rawItem",3,void 0),K=T(r,"onDelete",3,void 0),Q=ie(at({show:!1,x:0,y:0})),le=ie("idle"),me=ie(!1);function Ye(t){return t.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"").replace(/<style\b[^<]*(?:(?!<\/style>)<[^<]*)*<\/style>/gi,"").replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim()}function Be(t){const a=t.match(/!\[[^\]]*\]\(([^)\s]+)(?:\s+['"][^'"]*['"])?\)/);if(a!=null&&a[1])return a[1].trim();const l=t.match(/<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>/i);if(l!=null&&l[1])return l[1].trim()}function Je(t){return t.replace(/!\[[^\]]*\]\(([^)\s]+)(?:\s+['"][^'"]*['"])?\)/g," ").replace(/<img\b[^>]*>/gi," ")}function Ke(t){if(!t)return"";const a=new Date(t);if(Number.isNaN(a.getTime()))return"";const P=Date.now()-a.getTime(),M=a.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});if(P<0)return M;const u=Math.floor(P/36e5),s=Math.floor(P/864e5);return s>=7?M:s>=1?`${s} day${s===1?"":"s"} ago`:u>=1?`${u} hour${u===1?"":"s"} ago`:"just now"}Ge(()=>{o(),G(),L(me,!1)});const $e=k(()=>At({link:o()||"",sourceRef:G(),author:p(),authors:J(),guid:U(),title:d()})),re=k(()=>e($e).siteHost),Pe=k(()=>e($e).faviconSrc),ae=k(()=>!!(e(Pe)&&!e(me))),Te=k(()=>e($e).letter),Re=k(()=>e($e).avatarBg),He=k(()=>{var t,a;return(((t=F())==null?void 0:t.trim())||((a=z())==null?void 0:a.trim())||"").trim()}),Qe=k(()=>{var t;return((t=Y())==null?void 0:t.trim())||Be(e(He))}),Ae=k(()=>Ct(e(Qe))),x=k(()=>e(He)?Ye(Je(e(He))):""),y=k(()=>{var t;return!!((t=d())!=null&&t.trim())}),$=k(()=>!!(o()&&!e(y)&&e(x)));function N(t){!te()&&!(U()&&K())||(t.preventDefault(),L(le,"idle"),L(Q,{show:!0,x:t.clientX,y:t.clientY},!0))}function j(){L(Q,{...e(Q),show:!1},!0)}async function V(){if(!te())return;const t=JSON.stringify(te(),null,2);try{await navigator.clipboard.writeText(t),L(le,"copied"),window.setTimeout(j,350)}catch{L(le,"error")}}function se(){U()&&K()&&(K()(U()),j())}var Z=lr(),W=C(Z);let ge;var ne=c(W),we=c(ne);{var _e=t=>{var a=jt();let l,P;var M=c(a);{var u=m=>{var _=Ft();w(()=>S(_,"src",e(Pe))),ot("error",_,()=>L(me,!0)),it(_),n(m,_)},s=m=>{var _=Ut(),g=c(_,!0);i(_),w(()=>O(g,e(Te))),n(m,_)};D(M,m=>{e(ae)?m(u):m(s,-1)})}i(a),w(()=>{l=We(a,1,"feed-card-icon svelte-1dgd2z5",null,l,{"feed-card-icon--favicon":e(ae)}),S(a,"href",he()),S(a,"title",G()||e(re)||"筛选该来源"),P=rt(a,"",P,{"background-color":e(ae)?"transparent":e(Re),color:"#fff"})}),n(t,a)},Se=t=>{var a=Bt();let l,P;var M=c(a);{var u=m=>{var _=Et();w(()=>S(_,"src",e(Pe))),ot("error",_,()=>L(me,!0)),it(_),n(m,_)},s=m=>{var _=Ot(),g=c(_,!0);i(_),w(()=>O(g,e(Te))),n(m,_)};D(M,m=>{e(ae)?m(u):m(s,-1)})}i(a),w(()=>{l=We(a,1,"feed-card-icon svelte-1dgd2z5",null,l,{"feed-card-icon--favicon":e(ae)}),S(a,"title",G()||e(re)||"来源"),S(a,"aria-label",G()||e(re)||"来源"),P=rt(a,"",P,{"background-color":e(ae)?"transparent":e(Re),color:"#fff"})}),n(t,a)};D(we,t=>{he()?t(_e):t(Se,-1)})}i(ne);var ce=A(ne,2),de=c(ce),oe=c(de),ve=c(oe);{var Ce=t=>{var a=q(),l=C(a);st(l,17,J,$t,(P,M,u)=>{var s=qt(),m=C(s),_=c(m,!0);i(m);var g=A(m);{var b=E=>{var H=Jt();n(E,H)};D(g,E=>{u<J().length-1&&E(b)})}w(()=>{S(m,"href",e(M).href),O(_,e(M).name)}),n(P,s)}),n(t,a)},qe=t=>{var a=q(),l=C(a);{var P=u=>{var s=Xt(),m=c(s,!0);i(s),w(()=>{S(s,"href",R()),O(m,p())}),n(u,s)},M=u=>{var s=Gt(),m=c(s,!0);i(s),w(()=>O(m,p())),n(u,s)};D(l,u=>{R()?u(P):u(M,-1)})}n(t,a)},X=t=>{var a=Wt();n(t,a)};D(ve,t=>{J()&&J().length>0?t(Ce):p()?t(qe,1):t(X,-1)})}i(oe);var ue=A(oe,2);{var pe=t=>{var a=Yt(),l=c(a,!0);i(a),w(P=>{S(a,"datetime",v()),S(a,"title",v()),O(l,P)},[()=>Ke(v())]),n(t,a)};D(ue,t=>{v()&&t(pe)})}i(de);var ee=A(de,2);{var Ie=t=>{var a=Vt(),l=c(a);{var P=u=>{var s=Kt(),m=c(s,!0);i(s),w(()=>{S(s,"href",o()),O(m,d())}),n(u,s)},M=u=>{var s=Qt(),m=c(s,!0);i(s),w(()=>O(m,d())),n(u,s)};D(l,u=>{o()?u(P):u(M,-1)})}i(a),n(t,a)};D(ee,t=>{e(y)&&t(Ie)})}var fe=A(ee,2);{var Me=t=>{var a=q(),l=C(a);{var P=u=>{var s=Zt(),m=c(s),_=c(m,!0);i(m),i(s),w(()=>{S(s,"href",o()),O(_,e(x))}),n(u,s)},M=u=>{var s=er(),m=c(s,!0);i(s),w(()=>O(m,e(x))),n(u,s)};D(l,u=>{e($)?u(P):u(M,-1)})}n(t,a)},De=t=>{var a=tr();w(()=>S(a,"href",o())),n(t,a)};D(fe,t=>{e(x)?t(Me):o()&&!e(y)&&t(De,1)})}var Fe=A(fe,2);{var Ue=t=>{var a=sr(),l=c(a);{var P=u=>{var s=rr(),m=c(s);i(s),w(()=>{S(s,"href",o()),S(m,"src",e(Ae))}),n(u,s)},M=u=>{var s=ar();w(()=>S(s,"src",e(Ae))),n(u,s)};D(l,u=>{o()?u(P):u(M,-1)})}i(a),n(t,a)};D(Fe,t=>{e(Ae)&&t(Ue)})}i(ce),i(W);var je=A(W,2);{var I=t=>{var a=ir(),l=c(a);let P;var M=c(l);{var u=_=>{var g=nr(),b=c(g,!0);i(g),w(()=>O(b,e(le)==="copied"?"已复制":e(le)==="error"?"复制失败":"复制 JSON")),ye("click",g,V),n(_,g)};D(M,_=>{te()&&_(u)})}var s=A(M,2);{var m=_=>{var g=or();ye("click",g,se),n(_,g)};D(s,_=>{U()&&K()&&_(m)})}i(l),i(a),w(()=>P=rt(l,"",P,{left:`${e(Q).x}px`,top:`${e(Q).y}px`})),ye("click",a,j),ye("click",l,_=>_.stopPropagation()),ye("keydown",l,_=>_.stopPropagation()),n(t,a)};D(je,t=>{e(Q).show&&(te()||U()&&K())&&t(I)})}w(()=>ge=We(W,1,"feed-card svelte-1dgd2z5",null,ge,{"ctx-deletable":!!U()&&!!K()})),ye("contextmenu",W,N),n(f,Z),gt()}_t(["contextmenu","click","keydown"]);function cr(f,r){const d=be(r,["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 o=[["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"}]];xe(f,ze({name:"refresh-cw"},()=>d,{get iconNode(){return o},children:(z,F)=>{var p=q(),v=C(p);ke(v,r,"default",{}),n(z,p)},$$slots:{default:!0}}))}function ut(f,r){const d=be(r,["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 o=[["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"}]];xe(f,ze({name:"globe"},()=>d,{get iconNode(){return o},children:(z,F)=>{var p=q(),v=C(p);ke(v,r,"default",{}),n(z,p)},$$slots:{default:!0}}))}function ft(f,r){const d=be(r,["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 o=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"}]];xe(f,ze({name:"mail"},()=>d,{get iconNode(){return o},children:(z,F)=>{var p=q(),v=C(p);ke(v,r,"default",{}),n(z,p)},$$slots:{default:!0}}))}function ht(f,r){const d=be(r,["children","$$slots","$$events","$$legacy"]);/**
32
+ * @license lucide-svelte v0.460.1 - ISC
33
+ *
34
+ * This source code is licensed under the ISC license.
35
+ * See the LICENSE file in the root directory of this source tree.
36
+ */const o=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"}],["path",{d:"M20 3v4"}],["path",{d:"M22 5h-4"}],["path",{d:"M4 17v2"}],["path",{d:"M5 18H3"}]];xe(f,ze({name:"sparkles"},()=>d,{get iconNode(){return o},children:(z,F)=>{var p=q(),v=C(p);ke(v,r,"default",{}),n(z,p)},$$slots:{default:!0}}))}const nt=pt({});function dr(f,r){nt.update(d=>({...d,[f]:r}))}function vr(f){nt.update(r=>{const d={...r};return delete d[f],d})}var ur=h('<span class="source-sheet-meta-icon svelte-ypseth"><!></span>'),fr=h('<span class="source-sheet-proxy svelte-ypseth" aria-label="已配置代理"><!></span>'),hr=h('<div class="source-sheet-state svelte-ypseth">加载中…</div>'),mr=h('<div class="source-sheet-state err svelte-ypseth"> </div>'),gr=h('<div class="source-sheet-state svelte-ypseth">暂无条目</div>'),_r=h('<div class="source-feed-cards svelte-ypseth"></div>'),pr=h('<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 class="source-sheet-header-icons svelte-ypseth"><!> <!></div></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),yr=h("<!> <!>",1),br=h('<span class="source-sheet-meta-icon svelte-ypseth"><!></span>'),zr=h('<span class="source-sheet-proxy svelte-ypseth" aria-label="已配置代理"><!></span>'),xr=h('<div class="source-sheet-state svelte-ypseth">加载中…</div>'),kr=h('<div class="source-sheet-state err svelte-ypseth"> </div>'),$r=h('<div class="source-sheet-state svelte-ypseth">暂无条目</div>'),Pr=h('<div class="source-feed-cards svelte-ypseth"></div>'),wr=h('<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 class="source-sheet-header-icons svelte-ypseth"><!> <!> <button type="button"><!></button></div></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),Sr=h('<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>'),Ir=h('<aside class="source-feed-panel-inline svelte-ypseth" aria-label="信源条目列表"><!></aside>');function Br(f,r){mt(r,!0);let d=T(r,"open",3,!1),o=T(r,"sourceRef",3,""),z=T(r,"sourceLabel",3,""),F=T(r,"sourceDescription",3,""),p=T(r,"sourceProxy",3,""),v=T(r,"sourceParseHint",3,null),G=T(r,"variant",3,"overlay"),he=T(r,"onOpenChange",3,()=>{}),R=ie(at([])),J=ie(!1),U=ie(""),Y=ie(0),te=ie(null),K=ie(at({}));Ge(()=>{const x=nt.subscribe(y=>{L(K,y,!0)});return()=>x()});async function Q(){const x=o().trim();if(!x){L(R,[],!0);return}L(Y,e(Y)+1);const y=e(Y);L(J,!0),L(U,"");try{const $=new URLSearchParams;$.set("ref",x),$.set("limit","100"),$.set("offset","0");const N=await Xe("/api/items?"+$.toString());if(y!==e(Y))return;if(!N.ok)throw new Error(await N.text().catch(()=>`HTTP ${N.status}`));const j=await N.json();L(R,Array.isArray(j.items)?j.items:[],!0)}catch($){if(y!==e(Y))return;L(U,$ instanceof Error?$.message:String($),!0),L(R,[],!0)}finally{y===e(Y)&&L(J,!1)}}Ge(()=>{if(d()&&o()){if(!o().trim()){L(R,[],!0);return}tt(()=>void Q())}else d()||tt(()=>{L(Y,e(Y)+1),L(R,[],!0),L(U,""),L(J,!1)})});function le(x){const y=x.author;if(y!=null&&y.length)return y.join(", ")}function me(x){Ye(x)}async function Ye(x){const y=x.trim();if(!(!y||e(te))){L(te,y,!0);try{const $=await Xe("/api/items/"+encodeURIComponent(y),{method:"DELETE"});if(!$.ok){const N=await $.text().catch(()=>"");throw new Error(N.trim()||`HTTP ${$.status}`)}L(R,e(R).filter(N=>N.id!==y),!0),Oe("已删除该条目","success")}catch($){Oe($ instanceof Error?$.message:String($),"error")}finally{L(te,null)}}}const Be=k(()=>F().trim()?F().trim():"—"),Je=k(()=>[z(),o()].filter(Boolean).join(" · ")||void 0);async function Ke(x){for(let y=0;y<120;y++){const $=await Xe(`/api/tasks/${x}`);if(!$.ok)return{ok:!1,error:"轮询失败"};const N=await $.json();if(N.status==="done")return{ok:!0};if(N.status==="error")return{ok:!1,error:N.error??"拉取失败"};await new Promise(j=>setTimeout(j,800))}return{ok:!1,error:"拉取超时"}}async function $e(x,y){y==null||y.preventDefault(),y==null||y.stopPropagation();const $=x.trim();if(!(!$||$ in e(K)))try{const N=await Xe("/api/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"source-pull",ref:$})}),j=await N.json();if(!N.ok||!j.taskId){Oe(j.error??"拉取失败","error");return}dr($,j.taskId);const V=await Ke(j.taskId);V.ok?await Q():Oe(V.error??"拉取失败","error")}catch(N){Oe(N instanceof Error?N.message:"拉取失败","error")}finally{vr($)}}const re=k(()=>G()==="inline"&&d()&&o().trim()!==""&&o()in e(K));let Pe=!1;Ge(()=>{const x=e(re);Pe&&!x&&d()&&G()==="inline"&&o().trim()&&tt(()=>void Q()),Pe=x});function ae(x){switch(x){case"rss":return"标准 RSS/Atom/JSON Feed(内置 __rss__)";case"plugin":return"Site 插件(listUrlPattern)或语鲸协议(lingowhale://)";case"llm":return"通用网页列表:LLM 解析(generic)";case"email":return"内置 IMAP 邮件插件(__email__)";default:return""}}function Te(x){switch(x){case"rss":return"解析方式:RSS/Atom";case"plugin":return"解析方式:插件";case"llm":return"解析方式:LLM";case"email":return"解析方式:邮箱";default:return"解析方式"}}var Re=q(),He=C(Re);{var Qe=x=>{var y=q(),$=C(y);Ne($,()=>Dt,(N,j)=>{j(N,{get open(){return d()},onOpenChange:V=>he()(V),children:(V,se)=>{var Z=q(),W=C(Z);Ne(W,()=>Pt,(ge,ne)=>{ne(ge,{children:(we,_e)=>{var Se=yr(),ce=C(Se);Ne(ce,()=>wt,(oe,ve)=>{ve(oe,{class:"source-sheet-overlay"})});var de=A(ce,2);Ne(de,()=>St,(oe,ve)=>{ve(oe,{class:"source-sheet-panel","aria-describedby":void 0,children:(Ce,qe)=>{var X=pr(),ue=C(X),pe=c(ue),ee=c(pe),Ie=c(ee),fe=c(Ie);Ne(fe,()=>It,(g,b)=>{b(g,{class:"source-sheet-title",get title(){return e(Je)},children:(E,H)=>{kt();var Le=xt();w(()=>O(Le,z()||o()||"信源条目")),n(E,Le)},$$slots:{default:!0}})});var Me=A(fe,2),De=c(Me);{var Fe=g=>{var b=ur(),E=c(b);{var H=B=>{lt(B,{size:16,class:"source-sheet-meta-icon-svg"})},Le=B=>{ct(B,{size:16,class:"source-sheet-meta-icon-svg"})},Ve=B=>{ht(B,{size:16,class:"source-sheet-meta-icon-svg"})},Ze=B=>{ft(B,{size:16,class:"source-sheet-meta-icon-svg"})};D(E,B=>{v()==="rss"?B(H):v()==="plugin"?B(Le,1):v()==="llm"?B(Ve,2):v()==="email"&&B(Ze,3)})}i(b),w((B,et)=>{S(b,"title",`解析方式:${B??""}`),S(b,"aria-label",et)},[()=>ae(v()),()=>Te(v())]),n(g,b)};D(De,g=>{v()&&g(Fe)})}var Ue=A(De,2);{var je=g=>{var b=fr(),E=c(b);ut(E,{size:16,class:"source-sheet-proxy-globe","aria-hidden":"true"}),i(b),w(H=>S(b,"title",`代理:${H??""}`),[()=>p().trim()]),n(g,b)},I=k(()=>p().trim());D(Ue,g=>{e(I)&&g(je)})}i(Me),i(Ie),i(ee);var t=A(ee,2),a=c(t,!0);i(t),i(pe);var l=A(pe,2);Ne(l,()=>Mt,(g,b)=>{b(g,{class:"source-sheet-close","aria-label":"关闭",children:(E,H)=>{Lt(E,{size:18})},$$slots:{default:!0}})}),i(ue);var P=A(ue,2),M=c(P);{var u=g=>{var b=hr();n(g,b)},s=g=>{var b=mr(),E=c(b,!0);i(b),w(()=>O(E,e(U))),n(g,b)},m=g=>{var b=gr();n(g,b)},_=g=>{var b=_r();st(b,21,()=>e(R),E=>E.id,(E,H)=>{{let Le=k(()=>{var Ee;return((Ee=e(H).title)==null?void 0:Ee.trim())||""}),Ve=k(()=>e(H).summary??void 0),Ze=k(()=>e(H).content??void 0),B=k(()=>le(e(H))),et=k(()=>e(H).pub_date||e(H).fetched_at),bt=k(()=>o().trim()),zt=k(()=>{var Ee;return(Ee=e(H).image_url)!=null&&Ee.trim()?e(H).image_url:void 0});vt(E,{get title(){return e(Le)},get link(){return e(H).url},get summary(){return e(Ve)},get content(){return e(Ze)},get author(){return e(B)},get pubDate(){return e(et)},get sourceRef(){return e(bt)},get coverImg(){return e(zt)},get guid(){return e(H).id},get rawItem(){return e(H)},onDelete:me})}}),i(b),n(g,b)};D(M,g=>{e(J)&&e(R).length===0?g(u):e(U)?g(s,1):e(R).length===0?g(m,2):g(_,-1)})}i(P),w(()=>{S(t,"title",o()),O(a,e(Be))}),n(Ce,X)},$$slots:{default:!0}})}),n(we,Se)},$$slots:{default:!0}})}),n(V,Z)},$$slots:{default:!0}})}),n(x,y)},Ae=x=>{var y=Ir(),$=c(y);{var N=se=>{var Z=wr(),W=C(Z),ge=c(W),ne=c(ge),we=c(ne),_e=c(we),Se=c(_e,!0);i(_e);var ce=A(_e,2),de=c(ce);{var oe=I=>{var t=br(),a=c(t);{var l=s=>{lt(s,{size:16,class:"source-sheet-meta-icon-svg"})},P=s=>{ct(s,{size:16,class:"source-sheet-meta-icon-svg"})},M=s=>{ht(s,{size:16,class:"source-sheet-meta-icon-svg"})},u=s=>{ft(s,{size:16,class:"source-sheet-meta-icon-svg"})};D(a,s=>{v()==="rss"?s(l):v()==="plugin"?s(P,1):v()==="llm"?s(M,2):v()==="email"&&s(u,3)})}i(t),w((s,m)=>{S(t,"title",`解析方式:${s??""}`),S(t,"aria-label",m)},[()=>ae(v()),()=>Te(v())]),n(I,t)};D(de,I=>{v()&&I(oe)})}var ve=A(de,2);{var Ce=I=>{var t=zr(),a=c(t);ut(a,{size:16,class:"source-sheet-proxy-globe","aria-hidden":"true"}),i(t),w(l=>S(t,"title",`代理:${l??""}`),[()=>p().trim()]),n(I,t)},qe=k(()=>p().trim());D(ve,I=>{e(qe)&&I(Ce)})}var X=A(ve,2);let ue;var pe=c(X);cr(pe,{size:16}),i(X),i(ce),i(we),i(ne);var ee=A(ne,2),Ie=c(ee,!0);i(ee),i(ge),i(W);var fe=A(W,2),Me=c(fe);{var De=I=>{var t=xr();n(I,t)},Fe=I=>{var t=kr(),a=c(t,!0);i(t),w(()=>O(a,e(U))),n(I,t)},Ue=I=>{var t=$r();n(I,t)},je=I=>{var t=Pr();st(t,21,()=>e(R),a=>a.id,(a,l)=>{{let P=k(()=>{var b;return((b=e(l).title)==null?void 0:b.trim())||""}),M=k(()=>e(l).summary??void 0),u=k(()=>e(l).content??void 0),s=k(()=>le(e(l))),m=k(()=>e(l).pub_date||e(l).fetched_at),_=k(()=>o().trim()),g=k(()=>{var b;return(b=e(l).image_url)!=null&&b.trim()?e(l).image_url:void 0});vt(a,{get title(){return e(P)},get link(){return e(l).url},get summary(){return e(M)},get content(){return e(u)},get author(){return e(s)},get pubDate(){return e(m)},get sourceRef(){return e(_)},get coverImg(){return e(g)},get guid(){return e(l).id},get rawItem(){return e(l)},onDelete:me})}}),i(t),n(I,t)};D(Me,I=>{e(J)&&e(R).length===0?I(De):e(U)?I(Fe,1):e(R).length===0?I(Ue,2):I(je,-1)})}i(fe),w(()=>{S(_e,"title",e(Je)),O(Se,z()||o()||"信源条目"),ue=We(X,1,"source-sheet-pull-status svelte-ypseth",null,ue,{pulling:e(re)}),S(X,"title",e(re)?"拉取中…":"立即拉取"),S(X,"aria-label",e(re)?"拉取中":"立即拉取"),S(X,"aria-busy",e(re)),S(ee,"title",o()),O(Ie,e(Be))}),ye("click",X,I=>$e(o(),I)),n(se,Z)},j=k(()=>d()&&o().trim()),V=se=>{var Z=Sr();n(se,Z)};D($,se=>{e(j)?se(N):se(V,-1)})}i(y),n(x,y)};D(He,x=>{G()==="overlay"?x(Qe):x(Ae,-1)})}n(f,Re),gt()}_t(["click"]);const Jr=pt(null);export{ft as M,ct as P,lt as R,Br as S,ht as a,cr as b,vr as c,Jr as h,nt as r,dr as s};
@@ -1 +1 @@
1
- import{S as m,m as v,T as _,U as b,V as i,h as y}from"./vtBo8kBV.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};
1
+ import{l as i,i as v,t as m,u as _,j as b,h as y}from"./BsQ08Wq_.js";function k(e,l,u=l){var s=new WeakSet;i(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 m(),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||_(l)==null&&e.value)&&(u(t(e)?o(e.value):e.value),v!==null&&s.add(v)),b(()=>{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{k as b};
@@ -0,0 +1 @@
1
+ var wt=Object.defineProperty;var Sn=e=>{throw TypeError(e)};var yt=(e,n,t)=>n in e?wt(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var ie=(e,n,t)=>yt(e,typeof n!="symbol"?n+"":n,t),We=(e,n,t)=>n.has(e)||Sn("Cannot "+t);var _=(e,n,t)=>(We(e,n,"read from private field"),t?t.call(e):n.get(e)),D=(e,n,t)=>n.has(e)?Sn("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,t),K=(e,n,t,r)=>(We(e,n,"write to private field"),r?r.call(e,t):n.set(e,t),t),q=(e,n,t)=>(We(e,n,"access private method"),t);var Et=Array.isArray,mt=Array.prototype.indexOf,Se=Array.prototype.includes,wr=Array.from,yr=Object.defineProperty,Ie=Object.getOwnPropertyDescriptor,gt=Object.getOwnPropertyDescriptors,bt=Object.prototype,Tt=Array.prototype,Ln=Object.getPrototypeOf,xn=Object.isExtensible;function Er(e){return typeof e=="function"}const At=()=>{};function mr(e){return e()}function St(e){for(var n=0;n<e.length;n++)e[n]()}function jn(){var e,n,t=new Promise((r,s)=>{e=r,n=s});return{promise:t,resolve:e,reject:n}}function gr(e,n){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const t=[];for(const r of e)if(t.push(r),t.length===n)break;return t}const T=2,ve=4,Le=8,cn=1<<24,fe=16,G=32,Q=64,xt=128,M=512,m=1024,R=2048,H=4096,V=8192,B=16384,we=32768,Rn=1<<25,qe=65536,Nn=1<<17,Rt=1<<18,Re=1<<19,Yn=1<<20,br=1<<25,de=65536,en=1<<21,_n=1<<22,W=1<<23,ce=Symbol("$state"),Tr=Symbol("legacy props"),Ar=Symbol(""),$=new class extends Error{constructor(){super(...arguments);ie(this,"name","StaleReactionError");ie(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};var Fn;const xr=!!((Fn=globalThis.document)!=null&&Fn.contentType)&&globalThis.document.contentType.includes("xml"),Rr=1,ze=3,Hn=8;function Nt(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Ot(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Nr(e,n,t){throw new Error("https://svelte.dev/e/each_key_duplicate")}function kt(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ct(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Dt(e){throw new Error("https://svelte.dev/e/effect_orphan")}function It(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Or(){throw new Error("https://svelte.dev/e/hydration_failed")}function kr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Pt(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Mt(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ft(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Cr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Dr=1,Ir=2,Pr=4,Mr=8,Fr=16,Lr=1,jr=2,Yr=4,Hr=8,qr=16,Ur=1,Vr=2,Lt="[",jt="[!",Br="[?",Yt="]",vn={},A=Symbol(),Ht="http://www.w3.org/1999/xhtml",Gr="http://www.w3.org/2000/svg",Kr="@attach";function dn(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function $r(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function zr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let ee=!1;function Xr(e){ee=e}let b;function xe(e){if(e===null)throw dn(),vn;return b=e}function Zr(){return xe(ae(b))}function Wr(e){if(ee){if(ae(b)!==null)throw dn(),vn;b=e}}function Jr(e=1){if(ee){for(var n=e,t=b;n--;)t=ae(t);b=t}}function Qr(e=!0){for(var n=0,t=b;;){if(t.nodeType===Hn){var r=t.data;if(r===Yt){if(n===0)return t;n-=1}else(r===Lt||r===jt||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(n+=1)}var s=ae(t);e&&t.remove(),t=s}}function es(e){if(!e||e.nodeType!==Hn)throw dn(),vn;return e.data}function qn(e){return e===this.v}function qt(e,n){return e!=e?n==n:e!==n||e!==null&&typeof e=="object"||typeof e=="function"}function Un(e){return!qt(e,this.v)}let Xe=!1;function ns(){Xe=!0}let y=null;function Ue(e){y=e}function ts(e){return Ze().get(e)}function rs(e,n){return Ze().set(e,n),n}function ss(e){return Ze().has(e)}function fs(){return Ze()}function as(e,n=!1,t){y={p:y,i:!1,c:null,e:null,s:e,x:null,r:w,l:Xe&&!n?{s:null,u:null,$:[]}:null}}function is(e){var n=y,t=n.e;if(t!==null){n.e=null;for(var r of t)st(r)}return n.i=!0,y=n.p,{}}function je(){return!Xe||y!==null&&y.l===null}function Ze(e){return y===null&&Nt(),y.c??(y.c=new Map(Ut(y)||void 0))}function Ut(e){let n=e.p;for(;n!==null;){const t=n.c;if(t!==null)return t;n=n.p}return null}let le=[];function Vn(){var e=le;le=[],St(e)}function nn(e){if(le.length===0&&!Pe){var n=le;queueMicrotask(()=>{n===le&&Vn()})}le.push(e)}function Vt(){for(;le.length>0;)Vn()}function Bt(e){var n=w;if(n===null)return d.f|=W,e;if((n.f&we)===0&&(n.f&ve)===0)throw e;Ve(e,n)}function Ve(e,n){for(;n!==null;){if((n.f&xt)!==0){if((n.f&we)===0)throw e;try{n.b.error(e);return}catch(t){e=t}}n=n.parent}throw e}const Gt=-7169;function E(e,n){e.f=e.f&Gt|n}function pn(e){(e.f&M)!==0||e.deps===null?E(e,m):E(e,H)}function Bn(e){if(e!==null)for(const n of e)(n.f&T)===0||(n.f&de)===0||(n.f^=de,Bn(n.deps))}function Kt(e,n,t){(e.f&R)!==0?n.add(e):(e.f&H)!==0&&t.add(e),Bn(e.deps),E(e,m)}const Ce=new Set;let p=null,S=null,tn=null,Pe=!1,Je=!1,ye=null,Ye=null;var On=0;let $t=1;var Ee,me,ge,be,Fe,P,Te,Z,U,Ae,x,rn,sn,fn,an,Gn;const $e=class $e{constructor(){D(this,x);ie(this,"id",$t++);ie(this,"current",new Map);ie(this,"previous",new Map);D(this,Ee,new Set);D(this,me,new Set);D(this,ge,0);D(this,be,0);D(this,Fe,null);D(this,P,[]);D(this,Te,new Set);D(this,Z,new Set);D(this,U,new Map);ie(this,"is_fork",!1);D(this,Ae,!1)}skip_effect(n){_(this,U).has(n)||_(this,U).set(n,{d:[],m:[]})}unskip_effect(n){var t=_(this,U).get(n);if(t){_(this,U).delete(n);for(var r of t.d)E(r,R),this.schedule(r);for(r of t.m)E(r,H),this.schedule(r)}}capture(n,t){t!==A&&!this.previous.has(n)&&this.previous.set(n,t),(n.f&W)===0&&(this.current.set(n,n.v),S==null||S.set(n,n.v))}activate(){p=this}deactivate(){p=null,S=null}flush(){try{if(Je=!0,p=this,!q(this,x,rn).call(this)){for(const n of _(this,Te))_(this,Z).delete(n),E(n,R),this.schedule(n);for(const n of _(this,Z))E(n,H),this.schedule(n)}q(this,x,sn).call(this)}finally{On=0,tn=null,ye=null,Ye=null,Je=!1,p=null,S=null,J.clear()}}discard(){for(const n of _(this,me))n(this);_(this,me).clear()}increment(n){K(this,ge,_(this,ge)+1),n&&K(this,be,_(this,be)+1)}decrement(n,t){K(this,ge,_(this,ge)-1),n&&K(this,be,_(this,be)-1),!(_(this,Ae)||t)&&(K(this,Ae,!0),nn(()=>{K(this,Ae,!1),this.flush()}))}oncommit(n){_(this,Ee).add(n)}ondiscard(n){_(this,me).add(n)}settled(){return(_(this,Fe)??K(this,Fe,jn())).promise}static ensure(){if(p===null){const n=p=new $e;Je||(Ce.add(p),Pe||nn(()=>{p===n&&n.flush()}))}return p}apply(){}schedule(n){var s;if(tn=n,(s=n.b)!=null&&s.is_pending&&(n.f&(ve|Le|cn))!==0&&(n.f&we)===0){n.b.defer_effect(n);return}for(var t=n;t.parent!==null;){t=t.parent;var r=t.f;if(ye!==null&&t===w&&(d===null||(d.f&T)===0))return;if((r&(Q|G))!==0){if((r&m)===0)return;t.f^=m}}_(this,P).push(t)}};Ee=new WeakMap,me=new WeakMap,ge=new WeakMap,be=new WeakMap,Fe=new WeakMap,P=new WeakMap,Te=new WeakMap,Z=new WeakMap,U=new WeakMap,Ae=new WeakMap,x=new WeakSet,rn=function(){return this.is_fork||_(this,be)>0},sn=function(){var l,a;On++>1e3&&Xt();const n=_(this,P);K(this,P,[]),this.apply();var t=ye=[],r=[],s=Ye=[];for(const i of n)q(this,x,fn).call(this,i,t,r);if(p=null,s.length>0){var f=$e.ensure();for(const i of s)f.schedule(i)}if(ye=null,Ye=null,q(this,x,rn).call(this)){q(this,x,an).call(this,r),q(this,x,an).call(this,t);for(const[i,u]of _(this,U))zn(i,u)}else{_(this,Te).clear(),_(this,Z).clear();for(const i of _(this,Ee))i(this);_(this,Ee).clear(),kn(r),kn(t),_(this,ge)===0&&q(this,x,Gn).call(this),(l=_(this,Fe))==null||l.resolve()}var o=p;if(_(this,P).length>0){const i=o??(o=this);_(i,P).push(..._(this,P).filter(u=>!_(i,P).includes(u)))}o!==null&&(Ce.add(o),q(a=o,x,sn).call(a))},fn=function(n,t,r){n.f^=m;for(var s=n.first;s!==null;){var f=s.f,o=(f&(G|Q))!==0,l=o&&(f&m)!==0,a=l||(f&V)!==0||_(this,U).has(s);if(!a&&s.fn!==null){o?s.f^=m:(f&ve)!==0?t.push(s):Ne(s)&&((f&fe)!==0&&_(this,Z).add(s),he(s));var i=s.first;if(i!==null){s=i;continue}}for(;s!==null;){var u=s.next;if(u!==null){s=u;break}s=s.parent}}},an=function(n){for(var t=0;t<n.length;t+=1)Kt(n[t],_(this,Te),_(this,Z))},Gn=function(){var s;if(Ce.size>1){this.previous.clear();var n=p,t=S,r=!0;for(const f of Ce){if(f===this){r=!1;continue}const o=[];for(const[a,i]of this.current){if(f.current.has(a))if(r&&i!==f.current.get(a))f.current.set(a,i);else continue;o.push(a)}if(o.length===0)continue;const l=[...f.current.keys()].filter(a=>!this.current.has(a));if(l.length>0){f.activate();const a=new Set,i=new Map;for(const u of o)Kn(u,l,a,i);if(_(f,P).length>0){f.apply();for(const u of _(f,P))q(s=f,x,fn).call(s,u,[],[])}f.deactivate()}}p=n,S=t}_(this,U).clear(),Ce.delete(this)};let ne=$e;function zt(e){var n=Pe;Pe=!0;try{for(var t;;){if(Vt(),p===null)return t;p.flush()}}finally{Pe=n}}function Xt(){try{It()}catch(e){Ve(e,tn)}}let j=null;function kn(e){var n=e.length;if(n!==0){for(var t=0;t<n;){var r=e[t++];if((r.f&(B|V))===0&&Ne(r)&&(j=new Set,he(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&it(r),(j==null?void 0:j.size)>0)){J.clear();for(const s of j){if((s.f&(B|V))!==0)continue;const f=[s];let o=s.parent;for(;o!==null;)j.has(o)&&(j.delete(o),f.push(o)),o=o.parent;for(let l=f.length-1;l>=0;l--){const a=f[l];(a.f&(B|V))===0&&he(a)}}j.clear()}}j=null}}function Kn(e,n,t,r){if(!t.has(e)&&(t.add(e),e.reactions!==null))for(const s of e.reactions){const f=s.f;(f&T)!==0?Kn(s,n,t,r):(f&(_n|fe))!==0&&(f&R)===0&&$n(s,n,r)&&(E(s,R),hn(s))}}function $n(e,n,t){const r=t.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(Se.call(n,s))return!0;if((s.f&T)!==0&&$n(s,n,t))return t.set(s,!0),!0}return t.set(e,!1),!1}function hn(e){p.schedule(e)}function zn(e,n){if(!((e.f&G)!==0&&(e.f&m)!==0)){(e.f&R)!==0?n.d.push(e):(e.f&H)!==0&&n.m.push(e),E(e,m);for(var t=e.first;t!==null;)zn(t,n),t=t.next}}function Xn(e,n,t,r){const s=je()?yn:Jt;var f=e.filter(c=>!c.settled);if(t.length===0&&f.length===0){r(n.map(s));return}var o=w,l=Zt(),a=f.length===1?f[0].promise:f.length>1?Promise.all(f.map(c=>c.promise)):null;function i(c){l();try{r(c)}catch(g){(o.f&B)===0&&Ve(g,o)}Be()}if(t.length===0){a.then(()=>i(n.map(s)));return}var u=wn();function v(){Promise.all(t.map(c=>Wt(c))).then(c=>i([...n.map(s),...c])).catch(c=>Ve(c,o)).finally(()=>u())}a?a.then(()=>{l(),v(),Be()}):v()}function Zt(){var e=w,n=d,t=y,r=p;return function(f=!0){se(e),re(n),Ue(t),f&&(e.f&B)===0&&(r==null||r.activate(),r==null||r.apply())}}function Be(e=!0){se(null),re(null),Ue(null),e&&(p==null||p.deactivate())}function wn(){var e=w.b,n=p,t=e.is_rendered();return e.update_pending_count(1,n),n.increment(t),(r=!1)=>{e.update_pending_count(-1,n),n.decrement(t,r)}}function yn(e){var n=T|R,t=d!==null&&(d.f&T)!==0?d:null;return w!==null&&(w.f|=Re),{ctx:y,deps:null,effects:null,equals:qn,f:n,fn:e,reactions:null,rv:0,v:A,wv:0,parent:t??w,ac:null}}function Wt(e,n,t){let r=w;r===null&&Ot();var s=void 0,f=mn(A),o=!d,l=new Map;return or(()=>{var g;var a=w,i=jn();s=i.promise;try{Promise.resolve(e()).then(i.resolve,i.reject).finally(Be)}catch(h){i.reject(h),Be()}var u=p;if(o){if((a.f&we)!==0)var v=wn();if(r.b.is_rendered())(g=l.get(u))==null||g.reject($),l.delete(u);else{for(const h of l.values())h.reject($);l.clear()}l.set(u,i)}const c=(h,L=void 0)=>{if(v){var N=L===$;v(N)}if(!(L===$||(a.f&B)!==0)){if(u.activate(),L)f.f|=W,on(f,L);else{(f.f&W)!==0&&(f.f^=W),on(f,h);for(const[Oe,ke]of l){if(l.delete(Oe),Oe===u)break;ke.reject($)}}u.deactivate()}};i.promise.then(c,h=>c(null,h||"unknown"))}),lr(()=>{for(const a of l.values())a.reject($)}),new Promise(a=>{function i(u){function v(){u===s?a(f):i(s)}u.then(v,v)}i(s)})}function ls(e){const n=yn(e);return ut(n),n}function Jt(e){const n=yn(e);return n.equals=Un,n}function Qt(e){var n=e.effects;if(n!==null){e.effects=null;for(var t=0;t<n.length;t+=1)te(n[t])}}function er(e){for(var n=e.parent;n!==null;){if((n.f&T)===0)return(n.f&B)===0?n:null;n=n.parent}return null}function En(e){var n,t=w;se(er(e));try{e.f&=~de,Qt(e),n=dt(e)}finally{se(t)}return n}function Zn(e){var n=En(e);if(!e.equals(n)&&(e.wv=_t(),(!(p!=null&&p.is_fork)||e.deps===null)&&(e.v=n,e.deps===null))){E(e,m);return}pe||(S!==null?(rt()||p!=null&&p.is_fork)&&S.set(e,n):pn(e))}function nr(e){var n,t;if(e.effects!==null)for(const r of e.effects)(r.teardown||r.ac)&&((n=r.teardown)==null||n.call(r),(t=r.ac)==null||t.abort($),r.teardown=At,r.ac=null,Me(r,0),Tn(r))}function Wn(e){if(e.effects!==null)for(const n of e.effects)n.teardown&&he(n)}let ln=new Set;const J=new Map;let Jn=!1;function mn(e,n){var t={f:0,v:e,reactions:null,equals:qn,rv:0,wv:0};return t}function z(e,n){const t=mn(e);return ut(t),t}function os(e,n=!1,t=!0){var s;const r=mn(e);return n||(r.equals=Un),Xe&&t&&y!==null&&y.l!==null&&((s=y.l).s??(s.s=[])).push(r),r}function X(e,n,t=!1){d!==null&&(!Y||(d.f&Nn)!==0)&&je()&&(d.f&(T|fe|_n|Nn))!==0&&(F===null||!Se.call(F,e))&&Ft();let r=t?De(n):n;return on(e,r,Ye)}function on(e,n,t=null){if(!e.equals(n)){var r=e.v;pe?J.set(e,n):J.set(e,r),e.v=n;var s=ne.ensure();if(s.capture(e,r),(e.f&T)!==0){const f=e;(e.f&R)!==0&&En(f),pn(f)}e.wv=_t(),Qn(e,R,t),je()&&w!==null&&(w.f&m)!==0&&(w.f&(G|Q))===0&&(I===null?vr([e]):I.push(e)),!s.is_fork&&ln.size>0&&!Jn&&tr()}return n}function tr(){Jn=!1;for(const e of ln)(e.f&m)!==0&&E(e,H),Ne(e)&&he(e);ln.clear()}function us(e,n=1){var t=ue(e),r=n===1?t++:t--;return X(e,t),r}function Qe(e){X(e,e.v+1)}function Qn(e,n,t){var r=e.reactions;if(r!==null)for(var s=je(),f=r.length,o=0;o<f;o++){var l=r[o],a=l.f;if(!(!s&&l===w)){var i=(a&R)===0;if(i&&E(l,n),(a&T)!==0){var u=l;S==null||S.delete(u),(a&de)===0&&(a&M&&(l.f|=de),Qn(u,H,t))}else if(i){var v=l;(a&fe)!==0&&j!==null&&j.add(v),t!==null?t.push(v):hn(v)}}}}function De(e){if(typeof e!="object"||e===null||ce in e)return e;const n=Ln(e);if(n!==bt&&n!==Tt)return e;var t=new Map,r=Et(e),s=z(0),f=_e,o=l=>{if(_e===f)return l();var a=d,i=_e;re(null),Mn(f);var u=l();return re(a),Mn(i),u};return r&&t.set("length",z(e.length)),new Proxy(e,{defineProperty(l,a,i){(!("value"in i)||i.configurable===!1||i.enumerable===!1||i.writable===!1)&&Pt();var u=t.get(a);return u===void 0?o(()=>{var v=z(i.value);return t.set(a,v),v}):X(u,i.value,!0),!0},deleteProperty(l,a){var i=t.get(a);if(i===void 0){if(a in l){const u=o(()=>z(A));t.set(a,u),Qe(s)}}else X(i,A),Qe(s);return!0},get(l,a,i){var g;if(a===ce)return e;var u=t.get(a),v=a in l;if(u===void 0&&(!v||(g=Ie(l,a))!=null&&g.writable)&&(u=o(()=>{var h=De(v?l[a]:A),L=z(h);return L}),t.set(a,u)),u!==void 0){var c=ue(u);return c===A?void 0:c}return Reflect.get(l,a,i)},getOwnPropertyDescriptor(l,a){var i=Reflect.getOwnPropertyDescriptor(l,a);if(i&&"value"in i){var u=t.get(a);u&&(i.value=ue(u))}else if(i===void 0){var v=t.get(a),c=v==null?void 0:v.v;if(v!==void 0&&c!==A)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return i},has(l,a){var c;if(a===ce)return!0;var i=t.get(a),u=i!==void 0&&i.v!==A||Reflect.has(l,a);if(i!==void 0||w!==null&&(!u||(c=Ie(l,a))!=null&&c.writable)){i===void 0&&(i=o(()=>{var g=u?De(l[a]):A,h=z(g);return h}),t.set(a,i));var v=ue(i);if(v===A)return!1}return u},set(l,a,i,u){var An;var v=t.get(a),c=a in l;if(r&&a==="length")for(var g=i;g<v.v;g+=1){var h=t.get(g+"");h!==void 0?X(h,A):g in l&&(h=o(()=>z(A)),t.set(g+"",h))}if(v===void 0)(!c||(An=Ie(l,a))!=null&&An.writable)&&(v=o(()=>z(void 0)),X(v,De(i)),t.set(a,v));else{c=v.v!==A;var L=o(()=>De(i));X(v,L)}var N=Reflect.getOwnPropertyDescriptor(l,a);if(N!=null&&N.set&&N.set.call(u,i),!c){if(r&&typeof a=="string"){var Oe=t.get("length"),ke=Number(a);Number.isInteger(ke)&&ke>=Oe.v&&X(Oe,ke+1)}Qe(s)}return!0},ownKeys(l){ue(s);var a=Reflect.ownKeys(l).filter(v=>{var c=t.get(v);return c===void 0||c.v!==A});for(var[i,u]of t)u.v!==A&&!(i in l)&&a.push(i);return a},setPrototypeOf(){Mt()}})}function Cn(e){try{if(e!==null&&typeof e=="object"&&ce in e)return e[ce]}catch{}return e}function cs(e,n){return Object.is(Cn(e),Cn(n))}var Dn,rr,sr,et,nt;function _s(){if(Dn===void 0){Dn=window,rr=document,sr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,n=Node.prototype,t=Text.prototype;et=Ie(n,"firstChild").get,nt=Ie(n,"nextSibling").get,xn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),xn(t)&&(t.__t=void 0)}}function Ge(e=""){return document.createTextNode(e)}function Ke(e){return et.call(e)}function ae(e){return nt.call(e)}function vs(e,n){if(!ee)return Ke(e);var t=Ke(b);if(t===null)t=b.appendChild(Ge());else if(n&&t.nodeType!==ze){var r=Ge();return t==null||t.before(r),xe(r),r}return n&&gn(t),xe(t),t}function ds(e,n=!1){if(!ee){var t=Ke(e);return t instanceof Comment&&t.data===""?ae(t):t}if(n){if((b==null?void 0:b.nodeType)!==ze){var r=Ge();return b==null||b.before(r),xe(r),r}gn(b)}return b}function ps(e,n=1,t=!1){let r=ee?b:e;for(var s;n--;)s=r,r=ae(r);if(!ee)return r;if(t){if((r==null?void 0:r.nodeType)!==ze){var f=Ge();return r===null?s==null||s.after(f):r.before(f),xe(f),f}gn(r)}return xe(r),r}function fr(e){e.textContent=""}function hs(){return!1}function ws(e,n,t){return document.createElementNS(n??Ht,e,void 0)}function gn(e){if(e.nodeValue.length<65536)return;let n=e.nextSibling;for(;n!==null&&n.nodeType===ze;)n.remove(),e.nodeValue+=n.nodeValue,n=e.nextSibling}function ys(e,n){if(n){const t=document.body;e.autofocus=!0,nn(()=>{document.activeElement===t&&e.focus()})}}function Es(e){ee&&Ke(e)!==null&&fr(e)}let In=!1;function ar(){In||(In=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var n;if(!e.defaultPrevented)for(const t of e.target.elements)(n=t.__on_r)==null||n.call(t)})},{capture:!0}))}function bn(e){var n=d,t=w;re(null),se(null);try{return e()}finally{re(n),se(t)}}function ms(e,n,t,r=t){e.addEventListener(n,()=>bn(t));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),ar()}function tt(e){w===null&&(d===null&&Dt(),Ct()),pe&&kt()}function ir(e,n){var t=n.last;t===null?n.last=n.first=e:(t.next=e,e.prev=t,n.last=e)}function C(e,n){var t=w;t!==null&&(t.f&V)!==0&&(e|=V);var r={ctx:y,deps:null,nodes:null,f:e|R|M,first:null,fn:n,last:null,next:null,parent:t,b:t&&t.b,prev:null,teardown:null,wv:0,ac:null},s=r;if((e&ve)!==0)ye!==null?ye.push(r):ne.ensure().schedule(r);else if(n!==null){try{he(r)}catch(o){throw te(r),o}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&Re)===0&&(s=s.first,(e&fe)!==0&&(e&qe)!==0&&s!==null&&(s.f|=qe))}if(s!==null&&(s.parent=t,t!==null&&ir(s,t),d!==null&&(d.f&T)!==0&&(e&Q)===0)){var f=d;(f.effects??(f.effects=[])).push(s)}return r}function rt(){return d!==null&&!Y}function lr(e){const n=C(Le,null);return E(n,m),n.teardown=e,n}function gs(e){tt();var n=w.f,t=!d&&(n&G)!==0&&(n&we)===0;if(t){var r=y;(r.e??(r.e=[])).push(e)}else return st(e)}function st(e){return C(ve|Yn,e)}function bs(e){return tt(),C(Le|Yn,e)}function Ts(e){ne.ensure();const n=C(Q|Re,e);return()=>{te(n)}}function As(e){ne.ensure();const n=C(Q|Re,e);return(t={})=>new Promise(r=>{t.outro?_r(n,()=>{te(n),r(void 0)}):(te(n),r(void 0))})}function Ss(e){return C(ve,e)}function xs(e,n){var t=y,r={effect:null,ran:!1,deps:e};t.l.$.push(r),r.effect=ft(()=>{if(e(),!r.ran){r.ran=!0;var s=w;try{se(s.parent),pr(n)}finally{se(s)}}})}function Rs(){var e=y;ft(()=>{for(var n of e.l.$){n.deps();var t=n.effect;(t.f&m)!==0&&t.deps!==null&&E(t,H),Ne(t)&&he(t),n.ran=!1}})}function or(e){return C(_n|Re,e)}function ft(e,n=0){return C(Le|n,e)}function Ns(e,n=[],t=[],r=[]){Xn(r,n,t,s=>{C(Le,()=>e(...s.map(ue)))})}function Os(e,n=[],t=[],r=[]){if(t.length>0||r.length>0)var s=wn();Xn(r,n,t,f=>{C(ve,()=>e(...f.map(ue))),s&&s()})}function ks(e,n=0){var t=C(fe|n,e);return t}function Cs(e,n=0){var t=C(cn|n,e);return t}function Ds(e){return C(G|Re,e)}function at(e){var n=e.teardown;if(n!==null){const t=pe,r=d;Pn(!0),re(null);try{n.call(null)}finally{Pn(t),re(r)}}}function Tn(e,n=!1){var t=e.first;for(e.first=e.last=null;t!==null;){const s=t.ac;s!==null&&bn(()=>{s.abort($)});var r=t.next;(t.f&Q)!==0?t.parent=null:te(t,n),t=r}}function ur(e){for(var n=e.first;n!==null;){var t=n.next;(n.f&G)===0&&te(n),n=t}}function te(e,n=!0){var t=!1;(n||(e.f&Rt)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(cr(e.nodes.start,e.nodes.end),t=!0),E(e,Rn),Tn(e,n&&!t),Me(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const f of r)f.stop();at(e),e.f^=Rn,e.f|=B;var s=e.parent;s!==null&&s.first!==null&&it(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function cr(e,n){for(;e!==null;){var t=e===n?null:ae(e);e.remove(),e=t}}function it(e){var n=e.parent,t=e.prev,r=e.next;t!==null&&(t.next=r),r!==null&&(r.prev=t),n!==null&&(n.first===e&&(n.first=r),n.last===e&&(n.last=t))}function _r(e,n,t=!0){var r=[];lt(e,r,!0);var s=()=>{t&&te(e),n&&n()},f=r.length;if(f>0){var o=()=>--f||s();for(var l of r)l.out(o)}else s()}function lt(e,n,t){if((e.f&V)===0){e.f^=V;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||t)&&n.push(l);for(var s=e.first;s!==null;){var f=s.next,o=(s.f&qe)!==0||(s.f&G)!==0&&(e.f&fe)!==0;lt(s,n,o?t:!1),s=f}}}function Is(e){ot(e,!0)}function ot(e,n){if((e.f&V)!==0){e.f^=V,(e.f&m)===0&&(E(e,R),ne.ensure().schedule(e));for(var t=e.first;t!==null;){var r=t.next,s=(t.f&qe)!==0||(t.f&G)!==0;ot(t,s?n:!1),t=r}var f=e.nodes&&e.nodes.t;if(f!==null)for(const o of f)(o.is_global||n)&&o.in()}}function Ps(e,n){if(e.nodes)for(var t=e.nodes.start,r=e.nodes.end;t!==null;){var s=t===r?null:ae(t);n.append(t),t=s}}let He=!1,pe=!1;function Pn(e){pe=e}let d=null,Y=!1;function re(e){d=e}let w=null;function se(e){w=e}let F=null;function ut(e){d!==null&&(F===null?F=[e]:F.push(e))}let O=null,k=0,I=null;function vr(e){I=e}let ct=1,oe=0,_e=oe;function Mn(e){_e=e}function _t(){return++ct}function Ne(e){var n=e.f;if((n&R)!==0)return!0;if(n&T&&(e.f&=~de),(n&H)!==0){for(var t=e.deps,r=t.length,s=0;s<r;s++){var f=t[s];if(Ne(f)&&Zn(f),f.wv>e.wv)return!0}(n&M)!==0&&S===null&&E(e,m)}return!1}function vt(e,n,t=!0){var r=e.reactions;if(r!==null&&!(F!==null&&Se.call(F,e)))for(var s=0;s<r.length;s++){var f=r[s];(f.f&T)!==0?vt(f,n,!1):n===f&&(t?E(f,R):(f.f&m)!==0&&E(f,H),hn(f))}}function dt(e){var L;var n=O,t=k,r=I,s=d,f=F,o=y,l=Y,a=_e,i=e.f;O=null,k=0,I=null,d=(i&(G|Q))===0?e:null,F=null,Ue(e.ctx),Y=!1,_e=++oe,e.ac!==null&&(bn(()=>{e.ac.abort($)}),e.ac=null);try{e.f|=en;var u=e.fn,v=u();e.f|=we;var c=e.deps,g=p==null?void 0:p.is_fork;if(O!==null){var h;if(g||Me(e,k),c!==null&&k>0)for(c.length=k+O.length,h=0;h<O.length;h++)c[k+h]=O[h];else e.deps=c=O;if(rt()&&(e.f&M)!==0)for(h=k;h<c.length;h++)((L=c[h]).reactions??(L.reactions=[])).push(e)}else!g&&c!==null&&k<c.length&&(Me(e,k),c.length=k);if(je()&&I!==null&&!Y&&c!==null&&(e.f&(T|H|R))===0)for(h=0;h<I.length;h++)vt(I[h],e);if(s!==null&&s!==e){if(oe++,s.deps!==null)for(let N=0;N<t;N+=1)s.deps[N].rv=oe;if(n!==null)for(const N of n)N.rv=oe;I!==null&&(r===null?r=I:r.push(...I))}return(e.f&W)!==0&&(e.f^=W),v}catch(N){return Bt(N)}finally{e.f^=en,O=n,k=t,I=r,d=s,F=f,Ue(o),Y=l,_e=a}}function dr(e,n){let t=n.reactions;if(t!==null){var r=mt.call(t,e);if(r!==-1){var s=t.length-1;s===0?t=n.reactions=null:(t[r]=t[s],t.pop())}}if(t===null&&(n.f&T)!==0&&(O===null||!Se.call(O,n))){var f=n;(f.f&M)!==0&&(f.f^=M,f.f&=~de),pn(f),nr(f),Me(f,0)}}function Me(e,n){var t=e.deps;if(t!==null)for(var r=n;r<t.length;r++)dr(e,t[r])}function he(e){var n=e.f;if((n&B)===0){E(e,m);var t=w,r=He;w=e,He=!0;try{(n&(fe|cn))!==0?ur(e):Tn(e),at(e);var s=dt(e);e.teardown=typeof s=="function"?s:null,e.wv=ct;var f}finally{He=r,w=t}}}async function Ms(){await Promise.resolve(),zt()}function Fs(){return ne.ensure().settled()}function ue(e){var n=e.f,t=(n&T)!==0;if(d!==null&&!Y){var r=w!==null&&(w.f&B)!==0;if(!r&&(F===null||!Se.call(F,e))){var s=d.deps;if((d.f&en)!==0)e.rv<oe&&(e.rv=oe,O===null&&s!==null&&s[k]===e?k++:O===null?O=[e]:O.push(e));else{(d.deps??(d.deps=[])).push(e);var f=e.reactions;f===null?e.reactions=[d]:Se.call(f,d)||f.push(d)}}}if(pe&&J.has(e))return J.get(e);if(t){var o=e;if(pe){var l=o.v;return((o.f&m)===0&&o.reactions!==null||ht(o))&&(l=En(o)),J.set(o,l),l}var a=(o.f&M)===0&&!Y&&d!==null&&(He||(d.f&M)!==0),i=(o.f&we)===0;Ne(o)&&(a&&(o.f|=M),Zn(o)),a&&!i&&(Wn(o),pt(o))}if(S!=null&&S.has(e))return S.get(e);if((e.f&W)!==0)throw e.v;return e.v}function pt(e){if(e.f|=M,e.deps!==null)for(const n of e.deps)(n.reactions??(n.reactions=[])).push(e),(n.f&T)!==0&&(n.f&M)===0&&(Wn(n),pt(n))}function ht(e){if(e.v===A)return!0;if(e.deps===null)return!1;for(const n of e.deps)if(J.has(n)||(n.f&T)!==0&&ht(n))return!0;return!1}function pr(e){var n=Y;try{return Y=!0,e()}finally{Y=n}}function Ls(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(ce in e)un(e);else if(!Array.isArray(e))for(let n in e){const t=e[n];typeof t=="object"&&t&&ce in t&&un(t)}}}function un(e,n=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!n.has(e)){n.add(e),e instanceof Date&&e.getTime();for(let r in e)try{un(e[r],n)}catch{}const t=Ln(e);if(t!==Object.prototype&&t!==Array.prototype&&t!==Map.prototype&&t!==Set.prototype&&t!==Date.prototype){const r=gt(t);for(let s in r){const f=r[s].get;if(f)try{f.call(e)}catch{}}}}}export{rr as $,wr as A,Dr as B,Hn as C,Fr as D,qe as E,os as F,mn as G,Lt as H,Ir as I,B as J,Is as K,_r as L,V as M,G as N,fr as O,Ps as P,te as Q,Ke as R,nn as S,ae as T,Pr as U,Mr as V,y as W,Ss as X,w as Y,Rn as Z,ce as _,Zr as a,Cr as a$,je as a0,Ie as a1,kr as a2,Yr as a3,De as a4,X as a5,pe as a6,us as a7,se as a8,Hr as a9,ls as aA,gr as aB,xs as aC,Rs as aD,Es as aE,qt as aF,ws as aG,sr as aH,Ur as aI,Vr as aJ,ze as aK,gn as aL,we as aM,rt as aN,Qe as aO,xt as aP,Br as aQ,E as aR,R as aS,H as aT,Kt as aU,re as aV,Ue as aW,ne as aX,Bt as aY,d as aZ,Ve as a_,Xe as aa,jr as ab,Lr as ac,yn as ad,Er as ae,Tr as af,qr as ag,lr as ah,yr as ai,At as aj,Rt as ak,Re as al,bs as am,gs as an,St as ao,mr as ap,Ls as aq,Nt as ar,ns as as,as as at,is as au,vs as av,ps as aw,Wr as ax,Jr as ay,Ns as az,ks as b,zr as b0,bn as b1,_s as b2,vn as b3,Or as b4,As as b5,dn as b6,zt as b7,z as b8,Cs as b9,$r as ba,cs as bb,Xn as bc,Ht as bd,Ln as be,Kr as bf,gt as bg,xr as bh,ys as bi,A as bj,ar as bk,Ar as bl,Rr as bm,Gr as bn,_e as bo,ss as bp,ts as bq,rs as br,fs as bs,Ts as bt,Fs as bu,xe as c,Os as d,Xr as e,ds as f,b as g,ee as h,p as i,ft as j,ue as k,ms as l,jt as m,Yt as n,on as o,Ge as p,br as q,es as r,Qr as s,Ms as t,pr as u,Ds as v,Nr as w,hs as x,Jt as y,Et as z};
@@ -0,0 +1 @@
1
+ import{b as v,E as y,h as o,a as f,r as l,s as m,c as p,e as i,H as T,g}from"./BsQ08Wq_.js";import{B as A}from"./rNwPv4DZ.js";function b(d,_,e){var s;o&&(s=g,f());var r=new A(d);v(()=>{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)))},y)}export{b as c};
@@ -1 +1 @@
1
- import{W as S,X as T,V as Y,U as x,Y as E,Z as O,_ as k}from"./vtBo8kBV.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};
1
+ import{W as S,X as T,j as Y,u as x,Y as E,Z as O,_ as j}from"./BsQ08Wq_.js";function n(r,f){return r===f||(r==null?void 0:r[j])===f}function B(r={},f,i,k){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{B as b};
@@ -0,0 +1 @@
1
+ import{as as a}from"./BsQ08Wq_.js";a();
@@ -1 +1 @@
1
- import{h as s,a as l}from"./vtBo8kBV.js";function h(n,a,r,t,d){var i;s&&l();var e=(i=a.$$slots)==null?void 0:i[r],f=!1;e===!0&&(e=a.children,f=!0),e===void 0||e(n,f?()=>t:t)}export{h as s};
1
+ import{h as s,a as l}from"./BsQ08Wq_.js";function h(n,a,r,t,d){var i;s&&l();var e=(i=a.$$slots)==null?void 0:i[r],f=!1;e===!0&&(e=a.children,f=!0),e===void 0||e(n,f?()=>t:t)}export{h as s};
@@ -1 +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"./vtBo8kBV.js";import{c as F}from"./B6WG2Sd3.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};
1
+ import{Y as w,G as y,a1 as h,a2 as K,a3 as R,k as _,a4 as Y,a5 as B,a6 as j,J as M,a7 as m,a8 as I,a9 as N,u as U,aa as G,ab as $,ac as q,ad as z,y as C,ae as p,_ as D,af as E,ag as J}from"./BsQ08Wq_.js";import{c as Z}from"./BI_ale1m.js";const F={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},F)}const H={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:y(0),parent_effect:w},H)}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===E)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=!G||(s&$)!==0,t=(s&N)!==0,A=(s&J)!==0,f=n,v=!0,S=()=>(v&&(v=!1,f=A?U(n):n),f);let l;if(t){var L=D in e||E 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]=Z(()=>e[r]):o=e[r],o===void 0&&n!==void 0&&(o=S(),l&&(i&&K(),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&q)!==0?z:C)(()=>(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 j&&P||(g.f&M)!==0?c.v:_(c)})}export{ee as l,V as p,k as r,re as s};
@@ -1 +1 @@
1
- import{aF as w,n as v,N as f,aG as E,Y as T,aH as N,aI as y,h as i,g as n,aJ as M,c as x,aK as C,aL as L,a as h,C as O}from"./vtBo8kBV.js";var m;const c=((m=globalThis==null?void 0:globalThis.window)==null?void 0:m.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function b(e){return(c==null?void 0:c.createHTML(e))??e}function g(e){var r=w("template");return r.innerHTML=b(e.replaceAll("<!>","<!---->")),r.content}function a(e,r){var t=T;t.nodes===null&&(t.nodes={start:e,end:r,a:null,t:null})}function R(e,r){var t=(r&N)!==0,l=(r&y)!==0,s,u=!e.startsWith("<!>");return()=>{if(i)return a(n,null),n;s===void 0&&(s=g(u?e:"<!>"+e),t||(s=f(s)));var o=l||E?document.importNode(s,!0):s.cloneNode(!0);if(t){var _=f(o),d=o.lastChild;a(_,d)}else a(o,o);return o}}function A(e,r,t="svg"){var l=!e.startsWith("<!>"),s=`<${t}>${l?e:"<!>"+e}</${t}>`,u;return()=>{if(i)return a(n,null),n;if(!u){var o=g(s),_=f(o);u=f(_)}var d=u.cloneNode(!0);return a(d,d),d}}function $(e,r){return A(e,r,"svg")}function D(e=""){if(!i){var r=v(e+"");return a(r,r),r}var t=n;return t.nodeType!==M?(t.before(t=v()),x(t)):C(t),a(t,t),t}function H(){if(i)return a(n,null),n;var e=document.createDocumentFragment(),r=document.createComment(""),t=v();return e.append(r,t),a(r,t),e}function F(e,r){if(i){var t=T;((t.f&L)===0||t.nodes.end===null)&&(t.nodes.end=n),h();return}e!==null&&e.before(r)}function S(){var e,r;if(i&&n&&n.nodeType===O&&((e=n.textContent)!=null&&e.startsWith("$"))){const t=n.textContent.substring(1);return h(),t}return(r=window.__svelte??(window.__svelte={})).uid??(r.uid=1),`c${window.__svelte.uid++}`}const I="5";var p;typeof window<"u"&&((p=window.__svelte??(window.__svelte={})).v??(p.v=new Set)).add(I);export{F as a,a as b,H as c,$ as d,R as f,S as p,D as t};
1
+ import{aG as w,p as v,R as f,aH as E,Y as T,aI as N,aJ as M,h as i,g as n,aK as y,c as x,aL as C,aM as L,a as h,C as O}from"./BsQ08Wq_.js";var m;const c=((m=globalThis==null?void 0:globalThis.window)==null?void 0:m.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function b(e){return(c==null?void 0:c.createHTML(e))??e}function g(e){var r=w("template");return r.innerHTML=b(e.replaceAll("<!>","<!---->")),r.content}function a(e,r){var t=T;t.nodes===null&&(t.nodes={start:e,end:r,a:null,t:null})}function P(e,r){var t=(r&N)!==0,l=(r&M)!==0,s,u=!e.startsWith("<!>");return()=>{if(i)return a(n,null),n;s===void 0&&(s=g(u?e:"<!>"+e),t||(s=f(s)));var o=l||E?document.importNode(s,!0):s.cloneNode(!0);if(t){var _=f(o),d=o.lastChild;a(_,d)}else a(o,o);return o}}function A(e,r,t="svg"){var l=!e.startsWith("<!>"),s=`<${t}>${l?e:"<!>"+e}</${t}>`,u;return()=>{if(i)return a(n,null),n;if(!u){var o=g(s),_=f(o);u=f(_)}var d=u.cloneNode(!0);return a(d,d),d}}function $(e,r){return A(e,r,"svg")}function D(e=""){if(!i){var r=v(e+"");return a(r,r),r}var t=n;return t.nodeType!==y?(t.before(t=v()),x(t)):C(t),a(t,t),t}function H(){if(i)return a(n,null),n;var e=document.createDocumentFragment(),r=document.createComment(""),t=v();return e.append(r,t),a(r,t),e}function S(e,r){if(i){var t=T;((t.f&L)===0||t.nodes.end===null)&&(t.nodes.end=n),h();return}e!==null&&e.before(r)}function W(){var e,r;if(i&&n&&n.nodeType===O&&((e=n.textContent)!=null&&e.startsWith("$"))){const t=n.textContent.substring(1);return h(),t}return(r=window.__svelte??(window.__svelte={})).uid??(r.uid=1),`c${window.__svelte.uid++}`}const R="5";var p;typeof window<"u"&&((p=window.__svelte??(window.__svelte={})).v??(p.v=new Set)).add(R);export{S as a,a as b,H as c,$ as d,P as f,W as p,D as t};
@@ -0,0 +1 @@
1
+ import{p as y,b as u,ak as _,al as g,h as t,C as o,T as l,e as i,c as d,g as p,R as m}from"./BsQ08Wq_.js";function C(n,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!==n);)e=l(e);if(e===null)i(!1);else{var f=l(e);e.remove(),d(f)}}t||(s=document.head.appendChild(y()));try{u(()=>r(s),_|g)}finally{E&&(i(!0),d(a))}}export{C as h};
@@ -0,0 +1 @@
1
+ import{c as _,a as s,f as g}from"./DIeahUKq.js";import"./CEWi_rGa.js";import{at as d,aC as b,aD as h,f as v,au as $,a5 as k,k as n,F as y,az as B}from"./BsQ08Wq_.js";import{s as j,a as x}from"./BI_ale1m.js";import{i as z}from"./rNwPv4DZ.js";import{s as C}from"./WW6La7Nt.js";import{i as D}from"./Nd0ktDhd.js";import{p as F}from"./GeNMTUn1.js";var H=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=()=>x(F,"$page",f),[f,l]=j(),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=H();B(()=>C(a,"href",n(e))),s(t,a)};z(c,t=>{n(e)&&t(u)})}s(i,o),$(),l()}export{I as B};
@@ -1 +1 @@
1
- import{ar as t,an as u,W as o,aa as c,U as e}from"./vtBo8kBV.js";function l(n){o===null&&t(),c&&o.l!==null?s(o).m.push(n):u(()=>{const a=e(n);if(typeof a=="function")return a})}function i(n){o===null&&t(),l(()=>()=>e(n))}function s(n){var a=n.l;return a.u??(a.u={a:[],b:[],m:[]})}export{i as a,l as o};
1
+ import{ar as t,an as u,W as o,aa as c,u as e}from"./BsQ08Wq_.js";function l(n){o===null&&t(),c&&o.l!==null?s(o).m.push(n):u(()=>{const a=e(n);if(typeof a=="function")return a})}function i(n){o===null&&t(),l(()=>()=>e(n))}function s(n){var a=n.l;return a.u??(a.u={a:[],b:[],m:[]})}export{i as a,l as o};
@@ -1 +1 @@
1
- import{aj as o,U as a,aE as d}from"./vtBo8kBV.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};
1
+ import{aj as o,u as a,aF as d}from"./BsQ08Wq_.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};
@@ -1 +1 @@
1
- import{s as e}from"./CVW0ymE1.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};
1
+ import{s as e}from"./BKm6QCwp.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};
@@ -1 +1 @@
1
- import{h as t,a as i,a0 as c,b as f}from"./vtBo8kBV.js";import{B as y}from"./BkD3yAYe.js";const b=Symbol("NaN");function m(r,e,n){t&&i();var o=new y(r),s=!c();f(()=>{var a=e();a!==a&&(a=b),s&&a!==null&&typeof a=="object"&&(a={}),o.ensure(a,n)})}export{m as k};
1
+ import{h as t,a as i,a0 as c,b as f}from"./BsQ08Wq_.js";import{B as y}from"./rNwPv4DZ.js";const b=Symbol("NaN");function m(r,e,n){t&&i();var o=new y(r),s=!c();f(()=>{var a=e();a!==a&&(a=b),s&&a!==null&&typeof a=="object"&&(a={}),o.ensure(a,n)})}export{m as k};
@@ -0,0 +1 @@
1
+ import{W as d,am as m,an as i,u as g,ao as l,ap as b,k as p,aq as k,ad as v}from"./BsQ08Wq_.js";function x(n=!1){const s=d,e=s.l.u;if(!e)return;let f=()=>k(s.s);if(n){let a=0,t={};const _=v(()=>{let c=!1;const r=s.s;for(const o in r)r[o]!==t[o]&&(t[o]=r[o],c=!0);return c&&a++,a});f=()=>p(_)}e.b.length&&m(()=>{u(s,f),l(e.b)}),i(()=>{const a=g(()=>e.m.map(b));return()=>{for(const t of a)typeof t=="function"&&t()}}),e.a.length&&i(()=>{u(s,f),l(e.a)})}function u(n,s){if(n.l.s)for(const e of n.l.s)p(e);s()}export{x as i};
@@ -1,4 +1,4 @@
1
- import{c as n,a as i}from"./CS53ooo0.js";import"./BA4Gucnq.js";import{f as m}from"./vtBo8kBV.js";import{s as l}from"./ChUctqXA.js";import{l as c,s as d}from"./BAJAS8BI.js";import{I as f}from"./DsxvjlCC.js";function y(t,o){const r=c(o,["children","$$slots","$$events","$$legacy"]);/**
1
+ import{c as n,a as i}from"./DIeahUKq.js";import"./CEWi_rGa.js";import{f as m}from"./BsQ08Wq_.js";import{s as l}from"./Cc7aBSsN.js";import{l as c,s as d}from"./D8G961Hm.js";import{I as f}from"./pd_p3yYy.js";function y(t,o){const r=c(o,["children","$$slots","$$events","$$legacy"]);/**
2
2
  * @license lucide-svelte v0.460.1 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -0,0 +1,2 @@
1
+ import{b9 as F,Q as M,v as K,X as Y,h as w,z as W,ba as m,bb as x,ah as rr,bc as tr,bd as ir,be as fr,k as sr,bf as er,bg as ar,bh as P,e as R,bi as ur,bj as or,S as cr,bk as nr,bl as lr}from"./BsQ08Wq_.js";import{i as vr,a as dr,d as br,c as hr,n as gr,b as Ar}from"./BK0ygNWX.js";function _r(r,i){var t=void 0,f;F(()=>{t!==(t=i())&&(f&&(M(f),f=null),t&&(f=K(()=>{Y(()=>t(r))})))})}function z(r){var i,t,f="";if(typeof r=="string"||typeof r=="number")f+=r;else if(typeof r=="object")if(Array.isArray(r)){var s=r.length;for(i=0;i<s;i++)r[i]&&(t=z(r[i]))&&(f&&(f+=" "),f+=t)}else for(t in r)r[t]&&(f&&(f+=" "),f+=t);return f}function Tr(){for(var r,i,t=0,f="",s=arguments.length;t<s;t++)(r=arguments[t])&&(i=z(r))&&(f&&(f+=" "),f+=i);return f}function wr(r){return typeof r=="object"?Tr(r):r??""}const H=[...`
2
+ \r\f \v\uFEFF`];function Er(r,i,t){var f=r==null?"":""+r;if(i&&(f=f?f+" "+i:i),t){for(var s of Object.keys(t))if(t[s])f=f?f+" "+s:s;else if(f.length)for(var e=s.length,u=0;(u=f.indexOf(s,u))>=0;){var n=u+e;(u===0||H.includes(f[u-1]))&&(n===f.length||H.includes(f[n]))?f=(u===0?"":f.substring(0,u))+f.substring(n+1):u=n}}return f===""?null:f}function V(r,i=!1){var t=i?" !important;":";",f="";for(var s of Object.keys(r)){var e=r[s];e!=null&&e!==""&&(f+=" "+s+": "+e+t)}return f}function k(r){return r[0]!=="-"||r[1]!=="-"?r.toLowerCase():r}function Nr(r,i){if(i){var t="",f,s;if(Array.isArray(i)?(f=i[0],s=i[1]):f=i,r){r=String(r).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var e=!1,u=0,n=!1,d=[];f&&d.push(...Object.keys(f).map(k)),s&&d.push(...Object.keys(s).map(k));var l=0,g=-1;const N=r.length;for(var v=0;v<N;v++){var a=r[v];if(n?a==="/"&&r[v-1]==="*"&&(n=!1):e?e===a&&(e=!1):a==="/"&&r[v+1]==="*"?n=!0:a==='"'||a==="'"?e=a:a==="("?u++:a===")"&&u--,!n&&e===!1&&u===0){if(a===":"&&g===-1)g=v;else if(a===";"||v===N-1){if(g!==-1){var E=k(r.substring(l,g).trim());if(!d.includes(E)){a!==";"&&v++;var T=r.substring(l,v).trim();t+=" "+T+";"}}l=v+1,g=-1}}}}return f&&(t+=V(f)),s&&(t+=V(s,!0)),t=t.trim(),t===""?null:t}return r==null?null:String(r)}function Sr(r,i,t,f,s,e){var u=r.__className;if(w||u!==t||u===void 0){var n=Er(t,f,e);(!w||n!==r.getAttribute("class"))&&(n==null?r.removeAttribute("class"):i?r.className=n:r.setAttribute("class",n)),r.__className=t}else if(e&&s!==e)for(var d in e){var l=!!e[d];(s==null||l!==!!s[d])&&r.classList.toggle(d,l)}return e}function C(r,i={},t,f){for(var s in t){var e=t[s];i[s]!==e&&(t[s]==null?r.style.removeProperty(s):r.style.setProperty(s,e,f))}}function Ir(r,i,t,f){var s=r.__style;if(w||s!==i){var e=Nr(i,f);(!w||e!==r.getAttribute("style"))&&(e==null?r.removeAttribute("style"):r.style.cssText=e),r.__style=i}else f&&(Array.isArray(f)?(C(r,t==null?void 0:t[0],f[0]),C(r,t==null?void 0:t[1],f[1],"important")):C(r,t,f));return f}function $(r,i,t=!1){if(r.multiple){if(i==null)return;if(!W(i))return m();for(var f of r.options)f.selected=i.includes(B(f));return}for(f of r.options){var s=B(f);if(x(s,i)){f.selected=!0;return}}(!t||i!==void 0)&&(r.selectedIndex=-1)}function pr(r){var i=new MutationObserver(()=>{$(r,r.__value)});i.observe(r,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),rr(()=>{i.disconnect()})}function B(r){return"__value"in r?r.__value:r.value}const p=Symbol("class"),O=Symbol("style"),J=Symbol("is custom element"),X=Symbol("is html"),Or=P?"link":"LINK",Lr=P?"input":"INPUT",Pr=P?"option":"OPTION",kr=P?"select":"SELECT";function Cr(r){if(w){var i=!1,t=()=>{if(!i){if(i=!0,r.hasAttribute("value")){var f=r.value;L(r,"value",null),r.value=f}if(r.hasAttribute("checked")){var s=r.checked;L(r,"checked",null),r.checked=s}}};r.__on_r=t,cr(t),nr()}}function Ur(r,i){var t=j(r);t.checked!==(t.checked=i??void 0)&&(r.checked=i)}function Mr(r,i){i?r.hasAttribute("selected")||r.setAttribute("selected",""):r.removeAttribute("selected")}function L(r,i,t,f){var s=j(r);w&&(s[i]=r.getAttribute(i),i==="src"||i==="srcset"||i==="href"&&r.nodeName===Or)||s[i]!==(s[i]=t)&&(i==="loading"&&(r[lr]=t),t==null?r.removeAttribute(i):typeof t!="string"&&q(r).includes(i)?r[i]=t:r.setAttribute(i,t))}function $r(r,i,t,f,s=!1,e=!1){if(w&&s&&r.nodeName===Lr){var u=r,n=u.type==="checkbox"?"defaultChecked":"defaultValue";n in t||Cr(u)}var d=j(r),l=d[J],g=!d[X];let v=w&&l;v&&R(!1);var a=i||{},E=r.nodeName===Pr;for(var T in i)T in t||(t[T]=null);t.class?t.class=wr(t.class):t[p]&&(t.class=null),t[O]&&(t.style??(t.style=null));var N=q(r);for(const o in t){let c=t[o];if(E&&o==="value"&&c==null){r.value=r.__value="",a[o]=c;continue}if(o==="class"){var I=r.namespaceURI==="http://www.w3.org/1999/xhtml";Sr(r,I,c,f,i==null?void 0:i[p],t[p]),a[o]=c,a[p]=t[p];continue}if(o==="style"){Ir(r,c,i==null?void 0:i[O],t[O]),a[o]=c,a[O]=t[O];continue}var A=a[o];if(!(c===A&&!(c===void 0&&r.hasAttribute(o)))){a[o]=c;var y=o[0]+o[1];if(y!=="$$")if(y==="on"){const _={},S="$$"+o;let h=o.slice(2);var U=Ar(h);if(vr(h)&&(h=h.slice(0,-7),_.capture=!0),!U&&A){if(c!=null)continue;r.removeEventListener(h,a[S],_),a[S]=null}if(U)dr(h,r,c),br([h]);else if(c!=null){let Q=function(Z){a[o].call(this,Z)};a[S]=hr(h,r,Q,_)}}else if(o==="style")L(r,o,c);else if(o==="autofocus")ur(r,!!c);else if(!l&&(o==="__value"||o==="value"&&c!=null))r.value=r.__value=c;else if(o==="selected"&&E)Mr(r,c);else{var b=o;g||(b=gr(b));var G=b==="defaultValue"||b==="defaultChecked";if(c==null&&!l&&!G)if(d[o]=null,b==="value"||b==="checked"){let _=r;const S=i===void 0;if(b==="value"){let h=_.defaultValue;_.removeAttribute(b),_.defaultValue=h,_.value=_.__value=S?h:null}else{let h=_.defaultChecked;_.removeAttribute(b),_.defaultChecked=h,_.checked=S?h:!1}}else r.removeAttribute(o);else G||N.includes(b)&&(l||typeof c!="string")?(r[b]=c,b in d&&(d[b]=or)):typeof c!="function"&&L(r,b,c)}}}return v&&R(!0),a}function Gr(r,i,t=[],f=[],s=[],e,u=!1,n=!1){tr(s,t,f,d=>{var l=void 0,g={},v=r.nodeName===kr,a=!1;if(F(()=>{var T=i(...d.map(sr)),N=$r(r,l,T,e,u,n);a&&v&&"value"in T&&$(r,T.value);for(let A of Object.getOwnPropertySymbols(g))T[A]||M(g[A]);for(let A of Object.getOwnPropertySymbols(T)){var I=T[A];A.description===er&&(!l||I!==l[A])&&(g[A]&&M(g[A]),g[A]=K(()=>_r(r,()=>I))),N[A]=I}l=N}),v){var E=r;Y(()=>{$(E,l.value,!0),pr(E)})}a=!0})}function j(r){return r.__attributes??(r.__attributes={[J]:r.nodeName.includes("-"),[X]:r.namespaceURI===ir})}var D=new Map;function q(r){var i=r.getAttribute("is")||r.nodeName,t=D.get(i);if(t)return t;D.set(i,t=[]);for(var f,s=r,e=Element.prototype;e!==s;){f=ar(s);for(var u in f)f[u].set&&t.push(u);s=fr(s)}return t}const Rr="rssany",Hr="https://github.com/joohw/rssany";function Vr(r,i){return fetch(r,i)}async function Br(r,i){const t=await fetch(r,i),s=(await t.text()).trim();if(!t.ok){const e=s.length>100?s.slice(0,100)+"…":s;throw new Error(`请求失败 ${t.status} ${t.statusText}${e?`:${e}`:""}`)}if(!s)throw new Error("API 返回空内容");try{const e=JSON.parse(s);if(e===null&&s==="null")throw new Error("API 返回 null");return e}catch(e){if(e instanceof Error&&e.message==="API 返回 null")throw e;const u=e instanceof SyntaxError?e.message:String(e),n=s.length>80?s.slice(0,80)+"…":s;throw new Error(`API 返回格式异常: ${u}。响应预览: ${n}`)}}export{Hr as G,Rr as P,Vr as a,Sr as b,Br as c,Ur as d,Ir as e,Gr as f,Tr as g,Cr as r,L as s};