@vitessce/description 3.9.2 → 3.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1931 -128
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import React__default, { useContext, useRef, useMemo, createContext, forwardRef, createElement } from "react";
2
+ import React__default, { useContext, forwardRef, useRef, useMemo, createContext, createElement, PureComponent, useEffect } from "react";
3
3
  import { useLoaders, useCoordinationScopes, useCoordination, useDescription, useImageData, useReady, TitleInfo } from "@vitessce/vit-s";
4
4
  import * as ReactDOM from "react-dom";
5
5
  const ViewType = {
@@ -25,6 +25,7 @@ const ViewType = {
25
25
  OBS_SET_COMPOSITION_BAR_PLOT: "obsSetCompositionBarPlot",
26
26
  FEATURE_SET_ENRICHMENT_BAR_PLOT: "featureSetEnrichmentBarPlot",
27
27
  BIOMARKER_SELECT: "biomarkerSelect",
28
+ BIOMARKER_SELECT_ALT: "biomarkerSelectAlt",
28
29
  COMPARATIVE_HEADING: "comparativeHeading",
29
30
  LINK_CONTROLLER: "linkController",
30
31
  NEUROGLANCER: "neuroglancer",
@@ -788,6 +789,17 @@ const COMPONENT_COORDINATION_TYPES = {
788
789
  CoordinationType.OBS_SET_FILTER
789
790
  // TODO: create coordination types for internal state of the biomarker selection view?
790
791
  ],
792
+ [ViewType.BIOMARKER_SELECT_ALT]: [
793
+ CoordinationType.DATASET,
794
+ CoordinationType.OBS_TYPE,
795
+ CoordinationType.SAMPLE_TYPE,
796
+ CoordinationType.FEATURE_SELECTION,
797
+ CoordinationType.SAMPLE_SET_SELECTION,
798
+ CoordinationType.SAMPLE_SET_FILTER,
799
+ CoordinationType.OBS_SET_SELECTION,
800
+ CoordinationType.OBS_SET_FILTER
801
+ // TODO: create coordination types for internal state of the biomarker selection view?
802
+ ],
791
803
  [ViewType.COMPARATIVE_HEADING]: [
792
804
  CoordinationType.DATASET,
793
805
  CoordinationType.OBS_TYPE,
@@ -1226,9 +1238,9 @@ function parse$1(value, root2, parent, rule, rules, rulesets, pseudo, points, de
1226
1238
  function ruleset(value, root2, parent, index2, offset2, rules, points, type, props, children, length2) {
1227
1239
  var post = offset2 - 1;
1228
1240
  var rule = offset2 === 0 ? rules : [""];
1229
- var size = sizeof(rule);
1241
+ var size2 = sizeof(rule);
1230
1242
  for (var i = 0, j = 0, k = 0; i < index2; ++i)
1231
- for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
1243
+ for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size2; ++x)
1232
1244
  if (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
1233
1245
  props[k++] = z;
1234
1246
  return node$1(value, root2, parent, offset2 === 0 ? RULESET : type, props, children, length2);
@@ -1281,9 +1293,9 @@ function rulesheet(callback) {
1281
1293
  }
1282
1294
  function memoize$1(fn) {
1283
1295
  var cache = /* @__PURE__ */ Object.create(null);
1284
- return function(arg) {
1285
- if (cache[arg] === void 0) cache[arg] = fn(arg);
1286
- return cache[arg];
1296
+ return function(arg2) {
1297
+ if (cache[arg2] === void 0) cache[arg2] = fn(arg2);
1298
+ return cache[arg2];
1287
1299
  };
1288
1300
  }
1289
1301
  var identifierWithPointTracking = function identifierWithPointTracking2(begin, points, index2) {
@@ -1621,6 +1633,15 @@ var createCache = function createCache2(options) {
1621
1633
  cache.sheet.hydrate(nodesToHydrate);
1622
1634
  return cache;
1623
1635
  };
1636
+ function _extends$2() {
1637
+ return _extends$2 = Object.assign ? Object.assign.bind() : function(n) {
1638
+ for (var e = 1; e < arguments.length; e++) {
1639
+ var t = arguments[e];
1640
+ for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n[r2] = t[r2]);
1641
+ }
1642
+ return n;
1643
+ }, _extends$2.apply(null, arguments);
1644
+ }
1624
1645
  function getDefaultExportFromCjs(x) {
1625
1646
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
1626
1647
  }
@@ -1796,6 +1817,7 @@ function requireReactIs$1() {
1796
1817
  }
1797
1818
  return reactIs$1.exports;
1798
1819
  }
1820
+ var isBrowser$1 = true;
1799
1821
  function getRegisteredStyles(registered, registeredStyles, classNames) {
1800
1822
  var rawClassName = "";
1801
1823
  classNames.split(" ").forEach(function(className) {
@@ -1807,7 +1829,7 @@ function getRegisteredStyles(registered, registeredStyles, classNames) {
1807
1829
  });
1808
1830
  return rawClassName;
1809
1831
  }
1810
- var registerStyles = function registerStyles2(cache, serialized, isStringTag) {
1832
+ var registerStyles = function registerStyles2(cache, serialized, isStringTag2) {
1811
1833
  var className = cache.key + "-" + serialized.name;
1812
1834
  if (
1813
1835
  // we only need to add the styles to the registered cache if the
@@ -1815,13 +1837,17 @@ var registerStyles = function registerStyles2(cache, serialized, isStringTag) {
1815
1837
  // the tree but if it's a string tag, we know it won't
1816
1838
  // so we don't have to add it to registered cache.
1817
1839
  // this improves memory usage since we can avoid storing the whole style string
1818
- cache.registered[className] === void 0
1840
+ (isStringTag2 === false || // we need to always store it if we're in compat mode and
1841
+ // in node since emotion-server relies on whether a style is in
1842
+ // the registered cache to know whether a style is global or not
1843
+ // also, note that this check will be dead code eliminated in the browser
1844
+ isBrowser$1 === false) && cache.registered[className] === void 0
1819
1845
  ) {
1820
1846
  cache.registered[className] = serialized.styles;
1821
1847
  }
1822
1848
  };
1823
- var insertStyles = function insertStyles2(cache, serialized, isStringTag) {
1824
- registerStyles(cache, serialized);
1849
+ var insertStyles = function insertStyles2(cache, serialized, isStringTag2) {
1850
+ registerStyles(cache, serialized, isStringTag2);
1825
1851
  var className = cache.key + "-" + serialized.name;
1826
1852
  if (cache.inserted[serialized.name] === void 0) {
1827
1853
  var current = serialized;
@@ -1981,6 +2007,15 @@ function handleInterpolation(mergedProps, registered, interpolation) {
1981
2007
  }
1982
2008
  return createStringFromObject(mergedProps, registered, interpolation);
1983
2009
  }
2010
+ case "function": {
2011
+ if (mergedProps !== void 0) {
2012
+ var previousCursor = cursor;
2013
+ var result = interpolation(mergedProps);
2014
+ cursor = previousCursor;
2015
+ return handleInterpolation(mergedProps, registered, result);
2016
+ }
2017
+ break;
2018
+ }
1984
2019
  }
1985
2020
  var asString = interpolation;
1986
2021
  if (registered == null) {
@@ -2067,6 +2102,11 @@ function serializeStyles(args, registered, mergedProps) {
2067
2102
  next: cursor
2068
2103
  };
2069
2104
  }
2105
+ var syncFallback = function syncFallback2(create2) {
2106
+ return create2();
2107
+ };
2108
+ var useInsertionEffect = React["useInsertionEffect"] ? React["useInsertionEffect"] : false;
2109
+ var useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect || syncFallback;
2070
2110
  var EmotionCacheContext = /* @__PURE__ */ React.createContext(
2071
2111
  // we're doing this to avoid preconstruct's dead code elimination in this one case
2072
2112
  // because this module is primarily intended for the browser and node
@@ -2082,6 +2122,12 @@ EmotionCacheContext.Provider;
2082
2122
  var __unsafe_useEmotionCache = function useEmotionCache() {
2083
2123
  return useContext(EmotionCacheContext);
2084
2124
  };
2125
+ var withEmotionCache = function withEmotionCache2(func) {
2126
+ return /* @__PURE__ */ forwardRef(function(props, ref) {
2127
+ var cache = useContext(EmotionCacheContext);
2128
+ return func(props, cache, ref);
2129
+ });
2130
+ };
2085
2131
  var ThemeContext = /* @__PURE__ */ React.createContext({});
2086
2132
  const objectFromEntries = !Object.fromEntries ? (entries) => {
2087
2133
  if (!entries || !entries[Symbol.iterator]) {
@@ -2110,24 +2156,24 @@ const classnames = (args) => {
2110
2156
  let i = 0;
2111
2157
  let cls = "";
2112
2158
  for (; i < len; i++) {
2113
- const arg = args[i];
2114
- if (arg == null)
2159
+ const arg2 = args[i];
2160
+ if (arg2 == null)
2115
2161
  continue;
2116
2162
  let toAdd;
2117
- switch (typeof arg) {
2163
+ switch (typeof arg2) {
2118
2164
  case "boolean":
2119
2165
  break;
2120
2166
  case "object": {
2121
- if (Array.isArray(arg)) {
2122
- toAdd = classnames(arg);
2167
+ if (Array.isArray(arg2)) {
2168
+ toAdd = classnames(arg2);
2123
2169
  } else {
2124
- assert(!typeGuard(arg, false));
2125
- if (arg.styles !== void 0 && arg.name !== void 0) {
2170
+ assert(!typeGuard(arg2, false));
2171
+ if (arg2.styles !== void 0 && arg2.name !== void 0) {
2126
2172
  console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component.");
2127
2173
  }
2128
2174
  toAdd = "";
2129
- for (const k in arg) {
2130
- if (arg[k] && k) {
2175
+ for (const k in arg2) {
2176
+ if (arg2[k] && k) {
2131
2177
  toAdd && (toAdd += " ");
2132
2178
  toAdd += k;
2133
2179
  }
@@ -2136,7 +2182,7 @@ const classnames = (args) => {
2136
2182
  break;
2137
2183
  }
2138
2184
  default: {
2139
- toAdd = arg;
2185
+ toAdd = arg2;
2140
2186
  }
2141
2187
  }
2142
2188
  if (toAdd) {
@@ -2157,8 +2203,8 @@ function useGuaranteedMemo(fn, deps) {
2157
2203
  }
2158
2204
  return ref.current.v;
2159
2205
  }
2160
- function matchCSSObject(arg) {
2161
- return arg instanceof Object && !("styles" in arg) && !("length" in arg) && !("__emotion_styles" in arg);
2206
+ function matchCSSObject(arg2) {
2207
+ return arg2 instanceof Object && !("styles" in arg2) && !("length" in arg2) && !("__emotion_styles" in arg2);
2162
2208
  }
2163
2209
  const { createCssAndCx } = /* @__PURE__ */ (() => {
2164
2210
  function merge2(registered, css, className) {
@@ -2173,14 +2219,14 @@ const { createCssAndCx } = /* @__PURE__ */ (() => {
2173
2219
  const { cache } = params;
2174
2220
  const css = (...args) => {
2175
2221
  const serialized = serializeStyles(args, cache.registered);
2176
- insertStyles(cache, serialized);
2222
+ insertStyles(cache, serialized, false);
2177
2223
  const className = `${cache.key}-${serialized.name}`;
2178
2224
  scope: {
2179
- const arg = args[0];
2180
- if (!matchCSSObject(arg)) {
2225
+ const arg2 = args[0];
2226
+ if (!matchCSSObject(arg2)) {
2181
2227
  break scope;
2182
2228
  }
2183
- increaseSpecificityToTakePrecedenceOverMediaQueries.saveClassNameCSSObjectMapping(cache, className, arg);
2229
+ increaseSpecificityToTakePrecedenceOverMediaQueries.saveClassNameCSSObjectMapping(cache, className, arg2);
2184
2230
  }
2185
2231
  return className;
2186
2232
  };
@@ -2793,6 +2839,274 @@ const { tss: tss$1 } = createTss({
2793
2839
  });
2794
2840
  tss$1.create({});
2795
2841
  const THEME_ID = "$$material";
2842
+ var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
2843
+ var isPropValid = /* @__PURE__ */ memoize$1(
2844
+ function(prop) {
2845
+ return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
2846
+ }
2847
+ /* Z+1 */
2848
+ );
2849
+ var testOmitPropsOnStringTag = isPropValid;
2850
+ var testOmitPropsOnComponent = function testOmitPropsOnComponent2(key) {
2851
+ return key !== "theme";
2852
+ };
2853
+ var getDefaultShouldForwardProp = function getDefaultShouldForwardProp2(tag) {
2854
+ return typeof tag === "string" && // 96 is one less than the char code
2855
+ // for "a" so this is checking that
2856
+ // it's a lowercase character
2857
+ tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent;
2858
+ };
2859
+ var composeShouldForwardProps = function composeShouldForwardProps2(tag, options, isReal) {
2860
+ var shouldForwardProp2;
2861
+ if (options) {
2862
+ var optionsShouldForwardProp = options.shouldForwardProp;
2863
+ shouldForwardProp2 = tag.__emotion_forwardProp && optionsShouldForwardProp ? function(propName) {
2864
+ return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName);
2865
+ } : optionsShouldForwardProp;
2866
+ }
2867
+ if (typeof shouldForwardProp2 !== "function" && isReal) {
2868
+ shouldForwardProp2 = tag.__emotion_forwardProp;
2869
+ }
2870
+ return shouldForwardProp2;
2871
+ };
2872
+ var Insertion = function Insertion2(_ref) {
2873
+ var cache = _ref.cache, serialized = _ref.serialized, isStringTag2 = _ref.isStringTag;
2874
+ registerStyles(cache, serialized, isStringTag2);
2875
+ useInsertionEffectAlwaysWithSyncFallback(function() {
2876
+ return insertStyles(cache, serialized, isStringTag2);
2877
+ });
2878
+ return null;
2879
+ };
2880
+ var createStyled$1 = function createStyled(tag, options) {
2881
+ var isReal = tag.__emotion_real === tag;
2882
+ var baseTag = isReal && tag.__emotion_base || tag;
2883
+ var identifierName;
2884
+ var targetClassName;
2885
+ if (options !== void 0) {
2886
+ identifierName = options.label;
2887
+ targetClassName = options.target;
2888
+ }
2889
+ var shouldForwardProp2 = composeShouldForwardProps(tag, options, isReal);
2890
+ var defaultShouldForwardProp = shouldForwardProp2 || getDefaultShouldForwardProp(baseTag);
2891
+ var shouldUseAs = !defaultShouldForwardProp("as");
2892
+ return function() {
2893
+ var args = arguments;
2894
+ var styles = isReal && tag.__emotion_styles !== void 0 ? tag.__emotion_styles.slice(0) : [];
2895
+ if (identifierName !== void 0) {
2896
+ styles.push("label:" + identifierName + ";");
2897
+ }
2898
+ if (args[0] == null || args[0].raw === void 0) {
2899
+ styles.push.apply(styles, args);
2900
+ } else {
2901
+ var templateStringsArr = args[0];
2902
+ styles.push(templateStringsArr[0]);
2903
+ var len = args.length;
2904
+ var i = 1;
2905
+ for (; i < len; i++) {
2906
+ styles.push(args[i], templateStringsArr[i]);
2907
+ }
2908
+ }
2909
+ var Styled = withEmotionCache(function(props, cache, ref) {
2910
+ var FinalTag = shouldUseAs && props.as || baseTag;
2911
+ var className = "";
2912
+ var classInterpolations = [];
2913
+ var mergedProps = props;
2914
+ if (props.theme == null) {
2915
+ mergedProps = {};
2916
+ for (var key in props) {
2917
+ mergedProps[key] = props[key];
2918
+ }
2919
+ mergedProps.theme = React.useContext(ThemeContext);
2920
+ }
2921
+ if (typeof props.className === "string") {
2922
+ className = getRegisteredStyles(cache.registered, classInterpolations, props.className);
2923
+ } else if (props.className != null) {
2924
+ className = props.className + " ";
2925
+ }
2926
+ var serialized = serializeStyles(styles.concat(classInterpolations), cache.registered, mergedProps);
2927
+ className += cache.key + "-" + serialized.name;
2928
+ if (targetClassName !== void 0) {
2929
+ className += " " + targetClassName;
2930
+ }
2931
+ var finalShouldForwardProp = shouldUseAs && shouldForwardProp2 === void 0 ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp;
2932
+ var newProps = {};
2933
+ for (var _key in props) {
2934
+ if (shouldUseAs && _key === "as") continue;
2935
+ if (finalShouldForwardProp(_key)) {
2936
+ newProps[_key] = props[_key];
2937
+ }
2938
+ }
2939
+ newProps.className = className;
2940
+ if (ref) {
2941
+ newProps.ref = ref;
2942
+ }
2943
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Insertion, {
2944
+ cache,
2945
+ serialized,
2946
+ isStringTag: typeof FinalTag === "string"
2947
+ }), /* @__PURE__ */ React.createElement(FinalTag, newProps));
2948
+ });
2949
+ Styled.displayName = identifierName !== void 0 ? identifierName : "Styled(" + (typeof baseTag === "string" ? baseTag : baseTag.displayName || baseTag.name || "Component") + ")";
2950
+ Styled.defaultProps = tag.defaultProps;
2951
+ Styled.__emotion_real = Styled;
2952
+ Styled.__emotion_base = baseTag;
2953
+ Styled.__emotion_styles = styles;
2954
+ Styled.__emotion_forwardProp = shouldForwardProp2;
2955
+ Object.defineProperty(Styled, "toString", {
2956
+ value: function value() {
2957
+ return "." + targetClassName;
2958
+ }
2959
+ });
2960
+ Styled.withComponent = function(nextTag, nextOptions) {
2961
+ var newStyled2 = createStyled(nextTag, _extends$2({}, options, nextOptions, {
2962
+ shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
2963
+ }));
2964
+ return newStyled2.apply(void 0, styles);
2965
+ };
2966
+ return Styled;
2967
+ };
2968
+ };
2969
+ var tags = [
2970
+ "a",
2971
+ "abbr",
2972
+ "address",
2973
+ "area",
2974
+ "article",
2975
+ "aside",
2976
+ "audio",
2977
+ "b",
2978
+ "base",
2979
+ "bdi",
2980
+ "bdo",
2981
+ "big",
2982
+ "blockquote",
2983
+ "body",
2984
+ "br",
2985
+ "button",
2986
+ "canvas",
2987
+ "caption",
2988
+ "cite",
2989
+ "code",
2990
+ "col",
2991
+ "colgroup",
2992
+ "data",
2993
+ "datalist",
2994
+ "dd",
2995
+ "del",
2996
+ "details",
2997
+ "dfn",
2998
+ "dialog",
2999
+ "div",
3000
+ "dl",
3001
+ "dt",
3002
+ "em",
3003
+ "embed",
3004
+ "fieldset",
3005
+ "figcaption",
3006
+ "figure",
3007
+ "footer",
3008
+ "form",
3009
+ "h1",
3010
+ "h2",
3011
+ "h3",
3012
+ "h4",
3013
+ "h5",
3014
+ "h6",
3015
+ "head",
3016
+ "header",
3017
+ "hgroup",
3018
+ "hr",
3019
+ "html",
3020
+ "i",
3021
+ "iframe",
3022
+ "img",
3023
+ "input",
3024
+ "ins",
3025
+ "kbd",
3026
+ "keygen",
3027
+ "label",
3028
+ "legend",
3029
+ "li",
3030
+ "link",
3031
+ "main",
3032
+ "map",
3033
+ "mark",
3034
+ "marquee",
3035
+ "menu",
3036
+ "menuitem",
3037
+ "meta",
3038
+ "meter",
3039
+ "nav",
3040
+ "noscript",
3041
+ "object",
3042
+ "ol",
3043
+ "optgroup",
3044
+ "option",
3045
+ "output",
3046
+ "p",
3047
+ "param",
3048
+ "picture",
3049
+ "pre",
3050
+ "progress",
3051
+ "q",
3052
+ "rp",
3053
+ "rt",
3054
+ "ruby",
3055
+ "s",
3056
+ "samp",
3057
+ "script",
3058
+ "section",
3059
+ "select",
3060
+ "small",
3061
+ "source",
3062
+ "span",
3063
+ "strong",
3064
+ "style",
3065
+ "sub",
3066
+ "summary",
3067
+ "sup",
3068
+ "table",
3069
+ "tbody",
3070
+ "td",
3071
+ "textarea",
3072
+ "tfoot",
3073
+ "th",
3074
+ "thead",
3075
+ "time",
3076
+ "title",
3077
+ "tr",
3078
+ "track",
3079
+ "u",
3080
+ "ul",
3081
+ "var",
3082
+ "video",
3083
+ "wbr",
3084
+ // SVG
3085
+ "circle",
3086
+ "clipPath",
3087
+ "defs",
3088
+ "ellipse",
3089
+ "foreignObject",
3090
+ "g",
3091
+ "image",
3092
+ "line",
3093
+ "linearGradient",
3094
+ "mask",
3095
+ "path",
3096
+ "pattern",
3097
+ "polygon",
3098
+ "polyline",
3099
+ "radialGradient",
3100
+ "rect",
3101
+ "stop",
3102
+ "svg",
3103
+ "text",
3104
+ "tspan"
3105
+ ];
3106
+ var newStyled = createStyled$1.bind(null);
3107
+ tags.forEach(function(tagName) {
3108
+ newStyled[tagName] = newStyled(tagName);
3109
+ });
2796
3110
  var propTypes = { exports: {} };
2797
3111
  /*
2798
3112
  object-assign
@@ -3501,7 +3815,7 @@ function requireReactJsxRuntime_development() {
3501
3815
  }
3502
3816
  return false;
3503
3817
  }
3504
- function getWrappedName(outerType, innerType, wrapperName) {
3818
+ function getWrappedName2(outerType, innerType, wrapperName) {
3505
3819
  var displayName = outerType.displayName;
3506
3820
  if (displayName) {
3507
3821
  return displayName;
@@ -3550,7 +3864,7 @@ function requireReactJsxRuntime_development() {
3550
3864
  var provider = type;
3551
3865
  return getContextName(provider._context) + ".Provider";
3552
3866
  case REACT_FORWARD_REF_TYPE:
3553
- return getWrappedName(type, type.render, "ForwardRef");
3867
+ return getWrappedName2(type, type.render, "ForwardRef");
3554
3868
  case REACT_MEMO_TYPE:
3555
3869
  var outerName = type.displayName || null;
3556
3870
  if (outerName !== null) {
@@ -4302,6 +4616,30 @@ function requireJsxRuntime() {
4302
4616
  return jsxRuntime.exports;
4303
4617
  }
4304
4618
  var jsxRuntimeExports = requireJsxRuntime();
4619
+ function styled$1(tag, options) {
4620
+ const stylesFactory = newStyled(tag, options);
4621
+ {
4622
+ return (...styles) => {
4623
+ const component = typeof tag === "string" ? `"${tag}"` : "component";
4624
+ if (styles.length === 0) {
4625
+ console.error([`MUI: Seems like you called \`styled(${component})()\` without a \`style\` argument.`, 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n"));
4626
+ } else if (styles.some((style2) => style2 === void 0)) {
4627
+ console.error(`MUI: the styled(${component})(...args) API requires all its args to be defined.`);
4628
+ }
4629
+ return stylesFactory(...styles);
4630
+ };
4631
+ }
4632
+ }
4633
+ function internal_mutateStyles(tag, processor) {
4634
+ if (Array.isArray(tag.__emotion_styles)) {
4635
+ tag.__emotion_styles = processor(tag.__emotion_styles);
4636
+ }
4637
+ }
4638
+ const wrapper = [];
4639
+ function internal_serializeStyles(styles) {
4640
+ wrapper[0] = styles;
4641
+ return serializeStyles(wrapper);
4642
+ }
4305
4643
  var reactIs = { exports: {} };
4306
4644
  var reactIs_development = {};
4307
4645
  var hasRequiredReactIs_development;
@@ -4756,11 +5094,11 @@ function style$1(options) {
4756
5094
  }
4757
5095
  function memoize(fn) {
4758
5096
  const cache = {};
4759
- return (arg) => {
4760
- if (cache[arg] === void 0) {
4761
- cache[arg] = fn(arg);
5097
+ return (arg2) => {
5098
+ if (cache[arg2] === void 0) {
5099
+ cache[arg2] = fn(arg2);
4762
5100
  }
4763
- return cache[arg];
5101
+ return cache[arg2];
4764
5102
  };
4765
5103
  }
4766
5104
  const properties = {
@@ -5430,8 +5768,8 @@ function objectsHaveSameKeys(...objects) {
5430
5768
  const union = new Set(allKeys);
5431
5769
  return objects.every((object) => union.size === Object.keys(object).length);
5432
5770
  }
5433
- function callIfFn(maybeFn, arg) {
5434
- return typeof maybeFn === "function" ? maybeFn(arg) : maybeFn;
5771
+ function callIfFn(maybeFn, arg2) {
5772
+ return typeof maybeFn === "function" ? maybeFn(arg2) : maybeFn;
5435
5773
  }
5436
5774
  function unstable_createStyleFunctionSx() {
5437
5775
  function getThemeValue(prop, val, theme, config) {
@@ -5596,17 +5934,67 @@ function createTheme$1(options = {}, ...args) {
5596
5934
  };
5597
5935
  return muiTheme;
5598
5936
  }
5599
- function isObjectEmpty(obj) {
5937
+ function isObjectEmpty$1(obj) {
5600
5938
  return Object.keys(obj).length === 0;
5601
5939
  }
5602
5940
  function useTheme$2(defaultTheme2 = null) {
5603
5941
  const contextTheme = React.useContext(ThemeContext);
5604
- return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme2 : contextTheme;
5942
+ return !contextTheme || isObjectEmpty$1(contextTheme) ? defaultTheme2 : contextTheme;
5605
5943
  }
5606
- const systemDefaultTheme = createTheme$1();
5607
- function useTheme$1(defaultTheme2 = systemDefaultTheme) {
5944
+ const systemDefaultTheme$1 = createTheme$1();
5945
+ function useTheme$1(defaultTheme2 = systemDefaultTheme$1) {
5608
5946
  return useTheme$2(defaultTheme2);
5609
5947
  }
5948
+ const splitProps = (props) => {
5949
+ var _a;
5950
+ const result = {
5951
+ systemProps: {},
5952
+ otherProps: {}
5953
+ };
5954
+ const config = ((_a = props == null ? void 0 : props.theme) == null ? void 0 : _a.unstable_sxConfig) ?? defaultSxConfig;
5955
+ Object.keys(props).forEach((prop) => {
5956
+ if (config[prop]) {
5957
+ result.systemProps[prop] = props[prop];
5958
+ } else {
5959
+ result.otherProps[prop] = props[prop];
5960
+ }
5961
+ });
5962
+ return result;
5963
+ };
5964
+ function extendSxProp$1(props) {
5965
+ const {
5966
+ sx: inSx,
5967
+ ...other
5968
+ } = props;
5969
+ const {
5970
+ systemProps,
5971
+ otherProps
5972
+ } = splitProps(other);
5973
+ let finalSx;
5974
+ if (Array.isArray(inSx)) {
5975
+ finalSx = [systemProps, ...inSx];
5976
+ } else if (typeof inSx === "function") {
5977
+ finalSx = (...args) => {
5978
+ const result = inSx(...args);
5979
+ if (!isPlainObject$1(result)) {
5980
+ return systemProps;
5981
+ }
5982
+ return {
5983
+ ...systemProps,
5984
+ ...result
5985
+ };
5986
+ };
5987
+ } else {
5988
+ finalSx = {
5989
+ ...systemProps,
5990
+ ...inSx
5991
+ };
5992
+ }
5993
+ return {
5994
+ ...otherProps,
5995
+ sx: finalSx
5996
+ };
5997
+ }
5610
5998
  const defaultGenerator = (componentName) => componentName;
5611
5999
  const createClassNameGenerator = () => {
5612
6000
  let generate = defaultGenerator;
@@ -5623,6 +6011,19 @@ const createClassNameGenerator = () => {
5623
6011
  };
5624
6012
  };
5625
6013
  const ClassNameGenerator = createClassNameGenerator();
6014
+ function r(e) {
6015
+ var t, f, n = "";
6016
+ if ("string" == typeof e || "number" == typeof e) n += e;
6017
+ else if ("object" == typeof e) if (Array.isArray(e)) {
6018
+ var o = e.length;
6019
+ for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
6020
+ } else for (f in e) e[f] && (n && (n += " "), n += f);
6021
+ return n;
6022
+ }
6023
+ function clsx() {
6024
+ for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
6025
+ return n;
6026
+ }
5626
6027
  const globalStateClasses = {
5627
6028
  active: "active",
5628
6029
  checked: "checked",
@@ -5641,6 +6042,324 @@ function generateUtilityClass(componentName, slot, globalStatePrefix = "Mui") {
5641
6042
  const globalStateClass = globalStateClasses[slot];
5642
6043
  return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator.generate(componentName)}-${slot}`;
5643
6044
  }
6045
+ function generateUtilityClasses(componentName, slots, globalStatePrefix = "Mui") {
6046
+ const result = {};
6047
+ slots.forEach((slot) => {
6048
+ result[slot] = generateUtilityClass(componentName, slot, globalStatePrefix);
6049
+ });
6050
+ return result;
6051
+ }
6052
+ function getFunctionComponentName(Component, fallback = "") {
6053
+ return Component.displayName || Component.name || fallback;
6054
+ }
6055
+ function getWrappedName(outerType, innerType, wrapperName) {
6056
+ const functionName = getFunctionComponentName(innerType);
6057
+ return outerType.displayName || (functionName !== "" ? `${wrapperName}(${functionName})` : wrapperName);
6058
+ }
6059
+ function getDisplayName(Component) {
6060
+ if (Component == null) {
6061
+ return void 0;
6062
+ }
6063
+ if (typeof Component === "string") {
6064
+ return Component;
6065
+ }
6066
+ if (typeof Component === "function") {
6067
+ return getFunctionComponentName(Component, "Component");
6068
+ }
6069
+ if (typeof Component === "object") {
6070
+ switch (Component.$$typeof) {
6071
+ case reactIsExports.ForwardRef:
6072
+ return getWrappedName(Component, Component.render, "ForwardRef");
6073
+ case reactIsExports.Memo:
6074
+ return getWrappedName(Component, Component.type, "memo");
6075
+ default:
6076
+ return void 0;
6077
+ }
6078
+ }
6079
+ return void 0;
6080
+ }
6081
+ function preprocessStyles(input) {
6082
+ const {
6083
+ variants,
6084
+ ...style2
6085
+ } = input;
6086
+ const result = {
6087
+ variants,
6088
+ style: internal_serializeStyles(style2),
6089
+ isProcessed: true
6090
+ };
6091
+ if (result.style === style2) {
6092
+ return result;
6093
+ }
6094
+ if (variants) {
6095
+ variants.forEach((variant) => {
6096
+ if (typeof variant.style !== "function") {
6097
+ variant.style = internal_serializeStyles(variant.style);
6098
+ }
6099
+ });
6100
+ }
6101
+ return result;
6102
+ }
6103
+ const systemDefaultTheme = createTheme$1();
6104
+ function shouldForwardProp(prop) {
6105
+ return prop !== "ownerState" && prop !== "theme" && prop !== "sx" && prop !== "as";
6106
+ }
6107
+ function defaultOverridesResolver(slot) {
6108
+ if (!slot) {
6109
+ return null;
6110
+ }
6111
+ return (_props, styles) => styles[slot];
6112
+ }
6113
+ function attachTheme(props, themeId, defaultTheme2) {
6114
+ props.theme = isObjectEmpty(props.theme) ? defaultTheme2 : props.theme[themeId] || props.theme;
6115
+ }
6116
+ function processStyle(props, style2) {
6117
+ const resolvedStyle = typeof style2 === "function" ? style2(props) : style2;
6118
+ if (Array.isArray(resolvedStyle)) {
6119
+ return resolvedStyle.flatMap((subStyle) => processStyle(props, subStyle));
6120
+ }
6121
+ if (Array.isArray(resolvedStyle == null ? void 0 : resolvedStyle.variants)) {
6122
+ let rootStyle;
6123
+ if (resolvedStyle.isProcessed) {
6124
+ rootStyle = resolvedStyle.style;
6125
+ } else {
6126
+ const {
6127
+ variants,
6128
+ ...otherStyles
6129
+ } = resolvedStyle;
6130
+ rootStyle = otherStyles;
6131
+ }
6132
+ return processStyleVariants(props, resolvedStyle.variants, [rootStyle]);
6133
+ }
6134
+ if (resolvedStyle == null ? void 0 : resolvedStyle.isProcessed) {
6135
+ return resolvedStyle.style;
6136
+ }
6137
+ return resolvedStyle;
6138
+ }
6139
+ function processStyleVariants(props, variants, results = []) {
6140
+ var _a;
6141
+ let mergedState;
6142
+ variantLoop: for (let i = 0; i < variants.length; i += 1) {
6143
+ const variant = variants[i];
6144
+ if (typeof variant.props === "function") {
6145
+ mergedState ?? (mergedState = {
6146
+ ...props,
6147
+ ...props.ownerState,
6148
+ ownerState: props.ownerState
6149
+ });
6150
+ if (!variant.props(mergedState)) {
6151
+ continue;
6152
+ }
6153
+ } else {
6154
+ for (const key in variant.props) {
6155
+ if (props[key] !== variant.props[key] && ((_a = props.ownerState) == null ? void 0 : _a[key]) !== variant.props[key]) {
6156
+ continue variantLoop;
6157
+ }
6158
+ }
6159
+ }
6160
+ if (typeof variant.style === "function") {
6161
+ mergedState ?? (mergedState = {
6162
+ ...props,
6163
+ ...props.ownerState,
6164
+ ownerState: props.ownerState
6165
+ });
6166
+ results.push(variant.style(mergedState));
6167
+ } else {
6168
+ results.push(variant.style);
6169
+ }
6170
+ }
6171
+ return results;
6172
+ }
6173
+ function createStyled2(input = {}) {
6174
+ const {
6175
+ themeId,
6176
+ defaultTheme: defaultTheme2 = systemDefaultTheme,
6177
+ rootShouldForwardProp: rootShouldForwardProp2 = shouldForwardProp,
6178
+ slotShouldForwardProp: slotShouldForwardProp2 = shouldForwardProp
6179
+ } = input;
6180
+ function styleAttachTheme(props) {
6181
+ attachTheme(props, themeId, defaultTheme2);
6182
+ }
6183
+ const styled2 = (tag, inputOptions = {}) => {
6184
+ internal_mutateStyles(tag, (styles) => styles.filter((style2) => style2 !== styleFunctionSx));
6185
+ const {
6186
+ name: componentName,
6187
+ slot: componentSlot,
6188
+ skipVariantsResolver: inputSkipVariantsResolver,
6189
+ skipSx: inputSkipSx,
6190
+ // TODO v6: remove `lowercaseFirstLetter()` in the next major release
6191
+ // For more details: https://github.com/mui/material-ui/pull/37908
6192
+ overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot)),
6193
+ ...options
6194
+ } = inputOptions;
6195
+ const skipVariantsResolver = inputSkipVariantsResolver !== void 0 ? inputSkipVariantsResolver : (
6196
+ // TODO v6: remove `Root` in the next major release
6197
+ // For more details: https://github.com/mui/material-ui/pull/37908
6198
+ componentSlot && componentSlot !== "Root" && componentSlot !== "root" || false
6199
+ );
6200
+ const skipSx = inputSkipSx || false;
6201
+ let shouldForwardPropOption = shouldForwardProp;
6202
+ if (componentSlot === "Root" || componentSlot === "root") {
6203
+ shouldForwardPropOption = rootShouldForwardProp2;
6204
+ } else if (componentSlot) {
6205
+ shouldForwardPropOption = slotShouldForwardProp2;
6206
+ } else if (isStringTag(tag)) {
6207
+ shouldForwardPropOption = void 0;
6208
+ }
6209
+ const defaultStyledResolver = styled$1(tag, {
6210
+ shouldForwardProp: shouldForwardPropOption,
6211
+ label: generateStyledLabel(componentName, componentSlot),
6212
+ ...options
6213
+ });
6214
+ const transformStyle = (style2) => {
6215
+ if (typeof style2 === "function" && style2.__emotion_real !== style2) {
6216
+ return function styleFunctionProcessor(props) {
6217
+ return processStyle(props, style2);
6218
+ };
6219
+ }
6220
+ if (isPlainObject$1(style2)) {
6221
+ const serialized = preprocessStyles(style2);
6222
+ if (!serialized.variants) {
6223
+ return serialized.style;
6224
+ }
6225
+ return function styleObjectProcessor(props) {
6226
+ return processStyle(props, serialized);
6227
+ };
6228
+ }
6229
+ return style2;
6230
+ };
6231
+ const muiStyledResolver = (...expressionsInput) => {
6232
+ const expressionsHead = [];
6233
+ const expressionsBody = expressionsInput.map(transformStyle);
6234
+ const expressionsTail = [];
6235
+ expressionsHead.push(styleAttachTheme);
6236
+ if (componentName && overridesResolver) {
6237
+ expressionsTail.push(function styleThemeOverrides(props) {
6238
+ var _a, _b;
6239
+ const theme = props.theme;
6240
+ const styleOverrides = (_b = (_a = theme.components) == null ? void 0 : _a[componentName]) == null ? void 0 : _b.styleOverrides;
6241
+ if (!styleOverrides) {
6242
+ return null;
6243
+ }
6244
+ const resolvedStyleOverrides = {};
6245
+ for (const slotKey in styleOverrides) {
6246
+ resolvedStyleOverrides[slotKey] = processStyle(props, styleOverrides[slotKey]);
6247
+ }
6248
+ return overridesResolver(props, resolvedStyleOverrides);
6249
+ });
6250
+ }
6251
+ if (componentName && !skipVariantsResolver) {
6252
+ expressionsTail.push(function styleThemeVariants(props) {
6253
+ var _a, _b;
6254
+ const theme = props.theme;
6255
+ const themeVariants = (_b = (_a = theme == null ? void 0 : theme.components) == null ? void 0 : _a[componentName]) == null ? void 0 : _b.variants;
6256
+ if (!themeVariants) {
6257
+ return null;
6258
+ }
6259
+ return processStyleVariants(props, themeVariants);
6260
+ });
6261
+ }
6262
+ if (!skipSx) {
6263
+ expressionsTail.push(styleFunctionSx);
6264
+ }
6265
+ if (Array.isArray(expressionsBody[0])) {
6266
+ const inputStrings = expressionsBody.shift();
6267
+ const placeholdersHead = new Array(expressionsHead.length).fill("");
6268
+ const placeholdersTail = new Array(expressionsTail.length).fill("");
6269
+ let outputStrings;
6270
+ {
6271
+ outputStrings = [...placeholdersHead, ...inputStrings, ...placeholdersTail];
6272
+ outputStrings.raw = [...placeholdersHead, ...inputStrings.raw, ...placeholdersTail];
6273
+ }
6274
+ expressionsHead.unshift(outputStrings);
6275
+ }
6276
+ const expressions = [...expressionsHead, ...expressionsBody, ...expressionsTail];
6277
+ const Component = defaultStyledResolver(...expressions);
6278
+ if (tag.muiName) {
6279
+ Component.muiName = tag.muiName;
6280
+ }
6281
+ {
6282
+ Component.displayName = generateDisplayName(componentName, componentSlot, tag);
6283
+ }
6284
+ return Component;
6285
+ };
6286
+ if (defaultStyledResolver.withConfig) {
6287
+ muiStyledResolver.withConfig = defaultStyledResolver.withConfig;
6288
+ }
6289
+ return muiStyledResolver;
6290
+ };
6291
+ return styled2;
6292
+ }
6293
+ function generateDisplayName(componentName, componentSlot, tag) {
6294
+ if (componentName) {
6295
+ return `${componentName}${capitalize(componentSlot || "")}`;
6296
+ }
6297
+ return `Styled(${getDisplayName(tag)})`;
6298
+ }
6299
+ function generateStyledLabel(componentName, componentSlot) {
6300
+ let label;
6301
+ {
6302
+ if (componentName) {
6303
+ label = `${componentName}-${lowercaseFirstLetter(componentSlot || "Root")}`;
6304
+ }
6305
+ }
6306
+ return label;
6307
+ }
6308
+ function isObjectEmpty(object) {
6309
+ for (const _ in object) {
6310
+ return false;
6311
+ }
6312
+ return true;
6313
+ }
6314
+ function isStringTag(tag) {
6315
+ return typeof tag === "string" && // 96 is one less than the char code
6316
+ // for "a" so this is checking that
6317
+ // it's a lowercase character
6318
+ tag.charCodeAt(0) > 96;
6319
+ }
6320
+ function lowercaseFirstLetter(string2) {
6321
+ if (!string2) {
6322
+ return string2;
6323
+ }
6324
+ return string2.charAt(0).toLowerCase() + string2.slice(1);
6325
+ }
6326
+ function resolveProps(defaultProps, props) {
6327
+ const output = {
6328
+ ...props
6329
+ };
6330
+ for (const key in defaultProps) {
6331
+ if (Object.prototype.hasOwnProperty.call(defaultProps, key)) {
6332
+ const propName = key;
6333
+ if (propName === "components" || propName === "slots") {
6334
+ output[propName] = {
6335
+ ...defaultProps[propName],
6336
+ ...output[propName]
6337
+ };
6338
+ } else if (propName === "componentsProps" || propName === "slotProps") {
6339
+ const defaultSlotProps = defaultProps[propName];
6340
+ const slotProps = props[propName];
6341
+ if (!slotProps) {
6342
+ output[propName] = defaultSlotProps || {};
6343
+ } else if (!defaultSlotProps) {
6344
+ output[propName] = slotProps;
6345
+ } else {
6346
+ output[propName] = {
6347
+ ...slotProps
6348
+ };
6349
+ for (const slotKey in defaultSlotProps) {
6350
+ if (Object.prototype.hasOwnProperty.call(defaultSlotProps, slotKey)) {
6351
+ const slotPropName = slotKey;
6352
+ output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName]);
6353
+ }
6354
+ }
6355
+ }
6356
+ } else if (output[propName] === void 0) {
6357
+ output[propName] = defaultProps[propName];
6358
+ }
6359
+ }
6360
+ }
6361
+ return output;
6362
+ }
5644
6363
  const useEnhancedEffect$1 = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
5645
6364
  function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {
5646
6365
  return Math.max(min, Math.min(val, max));
@@ -5861,28 +6580,91 @@ function exactProp(propTypes2) {
5861
6580
  }
5862
6581
  };
5863
6582
  }
5864
- function createGetCssVar$1(prefix2 = "") {
5865
- function appendVar(...vars) {
5866
- if (!vars.length) {
5867
- return "";
5868
- }
5869
- const value = vars[0];
5870
- if (typeof value === "string" && !value.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)) {
5871
- return `, var(--${prefix2 ? `${prefix2}-` : ""}${value}${appendVar(...vars.slice(1))})`;
5872
- }
5873
- return `, ${value}`;
5874
- }
5875
- const getCssVar = (field, ...fallbacks) => {
5876
- return `var(--${prefix2 ? `${prefix2}-` : ""}${field}${appendVar(...fallbacks)})`;
5877
- };
5878
- return getCssVar;
5879
- }
5880
- const assignNestedKeys = (obj, keys2, value, arrayKeys = []) => {
5881
- let temp = obj;
5882
- keys2.forEach((k, index2) => {
5883
- if (index2 === keys2.length - 1) {
5884
- if (Array.isArray(temp)) {
5885
- temp[Number(k)] = value;
6583
+ const PropsContext = /* @__PURE__ */ React.createContext(void 0);
6584
+ ({
6585
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
6586
+ // │ These PropTypes are generated from the TypeScript type definitions. │
6587
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
6588
+ // └─────────────────────────────────────────────────────────────────────┘
6589
+ /**
6590
+ * @ignore
6591
+ */
6592
+ children: PropTypes.node,
6593
+ /**
6594
+ * @ignore
6595
+ */
6596
+ value: PropTypes.object
6597
+ });
6598
+ function getThemeProps(params) {
6599
+ const {
6600
+ theme,
6601
+ name: name2,
6602
+ props
6603
+ } = params;
6604
+ if (!theme || !theme.components || !theme.components[name2]) {
6605
+ return props;
6606
+ }
6607
+ const config = theme.components[name2];
6608
+ if (config.defaultProps) {
6609
+ return resolveProps(config.defaultProps, props);
6610
+ }
6611
+ if (!config.styleOverrides && !config.variants) {
6612
+ return resolveProps(config, props);
6613
+ }
6614
+ return props;
6615
+ }
6616
+ function useDefaultProps$1({
6617
+ props,
6618
+ name: name2
6619
+ }) {
6620
+ const ctx = React.useContext(PropsContext);
6621
+ return getThemeProps({
6622
+ props,
6623
+ name: name2,
6624
+ theme: {
6625
+ components: ctx
6626
+ }
6627
+ });
6628
+ }
6629
+ const arg = {
6630
+ theme: void 0
6631
+ };
6632
+ function unstable_memoTheme(styleFn) {
6633
+ let lastValue;
6634
+ let lastTheme;
6635
+ return function styleMemoized(props) {
6636
+ let value = lastValue;
6637
+ if (value === void 0 || props.theme !== lastTheme) {
6638
+ arg.theme = props.theme;
6639
+ value = preprocessStyles(styleFn(arg));
6640
+ lastValue = value;
6641
+ lastTheme = props.theme;
6642
+ }
6643
+ return value;
6644
+ };
6645
+ }
6646
+ function createGetCssVar$1(prefix2 = "") {
6647
+ function appendVar(...vars) {
6648
+ if (!vars.length) {
6649
+ return "";
6650
+ }
6651
+ const value = vars[0];
6652
+ if (typeof value === "string" && !value.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)) {
6653
+ return `, var(--${prefix2 ? `${prefix2}-` : ""}${value}${appendVar(...vars.slice(1))})`;
6654
+ }
6655
+ return `, ${value}`;
6656
+ }
6657
+ const getCssVar = (field, ...fallbacks) => {
6658
+ return `var(--${prefix2 ? `${prefix2}-` : ""}${field}${appendVar(...fallbacks)})`;
6659
+ };
6660
+ return getCssVar;
6661
+ }
6662
+ const assignNestedKeys = (obj, keys2, value, arrayKeys = []) => {
6663
+ let temp = obj;
6664
+ keys2.forEach((k, index2) => {
6665
+ if (index2 === keys2.length - 1) {
6666
+ if (Array.isArray(temp)) {
6667
+ temp[Number(k)] = value;
5886
6668
  } else if (temp && typeof temp === "object") {
5887
6669
  temp[k] = value;
5888
6670
  }
@@ -6129,6 +6911,26 @@ function createGetColorSchemeSelector(selector) {
6129
6911
  return "&";
6130
6912
  };
6131
6913
  }
6914
+ function composeClasses(slots, getUtilityClass, classes = void 0) {
6915
+ const output = {};
6916
+ for (const slotName in slots) {
6917
+ const slot = slots[slotName];
6918
+ let buffer = "";
6919
+ let start = true;
6920
+ for (let i = 0; i < slot.length; i += 1) {
6921
+ const value = slot[i];
6922
+ if (value) {
6923
+ buffer += (start === true ? "" : " ") + getUtilityClass(value);
6924
+ start = false;
6925
+ if (classes && classes[value]) {
6926
+ buffer += " " + classes[value];
6927
+ }
6928
+ }
6929
+ }
6930
+ output[slotName] = buffer;
6931
+ }
6932
+ return output;
6933
+ }
6132
6934
  const common = {
6133
6935
  black: "#000",
6134
6936
  white: "#fff"
@@ -6555,17 +7357,17 @@ function createTypography(palette, typography) {
6555
7357
  }
6556
7358
  }
6557
7359
  const coef = fontSize / 14;
6558
- const pxToRem = pxToRem2 || ((size) => `${size / htmlFontSize * coef}rem`);
6559
- const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => ({
7360
+ const pxToRem = pxToRem2 || ((size2) => `${size2 / htmlFontSize * coef}rem`);
7361
+ const buildVariant = (fontWeight, size2, lineHeight, letterSpacing, casing) => ({
6560
7362
  fontFamily,
6561
7363
  fontWeight,
6562
- fontSize: pxToRem(size),
7364
+ fontSize: pxToRem(size2),
6563
7365
  // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
6564
7366
  lineHeight,
6565
7367
  // The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
6566
7368
  // across font-families can cause issues with the kerning.
6567
7369
  ...fontFamily === defaultFontFamily ? {
6568
- letterSpacing: `${round(letterSpacing / size)}em`
7370
+ letterSpacing: `${round(letterSpacing / size2)}em`
6569
7371
  } : {},
6570
7372
  ...casing,
6571
7373
  ...allVariants
@@ -7356,6 +8158,15 @@ function useTheme() {
7356
8158
  }
7357
8159
  return theme[THEME_ID] || theme;
7358
8160
  }
8161
+ function slotShouldForwardProp(prop) {
8162
+ return prop !== "ownerState" && prop !== "theme" && prop !== "sx" && prop !== "as";
8163
+ }
8164
+ const rootShouldForwardProp = (prop) => slotShouldForwardProp(prop) && prop !== "classes";
8165
+ const styled = createStyled2({
8166
+ themeId: THEME_ID,
8167
+ defaultTheme,
8168
+ rootShouldForwardProp
8169
+ });
7359
8170
  const { makeStyles } = createMakeAndWithStyles({
7360
8171
  useTheme
7361
8172
  });
@@ -7367,6 +8178,27 @@ const { tss } = createTss({
7367
8178
  "usePlugin": useMuiThemeStyleOverridesPlugin
7368
8179
  });
7369
8180
  const useStyles$1 = tss.create({});
8181
+ function internal_createExtendSxProp() {
8182
+ return extendSxProp$1;
8183
+ }
8184
+ const memoTheme = unstable_memoTheme;
8185
+ ({
8186
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
8187
+ // │ These PropTypes are generated from the TypeScript type definitions. │
8188
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
8189
+ // └─────────────────────────────────────────────────────────────────────┘
8190
+ /**
8191
+ * @ignore
8192
+ */
8193
+ children: PropTypes.node,
8194
+ /**
8195
+ * @ignore
8196
+ */
8197
+ value: PropTypes.object.isRequired
8198
+ });
8199
+ function useDefaultProps(params) {
8200
+ return useDefaultProps$1(params);
8201
+ }
7370
8202
  function setRef$1(ref, value) {
7371
8203
  if (typeof ref === "function") {
7372
8204
  ref(value);
@@ -7412,6 +8244,23 @@ function useForkRef$1(...refs) {
7412
8244
  };
7413
8245
  }, refs);
7414
8246
  }
8247
+ function hasCorrectMainProperty(obj) {
8248
+ return typeof obj.main === "string";
8249
+ }
8250
+ function checkSimplePaletteColorValues(obj, additionalPropertiesToCheck = []) {
8251
+ if (!hasCorrectMainProperty(obj)) {
8252
+ return false;
8253
+ }
8254
+ for (const value of additionalPropertiesToCheck) {
8255
+ if (!obj.hasOwnProperty(value) || typeof obj[value] !== "string") {
8256
+ return false;
8257
+ }
8258
+ }
8259
+ return true;
8260
+ }
8261
+ function createSimplePaletteValueFilter(additionalPropertiesToCheck = []) {
8262
+ return ([, value]) => value && checkSimplePaletteColorValues(value, additionalPropertiesToCheck);
8263
+ }
7415
8264
  function HTMLElementType(props, propName, componentName, location, propFullName) {
7416
8265
  const propValue = props[propName];
7417
8266
  const safePropName = propFullName || propName;
@@ -7495,6 +8344,266 @@ Portal.propTypes = {
7495
8344
  {
7496
8345
  Portal["propTypes"] = exactProp(Portal.propTypes);
7497
8346
  }
8347
+ function getTypographyUtilityClass(slot) {
8348
+ return generateUtilityClass("MuiTypography", slot);
8349
+ }
8350
+ generateUtilityClasses("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
8351
+ const v6Colors = {
8352
+ primary: true,
8353
+ secondary: true,
8354
+ error: true,
8355
+ info: true,
8356
+ success: true,
8357
+ warning: true,
8358
+ textPrimary: true,
8359
+ textSecondary: true,
8360
+ textDisabled: true
8361
+ };
8362
+ const extendSxProp = internal_createExtendSxProp();
8363
+ const useUtilityClasses = (ownerState) => {
8364
+ const {
8365
+ align,
8366
+ gutterBottom,
8367
+ noWrap,
8368
+ paragraph: paragraph2,
8369
+ variant,
8370
+ classes
8371
+ } = ownerState;
8372
+ const slots = {
8373
+ root: ["root", variant, ownerState.align !== "inherit" && `align${capitalize(align)}`, gutterBottom && "gutterBottom", noWrap && "noWrap", paragraph2 && "paragraph"]
8374
+ };
8375
+ return composeClasses(slots, getTypographyUtilityClass, classes);
8376
+ };
8377
+ const TypographyRoot = styled("span", {
8378
+ name: "MuiTypography",
8379
+ slot: "Root",
8380
+ overridesResolver: (props, styles) => {
8381
+ const {
8382
+ ownerState
8383
+ } = props;
8384
+ return [styles.root, ownerState.variant && styles[ownerState.variant], ownerState.align !== "inherit" && styles[`align${capitalize(ownerState.align)}`], ownerState.noWrap && styles.noWrap, ownerState.gutterBottom && styles.gutterBottom, ownerState.paragraph && styles.paragraph];
8385
+ }
8386
+ })(memoTheme(({
8387
+ theme
8388
+ }) => {
8389
+ var _a;
8390
+ return {
8391
+ margin: 0,
8392
+ variants: [{
8393
+ props: {
8394
+ variant: "inherit"
8395
+ },
8396
+ style: {
8397
+ // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
8398
+ font: "inherit",
8399
+ lineHeight: "inherit",
8400
+ letterSpacing: "inherit"
8401
+ }
8402
+ }, ...Object.entries(theme.typography).filter(([variant, value]) => variant !== "inherit" && value && typeof value === "object").map(([variant, value]) => ({
8403
+ props: {
8404
+ variant
8405
+ },
8406
+ style: value
8407
+ })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
8408
+ props: {
8409
+ color: color2
8410
+ },
8411
+ style: {
8412
+ color: (theme.vars || theme).palette[color2].main
8413
+ }
8414
+ })), ...Object.entries(((_a = theme.palette) == null ? void 0 : _a.text) || {}).filter(([, value]) => typeof value === "string").map(([color2]) => ({
8415
+ props: {
8416
+ color: `text${capitalize(color2)}`
8417
+ },
8418
+ style: {
8419
+ color: (theme.vars || theme).palette.text[color2]
8420
+ }
8421
+ })), {
8422
+ props: ({
8423
+ ownerState
8424
+ }) => ownerState.align !== "inherit",
8425
+ style: {
8426
+ textAlign: "var(--Typography-textAlign)"
8427
+ }
8428
+ }, {
8429
+ props: ({
8430
+ ownerState
8431
+ }) => ownerState.noWrap,
8432
+ style: {
8433
+ overflow: "hidden",
8434
+ textOverflow: "ellipsis",
8435
+ whiteSpace: "nowrap"
8436
+ }
8437
+ }, {
8438
+ props: ({
8439
+ ownerState
8440
+ }) => ownerState.gutterBottom,
8441
+ style: {
8442
+ marginBottom: "0.35em"
8443
+ }
8444
+ }, {
8445
+ props: ({
8446
+ ownerState
8447
+ }) => ownerState.paragraph,
8448
+ style: {
8449
+ marginBottom: 16
8450
+ }
8451
+ }]
8452
+ };
8453
+ }));
8454
+ const defaultVariantMapping = {
8455
+ h1: "h1",
8456
+ h2: "h2",
8457
+ h3: "h3",
8458
+ h4: "h4",
8459
+ h5: "h5",
8460
+ h6: "h6",
8461
+ subtitle1: "h6",
8462
+ subtitle2: "h6",
8463
+ body1: "p",
8464
+ body2: "p",
8465
+ inherit: "p"
8466
+ };
8467
+ const Typography = /* @__PURE__ */ React.forwardRef(function Typography2(inProps, ref) {
8468
+ const {
8469
+ color: color2,
8470
+ ...themeProps
8471
+ } = useDefaultProps({
8472
+ props: inProps,
8473
+ name: "MuiTypography"
8474
+ });
8475
+ const isSxColor = !v6Colors[color2];
8476
+ const props = extendSxProp({
8477
+ ...themeProps,
8478
+ ...isSxColor && {
8479
+ color: color2
8480
+ }
8481
+ });
8482
+ const {
8483
+ align = "inherit",
8484
+ className,
8485
+ component,
8486
+ gutterBottom = false,
8487
+ noWrap = false,
8488
+ paragraph: paragraph2 = false,
8489
+ variant = "body1",
8490
+ variantMapping = defaultVariantMapping,
8491
+ ...other
8492
+ } = props;
8493
+ const ownerState = {
8494
+ ...props,
8495
+ align,
8496
+ color: color2,
8497
+ className,
8498
+ component,
8499
+ gutterBottom,
8500
+ noWrap,
8501
+ paragraph: paragraph2,
8502
+ variant,
8503
+ variantMapping
8504
+ };
8505
+ const Component = component || (paragraph2 ? "p" : variantMapping[variant] || defaultVariantMapping[variant]) || "span";
8506
+ const classes = useUtilityClasses(ownerState);
8507
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(TypographyRoot, {
8508
+ as: Component,
8509
+ ref,
8510
+ className: clsx(classes.root, className),
8511
+ ...other,
8512
+ ownerState,
8513
+ style: {
8514
+ ...align !== "inherit" && {
8515
+ "--Typography-textAlign": align
8516
+ },
8517
+ ...other.style
8518
+ }
8519
+ });
8520
+ });
8521
+ Typography.propTypes = {
8522
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
8523
+ // │ These PropTypes are generated from the TypeScript type definitions. │
8524
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
8525
+ // └─────────────────────────────────────────────────────────────────────┘
8526
+ /**
8527
+ * Set the text-align on the component.
8528
+ * @default 'inherit'
8529
+ */
8530
+ align: PropTypes.oneOf(["center", "inherit", "justify", "left", "right"]),
8531
+ /**
8532
+ * The content of the component.
8533
+ */
8534
+ children: PropTypes.node,
8535
+ /**
8536
+ * Override or extend the styles applied to the component.
8537
+ */
8538
+ classes: PropTypes.object,
8539
+ /**
8540
+ * @ignore
8541
+ */
8542
+ className: PropTypes.string,
8543
+ /**
8544
+ * The color of the component.
8545
+ * It supports both default and custom theme colors, which can be added as shown in the
8546
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
8547
+ */
8548
+ color: PropTypes.oneOfType([PropTypes.oneOf(["primary", "secondary", "success", "error", "info", "warning", "textPrimary", "textSecondary", "textDisabled"]), PropTypes.string]),
8549
+ /**
8550
+ * The component used for the root node.
8551
+ * Either a string to use a HTML element or a component.
8552
+ */
8553
+ component: PropTypes.elementType,
8554
+ /**
8555
+ * If `true`, the text will have a bottom margin.
8556
+ * @default false
8557
+ */
8558
+ gutterBottom: PropTypes.bool,
8559
+ /**
8560
+ * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
8561
+ *
8562
+ * Note that text overflow can only happen with block or inline-block level elements
8563
+ * (the element needs to have a width in order to overflow).
8564
+ * @default false
8565
+ */
8566
+ noWrap: PropTypes.bool,
8567
+ /**
8568
+ * If `true`, the element will be a paragraph element.
8569
+ * @default false
8570
+ * @deprecated Use the `component` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
8571
+ */
8572
+ paragraph: PropTypes.bool,
8573
+ /**
8574
+ * @ignore
8575
+ */
8576
+ style: PropTypes.object,
8577
+ /**
8578
+ * The system prop that allows defining system overrides as well as additional CSS styles.
8579
+ */
8580
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
8581
+ /**
8582
+ * Applies the theme typography styles.
8583
+ * @default 'body1'
8584
+ */
8585
+ variant: PropTypes.oneOfType([PropTypes.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), PropTypes.string]),
8586
+ /**
8587
+ * The component maps the variant prop to a range of different HTML element types.
8588
+ * For instance, subtitle1 to `<h6>`.
8589
+ * If you wish to change that mapping, you can provide your own.
8590
+ * Alternatively, you can use the `component` prop.
8591
+ * @default {
8592
+ * h1: 'h1',
8593
+ * h2: 'h2',
8594
+ * h3: 'h3',
8595
+ * h4: 'h4',
8596
+ * h5: 'h5',
8597
+ * h6: 'h6',
8598
+ * subtitle1: 'h6',
8599
+ * subtitle2: 'h6',
8600
+ * body1: 'p',
8601
+ * body2: 'p',
8602
+ * inherit: 'p',
8603
+ * }
8604
+ */
8605
+ variantMapping: PropTypes.object
8606
+ };
7498
8607
  /**!
7499
8608
  * @fileOverview Kickass library to create and place poppers near their reference elements.
7500
8609
  * @version 1.16.1
@@ -7733,7 +8842,7 @@ var defineProperty = function(obj, key, value) {
7733
8842
  }
7734
8843
  return obj;
7735
8844
  };
7736
- var _extends = Object.assign || function(target) {
8845
+ var _extends$1 = Object.assign || function(target) {
7737
8846
  for (var i = 1; i < arguments.length; i++) {
7738
8847
  var source = arguments[i];
7739
8848
  for (var key in source) {
@@ -7745,7 +8854,7 @@ var _extends = Object.assign || function(target) {
7745
8854
  return target;
7746
8855
  };
7747
8856
  function getClientRect(offsets) {
7748
- return _extends({}, offsets, {
8857
+ return _extends$1({}, offsets, {
7749
8858
  right: offsets.left + offsets.width,
7750
8859
  bottom: offsets.top + offsets.height
7751
8860
  });
@@ -7929,7 +9038,7 @@ function computeAutoPlacement(placement, refRect, popper, reference, boundariesE
7929
9038
  }
7930
9039
  };
7931
9040
  var sortedAreas = Object.keys(rects).map(function(key) {
7932
- return _extends({
9041
+ return _extends$1({
7933
9042
  key
7934
9043
  }, rects[key], {
7935
9044
  area: getArea(rects[key])
@@ -8237,9 +9346,9 @@ function computeStyle(data, options) {
8237
9346
  var attributes = {
8238
9347
  "x-placement": data.placement
8239
9348
  };
8240
- data.attributes = _extends({}, attributes, data.attributes);
8241
- data.styles = _extends({}, styles, data.styles);
8242
- data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles);
9349
+ data.attributes = _extends$1({}, attributes, data.attributes);
9350
+ data.styles = _extends$1({}, styles, data.styles);
9351
+ data.arrowStyles = _extends$1({}, data.offsets.arrow, data.arrowStyles);
8243
9352
  return data;
8244
9353
  }
8245
9354
  function isModifierRequired(modifiers2, requestingName, requestedName) {
@@ -8374,7 +9483,7 @@ function flip(data, options) {
8374
9483
  variation = getOppositeVariation(variation);
8375
9484
  }
8376
9485
  data.placement = placement + (variation ? "-" + variation : "");
8377
- data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));
9486
+ data.offsets.popper = _extends$1({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));
8378
9487
  data = runModifiers(data.instance.modifiers, data, "flip");
8379
9488
  }
8380
9489
  });
@@ -8417,13 +9526,13 @@ function toValue(str, measurement, popperOffsets, referenceOffsets) {
8417
9526
  var rect = getClientRect(element2);
8418
9527
  return rect[measurement] / 100 * value;
8419
9528
  } else if (unit === "vh" || unit === "vw") {
8420
- var size = void 0;
9529
+ var size2 = void 0;
8421
9530
  if (unit === "vh") {
8422
- size = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
9531
+ size2 = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
8423
9532
  } else {
8424
- size = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
9533
+ size2 = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
8425
9534
  }
8426
- return size / 100 * value;
9535
+ return size2 / 100 * value;
8427
9536
  } else {
8428
9537
  return value;
8429
9538
  }
@@ -8533,7 +9642,7 @@ function preventOverflow(data, options) {
8533
9642
  };
8534
9643
  order2.forEach(function(placement) {
8535
9644
  var side = ["left", "top"].indexOf(placement) !== -1 ? "primary" : "secondary";
8536
- popper = _extends({}, popper, check[side](placement));
9645
+ popper = _extends$1({}, popper, check[side](placement));
8537
9646
  });
8538
9647
  data.offsets.popper = popper;
8539
9648
  return data;
@@ -8551,7 +9660,7 @@ function shift(data) {
8551
9660
  start: defineProperty({}, side, reference[side]),
8552
9661
  end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement])
8553
9662
  };
8554
- data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]);
9663
+ data.offsets.popper = _extends$1({}, popper, shiftOffsets[shiftvariation]);
8555
9664
  }
8556
9665
  return data;
8557
9666
  }
@@ -8954,7 +10063,7 @@ var Popper = function() {
8954
10063
  return requestAnimationFrame(_this.update);
8955
10064
  };
8956
10065
  this.update = debounce(this.update.bind(this));
8957
- this.options = _extends({}, Popper2.Defaults, options);
10066
+ this.options = _extends$1({}, Popper2.Defaults, options);
8958
10067
  this.state = {
8959
10068
  isDestroyed: false,
8960
10069
  isCreated: false,
@@ -8963,11 +10072,11 @@ var Popper = function() {
8963
10072
  this.reference = reference && reference.jquery ? reference[0] : reference;
8964
10073
  this.popper = popper && popper.jquery ? popper[0] : popper;
8965
10074
  this.options.modifiers = {};
8966
- Object.keys(_extends({}, Popper2.Defaults.modifiers, options.modifiers)).forEach(function(name2) {
8967
- _this.options.modifiers[name2] = _extends({}, Popper2.Defaults.modifiers[name2] || {}, options.modifiers ? options.modifiers[name2] : {});
10075
+ Object.keys(_extends$1({}, Popper2.Defaults.modifiers, options.modifiers)).forEach(function(name2) {
10076
+ _this.options.modifiers[name2] = _extends$1({}, Popper2.Defaults.modifiers[name2] || {}, options.modifiers ? options.modifiers[name2] : {});
8968
10077
  });
8969
10078
  this.modifiers = Object.keys(this.options.modifiers).map(function(name2) {
8970
- return _extends({
10079
+ return _extends$1({
8971
10080
  name: name2
8972
10081
  }, _this.options.modifiers[name2]);
8973
10082
  }).sort(function(a, b) {
@@ -9197,6 +10306,700 @@ React.forwardRef((props, ref) => {
9197
10306
  ...style2
9198
10307
  }, children: typeof children === "function" ? children(childProps) : children }) });
9199
10308
  });
10309
+ function _extends() {
10310
+ _extends = Object.assign ? Object.assign.bind() : function(target) {
10311
+ for (var i = 1; i < arguments.length; i++) {
10312
+ var source = arguments[i];
10313
+ for (var key in source) {
10314
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
10315
+ target[key] = source[key];
10316
+ }
10317
+ }
10318
+ }
10319
+ return target;
10320
+ };
10321
+ return _extends.apply(this, arguments);
10322
+ }
10323
+ function _assertThisInitialized(self2) {
10324
+ if (self2 === void 0) {
10325
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
10326
+ }
10327
+ return self2;
10328
+ }
10329
+ function _setPrototypeOf(o, p) {
10330
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
10331
+ o2.__proto__ = p2;
10332
+ return o2;
10333
+ };
10334
+ return _setPrototypeOf(o, p);
10335
+ }
10336
+ function _inheritsLoose(subClass, superClass) {
10337
+ subClass.prototype = Object.create(superClass.prototype);
10338
+ subClass.prototype.constructor = subClass;
10339
+ _setPrototypeOf(subClass, superClass);
10340
+ }
10341
+ var safeIsNaN = Number.isNaN || function ponyfill(value) {
10342
+ return typeof value === "number" && value !== value;
10343
+ };
10344
+ function isEqual(first, second) {
10345
+ if (first === second) {
10346
+ return true;
10347
+ }
10348
+ if (safeIsNaN(first) && safeIsNaN(second)) {
10349
+ return true;
10350
+ }
10351
+ return false;
10352
+ }
10353
+ function areInputsEqual(newInputs, lastInputs) {
10354
+ if (newInputs.length !== lastInputs.length) {
10355
+ return false;
10356
+ }
10357
+ for (var i = 0; i < newInputs.length; i++) {
10358
+ if (!isEqual(newInputs[i], lastInputs[i])) {
10359
+ return false;
10360
+ }
10361
+ }
10362
+ return true;
10363
+ }
10364
+ function memoizeOne(resultFn, isEqual2) {
10365
+ if (isEqual2 === void 0) {
10366
+ isEqual2 = areInputsEqual;
10367
+ }
10368
+ var lastThis;
10369
+ var lastArgs = [];
10370
+ var lastResult;
10371
+ var calledOnce = false;
10372
+ function memoized() {
10373
+ var newArgs = [];
10374
+ for (var _i = 0; _i < arguments.length; _i++) {
10375
+ newArgs[_i] = arguments[_i];
10376
+ }
10377
+ if (calledOnce && lastThis === this && isEqual2(newArgs, lastArgs)) {
10378
+ return lastResult;
10379
+ }
10380
+ lastResult = resultFn.apply(this, newArgs);
10381
+ calledOnce = true;
10382
+ lastThis = this;
10383
+ lastArgs = newArgs;
10384
+ return lastResult;
10385
+ }
10386
+ return memoized;
10387
+ }
10388
+ var hasNativePerformanceNow = typeof performance === "object" && typeof performance.now === "function";
10389
+ var now = hasNativePerformanceNow ? function() {
10390
+ return performance.now();
10391
+ } : function() {
10392
+ return Date.now();
10393
+ };
10394
+ function cancelTimeout(timeoutID) {
10395
+ cancelAnimationFrame(timeoutID.id);
10396
+ }
10397
+ function requestTimeout(callback, delay) {
10398
+ var start = now();
10399
+ function tick() {
10400
+ if (now() - start >= delay) {
10401
+ callback.call(null);
10402
+ } else {
10403
+ timeoutID.id = requestAnimationFrame(tick);
10404
+ }
10405
+ }
10406
+ var timeoutID = {
10407
+ id: requestAnimationFrame(tick)
10408
+ };
10409
+ return timeoutID;
10410
+ }
10411
+ var size = -1;
10412
+ function getScrollbarSize(recalculate) {
10413
+ if (recalculate === void 0) {
10414
+ recalculate = false;
10415
+ }
10416
+ if (size === -1 || recalculate) {
10417
+ var div = document.createElement("div");
10418
+ var style2 = div.style;
10419
+ style2.width = "50px";
10420
+ style2.height = "50px";
10421
+ style2.overflow = "scroll";
10422
+ document.body.appendChild(div);
10423
+ size = div.offsetWidth - div.clientWidth;
10424
+ document.body.removeChild(div);
10425
+ }
10426
+ return size;
10427
+ }
10428
+ var cachedRTLResult = null;
10429
+ function getRTLOffsetType(recalculate) {
10430
+ if (recalculate === void 0) {
10431
+ recalculate = false;
10432
+ }
10433
+ if (cachedRTLResult === null || recalculate) {
10434
+ var outerDiv = document.createElement("div");
10435
+ var outerStyle = outerDiv.style;
10436
+ outerStyle.width = "50px";
10437
+ outerStyle.height = "50px";
10438
+ outerStyle.overflow = "scroll";
10439
+ outerStyle.direction = "rtl";
10440
+ var innerDiv = document.createElement("div");
10441
+ var innerStyle = innerDiv.style;
10442
+ innerStyle.width = "100px";
10443
+ innerStyle.height = "100px";
10444
+ outerDiv.appendChild(innerDiv);
10445
+ document.body.appendChild(outerDiv);
10446
+ if (outerDiv.scrollLeft > 0) {
10447
+ cachedRTLResult = "positive-descending";
10448
+ } else {
10449
+ outerDiv.scrollLeft = 1;
10450
+ if (outerDiv.scrollLeft === 0) {
10451
+ cachedRTLResult = "negative";
10452
+ } else {
10453
+ cachedRTLResult = "positive-ascending";
10454
+ }
10455
+ }
10456
+ document.body.removeChild(outerDiv);
10457
+ return cachedRTLResult;
10458
+ }
10459
+ return cachedRTLResult;
10460
+ }
10461
+ var IS_SCROLLING_DEBOUNCE_INTERVAL$1 = 150;
10462
+ var defaultItemKey$1 = function defaultItemKey3(index2, data) {
10463
+ return index2;
10464
+ };
10465
+ var devWarningsDirection = null;
10466
+ var devWarningsTagName$1 = null;
10467
+ {
10468
+ if (typeof window !== "undefined" && typeof window.WeakSet !== "undefined") {
10469
+ devWarningsDirection = /* @__PURE__ */ new WeakSet();
10470
+ devWarningsTagName$1 = /* @__PURE__ */ new WeakSet();
10471
+ }
10472
+ }
10473
+ function createListComponent(_ref) {
10474
+ var _class;
10475
+ var getItemOffset3 = _ref.getItemOffset, getEstimatedTotalSize4 = _ref.getEstimatedTotalSize, getItemSize3 = _ref.getItemSize, getOffsetForIndexAndAlignment5 = _ref.getOffsetForIndexAndAlignment, getStartIndexForOffset3 = _ref.getStartIndexForOffset, getStopIndexForStartIndex3 = _ref.getStopIndexForStartIndex, initInstanceProps5 = _ref.initInstanceProps, shouldResetStyleCacheOnItemSizeChange = _ref.shouldResetStyleCacheOnItemSizeChange, validateProps5 = _ref.validateProps;
10476
+ return _class = /* @__PURE__ */ function(_PureComponent) {
10477
+ _inheritsLoose(List, _PureComponent);
10478
+ function List(props) {
10479
+ var _this;
10480
+ _this = _PureComponent.call(this, props) || this;
10481
+ _this._instanceProps = initInstanceProps5(_this.props, _assertThisInitialized(_this));
10482
+ _this._outerRef = void 0;
10483
+ _this._resetIsScrollingTimeoutId = null;
10484
+ _this.state = {
10485
+ instance: _assertThisInitialized(_this),
10486
+ isScrolling: false,
10487
+ scrollDirection: "forward",
10488
+ scrollOffset: typeof _this.props.initialScrollOffset === "number" ? _this.props.initialScrollOffset : 0,
10489
+ scrollUpdateWasRequested: false
10490
+ };
10491
+ _this._callOnItemsRendered = void 0;
10492
+ _this._callOnItemsRendered = memoizeOne(function(overscanStartIndex, overscanStopIndex, visibleStartIndex, visibleStopIndex) {
10493
+ return _this.props.onItemsRendered({
10494
+ overscanStartIndex,
10495
+ overscanStopIndex,
10496
+ visibleStartIndex,
10497
+ visibleStopIndex
10498
+ });
10499
+ });
10500
+ _this._callOnScroll = void 0;
10501
+ _this._callOnScroll = memoizeOne(function(scrollDirection, scrollOffset, scrollUpdateWasRequested) {
10502
+ return _this.props.onScroll({
10503
+ scrollDirection,
10504
+ scrollOffset,
10505
+ scrollUpdateWasRequested
10506
+ });
10507
+ });
10508
+ _this._getItemStyle = void 0;
10509
+ _this._getItemStyle = function(index2) {
10510
+ var _this$props = _this.props, direction = _this$props.direction, itemSize = _this$props.itemSize, layout = _this$props.layout;
10511
+ var itemStyleCache = _this._getItemStyleCache(shouldResetStyleCacheOnItemSizeChange && itemSize, shouldResetStyleCacheOnItemSizeChange && layout, shouldResetStyleCacheOnItemSizeChange && direction);
10512
+ var style2;
10513
+ if (itemStyleCache.hasOwnProperty(index2)) {
10514
+ style2 = itemStyleCache[index2];
10515
+ } else {
10516
+ var _offset = getItemOffset3(_this.props, index2, _this._instanceProps);
10517
+ var size2 = getItemSize3(_this.props, index2, _this._instanceProps);
10518
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
10519
+ var isRtl = direction === "rtl";
10520
+ var offsetHorizontal = isHorizontal ? _offset : 0;
10521
+ itemStyleCache[index2] = style2 = {
10522
+ position: "absolute",
10523
+ left: isRtl ? void 0 : offsetHorizontal,
10524
+ right: isRtl ? offsetHorizontal : void 0,
10525
+ top: !isHorizontal ? _offset : 0,
10526
+ height: !isHorizontal ? size2 : "100%",
10527
+ width: isHorizontal ? size2 : "100%"
10528
+ };
10529
+ }
10530
+ return style2;
10531
+ };
10532
+ _this._getItemStyleCache = void 0;
10533
+ _this._getItemStyleCache = memoizeOne(function(_, __, ___) {
10534
+ return {};
10535
+ });
10536
+ _this._onScrollHorizontal = function(event) {
10537
+ var _event$currentTarget = event.currentTarget, clientWidth = _event$currentTarget.clientWidth, scrollLeft = _event$currentTarget.scrollLeft, scrollWidth = _event$currentTarget.scrollWidth;
10538
+ _this.setState(function(prevState) {
10539
+ if (prevState.scrollOffset === scrollLeft) {
10540
+ return null;
10541
+ }
10542
+ var direction = _this.props.direction;
10543
+ var scrollOffset = scrollLeft;
10544
+ if (direction === "rtl") {
10545
+ switch (getRTLOffsetType()) {
10546
+ case "negative":
10547
+ scrollOffset = -scrollLeft;
10548
+ break;
10549
+ case "positive-descending":
10550
+ scrollOffset = scrollWidth - clientWidth - scrollLeft;
10551
+ break;
10552
+ }
10553
+ }
10554
+ scrollOffset = Math.max(0, Math.min(scrollOffset, scrollWidth - clientWidth));
10555
+ return {
10556
+ isScrolling: true,
10557
+ scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
10558
+ scrollOffset,
10559
+ scrollUpdateWasRequested: false
10560
+ };
10561
+ }, _this._resetIsScrollingDebounced);
10562
+ };
10563
+ _this._onScrollVertical = function(event) {
10564
+ var _event$currentTarget2 = event.currentTarget, clientHeight = _event$currentTarget2.clientHeight, scrollHeight = _event$currentTarget2.scrollHeight, scrollTop = _event$currentTarget2.scrollTop;
10565
+ _this.setState(function(prevState) {
10566
+ if (prevState.scrollOffset === scrollTop) {
10567
+ return null;
10568
+ }
10569
+ var scrollOffset = Math.max(0, Math.min(scrollTop, scrollHeight - clientHeight));
10570
+ return {
10571
+ isScrolling: true,
10572
+ scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
10573
+ scrollOffset,
10574
+ scrollUpdateWasRequested: false
10575
+ };
10576
+ }, _this._resetIsScrollingDebounced);
10577
+ };
10578
+ _this._outerRefSetter = function(ref) {
10579
+ var outerRef = _this.props.outerRef;
10580
+ _this._outerRef = ref;
10581
+ if (typeof outerRef === "function") {
10582
+ outerRef(ref);
10583
+ } else if (outerRef != null && typeof outerRef === "object" && outerRef.hasOwnProperty("current")) {
10584
+ outerRef.current = ref;
10585
+ }
10586
+ };
10587
+ _this._resetIsScrollingDebounced = function() {
10588
+ if (_this._resetIsScrollingTimeoutId !== null) {
10589
+ cancelTimeout(_this._resetIsScrollingTimeoutId);
10590
+ }
10591
+ _this._resetIsScrollingTimeoutId = requestTimeout(_this._resetIsScrolling, IS_SCROLLING_DEBOUNCE_INTERVAL$1);
10592
+ };
10593
+ _this._resetIsScrolling = function() {
10594
+ _this._resetIsScrollingTimeoutId = null;
10595
+ _this.setState({
10596
+ isScrolling: false
10597
+ }, function() {
10598
+ _this._getItemStyleCache(-1, null);
10599
+ });
10600
+ };
10601
+ return _this;
10602
+ }
10603
+ List.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {
10604
+ validateSharedProps$1(nextProps, prevState);
10605
+ validateProps5(nextProps);
10606
+ return null;
10607
+ };
10608
+ var _proto = List.prototype;
10609
+ _proto.scrollTo = function scrollTo(scrollOffset) {
10610
+ scrollOffset = Math.max(0, scrollOffset);
10611
+ this.setState(function(prevState) {
10612
+ if (prevState.scrollOffset === scrollOffset) {
10613
+ return null;
10614
+ }
10615
+ return {
10616
+ scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
10617
+ scrollOffset,
10618
+ scrollUpdateWasRequested: true
10619
+ };
10620
+ }, this._resetIsScrollingDebounced);
10621
+ };
10622
+ _proto.scrollToItem = function scrollToItem(index2, align) {
10623
+ if (align === void 0) {
10624
+ align = "auto";
10625
+ }
10626
+ var _this$props2 = this.props, itemCount = _this$props2.itemCount, layout = _this$props2.layout;
10627
+ var scrollOffset = this.state.scrollOffset;
10628
+ index2 = Math.max(0, Math.min(index2, itemCount - 1));
10629
+ var scrollbarSize = 0;
10630
+ if (this._outerRef) {
10631
+ var outerRef = this._outerRef;
10632
+ if (layout === "vertical") {
10633
+ scrollbarSize = outerRef.scrollWidth > outerRef.clientWidth ? getScrollbarSize() : 0;
10634
+ } else {
10635
+ scrollbarSize = outerRef.scrollHeight > outerRef.clientHeight ? getScrollbarSize() : 0;
10636
+ }
10637
+ }
10638
+ this.scrollTo(getOffsetForIndexAndAlignment5(this.props, index2, align, scrollOffset, this._instanceProps, scrollbarSize));
10639
+ };
10640
+ _proto.componentDidMount = function componentDidMount() {
10641
+ var _this$props3 = this.props, direction = _this$props3.direction, initialScrollOffset = _this$props3.initialScrollOffset, layout = _this$props3.layout;
10642
+ if (typeof initialScrollOffset === "number" && this._outerRef != null) {
10643
+ var outerRef = this._outerRef;
10644
+ if (direction === "horizontal" || layout === "horizontal") {
10645
+ outerRef.scrollLeft = initialScrollOffset;
10646
+ } else {
10647
+ outerRef.scrollTop = initialScrollOffset;
10648
+ }
10649
+ }
10650
+ this._callPropsCallbacks();
10651
+ };
10652
+ _proto.componentDidUpdate = function componentDidUpdate() {
10653
+ var _this$props4 = this.props, direction = _this$props4.direction, layout = _this$props4.layout;
10654
+ var _this$state = this.state, scrollOffset = _this$state.scrollOffset, scrollUpdateWasRequested = _this$state.scrollUpdateWasRequested;
10655
+ if (scrollUpdateWasRequested && this._outerRef != null) {
10656
+ var outerRef = this._outerRef;
10657
+ if (direction === "horizontal" || layout === "horizontal") {
10658
+ if (direction === "rtl") {
10659
+ switch (getRTLOffsetType()) {
10660
+ case "negative":
10661
+ outerRef.scrollLeft = -scrollOffset;
10662
+ break;
10663
+ case "positive-ascending":
10664
+ outerRef.scrollLeft = scrollOffset;
10665
+ break;
10666
+ default:
10667
+ var clientWidth = outerRef.clientWidth, scrollWidth = outerRef.scrollWidth;
10668
+ outerRef.scrollLeft = scrollWidth - clientWidth - scrollOffset;
10669
+ break;
10670
+ }
10671
+ } else {
10672
+ outerRef.scrollLeft = scrollOffset;
10673
+ }
10674
+ } else {
10675
+ outerRef.scrollTop = scrollOffset;
10676
+ }
10677
+ }
10678
+ this._callPropsCallbacks();
10679
+ };
10680
+ _proto.componentWillUnmount = function componentWillUnmount() {
10681
+ if (this._resetIsScrollingTimeoutId !== null) {
10682
+ cancelTimeout(this._resetIsScrollingTimeoutId);
10683
+ }
10684
+ };
10685
+ _proto.render = function render() {
10686
+ var _this$props5 = this.props, children = _this$props5.children, className = _this$props5.className, direction = _this$props5.direction, height2 = _this$props5.height, innerRef = _this$props5.innerRef, innerElementType = _this$props5.innerElementType, innerTagName = _this$props5.innerTagName, itemCount = _this$props5.itemCount, itemData = _this$props5.itemData, _this$props5$itemKey = _this$props5.itemKey, itemKey = _this$props5$itemKey === void 0 ? defaultItemKey$1 : _this$props5$itemKey, layout = _this$props5.layout, outerElementType = _this$props5.outerElementType, outerTagName = _this$props5.outerTagName, style2 = _this$props5.style, useIsScrolling = _this$props5.useIsScrolling, width2 = _this$props5.width;
10687
+ var isScrolling = this.state.isScrolling;
10688
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
10689
+ var onScroll = isHorizontal ? this._onScrollHorizontal : this._onScrollVertical;
10690
+ var _this$_getRangeToRend = this._getRangeToRender(), startIndex = _this$_getRangeToRend[0], stopIndex = _this$_getRangeToRend[1];
10691
+ var items = [];
10692
+ if (itemCount > 0) {
10693
+ for (var _index = startIndex; _index <= stopIndex; _index++) {
10694
+ items.push(createElement(children, {
10695
+ data: itemData,
10696
+ key: itemKey(_index, itemData),
10697
+ index: _index,
10698
+ isScrolling: useIsScrolling ? isScrolling : void 0,
10699
+ style: this._getItemStyle(_index)
10700
+ }));
10701
+ }
10702
+ }
10703
+ var estimatedTotalSize = getEstimatedTotalSize4(this.props, this._instanceProps);
10704
+ return createElement(outerElementType || outerTagName || "div", {
10705
+ className,
10706
+ onScroll,
10707
+ ref: this._outerRefSetter,
10708
+ style: _extends({
10709
+ position: "relative",
10710
+ height: height2,
10711
+ width: width2,
10712
+ overflow: "auto",
10713
+ WebkitOverflowScrolling: "touch",
10714
+ willChange: "transform",
10715
+ direction
10716
+ }, style2)
10717
+ }, createElement(innerElementType || innerTagName || "div", {
10718
+ children: items,
10719
+ ref: innerRef,
10720
+ style: {
10721
+ height: isHorizontal ? "100%" : estimatedTotalSize,
10722
+ pointerEvents: isScrolling ? "none" : void 0,
10723
+ width: isHorizontal ? estimatedTotalSize : "100%"
10724
+ }
10725
+ }));
10726
+ };
10727
+ _proto._callPropsCallbacks = function _callPropsCallbacks() {
10728
+ if (typeof this.props.onItemsRendered === "function") {
10729
+ var itemCount = this.props.itemCount;
10730
+ if (itemCount > 0) {
10731
+ var _this$_getRangeToRend2 = this._getRangeToRender(), _overscanStartIndex = _this$_getRangeToRend2[0], _overscanStopIndex = _this$_getRangeToRend2[1], _visibleStartIndex = _this$_getRangeToRend2[2], _visibleStopIndex = _this$_getRangeToRend2[3];
10732
+ this._callOnItemsRendered(_overscanStartIndex, _overscanStopIndex, _visibleStartIndex, _visibleStopIndex);
10733
+ }
10734
+ }
10735
+ if (typeof this.props.onScroll === "function") {
10736
+ var _this$state2 = this.state, _scrollDirection = _this$state2.scrollDirection, _scrollOffset = _this$state2.scrollOffset, _scrollUpdateWasRequested = _this$state2.scrollUpdateWasRequested;
10737
+ this._callOnScroll(_scrollDirection, _scrollOffset, _scrollUpdateWasRequested);
10738
+ }
10739
+ };
10740
+ _proto._getRangeToRender = function _getRangeToRender() {
10741
+ var _this$props6 = this.props, itemCount = _this$props6.itemCount, overscanCount = _this$props6.overscanCount;
10742
+ var _this$state3 = this.state, isScrolling = _this$state3.isScrolling, scrollDirection = _this$state3.scrollDirection, scrollOffset = _this$state3.scrollOffset;
10743
+ if (itemCount === 0) {
10744
+ return [0, 0, 0, 0];
10745
+ }
10746
+ var startIndex = getStartIndexForOffset3(this.props, scrollOffset, this._instanceProps);
10747
+ var stopIndex = getStopIndexForStartIndex3(this.props, startIndex, scrollOffset, this._instanceProps);
10748
+ var overscanBackward = !isScrolling || scrollDirection === "backward" ? Math.max(1, overscanCount) : 1;
10749
+ var overscanForward = !isScrolling || scrollDirection === "forward" ? Math.max(1, overscanCount) : 1;
10750
+ return [Math.max(0, startIndex - overscanBackward), Math.max(0, Math.min(itemCount - 1, stopIndex + overscanForward)), startIndex, stopIndex];
10751
+ };
10752
+ return List;
10753
+ }(PureComponent), _class.defaultProps = {
10754
+ direction: "ltr",
10755
+ itemData: void 0,
10756
+ layout: "vertical",
10757
+ overscanCount: 2,
10758
+ useIsScrolling: false
10759
+ }, _class;
10760
+ }
10761
+ var validateSharedProps$1 = function validateSharedProps3(_ref2, _ref3) {
10762
+ var children = _ref2.children, direction = _ref2.direction, height2 = _ref2.height, layout = _ref2.layout, innerTagName = _ref2.innerTagName, outerTagName = _ref2.outerTagName, width2 = _ref2.width;
10763
+ var instance = _ref3.instance;
10764
+ {
10765
+ if (innerTagName != null || outerTagName != null) {
10766
+ if (devWarningsTagName$1 && !devWarningsTagName$1.has(instance)) {
10767
+ devWarningsTagName$1.add(instance);
10768
+ console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.");
10769
+ }
10770
+ }
10771
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
10772
+ switch (direction) {
10773
+ case "horizontal":
10774
+ case "vertical":
10775
+ if (devWarningsDirection && !devWarningsDirection.has(instance)) {
10776
+ devWarningsDirection.add(instance);
10777
+ console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.');
10778
+ }
10779
+ break;
10780
+ case "ltr":
10781
+ case "rtl":
10782
+ break;
10783
+ default:
10784
+ throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + direction + '" was specified.'));
10785
+ }
10786
+ switch (layout) {
10787
+ case "horizontal":
10788
+ case "vertical":
10789
+ break;
10790
+ default:
10791
+ throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". ' + ('"' + layout + '" was specified.'));
10792
+ }
10793
+ if (children == null) {
10794
+ throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (children === null ? "null" : typeof children) + '" was specified.'));
10795
+ }
10796
+ if (isHorizontal && typeof width2 !== "number") {
10797
+ throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. ' + ('"' + (width2 === null ? "null" : typeof width2) + '" was specified.'));
10798
+ } else if (!isHorizontal && typeof height2 !== "number") {
10799
+ throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. ' + ('"' + (height2 === null ? "null" : typeof height2) + '" was specified.'));
10800
+ }
10801
+ }
10802
+ };
10803
+ var DEFAULT_ESTIMATED_ITEM_SIZE$1 = 50;
10804
+ var getItemMetadata$1 = function getItemMetadata3(props, index2, instanceProps) {
10805
+ var _ref = props, itemSize = _ref.itemSize;
10806
+ var itemMetadataMap = instanceProps.itemMetadataMap, lastMeasuredIndex = instanceProps.lastMeasuredIndex;
10807
+ if (index2 > lastMeasuredIndex) {
10808
+ var offset2 = 0;
10809
+ if (lastMeasuredIndex >= 0) {
10810
+ var itemMetadata = itemMetadataMap[lastMeasuredIndex];
10811
+ offset2 = itemMetadata.offset + itemMetadata.size;
10812
+ }
10813
+ for (var i = lastMeasuredIndex + 1; i <= index2; i++) {
10814
+ var size2 = itemSize(i);
10815
+ itemMetadataMap[i] = {
10816
+ offset: offset2,
10817
+ size: size2
10818
+ };
10819
+ offset2 += size2;
10820
+ }
10821
+ instanceProps.lastMeasuredIndex = index2;
10822
+ }
10823
+ return itemMetadataMap[index2];
10824
+ };
10825
+ var findNearestItem$1 = function findNearestItem3(props, instanceProps, offset2) {
10826
+ var itemMetadataMap = instanceProps.itemMetadataMap, lastMeasuredIndex = instanceProps.lastMeasuredIndex;
10827
+ var lastMeasuredItemOffset = lastMeasuredIndex > 0 ? itemMetadataMap[lastMeasuredIndex].offset : 0;
10828
+ if (lastMeasuredItemOffset >= offset2) {
10829
+ return findNearestItemBinarySearch$1(props, instanceProps, lastMeasuredIndex, 0, offset2);
10830
+ } else {
10831
+ return findNearestItemExponentialSearch$1(props, instanceProps, Math.max(0, lastMeasuredIndex), offset2);
10832
+ }
10833
+ };
10834
+ var findNearestItemBinarySearch$1 = function findNearestItemBinarySearch3(props, instanceProps, high, low, offset2) {
10835
+ while (low <= high) {
10836
+ var middle = low + Math.floor((high - low) / 2);
10837
+ var currentOffset = getItemMetadata$1(props, middle, instanceProps).offset;
10838
+ if (currentOffset === offset2) {
10839
+ return middle;
10840
+ } else if (currentOffset < offset2) {
10841
+ low = middle + 1;
10842
+ } else if (currentOffset > offset2) {
10843
+ high = middle - 1;
10844
+ }
10845
+ }
10846
+ if (low > 0) {
10847
+ return low - 1;
10848
+ } else {
10849
+ return 0;
10850
+ }
10851
+ };
10852
+ var findNearestItemExponentialSearch$1 = function findNearestItemExponentialSearch3(props, instanceProps, index2, offset2) {
10853
+ var itemCount = props.itemCount;
10854
+ var interval = 1;
10855
+ while (index2 < itemCount && getItemMetadata$1(props, index2, instanceProps).offset < offset2) {
10856
+ index2 += interval;
10857
+ interval *= 2;
10858
+ }
10859
+ return findNearestItemBinarySearch$1(props, instanceProps, Math.min(index2, itemCount - 1), Math.floor(index2 / 2), offset2);
10860
+ };
10861
+ var getEstimatedTotalSize = function getEstimatedTotalSize2(_ref2, _ref3) {
10862
+ var itemCount = _ref2.itemCount;
10863
+ var itemMetadataMap = _ref3.itemMetadataMap, estimatedItemSize = _ref3.estimatedItemSize, lastMeasuredIndex = _ref3.lastMeasuredIndex;
10864
+ var totalSizeOfMeasuredItems = 0;
10865
+ if (lastMeasuredIndex >= itemCount) {
10866
+ lastMeasuredIndex = itemCount - 1;
10867
+ }
10868
+ if (lastMeasuredIndex >= 0) {
10869
+ var itemMetadata = itemMetadataMap[lastMeasuredIndex];
10870
+ totalSizeOfMeasuredItems = itemMetadata.offset + itemMetadata.size;
10871
+ }
10872
+ var numUnmeasuredItems = itemCount - lastMeasuredIndex - 1;
10873
+ var totalSizeOfUnmeasuredItems = numUnmeasuredItems * estimatedItemSize;
10874
+ return totalSizeOfMeasuredItems + totalSizeOfUnmeasuredItems;
10875
+ };
10876
+ var VariableSizeList$1 = /* @__PURE__ */ createListComponent({
10877
+ getItemOffset: function getItemOffset(props, index2, instanceProps) {
10878
+ return getItemMetadata$1(props, index2, instanceProps).offset;
10879
+ },
10880
+ getItemSize: function getItemSize(props, index2, instanceProps) {
10881
+ return instanceProps.itemMetadataMap[index2].size;
10882
+ },
10883
+ getEstimatedTotalSize,
10884
+ getOffsetForIndexAndAlignment: function getOffsetForIndexAndAlignment3(props, index2, align, scrollOffset, instanceProps, scrollbarSize) {
10885
+ var direction = props.direction, height2 = props.height, layout = props.layout, width2 = props.width;
10886
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
10887
+ var size2 = isHorizontal ? width2 : height2;
10888
+ var itemMetadata = getItemMetadata$1(props, index2, instanceProps);
10889
+ var estimatedTotalSize = getEstimatedTotalSize(props, instanceProps);
10890
+ var maxOffset = Math.max(0, Math.min(estimatedTotalSize - size2, itemMetadata.offset));
10891
+ var minOffset = Math.max(0, itemMetadata.offset - size2 + itemMetadata.size + scrollbarSize);
10892
+ if (align === "smart") {
10893
+ if (scrollOffset >= minOffset - size2 && scrollOffset <= maxOffset + size2) {
10894
+ align = "auto";
10895
+ } else {
10896
+ align = "center";
10897
+ }
10898
+ }
10899
+ switch (align) {
10900
+ case "start":
10901
+ return maxOffset;
10902
+ case "end":
10903
+ return minOffset;
10904
+ case "center":
10905
+ return Math.round(minOffset + (maxOffset - minOffset) / 2);
10906
+ case "auto":
10907
+ default:
10908
+ if (scrollOffset >= minOffset && scrollOffset <= maxOffset) {
10909
+ return scrollOffset;
10910
+ } else if (scrollOffset < minOffset) {
10911
+ return minOffset;
10912
+ } else {
10913
+ return maxOffset;
10914
+ }
10915
+ }
10916
+ },
10917
+ getStartIndexForOffset: function getStartIndexForOffset(props, offset2, instanceProps) {
10918
+ return findNearestItem$1(props, instanceProps, offset2);
10919
+ },
10920
+ getStopIndexForStartIndex: function getStopIndexForStartIndex(props, startIndex, scrollOffset, instanceProps) {
10921
+ var direction = props.direction, height2 = props.height, itemCount = props.itemCount, layout = props.layout, width2 = props.width;
10922
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
10923
+ var size2 = isHorizontal ? width2 : height2;
10924
+ var itemMetadata = getItemMetadata$1(props, startIndex, instanceProps);
10925
+ var maxOffset = scrollOffset + size2;
10926
+ var offset2 = itemMetadata.offset + itemMetadata.size;
10927
+ var stopIndex = startIndex;
10928
+ while (stopIndex < itemCount - 1 && offset2 < maxOffset) {
10929
+ stopIndex++;
10930
+ offset2 += getItemMetadata$1(props, stopIndex, instanceProps).size;
10931
+ }
10932
+ return stopIndex;
10933
+ },
10934
+ initInstanceProps: function initInstanceProps2(props, instance) {
10935
+ var _ref4 = props, estimatedItemSize = _ref4.estimatedItemSize;
10936
+ var instanceProps = {
10937
+ itemMetadataMap: {},
10938
+ estimatedItemSize: estimatedItemSize || DEFAULT_ESTIMATED_ITEM_SIZE$1,
10939
+ lastMeasuredIndex: -1
10940
+ };
10941
+ instance.resetAfterIndex = function(index2, shouldForceUpdate) {
10942
+ if (shouldForceUpdate === void 0) {
10943
+ shouldForceUpdate = true;
10944
+ }
10945
+ instanceProps.lastMeasuredIndex = Math.min(instanceProps.lastMeasuredIndex, index2 - 1);
10946
+ instance._getItemStyleCache(-1);
10947
+ if (shouldForceUpdate) {
10948
+ instance.forceUpdate();
10949
+ }
10950
+ };
10951
+ return instanceProps;
10952
+ },
10953
+ shouldResetStyleCacheOnItemSizeChange: false,
10954
+ validateProps: function validateProps2(_ref5) {
10955
+ var itemSize = _ref5.itemSize;
10956
+ {
10957
+ if (typeof itemSize !== "function") {
10958
+ throw Error('An invalid "itemSize" prop has been specified. Value should be a function. ' + ('"' + (itemSize === null ? "null" : typeof itemSize) + '" was specified.'));
10959
+ }
10960
+ }
10961
+ }
10962
+ });
10963
+ const VariableSizeList = VariableSizeList$1;
10964
+ const LIST_ROW_HEIGHT = 48;
10965
+ makeStyles()(() => ({
10966
+ searchInput: {
10967
+ lineHeight: "initial",
10968
+ height: "auto !important"
10969
+ }
10970
+ }));
10971
+ const OuterElementContext = React__default.createContext({});
10972
+ const OuterElementType = React__default.forwardRef((props, ref) => {
10973
+ const outerProps = React__default.useContext(OuterElementContext);
10974
+ return jsxRuntimeExports.jsx("div", { ref, ...props, ...outerProps });
10975
+ });
10976
+ function ListRow(props) {
10977
+ const { data, index: index2, style: style2 } = props;
10978
+ const dataSet = data[index2];
10979
+ const inlineStyle = {
10980
+ ...style2,
10981
+ top: style2.top + 8
10982
+ };
10983
+ const [props0, option, getItemLabel] = dataSet;
10984
+ const { key, ...optionProps } = props0;
10985
+ return jsxRuntimeExports.jsx(Typography, { component: "li", ...optionProps, noWrap: true, style: inlineStyle, children: getItemLabel(option) }, key);
10986
+ }
10987
+ function useResetCache(itemCount) {
10988
+ const ref = useRef(null);
10989
+ useEffect(() => {
10990
+ if (ref.current != null) {
10991
+ ref.current.resetAfterIndex(0, true);
10992
+ }
10993
+ }, [itemCount]);
10994
+ return ref;
10995
+ }
10996
+ React__default.forwardRef((props, ref) => {
10997
+ const { children, ...other } = props;
10998
+ const items = children;
10999
+ const itemCount = items.length;
11000
+ const gridRef = useResetCache(itemCount);
11001
+ return jsxRuntimeExports.jsx("div", { ref, children: jsxRuntimeExports.jsx(OuterElementContext.Provider, { value: other, children: jsxRuntimeExports.jsx(VariableSizeList, { height: Math.min(8, itemCount) * LIST_ROW_HEIGHT, itemSize: () => LIST_ROW_HEIGHT, width: "100%", innerElementType: "ul", outerElementType: OuterElementType, overscanCount: 5, ref: gridRef, itemCount, itemData: items, children: ListRow }) }) });
11002
+ });
9200
11003
  function ok$1() {
9201
11004
  }
9202
11005
  function unreachable() {
@@ -11386,7 +13189,7 @@ function normalizeUri(value) {
11386
13189
  }
11387
13190
  function factorySpace(effects, ok2, type, max) {
11388
13191
  const limit = max ? max - 1 : Number.POSITIVE_INFINITY;
11389
- let size = 0;
13192
+ let size2 = 0;
11390
13193
  return start;
11391
13194
  function start(code2) {
11392
13195
  if (markdownSpace(code2)) {
@@ -11396,7 +13199,7 @@ function factorySpace(effects, ok2, type, max) {
11396
13199
  return ok2(code2);
11397
13200
  }
11398
13201
  function prefix2(code2) {
11399
- if (markdownSpace(code2) && size++ < limit) {
13202
+ if (markdownSpace(code2) && size2++ < limit) {
11400
13203
  effects.consume(code2);
11401
13204
  return prefix2;
11402
13205
  }
@@ -11637,14 +13440,14 @@ function initializeDocument(effects) {
11637
13440
  self2.events.length = index2;
11638
13441
  }
11639
13442
  }
11640
- function exitContainers(size) {
13443
+ function exitContainers(size2) {
11641
13444
  let index2 = stack.length;
11642
- while (index2-- > size) {
13445
+ while (index2-- > size2) {
11643
13446
  const entry = stack[index2];
11644
13447
  self2.containerState = entry[1];
11645
13448
  entry[0].exit.call(self2, effects);
11646
13449
  }
11647
- stack.length = size;
13450
+ stack.length = size2;
11648
13451
  }
11649
13452
  function closeFlow() {
11650
13453
  childFlow.write([null]);
@@ -11795,7 +13598,7 @@ const autolink = {
11795
13598
  tokenize: tokenizeAutolink
11796
13599
  };
11797
13600
  function tokenizeAutolink(effects, ok2, nok) {
11798
- let size = 0;
13601
+ let size2 = 0;
11799
13602
  return start;
11800
13603
  function start(code2) {
11801
13604
  effects.enter("autolink");
@@ -11817,7 +13620,7 @@ function tokenizeAutolink(effects, ok2, nok) {
11817
13620
  }
11818
13621
  function schemeOrEmailAtext(code2) {
11819
13622
  if (code2 === 43 || code2 === 45 || code2 === 46 || asciiAlphanumeric(code2)) {
11820
- size = 1;
13623
+ size2 = 1;
11821
13624
  return schemeInsideOrEmailAtext(code2);
11822
13625
  }
11823
13626
  return emailAtext(code2);
@@ -11825,14 +13628,14 @@ function tokenizeAutolink(effects, ok2, nok) {
11825
13628
  function schemeInsideOrEmailAtext(code2) {
11826
13629
  if (code2 === 58) {
11827
13630
  effects.consume(code2);
11828
- size = 0;
13631
+ size2 = 0;
11829
13632
  return urlInside;
11830
13633
  }
11831
- if ((code2 === 43 || code2 === 45 || code2 === 46 || asciiAlphanumeric(code2)) && size++ < 32) {
13634
+ if ((code2 === 43 || code2 === 45 || code2 === 46 || asciiAlphanumeric(code2)) && size2++ < 32) {
11832
13635
  effects.consume(code2);
11833
13636
  return schemeInsideOrEmailAtext;
11834
13637
  }
11835
- size = 0;
13638
+ size2 = 0;
11836
13639
  return emailAtext(code2);
11837
13640
  }
11838
13641
  function urlInside(code2) {
@@ -11867,7 +13670,7 @@ function tokenizeAutolink(effects, ok2, nok) {
11867
13670
  function emailLabel(code2) {
11868
13671
  if (code2 === 46) {
11869
13672
  effects.consume(code2);
11870
- size = 0;
13673
+ size2 = 0;
11871
13674
  return emailAtSignOrDot;
11872
13675
  }
11873
13676
  if (code2 === 62) {
@@ -11881,7 +13684,7 @@ function tokenizeAutolink(effects, ok2, nok) {
11881
13684
  return emailValue(code2);
11882
13685
  }
11883
13686
  function emailValue(code2) {
11884
- if ((code2 === 45 || asciiAlphanumeric(code2)) && size++ < 63) {
13687
+ if ((code2 === 45 || asciiAlphanumeric(code2)) && size2++ < 63) {
11885
13688
  const next2 = code2 === 45 ? emailValue : emailLabel;
11886
13689
  effects.consume(code2);
11887
13690
  return next2;
@@ -11988,7 +13791,7 @@ const characterReference = {
11988
13791
  };
11989
13792
  function tokenizeCharacterReference(effects, ok2, nok) {
11990
13793
  const self2 = this;
11991
- let size = 0;
13794
+ let size2 = 0;
11992
13795
  let max;
11993
13796
  let test;
11994
13797
  return start;
@@ -12027,7 +13830,7 @@ function tokenizeCharacterReference(effects, ok2, nok) {
12027
13830
  return value(code2);
12028
13831
  }
12029
13832
  function value(code2) {
12030
- if (code2 === 59 && size) {
13833
+ if (code2 === 59 && size2) {
12031
13834
  const token2 = effects.exit("characterReferenceValue");
12032
13835
  if (test === asciiAlphanumeric && !decodeNamedCharacterReference(self2.sliceSerialize(token2))) {
12033
13836
  return nok(code2);
@@ -12038,7 +13841,7 @@ function tokenizeCharacterReference(effects, ok2, nok) {
12038
13841
  effects.exit("characterReference");
12039
13842
  return ok2;
12040
13843
  }
12041
- if (test(code2) && size++ < max) {
13844
+ if (test(code2) && size2++ < max) {
12042
13845
  effects.consume(code2);
12043
13846
  return value;
12044
13847
  }
@@ -12170,7 +13973,7 @@ function tokenizeCodeFenced(effects, ok2, nok) {
12170
13973
  return ok2(code2);
12171
13974
  }
12172
13975
  function tokenizeCloseStart(effects2, ok3, nok2) {
12173
- let size = 0;
13976
+ let size2 = 0;
12174
13977
  return startBefore;
12175
13978
  function startBefore(code2) {
12176
13979
  effects2.enter("lineEnding");
@@ -12191,11 +13994,11 @@ function tokenizeCodeFenced(effects, ok2, nok) {
12191
13994
  }
12192
13995
  function sequenceClose(code2) {
12193
13996
  if (code2 === marker) {
12194
- size++;
13997
+ size2++;
12195
13998
  effects2.consume(code2);
12196
13999
  return sequenceClose;
12197
14000
  }
12198
- if (size >= sizeOpen) {
14001
+ if (size2 >= sizeOpen) {
12199
14002
  effects2.exit("codeFencedFenceSequence");
12200
14003
  return markdownSpace(code2) ? factorySpace(effects2, sequenceCloseAfter, "whitespace")(code2) : sequenceCloseAfter(code2);
12201
14004
  }
@@ -12336,7 +14139,7 @@ function previous(code2) {
12336
14139
  }
12337
14140
  function tokenizeCodeText(effects, ok2, nok) {
12338
14141
  let sizeOpen = 0;
12339
- let size;
14142
+ let size2;
12340
14143
  let token2;
12341
14144
  return start;
12342
14145
  function start(code2) {
@@ -12365,7 +14168,7 @@ function tokenizeCodeText(effects, ok2, nok) {
12365
14168
  }
12366
14169
  if (code2 === 96) {
12367
14170
  token2 = effects.enter("codeTextSequence");
12368
- size = 0;
14171
+ size2 = 0;
12369
14172
  return sequenceClose(code2);
12370
14173
  }
12371
14174
  if (markdownLineEnding(code2)) {
@@ -12388,10 +14191,10 @@ function tokenizeCodeText(effects, ok2, nok) {
12388
14191
  function sequenceClose(code2) {
12389
14192
  if (code2 === 96) {
12390
14193
  effects.consume(code2);
12391
- size++;
14194
+ size2++;
12392
14195
  return sequenceClose;
12393
14196
  }
12394
- if (size === sizeOpen) {
14197
+ if (size2 === sizeOpen) {
12395
14198
  effects.exit("codeTextSequence");
12396
14199
  effects.exit("codeText");
12397
14200
  return ok2(code2);
@@ -12894,7 +14697,7 @@ function factoryDestination(effects, ok2, nok, type, literalType, literalMarkerT
12894
14697
  }
12895
14698
  function factoryLabel(effects, ok2, nok, type, markerType, stringType) {
12896
14699
  const self2 = this;
12897
- let size = 0;
14700
+ let size2 = 0;
12898
14701
  let seen;
12899
14702
  return start;
12900
14703
  function start(code2) {
@@ -12906,12 +14709,12 @@ function factoryLabel(effects, ok2, nok, type, markerType, stringType) {
12906
14709
  return atBreak;
12907
14710
  }
12908
14711
  function atBreak(code2) {
12909
- if (size > 999 || code2 === null || code2 === 91 || code2 === 93 && !seen || // To do: remove in the future once we’ve switched from
14712
+ if (size2 > 999 || code2 === null || code2 === 91 || code2 === 93 && !seen || // To do: remove in the future once we’ve switched from
12910
14713
  // `micromark-extension-footnote` to `micromark-extension-gfm-footnote`,
12911
14714
  // which doesn’t need this.
12912
14715
  // Hidden footnotes hook.
12913
14716
  /* c8 ignore next 3 */
12914
- code2 === 94 && !size && "_hiddenFootnoteSupport" in self2.parser.constructs) {
14717
+ code2 === 94 && !size2 && "_hiddenFootnoteSupport" in self2.parser.constructs) {
12915
14718
  return nok(code2);
12916
14719
  }
12917
14720
  if (code2 === 93) {
@@ -12934,7 +14737,7 @@ function factoryLabel(effects, ok2, nok, type, markerType, stringType) {
12934
14737
  return labelInside(code2);
12935
14738
  }
12936
14739
  function labelInside(code2) {
12937
- if (code2 === null || code2 === 91 || code2 === 93 || markdownLineEnding(code2) || size++ > 999) {
14740
+ if (code2 === null || code2 === 91 || code2 === 93 || markdownLineEnding(code2) || size2++ > 999) {
12938
14741
  effects.exit("chunkString");
12939
14742
  return atBreak(code2);
12940
14743
  }
@@ -12945,7 +14748,7 @@ function factoryLabel(effects, ok2, nok, type, markerType, stringType) {
12945
14748
  function labelEscape(code2) {
12946
14749
  if (code2 === 91 || code2 === 92 || code2 === 93) {
12947
14750
  effects.consume(code2);
12948
- size++;
14751
+ size2++;
12949
14752
  return labelInside;
12950
14753
  }
12951
14754
  return labelInside(code2);
@@ -13171,7 +14974,7 @@ function resolveHeadingAtx(events, context) {
13171
14974
  return events;
13172
14975
  }
13173
14976
  function tokenizeHeadingAtx(effects, ok2, nok) {
13174
- let size = 0;
14977
+ let size2 = 0;
13175
14978
  return start;
13176
14979
  function start(code2) {
13177
14980
  effects.enter("atxHeading");
@@ -13182,7 +14985,7 @@ function tokenizeHeadingAtx(effects, ok2, nok) {
13182
14985
  return sequenceOpen(code2);
13183
14986
  }
13184
14987
  function sequenceOpen(code2) {
13185
- if (code2 === 35 && size++ < 6) {
14988
+ if (code2 === 35 && size2++ < 6) {
13186
14989
  effects.consume(code2);
13187
14990
  return sequenceOpen;
13188
14991
  }
@@ -14244,7 +16047,7 @@ const thematicBreak$1 = {
14244
16047
  tokenize: tokenizeThematicBreak
14245
16048
  };
14246
16049
  function tokenizeThematicBreak(effects, ok2, nok) {
14247
- let size = 0;
16050
+ let size2 = 0;
14248
16051
  let marker;
14249
16052
  return start;
14250
16053
  function start(code2) {
@@ -14260,7 +16063,7 @@ function tokenizeThematicBreak(effects, ok2, nok) {
14260
16063
  effects.enter("thematicBreakSequence");
14261
16064
  return sequence(code2);
14262
16065
  }
14263
- if (size >= 3 && (code2 === null || markdownLineEnding(code2))) {
16066
+ if (size2 >= 3 && (code2 === null || markdownLineEnding(code2))) {
14264
16067
  effects.exit("thematicBreak");
14265
16068
  return ok2(code2);
14266
16069
  }
@@ -14269,7 +16072,7 @@ function tokenizeThematicBreak(effects, ok2, nok) {
14269
16072
  function sequence(code2) {
14270
16073
  if (code2 === marker) {
14271
16074
  effects.consume(code2);
14272
- size++;
16075
+ size2++;
14273
16076
  return sequence;
14274
16077
  }
14275
16078
  effects.exit("thematicBreakSequence");
@@ -14296,7 +16099,7 @@ function tokenizeListStart(effects, ok2, nok) {
14296
16099
  const self2 = this;
14297
16100
  const tail = self2.events[self2.events.length - 1];
14298
16101
  let initialSize = tail && tail[1].type === "linePrefix" ? tail[2].sliceSerialize(tail[1], true).length : 0;
14299
- let size = 0;
16102
+ let size2 = 0;
14300
16103
  return start;
14301
16104
  function start(code2) {
14302
16105
  const kind = self2.containerState.type || (code2 === 42 || code2 === 43 || code2 === 45 ? "listUnordered" : "listOrdered");
@@ -14320,11 +16123,11 @@ function tokenizeListStart(effects, ok2, nok) {
14320
16123
  return nok(code2);
14321
16124
  }
14322
16125
  function inside(code2) {
14323
- if (asciiDigit(code2) && ++size < 10) {
16126
+ if (asciiDigit(code2) && ++size2 < 10) {
14324
16127
  effects.consume(code2);
14325
16128
  return inside;
14326
16129
  }
14327
- if ((!self2.interrupt || size < 2) && (self2.containerState.marker ? code2 === self2.containerState.marker : code2 === 41 || code2 === 46)) {
16130
+ if ((!self2.interrupt || size2 < 2) && (self2.containerState.marker ? code2 === self2.containerState.marker : code2 === 41 || code2 === 46)) {
14328
16131
  effects.exit("listItemValue");
14329
16132
  return atMarker(code2);
14330
16133
  }
@@ -14622,34 +16425,34 @@ function resolveAllLineSuffixes(events, context) {
14622
16425
  const chunks = context.sliceStream(data);
14623
16426
  let index2 = chunks.length;
14624
16427
  let bufferIndex = -1;
14625
- let size = 0;
16428
+ let size2 = 0;
14626
16429
  let tabs;
14627
16430
  while (index2--) {
14628
16431
  const chunk = chunks[index2];
14629
16432
  if (typeof chunk === "string") {
14630
16433
  bufferIndex = chunk.length;
14631
16434
  while (chunk.charCodeAt(bufferIndex - 1) === 32) {
14632
- size++;
16435
+ size2++;
14633
16436
  bufferIndex--;
14634
16437
  }
14635
16438
  if (bufferIndex) break;
14636
16439
  bufferIndex = -1;
14637
16440
  } else if (chunk === -2) {
14638
16441
  tabs = true;
14639
- size++;
16442
+ size2++;
14640
16443
  } else if (chunk === -1) ;
14641
16444
  else {
14642
16445
  index2++;
14643
16446
  break;
14644
16447
  }
14645
16448
  }
14646
- if (size) {
16449
+ if (size2) {
14647
16450
  const token2 = {
14648
- type: eventIndex === events.length || tabs || size < 2 ? "lineSuffix" : "hardBreakTrailing",
16451
+ type: eventIndex === events.length || tabs || size2 < 2 ? "lineSuffix" : "hardBreakTrailing",
14649
16452
  start: {
14650
16453
  line: data.end.line,
14651
- column: data.end.column - size,
14652
- offset: data.end.offset - size,
16454
+ column: data.end.column - size2,
16455
+ offset: data.end.offset - size2,
14653
16456
  _index: data.start._index + index2,
14654
16457
  _bufferIndex: index2 ? bufferIndex : data.start._bufferIndex + bufferIndex
14655
16458
  },
@@ -14707,7 +16510,7 @@ function createTokenizer(parser, initialize, from2) {
14707
16510
  parser,
14708
16511
  sliceStream,
14709
16512
  sliceSerialize,
14710
- now,
16513
+ now: now2,
14711
16514
  defineSkip,
14712
16515
  write
14713
16516
  };
@@ -14732,7 +16535,7 @@ function createTokenizer(parser, initialize, from2) {
14732
16535
  function sliceStream(token2) {
14733
16536
  return sliceChunks(chunks, token2);
14734
16537
  }
14735
- function now() {
16538
+ function now2() {
14736
16539
  const { line: line2, column: column2, offset: offset2, _index, _bufferIndex } = point2;
14737
16540
  return {
14738
16541
  line: line2,
@@ -14790,14 +16593,14 @@ function createTokenizer(parser, initialize, from2) {
14790
16593
  function enter(type, fields) {
14791
16594
  const token2 = fields || {};
14792
16595
  token2.type = type;
14793
- token2.start = now();
16596
+ token2.start = now2();
14794
16597
  context.events.push(["enter", token2, context]);
14795
16598
  stack.push(token2);
14796
16599
  return token2;
14797
16600
  }
14798
16601
  function exit2(type) {
14799
16602
  const token2 = stack.pop();
14800
- token2.end = now();
16603
+ token2.end = now2();
14801
16604
  context.events.push(["exit", token2, context]);
14802
16605
  return token2;
14803
16606
  }
@@ -14892,7 +16695,7 @@ function createTokenizer(parser, initialize, from2) {
14892
16695
  }
14893
16696
  }
14894
16697
  function store() {
14895
- const startPoint = now();
16698
+ const startPoint = now2();
14896
16699
  const startPrevious = context.previous;
14897
16700
  const startCurrentConstruct = context.currentConstruct;
14898
16701
  const startEventsIndex = context.events.length;