@schematichq/schematic-components 2.6.1 → 2.6.2

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.
@@ -2540,84 +2540,84 @@ function entitlementCountsReducer(acc, plan) {
2540
2540
 
2541
2541
  // src/utils/color.ts
2542
2542
  function hexToHSL(color) {
2543
- let r2 = 0;
2544
- let g2 = 0;
2545
- let b2 = 0;
2543
+ let r3 = 0;
2544
+ let g3 = 0;
2545
+ let b3 = 0;
2546
2546
  if (color.length == 4) {
2547
- r2 = parseInt("0x" + color[1] + color[1]);
2548
- g2 = parseInt("0x" + color[2] + color[2]);
2549
- b2 = parseInt("0x" + color[3] + color[3]);
2547
+ r3 = parseInt("0x" + color[1] + color[1]);
2548
+ g3 = parseInt("0x" + color[2] + color[2]);
2549
+ b3 = parseInt("0x" + color[3] + color[3]);
2550
2550
  } else if (color.length == 7) {
2551
- r2 = parseInt("0x" + color[1] + color[2]);
2552
- g2 = parseInt("0x" + color[3] + color[4]);
2553
- b2 = parseInt("0x" + color[5] + color[6]);
2554
- }
2555
- r2 /= 255;
2556
- g2 /= 255;
2557
- b2 /= 255;
2558
- const cmin = Math.min(r2, g2, b2);
2559
- const cmax = Math.max(r2, g2, b2);
2551
+ r3 = parseInt("0x" + color[1] + color[2]);
2552
+ g3 = parseInt("0x" + color[3] + color[4]);
2553
+ b3 = parseInt("0x" + color[5] + color[6]);
2554
+ }
2555
+ r3 /= 255;
2556
+ g3 /= 255;
2557
+ b3 /= 255;
2558
+ const cmin = Math.min(r3, g3, b3);
2559
+ const cmax = Math.max(r3, g3, b3);
2560
2560
  const delta = cmax - cmin;
2561
- let h2 = 0;
2561
+ let h3 = 0;
2562
2562
  let s = 0;
2563
- let l2 = 0;
2564
- if (delta == 0) h2 = 0;
2565
- else if (cmax == r2) h2 = (g2 - b2) / delta % 6;
2566
- else if (cmax == g2) h2 = (b2 - r2) / delta + 2;
2567
- else h2 = (r2 - g2) / delta + 4;
2568
- h2 = Math.round(h2 * 60);
2569
- if (h2 < 0) h2 += 360;
2570
- l2 = (cmax + cmin) / 2;
2571
- s = delta == 0 ? 0 : delta / (1 - Math.abs(2 * l2 - 1));
2563
+ let l3 = 0;
2564
+ if (delta == 0) h3 = 0;
2565
+ else if (cmax == r3) h3 = (g3 - b3) / delta % 6;
2566
+ else if (cmax == g3) h3 = (b3 - r3) / delta + 2;
2567
+ else h3 = (r3 - g3) / delta + 4;
2568
+ h3 = Math.round(h3 * 60);
2569
+ if (h3 < 0) h3 += 360;
2570
+ l3 = (cmax + cmin) / 2;
2571
+ s = delta == 0 ? 0 : delta / (1 - Math.abs(2 * l3 - 1));
2572
2572
  s = +(s * 100).toFixed(1);
2573
- l2 = +(l2 * 100).toFixed(1);
2574
- return { h: h2, s, l: l2 };
2573
+ l3 = +(l3 * 100).toFixed(1);
2574
+ return { h: h3, s, l: l3 };
2575
2575
  }
2576
- function hslToHex({ h: h2, s, l: l2 }) {
2576
+ function hslToHex({ h: h3, s, l: l3 }) {
2577
2577
  s /= 100;
2578
- l2 /= 100;
2579
- const c2 = (1 - Math.abs(2 * l2 - 1)) * s;
2580
- const x2 = c2 * (1 - Math.abs(h2 / 60 % 2 - 1));
2581
- const m2 = l2 - c2 / 2;
2582
- let r2 = 0;
2583
- let g2 = 0;
2584
- let b2 = 0;
2585
- if (0 <= h2 && h2 < 60) {
2586
- r2 = c2;
2587
- g2 = x2;
2588
- b2 = 0;
2589
- } else if (60 <= h2 && h2 < 120) {
2590
- r2 = x2;
2591
- g2 = c2;
2592
- b2 = 0;
2593
- } else if (120 <= h2 && h2 < 180) {
2594
- r2 = 0;
2595
- g2 = c2;
2596
- b2 = x2;
2597
- } else if (180 <= h2 && h2 < 240) {
2598
- r2 = 0;
2599
- g2 = x2;
2600
- b2 = c2;
2601
- } else if (240 <= h2 && h2 < 300) {
2602
- r2 = x2;
2603
- g2 = 0;
2604
- b2 = c2;
2605
- } else if (300 <= h2 && h2 < 360) {
2606
- r2 = c2;
2607
- g2 = 0;
2608
- b2 = x2;
2609
- }
2610
- let rs = Math.round((r2 + m2) * 255).toString(16);
2611
- let gs = Math.round((g2 + m2) * 255).toString(16);
2612
- let bs = Math.round((b2 + m2) * 255).toString(16);
2578
+ l3 /= 100;
2579
+ const c3 = (1 - Math.abs(2 * l3 - 1)) * s;
2580
+ const x3 = c3 * (1 - Math.abs(h3 / 60 % 2 - 1));
2581
+ const m3 = l3 - c3 / 2;
2582
+ let r3 = 0;
2583
+ let g3 = 0;
2584
+ let b3 = 0;
2585
+ if (0 <= h3 && h3 < 60) {
2586
+ r3 = c3;
2587
+ g3 = x3;
2588
+ b3 = 0;
2589
+ } else if (60 <= h3 && h3 < 120) {
2590
+ r3 = x3;
2591
+ g3 = c3;
2592
+ b3 = 0;
2593
+ } else if (120 <= h3 && h3 < 180) {
2594
+ r3 = 0;
2595
+ g3 = c3;
2596
+ b3 = x3;
2597
+ } else if (180 <= h3 && h3 < 240) {
2598
+ r3 = 0;
2599
+ g3 = x3;
2600
+ b3 = c3;
2601
+ } else if (240 <= h3 && h3 < 300) {
2602
+ r3 = x3;
2603
+ g3 = 0;
2604
+ b3 = c3;
2605
+ } else if (300 <= h3 && h3 < 360) {
2606
+ r3 = c3;
2607
+ g3 = 0;
2608
+ b3 = x3;
2609
+ }
2610
+ let rs = Math.round((r3 + m3) * 255).toString(16);
2611
+ let gs = Math.round((g3 + m3) * 255).toString(16);
2612
+ let bs = Math.round((b3 + m3) * 255).toString(16);
2613
2613
  if (rs.length == 1) rs = "0" + rs;
2614
2614
  if (gs.length == 1) gs = "0" + gs;
2615
2615
  if (bs.length == 1) bs = "0" + bs;
2616
2616
  return "#" + rs + gs + bs;
2617
2617
  }
2618
2618
  function adjustLightness(color, amount) {
2619
- const { h: h2, s, l: l2 } = hexToHSL(color);
2620
- return hslToHex({ h: h2, s, l: Math.max(Math.min(l2 + amount * 100, 100), 0) });
2619
+ const { h: h3, s, l: l3 } = hexToHSL(color);
2620
+ return hslToHex({ h: h3, s, l: Math.max(Math.min(l3 + amount * 100, 100), 0) });
2621
2621
  }
2622
2622
  function lighten(color, amount) {
2623
2623
  return adjustLightness(color, amount);
@@ -2626,8 +2626,8 @@ function darken(color, amount) {
2626
2626
  return adjustLightness(color, -amount);
2627
2627
  }
2628
2628
  function hsla(color, amount) {
2629
- const { h: h2, s, l: l2 } = hexToHSL(color);
2630
- return `hsla(${h2}, ${s}%, ${l2}%, ${amount})`;
2629
+ const { h: h3, s, l: l3 } = hexToHSL(color);
2630
+ return `hsla(${h3}, ${s}%, ${l3}%, ${amount})`;
2631
2631
  }
2632
2632
  function isLightColor(color) {
2633
2633
  return hexToHSL(color).l > 50;
@@ -2681,7 +2681,7 @@ var createKeyboardExecutionHandler = (fn) => {
2681
2681
 
2682
2682
  // src/utils/string.ts
2683
2683
  function camelToHyphen(str) {
2684
- return str.replace(/([a-z][A-Z])/g, (g2) => `${g2[0]}-${g2[1].toLowerCase()}`);
2684
+ return str.replace(/([a-z][A-Z])/g, (g3) => `${g3[0]}-${g3[1].toLowerCase()}`);
2685
2685
  }
2686
2686
  function formatNumber(num) {
2687
2687
  return new Intl.NumberFormat("en-US").format(num);
@@ -2749,14 +2749,14 @@ var __assign = function() {
2749
2749
  __assign = Object.assign || function __assign2(t2) {
2750
2750
  for (var s, i = 1, n = arguments.length; i < n; i++) {
2751
2751
  s = arguments[i];
2752
- for (var p2 in s) if (Object.prototype.hasOwnProperty.call(s, p2)) t2[p2] = s[p2];
2752
+ for (var p3 in s) if (Object.prototype.hasOwnProperty.call(s, p3)) t2[p3] = s[p3];
2753
2753
  }
2754
2754
  return t2;
2755
2755
  };
2756
2756
  return __assign.apply(this, arguments);
2757
2757
  };
2758
2758
  function __spreadArray(to, from2, pack) {
2759
- if (pack || arguments.length === 2) for (var i = 0, l2 = from2.length, ar; i < l2; i++) {
2759
+ if (pack || arguments.length === 2) for (var i = 0, l3 = from2.length, ar; i < l3; i++) {
2760
2760
  if (ar || !(i in from2)) {
2761
2761
  if (!ar) ar = Array.prototype.slice.call(from2, 0, i);
2762
2762
  ar[i] = from2[i];
@@ -2784,7 +2784,7 @@ var isPropValid = /* @__PURE__ */ memoize(
2784
2784
  );
2785
2785
 
2786
2786
  // node_modules/styled-components/dist/styled-components.browser.esm.js
2787
- import r, { createElement as o } from "react";
2787
+ import o, { createElement as r } from "react";
2788
2788
 
2789
2789
  // node_modules/stylis/src/Enum.js
2790
2790
  var MS = "-ms-";
@@ -3125,10 +3125,10 @@ function ruleset(value, root, parent, index, offset, rules, points, type, props,
3125
3125
  var post = offset - 1;
3126
3126
  var rule = offset === 0 ? rules : [""];
3127
3127
  var size = sizeof(rule);
3128
- for (var i = 0, j2 = 0, k2 = 0; i < index; ++i)
3129
- for (var x2 = 0, y2 = substr(value, post + 1, post = abs(j2 = points[i])), z2 = value; x2 < size; ++x2)
3130
- if (z2 = trim(j2 > 0 ? rule[x2] + " " + y2 : replace2(y2, /&\f/g, rule[x2])))
3131
- props[k2++] = z2;
3128
+ for (var i = 0, j3 = 0, k3 = 0; i < index; ++i)
3129
+ for (var x3 = 0, y3 = substr(value, post + 1, post = abs(j3 = points[i])), z3 = value; x3 < size; ++x3)
3130
+ if (z3 = trim(j3 > 0 ? rule[x3] + " " + y3 : replace2(y3, /&\f/g, rule[x3])))
3131
+ props[k3++] = z3;
3132
3132
  return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length2, siblings);
3133
3133
  }
3134
3134
  function comment(value, root, parent, siblings) {
@@ -3297,8 +3297,8 @@ function prefix(value, length2, children) {
3297
3297
  // grid-(column|row)
3298
3298
  case 5152:
3299
3299
  case 5920:
3300
- return replace2(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(_2, a2, b2, c2, d2, e2, f2) {
3301
- return MS + a2 + ":" + b2 + f2 + (c2 ? MS + a2 + "-span:" + (d2 ? e2 : +e2 - +b2) + f2 : "") + value;
3300
+ return replace2(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(_3, a3, b3, c3, d3, e2, f2) {
3301
+ return MS + a3 + ":" + b3 + f2 + (c3 ? MS + a3 + "-span:" + (d3 ? e2 : +e2 - +b3) + f2 : "") + value;
3302
3302
  });
3303
3303
  // position: sticky
3304
3304
  case 4949:
@@ -3461,99 +3461,122 @@ var unitlessKeys = {
3461
3461
  var a = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled";
3462
3462
  var c = "active";
3463
3463
  var u = "data-styled-version";
3464
- var l = "6.3.9";
3465
- var d = "/*!sc*/\n";
3464
+ var l = "6.3.11";
3465
+ var p = "/*!sc*/\n";
3466
3466
  var h = "undefined" != typeof window && "undefined" != typeof document;
3467
- var p = void 0 === r.createContext;
3468
- var f = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : true);
3469
- var m = {};
3470
- var y = /invalid hook call/i;
3471
- var v = /* @__PURE__ */ new Set();
3472
- var g = function(t2, n) {
3467
+ var d = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : true);
3468
+ var m = true ? { 1: "Cannot create styled-component for component: %s.\n\n", 2: "Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n", 3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n", 4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n", 5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n", 6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n", 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: 'ThemeProvider: Please make your "theme" prop an object.\n\n', 9: "Missing document `<head>`\n\n", 10: "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n", 11: "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n", 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: "%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n", 14: 'ThemeProvider: "theme" prop is required.\n\n', 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n", 17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n", 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
3469
+ function y() {
3470
+ for (var e2 = [], t2 = 0; t2 < arguments.length; t2++) e2[t2] = arguments[t2];
3471
+ for (var n = e2[0], o3 = [], r3 = 1, s = e2.length; r3 < s; r3 += 1) o3.push(e2[r3]);
3472
+ return o3.forEach(function(e3) {
3473
+ n = n.replace(/%[a-z]/, e3);
3474
+ }), n;
3475
+ }
3476
+ function v(t2) {
3477
+ for (var n = [], o3 = 1; o3 < arguments.length; o3++) n[o3 - 1] = arguments[o3];
3478
+ return false ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t2, " for more information.").concat(n.length > 0 ? " Args: ".concat(n.join(", ")) : "")) : new Error(y.apply(void 0, __spreadArray([m[t2]], n, false)).trim());
3479
+ }
3480
+ var g = 1 << 30;
3481
+ var S = /* @__PURE__ */ new Map();
3482
+ var w = /* @__PURE__ */ new Map();
3483
+ var b = 1;
3484
+ var N = function(e2) {
3485
+ if (S.has(e2)) return S.get(e2);
3486
+ for (; w.has(b); ) b++;
3487
+ var t2 = b++;
3488
+ if ((0 | t2) < 0 || t2 > g) throw v(16, "".concat(t2));
3489
+ return S.set(e2, t2), w.set(t2, e2), t2;
3490
+ };
3491
+ var E = function(e2, t2) {
3492
+ b = t2 + 1, S.set(e2, t2), w.set(t2, e2);
3493
+ };
3494
+ var C = /invalid hook call/i;
3495
+ var A = /* @__PURE__ */ new Set();
3496
+ var _ = function(t2, n) {
3473
3497
  if (true) {
3474
- if (p) return;
3475
- var o2 = n ? ' with the id of "'.concat(n, '"') : "", s = "The component ".concat(t2).concat(o2, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n", i = console.error;
3498
+ var r3 = n ? ' with the id of "'.concat(n, '"') : "", s = "The component ".concat(t2).concat(r3, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n", i = console.error;
3476
3499
  try {
3477
- var a2 = true;
3500
+ var a3 = true;
3478
3501
  console.error = function(t3) {
3479
- for (var n2 = [], r2 = 1; r2 < arguments.length; r2++) n2[r2 - 1] = arguments[r2];
3480
- y.test(t3) ? (a2 = false, v.delete(s)) : i.apply(void 0, __spreadArray([t3], n2, false));
3481
- }, "function" == typeof r.useState && r.useState(null), a2 && !v.has(s) && (console.warn(s), v.add(s));
3502
+ for (var n2 = [], o3 = 1; o3 < arguments.length; o3++) n2[o3 - 1] = arguments[o3];
3503
+ C.test(t3) ? (a3 = false, A.delete(s)) : i.apply(void 0, __spreadArray([t3], n2, false));
3504
+ }, "function" == typeof o.useState && o.useState(null), a3 && !A.has(s) && (console.warn(s), A.add(s));
3482
3505
  } catch (e2) {
3483
- y.test(e2.message) && v.delete(s);
3506
+ C.test(e2.message) && A.delete(s);
3484
3507
  } finally {
3485
3508
  console.error = i;
3486
3509
  }
3487
3510
  }
3488
3511
  };
3489
- var S = Object.freeze([]);
3490
- var w = Object.freeze({});
3491
- function b(e2, t2, n) {
3492
- return void 0 === n && (n = w), e2.theme !== n.theme && e2.theme || t2 || n.theme;
3512
+ var P = Object.freeze([]);
3513
+ var I = Object.freeze({});
3514
+ function O(e2, t2, n) {
3515
+ return void 0 === n && (n = I), e2.theme !== n.theme && e2.theme || t2 || n.theme;
3493
3516
  }
3494
- var N = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "blockquote", "body", "button", "br", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "menu", "meter", "nav", "object", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "slot", "small", "span", "strong", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "switch", "symbol", "text", "textPath", "tspan", "use"]);
3495
- var E = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g;
3496
- var C = /(^-|-$)/g;
3497
- function A(e2) {
3498
- return e2.replace(E, "-").replace(C, "");
3517
+ var D = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "blockquote", "body", "button", "br", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "menu", "meter", "nav", "object", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "slot", "small", "span", "strong", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "switch", "symbol", "text", "textPath", "tspan", "use"]);
3518
+ var R = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g;
3519
+ var T = /(^-|-$)/g;
3520
+ function x(e2) {
3521
+ return e2.replace(R, "-").replace(T, "");
3499
3522
  }
3500
- var _ = /(a)(d)/gi;
3501
- var P = function(e2) {
3523
+ var j = /(a)(d)/gi;
3524
+ var k = function(e2) {
3502
3525
  return String.fromCharCode(e2 + (e2 > 25 ? 39 : 97));
3503
3526
  };
3504
- function I(e2) {
3527
+ function M(e2) {
3505
3528
  var t2, n = "";
3506
- for (t2 = Math.abs(e2); t2 > 52; t2 = t2 / 52 | 0) n = P(t2 % 52) + n;
3507
- return (P(t2 % 52) + n).replace(_, "$1-$2");
3529
+ for (t2 = Math.abs(e2); t2 > 52; t2 = t2 / 52 | 0) n = k(t2 % 52) + n;
3530
+ return (k(t2 % 52) + n).replace(j, "$1-$2");
3508
3531
  }
3509
- var O;
3510
- var D = function(e2, t2) {
3532
+ var V;
3533
+ var F = function(e2, t2) {
3511
3534
  for (var n = t2.length; n; ) e2 = 33 * e2 ^ t2.charCodeAt(--n);
3512
3535
  return e2;
3513
3536
  };
3514
- var R = function(e2) {
3515
- return D(5381, e2);
3537
+ var G = function(e2) {
3538
+ return F(5381, e2);
3516
3539
  };
3517
- function T(e2) {
3518
- return I(R(e2) >>> 0);
3540
+ function L(e2) {
3541
+ return M(G(e2) >>> 0);
3519
3542
  }
3520
- function x(e2) {
3543
+ function B(e2) {
3521
3544
  return "string" == typeof e2 && e2 || e2.displayName || e2.name || "Component";
3522
3545
  }
3523
- function j(e2) {
3546
+ function z(e2) {
3524
3547
  return "string" == typeof e2 && e2.charAt(0) === e2.charAt(0).toLowerCase();
3525
3548
  }
3526
- var k = "function" == typeof Symbol && Symbol.for;
3527
- var M = k ? /* @__PURE__ */ Symbol.for("react.memo") : 60115;
3528
- var V = k ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112;
3529
- var F = { childContextTypes: true, contextType: true, contextTypes: true, defaultProps: true, displayName: true, getDefaultProps: true, getDerivedStateFromError: true, getDerivedStateFromProps: true, mixins: true, propTypes: true, type: true };
3530
- var G = { name: true, length: true, prototype: true, caller: true, callee: true, arguments: true, arity: true };
3531
- var L = { $$typeof: true, compare: true, defaultProps: true, displayName: true, propTypes: true, type: true };
3532
- var B = ((O = {})[V] = { $$typeof: true, render: true, defaultProps: true, displayName: true, propTypes: true }, O[M] = L, O);
3533
- function z(e2) {
3534
- return ("type" in (t2 = e2) && t2.type.$$typeof) === M ? L : "$$typeof" in e2 ? B[e2.$$typeof] : F;
3549
+ var $ = "function" == typeof Symbol && Symbol.for;
3550
+ var Y = $ ? /* @__PURE__ */ Symbol.for("react.memo") : 60115;
3551
+ var W = $ ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112;
3552
+ var q = { childContextTypes: true, contextType: true, contextTypes: true, defaultProps: true, displayName: true, getDefaultProps: true, getDerivedStateFromError: true, getDerivedStateFromProps: true, mixins: true, propTypes: true, type: true };
3553
+ var H = { name: true, length: true, prototype: true, caller: true, callee: true, arguments: true, arity: true };
3554
+ var U = { $$typeof: true, compare: true, defaultProps: true, displayName: true, propTypes: true, type: true };
3555
+ var J = ((V = {})[W] = { $$typeof: true, render: true, defaultProps: true, displayName: true, propTypes: true }, V[Y] = U, V);
3556
+ function X(e2) {
3557
+ return ("type" in (t2 = e2) && t2.type.$$typeof) === Y ? U : "$$typeof" in e2 ? J[e2.$$typeof] : q;
3535
3558
  var t2;
3536
3559
  }
3537
- var $ = Object.defineProperty;
3538
- var Y = Object.getOwnPropertyNames;
3539
- var W = Object.getOwnPropertySymbols;
3540
- var q = Object.getOwnPropertyDescriptor;
3541
- var H = Object.getPrototypeOf;
3542
- var U = Object.prototype;
3543
- function J(e2, t2, n) {
3560
+ var Z = Object.defineProperty;
3561
+ var K = Object.getOwnPropertyNames;
3562
+ var Q = Object.getOwnPropertySymbols;
3563
+ var ee = Object.getOwnPropertyDescriptor;
3564
+ var te = Object.getPrototypeOf;
3565
+ var ne = Object.prototype;
3566
+ function oe(e2, t2, n) {
3544
3567
  if ("string" != typeof t2) {
3545
- if (U) {
3546
- var r2 = H(t2);
3547
- r2 && r2 !== U && J(e2, r2, n);
3548
- }
3549
- var o2 = Y(t2);
3550
- W && (o2 = o2.concat(W(t2)));
3551
- for (var s = z(e2), i = z(t2), a2 = 0; a2 < o2.length; ++a2) {
3552
- var c2 = o2[a2];
3553
- if (!(c2 in G || n && n[c2] || i && c2 in i || s && c2 in s)) {
3554
- var u2 = q(t2, c2);
3568
+ if (ne) {
3569
+ var o3 = te(t2);
3570
+ o3 && o3 !== ne && oe(e2, o3, n);
3571
+ }
3572
+ var r3 = K(t2);
3573
+ Q && (r3 = r3.concat(Q(t2)));
3574
+ for (var s = X(e2), i = X(t2), a3 = 0; a3 < r3.length; ++a3) {
3575
+ var c3 = r3[a3];
3576
+ if (!(c3 in H || n && n[c3] || i && c3 in i || s && c3 in s)) {
3577
+ var u3 = ee(t2, c3);
3555
3578
  try {
3556
- $(e2, c2, u2);
3579
+ Z(e2, c3, u3);
3557
3580
  } catch (e3) {
3558
3581
  }
3559
3582
  }
@@ -3561,43 +3584,31 @@ function J(e2, t2, n) {
3561
3584
  }
3562
3585
  return e2;
3563
3586
  }
3564
- function X(e2) {
3587
+ function re(e2) {
3565
3588
  return "function" == typeof e2;
3566
3589
  }
3567
- function Z(e2) {
3590
+ function se(e2) {
3568
3591
  return "object" == typeof e2 && "styledComponentId" in e2;
3569
3592
  }
3570
- function K(e2, t2) {
3593
+ function ie(e2, t2) {
3571
3594
  return e2 && t2 ? "".concat(e2, " ").concat(t2) : e2 || t2 || "";
3572
3595
  }
3573
- function Q(e2, t2) {
3596
+ function ae(e2, t2) {
3574
3597
  return e2.join(t2 || "");
3575
3598
  }
3576
- function ee(e2) {
3599
+ function ce(e2) {
3577
3600
  return null !== e2 && "object" == typeof e2 && e2.constructor.name === Object.name && !("props" in e2 && e2.$$typeof);
3578
3601
  }
3579
- function te(e2, t2, n) {
3580
- if (void 0 === n && (n = false), !n && !ee(e2) && !Array.isArray(e2)) return t2;
3581
- if (Array.isArray(t2)) for (var r2 = 0; r2 < t2.length; r2++) e2[r2] = te(e2[r2], t2[r2]);
3582
- else if (ee(t2)) for (var r2 in t2) e2[r2] = te(e2[r2], t2[r2]);
3602
+ function ue(e2, t2, n) {
3603
+ if (void 0 === n && (n = false), !n && !ce(e2) && !Array.isArray(e2)) return t2;
3604
+ if (Array.isArray(t2)) for (var o3 = 0; o3 < t2.length; o3++) e2[o3] = ue(e2[o3], t2[o3]);
3605
+ else if (ce(t2)) for (var o3 in t2) e2[o3] = ue(e2[o3], t2[o3]);
3583
3606
  return e2;
3584
3607
  }
3585
- function ne(e2, t2) {
3608
+ function le(e2, t2) {
3586
3609
  Object.defineProperty(e2, "toString", { value: t2 });
3587
3610
  }
3588
- var re = true ? { 1: "Cannot create styled-component for component: %s.\n\n", 2: "Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n", 3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n", 4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n", 5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n", 6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n", 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: 'ThemeProvider: Please make your "theme" prop an object.\n\n', 9: "Missing document `<head>`\n\n", 10: "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n", 11: "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n", 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: "%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n", 14: 'ThemeProvider: "theme" prop is required.\n\n', 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n", 17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n", 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
3589
- function oe() {
3590
- for (var e2 = [], t2 = 0; t2 < arguments.length; t2++) e2[t2] = arguments[t2];
3591
- for (var n = e2[0], r2 = [], o2 = 1, s = e2.length; o2 < s; o2 += 1) r2.push(e2[o2]);
3592
- return r2.forEach(function(e3) {
3593
- n = n.replace(/%[a-z]/, e3);
3594
- }), n;
3595
- }
3596
- function se(t2) {
3597
- for (var n = [], r2 = 1; r2 < arguments.length; r2++) n[r2 - 1] = arguments[r2];
3598
- return false ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t2, " for more information.").concat(n.length > 0 ? " Args: ".concat(n.join(", ")) : "")) : new Error(oe.apply(void 0, __spreadArray([re[t2]], n, false)).trim());
3599
- }
3600
- var ie = (function() {
3611
+ var pe = (function() {
3601
3612
  function e2(e3) {
3602
3613
  this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e3, this._cGroup = 0, this._cIndex = 0;
3603
3614
  }
@@ -3609,97 +3620,83 @@ var ie = (function() {
3609
3620
  return this._cGroup = e3, this._cIndex = t2, t2;
3610
3621
  }, e2.prototype.insertRules = function(e3, t2) {
3611
3622
  if (e3 >= this.groupSizes.length) {
3612
- for (var n = this.groupSizes, r2 = n.length, o2 = r2; e3 >= o2; ) if ((o2 <<= 1) < 0) throw se(16, "".concat(e3));
3613
- this.groupSizes = new Uint32Array(o2), this.groupSizes.set(n), this.length = o2;
3614
- for (var s = r2; s < o2; s++) this.groupSizes[s] = 0;
3623
+ for (var n = this.groupSizes, o3 = n.length, r3 = o3; e3 >= r3; ) if ((r3 <<= 1) < 0) throw v(16, "".concat(e3));
3624
+ this.groupSizes = new Uint32Array(r3), this.groupSizes.set(n), this.length = r3;
3625
+ for (var s = o3; s < r3; s++) this.groupSizes[s] = 0;
3615
3626
  }
3616
- for (var i = this.indexOfGroup(e3 + 1), a2 = 0, c2 = (s = 0, t2.length); s < c2; s++) this.tag.insertRule(i, t2[s]) && (this.groupSizes[e3]++, i++, a2++);
3617
- a2 > 0 && this._cGroup > e3 && (this._cIndex += a2);
3627
+ for (var i = this.indexOfGroup(e3 + 1), a3 = 0, c3 = (s = 0, t2.length); s < c3; s++) this.tag.insertRule(i, t2[s]) && (this.groupSizes[e3]++, i++, a3++);
3628
+ a3 > 0 && this._cGroup > e3 && (this._cIndex += a3);
3618
3629
  }, e2.prototype.clearGroup = function(e3) {
3619
3630
  if (e3 < this.length) {
3620
- var t2 = this.groupSizes[e3], n = this.indexOfGroup(e3), r2 = n + t2;
3631
+ var t2 = this.groupSizes[e3], n = this.indexOfGroup(e3), o3 = n + t2;
3621
3632
  this.groupSizes[e3] = 0;
3622
- for (var o2 = n; o2 < r2; o2++) this.tag.deleteRule(n);
3633
+ for (var r3 = n; r3 < o3; r3++) this.tag.deleteRule(n);
3623
3634
  t2 > 0 && this._cGroup > e3 && (this._cIndex -= t2);
3624
3635
  }
3625
3636
  }, e2.prototype.getGroup = function(e3) {
3626
3637
  var t2 = "";
3627
3638
  if (e3 >= this.length || 0 === this.groupSizes[e3]) return t2;
3628
- for (var n = this.groupSizes[e3], r2 = this.indexOfGroup(e3), o2 = r2 + n, s = r2; s < o2; s++) t2 += this.tag.getRule(s) + d;
3639
+ for (var n = this.groupSizes[e3], o3 = this.indexOfGroup(e3), r3 = o3 + n, s = o3; s < r3; s++) t2 += this.tag.getRule(s) + p;
3629
3640
  return t2;
3630
3641
  }, e2;
3631
3642
  })();
3632
- var ae = 1 << 30;
3633
- var ce = /* @__PURE__ */ new Map();
3634
- var ue = /* @__PURE__ */ new Map();
3635
- var le = 1;
3636
- var de = function(e2) {
3637
- if (ce.has(e2)) return ce.get(e2);
3638
- for (; ue.has(le); ) le++;
3639
- var t2 = le++;
3640
- if ((0 | t2) < 0 || t2 > ae) throw se(16, "".concat(t2));
3641
- return ce.set(e2, t2), ue.set(t2, e2), t2;
3642
- };
3643
- var he = function(e2, t2) {
3644
- le = t2 + 1, ce.set(e2, t2), ue.set(t2, e2);
3645
- };
3646
- var pe = "style[".concat(a, "][").concat(u, '="').concat(l, '"]');
3647
- var fe = new RegExp("^".concat(a, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'));
3648
- var me = function(e2) {
3643
+ var he = "style[".concat(a, "][").concat(u, '="').concat(l, '"]');
3644
+ var de = new RegExp("^".concat(a, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'));
3645
+ var fe = function(e2) {
3649
3646
  return "undefined" != typeof ShadowRoot && e2 instanceof ShadowRoot || "host" in e2 && 11 === e2.nodeType;
3650
3647
  };
3651
- var ye = function(e2) {
3648
+ var me = function(e2) {
3652
3649
  if (!e2) return document;
3653
- if (me(e2)) return e2;
3650
+ if (fe(e2)) return e2;
3654
3651
  if ("getRootNode" in e2) {
3655
3652
  var t2 = e2.getRootNode();
3656
- if (me(t2)) return t2;
3653
+ if (fe(t2)) return t2;
3657
3654
  }
3658
3655
  return document;
3659
3656
  };
3660
- var ve = function(e2, t2, n) {
3661
- for (var r2, o2 = n.split(","), s = 0, i = o2.length; s < i; s++) (r2 = o2[s]) && e2.registerName(t2, r2);
3657
+ var ye = function(e2, t2, n) {
3658
+ for (var o3, r3 = n.split(","), s = 0, i = r3.length; s < i; s++) (o3 = r3[s]) && e2.registerName(t2, o3);
3662
3659
  };
3663
- var ge = function(e2, t2) {
3664
- for (var n, r2 = (null !== (n = t2.textContent) && void 0 !== n ? n : "").split(d), o2 = [], s = 0, i = r2.length; s < i; s++) {
3665
- var a2 = r2[s].trim();
3666
- if (a2) {
3667
- var c2 = a2.match(fe);
3668
- if (c2) {
3669
- var u2 = 0 | parseInt(c2[1], 10), l2 = c2[2];
3670
- 0 !== u2 && (he(l2, u2), ve(e2, l2, c2[3]), e2.getTag().insertRules(u2, o2)), o2.length = 0;
3671
- } else o2.push(a2);
3660
+ var ve = function(e2, t2) {
3661
+ for (var n, o3 = (null !== (n = t2.textContent) && void 0 !== n ? n : "").split(p), r3 = [], s = 0, i = o3.length; s < i; s++) {
3662
+ var a3 = o3[s].trim();
3663
+ if (a3) {
3664
+ var c3 = a3.match(de);
3665
+ if (c3) {
3666
+ var u3 = 0 | parseInt(c3[1], 10), l3 = c3[2];
3667
+ 0 !== u3 && (E(l3, u3), ye(e2, l3, c3[3]), e2.getTag().insertRules(u3, r3)), r3.length = 0;
3668
+ } else r3.push(a3);
3672
3669
  }
3673
3670
  }
3674
3671
  };
3675
- var Se = function(e2) {
3676
- for (var t2 = ye(e2.options.target).querySelectorAll(pe), n = 0, r2 = t2.length; n < r2; n++) {
3677
- var o2 = t2[n];
3678
- o2 && o2.getAttribute(a) !== c && (ge(e2, o2), o2.parentNode && o2.parentNode.removeChild(o2));
3672
+ var ge = function(e2) {
3673
+ for (var t2 = me(e2.options.target).querySelectorAll(he), n = 0, o3 = t2.length; n < o3; n++) {
3674
+ var r3 = t2[n];
3675
+ r3 && r3.getAttribute(a) !== c && (ve(e2, r3), r3.parentNode && r3.parentNode.removeChild(r3));
3679
3676
  }
3680
3677
  };
3681
- function we() {
3678
+ function Se() {
3682
3679
  return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
3683
3680
  }
3684
- var be = function(e2) {
3685
- var t2 = document.head, n = e2 || t2, r2 = document.createElement("style"), o2 = (function(e3) {
3681
+ var we = function(e2) {
3682
+ var t2 = document.head, n = e2 || t2, o3 = document.createElement("style"), r3 = (function(e3) {
3686
3683
  var t3 = Array.from(e3.querySelectorAll("style[".concat(a, "]")));
3687
3684
  return t3[t3.length - 1];
3688
- })(n), s = void 0 !== o2 ? o2.nextSibling : null;
3689
- r2.setAttribute(a, c), r2.setAttribute(u, l);
3690
- var i = we();
3691
- return i && r2.setAttribute("nonce", i), n.insertBefore(r2, s), r2;
3685
+ })(n), s = void 0 !== r3 ? r3.nextSibling : null;
3686
+ o3.setAttribute(a, c), o3.setAttribute(u, l);
3687
+ var i = Se();
3688
+ return i && o3.setAttribute("nonce", i), n.insertBefore(o3, s), o3;
3692
3689
  };
3693
- var Ne = (function() {
3690
+ var be = (function() {
3694
3691
  function e2(e3) {
3695
- this.element = be(e3), this.element.appendChild(document.createTextNode("")), this.sheet = (function(e4) {
3692
+ this.element = we(e3), this.element.appendChild(document.createTextNode("")), this.sheet = (function(e4) {
3696
3693
  var t2;
3697
3694
  if (e4.sheet) return e4.sheet;
3698
- for (var n = null !== (t2 = e4.getRootNode().styleSheets) && void 0 !== t2 ? t2 : document.styleSheets, r2 = 0, o2 = n.length; r2 < o2; r2++) {
3699
- var s = n[r2];
3695
+ for (var n = null !== (t2 = e4.getRootNode().styleSheets) && void 0 !== t2 ? t2 : document.styleSheets, o3 = 0, r3 = n.length; o3 < r3; o3++) {
3696
+ var s = n[o3];
3700
3697
  if (s.ownerNode === e4) return s;
3701
3698
  }
3702
- throw se(17);
3699
+ throw v(17);
3703
3700
  })(this.element), this.length = 0;
3704
3701
  }
3705
3702
  return e2.prototype.insertRule = function(e3, t2) {
@@ -3715,9 +3712,9 @@ var Ne = (function() {
3715
3712
  return t2 && t2.cssText ? t2.cssText : "";
3716
3713
  }, e2;
3717
3714
  })();
3718
- var Ee = (function() {
3715
+ var Ne = (function() {
3719
3716
  function e2(e3) {
3720
- this.element = be(e3), this.nodes = this.element.childNodes, this.length = 0;
3717
+ this.element = we(e3), this.nodes = this.element.childNodes, this.length = 0;
3721
3718
  }
3722
3719
  return e2.prototype.insertRule = function(e3, t2) {
3723
3720
  if (e3 <= this.length && e3 >= 0) {
@@ -3731,7 +3728,7 @@ var Ee = (function() {
3731
3728
  return e3 < this.length ? this.nodes[e3].textContent : "";
3732
3729
  }, e2;
3733
3730
  })();
3734
- var Ce = (function() {
3731
+ var Ee = (function() {
3735
3732
  function e2(e3) {
3736
3733
  this.rules = [], this.length = 0;
3737
3734
  }
@@ -3743,493 +3740,447 @@ var Ce = (function() {
3743
3740
  return e3 < this.length ? this.rules[e3] : "";
3744
3741
  }, e2;
3745
3742
  })();
3746
- var Ae = h;
3747
- var _e = { isServer: !h, useCSSOMInjection: !f };
3748
- var Pe = (function() {
3749
- function e2(e3, n, r2) {
3750
- void 0 === e3 && (e3 = w), void 0 === n && (n = {});
3751
- var o2 = this;
3752
- this.options = __assign(__assign({}, _e), e3), this.gs = n, this.names = new Map(r2), this.server = !!e3.isServer, !this.server && h && Ae && (Ae = false, Se(this)), ne(this, function() {
3743
+ var Ce = h;
3744
+ var Ae = { isServer: !h, useCSSOMInjection: !d };
3745
+ var _e = (function() {
3746
+ function e2(e3, n, o3) {
3747
+ void 0 === e3 && (e3 = I), void 0 === n && (n = {});
3748
+ var r3 = this;
3749
+ this.options = __assign(__assign({}, Ae), e3), this.gs = n, this.names = new Map(o3), this.server = !!e3.isServer, !this.server && h && Ce && (Ce = false, ge(this)), le(this, function() {
3753
3750
  return (function(e4) {
3754
- for (var t2 = e4.getTag(), n2 = t2.length, r3 = "", o3 = function(n3) {
3755
- var o4 = (function(e5) {
3756
- return ue.get(e5);
3751
+ for (var t2 = e4.getTag(), n2 = t2.length, o4 = "", r4 = function(n3) {
3752
+ var r5 = (function(e5) {
3753
+ return w.get(e5);
3757
3754
  })(n3);
3758
- if (void 0 === o4) return "continue";
3759
- var s2 = e4.names.get(o4);
3755
+ if (void 0 === r5) return "continue";
3756
+ var s2 = e4.names.get(r5);
3760
3757
  if (void 0 === s2 || !s2.size) return "continue";
3761
3758
  var i = t2.getGroup(n3);
3762
3759
  if (0 === i.length) return "continue";
3763
- var c2 = a + ".g" + n3 + '[id="' + o4 + '"]', u2 = "";
3760
+ var c3 = a + ".g" + n3 + '[id="' + r5 + '"]', u3 = "";
3764
3761
  s2.forEach(function(e5) {
3765
- e5.length > 0 && (u2 += e5 + ",");
3766
- }), r3 += i + c2 + '{content:"' + u2 + '"}' + d;
3767
- }, s = 0; s < n2; s++) o3(s);
3768
- return r3;
3769
- })(o2);
3762
+ e5.length > 0 && (u3 += e5 + ",");
3763
+ }), o4 += i + c3 + '{content:"' + u3 + '"}' + p;
3764
+ }, s = 0; s < n2; s++) r4(s);
3765
+ return o4;
3766
+ })(r3);
3770
3767
  });
3771
3768
  }
3772
3769
  return e2.registerId = function(e3) {
3773
- return de(e3);
3770
+ return N(e3);
3774
3771
  }, e2.prototype.rehydrate = function() {
3775
- !this.server && h && Se(this);
3776
- }, e2.prototype.reconstructWithOptions = function(n, r2) {
3777
- void 0 === r2 && (r2 = true);
3778
- var o2 = new e2(__assign(__assign({}, this.options), n), this.gs, r2 && this.names || void 0);
3779
- return !this.server && h && n.target !== this.options.target && ye(this.options.target) !== ye(n.target) && Se(o2), o2;
3772
+ !this.server && h && ge(this);
3773
+ }, e2.prototype.reconstructWithOptions = function(n, o3) {
3774
+ void 0 === o3 && (o3 = true);
3775
+ var r3 = new e2(__assign(__assign({}, this.options), n), this.gs, o3 && this.names || void 0);
3776
+ return !this.server && h && n.target !== this.options.target && me(this.options.target) !== me(n.target) && ge(r3), r3;
3780
3777
  }, e2.prototype.allocateGSInstance = function(e3) {
3781
3778
  return this.gs[e3] = (this.gs[e3] || 0) + 1;
3782
3779
  }, e2.prototype.getTag = function() {
3783
3780
  return this.tag || (this.tag = (e3 = (function(e4) {
3784
3781
  var t2 = e4.useCSSOMInjection, n = e4.target;
3785
- return e4.isServer ? new Ce(n) : t2 ? new Ne(n) : new Ee(n);
3786
- })(this.options), new ie(e3)));
3782
+ return e4.isServer ? new Ee(n) : t2 ? new be(n) : new Ne(n);
3783
+ })(this.options), new pe(e3)));
3787
3784
  var e3;
3788
3785
  }, e2.prototype.hasNameForId = function(e3, t2) {
3789
- var n, r2;
3790
- return null !== (r2 = null === (n = this.names.get(e3)) || void 0 === n ? void 0 : n.has(t2)) && void 0 !== r2 && r2;
3786
+ var n, o3;
3787
+ return null !== (o3 = null === (n = this.names.get(e3)) || void 0 === n ? void 0 : n.has(t2)) && void 0 !== o3 && o3;
3791
3788
  }, e2.prototype.registerName = function(e3, t2) {
3792
- de(e3);
3789
+ N(e3);
3793
3790
  var n = this.names.get(e3);
3794
3791
  n ? n.add(t2) : this.names.set(e3, /* @__PURE__ */ new Set([t2]));
3795
3792
  }, e2.prototype.insertRules = function(e3, t2, n) {
3796
- this.registerName(e3, t2), this.getTag().insertRules(de(e3), n);
3793
+ this.registerName(e3, t2), this.getTag().insertRules(N(e3), n);
3797
3794
  }, e2.prototype.clearNames = function(e3) {
3798
3795
  this.names.has(e3) && this.names.get(e3).clear();
3799
3796
  }, e2.prototype.clearRules = function(e3) {
3800
- this.getTag().clearGroup(de(e3)), this.clearNames(e3);
3797
+ this.getTag().clearGroup(N(e3)), this.clearNames(e3);
3801
3798
  }, e2.prototype.clearTag = function() {
3802
3799
  this.tag = void 0;
3803
3800
  }, e2;
3804
3801
  })();
3805
- var Ie = /&/g;
3806
- var Oe = 47;
3807
- var De = 42;
3808
- function Re(e2) {
3802
+ var Pe = /&/g;
3803
+ var Ie = 47;
3804
+ var Oe = 42;
3805
+ function De(e2) {
3809
3806
  if (-1 === e2.indexOf("}")) return false;
3810
- for (var t2 = e2.length, n = 0, r2 = 0, o2 = false, s = 0; s < t2; s++) {
3807
+ for (var t2 = e2.length, n = 0, o3 = 0, r3 = false, s = 0; s < t2; s++) {
3811
3808
  var i = e2.charCodeAt(s);
3812
- if (0 !== r2 || o2 || i !== Oe || e2.charCodeAt(s + 1) !== De) if (o2) i === De && e2.charCodeAt(s + 1) === Oe && (o2 = false, s++);
3809
+ if (0 !== o3 || r3 || i !== Ie || e2.charCodeAt(s + 1) !== Oe) if (r3) i === Oe && e2.charCodeAt(s + 1) === Ie && (r3 = false, s++);
3813
3810
  else if (34 !== i && 39 !== i || 0 !== s && 92 === e2.charCodeAt(s - 1)) {
3814
- if (0 === r2) {
3811
+ if (0 === o3) {
3815
3812
  if (123 === i) n++;
3816
3813
  else if (125 === i && --n < 0) return true;
3817
3814
  }
3818
- } else 0 === r2 ? r2 = i : r2 === i && (r2 = 0);
3819
- else o2 = true, s++;
3815
+ } else 0 === o3 ? o3 = i : o3 === i && (o3 = 0);
3816
+ else r3 = true, s++;
3820
3817
  }
3821
- return 0 !== n || 0 !== r2;
3818
+ return 0 !== n || 0 !== o3;
3822
3819
  }
3823
- function Te(e2, t2) {
3820
+ function Re(e2, t2) {
3824
3821
  return e2.map(function(e3) {
3825
3822
  return "rule" === e3.type && (e3.value = "".concat(t2, " ").concat(e3.value), e3.value = e3.value.replaceAll(",", ",".concat(t2, " ")), e3.props = e3.props.map(function(e4) {
3826
3823
  return "".concat(t2, " ").concat(e4);
3827
- })), Array.isArray(e3.children) && "@keyframes" !== e3.type && (e3.children = Te(e3.children, t2)), e3;
3824
+ })), Array.isArray(e3.children) && "@keyframes" !== e3.type && (e3.children = Re(e3.children, t2)), e3;
3828
3825
  });
3829
3826
  }
3830
- function xe(e2) {
3831
- var t2, n, r2, o2 = void 0 === e2 ? w : e2, i = o2.options, a2 = void 0 === i ? w : i, c2 = o2.plugins, u2 = void 0 === c2 ? S : c2, l2 = function(e3, r3, o3) {
3832
- return o3.startsWith(n) && o3.endsWith(n) && o3.replaceAll(n, "").length > 0 ? ".".concat(t2) : e3;
3833
- }, d2 = u2.slice();
3834
- d2.push(function(e3) {
3835
- e3.type === RULESET && e3.value.includes("&") && (r2 || (r2 = new RegExp("\\".concat(n, "\\b"), "g")), e3.props[0] = e3.props[0].replace(Ie, n).replace(r2, l2));
3836
- }), a2.prefix && d2.push(prefixer), d2.push(stringify);
3837
- var h2 = [], p2 = middleware(d2.concat(rulesheet(function(e3) {
3838
- return h2.push(e3);
3839
- }))), f2 = function(e3, o3, i2, c3) {
3840
- void 0 === o3 && (o3 = ""), void 0 === i2 && (i2 = ""), void 0 === c3 && (c3 = "&"), t2 = c3, n = o3, r2 = void 0;
3841
- var u3 = (function(e4) {
3842
- if (!Re(e4)) return e4;
3843
- for (var t3 = e4.length, n2 = "", r3 = 0, o4 = 0, s = 0, i3 = false, a3 = 0; a3 < t3; a3++) {
3844
- var c4 = e4.charCodeAt(a3);
3845
- if (0 !== s || i3 || c4 !== Oe || e4.charCodeAt(a3 + 1) !== De) if (i3) c4 === De && e4.charCodeAt(a3 + 1) === Oe && (i3 = false, a3++);
3846
- else if (34 !== c4 && 39 !== c4 || 0 !== a3 && 92 === e4.charCodeAt(a3 - 1)) {
3847
- if (0 === s) if (123 === c4) o4++;
3848
- else if (125 === c4) {
3849
- if (--o4 < 0) {
3850
- for (var u4 = a3 + 1; u4 < t3; ) {
3851
- var l4 = e4.charCodeAt(u4);
3852
- if (59 === l4 || 10 === l4) break;
3853
- u4++;
3827
+ function Te(e2) {
3828
+ var t2, n, o3, r3 = void 0 === e2 ? I : e2, i = r3.options, a3 = void 0 === i ? I : i, c3 = r3.plugins, u3 = void 0 === c3 ? P : c3, l3 = function(e3, o4, r4) {
3829
+ return r4.startsWith(n) && r4.endsWith(n) && r4.replaceAll(n, "").length > 0 ? ".".concat(t2) : e3;
3830
+ }, p3 = u3.slice();
3831
+ p3.push(function(e3) {
3832
+ e3.type === RULESET && e3.value.includes("&") && (o3 || (o3 = new RegExp("\\".concat(n, "\\b"), "g")), e3.props[0] = e3.props[0].replace(Pe, n).replace(o3, l3));
3833
+ }), a3.prefix && p3.push(prefixer), p3.push(stringify);
3834
+ var h3 = [], d3 = middleware(p3.concat(rulesheet(function(e3) {
3835
+ return h3.push(e3);
3836
+ }))), f2 = function(e3, r4, i2, c4) {
3837
+ void 0 === r4 && (r4 = ""), void 0 === i2 && (i2 = ""), void 0 === c4 && (c4 = "&"), t2 = c4, n = r4, o3 = void 0;
3838
+ var u4 = (function(e4) {
3839
+ if (!De(e4)) return e4;
3840
+ for (var t3 = e4.length, n2 = "", o4 = 0, r5 = 0, s = 0, i3 = false, a4 = 0; a4 < t3; a4++) {
3841
+ var c5 = e4.charCodeAt(a4);
3842
+ if (0 !== s || i3 || c5 !== Ie || e4.charCodeAt(a4 + 1) !== Oe) if (i3) c5 === Oe && e4.charCodeAt(a4 + 1) === Ie && (i3 = false, a4++);
3843
+ else if (34 !== c5 && 39 !== c5 || 0 !== a4 && 92 === e4.charCodeAt(a4 - 1)) {
3844
+ if (0 === s) if (123 === c5) r5++;
3845
+ else if (125 === c5) {
3846
+ if (--r5 < 0) {
3847
+ for (var u5 = a4 + 1; u5 < t3; ) {
3848
+ var l5 = e4.charCodeAt(u5);
3849
+ if (59 === l5 || 10 === l5) break;
3850
+ u5++;
3854
3851
  }
3855
- u4 < t3 && 59 === e4.charCodeAt(u4) && u4++, o4 = 0, a3 = u4 - 1, r3 = u4;
3852
+ u5 < t3 && 59 === e4.charCodeAt(u5) && u5++, r5 = 0, a4 = u5 - 1, o4 = u5;
3856
3853
  continue;
3857
3854
  }
3858
- 0 === o4 && (n2 += e4.substring(r3, a3 + 1), r3 = a3 + 1);
3859
- } else 59 === c4 && 0 === o4 && (n2 += e4.substring(r3, a3 + 1), r3 = a3 + 1);
3860
- } else 0 === s ? s = c4 : s === c4 && (s = 0);
3861
- else i3 = true, a3++;
3855
+ 0 === r5 && (n2 += e4.substring(o4, a4 + 1), o4 = a4 + 1);
3856
+ } else 59 === c5 && 0 === r5 && (n2 += e4.substring(o4, a4 + 1), o4 = a4 + 1);
3857
+ } else 0 === s ? s = c5 : s === c5 && (s = 0);
3858
+ else i3 = true, a4++;
3862
3859
  }
3863
- if (r3 < t3) {
3864
- var d3 = e4.substring(r3);
3865
- Re(d3) || (n2 += d3);
3860
+ if (o4 < t3) {
3861
+ var p4 = e4.substring(o4);
3862
+ De(p4) || (n2 += p4);
3866
3863
  }
3867
3864
  return n2;
3868
3865
  })((function(e4) {
3869
3866
  if (-1 === e4.indexOf("//")) return e4;
3870
- for (var t3 = e4.length, n2 = [], r3 = 0, o4 = 0, s = 0, i3 = 0; o4 < t3; ) {
3871
- var a3 = e4.charCodeAt(o4);
3872
- if (34 !== a3 && 39 !== a3 || 0 !== o4 && 92 === e4.charCodeAt(o4 - 1)) if (0 === s) if (a3 === Oe && o4 + 1 < t3 && e4.charCodeAt(o4 + 1) === De) {
3873
- for (o4 += 2; o4 + 1 < t3 && (e4.charCodeAt(o4) !== De || e4.charCodeAt(o4 + 1) !== Oe); ) o4++;
3874
- o4 += 2;
3875
- } else if (40 === a3 && o4 >= 3 && 108 == (32 | e4.charCodeAt(o4 - 1)) && 114 == (32 | e4.charCodeAt(o4 - 2)) && 117 == (32 | e4.charCodeAt(o4 - 3))) i3 = 1, o4++;
3876
- else if (i3 > 0) 41 === a3 ? i3-- : 40 === a3 && i3++, o4++;
3877
- else if (a3 === De && o4 + 1 < t3 && e4.charCodeAt(o4 + 1) === Oe) o4 > r3 && n2.push(e4.substring(r3, o4)), r3 = o4 += 2;
3878
- else if (a3 === Oe && o4 + 1 < t3 && e4.charCodeAt(o4 + 1) === Oe) {
3879
- for (o4 > r3 && n2.push(e4.substring(r3, o4)); o4 < t3 && 10 !== e4.charCodeAt(o4); ) o4++;
3880
- r3 = o4;
3881
- } else o4++;
3882
- else o4++;
3883
- else 0 === s ? s = a3 : s === a3 && (s = 0), o4++;
3884
- }
3885
- return 0 === r3 ? e4 : (r3 < t3 && n2.push(e4.substring(r3)), n2.join(""));
3886
- })(e3)), l3 = compile(i2 || o3 ? "".concat(i2, " ").concat(o3, " { ").concat(u3, " }") : u3);
3887
- return a2.namespace && (l3 = Te(l3, a2.namespace)), h2 = [], serialize(l3, p2), h2;
3867
+ for (var t3 = e4.length, n2 = [], o4 = 0, r5 = 0, s = 0, i3 = 0; r5 < t3; ) {
3868
+ var a4 = e4.charCodeAt(r5);
3869
+ if (34 !== a4 && 39 !== a4 || 0 !== r5 && 92 === e4.charCodeAt(r5 - 1)) if (0 === s) if (a4 === Ie && r5 + 1 < t3 && e4.charCodeAt(r5 + 1) === Oe) {
3870
+ for (r5 += 2; r5 + 1 < t3 && (e4.charCodeAt(r5) !== Oe || e4.charCodeAt(r5 + 1) !== Ie); ) r5++;
3871
+ r5 += 2;
3872
+ } else if (40 === a4 && r5 >= 3 && 108 == (32 | e4.charCodeAt(r5 - 1)) && 114 == (32 | e4.charCodeAt(r5 - 2)) && 117 == (32 | e4.charCodeAt(r5 - 3))) i3 = 1, r5++;
3873
+ else if (i3 > 0) 41 === a4 ? i3-- : 40 === a4 && i3++, r5++;
3874
+ else if (a4 === Oe && r5 + 1 < t3 && e4.charCodeAt(r5 + 1) === Ie) r5 > o4 && n2.push(e4.substring(o4, r5)), o4 = r5 += 2;
3875
+ else if (a4 === Ie && r5 + 1 < t3 && e4.charCodeAt(r5 + 1) === Ie) {
3876
+ for (r5 > o4 && n2.push(e4.substring(o4, r5)); r5 < t3 && 10 !== e4.charCodeAt(r5); ) r5++;
3877
+ o4 = r5;
3878
+ } else r5++;
3879
+ else r5++;
3880
+ else 0 === s ? s = a4 : s === a4 && (s = 0), r5++;
3881
+ }
3882
+ return 0 === o4 ? e4 : (o4 < t3 && n2.push(e4.substring(o4)), n2.join(""));
3883
+ })(e3)), l4 = compile(i2 || r4 ? "".concat(i2, " ").concat(r4, " { ").concat(u4, " }") : u4);
3884
+ return a3.namespace && (l4 = Re(l4, a3.namespace)), h3 = [], serialize(l4, d3), h3;
3888
3885
  };
3889
- return f2.hash = u2.length ? u2.reduce(function(e3, t3) {
3890
- return t3.name || se(15), D(e3, t3.name);
3886
+ return f2.hash = u3.length ? u3.reduce(function(e3, t3) {
3887
+ return t3.name || v(15), F(e3, t3.name);
3891
3888
  }, 5381).toString() : "", f2;
3892
3889
  }
3893
- var je = new Pe();
3894
- var ke = xe();
3895
- var Me = { shouldForwardProp: void 0, styleSheet: je, stylis: ke };
3896
- var Ve = p ? { Provider: function(e2) {
3897
- return e2.children;
3898
- }, Consumer: function(e2) {
3899
- return (0, e2.children)(Me);
3900
- } } : r.createContext(Me);
3901
- var Fe = Ve.Consumer;
3902
- var Ge = p ? { Provider: function(e2) {
3903
- return e2.children;
3904
- }, Consumer: function(e2) {
3905
- return (0, e2.children)(void 0);
3906
- } } : r.createContext(void 0);
3907
- function Le() {
3908
- return p ? Me : r.useContext(Ve);
3909
- }
3910
- function Be(e2) {
3911
- if (p || !r.useMemo) return e2.children;
3912
- var t2 = Le().styleSheet, n = r.useMemo(function() {
3890
+ var xe = new _e();
3891
+ var je = Te();
3892
+ var ke = o.createContext({ shouldForwardProp: void 0, styleSheet: xe, stylis: je });
3893
+ var Me = ke.Consumer;
3894
+ var Ve = o.createContext(void 0);
3895
+ function Fe() {
3896
+ return o.useContext(ke);
3897
+ }
3898
+ function Ge(e2) {
3899
+ if (!o.useMemo) return e2.children;
3900
+ var t2 = Fe().styleSheet, n = o.useMemo(function() {
3913
3901
  var n2 = t2;
3914
3902
  return e2.sheet ? n2 = e2.sheet : e2.target && (n2 = n2.reconstructWithOptions({ target: e2.target }, false)), e2.disableCSSOMInjection && (n2 = n2.reconstructWithOptions({ useCSSOMInjection: false })), n2;
3915
- }, [e2.disableCSSOMInjection, e2.sheet, e2.target, t2]), o2 = r.useMemo(function() {
3916
- return xe({ options: { namespace: e2.namespace, prefix: e2.enableVendorPrefixes }, plugins: e2.stylisPlugins });
3917
- }, [e2.enableVendorPrefixes, e2.namespace, e2.stylisPlugins]), s = r.useMemo(function() {
3918
- return { shouldForwardProp: e2.shouldForwardProp, styleSheet: n, stylis: o2 };
3919
- }, [e2.shouldForwardProp, n, o2]);
3920
- return r.createElement(Ve.Provider, { value: s }, r.createElement(Ge.Provider, { value: o2 }, e2.children));
3921
- }
3922
- var ze = (function() {
3903
+ }, [e2.disableCSSOMInjection, e2.sheet, e2.target, t2]), r3 = o.useMemo(function() {
3904
+ return Te({ options: { namespace: e2.namespace, prefix: e2.enableVendorPrefixes }, plugins: e2.stylisPlugins });
3905
+ }, [e2.enableVendorPrefixes, e2.namespace, e2.stylisPlugins]), s = o.useMemo(function() {
3906
+ return { shouldForwardProp: e2.shouldForwardProp, styleSheet: n, stylis: r3 };
3907
+ }, [e2.shouldForwardProp, n, r3]);
3908
+ return o.createElement(ke.Provider, { value: s }, o.createElement(Ve.Provider, { value: r3 }, e2.children));
3909
+ }
3910
+ var Le = (function() {
3923
3911
  function e2(e3, t2) {
3924
3912
  var n = this;
3925
3913
  this.inject = function(e4, t3) {
3926
- void 0 === t3 && (t3 = ke);
3927
- var r2 = n.name + t3.hash;
3928
- e4.hasNameForId(n.id, r2) || e4.insertRules(n.id, r2, t3(n.rules, r2, "@keyframes"));
3929
- }, this.name = e3, this.id = "sc-keyframes-".concat(e3), this.rules = t2, ne(this, function() {
3930
- throw se(12, String(n.name));
3914
+ void 0 === t3 && (t3 = je);
3915
+ var o3 = n.name + t3.hash;
3916
+ e4.hasNameForId(n.id, o3) || e4.insertRules(n.id, o3, t3(n.rules, o3, "@keyframes"));
3917
+ }, this.name = e3, this.id = "sc-keyframes-".concat(e3), this.rules = t2, le(this, function() {
3918
+ throw v(12, String(n.name));
3931
3919
  });
3932
3920
  }
3933
3921
  return e2.prototype.getName = function(e3) {
3934
- return void 0 === e3 && (e3 = ke), this.name + e3.hash;
3922
+ return void 0 === e3 && (e3 = je), this.name + e3.hash;
3935
3923
  }, e2;
3936
3924
  })();
3937
- function $e(e2, t2) {
3925
+ function Be(e2, t2) {
3938
3926
  return null == t2 || "boolean" == typeof t2 || "" === t2 ? "" : "number" != typeof t2 || 0 === t2 || e2 in unitlessKeys || e2.startsWith("--") ? String(t2).trim() : "".concat(t2, "px");
3939
3927
  }
3940
- var Ye = function(e2) {
3928
+ var ze = function(e2) {
3941
3929
  return e2 >= "A" && e2 <= "Z";
3942
3930
  };
3943
- function We(e2) {
3931
+ function $e(e2) {
3944
3932
  for (var t2 = "", n = 0; n < e2.length; n++) {
3945
- var r2 = e2[n];
3946
- if (1 === n && "-" === r2 && "-" === e2[0]) return e2;
3947
- Ye(r2) ? t2 += "-" + r2.toLowerCase() : t2 += r2;
3933
+ var o3 = e2[n];
3934
+ if (1 === n && "-" === o3 && "-" === e2[0]) return e2;
3935
+ ze(o3) ? t2 += "-" + o3.toLowerCase() : t2 += o3;
3948
3936
  }
3949
3937
  return t2.startsWith("ms-") ? "-" + t2 : t2;
3950
3938
  }
3951
- var qe = function(e2) {
3939
+ var Ye = function(e2) {
3952
3940
  return null == e2 || false === e2 || "" === e2;
3953
3941
  };
3954
- var He = function(t2) {
3942
+ var We = function(t2) {
3955
3943
  var n = [];
3956
- for (var r2 in t2) {
3957
- var o2 = t2[r2];
3958
- t2.hasOwnProperty(r2) && !qe(o2) && (Array.isArray(o2) && o2.isCss || X(o2) ? n.push("".concat(We(r2), ":"), o2, ";") : ee(o2) ? n.push.apply(n, __spreadArray(__spreadArray(["".concat(r2, " {")], He(o2), false), ["}"], false)) : n.push("".concat(We(r2), ": ").concat($e(r2, o2), ";")));
3944
+ for (var o3 in t2) {
3945
+ var r3 = t2[o3];
3946
+ t2.hasOwnProperty(o3) && !Ye(r3) && (Array.isArray(r3) && r3.isCss || re(r3) ? n.push("".concat($e(o3), ":"), r3, ";") : ce(r3) ? n.push.apply(n, __spreadArray(__spreadArray(["".concat(o3, " {")], We(r3), false), ["}"], false)) : n.push("".concat($e(o3), ": ").concat(Be(o3, r3), ";")));
3959
3947
  }
3960
3948
  return n;
3961
3949
  };
3962
- function Ue(e2, t2, n, r2, o2) {
3963
- if (void 0 === o2 && (o2 = []), "string" == typeof e2) return e2 && o2.push(e2), o2;
3964
- if (qe(e2)) return o2;
3965
- if (Z(e2)) return o2.push(".".concat(e2.styledComponentId)), o2;
3966
- if (X(e2)) {
3967
- if (!X(i = e2) || i.prototype && i.prototype.isReactComponent || !t2) return o2.push(e2), o2;
3950
+ function qe(e2, t2, n, o3, r3) {
3951
+ if (void 0 === r3 && (r3 = []), "string" == typeof e2) return e2 && r3.push(e2), r3;
3952
+ if (Ye(e2)) return r3;
3953
+ if (se(e2)) return r3.push(".".concat(e2.styledComponentId)), r3;
3954
+ if (re(e2)) {
3955
+ if (!re(i = e2) || i.prototype && i.prototype.isReactComponent || !t2) return r3.push(e2), r3;
3968
3956
  var s = e2(t2);
3969
- return "object" != typeof s || Array.isArray(s) || s instanceof ze || ee(s) || null === s || console.error("".concat(x(e2), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), Ue(s, t2, n, r2, o2);
3957
+ return "object" != typeof s || Array.isArray(s) || s instanceof Le || ce(s) || null === s || console.error("".concat(B(e2), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), qe(s, t2, n, o3, r3);
3970
3958
  }
3971
3959
  var i;
3972
- if (e2 instanceof ze) return n ? (e2.inject(n, r2), o2.push(e2.getName(r2))) : o2.push(e2), o2;
3973
- if (ee(e2)) {
3974
- for (var a2 = He(e2), c2 = 0; c2 < a2.length; c2++) o2.push(a2[c2]);
3975
- return o2;
3960
+ if (e2 instanceof Le) return n ? (e2.inject(n, o3), r3.push(e2.getName(o3))) : r3.push(e2), r3;
3961
+ if (ce(e2)) {
3962
+ for (var a3 = We(e2), c3 = 0; c3 < a3.length; c3++) r3.push(a3[c3]);
3963
+ return r3;
3976
3964
  }
3977
- if (!Array.isArray(e2)) return o2.push(e2.toString()), o2;
3978
- for (c2 = 0; c2 < e2.length; c2++) Ue(e2[c2], t2, n, r2, o2);
3979
- return o2;
3965
+ if (!Array.isArray(e2)) return r3.push(e2.toString()), r3;
3966
+ for (c3 = 0; c3 < e2.length; c3++) qe(e2[c3], t2, n, o3, r3);
3967
+ return r3;
3980
3968
  }
3981
- function Je(e2) {
3969
+ function He(e2) {
3982
3970
  for (var t2 = 0; t2 < e2.length; t2 += 1) {
3983
3971
  var n = e2[t2];
3984
- if (X(n) && !Z(n)) return false;
3972
+ if (re(n) && !se(n)) return false;
3985
3973
  }
3986
3974
  return true;
3987
3975
  }
3988
- var Xe = R(l);
3989
- var Ze = (function() {
3976
+ var Ue = G(l);
3977
+ var Je = (function() {
3990
3978
  function e2(e3, t2, n) {
3991
- this.rules = e3, this.staticRulesId = "", this.isStatic = false, this.componentId = t2, this.baseHash = D(Xe, t2), this.baseStyle = n, Pe.registerId(t2);
3979
+ this.rules = e3, this.staticRulesId = "", this.isStatic = false, this.componentId = t2, this.baseHash = F(Ue, t2), this.baseStyle = n, _e.registerId(t2);
3992
3980
  }
3993
3981
  return e2.prototype.generateAndInjectStyles = function(e3, t2, n) {
3994
- var r2 = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e3, t2, n).className : "";
3995
- if (this.isStatic && !n.hash) if (this.staticRulesId && t2.hasNameForId(this.componentId, this.staticRulesId)) r2 = K(r2, this.staticRulesId);
3982
+ var o3 = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e3, t2, n).className : "";
3983
+ if (this.isStatic && !n.hash) if (this.staticRulesId && t2.hasNameForId(this.componentId, this.staticRulesId)) o3 = ie(o3, this.staticRulesId);
3996
3984
  else {
3997
- var o2 = Q(Ue(this.rules, e3, t2, n)), s = I(D(this.baseHash, o2) >>> 0);
3985
+ var r3 = ae(qe(this.rules, e3, t2, n)), s = M(F(this.baseHash, r3) >>> 0);
3998
3986
  if (!t2.hasNameForId(this.componentId, s)) {
3999
- var i = n(o2, ".".concat(s), void 0, this.componentId);
3987
+ var i = n(r3, ".".concat(s), void 0, this.componentId);
4000
3988
  t2.insertRules(this.componentId, s, i);
4001
3989
  }
4002
- r2 = K(r2, s), this.staticRulesId = s;
3990
+ o3 = ie(o3, s), this.staticRulesId = s;
4003
3991
  }
4004
3992
  else {
4005
- for (var a2 = D(this.baseHash, n.hash), c2 = "", u2 = 0; u2 < this.rules.length; u2++) {
4006
- var l2 = this.rules[u2];
4007
- if ("string" == typeof l2) c2 += l2, a2 = D(a2, l2);
4008
- else if (l2) {
4009
- var d2 = Q(Ue(l2, e3, t2, n));
4010
- a2 = D(D(a2, String(u2)), d2), c2 += d2;
3993
+ for (var a3 = F(this.baseHash, n.hash), c3 = "", u3 = 0; u3 < this.rules.length; u3++) {
3994
+ var l3 = this.rules[u3];
3995
+ if ("string" == typeof l3) c3 += l3, a3 = F(a3, l3);
3996
+ else if (l3) {
3997
+ var p3 = ae(qe(l3, e3, t2, n));
3998
+ a3 = F(F(a3, String(u3)), p3), c3 += p3;
4011
3999
  }
4012
4000
  }
4013
- if (c2) {
4014
- var h2 = I(a2 >>> 0);
4015
- if (!t2.hasNameForId(this.componentId, h2)) {
4016
- var p2 = n(c2, ".".concat(h2), void 0, this.componentId);
4017
- t2.insertRules(this.componentId, h2, p2);
4001
+ if (c3) {
4002
+ var h3 = M(a3 >>> 0);
4003
+ if (!t2.hasNameForId(this.componentId, h3)) {
4004
+ var d3 = n(c3, ".".concat(h3), void 0, this.componentId);
4005
+ t2.insertRules(this.componentId, h3, d3);
4018
4006
  }
4019
- r2 = K(r2, h2);
4007
+ o3 = ie(o3, h3);
4020
4008
  }
4021
4009
  }
4022
- return { className: r2, css: "undefined" == typeof window ? t2.getTag().getGroup(de(this.componentId)) : "" };
4010
+ return { className: o3, css: "undefined" == typeof window ? t2.getTag().getGroup(N(this.componentId)) : "" };
4023
4011
  }, e2;
4024
4012
  })();
4025
- var Ke = p ? { Provider: function(e2) {
4026
- return e2.children;
4027
- }, Consumer: function(e2) {
4028
- return (0, e2.children)(void 0);
4029
- } } : r.createContext(void 0);
4030
- var Qe = Ke.Consumer;
4031
- function tt(e2) {
4032
- if (p) return e2.children;
4033
- var n = r.useContext(Ke), o2 = r.useMemo(function() {
4013
+ var Xe = o.createContext(void 0);
4014
+ var Ze = Xe.Consumer;
4015
+ function Qe(e2) {
4016
+ var n = o.useContext(Xe), r3 = o.useMemo(function() {
4034
4017
  return (function(e3, n2) {
4035
- if (!e3) throw se(14);
4036
- if (X(e3)) {
4037
- var r2 = e3(n2);
4038
- if (null === r2 || Array.isArray(r2) || "object" != typeof r2) throw se(7);
4039
- return r2;
4018
+ if (!e3) throw v(14);
4019
+ if (re(e3)) {
4020
+ var o3 = e3(n2);
4021
+ if (null === o3 || Array.isArray(o3) || "object" != typeof o3) throw v(7);
4022
+ return o3;
4040
4023
  }
4041
- if (Array.isArray(e3) || "object" != typeof e3) throw se(8);
4024
+ if (Array.isArray(e3) || "object" != typeof e3) throw v(8);
4042
4025
  return n2 ? __assign(__assign({}, n2), e3) : e3;
4043
4026
  })(e2.theme, n);
4044
4027
  }, [e2.theme, n]);
4045
- return e2.children ? r.createElement(Ke.Provider, { value: o2 }, e2.children) : null;
4046
- }
4047
- var nt = {};
4048
- var rt = /* @__PURE__ */ new Set();
4049
- function ot(e2, s, i) {
4050
- var a2 = Z(e2), c2 = e2, u2 = !j(e2), d2 = s.attrs, h2 = void 0 === d2 ? S : d2, f2 = s.componentId, m2 = void 0 === f2 ? (function(e3, t2) {
4051
- var n = "string" != typeof e3 ? "sc" : A(e3);
4052
- nt[n] = (nt[n] || 0) + 1;
4053
- var r2 = "".concat(n, "-").concat(T(l + n + nt[n]));
4054
- return t2 ? "".concat(t2, "-").concat(r2) : r2;
4055
- })(s.displayName, s.parentComponentId) : f2, y2 = s.displayName, v2 = void 0 === y2 ? (function(e3) {
4056
- return j(e3) ? "styled.".concat(e3) : "Styled(".concat(x(e3), ")");
4057
- })(e2) : y2, E2 = s.displayName && s.componentId ? "".concat(A(s.displayName), "-").concat(s.componentId) : s.componentId || m2, C2 = a2 && c2.attrs ? c2.attrs.concat(h2).filter(Boolean) : h2, _2 = s.shouldForwardProp;
4058
- if (a2 && c2.shouldForwardProp) {
4059
- var P2 = c2.shouldForwardProp;
4028
+ return e2.children ? o.createElement(Xe.Provider, { value: r3 }, e2.children) : null;
4029
+ }
4030
+ var et = {};
4031
+ var tt = /* @__PURE__ */ new Set();
4032
+ function nt(e2, s, i) {
4033
+ var a3 = se(e2), c3 = e2, u3 = !z(e2), p3 = s.attrs, h3 = void 0 === p3 ? P : p3, d3 = s.componentId, f2 = void 0 === d3 ? (function(e3, t2) {
4034
+ var n = "string" != typeof e3 ? "sc" : x(e3);
4035
+ et[n] = (et[n] || 0) + 1;
4036
+ var o3 = "".concat(n, "-").concat(L(l + n + et[n]));
4037
+ return t2 ? "".concat(t2, "-").concat(o3) : o3;
4038
+ })(s.displayName, s.parentComponentId) : d3, m3 = s.displayName, y3 = void 0 === m3 ? (function(e3) {
4039
+ return z(e3) ? "styled.".concat(e3) : "Styled(".concat(B(e3), ")");
4040
+ })(e2) : m3, v3 = s.displayName && s.componentId ? "".concat(x(s.displayName), "-").concat(s.componentId) : s.componentId || f2, g3 = a3 && c3.attrs ? c3.attrs.concat(h3).filter(Boolean) : h3, S3 = s.shouldForwardProp;
4041
+ if (a3 && c3.shouldForwardProp) {
4042
+ var w3 = c3.shouldForwardProp;
4060
4043
  if (s.shouldForwardProp) {
4061
- var I2 = s.shouldForwardProp;
4062
- _2 = function(e3, t2) {
4063
- return P2(e3, t2) && I2(e3, t2);
4044
+ var b3 = s.shouldForwardProp;
4045
+ S3 = function(e3, t2) {
4046
+ return w3(e3, t2) && b3(e3, t2);
4064
4047
  };
4065
- } else _2 = P2;
4048
+ } else S3 = w3;
4066
4049
  }
4067
- var O2 = new Ze(i, E2, a2 ? c2.componentStyle : void 0);
4068
- function D2(e3, s2) {
4050
+ var N3 = new Je(i, v3, a3 ? c3.componentStyle : void 0);
4051
+ function E3(e3, s2) {
4069
4052
  return (function(e4, s3, i2) {
4070
- var a3 = e4.attrs, c3 = e4.componentStyle, u3 = e4.defaultProps, l2 = e4.foldedComponentIds, d3 = e4.styledComponentId, h3 = e4.target, f3 = p ? void 0 : r.useContext(Ke), m3 = Le(), y3 = e4.shouldForwardProp || m3.shouldForwardProp;
4071
- r.useDebugValue && r.useDebugValue(d3);
4072
- var v3 = b(s3, f3, u3) || (p ? void 0 : w), g2 = (function(e5, n, r2) {
4073
- for (var o2, s4 = __assign(__assign({}, n), { className: void 0, theme: r2 }), i3 = 0; i3 < e5.length; i3 += 1) {
4074
- var a4 = X(o2 = e5[i3]) ? o2(s4) : o2;
4075
- for (var c4 in a4) "className" === c4 ? s4.className = K(s4.className, a4[c4]) : "style" === c4 ? s4.style = __assign(__assign({}, s4.style), a4[c4]) : s4[c4] = a4[c4];
4053
+ var a4 = e4.attrs, c4 = e4.componentStyle, u4 = e4.defaultProps, l3 = e4.foldedComponentIds, p4 = e4.styledComponentId, h4 = e4.target, d4 = o.useContext(Xe), f3 = Fe(), m4 = e4.shouldForwardProp || f3.shouldForwardProp;
4054
+ o.useDebugValue && o.useDebugValue(p4);
4055
+ var y4 = O(s3, d4, u4) || I, v5 = (function(e5, n, o3) {
4056
+ for (var r3, s4 = __assign(__assign({}, n), { className: void 0, theme: o3 }), i3 = 0; i3 < e5.length; i3 += 1) {
4057
+ var a5 = re(r3 = e5[i3]) ? r3(s4) : r3;
4058
+ for (var c5 in a5) "className" === c5 ? s4.className = ie(s4.className, a5[c5]) : "style" === c5 ? s4.style = __assign(__assign({}, s4.style), a5[c5]) : s4[c5] = a5[c5];
4076
4059
  }
4077
- return "className" in n && "string" == typeof n.className && (s4.className = K(s4.className, n.className)), s4;
4078
- })(a3, s3, v3), S2 = g2.as || h3, E3 = {};
4079
- for (var C3 in g2) void 0 === g2[C3] || "$" === C3[0] || "as" === C3 || "theme" === C3 && g2.theme === v3 || ("forwardedAs" === C3 ? E3.as = g2.forwardedAs : y3 && !y3(C3, S2) || (E3[C3] = g2[C3], y3 || false || isPropValid(C3) || rt.has(C3) || !N.has(S2) || (rt.add(C3), console.warn('styled-components: it looks like an unknown prop "'.concat(C3, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
4080
- var A2 = (function(e5, t2) {
4081
- var n = Le(), o2 = e5.generateAndInjectStyles(t2, n.styleSheet, n.stylis);
4082
- return r.useDebugValue && r.useDebugValue(o2.className), o2;
4083
- })(c3, g2), _3 = A2.className, P3 = A2.css;
4084
- e4.warnTooManyClasses && e4.warnTooManyClasses(_3);
4085
- var I3 = K(l2, d3);
4086
- _3 && (I3 += " " + _3), g2.className && (I3 += " " + g2.className), E3[j(S2) && !N.has(S2) ? "class" : "className"] = I3, i2 && (E3.ref = i2);
4087
- var O3 = o(S2, E3);
4088
- return p && P3 ? r.createElement(r.Fragment, null, r.createElement("style", { precedence: "styled-components", href: "sc-".concat(d3, "-").concat(_3), children: P3 }), O3) : O3;
4089
- })(R2, e3, s2);
4090
- }
4091
- D2.displayName = v2;
4092
- var R2 = r.forwardRef(D2);
4093
- return R2.attrs = C2, R2.componentStyle = O2, R2.displayName = v2, R2.shouldForwardProp = _2, R2.foldedComponentIds = a2 ? K(c2.foldedComponentIds, c2.styledComponentId) : "", R2.styledComponentId = E2, R2.target = a2 ? c2.target : e2, Object.defineProperty(R2, "defaultProps", { get: function() {
4060
+ return "className" in n && "string" == typeof n.className && (s4.className = ie(s4.className, n.className)), s4;
4061
+ })(a4, s3, y4), g4 = v5.as || h4, S4 = {};
4062
+ for (var w4 in v5) void 0 === v5[w4] || "$" === w4[0] || "as" === w4 || "theme" === w4 && v5.theme === y4 || ("forwardedAs" === w4 ? S4.as = v5.forwardedAs : m4 && !m4(w4, g4) || (S4[w4] = v5[w4], m4 || false || isPropValid(w4) || tt.has(w4) || !D.has(g4) || (tt.add(w4), console.warn('styled-components: it looks like an unknown prop "'.concat(w4, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
4063
+ var b4 = (function(e5, t2) {
4064
+ var n = Fe(), r3 = e5.generateAndInjectStyles(t2, n.styleSheet, n.stylis);
4065
+ return o.useDebugValue && o.useDebugValue(r3.className), r3;
4066
+ })(c4, v5), N4 = b4.className;
4067
+ e4.warnTooManyClasses && e4.warnTooManyClasses(N4);
4068
+ var E4 = ie(l3, p4);
4069
+ return N4 && (E4 += " " + N4), v5.className && (E4 += " " + v5.className), S4[z(g4) && !D.has(g4) ? "class" : "className"] = E4, i2 && (S4.ref = i2), r(g4, S4);
4070
+ })(C3, e3, s2);
4071
+ }
4072
+ E3.displayName = y3;
4073
+ var C3 = o.forwardRef(E3);
4074
+ return C3.attrs = g3, C3.componentStyle = N3, C3.displayName = y3, C3.shouldForwardProp = S3, C3.foldedComponentIds = a3 ? ie(c3.foldedComponentIds, c3.styledComponentId) : "", C3.styledComponentId = v3, C3.target = a3 ? c3.target : e2, Object.defineProperty(C3, "defaultProps", { get: function() {
4094
4075
  return this._foldedDefaultProps;
4095
4076
  }, set: function(e3) {
4096
- this._foldedDefaultProps = a2 ? (function(e4) {
4077
+ this._foldedDefaultProps = a3 ? (function(e4) {
4097
4078
  for (var t2 = [], n = 1; n < arguments.length; n++) t2[n - 1] = arguments[n];
4098
- for (var r2 = 0, o2 = t2; r2 < o2.length; r2++) te(e4, o2[r2], true);
4079
+ for (var o3 = 0, r3 = t2; o3 < r3.length; o3++) ue(e4, r3[o3], true);
4099
4080
  return e4;
4100
- })({}, c2.defaultProps, e3) : e3;
4101
- } }), g(v2, E2), R2.warnTooManyClasses = /* @__PURE__ */ (function(e3, t2) {
4102
- var n = {}, r2 = false;
4103
- return function(o2) {
4104
- if (!r2 && (n[o2] = true, Object.keys(n).length >= 200)) {
4081
+ })({}, c3.defaultProps, e3) : e3;
4082
+ } }), _(y3, v3), C3.warnTooManyClasses = /* @__PURE__ */ (function(e3, t2) {
4083
+ var n = {}, o3 = false;
4084
+ return function(r3) {
4085
+ if (!o3 && (n[r3] = true, Object.keys(n).length >= 200)) {
4105
4086
  var s2 = t2 ? ' with the id of "'.concat(t2, '"') : "";
4106
- console.warn("Over ".concat(200, " classes were generated for component ").concat(e3).concat(s2, ".\n") + "Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"), r2 = true, n = {};
4087
+ console.warn("Over ".concat(200, " classes were generated for component ").concat(e3).concat(s2, ".\n") + "Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"), o3 = true, n = {};
4107
4088
  }
4108
4089
  };
4109
- })(v2, E2), ne(R2, function() {
4110
- return ".".concat(R2.styledComponentId);
4111
- }), u2 && J(R2, e2, { attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, shouldForwardProp: true, styledComponentId: true, target: true }), R2;
4090
+ })(y3, v3), le(C3, function() {
4091
+ return ".".concat(C3.styledComponentId);
4092
+ }), u3 && oe(C3, e2, { attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, shouldForwardProp: true, styledComponentId: true, target: true }), C3;
4112
4093
  }
4113
- function st(e2, t2) {
4114
- for (var n = [e2[0]], r2 = 0, o2 = t2.length; r2 < o2; r2 += 1) n.push(t2[r2], e2[r2 + 1]);
4094
+ function ot(e2, t2) {
4095
+ for (var n = [e2[0]], o3 = 0, r3 = t2.length; o3 < r3; o3 += 1) n.push(t2[o3], e2[o3 + 1]);
4115
4096
  return n;
4116
4097
  }
4117
- var it = function(e2) {
4098
+ var rt = function(e2) {
4118
4099
  return Object.assign(e2, { isCss: true });
4119
4100
  };
4120
- function at(t2) {
4121
- for (var n = [], r2 = 1; r2 < arguments.length; r2++) n[r2 - 1] = arguments[r2];
4122
- if (X(t2) || ee(t2)) return it(Ue(st(S, __spreadArray([t2], n, true))));
4123
- var o2 = t2;
4124
- return 0 === n.length && 1 === o2.length && "string" == typeof o2[0] ? Ue(o2) : it(Ue(st(o2, n)));
4101
+ function st(t2) {
4102
+ for (var n = [], o3 = 1; o3 < arguments.length; o3++) n[o3 - 1] = arguments[o3];
4103
+ if (re(t2) || ce(t2)) return rt(qe(ot(P, __spreadArray([t2], n, true))));
4104
+ var r3 = t2;
4105
+ return 0 === n.length && 1 === r3.length && "string" == typeof r3[0] ? qe(r3) : rt(qe(ot(r3, n)));
4125
4106
  }
4126
- function ct(n, r2, o2) {
4127
- if (void 0 === o2 && (o2 = w), !r2) throw se(1, r2);
4107
+ function it(n, o3, r3) {
4108
+ if (void 0 === r3 && (r3 = I), !o3) throw v(1, o3);
4128
4109
  var s = function(t2) {
4129
4110
  for (var s2 = [], i = 1; i < arguments.length; i++) s2[i - 1] = arguments[i];
4130
- return n(r2, o2, at.apply(void 0, __spreadArray([t2], s2, false)));
4111
+ return n(o3, r3, st.apply(void 0, __spreadArray([t2], s2, false)));
4131
4112
  };
4132
4113
  return s.attrs = function(e2) {
4133
- return ct(n, r2, __assign(__assign({}, o2), { attrs: Array.prototype.concat(o2.attrs, e2).filter(Boolean) }));
4114
+ return it(n, o3, __assign(__assign({}, r3), { attrs: Array.prototype.concat(r3.attrs, e2).filter(Boolean) }));
4134
4115
  }, s.withConfig = function(e2) {
4135
- return ct(n, r2, __assign(__assign({}, o2), e2));
4116
+ return it(n, o3, __assign(__assign({}, r3), e2));
4136
4117
  }, s;
4137
4118
  }
4138
- var ut = function(e2) {
4139
- return ct(ot, e2);
4119
+ var at = function(e2) {
4120
+ return it(nt, e2);
4140
4121
  };
4141
- var lt = ut;
4142
- N.forEach(function(e2) {
4143
- lt[e2] = ut(e2);
4122
+ var ct = at;
4123
+ D.forEach(function(e2) {
4124
+ ct[e2] = at(e2);
4144
4125
  });
4145
- var dt = (function() {
4126
+ var ut = (function() {
4146
4127
  function e2(e3, t2) {
4147
- this.rules = e3, this.componentId = t2, this.isStatic = Je(e3), Pe.registerId(this.componentId + 1);
4128
+ this.rules = e3, this.componentId = t2, this.isStatic = He(e3), _e.registerId(this.componentId + 1);
4148
4129
  }
4149
- return e2.prototype.createStyles = function(e3, t2, n, r2) {
4150
- var o2 = r2(Q(Ue(this.rules, t2, n, r2)), ""), s = this.componentId + e3;
4151
- n.insertRules(s, s, o2);
4130
+ return e2.prototype.createStyles = function(e3, t2, n, o3) {
4131
+ var r3 = o3(ae(qe(this.rules, t2, n, o3)), ""), s = this.componentId + e3;
4132
+ n.insertRules(s, s, r3);
4152
4133
  }, e2.prototype.removeStyles = function(e3, t2) {
4153
4134
  t2.clearRules(this.componentId + e3);
4154
- }, e2.prototype.renderStyles = function(e3, t2, n, r2) {
4155
- e3 > 2 && Pe.registerId(this.componentId + e3);
4156
- var o2 = this.componentId + e3;
4157
- this.isStatic ? n.hasNameForId(o2, o2) || this.createStyles(e3, t2, n, r2) : (this.removeStyles(e3, n), this.createStyles(e3, t2, n, r2));
4135
+ }, e2.prototype.renderStyles = function(e3, t2, n, o3) {
4136
+ e3 > 2 && _e.registerId(this.componentId + e3);
4137
+ var r3 = this.componentId + e3;
4138
+ this.isStatic ? n.hasNameForId(r3, r3) || this.createStyles(e3, t2, n, o3) : (this.removeStyles(e3, n), this.createStyles(e3, t2, n, o3));
4158
4139
  }, e2;
4159
4140
  })();
4160
- function ht(n) {
4161
- for (var o2 = [], s = 1; s < arguments.length; s++) o2[s - 1] = arguments[s];
4162
- var i = at.apply(void 0, __spreadArray([n], o2, false)), a2 = "sc-global-".concat(T(JSON.stringify(i))), c2 = new dt(i, a2);
4163
- g(a2);
4164
- var u2 = /* @__PURE__ */ new WeakMap(), l2 = function(e2) {
4165
- var t2 = Le(), n2 = p ? void 0 : r.useContext(Ke), o3 = u2.get(t2.styleSheet);
4166
- if (void 0 === o3 && (o3 = t2.styleSheet.allocateGSInstance(a2), u2.set(t2.styleSheet, o3)), r.Children.count(e2.children) && console.warn("The global style component ".concat(a2, " was given child JSX. createGlobalStyle does not render children.")), i.some(function(e3) {
4167
- return "string" == typeof e3 && -1 !== e3.indexOf("@import");
4168
- }) && console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."), ("undefined" == typeof window || !t2.styleSheet.server) && d2(o3, e2, t2.styleSheet, n2, t2.stylis), p || r.useLayoutEffect(function() {
4169
- return t2.styleSheet.server || d2(o3, e2, t2.styleSheet, n2, t2.stylis), function() {
4170
- var e3;
4171
- c2.removeStyles(o3, t2.styleSheet), e3 = t2.styleSheet.options.target, "undefined" != typeof document && (null != e3 ? e3 : document).querySelectorAll('style[data-styled-global="'.concat(a2, '"]')).forEach(function(e4) {
4172
- return e4.remove();
4173
- });
4174
- };
4175
- }, [o3, e2, t2.styleSheet, n2, t2.stylis]), p) {
4176
- var s2 = a2 + o3, l3 = "undefined" == typeof window ? t2.styleSheet.getTag().getGroup(de(s2)) : "";
4177
- if (l3) return r.createElement("style", { key: "".concat(a2, "-").concat(o3), "data-styled-global": a2, children: l3 });
4178
- }
4179
- return null;
4180
- };
4181
- function d2(e2, n2, r2, o3, s2) {
4182
- if (c2.isStatic) c2.renderStyles(e2, m, r2, s2);
4183
- else {
4184
- var i2 = __assign(__assign({}, n2), { theme: b(n2, o3, l2.defaultProps) });
4185
- c2.renderStyles(e2, i2, r2, s2);
4186
- }
4187
- }
4188
- return r.memo(l2);
4189
- }
4190
4141
  function pt(t2) {
4191
- for (var n = [], r2 = 1; r2 < arguments.length; r2++) n[r2 - 1] = arguments[r2];
4142
+ for (var n = [], o3 = 1; o3 < arguments.length; o3++) n[o3 - 1] = arguments[o3];
4192
4143
  "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
4193
- var o2 = Q(at.apply(void 0, __spreadArray([t2], n, false))), s = T(o2);
4194
- return new ze(s, o2);
4144
+ var r3 = ae(st.apply(void 0, __spreadArray([t2], n, false))), s = L(r3);
4145
+ return new Le(s, r3);
4195
4146
  }
4196
- var mt = (function() {
4147
+ var dt = (function() {
4197
4148
  function e2() {
4198
4149
  var e3 = this;
4199
4150
  this._emitSheetCSS = function() {
4200
4151
  var t2 = e3.instance.toString();
4201
4152
  if (!t2) return "";
4202
- var n = we(), r2 = Q([n && 'nonce="'.concat(n, '"'), "".concat(a, '="true"'), "".concat(u, '="').concat(l, '"')].filter(Boolean), " ");
4203
- return "<style ".concat(r2, ">").concat(t2, "</style>");
4153
+ var n = Se(), o3 = ae([n && 'nonce="'.concat(n, '"'), "".concat(a, '="true"'), "".concat(u, '="').concat(l, '"')].filter(Boolean), " ");
4154
+ return "<style ".concat(o3, ">").concat(t2, "</style>");
4204
4155
  }, this.getStyleTags = function() {
4205
- if (e3.sealed) throw se(2);
4156
+ if (e3.sealed) throw v(2);
4206
4157
  return e3._emitSheetCSS();
4207
4158
  }, this.getStyleElement = function() {
4208
4159
  var n;
4209
- if (e3.sealed) throw se(2);
4210
- var o2 = e3.instance.toString();
4211
- if (!o2) return [];
4212
- var s = ((n = {})[a] = "", n[u] = l, n.dangerouslySetInnerHTML = { __html: o2 }, n), i = we();
4213
- return i && (s.nonce = i), [r.createElement("style", __assign({}, s, { key: "sc-0-0" }))];
4160
+ if (e3.sealed) throw v(2);
4161
+ var r3 = e3.instance.toString();
4162
+ if (!r3) return [];
4163
+ var s = ((n = {})[a] = "", n[u] = l, n.dangerouslySetInnerHTML = { __html: r3 }, n), i = Se();
4164
+ return i && (s.nonce = i), [o.createElement("style", __assign({}, s, { key: "sc-0-0" }))];
4214
4165
  }, this.seal = function() {
4215
4166
  e3.sealed = true;
4216
- }, this.instance = new Pe({ isServer: true }), this.sealed = false;
4167
+ }, this.instance = new _e({ isServer: true }), this.sealed = false;
4217
4168
  }
4218
4169
  return e2.prototype.collectStyles = function(e3) {
4219
- if (this.sealed) throw se(2);
4220
- return r.createElement(Be, { sheet: this.instance }, e3);
4170
+ if (this.sealed) throw v(2);
4171
+ return o.createElement(Ge, { sheet: this.instance }, e3);
4221
4172
  }, e2.prototype.interleaveWithNodeStream = function(e3) {
4222
- throw se(3);
4173
+ throw v(3);
4223
4174
  }, e2;
4224
4175
  })();
4225
4176
  "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");
4226
- var vt = "__sc-".concat(a, "__");
4227
- "undefined" != typeof window && (window[vt] || (window[vt] = 0), 1 === window[vt] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info."), window[vt] += 1);
4177
+ var mt = "__sc-".concat(a, "__");
4178
+ "undefined" != typeof window && (window[mt] || (window[mt] = 0), 1 === window[mt] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info."), window[mt] += 1);
4228
4179
 
4229
4180
  // src/utils/style.ts
4230
4181
  function attr(key, value) {
4231
4182
  if (typeof value !== "undefined") {
4232
- return at`
4183
+ return st`
4233
4184
  ${key}: ${value};
4234
4185
  `;
4235
4186
  }
@@ -4407,9 +4358,9 @@ var makeString = (object) => {
4407
4358
  if (object == null) return "";
4408
4359
  return "" + object;
4409
4360
  };
4410
- var copy2 = (a2, s, t2) => {
4411
- a2.forEach((m2) => {
4412
- if (s[m2]) t2[m2] = s[m2];
4361
+ var copy2 = (a3, s, t2) => {
4362
+ a3.forEach((m3) => {
4363
+ if (s[m3]) t2[m3] = s[m3];
4413
4364
  });
4414
4365
  };
4415
4366
  var lastOfPathSeparatorRegExp = /###/g;
@@ -4438,19 +4389,19 @@ var getLastOfPath = (object, path, Empty) => {
4438
4389
  var setPath = (object, path, newValue) => {
4439
4390
  const {
4440
4391
  obj,
4441
- k: k2
4392
+ k: k3
4442
4393
  } = getLastOfPath(object, path, Object);
4443
4394
  if (obj !== void 0 || path.length === 1) {
4444
- obj[k2] = newValue;
4395
+ obj[k3] = newValue;
4445
4396
  return;
4446
4397
  }
4447
4398
  let e2 = path[path.length - 1];
4448
- let p2 = path.slice(0, path.length - 1);
4449
- let last = getLastOfPath(object, p2, Object);
4450
- while (last.obj === void 0 && p2.length) {
4451
- e2 = `${p2[p2.length - 1]}.${e2}`;
4452
- p2 = p2.slice(0, p2.length - 1);
4453
- last = getLastOfPath(object, p2, Object);
4399
+ let p3 = path.slice(0, path.length - 1);
4400
+ let last = getLastOfPath(object, p3, Object);
4401
+ while (last.obj === void 0 && p3.length) {
4402
+ e2 = `${p3[p3.length - 1]}.${e2}`;
4403
+ p3 = p3.slice(0, p3.length - 1);
4404
+ last = getLastOfPath(object, p3, Object);
4454
4405
  if (last?.obj && typeof last.obj[`${last.k}.${e2}`] !== "undefined") {
4455
4406
  last.obj = void 0;
4456
4407
  }
@@ -4460,19 +4411,19 @@ var setPath = (object, path, newValue) => {
4460
4411
  var pushPath = (object, path, newValue, concat) => {
4461
4412
  const {
4462
4413
  obj,
4463
- k: k2
4414
+ k: k3
4464
4415
  } = getLastOfPath(object, path, Object);
4465
- obj[k2] = obj[k2] || [];
4466
- obj[k2].push(newValue);
4416
+ obj[k3] = obj[k3] || [];
4417
+ obj[k3].push(newValue);
4467
4418
  };
4468
4419
  var getPath = (object, path) => {
4469
4420
  const {
4470
4421
  obj,
4471
- k: k2
4422
+ k: k3
4472
4423
  } = getLastOfPath(object, path);
4473
4424
  if (!obj) return void 0;
4474
- if (!Object.prototype.hasOwnProperty.call(obj, k2)) return void 0;
4475
- return obj[k2];
4425
+ if (!Object.prototype.hasOwnProperty.call(obj, k3)) return void 0;
4426
+ return obj[k3];
4476
4427
  };
4477
4428
  var getPathWithDefaults = (data, defaultData, key) => {
4478
4429
  const value = getPath(data, key);
@@ -4537,13 +4488,13 @@ var looksLikeObjectPathRegExpCache = new RegExpCache(20);
4537
4488
  var looksLikeObjectPath = (key, nsSeparator, keySeparator) => {
4538
4489
  nsSeparator = nsSeparator || "";
4539
4490
  keySeparator = keySeparator || "";
4540
- const possibleChars = chars.filter((c2) => nsSeparator.indexOf(c2) < 0 && keySeparator.indexOf(c2) < 0);
4491
+ const possibleChars = chars.filter((c3) => nsSeparator.indexOf(c3) < 0 && keySeparator.indexOf(c3) < 0);
4541
4492
  if (possibleChars.length === 0) return true;
4542
- const r2 = looksLikeObjectPathRegExpCache.getRegExp(`(${possibleChars.map((c2) => c2 === "?" ? "\\?" : c2).join("|")})`);
4543
- let matched = !r2.test(key);
4493
+ const r3 = looksLikeObjectPathRegExpCache.getRegExp(`(${possibleChars.map((c3) => c3 === "?" ? "\\?" : c3).join("|")})`);
4494
+ let matched = !r3.test(key);
4544
4495
  if (!matched) {
4545
4496
  const ki = key.indexOf(keySeparator);
4546
- if (ki > 0 && !r2.test(key.substring(0, ki))) {
4497
+ if (ki > 0 && !r3.test(key.substring(0, ki))) {
4547
4498
  matched = true;
4548
4499
  }
4549
4500
  }
@@ -4563,17 +4514,17 @@ var deepFind = (obj, path, keySeparator = ".") => {
4563
4514
  }
4564
4515
  let next2;
4565
4516
  let nextPath = "";
4566
- for (let j2 = i; j2 < tokens.length; ++j2) {
4567
- if (j2 !== i) {
4517
+ for (let j3 = i; j3 < tokens.length; ++j3) {
4518
+ if (j3 !== i) {
4568
4519
  nextPath += keySeparator;
4569
4520
  }
4570
- nextPath += tokens[j2];
4521
+ nextPath += tokens[j3];
4571
4522
  next2 = current[nextPath];
4572
4523
  if (next2 !== void 0) {
4573
- if (["string", "number", "boolean"].indexOf(typeof next2) > -1 && j2 < tokens.length - 1) {
4524
+ if (["string", "number", "boolean"].indexOf(typeof next2) > -1 && j3 < tokens.length - 1) {
4574
4525
  continue;
4575
4526
  }
4576
- i += j2 - i + 1;
4527
+ i += j3 - i + 1;
4577
4528
  break;
4578
4529
  }
4579
4530
  }
@@ -4749,8 +4700,8 @@ var ResourceStore = class extends EventEmitter {
4749
4700
  addResources(lng, ns, resources, options = {
4750
4701
  silent: false
4751
4702
  }) {
4752
- for (const m2 in resources) {
4753
- if (isString(resources[m2]) || Array.isArray(resources[m2])) this.addResource(lng, ns, m2, resources[m2], {
4703
+ for (const m3 in resources) {
4704
+ if (isString(resources[m3]) || Array.isArray(resources[m3])) this.addResource(lng, ns, m3, resources[m3], {
4754
4705
  silent: true
4755
4706
  });
4756
4707
  }
@@ -4801,7 +4752,7 @@ var ResourceStore = class extends EventEmitter {
4801
4752
  hasLanguageSomeTranslations(lng) {
4802
4753
  const data = this.getDataByLanguage(lng);
4803
4754
  const n = data && Object.keys(data) || [];
4804
- return !!n.find((v2) => data[v2] && Object.keys(data[v2]).length > 0);
4755
+ return !!n.find((v3) => data[v3] && Object.keys(data[v3]).length > 0);
4805
4756
  }
4806
4757
  toJSON() {
4807
4758
  return this.data;
@@ -4854,11 +4805,11 @@ var Translator = class _Translator extends EventEmitter {
4854
4805
  changeLanguage(lng) {
4855
4806
  if (lng) this.language = lng;
4856
4807
  }
4857
- exists(key, o2 = {
4808
+ exists(key, o3 = {
4858
4809
  interpolation: {}
4859
4810
  }) {
4860
4811
  const opt = {
4861
- ...o2
4812
+ ...o3
4862
4813
  };
4863
4814
  if (key == null) return false;
4864
4815
  const resolved = this.resolve(key, opt);
@@ -4877,8 +4828,8 @@ var Translator = class _Translator extends EventEmitter {
4877
4828
  const wouldCheckForNsInKey = nsSeparator && key.indexOf(nsSeparator) > -1;
4878
4829
  const seemsNaturalLanguage = !this.options.userDefinedKeySeparator && !opt.keySeparator && !this.options.userDefinedNsSeparator && !opt.nsSeparator && !looksLikeObjectPath(key, nsSeparator, keySeparator);
4879
4830
  if (wouldCheckForNsInKey && !seemsNaturalLanguage) {
4880
- const m2 = key.match(this.interpolator.nestingRegexp);
4881
- if (m2 && m2.length > 0) {
4831
+ const m3 = key.match(this.interpolator.nestingRegexp);
4832
+ if (m3 && m3.length > 0) {
4882
4833
  return {
4883
4834
  key,
4884
4835
  namespaces: isString(namespaces) ? [namespaces] : namespaces
@@ -4893,10 +4844,10 @@ var Translator = class _Translator extends EventEmitter {
4893
4844
  namespaces: isString(namespaces) ? [namespaces] : namespaces
4894
4845
  };
4895
4846
  }
4896
- translate(keys, o2, lastKey) {
4897
- let opt = typeof o2 === "object" ? {
4898
- ...o2
4899
- } : o2;
4847
+ translate(keys, o3, lastKey) {
4848
+ let opt = typeof o3 === "object" ? {
4849
+ ...o3
4850
+ } : o3;
4900
4851
  if (typeof opt !== "object" && this.options.overloadTranslationOptionHandler) {
4901
4852
  opt = this.options.overloadTranslationOptionHandler(arguments);
4902
4853
  }
@@ -4973,35 +4924,35 @@ var Translator = class _Translator extends EventEmitter {
4973
4924
  if (!this.options.returnedObjectHandler) {
4974
4925
  this.logger.warn("accessing an object - but returnObjects options is not enabled!");
4975
4926
  }
4976
- const r2 = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(resUsedKey, resForObjHndl, {
4927
+ const r3 = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(resUsedKey, resForObjHndl, {
4977
4928
  ...opt,
4978
4929
  ns: namespaces
4979
4930
  }) : `key '${key} (${this.language})' returned an object instead of string.`;
4980
4931
  if (returnDetails) {
4981
- resolved.res = r2;
4932
+ resolved.res = r3;
4982
4933
  resolved.usedParams = this.getUsedParamsDetails(opt);
4983
4934
  return resolved;
4984
4935
  }
4985
- return r2;
4936
+ return r3;
4986
4937
  }
4987
4938
  if (keySeparator) {
4988
4939
  const resTypeIsArray = Array.isArray(resForObjHndl);
4989
4940
  const copy3 = resTypeIsArray ? [] : {};
4990
4941
  const newKeyToUse = resTypeIsArray ? resExactUsedKey : resUsedKey;
4991
- for (const m2 in resForObjHndl) {
4992
- if (Object.prototype.hasOwnProperty.call(resForObjHndl, m2)) {
4993
- const deepKey = `${newKeyToUse}${keySeparator}${m2}`;
4942
+ for (const m3 in resForObjHndl) {
4943
+ if (Object.prototype.hasOwnProperty.call(resForObjHndl, m3)) {
4944
+ const deepKey = `${newKeyToUse}${keySeparator}${m3}`;
4994
4945
  if (hasDefaultValue && !res) {
4995
- copy3[m2] = this.translate(deepKey, {
4946
+ copy3[m3] = this.translate(deepKey, {
4996
4947
  ...opt,
4997
- defaultValue: shouldHandleAsObject(defaultValue) ? defaultValue[m2] : void 0,
4948
+ defaultValue: shouldHandleAsObject(defaultValue) ? defaultValue[m3] : void 0,
4998
4949
  ...{
4999
4950
  joinArrays: false,
5000
4951
  ns: namespaces
5001
4952
  }
5002
4953
  });
5003
4954
  } else {
5004
- copy3[m2] = this.translate(deepKey, {
4955
+ copy3[m3] = this.translate(deepKey, {
5005
4956
  ...opt,
5006
4957
  ...{
5007
4958
  joinArrays: false,
@@ -5009,7 +4960,7 @@ var Translator = class _Translator extends EventEmitter {
5009
4960
  }
5010
4961
  });
5011
4962
  }
5012
- if (copy3[m2] === deepKey) copy3[m2] = resForObjHndl[m2];
4963
+ if (copy3[m3] === deepKey) copy3[m3] = resForObjHndl[m3];
5013
4964
  }
5014
4965
  }
5015
4966
  res = copy3;
@@ -5051,14 +5002,14 @@ var Translator = class _Translator extends EventEmitter {
5051
5002
  } else {
5052
5003
  lngs.push(opt.lng || this.language);
5053
5004
  }
5054
- const send = (l2, k2, specificDefaultValue) => {
5005
+ const send = (l3, k3, specificDefaultValue) => {
5055
5006
  const defaultForMissing = hasDefaultValue && specificDefaultValue !== res ? specificDefaultValue : resForMissing;
5056
5007
  if (this.options.missingKeyHandler) {
5057
- this.options.missingKeyHandler(l2, namespace, k2, defaultForMissing, updateMissing, opt);
5008
+ this.options.missingKeyHandler(l3, namespace, k3, defaultForMissing, updateMissing, opt);
5058
5009
  } else if (this.backendConnector?.saveMissing) {
5059
- this.backendConnector.saveMissing(l2, namespace, k2, defaultForMissing, updateMissing, opt);
5010
+ this.backendConnector.saveMissing(l3, namespace, k3, defaultForMissing, updateMissing, opt);
5060
5011
  }
5061
- this.emit("missingKey", l2, namespace, k2, res);
5012
+ this.emit("missingKey", l3, namespace, k3, res);
5062
5013
  };
5063
5014
  if (this.options.saveMissing) {
5064
5015
  if (this.options.saveMissingPlurals && needsPluralHandling) {
@@ -5156,9 +5107,9 @@ var Translator = class _Translator extends EventEmitter {
5156
5107
  let usedLng;
5157
5108
  let usedNS;
5158
5109
  if (isString(keys)) keys = [keys];
5159
- keys.forEach((k2) => {
5110
+ keys.forEach((k3) => {
5160
5111
  if (this.isValidLookup(found)) return;
5161
- const extracted = this.extractFromKey(k2, opt);
5112
+ const extracted = this.extractFromKey(k3, opt);
5162
5113
  const key = extracted.key;
5163
5114
  usedKey = key;
5164
5115
  let namespaces = extracted.namespaces;
@@ -5275,17 +5226,17 @@ var LanguageUtil = class {
5275
5226
  getScriptPartFromCode(code) {
5276
5227
  code = getCleanedCode(code);
5277
5228
  if (!code || code.indexOf("-") < 0) return null;
5278
- const p2 = code.split("-");
5279
- if (p2.length === 2) return null;
5280
- p2.pop();
5281
- if (p2[p2.length - 1].toLowerCase() === "x") return null;
5282
- return this.formatLanguageCode(p2.join("-"));
5229
+ const p3 = code.split("-");
5230
+ if (p3.length === 2) return null;
5231
+ p3.pop();
5232
+ if (p3[p3.length - 1].toLowerCase() === "x") return null;
5233
+ return this.formatLanguageCode(p3.join("-"));
5283
5234
  }
5284
5235
  getLanguagePartFromCode(code) {
5285
5236
  code = getCleanedCode(code);
5286
5237
  if (!code || code.indexOf("-") < 0) return code;
5287
- const p2 = code.split("-");
5288
- return this.formatLanguageCode(p2[0]);
5238
+ const p3 = code.split("-");
5239
+ return this.formatLanguageCode(p3[0]);
5289
5240
  }
5290
5241
  formatLanguageCode(code) {
5291
5242
  if (isString(code) && code.indexOf("-") > -1) {
@@ -5353,12 +5304,12 @@ var LanguageUtil = class {
5353
5304
  toResolveHierarchy(code, fallbackCode) {
5354
5305
  const fallbackCodes = this.getFallbackCodes((fallbackCode === false ? [] : fallbackCode) || this.options.fallbackLng || [], code);
5355
5306
  const codes = [];
5356
- const addCode = (c2) => {
5357
- if (!c2) return;
5358
- if (this.isSupportedCode(c2)) {
5359
- codes.push(c2);
5307
+ const addCode = (c3) => {
5308
+ if (!c3) return;
5309
+ if (this.isSupportedCode(c3)) {
5310
+ codes.push(c3);
5360
5311
  } else {
5361
- this.logger.warn(`rejecting language code not found in supportedLngs: ${c2}`);
5312
+ this.logger.warn(`rejecting language code not found in supportedLngs: ${c3}`);
5362
5313
  }
5363
5314
  };
5364
5315
  if (isString(code) && (code.indexOf("-") > -1 || code.indexOf("_") > -1)) {
@@ -5531,13 +5482,13 @@ var Interpolator = class {
5531
5482
  interpolationkey: key
5532
5483
  }) : path;
5533
5484
  }
5534
- const p2 = key.split(this.formatSeparator);
5535
- const k2 = p2.shift().trim();
5536
- const f2 = p2.join(this.formatSeparator).trim();
5537
- return this.format(deepFindWithDefaults(data, defaultData, k2, this.options.keySeparator, this.options.ignoreJSONStructure), f2, lng, {
5485
+ const p3 = key.split(this.formatSeparator);
5486
+ const k3 = p3.shift().trim();
5487
+ const f2 = p3.join(this.formatSeparator).trim();
5488
+ return this.format(deepFindWithDefaults(data, defaultData, k3, this.options.keySeparator, this.options.ignoreJSONStructure), f2, lng, {
5538
5489
  ...options,
5539
5490
  ...data,
5540
- interpolationkey: k2
5491
+ interpolationkey: k3
5541
5492
  });
5542
5493
  };
5543
5494
  this.resetRegExp();
@@ -5594,9 +5545,9 @@ var Interpolator = class {
5594
5545
  const handleHasOptions = (key, inheritedOptions) => {
5595
5546
  const sep = this.nestingOptionsSeparator;
5596
5547
  if (key.indexOf(sep) < 0) return key;
5597
- const c2 = key.split(new RegExp(`${regexEscape(sep)}[ ]*{`));
5598
- let optionsString = `{${c2[1]}`;
5599
- key = c2[0];
5548
+ const c3 = key.split(new RegExp(`${regexEscape(sep)}[ ]*{`));
5549
+ let optionsString = `{${c3[1]}`;
5550
+ key = c3[0];
5600
5551
  optionsString = this.interpolate(optionsString, clonedOptions);
5601
5552
  const matchedSingleQuotes = optionsString.match(/'/g);
5602
5553
  const matchedDoubleQuotes = optionsString.match(/"/g);
@@ -5637,7 +5588,7 @@ var Interpolator = class {
5637
5588
  value = "";
5638
5589
  }
5639
5590
  if (formatters.length) {
5640
- value = formatters.reduce((v2, f2) => this.format(v2, f2, options.lng, {
5591
+ value = formatters.reduce((v3, f2) => this.format(v3, f2, options.lng, {
5641
5592
  ...options,
5642
5593
  interpolationkey: match2[1].trim()
5643
5594
  }), value.trim());
@@ -5652,9 +5603,9 @@ var parseFormatStr = (formatStr) => {
5652
5603
  let formatName = formatStr.toLowerCase().trim();
5653
5604
  const formatOptions = {};
5654
5605
  if (formatStr.indexOf("(") > -1) {
5655
- const p2 = formatStr.split("(");
5656
- formatName = p2[0].toLowerCase().trim();
5657
- const optStr = p2[1].substring(0, p2[1].length - 1);
5606
+ const p3 = formatStr.split("(");
5607
+ formatName = p3[0].toLowerCase().trim();
5608
+ const optStr = p3[1].substring(0, p3[1].length - 1);
5658
5609
  if (formatName === "currency" && optStr.indexOf(":") < 0) {
5659
5610
  if (!formatOptions.currency) formatOptions.currency = optStr.trim();
5660
5611
  } else if (formatName === "relativetime" && optStr.indexOf(":") < 0) {
@@ -5681,24 +5632,24 @@ var parseFormatStr = (formatStr) => {
5681
5632
  };
5682
5633
  var createCachedFormatter = (fn) => {
5683
5634
  const cache = {};
5684
- return (v2, l2, o2) => {
5685
- let optForCache = o2;
5686
- if (o2 && o2.interpolationkey && o2.formatParams && o2.formatParams[o2.interpolationkey] && o2[o2.interpolationkey]) {
5635
+ return (v3, l3, o3) => {
5636
+ let optForCache = o3;
5637
+ if (o3 && o3.interpolationkey && o3.formatParams && o3.formatParams[o3.interpolationkey] && o3[o3.interpolationkey]) {
5687
5638
  optForCache = {
5688
5639
  ...optForCache,
5689
- [o2.interpolationkey]: void 0
5640
+ [o3.interpolationkey]: void 0
5690
5641
  };
5691
5642
  }
5692
- const key = l2 + JSON.stringify(optForCache);
5643
+ const key = l3 + JSON.stringify(optForCache);
5693
5644
  let frm = cache[key];
5694
5645
  if (!frm) {
5695
- frm = fn(getCleanedCode(l2), o2);
5646
+ frm = fn(getCleanedCode(l3), o3);
5696
5647
  cache[key] = frm;
5697
5648
  }
5698
- return frm(v2);
5649
+ return frm(v3);
5699
5650
  };
5700
5651
  };
5701
- var createNonCachedFormatter = (fn) => (v2, l2, o2) => fn(getCleanedCode(l2), o2)(v2);
5652
+ var createNonCachedFormatter = (fn) => (v3, l3, o3) => fn(getCleanedCode(l3), o3)(v3);
5702
5653
  var Formatter = class {
5703
5654
  constructor(options = {}) {
5704
5655
  this.logger = baseLogger.create("formatter");
@@ -5765,8 +5716,8 @@ var Formatter = class {
5765
5716
  let formatted = mem;
5766
5717
  try {
5767
5718
  const valOptions = options?.formatParams?.[options.interpolationkey] || {};
5768
- const l2 = valOptions.locale || valOptions.lng || options.locale || options.lng || lng;
5769
- formatted = this.formats[formatName](mem, l2, {
5719
+ const l3 = valOptions.locale || valOptions.lng || options.locale || options.lng || lng;
5720
+ formatted = this.formats[formatName](mem, l3, {
5770
5721
  ...formatOptions,
5771
5722
  ...options,
5772
5723
  ...valOptions
@@ -5783,10 +5734,10 @@ var Formatter = class {
5783
5734
  return result;
5784
5735
  }
5785
5736
  };
5786
- var removePending = (q2, name) => {
5787
- if (q2.pending[name] !== void 0) {
5788
- delete q2.pending[name];
5789
- q2.pendingCount--;
5737
+ var removePending = (q3, name) => {
5738
+ if (q3.pending[name] !== void 0) {
5739
+ delete q3.pending[name];
5740
+ q3.pendingCount--;
5790
5741
  }
5791
5742
  };
5792
5743
  var Connector = class extends EventEmitter {
@@ -5860,30 +5811,30 @@ var Connector = class extends EventEmitter {
5860
5811
  this.state[name] = err2 ? -1 : 2;
5861
5812
  if (err2 && data) this.state[name] = 0;
5862
5813
  const loaded = {};
5863
- this.queue.forEach((q2) => {
5864
- pushPath(q2.loaded, [lng], ns);
5865
- removePending(q2, name);
5866
- if (err2) q2.errors.push(err2);
5867
- if (q2.pendingCount === 0 && !q2.done) {
5868
- Object.keys(q2.loaded).forEach((l2) => {
5869
- if (!loaded[l2]) loaded[l2] = {};
5870
- const loadedKeys = q2.loaded[l2];
5814
+ this.queue.forEach((q3) => {
5815
+ pushPath(q3.loaded, [lng], ns);
5816
+ removePending(q3, name);
5817
+ if (err2) q3.errors.push(err2);
5818
+ if (q3.pendingCount === 0 && !q3.done) {
5819
+ Object.keys(q3.loaded).forEach((l3) => {
5820
+ if (!loaded[l3]) loaded[l3] = {};
5821
+ const loadedKeys = q3.loaded[l3];
5871
5822
  if (loadedKeys.length) {
5872
5823
  loadedKeys.forEach((n) => {
5873
- if (loaded[l2][n] === void 0) loaded[l2][n] = true;
5824
+ if (loaded[l3][n] === void 0) loaded[l3][n] = true;
5874
5825
  });
5875
5826
  }
5876
5827
  });
5877
- q2.done = true;
5878
- if (q2.errors.length) {
5879
- q2.callback(q2.errors);
5828
+ q3.done = true;
5829
+ if (q3.errors.length) {
5830
+ q3.callback(q3.errors);
5880
5831
  } else {
5881
- q2.callback();
5832
+ q3.callback();
5882
5833
  }
5883
5834
  }
5884
5835
  });
5885
5836
  this.emit("loaded", loaded);
5886
- this.queue = this.queue.filter((q2) => !q2.done);
5837
+ this.queue = this.queue.filter((q3) => !q3.done);
5887
5838
  }
5888
5839
  read(lng, ns, fcName, tried = 0, wait = this.retryTimeout, callback) {
5889
5840
  if (!lng.length) return callback(null, {});
@@ -5916,11 +5867,11 @@ var Connector = class extends EventEmitter {
5916
5867
  const fc = this.backend[fcName].bind(this.backend);
5917
5868
  if (fc.length === 2) {
5918
5869
  try {
5919
- const r2 = fc(lng, ns);
5920
- if (r2 && typeof r2.then === "function") {
5921
- r2.then((data) => resolver(null, data)).catch(resolver);
5870
+ const r3 = fc(lng, ns);
5871
+ if (r3 && typeof r3.then === "function") {
5872
+ r3.then((data) => resolver(null, data)).catch(resolver);
5922
5873
  } else {
5923
- resolver(null, r2);
5874
+ resolver(null, r3);
5924
5875
  }
5925
5876
  } catch (err2) {
5926
5877
  resolver(err2);
@@ -5978,16 +5929,16 @@ var Connector = class extends EventEmitter {
5978
5929
  const fc = this.backend.create.bind(this.backend);
5979
5930
  if (fc.length < 6) {
5980
5931
  try {
5981
- let r2;
5932
+ let r3;
5982
5933
  if (fc.length === 5) {
5983
- r2 = fc(languages, namespace, key, fallbackValue, opts);
5934
+ r3 = fc(languages, namespace, key, fallbackValue, opts);
5984
5935
  } else {
5985
- r2 = fc(languages, namespace, key, fallbackValue);
5936
+ r3 = fc(languages, namespace, key, fallbackValue);
5986
5937
  }
5987
- if (r2 && typeof r2.then === "function") {
5988
- r2.then((data) => clb(null, data)).catch(clb);
5938
+ if (r3 && typeof r3.then === "function") {
5939
+ r3.then((data) => clb(null, data)).catch(clb);
5989
5940
  } else {
5990
- clb(null, r2);
5941
+ clb(null, r3);
5991
5942
  }
5992
5943
  } catch (err2) {
5993
5944
  clb(err2);
@@ -6086,7 +6037,7 @@ var usesLocize = (inst) => {
6086
6037
  if (inst?.modules?.backend?.name?.indexOf("Locize") > 0) return true;
6087
6038
  if (inst?.modules?.backend?.constructor?.name?.indexOf("Locize") > 0) return true;
6088
6039
  if (inst?.options?.backend?.backends) {
6089
- if (inst.options.backend.backends.some((b2) => b2?.name?.indexOf("Locize") > 0 || b2?.constructor?.name?.indexOf("Locize") > 0)) return true;
6040
+ if (inst.options.backend.backends.some((b3) => b3?.name?.indexOf("Locize") > 0 || b3?.constructor?.name?.indexOf("Locize") > 0)) return true;
6090
6041
  }
6091
6042
  return false;
6092
6043
  };
@@ -6202,8 +6153,8 @@ var I18n = class _I18n extends EventEmitter {
6202
6153
  this.translator.on("*", (event, ...args) => {
6203
6154
  this.emit(event, ...args);
6204
6155
  });
6205
- this.modules.external.forEach((m2) => {
6206
- if (m2.init) m2.init(this);
6156
+ this.modules.external.forEach((m3) => {
6157
+ if (m3.init) m3.init(this);
6207
6158
  });
6208
6159
  }
6209
6160
  this.format = this.options.interpolation.format;
@@ -6258,18 +6209,18 @@ var I18n = class _I18n extends EventEmitter {
6258
6209
  if (!lng) return;
6259
6210
  if (lng === "cimode") return;
6260
6211
  const lngs = this.services.languageUtils.toResolveHierarchy(lng);
6261
- lngs.forEach((l2) => {
6262
- if (l2 === "cimode") return;
6263
- if (toLoad.indexOf(l2) < 0) toLoad.push(l2);
6212
+ lngs.forEach((l3) => {
6213
+ if (l3 === "cimode") return;
6214
+ if (toLoad.indexOf(l3) < 0) toLoad.push(l3);
6264
6215
  });
6265
6216
  };
6266
6217
  if (!usedLng) {
6267
6218
  const fallbacks = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
6268
- fallbacks.forEach((l2) => append2(l2));
6219
+ fallbacks.forEach((l3) => append2(l3));
6269
6220
  } else {
6270
6221
  append2(usedLng);
6271
6222
  }
6272
- this.options.preload?.forEach?.((l2) => append2(l2));
6223
+ this.options.preload?.forEach?.((l3) => append2(l3));
6273
6224
  this.services.backendConnector.load(toLoad, this.options.ns, (e2) => {
6274
6225
  if (!e2 && !this.resolvedLanguage && this.language) this.setResolvedLanguage(this.language);
6275
6226
  usedCallback(e2);
@@ -6323,9 +6274,9 @@ var I18n = class _I18n extends EventEmitter {
6323
6274
  }
6324
6275
  return this;
6325
6276
  }
6326
- setResolvedLanguage(l2) {
6327
- if (!l2 || !this.languages) return;
6328
- if (["cimode", "dev"].indexOf(l2) > -1) return;
6277
+ setResolvedLanguage(l3) {
6278
+ if (!l3 || !this.languages) return;
6279
+ if (["cimode", "dev"].indexOf(l3) > -1) return;
6329
6280
  for (let li = 0; li < this.languages.length; li++) {
6330
6281
  const lngInLngs = this.languages[li];
6331
6282
  if (["cimode", "dev"].indexOf(lngInLngs) > -1) continue;
@@ -6334,29 +6285,29 @@ var I18n = class _I18n extends EventEmitter {
6334
6285
  break;
6335
6286
  }
6336
6287
  }
6337
- if (!this.resolvedLanguage && this.languages.indexOf(l2) < 0 && this.store.hasLanguageSomeTranslations(l2)) {
6338
- this.resolvedLanguage = l2;
6339
- this.languages.unshift(l2);
6288
+ if (!this.resolvedLanguage && this.languages.indexOf(l3) < 0 && this.store.hasLanguageSomeTranslations(l3)) {
6289
+ this.resolvedLanguage = l3;
6290
+ this.languages.unshift(l3);
6340
6291
  }
6341
6292
  }
6342
6293
  changeLanguage(lng, callback) {
6343
6294
  this.isLanguageChangingTo = lng;
6344
6295
  const deferred = defer();
6345
6296
  this.emit("languageChanging", lng);
6346
- const setLngProps = (l2) => {
6347
- this.language = l2;
6348
- this.languages = this.services.languageUtils.toResolveHierarchy(l2);
6297
+ const setLngProps = (l3) => {
6298
+ this.language = l3;
6299
+ this.languages = this.services.languageUtils.toResolveHierarchy(l3);
6349
6300
  this.resolvedLanguage = void 0;
6350
- this.setResolvedLanguage(l2);
6301
+ this.setResolvedLanguage(l3);
6351
6302
  };
6352
- const done = (err2, l2) => {
6353
- if (l2) {
6303
+ const done = (err2, l3) => {
6304
+ if (l3) {
6354
6305
  if (this.isLanguageChangingTo === lng) {
6355
- setLngProps(l2);
6356
- this.translator.changeLanguage(l2);
6306
+ setLngProps(l3);
6307
+ this.translator.changeLanguage(l3);
6357
6308
  this.isLanguageChangingTo = void 0;
6358
- this.emit("languageChanged", l2);
6359
- this.logger.log("languageChanged", l2);
6309
+ this.emit("languageChanged", l3);
6310
+ this.logger.log("languageChanged", l3);
6360
6311
  }
6361
6312
  } else {
6362
6313
  this.isLanguageChangingTo = void 0;
@@ -6367,16 +6318,16 @@ var I18n = class _I18n extends EventEmitter {
6367
6318
  const setLng = (lngs) => {
6368
6319
  if (!lng && !lngs && this.services.languageDetector) lngs = [];
6369
6320
  const fl = isString(lngs) ? lngs : lngs && lngs[0];
6370
- const l2 = this.store.hasLanguageSomeTranslations(fl) ? fl : this.services.languageUtils.getBestMatchFromCodes(isString(lngs) ? [lngs] : lngs);
6371
- if (l2) {
6321
+ const l3 = this.store.hasLanguageSomeTranslations(fl) ? fl : this.services.languageUtils.getBestMatchFromCodes(isString(lngs) ? [lngs] : lngs);
6322
+ if (l3) {
6372
6323
  if (!this.language) {
6373
- setLngProps(l2);
6324
+ setLngProps(l3);
6374
6325
  }
6375
- if (!this.translator.language) this.translator.changeLanguage(l2);
6376
- this.services.languageDetector?.cacheUserLanguage?.(l2);
6326
+ if (!this.translator.language) this.translator.changeLanguage(l3);
6327
+ this.services.languageDetector?.cacheUserLanguage?.(l3);
6377
6328
  }
6378
- this.loadResources(l2, (err2) => {
6379
- done(err2, l2);
6329
+ this.loadResources(l3, (err2) => {
6330
+ done(err2, l3);
6380
6331
  });
6381
6332
  };
6382
6333
  if (!lng && this.services.languageDetector && !this.services.languageDetector.async) {
@@ -6394,36 +6345,36 @@ var I18n = class _I18n extends EventEmitter {
6394
6345
  }
6395
6346
  getFixedT(lng, ns, keyPrefix) {
6396
6347
  const fixedT = (key, opts, ...rest) => {
6397
- let o2;
6348
+ let o3;
6398
6349
  if (typeof opts !== "object") {
6399
- o2 = this.options.overloadTranslationOptionHandler([key, opts].concat(rest));
6350
+ o3 = this.options.overloadTranslationOptionHandler([key, opts].concat(rest));
6400
6351
  } else {
6401
- o2 = {
6352
+ o3 = {
6402
6353
  ...opts
6403
6354
  };
6404
6355
  }
6405
- o2.lng = o2.lng || fixedT.lng;
6406
- o2.lngs = o2.lngs || fixedT.lngs;
6407
- o2.ns = o2.ns || fixedT.ns;
6408
- if (o2.keyPrefix !== "") o2.keyPrefix = o2.keyPrefix || keyPrefix || fixedT.keyPrefix;
6356
+ o3.lng = o3.lng || fixedT.lng;
6357
+ o3.lngs = o3.lngs || fixedT.lngs;
6358
+ o3.ns = o3.ns || fixedT.ns;
6359
+ if (o3.keyPrefix !== "") o3.keyPrefix = o3.keyPrefix || keyPrefix || fixedT.keyPrefix;
6409
6360
  const keySeparator = this.options.keySeparator || ".";
6410
6361
  let resultKey;
6411
- if (o2.keyPrefix && Array.isArray(key)) {
6412
- resultKey = key.map((k2) => {
6413
- if (typeof k2 === "function") k2 = keysFromSelector(k2, {
6362
+ if (o3.keyPrefix && Array.isArray(key)) {
6363
+ resultKey = key.map((k3) => {
6364
+ if (typeof k3 === "function") k3 = keysFromSelector(k3, {
6414
6365
  ...this.options,
6415
6366
  ...opts
6416
6367
  });
6417
- return `${o2.keyPrefix}${keySeparator}${k2}`;
6368
+ return `${o3.keyPrefix}${keySeparator}${k3}`;
6418
6369
  });
6419
6370
  } else {
6420
6371
  if (typeof key === "function") key = keysFromSelector(key, {
6421
6372
  ...this.options,
6422
6373
  ...opts
6423
6374
  });
6424
- resultKey = o2.keyPrefix ? `${o2.keyPrefix}${keySeparator}${key}` : key;
6375
+ resultKey = o3.keyPrefix ? `${o3.keyPrefix}${keySeparator}${key}` : key;
6425
6376
  }
6426
- return this.t(resultKey, o2);
6377
+ return this.t(resultKey, o3);
6427
6378
  };
6428
6379
  if (isString(lng)) {
6429
6380
  fixedT.lng = lng;
@@ -6456,8 +6407,8 @@ var I18n = class _I18n extends EventEmitter {
6456
6407
  const fallbackLng = this.options ? this.options.fallbackLng : false;
6457
6408
  const lastLng = this.languages[this.languages.length - 1];
6458
6409
  if (lng.toLowerCase() === "cimode") return true;
6459
- const loadNotPending = (l2, n) => {
6460
- const loadState = this.services.backendConnector.state[`${l2}|${n}`];
6410
+ const loadNotPending = (l3, n) => {
6411
+ const loadState = this.services.backendConnector.state[`${l3}|${n}`];
6461
6412
  return loadState === -1 || loadState === 0 || loadState === 2;
6462
6413
  };
6463
6414
  if (options.precheck) {
@@ -6505,9 +6456,9 @@ var I18n = class _I18n extends EventEmitter {
6505
6456
  if (!lng) lng = this.resolvedLanguage || (this.languages?.length > 0 ? this.languages[0] : this.language);
6506
6457
  if (!lng) return "rtl";
6507
6458
  try {
6508
- const l2 = new Intl.Locale(lng);
6509
- if (l2 && l2.getTextInfo) {
6510
- const ti = l2.getTextInfo();
6459
+ const l3 = new Intl.Locale(lng);
6460
+ if (l3 && l3.getTextInfo) {
6461
+ const ti = l3.getTextInfo();
6511
6462
  if (ti && ti.direction) return ti.direction;
6512
6463
  }
6513
6464
  } catch (e2) {
@@ -6537,8 +6488,8 @@ var I18n = class _I18n extends EventEmitter {
6537
6488
  clone.logger = clone.logger.clone(options);
6538
6489
  }
6539
6490
  const membersToCopy = ["store", "services", "language"];
6540
- membersToCopy.forEach((m2) => {
6541
- clone[m2] = this[m2];
6491
+ membersToCopy.forEach((m3) => {
6492
+ clone[m3] = this[m3];
6542
6493
  });
6543
6494
  clone.services = {
6544
6495
  ...this.services
@@ -6547,16 +6498,16 @@ var I18n = class _I18n extends EventEmitter {
6547
6498
  hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone)
6548
6499
  };
6549
6500
  if (forkResourceStore) {
6550
- const clonedData = Object.keys(this.store.data).reduce((prev2, l2) => {
6551
- prev2[l2] = {
6552
- ...this.store.data[l2]
6501
+ const clonedData = Object.keys(this.store.data).reduce((prev2, l3) => {
6502
+ prev2[l3] = {
6503
+ ...this.store.data[l3]
6553
6504
  };
6554
- prev2[l2] = Object.keys(prev2[l2]).reduce((acc, n) => {
6505
+ prev2[l3] = Object.keys(prev2[l3]).reduce((acc, n) => {
6555
6506
  acc[n] = {
6556
- ...prev2[l2][n]
6507
+ ...prev2[l3][n]
6557
6508
  };
6558
6509
  return acc;
6559
- }, prev2[l2]);
6510
+ }, prev2[l3]);
6560
6511
  return prev2;
6561
6512
  }, {});
6562
6513
  clone.store = new ResourceStore(clonedData, mergedOptions);
@@ -6708,7 +6659,7 @@ var htmlEntities = {
6708
6659
  "&#x2F;": "/",
6709
6660
  "&#47;": "/"
6710
6661
  };
6711
- var unescapeHtmlEntity = (m2) => htmlEntities[m2];
6662
+ var unescapeHtmlEntity = (m3) => htmlEntities[m3];
6712
6663
  var unescape = (text) => text.replace(matchHtmlEntity, unescapeHtmlEntity);
6713
6664
 
6714
6665
  // node_modules/react-i18next/dist/es/defaults.js
@@ -6995,7 +6946,7 @@ var commonEntities = {
6995
6946
  "&alefsym;": "\u2135"
6996
6947
  };
6997
6948
  var entityPattern = new RegExp(Object.keys(commonEntities).map((entity) => entity.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|"), "g");
6998
- var decodeHtmlEntities = (text) => text.replace(entityPattern, (match2) => commonEntities[match2]).replace(/&#(\d+);/g, (_2, num) => String.fromCharCode(parseInt(num, 10))).replace(/&#x([0-9a-fA-F]+);/g, (_2, hex) => String.fromCharCode(parseInt(hex, 16)));
6949
+ var decodeHtmlEntities = (text) => text.replace(entityPattern, (match2) => commonEntities[match2]).replace(/&#(\d+);/g, (_3, num) => String.fromCharCode(parseInt(num, 10))).replace(/&#x([0-9a-fA-F]+);/g, (_3, hex) => String.fromCharCode(parseInt(hex, 16)));
6999
6950
 
7000
6951
  // node_modules/react-i18next/dist/es/IcuTransUtils/tokenizer.js
7001
6952
  var tokenize2 = (translation) => {
@@ -7172,7 +7123,7 @@ function IcuTransWithoutContext({
7172
7123
  });
7173
7124
  return React2.createElement(React2.Fragment, {}, defaultTranslation);
7174
7125
  }
7175
- const t2 = tFromProps || i18n.t?.bind(i18n) || ((k2) => k2);
7126
+ const t2 = tFromProps || i18n.t?.bind(i18n) || ((k3) => k3);
7176
7127
  let namespaces = ns || t2.ns || i18n.options?.defaultNS;
7177
7128
  namespaces = isString2(namespaces) ? [namespaces] : namespaces || ["translation"];
7178
7129
  let mergedValues = values;
@@ -7253,10 +7204,10 @@ var useTranslation = (ns, props = {}) => {
7253
7204
  if (i18n && !i18n.reportNamespaces) i18n.reportNamespaces = new ReportNamespaces();
7254
7205
  if (!i18n) {
7255
7206
  warnOnce(i18n, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
7256
- const notReadyT = (k2, optsOrDefaultValue) => {
7207
+ const notReadyT = (k3, optsOrDefaultValue) => {
7257
7208
  if (isString2(optsOrDefaultValue)) return optsOrDefaultValue;
7258
7209
  if (isObject(optsOrDefaultValue) && isString2(optsOrDefaultValue.defaultValue)) return optsOrDefaultValue.defaultValue;
7259
- return Array.isArray(k2) ? k2[k2.length - 1] : k2;
7210
+ return Array.isArray(k3) ? k3[k3.length - 1] : k3;
7260
7211
  };
7261
7212
  const retNotReady = [notReadyT, {}, false];
7262
7213
  retNotReady.t = notReadyT;
@@ -7371,7 +7322,7 @@ var en_default = {
7371
7322
  "An unknown error occurred.": "An unknown error occurred.",
7372
7323
  Billed: "Billed {{period}}",
7373
7324
  "Cancel subscription": "Cancel subscription",
7374
- "Cannot change to this plan.": "{{reason, list(style: 'long'; type: 'disjunction';)}} usage is over the limit.",
7325
+ "Cannot change to this plan.": "{{reason, list(type: 'conjunction')}} usage is over the limit.",
7375
7326
  "Cannot downgrade entitlement": "Cannot downgrade to a quantity lower than current usage.",
7376
7327
  "Card ending in": "\u{1F4B3} Card ending in {{value}}",
7377
7328
  "Change add-on": "Change add-on",
@@ -7459,7 +7410,7 @@ var en_default = {
7459
7410
  "Select quantities for add-ons": "Select quantities for add-ons",
7460
7411
  Selected: "Selected",
7461
7412
  "Selected plan or associated price is missing.": "Selected plan or associated price is missing.",
7462
- "Self-service downgrade not permitted.": "Self-service downgrade not permitted.",
7413
+ "Downgrade not permitted.": "Downgrade not permitted.",
7463
7414
  "Session expired. Please refresh and try again.": "Session expired. Please refresh and try again.",
7464
7415
  "Show details": "Show details",
7465
7416
  "Start trial": "Start trial",
@@ -7545,6 +7496,754 @@ instance.use(initReactI18next).init({
7545
7496
  // node_modules/@schematichq/schematic-icons/dist/components/Icon/Icon.js
7546
7497
  import { jsx as _jsx } from "react/jsx-runtime";
7547
7498
 
7499
+ // node_modules/@schematichq/schematic-icons/node_modules/styled-components/dist/styled-components.browser.esm.js
7500
+ import r2, { createElement as o2 } from "react";
7501
+ var a2 = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled";
7502
+ var c2 = "active";
7503
+ var u2 = "data-styled-version";
7504
+ var l2 = "6.3.9";
7505
+ var d2 = "/*!sc*/\n";
7506
+ var h2 = "undefined" != typeof window && "undefined" != typeof document;
7507
+ var p2 = void 0 === r2.createContext;
7508
+ var f = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : true);
7509
+ var m2 = {};
7510
+ var y2 = /invalid hook call/i;
7511
+ var v2 = /* @__PURE__ */ new Set();
7512
+ var g2 = function(t2, n) {
7513
+ if (true) {
7514
+ if (p2) return;
7515
+ var o3 = n ? ' with the id of "'.concat(n, '"') : "", s = "The component ".concat(t2).concat(o3, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n", i = console.error;
7516
+ try {
7517
+ var a3 = true;
7518
+ console.error = function(t3) {
7519
+ for (var n2 = [], r3 = 1; r3 < arguments.length; r3++) n2[r3 - 1] = arguments[r3];
7520
+ y2.test(t3) ? (a3 = false, v2.delete(s)) : i.apply(void 0, __spreadArray([t3], n2, false));
7521
+ }, "function" == typeof r2.useState && r2.useState(null), a3 && !v2.has(s) && (console.warn(s), v2.add(s));
7522
+ } catch (e2) {
7523
+ y2.test(e2.message) && v2.delete(s);
7524
+ } finally {
7525
+ console.error = i;
7526
+ }
7527
+ }
7528
+ };
7529
+ var S2 = Object.freeze([]);
7530
+ var w2 = Object.freeze({});
7531
+ function b2(e2, t2, n) {
7532
+ return void 0 === n && (n = w2), e2.theme !== n.theme && e2.theme || t2 || n.theme;
7533
+ }
7534
+ var N2 = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "blockquote", "body", "button", "br", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "menu", "meter", "nav", "object", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "slot", "small", "span", "strong", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "switch", "symbol", "text", "textPath", "tspan", "use"]);
7535
+ var E2 = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g;
7536
+ var C2 = /(^-|-$)/g;
7537
+ function A2(e2) {
7538
+ return e2.replace(E2, "-").replace(C2, "");
7539
+ }
7540
+ var _2 = /(a)(d)/gi;
7541
+ var P2 = function(e2) {
7542
+ return String.fromCharCode(e2 + (e2 > 25 ? 39 : 97));
7543
+ };
7544
+ function I2(e2) {
7545
+ var t2, n = "";
7546
+ for (t2 = Math.abs(e2); t2 > 52; t2 = t2 / 52 | 0) n = P2(t2 % 52) + n;
7547
+ return (P2(t2 % 52) + n).replace(_2, "$1-$2");
7548
+ }
7549
+ var O2;
7550
+ var D2 = function(e2, t2) {
7551
+ for (var n = t2.length; n; ) e2 = 33 * e2 ^ t2.charCodeAt(--n);
7552
+ return e2;
7553
+ };
7554
+ var R2 = function(e2) {
7555
+ return D2(5381, e2);
7556
+ };
7557
+ function T2(e2) {
7558
+ return I2(R2(e2) >>> 0);
7559
+ }
7560
+ function x2(e2) {
7561
+ return "string" == typeof e2 && e2 || e2.displayName || e2.name || "Component";
7562
+ }
7563
+ function j2(e2) {
7564
+ return "string" == typeof e2 && e2.charAt(0) === e2.charAt(0).toLowerCase();
7565
+ }
7566
+ var k2 = "function" == typeof Symbol && Symbol.for;
7567
+ var M2 = k2 ? /* @__PURE__ */ Symbol.for("react.memo") : 60115;
7568
+ var V2 = k2 ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112;
7569
+ var F2 = { childContextTypes: true, contextType: true, contextTypes: true, defaultProps: true, displayName: true, getDefaultProps: true, getDerivedStateFromError: true, getDerivedStateFromProps: true, mixins: true, propTypes: true, type: true };
7570
+ var G2 = { name: true, length: true, prototype: true, caller: true, callee: true, arguments: true, arity: true };
7571
+ var L2 = { $$typeof: true, compare: true, defaultProps: true, displayName: true, propTypes: true, type: true };
7572
+ var B2 = ((O2 = {})[V2] = { $$typeof: true, render: true, defaultProps: true, displayName: true, propTypes: true }, O2[M2] = L2, O2);
7573
+ function z2(e2) {
7574
+ return ("type" in (t2 = e2) && t2.type.$$typeof) === M2 ? L2 : "$$typeof" in e2 ? B2[e2.$$typeof] : F2;
7575
+ var t2;
7576
+ }
7577
+ var $2 = Object.defineProperty;
7578
+ var Y2 = Object.getOwnPropertyNames;
7579
+ var W2 = Object.getOwnPropertySymbols;
7580
+ var q2 = Object.getOwnPropertyDescriptor;
7581
+ var H2 = Object.getPrototypeOf;
7582
+ var U2 = Object.prototype;
7583
+ function J2(e2, t2, n) {
7584
+ if ("string" != typeof t2) {
7585
+ if (U2) {
7586
+ var r3 = H2(t2);
7587
+ r3 && r3 !== U2 && J2(e2, r3, n);
7588
+ }
7589
+ var o3 = Y2(t2);
7590
+ W2 && (o3 = o3.concat(W2(t2)));
7591
+ for (var s = z2(e2), i = z2(t2), a3 = 0; a3 < o3.length; ++a3) {
7592
+ var c3 = o3[a3];
7593
+ if (!(c3 in G2 || n && n[c3] || i && c3 in i || s && c3 in s)) {
7594
+ var u3 = q2(t2, c3);
7595
+ try {
7596
+ $2(e2, c3, u3);
7597
+ } catch (e3) {
7598
+ }
7599
+ }
7600
+ }
7601
+ }
7602
+ return e2;
7603
+ }
7604
+ function X2(e2) {
7605
+ return "function" == typeof e2;
7606
+ }
7607
+ function Z2(e2) {
7608
+ return "object" == typeof e2 && "styledComponentId" in e2;
7609
+ }
7610
+ function K2(e2, t2) {
7611
+ return e2 && t2 ? "".concat(e2, " ").concat(t2) : e2 || t2 || "";
7612
+ }
7613
+ function Q2(e2, t2) {
7614
+ return e2.join(t2 || "");
7615
+ }
7616
+ function ee2(e2) {
7617
+ return null !== e2 && "object" == typeof e2 && e2.constructor.name === Object.name && !("props" in e2 && e2.$$typeof);
7618
+ }
7619
+ function te2(e2, t2, n) {
7620
+ if (void 0 === n && (n = false), !n && !ee2(e2) && !Array.isArray(e2)) return t2;
7621
+ if (Array.isArray(t2)) for (var r3 = 0; r3 < t2.length; r3++) e2[r3] = te2(e2[r3], t2[r3]);
7622
+ else if (ee2(t2)) for (var r3 in t2) e2[r3] = te2(e2[r3], t2[r3]);
7623
+ return e2;
7624
+ }
7625
+ function ne2(e2, t2) {
7626
+ Object.defineProperty(e2, "toString", { value: t2 });
7627
+ }
7628
+ var re2 = true ? { 1: "Cannot create styled-component for component: %s.\n\n", 2: "Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n", 3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n", 4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n", 5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n", 6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n", 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: 'ThemeProvider: Please make your "theme" prop an object.\n\n', 9: "Missing document `<head>`\n\n", 10: "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n", 11: "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n", 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: "%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n", 14: 'ThemeProvider: "theme" prop is required.\n\n', 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n", 17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n", 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
7629
+ function oe2() {
7630
+ for (var e2 = [], t2 = 0; t2 < arguments.length; t2++) e2[t2] = arguments[t2];
7631
+ for (var n = e2[0], r3 = [], o3 = 1, s = e2.length; o3 < s; o3 += 1) r3.push(e2[o3]);
7632
+ return r3.forEach(function(e3) {
7633
+ n = n.replace(/%[a-z]/, e3);
7634
+ }), n;
7635
+ }
7636
+ function se2(t2) {
7637
+ for (var n = [], r3 = 1; r3 < arguments.length; r3++) n[r3 - 1] = arguments[r3];
7638
+ return false ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t2, " for more information.").concat(n.length > 0 ? " Args: ".concat(n.join(", ")) : "")) : new Error(oe2.apply(void 0, __spreadArray([re2[t2]], n, false)).trim());
7639
+ }
7640
+ var ie2 = (function() {
7641
+ function e2(e3) {
7642
+ this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e3, this._cGroup = 0, this._cIndex = 0;
7643
+ }
7644
+ return e2.prototype.indexOfGroup = function(e3) {
7645
+ if (e3 === this._cGroup) return this._cIndex;
7646
+ var t2 = this._cIndex;
7647
+ if (e3 > this._cGroup) for (var n = this._cGroup; n < e3; n++) t2 += this.groupSizes[n];
7648
+ else for (n = this._cGroup - 1; n >= e3; n--) t2 -= this.groupSizes[n];
7649
+ return this._cGroup = e3, this._cIndex = t2, t2;
7650
+ }, e2.prototype.insertRules = function(e3, t2) {
7651
+ if (e3 >= this.groupSizes.length) {
7652
+ for (var n = this.groupSizes, r3 = n.length, o3 = r3; e3 >= o3; ) if ((o3 <<= 1) < 0) throw se2(16, "".concat(e3));
7653
+ this.groupSizes = new Uint32Array(o3), this.groupSizes.set(n), this.length = o3;
7654
+ for (var s = r3; s < o3; s++) this.groupSizes[s] = 0;
7655
+ }
7656
+ for (var i = this.indexOfGroup(e3 + 1), a3 = 0, c3 = (s = 0, t2.length); s < c3; s++) this.tag.insertRule(i, t2[s]) && (this.groupSizes[e3]++, i++, a3++);
7657
+ a3 > 0 && this._cGroup > e3 && (this._cIndex += a3);
7658
+ }, e2.prototype.clearGroup = function(e3) {
7659
+ if (e3 < this.length) {
7660
+ var t2 = this.groupSizes[e3], n = this.indexOfGroup(e3), r3 = n + t2;
7661
+ this.groupSizes[e3] = 0;
7662
+ for (var o3 = n; o3 < r3; o3++) this.tag.deleteRule(n);
7663
+ t2 > 0 && this._cGroup > e3 && (this._cIndex -= t2);
7664
+ }
7665
+ }, e2.prototype.getGroup = function(e3) {
7666
+ var t2 = "";
7667
+ if (e3 >= this.length || 0 === this.groupSizes[e3]) return t2;
7668
+ for (var n = this.groupSizes[e3], r3 = this.indexOfGroup(e3), o3 = r3 + n, s = r3; s < o3; s++) t2 += this.tag.getRule(s) + d2;
7669
+ return t2;
7670
+ }, e2;
7671
+ })();
7672
+ var ae2 = 1 << 30;
7673
+ var ce2 = /* @__PURE__ */ new Map();
7674
+ var ue2 = /* @__PURE__ */ new Map();
7675
+ var le2 = 1;
7676
+ var de2 = function(e2) {
7677
+ if (ce2.has(e2)) return ce2.get(e2);
7678
+ for (; ue2.has(le2); ) le2++;
7679
+ var t2 = le2++;
7680
+ if ((0 | t2) < 0 || t2 > ae2) throw se2(16, "".concat(t2));
7681
+ return ce2.set(e2, t2), ue2.set(t2, e2), t2;
7682
+ };
7683
+ var he2 = function(e2, t2) {
7684
+ le2 = t2 + 1, ce2.set(e2, t2), ue2.set(t2, e2);
7685
+ };
7686
+ var pe2 = "style[".concat(a2, "][").concat(u2, '="').concat(l2, '"]');
7687
+ var fe2 = new RegExp("^".concat(a2, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'));
7688
+ var me2 = function(e2) {
7689
+ return "undefined" != typeof ShadowRoot && e2 instanceof ShadowRoot || "host" in e2 && 11 === e2.nodeType;
7690
+ };
7691
+ var ye2 = function(e2) {
7692
+ if (!e2) return document;
7693
+ if (me2(e2)) return e2;
7694
+ if ("getRootNode" in e2) {
7695
+ var t2 = e2.getRootNode();
7696
+ if (me2(t2)) return t2;
7697
+ }
7698
+ return document;
7699
+ };
7700
+ var ve2 = function(e2, t2, n) {
7701
+ for (var r3, o3 = n.split(","), s = 0, i = o3.length; s < i; s++) (r3 = o3[s]) && e2.registerName(t2, r3);
7702
+ };
7703
+ var ge2 = function(e2, t2) {
7704
+ for (var n, r3 = (null !== (n = t2.textContent) && void 0 !== n ? n : "").split(d2), o3 = [], s = 0, i = r3.length; s < i; s++) {
7705
+ var a3 = r3[s].trim();
7706
+ if (a3) {
7707
+ var c3 = a3.match(fe2);
7708
+ if (c3) {
7709
+ var u3 = 0 | parseInt(c3[1], 10), l3 = c3[2];
7710
+ 0 !== u3 && (he2(l3, u3), ve2(e2, l3, c3[3]), e2.getTag().insertRules(u3, o3)), o3.length = 0;
7711
+ } else o3.push(a3);
7712
+ }
7713
+ }
7714
+ };
7715
+ var Se2 = function(e2) {
7716
+ for (var t2 = ye2(e2.options.target).querySelectorAll(pe2), n = 0, r3 = t2.length; n < r3; n++) {
7717
+ var o3 = t2[n];
7718
+ o3 && o3.getAttribute(a2) !== c2 && (ge2(e2, o3), o3.parentNode && o3.parentNode.removeChild(o3));
7719
+ }
7720
+ };
7721
+ function we2() {
7722
+ return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
7723
+ }
7724
+ var be2 = function(e2) {
7725
+ var t2 = document.head, n = e2 || t2, r3 = document.createElement("style"), o3 = (function(e3) {
7726
+ var t3 = Array.from(e3.querySelectorAll("style[".concat(a2, "]")));
7727
+ return t3[t3.length - 1];
7728
+ })(n), s = void 0 !== o3 ? o3.nextSibling : null;
7729
+ r3.setAttribute(a2, c2), r3.setAttribute(u2, l2);
7730
+ var i = we2();
7731
+ return i && r3.setAttribute("nonce", i), n.insertBefore(r3, s), r3;
7732
+ };
7733
+ var Ne2 = (function() {
7734
+ function e2(e3) {
7735
+ this.element = be2(e3), this.element.appendChild(document.createTextNode("")), this.sheet = (function(e4) {
7736
+ var t2;
7737
+ if (e4.sheet) return e4.sheet;
7738
+ for (var n = null !== (t2 = e4.getRootNode().styleSheets) && void 0 !== t2 ? t2 : document.styleSheets, r3 = 0, o3 = n.length; r3 < o3; r3++) {
7739
+ var s = n[r3];
7740
+ if (s.ownerNode === e4) return s;
7741
+ }
7742
+ throw se2(17);
7743
+ })(this.element), this.length = 0;
7744
+ }
7745
+ return e2.prototype.insertRule = function(e3, t2) {
7746
+ try {
7747
+ return this.sheet.insertRule(t2, e3), this.length++, true;
7748
+ } catch (e4) {
7749
+ return false;
7750
+ }
7751
+ }, e2.prototype.deleteRule = function(e3) {
7752
+ this.sheet.deleteRule(e3), this.length--;
7753
+ }, e2.prototype.getRule = function(e3) {
7754
+ var t2 = this.sheet.cssRules[e3];
7755
+ return t2 && t2.cssText ? t2.cssText : "";
7756
+ }, e2;
7757
+ })();
7758
+ var Ee2 = (function() {
7759
+ function e2(e3) {
7760
+ this.element = be2(e3), this.nodes = this.element.childNodes, this.length = 0;
7761
+ }
7762
+ return e2.prototype.insertRule = function(e3, t2) {
7763
+ if (e3 <= this.length && e3 >= 0) {
7764
+ var n = document.createTextNode(t2);
7765
+ return this.element.insertBefore(n, this.nodes[e3] || null), this.length++, true;
7766
+ }
7767
+ return false;
7768
+ }, e2.prototype.deleteRule = function(e3) {
7769
+ this.element.removeChild(this.nodes[e3]), this.length--;
7770
+ }, e2.prototype.getRule = function(e3) {
7771
+ return e3 < this.length ? this.nodes[e3].textContent : "";
7772
+ }, e2;
7773
+ })();
7774
+ var Ce2 = (function() {
7775
+ function e2(e3) {
7776
+ this.rules = [], this.length = 0;
7777
+ }
7778
+ return e2.prototype.insertRule = function(e3, t2) {
7779
+ return e3 <= this.length && (e3 === this.length ? this.rules.push(t2) : this.rules.splice(e3, 0, t2), this.length++, true);
7780
+ }, e2.prototype.deleteRule = function(e3) {
7781
+ this.rules.splice(e3, 1), this.length--;
7782
+ }, e2.prototype.getRule = function(e3) {
7783
+ return e3 < this.length ? this.rules[e3] : "";
7784
+ }, e2;
7785
+ })();
7786
+ var Ae2 = h2;
7787
+ var _e2 = { isServer: !h2, useCSSOMInjection: !f };
7788
+ var Pe2 = (function() {
7789
+ function e2(e3, n, r3) {
7790
+ void 0 === e3 && (e3 = w2), void 0 === n && (n = {});
7791
+ var o3 = this;
7792
+ this.options = __assign(__assign({}, _e2), e3), this.gs = n, this.names = new Map(r3), this.server = !!e3.isServer, !this.server && h2 && Ae2 && (Ae2 = false, Se2(this)), ne2(this, function() {
7793
+ return (function(e4) {
7794
+ for (var t2 = e4.getTag(), n2 = t2.length, r4 = "", o4 = function(n3) {
7795
+ var o5 = (function(e5) {
7796
+ return ue2.get(e5);
7797
+ })(n3);
7798
+ if (void 0 === o5) return "continue";
7799
+ var s2 = e4.names.get(o5);
7800
+ if (void 0 === s2 || !s2.size) return "continue";
7801
+ var i = t2.getGroup(n3);
7802
+ if (0 === i.length) return "continue";
7803
+ var c3 = a2 + ".g" + n3 + '[id="' + o5 + '"]', u3 = "";
7804
+ s2.forEach(function(e5) {
7805
+ e5.length > 0 && (u3 += e5 + ",");
7806
+ }), r4 += i + c3 + '{content:"' + u3 + '"}' + d2;
7807
+ }, s = 0; s < n2; s++) o4(s);
7808
+ return r4;
7809
+ })(o3);
7810
+ });
7811
+ }
7812
+ return e2.registerId = function(e3) {
7813
+ return de2(e3);
7814
+ }, e2.prototype.rehydrate = function() {
7815
+ !this.server && h2 && Se2(this);
7816
+ }, e2.prototype.reconstructWithOptions = function(n, r3) {
7817
+ void 0 === r3 && (r3 = true);
7818
+ var o3 = new e2(__assign(__assign({}, this.options), n), this.gs, r3 && this.names || void 0);
7819
+ return !this.server && h2 && n.target !== this.options.target && ye2(this.options.target) !== ye2(n.target) && Se2(o3), o3;
7820
+ }, e2.prototype.allocateGSInstance = function(e3) {
7821
+ return this.gs[e3] = (this.gs[e3] || 0) + 1;
7822
+ }, e2.prototype.getTag = function() {
7823
+ return this.tag || (this.tag = (e3 = (function(e4) {
7824
+ var t2 = e4.useCSSOMInjection, n = e4.target;
7825
+ return e4.isServer ? new Ce2(n) : t2 ? new Ne2(n) : new Ee2(n);
7826
+ })(this.options), new ie2(e3)));
7827
+ var e3;
7828
+ }, e2.prototype.hasNameForId = function(e3, t2) {
7829
+ var n, r3;
7830
+ return null !== (r3 = null === (n = this.names.get(e3)) || void 0 === n ? void 0 : n.has(t2)) && void 0 !== r3 && r3;
7831
+ }, e2.prototype.registerName = function(e3, t2) {
7832
+ de2(e3);
7833
+ var n = this.names.get(e3);
7834
+ n ? n.add(t2) : this.names.set(e3, /* @__PURE__ */ new Set([t2]));
7835
+ }, e2.prototype.insertRules = function(e3, t2, n) {
7836
+ this.registerName(e3, t2), this.getTag().insertRules(de2(e3), n);
7837
+ }, e2.prototype.clearNames = function(e3) {
7838
+ this.names.has(e3) && this.names.get(e3).clear();
7839
+ }, e2.prototype.clearRules = function(e3) {
7840
+ this.getTag().clearGroup(de2(e3)), this.clearNames(e3);
7841
+ }, e2.prototype.clearTag = function() {
7842
+ this.tag = void 0;
7843
+ }, e2;
7844
+ })();
7845
+ var Ie2 = /&/g;
7846
+ var Oe2 = 47;
7847
+ var De2 = 42;
7848
+ function Re2(e2) {
7849
+ if (-1 === e2.indexOf("}")) return false;
7850
+ for (var t2 = e2.length, n = 0, r3 = 0, o3 = false, s = 0; s < t2; s++) {
7851
+ var i = e2.charCodeAt(s);
7852
+ if (0 !== r3 || o3 || i !== Oe2 || e2.charCodeAt(s + 1) !== De2) if (o3) i === De2 && e2.charCodeAt(s + 1) === Oe2 && (o3 = false, s++);
7853
+ else if (34 !== i && 39 !== i || 0 !== s && 92 === e2.charCodeAt(s - 1)) {
7854
+ if (0 === r3) {
7855
+ if (123 === i) n++;
7856
+ else if (125 === i && --n < 0) return true;
7857
+ }
7858
+ } else 0 === r3 ? r3 = i : r3 === i && (r3 = 0);
7859
+ else o3 = true, s++;
7860
+ }
7861
+ return 0 !== n || 0 !== r3;
7862
+ }
7863
+ function Te2(e2, t2) {
7864
+ return e2.map(function(e3) {
7865
+ return "rule" === e3.type && (e3.value = "".concat(t2, " ").concat(e3.value), e3.value = e3.value.replaceAll(",", ",".concat(t2, " ")), e3.props = e3.props.map(function(e4) {
7866
+ return "".concat(t2, " ").concat(e4);
7867
+ })), Array.isArray(e3.children) && "@keyframes" !== e3.type && (e3.children = Te2(e3.children, t2)), e3;
7868
+ });
7869
+ }
7870
+ function xe2(e2) {
7871
+ var t2, n, r3, o3 = void 0 === e2 ? w2 : e2, i = o3.options, a3 = void 0 === i ? w2 : i, c3 = o3.plugins, u3 = void 0 === c3 ? S2 : c3, l3 = function(e3, r4, o4) {
7872
+ return o4.startsWith(n) && o4.endsWith(n) && o4.replaceAll(n, "").length > 0 ? ".".concat(t2) : e3;
7873
+ }, d3 = u3.slice();
7874
+ d3.push(function(e3) {
7875
+ e3.type === RULESET && e3.value.includes("&") && (r3 || (r3 = new RegExp("\\".concat(n, "\\b"), "g")), e3.props[0] = e3.props[0].replace(Ie2, n).replace(r3, l3));
7876
+ }), a3.prefix && d3.push(prefixer), d3.push(stringify);
7877
+ var h3 = [], p3 = middleware(d3.concat(rulesheet(function(e3) {
7878
+ return h3.push(e3);
7879
+ }))), f2 = function(e3, o4, i2, c4) {
7880
+ void 0 === o4 && (o4 = ""), void 0 === i2 && (i2 = ""), void 0 === c4 && (c4 = "&"), t2 = c4, n = o4, r3 = void 0;
7881
+ var u4 = (function(e4) {
7882
+ if (!Re2(e4)) return e4;
7883
+ for (var t3 = e4.length, n2 = "", r4 = 0, o5 = 0, s = 0, i3 = false, a4 = 0; a4 < t3; a4++) {
7884
+ var c5 = e4.charCodeAt(a4);
7885
+ if (0 !== s || i3 || c5 !== Oe2 || e4.charCodeAt(a4 + 1) !== De2) if (i3) c5 === De2 && e4.charCodeAt(a4 + 1) === Oe2 && (i3 = false, a4++);
7886
+ else if (34 !== c5 && 39 !== c5 || 0 !== a4 && 92 === e4.charCodeAt(a4 - 1)) {
7887
+ if (0 === s) if (123 === c5) o5++;
7888
+ else if (125 === c5) {
7889
+ if (--o5 < 0) {
7890
+ for (var u5 = a4 + 1; u5 < t3; ) {
7891
+ var l5 = e4.charCodeAt(u5);
7892
+ if (59 === l5 || 10 === l5) break;
7893
+ u5++;
7894
+ }
7895
+ u5 < t3 && 59 === e4.charCodeAt(u5) && u5++, o5 = 0, a4 = u5 - 1, r4 = u5;
7896
+ continue;
7897
+ }
7898
+ 0 === o5 && (n2 += e4.substring(r4, a4 + 1), r4 = a4 + 1);
7899
+ } else 59 === c5 && 0 === o5 && (n2 += e4.substring(r4, a4 + 1), r4 = a4 + 1);
7900
+ } else 0 === s ? s = c5 : s === c5 && (s = 0);
7901
+ else i3 = true, a4++;
7902
+ }
7903
+ if (r4 < t3) {
7904
+ var d4 = e4.substring(r4);
7905
+ Re2(d4) || (n2 += d4);
7906
+ }
7907
+ return n2;
7908
+ })((function(e4) {
7909
+ if (-1 === e4.indexOf("//")) return e4;
7910
+ for (var t3 = e4.length, n2 = [], r4 = 0, o5 = 0, s = 0, i3 = 0; o5 < t3; ) {
7911
+ var a4 = e4.charCodeAt(o5);
7912
+ if (34 !== a4 && 39 !== a4 || 0 !== o5 && 92 === e4.charCodeAt(o5 - 1)) if (0 === s) if (a4 === Oe2 && o5 + 1 < t3 && e4.charCodeAt(o5 + 1) === De2) {
7913
+ for (o5 += 2; o5 + 1 < t3 && (e4.charCodeAt(o5) !== De2 || e4.charCodeAt(o5 + 1) !== Oe2); ) o5++;
7914
+ o5 += 2;
7915
+ } else if (40 === a4 && o5 >= 3 && 108 == (32 | e4.charCodeAt(o5 - 1)) && 114 == (32 | e4.charCodeAt(o5 - 2)) && 117 == (32 | e4.charCodeAt(o5 - 3))) i3 = 1, o5++;
7916
+ else if (i3 > 0) 41 === a4 ? i3-- : 40 === a4 && i3++, o5++;
7917
+ else if (a4 === De2 && o5 + 1 < t3 && e4.charCodeAt(o5 + 1) === Oe2) o5 > r4 && n2.push(e4.substring(r4, o5)), r4 = o5 += 2;
7918
+ else if (a4 === Oe2 && o5 + 1 < t3 && e4.charCodeAt(o5 + 1) === Oe2) {
7919
+ for (o5 > r4 && n2.push(e4.substring(r4, o5)); o5 < t3 && 10 !== e4.charCodeAt(o5); ) o5++;
7920
+ r4 = o5;
7921
+ } else o5++;
7922
+ else o5++;
7923
+ else 0 === s ? s = a4 : s === a4 && (s = 0), o5++;
7924
+ }
7925
+ return 0 === r4 ? e4 : (r4 < t3 && n2.push(e4.substring(r4)), n2.join(""));
7926
+ })(e3)), l4 = compile(i2 || o4 ? "".concat(i2, " ").concat(o4, " { ").concat(u4, " }") : u4);
7927
+ return a3.namespace && (l4 = Te2(l4, a3.namespace)), h3 = [], serialize(l4, p3), h3;
7928
+ };
7929
+ return f2.hash = u3.length ? u3.reduce(function(e3, t3) {
7930
+ return t3.name || se2(15), D2(e3, t3.name);
7931
+ }, 5381).toString() : "", f2;
7932
+ }
7933
+ var je2 = new Pe2();
7934
+ var ke2 = xe2();
7935
+ var Me2 = { shouldForwardProp: void 0, styleSheet: je2, stylis: ke2 };
7936
+ var Ve2 = p2 ? { Provider: function(e2) {
7937
+ return e2.children;
7938
+ }, Consumer: function(e2) {
7939
+ return (0, e2.children)(Me2);
7940
+ } } : r2.createContext(Me2);
7941
+ var Fe2 = Ve2.Consumer;
7942
+ var Ge2 = p2 ? { Provider: function(e2) {
7943
+ return e2.children;
7944
+ }, Consumer: function(e2) {
7945
+ return (0, e2.children)(void 0);
7946
+ } } : r2.createContext(void 0);
7947
+ function Le2() {
7948
+ return p2 ? Me2 : r2.useContext(Ve2);
7949
+ }
7950
+ function Be2(e2) {
7951
+ if (p2 || !r2.useMemo) return e2.children;
7952
+ var t2 = Le2().styleSheet, n = r2.useMemo(function() {
7953
+ var n2 = t2;
7954
+ return e2.sheet ? n2 = e2.sheet : e2.target && (n2 = n2.reconstructWithOptions({ target: e2.target }, false)), e2.disableCSSOMInjection && (n2 = n2.reconstructWithOptions({ useCSSOMInjection: false })), n2;
7955
+ }, [e2.disableCSSOMInjection, e2.sheet, e2.target, t2]), o3 = r2.useMemo(function() {
7956
+ return xe2({ options: { namespace: e2.namespace, prefix: e2.enableVendorPrefixes }, plugins: e2.stylisPlugins });
7957
+ }, [e2.enableVendorPrefixes, e2.namespace, e2.stylisPlugins]), s = r2.useMemo(function() {
7958
+ return { shouldForwardProp: e2.shouldForwardProp, styleSheet: n, stylis: o3 };
7959
+ }, [e2.shouldForwardProp, n, o3]);
7960
+ return r2.createElement(Ve2.Provider, { value: s }, r2.createElement(Ge2.Provider, { value: o3 }, e2.children));
7961
+ }
7962
+ var ze2 = (function() {
7963
+ function e2(e3, t2) {
7964
+ var n = this;
7965
+ this.inject = function(e4, t3) {
7966
+ void 0 === t3 && (t3 = ke2);
7967
+ var r3 = n.name + t3.hash;
7968
+ e4.hasNameForId(n.id, r3) || e4.insertRules(n.id, r3, t3(n.rules, r3, "@keyframes"));
7969
+ }, this.name = e3, this.id = "sc-keyframes-".concat(e3), this.rules = t2, ne2(this, function() {
7970
+ throw se2(12, String(n.name));
7971
+ });
7972
+ }
7973
+ return e2.prototype.getName = function(e3) {
7974
+ return void 0 === e3 && (e3 = ke2), this.name + e3.hash;
7975
+ }, e2;
7976
+ })();
7977
+ function $e2(e2, t2) {
7978
+ return null == t2 || "boolean" == typeof t2 || "" === t2 ? "" : "number" != typeof t2 || 0 === t2 || e2 in unitlessKeys || e2.startsWith("--") ? String(t2).trim() : "".concat(t2, "px");
7979
+ }
7980
+ var Ye2 = function(e2) {
7981
+ return e2 >= "A" && e2 <= "Z";
7982
+ };
7983
+ function We2(e2) {
7984
+ for (var t2 = "", n = 0; n < e2.length; n++) {
7985
+ var r3 = e2[n];
7986
+ if (1 === n && "-" === r3 && "-" === e2[0]) return e2;
7987
+ Ye2(r3) ? t2 += "-" + r3.toLowerCase() : t2 += r3;
7988
+ }
7989
+ return t2.startsWith("ms-") ? "-" + t2 : t2;
7990
+ }
7991
+ var qe2 = function(e2) {
7992
+ return null == e2 || false === e2 || "" === e2;
7993
+ };
7994
+ var He2 = function(t2) {
7995
+ var n = [];
7996
+ for (var r3 in t2) {
7997
+ var o3 = t2[r3];
7998
+ t2.hasOwnProperty(r3) && !qe2(o3) && (Array.isArray(o3) && o3.isCss || X2(o3) ? n.push("".concat(We2(r3), ":"), o3, ";") : ee2(o3) ? n.push.apply(n, __spreadArray(__spreadArray(["".concat(r3, " {")], He2(o3), false), ["}"], false)) : n.push("".concat(We2(r3), ": ").concat($e2(r3, o3), ";")));
7999
+ }
8000
+ return n;
8001
+ };
8002
+ function Ue2(e2, t2, n, r3, o3) {
8003
+ if (void 0 === o3 && (o3 = []), "string" == typeof e2) return e2 && o3.push(e2), o3;
8004
+ if (qe2(e2)) return o3;
8005
+ if (Z2(e2)) return o3.push(".".concat(e2.styledComponentId)), o3;
8006
+ if (X2(e2)) {
8007
+ if (!X2(i = e2) || i.prototype && i.prototype.isReactComponent || !t2) return o3.push(e2), o3;
8008
+ var s = e2(t2);
8009
+ return "object" != typeof s || Array.isArray(s) || s instanceof ze2 || ee2(s) || null === s || console.error("".concat(x2(e2), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), Ue2(s, t2, n, r3, o3);
8010
+ }
8011
+ var i;
8012
+ if (e2 instanceof ze2) return n ? (e2.inject(n, r3), o3.push(e2.getName(r3))) : o3.push(e2), o3;
8013
+ if (ee2(e2)) {
8014
+ for (var a3 = He2(e2), c3 = 0; c3 < a3.length; c3++) o3.push(a3[c3]);
8015
+ return o3;
8016
+ }
8017
+ if (!Array.isArray(e2)) return o3.push(e2.toString()), o3;
8018
+ for (c3 = 0; c3 < e2.length; c3++) Ue2(e2[c3], t2, n, r3, o3);
8019
+ return o3;
8020
+ }
8021
+ function Je2(e2) {
8022
+ for (var t2 = 0; t2 < e2.length; t2 += 1) {
8023
+ var n = e2[t2];
8024
+ if (X2(n) && !Z2(n)) return false;
8025
+ }
8026
+ return true;
8027
+ }
8028
+ var Xe2 = R2(l2);
8029
+ var Ze2 = (function() {
8030
+ function e2(e3, t2, n) {
8031
+ this.rules = e3, this.staticRulesId = "", this.isStatic = false, this.componentId = t2, this.baseHash = D2(Xe2, t2), this.baseStyle = n, Pe2.registerId(t2);
8032
+ }
8033
+ return e2.prototype.generateAndInjectStyles = function(e3, t2, n) {
8034
+ var r3 = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e3, t2, n).className : "";
8035
+ if (this.isStatic && !n.hash) if (this.staticRulesId && t2.hasNameForId(this.componentId, this.staticRulesId)) r3 = K2(r3, this.staticRulesId);
8036
+ else {
8037
+ var o3 = Q2(Ue2(this.rules, e3, t2, n)), s = I2(D2(this.baseHash, o3) >>> 0);
8038
+ if (!t2.hasNameForId(this.componentId, s)) {
8039
+ var i = n(o3, ".".concat(s), void 0, this.componentId);
8040
+ t2.insertRules(this.componentId, s, i);
8041
+ }
8042
+ r3 = K2(r3, s), this.staticRulesId = s;
8043
+ }
8044
+ else {
8045
+ for (var a3 = D2(this.baseHash, n.hash), c3 = "", u3 = 0; u3 < this.rules.length; u3++) {
8046
+ var l3 = this.rules[u3];
8047
+ if ("string" == typeof l3) c3 += l3, a3 = D2(a3, l3);
8048
+ else if (l3) {
8049
+ var d3 = Q2(Ue2(l3, e3, t2, n));
8050
+ a3 = D2(D2(a3, String(u3)), d3), c3 += d3;
8051
+ }
8052
+ }
8053
+ if (c3) {
8054
+ var h3 = I2(a3 >>> 0);
8055
+ if (!t2.hasNameForId(this.componentId, h3)) {
8056
+ var p3 = n(c3, ".".concat(h3), void 0, this.componentId);
8057
+ t2.insertRules(this.componentId, h3, p3);
8058
+ }
8059
+ r3 = K2(r3, h3);
8060
+ }
8061
+ }
8062
+ return { className: r3, css: "undefined" == typeof window ? t2.getTag().getGroup(de2(this.componentId)) : "" };
8063
+ }, e2;
8064
+ })();
8065
+ var Ke = p2 ? { Provider: function(e2) {
8066
+ return e2.children;
8067
+ }, Consumer: function(e2) {
8068
+ return (0, e2.children)(void 0);
8069
+ } } : r2.createContext(void 0);
8070
+ var Qe2 = Ke.Consumer;
8071
+ var nt2 = {};
8072
+ var rt2 = /* @__PURE__ */ new Set();
8073
+ function ot2(e2, s, i) {
8074
+ var a3 = Z2(e2), c3 = e2, u3 = !j2(e2), d3 = s.attrs, h3 = void 0 === d3 ? S2 : d3, f2 = s.componentId, m3 = void 0 === f2 ? (function(e3, t2) {
8075
+ var n = "string" != typeof e3 ? "sc" : A2(e3);
8076
+ nt2[n] = (nt2[n] || 0) + 1;
8077
+ var r3 = "".concat(n, "-").concat(T2(l2 + n + nt2[n]));
8078
+ return t2 ? "".concat(t2, "-").concat(r3) : r3;
8079
+ })(s.displayName, s.parentComponentId) : f2, y3 = s.displayName, v3 = void 0 === y3 ? (function(e3) {
8080
+ return j2(e3) ? "styled.".concat(e3) : "Styled(".concat(x2(e3), ")");
8081
+ })(e2) : y3, E3 = s.displayName && s.componentId ? "".concat(A2(s.displayName), "-").concat(s.componentId) : s.componentId || m3, C3 = a3 && c3.attrs ? c3.attrs.concat(h3).filter(Boolean) : h3, _3 = s.shouldForwardProp;
8082
+ if (a3 && c3.shouldForwardProp) {
8083
+ var P3 = c3.shouldForwardProp;
8084
+ if (s.shouldForwardProp) {
8085
+ var I3 = s.shouldForwardProp;
8086
+ _3 = function(e3, t2) {
8087
+ return P3(e3, t2) && I3(e3, t2);
8088
+ };
8089
+ } else _3 = P3;
8090
+ }
8091
+ var O3 = new Ze2(i, E3, a3 ? c3.componentStyle : void 0);
8092
+ function D3(e3, s2) {
8093
+ return (function(e4, s3, i2) {
8094
+ var a4 = e4.attrs, c4 = e4.componentStyle, u4 = e4.defaultProps, l3 = e4.foldedComponentIds, d4 = e4.styledComponentId, h4 = e4.target, f3 = p2 ? void 0 : r2.useContext(Ke), m4 = Le2(), y4 = e4.shouldForwardProp || m4.shouldForwardProp;
8095
+ r2.useDebugValue && r2.useDebugValue(d4);
8096
+ var v5 = b2(s3, f3, u4) || (p2 ? void 0 : w2), g3 = (function(e5, n, r3) {
8097
+ for (var o3, s4 = __assign(__assign({}, n), { className: void 0, theme: r3 }), i3 = 0; i3 < e5.length; i3 += 1) {
8098
+ var a5 = X2(o3 = e5[i3]) ? o3(s4) : o3;
8099
+ for (var c5 in a5) "className" === c5 ? s4.className = K2(s4.className, a5[c5]) : "style" === c5 ? s4.style = __assign(__assign({}, s4.style), a5[c5]) : s4[c5] = a5[c5];
8100
+ }
8101
+ return "className" in n && "string" == typeof n.className && (s4.className = K2(s4.className, n.className)), s4;
8102
+ })(a4, s3, v5), S3 = g3.as || h4, E4 = {};
8103
+ for (var C4 in g3) void 0 === g3[C4] || "$" === C4[0] || "as" === C4 || "theme" === C4 && g3.theme === v5 || ("forwardedAs" === C4 ? E4.as = g3.forwardedAs : y4 && !y4(C4, S3) || (E4[C4] = g3[C4], y4 || false || isPropValid(C4) || rt2.has(C4) || !N2.has(S3) || (rt2.add(C4), console.warn('styled-components: it looks like an unknown prop "'.concat(C4, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
8104
+ var A3 = (function(e5, t2) {
8105
+ var n = Le2(), o3 = e5.generateAndInjectStyles(t2, n.styleSheet, n.stylis);
8106
+ return r2.useDebugValue && r2.useDebugValue(o3.className), o3;
8107
+ })(c4, g3), _4 = A3.className, P4 = A3.css;
8108
+ e4.warnTooManyClasses && e4.warnTooManyClasses(_4);
8109
+ var I4 = K2(l3, d4);
8110
+ _4 && (I4 += " " + _4), g3.className && (I4 += " " + g3.className), E4[j2(S3) && !N2.has(S3) ? "class" : "className"] = I4, i2 && (E4.ref = i2);
8111
+ var O4 = o2(S3, E4);
8112
+ return p2 && P4 ? r2.createElement(r2.Fragment, null, r2.createElement("style", { precedence: "styled-components", href: "sc-".concat(d4, "-").concat(_4), children: P4 }), O4) : O4;
8113
+ })(R3, e3, s2);
8114
+ }
8115
+ D3.displayName = v3;
8116
+ var R3 = r2.forwardRef(D3);
8117
+ return R3.attrs = C3, R3.componentStyle = O3, R3.displayName = v3, R3.shouldForwardProp = _3, R3.foldedComponentIds = a3 ? K2(c3.foldedComponentIds, c3.styledComponentId) : "", R3.styledComponentId = E3, R3.target = a3 ? c3.target : e2, Object.defineProperty(R3, "defaultProps", { get: function() {
8118
+ return this._foldedDefaultProps;
8119
+ }, set: function(e3) {
8120
+ this._foldedDefaultProps = a3 ? (function(e4) {
8121
+ for (var t2 = [], n = 1; n < arguments.length; n++) t2[n - 1] = arguments[n];
8122
+ for (var r3 = 0, o3 = t2; r3 < o3.length; r3++) te2(e4, o3[r3], true);
8123
+ return e4;
8124
+ })({}, c3.defaultProps, e3) : e3;
8125
+ } }), g2(v3, E3), R3.warnTooManyClasses = /* @__PURE__ */ (function(e3, t2) {
8126
+ var n = {}, r3 = false;
8127
+ return function(o3) {
8128
+ if (!r3 && (n[o3] = true, Object.keys(n).length >= 200)) {
8129
+ var s2 = t2 ? ' with the id of "'.concat(t2, '"') : "";
8130
+ console.warn("Over ".concat(200, " classes were generated for component ").concat(e3).concat(s2, ".\n") + "Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"), r3 = true, n = {};
8131
+ }
8132
+ };
8133
+ })(v3, E3), ne2(R3, function() {
8134
+ return ".".concat(R3.styledComponentId);
8135
+ }), u3 && J2(R3, e2, { attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, shouldForwardProp: true, styledComponentId: true, target: true }), R3;
8136
+ }
8137
+ function st2(e2, t2) {
8138
+ for (var n = [e2[0]], r3 = 0, o3 = t2.length; r3 < o3; r3 += 1) n.push(t2[r3], e2[r3 + 1]);
8139
+ return n;
8140
+ }
8141
+ var it2 = function(e2) {
8142
+ return Object.assign(e2, { isCss: true });
8143
+ };
8144
+ function at2(t2) {
8145
+ for (var n = [], r3 = 1; r3 < arguments.length; r3++) n[r3 - 1] = arguments[r3];
8146
+ if (X2(t2) || ee2(t2)) return it2(Ue2(st2(S2, __spreadArray([t2], n, true))));
8147
+ var o3 = t2;
8148
+ return 0 === n.length && 1 === o3.length && "string" == typeof o3[0] ? Ue2(o3) : it2(Ue2(st2(o3, n)));
8149
+ }
8150
+ function ct2(n, r3, o3) {
8151
+ if (void 0 === o3 && (o3 = w2), !r3) throw se2(1, r3);
8152
+ var s = function(t2) {
8153
+ for (var s2 = [], i = 1; i < arguments.length; i++) s2[i - 1] = arguments[i];
8154
+ return n(r3, o3, at2.apply(void 0, __spreadArray([t2], s2, false)));
8155
+ };
8156
+ return s.attrs = function(e2) {
8157
+ return ct2(n, r3, __assign(__assign({}, o3), { attrs: Array.prototype.concat(o3.attrs, e2).filter(Boolean) }));
8158
+ }, s.withConfig = function(e2) {
8159
+ return ct2(n, r3, __assign(__assign({}, o3), e2));
8160
+ }, s;
8161
+ }
8162
+ var ut2 = function(e2) {
8163
+ return ct2(ot2, e2);
8164
+ };
8165
+ var lt = ut2;
8166
+ N2.forEach(function(e2) {
8167
+ lt[e2] = ut2(e2);
8168
+ });
8169
+ var dt2 = (function() {
8170
+ function e2(e3, t2) {
8171
+ this.rules = e3, this.componentId = t2, this.isStatic = Je2(e3), Pe2.registerId(this.componentId + 1);
8172
+ }
8173
+ return e2.prototype.createStyles = function(e3, t2, n, r3) {
8174
+ var o3 = r3(Q2(Ue2(this.rules, t2, n, r3)), ""), s = this.componentId + e3;
8175
+ n.insertRules(s, s, o3);
8176
+ }, e2.prototype.removeStyles = function(e3, t2) {
8177
+ t2.clearRules(this.componentId + e3);
8178
+ }, e2.prototype.renderStyles = function(e3, t2, n, r3) {
8179
+ e3 > 2 && Pe2.registerId(this.componentId + e3);
8180
+ var o3 = this.componentId + e3;
8181
+ this.isStatic ? n.hasNameForId(o3, o3) || this.createStyles(e3, t2, n, r3) : (this.removeStyles(e3, n), this.createStyles(e3, t2, n, r3));
8182
+ }, e2;
8183
+ })();
8184
+ function ht(n) {
8185
+ for (var o3 = [], s = 1; s < arguments.length; s++) o3[s - 1] = arguments[s];
8186
+ var i = at2.apply(void 0, __spreadArray([n], o3, false)), a3 = "sc-global-".concat(T2(JSON.stringify(i))), c3 = new dt2(i, a3);
8187
+ g2(a3);
8188
+ var u3 = /* @__PURE__ */ new WeakMap(), l3 = function(e2) {
8189
+ var t2 = Le2(), n2 = p2 ? void 0 : r2.useContext(Ke), o4 = u3.get(t2.styleSheet);
8190
+ if (void 0 === o4 && (o4 = t2.styleSheet.allocateGSInstance(a3), u3.set(t2.styleSheet, o4)), r2.Children.count(e2.children) && console.warn("The global style component ".concat(a3, " was given child JSX. createGlobalStyle does not render children.")), i.some(function(e3) {
8191
+ return "string" == typeof e3 && -1 !== e3.indexOf("@import");
8192
+ }) && console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."), ("undefined" == typeof window || !t2.styleSheet.server) && d3(o4, e2, t2.styleSheet, n2, t2.stylis), p2 || r2.useLayoutEffect(function() {
8193
+ return t2.styleSheet.server || d3(o4, e2, t2.styleSheet, n2, t2.stylis), function() {
8194
+ var e3;
8195
+ c3.removeStyles(o4, t2.styleSheet), e3 = t2.styleSheet.options.target, "undefined" != typeof document && (null != e3 ? e3 : document).querySelectorAll('style[data-styled-global="'.concat(a3, '"]')).forEach(function(e4) {
8196
+ return e4.remove();
8197
+ });
8198
+ };
8199
+ }, [o4, e2, t2.styleSheet, n2, t2.stylis]), p2) {
8200
+ var s2 = a3 + o4, l4 = "undefined" == typeof window ? t2.styleSheet.getTag().getGroup(de2(s2)) : "";
8201
+ if (l4) return r2.createElement("style", { key: "".concat(a3, "-").concat(o4), "data-styled-global": a3, children: l4 });
8202
+ }
8203
+ return null;
8204
+ };
8205
+ function d3(e2, n2, r3, o4, s2) {
8206
+ if (c3.isStatic) c3.renderStyles(e2, m2, r3, s2);
8207
+ else {
8208
+ var i2 = __assign(__assign({}, n2), { theme: b2(n2, o4, l3.defaultProps) });
8209
+ c3.renderStyles(e2, i2, r3, s2);
8210
+ }
8211
+ }
8212
+ return r2.memo(l3);
8213
+ }
8214
+ var mt2 = (function() {
8215
+ function e2() {
8216
+ var e3 = this;
8217
+ this._emitSheetCSS = function() {
8218
+ var t2 = e3.instance.toString();
8219
+ if (!t2) return "";
8220
+ var n = we2(), r3 = Q2([n && 'nonce="'.concat(n, '"'), "".concat(a2, '="true"'), "".concat(u2, '="').concat(l2, '"')].filter(Boolean), " ");
8221
+ return "<style ".concat(r3, ">").concat(t2, "</style>");
8222
+ }, this.getStyleTags = function() {
8223
+ if (e3.sealed) throw se2(2);
8224
+ return e3._emitSheetCSS();
8225
+ }, this.getStyleElement = function() {
8226
+ var n;
8227
+ if (e3.sealed) throw se2(2);
8228
+ var o3 = e3.instance.toString();
8229
+ if (!o3) return [];
8230
+ var s = ((n = {})[a2] = "", n[u2] = l2, n.dangerouslySetInnerHTML = { __html: o3 }, n), i = we2();
8231
+ return i && (s.nonce = i), [r2.createElement("style", __assign({}, s, { key: "sc-0-0" }))];
8232
+ }, this.seal = function() {
8233
+ e3.sealed = true;
8234
+ }, this.instance = new Pe2({ isServer: true }), this.sealed = false;
8235
+ }
8236
+ return e2.prototype.collectStyles = function(e3) {
8237
+ if (this.sealed) throw se2(2);
8238
+ return r2.createElement(Be2, { sheet: this.instance }, e3);
8239
+ }, e2.prototype.interleaveWithNodeStream = function(e3) {
8240
+ throw se2(3);
8241
+ }, e2;
8242
+ })();
8243
+ "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");
8244
+ var vt = "__sc-".concat(a2, "__");
8245
+ "undefined" != typeof window && (window[vt] || (window[vt] = 0), 1 === window[vt] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info."), window[vt] += 1);
8246
+
7548
8247
  // node_modules/@schematichq/schematic-icons/dist/types.js
7549
8248
  var iconsList = {
7550
8249
  "wind": 61697,
@@ -9674,6 +10373,7 @@ function CompanyPlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
9674
10373
  return json;
9675
10374
  }
9676
10375
  return {
10376
+ activeVersion: json["active_version"] == null ? void 0 : PlanVersionResponseDataFromJSON(json["active_version"]),
9677
10377
  audienceType: json["audience_type"] == null ? void 0 : json["audience_type"],
9678
10378
  billingProduct: json["billing_product"] == null ? void 0 : BillingProductDetailResponseDataFromJSON(json["billing_product"]),
9679
10379
  chargeType: ChargeTypeFromJSON(json["charge_type"]),
@@ -9686,6 +10386,7 @@ function CompanyPlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
9686
10386
  custom: json["custom"],
9687
10387
  customPlanConfig: json["custom_plan_config"] == null ? void 0 : CustomPlanConfigFromJSON(json["custom_plan_config"]),
9688
10388
  description: json["description"],
10389
+ draftVersion: json["draft_version"] == null ? void 0 : PlanVersionResponseDataFromJSON(json["draft_version"]),
9689
10390
  entitlements: json["entitlements"].map(
9690
10391
  PlanEntitlementResponseDataFromJSON
9691
10392
  ),
@@ -9827,6 +10528,7 @@ function PlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
9827
10528
  return json;
9828
10529
  }
9829
10530
  return {
10531
+ activeVersion: json["active_version"] == null ? void 0 : PlanVersionResponseDataFromJSON(json["active_version"]),
9830
10532
  audienceType: json["audience_type"] == null ? void 0 : json["audience_type"],
9831
10533
  billingProduct: json["billing_product"] == null ? void 0 : BillingProductDetailResponseDataFromJSON(json["billing_product"]),
9832
10534
  chargeType: ChargeTypeFromJSON(json["charge_type"]),
@@ -9834,6 +10536,7 @@ function PlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
9834
10536
  controlledBy: PlanControlledByTypeFromJSON(json["controlled_by"]),
9835
10537
  createdAt: new Date(json["created_at"]),
9836
10538
  description: json["description"],
10539
+ draftVersion: json["draft_version"] == null ? void 0 : PlanVersionResponseDataFromJSON(json["draft_version"]),
9837
10540
  features: json["features"].map(
9838
10541
  FeatureDetailResponseDataFromJSON
9839
10542
  ),
@@ -11812,6 +12515,7 @@ function PlanViewPublicResponseDataFromJSONTyped(json, ignoreDiscriminator) {
11812
12515
  return json;
11813
12516
  }
11814
12517
  return {
12518
+ activeVersion: json["active_version"] == null ? void 0 : PlanVersionResponseDataFromJSON2(json["active_version"]),
11815
12519
  audienceType: json["audience_type"] == null ? void 0 : json["audience_type"],
11816
12520
  billingProduct: json["billing_product"] == null ? void 0 : BillingProductDetailResponseDataFromJSON2(json["billing_product"]),
11817
12521
  chargeType: ChargeTypeFromJSON2(json["charge_type"]),
@@ -11822,6 +12526,7 @@ function PlanViewPublicResponseDataFromJSONTyped(json, ignoreDiscriminator) {
11822
12526
  custom: json["custom"],
11823
12527
  customPlanConfig: json["custom_plan_config"] == null ? void 0 : CustomPlanConfigFromJSON2(json["custom_plan_config"]),
11824
12528
  description: json["description"],
12529
+ draftVersion: json["draft_version"] == null ? void 0 : PlanVersionResponseDataFromJSON2(json["draft_version"]),
11825
12530
  entitlements: json["entitlements"].map(
11826
12531
  PlanEntitlementResponseDataFromJSON2
11827
12532
  ),
@@ -12126,7 +12831,7 @@ var reducer = (state, action) => {
12126
12831
  // src/context/EmbedProvider.tsx
12127
12832
  import { jsx, jsxs } from "react/jsx-runtime";
12128
12833
  var getCustomHeaders = (sessionId) => ({
12129
- "X-Schematic-Components-Version": "2.6.1",
12834
+ "X-Schematic-Components-Version": "2.6.2",
12130
12835
  "X-Schematic-Session-ID": sessionId
12131
12836
  });
12132
12837
  var EmbedProvider = ({
@@ -12483,7 +13188,7 @@ var EmbedProvider = ({
12483
13188
  fontSet.add(fontFamily);
12484
13189
  });
12485
13190
  if (fontSet.size > 0) {
12486
- const weights = new Array(9).fill(0).map((_2, i) => (i + 1) * 100);
13191
+ const weights = new Array(9).fill(0).map((_3, i) => (i + 1) * 100);
12487
13192
  const src = `https://fonts.googleapis.com/css2?${[...fontSet].map(
12488
13193
  (fontFamily) => `family=${fontFamily}:wght@${weights.join(";")}&display=swap`
12489
13194
  ).join("&")}`;
@@ -12543,7 +13248,7 @@ var EmbedProvider = ({
12543
13248
  updateSettings,
12544
13249
  debug
12545
13250
  },
12546
- children: /* @__PURE__ */ jsxs(tt, { theme: state.settings.theme, children: [
13251
+ children: /* @__PURE__ */ jsxs(Qe, { theme: state.settings.theme, children: [
12547
13252
  /* @__PURE__ */ jsx(IconStyles, {}),
12548
13253
  children
12549
13254
  ] })
@@ -12760,7 +13465,7 @@ function useWrapChildren(ref) {
12760
13465
  }
12761
13466
 
12762
13467
  // src/components/ui/box/styles.ts
12763
- var Box = lt("div")((props) => {
13468
+ var Box = ct("div")((props) => {
12764
13469
  function reducer2(acc, [key, value]) {
12765
13470
  if (key.startsWith("$") && !["$viewport"].includes(key)) {
12766
13471
  acc.push(
@@ -12771,14 +13476,14 @@ var Box = lt("div")((props) => {
12771
13476
  return acc;
12772
13477
  }
12773
13478
  const styles = Object.entries(props).reduce(reducer2, [
12774
- at`
13479
+ st`
12775
13480
  &:focus-visible {
12776
13481
  outline: 2px solid ${({ theme }) => theme.primary};
12777
13482
  }
12778
13483
  `
12779
13484
  ]);
12780
13485
  for (const [key, value] of Object.entries(props.$viewport || {})) {
12781
- styles.push(at`
13486
+ styles.push(st`
12782
13487
  ${{
12783
13488
  "xs": "@container (min-width: 375px)",
12784
13489
  "sm": "@container (min-width: 640px)",
@@ -12793,11 +13498,11 @@ var Box = lt("div")((props) => {
12793
13498
  }
12794
13499
  return styles;
12795
13500
  });
12796
- var TransitionBox = lt(Box)`
13501
+ var TransitionBox = ct(Box)`
12797
13502
  ${({ $isExpanded = true }) => {
12798
- return $isExpanded ? at`
13503
+ return $isExpanded ? st`
12799
13504
  height: auto;
12800
- ` : at`
13505
+ ` : st`
12801
13506
  height: 0;
12802
13507
  overflow: hidden;
12803
13508
  `;
@@ -12814,7 +13519,7 @@ var TransitionBox = lt(Box)`
12814
13519
  `;
12815
13520
 
12816
13521
  // src/components/ui/icon/styles.ts
12817
- var Icon2 = lt(Icon).attrs(({ name, title, onClick }) => ({
13522
+ var Icon2 = ct(Icon).attrs(({ name, title, onClick }) => ({
12818
13523
  title: title || name,
12819
13524
  ...onClick && { tabIndex: 0 }
12820
13525
  }))`
@@ -12824,7 +13529,7 @@ var Icon2 = lt(Icon).attrs(({ name, title, onClick }) => ({
12824
13529
  flex-shrink: 0;
12825
13530
  transition: 0.1s;
12826
13531
 
12827
- ${({ onClick }) => onClick && at`
13532
+ ${({ onClick }) => onClick && st`
12828
13533
  &:hover {
12829
13534
  cursor: pointer;
12830
13535
  }
@@ -12835,7 +13540,7 @@ var Icon2 = lt(Icon).attrs(({ name, title, onClick }) => ({
12835
13540
  outline-offset: 2px;
12836
13541
  }
12837
13542
 
12838
- ${({ $rounded }) => $rounded && at`
13543
+ ${({ $rounded }) => $rounded && st`
12839
13544
  border-radius: 9999px;
12840
13545
  `}
12841
13546
 
@@ -12866,10 +13571,10 @@ var Icon2 = lt(Icon).attrs(({ name, title, onClick }) => ({
12866
13571
  scale *= 3;
12867
13572
  break;
12868
13573
  }
12869
- return at`
13574
+ return st`
12870
13575
  font-size: ${base * scale / TEXT_BASE_SIZE}rem;
12871
13576
 
12872
- ${$rounded && at`
13577
+ ${$rounded && st`
12873
13578
  width: ${base * (11 / 6) * scale / TEXT_BASE_SIZE}rem;
12874
13579
  height: ${base * (11 / 6) * scale / TEXT_BASE_SIZE}rem;
12875
13580
  `}
@@ -12877,10 +13582,10 @@ var Icon2 = lt(Icon).attrs(({ name, title, onClick }) => ({
12877
13582
  }}
12878
13583
 
12879
13584
  ${({ $variant, $color, $background }) => {
12880
- return $variant === "outline" ? at`
13585
+ return $variant === "outline" ? st`
12881
13586
  color: ${$color};
12882
13587
  background-color: transparent;
12883
- ` : at`
13588
+ ` : st`
12884
13589
  color: ${$color};
12885
13590
  background-color: ${$background};
12886
13591
  `;
@@ -12901,11 +13606,11 @@ var loaderStyles = ({
12901
13606
  $color,
12902
13607
  $size = "md",
12903
13608
  $isLoading = true
12904
- }) => at(({ theme }) => {
12905
- const { l: l2 } = hexToHSL(theme.card.background);
13609
+ }) => st(({ theme }) => {
13610
+ const { l: l3 } = hexToHSL(theme.card.background);
12906
13611
  let color = $color ?? theme.primary;
12907
13612
  let colorFn;
12908
- if (l2 > 50) {
13613
+ if (l3 > 50) {
12909
13614
  color = color ?? "#000000";
12910
13615
  colorFn = lighten;
12911
13616
  } else {
@@ -12937,14 +13642,14 @@ var loaderStyles = ({
12937
13642
  px = 64;
12938
13643
  break;
12939
13644
  }
12940
- return at`
13645
+ return st`
12941
13646
  display: inline-block;
12942
13647
  width: ${($isLoading ? px : 0) / TEXT_BASE_SIZE}rem;
12943
13648
  height: ${($isLoading ? px : 0) / TEXT_BASE_SIZE}rem;
12944
13649
  border-width: ${($isLoading ? px : 0) / 16 / TEXT_BASE_SIZE}rem;
12945
- ${$isLoading ? at`
13650
+ ${$isLoading ? st`
12946
13651
  animation: 1.5s linear infinite ${spin};
12947
- ` : at`
13652
+ ` : st`
12948
13653
  transform: scale(0);
12949
13654
  `}
12950
13655
  border-style: solid;
@@ -12955,12 +13660,12 @@ var loaderStyles = ({
12955
13660
  animation: 1.5s linear infinite ${spin};
12956
13661
  `;
12957
13662
  });
12958
- var Loader = lt.div((props) => {
13663
+ var Loader = ct.div((props) => {
12959
13664
  return loaderStyles(props);
12960
13665
  });
12961
13666
 
12962
13667
  // src/components/ui/button/styles.ts
12963
- var Button = lt.button(
13668
+ var Button = ct.button(
12964
13669
  ({
12965
13670
  theme,
12966
13671
  disabled = false,
@@ -12972,7 +13677,7 @@ var Button = lt.button(
12972
13677
  $alignment = "center",
12973
13678
  $selfAlignment
12974
13679
  }) => {
12975
- return at`
13680
+ return st`
12976
13681
  appearance: none;
12977
13682
  font-family: "Public Sans", sans-serif;
12978
13683
  font-weight: 500;
@@ -12980,7 +13685,7 @@ var Button = lt.button(
12980
13685
  display: flex;
12981
13686
  justify-content: ${$alignment};
12982
13687
  align-items: center;
12983
- ${() => $selfAlignment && at`
13688
+ ${() => $selfAlignment && st`
12984
13689
  align-self: ${$selfAlignment};
12985
13690
  `}
12986
13691
  width: ${$fullWidth ? "100%" : "fit-content"};
@@ -12990,21 +13695,21 @@ var Button = lt.button(
12990
13695
  ${function sizeStyles() {
12991
13696
  switch ($size) {
12992
13697
  case "sm":
12993
- return at`
13698
+ return st`
12994
13699
  font-size: ${15 / TEXT_BASE_SIZE}rem;
12995
13700
  height: ${40 / TEXT_BASE_SIZE}rem;
12996
13701
  padding: ${7 / TEXT_BASE_SIZE}rem ${20 / TEXT_BASE_SIZE}rem;
12997
13702
  border-radius: ${6 / TEXT_BASE_SIZE}rem;
12998
13703
  `;
12999
13704
  case "md":
13000
- return at`
13705
+ return st`
13001
13706
  font-size: ${17 / TEXT_BASE_SIZE}rem;
13002
13707
  height: ${52 / TEXT_BASE_SIZE}rem;
13003
13708
  padding: ${8 / TEXT_BASE_SIZE}rem ${24 / TEXT_BASE_SIZE}rem;
13004
13709
  border-radius: ${8 / TEXT_BASE_SIZE}rem;
13005
13710
  `;
13006
13711
  case "lg":
13007
- return at`
13712
+ return st`
13008
13713
  font-size: ${19 / TEXT_BASE_SIZE}rem;
13009
13714
  height: ${64 / TEXT_BASE_SIZE}rem;
13010
13715
  padding: ${9 / TEXT_BASE_SIZE}rem ${28 / TEXT_BASE_SIZE}rem;
@@ -13014,12 +13719,12 @@ var Button = lt.button(
13014
13719
  }}
13015
13720
 
13016
13721
  ${function colorStyles() {
13017
- const { l: l2 } = hexToHSL(theme[$color]);
13018
- let color = l2 > 50 ? "#000000" : "#FFFFFF";
13722
+ const { l: l3 } = hexToHSL(theme[$color]);
13723
+ let color = l3 > 50 ? "#000000" : "#FFFFFF";
13019
13724
  if (disabled) {
13020
- color = l2 > 50 ? lighten(color, 0.625) : darken(color, 0.375);
13725
+ color = l3 > 50 ? lighten(color, 0.625) : darken(color, 0.375);
13021
13726
  }
13022
- return at`
13727
+ return st`
13023
13728
  color: ${color};
13024
13729
 
13025
13730
  ${Text}, ${Icon2} {
@@ -13029,14 +13734,14 @@ var Button = lt.button(
13029
13734
  }}
13030
13735
 
13031
13736
  ${function variantStyles() {
13032
- const { l: l2 } = hexToHSL(theme.card.background);
13737
+ const { l: l3 } = hexToHSL(theme.card.background);
13033
13738
  let color = theme[$color];
13034
13739
  if (disabled) {
13035
- color = hslToHex({ h: 0, s: 0, l: l2 });
13036
- color = l2 > 50 ? darken(color, 0.075) : lighten(color, 0.15);
13740
+ color = hslToHex({ h: 0, s: 0, l: l3 });
13741
+ color = l3 > 50 ? darken(color, 0.075) : lighten(color, 0.15);
13037
13742
  }
13038
13743
  if ($variant === "outline") {
13039
- return at`
13744
+ return st`
13040
13745
  color: ${color};
13041
13746
  background-color: transparent;
13042
13747
  border-color: ${color};
@@ -13047,10 +13752,10 @@ var Button = lt.button(
13047
13752
  `;
13048
13753
  }
13049
13754
  if ($variant === "ghost") {
13050
- return at`
13755
+ return st`
13051
13756
  color: ${color};
13052
13757
  background-color: transparent;
13053
- border-color: ${l2 > 50 ? darken(theme.card.background, 0.2) : lighten(theme.card.background, 0.2)};
13758
+ border-color: ${l3 > 50 ? darken(theme.card.background, 0.2) : lighten(theme.card.background, 0.2)};
13054
13759
 
13055
13760
  ${Text}, ${Icon2} {
13056
13761
  color: ${color};
@@ -13058,7 +13763,7 @@ var Button = lt.button(
13058
13763
  `;
13059
13764
  }
13060
13765
  if ($variant === "text") {
13061
- return at`
13766
+ return st`
13062
13767
  color: ${color};
13063
13768
  background-color: transparent;
13064
13769
  border-color: transparent;
@@ -13068,7 +13773,7 @@ var Button = lt.button(
13068
13773
  }
13069
13774
  `;
13070
13775
  }
13071
- return at`
13776
+ return st`
13072
13777
  background-color: ${color};
13073
13778
  border-color: ${color};
13074
13779
  `;
@@ -13086,7 +13791,7 @@ var Button = lt.button(
13086
13791
  &::before {
13087
13792
  content: "";
13088
13793
  ${loaderStyles({ $color: theme[$color], $size, $isLoading })}
13089
- ${$isLoading && at`
13794
+ ${$isLoading && st`
13090
13795
  margin-right: 0.5rem;
13091
13796
  `}
13092
13797
  }
@@ -13098,19 +13803,19 @@ var Button = lt.button(
13098
13803
 
13099
13804
  &:not(:disabled):hover {
13100
13805
  ${function hoverStyles() {
13101
- const { l: l2 } = hexToHSL(theme[$color]);
13102
- const color = l2 > 50 ? "#000000" : "#FFFFFF";
13806
+ const { l: l3 } = hexToHSL(theme[$color]);
13807
+ const color = l3 > 50 ? "#000000" : "#FFFFFF";
13103
13808
  const specified = theme[$color];
13104
13809
  const lightened = lighten(specified, 0.15);
13105
13810
  const bgColor = specified === lightened ? darken(specified, 0.15) : lightened;
13106
13811
  if ($variant === "filled") {
13107
- return at`
13812
+ return st`
13108
13813
  background-color: ${bgColor};
13109
13814
  border-color: ${bgColor};
13110
13815
  `;
13111
13816
  }
13112
13817
  if ($variant === "outline") {
13113
- return at`
13818
+ return st`
13114
13819
  color: ${color};
13115
13820
  background-color: ${bgColor};
13116
13821
  border-color: ${bgColor};
@@ -13121,15 +13826,15 @@ var Button = lt.button(
13121
13826
  `;
13122
13827
  }
13123
13828
  if ($variant === "ghost") {
13124
- const { l: l3 } = hexToHSL(theme.card.background);
13125
- return at`
13126
- border-color: ${l3 > 50 ? darken(theme.card.background, 0.125) : lighten(theme.card.background, 0.125)};
13829
+ const { l: l4 } = hexToHSL(theme.card.background);
13830
+ return st`
13831
+ border-color: ${l4 > 50 ? darken(theme.card.background, 0.125) : lighten(theme.card.background, 0.125)};
13127
13832
  box-shadow: 0 1px 2px
13128
- ${l3 > 50 ? darken(theme.card.background, 0.075) : lighten(theme.card.background, 0.075)};
13833
+ ${l4 > 50 ? darken(theme.card.background, 0.075) : lighten(theme.card.background, 0.075)};
13129
13834
  `;
13130
13835
  }
13131
13836
  if ($variant === "text") {
13132
- return at`
13837
+ return st`
13133
13838
  text-decoration: underline;
13134
13839
  `;
13135
13840
  }
@@ -13149,9 +13854,9 @@ import {
13149
13854
  } from "react";
13150
13855
 
13151
13856
  // src/components/ui/dialog/styles.ts
13152
- var Dialog = lt.dialog(
13857
+ var Dialog = ct.dialog(
13153
13858
  ({ theme, $isModal, $size, $top }) => {
13154
- return at`
13859
+ return st`
13155
13860
  ${ResetStyle}
13156
13861
  ${$isModal && ContainerStyle}
13157
13862
 
@@ -13327,7 +14032,7 @@ var DialogHeader = ({
13327
14032
  };
13328
14033
 
13329
14034
  // src/components/ui/flex/styles.ts
13330
- var Flex = lt(Box)`
14035
+ var Flex = ct(Box)`
13331
14036
  display: flex;
13332
14037
  `;
13333
14038
 
@@ -13361,9 +14066,9 @@ var Icon3 = ({
13361
14066
  };
13362
14067
 
13363
14068
  // src/components/ui/input/styles.ts
13364
- var Input = lt.input(({ theme, $size = "md", $variant = "filled" }) => {
14069
+ var Input = ct.input(({ theme, $size = "md", $variant = "filled" }) => {
13365
14070
  const isLightBackground = useIsLightBackground();
13366
- return at`
14071
+ return st`
13367
14072
  font-family: "Inter", sans-serif;
13368
14073
  font-weight: 500;
13369
14074
  width: 100%;
@@ -13383,14 +14088,14 @@ var Input = lt.input(({ theme, $size = "md", $variant = "filled" }) => {
13383
14088
  ${() => {
13384
14089
  switch ($size) {
13385
14090
  case "sm": {
13386
- return at`
14091
+ return st`
13387
14092
  font-size: 0.875rem;
13388
14093
  line-height: 1.5rem;
13389
14094
  height: 1.5rem;
13390
14095
  `;
13391
14096
  }
13392
14097
  case "md": {
13393
- return at`
14098
+ return st`
13394
14099
  font-size: 1rem;
13395
14100
  line-height: 3rem;
13396
14101
  height: 3rem;
@@ -13398,7 +14103,7 @@ var Input = lt.input(({ theme, $size = "md", $variant = "filled" }) => {
13398
14103
  `;
13399
14104
  }
13400
14105
  case "lg": {
13401
- return at`
14106
+ return st`
13402
14107
  font-size: 1.25rem;
13403
14108
  line-height: 4rem;
13404
14109
  height: 4rem;
@@ -13406,7 +14111,7 @@ var Input = lt.input(({ theme, $size = "md", $variant = "filled" }) => {
13406
14111
  `;
13407
14112
  }
13408
14113
  case "full": {
13409
- return at`
14114
+ return st`
13410
14115
  font-size: 1rem;
13411
14116
  line-height: 1;
13412
14117
  height: 100%;
@@ -13420,7 +14125,7 @@ var Input = lt.input(({ theme, $size = "md", $variant = "filled" }) => {
13420
14125
  const color = $variant !== "filled" && !isLightBackground ? theme.typography.text.color : "#000000";
13421
14126
  const bgColor = $variant === "filled" ? "#F1F1F1" : "transparent";
13422
14127
  const borderColor = $variant === "text" ? "transparent" : "#CBCBCB";
13423
- return at`
14128
+ return st`
13424
14129
  color: ${color};
13425
14130
  background-color: ${bgColor};
13426
14131
  border-color: ${borderColor};
@@ -13446,8 +14151,8 @@ var Input = lt.input(({ theme, $size = "md", $variant = "filled" }) => {
13446
14151
  });
13447
14152
 
13448
14153
  // src/components/ui/overlay/styles.ts
13449
- var Overlay = lt(Flex)(({ theme }) => {
13450
- return at`
14154
+ var Overlay = ct(Flex)(({ theme }) => {
14155
+ return st`
13451
14156
  position: absolute;
13452
14157
  top: 0;
13453
14158
  right: 0;
@@ -13565,7 +14270,7 @@ var LeadingLineHeightMap = {
13565
14270
  relaxed: 1.625,
13566
14271
  loose: 2
13567
14272
  };
13568
- var Text = lt.span.withConfig({
14273
+ var Text = ct.span.withConfig({
13569
14274
  shouldForwardProp: (prop) => prop !== "display"
13570
14275
  }).attrs(({ onClick }) => ({
13571
14276
  ...onClick && { tabIndex: 0 }
@@ -13588,7 +14293,7 @@ var Text = lt.span.withConfig({
13588
14293
  const fontWeight = $weight || fontStyle.fontWeight;
13589
14294
  const lineHeight = $leading && LeadingLineHeightMap[$leading];
13590
14295
  const color = $color || fontStyle.color;
13591
- return at`
14296
+ return st`
13592
14297
  font-family: ${fontFamily}, sans-serif;
13593
14298
  font-size: ${typeof fontSize === "number" ? `${fontSize / TEXT_BASE_SIZE}rem` : fontSize};
13594
14299
  font-weight: ${fontWeight};
@@ -13596,19 +14301,19 @@ var Text = lt.span.withConfig({
13596
14301
  color: ${color};
13597
14302
  text-wrap: pretty;
13598
14303
 
13599
- ${lineHeight && at`
14304
+ ${lineHeight && st`
13600
14305
  line-height: ${lineHeight};
13601
14306
  `}
13602
14307
 
13603
- ${$align && at`
14308
+ ${$align && st`
13604
14309
  text-align: ${$align};
13605
14310
  `};
13606
14311
 
13607
- ${$width && at`
14312
+ ${$width && st`
13608
14313
  width: ${$width};
13609
14314
  `};
13610
14315
 
13611
- ${onClick && at`
14316
+ ${onClick && st`
13612
14317
  &:hover {
13613
14318
  cursor: pointer;
13614
14319
  text-decoration: underline;
@@ -13629,64 +14334,64 @@ import { useCallback as useCallback6, useLayoutEffect as useLayoutEffect3, useRe
13629
14334
  import { createPortal } from "react-dom";
13630
14335
 
13631
14336
  // src/components/ui/tooltip/styles.ts
13632
- var Trigger = lt(Box)`
13633
- ${({ $fullWidth = false }) => $fullWidth && at`
14337
+ var Trigger = ct(Box)`
14338
+ ${({ $fullWidth = false }) => $fullWidth && st`
13634
14339
  width: 100%;
13635
14340
  flex-grow: 1;
13636
14341
  `}
13637
14342
  `;
13638
14343
  var coords = (position2) => {
13639
- let x2 = 0;
13640
- let y2 = 0;
14344
+ let x3 = 0;
14345
+ let y3 = 0;
13641
14346
  switch (position2) {
13642
14347
  case "top":
13643
- x2 = -50;
13644
- y2 = -100;
14348
+ x3 = -50;
14349
+ y3 = -100;
13645
14350
  break;
13646
14351
  case "right":
13647
- x2 = 0;
13648
- y2 = -50;
14352
+ x3 = 0;
14353
+ y3 = -50;
13649
14354
  break;
13650
14355
  case "bottom":
13651
- x2 = -50;
13652
- y2 = 0;
14356
+ x3 = -50;
14357
+ y3 = 0;
13653
14358
  break;
13654
14359
  case "left":
13655
- x2 = -100;
13656
- y2 = -50;
14360
+ x3 = -100;
14361
+ y3 = -50;
13657
14362
  break;
13658
14363
  }
13659
- return { x: x2, y: y2 };
14364
+ return { x: x3, y: y3 };
13660
14365
  };
13661
14366
  var arrowCoords = (position2) => {
13662
- let x2 = 0;
13663
- let y2 = 0;
14367
+ let x3 = 0;
14368
+ let y3 = 0;
13664
14369
  switch (position2) {
13665
14370
  case "top":
13666
- x2 = -50;
13667
- y2 = -50;
14371
+ x3 = -50;
14372
+ y3 = -50;
13668
14373
  break;
13669
14374
  case "right":
13670
- x2 = 50;
13671
- y2 = -50;
14375
+ x3 = 50;
14376
+ y3 = -50;
13672
14377
  break;
13673
14378
  case "bottom":
13674
- x2 = -50;
13675
- y2 = 50;
14379
+ x3 = -50;
14380
+ y3 = 50;
13676
14381
  break;
13677
14382
  case "left":
13678
- x2 = -50;
13679
- y2 = -50;
14383
+ x3 = -50;
14384
+ y3 = -50;
13680
14385
  break;
13681
14386
  }
13682
- return { x: x2, y: y2 };
14387
+ return { x: x3, y: y3 };
13683
14388
  };
13684
14389
  var origin = (position2) => {
13685
- const o2 = {
14390
+ const o3 = {
13686
14391
  x: position2 === "top" ? "bottom" : position2 === "bottom" ? "top" : "center",
13687
14392
  y: position2 === "left" ? "right" : position2 === "right" ? "left" : "center"
13688
14393
  };
13689
- return o2;
14394
+ return o3;
13690
14395
  };
13691
14396
  var grow = (translate) => {
13692
14397
  return pt`
@@ -13701,20 +14406,20 @@ var grow = (translate) => {
13701
14406
  }
13702
14407
  `;
13703
14408
  };
13704
- var Content = lt.div.withConfig({
14409
+ var Content = ct.div.withConfig({
13705
14410
  shouldForwardProp: (prop) => !["x", "y", "position", "zIndex"].includes(prop)
13706
- })(({ x: x2, y: y2, position: position2, theme }) => {
14411
+ })(({ x: x3, y: y3, position: position2, theme }) => {
13707
14412
  const translate = coords(position2);
13708
14413
  const arrowTranslate = arrowCoords(position2);
13709
14414
  const transformOrigin = origin(position2);
13710
- return at`
14415
+ return st`
13711
14416
  position: absolute;
13712
14417
  top: calc(
13713
- ${y2}px -
14418
+ ${y3}px -
13714
14419
  ${position2 === "top" ? 0.75 : position2 === "bottom" ? -0.75 : 0}rem
13715
14420
  );
13716
14421
  left: calc(
13717
- ${x2}px -
14422
+ ${x3}px -
13718
14423
  ${position2 === "left" ? 0.75 : position2 === "right" ? -0.75 : 0}rem
13719
14424
  );
13720
14425
  transform: translate(${translate.x}%, ${translate.y}%);
@@ -13749,16 +14454,16 @@ var Content = lt.div.withConfig({
13749
14454
  &::after {
13750
14455
  position: absolute;
13751
14456
  z-index: 0;
13752
- ${position2 === "top" ? at`
14457
+ ${position2 === "top" ? st`
13753
14458
  top: 100%;
13754
14459
  left: 50%;
13755
- ` : position2 === "right" ? at`
14460
+ ` : position2 === "right" ? st`
13756
14461
  top: 50%;
13757
14462
  right: 100%;
13758
- ` : position2 === "bottom" ? at`
14463
+ ` : position2 === "bottom" ? st`
13759
14464
  bottom: 100%;
13760
14465
  left: 50%;
13761
- ` : at`
14466
+ ` : st`
13762
14467
  top: 50%;
13763
14468
  left: 100%;
13764
14469
  `};
@@ -13777,22 +14482,22 @@ var Content = lt.div.withConfig({
13777
14482
  import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
13778
14483
  var getCoords = ({ element, portal, position: position2 }) => {
13779
14484
  const { top: offsetTop, left: offsetLeft } = (portal || document.body).getBoundingClientRect();
13780
- let x2 = 0;
13781
- let y2 = 0;
14485
+ let x3 = 0;
14486
+ let y3 = 0;
13782
14487
  if (element) {
13783
14488
  const rect = element.getBoundingClientRect();
13784
- x2 = position2 === "left" ? rect.left : rect.right;
14489
+ x3 = position2 === "left" ? rect.left : rect.right;
13785
14490
  if (position2 === "top" || position2 === "bottom") {
13786
- x2 -= rect.width / 2;
14491
+ x3 -= rect.width / 2;
13787
14492
  }
13788
- y2 = position2 === "top" ? rect.top : rect.bottom;
14493
+ y3 = position2 === "top" ? rect.top : rect.bottom;
13789
14494
  if (position2 === "left" || position2 === "right") {
13790
- y2 -= rect.height / 2;
14495
+ y3 -= rect.height / 2;
13791
14496
  }
13792
14497
  }
13793
14498
  return {
13794
- x: Math.round(x2 - offsetLeft),
13795
- y: Math.round(y2 - offsetTop)
14499
+ x: Math.round(x3 - offsetLeft),
14500
+ y: Math.round(y3 - offsetTop)
13796
14501
  };
13797
14502
  };
13798
14503
  var Tooltip = ({
@@ -13846,15 +14551,15 @@ var Tooltip = ({
13846
14551
  };
13847
14552
 
13848
14553
  // src/components/layout/card/styles.ts
13849
- var Element = lt(Box)``;
13850
- var FussyChild = lt(Element)``;
13851
- var Notice = lt(Box)``;
14554
+ var Element = ct(Box)``;
14555
+ var FussyChild = ct(Element)``;
14556
+ var Notice = ct(Box)``;
13852
14557
  var cardBoxShadow = "0px 1px 20px 0px #1018280F, 0px 1px 3px 0px #1018281A";
13853
- var StyledCard = lt.div(({ theme }) => {
13854
- const { l: l2 } = hexToHSL(theme.card.background);
13855
- const borderColor = l2 > 50 ? "hsla(0, 0%, 0%, 0.1)" : "hsla(0, 0%, 100%, 0.2)";
14558
+ var StyledCard = ct.div(({ theme }) => {
14559
+ const { l: l3 } = hexToHSL(theme.card.background);
14560
+ const borderColor = l3 > 50 ? "hsla(0, 0%, 0%, 0.1)" : "hsla(0, 0%, 100%, 0.2)";
13856
14561
  const borderRadius = `${theme.card.borderRadius / TEXT_BASE_SIZE}rem`;
13857
- return at`
14562
+ return st`
13858
14563
  position: relative;
13859
14564
 
13860
14565
  ${theme.sectionLayout === "merged" ? `&:not(:has(${FussyChild}))` : `${Element}:not(:is(${FussyChild}))`} {
@@ -13869,9 +14574,9 @@ var StyledCard = lt.div(({ theme }) => {
13869
14574
  ${theme.card.padding / TEXT_BASE_SIZE}rem;
13870
14575
 
13871
14576
  &:not(:last-child) {
13872
- ${theme.sectionLayout === "merged" ? at`
14577
+ ${theme.sectionLayout === "merged" ? st`
13873
14578
  border-bottom: 1px solid ${borderColor};
13874
- ` : at`
14579
+ ` : st`
13875
14580
  margin-bottom: 1rem;
13876
14581
  `}
13877
14582
  }
@@ -13917,7 +14622,7 @@ Card.displayName = "Card";
13917
14622
  import { Children as Children2, forwardRef as forwardRef5 } from "react";
13918
14623
 
13919
14624
  // src/components/layout/column/styles.ts
13920
- var StyledColumn = lt.div`
14625
+ var StyledColumn = ct.div`
13921
14626
  height: min-content;
13922
14627
  `;
13923
14628
 
@@ -13934,7 +14639,7 @@ Column.displayName = "Column";
13934
14639
  import { forwardRef as forwardRef6 } from "react";
13935
14640
 
13936
14641
  // src/components/layout/root/styles.ts
13937
- var ResetStyle = at`
14642
+ var ResetStyle = st`
13938
14643
  box-sizing: border-box;
13939
14644
  font-size: 1rem;
13940
14645
  line-height: 1.375;
@@ -13959,11 +14664,11 @@ var ResetStyle = at`
13959
14664
  vertical-align: top;
13960
14665
  }
13961
14666
  `;
13962
- var ContainerStyle = at`
14667
+ var ContainerStyle = st`
13963
14668
  container-type: inline-size;
13964
14669
  interpolate-size: allow-keywords;
13965
14670
  `;
13966
- var Container = lt.div`
14671
+ var Container = ct.div`
13967
14672
  ${ResetStyle}
13968
14673
  ${ContainerStyle}
13969
14674
  `;
@@ -15729,7 +16434,7 @@ var CheckoutDialog = ({ top }) => {
15729
16434
  setError(t2("Quantity is required."));
15730
16435
  return;
15731
16436
  case "self-service downgrade not permitted":
15732
- setError(t2("Self-service downgrade not permitted."));
16437
+ setError(t2("Downgrade not permitted."));
15733
16438
  return;
15734
16439
  }
15735
16440
  }
@@ -16304,7 +17009,7 @@ import {
16304
17009
  import { useState as useState10 } from "react";
16305
17010
 
16306
17011
  // src/components/shared/payment-form/styles.ts
16307
- var Label = lt.label`
17012
+ var Label = ct.label`
16308
17013
  display: flex;
16309
17014
  margin-bottom: 0.75rem;
16310
17015
  font-family: "Public Sans", system-ui, sans-serif;
@@ -16316,7 +17021,7 @@ var Label = lt.label`
16316
17021
  color: ${({ theme }) => isLightColor(theme.card.background) ? "#000000" : "#cdd6f4"};
16317
17022
  touch-action: manipulation;
16318
17023
  `;
16319
- var Input2 = lt.input`
17024
+ var Input2 = ct.input`
16320
17025
  padding: 0.75rem;
16321
17026
  background-color: white;
16322
17027
  border-radius: 0.5rem;
@@ -16773,6 +17478,7 @@ var NoPaymentRequired = ({
16773
17478
  );
16774
17479
  };
16775
17480
  var CheckoutStageButton = ({
17481
+ canCheckout,
16776
17482
  checkout,
16777
17483
  checkoutStage,
16778
17484
  checkoutStages,
@@ -16789,7 +17495,7 @@ var CheckoutStageButton = ({
16789
17495
  willTrialWithoutPaymentMethod
16790
17496
  }) => {
16791
17497
  const { t: t2 } = useTranslation();
16792
- const isDisabled = isLoading || !hasPlan || inEditMode;
17498
+ const isDisabled = isLoading || !hasPlan || inEditMode || !canCheckout;
16793
17499
  const getNextStageId = (currentStageId) => {
16794
17500
  if (!checkoutStages) return void 0;
16795
17501
  const currentIndex = checkoutStages.findIndex(
@@ -17565,12 +18271,14 @@ var SubscriptionSidebar = forwardRef7(
17565
18271
  }, [t2, unsubscribe, setError, setIsLoading, setLayout]);
17566
18272
  const isSelectedPlanTrialable = selectedPlan?.companyCanTrial === true && selectedPlan?.isTrialable === true;
17567
18273
  const button = useMemo13(() => {
18274
+ const canCheckout = error !== t2("Downgrade not permitted.");
17568
18275
  const isSticky = !isButtonInView;
17569
18276
  switch (layout) {
17570
18277
  case "checkout":
17571
18278
  return /* @__PURE__ */ jsx30(
17572
18279
  CheckoutStageButton,
17573
18280
  {
18281
+ canCheckout,
17574
18282
  isLoading,
17575
18283
  isSticky,
17576
18284
  inEditMode: settings.mode === "edit",
@@ -17606,6 +18314,7 @@ var SubscriptionSidebar = forwardRef7(
17606
18314
  t2,
17607
18315
  layout,
17608
18316
  settings.mode,
18317
+ error,
17609
18318
  isLoading,
17610
18319
  isButtonInView,
17611
18320
  checkoutStage,
@@ -18162,7 +18871,18 @@ var SubscriptionSidebar = forwardRef7(
18162
18871
  portal
18163
18872
  )
18164
18873
  ] }),
18165
- !isLoading && error && /* @__PURE__ */ jsx30(Box, { children: /* @__PURE__ */ jsx30(Text, { $weight: 500, $color: "#DB6669", children: error }) }),
18874
+ !isLoading && error && /* @__PURE__ */ jsxs23(Flex, { $flexDirection: "column", children: [
18875
+ /* @__PURE__ */ jsx30(Text, { $weight: 500, $color: "#DB6669", children: error }),
18876
+ error === t2("Downgrade not permitted.") && data?.preventSelfServiceDowngrade && data?.preventSelfServiceDowngradeUrl && data?.preventSelfServiceDowngradeButtonText && /* @__PURE__ */ jsx30(
18877
+ Text,
18878
+ {
18879
+ as: "a",
18880
+ display: "link",
18881
+ href: data.preventSelfServiceDowngradeUrl,
18882
+ children: data.preventSelfServiceDowngradeButtonText
18883
+ }
18884
+ )
18885
+ ] }),
18166
18886
  layout !== "unsubscribe" && /* @__PURE__ */ jsx30(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx30(Text, { children: subscriptionPrice && // TODO: localize
18167
18887
  `You will be billed ${subscriptionPrice} ${usageBasedEntitlements.length > 0 ? "plus usage based costs" : ""} for this subscription
18168
18888
  every ${planPeriod} ${periodStart ? `on the ${formatOrdinal(periodStart.getDate())}` : ""} ${planPeriod === "year" && periodStart ? `of ${getMonthName(periodStart)}` : ""} unless you unsubscribe.` }) })
@@ -18377,6 +19097,9 @@ import { jsx as jsx32 } from "react/jsx-runtime";
18377
19097
  var UsageViolationText = ({ violations }) => {
18378
19098
  const { t: t2 } = useTranslation();
18379
19099
  const { settings } = useEmbed();
19100
+ if (violations.length === 0) {
19101
+ return null;
19102
+ }
18380
19103
  return /* @__PURE__ */ jsx32(
18381
19104
  Text,
18382
19105
  {
@@ -18530,7 +19253,7 @@ var RenderLayout = ({ children }) => {
18530
19253
  };
18531
19254
 
18532
19255
  // src/components/layout/viewport/styles.ts
18533
- var StyledViewport = lt.div.withConfig({
19256
+ var StyledViewport = ct.div.withConfig({
18534
19257
  shouldForwardProp: (prop) => !["$numberOfColumns", "numberOfColumns"].includes(prop)
18535
19258
  })`
18536
19259
  display: grid;
@@ -18543,7 +19266,7 @@ var StyledViewport = lt.div.withConfig({
18543
19266
  }
18544
19267
 
18545
19268
  @container (min-width: 768px) {
18546
- grid-template-columns: ${({ theme }) => at`repeat(${theme.numberOfColumns}, minmax(300px, 1fr))`};
19269
+ grid-template-columns: ${({ theme }) => st`repeat(${theme.numberOfColumns}, minmax(300px, 1fr))`};
18547
19270
  }
18548
19271
  `;
18549
19272
 
@@ -19116,7 +19839,7 @@ function resolveDesignProps3(props) {
19116
19839
  function formatInvoices(invoices, options) {
19117
19840
  const { hideUpcoming = true } = options || {};
19118
19841
  const now = /* @__PURE__ */ new Date();
19119
- return (invoices || []).filter(({ dueDate }) => !hideUpcoming || dueDate && +dueDate <= +now).sort((a2, b2) => a2.dueDate && b2.dueDate ? +b2.dueDate - +a2.dueDate : 1).map(({ amountDue, dueDate, url, currency }) => ({
19842
+ return (invoices || []).filter(({ dueDate }) => !hideUpcoming || dueDate && +dueDate <= +now).sort((a3, b3) => a3.dueDate && b3.dueDate ? +b3.dueDate - +a3.dueDate : 1).map(({ amountDue, dueDate, url, currency }) => ({
19120
19843
  amount: formatCurrency(amountDue, currency),
19121
19844
  date: dueDate ? toPrettyDate(dueDate) : void 0,
19122
19845
  url: url || void 0
@@ -19369,14 +20092,14 @@ var PriceDetails = ({
19369
20092
  };
19370
20093
 
19371
20094
  // src/components/elements/metered-features/styles.ts
19372
- var Container2 = lt.div`
20095
+ var Container2 = ct.div`
19373
20096
  display: flex;
19374
20097
  flex-direction: column;
19375
20098
 
19376
20099
  &:last-child {
19377
20100
  ${({ theme }) => {
19378
20101
  const borderRadius = `${theme.card.borderRadius / TEXT_BASE_SIZE}rem`;
19379
- return theme.sectionLayout === "merged" && at`
20102
+ return theme.sectionLayout === "merged" && st`
19380
20103
  overflow: hidden;
19381
20104
  border-bottom-left-radius: ${borderRadius};
19382
20105
  border-bottom-right-radius: ${borderRadius};
@@ -21028,7 +21751,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
21028
21751
  }
21029
21752
  ),
21030
21753
  /* @__PURE__ */ jsx48(Flex, { $flexDirection: "column", $gap: "1rem", children: creditGroups.bundles.map((group, groupIndex) => {
21031
- const bundle = group?.bundleId ? creditBundles.find((b2) => b2.id === group.bundleId) : void 0;
21754
+ const bundle = group?.bundleId ? creditBundles.find((b3) => b3.id === group.bundleId) : void 0;
21032
21755
  return /* @__PURE__ */ jsxs37(
21033
21756
  Flex,
21034
21757
  {
@@ -22494,9 +23217,9 @@ function TreeDesc(dyn_tree, stat_desc) {
22494
23217
  var d_code = (dist) => {
22495
23218
  return dist < 256 ? _dist_code[dist] : _dist_code[256 + (dist >>> 7)];
22496
23219
  };
22497
- var put_short = (s, w2) => {
22498
- s.pending_buf[s.pending++] = w2 & 255;
22499
- s.pending_buf[s.pending++] = w2 >>> 8 & 255;
23220
+ var put_short = (s, w3) => {
23221
+ s.pending_buf[s.pending++] = w3 & 255;
23222
+ s.pending_buf[s.pending++] = w3 >>> 8 & 255;
22500
23223
  };
22501
23224
  var send_bits = (s, value, length2) => {
22502
23225
  if (s.bi_valid > Buf_size - length2) {
@@ -22509,11 +23232,11 @@ var send_bits = (s, value, length2) => {
22509
23232
  s.bi_valid += length2;
22510
23233
  }
22511
23234
  };
22512
- var send_code = (s, c2, tree) => {
23235
+ var send_code = (s, c3, tree) => {
22513
23236
  send_bits(
22514
23237
  s,
22515
- tree[c2 * 2],
22516
- tree[c2 * 2 + 1]
23238
+ tree[c3 * 2],
23239
+ tree[c3 * 2 + 1]
22517
23240
  /*.Len*/
22518
23241
  );
22519
23242
  };
@@ -22545,8 +23268,8 @@ var gen_bitlen = (s, desc) => {
22545
23268
  const extra = desc.stat_desc.extra_bits;
22546
23269
  const base = desc.stat_desc.extra_base;
22547
23270
  const max_length = desc.stat_desc.max_length;
22548
- let h2;
22549
- let n, m2;
23271
+ let h3;
23272
+ let n, m3;
22550
23273
  let bits;
22551
23274
  let xbits;
22552
23275
  let f2;
@@ -22555,8 +23278,8 @@ var gen_bitlen = (s, desc) => {
22555
23278
  s.bl_count[bits] = 0;
22556
23279
  }
22557
23280
  tree[s.heap[s.heap_max] * 2 + 1] = 0;
22558
- for (h2 = s.heap_max + 1; h2 < HEAP_SIZE$1; h2++) {
22559
- n = s.heap[h2];
23281
+ for (h3 = s.heap_max + 1; h3 < HEAP_SIZE$1; h3++) {
23282
+ n = s.heap[h3];
22560
23283
  bits = tree[tree[n * 2 + 1] * 2 + 1] + 1;
22561
23284
  if (bits > max_length) {
22562
23285
  bits = max_length;
@@ -22593,13 +23316,13 @@ var gen_bitlen = (s, desc) => {
22593
23316
  for (bits = max_length; bits !== 0; bits--) {
22594
23317
  n = s.bl_count[bits];
22595
23318
  while (n !== 0) {
22596
- m2 = s.heap[--h2];
22597
- if (m2 > max_code) {
23319
+ m3 = s.heap[--h3];
23320
+ if (m3 > max_code) {
22598
23321
  continue;
22599
23322
  }
22600
- if (tree[m2 * 2 + 1] !== bits) {
22601
- s.opt_len += (bits - tree[m2 * 2 + 1]) * tree[m2 * 2];
22602
- tree[m2 * 2 + 1] = bits;
23323
+ if (tree[m3 * 2 + 1] !== bits) {
23324
+ s.opt_len += (bits - tree[m3 * 2 + 1]) * tree[m3 * 2];
23325
+ tree[m3 * 2 + 1] = bits;
22603
23326
  }
22604
23327
  n--;
22605
23328
  }
@@ -22708,26 +23431,26 @@ var bi_windup = (s) => {
22708
23431
  s.bi_buf = 0;
22709
23432
  s.bi_valid = 0;
22710
23433
  };
22711
- var smaller = (tree, n, m2, depth) => {
23434
+ var smaller = (tree, n, m3, depth) => {
22712
23435
  const _n2 = n * 2;
22713
- const _m2 = m2 * 2;
22714
- return tree[_n2] < tree[_m2] || tree[_n2] === tree[_m2] && depth[n] <= depth[m2];
23436
+ const _m2 = m3 * 2;
23437
+ return tree[_n2] < tree[_m2] || tree[_n2] === tree[_m2] && depth[n] <= depth[m3];
22715
23438
  };
22716
- var pqdownheap = (s, tree, k2) => {
22717
- const v2 = s.heap[k2];
22718
- let j2 = k2 << 1;
22719
- while (j2 <= s.heap_len) {
22720
- if (j2 < s.heap_len && smaller(tree, s.heap[j2 + 1], s.heap[j2], s.depth)) {
22721
- j2++;
23439
+ var pqdownheap = (s, tree, k3) => {
23440
+ const v3 = s.heap[k3];
23441
+ let j3 = k3 << 1;
23442
+ while (j3 <= s.heap_len) {
23443
+ if (j3 < s.heap_len && smaller(tree, s.heap[j3 + 1], s.heap[j3], s.depth)) {
23444
+ j3++;
22722
23445
  }
22723
- if (smaller(tree, v2, s.heap[j2], s.depth)) {
23446
+ if (smaller(tree, v3, s.heap[j3], s.depth)) {
22724
23447
  break;
22725
23448
  }
22726
- s.heap[k2] = s.heap[j2];
22727
- k2 = j2;
22728
- j2 <<= 1;
23449
+ s.heap[k3] = s.heap[j3];
23450
+ k3 = j3;
23451
+ j3 <<= 1;
22729
23452
  }
22730
- s.heap[k2] = v2;
23453
+ s.heap[k3] = v3;
22731
23454
  };
22732
23455
  var compress_block = (s, ltree, dtree) => {
22733
23456
  let dist;
@@ -22768,7 +23491,7 @@ var build_tree = (s, desc) => {
22768
23491
  const stree = desc.stat_desc.static_tree;
22769
23492
  const has_stree = desc.stat_desc.has_stree;
22770
23493
  const elems = desc.stat_desc.elems;
22771
- let n, m2;
23494
+ let n, m3;
22772
23495
  let max_code = -1;
22773
23496
  let node2;
22774
23497
  s.heap_len = 0;
@@ -22810,15 +23533,15 @@ var build_tree = (s, desc) => {
22810
23533
  1
22811
23534
  /*SMALLEST*/
22812
23535
  );
22813
- m2 = s.heap[
23536
+ m3 = s.heap[
22814
23537
  1
22815
23538
  /*SMALLEST*/
22816
23539
  ];
22817
23540
  s.heap[--s.heap_max] = n;
22818
- s.heap[--s.heap_max] = m2;
22819
- tree[node2 * 2] = tree[n * 2] + tree[m2 * 2];
22820
- s.depth[node2] = (s.depth[n] >= s.depth[m2] ? s.depth[n] : s.depth[m2]) + 1;
22821
- tree[n * 2 + 1] = tree[m2 * 2 + 1] = node2;
23541
+ s.heap[--s.heap_max] = m3;
23542
+ tree[node2 * 2] = tree[n * 2] + tree[m3 * 2];
23543
+ s.depth[node2] = (s.depth[n] >= s.depth[m3] ? s.depth[n] : s.depth[m3]) + 1;
23544
+ tree[n * 2 + 1] = tree[m3 * 2 + 1] = node2;
22822
23545
  s.heap[
22823
23546
  1
22824
23547
  /*SMALLEST*/
@@ -23075,13 +23798,13 @@ var adler32 = (adler, buf, len, pos) => {
23075
23798
  };
23076
23799
  var adler32_1 = adler32;
23077
23800
  var makeTable = () => {
23078
- let c2, table = [];
23801
+ let c3, table = [];
23079
23802
  for (var n = 0; n < 256; n++) {
23080
- c2 = n;
23081
- for (var k2 = 0; k2 < 8; k2++) {
23082
- c2 = c2 & 1 ? 3988292384 ^ c2 >>> 1 : c2 >>> 1;
23803
+ c3 = n;
23804
+ for (var k3 = 0; k3 < 8; k3++) {
23805
+ c3 = c3 & 1 ? 3988292384 ^ c3 >>> 1 : c3 >>> 1;
23083
23806
  }
23084
- table[n] = c2;
23807
+ table[n] = c3;
23085
23808
  }
23086
23809
  return table;
23087
23810
  };
@@ -23218,20 +23941,20 @@ var zero = (buf) => {
23218
23941
  }
23219
23942
  };
23220
23943
  var slide_hash = (s) => {
23221
- let n, m2;
23222
- let p2;
23944
+ let n, m3;
23945
+ let p3;
23223
23946
  let wsize = s.w_size;
23224
23947
  n = s.hash_size;
23225
- p2 = n;
23948
+ p3 = n;
23226
23949
  do {
23227
- m2 = s.head[--p2];
23228
- s.head[p2] = m2 >= wsize ? m2 - wsize : 0;
23950
+ m3 = s.head[--p3];
23951
+ s.head[p3] = m3 >= wsize ? m3 - wsize : 0;
23229
23952
  } while (--n);
23230
23953
  n = wsize;
23231
- p2 = n;
23954
+ p3 = n;
23232
23955
  do {
23233
- m2 = s.prev[--p2];
23234
- s.prev[p2] = m2 >= wsize ? m2 - wsize : 0;
23956
+ m3 = s.prev[--p3];
23957
+ s.prev[p3] = m3 >= wsize ? m3 - wsize : 0;
23235
23958
  } while (--n);
23236
23959
  };
23237
23960
  var HASH_ZLIB = (s, prev2, data) => (prev2 << s.hash_shift ^ data) & s.hash_mask;
@@ -23260,12 +23983,12 @@ var flush_block_only = (s, last) => {
23260
23983
  s.block_start = s.strstart;
23261
23984
  flush_pending(s.strm);
23262
23985
  };
23263
- var put_byte = (s, b2) => {
23264
- s.pending_buf[s.pending++] = b2;
23986
+ var put_byte = (s, b3) => {
23987
+ s.pending_buf[s.pending++] = b3;
23265
23988
  };
23266
- var putShortMSB = (s, b2) => {
23267
- s.pending_buf[s.pending++] = b2 >>> 8 & 255;
23268
- s.pending_buf[s.pending++] = b2 & 255;
23989
+ var putShortMSB = (s, b3) => {
23990
+ s.pending_buf[s.pending++] = b3 >>> 8 & 255;
23991
+ s.pending_buf[s.pending++] = b3 & 255;
23269
23992
  };
23270
23993
  var read_buf = (strm, buf, start, size) => {
23271
23994
  let len = strm.avail_in;
@@ -24310,9 +25033,9 @@ var assign2 = function(obj) {
24310
25033
  if (typeof source !== "object") {
24311
25034
  throw new TypeError(source + "must be non-object");
24312
25035
  }
24313
- for (const p2 in source) {
24314
- if (_has(source, p2)) {
24315
- obj[p2] = source[p2];
25036
+ for (const p3 in source) {
25037
+ if (_has(source, p3)) {
25038
+ obj[p3] = source[p3];
24316
25039
  }
24317
25040
  }
24318
25041
  }
@@ -24320,11 +25043,11 @@ var assign2 = function(obj) {
24320
25043
  };
24321
25044
  var flattenChunks = (chunks) => {
24322
25045
  let len = 0;
24323
- for (let i = 0, l2 = chunks.length; i < l2; i++) {
25046
+ for (let i = 0, l3 = chunks.length; i < l3; i++) {
24324
25047
  len += chunks[i].length;
24325
25048
  }
24326
25049
  const result = new Uint8Array(len);
24327
- for (let i = 0, pos = 0, l2 = chunks.length; i < l2; i++) {
25050
+ for (let i = 0, pos = 0, l3 = chunks.length; i < l3; i++) {
24328
25051
  let chunk = chunks[i];
24329
25052
  result.set(chunk, pos);
24330
25053
  pos += chunk.length;
@@ -24342,50 +25065,50 @@ try {
24342
25065
  STR_APPLY_UIA_OK = false;
24343
25066
  }
24344
25067
  var _utf8len = new Uint8Array(256);
24345
- for (let q2 = 0; q2 < 256; q2++) {
24346
- _utf8len[q2] = q2 >= 252 ? 6 : q2 >= 248 ? 5 : q2 >= 240 ? 4 : q2 >= 224 ? 3 : q2 >= 192 ? 2 : 1;
25068
+ for (let q3 = 0; q3 < 256; q3++) {
25069
+ _utf8len[q3] = q3 >= 252 ? 6 : q3 >= 248 ? 5 : q3 >= 240 ? 4 : q3 >= 224 ? 3 : q3 >= 192 ? 2 : 1;
24347
25070
  }
24348
25071
  _utf8len[254] = _utf8len[254] = 1;
24349
25072
  var string2buf = (str) => {
24350
25073
  if (typeof TextEncoder === "function" && TextEncoder.prototype.encode) {
24351
25074
  return new TextEncoder().encode(str);
24352
25075
  }
24353
- let buf, c2, c22, m_pos, i, str_len = str.length, buf_len = 0;
25076
+ let buf, c3, c22, m_pos, i, str_len = str.length, buf_len = 0;
24354
25077
  for (m_pos = 0; m_pos < str_len; m_pos++) {
24355
- c2 = str.charCodeAt(m_pos);
24356
- if ((c2 & 64512) === 55296 && m_pos + 1 < str_len) {
25078
+ c3 = str.charCodeAt(m_pos);
25079
+ if ((c3 & 64512) === 55296 && m_pos + 1 < str_len) {
24357
25080
  c22 = str.charCodeAt(m_pos + 1);
24358
25081
  if ((c22 & 64512) === 56320) {
24359
- c2 = 65536 + (c2 - 55296 << 10) + (c22 - 56320);
25082
+ c3 = 65536 + (c3 - 55296 << 10) + (c22 - 56320);
24360
25083
  m_pos++;
24361
25084
  }
24362
25085
  }
24363
- buf_len += c2 < 128 ? 1 : c2 < 2048 ? 2 : c2 < 65536 ? 3 : 4;
25086
+ buf_len += c3 < 128 ? 1 : c3 < 2048 ? 2 : c3 < 65536 ? 3 : 4;
24364
25087
  }
24365
25088
  buf = new Uint8Array(buf_len);
24366
25089
  for (i = 0, m_pos = 0; i < buf_len; m_pos++) {
24367
- c2 = str.charCodeAt(m_pos);
24368
- if ((c2 & 64512) === 55296 && m_pos + 1 < str_len) {
25090
+ c3 = str.charCodeAt(m_pos);
25091
+ if ((c3 & 64512) === 55296 && m_pos + 1 < str_len) {
24369
25092
  c22 = str.charCodeAt(m_pos + 1);
24370
25093
  if ((c22 & 64512) === 56320) {
24371
- c2 = 65536 + (c2 - 55296 << 10) + (c22 - 56320);
25094
+ c3 = 65536 + (c3 - 55296 << 10) + (c22 - 56320);
24372
25095
  m_pos++;
24373
25096
  }
24374
25097
  }
24375
- if (c2 < 128) {
24376
- buf[i++] = c2;
24377
- } else if (c2 < 2048) {
24378
- buf[i++] = 192 | c2 >>> 6;
24379
- buf[i++] = 128 | c2 & 63;
24380
- } else if (c2 < 65536) {
24381
- buf[i++] = 224 | c2 >>> 12;
24382
- buf[i++] = 128 | c2 >>> 6 & 63;
24383
- buf[i++] = 128 | c2 & 63;
25098
+ if (c3 < 128) {
25099
+ buf[i++] = c3;
25100
+ } else if (c3 < 2048) {
25101
+ buf[i++] = 192 | c3 >>> 6;
25102
+ buf[i++] = 128 | c3 & 63;
25103
+ } else if (c3 < 65536) {
25104
+ buf[i++] = 224 | c3 >>> 12;
25105
+ buf[i++] = 128 | c3 >>> 6 & 63;
25106
+ buf[i++] = 128 | c3 & 63;
24384
25107
  } else {
24385
- buf[i++] = 240 | c2 >>> 18;
24386
- buf[i++] = 128 | c2 >>> 12 & 63;
24387
- buf[i++] = 128 | c2 >>> 6 & 63;
24388
- buf[i++] = 128 | c2 & 63;
25108
+ buf[i++] = 240 | c3 >>> 18;
25109
+ buf[i++] = 128 | c3 >>> 12 & 63;
25110
+ buf[i++] = 128 | c3 >>> 6 & 63;
25111
+ buf[i++] = 128 | c3 & 63;
24389
25112
  }
24390
25113
  }
24391
25114
  return buf;
@@ -24410,32 +25133,32 @@ var buf2string = (buf, max) => {
24410
25133
  let i, out;
24411
25134
  const utf16buf = new Array(len * 2);
24412
25135
  for (out = 0, i = 0; i < len; ) {
24413
- let c2 = buf[i++];
24414
- if (c2 < 128) {
24415
- utf16buf[out++] = c2;
25136
+ let c3 = buf[i++];
25137
+ if (c3 < 128) {
25138
+ utf16buf[out++] = c3;
24416
25139
  continue;
24417
25140
  }
24418
- let c_len = _utf8len[c2];
25141
+ let c_len = _utf8len[c3];
24419
25142
  if (c_len > 4) {
24420
25143
  utf16buf[out++] = 65533;
24421
25144
  i += c_len - 1;
24422
25145
  continue;
24423
25146
  }
24424
- c2 &= c_len === 2 ? 31 : c_len === 3 ? 15 : 7;
25147
+ c3 &= c_len === 2 ? 31 : c_len === 3 ? 15 : 7;
24425
25148
  while (c_len > 1 && i < len) {
24426
- c2 = c2 << 6 | buf[i++] & 63;
25149
+ c3 = c3 << 6 | buf[i++] & 63;
24427
25150
  c_len--;
24428
25151
  }
24429
25152
  if (c_len > 1) {
24430
25153
  utf16buf[out++] = 65533;
24431
25154
  continue;
24432
25155
  }
24433
- if (c2 < 65536) {
24434
- utf16buf[out++] = c2;
25156
+ if (c3 < 65536) {
25157
+ utf16buf[out++] = c3;
24435
25158
  } else {
24436
- c2 -= 65536;
24437
- utf16buf[out++] = 55296 | c2 >> 10 & 1023;
24438
- utf16buf[out++] = 56320 | c2 & 1023;
25159
+ c3 -= 65536;
25160
+ utf16buf[out++] = 55296 | c3 >> 10 & 1023;
25161
+ utf16buf[out++] = 56320 | c3 & 1023;
24439
25162
  }
24440
25163
  }
24441
25164
  return buf2binstring(utf16buf, out);
@@ -25211,8 +25934,8 @@ var ENOUGH_LENS = 852;
25211
25934
  var ENOUGH_DISTS = 592;
25212
25935
  var MAX_WBITS = 15;
25213
25936
  var DEF_WBITS = MAX_WBITS;
25214
- var zswap32 = (q2) => {
25215
- return (q2 >>> 24 & 255) + (q2 >>> 8 & 65280) + ((q2 & 65280) << 8) + ((q2 & 255) << 24);
25937
+ var zswap32 = (q3) => {
25938
+ return (q3 >>> 24 & 255) + (q3 >>> 8 & 65280) + ((q3 & 65280) << 8) + ((q3 & 255) << 24);
25216
25939
  };
25217
25940
  function InflateState() {
25218
25941
  this.strm = null;
@@ -26712,7 +27435,7 @@ var Error2 = ({ message }) => {
26712
27435
  };
26713
27436
  var SchematicEmbed = ({ id, accessToken }) => {
26714
27437
  const [children, setChildren] = useState21(/* @__PURE__ */ jsx56(Loading, {}));
26715
- const theme = useContext6(Ke);
27438
+ const theme = useContext6(Xe);
26716
27439
  const {
26717
27440
  data,
26718
27441
  error,