rssany 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/plugins/builtin/xiaohongshu.rssany.js +59 -2
- package/app/webui/build/200.html +51 -0
- package/app/webui/build/_app/env.js +1 -0
- package/app/webui/build/_app/immutable/assets/0.BLOTwIuF.css +1 -0
- package/app/webui/build/_app/immutable/assets/10.Dj8_pmut.css +1 -0
- package/app/webui/build/_app/immutable/assets/11.qYZMiTb0.css +1 -0
- package/app/webui/build/_app/immutable/assets/12.DfJcfUWl.css +1 -0
- package/app/webui/build/_app/immutable/assets/13.Qu_tY6H9.css +1 -0
- package/app/webui/build/_app/immutable/assets/14.DfMfOrS3.css +1 -0
- package/app/webui/build/_app/immutable/assets/15.nNGjXhCQ.css +1 -0
- package/app/webui/build/_app/immutable/assets/16.Cw9oSkcO.css +1 -0
- package/app/webui/build/_app/immutable/assets/4.Di6rvlY-.css +1 -0
- package/app/webui/build/_app/immutable/assets/5.B-dPiwB7.css +1 -0
- package/app/webui/build/_app/immutable/assets/6.B27N7pdA.css +1 -0
- package/app/webui/build/_app/immutable/assets/7.CrNxmd8B.css +1 -0
- package/app/webui/build/_app/immutable/assets/8.Cgji2b15.css +1 -0
- package/app/webui/build/_app/immutable/assets/9.BsCIAvn3.css +1 -0
- package/app/webui/build/_app/immutable/assets/BackToParentRoute.DGk-X5ow.css +1 -0
- package/app/webui/build/_app/immutable/assets/SourcesList.D5Lso0bo.css +1 -0
- package/app/webui/build/_app/immutable/assets/homeFeedPanelStore.CE6xTfsa.css +1 -0
- package/app/webui/build/_app/immutable/chunks/6prdYIKP.js +1 -0
- package/app/webui/build/_app/immutable/chunks/B-CeeY89.js +1 -0
- package/app/webui/build/_app/immutable/chunks/B2cyTHdf.js +2 -0
- package/app/webui/build/_app/immutable/chunks/B6WG2Sd3.js +1 -0
- package/app/webui/build/_app/immutable/chunks/BA4Gucnq.js +1 -0
- package/app/webui/build/_app/immutable/chunks/BAJAS8BI.js +1 -0
- package/app/webui/build/_app/immutable/chunks/BUApaBEI.js +1 -0
- package/app/webui/build/_app/immutable/chunks/BXTsojX2.js +36 -0
- package/app/webui/build/_app/immutable/chunks/Bfc47y5P.js +1 -0
- package/app/webui/build/_app/immutable/chunks/BkD3yAYe.js +1 -0
- package/app/webui/build/_app/immutable/chunks/Brun6sCr.js +36 -0
- package/app/webui/build/_app/immutable/chunks/C4uF_YIK.js +1 -0
- package/app/webui/build/_app/immutable/chunks/C8umpVpB.js +1 -0
- package/app/webui/build/_app/immutable/chunks/CBY2biv-.js +1 -0
- package/app/webui/build/_app/immutable/chunks/CFwxUBGi.js +1 -0
- package/app/webui/build/_app/immutable/chunks/CGCMIfh3.js +1 -0
- package/app/webui/build/_app/immutable/chunks/CS53ooo0.js +1 -0
- package/app/webui/build/_app/immutable/chunks/ChUctqXA.js +1 -0
- package/app/webui/build/_app/immutable/chunks/ClknbeNl.js +1 -0
- package/app/webui/build/_app/immutable/chunks/D6kzEN_P.js +6 -0
- package/app/webui/build/_app/immutable/chunks/DAV9bzjw.js +1 -0
- package/app/webui/build/_app/immutable/chunks/DAdOEnFb.js +1 -0
- package/app/webui/build/_app/immutable/chunks/DCEayuDt.js +1 -0
- package/app/webui/build/_app/immutable/chunks/DL3Q5sfb.js +1 -0
- package/app/webui/build/_app/immutable/chunks/DVa8Y-mQ.js +1 -0
- package/app/webui/build/_app/immutable/chunks/DXDBlEGf.js +1 -0
- package/app/webui/build/_app/immutable/chunks/DoRPmqLn.js +2 -0
- package/app/webui/build/_app/immutable/chunks/Dr67pd7v.js +1 -0
- package/app/webui/build/_app/immutable/chunks/DsxvjlCC.js +13 -0
- package/app/webui/build/_app/immutable/chunks/Dyvi1wBH.js +1 -0
- package/app/webui/build/_app/immutable/chunks/hp4PFHFv.js +1 -0
- package/app/webui/build/_app/immutable/chunks/vtBo8kBV.js +1 -0
- package/app/webui/build/_app/immutable/entry/app.dq7-6soi.js +2 -0
- package/app/webui/build/_app/immutable/entry/start.BnoTfBrB.js +1 -0
- package/app/webui/build/_app/immutable/nodes/0.CQDkqUeN.js +11 -0
- package/app/webui/build/_app/immutable/nodes/1.BUa24rXB.js +1 -0
- package/app/webui/build/_app/immutable/nodes/10.MZgVhpGF.js +1 -0
- package/app/webui/build/_app/immutable/nodes/11.B39IbrZ0.js +1 -0
- package/app/webui/build/_app/immutable/nodes/12.B5B81dLQ.js +1 -0
- package/app/webui/build/_app/immutable/nodes/13.DWWcH27k.js +6 -0
- package/app/webui/build/_app/immutable/nodes/14.Db6eOPqq.js +1 -0
- package/app/webui/build/_app/immutable/nodes/15.B2jiP2VJ.js +1 -0
- package/app/webui/build/_app/immutable/nodes/16.p6WfP435.js +24 -0
- package/app/webui/build/_app/immutable/nodes/17.BtYZF6FM.js +1 -0
- package/app/webui/build/_app/immutable/nodes/18.BIzqhTqv.js +1 -0
- package/app/webui/build/_app/immutable/nodes/2.AJd2163d.js +1 -0
- package/app/webui/build/_app/immutable/nodes/3.BZQeL-vz.js +1 -0
- package/app/webui/build/_app/immutable/nodes/4.BT_N8pCh.js +2 -0
- package/app/webui/build/_app/immutable/nodes/5.Bo_ftyqW.js +2 -0
- package/app/webui/build/_app/immutable/nodes/6.vOowdQUr.js +1 -0
- package/app/webui/build/_app/immutable/nodes/7.BfVbBKZu.js +1 -0
- package/app/webui/build/_app/immutable/nodes/8.BslYG5f2.js +1 -0
- package/app/webui/build/_app/immutable/nodes/9.DAgT-df2.js +1 -0
- package/app/webui/build/_app/version.json +1 -0
- package/app/webui/build/apple-touch-icon.png +0 -0
- package/app/webui/build/favicon.ico +0 -0
- package/app/webui/build/favicon.png +0 -0
- package/dist/index.js +47 -3
- package/dist/index.js.map +1 -1
- package/package.json +10 -11
- package/scripts/dev.mjs +5 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
var Kn=Object.defineProperty;var qn=Object.getPrototypeOf;var Hn=Reflect.get;var Ke=n=>{throw TypeError(n)};var Xn=(n,t,e)=>t in n?Kn(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var E=(n,t,e)=>Xn(n,typeof t!="symbol"?t+"":t,e),Ee=(n,t,e)=>t.has(n)||Ke("Cannot "+e);var s=(n,t,e)=>(Ee(n,t,"read from private field"),e?e.call(n):t.get(n)),c=(n,t,e)=>t.has(n)?Ke("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),p=(n,t,e,r)=>(Ee(n,t,"write to private field"),r?r.call(n,e):t.set(n,e),e),v=(n,t,e)=>(Ee(n,t,"access private method"),e);var qe=(n,t,e)=>Hn(qn(n),e,t);import{b as Yn,a as L,d as Zn,c as G}from"./CS53ooo0.js";import"./BA4Gucnq.js";import{be as Jn,b as fn,E as dn,h as M,a as He,g as Te,bl as Qn,aF as $n,bm as tr,N as er,n as nr,e as Xe,c as Se,Y as rr,ah as ir,at as ut,au as ct,aq as St,U as kt,av as sr,f as z,aw as or,ax as ar,i as T,aA as ye,aB as ur,b7 as ot,a4 as cr,a5 as k,bn as Ye,A as lr,aN as At,bo as fr,bp as Ze,bq as dr,am as hr,an as we,T as pr,aj as wt,br,bs as mr}from"./vtBo8kBV.js";import{e as vr,i as gr}from"./CFwxUBGi.js";import{s as yr}from"./ChUctqXA.js";import{g as wr,f as Er,o as R,m as Tr,u as Sr}from"./B2cyTHdf.js";import{B as hn,i as Ar}from"./BkD3yAYe.js";import{d as Je,f as Ae}from"./DoRPmqLn.js";import{i as Cr}from"./DVa8Y-mQ.js";import{l as Qe,p as w}from"./BAJAS8BI.js";import{k as xr}from"./DCEayuDt.js";function Ir(){return Symbol(Jn)}function Et(n,t,...e){var r=new hn(n);fn(()=>{const i=t()??null;r.ensure(i,i&&(a=>i(a,...e)))},dn)}function Or(n,t,e,r,i,a){let o=M;M&&He();var u=null;M&&Te.nodeType===Qn&&(u=Te,He());var f=M?Te:n,l=new hn(f,!1);fn(()=>{const b=t()||null;var h=tr;if(b===null){l.ensure(null,null);return}return l.ensure(b,g=>{if(b){if(u=M?u:$n(b,h),Yn(u,u),r){M&&wr(b)&&u.append(document.createComment(""));var A=M?er(u):u.appendChild(nr());M&&(A===null?Xe(!1):Se(A)),r(u,A)}rr.nodes.end=u,g.before(u)}M&&Se(g)}),()=>{}},dn),ir(()=>{}),o&&(Xe(!0),Se(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 kr={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 Nr=Zn("<svg><!><!></svg>");function Ss(n,t){const e=Qe(t,["children","$$slots","$$events","$$legacy"]),r=Qe(e,["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"]);ut(t,!1);let i=w(t,"name",8,void 0),a=w(t,"color",8,"currentColor"),o=w(t,"size",8,24),u=w(t,"strokeWidth",8,2),f=w(t,"absoluteStrokeWidth",8,!1),l=w(t,"iconNode",24,()=>[]);const b=(...m)=>m.filter((d,C,Tt)=>!!d&&Tt.indexOf(d)===C).join(" ");Cr();var h=Nr();Je(h,(m,d)=>({...kr,...r,width:o(),height:o(),stroke:a(),"stroke-width":m,class:d}),[()=>(St(f()),St(u()),St(o()),kt(()=>f()?Number(u())*24/Number(o()):u())),()=>(St(i()),St(e),kt(()=>b("lucide-icon","lucide",i()?`lucide-${i()}`:"",e.class)))]);var g=sr(h);vr(g,1,l,gr,(m,d)=>{var C=ye(()=>ur(T(d),2));let Tt=()=>T(C)[0],jn=()=>T(C)[1];var ze=G(),Gn=z(ze);Or(Gn,Tt,!0,(zn,ls)=>{Je(zn,()=>({...jn()}))}),L(m,ze)});var A=or(g);yr(A,t,"default",{}),ar(h),L(n,h),ct()}function Rr(n){return typeof n=="function"}function Gt(n){return n!==null&&typeof n=="object"}const Pr=["string","number","bigint","boolean"];function xe(n){return n==null||Pr.includes(typeof n)?!0:Array.isArray(n)?n.every(t=>xe(t)):typeof n=="object"?Object.getPrototypeOf(n)===Object.prototype:!1}const Qt=Symbol("box"),pn=Symbol("is-writable");function y(n,t){const e=ye(n);return t?{[Qt]:!0,[pn]:!0,get current(){return T(e)},set current(r){t(r)}}:{[Qt]:!0,get current(){return n()}}}function bn(n){return Gt(n)&&Qt in n}function As(n){return bn(n)?n:Rr(n)?y(n):mn(n)}function mn(n){let t=ot(cr(n));return{[Qt]:!0,[pn]:!0,get current(){return T(t)},set current(e){k(t,e,!0)}}}function vn(...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 $e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,_r=/\n/g,Fr=/^\s*/,Dr=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Lr=/^:\s*/,Mr=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Br=/^[;\s]*/,Wr=/^\s+|\s+$/g,Vr=`
|
|
7
|
+
`,tn="/",en="*",J="",Ur="comment",jr="declaration";function Gr(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(m){var d=m.match(_r);d&&(e+=d.length);var C=m.lastIndexOf(Vr);r=~C?m.length-C:r+m.length}function a(){var m={line:e,column:r};return function(d){return d.position=new o(m),l(),d}}function o(m){this.start=m,this.end={line:e,column:r},this.source=t.source}o.prototype.content=n;function u(m){var d=new Error(t.source+":"+e+":"+r+": "+m);if(d.reason=m,d.filename=t.source,d.line=e,d.column=r,d.source=n,!t.silent)throw d}function f(m){var d=m.exec(n);if(d){var C=d[0];return i(C),n=n.slice(C.length),d}}function l(){f(Fr)}function b(m){var d;for(m=m||[];d=h();)d!==!1&&m.push(d);return m}function h(){var m=a();if(!(tn!=n.charAt(0)||en!=n.charAt(1))){for(var d=2;J!=n.charAt(d)&&(en!=n.charAt(d)||tn!=n.charAt(d+1));)++d;if(d+=2,J===n.charAt(d-1))return u("End of comment missing");var C=n.slice(2,d-2);return r+=2,i(C),n=n.slice(d),r+=2,m({type:Ur,comment:C})}}function g(){var m=a(),d=f(Dr);if(d){if(h(),!f(Lr))return u("property missing ':'");var C=f(Mr),Tt=m({type:jr,property:nn(d[0].replace($e,J)),value:C?nn(C[0].replace($e,J)):J});return f(Br),Tt}}function A(){var m=[];b(m);for(var d;d=g();)d!==!1&&(m.push(d),b(m));return m}return l(),A()}function nn(n){return n?n.replace(Wr,J):J}function zr(n,t){let e=null;if(!n||typeof n!="string")return e;const r=Gr(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 Kr=/\d/,qr=["-","_","/","."];function Hr(n=""){if(!Kr.test(n))return n!==n.toLowerCase()}function Xr(n){const t=[];let e="",r,i;for(const a of n){const o=qr.includes(a);if(o===!0){t.push(e),e="",r=void 0;continue}const u=Hr(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 gn(n){return n?Xr(n).map(t=>Zr(t)).join(""):""}function Yr(n){return Jr(gn(n||""))}function Zr(n){return n?n[0].toUpperCase()+n.slice(1):""}function Jr(n){return n?n[0].toLowerCase()+n.slice(1):""}function Kt(n){if(!n)return{};const t={};function e(r,i){if(r.startsWith("-moz-")||r.startsWith("-webkit-")||r.startsWith("-ms-")||r.startsWith("-o-")){t[gn(r)]=i;return}if(r.startsWith("--")){t[r]=i;return}t[Yr(r)]=i}return zr(n,e),t}function Ot(...n){return(...t)=>{for(const e of n)typeof e=="function"&&e(...t)}}function Qr(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 $r=Qr(/[A-Z]/,n=>`-${n.toLowerCase()}`);function ti(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=>`${$r(t)}: ${n[t]};`).join(`
|
|
8
|
+
`)}function ei(n={}){return ti(n).replace(`
|
|
9
|
+
`," ")}const ni=["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"],ri=new Set(ni);function ii(n){return ri.has(n)}function Cs(...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 l=a,b=o;t[i]=vn(l,b)}else if(u&&f)t[i]=Ot(a,o);else if(i==="class"){const l=xe(a),b=xe(o);l&&b?t[i]=Ae(a,o):l?t[i]=Ae(a):b&&(t[i]=Ae(o))}else if(i==="style"){const l=typeof a=="object",b=typeof o=="object",h=typeof a=="string",g=typeof o=="string";if(l&&b)t[i]={...a,...o};else if(l&&g){const A=Kt(o);t[i]={...a,...A}}else if(h&&b){const A=Kt(a);t[i]={...A,...o}}else if(h&&g){const A=Kt(a),m=Kt(o);t[i]={...A,...m}}else l?t[i]=a:b?t[i]=o:h?t[i]=a:g&&(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=ei(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 si=typeof window<"u"?window:void 0;function oi(n){let t=n.activeElement;for(;t!=null&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var _,F,B,ie,P,It,Xt;const We=class We extends Map{constructor(e){super();c(this,P);c(this,_,new Map);c(this,F,ot(0));c(this,B,ot(0));c(this,ie,Ye||-1);if(e){for(var[r,i]of e)super.set(r,i);s(this,B).v=super.size}}has(e){var r=s(this,_),i=r.get(e);if(i===void 0)if(super.has(e))i=v(this,P,It).call(this,0),r.set(e,i);else return T(s(this,F)),!1;return T(i),!0}forEach(e,r){v(this,P,Xt).call(this),super.forEach(e,r)}get(e){var r=s(this,_),i=r.get(e);if(i===void 0)if(super.has(e))i=v(this,P,It).call(this,0),r.set(e,i);else{T(s(this,F));return}return T(i),super.get(e)}set(e,r){var h;var i=s(this,_),a=i.get(e),o=super.get(e),u=super.set(e,r),f=s(this,F);if(a===void 0)a=v(this,P,It).call(this,0),i.set(e,a),k(s(this,B),super.size),At(f);else if(o!==r){At(a);var l=f.reactions===null?null:new Set(f.reactions),b=l===null||!((h=a.reactions)!=null&&h.every(g=>l.has(g)));b&&At(f)}return u}delete(e){var r=s(this,_),i=r.get(e),a=super.delete(e);return i!==void 0&&(r.delete(e),k(i,-1)),a&&(k(s(this,B),super.size),At(s(this,F))),a}clear(){if(super.size!==0){super.clear();var e=s(this,_);k(s(this,B),0);for(var r of e.values())k(r,-1);At(s(this,F)),e.clear()}}keys(){return T(s(this,F)),super.keys()}values(){return v(this,P,Xt).call(this),super.values()}entries(){return v(this,P,Xt).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return T(s(this,B)),super.size}};_=new WeakMap,F=new WeakMap,B=new WeakMap,ie=new WeakMap,P=new WeakSet,It=function(e){return Ye===s(this,ie)?ot(e):lr(e)},Xt=function(){T(s(this,F));var e=s(this,_);if(s(this,B).v!==e.size){for(var r of qe(We.prototype,this,"keys").call(this))if(!e.has(r)){var i=v(this,P,It).call(this,0);e.set(r,i)}}for([,i]of s(this,_))T(i)};let Ie=We;var lt,Nt;class ai{constructor(t={}){c(this,lt);c(this,Nt);const{window:e=si,document:r=e==null?void 0:e.document}=t;e!==void 0&&(p(this,lt,r),p(this,Nt,Er(i=>{const a=R(e,"focusin",i),o=R(e,"focusout",i);return()=>{a(),o()}})))}get current(){var t;return(t=s(this,Nt))==null||t.call(this),s(this,lt)?oi(s(this,lt)):null}}lt=new WeakMap,Nt=new WeakMap;new ai;var Rt,W;class ui{constructor(t){c(this,Rt);c(this,W);p(this,Rt,t),p(this,W,Symbol(t))}get key(){return s(this,W)}exists(){return fr(s(this,W))}get(){const t=Ze(s(this,W));if(t===void 0)throw new Error(`Context "${s(this,Rt)}" not found`);return t}getOr(t){const e=Ze(s(this,W));return e===void 0?t:e}set(t){return dr(s(this,W),t)}}Rt=new WeakMap,W=new WeakMap;function ci(n,t){switch(n){case"post":we(t);break;case"pre":hr(t);break}}function yn(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(l=>l()):n();if(!a){a=!0,o=u;return}const f=kt(()=>e(u,o));return o=u,f})}function Y(n,t,e){yn(n,"post",t,e)}function li(n,t,e){yn(n,"pre",t,e)}Y.pre=li;function zt(n){we(()=>()=>{n()})}function fi(n,t){return setTimeout(t,n)}function Be(n){pr().then(n)}const di=1,hi=9,pi=11;function Oe(n){return Gt(n)&&n.nodeType===di&&typeof n.nodeName=="string"}function wn(n){return Gt(n)&&n.nodeType===hi}function bi(n){var t;return Gt(n)&&((t=n.constructor)==null?void 0:t.name)==="VisualViewport"}function mi(n){return Gt(n)&&n.nodeType!==void 0}function En(n){return mi(n)&&n.nodeType===pi&&"host"in n}function vi(n,t){var r;if(!n||!t||!Oe(n)||!Oe(t))return!1;const e=(r=t.getRootNode)==null?void 0:r.call(t);if(n===t||n.contains(t))return!0;if(e&&En(e)){let i=t;for(;i;){if(n===i)return!0;i=i.parentNode||i.host}}return!1}function gi(n){return wn(n)?n:bi(n)?n.document:(n==null?void 0:n.ownerDocument)??document}function yi(n){var t;return En(n)?yi(n.host):wn(n)?n.defaultView??window:Oe(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 Pt;class Tn{constructor(t){E(this,"element");c(this,Pt,ye(()=>this.element.current?this.element.current.getRootNode()??document:document));E(this,"getDocument",()=>gi(this.root));E(this,"getWindow",()=>this.getDocument().defaultView??window);E(this,"getActiveElement",()=>wi(this.root));E(this,"isActiveElement",t=>t===this.getActiveElement());E(this,"querySelector",t=>this.root?this.root.querySelector(t):null);E(this,"querySelectorAll",t=>this.root?this.root.querySelectorAll(t):[]);E(this,"setTimeout",(t,e)=>this.getWindow().setTimeout(t,e));E(this,"clearTimeout",t=>this.getWindow().clearTimeout(t));typeof t=="function"?this.element=y(t):this.element=t}get root(){return T(s(this,Pt))}set root(t){k(s(this,Pt),t)}getElementById(t){return this.root.getElementById(t)}}Pt=new WeakMap;function xs(n,t){return{[Ir()]:e=>bn(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 Is(n){return n?"true":"false"}function Os(n){return n?"":void 0}function ks(n){return n?!0:void 0}function Ns(n){return n?"open":"closed"}var ft,_t;class Ei{constructor(t){c(this,ft);c(this,_t);E(this,"attrs");p(this,ft,t.getVariant?t.getVariant():null),p(this,_t,s(this,ft)?`data-${s(this,ft)}-`:`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,_t)}${t}`}selector(t,e){return`[${this.getAttr(t,e)}]`}}ft=new WeakMap,_t=new WeakMap;function Ti(n){const t=new Ei(n);return{...t.attrs,selector:t.selector,getAttr:t.getAttr}}const Rs="ArrowDown",Ps="ArrowUp",_s="End",Fs="Enter",Si="Escape",Ds="Home",Ls="PageDown",Ms="PageUp",Bs=" ",Ws="Tab",Sn=typeof document<"u",rn=Ai();function Ai(){var n,t;return Sn&&((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 sn(n){return n instanceof HTMLElement}function Vs(n){return n instanceof Element}function Ci(n){return n instanceof Element||n instanceof SVGElement}function Us(n){return n.pointerType==="touch"}function js(n){return n!==null}var dt,Q,j,ke,Yt;class xi{constructor(t){c(this,j);c(this,dt);c(this,Q,null);p(this,dt,t),zt(()=>v(this,j,ke).call(this))}run(t){v(this,j,ke).call(this);const e=s(this,dt).ref.current;if(e){if(typeof e.getAnimations!="function"){v(this,j,Yt).call(this,t);return}p(this,Q,window.requestAnimationFrame(()=>{const r=e.getAnimations();if(r.length===0){v(this,j,Yt).call(this,t);return}Promise.allSettled(r.map(i=>i.finished)).then(()=>{v(this,j,Yt).call(this,t)})}))}}}dt=new WeakMap,Q=new WeakMap,j=new WeakSet,ke=function(){s(this,Q)&&(window.cancelAnimationFrame(s(this,Q)),p(this,Q,null))},Yt=function(t){const e=()=>{t()};s(this,dt).afterTick?Be(e):e()};var D,Ft,Dt,$;class Gs{constructor(t){c(this,D);c(this,Ft);c(this,Dt);c(this,$,ot(!1));p(this,D,t),k(s(this,$),t.open.current,!0),p(this,Ft,t.enabled??!0),p(this,Dt,new xi({ref:s(this,D).ref,afterTick:s(this,D).open})),Y(()=>s(this,D).open.current,e=>{e&&k(s(this,$),!0),s(this,Ft)&&s(this,Dt).run(()=>{var r,i;e===s(this,D).open.current&&(s(this,D).open.current||k(s(this,$),!1),(i=(r=s(this,D)).onComplete)==null||i.call(r))})})}get shouldRender(){return T(s(this,$))}}D=new WeakMap,Ft=new WeakMap,Dt=new WeakMap,$=new WeakMap;function N(){}function zs(n,t){return`bits-${n}`}function Ii(n,t){var e=G(),r=z(e);xr(r,()=>t.children,i=>{var a=G(),o=z(a);Et(o,()=>t.children??wt),L(i,a)}),L(n,e)}const Oi=new ui("BitsConfig");function ki(){const n=new Ni(null,{});return Oi.getOr(n).opts}class Ni{constructor(t,e){E(this,"opts");const r=Ri(t,e);this.opts={defaultPortalTo:r(i=>i.defaultPortalTo),defaultLocale:r(i=>i.defaultLocale)}}}function Ri(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 Pi(n,t){return e=>{const r=ki();return y(()=>{const i=e();if(i!==void 0)return i;const a=n(r).current;return a!==void 0?a:t})}}const _i=Pi(n=>n.defaultPortalTo,"body");function Ks(n,t){ut(t,!0);const e=_i(()=>t.to),r=br();let i=ye(a);function a(){if(!Sn||t.disabled)return null;let h=null;return typeof e.current=="string"?h=document.querySelector(e.current):h=e.current,h}let o;function u(){o&&(Sr(o),o=null)}Y([()=>T(i),()=>t.disabled],([h,g])=>{if(!h||g){u();return}return o=Tr(Ii,{target:h,props:{children:t.children},context:r}),()=>{u()}});var f=G(),l=z(f);{var b=h=>{var g=G(),A=z(g);Et(A,()=>t.children??wt),L(h,g)};Ar(l,h=>{t.disabled&&h(b)})}L(n,f),ct()}function on(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 An(n,t){return n===t||n.contains(t)}function Cn(n){return(n==null?void 0:n.ownerDocument)??document}function Fi(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 xn=["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] *)"],$t=xn.join(","),In=typeof Element>"u",at=In?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,te=!In&&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},ee=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]"):ee(t.parentNode));return o},Di=function(t){var e,r=t==null||(e=t.getAttribute)===null||e===void 0?void 0:e.call(t,"contenteditable");return r===""||r==="true"},On=function(t,e,r){if(ee(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll($t));return e&&at.call(t,$t)&&i.unshift(t),i=i.filter(r),i},ne=function(t,e,r){for(var i=[],a=Array.from(t);a.length;){var o=a.shift();if(!ee(o,!1))if(o.tagName==="SLOT"){var u=o.assignedElements(),f=u.length?u:o.children,l=ne(f,!0,r);r.flatten?i.push.apply(i,l):i.push({scopeParent:o,candidates:l})}else{var b=at.call(o,$t);b&&r.filter(o)&&(e||!t.includes(o))&&i.push(o);var h=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),g=!ee(h,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(h&&g){var A=ne(h===!0?o.children:h.children,!0,r);r.flatten?i.push.apply(i,A):i.push({scopeParent:o,candidates:A})}else a.unshift.apply(a,o.children)}}return i},kn=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Nn=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Di(t))&&!kn(t)?0:t.tabIndex},Li=function(t,e){var r=Nn(t);return r<0&&e&&!kn(t)?0:r},Mi=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},Rn=function(t){return t.tagName==="INPUT"},Bi=function(t){return Rn(t)&&t.type==="hidden"},Wi=function(t){var e=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return e},Vi=function(t,e){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===e)return t[r]},Ui=function(t){if(!t.name)return!0;var e=t.form||te(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=Vi(i,t.form);return!a||a===t},ji=function(t){return Rn(t)&&t.type==="radio"},Gi=function(t){return ji(t)&&!Ui(t)},zi=function(t){var e,r=t&&te(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 l,b,h;r=te(i),i=(l=r)===null||l===void 0?void 0:l.host,a=!!((b=i)!==null&&b!==void 0&&(h=b.ownerDocument)!==null&&h!==void 0&&h.contains(i))}}return a},an=function(t){var e=t.getBoundingClientRect(),r=e.width,i=e.height;return r===0&&i===0},Ki=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=at.call(t,"details>summary:first-of-type"),u=o?t.parentElement:t;if(at.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 l=t.parentElement,b=te(t);if(l&&!l.shadowRoot&&i(l)===!0)return an(t);t.assignedSlot?t=t.assignedSlot:!l&&b!==t.ownerDocument?t=b.host:t=l}t=f}if(zi(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return an(t);return!1},qi=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 at.call(e,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}e=e.parentElement}return!1},re=function(t,e){return!(e.disabled||Bi(e)||Ki(e,t)||Wi(e)||qi(e))},Ne=function(t,e){return!(Gi(e)||Nn(e)<0||!re(t,e))},Hi=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},Pn=function(t){var e=[],r=[];return t.forEach(function(i,a){var o=!!i.scopeParent,u=o?i.scopeParent:i,f=Li(u,o),l=o?Pn(i.candidates):u;f===0?o?e.push.apply(e,l):e.push(u):r.push({documentOrder:a,tabIndex:f,item:i,isScope:o,content:l})}),r.sort(Mi).reduce(function(i,a){return a.isScope?i.push.apply(i,a.content):i.push(a.content),i},[]).concat(e)},Xi=function(t,e){e=e||{};var r;return e.getShadowRoot?r=ne([t],e.includeContainer,{filter:Ne.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:Hi}):r=On(t,e.includeContainer,Ne.bind(null,e)),Pn(r)},Yi=function(t,e){e=e||{};var r;return e.getShadowRoot?r=ne([t],e.includeContainer,{filter:re.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):r=On(t,e.includeContainer,re.bind(null,e)),r},qs=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return at.call(t,$t)===!1?!1:Ne(e,t)},Zi=xn.concat("iframe:not([inert]):not([inert] *)").join(","),Ji=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return at.call(t,Zi)===!1?!1:re(e,t)};const Qi="data-context-menu-trigger",$i="data-context-menu-content";Ti({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 ht,tt,K,pt,bt,q,Lt,V,se,yt,_n,oe,mt,ae,ue,ce,le,Mt,Fn,fe,de;const Ve=class Ve{constructor(t){c(this,yt);E(this,"opts");c(this,ht);c(this,tt);c(this,K,{pointerdown:!1});c(this,pt,!1);c(this,bt,!1);c(this,q);c(this,Lt);c(this,V,N);c(this,se,t=>{t.defaultPrevented||this.opts.ref.current&&Be(()=>{var e,r;!this.opts.ref.current||s(this,le).call(this,t.target)||t.target&&!s(this,bt)&&((r=(e=s(this,Lt)).current)==null||r.call(e,t))})});c(this,oe,t=>{let e=t;e.defaultPrevented&&(e=un(t)),s(this,ht).current(t)});c(this,mt,on(t=>{if(!this.opts.ref.current){s(this,V).call(this);return}const e=this.opts.isValidEvent.current(t,this.opts.ref.current)||ns(t,this.opts.ref.current);if(!s(this,pt)||v(this,yt,Fn).call(this)||!e){s(this,V).call(this);return}let r=t;if(r.defaultPrevented&&(r=un(r)),s(this,tt).current!=="close"&&s(this,tt).current!=="defer-otherwise-close"){s(this,V).call(this);return}t.pointerType==="touch"?(s(this,V).call(this),p(this,V,R(s(this,q),"click",s(this,oe),{once:!0}))):s(this,ht).current(r)},10));c(this,ae,t=>{s(this,K)[t.type]=!0});c(this,ue,t=>{s(this,K)[t.type]=!1});c(this,ce,()=>{this.opts.ref.current&&p(this,pt,es(this.opts.ref.current))});c(this,le,t=>this.opts.ref.current?An(this.opts.ref.current,t):!1);c(this,Mt,on(()=>{for(const t in s(this,K))s(this,K)[t]=!1;p(this,pt,!1)},20));c(this,fe,()=>{p(this,bt,!0)});c(this,de,()=>{p(this,bt,!1)});E(this,"props",{onfocuscapture:s(this,fe),onblurcapture:s(this,de)});this.opts=t,p(this,tt,t.interactOutsideBehavior),p(this,ht,t.onInteractOutside),p(this,Lt,t.onFocusOutside),we(()=>{p(this,q,Cn(this.opts.ref.current))});let e=N;const r=()=>{s(this,Mt).call(this),globalThis.bitsDismissableLayers.delete(this),s(this,mt).destroy(),e()};Y([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return fi(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,s(this,tt)),e(),e=v(this,yt,_n).call(this))}),r}),zt(()=>{s(this,Mt).destroy(),globalThis.bitsDismissableLayers.delete(this),s(this,mt).destroy(),s(this,V).call(this),e()})}static create(t){return new Ve(t)}};ht=new WeakMap,tt=new WeakMap,K=new WeakMap,pt=new WeakMap,bt=new WeakMap,q=new WeakMap,Lt=new WeakMap,V=new WeakMap,se=new WeakMap,yt=new WeakSet,_n=function(){return Ot(R(s(this,q),"pointerdown",Ot(s(this,ae),s(this,ce)),{capture:!0}),R(s(this,q),"pointerdown",Ot(s(this,ue),s(this,mt))),R(s(this,q),"focusin",s(this,se)))},oe=new WeakMap,mt=new WeakMap,ae=new WeakMap,ue=new WeakMap,ce=new WeakMap,le=new WeakMap,Mt=new WeakMap,Fn=function(){return Object.values(s(this,K)).some(Boolean)},fe=new WeakMap,de=new WeakMap;let Re=Ve;function ts(n=[...globalThis.bitsDismissableLayers]){return n.findLast(([t,{current:e}])=>e==="close"||e==="ignore")}function es(n){const t=[...globalThis.bitsDismissableLayers],e=ts(t);if(e)return e[0].opts.ref.current===n;const[r]=t[0];return r.opts.ref.current===n}function ns(n,t){const e=n.target;if(!Ci(e))return!1;const r=!!e.closest(`[${Qi}]`);if("button"in n&&n.button>0&&!r)return!1;if("button"in n&&n.button===0&&r)return!0;const i=!!t.closest(`[${$i}]`);return r&&i?!1:Cn(e).documentElement.contains(e)&&!An(t,e)&&Fi(n,t)}function un(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 Hs(n,t){ut(t,!0);let e=w(t,"interactOutsideBehavior",3,"close"),r=w(t,"onInteractOutside",3,N),i=w(t,"onFocusOutside",3,N),a=w(t,"isValidEvent",3,()=>!1);const o=Re.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=G(),f=z(u);Et(f,()=>t.children??wt,()=>({props:o.props})),L(n,u),ct()}globalThis.bitsEscapeLayers??(globalThis.bitsEscapeLayers=new Map);var he,pe;const Ue=class Ue{constructor(t){E(this,"opts");E(this,"domContext");c(this,he,()=>R(this.domContext.getDocument(),"keydown",s(this,pe),{passive:!1}));c(this,pe,t=>{if(t.key!==Si||!rs(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 Tn(this.opts.ref);let e=N;Y(()=>t.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,t.escapeKeydownBehavior),e=s(this,he).call(this)),()=>{e(),globalThis.bitsEscapeLayers.delete(this)}))}static create(t){return new Ue(t)}};he=new WeakMap,pe=new WeakMap;let Pe=Ue;function rs(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 Xs(n,t){ut(t,!0);let e=w(t,"escapeKeydownBehavior",3,"close"),r=w(t,"onEscapeKeydown",3,N);Pe.create({escapeKeydownBehavior:y(()=>e()),onEscapeKeydown:y(()=>r()),enabled:y(()=>t.enabled),ref:t.ref});var i=G(),a=z(i);Et(a,()=>t.children??wt),L(n,i),ct()}var U,Bt,et;const be=class be{constructor(){c(this,U,mn([]));c(this,Bt,new WeakMap);c(this,et,new WeakMap)}static getInstance(){return this.instance||(this.instance=new be),this.instance}register(t){const e=this.getActive();e&&e!==t&&e.pause();const r=document.activeElement;r&&r!==document.body&&s(this,et).set(t,r),s(this,U).current=s(this,U).current.filter(i=>i!==t),s(this,U).current.unshift(t)}unregister(t){s(this,U).current=s(this,U).current.filter(r=>r!==t);const e=this.getActive();e&&e.resume()}getActive(){return s(this,U).current[0]}setFocusMemory(t,e){s(this,Bt).set(t,e)}getFocusMemory(t){return s(this,Bt).get(t)}isActiveScope(t){return this.getActive()===t}setPreFocusMemory(t,e){s(this,et).set(t,e)}getPreFocusMemory(t){return s(this,et).get(t)}clearPreFocusMemory(t){s(this,et).delete(t)}};U=new WeakMap,Bt=new WeakMap,et=new WeakMap,E(be,"instance");let _e=be;var H,x,I,nt,X,S,Dn,Ln,Mn,Bn,De,Zt,Le;const je=class je{constructor(t){c(this,S);c(this,H,!1);c(this,x,null);c(this,I,_e.getInstance());c(this,nt,[]);c(this,X);p(this,X,t)}get paused(){return s(this,H)}pause(){p(this,H,!0)}resume(){p(this,H,!1)}mount(t){s(this,x)&&this.unmount(),p(this,x,t),s(this,I).register(this),v(this,S,Bn).call(this),v(this,S,Ln).call(this)}unmount(){s(this,x)&&(v(this,S,Dn).call(this),v(this,S,Mn).call(this),s(this,I).unregister(this),s(this,I).clearPreFocusMemory(this),p(this,x,null))}static use(t){let e=null;return Y([()=>t.ref.current,()=>t.enabled.current],([r,i])=>{r&&i?(e||(e=new je(t)),e.mount(r)):e&&(e.unmount(),e=null)}),zt(()=>{e==null||e.unmount()}),{get props(){return{tabindex:-1}}}}};H=new WeakMap,x=new WeakMap,I=new WeakMap,nt=new WeakMap,X=new WeakMap,S=new WeakSet,Dn=function(){for(const t of s(this,nt))t();p(this,nt,[])},Ln=function(){if(!s(this,x))return;const t=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});s(this,X).onOpenAutoFocus.current(t),t.defaultPrevented||requestAnimationFrame(()=>{if(!s(this,x))return;const e=v(this,S,Zt).call(this);e?(e.focus(),s(this,I).setFocusMemory(this,e)):s(this,x).focus()})},Mn=function(){var e,r;const t=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if((r=(e=s(this,X).onCloseAutoFocus).current)==null||r.call(e,t),!t.defaultPrevented){const i=s(this,I).getPreFocusMemory(this);if(i&&document.contains(i))try{i.focus()}catch{document.body.focus()}}},Bn=function(){if(!s(this,x)||!s(this,X).trap.current)return;const t=s(this,x),e=t.ownerDocument,r=o=>{if(s(this,H)||!s(this,I).isActiveScope(this))return;const u=o.target;if(!u)return;if(t.contains(u))s(this,I).setFocusMemory(this,u);else{const l=s(this,I).getFocusMemory(this);if(l&&t.contains(l)&&Ji(l))o.preventDefault(),l.focus();else{const b=v(this,S,Zt).call(this),h=v(this,S,Le).call(this)[0];(b||h||t).focus()}}},i=o=>{if(!s(this,X).loop||s(this,H)||o.key!=="Tab"||!s(this,I).isActiveScope(this))return;const u=v(this,S,De).call(this);if(u.length===0)return;const f=u[0],l=u[u.length-1];!o.shiftKey&&e.activeElement===l?(o.preventDefault(),f.focus()):o.shiftKey&&e.activeElement===f&&(o.preventDefault(),l.focus())};s(this,nt).push(R(e,"focusin",r,{capture:!0}),R(t,"keydown",i));const a=new MutationObserver(()=>{const o=s(this,I).getFocusMemory(this);if(o&&!t.contains(o)){const u=v(this,S,Zt).call(this),f=v(this,S,Le).call(this)[0],l=u||f;l?(l.focus(),s(this,I).setFocusMemory(this,l)):t.focus()}});a.observe(t,{childList:!0,subtree:!0}),s(this,nt).push(()=>a.disconnect())},De=function(){return s(this,x)?Xi(s(this,x),{includeContainer:!1,getShadowRoot:!0}):[]},Zt=function(){return v(this,S,De).call(this)[0]||null},Le=function(){return s(this,x)?Yi(s(this,x),{includeContainer:!1,getShadowRoot:!0}):[]};let Fe=je;function Ys(n,t){ut(t,!0);let e=w(t,"enabled",3,!1),r=w(t,"trapFocus",3,!1),i=w(t,"loop",3,!1),a=w(t,"onCloseAutoFocus",3,N),o=w(t,"onOpenAutoFocus",3,N);const u=Fe.use({enabled:y(()=>e()),trap:y(()=>r()),loop:i(),onCloseAutoFocus:y(()=>a()),onOpenAutoFocus:y(()=>o()),ref:t.ref});var f=G(),l=z(f);Et(l,()=>t.focusScope??wt,()=>({props:u.props})),L(n,f),ct()}globalThis.bitsTextSelectionLayers??(globalThis.bitsTextSelectionLayers=new Map);var vt,me,Wn,ve,Wt;const Ge=class Ge{constructor(t){c(this,me);E(this,"opts");E(this,"domContext");c(this,vt,N);c(this,ve,t=>{const e=this.opts.ref.current,r=t.target;!sn(e)||!sn(r)||!this.opts.enabled.current||!ss(this)||!vi(e,r)||(this.opts.onPointerDown.current(t),!t.defaultPrevented&&p(this,vt,is(e,this.domContext.getDocument().body)))});c(this,Wt,()=>{s(this,vt).call(this),p(this,vt,N)});this.opts=t,this.domContext=new Tn(t.ref);let e=N;Y(()=>this.opts.enabled.current,r=>(r&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),e(),e=v(this,me,Wn).call(this)),()=>{e(),s(this,Wt).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}static create(t){return new Ge(t)}};vt=new WeakMap,me=new WeakSet,Wn=function(){return Ot(R(this.domContext.getDocument(),"pointerdown",s(this,ve)),R(this.domContext.getDocument(),"pointerup",vn(s(this,Wt),this.opts.onPointerUp.current)))},ve=new WeakMap,Wt=new WeakMap;let Me=Ge;const cn=n=>n.style.userSelect||n.style.webkitUserSelect;function is(n,t){const e=cn(t),r=cn(n);return qt(t,"none"),qt(n,"text"),()=>{qt(t,e),qt(n,r)}}function qt(n,t){n.style.userSelect=t,n.style.webkitUserSelect=t}function ss(n){const t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;const e=t.at(-1);return e?e[0]===n:!1}function Zs(n,t){ut(t,!0);let e=w(t,"preventOverflowTextSelection",3,!0),r=w(t,"onPointerDown",3,N),i=w(t,"onPointerUp",3,N);Me.create({id:y(()=>t.id),onPointerDown:y(()=>r()),onPointerUp:y(()=>i()),enabled:y(()=>t.enabled&&e()),ref:t.ref});var a=G(),o=z(a);Et(o,()=>t.children??wt),L(n,a),ct()}globalThis.bitsIdCounter??(globalThis.bitsIdCounter={current:0});function os(n="bits"){return globalThis.bitsIdCounter.current++,`${n}-${globalThis.bitsIdCounter.current}`}var Vt,gt,rt,it,ge,Vn;class as{constructor(t){c(this,ge);c(this,Vt);c(this,gt,0);c(this,rt,ot());c(this,it);p(this,Vt,t)}get(...t){return p(this,gt,s(this,gt)+1),T(s(this,rt))===void 0&&p(this,it,mr(()=>{k(s(this,rt),s(this,Vt).call(this,...t),!0)})),we(()=>()=>{v(this,ge,Vn).call(this)}),T(s(this,rt))}}Vt=new WeakMap,gt=new WeakMap,rt=new WeakMap,it=new WeakMap,ge=new WeakSet,Vn=function(){p(this,gt,s(this,gt)-1),s(this,it)&&s(this,gt)<=0&&(s(this,it).call(this),k(s(this,rt),void 0),p(this,it,void 0))};const Jt=new Ie;let Ht=ot(null),Z=null,Ct=null,xt=!1;const ln=y(()=>{for(const n of Jt.values())if(n)return!0;return!1});let Ce=null;const us=new as(()=>{function n(){document.body.setAttribute("style",T(Ht)??""),document.body.style.removeProperty("--scrollbar-width"),rn&&(Z==null||Z()),k(Ht,null)}function t(){Ct!==null&&(window.clearTimeout(Ct),Ct=null)}function e(i,a){t(),xt=!0,Ce=Date.now();const o=Ce,u=()=>{Ct=null,Ce===o&&(Un(Jt)?xt=!1:(xt=!1,a()))},f=i===null?24:i;Ct=window.setTimeout(u,f)}function r(){T(Ht)===null&&Jt.size===0&&!xt&&k(Ht,document.body.getAttribute("style"),!0)}return Y(()=>ln.current,()=>{var b,h;if(!ln.current)return;r(),xt=!1;const i=getComputedStyle(document.documentElement),a=getComputedStyle(document.body),o=((b=i.scrollbarGutter)==null?void 0:b.includes("stable"))||((h=a.scrollbarGutter)==null?void 0:h.includes("stable")),u=window.innerWidth-document.documentElement.clientWidth,l={padding:Number.parseInt(a.paddingRight??"0",10)+u,margin:Number.parseInt(a.marginRight??"0",10)};u>0&&!o&&(document.body.style.paddingRight=`${l.padding}px`,document.body.style.marginRight=`${l.margin}px`,document.body.style.setProperty("--scrollbar-width",`${u}px`)),document.body.style.overflow="hidden",rn&&(Z=R(document,"touchmove",g=>{g.target===document.documentElement&&(g.touches.length>1||g.preventDefault())},{passive:!1})),Be(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),zt(()=>()=>{Z==null||Z()}),{get lockMap(){return Jt},resetBodyStyle:n,scheduleCleanupIfNoNewLocks:e,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}});var st,Ut,jt,O;class cs{constructor(t,e=()=>null){c(this,st,os());c(this,Ut);c(this,jt,()=>null);c(this,O);E(this,"locked");p(this,Ut,t),p(this,jt,e),p(this,O,us.get()),s(this,O)&&(s(this,O).cancelPendingCleanup(),s(this,O).ensureInitialStyleCaptured(),s(this,O).lockMap.set(s(this,st),s(this,Ut)??!1),this.locked=y(()=>s(this,O).lockMap.get(s(this,st))??!1,r=>s(this,O).lockMap.set(s(this,st),r)),zt(()=>{if(s(this,O).lockMap.delete(s(this,st)),Un(s(this,O).lockMap))return;const r=s(this,jt).call(this);s(this,O).scheduleCleanupIfNoNewLocks(r,()=>{s(this,O).resetBodyStyle()})}))}}st=new WeakMap,Ut=new WeakMap,jt=new WeakMap,O=new WeakMap;function Un(n){for(const[t,e]of n)if(e)return!0;return!1}function Js(n,t){ut(t,!0);let e=w(t,"preventScroll",3,!0),r=w(t,"restoreScrollDelay",3,null);e()&&new cs(e(),()=>r()),ct()}export{ei as A,yi as B,ui as C,Hs as D,Fs as E,Ys as F,Be as G,Ps as H,Ss as I,Rs as J,Ws as K,Ms as L,Ds as M,Ls as N,_s as O,Ks as P,rn as Q,ks as R,Bs as S,Zs as T,Gs as a,y as b,Ti as c,xs as d,Os as e,zs as f,Ns as g,Xs as h,Js as i,gi as j,Vs as k,Tn as l,Cs as m,N as n,zt as o,Us as p,Is as q,qs as r,Et as s,si as t,mn as u,As as v,Y as w,os as x,Kt as y,js as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ar as t,an as u,W as o,aa as c,U as e}from"./vtBo8kBV.js";function l(n){o===null&&t(),c&&o.l!==null?s(o).m.push(n):u(()=>{const a=e(n);if(typeof a=="function")return a})}function i(n){o===null&&t(),l(()=>()=>e(n))}function s(n){var a=n.l;return a.u??(a.u={a:[],b:[],m:[]})}export{i as a,l as o};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{R as e}from"./BUApaBEI.js";function i(r,t){throw new e(r,t.toString())}export{i as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var wt=Object.defineProperty;var Sn=e=>{throw TypeError(e)};var yt=(e,n,t)=>n in e?wt(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var ae=(e,n,t)=>yt(e,typeof n!="symbol"?n+"":n,t),Ze=(e,n,t)=>n.has(e)||Sn("Cannot "+t);var _=(e,n,t)=>(Ze(e,n,"read from private field"),t?t.call(e):n.get(e)),D=(e,n,t)=>n.has(e)?Sn("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,t),K=(e,n,t,r)=>(Ze(e,n,"write to private field"),r?r.call(e,t):n.set(e,t),t),q=(e,n,t)=>(Ze(e,n,"access private method"),t);var Et=Array.isArray,mt=Array.prototype.indexOf,Se=Array.prototype.includes,hr=Array.from,wr=Object.defineProperty,Ie=Object.getOwnPropertyDescriptor,gt=Object.getOwnPropertyDescriptors,bt=Object.prototype,Tt=Array.prototype,Ln=Object.getPrototypeOf,xn=Object.isExtensible;function yr(e){return typeof e=="function"}const At=()=>{};function Er(e){return e()}function St(e){for(var n=0;n<e.length;n++)e[n]()}function jn(){var e,n,t=new Promise((r,s)=>{e=r,n=s});return{promise:t,resolve:e,reject:n}}function mr(e,n){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const t=[];for(const r of e)if(t.push(r),t.length===n)break;return t}const T=2,_e=4,Le=8,cn=1<<24,se=16,G=32,Q=64,xt=128,M=512,m=1024,R=2048,H=4096,V=8192,B=16384,we=32768,Rn=1<<25,qe=65536,Nn=1<<17,Rt=1<<18,Re=1<<19,Yn=1<<20,gr=1<<25,ve=65536,Qe=1<<21,_n=1<<22,W=1<<23,ue=Symbol("$state"),br=Symbol("legacy props"),Tr=Symbol(""),$=new class extends Error{constructor(){super(...arguments);ae(this,"name","StaleReactionError");ae(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};var Fn;const Sr=!!((Fn=globalThis.document)!=null&&Fn.contentType)&&globalThis.document.contentType.includes("xml"),xr=1,$e=3,Hn=8;function Nt(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Ot(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Rr(e,n,t){throw new Error("https://svelte.dev/e/each_key_duplicate")}function kt(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ct(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Dt(e){throw new Error("https://svelte.dev/e/effect_orphan")}function It(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Nr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Or(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Pt(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Mt(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ft(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function kr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Cr=1,Dr=2,Ir=4,Pr=8,Mr=16,Fr=1,Lr=2,jr=4,Yr=8,Hr=16,qr=1,Ur=2,Lt="[",jt="[!",Vr="[?",Yt="]",vn={},A=Symbol(),Ht="http://www.w3.org/1999/xhtml",Br="http://www.w3.org/2000/svg",Gr="@attach";function dn(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Kr(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function $r(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let de=!1;function zr(e){de=e}let b;function xe(e){if(e===null)throw dn(),vn;return b=e}function Xr(){return xe(fe(b))}function Zr(e){if(de){if(fe(b)!==null)throw dn(),vn;b=e}}function Wr(e=1){if(de){for(var n=e,t=b;n--;)t=fe(t);b=t}}function Jr(e=!0){for(var n=0,t=b;;){if(t.nodeType===Hn){var r=t.data;if(r===Yt){if(n===0)return t;n-=1}else(r===Lt||r===jt||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(n+=1)}var s=fe(t);e&&t.remove(),t=s}}function Qr(e){if(!e||e.nodeType!==Hn)throw dn(),vn;return e.data}function qn(e){return e===this.v}function qt(e,n){return e!=e?n==n:e!==n||e!==null&&typeof e=="object"||typeof e=="function"}function Un(e){return!qt(e,this.v)}let ze=!1;function es(){ze=!0}let y=null;function Ue(e){y=e}function ns(e){return Xe().get(e)}function ts(e,n){return Xe().set(e,n),n}function rs(e){return Xe().has(e)}function ss(){return Xe()}function fs(e,n=!1,t){y={p:y,i:!1,c:null,e:null,s:e,x:null,r:w,l:ze&&!n?{s:null,u:null,$:[]}:null}}function as(e){var n=y,t=n.e;if(t!==null){n.e=null;for(var r of t)st(r)}return n.i=!0,y=n.p,{}}function je(){return!ze||y!==null&&y.l===null}function Xe(e){return y===null&&Nt(),y.c??(y.c=new Map(Ut(y)||void 0))}function Ut(e){let n=e.p;for(;n!==null;){const t=n.c;if(t!==null)return t;n=n.p}return null}let ie=[];function Vn(){var e=ie;ie=[],St(e)}function en(e){if(ie.length===0&&!Pe){var n=ie;queueMicrotask(()=>{n===ie&&Vn()})}ie.push(e)}function Vt(){for(;ie.length>0;)Vn()}function Bt(e){var n=w;if(n===null)return d.f|=W,e;if((n.f&we)===0&&(n.f&_e)===0)throw e;Ve(e,n)}function Ve(e,n){for(;n!==null;){if((n.f&xt)!==0){if((n.f&we)===0)throw e;try{n.b.error(e);return}catch(t){e=t}}n=n.parent}throw e}const Gt=-7169;function E(e,n){e.f=e.f&Gt|n}function pn(e){(e.f&M)!==0||e.deps===null?E(e,m):E(e,H)}function Bn(e){if(e!==null)for(const n of e)(n.f&T)===0||(n.f&ve)===0||(n.f^=ve,Bn(n.deps))}function Kt(e,n,t){(e.f&R)!==0?n.add(e):(e.f&H)!==0&&t.add(e),Bn(e.deps),E(e,m)}const Ce=new Set;let p=null,S=null,nn=null,Pe=!1,We=!1,ye=null,Ye=null;var On=0;let $t=1;var Ee,me,ge,be,Fe,P,Te,Z,U,Ae,x,tn,rn,sn,fn,Gn;const Ke=class Ke{constructor(){D(this,x);ae(this,"id",$t++);ae(this,"current",new Map);ae(this,"previous",new Map);D(this,Ee,new Set);D(this,me,new Set);D(this,ge,0);D(this,be,0);D(this,Fe,null);D(this,P,[]);D(this,Te,new Set);D(this,Z,new Set);D(this,U,new Map);ae(this,"is_fork",!1);D(this,Ae,!1)}skip_effect(n){_(this,U).has(n)||_(this,U).set(n,{d:[],m:[]})}unskip_effect(n){var t=_(this,U).get(n);if(t){_(this,U).delete(n);for(var r of t.d)E(r,R),this.schedule(r);for(r of t.m)E(r,H),this.schedule(r)}}capture(n,t){t!==A&&!this.previous.has(n)&&this.previous.set(n,t),(n.f&W)===0&&(this.current.set(n,n.v),S==null||S.set(n,n.v))}activate(){p=this}deactivate(){p=null,S=null}flush(){try{if(We=!0,p=this,!q(this,x,tn).call(this)){for(const n of _(this,Te))_(this,Z).delete(n),E(n,R),this.schedule(n);for(const n of _(this,Z))E(n,H),this.schedule(n)}q(this,x,rn).call(this)}finally{On=0,nn=null,ye=null,Ye=null,We=!1,p=null,S=null,J.clear()}}discard(){for(const n of _(this,me))n(this);_(this,me).clear()}increment(n){K(this,ge,_(this,ge)+1),n&&K(this,be,_(this,be)+1)}decrement(n,t){K(this,ge,_(this,ge)-1),n&&K(this,be,_(this,be)-1),!(_(this,Ae)||t)&&(K(this,Ae,!0),en(()=>{K(this,Ae,!1),this.flush()}))}oncommit(n){_(this,Ee).add(n)}ondiscard(n){_(this,me).add(n)}settled(){return(_(this,Fe)??K(this,Fe,jn())).promise}static ensure(){if(p===null){const n=p=new Ke;We||(Ce.add(p),Pe||en(()=>{p===n&&n.flush()}))}return p}apply(){}schedule(n){var s;if(nn=n,(s=n.b)!=null&&s.is_pending&&(n.f&(_e|Le|cn))!==0&&(n.f&we)===0){n.b.defer_effect(n);return}for(var t=n;t.parent!==null;){t=t.parent;var r=t.f;if(ye!==null&&t===w&&(d===null||(d.f&T)===0))return;if((r&(Q|G))!==0){if((r&m)===0)return;t.f^=m}}_(this,P).push(t)}};Ee=new WeakMap,me=new WeakMap,ge=new WeakMap,be=new WeakMap,Fe=new WeakMap,P=new WeakMap,Te=new WeakMap,Z=new WeakMap,U=new WeakMap,Ae=new WeakMap,x=new WeakSet,tn=function(){return this.is_fork||_(this,be)>0},rn=function(){var l,a;On++>1e3&&Xt();const n=_(this,P);K(this,P,[]),this.apply();var t=ye=[],r=[],s=Ye=[];for(const i of n)q(this,x,sn).call(this,i,t,r);if(p=null,s.length>0){var f=Ke.ensure();for(const i of s)f.schedule(i)}if(ye=null,Ye=null,q(this,x,tn).call(this)){q(this,x,fn).call(this,r),q(this,x,fn).call(this,t);for(const[i,u]of _(this,U))zn(i,u)}else{_(this,Te).clear(),_(this,Z).clear();for(const i of _(this,Ee))i(this);_(this,Ee).clear(),kn(r),kn(t),_(this,ge)===0&&q(this,x,Gn).call(this),(l=_(this,Fe))==null||l.resolve()}var o=p;if(_(this,P).length>0){const i=o??(o=this);_(i,P).push(..._(this,P).filter(u=>!_(i,P).includes(u)))}o!==null&&(Ce.add(o),q(a=o,x,rn).call(a))},sn=function(n,t,r){n.f^=m;for(var s=n.first;s!==null;){var f=s.f,o=(f&(G|Q))!==0,l=o&&(f&m)!==0,a=l||(f&V)!==0||_(this,U).has(s);if(!a&&s.fn!==null){o?s.f^=m:(f&_e)!==0?t.push(s):Ne(s)&&((f&se)!==0&&_(this,Z).add(s),he(s));var i=s.first;if(i!==null){s=i;continue}}for(;s!==null;){var u=s.next;if(u!==null){s=u;break}s=s.parent}}},fn=function(n){for(var t=0;t<n.length;t+=1)Kt(n[t],_(this,Te),_(this,Z))},Gn=function(){var s;if(Ce.size>1){this.previous.clear();var n=p,t=S,r=!0;for(const f of Ce){if(f===this){r=!1;continue}const o=[];for(const[a,i]of this.current){if(f.current.has(a))if(r&&i!==f.current.get(a))f.current.set(a,i);else continue;o.push(a)}if(o.length===0)continue;const l=[...f.current.keys()].filter(a=>!this.current.has(a));if(l.length>0){f.activate();const a=new Set,i=new Map;for(const u of o)Kn(u,l,a,i);if(_(f,P).length>0){f.apply();for(const u of _(f,P))q(s=f,x,sn).call(s,u,[],[])}f.deactivate()}}p=n,S=t}_(this,U).clear(),Ce.delete(this)};let ee=Ke;function zt(e){var n=Pe;Pe=!0;try{for(var t;;){if(Vt(),p===null)return t;p.flush()}}finally{Pe=n}}function Xt(){try{It()}catch(e){Ve(e,nn)}}let j=null;function kn(e){var n=e.length;if(n!==0){for(var t=0;t<n;){var r=e[t++];if((r.f&(B|V))===0&&Ne(r)&&(j=new Set,he(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&it(r),(j==null?void 0:j.size)>0)){J.clear();for(const s of j){if((s.f&(B|V))!==0)continue;const f=[s];let o=s.parent;for(;o!==null;)j.has(o)&&(j.delete(o),f.push(o)),o=o.parent;for(let l=f.length-1;l>=0;l--){const a=f[l];(a.f&(B|V))===0&&he(a)}}j.clear()}}j=null}}function Kn(e,n,t,r){if(!t.has(e)&&(t.add(e),e.reactions!==null))for(const s of e.reactions){const f=s.f;(f&T)!==0?Kn(s,n,t,r):(f&(_n|se))!==0&&(f&R)===0&&$n(s,n,r)&&(E(s,R),hn(s))}}function $n(e,n,t){const r=t.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(Se.call(n,s))return!0;if((s.f&T)!==0&&$n(s,n,t))return t.set(s,!0),!0}return t.set(e,!1),!1}function hn(e){p.schedule(e)}function zn(e,n){if(!((e.f&G)!==0&&(e.f&m)!==0)){(e.f&R)!==0?n.d.push(e):(e.f&H)!==0&&n.m.push(e),E(e,m);for(var t=e.first;t!==null;)zn(t,n),t=t.next}}function Xn(e,n,t,r){const s=je()?yn:Jt;var f=e.filter(c=>!c.settled);if(t.length===0&&f.length===0){r(n.map(s));return}var o=w,l=Zt(),a=f.length===1?f[0].promise:f.length>1?Promise.all(f.map(c=>c.promise)):null;function i(c){l();try{r(c)}catch(g){(o.f&B)===0&&Ve(g,o)}Be()}if(t.length===0){a.then(()=>i(n.map(s)));return}var u=wn();function v(){Promise.all(t.map(c=>Wt(c))).then(c=>i([...n.map(s),...c])).catch(c=>Ve(c,o)).finally(()=>u())}a?a.then(()=>{l(),v(),Be()}):v()}function Zt(){var e=w,n=d,t=y,r=p;return function(f=!0){re(e),te(n),Ue(t),f&&(e.f&B)===0&&(r==null||r.activate(),r==null||r.apply())}}function Be(e=!0){re(null),te(null),Ue(null),e&&(p==null||p.deactivate())}function wn(){var e=w.b,n=p,t=e.is_rendered();return e.update_pending_count(1,n),n.increment(t),(r=!1)=>{e.update_pending_count(-1,n),n.decrement(t,r)}}function yn(e){var n=T|R,t=d!==null&&(d.f&T)!==0?d:null;return w!==null&&(w.f|=Re),{ctx:y,deps:null,effects:null,equals:qn,f:n,fn:e,reactions:null,rv:0,v:A,wv:0,parent:t??w,ac:null}}function Wt(e,n,t){let r=w;r===null&&Ot();var s=void 0,f=mn(A),o=!d,l=new Map;return lr(()=>{var g;var a=w,i=jn();s=i.promise;try{Promise.resolve(e()).then(i.resolve,i.reject).finally(Be)}catch(h){i.reject(h),Be()}var u=p;if(o){if((a.f&we)!==0)var v=wn();if(r.b.is_rendered())(g=l.get(u))==null||g.reject($),l.delete(u);else{for(const h of l.values())h.reject($);l.clear()}l.set(u,i)}const c=(h,L=void 0)=>{if(v){var N=L===$;v(N)}if(!(L===$||(a.f&B)!==0)){if(u.activate(),L)f.f|=W,ln(f,L);else{(f.f&W)!==0&&(f.f^=W),ln(f,h);for(const[Oe,ke]of l){if(l.delete(Oe),Oe===u)break;ke.reject($)}}u.deactivate()}};i.promise.then(c,h=>c(null,h||"unknown"))}),ir(()=>{for(const a of l.values())a.reject($)}),new Promise(a=>{function i(u){function v(){u===s?a(f):i(s)}u.then(v,v)}i(s)})}function is(e){const n=yn(e);return ut(n),n}function Jt(e){const n=yn(e);return n.equals=Un,n}function Qt(e){var n=e.effects;if(n!==null){e.effects=null;for(var t=0;t<n.length;t+=1)ne(n[t])}}function er(e){for(var n=e.parent;n!==null;){if((n.f&T)===0)return(n.f&B)===0?n:null;n=n.parent}return null}function En(e){var n,t=w;re(er(e));try{e.f&=~ve,Qt(e),n=dt(e)}finally{re(t)}return n}function Zn(e){var n=En(e);if(!e.equals(n)&&(e.wv=_t(),(!(p!=null&&p.is_fork)||e.deps===null)&&(e.v=n,e.deps===null))){E(e,m);return}pe||(S!==null?(rt()||p!=null&&p.is_fork)&&S.set(e,n):pn(e))}function nr(e){var n,t;if(e.effects!==null)for(const r of e.effects)(r.teardown||r.ac)&&((n=r.teardown)==null||n.call(r),(t=r.ac)==null||t.abort($),r.teardown=At,r.ac=null,Me(r,0),Tn(r))}function Wn(e){if(e.effects!==null)for(const n of e.effects)n.teardown&&he(n)}let an=new Set;const J=new Map;let Jn=!1;function mn(e,n){var t={f:0,v:e,reactions:null,equals:qn,rv:0,wv:0};return t}function z(e,n){const t=mn(e);return ut(t),t}function ls(e,n=!1,t=!0){var s;const r=mn(e);return n||(r.equals=Un),ze&&t&&y!==null&&y.l!==null&&((s=y.l).s??(s.s=[])).push(r),r}function X(e,n,t=!1){d!==null&&(!Y||(d.f&Nn)!==0)&&je()&&(d.f&(T|se|_n|Nn))!==0&&(F===null||!Se.call(F,e))&&Ft();let r=t?De(n):n;return ln(e,r,Ye)}function ln(e,n,t=null){if(!e.equals(n)){var r=e.v;pe?J.set(e,n):J.set(e,r),e.v=n;var s=ee.ensure();if(s.capture(e,r),(e.f&T)!==0){const f=e;(e.f&R)!==0&&En(f),pn(f)}e.wv=_t(),Qn(e,R,t),je()&&w!==null&&(w.f&m)!==0&&(w.f&(G|Q))===0&&(I===null?_r([e]):I.push(e)),!s.is_fork&&an.size>0&&!Jn&&tr()}return n}function tr(){Jn=!1;for(const e of an)(e.f&m)!==0&&E(e,H),Ne(e)&&he(e);an.clear()}function os(e,n=1){var t=oe(e),r=n===1?t++:t--;return X(e,t),r}function Je(e){X(e,e.v+1)}function Qn(e,n,t){var r=e.reactions;if(r!==null)for(var s=je(),f=r.length,o=0;o<f;o++){var l=r[o],a=l.f;if(!(!s&&l===w)){var i=(a&R)===0;if(i&&E(l,n),(a&T)!==0){var u=l;S==null||S.delete(u),(a&ve)===0&&(a&M&&(l.f|=ve),Qn(u,H,t))}else if(i){var v=l;(a&se)!==0&&j!==null&&j.add(v),t!==null?t.push(v):hn(v)}}}}function De(e){if(typeof e!="object"||e===null||ue in e)return e;const n=Ln(e);if(n!==bt&&n!==Tt)return e;var t=new Map,r=Et(e),s=z(0),f=ce,o=l=>{if(ce===f)return l();var a=d,i=ce;te(null),Mn(f);var u=l();return te(a),Mn(i),u};return r&&t.set("length",z(e.length)),new Proxy(e,{defineProperty(l,a,i){(!("value"in i)||i.configurable===!1||i.enumerable===!1||i.writable===!1)&&Pt();var u=t.get(a);return u===void 0?o(()=>{var v=z(i.value);return t.set(a,v),v}):X(u,i.value,!0),!0},deleteProperty(l,a){var i=t.get(a);if(i===void 0){if(a in l){const u=o(()=>z(A));t.set(a,u),Je(s)}}else X(i,A),Je(s);return!0},get(l,a,i){var g;if(a===ue)return e;var u=t.get(a),v=a in l;if(u===void 0&&(!v||(g=Ie(l,a))!=null&&g.writable)&&(u=o(()=>{var h=De(v?l[a]:A),L=z(h);return L}),t.set(a,u)),u!==void 0){var c=oe(u);return c===A?void 0:c}return Reflect.get(l,a,i)},getOwnPropertyDescriptor(l,a){var i=Reflect.getOwnPropertyDescriptor(l,a);if(i&&"value"in i){var u=t.get(a);u&&(i.value=oe(u))}else if(i===void 0){var v=t.get(a),c=v==null?void 0:v.v;if(v!==void 0&&c!==A)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return i},has(l,a){var c;if(a===ue)return!0;var i=t.get(a),u=i!==void 0&&i.v!==A||Reflect.has(l,a);if(i!==void 0||w!==null&&(!u||(c=Ie(l,a))!=null&&c.writable)){i===void 0&&(i=o(()=>{var g=u?De(l[a]):A,h=z(g);return h}),t.set(a,i));var v=oe(i);if(v===A)return!1}return u},set(l,a,i,u){var An;var v=t.get(a),c=a in l;if(r&&a==="length")for(var g=i;g<v.v;g+=1){var h=t.get(g+"");h!==void 0?X(h,A):g in l&&(h=o(()=>z(A)),t.set(g+"",h))}if(v===void 0)(!c||(An=Ie(l,a))!=null&&An.writable)&&(v=o(()=>z(void 0)),X(v,De(i)),t.set(a,v));else{c=v.v!==A;var L=o(()=>De(i));X(v,L)}var N=Reflect.getOwnPropertyDescriptor(l,a);if(N!=null&&N.set&&N.set.call(u,i),!c){if(r&&typeof a=="string"){var Oe=t.get("length"),ke=Number(a);Number.isInteger(ke)&&ke>=Oe.v&&X(Oe,ke+1)}Je(s)}return!0},ownKeys(l){oe(s);var a=Reflect.ownKeys(l).filter(v=>{var c=t.get(v);return c===void 0||c.v!==A});for(var[i,u]of t)u.v!==A&&!(i in l)&&a.push(i);return a},setPrototypeOf(){Mt()}})}function Cn(e){try{if(e!==null&&typeof e=="object"&&ue in e)return e[ue]}catch{}return e}function us(e,n){return Object.is(Cn(e),Cn(n))}var Dn,rr,sr,et,nt;function cs(){if(Dn===void 0){Dn=window,rr=document,sr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,n=Node.prototype,t=Text.prototype;et=Ie(n,"firstChild").get,nt=Ie(n,"nextSibling").get,xn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),xn(t)&&(t.__t=void 0)}}function Ge(e=""){return document.createTextNode(e)}function on(e){return et.call(e)}function fe(e){return nt.call(e)}function _s(e,n){if(!de)return on(e);var t=on(b);if(t===null)t=b.appendChild(Ge());else if(n&&t.nodeType!==$e){var r=Ge();return t==null||t.before(r),xe(r),r}return n&&gn(t),xe(t),t}function vs(e,n=!1){if(!de){var t=on(e);return t instanceof Comment&&t.data===""?fe(t):t}if(n){if((b==null?void 0:b.nodeType)!==$e){var r=Ge();return b==null||b.before(r),xe(r),r}gn(b)}return b}function ds(e,n=1,t=!1){let r=de?b:e;for(var s;n--;)s=r,r=fe(r);if(!de)return r;if(t){if((r==null?void 0:r.nodeType)!==$e){var f=Ge();return r===null?s==null||s.after(f):r.before(f),xe(f),f}gn(r)}return xe(r),r}function ps(e){e.textContent=""}function hs(){return!1}function ws(e,n,t){return document.createElementNS(n??Ht,e,void 0)}function gn(e){if(e.nodeValue.length<65536)return;let n=e.nextSibling;for(;n!==null&&n.nodeType===$e;)n.remove(),e.nodeValue+=n.nodeValue,n=e.nextSibling}function ys(e,n){if(n){const t=document.body;e.autofocus=!0,en(()=>{document.activeElement===t&&e.focus()})}}let In=!1;function fr(){In||(In=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var n;if(!e.defaultPrevented)for(const t of e.target.elements)(n=t.__on_r)==null||n.call(t)})},{capture:!0}))}function bn(e){var n=d,t=w;te(null),re(null);try{return e()}finally{te(n),re(t)}}function Es(e,n,t,r=t){e.addEventListener(n,()=>bn(t));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),fr()}function tt(e){w===null&&(d===null&&Dt(),Ct()),pe&&kt()}function ar(e,n){var t=n.last;t===null?n.last=n.first=e:(t.next=e,e.prev=t,n.last=e)}function C(e,n){var t=w;t!==null&&(t.f&V)!==0&&(e|=V);var r={ctx:y,deps:null,nodes:null,f:e|R|M,first:null,fn:n,last:null,next:null,parent:t,b:t&&t.b,prev:null,teardown:null,wv:0,ac:null},s=r;if((e&_e)!==0)ye!==null?ye.push(r):ee.ensure().schedule(r);else if(n!==null){try{he(r)}catch(o){throw ne(r),o}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&Re)===0&&(s=s.first,(e&se)!==0&&(e&qe)!==0&&s!==null&&(s.f|=qe))}if(s!==null&&(s.parent=t,t!==null&&ar(s,t),d!==null&&(d.f&T)!==0&&(e&Q)===0)){var f=d;(f.effects??(f.effects=[])).push(s)}return r}function rt(){return d!==null&&!Y}function ir(e){const n=C(Le,null);return E(n,m),n.teardown=e,n}function ms(e){tt();var n=w.f,t=!d&&(n&G)!==0&&(n&we)===0;if(t){var r=y;(r.e??(r.e=[])).push(e)}else return st(e)}function st(e){return C(_e|Yn,e)}function gs(e){return tt(),C(Le|Yn,e)}function bs(e){ee.ensure();const n=C(Q|Re,e);return()=>{ne(n)}}function Ts(e){ee.ensure();const n=C(Q|Re,e);return(t={})=>new Promise(r=>{t.outro?cr(n,()=>{ne(n),r(void 0)}):(ne(n),r(void 0))})}function As(e){return C(_e,e)}function Ss(e,n){var t=y,r={effect:null,ran:!1,deps:e};t.l.$.push(r),r.effect=ft(()=>{if(e(),!r.ran){r.ran=!0;var s=w;try{re(s.parent),dr(n)}finally{re(s)}}})}function xs(){var e=y;ft(()=>{for(var n of e.l.$){n.deps();var t=n.effect;(t.f&m)!==0&&t.deps!==null&&E(t,H),Ne(t)&&he(t),n.ran=!1}})}function lr(e){return C(_n|Re,e)}function ft(e,n=0){return C(Le|n,e)}function Rs(e,n=[],t=[],r=[]){Xn(r,n,t,s=>{C(Le,()=>e(...s.map(oe)))})}function Ns(e,n=[],t=[],r=[]){if(t.length>0||r.length>0)var s=wn();Xn(r,n,t,f=>{C(_e,()=>e(...f.map(oe))),s&&s()})}function Os(e,n=0){var t=C(se|n,e);return t}function ks(e,n=0){var t=C(cn|n,e);return t}function Cs(e){return C(G|Re,e)}function at(e){var n=e.teardown;if(n!==null){const t=pe,r=d;Pn(!0),te(null);try{n.call(null)}finally{Pn(t),te(r)}}}function Tn(e,n=!1){var t=e.first;for(e.first=e.last=null;t!==null;){const s=t.ac;s!==null&&bn(()=>{s.abort($)});var r=t.next;(t.f&Q)!==0?t.parent=null:ne(t,n),t=r}}function or(e){for(var n=e.first;n!==null;){var t=n.next;(n.f&G)===0&&ne(n),n=t}}function ne(e,n=!0){var t=!1;(n||(e.f&Rt)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(ur(e.nodes.start,e.nodes.end),t=!0),E(e,Rn),Tn(e,n&&!t),Me(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const f of r)f.stop();at(e),e.f^=Rn,e.f|=B;var s=e.parent;s!==null&&s.first!==null&&it(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function ur(e,n){for(;e!==null;){var t=e===n?null:fe(e);e.remove(),e=t}}function it(e){var n=e.parent,t=e.prev,r=e.next;t!==null&&(t.next=r),r!==null&&(r.prev=t),n!==null&&(n.first===e&&(n.first=r),n.last===e&&(n.last=t))}function cr(e,n,t=!0){var r=[];lt(e,r,!0);var s=()=>{t&&ne(e),n&&n()},f=r.length;if(f>0){var o=()=>--f||s();for(var l of r)l.out(o)}else s()}function lt(e,n,t){if((e.f&V)===0){e.f^=V;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||t)&&n.push(l);for(var s=e.first;s!==null;){var f=s.next,o=(s.f&qe)!==0||(s.f&G)!==0&&(e.f&se)!==0;lt(s,n,o?t:!1),s=f}}}function Ds(e){ot(e,!0)}function ot(e,n){if((e.f&V)!==0){e.f^=V,(e.f&m)===0&&(E(e,R),ee.ensure().schedule(e));for(var t=e.first;t!==null;){var r=t.next,s=(t.f&qe)!==0||(t.f&G)!==0;ot(t,s?n:!1),t=r}var f=e.nodes&&e.nodes.t;if(f!==null)for(const o of f)(o.is_global||n)&&o.in()}}function Is(e,n){if(e.nodes)for(var t=e.nodes.start,r=e.nodes.end;t!==null;){var s=t===r?null:fe(t);n.append(t),t=s}}let He=!1,pe=!1;function Pn(e){pe=e}let d=null,Y=!1;function te(e){d=e}let w=null;function re(e){w=e}let F=null;function ut(e){d!==null&&(F===null?F=[e]:F.push(e))}let O=null,k=0,I=null;function _r(e){I=e}let ct=1,le=0,ce=le;function Mn(e){ce=e}function _t(){return++ct}function Ne(e){var n=e.f;if((n&R)!==0)return!0;if(n&T&&(e.f&=~ve),(n&H)!==0){for(var t=e.deps,r=t.length,s=0;s<r;s++){var f=t[s];if(Ne(f)&&Zn(f),f.wv>e.wv)return!0}(n&M)!==0&&S===null&&E(e,m)}return!1}function vt(e,n,t=!0){var r=e.reactions;if(r!==null&&!(F!==null&&Se.call(F,e)))for(var s=0;s<r.length;s++){var f=r[s];(f.f&T)!==0?vt(f,n,!1):n===f&&(t?E(f,R):(f.f&m)!==0&&E(f,H),hn(f))}}function dt(e){var L;var n=O,t=k,r=I,s=d,f=F,o=y,l=Y,a=ce,i=e.f;O=null,k=0,I=null,d=(i&(G|Q))===0?e:null,F=null,Ue(e.ctx),Y=!1,ce=++le,e.ac!==null&&(bn(()=>{e.ac.abort($)}),e.ac=null);try{e.f|=Qe;var u=e.fn,v=u();e.f|=we;var c=e.deps,g=p==null?void 0:p.is_fork;if(O!==null){var h;if(g||Me(e,k),c!==null&&k>0)for(c.length=k+O.length,h=0;h<O.length;h++)c[k+h]=O[h];else e.deps=c=O;if(rt()&&(e.f&M)!==0)for(h=k;h<c.length;h++)((L=c[h]).reactions??(L.reactions=[])).push(e)}else!g&&c!==null&&k<c.length&&(Me(e,k),c.length=k);if(je()&&I!==null&&!Y&&c!==null&&(e.f&(T|H|R))===0)for(h=0;h<I.length;h++)vt(I[h],e);if(s!==null&&s!==e){if(le++,s.deps!==null)for(let N=0;N<t;N+=1)s.deps[N].rv=le;if(n!==null)for(const N of n)N.rv=le;I!==null&&(r===null?r=I:r.push(...I))}return(e.f&W)!==0&&(e.f^=W),v}catch(N){return Bt(N)}finally{e.f^=Qe,O=n,k=t,I=r,d=s,F=f,Ue(o),Y=l,ce=a}}function vr(e,n){let t=n.reactions;if(t!==null){var r=mt.call(t,e);if(r!==-1){var s=t.length-1;s===0?t=n.reactions=null:(t[r]=t[s],t.pop())}}if(t===null&&(n.f&T)!==0&&(O===null||!Se.call(O,n))){var f=n;(f.f&M)!==0&&(f.f^=M,f.f&=~ve),pn(f),nr(f),Me(f,0)}}function Me(e,n){var t=e.deps;if(t!==null)for(var r=n;r<t.length;r++)vr(e,t[r])}function he(e){var n=e.f;if((n&B)===0){E(e,m);var t=w,r=He;w=e,He=!0;try{(n&(se|cn))!==0?or(e):Tn(e),at(e);var s=dt(e);e.teardown=typeof s=="function"?s:null,e.wv=ct;var f}finally{He=r,w=t}}}async function Ps(){await Promise.resolve(),zt()}function Ms(){return ee.ensure().settled()}function oe(e){var n=e.f,t=(n&T)!==0;if(d!==null&&!Y){var r=w!==null&&(w.f&B)!==0;if(!r&&(F===null||!Se.call(F,e))){var s=d.deps;if((d.f&Qe)!==0)e.rv<le&&(e.rv=le,O===null&&s!==null&&s[k]===e?k++:O===null?O=[e]:O.push(e));else{(d.deps??(d.deps=[])).push(e);var f=e.reactions;f===null?e.reactions=[d]:Se.call(f,d)||f.push(d)}}}if(pe&&J.has(e))return J.get(e);if(t){var o=e;if(pe){var l=o.v;return((o.f&m)===0&&o.reactions!==null||ht(o))&&(l=En(o)),J.set(o,l),l}var a=(o.f&M)===0&&!Y&&d!==null&&(He||(d.f&M)!==0),i=(o.f&we)===0;Ne(o)&&(a&&(o.f|=M),Zn(o)),a&&!i&&(Wn(o),pt(o))}if(S!=null&&S.has(e))return S.get(e);if((e.f&W)!==0)throw e.v;return e.v}function pt(e){if(e.f|=M,e.deps!==null)for(const n of e.deps)(n.reactions??(n.reactions=[])).push(e),(n.f&T)!==0&&(n.f&M)===0&&(Wn(n),pt(n))}function ht(e){if(e.v===A)return!0;if(e.deps===null)return!1;for(const n of e.deps)if(J.has(n)||(n.f&T)!==0&&ht(n))return!0;return!1}function dr(e){var n=Y;try{return Y=!0,e()}finally{Y=n}}function Fs(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(ue in e)un(e);else if(!Array.isArray(e))for(let n in e){const t=e[n];typeof t=="object"&&t&&ue in t&&un(t)}}}function un(e,n=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!n.has(e)){n.add(e),e instanceof Date&&e.getTime();for(let r in e)try{un(e[r],n)}catch{}const t=Ln(e);if(t!==Object.prototype&&t!==Array.prototype&&t!==Map.prototype&&t!==Set.prototype&&t!==Date.prototype){const r=gt(t);for(let s in r){const f=r[s].get;if(f)try{f.call(e)}catch{}}}}}export{rr as $,mn as A,Dr as B,Hn as C,B as D,qe as E,Ds as F,cr as G,Lt as H,V as I,G as J,ps as K,Is as L,ne as M,on as N,en as O,fe as P,Ir as Q,Pr as R,Es as S,Ps as T,dr as U,ft as V,y as W,As as X,w as Y,Rn as Z,ue as _,Xr as a,$r as a$,je as a0,Ie as a1,Or as a2,jr as a3,De as a4,X as a5,pe as a6,os as a7,re as a8,Yr as a9,is as aA,mr as aB,Ss as aC,xs as aD,qt as aE,ws as aF,sr as aG,qr as aH,Ur as aI,$e as aJ,gn as aK,we as aL,rt as aM,Je as aN,xt as aO,Vr as aP,E as aQ,R as aR,H as aS,Kt as aT,te as aU,Ue as aV,ee as aW,Bt as aX,d as aY,Ve as aZ,kr as a_,ze as aa,Lr as ab,Fr as ac,yn as ad,yr as ae,br as af,Hr as ag,ir as ah,wr as ai,At as aj,Rt as ak,Re as al,gs as am,ms as an,St as ao,Er as ap,Fs as aq,Nt as ar,es as as,fs as at,as as au,_s as av,ds as aw,Zr as ax,Wr as ay,Rs as az,Os as b,bn as b0,cs as b1,vn as b2,Nr as b3,Ts as b4,dn as b5,zt as b6,z as b7,ks as b8,Kr as b9,us as ba,Xn as bb,Ht as bc,Ln as bd,Gr as be,gt as bf,Sr as bg,ys as bh,A as bi,fr as bj,Tr as bk,xr as bl,Br as bm,ce as bn,rs as bo,ns as bp,ts as bq,ss as br,bs,Ms as bt,xe as c,Ns as d,zr as e,vs as f,b as g,de as h,oe as i,jt as j,Yt as k,ln as l,p as m,Ge as n,gr as o,Cs as p,Rr as q,Qr as r,Jr as s,hs as t,Jt as u,Et as v,hr as w,Cr as x,Mr as y,ls as z};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CQDkqUeN.js","../chunks/CS53ooo0.js","../chunks/vtBo8kBV.js","../chunks/BA4Gucnq.js","../chunks/B6WG2Sd3.js","../chunks/ClknbeNl.js","../chunks/B2cyTHdf.js","../chunks/BkD3yAYe.js","../chunks/ChUctqXA.js","../chunks/DoRPmqLn.js","../chunks/DVa8Y-mQ.js","../chunks/DXDBlEGf.js","../chunks/Dr67pd7v.js","../chunks/BUApaBEI.js","../chunks/Dyvi1wBH.js","../chunks/CGCMIfh3.js","../chunks/Brun6sCr.js","../chunks/CFwxUBGi.js","../chunks/C4uF_YIK.js","../chunks/BAJAS8BI.js","../chunks/CBY2biv-.js","../chunks/DsxvjlCC.js","../chunks/DCEayuDt.js","../chunks/DAdOEnFb.js","../assets/homeFeedPanelStore.CE6xTfsa.css","../assets/0.BLOTwIuF.css","../nodes/1.BUa24rXB.js","../nodes/2.AJd2163d.js","../nodes/3.BZQeL-vz.js","../chunks/DL3Q5sfb.js","../chunks/BXTsojX2.js","../chunks/C8umpVpB.js","../chunks/D6kzEN_P.js","../chunks/6prdYIKP.js","../assets/SourcesList.D5Lso0bo.css","../nodes/4.BT_N8pCh.js","../assets/4.Di6rvlY-.css","../nodes/5.Bo_ftyqW.js","../chunks/DAV9bzjw.js","../assets/BackToParentRoute.DGk-X5ow.css","../assets/5.B-dPiwB7.css","../nodes/6.vOowdQUr.js","../assets/6.B27N7pdA.css","../nodes/7.BfVbBKZu.js","../assets/7.CrNxmd8B.css","../nodes/8.BslYG5f2.js","../chunks/Bfc47y5P.js","../assets/8.Cgji2b15.css","../nodes/9.DAgT-df2.js","../assets/9.BsCIAvn3.css","../nodes/10.MZgVhpGF.js","../assets/10.Dj8_pmut.css","../nodes/11.B39IbrZ0.js","../assets/11.qYZMiTb0.css","../nodes/12.B5B81dLQ.js","../assets/12.DfJcfUWl.css","../nodes/13.DWWcH27k.js","../assets/13.Qu_tY6H9.css","../nodes/14.Db6eOPqq.js","../assets/14.DfMfOrS3.css","../nodes/15.B2jiP2VJ.js","../assets/15.nNGjXhCQ.css","../nodes/16.p6WfP435.js","../chunks/B-CeeY89.js","../assets/16.Cw9oSkcO.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,b6 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,b7 as J,av as gt,ax as Et,az as Pt,aA as x}from"../chunks/vtBo8kBV.js";import{h as pt,m as Rt,u as yt,s as Ot}from"../chunks/B2cyTHdf.js";import{a as E,c as I,f as $,t as bt}from"../chunks/CS53ooo0.js";import{o as Lt}from"../chunks/Dyvi1wBH.js";import{i as B}from"../chunks/BkD3yAYe.js";import{c as k}from"../chunks/C4uF_YIK.js";import{b as S}from"../chunks/B-CeeY89.js";import{p as q}from"../chunks/BAJAS8BI.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.CQDkqUeN.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,25]),import.meta.url),()=>s(()=>import("../nodes/1.BUa24rXB.js"),__vite__mapDeps([26,1,2,3,6,10,12,5,13,14]),import.meta.url),()=>s(()=>import("../nodes/2.AJd2163d.js"),__vite__mapDeps([27,1,2,3,8]),import.meta.url),()=>s(()=>import("../nodes/3.BZQeL-vz.js"),__vite__mapDeps([28,1,2,3,29,30,14,6,4,5,7,17,9,31,10,11,12,13,15,16,18,19,20,21,8,22,23,24,32,33,34]),import.meta.url),()=>s(()=>import("../nodes/4.BT_N8pCh.js"),__vite__mapDeps([35,1,2,3,14,6,7,17,29,9,10,20,36]),import.meta.url),()=>s(()=>import("../nodes/5.Bo_ftyqW.js"),__vite__mapDeps([37,1,2,3,14,6,7,29,9,31,10,38,4,5,11,12,13,39,20,15,40]),import.meta.url),()=>s(()=>import("../nodes/6.vOowdQUr.js"),__vite__mapDeps([41,1,2,3,14,6,7,29,9,31,10,38,4,5,11,12,13,39,20,15,42]),import.meta.url),()=>s(()=>import("../nodes/7.BfVbBKZu.js"),__vite__mapDeps([43,1,2,3,14,4,5,10,12,13,11,44]),import.meta.url),()=>s(()=>import("../nodes/8.BslYG5f2.js"),__vite__mapDeps([45,1,2,3,6,7,29,9,31,46,10,38,4,5,11,12,13,14,39,47]),import.meta.url),()=>s(()=>import("../nodes/9.DAgT-df2.js"),__vite__mapDeps([48,1,2,3,14,6,7,17,29,9,10,38,4,5,11,12,13,39,20,15,49]),import.meta.url),()=>s(()=>import("../nodes/10.MZgVhpGF.js"),__vite__mapDeps([50,1,2,3,14,6,7,29,9,31,10,38,4,5,11,12,13,39,20,15,51]),import.meta.url),()=>s(()=>import("../nodes/11.B39IbrZ0.js"),__vite__mapDeps([52,1,2,3,29,30,14,6,4,5,7,17,9,31,10,11,12,13,15,16,18,19,20,21,8,22,23,24,32,33,34,38,39,53]),import.meta.url),()=>s(()=>import("../nodes/12.B5B81dLQ.js"),__vite__mapDeps([54,1,2,3,14,6,7,17,29,9,31,46,10,38,4,5,11,12,13,39,20,15,55]),import.meta.url),()=>s(()=>import("../nodes/13.DWWcH27k.js"),__vite__mapDeps([56,1,2,3,14,6,7,17,29,9,31,10,20,15,5,21,8,19,4,22,33,18,57]),import.meta.url),()=>s(()=>import("../nodes/14.Db6eOPqq.js"),__vite__mapDeps([58,1,2,3,14,6,5,7,17,29,9,31,10,20,11,12,13,15,32,8,19,4,21,22,23,59]),import.meta.url),()=>s(()=>import("../nodes/15.B2jiP2VJ.js"),__vite__mapDeps([60,1,2,3,14,29,10,12,5,13,61]),import.meta.url),()=>s(()=>import("../nodes/16.p6WfP435.js"),__vite__mapDeps([62,1,2,3,4,5,6,7,22,29,10,9,20,11,12,13,14,15,63,19,38,39,64]),import.meta.url),()=>s(()=>import("../nodes/17.BtYZF6FM.js"),__vite__mapDeps([65,66,13]),import.meta.url),()=>s(()=>import("../nodes/18.BIzqhTqv.js"),__vite__mapDeps([67,66,13]),import.meta.url)],Qt=[],Xt={"/":[3],"/admin":[4,[2]],"/admin/deliver":[5,[2]],"/admin/llm":[6,[2]],"/admin/logs":[7,[2]],"/admin/parse":[8,[2]],"/admin/pipeline":[9,[2]],"/admin/proxy":[10,[2]],"/admin/sources":[11,[2]],"/admin/tags":[12,[2]],"/logs":[13],"/plugins":[14],"/plugins/new":[15],"/plugins/[id]":[16],"/tags":[17],"/[sub]":[18]},tt={handleError:(({error:r})=>{console.error(r)}),reroute:(()=>{}),transport:{}},kt=Object.fromEntries(Object.entries(tt.transport).map(([r,t])=>[r,t.decode])),Zt=Object.fromEntries(Object.entries(tt.transport).map(([r,t])=>[r,t.encode])),Mt=!1,Nt=(r,t)=>kt[r](t);export{Nt as decode,kt as decoders,Xt as dictionary,Zt as encoders,Mt as hash,tt as hooks,Ht as matchers,Kt as nodes,Jt as root,Qt as server_loads};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,a as r}from"../chunks/Dr67pd7v.js";export{o as load_css,r as start};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import{c as U,a as $,f as V}from"../chunks/CS53ooo0.js";import"../chunks/BA4Gucnq.js";import{f as S,at as la,au as ra,av as t,ax as s,az as ia,aC as P,aD as Ga,a5 as O,i as a,aw as h,aq as Ra,U as m,z as W,u as _}from"../chunks/vtBo8kBV.js";import{s as oa,a as T}from"../chunks/B6WG2Sd3.js";import{s as na}from"../chunks/B2cyTHdf.js";import{i as va}from"../chunks/BkD3yAYe.js";import{s as B}from"../chunks/ChUctqXA.js";import{a as g,s as I,G as Ca,P as ta}from"../chunks/DoRPmqLn.js";import{i as ca}from"../chunks/DVa8Y-mQ.js";import{p as Fa}from"../chunks/DXDBlEGf.js";import{t as Na}from"../chunks/CGCMIfh3.js";import{R as Oa,P as Wa,h as w,S as Ia}from"../chunks/Brun6sCr.js";import{l as ua,s as da}from"../chunks/BAJAS8BI.js";import{I as ha}from"../chunks/DsxvjlCC.js";const Ta=!1,Ua=!1,ce=Object.freeze(Object.defineProperty({__proto__:null,prerender:Ua,ssr:Ta},Symbol.toStringTag,{value:"Module"})),Va='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>',Ba='</title><path d="',Da='"/></svg>',sa={title:"GitHub",slug:"github",get svg(){return Va+"GitHub"+Ba+this.path+Da},path:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12",source:"https://github.com/logos",hex:"181717",guidelines:"https://github.com/logos"};function La(f,o){const n=ua(o,["children","$$slots","$$events","$$legacy"]);/**
|
|
2
|
+
* @license lucide-svelte v0.460.1 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const l=[["path",{d:"M15 12h-5"}],["path",{d:"M15 8h-5"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3"}]];ha(f,da({name:"scroll-text"},()=>n,{get iconNode(){return l},children:(u,p)=>{var e=U(),d=S(e);B(d,o,"default",{}),$(u,e)},$$slots:{default:!0}}))}function ja(f,o){const n=ua(o,["children","$$slots","$$events","$$legacy"]);/**
|
|
7
|
+
* @license lucide-svelte v0.460.1 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/const l=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}],["circle",{cx:"12",cy:"12",r:"3"}]];ha(f,da({name:"settings"},()=>n,{get iconNode(){return l},children:(u,p)=>{var e=U(),d=S(e);B(d,o,"default",{}),$(u,e)},$$slots:{default:!0}}))}var Aa=V("<div> </div>");function Ea(f,o){la(o,!1);const n=()=>T(Na,"$toast",l),[l,u]=oa();ca();var p=U(),e=S(p);{var d=v=>{var c=Aa(),H=t(c,!0);s(c),ia(()=>{g(c,1,`toast ${n().type??""}`,"svelte-zemmny"),na(H,n().msg)}),$(v,c)};va(e,v=>{n().msg&&v(d)})}$(f,p),ra(),u()}var Ja=V('<div class="layout-feed-rail layout-feed-rail--home svelte-12qhfyh"><!></div>'),Ka=V('<div class="layout-outer svelte-12qhfyh"><div class="layout-app svelte-12qhfyh"><div id="layout-inner-scroll" class="layout-merged-cluster svelte-12qhfyh"><aside class="layout-nav-rail svelte-12qhfyh" aria-label="主导航"><nav class="nav-rail-links svelte-12qhfyh"><div class="nav-rail-cluster svelte-12qhfyh"><a href="/" title="信源" aria-label="信源"><!></a> <a href="/logs" title="日志" aria-label="日志"><!></a> <a href="/plugins" title="插件" aria-label="插件"><!></a> <a href="/admin" title="设置" aria-label="设置"><!></a></div></nav> <div class="nav-rail-footer svelte-12qhfyh"><a class="nav-rail-github svelte-12qhfyh" target="_blank" rel="noopener noreferrer" aria-label="在 GitHub 打开源码仓库" title="GitHub"><svg class="nav-rail-github-icon svelte-12qhfyh" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path fill="currentColor"></path></svg></a> <a class="nav-rail-brand svelte-12qhfyh" href="/" aria-label="返回信源首页"> </a></div></aside> <div><main><!></main></div> <!></div></div></div> <!>',1);function ue(f,o){la(o,!1);const n=()=>T(Fa,"$page",u),l=()=>T(w,"$homeFeedPanelSource",u),[u,p]=oa(),e=W(),d=W(),v=W(),c=18;function H(i){return!!(i==="/"||i==="/admin"||i==="/admin/sources"||i==="/admin/tags"||i==="/plugins"||i==="/logs"||i.startsWith("/plugins/")||i.startsWith("/logs/"))}P(()=>n(),()=>{O(e,n().url.pathname)}),P(()=>a(e),()=>{O(d,H(a(e)))}),P(()=>(a(e),w),()=>{a(e)!=="/"&&w.set(null)}),P(()=>a(e),()=>{O(v,{sources:a(e)==="/"||a(e)==="/admin/sources",logs:a(e)==="/logs"||a(e).startsWith("/logs/"),plugins:a(e).startsWith("/plugins"),settings:a(e)==="/admin"||a(e).startsWith("/admin/")})}),Ga(),ca();var D=Ka(),M=S(D),L=t(M),j=t(L),k=t(j),G=t(k),A=t(G),y=t(A);let E;var fa=t(y);Oa(fa,{size:c}),s(y);var b=h(y,2);let J;var ga=t(b);La(ga,{size:c}),s(b);var q=h(b,2);let K;var pa=t(q);Wa(pa,{size:c}),s(q);var R=h(q,2);let Q;var ma=t(R);ja(ma,{size:c}),s(R),s(A),s(G);var X=h(G,2),x=t(X),Y=t(x),_a=t(Y);s(Y),s(x);var C=h(x,2),$a=t(C,!0);s(C),s(X),s(k);var z=h(k,2);let Z;var F=t(z);let aa;var ya=t(F);B(ya,o,"default",{}),s(F),s(z);var ba=h(z,2);{var qa=i=>{var N=Ja(),za=t(N);{let Pa=_(()=>l()!=null),wa=_(()=>(l(),m(()=>{var r;return((r=l())==null?void 0:r.ref)??""}))),Sa=_(()=>(l(),m(()=>{var r;return((r=l())==null?void 0:r.displayLabel)??""}))),Ha=_(()=>(l(),m(()=>{var r;return((r=l())==null?void 0:r.description)??""}))),Ma=_(()=>(l(),m(()=>{var r,ea;return((ea=(r=l())==null?void 0:r.proxy)==null?void 0:ea.trim())??""}))),ka=_(()=>(l(),m(()=>{var r;return((r=l())==null?void 0:r.parseHint)??null})));Ia(za,{variant:"inline",get open(){return a(Pa)},get sourceRef(){return a(wa)},get sourceLabel(){return a(Sa)},get sourceDescription(){return a(Ha)},get sourceProxy(){return a(Ma)},get sourceParseHint(){return a(ka)},onOpenChange:r=>{r||w.set(null)}})}s(N),$(i,N)};va(ba,i=>{a(e)==="/"&&i(qa)})}s(j),s(L),s(M);var xa=h(M,2);Ea(xa,{}),ia(()=>{E=g(y,1,"nav-rail-link svelte-12qhfyh",null,E,{active:a(v).sources}),J=g(b,1,"nav-rail-link svelte-12qhfyh",null,J,{active:a(v).logs}),K=g(q,1,"nav-rail-link svelte-12qhfyh",null,K,{active:a(v).plugins}),Q=g(R,1,"nav-rail-link svelte-12qhfyh",null,Q,{active:a(v).settings}),I(x,"href",Ca),I(_a,"d",(Ra(sa),m(()=>sa.path))),I(C,"title",ta),na($a,ta),Z=g(z,1,"shell-frame svelte-12qhfyh",null,Z,{"shell-frame--with-feed-rail":a(e)==="/"}),aa=g(F,1,"main shell svelte-12qhfyh",null,aa,{"main-fill":a(d)})}),$(f,D),ra(),p()}export{ue as component,ce as universal};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as h,f as g}from"../chunks/CS53ooo0.js";import"../chunks/BA4Gucnq.js";import{at as v,f as l,az as d,au as x,av as e,ax as o,aw as _}from"../chunks/vtBo8kBV.js";import{s as p}from"../chunks/B2cyTHdf.js";import{i as $}from"../chunks/DVa8Y-mQ.js";import{s as k,p as m}from"../chunks/Dr67pd7v.js";const b={get error(){return m.error},get status(){return m.status}};k.updated.check;const i=b;var w=g("<h1> </h1> <p> </p>",1);function B(f,n){v(n,!1),$();var t=w(),r=l(t),c=e(r,!0);o(r);var a=_(r,2),u=e(a,!0);o(a),d(()=>{var s;p(c,i.status),p(u,(s=i.error)==null?void 0:s.message)}),h(f,t),x()}export{B as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as v,f as u}from"../chunks/CS53ooo0.js";import"../chunks/BA4Gucnq.js";import{o as H}from"../chunks/Dyvi1wBH.js";import{at as $,az as B,au as C,d as J,av as a,a5 as t,i as o,z as d,$ as M,aw as m,ax as r,f as N,ay as U}from"../chunks/vtBo8kBV.js";import{d as X,a as Y,s as A}from"../chunks/B2cyTHdf.js";import{i as D}from"../chunks/BkD3yAYe.js";import{h as F}from"../chunks/DL3Q5sfb.js";import{P as q,r as G}from"../chunks/DoRPmqLn.js";import{b as I}from"../chunks/C8umpVpB.js";import{i as K}from"../chunks/DVa8Y-mQ.js";import{B as L}from"../chunks/DAV9bzjw.js";import{b as j}from"../chunks/CBY2biv-.js";import{s as z}from"../chunks/CGCMIfh3.js";var Q=u('<p class="hint svelte-1f24zj">加载中…</p>'),V=u('<input type="text" class="text-input svelte-1f24zj" placeholder="http://127.0.0.1:7890" autocomplete="off"/> <p class="hint svelte-1f24zj">留空表示不在配置中设置全局代理(可继续用环境变量)。支持带账号:<code>http://user:pass@host:port</code></p>',1),W=u('<div class="feed-wrap svelte-1f24zj"><div class="feed-col svelte-1f24zj"><div class="body svelte-1f24zj"><!> <p class="intro svelte-1f24zj">写入 <code class="svelte-1f24zj">.rssany/config.json</code> 的 <code class="svelte-1f24zj">globalProxy</code>。抓取与站点登录时,若未在 <code class="svelte-1f24zj">sources.json</code> 或插件中指定单源代理,则使用此处;未填写时仍可使用环境变量 <code class="svelte-1f24zj">HTTP_PROXY</code> / <code class="svelte-1f24zj">HTTPS_PROXY</code>。</p> <section class="form-section svelte-1f24zj"><h3 class="section-title svelte-1f24zj">全局 HTTP(S) 代理</h3> <!></section> <div class="btn-row svelte-1f24zj"><button type="button" class="btn btn-primary svelte-1f24zj"> </button></div></div></div></div>');function ve(x,P){$(P,!1);let s=d(""),l=d(!0),i=d(!1);async function T(){t(l,!0);try{const e=await j("/api/proxy");t(s,typeof(e==null?void 0:e.globalProxy)=="string"?e.globalProxy:"")}catch{t(s,"")}finally{t(l,!1)}}async function w(){t(i,!0);try{const e=await j("/api/proxy",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({globalProxy:o(s).trim()})});if(!(e!=null&&e.ok))throw new Error("保存失败");t(s,typeof e.globalProxy=="string"?e.globalProxy:""),z("已保存","success")}catch(e){z("保存失败: "+(e instanceof Error?e.message:String(e)),"error")}finally{t(i,!1)}}H(T),K();var f=W();F("1f24zj",e=>{J(()=>{M.title=`代理 - ${q}`})});var y=a(f),b=a(y),h=a(b);L(h,{});var p=m(h,4),k=m(a(p),2);{var O=e=>{var n=Q();v(e,n)},R=e=>{var n=V(),_=N(n);G(_),U(2),I(_,()=>o(s),E=>t(s,E)),v(e,n)};D(k,e=>{o(l)?e(O):e(R,-1)})}r(p);var g=m(p,2),c=a(g),S=a(c,!0);r(c),r(g),r(b),r(y),r(f),B(()=>{c.disabled=o(l)||o(i),A(S,o(i)?"保存中…":"保存")}),Y("click",c,w),v(x,f),C()}X(["click"]);export{ve as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as s,f as m}from"../chunks/CS53ooo0.js";import"../chunks/BA4Gucnq.js";import{f as i,d as c,av as f,aw as d,$ as n,ax as p}from"../chunks/vtBo8kBV.js";import{h as v}from"../chunks/DL3Q5sfb.js";import{S as l}from"../chunks/BXTsojX2.js";import{B as _}from"../chunks/DAV9bzjw.js";import{P as h}from"../chunks/DoRPmqLn.js";var u=m('<div class="admin-sources-back svelte-8cr5m9"><!></div> <!>',1);function R(o){var r=u();v("8cr5m9",$=>{c(()=>{n.title=`Sources — ${h}`})});var a=i(r),e=f(a);_(e,{}),p(a);var t=d(a,2);l(t,{}),s(o,r)}export{R as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as u,f as d}from"../chunks/CS53ooo0.js";import"../chunks/BA4Gucnq.js";import{o as we}from"../chunks/Dyvi1wBH.js";import{v as ke,at as Ce,f as Te,az as E,i as s,au as Le,d as Ee,av as n,a5 as a,z as k,aw as i,$ as $e,ax as r,u as Me}from"../chunks/vtBo8kBV.js";import{e as f,s as S}from"../chunks/B2cyTHdf.js";import{i as O}from"../chunks/BkD3yAYe.js";import{e as se,i as ae}from"../chunks/CFwxUBGi.js";import{h as Pe}from"../chunks/DL3Q5sfb.js";import{P as Se,r as Oe,c as Fe,s as re}from"../chunks/DoRPmqLn.js";import{b as Je}from"../chunks/C8umpVpB.js";import{s as X}from"../chunks/Bfc47y5P.js";import{i as Ne}from"../chunks/DVa8Y-mQ.js";import{B as je}from"../chunks/DAV9bzjw.js";import{b as Y}from"../chunks/CBY2biv-.js";import{s as F}from"../chunks/CGCMIfh3.js";function ze(z,$){var C;var o=(C=z.$$events)==null?void 0:C[$.type],p=ke(o)?o.slice():o==null?[]:[o];for(var m of p)m.call(this,$)}var Be=d('<div class="state svelte-1s5glru">加载中…</div>'),De=d('<p class="empty-hint svelte-1s5glru">暂无标签。添加后,pipeline 会对新入库条目自动打标签。</p>'),Ie=d('<span class="tag-meta svelte-1s5glru"> </span>'),Re=d('<div class="tag-badge svelte-1s5glru" role="button" tabindex="0"><span class="tag-name svelte-1s5glru"> </span> <!> <button type="button" class="tag-remove svelte-1s5glru" title="从系统标签中删除">×</button></div>'),Ue=d('<div class="tag-list svelte-1s5glru"></div>'),qe=d('<div class="tag-badge suggested svelte-1s5glru" role="button" tabindex="0"><span class="tag-name svelte-1s5glru"> </span> <span class="tag-meta svelte-1s5glru"> </span> <button type="button" class="tag-add svelte-1s5glru" title="添加到系统标签">+</button></div>'),Ae=d('<div class="suggested-section svelte-1s5glru"><h3 class="section-title svelte-1s5glru">建议添加(文章中出现但未在系统标签库中)</h3> <div class="tag-list svelte-1s5glru"></div></div>'),Xe=d('<div class="body svelte-1s5glru"><div class="tags-section svelte-1s5glru"><h3 class="section-title svelte-1s5glru"> </h3> <!></div> <!></div>'),Ye=d('<div class="context-menu svelte-1s5glru" role="menu" tabindex="-1"><button type="button" class="context-menu-item svelte-1s5glru">从所有文章中移除该标签</button></div>'),Ge=d('<div class="feed-wrap svelte-1s5glru"><div class="feed-col svelte-1s5glru"><div class="feed-toolbar-block svelte-1s5glru"><!> <div class="admin-feed-header"><div class="admin-feed-header__left"><h2>系统标签</h2> <p class="admin-feed-header__desc">系统标签库,新入库条目会由 LLM 自动匹配打标签。</p></div> <div class="admin-feed-header__actions"><input type="text" class="admin-toolbar-input" placeholder="输入新标签,回车添加"/> <button type="button" class="admin-toolbar-btn admin-toolbar-btn--primary">添加</button></div></div></div> <div class="feed-body-scroll"><!></div></div></div> <!>',1);function vt(z,$){Ce($,!1);let o=k([]),p=[],m=k([]),C=k(!0),_=k(!1),M=k(""),b=k(null),J=k(!1);async function oe(){a(C,!0);try{const t=await Y("/api/tags");a(o,(t==null?void 0:t.tags)??[]),p=(t==null?void 0:t.stats)??[],a(m,(t==null?void 0:t.suggestedTags)??[])}catch{a(o,[]),p=[],a(m,[])}finally{a(C,!1)}}function ne(t){return p.find(e=>e.name.toLowerCase()===t.toLowerCase())}async function B(t){a(_,!0);try{const e=await Y("/api/tags",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tags:t})});if(!(e!=null&&e.ok))throw new Error((e==null?void 0:e.message)??"保存失败");a(o,(e==null?void 0:e.tags)??t),p=(e==null?void 0:e.stats)??[],a(m,(e==null?void 0:e.suggestedTags)??[]),F("已保存","success")}catch(e){F("保存失败: "+(e instanceof Error?e.message:String(e)),"error")}finally{a(_,!1)}}function G(){const t=s(M).trim();if(!(!t||s(_))){if(s(o).some(e=>e.toLowerCase()===t.toLowerCase())){F("标签已存在","error");return}a(M,""),B([...s(o),t])}}function ie(t){s(_)||B(s(o).filter(e=>e!==t))}function le(t){s(_)||s(o).some(e=>e.toLowerCase()===t.toLowerCase())||B([...s(o),t])}function H(t,e){t.preventDefault(),t.stopPropagation(),a(b,{x:t.clientX,y:t.clientY,tag:e})}function D(){a(b,null)}async function ve(t){if(!s(J)){a(J,!0),a(b,null);try{const e=await Y("/api/tags/remove-from-items",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tag:t})});if(!(e!=null&&e.ok))throw new Error((e==null?void 0:e.message)??"操作失败");a(o,(e==null?void 0:e.tags)??s(o)),p=(e==null?void 0:e.stats)??p,a(m,(e==null?void 0:e.suggestedTags)??s(m)),F(`已从 ${(e==null?void 0:e.removedCount)??0} 篇文章中移除该标签`,"success")}catch(e){F("操作失败: "+(e instanceof Error?e.message:String(e)),"error")}finally{a(J,!1)}}}we(()=>{oe();const t=()=>D(),e=()=>D();return document.addEventListener("click",t),document.addEventListener("contextmenu",e),()=>{document.removeEventListener("click",t),document.removeEventListener("contextmenu",e)}}),Ne();var K=Ge();Pe("1s5glru",t=>{Ee(()=>{$e.title=`标签 - ${Se}`})});var I=Te(K),Q=n(I),R=n(Q),V=n(R);je(V,{});var W=i(V,2),Z=i(n(W),2),N=n(Z);Oe(N);var ee=i(N,2);r(Z),r(W),r(R);var te=i(R,2),ce=n(te);{var ue=t=>{var e=Be();u(t,e)},de=t=>{var e=Xe(),T=n(e),h=n(T),fe=n(h);r(h);var pe=i(h,2);{var _e=v=>{var g=De();u(v,g)},be=v=>{var g=Ue();se(g,5,()=>s(o),ae,(j,y)=>{const c=Me(()=>ne(s(y)));var l=Re(),x=n(l),U=n(x,!0);r(x);var L=i(x,2);{var q=w=>{var A=Ie(),xe=n(A);r(A),E(()=>S(xe,`${s(c).count??""} 篇 · 热度 ${s(c).hotness??""}`)),u(w,A)};O(L,w=>{s(c)&&w(q)})}var P=i(L,2);r(l),E(()=>{re(l,"aria-label",`标签 ${s(y)},右键打开菜单`),S(U,s(y)),P.disabled=s(_)}),f("click",P,X(()=>ie(s(y)))),f("contextmenu",l,w=>H(w,s(y))),u(j,l)}),r(g),u(v,g)};O(pe,v=>{s(o).length===0?v(_e):v(be,-1)})}r(T);var he=i(T,2);{var ye=v=>{var g=Ae(),j=i(n(g),2);se(j,5,()=>s(m),ae,(y,c)=>{var l=qe(),x=n(l),U=n(x,!0);r(x);var L=i(x,2),q=n(L);r(L);var P=i(L,2);r(l),E(()=>{re(l,"aria-label",`建议标签 ${s(c).name},右键打开菜单`),S(U,s(c).name),S(q,`${s(c).count??""} 篇 · 热度 ${s(c).hotness??""}`),P.disabled=s(_)}),f("click",P,X(()=>le(s(c).name))),f("contextmenu",l,w=>H(w,s(c).name)),u(y,l)}),r(j),r(g),u(v,g)};O(he,v=>{s(m).length>0&&v(ye)})}r(e),E(()=>S(fe,`当前标签 (${s(o).length??""})`)),u(t,e)};O(ce,t=>{s(C)?t(ue):t(de,-1)})}r(te),r(Q),r(I);var me=i(I,2);{var ge=t=>{var e=Ye(),T=n(e);r(e),E(()=>{Fe(e,`left: ${s(b).x??""}px; top: ${s(b).y??""}px`),T.disabled=s(J)}),f("click",T,()=>ve(s(b).tag)),f("click",e,X(function(h){ze.call(this,$,h)})),f("keydown",e,h=>h.key==="Escape"&&D()),u(t,e)};O(me,t=>{s(b)&&t(ge)})}E(t=>ee.disabled=t,[()=>!s(M).trim()||s(_)]),Je(N,()=>s(M),t=>a(M,t)),f("keydown",N,t=>t.key==="Enter"&&G()),f("click",ee,G),u(z,K),Le()}export{vt as component};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var As=Object.defineProperty;var ss=r=>{throw TypeError(r)};var Hs=(r,t,e)=>t in r?As(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var y=(r,t,e)=>Hs(r,typeof t!="symbol"?t+"":t,e),Oe=(r,t,e)=>t.has(r)||ss("Cannot "+e);var o=(r,t,e)=>(Oe(r,t,"read from private field"),e?e.call(r):t.get(r)),p=(r,t,e)=>t.has(r)?ss("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),ct=(r,t,e,i)=>(Oe(r,t,"write to private field"),i?i.call(r,e):t.set(r,e),e),xt=(r,t,e)=>(Oe(r,t,"access private method"),e);import{c as V,a as m,f as K,p as Ne,t as Ds}from"../chunks/CS53ooo0.js";import"../chunks/BA4Gucnq.js";import{o as Ls,a as Rs}from"../chunks/Dyvi1wBH.js";import{aA as _,i as s,an as Se,U as q,b7 as j,a4 as Vs,a5 as h,at as ht,f as O,au as dt,am as Ks,av as N,aj as kt,ax as C,aw as B,aC as Fs,aD as Ws,az as mt,d as Us,z as Z,$ as Bs,ay as zs}from"../chunks/vtBo8kBV.js";import{o as qs,e as Pt,s as rt}from"../chunks/B2cyTHdf.js";import{i as Y}from"../chunks/BkD3yAYe.js";import{e as De}from"../chunks/CFwxUBGi.js";import{h as Gs}from"../chunks/DL3Q5sfb.js";import{d as at,P as Js,r as js,a as Ys}from"../chunks/DoRPmqLn.js";import{b as ls}from"../chunks/C8umpVpB.js";import{i as Qs}from"../chunks/DVa8Y-mQ.js";import{a as rs}from"../chunks/CBY2biv-.js";import{s as Ee}from"../chunks/CGCMIfh3.js";import{A as Xs,b as x,n as lt,m as yt,C as hs,w as Mt,G as ds,l as Be,a as Zs,c as $s,d as xe,H as It,J as Ht,E as os,S as Ae,K as is,L as us,M as cs,N as ps,O as fs,e as gs,g as vs,q as tr,o as er,Q as sr,R as ns,f as Pe,s as X,I as rr,P as or}from"../chunks/DsxvjlCC.js";import{p as b,r as de,s as be,l as ir}from"../chunks/BAJAS8BI.js";import{g as nr,P as ar,a as lr,b as hr,F as dr}from"../chunks/6prdYIKP.js";import{c as ur}from"../chunks/C4uF_YIK.js";import{s as cr}from"../chunks/ChUctqXA.js";const pr={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"},fr=Xs(pr);var Dt,_e;class gr{constructor(t,e){p(this,Dt,()=>{});p(this,_e,_(()=>o(this,Dt).call(this)));let i;e!==void 0&&(i=e),ct(this,Dt,()=>{try{return i}finally{i=t()}})}get current(){return s(o(this,_e))}}Dt=new WeakMap,_e=new WeakMap;function vr(r){Se(()=>q(()=>r()))}function mr(r,t,e=!0){if(!(r.length===0||t<0||t>=r.length))return r.length===1&&t===0?r[0]:t===r.length-1?e?r[0]:void 0:r[t+1]}function br(r,t,e=!0){if(!(r.length===0||t<0||t>=r.length))return r.length===1&&t===0?r[0]:t===0?e?r[r.length-1]:void 0:r[t-1]}function _r(r,t,e,i=!0){if(r.length===0||t<0||t>=r.length)return;let n=t+e;return i?n=(n%r.length+r.length)%r.length:n=Math.max(0,Math.min(n,r.length-1)),r[n]}function yr(r,t,e,i=!0){if(r.length===0||t<0||t>=r.length)return;let n=t-e;return i?n=(n%r.length+r.length)%r.length:n=Math.max(0,Math.min(n,r.length-1)),r[n]}function ze(r,t,e){const i=t.toLowerCase();if(i.endsWith(" ")){const d=i.slice(0,-1);if(r.filter(D=>D.toLowerCase().startsWith(d)).length<=1)return ze(r,d,e);const v=e==null?void 0:e.toLowerCase();if(v&&v.startsWith(d)&&v.charAt(d.length)===" "&&t.trim()===d)return e;const H=r.filter(D=>D.toLowerCase().startsWith(i));if(H.length>0){const D=e?r.indexOf(e):-1;return as(H,Math.max(D,0)).find(L=>L!==e)||e}}const f=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=f.toLowerCase(),u=e?r.indexOf(e):-1;let g=as(r,Math.max(u,0));f.length===1&&(g=g.filter(d=>d!==e));const c=g.find(d=>d==null?void 0:d.toLowerCase().startsWith(a));return c!==e?c:void 0}function as(r,t){return r.map((e,i)=>r[(t+i)%r.length])}const wr={afterMs:1e4,onChange:lt};function ms(r,t){const{afterMs:e,onChange:i,getWindow:n}={...wr,...t};let f=null,a=j(Vs(r));function u(){return n().setTimeout(()=>{h(a,r,!0),i==null||i(r)},e)}return Se(()=>()=>{f&&n().clearTimeout(f)}),x(()=>s(a),g=>{h(a,g,!0),i==null||i(g),f&&n().clearTimeout(f),f=u()})}var ot,it,ye,we;class Cr{constructor(t){p(this,ot);p(this,it);p(this,ye,_(()=>o(this,ot).onMatch?o(this,ot).onMatch:t=>t.focus()));p(this,we,_(()=>o(this,ot).getCurrentItem?o(this,ot).getCurrentItem:o(this,ot).getActiveElement));ct(this,ot,t),ct(this,it,ms("",{afterMs:1e3,getWindow:t.getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t,e){var g,w;if(!e.length)return;o(this,it).current=o(this,it).current+t;const i=s(o(this,we))(),n=((w=(g=e.find(c=>c===i))==null?void 0:g.textContent)==null?void 0:w.trim())??"",f=e.map(c=>{var d;return((d=c.textContent)==null?void 0:d.trim())??""}),a=ze(f,o(this,it).current,n),u=e.find(c=>{var d;return((d=c.textContent)==null?void 0:d.trim())===a});return u&&s(o(this,ye))(u),u}resetTypeahead(){o(this,it).current=""}get search(){return o(this,it).current}}ot=new WeakMap,it=new WeakMap,ye=new WeakMap,we=new WeakMap;var Nr=K("<input/>"),Sr=K("<input/>");function xr(r,t){ht(t,!0);let e=b(t,"value",15),i=de(t,["$$slots","$$events","$$legacy","value"]);const n=_(()=>yt(i,{"aria-hidden":"true",tabindex:-1,style:fr}));var f=V(),a=O(f);{var u=w=>{var c=Nr();at(c,()=>({...s(n),value:e()}),void 0,void 0,void 0,void 0,!0),m(w,c)},g=w=>{var c=Sr();at(c,()=>({...s(n)}),void 0,void 0,void 0,void 0,!0),ls(c,e),m(w,c)};Y(a,w=>{s(n).type==="checkbox"?w(u):w(g,-1)})}m(r,f),dt()}var nt,bt,pt;class Pr{constructor(t){p(this,nt);p(this,bt,_(()=>o(this,nt).candidateValues()));p(this,pt);ct(this,nt,t),ct(this,pt,ms("",{afterMs:1e3,getWindow:o(this,nt).getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t){if(!o(this,nt).enabled()||!s(o(this,bt)).length)return;o(this,pt).current=o(this,pt).current+t;const e=o(this,nt).getCurrentItem(),i=s(o(this,bt)).find(u=>u===e)??"",n=s(o(this,bt)).map(u=>u??""),f=ze(n,o(this,pt).current,i),a=s(o(this,bt)).find(u=>u===f);return a&&o(this,nt).onMatch(a),a}resetTypeahead(){o(this,pt).current=""}}nt=new WeakMap,bt=new WeakMap,pt=new WeakMap;const Ir=[Ht,us,cs],Tr=[It,ps,fs],kr=[...Ir,...Tr],Mr=$s({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),ue=new hs("Select.Root | Combobox.Root"),bs=new hs("Select.Content | Combobox.Content");var Lt,Rt,Vt,Kt,Ft,Wt,Ut,Bt,zt,qt;class _s{constructor(t){y(this,"opts");p(this,Lt,j(!1));p(this,Rt,j(null));p(this,Vt,j(null));y(this,"contentPresence");p(this,Kt,j(null));p(this,Ft,j(null));p(this,Wt,j(""));p(this,Ut,j(null));p(this,Bt,_(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null));p(this,zt,_(()=>{if(this.highlightedNode)return this.highlightedNode.id}));p(this,qt,_(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null));y(this,"isUsingKeyboard",!1);y(this,"isCombobox",!1);y(this,"domContext",new Be(()=>null));y(this,"getBitsAttr",t=>Mr.getAttr(t,this.isCombobox?"combobox":void 0));this.opts=t,this.isCombobox=t.isCombobox,this.contentPresence=new Zs({ref:x(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),Ks(()=>{this.opts.open.current||this.setHighlightedNode(null)})}get touchedInput(){return s(o(this,Lt))}set touchedInput(t){h(o(this,Lt),t,!0)}get inputNode(){return s(o(this,Rt))}set inputNode(t){h(o(this,Rt),t,!0)}get contentNode(){return s(o(this,Vt))}set contentNode(t){h(o(this,Vt),t,!0)}get viewportNode(){return s(o(this,Kt))}set viewportNode(t){h(o(this,Kt),t,!0)}get triggerNode(){return s(o(this,Ft))}set triggerNode(t){h(o(this,Ft),t,!0)}get valueId(){return s(o(this,Wt))}set valueId(t){h(o(this,Wt),t,!0)}get highlightedNode(){return s(o(this,Ut))}set highlightedNode(t){h(o(this,Ut),t,!0)}get highlightedValue(){return s(o(this,Bt))}set highlightedValue(t){h(o(this,Bt),t)}get highlightedId(){return s(o(this,zt))}set highlightedId(t){h(o(this,zt),t)}get highlightedLabel(){return s(o(this,qt))}set highlightedLabel(t){h(o(this,qt),t)}setHighlightedNode(t,e=!1){this.highlightedNode=t,t&&(this.isUsingKeyboard||e)&&t.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const t=this.contentNode;return t?Array.from(t.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(t=!1){this.setHighlightedNode(null);let e=this.getCandidateNodes();if(e.length){if(this.viewportNode){const i=this.viewportNode.getBoundingClientRect();e=e.filter(n=>{if(!this.viewportNode)return!1;const f=n.getBoundingClientRect();return f.right<=i.right&&f.left>=i.left&&f.bottom<=i.bottom&&f.top>=i.top})}this.setHighlightedNode(e[0],t)}}getNodeByValue(t){return this.getCandidateNodes().find(i=>i.dataset.value===t)??null}setOpen(t){this.opts.open.current=t}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}}Lt=new WeakMap,Rt=new WeakMap,Vt=new WeakMap,Kt=new WeakMap,Ft=new WeakMap,Wt=new WeakMap,Ut=new WeakMap,Bt=new WeakMap,zt=new WeakMap,qt=new WeakMap;var Gt,Jt,jt,Yt;class Or extends _s{constructor(e){super(e);y(this,"opts");y(this,"isMulti",!1);p(this,Gt,_(()=>this.opts.value.current!==""));p(this,Jt,_(()=>{var e;return this.opts.items.current.length?((e=this.opts.items.current.find(i=>i.value===this.opts.value.current))==null?void 0:e.label)??"":""}));p(this,jt,_(()=>this.opts.items.current.length?this.opts.items.current.filter(i=>!i.disabled).map(i=>i.label):[]));p(this,Yt,_(()=>!(this.isMulti||this.opts.items.current.length===0)));this.opts=e,Se(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),Mt(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return s(o(this,Gt))}set hasValue(e){h(o(this,Gt),e)}get currentLabel(){return s(o(this,Jt))}set currentLabel(e){h(o(this,Jt),e)}get candidateLabels(){return s(o(this,jt))}set candidateLabels(e){h(o(this,jt),e)}get dataTypeaheadEnabled(){return s(o(this,Yt))}set dataTypeaheadEnabled(e){h(o(this,Yt),e)}includesItem(e){return this.opts.value.current===e}toggleItem(e,i=e){const n=this.includesItem(e)?"":e;this.opts.value.current=n,n!==""&&(this.opts.inputValue.current=i)}setInitialHighlightedNode(){ds(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const e=this.getNodeByValue(this.opts.value.current);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Gt=new WeakMap,Jt=new WeakMap,jt=new WeakMap,Yt=new WeakMap;var Qt;class Er extends _s{constructor(e){super(e);y(this,"opts");y(this,"isMulti",!0);p(this,Qt,_(()=>this.opts.value.current.length>0));this.opts=e,Se(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),Mt(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return s(o(this,Qt))}set hasValue(e){h(o(this,Qt),e)}includesItem(e){return this.opts.value.current.includes(e)}toggleItem(e,i=e){this.includesItem(e)?this.opts.value.current=this.opts.value.current.filter(n=>n!==e):this.opts.value.current=[...this.opts.value.current,e],this.opts.inputValue.current=i}setInitialHighlightedNode(){ds(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const e=this.getNodeByValue(this.opts.value.current[0]);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Qt=new WeakMap;class Ar{static create(t){const{type:e,...i}=t,n=e==="single"?new Or(i):new Er(i);return ue.set(n)}}var _t,Tt,$,ys,Re,Ve,Xt;const qe=class qe{constructor(t,e){p(this,$);y(this,"opts");y(this,"root");y(this,"attachment");p(this,_t);p(this,Tt);p(this,Xt,_(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":tr(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":vs(this.root.opts.open.current),"data-disabled":gs(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment})));this.opts=t,this.root=e,this.attachment=xe(t.ref,i=>this.root.triggerNode=i),this.root.domContext=new Be(t.ref),ct(this,_t,new Cr({getCurrentItem:()=>this.root.highlightedNode,onMatch:i=>{this.root.setHighlightedNode(i)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()})),ct(this,Tt,new Pr({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:i=>{if(this.root.isMulti||!this.root.opts.items.current)return;const n=this.root.opts.items.current.find(f=>f.label===i);n&&(this.root.opts.value.current=n.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()})),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}static create(t){return new qe(t,ue.get())}onkeydown(t){if(this.root.isUsingKeyboard=!0,(t.key===It||t.key===Ht)&&t.preventDefault(),!this.root.opts.open.current){if(t.key===os||t.key===Ae||t.key===Ht||t.key===It)t.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){o(this,Tt).handleTypeaheadSearch(t.key);return}if(this.root.hasValue)return;const a=this.root.getCandidateNodes();if(!a.length)return;if(t.key===Ht){const u=a[0];this.root.setHighlightedNode(u)}else if(t.key===It){const u=a[a.length-1];this.root.setHighlightedNode(u)}return}if(t.key===is){this.root.handleClose();return}if((t.key===os||t.key===Ae&&o(this,_t).search==="")&&!t.isComposing&&(t.preventDefault(),xt(this,$,Ve).call(this)))return;if(t.key===It&&t.altKey&&this.root.handleClose(),kr.includes(t.key)){t.preventDefault();const a=this.root.getCandidateNodes(),u=this.root.highlightedNode,g=u?a.indexOf(u):-1,w=this.root.opts.loop.current;let c;if(t.key===Ht?c=mr(a,g,w):t.key===It?c=br(a,g,w):t.key===ps?c=_r(a,g,10,w):t.key===us?c=yr(a,g,10,w):t.key===cs?c=a[0]:t.key===fs&&(c=a[a.length-1]),!c)return;this.root.setHighlightedNode(c);return}const e=t.ctrlKey||t.altKey||t.metaKey,i=t.key.length===1,n=t.key===Ae,f=this.root.getCandidateNodes();if(t.key!==is){if(!e&&(i||n)){!o(this,_t).handleTypeaheadSearch(t.key,f)&&n&&(t.preventDefault(),xt(this,$,Ve).call(this));return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(t){t.currentTarget.focus()}onpointerdown(t){if(this.root.opts.disabled.current)return;if(t.pointerType==="touch")return t.preventDefault();const e=t.target;e!=null&&e.hasPointerCapture(t.pointerId)&&(e==null||e.releasePointerCapture(t.pointerId)),t.button===0&&t.ctrlKey===!1&&(this.root.opts.open.current===!1?xt(this,$,Re).call(this,t):this.root.handleClose())}onpointerup(t){this.root.opts.disabled.current||(t.preventDefault(),t.pointerType==="touch"&&(this.root.opts.open.current===!1?xt(this,$,Re).call(this,t):this.root.handleClose()))}get props(){return s(o(this,Xt))}set props(t){h(o(this,Xt),t)}};_t=new WeakMap,Tt=new WeakMap,$=new WeakSet,ys=function(){this.root.opts.open.current=!0,o(this,Tt).resetTypeahead(),o(this,_t).resetTypeahead()},Re=function(t){xt(this,$,ys).call(this)},Ve=function(){const t=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t?(this.root.handleClose(),!0):!1)},Xt=new WeakMap;let Le=qe;var Zt,Ce,$t,te;const Ge=class Ge{constructor(t,e){y(this,"opts");y(this,"root");y(this,"attachment");p(this,Zt,j(!1));y(this,"domContext");p(this,Ce,_(()=>nr(this.root.isCombobox?"combobox":"select")));y(this,"onInteractOutside",t=>{if(t.target===this.root.triggerNode||t.target===this.root.inputNode){t.preventDefault();return}this.opts.onInteractOutside.current(t),!t.defaultPrevented&&this.root.handleClose()});y(this,"onEscapeKeydown",t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()});y(this,"onOpenAutoFocus",t=>{t.preventDefault()});y(this,"onCloseAutoFocus",t=>{t.preventDefault()});p(this,$t,_(()=>({open:this.root.opts.open.current})));p(this,te,_(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":vs(this.root.opts.open.current),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...s(o(this,Ce))},onpointermove:this.onpointermove,...this.attachment})));y(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.isPositioned=!0)}});this.opts=t,this.root=e,this.attachment=xe(t.ref,i=>this.root.contentNode=i),this.domContext=new Be(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),er(()=>{this.root.contentNode=null,this.isPositioned=!1}),Mt(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.isPositioned=!1)}),this.onpointermove=this.onpointermove.bind(this)}static create(t){return bs.set(new Ge(t,ue.get()))}get isPositioned(){return s(o(this,Zt))}set isPositioned(t){h(o(this,Zt),t,!0)}onpointermove(t){this.root.isUsingKeyboard=!1}get shouldRender(){return this.root.contentPresence.shouldRender}get snippetProps(){return s(o(this,$t))}set snippetProps(t){h(o(this,$t),t)}get props(){return s(o(this,te))}set props(t){h(o(this,te),t)}};Zt=new WeakMap,Ce=new WeakMap,$t=new WeakMap,te=new WeakMap;let Ke=Ge;var ee,se,re,oe,ie;const Je=class Je{constructor(t,e){y(this,"opts");y(this,"root");y(this,"attachment");p(this,ee,_(()=>this.root.includesItem(this.opts.value.current)));p(this,se,_(()=>this.root.highlightedValue===this.opts.value.current));y(this,"prevHighlighted",new gr(()=>this.isHighlighted));p(this,re,j(!1));p(this,oe,_(()=>({selected:this.isSelected,highlighted:this.isHighlighted})));p(this,ie,_(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":gs(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment})));this.opts=t,this.root=e,this.attachment=xe(t.ref),Mt([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),Mt(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}static create(t){return new Je(t,ue.get())}get isSelected(){return s(o(this,ee))}set isSelected(t){h(o(this,ee),t)}get isHighlighted(){return s(o(this,se))}set isHighlighted(t){h(o(this,se),t)}get mounted(){return s(o(this,re))}set mounted(t){h(o(this,re),t,!0)}handleSelect(){if(this.opts.disabled.current)return;const t=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!t&&this.root.handleClose()}get snippetProps(){return s(o(this,oe))}set snippetProps(t){h(o(this,oe),t)}onpointerdown(t){t.preventDefault()}onpointerup(t){if(!(t.defaultPrevented||!this.opts.ref.current)){if(t.pointerType==="touch"&&!sr){qs(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}t.preventDefault(),this.handleSelect(),t.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(t){t.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}get props(){return s(o(this,ie))}set props(t){h(o(this,ie),t)}};ee=new WeakMap,se=new WeakMap,re=new WeakMap,oe=new WeakMap,ie=new WeakMap;let Fe=Je;var ne,ae;const je=class je{constructor(t,e){y(this,"opts");y(this,"root");p(this,ne,_(()=>this.root.opts.name.current!==""));p(this,ae,_(()=>({disabled:ns(this.root.opts.disabled.current),required:ns(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus})));this.opts=t,this.root=e,this.onfocus=this.onfocus.bind(this)}static create(t){return new je(t,ue.get())}get shouldRender(){return s(o(this,ne))}set shouldRender(t){h(o(this,ne),t)}onfocus(t){var e,i;t.preventDefault(),this.root.isCombobox?(i=this.root.inputNode)==null||i.focus():(e=this.root.triggerNode)==null||e.focus()}get props(){return s(o(this,ae))}set props(t){h(o(this,ae),t)}};ne=new WeakMap,ae=new WeakMap;let We=je;var le,he;const Ye=class Ye{constructor(t,e){y(this,"opts");y(this,"content");y(this,"root");y(this,"attachment");p(this,le,j(0));p(this,he,_(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment})));this.opts=t,this.content=e,this.root=e.root,this.attachment=xe(t.ref,i=>{this.root.viewportNode=i})}static create(t){return new Ye(t,bs.get())}get prevScrollTop(){return s(o(this,le))}set prevScrollTop(t){h(o(this,le),t,!0)}get props(){return s(o(this,he))}set props(t){h(o(this,he),t)}};le=new WeakMap,he=new WeakMap;let Ue=Ye;function He(r,t){ht(t,!0);let e=b(t,"value",15);const i=We.create({value:x(()=>e())});var n=V(),f=O(n);{var a=u=>{xr(u,be(()=>i.props,{get autocomplete(){return t.autocomplete},get value(){return e()},set value(g){e(g)}}))};Y(f,u=>{i.shouldRender&&u(a)})}m(r,n),dt()}var Hr=K("<div><div><!></div></div>"),Dr=K("<div><div><!></div></div>");function Lr(r,t){const e=Ne();ht(t,!0);let i=b(t,"id",19,()=>Pe(e)),n=b(t,"ref",15,null),f=b(t,"forceMount",3,!1),a=b(t,"side",3,"bottom"),u=b(t,"onInteractOutside",3,lt),g=b(t,"onEscapeKeydown",3,lt),w=b(t,"preventScroll",3,!1),c=de(t,["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]);const d=Ke.create({id:x(()=>i()),ref:x(()=>n(),S=>n(S)),onInteractOutside:x(()=>u()),onEscapeKeydown:x(()=>g())}),I=_(()=>yt(c,d.props));var v=V(),H=O(v);{var D=S=>{ar(S,be(()=>s(I),()=>d.popperProps,{get ref(){return d.opts.ref},get side(){return a()},get enabled(){return d.root.opts.open.current},get id(){return i()},get preventScroll(){return w()},forceMount:!0,get shouldRender(){return d.shouldRender},popper:(R,P)=>{let U=()=>P==null?void 0:P().props,tt=()=>P==null?void 0:P().wrapperProps;const k=_(()=>yt(U(),{style:d.props.style},{style:t.style}));var J=V(),Q=O(J);{var et=M=>{var E=V(),F=O(E);{let G=_(()=>({props:s(k),wrapperProps:tt(),...d.snippetProps}));X(F,()=>t.child,()=>s(G))}m(M,E)},ft=M=>{var E=Hr();at(E,()=>({...tt()}));var F=N(E);at(F,()=>({...s(k)}));var G=N(F);X(G,()=>t.children??kt),C(F),C(E),m(M,E)};Y(Q,M=>{t.child?M(et):M(ft,-1)})}m(R,J)},$$slots:{popper:!0}}))},W=S=>{lr(S,be(()=>s(I),()=>d.popperProps,{get ref(){return d.opts.ref},get side(){return a()},get open(){return d.root.opts.open.current},get id(){return i()},get preventScroll(){return w()},forceMount:!1,get shouldRender(){return d.shouldRender},popper:(R,P)=>{let U=()=>P==null?void 0:P().props,tt=()=>P==null?void 0:P().wrapperProps;const k=_(()=>yt(U(),{style:d.props.style},{style:t.style}));var J=V(),Q=O(J);{var et=M=>{var E=V(),F=O(E);{let G=_(()=>({props:s(k),wrapperProps:tt(),...d.snippetProps}));X(F,()=>t.child,()=>s(G))}m(M,E)},ft=M=>{var E=Dr();at(E,()=>({...tt()}));var F=N(E);at(F,()=>({...s(k)}));var G=N(F);X(G,()=>t.children??kt),C(F),C(E),m(M,E)};Y(Q,M=>{t.child?M(et):M(ft,-1)})}m(R,J)},$$slots:{popper:!0}}))};Y(H,S=>{f()?S(D):f()||S(W,1)})}m(r,v),dt()}function Rr(r,t){ht(t,!0);let e=b(t,"mounted",15,!1),i=b(t,"onMountedChange",3,lt);vr(()=>(e(!0),i()(!0),()=>{e(!1),i()(!1)})),dt()}var Vr=K("<div><!></div>"),Kr=K("<!> <!>",1);function Fr(r,t){const e=Ne();ht(t,!0);let i=b(t,"id",19,()=>Pe(e)),n=b(t,"ref",15,null),f=b(t,"label",19,()=>t.value),a=b(t,"disabled",3,!1),u=b(t,"onHighlight",3,lt),g=b(t,"onUnhighlight",3,lt),w=de(t,["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]);const c=Fe.create({id:x(()=>i()),ref:x(()=>n(),S=>n(S)),value:x(()=>t.value),disabled:x(()=>a()),label:x(()=>f()),onHighlight:x(()=>u()),onUnhighlight:x(()=>g())}),d=_(()=>yt(w,c.props));var I=Kr(),v=O(I);{var H=S=>{var L=V(),R=O(L);{let P=_(()=>({props:s(d),...c.snippetProps}));X(R,()=>t.child,()=>s(P))}m(S,L)},D=S=>{var L=Vr();at(L,()=>({...s(d)}));var R=N(L);X(R,()=>t.children??kt,()=>c.snippetProps),C(L),m(S,L)};Y(v,S=>{t.child?S(H):S(D,-1)})}var W=B(v,2);Rr(W,{get mounted(){return c.mounted},set mounted(S){c.mounted=S}}),m(r,I),dt()}var Wr=K("<div><!></div>");function Ur(r,t){const e=Ne();ht(t,!0);let i=b(t,"id",19,()=>Pe(e)),n=b(t,"ref",15,null),f=de(t,["$$slots","$$events","$$legacy","id","ref","children","child"]);const a=Ue.create({id:x(()=>i()),ref:x(()=>n(),I=>n(I))}),u=_(()=>yt(f,a.props));var g=V(),w=O(g);{var c=I=>{var v=V(),H=O(v);X(H,()=>t.child,()=>({props:s(u)})),m(I,v)},d=I=>{var v=Wr();at(v,()=>({...s(u)}));var H=N(v);X(H,()=>t.children??kt),C(v),m(I,v)};Y(w,I=>{t.child?I(c):I(d,-1)})}m(r,g),dt()}var Br=K("<!> <!>",1);function zr(r,t){ht(t,!0);let e=b(t,"value",15),i=b(t,"onValueChange",3,lt),n=b(t,"name",3,""),f=b(t,"disabled",3,!1),a=b(t,"open",15,!1),u=b(t,"onOpenChange",3,lt),g=b(t,"onOpenChangeComplete",3,lt),w=b(t,"loop",3,!1),c=b(t,"scrollAlignment",3,"nearest"),d=b(t,"required",3,!1),I=b(t,"items",19,()=>[]),v=b(t,"allowDeselect",3,!1);function H(){e()===void 0&&e(t.type==="single"?"":[])}H(),Mt.pre(()=>e(),()=>{H()});let D=j("");const W=Ar.create({type:t.type,value:x(()=>e(),k=>{e(k),i()(k)}),disabled:x(()=>f()),required:x(()=>d()),open:x(()=>a(),k=>{a(k),u()(k)}),loop:x(()=>w()),scrollAlignment:x(()=>c()),name:x(()=>n()),isCombobox:!1,items:x(()=>I()),allowDeselect:x(()=>v()),inputValue:x(()=>s(D),k=>h(D,k,!0)),onOpenChangeComplete:x(()=>g())});var S=Br(),L=O(S);hr(L,{children:(k,J)=>{var Q=V(),et=O(Q);X(et,()=>t.children??kt),m(k,Q)},$$slots:{default:!0}});var R=B(L,2);{var P=k=>{var J=V(),Q=O(J);{var et=M=>{He(M,{get autocomplete(){return t.autocomplete}})},ft=M=>{var E=V(),F=O(E);De(F,16,()=>W.opts.value.current,G=>G,(G,ce)=>{He(G,{get value(){return ce},get autocomplete(){return t.autocomplete}})}),m(M,E)};Y(Q,M=>{W.opts.value.current.length===0?M(et):M(ft,-1)})}m(k,J)},U=_(()=>Array.isArray(W.opts.value.current)),tt=k=>{He(k,{get autocomplete(){return t.autocomplete},get value(){return W.opts.value.current},set value(J){W.opts.value.current=J}})};Y(R,k=>{s(U)?k(P):k(tt,-1)})}m(r,S),dt()}var qr=K("<button><!></button>");function Gr(r,t){const e=Ne();ht(t,!0);let i=b(t,"id",19,()=>Pe(e)),n=b(t,"ref",15,null),f=b(t,"type",3,"button"),a=de(t,["$$slots","$$events","$$legacy","id","ref","child","children","type"]);const u=Le.create({id:x(()=>i()),ref:x(()=>n(),d=>n(d))}),g=_(()=>yt(a,u.props,{type:f()}));var w=V(),c=O(w);ur(c,()=>dr,(d,I)=>{I(d,{get id(){return i()},get ref(){return u.opts.ref},children:(v,H)=>{var D=V(),W=O(D);{var S=R=>{var P=V(),U=O(P);X(U,()=>t.child,()=>({props:s(g)})),m(R,P)},L=R=>{var P=qr();at(P,()=>({...s(g)}));var U=N(P);X(U,()=>t.children??kt),C(P),m(R,P)};Y(W,R=>{t.child?R(S):R(L,-1)})}m(v,D)},$$slots:{default:!0}})}),m(r,w),dt()}function Jr(r,t){const e=ir(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 i=[["path",{d:"m6 9 6 6 6-6"}]];rr(r,be({name:"chevron-down"},()=>e,{get iconNode(){return i},children:(n,f)=>{var a=V(),u=O(a);cr(u,t,"default",{}),m(n,a)},$$slots:{default:!0}}))}var jr=K("<span> </span> <!>",1),Yr=K("<!> <!>",1),Qr=K('<div class="state err svelte-1lsf4ps"> </div>'),Xr=K('<div class="state svelte-1lsf4ps">加载中…</div>'),Zr=K('<div class="state svelte-1lsf4ps">暂无日志</div>'),$r=K('<tr class="payload-row svelte-1lsf4ps"><td colspan="4" class="svelte-1lsf4ps"><pre class="payload-content svelte-1lsf4ps"> </pre></td></tr>'),to=K('<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></tr> <!>',1),eo=K('<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></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>'),so=K('<div class="feed-wrap svelte-1lsf4ps"><div class="feed-col svelte-1lsf4ps"><div class="feed-toolbar-block svelte-1lsf4ps"><div class="admin-feed-header"><div class="admin-feed-header__left"><h2>日志</h2> <p class="admin-feed-header__desc">查看运行日志、筛选分类与级别</p></div> <div class="admin-feed-header__actions"><input type="search" class="admin-toolbar-input log-filter-input svelte-1lsf4ps" placeholder="过滤…" autocomplete="off" spellcheck="false" aria-label="分类"/> <!> <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 No(r,t){ht(t,!1);const e=Z(),n=[{value:"",label:"全部"},...["error","warn","info","debug"].map(l=>({value:l,label:l}))],f=350;let a=Z([]),u=Z(0),g=Z(!1),w=Z(""),c=Z(""),d=Z(""),I=null,v=Z(0),H=Z(null),D=Z(!1);const W=100;function S(){I&&(clearTimeout(I),I=null)}function L(){S(),I=setTimeout(()=>{I=null,h(v,0),U()},f)}function R(l){h(c,l),h(v,0),U()}Ls(()=>{U()}),Rs(()=>{S()});function P(){const l=new URLSearchParams;l.set("limit",String(W)),l.set("offset",String(s(v))),s(c)&&l.set("level",s(c));const T=s(d).trim();return T&&l.set("category",T),"/api/logs?"+l.toString()}async function U(){h(g,!0),h(w,"");try{const l=await rs(P());if(!l.ok)throw new Error(await l.text().catch(()=>`HTTP ${l.status}`));const T=await l.json();h(a,T.items??[]),h(u,T.total??0)}catch(l){h(w,l instanceof Error?l.message:String(l)),h(a,[]),h(u,0)}finally{h(g,!1)}}async function tt(){if(confirm("确定清空全部日志?此操作不可恢复。")){h(D,!0),S();try{const l=await rs("/api/logs",{method:"DELETE"}),T=await l.text();let z={};try{z=T?JSON.parse(T):{}}catch{z={}}if(!l.ok){Ee(z.error||T||`HTTP ${l.status}`,"error");return}z.ok&&(Ee(z.deleted!=null?`已清空 ${z.deleted} 条`:"已清空日志","success"),h(v,0),h(H,null),await U())}catch(l){Ee(l instanceof Error?l.message:String(l),"error")}finally{h(D,!1)}}}function k(){s(v)<=0||(h(v,Math.max(0,s(v)-W)),U())}function J(){s(v)+s(a).length>=s(u)||(h(v,s(v)+W),U())}function Q(l){h(H,s(H)===l?null:l)}function et(l){try{return new Date(l).toLocaleString("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}catch{return l}}function ft(l){if(!l)return"";try{return JSON.stringify(JSON.parse(l),null,2)}catch{return l}}Fs(()=>s(c),()=>{var l;h(e,((l=n.find(T=>T.value===s(c)))==null?void 0:l.label)??"全部")}),Ws(),Qs();var M=so();Gs("1lsf4ps",l=>{Us(()=>{Bs.title=`日志 - ${Js}`})});var E=N(M),F=N(E),G=N(F),ce=B(N(G),2),pe=N(ce);js(pe);var Qe=B(pe,2);zr(Qe,{type:"single",get value(){return s(c)},onValueChange:R,get items(){return n},children:(l,T)=>{var z=Yr(),Ot=O(z);Gr(Ot,{class:"log-level-trigger","aria-label":"级别",children:(wt,ge)=>{var ut=jr(),Ct=O(ut),Nt=N(Ct,!0);C(Ct);var St=B(Ct,2);Jr(St,{size:14,"aria-hidden":"true"}),mt(()=>rt(Nt,s(e))),m(wt,ut)},$$slots:{default:!0}});var fe=B(Ot,2);or(fe,{children:(wt,ge)=>{Lr(wt,{class:"log-level-content",sideOffset:4,children:(ut,Ct)=>{Ur(ut,{class:"log-level-viewport",children:(Nt,St)=>{var Et=V(),At=O(Et);De(At,1,()=>n,A=>A.value,(A,st)=>{Fr(A,{class:"log-level-item",get value(){return s(st),q(()=>s(st).value)},get label(){return s(st),q(()=>s(st).label)},children:(gt,ve)=>{zs();var me=Ds();mt(()=>rt(me,(s(st),q(()=>s(st).label)))),m(gt,me)},$$slots:{default:!0}})}),m(Nt,Et)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}}),m(l,z)},$$slots:{default:!0}});var Xe=B(Qe,2);C(ce),C(G),C(F);var Ze=B(F,2),ws=N(Ze);{var Cs=l=>{var T=Qr(),z=N(T,!0);C(T),mt(()=>rt(z,s(w))),m(l,T)},Ns=l=>{var T=Xr();m(l,T)},Ss=l=>{var T=Zr();m(l,T)},xs=l=>{var T=eo(),z=N(T),Ot=N(z),fe=N(Ot),wt=B(N(fe));De(wt,5,()=>s(a),At=>At.id,(At,A)=>{var st=to(),gt=O(st),ve=N(gt),me=N(ve,!0);C(ve);var Ie=B(ve),Te=N(Ie),Ps=N(Te,!0);C(Te),C(Ie);var ke=B(Ie),Is=N(ke,!0);C(ke);var $e=B(ke),Ts=N($e,!0);C($e),C(gt);var ks=B(gt,2);{var Ms=vt=>{var Me=$r(),ts=N(Me),es=N(ts),Os=N(es,!0);C(es),C(ts),C(Me),mt(Es=>rt(Os,Es),[()=>(s(A),q(()=>ft(s(A).payload)))]),m(vt,Me)};Y(ks,vt=>{s(H),s(A),q(()=>s(H)===s(A).id&&s(A).payload)&&vt(Ms)})}mt(vt=>{rt(me,vt),Ys(Te,1,`badge level-${s(A),q(()=>s(A).level)??""}`,"svelte-1lsf4ps"),rt(Ps,(s(A),q(()=>s(A).level))),rt(Is,(s(A),q(()=>s(A).category))),rt(Ts,(s(A),q(()=>s(A).message)))},[()=>(s(A),q(()=>et(s(A).created_at)))]),Pt("click",gt,()=>Q(s(A).id)),Pt("keydown",gt,vt=>vt.key==="Enter"&&Q(s(A).id)),m(At,st)}),C(wt),C(fe),C(Ot),C(z);var ge=B(z,2),ut=N(ge),Ct=N(ut);C(ut);var Nt=B(ut,2),St=N(Nt),Et=B(St,2);C(Nt),C(ge),C(T),mt(()=>{rt(Ct,`共 ${s(u)??""} 条,当前 ${s(a),s(v),q(()=>s(a).length?`${s(v)+1}–${s(v)+s(a).length}`:"—")??""}`),St.disabled=s(v)<=0||s(g),Et.disabled=(s(v),s(a),s(u),s(g),q(()=>s(v)+s(a).length>=s(u)||s(g)))}),Pt("click",St,k),Pt("click",Et,J),m(l,T)};Y(ws,l=>{s(w)?l(Cs):(s(g),s(a),q(()=>s(g)&&s(a).length===0)?l(Ns,1):(s(a),q(()=>s(a).length===0)?l(Ss,2):l(xs,-1)))})}C(Ze),C(E),C(M),mt(()=>Xe.disabled=s(g)||s(D)),ls(pe,()=>s(d),l=>h(d,l)),Pt("input",pe,L),Pt("click",Xe,tt),m(r,M),dt()}export{No as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as u,t as st,f as p}from"../chunks/CS53ooo0.js";import"../chunks/BA4Gucnq.js";import{o as Tt}from"../chunks/Dyvi1wBH.js";import{at as Et,aC as ht,aD as Lt,f as rt,i as t,au as Ot,d as Nt,av as l,az as lt,a5 as o,aw as c,z as h,$ as zt,ax as s,U as b,ay as K}from"../chunks/vtBo8kBV.js";import{d as Jt,a as D,e as Mt,s as Q}from"../chunks/B2cyTHdf.js";import{g as Bt}from"../chunks/ClknbeNl.js";import{i as q}from"../chunks/BkD3yAYe.js";import{e as Ft}from"../chunks/CFwxUBGi.js";import{h as Ht}from"../chunks/DL3Q5sfb.js";import{s as O,P as Kt,r as ot}from"../chunks/DoRPmqLn.js";import{b as it}from"../chunks/C8umpVpB.js";import{i as Qt}from"../chunks/DVa8Y-mQ.js";import{a as G}from"../chunks/CBY2biv-.js";import{p as qt}from"../chunks/DXDBlEGf.js";import{g as nt}from"../chunks/Dr67pd7v.js";import{s as m}from"../chunks/CGCMIfh3.js";import{P as Gt}from"../chunks/D6kzEN_P.js";import{D as Vt,a as Wt,b as Xt,c as Yt,d as bt}from"../chunks/DAdOEnFb.js";import{P as Zt}from"../chunks/DsxvjlCC.js";var te=p('<div class="state svelte-1nj0iur">加载中…</div>'),ee=p('<div class="state error svelte-1nj0iur"> </div>'),ae=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>'),se=p('<div class="state svelte-1nj0iur">无匹配结果</div>'),re=p('<span class="kind-badge svelte-1nj0iur">Source</span>'),le=p('<button type="button" class="cell-btn cell-btn--primary svelte-1nj0iur">登录</button>'),oe=p('<span class="cell-dash svelte-1nj0iur" title="未声明站点登录">—</span>'),ie=p('<button type="button" class="cell-btn cell-btn--secondary svelte-1nj0iur">检查登录</button>'),ne=p('<span class="cell-dash svelte-1nj0iur" title="未声明站点登录">—</span>'),de=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>'),ce=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>'),ve=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),ue=p("<!> <!>",1),pe=p('<div class="feed-wrap svelte-1nj0iur"><div class="feed-col svelte-1nj0iur"><div class="plugins-toolbar-block svelte-1nj0iur"><div class="admin-feed-header"><div class="admin-feed-header__left"><h2>插件</h2> <p class="admin-feed-header__desc">管理站点解析插件与登录检查</p></div> <div class="admin-feed-header__actions"><input class="admin-toolbar-input" type="search" placeholder="过滤…" autocomplete="off"/> <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(gt,jt){Et(jt,!1);const U=h(),N=h();let $=h([]),z=h(""),V=h(!0),C=h(!1),j=h(""),y=h(""),S=h(!1),J=h("");function dt(){o(j,""),o(y,""),o(C,!0)}function yt(e){o(C,e),e||(o(j,""),o(y,""))}async function wt(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 G("/api/plugins",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,listUrlPattern:i})}),_=await n.text();let r={};try{r=_?JSON.parse(_):{}}catch{r={}}if(!n.ok){m(r.error||_||`HTTP ${n.status}`,"error");return}r.ok&&(m("已创建插件文件","success"),o(C,!1),o(j,""),o(y,""),await ct(),await nt("/plugins/"+encodeURIComponent(a)))}catch(n){m("请求失败: "+(n instanceof Error?n.message:String(n)),"error")}finally{o(S,!1)}}async function ct(){o(V,!0),o(z,"");try{const a=await(await G("/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(V,!1)}}async function Pt(e,a){a.preventDefault(),a.stopPropagation();try{const n=await(await G(`/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 vt(e){nt("/plugins/"+encodeURIComponent(e.id))}function kt(e,a){(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),vt(e))}async function $t(e,a){a.preventDefault(),a.stopPropagation();try{const n=await(await G(`/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")}}Tt(()=>{ct(),Bt(qt).url.searchParams.get("openAdd")==="1"&&(o(j,""),o(y,""),o(C,!0),nt("/plugins",{replaceState:!0}))}),ht(()=>t(J),()=>{o(U,t(J).trim().toLowerCase())}),ht(()=>(t(U),t($)),()=>{o(N,t(U)?t($).filter(e=>e.id.toLowerCase().includes(t(U))||e.listUrlPattern.toLowerCase().includes(t(U))):t($))}),Lt(),Qt();var ut=pe();Ht("1nj0iur",e=>{Nt(()=>{zt.title=`插件 - ${Kt}`})});var W=rt(ut),pt=l(W),X=l(pt),ft=l(X),mt=c(l(ft),2),M=l(mt);ot(M),O(M,"spellcheck",!1);var Y=c(M,2),xt=l(Y);Gt(xt,{size:16,"aria-hidden":"true"}),s(Y),s(mt),s(ft),s(X);var _t=c(X,2),Dt=l(_t);{var Ut=e=>{var a=te();u(e,a)},Ct=e=>{var a=ee(),i=l(a,!0);s(a),lt(()=>Q(i,t(z))),u(e,a)},St=e=>{var a=ae(),i=c(l(a));K(5),s(a),D("click",i,dt),u(e,a)},At=e=>{var a=se();u(e,a)},It=e=>{var a=ce(),i=l(a),n=c(l(i));Ft(n,5,()=>t(N),_=>_.id,(_,r)=>{var g=de(),A=l(g),Z=l(A),x=l(Z),I=l(x,!0);s(x);var B=c(x,2);{var tt=d=>{var v=re();u(d,v)};q(B,d=>{t(r),b(()=>t(r).kind==="source")&&d(tt)})}s(Z),s(A);var w=c(A),P=l(w),R=l(P,!0);s(P),s(w);var k=c(w),T=l(k);{var F=d=>{var v=le();D("click",v,at=>$t(t(r),at)),u(d,v)},H=d=>{var v=oe();u(d,v)};q(T,d=>{t(r),b(()=>t(r).hasAuth)?d(F):d(H,-1)})}s(k);var E=c(k),L=l(E);{var et=d=>{var v=ie();D("click",v,at=>Pt(t(r),at)),u(d,v)},f=d=>{var v=ne();u(d,v)};q(L,d=>{t(r),b(()=>t(r).hasAuth)?d(et):d(f,-1)})}s(E),s(g),lt(()=>{O(g,"aria-label",`打开插件 ${t(r),b(()=>t(r).id)??""}`),Q(I,(t(r),b(()=>t(r).id))),O(P,"title",(t(r),b(()=>t(r).listUrlPattern))),Q(R,(t(r),b(()=>t(r).listUrlPattern)))}),D("click",g,()=>vt(t(r))),D("keydown",g,d=>kt(t(r),d)),u(_,g)}),s(n),s(i),s(a),u(e,a)};q(Dt,e=>{t(V)?e(Ut):t(z)?e(Ct,1):(t($),b(()=>t($).length===0)?e(St,2):(t(N),b(()=>t(N).length===0)?e(At,3):e(It,-1)))})}s(_t),s(pt),s(W);var Rt=c(W,2);Vt(Rt,{get open(){return t(C)},onOpenChange:yt,children:(e,a)=>{Zt(e,{children:(i,n)=>{var _=ue(),r=rt(_);Wt(r,{class:"modal-overlay"});var g=c(r,2);Xt(g,{class:"modal","aria-describedby":void 0,children:(A,Z)=>{var x=ve(),I=rt(x),B=l(I);Yt(B,{class:"modal-title",children:(f,d)=>{K();var v=st("添加插件");u(f,v)},$$slots:{default:!0}});var tt=c(B,2);bt(tt,{class:"modal-close","aria-label":"关闭",children:(f,d)=>{K();var v=st("✕");u(f,v)},$$slots:{default:!0}}),s(I);var w=c(I,2),P=c(l(w),2),R=c(l(P),2);ot(R),O(R,"spellcheck",!1),s(P);var k=c(P,2),T=c(l(k),2);ot(T),O(T,"spellcheck",!1),s(k);var F=c(k,2),H=l(F),E=l(H);bt(E,{class:"btn-cancel",get disabled(){return t(S)},type:"button",children:(f,d)=>{K();var v=st("取消");u(f,v)},$$slots:{default:!0}});var L=c(E,2),et=l(L,!0);s(L),s(H),s(F),s(w),lt(()=>{L.disabled=t(S),Q(et,t(S)?"创建中…":"创建并打开编辑")}),Mt("submit",w,wt),it(R,()=>t(y),f=>o(y,f)),it(T,()=>t(j),f=>o(j,f)),u(A,x)},$$slots:{default:!0}}),u(i,_)},$$slots:{default:!0}})},$$slots:{default:!0}}),it(M,()=>t(J),e=>o(J,e)),D("click",Y,dt),u(gt,ut),Ot()}Jt(["click","keydown"]);export{Re as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,f as p}from"../chunks/CS53ooo0.js";import"../chunks/BA4Gucnq.js";import{o as m}from"../chunks/Dyvi1wBH.js";import{at as e,au as s,X as i,$ as f}from"../chunks/vtBo8kBV.js";import{h as n}from"../chunks/DL3Q5sfb.js";import{i as c}from"../chunks/DVa8Y-mQ.js";import{g as d}from"../chunks/Dr67pd7v.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};
|