@prozilla-os/settings 1.1.8 → 1.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -1,39 +1,39 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('._SettingsContainer_13l5q_1{width:100%;height:100%;position:sticky;top:0;left:0}._Settings_13l5q_1{--tabs-width: 10rem;flex:1;display:flex;width:100%;height:100%;background-color:var(--background-color-2)}._Tabs_13l5q_37{display:flex;gap:.25rem;flex-direction:column;min-width:calc(var(--tabs-width) / 2);width:var(--tabs-width);height:100%;max-width:50%;padding:.5rem;margin:0;background-color:var(--background-color-2);resize:horizontal;overflow:hidden}._TabButton_13l5q_67{display:flex;gap:.5rem;align-items:center;width:100%;min-width:fit-content;padding:.75rem;border-radius:var(--border-radius-1);font-size:.875rem}._TabButton_13l5q_67._ActiveTab_13l5q_89{background-color:var(--background-color-0)}._TabButton_13l5q_67:not(._ActiveTab_13l5q_89):hover,._TabButton_13l5q_67:not(._ActiveTab_13l5q_89):focus-visible{background-color:color-mix(in srgb,var(--background-color-0) 50%,transparent)}._TabButton_13l5q_67>svg{height:1.35rem;aspect-ratio:1}._TabButton_13l5q_67>p{margin:0}._TabPanel_13l5q_125{flex:1;display:flex;flex-direction:column;align-content:flex-start;height:100%;padding:.5rem 1rem;background-color:var(--background-color-3);overflow:auto}._TabPanel_13l5q_125:not(._ActivePanel_13l5q_147){display:none}._Option_13l5q_155{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;text-align:start;width:100%;padding-bottom:1rem}._OptionList_13l5q_175{gap:.5rem}._OptionList_13l5q_175 ._Option_13l5q_155{padding-bottom:0}._OptionHorizontal_13l5q_191{flex-direction:row;justify-content:space-between}._Option_13l5q_155>._Label_13l5q_201{color:var(--foreground-color-0)}._Input_13l5q_209{display:flex;gap:.5rem;flex-wrap:wrap}._Input_13l5q_209>label{flex:1;display:flex}._ImageSelectContainer_13l5q_231{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:.5rem}._ImageSelect_13l5q_231{display:block;width:100%}._ImageSelect_13l5q_231>input{position:absolute;opacity:0;width:0;height:0}._ImageSelect_13l5q_231>input:hover+img,._ImageSelect_13l5q_231>input:focus-visible+img{filter:brightness(110%)}._ImageSelect_13l5q_231>input:checked+img{outline:.25em solid var(--foreground-color-0)}._ImageSelect_13l5q_231>img{width:100%;height:100%;border-radius:var(--border-radius-1);transition:filter .1s ease-in-out;cursor:pointer}._ButtonGroup_13l5q_301{display:flex;gap:1rem;flex-wrap:wrap;margin:.75rem 0}._ButtonGroup_13l5q_301 ._Button_13l5q_301{margin-bottom:0}._Button_13l5q_301{--normal-color: var(--background-color-0) !important;--hover-color: var(--background-color-1) !important;margin-bottom:.75rem!important;padding:.5rem 1rem;border-radius:var(--border-radius-1)}._ButtonDanger_13l5q_341{--text-color: var(--black-1) !important;--normal-color: var(--red-0) !important;--hover-color: var(--red-1) !important}._IconButton_13l5q_353{--color: var(--foreground-color-0);position:relative;height:1.25rem;width:auto;padding:0;background:none;border:none;outline:none;aspect-ratio:1;cursor:pointer}._IconButton_13l5q_353:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#fff0;border-radius:var(--border-radius-99);transform:scale(1);transform-origin:center;transition:all .2s ease-in-out}._IconButton_13l5q_353:hover:after,._IconButton_13l5q_353:focus-visible:after{background-color:#ffffff1a;transform:scale(1.5)}._IconButton_13l5q_353:disabled{--color: var(--foreground-color-2)}._IconButton_13l5q_353 svg{height:100%}._IconButton_13l5q_353 svg path{fill:var(--color);transition:fill .1s ease-in-out}._ProgressBarContainer_13l5q_445{width:100%;max-width:35rem}._ProgressBar_13l5q_445{width:100%!important}._ProgressBarLabels_13l5q_463{display:flex;justify-content:space-between;width:100%}._Option_13l5q_155>span._Label_13l5q_201{display:flex;gap:.5rem;align-items:center}._Icon_13l5q_353{display:inline-block;width:2rem;height:2rem}._Icon_13l5q_353 div{width:inherit;height:inherit}._Icon_13l5q_353 div>svg{width:inherit;height:inherit;object-fit:contain}._Dropdown_13l5q_521{width:auto;max-width:calc(60% - var(--gap));padding:.5rem 1rem;color:var(--text-color);background-color:var(--background-color-0);border:none;border-radius:var(--border-radius-1);outline:none;font-size:.875em}._Dropdown_13l5q_521>*{color:inherit;background-color:inherit;border:none;border-radius:var(--border-radius-1);outline:none;font-family:inherit;font-size:inherit}')),document.head.appendChild(o)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
- import { App as pt, AppsConfig as bt, useVirtualRoot as Pe, useWindowsManager as We, useSystemManager as me, useHistory as It, useAlert as Ot, useWindowedModal as mt, useContextMenu as je, Actions as Fe, ClickAction as ie, Vector2 as be, Divider as At, VirtualRoot as Je, DialogBox as Ze, ModalsConfig as Qe, DirectoryList as Rt, CODE_EXTENSIONS as $t, utilStyles as K, WindowedModal as Bt, ImagePreview as qe, StorageManager as ue, VirtualFile as Lt, useSettingsManager as Ye, SettingsManager as we, THEMES as kt, Button as Se, IMAGE_EXTENSIONS as Dt, ProgressBar as Mt } from "@prozilla-os/core";
3
- import { jsxs as E, jsx as s, Fragment as ht } from "react/jsx-runtime";
1
+ (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('@import"https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap";._SettingsContainer_13l5q_1{width:100%;height:100%;position:sticky;top:0;left:0}._Settings_13l5q_1{--tabs-width: 10rem;flex:1;display:flex;width:100%;height:100%;background-color:var(--background-color-2)}._Tabs_13l5q_37{display:flex;gap:.25rem;flex-direction:column;min-width:calc(var(--tabs-width) / 2);width:var(--tabs-width);height:100%;max-width:50%;padding:.5rem;margin:0;background-color:var(--background-color-2);resize:horizontal;overflow:hidden}._TabButton_13l5q_67{display:flex;gap:.5rem;align-items:center;width:100%;min-width:fit-content;padding:.75rem;border-radius:var(--border-radius-1);font-size:.875rem}._TabButton_13l5q_67._ActiveTab_13l5q_89{background-color:var(--background-color-0)}._TabButton_13l5q_67:not(._ActiveTab_13l5q_89):hover,._TabButton_13l5q_67:not(._ActiveTab_13l5q_89):focus-visible{background-color:color-mix(in srgb,var(--background-color-0) 50%,transparent)}._TabButton_13l5q_67>svg{height:1.35rem;aspect-ratio:1}._TabButton_13l5q_67>p{margin:0}._TabPanel_13l5q_125{flex:1;display:flex;flex-direction:column;align-content:flex-start;height:100%;padding:.5rem 1rem;background-color:var(--background-color-3);overflow:auto}._TabPanel_13l5q_125:not(._ActivePanel_13l5q_147){display:none}._Option_13l5q_155{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;text-align:start;width:100%;padding-bottom:1rem}._OptionList_13l5q_175{gap:.5rem}._OptionList_13l5q_175 ._Option_13l5q_155{padding-bottom:0}._OptionHorizontal_13l5q_191{flex-direction:row;justify-content:space-between}._Option_13l5q_155>._Label_13l5q_201{color:var(--foreground-color-0)}._Input_13l5q_209{display:flex;gap:.5rem;flex-wrap:wrap}._Input_13l5q_209>label{flex:1;display:flex}._ImageSelectContainer_13l5q_231{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:.5rem}._ImageSelect_13l5q_231{display:block;width:100%}._ImageSelect_13l5q_231>input{position:absolute;opacity:0;width:0;height:0}._ImageSelect_13l5q_231>input:hover+img,._ImageSelect_13l5q_231>input:focus-visible+img{filter:brightness(110%)}._ImageSelect_13l5q_231>input:checked+img{outline:.25em solid var(--foreground-color-0)}._ImageSelect_13l5q_231>img{width:100%;height:100%;border-radius:var(--border-radius-1);transition:filter .1s ease-in-out;cursor:pointer}._ButtonGroup_13l5q_301{display:flex;gap:1rem;flex-wrap:wrap;margin:.75rem 0}._ButtonGroup_13l5q_301 ._Button_13l5q_301{margin-bottom:0}._Button_13l5q_301{--normal-color: var(--background-color-0) !important;--hover-color: var(--background-color-1) !important;margin-bottom:.75rem!important;padding:.5rem 1rem;border-radius:var(--border-radius-1)}._ButtonDanger_13l5q_341{--text-color: var(--black-1) !important;--normal-color: var(--red-0) !important;--hover-color: var(--red-1) !important}._IconButton_13l5q_353{--color: var(--foreground-color-0);position:relative;height:1.25rem;width:auto;padding:0;background:none;border:none;outline:none;aspect-ratio:1;cursor:pointer}._IconButton_13l5q_353:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#fff0;border-radius:var(--border-radius-99);transform:scale(1);transform-origin:center;transition:all .2s ease-in-out}._IconButton_13l5q_353:hover:after,._IconButton_13l5q_353:focus-visible:after{background-color:#ffffff1a;transform:scale(1.5)}._IconButton_13l5q_353:disabled{--color: var(--foreground-color-2)}._IconButton_13l5q_353 svg{height:100%}._IconButton_13l5q_353 svg path{fill:var(--color);transition:fill .1s ease-in-out}._ProgressBarContainer_13l5q_445{width:100%;max-width:35rem}._ProgressBar_13l5q_445{width:100%!important}._ProgressBarLabels_13l5q_463{display:flex;justify-content:space-between;width:100%}._Option_13l5q_155>span._Label_13l5q_201{display:flex;gap:.5rem;align-items:center}._Icon_13l5q_353{display:inline-block;width:2rem;height:2rem}._Icon_13l5q_353 div{width:inherit;height:inherit}._Icon_13l5q_353 div>svg{width:inherit;height:inherit;object-fit:contain}._Dropdown_13l5q_521{width:auto;max-width:calc(60% - var(--gap));padding:.5rem 1rem;color:var(--text-color);background-color:var(--background-color-0);border:none;border-radius:var(--border-radius-1);outline:none;font-size:.875em}._Dropdown_13l5q_521>*{color:inherit;background-color:inherit;border:none;border-radius:var(--border-radius-1);outline:none;font-family:inherit;font-size:inherit}:root{--util-menu-height: 2rem;--taskbar-margin: .5rem;--body-font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif}.ProzillaOS-Taskbar{--taskbar-opacity: .1;height:100%;pointer-events:none}.ProzillaOS-Taskbar:before,.ProzillaOS-Taskbar:after{display:none}.ProzillaOS-Taskbar__MenuIcons{display:none}.ProzillaOS-Taskbar__AppIcons{position:absolute;bottom:var(--taskbar-margin);left:50%;width:auto;height:auto;min-height:var(--taskbar-height);transform:translate(-50%);border-radius:var(--border-radius-1);transition:height .2s ease-out .1s;pointer-events:auto}.ProzillaOS-Taskbar__AppIcons:has(.ProzillaOS-Taskbar__AppIcon:hover){animation:expand .2s ease-out forwards}@keyframes expand{0%{height:var(--taskbar-height)}to{height:calc(var(--taskbar-height) * 150%)}}.ProzillaOS-Taskbar__AppIcons:after,.ProzillaOS-Taskbar__AppIcons:before{content:"";position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none}.ProzillaOS-Taskbar__AppIcons:after{opacity:var(--taskbar-opacity);background-color:var(--foreground-color-0);z-index:-2}.ProzillaOS-Taskbar__AppIcons:before{-webkit-backdrop-filter:var(--taskbar-filter);backdrop-filter:var(--taskbar-filter);z-index:-3}.ProzillaOS-Taskbar__AppIcons>div{position:relative;width:auto;height:100%;align-items:flex-end}.ProzillaOS-Taskbar__AppIcon{--scale: var(--taskbar-height);width:var(--scale);height:var(--scale);padding:.5rem;transition:width .2s ease-out,height .2s ease-out,background-color .1s ease-in-out!important}.ProzillaOS-Taskbar__AppIcon svg{transform:none!important}.ProzillaOS-Taskbar__AppIcon:hover{--scale: calc(var(--taskbar-height) * 1.5)}.ProzillaOS-Taskbar__UtilIcons{position:absolute;top:0;left:0;right:0;height:var(--util-menu-height);background-color:var(--taskbar-color);box-shadow:.1rem .1rem .2rem .1rem color-mix(in srgb,var(--svg-drop-shadow-color) 50%,transparent);pointer-events:auto}.ProzillaOS-Taskbar__Indicator--Calendar{display:flex;flex-direction:row;gap:.5rem}.ProzillaOS-Taskbar__UtilIcons>div{position:relative}.ProzillaOS-Taskbar__UtilIcons>div>div{top:100%;bottom:unset}.ProzillaOS-Taskbar__Menu--Util{border-radius:var(--border-radius-1);border-top-right-radius:0}.ProzillaOS-Taskbar__UtilIcons>div>div>.ProzillaOS-Taskbar__Menu--Util:not(.ProzillaOS-Taskbar__Menu--Active){transform:translateY(-100px)}.ProzillaOS-Desktop .ProzillaOS-DirectoryList,.ProzillaOS-WindowsView{margin-top:var(--util-menu-height)}.ProzillaOS-WindowHeader{--window-icon-margin: .5rem;flex-direction:row-reverse;justify-content:flex-end;gap:.25rem}.ProzillaOS-WindowIcon{display:none}.ProzillaOS-WindowTitle{position:absolute;left:50%;transform:translate(calc(-50% - var(--window-icon-margin)))}.ProzillaOS-WindowHeader>button{--height: 1rem;--icon-opacity: 0;display:flex;justify-content:center;align-items:center;border-radius:9999px;margin:0;padding:.2rem;height:var(--height);color:var(--background-color-0);border:1px solid var(--header-button-hover-color)}.ProzillaOS-WindowHeader>button:hover,.ProzillaOS-WindowHeader>button:focus-visible{--icon-opacity: 1;background-color:var(--header-button-hover-color)!important}.ProzillaOS-WindowHeader>button#close-window{--header-button-hover-color: var(--red-1);background-color:var(--red-0)}.ProzillaOS-WindowHeader>button#maximize-window{--header-button-hover-color: var(--green-1);background-color:var(--green-0);order:-1}.ProzillaOS-WindowHeader>button#minimize-window{--header-button-hover-color: var(--yellow-1);background-color:var(--yellow-0)}.ProzillaOS-WindowHeader>button>svg{opacity:var(--icon-opacity);color:var(--background-color-0);transition:opacity .2s ease-in-out}.ProzillaOS-WindowHeader>button>svg *{color:inherit;fill:currentColor}:root{--border-radius-0: 0;--border-radius-1: 0}:root{--body-font-family: "Minecraftia", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif}@font-face{font-family:Minecraftia;src:url(/assets/fonts/minecraftia/Minecraftia-Regular.ttf);font-display:swap}body{font-smooth:never;-webkit-font-smoothing:none}p,pre,input,a{position:relative;top:.25rem;line-height:1.6rem}p>a{top:unset}.ProzillaOS-Taskbar__Indicator--Calendar>p{font-size:.875rem;line-height:1.25rem}img{image-rendering:optimizeSpeed;image-rendering:-moz-crisp-edges;image-rendering:-o-crisp-edges;image-rendering:-webkit-optimize-contrast;image-rendering:pixelated;image-rendering:optimize-contrast;-ms-interpolation-mode:nearest-neighbor}')),document.head.appendChild(o)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
+ import { App as gt, AppsConfig as ht, useVirtualRoot as Ne, useWindowsManager as He, useSystemManager as ge, useHistory as At, useAlert as Rt, useWindowedModal as vt, useContextMenu as qe, Actions as Ue, ClickAction as ie, Vector2 as be, Divider as $t, VirtualRoot as et, DialogBox as tt, ModalsConfig as nt, DirectoryList as Lt, CODE_EXTENSIONS as Bt, utilStyles as K, WindowedModal as Dt, ImagePreview as We, StorageManager as de, VirtualFile as Mt, useSettingsManager as Ke, SettingsManager as Ee, Button as Se, IMAGE_EXTENSIONS as jt, ProgressBar as zt } from "@prozilla-os/core";
3
+ import { jsxs as T, jsx as i, Fragment as yt } from "react/jsx-runtime";
4
4
  import { FontAwesomeIcon as X } from "@fortawesome/react-fontawesome";
5
- import { faTrash as et, faCircleInfo as yt, faCaretLeft as jt, faCaretRight as Ft, faArrowUp as qt, faPlus as Ut, faSearch as zt, faCog as Wt, faHouse as Yt, faDesktop as Vt, faImage as Ht, faFileLines as Kt, faDownload as Gt, faThumbTack as Xt, faEllipsisVertical as Jt, faShapes as Zt, faPalette as Qt, faHardDrive as en } from "@fortawesome/free-solid-svg-icons";
6
- import pe, { Children as vt, cloneElement as _e, useRef as Te, useId as tn, useState as te, useEffect as se, useCallback as nn } from "react";
7
- import { round as Ae, removeFromArray as rn } from "@prozilla-os/shared";
8
- const on = "_SettingsContainer_13l5q_1", an = "_Settings_13l5q_1", sn = "_Tabs_13l5q_37", ln = "_TabButton_13l5q_67", cn = "_ActiveTab_13l5q_89", un = "_TabPanel_13l5q_125", dn = "_ActivePanel_13l5q_147", fn = "_Option_13l5q_155", pn = "_OptionList_13l5q_175", bn = "_OptionHorizontal_13l5q_191", mn = "_Label_13l5q_201", hn = "_Input_13l5q_209", yn = "_ImageSelectContainer_13l5q_231", vn = "_ImageSelect_13l5q_231", gn = "_ButtonGroup_13l5q_301", _n = "_Button_13l5q_301", Tn = "_ButtonDanger_13l5q_341", En = "_IconButton_13l5q_353", wn = "_ProgressBarContainer_13l5q_445", Sn = "_ProgressBar_13l5q_445", xn = "_ProgressBarLabels_13l5q_463", Cn = "_Icon_13l5q_353", Pn = "_Dropdown_13l5q_521", S = {
5
+ import { faTrash as rt, faCircleInfo as wt, faCaretLeft as Ft, faCaretRight as qt, faArrowUp as Ut, faPlus as Wt, faSearch as Yt, faCog as Vt, faHouse as Ht, faDesktop as Kt, faImage as Gt, faFileLines as Xt, faDownload as Jt, faThumbTack as Zt, faEllipsisVertical as Qt, faShapes as en, faPalette as tn, faHardDrive as nn } from "@fortawesome/free-solid-svg-icons";
6
+ import me, { Children as _t, cloneElement as _e, useRef as Te, useId as rn, useState as ne, useEffect as le, useCallback as sn } from "react";
7
+ import { round as $e, removeFromArray as an } from "@prozilla-os/shared";
8
+ const on = "_SettingsContainer_13l5q_1", ln = "_Settings_13l5q_1", cn = "_Tabs_13l5q_37", pn = "_TabButton_13l5q_67", dn = "_ActiveTab_13l5q_89", un = "_TabPanel_13l5q_125", fn = "_ActivePanel_13l5q_147", mn = "_Option_13l5q_155", bn = "_OptionList_13l5q_175", gn = "_OptionHorizontal_13l5q_191", hn = "_Label_13l5q_201", vn = "_Input_13l5q_209", yn = "_ImageSelectContainer_13l5q_231", wn = "_ImageSelect_13l5q_231", _n = "_ButtonGroup_13l5q_301", Tn = "_Button_13l5q_301", xn = "_ButtonDanger_13l5q_341", En = "_IconButton_13l5q_353", Sn = "_ProgressBarContainer_13l5q_445", In = "_ProgressBar_13l5q_445", Cn = "_ProgressBarLabels_13l5q_463", Pn = "_Icon_13l5q_353", Nn = "_Dropdown_13l5q_521", E = {
9
9
  SettingsContainer: on,
10
- Settings: an,
11
- Tabs: sn,
12
- TabButton: ln,
13
- ActiveTab: cn,
10
+ Settings: ln,
11
+ Tabs: cn,
12
+ TabButton: pn,
13
+ ActiveTab: dn,
14
14
  TabPanel: un,
15
- ActivePanel: dn,
16
- Option: fn,
17
- OptionList: pn,
18
- OptionHorizontal: bn,
19
- Label: mn,
20
- Input: hn,
15
+ ActivePanel: fn,
16
+ Option: mn,
17
+ OptionList: bn,
18
+ OptionHorizontal: gn,
19
+ Label: hn,
20
+ Input: vn,
21
21
  ImageSelectContainer: yn,
22
- ImageSelect: vn,
23
- ButtonGroup: gn,
24
- Button: _n,
25
- ButtonDanger: Tn,
22
+ ImageSelect: wn,
23
+ ButtonGroup: _n,
24
+ Button: Tn,
25
+ ButtonDanger: xn,
26
26
  IconButton: En,
27
- ProgressBarContainer: wn,
28
- ProgressBar: Sn,
29
- ProgressBarLabels: xn,
30
- Icon: Cn,
31
- Dropdown: Pn
27
+ ProgressBarContainer: Sn,
28
+ ProgressBar: In,
29
+ ProgressBarLabels: Cn,
30
+ Icon: Pn,
31
+ Dropdown: Nn
32
32
  };
33
- function Nn(e) {
33
+ function On(e) {
34
34
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
35
35
  }
36
- var Ue = { exports: {} }, ve = { exports: {} }, D = {};
36
+ var Ye = { exports: {} }, ye = { exports: {} }, D = {};
37
37
  /** @license React v16.13.1
38
38
  * react-is.production.min.js
39
39
  *
@@ -42,32 +42,32 @@ var Ue = { exports: {} }, ve = { exports: {} }, D = {};
42
42
  * This source code is licensed under the MIT license found in the
43
43
  * LICENSE file in the root directory of this source tree.
44
44
  */
45
- var tt;
46
- function In() {
47
- if (tt) return D;
48
- tt = 1;
49
- var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, l = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, h = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, y = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, C = e ? Symbol.for("react.suspense") : 60113, k = e ? Symbol.for("react.suspense_list") : 60120, P = e ? Symbol.for("react.memo") : 60115, N = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, F = e ? Symbol.for("react.fundamental") : 60117, Y = e ? Symbol.for("react.responder") : 60118, Q = e ? Symbol.for("react.scope") : 60119;
50
- function U(u) {
51
- if (typeof u == "object" && u !== null) {
52
- var ee = u.$$typeof;
45
+ var st;
46
+ function kn() {
47
+ if (st) return D;
48
+ st = 1;
49
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, l = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, g = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, I = e ? Symbol.for("react.suspense") : 60113, B = e ? Symbol.for("react.suspense_list") : 60120, C = e ? Symbol.for("react.memo") : 60115, P = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121, z = e ? Symbol.for("react.fundamental") : 60117, Y = e ? Symbol.for("react.responder") : 60118, Q = e ? Symbol.for("react.scope") : 60119;
50
+ function q(p) {
51
+ if (typeof p == "object" && p !== null) {
52
+ var ee = p.$$typeof;
53
53
  switch (ee) {
54
54
  case n:
55
- switch (u = u.type, u) {
55
+ switch (p = p.type, p) {
56
56
  case v:
57
- case y:
57
+ case h:
58
58
  case r:
59
59
  case a:
60
60
  case l:
61
- case C:
62
- return u;
61
+ case I:
62
+ return p;
63
63
  default:
64
- switch (u = u && u.$$typeof, u) {
65
- case i:
64
+ switch (p = p && p.$$typeof, p) {
65
+ case o:
66
66
  case d:
67
- case N:
68
67
  case P:
69
- case h:
70
- return u;
68
+ case C:
69
+ case g:
70
+ return p;
71
71
  default:
72
72
  return ee;
73
73
  }
@@ -77,36 +77,36 @@ function In() {
77
77
  }
78
78
  }
79
79
  }
80
- function q(u) {
81
- return U(u) === y;
80
+ function F(p) {
81
+ return q(p) === h;
82
82
  }
83
- return D.AsyncMode = v, D.ConcurrentMode = y, D.ContextConsumer = i, D.ContextProvider = h, D.Element = n, D.ForwardRef = d, D.Fragment = r, D.Lazy = N, D.Memo = P, D.Portal = t, D.Profiler = a, D.StrictMode = l, D.Suspense = C, D.isAsyncMode = function(u) {
84
- return q(u) || U(u) === v;
85
- }, D.isConcurrentMode = q, D.isContextConsumer = function(u) {
86
- return U(u) === i;
87
- }, D.isContextProvider = function(u) {
88
- return U(u) === h;
89
- }, D.isElement = function(u) {
90
- return typeof u == "object" && u !== null && u.$$typeof === n;
91
- }, D.isForwardRef = function(u) {
92
- return U(u) === d;
93
- }, D.isFragment = function(u) {
94
- return U(u) === r;
95
- }, D.isLazy = function(u) {
96
- return U(u) === N;
97
- }, D.isMemo = function(u) {
98
- return U(u) === P;
99
- }, D.isPortal = function(u) {
100
- return U(u) === t;
101
- }, D.isProfiler = function(u) {
102
- return U(u) === a;
103
- }, D.isStrictMode = function(u) {
104
- return U(u) === l;
105
- }, D.isSuspense = function(u) {
106
- return U(u) === C;
107
- }, D.isValidElementType = function(u) {
108
- return typeof u == "string" || typeof u == "function" || u === r || u === y || u === a || u === l || u === C || u === k || typeof u == "object" && u !== null && (u.$$typeof === N || u.$$typeof === P || u.$$typeof === h || u.$$typeof === i || u.$$typeof === d || u.$$typeof === F || u.$$typeof === Y || u.$$typeof === Q || u.$$typeof === x);
109
- }, D.typeOf = U, D;
83
+ return D.AsyncMode = v, D.ConcurrentMode = h, D.ContextConsumer = o, D.ContextProvider = g, D.Element = n, D.ForwardRef = d, D.Fragment = r, D.Lazy = P, D.Memo = C, D.Portal = t, D.Profiler = a, D.StrictMode = l, D.Suspense = I, D.isAsyncMode = function(p) {
84
+ return F(p) || q(p) === v;
85
+ }, D.isConcurrentMode = F, D.isContextConsumer = function(p) {
86
+ return q(p) === o;
87
+ }, D.isContextProvider = function(p) {
88
+ return q(p) === g;
89
+ }, D.isElement = function(p) {
90
+ return typeof p == "object" && p !== null && p.$$typeof === n;
91
+ }, D.isForwardRef = function(p) {
92
+ return q(p) === d;
93
+ }, D.isFragment = function(p) {
94
+ return q(p) === r;
95
+ }, D.isLazy = function(p) {
96
+ return q(p) === P;
97
+ }, D.isMemo = function(p) {
98
+ return q(p) === C;
99
+ }, D.isPortal = function(p) {
100
+ return q(p) === t;
101
+ }, D.isProfiler = function(p) {
102
+ return q(p) === a;
103
+ }, D.isStrictMode = function(p) {
104
+ return q(p) === l;
105
+ }, D.isSuspense = function(p) {
106
+ return q(p) === I;
107
+ }, D.isValidElementType = function(p) {
108
+ return typeof p == "string" || typeof p == "function" || p === r || p === h || p === a || p === l || p === I || p === B || typeof p == "object" && p !== null && (p.$$typeof === P || p.$$typeof === C || p.$$typeof === g || p.$$typeof === o || p.$$typeof === d || p.$$typeof === z || p.$$typeof === Y || p.$$typeof === Q || p.$$typeof === S);
109
+ }, D.typeOf = q, D;
110
110
  }
111
111
  var M = {};
112
112
  /** @license React v16.13.1
@@ -117,37 +117,37 @@ var M = {};
117
117
  * This source code is licensed under the MIT license found in the
118
118
  * LICENSE file in the root directory of this source tree.
119
119
  */
120
- var nt;
121
- function On() {
122
- return nt || (nt = 1, process.env.NODE_ENV !== "production" && function() {
123
- var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, l = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, h = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, y = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, C = e ? Symbol.for("react.suspense") : 60113, k = e ? Symbol.for("react.suspense_list") : 60120, P = e ? Symbol.for("react.memo") : 60115, N = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, F = e ? Symbol.for("react.fundamental") : 60117, Y = e ? Symbol.for("react.responder") : 60118, Q = e ? Symbol.for("react.scope") : 60119;
124
- function U(c) {
120
+ var at;
121
+ function An() {
122
+ return at || (at = 1, process.env.NODE_ENV !== "production" && function() {
123
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, l = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, g = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, I = e ? Symbol.for("react.suspense") : 60113, B = e ? Symbol.for("react.suspense_list") : 60120, C = e ? Symbol.for("react.memo") : 60115, P = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121, z = e ? Symbol.for("react.fundamental") : 60117, Y = e ? Symbol.for("react.responder") : 60118, Q = e ? Symbol.for("react.scope") : 60119;
124
+ function q(c) {
125
125
  return typeof c == "string" || typeof c == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
126
- c === r || c === y || c === a || c === l || c === C || c === k || typeof c == "object" && c !== null && (c.$$typeof === N || c.$$typeof === P || c.$$typeof === h || c.$$typeof === i || c.$$typeof === d || c.$$typeof === F || c.$$typeof === Y || c.$$typeof === Q || c.$$typeof === x);
126
+ c === r || c === h || c === a || c === l || c === I || c === B || typeof c == "object" && c !== null && (c.$$typeof === P || c.$$typeof === C || c.$$typeof === g || c.$$typeof === o || c.$$typeof === d || c.$$typeof === z || c.$$typeof === Y || c.$$typeof === Q || c.$$typeof === S);
127
127
  }
128
- function q(c) {
128
+ function F(c) {
129
129
  if (typeof c == "object" && c !== null) {
130
130
  var Z = c.$$typeof;
131
131
  switch (Z) {
132
132
  case n:
133
- var ye = c.type;
134
- switch (ye) {
133
+ var ve = c.type;
134
+ switch (ve) {
135
135
  case v:
136
- case y:
136
+ case h:
137
137
  case r:
138
138
  case a:
139
139
  case l:
140
- case C:
141
- return ye;
140
+ case I:
141
+ return ve;
142
142
  default:
143
- var Xe = ye && ye.$$typeof;
144
- switch (Xe) {
145
- case i:
143
+ var Qe = ve && ve.$$typeof;
144
+ switch (Qe) {
145
+ case o:
146
146
  case d:
147
- case N:
148
147
  case P:
149
- case h:
150
- return Xe;
148
+ case C:
149
+ case g:
150
+ return Qe;
151
151
  default:
152
152
  return Z;
153
153
  }
@@ -157,62 +157,62 @@ function On() {
157
157
  }
158
158
  }
159
159
  }
160
- var u = v, ee = y, ne = i, le = h, ce = n, J = d, re = r, oe = N, m = P, p = t, g = a, w = l, j = C, V = !1;
160
+ var p = v, ee = h, re = o, ce = g, pe = n, J = d, se = r, ae = P, b = C, f = t, y = a, x = l, j = I, V = !1;
161
161
  function G(c) {
162
- return V || (V = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), o(c) || q(c) === v;
162
+ return V || (V = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), s(c) || F(c) === v;
163
163
  }
164
- function o(c) {
165
- return q(c) === y;
164
+ function s(c) {
165
+ return F(c) === h;
166
166
  }
167
- function f(c) {
168
- return q(c) === i;
167
+ function u(c) {
168
+ return F(c) === o;
169
169
  }
170
- function A(c) {
171
- return q(c) === h;
170
+ function k(c) {
171
+ return F(c) === g;
172
172
  }
173
173
  function O(c) {
174
174
  return typeof c == "object" && c !== null && c.$$typeof === n;
175
175
  }
176
- function _(c) {
177
- return q(c) === d;
176
+ function w(c) {
177
+ return F(c) === d;
178
178
  }
179
- function R(c) {
180
- return q(c) === r;
179
+ function A(c) {
180
+ return F(c) === r;
181
181
  }
182
- function T(c) {
183
- return q(c) === N;
182
+ function _(c) {
183
+ return F(c) === P;
184
184
  }
185
- function I(c) {
186
- return q(c) === P;
185
+ function N(c) {
186
+ return F(c) === C;
187
187
  }
188
- function B(c) {
189
- return q(c) === t;
188
+ function $(c) {
189
+ return F(c) === t;
190
190
  }
191
191
  function L(c) {
192
- return q(c) === a;
192
+ return F(c) === a;
193
193
  }
194
- function $(c) {
195
- return q(c) === l;
194
+ function R(c) {
195
+ return F(c) === l;
196
196
  }
197
197
  function W(c) {
198
- return q(c) === C;
198
+ return F(c) === I;
199
199
  }
200
- M.AsyncMode = u, M.ConcurrentMode = ee, M.ContextConsumer = ne, M.ContextProvider = le, M.Element = ce, M.ForwardRef = J, M.Fragment = re, M.Lazy = oe, M.Memo = m, M.Portal = p, M.Profiler = g, M.StrictMode = w, M.Suspense = j, M.isAsyncMode = G, M.isConcurrentMode = o, M.isContextConsumer = f, M.isContextProvider = A, M.isElement = O, M.isForwardRef = _, M.isFragment = R, M.isLazy = T, M.isMemo = I, M.isPortal = B, M.isProfiler = L, M.isStrictMode = $, M.isSuspense = W, M.isValidElementType = U, M.typeOf = q;
200
+ M.AsyncMode = p, M.ConcurrentMode = ee, M.ContextConsumer = re, M.ContextProvider = ce, M.Element = pe, M.ForwardRef = J, M.Fragment = se, M.Lazy = ae, M.Memo = b, M.Portal = f, M.Profiler = y, M.StrictMode = x, M.Suspense = j, M.isAsyncMode = G, M.isConcurrentMode = s, M.isContextConsumer = u, M.isContextProvider = k, M.isElement = O, M.isForwardRef = w, M.isFragment = A, M.isLazy = _, M.isMemo = N, M.isPortal = $, M.isProfiler = L, M.isStrictMode = R, M.isSuspense = W, M.isValidElementType = q, M.typeOf = F;
201
201
  }()), M;
202
202
  }
203
- var rt;
204
- function gt() {
205
- return rt || (rt = 1, process.env.NODE_ENV === "production" ? ve.exports = In() : ve.exports = On()), ve.exports;
203
+ var ot;
204
+ function Tt() {
205
+ return ot || (ot = 1, process.env.NODE_ENV === "production" ? ye.exports = kn() : ye.exports = An()), ye.exports;
206
206
  }
207
207
  /*
208
208
  object-assign
209
209
  (c) Sindre Sorhus
210
210
  @license MIT
211
211
  */
212
- var Re, ot;
213
- function An() {
214
- if (ot) return Re;
215
- ot = 1;
212
+ var Le, it;
213
+ function Rn() {
214
+ if (it) return Le;
215
+ it = 1;
216
216
  var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
217
217
  function r(a) {
218
218
  if (a == null)
@@ -226,86 +226,86 @@ function An() {
226
226
  var a = new String("abc");
227
227
  if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
228
228
  return !1;
229
- for (var h = {}, i = 0; i < 10; i++)
230
- h["_" + String.fromCharCode(i)] = i;
231
- var v = Object.getOwnPropertyNames(h).map(function(d) {
232
- return h[d];
229
+ for (var g = {}, o = 0; o < 10; o++)
230
+ g["_" + String.fromCharCode(o)] = o;
231
+ var v = Object.getOwnPropertyNames(g).map(function(d) {
232
+ return g[d];
233
233
  });
234
234
  if (v.join("") !== "0123456789")
235
235
  return !1;
236
- var y = {};
236
+ var h = {};
237
237
  return "abcdefghijklmnopqrst".split("").forEach(function(d) {
238
- y[d] = d;
239
- }), Object.keys(Object.assign({}, y)).join("") === "abcdefghijklmnopqrst";
238
+ h[d] = d;
239
+ }), Object.keys(Object.assign({}, h)).join("") === "abcdefghijklmnopqrst";
240
240
  } catch {
241
241
  return !1;
242
242
  }
243
243
  }
244
- return Re = l() ? Object.assign : function(a, h) {
245
- for (var i, v = r(a), y, d = 1; d < arguments.length; d++) {
246
- i = Object(arguments[d]);
247
- for (var C in i)
248
- n.call(i, C) && (v[C] = i[C]);
244
+ return Le = l() ? Object.assign : function(a, g) {
245
+ for (var o, v = r(a), h, d = 1; d < arguments.length; d++) {
246
+ o = Object(arguments[d]);
247
+ for (var I in o)
248
+ n.call(o, I) && (v[I] = o[I]);
249
249
  if (e) {
250
- y = e(i);
251
- for (var k = 0; k < y.length; k++)
252
- t.call(i, y[k]) && (v[y[k]] = i[y[k]]);
250
+ h = e(o);
251
+ for (var B = 0; B < h.length; B++)
252
+ t.call(o, h[B]) && (v[h[B]] = o[h[B]]);
253
253
  }
254
254
  }
255
255
  return v;
256
- }, Re;
256
+ }, Le;
257
257
  }
258
- var $e, at;
259
- function Ve() {
260
- if (at) return $e;
261
- at = 1;
258
+ var Be, lt;
259
+ function Ge() {
260
+ if (lt) return Be;
261
+ lt = 1;
262
262
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
263
- return $e = e, $e;
263
+ return Be = e, Be;
264
264
  }
265
- var Be, it;
266
- function _t() {
267
- return it || (it = 1, Be = Function.call.bind(Object.prototype.hasOwnProperty)), Be;
265
+ var De, ct;
266
+ function xt() {
267
+ return ct || (ct = 1, De = Function.call.bind(Object.prototype.hasOwnProperty)), De;
268
268
  }
269
- var Le, st;
270
- function Rn() {
271
- if (st) return Le;
272
- st = 1;
269
+ var Me, pt;
270
+ function $n() {
271
+ if (pt) return Me;
272
+ pt = 1;
273
273
  var e = function() {
274
274
  };
275
275
  if (process.env.NODE_ENV !== "production") {
276
- var n = Ve(), t = {}, r = _t();
276
+ var n = Ge(), t = {}, r = xt();
277
277
  e = function(a) {
278
- var h = "Warning: " + a;
279
- typeof console < "u" && console.error(h);
278
+ var g = "Warning: " + a;
279
+ typeof console < "u" && console.error(g);
280
280
  try {
281
- throw new Error(h);
281
+ throw new Error(g);
282
282
  } catch {
283
283
  }
284
284
  };
285
285
  }
286
- function l(a, h, i, v, y) {
286
+ function l(a, g, o, v, h) {
287
287
  if (process.env.NODE_ENV !== "production") {
288
288
  for (var d in a)
289
289
  if (r(a, d)) {
290
- var C;
290
+ var I;
291
291
  try {
292
292
  if (typeof a[d] != "function") {
293
- var k = Error(
294
- (v || "React class") + ": " + i + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
293
+ var B = Error(
294
+ (v || "React class") + ": " + o + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
295
295
  );
296
- throw k.name = "Invariant Violation", k;
296
+ throw B.name = "Invariant Violation", B;
297
297
  }
298
- C = a[d](h, d, v, i, null, n);
299
- } catch (N) {
300
- C = N;
298
+ I = a[d](g, d, v, o, null, n);
299
+ } catch (P) {
300
+ I = P;
301
301
  }
302
- if (C && !(C instanceof Error) && e(
303
- (v || "React class") + ": type specification of " + i + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof C + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
304
- ), C instanceof Error && !(C.message in t)) {
305
- t[C.message] = !0;
306
- var P = y ? y() : "";
302
+ if (I && !(I instanceof Error) && e(
303
+ (v || "React class") + ": type specification of " + o + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof I + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
304
+ ), I instanceof Error && !(I.message in t)) {
305
+ t[I.message] = !0;
306
+ var C = h ? h() : "";
307
307
  e(
308
- "Failed " + i + " type: " + C.message + (P ?? "")
308
+ "Failed " + o + " type: " + I.message + (C ?? "")
309
309
  );
310
310
  }
311
311
  }
@@ -313,33 +313,33 @@ function Rn() {
313
313
  }
314
314
  return l.resetWarningCache = function() {
315
315
  process.env.NODE_ENV !== "production" && (t = {});
316
- }, Le = l, Le;
316
+ }, Me = l, Me;
317
317
  }
318
- var ke, lt;
319
- function $n() {
320
- if (lt) return ke;
321
- lt = 1;
322
- var e = gt(), n = An(), t = Ve(), r = _t(), l = Rn(), a = function() {
318
+ var je, dt;
319
+ function Ln() {
320
+ if (dt) return je;
321
+ dt = 1;
322
+ var e = Tt(), n = Rn(), t = Ge(), r = xt(), l = $n(), a = function() {
323
323
  };
324
- process.env.NODE_ENV !== "production" && (a = function(i) {
325
- var v = "Warning: " + i;
324
+ process.env.NODE_ENV !== "production" && (a = function(o) {
325
+ var v = "Warning: " + o;
326
326
  typeof console < "u" && console.error(v);
327
327
  try {
328
328
  throw new Error(v);
329
329
  } catch {
330
330
  }
331
331
  });
332
- function h() {
332
+ function g() {
333
333
  return null;
334
334
  }
335
- return ke = function(i, v) {
336
- var y = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
337
- function C(o) {
338
- var f = o && (y && o[y] || o[d]);
339
- if (typeof f == "function")
340
- return f;
335
+ return je = function(o, v) {
336
+ var h = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
337
+ function I(s) {
338
+ var u = s && (h && s[h] || s[d]);
339
+ if (typeof u == "function")
340
+ return u;
341
341
  }
342
- var k = "<<anonymous>>", P = {
342
+ var B = "<<anonymous>>", C = {
343
343
  array: Y("array"),
344
344
  bigint: Y("bigint"),
345
345
  bool: Y("boolean"),
@@ -349,245 +349,245 @@ function $n() {
349
349
  string: Y("string"),
350
350
  symbol: Y("symbol"),
351
351
  any: Q(),
352
- arrayOf: U,
353
- element: q(),
354
- elementType: u(),
352
+ arrayOf: q,
353
+ element: F(),
354
+ elementType: p(),
355
355
  instanceOf: ee,
356
356
  node: J(),
357
- objectOf: le,
358
- oneOf: ne,
359
- oneOfType: ce,
360
- shape: oe,
361
- exact: m
357
+ objectOf: ce,
358
+ oneOf: re,
359
+ oneOfType: pe,
360
+ shape: ae,
361
+ exact: b
362
362
  };
363
- function N(o, f) {
364
- return o === f ? o !== 0 || 1 / o === 1 / f : o !== o && f !== f;
363
+ function P(s, u) {
364
+ return s === u ? s !== 0 || 1 / s === 1 / u : s !== s && u !== u;
365
365
  }
366
- function x(o, f) {
367
- this.message = o, this.data = f && typeof f == "object" ? f : {}, this.stack = "";
366
+ function S(s, u) {
367
+ this.message = s, this.data = u && typeof u == "object" ? u : {}, this.stack = "";
368
368
  }
369
- x.prototype = Error.prototype;
370
- function F(o) {
369
+ S.prototype = Error.prototype;
370
+ function z(s) {
371
371
  if (process.env.NODE_ENV !== "production")
372
- var f = {}, A = 0;
373
- function O(R, T, I, B, L, $, W) {
374
- if (B = B || k, $ = $ || I, W !== t) {
372
+ var u = {}, k = 0;
373
+ function O(A, _, N, $, L, R, W) {
374
+ if ($ = $ || B, R = R || N, W !== t) {
375
375
  if (v) {
376
376
  var c = new Error(
377
377
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
378
378
  );
379
379
  throw c.name = "Invariant Violation", c;
380
380
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
381
- var Z = B + ":" + I;
382
- !f[Z] && // Avoid spamming the console because they are often not actionable except for lib authors
383
- A < 3 && (a(
384
- "You are manually calling a React.PropTypes validation function for the `" + $ + "` prop on `" + B + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
385
- ), f[Z] = !0, A++);
381
+ var Z = $ + ":" + N;
382
+ !u[Z] && // Avoid spamming the console because they are often not actionable except for lib authors
383
+ k < 3 && (a(
384
+ "You are manually calling a React.PropTypes validation function for the `" + R + "` prop on `" + $ + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
385
+ ), u[Z] = !0, k++);
386
386
  }
387
387
  }
388
- return T[I] == null ? R ? T[I] === null ? new x("The " + L + " `" + $ + "` is marked as required " + ("in `" + B + "`, but its value is `null`.")) : new x("The " + L + " `" + $ + "` is marked as required in " + ("`" + B + "`, but its value is `undefined`.")) : null : o(T, I, B, L, $);
388
+ return _[N] == null ? A ? _[N] === null ? new S("The " + L + " `" + R + "` is marked as required " + ("in `" + $ + "`, but its value is `null`.")) : new S("The " + L + " `" + R + "` is marked as required in " + ("`" + $ + "`, but its value is `undefined`.")) : null : s(_, N, $, L, R);
389
389
  }
390
- var _ = O.bind(null, !1);
391
- return _.isRequired = O.bind(null, !0), _;
390
+ var w = O.bind(null, !1);
391
+ return w.isRequired = O.bind(null, !0), w;
392
392
  }
393
- function Y(o) {
394
- function f(A, O, _, R, T, I) {
395
- var B = A[O], L = w(B);
396
- if (L !== o) {
397
- var $ = j(B);
398
- return new x(
399
- "Invalid " + R + " `" + T + "` of type " + ("`" + $ + "` supplied to `" + _ + "`, expected ") + ("`" + o + "`."),
400
- { expectedType: o }
393
+ function Y(s) {
394
+ function u(k, O, w, A, _, N) {
395
+ var $ = k[O], L = x($);
396
+ if (L !== s) {
397
+ var R = j($);
398
+ return new S(
399
+ "Invalid " + A + " `" + _ + "` of type " + ("`" + R + "` supplied to `" + w + "`, expected ") + ("`" + s + "`."),
400
+ { expectedType: s }
401
401
  );
402
402
  }
403
403
  return null;
404
404
  }
405
- return F(f);
405
+ return z(u);
406
406
  }
407
407
  function Q() {
408
- return F(h);
408
+ return z(g);
409
409
  }
410
- function U(o) {
411
- function f(A, O, _, R, T) {
412
- if (typeof o != "function")
413
- return new x("Property `" + T + "` of component `" + _ + "` has invalid PropType notation inside arrayOf.");
414
- var I = A[O];
415
- if (!Array.isArray(I)) {
416
- var B = w(I);
417
- return new x("Invalid " + R + " `" + T + "` of type " + ("`" + B + "` supplied to `" + _ + "`, expected an array."));
410
+ function q(s) {
411
+ function u(k, O, w, A, _) {
412
+ if (typeof s != "function")
413
+ return new S("Property `" + _ + "` of component `" + w + "` has invalid PropType notation inside arrayOf.");
414
+ var N = k[O];
415
+ if (!Array.isArray(N)) {
416
+ var $ = x(N);
417
+ return new S("Invalid " + A + " `" + _ + "` of type " + ("`" + $ + "` supplied to `" + w + "`, expected an array."));
418
418
  }
419
- for (var L = 0; L < I.length; L++) {
420
- var $ = o(I, L, _, R, T + "[" + L + "]", t);
421
- if ($ instanceof Error)
422
- return $;
419
+ for (var L = 0; L < N.length; L++) {
420
+ var R = s(N, L, w, A, _ + "[" + L + "]", t);
421
+ if (R instanceof Error)
422
+ return R;
423
423
  }
424
424
  return null;
425
425
  }
426
- return F(f);
426
+ return z(u);
427
427
  }
428
- function q() {
429
- function o(f, A, O, _, R) {
430
- var T = f[A];
431
- if (!i(T)) {
432
- var I = w(T);
433
- return new x("Invalid " + _ + " `" + R + "` of type " + ("`" + I + "` supplied to `" + O + "`, expected a single ReactElement."));
428
+ function F() {
429
+ function s(u, k, O, w, A) {
430
+ var _ = u[k];
431
+ if (!o(_)) {
432
+ var N = x(_);
433
+ return new S("Invalid " + w + " `" + A + "` of type " + ("`" + N + "` supplied to `" + O + "`, expected a single ReactElement."));
434
434
  }
435
435
  return null;
436
436
  }
437
- return F(o);
437
+ return z(s);
438
438
  }
439
- function u() {
440
- function o(f, A, O, _, R) {
441
- var T = f[A];
442
- if (!e.isValidElementType(T)) {
443
- var I = w(T);
444
- return new x("Invalid " + _ + " `" + R + "` of type " + ("`" + I + "` supplied to `" + O + "`, expected a single ReactElement type."));
439
+ function p() {
440
+ function s(u, k, O, w, A) {
441
+ var _ = u[k];
442
+ if (!e.isValidElementType(_)) {
443
+ var N = x(_);
444
+ return new S("Invalid " + w + " `" + A + "` of type " + ("`" + N + "` supplied to `" + O + "`, expected a single ReactElement type."));
445
445
  }
446
446
  return null;
447
447
  }
448
- return F(o);
448
+ return z(s);
449
449
  }
450
- function ee(o) {
451
- function f(A, O, _, R, T) {
452
- if (!(A[O] instanceof o)) {
453
- var I = o.name || k, B = G(A[O]);
454
- return new x("Invalid " + R + " `" + T + "` of type " + ("`" + B + "` supplied to `" + _ + "`, expected ") + ("instance of `" + I + "`."));
450
+ function ee(s) {
451
+ function u(k, O, w, A, _) {
452
+ if (!(k[O] instanceof s)) {
453
+ var N = s.name || B, $ = G(k[O]);
454
+ return new S("Invalid " + A + " `" + _ + "` of type " + ("`" + $ + "` supplied to `" + w + "`, expected ") + ("instance of `" + N + "`."));
455
455
  }
456
456
  return null;
457
457
  }
458
- return F(f);
458
+ return z(u);
459
459
  }
460
- function ne(o) {
461
- if (!Array.isArray(o))
460
+ function re(s) {
461
+ if (!Array.isArray(s))
462
462
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
463
463
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
464
- ) : a("Invalid argument supplied to oneOf, expected an array.")), h;
465
- function f(A, O, _, R, T) {
466
- for (var I = A[O], B = 0; B < o.length; B++)
467
- if (N(I, o[B]))
464
+ ) : a("Invalid argument supplied to oneOf, expected an array.")), g;
465
+ function u(k, O, w, A, _) {
466
+ for (var N = k[O], $ = 0; $ < s.length; $++)
467
+ if (P(N, s[$]))
468
468
  return null;
469
- var L = JSON.stringify(o, function(W, c) {
469
+ var L = JSON.stringify(s, function(W, c) {
470
470
  var Z = j(c);
471
471
  return Z === "symbol" ? String(c) : c;
472
472
  });
473
- return new x("Invalid " + R + " `" + T + "` of value `" + String(I) + "` " + ("supplied to `" + _ + "`, expected one of " + L + "."));
473
+ return new S("Invalid " + A + " `" + _ + "` of value `" + String(N) + "` " + ("supplied to `" + w + "`, expected one of " + L + "."));
474
474
  }
475
- return F(f);
475
+ return z(u);
476
476
  }
477
- function le(o) {
478
- function f(A, O, _, R, T) {
479
- if (typeof o != "function")
480
- return new x("Property `" + T + "` of component `" + _ + "` has invalid PropType notation inside objectOf.");
481
- var I = A[O], B = w(I);
482
- if (B !== "object")
483
- return new x("Invalid " + R + " `" + T + "` of type " + ("`" + B + "` supplied to `" + _ + "`, expected an object."));
484
- for (var L in I)
485
- if (r(I, L)) {
486
- var $ = o(I, L, _, R, T + "." + L, t);
487
- if ($ instanceof Error)
488
- return $;
477
+ function ce(s) {
478
+ function u(k, O, w, A, _) {
479
+ if (typeof s != "function")
480
+ return new S("Property `" + _ + "` of component `" + w + "` has invalid PropType notation inside objectOf.");
481
+ var N = k[O], $ = x(N);
482
+ if ($ !== "object")
483
+ return new S("Invalid " + A + " `" + _ + "` of type " + ("`" + $ + "` supplied to `" + w + "`, expected an object."));
484
+ for (var L in N)
485
+ if (r(N, L)) {
486
+ var R = s(N, L, w, A, _ + "." + L, t);
487
+ if (R instanceof Error)
488
+ return R;
489
489
  }
490
490
  return null;
491
491
  }
492
- return F(f);
492
+ return z(u);
493
493
  }
494
- function ce(o) {
495
- if (!Array.isArray(o))
496
- return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), h;
497
- for (var f = 0; f < o.length; f++) {
498
- var A = o[f];
499
- if (typeof A != "function")
494
+ function pe(s) {
495
+ if (!Array.isArray(s))
496
+ return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), g;
497
+ for (var u = 0; u < s.length; u++) {
498
+ var k = s[u];
499
+ if (typeof k != "function")
500
500
  return a(
501
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + V(A) + " at index " + f + "."
502
- ), h;
501
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + V(k) + " at index " + u + "."
502
+ ), g;
503
503
  }
504
- function O(_, R, T, I, B) {
505
- for (var L = [], $ = 0; $ < o.length; $++) {
506
- var W = o[$], c = W(_, R, T, I, B, t);
504
+ function O(w, A, _, N, $) {
505
+ for (var L = [], R = 0; R < s.length; R++) {
506
+ var W = s[R], c = W(w, A, _, N, $, t);
507
507
  if (c == null)
508
508
  return null;
509
509
  c.data && r(c.data, "expectedType") && L.push(c.data.expectedType);
510
510
  }
511
511
  var Z = L.length > 0 ? ", expected one of type [" + L.join(", ") + "]" : "";
512
- return new x("Invalid " + I + " `" + B + "` supplied to " + ("`" + T + "`" + Z + "."));
512
+ return new S("Invalid " + N + " `" + $ + "` supplied to " + ("`" + _ + "`" + Z + "."));
513
513
  }
514
- return F(O);
514
+ return z(O);
515
515
  }
516
516
  function J() {
517
- function o(f, A, O, _, R) {
518
- return p(f[A]) ? null : new x("Invalid " + _ + " `" + R + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
517
+ function s(u, k, O, w, A) {
518
+ return f(u[k]) ? null : new S("Invalid " + w + " `" + A + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
519
519
  }
520
- return F(o);
520
+ return z(s);
521
521
  }
522
- function re(o, f, A, O, _) {
523
- return new x(
524
- (o || "React class") + ": " + f + " type `" + A + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + _ + "`."
522
+ function se(s, u, k, O, w) {
523
+ return new S(
524
+ (s || "React class") + ": " + u + " type `" + k + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + w + "`."
525
525
  );
526
526
  }
527
- function oe(o) {
528
- function f(A, O, _, R, T) {
529
- var I = A[O], B = w(I);
530
- if (B !== "object")
531
- return new x("Invalid " + R + " `" + T + "` of type `" + B + "` " + ("supplied to `" + _ + "`, expected `object`."));
532
- for (var L in o) {
533
- var $ = o[L];
534
- if (typeof $ != "function")
535
- return re(_, R, T, L, j($));
536
- var W = $(I, L, _, R, T + "." + L, t);
527
+ function ae(s) {
528
+ function u(k, O, w, A, _) {
529
+ var N = k[O], $ = x(N);
530
+ if ($ !== "object")
531
+ return new S("Invalid " + A + " `" + _ + "` of type `" + $ + "` " + ("supplied to `" + w + "`, expected `object`."));
532
+ for (var L in s) {
533
+ var R = s[L];
534
+ if (typeof R != "function")
535
+ return se(w, A, _, L, j(R));
536
+ var W = R(N, L, w, A, _ + "." + L, t);
537
537
  if (W)
538
538
  return W;
539
539
  }
540
540
  return null;
541
541
  }
542
- return F(f);
542
+ return z(u);
543
543
  }
544
- function m(o) {
545
- function f(A, O, _, R, T) {
546
- var I = A[O], B = w(I);
547
- if (B !== "object")
548
- return new x("Invalid " + R + " `" + T + "` of type `" + B + "` " + ("supplied to `" + _ + "`, expected `object`."));
549
- var L = n({}, A[O], o);
550
- for (var $ in L) {
551
- var W = o[$];
552
- if (r(o, $) && typeof W != "function")
553
- return re(_, R, T, $, j(W));
544
+ function b(s) {
545
+ function u(k, O, w, A, _) {
546
+ var N = k[O], $ = x(N);
547
+ if ($ !== "object")
548
+ return new S("Invalid " + A + " `" + _ + "` of type `" + $ + "` " + ("supplied to `" + w + "`, expected `object`."));
549
+ var L = n({}, k[O], s);
550
+ for (var R in L) {
551
+ var W = s[R];
552
+ if (r(s, R) && typeof W != "function")
553
+ return se(w, A, _, R, j(W));
554
554
  if (!W)
555
- return new x(
556
- "Invalid " + R + " `" + T + "` key `" + $ + "` supplied to `" + _ + "`.\nBad object: " + JSON.stringify(A[O], null, " ") + `
557
- Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
555
+ return new S(
556
+ "Invalid " + A + " `" + _ + "` key `" + R + "` supplied to `" + w + "`.\nBad object: " + JSON.stringify(k[O], null, " ") + `
557
+ Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
558
558
  );
559
- var c = W(I, $, _, R, T + "." + $, t);
559
+ var c = W(N, R, w, A, _ + "." + R, t);
560
560
  if (c)
561
561
  return c;
562
562
  }
563
563
  return null;
564
564
  }
565
- return F(f);
565
+ return z(u);
566
566
  }
567
- function p(o) {
568
- switch (typeof o) {
567
+ function f(s) {
568
+ switch (typeof s) {
569
569
  case "number":
570
570
  case "string":
571
571
  case "undefined":
572
572
  return !0;
573
573
  case "boolean":
574
- return !o;
574
+ return !s;
575
575
  case "object":
576
- if (Array.isArray(o))
577
- return o.every(p);
578
- if (o === null || i(o))
576
+ if (Array.isArray(s))
577
+ return s.every(f);
578
+ if (s === null || o(s))
579
579
  return !0;
580
- var f = C(o);
581
- if (f) {
582
- var A = f.call(o), O;
583
- if (f !== o.entries) {
584
- for (; !(O = A.next()).done; )
585
- if (!p(O.value))
580
+ var u = I(s);
581
+ if (u) {
582
+ var k = u.call(s), O;
583
+ if (u !== s.entries) {
584
+ for (; !(O = k.next()).done; )
585
+ if (!f(O.value))
586
586
  return !1;
587
587
  } else
588
- for (; !(O = A.next()).done; ) {
589
- var _ = O.value;
590
- if (_ && !p(_[1]))
588
+ for (; !(O = k.next()).done; ) {
589
+ var w = O.value;
590
+ if (w && !f(w[1]))
591
591
  return !1;
592
592
  }
593
593
  } else
@@ -597,61 +597,61 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
597
597
  return !1;
598
598
  }
599
599
  }
600
- function g(o, f) {
601
- return o === "symbol" ? !0 : f ? f["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && f instanceof Symbol : !1;
600
+ function y(s, u) {
601
+ return s === "symbol" ? !0 : u ? u["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && u instanceof Symbol : !1;
602
602
  }
603
- function w(o) {
604
- var f = typeof o;
605
- return Array.isArray(o) ? "array" : o instanceof RegExp ? "object" : g(f, o) ? "symbol" : f;
603
+ function x(s) {
604
+ var u = typeof s;
605
+ return Array.isArray(s) ? "array" : s instanceof RegExp ? "object" : y(u, s) ? "symbol" : u;
606
606
  }
607
- function j(o) {
608
- if (typeof o > "u" || o === null)
609
- return "" + o;
610
- var f = w(o);
611
- if (f === "object") {
612
- if (o instanceof Date)
607
+ function j(s) {
608
+ if (typeof s > "u" || s === null)
609
+ return "" + s;
610
+ var u = x(s);
611
+ if (u === "object") {
612
+ if (s instanceof Date)
613
613
  return "date";
614
- if (o instanceof RegExp)
614
+ if (s instanceof RegExp)
615
615
  return "regexp";
616
616
  }
617
- return f;
617
+ return u;
618
618
  }
619
- function V(o) {
620
- var f = j(o);
621
- switch (f) {
619
+ function V(s) {
620
+ var u = j(s);
621
+ switch (u) {
622
622
  case "array":
623
623
  case "object":
624
- return "an " + f;
624
+ return "an " + u;
625
625
  case "boolean":
626
626
  case "date":
627
627
  case "regexp":
628
- return "a " + f;
628
+ return "a " + u;
629
629
  default:
630
- return f;
630
+ return u;
631
631
  }
632
632
  }
633
- function G(o) {
634
- return !o.constructor || !o.constructor.name ? k : o.constructor.name;
633
+ function G(s) {
634
+ return !s.constructor || !s.constructor.name ? B : s.constructor.name;
635
635
  }
636
- return P.checkPropTypes = l, P.resetWarningCache = l.resetWarningCache, P.PropTypes = P, P;
637
- }, ke;
636
+ return C.checkPropTypes = l, C.resetWarningCache = l.resetWarningCache, C.PropTypes = C, C;
637
+ }, je;
638
638
  }
639
- var De, ct;
639
+ var ze, ut;
640
640
  function Bn() {
641
- if (ct) return De;
642
- ct = 1;
643
- var e = Ve();
641
+ if (ut) return ze;
642
+ ut = 1;
643
+ var e = Ge();
644
644
  function n() {
645
645
  }
646
646
  function t() {
647
647
  }
648
- return t.resetWarningCache = n, De = function() {
649
- function r(h, i, v, y, d, C) {
650
- if (C !== e) {
651
- var k = new Error(
648
+ return t.resetWarningCache = n, ze = function() {
649
+ function r(g, o, v, h, d, I) {
650
+ if (I !== e) {
651
+ var B = new Error(
652
652
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
653
653
  );
654
- throw k.name = "Invariant Violation", k;
654
+ throw B.name = "Invariant Violation", B;
655
655
  }
656
656
  }
657
657
  r.isRequired = r;
@@ -682,84 +682,84 @@ function Bn() {
682
682
  resetWarningCache: n
683
683
  };
684
684
  return a.PropTypes = a, a;
685
- }, De;
685
+ }, ze;
686
686
  }
687
687
  if (process.env.NODE_ENV !== "production") {
688
- var Ln = gt(), kn = !0;
689
- Ue.exports = $n()(Ln.isElement, kn);
688
+ var Dn = Tt(), Mn = !0;
689
+ Ye.exports = Ln()(Dn.isElement, Mn);
690
690
  } else
691
- Ue.exports = Bn()();
692
- var Dn = Ue.exports;
693
- const b = /* @__PURE__ */ Nn(Dn);
694
- function He(e) {
691
+ Ye.exports = Bn()();
692
+ var jn = Ye.exports;
693
+ const m = /* @__PURE__ */ On(jn);
694
+ function Xe(e) {
695
695
  return (n) => !!n.type && n.type.tabsRole === e;
696
696
  }
697
- const he = He("Tab"), Ne = He("TabList"), Ie = He("TabPanel");
698
- function Mn(e) {
699
- return he(e) || Ne(e) || Ie(e);
697
+ const he = Xe("Tab"), Oe = Xe("TabList"), ke = Xe("TabPanel");
698
+ function zn(e) {
699
+ return he(e) || Oe(e) || ke(e);
700
700
  }
701
- function ze(e, n) {
702
- return vt.map(e, (t) => t === null ? null : Mn(t) ? n(t) : t.props && t.props.children && typeof t.props.children == "object" ? _e(t, { ...t.props, children: ze(t.props.children, n) }) : t);
701
+ function Ve(e, n) {
702
+ return _t.map(e, (t) => t === null ? null : zn(t) ? n(t) : t.props && t.props.children && typeof t.props.children == "object" ? _e(t, { ...t.props, children: Ve(t.props.children, n) }) : t);
703
703
  }
704
- function xe(e, n) {
705
- return vt.forEach(e, (t) => {
706
- t !== null && (he(t) || Ie(t) ? n(t) : t.props && t.props.children && typeof t.props.children == "object" && (Ne(t) && n(t), xe(t.props.children, n)));
704
+ function Ie(e, n) {
705
+ return _t.forEach(e, (t) => {
706
+ t !== null && (he(t) || ke(t) ? n(t) : t.props && t.props.children && typeof t.props.children == "object" && (Oe(t) && n(t), Ie(t.props.children, n)));
707
707
  });
708
708
  }
709
- function Tt(e, n, t) {
710
- let r, l = 0, a = 0, h = !1;
711
- const i = [], v = e[n];
712
- return xe(v, (y) => {
713
- Ne(y) && (y.props && y.props.children && typeof y.props.children == "object" && xe(y.props.children, (d) => i.push(d)), h && (r = new Error("Found multiple 'TabList' components inside 'Tabs'. Only one is allowed.")), h = !0), he(y) ? ((!h || i.indexOf(y) === -1) && (r = new Error("Found a 'Tab' component outside of the 'TabList' component. 'Tab' components have to be inside the 'TabList' component.")), l++) : Ie(y) && a++;
709
+ function Et(e, n, t) {
710
+ let r, l = 0, a = 0, g = !1;
711
+ const o = [], v = e[n];
712
+ return Ie(v, (h) => {
713
+ Oe(h) && (h.props && h.props.children && typeof h.props.children == "object" && Ie(h.props.children, (d) => o.push(d)), g && (r = new Error("Found multiple 'TabList' components inside 'Tabs'. Only one is allowed.")), g = !0), he(h) ? ((!g || o.indexOf(h) === -1) && (r = new Error("Found a 'Tab' component outside of the 'TabList' component. 'Tab' components have to be inside the 'TabList' component.")), l++) : ke(h) && a++;
714
714
  }), !r && l !== a && (r = new Error(`There should be an equal number of 'Tab' and 'TabPanel' in \`${t}\`. Received ${l} 'Tab' and ${a} 'TabPanel'.`)), r;
715
715
  }
716
- function jn(e, n, t, r, l) {
717
- const a = e[n], h = l || n;
718
- let i = null;
719
- return a && typeof a != "function" ? i = new Error(`Invalid ${r} \`${h}\` of type \`${typeof a}\` supplied to \`${t}\`, expected \`function\`.`) : e.selectedIndex != null && a == null && (i = new Error(`The ${r} \`${h}\` is marked as required in \`${t}\`, but its value is \`undefined\` or \`null\`.
716
+ function Fn(e, n, t, r, l) {
717
+ const a = e[n], g = l || n;
718
+ let o = null;
719
+ return a && typeof a != "function" ? o = new Error(`Invalid ${r} \`${g}\` of type \`${typeof a}\` supplied to \`${t}\`, expected \`function\`.`) : e.selectedIndex != null && a == null && (o = new Error(`The ${r} \`${g}\` is marked as required in \`${t}\`, but its value is \`undefined\` or \`null\`.
720
720
  \`onSelect\` is required when \`selectedIndex\` is also set. Not doing so will make the tabs not do anything, as \`selectedIndex\` indicates that you want to handle the selected tab yourself.
721
- If you only want to set the inital tab replace \`selectedIndex\` with \`defaultIndex\`.`)), i;
721
+ If you only want to set the inital tab replace \`selectedIndex\` with \`defaultIndex\`.`)), o;
722
722
  }
723
- function Fn(e, n, t, r, l) {
724
- const a = e[n], h = l || n;
725
- let i = null;
723
+ function qn(e, n, t, r, l) {
724
+ const a = e[n], g = l || n;
725
+ let o = null;
726
726
  if (a != null && typeof a != "number")
727
- i = new Error(`Invalid ${r} \`${h}\` of type \`${typeof a}\` supplied to \`${t}\`, expected \`number\`.`);
727
+ o = new Error(`Invalid ${r} \`${g}\` of type \`${typeof a}\` supplied to \`${t}\`, expected \`number\`.`);
728
728
  else if (e.defaultIndex != null && a != null)
729
- return new Error(`The ${r} \`${h}\` cannot be used together with \`defaultIndex\` in \`${t}\`.
730
- Either remove \`${h}\` to let \`${t}\` handle the selected tab internally or remove \`defaultIndex\` to handle it yourself.`);
731
- return i;
729
+ return new Error(`The ${r} \`${g}\` cannot be used together with \`defaultIndex\` in \`${t}\`.
730
+ Either remove \`${g}\` to let \`${t}\` handle the selected tab internally or remove \`defaultIndex\` to handle it yourself.`);
731
+ return o;
732
732
  }
733
- function Et(e) {
733
+ function St(e) {
734
734
  var n, t, r = "";
735
735
  if (typeof e == "string" || typeof e == "number") r += e;
736
736
  else if (typeof e == "object") if (Array.isArray(e)) {
737
737
  var l = e.length;
738
- for (n = 0; n < l; n++) e[n] && (t = Et(e[n])) && (r && (r += " "), r += t);
738
+ for (n = 0; n < l; n++) e[n] && (t = St(e[n])) && (r && (r += " "), r += t);
739
739
  } else for (t in e) e[t] && (r && (r += " "), r += t);
740
740
  return r;
741
741
  }
742
- function Oe() {
743
- for (var e, n, t = 0, r = "", l = arguments.length; t < l; t++) (e = arguments[t]) && (n = Et(e)) && (r && (r += " "), r += n);
742
+ function Ae() {
743
+ for (var e, n, t = 0, r = "", l = arguments.length; t < l; t++) (e = arguments[t]) && (n = St(e)) && (r && (r += " "), r += n);
744
744
  return r;
745
745
  }
746
- function wt(e) {
746
+ function It(e) {
747
747
  let n = 0;
748
- return xe(e, (t) => {
748
+ return Ie(e, (t) => {
749
749
  he(t) && n++;
750
750
  }), n;
751
751
  }
752
- function St(e) {
752
+ function Ct(e) {
753
753
  return e && "getAttribute" in e;
754
754
  }
755
- function ut(e) {
756
- return St(e) && e.getAttribute("data-rttab");
755
+ function ft(e) {
756
+ return Ct(e) && e.getAttribute("data-rttab");
757
757
  }
758
- function ae(e) {
759
- return St(e) && e.getAttribute("aria-disabled") === "true";
758
+ function oe(e) {
759
+ return Ct(e) && e.getAttribute("aria-disabled") === "true";
760
760
  }
761
761
  let Ce;
762
- function qn(e) {
762
+ function Un(e) {
763
763
  const n = e || (typeof window < "u" ? window : void 0);
764
764
  try {
765
765
  Ce = !!(typeof n < "u" && n.document && n.document.activeElement);
@@ -767,166 +767,166 @@ function qn(e) {
767
767
  Ce = !1;
768
768
  }
769
769
  }
770
- const Un = { className: "react-tabs", focus: !1 }, zn = process.env.NODE_ENV !== "production" ? { children: Tt, direction: b.oneOf(["rtl", "ltr"]), className: b.oneOfType([b.string, b.array, b.object]), disabledTabClassName: b.string, disableUpDownKeys: b.bool, disableLeftRightKeys: b.bool, domRef: b.func, focus: b.bool, forceRenderTabPanel: b.bool, onSelect: b.func.isRequired, selectedIndex: b.number.isRequired, selectedTabClassName: b.string, selectedTabPanelClassName: b.string, environment: b.object } : {}, xt = (e) => {
770
+ const Wn = { className: "react-tabs", focus: !1 }, Yn = process.env.NODE_ENV !== "production" ? { children: Et, direction: m.oneOf(["rtl", "ltr"]), className: m.oneOfType([m.string, m.array, m.object]), disabledTabClassName: m.string, disableUpDownKeys: m.bool, disableLeftRightKeys: m.bool, domRef: m.func, focus: m.bool, forceRenderTabPanel: m.bool, onSelect: m.func.isRequired, selectedIndex: m.number.isRequired, selectedTabClassName: m.string, selectedTabPanelClassName: m.string, environment: m.object } : {}, Pt = (e) => {
771
771
  let n = Te([]), t = Te([]);
772
772
  const r = Te();
773
- function l(m, p) {
774
- if (m < 0 || m >= y()) return;
775
- const { onSelect: g, selectedIndex: w } = e;
776
- g(m, w, p);
773
+ function l(b, f) {
774
+ if (b < 0 || b >= h()) return;
775
+ const { onSelect: y, selectedIndex: x } = e;
776
+ y(b, x, f);
777
777
  }
778
- function a(m) {
779
- const p = y();
780
- for (let g = m + 1; g < p; g++)
781
- if (!ae(d(g)))
782
- return g;
783
- for (let g = 0; g < m; g++)
784
- if (!ae(d(g)))
785
- return g;
786
- return m;
778
+ function a(b) {
779
+ const f = h();
780
+ for (let y = b + 1; y < f; y++)
781
+ if (!oe(d(y)))
782
+ return y;
783
+ for (let y = 0; y < b; y++)
784
+ if (!oe(d(y)))
785
+ return y;
786
+ return b;
787
787
  }
788
- function h(m) {
789
- let p = m;
790
- for (; p--; )
791
- if (!ae(d(p)))
792
- return p;
793
- for (p = y(); p-- > m; )
794
- if (!ae(d(p)))
795
- return p;
796
- return m;
788
+ function g(b) {
789
+ let f = b;
790
+ for (; f--; )
791
+ if (!oe(d(f)))
792
+ return f;
793
+ for (f = h(); f-- > b; )
794
+ if (!oe(d(f)))
795
+ return f;
796
+ return b;
797
797
  }
798
- function i() {
799
- const m = y();
800
- for (let p = 0; p < m; p++)
801
- if (!ae(d(p)))
802
- return p;
798
+ function o() {
799
+ const b = h();
800
+ for (let f = 0; f < b; f++)
801
+ if (!oe(d(f)))
802
+ return f;
803
803
  return null;
804
804
  }
805
805
  function v() {
806
- let m = y();
807
- for (; m--; )
808
- if (!ae(d(m)))
809
- return m;
806
+ let b = h();
807
+ for (; b--; )
808
+ if (!oe(d(b)))
809
+ return b;
810
810
  return null;
811
811
  }
812
- function y() {
813
- const { children: m } = e;
814
- return wt(m);
812
+ function h() {
813
+ const { children: b } = e;
814
+ return It(b);
815
815
  }
816
- function d(m) {
817
- return n.current[`tabs-${m}`];
816
+ function d(b) {
817
+ return n.current[`tabs-${b}`];
818
818
  }
819
- function C() {
820
- let m = 0;
821
- const { children: p, disabledTabClassName: g, focus: w, forceRenderTabPanel: j, selectedIndex: V, selectedTabClassName: G, selectedTabPanelClassName: o, environment: f } = e;
819
+ function I() {
820
+ let b = 0;
821
+ const { children: f, disabledTabClassName: y, focus: x, forceRenderTabPanel: j, selectedIndex: V, selectedTabClassName: G, selectedTabPanelClassName: s, environment: u } = e;
822
822
  t.current = t.current || [];
823
- let A = t.current.length - y();
824
- const O = tn();
825
- for (; A++ < 0; )
823
+ let k = t.current.length - h();
824
+ const O = rn();
825
+ for (; k++ < 0; )
826
826
  t.current.push(`${O}${t.current.length}`);
827
- return ze(p, (_) => {
828
- let R = _;
829
- if (Ne(_)) {
830
- let T = 0, I = !1;
831
- Ce == null && qn(f);
832
- const B = f || (typeof window < "u" ? window : void 0);
833
- Ce && B && (I = pe.Children.toArray(_.props.children).filter(he).some((L, $) => B.document.activeElement === d($))), R = _e(_, { children: ze(_.props.children, (L) => {
834
- const $ = `tabs-${T}`, W = V === T, c = { tabRef: (Z) => {
835
- n.current[$] = Z;
836
- }, id: t.current[T], selected: W, focus: W && (w || I) };
837
- return G && (c.selectedClassName = G), g && (c.disabledClassName = g), T++, _e(L, c);
827
+ return Ve(f, (w) => {
828
+ let A = w;
829
+ if (Oe(w)) {
830
+ let _ = 0, N = !1;
831
+ Ce == null && Un(u);
832
+ const $ = u || (typeof window < "u" ? window : void 0);
833
+ Ce && $ && (N = me.Children.toArray(w.props.children).filter(he).some((L, R) => $.document.activeElement === d(R))), A = _e(w, { children: Ve(w.props.children, (L) => {
834
+ const R = `tabs-${_}`, W = V === _, c = { tabRef: (Z) => {
835
+ n.current[R] = Z;
836
+ }, id: t.current[_], selected: W, focus: W && (x || N) };
837
+ return G && (c.selectedClassName = G), y && (c.disabledClassName = y), _++, _e(L, c);
838
838
  }) });
839
- } else if (Ie(_)) {
840
- const T = { id: t.current[m], selected: V === m };
841
- j && (T.forceRender = j), o && (T.selectedClassName = o), m++, R = _e(_, T);
839
+ } else if (ke(w)) {
840
+ const _ = { id: t.current[b], selected: V === b };
841
+ j && (_.forceRender = j), s && (_.selectedClassName = s), b++, A = _e(w, _);
842
842
  }
843
- return R;
843
+ return A;
844
844
  });
845
845
  }
846
- function k(m) {
847
- const { direction: p, disableUpDownKeys: g, disableLeftRightKeys: w } = e;
848
- if (N(m.target)) {
846
+ function B(b) {
847
+ const { direction: f, disableUpDownKeys: y, disableLeftRightKeys: x } = e;
848
+ if (P(b.target)) {
849
849
  let { selectedIndex: j } = e, V = !1, G = !1;
850
- (m.code === "Space" || m.keyCode === 32 || m.code === "Enter" || m.keyCode === 13) && (V = !0, G = !1, P(m)), !w && (m.keyCode === 37 || m.code === "ArrowLeft") || !g && (m.keyCode === 38 || m.code === "ArrowUp") ? (p === "rtl" ? j = a(j) : j = h(j), V = !0, G = !0) : !w && (m.keyCode === 39 || m.code === "ArrowRight") || !g && (m.keyCode === 40 || m.code === "ArrowDown") ? (p === "rtl" ? j = h(j) : j = a(j), V = !0, G = !0) : m.keyCode === 35 || m.code === "End" ? (j = v(), V = !0, G = !0) : (m.keyCode === 36 || m.code === "Home") && (j = i(), V = !0, G = !0), V && m.preventDefault(), G && l(j, m);
850
+ (b.code === "Space" || b.keyCode === 32 || b.code === "Enter" || b.keyCode === 13) && (V = !0, G = !1, C(b)), !x && (b.keyCode === 37 || b.code === "ArrowLeft") || !y && (b.keyCode === 38 || b.code === "ArrowUp") ? (f === "rtl" ? j = a(j) : j = g(j), V = !0, G = !0) : !x && (b.keyCode === 39 || b.code === "ArrowRight") || !y && (b.keyCode === 40 || b.code === "ArrowDown") ? (f === "rtl" ? j = g(j) : j = a(j), V = !0, G = !0) : b.keyCode === 35 || b.code === "End" ? (j = v(), V = !0, G = !0) : (b.keyCode === 36 || b.code === "Home") && (j = o(), V = !0, G = !0), V && b.preventDefault(), G && l(j, b);
851
851
  }
852
852
  }
853
- function P(m) {
854
- let p = m.target;
853
+ function C(b) {
854
+ let f = b.target;
855
855
  do
856
- if (N(p)) {
857
- if (ae(p))
856
+ if (P(f)) {
857
+ if (oe(f))
858
858
  return;
859
- const g = [].slice.call(p.parentNode.children).filter(ut).indexOf(p);
860
- l(g, m);
859
+ const y = [].slice.call(f.parentNode.children).filter(ft).indexOf(f);
860
+ l(y, b);
861
861
  return;
862
862
  }
863
- while ((p = p.parentNode) != null);
863
+ while ((f = f.parentNode) != null);
864
864
  }
865
- function N(m) {
866
- if (!ut(m))
865
+ function P(b) {
866
+ if (!ft(b))
867
867
  return !1;
868
- let p = m.parentElement;
868
+ let f = b.parentElement;
869
869
  do {
870
- if (p === r.current) return !0;
871
- if (p.getAttribute("data-rttabs")) break;
872
- p = p.parentElement;
873
- } while (p);
870
+ if (f === r.current) return !0;
871
+ if (f.getAttribute("data-rttabs")) break;
872
+ f = f.parentElement;
873
+ } while (f);
874
874
  return !1;
875
875
  }
876
- const { children: x, className: F, disabledTabClassName: Y, domRef: Q, focus: U, forceRenderTabPanel: q, onSelect: u, selectedIndex: ee, selectedTabClassName: ne, selectedTabPanelClassName: le, environment: ce, disableUpDownKeys: J, disableLeftRightKeys: re, ...oe } = { ...Un, ...e };
877
- return pe.createElement("div", Object.assign({}, oe, { className: Oe(F), onClick: P, onKeyDown: k, ref: (m) => {
878
- r.current = m, Q && Q(m);
879
- }, "data-rttabs": !0 }), C());
876
+ const { children: S, className: z, disabledTabClassName: Y, domRef: Q, focus: q, forceRenderTabPanel: F, onSelect: p, selectedIndex: ee, selectedTabClassName: re, selectedTabPanelClassName: ce, environment: pe, disableUpDownKeys: J, disableLeftRightKeys: se, ...ae } = { ...Wn, ...e };
877
+ return me.createElement("div", Object.assign({}, ae, { className: Ae(z), onClick: C, onKeyDown: B, ref: (b) => {
878
+ r.current = b, Q && Q(b);
879
+ }, "data-rttabs": !0 }), I());
880
880
  };
881
- xt.propTypes = process.env.NODE_ENV !== "production" ? zn : {};
882
- const Wn = 0, Ee = 1, Yn = process.env.NODE_ENV !== "production" ? { children: Tt, className: b.oneOfType([b.string, b.array, b.object]), defaultFocus: b.bool, defaultIndex: b.number, direction: b.oneOf(["rtl", "ltr"]), disabledTabClassName: b.string, disableUpDownKeys: b.bool, disableLeftRightKeys: b.bool, domRef: b.func, environment: b.object, focusTabOnClick: b.bool, forceRenderTabPanel: b.bool, onSelect: jn, selectedIndex: Fn, selectedTabClassName: b.string, selectedTabPanelClassName: b.string } : {}, Vn = { defaultFocus: !1, focusTabOnClick: !0, forceRenderTabPanel: !1, selectedIndex: null, defaultIndex: null, environment: null, disableUpDownKeys: !1, disableLeftRightKeys: !1 }, Ct = (e) => e.selectedIndex === null ? Ee : Wn, Hn = (e, n) => {
883
- if (process.env.NODE_ENV !== "production" && n != null && n !== Ct(e))
881
+ Pt.propTypes = process.env.NODE_ENV !== "production" ? Yn : {};
882
+ const Vn = 0, xe = 1, Hn = process.env.NODE_ENV !== "production" ? { children: Et, className: m.oneOfType([m.string, m.array, m.object]), defaultFocus: m.bool, defaultIndex: m.number, direction: m.oneOf(["rtl", "ltr"]), disabledTabClassName: m.string, disableUpDownKeys: m.bool, disableLeftRightKeys: m.bool, domRef: m.func, environment: m.object, focusTabOnClick: m.bool, forceRenderTabPanel: m.bool, onSelect: Fn, selectedIndex: qn, selectedTabClassName: m.string, selectedTabPanelClassName: m.string } : {}, Kn = { defaultFocus: !1, focusTabOnClick: !0, forceRenderTabPanel: !1, selectedIndex: null, defaultIndex: null, environment: null, disableUpDownKeys: !1, disableLeftRightKeys: !1 }, Nt = (e) => e.selectedIndex === null ? xe : Vn, Gn = (e, n) => {
883
+ if (process.env.NODE_ENV !== "production" && n != null && n !== Nt(e))
884
884
  throw new Error("Switching between controlled mode (by using `selectedIndex`) and uncontrolled mode is not supported in `Tabs`.\nFor more information about controlled and uncontrolled mode of react-tabs see https://github.com/reactjs/react-tabs#controlled-vs-uncontrolled-mode.");
885
- }, Ke = (e) => {
886
- const { children: n, defaultFocus: t, defaultIndex: r, focusTabOnClick: l, onSelect: a, ...h } = { ...Vn, ...e }, [i, v] = te(t), [y] = te(Ct(h)), [d, C] = te(y === Ee ? r || 0 : null);
887
- if (se(() => {
885
+ }, Je = (e) => {
886
+ const { children: n, defaultFocus: t, defaultIndex: r, focusTabOnClick: l, onSelect: a, ...g } = { ...Kn, ...e }, [o, v] = ne(t), [h] = ne(Nt(g)), [d, I] = ne(h === xe ? r || 0 : null);
887
+ if (le(() => {
888
888
  v(!1);
889
- }, []), y === Ee) {
890
- const N = wt(n);
891
- se(() => {
889
+ }, []), h === xe) {
890
+ const P = It(n);
891
+ le(() => {
892
892
  if (d != null) {
893
- const x = Math.max(0, N - 1);
894
- C(Math.min(d, x));
893
+ const S = Math.max(0, P - 1);
894
+ I(Math.min(d, S));
895
895
  }
896
- }, [N]);
896
+ }, [P]);
897
897
  }
898
- Hn(h, y);
899
- const k = (N, x, F) => {
900
- typeof a == "function" && a(N, x, F) === !1 || (l && v(!0), y === Ee && C(N));
898
+ Gn(g, h);
899
+ const B = (P, S, z) => {
900
+ typeof a == "function" && a(P, S, z) === !1 || (l && v(!0), h === xe && I(P));
901
901
  };
902
- let P = { ...e, ...h };
903
- return P.focus = i, P.onSelect = k, d != null && (P.selectedIndex = d), delete P.defaultFocus, delete P.defaultIndex, delete P.focusTabOnClick, pe.createElement(xt, P, n);
902
+ let C = { ...e, ...g };
903
+ return C.focus = o, C.onSelect = B, d != null && (C.selectedIndex = d), delete C.defaultFocus, delete C.defaultIndex, delete C.focusTabOnClick, me.createElement(Pt, C, n);
904
904
  };
905
- Ke.propTypes = process.env.NODE_ENV !== "production" ? Yn : {};
906
- Ke.tabsRole = "Tabs";
907
- const Kn = { className: "react-tabs__tab-list" }, Gn = process.env.NODE_ENV !== "production" ? { children: b.oneOfType([b.object, b.array]), className: b.oneOfType([b.string, b.array, b.object]) } : {}, Ge = (e) => {
908
- const { children: n, className: t, ...r } = { ...Kn, ...e };
909
- return pe.createElement("ul", Object.assign({}, r, { className: Oe(t), role: "tablist" }), n);
905
+ Je.propTypes = process.env.NODE_ENV !== "production" ? Hn : {};
906
+ Je.tabsRole = "Tabs";
907
+ const Xn = { className: "react-tabs__tab-list" }, Jn = process.env.NODE_ENV !== "production" ? { children: m.oneOfType([m.object, m.array]), className: m.oneOfType([m.string, m.array, m.object]) } : {}, Ze = (e) => {
908
+ const { children: n, className: t, ...r } = { ...Xn, ...e };
909
+ return me.createElement("ul", Object.assign({}, r, { className: Ae(t), role: "tablist" }), n);
910
910
  };
911
- Ge.tabsRole = "TabList";
912
- Ge.propTypes = process.env.NODE_ENV !== "production" ? Gn : {};
913
- const Me = "react-tabs__tab", Xn = { className: Me, disabledClassName: `${Me}--disabled`, focus: !1, id: null, selected: !1, selectedClassName: `${Me}--selected` }, Jn = process.env.NODE_ENV !== "production" ? { children: b.oneOfType([b.array, b.object, b.string]), className: b.oneOfType([b.string, b.array, b.object]), disabled: b.bool, disabledClassName: b.string, focus: b.bool, id: b.string, selected: b.bool, selectedClassName: b.string, tabIndex: b.string, tabRef: b.func } : {}, de = (e) => {
911
+ Ze.tabsRole = "TabList";
912
+ Ze.propTypes = process.env.NODE_ENV !== "production" ? Jn : {};
913
+ const Fe = "react-tabs__tab", Zn = { className: Fe, disabledClassName: `${Fe}--disabled`, focus: !1, id: null, selected: !1, selectedClassName: `${Fe}--selected` }, Qn = process.env.NODE_ENV !== "production" ? { children: m.oneOfType([m.array, m.object, m.string]), className: m.oneOfType([m.string, m.array, m.object]), disabled: m.bool, disabledClassName: m.string, focus: m.bool, id: m.string, selected: m.bool, selectedClassName: m.string, tabIndex: m.string, tabRef: m.func } : {}, ue = (e) => {
914
914
  let n = Te();
915
- const { children: t, className: r, disabled: l, disabledClassName: a, focus: h, id: i, selected: v, selectedClassName: y, tabIndex: d, tabRef: C, ...k } = { ...Xn, ...e };
916
- return se(() => {
917
- v && h && n.current.focus();
918
- }, [v, h]), pe.createElement("li", Object.assign({}, k, { className: Oe(r, { [y]: v, [a]: l }), ref: (P) => {
919
- n.current = P, C && C(P);
920
- }, role: "tab", id: `tab${i}`, "aria-selected": v ? "true" : "false", "aria-disabled": l ? "true" : "false", "aria-controls": `panel${i}`, tabIndex: d || (v ? "0" : null), "data-rttab": !0 }), t);
915
+ const { children: t, className: r, disabled: l, disabledClassName: a, focus: g, id: o, selected: v, selectedClassName: h, tabIndex: d, tabRef: I, ...B } = { ...Zn, ...e };
916
+ return le(() => {
917
+ v && g && n.current.focus();
918
+ }, [v, g]), me.createElement("li", Object.assign({}, B, { className: Ae(r, { [h]: v, [a]: l }), ref: (C) => {
919
+ n.current = C, I && I(C);
920
+ }, role: "tab", id: `tab${o}`, "aria-selected": v ? "true" : "false", "aria-disabled": l ? "true" : "false", "aria-controls": `panel${o}`, tabIndex: d || (v ? "0" : null), "data-rttab": !0 }), t);
921
921
  };
922
- de.propTypes = process.env.NODE_ENV !== "production" ? Jn : {};
923
- de.tabsRole = "Tab";
924
- const dt = "react-tabs__tab-panel", Zn = { className: dt, forceRender: !1, selectedClassName: `${dt}--selected` }, Qn = process.env.NODE_ENV !== "production" ? { children: b.node, className: b.oneOfType([b.string, b.array, b.object]), forceRender: b.bool, id: b.string, selected: b.bool, selectedClassName: b.string } : {}, fe = (e) => {
925
- const { children: n, className: t, forceRender: r, id: l, selected: a, selectedClassName: h, ...i } = { ...Zn, ...e };
926
- return pe.createElement("div", Object.assign({}, i, { className: Oe(t, { [h]: a }), role: "tabpanel", id: `panel${l}`, "aria-labelledby": `tab${l}` }), r || a ? n : null);
922
+ ue.propTypes = process.env.NODE_ENV !== "production" ? Qn : {};
923
+ ue.tabsRole = "Tab";
924
+ const mt = "react-tabs__tab-panel", er = { className: mt, forceRender: !1, selectedClassName: `${mt}--selected` }, tr = process.env.NODE_ENV !== "production" ? { children: m.node, className: m.oneOfType([m.string, m.array, m.object]), forceRender: m.bool, id: m.string, selected: m.bool, selectedClassName: m.string } : {}, fe = (e) => {
925
+ const { children: n, className: t, forceRender: r, id: l, selected: a, selectedClassName: g, ...o } = { ...er, ...e };
926
+ return me.createElement("div", Object.assign({}, o, { className: Ae(t, { [g]: a }), role: "tabpanel", id: `panel${l}`, "aria-labelledby": `tab${l}` }), r || a ? n : null);
927
927
  };
928
928
  fe.tabsRole = "TabPanel";
929
- fe.propTypes = process.env.NODE_ENV !== "production" ? Qn : {};
929
+ fe.propTypes = process.env.NODE_ENV !== "production" ? tr : {};
930
930
  (function() {
931
931
  try {
932
932
  if (typeof document < "u") {
@@ -937,27 +937,27 @@ fe.propTypes = process.env.NODE_ENV !== "production" ? Qn : {};
937
937
  console.error("vite-plugin-css-injected-by-js", n);
938
938
  }
939
939
  })();
940
- const er = "_FileExplorer_10w0u_1", tr = "_Header_10w0u_25", nr = "_IconButton_10w0u_45", rr = "_PathInput_10w0u_137", or = "_Body_10w0u_159", ar = "_Sidebar_10w0u_175", ir = "_NavButton_10w0u_203", sr = "_Main_10w0u_249", lr = "_Footer_10w0u_277", cr = "_Selector_10w0u_315", z = {
941
- FileExplorer: er,
942
- Header: tr,
943
- IconButton: nr,
944
- PathInput: rr,
940
+ const nr = "_FileExplorer_10w0u_1", rr = "_Header_10w0u_25", sr = "_IconButton_10w0u_45", ar = "_PathInput_10w0u_137", or = "_Body_10w0u_159", ir = "_Sidebar_10w0u_175", lr = "_NavButton_10w0u_203", cr = "_Main_10w0u_249", pr = "_Footer_10w0u_277", dr = "_Selector_10w0u_315", U = {
941
+ FileExplorer: nr,
942
+ Header: rr,
943
+ IconButton: sr,
944
+ PathInput: ar,
945
945
  Body: or,
946
- Sidebar: ar,
947
- NavButton: ir,
948
- Main: sr,
949
- Footer: lr,
950
- Selector: cr
946
+ Sidebar: ir,
947
+ NavButton: lr,
948
+ Main: cr,
949
+ Footer: pr,
950
+ Selector: dr
951
951
  };
952
- function ge({ onClick: e, icon: n, name: t }) {
953
- return /* @__PURE__ */ E(
952
+ function we({ onClick: e, icon: n, name: t }) {
953
+ return /* @__PURE__ */ T(
954
954
  "button",
955
955
  {
956
956
  tabIndex: 0,
957
- className: `${z.NavButton} ${K.TextSemibold}`,
957
+ className: `${U.NavButton} ${K.TextSemibold}`,
958
958
  onClick: e,
959
959
  children: [
960
- /* @__PURE__ */ s(X, { icon: n }),
960
+ /* @__PURE__ */ i(X, { icon: n }),
961
961
  t
962
962
  ]
963
963
  }
@@ -967,17 +967,17 @@ function ur({ directory: e }) {
967
967
  const n = (t) => {
968
968
  const r = t.target.files;
969
969
  r != null && Array.from(r).forEach((l) => {
970
- const { name: a, extension: h } = Lt.splitId(l.name), i = new FileReader();
971
- i.onload = (v) => {
972
- const { result: y } = v.target;
973
- e.createFile(a, h, (d) => {
974
- d.setSource(y);
970
+ const { name: a, extension: g } = Mt.splitId(l.name), o = new FileReader();
971
+ o.onload = (v) => {
972
+ const { result: h } = v.target;
973
+ e.createFile(a, g, (d) => {
974
+ d.setSource(h);
975
975
  });
976
- }, i.readAsDataURL(l);
976
+ }, o.readAsDataURL(l);
977
977
  });
978
978
  };
979
- return /* @__PURE__ */ E("label", { title: "Import", tabIndex: 0, className: z.IconButton, children: [
980
- /* @__PURE__ */ s(
979
+ return /* @__PURE__ */ T("label", { title: "Import", tabIndex: 0, className: U.IconButton, children: [
980
+ /* @__PURE__ */ i(
981
981
  "input",
982
982
  {
983
983
  type: "file",
@@ -987,308 +987,473 @@ function ur({ directory: e }) {
987
987
  onChange: n
988
988
  }
989
989
  ),
990
- /* @__PURE__ */ s(X, { icon: Gt })
990
+ /* @__PURE__ */ i(X, { icon: Jt })
991
991
  ] });
992
992
  }
993
- const ft = {
993
+ const bt = {
994
994
  NONE: 0,
995
995
  SINGLE: 1,
996
996
  MULTIPLE: 2
997
- }, dr = "_FileProperties_s5har_1", fr = "_Icon_s5har_17", pr = "_Section_s5har_49", br = "_Line_s5har_91", mr = "_AppIcon_s5har_135", H = {
998
- FileProperties: dr,
999
- Icon: fr,
1000
- Section: pr,
1001
- Line: br,
1002
- AppIcon: mr
997
+ }, fr = "_FileProperties_s5har_1", mr = "_Icon_s5har_17", br = "_Section_s5har_49", gr = "_Line_s5har_91", hr = "_AppIcon_s5har_135", H = {
998
+ FileProperties: fr,
999
+ Icon: mr,
1000
+ Section: br,
1001
+ Line: gr,
1002
+ AppIcon: hr
1003
1003
  };
1004
- function hr({ modal: e, params: n, file: t, ...r }) {
1005
- const { appsConfig: l } = me(), a = t.extension != null ? l.getAppByFileExtension(t.extension) : null;
1006
- return /* @__PURE__ */ E(Bt, { className: H.FileProperties, modal: e, params: n, ...r, children: [
1007
- /* @__PURE__ */ E("span", { className: H.Section, children: [
1008
- /* @__PURE__ */ s(qe, { className: H.Icon, source: t.getIconUrl() }),
1009
- /* @__PURE__ */ s("p", { className: `${H.Line} ${K.TextBold}`, children: t.id })
1004
+ function vr({ modal: e, params: n, file: t, ...r }) {
1005
+ const { appsConfig: l } = ge(), a = t.extension != null ? l.getAppByFileExtension(t.extension) : null;
1006
+ return /* @__PURE__ */ T(Dt, { className: H.FileProperties, modal: e, params: n, ...r, children: [
1007
+ /* @__PURE__ */ T("span", { className: H.Section, children: [
1008
+ /* @__PURE__ */ i(We, { className: H.Icon, source: t.getIconUrl() }),
1009
+ /* @__PURE__ */ i("p", { className: `${H.Line} ${K.TextBold}`, children: t.id })
1010
1010
  ] }),
1011
- /* @__PURE__ */ E("span", { className: H.Section, children: [
1012
- /* @__PURE__ */ E("p", { className: H.Line, children: [
1011
+ /* @__PURE__ */ T("span", { className: H.Section, children: [
1012
+ /* @__PURE__ */ T("p", { className: H.Line, children: [
1013
1013
  "Type: ",
1014
1014
  t.getType()
1015
1015
  ] }),
1016
- a != null && /* @__PURE__ */ E("span", { className: H.Line, children: [
1016
+ a != null && /* @__PURE__ */ T("span", { className: H.Line, children: [
1017
1017
  "Opens with:",
1018
- /* @__PURE__ */ s(qe, { className: H.AppIcon, source: a.iconUrl ?? "" }),
1018
+ /* @__PURE__ */ i(We, { className: H.AppIcon, source: a.iconUrl ?? "" }),
1019
1019
  a.name
1020
1020
  ] })
1021
1021
  ] }),
1022
- /* @__PURE__ */ E("span", { className: H.Section, children: [
1023
- /* @__PURE__ */ E("p", { className: H.Line, children: [
1022
+ /* @__PURE__ */ T("span", { className: H.Section, children: [
1023
+ /* @__PURE__ */ T("p", { className: H.Line, children: [
1024
1024
  "Location: ",
1025
1025
  t.path
1026
1026
  ] }),
1027
- /* @__PURE__ */ E("p", { className: H.Line, children: [
1027
+ /* @__PURE__ */ T("p", { className: H.Line, children: [
1028
1028
  "Size: ",
1029
- ue.getByteSize(t.source ?? t.content),
1029
+ de.getByteSize(t.source ?? t.content),
1030
1030
  " bytes"
1031
1031
  ] }),
1032
- /* @__PURE__ */ E("p", { className: H.Line, children: [
1032
+ /* @__PURE__ */ T("p", { className: H.Line, children: [
1033
1033
  "Size on drive: ",
1034
- ue.getByteSize(t.toString()),
1034
+ de.getByteSize(t.toString()),
1035
1035
  " bytes"
1036
1036
  ] })
1037
1037
  ] }),
1038
- /* @__PURE__ */ s("span", { className: H.Section, children: /* @__PURE__ */ E("p", { className: H.Line, children: [
1038
+ /* @__PURE__ */ i("span", { className: H.Section, children: /* @__PURE__ */ T("p", { className: H.Line, children: [
1039
1039
  "Attributes: ",
1040
1040
  t.isProtected ? "Protected" : "N/A"
1041
1041
  ] }) })
1042
1042
  ] });
1043
1043
  }
1044
1044
  function yr({ app: e, path: n, selectorMode: t, Footer: r, onSelectionChange: l, onSelectionFinish: a }) {
1045
- const h = r != null && t != null && t !== ft.NONE, i = Pe(), v = We(), { windowsConfig: y } = me(), [d, C] = te(i == null ? void 0 : i.navigate(n ?? "~")), [k, P] = te((d == null ? void 0 : d.path) ?? ""), [N] = te(!0), { history: x, stateIndex: F, pushState: Y, undo: Q, redo: U, undoAvailable: q, redoAvailable: u } = It(d.path), { alert: ee } = Ot(), { openWindowedModal: ne } = mt(), { onContextMenu: le } = je({
1046
- Actions: (p) => /* @__PURE__ */ E(Fe, { ...p, children: [
1047
- /* @__PURE__ */ s(ie, { label: h ? "Select" : "Open", onTrigger: (g, w) => {
1048
- if (h) {
1049
- l == null || l({ files: [w.id], directory: d }), a == null || a();
1045
+ const g = r != null && t != null && t !== bt.NONE, o = Ne(), v = He(), { windowsConfig: h } = ge(), [d, I] = ne(o == null ? void 0 : o.navigate(n ?? "~")), [B, C] = ne((d == null ? void 0 : d.path) ?? ""), [P] = ne(!0), { history: S, stateIndex: z, pushState: Y, undo: Q, redo: q, undoAvailable: F, redoAvailable: p } = At(d.path), { alert: ee } = Rt(), { openWindowedModal: re } = vt(), { onContextMenu: ce } = qe({
1046
+ Actions: (f) => /* @__PURE__ */ T(Ue, { ...f, children: [
1047
+ /* @__PURE__ */ i(ie, { label: g ? "Select" : "Open", onTrigger: (y, x) => {
1048
+ if (g) {
1049
+ l == null || l({ files: [x.id], directory: d }), a == null || a();
1050
1050
  return;
1051
1051
  }
1052
- v != null && w.open(v);
1052
+ v != null && x.open(v);
1053
1053
  } }),
1054
- /* @__PURE__ */ s(ie, { label: "Delete", icon: et, onTrigger: (g, w) => {
1055
- w.delete();
1054
+ /* @__PURE__ */ i(ie, { label: "Delete", icon: rt, onTrigger: (y, x) => {
1055
+ x.delete();
1056
1056
  } }),
1057
- /* @__PURE__ */ s(ie, { label: "Properties", icon: yt, onTrigger: (g, w) => {
1058
- ne({
1059
- title: `${w.id} ${y.titleSeparator} Properties`,
1060
- iconUrl: w.getIconUrl(),
1057
+ /* @__PURE__ */ i(ie, { label: "Properties", icon: wt, onTrigger: (y, x) => {
1058
+ re({
1059
+ title: `${x.id} ${h.titleSeparator} Properties`,
1060
+ iconUrl: x.getIconUrl(),
1061
1061
  size: new be(400, 500),
1062
- Modal: (j) => /* @__PURE__ */ s(hr, { file: w, ...j })
1062
+ Modal: (j) => /* @__PURE__ */ i(vr, { file: x, ...j })
1063
1063
  });
1064
1064
  } })
1065
1065
  ] })
1066
- }), { onContextMenu: ce } = je({
1067
- Actions: (p) => /* @__PURE__ */ E(Fe, { ...p, children: [
1068
- /* @__PURE__ */ s(ie, { label: "Open", onTrigger: (g, w) => {
1069
- J(w.linkedPath ?? w.name);
1066
+ }), { onContextMenu: pe } = qe({
1067
+ Actions: (f) => /* @__PURE__ */ T(Ue, { ...f, children: [
1068
+ /* @__PURE__ */ i(ie, { label: "Open", onTrigger: (y, x) => {
1069
+ J(x.linkedPath ?? x.name);
1070
1070
  } }),
1071
- /* @__PURE__ */ s(At, {}),
1072
- /* @__PURE__ */ s(ie, { label: "Delete", icon: et, onTrigger: (g, w) => {
1073
- w.delete();
1071
+ /* @__PURE__ */ i($t, {}),
1072
+ /* @__PURE__ */ i(ie, { label: "Delete", icon: rt, onTrigger: (y, x) => {
1073
+ x.delete();
1074
1074
  } })
1075
1075
  ] })
1076
- }), J = nn((p, g = !1) => {
1077
- if (p == null)
1076
+ }), J = sn((f, y = !1) => {
1077
+ if (f == null)
1078
1078
  return;
1079
- d == null && (g = !0);
1080
- const w = g ? i == null ? void 0 : i.navigate(p) : d.navigate(p);
1081
- w != null && (C(w), P(w.root ? "/" : w.path), Y(w.path));
1082
- }, [d, Y, i]);
1083
- se(() => {
1084
- if (x.length === 0)
1079
+ d == null && (y = !0);
1080
+ const x = y ? o == null ? void 0 : o.navigate(f) : d.navigate(f);
1081
+ x != null && (I(x), C(x.root ? "/" : x.path), Y(x.path));
1082
+ }, [d, Y, o]);
1083
+ le(() => {
1084
+ if (S.length === 0)
1085
1085
  return;
1086
- const p = x[F], g = i == null ? void 0 : i.navigate(p);
1087
- g != null && (C(g), P(g.root ? "/" : g.path));
1088
- }, [x, F, i]), se(() => {
1089
- const p = (g) => {
1086
+ const f = S[z], y = o == null ? void 0 : o.navigate(f);
1087
+ y != null && (I(y), C(y.root ? "/" : y.path));
1088
+ }, [S, z, o]), le(() => {
1089
+ const f = (y) => {
1090
1090
  ee({
1091
- title: g.message,
1091
+ title: y.message,
1092
1092
  text: "You have exceeded the virtual drive capacity. Files and folders will not be saved until more storage is freed.",
1093
1093
  iconUrl: e == null ? void 0 : e.iconUrl,
1094
1094
  size: new be(300, 200),
1095
1095
  single: !0
1096
1096
  });
1097
1097
  };
1098
- return i == null || i.on(Je.EVENT_NAMES.error, p), () => {
1099
- i == null || i.off(Je.EVENT_NAMES.error, p);
1098
+ return o == null || o.on(et.EVENT_NAMES.error, f), () => {
1099
+ o == null || o.off(et.EVENT_NAMES.error, f);
1100
1100
  };
1101
1101
  }, []);
1102
- const re = (p) => {
1103
- P(p.target.value);
1104
- }, oe = (p) => {
1105
- let g = p.target.value;
1106
- if (p.key === "Enter") {
1107
- g === "" && (g = "~");
1108
- const w = i == null ? void 0 : i.navigate(g);
1109
- if (w == null) {
1110
- ne({
1102
+ const se = (f) => {
1103
+ C(f.target.value);
1104
+ }, ae = (f) => {
1105
+ let y = f.target.value;
1106
+ if (f.key === "Enter") {
1107
+ y === "" && (y = "~");
1108
+ const x = o == null ? void 0 : o.navigate(y);
1109
+ if (x == null) {
1110
+ re({
1111
1111
  title: "Error",
1112
1112
  iconUrl: e == null ? void 0 : e.iconUrl,
1113
1113
  size: new be(300, 150),
1114
- Modal: (j) => /* @__PURE__ */ E(Ze, { ...j, children: [
1115
- /* @__PURE__ */ E("p", { children: [
1114
+ Modal: (j) => /* @__PURE__ */ T(tt, { ...j, children: [
1115
+ /* @__PURE__ */ T("p", { children: [
1116
1116
  'Invalid path: "',
1117
- g,
1117
+ y,
1118
1118
  '"'
1119
1119
  ] }),
1120
- /* @__PURE__ */ s("button", { "data-type": Qe.DIALOG_CONTENT_TYPES.closeButton, children: "Ok" })
1120
+ /* @__PURE__ */ i("button", { "data-type": nt.DIALOG_CONTENT_TYPES.closeButton, children: "Ok" })
1121
1121
  ] })
1122
1122
  });
1123
1123
  return;
1124
1124
  }
1125
- C(w), P(w.root ? "/" : w.path);
1125
+ I(x), C(x.root ? "/" : x.path);
1126
1126
  }
1127
- }, m = d.getItemCount(N);
1128
- return /* @__PURE__ */ E("div", { className: h ? `${z.FileExplorer} ${z.Selector}` : z.FileExplorer, children: [
1129
- /* @__PURE__ */ E("div", { className: z.Header, children: [
1130
- /* @__PURE__ */ s(
1127
+ }, b = d.getItemCount(P);
1128
+ return /* @__PURE__ */ T("div", { className: g ? `${U.FileExplorer} ${U.Selector}` : U.FileExplorer, children: [
1129
+ /* @__PURE__ */ T("div", { className: U.Header, children: [
1130
+ /* @__PURE__ */ i(
1131
1131
  "button",
1132
1132
  {
1133
1133
  title: "Back",
1134
1134
  tabIndex: 0,
1135
- className: z.IconButton,
1135
+ className: U.IconButton,
1136
1136
  onClick: () => {
1137
1137
  Q();
1138
1138
  },
1139
- disabled: !q,
1140
- children: /* @__PURE__ */ s(X, { icon: jt })
1139
+ disabled: !F,
1140
+ children: /* @__PURE__ */ i(X, { icon: Ft })
1141
1141
  }
1142
1142
  ),
1143
- /* @__PURE__ */ s(
1143
+ /* @__PURE__ */ i(
1144
1144
  "button",
1145
1145
  {
1146
1146
  title: "Forward",
1147
1147
  tabIndex: 0,
1148
- className: z.IconButton,
1148
+ className: U.IconButton,
1149
1149
  onClick: () => {
1150
- U();
1150
+ q();
1151
1151
  },
1152
- disabled: !u,
1153
- children: /* @__PURE__ */ s(X, { icon: Ft })
1152
+ disabled: !p,
1153
+ children: /* @__PURE__ */ i(X, { icon: qt })
1154
1154
  }
1155
1155
  ),
1156
- /* @__PURE__ */ s(
1156
+ /* @__PURE__ */ i(
1157
1157
  "button",
1158
1158
  {
1159
1159
  title: "Up",
1160
1160
  tabIndex: 0,
1161
- className: z.IconButton,
1161
+ className: U.IconButton,
1162
1162
  onClick: () => {
1163
1163
  J("..");
1164
1164
  },
1165
1165
  disabled: d.isRoot != null && d.isRoot,
1166
- children: /* @__PURE__ */ s(X, { icon: qt })
1166
+ children: /* @__PURE__ */ i(X, { icon: Ut })
1167
1167
  }
1168
1168
  ),
1169
- /* @__PURE__ */ s(
1169
+ /* @__PURE__ */ i(
1170
1170
  "button",
1171
1171
  {
1172
1172
  title: "New",
1173
1173
  tabIndex: 0,
1174
- className: z.IconButton,
1174
+ className: U.IconButton,
1175
1175
  onClick: () => {
1176
- ne({
1176
+ re({
1177
1177
  title: "Error",
1178
1178
  iconUrl: e == null ? void 0 : e.iconUrl,
1179
1179
  size: new be(300, 150),
1180
- Modal: (p) => /* @__PURE__ */ E(Ze, { ...p, children: [
1181
- /* @__PURE__ */ s("p", { children: "This folder is protected." }),
1182
- /* @__PURE__ */ s("button", { "data-type": Qe.DIALOG_CONTENT_TYPES.closeButton, children: "Ok" })
1180
+ Modal: (f) => /* @__PURE__ */ T(tt, { ...f, children: [
1181
+ /* @__PURE__ */ i("p", { children: "This folder is protected." }),
1182
+ /* @__PURE__ */ i("button", { "data-type": nt.DIALOG_CONTENT_TYPES.closeButton, children: "Ok" })
1183
1183
  ] })
1184
1184
  });
1185
1185
  },
1186
1186
  disabled: !d.canBeEdited,
1187
- children: /* @__PURE__ */ s(X, { icon: Ut })
1187
+ children: /* @__PURE__ */ i(X, { icon: Wt })
1188
1188
  }
1189
1189
  ),
1190
- /* @__PURE__ */ s(
1190
+ /* @__PURE__ */ i(
1191
1191
  "input",
1192
1192
  {
1193
- value: k,
1193
+ value: B,
1194
1194
  type: "text",
1195
1195
  "aria-label": "Path",
1196
- className: z.PathInput,
1196
+ className: U.PathInput,
1197
1197
  tabIndex: 0,
1198
- onChange: re,
1199
- onKeyDown: oe,
1198
+ onChange: se,
1199
+ onKeyDown: ae,
1200
1200
  placeholder: "Enter a path..."
1201
1201
  }
1202
1202
  ),
1203
- /* @__PURE__ */ s(ur, { directory: d }),
1204
- /* @__PURE__ */ s("button", { title: "Search", tabIndex: 0, className: z.IconButton, children: /* @__PURE__ */ s(X, { icon: zt }) }),
1205
- /* @__PURE__ */ s("button", { title: "Settings", tabIndex: 0, className: z.IconButton, children: /* @__PURE__ */ s(X, { icon: Wt }) })
1203
+ /* @__PURE__ */ i(ur, { directory: d }),
1204
+ /* @__PURE__ */ i("button", { title: "Search", tabIndex: 0, className: U.IconButton, children: /* @__PURE__ */ i(X, { icon: Yt }) }),
1205
+ /* @__PURE__ */ i("button", { title: "Settings", tabIndex: 0, className: U.IconButton, children: /* @__PURE__ */ i(X, { icon: Vt }) })
1206
1206
  ] }),
1207
- /* @__PURE__ */ E("div", { className: z.Body, children: [
1208
- /* @__PURE__ */ E("div", { className: z.Sidebar, children: [
1209
- /* @__PURE__ */ s(ge, { name: "Home", onClick: () => {
1207
+ /* @__PURE__ */ T("div", { className: U.Body, children: [
1208
+ /* @__PURE__ */ T("div", { className: U.Sidebar, children: [
1209
+ /* @__PURE__ */ i(we, { name: "Home", onClick: () => {
1210
1210
  J("~");
1211
- }, icon: Yt }),
1212
- /* @__PURE__ */ s(ge, { name: "Desktop", onClick: () => {
1211
+ }, icon: Ht }),
1212
+ /* @__PURE__ */ i(we, { name: "Desktop", onClick: () => {
1213
1213
  J("~/Desktop");
1214
- }, icon: Vt }),
1215
- /* @__PURE__ */ s(ge, { name: "Images", onClick: () => {
1214
+ }, icon: Kt }),
1215
+ /* @__PURE__ */ i(we, { name: "Images", onClick: () => {
1216
1216
  J("~/Pictures");
1217
- }, icon: Ht }),
1218
- /* @__PURE__ */ s(ge, { name: "Documents", onClick: () => {
1217
+ }, icon: Gt }),
1218
+ /* @__PURE__ */ i(we, { name: "Documents", onClick: () => {
1219
1219
  J("~/Documents");
1220
- }, icon: Kt })
1220
+ }, icon: Xt })
1221
1221
  ] }),
1222
- /* @__PURE__ */ s(
1223
- Rt,
1222
+ /* @__PURE__ */ i(
1223
+ Lt,
1224
1224
  {
1225
1225
  directory: d,
1226
1226
  id: "main",
1227
- className: z.Main,
1228
- showHidden: N,
1229
- onOpenFile: (p, g) => {
1230
- if (p.preventDefault(), h)
1227
+ className: U.Main,
1228
+ showHidden: P,
1229
+ onOpenFile: (f, y) => {
1230
+ if (f.preventDefault(), g)
1231
1231
  return void (a == null ? void 0 : a());
1232
- const w = {};
1233
- (g.extension === "md" || g.extension != null && $t.includes(g.extension)) && (w.mode = "view"), v == null || v.openFile(g, w);
1232
+ const x = {};
1233
+ (y.extension === "md" || y.extension != null && Bt.includes(y.extension)) && (x.mode = "view"), v == null || v.openFile(y, x);
1234
1234
  },
1235
- onOpenFolder: (p, g) => {
1236
- J(g.linkedPath ?? g.name);
1235
+ onOpenFolder: (f, y) => {
1236
+ J(y.linkedPath ?? y.name);
1237
1237
  },
1238
- onContextMenuFile: le,
1239
- onContextMenuFolder: ce,
1240
- allowMultiSelect: t !== ft.SINGLE,
1238
+ onContextMenuFile: ce,
1239
+ onContextMenuFolder: pe,
1240
+ allowMultiSelect: t !== bt.SINGLE,
1241
1241
  onSelectionChange: l
1242
1242
  }
1243
1243
  )
1244
1244
  ] }),
1245
- h ? /* @__PURE__ */ s("div", { className: z.Footer, children: /* @__PURE__ */ s(r, {}) }) : /* @__PURE__ */ s("span", { className: z.Footer, children: /* @__PURE__ */ s("p", { className: K.TextLight, children: m === 1 ? m + " item" : m + " items" }) })
1245
+ g ? /* @__PURE__ */ i("div", { className: U.Footer, children: /* @__PURE__ */ i(r, {}) }) : /* @__PURE__ */ i("span", { className: U.Footer, children: /* @__PURE__ */ i("p", { className: K.TextLight, children: b === 1 ? b + " item" : b + " items" }) })
1246
1246
  ] });
1247
1247
  }
1248
- var Pt = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Single = 1] = "Single", e[e.Multi = 2] = "Multi", e))(Pt || {});
1249
- const Nt = new pt("File Explorer", "file-explorer", yr).setIconUrl("https://os.prozilla.dev/assets/apps/icons/file-explorer.svg").setRole(bt.APP_ROLES.fileExplorer).setCategory("Utilities & tools");
1250
- Nt.setMetadata({ name: "@prozilla-os/file-explorer", version: "1.1.7", author: "Prozilla" });
1251
- const vr = "~/Pictures/Wallpapers";
1252
- function gr() {
1253
- var k, P;
1254
- const { modalsConfig: e } = me(), n = Pe(), t = Ye(), [r, l] = te(0), [a, h] = te(null), i = t == null ? void 0 : t.getSettings(we.VIRTUAL_PATHS.desktop), v = t == null ? void 0 : t.getSettings(we.VIRTUAL_PATHS.theme), { openWindowedModal: y } = mt();
1255
- se(() => {
1256
- i == null || i.get("wallpaper", h), v == null || v.get("theme", (N) => {
1257
- l(parseInt(N));
1248
+ var Ot = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Single = 1] = "Single", e[e.Multi = 2] = "Multi", e))(Ot || {});
1249
+ const kt = new gt("File Explorer", "file-explorer", yr).setIconUrl("https://os.prozilla.dev/assets/apps/icons/file-explorer.svg").setRole(ht.APP_ROLES.fileExplorer).setCategory("Utilities & tools");
1250
+ kt.setMetadata({ name: "@prozilla-os/file-explorer", version: "1.1.8", author: "Prozilla" });
1251
+ const wr = "~/Pictures/Wallpapers";
1252
+ var _r = Object.defineProperty, Tr = (e, n, t) => n in e ? _r(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, te = (e, n, t) => Tr(e, typeof n != "symbol" ? n + "" : n, t);
1253
+ class Re {
1254
+ constructor(n = {}) {
1255
+ te(this, "systemIcon"), te(this, "appIcons"), te(this, "appNames"), te(this, "wallpapers"), te(this, "defaultWallpaper"), te(this, "fileIcons"), te(this, "folderIcons"), te(this, "loadStyleSheet"), te(this, "defaultTheme"), this.systemIcon = n.systemIcon ?? "https://os.prozilla.dev/icon.svg", this.appIcons = n.appIcons, this.appNames = n.appNames, this.wallpapers = n.wallpapers ?? [
1256
+ "https://os.prozilla.dev/assets/wallpapers/vibrant-wallpaper-blue-purple-red.png",
1257
+ "https://os.prozilla.dev/assets/wallpapers/abstract-mesh-gradient-orange-red-purple.png",
1258
+ "https://os.prozilla.dev/assets/wallpapers/vibrant-wallpaper-purple-yellow.png",
1259
+ "https://os.prozilla.dev/assets/wallpapers/abstract-wallpaper-mesh-gradient-cyan.png",
1260
+ "https://os.prozilla.dev/assets/wallpapers/colorful-abstract-wallpaper-blue-red-green.png",
1261
+ "https://os.prozilla.dev/assets/wallpapers/mesh-gradient-wallpaper-red-purple.png",
1262
+ "https://os.prozilla.dev/assets/wallpapers/colorful-mesh-gradient-red-green.png",
1263
+ "https://os.prozilla.dev/assets/wallpapers/flame-abstract-wallpaper-orange.png",
1264
+ "https://os.prozilla.dev/assets/wallpapers/wave-abstract-wallpaper-teal.png",
1265
+ "https://os.prozilla.dev/assets/wallpapers/abstract-wallpaper-gradient-blue-dark.png",
1266
+ "https://os.prozilla.dev/assets/wallpapers/abstract-wallpaper-gradient-red.png"
1267
+ ], this.defaultWallpaper = n.defaultWallpaper ?? "https://os.prozilla.dev/assets/wallpapers/vibrant-wallpaper-blue-purple-red.png", this.fileIcons = n.fileIcons ?? {
1268
+ generic: "https://os.prozilla.dev/assets/apps/file-explorer/icons/file.svg",
1269
+ text: "https://os.prozilla.dev/assets/apps/file-explorer/icons/file-text.svg",
1270
+ info: "https://os.prozilla.dev/assets/apps/file-explorer/icons/file-info.svg",
1271
+ code: "https://os.prozilla.dev/assets/apps/file-explorer/icons/file-code.svg",
1272
+ external: "https://os.prozilla.dev/assets/apps/file-explorer/icons/file-external.svg"
1273
+ }, this.folderIcons = n.folderIcons ?? {
1274
+ generic: "https://os.prozilla.dev/assets/apps/file-explorer/icons/folder.svg",
1275
+ images: "https://os.prozilla.dev/assets/apps/file-explorer/icons/folder-images.svg",
1276
+ text: "https://os.prozilla.dev/assets/apps/file-explorer/icons/folder-text.svg",
1277
+ link: "https://os.prozilla.dev/assets/apps/file-explorer/icons/folder-link.svg"
1278
+ }, this.loadStyleSheet = n.loadStyleSheet, this.defaultTheme = n.defaultTheme;
1279
+ }
1280
+ }
1281
+ new Re({
1282
+ appIcons: {
1283
+ "ball-maze": "/assets/skins/mac/apps/icons/ball-maze.svg",
1284
+ browser: "/assets/skins/mac/apps/icons/browser.svg",
1285
+ calculator: "/assets/skins/mac/apps/icons/calculator.svg",
1286
+ "file-explorer": "/assets/skins/mac/apps/icons/file-explorer.svg",
1287
+ "media-viewer": "/assets/skins/mac/apps/icons/media-viewer.svg",
1288
+ minesweeper: "/assets/skins/mac/apps/icons/minesweeper.svg",
1289
+ settings: "/assets/skins/mac/apps/icons/settings.svg",
1290
+ terminal: "/assets/skins/mac/apps/icons/terminal.svg",
1291
+ "text-editor": "/assets/skins/mac/apps/icons/text-editor.svg",
1292
+ wordle: "/assets/skins/mac/apps/icons/wordle.svg"
1293
+ },
1294
+ appNames: {
1295
+ browser: "Safari",
1296
+ calculator: "Calculator",
1297
+ "file-explorer": "Finder",
1298
+ "media-viewer": "Photos",
1299
+ terminal: "Terminal",
1300
+ "text-editor": "Notes"
1301
+ },
1302
+ wallpapers: [
1303
+ "/assets/skins/mac/wallpapers/macos-monterey.jpg"
1304
+ ],
1305
+ defaultWallpaper: "/assets/skins/mac/wallpapers/macos-monterey.jpg",
1306
+ fileIcons: {
1307
+ generic: "/assets/skins/mac/apps/file-explorer/file.svg"
1308
+ },
1309
+ folderIcons: {
1310
+ generic: "/assets/skins/mac/apps/file-explorer/folder.svg"
1311
+ },
1312
+ loadStyleSheet: () => {
1313
+ Promise.resolve({ });
1314
+ }
1315
+ });
1316
+ new Re({
1317
+ appIcons: {
1318
+ browser: "/assets/skins/minimal/apps/icons/browser.svg",
1319
+ calculator: "/assets/skins/minimal/apps/icons/calculator.svg",
1320
+ "file-explorer": "/assets/skins/minimal/apps/icons/file-explorer.svg",
1321
+ "media-viewer": "/assets/skins/minimal/apps/icons/media-viewer.svg",
1322
+ settings: "/assets/skins/minimal/apps/icons/settings.svg",
1323
+ terminal: "/assets/skins/minimal/apps/icons/terminal.svg",
1324
+ "text-editor": "/assets/skins/minimal/apps/icons/text-editor.svg",
1325
+ "ball-maze": "/assets/skins/minimal/apps/icons/ball-maze.svg",
1326
+ minesweeper: "/assets/skins/minimal/apps/icons/minesweeper.svg",
1327
+ wordle: "/assets/skins/minimal/apps/icons/wordle.svg",
1328
+ "logic-sim": "/assets/skins/minimal/apps/icons/logic-sim.svg"
1329
+ },
1330
+ defaultWallpaper: "/assets/wallpapers/abstract-wallpaper-mesh-gradient-cyan.png",
1331
+ fileIcons: {
1332
+ generic: "/assets/skins/minimal/apps/file-explorer/file.svg"
1333
+ },
1334
+ folderIcons: {
1335
+ generic: "/assets/skins/minimal/apps/file-explorer/folder.svg"
1336
+ },
1337
+ loadStyleSheet: () => {
1338
+ import(
1339
+ /*'./chunks/minimal-Be8X8qbA.js'*/
1340
+ "./chunks/minimal-l0sNRNKZ.js"
1341
+ );
1342
+ }
1343
+ });
1344
+ new Re({
1345
+ appIcons: {
1346
+ "ball-maze": "/assets/skins/pixel/apps/icons/ball-maze.png",
1347
+ browser: "/assets/skins/pixel/apps/icons/browser.png",
1348
+ calculator: "/assets/skins/pixel/apps/icons/calculator.png",
1349
+ "file-explorer": "/assets/skins/pixel/apps/icons/file-explorer.png",
1350
+ "logic-sim": "/assets/skins/pixel/apps/icons/logic-sim.png",
1351
+ "media-viewer": "/assets/skins/pixel/apps/icons/media-viewer.png",
1352
+ minesweeper: "/assets/skins/pixel/apps/icons/minesweeper.png",
1353
+ settings: "/assets/skins/pixel/apps/icons/settings.png",
1354
+ terminal: "/assets/skins/pixel/apps/icons/terminal.png",
1355
+ "text-editor": "/assets/skins/pixel/apps/icons/text-editor.png",
1356
+ wordle: "/assets/skins/pixel/apps/icons/wordle.png"
1357
+ },
1358
+ wallpapers: [
1359
+ "/assets/skins/pixel/wallpapers/vibrant-wallpaper-blue-purple-red.png",
1360
+ "/assets/skins/pixel/wallpapers/abstract-mesh-gradient-orange-red-purple.png",
1361
+ "/assets/skins/pixel/wallpapers/vibrant-wallpaper-purple-yellow.png",
1362
+ "/assets/skins/pixel/wallpapers/abstract-wallpaper-mesh-gradient-cyan.png",
1363
+ "/assets/skins/pixel/wallpapers/colorful-abstract-wallpaper-blue-red-green.png",
1364
+ "/assets/skins/pixel/wallpapers/mesh-gradient-wallpaper-red-purple.png",
1365
+ "/assets/skins/pixel/wallpapers/colorful-mesh-gradient-red-green.png",
1366
+ "/assets/skins/pixel/wallpapers/flame-abstract-wallpaper-orange.png",
1367
+ "/assets/skins/pixel/wallpapers/wave-abstract-wallpaper-teal.png"
1368
+ ],
1369
+ defaultWallpaper: "/assets/skins/pixel/wallpapers/vibrant-wallpaper-blue-purple-red.png",
1370
+ fileIcons: {
1371
+ generic: "/assets/skins/pixel/apps/file-explorer/file.png"
1372
+ },
1373
+ folderIcons: {
1374
+ generic: "/assets/skins/pixel/apps/file-explorer/folder.png"
1375
+ },
1376
+ loadStyleSheet: () => {
1377
+ Promise.resolve({ });
1378
+ }
1379
+ });
1380
+ var Pe = /* @__PURE__ */ ((e) => (e[e.Dark = 0] = "Dark", e[e.Light = 1] = "Light", e[e.Cherry = 2] = "Cherry", e[e.Mango = 3] = "Mango", e[e.Aqua = 4] = "Aqua", e[e.Grape = 5] = "Grape", e))(Pe || {});
1381
+ new Re({
1382
+ systemIcon: "/assets/skins/windows95/system-icon.png",
1383
+ appIcons: {
1384
+ browser: "/assets/skins/windows95/apps/icons/browser.svg",
1385
+ calculator: "/assets/skins/windows95/apps/icons/calculator.svg",
1386
+ "file-explorer": "/assets/skins/windows95/apps/icons/file-explorer.svg",
1387
+ "media-viewer": "/assets/skins/windows95/apps/icons/media-viewer.svg",
1388
+ minesweeper: "/assets/skins/windows95/apps/icons/minesweeper.svg",
1389
+ settings: "/assets/skins/windows95/apps/icons/settings.svg",
1390
+ terminal: "/assets/skins/windows95/apps/icons/terminal.svg",
1391
+ "text-editor": "/assets/skins/windows95/apps/icons/text-editor.svg"
1392
+ },
1393
+ appNames: {
1394
+ browser: "Internet Explorer",
1395
+ calculator: "Calculator",
1396
+ "file-explorer": "Windows Explorer",
1397
+ "media-viewer": "Imaging",
1398
+ terminal: "MS-DOS Prompt",
1399
+ "text-editor": "Notepad"
1400
+ },
1401
+ wallpapers: [
1402
+ "/assets/skins/windows95/wallpapers/default.png",
1403
+ "/assets/skins/windows95/wallpapers/clouds.png"
1404
+ ],
1405
+ defaultWallpaper: "/assets/skins/windows95/wallpapers/default.png",
1406
+ fileIcons: {
1407
+ generic: "/assets/skins/windows95/apps/file-explorer/file.svg"
1408
+ },
1409
+ folderIcons: {
1410
+ generic: "/assets/skins/windows95/apps/file-explorer/folder.svg"
1411
+ },
1412
+ defaultTheme: Pe.Light,
1413
+ loadStyleSheet: () => {
1414
+ Promise.resolve({});
1415
+ }
1416
+ });
1417
+ function xr() {
1418
+ var B, C;
1419
+ const { modalsConfig: e } = ge(), n = Ne(), t = Ke(), [r, l] = ne(Pe.Dark), [a, g] = ne(null), o = t == null ? void 0 : t.getSettings(Ee.VIRTUAL_PATHS.desktop), v = t == null ? void 0 : t.getSettings(Ee.VIRTUAL_PATHS.theme), { openWindowedModal: h } = vt();
1420
+ le(() => {
1421
+ o == null || o.get("wallpaper", g), v == null || v.get("theme", (P) => {
1422
+ l(parseInt(P));
1258
1423
  });
1259
- }, [i, v]);
1260
- const d = (N) => {
1261
- const x = N.target.value;
1262
- i == null || i.set("wallpaper", x);
1263
- }, C = (N) => {
1264
- const x = N.target.value;
1265
- v == null || v.set("theme", x);
1424
+ }, [o, v]);
1425
+ const d = (P) => {
1426
+ const S = P.target.value;
1427
+ o == null || o.set("wallpaper", S);
1428
+ }, I = (P) => {
1429
+ const S = P.target.value;
1430
+ v == null || v.set("theme", S);
1266
1431
  };
1267
- return /* @__PURE__ */ E(ht, { children: [
1268
- /* @__PURE__ */ E("div", { className: S.Option, children: [
1269
- /* @__PURE__ */ s("p", { className: S.Label, children: "Theme" }),
1270
- /* @__PURE__ */ s("div", { className: S.Input, children: /* @__PURE__ */ s("select", { className: S.Dropdown, "aria-label": "theme", value: r, onChange: C, children: Object.entries(kt).map(
1271
- ([N, x]) => /* @__PURE__ */ s("option", { value: N, children: x }, N)
1432
+ return /* @__PURE__ */ T(yt, { children: [
1433
+ /* @__PURE__ */ T("div", { className: E.Option, children: [
1434
+ /* @__PURE__ */ i("p", { className: E.Label, children: "Theme" }),
1435
+ /* @__PURE__ */ i("div", { className: E.Input, children: /* @__PURE__ */ i("select", { className: E.Dropdown, "aria-label": "theme", value: r, onChange: I, children: Object.entries(Pe).map(
1436
+ ([P, S]) => /* @__PURE__ */ i("option", { value: P, children: S }, P)
1272
1437
  ) }) })
1273
1438
  ] }),
1274
- /* @__PURE__ */ E("div", { className: S.Option, children: [
1275
- /* @__PURE__ */ s("p", { className: S.Label, children: "Wallpaper" }),
1276
- /* @__PURE__ */ s(
1439
+ /* @__PURE__ */ T("div", { className: E.Option, children: [
1440
+ /* @__PURE__ */ i("p", { className: E.Label, children: "Wallpaper" }),
1441
+ /* @__PURE__ */ i(
1277
1442
  Se,
1278
1443
  {
1279
- className: `${S.Button} ${K.TextBold}`,
1444
+ className: `${E.Button} ${K.TextBold}`,
1280
1445
  onClick: () => {
1281
- y({
1446
+ h({
1282
1447
  size: e.defaultFileSelectorSize,
1283
- Modal: (N) => /* @__PURE__ */ s(
1284
- Nt.WindowContent,
1448
+ Modal: (P) => /* @__PURE__ */ i(
1449
+ kt.WindowContent,
1285
1450
  {
1286
- type: Pt.Single,
1287
- allowedFormats: Dt,
1288
- onFinish: (x) => {
1289
- x.source != null && (i == null || i.set("wallpaper", x.source));
1451
+ type: Ot.Single,
1452
+ allowedFormats: jt,
1453
+ onFinish: (S) => {
1454
+ S.source != null && (o == null || o.set("wallpaper", S.source));
1290
1455
  },
1291
- ...N
1456
+ ...P
1292
1457
  }
1293
1458
  )
1294
1459
  });
@@ -1296,41 +1461,41 @@ function gr() {
1296
1461
  children: "Browse"
1297
1462
  }
1298
1463
  ),
1299
- /* @__PURE__ */ s("div", { className: `${S.Input} ${S.ImageSelectContainer}`, children: (P = (k = n == null ? void 0 : n.navigate(vr)) == null ? void 0 : k.getFiles()) == null ? void 0 : P.map(
1300
- ({ id: N, source: x }) => /* @__PURE__ */ E("label", { className: S.ImageSelect, children: [
1301
- /* @__PURE__ */ s(
1464
+ /* @__PURE__ */ i("div", { className: `${E.Input} ${E.ImageSelectContainer}`, children: (C = (B = n == null ? void 0 : n.navigate(wr)) == null ? void 0 : B.getFiles()) == null ? void 0 : C.map(
1465
+ ({ id: P, source: S }) => /* @__PURE__ */ T("label", { className: E.ImageSelect, children: [
1466
+ /* @__PURE__ */ i(
1302
1467
  "input",
1303
1468
  {
1304
1469
  type: "radio",
1305
- value: x ?? "",
1470
+ value: S ?? "",
1306
1471
  "aria-label": "Wallpaper image",
1307
- checked: x === a,
1472
+ checked: S === a,
1308
1473
  onChange: d,
1309
1474
  tabIndex: 0
1310
1475
  }
1311
1476
  ),
1312
- /* @__PURE__ */ s("img", { src: x ?? "", alt: N, draggable: "false" })
1313
- ] }, N)
1477
+ /* @__PURE__ */ i("img", { src: S ?? "", alt: P, draggable: "false" })
1478
+ ] }, P)
1314
1479
  ) })
1315
1480
  ] })
1316
1481
  ] });
1317
1482
  }
1318
- function _r() {
1319
- const { systemName: e } = me(), n = We(), t = Pe();
1320
- return /* @__PURE__ */ E("div", { className: S.Option, children: [
1321
- /* @__PURE__ */ E("p", { className: S.Label, children: [
1483
+ function Er() {
1484
+ const { systemName: e } = ge(), n = He(), t = Ne();
1485
+ return /* @__PURE__ */ T("div", { className: E.Option, children: [
1486
+ /* @__PURE__ */ T("p", { className: E.Label, children: [
1322
1487
  "About ",
1323
1488
  e
1324
1489
  ] }),
1325
- /* @__PURE__ */ E("p", { className: K.TextLight, children: [
1490
+ /* @__PURE__ */ T("p", { className: K.TextLight, children: [
1326
1491
  e,
1327
1492
  " is a web-based operating system inspired by Ubuntu Linux and Windows made with React.js by Prozilla."
1328
1493
  ] }),
1329
- /* @__PURE__ */ E("div", { className: S.ButtonGroup, children: [
1330
- /* @__PURE__ */ s(
1494
+ /* @__PURE__ */ T("div", { className: E.ButtonGroup, children: [
1495
+ /* @__PURE__ */ i(
1331
1496
  Se,
1332
1497
  {
1333
- className: `${S.Button} ${K.TextBold}`,
1498
+ className: `${E.Button} ${K.TextBold}`,
1334
1499
  onClick: (r) => {
1335
1500
  r.preventDefault(), n == null || n.open("text-editor", {
1336
1501
  mode: "view",
@@ -1341,10 +1506,10 @@ function _r() {
1341
1506
  children: "Open Info.md"
1342
1507
  }
1343
1508
  ),
1344
- /* @__PURE__ */ s(
1509
+ /* @__PURE__ */ i(
1345
1510
  Se,
1346
1511
  {
1347
- className: `${S.Button} ${K.TextBold}`,
1512
+ className: `${E.Button} ${K.TextBold}`,
1348
1513
  href: "https://github.com/prozilla-os/ProzillaOS",
1349
1514
  children: "View source"
1350
1515
  }
@@ -1352,33 +1517,33 @@ function _r() {
1352
1517
  ] })
1353
1518
  ] });
1354
1519
  }
1355
- function Tr() {
1356
- const e = Pe(), n = ue.MAX_BYTES, t = ue.getByteSize((e == null ? void 0 : e.toString()) ?? ""), r = ue.byteToKilobyte(n), l = ue.byteToKilobyte(t), a = r - l;
1357
- return /* @__PURE__ */ E(ht, { children: [
1358
- /* @__PURE__ */ E("div", { className: `${S.Option} ${S.ProgressBarContainer}`, children: [
1359
- /* @__PURE__ */ E("p", { className: S.Label, children: [
1520
+ function Sr() {
1521
+ const e = Ne(), n = de.MAX_BYTES, t = de.getByteSize((e == null ? void 0 : e.toString()) ?? ""), r = de.byteToKilobyte(n), l = de.byteToKilobyte(t), a = r - l;
1522
+ return /* @__PURE__ */ T(yt, { children: [
1523
+ /* @__PURE__ */ T("div", { className: `${E.Option} ${E.ProgressBarContainer}`, children: [
1524
+ /* @__PURE__ */ T("p", { className: E.Label, children: [
1360
1525
  "Virtual Drive (",
1361
- Ae(r, 1),
1526
+ $e(r, 1),
1362
1527
  " KB)"
1363
1528
  ] }),
1364
- /* @__PURE__ */ s(Mt, { fillPercentage: l / r * 100, className: S.ProgressBar }),
1365
- /* @__PURE__ */ E("span", { className: S.ProgressBarLabels, children: [
1366
- /* @__PURE__ */ E("p", { className: K.TextLight, children: [
1367
- Ae(l, 1),
1529
+ /* @__PURE__ */ i(zt, { fillPercentage: l / r * 100, className: E.ProgressBar }),
1530
+ /* @__PURE__ */ T("span", { className: E.ProgressBarLabels, children: [
1531
+ /* @__PURE__ */ T("p", { className: K.TextLight, children: [
1532
+ $e(l, 1),
1368
1533
  " KB used"
1369
1534
  ] }),
1370
- /* @__PURE__ */ E("p", { className: K.TextLight, children: [
1371
- Ae(a, 1),
1535
+ /* @__PURE__ */ T("p", { className: K.TextLight, children: [
1536
+ $e(a, 1),
1372
1537
  " KB free"
1373
1538
  ] })
1374
1539
  ] })
1375
1540
  ] }),
1376
- /* @__PURE__ */ E("div", { className: S.Option, children: [
1377
- /* @__PURE__ */ s("p", { className: S.Label, children: "Manage data" }),
1378
- /* @__PURE__ */ s(
1541
+ /* @__PURE__ */ T("div", { className: E.Option, children: [
1542
+ /* @__PURE__ */ i("p", { className: E.Label, children: "Manage data" }),
1543
+ /* @__PURE__ */ i(
1379
1544
  Se,
1380
1545
  {
1381
- className: `${S.Button} ${S.ButtonDanger} ${K.TextBold}`,
1546
+ className: `${E.Button} ${E.ButtonDanger} ${K.TextBold}`,
1382
1547
  onClick: () => {
1383
1548
  e == null || e.reset();
1384
1549
  },
@@ -1388,80 +1553,80 @@ function Tr() {
1388
1553
  ] })
1389
1554
  ] });
1390
1555
  }
1391
- function Er({ app: e, pins: n, setPins: t }) {
1392
- const r = n.includes(e.id), l = Ye(), a = We(), { onContextMenu: h } = je({
1393
- Actions: (i) => /* @__PURE__ */ E(Fe, { ...i, children: [
1394
- /* @__PURE__ */ s(ie, { label: "Launch", icon: e.iconUrl, onTrigger: () => a == null ? void 0 : a.open(e.id) }),
1395
- /* @__PURE__ */ s(ie, { label: r ? "Unpin from taskbar" : "Pin to taskbar", icon: Xt, onTrigger: () => {
1556
+ function Ir({ app: e, pins: n, setPins: t }) {
1557
+ const r = n.includes(e.id), l = Ke(), a = He(), { onContextMenu: g } = qe({
1558
+ Actions: (o) => /* @__PURE__ */ T(Ue, { ...o, children: [
1559
+ /* @__PURE__ */ i(ie, { label: "Launch", icon: e.iconUrl, onTrigger: () => a == null ? void 0 : a.open(e.id) }),
1560
+ /* @__PURE__ */ i(ie, { label: r ? "Unpin from taskbar" : "Pin to taskbar", icon: Zt, onTrigger: () => {
1396
1561
  const v = [...n];
1397
- r ? rn(e.id, n) : v.push(e.id);
1398
- const y = l == null ? void 0 : l.getSettings(we.VIRTUAL_PATHS.taskbar);
1399
- y == null || y.set("pins", v.join(","));
1562
+ r ? an(e.id, n) : v.push(e.id);
1563
+ const h = l == null ? void 0 : l.getSettings(Ee.VIRTUAL_PATHS.taskbar);
1564
+ h == null || h.set("pins", v.join(","));
1400
1565
  } })
1401
1566
  ] })
1402
1567
  });
1403
- return /* @__PURE__ */ E("div", { className: `${S.Option} ${S.OptionHorizontal}`, children: [
1404
- /* @__PURE__ */ E("span", { className: S.Label, children: [
1405
- /* @__PURE__ */ s(qe, { className: S.Icon, source: e.iconUrl }),
1568
+ return /* @__PURE__ */ T("div", { className: `${E.Option} ${E.OptionHorizontal}`, children: [
1569
+ /* @__PURE__ */ T("span", { className: E.Label, children: [
1570
+ /* @__PURE__ */ i(We, { className: E.Icon, source: e.iconUrl }),
1406
1571
  e.name
1407
1572
  ] }),
1408
- /* @__PURE__ */ s("button", { className: S.IconButton, onClick: h, children: /* @__PURE__ */ s(X, { icon: Jt }) })
1573
+ /* @__PURE__ */ i("button", { className: E.IconButton, onClick: g, children: /* @__PURE__ */ i(X, { icon: Qt }) })
1409
1574
  ] });
1410
1575
  }
1411
- function wr() {
1412
- const { appsConfig: e } = me(), n = Ye(), [t, r] = te([]);
1413
- return se(() => {
1414
- const l = n == null ? void 0 : n.getSettings(we.VIRTUAL_PATHS.taskbar);
1576
+ function Cr() {
1577
+ const { appsConfig: e } = ge(), n = Ke(), [t, r] = ne([]);
1578
+ return le(() => {
1579
+ const l = n == null ? void 0 : n.getSettings(Ee.VIRTUAL_PATHS.taskbar);
1415
1580
  l == null || l.get("pins", (a) => {
1416
1581
  r(a.split(","));
1417
1582
  });
1418
- }, [n]), /* @__PURE__ */ E("div", { className: `${S.Option} ${S.OptionList}`, children: [
1419
- /* @__PURE__ */ s("p", { className: S.Label, children: "Apps" }),
1583
+ }, [n]), /* @__PURE__ */ T("div", { className: `${E.Option} ${E.OptionList}`, children: [
1584
+ /* @__PURE__ */ i("p", { className: E.Label, children: "Apps" }),
1420
1585
  e.apps.sort(
1421
1586
  (l, a) => l.name.toLowerCase().localeCompare(a.name.toLowerCase())
1422
1587
  ).map(
1423
- (l) => /* @__PURE__ */ s(Er, { app: l, pins: t, setPins: r }, l.id)
1588
+ (l) => /* @__PURE__ */ i(Ir, { app: l, pins: t, setPins: r }, l.id)
1424
1589
  )
1425
1590
  ] });
1426
1591
  }
1427
- function Sr({ tab: e }) {
1428
- return /* @__PURE__ */ s("div", { className: S.SettingsContainer, children: /* @__PURE__ */ E(
1429
- Ke,
1592
+ function Pr({ tab: e }) {
1593
+ return /* @__PURE__ */ i("div", { className: E.SettingsContainer, children: /* @__PURE__ */ T(
1594
+ Je,
1430
1595
  {
1431
1596
  defaultIndex: e ?? 0,
1432
- className: S.Settings,
1433
- selectedTabClassName: S.ActiveTab,
1434
- selectedTabPanelClassName: S.ActivePanel,
1597
+ className: E.Settings,
1598
+ selectedTabClassName: E.ActiveTab,
1599
+ selectedTabPanelClassName: E.ActivePanel,
1435
1600
  children: [
1436
- /* @__PURE__ */ E(Ge, { className: S.Tabs, children: [
1437
- /* @__PURE__ */ E(de, { className: S.TabButton, tabIndex: "0", children: [
1438
- /* @__PURE__ */ s(X, { icon: Zt }),
1439
- /* @__PURE__ */ s("p", { className: K.TextSemibold, children: "Apps" })
1601
+ /* @__PURE__ */ T(Ze, { className: E.Tabs, children: [
1602
+ /* @__PURE__ */ T(ue, { className: E.TabButton, tabIndex: "0", children: [
1603
+ /* @__PURE__ */ i(X, { icon: en }),
1604
+ /* @__PURE__ */ i("p", { className: K.TextSemibold, children: "Apps" })
1440
1605
  ] }),
1441
- /* @__PURE__ */ E(de, { className: S.TabButton, tabIndex: "0", children: [
1442
- /* @__PURE__ */ s(X, { icon: Qt }),
1443
- /* @__PURE__ */ s("p", { className: K.TextSemibold, children: "Appearance" })
1606
+ /* @__PURE__ */ T(ue, { className: E.TabButton, tabIndex: "0", children: [
1607
+ /* @__PURE__ */ i(X, { icon: tn }),
1608
+ /* @__PURE__ */ i("p", { className: K.TextSemibold, children: "Appearance" })
1444
1609
  ] }),
1445
- /* @__PURE__ */ E(de, { className: S.TabButton, tabIndex: "0", children: [
1446
- /* @__PURE__ */ s(X, { icon: en }),
1447
- /* @__PURE__ */ s("p", { className: K.TextSemibold, children: "Storage" })
1610
+ /* @__PURE__ */ T(ue, { className: E.TabButton, tabIndex: "0", children: [
1611
+ /* @__PURE__ */ i(X, { icon: nn }),
1612
+ /* @__PURE__ */ i("p", { className: K.TextSemibold, children: "Storage" })
1448
1613
  ] }),
1449
- /* @__PURE__ */ E(de, { className: S.TabButton, tabIndex: "0", children: [
1450
- /* @__PURE__ */ s(X, { icon: yt }),
1451
- /* @__PURE__ */ s("p", { className: K.TextSemibold, children: "About" })
1614
+ /* @__PURE__ */ T(ue, { className: E.TabButton, tabIndex: "0", children: [
1615
+ /* @__PURE__ */ i(X, { icon: wt }),
1616
+ /* @__PURE__ */ i("p", { className: K.TextSemibold, children: "About" })
1452
1617
  ] })
1453
1618
  ] }),
1454
- /* @__PURE__ */ s(fe, { className: S.TabPanel, children: /* @__PURE__ */ s(wr, {}) }),
1455
- /* @__PURE__ */ s(fe, { className: S.TabPanel, children: /* @__PURE__ */ s(gr, {}) }),
1456
- /* @__PURE__ */ s(fe, { className: S.TabPanel, children: /* @__PURE__ */ s(Tr, {}) }),
1457
- /* @__PURE__ */ s(fe, { className: S.TabPanel, children: /* @__PURE__ */ s(_r, {}) })
1619
+ /* @__PURE__ */ i(fe, { className: E.TabPanel, children: /* @__PURE__ */ i(Cr, {}) }),
1620
+ /* @__PURE__ */ i(fe, { className: E.TabPanel, children: /* @__PURE__ */ i(xr, {}) }),
1621
+ /* @__PURE__ */ i(fe, { className: E.TabPanel, children: /* @__PURE__ */ i(Sr, {}) }),
1622
+ /* @__PURE__ */ i(fe, { className: E.TabPanel, children: /* @__PURE__ */ i(Er, {}) })
1458
1623
  ]
1459
1624
  }
1460
1625
  ) });
1461
1626
  }
1462
- const xr = new pt("Settings", "settings", Sr).setIconUrl("https://os.prozilla.dev/assets/apps/icons/settings.svg").setRole(bt.APP_ROLES.settings).setCategory("Personalization");
1463
- xr.setMetadata({ name: "@prozilla-os/settings", version: "1.1.7", author: "Prozilla" });
1627
+ const Nr = new gt("Settings", "settings", Pr).setIconUrl("https://os.prozilla.dev/assets/apps/icons/settings.svg").setRole(ht.APP_ROLES.settings).setCategory("Personalization");
1628
+ Nr.setMetadata({ name: "@prozilla-os/settings", version: "1.1.8", author: "Prozilla" });
1464
1629
  export {
1465
- xr as settings
1630
+ Nr as settings
1466
1631
  };
1467
1632
  //# sourceMappingURL=main.js.map