@monetize.software/sdk-extension 3.0.0-alpha.22 → 3.0.0-alpha.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/content.js CHANGED
@@ -1,9 +1,9 @@
1
- import { P as L, B as De, E as ze, c as qe, A as ue, w as Ne, a as J, r as Fe, b as $e } from "./chunks/chrome-port-bfTUUDz_.js";
2
- import { render as Q, h as de, createContext as Ve } from "preact";
1
+ import { P as L, B as Re, E as De, c as ze, A as ue, w as qe, a as J, r as Ne, b as Fe } from "./chunks/chrome-port-bfTUUDz_.js";
2
+ import { render as Q, h as de, createContext as $e } from "preact";
3
3
  import { jsx as o, jsxs as u, Fragment as ae } from "preact/jsx-runtime";
4
- import { useState as k, useEffect as P, useContext as He, useRef as j, useMemo as Ge, useLayoutEffect as We } from "preact/hooks";
5
- import { P as Ze } from "./chunks/port-name-ervLBWAQ.js";
6
- function Ye(r) {
4
+ import { useState as k, useEffect as P, useContext as Ve, useRef as j, useMemo as He, useLayoutEffect as Ge } from "preact/hooks";
5
+ import { P as We } from "./chunks/port-name-ervLBWAQ.js";
6
+ function Ze(r) {
7
7
  return `pw-offer-${r}-start`;
8
8
  }
9
9
  function N(r, e) {
@@ -15,13 +15,13 @@ function N(r, e) {
15
15
  (i) => i.price_id == null && (i.discount_percent ?? 0) > 0
16
16
  ) ?? null);
17
17
  }
18
- function Ke(r, e = {}) {
18
+ function Ye(r, e = {}) {
19
19
  const t = r.discount_percent ?? 0;
20
20
  if (t <= 0) return null;
21
- const n = e.now ?? Date.now(), i = Xe(r, e.readStart), s = Je(r, i), a = i !== null ? Math.max(0, i - n) : null;
21
+ const n = e.now ?? Date.now(), i = Ke(r, e.readStart), s = Xe(r, i), a = i !== null ? Math.max(0, i - n) : null;
22
22
  return i !== null && i <= n ? null : { offer: r, discountPercent: t, remainingMs: a, totalMs: s, expiresAt: i };
23
23
  }
24
- function Xe(r, e) {
24
+ function Ke(r, e) {
25
25
  if (r.expires_at) {
26
26
  const t = Date.parse(r.expires_at);
27
27
  return Number.isFinite(t) ? t : null;
@@ -34,20 +34,20 @@ function Xe(r, e) {
34
34
  }
35
35
  return null;
36
36
  }
37
- function Je(r, e) {
37
+ function Xe(r, e) {
38
38
  return r.duration_minutes && r.duration_minutes > 0 ? r.duration_minutes * 6e4 : e !== null ? e - Date.now() : null;
39
39
  }
40
- function Qe(r) {
40
+ function Je(r) {
41
41
  if (typeof window > "u") return null;
42
42
  try {
43
- return window.localStorage.getItem(Ye(r));
43
+ return window.localStorage.getItem(Ze(r));
44
44
  } catch {
45
45
  return null;
46
46
  }
47
47
  }
48
48
  const Se = '@layer theme,base,components,utilities;@layer theme{@theme default{ --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; --color-red-50: oklch(97.1% .013 17.38); --color-red-100: oklch(93.6% .032 17.717); --color-red-200: oklch(88.5% .062 18.334); --color-red-300: oklch(80.8% .114 19.571); --color-red-400: oklch(70.4% .191 22.216); --color-red-500: oklch(63.7% .237 25.331); --color-red-600: oklch(57.7% .245 27.325); --color-red-700: oklch(50.5% .213 27.518); --color-red-800: oklch(44.4% .177 26.899); --color-red-900: oklch(39.6% .141 25.723); --color-red-950: oklch(25.8% .092 26.042); --color-orange-50: oklch(98% .016 73.684); --color-orange-100: oklch(95.4% .038 75.164); --color-orange-200: oklch(90.1% .076 70.697); --color-orange-300: oklch(83.7% .128 66.29); --color-orange-400: oklch(75% .183 55.934); --color-orange-500: oklch(70.5% .213 47.604); --color-orange-600: oklch(64.6% .222 41.116); --color-orange-700: oklch(55.3% .195 38.402); --color-orange-800: oklch(47% .157 37.304); --color-orange-900: oklch(40.8% .123 38.172); --color-orange-950: oklch(26.6% .079 36.259); --color-amber-50: oklch(98.7% .022 95.277); --color-amber-100: oklch(96.2% .059 95.617); --color-amber-200: oklch(92.4% .12 95.746); --color-amber-300: oklch(87.9% .169 91.605); --color-amber-400: oklch(82.8% .189 84.429); --color-amber-500: oklch(76.9% .188 70.08); --color-amber-600: oklch(66.6% .179 58.318); --color-amber-700: oklch(55.5% .163 48.998); --color-amber-800: oklch(47.3% .137 46.201); --color-amber-900: oklch(41.4% .112 45.904); --color-amber-950: oklch(27.9% .077 45.635); --color-yellow-50: oklch(98.7% .026 102.212); --color-yellow-100: oklch(97.3% .071 103.193); --color-yellow-200: oklch(94.5% .129 101.54); --color-yellow-300: oklch(90.5% .182 98.111); --color-yellow-400: oklch(85.2% .199 91.936); --color-yellow-500: oklch(79.5% .184 86.047); --color-yellow-600: oklch(68.1% .162 75.834); --color-yellow-700: oklch(55.4% .135 66.442); --color-yellow-800: oklch(47.6% .114 61.907); --color-yellow-900: oklch(42.1% .095 57.708); --color-yellow-950: oklch(28.6% .066 53.813); --color-lime-50: oklch(98.6% .031 120.757); --color-lime-100: oklch(96.7% .067 122.328); --color-lime-200: oklch(93.8% .127 124.321); --color-lime-300: oklch(89.7% .196 126.665); --color-lime-400: oklch(84.1% .238 128.85); --color-lime-500: oklch(76.8% .233 130.85); --color-lime-600: oklch(64.8% .2 131.684); --color-lime-700: oklch(53.2% .157 131.589); --color-lime-800: oklch(45.3% .124 130.933); --color-lime-900: oklch(40.5% .101 131.063); --color-lime-950: oklch(27.4% .072 132.109); --color-green-50: oklch(98.2% .018 155.826); --color-green-100: oklch(96.2% .044 156.743); --color-green-200: oklch(92.5% .084 155.995); --color-green-300: oklch(87.1% .15 154.449); --color-green-400: oklch(79.2% .209 151.711); --color-green-500: oklch(72.3% .219 149.579); --color-green-600: oklch(62.7% .194 149.214); --color-green-700: oklch(52.7% .154 150.069); --color-green-800: oklch(44.8% .119 151.328); --color-green-900: oklch(39.3% .095 152.535); --color-green-950: oklch(26.6% .065 152.934); --color-emerald-50: oklch(97.9% .021 166.113); --color-emerald-100: oklch(95% .052 163.051); --color-emerald-200: oklch(90.5% .093 164.15); --color-emerald-300: oklch(84.5% .143 164.978); --color-emerald-400: oklch(76.5% .177 163.223); --color-emerald-500: oklch(69.6% .17 162.48); --color-emerald-600: oklch(59.6% .145 163.225); --color-emerald-700: oklch(50.8% .118 165.612); --color-emerald-800: oklch(43.2% .095 166.913); --color-emerald-900: oklch(37.8% .077 168.94); --color-emerald-950: oklch(26.2% .051 172.552); --color-teal-50: oklch(98.4% .014 180.72); --color-teal-100: oklch(95.3% .051 180.801); --color-teal-200: oklch(91% .096 180.426); --color-teal-300: oklch(85.5% .138 181.071); --color-teal-400: oklch(77.7% .152 181.912); --color-teal-500: oklch(70.4% .14 182.503); --color-teal-600: oklch(60% .118 184.704); --color-teal-700: oklch(51.1% .096 186.391); --color-teal-800: oklch(43.7% .078 188.216); --color-teal-900: oklch(38.6% .063 188.416); --color-teal-950: oklch(27.7% .046 192.524); --color-cyan-50: oklch(98.4% .019 200.873); --color-cyan-100: oklch(95.6% .045 203.388); --color-cyan-200: oklch(91.7% .08 205.041); --color-cyan-300: oklch(86.5% .127 207.078); --color-cyan-400: oklch(78.9% .154 211.53); --color-cyan-500: oklch(71.5% .143 215.221); --color-cyan-600: oklch(60.9% .126 221.723); --color-cyan-700: oklch(52% .105 223.128); --color-cyan-800: oklch(45% .085 224.283); --color-cyan-900: oklch(39.8% .07 227.392); --color-cyan-950: oklch(30.2% .056 229.695); --color-sky-50: oklch(97.7% .013 236.62); --color-sky-100: oklch(95.1% .026 236.824); --color-sky-200: oklch(90.1% .058 230.902); --color-sky-300: oklch(82.8% .111 230.318); --color-sky-400: oklch(74.6% .16 232.661); --color-sky-500: oklch(68.5% .169 237.323); --color-sky-600: oklch(58.8% .158 241.966); --color-sky-700: oklch(50% .134 242.749); --color-sky-800: oklch(44.3% .11 240.79); --color-sky-900: oklch(39.1% .09 240.876); --color-sky-950: oklch(29.3% .066 243.157); --color-blue-50: oklch(97% .014 254.604); --color-blue-100: oklch(93.2% .032 255.585); --color-blue-200: oklch(88.2% .059 254.128); --color-blue-300: oklch(80.9% .105 251.813); --color-blue-400: oklch(70.7% .165 254.624); --color-blue-500: oklch(62.3% .214 259.815); --color-blue-600: oklch(54.6% .245 262.881); --color-blue-700: oklch(48.8% .243 264.376); --color-blue-800: oklch(42.4% .199 265.638); --color-blue-900: oklch(37.9% .146 265.522); --color-blue-950: oklch(28.2% .091 267.935); --color-indigo-50: oklch(96.2% .018 272.314); --color-indigo-100: oklch(93% .034 272.788); --color-indigo-200: oklch(87% .065 274.039); --color-indigo-300: oklch(78.5% .115 274.713); --color-indigo-400: oklch(67.3% .182 276.935); --color-indigo-500: oklch(58.5% .233 277.117); --color-indigo-600: oklch(51.1% .262 276.966); --color-indigo-700: oklch(45.7% .24 277.023); --color-indigo-800: oklch(39.8% .195 277.366); --color-indigo-900: oklch(35.9% .144 278.697); --color-indigo-950: oklch(25.7% .09 281.288); --color-violet-50: oklch(96.9% .016 293.756); --color-violet-100: oklch(94.3% .029 294.588); --color-violet-200: oklch(89.4% .057 293.283); --color-violet-300: oklch(81.1% .111 293.571); --color-violet-400: oklch(70.2% .183 293.541); --color-violet-500: oklch(60.6% .25 292.717); --color-violet-600: oklch(54.1% .281 293.009); --color-violet-700: oklch(49.1% .27 292.581); --color-violet-800: oklch(43.2% .232 292.759); --color-violet-900: oklch(38% .189 293.745); --color-violet-950: oklch(28.3% .141 291.089); --color-purple-50: oklch(97.7% .014 308.299); --color-purple-100: oklch(94.6% .033 307.174); --color-purple-200: oklch(90.2% .063 306.703); --color-purple-300: oklch(82.7% .119 306.383); --color-purple-400: oklch(71.4% .203 305.504); --color-purple-500: oklch(62.7% .265 303.9); --color-purple-600: oklch(55.8% .288 302.321); --color-purple-700: oklch(49.6% .265 301.924); --color-purple-800: oklch(43.8% .218 303.724); --color-purple-900: oklch(38.1% .176 304.987); --color-purple-950: oklch(29.1% .149 302.717); --color-fuchsia-50: oklch(97.7% .017 320.058); --color-fuchsia-100: oklch(95.2% .037 318.852); --color-fuchsia-200: oklch(90.3% .076 319.62); --color-fuchsia-300: oklch(83.3% .145 321.434); --color-fuchsia-400: oklch(74% .238 322.16); --color-fuchsia-500: oklch(66.7% .295 322.15); --color-fuchsia-600: oklch(59.1% .293 322.896); --color-fuchsia-700: oklch(51.8% .253 323.949); --color-fuchsia-800: oklch(45.2% .211 324.591); --color-fuchsia-900: oklch(40.1% .17 325.612); --color-fuchsia-950: oklch(29.3% .136 325.661); --color-pink-50: oklch(97.1% .014 343.198); --color-pink-100: oklch(94.8% .028 342.258); --color-pink-200: oklch(89.9% .061 343.231); --color-pink-300: oklch(82.3% .12 346.018); --color-pink-400: oklch(71.8% .202 349.761); --color-pink-500: oklch(65.6% .241 354.308); --color-pink-600: oklch(59.2% .249 .584); --color-pink-700: oklch(52.5% .223 3.958); --color-pink-800: oklch(45.9% .187 3.815); --color-pink-900: oklch(40.8% .153 2.432); --color-pink-950: oklch(28.4% .109 3.907); --color-rose-50: oklch(96.9% .015 12.422); --color-rose-100: oklch(94.1% .03 12.58); --color-rose-200: oklch(89.2% .058 10.001); --color-rose-300: oklch(81% .117 11.638); --color-rose-400: oklch(71.2% .194 13.428); --color-rose-500: oklch(64.5% .246 16.439); --color-rose-600: oklch(58.6% .253 17.585); --color-rose-700: oklch(51.4% .222 16.935); --color-rose-800: oklch(45.5% .188 13.697); --color-rose-900: oklch(41% .159 10.272); --color-rose-950: oklch(27.1% .105 12.094); --color-slate-50: oklch(98.4% .003 247.858); --color-slate-100: oklch(96.8% .007 247.896); --color-slate-200: oklch(92.9% .013 255.508); --color-slate-300: oklch(86.9% .022 252.894); --color-slate-400: oklch(70.4% .04 256.788); --color-slate-500: oklch(55.4% .046 257.417); --color-slate-600: oklch(44.6% .043 257.281); --color-slate-700: oklch(37.2% .044 257.287); --color-slate-800: oklch(27.9% .041 260.031); --color-slate-900: oklch(20.8% .042 265.755); --color-slate-950: oklch(12.9% .042 264.695); --color-gray-50: oklch(98.5% .002 247.839); --color-gray-100: oklch(96.7% .003 264.542); --color-gray-200: oklch(92.8% .006 264.531); --color-gray-300: oklch(87.2% .01 258.338); --color-gray-400: oklch(70.7% .022 261.325); --color-gray-500: oklch(55.1% .027 264.364); --color-gray-600: oklch(44.6% .03 256.802); --color-gray-700: oklch(37.3% .034 259.733); --color-gray-800: oklch(27.8% .033 256.848); --color-gray-900: oklch(21% .034 264.665); --color-gray-950: oklch(13% .028 261.692); --color-zinc-50: oklch(98.5% 0 0); --color-zinc-100: oklch(96.7% .001 286.375); --color-zinc-200: oklch(92% .004 286.32); --color-zinc-300: oklch(87.1% .006 286.286); --color-zinc-400: oklch(70.5% .015 286.067); --color-zinc-500: oklch(55.2% .016 285.938); --color-zinc-600: oklch(44.2% .017 285.786); --color-zinc-700: oklch(37% .013 285.805); --color-zinc-800: oklch(27.4% .006 286.033); --color-zinc-900: oklch(21% .006 285.885); --color-zinc-950: oklch(14.1% .005 285.823); --color-neutral-50: oklch(98.5% 0 0); --color-neutral-100: oklch(97% 0 0); --color-neutral-200: oklch(92.2% 0 0); --color-neutral-300: oklch(87% 0 0); --color-neutral-400: oklch(70.8% 0 0); --color-neutral-500: oklch(55.6% 0 0); --color-neutral-600: oklch(43.9% 0 0); --color-neutral-700: oklch(37.1% 0 0); --color-neutral-800: oklch(26.9% 0 0); --color-neutral-900: oklch(20.5% 0 0); --color-neutral-950: oklch(14.5% 0 0); --color-stone-50: oklch(98.5% .001 106.423); --color-stone-100: oklch(97% .001 106.424); --color-stone-200: oklch(92.3% .003 48.717); --color-stone-300: oklch(86.9% .005 56.366); --color-stone-400: oklch(70.9% .01 56.259); --color-stone-500: oklch(55.3% .013 58.071); --color-stone-600: oklch(44.4% .011 73.639); --color-stone-700: oklch(37.4% .01 67.558); --color-stone-800: oklch(26.8% .007 34.298); --color-stone-900: oklch(21.6% .006 56.043); --color-stone-950: oklch(14.7% .004 49.25); --color-mauve-50: oklch(98.5% 0 0); --color-mauve-100: oklch(96% .003 325.6); --color-mauve-200: oklch(92.2% .005 325.62); --color-mauve-300: oklch(86.5% .012 325.68); --color-mauve-400: oklch(71.1% .019 323.02); --color-mauve-500: oklch(54.2% .034 322.5); --color-mauve-600: oklch(43.5% .029 321.78); --color-mauve-700: oklch(36.4% .029 323.89); --color-mauve-800: oklch(26.3% .024 320.12); --color-mauve-900: oklch(21.2% .019 322.12); --color-mauve-950: oklch(14.5% .008 326); --color-olive-50: oklch(98.8% .003 106.5); --color-olive-100: oklch(96.6% .005 106.5); --color-olive-200: oklch(93% .007 106.5); --color-olive-300: oklch(88% .011 106.6); --color-olive-400: oklch(73.7% .021 106.9); --color-olive-500: oklch(58% .031 107.3); --color-olive-600: oklch(46.6% .025 107.3); --color-olive-700: oklch(39.4% .023 107.4); --color-olive-800: oklch(28.6% .016 107.4); --color-olive-900: oklch(22.8% .013 107.4); --color-olive-950: oklch(15.3% .006 107.1); --color-mist-50: oklch(98.7% .002 197.1); --color-mist-100: oklch(96.3% .002 197.1); --color-mist-200: oklch(92.5% .005 214.3); --color-mist-300: oklch(87.2% .007 219.6); --color-mist-400: oklch(72.3% .014 214.4); --color-mist-500: oklch(56% .021 213.5); --color-mist-600: oklch(45% .017 213.2); --color-mist-700: oklch(37.8% .015 216); --color-mist-800: oklch(27.5% .011 216.9); --color-mist-900: oklch(21.8% .008 223.9); --color-mist-950: oklch(14.8% .004 228.8); --color-taupe-50: oklch(98.6% .002 67.8); --color-taupe-100: oklch(96% .002 17.2); --color-taupe-200: oklch(92.2% .005 34.3); --color-taupe-300: oklch(86.8% .007 39.5); --color-taupe-400: oklch(71.4% .014 41.2); --color-taupe-500: oklch(54.7% .021 43.1); --color-taupe-600: oklch(43.8% .017 39.3); --color-taupe-700: oklch(36.7% .016 35.7); --color-taupe-800: oklch(26.8% .011 36.5); --color-taupe-900: oklch(21.4% .009 43.1); --color-taupe-950: oklch(14.7% .004 49.3); --color-black: #000; --color-white: #fff; --spacing: .25rem; --breakpoint-sm: 40rem; --breakpoint-md: 48rem; --breakpoint-lg: 64rem; --breakpoint-xl: 80rem; --breakpoint-2xl: 96rem; --container-3xs: 16rem; --container-2xs: 18rem; --container-xs: 20rem; --container-sm: 24rem; --container-md: 28rem; --container-lg: 32rem; --container-xl: 36rem; --container-2xl: 42rem; --container-3xl: 48rem; --container-4xl: 56rem; --container-5xl: 64rem; --container-6xl: 72rem; --container-7xl: 80rem; --text-xs: .75rem; --text-xs--line-height: calc(1 / .75); --text-sm: .875rem; --text-sm--line-height: calc(1.25 / .875); --text-base: 1rem; --text-base--line-height: 1.5 ; --text-lg: 1.125rem; --text-lg--line-height: calc(1.75 / 1.125); --text-xl: 1.25rem; --text-xl--line-height: calc(1.75 / 1.25); --text-2xl: 1.5rem; --text-2xl--line-height: calc(2 / 1.5); --text-3xl: 1.875rem; --text-3xl--line-height: 1.2 ; --text-4xl: 2.25rem; --text-4xl--line-height: calc(2.5 / 2.25); --text-5xl: 3rem; --text-5xl--line-height: 1; --text-6xl: 3.75rem; --text-6xl--line-height: 1; --text-7xl: 4.5rem; --text-7xl--line-height: 1; --text-8xl: 6rem; --text-8xl--line-height: 1; --text-9xl: 8rem; --text-9xl--line-height: 1; --font-weight-thin: 100; --font-weight-extralight: 200; --font-weight-light: 300; --font-weight-normal: 400; --font-weight-medium: 500; --font-weight-semibold: 600; --font-weight-bold: 700; --font-weight-extrabold: 800; --font-weight-black: 900; --tracking-tighter: -.05em; --tracking-tight: -.025em; --tracking-normal: 0em; --tracking-wide: .025em; --tracking-wider: .05em; --tracking-widest: .1em; --leading-tight: 1.25; --leading-snug: 1.375; --leading-normal: 1.5; --leading-relaxed: 1.625; --leading-loose: 2; --radius-xs: .125rem; --radius-sm: .25rem; --radius-md: .375rem; --radius-lg: .5rem; --radius-xl: .75rem; --radius-2xl: 1rem; --radius-3xl: 1.5rem; --radius-4xl: 2rem; --shadow-2xs: 0 1px rgb(0 0 0 / .05); --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / .05); --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1); --shadow-md: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1); --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1); --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1); --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / .25); --inset-shadow-2xs: inset 0 1px rgb(0 0 0 / .05); --inset-shadow-xs: inset 0 1px 1px rgb(0 0 0 / .05); --inset-shadow-sm: inset 0 2px 4px rgb(0 0 0 / .05); --drop-shadow-xs: 0 1px 1px rgb(0 0 0 / .05); --drop-shadow-sm: 0 1px 2px rgb(0 0 0 / .15); --drop-shadow-md: 0 3px 3px rgb(0 0 0 / .12); --drop-shadow-lg: 0 4px 4px rgb(0 0 0 / .15); --drop-shadow-xl: 0 9px 7px rgb(0 0 0 / .1); --drop-shadow-2xl: 0 25px 25px rgb(0 0 0 / .15); --text-shadow-2xs: 0px 1px 0px rgb(0 0 0 / .15); --text-shadow-xs: 0px 1px 1px rgb(0 0 0 / .2); --text-shadow-sm: 0px 1px 0px rgb(0 0 0 / .075), 0px 1px 1px rgb(0 0 0 / .075), 0px 2px 2px rgb(0 0 0 / .075); --text-shadow-md: 0px 1px 1px rgb(0 0 0 / .1), 0px 1px 2px rgb(0 0 0 / .1), 0px 2px 4px rgb(0 0 0 / .1); --text-shadow-lg: 0px 1px 2px rgb(0 0 0 / .1), 0px 3px 2px rgb(0 0 0 / .1), 0px 4px 8px rgb(0 0 0 / .1); --ease-in: cubic-bezier(.4, 0, 1, 1); --ease-out: cubic-bezier(0, 0, .2, 1); --ease-in-out: cubic-bezier(.4, 0, .2, 1); --animate-spin: spin 1s linear infinite; --animate-ping: ping 1s cubic-bezier(0, 0, .2, 1) infinite; --animate-pulse: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; --animate-bounce: bounce 1s infinite; @keyframes spin { to { transform: rotate(360deg); } } @keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } } @keyframes pulse { 50% { opacity: .5; } } @keyframes bounce { 0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(.8, 0, 1, 1); } 50% { transform: none; animation-timing-function: cubic-bezier(0, 0, .2, 1); } } --blur-xs: 4px; --blur-sm: 8px; --blur-md: 12px; --blur-lg: 16px; --blur-xl: 24px; --blur-2xl: 40px; --blur-3xl: 64px; --perspective-dramatic: 100px; --perspective-near: 300px; --perspective-normal: 500px; --perspective-midrange: 800px; --perspective-distant: 1200px; --aspect-video: 16 / 9; --default-transition-duration: .15s; --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1); --default-font-family: --theme(--font-sans, initial); --default-font-feature-settings: --theme( --font-sans--font-feature-settings, initial ); --default-font-variation-settings: --theme( --font-sans--font-variation-settings, initial ); --default-mono-font-family: --theme(--font-mono, initial); --default-mono-font-feature-settings: --theme( --font-mono--font-feature-settings, initial ); --default-mono-font-variation-settings: --theme( --font-mono--font-variation-settings, initial ); }@theme default inline reference{ --blur: 8px; --shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1); --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / .05); --drop-shadow: 0 1px 2px rgb(0 0 0 / .1), 0 1px 1px rgb(0 0 0 / .06); --radius: .25rem; --max-width-prose: 65ch; }}@layer base{*,:after,:before,::backdrop,::file-selector-button{box-sizing:border-box;margin:0;padding:0;border:0 solid}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;tab-size:4;font-family:--theme(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:--theme(--default-font-feature-settings,normal);font-variation-settings:--theme(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:--theme(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:--theme(--default-mono-font-feature-settings,normal);font-variation-settings:--theme(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea,::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;border-radius:0;background-color:transparent;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]),::file-selector-button{appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer utilities{@tailwind utilities;}@source "../**/*.{ts,tsx,js,jsx}";@layer base{:host{all:initial;color-scheme:light;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}*,*:before,*:after{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,*:before,*:after{box-sizing:border-box}button{font-family:inherit;cursor:pointer}button:disabled{cursor:not-allowed}[role=button],[role=radio]{cursor:pointer}}.pw-cta-shimmer:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.35) 50%,transparent);animation:pw-cta-shimmer 3s infinite;z-index:1}@keyframes pw-cta-shimmer{0%{left:-100%}to{left:100%}}';
49
49
  let he = !1;
50
- function et() {
50
+ function Qe() {
51
51
  if (he || (he = !0, typeof CSS > "u" || typeof CSS.registerProperty != "function")) return;
52
52
  let r;
53
53
  try {
@@ -70,10 +70,10 @@ function et() {
70
70
  }
71
71
  }
72
72
  }
73
- function tt(r, e, t = {}) {
73
+ function et(r, e, t = {}) {
74
74
  if (typeof document > "u")
75
75
  throw new Error("mountShadow called in non-DOM environment");
76
- et();
76
+ Qe();
77
77
  const n = t.host ?? document.createElement("div");
78
78
  n.setAttribute("data-paywall-host", ""), n.style.cssText = t.inline ? "all: initial; position: absolute; inset: 0; z-index: 1; pointer-events: none;" : "all: initial; position: fixed; inset: 0; z-index: 2147483647; pointer-events: none;", !n.isConnected && !t.inline && document.body.appendChild(n);
79
79
  const i = n.attachShadow({ mode: t.shadowMode ?? "closed" }), s = `
@@ -109,7 +109,7 @@ function tt(r, e, t = {}) {
109
109
  }
110
110
  };
111
111
  }
112
- const rt = (r, e, t) => {
112
+ const tt = (r, e, t) => {
113
113
  const n = r[e];
114
114
  return n ? typeof n == "function" ? n() : Promise.resolve(n) : new Promise((i, s) => {
115
115
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
@@ -121,7 +121,7 @@ const rt = (r, e, t) => {
121
121
  )
122
122
  );
123
123
  });
124
- }, nt = [
124
+ }, rt = [
125
125
  "ru",
126
126
  "uk",
127
127
  "de",
@@ -149,7 +149,7 @@ const rt = (r, e, t) => {
149
149
  "th",
150
150
  "vi",
151
151
  "he"
152
- ], Ce = (r, e, t) => Ae(e, t), Ie = Ve({ t: Ce, locale: "en" });
152
+ ], Ce = (r, e, t) => Ae(e, t), Ie = $e({ t: Ce, locale: "en" });
153
153
  function Ae(r, e) {
154
154
  if (!e) return r;
155
155
  let t = r;
@@ -159,9 +159,9 @@ function Ae(r, e) {
159
159
  }
160
160
  const ee = /* @__PURE__ */ new Map(), te = /* @__PURE__ */ new Map();
161
161
  function Le(r) {
162
- return nt.includes(r);
162
+ return rt.includes(r);
163
163
  }
164
- function it(r) {
164
+ function nt(r) {
165
165
  const e = [];
166
166
  if (typeof navigator < "u" && navigator.language) {
167
167
  e.push(navigator.language);
@@ -178,15 +178,15 @@ function it(r) {
178
178
  if (Le(n)) return n;
179
179
  return null;
180
180
  }
181
- function ot(r, e) {
181
+ function it(r, e) {
182
182
  return !!r.locales && r.locales[e] !== void 0;
183
183
  }
184
- async function st(r) {
184
+ async function ot(r) {
185
185
  const e = ee.get(r);
186
186
  if (e) return e;
187
187
  const t = te.get(r);
188
188
  if (t) return t;
189
- const n = rt(/* @__PURE__ */ Object.assign({ "./locales/ar.ts": () => import("./chunks/ar-rSKgwKvp.js"), "./locales/cs.ts": () => import("./chunks/cs-DIWkcge_.js"), "./locales/da.ts": () => import("./chunks/da-DdMW98j3.js"), "./locales/de.ts": () => import("./chunks/de-D1bSmD_-.js"), "./locales/el.ts": () => import("./chunks/el-C4LtWpfP.js"), "./locales/es.ts": () => import("./chunks/es-Bhx7w85J.js"), "./locales/fi.ts": () => import("./chunks/fi-C34Oc6rg.js"), "./locales/fr.ts": () => import("./chunks/fr-BrWtqej3.js"), "./locales/he.ts": () => import("./chunks/he-Byr2r07x.js"), "./locales/hi.ts": () => import("./chunks/hi-CABVgpKU.js"), "./locales/hu.ts": () => import("./chunks/hu-CSQ9avfJ.js"), "./locales/id.ts": () => import("./chunks/id-BJ5w6RSU.js"), "./locales/it.ts": () => import("./chunks/it-Df8ChmTK.js"), "./locales/ja.ts": () => import("./chunks/ja-a53E5b2s.js"), "./locales/ko.ts": () => import("./chunks/ko-AZ8GrmXu.js"), "./locales/nl.ts": () => import("./chunks/nl-sF6ms5FU.js"), "./locales/no.ts": () => import("./chunks/no-DGf5PuW5.js"), "./locales/pl.ts": () => import("./chunks/pl-Dd-Ze6wn.js"), "./locales/pt.ts": () => import("./chunks/pt-BL9X8Du2.js"), "./locales/ro.ts": () => import("./chunks/ro-CGYmtR8q.js"), "./locales/ru.ts": () => import("./chunks/ru-oPoQtUxk.js"), "./locales/sv.ts": () => import("./chunks/sv-kXHP1Ct3.js"), "./locales/th.ts": () => import("./chunks/th-DMcmb36d.js"), "./locales/tr.ts": () => import("./chunks/tr-zjLbddlL.js"), "./locales/uk.ts": () => import("./chunks/uk-BYSiM14V.js"), "./locales/vi.ts": () => import("./chunks/vi-FbVRwy9D.js"), "./locales/zh.ts": () => import("./chunks/zh-Cv0Yw4qR.js") }), `./locales/${r}.ts`, 3).then((i) => {
189
+ const n = tt(/* @__PURE__ */ Object.assign({ "./locales/ar.ts": () => import("./chunks/ar-rSKgwKvp.js"), "./locales/cs.ts": () => import("./chunks/cs-DIWkcge_.js"), "./locales/da.ts": () => import("./chunks/da-DdMW98j3.js"), "./locales/de.ts": () => import("./chunks/de-D1bSmD_-.js"), "./locales/el.ts": () => import("./chunks/el-C4LtWpfP.js"), "./locales/es.ts": () => import("./chunks/es-Bhx7w85J.js"), "./locales/fi.ts": () => import("./chunks/fi-C34Oc6rg.js"), "./locales/fr.ts": () => import("./chunks/fr-BrWtqej3.js"), "./locales/he.ts": () => import("./chunks/he-Byr2r07x.js"), "./locales/hi.ts": () => import("./chunks/hi-CABVgpKU.js"), "./locales/hu.ts": () => import("./chunks/hu-CSQ9avfJ.js"), "./locales/id.ts": () => import("./chunks/id-BJ5w6RSU.js"), "./locales/it.ts": () => import("./chunks/it-Df8ChmTK.js"), "./locales/ja.ts": () => import("./chunks/ja-a53E5b2s.js"), "./locales/ko.ts": () => import("./chunks/ko-AZ8GrmXu.js"), "./locales/nl.ts": () => import("./chunks/nl-sF6ms5FU.js"), "./locales/no.ts": () => import("./chunks/no-DGf5PuW5.js"), "./locales/pl.ts": () => import("./chunks/pl-Dd-Ze6wn.js"), "./locales/pt.ts": () => import("./chunks/pt-BL9X8Du2.js"), "./locales/ro.ts": () => import("./chunks/ro-CGYmtR8q.js"), "./locales/ru.ts": () => import("./chunks/ru-oPoQtUxk.js"), "./locales/sv.ts": () => import("./chunks/sv-kXHP1Ct3.js"), "./locales/th.ts": () => import("./chunks/th-DMcmb36d.js"), "./locales/tr.ts": () => import("./chunks/tr-zjLbddlL.js"), "./locales/uk.ts": () => import("./chunks/uk-BYSiM14V.js"), "./locales/vi.ts": () => import("./chunks/vi-FbVRwy9D.js"), "./locales/zh.ts": () => import("./chunks/zh-Cv0Yw4qR.js") }), `./locales/${r}.ts`, 3).then((i) => {
190
190
  const s = i.default ?? {};
191
191
  return ee.set(r, s), s;
192
192
  }).catch((i) => {
@@ -198,13 +198,13 @@ async function st(r) {
198
198
  });
199
199
  return te.set(r, n), n;
200
200
  }
201
- function at({ bootstrap: r, forceLocale: e, children: t }) {
201
+ function st({ bootstrap: r, forceLocale: e, children: t }) {
202
202
  const [n, i] = k("en"), [s, a] = k(null);
203
203
  P(() => {
204
204
  const h = (e && Le(e) ? e : null) ?? (() => {
205
205
  if (!r) return null;
206
- const g = it(r);
207
- return !g || !ot(r, g) ? null : g;
206
+ const g = nt(r);
207
+ return !g || !it(r, g) ? null : g;
208
208
  })();
209
209
  if (!h) {
210
210
  (s !== null || n !== "en") && (i("en"), a(null));
@@ -212,7 +212,7 @@ function at({ bootstrap: r, forceLocale: e, children: t }) {
212
212
  }
213
213
  if (h === n && s) return;
214
214
  let d = !1;
215
- return st(h).then((g) => {
215
+ return ot(h).then((g) => {
216
216
  d || (i(h), a(g));
217
217
  }), () => {
218
218
  d = !0;
@@ -225,10 +225,10 @@ function at({ bootstrap: r, forceLocale: e, children: t }) {
225
225
  return /* @__PURE__ */ o(Ie.Provider, { value: l, children: t });
226
226
  }
227
227
  function S() {
228
- return He(Ie);
228
+ return Ve(Ie);
229
229
  }
230
230
  const pe = 'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';
231
- function lt({
231
+ function at({
232
232
  open: r,
233
233
  onClose: e,
234
234
  labelledBy: t,
@@ -332,7 +332,7 @@ function lt({
332
332
  }
333
333
  ) : null;
334
334
  }
335
- function ct(r, e) {
335
+ function lt(r, e) {
336
336
  switch (r) {
337
337
  case "google":
338
338
  return e("auth.continue_with_google", "Continue with Google");
@@ -383,9 +383,9 @@ function Me({ block: r, ctx: e }) {
383
383
  if (!t)
384
384
  return typeof console < "u" && console.warn("[paywall] auth_panel rendered without AuthClient — pass `auth: true` to PaywallUI"), null;
385
385
  const l = n && !n.user.is_anonymous ? n : null;
386
- return l && a ? null : l ? /* @__PURE__ */ o(ut, { email: l.user.email ?? "", onSignOut: () => t.signOut().catch(() => {
386
+ return l && a ? null : l ? /* @__PURE__ */ o(ct, { email: l.user.email ?? "", onSignOut: () => t.signOut().catch(() => {
387
387
  }) }) : /* @__PURE__ */ o(
388
- dt,
388
+ ut,
389
389
  {
390
390
  block: r,
391
391
  allowSignup: i,
@@ -394,7 +394,7 @@ function Me({ block: r, ctx: e }) {
394
394
  }
395
395
  );
396
396
  }
397
- function ut({ email: r, onSignOut: e }) {
397
+ function ct({ email: r, onSignOut: e }) {
398
398
  const { t } = S();
399
399
  return /* @__PURE__ */ u("div", { class: "flex items-center justify-between gap-3 rounded-2xl bg-gray-100 px-4 py-3", children: [
400
400
  /* @__PURE__ */ u("div", { class: "flex flex-col", children: [
@@ -412,7 +412,7 @@ function ut({ email: r, onSignOut: e }) {
412
412
  )
413
413
  ] });
414
414
  }
415
- function dt({ block: r, allowSignup: e, allowReset: t, ctx: n }) {
415
+ function ut({ block: r, allowSignup: e, allowReset: t, ctx: n }) {
416
416
  const { t: i } = S(), s = n.auth, a = r.providers ?? [], l = n.initialAuthMode === "signup" && e ? "signup" : "signin", [c, h] = k(l), [d, g] = k(""), [_, p] = k(""), [v, m] = k(""), [A, b] = k(""), [y, C] = k(null), I = j(!1), [O, M] = k(null), [R, D] = k(null), [z, T] = k(!1), [E, q] = k(null);
417
417
  P(() => {
418
418
  if (typeof s.getLastLogin != "function") return;
@@ -475,8 +475,8 @@ function dt({ block: r, allowSignup: e, allowReset: t, ctx: n }) {
475
475
  }
476
476
  }
477
477
  }, K = a.length > 0 && (c === "signin" || c === "signup"), X = c === "signin" || c === "signup" || c === "forgot", x = c === "signin" || c === "signup" && z;
478
- return c === "reset_sent" ? /* @__PURE__ */ o(_t, { email: d, onBack: () => U("signin"), t: i }) : /* @__PURE__ */ u("div", { class: "flex flex-col gap-5", children: [
479
- /* @__PURE__ */ o(ht, { mode: c, customHeading: r.heading, customSubheading: r.subheading }),
478
+ return c === "reset_sent" ? /* @__PURE__ */ o(vt, { email: d, onBack: () => U("signin"), t: i }) : /* @__PURE__ */ u("div", { class: "flex flex-col gap-5", children: [
479
+ /* @__PURE__ */ o(dt, { mode: c, customHeading: r.heading, customSubheading: r.subheading }),
480
480
  K ? /* @__PURE__ */ u("div", { class: "flex flex-col gap-2.5", children: [
481
481
  a.map((f) => /* @__PURE__ */ u("div", { class: "relative", children: [
482
482
  /* @__PURE__ */ u(
@@ -487,14 +487,14 @@ function dt({ block: r, allowSignup: e, allowReset: t, ctx: n }) {
487
487
  disabled: y !== null,
488
488
  class: "flex h-12 w-full items-center justify-center gap-2.5 rounded-full border-1 border-gray-200 bg-white px-5 text-base font-medium text-gray-900 transition-all hover:border-gray-300 hover:bg-gray-50 disabled:cursor-not-allowed disabled:opacity-60 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--pw-accent)]",
489
489
  children: [
490
- y === f ? /* @__PURE__ */ o("span", { class: "inline-block h-4 w-4 animate-spin rounded-full border-2 border-gray-300 border-t-gray-700" }) : /* @__PURE__ */ o(vt, { provider: f }),
491
- /* @__PURE__ */ o("span", { children: ct(f, i) })
490
+ y === f ? /* @__PURE__ */ o("span", { class: "inline-block h-4 w-4 animate-spin rounded-full border-2 border-gray-300 border-t-gray-700" }) : /* @__PURE__ */ o(kt, { provider: f }),
491
+ /* @__PURE__ */ o("span", { children: lt(f, i) })
492
492
  ]
493
493
  }
494
494
  ),
495
- E?.method === f ? /* @__PURE__ */ o(xt, { email: E.email }) : null
495
+ E?.method === f ? /* @__PURE__ */ o(bt, { email: E.email }) : null
496
496
  ] }, f)),
497
- /* @__PURE__ */ o(kt, {})
497
+ /* @__PURE__ */ o(wt, {})
498
498
  ] }) : null,
499
499
  /* @__PURE__ */ u("form", { onSubmit: Y, class: "flex flex-col gap-3", children: [
500
500
  X && /* @__PURE__ */ o(
@@ -556,15 +556,15 @@ function dt({ block: r, allowSignup: e, allowReset: t, ctx: n }) {
556
556
  O && /* @__PURE__ */ o("p", { class: "text-sm text-red-600", children: O }),
557
557
  R && /* @__PURE__ */ o("p", { class: "text-sm text-gray-500", children: R }),
558
558
  /* @__PURE__ */ o(
559
- mt,
559
+ gt,
560
560
  {
561
561
  busy: y === "email",
562
- label: ft(c, z, r.submit_label ?? r.heading, i)
562
+ label: pt(c, z, r.submit_label ?? r.heading, i)
563
563
  }
564
564
  )
565
565
  ] }),
566
566
  /* @__PURE__ */ o(
567
- gt,
567
+ ft,
568
568
  {
569
569
  mode: c,
570
570
  allowSignup: e,
@@ -573,18 +573,18 @@ function dt({ block: r, allowSignup: e, allowReset: t, ctx: n }) {
573
573
  )
574
574
  ] });
575
575
  }
576
- function ht({
576
+ function dt({
577
577
  mode: r,
578
578
  customHeading: e,
579
579
  customSubheading: t
580
580
  }) {
581
- const { t: n } = S(), i = pt(r, n), s = r === "signin" || r === "signup", a = s && e ? e : i.title, l = s && t !== void 0 ? t || null : i.subtitle;
581
+ const { t: n } = S(), i = ht(r, n), s = r === "signin" || r === "signup", a = s && e ? e : i.title, l = s && t !== void 0 ? t || null : i.subtitle;
582
582
  return /* @__PURE__ */ u("div", { class: "flex flex-col gap-2", children: [
583
583
  /* @__PURE__ */ o("h2", { class: "text-3xl font-bold tracking-tight text-gray-900", children: a }),
584
584
  l ? /* @__PURE__ */ o("p", { class: "text-base leading-relaxed text-gray-600", children: l }) : null
585
585
  ] });
586
586
  }
587
- function pt(r, e) {
587
+ function ht(r, e) {
588
588
  switch (r) {
589
589
  case "signin":
590
590
  return {
@@ -627,7 +627,7 @@ function pt(r, e) {
627
627
  };
628
628
  }
629
629
  }
630
- function ft(r, e, t, n) {
630
+ function pt(r, e, t, n) {
631
631
  if (r === "signin" && t) return t;
632
632
  switch (r) {
633
633
  case "signin":
@@ -643,7 +643,7 @@ function ft(r, e, t, n) {
643
643
  return n("cta.continue", "Continue");
644
644
  }
645
645
  }
646
- function gt({
646
+ function ft({
647
647
  mode: r,
648
648
  allowSignup: e,
649
649
  onSwitch: t
@@ -678,7 +678,7 @@ function Z({
678
678
  }
679
679
  );
680
680
  }
681
- function mt({ busy: r, label: e }) {
681
+ function gt({ busy: r, label: e }) {
682
682
  return /* @__PURE__ */ o(
683
683
  "button",
684
684
  {
@@ -737,12 +737,12 @@ function re({ placeholder: r, value: e, onInput: t, autocomplete: n, required: i
737
737
  "aria-label": a ? d : h,
738
738
  tabIndex: -1,
739
739
  class: "absolute right-4 top-1/2 -translate-y-1/2 flex h-6 w-6 items-center justify-center rounded text-gray-500 transition-colors hover:text-gray-700 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--pw-accent)]",
740
- children: a ? /* @__PURE__ */ o(bt, {}) : /* @__PURE__ */ o(yt, {})
740
+ children: a ? /* @__PURE__ */ o(yt, {}) : /* @__PURE__ */ o(mt, {})
741
741
  }
742
742
  )
743
743
  ] });
744
744
  }
745
- function yt() {
745
+ function mt() {
746
746
  return /* @__PURE__ */ u("svg", { width: "18", height: "18", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
747
747
  /* @__PURE__ */ o(
748
748
  "path",
@@ -757,7 +757,7 @@ function yt() {
757
757
  /* @__PURE__ */ o("circle", { cx: "10", cy: "10", r: "2.5", stroke: "currentColor", "stroke-width": "1.5" })
758
758
  ] });
759
759
  }
760
- function bt() {
760
+ function yt() {
761
761
  return /* @__PURE__ */ u("svg", { width: "18", height: "18", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
762
762
  /* @__PURE__ */ o(
763
763
  "path",
@@ -781,15 +781,15 @@ function bt() {
781
781
  )
782
782
  ] });
783
783
  }
784
- function xt({ email: r }) {
785
- const { t: e } = S(), t = r ? e("auth.last_used", "Last · {email}", { email: wt(r) }) : e("auth.last_used_no_email", "Last");
784
+ function bt({ email: r }) {
785
+ const { t: e } = S(), t = r ? e("auth.last_used", "Last · {email}", { email: xt(r) }) : e("auth.last_used_no_email", "Last");
786
786
  return /* @__PURE__ */ o("span", { class: "pointer-events-none absolute -top-2 right-3 max-w-[75%] truncate rounded-full bg-gray-900 px-2 py-0.5 text-[10px] font-semibold tracking-wide text-white shadow-sm", children: t });
787
787
  }
788
- function wt(r) {
788
+ function xt(r) {
789
789
  const [e, t] = r.split("@");
790
790
  return t ? `${e.slice(0, 3)}*****@${t}` : r;
791
791
  }
792
- function kt() {
792
+ function wt() {
793
793
  const { t: r } = S();
794
794
  return /* @__PURE__ */ u("div", { class: "flex items-center gap-3 py-1 text-sm text-gray-400", children: [
795
795
  /* @__PURE__ */ o("div", { class: "h-px flex-1 bg-gray-200" }),
@@ -797,7 +797,7 @@ function kt() {
797
797
  /* @__PURE__ */ o("div", { class: "h-px flex-1 bg-gray-200" })
798
798
  ] });
799
799
  }
800
- function vt({ provider: r }) {
800
+ function kt({ provider: r }) {
801
801
  return r === "google" ? /* @__PURE__ */ u("svg", { width: "20", height: "20", viewBox: "0 0 18 18", "aria-hidden": "true", children: [
802
802
  /* @__PURE__ */ o("path", { fill: "#4285F4", d: "M17.64 9.2c0-.64-.06-1.25-.16-1.84H9v3.49h4.84a4.14 4.14 0 0 1-1.79 2.71v2.26h2.9c1.7-1.56 2.69-3.87 2.69-6.62Z" }),
803
803
  /* @__PURE__ */ o("path", { fill: "#34A853", d: "M9 18c2.43 0 4.47-.8 5.96-2.18l-2.9-2.26c-.8.54-1.83.86-3.06.86-2.36 0-4.36-1.59-5.07-3.74H.92v2.33A9 9 0 0 0 9 18Z" }),
@@ -810,7 +810,7 @@ function vt({ provider: r }) {
810
810
  /* @__PURE__ */ o("svg", { width: "26", height: "26", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ o("path", { d: "M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09zM12 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z" }) })
811
811
  ) : r === "github" ? /* @__PURE__ */ o("svg", { width: "20", height: "20", viewBox: "0 0 16 16", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ o("path", { d: "M8 0C3.6 0 0 3.6 0 8a8 8 0 0 0 5.5 7.6c.4.1.5-.2.5-.4v-1.5c-2.2.5-2.7-1-2.7-1-.4-.9-.9-1.2-.9-1.2-.7-.5.1-.5.1-.5.8.1 1.2.8 1.2.8.7 1.2 1.9.9 2.4.7 0-.5.3-.9.5-1.1-1.8-.2-3.6-.9-3.6-4 0-.9.3-1.6.8-2.1-.1-.2-.4-1 .1-2.1 0 0 .7-.2 2.2.8a7.6 7.6 0 0 1 4 0c1.5-1 2.2-.8 2.2-.8.4 1.1.2 1.9.1 2.1.5.5.8 1.2.8 2.1 0 3.1-1.9 3.7-3.6 3.9.3.3.6.8.6 1.6V15c0 .2.1.5.6.4A8 8 0 0 0 16 8c0-4.4-3.6-8-8-8Z" }) }) : /* @__PURE__ */ o("svg", { width: "18", height: "20", viewBox: "0 0 14 16", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ o("path", { d: "M14 2.7C14 1.2 12.8 0 11.3 0H2.7C1.2 0 0 1.2 0 2.7v10.6C0 14.8 1.2 16 2.7 16h4V9.8H4.7v-2H6.7V6.4c0-2 1.2-3.1 3-3.1.9 0 1.7.1 2 .2V5h-1.4c-.8 0-1 .4-1 1v1.5h2.4l-.3 2H9.3V16h2c1.5 0 2.7-1.2 2.7-2.7V2.7Z" }) });
812
812
  }
813
- function _t({
813
+ function vt({
814
814
  email: r,
815
815
  onBack: e,
816
816
  t
@@ -860,7 +860,7 @@ function _t({
860
860
  )
861
861
  ] });
862
862
  }
863
- function St({
863
+ function _t({
864
864
  block: r,
865
865
  bootstrap: e,
866
866
  auth: t,
@@ -901,11 +901,11 @@ function St({
901
901
  submit_label: c("auth.log_in", "Sign In")
902
902
  } : r;
903
903
  return /* @__PURE__ */ u("div", { class: "relative flex-1 min-h-0 overflow-y-auto p-6 sm:p-8", children: [
904
- s ? /* @__PURE__ */ o(Ct, { onClick: i, ariaLabel: c("nav.back_aria", "Back") }) : null,
904
+ s ? /* @__PURE__ */ o(St, { onClick: i, ariaLabel: c("nav.back_aria", "Back") }) : null,
905
905
  /* @__PURE__ */ o(Me, { block: d, ctx: h })
906
906
  ] });
907
907
  }
908
- function Ct({ onClick: r, ariaLabel: e }) {
908
+ function St({ onClick: r, ariaLabel: e }) {
909
909
  return /* @__PURE__ */ o(
910
910
  "button",
911
911
  {
@@ -938,7 +938,7 @@ function Ct({ onClick: r, ariaLabel: e }) {
938
938
  }
939
939
  );
940
940
  }
941
- const Ee = (r) => `pw-offer-${r}-start`;
941
+ const Ct = (r) => `pw-offer-${r}-start`;
942
942
  function ne(r) {
943
943
  const e = r - Date.now();
944
944
  return e <= 0 ? { days: 0, hours: 0, minutes: 0, seconds: 0, expired: !0 } : {
@@ -957,7 +957,7 @@ function It(r) {
957
957
  if (r.duration_minutes && r.duration_minutes > 0) {
958
958
  if (typeof window > "u") return null;
959
959
  try {
960
- const e = Ee(r.id);
960
+ const e = Ct(r.id);
961
961
  let t = window.localStorage.getItem(e);
962
962
  return t || (t = (/* @__PURE__ */ new Date()).toISOString(), window.localStorage.setItem(e, t)), Date.parse(t) + r.duration_minutes * 6e4;
963
963
  } catch {
@@ -966,7 +966,7 @@ function It(r) {
966
966
  }
967
967
  return null;
968
968
  }
969
- function Te(r, e) {
969
+ function Ee(r, e) {
970
970
  if (!r || r.length === 0) return null;
971
971
  if (e) {
972
972
  const t = r.find((n) => n.id === e);
@@ -974,7 +974,7 @@ function Te(r, e) {
974
974
  }
975
975
  return r.find((t) => t.expires_at || t.duration_minutes) ?? null;
976
976
  }
977
- function Be(r) {
977
+ function Te(r) {
978
978
  const e = r ? It(r) : null, [t, n] = k(
979
979
  () => e !== null ? ne(e) : null
980
980
  ), i = j(e);
@@ -986,17 +986,13 @@ function Be(r) {
986
986
  n(ne(e));
987
987
  const s = setInterval(() => {
988
988
  const a = ne(i.current ?? 0);
989
- if (n(a), a.expired && (clearInterval(s), r?.duration_minutes && typeof window < "u"))
990
- try {
991
- window.localStorage.removeItem(Ee(r.id));
992
- } catch {
993
- }
989
+ n(a), a.expired && clearInterval(s);
994
990
  }, 1e3);
995
991
  return () => clearInterval(s);
996
992
  }, [e, r?.duration_minutes, r?.id]), t;
997
993
  }
998
994
  function At({ block: r, ctx: e }) {
999
- const { t } = S(), n = Te(e.bootstrap.offers, r.offer_id), i = Be(n);
995
+ const { t } = S(), n = Ee(e.bootstrap.offers, r.offer_id), i = Te(n);
1000
996
  if (!n || i === null || i.expired && !r.force) return null;
1001
997
  const s = r.title ?? n.label ?? t("offer.limited_time", "Limited-time offer"), a = n.discount_percent ? `${s} ${n.discount_percent}%` : s;
1002
998
  return /* @__PURE__ */ u(
@@ -1009,14 +1005,14 @@ function At({ block: r, ctx: e }) {
1009
1005
  },
1010
1006
  role: "status",
1011
1007
  children: [
1012
- /* @__PURE__ */ o(Oe, {}),
1008
+ /* @__PURE__ */ o(Pe, {}),
1013
1009
  /* @__PURE__ */ o("span", { children: a }),
1014
- /* @__PURE__ */ o(Pe, { value: i, t })
1010
+ /* @__PURE__ */ o(Be, { value: i, t })
1015
1011
  ]
1016
1012
  }
1017
1013
  );
1018
1014
  }
1019
- function Pe({ value: r, t: e }) {
1015
+ function Be({ value: r, t: e }) {
1020
1016
  return /* @__PURE__ */ u("div", { class: "flex items-center gap-1 font-mono text-sm", children: [
1021
1017
  r.days > 0 ? /* @__PURE__ */ u(ae, { children: [
1022
1018
  /* @__PURE__ */ o(H, { children: String(r.days) }),
@@ -1034,7 +1030,7 @@ function H({ children: r }) {
1034
1030
  return /* @__PURE__ */ o("span", { class: "rounded bg-black/20 px-1.5 py-0.5 text-xs font-bold", children: r });
1035
1031
  }
1036
1032
  function Lt({ offer: r }) {
1037
- const { t: e } = S(), t = Be(r);
1033
+ const { t: e } = S(), t = Te(r);
1038
1034
  if (t === null || t.expired) return null;
1039
1035
  const n = r.label ?? e("offer.limited_time", "Limited-time offer"), i = r.discount_percent ? `${n} ${r.discount_percent}%` : n;
1040
1036
  return /* @__PURE__ */ u(
@@ -1047,14 +1043,14 @@ function Lt({ offer: r }) {
1047
1043
  },
1048
1044
  role: "status",
1049
1045
  children: [
1050
- /* @__PURE__ */ o(Oe, {}),
1046
+ /* @__PURE__ */ o(Pe, {}),
1051
1047
  /* @__PURE__ */ o("span", { children: i }),
1052
- /* @__PURE__ */ o(Pe, { value: t, t: e })
1048
+ /* @__PURE__ */ o(Be, { value: t, t: e })
1053
1049
  ]
1054
1050
  }
1055
1051
  );
1056
1052
  }
1057
- function Oe() {
1053
+ function Pe() {
1058
1054
  return /* @__PURE__ */ o(
1059
1055
  "svg",
1060
1056
  {
@@ -1601,10 +1597,10 @@ function Vt() {
1601
1597
  }
1602
1598
  );
1603
1599
  }
1604
- const Ue = 24, Ht = 16, Gt = 2;
1600
+ const Oe = 24, Ht = 16, Gt = 2;
1605
1601
  function Wt(r, e) {
1606
1602
  const t = e * Gt;
1607
- let n = Ue;
1603
+ let n = Oe;
1608
1604
  for (r.style.fontSize = `${n}px`; r.scrollHeight > t && n > Ht; )
1609
1605
  n -= 1, r.style.fontSize = `${n}px`;
1610
1606
  }
@@ -1612,7 +1608,7 @@ function Zt({ block: r, ctx: e }) {
1612
1608
  const t = r.level ?? 1, n = `h${t}`, i = t === 1 ? "text-[22px] sm:text-2xl font-semibold leading-tight text-center text-balance text-gray-800" : t === 2 ? "text-xl font-semibold leading-snug text-gray-900 tracking-tight" : "text-base font-medium text-gray-900", s = j(null), a = t === 1 && !!e.bootstrap.settings.title_auto_fit;
1613
1609
  return P(() => {
1614
1610
  if (!a || !s.current) return;
1615
- const l = getComputedStyle(s.current), c = parseFloat(l.lineHeight) || Ue * 1.5;
1611
+ const l = getComputedStyle(s.current), c = parseFloat(l.lineHeight) || Oe * 1.5;
1616
1612
  Wt(s.current, c);
1617
1613
  }, [a, r.text]), /* @__PURE__ */ o(n, { ref: s, class: i, children: r.text });
1618
1614
  }
@@ -1655,7 +1651,7 @@ function le(r, e) {
1655
1651
  originalAmount: `${a.currency}${a.amount}`
1656
1652
  };
1657
1653
  }
1658
- function je(r, e) {
1654
+ function Ue(r, e) {
1659
1655
  if (r.label) return r.label.toUpperCase();
1660
1656
  if (!r.interval || r.interval === "lifetime")
1661
1657
  return e("pricing.plan_label.lifetime", "LIFETIME");
@@ -1797,7 +1793,7 @@ function Kt({ block: r, ctx: e }) {
1797
1793
  ),
1798
1794
  /* @__PURE__ */ u("div", { class: "flex flex-1 flex-col gap-0.5", children: [
1799
1795
  /* @__PURE__ */ u("div", { class: "flex flex-wrap items-center gap-x-2 gap-y-1", children: [
1800
- /* @__PURE__ */ o("span", { class: "text-xs font-normal uppercase tracking-normal text-gray-800/70", children: je(a, t) }),
1796
+ /* @__PURE__ */ o("span", { class: "text-xs font-normal uppercase tracking-normal text-gray-800/70", children: Ue(a, t) }),
1801
1797
  p ? (
1802
1798
  // opacity-60 приглушает strike: глаз сначала ловит label
1803
1799
  // и discount-badge, потом main price; original «бывшая цена»
@@ -1971,7 +1967,7 @@ function Qt({
1971
1967
  ].join(" "),
1972
1968
  style: s ? { background: "color-mix(in srgb, var(--pw-accent) 6%, transparent)" } : void 0,
1973
1969
  children: [
1974
- /* @__PURE__ */ o("span", { class: "flex min-h-[2.4em] items-center text-[10px] font-normal uppercase leading-tight text-gray-800/70", children: je(r, l) }),
1970
+ /* @__PURE__ */ o("span", { class: "flex min-h-[2.4em] items-center text-[10px] font-normal uppercase leading-tight text-gray-800/70", children: Ue(r, l) }),
1975
1971
  i ? /* @__PURE__ */ u("div", { class: "flex h-[22px] items-center justify-center gap-1.5", children: [
1976
1972
  g ? /* @__PURE__ */ o("span", { class: "text-[12px] text-gray-400 line-through decoration-gray-400 decoration-[1.5px]", children: g }) : null,
1977
1973
  c ? /* @__PURE__ */ u("span", { class: "rounded-md bg-emerald-100 px-1.5 py-0.5 text-[10px] font-bold leading-none text-emerald-700", children: [
@@ -2069,7 +2065,7 @@ const ir = {
2069
2065
  offer_banner: At
2070
2066
  };
2071
2067
  function or({ layout: r, bootstrap: e, onAction: t, auth: n, authSession: i, hasTopBanner: s }) {
2072
- const a = Ge(() => {
2068
+ const a = He(() => {
2073
2069
  for (const v of r.blocks)
2074
2070
  if (v.type === "price_grid" && v.popular_price_id && e.prices.some((m) => m.id === v.popular_price_id))
2075
2071
  return v.popular_price_id;
@@ -2172,7 +2168,7 @@ function lr({
2172
2168
  }), () => {
2173
2169
  x = !0;
2174
2170
  };
2175
- }, [e, r]), We(() => {
2171
+ }, [e, r]), Ge(() => {
2176
2172
  if (!e) {
2177
2173
  y({ kind: "layout" }), I.current = !1;
2178
2174
  return;
@@ -2284,14 +2280,14 @@ function lr({
2284
2280
  n("error", new L("no_price", "No price selected"));
2285
2281
  return;
2286
2282
  }
2287
- const B = p.data.settings.checkout_mode ?? "guest", $ = r.auth?.getCachedSession() ?? null, Re = !!$ && !$.user.is_anonymous;
2288
- if (B === "preauth" && !!r.auth && !Re) {
2283
+ const B = p.data.settings.checkout_mode ?? "guest", $ = r.auth?.getCachedSession() ?? null, je = !!$ && !$.user.is_anonymous;
2284
+ if (B === "preauth" && !!r.auth && !je) {
2289
2285
  y({ kind: "auth_gate", pendingCheckout: { priceId: w } });
2290
2286
  return;
2291
2287
  }
2292
2288
  await M(w);
2293
2289
  }
2294
- }, z = p.status === "ready" ? p.data.settings.brand_color : null, T = p.status === "ready" ? p.data.settings.allow_close !== !1 : !0, q = b.kind === "layout" && p.status === "ready" ? Te(p.data.offers) : null, U = q ? /* @__PURE__ */ o(Lt, { offer: q }) : null, Y = {
2290
+ }, z = p.status === "ready" ? p.data.settings.brand_color : null, T = p.status === "ready" ? p.data.settings.allow_close !== !1 : !0, q = b.kind === "layout" && p.status === "ready" ? Ee(p.data.offers) : null, U = q ? /* @__PURE__ */ o(Lt, { offer: q }) : null, Y = {
2295
2291
  type: "auth_panel",
2296
2292
  // Заголовок не задаём — AuthGate сам решит по intent'у (restore →
2297
2293
  // "Restore Purchases", остальные → дефолтный "Welcome back!").
@@ -2312,8 +2308,8 @@ function lr({
2312
2308
  }
2313
2309
  }
2314
2310
  ) : null, K = b.kind === "auth_gate" && b.origin !== "standalone" || b.kind === "support", X = p.status === "ready" ? p.data : null;
2315
- return /* @__PURE__ */ o(at, { bootstrap: X, forceLocale: _, children: /* @__PURE__ */ o(
2316
- lt,
2311
+ return /* @__PURE__ */ o(st, { bootstrap: X, forceLocale: _, children: /* @__PURE__ */ o(
2312
+ at,
2317
2313
  {
2318
2314
  open: e,
2319
2315
  onClose: t,
@@ -2324,7 +2320,7 @@ function lr({
2324
2320
  inline: g,
2325
2321
  labelledBy: "pw-title",
2326
2322
  children: c ? /* @__PURE__ */ o(ve, { onContinue: t }) : b.kind === "purchase_success" ? /* @__PURE__ */ o(ve, { restored: b.restored, onContinue: t }) : V || (p.status === "loading" || p.status === "idle" || b.kind === "verifying" ? /* @__PURE__ */ o(cr, { verifying: b.kind === "verifying" }) : p.status === "error" ? /* @__PURE__ */ o(ur, { message: p.error.message }) : b.kind === "auth_gate" && r.auth ? /* @__PURE__ */ o(
2327
- St,
2323
+ _t,
2328
2324
  {
2329
2325
  block: Y,
2330
2326
  bootstrap: p.data,
@@ -2667,7 +2663,7 @@ let br = class {
2667
2663
  constructor(e) {
2668
2664
  this.handle = null, this.isOpen = !1, this.listeners = /* @__PURE__ */ new Map(), this.userUnsub = null, this.authUnsub = null, this.watcher = null, this.tracker = null, this.purchased = !1, this.trialStore = null, this.trialStoreConfig = null, this.lastTrialStatus = null, this.trialExpiredFired = !1, this.lastVisibility = null, this.currentState = se, this.stateListeners = /* @__PURE__ */ new Set();
2669
2665
  const { auth: t, ownsAuth: n } = xr(e);
2670
- this.auth = t, this.ownsAuth = n, this.billing = e.client ?? new De({ ...e, auth: this.auth }), this.host = e.host, this.shadowMode = e.shadowMode ?? "closed", this.mountThenLoad = e.mountThenLoad ?? !0, this.inline = e.inline === !0, this.forceLocale = e.locale ?? null, this.userUnsub = this.billing.onUserChange((i) => {
2666
+ this.auth = t, this.ownsAuth = n, this.billing = e.client ?? new Re({ ...e, auth: this.auth }), this.host = e.host, this.shadowMode = e.shadowMode ?? "closed", this.mountThenLoad = e.mountThenLoad ?? !0, this.inline = e.inline === !0, this.forceLocale = e.locale ?? null, this.userUnsub = this.billing.onUserChange((i) => {
2671
2667
  this.emit("userChange", i);
2672
2668
  }), this.auth && (this.authUnsub = this.auth.onAuthChange((i, s) => {
2673
2669
  this.emit("authChange", { event: i, session: s });
@@ -2678,7 +2674,7 @@ let br = class {
2678
2674
  const t = typeof e == "object" && e !== null ? e : {};
2679
2675
  if (t.enabled === !1) return;
2680
2676
  const n = t.endpoint ?? `${this.billing.apiOrigin}/api/v1/paywall/${this.billing.paywallId}/events`;
2681
- this.tracker = new ze({
2677
+ this.tracker = new De({
2682
2678
  endpoint: n,
2683
2679
  paywallId: this.billing.paywallId,
2684
2680
  capabilities: this.billing.capabilities,
@@ -3164,7 +3160,7 @@ let br = class {
3164
3160
  return this.trialStore;
3165
3161
  this.trialStoreConfig = e;
3166
3162
  const t = this.billing.createTrialStore;
3167
- return this.trialStore = typeof t == "function" ? t.call(this.billing, e) : qe(this.billing.getStorage(), this.billing.paywallId, e), this.trialStore;
3163
+ return this.trialStore = typeof t == "function" ? t.call(this.billing, e) : ze(this.billing.getStorage(), this.billing.paywallId, e), this.trialStore;
3168
3164
  }
3169
3165
  mountAndShow(e, t = {}) {
3170
3166
  const n = t.renew === !0, i = t.authMode, a = e === "auth" || e === "awaiting_payment" || e === "popup_blocked" ? t.checkoutPriceId ?? null : null, l = e === "awaiting_payment" || e === "popup_blocked" ? t.checkoutUrl ?? null : null;
@@ -3180,7 +3176,7 @@ let br = class {
3180
3176
  }), this.emit("open");
3181
3177
  return;
3182
3178
  }
3183
- this.isOpen = !0, this.handle = tt(
3179
+ this.isOpen = !0, this.handle = et(
3184
3180
  lr,
3185
3181
  {
3186
3182
  client: this.billing,
@@ -3306,9 +3302,9 @@ let br = class {
3306
3302
  const t = this.billing.getCachedOffers();
3307
3303
  if (!t) return null;
3308
3304
  const n = N(t, e);
3309
- return n ? Ke(n, {
3305
+ return n ? Ye(n, {
3310
3306
  now: Date.now(),
3311
- readStart: Qe
3307
+ readStart: Je
3312
3308
  }) : null;
3313
3309
  }
3314
3310
  /** Снимок текущего «языка юзера» — proxy над `billing.getUserLanguage()`.
@@ -3900,7 +3896,7 @@ class Mr {
3900
3896
  userMeta: e.userMeta
3901
3897
  });
3902
3898
  n.name = `pw-oauth-${s}`, n.location.replace(i), e.onPopupOpened?.();
3903
- const a = await Ne(n, s), l = await this.transport.request("auth.oauthExchange", { state: s, code: a });
3899
+ const a = await qe(n, s), l = await this.transport.request("auth.oauthExchange", { state: s, code: a });
3904
3900
  return this.applySession("SIGNED_IN", l), l;
3905
3901
  } catch (i) {
3906
3902
  try {
@@ -3990,7 +3986,7 @@ class Or {
3990
3986
  if (e.type === "response") {
3991
3987
  const t = this.pending.get(e.id);
3992
3988
  if (!t) return;
3993
- this.pending.delete(e.id), t.signal?.removeEventListener("abort", t.abortListener), e.ok ? t.resolve(e.result) : t.reject(Fe(e.error));
3989
+ this.pending.delete(e.id), t.signal?.removeEventListener("abort", t.abortListener), e.ok ? t.resolve(e.result) : t.reject(Ne(e.error));
3994
3990
  return;
3995
3991
  }
3996
3992
  if (e.type === "event") {
@@ -4079,7 +4075,7 @@ function jr(r) {
4079
4075
  }
4080
4076
  let W = null;
4081
4077
  function Rr() {
4082
- return W || (W = new Or(() => $e(Ze)), W);
4078
+ return W || (W = new Or(() => Fe(We)), W);
4083
4079
  }
4084
4080
  class Hr extends br {
4085
4081
  constructor(e) {