@tauri-controls-v2/react 0.4.2 → 0.4.4

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.
@@ -1 +1 @@
1
- @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-yellow-300:oklch(90.5% .182 98.111);--color-sky-300:oklch(82.8% .111 230.318);--color-sky-500:oklch(68.5% .169 237.323);--color-sky-600:oklch(58.8% .158 241.966);--color-violet-200:oklch(89.4% .057 293.283);--color-rose-300:oklch(81% .117 11.638);--color-rose-700:oklch(51.4% .222 16.935);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-800:oklch(27.9% .041 260.031);--color-slate-900:oklch(20.8% .042 265.755);--color-slate-950:oklch(12.9% .042 264.695);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--font-weight-semibold:600;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}@layer base{.tauri-controls *,.tauri-controls :after,.tauri-controls :before,.tauri-controls ::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}.tauri-controls ::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}.tauri-controls html,.tauri-controls :host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}.tauri-controls hr{height:0;color:inherit;border-top-width:1px}.tauri-controls abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.tauri-controls h1,.tauri-controls h2,.tauri-controls h3,.tauri-controls h4,.tauri-controls h5,.tauri-controls h6{font-size:inherit;font-weight:inherit}.tauri-controls a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}.tauri-controls b,.tauri-controls strong{font-weight:bolder}.tauri-controls code,.tauri-controls kbd,.tauri-controls samp,.tauri-controls pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}.tauri-controls small{font-size:80%}.tauri-controls sub,.tauri-controls sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}.tauri-controls sub{bottom:-.25em}.tauri-controls sup{top:-.5em}.tauri-controls table{text-indent:0;border-color:inherit;border-collapse:collapse}.tauri-controls :-moz-focusring{outline:auto}.tauri-controls progress{vertical-align:baseline}.tauri-controls summary{display:list-item}.tauri-controls ol,.tauri-controls ul,.tauri-controls menu{list-style:none}.tauri-controls img,.tauri-controls svg,.tauri-controls video,.tauri-controls canvas,.tauri-controls audio,.tauri-controls iframe,.tauri-controls embed,.tauri-controls object{vertical-align:middle;display:block}.tauri-controls img,.tauri-controls video{max-width:100%;height:auto}.tauri-controls button,.tauri-controls input,.tauri-controls select,.tauri-controls optgroup,.tauri-controls textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}.tauri-controls ::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}.tauri-controls :where(select:is([multiple],[size])) optgroup{font-weight:bolder}.tauri-controls :where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}.tauri-controls ::file-selector-button{margin-inline-end:4px}.tauri-controls ::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){.tauri-controls ::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){.tauri-controls ::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}.tauri-controls textarea{resize:vertical}.tauri-controls ::-webkit-search-decoration{-webkit-appearance:none}.tauri-controls ::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}.tauri-controls ::-webkit-datetime-edit{display:inline-flex}.tauri-controls ::-webkit-datetime-edit-fields-wrapper{padding:0}.tauri-controls ::-webkit-datetime-edit{padding-block:0}.tauri-controls ::-webkit-datetime-edit-year-field{padding-block:0}.tauri-controls ::-webkit-datetime-edit-month-field{padding-block:0}.tauri-controls ::-webkit-datetime-edit-day-field{padding-block:0}.tauri-controls ::-webkit-datetime-edit-hour-field{padding-block:0}.tauri-controls ::-webkit-datetime-edit-minute-field{padding-block:0}.tauri-controls ::-webkit-datetime-edit-second-field{padding-block:0}.tauri-controls ::-webkit-datetime-edit-millisecond-field{padding-block:0}.tauri-controls ::-webkit-datetime-edit-meridiem-field{padding-block:0}.tauri-controls ::-webkit-calendar-picker-indicator{line-height:1}.tauri-controls :-moz-ui-invalid{box-shadow:none}.tauri-controls button,.tauri-controls input:where([type=button],[type=reset],[type=submit]){appearance:button}.tauri-controls ::file-selector-button{appearance:button}.tauri-controls ::-webkit-inner-spin-button{height:auto}.tauri-controls ::-webkit-outer-spin-button{height:auto}.tauri-controls [hidden]:where(:not([hidden=until-found])){display:none!important}}@layer utilities{.tauri-controls .invisible{visibility:hidden}.tauri-controls .fixed{position:fixed}.tauri-controls .relative{position:relative}.tauri-controls .start{inset-inline-start:var(--spacing)}.tauri-controls .top-1{top:calc(var(--spacing) * 1)}.tauri-controls .right-1{right:calc(var(--spacing) * 1)}.tauri-controls .isolate{isolation:isolate}.tauri-controls .m-0{margin:calc(var(--spacing) * 0)}.tauri-controls .mr-2{margin-right:calc(var(--spacing) * 2)}.tauri-controls .mr-\[10px\]{margin-right:10px}.tauri-controls .ml-0{margin-left:calc(var(--spacing) * 0)}.tauri-controls .ml-3{margin-left:calc(var(--spacing) * 3)}.tauri-controls .ml-auto{margin-left:auto}.tauri-controls .flex{display:flex}.tauri-controls .hidden{display:none}.tauri-controls .inline-flex{display:inline-flex}.tauri-controls .aspect-square{aspect-ratio:1}.tauri-controls .h-2{height:calc(var(--spacing) * 2)}.tauri-controls .h-3{height:calc(var(--spacing) * 3)}.tauri-controls .h-6{height:calc(var(--spacing) * 6)}.tauri-controls .h-8{height:calc(var(--spacing) * 8)}.tauri-controls .h-10{height:calc(var(--spacing) * 10)}.tauri-controls .h-\[9px\]{height:9px}.tauri-controls .h-auto{height:auto}.tauri-controls .h-full{height:100%}.tauri-controls .h-screen{height:100vh}.tauri-controls .max-h-8{max-height:calc(var(--spacing) * 8)}.tauri-controls .w-2{width:calc(var(--spacing) * 2)}.tauri-controls .w-3{width:calc(var(--spacing) * 3)}.tauri-controls .w-6{width:calc(var(--spacing) * 6)}.tauri-controls .w-\[9px\]{width:9px}.tauri-controls .w-\[46px\]{width:46px}.tauri-controls .w-\[960px\]{width:960px}.tauri-controls .w-\[1300px\]{width:1300px}.tauri-controls .w-fit{width:fit-content}.tauri-controls .w-full{width:100%}.tauri-controls .cursor-default{cursor:default}.tauri-controls .flex-col{flex-direction:column}.tauri-controls .flex-row{flex-direction:row}.tauri-controls .content-center{align-content:center}.tauri-controls .items-center{align-items:center}.tauri-controls .justify-center{justify-content:center}:where(.tauri-controls .space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.tauri-controls .space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)))}:where(.tauri-controls .space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 3) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-x-reverse)))}:where(.tauri-controls .space-x-\[13px\]>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(13px * var(--tw-space-x-reverse));margin-inline-end:calc(13px * calc(1 - var(--tw-space-x-reverse)))}.tauri-controls .self-center{align-self:center}.tauri-controls .overflow-auto{overflow:auto}.tauri-controls .overflow-hidden{overflow:hidden}.tauri-controls .rounded-full{border-radius:3.40282e38px}.tauri-controls .rounded-md{border-radius:var(--radius-md)}.tauri-controls .rounded-none{border-radius:0}.tauri-controls .rounded-sm{border-radius:var(--radius-sm)}.tauri-controls .rounded-xl{border-radius:var(--radius-xl)}.tauri-controls .rounded-t-lg{border-top-left-radius:var(--radius-lg);border-top-right-radius:var(--radius-lg)}.tauri-controls .border{border-style:var(--tw-border-style);border-width:1px}.tauri-controls .border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.tauri-controls .border-dashed{--tw-border-style:dashed;border-style:dashed}.tauri-controls .border-none{--tw-border-style:none;border-style:none}.tauri-controls .border-black\/12{border-color:#0000001f}@supports (color:color-mix(in lab,red,red)){.tauri-controls .border-black\/12{border-color:color-mix(in oklab,var(--color-black) 12%,transparent)}}.tauri-controls .border-black\/\[\.07\]{border-color:#00000012}@supports (color:color-mix(in lab,red,red)){.tauri-controls .border-black\/\[\.07\]{border-color:color-mix(in oklab,var(--color-black) 7%,transparent)}}.tauri-controls .border-slate-400{border-color:var(--color-slate-400)}.tauri-controls .bg-\[\#28c93f\]{background-color:#28c93f}.tauri-controls .bg-\[\#dadada\]{background-color:#dadada}.tauri-controls .bg-\[\#ff544d\]{background-color:#ff544d}.tauri-controls .bg-\[\#ffbd2e\]{background-color:#ffbd2e}.tauri-controls .bg-rose-300{background-color:var(--color-rose-300)}.tauri-controls .bg-rose-700{background-color:var(--color-rose-700)}.tauri-controls .bg-sky-300{background-color:var(--color-sky-300)}.tauri-controls .bg-sky-500{background-color:var(--color-sky-500)}.tauri-controls .bg-slate-200{background-color:var(--color-slate-200)}.tauri-controls .bg-slate-300{background-color:var(--color-slate-300)}.tauri-controls .bg-transparent{background-color:#0000}.tauri-controls .bg-violet-200\/20{background-color:#ddd6ff33}@supports (color:color-mix(in lab,red,red)){.tauri-controls .bg-violet-200\/20{background-color:color-mix(in oklab,var(--color-violet-200) 20%,transparent)}}.tauri-controls .bg-white{background-color:var(--color-white)}.tauri-controls .bg-yellow-300{background-color:var(--color-yellow-300)}.tauri-controls .p-0{padding:calc(var(--spacing) * 0)}.tauri-controls .p-2{padding:calc(var(--spacing) * 2)}.tauri-controls .p-3{padding:calc(var(--spacing) * 3)}.tauri-controls .px-2{padding-inline:calc(var(--spacing) * 2)}.tauri-controls .px-3{padding-inline:calc(var(--spacing) * 3)}.tauri-controls .px-14{padding-inline:calc(var(--spacing) * 14)}.tauri-controls .py-1{padding-block:calc(var(--spacing) * 1)}.tauri-controls .py-6{padding-block:calc(var(--spacing) * 6)}.tauri-controls .pr-10{padding-right:calc(var(--spacing) * 10)}.tauri-controls .pb-1{padding-bottom:calc(var(--spacing) * 1)}.tauri-controls .text-center{text-align:center}.tauri-controls .font-mono{font-family:var(--font-mono)}.tauri-controls .text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.tauri-controls .font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tauri-controls .whitespace-nowrap{white-space:nowrap}.tauri-controls .text-\[\#3d3d3d\]{color:#3d3d3d}.tauri-controls .text-black{color:var(--color-black)}.tauri-controls .text-black\/60{color:#0009}@supports (color:color-mix(in lab,red,red)){.tauri-controls .text-black\/60{color:color-mix(in oklab,var(--color-black) 60%,transparent)}}.tauri-controls .text-black\/90{color:#000000e6}@supports (color:color-mix(in lab,red,red)){.tauri-controls .text-black\/90{color:color-mix(in oklab,var(--color-black) 90%,transparent)}}.tauri-controls .text-sky-600\/70{color:#0084ccb3}@supports (color:color-mix(in lab,red,red)){.tauri-controls .text-sky-600\/70{color:color-mix(in oklab,var(--color-sky-600) 70%,transparent)}}.tauri-controls .text-white\/36{color:#ffffff5c}@supports (color:color-mix(in lab,red,red)){.tauri-controls .text-white\/36{color:color-mix(in oklab,var(--color-white) 36%,transparent)}}.tauri-controls .shadow,.tauri-controls .shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tauri-controls .select-none{-webkit-user-select:none;user-select:none}@media(hover:hover){.tauri-controls .hover\:bg-\[\#28c93f\]:hover{background-color:#28c93f}.tauri-controls .hover\:bg-\[\#c42b1c\]:hover{background-color:#c42b1c}.tauri-controls .hover\:bg-\[\#d1d1d1\]:hover{background-color:#d1d1d1}.tauri-controls .hover\:bg-\[\#ff544d\]:hover{background-color:#ff544d}.tauri-controls .hover\:bg-\[\#ffbd2e\]:hover{background-color:#ffbd2e}.tauri-controls .hover\:bg-black\/5:hover{background-color:#0000000d}@supports (color:color-mix(in lab,red,red)){.tauri-controls .hover\:bg-black\/5:hover{background-color:color-mix(in oklab,var(--color-black) 5%,transparent)}}.tauri-controls .hover\:text-white:hover{color:var(--color-white)}}.tauri-controls .active\:bg-\[\#1e9930\]:active{background-color:#1e9930}.tauri-controls .active\:bg-\[\#bf403a\]:active{background-color:#bf403a}.tauri-controls .active\:bg-\[\#bf9122\]:active{background-color:#bf9122}.tauri-controls .active\:bg-\[\#bfbfbf\]:active{background-color:#bfbfbf}.tauri-controls .active\:bg-\[\#c42b1c\]\/90:active{background-color:#c42b1ce6}.tauri-controls .active\:bg-black\/3:active{background-color:#00000008}@supports (color:color-mix(in lab,red,red)){.tauri-controls .active\:bg-black\/3:active{background-color:color-mix(in oklab,var(--color-black) 3%,transparent)}}.tauri-controls .active\:text-black:active{color:var(--color-black)}.tauri-controls .active\:text-black\/60:active{color:#0009}@supports (color:color-mix(in lab,red,red)){.tauri-controls .active\:text-black\/60:active{color:color-mix(in oklab,var(--color-black) 60%,transparent)}}.tauri-controls .dark\:border-none:where(.dark,.dark *){--tw-border-style:none;border-style:none}.tauri-controls .dark\:border-slate-600:where(.dark,.dark *){border-color:var(--color-slate-600)}.tauri-controls .dark\:bg-\[\#373737\]:where(.dark,.dark *){background-color:#373737}.tauri-controls .dark\:bg-slate-800:where(.dark,.dark *){background-color:var(--color-slate-800)}.tauri-controls .dark\:bg-slate-900:where(.dark,.dark *){background-color:var(--color-slate-900)}.tauri-controls .dark\:bg-slate-950\/50:where(.dark,.dark *){background-color:#02061880}@supports (color:color-mix(in lab,red,red)){.tauri-controls .dark\:bg-slate-950\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-slate-950) 50%,transparent)}}.tauri-controls .dark\:text-black:where(.dark,.dark *){color:var(--color-black)}.tauri-controls .dark\:text-sky-300\/70:where(.dark,.dark *){color:#77d4ffb3}@supports (color:color-mix(in lab,red,red)){.tauri-controls .dark\:text-sky-300\/70:where(.dark,.dark *){color:color-mix(in oklab,var(--color-sky-300) 70%,transparent)}}.tauri-controls .dark\:text-white:where(.dark,.dark *){color:var(--color-white)}@media(hover:hover){.tauri-controls .dark\:hover\:bg-\[\#424242\]:where(.dark,.dark *):hover{background-color:#424242}.tauri-controls .dark\:hover\:bg-white\/6:where(.dark,.dark *):hover{background-color:#ffffff0f}@supports (color:color-mix(in lab,red,red)){.tauri-controls .dark\:hover\:bg-white\/6:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-white) 6%,transparent)}}}.tauri-controls .dark\:active\:bg-\[\#565656\]:where(.dark,.dark *):active{background-color:#565656}.tauri-controls .dark\:active\:bg-white\/4:where(.dark,.dark *):active{background-color:#ffffff0a}@supports (color:color-mix(in lab,red,red)){.tauri-controls .dark\:active\:bg-white\/4:where(.dark,.dark *):active{background-color:color-mix(in oklab,var(--color-white) 4%,transparent)}}}.tauri-controls button,.tauri-controls input,.tauri-controls optgroup,.tauri-controls select,.tauri-controls textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;appearance:none;cursor:default;background-color:#0000;border:none;border-radius:0;outline:none;margin:0;padding:0}.tauri-controls *{box-sizing:border-box}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}
1
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}.tauri-controls :root,.tauri-controls :host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-yellow-300:oklch(90.5% .182 98.111);--color-sky-300:oklch(82.8% .111 230.318);--color-sky-500:oklch(68.5% .169 237.323);--color-sky-600:oklch(58.8% .158 241.966);--color-violet-200:oklch(89.4% .057 293.283);--color-rose-300:oklch(81% .117 11.638);--color-rose-700:oklch(51.4% .222 16.935);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-800:oklch(27.9% .041 260.031);--color-slate-900:oklch(20.8% .042 265.755);--color-slate-950:oklch(12.9% .042 264.695);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--font-weight-semibold:600;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}@layer base{.tauri-controls *,.tauri-controls :after,.tauri-controls :before,.tauri-controls ::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}.tauri-controls ::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}.tauri-controls html,.tauri-controls :host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}.tauri-controls hr{height:0;color:inherit;border-top-width:1px}.tauri-controls abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.tauri-controls h1,.tauri-controls h2,.tauri-controls h3,.tauri-controls h4,.tauri-controls h5,.tauri-controls h6{font-size:inherit;font-weight:inherit}.tauri-controls a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}.tauri-controls b,.tauri-controls strong{font-weight:bolder}.tauri-controls code,.tauri-controls kbd,.tauri-controls samp,.tauri-controls pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}.tauri-controls small{font-size:80%}.tauri-controls sub,.tauri-controls sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}.tauri-controls sub{bottom:-.25em}.tauri-controls sup{top:-.5em}.tauri-controls table{text-indent:0;border-color:inherit;border-collapse:collapse}.tauri-controls :-moz-focusring{outline:auto}.tauri-controls progress{vertical-align:baseline}.tauri-controls summary{display:list-item}.tauri-controls ol,.tauri-controls ul,.tauri-controls menu{list-style:none}.tauri-controls img,.tauri-controls svg,.tauri-controls video,.tauri-controls canvas,.tauri-controls audio,.tauri-controls iframe,.tauri-controls embed,.tauri-controls object{vertical-align:middle;display:block}.tauri-controls img,.tauri-controls video{max-width:100%;height:auto}.tauri-controls button,.tauri-controls input,.tauri-controls select,.tauri-controls optgroup,.tauri-controls textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}.tauri-controls ::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}.tauri-controls :where(select:is([multiple],[size])) optgroup{font-weight:bolder}.tauri-controls :where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}.tauri-controls ::file-selector-button{margin-inline-end:4px}.tauri-controls ::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){.tauri-controls ::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){.tauri-controls ::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}.tauri-controls textarea{resize:vertical}.tauri-controls ::-webkit-search-decoration{-webkit-appearance:none}.tauri-controls ::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}.tauri-controls ::-webkit-datetime-edit{display:inline-flex}.tauri-controls ::-webkit-datetime-edit-fields-wrapper{padding:0}.tauri-controls ::-webkit-datetime-edit{padding-block:0}.tauri-controls ::-webkit-datetime-edit-year-field{padding-block:0}.tauri-controls ::-webkit-datetime-edit-month-field{padding-block:0}.tauri-controls ::-webkit-datetime-edit-day-field{padding-block:0}.tauri-controls ::-webkit-datetime-edit-hour-field{padding-block:0}.tauri-controls ::-webkit-datetime-edit-minute-field{padding-block:0}.tauri-controls ::-webkit-datetime-edit-second-field{padding-block:0}.tauri-controls ::-webkit-datetime-edit-millisecond-field{padding-block:0}.tauri-controls ::-webkit-datetime-edit-meridiem-field{padding-block:0}.tauri-controls ::-webkit-calendar-picker-indicator{line-height:1}.tauri-controls :-moz-ui-invalid{box-shadow:none}.tauri-controls button,.tauri-controls input:where([type=button],[type=reset],[type=submit]){appearance:button}.tauri-controls ::file-selector-button{appearance:button}.tauri-controls ::-webkit-inner-spin-button{height:auto}.tauri-controls ::-webkit-outer-spin-button{height:auto}.tauri-controls [hidden]:where(:not([hidden=until-found])){display:none!important}}@layer utilities{.tauri-controls .invisible{visibility:hidden!important}.tauri-controls .fixed{position:fixed!important}.tauri-controls .relative{position:relative!important}.tauri-controls .start{inset-inline-start:var(--spacing)!important}.tauri-controls .top-1{top:calc(var(--spacing) * 1)!important}.tauri-controls .right-1{right:calc(var(--spacing) * 1)!important}.tauri-controls .isolate{isolation:isolate!important}.tauri-controls .m-0{margin:calc(var(--spacing) * 0)!important}.tauri-controls .mr-2{margin-right:calc(var(--spacing) * 2)!important}.tauri-controls .mr-\[10px\]{margin-right:10px!important}.tauri-controls .ml-0{margin-left:calc(var(--spacing) * 0)!important}.tauri-controls .ml-3{margin-left:calc(var(--spacing) * 3)!important}.tauri-controls .ml-auto{margin-left:auto!important}.tauri-controls .contents{display:contents!important}.tauri-controls .flex{display:flex!important}.tauri-controls .hidden{display:none!important}.tauri-controls .inline-flex{display:inline-flex!important}.tauri-controls .aspect-square{aspect-ratio:1!important}.tauri-controls .h-2{height:calc(var(--spacing) * 2)!important}.tauri-controls .h-3{height:calc(var(--spacing) * 3)!important}.tauri-controls .h-6{height:calc(var(--spacing) * 6)!important}.tauri-controls .h-8{height:calc(var(--spacing) * 8)!important}.tauri-controls .h-10{height:calc(var(--spacing) * 10)!important}.tauri-controls .h-\[9px\]{height:9px!important}.tauri-controls .h-auto{height:auto!important}.tauri-controls .h-full{height:100%!important}.tauri-controls .h-screen{height:100vh!important}.tauri-controls .max-h-8{max-height:calc(var(--spacing) * 8)!important}.tauri-controls .w-2{width:calc(var(--spacing) * 2)!important}.tauri-controls .w-3{width:calc(var(--spacing) * 3)!important}.tauri-controls .w-6{width:calc(var(--spacing) * 6)!important}.tauri-controls .w-\[9px\]{width:9px!important}.tauri-controls .w-\[46px\]{width:46px!important}.tauri-controls .w-\[960px\]{width:960px!important}.tauri-controls .w-\[1300px\]{width:1300px!important}.tauri-controls .w-fit{width:fit-content!important}.tauri-controls .w-full{width:100%!important}.tauri-controls .cursor-default{cursor:default!important}.tauri-controls .flex-col{flex-direction:column!important}.tauri-controls .flex-row{flex-direction:row!important}.tauri-controls .content-center{align-content:center!important}.tauri-controls .items-center{align-items:center!important}.tauri-controls .justify-center{justify-content:center!important}:where(.tauri-controls .space-y-3>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))!important}:where(.tauri-controls .space-x-2>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)))!important}:where(.tauri-controls .space-x-3>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--spacing) * 3) * var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-x-reverse)))!important}:where(.tauri-controls .space-x-\[13px\]>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(13px * var(--tw-space-x-reverse))!important;margin-inline-end:calc(13px * calc(1 - var(--tw-space-x-reverse)))!important}.tauri-controls .self-center{align-self:center!important}.tauri-controls .overflow-auto{overflow:auto!important}.tauri-controls .overflow-hidden{overflow:hidden!important}.tauri-controls .rounded-full{border-radius:3.40282e38px!important}.tauri-controls .rounded-md{border-radius:var(--radius-md)!important}.tauri-controls .rounded-none{border-radius:0!important}.tauri-controls .rounded-sm{border-radius:var(--radius-sm)!important}.tauri-controls .rounded-xl{border-radius:var(--radius-xl)!important}.tauri-controls .rounded-t-lg{border-top-left-radius:var(--radius-lg)!important;border-top-right-radius:var(--radius-lg)!important}.tauri-controls .border{border-style:var(--tw-border-style)!important;border-width:1px!important}.tauri-controls .border-b{border-bottom-style:var(--tw-border-style)!important;border-bottom-width:1px!important}.tauri-controls .border-dashed{--tw-border-style:dashed!important;border-style:dashed!important}.tauri-controls .border-none{--tw-border-style:none!important;border-style:none!important}.tauri-controls .border-black\/12{border-color:#0000001f!important}@supports (color:color-mix(in lab,red,red)){.tauri-controls .border-black\/12{border-color:color-mix(in oklab,var(--color-black) 12%,transparent)!important}}.tauri-controls .border-black\/\[\.07\]{border-color:#00000012!important}@supports (color:color-mix(in lab,red,red)){.tauri-controls .border-black\/\[\.07\]{border-color:color-mix(in oklab,var(--color-black) 7%,transparent)!important}}.tauri-controls .border-slate-400{border-color:var(--color-slate-400)!important}.tauri-controls .bg-\[\#28c93f\]{background-color:#28c93f!important}.tauri-controls .bg-\[\#dadada\]{background-color:#dadada!important}.tauri-controls .bg-\[\#ff544d\]{background-color:#ff544d!important}.tauri-controls .bg-\[\#ffbd2e\]{background-color:#ffbd2e!important}.tauri-controls .bg-rose-300{background-color:var(--color-rose-300)!important}.tauri-controls .bg-rose-700{background-color:var(--color-rose-700)!important}.tauri-controls .bg-sky-300{background-color:var(--color-sky-300)!important}.tauri-controls .bg-sky-500{background-color:var(--color-sky-500)!important}.tauri-controls .bg-slate-200{background-color:var(--color-slate-200)!important}.tauri-controls .bg-slate-300{background-color:var(--color-slate-300)!important}.tauri-controls .bg-transparent{background-color:#0000!important}.tauri-controls .bg-violet-200\/20{background-color:#ddd6ff33!important}@supports (color:color-mix(in lab,red,red)){.tauri-controls .bg-violet-200\/20{background-color:color-mix(in oklab,var(--color-violet-200) 20%,transparent)!important}}.tauri-controls .bg-white{background-color:var(--color-white)!important}.tauri-controls .bg-yellow-300{background-color:var(--color-yellow-300)!important}.tauri-controls .p-0{padding:calc(var(--spacing) * 0)!important}.tauri-controls .p-2{padding:calc(var(--spacing) * 2)!important}.tauri-controls .p-3{padding:calc(var(--spacing) * 3)!important}.tauri-controls .px-2{padding-inline:calc(var(--spacing) * 2)!important}.tauri-controls .px-3{padding-inline:calc(var(--spacing) * 3)!important}.tauri-controls .px-14{padding-inline:calc(var(--spacing) * 14)!important}.tauri-controls .py-1{padding-block:calc(var(--spacing) * 1)!important}.tauri-controls .py-6{padding-block:calc(var(--spacing) * 6)!important}.tauri-controls .pr-10{padding-right:calc(var(--spacing) * 10)!important}.tauri-controls .pb-1{padding-bottom:calc(var(--spacing) * 1)!important}.tauri-controls .text-center{text-align:center!important}.tauri-controls .font-mono{font-family:var(--font-mono)!important}.tauri-controls .text-lg{font-size:var(--text-lg)!important;line-height:var(--tw-leading,var(--text-lg--line-height))!important}.tauri-controls .font-semibold{--tw-font-weight:var(--font-weight-semibold)!important;font-weight:var(--font-weight-semibold)!important}.tauri-controls .whitespace-nowrap{white-space:nowrap!important}.tauri-controls .text-\[\#3d3d3d\]{color:#3d3d3d!important}.tauri-controls .text-black{color:var(--color-black)!important}.tauri-controls .text-black\/60{color:#0009!important}@supports (color:color-mix(in lab,red,red)){.tauri-controls .text-black\/60{color:color-mix(in oklab,var(--color-black) 60%,transparent)!important}}.tauri-controls .text-black\/90{color:#000000e6!important}@supports (color:color-mix(in lab,red,red)){.tauri-controls .text-black\/90{color:color-mix(in oklab,var(--color-black) 90%,transparent)!important}}.tauri-controls .text-sky-600\/70{color:#0084ccb3!important}@supports (color:color-mix(in lab,red,red)){.tauri-controls .text-sky-600\/70{color:color-mix(in oklab,var(--color-sky-600) 70%,transparent)!important}}.tauri-controls .text-white\/36{color:#ffffff5c!important}@supports (color:color-mix(in lab,red,red)){.tauri-controls .text-white\/36{color:color-mix(in oklab,var(--color-white) 36%,transparent)!important}}.tauri-controls .shadow,.tauri-controls .shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.tauri-controls .select-none{-webkit-user-select:none!important;user-select:none!important}@media(hover:hover){.tauri-controls .hover\:bg-\[\#28c93f\]:hover{background-color:#28c93f!important}.tauri-controls .hover\:bg-\[\#c42b1c\]:hover{background-color:#c42b1c!important}.tauri-controls .hover\:bg-\[\#d1d1d1\]:hover{background-color:#d1d1d1!important}.tauri-controls .hover\:bg-\[\#ff544d\]:hover{background-color:#ff544d!important}.tauri-controls .hover\:bg-\[\#ffbd2e\]:hover{background-color:#ffbd2e!important}.tauri-controls .hover\:bg-black\/5:hover{background-color:#0000000d!important}@supports (color:color-mix(in lab,red,red)){.tauri-controls .hover\:bg-black\/5:hover{background-color:color-mix(in oklab,var(--color-black) 5%,transparent)!important}}.tauri-controls .hover\:text-white:hover{color:var(--color-white)!important}}.tauri-controls .active\:bg-\[\#1e9930\]:active{background-color:#1e9930!important}.tauri-controls .active\:bg-\[\#bf403a\]:active{background-color:#bf403a!important}.tauri-controls .active\:bg-\[\#bf9122\]:active{background-color:#bf9122!important}.tauri-controls .active\:bg-\[\#bfbfbf\]:active{background-color:#bfbfbf!important}.tauri-controls .active\:bg-\[\#c42b1c\]\/90:active{background-color:#c42b1ce6!important}.tauri-controls .active\:bg-black\/3:active{background-color:#00000008!important}@supports (color:color-mix(in lab,red,red)){.tauri-controls .active\:bg-black\/3:active{background-color:color-mix(in oklab,var(--color-black) 3%,transparent)!important}}.tauri-controls .active\:text-black:active{color:var(--color-black)!important}.tauri-controls .active\:text-black\/60:active{color:#0009!important}@supports (color:color-mix(in lab,red,red)){.tauri-controls .active\:text-black\/60:active{color:color-mix(in oklab,var(--color-black) 60%,transparent)!important}}.tauri-controls .dark\:border-none:where(.dark,.dark *){--tw-border-style:none!important;border-style:none!important}.tauri-controls .dark\:border-slate-600:where(.dark,.dark *){border-color:var(--color-slate-600)!important}.tauri-controls .dark\:bg-\[\#373737\]:where(.dark,.dark *){background-color:#373737!important}.tauri-controls .dark\:bg-slate-800:where(.dark,.dark *){background-color:var(--color-slate-800)!important}.tauri-controls .dark\:bg-slate-900:where(.dark,.dark *){background-color:var(--color-slate-900)!important}.tauri-controls .dark\:bg-slate-950\/50:where(.dark,.dark *){background-color:#02061880!important}@supports (color:color-mix(in lab,red,red)){.tauri-controls .dark\:bg-slate-950\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-slate-950) 50%,transparent)!important}}.tauri-controls .dark\:text-black:where(.dark,.dark *){color:var(--color-black)!important}.tauri-controls .dark\:text-sky-300\/70:where(.dark,.dark *){color:#77d4ffb3!important}@supports (color:color-mix(in lab,red,red)){.tauri-controls .dark\:text-sky-300\/70:where(.dark,.dark *){color:color-mix(in oklab,var(--color-sky-300) 70%,transparent)!important}}.tauri-controls .dark\:text-white:where(.dark,.dark *){color:var(--color-white)!important}@media(hover:hover){.tauri-controls .dark\:hover\:bg-\[\#424242\]:where(.dark,.dark *):hover{background-color:#424242!important}.tauri-controls .dark\:hover\:bg-white\/6:where(.dark,.dark *):hover{background-color:#ffffff0f!important}@supports (color:color-mix(in lab,red,red)){.tauri-controls .dark\:hover\:bg-white\/6:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-white) 6%,transparent)!important}}}.tauri-controls .dark\:active\:bg-\[\#565656\]:where(.dark,.dark *):active{background-color:#565656!important}.tauri-controls .dark\:active\:bg-white\/4:where(.dark,.dark *):active{background-color:#ffffff0a!important}@supports (color:color-mix(in lab,red,red)){.tauri-controls .dark\:active\:bg-white\/4:where(.dark,.dark *):active{background-color:color-mix(in oklab,var(--color-white) 4%,transparent)!important}}}.tauri-controls button,.tauri-controls input,.tauri-controls optgroup,.tauri-controls select,.tauri-controls textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;appearance:none;cursor:default;background-color:#0000;border:none;border-radius:0;outline:none;margin:0;padding:0}.tauri-controls *{box-sizing:border-box}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}
@@ -1 +1 @@
1
- import"./tauri-controls.css";import e,{createContext as r,useState as t,useEffect as n,useCallback as i,useContext as o}from"react";import{clsx as a}from"clsx";import{twMerge as s}from"tailwind-merge";var l,c,d,u={exports:{}},f={},m={};var p=(d||(d=1,"production"===process.env.NODE_ENV?u.exports=function(){if(l)return f;l=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function t(r,t,n){var i=null;if(void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),"key"in t)for(var o in n={},t)"key"!==o&&(n[o]=t[o]);else n=t;return t=n.ref,{$$typeof:e,type:r,key:i,ref:void 0!==t?t:null,props:n}}return f.Fragment=r,f.jsx=t,f.jsxs=t,f}():u.exports=(c||(c=1,"production"!==process.env.NODE_ENV&&function(){function r(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===N?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case C:return"Fragment";case w:return"Profiler";case b:return"StrictMode";case v:return"Suspense";case g:return"SuspenseList";case _:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case p:return"Portal";case h:return e.displayName||"Context";case x:return(e._context.displayName||"Context")+".Consumer";case y:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case k:return null!==(t=e.displayName||null)?t:r(e.type)||"Memo";case j:t=e._payload,e=e._init;try{return r(e(t))}catch{}}return null}function t(e){return""+e}function n(e){try{t(e);var r=!1}catch{r=!0}if(r){var n=(r=console).error,i="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",i),t(e)}}function i(e){if(e===C)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===j)return"<...>";try{var t=r(e);return t?"<"+t+">":"<...>"}catch{return"<...>"}}function o(){return Error("react-stack-top-frame")}function a(){var e=r(this.type);return O[e]||(O[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function s(e,t,i,o,s,c){var u,m,p,C,b,w,x,h,y=t.children;if(void 0!==y)if(o)if(z(y)){for(o=0;o<y.length;o++)l(y[o]);Object.freeze&&Object.freeze(y)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else l(y);if(S.call(t,"key")){y=r(e);var v=Object.keys(t).filter((function(e){return"key"!==e}));o=0<v.length?"{key: someKey, "+v.join(": ..., ")+": ...}":"{key: someKey}",P[y+o]||(v=0<v.length?"{"+v.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',o,y,v,y),P[y+o]=!0)}if(y=null,void 0!==i&&(n(i),y=""+i),function(e){if(S.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return void 0!==e.key}(t)&&(n(t.key),y=""+t.key),"key"in t)for(var g in i={},t)"key"!==g&&(i[g]=t[g]);else i=t;return y&&function(e,r){function t(){d||(d=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}(i,"function"==typeof e?e.displayName||e.name||"Unknown":e),m=e,p=y,C=i,b=null===(u=W.A)?null:u.getOwner(),w=s,x=c,h=C.ref,m={$$typeof:f,type:m,key:p,props:C,_owner:b},null!==(void 0!==h?h:null)?Object.defineProperty(m,"ref",{enumerable:!1,get:a}):Object.defineProperty(m,"ref",{enumerable:!1,value:null}),m._store={},Object.defineProperty(m._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(m,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(m,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:w}),Object.defineProperty(m,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:x}),Object.freeze&&(Object.freeze(m.props),Object.freeze(m)),m}function l(e){c(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===j&&("fulfilled"===e._payload.status?c(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function c(e){return"object"==typeof e&&null!==e&&e.$$typeof===f}var d,u=e,f=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),h=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),N=Symbol.for("react.client.reference"),W=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,S=Object.prototype.hasOwnProperty,z=Array.isArray,M=console.createTask?console.createTask:function(){return null},O={},L=(u={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(u,o)(),R=M(i(o)),P={};m.Fragment=C,m.jsx=function(e,r,t){var n=1e4>W.recentlyCreatedOwnerStacks++;return s(e,r,t,!1,n?Error("react-stack-top-frame"):L,n?M(i(e)):R)},m.jsxs=function(e,r,t){var n=1e4>W.recentlyCreatedOwnerStacks++;return s(e,r,t,!0,n?Error("react-stack-top-frame"):L,n?M(i(e)):R)}}()),m)),u.exports);function C(...e){return s(a(e))}let b,w=null;function x(){return w||(b?Promise.resolve(b):Promise.resolve("windows"))}typeof window<"u"&&(w=async function(){return async function(e,r={},t){return window.__TAURI_INTERNALS__.invoke(e,r,t)}("plugin:os|os_type")}().then((e=>(b=e,e))));const h=r({appWindow:null,isWindowMaximized:!1,minimizeWindow:()=>Promise.resolve(),maximizeWindow:()=>Promise.resolve(),fullscreenWindow:()=>Promise.resolve(),closeWindow:()=>Promise.resolve()}),y=({children:e})=>{const[r,o]=t(null),[a,s]=t(!1);n((()=>{typeof window<"u"&&import("./index-CRQ_vzBK.js").then((e=>{o(e.window.getCurrentWindow())}))}),[]);const l=i((async()=>{if(r){const e=await r.isMaximized();s(e)}}),[r]);return n((()=>{let e;return x().then((t=>{"macos"!==t&&(l(),(async()=>{r&&(e=await r.onResized((()=>{l()})))})())})),()=>{e&&e()}}),[r,l]),p.jsx(h.Provider,{value:{appWindow:r,isWindowMaximized:a,minimizeWindow:async()=>{r&&await r.minimize()},maximizeWindow:async()=>{r&&await r.toggleMaximize()},fullscreenWindow:async()=>{r&&(await r.isFullscreen()?await r.setFullscreen(!1):await r.setFullscreen(!0))},closeWindow:async()=>{r&&await r.close()}},children:e})},v={minimizeWin:e=>p.jsx("svg",{width:"10",height:"1",viewBox:"0 0 10 1",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("path",{d:"M0.498047 1.00098C0.429688 1.00098 0.364583 0.987956 0.302734 0.961914C0.244141 0.935872 0.192057 0.900065 0.146484 0.854492C0.100911 0.808919 0.0651042 0.756836 0.0390625 0.698242C0.0130208 0.636393 0 0.571289 0 0.50293C0 0.43457 0.0130208 0.371094 0.0390625 0.3125C0.0651042 0.250651 0.100911 0.19694 0.146484 0.151367C0.192057 0.102539 0.244141 0.0651042 0.302734 0.0390625C0.364583 0.0130208 0.429688 0 0.498047 0H9.50195C9.57031 0 9.63379 0.0130208 9.69238 0.0390625C9.75423 0.0651042 9.80794 0.102539 9.85352 0.151367C9.89909 0.19694 9.9349 0.250651 9.96094 0.3125C9.98698 0.371094 10 0.43457 10 0.50293C10 0.571289 9.98698 0.636393 9.96094 0.698242C9.9349 0.756836 9.89909 0.808919 9.85352 0.854492C9.80794 0.900065 9.75423 0.935872 9.69238 0.961914C9.63379 0.987956 9.57031 1.00098 9.50195 1.00098H0.498047Z",fill:"currentColor",fillOpacity:"0.8956"})}),maximizeWin:e=>p.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("path",{d:"M1.47461 10.001C1.2793 10.001 1.09212 9.96191 0.913086 9.88379C0.734049 9.80241 0.576172 9.69499 0.439453 9.56152C0.30599 9.4248 0.198568 9.26693 0.117188 9.08789C0.0390625 8.90885 0 8.72168 0 8.52637V1.47559C0 1.28027 0.0390625 1.0931 0.117188 0.914062C0.198568 0.735026 0.30599 0.578776 0.439453 0.445312C0.576172 0.308594 0.734049 0.201172 0.913086 0.123047C1.09212 0.0416667 1.2793 0.000976562 1.47461 0.000976562H8.52539C8.7207 0.000976562 8.90788 0.0416667 9.08691 0.123047C9.26595 0.201172 9.4222 0.308594 9.55566 0.445312C9.69238 0.578776 9.7998 0.735026 9.87793 0.914062C9.95931 1.0931 10 1.28027 10 1.47559V8.52637C10 8.72168 9.95931 8.90885 9.87793 9.08789C9.7998 9.26693 9.69238 9.4248 9.55566 9.56152C9.4222 9.69499 9.26595 9.80241 9.08691 9.88379C8.90788 9.96191 8.7207 10.001 8.52539 10.001H1.47461ZM8.50098 9C8.56934 9 8.63281 8.98698 8.69141 8.96094C8.75326 8.9349 8.80697 8.89909 8.85254 8.85352C8.89811 8.80794 8.93392 8.75586 8.95996 8.69727C8.986 8.63542 8.99902 8.57031 8.99902 8.50195V1.5C8.99902 1.43164 8.986 1.36816 8.95996 1.30957C8.93392 1.24772 8.89811 1.19401 8.85254 1.14844C8.80697 1.10286 8.75326 1.06706 8.69141 1.04102C8.63281 1.01497 8.56934 1.00195 8.50098 1.00195H1.49902C1.43066 1.00195 1.36556 1.01497 1.30371 1.04102C1.24512 1.06706 1.19303 1.10286 1.14746 1.14844C1.10189 1.19401 1.06608 1.24772 1.04004 1.30957C1.014 1.36816 1.00098 1.43164 1.00098 1.5V8.50195C1.00098 8.57031 1.014 8.63542 1.04004 8.69727C1.06608 8.75586 1.10189 8.80794 1.14746 8.85352C1.19303 8.89909 1.24512 8.9349 1.30371 8.96094C1.36556 8.98698 1.43066 9 1.49902 9H8.50098Z",fill:"currentColor",fillOpacity:"0.8956"})}),maximizeRestoreWin:e=>p.jsx("svg",{width:"10",height:"11",viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("path",{d:"M8.99902 2.98096C8.99902 2.71077 8.94531 2.45687 8.83789 2.21924C8.73047 1.97835 8.58398 1.77002 8.39844 1.59424C8.21615 1.4152 8.00293 1.27523 7.75879 1.17432C7.5179 1.07015 7.264 1.01807 6.99707 1.01807H2.08496C2.13704 0.868327 2.21029 0.731608 2.30469 0.60791C2.39909 0.484212 2.50814 0.378418 2.63184 0.290527C2.75553 0.202637 2.89062 0.135905 3.03711 0.090332C3.18685 0.0415039 3.34147 0.0170898 3.50098 0.0170898H6.99707C7.41048 0.0170898 7.79948 0.0968424 8.16406 0.256348C8.52865 0.412598 8.84603 0.625814 9.11621 0.895996C9.38965 1.16618 9.60449 1.48356 9.76074 1.84814C9.92025 2.21273 10 2.60173 10 3.01514V6.51611C10 6.67562 9.97559 6.83024 9.92676 6.97998C9.88118 7.12646 9.81445 7.26156 9.72656 7.38525C9.63867 7.50895 9.53288 7.618 9.40918 7.7124C9.28548 7.8068 9.14876 7.88005 8.99902 7.93213V2.98096ZM1.47461 10.0171C1.2793 10.0171 1.09212 9.97803 0.913086 9.8999C0.734049 9.81852 0.576172 9.7111 0.439453 9.57764C0.30599 9.44092 0.198568 9.28304 0.117188 9.104C0.0390625 8.92497 0 8.73779 0 8.54248V3.49365C0 3.29508 0.0390625 3.10791 0.117188 2.93213C0.198568 2.75309 0.30599 2.59684 0.439453 2.46338C0.576172 2.32666 0.732422 2.21924 0.908203 2.14111C1.08724 2.05973 1.27604 2.01904 1.47461 2.01904H6.52344C6.72201 2.01904 6.91081 2.05973 7.08984 2.14111C7.26888 2.21924 7.42513 2.32503 7.55859 2.4585C7.69206 2.59196 7.79785 2.74821 7.87598 2.92725C7.95736 3.10628 7.99805 3.29508 7.99805 3.49365V8.54248C7.99805 8.74105 7.95736 8.92985 7.87598 9.10889C7.79785 9.28467 7.69043 9.44092 7.55371 9.57764C7.42025 9.7111 7.264 9.81852 7.08496 9.8999C6.90918 9.97803 6.72201 10.0171 6.52344 10.0171H1.47461ZM6.49902 9.01611C6.56738 9.01611 6.63086 9.00309 6.68945 8.97705C6.7513 8.95101 6.80501 8.9152 6.85059 8.86963C6.89941 8.82406 6.93685 8.77197 6.96289 8.71338C6.98893 8.65153 7.00195 8.58643 7.00195 8.51807V3.51807C7.00195 3.44971 6.98893 3.3846 6.96289 3.32275C6.93685 3.2609 6.90104 3.20719 6.85547 3.16162C6.8099 3.11605 6.75618 3.08024 6.69434 3.0542C6.63249 3.02816 6.56738 3.01514 6.49902 3.01514H1.49902C1.43066 3.01514 1.36556 3.02816 1.30371 3.0542C1.24512 3.08024 1.19303 3.11768 1.14746 3.1665C1.10189 3.21208 1.06608 3.26579 1.04004 3.32764C1.014 3.38623 1.00098 3.44971 1.00098 3.51807V8.51807C1.00098 8.58643 1.014 8.65153 1.04004 8.71338C1.06608 8.77197 1.10189 8.82406 1.14746 8.86963C1.19303 8.9152 1.24512 8.95101 1.30371 8.97705C1.36556 9.00309 1.43066 9.01611 1.49902 9.01611H6.49902Z",fill:"currentColor",fillOpacity:"0.8956"})}),closeWin:e=>p.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("path",{d:"M5 5.70898L0.854492 9.85449C0.756836 9.95215 0.639648 10.001 0.50293 10.001C0.359701 10.001 0.239258 9.95378 0.141602 9.85938C0.0472005 9.76172 0 9.64128 0 9.49805C0 9.36133 0.0488281 9.24414 0.146484 9.14648L4.29199 5.00098L0.146484 0.855469C0.0488281 0.757812 0 0.638997 0 0.499023C0 0.430664 0.0130208 0.36556 0.0390625 0.303711C0.0651042 0.241862 0.100911 0.189779 0.146484 0.147461C0.192057 0.101888 0.245768 0.0660807 0.307617 0.0400391C0.369466 0.0139974 0.43457 0.000976562 0.50293 0.000976562C0.639648 0.000976562 0.756836 0.0498047 0.854492 0.147461L5 4.29297L9.14551 0.147461C9.24316 0.0498047 9.36198 0.000976562 9.50195 0.000976562C9.57031 0.000976562 9.63379 0.0139974 9.69238 0.0400391C9.75423 0.0660807 9.80794 0.101888 9.85352 0.147461C9.89909 0.193034 9.9349 0.246745 9.96094 0.308594C9.98698 0.367188 10 0.430664 10 0.499023C10 0.638997 9.95117 0.757812 9.85352 0.855469L5.70801 5.00098L9.85352 9.14648C9.95117 9.24414 10 9.36133 10 9.49805C10 9.56641 9.98698 9.63151 9.96094 9.69336C9.9349 9.75521 9.89909 9.80892 9.85352 9.85449C9.8112 9.90007 9.75911 9.93587 9.69727 9.96191C9.63542 9.98796 9.57031 10.001 9.50195 10.001C9.36198 10.001 9.24316 9.95215 9.14551 9.85449L5 5.70898Z",fill:"currentColor",fillOpacity:"0.8956"})}),closeMac:e=>p.jsx("svg",{width:"6",height:"6",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("path",{d:"M15.7522 4.44381L11.1543 9.04165L15.7494 13.6368C16.0898 13.9771 16.078 14.5407 15.724 14.8947L13.8907 16.728C13.5358 17.0829 12.9731 17.0938 12.6328 16.7534L8.03766 12.1583L3.44437 16.7507C3.10402 17.091 2.54132 17.0801 2.18645 16.7253L0.273257 14.8121C-0.0807018 14.4572 -0.0925004 13.8945 0.247845 13.5542L4.84024 8.96087L0.32499 4.44653C-0.0153555 4.10619 -0.00355681 3.54258 0.350402 3.18862L2.18373 1.35529C2.53859 1.00042 3.1013 0.989533 3.44164 1.32988L7.95689 5.84422L12.5556 1.24638C12.8951 0.906035 13.4587 0.917833 13.8126 1.27179L15.7267 3.18589C16.0807 3.53985 16.0925 4.10346 15.7522 4.44381Z",fill:"currentColor"})}),minMac:e=>p.jsx("svg",{width:"8",height:"8",viewBox:"0 0 17 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("g",{clipPath:"url(#clip0_20_2051)",children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.47211 1.18042H15.4197C15.8052 1.18042 16.1179 1.50551 16.1179 1.90769V3.73242C16.1179 4.13387 15.8052 4.80006 15.4197 4.80006H1.47211C1.08665 4.80006 0.773926 4.47497 0.773926 4.07278V1.90769C0.773926 1.50551 1.08665 1.18042 1.47211 1.18042Z",fill:"currentColor"})})}),fullMac:e=>p.jsx("svg",{width:"6",height:"6",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("g",{clipPath:"url(#clip0_20_2057)",children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.53068 0.433838L15.0933 12.0409C15.0933 12.0409 15.0658 5.35028 15.0658 4.01784C15.0658 1.32095 14.1813 0.433838 11.5378 0.433838C10.6462 0.433838 3.53068 0.433838 3.53068 0.433838ZM12.4409 15.5378L0.87735 3.93073C0.87735 3.93073 0.905794 10.6214 0.905794 11.9538C0.905794 14.6507 1.79024 15.5378 4.43291 15.5378C5.32535 15.5378 12.4409 15.5378 12.4409 15.5378Z",fill:"currentColor"})})}),plusMac:e=>p.jsx("svg",{width:"8",height:"8",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("g",{clipPath:"url(#clip0_20_2053)",children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.5308 9.80147H10.3199V15.0095C10.3199 15.3949 9.9941 15.7076 9.59265 15.7076H7.51555C7.11337 15.7076 6.78828 15.3949 6.78828 15.0095V9.80147H1.58319C1.19774 9.80147 0.88501 9.47638 0.88501 9.07419V6.90619C0.88501 6.50401 1.19774 6.17892 1.58319 6.17892H6.78828V1.06183C6.78828 0.676375 7.11337 0.363647 7.51555 0.363647H9.59265C9.9941 0.363647 10.3199 0.676375 10.3199 1.06183V6.17892H15.5308C15.9163 6.17892 16.229 6.50401 16.229 6.90619V9.07419C16.229 9.47638 15.9163 9.80147 15.5308 9.80147Z",fill:"currentColor"})})})};function g({className:e,children:r,...t}){return p.jsx("button",{className:C("inline-flex cursor-default items-center justify-center",e),...t,children:r})}function k({className:e,...r}){const{isWindowMaximized:t,minimizeWindow:n,maximizeWindow:i,closeWindow:a}=o(h);return p.jsxs("div",{className:C("h-8",e),...r,children:[p.jsx(g,{onClick:n,className:"max-h-8 w-[46px] cursor-default rounded-none bg-transparent text-black/90 hover:bg-black/5 active:bg-black/3 dark:text-white dark:hover:bg-white/6 dark:active:bg-white/4",children:p.jsx(v.minimizeWin,{})}),p.jsx(g,{onClick:i,className:C("max-h-8 w-[46px] cursor-default rounded-none bg-transparent","text-black/90 hover:bg-black/5 active:bg-black/3 dark:text-white dark:hover:bg-white/6 dark:active:bg-white/4"),children:t?p.jsx(v.maximizeRestoreWin,{}):p.jsx(v.maximizeWin,{})}),p.jsx(g,{onClick:a,className:"max-h-8 w-[46px] cursor-default rounded-none bg-transparent text-black/90 hover:bg-[#c42b1c] hover:text-white active:bg-[#c42b1c]/90 dark:text-white",children:p.jsx(v.closeWin,{})})]})}function j({className:e,...r}){const{minimizeWindow:i,maximizeWindow:a,fullscreenWindow:s,closeWindow:l}=o(h),[c,d]=t(!1),[u,f]=t(!1),m=c?p.jsx(v.plusMac,{}):p.jsx(v.fullMac,{}),b=e=>{"Alt"===e.key&&d(!0)},w=e=>{"Alt"===e.key&&d(!1)};return n((()=>{window.addEventListener("keydown",b),window.addEventListener("keyup",w)}),[]),p.jsxs("div",{className:C("space-x-2 px-3 text-black active:text-black dark:text-black",e),onMouseEnter:()=>{f(!0)},onMouseLeave:()=>{f(!1)},...r,children:[p.jsx(g,{onClick:l,className:"aspect-square h-3 w-3 cursor-default content-center items-center justify-center self-center rounded-full border border-black/12 bg-[#ff544d] text-center text-black/60 hover:bg-[#ff544d] active:bg-[#bf403a] active:text-black/60 dark:border-none",children:u&&p.jsx(v.closeMac,{})}),p.jsx(g,{onClick:i,className:"aspect-square h-3 w-3 cursor-default content-center items-center justify-center self-center rounded-full border border-black/12 bg-[#ffbd2e] text-center text-black/60 hover:bg-[#ffbd2e] active:bg-[#bf9122] active:text-black/60 dark:border-none",children:u&&p.jsx(v.minMac,{})}),p.jsx(g,{onClick:c?a:s,className:"aspect-square h-3 w-3 cursor-default content-center items-center justify-center self-center rounded-full border border-black/12 bg-[#28c93f] text-center text-black/60 hover:bg-[#28c93f] active:bg-[#1e9930] active:text-black/60 dark:border-none",children:u&&m})]})}function _({className:e,...r}){const{isWindowMaximized:t,minimizeWindow:n,maximizeWindow:i,closeWindow:a}=o(h);return p.jsxs("div",{className:C("mr-[10px] h-auto items-center space-x-[13px]",e),...r,children:[p.jsx(g,{onClick:n,className:"m-0 aspect-square h-6 w-6 cursor-default rounded-full bg-[#dadada] p-0 text-[#3d3d3d] hover:bg-[#d1d1d1] active:bg-[#bfbfbf] dark:bg-[#373737] dark:text-white dark:hover:bg-[#424242] dark:active:bg-[#565656]",children:p.jsx(v.minimizeWin,{className:"h-[9px] w-[9px]"})}),p.jsx(g,{onClick:i,className:"m-0 aspect-square h-6 w-6 cursor-default rounded-full bg-[#dadada] p-0 text-[#3d3d3d] hover:bg-[#d1d1d1] active:bg-[#bfbfbf] dark:bg-[#373737] dark:text-white dark:hover:bg-[#424242] dark:active:bg-[#565656]",children:t?p.jsx(v.maximizeRestoreWin,{className:"h-[9px] w-[9px]"}):p.jsx(v.maximizeWin,{className:"h-2 w-2"})}),p.jsx(g,{onClick:a,className:"m-0 aspect-square h-6 w-6 cursor-default rounded-full bg-[#dadada] p-0 text-[#3d3d3d] hover:bg-[#d1d1d1] active:bg-[#bfbfbf] dark:bg-[#373737] dark:text-white dark:hover:bg-[#424242] dark:active:bg-[#565656]",children:p.jsx(v.closeWin,{className:"h-2 w-2"})})]})}function N({platform:e,justify:r=!1,hide:i=!1,hideMethod:o="display",className:a,...s}){const[l,c]=t(void 0);n((()=>{x().then((e=>{c(e)}))}),[]);const d=C("tauri-controls flex",a,i&&("display"===o?"hidden":"invisible"));if(!e)switch(l){case"macos":e="macos";break;case"linux":e="gnome";break;default:e="windows"}return p.jsx(y,{children:p.jsx((()=>{switch(e){case"windows":default:return p.jsx(k,{className:C(d,r&&"ml-auto"),...s});case"macos":return p.jsx(j,{className:C(d,r&&"ml-0"),...s});case"gnome":return p.jsx(_,{className:C(d,r&&"ml-auto"),...s})}}),{})})}function W({children:e,controlsOrder:r="system",className:i,windowControlsProps:o,...a}){const[s,l]=t(void 0);n((()=>{x().then((e=>{l(e)}))}),[]);const c="left"===r||"platform"===r&&"macos"===o?.platform||"system"===r&&"macos"===s,d=e=>{if(void 0!==o?.justify)return o;const{justify:r,className:t,...n}=o||{};return{justify:!1,className:C(t,e),...n}};return p.jsx("div",{className:C("tauri-controls bg-background flex flex-row overflow-hidden select-none",i),"data-tauri-drag-region":!0,...a,children:c?p.jsxs(p.Fragment,{children:[p.jsx(N,{...d("ml-0")}),e]}):p.jsxs(p.Fragment,{children:[e,p.jsx(N,{...d("ml-auto")})]})})}export{N as WindowControls,W as WindowTitlebar};
1
+ import"./tauri-controls.css";import e,{createContext as t,useState as r,useEffect as n,useCallback as i,useContext as a}from"react";import{clsx as o}from"clsx";import{twMerge as s}from"tailwind-merge";var l,c,d,u={exports:{}},f={},m={};var p=(d||(d=1,"production"===process.env.NODE_ENV?u.exports=function(){if(l)return f;l=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(t,r,n){var i=null;if(void 0!==n&&(i=""+n),void 0!==r.key&&(i=""+r.key),"key"in r)for(var a in n={},r)"key"!==a&&(n[a]=r[a]);else n=r;return r=n.ref,{$$typeof:e,type:t,key:i,ref:void 0!==r?r:null,props:n}}return f.Fragment=t,f.jsx=r,f.jsxs=r,f}():u.exports=(c||(c=1,"production"!==process.env.NODE_ENV&&function(){function t(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===N?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case C:return"Fragment";case x:return"Profiler";case b:return"StrictMode";case v:return"Suspense";case g:return"SuspenseList";case _:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case p:return"Portal";case w:return e.displayName||"Context";case h:return(e._context.displayName||"Context")+".Consumer";case y:var r=e.render;return(e=e.displayName)||(e=""!==(e=r.displayName||r.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case k:return null!==(r=e.displayName||null)?r:t(e.type)||"Memo";case j:r=e._payload,e=e._init;try{return t(e(r))}catch{}}return null}function r(e){return""+e}function n(e){try{r(e);var t=!1}catch{t=!0}if(t){var n=(t=console).error,i="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",i),r(e)}}function i(e){if(e===C)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===j)return"<...>";try{var r=t(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function a(){return Error("react-stack-top-frame")}function o(){var e=t(this.type);return O[e]||(O[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function s(e,r,i,a,s,c){var u,m,p,C,b,x,h,w,y=r.children;if(void 0!==y)if(a)if(z(y)){for(a=0;a<y.length;a++)l(y[a]);Object.freeze&&Object.freeze(y)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else l(y);if(S.call(r,"key")){y=t(e);var v=Object.keys(r).filter((function(e){return"key"!==e}));a=0<v.length?"{key: someKey, "+v.join(": ..., ")+": ...}":"{key: someKey}",P[y+a]||(v=0<v.length?"{"+v.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',a,y,v,y),P[y+a]=!0)}if(y=null,void 0!==i&&(n(i),y=""+i),function(e){if(S.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(r)&&(n(r.key),y=""+r.key),"key"in r)for(var g in i={},r)"key"!==g&&(i[g]=r[g]);else i=r;return y&&function(e,t){function r(){d||(d=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(i,"function"==typeof e?e.displayName||e.name||"Unknown":e),m=e,p=y,C=i,b=null===(u=W.A)?null:u.getOwner(),x=s,h=c,w=C.ref,m={$$typeof:f,type:m,key:p,props:C,_owner:b},null!==(void 0!==w?w:null)?Object.defineProperty(m,"ref",{enumerable:!1,get:o}):Object.defineProperty(m,"ref",{enumerable:!1,value:null}),m._store={},Object.defineProperty(m._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(m,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(m,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:x}),Object.defineProperty(m,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:h}),Object.freeze&&(Object.freeze(m.props),Object.freeze(m)),m}function l(e){c(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===j&&("fulfilled"===e._payload.status?c(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function c(e){return"object"==typeof e&&null!==e&&e.$$typeof===f}var d,u=e,f=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),w=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),N=Symbol.for("react.client.reference"),W=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,S=Object.prototype.hasOwnProperty,z=Array.isArray,M=console.createTask?console.createTask:function(){return null},O={},L=(u={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(u,a)(),R=M(i(a)),P={};m.Fragment=C,m.jsx=function(e,t,r){var n=1e4>W.recentlyCreatedOwnerStacks++;return s(e,t,r,!1,n?Error("react-stack-top-frame"):L,n?M(i(e)):R)},m.jsxs=function(e,t,r){var n=1e4>W.recentlyCreatedOwnerStacks++;return s(e,t,r,!0,n?Error("react-stack-top-frame"):L,n?M(i(e)):R)}}()),m)),u.exports);function C(...e){return s(o(e))}let b,x=null;function h(){return x||(b?Promise.resolve(b):Promise.resolve("windows"))}typeof window<"u"&&(x=async function(){return async function(e,t={},r){return window.__TAURI_INTERNALS__.invoke(e,t,r)}("plugin:os|os_type")}().then((e=>(b=e,e))));const w=t({appWindow:null,isWindowMaximized:!1,minimizeWindow:()=>Promise.resolve(),maximizeWindow:()=>Promise.resolve(),fullscreenWindow:()=>Promise.resolve(),closeWindow:()=>Promise.resolve()}),y=({children:e})=>{const[t,a]=r(null),[o,s]=r(!1);n((()=>{typeof window<"u"&&import("./index-CRQ_vzBK.js").then((e=>{a(e.window.getCurrentWindow())}))}),[]);const l=i((async()=>{if(t){const e=await t.isMaximized();s(e)}}),[t]);return n((()=>{let e;return h().then((r=>{"macos"!==r&&(l(),(async()=>{t&&(e=await t.onResized((()=>{l()})))})())})),()=>{e&&e()}}),[t,l]),p.jsx(w.Provider,{value:{appWindow:t,isWindowMaximized:o,minimizeWindow:async()=>{t&&await t.minimize()},maximizeWindow:async()=>{t&&await t.toggleMaximize()},fullscreenWindow:async()=>{t&&(await t.isFullscreen()?await t.setFullscreen(!1):await t.setFullscreen(!0))},closeWindow:async()=>{t&&await t.close()}},children:e})},v={minimizeWin:e=>p.jsx("svg",{width:"10",height:"1",viewBox:"0 0 10 1",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("path",{d:"M0.498047 1.00098C0.429688 1.00098 0.364583 0.987956 0.302734 0.961914C0.244141 0.935872 0.192057 0.900065 0.146484 0.854492C0.100911 0.808919 0.0651042 0.756836 0.0390625 0.698242C0.0130208 0.636393 0 0.571289 0 0.50293C0 0.43457 0.0130208 0.371094 0.0390625 0.3125C0.0651042 0.250651 0.100911 0.19694 0.146484 0.151367C0.192057 0.102539 0.244141 0.0651042 0.302734 0.0390625C0.364583 0.0130208 0.429688 0 0.498047 0H9.50195C9.57031 0 9.63379 0.0130208 9.69238 0.0390625C9.75423 0.0651042 9.80794 0.102539 9.85352 0.151367C9.89909 0.19694 9.9349 0.250651 9.96094 0.3125C9.98698 0.371094 10 0.43457 10 0.50293C10 0.571289 9.98698 0.636393 9.96094 0.698242C9.9349 0.756836 9.89909 0.808919 9.85352 0.854492C9.80794 0.900065 9.75423 0.935872 9.69238 0.961914C9.63379 0.987956 9.57031 1.00098 9.50195 1.00098H0.498047Z",fill:"currentColor",fillOpacity:"0.8956"})}),maximizeWin:e=>p.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("path",{d:"M1.47461 10.001C1.2793 10.001 1.09212 9.96191 0.913086 9.88379C0.734049 9.80241 0.576172 9.69499 0.439453 9.56152C0.30599 9.4248 0.198568 9.26693 0.117188 9.08789C0.0390625 8.90885 0 8.72168 0 8.52637V1.47559C0 1.28027 0.0390625 1.0931 0.117188 0.914062C0.198568 0.735026 0.30599 0.578776 0.439453 0.445312C0.576172 0.308594 0.734049 0.201172 0.913086 0.123047C1.09212 0.0416667 1.2793 0.000976562 1.47461 0.000976562H8.52539C8.7207 0.000976562 8.90788 0.0416667 9.08691 0.123047C9.26595 0.201172 9.4222 0.308594 9.55566 0.445312C9.69238 0.578776 9.7998 0.735026 9.87793 0.914062C9.95931 1.0931 10 1.28027 10 1.47559V8.52637C10 8.72168 9.95931 8.90885 9.87793 9.08789C9.7998 9.26693 9.69238 9.4248 9.55566 9.56152C9.4222 9.69499 9.26595 9.80241 9.08691 9.88379C8.90788 9.96191 8.7207 10.001 8.52539 10.001H1.47461ZM8.50098 9C8.56934 9 8.63281 8.98698 8.69141 8.96094C8.75326 8.9349 8.80697 8.89909 8.85254 8.85352C8.89811 8.80794 8.93392 8.75586 8.95996 8.69727C8.986 8.63542 8.99902 8.57031 8.99902 8.50195V1.5C8.99902 1.43164 8.986 1.36816 8.95996 1.30957C8.93392 1.24772 8.89811 1.19401 8.85254 1.14844C8.80697 1.10286 8.75326 1.06706 8.69141 1.04102C8.63281 1.01497 8.56934 1.00195 8.50098 1.00195H1.49902C1.43066 1.00195 1.36556 1.01497 1.30371 1.04102C1.24512 1.06706 1.19303 1.10286 1.14746 1.14844C1.10189 1.19401 1.06608 1.24772 1.04004 1.30957C1.014 1.36816 1.00098 1.43164 1.00098 1.5V8.50195C1.00098 8.57031 1.014 8.63542 1.04004 8.69727C1.06608 8.75586 1.10189 8.80794 1.14746 8.85352C1.19303 8.89909 1.24512 8.9349 1.30371 8.96094C1.36556 8.98698 1.43066 9 1.49902 9H8.50098Z",fill:"currentColor",fillOpacity:"0.8956"})}),maximizeRestoreWin:e=>p.jsx("svg",{width:"10",height:"11",viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("path",{d:"M8.99902 2.98096C8.99902 2.71077 8.94531 2.45687 8.83789 2.21924C8.73047 1.97835 8.58398 1.77002 8.39844 1.59424C8.21615 1.4152 8.00293 1.27523 7.75879 1.17432C7.5179 1.07015 7.264 1.01807 6.99707 1.01807H2.08496C2.13704 0.868327 2.21029 0.731608 2.30469 0.60791C2.39909 0.484212 2.50814 0.378418 2.63184 0.290527C2.75553 0.202637 2.89062 0.135905 3.03711 0.090332C3.18685 0.0415039 3.34147 0.0170898 3.50098 0.0170898H6.99707C7.41048 0.0170898 7.79948 0.0968424 8.16406 0.256348C8.52865 0.412598 8.84603 0.625814 9.11621 0.895996C9.38965 1.16618 9.60449 1.48356 9.76074 1.84814C9.92025 2.21273 10 2.60173 10 3.01514V6.51611C10 6.67562 9.97559 6.83024 9.92676 6.97998C9.88118 7.12646 9.81445 7.26156 9.72656 7.38525C9.63867 7.50895 9.53288 7.618 9.40918 7.7124C9.28548 7.8068 9.14876 7.88005 8.99902 7.93213V2.98096ZM1.47461 10.0171C1.2793 10.0171 1.09212 9.97803 0.913086 9.8999C0.734049 9.81852 0.576172 9.7111 0.439453 9.57764C0.30599 9.44092 0.198568 9.28304 0.117188 9.104C0.0390625 8.92497 0 8.73779 0 8.54248V3.49365C0 3.29508 0.0390625 3.10791 0.117188 2.93213C0.198568 2.75309 0.30599 2.59684 0.439453 2.46338C0.576172 2.32666 0.732422 2.21924 0.908203 2.14111C1.08724 2.05973 1.27604 2.01904 1.47461 2.01904H6.52344C6.72201 2.01904 6.91081 2.05973 7.08984 2.14111C7.26888 2.21924 7.42513 2.32503 7.55859 2.4585C7.69206 2.59196 7.79785 2.74821 7.87598 2.92725C7.95736 3.10628 7.99805 3.29508 7.99805 3.49365V8.54248C7.99805 8.74105 7.95736 8.92985 7.87598 9.10889C7.79785 9.28467 7.69043 9.44092 7.55371 9.57764C7.42025 9.7111 7.264 9.81852 7.08496 9.8999C6.90918 9.97803 6.72201 10.0171 6.52344 10.0171H1.47461ZM6.49902 9.01611C6.56738 9.01611 6.63086 9.00309 6.68945 8.97705C6.7513 8.95101 6.80501 8.9152 6.85059 8.86963C6.89941 8.82406 6.93685 8.77197 6.96289 8.71338C6.98893 8.65153 7.00195 8.58643 7.00195 8.51807V3.51807C7.00195 3.44971 6.98893 3.3846 6.96289 3.32275C6.93685 3.2609 6.90104 3.20719 6.85547 3.16162C6.8099 3.11605 6.75618 3.08024 6.69434 3.0542C6.63249 3.02816 6.56738 3.01514 6.49902 3.01514H1.49902C1.43066 3.01514 1.36556 3.02816 1.30371 3.0542C1.24512 3.08024 1.19303 3.11768 1.14746 3.1665C1.10189 3.21208 1.06608 3.26579 1.04004 3.32764C1.014 3.38623 1.00098 3.44971 1.00098 3.51807V8.51807C1.00098 8.58643 1.014 8.65153 1.04004 8.71338C1.06608 8.77197 1.10189 8.82406 1.14746 8.86963C1.19303 8.9152 1.24512 8.95101 1.30371 8.97705C1.36556 9.00309 1.43066 9.01611 1.49902 9.01611H6.49902Z",fill:"currentColor",fillOpacity:"0.8956"})}),closeWin:e=>p.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("path",{d:"M5 5.70898L0.854492 9.85449C0.756836 9.95215 0.639648 10.001 0.50293 10.001C0.359701 10.001 0.239258 9.95378 0.141602 9.85938C0.0472005 9.76172 0 9.64128 0 9.49805C0 9.36133 0.0488281 9.24414 0.146484 9.14648L4.29199 5.00098L0.146484 0.855469C0.0488281 0.757812 0 0.638997 0 0.499023C0 0.430664 0.0130208 0.36556 0.0390625 0.303711C0.0651042 0.241862 0.100911 0.189779 0.146484 0.147461C0.192057 0.101888 0.245768 0.0660807 0.307617 0.0400391C0.369466 0.0139974 0.43457 0.000976562 0.50293 0.000976562C0.639648 0.000976562 0.756836 0.0498047 0.854492 0.147461L5 4.29297L9.14551 0.147461C9.24316 0.0498047 9.36198 0.000976562 9.50195 0.000976562C9.57031 0.000976562 9.63379 0.0139974 9.69238 0.0400391C9.75423 0.0660807 9.80794 0.101888 9.85352 0.147461C9.89909 0.193034 9.9349 0.246745 9.96094 0.308594C9.98698 0.367188 10 0.430664 10 0.499023C10 0.638997 9.95117 0.757812 9.85352 0.855469L5.70801 5.00098L9.85352 9.14648C9.95117 9.24414 10 9.36133 10 9.49805C10 9.56641 9.98698 9.63151 9.96094 9.69336C9.9349 9.75521 9.89909 9.80892 9.85352 9.85449C9.8112 9.90007 9.75911 9.93587 9.69727 9.96191C9.63542 9.98796 9.57031 10.001 9.50195 10.001C9.36198 10.001 9.24316 9.95215 9.14551 9.85449L5 5.70898Z",fill:"currentColor",fillOpacity:"0.8956"})}),closeMac:e=>p.jsx("svg",{width:"6",height:"6",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("path",{d:"M15.7522 4.44381L11.1543 9.04165L15.7494 13.6368C16.0898 13.9771 16.078 14.5407 15.724 14.8947L13.8907 16.728C13.5358 17.0829 12.9731 17.0938 12.6328 16.7534L8.03766 12.1583L3.44437 16.7507C3.10402 17.091 2.54132 17.0801 2.18645 16.7253L0.273257 14.8121C-0.0807018 14.4572 -0.0925004 13.8945 0.247845 13.5542L4.84024 8.96087L0.32499 4.44653C-0.0153555 4.10619 -0.00355681 3.54258 0.350402 3.18862L2.18373 1.35529C2.53859 1.00042 3.1013 0.989533 3.44164 1.32988L7.95689 5.84422L12.5556 1.24638C12.8951 0.906035 13.4587 0.917833 13.8126 1.27179L15.7267 3.18589C16.0807 3.53985 16.0925 4.10346 15.7522 4.44381Z",fill:"currentColor"})}),minMac:e=>p.jsx("svg",{width:"8",height:"8",viewBox:"0 0 17 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("g",{clipPath:"url(#clip0_20_2051)",children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.47211 1.18042H15.4197C15.8052 1.18042 16.1179 1.50551 16.1179 1.90769V3.73242C16.1179 4.13387 15.8052 4.80006 15.4197 4.80006H1.47211C1.08665 4.80006 0.773926 4.47497 0.773926 4.07278V1.90769C0.773926 1.50551 1.08665 1.18042 1.47211 1.18042Z",fill:"currentColor"})})}),fullMac:e=>p.jsx("svg",{width:"6",height:"6",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("g",{clipPath:"url(#clip0_20_2057)",children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.53068 0.433838L15.0933 12.0409C15.0933 12.0409 15.0658 5.35028 15.0658 4.01784C15.0658 1.32095 14.1813 0.433838 11.5378 0.433838C10.6462 0.433838 3.53068 0.433838 3.53068 0.433838ZM12.4409 15.5378L0.87735 3.93073C0.87735 3.93073 0.905794 10.6214 0.905794 11.9538C0.905794 14.6507 1.79024 15.5378 4.43291 15.5378C5.32535 15.5378 12.4409 15.5378 12.4409 15.5378Z",fill:"currentColor"})})}),plusMac:e=>p.jsx("svg",{width:"8",height:"8",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("g",{clipPath:"url(#clip0_20_2053)",children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.5308 9.80147H10.3199V15.0095C10.3199 15.3949 9.9941 15.7076 9.59265 15.7076H7.51555C7.11337 15.7076 6.78828 15.3949 6.78828 15.0095V9.80147H1.58319C1.19774 9.80147 0.88501 9.47638 0.88501 9.07419V6.90619C0.88501 6.50401 1.19774 6.17892 1.58319 6.17892H6.78828V1.06183C6.78828 0.676375 7.11337 0.363647 7.51555 0.363647H9.59265C9.9941 0.363647 10.3199 0.676375 10.3199 1.06183V6.17892H15.5308C15.9163 6.17892 16.229 6.50401 16.229 6.90619V9.07419C16.229 9.47638 15.9163 9.80147 15.5308 9.80147Z",fill:"currentColor"})})})};function g({className:e,children:t,...r}){return p.jsx("button",{className:C("inline-flex cursor-default items-center justify-center",e),...r,children:t})}function k({className:e,...t}){const{isWindowMaximized:r,minimizeWindow:n,maximizeWindow:i,closeWindow:o}=a(w);return p.jsxs("div",{className:C("h-8",e),...t,children:[p.jsx(g,{onClick:n,className:"max-h-8 w-[46px] cursor-default rounded-none bg-transparent text-black/90 hover:bg-black/5 active:bg-black/3 dark:text-white dark:hover:bg-white/6 dark:active:bg-white/4",children:p.jsx(v.minimizeWin,{})}),p.jsx(g,{onClick:i,className:C("max-h-8 w-[46px] cursor-default rounded-none bg-transparent","text-black/90 hover:bg-black/5 active:bg-black/3 dark:text-white dark:hover:bg-white/6 dark:active:bg-white/4"),children:r?p.jsx(v.maximizeRestoreWin,{}):p.jsx(v.maximizeWin,{})}),p.jsx(g,{onClick:o,className:"max-h-8 w-[46px] cursor-default rounded-none bg-transparent text-black/90 hover:bg-[#c42b1c] hover:text-white active:bg-[#c42b1c]/90 dark:text-white",children:p.jsx(v.closeWin,{})})]})}function j({className:e,...t}){const{minimizeWindow:i,maximizeWindow:o,fullscreenWindow:s,closeWindow:l}=a(w),[c,d]=r(!1),[u,f]=r(!1),m=c?p.jsx(v.plusMac,{}):p.jsx(v.fullMac,{}),b=e=>{"Alt"===e.key&&d(!0)},x=e=>{"Alt"===e.key&&d(!1)};return n((()=>{window.addEventListener("keydown",b),window.addEventListener("keyup",x)}),[]),p.jsxs("div",{className:C("space-x-2 px-3 text-black active:text-black dark:text-black",e),onMouseEnter:()=>{f(!0)},onMouseLeave:()=>{f(!1)},...t,children:[p.jsx(g,{onClick:l,className:"aspect-square h-3 w-3 cursor-default content-center items-center justify-center self-center rounded-full border border-black/12 bg-[#ff544d] text-center text-black/60 hover:bg-[#ff544d] active:bg-[#bf403a] active:text-black/60 dark:border-none",children:u&&p.jsx(v.closeMac,{})}),p.jsx(g,{onClick:i,className:"aspect-square h-3 w-3 cursor-default content-center items-center justify-center self-center rounded-full border border-black/12 bg-[#ffbd2e] text-center text-black/60 hover:bg-[#ffbd2e] active:bg-[#bf9122] active:text-black/60 dark:border-none",children:u&&p.jsx(v.minMac,{})}),p.jsx(g,{onClick:c?o:s,className:"aspect-square h-3 w-3 cursor-default content-center items-center justify-center self-center rounded-full border border-black/12 bg-[#28c93f] text-center text-black/60 hover:bg-[#28c93f] active:bg-[#1e9930] active:text-black/60 dark:border-none",children:u&&m})]})}function _({className:e,...t}){const{isWindowMaximized:r,minimizeWindow:n,maximizeWindow:i,closeWindow:o}=a(w);return p.jsxs("div",{className:C("mr-[10px] h-auto items-center space-x-[13px]",e),...t,children:[p.jsx(g,{onClick:n,className:"m-0 aspect-square h-6 w-6 cursor-default rounded-full bg-[#dadada] p-0 text-[#3d3d3d] hover:bg-[#d1d1d1] active:bg-[#bfbfbf] dark:bg-[#373737] dark:text-white dark:hover:bg-[#424242] dark:active:bg-[#565656]",children:p.jsx(v.minimizeWin,{className:"h-[9px] w-[9px]"})}),p.jsx(g,{onClick:i,className:"m-0 aspect-square h-6 w-6 cursor-default rounded-full bg-[#dadada] p-0 text-[#3d3d3d] hover:bg-[#d1d1d1] active:bg-[#bfbfbf] dark:bg-[#373737] dark:text-white dark:hover:bg-[#424242] dark:active:bg-[#565656]",children:r?p.jsx(v.maximizeRestoreWin,{className:"h-[9px] w-[9px]"}):p.jsx(v.maximizeWin,{className:"h-2 w-2"})}),p.jsx(g,{onClick:o,className:"m-0 aspect-square h-6 w-6 cursor-default rounded-full bg-[#dadada] p-0 text-[#3d3d3d] hover:bg-[#d1d1d1] active:bg-[#bfbfbf] dark:bg-[#373737] dark:text-white dark:hover:bg-[#424242] dark:active:bg-[#565656]",children:p.jsx(v.closeWin,{className:"h-2 w-2"})})]})}function N({platform:e,justify:t=!1,hide:i=!1,hideMethod:a="display",className:o,...s}){const[l,c]=r(void 0);n((()=>{h().then((e=>{c(e)}))}),[]);const d=C("flex",o,i&&("display"===a?"hidden":"invisible"));if(!e)switch(l){case"macos":e="macos";break;case"linux":e="gnome";break;default:e="windows"}return p.jsx("div",{className:"tauri-controls",style:{display:"contents"},children:p.jsx(y,{children:p.jsx((()=>{switch(e){case"windows":default:return p.jsx(k,{className:C(d,t&&"ml-auto"),...s});case"macos":return p.jsx(j,{className:C(d,t&&"ml-0"),...s});case"gnome":return p.jsx(_,{className:C(d,t&&"ml-auto"),...s})}}),{})})})}function W({children:e,controlsOrder:t="system",className:i,windowControlsProps:a,...o}){const[s,l]=r(void 0);n((()=>{h().then((e=>{l(e)}))}),[]);const c="left"===t||"platform"===t&&"macos"===a?.platform||"system"===t&&"macos"===s,d=e=>{if(void 0!==a?.justify)return a;const{justify:t,className:r,...n}=a||{};return{justify:!1,className:C(r,e),...n}};return p.jsx("div",{className:"tauri-controls",style:{display:"contents"},children:p.jsx("div",{className:C("bg-background flex flex-row overflow-hidden select-none",i),"data-tauri-drag-region":!0,...o,children:c?p.jsxs(p.Fragment,{children:[p.jsx(N,{...d("ml-0")}),e]}):p.jsxs(p.Fragment,{children:[e,p.jsx(N,{...d("ml-auto")})]})})})}export{N as WindowControls,W as WindowTitlebar};
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tauri-controls-v2/react",
3
3
  "description": "🚥 Native-looking window controls for Tauri 2.",
4
4
  "private": false,
5
- "version": "0.4.2",
5
+ "version": "0.4.4",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "scripts": {