UNPKG

@cgi-learning-hub/ui

Version:

React component library for Hub's design system, built on Material UI with custom and extended components.

1,029 lines 1.26 MB
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); //#region \0rolldown/runtime.js var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports); var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) { key = keys[i]; if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: ((k) => from[k]).bind(null, key), enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod)); //#endregion let react = require("react"); let react$1 = __toESM(react, 1); react = __toESM(react); let react_jsx_runtime = require("react/jsx-runtime"); let _mui_material_Tabs = require("@mui/material/Tabs"); _mui_material_Tabs = __toESM(_mui_material_Tabs, 1); let _mui_material_styles = require("@mui/material/styles"); let _mui_material_Accordion = require("@mui/material/Accordion"); _mui_material_Accordion = __toESM(_mui_material_Accordion, 1); let _mui_material_AccordionActions = require("@mui/material/AccordionActions"); _mui_material_AccordionActions = __toESM(_mui_material_AccordionActions, 1); let _mui_material_AccordionDetails = require("@mui/material/AccordionDetails"); _mui_material_AccordionDetails = __toESM(_mui_material_AccordionDetails, 1); let _mui_material_AccordionSummary = require("@mui/material/AccordionSummary"); _mui_material_AccordionSummary = __toESM(_mui_material_AccordionSummary, 1); let _mui_material_AlertTitle = require("@mui/material/AlertTitle"); _mui_material_AlertTitle = __toESM(_mui_material_AlertTitle, 1); let _mui_material_AppBar = require("@mui/material/AppBar"); _mui_material_AppBar = __toESM(_mui_material_AppBar, 1); let _mui_material_Autocomplete = require("@mui/material/Autocomplete"); _mui_material_Autocomplete = __toESM(_mui_material_Autocomplete, 1); let _mui_material_Avatar = require("@mui/material/Avatar"); _mui_material_Avatar = __toESM(_mui_material_Avatar, 1); let _mui_material_Backdrop = require("@mui/material/Backdrop"); _mui_material_Backdrop = __toESM(_mui_material_Backdrop, 1); let _mui_material_Badge = require("@mui/material/Badge"); _mui_material_Badge = __toESM(_mui_material_Badge, 1); let _mui_material_Box = require("@mui/material/Box"); _mui_material_Box = __toESM(_mui_material_Box, 1); let _mui_material_Breadcrumbs = require("@mui/material/Breadcrumbs"); _mui_material_Breadcrumbs = __toESM(_mui_material_Breadcrumbs, 1); let _mui_material_Button = require("@mui/material/Button"); _mui_material_Button = __toESM(_mui_material_Button, 1); let _mui_material_ButtonGroup = require("@mui/material/ButtonGroup"); _mui_material_ButtonGroup = __toESM(_mui_material_ButtonGroup, 1); let _mui_material_Card = require("@mui/material/Card"); _mui_material_Card = __toESM(_mui_material_Card, 1); let _mui_material_CardActionArea = require("@mui/material/CardActionArea"); _mui_material_CardActionArea = __toESM(_mui_material_CardActionArea, 1); let _mui_material_CardActions = require("@mui/material/CardActions"); _mui_material_CardActions = __toESM(_mui_material_CardActions, 1); let _mui_material_CardContent = require("@mui/material/CardContent"); _mui_material_CardContent = __toESM(_mui_material_CardContent, 1); let _mui_material_CardHeader = require("@mui/material/CardHeader"); _mui_material_CardHeader = __toESM(_mui_material_CardHeader, 1); let _mui_material_CardMedia = require("@mui/material/CardMedia"); _mui_material_CardMedia = __toESM(_mui_material_CardMedia, 1); let _mui_material_Checkbox = require("@mui/material/Checkbox"); _mui_material_Checkbox = __toESM(_mui_material_Checkbox, 1); let _mui_material_Chip = require("@mui/material/Chip"); _mui_material_Chip = __toESM(_mui_material_Chip, 1); let _mui_material_CircularProgress = require("@mui/material/CircularProgress"); _mui_material_CircularProgress = __toESM(_mui_material_CircularProgress, 1); let _mui_material_ClickAwayListener = require("@mui/material/ClickAwayListener"); _mui_material_ClickAwayListener = __toESM(_mui_material_ClickAwayListener, 1); let _mui_material_Collapse = require("@mui/material/Collapse"); _mui_material_Collapse = __toESM(_mui_material_Collapse, 1); let _mui_material_Container = require("@mui/material/Container"); _mui_material_Container = __toESM(_mui_material_Container, 1); let _mui_material_DialogActions = require("@mui/material/DialogActions"); _mui_material_DialogActions = __toESM(_mui_material_DialogActions, 1); let _mui_material_DialogContent = require("@mui/material/DialogContent"); _mui_material_DialogContent = __toESM(_mui_material_DialogContent, 1); let _mui_material_DialogContentText = require("@mui/material/DialogContentText"); _mui_material_DialogContentText = __toESM(_mui_material_DialogContentText, 1); let _mui_material_DialogTitle = require("@mui/material/DialogTitle"); _mui_material_DialogTitle = __toESM(_mui_material_DialogTitle, 1); let _mui_material_Divider = require("@mui/material/Divider"); _mui_material_Divider = __toESM(_mui_material_Divider, 1); let _mui_material_Drawer = require("@mui/material/Drawer"); _mui_material_Drawer = __toESM(_mui_material_Drawer, 1); let _mui_material_Fade = require("@mui/material/Fade"); _mui_material_Fade = __toESM(_mui_material_Fade, 1); let _mui_material_FormControl = require("@mui/material/FormControl"); _mui_material_FormControl = __toESM(_mui_material_FormControl, 1); let _mui_material_FormControlLabel = require("@mui/material/FormControlLabel"); _mui_material_FormControlLabel = __toESM(_mui_material_FormControlLabel, 1); let _mui_material_FormGroup = require("@mui/material/FormGroup"); _mui_material_FormGroup = __toESM(_mui_material_FormGroup, 1); let _mui_material_FormHelperText = require("@mui/material/FormHelperText"); _mui_material_FormHelperText = __toESM(_mui_material_FormHelperText, 1); let _mui_material_FormLabel = require("@mui/material/FormLabel"); _mui_material_FormLabel = __toESM(_mui_material_FormLabel, 1); let _mui_material_GlobalStyles = require("@mui/material/GlobalStyles"); _mui_material_GlobalStyles = __toESM(_mui_material_GlobalStyles, 1); let _mui_material_Grid = require("@mui/material/Grid"); _mui_material_Grid = __toESM(_mui_material_Grid, 1); let _mui_material_Grow = require("@mui/material/Grow"); _mui_material_Grow = __toESM(_mui_material_Grow, 1); let _mui_material_IconButton = require("@mui/material/IconButton"); _mui_material_IconButton = __toESM(_mui_material_IconButton, 1); let _mui_material_Input = require("@mui/material/Input"); _mui_material_Input = __toESM(_mui_material_Input, 1); let _mui_material_InputBase = require("@mui/material/InputBase"); _mui_material_InputBase = __toESM(_mui_material_InputBase, 1); let _mui_material_InputLabel = require("@mui/material/InputLabel"); _mui_material_InputLabel = __toESM(_mui_material_InputLabel, 1); let _mui_material_LinearProgress = require("@mui/material/LinearProgress"); _mui_material_LinearProgress = __toESM(_mui_material_LinearProgress, 1); let _mui_material_Link = require("@mui/material/Link"); _mui_material_Link = __toESM(_mui_material_Link, 1); let _mui_material_List = require("@mui/material/List"); _mui_material_List = __toESM(_mui_material_List, 1); let _mui_material_ListItem = require("@mui/material/ListItem"); _mui_material_ListItem = __toESM(_mui_material_ListItem, 1); let _mui_material_ListItemButton = require("@mui/material/ListItemButton"); _mui_material_ListItemButton = __toESM(_mui_material_ListItemButton, 1); let _mui_material_ListItemIcon = require("@mui/material/ListItemIcon"); _mui_material_ListItemIcon = __toESM(_mui_material_ListItemIcon, 1); let _mui_material_ListItemText = require("@mui/material/ListItemText"); _mui_material_ListItemText = __toESM(_mui_material_ListItemText, 1); let _mui_material_ListSubheader = require("@mui/material/ListSubheader"); _mui_material_ListSubheader = __toESM(_mui_material_ListSubheader, 1); let _mui_material_Menu = require("@mui/material/Menu"); _mui_material_Menu = __toESM(_mui_material_Menu, 1); let _mui_material_MenuItem = require("@mui/material/MenuItem"); _mui_material_MenuItem = __toESM(_mui_material_MenuItem, 1); let _mui_material_MobileStepper = require("@mui/material/MobileStepper"); _mui_material_MobileStepper = __toESM(_mui_material_MobileStepper, 1); let _mui_material_Modal = require("@mui/material/Modal"); _mui_material_Modal = __toESM(_mui_material_Modal, 1); let _mui_material_Pagination = require("@mui/material/Pagination"); _mui_material_Pagination = __toESM(_mui_material_Pagination, 1); let _mui_material_Paper = require("@mui/material/Paper"); _mui_material_Paper = __toESM(_mui_material_Paper, 1); let _mui_material_Popover = require("@mui/material/Popover"); _mui_material_Popover = __toESM(_mui_material_Popover, 1); let _mui_material_Radio = require("@mui/material/Radio"); _mui_material_Radio = __toESM(_mui_material_Radio, 1); let _mui_material_RadioGroup = require("@mui/material/RadioGroup"); _mui_material_RadioGroup = __toESM(_mui_material_RadioGroup, 1); let _mui_material_Select = require("@mui/material/Select"); _mui_material_Select = __toESM(_mui_material_Select, 1); let _mui_material_Skeleton = require("@mui/material/Skeleton"); _mui_material_Skeleton = __toESM(_mui_material_Skeleton, 1); let _mui_material_Slide = require("@mui/material/Slide"); _mui_material_Slide = __toESM(_mui_material_Slide, 1); let _mui_material_Slider = require("@mui/material/Slider"); _mui_material_Slider = __toESM(_mui_material_Slider, 1); let _mui_material_Snackbar = require("@mui/material/Snackbar"); _mui_material_Snackbar = __toESM(_mui_material_Snackbar, 1); let _mui_material_Stack = require("@mui/material/Stack"); _mui_material_Stack = __toESM(_mui_material_Stack, 1); let _mui_material_Step = require("@mui/material/Step"); _mui_material_Step = __toESM(_mui_material_Step, 1); let _mui_material_StepButton = require("@mui/material/StepButton"); _mui_material_StepButton = __toESM(_mui_material_StepButton, 1); let _mui_material_StepLabel = require("@mui/material/StepLabel"); _mui_material_StepLabel = __toESM(_mui_material_StepLabel, 1); let _mui_material_Stepper = require("@mui/material/Stepper"); _mui_material_Stepper = __toESM(_mui_material_Stepper, 1); let _mui_material_SvgIcon = require("@mui/material/SvgIcon"); _mui_material_SvgIcon = __toESM(_mui_material_SvgIcon, 1); let _mui_material_Switch = require("@mui/material/Switch"); _mui_material_Switch = __toESM(_mui_material_Switch, 1); let _mui_material_Tab = require("@mui/material/Tab"); _mui_material_Tab = __toESM(_mui_material_Tab, 1); let _mui_material_Table = require("@mui/material/Table"); _mui_material_Table = __toESM(_mui_material_Table, 1); let _mui_material_TableBody = require("@mui/material/TableBody"); _mui_material_TableBody = __toESM(_mui_material_TableBody, 1); let _mui_material_TableCell = require("@mui/material/TableCell"); _mui_material_TableCell = __toESM(_mui_material_TableCell, 1); let _mui_material_TableContainer = require("@mui/material/TableContainer"); _mui_material_TableContainer = __toESM(_mui_material_TableContainer, 1); let _mui_material_TableFooter = require("@mui/material/TableFooter"); _mui_material_TableFooter = __toESM(_mui_material_TableFooter, 1); let _mui_material_TableHead = require("@mui/material/TableHead"); _mui_material_TableHead = __toESM(_mui_material_TableHead, 1); let _mui_material_TablePagination = require("@mui/material/TablePagination"); _mui_material_TablePagination = __toESM(_mui_material_TablePagination, 1); let _mui_material_TableRow = require("@mui/material/TableRow"); _mui_material_TableRow = __toESM(_mui_material_TableRow, 1); let _mui_material_TableSortLabel = require("@mui/material/TableSortLabel"); _mui_material_TableSortLabel = __toESM(_mui_material_TableSortLabel, 1); let _mui_material_TextField = require("@mui/material/TextField"); _mui_material_TextField = __toESM(_mui_material_TextField, 1); let _mui_material_ToggleButton = require("@mui/material/ToggleButton"); _mui_material_ToggleButton = __toESM(_mui_material_ToggleButton, 1); let _mui_material_ToggleButtonGroup = require("@mui/material/ToggleButtonGroup"); _mui_material_ToggleButtonGroup = __toESM(_mui_material_ToggleButtonGroup, 1); let _mui_material_Toolbar = require("@mui/material/Toolbar"); _mui_material_Toolbar = __toESM(_mui_material_Toolbar, 1); let _mui_material_Tooltip = require("@mui/material/Tooltip"); _mui_material_Tooltip = __toESM(_mui_material_Tooltip, 1); let _mui_material_Typography = require("@mui/material/Typography"); _mui_material_Typography = __toESM(_mui_material_Typography, 1); let _mui_material_useMediaQuery = require("@mui/material/useMediaQuery"); _mui_material_useMediaQuery = __toESM(_mui_material_useMediaQuery, 1); let _mui_material_Zoom = require("@mui/material/Zoom"); _mui_material_Zoom = __toESM(_mui_material_Zoom, 1); let _mui_material_Alert = require("@mui/material/Alert"); _mui_material_Alert = __toESM(_mui_material_Alert, 1); let _mui_material_Popper = require("@mui/material/Popper"); _mui_material_Popper = __toESM(_mui_material_Popper, 1); let _mui_material_Unstable_TrapFocus = require("@mui/material/Unstable_TrapFocus"); _mui_material_Unstable_TrapFocus = __toESM(_mui_material_Unstable_TrapFocus, 1); let _mui_material_InputAdornment = require("@mui/material/InputAdornment"); _mui_material_InputAdornment = __toESM(_mui_material_InputAdornment, 1); let _mui_material_utils = require("@mui/material/utils"); let react_dom = require("react-dom"); react_dom = __toESM(react_dom); let _mui_material_ButtonBase = require("@mui/material/ButtonBase"); _mui_material_ButtonBase = __toESM(_mui_material_ButtonBase, 1); let _mui_material_Dialog = require("@mui/material/Dialog"); _mui_material_Dialog = __toESM(_mui_material_Dialog, 1); let _mui_material_MenuList = require("@mui/material/MenuList"); _mui_material_MenuList = __toESM(_mui_material_MenuList, 1); let use_sync_external_store_shim = require("use-sync-external-store/shim"); let use_sync_external_store_shim_with_selector = require("use-sync-external-store/shim/with-selector"); //#region ../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js /** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var require_react_is_production_min = /* @__PURE__ */ __commonJSMin(((exports) => { var b = "function" === typeof Symbol && Symbol.for, c = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119; function z(a) { if ("object" === typeof a && null !== a) { var u = a.$$typeof; switch (u) { case c: switch (a = a.type, a) { case l: case m: case e: case g: case f: case p: return a; default: switch (a = a && a.$$typeof, a) { case k: case n: case t: case r: case h: return a; default: return u; } } case d: return u; } } } function A(a) { return z(a) === m; } exports.AsyncMode = l; exports.ConcurrentMode = m; exports.ContextConsumer = k; exports.ContextProvider = h; exports.Element = c; exports.ForwardRef = n; exports.Fragment = e; exports.Lazy = t; exports.Memo = r; exports.Portal = d; exports.Profiler = g; exports.StrictMode = f; exports.Suspense = p; exports.isAsyncMode = function(a) { return A(a) || z(a) === l; }; exports.isConcurrentMode = A; exports.isContextConsumer = function(a) { return z(a) === k; }; exports.isContextProvider = function(a) { return z(a) === h; }; exports.isElement = function(a) { return "object" === typeof a && null !== a && a.$$typeof === c; }; exports.isForwardRef = function(a) { return z(a) === n; }; exports.isFragment = function(a) { return z(a) === e; }; exports.isLazy = function(a) { return z(a) === t; }; exports.isMemo = function(a) { return z(a) === r; }; exports.isPortal = function(a) { return z(a) === d; }; exports.isProfiler = function(a) { return z(a) === g; }; exports.isStrictMode = function(a) { return z(a) === f; }; exports.isSuspense = function(a) { return z(a) === p; }; exports.isValidElementType = function(a) { return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v); }; exports.typeOf = z; })); //#endregion //#region ../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js /** @license React v16.13.1 * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var require_react_is_development$1 = /* @__PURE__ */ __commonJSMin(((exports) => { if (process.env.NODE_ENV !== "production") (function() { "use strict"; var hasSymbol = typeof Symbol === "function" && Symbol.for; var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103; var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106; var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107; var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108; var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114; var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109; var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110; var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111; var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111; var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112; var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113; var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120; var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115; var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116; var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121; var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117; var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118; var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119; function isValidElementType(type) { return typeof type === "string" || typeof type === "function" || type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE); } function typeOf(object) { if (typeof object === "object" && object !== null) { var $$typeof = object.$$typeof; switch ($$typeof) { case REACT_ELEMENT_TYPE: var type = object.type; switch (type) { case REACT_ASYNC_MODE_TYPE: case REACT_CONCURRENT_MODE_TYPE: case REACT_FRAGMENT_TYPE: case REACT_PROFILER_TYPE: case REACT_STRICT_MODE_TYPE: case REACT_SUSPENSE_TYPE: return type; default: var $$typeofType = type && type.$$typeof; switch ($$typeofType) { case REACT_CONTEXT_TYPE: case REACT_FORWARD_REF_TYPE: case REACT_LAZY_TYPE: case REACT_MEMO_TYPE: case REACT_PROVIDER_TYPE: return $$typeofType; default: return $$typeof; } } case REACT_PORTAL_TYPE: return $$typeof; } } } var AsyncMode = REACT_ASYNC_MODE_TYPE; var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE; var ContextConsumer = REACT_CONTEXT_TYPE; var ContextProvider = REACT_PROVIDER_TYPE; var Element = REACT_ELEMENT_TYPE; var ForwardRef = REACT_FORWARD_REF_TYPE; var Fragment = REACT_FRAGMENT_TYPE; var Lazy = REACT_LAZY_TYPE; var Memo = REACT_MEMO_TYPE; var Portal = REACT_PORTAL_TYPE; var Profiler = REACT_PROFILER_TYPE; var StrictMode = REACT_STRICT_MODE_TYPE; var Suspense = REACT_SUSPENSE_TYPE; var hasWarnedAboutDeprecatedIsAsyncMode = false; function isAsyncMode(object) { if (!hasWarnedAboutDeprecatedIsAsyncMode) { hasWarnedAboutDeprecatedIsAsyncMode = true; 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."); } return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE; } function isConcurrentMode(object) { return typeOf(object) === REACT_CONCURRENT_MODE_TYPE; } function isContextConsumer(object) { return typeOf(object) === REACT_CONTEXT_TYPE; } function isContextProvider(object) { return typeOf(object) === REACT_PROVIDER_TYPE; } function isElement(object) { return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; } function isForwardRef(object) { return typeOf(object) === REACT_FORWARD_REF_TYPE; } function isFragment(object) { return typeOf(object) === REACT_FRAGMENT_TYPE; } function isLazy(object) { return typeOf(object) === REACT_LAZY_TYPE; } function isMemo(object) { return typeOf(object) === REACT_MEMO_TYPE; } function isPortal(object) { return typeOf(object) === REACT_PORTAL_TYPE; } function isProfiler(object) { return typeOf(object) === REACT_PROFILER_TYPE; } function isStrictMode(object) { return typeOf(object) === REACT_STRICT_MODE_TYPE; } function isSuspense(object) { return typeOf(object) === REACT_SUSPENSE_TYPE; } exports.AsyncMode = AsyncMode; exports.ConcurrentMode = ConcurrentMode; exports.ContextConsumer = ContextConsumer; exports.ContextProvider = ContextProvider; exports.Element = Element; exports.ForwardRef = ForwardRef; exports.Fragment = Fragment; exports.Lazy = Lazy; exports.Memo = Memo; exports.Portal = Portal; exports.Profiler = Profiler; exports.StrictMode = StrictMode; exports.Suspense = Suspense; exports.isAsyncMode = isAsyncMode; exports.isConcurrentMode = isConcurrentMode; exports.isContextConsumer = isContextConsumer; exports.isContextProvider = isContextProvider; exports.isElement = isElement; exports.isForwardRef = isForwardRef; exports.isFragment = isFragment; exports.isLazy = isLazy; exports.isMemo = isMemo; exports.isPortal = isPortal; exports.isProfiler = isProfiler; exports.isStrictMode = isStrictMode; exports.isSuspense = isSuspense; exports.isValidElementType = isValidElementType; exports.typeOf = typeOf; })(); })); //#endregion //#region ../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js var require_react_is$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => { if (process.env.NODE_ENV === "production") module.exports = require_react_is_production_min(); else module.exports = require_react_is_development$1(); })); //#endregion //#region ../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js /* object-assign (c) Sindre Sorhus @license MIT */ var require_object_assign = /* @__PURE__ */ __commonJSMin(((exports, module) => { var getOwnPropertySymbols = Object.getOwnPropertySymbols; var hasOwnProperty = Object.prototype.hasOwnProperty; var propIsEnumerable = Object.prototype.propertyIsEnumerable; function toObject(val) { if (val === null || val === void 0) throw new TypeError("Object.assign cannot be called with null or undefined"); return Object(val); } function shouldUseNative() { try { if (!Object.assign) return false; var test1 = /* @__PURE__ */ new String("abc"); test1[5] = "de"; if (Object.getOwnPropertyNames(test1)[0] === "5") return false; var test2 = {}; for (var i = 0; i < 10; i++) test2["_" + String.fromCharCode(i)] = i; if (Object.getOwnPropertyNames(test2).map(function(n) { return test2[n]; }).join("") !== "0123456789") return false; var test3 = {}; "abcdefghijklmnopqrst".split("").forEach(function(letter) { test3[letter] = letter; }); if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") return false; return true; } catch (err) { return false; } } module.exports = shouldUseNative() ? Object.assign : function(target, source) { var from; var to = toObject(target); var symbols; for (var s = 1; s < arguments.length; s++) { from = Object(arguments[s]); for (var key in from) if (hasOwnProperty.call(from, key)) to[key] = from[key]; if (getOwnPropertySymbols) { symbols = getOwnPropertySymbols(from); for (var i = 0; i < symbols.length; i++) if (propIsEnumerable.call(from, symbols[i])) to[symbols[i]] = from[symbols[i]]; } } return to; }; })); //#endregion //#region ../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js /** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var require_ReactPropTypesSecret = /* @__PURE__ */ __commonJSMin(((exports, module) => { module.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; })); //#endregion //#region ../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js var require_has = /* @__PURE__ */ __commonJSMin(((exports, module) => { module.exports = Function.call.bind(Object.prototype.hasOwnProperty); })); //#endregion //#region ../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js /** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var require_checkPropTypes = /* @__PURE__ */ __commonJSMin(((exports, module) => { var printWarning = function() {}; if (process.env.NODE_ENV !== "production") { var ReactPropTypesSecret = require_ReactPropTypesSecret(); var loggedTypeFailures = {}; var has = require_has(); printWarning = function(text) { var message = "Warning: " + text; if (typeof console !== "undefined") console.error(message); try { throw new Error(message); } catch (x) {} }; } /** * Assert that the values match with the type specs. * Error messages are memorized and will only be shown once. * * @param {object} typeSpecs Map of name to a ReactPropType * @param {object} values Runtime values that need to be type-checked * @param {string} location e.g. "prop", "context", "child context" * @param {string} componentName Name of the component for error messages. * @param {?Function} getStack Returns the component stack. * @private */ function checkPropTypes(typeSpecs, values, location, componentName, getStack) { if (process.env.NODE_ENV !== "production") { for (var typeSpecName in typeSpecs) if (has(typeSpecs, typeSpecName)) { var error; try { if (typeof typeSpecs[typeSpecName] !== "function") { var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); err.name = "Invariant Violation"; throw err; } error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); } catch (ex) { error = ex; } if (error && !(error instanceof Error)) printWarning((componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."); if (error instanceof Error && !(error.message in loggedTypeFailures)) { loggedTypeFailures[error.message] = true; var stack = getStack ? getStack() : ""; printWarning("Failed " + location + " type: " + error.message + (stack != null ? stack : "")); } } } } /** * Resets warning cache when testing. * * @private */ checkPropTypes.resetWarningCache = function() { if (process.env.NODE_ENV !== "production") loggedTypeFailures = {}; }; module.exports = checkPropTypes; })); //#endregion //#region ../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js /** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var require_factoryWithTypeCheckers = /* @__PURE__ */ __commonJSMin(((exports, module) => { var ReactIs = require_react_is$1(); var assign = require_object_assign(); var ReactPropTypesSecret = require_ReactPropTypesSecret(); var has = require_has(); var checkPropTypes = require_checkPropTypes(); var printWarning = function() {}; if (process.env.NODE_ENV !== "production") printWarning = function(text) { var message = "Warning: " + text; if (typeof console !== "undefined") console.error(message); try { throw new Error(message); } catch (x) {} }; function emptyFunctionThatReturnsNull() { return null; } module.exports = function(isValidElement, throwOnDirectAccess) { var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator; var FAUX_ITERATOR_SYMBOL = "@@iterator"; /** * Returns the iterator method function contained on the iterable object. * * Be sure to invoke the function with the iterable as context: * * var iteratorFn = getIteratorFn(myIterable); * if (iteratorFn) { * var iterator = iteratorFn.call(myIterable); * ... * } * * @param {?object} maybeIterable * @return {?function} */ function getIteratorFn(maybeIterable) { var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); if (typeof iteratorFn === "function") return iteratorFn; } /** * Collection of methods that allow declaration and validation of props that are * supplied to React components. Example usage: * * var Props = require('ReactPropTypes'); * var MyArticle = React.createClass({ * propTypes: { * // An optional string prop named "description". * description: Props.string, * * // A required enum prop named "category". * category: Props.oneOf(['News','Photos']).isRequired, * * // A prop named "dialog" that requires an instance of Dialog. * dialog: Props.instanceOf(Dialog).isRequired * }, * render: function() { ... } * }); * * A more formal specification of how these methods are used: * * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...) * decl := ReactPropTypes.{type}(.isRequired)? * * Each and every declaration produces a function with the same signature. This * allows the creation of custom validation functions. For example: * * var MyLink = React.createClass({ * propTypes: { * // An optional string or URI prop named "href". * href: function(props, propName, componentName) { * var propValue = props[propName]; * if (propValue != null && typeof propValue !== 'string' && * !(propValue instanceof URI)) { * return new Error( * 'Expected a string or an URI for ' + propName + ' in ' + * componentName * ); * } * } * }, * render: function() {...} * }); * * @internal */ var ANONYMOUS = "<<anonymous>>"; var ReactPropTypes = { array: createPrimitiveTypeChecker("array"), bigint: createPrimitiveTypeChecker("bigint"), bool: createPrimitiveTypeChecker("boolean"), func: createPrimitiveTypeChecker("function"), number: createPrimitiveTypeChecker("number"), object: createPrimitiveTypeChecker("object"), string: createPrimitiveTypeChecker("string"), symbol: createPrimitiveTypeChecker("symbol"), any: createAnyTypeChecker(), arrayOf: createArrayOfTypeChecker, element: createElementTypeChecker(), elementType: createElementTypeTypeChecker(), instanceOf: createInstanceTypeChecker, node: createNodeChecker(), objectOf: createObjectOfTypeChecker, oneOf: createEnumTypeChecker, oneOfType: createUnionTypeChecker, shape: createShapeTypeChecker, exact: createStrictShapeTypeChecker }; /** * inlined Object.is polyfill to avoid requiring consumers ship their own * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is */ function is(x, y) { if (x === y) return x !== 0 || 1 / x === 1 / y; else return x !== x && y !== y; } /** * We use an Error-like object for backward compatibility as people may call * PropTypes directly and inspect their output. However, we don't use real * Errors anymore. We don't inspect their stack anyway, and creating them * is prohibitively expensive if they are created too often, such as what * happens in oneOfType() for any type before the one that matched. */ function PropTypeError(message, data) { this.message = message; this.data = data && typeof data === "object" ? data : {}; this.stack = ""; } PropTypeError.prototype = Error.prototype; function createChainableTypeChecker(validate) { if (process.env.NODE_ENV !== "production") { var manualPropTypeCallCache = {}; var manualPropTypeWarningCount = 0; } function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { componentName = componentName || ANONYMOUS; propFullName = propFullName || propName; if (secret !== ReactPropTypesSecret) { if (throwOnDirectAccess) { var err = /* @__PURE__ */ new Error("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"); err.name = "Invariant Violation"; throw err; } else if (process.env.NODE_ENV !== "production" && typeof console !== "undefined") { var cacheKey = componentName + ":" + propName; if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) { printWarning("You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. 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."); manualPropTypeCallCache[cacheKey] = true; manualPropTypeWarningCount++; } } } if (props[propName] == null) { if (isRequired) { if (props[propName] === null) return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`.")); return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`.")); } return null; } else return validate(props, propName, componentName, location, propFullName); } var chainedCheckType = checkType.bind(null, false); chainedCheckType.isRequired = checkType.bind(null, true); return chainedCheckType; } function createPrimitiveTypeChecker(expectedType) { function validate(props, propName, componentName, location, propFullName, secret) { var propValue = props[propName]; if (getPropType(propValue) !== expectedType) { var preciseType = getPreciseType(propValue); return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."), { expectedType }); } return null; } return createChainableTypeChecker(validate); } function createAnyTypeChecker() { return createChainableTypeChecker(emptyFunctionThatReturnsNull); } function createArrayOfTypeChecker(typeChecker) { function validate(props, propName, componentName, location, propFullName) { if (typeof typeChecker !== "function") return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf."); var propValue = props[propName]; if (!Array.isArray(propValue)) { var propType = getPropType(propValue); return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array.")); } for (var i = 0; i < propValue.length; i++) { var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret); if (error instanceof Error) return error; } return null; } return createChainableTypeChecker(validate); } function createElementTypeChecker() { function validate(props, propName, componentName, location, propFullName) { var propValue = props[propName]; if (!isValidElement(propValue)) { var propType = getPropType(propValue); return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement.")); } return null; } return createChainableTypeChecker(validate); } function createElementTypeTypeChecker() { function validate(props, propName, componentName, location, propFullName) { var propValue = props[propName]; if (!ReactIs.isValidElementType(propValue)) { var propType = getPropType(propValue); return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type.")); } return null; } return createChainableTypeChecker(validate); } function createInstanceTypeChecker(expectedClass) { function validate(props, propName, componentName, location, propFullName) { if (!(props[propName] instanceof expectedClass)) { var expectedClassName = expectedClass.name || ANONYMOUS; var actualClassName = getClassName(props[propName]); return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`.")); } return null; } return createChainableTypeChecker(validate); } function createEnumTypeChecker(expectedValues) { if (!Array.isArray(expectedValues)) { if (process.env.NODE_ENV !== "production") if (arguments.length > 1) printWarning("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])."); else printWarning("Invalid argument supplied to oneOf, expected an array."); return emptyFunctionThatReturnsNull; } function validate(props, propName, componentName, location, propFullName) { var propValue = props[propName]; for (var i = 0; i < expectedValues.length; i++) if (is(propValue, expectedValues[i])) return null; var valuesString = JSON.stringify(expectedValues, function replacer(key, value) { if (getPreciseType(value) === "symbol") return String(value); return value; }); return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + ".")); } return createChainableTypeChecker(validate); } function createObjectOfTypeChecker(typeChecker) { function validate(props, propName, componentName, location, propFullName) { if (typeof typeChecker !== "function") return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf."); var propValue = props[propName]; var propType = getPropType(propValue); if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object.")); for (var key in propValue) if (has(propValue, key)) { var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret); if (error instanceof Error) return error; } return null; } return createChainableTypeChecker(validate); } function createUnionTypeChecker(arrayOfTypeCheckers) { if (!Array.isArray(arrayOfTypeCheckers)) { process.env.NODE_ENV !== "production" && printWarning("Invalid argument supplied to oneOfType, expected an instance of array."); return emptyFunctionThatReturnsNull; } for (var i = 0; i < arrayOfTypeCheckers.length; i++) { var checker = arrayOfTypeCheckers[i]; if (typeof checker !== "function") { printWarning("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."); return emptyFunctionThatReturnsNull; } } function validate(props, propName, componentName, location, propFullName) { var expectedTypes = []; for (var i = 0; i < arrayOfTypeCheckers.length; i++) { var checker = arrayOfTypeCheckers[i]; var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret); if (checkerResult == null) return null; if (checkerResult.data && has(checkerResult.data, "expectedType")) expectedTypes.push(checkerResult.data.expectedType); } var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : ""; return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + ".")); } return createChainableTypeChecker(validate); } function createNodeChecker() { function validate(props, propName, componentName, location, propFullName) { if (!isNode(props[propName])) return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode.")); return null; } return createChainableTypeChecker(validate); } function invalidValidatorError(componentName, location, propFullName, key, type) { return new PropTypeError((componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`."); } function createShapeTypeChecker(shapeTypes) { function validate(props, propName, componentName, location, propFullName) { var propValue = props[propName]; var propType = getPropType(propValue); if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`.")); for (var key in shapeTypes) { var checker = shapeTypes[key]; if (typeof checker !== "function") return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret); if (error) return error; } return null; } return createChainableTypeChecker(validate); } function createStrictShapeTypeChecker(shapeTypes) { function validate(props, propName, componentName, location, propFullName) { var propValue = props[propName]; var propType = getPropType(propValue); if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`.")); for (var key in assign({}, props[propName], shapeTypes)) { var checker = shapeTypes[key]; if (has(shapeTypes, key) && typeof checker !== "function") return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); if (!checker) return new PropTypeError("Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " ")); var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret); if (error) return error; } return null; } return createChainableTypeChecker(validate); } function isNode(propValue) { switch (typeof propValue) { case "number": case "string": case "undefined": return true; case "boolean": return !propValue; case "object": if (Array.isArray(propValue)) return propValue.every(isNode); if (propValue === null || isValidElement(propValue)) return true; var iteratorFn = getIteratorFn(propValue); if (iteratorFn) { var iterator = iteratorFn.call(propValue); var step; if (iteratorFn !== propValue.entries) { while (!(step = iterator.next()).done) if (!isNode(step.value)) return false; } else while (!(step = iterator.next()).done) { var entry = step.value; if (entry) { if (!isNode(entry[1])) return false; } } } else return false; return true; default: return false; } } function isSymbol(propType, propValue) { if (propType === "symbol") return true; if (!propValue) return false; if (propValue["@@toStringTag"] === "Symbol") return true; if (typeof Symbol === "function" && propValue instanceof Symbol) return true; return false; } function getPropType(propValue) { var propType = typeof propValue; if (Array.isArray(propValue)) return "array"; if (propValue instanceof RegExp) return "object"; if (isSymbol(propType, propValue)) return "symbol"; return propType; } function getPreciseType(propValue) { if (typeof propValue === "undefined" || propValue === null) return "" + propValue; var propType = getPropType(propValue); if (propType === "object") { if (propValue instanceof Date) return "date"; else if (propValue instanceof RegExp) return "regexp"; } return propType; } function getPostfixForTypeWarning(value) { var type = getPreciseType(value); switch (type) { case "array": case "object": return "an " + type; case "boolean": case "date": case "regexp": return "a " + type; default: return type; } } function getClassName(propValue) { if (!propValue.constructor || !propValue.constructor.name) return ANONYMOUS; return propValue.constructor.name; } ReactPropTypes.checkPropTypes = checkPropTypes; ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache; ReactPropTypes.PropTypes = ReactPropTypes; return ReactPropTypes; }; })); //#endregion //#region ../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js /** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var require_factoryWithThrowingShims = /* @__PURE__ */ __commonJSMin(((exports, module) => { var ReactPropTypesSecret = require_ReactPropTypesSecret(); function emptyFunction() {} function emptyFunctionWithReset() {} emptyFunctionWithReset.resetWarningCache = emptyFunction; module