studiograph 1.3.44-next.21 → 1.3.44-next.22

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 (60) hide show
  1. package/dist/web/_app/immutable/assets/4.DmUyP6Fd.css +1 -0
  2. package/dist/web/_app/immutable/chunks/{BdNoKWAr.js → 8UsN6C_9.js} +2 -2
  3. package/dist/web/_app/immutable/chunks/{csGnu8Rb.js → B0ZATUxd.js} +1 -1
  4. package/dist/web/_app/immutable/chunks/{B1c_qzmY.js → B0qTqRR8.js} +1 -1
  5. package/dist/web/_app/immutable/chunks/{DO03XMS-.js → B17cx9Sm.js} +1 -1
  6. package/dist/web/_app/immutable/chunks/{DIBaaeCL.js → BSBiehHY.js} +1 -1
  7. package/dist/web/_app/immutable/chunks/{BzjUB_Ym.js → BSt89bHX.js} +1 -1
  8. package/dist/web/_app/immutable/chunks/{CwnWYvfz.js → BasUgd5N.js} +1 -1
  9. package/dist/web/_app/immutable/chunks/Bb97mH6k.js +1 -0
  10. package/dist/web/_app/immutable/chunks/{CCA2E2CK.js → BenpwI6m.js} +1 -1
  11. package/dist/web/_app/immutable/chunks/{BgRr0V7g.js → BjAmYrTY.js} +1 -1
  12. package/dist/web/_app/immutable/chunks/{Ca2kuiZq.js → BkWC08CS.js} +1 -1
  13. package/dist/web/_app/immutable/chunks/{BN6gr1HX.js → BpU6v9ju.js} +1 -1
  14. package/dist/web/_app/immutable/chunks/{C1S8fyYX.js → C8L8BVLn.js} +1 -1
  15. package/dist/web/_app/immutable/chunks/{BVhp5b7F.js → CDFdgZ9U.js} +1 -1
  16. package/dist/web/_app/immutable/chunks/{y7AXCX7T.js → CHKD7YEV.js} +1 -1
  17. package/dist/web/_app/immutable/chunks/{Dgs7g6Xf.js → CLw5zKi0.js} +1 -1
  18. package/dist/web/_app/immutable/chunks/{usxM-xOh.js → COik51fd.js} +1 -1
  19. package/dist/web/_app/immutable/chunks/{DkuxRPZv.js → CStpN6HQ.js} +1 -1
  20. package/dist/web/_app/immutable/chunks/CX_fJaNF.js +1 -0
  21. package/dist/web/_app/immutable/chunks/{NuvuAeCX.js → CbwDFpOn.js} +1 -1
  22. package/dist/web/_app/immutable/chunks/{BKHfe9E-.js → CieeblIr.js} +1 -1
  23. package/dist/web/_app/immutable/chunks/{pQmxOXKv.js → CyzLSh3b.js} +1 -1
  24. package/dist/web/_app/immutable/chunks/{D8mTIH9Y.js → DAD7hf2c.js} +1 -1
  25. package/dist/web/_app/immutable/chunks/{CwUXqlAx.js → DC1nGnOD.js} +1 -1
  26. package/dist/web/_app/immutable/chunks/{DD3_vCgV.js → DN_2uSjw.js} +1 -1
  27. package/dist/web/_app/immutable/chunks/{D-H9HeD_.js → DQMIm5QM.js} +1 -1
  28. package/dist/web/_app/immutable/chunks/DQmnydAv.js +1 -0
  29. package/dist/web/_app/immutable/chunks/{DeyUjeaz.js → DXG2Amuv.js} +1 -1
  30. package/dist/web/_app/immutable/chunks/DkilSMcP.js +5 -0
  31. package/dist/web/_app/immutable/chunks/{DYLAPjKD.js → DkyV2KO_.js} +1 -1
  32. package/dist/web/_app/immutable/chunks/{BZ2Q53D5.js → DtsqpIgr.js} +1 -1
  33. package/dist/web/_app/immutable/chunks/{yUs562n0.js → Dvv4bkXH.js} +1 -1
  34. package/dist/web/_app/immutable/chunks/{C74mA5aC.js → DwG0Us6L.js} +1 -1
  35. package/dist/web/_app/immutable/chunks/{BpdrS9kL.js → h2NtTN7K.js} +1 -1
  36. package/dist/web/_app/immutable/chunks/{DLZAjAct.js → owhS8Kw_.js} +1 -1
  37. package/dist/web/_app/immutable/chunks/{DHholpIc.js → wWaI7EIw.js} +1 -1
  38. package/dist/web/_app/immutable/entry/{app.Ci1ytk_v.js → app.P9fZnT2H.js} +2 -2
  39. package/dist/web/_app/immutable/entry/start.3icSJXAT.js +1 -0
  40. package/dist/web/_app/immutable/nodes/{0.D4NmzO9T.js → 0.CVyp8Weq.js} +2 -2
  41. package/dist/web/_app/immutable/nodes/{1.B49NrV3g.js → 1.D0ieSX42.js} +1 -1
  42. package/dist/web/_app/immutable/nodes/{10.OXZpT8w9.js → 10.BztGpIjH.js} +1 -1
  43. package/dist/web/_app/immutable/nodes/{2.DaqdIYKU.js → 2.A3XRWhSS.js} +4 -4
  44. package/dist/web/_app/immutable/nodes/{3.Q_RC4D9P.js → 3.BMJr7eMn.js} +1 -1
  45. package/dist/web/_app/immutable/nodes/4.BxRa93xW.js +11 -0
  46. package/dist/web/_app/immutable/nodes/{5.U-zEu0Mw.js → 5.DsNIqnP-.js} +1 -1
  47. package/dist/web/_app/immutable/nodes/{6.SYsyu9GD.js → 6.CdyHSIBU.js} +1 -1
  48. package/dist/web/_app/immutable/nodes/{7.BLgQGI-C.js → 7.CzTJCYrr.js} +1 -1
  49. package/dist/web/_app/immutable/nodes/{8.67Laxdj-.js → 8.B0HR7AjL.js} +1 -1
  50. package/dist/web/_app/immutable/nodes/{9.D0aRCiZD.js → 9.J6ycTHny.js} +1 -1
  51. package/dist/web/_app/version.json +1 -1
  52. package/dist/web/index.html +11 -11
  53. package/package.json +1 -1
  54. package/dist/web/_app/immutable/assets/4.B3dbj90y.css +0 -1
  55. package/dist/web/_app/immutable/chunks/1BE_eYuA.js +0 -1
  56. package/dist/web/_app/immutable/chunks/Mtmwulo1.js +0 -1
  57. package/dist/web/_app/immutable/chunks/e8QVPHqJ.js +0 -5
  58. package/dist/web/_app/immutable/chunks/oz3vOf3Y.js +0 -1
  59. package/dist/web/_app/immutable/entry/start.DNk71wbw.js +0 -1
  60. package/dist/web/_app/immutable/nodes/4.CIDSQYhF.js +0 -11
@@ -0,0 +1,5 @@
1
+ import{l as Qn,o as V,c as M,a as C,p as Ht,b as ct,m as io,u as so}from"./COik51fd.js";import{aM as ao,j as co,q as uo,bx as lo,i as fo,e as T,by as Pn,N as ho,g as l,s as y,aZ as Zt,a4 as x,f as Bt,aX as go,a1 as Tn,aW as po,a6 as mo,a2 as Z,a7 as Ve,aE as vo,p as k,a0 as P,b as N,ae as L,c as St,r as At,bz as yo,bA as $n,a3 as ge,aD as bo}from"./BenpwI6m.js";import{s as D,a as Ot}from"./CStpN6HQ.js";import{p as v,r as W,s as J}from"./wWaI7EIw.js";import{B as wo,i as nt,b as tr}from"./Dvv4bkXH.js";import{c as Et}from"./CbwDFpOn.js";import{c as Ct,a as er}from"./DAD7hf2c.js";import{b as Be}from"./CieeblIr.js";function xo(){return Symbol(ao)}const So=Symbol("NaN");function Ao(e,t,n){co&&uo();var r=new wo(e),o=!lo();fo(()=>{var s=t();s!==s&&(s=So),o&&s!==null&&typeof s=="object"&&(s={}),r.ensure(s,n)})}class Oo extends Map{#t=new Map;#e=T(0);#n=T(0);#r=Pn||-1;constructor(t){if(super(),t){for(var[n,r]of t)super.set(n,r);this.#n.v=super.size}}#o(t){return Pn===this.#r?T(t):ho(t)}has(t){var n=this.#t,r=n.get(t);if(r===void 0)if(super.has(t))r=this.#o(0),n.set(t,r);else return l(this.#e),!1;return l(r),!0}forEach(t,n){this.#i(),super.forEach(t,n)}get(t){var n=this.#t,r=n.get(t);if(r===void 0)if(super.has(t))r=this.#o(0),n.set(t,r);else{l(this.#e);return}return l(r),super.get(t)}set(t,n){var r=this.#t,o=r.get(t),s=super.get(t),i=super.set(t,n),a=this.#e;if(o===void 0)o=this.#o(0),r.set(t,o),y(this.#n,super.size),Zt(a);else if(s!==n){Zt(o);var c=a.reactions===null?null:new Set(a.reactions),u=c===null||!o.reactions?.every(h=>c.has(h));u&&Zt(a)}return i}delete(t){var n=this.#t,r=n.get(t),o=super.delete(t);return r!==void 0&&(n.delete(t),y(r,-1)),o&&(y(this.#n,super.size),Zt(this.#e)),o}clear(){if(super.size!==0){super.clear();var t=this.#t;y(this.#n,0);for(var n of t.values())y(n,-1);Zt(this.#e),t.clear()}}#i(){l(this.#e);var t=this.#t;if(this.#n.v!==t.size){for(var n of super.keys())if(!t.has(n)){var r=this.#o(0);t.set(n,r)}}for([,r]of this.#t)l(r)}keys(){return l(this.#e),super.keys()}values(){return this.#i(),super.values()}entries(){return this.#i(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return l(this.#n),super.size}}function Eo(e){return typeof e=="function"}function oe(e){return e!==null&&typeof e=="object"}const Co=["string","number","bigint","boolean"];function ze(e){return e==null||Co.includes(typeof e)?!0:Array.isArray(e)?e.every(t=>ze(t)):typeof e=="object"?Object.getPrototypeOf(e)===Object.prototype:!1}const Wt=Symbol("box"),Me=Symbol("is-writable");function w(e,t){const n=x(e);return t?{[Wt]:!0,[Me]:!0,get current(){return l(n)},set current(r){t(r)}}:{[Wt]:!0,get current(){return e()}}}function ie(e){return oe(e)&&Wt in e}function Je(e){return ie(e)&&Me in e}function nr(e){return ie(e)?e:Eo(e)?w(e):ut(e)}function Po(e){return Object.entries(e).reduce((t,[n,r])=>ie(r)?(Je(r)?Object.defineProperty(t,n,{get(){return r.current},set(o){r.current=o}}):Object.defineProperty(t,n,{get(){return r.current}}),t):Object.assign(t,{[n]:r}),{})}function To(e){return Je(e)?{[Wt]:!0,get current(){return e.current}}:e}function ut(e){let t=T(Bt(e));return{[Wt]:!0,[Me]:!0,get current(){return l(t)},set current(n){y(t,n,!0)}}}function Dt(e){let t=T(Bt(e));return{[Wt]:!0,[Me]:!0,get current(){return l(t)},set current(n){y(t,n,!0)}}}Dt.from=nr;Dt.with=w;Dt.flatten=Po;Dt.readonly=To;Dt.isBox=ie;Dt.isWritableBox=Je;function rr(...e){return function(t){for(const n of e)if(n){if(t.defaultPrevented)return;typeof n=="function"?n.call(this,t):n.current?.call(this,t)}}}var Mn=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Mo=/\n/g,Fo=/^\s*/,Io=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ro=/^:\s*/,ko=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,No=/^[;\s]*/,Do=/^\s+|\s+$/g,_o=`
2
+ `,Fn="/",In="*",It="",Bo="comment",Lo="declaration";function Wo(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(g){var p=g.match(Mo);p&&(n+=p.length);var b=g.lastIndexOf(_o);r=~b?g.length-b:r+g.length}function s(){var g={line:n,column:r};return function(p){return p.position=new i(g),u(),p}}function i(g){this.start=g,this.end={line:n,column:r},this.source=t.source}i.prototype.content=e;function a(g){var p=new Error(t.source+":"+n+":"+r+": "+g);if(p.reason=g,p.filename=t.source,p.line=n,p.column=r,p.source=e,!t.silent)throw p}function c(g){var p=g.exec(e);if(p){var b=p[0];return o(b),e=e.slice(b.length),p}}function u(){c(Fo)}function h(g){var p;for(g=g||[];p=d();)p!==!1&&g.push(p);return g}function d(){var g=s();if(!(Fn!=e.charAt(0)||In!=e.charAt(1))){for(var p=2;It!=e.charAt(p)&&(In!=e.charAt(p)||Fn!=e.charAt(p+1));)++p;if(p+=2,It===e.charAt(p-1))return a("End of comment missing");var b=e.slice(2,p-2);return r+=2,o(b),e=e.slice(p),r+=2,g({type:Bo,comment:b})}}function m(){var g=s(),p=c(Io);if(p){if(d(),!c(Ro))return a("property missing ':'");var b=c(ko),S=g({type:Lo,property:Rn(p[0].replace(Mn,It)),value:b?Rn(b[0].replace(Mn,It)):It});return c(No),S}}function f(){var g=[];h(g);for(var p;p=m();)p!==!1&&(g.push(p),h(g));return g}return u(),f()}function Rn(e){return e?e.replace(Do,It):It}function Ko(e,t){let n=null;if(!e||typeof e!="string")return n;const r=Wo(e),o=typeof t=="function";return r.forEach(s=>{if(s.type!=="declaration")return;const{property:i,value:a}=s;o?t(i,a,s):a&&(n=n||{},n[i]=a)}),n}const Vo=/\d/,zo=["-","_","/","."];function Ho(e=""){if(!Vo.test(e))return e!==e.toLowerCase()}function jo(e){const t=[];let n="",r,o;for(const s of e){const i=zo.includes(s);if(i===!0){t.push(n),n="",r=void 0;continue}const a=Ho(s);if(o===!1){if(r===!1&&a===!0){t.push(n),n=s,r=a;continue}if(r===!0&&a===!1&&n.length>1){const c=n.at(-1);t.push(n.slice(0,Math.max(0,n.length-1))),n=c+s,r=a;continue}}n+=s,r=a,o=i}return t.push(n),t}function or(e){return e?jo(e).map(t=>Go(t)).join(""):""}function Uo(e){return Yo(or(e||""))}function Go(e){return e?e[0].toUpperCase()+e.slice(1):""}function Yo(e){return e?e[0].toLowerCase()+e.slice(1):""}function te(e){if(!e)return{};const t={};function n(r,o){if(r.startsWith("-moz-")||r.startsWith("-webkit-")||r.startsWith("-ms-")||r.startsWith("-o-")){t[or(r)]=o;return}if(r.startsWith("--")){t[r]=o;return}t[Uo(r)]=o}return Ko(e,n),t}function Rt(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}function Xo(e,t){const n=RegExp(e,"g");return r=>{if(typeof r!="string")throw new TypeError(`expected an argument of type string, but got ${typeof r}`);return r.match(n)?r.replace(n,t):r}}const qo=Xo(/[A-Z]/,e=>`-${e.toLowerCase()}`);function Zo(e){if(!e||typeof e!="object"||Array.isArray(e))throw new TypeError(`expected an argument of type object, but got ${typeof e}`);return Object.keys(e).map(t=>`${qo(t)}: ${e[t]};`).join(`
3
+ `)}function ir(e={}){return Zo(e).replace(`
4
+ `," ")}const Jo=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],Qo=new Set(Jo);function $o(e){return Qo.has(e)}function tt(...e){const t={...e[0]};for(let n=1;n<e.length;n++){const r=e[n];if(r){for(const o of Object.keys(r)){const s=t[o],i=r[o],a=typeof s=="function",c=typeof i=="function";if(a&&$o(o)){const u=s,h=i;t[o]=rr(u,h)}else if(a&&c)t[o]=Rt(s,i);else if(o==="class"){const u=ze(s),h=ze(i);u&&h?t[o]=Be(s,i):u?t[o]=Be(s):h&&(t[o]=Be(i))}else if(o==="style"){const u=typeof s=="object",h=typeof i=="object",d=typeof s=="string",m=typeof i=="string";if(u&&h)t[o]={...s,...i};else if(u&&m){const f=te(i);t[o]={...s,...f}}else if(d&&h){const f=te(s);t[o]={...f,...i}}else if(d&&m){const f=te(s),g=te(i);t[o]={...f,...g}}else u?t[o]=s:h?t[o]=i:d?t[o]=s:m&&(t[o]=i)}else t[o]=i!==void 0?i:s}for(const o of Object.getOwnPropertySymbols(r)){const s=t[o],i=r[o];t[o]=i!==void 0?i:s}}}return typeof t.style=="object"&&(t.style=ir(t.style).replaceAll(`
5
+ `," ")),t.hidden===!1&&(t.hidden=void 0,delete t.hidden),t.disabled===!1&&(t.disabled=void 0,delete t.disabled),t}const sr=typeof window<"u"?window:void 0;function ti(e){let t=e.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}class ei{#t;#e;constructor(t={}){const{window:n=sr,document:r=n?.document}=t;n!==void 0&&(this.#t=r,this.#e=Qn(o=>{const s=V(n,"focusin",o),i=V(n,"focusout",o);return()=>{s(),i()}}))}get current(){return this.#e?.(),this.#t?ti(this.#t):null}}new ei;function ni(e){return typeof e=="function"}class Pt{#t;#e;constructor(t){this.#t=t,this.#e=Symbol(t)}get key(){return this.#e}exists(){return go(this.#e)}get(){const t=Tn(this.#e);if(t===void 0)throw new Error(`Context "${this.#t}" not found`);return t}getOr(t){const n=Tn(this.#e);return n===void 0?t:n}set(t){return po(this.#e,t)}}function ri(e,t){switch(e){case"post":Z(t);break;case"pre":mo(t);break}}function ar(e,t,n,r={}){const{lazy:o=!1}=r;let s=!o,i=Array.isArray(e)?[]:void 0;ri(t,()=>{const a=Array.isArray(e)?e.map(u=>u()):e();if(!s){s=!0,i=a;return}const c=Ve(()=>n(a,i));return i=a,c})}function H(e,t,n){ar(e,"post",t,n)}function oi(e,t,n){ar(e,"pre",t,n)}H.pre=oi;function kn(e){return ni(e)?e():e}class ii{#t={width:0,height:0};#e=!1;#n;#r;#o;#i=x(()=>(l(this.#s)?.(),this.getSize().width));#a=x(()=>(l(this.#s)?.(),this.getSize().height));#s=x(()=>{const t=kn(this.#r);if(t)return Qn(n=>{if(!this.#o)return;const r=new this.#o.ResizeObserver(o=>{this.#e=!0;for(const s of o){const i=this.#n.box==="content-box"?s.contentBoxSize:s.borderBoxSize,a=Array.isArray(i)?i:[i];this.#t.width=a.reduce((c,u)=>Math.max(c,u.inlineSize),0),this.#t.height=a.reduce((c,u)=>Math.max(c,u.blockSize),0)}n()});return r.observe(t),()=>{this.#e=!1,r.disconnect()}})});constructor(t,n={box:"border-box"}){this.#o=n.window??sr,this.#n=n,this.#r=t,this.#t={width:0,height:0}}calculateSize(){const t=kn(this.#r);if(!t||!this.#o)return;const n=t.offsetWidth,r=t.offsetHeight;if(this.#n.box==="border-box")return{width:n,height:r};const o=this.#o.getComputedStyle(t),s=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),i=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),a=parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),c=parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),u=n-s-a,h=r-i-c;return{width:u,height:h}}getSize(){return this.#e?this.#t:this.calculateSize()??this.#t}get current(){return l(this.#s)?.(),this.getSize()}get width(){return l(this.#i)}get height(){return l(this.#a)}}function _t(e){Z(()=>()=>{e()})}function cr(e,t){return setTimeout(t,e)}function lt(e){vo().then(e)}const si=1,ai=9,ci=11;function He(e){return oe(e)&&e.nodeType===si&&typeof e.nodeName=="string"}function ur(e){return oe(e)&&e.nodeType===ai}function ui(e){return oe(e)&&e.constructor?.name==="VisualViewport"}function li(e){return oe(e)&&e.nodeType!==void 0}function lr(e){return li(e)&&e.nodeType===ci&&"host"in e}function di(e,t){if(!e||!t||!He(e)||!He(t))return!1;const n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&lr(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function se(e){return ur(e)?e:ui(e)?e.document:e?.ownerDocument??document}function Qe(e){return lr(e)?Qe(e.host):ur(e)?e.defaultView??window:He(e)?e.ownerDocument?.defaultView??window:window}function fi(e){let t=e.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}class $e{element;#t=x(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return l(this.#t)}set root(t){y(this.#t,t)}constructor(t){typeof t=="function"?this.element=w(t):this.element=t}getDocument=()=>se(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>fi(this.root);isActiveElement=t=>t===this.getActiveElement();getElementById(t){return this.root.getElementById(t)}querySelector=t=>this.root?this.root.querySelector(t):null;querySelectorAll=t=>this.root?this.root.querySelectorAll(t):[];setTimeout=(t,n)=>this.getWindow().setTimeout(t,n);clearTimeout=t=>this.getWindow().clearTimeout(t)}function Q(e,t){return{[xo()]:n=>ie(e)?(e.current=n,Ve(()=>t?.(n)),()=>{"isConnected"in n&&n.isConnected||(e.current=null,t?.(null))}):(e(n),Ve(()=>t?.(n)),()=>{"isConnected"in n&&n.isConnected||(e(null),t?.(null))})}}function tn(e){return e?"true":"false"}function Kt(e){return e?"":void 0}function fc(e){return e?!0:void 0}function Fe(e){return e?"open":"closed"}function hc(e,t){return t?"mixed":e?"true":"false"}class hi{#t;#e;attrs;constructor(t){this.#t=t.getVariant?t.getVariant():null,this.#e=this.#t?`data-${this.#t}-`:`data-${t.component}-`,this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(t.parts.map(n=>[n,this.getAttr(n)]))}getAttr(t,n){return n?`data-${n}-${t}`:`${this.#e}${t}`}selector(t,n){return`[${this.getAttr(t,n)}]`}}function dr(e){const t=new hi(e);return{...t.attrs,selector:t.selector,getAttr:t.getAttr}}const ne="ArrowDown",ae="ArrowLeft",ce="ArrowRight",pe="ArrowUp",fr="End",Ie="Enter",gi="Escape",hr="Home",pi="PageDown",mi="PageUp",jt=" ",vi="Tab";function yi(e){return window.getComputedStyle(e).getPropertyValue("direction")}function bi(e="ltr",t="horizontal"){return{horizontal:e==="rtl"?ae:ce,vertical:ne}[t]}function wi(e="ltr",t="horizontal"){return{horizontal:e==="rtl"?ce:ae,vertical:pe}[t]}function xi(e="ltr",t="horizontal"){return["ltr","rtl"].includes(e)||(e="ltr"),["horizontal","vertical"].includes(t)||(t="horizontal"),{nextKey:bi(e,t),prevKey:wi(e,t)}}const gr=typeof document<"u",Nn=Si();function Si(){return gr&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function ht(e){return e instanceof HTMLElement}function je(e){return e instanceof Element}function pr(e){return e instanceof Element||e instanceof SVGElement}function gc(e){return e.pointerType==="touch"}function Ai(e){return e!==null}function Oi(e){return e instanceof HTMLInputElement&&"select"in e}class Ei{#t;#e=Dt(null);constructor(t){this.#t=t}getCandidateNodes(){return this.#t.rootNode.current?this.#t.candidateSelector?Array.from(this.#t.rootNode.current.querySelectorAll(this.#t.candidateSelector)):this.#t.candidateAttr?Array.from(this.#t.rootNode.current.querySelectorAll(`[${this.#t.candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){const t=this.getCandidateNodes();t.length&&t[0]?.focus()}handleKeydown(t,n,r=!1){const o=this.#t.rootNode.current;if(!o||!t)return;const s=this.getCandidateNodes();if(!s.length)return;const i=s.indexOf(t),a=yi(o),{nextKey:c,prevKey:u}=xi(a,this.#t.orientation.current),h=this.#t.loop.current,d={[c]:i+1,[u]:i-1,[hr]:0,[fr]:s.length-1};if(r){const g=c===ne?ce:ne,p=u===pe?ae:pe;d[g]=i+1,d[p]=i-1}let m=d[n.key];if(m===void 0)return;n.preventDefault(),m<0&&h?m=s.length-1:m===s.length&&h&&(m=0);const f=s[m];if(f)return f.focus(),this.#e.current=f.id,this.#t.onCandidateFocus?.(f),f}getTabIndex(t){const n=this.getCandidateNodes(),r=this.#e.current!==null;return t&&!r&&n[0]===t?(this.#e.current=t.id,0):t?.id===this.#e.current?0:-1}setCurrentTabStopId(t){this.#e.current=t}focusCurrentTabStop(){const t=this.#e.current;if(!t)return;const n=this.#t.rootNode.current?.querySelector(`#${t}`);!n||!ht(n)||n.focus()}}class Ci{#t;#e=null;constructor(t){this.#t=t,_t(()=>this.#n())}#n(){this.#e&&(window.cancelAnimationFrame(this.#e),this.#e=null)}run(t){this.#n();const n=this.#t.ref.current;if(n){if(typeof n.getAnimations!="function"){this.#r(t);return}this.#e=window.requestAnimationFrame(()=>{const r=n.getAnimations();if(r.length===0){this.#r(t);return}Promise.allSettled(r.map(o=>o.finished)).then(()=>{this.#r(t)})})}}#r(t){const n=()=>{t()};this.#t.afterTick?lt(n):n()}}class Ue{#t;#e;#n;#r=T(!1);constructor(t){this.#t=t,y(this.#r,t.open.current,!0),this.#e=t.enabled??!0,this.#n=new Ci({ref:this.#t.ref,afterTick:this.#t.open}),H(()=>this.#t.open.current,n=>{n&&y(this.#r,!0),this.#e&&this.#n.run(()=>{n===this.#t.open.current&&(this.#t.open.current||y(this.#r,!1),this.#t.onComplete?.())})})}get shouldRender(){return l(this.#r)}}function B(){}function Ut(e,t){return`bits-${e}`}const Pi=dr({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),mt=new Pt("Dialog.Root | AlertDialog.Root");class en{static create(t){const n=mt.getOr(null);return mt.set(new en(t,n))}opts;#t=T(null);get triggerNode(){return l(this.#t)}set triggerNode(t){y(this.#t,t,!0)}#e=T(null);get contentNode(){return l(this.#e)}set contentNode(t){y(this.#e,t,!0)}#n=T(null);get overlayNode(){return l(this.#n)}set overlayNode(t){y(this.#n,t,!0)}#r=T(null);get descriptionNode(){return l(this.#r)}set descriptionNode(t){y(this.#r,t,!0)}#o=T(void 0);get contentId(){return l(this.#o)}set contentId(t){y(this.#o,t,!0)}#i=T(void 0);get titleId(){return l(this.#i)}set titleId(t){y(this.#i,t,!0)}#a=T(void 0);get triggerId(){return l(this.#a)}set triggerId(t){y(this.#a,t,!0)}#s=T(void 0);get descriptionId(){return l(this.#s)}set descriptionId(t){y(this.#s,t,!0)}#c=T(null);get cancelNode(){return l(this.#c)}set cancelNode(t){y(this.#c,t,!0)}#l=T(0);get nestedOpenCount(){return l(this.#l)}set nestedOpenCount(t){y(this.#l,t,!0)}depth;parent;contentPresence;overlayPresence;constructor(t,n){this.opts=t,this.parent=n,this.depth=n?n.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Ue({ref:w(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Ue({ref:w(()=>this.overlayNode),open:this.opts.open,enabled:!0}),H(()=>this.opts.open.current,r=>{this.parent&&(r?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),_t(()=>{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=>Pi.getAttr(t,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#u=x(()=>({"data-state":Fe(this.opts.open.current)}));get sharedProps(){return l(this.#u)}set sharedProps(t){y(this.#u,t)}}class mr{static create(t){return new mr(t,mt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Q(this.opts.ref),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===jt||t.key===Ie)&&(t.preventDefault(),this.root.handleClose())}#t=x(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return l(this.#t)}set props(t){y(this.#t,t)}}class nn{static create(t){return new nn(t,mt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Q(this.opts.ref)}#t=x(()=>({id:this.opts.id.current,[this.root.getBitsAttr("action")]:"",...this.root.sharedProps,...this.attachment}));get props(){return l(this.#t)}set props(t){y(this.#t,t)}}class rn{static create(t){return new rn(t,mt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.root.titleId=this.opts.id.current,this.attachment=Q(this.opts.ref),H.pre(()=>this.opts.id.current,r=>{this.root.titleId=r})}#t=x(()=>({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 l(this.#t)}set props(t){y(this.#t,t)}}class on{static create(t){return new on(t,mt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.root.descriptionId=this.opts.id.current,this.attachment=Q(this.opts.ref,r=>{this.root.descriptionNode=r}),H.pre(()=>this.opts.id.current,r=>{this.root.descriptionId=r})}#t=x(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment}));get props(){return l(this.#t)}set props(t){y(this.#t,t)}}class sn{static create(t){return new sn(t,mt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Q(this.opts.ref,r=>{this.root.contentNode=r,this.root.contentId=r?.id})}#t=x(()=>({open:this.root.opts.open.current}));get snippetProps(){return l(this.#t)}set snippetProps(t){y(this.#t,t)}#e=x(()=>({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":Kt(this.root.nestedOpenCount>0),"data-nested":Kt(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return l(this.#e)}set props(t){y(this.#e,t)}get shouldRender(){return this.root.contentPresence.shouldRender}}class an{static create(t){return new an(t,mt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Q(this.opts.ref,r=>this.root.overlayNode=r)}#t=x(()=>({open:this.root.opts.open.current}));get snippetProps(){return l(this.#t)}set snippetProps(t){y(this.#t,t)}#e=x(()=>({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":Kt(this.root.nestedOpenCount>0),"data-nested":Kt(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return l(this.#e)}set props(t){y(this.#e,t)}get shouldRender(){return this.root.overlayPresence.shouldRender}}class cn{static create(t){return new cn(t,mt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Q(this.opts.ref,r=>this.root.cancelNode=r),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===jt||t.key===Ie)&&(t.preventDefault(),this.root.handleClose())}#t=x(()=>({id:this.opts.id.current,[this.root.getBitsAttr("cancel")]:"",onclick:this.onclick,onkeydown:this.onkeydown,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return l(this.#t)}set props(t){y(this.#t,t)}}function Ti(e,t){k(t,!0);let n=v(t,"open",15,!1),r=v(t,"onOpenChange",3,B),o=v(t,"onOpenChangeComplete",3,B);en.create({variant:w(()=>"alert-dialog"),open:w(()=>n(),a=>{n(a),r()(a)}),onOpenChangeComplete:w(()=>o())});var s=M(),i=P(s);D(i,()=>t.children??L),C(e,s),N()}var Mi=ct("<div><!></div>");function Fi(e,t){const n=Ht();k(t,!0);let r=v(t,"id",19,()=>Ut(n)),o=v(t,"ref",15,null),s=v(t,"level",3,2),i=W(t,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const a=rn.create({id:w(()=>r()),level:w(()=>s()),ref:w(()=>o(),f=>o(f))}),c=x(()=>tt(i,a.props));var u=M(),h=P(u);{var d=f=>{var g=M(),p=P(g);D(p,()=>t.child,()=>({props:l(c)})),C(f,g)},m=f=>{var g=Mi();Ot(g,()=>({...l(c)}));var p=St(g);D(p,()=>t.children??L),At(g),C(f,g)};nt(h,f=>{t.child?f(d):f(m,!1)})}C(e,u),N()}var Ii=ct("<button><!></button>");function Ri(e,t){const n=Ht();k(t,!0);let r=v(t,"id",19,()=>Ut(n)),o=v(t,"ref",15,null),s=W(t,["$$slots","$$events","$$legacy","children","child","id","ref"]);const i=nn.create({id:w(()=>r()),ref:w(()=>o(),m=>o(m))}),a=x(()=>tt(s,i.props));var c=M(),u=P(c);{var h=m=>{var f=M(),g=P(f);D(g,()=>t.child,()=>({props:l(a)})),C(m,f)},d=m=>{var f=Ii();Ot(f,()=>({...l(a)}));var g=St(f);D(g,()=>t.children??L),At(f),C(m,f)};nt(u,m=>{t.child?m(h):m(d,!1)})}C(e,c),N()}var ki=ct("<button><!></button>");function Ni(e,t){const n=Ht();k(t,!0);let r=v(t,"id",19,()=>Ut(n)),o=v(t,"ref",15,null),s=v(t,"disabled",3,!1),i=W(t,["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]);const a=cn.create({id:w(()=>r()),ref:w(()=>o(),f=>o(f)),disabled:w(()=>!!s())}),c=x(()=>tt(i,a.props));var u=M(),h=P(u);{var d=f=>{var g=M(),p=P(g);D(p,()=>t.child,()=>({props:l(c)})),C(f,g)},m=f=>{var g=ki();Ot(g,()=>({...l(c)}));var p=St(g);D(p,()=>t.children??L),At(g),C(f,g)};nt(h,f=>{t.child?f(d):f(m,!1)})}C(e,u),N()}function Di(e,t){var n=M(),r=P(n);Ao(r,()=>t.children,o=>{var s=M(),i=P(s);D(i,()=>t.children??L),C(o,s)}),C(e,n)}const _i=new Pt("BitsConfig");function Bi(){const e=new Li(null,{});return _i.getOr(e).opts}class Li{opts;constructor(t,n){const r=Wi(t,n);this.opts={defaultPortalTo:r(o=>o.defaultPortalTo),defaultLocale:r(o=>o.defaultLocale)}}}function Wi(e,t){return n=>w(()=>{const o=n(t)?.current;if(o!==void 0)return o;if(e!==null)return n(e.opts)?.current})}function Ki(e,t){return n=>{const r=Bi();return w(()=>{const o=n();if(o!==void 0)return o;const s=e(r).current;return s!==void 0?s:t})}}const Vi=Ki(e=>e.defaultPortalTo,"body");function zi(e,t){k(t,!0);const n=Vi(()=>t.to),r=yo();let o=x(s);function s(){if(!gr||t.disabled)return null;let d=null;return typeof n.current=="string"?d=document.querySelector(n.current):d=n.current,d}let i;function a(){i&&(so(i),i=null)}H([()=>l(o),()=>t.disabled],([d,m])=>{if(!d||m){a();return}return i=io(Di,{target:d,props:{children:t.children},context:r}),()=>{a()}});var c=M(),u=P(c);{var h=d=>{var m=M(),f=P(m);D(f,()=>t.children??L),C(d,m)};nt(u,d=>{t.disabled&&d(h)})}C(e,c),N()}class Hi{eventName;options;constructor(t,n={bubbles:!0,cancelable:!0}){this.eventName=t,this.options=n}createEvent(t){return new CustomEvent(this.eventName,{...this.options,detail:t})}dispatch(t,n){const r=this.createEvent(n);return t.dispatchEvent(r),r}listen(t,n,r){const o=s=>{n(s)};return V(t,this.eventName,o,r)}}function Dn(e,t=500){let n=null;const r=(...o)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...o)},t)};return r.destroy=()=>{n!==null&&(clearTimeout(n),n=null)},r}function vr(e,t){return e===t||e.contains(t)}function yr(e){return e?.ownerDocument??document}function ji(e,t){const{clientX:n,clientY:r}=e,o=t.getBoundingClientRect();return n<o.left||n>o.right||r<o.top||r>o.bottom}const Ge=[Ie,jt],Ui=[ne,mi,hr],br=[pe,pi,fr],Gi=[...Ui,...br],Yi={ltr:[...Ge,ce],rtl:[...Ge,ae]},pc={ltr:[ae],rtl:[ce]};function me(e){return e.pointerType==="mouse"}function Xi(e,{select:t=!1}={}){if(!e||!e.focus)return;const n=se(e);if(n.activeElement===e)return;const r=n.activeElement;e.focus({preventScroll:!0}),e!==r&&Oi(e)&&t&&e.select()}function qi(e,{select:t=!1}={},n){const r=n();for(const o of e)if(Xi(o,{select:t}),n()!==r)return!0}let Jt=T(!1);class bt{static _refs=0;static _cleanup;constructor(){Z(()=>(bt._refs===0&&(bt._cleanup=$n(()=>{const t=[],n=o=>{y(Jt,!1)},r=o=>{y(Jt,!0)};return t.push(V(document,"pointerdown",n,{capture:!0}),V(document,"pointermove",n,{capture:!0}),V(document,"keydown",r,{capture:!0})),Rt(...t)})),bt._refs++,()=>{bt._refs--,bt._refs===0&&(y(Jt,!1),bt._cleanup?.())}))}get current(){return l(Jt)}set current(t){y(Jt,t,!0)}}var wr=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],ve=wr.join(","),xr=typeof Element>"u",kt=xr?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ye=!xr&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},be=function(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),s=o===""||o==="true",i=s||n&&t&&(typeof t.closest=="function"?t.closest("[inert]"):be(t.parentNode));return i},Zi=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},Sr=function(t,n,r){if(be(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(ve));return n&&kt.call(t,ve)&&o.unshift(t),o=o.filter(r),o},we=function(t,n,r){for(var o=[],s=Array.from(t);s.length;){var i=s.shift();if(!be(i,!1))if(i.tagName==="SLOT"){var a=i.assignedElements(),c=a.length?a:i.children,u=we(c,!0,r);r.flatten?o.push.apply(o,u):o.push({scopeParent:i,candidates:u})}else{var h=kt.call(i,ve);h&&r.filter(i)&&(n||!t.includes(i))&&o.push(i);var d=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),m=!be(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(d&&m){var f=we(d===!0?i.children:d.children,!0,r);r.flatten?o.push.apply(o,f):o.push({scopeParent:i,candidates:f})}else s.unshift.apply(s,i.children)}}return o},Ar=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Or=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Zi(t))&&!Ar(t)?0:t.tabIndex},Ji=function(t,n){var r=Or(t);return r<0&&n&&!Ar(t)?0:r},Qi=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},Er=function(t){return t.tagName==="INPUT"},$i=function(t){return Er(t)&&t.type==="hidden"},ts=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},es=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},ns=function(t){if(!t.name)return!0;var n=t.form||ye(t),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(t.name));else try{o=r(t.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var s=es(o,t.form);return!s||s===t},rs=function(t){return Er(t)&&t.type==="radio"},os=function(t){return rs(t)&&!ns(t)},is=function(t){var n,r=t&&ye(t),o=(n=r)===null||n===void 0?void 0:n.host,s=!1;if(r&&r!==t){var i,a,c;for(s=!!((i=o)!==null&&i!==void 0&&(a=i.ownerDocument)!==null&&a!==void 0&&a.contains(o)||t!=null&&(c=t.ownerDocument)!==null&&c!==void 0&&c.contains(t));!s&&o;){var u,h,d;r=ye(o),o=(u=r)===null||u===void 0?void 0:u.host,s=!!((h=o)!==null&&h!==void 0&&(d=h.ownerDocument)!==null&&d!==void 0&&d.contains(o))}}return s},_n=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},ss=function(t,n){var r=n.displayCheck,o=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var s=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}if(getComputedStyle(t).visibility==="hidden")return!0;var i=kt.call(t,"details>summary:first-of-type"),a=i?t.parentElement:t;if(kt.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof o=="function"){for(var c=t;t;){var u=t.parentElement,h=ye(t);if(u&&!u.shadowRoot&&o(u)===!0)return _n(t);t.assignedSlot?t=t.assignedSlot:!u&&h!==t.ownerDocument?t=h.host:t=u}t=c}if(is(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return _n(t);return!1},as=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return kt.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},xe=function(t,n){return!(n.disabled||$i(n)||ss(n,t)||ts(n)||as(n))},Ye=function(t,n){return!(os(n)||Or(n)<0||!xe(t,n))},cs=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Cr=function(t){var n=[],r=[];return t.forEach(function(o,s){var i=!!o.scopeParent,a=i?o.scopeParent:o,c=Ji(a,i),u=i?Cr(o.candidates):a;c===0?i?n.push.apply(n,u):n.push(a):r.push({documentOrder:s,tabIndex:c,item:o,isScope:i,content:u})}),r.sort(Qi).reduce(function(o,s){return s.isScope?o.push.apply(o,s.content):o.push(s.content),o},[]).concat(n)},Pr=function(t,n){n=n||{};var r;return n.getShadowRoot?r=we([t],n.includeContainer,{filter:Ye.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:cs}):r=Sr(t,n.includeContainer,Ye.bind(null,n)),Cr(r)},Tr=function(t,n){n=n||{};var r;return n.getShadowRoot?r=we([t],n.includeContainer,{filter:xe.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=Sr(t,n.includeContainer,xe.bind(null,n)),r},un=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return kt.call(t,ve)===!1?!1:Ye(n,t)},us=wr.concat("iframe:not([inert]):not([inert] *)").join(","),Mr=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return kt.call(t,us)===!1?!1:xe(n,t)};function ee(){return{getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"}}function ls(e,t){if(!un(e,ee()))return ds(e,t);const n=se(e),r=Pr(n.body,ee());t==="prev"&&r.reverse();const o=r.indexOf(e);return o===-1?n.body:r.slice(o+1)[0]}function ds(e,t){const n=se(e);if(!Mr(e,ee()))return n.body;const r=Tr(n.body,ee());t==="prev"&&r.reverse();const o=r.indexOf(e);return o===-1?n.body:r.slice(o+1).find(i=>un(i,ee()))??n.body}function fs(e,t){return e.length!==t.length?!1:e.every((n,r)=>Fr(n,t[r]))}function Fr(e,t){return Number.isNaN(e)&&Number.isNaN(t)?!0:Array.isArray(e)&&Array.isArray(t)?fs(e,t):typeof e=="object"&&typeof t=="object"?hs(e,t):Object.is(e,t)}function hs(e,t){if(typeof e!="object"||typeof t!="object"||e===null||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n)if(!r.includes(o)||!Fr(e[o],t[o]))return!1;return!0}function mc(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===e.length-1?n?e[0]:void 0:e[t+1]}function vc(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===0?n?e[e.length-1]:void 0:e[t-1]}function yc(e,t,n,r=!0){if(e.length===0||t<0||t>=e.length)return;let o=t+n;return r?o=(o%e.length+e.length)%e.length:o=Math.max(0,Math.min(o,e.length-1)),e[o]}function bc(e,t,n,r=!0){if(e.length===0||t<0||t>=e.length)return;let o=t-n;return r?o=(o%e.length+e.length)%e.length:o=Math.max(0,Math.min(o,e.length-1)),e[o]}function Ir(e,t,n){const r=t.toLowerCase();if(r.endsWith(" ")){const d=r.slice(0,-1);if(e.filter(p=>p.toLowerCase().startsWith(d)).length<=1)return Ir(e,d,n);const f=n?.toLowerCase();if(f&&f.startsWith(d)&&f.charAt(d.length)===" "&&t.trim()===d)return n;const g=e.filter(p=>p.toLowerCase().startsWith(r));if(g.length>0){const p=n?e.indexOf(n):-1;return Bn(g,Math.max(p,0)).find(O=>O!==n)||n}}const s=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,i=s.toLowerCase(),a=n?e.indexOf(n):-1;let c=Bn(e,Math.max(a,0));s.length===1&&(c=c.filter(d=>d!==n));const h=c.find(d=>d?.toLowerCase().startsWith(i));return h!==n?h:void 0}function Bn(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const gs={afterMs:1e4,onChange:B};function Rr(e,t){const{afterMs:n,onChange:r,getWindow:o}={...gs,...t};let s=null,i=T(Bt(e));function a(){return o().setTimeout(()=>{y(i,e,!0),r?.(e)},n)}return Z(()=>()=>{s&&o().clearTimeout(s)}),w(()=>l(i),c=>{y(i,c,!0),r?.(c),s&&o().clearTimeout(s),s=a()})}class ps{#t;#e;#n=x(()=>this.#t.onMatch?this.#t.onMatch:t=>t.focus());#r=x(()=>this.#t.getCurrentItem?this.#t.getCurrentItem:this.#t.getActiveElement);constructor(t){this.#t=t,this.#e=Rr("",{afterMs:1e3,getWindow:t.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t,n){if(!n.length)return;this.#e.current=this.#e.current+t;const r=l(this.#r)(),o=n.find(c=>c===r)?.textContent?.trim()??"",s=n.map(c=>c.textContent?.trim()??""),i=Ir(s,this.#e.current,o),a=n.find(c=>c.textContent?.trim()===i);return a&&l(this.#n)(a),a}resetTypeahead(){this.#e.current=""}get search(){return this.#e.current}}class ms{#t;#e;#n;#r=T(null);constructor(t){this.#t=t,this.#e=x(()=>this.#t.enabled()),this.#n=Rr(!1,{afterMs:t.transitTimeout??300,onChange:n=>{l(this.#e)&&this.#t.setIsPointerInTransit?.(n)},getWindow:()=>Qe(this.#t.triggerNode())}),H([t.triggerNode,t.contentNode,t.enabled],([n,r,o])=>{if(!n||!r||!o)return;const s=a=>{this.#i(a,r)},i=a=>{this.#i(a,n)};return Rt(V(n,"pointerleave",s),V(r,"pointerleave",i))}),H(()=>l(this.#r),()=>{const n=o=>{if(!l(this.#r))return;const s=o.target;if(!je(s))return;const i={x:o.clientX,y:o.clientY},a=t.triggerNode()?.contains(s)||t.contentNode()?.contains(s),c=!ws(i,l(this.#r));a?this.#o():c&&(this.#o(),t.onPointerExit())},r=se(t.triggerNode()??t.contentNode());if(r)return V(r,"pointermove",n)})}#o(){y(this.#r,null),this.#n.current=!1}#i(t,n){const r=t.currentTarget;if(!ht(r))return;const o={x:t.clientX,y:t.clientY},s=vs(o,r.getBoundingClientRect()),i=ys(o,s),a=bs(n.getBoundingClientRect()),c=xs([...i,...a]);y(this.#r,c,!0),this.#n.current=!0}}function vs(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function ys(e,t,n=5){const r=n*1.5;switch(t){case"top":return[{x:e.x-n,y:e.y+n},{x:e.x,y:e.y-r},{x:e.x+n,y:e.y+n}];case"bottom":return[{x:e.x-n,y:e.y-n},{x:e.x,y:e.y+r},{x:e.x+n,y:e.y-n}];case"left":return[{x:e.x+n,y:e.y-n},{x:e.x-r,y:e.y},{x:e.x+n,y:e.y+n}];case"right":return[{x:e.x-n,y:e.y-n},{x:e.x+r,y:e.y},{x:e.x-n,y:e.y+n}]}}function bs(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function ws(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s].x,c=t[s].y,u=t[i].x,h=t[i].y;c>r!=h>r&&n<(u-a)*(r-c)/(h-c)+a&&(o=!o)}return o}function xs(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Ss(t)}function Ss(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const As="data-context-menu-trigger",Os="data-context-menu-content",kr=new Pt("Menu.Root"),Vt=new Pt("Menu.Root | Menu.Sub"),ln=new Pt("Menu.Content"),Nr=new Hi("bitsmenuopen",{bubbles:!1,cancelable:!0}),Es=dr({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});class Dr{static create(t){const n=new Dr(t);return kr.set(n)}opts;isUsingKeyboard=new bt;#t=T(!1);get ignoreCloseAutoFocus(){return l(this.#t)}set ignoreCloseAutoFocus(t){y(this.#t,t,!0)}#e=T(!1);get isPointerInTransit(){return l(this.#e)}set isPointerInTransit(t){y(this.#e,t,!0)}constructor(t){this.opts=t}getBitsAttr=t=>Es.getAttr(t,this.opts.variant.current)}class dn{static create(t,n){return Vt.set(new dn(t,n,null))}opts;root;parentMenu;contentId=w(()=>"");#t=T(null);get contentNode(){return l(this.#t)}set contentNode(t){y(this.#t,t,!0)}contentPresence;#e=T(null);get triggerNode(){return l(this.#e)}set triggerNode(t){y(this.#e,t,!0)}constructor(t,n,r){this.opts=t,this.root=n,this.parentMenu=r,this.contentPresence=new Ue({ref:w(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),r&&H(()=>r.opts.open.current,()=>{r.opts.open.current||(this.opts.open.current=!1)})}toggleOpen(){this.opts.open.current=!this.opts.open.current}onOpen(){this.opts.open.current=!0}onClose(){this.opts.open.current=!1}}class _r{static create(t){return ln.set(new _r(t,Vt.get()))}opts;parentMenu;rovingFocusGroup;domContext;attachment;#t=T("");get search(){return l(this.#t)}set search(t){y(this.#t,t,!0)}#e=0;#n;#r=T(!1);get mounted(){return l(this.#r)}set mounted(t){y(this.#r,t,!0)}#o;constructor(t,n){this.opts=t,this.parentMenu=n,this.domContext=new $e(t.ref),this.attachment=Q(this.opts.ref,r=>{this.parentMenu.contentNode!==r&&(this.parentMenu.contentNode=r)}),n.contentId=t.id,this.#o=t.isSub??!1,this.onkeydown=this.onkeydown.bind(this),this.onblur=this.onblur.bind(this),this.onfocus=this.onfocus.bind(this),this.handleInteractOutside=this.handleInteractOutside.bind(this),new ms({contentNode:()=>this.parentMenu.contentNode,triggerNode:()=>this.parentMenu.triggerNode,enabled:()=>this.parentMenu.opts.open.current&&!!this.parentMenu.triggerNode?.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger")),onPointerExit:()=>{this.parentMenu.opts.open.current=!1},setIsPointerInTransit:r=>{this.parentMenu.root.isPointerInTransit=r}}),this.#n=new ps({getActiveElement:()=>this.domContext.getActiveElement(),getWindow:()=>this.domContext.getWindow()}).handleTypeaheadSearch,this.rovingFocusGroup=new Ei({rootNode:w(()=>this.parentMenu.contentNode),candidateAttr:this.parentMenu.root.getBitsAttr("item"),loop:this.opts.loop,orientation:w(()=>"vertical")}),H(()=>this.parentMenu.contentNode,r=>{if(!r)return;const o=()=>{lt(()=>{this.parentMenu.root.isUsingKeyboard.current&&this.rovingFocusGroup.focusFirstCandidate()})};return Nr.listen(r,o)}),Z(()=>{this.parentMenu.opts.open.current||this.domContext.getWindow().clearTimeout(this.#e)})}#i(){const t=this.parentMenu.contentNode;return t?Array.from(t.querySelectorAll(`[${this.parentMenu.root.getBitsAttr("item")}]:not([data-disabled])`)):[]}#a(){return this.parentMenu.root.isPointerInTransit}onCloseAutoFocus=t=>{this.opts.onCloseAutoFocus.current?.(t),!(t.defaultPrevented||this.#o)&&this.parentMenu.triggerNode&&un(this.parentMenu.triggerNode)&&(t.preventDefault(),this.parentMenu.triggerNode.focus())};handleTabKeyDown(t){let n=this.parentMenu;for(;n.parentMenu!==null;)n=n.parentMenu;if(!n.triggerNode)return;t.preventDefault();const r=ls(n.triggerNode,t.shiftKey?"prev":"next");r?(this.parentMenu.root.ignoreCloseAutoFocus=!0,n.onClose(),lt(()=>{r.focus(),lt(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})})):this.domContext.getDocument().body.focus()}onkeydown(t){if(t.defaultPrevented)return;if(t.key===vi){this.handleTabKeyDown(t);return}const n=t.target,r=t.currentTarget;if(!ht(n)||!ht(r))return;const o=n.closest(`[${this.parentMenu.root.getBitsAttr("content")}]`)?.id===this.parentMenu.contentId.current,s=t.ctrlKey||t.altKey||t.metaKey,i=t.key.length===1;if(this.rovingFocusGroup.handleKeydown(n,t)||t.code==="Space")return;const c=this.#i();o&&!s&&i&&this.#n(t.key,c),t.target?.id===this.parentMenu.contentId.current&&Gi.includes(t.key)&&(t.preventDefault(),br.includes(t.key)&&c.reverse(),qi(c,{select:!1},()=>this.domContext.getActiveElement()))}onblur(t){je(t.currentTarget)&&je(t.target)&&(t.currentTarget.contains?.(t.target)||(this.domContext.getWindow().clearTimeout(this.#e),this.search=""))}onfocus(t){this.parentMenu.root.isUsingKeyboard.current&&lt(()=>this.rovingFocusGroup.focusFirstCandidate())}onItemEnter(){return this.#a()}onItemLeave(t){if(t.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger"))||this.#a()||this.parentMenu.root.isUsingKeyboard.current)return;this.parentMenu.contentNode?.focus(),this.rovingFocusGroup.setCurrentTabStopId("")}onTriggerLeave(){return!!this.#a()}handleInteractOutside(t){if(!pr(t.target))return;const n=this.parentMenu.triggerNode?.id;if(t.target.id===n){t.preventDefault();return}t.target.closest(`#${n}`)&&t.preventDefault()}get shouldRender(){return this.parentMenu.contentPresence.shouldRender}#s=x(()=>({open:this.parentMenu.opts.open.current}));get snippetProps(){return l(this.#s)}set snippetProps(t){y(this.#s,t)}#c=x(()=>({id:this.opts.id.current,role:"menu","aria-orientation":"vertical",[this.parentMenu.root.getBitsAttr("content")]:"","data-state":Fe(this.parentMenu.opts.open.current),onkeydown:this.onkeydown,onblur:this.onblur,onfocus:this.onfocus,dir:this.parentMenu.root.opts.dir.current,style:{pointerEvents:"auto",contain:"layout style"},...this.attachment}));get props(){return l(this.#c)}set props(t){y(this.#c,t)}popperProps={onCloseAutoFocus:t=>this.onCloseAutoFocus(t)}}class Br{opts;content;attachment;#t=T(!1);constructor(t,n){this.opts=t,this.content=n,this.attachment=Q(this.opts.ref),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this),this.onfocus=this.onfocus.bind(this),this.onblur=this.onblur.bind(this)}onpointermove(t){if(!t.defaultPrevented&&me(t))if(this.opts.disabled.current)this.content.onItemLeave(t);else{if(this.content.onItemEnter())return;const r=t.currentTarget;if(!ht(r))return;r.focus()}}onpointerleave(t){t.defaultPrevented||me(t)&&this.content.onItemLeave(t)}onfocus(t){lt(()=>{t.defaultPrevented||this.opts.disabled.current||y(this.#t,!0)})}onblur(t){lt(()=>{t.defaultPrevented||y(this.#t,!1)})}#e=x(()=>({id:this.opts.id.current,tabindex:-1,role:"menuitem","aria-disabled":tn(this.opts.disabled.current),"data-disabled":Kt(this.opts.disabled.current),"data-highlighted":l(this.#t)?"":void 0,[this.content.parentMenu.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onfocus:this.onfocus,onblur:this.onblur,...this.attachment}));get props(){return l(this.#e)}set props(t){y(this.#e,t)}}class Lr{static create(t){const n=new Br(t,ln.get());return new Lr(t,n)}opts;item;root;#t=!1;constructor(t,n){this.opts=t,this.item=n,this.root=n.content.parentMenu.root,this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this)}#e(){if(this.item.opts.disabled.current)return;const t=new CustomEvent("menuitemselect",{bubbles:!0,cancelable:!0});if(this.opts.onSelect.current(t),t.defaultPrevented){this.item.content.parentMenu.root.isUsingKeyboard.current=!1;return}this.opts.closeOnSelect.current&&this.item.content.parentMenu.root.opts.onClose()}onkeydown(t){const n=this.item.content.search!=="";if(!(this.item.opts.disabled.current||n&&t.key===jt)&&Ge.includes(t.key)){if(!ht(t.currentTarget))return;t.currentTarget.click(),t.preventDefault()}}onclick(t){this.item.opts.disabled.current||this.#e()}onpointerup(t){if(!t.defaultPrevented&&!this.#t){if(!ht(t.currentTarget))return;t.currentTarget?.click()}}onpointerdown(t){this.#t=!0}#n=x(()=>tt(this.item.props,{onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown}));get props(){return l(this.#n)}set props(t){y(this.#n,t)}}class Wr{static create(t){const n=ln.get(),r=new Br(t,n),o=Vt.get();return new Wr(t,r,n,o)}opts;item;content;submenu;attachment;#t=null;constructor(t,n,r,o){this.opts=t,this.item=n,this.content=r,this.submenu=o,this.attachment=Q(this.opts.ref,s=>this.submenu.triggerNode=s),this.onpointerleave=this.onpointerleave.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),_t(()=>{this.#e()})}#e(){this.#t!==null&&(this.content.domContext.getWindow().clearTimeout(this.#t),this.#t=null)}onpointermove(t){me(t)&&!this.item.opts.disabled.current&&!this.submenu.opts.open.current&&!this.#t&&!this.content.parentMenu.root.isPointerInTransit&&(this.#t=this.content.domContext.setTimeout(()=>{this.submenu.onOpen(),this.#e()},this.opts.openDelay.current))}onpointerleave(t){me(t)&&this.#e()}onkeydown(t){const n=this.content.search!=="";this.item.opts.disabled.current||n&&t.key===jt||Yi[this.submenu.root.opts.dir.current].includes(t.key)&&(t.currentTarget.click(),t.preventDefault())}onclick(t){if(this.item.opts.disabled.current||!ht(t.currentTarget))return;t.currentTarget.focus();const n=new CustomEvent("menusubtriggerselect",{bubbles:!0,cancelable:!0});this.opts.onSelect.current(n),this.submenu.opts.open.current||(this.submenu.onOpen(),lt(()=>{const r=this.submenu.contentNode;r&&Nr.dispatch(r)}))}#n=x(()=>tt({"aria-haspopup":"menu","aria-expanded":tn(this.submenu.opts.open.current),"data-state":Fe(this.submenu.opts.open.current),"aria-controls":this.submenu.opts.open.current?this.submenu.contentId.current:void 0,[this.submenu.root.getBitsAttr("sub-trigger")]:"",onclick:this.onclick,onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onkeydown:this.onkeydown,...this.attachment},this.item.props));get props(){return l(this.#n)}set props(t){y(this.#n,t)}}class Kr{static create(t){return new Kr(t,kr.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Q(this.opts.ref)}#t=x(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("separator")]:"",...this.attachment}));get props(){return l(this.#t)}set props(t){y(this.#t,t)}}class Vr{static create(t){return new Vr(t,Vt.get())}opts;parentMenu;attachment;constructor(t,n){this.opts=t,this.parentMenu=n,this.attachment=Q(this.opts.ref,r=>this.parentMenu.triggerNode=r)}onclick=t=>{this.opts.disabled.current||t.detail!==0||(this.parentMenu.toggleOpen(),t.preventDefault())};onpointerdown=t=>{if(!this.opts.disabled.current){if(t.pointerType==="touch")return t.preventDefault();t.button===0&&t.ctrlKey===!1&&(this.parentMenu.toggleOpen(),this.parentMenu.opts.open.current||t.preventDefault())}};onpointerup=t=>{this.opts.disabled.current||t.pointerType==="touch"&&(t.preventDefault(),this.parentMenu.toggleOpen())};onkeydown=t=>{if(!this.opts.disabled.current){if(t.key===jt||t.key===Ie){this.parentMenu.toggleOpen(),t.preventDefault();return}t.key===ne&&(this.parentMenu.onOpen(),t.preventDefault())}};#t=x(()=>{if(this.parentMenu.opts.open.current&&this.parentMenu.contentId.current)return this.parentMenu.contentId.current});#e=x(()=>({id:this.opts.id.current,disabled:this.opts.disabled.current,"aria-haspopup":"menu","aria-expanded":tn(this.parentMenu.opts.open.current),"aria-controls":l(this.#t),"data-disabled":Kt(this.opts.disabled.current),"data-state":Fe(this.parentMenu.opts.open.current),[this.parentMenu.root.getBitsAttr("trigger")]:"",onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown,...this.attachment}));get props(){return l(this.#e)}set props(t){y(this.#e,t)}}class wc{static create(t){const n=Vt.get();return Vt.set(new dn(t,n.root,n))}}globalThis.bitsDismissableLayers??=new Map;class fn{static create(t){return new fn(t)}opts;#t;#e;#n={pointerdown:!1};#r=!1;#o=!1;#i=void 0;#a;#s=B;constructor(t){this.opts=t,this.#e=t.interactOutsideBehavior,this.#t=t.onInteractOutside,this.#a=t.onFocusOutside,Z(()=>{this.#i=yr(this.opts.ref.current)});let n=B;const r=()=>{this.#f(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),n()};H([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return cr(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,this.#e),n(),n=this.#l())}),r}),_t(()=>{this.#f.destroy(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),this.#s(),n()})}#c=t=>{t.defaultPrevented||this.opts.ref.current&&lt(()=>{!this.opts.ref.current||this.#m(t.target)||t.target&&!this.#o&&this.#a.current?.(t)})};#l(){return Rt(V(this.#i,"pointerdown",Rt(this.#h,this.#p),{capture:!0}),V(this.#i,"pointerdown",Rt(this.#g,this.#d)),V(this.#i,"focusin",this.#c))}#u=t=>{let n=t;n.defaultPrevented&&(n=Ln(t)),this.#t.current(t)};#d=Dn(t=>{if(!this.opts.ref.current){this.#s();return}const n=this.opts.isValidEvent.current(t,this.opts.ref.current)||Ts(t,this.opts.ref.current);if(!this.#r||this.#v()||!n){this.#s();return}let r=t;if(r.defaultPrevented&&(r=Ln(r)),this.#e.current!=="close"&&this.#e.current!=="defer-otherwise-close"){this.#s();return}t.pointerType==="touch"?(this.#s(),this.#s=V(this.#i,"click",this.#u,{once:!0})):this.#t.current(r)},10);#h=t=>{this.#n[t.type]=!0};#g=t=>{this.#n[t.type]=!1};#p=()=>{this.opts.ref.current&&(this.#r=Ps(this.opts.ref.current))};#m=t=>this.opts.ref.current?vr(this.opts.ref.current,t):!1;#f=Dn(()=>{for(const t in this.#n)this.#n[t]=!1;this.#r=!1},20);#v(){return Object.values(this.#n).some(Boolean)}#y=()=>{this.#o=!0};#b=()=>{this.#o=!1};props={onfocuscapture:this.#y,onblurcapture:this.#b}}function Cs(e=[...globalThis.bitsDismissableLayers]){return e.findLast(([t,{current:n}])=>n==="close"||n==="ignore")}function Ps(e){const t=[...globalThis.bitsDismissableLayers],n=Cs(t);if(n)return n[0].opts.ref.current===e;const[r]=t[0];return r.opts.ref.current===e}function Ts(e,t){const n=e.target;if(!pr(n))return!1;const r=!!n.closest(`[${As}]`);if("button"in e&&e.button>0&&!r)return!1;if("button"in e&&e.button===0&&r)return!0;const o=!!t.closest(`[${Os}]`);return r&&o?!1:yr(n).documentElement.contains(n)&&!vr(t,n)&&ji(e,t)}function Ln(e){const t=e.currentTarget,n=e.target;let r;e instanceof PointerEvent?r=new PointerEvent(e.type,e):r=new PointerEvent("pointerdown",e);let o=!1;return new Proxy(r,{get:(i,a)=>a==="currentTarget"?t:a==="target"?n:a==="preventDefault"?()=>{o=!0,typeof i.preventDefault=="function"&&i.preventDefault()}:a==="defaultPrevented"?o:a in i?i[a]:e[a]})}function zr(e,t){k(t,!0);let n=v(t,"interactOutsideBehavior",3,"close"),r=v(t,"onInteractOutside",3,B),o=v(t,"onFocusOutside",3,B),s=v(t,"isValidEvent",3,()=>!1);const i=fn.create({id:w(()=>t.id),interactOutsideBehavior:w(()=>n()),onInteractOutside:w(()=>r()),enabled:w(()=>t.enabled),onFocusOutside:w(()=>o()),isValidEvent:w(()=>s()),ref:t.ref});var a=M(),c=P(a);D(c,()=>t.children??L,()=>({props:i.props})),C(e,a),N()}globalThis.bitsEscapeLayers??=new Map;class hn{static create(t){return new hn(t)}opts;domContext;constructor(t){this.opts=t,this.domContext=new $e(this.opts.ref);let n=B;H(()=>t.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,t.escapeKeydownBehavior),n=this.#t()),()=>{n(),globalThis.bitsEscapeLayers.delete(this)}))}#t=()=>V(this.domContext.getDocument(),"keydown",this.#e,{passive:!1});#e=t=>{if(t.key!==gi||!Ms(this))return;const n=new KeyboardEvent(t.type,t);t.preventDefault();const r=this.opts.escapeKeydownBehavior.current;r!=="close"&&r!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(n)}}function Ms(e){const t=[...globalThis.bitsEscapeLayers],n=t.findLast(([o,{current:s}])=>s==="close"||s==="ignore");if(n)return n[0]===e;const[r]=t[0];return r===e}function Hr(e,t){k(t,!0);let n=v(t,"escapeKeydownBehavior",3,"close"),r=v(t,"onEscapeKeydown",3,B);hn.create({escapeKeydownBehavior:w(()=>n()),onEscapeKeydown:w(()=>r()),enabled:w(()=>t.enabled),ref:t.ref});var o=M(),s=P(o);D(s,()=>t.children??L),C(e,o),N()}class gn{static instance;#t=ut([]);#e=new WeakMap;#n=new WeakMap;static getInstance(){return this.instance||(this.instance=new gn),this.instance}register(t){const n=this.getActive();n&&n!==t&&n.pause();const r=document.activeElement;r&&r!==document.body&&this.#n.set(t,r),this.#t.current=this.#t.current.filter(o=>o!==t),this.#t.current.unshift(t)}unregister(t){this.#t.current=this.#t.current.filter(r=>r!==t);const n=this.getActive();n&&n.resume()}getActive(){return this.#t.current[0]}setFocusMemory(t,n){this.#e.set(t,n)}getFocusMemory(t){return this.#e.get(t)}isActiveScope(t){return this.getActive()===t}setPreFocusMemory(t,n){this.#n.set(t,n)}getPreFocusMemory(t){return this.#n.get(t)}clearPreFocusMemory(t){this.#n.delete(t)}}class pn{#t=!1;#e=null;#n=gn.getInstance();#r=[];#o;constructor(t){this.#o=t}get paused(){return this.#t}pause(){this.#t=!0}resume(){this.#t=!1}#i(){for(const t of this.#r)t();this.#r=[]}mount(t){this.#e&&this.unmount(),this.#e=t,this.#n.register(this),this.#c(),this.#a()}unmount(){this.#e&&(this.#i(),this.#s(),this.#n.unregister(this),this.#n.clearPreFocusMemory(this),this.#e=null)}#a(){if(!this.#e)return;const t=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});this.#o.onOpenAutoFocus.current(t),t.defaultPrevented||requestAnimationFrame(()=>{if(!this.#e)return;const n=this.#u();n?(n.focus(),this.#n.setFocusMemory(this,n)):this.#e.focus()})}#s(){const t=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if(this.#o.onCloseAutoFocus.current?.(t),!t.defaultPrevented){const n=this.#n.getPreFocusMemory(this);if(n&&document.contains(n))try{n.focus()}catch{document.body.focus()}}}#c(){if(!this.#e||!this.#o.trap.current)return;const t=this.#e,n=t.ownerDocument,r=i=>{if(this.#t||!this.#n.isActiveScope(this))return;const a=i.target;if(!a)return;if(t.contains(a))this.#n.setFocusMemory(this,a);else{const u=this.#n.getFocusMemory(this);if(u&&t.contains(u)&&Mr(u))i.preventDefault(),u.focus();else{const h=this.#u(),d=this.#d()[0];(h||d||t).focus()}}},o=i=>{if(!this.#o.loop||this.#t||i.key!=="Tab"||!this.#n.isActiveScope(this))return;const a=this.#l();if(a.length===0)return;const c=a[0],u=a[a.length-1];!i.shiftKey&&n.activeElement===u?(i.preventDefault(),c.focus()):i.shiftKey&&n.activeElement===c&&(i.preventDefault(),u.focus())};this.#r.push(V(n,"focusin",r,{capture:!0}),V(t,"keydown",o));const s=new MutationObserver(()=>{const i=this.#n.getFocusMemory(this);if(i&&!t.contains(i)){const a=this.#u(),c=this.#d()[0],u=a||c;u?(u.focus(),this.#n.setFocusMemory(this,u)):t.focus()}});s.observe(t,{childList:!0,subtree:!0}),this.#r.push(()=>s.disconnect())}#l(){return this.#e?Pr(this.#e,{includeContainer:!1,getShadowRoot:!0}):[]}#u(){return this.#l()[0]||null}#d(){return this.#e?Tr(this.#e,{includeContainer:!1,getShadowRoot:!0}):[]}static use(t){let n=null;return H([()=>t.ref.current,()=>t.enabled.current],([r,o])=>{r&&o?(n||(n=new pn(t)),n.mount(r)):n&&(n.unmount(),n=null)}),_t(()=>{n?.unmount()}),{get props(){return{tabindex:-1}}}}}function jr(e,t){k(t,!0);let n=v(t,"enabled",3,!1),r=v(t,"trapFocus",3,!1),o=v(t,"loop",3,!1),s=v(t,"onCloseAutoFocus",3,B),i=v(t,"onOpenAutoFocus",3,B);const a=pn.use({enabled:w(()=>n()),trap:w(()=>r()),loop:o(),onCloseAutoFocus:w(()=>s()),onOpenAutoFocus:w(()=>i()),ref:t.ref});var c=M(),u=P(c);D(u,()=>t.focusScope??L,()=>({props:a.props})),C(e,c),N()}globalThis.bitsTextSelectionLayers??=new Map;class mn{static create(t){return new mn(t)}opts;domContext;#t=B;constructor(t){this.opts=t,this.domContext=new $e(t.ref);let n=B;H(()=>this.opts.enabled.current,r=>(r&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),n(),n=this.#e()),()=>{n(),this.#r(),globalThis.bitsTextSelectionLayers.delete(this)}))}#e(){return Rt(V(this.domContext.getDocument(),"pointerdown",this.#n),V(this.domContext.getDocument(),"pointerup",rr(this.#r,this.opts.onPointerUp.current)))}#n=t=>{const n=this.opts.ref.current,r=t.target;!ht(n)||!ht(r)||!this.opts.enabled.current||!Is(this)||!di(n,r)||(this.opts.onPointerDown.current(t),!t.defaultPrevented&&(this.#t=Fs(n,this.domContext.getDocument().body)))};#r=()=>{this.#t(),this.#t=B}}const Wn=e=>e.style.userSelect||e.style.webkitUserSelect;function Fs(e,t){const n=Wn(t),r=Wn(e);return le(t,"none"),le(e,"text"),()=>{le(t,n),le(e,r)}}function le(e,t){e.style.userSelect=t,e.style.webkitUserSelect=t}function Is(e){const t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;const n=t.at(-1);return n?n[0]===e:!1}function Ur(e,t){k(t,!0);let n=v(t,"preventOverflowTextSelection",3,!0),r=v(t,"onPointerDown",3,B),o=v(t,"onPointerUp",3,B);mn.create({id:w(()=>t.id),onPointerDown:w(()=>r()),onPointerUp:w(()=>o()),enabled:w(()=>t.enabled&&n()),ref:t.ref});var s=M(),i=P(s);D(i,()=>t.children??L),C(e,s),N()}globalThis.bitsIdCounter??={current:0};function vn(e="bits"){return globalThis.bitsIdCounter.current++,`${e}-${globalThis.bitsIdCounter.current}`}class Rs{#t;#e=0;#n=T();#r;constructor(t){this.#t=t}#o(){this.#e-=1,this.#r&&this.#e<=0&&(this.#r(),y(this.#n,void 0),this.#r=void 0)}get(...t){return this.#e+=1,l(this.#n)===void 0&&(this.#r=$n(()=>{y(this.#n,this.#t(...t),!0)})),Z(()=>()=>{this.#o()}),l(this.#n)}}const he=new Oo;let de=T(null),Le=null,Qt=null,$t=!1;const Kn=w(()=>{for(const e of he.values())if(e)return!0;return!1});let We=null;const ks=new Rs(()=>{function e(){document.body.setAttribute("style",l(de)??""),document.body.style.removeProperty("--scrollbar-width"),Nn&&Le?.(),y(de,null)}function t(){Qt!==null&&(window.clearTimeout(Qt),Qt=null)}function n(o,s){t(),$t=!0,We=Date.now();const i=We,a=()=>{Qt=null,We===i&&(Gr(he)?$t=!1:($t=!1,s()))},c=o===null?24:o;Qt=window.setTimeout(a,c)}function r(){l(de)===null&&he.size===0&&!$t&&y(de,document.body.getAttribute("style"),!0)}return H(()=>Kn.current,()=>{if(!Kn.current)return;r(),$t=!1;const o=getComputedStyle(document.documentElement),s=getComputedStyle(document.body),i=o.scrollbarGutter?.includes("stable")||s.scrollbarGutter?.includes("stable"),a=window.innerWidth-document.documentElement.clientWidth,u={padding:Number.parseInt(s.paddingRight??"0",10)+a,margin:Number.parseInt(s.marginRight??"0",10)};a>0&&!i&&(document.body.style.paddingRight=`${u.padding}px`,document.body.style.marginRight=`${u.margin}px`,document.body.style.setProperty("--scrollbar-width",`${a}px`)),document.body.style.overflow="hidden",Nn&&(Le=V(document,"touchmove",h=>{h.target===document.documentElement&&(h.touches.length>1||h.preventDefault())},{passive:!1})),lt(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),_t(()=>()=>{Le?.()}),{get lockMap(){return he},resetBodyStyle:e,scheduleCleanupIfNoNewLocks:n,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}});class Ns{#t=vn();#e;#n=()=>null;#r;locked;constructor(t,n=()=>null){this.#e=t,this.#n=n,this.#r=ks.get(),this.#r&&(this.#r.cancelPendingCleanup(),this.#r.ensureInitialStyleCaptured(),this.#r.lockMap.set(this.#t,this.#e??!1),this.locked=w(()=>this.#r.lockMap.get(this.#t)??!1,r=>this.#r.lockMap.set(this.#t,r)),_t(()=>{if(this.#r.lockMap.delete(this.#t),Gr(this.#r.lockMap))return;const r=this.#n();this.#r.scheduleCleanupIfNoNewLocks(r,()=>{this.#r.resetBodyStyle()})}))}}function Gr(e){for(const[t,n]of e)if(n)return!0;return!1}function Se(e,t){k(t,!0);let n=v(t,"preventScroll",3,!0),r=v(t,"restoreScrollDelay",3,null);n()&&new Ns(n(),()=>r()),N()}var Ds=ct("<!> <!>",1),_s=ct("<!> <div><!></div>",1);function Bs(e,t){const n=Ht();k(t,!0);let r=v(t,"id",19,()=>Ut(n)),o=v(t,"ref",15,null),s=v(t,"forceMount",3,!1),i=v(t,"interactOutsideBehavior",3,"ignore"),a=v(t,"onCloseAutoFocus",3,B),c=v(t,"onEscapeKeydown",3,B),u=v(t,"onOpenAutoFocus",3,B),h=v(t,"onInteractOutside",3,B),d=v(t,"preventScroll",3,!0),m=v(t,"trapFocus",3,!0),f=v(t,"restoreScrollDelay",3,null),g=W(t,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","interactOutsideBehavior","onCloseAutoFocus","onEscapeKeydown","onOpenAutoFocus","onInteractOutside","preventScroll","trapFocus","restoreScrollDelay"]);const p=sn.create({id:w(()=>r()),ref:w(()=>o(),A=>o(A))}),b=x(()=>tt(g,p.props));var S=M(),O=P(S);{var E=A=>{jr(A,{get ref(){return p.opts.ref},loop:!0,get trapFocus(){return m()},get enabled(){return p.root.opts.open.current},get onCloseAutoFocus(){return a()},onOpenAutoFocus:F=>{u()(F),!F.defaultPrevented&&(F.preventDefault(),cr(0,()=>p.opts.ref.current?.focus()))},focusScope:(F,_)=>{let j=()=>_?.().props;Hr(F,J(()=>l(b),{get enabled(){return p.root.opts.open.current},get ref(){return p.opts.ref},onEscapeKeydown:R=>{c()(R),!R.defaultPrevented&&p.root.handleClose()},children:(R,K)=>{zr(R,J(()=>l(b),{get ref(){return p.opts.ref},get enabled(){return p.root.opts.open.current},get interactOutsideBehavior(){return i()},onInteractOutside:U=>{h()(U),!U.defaultPrevented&&p.root.handleClose()},children:(U,G)=>{Ur(U,J(()=>l(b),{get ref(){return p.opts.ref},get enabled(){return p.root.opts.open.current},children:(ot,z)=>{var it=M(),$=P(it);{var Y=q=>{var Tt=Ds(),Xt=P(Tt);{var qt=Mt=>{Se(Mt,{get preventScroll(){return d()},get restoreScrollDelay(){return f()}})};nt(Xt,Mt=>{p.root.opts.open.current&&Mt(qt)})}var _e=ge(Xt,2);{let Mt=x(()=>({props:tt(l(b),j()),...p.snippetProps}));D(_e,()=>t.child,()=>l(Mt))}C(q,Tt)},X=q=>{var Tt=_s(),Xt=P(Tt);Se(Xt,{get preventScroll(){return d()}});var qt=ge(Xt,2);Ot(qt,Mt=>({...Mt}),[()=>tt(l(b),j())]);var _e=St(qt);D(_e,()=>t.children??L),At(qt),C(q,Tt)};nt($,q=>{t.child?q(Y):q(X,!1)})}C(ot,it)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};nt(O,A=>{(p.shouldRender||s())&&A(E)})}C(e,S),N()}var Ls=ct("<div><!></div>");function Ws(e,t){const n=Ht();k(t,!0);let r=v(t,"id",19,()=>Ut(n)),o=v(t,"forceMount",3,!1),s=v(t,"ref",15,null),i=W(t,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const a=an.create({id:w(()=>r()),ref:w(()=>s(),m=>s(m))}),c=x(()=>tt(i,a.props));var u=M(),h=P(u);{var d=m=>{var f=M(),g=P(f);{var p=S=>{var O=M(),E=P(O);{let A=x(()=>({props:tt(l(c)),...a.snippetProps}));D(E,()=>t.child,()=>l(A))}C(S,O)},b=S=>{var O=Ls();Ot(O,A=>({...A}),[()=>tt(l(c))]);var E=St(O);D(E,()=>t.children??L,()=>a.snippetProps),At(O),C(S,O)};nt(g,S=>{t.child?S(p):S(b,!1)})}C(m,f)};nt(h,m=>{(a.shouldRender||o())&&m(d)})}C(e,u),N()}var Ks=ct("<div><!></div>");function Vs(e,t){const n=Ht();k(t,!0);let r=v(t,"id",19,()=>Ut(n)),o=v(t,"ref",15,null),s=W(t,["$$slots","$$events","$$legacy","id","children","child","ref"]);const i=on.create({id:w(()=>r()),ref:w(()=>o(),m=>o(m))}),a=x(()=>tt(s,i.props));var c=M(),u=P(c);{var h=m=>{var f=M(),g=P(f);D(g,()=>t.child,()=>({props:l(a)})),C(m,f)},d=m=>{var f=Ks();Ot(f,()=>({...l(a)}));var g=St(f);D(g,()=>t.children??L),At(f),C(m,f)};nt(u,m=>{t.child?m(h):m(d,!1)})}C(e,c),N()}const zs=["top","right","bottom","left"],wt=Math.min,et=Math.max,Ae=Math.round,fe=Math.floor,ft=e=>({x:e,y:e}),Hs={left:"right",right:"left",bottom:"top",top:"bottom"},js={start:"end",end:"start"};function Xe(e,t,n){return et(e,wt(t,n))}function vt(e,t){return typeof e=="function"?e(t):e}function yt(e){return e.split("-")[0]}function Gt(e){return e.split("-")[1]}function yn(e){return e==="x"?"y":"x"}function bn(e){return e==="y"?"height":"width"}const Us=new Set(["top","bottom"]);function dt(e){return Us.has(yt(e))?"y":"x"}function wn(e){return yn(dt(e))}function Gs(e,t,n){n===void 0&&(n=!1);const r=Gt(e),o=wn(e),s=bn(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Oe(i)),[i,Oe(i)]}function Ys(e){const t=Oe(e);return[qe(e),t,qe(t)]}function qe(e){return e.replace(/start|end/g,t=>js[t])}const Vn=["left","right"],zn=["right","left"],Xs=["top","bottom"],qs=["bottom","top"];function Zs(e,t,n){switch(e){case"top":case"bottom":return n?t?zn:Vn:t?Vn:zn;case"left":case"right":return t?Xs:qs;default:return[]}}function Js(e,t,n,r){const o=Gt(e);let s=Zs(yt(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(qe)))),s}function Oe(e){return e.replace(/left|right|bottom|top/g,t=>Hs[t])}function Qs(e){return{top:0,right:0,bottom:0,left:0,...e}}function Yr(e){return typeof e!="number"?Qs(e):{top:e,right:e,bottom:e,left:e}}function Ee(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Hn(e,t,n){let{reference:r,floating:o}=e;const s=dt(t),i=wn(t),a=bn(i),c=yt(t),u=s==="y",h=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,m=r[a]/2-o[a]/2;let f;switch(c){case"top":f={x:h,y:r.y-o.height};break;case"bottom":f={x:h,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(Gt(t)){case"start":f[i]-=m*(n&&u?-1:1);break;case"end":f[i]+=m*(n&&u?-1:1);break}return f}async function $s(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:d="floating",altBoundary:m=!1,padding:f=0}=vt(t,e),g=Yr(f),b=a[m?d==="floating"?"reference":"floating":d],S=Ee(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:h,strategy:c})),O=d==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),A=await(s.isElement==null?void 0:s.isElement(E))?await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1}:{x:1,y:1},I=Ee(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:O,offsetParent:E,strategy:c}):O);return{top:(S.top-I.top+g.top)/A.y,bottom:(I.bottom-S.bottom+g.bottom)/A.y,left:(S.left-I.left+g.left)/A.x,right:(I.right-S.right+g.right)/A.x}}const ta=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:h,y:d}=Hn(u,r,c),m=r,f={},g=0;for(let b=0;b<a.length;b++){var p;const{name:S,fn:O}=a[b],{x:E,y:A,data:I,reset:F}=await O({x:h,y:d,initialPlacement:r,placement:m,strategy:o,middlewareData:f,rects:u,platform:{...i,detectOverflow:(p=i.detectOverflow)!=null?p:$s},elements:{reference:e,floating:t}});h=E??h,d=A??d,f={...f,[S]:{...f[S],...I}},F&&g<=50&&(g++,typeof F=="object"&&(F.placement&&(m=F.placement),F.rects&&(u=F.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):F.rects),{x:h,y:d}=Hn(u,m,c)),b=-1)}return{x:h,y:d,placement:m,strategy:o,middlewareData:f}},ea=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=t,{element:u,padding:h=0}=vt(e,t)||{};if(u==null)return{};const d=Yr(h),m={x:n,y:r},f=wn(o),g=bn(f),p=await i.getDimensions(u),b=f==="y",S=b?"top":"left",O=b?"bottom":"right",E=b?"clientHeight":"clientWidth",A=s.reference[g]+s.reference[f]-m[f]-s.floating[g],I=m[f]-s.reference[f],F=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let _=F?F[E]:0;(!_||!await(i.isElement==null?void 0:i.isElement(F)))&&(_=a.floating[E]||s.floating[g]);const j=A/2-I/2,R=_/2-p[g]/2-1,K=wt(d[S],R),U=wt(d[O],R),G=K,ot=_-p[g]-U,z=_/2-p[g]/2+j,it=Xe(G,z,ot),$=!c.arrow&&Gt(o)!=null&&z!==it&&s.reference[g]/2-(z<G?K:U)-p[g]/2<0,Y=$?z<G?z-G:z-ot:0;return{[f]:m[f]+Y,data:{[f]:it,centerOffset:z-it-Y,...$&&{alignmentOffset:Y}},reset:$}}}),na=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:h=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...b}=vt(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const S=yt(o),O=dt(a),E=yt(a)===a,A=await(c.isRTL==null?void 0:c.isRTL(u.floating)),I=m||(E||!p?[Oe(a)]:Ys(a)),F=g!=="none";!m&&F&&I.push(...Js(a,p,g,A));const _=[a,...I],j=await c.detectOverflow(t,b),R=[];let K=((r=s.flip)==null?void 0:r.overflows)||[];if(h&&R.push(j[S]),d){const z=Gs(o,i,A);R.push(j[z[0]],j[z[1]])}if(K=[...K,{placement:o,overflows:R}],!R.every(z=>z<=0)){var U,G;const z=(((U=s.flip)==null?void 0:U.index)||0)+1,it=_[z];if(it&&(!(d==="alignment"?O!==dt(it):!1)||K.every(X=>dt(X.placement)===O?X.overflows[0]>0:!0)))return{data:{index:z,overflows:K},reset:{placement:it}};let $=(G=K.filter(Y=>Y.overflows[0]<=0).sort((Y,X)=>Y.overflows[1]-X.overflows[1])[0])==null?void 0:G.placement;if(!$)switch(f){case"bestFit":{var ot;const Y=(ot=K.filter(X=>{if(F){const q=dt(X.placement);return q===O||q==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(q=>q>0).reduce((q,Tt)=>q+Tt,0)]).sort((X,q)=>X[1]-q[1])[0])==null?void 0:ot[0];Y&&($=Y);break}case"initialPlacement":$=a;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function jn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Un(e){return zs.some(t=>e[t]>=0)}const ra=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=vt(e,t);switch(o){case"referenceHidden":{const i=await r.detectOverflow(t,{...s,elementContext:"reference"}),a=jn(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Un(a)}}}case"escaped":{const i=await r.detectOverflow(t,{...s,altBoundary:!0}),a=jn(i,n.floating);return{data:{escapedOffsets:a,escaped:Un(a)}}}default:return{}}}}},Xr=new Set(["left","top"]);async function oa(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=yt(n),a=Gt(n),c=dt(n)==="y",u=Xr.has(i)?-1:1,h=s&&c?-1:1,d=vt(t,e);let{mainAxis:m,crossAxis:f,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof g=="number"&&(f=a==="end"?g*-1:g),c?{x:f*h,y:m*u}:{x:m*u,y:f*h}}const ia=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,c=await oa(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},sa=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:S=>{let{x:O,y:E}=S;return{x:O,y:E}}},...u}=vt(e,t),h={x:n,y:r},d=await s.detectOverflow(t,u),m=dt(yt(o)),f=yn(m);let g=h[f],p=h[m];if(i){const S=f==="y"?"top":"left",O=f==="y"?"bottom":"right",E=g+d[S],A=g-d[O];g=Xe(E,g,A)}if(a){const S=m==="y"?"top":"left",O=m==="y"?"bottom":"right",E=p+d[S],A=p-d[O];p=Xe(E,p,A)}const b=c.fn({...t,[f]:g,[m]:p});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[f]:i,[m]:a}}}}}},aa=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=vt(e,t),h={x:n,y:r},d=dt(o),m=yn(d);let f=h[m],g=h[d];const p=vt(a,t),b=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const E=m==="y"?"height":"width",A=s.reference[m]-s.floating[E]+b.mainAxis,I=s.reference[m]+s.reference[E]-b.mainAxis;f<A?f=A:f>I&&(f=I)}if(u){var S,O;const E=m==="y"?"width":"height",A=Xr.has(yt(o)),I=s.reference[d]-s.floating[E]+(A&&((S=i.offset)==null?void 0:S[d])||0)+(A?0:b.crossAxis),F=s.reference[d]+s.reference[E]+(A?0:((O=i.offset)==null?void 0:O[d])||0)-(A?b.crossAxis:0);g<I?g=I:g>F&&(g=F)}return{[m]:f,[d]:g}}}},ca=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:c=()=>{},...u}=vt(e,t),h=await i.detectOverflow(t,u),d=yt(o),m=Gt(o),f=dt(o)==="y",{width:g,height:p}=s.floating;let b,S;d==="top"||d==="bottom"?(b=d,S=m===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(S=d,b=m==="end"?"top":"bottom");const O=p-h.top-h.bottom,E=g-h.left-h.right,A=wt(p-h[b],O),I=wt(g-h[S],E),F=!t.middlewareData.shift;let _=A,j=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=O),F&&!m){const K=et(h.left,0),U=et(h.right,0),G=et(h.top,0),ot=et(h.bottom,0);f?j=g-2*(K!==0||U!==0?K+U:et(h.left,h.right)):_=p-2*(G!==0||ot!==0?G+ot:et(h.top,h.bottom))}await c({...t,availableWidth:j,availableHeight:_});const R=await i.getDimensions(a.floating);return g!==R.width||p!==R.height?{reset:{rects:!0}}:{}}}};function Re(){return typeof window<"u"}function Yt(e){return qr(e)?(e.nodeName||"").toLowerCase():"#document"}function rt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function pt(e){var t;return(t=(qr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function qr(e){return Re()?e instanceof Node||e instanceof rt(e).Node:!1}function st(e){return Re()?e instanceof Element||e instanceof rt(e).Element:!1}function gt(e){return Re()?e instanceof HTMLElement||e instanceof rt(e).HTMLElement:!1}function Gn(e){return!Re()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof rt(e).ShadowRoot}const ua=new Set(["inline","contents"]);function ue(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=at(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!ua.has(o)}const la=new Set(["table","td","th"]);function da(e){return la.has(Yt(e))}const fa=[":popover-open",":modal"];function ke(e){return fa.some(t=>{try{return e.matches(t)}catch{return!1}})}const ha=["transform","translate","scale","rotate","perspective"],ga=["transform","translate","scale","rotate","perspective","filter"],pa=["paint","layout","strict","content"];function xn(e){const t=Sn(),n=st(e)?at(e):e;return ha.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||ga.some(r=>(n.willChange||"").includes(r))||pa.some(r=>(n.contain||"").includes(r))}function ma(e){let t=xt(e);for(;gt(t)&&!zt(t);){if(xn(t))return t;if(ke(t))return null;t=xt(t)}return null}function Sn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const va=new Set(["html","body","#document"]);function zt(e){return va.has(Yt(e))}function at(e){return rt(e).getComputedStyle(e)}function Ne(e){return st(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xt(e){if(Yt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Gn(e)&&e.host||pt(e);return Gn(t)?t.host:t}function Zr(e){const t=xt(e);return zt(t)?e.ownerDocument?e.ownerDocument.body:e.body:gt(t)&&ue(t)?t:Zr(t)}function re(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Zr(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=rt(o);if(s){const a=Ze(i);return t.concat(i,i.visualViewport||[],ue(o)?o:[],a&&n?re(a):[])}return t.concat(o,re(o,[],n))}function Ze(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Jr(e){const t=at(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=gt(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=Ae(n)!==s||Ae(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function An(e){return st(e)?e:e.contextElement}function Lt(e){const t=An(e);if(!gt(t))return ft(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Jr(t);let i=(s?Ae(n.width):n.width)/r,a=(s?Ae(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const ya=ft(0);function Qr(e){const t=rt(e);return!Sn()||!t.visualViewport?ya:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ba(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==rt(e)?!1:t}function Nt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=An(e);let i=ft(1);t&&(r?st(r)&&(i=Lt(r)):i=Lt(e));const a=ba(s,n,r)?Qr(s):ft(0);let c=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,h=o.width/i.x,d=o.height/i.y;if(s){const m=rt(s),f=r&&st(r)?rt(r):r;let g=m,p=Ze(g);for(;p&&r&&f!==g;){const b=Lt(p),S=p.getBoundingClientRect(),O=at(p),E=S.left+(p.clientLeft+parseFloat(O.paddingLeft))*b.x,A=S.top+(p.clientTop+parseFloat(O.paddingTop))*b.y;c*=b.x,u*=b.y,h*=b.x,d*=b.y,c+=E,u+=A,g=rt(p),p=Ze(g)}}return Ee({width:h,height:d,x:c,y:u})}function De(e,t){const n=Ne(e).scrollLeft;return t?t.left+n:Nt(pt(e)).left+n}function $r(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-De(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function wa(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=pt(r),a=t?ke(t.floating):!1;if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},u=ft(1);const h=ft(0),d=gt(r);if((d||!d&&!s)&&((Yt(r)!=="body"||ue(i))&&(c=Ne(r)),gt(r))){const f=Nt(r);u=Lt(r),h.x=f.x+r.clientLeft,h.y=f.y+r.clientTop}const m=i&&!d&&!s?$r(i,c):ft(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+h.x+m.x,y:n.y*u.y-c.scrollTop*u.y+h.y+m.y}}function xa(e){return Array.from(e.getClientRects())}function Sa(e){const t=pt(e),n=Ne(e),r=e.ownerDocument.body,o=et(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=et(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+De(e);const a=-n.scrollTop;return at(r).direction==="rtl"&&(i+=et(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const Yn=25;function Aa(e,t){const n=rt(e),r=pt(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,c=0;if(o){s=o.width,i=o.height;const h=Sn();(!h||h&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const u=De(r);if(u<=0){const h=r.ownerDocument,d=h.body,m=getComputedStyle(d),f=h.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,g=Math.abs(r.clientWidth-d.clientWidth-f);g<=Yn&&(s-=g)}else u<=Yn&&(s+=u);return{width:s,height:i,x:a,y:c}}const Oa=new Set(["absolute","fixed"]);function Ea(e,t){const n=Nt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=gt(e)?Lt(e):ft(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=o*s.x,u=r*s.y;return{width:i,height:a,x:c,y:u}}function Xn(e,t,n){let r;if(t==="viewport")r=Aa(e,n);else if(t==="document")r=Sa(pt(e));else if(st(t))r=Ea(t,n);else{const o=Qr(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ee(r)}function to(e,t){const n=xt(e);return n===t||!st(n)||zt(n)?!1:at(n).position==="fixed"||to(n,t)}function Ca(e,t){const n=t.get(e);if(n)return n;let r=re(e,[],!1).filter(a=>st(a)&&Yt(a)!=="body"),o=null;const s=at(e).position==="fixed";let i=s?xt(e):e;for(;st(i)&&!zt(i);){const a=at(i),c=xn(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&Oa.has(o.position)||ue(i)&&!c&&to(e,i))?r=r.filter(h=>h!==i):o=a,i=xt(i)}return t.set(e,r),r}function Pa(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?ke(t)?[]:Ca(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((u,h)=>{const d=Xn(t,h,o);return u.top=et(d.top,u.top),u.right=wt(d.right,u.right),u.bottom=wt(d.bottom,u.bottom),u.left=et(d.left,u.left),u},Xn(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Ta(e){const{width:t,height:n}=Jr(e);return{width:t,height:n}}function Ma(e,t,n){const r=gt(t),o=pt(t),s=n==="fixed",i=Nt(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=ft(0);function u(){c.x=De(o)}if(r||!r&&!s)if((Yt(t)!=="body"||ue(o))&&(a=Ne(t)),r){const f=Nt(t,!0,s,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else o&&u();s&&!r&&o&&u();const h=o&&!r&&!s?$r(o,a):ft(0),d=i.left+a.scrollLeft-c.x-h.x,m=i.top+a.scrollTop-c.y-h.y;return{x:d,y:m,width:i.width,height:i.height}}function Ke(e){return at(e).position==="static"}function qn(e,t){if(!gt(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 eo(e,t){const n=rt(e);if(ke(e))return n;if(!gt(e)){let o=xt(e);for(;o&&!zt(o);){if(st(o)&&!Ke(o))return o;o=xt(o)}return n}let r=qn(e,t);for(;r&&da(r)&&Ke(r);)r=qn(r,t);return r&&zt(r)&&Ke(r)&&!xn(r)?n:r||ma(e)||n}const Fa=async function(e){const t=this.getOffsetParent||eo,n=this.getDimensions,r=await n(e.floating);return{reference:Ma(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ia(e){return at(e).direction==="rtl"}const Ra={convertOffsetParentRelativeRectToViewportRelativeRect:wa,getDocumentElement:pt,getClippingRect:Pa,getOffsetParent:eo,getElementRects:Fa,getClientRects:xa,getDimensions:Ta,getScale:Lt,isElement:st,isRTL:Ia};function no(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ka(e,t){let n=null,r;const o=pt(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const u=e.getBoundingClientRect(),{left:h,top:d,width:m,height:f}=u;if(a||t(),!m||!f)return;const g=fe(d),p=fe(o.clientWidth-(h+m)),b=fe(o.clientHeight-(d+f)),S=fe(h),E={rootMargin:-g+"px "+-p+"px "+-b+"px "+-S+"px",threshold:et(0,wt(1,c))||1};let A=!0;function I(F){const _=F[0].intersectionRatio;if(_!==c){if(!A)return i();_?i(!1,_):r=setTimeout(()=>{i(!1,1e-7)},1e3)}_===1&&!no(u,e.getBoundingClientRect())&&i(),A=!1}try{n=new IntersectionObserver(I,{...E,root:o.ownerDocument})}catch{n=new IntersectionObserver(I,E)}n.observe(e)}return i(!0),s}function Na(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=An(e),h=o||s?[...u?re(u):[],...re(t)]:[];h.forEach(S=>{o&&S.addEventListener("scroll",n,{passive:!0}),s&&S.addEventListener("resize",n)});const d=u&&a?ka(u,n):null;let m=-1,f=null;i&&(f=new ResizeObserver(S=>{let[O]=S;O&&O.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var E;(E=f)==null||E.observe(t)})),n()}),u&&!c&&f.observe(u),f.observe(t));let g,p=c?Nt(e):null;c&&b();function b(){const S=Nt(e);p&&!no(p,S)&&n(),p=S,g=requestAnimationFrame(b)}return n(),()=>{var S;h.forEach(O=>{o&&O.removeEventListener("scroll",n),s&&O.removeEventListener("resize",n)}),d?.(),(S=f)==null||S.disconnect(),f=null,c&&cancelAnimationFrame(g)}}const Da=ia,_a=sa,Ba=na,La=ca,Wa=ra,Ka=ea,Va=aa,za=(e,t,n)=>{const r=new Map,o={platform:Ra,...n},s={...o.platform,_c:r};return ta(e,t,{...o,platform:s})};function Ft(e){return typeof e=="function"?e():e}function ro(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Zn(e,t){const n=ro(e);return Math.round(t*n)/n}function xc(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 Ha(e){const t=e.whileElementsMounted,n=x(()=>Ft(e.open)??!0),r=x(()=>Ft(e.middleware)),o=x(()=>Ft(e.transform)??!0),s=x(()=>Ft(e.placement)??"bottom"),i=x(()=>Ft(e.strategy)??"absolute"),a=x(()=>Ft(e.sideOffset)??0),c=x(()=>Ft(e.alignOffset)??0),u=e.reference;let h=T(0),d=T(0);const m=ut(null);let f=T(Bt(l(i))),g=T(Bt(l(s))),p=T(Bt({})),b=T(!1),S=!1;const O=x(()=>{const R=m.current?Zn(m.current,l(h)):l(h),K=m.current?Zn(m.current,l(d)):l(d);return l(o)?{position:l(f),left:"0",top:"0",transform:`translate(${R}px, ${K}px)`,...m.current&&ro(m.current)>=1.5&&{willChange:"transform"}}:{position:l(f),left:`${R}px`,top:`${K}px`}});let E;function A(){u.current===null||m.current===null||za(u.current,m.current,{middleware:l(r),placement:l(s),strategy:l(i)}).then(R=>{const K=u.current;if(ja(K)){y(p,{...l(p),hide:{...l(p).hide,referenceHidden:!0}},!0);return}if(!l(n)&&l(h)!==0&&l(d)!==0){const G=Math.max(Math.abs(l(a)),Math.abs(l(c)),15);if(R.x<=G&&R.y<=G)return}y(h,R.x,!0),y(d,R.y,!0),y(f,R.strategy,!0),y(g,R.placement,!0),y(p,R.middlewareData,!0),y(b,!0)})}function I(){typeof E=="function"&&(E(),E=void 0)}function F(){if(I(),t===void 0){A();return}l(n)&&(u.current===null||m.current===null||(E=t(u.current,m.current,A)))}function _(){l(n)||y(b,!1)}function j(){return[l(r),l(s),l(i),l(a),l(c),l(n)]}return Z(()=>{t===void 0&&l(n)&&A()}),Z(F),Z(()=>{if(t!==void 0){if(j(),!l(n)){S=!1;return}if(!l(b)){S=!1;return}if(!S){S=!0;return}A()}}),Z(_),Z(()=>I),{floating:m,reference:u,get strategy(){return l(f)},get placement(){return l(g)},get middlewareData(){return l(p)},get isPositioned(){return l(b)},get floatingStyles(){return l(O)},get update(){return A}}}function ja(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const Ua={top:"bottom",right:"left",bottom:"top",left:"right"},On=new Pt("Floating.Root"),Jn=new Pt("Floating.Content"),En=new Pt("Floating.Root");class Ce{static create(t=!1){return t?En.set(new Ce):On.set(new Ce)}anchorNode=ut(null);customAnchorNode=ut(null);triggerNode=ut(null);constructor(){Z(()=>{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 Pe{static create(t,n=!1){return n?Jn.set(new Pe(t,En.get())):Jn.set(new Pe(t,On.get()))}opts;root;contentRef=ut(null);wrapperRef=ut(null);arrowRef=ut(null);contentAttachment=Q(this.contentRef);wrapperAttachment=Q(this.wrapperRef);arrowAttachment=Q(this.arrowRef);arrowId=ut(vn());#t=x(()=>{if(typeof this.opts.style=="string")return te(this.opts.style);if(!this.opts.style)return{}});#e=void 0;#n=new ii(()=>this.arrowRef.current??void 0);#r=x(()=>this.#n?.width??0);#o=x(()=>this.#n?.height??0);#i=x(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#a=x(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#s=x(()=>l(this.#a).length>0);get hasExplicitBoundaries(){return l(this.#s)}set hasExplicitBoundaries(t){y(this.#s,t)}#c=x(()=>({padding:this.opts.collisionPadding.current,boundary:l(this.#a).filter(Ai),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return l(this.#c)}set detectOverflowOptions(t){y(this.#c,t)}#l=T(void 0);#u=T(void 0);#d=T(void 0);#h=T(void 0);#g=x(()=>[Da({mainAxis:this.opts.sideOffset.current+l(this.#o),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&_a({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?Va():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Ba({...this.detectOverflowOptions}),La({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:s}=t.reference;y(this.#l,n,!0),y(this.#u,r,!0),y(this.#d,o,!0),y(this.#h,s,!0)}}),this.arrowRef.current&&Ka({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),Ga({arrowWidth:l(this.#r),arrowHeight:l(this.#o)}),this.opts.hideWhenDetached.current&&Wa({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return l(this.#g)}set middleware(t){y(this.#g,t)}floating;#p=x(()=>Ya(this.floating.placement));get placedSide(){return l(this.#p)}set placedSide(t){y(this.#p,t)}#m=x(()=>Xa(this.floating.placement));get placedAlign(){return l(this.#m)}set placedAlign(t){y(this.#m,t)}#f=x(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return l(this.#f)}set arrowX(t){y(this.#f,t)}#v=x(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return l(this.#v)}set arrowY(t){y(this.#v,t)}#y=x(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return l(this.#y)}set cannotCenterArrow(t){y(this.#y,t)}#b=T();get contentZIndex(){return l(this.#b)}set contentZIndex(t){y(this.#b,t,!0)}#w=x(()=>Ua[this.placedSide]);get arrowBaseSide(){return l(this.#w)}set arrowBaseSide(t){y(this.#w,t)}#x=x(()=>({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":`${l(this.#l)}px`,"--bits-floating-available-height":`${l(this.#u)}px`,"--bits-floating-anchor-width":`${l(this.#d)}px`,"--bits-floating-anchor-height":`${l(this.#h)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...l(this.#t)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return l(this.#x)}set wrapperProps(t){y(this.#x,t)}#S=x(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:ir({...l(this.#t)}),...this.contentAttachment}));get props(){return l(this.#S)}set props(t){y(this.#S,t)}#A=x(()=>({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 l(this.#A)}set arrowStyle(t){y(this.#A,t)}constructor(t,n){this.opts=t,this.root=n,this.#e=t.updatePositionStrategy,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),H(()=>t.customAnchor.current,r=>{this.root.customAnchorNode.current=r}),this.floating=Ha({strategy:()=>this.opts.strategy.current,placement:()=>l(this.#i),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>Na(...r,{animationFrame:this.#e?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),Z(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),H(()=>this.contentRef.current,r=>{if(!r||!this.opts.enabled.current)return;const o=Qe(r),s=o.requestAnimationFrame(()=>{if(this.contentRef.current!==r||!this.opts.enabled.current)return;const i=o.getComputedStyle(r).zIndex;i!==this.contentZIndex&&(this.contentZIndex=i)});return()=>{o.cancelAnimationFrame(s)}}),Z(()=>{this.floating.floating.current=this.wrapperRef.current})}}class Te{static create(t,n=!1){return n?new Te(t,En.get()):new Te(t,On.get())}opts;root;constructor(t,n){this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=nr(t.virtualEl.current):n.triggerNode=t.ref}}function Ga(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[u,h]=Cn(n),d={start:"0%",center:"50%",end:"100%"}[h],m=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+c/2;let g="",p="";return u==="bottom"?(g=i?d:`${m}px`,p=`${-c}px`):u==="top"?(g=i?d:`${m}px`,p=`${r.floating.height+c}px`):u==="right"?(g=`${-c}px`,p=i?d:`${f}px`):u==="left"&&(g=`${r.floating.width+c}px`,p=i?d:`${f}px`),{data:{x:g,y:p}}}}}function Cn(e){const[t,n="center"]=e.split("-");return[t,n]}function Ya(e){return Cn(e)[0]}function Xa(e){return Cn(e)[1]}function Sc(e,t){k(t,!0);let n=v(t,"tooltip",3,!1);Ce.create(n());var r=M(),o=P(r);D(o,()=>t.children??L),C(e,r),N()}function Ac(e,t){k(t,!0);let n=v(t,"tooltip",3,!1);Te.create({id:w(()=>t.id),virtualEl:w(()=>t.virtualEl),ref:t.ref},n());var r=M(),o=P(r);D(o,()=>t.children??L),C(e,r),N()}function qa(e,t){k(t,!0);let n=v(t,"side",3,"bottom"),r=v(t,"sideOffset",3,0),o=v(t,"align",3,"center"),s=v(t,"alignOffset",3,0),i=v(t,"arrowPadding",3,0),a=v(t,"avoidCollisions",3,!0),c=v(t,"collisionBoundary",19,()=>[]),u=v(t,"collisionPadding",3,0),h=v(t,"hideWhenDetached",3,!1),d=v(t,"onPlaced",3,()=>{}),m=v(t,"sticky",3,"partial"),f=v(t,"updatePositionStrategy",3,"optimized"),g=v(t,"strategy",3,"fixed"),p=v(t,"dir",3,"ltr"),b=v(t,"style",19,()=>({})),S=v(t,"wrapperId",19,vn),O=v(t,"customAnchor",3,null),E=v(t,"tooltip",3,!1);const A=Pe.create({side:w(()=>n()),sideOffset:w(()=>r()),align:w(()=>o()),alignOffset:w(()=>s()),id:w(()=>t.id),arrowPadding:w(()=>i()),avoidCollisions:w(()=>a()),collisionBoundary:w(()=>c()),collisionPadding:w(()=>u()),hideWhenDetached:w(()=>h()),onPlaced:w(()=>d()),sticky:w(()=>m()),updatePositionStrategy:w(()=>f()),strategy:w(()=>g()),dir:w(()=>p()),style:w(()=>b()),enabled:w(()=>t.enabled),wrapperId:w(()=>S()),customAnchor:w(()=>O())},E()),I=x(()=>tt(A.wrapperProps,{style:{pointerEvents:"auto"}}));var F=M(),_=P(F);D(_,()=>t.content??L,()=>({props:A.props,wrapperProps:l(I)})),C(e,F),N()}function Za(e,t){k(t,!0),bo(()=>{t.onPlaced?.()});var n=M(),r=P(n);D(r,()=>t.content??L,()=>({props:{},wrapperProps:{}})),C(e,n),N()}function Ja(e,t){let n=v(t,"isStatic",3,!1),r=W(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var o=M(),s=P(o);{var i=c=>{Za(c,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},a=c=>{qa(c,J({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>r))};nt(s,c=>{n()?c(i):c(a,!1)})}C(e,o)}var Qa=ct("<!> <!>",1);function oo(e,t){k(t,!0);let n=v(t,"interactOutsideBehavior",3,"close"),r=v(t,"trapFocus",3,!0),o=v(t,"isValidEvent",3,()=>!1),s=v(t,"customAnchor",3,null),i=v(t,"isStatic",3,!1),a=v(t,"tooltip",3,!1),c=v(t,"contentPointerEvents",3,"auto"),u=W(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip","contentPointerEvents"]);Ja(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 t.strategy},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 a()},content:(d,m)=>{let f=()=>m?.().props,g=()=>m?.().wrapperProps;var p=Qa(),b=P(p);{var S=A=>{Se(A,{get preventScroll(){return t.preventScroll}})},O=A=>{Se(A,{get preventScroll(){return t.preventScroll}})};nt(b,A=>{t.forceMount&&t.enabled?A(S):t.forceMount||A(O,1)})}var E=ge(b,2);jr(E,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return r()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(I,F)=>{let _=()=>F?.().props;Hr(I,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(j,R)=>{zr(j,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return o()},get enabled(){return t.enabled},get ref(){return t.ref},children:(U,G)=>{let ot=()=>G?.().props;Ur(U,{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:(z,it)=>{var $=M(),Y=P($);{let X=x(()=>({props:tt(u,f(),ot(),_(),{style:{pointerEvents:c()}}),wrapperProps:g()}));D(Y,()=>t.popper??L,()=>l(X))}C(z,$)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),C(d,p)},$$slots:{content:!0}}),N()}function Oc(e,t){let n=v(t,"interactOutsideBehavior",3,"close"),r=v(t,"trapFocus",3,!0),o=v(t,"isValidEvent",3,()=>!1),s=v(t,"customAnchor",3,null),i=v(t,"isStatic",3,!1),a=W(t,["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);var c=M(),u=P(c);{var h=d=>{oo(d,J({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 r()},get isValidEvent(){return o()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>a))};nt(u,d=>{t.shouldRender&&d(h)})}C(e,c)}function Ec(e,t){let n=v(t,"interactOutsideBehavior",3,"close"),r=v(t,"trapFocus",3,!0),o=v(t,"isValidEvent",3,()=>!1),s=v(t,"customAnchor",3,null),i=v(t,"isStatic",3,!1),a=W(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);oo(e,J({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 r()},get isValidEvent(){return o()},get onFocusOutside(){return t.onFocusOutside}},()=>a,{forceMount:!0}))}function Cc(e,t){k(t,!0);let n=v(t,"open",15,!1),r=W(t,["$$slots","$$events","$$legacy","open"]);var o=M(),s=P(o);Et(s,()=>Ti,(i,a)=>{a(i,J(()=>r,{get open(){return n()},set open(c){n(c)}}))}),C(e,o),N()}function $a(e,t){let n=W(t,["$$slots","$$events","$$legacy"]);var r=M(),o=P(r);Et(o,()=>zi,(s,i)=>{i(s,J(()=>n))}),C(e,r)}function Pc(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class"]);var o=M(),s=P(o);{let i=x(()=>Ct("text-lg font-semibold",t.class));Et(s,()=>Fi,(a,c)=>{c(a,J({"data-slot":"alert-dialog-title",get class(){return l(i)}},()=>r,{get ref(){return n()},set ref(u){n(u)}}))})}C(e,o),N()}function Tc(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class"]);var o=M(),s=P(o);{let i=x(()=>t.class||Ct(er()));Et(s,()=>Ri,(a,c)=>{c(a,J({"data-slot":"alert-dialog-action",get class(){return l(i)}},()=>r,{get ref(){return n()},set ref(u){n(u)}}))})}C(e,o),N()}function Mc(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class"]);var o=M(),s=P(o);{let i=x(()=>t.class||Ct(er({variant:"ghost"})));Et(s,()=>Ni,(a,c)=>{c(a,J({"data-slot":"alert-dialog-cancel",get class(){return l(i)}},()=>r,{get ref(){return n()},set ref(u){n(u)}}))})}C(e,o),N()}var tc=ct("<div><!></div>");function Fc(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class","children"]);var o=tc();Ot(o,i=>({"data-slot":"alert-dialog-footer",class:i,...r}),[()=>Ct("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t.class)]);var s=St(o);D(s,()=>t.children??L),At(o),tr(o,i=>n(i),()=>n()),C(e,o),N()}var ec=ct("<div><!></div>");function Ic(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class","children"]);var o=ec();Ot(o,i=>({"data-slot":"alert-dialog-header",class:i,...r}),[()=>Ct("flex flex-col gap-2 text-center sm:text-start",t.class)]);var s=St(o);D(s,()=>t.children??L),At(o),tr(o,i=>n(i),()=>n()),C(e,o),N()}function nc(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class"]);var o=M(),s=P(o);{let i=x(()=>Ct("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t.class));Et(s,()=>Ws,(a,c)=>{c(a,J({"data-slot":"alert-dialog-overlay",get class(){return l(i)}},()=>r,{get ref(){return n()},set ref(u){n(u)}}))})}C(e,o),N()}var rc=ct("<!> <!>",1);function Rc(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class","portalProps"]);$a(e,J(()=>t.portalProps,{children:(o,s)=>{var i=rc(),a=P(i);nc(a,{});var c=ge(a,2);{let u=x(()=>Ct("bg-[var(--color-bg-elevated)] border-[var(--color-border)] text-[var(--color-text-primary)] 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t.class));Et(c,()=>Bs,(h,d)=>{d(h,J({"data-slot":"alert-dialog-content",get class(){return l(u)}},()=>r,{get ref(){return n()},set ref(m){n(m)}}))})}C(o,i)},$$slots:{default:!0}})),N()}function kc(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class"]);var o=M(),s=P(o);{let i=x(()=>Ct("text-[var(--color-text-secondary)] text-sm",t.class));Et(s,()=>Vs,(a,c)=>{c(a,J({"data-slot":"alert-dialog-description",get class(){return l(i)}},()=>r,{get ref(){return n()},set ref(u){n(u)}}))})}C(e,o),N()}export{Ws as $,Rc as A,Tc as B,Pt as C,$e as D,Ie as E,Ac as F,Cc as G,Lr as H,Kr as I,_r as J,Nr as K,pc as L,wc as M,Wr as N,Dr as O,Ue as P,dn as Q,Vr as R,jt as S,zi as T,en as U,sn as V,jr as W,Hr as X,zr as Y,Ur as Z,Se as _,Q as a,Fi as a0,ir as a1,Rr as a2,Ir as a3,ps as a4,pe as a5,ne as a6,vi as a7,mi as a8,hr as a9,pi as aa,fr as ab,mc as ac,vc as ad,yc as ae,bc as af,_t as ag,Nn as ah,fc as ai,lt as aj,Ei as ak,Ao as al,mr as am,Oo as an,Vs as ao,Kt as b,tn as c,dr as d,fs as e,Ut as f,hc as g,w as h,ht as i,se as j,je as k,gc as l,tt as m,Fe as n,un as o,B as p,Ec as q,Oc as r,xc as s,Sc as t,Ic as u,Pc as v,H as w,kc as x,Fc as y,Mc as z};
@@ -1 +1 @@
1
- import{c as A,a as y,p as me,b as M,s as Q,f as X}from"./usxM-xOh.js";import{J as be,aL as ge,aT as ve,a4 as p,g as o,s as b,e as ke,p as P,a0 as S,b as z,a3 as Z,c as q,ae as ye,r as D,t as $,l as L,d as O,a as _e,n as Ce,m as U}from"./CCA2E2CK.js";import{i as N}from"./yUs562n0.js";import{c as ee}from"./NuvuAeCX.js";import{s as V,p as d,r as j,l as W}from"./DHholpIc.js";import{c as te}from"./D8mTIH9Y.js";import{C as re}from"./BZ2Q53D5.js";import{H as xe,S as we}from"./DO03XMS-.js";import{i as se}from"./DIBaaeCL.js";import{s as Y,a as ne}from"./DkuxRPZv.js";import{C as ie,a as ae,w as H,E as Re,S as Se,b as B,c as F,g as qe,i as De,d as Pe,e as K,f as ze,h as k,m as Ne}from"./e8QVPHqJ.js";const Ee=[];function oe(t,e=!1,r=!1){return I(t,new Map,"",Ee,null,r)}function I(t,e,r,s,n=null,l=!1){if(typeof t=="object"&&t!==null){var c=e.get(t);if(c!==void 0)return c;if(t instanceof Map)return new Map(t);if(t instanceof Set)return new Set(t);if(be(t)){var a=Array(t.length);e.set(t,a),n!==null&&e.set(n,a);for(var i=0;i<t.length;i+=1){var g=t[i];i in t&&(a[i]=I(g,e,r,s,null,l))}return a}if(ge(t)===ve){a={},e.set(t,a),n!==null&&e.set(n,a);for(var m of Object.keys(t))a[m]=I(t[m],e,r,s,null,l);return a}if(t instanceof Date)return structuredClone(t);if(typeof t.toJSON=="function"&&!l)return I(t.toJSON(),e,r,s,t)}if(t instanceof EventTarget)return t;try{return structuredClone(t)}catch{return t}}const ue=Pe({component:"checkbox",parts:["root","group","group-label","input"]}),ce=new ie("Checkbox.Group");class de{static create(e){return ce.set(new de(e))}opts;attachment;#e=ke(void 0);get labelId(){return o(this.#e)}set labelId(e){b(this.#e,e,!0)}constructor(e){this.opts=e,this.attachment=ae(this.opts.ref)}addValue(e){if(e&&!this.opts.value.current.includes(e)){const r=[...oe(this.opts.value.current),e];if(this.opts.value.current=r,K(this.opts.value.current,r))return;this.opts.onValueChange.current(r)}}removeValue(e){if(!e||this.opts.value.current.indexOf(e)===-1)return;const s=this.opts.value.current.filter(n=>n!==e);this.opts.value.current=s,!K(this.opts.value.current,s)&&this.opts.onValueChange.current(s)}#t=p(()=>({id:this.opts.id.current,role:"group","aria-labelledby":this.labelId,"data-disabled":B(this.opts.disabled.current),[ue.group]:"",...this.attachment}));get props(){return o(this.#t)}set props(e){b(this.#t,e)}}const le=new ie("Checkbox.Root");class J{static create(e,r=null){return le.set(new J(e,r))}opts;group;#e=p(()=>this.group&&this.group.opts.name.current?this.group.opts.name.current:this.opts.name.current);get trueName(){return o(this.#e)}set trueName(e){b(this.#e,e)}#t=p(()=>this.group&&this.group.opts.required.current?!0:this.opts.required.current);get trueRequired(){return o(this.#t)}set trueRequired(e){b(this.#t,e)}#r=p(()=>this.group&&this.group.opts.disabled.current?!0:this.opts.disabled.current);get trueDisabled(){return o(this.#r)}set trueDisabled(e){b(this.#r,e)}#n=p(()=>this.group&&this.group.opts.readonly.current?!0:this.opts.readonly.current);get trueReadonly(){return o(this.#n)}set trueReadonly(e){b(this.#n,e)}attachment;constructor(e,r){this.opts=e,this.group=r,this.attachment=ae(this.opts.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),H.pre([()=>oe(this.group?.opts.value.current),()=>this.opts.value.current],([s,n])=>{!s||!n||(this.opts.checked.current=s.includes(n))}),H.pre(()=>this.opts.checked.current,s=>{this.group&&(s?this.group?.addValue(this.opts.value.current):this.group?.removeValue(this.opts.value.current))})}onkeydown(e){if(!(this.trueDisabled||this.trueReadonly)){if(e.key===Re){e.preventDefault(),this.opts.type.current==="submit"&&e.currentTarget.closest("form")?.requestSubmit();return}e.key===Se&&(e.preventDefault(),this.#s())}}#s(){this.opts.indeterminate.current?(this.opts.indeterminate.current=!1,this.opts.checked.current=!0):this.opts.checked.current=!this.opts.checked.current}onclick(e){if(!(this.trueDisabled||this.trueReadonly)){if(this.opts.type.current==="submit"){this.#s();return}e.preventDefault(),this.#s()}}#i=p(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current}));get snippetProps(){return o(this.#i)}set snippetProps(e){b(this.#i,e)}#a=p(()=>({id:this.opts.id.current,role:"checkbox",type:this.opts.type.current,disabled:this.trueDisabled,"aria-checked":qe(this.opts.checked.current,this.opts.indeterminate.current),"aria-required":F(this.trueRequired),"aria-readonly":F(this.trueReadonly),"data-disabled":B(this.trueDisabled),"data-readonly":B(this.trueReadonly),"data-state":Ie(this.opts.checked.current,this.opts.indeterminate.current),[ue.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return o(this.#a)}set props(e){b(this.#a,e)}}class G{static create(){return new G(le.get())}root;#e=p(()=>this.root.group?!!(this.root.opts.value.current!==void 0&&this.root.group.opts.value.current.includes(this.root.opts.value.current)):this.root.opts.checked.current);get trueChecked(){return o(this.#e)}set trueChecked(e){b(this.#e,e)}#t=p(()=>!!this.root.trueName);get shouldRender(){return o(this.#t)}set shouldRender(e){b(this.#t,e)}constructor(e){this.root=e,this.onfocus=this.onfocus.bind(this)}onfocus(e){De(this.root.opts.ref.current)&&this.root.opts.ref.current.focus()}#r=p(()=>({type:"checkbox",checked:this.root.opts.checked.current===!0,disabled:this.root.trueDisabled,required:this.root.trueRequired,name:this.root.trueName,value:this.root.opts.value.current,readonly:this.root.trueReadonly,onfocus:this.onfocus}));get props(){return o(this.#r)}set props(e){b(this.#r,e)}}function Ie(t,e){return e?"indeterminate":t?"checked":"unchecked"}function Ae(t,e){P(e,!1);const r=G.create();se();var s=A(),n=S(s);{var l=c=>{xe(c,V(()=>r.props))};N(n,c=>{r.shouldRender&&c(l)})}y(t,s),z()}var Me=M("<button><!></button>"),Te=M("<!> <!>",1);function Oe(t,e){const r=me();P(e,!0);let s=d(e,"checked",15,!1),n=d(e,"ref",15,null),l=d(e,"disabled",3,!1),c=d(e,"required",3,!1),a=d(e,"name",3,void 0),i=d(e,"value",3,"on"),g=d(e,"id",19,()=>ze(r)),m=d(e,"indeterminate",15,!1),h=d(e,"type",3,"button"),u=j(e,["$$slots","$$events","$$legacy","checked","ref","onCheckedChange","children","disabled","required","name","value","id","indeterminate","onIndeterminateChange","child","type","readonly"]);const v=ce.getOr(null);v&&i()&&(v.opts.value.current.includes(i())?s(!0):s(!1)),H.pre(()=>i(),()=>{v&&i()&&(v.opts.value.current.includes(i())?s(!0):s(!1))});const _=J.create({checked:k(()=>s(),f=>{s(f),e.onCheckedChange?.(f)}),disabled:k(()=>l()??!1),required:k(()=>c()),name:k(()=>a()),value:k(()=>i()),id:k(()=>g()),ref:k(()=>n(),f=>n(f)),indeterminate:k(()=>m(),f=>{m(f),e.onIndeterminateChange?.(f)}),type:k(()=>h()),readonly:k(()=>!!e.readonly)},v),R=p(()=>Ne({...u},_.props));var C=Te(),E=S(C);{var x=f=>{var w=A(),T=S(w);{let pe=p(()=>({props:o(R),..._.snippetProps}));Y(T,()=>e.child,()=>o(pe))}y(f,w)},he=f=>{var w=Me();ne(w,()=>({...o(R)}));var T=q(w);Y(T,()=>e.children??ye,()=>_.snippetProps),D(w),y(f,w)};N(E,f=>{e.child?f(x):f(he,!1)})}var fe=Z(E,2);Ae(fe,{}),y(t,C),z()}var He=M('<span class="select-item-text"> </span> <!>',1);function et(t,e){P(e,!0);let r=d(e,"disabled",3,!1),s=j(e,["$$slots","$$events","$$legacy","value","label","disabled","class"]);var n=A(),l=S(n);{const c=(i,g)=>{let m=()=>g?.().selected;var h=He(),u=S(h),v=q(u,!0);D(u);var _=Z(u,2);{var R=C=>{re(C,{size:12,class:"select-item-check"})};N(_,C=>{m()&&C(R)})}$(()=>Q(v,e.label??e.value)),y(i,h)};let a=p(()=>te("select-item",e.class));ee(l,()=>we,(i,g)=>{g(i,V({get value(){return e.value},get label(){return e.label},get disabled(){return r()},get class(){return o(a)}},()=>s,{children:c,$$slots:{default:!0}}))})}y(t,n),z()}var Be=X("<title> </title>"),Ve=X('<svg><!><path d="M8 15H24V17H8z"></path></svg>');function je(t,e){const r=W(e,["children","$$slots","$$events","$$legacy"]),s=W(r,["size","title"]);P(e,!1);const n=U(),l=U();let c=d(e,"size",8,16),a=d(e,"title",8,void 0);L(()=>(O(r),O(a())),()=>{b(n,r["aria-label"]||r["aria-labelledby"]||a())}),L(()=>(o(n),O(r)),()=>{b(l,{"aria-hidden":o(n)?void 0:!0,role:o(n)?"img":void 0,focusable:Number(r.tabindex)===0?!0:void 0})}),_e(),se();var i=Ve();ne(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:c(),height:c(),...o(l),...s}));var g=q(i);{var m=h=>{var u=Be(),v=q(u,!0);D(u),$(()=>Q(v,a())),y(h,u)};N(g,h=>{a()&&h(m)})}Ce(),D(i),y(t,i),z()}var Je=M('<span class="flex items-center justify-center text-current"><!></span>');function tt(t,e){P(e,!0);let r=d(e,"checked",15,!1),s=d(e,"indeterminate",15,!1),n=d(e,"ref",15,null),l=j(e,["$$slots","$$events","$$legacy","class","checked","indeterminate","ref"]);var c=A(),a=S(c);{const i=(m,h)=>{let u=()=>h?.().checked,v=()=>h?.().indeterminate;var _=Je(),R=q(_);{var C=x=>{je(x,{class:"size-3"})},E=x=>{re(x,{class:"size-3"})};N(R,x=>{v()?x(C):u()&&x(E,1)})}D(_),y(m,_)};let g=p(()=>te("peer inline-flex size-4 shrink-0 items-center justify-center rounded-sm border border-[var(--color-border)] bg-transparent transition-colors","hover:border-[var(--color-accent)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-accent)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-bg-primary)]","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:border-[var(--color-accent)] data-[state=checked]:bg-[var(--color-accent)] data-[state=checked]:text-white",e.class));ee(a,()=>Oe,(m,h)=>{h(m,V({get class(){return o(g)}},()=>l,{get checked(){return r()},set checked(u){r(u)},get indeterminate(){return s()},set indeterminate(u){s(u)},get ref(){return n()},set ref(u){n(u)},children:i,$$slots:{default:!0}}))})}y(t,c),z()}export{tt as C,et as S,de as a,oe as s};
1
+ import{c as A,a as y,p as me,b as M,s as Q,f as X}from"./COik51fd.js";import{J as be,aL as ge,aT as ve,a4 as p,g as o,s as b,e as ke,p as P,a0 as S,b as z,a3 as Z,c as q,ae as ye,r as D,t as $,l as L,d as O,a as _e,n as Ce,m as U}from"./BenpwI6m.js";import{i as N}from"./Dvv4bkXH.js";import{c as ee}from"./CbwDFpOn.js";import{s as V,p as d,r as j,l as W}from"./wWaI7EIw.js";import{c as te}from"./DAD7hf2c.js";import{C as re}from"./DtsqpIgr.js";import{H as xe,S as we}from"./B17cx9Sm.js";import{i as se}from"./BSBiehHY.js";import{s as Y,a as ne}from"./CStpN6HQ.js";import{C as ie,a as ae,w as H,E as Re,S as Se,b as B,c as F,g as qe,i as De,d as Pe,e as K,f as ze,h as k,m as Ne}from"./DkilSMcP.js";const Ee=[];function oe(t,e=!1,r=!1){return I(t,new Map,"",Ee,null,r)}function I(t,e,r,s,n=null,l=!1){if(typeof t=="object"&&t!==null){var c=e.get(t);if(c!==void 0)return c;if(t instanceof Map)return new Map(t);if(t instanceof Set)return new Set(t);if(be(t)){var a=Array(t.length);e.set(t,a),n!==null&&e.set(n,a);for(var i=0;i<t.length;i+=1){var g=t[i];i in t&&(a[i]=I(g,e,r,s,null,l))}return a}if(ge(t)===ve){a={},e.set(t,a),n!==null&&e.set(n,a);for(var m of Object.keys(t))a[m]=I(t[m],e,r,s,null,l);return a}if(t instanceof Date)return structuredClone(t);if(typeof t.toJSON=="function"&&!l)return I(t.toJSON(),e,r,s,t)}if(t instanceof EventTarget)return t;try{return structuredClone(t)}catch{return t}}const ue=Pe({component:"checkbox",parts:["root","group","group-label","input"]}),ce=new ie("Checkbox.Group");class de{static create(e){return ce.set(new de(e))}opts;attachment;#e=ke(void 0);get labelId(){return o(this.#e)}set labelId(e){b(this.#e,e,!0)}constructor(e){this.opts=e,this.attachment=ae(this.opts.ref)}addValue(e){if(e&&!this.opts.value.current.includes(e)){const r=[...oe(this.opts.value.current),e];if(this.opts.value.current=r,K(this.opts.value.current,r))return;this.opts.onValueChange.current(r)}}removeValue(e){if(!e||this.opts.value.current.indexOf(e)===-1)return;const s=this.opts.value.current.filter(n=>n!==e);this.opts.value.current=s,!K(this.opts.value.current,s)&&this.opts.onValueChange.current(s)}#t=p(()=>({id:this.opts.id.current,role:"group","aria-labelledby":this.labelId,"data-disabled":B(this.opts.disabled.current),[ue.group]:"",...this.attachment}));get props(){return o(this.#t)}set props(e){b(this.#t,e)}}const le=new ie("Checkbox.Root");class J{static create(e,r=null){return le.set(new J(e,r))}opts;group;#e=p(()=>this.group&&this.group.opts.name.current?this.group.opts.name.current:this.opts.name.current);get trueName(){return o(this.#e)}set trueName(e){b(this.#e,e)}#t=p(()=>this.group&&this.group.opts.required.current?!0:this.opts.required.current);get trueRequired(){return o(this.#t)}set trueRequired(e){b(this.#t,e)}#r=p(()=>this.group&&this.group.opts.disabled.current?!0:this.opts.disabled.current);get trueDisabled(){return o(this.#r)}set trueDisabled(e){b(this.#r,e)}#n=p(()=>this.group&&this.group.opts.readonly.current?!0:this.opts.readonly.current);get trueReadonly(){return o(this.#n)}set trueReadonly(e){b(this.#n,e)}attachment;constructor(e,r){this.opts=e,this.group=r,this.attachment=ae(this.opts.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),H.pre([()=>oe(this.group?.opts.value.current),()=>this.opts.value.current],([s,n])=>{!s||!n||(this.opts.checked.current=s.includes(n))}),H.pre(()=>this.opts.checked.current,s=>{this.group&&(s?this.group?.addValue(this.opts.value.current):this.group?.removeValue(this.opts.value.current))})}onkeydown(e){if(!(this.trueDisabled||this.trueReadonly)){if(e.key===Re){e.preventDefault(),this.opts.type.current==="submit"&&e.currentTarget.closest("form")?.requestSubmit();return}e.key===Se&&(e.preventDefault(),this.#s())}}#s(){this.opts.indeterminate.current?(this.opts.indeterminate.current=!1,this.opts.checked.current=!0):this.opts.checked.current=!this.opts.checked.current}onclick(e){if(!(this.trueDisabled||this.trueReadonly)){if(this.opts.type.current==="submit"){this.#s();return}e.preventDefault(),this.#s()}}#i=p(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current}));get snippetProps(){return o(this.#i)}set snippetProps(e){b(this.#i,e)}#a=p(()=>({id:this.opts.id.current,role:"checkbox",type:this.opts.type.current,disabled:this.trueDisabled,"aria-checked":qe(this.opts.checked.current,this.opts.indeterminate.current),"aria-required":F(this.trueRequired),"aria-readonly":F(this.trueReadonly),"data-disabled":B(this.trueDisabled),"data-readonly":B(this.trueReadonly),"data-state":Ie(this.opts.checked.current,this.opts.indeterminate.current),[ue.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return o(this.#a)}set props(e){b(this.#a,e)}}class G{static create(){return new G(le.get())}root;#e=p(()=>this.root.group?!!(this.root.opts.value.current!==void 0&&this.root.group.opts.value.current.includes(this.root.opts.value.current)):this.root.opts.checked.current);get trueChecked(){return o(this.#e)}set trueChecked(e){b(this.#e,e)}#t=p(()=>!!this.root.trueName);get shouldRender(){return o(this.#t)}set shouldRender(e){b(this.#t,e)}constructor(e){this.root=e,this.onfocus=this.onfocus.bind(this)}onfocus(e){De(this.root.opts.ref.current)&&this.root.opts.ref.current.focus()}#r=p(()=>({type:"checkbox",checked:this.root.opts.checked.current===!0,disabled:this.root.trueDisabled,required:this.root.trueRequired,name:this.root.trueName,value:this.root.opts.value.current,readonly:this.root.trueReadonly,onfocus:this.onfocus}));get props(){return o(this.#r)}set props(e){b(this.#r,e)}}function Ie(t,e){return e?"indeterminate":t?"checked":"unchecked"}function Ae(t,e){P(e,!1);const r=G.create();se();var s=A(),n=S(s);{var l=c=>{xe(c,V(()=>r.props))};N(n,c=>{r.shouldRender&&c(l)})}y(t,s),z()}var Me=M("<button><!></button>"),Te=M("<!> <!>",1);function Oe(t,e){const r=me();P(e,!0);let s=d(e,"checked",15,!1),n=d(e,"ref",15,null),l=d(e,"disabled",3,!1),c=d(e,"required",3,!1),a=d(e,"name",3,void 0),i=d(e,"value",3,"on"),g=d(e,"id",19,()=>ze(r)),m=d(e,"indeterminate",15,!1),h=d(e,"type",3,"button"),u=j(e,["$$slots","$$events","$$legacy","checked","ref","onCheckedChange","children","disabled","required","name","value","id","indeterminate","onIndeterminateChange","child","type","readonly"]);const v=ce.getOr(null);v&&i()&&(v.opts.value.current.includes(i())?s(!0):s(!1)),H.pre(()=>i(),()=>{v&&i()&&(v.opts.value.current.includes(i())?s(!0):s(!1))});const _=J.create({checked:k(()=>s(),f=>{s(f),e.onCheckedChange?.(f)}),disabled:k(()=>l()??!1),required:k(()=>c()),name:k(()=>a()),value:k(()=>i()),id:k(()=>g()),ref:k(()=>n(),f=>n(f)),indeterminate:k(()=>m(),f=>{m(f),e.onIndeterminateChange?.(f)}),type:k(()=>h()),readonly:k(()=>!!e.readonly)},v),R=p(()=>Ne({...u},_.props));var C=Te(),E=S(C);{var x=f=>{var w=A(),T=S(w);{let pe=p(()=>({props:o(R),..._.snippetProps}));Y(T,()=>e.child,()=>o(pe))}y(f,w)},he=f=>{var w=Me();ne(w,()=>({...o(R)}));var T=q(w);Y(T,()=>e.children??ye,()=>_.snippetProps),D(w),y(f,w)};N(E,f=>{e.child?f(x):f(he,!1)})}var fe=Z(E,2);Ae(fe,{}),y(t,C),z()}var He=M('<span class="select-item-text"> </span> <!>',1);function et(t,e){P(e,!0);let r=d(e,"disabled",3,!1),s=j(e,["$$slots","$$events","$$legacy","value","label","disabled","class"]);var n=A(),l=S(n);{const c=(i,g)=>{let m=()=>g?.().selected;var h=He(),u=S(h),v=q(u,!0);D(u);var _=Z(u,2);{var R=C=>{re(C,{size:12,class:"select-item-check"})};N(_,C=>{m()&&C(R)})}$(()=>Q(v,e.label??e.value)),y(i,h)};let a=p(()=>te("select-item",e.class));ee(l,()=>we,(i,g)=>{g(i,V({get value(){return e.value},get label(){return e.label},get disabled(){return r()},get class(){return o(a)}},()=>s,{children:c,$$slots:{default:!0}}))})}y(t,n),z()}var Be=X("<title> </title>"),Ve=X('<svg><!><path d="M8 15H24V17H8z"></path></svg>');function je(t,e){const r=W(e,["children","$$slots","$$events","$$legacy"]),s=W(r,["size","title"]);P(e,!1);const n=U(),l=U();let c=d(e,"size",8,16),a=d(e,"title",8,void 0);L(()=>(O(r),O(a())),()=>{b(n,r["aria-label"]||r["aria-labelledby"]||a())}),L(()=>(o(n),O(r)),()=>{b(l,{"aria-hidden":o(n)?void 0:!0,role:o(n)?"img":void 0,focusable:Number(r.tabindex)===0?!0:void 0})}),_e(),se();var i=Ve();ne(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:c(),height:c(),...o(l),...s}));var g=q(i);{var m=h=>{var u=Be(),v=q(u,!0);D(u),$(()=>Q(v,a())),y(h,u)};N(g,h=>{a()&&h(m)})}Ce(),D(i),y(t,i),z()}var Je=M('<span class="flex items-center justify-center text-current"><!></span>');function tt(t,e){P(e,!0);let r=d(e,"checked",15,!1),s=d(e,"indeterminate",15,!1),n=d(e,"ref",15,null),l=j(e,["$$slots","$$events","$$legacy","class","checked","indeterminate","ref"]);var c=A(),a=S(c);{const i=(m,h)=>{let u=()=>h?.().checked,v=()=>h?.().indeterminate;var _=Je(),R=q(_);{var C=x=>{je(x,{class:"size-3"})},E=x=>{re(x,{class:"size-3"})};N(R,x=>{v()?x(C):u()&&x(E,1)})}D(_),y(m,_)};let g=p(()=>te("peer inline-flex size-4 shrink-0 items-center justify-center rounded-sm border border-[var(--color-border)] bg-transparent transition-colors","hover:border-[var(--color-accent)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-accent)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-bg-primary)]","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:border-[var(--color-accent)] data-[state=checked]:bg-[var(--color-accent)] data-[state=checked]:text-white",e.class));ee(a,()=>Oe,(m,h)=>{h(m,V({get class(){return o(g)}},()=>l,{get checked(){return r()},set checked(u){r(u)},get indeterminate(){return s()},set indeterminate(u){s(u)},get ref(){return n()},set ref(u){n(u)},children:i,$$slots:{default:!0}}))})}y(t,c),z()}export{tt as C,et as S,de as a,oe as s};
@@ -1 +1 @@
1
- import{a as c,s as M,f as b}from"./usxM-xOh.js";import{i as C}from"./DIBaaeCL.js";import{p as k,l as v,s as u,d as n,g as s,a as R,c as p,n as A,r as m,b as B,m as g,t as N}from"./CCA2E2CK.js";import{i as P}from"./yUs562n0.js";import{a as Y}from"./DkuxRPZv.js";import{l as h,p as _}from"./DHholpIc.js";var j=b("<title> </title>"),q=b('<svg><!><path d="M22 16 12 26 10.6 24.6 19.2 16 10.6 7.4 12 6z"></path></svg>');function L(x,t){const e=h(t,["children","$$slots","$$events","$$legacy"]),w=h(e,["size","title"]);k(t,!1);const a=g(),d=g();let f=_(t,"size",8,16),i=_(t,"title",8,void 0);v(()=>(n(e),n(i())),()=>{u(a,e["aria-label"]||e["aria-labelledby"]||i())}),v(()=>(s(a),n(e)),()=>{u(d,{"aria-hidden":s(a)?void 0:!0,role:s(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),R(),C();var r=q();Y(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...s(d),...w}));var z=p(r);{var $=l=>{var o=j(),y=p(o,!0);m(o),N(()=>M(y,i())),c(l,o)};P(z,l=>{i()&&l($)})}A(),m(r),c(x,r),B()}var D=b("<title> </title>"),E=b('<svg><!><path d="M13 24 4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"></path></svg>');function O(x,t){const e=h(t,["children","$$slots","$$events","$$legacy"]),w=h(e,["size","title"]);k(t,!1);const a=g(),d=g();let f=_(t,"size",8,16),i=_(t,"title",8,void 0);v(()=>(n(e),n(i())),()=>{u(a,e["aria-label"]||e["aria-labelledby"]||i())}),v(()=>(s(a),n(e)),()=>{u(d,{"aria-hidden":s(a)?void 0:!0,role:s(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),R(),C();var r=E();Y(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...s(d),...w}));var z=p(r);{var $=l=>{var o=D(),y=p(o,!0);m(o),N(()=>M(y,i())),c(l,o)};P(z,l=>{i()&&l($)})}A(),m(r),c(x,r),B()}export{O as C,L as a};
1
+ import{a as c,s as M,f as b}from"./COik51fd.js";import{i as C}from"./BSBiehHY.js";import{p as k,l as v,s as u,d as n,g as s,a as R,c as p,n as A,r as m,b as B,m as g,t as N}from"./BenpwI6m.js";import{i as P}from"./Dvv4bkXH.js";import{a as Y}from"./CStpN6HQ.js";import{l as h,p as _}from"./wWaI7EIw.js";var j=b("<title> </title>"),q=b('<svg><!><path d="M22 16 12 26 10.6 24.6 19.2 16 10.6 7.4 12 6z"></path></svg>');function L(x,t){const e=h(t,["children","$$slots","$$events","$$legacy"]),w=h(e,["size","title"]);k(t,!1);const a=g(),d=g();let f=_(t,"size",8,16),i=_(t,"title",8,void 0);v(()=>(n(e),n(i())),()=>{u(a,e["aria-label"]||e["aria-labelledby"]||i())}),v(()=>(s(a),n(e)),()=>{u(d,{"aria-hidden":s(a)?void 0:!0,role:s(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),R(),C();var r=q();Y(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...s(d),...w}));var z=p(r);{var $=l=>{var o=j(),y=p(o,!0);m(o),N(()=>M(y,i())),c(l,o)};P(z,l=>{i()&&l($)})}A(),m(r),c(x,r),B()}var D=b("<title> </title>"),E=b('<svg><!><path d="M13 24 4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"></path></svg>');function O(x,t){const e=h(t,["children","$$slots","$$events","$$legacy"]),w=h(e,["size","title"]);k(t,!1);const a=g(),d=g();let f=_(t,"size",8,16),i=_(t,"title",8,void 0);v(()=>(n(e),n(i())),()=>{u(a,e["aria-label"]||e["aria-labelledby"]||i())}),v(()=>(s(a),n(e)),()=>{u(d,{"aria-hidden":s(a)?void 0:!0,role:s(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),R(),C();var r=E();Y(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...s(d),...w}));var z=p(r);{var $=l=>{var o=D(),y=p(o,!0);m(o),N(()=>M(y,i())),c(l,o)};P(z,l=>{i()&&l($)})}A(),m(r),c(x,r),B()}export{O as C,L as a};
@@ -1 +1 @@
1
- import{P as T,W as u,Q as k,h as _,D as v,A as g,j as l,x as A,az as m,G as S,i as w,q as E,Y as R,u as D,Z as M,H as x,v as B,k as F,w as b,aA as N,aB as Y,a7 as H,S as I,au as O}from"./CCA2E2CK.js";class q{anchor;#e=new Map;#t=new Map;#s=new Map;#a=new Set;#i=!0;constructor(s,t=!0){this.anchor=s,this.#i=t}#r=s=>{if(this.#e.has(s)){var t=this.#e.get(s),a=this.#t.get(t);if(a)T(a),this.#a.delete(t);else{var i=this.#s.get(t);i&&(this.#t.set(t,i.effect),this.#s.delete(t),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),a=i.effect)}for(const[e,f]of this.#e){if(this.#e.delete(e),e===s)break;const r=this.#s.get(f);r&&(u(r.effect),this.#s.delete(f))}for(const[e,f]of this.#t){if(e===t||this.#a.has(e))continue;const r=()=>{if(Array.from(this.#e.values()).includes(e)){var c=document.createDocumentFragment();m(f,c),c.append(_()),this.#s.set(e,{effect:f,fragment:c})}else u(f);this.#a.delete(e),this.#t.delete(e)};this.#i||!a?(this.#a.add(e),k(f,r,!1)):r()}}};#f=s=>{this.#e.delete(s);const t=Array.from(this.#e.values());for(const[a,i]of this.#s)t.includes(a)||(u(i.effect),this.#s.delete(a))};ensure(s,t){var a=g,i=S();if(t&&!this.#t.has(s)&&!this.#s.has(s))if(i){var e=document.createDocumentFragment(),f=_();e.append(f),this.#s.set(s,{effect:v(()=>t(f)),fragment:e})}else this.#t.set(s,v(()=>t(this.anchor)));if(this.#e.set(a,s),i){for(const[r,h]of this.#t)r===s?a.unskip_effect(h):a.skip_effect(h);for(const[r,h]of this.#s)r===s?a.unskip_effect(h.effect):a.skip_effect(h.effect);a.oncommit(this.#r),a.ondiscard(this.#f)}else l&&(this.anchor=A),this.#r(a)}}function L(n,s,t=!1){var a;l&&(a=A,E());var i=new q(n),e=t?R:0;function f(r,h){if(l){var c=D(a),o;if(c===M?o=0:c===x?o=!1:o=parseInt(c.substring(1)),r!==o){var d=B();F(d),i.anchor=d,b(!1),i.ensure(r,h),b(!0);return}}i.ensure(r,h)}w(()=>{var r=!1;s((h,c=0)=>{r=!0,f(c,h)}),r||f(!1,null)},e)}function p(n,s){return n===s||n?.[O]===s}function P(n={},s,t,a){return N(()=>{var i,e;return Y(()=>{i=e,e=[],H(()=>{n!==t(...e)&&(s(n,...e),i&&p(t(...i),n)&&s(null,...i))})}),()=>{I(()=>{e&&p(t(...e),n)&&s(null,...e)})}}),n}export{q as B,P as b,L as i};
1
+ import{P as T,W as u,Q as k,h as _,D as v,A as g,j as l,x as A,az as m,G as S,i as w,q as E,Y as R,u as D,Z as M,H as x,v as B,k as F,w as b,aA as N,aB as Y,a7 as H,S as I,au as O}from"./BenpwI6m.js";class q{anchor;#e=new Map;#t=new Map;#s=new Map;#a=new Set;#i=!0;constructor(s,t=!0){this.anchor=s,this.#i=t}#r=s=>{if(this.#e.has(s)){var t=this.#e.get(s),a=this.#t.get(t);if(a)T(a),this.#a.delete(t);else{var i=this.#s.get(t);i&&(this.#t.set(t,i.effect),this.#s.delete(t),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),a=i.effect)}for(const[e,f]of this.#e){if(this.#e.delete(e),e===s)break;const r=this.#s.get(f);r&&(u(r.effect),this.#s.delete(f))}for(const[e,f]of this.#t){if(e===t||this.#a.has(e))continue;const r=()=>{if(Array.from(this.#e.values()).includes(e)){var c=document.createDocumentFragment();m(f,c),c.append(_()),this.#s.set(e,{effect:f,fragment:c})}else u(f);this.#a.delete(e),this.#t.delete(e)};this.#i||!a?(this.#a.add(e),k(f,r,!1)):r()}}};#f=s=>{this.#e.delete(s);const t=Array.from(this.#e.values());for(const[a,i]of this.#s)t.includes(a)||(u(i.effect),this.#s.delete(a))};ensure(s,t){var a=g,i=S();if(t&&!this.#t.has(s)&&!this.#s.has(s))if(i){var e=document.createDocumentFragment(),f=_();e.append(f),this.#s.set(s,{effect:v(()=>t(f)),fragment:e})}else this.#t.set(s,v(()=>t(this.anchor)));if(this.#e.set(a,s),i){for(const[r,h]of this.#t)r===s?a.unskip_effect(h):a.skip_effect(h);for(const[r,h]of this.#s)r===s?a.unskip_effect(h.effect):a.skip_effect(h.effect);a.oncommit(this.#r),a.ondiscard(this.#f)}else l&&(this.anchor=A),this.#r(a)}}function L(n,s,t=!1){var a;l&&(a=A,E());var i=new q(n),e=t?R:0;function f(r,h){if(l){var c=D(a),o;if(c===M?o=0:c===x?o=!1:o=parseInt(c.substring(1)),r!==o){var d=B();F(d),i.anchor=d,b(!1),i.ensure(r,h),b(!0);return}}i.ensure(r,h)}w(()=>{var r=!1;s((h,c=0)=>{r=!0,f(c,h)}),r||f(!1,null)},e)}function p(n,s){return n===s||n?.[O]===s}function P(n={},s,t,a){return N(()=>{var i,e;return Y(()=>{i=e,e=[],H(()=>{n!==t(...e)&&(s(n,...e),i&&p(t(...i),n)&&s(null,...i))})}),()=>{I(()=>{e&&p(t(...e),n)&&s(null,...e)})}}),n}export{q as B,P as b,L as i};
@@ -1 +1 @@
1
- import{a as c,s as A,f as b}from"./usxM-xOh.js";import{i as M}from"./DIBaaeCL.js";import{p as y,l as v,s as p,d as n,g as r,a as Z,c as u,n as R,r as m,b as B,m as g,t as C}from"./CCA2E2CK.js";import{i as H}from"./yUs562n0.js";import{a as N}from"./DkuxRPZv.js";import{l as h,p as _}from"./DHholpIc.js";var P=b("<title> </title>"),S=b('<svg><!><path d="M18 6 16.57 7.393 24.15 15 4 15 4 17 24.15 17 16.57 24.573 18 26 28 16 18 6z"></path></svg>');function I(w,t){const e=h(t,["children","$$slots","$$events","$$legacy"]),x=h(e,["size","title"]);y(t,!1);const a=g(),d=g();let f=_(t,"size",8,16),i=_(t,"title",8,void 0);v(()=>(n(e),n(i())),()=>{p(a,e["aria-label"]||e["aria-labelledby"]||i())}),v(()=>(r(a),n(e)),()=>{p(d,{"aria-hidden":r(a)?void 0:!0,role:r(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Z(),M();var s=S();N(s,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...r(d),...x}));var L=u(s);{var $=l=>{var o=P(),z=u(o,!0);m(o),C(()=>A(z,i())),c(l,o)};H(L,l=>{i()&&l($)})}R(),m(s),c(w,s),B()}var Y=b("<title> </title>"),k=b('<svg><!><path d="M27,16.76c0-.25,0-.5,0-.76s0-.51,0-.77l1.92-1.68A2,2,0,0,0,29.3,11L26.94,7a2,2,0,0,0-1.73-1,2,2,0,0,0-.64.1l-2.43.82a11.35,11.35,0,0,0-1.31-.75l-.51-2.52a2,2,0,0,0-2-1.61H13.64a2,2,0,0,0-2,1.61l-.51,2.52a11.48,11.48,0,0,0-1.32.75L7.43,6.06A2,2,0,0,0,6.79,6,2,2,0,0,0,5.06,7L2.7,11a2,2,0,0,0,.41,2.51L5,15.24c0,.25,0,.5,0,.76s0,.51,0,.77L3.11,18.45A2,2,0,0,0,2.7,21L5.06,25a2,2,0,0,0,1.73,1,2,2,0,0,0,.64-.1l2.43-.82a11.35,11.35,0,0,0,1.31.75l.51,2.52a2,2,0,0,0,2,1.61h4.72a2,2,0,0,0,2-1.61l.51-2.52a11.48,11.48,0,0,0,1.32-.75l2.42.82a2,2,0,0,0,.64.1,2,2,0,0,0,1.73-1L29.3,21a2,2,0,0,0-.41-2.51ZM25.21,24l-3.43-1.16a8.86,8.86,0,0,1-2.71,1.57L18.36,28H13.64l-.71-3.55a9.36,9.36,0,0,1-2.7-1.57L6.79,24,4.43,20l2.72-2.4a8.9,8.9,0,0,1,0-3.13L4.43,12,6.79,8l3.43,1.16a8.86,8.86,0,0,1,2.71-1.57L13.64,4h4.72l.71,3.55a9.36,9.36,0,0,1,2.7,1.57L25.21,8,27.57,12l-2.72,2.4a8.9,8.9,0,0,1,0,3.13L27.57,20Z"></path><path d="M16,22a6,6,0,1,1,6-6A5.94,5.94,0,0,1,16,22Zm0-10a3.91,3.91,0,0,0-4,4,3.91,3.91,0,0,0,4,4,3.91,3.91,0,0,0,4-4A3.91,3.91,0,0,0,16,12Z"></path></svg>');function J(w,t){const e=h(t,["children","$$slots","$$events","$$legacy"]),x=h(e,["size","title"]);y(t,!1);const a=g(),d=g();let f=_(t,"size",8,16),i=_(t,"title",8,void 0);v(()=>(n(e),n(i())),()=>{p(a,e["aria-label"]||e["aria-labelledby"]||i())}),v(()=>(r(a),n(e)),()=>{p(d,{"aria-hidden":r(a)?void 0:!0,role:r(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Z(),M();var s=k();N(s,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...r(d),...x}));var L=u(s);{var $=l=>{var o=Y(),z=u(o,!0);m(o),C(()=>A(z,i())),c(l,o)};H(L,l=>{i()&&l($)})}R(2),m(s),c(w,s),B()}export{I as A,J as S};
1
+ import{a as c,s as A,f as b}from"./COik51fd.js";import{i as M}from"./BSBiehHY.js";import{p as y,l as v,s as p,d as n,g as r,a as Z,c as u,n as R,r as m,b as B,m as g,t as C}from"./BenpwI6m.js";import{i as H}from"./Dvv4bkXH.js";import{a as N}from"./CStpN6HQ.js";import{l as h,p as _}from"./wWaI7EIw.js";var P=b("<title> </title>"),S=b('<svg><!><path d="M18 6 16.57 7.393 24.15 15 4 15 4 17 24.15 17 16.57 24.573 18 26 28 16 18 6z"></path></svg>');function I(w,t){const e=h(t,["children","$$slots","$$events","$$legacy"]),x=h(e,["size","title"]);y(t,!1);const a=g(),d=g();let f=_(t,"size",8,16),i=_(t,"title",8,void 0);v(()=>(n(e),n(i())),()=>{p(a,e["aria-label"]||e["aria-labelledby"]||i())}),v(()=>(r(a),n(e)),()=>{p(d,{"aria-hidden":r(a)?void 0:!0,role:r(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Z(),M();var s=S();N(s,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...r(d),...x}));var L=u(s);{var $=l=>{var o=P(),z=u(o,!0);m(o),C(()=>A(z,i())),c(l,o)};H(L,l=>{i()&&l($)})}R(),m(s),c(w,s),B()}var Y=b("<title> </title>"),k=b('<svg><!><path d="M27,16.76c0-.25,0-.5,0-.76s0-.51,0-.77l1.92-1.68A2,2,0,0,0,29.3,11L26.94,7a2,2,0,0,0-1.73-1,2,2,0,0,0-.64.1l-2.43.82a11.35,11.35,0,0,0-1.31-.75l-.51-2.52a2,2,0,0,0-2-1.61H13.64a2,2,0,0,0-2,1.61l-.51,2.52a11.48,11.48,0,0,0-1.32.75L7.43,6.06A2,2,0,0,0,6.79,6,2,2,0,0,0,5.06,7L2.7,11a2,2,0,0,0,.41,2.51L5,15.24c0,.25,0,.5,0,.76s0,.51,0,.77L3.11,18.45A2,2,0,0,0,2.7,21L5.06,25a2,2,0,0,0,1.73,1,2,2,0,0,0,.64-.1l2.43-.82a11.35,11.35,0,0,0,1.31.75l.51,2.52a2,2,0,0,0,2,1.61h4.72a2,2,0,0,0,2-1.61l.51-2.52a11.48,11.48,0,0,0,1.32-.75l2.42.82a2,2,0,0,0,.64.1,2,2,0,0,0,1.73-1L29.3,21a2,2,0,0,0-.41-2.51ZM25.21,24l-3.43-1.16a8.86,8.86,0,0,1-2.71,1.57L18.36,28H13.64l-.71-3.55a9.36,9.36,0,0,1-2.7-1.57L6.79,24,4.43,20l2.72-2.4a8.9,8.9,0,0,1,0-3.13L4.43,12,6.79,8l3.43,1.16a8.86,8.86,0,0,1,2.71-1.57L13.64,4h4.72l.71,3.55a9.36,9.36,0,0,1,2.7,1.57L25.21,8,27.57,12l-2.72,2.4a8.9,8.9,0,0,1,0,3.13L27.57,20Z"></path><path d="M16,22a6,6,0,1,1,6-6A5.94,5.94,0,0,1,16,22Zm0-10a3.91,3.91,0,0,0-4,4,3.91,3.91,0,0,0,4,4,3.91,3.91,0,0,0,4-4A3.91,3.91,0,0,0,16,12Z"></path></svg>');function J(w,t){const e=h(t,["children","$$slots","$$events","$$legacy"]),x=h(e,["size","title"]);y(t,!1);const a=g(),d=g();let f=_(t,"size",8,16),i=_(t,"title",8,void 0);v(()=>(n(e),n(i())),()=>{p(a,e["aria-label"]||e["aria-labelledby"]||i())}),v(()=>(r(a),n(e)),()=>{p(d,{"aria-hidden":r(a)?void 0:!0,role:r(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Z(),M();var s=k();N(s,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...r(d),...x}));var L=u(s);{var $=l=>{var o=Y(),z=u(o,!0);m(o),C(()=>A(z,i())),c(l,o)};H(L,l=>{i()&&l($)})}R(2),m(s),c(w,s),B()}export{I as A,J as S};
@@ -1 +1 @@
1
- import{h as O,i as y,E as J,j as H,k as b,o as Z,q as $,g as V,u as j,H as ee,v as U,w as F,x as D,C as re,y as ne,z as X,A as fe,B as m,D as L,F as ae,G as ie,I as le,J as ue,K as B,L as se,M as oe,m as te,N as Y,O as ve,P as K,Q as P,R as z,S as de,T as ce,U as pe,V as _e,W as he,X as ge}from"./CCA2E2CK.js";function Ce(e,i){return i}function Ee(e,i,l){for(var d=[],g=i.length,s,u=i.length,p=0;p<g;p++){let E=i[p];P(E,()=>{if(s){if(s.pending.delete(E),s.done.add(E),s.pending.size===0){var o=e.outrogroups;q(B(s.done)),o.delete(s),o.size===0&&(e.outrogroups=null)}}else u-=1},!1)}if(u===0){var a=d.length===0&&l!==null;if(a){var t=l,n=t.parentNode;_e(n),n.append(t),e.items.clear()}q(i,!a)}else s={pending:new Set(i),done:new Set},(e.outrogroups??=new Set).add(s)}function q(e,i=!0){for(var l=0;l<e.length;l++)he(e[l],i)}var G;function we(e,i,l,d,g,s=null){var u=e,p=new Map,a=(i&J)!==0;if(a){var t=e;u=H?b(Z(t)):t.appendChild(O())}H&&$();var n=null,E=le(()=>{var f=l();return ue(f)?f:f==null?[]:B(f)}),o,c=!0;function A(){r.fallback=n,me(r,o,u,i,d),n!==null&&(o.length===0?(n.f&m)===0?K(n):(n.f^=m,k(n,null,u)):P(n,()=>{n=null}))}var I=y(()=>{o=V(E);var f=o.length;let N=!1;if(H){var S=j(u)===ee;S!==(f===0)&&(u=U(),b(u),F(!1),N=!0)}for(var h=new Set,C=fe,x=ie(),_=0;_<f;_+=1){H&&D.nodeType===re&&D.data===ne&&(u=D,N=!0,F(!1));var w=o[_],R=d(w,_),v=c?null:p.get(R);v?(v.v&&X(v.v,w),v.i&&X(v.i,_),x&&C.unskip_effect(v.e)):(v=Te(p,c?u:G??=O(),w,R,_,g,i,l),c||(v.e.f|=m),p.set(R,v)),h.add(R)}if(f===0&&s&&!n&&(c?n=L(()=>s(u)):(n=L(()=>s(G??=O())),n.f|=m)),f>h.size&&ae(),H&&f>0&&b(U()),!c)if(x){for(const[Q,W]of p)h.has(Q)||C.skip_effect(W.e);C.oncommit(A),C.ondiscard(()=>{})}else A();N&&F(!0),V(E)}),r={effect:I,items:p,outrogroups:null,fallback:n};c=!1,H&&(u=D)}function M(e){for(;e!==null&&(e.f&ce)===0;)e=e.next;return e}function me(e,i,l,d,g){var s=(d&pe)!==0,u=i.length,p=e.items,a=M(e.effect.first),t,n=null,E,o=[],c=[],A,I,r,f;if(s)for(f=0;f<u;f+=1)A=i[f],I=g(A,f),r=p.get(I).e,(r.f&m)===0&&(r.nodes?.a?.measure(),(E??=new Set).add(r));for(f=0;f<u;f+=1){if(A=i[f],I=g(A,f),r=p.get(I).e,e.outrogroups!==null)for(const v of e.outrogroups)v.pending.delete(r),v.done.delete(r);if((r.f&m)!==0)if(r.f^=m,r===a)k(r,null,l);else{var N=n?n.next:a;r===e.effect.last&&(e.effect.last=r.prev),r.prev&&(r.prev.next=r.next),r.next&&(r.next.prev=r.prev),T(e,n,r),T(e,r,N),k(r,N,l),n=r,o=[],c=[],a=M(n.next);continue}if((r.f&z)!==0&&(K(r),s&&(r.nodes?.a?.unfix(),(E??=new Set).delete(r))),r!==a){if(t!==void 0&&t.has(r)){if(o.length<c.length){var S=c[0],h;n=S.prev;var C=o[0],x=o[o.length-1];for(h=0;h<o.length;h+=1)k(o[h],S,l);for(h=0;h<c.length;h+=1)t.delete(c[h]);T(e,C.prev,x.next),T(e,n,C),T(e,x,S),a=S,n=x,f-=1,o=[],c=[]}else t.delete(r),k(r,a,l),T(e,r.prev,r.next),T(e,r,n===null?e.effect.first:n.next),T(e,n,r),n=r;continue}for(o=[],c=[];a!==null&&a!==r;)(t??=new Set).add(a),c.push(a),a=M(a.next);if(a===null)continue}(r.f&m)===0&&o.push(r),n=r,a=M(r.next)}if(e.outrogroups!==null){for(const v of e.outrogroups)v.pending.size===0&&(q(B(v.done)),e.outrogroups?.delete(v));e.outrogroups.size===0&&(e.outrogroups=null)}if(a!==null||t!==void 0){var _=[];if(t!==void 0)for(r of t)(r.f&z)===0&&_.push(r);for(;a!==null;)(a.f&z)===0&&a!==e.fallback&&_.push(a),a=M(a.next);var w=_.length;if(w>0){var R=(d&J)!==0&&u===0?l:null;if(s){for(f=0;f<w;f+=1)_[f].nodes?.a?.measure();for(f=0;f<w;f+=1)_[f].nodes?.a?.fix()}Ee(e,_,R)}}s&&de(()=>{if(E!==void 0)for(r of E)r.nodes?.a?.apply()})}function Te(e,i,l,d,g,s,u,p){var a=(u&se)!==0?(u&oe)===0?te(l,!1,!1):Y(l):null,t=(u&ve)!==0?Y(g):null;return{v:a,i:t,e:L(()=>(s(i,a??l,t??g,p),()=>{e.delete(d)}))}}function k(e,i,l){if(e.nodes)for(var d=e.nodes.start,g=e.nodes.end,s=i&&(i.f&m)===0?i.nodes.start:l;d!==null;){var u=ge(d);if(s.before(d),d===g)return;d=u}}function T(e,i,l){i===null?e.effect.first=l:i.next=l,l===null?e.effect.last=i:l.prev=i}export{we as e,Ce as i};
1
+ import{h as O,i as y,E as J,j as H,k as b,o as Z,q as $,g as V,u as j,H as ee,v as U,w as F,x as D,C as re,y as ne,z as X,A as fe,B as m,D as L,F as ae,G as ie,I as le,J as ue,K as B,L as se,M as oe,m as te,N as Y,O as ve,P as K,Q as P,R as z,S as de,T as ce,U as pe,V as _e,W as he,X as ge}from"./BenpwI6m.js";function Ce(e,i){return i}function Ee(e,i,l){for(var d=[],g=i.length,s,u=i.length,p=0;p<g;p++){let E=i[p];P(E,()=>{if(s){if(s.pending.delete(E),s.done.add(E),s.pending.size===0){var o=e.outrogroups;q(B(s.done)),o.delete(s),o.size===0&&(e.outrogroups=null)}}else u-=1},!1)}if(u===0){var a=d.length===0&&l!==null;if(a){var t=l,n=t.parentNode;_e(n),n.append(t),e.items.clear()}q(i,!a)}else s={pending:new Set(i),done:new Set},(e.outrogroups??=new Set).add(s)}function q(e,i=!0){for(var l=0;l<e.length;l++)he(e[l],i)}var G;function we(e,i,l,d,g,s=null){var u=e,p=new Map,a=(i&J)!==0;if(a){var t=e;u=H?b(Z(t)):t.appendChild(O())}H&&$();var n=null,E=le(()=>{var f=l();return ue(f)?f:f==null?[]:B(f)}),o,c=!0;function A(){r.fallback=n,me(r,o,u,i,d),n!==null&&(o.length===0?(n.f&m)===0?K(n):(n.f^=m,k(n,null,u)):P(n,()=>{n=null}))}var I=y(()=>{o=V(E);var f=o.length;let N=!1;if(H){var S=j(u)===ee;S!==(f===0)&&(u=U(),b(u),F(!1),N=!0)}for(var h=new Set,C=fe,x=ie(),_=0;_<f;_+=1){H&&D.nodeType===re&&D.data===ne&&(u=D,N=!0,F(!1));var w=o[_],R=d(w,_),v=c?null:p.get(R);v?(v.v&&X(v.v,w),v.i&&X(v.i,_),x&&C.unskip_effect(v.e)):(v=Te(p,c?u:G??=O(),w,R,_,g,i,l),c||(v.e.f|=m),p.set(R,v)),h.add(R)}if(f===0&&s&&!n&&(c?n=L(()=>s(u)):(n=L(()=>s(G??=O())),n.f|=m)),f>h.size&&ae(),H&&f>0&&b(U()),!c)if(x){for(const[Q,W]of p)h.has(Q)||C.skip_effect(W.e);C.oncommit(A),C.ondiscard(()=>{})}else A();N&&F(!0),V(E)}),r={effect:I,items:p,outrogroups:null,fallback:n};c=!1,H&&(u=D)}function M(e){for(;e!==null&&(e.f&ce)===0;)e=e.next;return e}function me(e,i,l,d,g){var s=(d&pe)!==0,u=i.length,p=e.items,a=M(e.effect.first),t,n=null,E,o=[],c=[],A,I,r,f;if(s)for(f=0;f<u;f+=1)A=i[f],I=g(A,f),r=p.get(I).e,(r.f&m)===0&&(r.nodes?.a?.measure(),(E??=new Set).add(r));for(f=0;f<u;f+=1){if(A=i[f],I=g(A,f),r=p.get(I).e,e.outrogroups!==null)for(const v of e.outrogroups)v.pending.delete(r),v.done.delete(r);if((r.f&m)!==0)if(r.f^=m,r===a)k(r,null,l);else{var N=n?n.next:a;r===e.effect.last&&(e.effect.last=r.prev),r.prev&&(r.prev.next=r.next),r.next&&(r.next.prev=r.prev),T(e,n,r),T(e,r,N),k(r,N,l),n=r,o=[],c=[],a=M(n.next);continue}if((r.f&z)!==0&&(K(r),s&&(r.nodes?.a?.unfix(),(E??=new Set).delete(r))),r!==a){if(t!==void 0&&t.has(r)){if(o.length<c.length){var S=c[0],h;n=S.prev;var C=o[0],x=o[o.length-1];for(h=0;h<o.length;h+=1)k(o[h],S,l);for(h=0;h<c.length;h+=1)t.delete(c[h]);T(e,C.prev,x.next),T(e,n,C),T(e,x,S),a=S,n=x,f-=1,o=[],c=[]}else t.delete(r),k(r,a,l),T(e,r.prev,r.next),T(e,r,n===null?e.effect.first:n.next),T(e,n,r),n=r;continue}for(o=[],c=[];a!==null&&a!==r;)(t??=new Set).add(a),c.push(a),a=M(a.next);if(a===null)continue}(r.f&m)===0&&o.push(r),n=r,a=M(r.next)}if(e.outrogroups!==null){for(const v of e.outrogroups)v.pending.size===0&&(q(B(v.done)),e.outrogroups?.delete(v));e.outrogroups.size===0&&(e.outrogroups=null)}if(a!==null||t!==void 0){var _=[];if(t!==void 0)for(r of t)(r.f&z)===0&&_.push(r);for(;a!==null;)(a.f&z)===0&&a!==e.fallback&&_.push(a),a=M(a.next);var w=_.length;if(w>0){var R=(d&J)!==0&&u===0?l:null;if(s){for(f=0;f<w;f+=1)_[f].nodes?.a?.measure();for(f=0;f<w;f+=1)_[f].nodes?.a?.fix()}Ee(e,_,R)}}s&&de(()=>{if(E!==void 0)for(r of E)r.nodes?.a?.apply()})}function Te(e,i,l,d,g,s,u,p){var a=(u&se)!==0?(u&oe)===0?te(l,!1,!1):Y(l):null,t=(u&ve)!==0?Y(g):null;return{v:a,i:t,e:L(()=>(s(i,a??l,t??g,p),()=>{e.delete(d)}))}}function k(e,i,l){if(e.nodes)for(var d=e.nodes.start,g=e.nodes.end,s=i&&(i.f&m)===0?i.nodes.start:l;d!==null;){var u=ge(d);if(s.before(d),d===g)return;d=u}}function T(e,i,l){i===null?e.effect.first=l:i.next=l,l===null?e.effect.last=i:l.prev=i}export{we as e,Ce as i};
@@ -1 +1 @@
1
- import{a as p,s as H,f as b}from"./usxM-xOh.js";import{i as M}from"./DIBaaeCL.js";import{p as $,l as c,a as R,g as i,c as m,n as V,r as _,b as Z,m as h,s as u,d as n,t as k}from"./CCA2E2CK.js";import{i as B}from"./yUs562n0.js";import{a as C}from"./DkuxRPZv.js";import{l as v,p as g}from"./DHholpIc.js";var N=b("<title> </title>"),P=b('<svg><!><path d="M12,10H6.78A11,11,0,0,1,27,16h2A13,13,0,0,0,6,7.68V4H4v8h8Z"></path><path d="M20,22h5.22A11,11,0,0,1,5,16H3a13,13,0,0,0,23,8.32V28h2V20H20Z"></path></svg>');function G(x,t){const e=v(t,["children","$$slots","$$events","$$legacy"]),w=v(e,["size","title"]);$(t,!1);const a=h(),d=h();let f=g(t,"size",8,16),s=g(t,"title",8,void 0);c(()=>(n(e),n(s())),()=>{u(a,e["aria-label"]||e["aria-labelledby"]||s())}),c(()=>(i(a),n(e)),()=>{u(d,{"aria-hidden":i(a)?void 0:!0,role:i(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),R(),M();var r=P();C(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...i(d),...w}));var y=m(r);{var z=o=>{var l=N(),A=m(l,!0);_(l),k(()=>H(A,s())),p(o,l)};B(y,o=>{s()&&o(z)})}V(2),_(r),p(x,r),Z()}export{G as R};
1
+ import{a as p,s as H,f as b}from"./COik51fd.js";import{i as M}from"./BSBiehHY.js";import{p as $,l as c,a as R,g as i,c as m,n as V,r as _,b as Z,m as h,s as u,d as n,t as k}from"./BenpwI6m.js";import{i as B}from"./Dvv4bkXH.js";import{a as C}from"./CStpN6HQ.js";import{l as v,p as g}from"./wWaI7EIw.js";var N=b("<title> </title>"),P=b('<svg><!><path d="M12,10H6.78A11,11,0,0,1,27,16h2A13,13,0,0,0,6,7.68V4H4v8h8Z"></path><path d="M20,22h5.22A11,11,0,0,1,5,16H3a13,13,0,0,0,23,8.32V28h2V20H20Z"></path></svg>');function G(x,t){const e=v(t,["children","$$slots","$$events","$$legacy"]),w=v(e,["size","title"]);$(t,!1);const a=h(),d=h();let f=g(t,"size",8,16),s=g(t,"title",8,void 0);c(()=>(n(e),n(s())),()=>{u(a,e["aria-label"]||e["aria-labelledby"]||s())}),c(()=>(i(a),n(e)),()=>{u(d,{"aria-hidden":i(a)?void 0:!0,role:i(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),R(),M();var r=P();C(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...i(d),...w}));var y=m(r);{var z=o=>{var l=N(),A=m(l,!0);_(l),k(()=>H(A,s())),p(o,l)};B(y,o=>{s()&&o(z)})}V(2),_(r),p(x,r),Z()}export{G as R};
@@ -1 +1 @@
1
- import{ae as I,m as U,af as j,ag as B,g as d,ah as M,ai as Y,s as y,aj as w,ak as $,al as D,f as q,am as z,an as h,ao as C,ap as G,a7 as Z,aq as F,ar as H,as as J,aa as Q,I as V,at as p,au as E,av as A,aw as W,N as X,ax as g,ay as R}from"./CCA2E2CK.js";let v=!1,S=Symbol();function ie(e,r,s){const n=s[r]??={store:null,source:U(void 0),unsubscribe:I};if(n.store!==e&&!(S in s))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=I;else{var u=!0;n.unsubscribe=j(e,t=>{u?n.source.v=t:y(n.source,t)}),u=!1}return e&&S in s?B(e):d(n.source)}function te(){const e={};function r(){M(()=>{for(var s in e)e[s].unsubscribe();Y(e,S,{enumerable:!1,value:!0})})}return[e,r]}function k(e){var r=v;try{return v=!1,[e(),v]}finally{v=r}}const ee={get(e,r){if(!e.exclude.includes(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function ae(e,r,s){return new Proxy({props:e,exclude:r},ee)}const re={get(e,r){if(!e.exclude.includes(r))return d(e.version),r in e.special?e.special[r]():e.props[r]},set(e,r,s){if(!(r in e.special)){var n=h;try{R(e.parent_effect),e.special[r]=se({get[r](){return e.props[r]}},r,D)}finally{R(n)}}return e.special[r](s),g(e.version),!0},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},deleteProperty(e,r){return e.exclude.includes(r)||(e.exclude.push(r),g(e.version)),!0},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function fe(e,r){return new Proxy({props:e,exclude:r,special:{},version:X(0),parent_effect:h},re)}const ne={get(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(p(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,s){let n=e.props.length;for(;n--;){let u=e.props[n];p(u)&&(u=u());const t=w(u,r);if(t&&t.set)return t.set(s),!0}return!1},getOwnPropertyDescriptor(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(p(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const u=w(n,r);return u&&!u.configurable&&(u.configurable=!0),u}}},has(e,r){if(r===E||r===A)return!1;for(let s of e.props)if(p(s)&&(s=s()),s!=null&&r in s)return!0;return!1},ownKeys(e){const r=[];for(let s of e.props)if(p(s)&&(s=s()),!!s){for(const n in s)r.includes(n)||r.push(n);for(const n of Object.getOwnPropertySymbols(s))r.includes(n)||r.push(n)}return r}};function le(...e){return new Proxy({props:e},ne)}function se(e,r,s,n){var u=!F||(s&H)!==0,t=(s&G)!==0,T=(s&W)!==0,a=n,b=!0,x=()=>(b&&(b=!1,a=T?Z(n):n),a),l;if(t){var L=E in e||A in e;l=w(e,r)?.set??(L&&r in e?i=>e[r]=i:void 0)}var o,O=!1;t?[o,O]=k(()=>e[r]):o=e[r],o===void 0&&n!==void 0&&(o=x(),l&&(u&&$(),l(o)));var f;if(u?f=()=>{var i=e[r];return i===void 0?x():(b=!0,i)}:f=()=>{var i=e[r];return i!==void 0&&(a=void 0),i===void 0?a:i},u&&(s&D)===0)return f;if(l){var N=e.$$legacy;return(function(i,_){return arguments.length>0?((!u||!_||N||O)&&l(_?f():i),i):f()})}var P=!1,c=((s&J)!==0?Q:V)(()=>(P=!1,f()));t&&d(c);var K=h;return(function(i,_){if(arguments.length>0){const m=_?d(c):u&&t?q(i):i;return y(c,m),P=!0,a!==void 0&&(a=m),i}return z&&P||(K.f&C)!==0?c.v:d(c)})}export{ie as a,te as b,fe as l,se as p,ae as r,le as s};
1
+ import{ae as I,m as U,af as j,ag as B,g as d,ah as M,ai as Y,s as y,aj as w,ak as $,al as D,f as q,am as z,an as h,ao as C,ap as G,a7 as Z,aq as F,ar as H,as as J,aa as Q,I as V,at as p,au as E,av as A,aw as W,N as X,ax as g,ay as R}from"./BenpwI6m.js";let v=!1,S=Symbol();function ie(e,r,s){const n=s[r]??={store:null,source:U(void 0),unsubscribe:I};if(n.store!==e&&!(S in s))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=I;else{var u=!0;n.unsubscribe=j(e,t=>{u?n.source.v=t:y(n.source,t)}),u=!1}return e&&S in s?B(e):d(n.source)}function te(){const e={};function r(){M(()=>{for(var s in e)e[s].unsubscribe();Y(e,S,{enumerable:!1,value:!0})})}return[e,r]}function k(e){var r=v;try{return v=!1,[e(),v]}finally{v=r}}const ee={get(e,r){if(!e.exclude.includes(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function ae(e,r,s){return new Proxy({props:e,exclude:r},ee)}const re={get(e,r){if(!e.exclude.includes(r))return d(e.version),r in e.special?e.special[r]():e.props[r]},set(e,r,s){if(!(r in e.special)){var n=h;try{R(e.parent_effect),e.special[r]=se({get[r](){return e.props[r]}},r,D)}finally{R(n)}}return e.special[r](s),g(e.version),!0},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},deleteProperty(e,r){return e.exclude.includes(r)||(e.exclude.push(r),g(e.version)),!0},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function fe(e,r){return new Proxy({props:e,exclude:r,special:{},version:X(0),parent_effect:h},re)}const ne={get(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(p(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,s){let n=e.props.length;for(;n--;){let u=e.props[n];p(u)&&(u=u());const t=w(u,r);if(t&&t.set)return t.set(s),!0}return!1},getOwnPropertyDescriptor(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(p(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const u=w(n,r);return u&&!u.configurable&&(u.configurable=!0),u}}},has(e,r){if(r===E||r===A)return!1;for(let s of e.props)if(p(s)&&(s=s()),s!=null&&r in s)return!0;return!1},ownKeys(e){const r=[];for(let s of e.props)if(p(s)&&(s=s()),!!s){for(const n in s)r.includes(n)||r.push(n);for(const n of Object.getOwnPropertySymbols(s))r.includes(n)||r.push(n)}return r}};function le(...e){return new Proxy({props:e},ne)}function se(e,r,s,n){var u=!F||(s&H)!==0,t=(s&G)!==0,T=(s&W)!==0,a=n,b=!0,x=()=>(b&&(b=!1,a=T?Z(n):n),a),l;if(t){var L=E in e||A in e;l=w(e,r)?.set??(L&&r in e?i=>e[r]=i:void 0)}var o,O=!1;t?[o,O]=k(()=>e[r]):o=e[r],o===void 0&&n!==void 0&&(o=x(),l&&(u&&$(),l(o)));var f;if(u?f=()=>{var i=e[r];return i===void 0?x():(b=!0,i)}:f=()=>{var i=e[r];return i!==void 0&&(a=void 0),i===void 0?a:i},u&&(s&D)===0)return f;if(l){var N=e.$$legacy;return(function(i,_){return arguments.length>0?((!u||!_||N||O)&&l(_?f():i),i):f()})}var P=!1,c=((s&J)!==0?Q:V)(()=>(P=!1,f()));t&&d(c);var K=h;return(function(i,_){if(arguments.length>0){const m=_?d(c):u&&t?q(i):i;return y(c,m),P=!0,a!==void 0&&(a=m),i}return z&&P||(K.f&C)!==0?c.v:d(c)})}export{ie as a,te as b,fe as l,se as p,ae as r,le as s};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.D4NmzO9T.js","../chunks/PPVm8Dsz.js","../chunks/usxM-xOh.js","../chunks/CCA2E2CK.js","../chunks/yUs562n0.js","../chunks/DkuxRPZv.js","../chunks/BKHfe9E-.js","../chunks/DD3_vCgV.js","../chunks/csGnu8Rb.js","../chunks/BgRr0V7g.js","../chunks/BVhp5b7F.js","../chunks/B1c_qzmY.js","../chunks/BdNoKWAr.js","../chunks/y7AXCX7T.js","../chunks/CwUXqlAx.js","../chunks/DHholpIc.js","../chunks/D-H9HeD_.js","../chunks/BpdrS9kL.js","../chunks/NuvuAeCX.js","../chunks/DIBaaeCL.js","../assets/Toaster.rN8r_Hzv.css","../chunks/DLZAjAct.js","../assets/0.n3qM-DRk.css","../nodes/1.B49NrV3g.js","../nodes/2.DaqdIYKU.js","../chunks/Dgs7g6Xf.js","../chunks/BZ2Q53D5.js","../chunks/CdeYcEuU.js","../chunks/C74mA5aC.js","../chunks/1BE_eYuA.js","../chunks/oz3vOf3Y.js","../chunks/e8QVPHqJ.js","../chunks/D8mTIH9Y.js","../assets/Copy.FS8bdfxr.css","../chunks/DeyUjeaz.js","../chunks/CwnWYvfz.js","../chunks/pQmxOXKv.js","../chunks/C1S8fyYX.js","../assets/2.usgqms6b.css","../nodes/3.Q_RC4D9P.js","../chunks/Mtmwulo1.js","../assets/ViewToolbar.CnlOM0gQ.css","../assets/3.zsEg_MDN.css","../nodes/4.CIDSQYhF.js","../chunks/Ca2kuiZq.js","../chunks/DO03XMS-.js","../assets/index.D6tMDJWk.css","../chunks/CqkleIqs.js","../assets/4.B3dbj90y.css","../nodes/5.U-zEu0Mw.js","../assets/5.DFeGxLYf.css","../nodes/6.SYsyu9GD.js","../assets/6.CquhUpOu.css","../nodes/7.BLgQGI-C.js","../chunks/DYLAPjKD.js","../assets/7.D55lTQ_F.css","../nodes/8.67Laxdj-.js","../assets/8.DKYjn_lM.css","../nodes/9.D0aRCiZD.js","../assets/9.CT4xL4K3.css","../nodes/10.OXZpT8w9.js","../assets/10.BUrHkYry.css"])))=>i.map(i=>d[i]);
2
- import{_ as i}from"../chunks/PPVm8Dsz.js";import{s as I,av as $,g as m,aC as tt,ai as et,m as rt,p as at,a6 as st,a2 as ot,aD as nt,aE as it,a0 as v,a3 as mt,b as ct,e as j,a4 as O,c as ut,r as _t,t as dt}from"../chunks/CCA2E2CK.js";import{h as lt,m as ft,u as vt,a as _,c as E,b as Y,t as gt,s as ht}from"../chunks/usxM-xOh.js";import{i as D,b as R}from"../chunks/yUs562n0.js";import{c as A}from"../chunks/NuvuAeCX.js";import{p as L}from"../chunks/DHholpIc.js";function Et(s){return class extends pt{constructor(t){super({component:s,...t})}}}class pt{#e;#t;constructor(t){var a=new Map,c=(r,e)=>{var u=rt(e,!1,!1);return a.set(r,u),u};const n=new Proxy({...t.props||{},$$events:{}},{get(r,e){return m(a.get(e)??c(e,Reflect.get(r,e)))},has(r,e){return e===$?!0:(m(a.get(e)??c(e,Reflect.get(r,e))),Reflect.has(r,e))},set(r,e,u){return I(a.get(e)??c(e,u),u),Reflect.set(r,e,u)}});this.#t=(t.hydrate?lt:ft)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&tt(),this.#e=n.$$events;for(const r of Object.keys(this.#t))r==="$set"||r==="$destroy"||r==="$on"||et(this,r,{get(){return this.#t[r]},set(e){this.#t[r]=e},enumerable:!0});this.#t.$set=r=>{Object.assign(n,r)},this.#t.$destroy=()=>{vt(this.#t)}}$set(t){this.#t.$set(t)}$on(t,a){this.#e[t]=this.#e[t]||[];const c=(...n)=>a.call(this,...n);return this.#e[t].push(c),()=>{this.#e[t]=this.#e[t].filter(n=>n!==c)}}$destroy(){this.#t.$destroy()}}const wt={};var yt=Y('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Pt=Y("<!> <!>",1);function bt(s,t){at(t,!0);let a=L(t,"components",23,()=>[]),c=L(t,"data_0",3,null),n=L(t,"data_1",3,null),r=L(t,"data_2",3,null);st(()=>t.stores.page.set(t.page)),ot(()=>{t.stores,t.page,t.constructors,a(),t.form,c(),n(),r(),t.stores.page.notify()});let e=j(!1),u=j(!1),k=j(null);nt(()=>{const o=t.stores.page.subscribe(()=>{m(e)&&(I(u,!0),it().then(()=>{I(k,document.title||"untitled page",!0)}))});return I(e,!0),o});const z=O(()=>t.constructors[2]);var C=Pt(),S=v(C);{var B=o=>{const d=O(()=>t.constructors[0]);var l=E(),p=v(l);A(p,()=>m(d),(f,g)=>{R(g(f,{get data(){return c()},get form(){return t.form},get params(){return t.page.params},children:(y,Rt)=>{var M=E(),K=v(M);{var N=h=>{const T=O(()=>t.constructors[1]);var P=E(),V=v(P);A(V,()=>m(T),(x,w)=>{R(w(x,{get data(){return n()},get form(){return t.form},get params(){return t.page.params},children:(b,At)=>{var G=E(),U=v(G);A(U,()=>m(z),(W,X)=>{R(X(W,{get data(){return r()},get form(){return t.form},get params(){return t.page.params}}),Z=>a()[2]=Z,()=>a()?.[2])}),_(b,G)},$$slots:{default:!0}}),b=>a()[1]=b,()=>a()?.[1])}),_(h,P)},Q=h=>{const T=O(()=>t.constructors[1]);var P=E(),V=v(P);A(V,()=>m(T),(x,w)=>{R(w(x,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),b=>a()[1]=b,()=>a()?.[1])}),_(h,P)};D(K,h=>{t.constructors[2]?h(N):h(Q,!1)})}_(y,M)},$$slots:{default:!0}}),y=>a()[0]=y,()=>a()?.[0])}),_(o,l)},F=o=>{const d=O(()=>t.constructors[0]);var l=E(),p=v(l);A(p,()=>m(d),(f,g)=>{R(g(f,{get data(){return c()},get form(){return t.form},get params(){return t.page.params}}),y=>a()[0]=y,()=>a()?.[0])}),_(o,l)};D(S,o=>{t.constructors[1]?o(B):o(F,!1)})}var H=mt(S,2);{var J=o=>{var d=yt(),l=ut(d);{var p=f=>{var g=gt();dt(()=>ht(g,m(k))),_(f,g)};D(l,f=>{m(u)&&f(p)})}_t(d),_(o,d)};D(H,o=>{m(e)&&o(J)})}_(s,C),ct()}const jt=Et(bt),kt=[()=>i(()=>import("../nodes/0.D4NmzO9T.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]),import.meta.url),()=>i(()=>import("../nodes/1.B49NrV3g.js"),__vite__mapDeps([23,2,3,19,8]),import.meta.url),()=>i(()=>import("../nodes/2.DaqdIYKU.js"),__vite__mapDeps([24,2,3,5,4,6,1,17,18,8,19,15,25,26,9,10,11,27,28,29,21,30,31,32,33,34,12,35,36,37,38]),import.meta.url),()=>i(()=>import("../nodes/3.Q_RC4D9P.js"),__vite__mapDeps([39,2,3,4,17,5,6,32,15,8,40,18,19,25,10,9,13,31,41,14,21,28,42]),import.meta.url),()=>i(()=>import("../nodes/4.CIDSQYhF.js"),__vite__mapDeps([43,9,3,6,1,2,4,17,18,15,8,44,19,5,40,32,25,10,13,31,41,27,45,46,34,12,11,29,26,47,37,48]),import.meta.url),()=>i(()=>import("../nodes/5.U-zEu0Mw.js"),__vite__mapDeps([49,9,3,6,2,4,8,10,50]),import.meta.url),()=>i(()=>import("../nodes/6.SYsyu9GD.js"),__vite__mapDeps([51,2,3,40,5,4,6,17,18,32,15,8,19,25,10,9,13,31,41,1,27,37,52]),import.meta.url),()=>i(()=>import("../nodes/7.BLgQGI-C.js"),__vite__mapDeps([53,2,3,15,44,8,19,4,5,6,31,18,32,17,45,46,30,33,35,14,9,29,26,54,1,11,21,10,55]),import.meta.url),()=>i(()=>import("../nodes/8.67Laxdj-.js"),__vite__mapDeps([56,2,3,4,40,5,6,17,18,32,15,8,19,25,10,9,13,31,41,27,36,26,45,46,54,35,57]),import.meta.url),()=>i(()=>import("../nodes/9.D0aRCiZD.js"),__vite__mapDeps([58,2,3,4,7,8,11,6,32,5,15,35,59]),import.meta.url),()=>i(()=>import("../nodes/10.OXZpT8w9.js"),__vite__mapDeps([60,2,3,4,7,8,11,6,9,32,5,15,35,61]),import.meta.url)],Ct=[],St={"/(app)":[3,[2]],"/(app)/graph":[6,[2]],"/login":[9],"/(app)/settings":[7,[2]],"/setup":[10],"/(app)/views/[id]":[8,[2]],"/(app)/[repo]/[type]/[id]":[4,[2]],"/(app)/[repo]/[type]/[id]/edit":[5,[2]]},q={handleError:(({error:s})=>{console.error(s)}),reroute:(()=>{}),transport:{}},Ot=Object.fromEntries(Object.entries(q.transport).map(([s,t])=>[s,t.decode])),Mt=Object.fromEntries(Object.entries(q.transport).map(([s,t])=>[s,t.encode])),Gt=!1,Yt=(s,t)=>Ot[s](t);export{Yt as decode,Ot as decoders,St as dictionary,Mt as encoders,Gt as hash,q as hooks,wt as matchers,kt as nodes,jt as root,Ct as server_loads};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CVyp8Weq.js","../chunks/PPVm8Dsz.js","../chunks/COik51fd.js","../chunks/BenpwI6m.js","../chunks/Dvv4bkXH.js","../chunks/CStpN6HQ.js","../chunks/CieeblIr.js","../chunks/DN_2uSjw.js","../chunks/B0ZATUxd.js","../chunks/BjAmYrTY.js","../chunks/CDFdgZ9U.js","../chunks/B0qTqRR8.js","../chunks/8UsN6C_9.js","../chunks/CHKD7YEV.js","../chunks/DC1nGnOD.js","../chunks/wWaI7EIw.js","../chunks/DQMIm5QM.js","../chunks/h2NtTN7K.js","../chunks/CbwDFpOn.js","../chunks/BSBiehHY.js","../assets/Toaster.rN8r_Hzv.css","../chunks/owhS8Kw_.js","../assets/0.n3qM-DRk.css","../nodes/1.D0ieSX42.js","../nodes/2.A3XRWhSS.js","../chunks/CLw5zKi0.js","../chunks/DtsqpIgr.js","../chunks/CdeYcEuU.js","../chunks/DwG0Us6L.js","../chunks/CX_fJaNF.js","../chunks/DXG2Amuv.js","../chunks/DkilSMcP.js","../chunks/DAD7hf2c.js","../chunks/BasUgd5N.js","../chunks/DQmnydAv.js","../assets/Copy.FS8bdfxr.css","../chunks/CyzLSh3b.js","../chunks/C8L8BVLn.js","../assets/2.usgqms6b.css","../nodes/3.BMJr7eMn.js","../chunks/Bb97mH6k.js","../assets/ViewToolbar.CnlOM0gQ.css","../assets/3.zsEg_MDN.css","../nodes/4.BxRa93xW.js","../chunks/BkWC08CS.js","../chunks/B17cx9Sm.js","../assets/index.D6tMDJWk.css","../chunks/CqkleIqs.js","../assets/4.DmUyP6Fd.css","../nodes/5.DsNIqnP-.js","../assets/5.DFeGxLYf.css","../nodes/6.CdyHSIBU.js","../assets/6.CquhUpOu.css","../nodes/7.CzTJCYrr.js","../chunks/DkyV2KO_.js","../assets/7.D55lTQ_F.css","../nodes/8.B0HR7AjL.js","../assets/8.DKYjn_lM.css","../nodes/9.J6ycTHny.js","../assets/9.CT4xL4K3.css","../nodes/10.BztGpIjH.js","../assets/10.BUrHkYry.css"])))=>i.map(i=>d[i]);
2
+ import{_ as i}from"../chunks/PPVm8Dsz.js";import{s as I,av as $,g as m,aC as tt,ai as et,m as rt,p as at,a6 as st,a2 as ot,aD as nt,aE as it,a0 as v,a3 as mt,b as ct,e as j,a4 as O,c as ut,r as _t,t as dt}from"../chunks/BenpwI6m.js";import{h as lt,m as ft,u as vt,a as _,c as E,b as Y,t as gt,s as ht}from"../chunks/COik51fd.js";import{i as D,b as R}from"../chunks/Dvv4bkXH.js";import{c as A}from"../chunks/CbwDFpOn.js";import{p as L}from"../chunks/wWaI7EIw.js";function Et(s){return class extends pt{constructor(t){super({component:s,...t})}}}class pt{#e;#t;constructor(t){var a=new Map,c=(r,e)=>{var u=rt(e,!1,!1);return a.set(r,u),u};const n=new Proxy({...t.props||{},$$events:{}},{get(r,e){return m(a.get(e)??c(e,Reflect.get(r,e)))},has(r,e){return e===$?!0:(m(a.get(e)??c(e,Reflect.get(r,e))),Reflect.has(r,e))},set(r,e,u){return I(a.get(e)??c(e,u),u),Reflect.set(r,e,u)}});this.#t=(t.hydrate?lt:ft)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&tt(),this.#e=n.$$events;for(const r of Object.keys(this.#t))r==="$set"||r==="$destroy"||r==="$on"||et(this,r,{get(){return this.#t[r]},set(e){this.#t[r]=e},enumerable:!0});this.#t.$set=r=>{Object.assign(n,r)},this.#t.$destroy=()=>{vt(this.#t)}}$set(t){this.#t.$set(t)}$on(t,a){this.#e[t]=this.#e[t]||[];const c=(...n)=>a.call(this,...n);return this.#e[t].push(c),()=>{this.#e[t]=this.#e[t].filter(n=>n!==c)}}$destroy(){this.#t.$destroy()}}const wt={};var yt=Y('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Pt=Y("<!> <!>",1);function bt(s,t){at(t,!0);let a=L(t,"components",23,()=>[]),c=L(t,"data_0",3,null),n=L(t,"data_1",3,null),r=L(t,"data_2",3,null);st(()=>t.stores.page.set(t.page)),ot(()=>{t.stores,t.page,t.constructors,a(),t.form,c(),n(),r(),t.stores.page.notify()});let e=j(!1),u=j(!1),k=j(null);nt(()=>{const o=t.stores.page.subscribe(()=>{m(e)&&(I(u,!0),it().then(()=>{I(k,document.title||"untitled page",!0)}))});return I(e,!0),o});const z=O(()=>t.constructors[2]);var C=Pt(),S=v(C);{var B=o=>{const d=O(()=>t.constructors[0]);var l=E(),p=v(l);A(p,()=>m(d),(f,g)=>{R(g(f,{get data(){return c()},get form(){return t.form},get params(){return t.page.params},children:(y,Rt)=>{var M=E(),K=v(M);{var N=h=>{const T=O(()=>t.constructors[1]);var P=E(),V=v(P);A(V,()=>m(T),(x,w)=>{R(w(x,{get data(){return n()},get form(){return t.form},get params(){return t.page.params},children:(b,At)=>{var G=E(),U=v(G);A(U,()=>m(z),(W,X)=>{R(X(W,{get data(){return r()},get form(){return t.form},get params(){return t.page.params}}),Z=>a()[2]=Z,()=>a()?.[2])}),_(b,G)},$$slots:{default:!0}}),b=>a()[1]=b,()=>a()?.[1])}),_(h,P)},Q=h=>{const T=O(()=>t.constructors[1]);var P=E(),V=v(P);A(V,()=>m(T),(x,w)=>{R(w(x,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),b=>a()[1]=b,()=>a()?.[1])}),_(h,P)};D(K,h=>{t.constructors[2]?h(N):h(Q,!1)})}_(y,M)},$$slots:{default:!0}}),y=>a()[0]=y,()=>a()?.[0])}),_(o,l)},F=o=>{const d=O(()=>t.constructors[0]);var l=E(),p=v(l);A(p,()=>m(d),(f,g)=>{R(g(f,{get data(){return c()},get form(){return t.form},get params(){return t.page.params}}),y=>a()[0]=y,()=>a()?.[0])}),_(o,l)};D(S,o=>{t.constructors[1]?o(B):o(F,!1)})}var H=mt(S,2);{var J=o=>{var d=yt(),l=ut(d);{var p=f=>{var g=gt();dt(()=>ht(g,m(k))),_(f,g)};D(l,f=>{m(u)&&f(p)})}_t(d),_(o,d)};D(H,o=>{m(e)&&o(J)})}_(s,C),ct()}const jt=Et(bt),kt=[()=>i(()=>import("../nodes/0.CVyp8Weq.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]),import.meta.url),()=>i(()=>import("../nodes/1.D0ieSX42.js"),__vite__mapDeps([23,2,3,19,8]),import.meta.url),()=>i(()=>import("../nodes/2.A3XRWhSS.js"),__vite__mapDeps([24,2,3,5,4,6,1,17,18,8,19,15,25,26,9,10,11,27,28,29,21,30,31,32,12,33,34,35,36,37,38]),import.meta.url),()=>i(()=>import("../nodes/3.BMJr7eMn.js"),__vite__mapDeps([39,2,3,4,17,5,6,32,15,8,40,18,19,25,10,9,13,31,41,14,21,28,42]),import.meta.url),()=>i(()=>import("../nodes/4.BxRa93xW.js"),__vite__mapDeps([43,9,3,6,1,2,4,17,18,15,8,44,19,5,40,32,25,10,13,31,41,27,45,46,30,12,11,29,26,47,37,48]),import.meta.url),()=>i(()=>import("../nodes/5.DsNIqnP-.js"),__vite__mapDeps([49,9,3,6,2,4,8,10,50]),import.meta.url),()=>i(()=>import("../nodes/6.CdyHSIBU.js"),__vite__mapDeps([51,2,3,40,5,4,6,17,18,32,15,8,19,25,10,9,13,31,41,1,27,37,52]),import.meta.url),()=>i(()=>import("../nodes/7.CzTJCYrr.js"),__vite__mapDeps([53,2,3,15,44,8,19,4,5,6,31,18,32,17,45,46,34,35,33,14,9,29,26,54,1,11,21,10,55]),import.meta.url),()=>i(()=>import("../nodes/8.B0HR7AjL.js"),__vite__mapDeps([56,2,3,4,40,5,6,17,18,32,15,8,19,25,10,9,13,31,41,27,36,26,45,46,54,33,57]),import.meta.url),()=>i(()=>import("../nodes/9.J6ycTHny.js"),__vite__mapDeps([58,2,3,4,7,8,11,6,32,5,15,33,59]),import.meta.url),()=>i(()=>import("../nodes/10.BztGpIjH.js"),__vite__mapDeps([60,2,3,4,7,8,11,6,9,32,5,15,33,61]),import.meta.url)],Ct=[],St={"/(app)":[3,[2]],"/(app)/graph":[6,[2]],"/login":[9],"/(app)/settings":[7,[2]],"/setup":[10],"/(app)/views/[id]":[8,[2]],"/(app)/[repo]/[type]/[id]":[4,[2]],"/(app)/[repo]/[type]/[id]/edit":[5,[2]]},q={handleError:(({error:s})=>{console.error(s)}),reroute:(()=>{}),transport:{}},Ot=Object.fromEntries(Object.entries(q.transport).map(([s,t])=>[s,t.decode])),Mt=Object.fromEntries(Object.entries(q.transport).map(([s,t])=>[s,t.encode])),Gt=!1,Yt=(s,t)=>Ot[s](t);export{Yt as decode,Ot as decoders,St as dictionary,Mt as encoders,Gt as hash,q as hooks,wt as matchers,kt as nodes,jt as root,Ct as server_loads};
@@ -0,0 +1 @@
1
+ import{l as o,a as r}from"../chunks/B0ZATUxd.js";export{o as load_css,r as start};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/C1S8fyYX.js","../chunks/CCA2E2CK.js","../chunks/csGnu8Rb.js","../chunks/BVhp5b7F.js","../chunks/BgRr0V7g.js","../chunks/BKHfe9E-.js","../chunks/BB_5th5W.js","../chunks/PPVm8Dsz.js","../chunks/CqkleIqs.js","../chunks/DnL9f0lc.js","../chunks/CX_61fY8.js","../chunks/CscoF-YL.js","../chunks/D7ZqAKi9.js","../chunks/C7VoTosa.js","../chunks/CrdV0ttd.js"])))=>i.map(i=>d[i]);
2
- import{_ as A}from"../chunks/PPVm8Dsz.js";import{a as _,s as T,f as z,b as te,c as ae}from"../chunks/usxM-xOh.js";import{p as E,l as $,a as V,g as t,c as w,n as k,r as M,b as P,m as x,s,d as f,t as C,a1 as re,e as O,f as B,aW as G,a2 as N,aD as oe,a3 as ie,ac as ne,ad as le,a0 as se}from"../chunks/CCA2E2CK.js";import{i as R}from"../chunks/yUs562n0.js";import{a as D,b as de,s as ce}from"../chunks/DkuxRPZv.js";import{h as ue}from"../chunks/DD3_vCgV.js";import{g as Y}from"../chunks/csGnu8Rb.js";import{w as U}from"../chunks/BgRr0V7g.js";import{n as me}from"../chunks/BVhp5b7F.js";import{a as L}from"../chunks/B1c_qzmY.js";import{r as J}from"../chunks/BdNoKWAr.js";import{v as he}from"../chunks/y7AXCX7T.js";import{insightsStore as W}from"../chunks/CwUXqlAx.js";import{l as I,p as y,s as pe,r as fe}from"../chunks/DHholpIc.js";import{T as ve}from"../chunks/D-H9HeD_.js";import{R as ge}from"../chunks/DLZAjAct.js";import{i as F}from"../chunks/DIBaaeCL.js";var _e=z("<title> </title>"),be=z('<svg><!><path d="M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"></path><path fill="none" d="M14 21.591 9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z" data-icon-path="inner-path"></path></svg>');function we(v,o){const e=I(o,["children","$$slots","$$events","$$legacy"]),g=I(e,["size","title"]);E(o,!1);const a=x(),m=x();let d=y(o,"size",8,16),n=y(o,"title",8,void 0);$(()=>(f(e),f(n())),()=>{s(a,e["aria-label"]||e["aria-labelledby"]||n())}),$(()=>(t(a),f(e)),()=>{s(m,{"aria-hidden":t(a)?void 0:!0,role:t(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),V(),F();var i=be();D(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...t(m),...g}));var r=w(i);{var p=l=>{var c=_e(),h=w(c,!0);M(c),C(()=>T(h,n())),_(l,c)};R(r,l=>{n()&&l(p)})}k(2),M(i),_(v,i),P()}var Me=z("<title> </title>"),$e=z('<svg><!><path fill="none" d="M14.9 7.2H17.1V24.799H14.9z" data-icon-path="inner-path" transform="rotate(-45 16 16)"></path><path d="M16,2A13.914,13.914,0,0,0,2,16,13.914,13.914,0,0,0,16,30,13.914,13.914,0,0,0,30,16,13.914,13.914,0,0,0,16,2Zm5.4449,21L9,10.5557,10.5557,9,23,21.4448Z"></path></svg>');function xe(v,o){const e=I(o,["children","$$slots","$$events","$$legacy"]),g=I(e,["size","title"]);E(o,!1);const a=x(),m=x();let d=y(o,"size",8,16),n=y(o,"title",8,void 0);$(()=>(f(e),f(n())),()=>{s(a,e["aria-label"]||e["aria-labelledby"]||n())}),$(()=>(t(a),f(e)),()=>{s(m,{"aria-hidden":t(a)?void 0:!0,role:t(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),V(),F();var i=$e();D(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...t(m),...g}));var r=w(i);{var p=l=>{var c=Me(),h=w(c,!0);M(c),C(()=>T(h,n())),_(l,c)};R(r,l=>{n()&&l(p)})}k(2),M(i),_(v,i),P()}var Ie=z("<title> </title>"),ye=z('<svg><!><path fill="none" d="M16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,13.875H17.125v-8H13v2.25h1.875v5.75H12v2.25h8Z" data-icon-path="inner-path"></path><path d="M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,6a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,16.125H12v-2.25h2.875v-5.75H13v-2.25h4.125v8H20Z"></path></svg>');function ze(v,o){const e=I(o,["children","$$slots","$$events","$$legacy"]),g=I(e,["size","title"]);E(o,!1);const a=x(),m=x();let d=y(o,"size",8,16),n=y(o,"title",8,void 0);$(()=>(f(e),f(n())),()=>{s(a,e["aria-label"]||e["aria-labelledby"]||n())}),$(()=>(t(a),f(e)),()=>{s(m,{"aria-hidden":t(a)?void 0:!0,role:t(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),V(),F();var i=ye();D(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...t(m),...g}));var r=w(i);{var p=l=>{var c=Ie(),h=w(c,!0);M(c),C(()=>T(h,n())),_(l,c)};R(r,l=>{n()&&l(p)})}k(2),M(i),_(v,i),P()}var Ae=z("<title> </title>"),Ee=z('<svg><!><path fill="none" d="M16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Zm-1.125-5h2.25V12h-2.25Z" data-icon-path="inner-path"></path><path d="M16.002,6.1714h-.004L4.6487,27.9966,4.6506,28H27.3494l.0019-.0034ZM14.875,12h2.25v9h-2.25ZM16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Z"></path><path d="M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z"></path></svg>');function Pe(v,o){const e=I(o,["children","$$slots","$$events","$$legacy"]),g=I(e,["size","title"]);E(o,!1);const a=x(),m=x();let d=y(o,"size",8,16),n=y(o,"title",8,void 0);$(()=>(f(e),f(n())),()=>{s(a,e["aria-label"]||e["aria-labelledby"]||n())}),$(()=>(t(a),f(e)),()=>{s(m,{"aria-hidden":t(a)?void 0:!0,role:t(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),V(),F();var i=Ee();D(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...t(m),...g}));var r=w(i);{var p=l=>{var c=Ae(),h=w(c,!0);M(c),C(()=>T(h,n())),_(l,c)};R(r,l=>{n()&&l(p)})}k(3),M(i),_(v,i),P()}function Se(v,o){E(o,!0);const e=re("theme");let g=fe(o,["$$slots","$$events","$$legacy"]);ve(v,pe({get theme(){return e.current},class:"toaster group",style:"--normal-bg: var(--color-bg-elevated); --normal-text: var(--color-text-primary); --normal-border: var(--color-border-strong);"},()=>g,{loadingIcon:r=>{ge(r,{class:"size-4 animate-spin"})},successIcon:r=>{we(r,{class:"size-4"})},errorIcon:r=>{xe(r,{class:"size-4"})},infoIcon:r=>{ze(r,{class:"size-4"})},warningIcon:r=>{Pe(r,{class:"size-4"})},$$slots:{loadingIcon:!0,successIcon:!0,errorIcon:!0,infoIcon:!0,warningIcon:!0}})),P()}var Ze=te('<div style="display: contents;"><!> <!></div>');function Ge(v,o){E(o,!0);const e=typeof localStorage<"u"?localStorage.getItem("theme"):null,g=typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: light)").matches?"light":"dark";let a=O(B(e||g));G("theme",{get current(){return t(a)},toggle(){s(a,t(a)==="dark"?"light":"dark",!0),localStorage.setItem("theme",t(a))}});const d=typeof localStorage<"u"?localStorage.getItem("chatMode"):null,n=typeof localStorage<"u"?localStorage.getItem("chatOpen"):null,i=d==="panel"||d==="full"?d:d==="closed"?"closed":n==="true"?"panel":"closed";let r=O(B(i)),p=O(B(i==="closed"?"panel":i));function l(){localStorage.setItem("chatMode",t(r))}G("chat",{get open(){return t(r)!=="closed"},get mode(){return t(r)},toggle(){s(r,t(r)==="closed"?t(p):"closed",!0),l()},close(){s(r,"closed"),l()},expand(){s(r,"full"),s(p,"full"),l()},collapse(){s(r,"panel"),s(p,"panel"),l()},sendPrompt(u){t(r)==="closed"&&(s(r,t(p),!0),l()),A(()=>import("../chunks/C1S8fyYX.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url).then(b=>{b.chatStore.send(u),setTimeout(()=>b.chatStore.triggerScroll(),100)})}}),N(()=>{document.documentElement.setAttribute("data-theme",t(a))}),N(()=>{W.briefLoaded&&U.applyUserAccentColor(W.accentColor)});let h=O(null);N(()=>{if(L.loading)return;const u=L.user?.email??(L.authEnabled?null:"__open__");u&&u!==t(h)&&(t(h)!==null&&me.deselect(),s(h,u,!0),U.load(),he.load(),W.load(),J.connect()),!u&&t(h)&&(s(h,null),J.disconnect())}),oe(async()=>{const u=window.location.pathname,b=u==="/login",S=u==="/setup",{authenticated:j,authEnabled:X,needsSetup:ee}=await L.checkAuth();if(ee&&!S){Y("/setup");return}if(X&&!j&&!b){Y("/login");return}if(j&&(b||S)){Y("/");return}b||S||(A(()=>import("../chunks/BB_5th5W.js"),__vite__mapDeps([6,7,8]),import.meta.url).catch(()=>{}),Promise.all([A(()=>import("../chunks/CX_61fY8.js"),[],import.meta.url),A(()=>import("../chunks/DnL9f0lc.js").then(Z=>Z.i),__vite__mapDeps([9,10]),import.meta.url),A(()=>import("../chunks/CscoF-YL.js"),__vite__mapDeps([11,10,9,12,13,14]),import.meta.url),A(()=>import("../chunks/D7ZqAKi9.js"),__vite__mapDeps([12,13,10,9]),import.meta.url),A(()=>import("../chunks/C7VoTosa.js").then(Z=>Z.i),[],import.meta.url)]).catch(()=>{}),window.addEventListener("sg-theme-change",Z=>{s(a,Z.detail,!0)}))});var H=Ze();ue("12qhfyh",u=>{ne(()=>{le.title=(U.name||"Studiograph")??""})});var q=w(H);{var K=u=>{var b=ae(),S=se(b);ce(S,()=>o.children),_(u,b)};R(q,u=>{L.loading||u(K)})}var Q=ie(q,2);Se(Q,{}),M(H),C(()=>de(H,"data-theme",t(a))),_(v,H),P()}export{Ge as component};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/C8L8BVLn.js","../chunks/BenpwI6m.js","../chunks/B0ZATUxd.js","../chunks/CDFdgZ9U.js","../chunks/BjAmYrTY.js","../chunks/CieeblIr.js","../chunks/BB_5th5W.js","../chunks/PPVm8Dsz.js","../chunks/CqkleIqs.js","../chunks/DnL9f0lc.js","../chunks/CX_61fY8.js","../chunks/CscoF-YL.js","../chunks/D7ZqAKi9.js","../chunks/C7VoTosa.js","../chunks/CrdV0ttd.js"])))=>i.map(i=>d[i]);
2
+ import{_ as A}from"../chunks/PPVm8Dsz.js";import{a as _,s as T,f as z,b as te,c as ae}from"../chunks/COik51fd.js";import{p as E,l as $,a as V,g as t,c as w,n as k,r as M,b as P,m as x,s,d as f,t as C,a1 as re,e as O,f as B,aW as G,a2 as N,aD as oe,a3 as ie,ac as ne,ad as le,a0 as se}from"../chunks/BenpwI6m.js";import{i as R}from"../chunks/Dvv4bkXH.js";import{a as D,b as de,s as ce}from"../chunks/CStpN6HQ.js";import{h as ue}from"../chunks/DN_2uSjw.js";import{g as Y}from"../chunks/B0ZATUxd.js";import{w as U}from"../chunks/BjAmYrTY.js";import{n as me}from"../chunks/CDFdgZ9U.js";import{a as L}from"../chunks/B0qTqRR8.js";import{r as J}from"../chunks/8UsN6C_9.js";import{v as he}from"../chunks/CHKD7YEV.js";import{insightsStore as W}from"../chunks/DC1nGnOD.js";import{l as I,p as y,s as pe,r as fe}from"../chunks/wWaI7EIw.js";import{T as ve}from"../chunks/DQMIm5QM.js";import{R as ge}from"../chunks/owhS8Kw_.js";import{i as F}from"../chunks/BSBiehHY.js";var _e=z("<title> </title>"),be=z('<svg><!><path d="M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"></path><path fill="none" d="M14 21.591 9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z" data-icon-path="inner-path"></path></svg>');function we(v,o){const e=I(o,["children","$$slots","$$events","$$legacy"]),g=I(e,["size","title"]);E(o,!1);const a=x(),m=x();let d=y(o,"size",8,16),n=y(o,"title",8,void 0);$(()=>(f(e),f(n())),()=>{s(a,e["aria-label"]||e["aria-labelledby"]||n())}),$(()=>(t(a),f(e)),()=>{s(m,{"aria-hidden":t(a)?void 0:!0,role:t(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),V(),F();var i=be();D(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...t(m),...g}));var r=w(i);{var p=l=>{var c=_e(),h=w(c,!0);M(c),C(()=>T(h,n())),_(l,c)};R(r,l=>{n()&&l(p)})}k(2),M(i),_(v,i),P()}var Me=z("<title> </title>"),$e=z('<svg><!><path fill="none" d="M14.9 7.2H17.1V24.799H14.9z" data-icon-path="inner-path" transform="rotate(-45 16 16)"></path><path d="M16,2A13.914,13.914,0,0,0,2,16,13.914,13.914,0,0,0,16,30,13.914,13.914,0,0,0,30,16,13.914,13.914,0,0,0,16,2Zm5.4449,21L9,10.5557,10.5557,9,23,21.4448Z"></path></svg>');function xe(v,o){const e=I(o,["children","$$slots","$$events","$$legacy"]),g=I(e,["size","title"]);E(o,!1);const a=x(),m=x();let d=y(o,"size",8,16),n=y(o,"title",8,void 0);$(()=>(f(e),f(n())),()=>{s(a,e["aria-label"]||e["aria-labelledby"]||n())}),$(()=>(t(a),f(e)),()=>{s(m,{"aria-hidden":t(a)?void 0:!0,role:t(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),V(),F();var i=$e();D(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...t(m),...g}));var r=w(i);{var p=l=>{var c=Me(),h=w(c,!0);M(c),C(()=>T(h,n())),_(l,c)};R(r,l=>{n()&&l(p)})}k(2),M(i),_(v,i),P()}var Ie=z("<title> </title>"),ye=z('<svg><!><path fill="none" d="M16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,13.875H17.125v-8H13v2.25h1.875v5.75H12v2.25h8Z" data-icon-path="inner-path"></path><path d="M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,6a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,16.125H12v-2.25h2.875v-5.75H13v-2.25h4.125v8H20Z"></path></svg>');function ze(v,o){const e=I(o,["children","$$slots","$$events","$$legacy"]),g=I(e,["size","title"]);E(o,!1);const a=x(),m=x();let d=y(o,"size",8,16),n=y(o,"title",8,void 0);$(()=>(f(e),f(n())),()=>{s(a,e["aria-label"]||e["aria-labelledby"]||n())}),$(()=>(t(a),f(e)),()=>{s(m,{"aria-hidden":t(a)?void 0:!0,role:t(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),V(),F();var i=ye();D(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...t(m),...g}));var r=w(i);{var p=l=>{var c=Ie(),h=w(c,!0);M(c),C(()=>T(h,n())),_(l,c)};R(r,l=>{n()&&l(p)})}k(2),M(i),_(v,i),P()}var Ae=z("<title> </title>"),Ee=z('<svg><!><path fill="none" d="M16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Zm-1.125-5h2.25V12h-2.25Z" data-icon-path="inner-path"></path><path d="M16.002,6.1714h-.004L4.6487,27.9966,4.6506,28H27.3494l.0019-.0034ZM14.875,12h2.25v9h-2.25ZM16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Z"></path><path d="M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z"></path></svg>');function Pe(v,o){const e=I(o,["children","$$slots","$$events","$$legacy"]),g=I(e,["size","title"]);E(o,!1);const a=x(),m=x();let d=y(o,"size",8,16),n=y(o,"title",8,void 0);$(()=>(f(e),f(n())),()=>{s(a,e["aria-label"]||e["aria-labelledby"]||n())}),$(()=>(t(a),f(e)),()=>{s(m,{"aria-hidden":t(a)?void 0:!0,role:t(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),V(),F();var i=Ee();D(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...t(m),...g}));var r=w(i);{var p=l=>{var c=Ae(),h=w(c,!0);M(c),C(()=>T(h,n())),_(l,c)};R(r,l=>{n()&&l(p)})}k(3),M(i),_(v,i),P()}function Se(v,o){E(o,!0);const e=re("theme");let g=fe(o,["$$slots","$$events","$$legacy"]);ve(v,pe({get theme(){return e.current},class:"toaster group",style:"--normal-bg: var(--color-bg-elevated); --normal-text: var(--color-text-primary); --normal-border: var(--color-border-strong);"},()=>g,{loadingIcon:r=>{ge(r,{class:"size-4 animate-spin"})},successIcon:r=>{we(r,{class:"size-4"})},errorIcon:r=>{xe(r,{class:"size-4"})},infoIcon:r=>{ze(r,{class:"size-4"})},warningIcon:r=>{Pe(r,{class:"size-4"})},$$slots:{loadingIcon:!0,successIcon:!0,errorIcon:!0,infoIcon:!0,warningIcon:!0}})),P()}var Ze=te('<div style="display: contents;"><!> <!></div>');function Ge(v,o){E(o,!0);const e=typeof localStorage<"u"?localStorage.getItem("theme"):null,g=typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: light)").matches?"light":"dark";let a=O(B(e||g));G("theme",{get current(){return t(a)},toggle(){s(a,t(a)==="dark"?"light":"dark",!0),localStorage.setItem("theme",t(a))}});const d=typeof localStorage<"u"?localStorage.getItem("chatMode"):null,n=typeof localStorage<"u"?localStorage.getItem("chatOpen"):null,i=d==="panel"||d==="full"?d:d==="closed"?"closed":n==="true"?"panel":"closed";let r=O(B(i)),p=O(B(i==="closed"?"panel":i));function l(){localStorage.setItem("chatMode",t(r))}G("chat",{get open(){return t(r)!=="closed"},get mode(){return t(r)},toggle(){s(r,t(r)==="closed"?t(p):"closed",!0),l()},close(){s(r,"closed"),l()},expand(){s(r,"full"),s(p,"full"),l()},collapse(){s(r,"panel"),s(p,"panel"),l()},sendPrompt(u){t(r)==="closed"&&(s(r,t(p),!0),l()),A(()=>import("../chunks/C8L8BVLn.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url).then(b=>{b.chatStore.send(u),setTimeout(()=>b.chatStore.triggerScroll(),100)})}}),N(()=>{document.documentElement.setAttribute("data-theme",t(a))}),N(()=>{W.briefLoaded&&U.applyUserAccentColor(W.accentColor)});let h=O(null);N(()=>{if(L.loading)return;const u=L.user?.email??(L.authEnabled?null:"__open__");u&&u!==t(h)&&(t(h)!==null&&me.deselect(),s(h,u,!0),U.load(),he.load(),W.load(),J.connect()),!u&&t(h)&&(s(h,null),J.disconnect())}),oe(async()=>{const u=window.location.pathname,b=u==="/login",S=u==="/setup",{authenticated:j,authEnabled:X,needsSetup:ee}=await L.checkAuth();if(ee&&!S){Y("/setup");return}if(X&&!j&&!b){Y("/login");return}if(j&&(b||S)){Y("/");return}b||S||(A(()=>import("../chunks/BB_5th5W.js"),__vite__mapDeps([6,7,8]),import.meta.url).catch(()=>{}),Promise.all([A(()=>import("../chunks/CX_61fY8.js"),[],import.meta.url),A(()=>import("../chunks/DnL9f0lc.js").then(Z=>Z.i),__vite__mapDeps([9,10]),import.meta.url),A(()=>import("../chunks/CscoF-YL.js"),__vite__mapDeps([11,10,9,12,13,14]),import.meta.url),A(()=>import("../chunks/D7ZqAKi9.js"),__vite__mapDeps([12,13,10,9]),import.meta.url),A(()=>import("../chunks/C7VoTosa.js").then(Z=>Z.i),[],import.meta.url)]).catch(()=>{}),window.addEventListener("sg-theme-change",Z=>{s(a,Z.detail,!0)}))});var H=Ze();ue("12qhfyh",u=>{ne(()=>{le.title=(U.name||"Studiograph")??""})});var q=w(H);{var K=u=>{var b=ae(),S=se(b);ce(S,()=>o.children),_(u,b)};R(q,u=>{L.loading||u(K)})}var Q=ie(q,2);Se(Q,{}),M(H),C(()=>de(H,"data-theme",t(a))),_(v,H),P()}export{Ge as component};
@@ -1 +1 @@
1
- import{a as u,b as h,s}from"../chunks/usxM-xOh.js";import{i as g}from"../chunks/DIBaaeCL.js";import{p as l,a0 as v,t as d,b as _,c as e,r as o,a3 as x}from"../chunks/CCA2E2CK.js";import{s as b,p}from"../chunks/csGnu8Rb.js";const $={get error(){return p.error},get status(){return p.status}};b.updated.check;const m=$;var k=h("<h1> </h1> <p> </p>",1);function y(i,c){l(c,!1),g();var t=k(),r=v(t),n=e(r,!0);o(r);var a=x(r,2),f=e(a,!0);o(a),d(()=>{s(n,m.status),s(f,m.error?.message)}),u(i,t),_()}export{y as component};
1
+ import{a as u,b as h,s}from"../chunks/COik51fd.js";import{i as g}from"../chunks/BSBiehHY.js";import{p as l,a0 as v,t as d,b as _,c as e,r as o,a3 as x}from"../chunks/BenpwI6m.js";import{s as b,p}from"../chunks/B0ZATUxd.js";const $={get error(){return p.error},get status(){return p.status}};b.updated.check;const m=$;var k=h("<h1> </h1> <p> </p>",1);function y(i,c){l(c,!1),g();var t=k(),r=v(t),n=e(r,!0);o(r);var a=x(r,2),f=e(a,!0);o(a),d(()=>{s(n,m.status),s(f,m.error?.message)}),u(i,t),_()}export{y as component};