@schematichq/schematic-components 2.18.0 → 2.19.0

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.
@@ -1833,6 +1833,7 @@ var FETCH_DEBOUNCE_TIMEOUT = 300;
1833
1833
  // src/const/string.ts
1834
1834
  var DEFAULT_CURRENCY = "USD";
1835
1835
  var MAXIMUM_SIGNIFICANT_DIGITS = 6;
1836
+ var MAXIMUM_FRACTION_DIGITS = 10;
1836
1837
 
1837
1838
  // src/const/style.ts
1838
1839
  var TEXT_BASE_SIZE = 16;
@@ -1950,6 +1951,7 @@ var initialContext = {
1950
1951
  setCheckoutState: stub,
1951
1952
  clearCheckoutState: stub,
1952
1953
  initializeWithPlan: stub,
1954
+ requestUnsubscribe: stub,
1953
1955
  setData: stub,
1954
1956
  updateSettings: stub,
1955
1957
  debug: stub,
@@ -5186,7 +5188,7 @@ var isPropValid = /* @__PURE__ */ memoize(
5186
5188
  /* Z+1 */
5187
5189
  );
5188
5190
 
5189
- // node_modules/styled-components/dist/styled-components.browser.esm.js
5191
+ // node_modules/styled-components/dist/styled-components.esm.js
5190
5192
  import t2, { createElement as n } from "react";
5191
5193
 
5192
5194
  // node_modules/stylis/src/Enum.js
@@ -5808,26 +5810,27 @@ function prefixer(element, index, children, callback) {
5808
5810
  }
5809
5811
  }
5810
5812
 
5811
- // node_modules/styled-components/dist/styled-components.browser.esm.js
5813
+ // node_modules/styled-components/dist/styled-components.esm.js
5812
5814
  var r;
5813
5815
  var i;
5814
- var c = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled";
5815
- var a = "active";
5816
- var l = "data-styled-version";
5816
+ var l = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled";
5817
+ var c = "active";
5818
+ var a = "data-styled-version";
5817
5819
  var u = "6.4.3";
5818
- var h = "/*!sc*/\n";
5819
- var d = "undefined" != typeof window && "undefined" != typeof document;
5820
- function p(e2) {
5820
+ var d = "/*!sc*/\n";
5821
+ var h = "undefined" != typeof window && "undefined" != typeof document;
5822
+ var p = void 0 === t2.createContext;
5823
+ function f(e2) {
5821
5824
  if ("undefined" != typeof process && void 0 !== process.env) {
5822
5825
  const t3 = process.env[e2];
5823
5826
  if (void 0 !== t3 && "" !== t3) return "false" !== t3;
5824
5827
  }
5825
5828
  }
5826
- var f = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : null !== (i = null !== (r = p("REACT_APP_SC_DISABLE_SPEEDY")) && void 0 !== r ? r : p("SC_DISABLE_SPEEDY")) && void 0 !== i ? i : "undefined" != typeof process && void 0 !== process.env && true);
5827
- var m = "sc-keyframes-";
5829
+ var m = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : null !== (i = null !== (r = f("REACT_APP_SC_DISABLE_SPEEDY")) && void 0 !== r ? r : f("SC_DISABLE_SPEEDY")) && void 0 !== i ? i : "undefined" != typeof process && void 0 !== process.env && true);
5830
+ var g = "sc-keyframes-";
5828
5831
  var y = {};
5829
- var g = 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. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://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://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\n", 18: "Accessing `useTheme` hook outside of a `<ThemeProvider>` element.\n\n```jsx\nimport { useTheme } from 'styled-components';\nexport function StyledCompoent({ children }) {\n const theme = useTheme();\n return <div style={{ width: theme.sizes.full }}>{children}</div>;\n}\n\nimport { StyledComponent } from './StyledComponent';\nimport { theme } from './theme';\nexport function App() {\n return (\n <ThemeProvider theme={theme}>\n <StyledComponent />\n </ThemeProvider>\n );\n}\n```\n\nIf you need access to the theme in an uncertain composition scenario, `React.useContext(ThemeContext)` will not emit an error if there is no `ThemeProvider` ancestor.\n" } : {};
5830
- function v(e2, ...t3) {
5832
+ var v = 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. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://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://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\n", 18: "Accessing `useTheme` hook outside of a `<ThemeProvider>` element.\n\n```jsx\nimport { useTheme } from 'styled-components';\nexport function StyledCompoent({ children }) {\n const theme = useTheme();\n return <div style={{ width: theme.sizes.full }}>{children}</div>;\n}\n\nimport { StyledComponent } from './StyledComponent';\nimport { theme } from './theme';\nexport function App() {\n return (\n <ThemeProvider theme={theme}>\n <StyledComponent />\n </ThemeProvider>\n );\n}\n```\n\nIf you need access to the theme in an uncertain composition scenario, `React.useContext(ThemeContext)` will not emit an error if there is no `ThemeProvider` ancestor.\n" } : {};
5833
+ function S(e2, ...t3) {
5831
5834
  return false ? new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e2} for more information.${t3.length > 0 ? ` Args: ${t3.join(", ")}` : ""}`) : new Error((function(...e3) {
5832
5835
  let t4 = e3[0];
5833
5836
  const n2 = [];
@@ -5835,27 +5838,28 @@ function v(e2, ...t3) {
5835
5838
  return n2.forEach((e4) => {
5836
5839
  t4 = t4.replace(/%[a-z]/, e4);
5837
5840
  }), t4;
5838
- })(g[e2], ...t3).trim());
5841
+ })(v[e2], ...t3).trim());
5839
5842
  }
5840
- var S = 1 << 30;
5841
- var b = /* @__PURE__ */ new Map();
5843
+ var b = 1 << 30;
5842
5844
  var w = /* @__PURE__ */ new Map();
5843
- var N = 1;
5844
- var C = (e2) => {
5845
- if (b.has(e2)) return b.get(e2);
5846
- for (; w.has(N); ) N++;
5847
- const t3 = N++;
5848
- if ((0 | t3) < 0 || t3 > S) throw v(16, `${t3}`);
5849
- return b.set(e2, t3), w.set(t3, e2), t3;
5850
- };
5851
- var O = (e2) => w.get(e2);
5845
+ var N = /* @__PURE__ */ new Map();
5846
+ var C = 1;
5847
+ var P = (e2) => {
5848
+ if (w.has(e2)) return w.get(e2);
5849
+ for (; N.has(C); ) C++;
5850
+ const t3 = C++;
5851
+ if ((0 | t3) < 0 || t3 > b) throw S(16, `${t3}`);
5852
+ return w.set(e2, t3), N.set(t3, e2), t3;
5853
+ };
5854
+ var O = (e2) => N.get(e2);
5852
5855
  var E = (e2, t3) => {
5853
- N = t3 + 1, b.set(e2, t3), w.set(t3, e2);
5856
+ C = t3 + 1, w.set(e2, t3), N.set(t3, e2);
5854
5857
  };
5855
- var A = /invalid hook call/i;
5856
- var P = /* @__PURE__ */ new Set();
5858
+ var I = /invalid hook call/i;
5859
+ var A = /* @__PURE__ */ new Set();
5857
5860
  var _ = (e2, n2) => {
5858
5861
  if (true) {
5862
+ if (p) return;
5859
5863
  const o = `The component ${e2}${n2 ? ` with the id of "${n2}"` : ""} has been created dynamically.
5860
5864
  You may see this warning because you've called styled inside another component.
5861
5865
  To resolve this only create new StyledComponents outside of any render method and function component.
@@ -5864,78 +5868,78 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
5864
5868
  try {
5865
5869
  let e3 = true;
5866
5870
  console.error = (t3, ...n3) => {
5867
- A.test(t3) ? (e3 = false, P.delete(o)) : s(t3, ...n3);
5868
- }, "function" == typeof t2.useState && t2.useState(null), e3 && !P.has(o) && (console.warn(o), P.add(o));
5871
+ I.test(t3) ? (e3 = false, A.delete(o)) : s(t3, ...n3);
5872
+ }, "function" == typeof t2.useState && t2.useState(null), e3 && !A.has(o) && (console.warn(o), A.add(o));
5869
5873
  } catch (e3) {
5870
- A.test(e3.message) && P.delete(o);
5874
+ I.test(e3.message) && A.delete(o);
5871
5875
  } finally {
5872
5876
  console.error = s;
5873
5877
  }
5874
5878
  }
5875
5879
  };
5876
- var I = Object.freeze([]);
5880
+ var x = Object.freeze([]);
5877
5881
  var $ = Object.freeze({});
5878
5882
  function R(e2, t3, n2 = $) {
5879
5883
  return e2.theme !== n2.theme && e2.theme || t3 || n2.theme;
5880
5884
  }
5881
5885
  var j = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g;
5882
- var x = /(^-|-$)/g;
5886
+ var k = /(^-|-$)/g;
5883
5887
  function T(e2) {
5884
- return e2.replace(j, "-").replace(x, "");
5888
+ return e2.replace(j, "-").replace(k, "");
5885
5889
  }
5886
- var k = /(a)(d)/gi;
5887
- var D = (e2) => String.fromCharCode(e2 + (e2 > 25 ? 39 : 97));
5890
+ var D = /(a)(d)/gi;
5891
+ var M = (e2) => String.fromCharCode(e2 + (e2 > 25 ? 39 : 97));
5888
5892
  function V(e2) {
5889
5893
  let t3, n2 = "";
5890
- for (t3 = Math.abs(e2); t3 > 52; t3 = t3 / 52 | 0) n2 = D(t3 % 52) + n2;
5891
- return (D(t3 % 52) + n2).replace(k, "$1-$2");
5894
+ for (t3 = Math.abs(e2); t3 > 52; t3 = t3 / 52 | 0) n2 = M(t3 % 52) + n2;
5895
+ return (M(t3 % 52) + n2).replace(D, "$1-$2");
5892
5896
  }
5893
- var M = 5381;
5894
- var G = (e2, t3) => {
5897
+ var G = 5381;
5898
+ var F = (e2, t3) => {
5895
5899
  let n2 = t3.length;
5896
5900
  for (; n2; ) e2 = 33 * e2 ^ t3.charCodeAt(--n2);
5897
5901
  return e2;
5898
5902
  };
5899
- var F = (e2) => G(M, e2);
5900
- function z(e2) {
5901
- return V(F(e2) >>> 0);
5902
- }
5903
+ var z = (e2) => F(G, e2);
5903
5904
  function W(e2) {
5905
+ return V(z(e2) >>> 0);
5906
+ }
5907
+ function B(e2) {
5904
5908
  return "string" == typeof e2 && e2 || e2.displayName || e2.name || "Component";
5905
5909
  }
5906
5910
  function L(e2) {
5907
5911
  return "string" == typeof e2 && e2.charAt(0) === e2.charAt(0).toLowerCase();
5908
5912
  }
5909
- function B(e2) {
5910
- return L(e2) ? `styled.${e2}` : `Styled(${W(e2)})`;
5911
- }
5912
- var q = /* @__PURE__ */ Symbol.for("react.memo");
5913
- var H = /* @__PURE__ */ Symbol.for("react.forward_ref");
5914
- var Y = { contextType: true, defaultProps: true, displayName: true, getDerivedStateFromError: true, getDerivedStateFromProps: true, propTypes: true, type: true };
5915
- var U = { name: true, length: true, prototype: true, caller: true, callee: true, arguments: true, arity: true };
5916
- var J = { $$typeof: true, compare: true, defaultProps: true, displayName: true, propTypes: true, type: true };
5917
- var X = { [H]: { $$typeof: true, render: true, defaultProps: true, displayName: true, propTypes: true }, [q]: J };
5913
+ function q(e2) {
5914
+ return L(e2) ? `styled.${e2}` : `Styled(${B(e2)})`;
5915
+ }
5916
+ var H = /* @__PURE__ */ Symbol.for("react.memo");
5917
+ var Y = /* @__PURE__ */ Symbol.for("react.forward_ref");
5918
+ var U = { contextType: true, defaultProps: true, displayName: true, getDerivedStateFromError: true, getDerivedStateFromProps: true, propTypes: true, type: true };
5919
+ var J = { name: true, length: true, prototype: true, caller: true, callee: true, arguments: true, arity: true };
5920
+ var X = { $$typeof: true, compare: true, defaultProps: true, displayName: true, propTypes: true, type: true };
5921
+ var Z = { [Y]: { $$typeof: true, render: true, defaultProps: true, displayName: true, propTypes: true }, [H]: X };
5918
5922
  function K(e2) {
5919
- return ("type" in (t3 = e2) && t3.type.$$typeof) === q ? J : "$$typeof" in e2 ? X[e2.$$typeof] : Y;
5923
+ return ("type" in (t3 = e2) && t3.type.$$typeof) === H ? X : "$$typeof" in e2 ? Z[e2.$$typeof] : U;
5920
5924
  var t3;
5921
5925
  }
5922
5926
  var Q = Object.defineProperty;
5923
- var Z = Object.getOwnPropertyNames;
5924
- var ee = Object.getOwnPropertySymbols;
5925
- var te = Object.getOwnPropertyDescriptor;
5926
- var ne = Object.getPrototypeOf;
5927
- var oe = Object.prototype;
5928
- function se(e2, t3, n2) {
5927
+ var ee = Object.getOwnPropertyNames;
5928
+ var te = Object.getOwnPropertySymbols;
5929
+ var ne = Object.getOwnPropertyDescriptor;
5930
+ var oe = Object.getPrototypeOf;
5931
+ var se = Object.prototype;
5932
+ function re(e2, t3, n2) {
5929
5933
  if ("string" != typeof t3) {
5930
- const o = ne(t3);
5931
- o && o !== oe && se(e2, o, n2);
5932
- const s = Z(t3).concat(ee(t3)), r2 = K(e2), i2 = K(t3);
5934
+ const o = oe(t3);
5935
+ o && o !== se && re(e2, o, n2);
5936
+ const s = ee(t3).concat(te(t3)), r2 = K(e2), i2 = K(t3);
5933
5937
  for (let o2 = 0; o2 < s.length; ++o2) {
5934
- const c2 = s[o2];
5935
- if (!(c2 in U || n2 && n2[c2] || i2 && c2 in i2 || r2 && c2 in r2)) {
5936
- const n3 = te(t3, c2);
5938
+ const l2 = s[o2];
5939
+ if (!(l2 in J || n2 && n2[l2] || i2 && l2 in i2 || r2 && l2 in r2)) {
5940
+ const n3 = ne(t3, l2);
5937
5941
  try {
5938
- Q(e2, c2, n3);
5942
+ Q(e2, l2, n3);
5939
5943
  } catch (e3) {
5940
5944
  }
5941
5945
  }
@@ -5943,32 +5947,45 @@ function se(e2, t3, n2) {
5943
5947
  }
5944
5948
  return e2;
5945
5949
  }
5946
- function re(e2) {
5950
+ function ie(e2) {
5947
5951
  return "function" == typeof e2;
5948
5952
  }
5949
- var ie = /* @__PURE__ */ Symbol.for("react.forward_ref");
5953
+ var le = /* @__PURE__ */ Symbol.for("react.forward_ref");
5950
5954
  function ce(e2) {
5951
- return null != e2 && ("object" == typeof e2 || "function" == typeof e2) && e2.$$typeof === ie && "styledComponentId" in e2;
5955
+ return null != e2 && ("object" == typeof e2 || "function" == typeof e2) && e2.$$typeof === le && "styledComponentId" in e2;
5952
5956
  }
5953
5957
  function ae(e2, t3) {
5954
5958
  return e2 && t3 ? e2 + " " + t3 : e2 || t3 || "";
5955
5959
  }
5956
- function le(e2, t3) {
5960
+ function ue(e2, t3) {
5957
5961
  return e2.join(t3 || "");
5958
5962
  }
5959
- function ue(e2) {
5963
+ function de(e2) {
5964
+ let t3 = "";
5965
+ for (let n2 = 0; n2 < e2.length; n2++) t3 += e2[n2] + d;
5966
+ return t3;
5967
+ }
5968
+ function he(e2) {
5969
+ return e2 ? e2.replaceAll(d, "") : e2;
5970
+ }
5971
+ function pe(e2) {
5960
5972
  return null !== e2 && "object" == typeof e2 && e2.constructor.name === Object.name && !("props" in e2 && e2.$$typeof);
5961
5973
  }
5962
- function he(e2, t3, n2 = false) {
5963
- if (!n2 && !ue(e2) && !Array.isArray(e2)) return t3;
5964
- if (Array.isArray(t3)) for (let n3 = 0; n3 < t3.length; n3++) e2[n3] = he(e2[n3], t3[n3]);
5965
- else if (ue(t3)) for (const n3 in t3) e2[n3] = he(e2[n3], t3[n3]);
5974
+ function fe(e2, t3, n2 = false) {
5975
+ if (!n2 && !pe(e2) && !Array.isArray(e2)) return t3;
5976
+ if (Array.isArray(t3)) for (let n3 = 0; n3 < t3.length; n3++) e2[n3] = fe(e2[n3], t3[n3]);
5977
+ else if (pe(t3)) for (const n3 in t3) e2[n3] = fe(e2[n3], t3[n3]);
5966
5978
  return e2;
5967
5979
  }
5968
- function de(e2, t3) {
5980
+ function me(e2) {
5981
+ if (!p) return null;
5982
+ const n2 = t2.cache;
5983
+ return n2 ? n2(e2) : null;
5984
+ }
5985
+ function ge(e2, t3) {
5969
5986
  Object.defineProperty(e2, "toString", { value: t3 });
5970
5987
  }
5971
- var pe = class {
5988
+ var ye = class {
5972
5989
  constructor(e2) {
5973
5990
  this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e2, this._cGroup = 0, this._cIndex = 0;
5974
5991
  }
@@ -5983,7 +6000,7 @@ var pe = class {
5983
6000
  if (e2 >= this.groupSizes.length) {
5984
6001
  const t4 = this.groupSizes, n3 = t4.length;
5985
6002
  let o2 = n3;
5986
- for (; e2 >= o2; ) if (o2 <<= 1, o2 < 0) throw v(16, `${e2}`);
6003
+ for (; e2 >= o2; ) if (o2 <<= 1, o2 < 0) throw S(16, `${e2}`);
5987
6004
  this.groupSizes = new Uint32Array(o2), this.groupSizes.set(t4), this.length = o2;
5988
6005
  for (let e3 = n3; e3 < o2; e3++) this.groupSizes[e3] = 0;
5989
6006
  }
@@ -6003,70 +6020,70 @@ var pe = class {
6003
6020
  let t3 = "";
6004
6021
  if (e2 >= this.length || 0 === this.groupSizes[e2]) return t3;
6005
6022
  const n2 = this.groupSizes[e2], o = this.indexOfGroup(e2), s = o + n2;
6006
- for (let e3 = o; e3 < s; e3++) t3 += this.tag.getRule(e3) + h;
6023
+ for (let e3 = o; e3 < s; e3++) t3 += this.tag.getRule(e3) + d;
6007
6024
  return t3;
6008
6025
  }
6009
6026
  };
6010
- var fe = `style[${c}][${l}="${u}"]`;
6011
- var me = new RegExp(`^${c}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`);
6012
- var ye = (e2) => "undefined" != typeof ShadowRoot && e2 instanceof ShadowRoot || "host" in e2 && 11 === e2.nodeType;
6013
- var ge = (e2) => {
6027
+ var ve = `style[${l}][${a}="${u}"]`;
6028
+ var Se = new RegExp(`^${l}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`);
6029
+ var be = (e2) => "undefined" != typeof ShadowRoot && e2 instanceof ShadowRoot || "host" in e2 && 11 === e2.nodeType;
6030
+ var we = (e2) => {
6014
6031
  if (!e2) return document;
6015
- if (ye(e2)) return e2;
6032
+ if (be(e2)) return e2;
6016
6033
  if ("getRootNode" in e2) {
6017
6034
  const t3 = e2.getRootNode();
6018
- if (ye(t3)) return t3;
6035
+ if (be(t3)) return t3;
6019
6036
  }
6020
6037
  return document;
6021
6038
  };
6022
- var ve = (e2, t3, n2) => {
6039
+ var Ne = (e2, t3, n2) => {
6023
6040
  const o = n2.split(",");
6024
6041
  let s;
6025
6042
  for (let n3 = 0, r2 = o.length; n3 < r2; n3++) (s = o[n3]) && e2.registerName(t3, s);
6026
6043
  };
6027
- var Se = (e2, t3) => {
6044
+ var Ce = (e2, t3) => {
6028
6045
  var n2;
6029
- const o = (null !== (n2 = t3.textContent) && void 0 !== n2 ? n2 : "").split(h), s = [];
6046
+ const o = (null !== (n2 = t3.textContent) && void 0 !== n2 ? n2 : "").split(d), s = [];
6030
6047
  for (let t4 = 0, n3 = o.length; t4 < n3; t4++) {
6031
6048
  const n4 = o[t4].trim();
6032
6049
  if (!n4) continue;
6033
- const r2 = n4.match(me);
6050
+ const r2 = n4.match(Se);
6034
6051
  if (r2) {
6035
6052
  const t5 = 0 | parseInt(r2[1], 10), n5 = r2[2];
6036
- 0 !== t5 && (E(n5, t5), ve(e2, n5, r2[3]), e2.getTag().insertRules(t5, s)), s.length = 0;
6053
+ 0 !== t5 && (E(n5, t5), Ne(e2, n5, r2[3]), e2.getTag().insertRules(t5, s)), s.length = 0;
6037
6054
  } else s.push(n4);
6038
6055
  }
6039
6056
  };
6040
- var be = (e2) => {
6041
- const t3 = ge(e2.options.target).querySelectorAll(fe);
6057
+ var Pe = (e2) => {
6058
+ const t3 = we(e2.options.target).querySelectorAll(ve);
6042
6059
  for (let n2 = 0, o = t3.length; n2 < o; n2++) {
6043
6060
  const o2 = t3[n2];
6044
- o2 && o2.getAttribute(c) !== a && (Se(e2, o2), o2.parentNode && o2.parentNode.removeChild(o2));
6061
+ o2 && o2.getAttribute(l) !== c && (Ce(e2, o2), o2.parentNode && o2.parentNode.removeChild(o2));
6045
6062
  }
6046
6063
  };
6047
- var we = false;
6048
- function Ne() {
6049
- if (false !== we) return we;
6064
+ var Oe = false;
6065
+ function Ee() {
6066
+ if (false !== Oe) return Oe;
6050
6067
  if ("undefined" != typeof document) {
6051
6068
  const e2 = document.head.querySelector('meta[property="csp-nonce"]');
6052
- if (e2) return we = e2.nonce || e2.getAttribute("content") || void 0;
6069
+ if (e2) return Oe = e2.nonce || e2.getAttribute("content") || void 0;
6053
6070
  const t3 = document.head.querySelector('meta[name="sc-nonce"]');
6054
- if (t3) return we = t3.getAttribute("content") || void 0;
6071
+ if (t3) return Oe = t3.getAttribute("content") || void 0;
6055
6072
  }
6056
- return we = "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : void 0;
6073
+ return Oe = "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : void 0;
6057
6074
  }
6058
- var Ce = (e2, t3) => {
6075
+ var Ie = (e2, t3) => {
6059
6076
  const n2 = document.head, o = e2 || n2, s = document.createElement("style"), r2 = ((e3) => {
6060
- const t4 = Array.from(e3.querySelectorAll(`style[${c}]`));
6077
+ const t4 = Array.from(e3.querySelectorAll(`style[${l}]`));
6061
6078
  return t4[t4.length - 1];
6062
6079
  })(o), i2 = void 0 !== r2 ? r2.nextSibling : null;
6063
- s.setAttribute(c, a), s.setAttribute(l, u);
6064
- const h2 = t3 || Ne();
6065
- return h2 && s.setAttribute("nonce", h2), o.insertBefore(s, i2), s;
6080
+ s.setAttribute(l, c), s.setAttribute(a, u);
6081
+ const d2 = t3 || Ee();
6082
+ return d2 && s.setAttribute("nonce", d2), o.insertBefore(s, i2), s;
6066
6083
  };
6067
- var Oe = class {
6084
+ var Ae = class {
6068
6085
  constructor(e2, t3) {
6069
- this.element = Ce(e2, t3), this.element.appendChild(document.createTextNode("")), this.sheet = ((e3) => {
6086
+ this.element = Ie(e2, t3), this.element.appendChild(document.createTextNode("")), this.sheet = ((e3) => {
6070
6087
  var t4;
6071
6088
  if (e3.sheet) return e3.sheet;
6072
6089
  const n2 = null !== (t4 = e3.getRootNode().styleSheets) && void 0 !== t4 ? t4 : document.styleSheets;
@@ -6074,7 +6091,7 @@ var Oe = class {
6074
6091
  const o2 = n2[t5];
6075
6092
  if (o2.ownerNode === e3) return o2;
6076
6093
  }
6077
- throw v(17);
6094
+ throw S(17);
6078
6095
  })(this.element), this.length = 0;
6079
6096
  }
6080
6097
  insertRule(e2, t3) {
@@ -6092,9 +6109,9 @@ var Oe = class {
6092
6109
  return t3 && t3.cssText ? t3.cssText : "";
6093
6110
  }
6094
6111
  };
6095
- var Ee = class {
6112
+ var _e = class {
6096
6113
  constructor(e2, t3) {
6097
- this.element = Ce(e2, t3), this.nodes = this.element.childNodes, this.length = 0;
6114
+ this.element = Ie(e2, t3), this.nodes = this.element.childNodes, this.length = 0;
6098
6115
  }
6099
6116
  insertRule(e2, t3) {
6100
6117
  if (e2 <= this.length && e2 >= 0) {
@@ -6110,14 +6127,28 @@ var Ee = class {
6110
6127
  return e2 < this.length ? this.nodes[e2].textContent : "";
6111
6128
  }
6112
6129
  };
6113
- var Ae = d;
6114
- var Pe = { isServer: !d, useCSSOMInjection: !f };
6115
- var _e = class __e {
6130
+ var xe = class {
6131
+ constructor(e2) {
6132
+ this.rules = [], this.length = 0;
6133
+ }
6134
+ insertRule(e2, t3) {
6135
+ return e2 <= this.length && (e2 === this.length ? this.rules.push(t3) : this.rules.splice(e2, 0, t3), this.length++, true);
6136
+ }
6137
+ deleteRule(e2) {
6138
+ this.rules.splice(e2, 1), this.length--;
6139
+ }
6140
+ getRule(e2) {
6141
+ return e2 < this.length ? this.rules[e2] : "";
6142
+ }
6143
+ };
6144
+ var $e = h;
6145
+ var Re = { isServer: !h, useCSSOMInjection: !m };
6146
+ var je = class _je {
6116
6147
  static registerId(e2) {
6117
- return C(e2);
6148
+ return P(e2);
6118
6149
  }
6119
6150
  constructor(e2 = $, t3 = {}, n2) {
6120
- this.options = Object.assign(Object.assign({}, Pe), e2), this.gs = t3, this.keyframeIds = /* @__PURE__ */ new Set(), this.names = new Map(n2), this.server = !!e2.isServer, !this.server && d && Ae && (Ae = false, be(this)), de(this, () => ((e3) => {
6151
+ this.options = Object.assign(Object.assign({}, Re), e2), this.gs = t3, this.keyframeIds = /* @__PURE__ */ new Set(), this.names = new Map(n2), this.server = !!e2.isServer, !this.server && h && $e && ($e = false, Pe(this)), ge(this, () => ((e3) => {
6121
6152
  const t4 = e3.getTag(), { length: n3 } = t4;
6122
6153
  let o = "";
6123
6154
  for (let s = 0; s < n3; s++) {
@@ -6127,26 +6158,26 @@ var _e = class __e {
6127
6158
  if (void 0 === r2 || !r2.size) continue;
6128
6159
  const i2 = t4.getGroup(s);
6129
6160
  if (0 === i2.length) continue;
6130
- const a2 = c + ".g" + s + '[id="' + n4 + '"]';
6131
- let l2 = "";
6132
- for (const e4 of r2) e4.length > 0 && (l2 += e4 + ",");
6133
- o += i2 + a2 + '{content:"' + l2 + '"}' + h;
6161
+ const c2 = l + ".g" + s + '[id="' + n4 + '"]';
6162
+ let a2 = "";
6163
+ for (const e4 of r2) e4.length > 0 && (a2 += e4 + ",");
6164
+ o += i2 + c2 + '{content:"' + a2 + '"}' + d;
6134
6165
  }
6135
6166
  return o;
6136
6167
  })(this));
6137
6168
  }
6138
6169
  rehydrate() {
6139
- !this.server && d && be(this);
6170
+ !this.server && h && Pe(this);
6140
6171
  }
6141
6172
  reconstructWithOptions(e2, t3 = true) {
6142
- const n2 = new __e(Object.assign(Object.assign({}, this.options), e2), this.gs, t3 && this.names || void 0);
6143
- return n2.keyframeIds = new Set(this.keyframeIds), !this.server && d && e2.target !== this.options.target && ge(this.options.target) !== ge(e2.target) && be(n2), n2;
6173
+ const n2 = new _je(Object.assign(Object.assign({}, this.options), e2), this.gs, t3 && this.names || void 0);
6174
+ return n2.keyframeIds = new Set(this.keyframeIds), !this.server && h && e2.target !== this.options.target && we(this.options.target) !== we(e2.target) && Pe(n2), n2;
6144
6175
  }
6145
6176
  allocateGSInstance(e2) {
6146
6177
  return this.gs[e2] = (this.gs[e2] || 0) + 1;
6147
6178
  }
6148
6179
  getTag() {
6149
- return this.tag || (this.tag = (e2 = (({ useCSSOMInjection: e3, target: t3, nonce: n2 }) => e3 ? new Oe(t3, n2) : new Ee(t3, n2))(this.options), new pe(e2)));
6180
+ return this.tag || (this.tag = (e2 = (({ isServer: e3, useCSSOMInjection: t3, target: n2, nonce: o }) => e3 ? new xe(n2) : t3 ? new Ae(n2, o) : new _e(n2, o))(this.options), new ye(e2)));
6150
6181
  var e2;
6151
6182
  }
6152
6183
  hasNameForId(e2, t3) {
@@ -6154,30 +6185,30 @@ var _e = class __e {
6154
6185
  return null !== (o = null === (n2 = this.names.get(e2)) || void 0 === n2 ? void 0 : n2.has(t3)) && void 0 !== o && o;
6155
6186
  }
6156
6187
  registerName(e2, t3) {
6157
- C(e2), e2.startsWith(m) && this.keyframeIds.add(e2);
6188
+ P(e2), e2.startsWith(g) && this.keyframeIds.add(e2);
6158
6189
  const n2 = this.names.get(e2);
6159
6190
  n2 ? n2.add(t3) : this.names.set(e2, /* @__PURE__ */ new Set([t3]));
6160
6191
  }
6161
6192
  insertRules(e2, t3, n2) {
6162
- this.registerName(e2, t3), this.getTag().insertRules(C(e2), n2);
6193
+ this.registerName(e2, t3), this.getTag().insertRules(P(e2), n2);
6163
6194
  }
6164
6195
  clearNames(e2) {
6165
6196
  this.names.has(e2) && this.names.get(e2).clear();
6166
6197
  }
6167
6198
  clearRules(e2) {
6168
- this.getTag().clearGroup(C(e2)), this.clearNames(e2);
6199
+ this.getTag().clearGroup(P(e2)), this.clearNames(e2);
6169
6200
  }
6170
6201
  clearTag() {
6171
6202
  this.tag = void 0;
6172
6203
  }
6173
6204
  };
6174
- var Ie = /* @__PURE__ */ new WeakSet();
6175
- var $e = { animationIterationCount: 1, aspectRatio: 1, borderImageOutset: 1, borderImageSlice: 1, borderImageWidth: 1, columnCount: 1, columns: 1, flex: 1, flexGrow: 1, flexShrink: 1, gridRow: 1, gridRowEnd: 1, gridRowSpan: 1, gridRowStart: 1, gridColumn: 1, gridColumnEnd: 1, gridColumnSpan: 1, gridColumnStart: 1, fontWeight: 1, lineHeight: 1, opacity: 1, order: 1, orphans: 1, scale: 1, tabSize: 1, widows: 1, zIndex: 1, zoom: 1, WebkitLineClamp: 1, fillOpacity: 1, floodOpacity: 1, stopOpacity: 1, strokeDasharray: 1, strokeDashoffset: 1, strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1 };
6176
- function Re(e2, t3) {
6177
- return null == t3 || "boolean" == typeof t3 || "" === t3 ? "" : "number" != typeof t3 || 0 === t3 || e2 in $e || e2.startsWith("--") ? String(t3).trim() : t3 + "px";
6205
+ var ke = /* @__PURE__ */ new WeakSet();
6206
+ var Te = { animationIterationCount: 1, aspectRatio: 1, borderImageOutset: 1, borderImageSlice: 1, borderImageWidth: 1, columnCount: 1, columns: 1, flex: 1, flexGrow: 1, flexShrink: 1, gridRow: 1, gridRowEnd: 1, gridRowSpan: 1, gridRowStart: 1, gridColumn: 1, gridColumnEnd: 1, gridColumnSpan: 1, gridColumnStart: 1, fontWeight: 1, lineHeight: 1, opacity: 1, order: 1, orphans: 1, scale: 1, tabSize: 1, widows: 1, zIndex: 1, zoom: 1, WebkitLineClamp: 1, fillOpacity: 1, floodOpacity: 1, stopOpacity: 1, strokeDasharray: 1, strokeDashoffset: 1, strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1 };
6207
+ function De(e2, t3) {
6208
+ return null == t3 || "boolean" == typeof t3 || "" === t3 ? "" : "number" != typeof t3 || 0 === t3 || e2 in Te || e2.startsWith("--") ? String(t3).trim() : t3 + "px";
6178
6209
  }
6179
- var je = 47;
6180
- function xe(e2) {
6210
+ var Me = 47;
6211
+ function Ve(e2) {
6181
6212
  if (45 === e2.charCodeAt(0) && 45 === e2.charCodeAt(1)) return e2;
6182
6213
  let t3 = "";
6183
6214
  for (let n2 = 0; n2 < e2.length; n2++) {
@@ -6186,50 +6217,65 @@ function xe(e2) {
6186
6217
  }
6187
6218
  return t3.startsWith("ms-") ? "-" + t3 : t3;
6188
6219
  }
6189
- var Te = /* @__PURE__ */ Symbol.for("sc-keyframes");
6190
- function ke(e2) {
6191
- return "object" == typeof e2 && null !== e2 && Te in e2;
6220
+ var Ge = /* @__PURE__ */ Symbol.for("sc-keyframes");
6221
+ function Fe(e2) {
6222
+ return "object" == typeof e2 && null !== e2 && Ge in e2;
6192
6223
  }
6193
- function De(e2) {
6194
- return re(e2) && !(e2.prototype && e2.prototype.isReactComponent);
6224
+ function ze(e2) {
6225
+ return ie(e2) && !(e2.prototype && e2.prototype.isReactComponent);
6195
6226
  }
6196
- var Ve = (e2) => null == e2 || false === e2 || "" === e2;
6197
- var Me = /* @__PURE__ */ Symbol.for("react.client.reference");
6198
- function Ge(e2) {
6199
- return e2.$$typeof === Me;
6227
+ var We = (e2) => null == e2 || false === e2 || "" === e2;
6228
+ var Be = /* @__PURE__ */ Symbol.for("react.client.reference");
6229
+ function Le(e2) {
6230
+ return e2.$$typeof === Be;
6200
6231
  }
6201
- function Fe(e2) {
6232
+ function qe(e2) {
6202
6233
  const t3 = e2.$$id, n2 = (t3 && t3.includes("#") ? t3.split("#").pop() : t3) || e2.name || "unknown";
6203
6234
  console.warn(`Interpolating a client component (${n2}) as a selector is not supported in server components. The component selector pattern requires access to the component's internal class name, which is not available across the server/client boundary. Use a plain CSS class selector instead.`);
6204
6235
  }
6205
- function ze(e2, t3) {
6236
+ function He(e2, t3) {
6206
6237
  for (const n2 in e2) {
6207
6238
  const o = e2[n2];
6208
- e2.hasOwnProperty(n2) && !Ve(o) && (Array.isArray(o) && Ie.has(o) || re(o) ? t3.push(xe(n2) + ":", o, ";") : ue(o) ? (t3.push(n2 + " {"), ze(o, t3), t3.push("}")) : t3.push(xe(n2) + ": " + Re(n2, o) + ";"));
6239
+ e2.hasOwnProperty(n2) && !We(o) && (Array.isArray(o) && ke.has(o) || ie(o) ? t3.push(Ve(n2) + ":", o, ";") : pe(o) ? (t3.push(n2 + " {"), He(o, t3), t3.push("}")) : t3.push(Ve(n2) + ": " + De(n2, o) + ";"));
6209
6240
  }
6210
6241
  }
6211
- function We(e2, t3, n2, o, s = []) {
6212
- if (Ve(e2)) return s;
6242
+ function Ye(e2, t3, n2, o, s = []) {
6243
+ if (We(e2)) return s;
6213
6244
  const r2 = typeof e2;
6214
6245
  if ("string" === r2) return s.push(e2), s;
6215
6246
  if ("function" === r2) {
6216
- if (Ge(e2)) return Fe(e2), s;
6217
- if (De(e2) && t3) {
6247
+ if (Le(e2)) return qe(e2), s;
6248
+ if (ze(e2) && t3) {
6218
6249
  const r3 = e2(t3);
6219
- return "object" != typeof r3 || Array.isArray(r3) || ke(r3) || ue(r3) || null === r3 || console.error(`${W(e2)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`), We(r3, t3, n2, o, s);
6250
+ return "object" != typeof r3 || Array.isArray(r3) || Fe(r3) || pe(r3) || null === r3 || console.error(`${B(e2)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`), Ye(r3, t3, n2, o, s);
6220
6251
  }
6221
6252
  return s.push(e2), s;
6222
6253
  }
6223
6254
  if (Array.isArray(e2)) {
6224
- for (let r3 = 0; r3 < e2.length; r3++) We(e2[r3], t3, n2, o, s);
6255
+ for (let r3 = 0; r3 < e2.length; r3++) Ye(e2[r3], t3, n2, o, s);
6225
6256
  return s;
6226
6257
  }
6227
- return ce(e2) ? (s.push(`.${e2.styledComponentId}`), s) : ke(e2) ? (n2 ? (e2.inject(n2, o), s.push(e2.getName(o))) : s.push(e2), s) : Ge(e2) ? (Fe(e2), s) : ue(e2) ? e2.toString !== Object.prototype.toString ? (s.push(e2.toString()), s) : (ze(e2, s), s) : (s.push(e2.toString()), s);
6228
- }
6229
- var Le = F(u);
6230
- var Be = class {
6258
+ return ce(e2) ? (s.push(`.${e2.styledComponentId}`), s) : Fe(e2) ? (n2 ? (e2.inject(n2, o), s.push(e2.getName(o))) : s.push(e2), s) : Le(e2) ? (qe(e2), s) : pe(e2) ? e2.toString !== Object.prototype.toString ? (s.push(e2.toString()), s) : (He(e2, s), s) : (s.push(e2.toString()), s);
6259
+ }
6260
+ var Ue = z(u);
6261
+ var Je = p ? /* @__PURE__ */ new WeakMap() : null;
6262
+ function Xe(e2, t3) {
6263
+ if (!Je) return null;
6264
+ const n2 = Je.get(e2);
6265
+ if (!n2) return null;
6266
+ const o = t3.names.get(e2.componentId);
6267
+ if (!o) return null;
6268
+ let s = "";
6269
+ for (const e3 of o) {
6270
+ const t4 = n2.get(e3);
6271
+ if (!t4) return null;
6272
+ s += t4;
6273
+ }
6274
+ return s;
6275
+ }
6276
+ var Ze = class {
6231
6277
  constructor(e2, t3, n2) {
6232
- this.rules = e2, this.componentId = t3, this.baseHash = G(Le, t3), this.baseStyle = n2, _e.registerId(t3);
6278
+ this.rules = e2, this.componentId = t3, this.baseHash = F(Ue, t3), this.baseStyle = n2, je.registerId(t3);
6233
6279
  }
6234
6280
  generateAndInjectStyles(e2, t3, n2) {
6235
6281
  let o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e2, t3, n2) : "";
@@ -6238,25 +6284,33 @@ var Be = class {
6238
6284
  for (let o2 = 0; o2 < this.rules.length; o2++) {
6239
6285
  const r2 = this.rules[o2];
6240
6286
  if ("string" == typeof r2) s += r2;
6241
- else if (r2) if (De(r2)) {
6287
+ else if (r2) if (ze(r2)) {
6242
6288
  const o3 = r2(e2);
6243
- "string" == typeof o3 ? s += o3 : null != o3 && false !== o3 && ("object" != typeof o3 || Array.isArray(o3) || ke(o3) || ue(o3) || console.error(`${W(r2)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`), s += le(We(o3, e2, t3, n2)));
6244
- } else s += le(We(r2, e2, t3, n2));
6289
+ "string" == typeof o3 ? s += o3 : null != o3 && false !== o3 && ("object" != typeof o3 || Array.isArray(o3) || Fe(o3) || pe(o3) || console.error(`${B(r2)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`), s += ue(Ye(o3, e2, t3, n2)));
6290
+ } else s += ue(Ye(r2, e2, t3, n2));
6245
6291
  }
6246
6292
  if (s) {
6247
6293
  this.dynamicNameCache || (this.dynamicNameCache = /* @__PURE__ */ new Map());
6248
6294
  const e3 = n2.hash ? n2.hash + s : s;
6249
6295
  let r2 = this.dynamicNameCache.get(e3);
6250
6296
  if (!r2) {
6251
- if (r2 = V(G(G(this.baseHash, n2.hash), s) >>> 0), this.dynamicNameCache.size >= 200) {
6297
+ if (r2 = V(F(F(this.baseHash, n2.hash), s) >>> 0), this.dynamicNameCache.size >= 200) {
6252
6298
  const e4 = this.dynamicNameCache.keys().next().value;
6253
6299
  void 0 !== e4 && this.dynamicNameCache.delete(e4);
6254
6300
  }
6255
6301
  this.dynamicNameCache.set(e3, r2);
6256
6302
  }
6257
- if (!t3.hasNameForId(this.componentId, r2)) {
6303
+ if (!t3.hasNameForId(this.componentId, r2)) if (p && (function(e4, t4) {
6304
+ var n3, o2;
6305
+ return null !== (o2 = null === (n3 = null == Je ? void 0 : Je.get(e4)) || void 0 === n3 ? void 0 : n3.has(t4)) && void 0 !== o2 && o2;
6306
+ })(this, r2)) t3.registerName(this.componentId, r2);
6307
+ else {
6258
6308
  const e4 = n2(s, "." + r2, void 0, this.componentId);
6259
- t3.insertRules(this.componentId, r2, e4);
6309
+ p && (function(e5, t4, n3) {
6310
+ if (!Je) return;
6311
+ let o2 = Je.get(e5);
6312
+ o2 || (o2 = /* @__PURE__ */ new Map(), Je.set(e5, o2)), o2.set(t4, de(n3));
6313
+ })(this, r2, e4), t3.insertRules(this.componentId, r2, e4);
6260
6314
  }
6261
6315
  o = ae(o, r2);
6262
6316
  }
@@ -6264,40 +6318,40 @@ var Be = class {
6264
6318
  return o;
6265
6319
  }
6266
6320
  };
6267
- var qe = /&/g;
6268
- function He(e2, t3) {
6321
+ var Ke = /&/g;
6322
+ function Qe(e2, t3) {
6269
6323
  let n2 = 0;
6270
6324
  for (; --t3 >= 0 && 92 === e2.charCodeAt(t3); ) n2++;
6271
6325
  return !(1 & ~n2);
6272
6326
  }
6273
- function Ye(e2) {
6327
+ function et(e2) {
6274
6328
  const t3 = e2.length;
6275
- let n2 = "", o = 0, s = 0, r2 = 0, i2 = false, c2 = false;
6276
- for (let a2 = 0; a2 < t3; a2++) {
6277
- const l2 = e2.charCodeAt(a2);
6278
- if (0 !== r2 || i2 || l2 !== je || 42 !== e2.charCodeAt(a2 + 1)) if (i2) 42 === l2 && e2.charCodeAt(a2 + 1) === je && (i2 = false, a2++);
6279
- else if (34 !== l2 && 39 !== l2 || He(e2, a2)) {
6280
- if (0 === r2) if (123 === l2) s++;
6281
- else if (125 === l2) {
6329
+ let n2 = "", o = 0, s = 0, r2 = 0, i2 = false, l2 = false;
6330
+ for (let c2 = 0; c2 < t3; c2++) {
6331
+ const a2 = e2.charCodeAt(c2);
6332
+ if (0 !== r2 || i2 || a2 !== Me || 42 !== e2.charCodeAt(c2 + 1)) if (i2) 42 === a2 && e2.charCodeAt(c2 + 1) === Me && (i2 = false, c2++);
6333
+ else if (34 !== a2 && 39 !== a2 || Qe(e2, c2)) {
6334
+ if (0 === r2) if (123 === a2) s++;
6335
+ else if (125 === a2) {
6282
6336
  if (s--, s < 0) {
6283
- c2 = true;
6284
- let n3 = a2 + 1;
6337
+ l2 = true;
6338
+ let n3 = c2 + 1;
6285
6339
  for (; n3 < t3; ) {
6286
6340
  const t4 = e2.charCodeAt(n3);
6287
6341
  if (59 === t4 || 10 === t4) break;
6288
6342
  n3++;
6289
6343
  }
6290
- n3 < t3 && 59 === e2.charCodeAt(n3) && n3++, s = 0, a2 = n3 - 1, o = n3;
6344
+ n3 < t3 && 59 === e2.charCodeAt(n3) && n3++, s = 0, c2 = n3 - 1, o = n3;
6291
6345
  continue;
6292
6346
  }
6293
- 0 === s && (n2 += e2.substring(o, a2 + 1), o = a2 + 1);
6294
- } else 59 === l2 && 0 === s && (n2 += e2.substring(o, a2 + 1), o = a2 + 1);
6295
- } else 0 === r2 ? r2 = l2 : r2 === l2 && (r2 = 0);
6296
- else i2 = true, a2++;
6347
+ 0 === s && (n2 += e2.substring(o, c2 + 1), o = c2 + 1);
6348
+ } else 59 === a2 && 0 === s && (n2 += e2.substring(o, c2 + 1), o = c2 + 1);
6349
+ } else 0 === r2 ? r2 = a2 : r2 === a2 && (r2 = 0);
6350
+ else i2 = true, c2++;
6297
6351
  }
6298
- return c2 || 0 !== s || 0 !== r2 ? (o < t3 && 0 === s && 0 === r2 && (n2 += e2.substring(o)), n2) : e2;
6352
+ return l2 || 0 !== s || 0 !== r2 ? (o < t3 && 0 === s && 0 === r2 && (n2 += e2.substring(o)), n2) : e2;
6299
6353
  }
6300
- function Ue(e2, t3) {
6354
+ function tt(e2, t3) {
6301
6355
  const n2 = t3 + " ", o = "," + n2;
6302
6356
  for (let s = 0; s < e2.length; s++) {
6303
6357
  const r2 = e2[s];
@@ -6307,143 +6361,206 @@ function Ue(e2, t3) {
6307
6361
  for (let o2 = 0; o2 < e3.length; o2++) t4[o2] = n2 + e3[o2];
6308
6362
  r2.props = t4;
6309
6363
  }
6310
- Array.isArray(r2.children) && "@keyframes" !== r2.type && Ue(r2.children, t3);
6364
+ Array.isArray(r2.children) && "@keyframes" !== r2.type && tt(r2.children, t3);
6311
6365
  }
6312
6366
  return e2;
6313
6367
  }
6314
- function Je({ options: e2 = $, plugins: t3 = I } = $) {
6368
+ function nt({ options: e2 = $, plugins: t3 = x } = $) {
6315
6369
  let n2, s, r2;
6316
- const i2 = (e3, t4, o) => o.startsWith(s) && o.endsWith(s) && o.replaceAll(s, "").length > 0 ? `.${n2}` : e3, c2 = t3.slice();
6317
- c2.push((e3) => {
6318
- e3.type === RULESET && e3.value.includes("&") && (r2 || (r2 = new RegExp(`\\${s}\\b`, "g")), e3.props[0] = e3.props[0].replace(qe, s).replace(r2, i2));
6319
- }), e2.prefix && c2.push(prefixer), c2.push(stringify);
6320
- let a2 = [];
6321
- const l2 = middleware(c2.concat(rulesheet((e3) => a2.push(e3)))), u2 = (t4, i3 = "", c3 = "", u3 = "&") => {
6370
+ const i2 = (e3, t4, o) => o.startsWith(s) && o.endsWith(s) && o.replaceAll(s, "").length > 0 ? `.${n2}` : e3, l2 = t3.slice();
6371
+ l2.push((e3) => {
6372
+ e3.type === RULESET && e3.value.includes("&") && (r2 || (r2 = new RegExp(`\\${s}\\b`, "g")), e3.props[0] = e3.props[0].replace(Ke, s).replace(r2, i2));
6373
+ }), e2.prefix && l2.push(prefixer), l2.push(stringify);
6374
+ let c2 = [];
6375
+ const a2 = middleware(l2.concat(rulesheet((e3) => c2.push(e3)))), u2 = (t4, i3 = "", l3 = "", u3 = "&") => {
6322
6376
  n2 = u3, s = i3, r2 = void 0;
6323
- const h3 = (function(e3) {
6377
+ const d3 = (function(e3) {
6324
6378
  const t5 = -1 !== e3.indexOf("//"), n3 = -1 !== e3.indexOf("}");
6325
6379
  if (!t5 && !n3) return e3;
6326
- if (!t5) return Ye(e3);
6380
+ if (!t5) return et(e3);
6327
6381
  const o = e3.length;
6328
- let s2 = "", r3 = 0, i4 = 0, c4 = 0, a3 = 0, l3 = 0, u4 = false;
6382
+ let s2 = "", r3 = 0, i4 = 0, l4 = 0, c3 = 0, a3 = 0, u4 = false;
6329
6383
  for (; i4 < o; ) {
6330
6384
  const t6 = e3.charCodeAt(i4);
6331
- if (34 !== t6 && 39 !== t6 || He(e3, i4)) if (0 === c4) if (t6 === je && i4 + 1 < o && 42 === e3.charCodeAt(i4 + 1)) {
6332
- for (i4 += 2; i4 + 1 < o && (42 !== e3.charCodeAt(i4) || e3.charCodeAt(i4 + 1) !== je); ) i4++;
6385
+ if (34 !== t6 && 39 !== t6 || Qe(e3, i4)) if (0 === l4) if (t6 === Me && i4 + 1 < o && 42 === e3.charCodeAt(i4 + 1)) {
6386
+ for (i4 += 2; i4 + 1 < o && (42 !== e3.charCodeAt(i4) || e3.charCodeAt(i4 + 1) !== Me); ) i4++;
6333
6387
  i4 += 2;
6334
- } else if (40 !== t6) if (41 !== t6) if (a3 > 0) i4++;
6335
- else if (42 === t6 && i4 + 1 < o && e3.charCodeAt(i4 + 1) === je) s2 += e3.substring(r3, i4), i4 += 2, r3 = i4, u4 = true;
6336
- else if (t6 === je && i4 + 1 < o && e3.charCodeAt(i4 + 1) === je) {
6388
+ } else if (40 !== t6) if (41 !== t6) if (c3 > 0) i4++;
6389
+ else if (42 === t6 && i4 + 1 < o && e3.charCodeAt(i4 + 1) === Me) s2 += e3.substring(r3, i4), i4 += 2, r3 = i4, u4 = true;
6390
+ else if (t6 === Me && i4 + 1 < o && e3.charCodeAt(i4 + 1) === Me) {
6337
6391
  for (s2 += e3.substring(r3, i4); i4 < o && 10 !== e3.charCodeAt(i4); ) i4++;
6338
6392
  r3 = i4, u4 = true;
6339
- } else 123 === t6 ? l3++ : 125 === t6 && l3--, i4++;
6340
- else a3 > 0 && a3--, i4++;
6341
- else a3++, i4++;
6393
+ } else 123 === t6 ? a3++ : 125 === t6 && a3--, i4++;
6394
+ else c3 > 0 && c3--, i4++;
6395
+ else c3++, i4++;
6342
6396
  else i4++;
6343
- else 0 === c4 ? c4 = t6 : c4 === t6 && (c4 = 0), i4++;
6397
+ else 0 === l4 ? l4 = t6 : l4 === t6 && (l4 = 0), i4++;
6344
6398
  }
6345
- return u4 ? (r3 < o && (s2 += e3.substring(r3)), 0 === l3 ? s2 : Ye(s2)) : 0 === l3 ? e3 : Ye(e3);
6399
+ return u4 ? (r3 < o && (s2 += e3.substring(r3)), 0 === a3 ? s2 : et(s2)) : 0 === a3 ? e3 : et(e3);
6346
6400
  })(t4);
6347
- let d3 = compile(c3 || i3 ? c3 + " " + i3 + " { " + h3 + " }" : h3);
6348
- return e2.namespace && (d3 = Ue(d3, e2.namespace)), a2 = [], serialize(d3, l2), a2;
6349
- }, h2 = e2;
6350
- let d2 = M;
6351
- for (let e3 = 0; e3 < t3.length; e3++) t3[e3].name || v(15), d2 = G(d2, t3[e3].name);
6352
- return (null == h2 ? void 0 : h2.namespace) && (d2 = G(d2, h2.namespace)), (null == h2 ? void 0 : h2.prefix) && (d2 = G(d2, "p")), u2.hash = d2 !== M ? d2.toString() : "", u2;
6353
- }
6354
- var Xe = new _e();
6355
- var Ke = Je();
6356
- var Qe = t2.createContext({ shouldForwardProp: void 0, styleSheet: Xe, stylis: Ke, stylisPlugins: void 0 });
6357
- var Ze = Qe.Consumer;
6358
- function et() {
6359
- return t2.useContext(Qe);
6360
- }
6361
- var nt = t2.createContext(void 0);
6362
- var ot = nt.Consumer;
6363
- function rt(e2) {
6364
- const n2 = t2.useContext(nt), o = t2.useMemo(() => (function(e3, t3) {
6365
- if (!e3) throw v(14);
6366
- if (re(e3)) {
6401
+ let h3 = compile(l3 || i3 ? l3 + " " + i3 + " { " + d3 + " }" : d3);
6402
+ return e2.namespace && (h3 = tt(h3, e2.namespace)), c2 = [], serialize(h3, a2), c2;
6403
+ }, d2 = e2;
6404
+ let h2 = G;
6405
+ for (let e3 = 0; e3 < t3.length; e3++) t3[e3].name || S(15), h2 = F(h2, t3[e3].name);
6406
+ return (null == d2 ? void 0 : d2.namespace) && (h2 = F(h2, d2.namespace)), (null == d2 ? void 0 : d2.prefix) && (h2 = F(h2, "p")), u2.hash = h2 !== G ? h2.toString() : "", u2;
6407
+ }
6408
+ var ot;
6409
+ var st;
6410
+ var rt;
6411
+ var it = new je();
6412
+ var lt = nt();
6413
+ var at = null;
6414
+ var dt = p && null !== (rt = null === (st = (ot = t2).cache) || void 0 === st ? void 0 : st.call(ot, () => {
6415
+ it.names.clear(), it.keyframeIds.clear(), it.clearTag(), at = null;
6416
+ })) && void 0 !== rt ? rt : null;
6417
+ var ht = { shouldForwardProp: void 0, styleSheet: it, stylis: lt, stylisPlugins: void 0 };
6418
+ var pt = p ? { Provider: ({ children: e2 }) => e2, Consumer: ({ children: e2 }) => e2(ht) } : t2.createContext(ht);
6419
+ var ft = pt.Consumer;
6420
+ function mt() {
6421
+ return p ? (dt && dt(), at || ht) : t2.useContext(pt);
6422
+ }
6423
+ var yt = p ? { Provider: ({ children: e2 }) => e2, Consumer: ({ children: e2 }) => e2(void 0) } : t2.createContext(void 0);
6424
+ var vt = yt.Consumer;
6425
+ function bt(e2) {
6426
+ if (p) return e2.children;
6427
+ const n2 = t2.useContext(yt), o = t2.useMemo(() => (function(e3, t3) {
6428
+ if (!e3) throw S(14);
6429
+ if (ie(e3)) {
6367
6430
  const n3 = e3(t3);
6368
- if (null === n3 || Array.isArray(n3) || "object" != typeof n3) throw v(7);
6431
+ if (null === n3 || Array.isArray(n3) || "object" != typeof n3) throw S(7);
6369
6432
  return n3;
6370
6433
  }
6371
- if (Array.isArray(e3) || "object" != typeof e3) throw v(8);
6434
+ if (Array.isArray(e3) || "object" != typeof e3) throw S(8);
6372
6435
  return t3 ? Object.assign(Object.assign({}, t3), e3) : e3;
6373
6436
  })(e2.theme, n2), [e2.theme, n2]);
6374
- return e2.children ? t2.createElement(nt.Provider, { value: o }, e2.children) : null;
6437
+ return e2.children ? t2.createElement(yt.Provider, { value: o }, e2.children) : null;
6375
6438
  }
6376
- var it = Object.prototype.hasOwnProperty;
6377
- var ct = {};
6378
- function at(e2, t3) {
6439
+ var wt = {};
6440
+ function Nt(e2, t3) {
6379
6441
  const n2 = "string" != typeof e2 ? "sc" : T(e2);
6380
- ct[n2] = (ct[n2] || 0) + 1;
6381
- const o = n2 + "-" + z(u + n2 + ct[n2]);
6442
+ wt[n2] = (wt[n2] || 0) + 1;
6443
+ const o = n2 + "-" + W(u + n2 + wt[n2]);
6382
6444
  return t3 ? t3 + "-" + o : o;
6383
6445
  }
6384
- var lt;
6385
- function ut(o, s, r2) {
6386
- const i2 = ce(o), c2 = o, a2 = !L(o), { attrs: l2 = I, componentId: u2 = at(s.displayName, s.parentComponentId), displayName: h2 = B(o) } = s, d2 = s.displayName && s.componentId ? T(s.displayName) + "-" + s.componentId : s.componentId || u2, p2 = i2 && c2.attrs ? c2.attrs.concat(l2).filter(Boolean) : l2;
6387
- let { shouldForwardProp: f2 } = s;
6446
+ var Ct;
6447
+ var Pt = me(() => /* @__PURE__ */ new Set());
6448
+ var Ot = /* @__PURE__ */ new Map();
6449
+ function Et(e2) {
6450
+ let t3 = Ot.get(e2);
6451
+ return t3 || (t3 = new RegExp("\\." + e2 + "(?![a-zA-Z0-9_-])", "g"), Ot.set(e2, t3)), t3;
6452
+ }
6453
+ function It(e2, t3, n2) {
6454
+ const o = n2.names.get(t3);
6455
+ if (o) for (const t4 of o) {
6456
+ const n3 = Et(t4);
6457
+ n3.lastIndex = 0, e2 = e2.replace(n3, ":where(." + t4 + ")");
6458
+ }
6459
+ return e2;
6460
+ }
6461
+ function At(o, s, r2) {
6462
+ const i2 = ce(o), c2 = o, a2 = !L(o), { attrs: u2 = x, componentId: h2 = Nt(s.displayName, s.parentComponentId), displayName: f2 = q(o) } = s, m2 = s.displayName && s.componentId ? T(s.displayName) + "-" + s.componentId : s.componentId || h2, g2 = i2 && c2.attrs ? c2.attrs.concat(u2).filter(Boolean) : u2;
6463
+ let { shouldForwardProp: y2 } = s;
6388
6464
  if (i2 && c2.shouldForwardProp) {
6389
6465
  const e2 = c2.shouldForwardProp;
6390
6466
  if (s.shouldForwardProp) {
6391
6467
  const t3 = s.shouldForwardProp;
6392
- f2 = (n2, o2) => e2(n2, o2) && t3(n2, o2);
6393
- } else f2 = e2;
6468
+ y2 = (n2, o2) => e2(n2, o2) && t3(n2, o2);
6469
+ } else y2 = e2;
6394
6470
  }
6395
- const m2 = new Be(r2, d2, i2 ? c2.componentStyle : void 0);
6396
- function y2(o2, s2) {
6471
+ const v2 = new Ze(r2, m2, i2 ? c2.componentStyle : void 0);
6472
+ function S2(o2, s2) {
6397
6473
  return (function(o3, s3, r3) {
6398
- const { attrs: i3, componentStyle: c3, defaultProps: a3, foldedComponentIds: l3, styledComponentId: u3, target: h3 } = o3, d3 = t2.useContext(nt), p3 = et(), f3 = o3.shouldForwardProp || p3.shouldForwardProp;
6399
- t2.useDebugValue && t2.useDebugValue(u3);
6400
- const m3 = R(s3, d3, a3) || $;
6401
- let y3, g3;
6402
- {
6403
- const e2 = t2.useRef(null), n2 = e2.current;
6404
- if (null !== n2 && n2[1] === m3 && n2[2] === p3.styleSheet && n2[3] === p3.stylis && n2[7] === c3 && (function(e3, t3, n3) {
6405
- const o4 = e3, s4 = t3;
6406
- let r4 = 0;
6407
- for (const e4 in s4) if (it.call(s4, e4) && (r4++, o4[e4] !== s4[e4])) return false;
6408
- return r4 === n3;
6409
- })(n2[0], s3, n2[4])) y3 = n2[5], g3 = n2[6];
6410
- else {
6411
- y3 = (function(e3, t3, n4) {
6412
- const o4 = Object.assign(Object.assign({}, t3), { className: void 0, theme: n4 }), s4 = e3.length > 1;
6413
- for (let n5 = 0; n5 < e3.length; n5++) {
6414
- const r4 = e3[n5], i4 = re(r4) ? r4(s4 ? Object.assign({}, o4) : o4) : r4;
6415
- for (const e4 in i4) "className" === e4 ? o4.className = ae(o4.className, i4[e4]) : "style" === e4 ? o4.style = Object.assign(Object.assign({}, o4.style), i4[e4]) : e4 in t3 && void 0 === t3[e4] || (o4[e4] = i4[e4]);
6416
- }
6417
- return "className" in t3 && "string" == typeof t3.className && (o4.className = ae(o4.className, t3.className)), o4;
6418
- })(i3, s3, m3), g3 = (function(e3, n4, o4, s4) {
6419
- const r4 = e3.generateAndInjectStyles(n4, o4, s4);
6420
- return t2.useDebugValue && t2.useDebugValue(r4), r4;
6421
- })(c3, y3, p3.styleSheet, p3.stylis);
6422
- let n3 = 0;
6423
- for (const e3 in s3) it.call(s3, e3) && n3++;
6424
- e2.current = [s3, m3, p3.styleSheet, p3.stylis, n3, y3, g3, c3];
6474
+ const { attrs: i3, componentStyle: c3, defaultProps: a3, foldedComponentIds: u3, styledComponentId: h3, target: f3 } = o3, m3 = p ? void 0 : t2.useContext(yt), g3 = mt(), y3 = o3.shouldForwardProp || g3.shouldForwardProp;
6475
+ t2.useDebugValue && t2.useDebugValue(h3);
6476
+ const v3 = R(s3, m3, a3) || (p ? void 0 : $);
6477
+ let S3, b3;
6478
+ S3 = (function(e2, t3, n2) {
6479
+ const o4 = Object.assign(Object.assign({}, t3), { className: void 0, theme: n2 }), s4 = e2.length > 1;
6480
+ for (let n3 = 0; n3 < e2.length; n3++) {
6481
+ const r4 = e2[n3], i4 = ie(r4) ? r4(s4 ? Object.assign({}, o4) : o4) : r4;
6482
+ for (const e3 in i4) "className" === e3 ? o4.className = ae(o4.className, i4[e3]) : "style" === e3 ? o4.style = Object.assign(Object.assign({}, o4.style), i4[e3]) : e3 in t3 && void 0 === t3[e3] || (o4[e3] = i4[e3]);
6425
6483
  }
6426
- }
6427
- o3.warnTooManyClasses && o3.warnTooManyClasses(g3);
6428
- const v2 = y3.as || h3, S2 = (function(t3, n2, o4, s4) {
6484
+ return "className" in t3 && "string" == typeof t3.className && (o4.className = ae(o4.className, t3.className)), o4;
6485
+ })(i3, s3, v3), b3 = (function(e2, n2, o4, s4) {
6486
+ const r4 = e2.generateAndInjectStyles(n2, o4, s4);
6487
+ return t2.useDebugValue && t2.useDebugValue(r4), r4;
6488
+ })(c3, S3, g3.styleSheet, g3.stylis), o3.warnTooManyClasses && o3.warnTooManyClasses(b3);
6489
+ const w2 = S3.as || f3, N2 = (function(t3, n2, o4, s4) {
6429
6490
  const r4 = {};
6430
- for (const i4 in t3) void 0 === t3[i4] || "$" === i4[0] || "as" === i4 || "theme" === i4 && t3.theme === o4 || ("forwardedAs" === i4 ? r4.as = t3.forwardedAs : s4 && !s4(i4, n2) || (r4[i4] = t3[i4], s4 || false || isPropValid(i4) || (lt || (lt = /* @__PURE__ */ new Set())).has(i4) || !L(n2) || n2.includes("-") || (lt.add(i4), console.warn(`styled-components: it looks like an unknown prop "${i4}" 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.)`))));
6491
+ for (const i4 in t3) void 0 === t3[i4] || "$" === i4[0] || "as" === i4 || "theme" === i4 && t3.theme === o4 || ("forwardedAs" === i4 ? r4.as = t3.forwardedAs : s4 && !s4(i4, n2) || (r4[i4] = t3[i4], s4 || false || isPropValid(i4) || (Ct || (Ct = /* @__PURE__ */ new Set())).has(i4) || !L(n2) || n2.includes("-") || (Ct.add(i4), console.warn(`styled-components: it looks like an unknown prop "${i4}" 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.)`))));
6431
6492
  return r4;
6432
- })(y3, v2, m3, f3);
6433
- let b2 = ae(l3, u3);
6434
- return g3 && (b2 += " " + g3), y3.className && (b2 += " " + y3.className), S2[L(v2) && v2.includes("-") ? "class" : "className"] = b2, r3 && (S2.ref = r3), n(v2, S2);
6435
- })(g2, o2, s2);
6436
- }
6437
- y2.displayName = h2;
6438
- let g2 = t2.forwardRef(y2);
6439
- return g2.attrs = p2, g2.componentStyle = m2, g2.displayName = h2, g2.shouldForwardProp = f2, g2.foldedComponentIds = i2 ? ae(c2.foldedComponentIds, c2.styledComponentId) : "", g2.styledComponentId = d2, g2.target = i2 ? c2.target : o, Object.defineProperty(g2, "defaultProps", { get() {
6493
+ })(S3, w2, v3, y3);
6494
+ let C2 = ae(u3, h3);
6495
+ b3 && (C2 += " " + b3), S3.className && (C2 += " " + S3.className), N2[L(w2) && w2.includes("-") ? "class" : "className"] = C2, r3 && (N2.ref = r3);
6496
+ const O2 = n(w2, N2);
6497
+ if (p) {
6498
+ const e2 = Pt ? Pt() : null;
6499
+ let n2 = null, o4 = 0, s4 = "", r4 = true, i4 = c3;
6500
+ for (; i4; ) {
6501
+ const t3 = g3.styleSheet.names.get(i4.componentId);
6502
+ if (t3) {
6503
+ o4 += t3.size;
6504
+ for (const o5 of t3) e2 && e2.has(o5) || (n2 || (n2 = []), n2.push(o5), e2 && e2.add(o5));
6505
+ }
6506
+ if (n2 && r4) {
6507
+ let e3 = Xe(i4, g3.styleSheet);
6508
+ null === e3 ? r4 = false : (i4 !== c3 && (e3 = It(e3, i4.componentId, g3.styleSheet)), s4 = e3 + s4);
6509
+ }
6510
+ i4 = i4.baseStyle;
6511
+ }
6512
+ if (n2 && !r4) {
6513
+ s4 = "";
6514
+ const e3 = g3.styleSheet.getTag();
6515
+ let t3 = c3;
6516
+ for (; t3; ) {
6517
+ let n3 = e3.getGroup(P(t3.componentId));
6518
+ n3 && t3 !== c3 && (n3 = It(n3, t3.componentId, g3.styleSheet)), s4 = n3 + s4, t3 = t3.baseStyle;
6519
+ }
6520
+ }
6521
+ let a4 = "";
6522
+ if (g3.styleSheet.keyframeIds.size > 0) {
6523
+ const t3 = g3.styleSheet.getTag();
6524
+ for (const n3 of g3.styleSheet.keyframeIds) {
6525
+ if (e2 && e2.has(n3)) continue;
6526
+ const o5 = t3.getGroup(P(n3));
6527
+ o5 && (a4 += o5, e2 && e2.add(n3));
6528
+ }
6529
+ }
6530
+ if (s4 && e2 && n2 && n2.length < o4) {
6531
+ const e3 = s4.split(d);
6532
+ let t3 = "";
6533
+ for (let o5 = 0; o5 < e3.length; o5++) {
6534
+ const s5 = e3[o5];
6535
+ if (s5) for (let e4 = 0; e4 < n2.length; e4++) {
6536
+ const o6 = Et(n2[e4]);
6537
+ if (o6.lastIndex = 0, o6.test(s5)) {
6538
+ t3 += s5 + d;
6539
+ break;
6540
+ }
6541
+ }
6542
+ }
6543
+ s4 = t3;
6544
+ }
6545
+ const u4 = he(a4 + s4);
6546
+ if (u4) {
6547
+ const e3 = t2.createElement("style", { [l]: "", key: "sc-" + c3.componentId, children: u4 });
6548
+ return t2.createElement(t2.Fragment, null, e3, O2);
6549
+ }
6550
+ }
6551
+ return O2;
6552
+ })(b2, o2, s2);
6553
+ }
6554
+ S2.displayName = f2;
6555
+ let b2 = t2.forwardRef(S2);
6556
+ return b2.attrs = g2, b2.componentStyle = v2, b2.displayName = f2, b2.shouldForwardProp = y2, b2.foldedComponentIds = i2 ? ae(c2.foldedComponentIds, c2.styledComponentId) : "", b2.styledComponentId = m2, b2.target = i2 ? c2.target : o, Object.defineProperty(b2, "defaultProps", { get() {
6440
6557
  return this._foldedDefaultProps;
6441
6558
  }, set(e2) {
6442
6559
  this._foldedDefaultProps = i2 ? (function(e3, ...t3) {
6443
- for (const n2 of t3) he(e3, n2, true);
6560
+ for (const n2 of t3) fe(e3, n2, true);
6444
6561
  return e3;
6445
6562
  })({}, c2.defaultProps, e2) : e2;
6446
- } }), _(h2, d2), g2.warnTooManyClasses = /* @__PURE__ */ ((e2, t3) => {
6563
+ } }), _(f2, m2), b2.warnTooManyClasses = /* @__PURE__ */ ((e2, t3) => {
6447
6564
  let n2 = {}, o2 = false;
6448
6565
  return (s2) => {
6449
6566
  !o2 && (n2[s2] = true, Object.keys(n2).length >= 200) && (console.warn(`Over 200 classes were generated for component ${e2}${t3 ? ` with the id of "${t3}"` : ""}.
@@ -6457,39 +6574,39 @@ Example:
6457
6574
 
6458
6575
  <Component />`), o2 = true, n2 = {});
6459
6576
  };
6460
- })(h2, d2), de(g2, () => `.${g2.styledComponentId}`), a2 && se(g2, o, { attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, shouldForwardProp: true, styledComponentId: true, target: true }), g2;
6577
+ })(f2, m2), ge(b2, () => `.${b2.styledComponentId}`), a2 && re(b2, o, { attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, shouldForwardProp: true, styledComponentId: true, target: true }), b2;
6461
6578
  }
6462
- var ht = /* @__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"]);
6463
- function dt(e2, t3) {
6579
+ var _t = /* @__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"]);
6580
+ function xt(e2, t3) {
6464
6581
  const n2 = [e2[0]];
6465
6582
  for (let o = 0, s = t3.length; o < s; o += 1) n2.push(t3[o], e2[o + 1]);
6466
6583
  return n2;
6467
6584
  }
6468
- var pt = (e2) => (Ie.add(e2), e2);
6469
- function ft(e2, ...t3) {
6470
- if (re(e2) || ue(e2)) return pt(We(dt(I, [e2, ...t3])));
6585
+ var $t = (e2) => (ke.add(e2), e2);
6586
+ function Rt(e2, ...t3) {
6587
+ if (ie(e2) || pe(e2)) return $t(Ye(xt(x, [e2, ...t3])));
6471
6588
  const n2 = e2;
6472
- return 0 === t3.length && 1 === n2.length && "string" == typeof n2[0] ? We(n2) : pt(We(dt(n2, t3)));
6589
+ return 0 === t3.length && 1 === n2.length && "string" == typeof n2[0] ? Ye(n2) : $t(Ye(xt(n2, t3)));
6473
6590
  }
6474
- function mt(e2, t3, n2 = $) {
6475
- if (!t3) throw v(1, t3);
6476
- const o = (o2, ...s) => e2(t3, n2, ft(o2, ...s));
6477
- return o.attrs = (o2) => mt(e2, t3, Object.assign(Object.assign({}, n2), { attrs: Array.prototype.concat(n2.attrs, o2).filter(Boolean) })), o.withConfig = (o2) => mt(e2, t3, Object.assign(Object.assign({}, n2), o2)), o;
6591
+ function jt(e2, t3, n2 = $) {
6592
+ if (!t3) throw S(1, t3);
6593
+ const o = (o2, ...s) => e2(t3, n2, Rt(o2, ...s));
6594
+ return o.attrs = (o2) => jt(e2, t3, Object.assign(Object.assign({}, n2), { attrs: Array.prototype.concat(n2.attrs, o2).filter(Boolean) })), o.withConfig = (o2) => jt(e2, t3, Object.assign(Object.assign({}, n2), o2)), o;
6478
6595
  }
6479
- var yt = (e2) => mt(ut, e2);
6480
- var gt = yt;
6481
- ht.forEach((e2) => {
6482
- gt[e2] = yt(e2);
6596
+ var kt = (e2) => jt(At, e2);
6597
+ var Tt = kt;
6598
+ _t.forEach((e2) => {
6599
+ Tt[e2] = kt(e2);
6483
6600
  });
6484
- var vt = class {
6601
+ var Dt = class {
6485
6602
  constructor(e2, t3) {
6486
6603
  this.instanceRules = /* @__PURE__ */ new Map(), this.rules = e2, this.componentId = t3, this.isStatic = (function(e3) {
6487
6604
  for (let t4 = 0; t4 < e3.length; t4 += 1) {
6488
6605
  const n2 = e3[t4];
6489
- if (re(n2) && !ce(n2)) return false;
6606
+ if (ie(n2) && !ce(n2)) return false;
6490
6607
  }
6491
6608
  return true;
6492
- })(e2), _e.registerId(this.componentId);
6609
+ })(e2), je.registerId(this.componentId);
6493
6610
  }
6494
6611
  removeStyles(e2, t3) {
6495
6612
  this.instanceRules.delete(e2), this.rebuildGroup(t3);
@@ -6519,7 +6636,7 @@ var vt = class {
6519
6636
  this.rebuildGroup(n2);
6520
6637
  }
6521
6638
  computeRules(e2, t3, n2, o) {
6522
- const s = le(We(this.rules, t3, n2, o)), r2 = { name: this.componentId + e2, rules: o(s, "") };
6639
+ const s = ue(Ye(this.rules, t3, n2, o)), r2 = { name: this.componentId + e2, rules: o(s, "") };
6523
6640
  return this.instanceRules.set(e2, r2), r2;
6524
6641
  }
6525
6642
  rebuildGroup(e2) {
@@ -6528,64 +6645,74 @@ var vt = class {
6528
6645
  for (const n2 of this.instanceRules.values()) e2.insertRules(t3, n2.name, n2.rules);
6529
6646
  }
6530
6647
  };
6531
- function St(e2, ...n2) {
6532
- const o = ft(e2, ...n2), s = `sc-global-${z(JSON.stringify(o))}`, r2 = new vt(o, s);
6648
+ var Mt = me(() => /* @__PURE__ */ new Set());
6649
+ function Vt(e2, ...n2) {
6650
+ const o = Rt(e2, ...n2), s = `sc-global-${W(JSON.stringify(o))}`, r2 = new Dt(o, s);
6533
6651
  _(s);
6534
6652
  const i2 = (e3) => {
6535
- const n3 = et(), i3 = t2.useContext(nt);
6536
- let a2;
6537
- {
6538
- const e4 = t2.useRef(null);
6539
- null === e4.current && (e4.current = n3.styleSheet.allocateGSInstance(s)), a2 = e4.current;
6653
+ const n3 = mt(), l2 = p ? void 0 : t2.useContext(yt);
6654
+ let c2;
6655
+ if (c2 = n3.styleSheet.allocateGSInstance(s), t2.Children.count(e3.children) && console.warn(`The global style component ${s} was given child JSX. createGlobalStyle does not render children.`), o.some((e4) => "string" == typeof e4 && -1 !== e4.indexOf("@import")) && 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."), (p || n3.styleSheet.server) && (function(e4, t3, n4, o2, s2) {
6656
+ if (r2.isStatic) r2.renderStyles(e4, y, n4, s2);
6657
+ else {
6658
+ const l3 = Object.assign(Object.assign({}, t3), { theme: R(t3, o2, i2.defaultProps) });
6659
+ r2.renderStyles(e4, l3, n4, s2);
6660
+ }
6661
+ })(c2, e3, n3.styleSheet, l2, n3.stylis), p) {
6662
+ const e4 = "undefined" == typeof window ? r2.instanceRules.get(c2) : void 0, o2 = e4 ? de(e4.rules) : "";
6663
+ if (o2) {
6664
+ r2.instanceRules.delete(c2);
6665
+ const e5 = Mt ? Mt() : null;
6666
+ if (e5) {
6667
+ const t3 = r2.isStatic ? s + n3.stylis.hash : o2;
6668
+ if (e5.has(t3)) return null;
6669
+ e5.add(t3);
6670
+ }
6671
+ return t2.createElement("style", { key: s + "-" + c2, "data-styled-global": s, children: he(o2) });
6672
+ }
6540
6673
  }
6541
- t2.Children.count(e3.children) && console.warn(`The global style component ${s} was given child JSX. createGlobalStyle does not render children.`), o.some((e4) => "string" == typeof e4 && -1 !== e4.indexOf("@import")) && 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."), n3.styleSheet.server && c2(a2, e3, n3.styleSheet, i3, n3.stylis);
6542
- {
6543
- const o2 = r2.isStatic ? [a2, n3.styleSheet, r2] : [a2, e3, n3.styleSheet, i3, n3.stylis, r2], l2 = t2.useRef(r2);
6544
- t2.useLayoutEffect(() => {
6545
- n3.styleSheet.server || (l2.current !== r2 && (n3.styleSheet.clearRules(s), l2.current = r2), c2(a2, e3, n3.styleSheet, i3, n3.stylis));
6546
- }, o2), t2.useLayoutEffect(() => () => {
6547
- n3.styleSheet.server || r2.removeStyles(a2, n3.styleSheet);
6548
- }, [a2, n3.styleSheet, r2]);
6549
- }
6550
- return n3.styleSheet.server && r2.instanceRules.delete(a2), null;
6674
+ return r2.instanceRules.delete(c2), null;
6551
6675
  };
6552
- function c2(e3, t3, n3, o2, s2) {
6553
- if (r2.isStatic) r2.renderStyles(e3, y, n3, s2);
6554
- else {
6555
- const c3 = Object.assign(Object.assign({}, t3), { theme: R(t3, o2, i2.defaultProps) });
6556
- r2.renderStyles(e3, c3, n3, s2);
6557
- }
6558
- }
6559
6676
  return t2.memo(i2);
6560
6677
  }
6561
- var Ct;
6562
- var Ot = class {
6678
+ var Wt;
6679
+ var Bt = p ? /* @__PURE__ */ new WeakMap() : null;
6680
+ var Lt = class {
6563
6681
  constructor(e2, t3) {
6564
- this[Ct] = true, this.inject = (e3, t4 = Ke) => {
6565
- const n2 = this.getName(t4);
6566
- if (!e3.hasNameForId(this.id, n2)) {
6567
- const o = t4(this.rules, n2, "@keyframes");
6568
- e3.insertRules(this.id, n2, o);
6569
- }
6570
- }, this.name = e2, this.id = m + e2, this.rules = t3, C(this.id), de(this, () => {
6571
- throw v(12, String(this.name));
6682
+ this[Wt] = true, this.inject = (e3, t4 = lt) => {
6683
+ var n2;
6684
+ const o = this.getName(t4);
6685
+ if (!e3.hasNameForId(this.id, o)) {
6686
+ const s = t4.hash || "", r2 = p ? null === (n2 = null == Bt ? void 0 : Bt.get(this)) || void 0 === n2 ? void 0 : n2.get(s) : void 0;
6687
+ if (r2) e3.insertRules(this.id, o, r2);
6688
+ else {
6689
+ const n3 = t4(this.rules, o, "@keyframes");
6690
+ if (p && Bt) {
6691
+ let e4 = Bt.get(this);
6692
+ e4 || (e4 = /* @__PURE__ */ new Map(), Bt.set(this, e4)), e4.set(s, n3);
6693
+ }
6694
+ e3.insertRules(this.id, o, n3);
6695
+ }
6696
+ }
6697
+ }, this.name = e2, this.id = g + e2, this.rules = t3, P(this.id), ge(this, () => {
6698
+ throw S(12, String(this.name));
6572
6699
  });
6573
6700
  }
6574
- getName(e2 = Ke) {
6701
+ getName(e2 = lt) {
6575
6702
  return e2.hash ? this.name + V(+e2.hash >>> 0) : this.name;
6576
6703
  }
6577
6704
  };
6578
- function Et(e2, ...t3) {
6705
+ function qt(e2, ...t3) {
6579
6706
  "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.");
6580
- const n2 = le(ft(e2, ...t3)), o = z(n2);
6581
- return new Ot(o, n2);
6707
+ const n2 = ue(Rt(e2, ...t3)), o = W(n2);
6708
+ return new Lt(o, n2);
6582
6709
  }
6583
- Ct = Te;
6710
+ Wt = Ge;
6584
6711
  "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://styled-components.com/docs/basics#react-native");
6585
- var It = `__sc-${c}__`;
6586
- "undefined" != typeof window && (window[It] || (window[It] = 0), 1 === window[It] && 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[It] += 1);
6587
- var Rt = `:not(style[${c}])`;
6588
- var jt = `style[${c}]`;
6712
+ var Xt = `__sc-${l}__`;
6713
+ "undefined" != typeof window && (window[Xt] || (window[Xt] = 0), 1 === window[Xt] && 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[Xt] += 1);
6714
+ var Kt = `:not(style[${l}])`;
6715
+ var Qt = `style[${l}]`;
6589
6716
 
6590
6717
  // node_modules/@schematichq/schematic-icons/dist/types.js
6591
6718
  var iconsList = {
@@ -6725,7 +6852,7 @@ var FONT_FACE_RULE = `@font-face {
6725
6852
  }`;
6726
6853
 
6727
6854
  // node_modules/@schematichq/schematic-icons/dist/components/Icon/styles.js
6728
- var IconStyles = St`
6855
+ var IconStyles = Vt`
6729
6856
  ${FONT_FACE_RULE};
6730
6857
 
6731
6858
  .icon {
@@ -6742,7 +6869,7 @@ var IconStyles = St`
6742
6869
  }
6743
6870
  }
6744
6871
  `;
6745
- var StyledIcon = gt.i`
6872
+ var StyledIcon = Tt.i`
6746
6873
  &:before {
6747
6874
  content: "\\${(props) => iconsList[props.$name].toString(16).padStart(4, "0")}";
6748
6875
  }
@@ -7509,7 +7636,9 @@ function BillingLinkedResourceResponseDataFromJSONTyped(json, ignoreDiscriminato
7509
7636
  // src/api/checkoutexternal/models/BillingPlanCreditGrantResetCadence.ts
7510
7637
  var BillingPlanCreditGrantResetCadence = {
7511
7638
  Daily: "daily",
7639
+ Every6Months: "every_6_months",
7512
7640
  Monthly: "monthly",
7641
+ Quarterly: "quarterly",
7513
7642
  Weekly: "weekly",
7514
7643
  Yearly: "yearly"
7515
7644
  };
@@ -8710,6 +8839,21 @@ function EntitlementPriceBehaviorFromJSONTyped(json, ignoreDiscriminator) {
8710
8839
  return json;
8711
8840
  }
8712
8841
 
8842
+ // src/api/checkoutexternal/models/WarningTierResponseData.ts
8843
+ function WarningTierResponseDataFromJSON(json) {
8844
+ return WarningTierResponseDataFromJSONTyped(json, false);
8845
+ }
8846
+ function WarningTierResponseDataFromJSONTyped(json, ignoreDiscriminator) {
8847
+ if (json == null) {
8848
+ return json;
8849
+ }
8850
+ return {
8851
+ id: json["id"],
8852
+ key: json["key"],
8853
+ value: json["value"]
8854
+ };
8855
+ }
8856
+
8713
8857
  // src/api/checkoutexternal/models/PlanIcon.ts
8714
8858
  function PlanIconFromJSON(json) {
8715
8859
  return PlanIconFromJSONTyped(json, false);
@@ -8789,7 +8933,10 @@ function PlanEntitlementResponseDataFromJSONTyped(json, ignoreDiscriminator) {
8789
8933
  valueNumeric: json["value_numeric"] == null ? void 0 : json["value_numeric"],
8790
8934
  valueTrait: json["value_trait"] == null ? void 0 : EntityTraitDefinitionResponseDataFromJSON(json["value_trait"]),
8791
8935
  valueTraitId: json["value_trait_id"] == null ? void 0 : json["value_trait_id"],
8792
- valueType: EntitlementValueTypeFromJSON(json["value_type"])
8936
+ valueType: EntitlementValueTypeFromJSON(json["value_type"]),
8937
+ warningTiers: json["warning_tiers"].map(
8938
+ WarningTierResponseDataFromJSON
8939
+ )
8793
8940
  };
8794
8941
  }
8795
8942
 
@@ -11499,6 +11646,21 @@ function GenericPreviewObjectFromJSONTyped5(json, ignoreDiscriminator) {
11499
11646
  };
11500
11647
  }
11501
11648
 
11649
+ // src/api/componentspublic/models/WarningTierResponseData.ts
11650
+ function WarningTierResponseDataFromJSON2(json) {
11651
+ return WarningTierResponseDataFromJSONTyped3(json, false);
11652
+ }
11653
+ function WarningTierResponseDataFromJSONTyped3(json, ignoreDiscriminator) {
11654
+ if (json == null) {
11655
+ return json;
11656
+ }
11657
+ return {
11658
+ id: json["id"],
11659
+ key: json["key"],
11660
+ value: json["value"]
11661
+ };
11662
+ }
11663
+
11502
11664
  // src/api/componentspublic/models/PlanIcon.ts
11503
11665
  function PlanIconFromJSON2(json) {
11504
11666
  return PlanIconFromJSONTyped7(json, false);
@@ -11578,7 +11740,10 @@ function PlanEntitlementResponseDataFromJSONTyped6(json, ignoreDiscriminator) {
11578
11740
  valueNumeric: json["value_numeric"] == null ? void 0 : json["value_numeric"],
11579
11741
  valueTrait: json["value_trait"] == null ? void 0 : EntityTraitDefinitionResponseDataFromJSON2(json["value_trait"]),
11580
11742
  valueTraitId: json["value_trait_id"] == null ? void 0 : json["value_trait_id"],
11581
- valueType: EntitlementValueTypeFromJSON2(json["value_type"])
11743
+ valueType: EntitlementValueTypeFromJSON2(json["value_type"]),
11744
+ warningTiers: json["warning_tiers"].map(
11745
+ WarningTierResponseDataFromJSON2
11746
+ )
11582
11747
  };
11583
11748
  }
11584
11749
 
@@ -13022,8 +13187,13 @@ var ZERO_DECIMAL_CURRENCIES = /* @__PURE__ */ new Set([
13022
13187
  function camelToHyphen(str) {
13023
13188
  return str.replace(/([a-z][A-Z])/g, (g2) => `${g2[0]}-${g2[1].toLowerCase()}`);
13024
13189
  }
13025
- function formatNumber(num) {
13026
- return new Intl.NumberFormat("en-US").format(num);
13190
+ function formatNumber(num, options) {
13191
+ return new Intl.NumberFormat("en-US", options).format(num);
13192
+ }
13193
+ function formatConsumptionRate(rate) {
13194
+ return formatNumber(rate, {
13195
+ maximumFractionDigits: MAXIMUM_FRACTION_DIGITS
13196
+ });
13027
13197
  }
13028
13198
  function formatCurrency(amount, options) {
13029
13199
  let currency = DEFAULT_CURRENCY;
@@ -13146,7 +13316,7 @@ function getCurrencySymbol(currency) {
13146
13316
  // src/utils/style.ts
13147
13317
  function attr(key, value) {
13148
13318
  if (typeof value !== "undefined") {
13149
- return ft`
13319
+ return Rt`
13150
13320
  ${key}: ${value};
13151
13321
  `;
13152
13322
  }
@@ -13362,6 +13532,7 @@ var reducer = (state, action) => {
13362
13532
  ...config.payInAdvanceQuantities && {
13363
13533
  payInAdvanceQuantities: config.payInAdvanceQuantities
13364
13534
  },
13535
+ ...config.promoCode && { promoCode: config.promoCode },
13365
13536
  ...config.currency && {
13366
13537
  selectedCurrency: config.currency.toUpperCase()
13367
13538
  },
@@ -13397,7 +13568,7 @@ var reducer = (state, action) => {
13397
13568
  // src/context/EmbedProvider.tsx
13398
13569
  import { jsx as jsx2, jsxs } from "react/jsx-runtime";
13399
13570
  var getCustomHeaders = (sessionId) => ({
13400
- "X-Schematic-Components-Version": "2.18.0",
13571
+ "X-Schematic-Components-Version": "2.19.0",
13401
13572
  "X-Schematic-Session-ID": sessionId
13402
13573
  });
13403
13574
  var normalizeCurrencyFilter = (filter2) => {
@@ -13764,6 +13935,17 @@ var EmbedProvider = ({
13764
13935
  const initializeWithPlan = useCallback2((config) => {
13765
13936
  dispatch({ type: "SET_PLANID_BYPASS", config });
13766
13937
  }, []);
13938
+ const requestUnsubscribe = useCallback2(() => {
13939
+ const subscription = state.data?.subscription;
13940
+ const hasActiveSubscription = subscription && subscription.status !== "cancelled" && !subscription.cancelAt;
13941
+ if (!hasActiveSubscription) {
13942
+ console.warn(
13943
+ "[Schematic] `requestUnsubscribe` was called, but there is no active subscription to cancel; ignoring."
13944
+ );
13945
+ return;
13946
+ }
13947
+ dispatch({ type: "CHANGE_LAYOUT", layout: "unsubscribe" });
13948
+ }, [state.data?.subscription]);
13767
13949
  useEffect2(() => {
13768
13950
  const element = document.getElementById(
13769
13951
  "schematic-fonts"
@@ -13875,11 +14057,12 @@ var EmbedProvider = ({
13875
14057
  setCheckoutState,
13876
14058
  clearCheckoutState,
13877
14059
  initializeWithPlan,
14060
+ requestUnsubscribe,
13878
14061
  setData,
13879
14062
  updateSettings,
13880
14063
  debug
13881
14064
  },
13882
- children: /* @__PURE__ */ jsxs(rt, { theme: state.settings.theme, children: [
14065
+ children: /* @__PURE__ */ jsxs(bt, { theme: state.settings.theme, children: [
13883
14066
  /* @__PURE__ */ jsx2(IconStyles, {}),
13884
14067
  children
13885
14068
  ] })
@@ -14254,7 +14437,7 @@ function useWrapChildren(ref) {
14254
14437
  }
14255
14438
 
14256
14439
  // src/components/ui/box/styles.ts
14257
- var Box = gt("div")((props) => {
14440
+ var Box = Tt("div")((props) => {
14258
14441
  function reducer2(acc, [key, value]) {
14259
14442
  if (key.startsWith("$") && !["$viewport"].includes(key)) {
14260
14443
  acc.push(
@@ -14265,14 +14448,14 @@ var Box = gt("div")((props) => {
14265
14448
  return acc;
14266
14449
  }
14267
14450
  const styles = Object.entries(props).reduce(reducer2, [
14268
- ft`
14451
+ Rt`
14269
14452
  &:focus-visible {
14270
14453
  outline: 2px solid ${({ theme }) => theme.primary};
14271
14454
  }
14272
14455
  `
14273
14456
  ]);
14274
14457
  for (const [key, value] of Object.entries(props.$viewport || {})) {
14275
- styles.push(ft`
14458
+ styles.push(Rt`
14276
14459
  ${{
14277
14460
  "xs": "@container (min-width: 375px)",
14278
14461
  "sm": "@container (min-width: 640px)",
@@ -14287,11 +14470,11 @@ var Box = gt("div")((props) => {
14287
14470
  }
14288
14471
  return styles;
14289
14472
  });
14290
- var TransitionBox = gt(Box)`
14473
+ var TransitionBox = Tt(Box)`
14291
14474
  ${({ $isExpanded = true }) => {
14292
- return $isExpanded ? ft`
14475
+ return $isExpanded ? Rt`
14293
14476
  height: auto;
14294
- ` : ft`
14477
+ ` : Rt`
14295
14478
  height: 0;
14296
14479
  overflow: hidden;
14297
14480
  `;
@@ -14308,7 +14491,7 @@ var TransitionBox = gt(Box)`
14308
14491
  `;
14309
14492
 
14310
14493
  // src/components/ui/icon/styles.ts
14311
- var Icon2 = gt(Icon).attrs(({ name, title, onClick }) => ({
14494
+ var Icon2 = Tt(Icon).attrs(({ name, title, onClick }) => ({
14312
14495
  title: title || name,
14313
14496
  ...onClick && { tabIndex: 0 }
14314
14497
  }))`
@@ -14318,7 +14501,7 @@ var Icon2 = gt(Icon).attrs(({ name, title, onClick }) => ({
14318
14501
  flex-shrink: 0;
14319
14502
  transition: 0.1s;
14320
14503
 
14321
- ${({ onClick }) => onClick && ft`
14504
+ ${({ onClick }) => onClick && Rt`
14322
14505
  &:hover {
14323
14506
  cursor: pointer;
14324
14507
  }
@@ -14329,7 +14512,7 @@ var Icon2 = gt(Icon).attrs(({ name, title, onClick }) => ({
14329
14512
  outline-offset: 2px;
14330
14513
  }
14331
14514
 
14332
- ${({ $rounded }) => $rounded && ft`
14515
+ ${({ $rounded }) => $rounded && Rt`
14333
14516
  border-radius: 9999px;
14334
14517
  `}
14335
14518
 
@@ -14360,10 +14543,10 @@ var Icon2 = gt(Icon).attrs(({ name, title, onClick }) => ({
14360
14543
  scale *= 3;
14361
14544
  break;
14362
14545
  }
14363
- return ft`
14546
+ return Rt`
14364
14547
  font-size: ${base * scale / TEXT_BASE_SIZE}rem;
14365
14548
 
14366
- ${$rounded && ft`
14549
+ ${$rounded && Rt`
14367
14550
  width: ${base * (11 / 6) * scale / TEXT_BASE_SIZE}rem;
14368
14551
  height: ${base * (11 / 6) * scale / TEXT_BASE_SIZE}rem;
14369
14552
  `}
@@ -14371,10 +14554,10 @@ var Icon2 = gt(Icon).attrs(({ name, title, onClick }) => ({
14371
14554
  }}
14372
14555
 
14373
14556
  ${({ $variant, $color, $background }) => {
14374
- return $variant === "outline" ? ft`
14557
+ return $variant === "outline" ? Rt`
14375
14558
  color: ${$color};
14376
14559
  background-color: transparent;
14377
- ` : ft`
14560
+ ` : Rt`
14378
14561
  color: ${$color};
14379
14562
  background-color: ${$background};
14380
14563
  `;
@@ -14382,7 +14565,7 @@ var Icon2 = gt(Icon).attrs(({ name, title, onClick }) => ({
14382
14565
  `;
14383
14566
 
14384
14567
  // src/components/ui/loader/styles.ts
14385
- var spin = Et`
14568
+ var spin = qt`
14386
14569
  0% {
14387
14570
  transform: rotate(0deg);
14388
14571
  }
@@ -14395,7 +14578,7 @@ var loaderStyles = ({
14395
14578
  $color,
14396
14579
  $size = "md",
14397
14580
  $isLoading = true
14398
- }) => ft(({ theme }) => {
14581
+ }) => Rt(({ theme }) => {
14399
14582
  const { l: l2 } = hexToHSL(theme.card.background);
14400
14583
  let color = $color ?? theme.primary;
14401
14584
  let colorFn;
@@ -14431,14 +14614,14 @@ var loaderStyles = ({
14431
14614
  px = 64;
14432
14615
  break;
14433
14616
  }
14434
- return ft`
14617
+ return Rt`
14435
14618
  display: inline-block;
14436
14619
  width: ${($isLoading ? px : 0) / TEXT_BASE_SIZE}rem;
14437
14620
  height: ${($isLoading ? px : 0) / TEXT_BASE_SIZE}rem;
14438
14621
  border-width: ${($isLoading ? px : 0) / 16 / TEXT_BASE_SIZE}rem;
14439
- ${$isLoading ? ft`
14622
+ ${$isLoading ? Rt`
14440
14623
  animation: 1.5s linear infinite ${spin};
14441
- ` : ft`
14624
+ ` : Rt`
14442
14625
  transform: scale(0);
14443
14626
  `}
14444
14627
  border-style: solid;
@@ -14449,12 +14632,12 @@ var loaderStyles = ({
14449
14632
  animation: 1.5s linear infinite ${spin};
14450
14633
  `;
14451
14634
  });
14452
- var Loader = gt.div((props) => {
14635
+ var Loader = Tt.div((props) => {
14453
14636
  return loaderStyles(props);
14454
14637
  });
14455
14638
 
14456
14639
  // src/components/ui/button/styles.ts
14457
- var Button = gt.button(
14640
+ var Button = Tt.button(
14458
14641
  ({
14459
14642
  theme,
14460
14643
  disabled = false,
@@ -14466,7 +14649,7 @@ var Button = gt.button(
14466
14649
  $alignment = "center",
14467
14650
  $selfAlignment
14468
14651
  }) => {
14469
- return ft`
14652
+ return Rt`
14470
14653
  appearance: none;
14471
14654
  font-family: "Public Sans", sans-serif;
14472
14655
  font-weight: 500;
@@ -14474,7 +14657,7 @@ var Button = gt.button(
14474
14657
  display: flex;
14475
14658
  justify-content: ${$alignment};
14476
14659
  align-items: center;
14477
- ${() => $selfAlignment && ft`
14660
+ ${() => $selfAlignment && Rt`
14478
14661
  align-self: ${$selfAlignment};
14479
14662
  `}
14480
14663
  width: ${$fullWidth ? "100%" : "fit-content"};
@@ -14484,21 +14667,21 @@ var Button = gt.button(
14484
14667
  ${function sizeStyles() {
14485
14668
  switch ($size) {
14486
14669
  case "sm":
14487
- return ft`
14670
+ return Rt`
14488
14671
  font-size: ${15 / TEXT_BASE_SIZE}rem;
14489
14672
  height: ${40 / TEXT_BASE_SIZE}rem;
14490
14673
  padding: ${7 / TEXT_BASE_SIZE}rem ${20 / TEXT_BASE_SIZE}rem;
14491
14674
  border-radius: ${6 / TEXT_BASE_SIZE}rem;
14492
14675
  `;
14493
14676
  case "md":
14494
- return ft`
14677
+ return Rt`
14495
14678
  font-size: ${17 / TEXT_BASE_SIZE}rem;
14496
14679
  height: ${52 / TEXT_BASE_SIZE}rem;
14497
14680
  padding: ${8 / TEXT_BASE_SIZE}rem ${24 / TEXT_BASE_SIZE}rem;
14498
14681
  border-radius: ${8 / TEXT_BASE_SIZE}rem;
14499
14682
  `;
14500
14683
  case "lg":
14501
- return ft`
14684
+ return Rt`
14502
14685
  font-size: ${19 / TEXT_BASE_SIZE}rem;
14503
14686
  height: ${64 / TEXT_BASE_SIZE}rem;
14504
14687
  padding: ${9 / TEXT_BASE_SIZE}rem ${28 / TEXT_BASE_SIZE}rem;
@@ -14513,7 +14696,7 @@ var Button = gt.button(
14513
14696
  if (disabled) {
14514
14697
  color = l2 > 50 ? lighten(color, 0.625) : darken(color, 0.375);
14515
14698
  }
14516
- return ft`
14699
+ return Rt`
14517
14700
  color: ${color};
14518
14701
 
14519
14702
  ${Text}, ${Icon2} {
@@ -14530,7 +14713,7 @@ var Button = gt.button(
14530
14713
  color = l2 > 50 ? darken(color, 0.075) : lighten(color, 0.15);
14531
14714
  }
14532
14715
  if ($variant === "outline") {
14533
- return ft`
14716
+ return Rt`
14534
14717
  color: ${color};
14535
14718
  background-color: transparent;
14536
14719
  border-color: ${color};
@@ -14541,7 +14724,7 @@ var Button = gt.button(
14541
14724
  `;
14542
14725
  }
14543
14726
  if ($variant === "ghost") {
14544
- return ft`
14727
+ return Rt`
14545
14728
  color: ${color};
14546
14729
  background-color: transparent;
14547
14730
  border-color: ${l2 > 50 ? darken(theme.card.background, 0.2) : lighten(theme.card.background, 0.2)};
@@ -14552,7 +14735,7 @@ var Button = gt.button(
14552
14735
  `;
14553
14736
  }
14554
14737
  if ($variant === "text") {
14555
- return ft`
14738
+ return Rt`
14556
14739
  color: ${color};
14557
14740
  background-color: transparent;
14558
14741
  border-color: transparent;
@@ -14562,7 +14745,7 @@ var Button = gt.button(
14562
14745
  }
14563
14746
  `;
14564
14747
  }
14565
- return ft`
14748
+ return Rt`
14566
14749
  background-color: ${color};
14567
14750
  border-color: ${color};
14568
14751
  `;
@@ -14580,7 +14763,7 @@ var Button = gt.button(
14580
14763
  &::before {
14581
14764
  content: "";
14582
14765
  ${loaderStyles({ $color: theme[$color], $size, $isLoading })}
14583
- ${$isLoading && ft`
14766
+ ${$isLoading && Rt`
14584
14767
  margin-right: 0.5rem;
14585
14768
  `}
14586
14769
  }
@@ -14598,13 +14781,13 @@ var Button = gt.button(
14598
14781
  const lightened = lighten(specified, 0.15);
14599
14782
  const bgColor = specified === lightened ? darken(specified, 0.15) : lightened;
14600
14783
  if ($variant === "filled") {
14601
- return ft`
14784
+ return Rt`
14602
14785
  background-color: ${bgColor};
14603
14786
  border-color: ${bgColor};
14604
14787
  `;
14605
14788
  }
14606
14789
  if ($variant === "outline") {
14607
- return ft`
14790
+ return Rt`
14608
14791
  color: ${color};
14609
14792
  background-color: ${bgColor};
14610
14793
  border-color: ${bgColor};
@@ -14616,14 +14799,14 @@ var Button = gt.button(
14616
14799
  }
14617
14800
  if ($variant === "ghost") {
14618
14801
  const { l: l3 } = hexToHSL(theme.card.background);
14619
- return ft`
14802
+ return Rt`
14620
14803
  border-color: ${l3 > 50 ? darken(theme.card.background, 0.125) : lighten(theme.card.background, 0.125)};
14621
14804
  box-shadow: 0 1px 2px
14622
14805
  ${l3 > 50 ? darken(theme.card.background, 0.075) : lighten(theme.card.background, 0.075)};
14623
14806
  `;
14624
14807
  }
14625
14808
  if ($variant === "text") {
14626
- return ft`
14809
+ return Rt`
14627
14810
  text-decoration: underline;
14628
14811
  `;
14629
14812
  }
@@ -14634,7 +14817,7 @@ var Button = gt.button(
14634
14817
  );
14635
14818
 
14636
14819
  // src/components/ui/checkbox/styles.ts
14637
- var Checkbox = gt.input.attrs({ type: "checkbox" })`
14820
+ var Checkbox = Tt.input.attrs({ type: "checkbox" })`
14638
14821
  appearance: none;
14639
14822
  flex-shrink: 0;
14640
14823
  margin: 0;
@@ -14692,14 +14875,14 @@ import {
14692
14875
  } from "react";
14693
14876
 
14694
14877
  // src/components/ui/dialog/styles.ts
14695
- var DialogContent = gt.div`
14878
+ var DialogContent = Tt.div`
14696
14879
  position: relative;
14697
14880
  display: flex;
14698
14881
  flex-direction: column;
14699
14882
  `;
14700
- var Dialog = gt.dialog(
14883
+ var Dialog = Tt.dialog(
14701
14884
  ({ theme, $isModal, $size, $top }) => {
14702
- return ft`
14885
+ return Rt`
14703
14886
  ${ResetStyle}
14704
14887
  ${$isModal && ContainerStyle}
14705
14888
 
@@ -14741,7 +14924,7 @@ var Dialog = gt.dialog(
14741
14924
  flex-direction: row;
14742
14925
  max-height: calc(100dvh - 5rem + 3px);
14743
14926
 
14744
- ${$size === "lg" && ft`
14927
+ ${$size === "lg" && Rt`
14745
14928
  height: calc(100% - 5rem + 3px);
14746
14929
  `}
14747
14930
  }
@@ -14878,7 +15061,7 @@ var DialogHeader = ({
14878
15061
  };
14879
15062
 
14880
15063
  // src/components/ui/flex/styles.ts
14881
- var Flex = gt(Box)`
15064
+ var Flex = Tt(Box)`
14882
15065
  display: flex;
14883
15066
  `;
14884
15067
 
@@ -14912,9 +15095,9 @@ var Icon3 = ({
14912
15095
  };
14913
15096
 
14914
15097
  // src/components/ui/input/styles.ts
14915
- var Input = gt.input(({ theme, $size = "md", $variant = "filled" }) => {
15098
+ var Input = Tt.input(({ theme, $size = "md", $variant = "filled" }) => {
14916
15099
  const isLightBackground = isLightColor(theme.card.background);
14917
- return ft`
15100
+ return Rt`
14918
15101
  font-family: "Inter", sans-serif;
14919
15102
  font-weight: 500;
14920
15103
  width: 100%;
@@ -14934,14 +15117,14 @@ var Input = gt.input(({ theme, $size = "md", $variant = "filled" }) => {
14934
15117
  ${() => {
14935
15118
  switch ($size) {
14936
15119
  case "sm": {
14937
- return ft`
15120
+ return Rt`
14938
15121
  font-size: 0.875rem;
14939
15122
  line-height: 1.5rem;
14940
15123
  height: 1.5rem;
14941
15124
  `;
14942
15125
  }
14943
15126
  case "md": {
14944
- return ft`
15127
+ return Rt`
14945
15128
  font-size: 1rem;
14946
15129
  line-height: 3rem;
14947
15130
  height: 3rem;
@@ -14949,7 +15132,7 @@ var Input = gt.input(({ theme, $size = "md", $variant = "filled" }) => {
14949
15132
  `;
14950
15133
  }
14951
15134
  case "lg": {
14952
- return ft`
15135
+ return Rt`
14953
15136
  font-size: 1.25rem;
14954
15137
  line-height: 4rem;
14955
15138
  height: 4rem;
@@ -14957,7 +15140,7 @@ var Input = gt.input(({ theme, $size = "md", $variant = "filled" }) => {
14957
15140
  `;
14958
15141
  }
14959
15142
  case "full": {
14960
- return ft`
15143
+ return Rt`
14961
15144
  font-size: 1rem;
14962
15145
  line-height: 1;
14963
15146
  height: 100%;
@@ -14971,7 +15154,7 @@ var Input = gt.input(({ theme, $size = "md", $variant = "filled" }) => {
14971
15154
  const color = $variant !== "filled" && !isLightBackground ? theme.typography.text.color : "#000000";
14972
15155
  const bgColor = $variant === "filled" ? "#F1F1F1" : "transparent";
14973
15156
  const borderColor = $variant === "text" ? "transparent" : "#CBCBCB";
14974
- return ft`
15157
+ return Rt`
14975
15158
  color: ${color};
14976
15159
  background-color: ${bgColor};
14977
15160
  border-color: ${borderColor};
@@ -14997,8 +15180,8 @@ var Input = gt.input(({ theme, $size = "md", $variant = "filled" }) => {
14997
15180
  });
14998
15181
 
14999
15182
  // src/components/ui/overlay/styles.ts
15000
- var Overlay = gt(Flex)(({ theme }) => {
15001
- return ft`
15183
+ var Overlay = Tt(Flex)(({ theme }) => {
15184
+ return Rt`
15002
15185
  position: absolute;
15003
15186
  top: 0;
15004
15187
  right: 0;
@@ -15078,9 +15261,13 @@ var ProgressBar = forwardRef3(
15078
15261
  }
15079
15262
  ),
15080
15263
  total > 0 && /* @__PURE__ */ jsxs3(Text, { $size: 14, $weight: 500, children: [
15081
- formatNumber(value),
15264
+ formatNumber(value, {
15265
+ maximumFractionDigits: MAXIMUM_FRACTION_DIGITS
15266
+ }),
15082
15267
  "/",
15083
- formatNumber(total)
15268
+ formatNumber(total, {
15269
+ maximumFractionDigits: MAXIMUM_FRACTION_DIGITS
15270
+ })
15084
15271
  ] })
15085
15272
  ]
15086
15273
  }
@@ -15116,7 +15303,7 @@ var LeadingLineHeightMap = {
15116
15303
  relaxed: 1.625,
15117
15304
  loose: 2
15118
15305
  };
15119
- var Text = gt.span.withConfig({
15306
+ var Text = Tt.span.withConfig({
15120
15307
  shouldForwardProp: (prop) => prop !== "display"
15121
15308
  }).attrs(({ onClick }) => ({
15122
15309
  ...onClick && { tabIndex: 0 }
@@ -15140,7 +15327,7 @@ var Text = gt.span.withConfig({
15140
15327
  const fontWeight = $weight || fontStyle.fontWeight;
15141
15328
  const lineHeight = $leading && LeadingLineHeightMap[$leading];
15142
15329
  const color = $color || fontStyle.color;
15143
- return ft`
15330
+ return Rt`
15144
15331
  font-family: ${fontFamily}, sans-serif;
15145
15332
  font-size: ${typeof fontSize === "number" ? `${fontSize / TEXT_BASE_SIZE}rem` : fontSize};
15146
15333
  font-weight: ${fontWeight};
@@ -15148,19 +15335,19 @@ var Text = gt.span.withConfig({
15148
15335
  color: ${color};
15149
15336
  text-wrap: pretty;
15150
15337
 
15151
- ${lineHeight && ft`
15338
+ ${lineHeight && Rt`
15152
15339
  line-height: ${lineHeight};
15153
15340
  `}
15154
15341
 
15155
- ${$align && ft`
15342
+ ${$align && Rt`
15156
15343
  text-align: ${$align};
15157
15344
  `};
15158
15345
 
15159
- ${$width && ft`
15346
+ ${$width && Rt`
15160
15347
  width: ${$width};
15161
15348
  `};
15162
15349
 
15163
- ${(onClick || as === "a" || display === "link") && ft`
15350
+ ${(onClick || as === "a" || display === "link") && Rt`
15164
15351
  &:hover {
15165
15352
  cursor: pointer;
15166
15353
  text-decoration: underline;
@@ -15176,7 +15363,7 @@ var Text = gt.span.withConfig({
15176
15363
  );
15177
15364
 
15178
15365
  // src/components/ui/toggle/styles.ts
15179
- var Toggle = gt.input.attrs({ type: "checkbox" })`
15366
+ var Toggle = Tt.input.attrs({ type: "checkbox" })`
15180
15367
  appearance: none;
15181
15368
  font: inherit;
15182
15369
  font-size: inherit;
@@ -15297,7 +15484,7 @@ var origin = (position2) => {
15297
15484
  return o;
15298
15485
  };
15299
15486
  var grow = (translate) => {
15300
- return Et`
15487
+ return qt`
15301
15488
  0% {
15302
15489
  opacity: 0;
15303
15490
  transform: translate(${translate.x}%, ${translate.y}%) scale(0);
@@ -15309,13 +15496,13 @@ var grow = (translate) => {
15309
15496
  }
15310
15497
  `;
15311
15498
  };
15312
- var Content = gt.div.withConfig({
15499
+ var Content = Tt.div.withConfig({
15313
15500
  shouldForwardProp: (prop) => !["x", "y", "position", "zIndex"].includes(prop)
15314
15501
  })(({ x: x2, y: y2, position: position2, theme }) => {
15315
15502
  const translate = coords(position2);
15316
15503
  const arrowTranslate = arrowCoords(position2);
15317
15504
  const transformOrigin = origin(position2);
15318
- return ft`
15505
+ return Rt`
15319
15506
  position: absolute;
15320
15507
  top: calc(
15321
15508
  ${y2}px - ${position2 === "top" ? 0.5 : position2 === "bottom" ? -0.5 : 0}rem
@@ -15355,16 +15542,16 @@ var Content = gt.div.withConfig({
15355
15542
  &::after {
15356
15543
  position: absolute;
15357
15544
  z-index: 0;
15358
- ${position2 === "top" ? ft`
15545
+ ${position2 === "top" ? Rt`
15359
15546
  top: 100%;
15360
15547
  left: 50%;
15361
- ` : position2 === "right" ? ft`
15548
+ ` : position2 === "right" ? Rt`
15362
15549
  top: 50%;
15363
15550
  right: 100%;
15364
- ` : position2 === "bottom" ? ft`
15551
+ ` : position2 === "bottom" ? Rt`
15365
15552
  bottom: 100%;
15366
15553
  left: 50%;
15367
- ` : ft`
15554
+ ` : Rt`
15368
15555
  top: 50%;
15369
15556
  left: 100%;
15370
15557
  `};
@@ -15447,15 +15634,15 @@ var Tooltip = ({
15447
15634
  };
15448
15635
 
15449
15636
  // src/components/layout/card/styles.ts
15450
- var Element = gt(Box)``;
15451
- var FussyChild = gt(Element)``;
15452
- var Notice = gt(Box)``;
15637
+ var Element = Tt(Box)``;
15638
+ var FussyChild = Tt(Element)``;
15639
+ var Notice = Tt(Box)``;
15453
15640
  var cardBoxShadow = "0px 1px 20px 0px #1018280F, 0px 1px 3px 0px #1018281A";
15454
- var StyledCard = gt.div(({ theme }) => {
15641
+ var StyledCard = Tt.div(({ theme }) => {
15455
15642
  const { l: l2 } = hexToHSL(theme.card.background);
15456
15643
  const borderColor = l2 > 50 ? "hsla(0, 0%, 0%, 0.1)" : "hsla(0, 0%, 100%, 0.2)";
15457
15644
  const borderRadius = `${theme.card.borderRadius / TEXT_BASE_SIZE}rem`;
15458
- return ft`
15645
+ return Rt`
15459
15646
  position: relative;
15460
15647
 
15461
15648
  ${theme.sectionLayout === "merged" ? `&:not(:has(${FussyChild}))` : `${Element}:not(:is(${FussyChild}))`} {
@@ -15470,9 +15657,9 @@ var StyledCard = gt.div(({ theme }) => {
15470
15657
  ${theme.card.padding / TEXT_BASE_SIZE}rem;
15471
15658
 
15472
15659
  &:not(:last-child) {
15473
- ${theme.sectionLayout === "merged" ? ft`
15660
+ ${theme.sectionLayout === "merged" ? Rt`
15474
15661
  border-bottom: 1px solid ${borderColor};
15475
- ` : ft`
15662
+ ` : Rt`
15476
15663
  margin-bottom: 1rem;
15477
15664
  `}
15478
15665
  }
@@ -15518,7 +15705,7 @@ Card.displayName = "Card";
15518
15705
  import { Children as Children2, forwardRef as forwardRef5 } from "react";
15519
15706
 
15520
15707
  // src/components/layout/column/styles.ts
15521
- var StyledColumn = gt.div`
15708
+ var StyledColumn = Tt.div`
15522
15709
  height: min-content;
15523
15710
  `;
15524
15711
 
@@ -15535,7 +15722,7 @@ Column.displayName = "Column";
15535
15722
  import { forwardRef as forwardRef6 } from "react";
15536
15723
 
15537
15724
  // src/components/layout/root/styles.ts
15538
- var ResetStyle = ft`
15725
+ var ResetStyle = Rt`
15539
15726
  box-sizing: border-box;
15540
15727
  font-size: 1rem;
15541
15728
  line-height: 1.375;
@@ -15560,11 +15747,11 @@ var ResetStyle = ft`
15560
15747
  vertical-align: top;
15561
15748
  }
15562
15749
  `;
15563
- var ContainerStyle = ft`
15750
+ var ContainerStyle = Rt`
15564
15751
  container-type: inline-size;
15565
15752
  interpolate-size: allow-keywords;
15566
15753
  `;
15567
- var Container = gt.div`
15754
+ var Container = Tt.div`
15568
15755
  ${ResetStyle}
15569
15756
  ${ContainerStyle}
15570
15757
  `;
@@ -15857,7 +16044,7 @@ var Entitlement = ({
15857
16044
  }
15858
16045
  if (showCredits && entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && entitlement.valueCredit) {
15859
16046
  return /* @__PURE__ */ jsxs8(Fragment5, { children: [
15860
- entitlement.consumptionRate,
16047
+ typeof entitlement.consumptionRate === "number" ? formatConsumptionRate(entitlement.consumptionRate) : entitlement.consumptionRate,
15861
16048
  " ",
15862
16049
  getFeatureName(
15863
16050
  entitlement.valueCredit,
@@ -16957,7 +17144,7 @@ var Credits = ({ bundles, updateCount, currency }) => {
16957
17144
  import { useState as useState7 } from "react";
16958
17145
 
16959
17146
  // src/components/shared/payment-form/styles.ts
16960
- var Label = gt.label`
17147
+ var Label = Tt.label`
16961
17148
  display: flex;
16962
17149
  margin-bottom: 0.75rem;
16963
17150
  font-family: "Public Sans", system-ui, sans-serif;
@@ -16969,7 +17156,7 @@ var Label = gt.label`
16969
17156
  color: ${({ theme }) => isLightColor(theme.card.background) ? "#000000" : "#cdd6f4"};
16970
17157
  touch-action: manipulation;
16971
17158
  `;
16972
- var Input2 = gt.input`
17159
+ var Input2 = Tt.input`
16973
17160
  padding: 0.75rem;
16974
17161
  background-color: white;
16975
17162
  border-radius: 0.5rem;
@@ -17059,6 +17246,7 @@ var Checkout = ({
17059
17246
  optInAccepted,
17060
17247
  setOptInAccepted,
17061
17248
  setPaymentMethodId,
17249
+ promoCode,
17062
17250
  updatePromoCode,
17063
17251
  confirmPaymentIntentProps,
17064
17252
  financeData,
@@ -17066,7 +17254,7 @@ var Checkout = ({
17066
17254
  }) => {
17067
17255
  const { t: t3 } = useTranslation();
17068
17256
  const isLightBackground = useIsLightBackground();
17069
- const [discount, setDiscount] = useState7("");
17257
+ const [discount, setDiscount] = useState7(promoCode ?? "");
17070
17258
  const hasCustomFields = !!customCheckoutFields && customCheckoutFields.length > 0;
17071
17259
  if (!isPaymentMethodRequired && !hasCustomFields && !optInRequired) {
17072
17260
  return null;
@@ -17604,7 +17792,9 @@ var CheckoutDialog = ({ top }) => {
17604
17792
  ),
17605
17793
  [addOnUsageBasedEntitlements]
17606
17794
  );
17607
- const [promoCode, setPromoCode] = useState8(null);
17795
+ const [promoCode, setPromoCode] = useState8(
17796
+ () => checkoutState?.promoCode ?? null
17797
+ );
17608
17798
  const [customFieldValues, setCustomFieldValues] = useState8(() => {
17609
17799
  const values = {};
17610
17800
  for (const field of data?.customCheckoutFields ?? []) {
@@ -18571,6 +18761,7 @@ var CheckoutDialog = ({ top }) => {
18571
18761
  optInAccepted,
18572
18762
  setOptInAccepted,
18573
18763
  setPaymentMethodId: (id) => setPaymentMethodId(id),
18764
+ promoCode,
18574
18765
  updatePromoCode,
18575
18766
  confirmPaymentIntentProps,
18576
18767
  financeData: charges,
@@ -21474,7 +21665,7 @@ var RenderLayout = ({ children }) => {
21474
21665
  };
21475
21666
 
21476
21667
  // src/components/layout/viewport/styles.ts
21477
- var StyledViewport = gt.div.withConfig({
21668
+ var StyledViewport = Tt.div.withConfig({
21478
21669
  shouldForwardProp: (prop) => !["$numberOfColumns", "numberOfColumns"].includes(prop)
21479
21670
  })`
21480
21671
  display: grid;
@@ -21487,7 +21678,7 @@ var StyledViewport = gt.div.withConfig({
21487
21678
  }
21488
21679
 
21489
21680
  @container (min-width: 768px) {
21490
- grid-template-columns: ${({ theme }) => ft`repeat(${theme.numberOfColumns}, minmax(300px, 1fr))`};
21681
+ grid-template-columns: ${({ theme }) => Rt`repeat(${theme.numberOfColumns}, minmax(300px, 1fr))`};
21491
21682
  }
21492
21683
  `;
21493
21684
 
@@ -21677,7 +21868,7 @@ var UsageDetails = ({ entitlement, layout }) => {
21677
21868
  }
21678
21869
  if (showCredits && priceBehavior === EntitlementPriceBehavior.CreditBurndown && planEntitlement?.valueCredit && typeof planEntitlement?.consumptionRate === "number") {
21679
21870
  return t3("X units per use", {
21680
- amount: planEntitlement.consumptionRate,
21871
+ amount: formatConsumptionRate(planEntitlement.consumptionRate),
21681
21872
  units: getFeatureName(
21682
21873
  planEntitlement.valueCredit,
21683
21874
  planEntitlement.consumptionRate
@@ -22342,14 +22533,14 @@ var PriceDetails = ({
22342
22533
  };
22343
22534
 
22344
22535
  // src/components/elements/metered-features/styles.ts
22345
- var Container2 = gt.div`
22536
+ var Container2 = Tt.div`
22346
22537
  display: flex;
22347
22538
  flex-direction: column;
22348
22539
 
22349
22540
  &:last-child {
22350
22541
  ${({ theme }) => {
22351
22542
  const borderRadius = `${theme.card.borderRadius / TEXT_BASE_SIZE}rem`;
22352
- return theme.sectionLayout === "merged" && ft`
22543
+ return theme.sectionLayout === "merged" && Rt`
22353
22544
  overflow: hidden;
22354
22545
  border-bottom-left-radius: ${borderRadius};
22355
22546
  border-bottom-right-radius: ${borderRadius};
@@ -22382,7 +22573,9 @@ var Limit = ({ entitlement, usageDetails, fontStyle }) => {
22382
22573
  }) : priceBehavior === EntitlementPriceBehavior.Overage && typeof limit === "number" ? t3("X included", {
22383
22574
  amount: formatNumber(limit)
22384
22575
  }) : priceBehavior === EntitlementPriceBehavior.PayInAdvance && typeof usage === "number" ? `${formatNumber(usage)} ${t3("used")}` : priceBehavior === EntitlementPriceBehavior.PayAsYouGo && typeof cost === "number" ? formatCurrency(cost, billingPrice?.currency) : data?.displaySettings?.showCredits && priceBehavior === EntitlementPriceBehavior.CreditBurndown && typeof planEntitlement?.valueCredit !== "undefined" && typeof planEntitlement?.consumptionRate === "number" ? t3("X units per use", {
22385
- amount: planEntitlement.consumptionRate,
22576
+ amount: formatConsumptionRate(
22577
+ planEntitlement.consumptionRate
22578
+ ),
22386
22579
  units: getFeatureName(
22387
22580
  planEntitlement.valueCredit,
22388
22581
  planEntitlement.consumptionRate
@@ -23658,7 +23851,7 @@ var UsageDetails2 = ({
23658
23851
  if (showCredits && entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && entitlement.planEntitlement?.consumptionRate && entitlement.planEntitlement?.valueCredit) {
23659
23852
  acc.push(
23660
23853
  /* @__PURE__ */ jsxs42(Fragment23, { children: [
23661
- entitlement.planEntitlement.consumptionRate,
23854
+ formatConsumptionRate(entitlement.planEntitlement.consumptionRate),
23662
23855
  " ",
23663
23856
  getFeatureName(
23664
23857
  entitlement.planEntitlement.valueCredit,
@@ -24718,7 +24911,7 @@ var Entitlement2 = ({
24718
24911
  period: selectedPeriod
24719
24912
  }
24720
24913
  ) : showCredits && entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && entitlement.valueCredit && entitlement.consumptionRate ? /* @__PURE__ */ jsxs45(Fragment27, { children: [
24721
- formatNumber(entitlement.consumptionRate),
24914
+ formatConsumptionRate(entitlement.consumptionRate),
24722
24915
  " ",
24723
24916
  getFeatureName(
24724
24917
  entitlement.valueCredit,
@@ -28500,7 +28693,7 @@ var Error2 = ({ message }) => {
28500
28693
  );
28501
28694
  };
28502
28695
  var SchematicEmbed = ({ id, accessToken }) => {
28503
- const theme = useContext6(nt);
28696
+ const theme = useContext6(yt);
28504
28697
  const {
28505
28698
  data,
28506
28699
  error,