@paperkite/plugin-runtime-console 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/README.md +28 -0
  2. package/dist/console/errors.d.ts +5 -0
  3. package/dist/console/errors.js +11 -0
  4. package/dist/console/errors.js.map +1 -0
  5. package/dist/console/logs.d.ts +1 -0
  6. package/dist/console/logs.js +27 -0
  7. package/dist/console/logs.js.map +1 -0
  8. package/dist/console/server.d.ts +6 -0
  9. package/dist/console/server.js +182 -0
  10. package/dist/console/server.js.map +1 -0
  11. package/dist/index.d.ts +10 -0
  12. package/dist/index.js +83 -0
  13. package/dist/index.js.map +1 -0
  14. package/package.json +68 -0
  15. package/public/_app/immutable/assets/0.DtIwIIdd.css +1 -0
  16. package/public/_app/immutable/assets/5.DqLcCl3W.css +1 -0
  17. package/public/_app/immutable/assets/collapsible-json.Cl9aN9ty.css +1 -0
  18. package/public/_app/immutable/assets/inter-cyrillic-ext-wght-normal.BOeWTOD4.woff2 +0 -0
  19. package/public/_app/immutable/assets/inter-cyrillic-wght-normal.DqGufNeO.woff2 +0 -0
  20. package/public/_app/immutable/assets/inter-greek-ext-wght-normal.DlzME5K_.woff2 +0 -0
  21. package/public/_app/immutable/assets/inter-greek-wght-normal.CkhJZR-_.woff2 +0 -0
  22. package/public/_app/immutable/assets/inter-latin-ext-wght-normal.DO1Apj_S.woff2 +0 -0
  23. package/public/_app/immutable/assets/inter-latin-wght-normal.Dx4kXJAl.woff2 +0 -0
  24. package/public/_app/immutable/assets/inter-vietnamese-wght-normal.CBcvBZtf.woff2 +0 -0
  25. package/public/_app/immutable/assets/jetbrains-mono-cyrillic-wght-normal.D73BlboJ.woff2 +0 -0
  26. package/public/_app/immutable/assets/jetbrains-mono-greek-wght-normal.Bw9x6K1M.woff2 +0 -0
  27. package/public/_app/immutable/assets/jetbrains-mono-latin-ext-wght-normal.DBQx-q_a.woff2 +0 -0
  28. package/public/_app/immutable/assets/jetbrains-mono-latin-wght-normal.B9CIFXIH.woff2 +0 -0
  29. package/public/_app/immutable/assets/jetbrains-mono-vietnamese-wght-normal.Bt-aOZkq.woff2 +0 -0
  30. package/public/_app/immutable/assets/select.CV-KWLNP.css +1 -0
  31. package/public/_app/immutable/assets/space-grotesk-latin-ext-wght-normal.D9tNdqV9.woff2 +0 -0
  32. package/public/_app/immutable/assets/space-grotesk-latin-wght-normal.BhU9QXUp.woff2 +0 -0
  33. package/public/_app/immutable/assets/space-grotesk-vietnamese-wght-normal.D0rl6rjA.woff2 +0 -0
  34. package/public/_app/immutable/chunks/-MWhb9c-.js +1 -0
  35. package/public/_app/immutable/chunks/1mqgODEB.js +1 -0
  36. package/public/_app/immutable/chunks/4FxxAFXN.js +1 -0
  37. package/public/_app/immutable/chunks/B1VSXVja.js +1 -0
  38. package/public/_app/immutable/chunks/B36KvkWl.js +1 -0
  39. package/public/_app/immutable/chunks/B8_hs9R4.js +1 -0
  40. package/public/_app/immutable/chunks/BHsjJ8bF.js +1 -0
  41. package/public/_app/immutable/chunks/BKgPCz3n.js +1 -0
  42. package/public/_app/immutable/chunks/BM-d1iyU.js +1 -0
  43. package/public/_app/immutable/chunks/BkeJCmZR.js +1 -0
  44. package/public/_app/immutable/chunks/BpJGvxOD.js +1 -0
  45. package/public/_app/immutable/chunks/C1_V7OdN.js +1 -0
  46. package/public/_app/immutable/chunks/C1dm7snI.js +2 -0
  47. package/public/_app/immutable/chunks/C3IMQzMn.js +1 -0
  48. package/public/_app/immutable/chunks/C59Htmoo.js +1 -0
  49. package/public/_app/immutable/chunks/CBkgBsl2.js +1 -0
  50. package/public/_app/immutable/chunks/CXE75xOj.js +1 -0
  51. package/public/_app/immutable/chunks/Cl3lhUWL.js +1 -0
  52. package/public/_app/immutable/chunks/D3H57P1T.js +1 -0
  53. package/public/_app/immutable/chunks/D4TYZfw1.js +10 -0
  54. package/public/_app/immutable/chunks/DLXc3MsS.js +1 -0
  55. package/public/_app/immutable/chunks/DVEB1r5D.js +1 -0
  56. package/public/_app/immutable/chunks/Dk_FALGi.js +1 -0
  57. package/public/_app/immutable/chunks/DpIbH5kQ.js +1 -0
  58. package/public/_app/immutable/chunks/DwNr-XJb.js +1 -0
  59. package/public/_app/immutable/chunks/JYomMW8A.js +1 -0
  60. package/public/_app/immutable/chunks/u9x_yOz5.js +5 -0
  61. package/public/_app/immutable/chunks/wbPk3Yxo.js +81 -0
  62. package/public/_app/immutable/chunks/ywqHnl7S.js +2 -0
  63. package/public/_app/immutable/entry/app.xGcxUCtq.js +2 -0
  64. package/public/_app/immutable/entry/start.BfgCqfOg.js +1 -0
  65. package/public/_app/immutable/nodes/0.6NyaEHme.js +1 -0
  66. package/public/_app/immutable/nodes/1.BuZaC350.js +1 -0
  67. package/public/_app/immutable/nodes/2.B86h23eK.js +1 -0
  68. package/public/_app/immutable/nodes/3.Bkc35OBN.js +4 -0
  69. package/public/_app/immutable/nodes/4.DTipQFjn.js +1 -0
  70. package/public/_app/immutable/nodes/5.CcLKuLYX.js +1 -0
  71. package/public/_app/immutable/nodes/6.DPrxF31w.js +2 -0
  72. package/public/_app/immutable/nodes/7.HhYOLA1h.js +1 -0
  73. package/public/_app/immutable/nodes/8.b5y1XVkv.js +1 -0
  74. package/public/_app/version.json +1 -0
  75. package/public/index.html +59 -0
@@ -0,0 +1 @@
1
+ import{c as I,a as p,p as ee,f as j}from"./ywqHnl7S.js";import{p as W,c as f,h as q,I as z,g as a,e as M,j as oe,r as te,k as R}from"./DLXc3MsS.js";import{a as w,i as re}from"./C1dm7snI.js";import{p as t,i as D,s as P,r as ne}from"./B36KvkWl.js";import{d as ae,e as se}from"./BkeJCmZR.js";import{b as g,n as s,c as le,F as ce,l as ue,o as de,T as ie,p as T,m as A}from"./u9x_yOz5.js";function De(F,e){W(e,!0);let v=t(e,"open",15,!1),O=t(e,"onOpenChange",3,s),m=t(e,"onOpenChangeComplete",3,s);ae.create({variant:g(()=>"dialog"),open:g(()=>v(),h=>{v(h),O()(h)}),onOpenChangeComplete:g(()=>m())});var _=I(),y=f(_);w(y,()=>e.children??z),p(F,_),q()}var pe=new Set(["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]),fe=j("<!> <!>",1),ge=j("<!> <div><!></div>",1);function Pe(F,e){const v=ee();W(e,!0);let O=t(e,"id",19,()=>le(v)),m=t(e,"ref",15,null),_=t(e,"forceMount",3,!1),y=t(e,"onCloseAutoFocus",3,s),h=t(e,"onOpenAutoFocus",3,s),B=t(e,"onEscapeKeydown",3,s),G=t(e,"onInteractOutside",3,s),H=t(e,"trapFocus",3,!0),E=t(e,"preventScroll",3,!0),J=t(e,"restoreScrollDelay",3,null),L=ne(e,pe);const o=se.create({id:g(()=>O()),ref:g(()=>m(),c=>m(c))}),l=R(()=>A(L,o.props));var x=I(),N=f(x);{var Q=c=>{ce(c,{get ref(){return o.opts.ref},loop:!0,get trapFocus(){return H()},get enabled(){return o.root.opts.open.current},get onOpenAutoFocus(){return h()},get onCloseAutoFocus(){return y()},focusScope:(U,V)=>{let K=()=>(V?.()).props;ue(U,P(()=>a(l),{get enabled(){return o.root.opts.open.current},get ref(){return o.opts.ref},onEscapeKeydown:S=>{B()(S),!S.defaultPrevented&&o.root.handleClose()},children:(S,me)=>{de(S,P(()=>a(l),{get ref(){return o.opts.ref},get enabled(){return o.root.opts.open.current},onInteractOutside:C=>{G()(C),!C.defaultPrevented&&o.root.handleClose()},children:(C,_e)=>{ie(C,P(()=>a(l),{get ref(){return o.opts.ref},get enabled(){return o.root.opts.open.current},children:(X,he)=>{var k=I(),Y=f(k);{var Z=n=>{var u=fe(),d=f(u);{var i=r=>{T(r,{get preventScroll(){return E()},get restoreScrollDelay(){return J()}})};D(d,r=>{o.root.opts.open.current&&r(i)})}var b=M(d,2);{let r=R(()=>({props:A(a(l),K()),...o.snippetProps}));w(b,()=>e.child,()=>a(r))}p(n,u)},$=n=>{var u=ge(),d=f(u);T(d,{get preventScroll(){return E()}});var i=M(d,2);re(i,r=>({...r}),[()=>A(a(l),K())]);var b=oe(i);w(b,()=>e.children??z),te(i),p(n,u)};D(Y,n=>{e.child?n(Z):n($,-1)})}p(X,k)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};D(N,c=>{(o.shouldRender||_())&&c(Q)})}p(F,x),q()}export{De as D,Pe as a};
@@ -0,0 +1 @@
1
+ import{a as m,f as S,c as w}from"./ywqHnl7S.js";import{p as E,h as A,j as I,r as R,c as N,F as p,i as o,g as a,a as c}from"./DLXc3MsS.js";import{i as z,c as V,a as L,g as q}from"./C1dm7snI.js";import{p as u,i as M,r as O}from"./B36KvkWl.js";var k=new Set(["$$slots","$$events","$$legacy","variant","size","class","children"]),B=S("<button><!></button>");function Z(t,e){E(e,!0);const s={default:"bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90"},i={default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"size-8"};let h=u(e,"variant",3,"default"),g=u(e,"size",3,"default"),b=u(e,"class",3,""),y=O(e,k);var n=B();z(n,r=>({class:r,...y}),[()=>V("inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4",s[h()],i[g()],b())]);var T=I(n);{var x=r=>{var f=w(),_=N(f);L(_,()=>e.children),m(r,f)};M(T,r=>{e.children&&r(x)})}R(n),m(t,n),A()}const D=3600;let j=1;const d=p([]);function l(t,e){const s=j++;d.push({id:s,kind:t,message:e}),setTimeout(()=>{const i=d.findIndex(h=>h.id===s);i>=0&&d.splice(i,1)},D)}const G={success(t){l("success",t)},error(t){l("error",t)},info(t){l("info",t)}},v=2e3,F=6e3,U=400;class C{#e=o(null);get snapshot(){return a(this.#e)}set snapshot(e){c(this.#e,e,!0)}#t=o(0);get snapshotAt(){return a(this.#t)}set snapshotAt(e){c(this.#t,e,!0)}#s=o(!1);get connected(){return a(this.#s)}set connected(e){c(this.#s,e,!0)}#i=o(p([]));get events(){return a(this.#i)}set events(e){c(this.#i,e,!0)}source=null;seq=0;refreshTimer=null;pollTimer=null;start(){if(this.source)return;const e=new EventSource("/api/events");this.source=e,e.onopen=()=>{this.connected=!0,this.refresh()},e.onerror=()=>{this.connected=!1},e.onmessage=s=>{try{const i=JSON.parse(s.data);this.seq+=1,this.events.push({seq:this.seq,event:i}),this.events.length>v&&this.events.splice(0,this.events.length-v),this.scheduleRefresh()}catch{}},this.pollTimer=setInterval(()=>{document.hidden||this.refresh()},F),document.addEventListener("visibilitychange",this.onVisibility)}stop(){this.source?.close(),this.source=null,this.connected=!1,this.pollTimer&&clearInterval(this.pollTimer),this.pollTimer=null,this.refreshTimer&&clearTimeout(this.refreshTimer),this.refreshTimer=null,document.removeEventListener("visibilitychange",this.onVisibility)}async refresh(){try{this.snapshot=await q.snapshot(),this.snapshotAt=Date.now()}catch{}}onVisibility=()=>{document.hidden||this.refresh()};scheduleRefresh(){this.refreshTimer||(this.refreshTimer=setTimeout(()=>{this.refreshTimer=null,document.hidden||this.refresh()},U))}}const K=new C;export{Z as B,G as a,K as r,d as t};
@@ -0,0 +1 @@
1
+ import{c as n,a as p}from"./ywqHnl7S.js";import{I as c,s as i}from"./C1dm7snI.js";import{c as d}from"./DLXc3MsS.js";import{l as m,s as $}from"./B36KvkWl.js";function h(s,a){const e=m(a,["children","$$slots","$$events","$$legacy"]);const t=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z"}]];c(s,$({name:"puzzle"},()=>e,{get iconNode(){return t},children:(r,f)=>{var o=n(),l=d(o);i(l,a,"default",{}),p(r,o)},$$slots:{default:!0}}))}export{h as P};
@@ -0,0 +1 @@
1
+ import{aq as R,ay as x,ar as C,n as A,q as I,O as U,v as g,z as B,ax as Z,aj as $,o as z,Y as W,X as G,Z as X,_ as H,y as J,x as D,aZ as S,a_ as Q,a$ as F,g as b,F as V,a as k,b0 as ee,T as y,ap as re,a6 as se,b1 as te,P as ne,a2 as ie,b2 as ae,b3 as fe,aW as T,E as ue,b4 as L,b5 as M,b6 as v,W as K,L as N,b7 as oe}from"./DLXc3MsS.js";let P=!1;function ce(r){var e=P;try{return P=!1,[r(),P]}finally{P=e}}class le{anchor;#r=new Map;#s=new Map;#e=new Map;#t=new Set;#n=!0;constructor(e,t=!0){this.anchor=e,this.#n=t}#i=e=>{if(this.#r.has(e)){var t=this.#r.get(e),s=this.#s.get(t);if(s)R(s),this.#t.delete(t);else{var n=this.#e.get(t);n&&(R(n.effect),this.#s.set(t,n.effect),this.#e.delete(t),n.fragment.lastChild.remove(),this.anchor.before(n.fragment),s=n.effect)}for(const[i,f]of this.#r){if(this.#r.delete(i),i===e)break;const a=this.#e.get(f);a&&(x(a.effect),this.#e.delete(f))}for(const[i,f]of this.#s){if(i===t||this.#t.has(i))continue;const a=()=>{if(Array.from(this.#r.values()).includes(i)){var c=document.createDocumentFragment();Z(f,c),c.append(A()),this.#e.set(i,{effect:f,fragment:c})}else x(f);this.#t.delete(i),this.#s.delete(i)};this.#n||!s?(this.#t.add(i),C(f,a,!1)):a()}}};#a=e=>{this.#r.delete(e);const t=Array.from(this.#r.values());for(const[s,n]of this.#e)t.includes(s)||(x(n.effect),this.#e.delete(s))};ensure(e,t){var s=U,n=$();if(t&&!this.#s.has(e)&&!this.#e.has(e))if(n){var i=document.createDocumentFragment(),f=A();i.append(f),this.#e.set(e,{effect:I(()=>t(f)),fragment:i})}else this.#s.set(e,I(()=>t(this.anchor)));if(this.#r.set(s,e),n){for(const[a,u]of this.#s)a===e?s.unskip_effect(u):s.skip_effect(u);for(const[a,u]of this.#e)a===e?s.unskip_effect(u.effect):s.skip_effect(u.effect);s.oncommit(this.#i),s.ondiscard(this.#a)}else g&&(this.anchor=B),this.#i(s)}}function be(r,e,t=!1){var s;g&&(s=B,W());var n=new le(r),i=t?G:0;function f(a,u){if(g){var c=X(s);if(a!==parseInt(c.substring(1))){var d=H();J(d),n.anchor=d,D(!1),n.ensure(a,u),D(!0);return}}n.ensure(a,u)}z(()=>{var a=!1;e((u,c=0)=>{a=!0,f(c,u)}),a||f(-1,null)},i)}const de={get(r,e){if(!r.exclude.has(e))return r.props[e]},set(r,e){return!1},getOwnPropertyDescriptor(r,e){if(!r.exclude.has(e)&&e in r.props)return{enumerable:!0,configurable:!0,value:r.props[e]}},has(r,e){return r.exclude.has(e)?!1:e in r.props},ownKeys(r){return Reflect.ownKeys(r.props).filter(e=>!r.exclude.has(e))}};function me(r,e,t){return new Proxy({props:r,exclude:e},de)}const pe={get(r,e){if(!r.exclude.includes(e))return b(r.version),e in r.special?r.special[e]():r.props[e]},set(r,e,t){if(!(e in r.special)){var s=y;try{M(r.parent_effect),r.special[e]=_e({get[e](){return r.props[e]}},e,F)}finally{M(s)}}return r.special[e](t),L(r.version),!0},getOwnPropertyDescriptor(r,e){if(!r.exclude.includes(e)&&e in r.props)return{enumerable:!0,configurable:!0,value:r.props[e]}},deleteProperty(r,e){return r.exclude.includes(e)||(r.exclude.push(e),L(r.version)),!0},has(r,e){return r.exclude.includes(e)?!1:e in r.props},ownKeys(r){return Reflect.ownKeys(r.props).filter(e=>!r.exclude.includes(e))}};function Pe(r,e){return new Proxy({props:r,exclude:e,special:{},version:se(0),parent_effect:y},pe)}const he={get(r,e){let t=r.props.length;for(;t--;){let s=r.props[t];if(v(s)&&(s=s()),typeof s=="object"&&s!==null&&e in s)return s[e]}},set(r,e,t){let s=r.props.length;for(;s--;){let n=r.props[s];v(n)&&(n=n());const i=S(n,e);if(i&&i.set)return i.set(t),!0}return!1},getOwnPropertyDescriptor(r,e){let t=r.props.length;for(;t--;){let s=r.props[t];if(v(s)&&(s=s()),typeof s=="object"&&s!==null&&e in s){const n=S(s,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(r,e){if(e===K||e===N)return!1;for(let t of r.props)if(v(t)&&(t=t()),t!=null&&e in t)return!0;return!1},ownKeys(r){const e=[];for(let t of r.props)if(v(t)&&(t=t()),!!t){for(const s in t)e.includes(s)||e.push(s);for(const s of Object.getOwnPropertySymbols(t))e.includes(s)||e.push(s)}return e}};function we(...r){return new Proxy({props:r},he)}function _e(r,e,t,s){var n=!ie||(t&ae)!==0,i=(t&te)!==0,f=(t&oe)!==0,a=s,u=!0,c=void 0,d=()=>f&&n?(c??=T(s),b(c)):(u&&(u=!1,a=f?ne(s):s),a);let p;if(i){var Y=K in r||N in r;p=S(r,e)?.set??(Y&&e in r?o=>r[e]=o:void 0)}var h,O=!1;i?[h,O]=ce(()=>r[e]):h=r[e],h===void 0&&s!==void 0&&(h=d(),p&&(n&&Q(),p(h)));var l;if(n?l=()=>{var o=r[e];return o===void 0?d():(u=!0,o)}:l=()=>{var o=r[e];return o!==void 0&&(a=void 0),o===void 0?a:o},n&&(t&F)===0)return l;if(p){var j=r.$$legacy;return(function(o,m){return arguments.length>0?((!n||!m||j||O)&&p(m?l():o),o):l()})}var w=!1,_=((t&fe)!==0?T:ue)(()=>(w=!1,l()));i&&b(_);var q=y;return(function(o,m){if(arguments.length>0){const E=m?b(_):n&&i?V(o):o;return k(_,E),w=!0,a!==void 0&&(a=E),o}return ee&&w||(q.f&re)!==0?_.v:b(_)})}export{le as B,be as i,Pe as l,_e as p,me as r,we as s};
@@ -0,0 +1 @@
1
+ import{a as d,f as k,s as w,p as B,c as _}from"./ywqHnl7S.js";import{p as S,l as T,h as D,j as P,g as l,e as W,r as y,k as p,c as x,I as q}from"./DLXc3MsS.js";import{d as z,c as A,f as C,a as h,i as E}from"./C1dm7snI.js";import{p as n,i as F,r as G}from"./B36KvkWl.js";import{S as H,c as J}from"./BkeJCmZR.js";import{c as K,b as g,m as M}from"./u9x_yOz5.js";var N=k("<span><!> </span>");function $(c,e){S(e,!0);let s=n(e,"tone",3,"ok");var a=N(),o=P(a);{let i=p(()=>s()==="ok"?"ok":"bad"),m=p(()=>s()==="ok");H(o,{get tone(){return l(i)},get pulse(){return l(m)}})}var f=W(o);y(a),T(i=>{C(a,1,i),w(f,` ${e.label??""}`)},[()=>z(A("inline-flex items-center gap-1.5 rounded-full border px-2.5 py-0.5 text-xs font-medium",s()==="ok"?"border-muted-foreground/30 bg-muted/50 text-foreground":"border-destructive/40 bg-destructive/10 text-destructive"))]),d(c,a),D()}var O=new Set(["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]),Q=k("<button><!></button>");function ee(c,e){const s=B();S(e,!0);let a=n(e,"id",19,()=>K(s)),o=n(e,"ref",15,null),f=n(e,"disabled",3,!1),i=G(e,O);const m=J.create({id:g(()=>a()),ref:g(()=>o(),t=>o(t)),disabled:g(()=>!!f())}),b=p(()=>M(i,m.props));var v=_(),I=x(v);{var L=t=>{var r=_(),u=x(r);h(u,()=>e.child,()=>({props:l(b)})),d(t,r)},j=t=>{var r=Q();E(r,()=>({...l(b)}));var u=P(r);h(u,()=>e.children??q),y(r),d(t,r)};F(I,t=>{e.child?t(L):t(j,-1)})}d(c,v),D()}export{ee as D,$ as L};
@@ -0,0 +1 @@
1
+ import{c as d,a as n}from"./ywqHnl7S.js";import{I as p,s as i}from"./C1dm7snI.js";import{c as l}from"./DLXc3MsS.js";import{l as m,s as $}from"./B36KvkWl.js";function M(t,a){const r=m(a,["children","$$slots","$$events","$$legacy"]);const s=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478"}],["circle",{cx:"12",cy:"12",r:"2"}]];p(t,$({name:"radio"},()=>r,{get iconNode(){return s},children:(e,f)=>{var o=d(),c=l(o);i(c,a,"default",{}),n(e,o)},$$slots:{default:!0}}))}export{M as R};
@@ -0,0 +1 @@
1
+ import{a as s,f as u,c as g}from"./ywqHnl7S.js";import{p as v,h as b,j as h,r as x,c as _}from"./DLXc3MsS.js";import{i as y,c as w,a as z}from"./C1dm7snI.js";import{p as n,i as A,r as B}from"./B36KvkWl.js";var N=new Set(["$$slots","$$events","$$legacy","variant","class","children"]),S=u("<span><!></span>");function T(o,r){v(r,!0);const i={default:"border-transparent bg-primary text-primary-foreground shadow-sm",secondary:"border-transparent bg-secondary text-secondary-foreground",outline:"text-foreground",ghost:"border-transparent bg-transparent text-muted-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground shadow-sm"};let d=n(r,"variant",3,"outline"),c=n(r,"class",3,""),m=B(r,N);var t=S();y(t,e=>({class:e,...m}),[()=>w("inline-flex items-center gap-1 rounded-md border px-2 py-0.5 text-xs font-medium transition-colors [&_svg:not([class*='size-'])]:size-3.5",i[d()],c())]);var l=h(t);{var f=e=>{var a=g(),p=_(a);z(p,()=>r.children),s(e,a)};A(l,e=>{r.children&&e(f)})}x(t),s(o,t),b()}export{T as B};
@@ -0,0 +1 @@
1
+ import{o as m}from"./D3H57P1T.js";import{I as p,J as N,i as u,g as f,a as d}from"./DLXc3MsS.js";const h=[];function k(e,t=p){let n=null;const s=new Set;function r(o){if(N(e,o)&&(e=o,n)){const c=!h.length;for(const l of s)l[1](),h.push(l,e);if(c){for(let l=0;l<h.length;l+=2)h[l][0](h[l+1]);h.length=0}}}function i(o){r(o(e))}function a(o,c=p){const l=[o,c];return s.add(l),s.size===1&&(n=t(r,i)||p),o(e),()=>{s.delete(l),s.size===0&&n&&(n(),n=null)}}return{set:r,update:i,subscribe:a}}new URL("sveltekit-internal://");function H(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function K(e){return e.split("%25").map(decodeURI).join("%25")}function B(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function D({href:e}){return e.split("#")[0]}function L(){}function O(...e){let t=5381;for(const n of e)if(typeof n=="string"){let s=n.length;for(;s;)t=t*33^n.charCodeAt(--s)}else if(ArrayBuffer.isView(n)){const s=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=s.length;for(;r;)t=t*33^s[--r]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;function x(e){const t=atob(e),n=new Uint8Array(t.length);for(let s=0;s<t.length;s++)n[s]=t.charCodeAt(s);return n}const $=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&b.delete(y(e)),$(e,t));const b=new Map;function J(e,t){const n=y(e,t),s=document.querySelector(n);if(s?.textContent){s.remove();let{body:r,...i}=JSON.parse(s.textContent);s.getAttribute("data-b64")!==null&&(r=x(r));const o=s.getAttribute("data-ttl");return o&&b.set(n,{body:r,init:i,ttl:1e3*Number(o)}),Promise.resolve(new Response(r,i))}return window.fetch(e,t)}function W(e,t,n){if(b.size>0){const s=y(e,n),r=b.get(s);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(r.body,r.init);b.delete(s)}}return window.fetch(t,n)}function y(e,t){let s=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const r=[];t.headers&&r.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&r.push(t.body),s+=`[data-hash="${O(...r)}"]`}return s}const q=globalThis.__sveltekit_19y9esb?.base??"",C=globalThis.__sveltekit_19y9esb?.assets??q??"",P="1789005546290",X="sveltekit:snapshot",M="sveltekit:scroll",F="sveltekit:states",Q="sveltekit:pageurl",Z="sveltekit:history",ee="sveltekit:navigation",v={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},E=location.origin;function te(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function ne(){return{x:pageXOffset,y:pageYOffset}}function g(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const S={...v,"":v.hover};function T(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function se(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=T(e)}}function re(e,t,n){let s;try{if(s=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&s.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";s.hash=`#${o}${s.hash}`}}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,i=!s||!!r||V(s,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),a=s?.origin===E&&e.hasAttribute("download");return{url:s,external:i,target:r,download:a}}function oe(e){let t=null,n=null,s=null,r=null,i=null,a=null,o=e;for(;o&&o!==document.documentElement;)s===null&&(s=g(o,"preload-code")),r===null&&(r=g(o,"preload-data")),t===null&&(t=g(o,"keepfocus")),n===null&&(n=g(o,"noscroll")),i===null&&(i=g(o,"reload")),a===null&&(a=g(o,"replacestate")),o=T(o);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:S[s??"off"],preload_data:S[r??"off"],keepfocus:c(t),noscroll:c(n),reload:c(i),replace_state:c(a)}}function ae(e){const t=k(e);let n=!0;function s(){n=!0,t.update(a=>a)}function r(a){n=!1,t.set(a)}function i(a){let o;return t.subscribe(c=>{(o===void 0||n&&c!==o)&&a(o=c)})}return{notify:s,set:r,subscribe:i}}const U={v:L};function ie(){const{set:e,subscribe:t}=k(!1);let n;async function s(){clearTimeout(n);try{const r=await fetch(`${C}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const a=(await r.json()).version!==P;return a&&(e(!0),U.v(),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:s}}function V(e,t,n){return e.origin!==E||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function le(e){}const I=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...I];const j=new Set([...I]);[...j];let w,A,_;const G=m.toString().includes("$$")||/function \w+\(\) \{\}/.test(m.toString()),R="a:";G?(w={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(R)},A={current:null},_={current:!1}):(w=new class{#e=u({});get data(){return f(this.#e)}set data(t){d(this.#e,t)}#t=u(null);get form(){return f(this.#t)}set form(t){d(this.#t,t)}#n=u(null);get error(){return f(this.#n)}set error(t){d(this.#n,t)}#s=u({});get params(){return f(this.#s)}set params(t){d(this.#s,t)}#r=u({id:null});get route(){return f(this.#r)}set route(t){d(this.#r,t)}#o=u({});get state(){return f(this.#o)}set state(t){d(this.#o,t)}#a=u(-1);get status(){return f(this.#a)}set status(t){d(this.#a,t)}#i=u(new URL(R));get url(){return f(this.#i)}set url(t){d(this.#i,t)}},A=new class{#e=u(null);get current(){return f(this.#e)}set current(t){d(this.#e,t)}},_=new class{#e=u(!1);get current(){return f(this.#e)}set current(t){d(this.#e,t)}},U.v=()=>_.current=!0);function de(e){Object.assign(w,e)}export{Z as H,ee as N,Q as P,F as S,A as a,q as b,oe as c,D as d,B as e,se as f,re as g,H as h,V as i,ie as j,ae as k,v as l,K as m,L as n,E as o,w as p,X as q,te as r,ne as s,W as t,de as u,J as v,k as w,M as x,le as y};
@@ -0,0 +1 @@
1
+ import{c as P,a as c,f as B,p as Z}from"./ywqHnl7S.js";import{I as nt,s as it,d as at,c as dt,f as ht,a as C,i as j}from"./C1dm7snI.js";import{c as N,p as E,l as ct,h as z,D as pt,i as g,g as r,a as o,k as a,j as U,I as W,r as q}from"./DLXc3MsS.js";import{l as lt,s as ut,p as f,i as x,r as F}from"./B36KvkWl.js";import{C as gt,r as Q,b as m,w as G,s as ft,f as I,k as vt,S as V,E as X,t as mt,h as yt,u as Y,i as R,c as H,m as D}from"./u9x_yOz5.js";function Rt(v,t){const e=lt(t,["children","$$slots","$$events","$$legacy"]);const s=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z"}]];nt(v,ut({name:"zap"},()=>e,{get iconNode(){return s},children:(p,l)=>{var u=P(),d=N(u);it(d,t,"default",{}),c(p,u)},$$slots:{default:!0}}))}var bt=B('<span class="relative inline-flex size-2 shrink-0" aria-hidden="true"><span></span></span>');function Bt(v,t){E(t,!0);let e=f(t,"tone",3,"idle"),s=f(t,"pulse",3,!1);const p={ok:"bg-foreground",warn:"bg-chart-3",bad:"bg-destructive",idle:"bg-muted-foreground/40"};var l=bt(),u=pt(l);ct(d=>ht(u,1,d),[()=>at(dt("inline-block size-2 rounded-full",p[e()],s()&&"animate-pulse"))]),c(v,l),z()}const Pt=vt({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),y=new gt("Dialog.Root | AlertDialog.Root");class ${static create(t){const e=y.getOr(null);return y.set(new $(t,e))}opts;#t=g(null);get triggerNode(){return r(this.#t)}set triggerNode(t){o(this.#t,t,!0)}#e=g(null);get contentNode(){return r(this.#e)}set contentNode(t){o(this.#e,t,!0)}#s=g(null);get overlayNode(){return r(this.#s)}set overlayNode(t){o(this.#s,t,!0)}#r=g(null);get descriptionNode(){return r(this.#r)}set descriptionNode(t){o(this.#r,t,!0)}#o=g(void 0);get contentId(){return r(this.#o)}set contentId(t){o(this.#o,t,!0)}#n=g(void 0);get titleId(){return r(this.#n)}set titleId(t){o(this.#n,t,!0)}#i=g(void 0);get triggerId(){return r(this.#i)}set triggerId(t){o(this.#i,t,!0)}#a=g(void 0);get descriptionId(){return r(this.#a)}set descriptionId(t){o(this.#a,t,!0)}#d=g(null);get cancelNode(){return r(this.#d)}set cancelNode(t){o(this.#d,t,!0)}#h=g(0);get nestedOpenCount(){return r(this.#h)}set nestedOpenCount(t){o(this.#h,t,!0)}depth;parent;contentPresence;overlayPresence;constructor(t,e){this.opts=t,this.parent=e,this.depth=e?e.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Q({ref:m(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Q({ref:m(()=>this.overlayNode),open:this.opts.open,enabled:!0}),G(()=>this.opts.open.current,s=>{this.parent&&(s?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),ft(()=>{this.opts.open.current&&this.parent?.decrementNested()})}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}getBitsAttr=t=>Pt.getAttr(t,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#c=a(()=>({"data-state":mt(this.opts.open.current)}));get sharedProps(){return r(this.#c)}set sharedProps(t){o(this.#c,t)}}class tt{static create(t){return new tt(t,y.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=I(this.opts.ref,s=>{this.root.triggerNode=s,this.root.triggerId=s?.id}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleOpen()}onkeydown(t){this.opts.disabled.current||(t.key===V||t.key===X)&&(t.preventDefault(),this.root.handleOpen())}#t=a(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":yt(this.root.opts.open.current),"aria-controls":this.root.contentId,[this.root.getBitsAttr("trigger")]:"",onkeydown:this.onkeydown,onclick:this.onclick,disabled:this.opts.disabled.current?!0:void 0,...this.root.sharedProps,...this.attachment}));get props(){return r(this.#t)}set props(t){o(this.#t,t)}}class et{static create(t){return new et(t,y.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=I(this.opts.ref)}#t=a(()=>({id:this.opts.id.current,[this.root.getBitsAttr("action")]:"",...this.root.sharedProps,...this.attachment}));get props(){return r(this.#t)}set props(t){o(this.#t,t)}}class J{static create(t){return new J(t,y.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.root.titleId=this.opts.id.current,this.attachment=I(this.opts.ref),G.pre(()=>this.opts.id.current,s=>{this.root.titleId=s})}#t=a(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment}));get props(){return r(this.#t)}set props(t){o(this.#t,t)}}class K{static create(t){return new K(t,y.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.root.descriptionId=this.opts.id.current,this.attachment=I(this.opts.ref,s=>{this.root.descriptionNode=s}),G.pre(()=>this.opts.id.current,s=>{this.root.descriptionId=s})}#t=a(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment}));get props(){return r(this.#t)}set props(t){o(this.#t,t)}}class st{static create(t){return new st(t,y.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=I(this.opts.ref,s=>{this.root.contentNode=s,this.root.contentId=s?.id})}#t=a(()=>({open:this.root.opts.open.current}));get snippetProps(){return r(this.#t)}set snippetProps(t){o(this.#t,t)}#e=a(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":R(this.root.nestedOpenCount>0),"data-nested":R(this.root.parent!==null),...Y(this.root.contentPresence.transitionStatus),...this.root.sharedProps,...this.attachment}));get props(){return r(this.#e)}set props(t){o(this.#e,t)}get shouldRender(){return this.root.contentPresence.shouldRender}}class L{static create(t){return new L(t,y.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=I(this.opts.ref,s=>this.root.overlayNode=s)}#t=a(()=>({open:this.root.opts.open.current}));get snippetProps(){return r(this.#t)}set snippetProps(t){o(this.#t,t)}#e=a(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":R(this.root.nestedOpenCount>0),"data-nested":R(this.root.parent!==null),...Y(this.root.overlayPresence.transitionStatus),...this.root.sharedProps,...this.attachment}));get props(){return r(this.#e)}set props(t){o(this.#e,t)}get shouldRender(){return this.root.overlayPresence.shouldRender}}class rt{static create(t){return new rt(t,y.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=I(this.opts.ref,s=>this.root.cancelNode=s),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===V||t.key===X)&&(t.preventDefault(),this.root.handleClose())}#t=a(()=>({id:this.opts.id.current,[this.root.getBitsAttr("cancel")]:"",onclick:this.onclick,onkeydown:this.onkeydown,tabindex:0,disabled:this.opts.disabled.current,...this.root.sharedProps,...this.attachment}));get props(){return r(this.#t)}set props(t){o(this.#t,t)}}var Nt=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","level"]),kt=B("<div><!></div>");function Et(v,t){const e=Z();E(t,!0);let s=f(t,"id",19,()=>H(e)),p=f(t,"ref",15,null),l=f(t,"level",3,2),u=F(t,Nt);const d=J.create({id:m(()=>s()),level:m(()=>l()),ref:m(()=>p(),n=>p(n))}),b=a(()=>D(u,d.props));var k=P(),O=N(k);{var A=n=>{var h=P(),S=N(h);C(S,()=>t.child,()=>({props:r(b)})),c(n,h)},i=n=>{var h=kt();j(h,()=>({...r(b)}));var S=U(h);C(S,()=>t.children??W),q(h),c(n,h)};x(O,n=>{t.child?n(A):n(i,-1)})}c(v,k),z()}var wt=new Set(["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]),It=B("<div><!></div>");function zt(v,t){const e=Z();E(t,!0);let s=f(t,"id",19,()=>H(e)),p=f(t,"forceMount",3,!1),l=f(t,"ref",15,null),u=F(t,wt);const d=L.create({id:m(()=>s()),ref:m(()=>l(),i=>l(i))}),b=a(()=>D(u,d.props));var k=P(),O=N(k);{var A=i=>{var n=P(),h=N(n);{var S=_=>{var w=P(),M=N(w);{let T=a(()=>({props:D(r(b)),...d.snippetProps}));C(M,()=>t.child,()=>r(T))}c(_,w)},ot=_=>{var w=It();j(w,T=>({...T}),[()=>D(r(b))]);var M=U(w);C(M,()=>t.children??W,()=>d.snippetProps),q(w),c(_,w)};x(h,_=>{t.child?_(S):_(ot,-1)})}c(i,n)};x(O,i=>{(d.shouldRender||p())&&i(A)})}c(v,k),z()}var _t=new Set(["$$slots","$$events","$$legacy","id","children","child","ref"]),Ct=B("<div><!></div>");function Mt(v,t){const e=Z();E(t,!0);let s=f(t,"id",19,()=>H(e)),p=f(t,"ref",15,null),l=F(t,_t);const u=K.create({id:m(()=>s()),ref:m(()=>p(),i=>p(i))}),d=a(()=>D(l,u.props));var b=P(),k=N(b);{var O=i=>{var n=P(),h=N(n);C(h,()=>t.child,()=>({props:r(d)})),c(i,n)},A=i=>{var n=Ct();j(n,()=>({...r(d)}));var h=U(n);C(h,()=>t.children??W),q(n),c(i,n)};x(k,i=>{t.child?i(O):i(A,-1)})}c(v,b),z()}export{rt as A,zt as D,Bt as S,Rt as Z,Et as a,Mt as b,tt as c,$ as d,st as e,et as f};
@@ -0,0 +1 @@
1
+ import{c as f,a as o,p as S,f as j}from"./ywqHnl7S.js";import{I as k,s as N,a as b,i as R,c as z}from"./C1dm7snI.js";import{c as h,k as M,g as _,a as A,p as L,h as x,j as O,I as B,r as D}from"./DLXc3MsS.js";import{l as T,s as W,p as w,i as I,r as q}from"./B36KvkWl.js";import{f as C,k as E,c as F,b as P,m as G}from"./u9x_yOz5.js";function tt(n,t){const i=T(t,["children","$$slots","$$events","$$legacy"]);const l=[["path",{d:"M3 5h.01"}],["path",{d:"M3 12h.01"}],["path",{d:"M3 19h.01"}],["path",{d:"M8 5h13"}],["path",{d:"M8 12h13"}],["path",{d:"M8 19h13"}]];k(n,W({name:"list"},()=>i,{get iconNode(){return l},children:(r,m)=>{var d=f(),a=h(d);N(a,t,"default",{}),o(r,d)},$$slots:{default:!0}}))}const H=E({component:"label",parts:["root"]});class y{static create(t){return new y(t)}opts;attachment;constructor(t){this.opts=t,this.attachment=C(this.opts.ref),this.onmousedown=this.onmousedown.bind(this)}onmousedown(t){t.detail>1&&t.preventDefault()}#t=M(()=>({id:this.opts.id.current,[H.root]:"",onmousedown:this.onmousedown,...this.attachment}));get props(){return _(this.#t)}set props(t){A(this.#t,t)}}var J=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","for"]),K=j("<label><!></label>");function Q(n,t){const i=S();L(t,!0);let l=w(t,"id",19,()=>F(i)),r=w(t,"ref",15,null),m=q(t,J);const d=y.create({id:P(()=>l()),ref:P(()=>r(),e=>r(e))}),a=M(()=>G(m,d.props,{for:t.for}));var p=f(),v=h(p);{var c=e=>{var s=f(),g=h(s);b(g,()=>t.child,()=>({props:_(a)})),o(e,s)},u=e=>{var s=K();R(s,()=>({..._(a),for:t.for}));var g=O(s);b(g,()=>t.children??B),D(s),o(e,s)};I(v,e=>{t.child?e(c):e(u,-1)})}o(n,p),x()}const U=Object.freeze(Object.defineProperty({__proto__:null,Root:Q},Symbol.toStringTag,{value:"Module"}));function et(n,t){L(t,!0);const{Root:i}=U;let l=w(t,"class",3,"");{let r=M(()=>z("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",l()));i(n,{get id(){return t.id},get for(){return t.for},get class(){return _(r)},children:(m,d)=>{var a=f(),p=h(a);{var v=c=>{var u=f(),e=h(u);b(e,()=>t.children),o(c,u)};I(p,c=>{t.children&&c(v)})}o(m,a)},$$slots:{default:!0}})}x()}export{et as L,tt as a};
@@ -0,0 +1 @@
1
+ import{c as p,a as l}from"./ywqHnl7S.js";import{I as c,s as i}from"./C1dm7snI.js";import{c as d}from"./DLXc3MsS.js";import{l as m,s as $}from"./B36KvkWl.js";function v(s,a){const t=m(a,["children","$$slots","$$events","$$legacy"]);const e=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z"}],["path",{d:"M12 22V12"}],["polyline",{points:"3.29 7 12 12 20.71 7"}],["path",{d:"m7.5 4.27 9 5.15"}]];c(s,$({name:"package"},()=>t,{get iconNode(){return e},children:(r,f)=>{var o=p(),n=d(o);i(n,a,"default",{}),l(r,o)},$$slots:{default:!0}}))}export{v as P};
@@ -0,0 +1,2 @@
1
+ import{n as W,o as ne,ad as we,v as w,y as $,A as Ce,Y as q,g as y,Z as We,ae as qe,_ as fe,x as H,z as P,C as Ge,af as Ke,ag as se,O as Xe,ah as k,q as Y,ai as Je,aj as Ze,E as Qe,ak as te,al as ie,am as xe,an as er,m as rr,a6 as oe,ao as ar,ap as nr,aq as Ne,ar as me,as as X,at as Ie,au as tr,av as ir,aw as fr,ax as sr,ay as G,w as or,az as Oe,X as ke,aA as lr,T as ur,aB as Le,aC as cr,aD as Re,S as ye,aE as le,aF as ue,aG as dr,aH as Me,aI as vr,aJ as pr,aK as hr,aL as gr,aM as _r,a3 as br,aN as Ar,aO as K,aP as Er,aQ as Tr,aR as Sr,aS as wr,R as Cr,u as Nr,b as ce,aT as de,P as Q,aU as mr,aV as M,aW as Ir,aX as Or,p as kr,h as Lr,j as Rr,c as yr,e as Mr,r as Pr,k as Hr,aY as Vr}from"./DLXc3MsS.js";import{B as Pe,l as ve,p as U}from"./B36KvkWl.js";import{a as x,g as Ur,i as $r,j as Dr,b as Fr,d as zr,k as jr,n as Br,l as Yr,q as Wr,c as qr}from"./ywqHnl7S.js";function Gr(e,r){return r}function Kr(e,r,a){for(var n=[],t=r.length,i,f=r.length,o=0;o<t;o++){let h=r[o];me(h,()=>{if(i){if(i.pending.delete(h),i.done.add(h),i.pending.size===0){var d=e.outrogroups;ee(e,ie(i.done)),d.delete(i),d.size===0&&(e.outrogroups=null)}}else f-=1},!1)}if(f===0){var u=n.length===0&&a!==null&&e.pending.size===0;if(u){var c=a,s=c.parentNode;fr(s),s.append(c),e.items.clear()}ee(e,r,!u)}else i={pending:new Set(r),done:new Set},(e.outrogroups??=new Set).add(i)}function ee(e,r,a=!0){var n;if(e.pending.size>0){n=new Set;for(const f of e.pending.values())for(const o of f)n.add(e.items.get(o).e)}for(var t=0;t<r.length;t++){var i=r[t];if(n?.has(i)){i.f|=k;const f=document.createDocumentFragment();sr(i,f)}else G(r[t],a)}}var pe;function Xr(e,r,a,n,t,i=null){var f=e,o=new Map,u=(r&we)!==0;if(u){var c=e;f=w?$(Ce(c)):c.appendChild(W())}w&&q();var s=null,h=Qe(()=>{var S=a();return te(S)?S:S==null?[]:ie(S)}),d,A=new Map,v=!0;function C(S){(E.effect.f&nr)===0&&(E.pending.delete(S),E.fallback=s,Jr(E,d,f,r,n),s!==null&&(d.length===0?(s.f&k)===0?Ne(s):(s.f^=k,j(s,null,f)):me(s,()=>{s=null})))}function l(S){E.pending.delete(S)}var _=ne(()=>{d=y(h);var S=d.length;let b=!1;if(w){var L=We(f)===qe;L!==(S===0)&&(f=fe(),$(f),H(!1),b=!0)}for(var g=new Set,p=Xe,N=Ze(),m=0;m<S;m+=1){w&&P.nodeType===Ge&&P.data===Ke&&(f=P,b=!0,H(!1));var T=d[m],V=n(T,m),I=v?null:o.get(V);I?(I.v&&se(I.v,T),I.i&&se(I.i,m),N&&p.unskip_effect(I.e)):(I=Zr(o,v?f:pe??=W(),T,V,m,t,r,a),v||(I.e.f|=k),o.set(V,I)),g.add(V)}if(S===0&&i&&!s&&(v?s=Y(()=>i(f)):(s=Y(()=>i(pe??=W())),s.f|=k)),S>g.size&&Je(),w&&S>0&&$(fe()),!v)if(A.set(p,g),N){for(const[Be,Ye]of o)g.has(Be)||p.skip_effect(Ye.e);p.oncommit(C),p.ondiscard(l)}else C(p);b&&H(!0),y(h)}),E={effect:_,items:o,pending:A,outrogroups:null,fallback:s};v=!1,w&&(f=P)}function D(e){for(;e!==null&&(e.f&tr)===0;)e=e.next;return e}function Jr(e,r,a,n,t){var i=(n&ir)!==0,f=r.length,o=e.items,u=D(e.effect.first),c,s=null,h,d=[],A=[],v,C,l,_;if(i)for(_=0;_<f;_+=1)v=r[_],C=t(v,_),l=o.get(C).e,(l.f&k)===0&&(l.nodes?.a?.measure(),(h??=new Set).add(l));for(_=0;_<f;_+=1){if(v=r[_],C=t(v,_),l=o.get(C).e,e.outrogroups!==null)for(const T of e.outrogroups)T.pending.delete(l),T.done.delete(l);if((l.f&X)!==0&&(Ne(l),i&&(l.nodes?.a?.unfix(),(h??=new Set).delete(l))),(l.f&k)!==0)if(l.f^=k,l===u)j(l,null,a);else{var E=s?s.next:u;l===e.effect.last&&(e.effect.last=l.prev),l.prev&&(l.prev.next=l.next),l.next&&(l.next.prev=l.prev),R(e,s,l),R(e,l,E),j(l,E,a),s=l,d=[],A=[],u=D(s.next);continue}if(l!==u){if(c!==void 0&&c.has(l)){if(d.length<A.length){var S=A[0],b;s=S.prev;var L=d[0],g=d[d.length-1];for(b=0;b<d.length;b+=1)j(d[b],S,a);for(b=0;b<A.length;b+=1)c.delete(A[b]);R(e,L.prev,g.next),R(e,s,L),R(e,g,S),u=S,s=g,_-=1,d=[],A=[]}else c.delete(l),j(l,u,a),R(e,l.prev,l.next),R(e,l,s===null?e.effect.first:s.next),R(e,s,l),s=l;continue}for(d=[],A=[];u!==null&&u!==l;)(c??=new Set).add(u),A.push(u),u=D(u.next);if(u===null)continue}(l.f&k)===0&&d.push(l),s=l,u=D(l.next)}if(e.outrogroups!==null){for(const T of e.outrogroups)T.pending.size===0&&(ee(e,ie(T.done)),e.outrogroups?.delete(T));e.outrogroups.size===0&&(e.outrogroups=null)}if(u!==null||c!==void 0){var p=[];if(c!==void 0)for(l of c)(l.f&X)===0&&p.push(l);for(;u!==null;)(u.f&X)===0&&u!==e.fallback&&p.push(u),u=D(u.next);var N=p.length;if(N>0){var m=(n&we)!==0&&f===0?a:null;if(i){for(_=0;_<N;_+=1)p[_].nodes?.a?.measure();for(_=0;_<N;_+=1)p[_].nodes?.a?.fix()}Kr(e,p,m)}}i&&Ie(()=>{if(h!==void 0)for(l of h)l.nodes?.a?.apply()})}function Zr(e,r,a,n,t,i,f,o){var u=(f&xe)!==0?(f&er)===0?rr(a,!1,!1):oe(a):null,c=(f&ar)!==0?oe(t):null;return{v:u,i:c,e:Y(()=>(i(r,u??a,c??t,o),()=>{e.delete(n)}))}}function j(e,r,a){if(e.nodes)for(var n=e.nodes.start,t=e.nodes.end,i=r&&(r.f&k)===0?r.nodes.start:a;n!==null;){var f=or(n);if(i.before(n),n===t)return;n=f}}function R(e,r,a){r===null?e.effect.first=a:r.next=a,a===null?e.effect.last=r:a.prev=r}function Qr(e,r,a,n,t){if(w&&q(),r.$$host?.$$shadowRoot){const o=Oe("slot");x(e,o);return}var i=r.$$slots?.[a],f=!1;i===!0&&(i=r.children,f=!0),i===void 0||i(e,f?()=>n:n)}function Ea(e,r,...a){var n=new Pe(e);ne(()=>{const t=r()??null;n.ensure(t,t&&(i=>t(i,...a)))},ke)}function xr(e,r,a,n,t,i){let f=w;w&&q();var o=null;w&&P.nodeType===lr&&(o=P,q());var u=w?P:e,c=new Pe(u,!1);ne(()=>{const s=r()||null;var h=cr;if(s===null){c.ensure(null,null);return}return c.ensure(s,d=>{if(s){if(o=w?o:Oe(s,h),Ur(o,o),n){var A=null;w&&$r(s)&&o.append(A=document.createComment(""));var v=w?Ce(o):o.appendChild(W());w&&(v===null?H(!1):$(v)),n(o,v),A?.remove()}ur.nodes.end=o,d.before(o)}w&&$(d)}),()=>{}},ke),Le(()=>{}),f&&(H(!0),$(u))}function ea(e,r){var a=void 0,n;Re(()=>{a!==(a=r())&&(n&&(G(n),n=null),a&&(n=Y(()=>{ye(()=>a(e))})))})}function He(e){var r,a,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var t=e.length;for(r=0;r<t;r++)e[r]&&(a=He(e[r]))&&(n&&(n+=" "),n+=a)}else for(a in e)e[a]&&(n&&(n+=" "),n+=a);return n}function ra(){for(var e,r,a=0,n="",t=arguments.length;a<t;a++)(e=arguments[a])&&(r=He(e))&&(n&&(n+=" "),n+=r);return n}function aa(e){return typeof e=="object"?ra(e):e??""}const he=[...`
2
+ \r\f \v\uFEFF`];function na(e,r,a){var n=e==null?"":""+e;if(r&&(n=n?n+" "+r:r),a){for(var t of Object.keys(a))if(a[t])n=n?n+" "+t:t;else if(n.length)for(var i=t.length,f=0;(f=n.indexOf(t,f))>=0;){var o=f+i;(f===0||he.includes(n[f-1]))&&(o===n.length||he.includes(n[o]))?n=(f===0?"":n.substring(0,f))+n.substring(o+1):f=o}}return n===""?null:n}function ge(e,r=!1){var a=r?" !important;":";",n="";for(var t of Object.keys(e)){var i=e[t];i!=null&&i!==""&&(n+=" "+t+": "+i+a)}return n}function J(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function ta(e,r){if(r){var a="",n,t;if(Array.isArray(r)?(n=r[0],t=r[1]):n=r,e){e=String(e).replaceAll(/\/\*.*?\*\//g,"").trim();var i=!1,f=0,o=!1,u=[];n&&u.push(...Object.keys(n).map(J)),t&&u.push(...Object.keys(t).map(J));var c=0,s=-1;const C=e.length;for(var h=0;h<C;h++){var d=e[h];if(o?d==="/"&&e[h-1]==="*"&&(o=!1):i?i===d&&(i=!1):d==="/"&&e[h+1]==="*"?o=!0:d==='"'||d==="'"?i=d:d==="("?f++:d===")"&&f--,!o&&i===!1&&f===0){if(d===":"&&s===-1)s=h;else if(d===";"||h===C-1){if(s!==-1){var A=J(e.substring(c,s).trim());if(!u.includes(A)){d!==";"&&h++;var v=e.substring(c,h).trim();a+=" "+v+";"}}c=h+1,s=-1}}}}return n&&(a+=ge(n)),t&&(a+=ge(t,!0)),a=a.trim(),a===""?null:a}return e==null?null:String(e)}function ia(e,r,a,n,t,i){var f=e[le];if(w||f!==a||f===void 0){var o=na(a,n,i);(!w||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):r?e.className=o:e.setAttribute("class",o)),e[le]=a}else if(i&&t!==i)for(var u in i){var c=!!i[u];(t==null||c!==!!t[u])&&e.classList.toggle(u,c)}return i}function Z(e,r={},a,n){for(var t in a){var i=a[t];r[t]!==i&&(a[t]==null?e.style.removeProperty(t):e.style.setProperty(t,i,n))}}function fa(e,r,a,n){var t=e[ue];if(w||t!==r){var i=ta(r,n);(!w||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e[ue]=r}else n&&(Array.isArray(n)?(Z(e,a?.[0],n[0]),Z(e,a?.[1],n[1],"important")):Z(e,a,n));return n}function Ve(e,r){r?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function _e(e,r){var a=!("__defaultValue"in e);!a&&e.__defaultValue===r||(e.__defaultValue=r,Ue(e,!a||"__value"in e))}function Ue(e,r){var a=e.__defaultValue,n=e.multiple,t=n?a??[]:null;if(!(n&&!te(t))){var i=e.selectedIndex,f=r&&n?new Set(e.selectedOptions):null;for(var o of e.options){var u=ae(o);Ve(o,n?t.includes(u):Me(u,a))}if(r)if(f!==null)for(o of e.options){var c=f.has(o);o.selected!==c&&(o.selected=c)}else e.selectedIndex!==i&&(e.selectedIndex=i)}}function re(e,r,a=!1){if(e.multiple){if(r==null)return;if(!te(r))return dr();for(var n of e.options)n.selected=r.includes(ae(n));return}for(n of e.options){var t=ae(n);if(Me(t,r)){n.selected=!0;return}}(!a||r!==void 0)&&(e.selectedIndex=-1)}function sa(e){var r=new MutationObserver(a=>{a.every(oa)||("__defaultValue"in e&&Ue(e,!1),"__value"in e&&re(e,e.__value))});r.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Le(()=>{r.disconnect()})}function ae(e){return"__value"in e?e.__value:e.value}function oa(e){if(e.target.closest("selectedcontent")!==null)return!0;if(e.type==="childList"){var r=[...e.addedNodes,...e.removedNodes];return r.length>0&&r.every(a=>a.nodeName==="SELECTEDCONTENT")}return!1}const F=Symbol("class"),z=Symbol("style"),$e=Symbol("is custom element"),De=Symbol("is html"),la=K?"link":"LINK",be=K?"input":"INPUT",ua=K?"option":"OPTION",Fe=K?"select":"SELECT";function ca(e){if(w){var r=!1,a=()=>{if(!r){if(r=!0,e.hasAttribute("value")){var n=e.value;B(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var t=e.checked;B(e,"checked",null),e.checked=t}}};e[Sr]=a,Ie(a),wr()}}function B(e,r,a,n){var t=ze(e);w&&(t[r]=e.getAttribute(r),r==="src"||r==="srcset"||r==="href"&&e.nodeName===la)||t[r]!==(t[r]=a)&&(r==="loading"&&(e[pr]=a),a==null?e.removeAttribute(r):typeof a!="string"&&je(e).has(r)?e[r]=a:e.setAttribute(r,a))}function da(e,r,a,n,t=!1,i=!1){w&&t&&e.nodeName===be&&("defaultValue"in a||"defaultChecked"in a||ca(e));var f=ze(e),o=f[$e],u=!f[De];let c=w&&o;c&&H(!1);var s=r||{},h=e.nodeName===ua,d=e.nodeName===Fe;for(var A in r)!(A in a)&&A[0]+A[1]!=="$$"&&(a[A]=null);a.class?a.class=aa(a.class):a[F]&&(a.class=null),a[z]&&(a.style??=null);var v=je(e);if(e.nodeName===be&&"type"in a&&("value"in a||"__value"in a)){var C=a.type;(C!==s.type||C===void 0&&e.hasAttribute("type"))&&(s.type=C,B(e,"type",C))}for(const g in a){let p=a[g];if(h&&g==="value"&&p==null){e.value=e.__value="",s[g]=p;continue}if(g==="class"){var l=e.namespaceURI==="http://www.w3.org/1999/xhtml";ia(e,l,p,n,r?.[F],a[F]),s[g]=p,s[F]=a[F];continue}if(g==="style"){fa(e,p,r?.[z],a[z]),s[g]=p,s[z]=a[z];continue}var _=s[g];if(!(p===_&&!(p===void 0&&e.hasAttribute(g)))){s[g]=p;var E=g[0]+g[1];if(E!=="$$")if(E==="on"){const N={},m="$$"+g;let T=g.slice(2);var S=Yr(T);if(Dr(T)&&(T=T.slice(0,-7),N.capture=!0),!S&&_){if(p!=null)continue;e.removeEventListener(T,s[m],N),s[m]=null}if(S)Fr(T,e,p),zr([T]);else if(p!=null){let V=function(I){s[g].call(this,I)};s[m]=jr(T,e,V,N)}}else if(g==="style")B(e,g,p);else if(g==="autofocus")Er(e,!!p);else if(!o&&(g==="__value"||g==="value"&&p!=null))e.value=e.__value=p;else if(g==="selected"&&h)Ve(e,p);else{var b=g;u||(b=Br(b));var L=b==="defaultValue"||b==="defaultChecked";if(d&&b==="defaultValue")continue;if(p==null&&!o&&!L)if(f[g]=null,b==="value"||b==="checked"){let N=e;const m=r===void 0;if(b==="value"){let T=N.defaultValue;N.removeAttribute(b),N.defaultValue=T,N.value=N.__value=m?T:null}else{let T=N.defaultChecked;N.removeAttribute(b),N.defaultChecked=T,N.checked=m?T:!1}}else e.removeAttribute(g);else L||(o||typeof p!="string")&&v.has(b)?(e[b]=p,b in f&&(f[b]=Tr)):typeof p!="function"&&B(e,b,p)}}}return c&&H(!0),s}function Ae(e,r,a=[],n=[],t=[],i,f=!1,o=!1){vr(t,a,n,u=>{var c=void 0,s={},h=e.nodeName===Fe,d=!1;if(Re(()=>{var v=r(...u.map(y)),C=da(e,c,v,i,f,o);if(d&&h){var l=e;"defaultValue"in v&&_e(l,v.defaultValue),"value"in v&&re(l,v.value)}for(let E of Object.getOwnPropertySymbols(s))v[E]||G(s[E]);for(let E of Object.getOwnPropertySymbols(v)){var _=v[E];E.description===br&&(!c||_!==c[E])&&(s[E]&&G(s[E]),s[E]=Y(()=>ea(e,()=>_))),C[E]=_}c=C}),h){var A=e;ye(()=>{var v=c;"defaultValue"in v&&_e(A,v.defaultValue),re(A,v.value,!0),sa(A)})}d=!0})}function ze(e){return e[hr]??={[$e]:e.nodeName.includes("-"),[De]:e.namespaceURI===gr}}var Ee=new Map;function je(e){var r=e.getAttribute("is")||e.nodeName,a=Ee.get(r);if(a)return a;Ee.set(r,a=new Set);for(var n,t=e,i=Element.prototype;i!==t;){n=Ar(t);for(var f in n)n[f].set&&f!=="innerHTML"&&f!=="textContent"&&f!=="innerText"&&a.add(f);t=_r(t)}return a}function va(e=!1){const r=Cr,a=r.l.u;if(!a)return;let n=()=>M(r.s);if(e){let t=0,i={};const f=Ir(()=>{let o=!1;const u=r.s;for(const c in u)u[c]!==i[c]&&(i[c]=u[c],o=!0);return o&&t++,t});n=()=>y(f)}a.b.length&&Nr(()=>{Te(r,n),de(a.b)}),ce(()=>{const t=Q(()=>a.m.map(mr));return()=>{for(const i of t)typeof i=="function"&&i()}}),a.a.length&&ce(()=>{Te(r,n),de(a.a)})}function Te(e,r){if(e.l.s)for(const a of e.l.s)y(a);r()}Or();const pa={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"};const ha=e=>{for(const r in e)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1};const Se=(...e)=>e.filter((r,a,n)=>!!r&&r.trim()!==""&&n.indexOf(r)===a).join(" ").trim();var ga=Wr("<svg><!><!></svg>");function Ta(e,r){const a=ve(r,["children","$$slots","$$events","$$legacy"]),n=ve(a,["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"]);kr(r,!1);let t=U(r,"name",8,void 0),i=U(r,"color",8,"currentColor"),f=U(r,"size",8,24),o=U(r,"strokeWidth",8,2),u=U(r,"absoluteStrokeWidth",8,!1),c=U(r,"iconNode",24,()=>[]);va();var s=ga();Ae(s,(A,v,C)=>({...pa,...A,...n,width:f(),height:f(),stroke:i(),"stroke-width":v,class:C}),[()=>ha(n)?void 0:{"aria-hidden":"true"},()=>(M(u()),M(o()),M(f()),Q(()=>u()?Number(o())*24/Number(f()):o())),()=>(M(Se),M(t()),M(a),Q(()=>Se("lucide-icon","lucide",t()?`lucide-${t()}`:"",a.class)))]);var h=Rr(s);Xr(h,1,c,Gr,(A,v)=>{var C=Hr(()=>Vr(y(v),2));let l=()=>y(C)[0],_=()=>y(C)[1];var E=qr(),S=yr(E);xr(S,l,!0,(b,L)=>{Ae(b,()=>({..._()}))}),x(A,E)});var d=Mr(h);Qr(d,r,"default",{}),Pr(s),x(e,s),Lr()}function Sa(...e){return e.filter(Boolean).join(" ")}async function O(e,r){const a=new Headers(r?.headers);r?.body!==void 0&&r.body!==null&&a.set("content-type","application/json");const n=await fetch(e,{...r,headers:a});if(!n.ok){let t=`HTTP ${n.status}`;try{const i=await n.json();i.error&&(t=i.error)}catch{}throw new Error(t)}return n.json()}const wa={snapshot(){return O("/api/snapshot")},plugins(){return O("/api/plugins")},logLines(e,r){const a=new URLSearchParams({lines:String(r)});return O(`/api/logs/${encodeURIComponent(e)}?${a}`)},runAction(e){return O("/api/action/run",{method:"POST",body:JSON.stringify({spec:e})})},runFlow(e){return O(`/api/flows/${encodeURIComponent(e)}/run`,{method:"POST"})},reloadFlow(e){return O(`/api/flows/${encodeURIComponent(e)}/reload`,{method:"POST"})},updateFlow(e,r){return O(`/api/flows/${encodeURIComponent(e)}`,{method:"PATCH",body:JSON.stringify(r)})},startService(e){return O(`/api/services/${encodeURIComponent(e)}/start`,{method:"POST"})},stopService(e){return O(`/api/services/${encodeURIComponent(e)}/stop`,{method:"POST"})},reconnectSession(e){return O(`/api/sessions/${encodeURIComponent(e)}/reconnect`,{method:"POST"})},reloadRuntime(){return O("/api/runtime/reload",{method:"POST"})}};export{Ta as I,Ea as a,B as b,Sa as c,aa as d,Xr as e,ia as f,wa as g,fa as h,Ae as i,Gr as j,va as k,ra as l,ca as r,Qr as s};
@@ -0,0 +1 @@
1
+ function n(t){return String(t).padStart(2,"0")}function a(t){const r=new Date(t);return Number.isNaN(r.getTime())?t:`${n(r.getHours())}:${n(r.getMinutes())}:${n(r.getSeconds())}`}function u(t){const r=new Date(t);return Number.isNaN(r.getTime())?t:`${String(r.getMonth()+1).padStart(2,"0")}-${n(r.getDate())} ${n(r.getHours())}:${n(r.getMinutes())}:${n(r.getSeconds())}`}function f(t){if(!Number.isFinite(t)||t<0)return"0s";const r=Math.floor(t),s=Math.floor(r/86400),o=Math.floor(r%86400/3600),e=Math.floor(r%3600/60),i=r%60;return s>0?`${s}d ${o}h ${e}m`:o>0?`${o}h ${e}m ${i}s`:e>0?`${e}m ${i}s`:`${i}s`}function c(t){if(t===void 0)return"";try{return JSON.stringify(t,null,2)}catch{return String(t)}}function m(t){const r=t.trim();if(r)return JSON.parse(r)}function g(t){const r=t.trim();if(!r)return{formatted:""};try{return{formatted:JSON.stringify(JSON.parse(r),null,2)}}catch{return{error:"config 不是合法 JSON"}}}function $(t){return t instanceof Error?t.message:String(t)}export{a,u as b,c,$ as e,f,m as p,g as t};
@@ -0,0 +1 @@
1
+ import{c as _,a as c,p as q,f as H}from"./ywqHnl7S.js";import{I as ee,s as te,a as b,i as W}from"./C1dm7snI.js";import{c as v,p as R,h as T,I as V,g,j as G,r as J,k as z,e as Z}from"./DLXc3MsS.js";import{l as re,s as w,p as r,i as B,r as L}from"./B36KvkWl.js";import{n as O,b as h,c as Q,m as E,F as ie,q as ue,l as fe,o as ve,T as pe,p as $}from"./u9x_yOz5.js";import{d as ge,f as he,A as _e,e as me}from"./BkeJCmZR.js";function Ne(u,e){const d=re(e,["children","$$slots","$$events","$$legacy"]);const f=[["path",{d:"M16 14v2.2l1.6 1"}],["path",{d:"M16 2v4"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5"}],["path",{d:"M3 10h5"}],["path",{d:"M8 2v4"}],["circle",{cx:"16",cy:"16",r:"6"}]];ee(u,w({name:"calendar-clock"},()=>d,{get iconNode(){return f},children:(a,p)=>{var n=_(),s=v(n);te(s,e,"default",{}),c(a,n)},$$slots:{default:!0}}))}function ze(u,e){const d=re(e,["children","$$slots","$$events","$$legacy"]);const f=[["path",{d:"M16 22h2a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v2.85"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M8 14v2.2l1.6 1"}],["circle",{cx:"8",cy:"16",r:"6"}]];ee(u,w({name:"file-clock"},()=>d,{get iconNode(){return f},children:(a,p)=>{var n=_(),s=v(n);te(s,e,"default",{}),c(a,n)},$$slots:{default:!0}}))}function He(u,e){R(e,!0);let d=r(e,"open",15,!1),f=r(e,"onOpenChange",3,O),a=r(e,"onOpenChangeComplete",3,O);ge.create({variant:h(()=>"alert-dialog"),open:h(()=>d(),s=>{d(s),f()(s)}),onOpenChangeComplete:h(()=>a())});var p=_(),n=v(p);b(n,()=>e.children??V),c(u,p),T()}var Se=new Set(["$$slots","$$events","$$legacy","children","child","id","ref"]),be=H("<button><!></button>");function Re(u,e){const d=q();R(e,!0);let f=r(e,"id",19,()=>Q(d)),a=r(e,"ref",15,null),p=L(e,Se);const n=he.create({id:h(()=>f()),ref:h(()=>a(),i=>a(i))}),s=z(()=>E(p,n.props));var m=_(),y=v(m);{var P=i=>{var o=_(),l=v(o);b(l,()=>e.child,()=>({props:g(s)})),c(i,o)},C=i=>{var o=be();W(o,()=>({...g(s)}));var l=G(o);b(l,()=>e.children??V),J(o),c(i,o)};B(y,i=>{e.child?i(P):i(C,-1)})}c(u,m),T()}var ye=new Set(["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]),Ce=H("<button><!></button>");function Te(u,e){const d=q();R(e,!0);let f=r(e,"id",19,()=>Q(d)),a=r(e,"ref",15,null),p=r(e,"disabled",3,!1),n=L(e,ye);const s=_e.create({id:h(()=>f()),ref:h(()=>a(),o=>a(o)),disabled:h(()=>!!p())}),m=z(()=>E(n,s.props));var y=_(),P=v(y);{var C=o=>{var l=_(),t=v(l);b(t,()=>e.child,()=>({props:g(m)})),c(o,l)},i=o=>{var l=Ce();W(l,()=>({...g(m)}));var t=G(l);b(t,()=>e.children??V),J(l),c(o,l)};B(P,o=>{e.child?o(C):o(i,-1)})}c(u,y),T()}var Ae=new Set(["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","interactOutsideBehavior","onCloseAutoFocus","onEscapeKeydown","onOpenAutoFocus","onInteractOutside","preventScroll","trapFocus","restoreScrollDelay"]),Oe=H("<!> <!>",1),Pe=H("<!> <div><!></div>",1);function Ve(u,e){const d=q();R(e,!0);let f=r(e,"id",19,()=>Q(d)),a=r(e,"ref",15,null),p=r(e,"forceMount",3,!1),n=r(e,"interactOutsideBehavior",3,"ignore"),s=r(e,"onCloseAutoFocus",3,O),m=r(e,"onEscapeKeydown",3,O),y=r(e,"onOpenAutoFocus",3,O),P=r(e,"onInteractOutside",3,O),C=r(e,"preventScroll",3,!0),i=r(e,"trapFocus",3,!0),o=r(e,"restoreScrollDelay",3,null),l=L(e,Ae);const t=me.create({id:h(()=>f()),ref:h(()=>a(),M=>a(M))}),F=z(()=>E(l,t.props));var U=_(),oe=v(U);{var ae=M=>{ie(M,{get ref(){return t.opts.ref},loop:!0,get trapFocus(){return i()},get enabled(){return t.root.opts.open.current},get onCloseAutoFocus(){return s()},onOpenAutoFocus:D=>{y()(D),!D.defaultPrevented&&(D.preventDefault(),ue(0,()=>t.opts.ref.current?.focus()))},focusScope:(D,ne)=>{let X=()=>(ne?.()).props;fe(D,w(()=>g(F),{get enabled(){return t.root.opts.open.current},get ref(){return t.opts.ref},onEscapeKeydown:K=>{m()(K),!K.defaultPrevented&&t.root.handleClose()},children:(K,Me)=>{ve(K,w(()=>g(F),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},get interactOutsideBehavior(){return n()},onInteractOutside:N=>{P()(N),!N.defaultPrevented&&t.root.handleClose()},children:(N,De)=>{pe(N,w(()=>g(F),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},children:(se,xe)=>{var Y=_(),le=v(Y);{var ce=A=>{var x=Oe(),I=v(x);{var k=S=>{$(S,{get preventScroll(){return C()},get restoreScrollDelay(){return o()}})};B(I,S=>{t.root.opts.open.current&&S(k)})}var j=Z(I,2);{let S=z(()=>({props:E(g(F),X()),...t.snippetProps}));b(j,()=>e.child,()=>g(S))}c(A,x)},de=A=>{var x=Pe(),I=v(x);$(I,{get preventScroll(){return C()}});var k=Z(I,2);W(k,S=>({...S}),[()=>E(g(F),X())]);var j=G(k);b(j,()=>e.children??V),J(k),c(A,x)};B(le,A=>{e.child?A(ce):A(de,-1)})}c(se,Y)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};B(oe,M=>{(t.shouldRender||p())&&M(ae)})}c(u,U),T()}export{He as A,Ne as C,ze as F,Ve as a,Te as b,Re as c};
@@ -0,0 +1 @@
1
+ import{c as F,a as C,e as Fn,f as j,o as de,p as At,t as te,s as kt}from"./ywqHnl7S.js";import{N as Bn,O as Et,t as Hn,P as en,Q as Mn,v as Vn,c as R,k as S,g as a,b as J,p as X,h as Y,i as M,F as ee,a as O,I as G,u as kn,e as ot,j as rt,r as it,l as Wt,D as Wn}from"./DLXc3MsS.js";import{l as ue,s as ft,p as m,i as z,r as et}from"./B36KvkWl.js";import{I as he,s as fe,i as $,a as L,e as nn,c as Be}from"./C1dm7snI.js";import{y as on,z as Ln,m as tt,A as mt,C as Ht,B as zn,f as ct,G as rn,H as Kn,I as Un,w as q,J as Xn,K as Yn,L as jn,N as ge,O as qn,Q as _t,U as Dt,E as He,S as ne,V as Me,W as sn,X as ln,Y as an,Z as cn,_ as Zn,$ as Gn,a0 as Qn,a1 as Jn,s as $n,n as dt,a2 as dn,r as to,b as A,k as eo,i as un,t as hn,h as no,u as oo,a3 as ro,q as io,g as Ve,a4 as so,F as lo,p as ke,l as ao,o as co,T as uo,c as Ct,P as ho}from"./u9x_yOz5.js";import{o as fo}from"./D3H57P1T.js";import{c as go}from"./Cl3lhUWL.js";function po(e,t,n=t){var o=new WeakSet;Bn(e,"input",async r=>{var s=r?e.defaultValue:e.value;if(s=oe(e)?re(s):s,n(s),Et!==null&&o.add(Et),await Hn(),s!==(s=t())){var i=e.selectionStart,l=e.selectionEnd,c=e.value.length;if(e.value=s??"",l!==null){var d=e.value.length;i===l&&l===c&&d>c?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=i,e.selectionEnd=Math.min(l,d))}}}),(Vn&&e.defaultValue!==e.value||en(t)==null&&e.value)&&(n(oe(e)?re(e.value):e.value),Et!==null&&o.add(Et)),Mn(()=>{var r=t();if(e===document.activeElement){var s=Et;if(o.has(s))return}oe(e)&&r===re(e.value)||e.type==="date"&&!r&&!e.value||r!==e.value&&(e.value=r??"")})}function oe(e){var t=e.type;return t==="number"||t==="range"}function re(e){return e===""?null:+e}function mo(e,t){const n=ue(t,["children","$$slots","$$events","$$legacy"]);const o=[["path",{d:"M20 6 9 17l-5-5"}]];he(e,ft({name:"check"},()=>n,{get iconNode(){return o},children:(r,s)=>{var i=F(),l=R(i);fe(l,t,"default",{}),C(r,i)},$$slots:{default:!0}}))}function We(e,t){const n=ue(t,["children","$$slots","$$events","$$legacy"]);const o=[["path",{d:"m6 9 6 6 6-6"}]];he(e,ft({name:"chevron-down"},()=>n,{get iconNode(){return o},children:(r,s)=>{var i=F(),l=R(i);fe(l,t,"default",{}),C(r,i)},$$slots:{default:!0}}))}function vo(e,t){const n=ue(t,["children","$$slots","$$events","$$legacy"]);const o=[["path",{d:"m18 15-6-6-6 6"}]];he(e,ft({name:"chevron-up"},()=>n,{get iconNode(){return o},children:(r,s)=>{var i=F(),l=R(i);fe(l,t,"default",{}),C(r,i)},$$slots:{default:!0}}))}const fn={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%)"};on(fn);function wo(e){return typeof e=="function"}function Le(e){return wo(e)?e():e}class yo{#t={width:0,height:0};#e=!1;#n;#o;#r;#i=S(()=>(a(this.#s)?.(),this.getSize().width));#l=S(()=>(a(this.#s)?.(),this.getSize().height));#s=S(()=>{const t=Le(this.#o);if(t)return Fn(n=>{if(!this.#r)return;const o=new this.#r.ResizeObserver(r=>{this.#e=!0;for(const s of r){const i=this.#n.box==="content-box"?s.contentBoxSize:s.borderBoxSize,l=Array.isArray(i)?i:[i];this.#t.width=l.reduce((c,d)=>Math.max(c,d.inlineSize),0),this.#t.height=l.reduce((c,d)=>Math.max(c,d.blockSize),0)}n()});return o.observe(t),()=>{this.#e=!1,o.disconnect()}})});constructor(t,n={box:"border-box"}){this.#r=n.window??Ln,this.#n=n,this.#o=t,this.#t={width:0,height:0}}calculateSize(){const t=Le(this.#o);if(!t||!this.#r)return;const n=t.offsetWidth,o=t.offsetHeight;if(this.#n.box==="border-box")return{width:n,height:o};const r=this.#r.getComputedStyle(t),s=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),l=parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),c=parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),d=n-s-l,f=o-i-c;return{width:d,height:f}}getSize(){return this.#e?this.#t:this.calculateSize()??this.#t}get current(){return a(this.#s)?.(),this.getSize()}get width(){return a(this.#i)}get height(){return a(this.#l)}}class bo{#t=()=>{};#e=S(()=>this.#t());constructor(t,n){let o;n!==void 0&&(o=n),this.#t=()=>{try{return o}finally{o=t()}}}get current(){return a(this.#e)}}function xo(e){J(()=>en(()=>e()))}var So=new Set(["$$slots","$$events","$$legacy","value"]),ze=j("<input/>");function Po(e,t){X(t,!0);let n=m(t,"value",15),o=et(t,So);const r=S(()=>tt(o,{"aria-hidden":"true",tabindex:-1,style:{...fn,position:"absolute",top:"0",left:"0"}}));var s=F(),i=R(s);{var l=d=>{var f=ze();$(f,()=>({...a(r),value:n()}),void 0,void 0,void 0,void 0,!0),C(d,f)},c=d=>{var f=ze();$(f,()=>({...a(r)}),void 0,void 0,void 0,void 0,!0),po(f,n),C(d,f)};z(i,d=>{a(r).type==="checkbox"?d(l):d(c,-1)})}C(e,s),Y()}const Oo=["top","right","bottom","left"],vt=Math.min,ut=Math.max,Lt=Math.round,Vt=Math.floor,ht=e=>({x:e,y:e}),Ao={left:"right",right:"left",bottom:"top",top:"bottom"};function gn(e,t,n){return ut(e,vt(t,n))}function gt(e,t){return typeof e=="function"?e(t):e}function wt(e){return e.split("-")[0]}function Tt(e){return e.split("-")[1]}function pe(e){return e==="x"?"y":"x"}function me(e){return e==="y"?"height":"width"}function st(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ve(e){return pe(st(e))}function Co(e,t,n){n===void 0&&(n=!1);const o=Tt(e),r=ve(e),s=me(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=zt(i)),[i,zt(i)]}function _o(e){const t=zt(e);return[ae(e),t,ae(t)]}function ae(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Ke=["left","right"],Ue=["right","left"],No=["top","bottom"],To=["bottom","top"];function Ro(e,t,n){switch(e){case"top":case"bottom":return n?t?Ue:Ke:t?Ke:Ue;case"left":case"right":return t?No:To;default:return[]}}function Io(e,t,n,o){const r=Tt(e);let s=Ro(wt(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(ae)))),s}function zt(e){const t=wt(e);return Ao[t]+e.slice(t.length)}function Eo(e){var t,n,o,r;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(o=e.bottom)!=null?o:0,left:(r=e.left)!=null?r:0}}function pn(e){return typeof e!="number"?Eo(e):{top:e,right:e,bottom:e,left:e}}function Kt(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Xe(e,t,n){let{reference:o,floating:r}=e;const s=st(t),i=ve(t),l=me(i),c=wt(t),d=s==="y",f=o.x+o.width/2-r.width/2,g=o.y+o.height/2-r.height/2,u=o[l]/2-r[l]/2;let h;switch(c){case"top":h={x:f,y:o.y-r.height};break;case"bottom":h={x:f,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:g};break;case"left":h={x:o.x-r.width,y:g};break;default:h={x:o.x,y:o.y}}const p=Tt(t);return p&&(h[i]+=u*(p==="end"?1:-1)*(n&&d?-1:1)),h}async function Do(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:i,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:g="floating",altBoundary:u=!1,padding:h=0}=gt(t,e),p=pn(h),P=l[u?g==="floating"?"reference":"floating":g],v=Kt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(P)))==null||n?P:P.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:d,rootBoundary:f,strategy:c})),b=g==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),x=await(s.isElement==null?void 0:s.isElement(w))&&await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1},T=Kt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b,offsetParent:w,strategy:c}):b);return{top:(v.top-T.top+p.top)/x.y,bottom:(T.bottom-v.bottom+p.bottom)/x.y,left:(v.left-T.left+p.left)/x.x,right:(T.right-v.right+p.right)/x.x}}const Fo=50,Bo=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,l=i.detectOverflow?i:{...i,detectOverflow:Do},c=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:g}=Xe(d,o,c),u=o,h=0;const p={};for(let y=0;y<s.length;y++){const P=s[y];if(!P)continue;const{name:v,fn:b}=P,{x:w,y:x,data:T,reset:_}=await b({x:f,y:g,initialPlacement:o,placement:u,strategy:r,middlewareData:p,rects:d,platform:l,elements:{reference:e,floating:t}});f=w??f,g=x??g,p[v]={...p[v],...T},_&&h<Fo&&(h++,typeof _=="object"&&(_.placement&&(u=_.placement),_.rects&&(d=_.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):_.rects),{x:f,y:g}=Xe(d,u,c)),y=-1)}return{x:f,y:g,placement:u,strategy:r,middlewareData:p}},Ho=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:i,elements:l,middlewareData:c}=t,{element:d,padding:f=0}=gt(e,t)||{};if(d==null)return{};const g=pn(f),u={x:n,y:o},h=ve(r),p=me(h),y=await i.getDimensions(d),P=h==="y",v=P?"top":"left",b=P?"bottom":"right",w=P?"clientHeight":"clientWidth",x=s.reference[p]+s.reference[h]-u[h]-s.floating[p],T=u[h]-s.reference[h],_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let N=_?_[w]:0;(!N||!await(i.isElement==null?void 0:i.isElement(_)))&&(N=l.floating[w]||s.floating[p]);const B=x/2-T/2,V=N/2-y[p]/2-1,E=vt(g[v],V),W=vt(g[b],V),D=N-y[p]-W,I=N/2-y[p]/2+B,H=gn(E,I,D),k=!c.arrow&&Tt(r)!=null&&I!==H&&s.reference[p]/2-(I<E?E:W)-y[p]/2<0,K=k?I<E?I-E:I-D:0;return{[h]:u[h]+K,data:{[h]:H,centerOffset:I-H-K,...k&&{alignmentOffset:K}},reset:k}}}),Mo=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:i,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:g=!0,fallbackPlacements:u,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:y=!0,...P}=gt(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=wt(r),b=st(l),w=wt(l)===l,x=await(c.isRTL==null?void 0:c.isRTL(d.floating)),T=u||(w||!y?[zt(l)]:_o(l)),_=p!=="none";!u&&_&&T.push(...Io(l,y,p,x));const N=[l,...T],B=await c.detectOverflow(t,P),V=[];let E=((o=s.flip)==null?void 0:o.overflows)||[];if(f&&V.push(B[v]),g){const H=Co(r,i,x);V.push(B[H[0]],B[H[1]])}if(E=[...E,{placement:r,overflows:V}],!V.every(H=>H<=0)){var W,D;const H=(((W=s.flip)==null?void 0:W.index)||0)+1,k=N[H];if(k&&(!(g==="alignment"?b!==st(k):!1)||E.every(U=>st(U.placement)===b?U.overflows[0]>0:!0)))return{data:{index:H,overflows:E},reset:{placement:k}};let K=(D=E.filter(nt=>nt.overflows[0]<=0).sort((nt,U)=>nt.overflows[1]-U.overflows[1])[0])==null?void 0:D.placement;if(!K)switch(h){case"bestFit":{var I;const nt=(I=E.filter(U=>{if(_){const Q=st(U.placement);return Q===b||Q==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(Q=>Q>0).reduce((Q,bt)=>Q+bt,0)]).sort((U,Q)=>U[1]-Q[1])[0])==null?void 0:I[0];nt&&(K=nt);break}case"initialPlacement":K=l;break}if(r!==K)return{reset:{placement:K}}}return{}}}};function Ye(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function je(e){return Oo.some(t=>e[t]>=0)}const Vo=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...s}=gt(e,t);switch(r){case"referenceHidden":{const i=await o.detectOverflow(t,{...s,elementContext:"reference"}),l=Ye(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:je(l)}}}case"escaped":{const i=await o.detectOverflow(t,{...s,altBoundary:!0}),l=Ye(i,n.floating);return{data:{escapedOffsets:l,escaped:je(l)}}}default:return{}}}}},mn=new Set(["left","top"]);async function ko(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=wt(n),l=Tt(n),c=st(n)==="y",d=mn.has(i)?-1:1,f=s&&c?-1:1,g=gt(t,e);let{mainAxis:u,crossAxis:h,alignmentAxis:p}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return l&&typeof p=="number"&&(h=l==="end"?p*-1:p),c?{x:h*f,y:u*d}:{x:u*d,y:h*f}}const Wo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:i,middlewareData:l}=t,c=await ko(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:r+c.x,y:s+c.y,data:{...c,placement:i}}}}},Lo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:s}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:c={fn:b=>{let{x:w,y:x}=b;return{x:w,y:x}}},...d}=gt(e,t),f={x:n,y:o},g=await s.detectOverflow(t,d),u=st(r),h=pe(u);let p=f[h],y=f[u];const P=(b,w)=>gn(w+g[b==="y"?"top":"left"],w,w-g[b==="y"?"bottom":"right"]);i&&(p=P(h,p)),l&&(y=P(u,y));const v=c.fn({...t,[h]:p,[u]:y});return{...v,data:{x:v.x-n,y:v.y-o,enabled:{[h]:i,[u]:l}}}}}},zo=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,o;const{x:r,y:s,placement:i,rects:l,middlewareData:c}=t,{offset:d=0,mainAxis:f=!0,crossAxis:g=!0}=gt(e,t),u={x:r,y:s},h=st(i),p=pe(h);let y=u[p],P=u[h];const v=gt(d,t),b=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:(n=v.mainAxis)!=null?n:0,crossAxis:(o=v.crossAxis)!=null?o:0};if(f){const T=p==="y"?"height":"width",_=l.reference[p]-l.floating[T]+b.mainAxis,N=l.reference[p]+l.reference[T]-b.mainAxis;y<_?y=_:y>N&&(y=N)}if(g){var w,x;const T=p==="y"?"width":"height",_=mn.has(wt(i)),N=l.reference[h]-l.floating[T]+(_&&((w=c.offset)==null?void 0:w[h])||0)+(_?0:b.crossAxis),B=l.reference[h]+l.reference[T]+(_?0:((x=c.offset)==null?void 0:x[h])||0)-(_?b.crossAxis:0);P<N?P=N:P>B&&(P=B)}return{[p]:y,[h]:P}}}},Ko=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:s}=t,{apply:i=()=>{},...l}=gt(e,t),c=await r.detectOverflow(t,l),d=wt(n),f=Tt(n),g=st(n)==="y",{width:u,height:h}=o.floating;let p,y;d==="top"||d==="bottom"?(p=d,y=f===(await(r.isRTL==null?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,p=f==="end"?"top":"bottom");const P=h-c.top-c.bottom,v=u-c.left-c.right,b=vt(h-c[p],P),w=vt(u-c[y],v),x=t.middlewareData.shift,T=!x;let _=b,N=w;x!=null&&x.enabled.x&&(N=v),x!=null&&x.enabled.y&&(_=P),T&&!f&&(g?N=u-2*ut(c.left,c.right):_=h-2*ut(c.top,c.bottom)),await i({...t,availableWidth:N,availableHeight:_});const B=await r.getDimensions(s.floating);return u!==B.width||h!==B.height?{reset:{rects:!0}}:{}}}};function jt(){return typeof window<"u"}function Rt(e){return vn(e)?(e.nodeName||"").toLowerCase():"#document"}function Z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function pt(e){var t;return(t=(vn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function vn(e){return jt()?e instanceof Node||e instanceof Z(e).Node:!1}function lt(e){return jt()?e instanceof Element||e instanceof Z(e).Element:!1}function yt(e){return jt()?e instanceof HTMLElement||e instanceof Z(e).HTMLElement:!1}function qe(e){return!jt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Z(e).ShadowRoot}function qt(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=at(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function Uo(e){return/^(table|td|th)$/.test(Rt(e))}function Zt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Xo=/transform|translate|scale|rotate|perspective|filter/,Yo=/paint|layout|strict|content/,xt=e=>!!e&&e!=="none";let ie;function we(e){const t=lt(e)?at(e):e;return xt(t.transform)||xt(t.translate)||xt(t.scale)||xt(t.rotate)||xt(t.perspective)||!ye()&&(xt(t.backdropFilter)||xt(t.filter))||Xo.test(t.willChange||"")||Yo.test(t.contain||"")}function jo(e){let t=Pt(e);for(;yt(t)&&!Ft(t);){if(we(t))return t;if(Zt(t))return null;t=Pt(t)}return null}function ye(){return ie==null&&(ie=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ie}function Ft(e){return/^(html|body|#document)$/.test(Rt(e))}function at(e){return Z(e).getComputedStyle(e)}function Gt(e){return lt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Pt(e){if(Rt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||qe(e)&&e.host||pt(e);return qe(t)?t.host:t}function wn(e){const t=Pt(e);return Ft(t)?(e.ownerDocument||e).body:yt(t)&&qt(t)?t:wn(t)}function Bt(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=wn(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=Z(r);if(s){const l=ce(i);return t.concat(i,i.visualViewport||[],qt(r)?r:[],l&&n?Bt(l):[])}else return t.concat(r,Bt(r,[],n))}function ce(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yn(e){const t=at(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=yt(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,l=Lt(n)!==s||Lt(o)!==i;return l&&(n=s,o=i),{width:n,height:o,$:l}}function be(e){return lt(e)?e:e.contextElement}function Nt(e){const t=be(e);if(!yt(t))return ht(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=yn(t);let i=(s?Lt(n.width):n.width)/o,l=(s?Lt(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const qo=ht(0);function bn(e){const t=Z(e);return!ye()||!t.visualViewport?qo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Zo(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Z(e)}function Ot(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=be(e);let i=ht(1);t&&(o?lt(o)&&(i=Nt(o)):i=Nt(e));const l=Zo(s,n,o)?bn(s):ht(0);let c=(r.left+l.x)/i.x,d=(r.top+l.y)/i.y,f=r.width/i.x,g=r.height/i.y;if(s&&o){const u=Z(s),h=lt(o)?Z(o):o;let p=u,y=ce(p);for(;y&&h!==p;){const P=Nt(y),v=y.getBoundingClientRect(),b=at(y),w=v.left+(y.clientLeft+parseFloat(b.paddingLeft))*P.x,x=v.top+(y.clientTop+parseFloat(b.paddingTop))*P.y;c*=P.x,d*=P.y,f*=P.x,g*=P.y,c+=w,d+=x,p=Z(y),y=ce(p)}}return Kt({width:f,height:g,x:c,y:d})}function Qt(e,t){const n=Gt(e).scrollLeft;return t?t.left+n:Ot(pt(e)).left+n}function xn(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Qt(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function Go(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=pt(o),l=t?Zt(t.floating):!1;if(o===i||l&&s)return n;let c={scrollLeft:0,scrollTop:0},d=ht(1);const f=ht(0),g=yt(o);if((g||!s)&&((Rt(o)!=="body"||qt(i))&&(c=Gt(o)),g)){const h=Ot(o);d=Nt(o),f.x=h.x+o.clientLeft,f.y=h.y+o.clientTop}const u=i&&!g&&!s?xn(i,c):ht(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+f.x+u.x,y:n.y*d.y-c.scrollTop*d.y+f.y+u.y}}function Qo(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Jo(e){const t=Gt(e),n=e.ownerDocument.body,o=ut(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=ut(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-t.scrollLeft+Qt(e);const i=-t.scrollTop;return at(n).direction==="rtl"&&(s+=ut(e.clientWidth,n.clientWidth)-o),{width:o,height:r,x:s,y:i}}const $o=25;function tr(e,t,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",r=Z(e),s=pt(e),i=r.visualViewport;let l=s.clientWidth,c=s.clientHeight,d=0,f=0;if(i){const u=!ye()||t==="fixed";o?u||(d=-i.offsetLeft,f=-i.offsetTop):(l=i.width,c=i.height,u&&(d=i.offsetLeft,f=i.offsetTop))}if(Qt(s)<=0){const u=s.ownerDocument,h=u.body,p=getComputedStyle(h),y=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,P=Math.abs(s.clientWidth-h.clientWidth-y),v=getComputedStyle(s).scrollbarGutter==="stable both-edges"?P/2:P;v<=$o&&(l-=v)}return{width:l,height:c,x:d,y:f}}function er(e,t){const n=Ot(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=Nt(e),i=e.clientWidth*s.x,l=e.clientHeight*s.y,c=r*s.x,d=o*s.y;return{width:i,height:l,x:c,y:d}}function Ze(e,t,n){let o;if(t==="viewport"||t==="layoutViewport")o=tr(e,n,t);else if(t==="document")o=Jo(pt(e));else if(lt(t))o=er(t,n);else{const r=bn(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Kt(o)}function nr(e,t){const n=t.get(e);if(n)return n;let o=Bt(e,[],!1).filter(l=>lt(l)&&Rt(l)!=="body"),r=null;const s=at(e).position==="fixed";let i=s?Pt(e):e;for(;lt(i)&&!Ft(i);){const l=at(i),c=we(i),d=r?r.position:s?"fixed":"";!c&&(d==="fixed"||d==="absolute"&&l.position==="static")?o=o.filter(g=>g!==i):r=l,i=Pt(i)}return t.set(e,o),o}function or(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?Zt(t)?[]:nr(t,this._c):[].concat(n),o],l=Ze(t,i[0],r);let c=l.top,d=l.right,f=l.bottom,g=l.left;for(let u=1;u<i.length;u++){const h=Ze(t,i[u],r);c=ut(h.top,c),d=vt(h.right,d),f=vt(h.bottom,f),g=ut(h.left,g)}return{width:d-g,height:f-c,x:g,y:c}}function rr(e){const{width:t,height:n}=yn(e);return{width:t,height:n}}function ir(e,t,n){const o=yt(t),r=pt(t),s=n==="fixed",i=Ot(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const c=ht(0);if((o||!s)&&((Rt(t)!=="body"||qt(r))&&(l=Gt(t)),o)){const u=Ot(t,!0,s,t);c.x=u.x+t.clientLeft,c.y=u.y+t.clientTop}!o&&r&&(c.x=Qt(r));const d=r&&!o&&!s?xn(r,l):ht(0),f=i.left+l.scrollLeft-c.x-d.x,g=i.top+l.scrollTop-c.y-d.y;return{x:f,y:g,width:i.width,height:i.height}}function se(e){return at(e).position==="static"}function Ge(e,t){if(!yt(e)||at(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return pt(e)===n&&(n=n.ownerDocument.body),n}function Sn(e,t){const n=Z(e);if(Zt(e))return n;if(!yt(e)){let r=Pt(e);for(;r&&!Ft(r);){if(lt(r)&&!se(r))return r;r=Pt(r)}return n}let o=Ge(e,t);for(;o&&Uo(o)&&se(o);)o=Ge(o,t);return o&&Ft(o)&&se(o)&&!we(o)?n:o||jo(e)||n}const sr=async function(e){const t=this.getOffsetParent||Sn,n=this.getDimensions,o=await n(e.floating);return{reference:ir(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function lr(e){return at(e).direction==="rtl"}const ar={convertOffsetParentRelativeRectToViewportRelativeRect:Go,getDocumentElement:pt,getClippingRect:or,getOffsetParent:Sn,getElementRects:sr,getClientRects:Qo,getDimensions:rr,getScale:Nt,isElement:lt,isRTL:lr};function Pn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function cr(e,t,n){let o=null,r;const s=pt(e);function i(){var f;clearTimeout(r),(f=o)==null||f.disconnect(),o=null}function l(f,g){f===void 0&&(f=!1),g===void 0&&(g=1),i();const u=e.getBoundingClientRect(),{left:h,top:p,width:y,height:P}=u;if(f||t(),!y||!P)return;const v=Vt(p),b=Vt(s.clientWidth-(h+y)),w=Vt(s.clientHeight-(p+P)),x=Vt(h),_={rootMargin:-v+"px "+-b+"px "+-w+"px "+-x+"px",threshold:ut(0,vt(1,g))||1};let N=!0;function B(V){const E=V[0].intersectionRatio;if(!Pn(u,e.getBoundingClientRect()))return l();if(E!==g){if(!N)return l();E?l(!1,E):r=setTimeout(()=>{l(!1,1e-7)},1e3)}N=!1}try{o=new IntersectionObserver(B,{..._,root:s.ownerDocument})}catch{o=new IntersectionObserver(B,_)}o.observe(e)}const c=Z(e),d=()=>l(n);return c.addEventListener("resize",d),l(!0),()=>{c.removeEventListener("resize",d),i()}}function dr(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,d=be(e),f=r||s?[...d?Bt(d):[],...t?Bt(t):[]]:[];f.forEach(v=>{r&&v.addEventListener("scroll",n),s&&v.addEventListener("resize",n)});const g=d&&l?cr(d,n,s):null;let u=-1,h=null;i&&(h=new ResizeObserver(v=>{let[b]=v;b&&b.target===d&&h&&t&&(h.unobserve(t),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),n()}),d&&!c&&h.observe(d),t&&h.observe(t));let p,y=c?Ot(e):null;c&&P();function P(){const v=Ot(e);y&&!Pn(y,v)&&n(),y=v,p=requestAnimationFrame(P)}return n(),()=>{var v;f.forEach(b=>{r&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),g?.(),(v=h)==null||v.disconnect(),h=null,c&&cancelAnimationFrame(p)}}const ur=Wo,hr=Lo,fr=Mo,gr=Ko,pr=Vo,mr=Ho,vr=zo,wr=(e,t,n)=>{const o=new Map,r=n??{},s={...ar,...r.platform,_c:o};return Bo(e,t,{...r,platform:s})};function St(e){return typeof e=="function"?e():e}function On(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Qe(e,t){const n=On(e);return Math.round(t*n)/n}function yr(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function br(e){const t=e.whileElementsMounted,n=S(()=>St(e.open)??!0),o=S(()=>St(e.middleware)),r=S(()=>St(e.transform)??!0),s=S(()=>St(e.placement)??"bottom"),i=S(()=>St(e.strategy)??"absolute"),l=S(()=>St(e.sideOffset)??0),c=S(()=>St(e.alignOffset)??0),d=e.reference;let f=M(0),g=M(0);const u=mt(null);let h=M(ee(a(i))),p=M(ee(a(s))),y=M(ee({})),P=M(!1),v=!1,b=0;const w=S(()=>{const E=u.current?Qe(u.current,a(f)):a(f),W=u.current?Qe(u.current,a(g)):a(g);return a(r)?{position:a(h),left:"0",top:"0",transform:`translate(${E}px, ${W}px)`,...u.current&&On(u.current)>=1.5&&{willChange:"transform"}}:{position:a(h),left:`${E}px`,top:`${W}px`}});let x;function T(){if(d.current===null||u.current===null)return;const E=d.current,W=u.current,D=++b;wr(E,W,{middleware:a(o),placement:a(s),strategy:a(i)}).then(I=>{if(D!==b||d.current!==E||u.current!==W)return;if(xr(E)){O(y,{...a(y),hide:{...a(y).hide,referenceHidden:!0}},!0);return}if(!a(n)&&a(f)!==0&&a(g)!==0){const k=Math.max(Math.abs(a(l)),Math.abs(a(c)),15);if(I.x<=k&&I.y<=k)return}O(f,I.x,!0),O(g,I.y,!0),O(h,I.strategy,!0),O(p,I.placement,!0),O(y,I.middlewareData,!0),O(P,!0)})}function _(){typeof x=="function"&&(x(),x=void 0),b++}function N(){if(_(),t===void 0){T();return}a(n)&&(d.current===null||u.current===null||(x=t(d.current,u.current,T)))}function B(){!a(n)&&u.current===null&&O(P,!1)}function V(){return[a(o),a(s),a(i),a(l),a(c),a(n)]}return J(()=>{t===void 0&&a(n)&&T()}),J(N),J(()=>{if(t!==void 0){if(V(),!a(n)){v=!1;return}if(!a(P)){v=!1;return}if(!v){v=!0;return}T()}}),J(B),J(()=>_),{floating:u,reference:d,get strategy(){return a(h)},get placement(){return a(p)},get middlewareData(){return a(y)},get isPositioned(){return a(P)},get floatingStyles(){return a(w)},get update(){return T}}}function xr(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const Sr={top:"bottom",right:"left",bottom:"top",left:"right"},xe=new Ht("Floating.Root"),Je=new Ht("Floating.Content"),Se=new Ht("Floating.Root");class Ut{static create(t=!1){return t?Se.set(new Ut):xe.set(new Ut)}anchorNode=mt(null);customAnchorNode=mt(null);triggerNode=mt(null);constructor(){J(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}}class Xt{static create(t,n=!1){return n?Je.set(new Xt(t,Se.get())):Je.set(new Xt(t,xe.get()))}opts;root;contentRef=mt(null);wrapperRef=mt(null);arrowRef=mt(null);contentAttachment=ct(this.contentRef);wrapperAttachment=ct(this.wrapperRef);arrowAttachment=ct(this.arrowRef);arrowId=mt(rn());#t=S(()=>{if(typeof this.opts.style=="string")return Kn(this.opts.style);if(!this.opts.style)return{}});#e=void 0;#n=new yo(()=>this.arrowRef.current??void 0);#o=S(()=>this.#n?.width??0);#r=S(()=>this.#n?.height??0);#i=S(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#l=S(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#s=S(()=>a(this.#l).length>0);get hasExplicitBoundaries(){return a(this.#s)}set hasExplicitBoundaries(t){O(this.#s,t)}#a=S(()=>({padding:this.opts.collisionPadding.current,boundary:a(this.#l).filter(Un),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return a(this.#a)}set detectOverflowOptions(t){O(this.#a,t)}#c=M(void 0);#d=M(void 0);#u=M(void 0);#h=M(void 0);#f=S(()=>[ur({mainAxis:this.opts.sideOffset.current+a(this.#r),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&hr({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?vr():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&fr({...this.detectOverflowOptions}),gr({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:o})=>{const{width:r,height:s}=t.reference;O(this.#c,n,!0),O(this.#d,o,!0),O(this.#u,r,!0),O(this.#h,s,!0)}}),this.arrowRef.current&&mr({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),Pr({arrowWidth:a(this.#o),arrowHeight:a(this.#r)}),this.opts.hideWhenDetached.current&&pr({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return a(this.#f)}set middleware(t){O(this.#f,t)}floating;#g=S(()=>Or(this.floating.placement));get placedSide(){return a(this.#g)}set placedSide(t){O(this.#g,t)}#p=S(()=>Ar(this.floating.placement));get placedAlign(){return a(this.#p)}set placedAlign(t){O(this.#p,t)}#m=S(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return a(this.#m)}set arrowX(t){O(this.#m,t)}#v=S(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return a(this.#v)}set arrowY(t){O(this.#v,t)}#w=S(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return a(this.#w)}set cannotCenterArrow(t){O(this.#w,t)}#y=M();get contentZIndex(){return a(this.#y)}set contentZIndex(t){O(this.#y,t,!0)}#b=S(()=>Sr[this.placedSide]);get arrowBaseSide(){return a(this.#b)}set arrowBaseSide(t){O(this.#b,t)}#x=S(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${a(this.#c)}px`,"--bits-floating-available-height":`${a(this.#d)}px`,"--bits-floating-anchor-width":`${a(this.#u)}px`,"--bits-floating-anchor-height":`${a(this.#h)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...a(this.#t)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return a(this.#x)}set wrapperProps(t){O(this.#x,t)}#S=S(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:on({...a(this.#t)}),...this.contentAttachment}));get props(){return a(this.#S)}set props(t){O(this.#S,t)}#P=S(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0}));get arrowStyle(){return a(this.#P)}set arrowStyle(t){O(this.#P,t)}constructor(t,n){this.opts=t,this.root=n,this.#e=t.updatePositionStrategy,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),q(()=>t.customAnchor.current,o=>{this.root.customAnchorNode.current=o}),this.floating=br({strategy:()=>this.opts.strategy.current,placement:()=>a(this.#i),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...o)=>dr(...o,{animationFrame:this.#e?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),J(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),q(()=>this.contentRef.current,o=>{if(!o||!this.opts.enabled.current)return;const r=Xn(o),s=r.requestAnimationFrame(()=>{if(this.contentRef.current!==o||!this.opts.enabled.current)return;const i=r.getComputedStyle(o).zIndex;i!==this.contentZIndex&&(this.contentZIndex=i)});return()=>{r.cancelAnimationFrame(s)}}),J(()=>{this.floating.floating.current=this.wrapperRef.current})}}class Yt{static create(t,n=!1){return n?new Yt(t,Se.get()):new Yt(t,xe.get())}opts;root;constructor(t,n){this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=zn(t.virtualEl.current):n.triggerNode=t.ref}}function Pr(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,i=r.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[d,f]=Pe(n),g={start:"0%",center:"50%",end:"100%"}[f],u=(r.arrow?.x??0)+l/2,h=(r.arrow?.y??0)+c/2;let p="",y="";return d==="bottom"?(p=i?g:`${u}px`,y=`${-c}px`):d==="top"?(p=i?g:`${u}px`,y=`${o.floating.height+c}px`):d==="right"?(p=`${-c}px`,y=i?g:`${h}px`):d==="left"&&(p=`${o.floating.width+c}px`,y=i?g:`${h}px`),{data:{x:p,y}}}}}function Pe(e){const[t,n="center"]=e.split("-");return[t,n]}function Or(e){return Pe(e)[0]}function Ar(e){return Pe(e)[1]}function Cr(e,t){X(t,!0);let n=m(t,"tooltip",3,!1);Ut.create(n());var o=F(),r=R(o);L(r,()=>t.children??G),C(e,o),Y()}class _r{#t;#e=S(()=>this.#t.candidateValues());#n;constructor(t){this.#t=t,this.#n=Yn("",{afterMs:1e3,getWindow:this.#t.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t){if(!this.#t.enabled()||!a(this.#e).length)return;this.#n.current=this.#n.current+t;const n=this.#t.getCurrentItem(),o=a(this.#e).find(l=>l===n)??"",r=a(this.#e).map(l=>l??""),s=jn(r,this.#n.current,o),i=a(this.#e).find(l=>l===s);return i&&this.#t.onMatch(i),i}resetTypeahead(){this.#n.current=""}}const Nr=[Dt,sn,ln],Tr=[_t,an,cn],Rr=[...Nr,...Tr],Ir=eo({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),It=new Ht("Select.Root | Combobox.Root"),Jt=new Ht("Select.Content | Combobox.Content");class An{opts;#t=M(!1);get touchedInput(){return a(this.#t)}set touchedInput(t){O(this.#t,t,!0)}#e=M(null);get inputNode(){return a(this.#e)}set inputNode(t){O(this.#e,t,!0)}#n=M(null);get contentNode(){return a(this.#n)}set contentNode(t){O(this.#n,t,!0)}contentPresence;#o=M(null);get viewportNode(){return a(this.#o)}set viewportNode(t){O(this.#o,t,!0)}#r=M(null);get triggerNode(){return a(this.#r)}set triggerNode(t){O(this.#r,t,!0)}#i=M(null);get valueNode(){return a(this.#i)}set valueNode(t){O(this.#i,t,!0)}#l=M("");get valueId(){return a(this.#l)}set valueId(t){O(this.#l,t,!0)}#s=M(null);get highlightedNode(){return a(this.#s)}set highlightedNode(t){O(this.#s,t,!0)}#a=S(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null);get highlightedValue(){return a(this.#a)}set highlightedValue(t){O(this.#a,t)}#c=S(()=>{if(this.highlightedNode)return this.highlightedNode.id});get highlightedId(){return a(this.#c)}set highlightedId(t){O(this.#c,t)}#d=S(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null);get highlightedLabel(){return a(this.#d)}set highlightedLabel(t){O(this.#d,t)}#u=M(!1);get contentIsPositioned(){return a(this.#u)}set contentIsPositioned(t){O(this.#u,t,!0)}isUsingKeyboard=!1;isCombobox=!1;domContext=new ge(()=>null);constructor(t){this.opts=t,this.isCombobox=t.isCombobox,this.contentPresence=new to({ref:A(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),kn(()=>{this.opts.open.current||this.setHighlightedNode(null)})}setHighlightedNode(t,n=!1){this.highlightedNode=t,t&&(this.isUsingKeyboard||n)&&this.scrollHighlightedNodeIntoView(t)}scrollHighlightedNodeIntoView(t){!this.viewportNode||!this.contentIsPositioned||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 n=this.getCandidateNodes();if(n.length){if(this.viewportNode){const o=this.viewportNode.getBoundingClientRect();n=n.filter(r=>{if(!this.viewportNode)return!1;const s=r.getBoundingClientRect();return s.right<=o.right&&s.left>=o.left&&s.bottom<=o.bottom&&s.top>=o.top})}this.setHighlightedNode(n[0],t)}}getNodeByValue(t){return this.getCandidateNodes().find(o=>o.dataset.value===t)??null}getLabelForValue(t){if(t==="")return"";const n=this.opts.items.current.find(r=>r.value===t)?.label;if(n!==void 0)return n;const o=this.getNodeByValue(t);if(o){const r=o.getAttribute("data-label");return r!==null&&r!==""?r:o.textContent?.trim()??t}return t}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()}getBitsAttr=t=>Ir.getAttr(t,this.isCombobox?"combobox":void 0)}class Er extends An{opts;isMulti=!1;#t=S(()=>this.opts.value.current!=="");get hasValue(){return a(this.#t)}set hasValue(t){O(this.#t,t)}#e=S(()=>this.opts.items.current.length?this.opts.items.current.find(t=>t.value===this.opts.value.current)?.label??"":"");get currentLabel(){return a(this.#e)}set currentLabel(t){O(this.#e,t)}#n=S(()=>this.opts.items.current.length?this.opts.items.current.filter(n=>!n.disabled).map(n=>n.label):[]);get candidateLabels(){return a(this.#n)}set candidateLabels(t){O(this.#n,t)}#o=S(()=>!(this.isMulti||this.opts.items.current.length===0));get dataTypeaheadEnabled(){return a(this.#o)}set dataTypeaheadEnabled(t){O(this.#o,t)}constructor(t){super(t),this.opts=t,J(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),q(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(t){return this.opts.value.current===t}toggleItem(t,n=t){const o=this.includesItem(t)?"":t;this.opts.value.current=o,o!==""&&(this.opts.inputValue.current=n)}setInitialHighlightedNode(){dn(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const t=this.getNodeByValue(this.opts.value.current);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}class Dr extends An{opts;isMulti=!0;#t=S(()=>this.opts.value.current.length>0);get hasValue(){return a(this.#t)}set hasValue(t){O(this.#t,t)}constructor(t){super(t),this.opts=t,J(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),q(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(t){return this.opts.value.current.includes(t)}toggleItem(t,n=t){this.includesItem(t)?this.opts.value.current=this.opts.value.current.filter(o=>o!==t):this.opts.value.current=[...this.opts.value.current,t],this.opts.inputValue.current=n}setInitialHighlightedNode(){dn(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const t=this.getNodeByValue(this.opts.value.current[0]);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}class Fr{static create(t){const{type:n,...o}=t,r=n==="single"?new Er(o):new Dr(o);return It.set(r)}}class Oe{static create(t){return new Oe(t,It.get())}root;opts;attachment;constructor(t,n){this.root=n,this.opts=t,this.attachment=ct(t.ref,o=>this.root.valueNode=o),this.setValue=this.setValue.bind(this)}setValue(t){this.root.isMulti&&!Array.isArray(t)||!this.root.isMulti&&typeof t!="string"||(this.root.opts.value.current=t)}#t=S(()=>{if(this.root.isMulti)return{selection:{type:"multiple",selected:this.root.opts.value.current.length>0?this.root.opts.value.current.map(n=>({value:n,label:this.root.getLabelForValue(n)})):[],setValue:this.setValue},placeholder:this.opts.placeholder.current??null,disabled:this.root.opts.disabled.current};const t=this.root.opts.value.current;return{selection:{type:"single",selected:t!==""?{value:t,label:t===""?"":this.root.getLabelForValue(t)}:void 0,setValue:this.setValue},placeholder:this.opts.placeholder.current??null,disabled:this.root.opts.disabled.current}});get snippetProps(){return a(this.#t)}set snippetProps(t){O(this.#t,t)}#e=S(()=>({id:this.opts.id.current,"data-placeholder":this.root.hasValue?void 0:"","data-select-value":"",...this.attachment}));get props(){return a(this.#e)}set props(t){O(this.#e,t)}}class Ae{static create(t){return new Ae(t,It.get())}opts;root;attachment;#t;#e;constructor(t,n){this.opts=t,this.root=n,this.attachment=ct(t.ref,o=>this.root.triggerNode=o),this.root.domContext=new ge(t.ref),this.#t=new qn({getCurrentItem:()=>this.root.highlightedNode,onMatch:o=>{this.root.setHighlightedNode(o)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()}),this.#e=new _r({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:o=>{if(this.root.isMulti||!this.root.opts.items.current)return;const r=this.root.opts.items.current.find(s=>s.label===o);r&&(this.root.opts.value.current=r.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)}#n(){this.root.opts.open.current=!0,this.#e.resetTypeahead(),this.#t.resetTypeahead()}#o(t){this.#n()}#r(){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)}onkeydown(t){if(this.root.isUsingKeyboard=!0,(t.key===_t||t.key===Dt)&&t.preventDefault(),!this.root.opts.open.current){if(t.key===He||t.key===ne||t.key===Dt||t.key===_t)t.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){this.#e.handleTypeaheadSearch(t.key);return}if(this.root.hasValue)return;const i=this.root.getCandidateNodes();if(!i.length)return;if(t.key===Dt){const l=i[0];this.root.setHighlightedNode(l)}else if(t.key===_t){const l=i[i.length-1];this.root.setHighlightedNode(l)}return}if(t.key===Me){this.root.handleClose();return}if((t.key===He||t.key===ne&&this.#t.search==="")&&!t.isComposing&&(t.preventDefault(),this.#r()))return;if(t.key===_t&&t.altKey&&this.root.handleClose(),Rr.includes(t.key)){t.preventDefault();const i=this.root.getCandidateNodes(),l=this.root.highlightedNode,c=l?i.indexOf(l):-1,d=this.root.opts.loop.current;let f;if(t.key===Dt?f=Zn(i,c,d):t.key===_t?f=Gn(i,c,d):t.key===an?f=Qn(i,c,10,d):t.key===sn?f=Jn(i,c,10,d):t.key===ln?f=i[0]:t.key===cn&&(f=i[i.length-1]),!f)return;this.root.setHighlightedNode(f);return}const n=t.ctrlKey||t.altKey||t.metaKey,o=t.key.length===1,r=t.key===ne,s=this.root.getCandidateNodes();if(t.key!==Me){if(!n&&(o||r)){!this.#t.handleTypeaheadSearch(t.key,s)&&r&&(t.preventDefault(),this.#r());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 n=t.target;n?.hasPointerCapture(t.pointerId)&&n?.releasePointerCapture(t.pointerId),t.button===0&&t.ctrlKey===!1&&(this.root.opts.open.current===!1?this.#o(t):this.root.handleClose())}onpointerup(t){this.root.opts.disabled.current||(t.preventDefault(),t.pointerType==="touch"&&(this.root.opts.open.current===!1?this.#o(t):this.root.handleClose()))}#i=S(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":no(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":hn(this.root.opts.open.current),"data-disabled":un(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}));get props(){return a(this.#i)}set props(t){O(this.#i,t)}}class Ce{static create(t){return Jt.set(new Ce(t,It.get()))}opts;root;attachment;#t=M(!1);get isPositioned(){return a(this.#t)}set isPositioned(t){O(this.#t,t,!0)}domContext;constructor(t,n){this.opts=t,this.root=n,this.attachment=ct(t.ref,o=>this.root.contentNode=o),this.domContext=new ge(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),$n(()=>{this.root.contentNode=null,this.root.contentIsPositioned=!1,this.isPositioned=!1}),q(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.root.contentIsPositioned=!1,this.isPositioned=!1)}),q([()=>this.isPositioned,()=>this.root.highlightedNode],()=>{!this.isPositioned||!this.root.highlightedNode||this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode)}),this.onpointermove=this.onpointermove.bind(this)}onpointermove(t){this.root.isUsingKeyboard=!1}#e=S(()=>yr(this.root.isCombobox?"combobox":"select"));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()};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=t=>{t.preventDefault()};onCloseAutoFocus=t=>{t.preventDefault()};get shouldRender(){return this.root.contentPresence.shouldRender}#n=S(()=>({open:this.root.opts.open.current}));get snippetProps(){return a(this.#n)}set snippetProps(t){O(this.#n,t)}#o=S(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":hn(this.root.opts.open.current),...oo(this.root.contentPresence.transitionStatus),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...a(this.#e)},onpointermove:this.onpointermove,...this.attachment}));get props(){return a(this.#o)}set props(t){O(this.#o,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.root.contentIsPositioned=!0,this.isPositioned=!0)}}}class _e{static create(t){return new _e(t,It.get())}opts;root;attachment;#t=S(()=>this.root.includesItem(this.opts.value.current));get isSelected(){return a(this.#t)}set isSelected(t){O(this.#t,t)}#e=S(()=>this.root.highlightedValue===this.opts.value.current);get isHighlighted(){return a(this.#e)}set isHighlighted(t){O(this.#e,t)}prevHighlighted=new bo(()=>this.isHighlighted);#n=M(!1);get mounted(){return a(this.#n)}set mounted(t){O(this.#n,t,!0)}constructor(t,n){this.opts=t,this.root=n,this.attachment=ct(t.ref),q([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),q(()=>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)}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()}#o=S(()=>({selected:this.isSelected,highlighted:this.isHighlighted}));get snippetProps(){return a(this.#o)}set snippetProps(t){O(this.#o,t)}onpointerdown(t){t.preventDefault()}onpointerup(t){if(!(t.defaultPrevented||!this.opts.ref.current)){if(t.pointerType==="touch"&&!so){de(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)}#r=S(()=>({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":un(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}));get props(){return a(this.#r)}set props(t){O(this.#r,t)}}class Ne{static create(t){return new Ne(t,It.get())}opts;root;#t=S(()=>this.root.opts.name.current!=="");get shouldRender(){return a(this.#t)}set shouldRender(t){O(this.#t,t)}constructor(t,n){this.opts=t,this.root=n,this.onfocus=this.onfocus.bind(this)}onfocus(t){t.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}#e=S(()=>({disabled:Ve(this.root.opts.disabled.current),required:Ve(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus}));get props(){return a(this.#e)}set props(t){O(this.#e,t)}}class Te{static create(t){return new Te(t,Jt.get())}opts;content;root;attachment;#t=M(0);get prevScrollTop(){return a(this.#t)}set prevScrollTop(t){O(this.#t,t,!0)}constructor(t,n){this.opts=t,this.content=n,this.root=n.root,this.attachment=ct(t.ref,o=>{this.root.viewportNode=o})}#e=S(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment}));get props(){return a(this.#e)}set props(t){O(this.#e,t)}}class Cn{opts;content;root;attachment;autoScrollTimer=null;userScrollTimer=-1;isUserScrolling=!1;onAutoScroll=dt;#t=M(!1);get mounted(){return a(this.#t)}set mounted(t){O(this.#t,t,!0)}constructor(t,n){this.opts=t,this.content=n,this.root=n.root,this.attachment=ct(t.ref),q([()=>this.mounted],()=>{if(!this.mounted){this.isUserScrolling=!1;return}this.isUserScrolling}),J(()=>{this.mounted||this.clearAutoScrollInterval()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this)}handleUserScroll(){this.content.domContext.clearTimeout(this.userScrollTimer),this.isUserScrolling=!0,this.userScrollTimer=this.content.domContext.setTimeout(()=>{this.isUserScrolling=!1},200)}clearAutoScrollInterval(){this.autoScrollTimer!==null&&(this.content.domContext.clearTimeout(this.autoScrollTimer),this.autoScrollTimer=null)}onpointerdown(t){if(this.autoScrollTimer!==null)return;const n=o=>{this.onAutoScroll(),this.autoScrollTimer=this.content.domContext.setTimeout(()=>n(o+1),this.opts.delay.current(o))};this.autoScrollTimer=this.content.domContext.setTimeout(()=>n(1),this.opts.delay.current(0))}onpointermove(t){this.onpointerdown(t)}onpointerleave(t){this.clearAutoScrollInterval()}#e=S(()=>({id:this.opts.id.current,"aria-hidden":ro(!0),style:{flexShrink:0},onpointerdown:this.onpointerdown,onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return a(this.#e)}set props(t){O(this.#e,t)}}class Re{static create(t){return new Re(new Cn(t,Jt.get()))}scrollButtonState;content;root;#t=M(!1);get canScrollDown(){return a(this.#t)}set canScrollDown(t){O(this.#t,t,!0)}scrollIntoViewTimer=null;constructor(t){this.scrollButtonState=t,this.content=t.content,this.root=t.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,q([()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.root.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),de(this.root.viewportNode,"scroll",()=>this.handleScroll())}),q([()=>this.root.opts.inputValue.current,()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{!this.root.viewportNode||!this.content.isPositioned||this.handleScroll(!0)}),q(()=>this.scrollButtonState.mounted,()=>{this.scrollButtonState.mounted&&(this.scrollIntoViewTimer&&clearTimeout(this.scrollIntoViewTimer),this.scrollIntoViewTimer=io(5,()=>{const n=this.root.highlightedNode;n&&this.root.scrollHighlightedNodeIntoView(n)}))})}handleScroll=(t=!1)=>{if(t||this.scrollButtonState.handleUserScroll(),!this.root.viewportNode)return;const n=this.root.viewportNode.scrollHeight-this.root.viewportNode.clientHeight,o=Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop,10);this.canScrollDown=Math.ceil(this.root.viewportNode.scrollTop)<n-o};handleAutoScroll=()=>{const t=this.root.viewportNode,n=this.root.highlightedNode;!t||!n||(t.scrollTop=t.scrollTop+n.offsetHeight)};#e=S(()=>({...this.scrollButtonState.props,[this.root.getBitsAttr("scroll-down-button")]:""}));get props(){return a(this.#e)}set props(t){O(this.#e,t)}}class Ie{static create(t){return new Ie(new Cn(t,Jt.get()))}scrollButtonState;content;root;#t=M(!1);get canScrollUp(){return a(this.#t)}set canScrollUp(t){O(this.#t,t,!0)}constructor(t){this.scrollButtonState=t,this.content=t.content,this.root=t.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,q([()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.root.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),de(this.root.viewportNode,"scroll",()=>this.handleScroll())})}handleScroll=(t=!1)=>{if(t||this.scrollButtonState.handleUserScroll(),!this.root.viewportNode)return;const n=Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop,10);this.canScrollUp=this.root.viewportNode.scrollTop-n>.1};handleAutoScroll=()=>{!this.root.viewportNode||!this.root.highlightedNode||(this.root.viewportNode.scrollTop=this.root.viewportNode.scrollTop-this.root.highlightedNode.offsetHeight)};#e=S(()=>({...this.scrollButtonState.props,[this.root.getBitsAttr("scroll-up-button")]:""}));get props(){return a(this.#e)}set props(t){O(this.#e,t)}}function le(e,t){X(t,!0);let n=m(t,"value",15);const o=Ne.create({value:A(()=>n())});var r=F(),s=R(r);{var i=l=>{Po(l,ft(()=>o.props,{get autocomplete(){return t.autocomplete},get value(){return n()},set value(c){n(c)}}))};z(s,l=>{o.shouldRender&&l(i)})}C(e,r),Y()}function Br(e,t){X(t,!0);let n=m(t,"tooltip",3,!1);Yt.create({id:A(()=>t.id),virtualEl:A(()=>t.virtualEl),ref:t.ref},n());var o=F(),r=R(o);L(r,()=>t.children??G),C(e,o),Y()}function Hr(e,t){X(t,!0);let n=m(t,"side",3,"bottom"),o=m(t,"sideOffset",3,0),r=m(t,"align",3,"center"),s=m(t,"alignOffset",3,0),i=m(t,"arrowPadding",3,0),l=m(t,"avoidCollisions",3,!0),c=m(t,"collisionBoundary",19,()=>[]),d=m(t,"collisionPadding",3,0),f=m(t,"hideWhenDetached",3,!1),g=m(t,"onPlaced",3,()=>{}),u=m(t,"sticky",3,"partial"),h=m(t,"updatePositionStrategy",3,"optimized"),p=m(t,"strategy",3,"fixed"),y=m(t,"dir",3,"ltr"),P=m(t,"style",19,()=>({})),v=m(t,"wrapperId",19,rn),b=m(t,"customAnchor",3,null),w=m(t,"tooltip",3,!1);const x=Xt.create({side:A(()=>n()),sideOffset:A(()=>o()),align:A(()=>r()),alignOffset:A(()=>s()),id:A(()=>t.id),arrowPadding:A(()=>i()),avoidCollisions:A(()=>l()),collisionBoundary:A(()=>c()),collisionPadding:A(()=>d()),hideWhenDetached:A(()=>f()),onPlaced:A(()=>g()),sticky:A(()=>u()),updatePositionStrategy:A(()=>h()),strategy:A(()=>p()),dir:A(()=>y()),style:A(()=>P()),enabled:A(()=>t.enabled),wrapperId:A(()=>v()),customAnchor:A(()=>b())},w()),T=S(()=>tt(x.wrapperProps,{style:{pointerEvents:"auto"}}));var _=F(),N=R(_);L(N,()=>t.content??G,()=>({props:x.props,wrapperProps:a(T)})),C(e,_),Y()}function Mr(e,t){X(t,!0),fo(()=>{t.onPlaced?.()});var n=F(),o=R(n);L(o,()=>t.content??G,()=>({props:{},wrapperProps:{}})),C(e,n),Y()}var Vr=new Set(["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);function kr(e,t){let n=m(t,"isStatic",3,!1),o=et(t,Vr);var r=F(),s=R(r);{var i=c=>{Mr(c,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},l=c=>{Hr(c,ft({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>o))};z(s,c=>{n()?c(i):c(l,-1)})}C(e,r)}var Wr=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip","contentPointerEvents"]),Lr=j("<!> <!>",1);function _n(e,t){X(t,!0);let n=m(t,"interactOutsideBehavior",3,"close"),o=m(t,"trapFocus",3,!0),r=m(t,"isValidEvent",3,()=>!1),s=m(t,"customAnchor",3,null),i=m(t,"isStatic",3,!1),l=m(t,"tooltip",3,!1),c=m(t,"contentPointerEvents",3,"auto"),d=et(t,Wr);const f=S(()=>t.preventScroll??!0),g=S(()=>t.strategy??(a(f)?"fixed":"absolute"));kr(e,{get isStatic(){return i()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return a(g)},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get enabled(){return t.enabled},get tooltip(){return l()},content:(h,p)=>{let y=()=>(p?.()).props,P=()=>(p?.()).wrapperProps;var v=Lr(),b=R(v);{var w=_=>{ke(_,{get preventScroll(){return a(f)}})},x=_=>{ke(_,{get preventScroll(){return a(f)}})};z(b,_=>{t.forceMount&&t.enabled?_(w):t.forceMount||_(x,1)})}var T=ot(b,2);lo(T,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return o()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(N,B)=>{let V=()=>(B?.()).props;ao(N,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(E,W)=>{co(E,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return r()},get enabled(){return t.enabled},get ref(){return t.ref},children:(I,H)=>{let k=()=>(H?.()).props;uo(I,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(K,nt)=>{var U=F(),Q=R(U);{let bt=S(()=>({props:tt(d,y(),k(),V(),{style:{pointerEvents:c()}}),wrapperProps:P()}));L(Q,()=>t.popper??G,()=>a(bt))}C(K,U)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),C(h,v)},$$slots:{content:!0}}),Y()}var zr=new Set(["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);function Kr(e,t){let n=m(t,"interactOutsideBehavior",3,"close"),o=m(t,"trapFocus",3,!0),r=m(t,"isValidEvent",3,()=>!1),s=m(t,"customAnchor",3,null),i=m(t,"isStatic",3,!1),l=et(t,zr);var c=F(),d=R(c);{var f=g=>{_n(g,ft({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return i()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return o()},get isValidEvent(){return r()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>l))};z(d,g=>{t.shouldRender&&g(f)})}C(e,c)}var Ur=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);function Xr(e,t){let n=m(t,"interactOutsideBehavior",3,"close"),o=m(t,"trapFocus",3,!0),r=m(t,"isValidEvent",3,()=>!1),s=m(t,"customAnchor",3,null),i=m(t,"isStatic",3,!1),l=et(t,Ur);_n(e,ft({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return i()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return o()},get isValidEvent(){return r()},get onFocusOutside(){return t.onFocusOutside}},()=>l,{forceMount:!0}))}var Yr=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),$e=j("<div><div><!></div></div>");function jr(e,t){const n=At();X(t,!0);let o=m(t,"id",19,()=>Ct(n)),r=m(t,"ref",15,null),s=m(t,"forceMount",3,!1),i=m(t,"side",3,"bottom"),l=m(t,"onInteractOutside",3,dt),c=m(t,"onEscapeKeydown",3,dt),d=m(t,"preventScroll",3,!1),f=et(t,Yr);const g=Ce.create({id:A(()=>o()),ref:A(()=>r(),v=>r(v)),onInteractOutside:A(()=>l()),onEscapeKeydown:A(()=>c())}),u=S(()=>tt(f,g.props));var h=F(),p=R(h);{var y=v=>{Xr(v,ft(()=>a(u),()=>g.popperProps,{get ref(){return g.opts.ref},get side(){return i()},get enabled(){return g.root.opts.open.current},get id(){return o()},get preventScroll(){return d()},forceMount:!0,get shouldRender(){return g.shouldRender},popper:(w,x)=>{let T=()=>(x?.()).props,_=()=>(x?.()).wrapperProps;const N=S(()=>tt(T(),{style:g.props.style},{style:t.style}));var B=F(),V=R(B);{var E=D=>{var I=F(),H=R(I);{let k=S(()=>({props:a(N),wrapperProps:_(),...g.snippetProps}));L(H,()=>t.child,()=>a(k))}C(D,I)},W=D=>{var I=$e();$(I,()=>({..._()}));var H=rt(I);$(H,()=>({...a(N)}));var k=rt(H);L(k,()=>t.children??G),it(H),it(I),C(D,I)};z(V,D=>{t.child?D(E):D(W,-1)})}C(w,B)},$$slots:{popper:!0}}))},P=v=>{Kr(v,ft(()=>a(u),()=>g.popperProps,{get ref(){return g.opts.ref},get side(){return i()},get open(){return g.root.opts.open.current},get id(){return o()},get preventScroll(){return d()},forceMount:!1,get shouldRender(){return g.shouldRender},popper:(w,x)=>{let T=()=>(x?.()).props,_=()=>(x?.()).wrapperProps;const N=S(()=>tt(T(),{style:g.props.style},{style:t.style}));var B=F(),V=R(B);{var E=D=>{var I=F(),H=R(I);{let k=S(()=>({props:a(N),wrapperProps:_(),...g.snippetProps}));L(H,()=>t.child,()=>a(k))}C(D,I)},W=D=>{var I=$e();$(I,()=>({..._()}));var H=rt(I);$(H,()=>({...a(N)}));var k=rt(H);L(k,()=>t.children??G),it(H),it(I),C(D,I)};z(V,D=>{t.child?D(E):D(W,-1)})}C(w,B)},$$slots:{popper:!0}}))};z(p,v=>{s()?v(y):s()||v(P,1)})}C(e,h),Y()}function Ee(e,t){X(t,!0);let n=m(t,"mounted",15,!1),o=m(t,"onMountedChange",3,dt);xo(()=>(n(!0),o()(!0),()=>{n(!1),o()(!1)})),Y()}var qr=new Set(["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]),Zr=j("<div><!></div>"),Gr=j("<!> <!>",1);function Qr(e,t){const n=At();X(t,!0);let o=m(t,"id",19,()=>Ct(n)),r=m(t,"ref",15,null),s=m(t,"label",19,()=>t.value),i=m(t,"disabled",3,!1),l=m(t,"onHighlight",3,dt),c=m(t,"onUnhighlight",3,dt),d=et(t,qr);const f=_e.create({id:A(()=>o()),ref:A(()=>r(),v=>r(v)),value:A(()=>t.value),disabled:A(()=>i()),label:A(()=>s()),onHighlight:A(()=>l()),onUnhighlight:A(()=>c())}),g=S(()=>tt(d,f.props));var u=Gr(),h=R(u);{var p=v=>{var b=F(),w=R(b);{let x=S(()=>({props:a(g),...f.snippetProps}));L(w,()=>t.child,()=>a(x))}C(v,b)},y=v=>{var b=Zr();$(b,()=>({...a(g)}));var w=rt(b);L(w,()=>t.children??G,()=>f.snippetProps),it(b),C(v,b)};z(h,v=>{t.child?v(p):v(y,-1)})}var P=ot(h,2);Ee(P,{get mounted(){return f.mounted},set mounted(v){f.mounted=v}}),C(e,u),Y()}var Jr=new Set(["$$slots","$$events","$$legacy","id","ref","children","child"]),$r=j("<div><!></div>");function ti(e,t){const n=At();X(t,!0);let o=m(t,"id",19,()=>Ct(n)),r=m(t,"ref",15,null),s=et(t,Jr);const i=Te.create({id:A(()=>o()),ref:A(()=>r(),u=>r(u))}),l=S(()=>tt(s,i.props));var c=F(),d=R(c);{var f=u=>{var h=F(),p=R(h);L(p,()=>t.child,()=>({props:a(l)})),C(u,h)},g=u=>{var h=$r();$(h,()=>({...a(l)}));var p=rt(h);L(p,()=>t.children??G),it(h),C(u,h)};z(d,u=>{t.child?u(f):u(g,-1)})}C(e,c),Y()}var ei=new Set(["$$slots","$$events","$$legacy","id","ref","delay","child","children"]),ni=j("<div><!></div>"),oi=j("<!> <!>",1);function ri(e,t){const n=At();X(t,!0);let o=m(t,"id",19,()=>Ct(n)),r=m(t,"ref",15,null),s=m(t,"delay",3,()=>50),i=et(t,ei);const l=Re.create({id:A(()=>o()),ref:A(()=>r(),u=>r(u)),delay:A(()=>s())}),c=S(()=>tt(i,l.props));var d=F(),f=R(d);{var g=u=>{var h=oi(),p=R(h);Ee(p,{get mounted(){return l.scrollButtonState.mounted},set mounted(b){l.scrollButtonState.mounted=b}});var y=ot(p,2);{var P=b=>{var w=F(),x=R(w);L(x,()=>t.child,()=>({props:i})),C(b,w)},v=b=>{var w=ni();$(w,()=>({...a(c)}));var x=rt(w);L(x,()=>t.children??G),it(w),C(b,w)};z(y,b=>{t.child?b(P):b(v,-1)})}C(u,h)};z(f,u=>{l.canScrollDown&&u(g)})}C(e,d),Y()}var ii=new Set(["$$slots","$$events","$$legacy","id","ref","delay","child","children"]),si=j("<div><!></div>"),li=j("<!> <!>",1);function ai(e,t){const n=At();X(t,!0);let o=m(t,"id",19,()=>Ct(n)),r=m(t,"ref",15,null),s=m(t,"delay",3,()=>50),i=et(t,ii);const l=Ie.create({id:A(()=>o()),ref:A(()=>r(),u=>r(u)),delay:A(()=>s())}),c=S(()=>tt(i,l.props));var d=F(),f=R(d);{var g=u=>{var h=li(),p=R(h);Ee(p,{get mounted(){return l.scrollButtonState.mounted},set mounted(b){l.scrollButtonState.mounted=b}});var y=ot(p,2);{var P=b=>{var w=F(),x=R(w);L(x,()=>t.child,()=>({props:i})),C(b,w)},v=b=>{var w=si();$(w,()=>({...a(c)}));var x=rt(w);L(x,()=>t.children??G),it(w),C(b,w)};z(y,b=>{t.child?b(P):b(v,-1)})}C(u,h)};z(f,u=>{l.canScrollUp&&u(g)})}C(e,d),Y()}var ci=j("<!> <!>",1);function di(e,t){X(t,!0);let n=m(t,"value",15),o=m(t,"onValueChange",3,dt),r=m(t,"name",3,""),s=m(t,"disabled",3,!1),i=m(t,"open",15,!1),l=m(t,"onOpenChange",3,dt),c=m(t,"onOpenChangeComplete",3,dt),d=m(t,"loop",3,!1),f=m(t,"scrollAlignment",3,"nearest"),g=m(t,"required",3,!1),u=m(t,"items",19,()=>[]),h=m(t,"allowDeselect",3,!1);function p(){n()===void 0&&n(t.type==="single"?"":[])}p(),q.pre(()=>n(),()=>{p()});let y=M("");const P=Fr.create({type:t.type,value:A(()=>n(),N=>{n(N),o()(N)}),disabled:A(()=>s()),required:A(()=>g()),open:A(()=>i(),N=>{i(N),l()(N)}),loop:A(()=>d()),scrollAlignment:A(()=>f()),name:A(()=>r()),isCombobox:!1,items:A(()=>u()),allowDeselect:A(()=>h()),inputValue:A(()=>a(y),N=>O(y,N,!0)),onOpenChangeComplete:A(()=>c())});var v=ci(),b=R(v);Cr(b,{children:(N,B)=>{var V=F(),E=R(V);L(E,()=>t.children??G),C(N,V)},$$slots:{default:!0}});var w=ot(b,2);{var x=N=>{var B=F(),V=R(B);{var E=D=>{le(D,{get autocomplete(){return t.autocomplete}})},W=D=>{var I=F(),H=R(I);nn(H,16,()=>P.opts.value.current,k=>k,(k,K)=>{le(k,{get value(){return K},get autocomplete(){return t.autocomplete}})}),C(D,I)};z(V,D=>{P.opts.value.current.length===0?D(E):D(W,-1)})}C(N,B)},T=S(()=>Array.isArray(P.opts.value.current)),_=N=>{le(N,{get autocomplete(){return t.autocomplete},get value(){return P.opts.value.current},set value(B){P.opts.value.current=B}})};z(w,N=>{a(T)?N(x):N(_,-1)})}C(e,v),Y()}var ui=new Set(["$$slots","$$events","$$legacy","ref","id","placeholder","child","children"]),hi=j("<span><!></span>");function fi(e,t){const n=At();X(t,!0);let o=m(t,"ref",15,null),r=m(t,"id",19,()=>Ct(n)),s=et(t,ui);const i=Oe.create({id:A(()=>r()),ref:A(()=>o(),u=>o(u)),placeholder:A(()=>t.placeholder)}),l=S(()=>tt(s,i.props));var c=F(),d=R(c);{var f=u=>{var h=F(),p=R(h);{let y=S(()=>({props:a(l),...i.snippetProps}));L(p,()=>t.child,()=>a(y))}C(u,h)},g=u=>{var h=hi();$(h,()=>({...a(l)}));var p=rt(h);{var y=w=>{var x=F(),T=R(x);L(T,()=>t.children??G,()=>i.snippetProps),C(w,x)},P=w=>{var x=te();Wt(()=>kt(x,i.snippetProps.selection.selected?.label??t.placeholder)),C(w,x)},v=w=>{var x=te();Wt(T=>kt(x,T),[()=>i.snippetProps.selection.selected.length>0?i.snippetProps.selection.selected.map(T=>T.label).join(", "):t.placeholder]),C(w,x)},b=w=>{var x=te();Wt(()=>kt(x,t.placeholder)),C(w,x)};z(p,w=>{t.children?w(y):i.snippetProps.selection.type==="single"?w(P,1):i.snippetProps.selection.type==="multiple"&&i.snippetProps.selection.selected?w(v,2):w(b,-1)})}it(h),C(u,h)};z(d,u=>{t.child?u(f):u(g,-1)})}C(e,c),Y()}var gi=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","type"]),pi=j("<button><!></button>");function mi(e,t){const n=At();X(t,!0);let o=m(t,"id",19,()=>Ct(n)),r=m(t,"ref",15,null),s=m(t,"type",3,"button"),i=et(t,gi);const l=Ae.create({id:A(()=>o()),ref:A(()=>r(),g=>r(g))}),c=S(()=>tt(i,l.props,{type:s()}));var d=F(),f=R(d);go(f,()=>Br,(g,u)=>{u(g,{get id(){return o()},get ref(){return l.opts.ref},children:(h,p)=>{var y=F(),P=R(y);{var v=w=>{var x=F(),T=R(x);L(T,()=>t.child,()=>({props:a(c)})),C(w,x)},b=w=>{var x=pi();$(x,()=>({...a(c)}));var T=rt(x);L(T,()=>t.children??G),it(x),C(w,x)};z(P,w=>{t.child?w(v):w(b,-1)})}C(h,y)},$$slots:{default:!0}})}),C(e,d),Y()}const vi=Object.freeze(Object.defineProperty({__proto__:null,Content:jr,Item:Qr,Portal:ho,Root:di,ScrollDownButton:ri,ScrollUpButton:ai,Trigger:mi,Value:fi,Viewport:ti},Symbol.toStringTag,{value:"Module"}));var tn=j("<!> <!>",1),wi=j('<span class="truncate"> </span> <!>',1),yi=j("<!> <!> <!>",1);function Ni(e,t){X(t,!0);const{Root:n,Trigger:o,Value:r,Portal:s,Content:i,Viewport:l,Item:c,ScrollUpButton:d,ScrollDownButton:f}=vi;let g=m(t,"value",15,""),u=m(t,"placeholder",3,"请选择"),h=m(t,"disabled",3,!1),p=m(t,"options",19,()=>[]),y=m(t,"triggerClass",3,""),P=m(t,"contentClass",3,""),v=m(t,"class",3,"");n(e,{get items(){return p()},get disabled(){return h()},type:"single",get value(){return g()},set value(b){g(b)},children:(b,w)=>{var x=tn(),T=R(x);{let N=S(()=>Be("inline-flex h-9 w-full touch-none items-center justify-between gap-2 rounded-md border border-input bg-background px-3 text-sm shadow-sm outline-none transition-colors placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[placeholder]:text-muted-foreground [&[data-state=open]>svg]:rotate-180",y(),v()));o(T,{get id(){return t.id},get"aria-label"(){return t["aria-label"]},get class(){return a(N)},children:(B,V)=>{var E=tn(),W=R(E);r(W,{get placeholder(){return u()},class:"truncate"});var D=ot(W,2);We(D,{class:"ml-auto size-4 shrink-0 opacity-50 transition-transform duration-200","aria-hidden":"true"}),C(B,E)},$$slots:{default:!0}})}var _=ot(T,2);s(_,{children:(N,B)=>{{let V=S(()=>Be("z-50 w-[var(--bits-select-anchor-width)] min-w-[var(--bits-select-anchor-width)] max-h-[var(--bits-select-content-available-height)] select-none overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",P()));i(N,{get class(){return a(V)},sideOffset:4,children:(E,W)=>{var D=yi(),I=R(D);d(I,{class:"flex w-full items-center justify-center py-0.5 text-muted-foreground","aria-label":"向上滚动",children:(K,nt)=>{vo(K,{class:"size-3.5","aria-hidden":"true"})},$$slots:{default:!0}});var H=ot(I,2);l(H,{class:"max-h-[var(--bits-select-content-available-height)] overflow-y-auto p-1",children:(K,nt)=>{var U=F(),Q=R(U);nn(Q,17,p,bt=>bt.value,(bt,Mt)=>{c(bt,{get value(){return a(Mt).value},get label(){return a(Mt).label},get disabled(){return a(Mt).disabled},class:"relative flex h-9 w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none transition-colors data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",children:(Nn,Tn)=>{let Rn=()=>(Tn?.()).selected;var De=wi(),Fe=R(De),In=Wn(Fe,!0),En=ot(Fe,2);{var Dn=$t=>{mo($t,{class:"ml-auto size-4 shrink-0","aria-hidden":"true"})};z(En,$t=>{Rn()&&$t(Dn)})}Wt(()=>kt(In,a(Mt).label)),C(Nn,De)},$$slots:{default:!0}})}),C(K,U)},$$slots:{default:!0}});var k=ot(H,2);f(k,{class:"flex w-full items-center justify-center py-0.5 text-muted-foreground","aria-label":"向下滚动",children:(K,nt)=>{We(K,{class:"size-3.5","aria-hidden":"true"})},$$slots:{default:!0}}),C(E,D)},$$slots:{default:!0}})}},$$slots:{default:!0}}),C(b,x)},$$slots:{default:!0}}),Y()}export{mo as C,Cr as F,Po as H,Xr as P,Ni as S,Kr as a,po as b,Br as c,yr as g};
@@ -0,0 +1 @@
1
+ import{c as S,a as m,p as N,f as E}from"./ywqHnl7S.js";import{k as s,g as r,a as v,p as q,c as _,h as x,e as Z,j as U,I as B,r as M}from"./DLXc3MsS.js";import{i as A,s as $,p as t,r as W}from"./B36KvkWl.js";import{k as ee,a as C,i as F,c as te}from"./C1dm7snI.js";import{C as re,f as G,E as se,S as oe,i as I,v as ie,h as ae,x as ne,g as ce,k as de,c as J,n as he,b as l,m as K}from"./u9x_yOz5.js";import{H as le}from"./CBkgBsl2.js";const L=de({component:"switch",parts:["root","thumb"]}),O=new re("Switch.Root");class j{static create(e){return O.set(new j(e))}opts;attachment;constructor(e){this.opts=e,this.attachment=G(e.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this)}#e(){this.opts.checked.current=!this.opts.checked.current}onkeydown(e){!(e.key===se||e.key===oe)||this.opts.disabled.current||(e.preventDefault(),this.#e())}onclick(e){this.opts.disabled.current||this.#e()}#t=s(()=>({"data-disabled":I(this.opts.disabled.current),"data-state":ie(this.opts.checked.current),"data-required":I(this.opts.required.current)}));get sharedProps(){return r(this.#t)}set sharedProps(e){v(this.#t,e)}#r=s(()=>({checked:this.opts.checked.current}));get snippetProps(){return r(this.#r)}set snippetProps(e){v(this.#r,e)}#s=s(()=>({...this.sharedProps,id:this.opts.id.current,role:"switch",disabled:ce(this.opts.disabled.current),"aria-checked":ne(this.opts.checked.current),"aria-required":ae(this.opts.required.current),[L.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return r(this.#s)}set props(e){v(this.#s,e)}}class z{static create(){return new z(O.get())}root;#e=s(()=>this.root.opts.name.current!==void 0);get shouldRender(){return r(this.#e)}set shouldRender(e){v(this.#e,e)}constructor(e){this.root=e}#t=s(()=>({type:"checkbox",name:this.root.opts.name.current,value:this.root.opts.value.current,checked:this.root.opts.checked.current,disabled:this.root.opts.disabled.current,required:this.root.opts.required.current}));get props(){return r(this.#t)}set props(e){v(this.#t,e)}}class D{static create(e){return new D(e,O.get())}opts;root;attachment;constructor(e,n){this.opts=e,this.root=n,this.attachment=G(e.ref)}#e=s(()=>({checked:this.root.opts.checked.current}));get snippetProps(){return r(this.#e)}set snippetProps(e){v(this.#e,e)}#t=s(()=>({...this.root.sharedProps,id:this.opts.id.current,[L.thumb]:"",...this.attachment}));get props(){return r(this.#t)}set props(e){v(this.#t,e)}}function ue(p,e){q(e,!1);const n=z.create();ee();var c=S(),u=_(c);{var f=o=>{le(o,$(()=>n.props))};A(u,o=>{n.shouldRender&&o(f)})}m(p,c),x()}var pe=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","disabled","required","checked","value","name","type","onCheckedChange"]),fe=E("<button><!></button>"),be=E("<!> <!>",1);function ge(p,e){const n=N();q(e,!0);let c=t(e,"ref",15,null),u=t(e,"id",19,()=>J(n)),f=t(e,"disabled",3,!1),o=t(e,"required",3,!1),b=t(e,"checked",15,!1),h=t(e,"value",3,"on"),g=t(e,"name",3,void 0),P=t(e,"type",3,"button"),R=t(e,"onCheckedChange",3,he),d=W(e,pe);const i=j.create({checked:l(()=>b(),a=>{b(a),R()?.(a)}),disabled:l(()=>f()??!1),required:l(()=>o()),value:l(()=>h()),name:l(()=>g()),id:l(()=>u()),ref:l(()=>c(),a=>c(a))}),w=s(()=>K(d,i.props,{type:P()}));var y=be(),H=_(y);{var Q=a=>{var k=S(),T=_(k);{let Y=s(()=>({props:r(w),...i.snippetProps}));C(T,()=>e.child,()=>r(Y))}m(a,k)},V=a=>{var k=fe();F(k,()=>({...r(w)}));var T=U(k);C(T,()=>e.children??B,()=>i.snippetProps),M(k),m(a,k)};A(H,a=>{e.child?a(Q):a(V,-1)})}var X=Z(H,2);ue(X,{}),m(p,y),x()}var ke=new Set(["$$slots","$$events","$$legacy","child","children","ref","id"]),me=E("<span><!></span>");function ve(p,e){const n=N();q(e,!0);let c=t(e,"ref",15,null),u=t(e,"id",19,()=>J(n)),f=W(e,ke);const o=D.create({id:l(()=>u()),ref:l(()=>c(),d=>c(d))}),b=s(()=>K(f,o.props));var h=S(),g=_(h);{var P=d=>{var i=S(),w=_(i);{let y=s(()=>({props:r(b),...o.snippetProps}));C(w,()=>e.child,()=>r(y))}m(d,i)},R=d=>{var i=me();F(i,()=>({...r(b)}));var w=U(i);C(w,()=>e.children??B,()=>o.snippetProps),M(i),m(d,i)};A(g,d=>{e.child?d(P):d(R,-1)})}m(p,h),x()}const we=Object.freeze(Object.defineProperty({__proto__:null,Root:ge,Thumb:ve},Symbol.toStringTag,{value:"Module"}));function xe(p,e){q(e,!0);const{Root:n,Thumb:c}=we;let u=t(e,"checked",15,!1),f=t(e,"disabled",3,!1),o=t(e,"class",3,"");function b(h){e.onCheckedChange?.(h),u(h)}{let h=s(()=>te("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",o()));n(p,{get checked(){return u()},onCheckedChange:b,get disabled(){return f()},get id(){return e.id},get"aria-label"(){return e["aria-label"]},onclick:g=>e.onclick?.(g),get class(){return r(h)},children:(g,P)=>{c(g,{class:"pointer-events-none block size-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"})},$$slots:{default:!0}})}x()}export{xe as S};
@@ -0,0 +1 @@
1
+ import{o as v,X as y,v as o,Y as f,Z as l,_ as m,y as p,x as i,a0 as T,z as A}from"./DLXc3MsS.js";import{B as R}from"./B36KvkWl.js";function E(_,d,e){var s;o&&(s=A,f());var r=new R(_);v(()=>{var a=d()??null;if(o){var h=l(s),c=h===T,u=a!==null;if(c!==u){var t=m();p(t),r.anchor=t,i(!1),r.ensure(a,a&&(n=>e(n,a))),i(!0);return}}r.ensure(a,a&&(n=>e(n,a)))},y)}export{E as c};
@@ -0,0 +1 @@
1
+ import{a1 as e,b as l,R as t,a2 as u,P as a}from"./DLXc3MsS.js";function c(n){t===null&&e(),u&&t.l!==null?s(t).m.push(n):l(()=>{const o=a(n);if(typeof o=="function")return o})}function i(n){t===null&&e(),c(()=>()=>a(n))}function s(n){var o=n.l;return o.u??={a:[],b:[],m:[]}}export{i as a,c as o};