rssany 0.2.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/README.md +22 -22
  2. package/app/plugins/builtin/agi-eval-evaluation.rssany.js +6 -7
  3. package/app/plugins/builtin/amii-research-talent.rssany.js +6 -7
  4. package/app/plugins/builtin/anthropic-research.rssany.js +6 -8
  5. package/app/plugins/builtin/appen-resources.rssany.js +6 -7
  6. package/app/plugins/builtin/baai-wudao-paper-article.rssany.js +9 -10
  7. package/app/plugins/builtin/baaidata-csdn.rssany.js +6 -7
  8. package/app/plugins/builtin/baidu-research.rssany.js +5 -8
  9. package/app/plugins/builtin/brightdata-blog.rssany.js +6 -11
  10. package/app/plugins/builtin/bytedance-seed-research.rssany.js +5 -7
  11. package/app/plugins/builtin/email.rssany.js +9 -9
  12. package/app/plugins/builtin/five-radar.rssany.js +9 -11
  13. package/app/plugins/builtin/flageval-news.rssany.js +5 -7
  14. package/app/plugins/builtin/google-deepmind-research.rssany.js +6 -8
  15. package/app/plugins/builtin/google-research-datasets.rssany.js +6 -8
  16. package/app/plugins/builtin/google-research.rssany.js +6 -8
  17. package/app/plugins/builtin/hacker-news-newest.rssany.js +7 -9
  18. package/app/plugins/builtin/harvard-dataverse.rssany.js +6 -8
  19. package/app/plugins/builtin/huaweicloud-bbs-blogs.rssany.js +7 -9
  20. package/app/plugins/builtin/lingowhale.rssany.js +7 -9
  21. package/app/plugins/builtin/meituan-tech.rssany.js +7 -10
  22. package/app/plugins/builtin/meta-ai-publications.rssany.js +6 -11
  23. package/app/plugins/builtin/mila-quebec.rssany.js +6 -8
  24. package/app/plugins/builtin/mit-csail-research.rssany.js +7 -9
  25. package/app/plugins/builtin/moonshot.rssany.js +6 -8
  26. package/app/plugins/builtin/opendatalab-news.rssany.js +6 -7
  27. package/app/plugins/builtin/opendatalab.rssany.js +5 -6
  28. package/app/plugins/builtin/opendrivelab-autonomous-driving.rssany.js +6 -7
  29. package/app/plugins/builtin/opendrivelab-embodiedai.rssany.js +7 -8
  30. package/app/plugins/builtin/opendrivelab-publications.rssany.js +6 -8
  31. package/app/plugins/builtin/opendrivelab.rssany.js +7 -8
  32. package/app/plugins/builtin/paperswithcode.rssany.js +6 -8
  33. package/app/plugins/builtin/pjlab-adg-publications.rssany.js +7 -9
  34. package/app/plugins/builtin/rss.rssany.js +11 -12
  35. package/app/plugins/builtin/selectdataset.rssany.js +6 -8
  36. package/app/plugins/builtin/sensetime-tech-achievements.rssany.js +7 -8
  37. package/app/plugins/builtin/supervisely-blog.rssany.js +6 -8
  38. package/app/plugins/builtin/theinformation-briefings.rssany.js +7 -13
  39. package/app/plugins/builtin/uci-ml-repository.rssany.js +6 -7
  40. package/app/plugins/builtin/venturebeat.rssany.js +7 -9
  41. package/app/plugins/builtin/worldlabs.rssany.js +6 -8
  42. package/app/plugins/builtin/x.rssany.js +7 -9
  43. package/app/plugins/builtin/xiaohongshu.rssany.js +119 -56
  44. package/app/plugins/builtin/zhipu-research.rssany.js +5 -8
  45. package/app/plugins/site.rssany.js +25 -26
  46. package/{statics → app/statics}/README.md +7 -7
  47. package/app/webui/build/200.html +51 -0
  48. package/{webui/build/_app/immutable/assets/0.BB88QFoe.css → app/webui/build/_app/immutable/assets/0.DsKls1SN.css} +1 -1
  49. package/app/webui/build/_app/immutable/assets/13.Qu_tY6H9.css +1 -0
  50. package/app/webui/build/_app/immutable/assets/14.DfMfOrS3.css +1 -0
  51. package/app/webui/build/_app/immutable/assets/16.Cw9oSkcO.css +1 -0
  52. package/app/webui/build/_app/immutable/assets/4.Di6rvlY-.css +1 -0
  53. package/{webui/build/_app/immutable/assets/SourcesList.yTBBi3_m.css → app/webui/build/_app/immutable/assets/SourcesList.D5Lso0bo.css} +1 -1
  54. package/{webui/build/_app/immutable/assets/homeFeedPanelStore.CSvlNcpm.css → app/webui/build/_app/immutable/assets/homeFeedPanelStore.CE6xTfsa.css} +1 -1
  55. package/app/webui/build/_app/immutable/chunks/6prdYIKP.js +1 -0
  56. package/{webui/build/_app/immutable/chunks/Xy_fhzQq.js → app/webui/build/_app/immutable/chunks/B-CeeY89.js} +1 -1
  57. package/app/webui/build/_app/immutable/chunks/B2cyTHdf.js +2 -0
  58. package/{webui/build/_app/immutable/chunks/DjNLq3TF.js → app/webui/build/_app/immutable/chunks/B6WG2Sd3.js} +1 -1
  59. package/app/webui/build/_app/immutable/chunks/BA4Gucnq.js +1 -0
  60. package/{webui/build/_app/immutable/chunks/xtNWTdbD.js → app/webui/build/_app/immutable/chunks/BAJAS8BI.js} +1 -1
  61. package/{webui/build/_app/immutable/chunks/Dt2CddFe.js → app/webui/build/_app/immutable/chunks/BkD3yAYe.js} +1 -1
  62. package/{webui/build/_app/immutable/chunks/DFuhmi31.js → app/webui/build/_app/immutable/chunks/C4uF_YIK.js} +1 -1
  63. package/{webui/build/_app/immutable/chunks/Dw782Tjs.js → app/webui/build/_app/immutable/chunks/C8umpVpB.js} +1 -1
  64. package/{webui/build/_app/immutable/chunks/BQqoDzLx.js → app/webui/build/_app/immutable/chunks/CFwxUBGi.js} +1 -1
  65. package/{webui/build/_app/immutable/chunks/tB7QMF3U.js → app/webui/build/_app/immutable/chunks/CGCMIfh3.js} +1 -1
  66. package/{webui/build/_app/immutable/chunks/BK3WtZwv.js → app/webui/build/_app/immutable/chunks/CS53ooo0.js} +1 -1
  67. package/app/webui/build/_app/immutable/chunks/CVW0ymE1.js +1 -0
  68. package/{webui/build/_app/immutable/chunks/B-OsL1Ct.js → app/webui/build/_app/immutable/chunks/ChUctqXA.js} +1 -1
  69. package/{webui/build/_app/immutable/chunks/D5GvRCv7.js → app/webui/build/_app/immutable/chunks/ClknbeNl.js} +1 -1
  70. package/{webui/build/_app/immutable/chunks/Bu9HsS-V.js → app/webui/build/_app/immutable/chunks/CqYSO3Dx.js} +1 -1
  71. package/{webui/build/_app/immutable/chunks/CWNeClHp.js → app/webui/build/_app/immutable/chunks/D6kzEN_P.js} +1 -1
  72. package/app/webui/build/_app/immutable/chunks/DAdOEnFb.js +1 -0
  73. package/{webui/build/_app/immutable/chunks/Cihqbfi5.js → app/webui/build/_app/immutable/chunks/DCEayuDt.js} +1 -1
  74. package/app/webui/build/_app/immutable/chunks/DJ2e04vK.js +36 -0
  75. package/{webui/build/_app/immutable/chunks/DEDI7Ecm.js → app/webui/build/_app/immutable/chunks/DL3Q5sfb.js} +1 -1
  76. package/{webui/build/_app/immutable/chunks/CVzlFH44.js → app/webui/build/_app/immutable/chunks/DVa8Y-mQ.js} +1 -1
  77. package/app/webui/build/_app/immutable/chunks/DkamXS6W.js +36 -0
  78. package/app/webui/build/_app/immutable/chunks/DoRPmqLn.js +2 -0
  79. package/app/webui/build/_app/immutable/chunks/DsxvjlCC.js +13 -0
  80. package/{webui/build/_app/immutable/chunks/Bp63qm3L.js → app/webui/build/_app/immutable/chunks/Dyvi1wBH.js} +1 -1
  81. package/{webui/build/_app/immutable/chunks/CmjOpds-.js → app/webui/build/_app/immutable/chunks/_qj9U-za.js} +1 -1
  82. package/app/webui/build/_app/immutable/chunks/vtBo8kBV.js +1 -0
  83. package/app/webui/build/_app/immutable/entry/app.RFfWi3_i.js +2 -0
  84. package/app/webui/build/_app/immutable/entry/start.DU_kyeGS.js +1 -0
  85. package/{webui/build/_app/immutable/nodes/0.I1lQdWMl.js → app/webui/build/_app/immutable/nodes/0.DK_mcVDm.js} +1 -1
  86. package/app/webui/build/_app/immutable/nodes/1.0PRrU2uQ.js +1 -0
  87. package/{webui/build/_app/immutable/nodes/10.CvfUsqsw.js → app/webui/build/_app/immutable/nodes/10.CsxzlUER.js} +1 -1
  88. package/app/webui/build/_app/immutable/nodes/11.D-PkhIRW.js +1 -0
  89. package/{webui/build/_app/immutable/nodes/12.DVFJuIWI.js → app/webui/build/_app/immutable/nodes/12.GGf-JLUY.js} +1 -1
  90. package/app/webui/build/_app/immutable/nodes/13.DWWcH27k.js +6 -0
  91. package/app/webui/build/_app/immutable/nodes/14.COwSLwDN.js +1 -0
  92. package/app/webui/build/_app/immutable/nodes/15.nDN_AHrs.js +1 -0
  93. package/app/webui/build/_app/immutable/nodes/16.zfSe93Ab.js +24 -0
  94. package/app/webui/build/_app/immutable/nodes/2.AJd2163d.js +1 -0
  95. package/app/webui/build/_app/immutable/nodes/3.CEVEHuaH.js +1 -0
  96. package/app/webui/build/_app/immutable/nodes/4.BT_N8pCh.js +2 -0
  97. package/{webui/build/_app/immutable/nodes/5.B6fR3n6J.js → app/webui/build/_app/immutable/nodes/5.BZScQ2CH.js} +1 -1
  98. package/{webui/build/_app/immutable/nodes/6.j2O5Mwjv.js → app/webui/build/_app/immutable/nodes/6.CkFk8X--.js} +1 -1
  99. package/app/webui/build/_app/immutable/nodes/7.CuQJk7te.js +1 -0
  100. package/{webui/build/_app/immutable/nodes/8.Bw_d63B_.js → app/webui/build/_app/immutable/nodes/8.DIavWJnU.js} +1 -1
  101. package/{webui/build/_app/immutable/nodes/9.pMMi5PP6.js → app/webui/build/_app/immutable/nodes/9.Db30M8x0.js} +1 -1
  102. package/app/webui/build/_app/version.json +1 -0
  103. package/app/webui/build/apple-touch-icon.png +0 -0
  104. package/app/webui/build/favicon.ico +0 -0
  105. package/app/webui/build/favicon.png +0 -0
  106. package/bin/rssany.js +226 -6
  107. package/dist/index.js +209 -152
  108. package/dist/index.js.map +1 -1
  109. package/package.json +22 -16
  110. package/scripts/dev.mjs +114 -0
  111. package/scripts/reset.mjs +1 -1
  112. package/init/config.json +0 -17
  113. package/init/sources.json +0 -353
  114. package/statics/401.html +0 -56
  115. package/statics/404.html +0 -12
  116. package/statics/image.png +0 -0
  117. package/webui/build/200.html +0 -49
  118. package/webui/build/_app/immutable/assets/13.BhO9zvFi.css +0 -1
  119. package/webui/build/_app/immutable/assets/14.CujIhjQK.css +0 -1
  120. package/webui/build/_app/immutable/assets/16.PP9XLDf7.css +0 -1
  121. package/webui/build/_app/immutable/assets/4.9wPHhVwv.css +0 -1
  122. package/webui/build/_app/immutable/chunks/5LVkDJzw.js +0 -1
  123. package/webui/build/_app/immutable/chunks/B2Q1a1-H.js +0 -2
  124. package/webui/build/_app/immutable/chunks/BbWUOQ_m.js +0 -1
  125. package/webui/build/_app/immutable/chunks/Bns1MuyM.js +0 -36
  126. package/webui/build/_app/immutable/chunks/DMWEh-Ek.js +0 -2
  127. package/webui/build/_app/immutable/chunks/bvuf_jZd.js +0 -36
  128. package/webui/build/_app/immutable/chunks/lk5LaiqA.js +0 -1
  129. package/webui/build/_app/immutable/chunks/mW5RwvnK.js +0 -13
  130. package/webui/build/_app/immutable/entry/app.BVkrDt5l.js +0 -2
  131. package/webui/build/_app/immutable/entry/start.D3Q-BMMd.js +0 -1
  132. package/webui/build/_app/immutable/nodes/1.BiQQfx2j.js +0 -1
  133. package/webui/build/_app/immutable/nodes/11.B4LHPNL6.js +0 -1
  134. package/webui/build/_app/immutable/nodes/13.nT3SOzEB.js +0 -1
  135. package/webui/build/_app/immutable/nodes/14.DfaAf0f8.js +0 -1
  136. package/webui/build/_app/immutable/nodes/15.CMzkX9OK.js +0 -1
  137. package/webui/build/_app/immutable/nodes/16.zPgTQNze.js +0 -24
  138. package/webui/build/_app/immutable/nodes/2.BYWOpaxy.js +0 -1
  139. package/webui/build/_app/immutable/nodes/3.B8Viux9S.js +0 -1
  140. package/webui/build/_app/immutable/nodes/4.DTSxpKm7.js +0 -2
  141. package/webui/build/_app/immutable/nodes/7.Bd2USIrl.js +0 -1
  142. package/webui/build/_app/version.json +0 -1
  143. /package/{webui → app/webui}/build/_app/env.js +0 -0
  144. /package/{webui → app/webui}/build/_app/immutable/assets/10.Dj8_pmut.css +0 -0
  145. /package/{webui → app/webui}/build/_app/immutable/assets/11.qYZMiTb0.css +0 -0
  146. /package/{webui → app/webui}/build/_app/immutable/assets/12.DfJcfUWl.css +0 -0
  147. /package/{webui → app/webui}/build/_app/immutable/assets/15.nNGjXhCQ.css +0 -0
  148. /package/{webui → app/webui}/build/_app/immutable/assets/5.B-dPiwB7.css +0 -0
  149. /package/{webui → app/webui}/build/_app/immutable/assets/6.B27N7pdA.css +0 -0
  150. /package/{webui → app/webui}/build/_app/immutable/assets/7.CrNxmd8B.css +0 -0
  151. /package/{webui → app/webui}/build/_app/immutable/assets/8.Cgji2b15.css +0 -0
  152. /package/{webui → app/webui}/build/_app/immutable/assets/9.BsCIAvn3.css +0 -0
  153. /package/{webui → app/webui}/build/_app/immutable/assets/BackToParentRoute.DGk-X5ow.css +0 -0
  154. /package/{webui → app/webui}/build/_app/immutable/chunks/BUApaBEI.js +0 -0
  155. /package/{webui → app/webui}/build/_app/immutable/chunks/Bfc47y5P.js +0 -0
  156. /package/{webui → app/webui}/build/_app/immutable/chunks/CBY2biv-.js +0 -0
  157. /package/{webui → app/webui}/build/_app/immutable/chunks/hp4PFHFv.js +0 -0
  158. /package/{webui → app/webui}/build/_app/immutable/nodes/17.BtYZF6FM.js +0 -0
  159. /package/{webui → app/webui}/build/_app/immutable/nodes/18.BIzqhTqv.js +0 -0
@@ -1,36 +0,0 @@
1
- var Cs=Object.defineProperty;var Yr=e=>{throw TypeError(e)};var Ss=(e,t,n)=>t in e?Cs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var it=(e,t,n)=>Ss(e,typeof t!="symbol"?t+"":t,n),Jo=(e,t,n)=>t.has(e)||Yr("Cannot "+n);var f=(e,t,n)=>(Jo(e,t,"read from private field"),n?n.call(e):t.get(e)),A=(e,t,n)=>t.has(e)?Yr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),j=(e,t,n,r)=>(Jo(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),B=(e,t,n)=>(Jo(e,t,"access private method"),n);import{c as pt,a as k,f as at,p as Ci,t as Xe}from"./BK3WtZwv.js";import"./lk5LaiqA.js";import{o as Si}from"./Bp63qm3L.js";import{aA as H,i as o,b4 as bt,a4 as Zo,an as he,a5 as d,at as ie,f as Y,aj as ne,au as se,aw as M,av as S,ax as C,aC as bn,aD as As,ay as zt,az as Tt,U as nt,u as Xt,z as G,aq as Qo}from"./BbWUOQ_m.js";import{f as ks,o as xn,d as zs,a as Ct,s as Lt,e as Fs,r as Es}from"./DMWEh-Ek.js";import{s as Ts,a as qr}from"./DjNLq3TF.js";import{i as _t}from"./Dt2CddFe.js";import{e as Go,i as Jr}from"./BQqoDzLx.js";import{e as _n,r as Ye,a as qe,c as Ds,s as $o}from"./B2Q1a1-H.js";import{b as Je}from"./Dw782Tjs.js";import{i as Ms}from"./CVzlFH44.js";import{g as Zr}from"./D5GvRCv7.js";import{p as tr}from"./Bu9HsS-V.js";import{s as Ze}from"./tB7QMF3U.js";import{R as Ls,M as Is,P as Ws,a as Hs,h as Qr,S as Ns,b as Rs,r as Bs,s as Vs,c as Ks}from"./Bns1MuyM.js";import{a as Yt}from"./CBY2biv-.js";import{e as Us,s as _e,C as Eo,f as js,g as Pn,u as Ai,h as Xs,i as Ys,j as qs,w as On,k as Js,l as Rt,m as K,n as Ge,F as Zs,S as Gr,E as Qs,o as Gs,T as $s,p as ta,q as ze,r as $r,t as ea,v as bo,x as na,y as oa,z as ki,A as ra,B as ia,G as sa,H as zi,J as Qe,I as Me,D as ti,P as go,a as ei,b as ni,c as oi,d as mo}from"./mW5RwvnK.js";import{P as aa}from"./CWNeClHp.js";import{s as Le}from"./B-OsL1Ct.js";import{p as z,s as Bt,r as cn,l as Ie}from"./xtNWTdbD.js";function la(e){return typeof e=="function"}function ri(e){return la(e)?e():e}var pe,tn,en,nn,ve,So,Ao,on;class ca{constructor(t,n={box:"border-box"}){A(this,pe,{width:0,height:0});A(this,tn,!1);A(this,en);A(this,nn);A(this,ve);A(this,So,H(()=>{var t;return(t=o(f(this,on)))==null||t(),this.getSize().width}));A(this,Ao,H(()=>{var t;return(t=o(f(this,on)))==null||t(),this.getSize().height}));A(this,on,H(()=>{const t=ri(f(this,nn));if(t)return ks(n=>{if(!f(this,ve))return;const r=new(f(this,ve)).ResizeObserver(i=>{j(this,tn,!0);for(const s of i){const a=f(this,en).box==="content-box"?s.contentBoxSize:s.borderBoxSize,l=Array.isArray(a)?a:[a];f(this,pe).width=l.reduce((h,m)=>Math.max(h,m.inlineSize),0),f(this,pe).height=l.reduce((h,m)=>Math.max(h,m.blockSize),0)}n()});return r.observe(t),()=>{j(this,tn,!1),r.disconnect()}})}));j(this,ve,n.window??Us),j(this,en,n),j(this,nn,t),j(this,pe,{width:0,height:0})}calculateSize(){const t=ri(f(this,nn));if(!t||!f(this,ve))return;const n=t.offsetWidth,r=t.offsetHeight;if(f(this,en).box==="border-box")return{width:n,height:r};const i=f(this,ve).getComputedStyle(t),s=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),a=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),l=parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth),h=parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),m=n-s-l,y=r-a-h;return{width:m,height:y}}getSize(){return f(this,tn)?f(this,pe):this.calculateSize()??f(this,pe)}get current(){var t;return(t=o(f(this,on)))==null||t(),this.getSize()}get width(){return o(f(this,So))}get height(){return o(f(this,Ao))}}pe=new WeakMap,tn=new WeakMap,en=new WeakMap,nn=new WeakMap,ve=new WeakMap,So=new WeakMap,Ao=new WeakMap,on=new WeakMap;const ua=["top","right","bottom","left"],Pe=Math.min,It=Math.max,xo=Math.round,yo=Math.floor,Gt=e=>({x:e,y:e}),da={left:"right",right:"left",bottom:"top",top:"bottom"};function ir(e,t,n){return It(e,Pe(t,n))}function oe(e,t){return typeof e=="function"?e(t):e}function re(e){return e.split("-")[0]}function un(e){return e.split("-")[1]}function wr(e){return e==="x"?"y":"x"}function br(e){return e==="y"?"height":"width"}function Qt(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function xr(e){return wr(Qt(e))}function fa(e,t,n){n===void 0&&(n=!1);const r=un(e),i=xr(e),s=br(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=_o(a)),[a,_o(a)]}function ha(e){const t=_o(e);return[sr(e),t,sr(t)]}function sr(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const ii=["left","right"],si=["right","left"],pa=["top","bottom"],va=["bottom","top"];function ga(e,t,n){switch(e){case"top":case"bottom":return n?t?si:ii:t?ii:si;case"left":case"right":return t?pa:va;default:return[]}}function ma(e,t,n,r){const i=un(e);let s=ga(re(e),n==="start",r);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(sr)))),s}function _o(e){const t=re(e);return da[t]+e.slice(t.length)}function ya(e){return{top:0,right:0,bottom:0,left:0,...e}}function Fi(e){return typeof e!="number"?ya(e):{top:e,right:e,bottom:e,left:e}}function Po(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ai(e,t,n){let{reference:r,floating:i}=e;const s=Qt(t),a=xr(t),l=br(a),h=re(t),m=s==="y",y=r.x+r.width/2-i.width/2,v=r.y+r.height/2-i.height/2,g=r[l]/2-i[l]/2;let p;switch(h){case"top":p={x:y,y:r.y-i.height};break;case"bottom":p={x:y,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:v};break;case"left":p={x:r.x-i.width,y:v};break;default:p={x:r.x,y:r.y}}switch(un(t)){case"start":p[a]-=g*(n&&m?-1:1);break;case"end":p[a]+=g*(n&&m?-1:1);break}return p}async function wa(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:a,elements:l,strategy:h}=e,{boundary:m="clippingAncestors",rootBoundary:y="viewport",elementContext:v="floating",altBoundary:g=!1,padding:p=0}=oe(t,e),w=Fi(p),O=l[g?v==="floating"?"reference":"floating":v],_=Po(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(O)))==null||n?O:O.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:m,rootBoundary:y,strategy:h})),D=v==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),F=await(s.isElement==null?void 0:s.isElement(T))?await(s.getScale==null?void 0:s.getScale(T))||{x:1,y:1}:{x:1,y:1},I=Po(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:D,offsetParent:T,strategy:h}):D);return{top:(_.top-I.top+w.top)/F.y,bottom:(I.bottom-_.bottom+w.bottom)/F.y,left:(_.left-I.left+w.left)/F.x,right:(I.right-_.right+w.right)/F.x}}const ba=50,xa=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,l=a.detectOverflow?a:{...a,detectOverflow:wa},h=await(a.isRTL==null?void 0:a.isRTL(t));let m=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:y,y:v}=ai(m,r,h),g=r,p=0;const w={};for(let P=0;P<s.length;P++){const O=s[P];if(!O)continue;const{name:_,fn:D}=O,{x:T,y:F,data:I,reset:E}=await D({x:y,y:v,initialPlacement:r,placement:g,strategy:i,middlewareData:w,rects:m,platform:l,elements:{reference:e,floating:t}});y=T??y,v=F??v,w[_]={...w[_],...I},E&&p<ba&&(p++,typeof E=="object"&&(E.placement&&(g=E.placement),E.rects&&(m=E.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):E.rects),{x:y,y:v}=ai(m,g,h)),P=-1)}return{x:y,y:v,placement:g,strategy:i,middlewareData:w}},_a=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:a,elements:l,middlewareData:h}=t,{element:m,padding:y=0}=oe(e,t)||{};if(m==null)return{};const v=Fi(y),g={x:n,y:r},p=xr(i),w=br(p),P=await a.getDimensions(m),O=p==="y",_=O?"top":"left",D=O?"bottom":"right",T=O?"clientHeight":"clientWidth",F=s.reference[w]+s.reference[p]-g[p]-s.floating[w],I=g[p]-s.reference[p],E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(m));let Q=E?E[T]:0;(!Q||!await(a.isElement==null?void 0:a.isElement(E)))&&(Q=l.floating[T]||s.floating[w]);const ft=F/2-I/2,R=Q/2-P[w]/2-1,$=Pe(v[_],R),ot=Pe(v[D],R),tt=$,rt=Q-P[w]-ot,X=Q/2-P[w]/2+ft,vt=ir(tt,X,rt),et=!h.arrow&&un(i)!=null&&X!==vt&&s.reference[w]/2-(X<tt?$:ot)-P[w]/2<0,J=et?X<tt?X-tt:X-rt:0;return{[p]:g[p]+J,data:{[p]:vt,centerOffset:X-vt-J,...et&&{alignmentOffset:J}},reset:et}}}),Pa=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:a,initialPlacement:l,platform:h,elements:m}=t,{mainAxis:y=!0,crossAxis:v=!0,fallbackPlacements:g,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:P=!0,...O}=oe(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const _=re(i),D=Qt(l),T=re(l)===l,F=await(h.isRTL==null?void 0:h.isRTL(m.floating)),I=g||(T||!P?[_o(l)]:ha(l)),E=w!=="none";!g&&E&&I.push(...ma(l,P,w,F));const Q=[l,...I],ft=await h.detectOverflow(t,O),R=[];let $=((r=s.flip)==null?void 0:r.overflows)||[];if(y&&R.push(ft[_]),v){const X=fa(i,a,F);R.push(ft[X[0]],ft[X[1]])}if($=[...$,{placement:i,overflows:R}],!R.every(X=>X<=0)){var ot,tt;const X=(((ot=s.flip)==null?void 0:ot.index)||0)+1,vt=Q[X];if(vt&&(!(v==="alignment"?D!==Qt(vt):!1)||$.every(V=>Qt(V.placement)===D?V.overflows[0]>0:!0)))return{data:{index:X,overflows:$},reset:{placement:vt}};let et=(tt=$.filter(J=>J.overflows[0]<=0).sort((J,V)=>J.overflows[1]-V.overflows[1])[0])==null?void 0:tt.placement;if(!et)switch(p){case"bestFit":{var rt;const J=(rt=$.filter(V=>{if(E){const Z=Qt(V.placement);return Z===D||Z==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(Z=>Z>0).reduce((Z,st)=>Z+st,0)]).sort((V,Z)=>V[1]-Z[1])[0])==null?void 0:rt[0];J&&(et=J);break}case"initialPlacement":et=l;break}if(i!==et)return{reset:{placement:et}}}return{}}}};function li(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ci(e){return ua.some(t=>e[t]>=0)}const Oa=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...s}=oe(e,t);switch(i){case"referenceHidden":{const a=await r.detectOverflow(t,{...s,elementContext:"reference"}),l=li(a,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:ci(l)}}}case"escaped":{const a=await r.detectOverflow(t,{...s,altBoundary:!0}),l=li(a,n.floating);return{data:{escapedOffsets:l,escaped:ci(l)}}}default:return{}}}}},Ei=new Set(["left","top"]);async function Ca(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=re(n),l=un(n),h=Qt(n)==="y",m=Ei.has(a)?-1:1,y=s&&h?-1:1,v=oe(t,e);let{mainAxis:g,crossAxis:p,alignmentAxis:w}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return l&&typeof w=="number"&&(p=l==="end"?w*-1:w),h?{x:p*y,y:g*m}:{x:g*m,y:p*y}}const Sa=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:a,middlewareData:l}=t,h=await Ca(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+h.x,y:s+h.y,data:{...h,placement:a}}}}},Aa=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:s}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:h={fn:_=>{let{x:D,y:T}=_;return{x:D,y:T}}},...m}=oe(e,t),y={x:n,y:r},v=await s.detectOverflow(t,m),g=Qt(re(i)),p=wr(g);let w=y[p],P=y[g];if(a){const _=p==="y"?"top":"left",D=p==="y"?"bottom":"right",T=w+v[_],F=w-v[D];w=ir(T,w,F)}if(l){const _=g==="y"?"top":"left",D=g==="y"?"bottom":"right",T=P+v[_],F=P-v[D];P=ir(T,P,F)}const O=h.fn({...t,[p]:w,[g]:P});return{...O,data:{x:O.x-n,y:O.y-r,enabled:{[p]:a,[g]:l}}}}}},ka=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:a}=t,{offset:l=0,mainAxis:h=!0,crossAxis:m=!0}=oe(e,t),y={x:n,y:r},v=Qt(i),g=wr(v);let p=y[g],w=y[v];const P=oe(l,t),O=typeof P=="number"?{mainAxis:P,crossAxis:0}:{mainAxis:0,crossAxis:0,...P};if(h){const T=g==="y"?"height":"width",F=s.reference[g]-s.floating[T]+O.mainAxis,I=s.reference[g]+s.reference[T]-O.mainAxis;p<F?p=F:p>I&&(p=I)}if(m){var _,D;const T=g==="y"?"width":"height",F=Ei.has(re(i)),I=s.reference[v]-s.floating[T]+(F&&((_=a.offset)==null?void 0:_[v])||0)+(F?0:O.crossAxis),E=s.reference[v]+s.reference[T]+(F?0:((D=a.offset)==null?void 0:D[v])||0)-(F?O.crossAxis:0);w<I?w=I:w>E&&(w=E)}return{[g]:p,[v]:w}}}},za=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:a,elements:l}=t,{apply:h=()=>{},...m}=oe(e,t),y=await a.detectOverflow(t,m),v=re(i),g=un(i),p=Qt(i)==="y",{width:w,height:P}=s.floating;let O,_;v==="top"||v==="bottom"?(O=v,_=g===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(_=v,O=g==="end"?"top":"bottom");const D=P-y.top-y.bottom,T=w-y.left-y.right,F=Pe(P-y[O],D),I=Pe(w-y[_],T),E=!t.middlewareData.shift;let Q=F,ft=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(ft=T),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(Q=D),E&&!g){const $=It(y.left,0),ot=It(y.right,0),tt=It(y.top,0),rt=It(y.bottom,0);p?ft=w-2*($!==0||ot!==0?$+ot:It(y.left,y.right)):Q=P-2*(tt!==0||rt!==0?tt+rt:It(y.top,y.bottom))}await h({...t,availableWidth:ft,availableHeight:Q});const R=await a.getDimensions(l.floating);return w!==R.width||P!==R.height?{reset:{rects:!0}}:{}}}};function To(){return typeof window<"u"}function dn(e){return Ti(e)?(e.nodeName||"").toLowerCase():"#document"}function Wt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function $t(e){var t;return(t=(Ti(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ti(e){return To()?e instanceof Node||e instanceof Wt(e).Node:!1}function Vt(e){return To()?e instanceof Element||e instanceof Wt(e).Element:!1}function ae(e){return To()?e instanceof HTMLElement||e instanceof Wt(e).HTMLElement:!1}function ui(e){return!To()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Wt(e).ShadowRoot}function ro(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Kt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!=="inline"&&i!=="contents"}function Fa(e){return/^(table|td|th)$/.test(dn(e))}function Do(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Ea=/transform|translate|scale|rotate|perspective|filter/,Ta=/paint|layout|strict|content/,Ae=e=>!!e&&e!=="none";let er;function _r(e){const t=Vt(e)?Kt(e):e;return Ae(t.transform)||Ae(t.translate)||Ae(t.scale)||Ae(t.rotate)||Ae(t.perspective)||!Pr()&&(Ae(t.backdropFilter)||Ae(t.filter))||Ea.test(t.willChange||"")||Ta.test(t.contain||"")}function Da(e){let t=Oe(e);for(;ae(t)&&!ln(t);){if(_r(t))return t;if(Do(t))return null;t=Oe(t)}return null}function Pr(){return er==null&&(er=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),er}function ln(e){return/^(html|body|#document)$/.test(dn(e))}function Kt(e){return Wt(e).getComputedStyle(e)}function Mo(e){return Vt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Oe(e){if(dn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ui(e)&&e.host||$t(e);return ui(t)?t.host:t}function Di(e){const t=Oe(e);return ln(t)?e.ownerDocument?e.ownerDocument.body:e.body:ae(t)&&ro(t)?t:Di(t)}function Cn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Di(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),a=Wt(i);if(s){const l=ar(a);return t.concat(a,a.visualViewport||[],ro(i)?i:[],l&&n?Cn(l):[])}else return t.concat(i,Cn(i,[],n))}function ar(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Mi(e){const t=Kt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ae(e),s=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=xo(n)!==s||xo(r)!==a;return l&&(n=s,r=a),{width:n,height:r,$:l}}function Or(e){return Vt(e)?e:e.contextElement}function $e(e){const t=Or(e);if(!ae(t))return Gt(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=Mi(t);let a=(s?xo(n.width):n.width)/r,l=(s?xo(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const Ma=Gt(0);function Li(e){const t=Wt(e);return!Pr()||!t.visualViewport?Ma:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function La(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Wt(e)?!1:t}function De(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=Or(e);let a=Gt(1);t&&(r?Vt(r)&&(a=$e(r)):a=$e(e));const l=La(s,n,r)?Li(s):Gt(0);let h=(i.left+l.x)/a.x,m=(i.top+l.y)/a.y,y=i.width/a.x,v=i.height/a.y;if(s){const g=Wt(s),p=r&&Vt(r)?Wt(r):r;let w=g,P=ar(w);for(;P&&r&&p!==w;){const O=$e(P),_=P.getBoundingClientRect(),D=Kt(P),T=_.left+(P.clientLeft+parseFloat(D.paddingLeft))*O.x,F=_.top+(P.clientTop+parseFloat(D.paddingTop))*O.y;h*=O.x,m*=O.y,y*=O.x,v*=O.y,h+=T,m+=F,w=Wt(P),P=ar(w)}}return Po({width:y,height:v,x:h,y:m})}function Lo(e,t){const n=Mo(e).scrollLeft;return t?t.left+n:De($t(e)).left+n}function Ii(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Lo(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function Ia(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",a=$t(r),l=t?Do(t.floating):!1;if(r===a||l&&s)return n;let h={scrollLeft:0,scrollTop:0},m=Gt(1);const y=Gt(0),v=ae(r);if((v||!v&&!s)&&((dn(r)!=="body"||ro(a))&&(h=Mo(r)),v)){const p=De(r);m=$e(r),y.x=p.x+r.clientLeft,y.y=p.y+r.clientTop}const g=a&&!v&&!s?Ii(a,h):Gt(0);return{width:n.width*m.x,height:n.height*m.y,x:n.x*m.x-h.scrollLeft*m.x+y.x+g.x,y:n.y*m.y-h.scrollTop*m.y+y.y+g.y}}function Wa(e){return Array.from(e.getClientRects())}function Ha(e){const t=$t(e),n=Mo(e),r=e.ownerDocument.body,i=It(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=It(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Lo(e);const l=-n.scrollTop;return Kt(r).direction==="rtl"&&(a+=It(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:a,y:l}}const di=25;function Na(e,t){const n=Wt(e),r=$t(e),i=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,l=0,h=0;if(i){s=i.width,a=i.height;const y=Pr();(!y||y&&t==="fixed")&&(l=i.offsetLeft,h=i.offsetTop)}const m=Lo(r);if(m<=0){const y=r.ownerDocument,v=y.body,g=getComputedStyle(v),p=y.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,w=Math.abs(r.clientWidth-v.clientWidth-p);w<=di&&(s-=w)}else m<=di&&(s+=m);return{width:s,height:a,x:l,y:h}}function Ra(e,t){const n=De(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=ae(e)?$e(e):Gt(1),a=e.clientWidth*s.x,l=e.clientHeight*s.y,h=i*s.x,m=r*s.y;return{width:a,height:l,x:h,y:m}}function fi(e,t,n){let r;if(t==="viewport")r=Na(e,n);else if(t==="document")r=Ha($t(e));else if(Vt(t))r=Ra(t,n);else{const i=Li(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Po(r)}function Wi(e,t){const n=Oe(e);return n===t||!Vt(n)||ln(n)?!1:Kt(n).position==="fixed"||Wi(n,t)}function Ba(e,t){const n=t.get(e);if(n)return n;let r=Cn(e,[],!1).filter(l=>Vt(l)&&dn(l)!=="body"),i=null;const s=Kt(e).position==="fixed";let a=s?Oe(e):e;for(;Vt(a)&&!ln(a);){const l=Kt(a),h=_r(a);!h&&l.position==="fixed"&&(i=null),(s?!h&&!i:!h&&l.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||ro(a)&&!h&&Wi(e,a))?r=r.filter(y=>y!==a):i=l,a=Oe(a)}return t.set(e,r),r}function Va(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?Do(t)?[]:Ba(t,this._c):[].concat(n),r],l=fi(t,a[0],i);let h=l.top,m=l.right,y=l.bottom,v=l.left;for(let g=1;g<a.length;g++){const p=fi(t,a[g],i);h=It(p.top,h),m=Pe(p.right,m),y=Pe(p.bottom,y),v=It(p.left,v)}return{width:m-v,height:y-h,x:v,y:h}}function Ka(e){const{width:t,height:n}=Mi(e);return{width:t,height:n}}function Ua(e,t,n){const r=ae(t),i=$t(t),s=n==="fixed",a=De(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const h=Gt(0);function m(){h.x=Lo(i)}if(r||!r&&!s)if((dn(t)!=="body"||ro(i))&&(l=Mo(t)),r){const p=De(t,!0,s,t);h.x=p.x+t.clientLeft,h.y=p.y+t.clientTop}else i&&m();s&&!r&&i&&m();const y=i&&!r&&!s?Ii(i,l):Gt(0),v=a.left+l.scrollLeft-h.x-y.x,g=a.top+l.scrollTop-h.y-y.y;return{x:v,y:g,width:a.width,height:a.height}}function nr(e){return Kt(e).position==="static"}function hi(e,t){if(!ae(e)||Kt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return $t(e)===n&&(n=n.ownerDocument.body),n}function Hi(e,t){const n=Wt(e);if(Do(e))return n;if(!ae(e)){let i=Oe(e);for(;i&&!ln(i);){if(Vt(i)&&!nr(i))return i;i=Oe(i)}return n}let r=hi(e,t);for(;r&&Fa(r)&&nr(r);)r=hi(r,t);return r&&ln(r)&&nr(r)&&!_r(r)?n:r||Da(e)||n}const ja=async function(e){const t=this.getOffsetParent||Hi,n=this.getDimensions,r=await n(e.floating);return{reference:Ua(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Xa(e){return Kt(e).direction==="rtl"}const Ya={convertOffsetParentRelativeRectToViewportRelativeRect:Ia,getDocumentElement:$t,getClippingRect:Va,getOffsetParent:Hi,getElementRects:ja,getClientRects:Wa,getDimensions:Ka,getScale:$e,isElement:Vt,isRTL:Xa};function Ni(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qa(e,t){let n=null,r;const i=$t(e);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,h){l===void 0&&(l=!1),h===void 0&&(h=1),s();const m=e.getBoundingClientRect(),{left:y,top:v,width:g,height:p}=m;if(l||t(),!g||!p)return;const w=yo(v),P=yo(i.clientWidth-(y+g)),O=yo(i.clientHeight-(v+p)),_=yo(y),T={rootMargin:-w+"px "+-P+"px "+-O+"px "+-_+"px",threshold:It(0,Pe(1,h))||1};let F=!0;function I(E){const Q=E[0].intersectionRatio;if(Q!==h){if(!F)return a();Q?a(!1,Q):r=setTimeout(()=>{a(!1,1e-7)},1e3)}Q===1&&!Ni(m,e.getBoundingClientRect())&&a(),F=!1}try{n=new IntersectionObserver(I,{...T,root:i.ownerDocument})}catch{n=new IntersectionObserver(I,T)}n.observe(e)}return a(!0),s}function Ja(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:h=!1}=r,m=Or(e),y=i||s?[...m?Cn(m):[],...t?Cn(t):[]]:[];y.forEach(_=>{i&&_.addEventListener("scroll",n,{passive:!0}),s&&_.addEventListener("resize",n)});const v=m&&l?qa(m,n):null;let g=-1,p=null;a&&(p=new ResizeObserver(_=>{let[D]=_;D&&D.target===m&&p&&t&&(p.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var T;(T=p)==null||T.observe(t)})),n()}),m&&!h&&p.observe(m),t&&p.observe(t));let w,P=h?De(e):null;h&&O();function O(){const _=De(e);P&&!Ni(P,_)&&n(),P=_,w=requestAnimationFrame(O)}return n(),()=>{var _;y.forEach(D=>{i&&D.removeEventListener("scroll",n),s&&D.removeEventListener("resize",n)}),v==null||v(),(_=p)==null||_.disconnect(),p=null,h&&cancelAnimationFrame(w)}}const Za=Sa,Qa=Aa,Ga=Pa,$a=za,tl=Oa,el=_a,nl=ka,ol=(e,t,n)=>{const r=new Map,i={platform:Ya,...n},s={...i.platform,_c:r};return xa(e,t,{...i,platform:s})};function ke(e){return typeof e=="function"?e():e}function Ri(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pi(e,t){const n=Ri(e);return Math.round(t*n)/n}function vi(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function rl(e){const t=e.whileElementsMounted,n=H(()=>ke(e.open)??!0),r=H(()=>ke(e.middleware)),i=H(()=>ke(e.transform)??!0),s=H(()=>ke(e.placement)??"bottom"),a=H(()=>ke(e.strategy)??"absolute"),l=H(()=>ke(e.sideOffset)??0),h=H(()=>ke(e.alignOffset)??0),m=e.reference;let y=bt(0),v=bt(0);const g=_e(null);let p=bt(Zo(o(a))),w=bt(Zo(o(s))),P=bt(Zo({})),O=bt(!1),_=!1,D=0;const T=H(()=>{const $=g.current?pi(g.current,o(y)):o(y),ot=g.current?pi(g.current,o(v)):o(v);return o(i)?{position:o(p),left:"0",top:"0",transform:`translate(${$}px, ${ot}px)`,...g.current&&Ri(g.current)>=1.5&&{willChange:"transform"}}:{position:o(p),left:`${$}px`,top:`${ot}px`}});let F;function I(){if(m.current===null||g.current===null)return;const $=m.current,ot=g.current,tt=++D;ol($,ot,{middleware:o(r),placement:o(s),strategy:o(a)}).then(rt=>{if(tt!==D||m.current!==$||g.current!==ot)return;if(il($)){d(P,{...o(P),hide:{...o(P).hide,referenceHidden:!0}},!0);return}if(!o(n)&&o(y)!==0&&o(v)!==0){const vt=Math.max(Math.abs(o(l)),Math.abs(o(h)),15);if(rt.x<=vt&&rt.y<=vt)return}d(y,rt.x,!0),d(v,rt.y,!0),d(p,rt.strategy,!0),d(w,rt.placement,!0),d(P,rt.middlewareData,!0),d(O,!0)})}function E(){typeof F=="function"&&(F(),F=void 0),D++}function Q(){if(E(),t===void 0){I();return}o(n)&&(m.current===null||g.current===null||(F=t(m.current,g.current,I)))}function ft(){!o(n)&&g.current===null&&d(O,!1)}function R(){return[o(r),o(s),o(a),o(l),o(h),o(n)]}return he(()=>{t===void 0&&o(n)&&I()}),he(Q),he(()=>{if(t!==void 0){if(R(),!o(n)){_=!1;return}if(!o(O)){_=!1;return}if(!_){_=!0;return}I()}}),he(ft),he(()=>E),{floating:g,reference:m,get strategy(){return o(p)},get placement(){return o(w)},get middlewareData(){return o(P)},get isPositioned(){return o(O)},get floatingStyles(){return o(T)},get update(){return I}}}function il(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const sl={top:"bottom",right:"left",bottom:"top",left:"right"},Cr=new Eo("Floating.Root"),gi=new Eo("Floating.Content"),Sr=new Eo("Floating.Root");class Oo{constructor(){it(this,"anchorNode",_e(null));it(this,"customAnchorNode",_e(null));it(this,"triggerNode",_e(null));he(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}static create(t=!1){return t?Sr.set(new Oo):Cr.set(new Oo)}}var Sn,An,kn,ko,zn,zo,Fn,En,Tn,Dn,Mn,Ln,In,Wn,Hn,Nn,Rn,Bn,Vn,Kn,Un,jn,Xn,Yn;const Fo=class Fo{constructor(t,n){it(this,"opts");it(this,"root");it(this,"contentRef",_e(null));it(this,"wrapperRef",_e(null));it(this,"arrowRef",_e(null));it(this,"contentAttachment",Pn(this.contentRef));it(this,"wrapperAttachment",Pn(this.wrapperRef));it(this,"arrowAttachment",Pn(this.arrowRef));it(this,"arrowId",_e(Ai()));A(this,Sn,H(()=>{if(typeof this.opts.style=="string")return Xs(this.opts.style);if(!this.opts.style)return{}}));A(this,An);A(this,kn,new ca(()=>this.arrowRef.current??void 0));A(this,ko,H(()=>{var t;return((t=f(this,kn))==null?void 0:t.width)??0}));A(this,zn,H(()=>{var t;return((t=f(this,kn))==null?void 0:t.height)??0}));A(this,zo,H(()=>{var t;return((t=this.opts.side)==null?void 0:t.current)+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:"")}));A(this,Fn,H(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]));A(this,En,H(()=>o(f(this,Fn)).length>0));A(this,Tn,H(()=>({padding:this.opts.collisionPadding.current,boundary:o(f(this,Fn)).filter(Ys),altBoundary:this.hasExplicitBoundaries})));A(this,Dn,bt(void 0));A(this,Mn,bt(void 0));A(this,Ln,bt(void 0));A(this,In,bt(void 0));A(this,Wn,H(()=>[Za({mainAxis:this.opts.sideOffset.current+o(f(this,zn)),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Qa({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?nl():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Ga({...this.detectOverflowOptions}),$a({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:r})=>{const{width:i,height:s}=t.reference;d(f(this,Dn),n,!0),d(f(this,Mn),r,!0),d(f(this,Ln),i,!0),d(f(this,In),s,!0)}}),this.arrowRef.current&&el({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),al({arrowWidth:o(f(this,ko)),arrowHeight:o(f(this,zn))}),this.opts.hideWhenDetached.current&&tl({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean)));it(this,"floating");A(this,Hn,H(()=>ll(this.floating.placement)));A(this,Nn,H(()=>cl(this.floating.placement)));A(this,Rn,H(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.x)??0}));A(this,Bn,H(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.y)??0}));A(this,Vn,H(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.centerOffset)!==0}));A(this,Kn,bt());A(this,Un,H(()=>sl[this.placedSide]));A(this,jn,H(()=>{var t,n,r;return{id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${(t=this.floating.middlewareData.transformOrigin)==null?void 0:t.x} ${(n=this.floating.middlewareData.transformOrigin)==null?void 0:n.y}`,"--bits-floating-available-width":`${o(f(this,Dn))}px`,"--bits-floating-available-height":`${o(f(this,Mn))}px`,"--bits-floating-anchor-width":`${o(f(this,Ln))}px`,"--bits-floating-anchor-height":`${o(f(this,In))}px`,...((r=this.floating.middlewareData.hide)==null?void 0:r.referenceHidden)&&{visibility:"hidden","pointer-events":"none"},...o(f(this,Sn))},dir:this.opts.dir.current,...this.wrapperAttachment}}));A(this,Xn,H(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:qs({...o(f(this,Sn))}),...this.contentAttachment})));A(this,Yn,H(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0})));this.opts=t,this.root=n,j(this,An,t.updatePositionStrategy),t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),On(()=>t.customAnchor.current,r=>{this.root.customAnchorNode.current=r}),this.floating=rl({strategy:()=>this.opts.strategy.current,placement:()=>o(f(this,zo)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>{var s;return Ja(...r,{animationFrame:((s=f(this,An))==null?void 0:s.current)==="always"})},open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),he(()=>{var r;this.floating.isPositioned&&((r=this.opts.onPlaced)==null||r.current())}),On(()=>this.contentRef.current,r=>{if(!r||!this.opts.enabled.current)return;const i=Js(r),s=i.requestAnimationFrame(()=>{if(this.contentRef.current!==r||!this.opts.enabled.current)return;const a=i.getComputedStyle(r).zIndex;a!==this.contentZIndex&&(this.contentZIndex=a)});return()=>{i.cancelAnimationFrame(s)}}),he(()=>{this.floating.floating.current=this.wrapperRef.current})}static create(t,n=!1){return n?gi.set(new Fo(t,Sr.get())):gi.set(new Fo(t,Cr.get()))}get hasExplicitBoundaries(){return o(f(this,En))}set hasExplicitBoundaries(t){d(f(this,En),t)}get detectOverflowOptions(){return o(f(this,Tn))}set detectOverflowOptions(t){d(f(this,Tn),t)}get middleware(){return o(f(this,Wn))}set middleware(t){d(f(this,Wn),t)}get placedSide(){return o(f(this,Hn))}set placedSide(t){d(f(this,Hn),t)}get placedAlign(){return o(f(this,Nn))}set placedAlign(t){d(f(this,Nn),t)}get arrowX(){return o(f(this,Rn))}set arrowX(t){d(f(this,Rn),t)}get arrowY(){return o(f(this,Bn))}set arrowY(t){d(f(this,Bn),t)}get cannotCenterArrow(){return o(f(this,Vn))}set cannotCenterArrow(t){d(f(this,Vn),t)}get contentZIndex(){return o(f(this,Kn))}set contentZIndex(t){d(f(this,Kn),t,!0)}get arrowBaseSide(){return o(f(this,Un))}set arrowBaseSide(t){d(f(this,Un),t)}get wrapperProps(){return o(f(this,jn))}set wrapperProps(t){d(f(this,jn),t)}get props(){return o(f(this,Xn))}set props(t){d(f(this,Xn),t)}get arrowStyle(){return o(f(this,Yn))}set arrowStyle(t){d(f(this,Yn),t)}};Sn=new WeakMap,An=new WeakMap,kn=new WeakMap,ko=new WeakMap,zn=new WeakMap,zo=new WeakMap,Fn=new WeakMap,En=new WeakMap,Tn=new WeakMap,Dn=new WeakMap,Mn=new WeakMap,Ln=new WeakMap,In=new WeakMap,Wn=new WeakMap,Hn=new WeakMap,Nn=new WeakMap,Rn=new WeakMap,Bn=new WeakMap,Vn=new WeakMap,Kn=new WeakMap,Un=new WeakMap,jn=new WeakMap,Xn=new WeakMap,Yn=new WeakMap;let lr=Fo;class Co{constructor(t,n){it(this,"opts");it(this,"root");this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=js(t.virtualEl.current):n.triggerNode=t.ref}static create(t,n=!1){return n?new Co(t,Sr.get()):new Co(t,Cr.get())}}function al(e){return{name:"transformOrigin",options:e,fn(t){var O,_,D;const{placement:n,rects:r,middlewareData:i}=t,a=((O=i.arrow)==null?void 0:O.centerOffset)!==0,l=a?0:e.arrowWidth,h=a?0:e.arrowHeight,[m,y]=Ar(n),v={start:"0%",center:"50%",end:"100%"}[y],g=(((_=i.arrow)==null?void 0:_.x)??0)+l/2,p=(((D=i.arrow)==null?void 0:D.y)??0)+h/2;let w="",P="";return m==="bottom"?(w=a?v:`${g}px`,P=`${-h}px`):m==="top"?(w=a?v:`${g}px`,P=`${r.floating.height+h}px`):m==="right"?(w=`${-h}px`,P=a?v:`${p}px`):m==="left"&&(w=`${r.floating.width+h}px`,P=a?v:`${p}px`),{data:{x:w,y:P}}}}}function Ar(e){const[t,n="center"]=e.split("-");return[t,n]}function ll(e){return Ar(e)[0]}function cl(e){return Ar(e)[1]}function ul(e,t){ie(t,!0);let n=z(t,"tooltip",3,!1);Oo.create(n());var r=pt(),i=Y(r);Rt(i,()=>t.children??ne),k(e,r),se()}function dl(e,t){ie(t,!0);let n=z(t,"tooltip",3,!1);Co.create({id:K(()=>t.id),virtualEl:K(()=>t.virtualEl),ref:t.ref},n());var r=pt(),i=Y(r);Rt(i,()=>t.children??ne),k(e,r),se()}function fl(e,t){ie(t,!0);let n=z(t,"side",3,"bottom"),r=z(t,"sideOffset",3,0),i=z(t,"align",3,"center"),s=z(t,"alignOffset",3,0),a=z(t,"arrowPadding",3,0),l=z(t,"avoidCollisions",3,!0),h=z(t,"collisionBoundary",19,()=>[]),m=z(t,"collisionPadding",3,0),y=z(t,"hideWhenDetached",3,!1),v=z(t,"onPlaced",3,()=>{}),g=z(t,"sticky",3,"partial"),p=z(t,"updatePositionStrategy",3,"optimized"),w=z(t,"strategy",3,"fixed"),P=z(t,"dir",3,"ltr"),O=z(t,"style",19,()=>({})),_=z(t,"wrapperId",19,Ai),D=z(t,"customAnchor",3,null),T=z(t,"tooltip",3,!1);const F=lr.create({side:K(()=>n()),sideOffset:K(()=>r()),align:K(()=>i()),alignOffset:K(()=>s()),id:K(()=>t.id),arrowPadding:K(()=>a()),avoidCollisions:K(()=>l()),collisionBoundary:K(()=>h()),collisionPadding:K(()=>m()),hideWhenDetached:K(()=>y()),onPlaced:K(()=>v()),sticky:K(()=>g()),updatePositionStrategy:K(()=>p()),strategy:K(()=>w()),dir:K(()=>P()),style:K(()=>O()),enabled:K(()=>t.enabled),wrapperId:K(()=>_()),customAnchor:K(()=>D())},T()),I=H(()=>Ge(F.wrapperProps,{style:{pointerEvents:"auto"}}));var E=pt(),Q=Y(E);Rt(Q,()=>t.content??ne,()=>({props:F.props,wrapperProps:o(I)})),k(e,E),se()}function hl(e,t){ie(t,!0),Si(()=>{var i;(i=t.onPlaced)==null||i.call(t)});var n=pt(),r=Y(n);Rt(r,()=>t.content??ne,()=>({props:{},wrapperProps:{}})),k(e,n),se()}function pl(e,t){let n=z(t,"isStatic",3,!1),r=cn(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var i=pt(),s=Y(i);{var a=h=>{hl(h,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},l=h=>{fl(h,Bt({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>r))};_t(s,h=>{n()?h(a):h(l,-1)})}k(e,i)}var vl=at("<!> <!>",1);function Bi(e,t){ie(t,!0);let n=z(t,"interactOutsideBehavior",3,"close"),r=z(t,"trapFocus",3,!0),i=z(t,"isValidEvent",3,()=>!1),s=z(t,"customAnchor",3,null),a=z(t,"isStatic",3,!1),l=z(t,"tooltip",3,!1),h=z(t,"contentPointerEvents",3,"auto"),m=cn(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip","contentPointerEvents"]);const y=H(()=>t.preventScroll??!0),v=H(()=>t.strategy??(o(y)?"fixed":"absolute"));pl(e,{get isStatic(){return a()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return o(v)},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get enabled(){return t.enabled},get tooltip(){return l()},content:(p,w)=>{let P=()=>w==null?void 0:w().props,O=()=>w==null?void 0:w().wrapperProps;var _=vl(),D=Y(_);{var T=E=>{Gr(E,{get preventScroll(){return o(y)}})},F=E=>{Gr(E,{get preventScroll(){return o(y)}})};_t(D,E=>{t.forceMount&&t.enabled?E(T):t.forceMount||E(F,1)})}var I=M(D,2);Zs(I,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return r()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(Q,ft)=>{let R=()=>ft==null?void 0:ft().props;Qs(Q,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:($,ot)=>{Gs($,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return i()},get enabled(){return t.enabled},get ref(){return t.ref},children:(rt,X)=>{let vt=()=>X==null?void 0:X().props;$s(rt,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(et,J)=>{var V=pt(),Z=Y(V);{let st=H(()=>({props:Ge(m,P(),vt(),R(),{style:{pointerEvents:h()}}),wrapperProps:O()}));Rt(Z,()=>t.popper??ne,()=>o(st))}k(et,V)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),k(p,_)},$$slots:{content:!0}}),se()}function gl(e,t){let n=z(t,"interactOutsideBehavior",3,"close"),r=z(t,"trapFocus",3,!0),i=z(t,"isValidEvent",3,()=>!1),s=z(t,"customAnchor",3,null),a=z(t,"isStatic",3,!1),l=cn(t,["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);var h=pt(),m=Y(h);{var y=v=>{Bi(v,Bt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return a()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>l))};_t(m,v=>{t.shouldRender&&v(y)})}k(e,h)}function ml(e,t){let n=z(t,"interactOutsideBehavior",3,"close"),r=z(t,"trapFocus",3,!0),i=z(t,"isValidEvent",3,()=>!1),s=z(t,"customAnchor",3,null),a=z(t,"isStatic",3,!1),l=cn(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);Bi(e,Bt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return a()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside}},()=>l,{forceMount:!0}))}function or(e,t){const[n,r]=e;let i=!1;const s=t.length;for(let a=0,l=s-1;a<s;l=a++){const[h,m]=t[a]??[0,0],[y,v]=t[l]??[0,0];m>=r!=v>=r&&n<=(y-h)*(r-m)/(v-m)+h&&(i=!i)}return i}function rr(e,t){return e[0]>=t.left&&e[0]<=t.right&&e[1]>=t.top&&e[1]<=t.bottom}function mi(e,t){const n=e.left+e.width/2,r=e.top+e.height/2,i=t.left+t.width/2,s=t.top+t.height/2,a=i-n,l=s-r;return Math.abs(a)>Math.abs(l)?a>0?"right":"left":l>0?"bottom":"top"}var ge,rn,sn,Jt,Dt,Fe,Ee,me,ye,q,wo,cr,ur,Vi,Ki,qt,dr,Ui,ji;class yl{constructor(t){A(this,q);A(this,ge);A(this,rn);A(this,sn);A(this,Jt,null);A(this,Dt,null);A(this,Fe,[]);A(this,Ee,null);A(this,me,null);A(this,ye,null);j(this,ge,t),j(this,rn,t.buffer??1);const n=t.transitIntentTimeout;j(this,sn,typeof n=="number"&&n>0?n:null),On([t.triggerNode,t.contentNode,t.enabled],([r,i,s])=>{if(!r||!i||!s){j(this,Ee,null),B(this,q,qt).call(this);return}f(this,Ee)&&f(this,Ee)!==r&&B(this,q,qt).call(this),j(this,Ee,r);const a=ta(r),l=g=>{B(this,q,Ki).call(this,[g.clientX,g.clientY],r,i)},h=g=>{var P,O;const p=g.relatedTarget;if(ze(p)&&i.contains(p))return;const w=((O=(P=f(this,ge)).ignoredTargets)==null?void 0:O.call(P))??[];ze(p)&&w.some(_=>_===p||_.contains(p))||(j(this,Fe,ze(p)&&w.length>0?w.filter(_=>p.contains(_)):[]),j(this,Jt,[g.clientX,g.clientY]),j(this,Dt,"content"),B(this,q,cr).call(this))},m=()=>{B(this,q,qt).call(this)},y=()=>{B(this,q,qt).call(this)},v=g=>{const p=g.relatedTarget;ze(p)&&r.contains(p)||(j(this,Jt,[g.clientX,g.clientY]),j(this,Dt,"trigger"),B(this,q,cr).call(this))};return[xn(a,"pointermove",l),xn(r,"pointerleave",h),xn(r,"pointerenter",m),xn(i,"pointerenter",y),xn(i,"pointerleave",v)].reduce((g,p)=>()=>{g(),p()},()=>{})})}}ge=new WeakMap,rn=new WeakMap,sn=new WeakMap,Jt=new WeakMap,Dt=new WeakMap,Fe=new WeakMap,Ee=new WeakMap,me=new WeakMap,ye=new WeakMap,q=new WeakSet,wo=function(){f(this,me)!==null&&(cancelAnimationFrame(f(this,me)),j(this,me,null))},cr=function(){B(this,q,wo).call(this),j(this,me,requestAnimationFrame(()=>{j(this,me,null),!(!f(this,Jt)||!f(this,Dt))&&(B(this,q,qt).call(this),f(this,ge).onPointerExit())}))},ur=function(){f(this,ye)!==null&&(clearTimeout(f(this,ye)),j(this,ye,null))},Vi=function(){f(this,sn)!==null&&(B(this,q,ur).call(this),j(this,ye,window.setTimeout(()=>{j(this,ye,null),!(!f(this,Jt)||!f(this,Dt))&&(B(this,q,qt).call(this),f(this,ge).onPointerExit())},f(this,sn))))},Ki=function(t,n,r){if(!f(this,Jt)||!f(this,Dt))return;B(this,q,wo).call(this),B(this,q,Vi).call(this);const i=n.getBoundingClientRect(),s=r.getBoundingClientRect();if(f(this,Dt)==="content"&&rr(t,s)){B(this,q,qt).call(this);return}if(f(this,Dt)==="trigger"&&rr(t,i)){B(this,q,qt).call(this);return}if(f(this,Dt)==="content"&&f(this,Fe).length>0)for(const y of f(this,Fe)){const v=y.getBoundingClientRect();if(rr(t,v))return;const g=mi(i,v),p=B(this,q,dr).call(this,i,v,g);if(p&&or(t,p))return}const a=mi(i,s),l=B(this,q,dr).call(this,i,s,a);if(l&&or(t,l))return;const h=f(this,Dt)==="content"?s:i,m=B(this,q,Ui).call(this,f(this,Jt),h,a,f(this,Dt));or(t,m)||(B(this,q,qt).call(this),f(this,ge).onPointerExit())},qt=function(){j(this,Jt,null),j(this,Dt,null),j(this,Fe,[]),B(this,q,wo).call(this),B(this,q,ur).call(this)},dr=function(t,n,r){const i=f(this,rn);switch(r){case"top":return[[Math.min(t.left,n.left)-i,t.top],[Math.min(t.left,n.left)-i,n.bottom],[Math.max(t.right,n.right)+i,n.bottom],[Math.max(t.right,n.right)+i,t.top]];case"bottom":return[[Math.min(t.left,n.left)-i,t.bottom],[Math.min(t.left,n.left)-i,n.top],[Math.max(t.right,n.right)+i,n.top],[Math.max(t.right,n.right)+i,t.bottom]];case"left":return[[t.left,Math.min(t.top,n.top)-i],[n.right,Math.min(t.top,n.top)-i],[n.right,Math.max(t.bottom,n.bottom)+i],[t.left,Math.max(t.bottom,n.bottom)+i]];case"right":return[[t.right,Math.min(t.top,n.top)-i],[n.left,Math.min(t.top,n.top)-i],[n.left,Math.max(t.bottom,n.bottom)+i],[t.right,Math.max(t.bottom,n.bottom)+i]]}},Ui=function(t,n,r,i){const s=f(this,rn)*4,[a,l]=t;switch(i==="trigger"?B(this,q,ji).call(this,r):r){case"top":return[[a-s,l+s],[a+s,l+s],[n.right+s,n.bottom],[n.right+s,n.top],[n.left-s,n.top],[n.left-s,n.bottom]];case"bottom":return[[a-s,l-s],[a+s,l-s],[n.right+s,n.top],[n.right+s,n.bottom],[n.left-s,n.bottom],[n.left-s,n.top]];case"left":return[[a+s,l-s],[a+s,l+s],[n.right,n.bottom+s],[n.left,n.bottom+s],[n.left,n.top-s],[n.right,n.top-s]];case"right":return[[a-s,l-s],[a-s,l+s],[n.left,n.bottom+s],[n.right,n.bottom+s],[n.right,n.top-s],[n.left,n.top-s]]}},ji=function(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}};const fr=sa({component:"popover",parts:["root","trigger","content","close","overlay"]}),kr=new Eo("Popover.Root");var qn,Jn,Zn,Qn,Gn,$n,to,we,be,Zt,fe;const zr=class zr{constructor(t){A(this,Zt);it(this,"opts");A(this,qn,bt(null));it(this,"contentPresence");A(this,Jn,bt(null));A(this,Zn,bt(null));it(this,"overlayPresence");A(this,Qn,bt(!1));A(this,Gn,bt(!1));A(this,$n,bt(!1));A(this,to,bt(0));A(this,we,null);A(this,be,null);this.opts=t,this.contentPresence=new $r({ref:K(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new $r({ref:K(()=>this.overlayNode),open:this.opts.open}),On(()=>this.opts.open.current,n=>{n||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,B(this,Zt,fe).call(this))})}static create(t){return kr.set(new zr(t))}get contentNode(){return o(f(this,qn))}set contentNode(t){d(f(this,qn),t,!0)}get triggerNode(){return o(f(this,Jn))}set triggerNode(t){d(f(this,Jn),t,!0)}get overlayNode(){return o(f(this,Zn))}set overlayNode(t){d(f(this,Zn),t,!0)}get openedViaHover(){return o(f(this,Qn))}set openedViaHover(t){d(f(this,Qn),t,!0)}get hasInteractedWithContent(){return o(f(this,Gn))}set hasInteractedWithContent(t){d(f(this,Gn),t,!0)}get hoverCooldown(){return o(f(this,$n))}set hoverCooldown(t){d(f(this,$n),t,!0)}get closeDelay(){return o(f(this,to))}set closeDelay(t){d(f(this,to),t,!0)}setDomContext(t){j(this,be,t)}toggleOpen(){B(this,Zt,fe).call(this),this.opts.open.current=!this.opts.open.current}handleClose(){B(this,Zt,fe).call(this),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){B(this,Zt,fe).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||(B(this,Zt,fe).call(this),this.closeDelay<=0?this.opts.open.current=!1:f(this,be)&&j(this,we,f(this,be).setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),j(this,we,null)},this.closeDelay))))}cancelDelayedClose(){B(this,Zt,fe).call(this)}markInteraction(){this.hasInteractedWithContent=!0,B(this,Zt,fe).call(this)}};qn=new WeakMap,Jn=new WeakMap,Zn=new WeakMap,Qn=new WeakMap,Gn=new WeakMap,$n=new WeakMap,to=new WeakMap,we=new WeakMap,be=new WeakMap,Zt=new WeakSet,fe=function(){f(this,we)!==null&&f(this,be)&&(f(this,be).clearTimeout(f(this,we)),j(this,we,null))};let hr=zr;var xe,an,Te,Ht,vr,gr,mr,Xi,eo;const Fr=class Fr{constructor(t,n){A(this,Ht);it(this,"opts");it(this,"root");it(this,"attachment");it(this,"domContext");A(this,xe,null);A(this,an,null);A(this,Te,bt(!1));A(this,eo,H(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":ra(this.root.opts.open.current),"data-state":ki(this.root.opts.open.current),"aria-controls":B(this,Ht,Xi).call(this),[fr.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=n,this.attachment=Pn(this.opts.ref,r=>this.root.triggerNode=r),this.domContext=new ea(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),On(()=>this.opts.closeDelay.current,r=>{this.root.closeDelay=r})}static create(t){return new Fr(t,kr.get())}onpointerenter(t){if(this.opts.disabled.current||!this.opts.openOnHover.current||bo(t)||(d(f(this,Te),!0),B(this,Ht,gr).call(this),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const n=this.opts.openDelay.current;n<=0?this.root.handleHoverOpen():j(this,xe,this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),j(this,xe,null)},n))}onpointerleave(t){this.opts.disabled.current||this.opts.openOnHover.current&&(bo(t)||(d(f(this,Te),!1),B(this,Ht,vr).call(this),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(B(this,Ht,mr).call(this),o(f(this,Te))&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}o(f(this,Te))&&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===na||t.key===oa)&&(t.preventDefault(),B(this,Ht,mr).call(this),this.root.toggleOpen())}get props(){return o(f(this,eo))}set props(t){d(f(this,eo),t)}};xe=new WeakMap,an=new WeakMap,Te=new WeakMap,Ht=new WeakSet,vr=function(){f(this,xe)!==null&&(this.domContext.clearTimeout(f(this,xe)),j(this,xe,null))},gr=function(){f(this,an)!==null&&(this.domContext.clearTimeout(f(this,an)),j(this,an,null))},mr=function(){B(this,Ht,vr).call(this),B(this,Ht,gr).call(this)},Xi=function(){var t,n;if(this.root.opts.open.current&&((t=this.root.contentNode)!=null&&t.id))return(n=this.root.contentNode)==null?void 0:n.id},eo=new WeakMap;let pr=Fr;var no,oo;const Er=class Er{constructor(t,n){it(this,"opts");it(this,"root");it(this,"attachment");it(this,"onInteractOutside",t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!ze(t.target))return;const n=t.target.closest(fr.selector("trigger"));if(!(n&&n===this.root.triggerNode)){if(this.opts.customAnchor.current){if(ze(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const r=document.querySelector(this.opts.customAnchor.current);if(r&&r.contains(t.target))return}}this.root.handleClose()}});it(this,"onEscapeKeydown",t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()});A(this,no,H(()=>({open:this.root.opts.open.current})));A(this,oo,H(()=>({id:this.opts.id.current,tabindex:-1,"data-state":ki(this.root.opts.open.current),[fr.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));it(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown});this.opts=t,this.root=n,this.attachment=Pn(this.opts.ref,r=>this.root.contentNode=r),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 yl({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 Er(t,kr.get())}onpointerdown(t){this.root.markInteraction()}onfocusin(t){const n=t.target;ze(n)&&ia(n)&&this.root.markInteraction()}onpointerenter(t){bo(t)||this.root.cancelDelayedClose()}onpointerleave(t){bo(t)}get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}get snippetProps(){return o(f(this,no))}set snippetProps(t){d(f(this,no),t)}get props(){return o(f(this,oo))}set props(t){d(f(this,oo),t)}};no=new WeakMap,oo=new WeakMap;let yr=Er;var wl=at("<div><div><!></div></div>"),bl=at("<div><div><!></div></div>");function yi(e,t){const n=Ci();ie(t,!0);let r=z(t,"ref",15,null),i=z(t,"id",19,()=>zi(n)),s=z(t,"forceMount",3,!1),a=z(t,"onOpenAutoFocus",3,Qe),l=z(t,"onCloseAutoFocus",3,Qe),h=z(t,"onEscapeKeydown",3,Qe),m=z(t,"onInteractOutside",3,Qe),y=z(t,"trapFocus",3,!0),v=z(t,"preventScroll",3,!1),g=z(t,"customAnchor",3,null),p=cn(t,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]);const w=yr.create({id:K(()=>i()),ref:K(()=>r(),E=>r(E)),onInteractOutside:K(()=>m()),onEscapeKeydown:K(()=>h()),customAnchor:K(()=>g())}),P=H(()=>Ge(p,w.props)),O=H(()=>y()&&w.shouldTrapFocus);function _(E){w.shouldTrapFocus||E.preventDefault(),a()(E)}var D=pt(),T=Y(D);{var F=E=>{ml(E,Bt(()=>o(P),()=>w.popperProps,{get ref(){return w.opts.ref},get enabled(){return w.root.opts.open.current},get id(){return i()},get trapFocus(){return o(O)},get preventScroll(){return v()},loop:!0,forceMount:!0,get customAnchor(){return g()},onOpenAutoFocus:_,get onCloseAutoFocus(){return l()},get shouldRender(){return w.shouldRender},popper:(ft,R)=>{let $=()=>R==null?void 0:R().props,ot=()=>R==null?void 0:R().wrapperProps;const tt=H(()=>Ge($(),{style:vi("popover")},{style:t.style}));var rt=pt(),X=Y(rt);{var vt=J=>{var V=pt(),Z=Y(V);{let st=H(()=>({props:o(tt),wrapperProps:ot(),...w.snippetProps}));Rt(Z,()=>t.child,()=>o(st))}k(J,V)},et=J=>{var V=wl();_n(V,()=>({...ot()}));var Z=S(V);_n(Z,()=>({...o(tt)}));var st=S(Z);Rt(st,()=>t.children??ne),C(Z),C(V),k(J,V)};_t(X,J=>{t.child?J(vt):J(et,-1)})}k(ft,rt)},$$slots:{popper:!0}}))},I=E=>{gl(E,Bt(()=>o(P),()=>w.popperProps,{get ref(){return w.opts.ref},get open(){return w.root.opts.open.current},get id(){return i()},get trapFocus(){return o(O)},get preventScroll(){return v()},loop:!0,forceMount:!1,get customAnchor(){return g()},onOpenAutoFocus:_,get onCloseAutoFocus(){return l()},get shouldRender(){return w.shouldRender},popper:(ft,R)=>{let $=()=>R==null?void 0:R().props,ot=()=>R==null?void 0:R().wrapperProps;const tt=H(()=>Ge($(),{style:vi("popover")},{style:t.style}));var rt=pt(),X=Y(rt);{var vt=J=>{var V=pt(),Z=Y(V);{let st=H(()=>({props:o(tt),wrapperProps:ot(),...w.snippetProps}));Rt(Z,()=>t.child,()=>o(st))}k(J,V)},et=J=>{var V=bl();_n(V,()=>({...ot()}));var Z=S(V);_n(Z,()=>({...o(tt)}));var st=S(Z);Rt(st,()=>t.children??ne),C(Z),C(V),k(J,V)};_t(X,J=>{t.child?J(vt):J(et,-1)})}k(ft,rt)},$$slots:{popper:!0}}))};_t(T,E=>{s()?E(F):s()||E(I,1)})}k(e,D),se()}var xl=at("<button><!></button>");function wi(e,t){const n=Ci();ie(t,!0);let r=z(t,"id",19,()=>zi(n)),i=z(t,"ref",15,null),s=z(t,"type",3,"button"),a=z(t,"disabled",3,!1),l=z(t,"openOnHover",3,!1),h=z(t,"openDelay",3,700),m=z(t,"closeDelay",3,300),y=cn(t,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]);const v=pr.create({id:K(()=>r()),ref:K(()=>i(),p=>i(p)),disabled:K(()=>!!a()),openOnHover:K(()=>l()),openDelay:K(()=>h()),closeDelay:K(()=>m())}),g=H(()=>Ge(y,v.props,{type:s()}));dl(e,{get id(){return r()},get ref(){return v.opts.ref},children:(p,w)=>{var P=pt(),O=Y(P);{var _=T=>{var F=pt(),I=Y(F);Rt(I,()=>t.child,()=>({props:o(g)})),k(T,F)},D=T=>{var F=xl();_n(F,()=>({...o(g)}));var I=S(F);Rt(I,()=>t.children??ne),C(F),k(T,F)};_t(O,T=>{t.child?T(_):T(D,-1)})}k(p,P)},$$slots:{default:!0}}),se()}function bi(e,t){ie(t,!0);let n=z(t,"open",15,!1),r=z(t,"onOpenChange",3,Qe),i=z(t,"onOpenChangeComplete",3,Qe);hr.create({open:K(()=>n(),s=>{n(s),r()(s)}),onOpenChangeComplete:K(()=>i())}),ul(e,{children:(s,a)=>{var l=pt(),h=Y(l);Rt(h,()=>t.children??ne),k(s,l)},$$slots:{default:!0}}),se()}function _l(e,t){const n=Ie(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 r=[["path",{d:"m3 16 4 4 4-4"}],["path",{d:"M7 20V4"}],["path",{d:"m21 8-4-4-4 4"}],["path",{d:"M17 4v16"}]];Me(e,Bt({name:"arrow-down-up"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=pt(),l=Y(a);Le(l,t,"default",{}),k(i,a)},$$slots:{default:!0}}))}function Pl(e,t){const n=Ie(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 r=[["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"}]];Me(e,Bt({name:"copy"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=pt(),l=Y(a);Le(l,t,"default",{}),k(i,a)},$$slots:{default:!0}}))}function Ol(e,t){const n=Ie(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 r=[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"19",cy:"12",r:"1"}],["circle",{cx:"5",cy:"12",r:"1"}]];Me(e,Bt({name:"ellipsis"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=pt(),l=Y(a);Le(l,t,"default",{}),k(i,a)},$$slots:{default:!0}}))}function Cl(e,t){const n=Ie(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 r=[["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"}]];Me(e,Bt({name:"external-link"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=pt(),l=Y(a);Le(l,t,"default",{}),k(i,a)},$$slots:{default:!0}}))}function Sl(e,t){const n=Ie(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 r=[["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"}]];Me(e,Bt({name:"pencil"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=pt(),l=Y(a);Le(l,t,"default",{}),k(i,a)},$$slots:{default:!0}}))}function xi(e,t){const n=Ie(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 r=[["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"}]];Me(e,Bt({name:"trash-2"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=pt(),l=Y(a);Le(l,t,"default",{}),k(i,a)},$$slots:{default:!0}}))}function Al(e,t){const n=Ie(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 r=[["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"}]];Me(e,Bt({name:"trash"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=pt(),l=Y(a);Le(l,t,"default",{}),k(i,a)},$$slots:{default:!0}}))}function _i(e){const t=e.trim();if(!t)return t;if(!/^https?:\/\//i.test(t))return t.toLowerCase();try{const n=new URL(t),r=n.protocol.toLowerCase(),i=n.host.toLowerCase();let s=n.pathname;return s.length>1&&s.endsWith("/")&&(s=s.slice(0,-1)),s=s.toLowerCase(),`${r}//${i}${s}${n.search}${n.hash}`}catch{return t.toLowerCase()}}function Pi(e){const t=e.trim();if(!/^https?:\/\//i.test(t))return null;try{return new URL(t).hostname.replace(/^www\./i,"")||null}catch{return null}}function Oi(e){return`/api/feed-favicon?domain=${encodeURIComponent(e)}`}var kl=at("<option> </option>"),zl=at('<p class="save-error svelte-1beoyzy"> </p>'),Fl=at('<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>'),El=at('<button type="button" class="btn-delete svelte-1beoyzy"><!> 删除</button>'),Tl=at('<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> <select class="field-input svelte-1beoyzy"></select></div></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">代理</span> <input class="field-input svelte-1beoyzy" type="text" placeholder="http://127.0.0.1:7890"/></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),Dl=at("<!> <!>",1),Ml=at('<p class="remove-dialog-target svelte-1beoyzy"> </p>'),Ll=at('<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),Il=at("<!> <!>",1),Wl=at('<span class="sort-menu-dir svelte-1beoyzy" aria-hidden="true"> </span>'),Hl=at('<button type="button"><span> </span> <!></button>'),Nl=at("<!> <!>",1),Rl=at('<div class="state svelte-1beoyzy">加载中…</div>'),Bl=at('<div class="state error svelte-1beoyzy"> </div>'),Vl=at('<div class="state svelte-1beoyzy">暂无信源。<button type="button" class="link-btn svelte-1beoyzy">点击添加</button>第一个信源。</div>'),Kl=at('<div class="state svelte-1beoyzy">无匹配结果</div>'),Ul=at('<img class="source-title-favicon svelte-1beoyzy" alt="" width="16" height="16" loading="lazy" decoding="async"/>'),jl=at('<span class="source-title-favicon-slot svelte-1beoyzy" aria-hidden="true"><!></span>'),Xl=at('<button type="button" class="more-menu-item svelte-1beoyzy" title="在本机服务端启动与抓取相同的有头 Chrome(共用浏览器数据目录与代理)"><!> <span>打开链接</span></button>'),Yl=at('<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),ql=at("<!> <!>",1),Jl=at('<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>'),Zl=at('<div class="list svelte-1beoyzy"></div>'),Ql=at('<!> <!> <!> <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 wc(e,t){ie(t,!1);const n=()=>qr(Bs,"$refToTaskId",i),r=()=>qr(tr,"$page",i),[i,s]=Ts(),a=G(),l=G(),h=G(),m=G();function y(c){return c==="alpha"||c==="parse"?"asc":"desc"}const v="1day",g=[{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 p(c){const u=(c==null?void 0:c.trim())??"";return g.some(b=>b.value===u)?u:v}function w(c){return Math.min(1,Math.max(0,c))}function P(c){const u=typeof c=="number"&&!Number.isNaN(c)?c:Number(String(c).trim());return Number.isFinite(u)?u<0||u>1?{ok:!1,message:"权重需在 0–1 之间"}:{ok:!0,value:u}:{ok:!1,message:"权重需为 0–1 之间的数字"}}let O=[],_=G([]),D=G(!0),T=G(""),F=G(""),I=G("weight"),E=G("desc"),Q=G(!1),ft="",R=G(null),$=G({}),ot=G(null),tt=G(null),rt=G(!1),X=G(null),vt=G(!1),et=G(null),J=G(!1),V=G(!1),Z=G(!1),st=G(""),Nt=G(""),We=G(""),He=G(""),fn=G(0),hn=G(v),Ne=G(""),Re=G(null),io=null;function so(c){const u=(c==null?void 0:c.trim())??"";if(!u)return u;const b=u.toLowerCase();return b.startsWith("http://")||b.startsWith("https://")||b.startsWith("imaps://")||b.startsWith("imap://")||b.startsWith("lingowhale://")?u:"https://"+u}function Yi(c){const u=c.toLowerCase();return u.includes("/feed")||u.includes("/rss")||u.includes("/atom")||u.endsWith(".xml")||u.endsWith(".rss")||u.endsWith(".atom")||u.includes("format=rss")||u.includes("format=atom")||u.includes("output=rss")}function Tr(c,u){const b=(c==null?void 0:c.trim())??"";if(!b)return null;const x=b.toLowerCase();if(x.startsWith("imaps://")||x.startsWith("imap://"))return"email";if(x.startsWith("lingowhale://"))return"plugin";const N=so(b);return!N.startsWith("http://")&&!N.startsWith("https://")?null:Yi(N)?"rss":u?"plugin":"llm"}function Io(c){return c==="rss"?"RSS/Atom":c==="plugin"?"插件":c==="llm"?"LLM":c==="email"?"邮箱":"—"}function qi(c){io&&clearTimeout(io);const u=c==null?void 0:c.trim();if(!u){d(Re,null);return}d(Re,null);const b=so(u);io=setTimeout(async()=>{io=null;try{const x=await Yt("/api/sources/plugin-match",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refs:[b]})});if(x.ok){const N=await x.json();so(o(Nt).trim())===b&&d(Re,N[b]??null)}}catch{so(o(Nt).trim())===b&&d(Re,null)}},400)}function Ji(c,u,b){const x=b==="desc"?-1:1;return[...c].sort((N,U)=>{let L=0;switch(u){case"weight":L=N.weight-U.weight;break;case"alpha":L=N.displayLabel.localeCompare(U.displayLabel,"zh-CN");break;case"parse":L=Io(N.parseHint).localeCompare(Io(U.parseHint),"zh-CN");break;case"latest":{const ht=N.latestAt?new Date(N.latestAt).getTime():NaN,Ft=U.latestAt?new Date(U.latestAt).getTime():NaN,St=Number.isFinite(ht),W=Number.isFinite(Ft);if(!St&&!W)L=0;else if(St)if(W)L=ht-Ft;else return-1;else return 1;break}case"count":L=N.count-U.count;break;case"week":L=N.weekCount-U.weekCount;break}return L!==0?x*L:N.displayLabel.localeCompare(U.displayLabel,"zh-CN")})}function Zi(c){o(I)===c?d(E,o(E)==="asc"?"desc":"asc"):(d(I,c),d(E,y(c)))}let Wo=G(!1);function Dr(c){return c==="alpha"?"标题":c==="weight"?"权重":c==="latest"?"最近拉取":c==="parse"?"解析":c==="week"?"近7天":"数量"}function Qi(c){Zi(c),d(Wo,!1)}const Gi=["alpha","weight","latest","parse","count","week"];async function Be(c){const u=(c==null?void 0:c.silent)===!0;u||d(D,!0),d(T,"");try{const[b,x]=await Promise.all([Yt("/api/sources/raw"),Yt("/api/sources/stats")]),N=await b.text(),U=JSON.parse(N||"{}");O=Array.isArray(U.sources)?U.sources:[];const L=x.ok?await x.json():[],ht=new Map;for(const W of L){const lt=_i(W.source_url),dt=ht.get(lt),ut=W.latest_at??null,mt=typeof W.count_7d=="number"&&Number.isFinite(W.count_7d)?W.count_7d:0;dt?ht.set(lt,{count:dt.count+W.count,weekCount:dt.weekCount+mt,latestAt:dt.latestAt?ut?dt.latestAt>=ut?dt.latestAt:ut:dt.latestAt:ut}):ht.set(lt,{count:W.count,weekCount:mt,latestAt:ut})}const Ft=O.filter(W=>{var lt;return(lt=W==null?void 0:W.ref)==null?void 0:lt.trim()}).map(W=>W.ref.trim());let St={};if(Ft.length>0)try{const W=await Yt("/api/sources/plugin-match",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refs:Ft})});W.ok&&(St=await W.json())}catch{}d(_,O.filter(W=>{var lt;return(lt=W==null?void 0:W.ref)==null?void 0:lt.trim()}).map(W=>{var Mt,Et;const lt=W.ref.trim(),dt=ht.get(_i(lt))??{count:0,weekCount:0,latestAt:null},ut=St[lt]??null,mt=(Mt=W.proxy)==null?void 0:Mt.trim();return{ref:lt,displayLabel:W.label&&W.label.trim()||lt,description:(Et=W.description)==null?void 0:Et.trim(),count:(dt==null?void 0:dt.count)??0,weekCount:(dt==null?void 0:dt.weekCount)??0,latestAt:(dt==null?void 0:dt.latestAt)??null,pluginId:ut,weight:W.weight??0,...mt?{proxy:mt}:{},parseHint:Tr(lt,ut)}}))}catch(b){d(T,b instanceof Error?b.message:String(b)),u||d(_,[])}finally{u||d(D,!1)}}async function Ho(c){return(await Yt("/api/sources/raw",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({sources:c})})).ok}function Mr(){d(V,!1),d(Nt,""),d(We,""),d(He,""),d(fn,0),d(hn,v),d(Ne,""),d(st,""),d(J,!0)}function $i(c){const u=O.find(b=>b.ref===c.ref);d(V,!0),ft=c.ref,d(Nt,c.ref),d(We,(u==null?void 0:u.label)??""),d(He,(u==null?void 0:u.description)??""),d(fn,w((u==null?void 0:u.weight)??0)),d(hn,p(u==null?void 0:u.refresh)),d(Ne,(u==null?void 0:u.proxy)??""),d(st,""),d(Q,!1),d(J,!0)}function Lr(){d(J,!1),d(Q,!1)}async function ts(){const c=o(Nt).trim();if(!c){d(st,"ref 不能为空");return}const u=P(o(fn));if(!u.ok){d(st,u.message);return}d(Z,!0),d(st,"");try{const b=u.value,x={ref:c,...o(We).trim()?{label:o(We).trim()}:{},...o(He).trim()?{description:o(He).trim()}:{},refresh:o(hn),...o(Ne).trim()?{proxy:o(Ne).trim()}:{},...b!==0?{weight:b}:{}};let N;if(o(V)){if(c!==ft&&O.some(L=>L.ref===c)){d(st,"该 ref 已存在");return}N=O.map(L=>L.ref===ft?{...L,...x}:L)}else{if(O.some(L=>L.ref===c)){d(st,"该 ref 已存在");return}N=[...O,x]}if(!await Ho(N)){d(st,"保存失败,请重试");return}Lr(),await Be({silent:!0})}catch(b){d(st,b instanceof Error?b.message:String(b))}finally{d(Z,!1)}}async function Ir(c){try{const u=await Yt("/api/items/by-source?source_url="+encodeURIComponent(c),{method:"DELETE"}),b=await u.json();return!u.ok||!b.ok?{ok:!1,message:b.message??"删除信源条目失败"}:{ok:!0,deleted:Number(b.deleted??0)}}catch(u){return{ok:!1,message:u instanceof Error?u.message:"删除信源条目失败"}}}async function es(){const c=ft.trim();if(!c){d(st,"缺少信源 ref");return}d(Z,!0),d(st,"");try{const u=await Ir(c);if(!u.ok){d(st,u.message);return}const b=O.filter(N=>N.ref!==c);if(!await Ho(b)){d(st,"删除信源失败,请重试");return}Lr(),await Be({silent:!0})}catch(u){d(st,u instanceof Error?u.message:String(u))}finally{d(Z,!1)}}async function ns(c){for(let u=0;u<120;u++){const b=await Yt(`/api/tasks/${c}`);if(!b.ok)return{ok:!1,error:"轮询失败"};const x=await b.json();if(x.status==="done")return{ok:!0};if(x.status==="error")return{ok:!1,error:x.error??"拉取失败"};await new Promise(N=>setTimeout(N,800))}return{ok:!1,error:"超时"}}async function os(c,u){if(u==null||u.preventDefault(),u==null||u.stopPropagation(),!(c in n()))try{const b=await Yt("/api/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"source-pull",ref:c})}),x=await b.json();if(!b.ok||!x.taskId)return;Vs(c,x.taskId),(await ns(x.taskId)).ok&&await Be({silent:!0})}catch{}finally{Ks(c)}}function rs(c){const u=c.trim().toLowerCase();return u.startsWith("http://")||u.startsWith("https://")}function is(c){const u=new URL("/rss",typeof window<"u"?window.location.origin:"http://127.0.0.1");return u.searchParams.set("ref",c),u.href}async function ss(c,u){u==null||u.preventDefault(),u==null||u.stopPropagation();try{const b=await Yt("/api/sources/open-browser",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:c})}),x=await b.json();b.ok&&x.ok?Ze(x.message??"已在爬虫浏览器中打开","success"):Ze(x.message??"打开失败","error")}catch{Ze("打开失败","error")}finally{d(R,null)}}async function as(c){const u=is(c);try{await navigator.clipboard.writeText(u)}catch{try{const b=document.createElement("textarea");b.value=u,b.style.position="fixed",b.style.left="-9999px",document.body.appendChild(b),b.select(),document.execCommand("copy"),document.body.removeChild(b)}catch{}}d(R,null)}function ls(c){d(rt,c),c||d(X,null)}function cs(c){o(tt)||(d(X,c),d(rt,!0),d(R,null))}async function us(){var u;const c=o(X);if(!(!c||o(tt))){d(rt,!1),d(X,null),d(tt,c);try{const b=await Ir(c);if(!b.ok){Ze(b.message,"error");return}const x=O.filter(U=>U.ref!==c);if(!await Ho(x)){Ze("移除失败,请重试","error");return}Zr(tr).url.pathname==="/"?Qr.update(U=>(U==null?void 0:U.ref)===c?null:U):((u=o(et))==null?void 0:u.ref)===c&&(d(vt,!1),d(et,null)),await Be({silent:!0})}catch(b){Ze(b instanceof Error?b.message:"移除失败","error")}finally{d(tt,null)}}}async function ds(c){if(!o(ot)&&confirm("确定要清空该信源下的所有条目吗?此操作不可恢复。")){d(ot,c),d(R,null);try{const u=await Yt("/api/items/by-source?source_url="+encodeURIComponent(c),{method:"DELETE"}),b=await u.json();u.ok&&b.ok?await Be({silent:!0}):u.ok||alert(b.message??"清空失败")}catch(u){alert(u instanceof Error?u.message:"清空失败")}finally{d(ot,null)}}}function Wr(c){var u,b;if(Zr(tr).url.pathname==="/"){Qr.set({ref:c.ref,displayLabel:c.displayLabel,...(u=c.description)!=null&&u.trim()?{description:c.description.trim()}:{},...(b=c.proxy)!=null&&b.trim()?{proxy:c.proxy.trim()}:{},...c.parseHint!=null?{parseHint:c.parseHint}:{}});return}d(et,c),d(vt,!0)}function fs(c,u){const b=u.target;b&&(b.closest("a[href], button")||Wr(c))}function hs(c,u){u.key!=="Enter"&&u.key!==" "||(u.preventDefault(),Wr(c))}Si(Be),bn(()=>(o(X),o(_)),()=>{var c;d(a,o(X)!=null?((c=o(_).find(u=>u.ref===o(X)))==null?void 0:c.displayLabel)??o(X):"")}),bn(()=>o(Nt),()=>{o(Nt),qi(o(Nt))}),bn(()=>(o(Nt),o(Re)),()=>{d(l,Tr(o(Nt),o(Re)))}),bn(()=>o(l),()=>{d(h,o(l)??"llm")}),bn(()=>(o(F),o(_),o(I),o(E)),()=>{d(m,Ji(o(F).trim()?o(_).filter(c=>{var b;const u=o(F).trim().toLowerCase();return c.displayLabel.toLowerCase().includes(u)||(((b=c.description)==null?void 0:b.toLowerCase().includes(u))??!1)||c.ref.toLowerCase().includes(u)||Io(c.parseHint).toLowerCase().includes(u)}):o(_),o(I),o(E)))}),As(),Ms();var Hr=Ql(),Nr=Y(Hr);ti(Nr,{get open(){return o(J)},onOpenChange:c=>{d(J,c),c||d(Q,!1)},children:(c,u)=>{go(c,{children:(b,x)=>{var N=Dl(),U=Y(N);ei(U,{class:"modal-overlay"});var L=M(U,2);ni(L,{class:"modal","aria-describedby":void 0,children:(ht,Ft)=>{var St=Tl(),W=Y(St),lt=S(W);oi(lt,{class:"modal-title",children:(ct,Pt)=>{zt();var Ot=Xe();Tt(()=>Lt(Ot,o(V)?"编辑信源":"添加信源")),k(ct,Ot)},$$slots:{default:!0}});var dt=M(lt,2);mo(dt,{class:"modal-close","aria-label":"关闭",children:(ct,Pt)=>{zt();var Ot=Xe("✕");k(ct,Ot)},$$slots:{default:!0}}),C(W);var ut=M(W,2),mt=S(ut),Mt=M(S(mt),2),Et=S(Mt);Ye(Et),C(Mt),C(mt);var xt=M(mt,2),At=M(S(xt),2),yt=S(At);let gt;var wt=S(yt);Ls(wt,{size:14,class:"parse-hint-icon"}),zt(2),C(yt);var kt=M(yt,2);let Ut;var Ko=S(kt);Is(Ko,{size:14,class:"parse-hint-icon"}),zt(2),C(kt);var le=M(kt,2);let Uo;var ao=S(le);Ws(ao,{size:14,class:"parse-hint-icon"}),zt(2),C(le);var jt=M(le,2);let pn;var lo=S(jt);Hs(lo,{size:14,class:"parse-hint-icon"}),zt(2),C(jt),C(At),C(xt);var Ve=M(xt,2),co=M(S(Ve),2);Ye(co),C(Ve);var ce=M(Ve,2),uo=M(S(ce),2);Ye(uo),C(ce);var ue=M(ce,2),vn=S(ue),gn=M(S(vn),2);Ye(gn),C(vn);var fo=M(vn,2),mn=M(S(fo),2);Go(mn,5,()=>g,Jr,(ct,Pt)=>{var Ot=kl(),qo=S(Ot,!0);C(Ot);var vo={};Tt(()=>{Lt(qo,(o(Pt),nt(()=>o(Pt).label))),vo!==(vo=(o(Pt),nt(()=>o(Pt).value)))&&(Ot.value=(Ot.__value=(o(Pt),nt(()=>o(Pt).value)))??"")}),k(ct,Ot)}),C(mn),C(fo),C(ue);var te=M(ue,2),yn=M(S(te),2);Ye(yn),C(te);var ho=M(te,2);{var jo=ct=>{var Pt=zl(),Ot=S(Pt,!0);C(Pt),Tt(()=>Lt(Ot,o(st))),k(ct,Pt)};_t(ho,ct=>{o(st)&&ct(jo)})}C(ut);var Ce=M(ut,2),Ke=S(Ce),po=S(Ke);{var Xo=ct=>{var Pt=pt(),Ot=Y(Pt);{var qo=je=>{var ee=Fl(),wn=M(S(ee),2),Os=M(wn,2);C(ee),Tt(()=>wn.disabled=o(Z)),Ct("click",wn,es),Ct("click",Os,()=>d(Q,!1)),k(je,ee)},vo=je=>{var ee=El(),wn=S(ee);xi(wn,{size:13}),zt(),C(ee),Tt(()=>ee.disabled=o(Z)),Ct("click",ee,()=>d(Q,!0)),k(je,ee)};_t(Ot,je=>{o(Q)?je(qo):je(vo,-1)})}k(ct,Pt)};_t(po,ct=>{o(V)&&ct(Xo)})}C(Ke);var de=M(Ke,2),Se=S(de);mo(Se,{class:"btn-cancel",get disabled(){return o(Z)},children:(ct,Pt)=>{zt();var Ot=Xe("取消");k(ct,Ot)},$$slots:{default:!0}});var Ue=M(Se,2),Yo=S(Ue,!0);C(Ue),C(de),C(Ce),Tt(()=>{gt=qe(yt,1,"parse-hint svelte-1beoyzy",null,gt,{active:o(h)==="rss"}),Ut=qe(kt,1,"parse-hint svelte-1beoyzy",null,Ut,{active:o(h)==="email"}),Uo=qe(le,1,"parse-hint svelte-1beoyzy",null,Uo,{active:o(h)==="plugin"}),pn=qe(jt,1,"parse-hint svelte-1beoyzy",null,pn,{active:o(h)==="llm"}),Ue.disabled=o(Z),Lt(Yo,o(Z)?"保存中…":"保存")}),Je(Et,()=>o(Nt),ct=>d(Nt,ct)),Je(co,()=>o(We),ct=>d(We,ct)),Je(uo,()=>o(He),ct=>d(He,ct)),Je(gn,()=>o(fn),ct=>d(fn,ct)),Ds(mn,()=>o(hn),ct=>d(hn,ct)),Je(yn,()=>o(Ne),ct=>d(Ne,ct)),Ct("click",Ue,ts),k(ht,St)},$$slots:{default:!0}}),k(b,N)},$$slots:{default:!0}})},$$slots:{default:!0}});var Rr=M(Nr,2);ti(Rr,{get open(){return o(rt)},onOpenChange:ls,children:(c,u)=>{go(c,{children:(b,x)=>{var N=Il(),U=Y(N);ei(U,{class:"modal-overlay"});var L=M(U,2);ni(L,{class:"modal","aria-describedby":"remove-source-desc",children:(ht,Ft)=>{var St=Ll(),W=Y(St),lt=S(W);oi(lt,{class:"modal-title",children:(yt,gt)=>{zt();var wt=Xe("移除信源");k(yt,wt)},$$slots:{default:!0}});var dt=M(lt,2);mo(dt,{class:"modal-close","aria-label":"关闭",children:(yt,gt)=>{zt();var wt=Xe("✕");k(yt,wt)},$$slots:{default:!0}}),C(W);var ut=M(W,2),mt=M(S(ut),2);{var Mt=yt=>{var gt=Ml(),wt=S(gt,!0);C(gt),Tt(()=>Lt(wt,o(a))),k(yt,gt)};_t(mt,yt=>{o(a)&&yt(Mt)})}C(ut);var Et=M(ut,2),xt=S(Et);{let yt=Xt(()=>!!o(tt));mo(xt,{class:"btn-cancel",get disabled(){return o(yt)},children:(gt,wt)=>{zt();var kt=Xe("取消");k(gt,kt)},$$slots:{default:!0}})}var At=M(xt,2);C(Et),Tt(()=>At.disabled=!!o(tt)),Ct("click",At,us),k(ht,St)},$$slots:{default:!0}}),k(b,N)},$$slots:{default:!0}})},$$slots:{default:!0}});var Br=M(Rr,2);{var ps=c=>{{let u=Xt(()=>(o(et),nt(()=>{var L;return((L=o(et))==null?void 0:L.ref)??""}))),b=Xt(()=>(o(et),nt(()=>{var L;return((L=o(et))==null?void 0:L.displayLabel)??""}))),x=Xt(()=>(o(et),nt(()=>{var L,ht;return((ht=(L=o(et))==null?void 0:L.description)==null?void 0:ht.trim())??""}))),N=Xt(()=>(o(et),nt(()=>{var L,ht;return((ht=(L=o(et))==null?void 0:L.proxy)==null?void 0:ht.trim())??""}))),U=Xt(()=>(o(et),nt(()=>{var L;return((L=o(et))==null?void 0:L.parseHint)??null})));Ns(c,{variant:"overlay",get open(){return o(vt)},get sourceRef(){return o(u)},get sourceLabel(){return o(b)},get sourceDescription(){return o(x)},get sourceProxy(){return o(N)},get sourceParseHint(){return o(U)},onOpenChange:L=>{d(vt,L),L||d(et,null)}})}};_t(Br,c=>{r(),nt(()=>r().url.pathname!=="/")&&c(ps)})}var Vr=M(Br,2),Kr=S(Vr),No=S(Kr),Ur=S(No),Ro=S(Ur),Bo=S(Ro);Ye(Bo);var vs=M(Bo,2);{var gs=c=>{bi(c,{get open(){return o(Wo)},onOpenChange:u=>{d(Wo,u)},children:(u,b)=>{var x=Nl(),N=Y(x);{let L=Xt(()=>(o(I),nt(()=>Dr(o(I))))),ht=Xt(()=>o(E)==="asc"?" 升序":" 降序");wi(N,{type:"button",class:"btn-sort",get title(){return`排序:${o(L)??""}${o(ht)??""},点此选择依据或同项切换方向`},"aria-label":"排序",children:(Ft,St)=>{_l(Ft,{size:16})},$$slots:{default:!0}})}var U=M(N,2);go(U,{children:(L,ht)=>{yi(L,{class:"dropdown-panel sort-menu",sideOffset:6,align:"start",children:(Ft,St)=>{var W=pt(),lt=Y(W);Go(lt,1,()=>Gi,Jr,(dt,ut)=>{var mt=Hl();let Mt;var Et=S(mt),xt=S(Et,!0);C(Et);var At=M(Et,2);{var yt=gt=>{var wt=Wl(),kt=S(wt,!0);C(wt),Tt(()=>Lt(kt,o(E)==="asc"?"↑":"↓")),k(gt,wt)};_t(At,gt=>{o(I)===o(ut)&&gt(yt)})}C(mt),Tt(gt=>{Mt=qe(mt,1,"sort-menu-item svelte-1beoyzy",null,Mt,{active:o(I)===o(ut)}),Lt(xt,gt)},[()=>(o(ut),nt(()=>Dr(o(ut))))]),Ct("click",mt,()=>Qi(o(ut))),k(dt,mt)}),k(Ft,W)},$$slots:{default:!0}})},$$slots:{default:!0}}),k(u,x)},$$slots:{default:!0}})};_t(vs,c=>{r(),o(_),nt(()=>r().url.pathname==="/"&&o(_).length>0)&&c(gs)})}C(Ro);var jr=M(Ro,2),Vo=S(jr),ms=S(Vo);aa(ms,{size:16,"aria-hidden":"true"}),C(Vo),C(jr),C(Ur),C(No);var Xr=M(No,2),ys=S(Xr);{var ws=c=>{var u=Rl();k(c,u)},bs=c=>{var u=Bl(),b=S(u,!0);C(u),Tt(()=>Lt(b,o(T))),k(c,u)},xs=c=>{var u=Vl(),b=M(S(u));zt(),C(u),Ct("click",b,Mr),k(c,u)},_s=c=>{var u=Kl();k(c,u)},Ps=c=>{var u=Zl();Go(u,5,()=>o(m),b=>b.ref,(b,x)=>{const N=Xt(()=>(Qo(Pi),o(x),nt(()=>Pi(o(x).ref))));var U=Jl(),L=S(U),ht=S(L),Ft=S(ht);{var St=xt=>{var At=jl(),yt=S(At);{var gt=wt=>{var kt=Ul();Tt(Ut=>$o(kt,"src",Ut),[()=>(Qo(Oi),Qo(o(N)),nt(()=>Oi(o(N))))]),Fs("error",kt,()=>{d($,{...o($),[o(x).ref]:!0})}),Es(kt),k(wt,kt)};_t(yt,wt=>{o($),o(x),nt(()=>!o($)[o(x).ref])&&wt(gt)})}C(At),k(xt,At)};_t(Ft,xt=>{o(N)&&xt(St)})}var W=M(Ft,2),lt=S(W),dt=S(lt,!0);C(lt);var ut=M(lt,2),mt=S(ut,!0);C(ut),C(W),C(ht),C(L);var Mt=M(L,2),Et=S(Mt);{let xt=Xt(()=>(o(R),o(x),nt(()=>o(R)===o(x).ref)));bi(Et,{get open(){return o(xt)},onOpenChange:At=>{d(R,At?o(x).ref:null)},children:(At,yt)=>{var gt=ql(),wt=Y(gt);wi(wt,{class:"btn-icon",title:"更多",onclick:Ut=>Ut.stopPropagation(),children:(Ut,Ko)=>{Ol(Ut,{size:13})},$$slots:{default:!0}});var kt=M(wt,2);go(kt,{children:(Ut,Ko)=>{yi(Ut,{class:"dropdown-panel more-menu",sideOffset:6,align:"center",onclick:le=>le.stopPropagation(),children:(le,Uo)=>{var ao=Yl(),jt=Y(ao);let pn;var lo=S(jt);Rs(lo,{size:14});var Ve=M(lo,2),co=S(Ve,!0);C(Ve),C(jt);var ce=M(jt,2),uo=S(ce);Sl(uo,{size:14}),zt(2),C(ce);var ue=M(ce,2),vn=S(ue);Pl(vn,{size:14}),zt(2),C(ue);var gn=M(ue,2);{var fo=de=>{var Se=Xl(),Ue=S(Se);Cl(Ue,{size:14}),zt(2),C(Se),Ct("click",Se,Yo=>ss(o(x).ref,Yo)),k(de,Se)},mn=H(()=>(o(x),nt(()=>rs(o(x).ref))));_t(gn,de=>{o(mn)&&de(fo)})}var te=M(gn,2),yn=S(te);Al(yn,{size:14});var ho=M(yn,2),jo=S(ho,!0);C(ho),C(te);var Ce=M(te,2),Ke=S(Ce);xi(Ke,{size:14});var po=M(Ke,2),Xo=S(po,!0);C(po),C(Ce),Tt(()=>{pn=qe(jt,1,"more-menu-item svelte-1beoyzy",null,pn,{pulling:o(x).ref in n()}),jt.disabled=(o(x),n(),nt(()=>o(x).ref in n())),Lt(co,(o(x),n(),nt(()=>o(x).ref in n()?"拉取中…":"拉取"))),te.disabled=(o(ot),o(x),nt(()=>o(ot)===o(x).ref)),Lt(jo,(o(ot),o(x),nt(()=>o(ot)===o(x).ref?"清空中…":"清空该源条目"))),Ce.disabled=(o(tt),o(x),nt(()=>o(tt)===o(x).ref)),Lt(Xo,(o(tt),o(x),nt(()=>o(tt)===o(x).ref?"移除中…":"移除信源")))}),Ct("click",jt,de=>{os(o(x).ref,de),d(R,null)}),Ct("click",ce,()=>{$i(o(x)),d(R,null)}),Ct("click",ue,()=>as(o(x).ref)),Ct("click",te,()=>ds(o(x).ref)),Ct("click",Ce,()=>cs(o(x).ref)),k(le,ao)},$$slots:{default:!0}})},$$slots:{default:!0}}),k(At,gt)},$$slots:{default:!0}})}C(Mt),C(U),Tt(()=>{$o(ht,"title",(o(x),nt(()=>o(x).ref))),Lt(dt,(o(x),nt(()=>o(x).displayLabel))),$o(ut,"title",`已收录 ${o(x),nt(()=>o(x).count)??""} 条 · 近 7 天内有拉取记录的条目 ${o(x),nt(()=>o(x).weekCount)??""} 条`),Lt(mt,(o(x),nt(()=>o(x).count)))}),Ct("click",U,xt=>fs(o(x),xt)),Ct("keydown",U,xt=>hs(o(x),xt)),k(b,U)}),C(u),k(c,u)};_t(ys,c=>{o(D)?c(ws):o(T)?c(bs,1):(o(_),nt(()=>o(_).length===0)?c(xs,2):(o(m),nt(()=>o(m).length===0)?c(_s,3):c(Ps,-1)))})}C(Xr),C(Kr),C(Vr),Je(Bo,()=>o(F),c=>d(F,c)),Ct("click",Vo,Mr),k(e,Hr),se(),s()}zs(["click","keydown"]);export{wc as S};
@@ -1 +0,0 @@
1
- import{as as a}from"./BbWUOQ_m.js";a();
@@ -1,13 +0,0 @@
1
- var Zr=Object.defineProperty;var Jr=Object.getPrototypeOf;var Qr=Reflect.get;var Hn=n=>{throw TypeError(n)};var $r=(n,t,e)=>t in n?Zr(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var w=(n,t,e)=>$r(n,typeof t!="symbol"?t+"":t,e),ln=(n,t,e)=>t.has(n)||Hn("Cannot "+e);var s=(n,t,e)=>(ln(n,t,"read from private field"),e?e.call(n):t.get(n)),c=(n,t,e)=>t.has(n)?Hn("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),E=(n,t,e,r)=>(ln(n,t,"write to private field"),r?r.call(n,e):t.set(n,e),e),A=(n,t,e)=>(ln(n,t,"access private method"),e);var Xn=(n,t,e)=>Qr(Jr(n),e,t);import{b as ts,a as C,d as es,c as k,p as nn,f as we}from"./BK3WtZwv.js";import"./lk5LaiqA.js";import{bb as ns,b as hr,E as pr,h as Y,a as Yn,g as dn,bi as rs,aF as ss,bj as is,N as os,n as as,e as Zn,c as fn,Y as us,ah as cs,at as W,au as U,aq as Mt,U as Kt,av as Ee,f as O,aw as gn,ax as Se,i as v,aA as _,aB as ls,b4 as x,a4 as ds,a5 as T,bk as Jn,A as fs,aN as Bt,bl as hs,bm as Qn,bn as ps,am as vs,an as rn,T as gs,aj as z,bo as bs,bp as ms}from"./BbWUOQ_m.js";import{e as ys,i as ws}from"./BQqoDzLx.js";import{s as Es}from"./B-OsL1Ct.js";import{g as Ss,f as Ts,o as V,m as As,u as Cs}from"./DMWEh-Ek.js";import{B as vr,i as it}from"./Dt2CddFe.js";import{e as kt,f as hn}from"./B2Q1a1-H.js";import{i as Is}from"./CVzlFH44.js";import{l as $n,p as b,r as sn,s as pn}from"./xtNWTdbD.js";import{k as Os}from"./Cihqbfi5.js";function Ns(){return Symbol(ns)}function F(n,t,...e){var r=new vr(n);hr(()=>{const i=t()??null;r.ensure(i,i&&(a=>i(a,...e)))},pr)}function Ps(n,t,e,r,i,a){let o=Y;Y&&Yn();var u=null;Y&&dn.nodeType===rs&&(u=dn,Yn());var f=Y?dn:n,d=new vr(f,!1);hr(()=>{const g=t()||null;var p=is;if(g===null){d.ensure(null,null);return}return d.ensure(g,S=>{if(g){if(u=Y?u:ss(g,p),ts(u,u),r){Y&&Ss(g)&&u.append(document.createComment(""));var m=Y?os(u):u.appendChild(as());Y&&(m===null?Zn(!1):fn(m)),r(u,m)}us.nodes.end=u,S.before(u)}Y&&fn(S)}),()=>{}},pr),cs(()=>{}),o&&(Zn(!0),fn(f))}/**
2
- * @license lucide-svelte v0.460.1 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const ks={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};var xs=es("<svg><!><!></svg>");function Bo(n,t){const e=$n(t,["children","$$slots","$$events","$$legacy"]),r=$n(e,["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"]);W(t,!1);let i=b(t,"name",8,void 0),a=b(t,"color",8,"currentColor"),o=b(t,"size",8,24),u=b(t,"strokeWidth",8,2),f=b(t,"absoluteStrokeWidth",8,!1),d=b(t,"iconNode",24,()=>[]);const g=(...l)=>l.filter((h,I,D)=>!!h&&D.indexOf(h)===I).join(" ");Is();var p=xs();kt(p,(l,h)=>({...ks,...r,width:o(),height:o(),stroke:a(),"stroke-width":l,class:h}),[()=>(Mt(f()),Mt(u()),Mt(o()),Kt(()=>f()?Number(u())*24/Number(o()):u())),()=>(Mt(i()),Mt(e),Kt(()=>g("lucide-icon","lucide",i()?`lucide-${i()}`:"",e.class)))]);var S=Ee(p);ys(S,1,d,ws,(l,h)=>{var I=_(()=>ls(v(h),2));let D=()=>v(I)[0],j=()=>v(I)[1];var B=k(),yt=O(B);Ps(yt,D,!0,(un,Ae)=>{kt(un,()=>({...j()}))}),C(l,B)});var m=gn(S);Es(m,t,"default",{}),Se(p),C(n,p),U()}function _s(n){return typeof n=="function"}function Te(n){return n!==null&&typeof n=="object"}const Rs=["string","number","bigint","boolean"];function bn(n){return n==null||Rs.includes(typeof n)?!0:Array.isArray(n)?n.every(t=>bn(t)):typeof n=="object"?Object.getPrototypeOf(n)===Object.prototype:!1}const Fe=Symbol("box"),gr=Symbol("is-writable");function y(n,t){const e=_(n);return t?{[Fe]:!0,[gr]:!0,get current(){return v(e)},set current(r){t(r)}}:{[Fe]:!0,get current(){return n()}}}function br(n){return Te(n)&&Fe in n}function Vo(n){return br(n)?n:_s(n)?y(n):mr(n)}function mr(n){let t=x(ds(n));return{[Fe]:!0,[gr]:!0,get current(){return v(t)},set current(e){T(t,e,!0)}}}function yr(...n){return function(t){var e;for(const r of n)if(r){if(t.defaultPrevented)return;typeof r=="function"?r.call(this,t):(e=r.current)==null||e.call(this,t)}}}var tr=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Fs=/\n/g,Ds=/^\s*/,Ls=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ms=/^:\s*/,Bs=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Vs=/^[;\s]*/,Ws=/^\s+|\s+$/g,Us=`
7
- `,er="/",nr="*",ct="",js="comment",Ks="declaration";function zs(n,t){if(typeof n!="string")throw new TypeError("First argument must be a string");if(!n)return[];t=t||{};var e=1,r=1;function i(l){var h=l.match(Fs);h&&(e+=h.length);var I=l.lastIndexOf(Us);r=~I?l.length-I:r+l.length}function a(){var l={line:e,column:r};return function(h){return h.position=new o(l),d(),h}}function o(l){this.start=l,this.end={line:e,column:r},this.source=t.source}o.prototype.content=n;function u(l){var h=new Error(t.source+":"+e+":"+r+": "+l);if(h.reason=l,h.filename=t.source,h.line=e,h.column=r,h.source=n,!t.silent)throw h}function f(l){var h=l.exec(n);if(h){var I=h[0];return i(I),n=n.slice(I.length),h}}function d(){f(Ds)}function g(l){var h;for(l=l||[];h=p();)h!==!1&&l.push(h);return l}function p(){var l=a();if(!(er!=n.charAt(0)||nr!=n.charAt(1))){for(var h=2;ct!=n.charAt(h)&&(nr!=n.charAt(h)||er!=n.charAt(h+1));)++h;if(h+=2,ct===n.charAt(h-1))return u("End of comment missing");var I=n.slice(2,h-2);return r+=2,i(I),n=n.slice(h),r+=2,l({type:js,comment:I})}}function S(){var l=a(),h=f(Ls);if(h){if(p(),!f(Ms))return u("property missing ':'");var I=f(Bs),D=l({type:Ks,property:rr(h[0].replace(tr,ct)),value:I?rr(I[0].replace(tr,ct)):ct});return f(Vs),D}}function m(){var l=[];g(l);for(var h;h=S();)h!==!1&&(l.push(h),g(l));return l}return d(),m()}function rr(n){return n?n.replace(Ws,ct):ct}function Gs(n,t){let e=null;if(!n||typeof n!="string")return e;const r=zs(n),i=typeof t=="function";return r.forEach(a=>{if(a.type!=="declaration")return;const{property:o,value:u}=a;i?t(o,u,a):u&&(e=e||{},e[o]=u)}),e}const qs=/\d/,Hs=["-","_","/","."];function Xs(n=""){if(!qs.test(n))return n!==n.toLowerCase()}function Ys(n){const t=[];let e="",r,i;for(const a of n){const o=Hs.includes(a);if(o===!0){t.push(e),e="",r=void 0;continue}const u=Xs(a);if(i===!1){if(r===!1&&u===!0){t.push(e),e=a,r=u;continue}if(r===!0&&u===!1&&e.length>1){const f=e.at(-1);t.push(e.slice(0,Math.max(0,e.length-1))),e=f+a,r=u;continue}}e+=a,r=u,i=o}return t.push(e),t}function wr(n){return n?Ys(n).map(t=>Js(t)).join(""):""}function Zs(n){return Qs(wr(n||""))}function Js(n){return n?n[0].toUpperCase()+n.slice(1):""}function Qs(n){return n?n[0].toLowerCase()+n.slice(1):""}function Oe(n){if(!n)return{};const t={};function e(r,i){if(r.startsWith("-moz-")||r.startsWith("-webkit-")||r.startsWith("-ms-")||r.startsWith("-o-")){t[wr(r)]=i;return}if(r.startsWith("--")){t[r]=i;return}t[Zs(r)]=i}return Gs(n,e),t}function jt(...n){return(...t)=>{for(const e of n)typeof e=="function"&&e(...t)}}function $s(n,t){const e=RegExp(n,"g");return r=>{if(typeof r!="string")throw new TypeError(`expected an argument of type string, but got ${typeof r}`);return r.match(e)?r.replace(e,t):r}}const ti=$s(/[A-Z]/,n=>`-${n.toLowerCase()}`);function ei(n){if(!n||typeof n!="object"||Array.isArray(n))throw new TypeError(`expected an argument of type object, but got ${typeof n}`);return Object.keys(n).map(t=>`${ti(t)}: ${n[t]};`).join(`
8
- `)}function ni(n={}){return ei(n).replace(`
9
- `," ")}const ri=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],si=new Set(ri);function ii(n){return si.has(n)}function ot(...n){const t={...n[0]};for(let e=1;e<n.length;e++){const r=n[e];if(r){for(const i of Object.keys(r)){const a=t[i],o=r[i],u=typeof a=="function",f=typeof o=="function";if(u&&ii(i)){const d=a,g=o;t[i]=yr(d,g)}else if(u&&f)t[i]=jt(a,o);else if(i==="class"){const d=bn(a),g=bn(o);d&&g?t[i]=hn(a,o):d?t[i]=hn(a):g&&(t[i]=hn(o))}else if(i==="style"){const d=typeof a=="object",g=typeof o=="object",p=typeof a=="string",S=typeof o=="string";if(d&&g)t[i]={...a,...o};else if(d&&S){const m=Oe(o);t[i]={...a,...m}}else if(p&&g){const m=Oe(a);t[i]={...m,...o}}else if(p&&S){const m=Oe(a),l=Oe(o);t[i]={...m,...l}}else d?t[i]=a:g?t[i]=o:p?t[i]=a:S&&(t[i]=o)}else t[i]=o!==void 0?o:a}for(const i of Object.getOwnPropertySymbols(r)){const a=t[i],o=r[i];t[i]=o!==void 0?o:a}}}return typeof t.style=="object"&&(t.style=ni(t.style).replaceAll(`
10
- `," ")),t.hidden===!1&&(t.hidden=void 0,delete t.hidden),t.disabled===!1&&(t.disabled=void 0,delete t.disabled),t}const oi=typeof window<"u"?window:void 0;function ai(n){let t=n.activeElement;for(;t!=null&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var G,q,Z,Ue,K,Ut,ke;const Dn=class Dn extends Map{constructor(e){super();c(this,K);c(this,G,new Map);c(this,q,x(0));c(this,Z,x(0));c(this,Ue,Jn||-1);if(e){for(var[r,i]of e)super.set(r,i);s(this,Z).v=super.size}}has(e){var r=s(this,G),i=r.get(e);if(i===void 0)if(super.has(e))i=A(this,K,Ut).call(this,0),r.set(e,i);else return v(s(this,q)),!1;return v(i),!0}forEach(e,r){A(this,K,ke).call(this),super.forEach(e,r)}get(e){var r=s(this,G),i=r.get(e);if(i===void 0)if(super.has(e))i=A(this,K,Ut).call(this,0),r.set(e,i);else{v(s(this,q));return}return v(i),super.get(e)}set(e,r){var p;var i=s(this,G),a=i.get(e),o=super.get(e),u=super.set(e,r),f=s(this,q);if(a===void 0)a=A(this,K,Ut).call(this,0),i.set(e,a),T(s(this,Z),super.size),Bt(f);else if(o!==r){Bt(a);var d=f.reactions===null?null:new Set(f.reactions),g=d===null||!((p=a.reactions)!=null&&p.every(S=>d.has(S)));g&&Bt(f)}return u}delete(e){var r=s(this,G),i=r.get(e),a=super.delete(e);return i!==void 0&&(r.delete(e),T(i,-1)),a&&(T(s(this,Z),super.size),Bt(s(this,q))),a}clear(){if(super.size!==0){super.clear();var e=s(this,G);T(s(this,Z),0);for(var r of e.values())T(r,-1);Bt(s(this,q)),e.clear()}}keys(){return v(s(this,q)),super.keys()}values(){return A(this,K,ke).call(this),super.values()}entries(){return A(this,K,ke).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return v(s(this,Z)),super.size}};G=new WeakMap,q=new WeakMap,Z=new WeakMap,Ue=new WeakMap,K=new WeakSet,Ut=function(e){return Jn===s(this,Ue)?x(e):fs(e)},ke=function(){v(s(this,q));var e=s(this,G);if(s(this,Z).v!==e.size){for(var r of Xn(Dn.prototype,this,"keys").call(this))if(!e.has(r)){var i=A(this,K,Ut).call(this,0);e.set(r,i)}}for([,i]of s(this,G))v(i)};let mn=Dn;var Et,zt;class ui{constructor(t={}){c(this,Et);c(this,zt);const{window:e=oi,document:r=e==null?void 0:e.document}=t;e!==void 0&&(E(this,Et,r),E(this,zt,Ts(i=>{const a=V(e,"focusin",i),o=V(e,"focusout",i);return()=>{a(),o()}})))}get current(){var t;return(t=s(this,zt))==null||t.call(this),s(this,Et)?ai(s(this,Et)):null}}Et=new WeakMap,zt=new WeakMap;new ui;var Gt,J;class Er{constructor(t){c(this,Gt);c(this,J);E(this,Gt,t),E(this,J,Symbol(t))}get key(){return s(this,J)}exists(){return hs(s(this,J))}get(){const t=Qn(s(this,J));if(t===void 0)throw new Error(`Context "${s(this,Gt)}" not found`);return t}getOr(t){const e=Qn(s(this,J));return e===void 0?t:e}set(t){return ps(s(this,J),t)}}Gt=new WeakMap,J=new WeakMap;function ci(n,t){switch(n){case"post":rn(t);break;case"pre":vs(t);break}}function Sr(n,t,e,r={}){const{lazy:i=!1}=r;let a=!i,o=Array.isArray(n)?[]:void 0;ci(t,()=>{const u=Array.isArray(n)?n.map(d=>d()):n();if(!a){a=!0,o=u;return}const f=Kt(()=>e(u,o));return o=u,f})}function X(n,t,e){Sr(n,"post",t,e)}function li(n,t,e){Sr(n,"pre",t,e)}X.pre=li;function Rt(n){rn(()=>()=>{n()})}function di(n,t){return setTimeout(t,n)}function Fn(n){gs().then(n)}const fi=1,hi=9,pi=11;function yn(n){return Te(n)&&n.nodeType===fi&&typeof n.nodeName=="string"}function Tr(n){return Te(n)&&n.nodeType===hi}function vi(n){var t;return Te(n)&&((t=n.constructor)==null?void 0:t.name)==="VisualViewport"}function gi(n){return Te(n)&&n.nodeType!==void 0}function Ar(n){return gi(n)&&n.nodeType===pi&&"host"in n}function bi(n,t){var r;if(!n||!t||!yn(n)||!yn(t))return!1;const e=(r=t.getRootNode)==null?void 0:r.call(t);if(n===t||n.contains(t))return!0;if(e&&Ar(e)){let i=t;for(;i;){if(n===i)return!0;i=i.parentNode||i.host}}return!1}function mi(n){return Tr(n)?n:vi(n)?n.document:(n==null?void 0:n.ownerDocument)??document}function yi(n){var t;return Ar(n)?yi(n.host):Tr(n)?n.defaultView??window:yn(n)?((t=n.ownerDocument)==null?void 0:t.defaultView)??window:window}function wi(n){let t=n.activeElement;for(;t!=null&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var qt;class Cr{constructor(t){w(this,"element");c(this,qt,_(()=>this.element.current?this.element.current.getRootNode()??document:document));w(this,"getDocument",()=>mi(this.root));w(this,"getWindow",()=>this.getDocument().defaultView??window);w(this,"getActiveElement",()=>wi(this.root));w(this,"isActiveElement",t=>t===this.getActiveElement());w(this,"querySelector",t=>this.root?this.root.querySelector(t):null);w(this,"querySelectorAll",t=>this.root?this.root.querySelectorAll(t):[]);w(this,"setTimeout",(t,e)=>this.getWindow().setTimeout(t,e));w(this,"clearTimeout",t=>this.getWindow().clearTimeout(t));typeof t=="function"?this.element=y(t):this.element=t}get root(){return v(s(this,qt))}set root(t){T(s(this,qt),t)}getElementById(t){return this.root.getElementById(t)}}qt=new WeakMap;function on(n,t){return{[Ns()]:e=>br(n)?(n.current=e,Kt(()=>t==null?void 0:t(e)),()=>{"isConnected"in e&&e.isConnected||(n.current=null,t==null||t(null))}):(n(e),Kt(()=>t==null?void 0:t(e)),()=>{"isConnected"in e&&e.isConnected||(n(null),t==null||t(null))})}}function Wo(n){return n?"true":"false"}function De(n){return n?"":void 0}function Ei(n){return n?"open":"closed"}var St,Ht;class Si{constructor(t){c(this,St);c(this,Ht);w(this,"attrs");E(this,St,t.getVariant?t.getVariant():null),E(this,Ht,s(this,St)?`data-${s(this,St)}-`:`data-${t.component}-`),this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(t.parts.map(e=>[e,this.getAttr(e)]))}getAttr(t,e){return e?`data-${e}-${t}`:`${s(this,Ht)}${t}`}selector(t,e){return`[${this.getAttr(t,e)}]`}}St=new WeakMap,Ht=new WeakMap;function Ir(n){const t=new Si(n);return{...t.attrs,selector:t.selector,getAttr:t.getAttr}}const Ti="Enter",Ai="Escape",Ci=" ",Or=typeof document<"u",sr=Ii();function Ii(){var n,t;return Or&&((n=window==null?void 0:window.navigator)==null?void 0:n.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function ir(n){return n instanceof HTMLElement}function Uo(n){return n instanceof Element}function Oi(n){return n instanceof Element||n instanceof SVGElement}function jo(n){return n.pointerType==="touch"}function Ko(n){return n!==null}var Tt,lt,tt,wn,xe;class Ni{constructor(t){c(this,tt);c(this,Tt);c(this,lt,null);E(this,Tt,t),Rt(()=>A(this,tt,wn).call(this))}run(t){A(this,tt,wn).call(this);const e=s(this,Tt).ref.current;if(e){if(typeof e.getAnimations!="function"){A(this,tt,xe).call(this,t);return}E(this,lt,window.requestAnimationFrame(()=>{const r=e.getAnimations();if(r.length===0){A(this,tt,xe).call(this,t);return}Promise.allSettled(r.map(i=>i.finished)).then(()=>{A(this,tt,xe).call(this,t)})}))}}}Tt=new WeakMap,lt=new WeakMap,tt=new WeakSet,wn=function(){s(this,lt)&&(window.cancelAnimationFrame(s(this,lt)),E(this,lt,null))},xe=function(t){const e=()=>{t()};s(this,Tt).afterTick?Fn(e):e()};var H,Xt,Yt,dt;class or{constructor(t){c(this,H);c(this,Xt);c(this,Yt);c(this,dt,x(!1));E(this,H,t),T(s(this,dt),t.open.current,!0),E(this,Xt,t.enabled??!0),E(this,Yt,new Ni({ref:s(this,H).ref,afterTick:s(this,H).open})),X(()=>s(this,H).open.current,e=>{e&&T(s(this,dt),!0),s(this,Xt)&&s(this,Yt).run(()=>{var r,i;e===s(this,H).open.current&&(s(this,H).open.current||T(s(this,dt),!1),(i=(r=s(this,H)).onComplete)==null||i.call(r))})})}get shouldRender(){return v(s(this,dt))}}H=new WeakMap,Xt=new WeakMap,Yt=new WeakMap,dt=new WeakMap;function P(){}function an(n,t){return`bits-${n}`}const Pi=Ir({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),xt=new Er("Dialog.Root | AlertDialog.Root");var Zt,Jt,Qt,$t,te,ee,ne,re,se,ie,oe;const Ln=class Ln{constructor(t,e){w(this,"opts");c(this,Zt,x(null));c(this,Jt,x(null));c(this,Qt,x(null));c(this,$t,x(null));c(this,te,x(void 0));c(this,ee,x(void 0));c(this,ne,x(void 0));c(this,re,x(void 0));c(this,se,x(null));c(this,ie,x(0));w(this,"depth");w(this,"parent");w(this,"contentPresence");w(this,"overlayPresence");w(this,"getBitsAttr",t=>Pi.getAttr(t,this.opts.variant.current));c(this,oe,_(()=>({"data-state":Ei(this.opts.open.current)})));this.opts=t,this.parent=e,this.depth=e?e.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new or({ref:y(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new or({ref:y(()=>this.overlayNode),open:this.opts.open,enabled:!0}),X(()=>this.opts.open.current,r=>{this.parent&&(r?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),Rt(()=>{var r;this.opts.open.current&&((r=this.parent)==null||r.decrementNested())})}static create(t){const e=xt.getOr(null);return xt.set(new Ln(t,e))}get triggerNode(){return v(s(this,Zt))}set triggerNode(t){T(s(this,Zt),t,!0)}get contentNode(){return v(s(this,Jt))}set contentNode(t){T(s(this,Jt),t,!0)}get overlayNode(){return v(s(this,Qt))}set overlayNode(t){T(s(this,Qt),t,!0)}get descriptionNode(){return v(s(this,$t))}set descriptionNode(t){T(s(this,$t),t,!0)}get contentId(){return v(s(this,te))}set contentId(t){T(s(this,te),t,!0)}get titleId(){return v(s(this,ee))}set titleId(t){T(s(this,ee),t,!0)}get triggerId(){return v(s(this,ne))}set triggerId(t){T(s(this,ne),t,!0)}get descriptionId(){return v(s(this,re))}set descriptionId(t){T(s(this,re),t,!0)}get cancelNode(){return v(s(this,se))}set cancelNode(t){T(s(this,se),t,!0)}get nestedOpenCount(){return v(s(this,ie))}set nestedOpenCount(t){T(s(this,ie),t,!0)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}incrementNested(){var t;this.nestedOpenCount++,(t=this.parent)==null||t.incrementNested()}decrementNested(){var t;this.nestedOpenCount!==0&&(this.nestedOpenCount--,(t=this.parent)==null||t.decrementNested())}get sharedProps(){return v(s(this,oe))}set sharedProps(t){T(s(this,oe),t)}};Zt=new WeakMap,Jt=new WeakMap,Qt=new WeakMap,$t=new WeakMap,te=new WeakMap,ee=new WeakMap,ne=new WeakMap,re=new WeakMap,se=new WeakMap,ie=new WeakMap,oe=new WeakMap;let En=Ln;var ae;const Mn=class Mn{constructor(t,e){w(this,"opts");w(this,"root");w(this,"attachment");c(this,ae,_(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment})));this.opts=t,this.root=e,this.attachment=on(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(t){return new Mn(t,xt.get())}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===Ci||t.key===Ti)&&(t.preventDefault(),this.root.handleClose())}get props(){return v(s(this,ae))}set props(t){T(s(this,ae),t)}};ae=new WeakMap;let Sn=Mn;var ue;const Bn=class Bn{constructor(t,e){w(this,"opts");w(this,"root");w(this,"attachment");c(this,ue,_(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment})));this.opts=t,this.root=e,this.root.titleId=this.opts.id.current,this.attachment=on(this.opts.ref),X.pre(()=>this.opts.id.current,r=>{this.root.titleId=r})}static create(t){return new Bn(t,xt.get())}get props(){return v(s(this,ue))}set props(t){T(s(this,ue),t)}};ue=new WeakMap;let Tn=Bn;var ce,le;const Vn=class Vn{constructor(t,e){w(this,"opts");w(this,"root");w(this,"attachment");c(this,ce,_(()=>({open:this.root.opts.open.current})));c(this,le,_(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":De(this.root.nestedOpenCount>0),"data-nested":De(this.root.parent!==null),...this.root.sharedProps,...this.attachment})));this.opts=t,this.root=e,this.attachment=on(this.opts.ref,r=>{this.root.contentNode=r,this.root.contentId=r==null?void 0:r.id})}static create(t){return new Vn(t,xt.get())}get snippetProps(){return v(s(this,ce))}set snippetProps(t){T(s(this,ce),t)}get props(){return v(s(this,le))}set props(t){T(s(this,le),t)}get shouldRender(){return this.root.contentPresence.shouldRender}};ce=new WeakMap,le=new WeakMap;let An=Vn;var de,fe;const Wn=class Wn{constructor(t,e){w(this,"opts");w(this,"root");w(this,"attachment");c(this,de,_(()=>({open:this.root.opts.open.current})));c(this,fe,_(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":De(this.root.nestedOpenCount>0),"data-nested":De(this.root.parent!==null),...this.root.sharedProps,...this.attachment})));this.opts=t,this.root=e,this.attachment=on(this.opts.ref,r=>this.root.overlayNode=r)}static create(t){return new Wn(t,xt.get())}get snippetProps(){return v(s(this,de))}set snippetProps(t){T(s(this,de),t)}get props(){return v(s(this,fe))}set props(t){T(s(this,fe),t)}get shouldRender(){return this.root.overlayPresence.shouldRender}};de=new WeakMap,fe=new WeakMap;let Cn=Wn;var ki=we("<div><!></div>");function zo(n,t){const e=nn();W(t,!0);let r=b(t,"id",19,()=>an(e)),i=b(t,"ref",15,null),a=b(t,"level",3,2),o=sn(t,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const u=Tn.create({id:y(()=>r()),level:y(()=>a()),ref:y(()=>i(),m=>i(m))}),f=_(()=>ot(o,u.props));var d=k(),g=O(d);{var p=m=>{var l=k(),h=O(l);F(h,()=>t.child,()=>({props:v(f)})),C(m,l)},S=m=>{var l=ki();kt(l,()=>({...v(f)}));var h=Ee(l);F(h,()=>t.children??z),Se(l),C(m,l)};it(g,m=>{t.child?m(p):m(S,-1)})}C(n,d),U()}function xi(n,t){var e=k(),r=O(e);Os(r,()=>t.children,i=>{var a=k(),o=O(a);F(o,()=>t.children??z),C(i,a)}),C(n,e)}const _i=new Er("BitsConfig");function Ri(){const n=new Fi(null,{});return _i.getOr(n).opts}class Fi{constructor(t,e){w(this,"opts");const r=Di(t,e);this.opts={defaultPortalTo:r(i=>i.defaultPortalTo),defaultLocale:r(i=>i.defaultLocale)}}}function Di(n,t){return e=>y(()=>{var a,o;const i=(a=e(t))==null?void 0:a.current;if(i!==void 0)return i;if(n!==null)return(o=e(n.opts))==null?void 0:o.current})}function Li(n,t){return e=>{const r=Ri();return y(()=>{const i=e();if(i!==void 0)return i;const a=n(r).current;return a!==void 0?a:t})}}const Mi=Li(n=>n.defaultPortalTo,"body");function Go(n,t){W(t,!0);const e=Mi(()=>t.to),r=bs();let i=_(a);function a(){if(!Or||t.disabled)return null;let p=null;return typeof e.current=="string"?p=document.querySelector(e.current):p=e.current,p}let o;function u(){o&&(Cs(o),o=null)}X([()=>v(i),()=>t.disabled],([p,S])=>{if(!p||S){u();return}return o=As(xi,{target:p,props:{children:t.children},context:r}),()=>{u()}});var f=k(),d=O(f);{var g=p=>{var S=k(),m=O(S);F(m,()=>t.children??z),C(p,S)};it(d,p=>{t.disabled&&p(g)})}C(n,f),U()}function ar(n,t=500){let e=null;const r=(...i)=>{e!==null&&clearTimeout(e),e=setTimeout(()=>{n(...i)},t)};return r.destroy=()=>{e!==null&&(clearTimeout(e),e=null)},r}function Nr(n,t){return n===t||n.contains(t)}function Pr(n){return(n==null?void 0:n.ownerDocument)??document}function Bi(n,t){const{clientX:e,clientY:r}=n,i=t.getBoundingClientRect();return e<i.left||e>i.right||r<i.top||r>i.bottom}/*!
11
- * tabbable 6.4.0
12
- * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
13
- */var kr=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Le=kr.join(","),xr=typeof Element>"u",mt=xr?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Me=!xr&&Element.prototype.getRootNode?function(n){var t;return n==null||(t=n.getRootNode)===null||t===void 0?void 0:t.call(n)}:function(n){return n==null?void 0:n.ownerDocument},Be=function(t,e){var r;e===void 0&&(e=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),a=i===""||i==="true",o=a||e&&t&&(typeof t.closest=="function"?t.closest("[inert]"):Be(t.parentNode));return o},Vi=function(t){var e,r=t==null||(e=t.getAttribute)===null||e===void 0?void 0:e.call(t,"contenteditable");return r===""||r==="true"},_r=function(t,e,r){if(Be(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(Le));return e&&mt.call(t,Le)&&i.unshift(t),i=i.filter(r),i},Ve=function(t,e,r){for(var i=[],a=Array.from(t);a.length;){var o=a.shift();if(!Be(o,!1))if(o.tagName==="SLOT"){var u=o.assignedElements(),f=u.length?u:o.children,d=Ve(f,!0,r);r.flatten?i.push.apply(i,d):i.push({scopeParent:o,candidates:d})}else{var g=mt.call(o,Le);g&&r.filter(o)&&(e||!t.includes(o))&&i.push(o);var p=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),S=!Be(p,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(p&&S){var m=Ve(p===!0?o.children:p.children,!0,r);r.flatten?i.push.apply(i,m):i.push({scopeParent:o,candidates:m})}else a.unshift.apply(a,o.children)}}return i},Rr=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Fr=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Vi(t))&&!Rr(t)?0:t.tabIndex},Wi=function(t,e){var r=Fr(t);return r<0&&e&&!Rr(t)?0:r},Ui=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},Dr=function(t){return t.tagName==="INPUT"},ji=function(t){return Dr(t)&&t.type==="hidden"},Ki=function(t){var e=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return e},zi=function(t,e){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===e)return t[r]},Gi=function(t){if(!t.name)return!0;var e=t.form||Me(t),r=function(u){return e.querySelectorAll('input[type="radio"][name="'+u+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var a=zi(i,t.form);return!a||a===t},qi=function(t){return Dr(t)&&t.type==="radio"},Hi=function(t){return qi(t)&&!Gi(t)},Xi=function(t){var e,r=t&&Me(t),i=(e=r)===null||e===void 0?void 0:e.host,a=!1;if(r&&r!==t){var o,u,f;for(a=!!((o=i)!==null&&o!==void 0&&(u=o.ownerDocument)!==null&&u!==void 0&&u.contains(i)||t!=null&&(f=t.ownerDocument)!==null&&f!==void 0&&f.contains(t));!a&&i;){var d,g,p;r=Me(i),i=(d=r)===null||d===void 0?void 0:d.host,a=!!((g=i)!==null&&g!==void 0&&(p=g.ownerDocument)!==null&&p!==void 0&&p.contains(i))}}return a},ur=function(t){var e=t.getBoundingClientRect(),r=e.width,i=e.height;return r===0&&i===0},Yi=function(t,e){var r=e.displayCheck,i=e.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var a=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!a}if(getComputedStyle(t).visibility==="hidden")return!0;var o=mt.call(t,"details>summary:first-of-type"),u=o?t.parentElement:t;if(mt.call(u,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof i=="function"){for(var f=t;t;){var d=t.parentElement,g=Me(t);if(d&&!d.shadowRoot&&i(d)===!0)return ur(t);t.assignedSlot?t=t.assignedSlot:!d&&g!==t.ownerDocument?t=g.host:t=d}t=f}if(Xi(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return ur(t);return!1},Zi=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if(e.tagName==="FIELDSET"&&e.disabled){for(var r=0;r<e.children.length;r++){var i=e.children.item(r);if(i.tagName==="LEGEND")return mt.call(e,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}e=e.parentElement}return!1},We=function(t,e){return!(e.disabled||ji(e)||Yi(e,t)||Ki(e)||Zi(e))},In=function(t,e){return!(Hi(e)||Fr(e)<0||!We(t,e))},Ji=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},Lr=function(t){var e=[],r=[];return t.forEach(function(i,a){var o=!!i.scopeParent,u=o?i.scopeParent:i,f=Wi(u,o),d=o?Lr(i.candidates):u;f===0?o?e.push.apply(e,d):e.push(u):r.push({documentOrder:a,tabIndex:f,item:i,isScope:o,content:d})}),r.sort(Ui).reduce(function(i,a){return a.isScope?i.push.apply(i,a.content):i.push(a.content),i},[]).concat(e)},Qi=function(t,e){e=e||{};var r;return e.getShadowRoot?r=Ve([t],e.includeContainer,{filter:In.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:Ji}):r=_r(t,e.includeContainer,In.bind(null,e)),Lr(r)},$i=function(t,e){e=e||{};var r;return e.getShadowRoot?r=Ve([t],e.includeContainer,{filter:We.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):r=_r(t,e.includeContainer,We.bind(null,e)),r},qo=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return mt.call(t,Le)===!1?!1:In(e,t)},to=kr.concat("iframe:not([inert]):not([inert] *)").join(","),eo=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return mt.call(t,to)===!1?!1:We(e,t)};const no="data-context-menu-trigger",ro="data-context-menu-content";Ir({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});globalThis.bitsDismissableLayers??(globalThis.bitsDismissableLayers=new Map);var At,ft,et,Ct,It,nt,he,Q,je,_t,Mr,Ke,Ot,ze,Ge,qe,He,pe,Br,Xe,Ye;const Un=class Un{constructor(t){c(this,_t);w(this,"opts");c(this,At);c(this,ft);c(this,et,{pointerdown:!1});c(this,Ct,!1);c(this,It,!1);c(this,nt);c(this,he);c(this,Q,P);c(this,je,t=>{t.defaultPrevented||this.opts.ref.current&&Fn(()=>{var e,r;!this.opts.ref.current||s(this,He).call(this,t.target)||t.target&&!s(this,It)&&((r=(e=s(this,he)).current)==null||r.call(e,t))})});c(this,Ke,t=>{let e=t;e.defaultPrevented&&(e=cr(t)),s(this,At).current(t)});c(this,Ot,ar(t=>{if(!this.opts.ref.current){s(this,Q).call(this);return}const e=this.opts.isValidEvent.current(t,this.opts.ref.current)||oo(t,this.opts.ref.current);if(!s(this,Ct)||A(this,_t,Br).call(this)||!e){s(this,Q).call(this);return}let r=t;if(r.defaultPrevented&&(r=cr(r)),s(this,ft).current!=="close"&&s(this,ft).current!=="defer-otherwise-close"){s(this,Q).call(this);return}t.pointerType==="touch"?(s(this,Q).call(this),E(this,Q,V(s(this,nt),"click",s(this,Ke),{once:!0}))):s(this,At).current(r)},10));c(this,ze,t=>{s(this,et)[t.type]=!0});c(this,Ge,t=>{s(this,et)[t.type]=!1});c(this,qe,()=>{this.opts.ref.current&&E(this,Ct,io(this.opts.ref.current))});c(this,He,t=>this.opts.ref.current?Nr(this.opts.ref.current,t):!1);c(this,pe,ar(()=>{for(const t in s(this,et))s(this,et)[t]=!1;E(this,Ct,!1)},20));c(this,Xe,()=>{E(this,It,!0)});c(this,Ye,()=>{E(this,It,!1)});w(this,"props",{onfocuscapture:s(this,Xe),onblurcapture:s(this,Ye)});this.opts=t,E(this,ft,t.interactOutsideBehavior),E(this,At,t.onInteractOutside),E(this,he,t.onFocusOutside),rn(()=>{E(this,nt,Pr(this.opts.ref.current))});let e=P;const r=()=>{s(this,pe).call(this),globalThis.bitsDismissableLayers.delete(this),s(this,Ot).destroy(),e()};X([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return di(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,s(this,ft)),e(),e=A(this,_t,Mr).call(this))}),r}),Rt(()=>{s(this,pe).destroy(),globalThis.bitsDismissableLayers.delete(this),s(this,Ot).destroy(),s(this,Q).call(this),e()})}static create(t){return new Un(t)}};At=new WeakMap,ft=new WeakMap,et=new WeakMap,Ct=new WeakMap,It=new WeakMap,nt=new WeakMap,he=new WeakMap,Q=new WeakMap,je=new WeakMap,_t=new WeakSet,Mr=function(){return jt(V(s(this,nt),"pointerdown",jt(s(this,ze),s(this,qe)),{capture:!0}),V(s(this,nt),"pointerdown",jt(s(this,Ge),s(this,Ot))),V(s(this,nt),"focusin",s(this,je)))},Ke=new WeakMap,Ot=new WeakMap,ze=new WeakMap,Ge=new WeakMap,qe=new WeakMap,He=new WeakMap,pe=new WeakMap,Br=function(){return Object.values(s(this,et)).some(Boolean)},Xe=new WeakMap,Ye=new WeakMap;let On=Un;function so(n=[...globalThis.bitsDismissableLayers]){return n.findLast(([t,{current:e}])=>e==="close"||e==="ignore")}function io(n){const t=[...globalThis.bitsDismissableLayers],e=so(t);if(e)return e[0].opts.ref.current===n;const[r]=t[0];return r.opts.ref.current===n}function oo(n,t){const e=n.target;if(!Oi(e))return!1;const r=!!e.closest(`[${no}]`);if("button"in n&&n.button>0&&!r)return!1;if("button"in n&&n.button===0&&r)return!0;const i=!!t.closest(`[${ro}]`);return r&&i?!1:Pr(e).documentElement.contains(e)&&!Nr(t,e)&&Bi(n,t)}function cr(n){const t=n.currentTarget,e=n.target;let r;n instanceof PointerEvent?r=new PointerEvent(n.type,n):r=new PointerEvent("pointerdown",n);let i=!1;return new Proxy(r,{get:(o,u)=>u==="currentTarget"?t:u==="target"?e:u==="preventDefault"?()=>{i=!0,typeof o.preventDefault=="function"&&o.preventDefault()}:u==="defaultPrevented"?i:u in o?o[u]:n[u]})}function ao(n,t){W(t,!0);let e=b(t,"interactOutsideBehavior",3,"close"),r=b(t,"onInteractOutside",3,P),i=b(t,"onFocusOutside",3,P),a=b(t,"isValidEvent",3,()=>!1);const o=On.create({id:y(()=>t.id),interactOutsideBehavior:y(()=>e()),onInteractOutside:y(()=>r()),enabled:y(()=>t.enabled),onFocusOutside:y(()=>i()),isValidEvent:y(()=>a()),ref:t.ref});var u=k(),f=O(u);F(f,()=>t.children??z,()=>({props:o.props})),C(n,u),U()}globalThis.bitsEscapeLayers??(globalThis.bitsEscapeLayers=new Map);var Ze,Je;const jn=class jn{constructor(t){w(this,"opts");w(this,"domContext");c(this,Ze,()=>V(this.domContext.getDocument(),"keydown",s(this,Je),{passive:!1}));c(this,Je,t=>{if(t.key!==Ai||!uo(this))return;const e=new KeyboardEvent(t.type,t);t.preventDefault();const r=this.opts.escapeKeydownBehavior.current;r!=="close"&&r!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(e)});this.opts=t,this.domContext=new Cr(this.opts.ref);let e=P;X(()=>t.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,t.escapeKeydownBehavior),e=s(this,Ze).call(this)),()=>{e(),globalThis.bitsEscapeLayers.delete(this)}))}static create(t){return new jn(t)}};Ze=new WeakMap,Je=new WeakMap;let Nn=jn;function uo(n){const t=[...globalThis.bitsEscapeLayers],e=t.findLast(([i,{current:a}])=>a==="close"||a==="ignore");if(e)return e[0]===n;const[r]=t[0];return r===n}function co(n,t){W(t,!0);let e=b(t,"escapeKeydownBehavior",3,"close"),r=b(t,"onEscapeKeydown",3,P);Nn.create({escapeKeydownBehavior:y(()=>e()),onEscapeKeydown:y(()=>r()),enabled:y(()=>t.enabled),ref:t.ref});var i=k(),a=O(i);F(a,()=>t.children??z),C(n,i),U()}var $,ve,ht;const Qe=class Qe{constructor(){c(this,$,mr([]));c(this,ve,new WeakMap);c(this,ht,new WeakMap)}static getInstance(){return this.instance||(this.instance=new Qe),this.instance}register(t){const e=this.getActive();e&&e!==t&&e.pause();const r=document.activeElement;r&&r!==document.body&&s(this,ht).set(t,r),s(this,$).current=s(this,$).current.filter(i=>i!==t),s(this,$).current.unshift(t)}unregister(t){s(this,$).current=s(this,$).current.filter(r=>r!==t);const e=this.getActive();e&&e.resume()}getActive(){return s(this,$).current[0]}setFocusMemory(t,e){s(this,ve).set(t,e)}getFocusMemory(t){return s(this,ve).get(t)}isActiveScope(t){return this.getActive()===t}setPreFocusMemory(t,e){s(this,ht).set(t,e)}getPreFocusMemory(t){return s(this,ht).get(t)}clearPreFocusMemory(t){s(this,ht).delete(t)}};$=new WeakMap,ve=new WeakMap,ht=new WeakMap,w(Qe,"instance");let Pn=Qe;var rt,R,L,pt,st,N,Vr,Wr,Ur,jr,xn,_e,_n;const Kn=class Kn{constructor(t){c(this,N);c(this,rt,!1);c(this,R,null);c(this,L,Pn.getInstance());c(this,pt,[]);c(this,st);E(this,st,t)}get paused(){return s(this,rt)}pause(){E(this,rt,!0)}resume(){E(this,rt,!1)}mount(t){s(this,R)&&this.unmount(),E(this,R,t),s(this,L).register(this),A(this,N,jr).call(this),A(this,N,Wr).call(this)}unmount(){s(this,R)&&(A(this,N,Vr).call(this),A(this,N,Ur).call(this),s(this,L).unregister(this),s(this,L).clearPreFocusMemory(this),E(this,R,null))}static use(t){let e=null;return X([()=>t.ref.current,()=>t.enabled.current],([r,i])=>{r&&i?(e||(e=new Kn(t)),e.mount(r)):e&&(e.unmount(),e=null)}),Rt(()=>{e==null||e.unmount()}),{get props(){return{tabindex:-1}}}}};rt=new WeakMap,R=new WeakMap,L=new WeakMap,pt=new WeakMap,st=new WeakMap,N=new WeakSet,Vr=function(){for(const t of s(this,pt))t();E(this,pt,[])},Wr=function(){if(!s(this,R))return;const t=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});s(this,st).onOpenAutoFocus.current(t),t.defaultPrevented||requestAnimationFrame(()=>{if(!s(this,R))return;const e=A(this,N,_e).call(this);e?(e.focus(),s(this,L).setFocusMemory(this,e)):s(this,R).focus()})},Ur=function(){var e,r;const t=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if((r=(e=s(this,st).onCloseAutoFocus).current)==null||r.call(e,t),!t.defaultPrevented){const i=s(this,L).getPreFocusMemory(this);if(i&&document.contains(i))try{i.focus()}catch{document.body.focus()}}},jr=function(){if(!s(this,R)||!s(this,st).trap.current)return;const t=s(this,R),e=t.ownerDocument,r=o=>{if(s(this,rt)||!s(this,L).isActiveScope(this))return;const u=o.target;if(!u)return;if(t.contains(u))s(this,L).setFocusMemory(this,u);else{const d=s(this,L).getFocusMemory(this);if(d&&t.contains(d)&&eo(d))o.preventDefault(),d.focus();else{const g=A(this,N,_e).call(this),p=A(this,N,_n).call(this)[0];(g||p||t).focus()}}},i=o=>{if(!s(this,st).loop||s(this,rt)||o.key!=="Tab"||!s(this,L).isActiveScope(this))return;const u=A(this,N,xn).call(this);if(u.length===0)return;const f=u[0],d=u[u.length-1];!o.shiftKey&&e.activeElement===d?(o.preventDefault(),f.focus()):o.shiftKey&&e.activeElement===f&&(o.preventDefault(),d.focus())};s(this,pt).push(V(e,"focusin",r,{capture:!0}),V(t,"keydown",i));const a=new MutationObserver(()=>{const o=s(this,L).getFocusMemory(this);if(o&&!t.contains(o)){const u=A(this,N,_e).call(this),f=A(this,N,_n).call(this)[0],d=u||f;d?(d.focus(),s(this,L).setFocusMemory(this,d)):t.focus()}});a.observe(t,{childList:!0,subtree:!0}),s(this,pt).push(()=>a.disconnect())},xn=function(){return s(this,R)?Qi(s(this,R),{includeContainer:!1,getShadowRoot:!0}):[]},_e=function(){return A(this,N,xn).call(this)[0]||null},_n=function(){return s(this,R)?$i(s(this,R),{includeContainer:!1,getShadowRoot:!0}):[]};let kn=Kn;function lo(n,t){W(t,!0);let e=b(t,"enabled",3,!1),r=b(t,"trapFocus",3,!1),i=b(t,"loop",3,!1),a=b(t,"onCloseAutoFocus",3,P),o=b(t,"onOpenAutoFocus",3,P);const u=kn.use({enabled:y(()=>e()),trap:y(()=>r()),loop:i(),onCloseAutoFocus:y(()=>a()),onOpenAutoFocus:y(()=>o()),ref:t.ref});var f=k(),d=O(f);F(d,()=>t.focusScope??z,()=>({props:u.props})),C(n,f),U()}globalThis.bitsTextSelectionLayers??(globalThis.bitsTextSelectionLayers=new Map);var Nt,$e,Kr,tn,ge;const zn=class zn{constructor(t){c(this,$e);w(this,"opts");w(this,"domContext");c(this,Nt,P);c(this,tn,t=>{const e=this.opts.ref.current,r=t.target;!ir(e)||!ir(r)||!this.opts.enabled.current||!ho(this)||!bi(e,r)||(this.opts.onPointerDown.current(t),!t.defaultPrevented&&E(this,Nt,fo(e,this.domContext.getDocument().body)))});c(this,ge,()=>{s(this,Nt).call(this),E(this,Nt,P)});this.opts=t,this.domContext=new Cr(t.ref);let e=P;X(()=>this.opts.enabled.current,r=>(r&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),e(),e=A(this,$e,Kr).call(this)),()=>{e(),s(this,ge).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}static create(t){return new zn(t)}};Nt=new WeakMap,$e=new WeakSet,Kr=function(){return jt(V(this.domContext.getDocument(),"pointerdown",s(this,tn)),V(this.domContext.getDocument(),"pointerup",yr(s(this,ge),this.opts.onPointerUp.current)))},tn=new WeakMap,ge=new WeakMap;let Rn=zn;const lr=n=>n.style.userSelect||n.style.webkitUserSelect;function fo(n,t){const e=lr(t),r=lr(n);return Ne(t,"none"),Ne(n,"text"),()=>{Ne(t,e),Ne(n,r)}}function Ne(n,t){n.style.userSelect=t,n.style.webkitUserSelect=t}function ho(n){const t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;const e=t.at(-1);return e?e[0]===n:!1}function po(n,t){W(t,!0);let e=b(t,"preventOverflowTextSelection",3,!0),r=b(t,"onPointerDown",3,P),i=b(t,"onPointerUp",3,P);Rn.create({id:y(()=>t.id),onPointerDown:y(()=>r()),onPointerUp:y(()=>i()),enabled:y(()=>t.enabled&&e()),ref:t.ref});var a=k(),o=O(a);F(o,()=>t.children??z),C(n,a),U()}globalThis.bitsIdCounter??(globalThis.bitsIdCounter={current:0});function vo(n="bits"){return globalThis.bitsIdCounter.current++,`${n}-${globalThis.bitsIdCounter.current}`}var be,Pt,vt,gt,en,zr;class go{constructor(t){c(this,en);c(this,be);c(this,Pt,0);c(this,vt,x());c(this,gt);E(this,be,t)}get(...t){return E(this,Pt,s(this,Pt)+1),v(s(this,vt))===void 0&&E(this,gt,ms(()=>{T(s(this,vt),s(this,be).call(this,...t),!0)})),rn(()=>()=>{A(this,en,zr).call(this)}),v(s(this,vt))}}be=new WeakMap,Pt=new WeakMap,vt=new WeakMap,gt=new WeakMap,en=new WeakSet,zr=function(){E(this,Pt,s(this,Pt)-1),s(this,gt)&&s(this,Pt)<=0&&(s(this,gt).call(this),T(s(this,vt),void 0),E(this,gt,void 0))};const Re=new mn;let Pe=x(null),ut=null,Vt=null,Wt=!1;const dr=y(()=>{for(const n of Re.values())if(n)return!0;return!1});let vn=null;const bo=new go(()=>{function n(){document.body.setAttribute("style",v(Pe)??""),document.body.style.removeProperty("--scrollbar-width"),sr&&(ut==null||ut()),T(Pe,null)}function t(){Vt!==null&&(window.clearTimeout(Vt),Vt=null)}function e(i,a){t(),Wt=!0,vn=Date.now();const o=vn,u=()=>{Vt=null,vn===o&&(Gr(Re)?Wt=!1:(Wt=!1,a()))},f=i===null?24:i;Vt=window.setTimeout(u,f)}function r(){v(Pe)===null&&Re.size===0&&!Wt&&T(Pe,document.body.getAttribute("style"),!0)}return X(()=>dr.current,()=>{var g,p;if(!dr.current)return;r(),Wt=!1;const i=getComputedStyle(document.documentElement),a=getComputedStyle(document.body),o=((g=i.scrollbarGutter)==null?void 0:g.includes("stable"))||((p=a.scrollbarGutter)==null?void 0:p.includes("stable")),u=window.innerWidth-document.documentElement.clientWidth,d={padding:Number.parseInt(a.paddingRight??"0",10)+u,margin:Number.parseInt(a.marginRight??"0",10)};u>0&&!o&&(document.body.style.paddingRight=`${d.padding}px`,document.body.style.marginRight=`${d.margin}px`,document.body.style.setProperty("--scrollbar-width",`${u}px`)),document.body.style.overflow="hidden",sr&&(ut=V(document,"touchmove",S=>{S.target===document.documentElement&&(S.touches.length>1||S.preventDefault())},{passive:!1})),Fn(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),Rt(()=>()=>{ut==null||ut()}),{get lockMap(){return Re},resetBodyStyle:n,scheduleCleanupIfNoNewLocks:e,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}});var bt,me,ye,M;class mo{constructor(t,e=()=>null){c(this,bt,vo());c(this,me);c(this,ye,()=>null);c(this,M);w(this,"locked");E(this,me,t),E(this,ye,e),E(this,M,bo.get()),s(this,M)&&(s(this,M).cancelPendingCleanup(),s(this,M).ensureInitialStyleCaptured(),s(this,M).lockMap.set(s(this,bt),s(this,me)??!1),this.locked=y(()=>s(this,M).lockMap.get(s(this,bt))??!1,r=>s(this,M).lockMap.set(s(this,bt),r)),Rt(()=>{if(s(this,M).lockMap.delete(s(this,bt)),Gr(s(this,M).lockMap))return;const r=s(this,ye).call(this);s(this,M).scheduleCleanupIfNoNewLocks(r,()=>{s(this,M).resetBodyStyle()})}))}}bt=new WeakMap,me=new WeakMap,ye=new WeakMap,M=new WeakMap;function Gr(n){for(const[t,e]of n)if(e)return!0;return!1}function fr(n,t){W(t,!0);let e=b(t,"preventScroll",3,!0),r=b(t,"restoreScrollDelay",3,null);e()&&new mo(e(),()=>r()),U()}var yo=we("<div><!></div>");function Ho(n,t){const e=nn();W(t,!0);let r=b(t,"id",19,()=>an(e)),i=b(t,"forceMount",3,!1),a=b(t,"ref",15,null),o=sn(t,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const u=Cn.create({id:y(()=>r()),ref:y(()=>a(),S=>a(S))}),f=_(()=>ot(o,u.props));var d=k(),g=O(d);{var p=S=>{var m=k(),l=O(m);{var h=D=>{var j=k(),B=O(j);{let yt=_(()=>({props:ot(v(f)),...u.snippetProps}));F(B,()=>t.child,()=>v(yt))}C(D,j)},I=D=>{var j=yo();kt(j,yt=>({...yt}),[()=>ot(v(f))]);var B=Ee(j);F(B,()=>t.children??z,()=>u.snippetProps),Se(j),C(D,j)};it(l,D=>{t.child?D(h):D(I,-1)})}C(S,m)};it(g,S=>{(u.shouldRender||i())&&S(p)})}C(n,d),U()}function Xo(n,t){W(t,!0);let e=b(t,"open",15,!1),r=b(t,"onOpenChange",3,P),i=b(t,"onOpenChangeComplete",3,P);En.create({variant:y(()=>"dialog"),open:y(()=>e(),u=>{e(u),r()(u)}),onOpenChangeComplete:y(()=>i())});var a=k(),o=O(a);F(o,()=>t.children??z),C(n,a),U()}var wo=we("<button><!></button>");function Yo(n,t){const e=nn();W(t,!0);let r=b(t,"id",19,()=>an(e)),i=b(t,"ref",15,null),a=b(t,"disabled",3,!1),o=sn(t,["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]);const u=Sn.create({variant:y(()=>"close"),id:y(()=>r()),ref:y(()=>i(),m=>i(m)),disabled:y(()=>!!a())}),f=_(()=>ot(o,u.props));var d=k(),g=O(d);{var p=m=>{var l=k(),h=O(l);F(h,()=>t.child,()=>({props:v(f)})),C(m,l)},S=m=>{var l=wo();kt(l,()=>({...v(f)}));var h=Ee(l);F(h,()=>t.children??z),Se(l),C(m,l)};it(g,m=>{t.child?m(p):m(S,-1)})}C(n,d),U()}var Eo=we("<!> <!>",1),So=we("<!> <div><!></div>",1);function Zo(n,t){const e=nn();W(t,!0);let r=b(t,"id",19,()=>an(e)),i=b(t,"ref",15,null),a=b(t,"forceMount",3,!1),o=b(t,"onCloseAutoFocus",3,P),u=b(t,"onOpenAutoFocus",3,P),f=b(t,"onEscapeKeydown",3,P),d=b(t,"onInteractOutside",3,P),g=b(t,"trapFocus",3,!0),p=b(t,"preventScroll",3,!0),S=b(t,"restoreScrollDelay",3,null),m=sn(t,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const l=An.create({id:y(()=>r()),ref:y(()=>i(),B=>i(B))}),h=_(()=>ot(m,l.props));var I=k(),D=O(I);{var j=B=>{lo(B,{get ref(){return l.opts.ref},loop:!0,get trapFocus(){return g()},get enabled(){return l.root.opts.open.current},get onOpenAutoFocus(){return u()},get onCloseAutoFocus(){return o()},focusScope:(un,Ae)=>{let Gn=()=>Ae==null?void 0:Ae().props;co(un,pn(()=>v(h),{get enabled(){return l.root.opts.open.current},get ref(){return l.opts.ref},onEscapeKeydown:Ce=>{f()(Ce),!Ce.defaultPrevented&&l.root.handleClose()},children:(Ce,To)=>{ao(Ce,pn(()=>v(h),{get ref(){return l.opts.ref},get enabled(){return l.root.opts.open.current},onInteractOutside:Ie=>{d()(Ie),!Ie.defaultPrevented&&l.root.handleClose()},children:(Ie,Ao)=>{po(Ie,pn(()=>v(h),{get ref(){return l.opts.ref},get enabled(){return l.root.opts.open.current},children:(qr,Co)=>{var qn=k(),Hr=O(qn);{var Xr=wt=>{var Ft=Eo(),Dt=O(Ft);{var Lt=at=>{fr(at,{get preventScroll(){return p()},get restoreScrollDelay(){return S()}})};it(Dt,at=>{l.root.opts.open.current&&at(Lt)})}var cn=gn(Dt,2);{let at=_(()=>({props:ot(v(h),Gn()),...l.snippetProps}));F(cn,()=>t.child,()=>v(at))}C(wt,Ft)},Yr=wt=>{var Ft=So(),Dt=O(Ft);fr(Dt,{get preventScroll(){return p()}});var Lt=gn(Dt,2);kt(Lt,at=>({...at}),[()=>ot(v(h),Gn())]);var cn=Ee(Lt);F(cn,()=>t.children??z),Se(Lt),C(wt,Ft)};it(Hr,wt=>{t.child?wt(Xr):wt(Yr,-1)})}C(qr,qn)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};it(D,B=>{(l.shouldRender||a())&&B(j)})}C(n,I),U()}export{Wo as A,qo as B,Er as C,Xo as D,co as E,lo as F,Ir as G,an as H,Bo as I,P as J,Go as P,fr as S,po as T,Ho as a,Zo as b,zo as c,Yo as d,oi as e,Vo as f,on as g,Oe as h,Ko as i,ni as j,yi as k,F as l,y as m,ot as n,ao as o,mi as p,Uo as q,or as r,mr as s,Cr as t,vo as u,jo as v,X as w,Ti as x,Ci as y,Ei as z};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.I1lQdWMl.js","../chunks/BK3WtZwv.js","../chunks/BbWUOQ_m.js","../chunks/lk5LaiqA.js","../chunks/DjNLq3TF.js","../chunks/D5GvRCv7.js","../chunks/DMWEh-Ek.js","../chunks/Dt2CddFe.js","../chunks/B-OsL1Ct.js","../chunks/B2Q1a1-H.js","../chunks/CVzlFH44.js","../chunks/Bu9HsS-V.js","../chunks/5LVkDJzw.js","../chunks/BUApaBEI.js","../chunks/Bp63qm3L.js","../chunks/tB7QMF3U.js","../chunks/Bns1MuyM.js","../chunks/BQqoDzLx.js","../chunks/DFuhmi31.js","../chunks/xtNWTdbD.js","../chunks/CBY2biv-.js","../chunks/mW5RwvnK.js","../chunks/Cihqbfi5.js","../assets/homeFeedPanelStore.CSvlNcpm.css","../assets/0.BB88QFoe.css","../nodes/1.BiQQfx2j.js","../nodes/2.BYWOpaxy.js","../nodes/3.B8Viux9S.js","../chunks/DEDI7Ecm.js","../chunks/bvuf_jZd.js","../chunks/Dw782Tjs.js","../chunks/CWNeClHp.js","../assets/SourcesList.yTBBi3_m.css","../nodes/4.DTSxpKm7.js","../assets/4.9wPHhVwv.css","../nodes/5.B6fR3n6J.js","../chunks/CmjOpds-.js","../assets/BackToParentRoute.DGk-X5ow.css","../assets/5.B-dPiwB7.css","../nodes/6.j2O5Mwjv.js","../assets/6.B27N7pdA.css","../nodes/7.Bd2USIrl.js","../assets/7.CrNxmd8B.css","../nodes/8.Bw_d63B_.js","../chunks/Bfc47y5P.js","../assets/8.Cgji2b15.css","../nodes/9.pMMi5PP6.js","../assets/9.BsCIAvn3.css","../nodes/10.CvfUsqsw.js","../assets/10.Dj8_pmut.css","../nodes/11.B4LHPNL6.js","../assets/11.qYZMiTb0.css","../nodes/12.DVFJuIWI.js","../assets/12.DfJcfUWl.css","../nodes/13.nT3SOzEB.js","../assets/13.BhO9zvFi.css","../nodes/14.DfaAf0f8.js","../assets/14.CujIhjQK.css","../nodes/15.CMzkX9OK.js","../assets/15.nNGjXhCQ.css","../nodes/16.zPgTQNze.js","../chunks/Xy_fhzQq.js","../assets/16.PP9XLDf7.css","../nodes/17.BtYZF6FM.js","../chunks/hp4PFHFv.js","../nodes/18.BIzqhTqv.js"])))=>i.map(i=>d[i]);
2
- var Z=r=>{throw TypeError(r)};var M=(r,t,e)=>t.has(r)||Z("Cannot "+e);var l=(r,t,e)=>(M(r,t,"read from private field"),e?e.call(r):t.get(r)),F=(r,t,e)=>t.has(r)?Z("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),H=(r,t,e,i)=>(M(r,t,"write to private field"),i?i.call(r,e):t.set(r,e),e);import{a5 as z,af as it,i as v,b3 as mt,ai as ut,z as ct,at as lt,am as _t,an as dt,T as ft,f as A,aw as vt,au as ht,b4 as J,av as gt,ax as Et,az as Pt,aA as x}from"../chunks/BbWUOQ_m.js";import{h as pt,m as Rt,u as yt,s as Ot}from"../chunks/DMWEh-Ek.js";import{a as E,c as I,f as $,t as bt}from"../chunks/BK3WtZwv.js";import{o as Lt}from"../chunks/Bp63qm3L.js";import{i as B}from"../chunks/Dt2CddFe.js";import{c as k}from"../chunks/DFuhmi31.js";import{b as S}from"../chunks/Xy_fhzQq.js";import{p as q}from"../chunks/xtNWTdbD.js";function At(r){return class extends Tt{constructor(t){super({component:r,...t})}}}var P,_;class Tt{constructor(t){F(this,P);F(this,_);var p;var e=new Map,i=(o,a)=>{var m=ct(a,!1,!1);return e.set(o,m),m};const u=new Proxy({...t.props||{},$$events:{}},{get(o,a){return v(e.get(a)??i(a,Reflect.get(o,a)))},has(o,a){return a===it?!0:(v(e.get(a)??i(a,Reflect.get(o,a))),Reflect.has(o,a))},set(o,a,m){return z(e.get(a)??i(a,m),m),Reflect.set(o,a,m)}});H(this,_,(t.hydrate?pt:Rt)(t.component,{target:t.target,anchor:t.anchor,props:u,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError})),(!((p=t==null?void 0:t.props)!=null&&p.$$host)||t.sync===!1)&&mt(),H(this,P,u.$$events);for(const o of Object.keys(l(this,_)))o==="$set"||o==="$destroy"||o==="$on"||ut(this,o,{get(){return l(this,_)[o]},set(a){l(this,_)[o]=a},enumerable:!0});l(this,_).$set=o=>{Object.assign(u,o)},l(this,_).$destroy=()=>{yt(l(this,_))}}$set(t){l(this,_).$set(t)}$on(t,e){l(this,P)[t]=l(this,P)[t]||[];const i=(...u)=>e.call(this,...u);return l(this,P)[t].push(i),()=>{l(this,P)[t]=l(this,P)[t].filter(u=>u!==i)}}$destroy(){l(this,_).$destroy()}}P=new WeakMap,_=new WeakMap;const Dt="modulepreload",It=function(r,t){return new URL(r,t).href},N={},s=function(t,e,i){let u=Promise.resolve();if(e&&e.length>0){let o=function(c){return Promise.all(c.map(h=>Promise.resolve(h).then(R=>({status:"fulfilled",value:R}),R=>({status:"rejected",reason:R}))))};const a=document.getElementsByTagName("link"),m=document.querySelector("meta[property=csp-nonce]"),j=(m==null?void 0:m.nonce)||(m==null?void 0:m.getAttribute("nonce"));u=o(e.map(c=>{if(c=It(c,i),c in N)return;N[c]=!0;const h=c.endsWith(".css"),R=h?'[rel="stylesheet"]':"";if(!!i)for(let y=a.length-1;y>=0;y--){const n=a[y];if(n.href===c&&(!h||n.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${R}`))return;const g=document.createElement("link");if(g.rel=h?"stylesheet":Dt,h||(g.as="script"),g.crossOrigin="",g.href=c,j&&g.setAttribute("nonce",j),document.head.appendChild(g),h)return new Promise((y,n)=>{g.addEventListener("load",y),g.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${c}`)))})}))}function p(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return u.then(o=>{for(const a of o||[])a.status==="rejected"&&p(a.reason);return t().catch(p)})},Ht={};var Vt=$('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),wt=$("<!> <!>",1);function xt(r,t){lt(t,!0);let e=q(t,"components",23,()=>[]),i=q(t,"data_0",3,null),u=q(t,"data_1",3,null),p=q(t,"data_2",3,null);_t(()=>t.stores.page.set(t.page)),dt(()=>{t.stores,t.page,t.constructors,e(),t.form,i(),u(),p(),t.stores.page.notify()});let o=J(!1),a=J(!1),m=J(null);Lt(()=>{const n=t.stores.page.subscribe(()=>{v(o)&&(z(a,!0),ft().then(()=>{z(m,document.title||"untitled page",!0)}))});return z(o,!0),n});const j=x(()=>t.constructors[2]);var c=wt(),h=A(c);{var R=n=>{const O=x(()=>t.constructors[0]);var b=I(),V=A(b);k(V,()=>v(O),(L,T)=>{S(T(L,{get data(){return i()},get form(){return t.form},get params(){return t.page.params},children:(d,St)=>{var Q=I(),et=A(Q);{var rt=D=>{const U=x(()=>t.constructors[1]);var w=I(),G=A(w);k(G,()=>v(U),(W,Y)=>{S(Y(W,{get data(){return u()},get form(){return t.form},get params(){return t.page.params},children:(f,jt)=>{var X=I(),ot=A(X);k(ot,()=>v(j),(st,nt)=>{S(nt(st,{get data(){return p()},get form(){return t.form},get params(){return t.page.params}}),C=>e()[2]=C,()=>{var C;return(C=e())==null?void 0:C[2]})}),E(f,X)},$$slots:{default:!0}}),f=>e()[1]=f,()=>{var f;return(f=e())==null?void 0:f[1]})}),E(D,w)},at=D=>{const U=x(()=>t.constructors[1]);var w=I(),G=A(w);k(G,()=>v(U),(W,Y)=>{S(Y(W,{get data(){return u()},get form(){return t.form},get params(){return t.page.params}}),f=>e()[1]=f,()=>{var f;return(f=e())==null?void 0:f[1]})}),E(D,w)};B(et,D=>{t.constructors[2]?D(rt):D(at,-1)})}E(d,Q)},$$slots:{default:!0}}),d=>e()[0]=d,()=>{var d;return(d=e())==null?void 0:d[0]})}),E(n,b)},K=n=>{const O=x(()=>t.constructors[0]);var b=I(),V=A(b);k(V,()=>v(O),(L,T)=>{S(T(L,{get data(){return i()},get form(){return t.form},get params(){return t.page.params}}),d=>e()[0]=d,()=>{var d;return(d=e())==null?void 0:d[0]})}),E(n,b)};B(h,n=>{t.constructors[1]?n(R):n(K,-1)})}var g=vt(h,2);{var y=n=>{var O=Vt(),b=gt(O);{var V=L=>{var T=bt();Pt(()=>Ot(T,v(m))),E(L,T)};B(b,L=>{v(a)&&L(V)})}Et(O),E(n,O)};B(g,n=>{v(o)&&n(y)})}E(r,c),ht()}const Jt=At(xt),Kt=[()=>s(()=>import("../nodes/0.I1lQdWMl.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]),import.meta.url),()=>s(()=>import("../nodes/1.BiQQfx2j.js"),__vite__mapDeps([25,1,2,3,6,10,12,5,13,14]),import.meta.url),()=>s(()=>import("../nodes/2.BYWOpaxy.js"),__vite__mapDeps([26,1,2,3,8]),import.meta.url),()=>s(()=>import("../nodes/3.B8Viux9S.js"),__vite__mapDeps([27,1,2,3,28,29,14,6,4,5,7,17,9,30,10,11,12,13,15,16,18,19,20,21,8,22,23,31,32]),import.meta.url),()=>s(()=>import("../nodes/4.DTSxpKm7.js"),__vite__mapDeps([33,1,2,3,14,6,7,17,28,9,10,20,34]),import.meta.url),()=>s(()=>import("../nodes/5.B6fR3n6J.js"),__vite__mapDeps([35,1,2,3,14,6,7,28,9,30,10,36,4,5,11,12,13,37,20,15,38]),import.meta.url),()=>s(()=>import("../nodes/6.j2O5Mwjv.js"),__vite__mapDeps([39,1,2,3,14,6,7,28,9,30,10,36,4,5,11,12,13,37,20,15,40]),import.meta.url),()=>s(()=>import("../nodes/7.Bd2USIrl.js"),__vite__mapDeps([41,1,2,3,14,4,5,10,12,13,11,42]),import.meta.url),()=>s(()=>import("../nodes/8.Bw_d63B_.js"),__vite__mapDeps([43,1,2,3,6,7,28,9,30,44,10,36,4,5,11,12,13,14,37,45]),import.meta.url),()=>s(()=>import("../nodes/9.pMMi5PP6.js"),__vite__mapDeps([46,1,2,3,14,6,7,17,28,9,10,36,4,5,11,12,13,37,20,15,47]),import.meta.url),()=>s(()=>import("../nodes/10.CvfUsqsw.js"),__vite__mapDeps([48,1,2,3,14,6,7,28,9,30,10,36,4,5,11,12,13,37,20,15,49]),import.meta.url),()=>s(()=>import("../nodes/11.B4LHPNL6.js"),__vite__mapDeps([50,1,2,3,28,29,14,6,4,5,7,17,9,30,10,11,12,13,15,16,18,19,20,21,8,22,23,31,32,36,37,51]),import.meta.url),()=>s(()=>import("../nodes/12.DVFJuIWI.js"),__vite__mapDeps([52,1,2,3,14,6,7,17,28,9,30,44,10,36,4,5,11,12,13,37,20,15,53]),import.meta.url),()=>s(()=>import("../nodes/13.nT3SOzEB.js"),__vite__mapDeps([54,1,2,3,14,6,7,17,28,9,30,10,20,15,5,55]),import.meta.url),()=>s(()=>import("../nodes/14.DfaAf0f8.js"),__vite__mapDeps([56,1,2,3,14,6,5,7,17,28,9,30,10,20,11,12,13,15,31,8,19,4,21,22,57]),import.meta.url),()=>s(()=>import("../nodes/15.CMzkX9OK.js"),__vite__mapDeps([58,1,2,3,14,28,10,12,5,13,59]),import.meta.url),()=>s(()=>import("../nodes/16.zPgTQNze.js"),__vite__mapDeps([60,1,2,3,4,5,6,7,22,28,10,9,20,11,12,13,14,15,61,19,36,37,62]),import.meta.url),()=>s(()=>import("../nodes/17.BtYZF6FM.js"),__vite__mapDeps([63,64,13]),import.meta.url),()=>s(()=>import("../nodes/18.BIzqhTqv.js"),__vite__mapDeps([65,64,13]),import.meta.url)],Qt=[],Xt={"/":[3],"/admin":[4,[2]],"/admin/deliver":[5,[2]],"/admin/llm":[6,[2]],"/admin/logs":[7,[2]],"/admin/parse":[8,[2]],"/admin/pipeline":[9,[2]],"/admin/proxy":[10,[2]],"/admin/sources":[11,[2]],"/admin/tags":[12,[2]],"/logs":[13],"/plugins":[14],"/plugins/new":[15],"/plugins/[id]":[16],"/tags":[17],"/[sub]":[18]},tt={handleError:(({error:r})=>{console.error(r)}),reroute:(()=>{}),transport:{}},kt=Object.fromEntries(Object.entries(tt.transport).map(([r,t])=>[r,t.decode])),Zt=Object.fromEntries(Object.entries(tt.transport).map(([r,t])=>[r,t.encode])),Mt=!1,Nt=(r,t)=>kt[r](t);export{Nt as decode,kt as decoders,Xt as dictionary,Zt as encoders,Mt as hash,tt as hooks,Ht as matchers,Kt as nodes,Jt as root,Qt as server_loads};
@@ -1 +0,0 @@
1
- import{l as o,a as r}from"../chunks/5LVkDJzw.js";export{o as load_css,r as start};
@@ -1 +0,0 @@
1
- import{a as h,f as g}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{at as v,f as l,az as d,au as x,av as e,ax as o,aw as _}from"../chunks/BbWUOQ_m.js";import{s as p}from"../chunks/DMWEh-Ek.js";import{i as $}from"../chunks/CVzlFH44.js";import{s as k,p as m}from"../chunks/5LVkDJzw.js";const b={get error(){return m.error},get status(){return m.status}};k.updated.check;const i=b;var w=g("<h1> </h1> <p> </p>",1);function B(f,n){v(n,!1),$();var t=w(),r=l(t),c=e(r,!0);o(r);var a=_(r,2),u=e(a,!0);o(a),d(()=>{var s;p(c,i.status),p(u,(s=i.error)==null?void 0:s.message)}),h(f,t),x()}export{B as component};
@@ -1 +0,0 @@
1
- import{a as s,f as m}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{f as i,d as c,av as f,aw as d,$ as n,ax as p}from"../chunks/BbWUOQ_m.js";import{h as v}from"../chunks/DEDI7Ecm.js";import{S as l}from"../chunks/bvuf_jZd.js";import{B as _}from"../chunks/CmjOpds-.js";import{P as h}from"../chunks/B2Q1a1-H.js";var u=m('<div class="admin-sources-back svelte-8cr5m9"><!></div> <!>',1);function R(o){var r=u();v("8cr5m9",$=>{c(()=>{n.title=`Sources — ${h}`})});var a=i(r),e=f(a);_(e,{}),p(a);var t=d(a,2);l(t,{}),s(o,r)}export{R as component};
@@ -1 +0,0 @@
1
- import{a as p,f as u}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{o as Rt,a as jt}from"../chunks/Bp63qm3L.js";import{at as At,az as g,i as e,au as Ht,d as Bt,av as a,a5 as r,z as c,aw as n,$ as Gt,ax as s,f as Vt}from"../chunks/BbWUOQ_m.js";import{e as m,s as f}from"../chunks/DMWEh-Ek.js";import{i as nt}from"../chunks/Dt2CddFe.js";import{e as vt}from"../chunks/BQqoDzLx.js";import{h as Zt}from"../chunks/DEDI7Ecm.js";import{c as qt,P as Kt,r as Qt,a as Wt,s as Xt}from"../chunks/B2Q1a1-H.js";import{b as Yt}from"../chunks/Dw782Tjs.js";import{i as te}from"../chunks/CVzlFH44.js";import{a as dt}from"../chunks/CBY2biv-.js";import{s as q}from"../chunks/tB7QMF3U.js";var ee=u("<option> </option>"),se=u('<div class="state err svelte-1lsf4ps"> </div>'),ae=u('<div class="state svelte-1lsf4ps">加载中…</div>'),le=u('<div class="state svelte-1lsf4ps">暂无日志</div>'),re=u('<tr class="payload-row svelte-1lsf4ps"><td colspan="5" class="svelte-1lsf4ps"><pre class="payload-content svelte-1lsf4ps"> </pre></td></tr>'),ie=u('<tr class="log-row svelte-1lsf4ps" role="button" tabindex="0"><td class="td-time svelte-1lsf4ps"> </td><td class="td-level svelte-1lsf4ps"><span> </span></td><td class="td-cat svelte-1lsf4ps"> </td><td class="td-msg svelte-1lsf4ps"> </td><td class="td-detail svelte-1lsf4ps"> </td></tr> <!>',1),oe=u('<div class="log-has-data svelte-1lsf4ps"><div class="log-table-scroll svelte-1lsf4ps"><div class="table-wrap svelte-1lsf4ps"><table class="svelte-1lsf4ps"><thead class="svelte-1lsf4ps"><tr><th class="th-time svelte-1lsf4ps">时间</th><th class="th-level svelte-1lsf4ps">级别</th><th class="th-cat svelte-1lsf4ps">分类</th><th class="th-msg svelte-1lsf4ps">消息</th><th class="th-detail svelte-1lsf4ps">详情</th></tr></thead><tbody class="svelte-1lsf4ps"></tbody></table></div></div> <div class="log-toolbar svelte-1lsf4ps"><span class="pagination-info svelte-1lsf4ps"> </span> <div class="pagination-btns svelte-1lsf4ps"><button class="btn btn-secondary btn-sm svelte-1lsf4ps">上一页</button> <button class="btn btn-secondary btn-sm svelte-1lsf4ps">下一页</button></div></div></div>'),ne=u('<div class="feed-wrap svelte-1lsf4ps"><div class="feed-col svelte-1lsf4ps"><div class="feed-toolbar-block svelte-1lsf4ps"><div class="feed-header svelte-1lsf4ps"><div class="header-left svelte-1lsf4ps"><input type="search" class="filter-input svelte-1lsf4ps" placeholder="过滤…" autocomplete="off" spellcheck="false" aria-label="分类"/></div> <div class="header-right svelte-1lsf4ps"><select class="filter-input filter-input--level svelte-1lsf4ps" aria-label="级别"><option>全部</option><!></select> <button class="admin-toolbar-btn admin-toolbar-btn--danger" type="button" title="清空全部日志">清空</button></div></div></div> <div class="log-body-scroll svelte-1lsf4ps"><!></div></div></div>');function we(ct,ft){At(ft,!1);const pt=["error","warn","info","debug"],ut=350;let d=c([]),y=c(0),h=c(!1),T=c(""),L=c(""),O=c(""),x=null,o=c(0),P=c(null),D=c(!1);const $=100;function I(){x&&(clearTimeout(x),x=null)}function _t(){I(),x=setTimeout(()=>{x=null,r(o,0),b()},ut)}function mt(){r(o,0),b()}Rt(()=>{b()}),jt(()=>{I()});function ht(){const t=new URLSearchParams;t.set("limit",String($)),t.set("offset",String(e(o))),e(L)&&t.set("level",e(L));const l=e(O).trim();return l&&t.set("category",l),"/api/logs?"+t.toString()}async function b(){r(h,!0),r(T,"");try{const t=await dt(ht());if(!t.ok)throw new Error(await t.text().catch(()=>`HTTP ${t.status}`));const l=await t.json();r(d,l.items??[]),r(y,l.total??0)}catch(t){r(T,t instanceof Error?t.message:String(t)),r(d,[]),r(y,0)}finally{r(h,!1)}}async function bt(){if(confirm("确定清空全部日志?此操作不可恢复。")){r(D,!0),I();try{const t=await dt("/api/logs",{method:"DELETE"}),l=await t.text();let i={};try{i=l?JSON.parse(l):{}}catch{i={}}if(!t.ok){q(i.error||l||`HTTP ${t.status}`,"error");return}i.ok&&(q(i.deleted!=null?`已清空 ${i.deleted} 条`:"已清空日志","success"),r(o,0),r(P,null),await b())}catch(t){q(t instanceof Error?t.message:String(t),"error")}finally{r(D,!1)}}}function gt(){e(o)<=0||(r(o,Math.max(0,e(o)-$)),b())}function yt(){e(o)+e(d).length>=e(y)||(r(o,e(o)+$),b())}function K(t){r(P,e(P)===t?null:t)}function xt(t){try{return new Date(t).toLocaleString("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}catch{return t}}function wt(t){if(!t)return"";try{return JSON.stringify(JSON.parse(t),null,2)}catch{return t}}function Et(t){if(t==null||t.trim()==="")return"—";try{return JSON.stringify(JSON.parse(t))}catch{return t.replace(/\s+/g," ").trim()}}te();var C=ne();Zt("1lsf4ps",t=>{Bt(()=>{Gt.title=`日志 - ${Kt}`})});var Q=a(C),F=a(Q),W=a(F),J=a(W),M=a(J);Qt(M),s(J);var X=n(J,2),w=a(X),U=a(w);U.value=U.__value="";var St=n(U);vt(St,1,()=>pt,t=>t,(t,l)=>{var i=ee(),N=a(i,!0);s(i);var E={};g(()=>{f(N,e(l)),E!==(E=e(l))&&(i.value=(i.__value=e(l))??"")}),p(t,i)}),s(w);var Y=n(w,2);s(X),s(W),s(F);var tt=n(F,2),kt=a(tt);{var Tt=t=>{var l=se(),i=a(l,!0);s(l),g(()=>f(i,e(T))),p(t,l)},Lt=t=>{var l=ae();p(t,l)},Pt=t=>{var l=le();p(t,l)},Nt=t=>{var l=oe(),i=a(l),N=a(i),E=a(N),et=n(a(E));vt(et,5,()=>e(d),j=>j.id,(j,v)=>{var rt=ie(),S=Vt(rt),A=a(S),Dt=a(A,!0);s(A);var H=n(A),B=a(H),$t=a(B,!0);s(B),s(H);var G=n(H),It=a(G,!0);s(G);var V=n(G),Ct=a(V,!0);s(V);var Z=n(V),Ft=a(Z,!0);s(Z),s(S);var Jt=n(S,2);{var Mt=_=>{var k=re(),it=a(k),ot=a(it),Ut=a(ot,!0);s(ot),s(it),s(k),g(zt=>f(Ut,zt),[()=>wt(e(v).payload)]),p(_,k)};nt(Jt,_=>{e(P)===e(v).id&&e(v).payload&&_(Mt)})}g((_,k)=>{f(Dt,_),Wt(B,1,`badge level-${e(v).level??""}`,"svelte-1lsf4ps"),f($t,e(v).level),f(It,e(v).category),f(Ct,e(v).message),Xt(Z,"title",e(v).payload??void 0),f(Ft,k)},[()=>xt(e(v).created_at),()=>Et(e(v).payload)]),m("click",S,()=>K(e(v).id)),m("keydown",S,_=>_.key==="Enter"&&K(e(v).id)),p(j,rt)}),s(et),s(E),s(N),s(i);var st=n(i,2),z=a(st),Ot=a(z);s(z);var at=n(z,2),R=a(at),lt=n(R,2);s(at),s(st),s(l),g(()=>{f(Ot,`共 ${e(y)??""} 条,当前 ${e(d).length?`${e(o)+1}–${e(o)+e(d).length}`:"—"}`),R.disabled=e(o)<=0||e(h),lt.disabled=e(o)+e(d).length>=e(y)||e(h)}),m("click",R,gt),m("click",lt,yt),p(t,l)};nt(kt,t=>{e(T)?t(Tt):e(h)&&e(d).length===0?t(Lt,1):e(d).length===0?t(Pt,2):t(Nt,-1)})}s(tt),s(Q),s(C),g(()=>Y.disabled=e(h)||e(D)),Yt(M,()=>e(O),t=>r(O,t)),m("input",M,_t),qt(w,()=>e(L),t=>r(L,t)),m("change",w,mt),m("click",Y,bt),p(ct,C),Ht()}export{we as component};
@@ -1 +0,0 @@
1
- import{a as u,t as rt,f as p}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{o as Et}from"../chunks/Bp63qm3L.js";import{at as Lt,aC as bt,aD as Ot,f as lt,i as t,au as Nt,d as zt,av as r,az as ot,a5 as o,aw as c,z as h,$ as Jt,ax as s,U as b,ay as H}from"../chunks/BbWUOQ_m.js";import{d as Mt,a as D,e as Bt,s as K}from"../chunks/DMWEh-Ek.js";import{g as Ft}from"../chunks/D5GvRCv7.js";import{i as Q}from"../chunks/Dt2CddFe.js";import{e as Ht}from"../chunks/BQqoDzLx.js";import{h as Kt}from"../chunks/DEDI7Ecm.js";import{s as O,P as Qt,r as it}from"../chunks/B2Q1a1-H.js";import{b as nt}from"../chunks/Dw782Tjs.js";import{i as qt}from"../chunks/CVzlFH44.js";import{a as q}from"../chunks/CBY2biv-.js";import{p as Gt}from"../chunks/Bu9HsS-V.js";import{g as dt}from"../chunks/5LVkDJzw.js";import{s as m}from"../chunks/tB7QMF3U.js";import{P as Vt}from"../chunks/CWNeClHp.js";import{D as Wt,P as Xt,a as Yt,b as Zt,c as te,d as gt}from"../chunks/mW5RwvnK.js";var ee=p('<div class="state svelte-1nj0iur">加载中…</div>'),ae=p('<div class="state error svelte-1nj0iur"> </div>'),se=p('<div class="state svelte-1nj0iur">暂无已加载插件。可 <button type="button" class="link-btn svelte-1nj0iur">添加插件</button> 从模板创建,或在 <code>app/plugins/builtin/</code>、<code>.rssany/plugins/</code> 放置 *.rssany.js / *.rssany.ts</div>'),re=p('<div class="state svelte-1nj0iur">无匹配结果</div>'),le=p('<span class="kind-badge svelte-1nj0iur">Source</span>'),oe=p('<button type="button" class="cell-btn cell-btn--primary svelte-1nj0iur">登录</button>'),ie=p('<span class="cell-dash svelte-1nj0iur" title="未声明站点登录">—</span>'),ne=p('<button type="button" class="cell-btn cell-btn--secondary svelte-1nj0iur">检查登录</button>'),de=p('<span class="cell-dash svelte-1nj0iur" title="未声明站点登录">—</span>'),ce=p('<tr class="plugin-row svelte-1nj0iur" tabindex="0"><td class="td-name svelte-1nj0iur"><div class="name-cell svelte-1nj0iur"><span class="plugin-id-text svelte-1nj0iur"> </span> <!></div></td><td class="td-pattern svelte-1nj0iur"><span class="pattern-text svelte-1nj0iur"> </span></td><td class="td-login svelte-1nj0iur"><!></td><td class="td-check svelte-1nj0iur"><!></td></tr>'),ve=p('<div class="plugin-table-wrap svelte-1nj0iur"><table class="plugin-table svelte-1nj0iur"><thead class="svelte-1nj0iur"><tr><th class="th-name svelte-1nj0iur" scope="col">插件名</th><th class="th-pattern svelte-1nj0iur" scope="col">匹配规则</th><th class="th-login svelte-1nj0iur" scope="col">登录</th><th class="th-check svelte-1nj0iur" scope="col">检查登录</th></tr></thead><tbody class="svelte-1nj0iur"></tbody></table></div>'),ue=p('<div class="modal-header svelte-1nj0iur"><!> <!></div> <form class="modal-body svelte-1nj0iur"><p class="add-hint svelte-1nj0iur">对于不支持RSS的站点,添加插件可以覆盖特定站点的解析规则</p> <div class="field svelte-1nj0iur"><span class="field-label svelte-1nj0iur">站点匹配规则</span> <input class="field-input svelte-1nj0iur" type="text" name="listUrlPattern" placeholder="例如 https://www.example.com/* 或 https://example.com/list/{segment}" autocomplete="off"/></div> <div class="field svelte-1nj0iur"><span class="field-label svelte-1nj0iur">插件 id</span> <input class="field-input svelte-1nj0iur" type="text" name="pluginId" placeholder="例如 my-site" autocomplete="off"/></div> <div class="modal-footer svelte-1nj0iur"><div class="modal-footer-right svelte-1nj0iur"><!> <button type="submit" class="btn-save svelte-1nj0iur"> </button></div></div></form>',1),pe=p("<!> <!>",1),fe=p('<div class="feed-wrap svelte-1nj0iur"><div class="feed-col svelte-1nj0iur"><div class="plugins-toolbar-block svelte-1nj0iur"><div class="feed-header svelte-1nj0iur"><div class="header-left svelte-1nj0iur"><input class="filter-input svelte-1nj0iur" type="search" placeholder="过滤…" autocomplete="off"/></div> <div class="header-right svelte-1nj0iur"><button type="button" class="btn-add svelte-1nj0iur" title="添加插件" aria-label="添加插件"><!></button></div></div></div> <div class="plugins-body-scroll svelte-1nj0iur"><!></div></div></div> <!>',1);function Re(jt,yt){Lt(yt,!1);const U=h(),N=h();let $=h([]),z=h(""),G=h(!0),C=h(!1),j=h(""),y=h(""),S=h(!1),J=h("");function ct(){o(j,""),o(y,""),o(C,!0)}function wt(e){o(C,e),e||(o(j,""),o(y,""))}async function Pt(e){e.preventDefault();const a=t(j).trim(),i=t(y).trim();if(!a){m("请填写插件 id","error");return}if(!i){m("请填写支持的站点(URL 或匹配规则)","error");return}o(S,!0);try{const n=await q("/api/plugins",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,listUrlPattern:i})}),_=await n.text();let l={};try{l=_?JSON.parse(_):{}}catch{l={}}if(!n.ok){m(l.error||_||`HTTP ${n.status}`,"error");return}l.ok&&(m("已创建插件文件","success"),o(C,!1),o(j,""),o(y,""),await vt(),await dt("/plugins/"+encodeURIComponent(a)))}catch(n){m("请求失败: "+(n instanceof Error?n.message:String(n)),"error")}finally{o(S,!1)}}async function vt(){o(G,!0),o(z,"");try{const a=await(await q("/api/plugins")).json();o($,[...a].sort((i,n)=>(n.hasAuth?1:0)-(i.hasAuth?1:0)))}catch(e){o(z,"加载失败: "+(e instanceof Error?e.message:String(e)))}finally{o(G,!1)}}async function kt(e,a){a.preventDefault(),a.stopPropagation();try{const n=await(await q(`/auth/check?siteId=${encodeURIComponent(e.id)}`)).json();n.ok?m(`${e.id}:${n.authenticated?"✓ 已登录":"✗ 未登录"}`,n.authenticated?"success":"error"):m(n.message||"检查失败","error")}catch(i){m("请求失败: "+(i instanceof Error?i.message:String(i)),"error")}}function ut(e){dt("/plugins/"+encodeURIComponent(e.id))}function $t(e,a){(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),ut(e))}async function xt(e,a){a.preventDefault(),a.stopPropagation();try{const n=await(await q(`/auth/open?siteId=${encodeURIComponent(e.id)}`,{method:"POST"})).json();n.ok?m(n.message||"已打开登录页面","success"):m(n.message||"打开失败","error")}catch(i){m("请求失败: "+(i instanceof Error?i.message:String(i)),"error")}}Et(()=>{vt(),Ft(Gt).url.searchParams.get("openAdd")==="1"&&(o(j,""),o(y,""),o(C,!0),dt("/plugins",{replaceState:!0}))}),bt(()=>t(J),()=>{o(U,t(J).trim().toLowerCase())}),bt(()=>(t(U),t($)),()=>{o(N,t(U)?t($).filter(e=>e.id.toLowerCase().includes(t(U))||e.listUrlPattern.toLowerCase().includes(t(U))):t($))}),Ot(),qt();var pt=fe();Kt("1nj0iur",e=>{zt(()=>{Jt.title=`插件 - ${Qt}`})});var V=lt(pt),ft=r(V),W=r(ft),mt=r(W),X=r(mt),Y=r(X);it(Y),O(Y,"spellcheck",!1),s(X);var _t=c(X,2),Z=r(_t),Dt=r(Z);Vt(Dt,{size:16,"aria-hidden":"true"}),s(Z),s(_t),s(mt),s(W);var ht=c(W,2),Ut=r(ht);{var Ct=e=>{var a=ee();u(e,a)},St=e=>{var a=ae(),i=r(a,!0);s(a),ot(()=>K(i,t(z))),u(e,a)},At=e=>{var a=se(),i=c(r(a));H(5),s(a),D("click",i,ct),u(e,a)},It=e=>{var a=re();u(e,a)},Rt=e=>{var a=ve(),i=r(a),n=c(r(i));Ht(n,5,()=>t(N),_=>_.id,(_,l)=>{var g=ce(),A=r(g),tt=r(A),x=r(tt),I=r(x,!0);s(x);var M=c(x,2);{var et=d=>{var v=le();u(d,v)};Q(M,d=>{t(l),b(()=>t(l).kind==="source")&&d(et)})}s(tt),s(A);var w=c(A),P=r(w),R=r(P,!0);s(P),s(w);var k=c(w),T=r(k);{var B=d=>{var v=oe();D("click",v,st=>xt(t(l),st)),u(d,v)},F=d=>{var v=ie();u(d,v)};Q(T,d=>{t(l),b(()=>t(l).hasAuth)?d(B):d(F,-1)})}s(k);var E=c(k),L=r(E);{var at=d=>{var v=ne();D("click",v,st=>kt(t(l),st)),u(d,v)},f=d=>{var v=de();u(d,v)};Q(L,d=>{t(l),b(()=>t(l).hasAuth)?d(at):d(f,-1)})}s(E),s(g),ot(()=>{O(g,"aria-label",`打开插件 ${t(l),b(()=>t(l).id)??""}`),K(I,(t(l),b(()=>t(l).id))),O(P,"title",(t(l),b(()=>t(l).listUrlPattern))),K(R,(t(l),b(()=>t(l).listUrlPattern)))}),D("click",g,()=>ut(t(l))),D("keydown",g,d=>$t(t(l),d)),u(_,g)}),s(n),s(i),s(a),u(e,a)};Q(Ut,e=>{t(G)?e(Ct):t(z)?e(St,1):(t($),b(()=>t($).length===0)?e(At,2):(t(N),b(()=>t(N).length===0)?e(It,3):e(Rt,-1)))})}s(ht),s(ft),s(V);var Tt=c(V,2);Wt(Tt,{get open(){return t(C)},onOpenChange:wt,children:(e,a)=>{Xt(e,{children:(i,n)=>{var _=pe(),l=lt(_);Yt(l,{class:"modal-overlay"});var g=c(l,2);Zt(g,{class:"modal","aria-describedby":void 0,children:(A,tt)=>{var x=ue(),I=lt(x),M=r(I);te(M,{class:"modal-title",children:(f,d)=>{H();var v=rt("添加插件");u(f,v)},$$slots:{default:!0}});var et=c(M,2);gt(et,{class:"modal-close","aria-label":"关闭",children:(f,d)=>{H();var v=rt("✕");u(f,v)},$$slots:{default:!0}}),s(I);var w=c(I,2),P=c(r(w),2),R=c(r(P),2);it(R),O(R,"spellcheck",!1),s(P);var k=c(P,2),T=c(r(k),2);it(T),O(T,"spellcheck",!1),s(k);var B=c(k,2),F=r(B),E=r(F);gt(E,{class:"btn-cancel",get disabled(){return t(S)},type:"button",children:(f,d)=>{H();var v=rt("取消");u(f,v)},$$slots:{default:!0}});var L=c(E,2),at=r(L,!0);s(L),s(F),s(B),s(w),ot(()=>{L.disabled=t(S),K(at,t(S)?"创建中…":"创建并打开编辑")}),Bt("submit",w,Pt),nt(R,()=>t(y),f=>o(y,f)),nt(T,()=>t(j),f=>o(j,f)),u(A,x)},$$slots:{default:!0}}),u(i,_)},$$slots:{default:!0}})},$$slots:{default:!0}}),nt(Y,()=>t(J),e=>o(J,e)),D("click",Z,ct),u(jt,pt),Nt()}Mt(["click","keydown"]);export{Re as component};
@@ -1 +0,0 @@
1
- import{a,f as p}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{o as m}from"../chunks/Bp63qm3L.js";import{at as e,au as s,X as i,$ as f}from"../chunks/BbWUOQ_m.js";import{h as n}from"../chunks/DEDI7Ecm.js";import{i as c}from"../chunks/CVzlFH44.js";import{g as d}from"../chunks/5LVkDJzw.js";var h=p('<p class="redirect-msg svelte-1b0rhdm">正在打开添加插件…</p>');function A(o,r){e(r,!1),m(()=>{d("/plugins?openAdd=1",{replaceState:!0})}),c();var t=h();n("1b0rhdm",l=>{i(()=>{f.title="插件"})}),a(o,t),s()}export{A as component};