@spotlightjs/overlay 2.4.0-next.0 → 2.4.0-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -375,8 +375,8 @@ function eN(e) {
375
375
  }
376
376
  function u(N, I, h) {
377
377
  I === void 0 && (I = null);
378
- let p = nN(i ? l().pathname : "/", N, I, h);
379
- return pa(p.pathname.charAt(0) === "/", "relative pathnames are not supported in memory history: " + JSON.stringify(N)), p;
378
+ let O = nN(i ? l().pathname : "/", N, I, h);
379
+ return pa(O.pathname.charAt(0) === "/", "relative pathnames are not supported in memory history: " + JSON.stringify(N)), O;
380
380
  }
381
381
  function c(N) {
382
382
  return typeof N == "string" ? N : oE(N);
@@ -1168,11 +1168,11 @@ const XN = ["onClick", "relative", "reloadDocument", "replace", "state", "target
1168
1168
  } = P.useContext(Wn), I, h = !1;
1169
1169
  if (typeof l == "string" && ZN.test(l) && (I = l, JN))
1170
1170
  try {
1171
- let O = new URL(window.location.href), d = l.startsWith("//") ? new URL(O.protocol + l) : new URL(l), m = Ti(d.pathname, N);
1172
- d.origin === O.origin && m != null ? l = m + d.search + d.hash : h = !0;
1171
+ let p = new URL(window.location.href), d = l.startsWith("//") ? new URL(p.protocol + l) : new URL(l), m = Ti(d.pathname, N);
1172
+ d.origin === p.origin && m != null ? l = m + d.search + d.hash : h = !0;
1173
1173
  } catch {
1174
1174
  }
1175
- let p = CN(l, {
1175
+ let O = CN(l, {
1176
1176
  relative: i
1177
1177
  }), A = qN(l, {
1178
1178
  replace: a,
@@ -1182,13 +1182,13 @@ const XN = ["onClick", "relative", "reloadDocument", "replace", "state", "target
1182
1182
  relative: i,
1183
1183
  unstable_viewTransition: c
1184
1184
  });
1185
- function R(O) {
1186
- r && r(O), O.defaultPrevented || A(O);
1185
+ function R(p) {
1186
+ r && r(p), p.defaultPrevented || A(p);
1187
1187
  }
1188
1188
  return (
1189
1189
  // eslint-disable-next-line jsx-a11y/anchor-has-content
1190
1190
  /* @__PURE__ */ P.createElement("a", Vs({}, f, {
1191
- href: I || p,
1191
+ href: I || O,
1192
1192
  onClick: h || s ? r : R,
1193
1193
  ref: n,
1194
1194
  target: E
@@ -1208,16 +1208,16 @@ const XN = ["onClick", "relative", "reloadDocument", "replace", "state", "target
1208
1208
  relative: c.relative
1209
1209
  }), N = Xn(), I = P.useContext($c), {
1210
1210
  navigator: h
1211
- } = P.useContext(Wn), p = I != null && // Conditional usage is OK here because the usage of a data router is static
1211
+ } = P.useContext(Wn), O = I != null && // Conditional usage is OK here because the usage of a data router is static
1212
1212
  // eslint-disable-next-line react-hooks/rules-of-hooks
1213
- $N(f) && l === !0, A = h.encodeLocation ? h.encodeLocation(f).pathname : f.pathname, R = N.pathname, O = I && I.navigation && I.navigation.location ? I.navigation.location.pathname : null;
1214
- i || (R = R.toLowerCase(), O = O ? O.toLowerCase() : null, A = A.toLowerCase());
1215
- let d = R === A || !a && R.startsWith(A) && R.charAt(A.length) === "/", m = O != null && (O === A || !a && O.startsWith(A) && O.charAt(A.length) === "/"), _ = {
1213
+ $N(f) && l === !0, A = h.encodeLocation ? h.encodeLocation(f).pathname : f.pathname, R = N.pathname, p = I && I.navigation && I.navigation.location ? I.navigation.location.pathname : null;
1214
+ i || (R = R.toLowerCase(), p = p ? p.toLowerCase() : null, A = A.toLowerCase());
1215
+ let d = R === A || !a && R.startsWith(A) && R.charAt(A.length) === "/", m = p != null && (p === A || !a && p.startsWith(A) && p.charAt(A.length) === "/"), _ = {
1216
1216
  isActive: d,
1217
1217
  isPending: m,
1218
- isTransitioning: p
1218
+ isTransitioning: O
1219
1219
  }, C = d ? r : void 0, L;
1220
- typeof s == "function" ? L = s(_) : L = [s, d ? "active" : null, m ? "pending" : null, p ? "transitioning" : null].filter(Boolean).join(" ");
1220
+ typeof s == "function" ? L = s(_) : L = [s, d ? "active" : null, m ? "pending" : null, O ? "transitioning" : null].filter(Boolean).join(" ");
1221
1221
  let g = typeof o == "function" ? o(_) : o;
1222
1222
  return /* @__PURE__ */ P.createElement(me, Vs({}, c, {
1223
1223
  "aria-current": C,
@@ -1853,7 +1853,8 @@ function op({
1853
1853
  isOnline: i,
1854
1854
  setTriggerButtonCount: s,
1855
1855
  fullPage: a,
1856
- showClearEventsButton: o
1856
+ showClearEventsButton: o,
1857
+ skipSidecar: E
1857
1858
  }) {
1858
1859
  return /* @__PURE__ */ T.jsx(ap, { isOpen: t, setOpen: n, fullPage: a, children: /* @__PURE__ */ T.jsxs("div", { className: J("spotlight-debugger", a ? "spotlight-fullscreen" : ""), children: [
1859
1860
  /* @__PURE__ */ T.jsxs("div", { className: "text-primary-200 flex items-center gap-x-2 px-6 py-4", children: [
@@ -1880,7 +1881,7 @@ function op({
1880
1881
  }
1881
1882
  )
1882
1883
  ] }),
1883
- /* @__PURE__ */ T.jsxs(
1884
+ !E && /* @__PURE__ */ T.jsxs(
1884
1885
  "div",
1885
1886
  {
1886
1887
  className: J("ml-2 flex items-center gap-x-2 pl-2 text-xs", i ? "" : "text-red-400"),
@@ -2052,69 +2053,74 @@ function cp({
2052
2053
  sidecarUrl: r,
2053
2054
  anchor: i,
2054
2055
  fullPage: s = !1,
2055
- showClearEventsButton: a = !0
2056
+ showClearEventsButton: a = !0,
2057
+ skipSidecar: o = !1
2056
2058
  }) {
2057
- const [o, E] = P.useState({}), [l, u] = P.useState(!1), [c, f] = P.useState({ count: 0, severe: !1 }), [N, I] = P.useState(e);
2058
- ee("App rerender", o, l, c, N);
2059
- const h = P.useMemo(() => {
2060
- const O = /* @__PURE__ */ new Map();
2061
- for (const d of n)
2062
- if (d.forwardedContentType)
2063
- for (const m of d.forwardedContentType) {
2064
- let _ = O.get(m);
2065
- _ || (_ = [], O.set(m, _)), _.push(d);
2059
+ const [E, l] = P.useState({}), [u, c] = P.useState(!1), [f, N] = P.useState({ count: 0, severe: !1 }), [I, h] = P.useState(e);
2060
+ ee("App rerender", E, u, f, I);
2061
+ const O = P.useMemo(() => {
2062
+ const d = /* @__PURE__ */ new Map();
2063
+ for (const m of n)
2064
+ if (m.forwardedContentType)
2065
+ for (const _ of m.forwardedContentType) {
2066
+ let C = d.get(_);
2067
+ C || (C = [], d.set(_, C)), C.push(m);
2066
2068
  }
2067
- return O;
2069
+ return d;
2068
2070
  }, [n]);
2069
2071
  P.useEffect(
2070
- () => Ap(r, h, E, u),
2071
- [r, h]
2072
+ () => o ? () => {
2073
+ } : Ap(r, O, l, c),
2074
+ [r, O, o]
2072
2075
  );
2073
- const p = P.useMemo(() => Gi(), []), A = _a(), R = P.useMemo(() => (ee("useMemo: initializing event handlers"), { clearEvents: async () => {
2074
- const { origin: L } = new URL(r), g = `${L}/clear`;
2076
+ const A = P.useMemo(() => Gi(), []), R = _a(), p = P.useMemo(() => (ee("useMemo: initializing event handlers"), { clearEvents: async () => {
2077
+ if (o)
2078
+ return;
2079
+ const { origin: g } = new URL(r), S = `${g}/clear`;
2075
2080
  try {
2076
- await fetch(g, {
2081
+ await fetch(S, {
2077
2082
  method: "DELETE",
2078
2083
  mode: "cors"
2079
2084
  });
2080
- } catch (S) {
2085
+ } catch (D) {
2081
2086
  console.error(
2082
- "Spotlight can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",
2083
- S
2087
+ "Spotlight can't connect to Sidecar - is it running? See: https://spotlightjs.com/sidecar/npx/",
2088
+ D
2084
2089
  );
2085
2090
  return;
2086
2091
  }
2087
- for (const S of n)
2088
- E((D) => ({ ...D, [S.name]: [] })), S.reset && S.reset();
2089
- }, onOpen: (L) => {
2090
- ee("Open"), I(!0), L.detail.path && A(L.detail.path);
2092
+ for (const D of n)
2093
+ l((M) => ({ ...M, [D.name]: [] })), D.reset && D.reset();
2094
+ }, onOpen: (g) => {
2095
+ ee("Open"), h(!0), g.detail.path && R(g.detail.path);
2091
2096
  }, onClose: () => {
2092
- ee("Close"), I(!1);
2093
- }, onNavigate: (L) => {
2094
- ee("Navigate"), A(L.detail);
2097
+ ee("Close"), h(!1);
2098
+ }, onNavigate: (g) => {
2099
+ ee("Navigate"), R(g.detail);
2095
2100
  }, onToggle: () => {
2096
- ee("Toggle"), I((L) => !L);
2097
- } }), [n, A, r]);
2098
- return uR(["ctrlKey", "F12"], R.onToggle), P.useEffect(() => (ee("useEffect: Adding event listeners"), p.addEventListener("open", R.onOpen), p.addEventListener("close", R.onClose), p.addEventListener("navigate", R.onNavigate), p.addEventListener("clearEvents", R.clearEvents), () => {
2099
- ee("useEffect[destructor]: Removing event listeners"), p.removeEventListener("open", R.onOpen), p.removeEventListener("close", R.onClose), p.removeEventListener("navigate", R.onNavigate), p.removeEventListener("clearEvents", R.clearEvents);
2100
- }), [p, R]), P.useEffect(() => {
2101
- N ? (p.dispatchEvent(new CustomEvent("opened")), document.body.style.overflow = "hidden") : (p.dispatchEvent(new CustomEvent("closed")), document.body.style.overflow = "auto");
2102
- }, [N, p]), P.useEffect(() => {
2103
- c.severe && p.dispatchEvent(
2104
- new CustomEvent("severeEventCount", { detail: { count: c.count } })
2101
+ ee("Toggle"), h((g) => !g);
2102
+ } }), [n, R, r, o]);
2103
+ return uR(["ctrlKey", "F12"], p.onToggle), P.useEffect(() => (ee("useEffect: Adding event listeners"), A.addEventListener("open", p.onOpen), A.addEventListener("close", p.onClose), A.addEventListener("navigate", p.onNavigate), A.addEventListener("clearEvents", p.clearEvents), () => {
2104
+ ee("useEffect[destructor]: Removing event listeners"), A.removeEventListener("open", p.onOpen), A.removeEventListener("close", p.onClose), A.removeEventListener("navigate", p.onNavigate), A.removeEventListener("clearEvents", p.clearEvents);
2105
+ }), [A, p]), P.useEffect(() => {
2106
+ I ? (A.dispatchEvent(new CustomEvent("opened")), document.body.style.overflow = "hidden") : (A.dispatchEvent(new CustomEvent("closed")), document.body.style.overflow = "auto");
2107
+ }, [I, A]), P.useEffect(() => {
2108
+ f.severe && A.dispatchEvent(
2109
+ new CustomEvent("severeEventCount", { detail: { count: f.count } })
2105
2110
  );
2106
- }, [c, p]), /* @__PURE__ */ T.jsxs(T.Fragment, { children: [
2107
- t && /* @__PURE__ */ T.jsx(up, { isOpen: N, setOpen: I, notificationCount: c, anchor: i }),
2111
+ }, [f, A]), /* @__PURE__ */ T.jsxs(T.Fragment, { children: [
2112
+ t && /* @__PURE__ */ T.jsx(up, { isOpen: I, setOpen: h, notificationCount: f, anchor: i }),
2108
2113
  /* @__PURE__ */ T.jsx(
2109
2114
  op,
2110
2115
  {
2111
- isOpen: s || N,
2112
- setOpen: I,
2113
- isOnline: l,
2116
+ isOpen: s || I,
2117
+ setOpen: h,
2118
+ isOnline: u,
2114
2119
  integrations: n,
2115
- integrationData: o,
2116
- setTriggerButtonCount: f,
2120
+ integrationData: E,
2121
+ setTriggerButtonCount: N,
2117
2122
  fullPage: s,
2123
+ skipSidecar: o,
2118
2124
  showClearEventsButton: a
2119
2125
  }
2120
2126
  )
@@ -2200,6 +2206,7 @@ class Np {
2200
2206
  t.forEach((n) => this.pushEvent(n));
2201
2207
  }
2202
2208
  setSidecarUrl(t) {
2209
+ t || (this.contextLinesProvider = null);
2203
2210
  const { origin: n } = new URL(t);
2204
2211
  this.contextLinesProvider = n + bu;
2205
2212
  }
@@ -2348,18 +2355,18 @@ class Np {
2348
2355
  ee("Skipping contextlines request for", n);
2349
2356
  return;
2350
2357
  }
2351
- n.stacktrace.frames.reverse();
2352
- try {
2353
- const s = await cR()(this.contextLinesProvider, {
2354
- method: "PUT",
2355
- body: JSON.stringify(n.stacktrace)
2356
- });
2357
- if (!s.ok || s.status !== 200)
2358
- return;
2359
- const a = await s.json();
2360
- n.stacktrace = a;
2361
- } catch {
2362
- }
2358
+ if (n.stacktrace.frames.reverse(), this.contextLinesProvider)
2359
+ try {
2360
+ const s = await cR()(this.contextLinesProvider, {
2361
+ method: "PUT",
2362
+ body: JSON.stringify(n.stacktrace)
2363
+ });
2364
+ if (!s.ok || s.status !== 200)
2365
+ return;
2366
+ const a = await s.json();
2367
+ n.stacktrace = a;
2368
+ } catch {
2369
+ }
2363
2370
  })
2364
2371
  );
2365
2372
  }
@@ -2678,15 +2685,15 @@ var fR = { exports: {} };
2678
2685
  (function(n, r) {
2679
2686
  e.exports = r();
2680
2687
  })(ce, function() {
2681
- var n = 1e3, r = 6e4, i = 36e5, s = "millisecond", a = "second", o = "minute", E = "hour", l = "day", u = "week", c = "month", f = "quarter", N = "year", I = "date", h = "Invalid Date", p = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, A = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, R = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(v) {
2688
+ var n = 1e3, r = 6e4, i = 36e5, s = "millisecond", a = "second", o = "minute", E = "hour", l = "day", u = "week", c = "month", f = "quarter", N = "year", I = "date", h = "Invalid Date", O = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, A = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, R = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(v) {
2682
2689
  var U = ["th", "st", "nd", "rd"], w = v % 100;
2683
2690
  return "[" + v + (U[(w - 20) % 10] || U[w] || U[0]) + "]";
2684
- } }, O = function(v, U, w) {
2691
+ } }, p = function(v, U, w) {
2685
2692
  var F = String(v);
2686
2693
  return !F || F.length >= U ? v : "" + Array(U + 1 - F.length).join(w) + v;
2687
- }, d = { s: O, z: function(v) {
2694
+ }, d = { s: p, z: function(v) {
2688
2695
  var U = -v.utcOffset(), w = Math.abs(U), F = Math.floor(w / 60), Y = w % 60;
2689
- return (U <= 0 ? "+" : "-") + O(F, 2, "0") + ":" + O(Y, 2, "0");
2696
+ return (U <= 0 ? "+" : "-") + p(F, 2, "0") + ":" + p(Y, 2, "0");
2690
2697
  }, m: function v(U, w) {
2691
2698
  if (U.date() < w.date())
2692
2699
  return -v(w, U);
@@ -2741,7 +2748,7 @@ var fR = { exports: {} };
2741
2748
  if (Y instanceof Date)
2742
2749
  return new Date(Y);
2743
2750
  if (typeof Y == "string" && !/Z$/i.test(Y)) {
2744
- var B = Y.match(p);
2751
+ var B = Y.match(O);
2745
2752
  if (B) {
2746
2753
  var V = B[2] - 1 || 0, X = (B[7] || "0").substring(0, 3);
2747
2754
  return y ? new Date(Date.UTC(B[1], V, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, X)) : new Date(B[1], V, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, X);
@@ -2977,20 +2984,20 @@ var dR = { exports: {} };
2977
2984
  return s.fromToBase(l, u, c, f);
2978
2985
  }
2979
2986
  i.en.relativeTime = a, s.fromToBase = function(l, u, c, f, N) {
2980
- for (var I, h, p, A = c.$locale().relativeTime || a, R = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], O = R.length, d = 0; d < O; d += 1) {
2987
+ for (var I, h, O, A = c.$locale().relativeTime || a, R = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], p = R.length, d = 0; d < p; d += 1) {
2981
2988
  var m = R[d];
2982
2989
  m.d && (I = f ? i(l).diff(c, m.d, !0) : c.diff(l, m.d, !0));
2983
2990
  var _ = (n.rounding || Math.round)(Math.abs(I));
2984
- if (p = I > 0, _ <= m.r || !m.r) {
2991
+ if (O = I > 0, _ <= m.r || !m.r) {
2985
2992
  _ <= 1 && d > 0 && (m = R[d - 1]);
2986
2993
  var C = A[m.l];
2987
- N && (_ = N("" + _)), h = typeof C == "string" ? C.replace("%d", _) : C(_, u, m.l, p);
2994
+ N && (_ = N("" + _)), h = typeof C == "string" ? C.replace("%d", _) : C(_, u, m.l, O);
2988
2995
  break;
2989
2996
  }
2990
2997
  }
2991
2998
  if (u)
2992
2999
  return h;
2993
- var L = p ? A.future : A.past;
3000
+ var L = O ? A.future : A.past;
2994
3001
  return typeof L == "function" ? L(h) : L.replace("%s", h);
2995
3002
  }, s.to = function(l, u) {
2996
3003
  return o(l, u, this, !0);
@@ -3214,7 +3221,7 @@ function hl(e) {
3214
3221
  }
3215
3222
  );
3216
3223
  }
3217
- const oO = P.lazy(() => import("./main-1dfdd51f.js").then((e) => e.m)), EO = () => {
3224
+ const oO = P.lazy(() => import("./main-3ec58c54.js").then((e) => e.m)), EO = () => {
3218
3225
  };
3219
3226
  function Eo({
3220
3227
  data: e,
@@ -3576,9 +3583,9 @@ var IR = { exports: {} };
3576
3583
  E === void 0 && (E = "YYYY-MM-DDTHH:mm:ssZ");
3577
3584
  var l = this.$locale().formats, u = function(c, f) {
3578
3585
  return c.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(N, I, h) {
3579
- var p = h && h.toUpperCase();
3580
- return I || f[h] || n[h] || f[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(A, R, O) {
3581
- return R || O.slice(1);
3586
+ var O = h && h.toUpperCase();
3587
+ return I || f[h] || n[h] || f[O].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(A, R, p) {
3588
+ return R || p.slice(1);
3582
3589
  });
3583
3590
  });
3584
3591
  }(E, l === void 0 ? {} : l);
@@ -4319,16 +4326,16 @@ function tI(e, t, n, r, i, s, a, o) {
4319
4326
  const E = e / 2 + r + o, l = {
4320
4327
  x: t + e / 2 - s / 2,
4321
4328
  y: n + e / 2 + a / 2
4322
- }, u = Object.values(i).reduce((M, v) => M + v, 0), c = -90, f = (M) => M / u * 360, [N, I, h, p, A] = [
4329
+ }, u = Object.values(i).reduce((M, v) => M + v, 0), c = -90, f = (M) => M / u * 360, [N, I, h, O, A] = [
4323
4330
  i.lcp,
4324
4331
  i.fcp,
4325
4332
  i.fid,
4326
4333
  i.cls,
4327
4334
  i.ttfb
4328
- ].map(f), R = l.x + E * Math.cos((c + N / 2) * Math.PI / 180), O = l.y + E * Math.sin((c + N / 2) * Math.PI / 180), d = l.x + E * Math.cos((c + N + I / 2) * Math.PI / 180), m = l.y + E * Math.sin((c + N + I / 2) * Math.PI / 180), _ = l.x + E * Math.cos((c + N + I + h / 2) * Math.PI / 180), C = l.y + E * Math.sin((c + N + I + h / 2) * Math.PI / 180), L = l.x + E * Math.cos((c + N + I + h + p / 2) * Math.PI / 180), g = l.y + E * Math.sin((c + N + I + h + p / 2) * Math.PI / 180), S = l.x - 12 + E * Math.cos((c + N + I + h + p + A / 2) * Math.PI / 180), D = l.y + E * Math.sin((c + N + I + h + p + A / 2) * Math.PI / 180);
4335
+ ].map(f), R = l.x + E * Math.cos((c + N / 2) * Math.PI / 180), p = l.y + E * Math.sin((c + N / 2) * Math.PI / 180), d = l.x + E * Math.cos((c + N + I / 2) * Math.PI / 180), m = l.y + E * Math.sin((c + N + I / 2) * Math.PI / 180), _ = l.x + E * Math.cos((c + N + I + h / 2) * Math.PI / 180), C = l.y + E * Math.sin((c + N + I + h / 2) * Math.PI / 180), L = l.x + E * Math.cos((c + N + I + h + O / 2) * Math.PI / 180), g = l.y + E * Math.sin((c + N + I + h + O / 2) * Math.PI / 180), S = l.x - 12 + E * Math.cos((c + N + I + h + O + A / 2) * Math.PI / 180), D = l.y + E * Math.sin((c + N + I + h + O + A / 2) * Math.PI / 180);
4329
4336
  return {
4330
4337
  lcpX: R,
4331
- lcpY: O,
4338
+ lcpY: p,
4332
4339
  fcpX: d,
4333
4340
  fcpY: m,
4334
4341
  fidX: _,
@@ -4433,12 +4440,12 @@ function sI({
4433
4440
  onBlur: u,
4434
4441
  ...c
4435
4442
  }) {
4436
- const f = n / 2, N = n / 4, I = n / 2 - r / 2, h = 2 * Math.PI * I, p = P.useMemo(() => {
4437
- const A = t.reduce((O, d) => O + d, 0);
4443
+ const f = n / 2, N = n / 4, I = n / 2 - r / 2, h = 2 * Math.PI * I, O = P.useMemo(() => {
4444
+ const A = t.reduce((p, d) => p + d, 0);
4438
4445
  let R = rI;
4439
- return t.flatMap((O, d) => {
4440
- const m = Math.min(Math.max(e[d], 0), O), _ = e.length > 1 ? iI : 0, C = (1 - Math.max(O - _, 0) / A) * h, L = (1 - Math.max(m - _, 0) / A) * h, g = R;
4441
- R += 360 * O / A;
4446
+ return t.flatMap((p, d) => {
4447
+ const m = Math.min(Math.max(e[d], 0), p), _ = e.length > 1 ? iI : 0, C = (1 - Math.max(p - _, 0) / A) * h, L = (1 - Math.max(m - _, 0) / A) * h, g = R;
4448
+ R += 360 * p / A;
4442
4449
  const S = I + r / 2, D = `${S}-${o[d]}-${a[d]}`;
4443
4450
  return [
4444
4451
  /* @__PURE__ */ T.jsx(
@@ -4504,7 +4511,7 @@ function sI({
4504
4511
  ]);
4505
4512
  return /* @__PURE__ */ T.jsxs("svg", { className: "relative", role: "img", height: I * 2 + r, width: I * 2 + r, ...c, children: [
4506
4513
  /* @__PURE__ */ T.jsx("title", { children: "Web Vitals Breakdown" }),
4507
- p,
4514
+ O,
4508
4515
  /* @__PURE__ */ T.jsx(
4509
4516
  "foreignObject",
4510
4517
  {
@@ -4623,7 +4630,7 @@ const EI = ({
4623
4630
  N({ x: D, y: M });
4624
4631
  }
4625
4632
  }
4626
- }), { lcpX: p, lcpY: A, fcpX: R, fcpY: O, fidX: d, fidY: m, clsX: _, clsY: C, ttfbX: L, ttfbY: g } = tI(
4633
+ }), { lcpX: O, lcpY: A, fcpX: R, fcpY: p, fidX: d, fidY: m, clsX: _, clsY: C, ttfbX: L, ttfbY: g } = tI(
4627
4634
  r,
4628
4635
  s,
4629
4636
  a,
@@ -4656,7 +4663,7 @@ const EI = ({
4656
4663
  {
4657
4664
  webVital: "lcp",
4658
4665
  coordinates: {
4659
- x: p,
4666
+ x: O,
4660
4667
  y: A
4661
4668
  }
4662
4669
  }
@@ -4667,7 +4674,7 @@ const EI = ({
4667
4674
  webVital: "fcp",
4668
4675
  coordinates: {
4669
4676
  x: R,
4670
- y: O
4677
+ y: p
4671
4678
  }
4672
4679
  }
4673
4680
  ),
@@ -13900,8 +13907,8 @@ var FR = { exports: {} };
13900
13907
  var I = u[N];
13901
13908
  if (I.isComplete) {
13902
13909
  if (I.finish(), I.data !== a.fail) {
13903
- for (var h = I.wantedBy, p = h.length; p--; ) {
13904
- var A = h[p];
13910
+ for (var h = I.wantedBy, O = h.length; O--; ) {
13911
+ var A = h[O];
13905
13912
  this.complete(A, I);
13906
13913
  }
13907
13914
  if (I.reference === this.index) {
@@ -13917,8 +13924,8 @@ var FR = { exports: {} };
13917
13924
  }
13918
13925
  if (c[R]) {
13919
13926
  if (c[R].push(I), f.hasOwnProperty(R))
13920
- for (var O = f[R], p = 0; p < O.length; p++) {
13921
- var d = O[p];
13927
+ for (var p = f[R], O = 0; O < p.length; O++) {
13928
+ var d = p[O];
13922
13929
  this.complete(I, d);
13923
13930
  }
13924
13931
  } else
@@ -13978,16 +13985,16 @@ var FR = { exports: {} };
13978
13985
  var N = this.index - this.lastLineBreak, I = String(this.line).length;
13979
13986
  return u += " at line " + this.line + " col " + N + `:
13980
13987
 
13981
- `, u += f.map(function(p, A) {
13982
- return h(this.line - f.length + A + 1, I) + " " + p;
13988
+ `, u += f.map(function(O, A) {
13989
+ return h(this.line - f.length + A + 1, I) + " " + O;
13983
13990
  }, this).join(`
13984
13991
  `), u += `
13985
13992
  ` + h("", I + N) + `^
13986
13993
  `, u;
13987
13994
  } else
13988
13995
  return u + " at index " + (this.index - 1);
13989
- function h(p, A) {
13990
- var R = String(p);
13996
+ function h(O, A) {
13997
+ var R = String(O);
13991
13998
  return Array(A - R.length + 1).join(" ") + R;
13992
13999
  }
13993
14000
  };
@@ -14023,9 +14030,9 @@ var FR = { exports: {} };
14023
14030
  this.options.keepHistory || delete this.table[this.current - 1];
14024
14031
  var I = this.current + 1, h = new r(this.grammar, I);
14025
14032
  this.table.push(h);
14026
- for (var p = c.text !== void 0 ? c.text : c.value, A = u.constructor === s ? c.value : c, R = N.scannable, O = R.length; O--; ) {
14027
- var d = R[O], m = d.rule.symbols[d.dot];
14028
- if (m.test ? m.test(A) : m.type ? m.type === c.type : m.literal === p) {
14033
+ for (var O = c.text !== void 0 ? c.text : c.value, A = u.constructor === s ? c.value : c, R = N.scannable, p = R.length; p--; ) {
14034
+ var d = R[p], m = d.rule.symbols[d.dot];
14035
+ if (m.test ? m.test(A) : m.type ? m.type === c.type : m.literal === O) {
14029
14036
  var _ = d.nextState({ data: A, token: c, isToken: !0, reference: I - 1 });
14030
14037
  h.states.push(_);
14031
14038
  }
@@ -14046,8 +14053,8 @@ var FR = { exports: {} };
14046
14053
  }, a.prototype.reportErrorCommon = function(l, u) {
14047
14054
  var c = [];
14048
14055
  c.push(l);
14049
- var f = this.table.length - 2, N = this.table[f], I = N.states.filter(function(p) {
14050
- var A = p.rule.symbols[p.dot];
14056
+ var f = this.table.length - 2, N = this.table[f], I = N.states.filter(function(O) {
14057
+ var A = O.rule.symbols[O.dot];
14051
14058
  return A && typeof A != "string";
14052
14059
  });
14053
14060
  if (I.length === 0)
@@ -14056,12 +14063,12 @@ var FR = { exports: {} };
14056
14063
  else {
14057
14064
  c.push("Unexpected " + u + `. Instead, I was expecting to see one of the following:
14058
14065
  `);
14059
- var h = I.map(function(p) {
14060
- return this.buildFirstStateStack(p, []) || [p];
14066
+ var h = I.map(function(O) {
14067
+ return this.buildFirstStateStack(O, []) || [O];
14061
14068
  }, this);
14062
- h.forEach(function(p) {
14063
- var A = p[0], R = A.rule.symbols[A.dot], O = this.getSymbolDisplay(R);
14064
- c.push("A " + O + " based on:"), this.displayStateStack(p, c);
14069
+ h.forEach(function(O) {
14070
+ var A = O[0], R = A.rule.symbols[A.dot], p = this.getSymbolDisplay(R);
14071
+ c.push("A " + p + " based on:"), this.displayStateStack(O, c);
14065
14072
  }, this);
14066
14073
  }
14067
14074
  return c.push(""), c.join(`
@@ -15686,15 +15693,15 @@ const n1 = ({
15686
15693
  },
15687
15694
  query: E
15688
15695
  }) => {
15689
- var R, O;
15696
+ var R, p;
15690
15697
  const { spanId: l } = Mr(), u = P.useRef(null), [c, f] = P.useState(
15691
15698
  e.transaction && s > 1 && r !== 1 || r >= 15
15692
- ), [N, I] = P.useState(!1), h = Or(e.start_timestamp, e.timestamp), p = (d) => {
15699
+ ), [N, I] = P.useState(!1), h = Or(e.start_timestamp, e.timestamp), O = (d) => {
15693
15700
  if (u.current) {
15694
15701
  const m = u.current.getBoundingClientRect(), C = (d.clientX - m.left) / m.width * 100;
15695
15702
  o(C);
15696
15703
  }
15697
- }, A = E ? e.span_id.includes(E) || ((R = e.op) == null ? void 0 : R.includes(E)) || ((O = e.description) == null ? void 0 : O.includes(E)) : !1;
15704
+ }, A = E ? e.span_id.includes(E) || ((R = e.op) == null ? void 0 : R.includes(E)) || ((p = e.description) == null ? void 0 : p.includes(E)) : !1;
15698
15705
  return /* @__PURE__ */ T.jsxs("li", { className: "pl-4", ref: u, children: [
15699
15706
  /* @__PURE__ */ T.jsxs(
15700
15707
  me,
@@ -15759,7 +15766,7 @@ const n1 = ({
15759
15766
  left: `${a}%`
15760
15767
  },
15761
15768
  children: [
15762
- /* @__PURE__ */ T.jsx(t1, { setIsResizing: I, isResizing: N, handleResize: p }),
15769
+ /* @__PURE__ */ T.jsx(t1, { setIsResizing: I, isResizing: N, handleResize: O }),
15763
15770
  /* @__PURE__ */ T.jsx(
15764
15771
  "div",
15765
15772
  {
@@ -16301,9 +16308,9 @@ var RE = {}, KR = { exports: {} }, it = {}, JR = { exports: {} }, ZR = {};
16301
16308
  return a.now() - o;
16302
16309
  };
16303
16310
  }
16304
- var E = [], l = [], u = 1, c = null, f = 3, N = !1, I = !1, h = !1, p = typeof setTimeout == "function" ? setTimeout : null, A = typeof clearTimeout == "function" ? clearTimeout : null, R = typeof setImmediate < "u" ? setImmediate : null;
16311
+ var E = [], l = [], u = 1, c = null, f = 3, N = !1, I = !1, h = !1, O = typeof setTimeout == "function" ? setTimeout : null, A = typeof clearTimeout == "function" ? clearTimeout : null, R = typeof setImmediate < "u" ? setImmediate : null;
16305
16312
  typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling);
16306
- function O(y) {
16313
+ function p(y) {
16307
16314
  for (var B = n(l); B !== null; ) {
16308
16315
  if (B.callback === null)
16309
16316
  r(l);
@@ -16315,7 +16322,7 @@ var RE = {}, KR = { exports: {} }, it = {}, JR = { exports: {} }, ZR = {};
16315
16322
  }
16316
16323
  }
16317
16324
  function d(y) {
16318
- if (h = !1, O(y), !I)
16325
+ if (h = !1, p(y), !I)
16319
16326
  if (n(E) !== null)
16320
16327
  I = !0, F(m);
16321
16328
  else {
@@ -16327,12 +16334,12 @@ var RE = {}, KR = { exports: {} }, it = {}, JR = { exports: {} }, ZR = {};
16327
16334
  I = !1, h && (h = !1, A(L), L = -1), N = !0;
16328
16335
  var V = f;
16329
16336
  try {
16330
- for (O(B), c = n(E); c !== null && (!(c.expirationTime > B) || y && !D()); ) {
16337
+ for (p(B), c = n(E); c !== null && (!(c.expirationTime > B) || y && !D()); ) {
16331
16338
  var X = c.callback;
16332
16339
  if (typeof X == "function") {
16333
16340
  c.callback = null, f = c.priorityLevel;
16334
16341
  var K = X(c.expirationTime <= B);
16335
- B = e.unstable_now(), typeof K == "function" ? c.callback = K : c === n(E) && r(E), O(B);
16342
+ B = e.unstable_now(), typeof K == "function" ? c.callback = K : c === n(E) && r(E), p(B);
16336
16343
  } else
16337
16344
  r(E);
16338
16345
  c = n(E);
@@ -16377,13 +16384,13 @@ var RE = {}, KR = { exports: {} }, it = {}, JR = { exports: {} }, ZR = {};
16377
16384
  };
16378
16385
  } else
16379
16386
  v = function() {
16380
- p(M, 0);
16387
+ O(M, 0);
16381
16388
  };
16382
16389
  function F(y) {
16383
16390
  C = y, _ || (_ = !0, v());
16384
16391
  }
16385
16392
  function Y(y, B) {
16386
- L = p(function() {
16393
+ L = O(function() {
16387
16394
  y(e.unstable_now());
16388
16395
  }, B);
16389
16396
  }
@@ -18228,12 +18235,12 @@ function Mo(e, t, n, r, i) {
18228
18235
  case "pointerup":
18229
18236
  N = QT;
18230
18237
  }
18231
- var h = (t & 4) !== 0, p = !h && e === "scroll", A = h ? f !== null ? f + "Capture" : null : f;
18238
+ var h = (t & 4) !== 0, O = !h && e === "scroll", A = h ? f !== null ? f + "Capture" : null : f;
18232
18239
  h = [];
18233
- for (var R = l, O; R !== null; ) {
18234
- O = R;
18235
- var d = O.stateNode;
18236
- if (O.tag === 5 && d !== null && (O = d, A !== null && (d = Si(R, A), d != null && h.push(_i(R, d, O)))), p)
18240
+ for (var R = l, p; R !== null; ) {
18241
+ p = R;
18242
+ var d = p.stateNode;
18243
+ if (p.tag === 5 && d !== null && (p = d, A !== null && (d = Si(R, A), d != null && h.push(_i(R, d, p)))), O)
18237
18244
  break;
18238
18245
  R = R.return;
18239
18246
  }
@@ -18244,17 +18251,17 @@ function Mo(e, t, n, r, i) {
18244
18251
  e: {
18245
18252
  if (f = e === "mouseover" || e === "pointerover", N = e === "mouseout" || e === "pointerout", f && n !== PE && (I = n.relatedTarget || n.fromElement) && (gn(I) || I[Ht]))
18246
18253
  break e;
18247
- if ((N || f) && (f = u.window === u ? u : (f = u.ownerDocument) ? f.defaultView || f.parentWindow : window, N ? (I = n.relatedTarget || n.toElement, N = l, I = I ? gn(I) : null, I !== null && (p = Zn(I), I !== p || I.tag !== 5 && I.tag !== 6) && (I = null)) : (N = null, I = l), N !== I)) {
18248
- if (h = ZT, d = "onMouseLeave", A = "onMouseEnter", R = "mouse", (e === "pointerout" || e === "pointerover") && (h = QT, d = "onPointerLeave", A = "onPointerEnter", R = "pointer"), p = N == null ? f : sr(N), O = I == null ? f : sr(I), f = new h(d, R + "leave", N, n, u), f.target = p, f.relatedTarget = O, d = null, gn(u) === l && (h = new h(A, R + "enter", I, n, u), h.target = O, h.relatedTarget = p, d = h), p = d, N && I)
18254
+ if ((N || f) && (f = u.window === u ? u : (f = u.ownerDocument) ? f.defaultView || f.parentWindow : window, N ? (I = n.relatedTarget || n.toElement, N = l, I = I ? gn(I) : null, I !== null && (O = Zn(I), I !== O || I.tag !== 5 && I.tag !== 6) && (I = null)) : (N = null, I = l), N !== I)) {
18255
+ if (h = ZT, d = "onMouseLeave", A = "onMouseEnter", R = "mouse", (e === "pointerout" || e === "pointerover") && (h = QT, d = "onPointerLeave", A = "onPointerEnter", R = "pointer"), O = N == null ? f : sr(N), p = I == null ? f : sr(I), f = new h(d, R + "leave", N, n, u), f.target = O, f.relatedTarget = p, d = null, gn(u) === l && (h = new h(A, R + "enter", I, n, u), h.target = p, h.relatedTarget = O, d = h), O = d, N && I)
18249
18256
  t: {
18250
- for (h = N, A = I, R = 0, O = h; O; O = qn(O))
18257
+ for (h = N, A = I, R = 0, p = h; p; p = qn(p))
18251
18258
  R++;
18252
- for (O = 0, d = A; d; d = qn(d))
18253
- O++;
18254
- for (; 0 < R - O; )
18259
+ for (p = 0, d = A; d; d = qn(d))
18260
+ p++;
18261
+ for (; 0 < R - p; )
18255
18262
  h = qn(h), R--;
18256
- for (; 0 < O - R; )
18257
- A = qn(A), O--;
18263
+ for (; 0 < p - R; )
18264
+ A = qn(A), p--;
18258
18265
  for (; R--; ) {
18259
18266
  if (h === A || A !== null && h === A.alternate)
18260
18267
  break t;
@@ -18264,7 +18271,7 @@ function Mo(e, t, n, r, i) {
18264
18271
  }
18265
18272
  else
18266
18273
  h = null;
18267
- N !== null && EA(c, f, N, h, !1), I !== null && p !== null && EA(c, p, I, h, !0);
18274
+ N !== null && EA(c, f, N, h, !1), I !== null && O !== null && EA(c, O, I, h, !0);
18268
18275
  }
18269
18276
  }
18270
18277
  e: {
@@ -18897,8 +18904,8 @@ function OA(e) {
18897
18904
  function ef(e) {
18898
18905
  function t(A, R) {
18899
18906
  if (e) {
18900
- var O = A.deletions;
18901
- O === null ? (A.deletions = [R], A.flags |= 16) : O.push(R);
18907
+ var p = A.deletions;
18908
+ p === null ? (A.deletions = [R], A.flags |= 16) : p.push(R);
18902
18909
  }
18903
18910
  }
18904
18911
  function n(A, R) {
@@ -18916,117 +18923,117 @@ function ef(e) {
18916
18923
  function i(A, R) {
18917
18924
  return A = cn(A, R), A.index = 0, A.sibling = null, A;
18918
18925
  }
18919
- function s(A, R, O) {
18920
- return A.index = O, e ? (O = A.alternate, O !== null ? (O = O.index, O < R ? (A.flags |= 2, R) : O) : (A.flags |= 2, R)) : (A.flags |= 1048576, R);
18926
+ function s(A, R, p) {
18927
+ return A.index = p, e ? (p = A.alternate, p !== null ? (p = p.index, p < R ? (A.flags |= 2, R) : p) : (A.flags |= 2, R)) : (A.flags |= 1048576, R);
18921
18928
  }
18922
18929
  function a(A) {
18923
18930
  return e && A.alternate === null && (A.flags |= 2), A;
18924
18931
  }
18925
- function o(A, R, O, d) {
18926
- return R === null || R.tag !== 6 ? (R = Bo(O, A.mode, d), R.return = A, R) : (R = i(R, O), R.return = A, R);
18932
+ function o(A, R, p, d) {
18933
+ return R === null || R.tag !== 6 ? (R = Bo(p, A.mode, d), R.return = A, R) : (R = i(R, p), R.return = A, R);
18927
18934
  }
18928
- function E(A, R, O, d) {
18929
- var m = O.type;
18930
- return m === tr ? u(A, R, O.props.children, d, O.key) : R !== null && (R.elementType === m || typeof m == "object" && m !== null && m.$$typeof === Jt && OA(m) === R.type) ? (d = i(R, O.props), d.ref = Xr(A, R, O), d.return = A, d) : (d = ws(O.type, O.key, O.props, null, A.mode, d), d.ref = Xr(A, R, O), d.return = A, d);
18935
+ function E(A, R, p, d) {
18936
+ var m = p.type;
18937
+ return m === tr ? u(A, R, p.props.children, d, p.key) : R !== null && (R.elementType === m || typeof m == "object" && m !== null && m.$$typeof === Jt && OA(m) === R.type) ? (d = i(R, p.props), d.ref = Xr(A, R, p), d.return = A, d) : (d = ws(p.type, p.key, p.props, null, A.mode, d), d.ref = Xr(A, R, p), d.return = A, d);
18931
18938
  }
18932
- function l(A, R, O, d) {
18933
- return R === null || R.tag !== 4 || R.stateNode.containerInfo !== O.containerInfo || R.stateNode.implementation !== O.implementation ? (R = Fo(O, A.mode, d), R.return = A, R) : (R = i(R, O.children || []), R.return = A, R);
18939
+ function l(A, R, p, d) {
18940
+ return R === null || R.tag !== 4 || R.stateNode.containerInfo !== p.containerInfo || R.stateNode.implementation !== p.implementation ? (R = Fo(p, A.mode, d), R.return = A, R) : (R = i(R, p.children || []), R.return = A, R);
18934
18941
  }
18935
- function u(A, R, O, d, m) {
18936
- return R === null || R.tag !== 7 ? (R = xn(O, A.mode, d, m), R.return = A, R) : (R = i(R, O), R.return = A, R);
18942
+ function u(A, R, p, d, m) {
18943
+ return R === null || R.tag !== 7 ? (R = xn(p, A.mode, d, m), R.return = A, R) : (R = i(R, p), R.return = A, R);
18937
18944
  }
18938
- function c(A, R, O) {
18945
+ function c(A, R, p) {
18939
18946
  if (typeof R == "string" && R !== "" || typeof R == "number")
18940
- return R = Bo("" + R, A.mode, O), R.return = A, R;
18947
+ return R = Bo("" + R, A.mode, p), R.return = A, R;
18941
18948
  if (typeof R == "object" && R !== null) {
18942
18949
  switch (R.$$typeof) {
18943
18950
  case $i:
18944
- return O = ws(R.type, R.key, R.props, null, A.mode, O), O.ref = Xr(A, null, R), O.return = A, O;
18951
+ return p = ws(R.type, R.key, R.props, null, A.mode, p), p.ref = Xr(A, null, R), p.return = A, p;
18945
18952
  case er:
18946
- return R = Fo(R, A.mode, O), R.return = A, R;
18953
+ return R = Fo(R, A.mode, p), R.return = A, R;
18947
18954
  case Jt:
18948
18955
  var d = R._init;
18949
- return c(A, d(R._payload), O);
18956
+ return c(A, d(R._payload), p);
18950
18957
  }
18951
18958
  if (qr(R) || Fr(R))
18952
- return R = xn(R, A.mode, O, null), R.return = A, R;
18959
+ return R = xn(R, A.mode, p, null), R.return = A, R;
18953
18960
  us(A, R);
18954
18961
  }
18955
18962
  return null;
18956
18963
  }
18957
- function f(A, R, O, d) {
18964
+ function f(A, R, p, d) {
18958
18965
  var m = R !== null ? R.key : null;
18959
- if (typeof O == "string" && O !== "" || typeof O == "number")
18960
- return m !== null ? null : o(A, R, "" + O, d);
18961
- if (typeof O == "object" && O !== null) {
18962
- switch (O.$$typeof) {
18966
+ if (typeof p == "string" && p !== "" || typeof p == "number")
18967
+ return m !== null ? null : o(A, R, "" + p, d);
18968
+ if (typeof p == "object" && p !== null) {
18969
+ switch (p.$$typeof) {
18963
18970
  case $i:
18964
- return O.key === m ? E(A, R, O, d) : null;
18971
+ return p.key === m ? E(A, R, p, d) : null;
18965
18972
  case er:
18966
- return O.key === m ? l(A, R, O, d) : null;
18973
+ return p.key === m ? l(A, R, p, d) : null;
18967
18974
  case Jt:
18968
- return m = O._init, f(
18975
+ return m = p._init, f(
18969
18976
  A,
18970
18977
  R,
18971
- m(O._payload),
18978
+ m(p._payload),
18972
18979
  d
18973
18980
  );
18974
18981
  }
18975
- if (qr(O) || Fr(O))
18976
- return m !== null ? null : u(A, R, O, d, null);
18977
- us(A, O);
18982
+ if (qr(p) || Fr(p))
18983
+ return m !== null ? null : u(A, R, p, d, null);
18984
+ us(A, p);
18978
18985
  }
18979
18986
  return null;
18980
18987
  }
18981
- function N(A, R, O, d, m) {
18988
+ function N(A, R, p, d, m) {
18982
18989
  if (typeof d == "string" && d !== "" || typeof d == "number")
18983
- return A = A.get(O) || null, o(R, A, "" + d, m);
18990
+ return A = A.get(p) || null, o(R, A, "" + d, m);
18984
18991
  if (typeof d == "object" && d !== null) {
18985
18992
  switch (d.$$typeof) {
18986
18993
  case $i:
18987
- return A = A.get(d.key === null ? O : d.key) || null, E(R, A, d, m);
18994
+ return A = A.get(d.key === null ? p : d.key) || null, E(R, A, d, m);
18988
18995
  case er:
18989
- return A = A.get(d.key === null ? O : d.key) || null, l(R, A, d, m);
18996
+ return A = A.get(d.key === null ? p : d.key) || null, l(R, A, d, m);
18990
18997
  case Jt:
18991
18998
  var _ = d._init;
18992
- return N(A, R, O, _(d._payload), m);
18999
+ return N(A, R, p, _(d._payload), m);
18993
19000
  }
18994
19001
  if (qr(d) || Fr(d))
18995
- return A = A.get(O) || null, u(R, A, d, m, null);
19002
+ return A = A.get(p) || null, u(R, A, d, m, null);
18996
19003
  us(R, d);
18997
19004
  }
18998
19005
  return null;
18999
19006
  }
19000
- function I(A, R, O, d) {
19001
- for (var m = null, _ = null, C = R, L = R = 0, g = null; C !== null && L < O.length; L++) {
19007
+ function I(A, R, p, d) {
19008
+ for (var m = null, _ = null, C = R, L = R = 0, g = null; C !== null && L < p.length; L++) {
19002
19009
  C.index > L ? (g = C, C = null) : g = C.sibling;
19003
- var S = f(A, C, O[L], d);
19010
+ var S = f(A, C, p[L], d);
19004
19011
  if (S === null) {
19005
19012
  C === null && (C = g);
19006
19013
  break;
19007
19014
  }
19008
19015
  e && C && S.alternate === null && t(A, C), R = s(S, R, L), _ === null ? m = S : _.sibling = S, _ = S, C = g;
19009
19016
  }
19010
- if (L === O.length)
19017
+ if (L === p.length)
19011
19018
  return n(A, C), oe && Pn(A, L), m;
19012
19019
  if (C === null) {
19013
- for (; L < O.length; L++)
19014
- C = c(A, O[L], d), C !== null && (R = s(C, R, L), _ === null ? m = C : _.sibling = C, _ = C);
19020
+ for (; L < p.length; L++)
19021
+ C = c(A, p[L], d), C !== null && (R = s(C, R, L), _ === null ? m = C : _.sibling = C, _ = C);
19015
19022
  return oe && Pn(A, L), m;
19016
19023
  }
19017
- for (C = r(A, C); L < O.length; L++)
19018
- g = N(C, A, L, O[L], d), g !== null && (e && g.alternate !== null && C.delete(g.key === null ? L : g.key), R = s(g, R, L), _ === null ? m = g : _.sibling = g, _ = g);
19024
+ for (C = r(A, C); L < p.length; L++)
19025
+ g = N(C, A, L, p[L], d), g !== null && (e && g.alternate !== null && C.delete(g.key === null ? L : g.key), R = s(g, R, L), _ === null ? m = g : _.sibling = g, _ = g);
19019
19026
  return e && C.forEach(function(D) {
19020
19027
  return t(A, D);
19021
19028
  }), oe && Pn(A, L), m;
19022
19029
  }
19023
- function h(A, R, O, d) {
19024
- var m = Fr(O);
19030
+ function h(A, R, p, d) {
19031
+ var m = Fr(p);
19025
19032
  if (typeof m != "function")
19026
19033
  throw Error(H(150));
19027
- if (O = m.call(O), O == null)
19034
+ if (p = m.call(p), p == null)
19028
19035
  throw Error(H(151));
19029
- for (var _ = m = null, C = R, L = R = 0, g = null, S = O.next(); C !== null && !S.done; L++, S = O.next()) {
19036
+ for (var _ = m = null, C = R, L = R = 0, g = null, S = p.next(); C !== null && !S.done; L++, S = p.next()) {
19030
19037
  C.index > L ? (g = C, C = null) : g = C.sibling;
19031
19038
  var D = f(A, C, S.value, d);
19032
19039
  if (D === null) {
@@ -19041,30 +19048,30 @@ function ef(e) {
19041
19048
  C
19042
19049
  ), oe && Pn(A, L), m;
19043
19050
  if (C === null) {
19044
- for (; !S.done; L++, S = O.next())
19051
+ for (; !S.done; L++, S = p.next())
19045
19052
  S = c(A, S.value, d), S !== null && (R = s(S, R, L), _ === null ? m = S : _.sibling = S, _ = S);
19046
19053
  return oe && Pn(A, L), m;
19047
19054
  }
19048
- for (C = r(A, C); !S.done; L++, S = O.next())
19055
+ for (C = r(A, C); !S.done; L++, S = p.next())
19049
19056
  S = N(C, A, L, S.value, d), S !== null && (e && S.alternate !== null && C.delete(S.key === null ? L : S.key), R = s(S, R, L), _ === null ? m = S : _.sibling = S, _ = S);
19050
19057
  return e && C.forEach(function(M) {
19051
19058
  return t(A, M);
19052
19059
  }), oe && Pn(A, L), m;
19053
19060
  }
19054
- function p(A, R, O, d) {
19055
- if (typeof O == "object" && O !== null && O.type === tr && O.key === null && (O = O.props.children), typeof O == "object" && O !== null) {
19056
- switch (O.$$typeof) {
19061
+ function O(A, R, p, d) {
19062
+ if (typeof p == "object" && p !== null && p.type === tr && p.key === null && (p = p.props.children), typeof p == "object" && p !== null) {
19063
+ switch (p.$$typeof) {
19057
19064
  case $i:
19058
19065
  e: {
19059
- for (var m = O.key, _ = R; _ !== null; ) {
19066
+ for (var m = p.key, _ = R; _ !== null; ) {
19060
19067
  if (_.key === m) {
19061
- if (m = O.type, m === tr) {
19068
+ if (m = p.type, m === tr) {
19062
19069
  if (_.tag === 7) {
19063
- n(A, _.sibling), R = i(_, O.props.children), R.return = A, A = R;
19070
+ n(A, _.sibling), R = i(_, p.props.children), R.return = A, A = R;
19064
19071
  break e;
19065
19072
  }
19066
19073
  } else if (_.elementType === m || typeof m == "object" && m !== null && m.$$typeof === Jt && OA(m) === _.type) {
19067
- n(A, _.sibling), R = i(_, O.props), R.ref = Xr(A, _, O), R.return = A, A = R;
19074
+ n(A, _.sibling), R = i(_, p.props), R.ref = Xr(A, _, p), R.return = A, A = R;
19068
19075
  break e;
19069
19076
  }
19070
19077
  n(A, _);
@@ -19073,15 +19080,15 @@ function ef(e) {
19073
19080
  t(A, _);
19074
19081
  _ = _.sibling;
19075
19082
  }
19076
- O.type === tr ? (R = xn(O.props.children, A.mode, d, O.key), R.return = A, A = R) : (d = ws(O.type, O.key, O.props, null, A.mode, d), d.ref = Xr(A, R, O), d.return = A, A = d);
19083
+ p.type === tr ? (R = xn(p.props.children, A.mode, d, p.key), R.return = A, A = R) : (d = ws(p.type, p.key, p.props, null, A.mode, d), d.ref = Xr(A, R, p), d.return = A, A = d);
19077
19084
  }
19078
19085
  return a(A);
19079
19086
  case er:
19080
19087
  e: {
19081
- for (_ = O.key; R !== null; ) {
19088
+ for (_ = p.key; R !== null; ) {
19082
19089
  if (R.key === _)
19083
- if (R.tag === 4 && R.stateNode.containerInfo === O.containerInfo && R.stateNode.implementation === O.implementation) {
19084
- n(A, R.sibling), R = i(R, O.children || []), R.return = A, A = R;
19090
+ if (R.tag === 4 && R.stateNode.containerInfo === p.containerInfo && R.stateNode.implementation === p.implementation) {
19091
+ n(A, R.sibling), R = i(R, p.children || []), R.return = A, A = R;
19085
19092
  break e;
19086
19093
  } else {
19087
19094
  n(A, R);
@@ -19091,21 +19098,21 @@ function ef(e) {
19091
19098
  t(A, R);
19092
19099
  R = R.sibling;
19093
19100
  }
19094
- R = Fo(O, A.mode, d), R.return = A, A = R;
19101
+ R = Fo(p, A.mode, d), R.return = A, A = R;
19095
19102
  }
19096
19103
  return a(A);
19097
19104
  case Jt:
19098
- return _ = O._init, p(A, R, _(O._payload), d);
19105
+ return _ = p._init, O(A, R, _(p._payload), d);
19099
19106
  }
19100
- if (qr(O))
19101
- return I(A, R, O, d);
19102
- if (Fr(O))
19103
- return h(A, R, O, d);
19104
- us(A, O);
19107
+ if (qr(p))
19108
+ return I(A, R, p, d);
19109
+ if (Fr(p))
19110
+ return h(A, R, p, d);
19111
+ us(A, p);
19105
19112
  }
19106
- return typeof O == "string" && O !== "" || typeof O == "number" ? (O = "" + O, R !== null && R.tag === 6 ? (n(A, R.sibling), R = i(R, O), R.return = A, A = R) : (n(A, R), R = Bo(O, A.mode, d), R.return = A, A = R), a(A)) : n(A, R);
19113
+ return typeof p == "string" && p !== "" || typeof p == "number" ? (p = "" + p, R !== null && R.tag === 6 ? (n(A, R.sibling), R = i(R, p), R.return = A, A = R) : (n(A, R), R = Bo(p, A.mode, d), R.return = A, A = R), a(A)) : n(A, R);
19107
19114
  }
19108
- return p;
19115
+ return O;
19109
19116
  }
19110
19117
  var Cr = ef(!0), tf = ef(!1), Vi = {}, gt = In(Vi), Ci = In(Vi), Li = In(Vi);
19111
19118
  function yn(e) {
@@ -20364,13 +20371,13 @@ function $L(e, t) {
20364
20371
  break;
20365
20372
  case 1:
20366
20373
  if (I !== null) {
20367
- var h = I.memoizedProps, p = I.memoizedState, A = t.stateNode, R = A.getSnapshotBeforeUpdate(t.elementType === t.type ? h : ct(t.type, h), p);
20374
+ var h = I.memoizedProps, O = I.memoizedState, A = t.stateNode, R = A.getSnapshotBeforeUpdate(t.elementType === t.type ? h : ct(t.type, h), O);
20368
20375
  A.__reactInternalSnapshotBeforeUpdate = R;
20369
20376
  }
20370
20377
  break;
20371
20378
  case 3:
20372
- var O = t.stateNode.containerInfo;
20373
- O.nodeType === 1 ? O.textContent = "" : O.nodeType === 9 && O.documentElement && O.removeChild(O.documentElement);
20379
+ var p = t.stateNode.containerInfo;
20380
+ p.nodeType === 1 ? p.textContent = "" : p.nodeType === 9 && p.documentElement && p.removeChild(p.documentElement);
20374
20381
  break;
20375
20382
  case 5:
20376
20383
  case 6:
@@ -21275,9 +21282,9 @@ function Ff(e, t) {
21275
21282
  E = Error(H(426));
21276
21283
  }
21277
21284
  } else if (oe && o.mode & 1) {
21278
- var p = CA(a);
21279
- if (p !== null) {
21280
- !(p.flags & 65536) && (p.flags |= 256), LA(p, a, o, s, t), Jl(mr(E, o));
21285
+ var O = CA(a);
21286
+ if (O !== null) {
21287
+ !(O.flags & 65536) && (O.flags |= 256), LA(O, a, o, s, t), Jl(mr(E, o));
21281
21288
  break e;
21282
21289
  }
21283
21290
  }
@@ -21291,8 +21298,8 @@ function Ff(e, t) {
21291
21298
  break e;
21292
21299
  case 1:
21293
21300
  o = E;
21294
- var R = s.type, O = s.stateNode;
21295
- if (!(s.flags & 128) && (typeof R.getDerivedStateFromError == "function" || O !== null && typeof O.componentDidCatch == "function" && (Tn === null || !Tn.has(O)))) {
21301
+ var R = s.type, p = s.stateNode;
21302
+ if (!(s.flags & 128) && (typeof R.getDerivedStateFromError == "function" || p !== null && typeof p.componentDidCatch == "function" && (Tn === null || !Tn.has(p)))) {
21296
21303
  s.flags |= 65536, t &= -t, s.lanes |= t;
21297
21304
  var d = Cf(s, o, t);
21298
21305
  fA(s, d);
@@ -21463,8 +21470,8 @@ function dr() {
21463
21470
  if (h !== null) {
21464
21471
  I.child = null;
21465
21472
  do {
21466
- var p = h.sibling;
21467
- h.sibling = null, h = p;
21473
+ var O = h.sibling;
21474
+ h.sibling = null, h = O;
21468
21475
  } while (h !== null);
21469
21476
  }
21470
21477
  }
@@ -21494,9 +21501,9 @@ function dr() {
21494
21501
  var R = e.current;
21495
21502
  for (k = R; k !== null; ) {
21496
21503
  a = k;
21497
- var O = a.child;
21498
- if (a.subtreeFlags & 2064 && O !== null)
21499
- O.return = a, k = O;
21504
+ var p = a.child;
21505
+ if (a.subtreeFlags & 2064 && p !== null)
21506
+ p.return = a, k = p;
21500
21507
  else
21501
21508
  e:
21502
21509
  for (a = R; k !== null; ) {
@@ -22767,7 +22774,7 @@ function ds() {
22767
22774
  EOF: n.EOF
22768
22775
  }, l = new r(/\/\*/, /\*\//), u = /0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/, c = /[0-9]/, f = /[^\d\.]/, N = ">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "), I = ">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";
22769
22776
  I = I.replace(/[-[\]{}()*+?.,\\^$|#]/g, "\\$&"), I = "\\?\\.(?!\\d) " + I, I = I.replace(/ /g, "|");
22770
- var h = new RegExp(I), p = "continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","), A = p.concat(["do", "in", "of", "else", "get", "set", "new", "catch", "finally", "typeof", "yield", "async", "await", "from", "as", "class", "extends"]), R = new RegExp("^(?:" + A.join("|") + ")$"), O, d = function(_, C) {
22777
+ var h = new RegExp(I), O = "continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","), A = O.concat(["do", "in", "of", "else", "get", "set", "new", "catch", "finally", "typeof", "yield", "async", "await", "from", "as", "class", "extends"]), R = new RegExp("^(?:" + A.join("|") + ")$"), p, d = function(_, C) {
22771
22778
  t.call(this, _, C), this._patterns.whitespace = this._patterns.whitespace.matching(
22772
22779
  /\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,
22773
22780
  /\u2028\u2029/.source
@@ -22800,7 +22807,7 @@ function ds() {
22800
22807
  }, d.prototype._is_closing = function(_, C) {
22801
22808
  return (_.type === E.END_BLOCK || _.type === E.END_EXPR) && C && (_.text === "]" && C.text === "[" || _.text === ")" && C.text === "(" || _.text === "}" && C.text === "{");
22802
22809
  }, d.prototype._reset = function() {
22803
- O = !1;
22810
+ p = !1;
22804
22811
  }, d.prototype._get_next_token = function(_, C) {
22805
22812
  var L = null;
22806
22813
  this._readWhitespace();
@@ -22845,10 +22852,10 @@ function ds() {
22845
22852
  if (C = this.__patterns.html_comment_start.read(), C) {
22846
22853
  for (; this._input.hasNext() && !this._input.testChar(i.newline); )
22847
22854
  C += this._input.next();
22848
- return O = !0, this._create_token(E.COMMENT, C);
22855
+ return p = !0, this._create_token(E.COMMENT, C);
22849
22856
  }
22850
- } else if (O && _ === "-" && (C = this.__patterns.html_comment_end.read(), C))
22851
- return O = !1, this._create_token(E.COMMENT, C);
22857
+ } else if (p && _ === "-" && (C = this.__patterns.html_comment_end.read(), C))
22858
+ return p = !1, this._create_token(E.COMMENT, C);
22852
22859
  return null;
22853
22860
  }, d.prototype._read_comment = function(_) {
22854
22861
  var C = null;
@@ -22936,7 +22943,7 @@ function ds() {
22936
22943
  M += S.read(), D += M;
22937
22944
  }
22938
22945
  return D;
22939
- }, $n.Tokenizer = d, $n.TOKEN = E, $n.positionable_operators = N.slice(), $n.line_starters = p.slice(), $n;
22946
+ }, $n.Tokenizer = d, $n.TOKEN = E, $n.positionable_operators = N.slice(), $n.line_starters = O.slice(), $n;
22940
22947
  }
22941
22948
  var tc;
22942
22949
  function C0() {
@@ -22961,7 +22968,7 @@ function C0() {
22961
22968
  function f(S, D) {
22962
22969
  return S && S.type === o.RESERVED && E(S.text, D);
22963
22970
  }
22964
- var N = ["case", "return", "do", "if", "throw", "else", "await", "break", "continue", "async"], I = ["before-newline", "after-newline", "preserve-newline"], h = u(I), p = [h.before_newline, h.preserve_newline], A = {
22971
+ var N = ["case", "return", "do", "if", "throw", "else", "await", "break", "continue", "async"], I = ["before-newline", "after-newline", "preserve-newline"], h = u(I), O = [h.before_newline, h.preserve_newline], A = {
22965
22972
  BlockStatement: "BlockStatement",
22966
22973
  // 'BLOCK'
22967
22974
  Statement: "Statement",
@@ -22980,7 +22987,7 @@ function C0() {
22980
22987
  function R(S, D) {
22981
22988
  D.multiline_frame || D.mode === A.ForInitializer || D.mode === A.Conditional || S.remove_indent(D.start_line_index);
22982
22989
  }
22983
- function O(S) {
22990
+ function p(S) {
22984
22991
  S = S.replace(n.allLineBreaks, `
22985
22992
  `);
22986
22993
  for (var D = [], M = S.indexOf(`
@@ -23083,7 +23090,7 @@ function C0() {
23083
23090
  if (D = D === void 0 ? !1 : D, !this._output.just_added_newline()) {
23084
23091
  var M = this._options.preserve_newlines && S.newlines || D, v = E(this._flags.last_token.text, a) || E(S.text, a);
23085
23092
  if (v) {
23086
- var U = E(this._flags.last_token.text, a) && E(this._options.operator_position, p) || E(S.text, a);
23093
+ var U = E(this._flags.last_token.text, a) && E(this._options.operator_position, O) || E(S.text, a);
23087
23094
  M = M && U;
23088
23095
  }
23089
23096
  if (M)
@@ -23258,7 +23265,7 @@ function C0() {
23258
23265
  this.print_token(S);
23259
23266
  return;
23260
23267
  }
23261
- if (this._flags.last_token.type === o.OPERATOR && E(this._options.operator_position, p) && this.allow_wrap_or_preserved_newline(S), S.text === ":" && this._flags.in_case) {
23268
+ if (this._flags.last_token.type === o.OPERATOR && E(this._options.operator_position, O) && this.allow_wrap_or_preserved_newline(S), S.text === ":" && this._flags.in_case) {
23262
23269
  this.print_token(S), this._flags.in_case = !1, this._flags.case_body = !0, this._tokens.peek().type !== o.START_BLOCK ? (this.indent(), this.print_newline(), this._flags.case_block = !1) : (this._flags.case_block = !0, this._output.space_before_token = !0);
23263
23270
  return;
23264
23271
  }
@@ -23306,7 +23313,7 @@ function C0() {
23306
23313
  } else
23307
23314
  this.print_block_commment(S, D);
23308
23315
  }, L.prototype.print_block_commment = function(S, D) {
23309
- var M = O(S.text), v, U = !1, w = !1, F = S.whitespace_before, Y = F.length;
23316
+ var M = p(S.text), v, U = !1, w = !1, F = S.whitespace_before, Y = F.length;
23310
23317
  if (this.print_newline(!1, D), this.print_token_line_indentation(S), this._output.add_token(M[0]), this.print_newline(!1, D), M.length > 1) {
23311
23318
  for (M = M.slice(1), U = _(M, "*"), w = C(M, F), U && (this._flags.alignment = 1), v = 0; v < M.length; v++)
23312
23319
  U ? (this.print_token_line_indentation(S), this._output.add_token(l(M[v]))) : w && M[v] ? (this.print_token_line_indentation(S), this._output.add_token(M[v].substring(Y))) : (this._output.current_line.set_indent(-1), this._output.add_token(M[v])), this.print_newline(!1, D);
@@ -23431,7 +23438,7 @@ function m0() {
23431
23438
  `);
23432
23439
  var I = f.match(/^[\t ]*/)[0];
23433
23440
  this._output = new t(this._options, I), this._input = new n(f), this._indentLevel = 0, this._nestedLevel = 0, this._ch = null;
23434
- for (var h = 0, p = !1, A = !1, R = !1, O = !1, d = !1, m = this._ch, _ = !1, C, L, g; C = this._input.read(E), L = C !== "", g = m, this._ch = this._input.next(), this._ch === "\\" && this._input.hasNext() && (this._ch += this._input.next()), m = this._ch, this._ch; )
23441
+ for (var h = 0, O = !1, A = !1, R = !1, p = !1, d = !1, m = this._ch, _ = !1, C, L, g; C = this._input.read(E), L = C !== "", g = m, this._ch = this._input.next(), this._ch === "\\" && this._input.hasNext() && (this._ch += this._input.next()), m = this._ch, this._ch; )
23435
23442
  if (this._ch === "/" && this._input.peek() === "*") {
23436
23443
  this._output.add_new_line(), this._input.back();
23437
23444
  var S = this._input.read(l), D = i.get_directives(S);
@@ -23448,26 +23455,26 @@ function m0() {
23448
23455
  else {
23449
23456
  this.print_string(this._ch);
23450
23457
  var v = this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);
23451
- v.match(/[ :]$/) && (v = this.eatString(": ").replace(/\s+$/, ""), this.print_string(v), this._output.space_before_token = !0), h === 0 && v.indexOf(":") !== -1 ? (A = !0, this.indent()) : v in this.NESTED_AT_RULE ? (this._nestedLevel += 1, v in this.CONDITIONAL_GROUP_RULE && (R = !0)) : h === 0 && !A && (O = !0);
23458
+ v.match(/[ :]$/) && (v = this.eatString(": ").replace(/\s+$/, ""), this.print_string(v), this._output.space_before_token = !0), h === 0 && v.indexOf(":") !== -1 ? (A = !0, this.indent()) : v in this.NESTED_AT_RULE ? (this._nestedLevel += 1, v in this.CONDITIONAL_GROUP_RULE && (R = !0)) : h === 0 && !A && (p = !0);
23452
23459
  }
23453
23460
  else if (this._ch === "#" && this._input.peek() === "{")
23454
23461
  this.preserveSingleSpace(L), this.print_string(this._ch + this.eatString("}"));
23455
23462
  else if (this._ch === "{")
23456
- A && (A = !1, this.outdent()), O = !1, R ? (R = !1, p = this._indentLevel >= this._nestedLevel) : p = this._indentLevel >= this._nestedLevel - 1, this._options.newline_between_rules && p && this._output.previous_line && this._output.previous_line.item(-1) !== "{" && this._output.ensure_empty_line_above("/", ","), this._output.space_before_token = !0, this._options.brace_style === "expand" ? (this._output.add_new_line(), this.print_string(this._ch), this.indent(), this._output.set_indent(this._indentLevel)) : (g === "(" ? this._output.space_before_token = !1 : g !== "," && this.indent(), this.print_string(this._ch)), this.eatWhitespace(!0), this._output.add_new_line();
23463
+ A && (A = !1, this.outdent()), p = !1, R ? (R = !1, O = this._indentLevel >= this._nestedLevel) : O = this._indentLevel >= this._nestedLevel - 1, this._options.newline_between_rules && O && this._output.previous_line && this._output.previous_line.item(-1) !== "{" && this._output.ensure_empty_line_above("/", ","), this._output.space_before_token = !0, this._options.brace_style === "expand" ? (this._output.add_new_line(), this.print_string(this._ch), this.indent(), this._output.set_indent(this._indentLevel)) : (g === "(" ? this._output.space_before_token = !1 : g !== "," && this.indent(), this.print_string(this._ch)), this.eatWhitespace(!0), this._output.add_new_line();
23457
23464
  else if (this._ch === "}")
23458
- this.outdent(), this._output.add_new_line(), g === "{" && this._output.trim(!0), A && (this.outdent(), A = !1), this.print_string(this._ch), p = !1, this._nestedLevel && this._nestedLevel--, this.eatWhitespace(!0), this._output.add_new_line(), this._options.newline_between_rules && !this._output.just_added_blankline() && this._input.peek() !== "}" && this._output.add_new_line(!0), this._input.peek() === ")" && (this._output.trim(!0), this._options.brace_style === "expand" && this._output.add_new_line(!0));
23465
+ this.outdent(), this._output.add_new_line(), g === "{" && this._output.trim(!0), A && (this.outdent(), A = !1), this.print_string(this._ch), O = !1, this._nestedLevel && this._nestedLevel--, this.eatWhitespace(!0), this._output.add_new_line(), this._options.newline_between_rules && !this._output.just_added_blankline() && this._input.peek() !== "}" && this._output.add_new_line(!0), this._input.peek() === ")" && (this._output.trim(!0), this._options.brace_style === "expand" && this._output.add_new_line(!0));
23459
23466
  else if (this._ch === ":") {
23460
23467
  for (var U = 0; U < this.NON_SEMICOLON_NEWLINE_PROPERTY.length; U++)
23461
23468
  if (this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[U])) {
23462
23469
  _ = !0;
23463
23470
  break;
23464
23471
  }
23465
- (p || R) && !(this._input.lookBack("&") || this.foundNestedPseudoClass()) && !this._input.lookBack("(") && !O && h === 0 ? (this.print_string(":"), A || (A = !0, this._output.space_before_token = !0, this.eatWhitespace(!0), this.indent())) : (this._input.lookBack(" ") && (this._output.space_before_token = !0), this._input.peek() === ":" ? (this._ch = this._input.next(), this.print_string("::")) : this.print_string(":"));
23472
+ (O || R) && !(this._input.lookBack("&") || this.foundNestedPseudoClass()) && !this._input.lookBack("(") && !p && h === 0 ? (this.print_string(":"), A || (A = !0, this._output.space_before_token = !0, this.eatWhitespace(!0), this.indent())) : (this._input.lookBack(" ") && (this._output.space_before_token = !0), this._input.peek() === ":" ? (this._ch = this._input.next(), this.print_string("::")) : this.print_string(":"));
23466
23473
  } else if (this._ch === '"' || this._ch === "'") {
23467
23474
  var w = g === '"' || g === "'";
23468
23475
  this.preserveSingleSpace(w || L), this.print_string(this._ch + this.eatString(this._ch)), this.eatWhitespace(!0);
23469
23476
  } else if (this._ch === ";")
23470
- _ = !1, h === 0 ? (A && (this.outdent(), A = !1), O = !1, this.print_string(this._ch), this.eatWhitespace(!0), this._input.peek() !== "/" && this._output.add_new_line()) : (this.print_string(this._ch), this.eatWhitespace(!0), this._output.space_before_token = !0);
23477
+ _ = !1, h === 0 ? (A && (this.outdent(), A = !1), p = !1, this.print_string(this._ch), this.eatWhitespace(!0), this._input.peek() !== "/" && this._output.add_new_line()) : (this.print_string(this._ch), this.eatWhitespace(!0), this._output.space_before_token = !0);
23471
23478
  else if (this._ch === "(")
23472
23479
  if (this._input.lookBack("url"))
23473
23480
  this.print_string(this._ch), this.eatWhitespace(), h++, this.indent(), this._ch = this._input.next(), this._ch === ")" || this._ch === '"' || this._ch === "'" ? this._input.back() : this._ch && (this.print_string(this._ch + this.eatString(")")), h && (h--, this.outdent()));
@@ -23478,7 +23485,7 @@ function m0() {
23478
23485
  else if (this._ch === ")")
23479
23486
  h && (h--, this.outdent()), d && this._input.peek() === ";" && this._options.selector_separator_newline && (d = !1, this.outdent(), this._output.add_new_line()), this.print_string(this._ch);
23480
23487
  else if (this._ch === ",")
23481
- this.print_string(this._ch), this.eatWhitespace(!0), this._options.selector_separator_newline && (!A || d) && h === 0 && !O ? this._output.add_new_line() : this._output.space_before_token = !0;
23488
+ this.print_string(this._ch), this.eatWhitespace(!0), this._options.selector_separator_newline && (!A || d) && h === 0 && !p ? this._output.add_new_line() : this._output.space_before_token = !0;
23482
23489
  else if ((this._ch === ">" || this._ch === "+" || this._ch === "~") && !A && h === 0)
23483
23490
  this._options.space_around_combinator ? (this._output.space_before_token = !0, this.print_string(this._ch), this._output.space_before_token = !0) : (this.print_string(this._ch), this.eatWhitespace(), this._ch && o.test(this._ch) && (this._ch = ""));
23484
23491
  else if (this._ch === "]")
@@ -23733,38 +23740,38 @@ function D0() {
23733
23740
  if (lc)
23734
23741
  return tE;
23735
23742
  lc = 1;
23736
- var e = id().Options, t = Ou().Output, n = Ec().Tokenizer, r = Ec().TOKEN, i = /\r\n|[\r\n]/, s = /\r\n|[\r\n]/g, a = function(p, A) {
23737
- this.indent_level = 0, this.alignment_size = 0, this.max_preserve_newlines = p.max_preserve_newlines, this.preserve_newlines = p.preserve_newlines, this._output = new t(p, A);
23743
+ var e = id().Options, t = Ou().Output, n = Ec().Tokenizer, r = Ec().TOKEN, i = /\r\n|[\r\n]/, s = /\r\n|[\r\n]/g, a = function(O, A) {
23744
+ this.indent_level = 0, this.alignment_size = 0, this.max_preserve_newlines = O.max_preserve_newlines, this.preserve_newlines = O.preserve_newlines, this._output = new t(O, A);
23738
23745
  };
23739
- a.prototype.current_line_has_match = function(p) {
23740
- return this._output.current_line.has_match(p);
23741
- }, a.prototype.set_space_before_token = function(p, A) {
23742
- this._output.space_before_token = p, this._output.non_breaking_space = A;
23746
+ a.prototype.current_line_has_match = function(O) {
23747
+ return this._output.current_line.has_match(O);
23748
+ }, a.prototype.set_space_before_token = function(O, A) {
23749
+ this._output.space_before_token = O, this._output.non_breaking_space = A;
23743
23750
  }, a.prototype.set_wrap_point = function() {
23744
23751
  this._output.set_indent(this.indent_level, this.alignment_size), this._output.set_wrap_point();
23745
- }, a.prototype.add_raw_token = function(p) {
23746
- this._output.add_raw_token(p);
23747
- }, a.prototype.print_preserved_newlines = function(p) {
23752
+ }, a.prototype.add_raw_token = function(O) {
23753
+ this._output.add_raw_token(O);
23754
+ }, a.prototype.print_preserved_newlines = function(O) {
23748
23755
  var A = 0;
23749
- p.type !== r.TEXT && p.previous.type !== r.TEXT && (A = p.newlines ? 1 : 0), this.preserve_newlines && (A = p.newlines < this.max_preserve_newlines + 1 ? p.newlines : this.max_preserve_newlines + 1);
23756
+ O.type !== r.TEXT && O.previous.type !== r.TEXT && (A = O.newlines ? 1 : 0), this.preserve_newlines && (A = O.newlines < this.max_preserve_newlines + 1 ? O.newlines : this.max_preserve_newlines + 1);
23750
23757
  for (var R = 0; R < A; R++)
23751
23758
  this.print_newline(R > 0);
23752
23759
  return A !== 0;
23753
- }, a.prototype.traverse_whitespace = function(p) {
23754
- return p.whitespace_before || p.newlines ? (this.print_preserved_newlines(p) || (this._output.space_before_token = !0), !0) : !1;
23760
+ }, a.prototype.traverse_whitespace = function(O) {
23761
+ return O.whitespace_before || O.newlines ? (this.print_preserved_newlines(O) || (this._output.space_before_token = !0), !0) : !1;
23755
23762
  }, a.prototype.previous_token_wrapped = function() {
23756
23763
  return this._output.previous_token_wrapped;
23757
- }, a.prototype.print_newline = function(p) {
23758
- this._output.add_new_line(p);
23759
- }, a.prototype.print_token = function(p) {
23760
- p.text && (this._output.set_indent(this.indent_level, this.alignment_size), this._output.add_token(p.text));
23764
+ }, a.prototype.print_newline = function(O) {
23765
+ this._output.add_new_line(O);
23766
+ }, a.prototype.print_token = function(O) {
23767
+ O.text && (this._output.set_indent(this.indent_level, this.alignment_size), this._output.add_token(O.text));
23761
23768
  }, a.prototype.indent = function() {
23762
23769
  this.indent_level++;
23763
- }, a.prototype.get_full_indent = function(p) {
23764
- return p = this.indent_level + (p || 0), p < 1 ? "" : this._output.get_indent_string(p);
23770
+ }, a.prototype.get_full_indent = function(O) {
23771
+ return O = this.indent_level + (O || 0), O < 1 ? "" : this._output.get_indent_string(O);
23765
23772
  };
23766
- var o = function(p) {
23767
- for (var A = null, R = p.next; R.type !== r.EOF && p.closed !== R; ) {
23773
+ var o = function(O) {
23774
+ for (var A = null, R = O.next; R.type !== r.EOF && O.closed !== R; ) {
23768
23775
  if (R.type === r.ATTRIBUTE && R.text === "type") {
23769
23776
  R.next && R.next.type === r.EQUALS && R.next.next && R.next.next.type === r.VALUE && (A = R.next.next.text);
23770
23777
  break;
@@ -23772,29 +23779,29 @@ function D0() {
23772
23779
  R = R.next;
23773
23780
  }
23774
23781
  return A;
23775
- }, E = function(p, A) {
23776
- var R = null, O = null;
23777
- return A.closed ? (p === "script" ? R = "text/javascript" : p === "style" && (R = "text/css"), R = o(A) || R, R.search("text/css") > -1 ? O = "css" : R.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/) > -1 ? O = "javascript" : R.search(/(text|application|dojo)\/(x-)?(html)/) > -1 ? O = "html" : R.search(/test\/null/) > -1 && (O = "null"), O) : null;
23782
+ }, E = function(O, A) {
23783
+ var R = null, p = null;
23784
+ return A.closed ? (O === "script" ? R = "text/javascript" : O === "style" && (R = "text/css"), R = o(A) || R, R.search("text/css") > -1 ? p = "css" : R.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/) > -1 ? p = "javascript" : R.search(/(text|application|dojo)\/(x-)?(html)/) > -1 ? p = "html" : R.search(/test\/null/) > -1 && (p = "null"), p) : null;
23778
23785
  };
23779
- function l(p, A) {
23780
- return A.indexOf(p) !== -1;
23786
+ function l(O, A) {
23787
+ return A.indexOf(O) !== -1;
23781
23788
  }
23782
- function u(p, A, R) {
23783
- this.parent = p || null, this.tag = A ? A.tag_name : "", this.indent_level = R || 0, this.parser_token = A || null;
23789
+ function u(O, A, R) {
23790
+ this.parent = O || null, this.tag = A ? A.tag_name : "", this.indent_level = R || 0, this.parser_token = A || null;
23784
23791
  }
23785
- function c(p) {
23786
- this._printer = p, this._current_frame = null;
23792
+ function c(O) {
23793
+ this._printer = O, this._current_frame = null;
23787
23794
  }
23788
23795
  c.prototype.get_parser_token = function() {
23789
23796
  return this._current_frame ? this._current_frame.parser_token : null;
23790
- }, c.prototype.record_tag = function(p) {
23791
- var A = new u(this._current_frame, p, this._printer.indent_level);
23797
+ }, c.prototype.record_tag = function(O) {
23798
+ var A = new u(this._current_frame, O, this._printer.indent_level);
23792
23799
  this._current_frame = A;
23793
- }, c.prototype._try_pop_frame = function(p) {
23800
+ }, c.prototype._try_pop_frame = function(O) {
23794
23801
  var A = null;
23795
- return p && (A = p.parser_token, this._printer.indent_level = p.indent_level, this._current_frame = p.parent), A;
23796
- }, c.prototype._get_frame = function(p, A) {
23797
- for (var R = this._current_frame; R && p.indexOf(R.tag) === -1; ) {
23802
+ return O && (A = O.parser_token, this._printer.indent_level = O.indent_level, this._current_frame = O.parent), A;
23803
+ }, c.prototype._get_frame = function(O, A) {
23804
+ for (var R = this._current_frame; R && O.indexOf(R.tag) === -1; ) {
23798
23805
  if (A && A.indexOf(R.tag) !== -1) {
23799
23806
  R = null;
23800
23807
  break;
@@ -23802,66 +23809,66 @@ function D0() {
23802
23809
  R = R.parent;
23803
23810
  }
23804
23811
  return R;
23805
- }, c.prototype.try_pop = function(p, A) {
23806
- var R = this._get_frame([p], A);
23812
+ }, c.prototype.try_pop = function(O, A) {
23813
+ var R = this._get_frame([O], A);
23807
23814
  return this._try_pop_frame(R);
23808
- }, c.prototype.indent_to_tag = function(p) {
23809
- var A = this._get_frame(p);
23815
+ }, c.prototype.indent_to_tag = function(O) {
23816
+ var A = this._get_frame(O);
23810
23817
  A && (this._printer.indent_level = A.indent_level);
23811
23818
  };
23812
- function f(p, A, R, O) {
23813
- this._source_text = p || "", A = A || {}, this._js_beautify = R, this._css_beautify = O, this._tag_stack = null;
23819
+ function f(O, A, R, p) {
23820
+ this._source_text = O || "", A = A || {}, this._js_beautify = R, this._css_beautify = p, this._tag_stack = null;
23814
23821
  var d = new e(A, "html");
23815
23822
  this._options = d, this._is_wrap_attributes_force = this._options.wrap_attributes.substr(0, 5) === "force", this._is_wrap_attributes_force_expand_multiline = this._options.wrap_attributes === "force-expand-multiline", this._is_wrap_attributes_force_aligned = this._options.wrap_attributes === "force-aligned", this._is_wrap_attributes_aligned_multiple = this._options.wrap_attributes === "aligned-multiple", this._is_wrap_attributes_preserve = this._options.wrap_attributes.substr(0, 8) === "preserve", this._is_wrap_attributes_preserve_aligned = this._options.wrap_attributes === "preserve-aligned";
23816
23823
  }
23817
23824
  f.prototype.beautify = function() {
23818
23825
  if (this._options.disabled)
23819
23826
  return this._source_text;
23820
- var p = this._source_text, A = this._options.eol;
23827
+ var O = this._source_text, A = this._options.eol;
23821
23828
  this._options.eol === "auto" && (A = `
23822
- `, p && i.test(p) && (A = p.match(i)[0])), p = p.replace(s, `
23829
+ `, O && i.test(O) && (A = O.match(i)[0])), O = O.replace(s, `
23823
23830
  `);
23824
- var R = p.match(/^[\t ]*/)[0], O = {
23831
+ var R = O.match(/^[\t ]*/)[0], p = {
23825
23832
  text: "",
23826
23833
  type: ""
23827
- }, d = new N(), m = new a(this._options, R), _ = new n(p, this._options).tokenize();
23834
+ }, d = new N(), m = new a(this._options, R), _ = new n(O, this._options).tokenize();
23828
23835
  this._tag_stack = new c(m);
23829
23836
  for (var C = null, L = _.next(); L.type !== r.EOF; )
23830
- L.type === r.TAG_OPEN || L.type === r.COMMENT ? (C = this._handle_tag_open(m, L, d, O, _), d = C) : L.type === r.ATTRIBUTE || L.type === r.EQUALS || L.type === r.VALUE || L.type === r.TEXT && !d.tag_complete ? C = this._handle_inside_tag(m, L, d, O) : L.type === r.TAG_CLOSE ? C = this._handle_tag_close(m, L, d) : L.type === r.TEXT ? C = this._handle_text(m, L, d) : m.add_raw_token(L), O = C, L = _.next();
23837
+ L.type === r.TAG_OPEN || L.type === r.COMMENT ? (C = this._handle_tag_open(m, L, d, p, _), d = C) : L.type === r.ATTRIBUTE || L.type === r.EQUALS || L.type === r.VALUE || L.type === r.TEXT && !d.tag_complete ? C = this._handle_inside_tag(m, L, d, p) : L.type === r.TAG_CLOSE ? C = this._handle_tag_close(m, L, d) : L.type === r.TEXT ? C = this._handle_text(m, L, d) : m.add_raw_token(L), p = C, L = _.next();
23831
23838
  var g = m._output.get_code(A);
23832
23839
  return g;
23833
- }, f.prototype._handle_tag_close = function(p, A, R) {
23834
- var O = {
23840
+ }, f.prototype._handle_tag_close = function(O, A, R) {
23841
+ var p = {
23835
23842
  text: A.text,
23836
23843
  type: A.type
23837
23844
  };
23838
- return p.alignment_size = 0, R.tag_complete = !0, p.set_space_before_token(A.newlines || A.whitespace_before !== "", !0), R.is_unformatted ? p.add_raw_token(A) : (R.tag_start_char === "<" && (p.set_space_before_token(A.text[0] === "/", !0), this._is_wrap_attributes_force_expand_multiline && R.has_wrapped_attrs && p.print_newline(!1)), p.print_token(A)), R.indent_content && !(R.is_unformatted || R.is_content_unformatted) && (p.indent(), R.indent_content = !1), !R.is_inline_element && !(R.is_unformatted || R.is_content_unformatted) && p.set_wrap_point(), O;
23839
- }, f.prototype._handle_inside_tag = function(p, A, R, O) {
23845
+ return O.alignment_size = 0, R.tag_complete = !0, O.set_space_before_token(A.newlines || A.whitespace_before !== "", !0), R.is_unformatted ? O.add_raw_token(A) : (R.tag_start_char === "<" && (O.set_space_before_token(A.text[0] === "/", !0), this._is_wrap_attributes_force_expand_multiline && R.has_wrapped_attrs && O.print_newline(!1)), O.print_token(A)), R.indent_content && !(R.is_unformatted || R.is_content_unformatted) && (O.indent(), R.indent_content = !1), !R.is_inline_element && !(R.is_unformatted || R.is_content_unformatted) && O.set_wrap_point(), p;
23846
+ }, f.prototype._handle_inside_tag = function(O, A, R, p) {
23840
23847
  var d = R.has_wrapped_attrs, m = {
23841
23848
  text: A.text,
23842
23849
  type: A.type
23843
23850
  };
23844
- return p.set_space_before_token(A.newlines || A.whitespace_before !== "", !0), R.is_unformatted ? p.add_raw_token(A) : R.tag_start_char === "{" && A.type === r.TEXT ? p.print_preserved_newlines(A) ? (A.newlines = 0, p.add_raw_token(A)) : p.print_token(A) : (A.type === r.ATTRIBUTE ? p.set_space_before_token(!0) : (A.type === r.EQUALS || A.type === r.VALUE && A.previous.type === r.EQUALS) && p.set_space_before_token(!1), A.type === r.ATTRIBUTE && R.tag_start_char === "<" && ((this._is_wrap_attributes_preserve || this._is_wrap_attributes_preserve_aligned) && (p.traverse_whitespace(A), d = d || A.newlines !== 0), this._is_wrap_attributes_force && R.attr_count >= this._options.wrap_attributes_min_attrs && (O.type !== r.TAG_OPEN || // ie. second attribute and beyond
23845
- this._is_wrap_attributes_force_expand_multiline) && (p.print_newline(!1), d = !0)), p.print_token(A), d = d || p.previous_token_wrapped(), R.has_wrapped_attrs = d), m;
23846
- }, f.prototype._handle_text = function(p, A, R) {
23847
- var O = {
23851
+ return O.set_space_before_token(A.newlines || A.whitespace_before !== "", !0), R.is_unformatted ? O.add_raw_token(A) : R.tag_start_char === "{" && A.type === r.TEXT ? O.print_preserved_newlines(A) ? (A.newlines = 0, O.add_raw_token(A)) : O.print_token(A) : (A.type === r.ATTRIBUTE ? O.set_space_before_token(!0) : (A.type === r.EQUALS || A.type === r.VALUE && A.previous.type === r.EQUALS) && O.set_space_before_token(!1), A.type === r.ATTRIBUTE && R.tag_start_char === "<" && ((this._is_wrap_attributes_preserve || this._is_wrap_attributes_preserve_aligned) && (O.traverse_whitespace(A), d = d || A.newlines !== 0), this._is_wrap_attributes_force && R.attr_count >= this._options.wrap_attributes_min_attrs && (p.type !== r.TAG_OPEN || // ie. second attribute and beyond
23852
+ this._is_wrap_attributes_force_expand_multiline) && (O.print_newline(!1), d = !0)), O.print_token(A), d = d || O.previous_token_wrapped(), R.has_wrapped_attrs = d), m;
23853
+ }, f.prototype._handle_text = function(O, A, R) {
23854
+ var p = {
23848
23855
  text: A.text,
23849
23856
  type: "TK_CONTENT"
23850
23857
  };
23851
- return R.custom_beautifier_name ? this._print_custom_beatifier_text(p, A, R) : R.is_unformatted || R.is_content_unformatted ? p.add_raw_token(A) : (p.traverse_whitespace(A), p.print_token(A)), O;
23852
- }, f.prototype._print_custom_beatifier_text = function(p, A, R) {
23853
- var O = this;
23858
+ return R.custom_beautifier_name ? this._print_custom_beatifier_text(O, A, R) : R.is_unformatted || R.is_content_unformatted ? O.add_raw_token(A) : (O.traverse_whitespace(A), O.print_token(A)), p;
23859
+ }, f.prototype._print_custom_beatifier_text = function(O, A, R) {
23860
+ var p = this;
23854
23861
  if (A.text !== "") {
23855
23862
  var d = A.text, m, _ = 1, C = "", L = "";
23856
23863
  R.custom_beautifier_name === "javascript" && typeof this._js_beautify == "function" ? m = this._js_beautify : R.custom_beautifier_name === "css" && typeof this._css_beautify == "function" ? m = this._css_beautify : R.custom_beautifier_name === "html" && (m = function(U, w) {
23857
- var F = new f(U, w, O._js_beautify, O._css_beautify);
23864
+ var F = new f(U, w, p._js_beautify, p._css_beautify);
23858
23865
  return F.beautify();
23859
- }), this._options.indent_scripts === "keep" ? _ = 0 : this._options.indent_scripts === "separate" && (_ = -p.indent_level);
23860
- var g = p.get_full_indent(_);
23866
+ }), this._options.indent_scripts === "keep" ? _ = 0 : this._options.indent_scripts === "separate" && (_ = -O.indent_level);
23867
+ var g = O.get_full_indent(_);
23861
23868
  if (d = d.replace(/\n[ \t]*$/, ""), R.custom_beautifier_name !== "html" && d[0] === "<" && d.match(/^(<!--|<!\[CDATA\[)/)) {
23862
23869
  var S = /^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(d);
23863
23870
  if (!S) {
23864
- p.add_raw_token(A);
23871
+ O.add_raw_token(A);
23865
23872
  return;
23866
23873
  }
23867
23874
  C = g + S[1] + `
@@ -23885,64 +23892,64 @@ function D0() {
23885
23892
  ` + g);
23886
23893
  }
23887
23894
  C && (d ? d = C + d + `
23888
- ` + L : d = C + L), p.print_newline(!1), d && (A.text = d, A.whitespace_before = "", A.newlines = 0, p.add_raw_token(A), p.print_newline(!0));
23895
+ ` + L : d = C + L), O.print_newline(!1), d && (A.text = d, A.whitespace_before = "", A.newlines = 0, O.add_raw_token(A), O.print_newline(!0));
23889
23896
  }
23890
- }, f.prototype._handle_tag_open = function(p, A, R, O, d) {
23897
+ }, f.prototype._handle_tag_open = function(O, A, R, p, d) {
23891
23898
  var m = this._get_tag_open_token(A);
23892
- if ((R.is_unformatted || R.is_content_unformatted) && !R.is_empty_element && A.type === r.TAG_OPEN && !m.is_start_tag ? (p.add_raw_token(A), m.start_tag_token = this._tag_stack.try_pop(m.tag_name)) : (p.traverse_whitespace(A), this._set_tag_position(p, A, m, R, O), m.is_inline_element || p.set_wrap_point(), p.print_token(A)), m.is_start_tag && this._is_wrap_attributes_force) {
23899
+ if ((R.is_unformatted || R.is_content_unformatted) && !R.is_empty_element && A.type === r.TAG_OPEN && !m.is_start_tag ? (O.add_raw_token(A), m.start_tag_token = this._tag_stack.try_pop(m.tag_name)) : (O.traverse_whitespace(A), this._set_tag_position(O, A, m, R, p), m.is_inline_element || O.set_wrap_point(), O.print_token(A)), m.is_start_tag && this._is_wrap_attributes_force) {
23893
23900
  var _ = 0, C;
23894
23901
  do
23895
23902
  C = d.peek(_), C.type === r.ATTRIBUTE && (m.attr_count += 1), _ += 1;
23896
23903
  while (C.type !== r.EOF && C.type !== r.TAG_CLOSE);
23897
23904
  }
23898
- return (this._is_wrap_attributes_force_aligned || this._is_wrap_attributes_aligned_multiple || this._is_wrap_attributes_preserve_aligned) && (m.alignment_size = A.text.length + 1), !m.tag_complete && !m.is_unformatted && (p.alignment_size = m.alignment_size), m;
23905
+ return (this._is_wrap_attributes_force_aligned || this._is_wrap_attributes_aligned_multiple || this._is_wrap_attributes_preserve_aligned) && (m.alignment_size = A.text.length + 1), !m.tag_complete && !m.is_unformatted && (O.alignment_size = m.alignment_size), m;
23899
23906
  };
23900
- var N = function(p, A) {
23901
- if (this.parent = p || null, this.text = "", this.type = "TK_TAG_OPEN", this.tag_name = "", this.is_inline_element = !1, this.is_unformatted = !1, this.is_content_unformatted = !1, this.is_empty_element = !1, this.is_start_tag = !1, this.is_end_tag = !1, this.indent_content = !1, this.multiline_content = !1, this.custom_beautifier_name = null, this.start_tag_token = null, this.attr_count = 0, this.has_wrapped_attrs = !1, this.alignment_size = 0, this.tag_complete = !1, this.tag_start_char = "", this.tag_check = "", !A)
23907
+ var N = function(O, A) {
23908
+ if (this.parent = O || null, this.text = "", this.type = "TK_TAG_OPEN", this.tag_name = "", this.is_inline_element = !1, this.is_unformatted = !1, this.is_content_unformatted = !1, this.is_empty_element = !1, this.is_start_tag = !1, this.is_end_tag = !1, this.indent_content = !1, this.multiline_content = !1, this.custom_beautifier_name = null, this.start_tag_token = null, this.attr_count = 0, this.has_wrapped_attrs = !1, this.alignment_size = 0, this.tag_complete = !1, this.tag_start_char = "", this.tag_check = "", !A)
23902
23909
  this.tag_complete = !0;
23903
23910
  else {
23904
23911
  var R;
23905
23912
  this.tag_start_char = A.text[0], this.text = A.text, this.tag_start_char === "<" ? (R = A.text.match(/^<([^\s>]*)/), this.tag_check = R ? R[1] : "") : (R = A.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/), this.tag_check = R ? R[1] : "", (A.text.startsWith("{{#>") || A.text.startsWith("{{~#>")) && this.tag_check[0] === ">" && (this.tag_check === ">" && A.next !== null ? this.tag_check = A.next.text.split(" ")[0] : this.tag_check = A.text.split(">")[1])), this.tag_check = this.tag_check.toLowerCase(), A.type === r.COMMENT && (this.tag_complete = !0), this.is_start_tag = this.tag_check.charAt(0) !== "/", this.tag_name = this.is_start_tag ? this.tag_check : this.tag_check.substr(1), this.is_end_tag = !this.is_start_tag || A.closed && A.closed.text === "/>";
23906
- var O = 2;
23907
- this.tag_start_char === "{" && this.text.length >= 3 && this.text.charAt(2) === "~" && (O = 3), this.is_end_tag = this.is_end_tag || this.tag_start_char === "{" && (this.text.length < 3 || /[^#\^]/.test(this.text.charAt(O)));
23913
+ var p = 2;
23914
+ this.tag_start_char === "{" && this.text.length >= 3 && this.text.charAt(2) === "~" && (p = 3), this.is_end_tag = this.is_end_tag || this.tag_start_char === "{" && (this.text.length < 3 || /[^#\^]/.test(this.text.charAt(p)));
23908
23915
  }
23909
23916
  };
23910
- f.prototype._get_tag_open_token = function(p) {
23911
- var A = new N(this._tag_stack.get_parser_token(), p);
23917
+ f.prototype._get_tag_open_token = function(O) {
23918
+ var A = new N(this._tag_stack.get_parser_token(), O);
23912
23919
  return A.alignment_size = this._options.wrap_attributes_indent_size, A.is_end_tag = A.is_end_tag || l(A.tag_check, this._options.void_elements), A.is_empty_element = A.tag_complete || A.is_start_tag && A.is_end_tag, A.is_unformatted = !A.tag_complete && l(A.tag_check, this._options.unformatted), A.is_content_unformatted = !A.is_empty_element && l(A.tag_check, this._options.content_unformatted), A.is_inline_element = l(A.tag_name, this._options.inline) || this._options.inline_custom_elements && A.tag_name.includes("-") || A.tag_start_char === "{", A;
23913
- }, f.prototype._set_tag_position = function(p, A, R, O, d) {
23914
- if (R.is_empty_element || (R.is_end_tag ? R.start_tag_token = this._tag_stack.try_pop(R.tag_name) : (this._do_optional_end_element(R) && (R.is_inline_element || p.print_newline(!1)), this._tag_stack.record_tag(R), (R.tag_name === "script" || R.tag_name === "style") && !(R.is_unformatted || R.is_content_unformatted) && (R.custom_beautifier_name = E(R.tag_check, A)))), l(R.tag_check, this._options.extra_liners) && (p.print_newline(!1), p._output.just_added_blankline() || p.print_newline(!0)), R.is_empty_element) {
23920
+ }, f.prototype._set_tag_position = function(O, A, R, p, d) {
23921
+ if (R.is_empty_element || (R.is_end_tag ? R.start_tag_token = this._tag_stack.try_pop(R.tag_name) : (this._do_optional_end_element(R) && (R.is_inline_element || O.print_newline(!1)), this._tag_stack.record_tag(R), (R.tag_name === "script" || R.tag_name === "style") && !(R.is_unformatted || R.is_content_unformatted) && (R.custom_beautifier_name = E(R.tag_check, A)))), l(R.tag_check, this._options.extra_liners) && (O.print_newline(!1), O._output.just_added_blankline() || O.print_newline(!0)), R.is_empty_element) {
23915
23922
  if (R.tag_start_char === "{" && R.tag_check === "else") {
23916
23923
  this._tag_stack.indent_to_tag(["if", "unless", "each"]), R.indent_content = !0;
23917
- var m = p.current_line_has_match(/{{#if/);
23918
- m || p.print_newline(!1);
23924
+ var m = O.current_line_has_match(/{{#if/);
23925
+ m || O.print_newline(!1);
23919
23926
  }
23920
- R.tag_name === "!--" && d.type === r.TAG_CLOSE && O.is_end_tag && R.text.indexOf(`
23921
- `) === -1 || (R.is_inline_element || R.is_unformatted || p.print_newline(!1), this._calcluate_parent_multiline(p, R));
23927
+ R.tag_name === "!--" && d.type === r.TAG_CLOSE && p.is_end_tag && R.text.indexOf(`
23928
+ `) === -1 || (R.is_inline_element || R.is_unformatted || O.print_newline(!1), this._calcluate_parent_multiline(O, R));
23922
23929
  } else if (R.is_end_tag) {
23923
23930
  var _ = !1;
23924
- _ = R.start_tag_token && R.start_tag_token.multiline_content, _ = _ || !R.is_inline_element && !(O.is_inline_element || O.is_unformatted) && !(d.type === r.TAG_CLOSE && R.start_tag_token === O) && d.type !== "TK_CONTENT", (R.is_content_unformatted || R.is_unformatted) && (_ = !1), _ && p.print_newline(!1);
23931
+ _ = R.start_tag_token && R.start_tag_token.multiline_content, _ = _ || !R.is_inline_element && !(p.is_inline_element || p.is_unformatted) && !(d.type === r.TAG_CLOSE && R.start_tag_token === p) && d.type !== "TK_CONTENT", (R.is_content_unformatted || R.is_unformatted) && (_ = !1), _ && O.print_newline(!1);
23925
23932
  } else
23926
- R.indent_content = !R.custom_beautifier_name, R.tag_start_char === "<" && (R.tag_name === "html" ? R.indent_content = this._options.indent_inner_html : R.tag_name === "head" ? R.indent_content = this._options.indent_head_inner_html : R.tag_name === "body" && (R.indent_content = this._options.indent_body_inner_html)), !(R.is_inline_element || R.is_unformatted) && (d.type !== "TK_CONTENT" || R.is_content_unformatted) && p.print_newline(!1), this._calcluate_parent_multiline(p, R);
23927
- }, f.prototype._calcluate_parent_multiline = function(p, A) {
23928
- A.parent && p._output.just_added_newline() && !((A.is_inline_element || A.is_unformatted) && A.parent.is_inline_element) && (A.parent.multiline_content = !0);
23933
+ R.indent_content = !R.custom_beautifier_name, R.tag_start_char === "<" && (R.tag_name === "html" ? R.indent_content = this._options.indent_inner_html : R.tag_name === "head" ? R.indent_content = this._options.indent_head_inner_html : R.tag_name === "body" && (R.indent_content = this._options.indent_body_inner_html)), !(R.is_inline_element || R.is_unformatted) && (d.type !== "TK_CONTENT" || R.is_content_unformatted) && O.print_newline(!1), this._calcluate_parent_multiline(O, R);
23934
+ }, f.prototype._calcluate_parent_multiline = function(O, A) {
23935
+ A.parent && O._output.just_added_newline() && !((A.is_inline_element || A.is_unformatted) && A.parent.is_inline_element) && (A.parent.multiline_content = !0);
23929
23936
  };
23930
23937
  var I = ["address", "article", "aside", "blockquote", "details", "div", "dl", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hr", "main", "menu", "nav", "ol", "p", "pre", "section", "table", "ul"], h = ["a", "audio", "del", "ins", "map", "noscript", "video"];
23931
- return f.prototype._do_optional_end_element = function(p) {
23938
+ return f.prototype._do_optional_end_element = function(O) {
23932
23939
  var A = null;
23933
- if (!(p.is_empty_element || !p.is_start_tag || !p.parent)) {
23934
- if (p.tag_name === "body")
23940
+ if (!(O.is_empty_element || !O.is_start_tag || !O.parent)) {
23941
+ if (O.tag_name === "body")
23935
23942
  A = A || this._tag_stack.try_pop("head");
23936
- else if (p.tag_name === "li")
23943
+ else if (O.tag_name === "li")
23937
23944
  A = A || this._tag_stack.try_pop("li", ["ol", "ul", "menu"]);
23938
- else if (p.tag_name === "dd" || p.tag_name === "dt")
23945
+ else if (O.tag_name === "dd" || O.tag_name === "dt")
23939
23946
  A = A || this._tag_stack.try_pop("dt", ["dl"]), A = A || this._tag_stack.try_pop("dd", ["dl"]);
23940
- else if (p.parent.tag_name === "p" && I.indexOf(p.tag_name) !== -1) {
23941
- var R = p.parent.parent;
23947
+ else if (O.parent.tag_name === "p" && I.indexOf(O.tag_name) !== -1) {
23948
+ var R = O.parent.parent;
23942
23949
  (!R || h.indexOf(R.tag_name) === -1) && (A = A || this._tag_stack.try_pop("p"));
23943
23950
  } else
23944
- p.tag_name === "rp" || p.tag_name === "rt" ? (A = A || this._tag_stack.try_pop("rt", ["ruby", "rtc"]), A = A || this._tag_stack.try_pop("rp", ["ruby", "rtc"])) : p.tag_name === "optgroup" ? A = A || this._tag_stack.try_pop("optgroup", ["select"]) : p.tag_name === "option" ? A = A || this._tag_stack.try_pop("option", ["select", "datalist", "optgroup"]) : p.tag_name === "colgroup" ? A = A || this._tag_stack.try_pop("caption", ["table"]) : p.tag_name === "thead" ? (A = A || this._tag_stack.try_pop("caption", ["table"]), A = A || this._tag_stack.try_pop("colgroup", ["table"])) : p.tag_name === "tbody" || p.tag_name === "tfoot" ? (A = A || this._tag_stack.try_pop("caption", ["table"]), A = A || this._tag_stack.try_pop("colgroup", ["table"]), A = A || this._tag_stack.try_pop("thead", ["table"]), A = A || this._tag_stack.try_pop("tbody", ["table"])) : p.tag_name === "tr" ? (A = A || this._tag_stack.try_pop("caption", ["table"]), A = A || this._tag_stack.try_pop("colgroup", ["table"]), A = A || this._tag_stack.try_pop("tr", ["table", "thead", "tbody", "tfoot"])) : (p.tag_name === "th" || p.tag_name === "td") && (A = A || this._tag_stack.try_pop("td", ["table", "thead", "tbody", "tfoot", "tr"]), A = A || this._tag_stack.try_pop("th", ["table", "thead", "tbody", "tfoot", "tr"]));
23945
- return p.parent = this._tag_stack.get_parser_token(), A;
23951
+ O.tag_name === "rp" || O.tag_name === "rt" ? (A = A || this._tag_stack.try_pop("rt", ["ruby", "rtc"]), A = A || this._tag_stack.try_pop("rp", ["ruby", "rtc"])) : O.tag_name === "optgroup" ? A = A || this._tag_stack.try_pop("optgroup", ["select"]) : O.tag_name === "option" ? A = A || this._tag_stack.try_pop("option", ["select", "datalist", "optgroup"]) : O.tag_name === "colgroup" ? A = A || this._tag_stack.try_pop("caption", ["table"]) : O.tag_name === "thead" ? (A = A || this._tag_stack.try_pop("caption", ["table"]), A = A || this._tag_stack.try_pop("colgroup", ["table"])) : O.tag_name === "tbody" || O.tag_name === "tfoot" ? (A = A || this._tag_stack.try_pop("caption", ["table"]), A = A || this._tag_stack.try_pop("colgroup", ["table"]), A = A || this._tag_stack.try_pop("thead", ["table"]), A = A || this._tag_stack.try_pop("tbody", ["table"])) : O.tag_name === "tr" ? (A = A || this._tag_stack.try_pop("caption", ["table"]), A = A || this._tag_stack.try_pop("colgroup", ["table"]), A = A || this._tag_stack.try_pop("tr", ["table", "thead", "tbody", "tfoot"])) : (O.tag_name === "th" || O.tag_name === "td") && (A = A || this._tag_stack.try_pop("td", ["table", "thead", "tbody", "tfoot", "tr"]), A = A || this._tag_stack.try_pop("th", ["table", "thead", "tbody", "tfoot", "tr"]));
23952
+ return O.parent = this._tag_stack.get_parser_token(), A;
23946
23953
  }
23947
23954
  }, tE.Beautifier = f, tE;
23948
23955
  }
@@ -23987,8 +23994,8 @@ var y0 = qf.exports, sd = { exports: {} };
23987
23994
  (function(e, t) {
23988
23995
  (function() {
23989
23996
  function n(r, i) {
23990
- var s, a = 0, o = r.length, E, l = "", u, c, f, N, I, h, p, A, R = !0, O = !1, d;
23991
- s = arguments.length > 1 ? i : {}, typeof s.indent > "u" && (s.indent = " "), typeof s.openbrace == "string" && (R = s.openbrace === "end-of-line"), typeof s.autosemicolon == "boolean" && (O = s.autosemicolon);
23997
+ var s, a = 0, o = r.length, E, l = "", u, c, f, N, I, h, O, A, R = !0, p = !1, d;
23998
+ s = arguments.length > 1 ? i : {}, typeof s.indent > "u" && (s.indent = " "), typeof s.openbrace == "string" && (R = s.openbrace === "end-of-line"), typeof s.autosemicolon == "boolean" && (p = s.autosemicolon);
23992
23999
  function m(D) {
23993
24000
  return D === " " || D === `
23994
24001
  ` || D === " " || D === "\r" || D === "\f";
@@ -24012,7 +24019,7 @@ var y0 = qf.exports, sd = { exports: {} };
24012
24019
  }
24013
24020
  function S() {
24014
24021
  var D;
24015
- h -= 1, l = d(l), l.length > 0 && O && (D = l.charAt(l.length - 1), D !== ";" && D !== "{" && (l += ";")), l += `
24022
+ h -= 1, l = d(l), l.length > 0 && p && (D = l.charAt(l.length - 1), D !== ";" && D !== "{" && (l += ";")), l += `
24016
24023
  `, L(), l += "}", E.push(l), l = "";
24017
24024
  }
24018
24025
  for (String.prototype.trimRight ? d = function(D) {
@@ -24031,12 +24038,12 @@ var y0 = qf.exports, sd = { exports: {} };
24031
24038
  URL: 8
24032
24039
  }, h = 0, N = I.Start, A = !1, E = [], r = r.replace(/\r\n/g, `
24033
24040
  `); a < o; ) {
24034
- if (u = r.charAt(a), c = r.charAt(a + 1), a += 1, _(p)) {
24035
- l += u, u === p && (p = null), u === "\\" && c === p && (l += c, a += 1);
24041
+ if (u = r.charAt(a), c = r.charAt(a + 1), a += 1, _(O)) {
24042
+ l += u, u === O && (O = null), u === "\\" && c === O && (l += c, a += 1);
24036
24043
  continue;
24037
24044
  }
24038
24045
  if (_(u)) {
24039
- l += u, p = u;
24046
+ l += u, O = u;
24040
24047
  continue;
24041
24048
  }
24042
24049
  if (A) {
@@ -24388,13 +24395,13 @@ function U0(e, t) {
24388
24395
  var h = -n.indent_level;
24389
24396
  else
24390
24397
  var h = 1;
24391
- var p = n.get_full_indent(h);
24398
+ var O = n.get_full_indent(h);
24392
24399
  if (I)
24393
- N = I(N.replace(/^\s*/, p), t);
24400
+ N = I(N.replace(/^\s*/, O), t);
24394
24401
  else {
24395
- var A = N.match(/^\s*/)[0], R = A.match(/[^\n\r]*$/)[0].split(n.indent_string).length - 1, O = n.get_full_indent(h - R);
24396
- N = N.replace(/^\s*/, p).replace(/\r\n|\r|\n/g, `
24397
- ` + O).replace(/\s*$/, "");
24402
+ var A = N.match(/^\s*/)[0], R = A.match(/[^\n\r]*$/)[0].split(n.indent_string).length - 1, p = n.get_full_indent(h - R);
24403
+ N = N.replace(/^\s*/, O).replace(/\r\n|\r|\n/g, `
24404
+ ` + p).replace(/\s*$/, "");
24398
24405
  }
24399
24406
  N && (n.print_token(N), n.print_newline(!0, n.output));
24400
24407
  }
@@ -24480,10 +24487,10 @@ var Y0 = ad.exports, Rn = {}, od = {}, kt = {};
24480
24487
  var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, E = o.callback;
24481
24488
  typeof o == "function" && (E = o, o = {}), this.options = o;
24482
24489
  var l = this;
24483
- function u(O) {
24490
+ function u(p) {
24484
24491
  return E ? (setTimeout(function() {
24485
- E(void 0, O);
24486
- }, 0), !0) : O;
24492
+ E(void 0, p);
24493
+ }, 0), !0) : p;
24487
24494
  }
24488
24495
  s = this.castInput(s), a = this.castInput(a), s = this.removeEmpty(this.tokenize(s)), a = this.removeEmpty(this.tokenize(a));
24489
24496
  var c = a.length, f = s.length, N = 1, I = c + f;
@@ -24491,36 +24498,36 @@ var Y0 = ad.exports, Rn = {}, od = {}, kt = {};
24491
24498
  var h = [{
24492
24499
  newPos: -1,
24493
24500
  components: []
24494
- }], p = this.extractCommon(h[0], a, s, 0);
24495
- if (h[0].newPos + 1 >= c && p + 1 >= f)
24501
+ }], O = this.extractCommon(h[0], a, s, 0);
24502
+ if (h[0].newPos + 1 >= c && O + 1 >= f)
24496
24503
  return u([{
24497
24504
  value: this.join(a),
24498
24505
  count: a.length
24499
24506
  }]);
24500
24507
  function A() {
24501
- for (var O = -1 * N; O <= N; O += 2) {
24508
+ for (var p = -1 * N; p <= N; p += 2) {
24502
24509
  var d = (
24503
24510
  /*istanbul ignore start*/
24504
24511
  void 0
24505
- ), m = h[O - 1], _ = h[O + 1], C = (_ ? _.newPos : 0) - O;
24506
- m && (h[O - 1] = void 0);
24512
+ ), m = h[p - 1], _ = h[p + 1], C = (_ ? _.newPos : 0) - p;
24513
+ m && (h[p - 1] = void 0);
24507
24514
  var L = m && m.newPos + 1 < c, g = _ && 0 <= C && C < f;
24508
24515
  if (!L && !g) {
24509
- h[O] = void 0;
24516
+ h[p] = void 0;
24510
24517
  continue;
24511
24518
  }
24512
- if (!L || g && m.newPos < _.newPos ? (d = r(_), l.pushComponent(d.components, void 0, !0)) : (d = m, d.newPos++, l.pushComponent(d.components, !0, void 0)), C = l.extractCommon(d, a, s, O), d.newPos + 1 >= c && C + 1 >= f)
24519
+ if (!L || g && m.newPos < _.newPos ? (d = r(_), l.pushComponent(d.components, void 0, !0)) : (d = m, d.newPos++, l.pushComponent(d.components, !0, void 0)), C = l.extractCommon(d, a, s, p), d.newPos + 1 >= c && C + 1 >= f)
24513
24520
  return u(n(l, d.components, a, s, l.useLongestToken));
24514
- h[O] = d;
24521
+ h[p] = d;
24515
24522
  }
24516
24523
  N++;
24517
24524
  }
24518
24525
  if (E)
24519
- (function O() {
24526
+ (function p() {
24520
24527
  setTimeout(function() {
24521
24528
  if (N > I)
24522
24529
  return E();
24523
- A() || O();
24530
+ A() || p();
24524
24531
  }, 0);
24525
24532
  })();
24526
24533
  else
@@ -24593,16 +24600,16 @@ var Y0 = ad.exports, Rn = {}, od = {}, kt = {};
24593
24600
  if (!N.added && E) {
24594
24601
  var I = a.slice(c, c + N.count);
24595
24602
  I = I.map(function(A, R) {
24596
- var O = o[f + R];
24597
- return O.length > A.length ? O : A;
24603
+ var p = o[f + R];
24604
+ return p.length > A.length ? p : A;
24598
24605
  }), N.value = i.join(I);
24599
24606
  } else
24600
24607
  N.value = i.join(a.slice(c, c + N.count));
24601
24608
  c += N.count, N.added || (f += N.count);
24602
24609
  }
24603
24610
  }
24604
- var p = s[u - 1];
24605
- return u > 1 && typeof p.value == "string" && (p.added || p.removed) && i.equals("", p.value) && (s[u - 2].value += p.value, s.pop()), s;
24611
+ var O = s[u - 1];
24612
+ return u > 1 && typeof O.value == "string" && (O.added || O.removed) && i.equals("", O.value) && (s[u - 2].value += O.value, s.pop()), s;
24606
24613
  }
24607
24614
  function r(i) {
24608
24615
  return {
@@ -24964,12 +24971,12 @@ function Ad(e, t) {
24964
24971
  return !0;
24965
24972
  }
24966
24973
  for (var I = 0; I < s.length; I++) {
24967
- for (var h = s[I], p = r.length - h.oldLines, A = 0, R = u + h.oldStart - 1, O = (
24974
+ for (var h = s[I], O = r.length - h.oldLines, A = 0, R = u + h.oldStart - 1, p = (
24968
24975
  /*istanbul ignore start*/
24969
24976
  /*istanbul ignore end*/
24970
24977
  /*istanbul ignore start*/
24971
- (0, fm.default)(R, l, p)
24972
- ); A !== void 0; A = O())
24978
+ (0, fm.default)(R, l, O)
24979
+ ); A !== void 0; A = p())
24973
24980
  if (N(h, R + A)) {
24974
24981
  h.offset = u += A;
24975
24982
  break;
@@ -25089,9 +25096,9 @@ function cd(e, t, n, r, i, s, a) {
25089
25096
  });
25090
25097
  }
25091
25098
  for (var l = [], u = 0, c = 0, f = [], N = 1, I = 1, h = function(R) {
25092
- var O = o[R], d = O.lines || O.value.replace(/\n$/, "").split(`
25099
+ var p = o[R], d = p.lines || p.value.replace(/\n$/, "").split(`
25093
25100
  `);
25094
- if (O.lines = d, O.added || O.removed) {
25101
+ if (p.lines = d, p.added || p.removed) {
25095
25102
  var m;
25096
25103
  if (!u) {
25097
25104
  var _ = o[R - 1];
@@ -25105,10 +25112,10 @@ function cd(e, t, n, r, i, s, a) {
25105
25112
  rE(
25106
25113
  /*istanbul ignore end*/
25107
25114
  d.map(function(U) {
25108
- return (O.added ? "+" : "-") + U;
25115
+ return (p.added ? "+" : "-") + U;
25109
25116
  })
25110
25117
  )
25111
- ), O.added ? I += d.length : N += d.length;
25118
+ ), p.added ? I += d.length : N += d.length;
25112
25119
  } else {
25113
25120
  if (u)
25114
25121
  if (d.length <= a.context * 2 && R < o.length - 2) {
@@ -25150,10 +25157,10 @@ function cd(e, t, n, r, i, s, a) {
25150
25157
  }
25151
25158
  N += d.length, I += d.length;
25152
25159
  }
25153
- }, p = 0; p < o.length; p++)
25160
+ }, O = 0; O < o.length; O++)
25154
25161
  h(
25155
25162
  /*istanbul ignore end*/
25156
- p
25163
+ O
25157
25164
  );
25158
25165
  return {
25159
25166
  oldFileName: e,
@@ -25636,8 +25643,8 @@ function Hm(e) {
25636
25643
  }
25637
25644
  });
25638
25645
  var t = h(kt), n = ki, r = Ur, i = hn, s = Xi, a = ji, o = xr, E = Ki, l = Qa, u = Ji, c = qa, f = zn, N = Du, I = gu;
25639
- function h(p) {
25640
- return p && p.__esModule ? p : { default: p };
25646
+ function h(O) {
25647
+ return O && O.__esModule ? O : { default: O };
25641
25648
  }
25642
25649
  })(od);
25643
25650
  var Bm = ce && ce.__createBinding || (Object.create ? function(e, t, n, r) {
@@ -25690,10 +25697,10 @@ const Cc = (e) => e === "" ? [] : e.replace(/\n$/, "").split(`
25690
25697
  ignoreCase: !1
25691
25698
  }) : a = ul.diffJson(e, t);
25692
25699
  let o = i, E = i, l = [], u = 0;
25693
- const c = [], f = [], N = (I, h, p, A, R) => Cc(I).map((d, m) => {
25700
+ const c = [], f = [], N = (I, h, O, A, R) => Cc(I).map((d, m) => {
25694
25701
  const _ = {}, C = {};
25695
25702
  if (!(f.includes(`${h}-${m}`) || R && m !== 0)) {
25696
- if (p || A) {
25703
+ if (O || A) {
25697
25704
  let L = !0;
25698
25705
  if (A) {
25699
25706
  E += 1, _.lineNumber = E, _.type = wt.REMOVED, _.value = d || " ";
@@ -25720,10 +25727,10 @@ const Cc = (e) => e === "" ? [] : e.replace(/\n$/, "").split(`
25720
25727
  return (s != null && s.includes(`L-${_.lineNumber}`) || s != null && s.includes(`R-${C.lineNumber}`) && !c.includes(u)) && c.push(u), R || (u += 1), { right: C, left: _ };
25721
25728
  }
25722
25729
  }).filter(Boolean);
25723
- return a.forEach(({ added: I, removed: h, value: p }, A) => {
25730
+ return a.forEach(({ added: I, removed: h, value: O }, A) => {
25724
25731
  l = [
25725
25732
  ...l,
25726
- ...N(p, A, I, h)
25733
+ ...N(O, A, I, h)
25727
25734
  ];
25728
25735
  }), {
25729
25736
  lineInformation: l,
@@ -25914,7 +25921,7 @@ function oP(e) {
25914
25921
  return hd(Bs("", null, null, null, [""], e = _d(e), 0, [0], e));
25915
25922
  }
25916
25923
  function Bs(e, t, n, r, i, s, a, o, E) {
25917
- for (var l = 0, u = 0, c = a, f = 0, N = 0, I = 0, h = 1, p = 1, A = 1, R = 0, O = "", d = i, m = s, _ = r, C = O; p; )
25924
+ for (var l = 0, u = 0, c = a, f = 0, N = 0, I = 0, h = 1, O = 1, A = 1, R = 0, p = "", d = i, m = s, _ = r, C = p; O; )
25918
25925
  switch (I = R, R = nt()) {
25919
25926
  case 40:
25920
25927
  if (I != 108 && Me(C, c - 1) == 58) {
@@ -25953,14 +25960,14 @@ function Bs(e, t, n, r, i, s, a, o, E) {
25953
25960
  switch (R) {
25954
25961
  case 0:
25955
25962
  case 125:
25956
- p = 0;
25963
+ O = 0;
25957
25964
  case 59 + u:
25958
25965
  A == -1 && (C = $(C, /\f/g, "")), N > 0 && Ct(C) - c && _s(N > 32 ? mc(C + ";", r, n, c - 1) : mc($(C, " ", "") + ";", r, n, c - 2), E);
25959
25966
  break;
25960
25967
  case 59:
25961
25968
  C += ";";
25962
25969
  default:
25963
- if (_s(_ = Lc(C, t, n, l, u, i, o, O, d = [], m = [], c), s), R === 123)
25970
+ if (_s(_ = Lc(C, t, n, l, u, i, o, p, d = [], m = [], c), s), R === 123)
25964
25971
  if (u === 0)
25965
25972
  Bs(C, t, _, _, d, s, c, o, m);
25966
25973
  else
@@ -25969,13 +25976,13 @@ function Bs(e, t, n, r, i, s, a, o, E) {
25969
25976
  case 108:
25970
25977
  case 109:
25971
25978
  case 115:
25972
- Bs(e, _, _, r && _s(Lc(e, _, _, 0, 0, i, o, O, i, d = [], c), m), i, m, c, o, r ? d : m);
25979
+ Bs(e, _, _, r && _s(Lc(e, _, _, 0, 0, i, o, p, i, d = [], c), m), i, m, c, o, r ? d : m);
25973
25980
  break;
25974
25981
  default:
25975
25982
  Bs(C, _, _, _, [""], m, 0, o, m);
25976
25983
  }
25977
25984
  }
25978
- l = u = N = 0, h = A = 1, O = C = "", c = a;
25985
+ l = u = N = 0, h = A = 1, p = C = "", c = a;
25979
25986
  break;
25980
25987
  case 58:
25981
25988
  c = 1 + Ct(C), N = I;
@@ -25994,7 +26001,7 @@ function Bs(e, t, n, r, i, s, a, o, E) {
25994
26001
  o[l++] = (Ct(C) - 1) * A, A = 1;
25995
26002
  break;
25996
26003
  case 64:
25997
- Mt() === 45 && (C += Hs(nt())), f = Mt(), u = c = Ct(O = C += aP(bs())), R++;
26004
+ Mt() === 45 && (C += Hs(nt())), f = Mt(), u = c = Ct(p = C += aP(bs())), R++;
25998
26005
  break;
25999
26006
  case 45:
26000
26007
  I === 45 && Ct(C) == 2 && (h = 0);
@@ -26003,9 +26010,9 @@ function Bs(e, t, n, r, i, s, a, o, E) {
26003
26010
  return s;
26004
26011
  }
26005
26012
  function Lc(e, t, n, r, i, s, a, o, E, l, u) {
26006
- for (var c = i - 1, f = i === 0 ? s : [""], N = Uu(f), I = 0, h = 0, p = 0; I < r; ++I)
26007
- for (var A = 0, R = yi(e, c + 1, c = zm(h = a[I])), O = e; A < N; ++A)
26008
- (O = Od(h > 0 ? f[A] + " " + R : $(R, /&\f/g, f[A]))) && (E[p++] = O);
26013
+ for (var c = i - 1, f = i === 0 ? s : [""], N = Uu(f), I = 0, h = 0, O = 0; I < r; ++I)
26014
+ for (var A = 0, R = yi(e, c + 1, c = zm(h = a[I])), p = e; A < N; ++A)
26015
+ (p = Od(h > 0 ? f[A] + " " + R : $(R, /&\f/g, f[A]))) && (E[O++] = p);
26009
26016
  return no(e, t, n, i === 0 ? yu : o, E, l, u);
26010
26017
  }
26011
26018
  function EP(e, t, n) {
@@ -26253,8 +26260,8 @@ var NP = function(t, n, r, i) {
26253
26260
  if (n === "css") {
26254
26261
  var r = document.querySelectorAll("style[data-emotion]:not([data-s])");
26255
26262
  Array.prototype.forEach.call(r, function(h) {
26256
- var p = h.getAttribute("data-emotion");
26257
- p.indexOf(" ") !== -1 && (document.head.appendChild(h), h.setAttribute("data-s", ""));
26263
+ var O = h.getAttribute("data-emotion");
26264
+ O.indexOf(" ") !== -1 && (document.head.appendChild(h), h.setAttribute("data-s", ""));
26258
26265
  });
26259
26266
  }
26260
26267
  var i = t.stylisPlugins || pP, s = {}, a, o = [];
@@ -26263,8 +26270,8 @@ var NP = function(t, n, r, i) {
26263
26270
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
26264
26271
  document.querySelectorAll('style[data-emotion^="' + n + ' "]'),
26265
26272
  function(h) {
26266
- for (var p = h.getAttribute("data-emotion").split(" "), A = 1; A < p.length; A++)
26267
- s[p[A]] = !0;
26273
+ for (var O = h.getAttribute("data-emotion").split(" "), A = 1; A < O.length; A++)
26274
+ s[O[A]] = !0;
26268
26275
  o.push(h);
26269
26276
  }
26270
26277
  );
@@ -26272,11 +26279,11 @@ var NP = function(t, n, r, i) {
26272
26279
  {
26273
26280
  var u, c = [lP, TP(function(h) {
26274
26281
  u.insert(h);
26275
- })], f = uP(l.concat(i, c)), N = function(p) {
26276
- return pr(oP(p), f);
26282
+ })], f = uP(l.concat(i, c)), N = function(O) {
26283
+ return pr(oP(O), f);
26277
26284
  };
26278
- E = function(p, A, R, O) {
26279
- u = R, N(p ? p + "{" + A.styles + "}" : A.styles), O && (I.inserted[A.name] = !0);
26285
+ E = function(O, A, R, p) {
26286
+ u = R, N(O ? O + "{" + A.styles + "}" : A.styles), p && (I.inserted[A.name] = !0);
26280
26287
  };
26281
26288
  }
26282
26289
  var I = {
@@ -26694,7 +26701,7 @@ Mu.default = (e, t = !1, n = "") => {
26694
26701
  }), h = o({
26695
26702
  color: a.gutterColor,
26696
26703
  label: "line-number"
26697
- }), p = o({
26704
+ }), O = o({
26698
26705
  background: a.removedBackground,
26699
26706
  color: a.removedColor,
26700
26707
  pre: {
@@ -26720,7 +26727,7 @@ Mu.default = (e, t = !1, n = "") => {
26720
26727
  color: a.gutterColor
26721
26728
  },
26722
26729
  label: "diff-changed"
26723
- }), O = o({
26730
+ }), p = o({
26724
26731
  padding: 2,
26725
26732
  display: "inline-flex",
26726
26733
  borderRadius: 4,
@@ -26762,7 +26769,7 @@ Mu.default = (e, t = !1, n = "") => {
26762
26769
  color: a.addedColor
26763
26770
  }
26764
26771
  },
26765
- [`&.${p}`]: {
26772
+ [`&.${O}`]: {
26766
26773
  pre: {
26767
26774
  color: a.removedColor
26768
26775
  }
@@ -26796,7 +26803,7 @@ Mu.default = (e, t = !1, n = "") => {
26796
26803
  [`&.${A}`]: {
26797
26804
  background: a.addedGutterBackground
26798
26805
  },
26799
- [`&.${p}`]: {
26806
+ [`&.${O}`]: {
26800
26807
  background: a.removedGutterBackground
26801
26808
  },
26802
26809
  [`&.${D}`]: {
@@ -26816,7 +26823,7 @@ Mu.default = (e, t = !1, n = "") => {
26816
26823
  label: "line"
26817
26824
  }), w = {
26818
26825
  diffContainer: c,
26819
- diffRemoved: p,
26826
+ diffRemoved: O,
26820
26827
  diffAdded: A,
26821
26828
  diffChanged: R,
26822
26829
  splitView: u,
@@ -26825,7 +26832,7 @@ Mu.default = (e, t = !1, n = "") => {
26825
26832
  highlightedLine: S,
26826
26833
  gutter: M,
26827
26834
  line: U,
26828
- wordDiff: O,
26835
+ wordDiff: p,
26829
26836
  wordAdded: d,
26830
26837
  wordRemoved: m,
26831
26838
  codeFoldGutter: _,
@@ -26901,26 +26908,26 @@ const FP = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26901
26908
  default: BP
26902
26909
  }, Symbol.toStringTag, { value: "Module" })), YP = /* @__PURE__ */ Gc(FP);
26903
26910
  (function(e) {
26904
- var t = ce && ce.__createBinding || (Object.create ? function(h, p, A, R) {
26911
+ var t = ce && ce.__createBinding || (Object.create ? function(h, O, A, R) {
26905
26912
  R === void 0 && (R = A);
26906
- var O = Object.getOwnPropertyDescriptor(p, A);
26907
- (!O || ("get" in O ? !p.__esModule : O.writable || O.configurable)) && (O = { enumerable: !0, get: function() {
26908
- return p[A];
26909
- } }), Object.defineProperty(h, R, O);
26910
- } : function(h, p, A, R) {
26911
- R === void 0 && (R = A), h[R] = p[A];
26912
- }), n = ce && ce.__setModuleDefault || (Object.create ? function(h, p) {
26913
- Object.defineProperty(h, "default", { enumerable: !0, value: p });
26914
- } : function(h, p) {
26915
- h.default = p;
26913
+ var p = Object.getOwnPropertyDescriptor(O, A);
26914
+ (!p || ("get" in p ? !O.__esModule : p.writable || p.configurable)) && (p = { enumerable: !0, get: function() {
26915
+ return O[A];
26916
+ } }), Object.defineProperty(h, R, p);
26917
+ } : function(h, O, A, R) {
26918
+ R === void 0 && (R = A), h[R] = O[A];
26919
+ }), n = ce && ce.__setModuleDefault || (Object.create ? function(h, O) {
26920
+ Object.defineProperty(h, "default", { enumerable: !0, value: O });
26921
+ } : function(h, O) {
26922
+ h.default = O;
26916
26923
  }), r = ce && ce.__importStar || function(h) {
26917
26924
  if (h && h.__esModule)
26918
26925
  return h;
26919
- var p = {};
26926
+ var O = {};
26920
26927
  if (h != null)
26921
26928
  for (var A in h)
26922
- A !== "default" && Object.prototype.hasOwnProperty.call(h, A) && t(p, h, A);
26923
- return n(p, h), p;
26929
+ A !== "default" && Object.prototype.hasOwnProperty.call(h, A) && t(O, h, A);
26930
+ return n(O, h), O;
26924
26931
  }, i = ce && ce.__importDefault || function(h) {
26925
26932
  return h && h.__esModule ? h : { default: h };
26926
26933
  };
@@ -26935,8 +26942,8 @@ const FP = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26935
26942
  h.LEFT = "L", h.RIGHT = "R";
26936
26943
  })(N || (e.LineNumberPrefix = N = {}));
26937
26944
  class I extends a.Component {
26938
- constructor(p) {
26939
- super(p), this.resetCodeBlocks = () => this.state.expandedBlocks.length > 0 ? (this.setState({
26945
+ constructor(O) {
26946
+ super(O), this.resetCodeBlocks = () => this.state.expandedBlocks.length > 0 ? (this.setState({
26940
26947
  expandedBlocks: []
26941
26948
  }), !0) : !1, this.onBlockExpand = (A) => {
26942
26949
  const R = this.state.expandedBlocks.slice();
@@ -26944,11 +26951,11 @@ const FP = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26944
26951
  expandedBlocks: R
26945
26952
  });
26946
26953
  }, this.computeStyles = f(l.default), this.onLineNumberClickProxy = (A) => this.props.onLineNumberClick ? (R) => this.props.onLineNumberClick(A, R) : () => {
26947
- }, this.renderWordDiff = (A, R) => A.map((O, d) => (0, s.jsx)("span", { className: (0, o.default)(this.styles.wordDiff, {
26948
- [this.styles.wordAdded]: O.type === E.DiffType.ADDED,
26949
- [this.styles.wordRemoved]: O.type === E.DiffType.REMOVED
26950
- }), children: R ? R(O.value) : O.value }, d)), this.renderLine = (A, R, O, d, m, _) => {
26951
- const C = `${O}-${A}`, L = `${_}-${m}`, g = this.props.highlightLines.includes(C) || this.props.highlightLines.includes(L), S = R === E.DiffType.ADDED, D = R === E.DiffType.REMOVED, M = R === E.DiffType.CHANGED;
26954
+ }, this.renderWordDiff = (A, R) => A.map((p, d) => (0, s.jsx)("span", { className: (0, o.default)(this.styles.wordDiff, {
26955
+ [this.styles.wordAdded]: p.type === E.DiffType.ADDED,
26956
+ [this.styles.wordRemoved]: p.type === E.DiffType.REMOVED
26957
+ }), children: R ? R(p.value) : p.value }, d)), this.renderLine = (A, R, p, d, m, _) => {
26958
+ const C = `${p}-${A}`, L = `${_}-${m}`, g = this.props.highlightLines.includes(C) || this.props.highlightLines.includes(L), S = R === E.DiffType.ADDED, D = R === E.DiffType.REMOVED, M = R === E.DiffType.CHANGED;
26952
26959
  let v;
26953
26960
  return Array.isArray(d) ? v = this.renderWordDiff(d, this.props.renderContent) : this.props.renderContent ? v = this.props.renderContent(d) : v = d, (0, s.jsxs)(a.Fragment, { children: [!this.props.hideLineNumbers && (0, s.jsx)("td", { onClick: A && this.onLineNumberClickProxy(C), className: (0, o.default)(this.styles.gutter, {
26954
26961
  [this.styles.emptyGutter]: !A,
@@ -26965,7 +26972,7 @@ const FP = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26965
26972
  }), children: (0, s.jsx)("pre", { className: this.styles.lineNumber, children: m }) }), this.props.renderGutter ? this.props.renderGutter({
26966
26973
  lineNumber: A,
26967
26974
  type: R,
26968
- prefix: O,
26975
+ prefix: p,
26969
26976
  value: d,
26970
26977
  additionalLineNumber: m,
26971
26978
  additionalPrefix: _,
@@ -26983,16 +26990,16 @@ const FP = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26983
26990
  [this.styles.diffChanged]: M,
26984
26991
  [this.styles.highlightedLine]: g
26985
26992
  }), children: (0, s.jsx)("pre", { className: this.styles.contentText, children: v }) })] });
26986
- }, this.renderSplitView = ({ left: A, right: R }, O) => (0, s.jsxs)("tr", { className: this.styles.line, children: [this.renderLine(A.lineNumber, A.type, N.LEFT, A.value), this.renderLine(R.lineNumber, R.type, N.RIGHT, R.value)] }, O), this.renderInlineView = ({ left: A, right: R }, O) => {
26993
+ }, this.renderSplitView = ({ left: A, right: R }, p) => (0, s.jsxs)("tr", { className: this.styles.line, children: [this.renderLine(A.lineNumber, A.type, N.LEFT, A.value), this.renderLine(R.lineNumber, R.type, N.RIGHT, R.value)] }, p), this.renderInlineView = ({ left: A, right: R }, p) => {
26987
26994
  let d;
26988
- return A.type === E.DiffType.REMOVED && R.type === E.DiffType.ADDED ? (0, s.jsxs)(a.Fragment, { children: [(0, s.jsx)("tr", { className: this.styles.line, children: this.renderLine(A.lineNumber, A.type, N.LEFT, A.value, null) }), (0, s.jsx)("tr", { className: this.styles.line, children: this.renderLine(null, R.type, N.RIGHT, R.value, R.lineNumber) })] }, O) : (A.type === E.DiffType.REMOVED && (d = this.renderLine(A.lineNumber, A.type, N.LEFT, A.value, null)), A.type === E.DiffType.DEFAULT && (d = this.renderLine(A.lineNumber, A.type, N.LEFT, A.value, R.lineNumber, N.RIGHT)), R.type === E.DiffType.ADDED && (d = this.renderLine(null, R.type, N.RIGHT, R.value, R.lineNumber)), (0, s.jsx)("tr", { className: this.styles.line, children: d }, O));
26989
- }, this.onBlockClickProxy = (A) => () => this.onBlockExpand(A), this.renderSkippedLineIndicator = (A, R, O, d) => {
26990
- const { hideLineNumbers: m, splitView: _ } = this.props, C = this.props.codeFoldMessageRenderer ? this.props.codeFoldMessageRenderer(A, O, d) : (0, s.jsxs)("pre", { className: this.styles.codeFoldContent, children: ["Expand ", A, " lines ..."] }), L = (0, s.jsx)("td", { children: (0, s.jsx)("a", { onClick: this.onBlockClickProxy(R), tabIndex: 0, children: C }) }), g = !_ && !m;
26995
+ return A.type === E.DiffType.REMOVED && R.type === E.DiffType.ADDED ? (0, s.jsxs)(a.Fragment, { children: [(0, s.jsx)("tr", { className: this.styles.line, children: this.renderLine(A.lineNumber, A.type, N.LEFT, A.value, null) }), (0, s.jsx)("tr", { className: this.styles.line, children: this.renderLine(null, R.type, N.RIGHT, R.value, R.lineNumber) })] }, p) : (A.type === E.DiffType.REMOVED && (d = this.renderLine(A.lineNumber, A.type, N.LEFT, A.value, null)), A.type === E.DiffType.DEFAULT && (d = this.renderLine(A.lineNumber, A.type, N.LEFT, A.value, R.lineNumber, N.RIGHT)), R.type === E.DiffType.ADDED && (d = this.renderLine(null, R.type, N.RIGHT, R.value, R.lineNumber)), (0, s.jsx)("tr", { className: this.styles.line, children: d }, p));
26996
+ }, this.onBlockClickProxy = (A) => () => this.onBlockExpand(A), this.renderSkippedLineIndicator = (A, R, p, d) => {
26997
+ const { hideLineNumbers: m, splitView: _ } = this.props, C = this.props.codeFoldMessageRenderer ? this.props.codeFoldMessageRenderer(A, p, d) : (0, s.jsxs)("pre", { className: this.styles.codeFoldContent, children: ["Expand ", A, " lines ..."] }), L = (0, s.jsx)("td", { children: (0, s.jsx)("a", { onClick: this.onBlockClickProxy(R), tabIndex: 0, children: C }) }), g = !_ && !m;
26991
26998
  return (0, s.jsxs)("tr", { className: this.styles.codeFold, children: [!m && (0, s.jsx)("td", { className: this.styles.codeFoldGutter }), this.props.renderGutter ? (0, s.jsx)("td", { className: this.styles.codeFoldGutter }) : null, (0, s.jsx)("td", { className: (0, o.default)({
26992
26999
  [this.styles.codeFoldGutter]: g
26993
- }) }), g ? (0, s.jsxs)(a.Fragment, { children: [(0, s.jsx)("td", {}), L] }) : (0, s.jsxs)(a.Fragment, { children: [L, this.props.renderGutter ? (0, s.jsx)("td", {}) : null, (0, s.jsx)("td", {})] }), (0, s.jsx)("td", {}), (0, s.jsx)("td", {})] }, `${O}-${d}`);
27000
+ }) }), g ? (0, s.jsxs)(a.Fragment, { children: [(0, s.jsx)("td", {}), L] }) : (0, s.jsxs)(a.Fragment, { children: [L, this.props.renderGutter ? (0, s.jsx)("td", {}) : null, (0, s.jsx)("td", {})] }), (0, s.jsx)("td", {}), (0, s.jsx)("td", {})] }, `${p}-${d}`);
26994
27001
  }, this.renderDiff = () => {
26995
- const { oldValue: A, newValue: R, splitView: O, disableWordDiff: d, compareMethod: m, linesOffset: _ } = this.props, { lineInformation: C, diffLines: L } = (0, E.computeLineInformation)(A, R, d, m, _, this.props.alwaysShowLines), g = this.props.extraLinesSurroundingDiff < 0 ? 0 : Math.round(this.props.extraLinesSurroundingDiff), { lineBlocks: S, blocks: D } = (0, u.computeHiddenBlocks)(C, L, g);
27002
+ const { oldValue: A, newValue: R, splitView: p, disableWordDiff: d, compareMethod: m, linesOffset: _ } = this.props, { lineInformation: C, diffLines: L } = (0, E.computeLineInformation)(A, R, d, m, _, this.props.alwaysShowLines), g = this.props.extraLinesSurroundingDiff < 0 ? 0 : Math.round(this.props.extraLinesSurroundingDiff), { lineBlocks: S, blocks: D } = (0, u.computeHiddenBlocks)(C, L, g);
26996
27003
  return C.map((M, v) => {
26997
27004
  if (this.props.showDiffOnly) {
26998
27005
  const w = S[v];
@@ -27004,13 +27011,13 @@ const FP = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
27004
27011
  return null;
27005
27012
  }
27006
27013
  }
27007
- return O ? this.renderSplitView(M, v) : this.renderInlineView(M, v);
27014
+ return p ? this.renderSplitView(M, v) : this.renderInlineView(M, v);
27008
27015
  });
27009
27016
  }, this.render = () => {
27010
- const { oldValue: A, newValue: R, useDarkTheme: O, leftTitle: d, rightTitle: m, splitView: _, hideLineNumbers: C, hideMarkers: L, nonce: g } = this.props;
27017
+ const { oldValue: A, newValue: R, useDarkTheme: p, leftTitle: d, rightTitle: m, splitView: _, hideLineNumbers: C, hideMarkers: L, nonce: g } = this.props;
27011
27018
  if (this.props.compareMethod !== E.DiffMethod.JSON && (typeof A != "string" || typeof R != "string"))
27012
27019
  throw Error('"oldValue" and "newValue" should be strings');
27013
- this.styles = this.computeStyles(this.props.styles, O, g);
27020
+ this.styles = this.computeStyles(this.props.styles, p, g);
27014
27021
  const S = this.renderDiff();
27015
27022
  let D = C ? 2 : 3, M = C ? 2 : 4;
27016
27023
  L && (D -= 1, M -= 1);
@@ -27054,9 +27061,9 @@ function kP() {
27054
27061
  if (!o || !E || !(() => {
27055
27062
  if (i)
27056
27063
  return !0;
27057
- const p = document.head.querySelectorAll("style"), A = Array.from(p).filter((d) => d.getAttribute("data-emotion")), R = new CSSStyleSheet(), O = Array.from(A).map((d) => d.innerHTML).join(`
27064
+ const O = document.head.querySelectorAll("style"), A = Array.from(O).filter((d) => d.getAttribute("data-emotion")), R = new CSSStyleSheet(), p = Array.from(A).map((d) => d.innerHTML).join(`
27058
27065
  `);
27059
- return R.replaceSync(O), c && c.adoptedStyleSheets && !(c.adoptedStyleSheets.indexOf(R) >= 0) && A.length > 0 ? (c.adoptedStyleSheets = [...c.adoptedStyleSheets, R], s(!0), !0) : !1;
27066
+ return R.replaceSync(p), c && c.adoptedStyleSheets && !(c.adoptedStyleSheets.indexOf(R) >= 0) && A.length > 0 ? (c.adoptedStyleSheets = [...c.adoptedStyleSheets, R], s(!0), !0) : !1;
27060
27067
  })())
27061
27068
  return;
27062
27069
  const N = Ac(o, { format: "html" });
@@ -27163,57 +27170,59 @@ async function eD({
27163
27170
  integrations: a,
27164
27171
  experiments: o = uE,
27165
27172
  fullPage: E = !1,
27166
- showClearEventsButton: l = !0
27173
+ showClearEventsButton: l = !0,
27174
+ skipSidecar: u = !1
27167
27175
  } = {}) {
27168
27176
  if (typeof document > "u")
27169
27177
  return;
27170
- const u = { ...uE, ...o };
27178
+ const c = { ...uE, ...o };
27171
27179
  if (wc())
27172
27180
  return;
27173
27181
  s && Tp();
27174
- const c = [T1({ sidecarUrl: r })], f = {
27182
+ const f = [T1({ sidecarUrl: r })], N = {
27175
27183
  open: XP,
27176
27184
  close: jP,
27177
- experiments: u
27178
- }, [N] = await AR(a ?? c, f), I = document.createElement("div");
27179
- I.id = "sentry-spotlight-root";
27180
- const h = I.attachShadow({ mode: "open" }), p = document.createElement("div");
27181
- E ? (I.style.height = "100%", I.style.backgroundColor = np.indigo[950], p.style.height = "inherit") : (p.style.position = "absolute", p.style.top = "0", p.style.left = "0", p.style.right = "0"), h.appendChild(p);
27182
- const A = xc(Rp);
27183
- h.adoptedStyleSheets = [xc($d), A];
27184
- const R = N.flatMap(
27185
- (m) => {
27186
- var _;
27187
- return ((_ = m.tabs) == null ? void 0 : _.call(m, { processedEvents: [] }).map((C) => ({
27188
- ...C,
27185
+ experiments: c
27186
+ }, [I] = await AR(a ?? f, N), h = document.createElement("div");
27187
+ h.id = "sentry-spotlight-root";
27188
+ const O = h.attachShadow({ mode: "open" }), A = document.createElement("div");
27189
+ E ? (h.style.height = "100%", h.style.backgroundColor = np.indigo[950], A.style.height = "inherit") : (A.style.position = "absolute", A.style.top = "0", A.style.left = "0", A.style.right = "0"), O.appendChild(A);
27190
+ const R = xc(Rp);
27191
+ O.adoptedStyleSheets = [xc($d), R];
27192
+ const p = I.flatMap(
27193
+ (_) => {
27194
+ var C;
27195
+ return ((C = _.tabs) == null ? void 0 : C.call(_, { processedEvents: [] }).map((L) => ({
27196
+ ...L,
27189
27197
  processedEvents: []
27190
27198
  }))) || [];
27191
27199
  }
27192
- ), O = R.length ? `/${R[0].id}` : "/no-tabs";
27193
- RE.createRoot(p).render(
27200
+ ), d = p.length ? `/${p[0].id}` : "/no-tabs";
27201
+ RE.createRoot(A).render(
27194
27202
  // <React.StrictMode>
27195
- /* @__PURE__ */ T.jsx(YN, { initialEntries: [O], children: /* @__PURE__ */ T.jsx(Kp, { context: f, children: /* @__PURE__ */ T.jsx(
27203
+ /* @__PURE__ */ T.jsx(YN, { initialEntries: [d], children: /* @__PURE__ */ T.jsx(Kp, { context: N, children: /* @__PURE__ */ T.jsx(
27196
27204
  cp,
27197
27205
  {
27198
- integrations: N,
27206
+ integrations: I,
27199
27207
  openOnInit: e,
27200
27208
  showTriggerButton: t,
27201
27209
  sidecarUrl: r,
27202
27210
  anchor: i,
27203
27211
  fullPage: E,
27204
- showClearEventsButton: l
27212
+ showClearEventsButton: l,
27213
+ skipSidecar: u
27205
27214
  }
27206
27215
  ) }) })
27207
27216
  // </React.StrictMode>
27208
27217
  );
27209
- function d() {
27218
+ function m() {
27210
27219
  if (wc()) {
27211
27220
  ee("Spotlight already injected, bailing.");
27212
27221
  return;
27213
27222
  }
27214
- ee("Injecting into application"), document.body.append(I);
27223
+ ee("Injecting into application"), document.body.append(h);
27215
27224
  }
27216
- document.readyState === "complete" || n ? d() : window.addEventListener("load", d), window.addEventListener("error", d);
27225
+ document.readyState === "complete" || n ? m() : window.addEventListener("load", m), window.addEventListener("error", m);
27217
27226
  }
27218
27227
  window.Spotlight && Spotlight.init();
27219
27228
  export {
@@ -27240,4 +27249,4 @@ export {
27240
27249
  lR as t,
27241
27250
  zP as v
27242
27251
  };
27243
- //# sourceMappingURL=index-b5d12201.js.map
27252
+ //# sourceMappingURL=index-dcda5286.js.map