@banou/stub 0.0.59 → 0.0.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/assets/{anime-seasons-OlRPaNUG.js → anime-seasons-Sn5AGwGE.js} +1 -1
- package/build/assets/index-2HlB7SZv.js +2648 -0
- package/build/assets/{lib-worker--oXTPCmY.js → lib-worker-BndrZI3N.js} +1 -1
- package/build/assets/{lib-worker-CAtrMpYx.js → lib-worker-C98YLtbN.js} +1 -1
- package/build/assets/{lib-worker-anime-seasons-OlRPaNUG.js → lib-worker-anime-seasons-Sn5AGwGE.js} +1 -1
- package/build/assets/lib-worker-index-CDl3F6Py.js +2648 -0
- package/build/assets/{main-DnIv6GDX.js → main-CAGSHpO8.js} +56 -54
- package/build/assets/{worker-CwdUYmJH.js → worker-6zDaiXIC.js} +1 -1
- package/build/assets/{worker-CsKngzyA.js → worker-CNWgVhRO.js} +1 -1
- package/build/index.html +2 -2
- package/build/index.js +1413 -534
- package/fkn.json +1 -1
- package/package.json +1 -1
- package/build/assets/index-AaeFL1HL.js +0 -2654
- package/build/assets/lib-worker-index-C76K1LUo.js +0 -2654
package/build/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(() => { const s = document.createElement('style'); s.textContent = ".react-flow{--xy-edge-stroke-default:#b1b1b7;--xy-edge-stroke-width-default:1;--xy-edge-stroke-selected-default:#555;--xy-connectionline-stroke-default:#b1b1b7;--xy-connectionline-stroke-width-default:1;--xy-attribution-background-color-default:#ffffff80;--xy-minimap-background-color-default:#fff;--xy-minimap-mask-background-color-default:#f0f0f099;--xy-minimap-mask-stroke-color-default:transparent;--xy-minimap-mask-stroke-width-default:1;--xy-minimap-node-background-color-default:#e2e2e2;--xy-minimap-node-stroke-color-default:transparent;--xy-minimap-node-stroke-width-default:2;--xy-background-color-default:transparent;--xy-background-pattern-dots-color-default:#91919a;--xy-background-pattern-lines-color-default:#eee;--xy-background-pattern-cross-color-default:#e2e2e2;background-color:var(--xy-background-color,var(--xy-background-color-default));--xy-node-color-default:inherit;--xy-node-border-default:1px solid #1a192b;--xy-node-background-color-default:#fff;--xy-node-group-background-color-default:#f0f0f040;--xy-node-boxshadow-hover-default:0 1px 4px 1px #00000014;--xy-node-boxshadow-selected-default:0 0 0 .5px #1a192b;--xy-node-border-radius-default:3px;--xy-handle-background-color-default:#1a192b;--xy-handle-border-color-default:#fff;--xy-selection-background-color-default:#0059dc14;--xy-selection-border-default:1px dotted #0059dccc;--xy-controls-button-background-color-default:#fefefe;--xy-controls-button-background-color-hover-default:#f4f4f4;--xy-controls-button-color-default:inherit;--xy-controls-button-color-hover-default:inherit;--xy-controls-button-border-color-default:#eee;--xy-controls-box-shadow-default:0 0 2px 1px #00000014;--xy-edge-label-background-color-default:#fff;--xy-edge-label-color-default:inherit;--xy-resize-background-color-default:#3367d9;direction:ltr}.react-flow.dark{--xy-edge-stroke-default:#3e3e3e;--xy-edge-stroke-width-default:1;--xy-edge-stroke-selected-default:#727272;--xy-connectionline-stroke-default:#b1b1b7;--xy-connectionline-stroke-width-default:1;--xy-attribution-background-color-default:#96969640;--xy-minimap-background-color-default:#141414;--xy-minimap-mask-background-color-default:#3c3c3c99;--xy-minimap-mask-stroke-color-default:transparent;--xy-minimap-mask-stroke-width-default:1;--xy-minimap-node-background-color-default:#2b2b2b;--xy-minimap-node-stroke-color-default:transparent;--xy-minimap-node-stroke-width-default:2;--xy-background-color-default:#141414;--xy-background-pattern-dots-color-default:#555;--xy-background-pattern-lines-color-default:#333;--xy-background-pattern-cross-color-default:#333;--xy-node-color-default:#f8f8f8;--xy-node-border-default:1px solid #3c3c3c;--xy-node-background-color-default:#1e1e1e;--xy-node-group-background-color-default:#f0f0f040;--xy-node-boxshadow-hover-default:0 1px 4px 1px #ffffff14;--xy-node-boxshadow-selected-default:0 0 0 .5px #999;--xy-handle-background-color-default:#bebebe;--xy-handle-border-color-default:#1e1e1e;--xy-selection-background-color-default:#c8c8dc14;--xy-selection-border-default:1px dotted #c8c8dccc;--xy-controls-button-background-color-default:#2b2b2b;--xy-controls-button-background-color-hover-default:#3e3e3e;--xy-controls-button-color-default:#f8f8f8;--xy-controls-button-color-hover-default:#fff;--xy-controls-button-border-color-default:#5b5b5b;--xy-controls-box-shadow-default:0 0 2px 1px #00000014;--xy-edge-label-background-color-default:#141414;--xy-edge-label-color-default:#f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props,var(--xy-background-color,var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{width:100%;height:100%;position:absolute;top:0;left:0}.react-flow__pane{z-index:1;touch-action:none}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke,var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width,var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke,var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width,var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{pointer-events:none;position:absolute;overflow:visible}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:.5s linear infinite dashdraw}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected,var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke,var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke,var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:.5s linear infinite dashdraw}svg.react-flow__connectionline{z-index:1001;position:absolute;overflow:visible}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default;position:absolute}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:0 0;pointer-events:none}.react-flow__nodesselection-rect{pointer-events:all;cursor:grab;position:absolute}.react-flow__handle{pointer-events:none;background-color:var(--xy-handle-background-color,var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color,var(--xy-handle-border-color-default));border-radius:100%;width:6px;min-width:5px;height:6px;min-height:5px;position:absolute}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;bottom:0;left:50%;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{z-index:5;margin:15px;position:absolute}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px)translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px)translateY(-50%)}.react-flow__attribution{background:var(--xy-attribution-background-color,var(--xy-attribution-background-color-default));margin:0;padding:2px 3px;font-size:10px}.react-flow__attribution a{color:#999;text-decoration:none}@keyframes dashdraw{0%{stroke-dashoffset:10px}}.react-flow__edgelabel-renderer{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%;height:100%;position:absolute;top:0;left:0}.react-flow__viewport-portal{-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%;height:100%;position:absolute;top:0;left:0}.react-flow__minimap{background:var(--xy-minimap-background-color-props,var(--xy-minimap-background-color,var(--xy-minimap-background-color-default)))}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var(--xy-minimap-mask-background-color-props,var(--xy-minimap-mask-background-color,var(--xy-minimap-mask-background-color-default)));stroke:var(--xy-minimap-mask-stroke-color-props,var(--xy-minimap-mask-stroke-color,var(--xy-minimap-mask-stroke-color-default)));stroke-width:var(--xy-minimap-mask-stroke-width-props,var(--xy-minimap-mask-stroke-width,var(--xy-minimap-mask-stroke-width-default)))}.react-flow__minimap-node{fill:var(--xy-minimap-node-background-color-props,var(--xy-minimap-node-background-color,var(--xy-minimap-node-background-color-default)));stroke:var(--xy-minimap-node-stroke-color-props,var(--xy-minimap-node-stroke-color,var(--xy-minimap-node-stroke-color-default)));stroke-width:var(--xy-minimap-node-stroke-width-props,var(--xy-minimap-node-stroke-width,var(--xy-minimap-node-stroke-width-default)))}.react-flow__background-pattern.dots{fill:var(--xy-background-pattern-color-props,var(--xy-background-pattern-color,var(--xy-background-pattern-dots-color-default)))}.react-flow__background-pattern.lines{stroke:var(--xy-background-pattern-color-props,var(--xy-background-pattern-color,var(--xy-background-pattern-lines-color-default)))}.react-flow__background-pattern.cross{stroke:var(--xy-background-pattern-color-props,var(--xy-background-pattern-color,var(--xy-background-pattern-cross-color-default)))}.react-flow__controls{box-shadow:var(--xy-controls-box-shadow,var(--xy-controls-box-shadow-default));flex-direction:column;display:flex}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{background:var(--xy-controls-button-background-color,var(--xy-controls-button-background-color-default));border:none;border-bottom:1px solid var(--xy-controls-button-border-color-props,var(--xy-controls-button-border-color,var(--xy-controls-button-border-color-default)));width:26px;height:26px;color:var(--xy-controls-button-color-props,var(--xy-controls-button-color,var(--xy-controls-button-color-default)));cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;justify-content:center;align-items:center;padding:4px;display:flex}.react-flow__controls-button svg{fill:currentColor;width:100%;max-width:12px;max-height:12px}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{border-radius:var(--xy-node-border-radius,var(--xy-node-border-radius-default));width:150px;color:var(--xy-node-color,var(--xy-node-color-default));text-align:center;border:var(--xy-node-border,var(--xy-node-border-default));background-color:var(--xy-node-background-color,var(--xy-node-background-color-default));padding:10px;font-size:12px}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover,var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected,var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color,var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color,var(--xy-selection-background-color-default));border:var(--xy-selection-border,var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var(--xy-controls-button-background-color-hover-props,var(--xy-controls-button-background-color-hover,var(--xy-controls-button-background-color-hover-default)));color:var(--xy-controls-button-color-hover-props,var(--xy-controls-button-color-hover,var(--xy-controls-button-color-hover-default)))}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var(--xy-controls-button-border-color-props,var(--xy-controls-button-border-color,var(--xy-controls-button-border-color-default)))}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{background-color:var(--xy-resize-background-color,var(--xy-resize-background-color-default));border:1px solid #fff;border-radius:1px;width:5px;height:5px;translate:-50% -50%}.react-flow__resize-control.handle.left{top:50%;left:0}.react-flow__resize-control.handle.right{top:50%;left:100%}.react-flow__resize-control.handle.top{top:0;left:50%}.react-flow__resize-control.handle.bottom{top:100%;left:50%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color,var(--xy-resize-background-color-default));border-style:solid;border-width:0}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;height:100%;top:0;transform:translate(-50%)}.react-flow__resize-control.line.left{border-left-width:1px;left:0}.react-flow__resize-control.line.right{border-right-width:1px;left:100%}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{width:100%;height:1px;left:0;transform:translateY(-50%)}.react-flow__resize-control.line.top{border-top-width:1px;top:0}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color,var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color,var(--xy-edge-label-color-default))}\n/*$vite$:1*/"; document.head.appendChild(s) })();
|
|
2
2
|
import { o as e, r as t, s as n } from "./assets/lib-dist-_sG6LAEa.js";
|
|
3
3
|
import { $ as r, A as i, B as a, C as o, D as s, E as c, F as l, G as u, H as d, I as f, J as p, K as m, L as h, M as g, N as _, O as v, P as y, Q as b, R as x, S, T as C, V as w, W as T, X as E, Y as D, Z as O, _ as k, a as A, at as j, b as M, c as N, d as P, dt as F, et as ee, f as I, ft as L, g as te, h as R, i as z, it as B, j as V, k as ne, l as re, lt as ie, m as ae, mt as oe, nt as H, o as se, ot as ce, p as le, pt as ue, q as de, r as U, rt as W, s as fe, st as G, t as pe, tt as me, u as he, ut as ge, w as _e, x as ve, y as ye, z as be } from "./assets/lib-player-volume-hbsJ_QQQ.js";
|
|
4
|
-
import { $ as xe, A as Se, B as Ce, C as we, D as Te, E as Ee, F as De, G as Oe, H as ke, I as Ae, J as je, K as Me, L as Ne, M as Pe, N as Fe, O as Ie, P as Le, Q as Re, R as ze, S as Be, T as Ve, U as He, V as Ue, W as We, X as Ge, Y as Ke, Z as qe, _ as Je, a as Ye, at as Xe, b as Ze, c as Qe, ct as $e, dt as et, et as tt, f as nt, ft as rt, g as it, h as at, i as ot, it as st, j as ct, k as lt, l as ut, lt as dt, m as ft, n as pt, nt as mt, o as ht, ot as gt, p as _t, q as vt, r as yt, rt as bt, s as xt, st as St, t as Ct, tt as wt, ut as Tt, v as Et, w as Dt, x as Ot, y as kt, z as At } from "./assets/lib-worker
|
|
4
|
+
import { $ as xe, A as Se, B as Ce, C as we, D as Te, E as Ee, F as De, G as Oe, H as ke, I as Ae, J as je, K as Me, L as Ne, M as Pe, N as Fe, O as Ie, P as Le, Q as Re, R as ze, S as Be, T as Ve, U as He, V as Ue, W as We, X as Ge, Y as Ke, Z as qe, _ as Je, a as Ye, at as Xe, b as Ze, c as Qe, ct as $e, dt as et, et as tt, f as nt, ft as rt, g as it, h as at, i as ot, it as st, j as ct, k as lt, l as ut, lt as dt, m as ft, n as pt, nt as mt, o as ht, ot as gt, p as _t, q as vt, r as yt, rt as bt, s as xt, st as St, t as Ct, tt as wt, ut as Tt, v as Et, w as Dt, x as Ot, y as kt, z as At } from "./assets/lib-worker-BndrZI3N.js";
|
|
5
5
|
import { t as jt } from "./assets/lib-remote-uPPe2_V1.js";
|
|
6
6
|
// node_modules/@0no-co/graphql.web/dist/graphql.web.mjs
|
|
7
7
|
L();
|
|
@@ -12862,14 +12862,14 @@ var K_ = {
|
|
|
12862
12862
|
}),
|
|
12863
12863
|
/* @__PURE__ */ A("span", {
|
|
12864
12864
|
className: "version",
|
|
12865
|
-
title: "stub v0.0.
|
|
12865
|
+
title: "stub v0.0.60, commit 0c4b2a6",
|
|
12866
12866
|
children: [
|
|
12867
12867
|
"v",
|
|
12868
|
-
"0.0.
|
|
12868
|
+
"0.0.60",
|
|
12869
12869
|
" ",
|
|
12870
12870
|
/* @__PURE__ */ z("span", {
|
|
12871
12871
|
className: "commit",
|
|
12872
|
-
children: "
|
|
12872
|
+
children: "0c4b2a6"
|
|
12873
12873
|
})
|
|
12874
12874
|
]
|
|
12875
12875
|
})
|
|
@@ -16227,7 +16227,7 @@ transition: max-height 0.3s ease-in-out;
|
|
|
16227
16227
|
}) : void 0
|
|
16228
16228
|
]
|
|
16229
16229
|
});
|
|
16230
|
-
}, Ex = "this build of the worker exposes no traceGraph, so there is nothing to read a trace from", Dx = async () => await import("./assets/lib-worker-
|
|
16230
|
+
}, Ex = "this build of the worker exposes no traceGraph, so there is nothing to read a trace from", Dx = async () => await import("./assets/lib-worker-C98YLtbN.js"), Ox = async (e) => {
|
|
16231
16231
|
let t = await Dx();
|
|
16232
16232
|
if (typeof t.traceGraph != "function") throw Error(Ex);
|
|
16233
16233
|
return t.traceGraph(e);
|
|
@@ -25708,7 +25708,885 @@ var TF = iv("\n mutation DeleteListEntry($input: DeleteListEntryInput!) {\n
|
|
|
25708
25708
|
title: "what the graph holds for this uri",
|
|
25709
25709
|
children: "graph trace"
|
|
25710
25710
|
});
|
|
25711
|
-
}
|
|
25711
|
+
};
|
|
25712
|
+
// node_modules/dompurify/dist/purify.es.mjs
|
|
25713
|
+
function VF(e, t) {
|
|
25714
|
+
this.v = e, this.k = t;
|
|
25715
|
+
}
|
|
25716
|
+
function HF(e, t) {
|
|
25717
|
+
(t == null || t > e.length) && (t = e.length);
|
|
25718
|
+
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
25719
|
+
return r;
|
|
25720
|
+
}
|
|
25721
|
+
function UF(e) {
|
|
25722
|
+
if (Array.isArray(e)) return e;
|
|
25723
|
+
}
|
|
25724
|
+
function WF(e, t) {
|
|
25725
|
+
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
25726
|
+
if (n != null) {
|
|
25727
|
+
var r, i, a, o, s = [], c = !0, l = !1;
|
|
25728
|
+
try {
|
|
25729
|
+
if (a = (n = n.call(e)).next, t === 0) {
|
|
25730
|
+
if (Object(n) !== n) return;
|
|
25731
|
+
c = !1;
|
|
25732
|
+
} else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
|
|
25733
|
+
} catch (e) {
|
|
25734
|
+
l = !0, i = e;
|
|
25735
|
+
} finally {
|
|
25736
|
+
try {
|
|
25737
|
+
if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
|
|
25738
|
+
} finally {
|
|
25739
|
+
if (l) throw i;
|
|
25740
|
+
}
|
|
25741
|
+
}
|
|
25742
|
+
return s;
|
|
25743
|
+
}
|
|
25744
|
+
}
|
|
25745
|
+
function GF() {
|
|
25746
|
+
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
25747
|
+
}
|
|
25748
|
+
function KF(e, t) {
|
|
25749
|
+
return UF(e) || WF(e, t) || qF(e, t) || GF();
|
|
25750
|
+
}
|
|
25751
|
+
function qF(e, t) {
|
|
25752
|
+
if (e) {
|
|
25753
|
+
if (typeof e == "string") return HF(e, t);
|
|
25754
|
+
var n = {}.toString.call(e).slice(8, -1);
|
|
25755
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? HF(e, t) : void 0;
|
|
25756
|
+
}
|
|
25757
|
+
}
|
|
25758
|
+
function JF(e) {
|
|
25759
|
+
var t, n;
|
|
25760
|
+
function r(t, n) {
|
|
25761
|
+
try {
|
|
25762
|
+
var a = e[t](n), o = a.value, s = o instanceof VF;
|
|
25763
|
+
Promise.resolve(s ? o.v : o).then(function(n) {
|
|
25764
|
+
if (s) {
|
|
25765
|
+
var c = t === "return" && o.k ? t : "next";
|
|
25766
|
+
if (!o.k || n.done) return r(c, n);
|
|
25767
|
+
n = e[c](n).value;
|
|
25768
|
+
}
|
|
25769
|
+
i(!!a.done, n);
|
|
25770
|
+
}, function(e) {
|
|
25771
|
+
r("throw", e);
|
|
25772
|
+
});
|
|
25773
|
+
} catch (e) {
|
|
25774
|
+
i(2, e);
|
|
25775
|
+
}
|
|
25776
|
+
}
|
|
25777
|
+
function i(e, i) {
|
|
25778
|
+
e === 2 ? t.reject(i) : t.resolve({
|
|
25779
|
+
value: i,
|
|
25780
|
+
done: e
|
|
25781
|
+
}), (t = t.next) ? r(t.key, t.arg) : n = null;
|
|
25782
|
+
}
|
|
25783
|
+
this._invoke = function(e, i) {
|
|
25784
|
+
return new Promise(function(a, o) {
|
|
25785
|
+
var s = {
|
|
25786
|
+
key: e,
|
|
25787
|
+
arg: i,
|
|
25788
|
+
resolve: a,
|
|
25789
|
+
reject: o,
|
|
25790
|
+
next: null
|
|
25791
|
+
};
|
|
25792
|
+
n ? n = n.next = s : (t = n = s, r(e, i));
|
|
25793
|
+
});
|
|
25794
|
+
}, typeof e.return != "function" && (this.return = void 0);
|
|
25795
|
+
}
|
|
25796
|
+
JF.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
|
|
25797
|
+
return this;
|
|
25798
|
+
}, JF.prototype.next = function(e) {
|
|
25799
|
+
return this._invoke("next", e);
|
|
25800
|
+
}, JF.prototype.throw = function(e) {
|
|
25801
|
+
return this._invoke("throw", e);
|
|
25802
|
+
}, JF.prototype.return = function(e) {
|
|
25803
|
+
return this._invoke("return", e);
|
|
25804
|
+
};
|
|
25805
|
+
var YF = Object.entries, XF = Object.setPrototypeOf, ZF = Object.isFrozen, QF = Object.getPrototypeOf, $F = Object.getOwnPropertyDescriptor, eI = Object.freeze, tI = Object.seal, nI = Object.create, rI = typeof Reflect < "u" && Reflect, iI = rI.apply, aI = rI.construct;
|
|
25806
|
+
eI ||= function(e) {
|
|
25807
|
+
return e;
|
|
25808
|
+
}, tI ||= function(e) {
|
|
25809
|
+
return e;
|
|
25810
|
+
}, iI ||= function(e, t) {
|
|
25811
|
+
var n = [...arguments].slice(2);
|
|
25812
|
+
return e.apply(t, n);
|
|
25813
|
+
}, aI ||= function(e) {
|
|
25814
|
+
return new e(...[...arguments].slice(1));
|
|
25815
|
+
};
|
|
25816
|
+
var oI = AI(Array.prototype.forEach);
|
|
25817
|
+
Array.prototype.indexOf;
|
|
25818
|
+
var sI = AI(Array.prototype.lastIndexOf), cI = AI(Array.prototype.pop), lI = AI(Array.prototype.push), uI = AI(Array.prototype.slice), dI = AI(Array.prototype.splice), fI = Array.isArray, pI = jI(Set), mI = AI(Set.prototype.add), hI = AI(Set.prototype.has), gI = AI(String.prototype.toLowerCase), _I = AI(String.prototype.toString), vI = AI(String.prototype.match), yI = AI(String.prototype.replace), bI = AI(String.prototype.indexOf), xI = AI(String.prototype.trim), SI = AI(Number.prototype.toString), CI = AI(Boolean.prototype.toString), wI = typeof BigInt > "u" ? null : AI(BigInt.prototype.toString), TI = typeof Symbol > "u" ? null : AI(Symbol.prototype.toString), EI = AI(Object.prototype.hasOwnProperty), DI = AI(Object.prototype.toString), OI = AI(RegExp.prototype.test), kI = jI(TypeError);
|
|
25819
|
+
function AI(e) {
|
|
25820
|
+
return function(t) {
|
|
25821
|
+
t instanceof RegExp && (t.lastIndex = 0);
|
|
25822
|
+
var n = [...arguments].slice(1);
|
|
25823
|
+
return iI(e, t, n);
|
|
25824
|
+
};
|
|
25825
|
+
}
|
|
25826
|
+
function jI(e) {
|
|
25827
|
+
return function() {
|
|
25828
|
+
return aI(e, [...arguments]);
|
|
25829
|
+
};
|
|
25830
|
+
}
|
|
25831
|
+
function MI(e, t) {
|
|
25832
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : gI;
|
|
25833
|
+
if (XF && XF(e, null), !fI(t)) return e;
|
|
25834
|
+
let r = t.length;
|
|
25835
|
+
for (; r--;) {
|
|
25836
|
+
let i = t[r];
|
|
25837
|
+
if (typeof i == "string") {
|
|
25838
|
+
let e = n(i);
|
|
25839
|
+
e !== i && (ZF(t) || (t[r] = e), i = e);
|
|
25840
|
+
}
|
|
25841
|
+
e[i] = !0;
|
|
25842
|
+
}
|
|
25843
|
+
return e;
|
|
25844
|
+
}
|
|
25845
|
+
function NI(e) {
|
|
25846
|
+
for (let t = 0; t < e.length; t++) EI(e, t) || (e[t] = null);
|
|
25847
|
+
return e;
|
|
25848
|
+
}
|
|
25849
|
+
function PI(e) {
|
|
25850
|
+
let t = nI(null);
|
|
25851
|
+
for (let r of YF(e)) {
|
|
25852
|
+
var n = KF(r, 2);
|
|
25853
|
+
let i = n[0], a = n[1];
|
|
25854
|
+
EI(e, i) && (t[i] = fI(a) ? NI(a) : a && typeof a == "object" && a.constructor === Object ? PI(a) : a);
|
|
25855
|
+
}
|
|
25856
|
+
return t;
|
|
25857
|
+
}
|
|
25858
|
+
function FI(e) {
|
|
25859
|
+
switch (typeof e) {
|
|
25860
|
+
case "string": return e;
|
|
25861
|
+
case "number": return SI(e);
|
|
25862
|
+
case "boolean": return CI(e);
|
|
25863
|
+
case "bigint": return wI ? wI(e) : "0";
|
|
25864
|
+
case "symbol": return TI ? TI(e) : "Symbol()";
|
|
25865
|
+
case "undefined": return DI(e);
|
|
25866
|
+
case "function":
|
|
25867
|
+
case "object": {
|
|
25868
|
+
if (e === null) return DI(e);
|
|
25869
|
+
let t = e, n = II(t, "toString");
|
|
25870
|
+
if (typeof n == "function") {
|
|
25871
|
+
let e = n(t);
|
|
25872
|
+
return typeof e == "string" ? e : DI(e);
|
|
25873
|
+
}
|
|
25874
|
+
return DI(e);
|
|
25875
|
+
}
|
|
25876
|
+
default: return DI(e);
|
|
25877
|
+
}
|
|
25878
|
+
}
|
|
25879
|
+
function II(e, t) {
|
|
25880
|
+
for (; e !== null;) {
|
|
25881
|
+
let n = $F(e, t);
|
|
25882
|
+
if (n) {
|
|
25883
|
+
if (n.get) return AI(n.get);
|
|
25884
|
+
if (typeof n.value == "function") return AI(n.value);
|
|
25885
|
+
}
|
|
25886
|
+
e = QF(e);
|
|
25887
|
+
}
|
|
25888
|
+
function n() {
|
|
25889
|
+
return null;
|
|
25890
|
+
}
|
|
25891
|
+
return n;
|
|
25892
|
+
}
|
|
25893
|
+
function LI(e, t) {
|
|
25894
|
+
for (; e !== null;) {
|
|
25895
|
+
let n = $F(e, t);
|
|
25896
|
+
if (n) return n.get ? AI(n.get) : null;
|
|
25897
|
+
e = QF(e);
|
|
25898
|
+
}
|
|
25899
|
+
return null;
|
|
25900
|
+
}
|
|
25901
|
+
function RI(e) {
|
|
25902
|
+
try {
|
|
25903
|
+
return OI(e, ""), !0;
|
|
25904
|
+
} catch {
|
|
25905
|
+
return !1;
|
|
25906
|
+
}
|
|
25907
|
+
}
|
|
25908
|
+
var zI = eI(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), BI = eI(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), VI = eI([
|
|
25909
|
+
"feBlend",
|
|
25910
|
+
"feColorMatrix",
|
|
25911
|
+
"feComponentTransfer",
|
|
25912
|
+
"feComposite",
|
|
25913
|
+
"feConvolveMatrix",
|
|
25914
|
+
"feDiffuseLighting",
|
|
25915
|
+
"feDisplacementMap",
|
|
25916
|
+
"feDistantLight",
|
|
25917
|
+
"feDropShadow",
|
|
25918
|
+
"feFlood",
|
|
25919
|
+
"feFuncA",
|
|
25920
|
+
"feFuncB",
|
|
25921
|
+
"feFuncG",
|
|
25922
|
+
"feFuncR",
|
|
25923
|
+
"feGaussianBlur",
|
|
25924
|
+
"feImage",
|
|
25925
|
+
"feMerge",
|
|
25926
|
+
"feMergeNode",
|
|
25927
|
+
"feMorphology",
|
|
25928
|
+
"feOffset",
|
|
25929
|
+
"fePointLight",
|
|
25930
|
+
"feSpecularLighting",
|
|
25931
|
+
"feSpotLight",
|
|
25932
|
+
"feTile",
|
|
25933
|
+
"feTurbulence"
|
|
25934
|
+
]), HI = eI([
|
|
25935
|
+
"animate",
|
|
25936
|
+
"color-profile",
|
|
25937
|
+
"cursor",
|
|
25938
|
+
"discard",
|
|
25939
|
+
"font-face",
|
|
25940
|
+
"font-face-format",
|
|
25941
|
+
"font-face-name",
|
|
25942
|
+
"font-face-src",
|
|
25943
|
+
"font-face-uri",
|
|
25944
|
+
"foreignobject",
|
|
25945
|
+
"hatch",
|
|
25946
|
+
"hatchpath",
|
|
25947
|
+
"mesh",
|
|
25948
|
+
"meshgradient",
|
|
25949
|
+
"meshpatch",
|
|
25950
|
+
"meshrow",
|
|
25951
|
+
"missing-glyph",
|
|
25952
|
+
"script",
|
|
25953
|
+
"set",
|
|
25954
|
+
"solidcolor",
|
|
25955
|
+
"unknown",
|
|
25956
|
+
"use"
|
|
25957
|
+
]), UI = eI(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), WI = eI([
|
|
25958
|
+
"maction",
|
|
25959
|
+
"maligngroup",
|
|
25960
|
+
"malignmark",
|
|
25961
|
+
"mlongdiv",
|
|
25962
|
+
"mscarries",
|
|
25963
|
+
"mscarry",
|
|
25964
|
+
"msgroup",
|
|
25965
|
+
"mstack",
|
|
25966
|
+
"msline",
|
|
25967
|
+
"msrow",
|
|
25968
|
+
"semantics",
|
|
25969
|
+
"annotation",
|
|
25970
|
+
"annotation-xml",
|
|
25971
|
+
"mprescripts",
|
|
25972
|
+
"none"
|
|
25973
|
+
]), GI = eI(["#text"]), KI = eI(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), qI = eI(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), JI = eI(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), YI = eI([
|
|
25974
|
+
"xlink:href",
|
|
25975
|
+
"xml:id",
|
|
25976
|
+
"xlink:title",
|
|
25977
|
+
"xml:space",
|
|
25978
|
+
"xmlns:xlink"
|
|
25979
|
+
]), XI = tI(/{{[\w\W]*|^[\w\W]*}}/g), ZI = tI(/<%[\w\W]*|^[\w\W]*%>/g), QI = tI(/\${[\w\W]*/g), $I = tI(/^data-[\-\w.\u00B7-\uFFFF]+$/), eL = tI(/^aria-[\-\w]+$/), tL = tI(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), nL = tI(/^(?:\w+script|data):/i), rL = tI(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), iL = tI(/^html$/i), aL = tI(/^[a-z][.\w]*(-[.\w]+)+$/i), oL = tI(/<[/\w!]/g), sL = tI(/<[/\w]/g), cL = tI(/<\/no(script|embed|frames)/i), lL = tI(/\/>/i), uL = {
|
|
25980
|
+
element: 1,
|
|
25981
|
+
attribute: 2,
|
|
25982
|
+
text: 3,
|
|
25983
|
+
cdataSection: 4,
|
|
25984
|
+
entityReference: 5,
|
|
25985
|
+
entityNode: 6,
|
|
25986
|
+
processingInstruction: 7,
|
|
25987
|
+
comment: 8,
|
|
25988
|
+
document: 9,
|
|
25989
|
+
documentType: 10,
|
|
25990
|
+
documentFragment: 11,
|
|
25991
|
+
notation: 12
|
|
25992
|
+
}, dL = eI(MI({}, [
|
|
25993
|
+
"style",
|
|
25994
|
+
"script",
|
|
25995
|
+
"xmp",
|
|
25996
|
+
"iframe",
|
|
25997
|
+
"noembed",
|
|
25998
|
+
"noframes",
|
|
25999
|
+
"plaintext",
|
|
26000
|
+
"noscript"
|
|
26001
|
+
])), fL = function() {
|
|
26002
|
+
return typeof window > "u" ? null : window;
|
|
26003
|
+
}, pL = function(e, t) {
|
|
26004
|
+
if (typeof e != "object" || typeof e.createPolicy != "function") return null;
|
|
26005
|
+
let n = null, r = "data-tt-policy-suffix";
|
|
26006
|
+
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
26007
|
+
let i = "dompurify" + (n ? "#" + n : "");
|
|
26008
|
+
try {
|
|
26009
|
+
return e.createPolicy(i, {
|
|
26010
|
+
createHTML(e) {
|
|
26011
|
+
return e;
|
|
26012
|
+
},
|
|
26013
|
+
createScriptURL(e) {
|
|
26014
|
+
return e;
|
|
26015
|
+
}
|
|
26016
|
+
});
|
|
26017
|
+
} catch {
|
|
26018
|
+
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
26019
|
+
}
|
|
26020
|
+
}, mL = function() {
|
|
26021
|
+
return {
|
|
26022
|
+
afterSanitizeAttributes: [],
|
|
26023
|
+
afterSanitizeElements: [],
|
|
26024
|
+
afterSanitizeShadowDOM: [],
|
|
26025
|
+
beforeSanitizeAttributes: [],
|
|
26026
|
+
beforeSanitizeElements: [],
|
|
26027
|
+
beforeSanitizeShadowDOM: [],
|
|
26028
|
+
uponSanitizeAttribute: [],
|
|
26029
|
+
uponSanitizeElement: [],
|
|
26030
|
+
uponSanitizeShadowNode: []
|
|
26031
|
+
};
|
|
26032
|
+
}, hL = function(e, t, n, r) {
|
|
26033
|
+
return EI(e, t) && fI(e[t]) ? MI(r.base ? PI(r.base) : {}, e[t], r.transform) : n;
|
|
26034
|
+
}, gL = function(e, t, n) {
|
|
26035
|
+
let r = EI(e, t) ? e[t] : void 0;
|
|
26036
|
+
return r && typeof r == "object" ? PI(r) : n();
|
|
26037
|
+
};
|
|
26038
|
+
function _L() {
|
|
26039
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : fL(), t = (e) => _L(e);
|
|
26040
|
+
if (t.version = "3.4.17", t.removed = [], !e || !e.document || e.document.nodeType !== uL.document || !e.Element) return t.isSupported = !1, t;
|
|
26041
|
+
let n = e.document, r = n, i = r.currentScript;
|
|
26042
|
+
e.DocumentFragment;
|
|
26043
|
+
let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
|
|
26044
|
+
e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
|
|
26045
|
+
let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = II(d, "cloneNode"), p = II(d, "remove"), m = II(d, "removeAttributeNode"), h = II(d, "nextSibling"), g = II(d, "childNodes"), _ = II(d, "parentNode"), v = II(d, "shadowRoot"), y = II(d, "attributes"), b = o && o.prototype ? II(o.prototype, "nodeType") : null, x = o && o.prototype ? II(o.prototype, "nodeName") : null, S = o && o.prototype ? II(o.prototype, "ownerDocument") : null, C = function(e) {
|
|
26046
|
+
return b ? b(e) : e.nodeType;
|
|
26047
|
+
}, w = function(e) {
|
|
26048
|
+
return x ? x(e) : e.nodeName;
|
|
26049
|
+
}, T = LI(d, "namespaceURI"), E = function(e) {
|
|
26050
|
+
return T ? T(e) : e.namespaceURI;
|
|
26051
|
+
};
|
|
26052
|
+
if (typeof a == "function") {
|
|
26053
|
+
let e = n.createElement("template");
|
|
26054
|
+
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
26055
|
+
}
|
|
26056
|
+
let D, O = "", k, A = !1, j = 0, M = function() {
|
|
26057
|
+
if (j > 0) throw kI("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
|
|
26058
|
+
}, N = function(e) {
|
|
26059
|
+
M(), j++;
|
|
26060
|
+
try {
|
|
26061
|
+
return D.createHTML(e);
|
|
26062
|
+
} finally {
|
|
26063
|
+
j--;
|
|
26064
|
+
}
|
|
26065
|
+
}, P = function(e) {
|
|
26066
|
+
M(), j++;
|
|
26067
|
+
try {
|
|
26068
|
+
return D.createScriptURL(e);
|
|
26069
|
+
} finally {
|
|
26070
|
+
j--;
|
|
26071
|
+
}
|
|
26072
|
+
}, F = function() {
|
|
26073
|
+
return A ||= (k = pL(u, i), !0), k;
|
|
26074
|
+
}, ee = n, I = ee.implementation, L = ee.createNodeIterator, te = ee.createDocumentFragment, R = ee.getElementsByTagName, z = r.importNode, B = mL();
|
|
26075
|
+
t.isSupported = typeof YF == "function" && typeof _ == "function" && I && I.createHTMLDocument !== void 0;
|
|
26076
|
+
let V = XI, ne = ZI, re = QI, ie = $I, ae = eL, oe = nL, H = rL, se = aL, ce = tL, le = null, ue = MI({}, [
|
|
26077
|
+
...zI,
|
|
26078
|
+
...BI,
|
|
26079
|
+
...VI,
|
|
26080
|
+
...UI,
|
|
26081
|
+
...GI
|
|
26082
|
+
]), de = null, U = MI({}, [
|
|
26083
|
+
...KI,
|
|
26084
|
+
...qI,
|
|
26085
|
+
...JI,
|
|
26086
|
+
...YI
|
|
26087
|
+
]), W = Object.seal(nI(null, {
|
|
26088
|
+
tagNameCheck: {
|
|
26089
|
+
writable: !0,
|
|
26090
|
+
configurable: !1,
|
|
26091
|
+
enumerable: !0,
|
|
26092
|
+
value: null
|
|
26093
|
+
},
|
|
26094
|
+
attributeNameCheck: {
|
|
26095
|
+
writable: !0,
|
|
26096
|
+
configurable: !1,
|
|
26097
|
+
enumerable: !0,
|
|
26098
|
+
value: null
|
|
26099
|
+
},
|
|
26100
|
+
allowCustomizedBuiltInElements: {
|
|
26101
|
+
writable: !0,
|
|
26102
|
+
configurable: !1,
|
|
26103
|
+
enumerable: !0,
|
|
26104
|
+
value: !1
|
|
26105
|
+
}
|
|
26106
|
+
})), fe = null, G = null, pe = Object.seal(nI(null, {
|
|
26107
|
+
tagCheck: {
|
|
26108
|
+
writable: !0,
|
|
26109
|
+
configurable: !1,
|
|
26110
|
+
enumerable: !0,
|
|
26111
|
+
value: null
|
|
26112
|
+
},
|
|
26113
|
+
attributeCheck: {
|
|
26114
|
+
writable: !0,
|
|
26115
|
+
configurable: !1,
|
|
26116
|
+
enumerable: !0,
|
|
26117
|
+
value: null
|
|
26118
|
+
}
|
|
26119
|
+
})), me = !0, he = !0, ge = !1, _e = !0, ve = !1, ye = !0, be = !1, xe = !1, Se = null, Ce = null, we = !1, Te = !1, Ee = !1, De = !1, Oe = !0, ke = !1, Ae = "user-content-", je = !0, Me = !1, Ne = null, Pe = {}, Fe = null, Ie = MI({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Le = null, Re = MI({}, [
|
|
26120
|
+
"audio",
|
|
26121
|
+
"video",
|
|
26122
|
+
"img",
|
|
26123
|
+
"source",
|
|
26124
|
+
"image",
|
|
26125
|
+
"track"
|
|
26126
|
+
]), ze = null, Be = MI({}, [
|
|
26127
|
+
"alt",
|
|
26128
|
+
"class",
|
|
26129
|
+
"for",
|
|
26130
|
+
"id",
|
|
26131
|
+
"label",
|
|
26132
|
+
"name",
|
|
26133
|
+
"pattern",
|
|
26134
|
+
"placeholder",
|
|
26135
|
+
"role",
|
|
26136
|
+
"summary",
|
|
26137
|
+
"title",
|
|
26138
|
+
"value",
|
|
26139
|
+
"style",
|
|
26140
|
+
"xmlns"
|
|
26141
|
+
]), Ve = "http://www.w3.org/1998/Math/MathML", He = "http://www.w3.org/2000/svg", Ue = "http://www.w3.org/1999/xhtml", We = Ue, Ge = !1, Ke = null, qe = MI({}, [
|
|
26142
|
+
Ve,
|
|
26143
|
+
He,
|
|
26144
|
+
Ue
|
|
26145
|
+
], _I), Je = eI([
|
|
26146
|
+
"mi",
|
|
26147
|
+
"mo",
|
|
26148
|
+
"mn",
|
|
26149
|
+
"ms",
|
|
26150
|
+
"mtext"
|
|
26151
|
+
]), Ye = MI({}, Je), Xe = eI(["annotation-xml"]), Ze = MI({}, Xe), Qe = MI({}, [
|
|
26152
|
+
"title",
|
|
26153
|
+
"style",
|
|
26154
|
+
"font",
|
|
26155
|
+
"a",
|
|
26156
|
+
"script"
|
|
26157
|
+
]), $e = null, et = ["application/xhtml+xml", "text/html"], tt = null, nt = null, rt = n.createElement("form"), it = function(e) {
|
|
26158
|
+
return e instanceof RegExp || e instanceof Function;
|
|
26159
|
+
}, at = function() {
|
|
26160
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
26161
|
+
if (nt && nt === e) return;
|
|
26162
|
+
e && typeof e == "object" || (e = {}), e = PI(e), $e = et.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, tt = $e === "application/xhtml+xml" ? _I : gI, le = hL(e, "ALLOWED_TAGS", ue, { transform: tt }), de = hL(e, "ALLOWED_ATTR", U, { transform: tt }), Ke = hL(e, "ALLOWED_NAMESPACES", qe, { transform: _I }), ze = hL(e, "ADD_URI_SAFE_ATTR", Be, {
|
|
26163
|
+
transform: tt,
|
|
26164
|
+
base: Be
|
|
26165
|
+
}), Le = hL(e, "ADD_DATA_URI_TAGS", Re, {
|
|
26166
|
+
transform: tt,
|
|
26167
|
+
base: Re
|
|
26168
|
+
}), Fe = hL(e, "FORBID_CONTENTS", Ie, { transform: tt }), fe = hL(e, "FORBID_TAGS", PI({}), { transform: tt }), G = hL(e, "FORBID_ATTR", PI({}), { transform: tt }), Pe = EI(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? PI(e.USE_PROFILES) : e.USE_PROFILES : !1, me = e.ALLOW_ARIA_ATTR !== !1, he = e.ALLOW_DATA_ATTR !== !1, ge = e.ALLOW_UNKNOWN_PROTOCOLS || !1, _e = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ve = e.SAFE_FOR_TEMPLATES || !1, ye = e.SAFE_FOR_XML !== !1, be = e.WHOLE_DOCUMENT || !1, Te = e.RETURN_DOM || !1, Ee = e.RETURN_DOM_FRAGMENT || !1, De = e.RETURN_TRUSTED_TYPE || !1, we = e.FORCE_BODY || !1, Oe = e.SANITIZE_DOM !== !1, ke = e.SANITIZE_NAMED_PROPS || !1, je = e.KEEP_CONTENT !== !1, Me = e.IN_PLACE || !1, ce = RI(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : tL, We = typeof e.NAMESPACE == "string" ? e.NAMESPACE : Ue, Ye = gL(e, "MATHML_TEXT_INTEGRATION_POINTS", () => MI({}, Je)), Ze = gL(e, "HTML_INTEGRATION_POINTS", () => MI({}, Xe));
|
|
26169
|
+
let t = gL(e, "CUSTOM_ELEMENT_HANDLING", () => nI(null));
|
|
26170
|
+
if (W = nI(null), EI(t, "tagNameCheck") && it(t.tagNameCheck) && (W.tagNameCheck = t.tagNameCheck), EI(t, "attributeNameCheck") && it(t.attributeNameCheck) && (W.attributeNameCheck = t.attributeNameCheck), EI(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (W.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), tI(W), ve && (he = !1), Ee && (Te = !0), Pe && (le = MI({}, GI), de = nI(null), Pe.html === !0 && (MI(le, zI), MI(de, KI)), Pe.svg === !0 && (MI(le, BI), MI(de, qI), MI(de, YI)), Pe.svgFilters === !0 && (MI(le, VI), MI(de, qI), MI(de, YI)), Pe.mathMl === !0 && (MI(le, UI), MI(de, JI), MI(de, YI))), pe.tagCheck = null, pe.attributeCheck = null, EI(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? pe.tagCheck = e.ADD_TAGS : fI(e.ADD_TAGS) && (le === ue && (le = PI(le)), MI(le, e.ADD_TAGS, tt))), EI(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? pe.attributeCheck = e.ADD_ATTR : fI(e.ADD_ATTR) && (de === U && (de = PI(de)), MI(de, e.ADD_ATTR, tt))), EI(e, "ADD_FORBID_CONTENTS") && fI(e.ADD_FORBID_CONTENTS) && (Fe === Ie && (Fe = PI(Fe)), MI(Fe, e.ADD_FORBID_CONTENTS, tt)), je && (le["#text"] = !0), be && MI(le, [
|
|
26171
|
+
"html",
|
|
26172
|
+
"head",
|
|
26173
|
+
"body"
|
|
26174
|
+
]), le.table && (MI(le, ["tbody"]), delete fe.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
26175
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw kI("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
26176
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw kI("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
26177
|
+
let t = D;
|
|
26178
|
+
D = e.TRUSTED_TYPES_POLICY;
|
|
26179
|
+
try {
|
|
26180
|
+
O = N("");
|
|
26181
|
+
} catch (e) {
|
|
26182
|
+
throw D = t, e;
|
|
26183
|
+
}
|
|
26184
|
+
} else e.TRUSTED_TYPES_POLICY === null ? (D = void 0, O = "") : (D === void 0 && (D = F()), D && typeof O == "string" && (O = N("")));
|
|
26185
|
+
eI && eI(e), nt = e;
|
|
26186
|
+
}, ot = MI({}, [
|
|
26187
|
+
...BI,
|
|
26188
|
+
...VI,
|
|
26189
|
+
...HI
|
|
26190
|
+
]), st = MI({}, [...UI, ...WI]), ct = function(e, t, n) {
|
|
26191
|
+
return t.namespaceURI === Ue ? e === "svg" : t.namespaceURI === Ve ? e === "svg" && (n === "annotation-xml" || Ye[n]) : !!ot[e];
|
|
26192
|
+
}, lt = function(e, t, n) {
|
|
26193
|
+
return t.namespaceURI === Ue ? e === "math" : t.namespaceURI === He ? e === "math" && Ze[n] : !!st[e];
|
|
26194
|
+
}, ut = function(e, t, n) {
|
|
26195
|
+
return t.namespaceURI === He && !Ze[n] || t.namespaceURI === Ve && !Ye[n] ? !1 : !st[e] && (Qe[e] || !ot[e]);
|
|
26196
|
+
}, dt = function(e) {
|
|
26197
|
+
let t = E(e), n = gI(w(e)), r = _(e), i, a;
|
|
26198
|
+
return r && C(r) === uL.element ? (i = { namespaceURI: E(r) }, a = gI(w(r))) : (i = { namespaceURI: We }, a = "template"), Ke[t] ? t === He ? ct(n, i, a) : t === Ve ? lt(n, i, a) : t === Ue ? ut(n, i, a) : !!($e === "application/xhtml+xml" && Ke[t]) : !1;
|
|
26199
|
+
}, ft = function(e) {
|
|
26200
|
+
lI(t.removed, { element: e });
|
|
26201
|
+
try {
|
|
26202
|
+
_(e).removeChild(e);
|
|
26203
|
+
} catch {
|
|
26204
|
+
if (p(e), !_(e)) throw kI("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
26205
|
+
}
|
|
26206
|
+
}, pt = function(e, t, n) {
|
|
26207
|
+
try {
|
|
26208
|
+
m(e, t);
|
|
26209
|
+
} catch {
|
|
26210
|
+
try {
|
|
26211
|
+
e.removeAttribute(n);
|
|
26212
|
+
} catch {}
|
|
26213
|
+
}
|
|
26214
|
+
}, mt = function(e) {
|
|
26215
|
+
vt(e);
|
|
26216
|
+
let t = g(e);
|
|
26217
|
+
t && oI(uI(t), (e) => {
|
|
26218
|
+
try {
|
|
26219
|
+
p(e);
|
|
26220
|
+
} catch {}
|
|
26221
|
+
});
|
|
26222
|
+
let n = C(e) === uL.element ? y(e) : null;
|
|
26223
|
+
if (n) for (let t = n.length - 1; t >= 0; --t) {
|
|
26224
|
+
let r = n[t], i = r && r.name;
|
|
26225
|
+
typeof i == "string" && pt(e, r, i);
|
|
26226
|
+
}
|
|
26227
|
+
}, ht = function(e, n, r) {
|
|
26228
|
+
if (!r) try {
|
|
26229
|
+
r = n.getAttributeNode(e);
|
|
26230
|
+
} catch {
|
|
26231
|
+
r = null;
|
|
26232
|
+
}
|
|
26233
|
+
lI(t.removed, {
|
|
26234
|
+
attribute: r || null,
|
|
26235
|
+
from: n
|
|
26236
|
+
});
|
|
26237
|
+
try {
|
|
26238
|
+
r ? m(n, r) : n.removeAttribute(e);
|
|
26239
|
+
} catch {
|
|
26240
|
+
try {
|
|
26241
|
+
n.removeAttribute(e);
|
|
26242
|
+
} catch {}
|
|
26243
|
+
}
|
|
26244
|
+
if (e === "is") {
|
|
26245
|
+
if (Te || Ee) try {
|
|
26246
|
+
ft(n);
|
|
26247
|
+
} catch {}
|
|
26248
|
+
else try {
|
|
26249
|
+
n.setAttribute(e, "");
|
|
26250
|
+
} catch {}
|
|
26251
|
+
}
|
|
26252
|
+
}, gt = function(e) {
|
|
26253
|
+
let t = y(e);
|
|
26254
|
+
if (t) for (let n = t.length - 1; n >= 0; --n) {
|
|
26255
|
+
let r = t[n], i = r && r.name;
|
|
26256
|
+
typeof i != "string" || de[tt(i)] || pt(e, r, i);
|
|
26257
|
+
}
|
|
26258
|
+
}, _t = function(e, t) {
|
|
26259
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], r = [e];
|
|
26260
|
+
for (; r.length > 0;) {
|
|
26261
|
+
let e = r.pop();
|
|
26262
|
+
if (t(e) === !1) continue;
|
|
26263
|
+
if (n && C(e) === uL.element) {
|
|
26264
|
+
let t = v(e);
|
|
26265
|
+
Nt(t) && r.push(t);
|
|
26266
|
+
}
|
|
26267
|
+
let i = g(e);
|
|
26268
|
+
if (i) for (let e = i.length - 1; e >= 0; --e) r.push(i[e]);
|
|
26269
|
+
}
|
|
26270
|
+
}, vt = function(e) {
|
|
26271
|
+
_t(e, (e) => {
|
|
26272
|
+
C(e) === uL.element && gt(e);
|
|
26273
|
+
});
|
|
26274
|
+
}, yt = function(e) {
|
|
26275
|
+
let t = [];
|
|
26276
|
+
return _t(e, (e) => {
|
|
26277
|
+
t.push(e);
|
|
26278
|
+
}, !0), t;
|
|
26279
|
+
}, bt = function(e, t) {
|
|
26280
|
+
let n = pI();
|
|
26281
|
+
oI(yt(e), (e) => {
|
|
26282
|
+
C(e) === uL.element && mI(n, e);
|
|
26283
|
+
}), oI(t, (e) => {
|
|
26284
|
+
C(e) === uL.element && !hI(n, e) && gt(e);
|
|
26285
|
+
});
|
|
26286
|
+
}, xt = function(e, n) {
|
|
26287
|
+
let r = !1;
|
|
26288
|
+
return oI(t.removed, (t) => {
|
|
26289
|
+
t.element && (r ||= t.element === e, vt(t.element));
|
|
26290
|
+
}), bt(e, n), r;
|
|
26291
|
+
}, St = function(e, t) {
|
|
26292
|
+
let n = Ne, r = null, i = () => (r || (r = pI(), oI(t, (e) => {
|
|
26293
|
+
mI(r, e);
|
|
26294
|
+
})), r);
|
|
26295
|
+
for (let t = 0;; t++) {
|
|
26296
|
+
let r = yt(e), a = [e], o = !1;
|
|
26297
|
+
if (oI(r, (e) => {
|
|
26298
|
+
C(e) === uL.documentFragment ? lI(a, e) : !o && !hI(n, e) && (o = hI(i(), e));
|
|
26299
|
+
}), !o) return;
|
|
26300
|
+
if (t >= 8) throw kI("the tree kept changing during in-place sanitization; refusing to return it");
|
|
26301
|
+
oI(a, (t, n) => {
|
|
26302
|
+
Ct(t, n > 0, e, i());
|
|
26303
|
+
});
|
|
26304
|
+
}
|
|
26305
|
+
}, Ct = function(e, t, n, r) {
|
|
26306
|
+
let i = Ot(e), a;
|
|
26307
|
+
for (; a = i.nextNode();) hI(r, a) && !hI(Ne, a) && (t && q(B.uponSanitizeShadowNode, a, null), Rt(a, n), Gt(a, n), Nt(a.content) && Kt(a.content));
|
|
26308
|
+
}, wt = function(e) {
|
|
26309
|
+
Ne && mI(Ne, e);
|
|
26310
|
+
}, Tt = function(e, t) {
|
|
26311
|
+
return ye ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
|
|
26312
|
+
}, Et = function(e) {
|
|
26313
|
+
ye && _t(e, (e) => {
|
|
26314
|
+
let t = C(e);
|
|
26315
|
+
if (t === uL.processingInstruction || t === uL.comment && OI(sL, e.data)) {
|
|
26316
|
+
try {
|
|
26317
|
+
p(e);
|
|
26318
|
+
} catch {}
|
|
26319
|
+
return !1;
|
|
26320
|
+
}
|
|
26321
|
+
if (t === uL.element) {
|
|
26322
|
+
let t = e, n = tt(w(e));
|
|
26323
|
+
try {
|
|
26324
|
+
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && Tt("for", n) && t.removeAttribute("for");
|
|
26325
|
+
} catch {}
|
|
26326
|
+
}
|
|
26327
|
+
return !0;
|
|
26328
|
+
});
|
|
26329
|
+
}, Dt = function(e) {
|
|
26330
|
+
let t = null, r = null;
|
|
26331
|
+
if (we) e = "<remove></remove>" + e;
|
|
26332
|
+
else {
|
|
26333
|
+
let t = vI(e, /^[\r\n\t ]+/);
|
|
26334
|
+
r = t && t[0];
|
|
26335
|
+
}
|
|
26336
|
+
$e === "application/xhtml+xml" && We === Ue && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
26337
|
+
let i = D ? N(e) : e;
|
|
26338
|
+
if (We === Ue) try {
|
|
26339
|
+
t = new l().parseFromString(i, $e);
|
|
26340
|
+
} catch {}
|
|
26341
|
+
if (!t || !t.documentElement) {
|
|
26342
|
+
t = I.createDocument(We, "template", null);
|
|
26343
|
+
try {
|
|
26344
|
+
t.documentElement.innerHTML = Ge ? O : i;
|
|
26345
|
+
} catch {}
|
|
26346
|
+
}
|
|
26347
|
+
let a = t.body || t.documentElement;
|
|
26348
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), We === Ue ? R.call(t, be ? "html" : "body")[0] : be ? t.documentElement : a;
|
|
26349
|
+
}, Ot = function(e) {
|
|
26350
|
+
let t = S ? S(e) : e.ownerDocument;
|
|
26351
|
+
return L.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
|
|
26352
|
+
}, kt = function(e) {
|
|
26353
|
+
return e = yI(e, V, " "), e = yI(e, ne, " "), e = yI(e, re, " "), e;
|
|
26354
|
+
}, At = function(e) {
|
|
26355
|
+
jt(e);
|
|
26356
|
+
let t = e.querySelectorAll?.call(e, "template");
|
|
26357
|
+
t && oI(t, (e) => {
|
|
26358
|
+
Nt(e.content) && At(e.content);
|
|
26359
|
+
});
|
|
26360
|
+
}, jt = function(e) {
|
|
26361
|
+
e.normalize();
|
|
26362
|
+
let t = S ? S(e) : e.ownerDocument, n = L.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
|
|
26363
|
+
for (; r;) r.data = kt(r.data), r = n.nextNode();
|
|
26364
|
+
}, Mt = function(e) {
|
|
26365
|
+
let t = x ? x(e) : null;
|
|
26366
|
+
return typeof t != "string" || tt(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== y(e) || typeof e.removeAttribute != "function" || typeof e.removeAttributeNode != "function" || typeof e.getAttributeNode != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== b(e) || e.childNodes !== g(e);
|
|
26367
|
+
}, Nt = function(e) {
|
|
26368
|
+
if (!b || typeof e != "object" || !e) return !1;
|
|
26369
|
+
try {
|
|
26370
|
+
return b(e) === uL.documentFragment;
|
|
26371
|
+
} catch {
|
|
26372
|
+
return !1;
|
|
26373
|
+
}
|
|
26374
|
+
}, K = function(e) {
|
|
26375
|
+
if (!b || typeof e != "object" || !e) return !1;
|
|
26376
|
+
try {
|
|
26377
|
+
return typeof b(e) == "number";
|
|
26378
|
+
} catch {
|
|
26379
|
+
return !1;
|
|
26380
|
+
}
|
|
26381
|
+
};
|
|
26382
|
+
function q(e, n, r) {
|
|
26383
|
+
e.length !== 0 && oI(e, (e) => {
|
|
26384
|
+
e.call(t, n, r, nt);
|
|
26385
|
+
});
|
|
26386
|
+
}
|
|
26387
|
+
let Pt = function(e, t) {
|
|
26388
|
+
return !!(ye && e.hasChildNodes() && !K(e.firstElementChild) && OI(oL, e.textContent) && OI(oL, e.innerHTML) || ye && dL[t] && C(e) === uL.element && E(e) === Ue && (K(e.firstElementChild) || typeof e.textContent == "string" && OI(oL, e.textContent)) || e.nodeType === uL.processingInstruction || ye && e.nodeType === uL.comment && OI(sL, e.data));
|
|
26389
|
+
}, Ft = function(e, t) {
|
|
26390
|
+
return e instanceof RegExp ? OI(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
|
|
26391
|
+
}, It = function(e, t, n) {
|
|
26392
|
+
if (!fe[t] && Vt(t) && Ft(W.tagNameCheck, t)) return !1;
|
|
26393
|
+
if (je && !Fe[t] && !Fe[gI(t)]) {
|
|
26394
|
+
let t = _(e), r = g(e);
|
|
26395
|
+
if (r && t) {
|
|
26396
|
+
let i = r.length;
|
|
26397
|
+
for (let a = i - 1; a >= 0; --a) {
|
|
26398
|
+
let i = e === n ? f(r[a], !0) : r[a];
|
|
26399
|
+
t.insertBefore(i, h(e));
|
|
26400
|
+
}
|
|
26401
|
+
}
|
|
26402
|
+
}
|
|
26403
|
+
return ft(e), !0;
|
|
26404
|
+
}, Lt = function(e, t, n, r) {
|
|
26405
|
+
return e.length === 0 ? t : t === n || t === r ? PI(t) : t;
|
|
26406
|
+
}, J = function(e, t) {
|
|
26407
|
+
return e === t || _(e) !== null ? !1 : (Me && vt(e), !0);
|
|
26408
|
+
}, Rt = function(e, n) {
|
|
26409
|
+
if (wt(e), q(B.beforeSanitizeElements, e, null), J(e, n)) return !0;
|
|
26410
|
+
if (Mt(e)) return ft(e), !0;
|
|
26411
|
+
let r = tt(w(e));
|
|
26412
|
+
if (le = Lt(B.uponSanitizeElement, le, ue, Se), q(B.uponSanitizeElement, e, {
|
|
26413
|
+
tagName: r,
|
|
26414
|
+
allowedTags: le
|
|
26415
|
+
}), J(e, n)) return !0;
|
|
26416
|
+
if (Pt(e, r)) return ft(e), !0;
|
|
26417
|
+
if (fe[r] || !(pe.tagCheck instanceof Function && pe.tagCheck(r)) && !le[r]) {
|
|
26418
|
+
let t = It(e, r, n);
|
|
26419
|
+
return t === !1 && (q(B.afterSanitizeElements, e, null), J(e, n)) ? !0 : t;
|
|
26420
|
+
}
|
|
26421
|
+
if (C(e) === uL.element && !dt(e) || (r === "noscript" || r === "noembed" || r === "noframes") && OI(cL, e.innerHTML)) return ft(e), !0;
|
|
26422
|
+
if (ve && e.nodeType === uL.text) {
|
|
26423
|
+
let n = kt(e.textContent);
|
|
26424
|
+
e.textContent !== n && (lI(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
26425
|
+
}
|
|
26426
|
+
return q(B.afterSanitizeElements, e, null), J(e, n);
|
|
26427
|
+
}, zt = function(e, t, r) {
|
|
26428
|
+
if (G[t] || Tt(t, e) || Oe && (t === "id" || t === "name") && (r in n || r in rt)) return !1;
|
|
26429
|
+
let i = de[t] || pe.attributeCheck instanceof Function && pe.attributeCheck(t, e);
|
|
26430
|
+
return he && OI(ie, t) || me && OI(ae, t) ? !0 : i ? ze[t] || OI(ce, yI(r, H, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && bI(r, "data:") === 0 && Le[e] || ge && !OI(oe, yI(r, H, "")) ? !0 : !r : Vt(e) && Ft(W.tagNameCheck, e) && Ft(W.attributeNameCheck, t, e) || t === "is" && W.allowCustomizedBuiltInElements && Ft(W.tagNameCheck, r);
|
|
26431
|
+
}, Bt = MI({}, [
|
|
26432
|
+
"annotation-xml",
|
|
26433
|
+
"color-profile",
|
|
26434
|
+
"font-face",
|
|
26435
|
+
"font-face-format",
|
|
26436
|
+
"font-face-name",
|
|
26437
|
+
"font-face-src",
|
|
26438
|
+
"font-face-uri",
|
|
26439
|
+
"missing-glyph"
|
|
26440
|
+
]), Vt = function(e) {
|
|
26441
|
+
return !Bt[gI(e)] && OI(se, e);
|
|
26442
|
+
}, Ht = function(e, t, n, r) {
|
|
26443
|
+
if (D && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
|
|
26444
|
+
case "TrustedHTML": return N(r);
|
|
26445
|
+
case "TrustedScriptURL": return P(r);
|
|
26446
|
+
}
|
|
26447
|
+
return r;
|
|
26448
|
+
}, Ut = function(e, t, n, r) {
|
|
26449
|
+
try {
|
|
26450
|
+
return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !Mt(e) || (ft(e), !1);
|
|
26451
|
+
} catch {
|
|
26452
|
+
return ht(t, e), !1;
|
|
26453
|
+
}
|
|
26454
|
+
}, Wt = function(e, t) {
|
|
26455
|
+
return ye && OI(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, t) ? !0 : gI(e) === "attributename" && vI(t, "href") !== null;
|
|
26456
|
+
}, Gt = function(e, n) {
|
|
26457
|
+
if (q(B.beforeSanitizeAttributes, e, null), J(e, n)) return;
|
|
26458
|
+
let r = e.attributes;
|
|
26459
|
+
if (!r || Mt(e)) return;
|
|
26460
|
+
de = Lt(B.uponSanitizeAttribute, de, U, Ce);
|
|
26461
|
+
let i = {
|
|
26462
|
+
attrName: "",
|
|
26463
|
+
attrValue: "",
|
|
26464
|
+
keepAttr: !0,
|
|
26465
|
+
allowedAttributes: de,
|
|
26466
|
+
forceKeepAttr: void 0
|
|
26467
|
+
}, a = r.length, o = tt(e.nodeName);
|
|
26468
|
+
for (; a--;) {
|
|
26469
|
+
let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u = tt(s), d = l, f = s === "value" ? d : xI(d), p = !1;
|
|
26470
|
+
i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, q(B.uponSanitizeAttribute, e, i), f = i.attrValue, ke && (u === "id" || u === "name") && bI(f, Ae) !== 0 && (ht(s, e, n), f = Ae + f, p = !0), Wt(s, f) ? ht(s, e, n) : i.forceKeepAttr || (i.keepAttr ? !_e && OI(lL, f) ? ht(s, e, n) : (ve && (f = kt(f)), zt(o, u, f) ? (f = Ht(o, u, c, f), f !== d && Ut(e, s, c, f) && p && cI(t.removed)) : ht(s, e, n)) : ht(s, e, n));
|
|
26471
|
+
}
|
|
26472
|
+
q(B.afterSanitizeAttributes, e, null), J(e, n);
|
|
26473
|
+
}, Kt = function(e) {
|
|
26474
|
+
let t = null, n = Ot(e);
|
|
26475
|
+
for (q(B.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (q(B.uponSanitizeShadowNode, t, null), Rt(t, e), Gt(t, e), Nt(t.content) && Kt(t.content), C(t) === uL.element) {
|
|
26476
|
+
let e = v(t);
|
|
26477
|
+
Nt(e) && (qt(e), Kt(e));
|
|
26478
|
+
}
|
|
26479
|
+
ve && jt(e), q(B.afterSanitizeShadowDOM, e, null);
|
|
26480
|
+
}, qt = function(e) {
|
|
26481
|
+
let t = [{
|
|
26482
|
+
node: e,
|
|
26483
|
+
shadow: null
|
|
26484
|
+
}];
|
|
26485
|
+
for (; t.length > 0;) {
|
|
26486
|
+
let e = t.pop();
|
|
26487
|
+
if (e.shadow) {
|
|
26488
|
+
Kt(e.shadow);
|
|
26489
|
+
continue;
|
|
26490
|
+
}
|
|
26491
|
+
let n = e.node, r = C(n) === uL.element, i = g(n);
|
|
26492
|
+
if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
|
|
26493
|
+
node: i[e],
|
|
26494
|
+
shadow: null
|
|
26495
|
+
});
|
|
26496
|
+
if (r) {
|
|
26497
|
+
let e = x ? x(n) : null;
|
|
26498
|
+
if (typeof e == "string" && tt(e) === "template") {
|
|
26499
|
+
let e = n.content;
|
|
26500
|
+
Nt(e) && t.push({
|
|
26501
|
+
node: e,
|
|
26502
|
+
shadow: null
|
|
26503
|
+
});
|
|
26504
|
+
}
|
|
26505
|
+
}
|
|
26506
|
+
if (r) {
|
|
26507
|
+
let e = v(n);
|
|
26508
|
+
Nt(e) && t.push({
|
|
26509
|
+
node: null,
|
|
26510
|
+
shadow: e
|
|
26511
|
+
}, {
|
|
26512
|
+
node: e,
|
|
26513
|
+
shadow: null
|
|
26514
|
+
});
|
|
26515
|
+
}
|
|
26516
|
+
}
|
|
26517
|
+
};
|
|
26518
|
+
return t.sanitize = function(e) {
|
|
26519
|
+
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
26520
|
+
if (Ge = !e, Ge && (e = "<!-->"), typeof e != "string" && !K(e) && (e = FI(e), typeof e != "string")) throw kI("dirty is not a string, aborting");
|
|
26521
|
+
if (!t.isSupported) return e;
|
|
26522
|
+
xe ? (le = Se, de = Ce) : at(n), (B.uponSanitizeElement.length > 0 || B.uponSanitizeAttribute.length > 0) && (le = PI(le)), B.uponSanitizeAttribute.length > 0 && (de = PI(de)), t.removed = [];
|
|
26523
|
+
let c = Me && typeof e != "string" && K(e), l = [], u = Ne;
|
|
26524
|
+
if (c) {
|
|
26525
|
+
Et(e);
|
|
26526
|
+
let t = w(e);
|
|
26527
|
+
if (typeof t == "string") {
|
|
26528
|
+
let n = tt(t);
|
|
26529
|
+
if (!le[n] || fe[n]) throw mt(e), kI("root node is forbidden and cannot be sanitized in-place");
|
|
26530
|
+
}
|
|
26531
|
+
if (Mt(e)) throw mt(e), kI("root node is clobbered and cannot be sanitized in-place");
|
|
26532
|
+
l = yt(e), Ne = pI();
|
|
26533
|
+
} else if (K(e)) i = Dt("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === uL.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), qt(i);
|
|
26534
|
+
else {
|
|
26535
|
+
if (!Te && !ve && !be && e.indexOf("<") === -1) return D && De ? N(e) : e;
|
|
26536
|
+
if (i = Dt(e), !i) return Te ? null : De ? O : "";
|
|
26537
|
+
}
|
|
26538
|
+
i && we && ft(i.firstChild);
|
|
26539
|
+
let d = c ? e : i;
|
|
26540
|
+
try {
|
|
26541
|
+
c && qt(e);
|
|
26542
|
+
let t = Ot(d);
|
|
26543
|
+
for (; o = t.nextNode();) Rt(o, d), Gt(o, d), Nt(o.content) && Kt(o.content);
|
|
26544
|
+
c && St(e, l);
|
|
26545
|
+
} catch (t) {
|
|
26546
|
+
throw c && (mt(e), xt(e, l)), t;
|
|
26547
|
+
} finally {
|
|
26548
|
+
Ne = u;
|
|
26549
|
+
}
|
|
26550
|
+
if (c) {
|
|
26551
|
+
if (xt(e, l)) throw kI("a node selected for removal could not be safely returned; refusing to sanitize in place");
|
|
26552
|
+
return ve && At(e), e;
|
|
26553
|
+
}
|
|
26554
|
+
if (Te) {
|
|
26555
|
+
if (ve && At(i), Ee) for (s = te.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
|
|
26556
|
+
else s = i;
|
|
26557
|
+
return (de.shadowroot || de.shadowrootmode) && (s = z.call(r, s, !0)), s;
|
|
26558
|
+
}
|
|
26559
|
+
let f = be ? i.outerHTML : i.innerHTML;
|
|
26560
|
+
return be && le["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && OI(iL, i.ownerDocument.doctype.name) && (f = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + f), ve && (f = kt(f)), D && De ? N(f) : f;
|
|
26561
|
+
}, t.setConfig = function() {
|
|
26562
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
26563
|
+
at(e), xe = !0, Se = le, Ce = de;
|
|
26564
|
+
}, t.clearConfig = function() {
|
|
26565
|
+
nt = null, xe = !1, Se = null, Ce = null, D = k, O = "";
|
|
26566
|
+
}, t.isValidAttribute = function(e, t, n) {
|
|
26567
|
+
nt || at({});
|
|
26568
|
+
let r = tt(e), i = tt(t);
|
|
26569
|
+
return typeof n == "string" && (Wt(t, n) || !_e && OI(lL, n)) ? !1 : zt(r, i, n);
|
|
26570
|
+
}, t.addHook = function(e, t) {
|
|
26571
|
+
typeof t == "function" && EI(B, e) && lI(B[e], t);
|
|
26572
|
+
}, t.removeHook = function(e, t) {
|
|
26573
|
+
if (EI(B, e)) {
|
|
26574
|
+
if (t !== void 0) {
|
|
26575
|
+
let n = sI(B[e], t);
|
|
26576
|
+
return n === -1 ? void 0 : dI(B[e], n, 1)[0];
|
|
26577
|
+
}
|
|
26578
|
+
return cI(B[e]);
|
|
26579
|
+
}
|
|
26580
|
+
}, t.removeHooks = function(e) {
|
|
26581
|
+
EI(B, e) && (B[e] = []);
|
|
26582
|
+
}, t.removeAllHooks = function() {
|
|
26583
|
+
B = mL();
|
|
26584
|
+
}, t;
|
|
26585
|
+
}
|
|
26586
|
+
var vL = _L(), yL = (e) => vL.sanitize(e, {
|
|
26587
|
+
FORBID_TAGS: ["style", "form"],
|
|
26588
|
+
FORBID_ATTR: ["style"]
|
|
26589
|
+
}), bL = ({ episode: e, mediaUri: t, sources: n, settled: r, startDate: i, status: a, genres: o }) => {
|
|
25712
26590
|
let s = Yy(), { released: c, upcoming: l } = Hy({
|
|
25713
26591
|
startDate: i,
|
|
25714
26592
|
status: a,
|
|
@@ -25745,7 +26623,7 @@ var TF = iv("\n mutation DeleteListEntry($input: DeleteListEntryInput!) {\n
|
|
|
25745
26623
|
};
|
|
25746
26624
|
// src/router/home/media-modal.tsx
|
|
25747
26625
|
j();
|
|
25748
|
-
var
|
|
26626
|
+
var xL = x`
|
|
25749
26627
|
z-index: ${Hh.mediaModal};
|
|
25750
26628
|
padding: 5rem 1rem;
|
|
25751
26629
|
background-color: hsla(0, 0%, 0%, 0.439);
|
|
@@ -26018,7 +26896,7 @@ animation: overlayShow 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
|
26018
26896
|
}
|
|
26019
26897
|
}
|
|
26020
26898
|
}
|
|
26021
|
-
`,
|
|
26899
|
+
`, SL = ({ mediaNodes: e }) => {
|
|
26022
26900
|
let t = Tu(), n = {
|
|
26023
26901
|
...t,
|
|
26024
26902
|
uri: na(t.uri)
|
|
@@ -26054,7 +26932,7 @@ animation: overlayShow 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
|
26054
26932
|
ea(u?.uri, n.uri, te.current) && (te.current = u.uri, i(`${Hu(Z.MEDIA, { uri: u.uri })}${location.search}`, { replace: !0 }));
|
|
26055
26933
|
}, [u?.uri, n.uri]), O ? /* @__PURE__ */ A(RF, {
|
|
26056
26934
|
"data-party-scroll": !0,
|
|
26057
|
-
css:
|
|
26935
|
+
css: xL,
|
|
26058
26936
|
onClose: () => k(!1),
|
|
26059
26937
|
children: [/* @__PURE__ */ A("div", {
|
|
26060
26938
|
className: "trailer",
|
|
@@ -26120,7 +26998,7 @@ animation: overlayShow 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
|
26120
26998
|
})
|
|
26121
26999
|
]
|
|
26122
27000
|
}),
|
|
26123
|
-
p && u ? /* @__PURE__ */ z(
|
|
27001
|
+
p && u ? /* @__PURE__ */ z(bL, {
|
|
26124
27002
|
episode: m,
|
|
26125
27003
|
mediaUri: u.uri,
|
|
26126
27004
|
sources: h,
|
|
@@ -26141,7 +27019,7 @@ animation: overlayShow 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
|
26141
27019
|
y ? /* @__PURE__ */ z(Tx, {
|
|
26142
27020
|
collapsedHeight: 200,
|
|
26143
27021
|
className: "description",
|
|
26144
|
-
children: /* @__PURE__ */ z("div", { dangerouslySetInnerHTML: { __html: y } })
|
|
27022
|
+
children: /* @__PURE__ */ z("div", { dangerouslySetInnerHTML: { __html: yL(y) } })
|
|
26145
27023
|
}) : _ ? void 0 : /* @__PURE__ */ z(wv, {
|
|
26146
27024
|
count: 5,
|
|
26147
27025
|
className: "description pending"
|
|
@@ -26173,7 +27051,7 @@ animation: overlayShow 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
|
26173
27051
|
]
|
|
26174
27052
|
})]
|
|
26175
27053
|
}) : /* @__PURE__ */ z(Ru, { to: "/" });
|
|
26176
|
-
},
|
|
27054
|
+
}, CL = [
|
|
26177
27055
|
{
|
|
26178
27056
|
label: "All",
|
|
26179
27057
|
value: null
|
|
@@ -26190,7 +27068,7 @@ animation: overlayShow 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
|
26190
27068
|
label: "Movies",
|
|
26191
27069
|
value: ei.Movie
|
|
26192
27070
|
}
|
|
26193
|
-
],
|
|
27071
|
+
], wL = x`
|
|
26194
27072
|
display: flex;
|
|
26195
27073
|
gap: 0.6rem;
|
|
26196
27074
|
|
|
@@ -26212,37 +27090,37 @@ animation: overlayShow 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
|
26212
27090
|
color: #000;
|
|
26213
27091
|
border-color: #fff;
|
|
26214
27092
|
}
|
|
26215
|
-
`,
|
|
26216
|
-
css:
|
|
26217
|
-
children:
|
|
27093
|
+
`, TL = ({ value: e, onChange: t }) => /* @__PURE__ */ z("div", {
|
|
27094
|
+
css: wL,
|
|
27095
|
+
children: CL.map((n) => /* @__PURE__ */ z("button", {
|
|
26218
27096
|
className: e === n.value ? "tab active" : "tab",
|
|
26219
27097
|
onClick: () => t(n.value),
|
|
26220
27098
|
children: n.label
|
|
26221
27099
|
}, n.label))
|
|
26222
|
-
}),
|
|
27100
|
+
}), EL = (e) => {
|
|
26223
27101
|
let t = e.uri ?? "";
|
|
26224
27102
|
return [e._id ?? "", ...t.match(/^ag:\((.*)\)$/)?.[1]?.split(",") ?? [t]].filter(Boolean);
|
|
26225
|
-
},
|
|
27103
|
+
}, DL = (e, t) => {
|
|
26226
27104
|
let n = /* @__PURE__ */ new Map();
|
|
26227
27105
|
t.forEach((e, t) => {
|
|
26228
27106
|
for (let r of e) n.has(r) || n.set(r, t);
|
|
26229
27107
|
});
|
|
26230
|
-
let r = (e) => Math.min(...
|
|
27108
|
+
let r = (e) => Math.min(...EL(e).map((e) => n.get(e) ?? Infinity)), i = [], a = [];
|
|
26231
27109
|
for (let t of e) (r(t) < Infinity ? i : a).push(t);
|
|
26232
27110
|
return i.sort((e, t) => r(e) - r(t)), [...i, ...a];
|
|
26233
|
-
},
|
|
27111
|
+
}, OL = (e) => e.filter((e) => e.popularity != null).map(EL).filter((e) => e.length);
|
|
26234
27112
|
// src/router/home/index.tsx
|
|
26235
27113
|
j();
|
|
26236
|
-
var
|
|
27114
|
+
var kL = iv("\n subscription GetReleasingMediaPage($input: MediaPageInput!, $shortDescriptionInput: MediaShortDescriptionInput!) {\n mediaPage(input: $input) {\n nodes {\n ...MediaFragment\n score\n episodeCount\n titles {\n language\n title\n score\n }\n shortDescriptions(input: $shortDescriptionInput) {\n language\n shortDescription\n }\n covers {\n language\n url\n }\n banners {\n language\n url\n }\n trailers {\n uri\n origin\n id\n url\n thumbnail\n }\n popularity\n }\n }\n }\n"), AL = x`
|
|
26237
27115
|
.category-bar {
|
|
26238
27116
|
position: relative;
|
|
26239
27117
|
z-index: ${Hh.categoryBar};
|
|
26240
27118
|
padding: 1.5rem 3rem 0.5rem;
|
|
26241
27119
|
}
|
|
26242
|
-
`,
|
|
26243
|
-
season: $u(
|
|
26244
|
-
year:
|
|
26245
|
-
},
|
|
27120
|
+
`, jL = da(), ML = {
|
|
27121
|
+
season: $u(jL.season),
|
|
27122
|
+
year: jL.year
|
|
27123
|
+
}, NL = dd(ML), PL = { categories: [ei.Movie] }, FL = { categories: [ei.Series] }, IL = {
|
|
26246
27124
|
anime: ["season"],
|
|
26247
27125
|
movie: ["movies"],
|
|
26248
27126
|
series: ["shows"],
|
|
@@ -26251,71 +27129,71 @@ var XF = iv("\n subscription GetReleasingMediaPage($input: MediaPageInput!, $sh
|
|
|
26251
27129
|
"movies",
|
|
26252
27130
|
"shows"
|
|
26253
27131
|
]
|
|
26254
|
-
}[V_],
|
|
27132
|
+
}[V_], LL = (e, t) => {
|
|
26255
27133
|
let [{ data: n }] = Br({
|
|
26256
|
-
query:
|
|
27134
|
+
query: kL,
|
|
26257
27135
|
variables: {
|
|
26258
27136
|
input: e,
|
|
26259
27137
|
shortDescriptionInput: { count: 1 }
|
|
26260
27138
|
},
|
|
26261
|
-
pause: !
|
|
27139
|
+
pause: !IL.includes(t)
|
|
26262
27140
|
}), i = n?.mediaPage?.nodes, a = r([]);
|
|
26263
27141
|
return G(() => {
|
|
26264
27142
|
if (!i?.length || t !== "season") return i || [];
|
|
26265
|
-
let e =
|
|
26266
|
-
return a.current =
|
|
27143
|
+
let e = DL(i, a.current);
|
|
27144
|
+
return a.current = OL(e), e;
|
|
26267
27145
|
}, [i]);
|
|
26268
|
-
},
|
|
27146
|
+
}, RL = () => {
|
|
26269
27147
|
let [e] = Au(Vu(Z.MEDIA)), [t, n] = B(null), r = {
|
|
26270
|
-
season:
|
|
26271
|
-
season:
|
|
26272
|
-
seasonYear:
|
|
27148
|
+
season: LL({
|
|
27149
|
+
season: ML.season,
|
|
27150
|
+
seasonYear: ML.year,
|
|
26273
27151
|
sorts: [ri.PopularityDesc],
|
|
26274
27152
|
...t ? { categories: [t] } : {}
|
|
26275
27153
|
}, "season"),
|
|
26276
|
-
movies:
|
|
26277
|
-
shows:
|
|
27154
|
+
movies: LL(PL, "movies"),
|
|
27155
|
+
shows: LL(FL, "shows")
|
|
26278
27156
|
};
|
|
26279
27157
|
return /* @__PURE__ */ A("div", {
|
|
26280
|
-
css:
|
|
27158
|
+
css: AL,
|
|
26281
27159
|
children: [
|
|
26282
|
-
/* @__PURE__ */ z(Gb, { mediaNodes: r[
|
|
27160
|
+
/* @__PURE__ */ z(Gb, { mediaNodes: r[IL[0]] }),
|
|
26283
27161
|
V_ === "stub" ? /* @__PURE__ */ z("div", {
|
|
26284
27162
|
className: "category-bar",
|
|
26285
|
-
children: /* @__PURE__ */ z(
|
|
27163
|
+
children: /* @__PURE__ */ z(TL, {
|
|
26286
27164
|
value: t,
|
|
26287
27165
|
onChange: n
|
|
26288
27166
|
})
|
|
26289
27167
|
}) : void 0,
|
|
26290
|
-
|
|
27168
|
+
IL.includes("season") && /* @__PURE__ */ z(Cx, {
|
|
26291
27169
|
title: "Current season",
|
|
26292
|
-
titleTo:
|
|
27170
|
+
titleTo: NL,
|
|
26293
27171
|
mediaNodes: r.season
|
|
26294
27172
|
}),
|
|
26295
|
-
|
|
27173
|
+
IL.includes("movies") && (!t || t === ei.Movie) && /* @__PURE__ */ z(Cx, {
|
|
26296
27174
|
title: "Popular movies",
|
|
26297
27175
|
mediaNodes: r.movies
|
|
26298
27176
|
}),
|
|
26299
|
-
|
|
27177
|
+
IL.includes("shows") && (!t || t === ei.Series) && /* @__PURE__ */ z(Cx, {
|
|
26300
27178
|
title: "Popular shows",
|
|
26301
27179
|
mediaNodes: r.shows
|
|
26302
27180
|
}),
|
|
26303
|
-
e && /* @__PURE__ */ z(
|
|
27181
|
+
e && /* @__PURE__ */ z(SL, { mediaNodes: [
|
|
26304
27182
|
...r.season,
|
|
26305
27183
|
...r.movies,
|
|
26306
27184
|
...r.shows
|
|
26307
27185
|
] })
|
|
26308
27186
|
]
|
|
26309
27187
|
});
|
|
26310
|
-
},
|
|
27188
|
+
}, zL = (e) => e >= 75 ? "good" : e >= 60 ? "mixed" : "poor", BL = {
|
|
26311
27189
|
good: bh,
|
|
26312
27190
|
mixed: dh,
|
|
26313
27191
|
poor: ih
|
|
26314
|
-
},
|
|
27192
|
+
}, VL = {
|
|
26315
27193
|
good: "#4ade80",
|
|
26316
27194
|
mixed: "#fb923c",
|
|
26317
27195
|
poor: "#f87171"
|
|
26318
|
-
},
|
|
27196
|
+
}, HL = x`
|
|
26319
27197
|
display: inline-flex;
|
|
26320
27198
|
align-items: center;
|
|
26321
27199
|
gap: 0.6rem;
|
|
@@ -26324,21 +27202,21 @@ var XF = iv("\n subscription GetReleasingMediaPage($input: MediaPageInput!, $sh
|
|
|
26324
27202
|
.face {
|
|
26325
27203
|
display: flex;
|
|
26326
27204
|
}
|
|
26327
|
-
`,
|
|
26328
|
-
let n =
|
|
27205
|
+
`, UL = ({ percent: e, size: t = 18 }) => {
|
|
27206
|
+
let n = BL[zL(e)];
|
|
26329
27207
|
return /* @__PURE__ */ A("span", {
|
|
26330
|
-
css:
|
|
27208
|
+
css: HL,
|
|
26331
27209
|
"aria-label": `Rated ${e} percent`,
|
|
26332
27210
|
children: [/* @__PURE__ */ z("span", {
|
|
26333
27211
|
className: "face",
|
|
26334
|
-
style: { color:
|
|
27212
|
+
style: { color: VL[zL(e)] },
|
|
26335
27213
|
children: /* @__PURE__ */ z(n, { size: t })
|
|
26336
27214
|
}), /* @__PURE__ */ A("span", {
|
|
26337
27215
|
className: "value",
|
|
26338
27216
|
children: [e, "%"]
|
|
26339
27217
|
})]
|
|
26340
27218
|
});
|
|
26341
|
-
},
|
|
27219
|
+
}, WL = (e) => {
|
|
26342
27220
|
let t = /* @__PURE__ */ new Map();
|
|
26343
27221
|
for (let n of e) for (let e of new Set(n.voiceActors.map((e) => e.language).filter((e) => !!e))) t.set(e, (t.get(e) ?? 0) + 1);
|
|
26344
27222
|
let n = [...t.keys()].sort((e, n) => Number(n === "ja") - Number(e === "ja") || t.get(n) - t.get(e) || e.localeCompare(n));
|
|
@@ -26346,17 +27224,17 @@ var XF = iv("\n subscription GetReleasingMediaPage($input: MediaPageInput!, $sh
|
|
|
26346
27224
|
options: n.length < 2 ? [] : n,
|
|
26347
27225
|
selected: n[0]
|
|
26348
27226
|
};
|
|
26349
|
-
},
|
|
27227
|
+
}, GL = (e, t) => e.map((e) => ({
|
|
26350
27228
|
...e,
|
|
26351
27229
|
actors: e.voiceActors.filter((e) => (e.language ?? void 0) === t)
|
|
26352
|
-
})),
|
|
27230
|
+
})), KL = {
|
|
26353
27231
|
MAIN: "Main",
|
|
26354
27232
|
SUPPORTING: "Supporting",
|
|
26355
27233
|
BACKGROUND: "Background"
|
|
26356
|
-
},
|
|
27234
|
+
}, qL = (e) => e ? KL[e] ?? e : void 0, JL = new Intl.DisplayNames(["en"], { type: "language" }), YL = (e) => /^[a-z]{2,3}$/.test(e) ? JL.of(e) ?? e : e;
|
|
26357
27235
|
// src/router/title/index.tsx
|
|
26358
27236
|
j();
|
|
26359
|
-
var
|
|
27237
|
+
var XL = 12, ZL = x`
|
|
26360
27238
|
/* the footer under it stays below the fold while the page fills, rather than being pushed off it */
|
|
26361
27239
|
min-height: 100vh;
|
|
26362
27240
|
padding-bottom: 6rem;
|
|
@@ -26846,7 +27724,7 @@ var _I = 12, vI = x`
|
|
|
26846
27724
|
}
|
|
26847
27725
|
}
|
|
26848
27726
|
}
|
|
26849
|
-
`,
|
|
27727
|
+
`, QL = ({ person: e, detail: t, actor: n }) => /* @__PURE__ */ A("div", {
|
|
26850
27728
|
className: n ? "person actor" : "person",
|
|
26851
27729
|
children: [e.image ? /* @__PURE__ */ z("img", {
|
|
26852
27730
|
className: "face",
|
|
@@ -26866,8 +27744,8 @@ var _I = 12, vI = x`
|
|
|
26866
27744
|
className: "detail",
|
|
26867
27745
|
children: t
|
|
26868
27746
|
}) : void 0] })]
|
|
26869
|
-
}),
|
|
26870
|
-
let t =
|
|
27747
|
+
}), $L = ({ characters: e }) => {
|
|
27748
|
+
let t = WL(e), [n, r] = B(), i = GL(e, n ?? t.selected);
|
|
26871
27749
|
return /* @__PURE__ */ A("section", {
|
|
26872
27750
|
"data-characters": !0,
|
|
26873
27751
|
children: [/* @__PURE__ */ A("h2", { children: [/* @__PURE__ */ z("span", { children: "Characters" }), t.options.length ? /* @__PURE__ */ z("select", {
|
|
@@ -26876,20 +27754,20 @@ var _I = 12, vI = x`
|
|
|
26876
27754
|
onChange: (e) => r(e.currentTarget.value),
|
|
26877
27755
|
children: t.options.map((e) => /* @__PURE__ */ z("option", {
|
|
26878
27756
|
value: e,
|
|
26879
|
-
children:
|
|
27757
|
+
children: YL(e)
|
|
26880
27758
|
}, e))
|
|
26881
27759
|
}) : void 0] }), /* @__PURE__ */ z(Kv, {
|
|
26882
27760
|
items: i,
|
|
26883
|
-
size:
|
|
27761
|
+
size: XL,
|
|
26884
27762
|
label: "Characters",
|
|
26885
27763
|
children: (e, t) => /* @__PURE__ */ z("ul", {
|
|
26886
27764
|
className: "credits",
|
|
26887
|
-
children: e.map((e, n) => /* @__PURE__ */ A("li", { children: [/* @__PURE__ */ z(
|
|
27765
|
+
children: e.map((e, n) => /* @__PURE__ */ A("li", { children: [/* @__PURE__ */ z(QL, {
|
|
26888
27766
|
person: e,
|
|
26889
|
-
detail:
|
|
27767
|
+
detail: qL(e.role)
|
|
26890
27768
|
}), e.actors.length ? /* @__PURE__ */ z("div", {
|
|
26891
27769
|
className: "actors",
|
|
26892
|
-
children: e.actors.map((e) => /* @__PURE__ */ z(
|
|
27770
|
+
children: e.actors.map((e) => /* @__PURE__ */ z(QL, {
|
|
26893
27771
|
person: e,
|
|
26894
27772
|
actor: !0
|
|
26895
27773
|
}, e.name))
|
|
@@ -26897,21 +27775,21 @@ var _I = 12, vI = x`
|
|
|
26897
27775
|
})
|
|
26898
27776
|
})]
|
|
26899
27777
|
});
|
|
26900
|
-
},
|
|
27778
|
+
}, eR = ({ staff: e }) => /* @__PURE__ */ A("section", {
|
|
26901
27779
|
"data-staff": !0,
|
|
26902
27780
|
children: [/* @__PURE__ */ z("h2", { children: "Staff" }), /* @__PURE__ */ z(Kv, {
|
|
26903
27781
|
items: e,
|
|
26904
|
-
size:
|
|
27782
|
+
size: XL,
|
|
26905
27783
|
label: "Staff",
|
|
26906
27784
|
children: (e, t) => /* @__PURE__ */ z("ul", {
|
|
26907
27785
|
className: "credits",
|
|
26908
|
-
children: e.map((e, n) => /* @__PURE__ */ z("li", { children: /* @__PURE__ */ z(
|
|
27786
|
+
children: e.map((e, n) => /* @__PURE__ */ z("li", { children: /* @__PURE__ */ z(QL, {
|
|
26909
27787
|
person: e,
|
|
26910
27788
|
detail: e.roles?.join(", ")
|
|
26911
27789
|
}) }, `${e.name}:${t + n}`))
|
|
26912
27790
|
})
|
|
26913
27791
|
})]
|
|
26914
|
-
}),
|
|
27792
|
+
}), tR = ({ url: e }) => {
|
|
26915
27793
|
let [t, n] = B();
|
|
26916
27794
|
return H(() => {
|
|
26917
27795
|
import("./assets/lib-theme-player-B_XpnzYA.js").then((e) => n(() => e.default)).catch(() => n(() => ({ url: e }) => /* @__PURE__ */ z("video", {
|
|
@@ -26924,7 +27802,7 @@ var _I = 12, vI = x`
|
|
|
26924
27802
|
className: "player",
|
|
26925
27803
|
children: t ? /* @__PURE__ */ z(t, { url: e }) : void 0
|
|
26926
27804
|
});
|
|
26927
|
-
},
|
|
27805
|
+
}, nR = ({ themes: e }) => {
|
|
26928
27806
|
let [t, n] = B();
|
|
26929
27807
|
return /* @__PURE__ */ z("ul", {
|
|
26930
27808
|
className: "themes",
|
|
@@ -26956,18 +27834,18 @@ var _I = 12, vI = x`
|
|
|
26956
27834
|
children: e.artists.join(", ")
|
|
26957
27835
|
})
|
|
26958
27836
|
]
|
|
26959
|
-
}), t === r && i ? /* @__PURE__ */ z(
|
|
27837
|
+
}), t === r && i ? /* @__PURE__ */ z(tR, { url: i }) : void 0] }, r);
|
|
26960
27838
|
})
|
|
26961
27839
|
});
|
|
26962
|
-
},
|
|
27840
|
+
}, rR = ({ themes: e }) => /* @__PURE__ */ A("section", {
|
|
26963
27841
|
"data-themes": !0,
|
|
26964
27842
|
children: [/* @__PURE__ */ z("h2", { children: "Themes" }), /* @__PURE__ */ z(Kv, {
|
|
26965
27843
|
items: e,
|
|
26966
|
-
size:
|
|
27844
|
+
size: XL,
|
|
26967
27845
|
label: "Themes",
|
|
26968
|
-
children: (e, t) => /* @__PURE__ */ z(
|
|
27846
|
+
children: (e, t) => /* @__PURE__ */ z(nR, { themes: e }, t)
|
|
26969
27847
|
})]
|
|
26970
|
-
}),
|
|
27848
|
+
}), iR = () => {
|
|
26971
27849
|
let e = na(Tu().uri), [, t] = Du(), n = Mx(Ou()), [i, a] = B(e);
|
|
26972
27850
|
H(() => {
|
|
26973
27851
|
a((t) => t && sa(t, e ?? "") ? t : e);
|
|
@@ -27013,7 +27891,7 @@ var _I = 12, vI = x`
|
|
|
27013
27891
|
} catch {}
|
|
27014
27892
|
}, L = c?.trailers.at(0)?.url;
|
|
27015
27893
|
return /* @__PURE__ */ A("div", {
|
|
27016
|
-
css:
|
|
27894
|
+
css: ZL,
|
|
27017
27895
|
children: [/* @__PURE__ */ z("div", {
|
|
27018
27896
|
className: "banner",
|
|
27019
27897
|
children: f ?? p ? /* @__PURE__ */ z("div", {
|
|
@@ -27058,7 +27936,7 @@ var _I = 12, vI = x`
|
|
|
27058
27936
|
}, e)),
|
|
27059
27937
|
c?.averageScore == null ? void 0 : /* @__PURE__ */ z("span", {
|
|
27060
27938
|
className: "chip",
|
|
27061
|
-
children: /* @__PURE__ */ z(
|
|
27939
|
+
children: /* @__PURE__ */ z(UL, {
|
|
27062
27940
|
percent: c.averageScore,
|
|
27063
27941
|
size: 16
|
|
27064
27942
|
})
|
|
@@ -27075,7 +27953,7 @@ var _I = 12, vI = x`
|
|
|
27075
27953
|
g ? /* @__PURE__ */ z("div", {
|
|
27076
27954
|
ref: P,
|
|
27077
27955
|
className: k ? "description" : "description clamped",
|
|
27078
|
-
dangerouslySetInnerHTML: { __html: g }
|
|
27956
|
+
dangerouslySetInnerHTML: { __html: yL(g) }
|
|
27079
27957
|
}) : S ? void 0 : /* @__PURE__ */ z(wv, {
|
|
27080
27958
|
count: 5,
|
|
27081
27959
|
className: "description"
|
|
@@ -27171,30 +28049,30 @@ var _I = 12, vI = x`
|
|
|
27171
28049
|
tracked: u
|
|
27172
28050
|
}) : /* @__PURE__ */ z(zb, {})]
|
|
27173
28051
|
}) : void 0,
|
|
27174
|
-
c?.characters?.length ? /* @__PURE__ */ z(
|
|
27175
|
-
c?.staff?.length ? /* @__PURE__ */ z(
|
|
27176
|
-
c?.themes?.length ? /* @__PURE__ */ z(
|
|
28052
|
+
c?.characters?.length ? /* @__PURE__ */ z($L, { characters: c.characters }) : void 0,
|
|
28053
|
+
c?.staff?.length ? /* @__PURE__ */ z(eR, { staff: c.staff }) : void 0,
|
|
28054
|
+
c?.themes?.length ? /* @__PURE__ */ z(rR, { themes: c.themes }) : void 0
|
|
27177
28055
|
]
|
|
27178
28056
|
}, i)
|
|
27179
28057
|
]
|
|
27180
28058
|
})]
|
|
27181
28059
|
});
|
|
27182
|
-
},
|
|
28060
|
+
}, aR = (e, t) => {
|
|
27183
28061
|
let n = e.nextAiringEpisode?.airingAt;
|
|
27184
28062
|
if (!n) return;
|
|
27185
28063
|
let r = new Date(n).getTime();
|
|
27186
28064
|
return Number.isFinite(r) ? r - t : void 0;
|
|
27187
|
-
},
|
|
28065
|
+
}, oR = (e) => e == null ? void 0 : `${e} episode${e === 1 ? "" : "s"}`, sR = (e, t) => {
|
|
27188
28066
|
if (!e) return;
|
|
27189
28067
|
let n = e.trim().replace(/^#/, ""), r = n.length === 3 ? n.split("").map((e) => e + e).join("") : n.length === 6 ? n : void 0;
|
|
27190
28068
|
if (!r || !/^[0-9a-f]{6}$/i.test(r)) return;
|
|
27191
28069
|
let i = parseInt(r, 16);
|
|
27192
28070
|
return `rgba(${i >> 16 & 255}, ${i >> 8 & 255}, ${i & 255}, ${t})`;
|
|
27193
|
-
},
|
|
27194
|
-
"--accent":
|
|
27195
|
-
"--accent-soft":
|
|
27196
|
-
"--accent-wash":
|
|
27197
|
-
}),
|
|
28071
|
+
}, cR = (e) => ({
|
|
28072
|
+
"--accent": sR(e, 1) ?? "rgba(255, 255, 255, 0.75)",
|
|
28073
|
+
"--accent-soft": sR(e, .18) ?? "rgba(255, 255, 255, 0.08)",
|
|
28074
|
+
"--accent-wash": sR(e, .07) ?? "rgba(255, 255, 255, 0.03)"
|
|
28075
|
+
}), lR = x`
|
|
27198
28076
|
display: grid;
|
|
27199
28077
|
grid-template-columns: 15rem minmax(0, 1fr);
|
|
27200
28078
|
height: 23rem;
|
|
@@ -27314,12 +28192,12 @@ var _I = 12, vI = x`
|
|
|
27314
28192
|
.description { -webkit-line-clamp: 3; }
|
|
27315
28193
|
.chips { display: none; }
|
|
27316
28194
|
}
|
|
27317
|
-
`,
|
|
27318
|
-
let n = Yy(), r = Uv(e.covers, e, { box: mx }), i = e.covers?.find((e) => e.color)?.color, a = Wy(
|
|
28195
|
+
`, uR = ({ media: e, to: t }) => {
|
|
28196
|
+
let n = Yy(), r = Uv(e.covers, e, { box: mx }), i = e.covers?.find((e) => e.color)?.color, a = Wy(aR(e, n) ?? 0), o = e.nextAiringEpisode?.episodeNumber, s = pd(e.type), c = hd(e.season, e.seasonYear), l = [s, oR(e.episodeCount)].filter(Boolean).join(" • ");
|
|
27319
28197
|
return /* @__PURE__ */ A(Fu, {
|
|
27320
28198
|
to: t,
|
|
27321
|
-
css:
|
|
27322
|
-
style:
|
|
28199
|
+
css: lR,
|
|
28200
|
+
style: cR(i),
|
|
27323
28201
|
children: [/* @__PURE__ */ z("div", {
|
|
27324
28202
|
className: "cover",
|
|
27325
28203
|
style: r ? { backgroundImage: `url(${r})` } : void 0,
|
|
@@ -27351,7 +28229,7 @@ var _I = 12, vI = x`
|
|
|
27351
28229
|
})] }) : /* @__PURE__ */ z("div", {
|
|
27352
28230
|
className: "airing-value",
|
|
27353
28231
|
children: md(e.status) ?? "Unknown status"
|
|
27354
|
-
}) }), e.averageScore != null && /* @__PURE__ */ z(
|
|
28232
|
+
}) }), e.averageScore != null && /* @__PURE__ */ z(UL, { percent: e.averageScore })]
|
|
27355
28233
|
}),
|
|
27356
28234
|
l && /* @__PURE__ */ z("div", {
|
|
27357
28235
|
className: "meta",
|
|
@@ -27371,7 +28249,7 @@ var _I = 12, vI = x`
|
|
|
27371
28249
|
]
|
|
27372
28250
|
})]
|
|
27373
28251
|
});
|
|
27374
|
-
},
|
|
28252
|
+
}, dR = x`
|
|
27375
28253
|
display: grid;
|
|
27376
28254
|
grid-template-columns: 5rem minmax(0, 1fr) 11rem 11rem 17rem;
|
|
27377
28255
|
align-items: center;
|
|
@@ -27450,12 +28328,12 @@ var _I = 12, vI = x`
|
|
|
27450
28328
|
.score { display: none; }
|
|
27451
28329
|
.chips { display: none; }
|
|
27452
28330
|
}
|
|
27453
|
-
`,
|
|
27454
|
-
let n = Yy(), r = Uv(e.covers, e, { box: mx }), i = e.covers?.find((e) => e.color)?.color, a = Wy(
|
|
28331
|
+
`, fR = ({ media: e, to: t }) => {
|
|
28332
|
+
let n = Yy(), r = Uv(e.covers, e, { box: mx }), i = e.covers?.find((e) => e.color)?.color, a = Wy(aR(e, n) ?? 0, 1), o = e.nextAiringEpisode?.episodeNumber;
|
|
27455
28333
|
return /* @__PURE__ */ A(Fu, {
|
|
27456
28334
|
to: t,
|
|
27457
|
-
css:
|
|
27458
|
-
style:
|
|
28335
|
+
css: dR,
|
|
28336
|
+
style: cR(i),
|
|
27459
28337
|
children: [
|
|
27460
28338
|
/* @__PURE__ */ z("div", {
|
|
27461
28339
|
className: "cover",
|
|
@@ -27476,7 +28354,7 @@ var _I = 12, vI = x`
|
|
|
27476
28354
|
}),
|
|
27477
28355
|
/* @__PURE__ */ A("div", {
|
|
27478
28356
|
className: "column score",
|
|
27479
|
-
children: [e.averageScore != null && /* @__PURE__ */ z(
|
|
28357
|
+
children: [e.averageScore != null && /* @__PURE__ */ z(UL, {
|
|
27480
28358
|
percent: e.averageScore,
|
|
27481
28359
|
size: 17
|
|
27482
28360
|
}), e.popularity != null && /* @__PURE__ */ A("span", {
|
|
@@ -27488,7 +28366,7 @@ var _I = 12, vI = x`
|
|
|
27488
28366
|
className: "column format",
|
|
27489
28367
|
children: [/* @__PURE__ */ z("span", { children: pd(e.type) }), e.episodeCount != null && /* @__PURE__ */ z("span", {
|
|
27490
28368
|
className: "secondary",
|
|
27491
|
-
children:
|
|
28369
|
+
children: oR(e.episodeCount)
|
|
27492
28370
|
})]
|
|
27493
28371
|
}),
|
|
27494
28372
|
/* @__PURE__ */ A("div", {
|
|
@@ -27505,11 +28383,11 @@ var _I = 12, vI = x`
|
|
|
27505
28383
|
})
|
|
27506
28384
|
]
|
|
27507
28385
|
});
|
|
27508
|
-
},
|
|
28386
|
+
}, pR = {
|
|
27509
28387
|
grid: sh,
|
|
27510
28388
|
card: oh,
|
|
27511
28389
|
list: ch
|
|
27512
|
-
},
|
|
28390
|
+
}, mR = x`
|
|
27513
28391
|
display: inline-flex;
|
|
27514
28392
|
gap: 0.4rem;
|
|
27515
28393
|
padding: 0.4rem;
|
|
@@ -27536,12 +28414,12 @@ var _I = 12, vI = x`
|
|
|
27536
28414
|
background: rgba(255, 255, 255, 0.12);
|
|
27537
28415
|
color: #fff;
|
|
27538
28416
|
}
|
|
27539
|
-
`,
|
|
27540
|
-
css:
|
|
28417
|
+
`, hR = ({ mode: e, onChange: t }) => /* @__PURE__ */ z("div", {
|
|
28418
|
+
css: mR,
|
|
27541
28419
|
role: "group",
|
|
27542
28420
|
"aria-label": "Result layout",
|
|
27543
28421
|
children: ls.map((n) => {
|
|
27544
|
-
let r =
|
|
28422
|
+
let r = pR[n.value];
|
|
27545
28423
|
return /* @__PURE__ */ z("button", {
|
|
27546
28424
|
type: "button",
|
|
27547
28425
|
title: n.label,
|
|
@@ -27554,7 +28432,7 @@ var _I = 12, vI = x`
|
|
|
27554
28432
|
});
|
|
27555
28433
|
// src/components/filter-select.tsx
|
|
27556
28434
|
j();
|
|
27557
|
-
var
|
|
28435
|
+
var gR = x`
|
|
27558
28436
|
display: flex;
|
|
27559
28437
|
flex-direction: column;
|
|
27560
28438
|
gap: 0.7rem;
|
|
@@ -27603,7 +28481,7 @@ var LI = x`
|
|
|
27603
28481
|
}
|
|
27604
28482
|
|
|
27605
28483
|
.control.open .chevron { transform: rotate(180deg); }
|
|
27606
|
-
`,
|
|
28484
|
+
`, _R = x`
|
|
27607
28485
|
z-index: ${Hh.filterMenu};
|
|
27608
28486
|
width: max-content;
|
|
27609
28487
|
min-width: 22rem;
|
|
@@ -27677,7 +28555,7 @@ var LI = x`
|
|
|
27677
28555
|
font-size: 1.4rem;
|
|
27678
28556
|
color: rgba(255, 255, 255, 0.4);
|
|
27679
28557
|
}
|
|
27680
|
-
`,
|
|
28558
|
+
`, vR = ({ label: e, placeholder: t = "Any", options: n, selected: r, onChange: i, multiple: a = !1, searchable: o = !1, allowCustom: s = !1 }) => {
|
|
27681
28559
|
let [c, l] = B(!1), [u, d] = B(""), f = `filter-${e.toLowerCase().replace(/[^a-z]+/g, "-")}`, { refs: p, floatingStyles: m, context: h } = Nm({
|
|
27682
28560
|
open: c,
|
|
27683
28561
|
onOpenChange: (e) => {
|
|
@@ -27714,7 +28592,7 @@ var LI = x`
|
|
|
27714
28592
|
a ? i(r.includes(e) ? r.filter((t) => t !== e) : [...r, e]) : (i(r.includes(e) ? [] : [e]), l(!1), d(""));
|
|
27715
28593
|
};
|
|
27716
28594
|
return /* @__PURE__ */ A("div", {
|
|
27717
|
-
css:
|
|
28595
|
+
css: gR,
|
|
27718
28596
|
children: [
|
|
27719
28597
|
/* @__PURE__ */ z("span", {
|
|
27720
28598
|
className: "label",
|
|
@@ -27741,7 +28619,7 @@ var LI = x`
|
|
|
27741
28619
|
initialFocus: o ? 0 : -1,
|
|
27742
28620
|
children: /* @__PURE__ */ A("div", {
|
|
27743
28621
|
ref: p.setFloating,
|
|
27744
|
-
css:
|
|
28622
|
+
css: _R,
|
|
27745
28623
|
style: m,
|
|
27746
28624
|
..._(),
|
|
27747
28625
|
children: [o && /* @__PURE__ */ A("div", {
|
|
@@ -27778,8 +28656,8 @@ var LI = x`
|
|
|
27778
28656
|
}) })
|
|
27779
28657
|
]
|
|
27780
28658
|
});
|
|
27781
|
-
},
|
|
27782
|
-
css:
|
|
28659
|
+
}, yR = ({ label: e, children: t }) => /* @__PURE__ */ A("div", {
|
|
28660
|
+
css: gR,
|
|
27783
28661
|
children: [/* @__PURE__ */ z("span", {
|
|
27784
28662
|
className: "label",
|
|
27785
28663
|
children: e
|
|
@@ -27787,7 +28665,7 @@ var LI = x`
|
|
|
27787
28665
|
});
|
|
27788
28666
|
// src/router/search/index.tsx
|
|
27789
28667
|
j();
|
|
27790
|
-
var
|
|
28668
|
+
var bR = V_ === "movie" || V_ === "series", xR = iv("\n subscription SearchMediaPage($input: MediaPageInput!, $shortDescriptionInput: MediaShortDescriptionInput!) {\n mediaPage(input: $input) {\n nodes {\n ...MediaFragment\n score\n episodeCount\n titles {\n language\n title\n score\n }\n shortDescriptions(input: $shortDescriptionInput) {\n language\n shortDescription\n }\n covers {\n language\n url\n color\n }\n banners {\n language\n url\n }\n trailers {\n uri\n origin\n id\n url\n thumbnail\n }\n popularity\n genres\n tags\n averageScore\n status\n type\n season\n seasonYear\n nextAiringEpisode {\n episodeNumber\n airingAt\n }\n }\n }\n }\n"), SR = x`
|
|
27791
28669
|
padding: calc(var(--stub-header-height) + 3rem) 3rem 4rem;
|
|
27792
28670
|
min-height: 100vh;
|
|
27793
28671
|
|
|
@@ -27932,14 +28810,14 @@ var VI = V_ === "movie" || V_ === "series", HI = iv("\n subscription SearchMedi
|
|
|
27932
28810
|
.grid > .pending { width: 100%; height: auto; aspect-ratio: 5 / 7; }
|
|
27933
28811
|
.cards > .pending { height: 17rem; }
|
|
27934
28812
|
}
|
|
27935
|
-
`,
|
|
28813
|
+
`, CR = (() => {
|
|
27936
28814
|
let e = [];
|
|
27937
28815
|
for (let t = ad(); t >= id; t--) e.push({
|
|
27938
28816
|
value: String(t),
|
|
27939
28817
|
label: String(t)
|
|
27940
28818
|
});
|
|
27941
28819
|
return e;
|
|
27942
|
-
})(),
|
|
28820
|
+
})(), wR = (e) => ({
|
|
27943
28821
|
...e.query ? { search: e.query } : { sorts: [ri.PopularityDesc] },
|
|
27944
28822
|
...e.category ? { categories: [e.category] } : {},
|
|
27945
28823
|
...e.status ? { status: e.status } : {},
|
|
@@ -27948,7 +28826,7 @@ var VI = V_ === "movie" || V_ === "series", HI = iv("\n subscription SearchMedi
|
|
|
27948
28826
|
...e.formats.length ? { formats: e.formats } : {},
|
|
27949
28827
|
...e.genres.length ? { genres: e.genres } : {},
|
|
27950
28828
|
...e.tags.length ? { tags: e.tags } : {}
|
|
27951
|
-
}),
|
|
28829
|
+
}), TR = () => {
|
|
27952
28830
|
let e = Ou(), [, t] = Du(), n = G(() => sd(e), [e]), i = _d(n), a = (e) => t(dd({
|
|
27953
28831
|
...n,
|
|
27954
28832
|
...e
|
|
@@ -27964,8 +28842,8 @@ var VI = V_ === "movie" || V_ === "series", HI = iv("\n subscription SearchMedi
|
|
|
27964
28842
|
let d = l !== n.query, f = {
|
|
27965
28843
|
...n,
|
|
27966
28844
|
query: l
|
|
27967
|
-
}, p = G(() =>
|
|
27968
|
-
query:
|
|
28845
|
+
}, p = G(() => wR(f), [ld(f)]), [{ data: m }] = Br({
|
|
28846
|
+
query: xR,
|
|
27969
28847
|
variables: {
|
|
27970
28848
|
input: p,
|
|
27971
28849
|
shortDescriptionInput: { count: 1 }
|
|
@@ -28021,14 +28899,14 @@ var VI = V_ === "movie" || V_ === "series", HI = iv("\n subscription SearchMedi
|
|
|
28021
28899
|
},
|
|
28022
28900
|
card: {
|
|
28023
28901
|
className: "cards",
|
|
28024
|
-
item: (e) => /* @__PURE__ */ z(
|
|
28902
|
+
item: (e) => /* @__PURE__ */ z(uR, {
|
|
28025
28903
|
media: e,
|
|
28026
28904
|
to: Hu(Z.MEDIA, { uri: e.uri })
|
|
28027
28905
|
})
|
|
28028
28906
|
},
|
|
28029
28907
|
list: {
|
|
28030
28908
|
className: "rows",
|
|
28031
|
-
item: (e) => /* @__PURE__ */ z(
|
|
28909
|
+
item: (e) => /* @__PURE__ */ z(fR, {
|
|
28032
28910
|
media: e,
|
|
28033
28911
|
to: Hu(Z.MEDIA, { uri: e.uri })
|
|
28034
28912
|
})
|
|
@@ -28071,14 +28949,14 @@ var VI = V_ === "movie" || V_ === "series", HI = iv("\n subscription SearchMedi
|
|
|
28071
28949
|
}))
|
|
28072
28950
|
];
|
|
28073
28951
|
return /* @__PURE__ */ A("div", {
|
|
28074
|
-
css:
|
|
28952
|
+
css: SR,
|
|
28075
28953
|
children: [
|
|
28076
28954
|
/* @__PURE__ */ A("div", {
|
|
28077
28955
|
className: "heading-row",
|
|
28078
28956
|
children: [/* @__PURE__ */ z("div", {
|
|
28079
28957
|
className: "heading",
|
|
28080
28958
|
children: fd(n)
|
|
28081
|
-
}), /* @__PURE__ */ z(
|
|
28959
|
+
}), /* @__PURE__ */ z(hR, {
|
|
28082
28960
|
mode: h,
|
|
28083
28961
|
onChange: _
|
|
28084
28962
|
})]
|
|
@@ -28086,7 +28964,7 @@ var VI = V_ === "movie" || V_ === "series", HI = iv("\n subscription SearchMedi
|
|
|
28086
28964
|
/* @__PURE__ */ A("div", {
|
|
28087
28965
|
className: "filters",
|
|
28088
28966
|
children: [
|
|
28089
|
-
/* @__PURE__ */ z(
|
|
28967
|
+
/* @__PURE__ */ z(yR, {
|
|
28090
28968
|
label: "Search",
|
|
28091
28969
|
children: /* @__PURE__ */ A("div", {
|
|
28092
28970
|
className: "text-field",
|
|
@@ -28103,44 +28981,44 @@ var VI = V_ === "movie" || V_ === "series", HI = iv("\n subscription SearchMedi
|
|
|
28103
28981
|
})]
|
|
28104
28982
|
})
|
|
28105
28983
|
}),
|
|
28106
|
-
/* @__PURE__ */ z(
|
|
28107
|
-
label:
|
|
28984
|
+
/* @__PURE__ */ z(vR, {
|
|
28985
|
+
label: bR ? "Genres" : "Genres & Tags",
|
|
28108
28986
|
options: [...w, ...T],
|
|
28109
28987
|
selected: D,
|
|
28110
28988
|
onChange: k,
|
|
28111
28989
|
multiple: !0,
|
|
28112
28990
|
searchable: !0,
|
|
28113
|
-
allowCustom: !
|
|
28991
|
+
allowCustom: !bR
|
|
28114
28992
|
}),
|
|
28115
|
-
/* @__PURE__ */ z(
|
|
28993
|
+
/* @__PURE__ */ z(vR, {
|
|
28116
28994
|
label: "Year",
|
|
28117
|
-
options:
|
|
28995
|
+
options: CR,
|
|
28118
28996
|
selected: n.year ? [String(n.year)] : [],
|
|
28119
28997
|
onChange: (e) => a({ year: e.length ? Number(e[0]) : null }),
|
|
28120
28998
|
searchable: !0
|
|
28121
28999
|
}),
|
|
28122
|
-
|
|
28123
|
-
/* @__PURE__ */ z(
|
|
29000
|
+
bR ? void 0 : /* @__PURE__ */ A(U, { children: [
|
|
29001
|
+
/* @__PURE__ */ z(vR, {
|
|
28124
29002
|
label: "Season",
|
|
28125
29003
|
options: qu,
|
|
28126
29004
|
selected: n.season ? [n.season] : [],
|
|
28127
29005
|
onChange: (e) => a({ season: e[0] ?? null })
|
|
28128
29006
|
}),
|
|
28129
|
-
/* @__PURE__ */ z(
|
|
29007
|
+
/* @__PURE__ */ z(vR, {
|
|
28130
29008
|
label: "Format",
|
|
28131
29009
|
options: Gu,
|
|
28132
29010
|
selected: n.formats,
|
|
28133
29011
|
onChange: (e) => a({ formats: e }),
|
|
28134
29012
|
multiple: !0
|
|
28135
29013
|
}),
|
|
28136
|
-
/* @__PURE__ */ z(
|
|
29014
|
+
/* @__PURE__ */ z(vR, {
|
|
28137
29015
|
label: "Airing Status",
|
|
28138
29016
|
options: Ku,
|
|
28139
29017
|
selected: n.status ? [n.status] : [],
|
|
28140
29018
|
onChange: (e) => a({ status: e[0] ?? null })
|
|
28141
29019
|
})
|
|
28142
29020
|
] }),
|
|
28143
|
-
V_ === "stub" ? /* @__PURE__ */ z(
|
|
29021
|
+
V_ === "stub" ? /* @__PURE__ */ z(vR, {
|
|
28144
29022
|
label: "Category",
|
|
28145
29023
|
options: Ju,
|
|
28146
29024
|
selected: n.category ? [n.category] : [],
|
|
@@ -28186,7 +29064,7 @@ var VI = V_ === "movie" || V_ === "series", HI = iv("\n subscription SearchMedi
|
|
|
28186
29064
|
})
|
|
28187
29065
|
]
|
|
28188
29066
|
});
|
|
28189
|
-
},
|
|
29067
|
+
}, ER = x`
|
|
28190
29068
|
max-width: 72rem;
|
|
28191
29069
|
margin: 0 auto;
|
|
28192
29070
|
padding: calc(var(--stub-header-height) + 3rem) 3rem 6rem;
|
|
@@ -28225,10 +29103,10 @@ var VI = V_ === "movie" || V_ === "series", HI = iv("\n subscription SearchMedi
|
|
|
28225
29103
|
color: #ff8a3d;
|
|
28226
29104
|
}
|
|
28227
29105
|
}
|
|
28228
|
-
`,
|
|
28229
|
-
css:
|
|
29106
|
+
`, DR = ({ children: e }) => /* @__PURE__ */ z("div", {
|
|
29107
|
+
css: ER,
|
|
28230
29108
|
children: e
|
|
28231
|
-
}),
|
|
29109
|
+
}), OR = () => /* @__PURE__ */ A(DR, { children: [
|
|
28232
29110
|
/* @__PURE__ */ z("h1", { children: "Legal & Terms" }),
|
|
28233
29111
|
/* @__PURE__ */ z("div", {
|
|
28234
29112
|
className: "updated",
|
|
@@ -28263,12 +29141,12 @@ var VI = V_ === "movie" || V_ === "series", HI = iv("\n subscription SearchMedi
|
|
|
28263
29141
|
] }),
|
|
28264
29142
|
/* @__PURE__ */ z("h2", { children: "Liability" }),
|
|
28265
29143
|
/* @__PURE__ */ z("p", { children: "stub is provided without warranty of any kind. The maintainer is not liable for any damages arising from its use, or for the availability, accuracy, or legality of any third-party service it connects to." })
|
|
28266
|
-
] }),
|
|
29144
|
+
] }), kR = "This browser, in its storage for stub at this address", AR = "This tab, in its storage for stub", jR = [
|
|
28267
29145
|
{
|
|
28268
29146
|
id: "added-sources",
|
|
28269
29147
|
title: "Added sources",
|
|
28270
29148
|
what: "The source packages you added from npm, installed for stub through FKN. Signed in to FKN, the list is your account's, so every stub site you sign in on gets it. Sources added while signed out join the list of the next FKN account signed in on this browser.",
|
|
28271
|
-
where: `${
|
|
29149
|
+
where: `${kR}, and your FKN account's storage while you are signed in, encrypted in this browser before it is stored`,
|
|
28272
29150
|
lasts: "Until you remove them. The account's copy is deleted with your FKN account, and this browser's copy of it when you sign out",
|
|
28273
29151
|
keys: {
|
|
28274
29152
|
store: "local",
|
|
@@ -28279,7 +29157,7 @@ var VI = V_ === "movie" || V_ === "series", HI = iv("\n subscription SearchMedi
|
|
|
28279
29157
|
id: "settings",
|
|
28280
29158
|
title: "Settings",
|
|
28281
29159
|
what: "Your choices in Settings and around stub: sources turned off, hidden icons, the country you picked, autoplay, the search layout, the trackers you chose not to save to and the play order. Signed in to FKN, they are your account's, so every stub site and device you sign in on gets them. What you set while signed out joins the next FKN account signed in on this browser, unless that account already set it.",
|
|
28282
|
-
where: `${
|
|
29160
|
+
where: `${kR}, and your FKN account's storage while you are signed in, encrypted in this browser before it is stored`,
|
|
28283
29161
|
lasts: "Until you change them. The account's copy is deleted with your FKN account, and this browser's copy of it when you sign out",
|
|
28284
29162
|
keys: {
|
|
28285
29163
|
store: "local",
|
|
@@ -28290,7 +29168,7 @@ var VI = V_ === "movie" || V_ === "series", HI = iv("\n subscription SearchMedi
|
|
|
28290
29168
|
id: "connected-sites",
|
|
28291
29169
|
title: "Connected tracking sites",
|
|
28292
29170
|
what: "Which of AniList, MyAnimeList and Crunchyroll you signed in to through stub on this device, so stub reaches only those.",
|
|
28293
|
-
where:
|
|
29171
|
+
where: kR,
|
|
28294
29172
|
lasts: "Until you sign out of them, or clear this site's data in your browser",
|
|
28295
29173
|
keys: {
|
|
28296
29174
|
store: "local",
|
|
@@ -28301,7 +29179,7 @@ var VI = V_ === "movie" || V_ === "series", HI = iv("\n subscription SearchMedi
|
|
|
28301
29179
|
id: "site-status",
|
|
28302
29180
|
title: "Site sign-in states",
|
|
28303
29181
|
what: "Whether you were signed in to Crunchyroll, Prime Video, AniList and MyAnimeList when stub last learned it, and when. Never your name there.",
|
|
28304
|
-
where:
|
|
29182
|
+
where: kR,
|
|
28305
29183
|
lasts: "Until stub learns it again, or you clear this site's data in your browser",
|
|
28306
29184
|
keys: {
|
|
28307
29185
|
store: "local",
|
|
@@ -28312,7 +29190,7 @@ var VI = V_ === "movie" || V_ === "series", HI = iv("\n subscription SearchMedi
|
|
|
28312
29190
|
id: "party-name",
|
|
28313
29191
|
title: "Party name",
|
|
28314
29192
|
what: "The name you gave yourself in a watch party.",
|
|
28315
|
-
where:
|
|
29193
|
+
where: AR,
|
|
28316
29194
|
lasts: "Until you close the tab",
|
|
28317
29195
|
keys: {
|
|
28318
29196
|
store: "session",
|
|
@@ -28323,7 +29201,7 @@ var VI = V_ === "movie" || V_ === "series", HI = iv("\n subscription SearchMedi
|
|
|
28323
29201
|
id: "party-invite",
|
|
28324
29202
|
title: "Party you are in",
|
|
28325
29203
|
what: "The watch party this tab is in, so a reload rejoins it.",
|
|
28326
|
-
where:
|
|
29204
|
+
where: AR,
|
|
28327
29205
|
lasts: "Until you leave the party or close the tab",
|
|
28328
29206
|
keys: {
|
|
28329
29207
|
store: "session",
|
|
@@ -28355,7 +29233,7 @@ var VI = V_ === "movie" || V_ === "series", HI = iv("\n subscription SearchMedi
|
|
|
28355
29233
|
id: "player",
|
|
28356
29234
|
title: "Player volume",
|
|
28357
29235
|
what: "The volume you last left a player at, and whether it was muted, so the next episode or theme starts the same. Speed and captions are not kept.",
|
|
28358
|
-
where:
|
|
29236
|
+
where: kR,
|
|
28359
29237
|
lasts: "Until you clear this site's data in your browser",
|
|
28360
29238
|
keys: {
|
|
28361
29239
|
store: "local",
|
|
@@ -28366,7 +29244,7 @@ var VI = V_ === "movie" || V_ === "series", HI = iv("\n subscription SearchMedi
|
|
|
28366
29244
|
id: "positions",
|
|
28367
29245
|
title: "Where you stopped",
|
|
28368
29246
|
what: "The point you stopped at in each episode you have not finished, with the source it played on, its length and when you stopped, for your 200 most recent, and the source and time of the 200 you finished last. Signed in to FKN, they are your account's, so every stub site and device you sign in on resumes there. Those kept while signed out join the next FKN account signed in on this browser.",
|
|
28369
|
-
where: `${
|
|
29247
|
+
where: `${kR}, and your FKN account's storage while you are signed in, encrypted in this browser before it is stored`,
|
|
28370
29248
|
lasts: "Until 200 newer ones replace them. The account's copy is deleted with your FKN account, and this browser's copy of it when you sign out",
|
|
28371
29249
|
keys: {
|
|
28372
29250
|
store: "local",
|
|
@@ -28380,7 +29258,7 @@ var VI = V_ === "movie" || V_ === "series", HI = iv("\n subscription SearchMedi
|
|
|
28380
29258
|
where: "Memory, in this tab",
|
|
28381
29259
|
lasts: "Until you refresh or close the tab"
|
|
28382
29260
|
}
|
|
28383
|
-
],
|
|
29261
|
+
], MR = x`
|
|
28384
29262
|
display: flex;
|
|
28385
29263
|
flex-direction: column;
|
|
28386
29264
|
gap: 1rem;
|
|
@@ -28395,7 +29273,7 @@ var VI = V_ === "movie" || V_ === "series", HI = iv("\n subscription SearchMedi
|
|
|
28395
29273
|
|
|
28396
29274
|
strong { color: #fff; }
|
|
28397
29275
|
.facts { color: rgba(255, 255, 255, 0.55); }
|
|
28398
|
-
`,
|
|
29276
|
+
`, NR = (e) => e.endsWith(".") ? e : `${e}.`, PR = () => /* @__PURE__ */ A(DR, { children: [
|
|
28399
29277
|
/* @__PURE__ */ z("h1", { children: "Privacy" }),
|
|
28400
29278
|
/* @__PURE__ */ z("div", {
|
|
28401
29279
|
className: "updated",
|
|
@@ -28419,8 +29297,8 @@ var VI = V_ === "movie" || V_ === "series", HI = iv("\n subscription SearchMedi
|
|
|
28419
29297
|
". Clearing this site's data in your browser removes everything stub keeps in this browser."
|
|
28420
29298
|
] }),
|
|
28421
29299
|
/* @__PURE__ */ z("ul", {
|
|
28422
|
-
css:
|
|
28423
|
-
children:
|
|
29300
|
+
css: MR,
|
|
29301
|
+
children: jR.map((e) => /* @__PURE__ */ A("li", { children: [
|
|
28424
29302
|
/* @__PURE__ */ A("strong", { children: [e.title, "."] }),
|
|
28425
29303
|
" ",
|
|
28426
29304
|
e.what,
|
|
@@ -28429,9 +29307,9 @@ var VI = V_ === "movie" || V_ === "series", HI = iv("\n subscription SearchMedi
|
|
|
28429
29307
|
className: "facts",
|
|
28430
29308
|
children: [
|
|
28431
29309
|
"Where: ",
|
|
28432
|
-
|
|
29310
|
+
NR(e.where),
|
|
28433
29311
|
" How long: ",
|
|
28434
|
-
|
|
29312
|
+
NR(e.lasts)
|
|
28435
29313
|
]
|
|
28436
29314
|
})
|
|
28437
29315
|
] }, e.id))
|
|
@@ -28449,7 +29327,7 @@ var VI = V_ === "movie" || V_ === "series", HI = iv("\n subscription SearchMedi
|
|
|
28449
29327
|
/* @__PURE__ */ z("p", { children: "With the extension, stub uses your browser's own sessions for these sites and for Netflix. Those stay in your browser, and you sign in and out of them on the sites themselves." }),
|
|
28450
29328
|
/* @__PURE__ */ z("h2", { children: "Network requests & third parties" }),
|
|
28451
29329
|
/* @__PURE__ */ A("p", { children: [
|
|
28452
|
-
"To fetch titles, artwork, and streams, stub sends requests through the FKN platform proxy, which then reaches third-party services such as AniList, MyAnimeList, Crunchyroll, Prime Video
|
|
29330
|
+
"To fetch titles, artwork, and streams, stub sends requests through the FKN platform proxy, which then reaches third-party services such as AniList, MyAnimeList, Crunchyroll, Prime Video and JustWatch. The proxy requires no account. It uses your IP address to rate-limit requests, and it keeps a copy of each answer for a while, under a key made from the whole request (its address, headers and body), so only an identical request is answered from that copy. How the FKN platform handles that data is described in the",
|
|
28453
29331
|
" ",
|
|
28454
29332
|
/* @__PURE__ */ z("a", {
|
|
28455
29333
|
href: "https://fkn.app/privacy",
|
|
@@ -28459,6 +29337,7 @@ var VI = V_ === "movie" || V_ === "series", HI = iv("\n subscription SearchMedi
|
|
|
28459
29337
|
}),
|
|
28460
29338
|
". Each third-party service receives the requests made to it and applies its own privacy policy, especially when you sign in to one (for example Crunchyroll) to watch."
|
|
28461
29339
|
] }),
|
|
29340
|
+
/* @__PURE__ */ z("p", { children: "Netflix's catalogue is the exception: stub asks www.netflix.com from your browser, not through the proxy, because its answer depends on your country, so Netflix sees your IP address." }),
|
|
28462
29341
|
/* @__PURE__ */ A("p", { children: [
|
|
28463
29342
|
"JustWatch is asked for the streaming links of your country: the one you picked in",
|
|
28464
29343
|
" ",
|
|
@@ -28487,7 +29366,7 @@ var VI = V_ === "movie" || V_ === "series", HI = iv("\n subscription SearchMedi
|
|
|
28487
29366
|
] });
|
|
28488
29367
|
// src/router/settings/confirm.tsx
|
|
28489
29368
|
j();
|
|
28490
|
-
var
|
|
29369
|
+
var FR = ({ label: e, name: t = e, confirmLabel: n, busyLabel: i, question: a, onConfirm: o, home: s }) => {
|
|
28491
29370
|
let [c, l] = B(!1), [u, d] = B(!1), f = r(null), p = r(null), m = r(null), h = r(!1), g = r(!0), _ = ee(), v = () => {
|
|
28492
29371
|
let e = document.activeElement;
|
|
28493
29372
|
return !e || e === document.body || !!m.current?.contains(e);
|
|
@@ -28542,11 +29421,11 @@ var nL = ({ label: e, name: t = e, confirmLabel: n, busyLabel: i, question: a, o
|
|
|
28542
29421
|
};
|
|
28543
29422
|
// src/router/settings/country.tsx
|
|
28544
29423
|
j();
|
|
28545
|
-
var
|
|
29424
|
+
var IR = new Intl.DisplayNames(["en"], { type: "region" }), LR = (e) => IR.of(e) ?? e, RR = [...at].sort((e, t) => LR(e).localeCompare(LR(t))), zR = () => {
|
|
28546
29425
|
let [e, t] = B(Et);
|
|
28547
29426
|
return H(() => (t(Et()), Ze(() => t(Et()))), []), e;
|
|
28548
|
-
},
|
|
28549
|
-
let e =
|
|
29427
|
+
}, BR = () => (zR(), kt()), VR = () => {
|
|
29428
|
+
let e = zR(), t = ee();
|
|
28550
29429
|
return /* @__PURE__ */ A("div", {
|
|
28551
29430
|
className: "row",
|
|
28552
29431
|
"data-setting": "country",
|
|
@@ -28564,19 +29443,19 @@ var rL = new Intl.DisplayNames(["en"], { type: "region" }), iL = (e) => rL.of(e)
|
|
|
28564
29443
|
value: "",
|
|
28565
29444
|
children: [
|
|
28566
29445
|
"Automatic (",
|
|
28567
|
-
|
|
29446
|
+
LR(Ot()),
|
|
28568
29447
|
")"
|
|
28569
29448
|
]
|
|
28570
|
-
}),
|
|
29449
|
+
}), RR.map((e) => /* @__PURE__ */ z("option", {
|
|
28571
29450
|
value: e,
|
|
28572
|
-
children:
|
|
29451
|
+
children: LR(e)
|
|
28573
29452
|
}, e))]
|
|
28574
29453
|
})]
|
|
28575
29454
|
});
|
|
28576
29455
|
};
|
|
28577
29456
|
// src/router/settings/accounts.tsx
|
|
28578
29457
|
j();
|
|
28579
|
-
var
|
|
29458
|
+
var HR = (e) => e instanceof Error ? e.message : String(e), UR = (e, t) => {
|
|
28580
29459
|
switch (t) {
|
|
28581
29460
|
case "authed": return { text: `Signed in to ${e}.` };
|
|
28582
29461
|
case "closed": return { text: "The sign-in window closed." };
|
|
@@ -28586,13 +29465,13 @@ var lL = (e) => e instanceof Error ? e.message : String(e), uL = (e, t) => {
|
|
|
28586
29465
|
};
|
|
28587
29466
|
case "unsupported": return { text: `Connected to ${e}.` };
|
|
28588
29467
|
}
|
|
28589
|
-
},
|
|
29468
|
+
}, WR = {
|
|
28590
29469
|
"signed-in": "Signed in",
|
|
28591
29470
|
"signed-out": "Signed out"
|
|
28592
|
-
},
|
|
29471
|
+
}, GR = (e, t) => {
|
|
28593
29472
|
let [, n] = B(0);
|
|
28594
29473
|
return H(() => e.watch(t, () => n((e) => e + 1)), [e, t]), e.read(t);
|
|
28595
|
-
},
|
|
29474
|
+
}, KR = (e, t, n) => {
|
|
28596
29475
|
H(() => {
|
|
28597
29476
|
if (!t || !n) return;
|
|
28598
29477
|
let r = () => {
|
|
@@ -28604,7 +29483,7 @@ var lL = (e) => e instanceof Error ? e.message : String(e), uL = (e, t) => {
|
|
|
28604
29483
|
t,
|
|
28605
29484
|
n
|
|
28606
29485
|
]);
|
|
28607
|
-
},
|
|
29486
|
+
}, qR = ({ id: e, title: t, state: n, on: r, heading: i, children: a }) => /* @__PURE__ */ A("div", {
|
|
28608
29487
|
className: "row account",
|
|
28609
29488
|
"data-account": e,
|
|
28610
29489
|
children: [/* @__PURE__ */ A("div", {
|
|
@@ -28618,16 +29497,16 @@ var lL = (e) => e instanceof Error ? e.message : String(e), uL = (e, t) => {
|
|
|
28618
29497
|
children: n
|
|
28619
29498
|
}) : void 0]
|
|
28620
29499
|
}), a]
|
|
28621
|
-
}),
|
|
29500
|
+
}), JR = ({ note: e }) => /* @__PURE__ */ z("p", {
|
|
28622
29501
|
className: `note${e?.error ? " error" : ""}`,
|
|
28623
29502
|
role: "status",
|
|
28624
29503
|
children: e?.text
|
|
28625
|
-
}),
|
|
29504
|
+
}), YR = () => {
|
|
28626
29505
|
let e = r(!0);
|
|
28627
29506
|
return H(() => () => {
|
|
28628
29507
|
e.current = !1;
|
|
28629
29508
|
}, []), e;
|
|
28630
|
-
},
|
|
29509
|
+
}, XR = [{
|
|
28631
29510
|
site: "crunchyroll",
|
|
28632
29511
|
origin: "cr",
|
|
28633
29512
|
name: "Crunchyroll",
|
|
@@ -28641,16 +29520,16 @@ var lL = (e) => e instanceof Error ? e.message : String(e), uL = (e, t) => {
|
|
|
28641
29520
|
hostFor: Qy,
|
|
28642
29521
|
signsInOnCloud: tb,
|
|
28643
29522
|
checked: !1
|
|
28644
|
-
}].filter((e) => G_(e.origin)),
|
|
28645
|
-
let l = n(
|
|
28646
|
-
|
|
29523
|
+
}].filter((e) => G_(e.origin)), ZR = ({ site: e, name: t, hostFor: n, signsInOnCloud: i, checked: a, account: o, backend: s, status: c }) => {
|
|
29524
|
+
let l = n(BR()), [u, d] = B(!1), [f, p] = B(), m = YR(), h = r(null), g = GR(c, e);
|
|
29525
|
+
KR(c, s, a && s === "cloud" && g !== void 0);
|
|
28647
29526
|
let _ = () => {
|
|
28648
29527
|
let e = o.signIn();
|
|
28649
29528
|
d(!0), p(void 0), e.then((e) => {
|
|
28650
|
-
m.current && p(
|
|
29529
|
+
m.current && p(UR(t, e));
|
|
28651
29530
|
}).catch((e) => {
|
|
28652
29531
|
m.current && p({
|
|
28653
|
-
text:
|
|
29532
|
+
text: HR(e),
|
|
28654
29533
|
error: !0
|
|
28655
29534
|
});
|
|
28656
29535
|
}).finally(() => {
|
|
@@ -28660,19 +29539,19 @@ var lL = (e) => e instanceof Error ? e.message : String(e), uL = (e, t) => {
|
|
|
28660
29539
|
m.current && p({ text: "Signed out." });
|
|
28661
29540
|
}, (e) => {
|
|
28662
29541
|
m.current && p({
|
|
28663
|
-
text: `Could not sign out of ${t}: ${
|
|
29542
|
+
text: `Could not sign out of ${t}: ${HR(e)}. Try again.`,
|
|
28664
29543
|
error: !0
|
|
28665
29544
|
});
|
|
28666
29545
|
}), y = s === "cloud" && i(l), b = g?.state ?? (y ? "signed-out" : void 0);
|
|
28667
|
-
return /* @__PURE__ */ A(
|
|
29546
|
+
return /* @__PURE__ */ A(qR, {
|
|
28668
29547
|
id: e,
|
|
28669
29548
|
title: t,
|
|
28670
|
-
state: b &&
|
|
29549
|
+
state: b && WR[b],
|
|
28671
29550
|
on: b === "signed-in",
|
|
28672
29551
|
heading: h,
|
|
28673
29552
|
children: [y ? /* @__PURE__ */ z("div", {
|
|
28674
29553
|
className: "actions",
|
|
28675
|
-
children: b === "signed-in" ? /* @__PURE__ */ z(
|
|
29554
|
+
children: b === "signed-in" ? /* @__PURE__ */ z(FR, {
|
|
28676
29555
|
label: "Sign out",
|
|
28677
29556
|
name: `Sign out of ${t}`,
|
|
28678
29557
|
home: h,
|
|
@@ -28695,9 +29574,9 @@ var lL = (e) => e instanceof Error ? e.message : String(e), uL = (e, t) => {
|
|
|
28695
29574
|
rel: "noreferrer",
|
|
28696
29575
|
children: ["Open ", l]
|
|
28697
29576
|
})
|
|
28698
|
-
}) : /* @__PURE__ */ z("p", { children: "Loading..." }), /* @__PURE__ */ z(
|
|
29577
|
+
}) : /* @__PURE__ */ z("p", { children: "Loading..." }), /* @__PURE__ */ z(JR, { note: f })]
|
|
28699
29578
|
});
|
|
28700
|
-
},
|
|
29579
|
+
}, QR = [{
|
|
28701
29580
|
site: "anilist",
|
|
28702
29581
|
name: "AniList",
|
|
28703
29582
|
host: "anilist.co"
|
|
@@ -28705,8 +29584,8 @@ var lL = (e) => e instanceof Error ? e.message : String(e), uL = (e, t) => {
|
|
|
28705
29584
|
site: "mal",
|
|
28706
29585
|
name: "MyAnimeList",
|
|
28707
29586
|
host: "myanimelist.net"
|
|
28708
|
-
}].filter((e) => G_(e.site)),
|
|
28709
|
-
let [s, c] = B(() => a.isConnected(e)), [l, u] = B(!1), [d, f] = B(), p =
|
|
29587
|
+
}].filter((e) => G_(e.site)), $R = ({ site: e, name: t, host: n, backend: i, sites: a, status: o }) => {
|
|
29588
|
+
let [s, c] = B(() => a.isConnected(e)), [l, u] = B(!1), [d, f] = B(), p = YR(), m = r(null), h = GR(o, e), g = s && h?.state !== "signed-out";
|
|
28710
29589
|
H(() => (c(a.isConnected(e)), a.watch(e, () => {
|
|
28711
29590
|
p.current && c(a.isConnected(e));
|
|
28712
29591
|
})), [a, e]);
|
|
@@ -28715,10 +29594,10 @@ var lL = (e) => e instanceof Error ? e.message : String(e), uL = (e, t) => {
|
|
|
28715
29594
|
}, v = () => {
|
|
28716
29595
|
let n = a.signIn(e);
|
|
28717
29596
|
u(!0), f(void 0), n.then((e) => {
|
|
28718
|
-
p.current && f(
|
|
29597
|
+
p.current && f(UR(t, e));
|
|
28719
29598
|
}).catch((e) => {
|
|
28720
29599
|
p.current && f({
|
|
28721
|
-
text:
|
|
29600
|
+
text: HR(e),
|
|
28722
29601
|
error: !0
|
|
28723
29602
|
});
|
|
28724
29603
|
}).finally(() => {
|
|
@@ -28728,19 +29607,19 @@ var lL = (e) => e instanceof Error ? e.message : String(e), uL = (e, t) => {
|
|
|
28728
29607
|
p.current && f({ text: n === "cloud" ? "Signed out." : "Disconnected." }), _();
|
|
28729
29608
|
}, (e) => {
|
|
28730
29609
|
p.current && f({
|
|
28731
|
-
text: `Could not finish signing out of ${t}: ${
|
|
29610
|
+
text: `Could not finish signing out of ${t}: ${HR(e)}. Sign in and out again to retry.`,
|
|
28732
29611
|
error: !0
|
|
28733
29612
|
}), _();
|
|
28734
29613
|
});
|
|
28735
|
-
return /* @__PURE__ */ A(
|
|
29614
|
+
return /* @__PURE__ */ A(qR, {
|
|
28736
29615
|
id: e,
|
|
28737
29616
|
title: t,
|
|
28738
|
-
state: s ? h &&
|
|
29617
|
+
state: s ? h && WR[h.state] : "Not connected",
|
|
28739
29618
|
on: g,
|
|
28740
29619
|
heading: m,
|
|
28741
29620
|
children: [i ? /* @__PURE__ */ z("div", {
|
|
28742
29621
|
className: "actions",
|
|
28743
|
-
children: g ? /* @__PURE__ */ z(
|
|
29622
|
+
children: g ? /* @__PURE__ */ z(FR, {
|
|
28744
29623
|
label: i === "cloud" ? "Sign out" : "Disconnect",
|
|
28745
29624
|
name: i === "cloud" ? `Sign out of ${t}` : `Disconnect ${t}`,
|
|
28746
29625
|
home: m,
|
|
@@ -28760,9 +29639,9 @@ var lL = (e) => e instanceof Error ? e.message : String(e), uL = (e, t) => {
|
|
|
28760
29639
|
onClick: v,
|
|
28761
29640
|
children: l ? "Signing in..." : i === "cloud" ? "Sign in" : "Connect"
|
|
28762
29641
|
})
|
|
28763
|
-
}) : void 0, /* @__PURE__ */ z(
|
|
29642
|
+
}) : void 0, /* @__PURE__ */ z(JR, { note: d })]
|
|
28764
29643
|
});
|
|
28765
|
-
},
|
|
29644
|
+
}, ez = ({ backend: e }) => /* @__PURE__ */ z(qR, {
|
|
28766
29645
|
id: "netflix",
|
|
28767
29646
|
title: "Netflix",
|
|
28768
29647
|
children: e === "extension" ? /* @__PURE__ */ z("div", {
|
|
@@ -28775,25 +29654,25 @@ var lL = (e) => e instanceof Error ? e.message : String(e), uL = (e, t) => {
|
|
|
28775
29654
|
children: "Open netflix.com"
|
|
28776
29655
|
})
|
|
28777
29656
|
}) : /* @__PURE__ */ z("p", { children: "Needs the FKN browser extension." })
|
|
28778
|
-
}),
|
|
29657
|
+
}), tz = ({ backend: e, sites: t, status: n, ...r }) => /* @__PURE__ */ A("div", {
|
|
28779
29658
|
className: "rows",
|
|
28780
29659
|
children: [
|
|
28781
|
-
/* @__PURE__ */ z(
|
|
28782
|
-
|
|
29660
|
+
/* @__PURE__ */ z(VR, {}),
|
|
29661
|
+
XR.map((t) => /* @__PURE__ */ z(ZR, {
|
|
28783
29662
|
...t,
|
|
28784
29663
|
account: r[t.site],
|
|
28785
29664
|
backend: e,
|
|
28786
29665
|
status: n
|
|
28787
29666
|
}, t.site)),
|
|
28788
|
-
|
|
29667
|
+
QR.map((r) => /* @__PURE__ */ z($R, {
|
|
28789
29668
|
...r,
|
|
28790
29669
|
backend: e,
|
|
28791
29670
|
sites: t,
|
|
28792
29671
|
status: n
|
|
28793
29672
|
}, r.site)),
|
|
28794
|
-
/* @__PURE__ */ z(
|
|
29673
|
+
/* @__PURE__ */ z(ez, { backend: e })
|
|
28795
29674
|
]
|
|
28796
|
-
}),
|
|
29675
|
+
}), nz = [
|
|
28797
29676
|
{
|
|
28798
29677
|
origin: "mal",
|
|
28799
29678
|
name: "MyAnimeList",
|
|
@@ -28969,7 +29848,7 @@ var lL = (e) => e instanceof Error ? e.message : String(e), uL = (e, t) => {
|
|
|
28969
29848
|
name: "Watchmode",
|
|
28970
29849
|
url: "https://www.watchmode.com"
|
|
28971
29850
|
}
|
|
28972
|
-
],
|
|
29851
|
+
], rz = /* @__PURE__ */ new Set([
|
|
28973
29852
|
"anizip",
|
|
28974
29853
|
"jw",
|
|
28975
29854
|
"kitsu",
|
|
@@ -28979,13 +29858,13 @@ var lL = (e) => e instanceof Error ? e.message : String(e), uL = (e, t) => {
|
|
|
28979
29858
|
"trakt",
|
|
28980
29859
|
"tvmaze",
|
|
28981
29860
|
"watchmode"
|
|
28982
|
-
]),
|
|
29861
|
+
]), iz = nz.filter((e) => !rz.has(e.origin)).map((e) => e.origin === "omdb" ? {
|
|
28983
29862
|
...e,
|
|
28984
29863
|
origin: "imdb"
|
|
28985
29864
|
} : e);
|
|
28986
29865
|
// src/utils/use-plugin-statuses.ts
|
|
28987
29866
|
j();
|
|
28988
|
-
var
|
|
29867
|
+
var az = () => {
|
|
28989
29868
|
let [e, t] = B(La);
|
|
28990
29869
|
return H(() => {
|
|
28991
29870
|
let e = () => t(La());
|
|
@@ -28994,9 +29873,9 @@ var EL = () => {
|
|
|
28994
29873
|
};
|
|
28995
29874
|
// src/router/settings/playback.tsx
|
|
28996
29875
|
j();
|
|
28997
|
-
var
|
|
29876
|
+
var oz = "\n max-width: 52rem;\n border: 1px solid rgba(255, 255, 255, 0.1);\n border-radius: 0.8rem;\n background: rgba(255, 255, 255, 0.02);\n font-size: 1.5rem;\n font-weight: 600;\n color: #fff;\n", sz = x`
|
|
28998
29877
|
label.autoplay {
|
|
28999
|
-
${
|
|
29878
|
+
${oz}
|
|
29000
29879
|
display: flex;
|
|
29001
29880
|
align-items: center;
|
|
29002
29881
|
justify-content: space-between;
|
|
@@ -29028,7 +29907,7 @@ var DL = "\n max-width: 52rem;\n border: 1px solid rgba(255, 255, 255, 0.1);\n
|
|
|
29028
29907
|
}
|
|
29029
29908
|
|
|
29030
29909
|
ol.play-order li {
|
|
29031
|
-
${
|
|
29910
|
+
${oz}
|
|
29032
29911
|
display: flex;
|
|
29033
29912
|
align-items: center;
|
|
29034
29913
|
gap: 0.8rem;
|
|
@@ -29061,10 +29940,10 @@ var DL = "\n max-width: 52rem;\n border: 1px solid rgba(255, 255, 255, 0.1);\n
|
|
|
29061
29940
|
}
|
|
29062
29941
|
|
|
29063
29942
|
ol.play-order button[aria-disabled='true'] { opacity: 0.35; cursor: default; }
|
|
29064
|
-
`,
|
|
29943
|
+
`, cz = new Map(nz.filter((e) => co.includes(e.origin)).map((e) => [e.origin, e.name])), lz = () => {
|
|
29065
29944
|
let [e, t] = B(lo), [n, i] = B(we);
|
|
29066
29945
|
H(() => fo(() => t(lo())), []), H(() => Ee(() => i(we())), []);
|
|
29067
|
-
let a = new Map([...
|
|
29946
|
+
let a = new Map([...cz, ...az().flatMap((e) => e.state === "connected" ? e.sources?.map((e) => [e.origin, e.name]) ?? [] : [])]), o = po(e, [...a.keys()]), s = o.filter((e) => a.has(e) && !n.includes(e)), c = r(void 0);
|
|
29068
29947
|
b(() => {
|
|
29069
29948
|
c.current?.focus(), c.current = void 0;
|
|
29070
29949
|
});
|
|
@@ -29095,10 +29974,10 @@ var DL = "\n max-width: 52rem;\n border: 1px solid rgba(255, 255, 255, 0.1);\n
|
|
|
29095
29974
|
]
|
|
29096
29975
|
}, e))
|
|
29097
29976
|
});
|
|
29098
|
-
},
|
|
29977
|
+
}, uz = () => {
|
|
29099
29978
|
let [e, t] = B(xo);
|
|
29100
29979
|
return H(() => Co(() => t(xo())), []), /* @__PURE__ */ A("div", {
|
|
29101
|
-
css:
|
|
29980
|
+
css: sz,
|
|
29102
29981
|
children: [
|
|
29103
29982
|
/* @__PURE__ */ A("label", {
|
|
29104
29983
|
className: "autoplay",
|
|
@@ -29117,10 +29996,10 @@ var DL = "\n max-width: 52rem;\n border: 1px solid rgba(255, 255, 255, 0.1);\n
|
|
|
29117
29996
|
className: "part",
|
|
29118
29997
|
children: "Play order"
|
|
29119
29998
|
}),
|
|
29120
|
-
/* @__PURE__ */ z(
|
|
29999
|
+
/* @__PURE__ */ z(lz, {})
|
|
29121
30000
|
]
|
|
29122
30001
|
});
|
|
29123
|
-
},
|
|
30002
|
+
}, dz = [
|
|
29124
30003
|
{
|
|
29125
30004
|
id: "accounts",
|
|
29126
30005
|
title: "Accounts"
|
|
@@ -29133,10 +30012,10 @@ var DL = "\n max-width: 52rem;\n border: 1px solid rgba(255, 255, 255, 0.1);\n
|
|
|
29133
30012
|
id: "playback",
|
|
29134
30013
|
title: "Playback"
|
|
29135
30014
|
}
|
|
29136
|
-
],
|
|
30015
|
+
], fz = (e) => dz.find((t) => `#${t.id}` === e)?.id ?? "accounts";
|
|
29137
30016
|
// src/router/settings/sources.tsx
|
|
29138
30017
|
j();
|
|
29139
|
-
var
|
|
30018
|
+
var pz = x`
|
|
29140
30019
|
h3.part {
|
|
29141
30020
|
font-size: 1.3rem;
|
|
29142
30021
|
font-weight: 700;
|
|
@@ -29334,11 +30213,11 @@ var PL = x`
|
|
|
29334
30213
|
.group button:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.8); outline-offset: 0; }
|
|
29335
30214
|
|
|
29336
30215
|
.by-address .note { font-size: 1.35rem; overflow-wrap: anywhere; }
|
|
29337
|
-
`,
|
|
30216
|
+
`, mz = {
|
|
29338
30217
|
connected: "Connected",
|
|
29339
30218
|
connecting: "Connecting",
|
|
29340
30219
|
error: "Error"
|
|
29341
|
-
},
|
|
30220
|
+
}, hz = ({ plugin: e, onRemove: t }) => {
|
|
29342
30221
|
let n = e.sources ?? [], r = n.length ? n.map((e) => e.name).join(", ") : e.uri.replace(/^npm:/, "");
|
|
29343
30222
|
return /* @__PURE__ */ A("li", {
|
|
29344
30223
|
className: "row plugin",
|
|
@@ -29367,7 +30246,7 @@ var PL = x`
|
|
|
29367
30246
|
children: [/* @__PURE__ */ z("span", {
|
|
29368
30247
|
className: "dot",
|
|
29369
30248
|
"aria-hidden": "true"
|
|
29370
|
-
}),
|
|
30249
|
+
}), mz[e.state]]
|
|
29371
30250
|
}),
|
|
29372
30251
|
/* @__PURE__ */ z("button", {
|
|
29373
30252
|
type: "button",
|
|
@@ -29382,13 +30261,13 @@ var PL = x`
|
|
|
29382
30261
|
}) : void 0
|
|
29383
30262
|
]
|
|
29384
30263
|
});
|
|
29385
|
-
},
|
|
30264
|
+
}, gz = (e) => {
|
|
29386
30265
|
let { host: t, pathname: n } = new URL(e);
|
|
29387
30266
|
return t.replace(/^www\./, "") + n.replace(/\/$/, "");
|
|
29388
|
-
},
|
|
30267
|
+
}, _z = nz.filter((e) => G_(e.origin)), vz = () => {
|
|
29389
30268
|
let [e, t] = B(() => new Set(we()));
|
|
29390
30269
|
H(() => Ee(() => t(new Set(we()))), []);
|
|
29391
|
-
let n =
|
|
30270
|
+
let n = _z.filter((t) => e.has(t.origin)).length;
|
|
29392
30271
|
return /* @__PURE__ */ A(U, { children: [/* @__PURE__ */ A("div", {
|
|
29393
30272
|
className: "part-head",
|
|
29394
30273
|
children: [
|
|
@@ -29398,21 +30277,21 @@ var PL = x`
|
|
|
29398
30277
|
}),
|
|
29399
30278
|
/* @__PURE__ */ z("span", {
|
|
29400
30279
|
className: "count",
|
|
29401
|
-
children: n ? `${
|
|
30280
|
+
children: n ? `${_z.length - n} of ${_z.length} on` : `All ${_z.length} on`
|
|
29402
30281
|
}),
|
|
29403
30282
|
/* @__PURE__ */ z("button", {
|
|
29404
30283
|
type: "button",
|
|
29405
30284
|
className: "link-button",
|
|
29406
30285
|
"aria-disabled": !n || void 0,
|
|
29407
30286
|
onClick: () => {
|
|
29408
|
-
n && Ve(
|
|
30287
|
+
n && Ve(_z.map((e) => e.origin));
|
|
29409
30288
|
},
|
|
29410
30289
|
children: "Turn all on"
|
|
29411
30290
|
})
|
|
29412
30291
|
]
|
|
29413
30292
|
}), /* @__PURE__ */ z("ul", {
|
|
29414
30293
|
className: "built-in",
|
|
29415
|
-
children:
|
|
30294
|
+
children: _z.map((t) => {
|
|
29416
30295
|
let n = !e.has(t.origin);
|
|
29417
30296
|
return /* @__PURE__ */ z("li", {
|
|
29418
30297
|
"data-source": t.origin,
|
|
@@ -29425,7 +30304,7 @@ var PL = x`
|
|
|
29425
30304
|
children: t.name
|
|
29426
30305
|
}), /* @__PURE__ */ z("span", {
|
|
29427
30306
|
className: "host",
|
|
29428
|
-
children:
|
|
30307
|
+
children: gz(t.url)
|
|
29429
30308
|
})]
|
|
29430
30309
|
}), /* @__PURE__ */ z("input", {
|
|
29431
30310
|
type: "checkbox",
|
|
@@ -29439,14 +30318,14 @@ var PL = x`
|
|
|
29439
30318
|
}, t.origin);
|
|
29440
30319
|
})
|
|
29441
30320
|
})] });
|
|
29442
|
-
},
|
|
30321
|
+
}, yz = () => {
|
|
29443
30322
|
let e = oo();
|
|
29444
30323
|
return /* @__PURE__ */ A(U, { children: [/* @__PURE__ */ z("h3", {
|
|
29445
30324
|
className: "part",
|
|
29446
30325
|
children: "Icons"
|
|
29447
30326
|
}), /* @__PURE__ */ z("ul", {
|
|
29448
30327
|
className: "built-in",
|
|
29449
|
-
children:
|
|
30328
|
+
children: iz.map((t) => {
|
|
29450
30329
|
let n = !e.has(t.origin);
|
|
29451
30330
|
return /* @__PURE__ */ z("li", {
|
|
29452
30331
|
"data-icon": t.origin,
|
|
@@ -29470,20 +30349,20 @@ var PL = x`
|
|
|
29470
30349
|
}, t.origin);
|
|
29471
30350
|
})
|
|
29472
30351
|
})] });
|
|
29473
|
-
},
|
|
30352
|
+
}, bz = () => {
|
|
29474
30353
|
let [e, t] = B(La), [n, r] = B(""), [i, a] = B(!1), [o, s] = B(""), c = ee(), l = () => t(La());
|
|
29475
30354
|
return H(() => (l(), Ia(l)), []), /* @__PURE__ */ A("div", {
|
|
29476
|
-
css:
|
|
30355
|
+
css: pz,
|
|
29477
30356
|
children: [
|
|
29478
|
-
/* @__PURE__ */ z(
|
|
29479
|
-
/* @__PURE__ */ z(
|
|
30357
|
+
/* @__PURE__ */ z(vz, {}),
|
|
30358
|
+
/* @__PURE__ */ z(yz, {}),
|
|
29480
30359
|
/* @__PURE__ */ z("h3", {
|
|
29481
30360
|
className: "part",
|
|
29482
30361
|
children: "Added"
|
|
29483
30362
|
}),
|
|
29484
30363
|
e.length ? /* @__PURE__ */ z("ul", {
|
|
29485
30364
|
className: "rows",
|
|
29486
|
-
children: e.map((e) => /* @__PURE__ */ z(
|
|
30365
|
+
children: e.map((e) => /* @__PURE__ */ z(hz, {
|
|
29487
30366
|
plugin: e,
|
|
29488
30367
|
onRemove: () => {
|
|
29489
30368
|
eo(e.uri).then(l);
|
|
@@ -29551,7 +30430,7 @@ var PL = x`
|
|
|
29551
30430
|
})
|
|
29552
30431
|
]
|
|
29553
30432
|
});
|
|
29554
|
-
},
|
|
30433
|
+
}, xz = x`
|
|
29555
30434
|
min-width: 0;
|
|
29556
30435
|
|
|
29557
30436
|
& > h2 {
|
|
@@ -29688,11 +30567,11 @@ var PL = x`
|
|
|
29688
30567
|
}
|
|
29689
30568
|
|
|
29690
30569
|
.confirm p { color: rgba(255, 255, 255, 0.9); }
|
|
29691
|
-
`,
|
|
30570
|
+
`, Sz = {
|
|
29692
30571
|
url: `${vt}/auth/v1/token`,
|
|
29693
30572
|
authorization: `Basic ${btoa(`${Ke}:`)}`,
|
|
29694
30573
|
deviceType: "stub on FKN"
|
|
29695
|
-
},
|
|
30574
|
+
}, Cz = async ({ url: e, authorization: t, deviceType: n }, r = fetch, i) => {
|
|
29696
30575
|
let a = globalThis.location?.origin === new URL(e).origin ? globalThis.document?.cookie ?? "" : "", o = /(?:^|;\s*)device_id=([^;]+)/.exec(a)?.[1] ?? crypto.randomUUID(), s = await r(`${e}?_=${crypto.randomUUID()}`, {
|
|
29697
30576
|
method: "POST",
|
|
29698
30577
|
credentials: "include",
|
|
@@ -29714,12 +30593,12 @@ var PL = x`
|
|
|
29714
30593
|
body: null,
|
|
29715
30594
|
read: await i(c)
|
|
29716
30595
|
};
|
|
29717
|
-
},
|
|
30596
|
+
}, wz = (e) => (e?.context ?? []).some((e) => e.field === "etp_rt" && e.code === "auth.obtain_access_token.missing_required_field"), Tz = ({ status: e, body: t }) => {
|
|
29718
30597
|
if (e === 200) return "signed-in";
|
|
29719
|
-
if (e === 400 &&
|
|
30598
|
+
if (e === 400 && wz(t)) return "signed-out";
|
|
29720
30599
|
throw Error(`Crunchyroll answered ${e}`);
|
|
29721
|
-
},
|
|
29722
|
-
if (e === "extension") return
|
|
30600
|
+
}, Ez = "Check whether you are signed in to crunchyroll.com", Dz = async (e, { attach: t, mount: n, fetch: r, settle: i = () => new Promise((e) => setTimeout(e, 2e3)) }) => {
|
|
30601
|
+
if (e === "extension") return Tz(await Cz(Sz, r));
|
|
29723
30602
|
let { iframe: a, remove: o } = n();
|
|
29724
30603
|
try {
|
|
29725
30604
|
let e = await (await t({
|
|
@@ -29728,32 +30607,32 @@ var PL = x`
|
|
|
29728
30607
|
cookies: "persistent",
|
|
29729
30608
|
permissions: [{
|
|
29730
30609
|
category: "evaluation",
|
|
29731
|
-
reason:
|
|
30610
|
+
reason: Ez
|
|
29732
30611
|
}]
|
|
29733
|
-
})).evaluate(
|
|
29734
|
-
return e.status === 200 && await i(),
|
|
30612
|
+
})).evaluate(Cz, Sz);
|
|
30613
|
+
return e.status === 200 && await i(), Tz(e);
|
|
29735
30614
|
} finally {
|
|
29736
30615
|
o();
|
|
29737
30616
|
}
|
|
29738
|
-
},
|
|
30617
|
+
}, Oz = {
|
|
29739
30618
|
signIn: Pe,
|
|
29740
30619
|
signOut: Fe
|
|
29741
|
-
},
|
|
30620
|
+
}, kz = {
|
|
29742
30621
|
signIn: () => He({
|
|
29743
30622
|
url: rb(Qy(kt())),
|
|
29744
30623
|
domains: Xy,
|
|
29745
30624
|
isSignedIn: ib
|
|
29746
30625
|
}).then(Ce(Ue, "prime")),
|
|
29747
30626
|
signOut: () => Ge(Xy).then(() => Ue.record("prime", "signed-out"))
|
|
29748
|
-
},
|
|
30627
|
+
}, Az = {
|
|
29749
30628
|
isConnected: ct,
|
|
29750
30629
|
watch: Ae,
|
|
29751
30630
|
signIn: (e) => De[e](),
|
|
29752
30631
|
signOut: Le
|
|
29753
|
-
},
|
|
30632
|
+
}, jz = {
|
|
29754
30633
|
read: Ue.read,
|
|
29755
30634
|
watch: Ue.watch,
|
|
29756
|
-
refresh: ze(Ue, (e, t) =>
|
|
30635
|
+
refresh: ze(Ue, (e, t) => Dz(t, {
|
|
29757
30636
|
attach: mt,
|
|
29758
30637
|
mount: () => qe("Sign-in check"),
|
|
29759
30638
|
fetch: rt
|
|
@@ -29761,7 +30640,7 @@ var PL = x`
|
|
|
29761
30640
|
};
|
|
29762
30641
|
// src/router/settings/index.tsx
|
|
29763
30642
|
j();
|
|
29764
|
-
var
|
|
30643
|
+
var Mz = x`
|
|
29765
30644
|
display: grid;
|
|
29766
30645
|
grid-template-columns: 17rem minmax(0, 1fr);
|
|
29767
30646
|
column-gap: 4rem;
|
|
@@ -29822,8 +30701,8 @@ var $L = x`
|
|
|
29822
30701
|
|
|
29823
30702
|
.index a[aria-current='true'] { background: #fff; color: #000; border-color: #fff; }
|
|
29824
30703
|
}
|
|
29825
|
-
`,
|
|
29826
|
-
let [e, t] = B(), n =
|
|
30704
|
+
`, Nz = () => location.hash, Pz = () => {
|
|
30705
|
+
let [e, t] = B(), n = fz(au(Nz)), r = dz.find((e) => e.id === n);
|
|
29827
30706
|
return H(() => {
|
|
29828
30707
|
let e = !1;
|
|
29829
30708
|
return Me().then((n) => {
|
|
@@ -29832,13 +30711,13 @@ var $L = x`
|
|
|
29832
30711
|
e = !0;
|
|
29833
30712
|
};
|
|
29834
30713
|
}, []), /* @__PURE__ */ A("div", {
|
|
29835
|
-
css:
|
|
30714
|
+
css: Mz,
|
|
29836
30715
|
children: [
|
|
29837
30716
|
/* @__PURE__ */ z("h1", { children: "Settings" }),
|
|
29838
30717
|
/* @__PURE__ */ z("nav", {
|
|
29839
30718
|
className: "index",
|
|
29840
30719
|
"aria-label": "Settings categories",
|
|
29841
|
-
children:
|
|
30720
|
+
children: dz.map((e) => /* @__PURE__ */ z("a", {
|
|
29842
30721
|
href: `#${e.id}`,
|
|
29843
30722
|
"aria-current": r === e ? "true" : void 0,
|
|
29844
30723
|
onClick: Ah,
|
|
@@ -29846,36 +30725,36 @@ var $L = x`
|
|
|
29846
30725
|
}, e.id))
|
|
29847
30726
|
}),
|
|
29848
30727
|
/* @__PURE__ */ A("section", {
|
|
29849
|
-
css:
|
|
30728
|
+
css: xz,
|
|
29850
30729
|
"data-section": r.id,
|
|
29851
30730
|
"aria-labelledby": "settings-section-title",
|
|
29852
30731
|
children: [/* @__PURE__ */ z("h2", {
|
|
29853
30732
|
id: "settings-section-title",
|
|
29854
30733
|
children: r.title
|
|
29855
|
-
}), r.id === "accounts" ? /* @__PURE__ */ z(
|
|
30734
|
+
}), r.id === "accounts" ? /* @__PURE__ */ z(tz, {
|
|
29856
30735
|
backend: e,
|
|
29857
|
-
crunchyroll:
|
|
29858
|
-
prime:
|
|
29859
|
-
sites:
|
|
29860
|
-
status:
|
|
29861
|
-
}) : r.id === "sources" ? /* @__PURE__ */ z(
|
|
30736
|
+
crunchyroll: Oz,
|
|
30737
|
+
prime: kz,
|
|
30738
|
+
sites: Az,
|
|
30739
|
+
status: jz
|
|
30740
|
+
}) : r.id === "sources" ? /* @__PURE__ */ z(bz, {}) : /* @__PURE__ */ z(uz, {})]
|
|
29862
30741
|
})
|
|
29863
30742
|
]
|
|
29864
30743
|
});
|
|
29865
|
-
},
|
|
30744
|
+
}, Fz = (e) => typeof e != "number" || e === Infinity ? void 0 : e > 0 ? e : 0, Iz = (e) => typeof e == "number" && Number.isFinite(e), Lz = (e) => {
|
|
29866
30745
|
if (!e || typeof e != "object") return;
|
|
29867
30746
|
let { time: t, readyState: n, ranges: r } = e;
|
|
29868
|
-
if (!(!
|
|
30747
|
+
if (!(!Iz(t) || t < 0 || !Iz(n) || !Number.isInteger(n) || n < 0 || n > 4)) return Array.isArray(r) && r.every((e) => Array.isArray(e) && e.length === 2 && Iz(e[0]) && Iz(e[1]) && e[0] <= e[1]) ? {
|
|
29869
30748
|
time: t,
|
|
29870
30749
|
readyState: n,
|
|
29871
30750
|
ranges: r
|
|
29872
30751
|
} : void 0;
|
|
29873
|
-
},
|
|
30752
|
+
}, Rz = 1e3, zz = (e) => {
|
|
29874
30753
|
let { onPlayback: t, applyPlayback: n, buffer: r } = e;
|
|
29875
30754
|
if (!t || !n) return;
|
|
29876
30755
|
let i = /* @__PURE__ */ new Set(), a = !1, o = !1, s, c = (e) => {
|
|
29877
30756
|
if (a || !yg(e)) return;
|
|
29878
|
-
o = e.ended === !0, s =
|
|
30757
|
+
o = e.ended === !0, s = Fz(e.duration);
|
|
29879
30758
|
let { paused: t, time: n, rate: r, at: c } = e;
|
|
29880
30759
|
for (let e of i) e({
|
|
29881
30760
|
paused: t,
|
|
@@ -29895,7 +30774,7 @@ var $L = x`
|
|
|
29895
30774
|
}),
|
|
29896
30775
|
ended: () => o,
|
|
29897
30776
|
duration: () => s,
|
|
29898
|
-
...r ? { buffer: () => Promise.race([r().then(
|
|
30777
|
+
...r ? { buffer: () => Promise.race([r().then(Lz, () => void 0), new Promise((e) => setTimeout(e, Rz))]) } : {},
|
|
29899
30778
|
dispose: () => {
|
|
29900
30779
|
a = !0, i.clear();
|
|
29901
30780
|
}
|
|
@@ -29903,7 +30782,7 @@ var $L = x`
|
|
|
29903
30782
|
};
|
|
29904
30783
|
// src/components/plugin-player.tsx
|
|
29905
30784
|
j();
|
|
29906
|
-
var
|
|
30785
|
+
var Bz = x`
|
|
29907
30786
|
position: relative;
|
|
29908
30787
|
width: 100%;
|
|
29909
30788
|
flex: 1;
|
|
@@ -29929,7 +30808,7 @@ var sR = x`
|
|
|
29929
30808
|
color: rgba(255, 255, 255, 0.55);
|
|
29930
30809
|
font-size: 1.4rem;
|
|
29931
30810
|
}
|
|
29932
|
-
`,
|
|
30811
|
+
`, Vz = ({ pluginUri: e, release: t, onUnplayable: n, onPlayback: i }) => {
|
|
29933
30812
|
let a = r(null), [o, s] = B(!1), c = r({
|
|
29934
30813
|
onUnplayable: n,
|
|
29935
30814
|
onPlayback: i
|
|
@@ -29961,7 +30840,7 @@ var sR = x`
|
|
|
29961
30840
|
a.unmount(), i = void 0, c.current.onUnplayable();
|
|
29962
30841
|
return;
|
|
29963
30842
|
}
|
|
29964
|
-
o =
|
|
30843
|
+
o = zz(u), o && c.current.onPlayback?.(o);
|
|
29965
30844
|
} catch (t) {
|
|
29966
30845
|
if (r) return;
|
|
29967
30846
|
console.warn(`Source '${e}' could not start playback:`, t), s(!0);
|
|
@@ -29974,7 +30853,7 @@ var sR = x`
|
|
|
29974
30853
|
t.uri,
|
|
29975
30854
|
t.url
|
|
29976
30855
|
]), /* @__PURE__ */ A("div", {
|
|
29977
|
-
css:
|
|
30856
|
+
css: Bz,
|
|
29978
30857
|
children: [/* @__PURE__ */ z("iframe", {
|
|
29979
30858
|
ref: a,
|
|
29980
30859
|
sandbox: "allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox",
|
|
@@ -29984,13 +30863,13 @@ var sR = x`
|
|
|
29984
30863
|
children: "This source could not start playback."
|
|
29985
30864
|
}) : null]
|
|
29986
30865
|
});
|
|
29987
|
-
},
|
|
30866
|
+
}, Hz = (e, t, n) => {
|
|
29988
30867
|
let r = t === "party" ? e : t;
|
|
29989
30868
|
if (!(r === void 0 || n.busy || r === n.selected) && (r === null || n.ids.includes(r))) return r;
|
|
29990
|
-
},
|
|
30869
|
+
}, Uz = (e, t, n, r, i) => !n || r.selected === n.selected || r.selected === i ? e : r.selected === t ? "party" : r.selected;
|
|
29991
30870
|
// src/components/party-playback.tsx
|
|
29992
30871
|
j();
|
|
29993
|
-
var
|
|
30872
|
+
var Wz = () => location.pathname + location.search, Gz = () => navigator.userActivation?.isActive ?? !0, Kz = ({ link: e, tracks: t }) => {
|
|
29994
30873
|
let n = l_(), i = n.status === "active" ? n.role : void 0, a = Q.following(), o = r(void 0), s = r(void 0), c = r(0), l = r(void 0), u = r(0), d = r(void 0), f = r(/* @__PURE__ */ new Map()), p = r(void 0), m = r(void 0), h = r(/* @__PURE__ */ new Map()), g = () => m.current?.busy ?? !1, _ = (t, n) => {
|
|
29995
30874
|
if (!e || !Q.following() || g()) return;
|
|
29996
30875
|
let r = Date.now(), i = s.current && Dg(s.current, s.current.at, r), a = i && wg(i, t, r, n);
|
|
@@ -30008,7 +30887,7 @@ var dR = () => location.pathname + location.search, fR = () => navigator.userAct
|
|
|
30008
30887
|
if (f.current.set(t, e), e.next = {
|
|
30009
30888
|
t: "ask",
|
|
30010
30889
|
c: t,
|
|
30011
|
-
path:
|
|
30890
|
+
path: Wz(),
|
|
30012
30891
|
s: r
|
|
30013
30892
|
}, e.timer) continue;
|
|
30014
30893
|
let n = () => {
|
|
@@ -30034,7 +30913,7 @@ var dR = () => location.pathname + location.search, fR = () => navigator.userAct
|
|
|
30034
30913
|
if (!r || e.ended?.() || !Q.following() || g()) return;
|
|
30035
30914
|
let a = Date.now(), l = a < c.current, f = Dg(r.state, r.receivedAt, a), m = d.current !== void 0 && Math.abs(t.time - d.current) <= .5;
|
|
30036
30915
|
m && (d.current = void 0);
|
|
30037
|
-
let h = n &&
|
|
30916
|
+
let h = n && Gz() && (l || a >= u.current) ? Ag(n, t, l ? n : f).filter((e) => Q.may(e) && !(m && e === "seek")) : [];
|
|
30038
30917
|
h.length ? y(h, t) : l || _(f, r.measured);
|
|
30039
30918
|
});
|
|
30040
30919
|
return () => {
|
|
@@ -30047,7 +30926,7 @@ var dR = () => location.pathname + location.search, fR = () => navigator.userAct
|
|
|
30047
30926
|
}, [a]), H(() => {
|
|
30048
30927
|
if (i !== "guest") return;
|
|
30049
30928
|
let t, n = !0, r = async () => {
|
|
30050
|
-
let r =
|
|
30929
|
+
let r = Wz(), i = Q.hostPath();
|
|
30051
30930
|
if (i === void 0) return;
|
|
30052
30931
|
if (i !== r) {
|
|
30053
30932
|
Q.setStatus({ s: "away" });
|
|
@@ -30087,7 +30966,7 @@ var dR = () => location.pathname + location.search, fR = () => navigator.userAct
|
|
|
30087
30966
|
let b = () => {
|
|
30088
30967
|
let e = m.current;
|
|
30089
30968
|
if (t && e && i) for (let n of D_) {
|
|
30090
|
-
let r = e[n], i = r &&
|
|
30969
|
+
let r = e[n], i = r && Hz(Q.partyTrack(n), Q.mine(n), {
|
|
30091
30970
|
...r,
|
|
30092
30971
|
busy: e.busy
|
|
30093
30972
|
});
|
|
@@ -30117,7 +30996,7 @@ var dR = () => location.pathname + location.search, fR = () => navigator.userAct
|
|
|
30117
30996
|
for (let n of D_) {
|
|
30118
30997
|
let r = e[n];
|
|
30119
30998
|
if (!r) continue;
|
|
30120
|
-
let i =
|
|
30999
|
+
let i = Uz(Q.mine(n), Q.partyTrack(n), t?.[n], r, h.current.get(n));
|
|
30121
31000
|
i !== Q.mine(n) && Q.setMine(n, i);
|
|
30122
31001
|
}
|
|
30123
31002
|
Q.setPlayerTracks(e), t?.busy && !e.busy && x(), b();
|
|
@@ -30131,7 +31010,7 @@ var dR = () => location.pathname + location.search, fR = () => navigator.userAct
|
|
|
30131
31010
|
e
|
|
30132
31011
|
]), H(b), u_((t) => {
|
|
30133
31012
|
if (i === "host") {
|
|
30134
|
-
if (t.t !== "ask" || !("s" in t) || t.path !==
|
|
31013
|
+
if (t.t !== "ask" || !("s" in t) || t.path !== Wz() || !e || !s.current) return;
|
|
30135
31014
|
let n = jg(s.current, t, Date.now());
|
|
30136
31015
|
if (!n) return;
|
|
30137
31016
|
g() && (p.current = n), e.apply(n, !0);
|
|
@@ -30139,7 +31018,7 @@ var dR = () => location.pathname + location.search, fR = () => navigator.userAct
|
|
|
30139
31018
|
}
|
|
30140
31019
|
if (i !== "guest") return;
|
|
30141
31020
|
let n = t.t === "playback" || t.t === "state" ? t.s : void 0;
|
|
30142
|
-
if (!n || Q.hostPath() !==
|
|
31021
|
+
if (!n || Q.hostPath() !== Wz()) return;
|
|
30143
31022
|
let r = Q.hostClock(), a = r ? {
|
|
30144
31023
|
...n,
|
|
30145
31024
|
at: Vg(n.at, r.offset)
|
|
@@ -30150,29 +31029,29 @@ var dR = () => location.pathname + location.search, fR = () => navigator.userAct
|
|
|
30150
31029
|
measured: !!r
|
|
30151
31030
|
}, Date.now() >= c.current && _(a, !!r);
|
|
30152
31031
|
}), null;
|
|
30153
|
-
},
|
|
31032
|
+
}, qz = [
|
|
30154
31033
|
"play",
|
|
30155
31034
|
"pause",
|
|
30156
31035
|
"seeked",
|
|
30157
31036
|
"ratechange",
|
|
30158
31037
|
"ended"
|
|
30159
|
-
],
|
|
31038
|
+
], Jz = (e) => ({
|
|
30160
31039
|
paused: e.paused,
|
|
30161
31040
|
time: e.currentTime,
|
|
30162
31041
|
rate: e.playbackRate ?? 1,
|
|
30163
31042
|
at: Date.now()
|
|
30164
|
-
}),
|
|
31043
|
+
}), Yz = (e, t = () => {}) => {
|
|
30165
31044
|
let n = /* @__PURE__ */ new Set(), r = () => {
|
|
30166
|
-
let t =
|
|
31045
|
+
let t = Jz(e);
|
|
30167
31046
|
for (let e of n) e(t);
|
|
30168
31047
|
};
|
|
30169
|
-
for (let t of
|
|
31048
|
+
for (let t of qz) e.addEventListener(t, r);
|
|
30170
31049
|
let i = setInterval(() => {
|
|
30171
31050
|
e.paused || r();
|
|
30172
31051
|
}, xg);
|
|
30173
31052
|
return {
|
|
30174
31053
|
apply: (t, n) => {
|
|
30175
|
-
let r = wg(
|
|
31054
|
+
let r = wg(Jz(e), t, Date.now(), n);
|
|
30176
31055
|
r.seek !== void 0 && (e.currentTime = r.seek), r.rate !== void 0 && (e.playbackRate = r.rate), r.pause && e.pause(), r.play && (e.autoplay ? e.autoplay() : e.play()).catch(() => {});
|
|
30177
31056
|
},
|
|
30178
31057
|
onReport: (e) => (n.add(e), queueMicrotask(r), () => {
|
|
@@ -30190,54 +31069,54 @@ var dR = () => location.pathname + location.search, fR = () => navigator.userAct
|
|
|
30190
31069
|
};
|
|
30191
31070
|
},
|
|
30192
31071
|
dispose: () => {
|
|
30193
|
-
for (let t of
|
|
31072
|
+
for (let t of qz) e.removeEventListener(t, r);
|
|
30194
31073
|
clearInterval(i), n.clear(), t();
|
|
30195
31074
|
}
|
|
30196
31075
|
};
|
|
30197
|
-
},
|
|
31076
|
+
}, Xz = (e) => {
|
|
30198
31077
|
let t = jt(e, { origin: location.origin });
|
|
30199
|
-
return
|
|
30200
|
-
},
|
|
30201
|
-
let t =
|
|
30202
|
-
return t?.length ? { [
|
|
30203
|
-
},
|
|
31078
|
+
return Yz(t, () => t.destroy());
|
|
31079
|
+
}, Zz = "stub:embed-relay-tried", Qz = "triedRelays", $z = /* @__PURE__ */ new Map(), eB = (e) => e.split("-")[0], tB = (e) => {
|
|
31080
|
+
let t = $z.get(eB(e));
|
|
31081
|
+
return t?.length ? { [Qz]: t.join(",") } : {};
|
|
31082
|
+
}, nB = (e, t, n = window) => {
|
|
30204
31083
|
let r = (r) => {
|
|
30205
31084
|
if (r.source !== e.contentWindow || r.origin !== n.location.origin) return;
|
|
30206
31085
|
let { type: i, relay: a } = r.data ?? {};
|
|
30207
|
-
if (i !==
|
|
30208
|
-
let o =
|
|
30209
|
-
s.includes(a) ||
|
|
31086
|
+
if (i !== Zz || typeof a != "string") return;
|
|
31087
|
+
let o = eB(t), s = $z.get(o) ?? [];
|
|
31088
|
+
s.includes(a) || $z.set(o, [...s, a]);
|
|
30210
31089
|
};
|
|
30211
31090
|
return n.addEventListener("message", r), () => n.removeEventListener("message", r);
|
|
30212
|
-
},
|
|
31091
|
+
}, rB = "stub:embed-unplayable", iB = (e, t, n = window) => {
|
|
30213
31092
|
let r = (r) => {
|
|
30214
|
-
r.source === e.contentWindow && r.origin === n.location.origin && r.data?.type ===
|
|
31093
|
+
r.source === e.contentWindow && r.origin === n.location.origin && r.data?.type === rB && t();
|
|
30215
31094
|
};
|
|
30216
31095
|
return n.addEventListener("message", r), () => n.removeEventListener("message", r);
|
|
30217
|
-
},
|
|
31096
|
+
}, aB = "stub:embed-title", oB = "stub:embed-title?", sB = (e, t, n = window) => {
|
|
30218
31097
|
let r = () => e.contentWindow?.postMessage({
|
|
30219
|
-
type:
|
|
31098
|
+
type: aB,
|
|
30220
31099
|
title: t
|
|
30221
31100
|
}, n.location.origin), i = (t) => {
|
|
30222
|
-
t.source === e.contentWindow && t.origin === n.location.origin && t.data?.type ===
|
|
31101
|
+
t.source === e.contentWindow && t.origin === n.location.origin && t.data?.type === oB && r();
|
|
30223
31102
|
};
|
|
30224
31103
|
return n.addEventListener("message", i), r(), () => n.removeEventListener("message", i);
|
|
30225
|
-
},
|
|
31104
|
+
}, cB = (e, t) => t ? `${e == null ? "" : `E${e} - `}${t}` : e == null ? void 0 : `Episode ${e}`;
|
|
30226
31105
|
// src/router/watch/auto-pick.ts
|
|
30227
31106
|
j();
|
|
30228
|
-
var
|
|
31107
|
+
var lB = (e, t) => !!(e.url && t.builtIn(e.origin, e.url)) || !!(t.selfPlaying && (e.embedUrl || t.selfPlaying(e.origin))), uB = (e, t) => {
|
|
30229
31108
|
let n = (e) => {
|
|
30230
31109
|
let n = t.order.indexOf(e);
|
|
30231
31110
|
return n < 0 ? t.order.length : n;
|
|
30232
31111
|
}, r;
|
|
30233
|
-
for (let i of e)
|
|
31112
|
+
for (let i of e) lB(i, t) && (!r || n(i.origin) < n(r.origin)) && (r = i);
|
|
30234
31113
|
if (!r) return;
|
|
30235
31114
|
let i = t.order.slice(0, n(r.origin)).every((e) => !t.possible(e) || t.settled(e));
|
|
30236
31115
|
return {
|
|
30237
31116
|
uri: r.uri,
|
|
30238
31117
|
now: i
|
|
30239
31118
|
};
|
|
30240
|
-
},
|
|
31119
|
+
}, dB = (e, { mediaUri: t, episodeUri: n, sourceUri: i, guest: a, cannotPlay: o }, s) => {
|
|
30241
31120
|
let c = r(void 0);
|
|
30242
31121
|
H(() => {
|
|
30243
31122
|
i && i !== c.current && (c.current = void 0);
|
|
@@ -30254,7 +31133,7 @@ var AR = (e, t) => !!(e.url && t.builtIn(e.origin, e.url)) || !!(t.selfPlaying &
|
|
|
30254
31133
|
t,
|
|
30255
31134
|
n
|
|
30256
31135
|
]);
|
|
30257
|
-
},
|
|
31136
|
+
}, fB = (e, t) => {
|
|
30258
31137
|
if (Ey(e)) return;
|
|
30259
31138
|
let { handles: n, seasons: r, relations: i, type: a } = e, o = r?.findIndex((e) => n.some((t) => t.node.uri === e.uri)) ?? -1;
|
|
30260
31139
|
if (r && o >= 0) {
|
|
@@ -30263,7 +31142,7 @@ var AR = (e, t) => !!(e.url && t.builtIn(e.origin, e.url)) || !!(t.selfPlaying &
|
|
|
30263
31142
|
}
|
|
30264
31143
|
let s = t > 0 ? "SEQUEL" : "PREQUEL", c = i?.filter((e) => e.relation === s && Hx(e.format)) ?? [];
|
|
30265
31144
|
return (c.find((e) => e.format === a) ?? c[0])?.node.uri;
|
|
30266
|
-
},
|
|
31145
|
+
}, pB = ([e, t, n], r, i = /* @__PURE__ */ new Date()) => {
|
|
30267
31146
|
let a = [
|
|
30268
31147
|
e,
|
|
30269
31148
|
t,
|
|
@@ -30276,10 +31155,10 @@ var AR = (e, t) => !!(e.url && t.builtIn(e.origin, e.url)) || !!(t.selfPlaying &
|
|
|
30276
31155
|
previous: c > 0 ? o[c - 1] : void 0,
|
|
30277
31156
|
next: c >= 0 && !s[c + 1] ? o[c + 1] : void 0
|
|
30278
31157
|
};
|
|
30279
|
-
},
|
|
31158
|
+
}, mB = (e, t, n) => t ? uB(e.filter((e) => e.origin === t), n)?.uri : void 0;
|
|
30280
31159
|
// src/router/watch/resume.ts
|
|
30281
31160
|
j();
|
|
30282
|
-
var
|
|
31161
|
+
var hB = (e, t, n, i) => {
|
|
30283
31162
|
let a = r({
|
|
30284
31163
|
uris: n,
|
|
30285
31164
|
guest: i
|
|
@@ -30318,9 +31197,9 @@ var IR = (e, t, n, i) => {
|
|
|
30318
31197
|
};
|
|
30319
31198
|
// src/router/watch/up-next.tsx
|
|
30320
31199
|
j();
|
|
30321
|
-
var
|
|
31200
|
+
var gB = 5e3, _B = be`
|
|
30322
31201
|
to { background-size: 100% 100%; }
|
|
30323
|
-
`,
|
|
31202
|
+
`, vB = x`
|
|
30324
31203
|
position: absolute;
|
|
30325
31204
|
right: 2.4rem;
|
|
30326
31205
|
bottom: 8rem;
|
|
@@ -30348,9 +31227,9 @@ var LR = 5e3, RR = be`
|
|
|
30348
31227
|
}
|
|
30349
31228
|
|
|
30350
31229
|
.up-next.counting {
|
|
30351
|
-
animation: ${
|
|
31230
|
+
animation: ${_B} ${gB}ms linear forwards;
|
|
30352
31231
|
}
|
|
30353
|
-
`,
|
|
31232
|
+
`, yB = ({ link: e, next: t }) => {
|
|
30354
31233
|
let [, n] = Du(), [r, i] = B(), a = t?.href;
|
|
30355
31234
|
return H(() => {
|
|
30356
31235
|
if (i(void 0), !e || !a) return;
|
|
@@ -30360,10 +31239,10 @@ var LR = 5e3, RR = be`
|
|
|
30360
31239
|
});
|
|
30361
31240
|
}, [e, !!a]), H(() => {
|
|
30362
31241
|
if (r !== "counting" || !a) return;
|
|
30363
|
-
let e = setTimeout(() => n(a),
|
|
31242
|
+
let e = setTimeout(() => n(a), gB);
|
|
30364
31243
|
return () => clearTimeout(e);
|
|
30365
31244
|
}, [r, a]), !r || !a ? null : /* @__PURE__ */ A("div", {
|
|
30366
|
-
css:
|
|
31245
|
+
css: vB,
|
|
30367
31246
|
children: [/* @__PURE__ */ z("button", {
|
|
30368
31247
|
type: "button",
|
|
30369
31248
|
className: `up-next ${r}`,
|
|
@@ -30380,14 +31259,14 @@ var LR = 5e3, RR = be`
|
|
|
30380
31259
|
};
|
|
30381
31260
|
// src/router/watch/index.tsx
|
|
30382
31261
|
j();
|
|
30383
|
-
var
|
|
31262
|
+
var bB = (e) => (e ?? []).filter((e) => e.relation === "SAME_AS").map((e) => e.node), xB = { nf: (e) => `https://www.netflix.com/watch/${e}` }, SB = iv("\n subscription GetWatchMedia($input: MediaInput!) {\n media(input: $input) {\n _id\n uri\n origin\n id\n titles {\n title\n }\n covers {\n url\n }\n type\n categories\n episodeCount\n status\n settled\n nextAiringEpisode {\n episodeNumber\n airingAt\n }\n seasons {\n number\n uri\n }\n relations {\n relation\n format\n node {\n _id\n uri\n }\n }\n episodes {\n ...EpisodeFragment\n episodeNumber\n releaseDate\n titles {\n title\n }\n thumbnails {\n url\n }\n handles {\n relation\n node {\n _id\n uri\n origin\n id\n url\n embedUrl\n mediaUri\n episodeNumber\n releaseDate\n titles {\n title\n }\n shortDescriptions {\n language\n shortDescription\n }\n }\n }\n }\n handles {\n relation\n node {\n ...MediaFragment\n handles {\n relation\n node {\n ...MediaFragment\n episodes {\n ...EpisodeFragment\n }\n }\n }\n episodes {\n ...EpisodeFragment\n episodeNumber\n }\n }\n }\n }\n }\n"), CB = iv("\n subscription GetWatchOrigins($input: OriginPageInput!) {\n originPage(input: $input) {\n nodes {\n id\n url\n name\n icon\n color\n isApiOnly\n }\n }\n }\n"), wB = (e) => {
|
|
30384
31263
|
let [t] = Br({
|
|
30385
|
-
query:
|
|
31264
|
+
query: SB,
|
|
30386
31265
|
variables: { input: { uri: e ?? "" } },
|
|
30387
31266
|
pause: !e
|
|
30388
31267
|
});
|
|
30389
31268
|
return cy(t, e);
|
|
30390
|
-
},
|
|
31269
|
+
}, TB = x`
|
|
30391
31270
|
display: flex;
|
|
30392
31271
|
flex-direction: column;
|
|
30393
31272
|
height: 100vh;
|
|
@@ -30507,33 +31386,33 @@ var VR = (e) => (e ?? []).filter((e) => e.relation === "SAME_AS").map((e) => e.n
|
|
|
30507
31386
|
}
|
|
30508
31387
|
}
|
|
30509
31388
|
}
|
|
30510
|
-
`,
|
|
31389
|
+
`, EB = () => {
|
|
30511
31390
|
let e = Tu(), t = {
|
|
30512
31391
|
...e,
|
|
30513
31392
|
mediaUri: na(e.mediaUri),
|
|
30514
31393
|
episodeUri: ta(e.episodeUri),
|
|
30515
31394
|
sourceUri: ta(e.sourceUri)
|
|
30516
31395
|
}, [, n] = Du(), i = r(null), [a, o] = B(), [s, c] = B(void 0), [l] = Br({
|
|
30517
|
-
query:
|
|
31396
|
+
query: SB,
|
|
30518
31397
|
variables: { input: { uri: t.mediaUri } },
|
|
30519
31398
|
pause: !t.mediaUri
|
|
30520
31399
|
}), u = l.data?.media, d = G(() => u?.episodes?.find((e) => e.uri && t.episodeUri ? sa($i(e.uri), $i(t.episodeUri)) : !1), [u?.episodes, t.episodeUri]), f = t.sourceUri, p = a?.sourceUri === f ? a?.link : void 0, m = G(() => {
|
|
30521
|
-
let e =
|
|
31400
|
+
let e = bB(d?.handles);
|
|
30522
31401
|
if (!f || d?.handles?.some((e) => e.node.uri === f)) return e;
|
|
30523
|
-
let { origin: t, id: n } = Ui(f), r =
|
|
31402
|
+
let { origin: t, id: n } = Ui(f), r = xB[t]?.(n);
|
|
30524
31403
|
return r ? [...e, {
|
|
30525
31404
|
uri: f,
|
|
30526
31405
|
origin: t,
|
|
30527
31406
|
url: r
|
|
30528
31407
|
}] : e;
|
|
30529
31408
|
}, [d?.handles, f]), h = G(() => d?.uri ? aa(d.uri)?.handleUrisValues : void 0, [d?.uri]), g = G(() => h && [...new Set([...h, ...m].map((e) => e.origin))], [h, m]), [{ data: _ }] = Br({
|
|
30530
|
-
query:
|
|
31409
|
+
query: CB,
|
|
30531
31410
|
variables: { input: {
|
|
30532
31411
|
ids: g,
|
|
30533
31412
|
filters: [oi.IsNotApiOnly]
|
|
30534
31413
|
} },
|
|
30535
31414
|
pause: !g
|
|
30536
|
-
}), v = u?.titles?.at(0)?.title, y = d?.titles?.at(0)?.title, b = d?.episodeNumber, S =
|
|
31415
|
+
}), v = u?.titles?.at(0)?.title, y = d?.titles?.at(0)?.title, b = d?.episodeNumber, S = cB(b, y), [C, w] = B();
|
|
30537
31416
|
H(() => {
|
|
30538
31417
|
let e = !1;
|
|
30539
31418
|
return Me().then((t) => {
|
|
@@ -30542,7 +31421,7 @@ var VR = (e) => (e ?? []).filter((e) => e.relation === "SAME_AS").map((e) => e.n
|
|
|
30542
31421
|
e = !0;
|
|
30543
31422
|
};
|
|
30544
31423
|
}, []);
|
|
30545
|
-
let T = G(() => f ?
|
|
31424
|
+
let T = G(() => f ? tB(f) : {}, [f]), E = G(() => {
|
|
30546
31425
|
if (!f) return;
|
|
30547
31426
|
let e = m.find((e) => e.uri === f);
|
|
30548
31427
|
if (!e) return;
|
|
@@ -30564,7 +31443,7 @@ var VR = (e) => (e ?? []).filter((e) => e.relation === "SAME_AS").map((e) => e.n
|
|
|
30564
31443
|
t.episodeUri,
|
|
30565
31444
|
T,
|
|
30566
31445
|
C
|
|
30567
|
-
]), D =
|
|
31446
|
+
]), D = az(), O = D.flatMap((e) => e.state === "connected" ? e.sources?.map((e) => e.origin) ?? [] : []), k = O.join(","), [j, M] = B({}), [N, P] = B(), [F, ee] = B();
|
|
30568
31447
|
H(() => {
|
|
30569
31448
|
let e = !1, t = k ? k.split(",") : [], n = async (e) => Object.fromEntries((await Promise.all(t.map(async (t) => [t, (await e(t))?.pluginUri]))).filter((e) => !!e[1]));
|
|
30570
31449
|
return Promise.all([n(xt), n(Qe)]).then(([t, n]) => {
|
|
@@ -30599,7 +31478,7 @@ var VR = (e) => (e ?? []).filter((e) => e.relation === "SAME_AS").map((e) => e.n
|
|
|
30599
31478
|
H(() => {
|
|
30600
31479
|
let e = i.current;
|
|
30601
31480
|
if (R || !E || !e) return;
|
|
30602
|
-
let t =
|
|
31481
|
+
let t = Xz(e), n = O_(e);
|
|
30603
31482
|
return o({
|
|
30604
31483
|
link: t,
|
|
30605
31484
|
sourceUri: f
|
|
@@ -30608,14 +31487,14 @@ var VR = (e) => (e ?? []).filter((e) => e.relation === "SAME_AS").map((e) => e.n
|
|
|
30608
31487
|
};
|
|
30609
31488
|
}, [R, E]), H(() => {
|
|
30610
31489
|
let e = i.current;
|
|
30611
|
-
if (!R && E && e && S) return
|
|
31490
|
+
if (!R && E && e && S) return sB(e, S);
|
|
30612
31491
|
}, [
|
|
30613
31492
|
R,
|
|
30614
31493
|
E,
|
|
30615
31494
|
S
|
|
30616
31495
|
]), H(() => {
|
|
30617
31496
|
let e = i.current;
|
|
30618
|
-
if (!R && E && e && f) return
|
|
31497
|
+
if (!R && E && e && f) return nB(e, f);
|
|
30619
31498
|
}, [
|
|
30620
31499
|
R,
|
|
30621
31500
|
E,
|
|
@@ -30624,7 +31503,7 @@ var VR = (e) => (e ?? []).filter((e) => e.relation === "SAME_AS").map((e) => e.n
|
|
|
30624
31503
|
let [V, ne] = B([]);
|
|
30625
31504
|
H(() => {
|
|
30626
31505
|
let e = i.current;
|
|
30627
|
-
if (!R && E && e && f) return
|
|
31506
|
+
if (!R && E && e && f) return iB(e, () => ne((e) => [...e, f]));
|
|
30628
31507
|
}, [
|
|
30629
31508
|
R,
|
|
30630
31509
|
E,
|
|
@@ -30662,7 +31541,7 @@ var VR = (e) => (e ?? []).filter((e) => e.relation === "SAME_AS").map((e) => e.n
|
|
|
30662
31541
|
j,
|
|
30663
31542
|
N,
|
|
30664
31543
|
C
|
|
30665
|
-
]), ie = m.find((e) => e.uri === f), oe = C === "cloud" && !E && ie?.url && cb(ie.origin, ie.url, "extension") ?
|
|
31544
|
+
]), ie = m.find((e) => e.uri === f), oe = C === "cloud" && !E && ie?.url && cb(ie.origin, ie.url, "extension") ? nz.find((e) => e.origin === ie.origin)?.name : void 0;
|
|
30666
31545
|
H(() => {
|
|
30667
31546
|
oe && f && !Oe() && ne((e) => [...e, f]);
|
|
30668
31547
|
}, [oe, f]);
|
|
@@ -30676,12 +31555,12 @@ var VR = (e) => (e ?? []).filter((e) => e.relation === "SAME_AS").map((e) => e.n
|
|
|
30676
31555
|
possible: (e) => ab.has(e) ? (U || !ob.has(e)) && !we().includes(e) : ue || O.includes(e),
|
|
30677
31556
|
settled: (e) => ce && (ab.has(e) || se.current.has(e) && se.current.get(e) !== u)
|
|
30678
31557
|
}, fe = de.status === "joining" || de.status === "active" && de.role === "guest", pe = !!(f && V.includes(f));
|
|
30679
|
-
|
|
31558
|
+
dB(uB(m.filter((e) => !V.includes(e.uri)), W), {
|
|
30680
31559
|
...t,
|
|
30681
31560
|
guest: fe,
|
|
30682
31561
|
cannotPlay: pe
|
|
30683
|
-
}, n),
|
|
30684
|
-
let me = u?.episodes ?? [], he = d ? me.indexOf(d) : -1, ge =
|
|
31562
|
+
}, n), hB(p, f, m.map((e) => e.uri), fe);
|
|
31563
|
+
let me = u?.episodes ?? [], he = d ? me.indexOf(d) : -1, ge = wB(u && he === 0 ? fB(u, -1) : void 0), _e = wB(u && he >= 0 && he === me.length - 1 ? fB(u, 1) : void 0), ve = Yy(), { previous: ye, next: be } = pB([
|
|
30685
31564
|
ge,
|
|
30686
31565
|
u ? {
|
|
30687
31566
|
...u,
|
|
@@ -30692,18 +31571,18 @@ var VR = (e) => (e ?? []).filter((e) => e.relation === "SAME_AS").map((e) => e.n
|
|
|
30692
31571
|
href: Hu(Z.WATCH, {
|
|
30693
31572
|
mediaUri: e.mediaUri,
|
|
30694
31573
|
episodeUri: e.episode.uri,
|
|
30695
|
-
sourceUri:
|
|
31574
|
+
sourceUri: mB(bB(e.episode.handles), xe, W)
|
|
30696
31575
|
}),
|
|
30697
|
-
title:
|
|
30698
|
-
} : void 0, Ce = Se(ye), Te = Se(be), Ee = !fe && be &&
|
|
31576
|
+
title: cB(e.episode.episodeNumber, e.episode.titles?.at(0)?.title)
|
|
31577
|
+
} : void 0, Ce = Se(ye), Te = Se(be), Ee = !fe && be && uB(bB(be.episode.handles), W) ? Te : void 0;
|
|
30699
31578
|
return /* @__PURE__ */ z("div", {
|
|
30700
|
-
css:
|
|
31579
|
+
css: TB,
|
|
30701
31580
|
children: /* @__PURE__ */ A("div", {
|
|
30702
31581
|
className: "watch-container",
|
|
30703
31582
|
children: [
|
|
30704
31583
|
R && I || E ? /* @__PURE__ */ A("div", {
|
|
30705
31584
|
className: "player-container",
|
|
30706
|
-
children: [R && I ? /* @__PURE__ */ z(
|
|
31585
|
+
children: [R && I ? /* @__PURE__ */ z(Vz, {
|
|
30707
31586
|
pluginUri: I.pluginUri,
|
|
30708
31587
|
release: I.release,
|
|
30709
31588
|
onUnplayable: () => te(f),
|
|
@@ -30723,7 +31602,7 @@ var VR = (e) => (e ?? []).filter((e) => e.relation === "SAME_AS").map((e) => e.n
|
|
|
30723
31602
|
flex: 1;
|
|
30724
31603
|
min-height: 0;
|
|
30725
31604
|
`
|
|
30726
|
-
}, E), /* @__PURE__ */ z(
|
|
31605
|
+
}, E), /* @__PURE__ */ z(yB, {
|
|
30727
31606
|
link: p,
|
|
30728
31607
|
next: Ee
|
|
30729
31608
|
})]
|
|
@@ -30739,7 +31618,7 @@ var VR = (e) => (e ?? []).filter((e) => e.relation === "SAME_AS").map((e) => e.n
|
|
|
30739
31618
|
children: ["Install the FKN extension to play ", oe]
|
|
30740
31619
|
})
|
|
30741
31620
|
}) : void 0,
|
|
30742
|
-
/* @__PURE__ */ z(
|
|
31621
|
+
/* @__PURE__ */ z(Kz, {
|
|
30743
31622
|
link: p,
|
|
30744
31623
|
tracks: s
|
|
30745
31624
|
}),
|
|
@@ -30801,7 +31680,7 @@ var VR = (e) => (e ?? []).filter((e) => e.relation === "SAME_AS").map((e) => e.n
|
|
|
30801
31680
|
};
|
|
30802
31681
|
// src/router/party/index.tsx
|
|
30803
31682
|
j();
|
|
30804
|
-
var
|
|
31683
|
+
var DB = x`
|
|
30805
31684
|
padding: calc(var(--stub-header-height) + 3rem) 3rem 4rem;
|
|
30806
31685
|
min-height: 100vh;
|
|
30807
31686
|
max-width: 72rem;
|
|
@@ -30915,14 +31794,14 @@ var JR = x`
|
|
|
30915
31794
|
}
|
|
30916
31795
|
|
|
30917
31796
|
.field input:focus { border-color: rgba(255, 255, 255, 0.4); }
|
|
30918
|
-
`,
|
|
31797
|
+
`, OB = {
|
|
30919
31798
|
"not-found": "That party has ended.",
|
|
30920
31799
|
"bad-key": "The invite link is not valid.",
|
|
30921
31800
|
invalid: "The invite link is broken.",
|
|
30922
31801
|
full: "The party is full.",
|
|
30923
31802
|
blocked: "You cannot join this party.",
|
|
30924
31803
|
unavailable: "Parties are not available right now. Is FKN connected?"
|
|
30925
|
-
},
|
|
31804
|
+
}, kB = () => {
|
|
30926
31805
|
let e = l_(), [t] = B(() => r_(location.hash, location.origin)), [n] = B(() => location.hash.length > 1 && !r_(location.hash, location.origin)), [r, i] = B([]), [a, o] = B(() => Q.name() ?? ""), [s, c] = B(!1), l = e.status === "active";
|
|
30927
31806
|
H(() => {
|
|
30928
31807
|
if (!t) return;
|
|
@@ -30954,7 +31833,7 @@ var JR = x`
|
|
|
30954
31833
|
} catch {}
|
|
30955
31834
|
};
|
|
30956
31835
|
return /* @__PURE__ */ A("div", {
|
|
30957
|
-
css:
|
|
31836
|
+
css: DB,
|
|
30958
31837
|
children: [
|
|
30959
31838
|
/* @__PURE__ */ z("div", {
|
|
30960
31839
|
className: "heading",
|
|
@@ -30962,7 +31841,7 @@ var JR = x`
|
|
|
30962
31841
|
}),
|
|
30963
31842
|
/* @__PURE__ */ A("div", {
|
|
30964
31843
|
className: "status",
|
|
30965
|
-
children: [n ? /* @__PURE__ */ z(U, { children: "This invite link is broken. Ask the host for a new one." }) : !t && !l && e.status !== "joining" ? e.status === "failed" ? /* @__PURE__ */ A(U, { children: ["Could not join. ",
|
|
31844
|
+
children: [n ? /* @__PURE__ */ z(U, { children: "This invite link is broken. Ask the host for a new one." }) : !t && !l && e.status !== "joining" ? e.status === "failed" ? /* @__PURE__ */ A(U, { children: ["Could not join. ", OB[e.code] ?? "Something went wrong."] }) : e.status === "ended" ? /* @__PURE__ */ z(U, { children: "The party ended." }) : /* @__PURE__ */ z(U, { children: "You are not in a party. Start one from the header." }) : !t && e.status === "joining" ? /* @__PURE__ */ z(U, { children: "Joining the party…" }) : t && !l ? e.status === "joining" ? /* @__PURE__ */ z(U, { children: "Joining the party…" }) : e.status === "failed" ? /* @__PURE__ */ A(U, { children: ["Could not join. ", OB[e.code] ?? "Something went wrong."] }) : e.status === "ended" ? /* @__PURE__ */ z(U, { children: "The party ended." }) : /* @__PURE__ */ z(U, { children: "This invite link is broken. Ask the host for a new one." }) : l && e.role === "guest" && t ? /* @__PURE__ */ z(U, { children: "You are in. Waiting for the host…" }) : l && e.role === "guest" ? /* @__PURE__ */ A(U, { children: ["You are following the host. ", /* @__PURE__ */ z(Fu, {
|
|
30966
31845
|
to: Hu(Z.HOME),
|
|
30967
31846
|
children: "Go home"
|
|
30968
31847
|
})] }) : /* @__PURE__ */ z(U, { children: "You are hosting." }), !t && !l && e.status !== "joining" && (e.status === "failed" || e.status === "ended") ? /* @__PURE__ */ A(U, { children: [" ", /* @__PURE__ */ z("button", {
|
|
@@ -31084,11 +31963,11 @@ var JR = x`
|
|
|
31084
31963
|
] })
|
|
31085
31964
|
]
|
|
31086
31965
|
});
|
|
31087
|
-
},
|
|
31966
|
+
}, AB = (e) => e.owned ? "owned" : "placeholder", jB = (e) => {
|
|
31088
31967
|
let t = [], n = /* @__PURE__ */ new Set();
|
|
31089
31968
|
for (let r of e.members ?? []) r.uri && !n.has(r.uri) && (n.add(r.uri), t.push({
|
|
31090
31969
|
uri: r.uri,
|
|
31091
|
-
kind:
|
|
31970
|
+
kind: AB(r),
|
|
31092
31971
|
origin: r.origin,
|
|
31093
31972
|
scope: r.scope,
|
|
31094
31973
|
title: r.title,
|
|
@@ -31108,8 +31987,8 @@ var JR = x`
|
|
|
31108
31987
|
member: null
|
|
31109
31988
|
}));
|
|
31110
31989
|
return t;
|
|
31111
|
-
},
|
|
31112
|
-
let t =
|
|
31990
|
+
}, MB = (e) => {
|
|
31991
|
+
let t = jB(e), n = Xx({
|
|
31113
31992
|
nodes: t.map((e) => ({
|
|
31114
31993
|
uri: e.uri,
|
|
31115
31994
|
titles: [{ title: e.title ?? e.uri }],
|
|
@@ -31130,10 +32009,10 @@ var JR = x`
|
|
|
31130
32009
|
columns: n.columns,
|
|
31131
32010
|
rows: n.rows
|
|
31132
32011
|
};
|
|
31133
|
-
},
|
|
32012
|
+
}, NB = (e, t) => [e, t].sort().join(" "), PB = (e) => {
|
|
31134
32013
|
let t = /* @__PURE__ */ new Map();
|
|
31135
32014
|
for (let n of e) {
|
|
31136
|
-
let e =
|
|
32015
|
+
let e = NB(n.fromUri, n.toUri), r = t.get(e) ?? [];
|
|
31137
32016
|
r.push(n.key), t.set(e, r);
|
|
31138
32017
|
}
|
|
31139
32018
|
let n = /* @__PURE__ */ new Map();
|
|
@@ -31142,7 +32021,7 @@ var JR = x`
|
|
|
31142
32021
|
lanes: e.length
|
|
31143
32022
|
}));
|
|
31144
32023
|
return n;
|
|
31145
|
-
},
|
|
32024
|
+
}, FB = (e) => {
|
|
31146
32025
|
let t = /* @__PURE__ */ new Map();
|
|
31147
32026
|
for (let n of e.links ?? []) t.set(n.key, {
|
|
31148
32027
|
kind: "link",
|
|
@@ -31165,14 +32044,14 @@ var JR = x`
|
|
|
31165
32044
|
row: n
|
|
31166
32045
|
});
|
|
31167
32046
|
return t;
|
|
31168
|
-
},
|
|
32047
|
+
}, IB = /^[0-9a-f]{64}$/, LB = (e, t) => (t ?? []).map((t) => {
|
|
31169
32048
|
let n = e.get(t) ?? null;
|
|
31170
32049
|
return {
|
|
31171
32050
|
key: t,
|
|
31172
32051
|
ref: n,
|
|
31173
|
-
gap: n ? null :
|
|
32052
|
+
gap: n ? null : IB.test(t) ? "missing" : "not-an-edge-key"
|
|
31174
32053
|
};
|
|
31175
|
-
}),
|
|
32054
|
+
}), RB = (e, t) => (e.answers ?? []).find((e) => e.seq === t) ?? null, zB = (e) => e === null ? null : typeof e == "string" ? e : typeof e == "number" || typeof e == "boolean" ? String(e) : JSON.stringify(e), BB = (e) => {
|
|
31176
32055
|
if (e == null || e === "") return { kind: "absent" };
|
|
31177
32056
|
let t;
|
|
31178
32057
|
try {
|
|
@@ -31193,16 +32072,16 @@ var JR = x`
|
|
|
31193
32072
|
kind: "fields",
|
|
31194
32073
|
fields: Object.entries(t).map(([e, t]) => ({
|
|
31195
32074
|
field: e,
|
|
31196
|
-
value:
|
|
32075
|
+
value: zB(t)
|
|
31197
32076
|
}))
|
|
31198
32077
|
} : {
|
|
31199
32078
|
kind: "fields",
|
|
31200
32079
|
fields: [{
|
|
31201
32080
|
field: Array.isArray(t) ? "values" : "value",
|
|
31202
|
-
value:
|
|
32081
|
+
value: zB(t)
|
|
31203
32082
|
}]
|
|
31204
32083
|
};
|
|
31205
|
-
},
|
|
32084
|
+
}, VB = (e) => e === "not-enabled" ? "The graph engine is switched off for this page, so there is nothing to read. Reloading with ?graph=1 turns it on, and this page then asks the sources about the uri itself. The only way a page gets here now is ?store=legacy, which pins it to the old store; dropping that flag puts the whole app back on the graph, which is the default." : e === "graph-empty" ? "The engine is on and the graph is empty. A graph is built inside one tab and never outlives it, so a link opened cold always starts here: what fills it is a page asking the sources, which is what this page does with the uri it was given." : e === "no-row" ? "No media row exists for that uri, so there is nothing to cluster. Either no source has answered for it in this tab yet, or the uri is not one any source recognises." : e === "no-cluster" ? "A media row exists for that uri, but no cluster holds it yet: either a pass has not run since it arrived, or it is a placeholder no pass will ever cluster on its own." : "That uri reached no cluster, and the bundle carries no reason for it.", HB = (e) => e === "active", UB = async (e, t, n = {}, r = {}) => {
|
|
31206
32085
|
let i = r.settleMs ?? 2e4, a = await e("http://d/graphql", {
|
|
31207
32086
|
method: "POST",
|
|
31208
32087
|
headers: {
|
|
@@ -31250,7 +32129,7 @@ var JR = x`
|
|
|
31250
32129
|
payloads: u,
|
|
31251
32130
|
last: d
|
|
31252
32131
|
};
|
|
31253
|
-
},
|
|
32132
|
+
}, WB = "\n subscription TraceWarm($input: MediaInput!) {\n media(input: $input) {\n _id\n uri\n origin\n id\n url\n episodeCount\n startDate\n status\n titles {\n language\n title\n score\n }\n handles {\n relation\n node {\n _id\n uri\n origin\n id\n url\n }\n }\n episodes {\n uri\n origin\n episodeNumber\n releaseDate\n }\n }\n }\n", GB = (e, t) => {
|
|
31254
32133
|
let n = e?.data?.media;
|
|
31255
32134
|
return {
|
|
31256
32135
|
payloads: t,
|
|
@@ -31258,7 +32137,7 @@ var JR = x`
|
|
|
31258
32137
|
handles: Array.isArray(n?.handles) ? n.handles.length : 0,
|
|
31259
32138
|
episodes: Array.isArray(n?.episodes) ? n.episodes.length : 0
|
|
31260
32139
|
};
|
|
31261
|
-
},
|
|
32140
|
+
}, KB = async (e, { onProgress: t, settleMs: n = 25e3 } = {}) => {
|
|
31262
32141
|
let r = {
|
|
31263
32142
|
payloads: 0,
|
|
31264
32143
|
uri: null,
|
|
@@ -31267,39 +32146,39 @@ var JR = x`
|
|
|
31267
32146
|
};
|
|
31268
32147
|
if (!e) return r;
|
|
31269
32148
|
try {
|
|
31270
|
-
let i = await import("./assets/lib-worker-
|
|
32149
|
+
let i = await import("./assets/lib-worker-C98YLtbN.js");
|
|
31271
32150
|
if (typeof i.handleRequest != "function") return r;
|
|
31272
|
-
await
|
|
32151
|
+
await UB(i.handleRequest, WB, { input: { uri: e } }, {
|
|
31273
32152
|
settleMs: n,
|
|
31274
32153
|
onPayload: (e, n) => {
|
|
31275
|
-
r =
|
|
32154
|
+
r = GB(e, n), t?.(r);
|
|
31276
32155
|
}
|
|
31277
32156
|
});
|
|
31278
32157
|
} catch (e) {
|
|
31279
32158
|
console.error(Error("graph trace: the warm could not ask the sources", { cause: e }));
|
|
31280
32159
|
}
|
|
31281
32160
|
return r;
|
|
31282
|
-
},
|
|
32161
|
+
}, qB = x`
|
|
31283
32162
|
&.nothing {
|
|
31284
32163
|
color: rgb(250, 204, 21);
|
|
31285
32164
|
font-style: italic;
|
|
31286
32165
|
}
|
|
31287
|
-
`,
|
|
31288
|
-
css:
|
|
32166
|
+
`, JB = ({ value: e }) => e === null ? /* @__PURE__ */ z("span", {
|
|
32167
|
+
css: qB,
|
|
31289
32168
|
className: "nothing",
|
|
31290
32169
|
children: "null"
|
|
31291
32170
|
}) : e === void 0 ? /* @__PURE__ */ z("span", {
|
|
31292
|
-
css:
|
|
32171
|
+
css: qB,
|
|
31293
32172
|
className: "nothing",
|
|
31294
32173
|
children: "absent"
|
|
31295
32174
|
}) : e === "" ? /* @__PURE__ */ z("span", {
|
|
31296
|
-
css:
|
|
32175
|
+
css: qB,
|
|
31297
32176
|
className: "nothing",
|
|
31298
32177
|
children: "empty"
|
|
31299
32178
|
}) : /* @__PURE__ */ z("span", {
|
|
31300
|
-
css:
|
|
32179
|
+
css: qB,
|
|
31301
32180
|
children: String(e)
|
|
31302
|
-
}),
|
|
32181
|
+
}), YB = x`
|
|
31303
32182
|
.fields {
|
|
31304
32183
|
width: 100%;
|
|
31305
32184
|
border-collapse: collapse;
|
|
@@ -31332,14 +32211,14 @@ var JR = x`
|
|
|
31332
32211
|
white-space: pre-wrap;
|
|
31333
32212
|
overflow-wrap: anywhere;
|
|
31334
32213
|
}
|
|
31335
|
-
`,
|
|
31336
|
-
css:
|
|
32214
|
+
`, XB = ({ blob: e, label: t }) => /* @__PURE__ */ A("div", {
|
|
32215
|
+
css: YB,
|
|
31337
32216
|
className: "blob",
|
|
31338
32217
|
"data-blob": t,
|
|
31339
32218
|
children: [
|
|
31340
32219
|
e.kind === "absent" && /* @__PURE__ */ z("div", {
|
|
31341
32220
|
className: "absent",
|
|
31342
|
-
children: /* @__PURE__ */ z(
|
|
32221
|
+
children: /* @__PURE__ */ z(JB, { value: null })
|
|
31343
32222
|
}),
|
|
31344
32223
|
e.kind === "raw" && /* @__PURE__ */ A(U, { children: [/* @__PURE__ */ z("div", {
|
|
31345
32224
|
className: "note",
|
|
@@ -31355,26 +32234,26 @@ var JR = x`
|
|
|
31355
32234
|
children: [/* @__PURE__ */ z("th", {
|
|
31356
32235
|
scope: "row",
|
|
31357
32236
|
children: e.field
|
|
31358
|
-
}), /* @__PURE__ */ z("td", { children: /* @__PURE__ */ z(
|
|
32237
|
+
}), /* @__PURE__ */ z("td", { children: /* @__PURE__ */ z(JB, { value: e.value }) })]
|
|
31359
32238
|
}, e.field)) })
|
|
31360
32239
|
})
|
|
31361
32240
|
]
|
|
31362
|
-
}),
|
|
32241
|
+
}), ZB = 88, QB = 20, $B = 36, eV = 266, tV = 76, nV = (e) => [
|
|
31363
32242
|
e.member ? `${e.kind} ${e.member.via === "member" ? "member" : "claimed"}` : "named by an edge",
|
|
31364
32243
|
e.origin ?? "no origin",
|
|
31365
32244
|
e.scope ?? "no scope"
|
|
31366
|
-
].join(" · "),
|
|
32245
|
+
].join(" · "), rV = (e, t) => {
|
|
31367
32246
|
let n = e.find((e) => e.key === t);
|
|
31368
32247
|
return new Set(n ? [n.fromUri, n.toUri] : []);
|
|
31369
|
-
},
|
|
31370
|
-
let n =
|
|
32248
|
+
}, iV = (e, t) => {
|
|
32249
|
+
let n = MB(e), r = e.links ?? [], i = PB(r), a = rV(r, t), o = new Set(n.nodes.map((e) => e.uri));
|
|
31371
32250
|
return {
|
|
31372
32251
|
nodes: n.nodes.map((e) => ({
|
|
31373
32252
|
id: e.uri,
|
|
31374
32253
|
type: "trace",
|
|
31375
32254
|
position: {
|
|
31376
|
-
x:
|
|
31377
|
-
y:
|
|
32255
|
+
x: $B + e.column * eV,
|
|
32256
|
+
y: $B + e.row * tV
|
|
31378
32257
|
},
|
|
31379
32258
|
width: 178,
|
|
31380
32259
|
height: 56,
|
|
@@ -31384,7 +32263,7 @@ var JR = x`
|
|
|
31384
32263
|
uri: e.uri,
|
|
31385
32264
|
kind: e.kind,
|
|
31386
32265
|
title: e.title,
|
|
31387
|
-
meta:
|
|
32266
|
+
meta: nV(e),
|
|
31388
32267
|
lit: a.has(e.uri)
|
|
31389
32268
|
}
|
|
31390
32269
|
})),
|
|
@@ -31401,20 +32280,20 @@ var JR = x`
|
|
|
31401
32280
|
selected: e.key === t,
|
|
31402
32281
|
data: {
|
|
31403
32282
|
spread: (n.lane - (n.lanes - 1) / 2) * 26,
|
|
31404
|
-
active:
|
|
32283
|
+
active: HB(e.status),
|
|
31405
32284
|
status: e.status,
|
|
31406
32285
|
label: e.kind,
|
|
31407
32286
|
tooltip: `${e.kind} ${e.status} by ${e.by}: ${e.reason}`
|
|
31408
32287
|
}
|
|
31409
32288
|
};
|
|
31410
32289
|
}),
|
|
31411
|
-
width: Math.max(1, n.columns) *
|
|
31412
|
-
height: Math.max(1, n.rows) *
|
|
32290
|
+
width: Math.max(1, n.columns) * eV - ZB + 72,
|
|
32291
|
+
height: Math.max(1, n.rows) * tV - QB + 72
|
|
31413
32292
|
};
|
|
31414
32293
|
};
|
|
31415
32294
|
// src/router/debug/graph.tsx
|
|
31416
32295
|
j();
|
|
31417
|
-
var
|
|
32296
|
+
var aV = x`
|
|
31418
32297
|
position: relative;
|
|
31419
32298
|
height: 46rem;
|
|
31420
32299
|
border: 1px solid rgba(255, 255, 255, 0.12);
|
|
@@ -31486,7 +32365,7 @@ var Ez = x`
|
|
|
31486
32365
|
.edge-label.active { fill: rgb(134, 239, 172); }
|
|
31487
32366
|
.edge-label.refused { fill: rgb(252, 165, 165); }
|
|
31488
32367
|
.cross { stroke: rgb(248, 113, 113); stroke-width: 1.5; }
|
|
31489
|
-
`,
|
|
32368
|
+
`, oV = (e, t) => e.length > t ? `${e.slice(0, t - 1)}…` : e, sV = ({ data: e }) => /* @__PURE__ */ A("div", {
|
|
31490
32369
|
className: `trace-node ${e.kind}${e.lit ? " lit" : ""}`,
|
|
31491
32370
|
"data-node": e.uri,
|
|
31492
32371
|
"data-kind": e.kind,
|
|
@@ -31498,19 +32377,19 @@ var Ez = x`
|
|
|
31498
32377
|
}),
|
|
31499
32378
|
/* @__PURE__ */ z("div", {
|
|
31500
32379
|
className: "uri",
|
|
31501
|
-
children:
|
|
32380
|
+
children: oV(e.uri, 26)
|
|
31502
32381
|
}),
|
|
31503
|
-
/* @__PURE__ */ z("div", { children: e.title === null ? "no title" :
|
|
32382
|
+
/* @__PURE__ */ z("div", { children: e.title === null ? "no title" : oV(e.title, 28) }),
|
|
31504
32383
|
/* @__PURE__ */ z("div", {
|
|
31505
32384
|
className: "meta",
|
|
31506
|
-
children:
|
|
32385
|
+
children: oV(e.meta, 34)
|
|
31507
32386
|
}),
|
|
31508
32387
|
/* @__PURE__ */ z(xM, {
|
|
31509
32388
|
type: "source",
|
|
31510
32389
|
position: $.Right
|
|
31511
32390
|
})
|
|
31512
32391
|
]
|
|
31513
|
-
}),
|
|
32392
|
+
}), cV = ({ data: e, selected: t, sourceX: n, sourceY: r, targetX: i, targetY: a }) => {
|
|
31514
32393
|
let o = e?.spread ?? 0, s = e?.active ? "active" : "refused", c = i >= n, l = Math.max(20, Math.abs(i - n) / 2) * (c ? 1 : -1), u = `M ${n} ${r} C ${n + l} ${r + o}, ${i - l} ${a + o}, ${i} ${a}`, d = (n + i) / 2, f = (r + a) / 2 + o * .75;
|
|
31515
32394
|
return /* @__PURE__ */ A(U, { children: [
|
|
31516
32395
|
/* @__PURE__ */ z("path", {
|
|
@@ -31537,13 +32416,13 @@ var Ez = x`
|
|
|
31537
32416
|
x: d,
|
|
31538
32417
|
y: f - 9,
|
|
31539
32418
|
textAnchor: "middle",
|
|
31540
|
-
children:
|
|
32419
|
+
children: oV(e?.label ?? "", 22)
|
|
31541
32420
|
})
|
|
31542
32421
|
] });
|
|
31543
|
-
},
|
|
31544
|
-
let { nodes: r, edges: i } = G(() =>
|
|
32422
|
+
}, lV = { trace: sV }, uV = { trace: cV }, dV = ({ bundle: e, selected: t, onSelect: n }) => {
|
|
32423
|
+
let { nodes: r, edges: i } = G(() => iV(e, t), [e, t]), a = W((e, t) => n(t.id), [n]);
|
|
31545
32424
|
return /* @__PURE__ */ A("div", {
|
|
31546
|
-
css:
|
|
32425
|
+
css: aV,
|
|
31547
32426
|
"data-trace-graph": !0,
|
|
31548
32427
|
children: [/* @__PURE__ */ A("div", {
|
|
31549
32428
|
className: "legend",
|
|
@@ -31557,8 +32436,8 @@ var Ez = x`
|
|
|
31557
32436
|
}), /* @__PURE__ */ z(eP, {
|
|
31558
32437
|
nodes: r,
|
|
31559
32438
|
edges: i,
|
|
31560
|
-
nodeTypes:
|
|
31561
|
-
edgeTypes:
|
|
32439
|
+
nodeTypes: lV,
|
|
32440
|
+
edgeTypes: uV,
|
|
31562
32441
|
onEdgeClick: a,
|
|
31563
32442
|
nodesDraggable: !1,
|
|
31564
32443
|
nodesConnectable: !1,
|
|
@@ -31578,7 +32457,7 @@ var Ez = x`
|
|
|
31578
32457
|
};
|
|
31579
32458
|
// src/router/debug/inspector.tsx
|
|
31580
32459
|
j();
|
|
31581
|
-
var
|
|
32460
|
+
var fV = x`
|
|
31582
32461
|
border: 1px solid rgba(255, 255, 255, 0.12);
|
|
31583
32462
|
border-radius: 0.5rem;
|
|
31584
32463
|
padding: 1rem 1.2rem;
|
|
@@ -31678,7 +32557,7 @@ var Nz = x`
|
|
|
31678
32557
|
}
|
|
31679
32558
|
|
|
31680
32559
|
.empty { color: rgba(255, 255, 255, 0.5); }
|
|
31681
|
-
`,
|
|
32560
|
+
`, pV = (e) => e.kind === "link" ? `link ${e.row.kind} ${e.row.status} by ${e.row.by}` : e.kind === "episode-link" ? `episode link ${e.row.kind} ${e.row.status} by ${e.row.by}` : e.kind === "claim" ? `claim ${e.row.kind} from ${e.row.claimer}` : e.kind === "episode-source" ? `episode list from ${e.row.claimer}` : `episode claim ${e.row.kind} from ${e.row.claimer}`, mV = (e) => e === "not-an-edge-key" ? "not an edge key" : "not in this bundle", hV = (e) => {
|
|
31682
32561
|
if (e == null) return "";
|
|
31683
32562
|
if (typeof e == "string") return e;
|
|
31684
32563
|
if (e instanceof Uint8Array) return new TextDecoder().decode(e);
|
|
@@ -31689,20 +32568,20 @@ var Nz = x`
|
|
|
31689
32568
|
} catch {
|
|
31690
32569
|
return String(e);
|
|
31691
32570
|
}
|
|
31692
|
-
},
|
|
32571
|
+
}, gV = ({ rows: e }) => /* @__PURE__ */ z("table", {
|
|
31693
32572
|
className: "facts",
|
|
31694
32573
|
children: /* @__PURE__ */ z("tbody", { children: e.map(([e, t]) => /* @__PURE__ */ A("tr", {
|
|
31695
32574
|
"data-fact": e,
|
|
31696
32575
|
children: [/* @__PURE__ */ z("th", {
|
|
31697
32576
|
scope: "row",
|
|
31698
32577
|
children: e
|
|
31699
|
-
}), /* @__PURE__ */ z("td", { children: /* @__PURE__ */ z(
|
|
32578
|
+
}), /* @__PURE__ */ z("td", { children: /* @__PURE__ */ z(JB, { value: t }) })]
|
|
31700
32579
|
}, e)) })
|
|
31701
|
-
}),
|
|
31702
|
-
let i =
|
|
32580
|
+
}), _V = ({ bundle: e, seq: t, answer: n, onLoad: r }) => {
|
|
32581
|
+
let i = RB(e, t);
|
|
31703
32582
|
return /* @__PURE__ */ A(U, { children: [
|
|
31704
32583
|
/* @__PURE__ */ A("h4", { children: ["answer ", t] }),
|
|
31705
|
-
i ? /* @__PURE__ */ z(
|
|
32584
|
+
i ? /* @__PURE__ */ z(gV, { rows: [
|
|
31706
32585
|
["uri", i.uri],
|
|
31707
32586
|
["origin", i.origin],
|
|
31708
32587
|
["operation", i.operation],
|
|
@@ -31737,8 +32616,8 @@ var Nz = x`
|
|
|
31737
32616
|
]
|
|
31738
32617
|
})
|
|
31739
32618
|
] });
|
|
31740
|
-
},
|
|
31741
|
-
let [o, s] = B(void 0), c = n[n.length - 1], l = c === void 0 ? void 0 : t.get(c), u =
|
|
32619
|
+
}, vV = ({ bundle: e, index: t, trail: n, onFollow: r, onTrailTo: i, loadAnswerBytes: a }) => {
|
|
32620
|
+
let [o, s] = B(void 0), c = n[n.length - 1], l = c === void 0 ? void 0 : t.get(c), u = LB(t, l && (l.kind === "link" || l.kind === "episode-link") ? l.row.supports : []), d = (e) => {
|
|
31742
32621
|
s({
|
|
31743
32622
|
seq: e,
|
|
31744
32623
|
state: "loading",
|
|
@@ -31746,7 +32625,7 @@ var Nz = x`
|
|
|
31746
32625
|
}), a(e).then((t) => s({
|
|
31747
32626
|
seq: e,
|
|
31748
32627
|
state: "done",
|
|
31749
|
-
text:
|
|
32628
|
+
text: hV(t)
|
|
31750
32629
|
})).catch((t) => s({
|
|
31751
32630
|
seq: e,
|
|
31752
32631
|
state: "failed",
|
|
@@ -31754,7 +32633,7 @@ var Nz = x`
|
|
|
31754
32633
|
}));
|
|
31755
32634
|
};
|
|
31756
32635
|
return /* @__PURE__ */ A("div", {
|
|
31757
|
-
css:
|
|
32636
|
+
css: fV,
|
|
31758
32637
|
"data-inspector": !0,
|
|
31759
32638
|
children: [/* @__PURE__ */ z("h3", { children: "Edge inspector" }), c === void 0 ? /* @__PURE__ */ z("p", {
|
|
31760
32639
|
className: "empty",
|
|
@@ -31764,10 +32643,10 @@ var Nz = x`
|
|
|
31764
32643
|
children: [n.slice(0, -1).map((e, n) => /* @__PURE__ */ z("button", {
|
|
31765
32644
|
type: "button",
|
|
31766
32645
|
onClick: () => i(n),
|
|
31767
|
-
children: t.get(e) ?
|
|
32646
|
+
children: t.get(e) ? pV(t.get(e)) : e
|
|
31768
32647
|
}, e)), /* @__PURE__ */ z("span", {
|
|
31769
32648
|
className: "here",
|
|
31770
|
-
children: l ?
|
|
32649
|
+
children: l ? pV(l) : c
|
|
31771
32650
|
})]
|
|
31772
32651
|
}), l === void 0 ? /* @__PURE__ */ A("p", {
|
|
31773
32652
|
className: "empty",
|
|
@@ -31779,7 +32658,7 @@ var Nz = x`
|
|
|
31779
32658
|
]
|
|
31780
32659
|
}) : /* @__PURE__ */ A(U, { children: [
|
|
31781
32660
|
(l.kind === "link" || l.kind === "episode-link") && /* @__PURE__ */ A(U, { children: [
|
|
31782
|
-
/* @__PURE__ */ z(
|
|
32661
|
+
/* @__PURE__ */ z(gV, { rows: [
|
|
31783
32662
|
["from", l.row.fromUri],
|
|
31784
32663
|
["to", l.row.toUri],
|
|
31785
32664
|
["kind", l.row.kind],
|
|
@@ -31790,22 +32669,22 @@ var Nz = x`
|
|
|
31790
32669
|
"status",
|
|
31791
32670
|
" ",
|
|
31792
32671
|
/* @__PURE__ */ z("span", {
|
|
31793
|
-
className: `status ${
|
|
32672
|
+
className: `status ${HB(l.row.status) ? "active" : "refused"}`,
|
|
31794
32673
|
children: l.row.status
|
|
31795
32674
|
})
|
|
31796
32675
|
] }),
|
|
31797
|
-
/* @__PURE__ */ z(
|
|
32676
|
+
/* @__PURE__ */ z(gV, { rows: l.kind === "link" ? [["confidence", l.row.confidence], ["version", l.row.version]] : [["from number", l.row.fromNumber], ["to number", l.row.toNumber]] }),
|
|
31798
32677
|
/* @__PURE__ */ z("h4", { children: "evidence" }),
|
|
31799
|
-
/* @__PURE__ */ z(
|
|
31800
|
-
blob:
|
|
32678
|
+
/* @__PURE__ */ z(XB, {
|
|
32679
|
+
blob: BB(l.row.evidence),
|
|
31801
32680
|
label: "evidence"
|
|
31802
32681
|
}),
|
|
31803
|
-
l.kind === "link" && /* @__PURE__ */ A(U, { children: [/* @__PURE__ */ z("h4", { children: "gates" }), /* @__PURE__ */ z(
|
|
31804
|
-
blob:
|
|
32682
|
+
l.kind === "link" && /* @__PURE__ */ A(U, { children: [/* @__PURE__ */ z("h4", { children: "gates" }), /* @__PURE__ */ z(XB, {
|
|
32683
|
+
blob: BB(l.row.gates),
|
|
31805
32684
|
label: "gates"
|
|
31806
32685
|
})] })
|
|
31807
32686
|
] }),
|
|
31808
|
-
(l.kind === "claim" || l.kind === "episode-claim") && /* @__PURE__ */ A(U, { children: [/* @__PURE__ */ z(
|
|
32687
|
+
(l.kind === "claim" || l.kind === "episode-claim") && /* @__PURE__ */ A(U, { children: [/* @__PURE__ */ z(gV, { rows: [
|
|
31809
32688
|
["from", l.row.fromUri],
|
|
31810
32689
|
["to", l.row.toUri],
|
|
31811
32690
|
["kind", l.row.kind],
|
|
@@ -31813,18 +32692,18 @@ var Nz = x`
|
|
|
31813
32692
|
["provenance", l.row.provenance],
|
|
31814
32693
|
["answer seq", l.row.answerSeq],
|
|
31815
32694
|
...l.kind === "claim" ? [["target scope", l.row.targetScope]] : []
|
|
31816
|
-
] }), /* @__PURE__ */ z(
|
|
32695
|
+
] }), /* @__PURE__ */ z(_V, {
|
|
31817
32696
|
bundle: e,
|
|
31818
32697
|
seq: l.row.answerSeq,
|
|
31819
32698
|
answer: o,
|
|
31820
32699
|
onLoad: d
|
|
31821
32700
|
})] }),
|
|
31822
|
-
l.kind === "episode-source" && /* @__PURE__ */ A(U, { children: [/* @__PURE__ */ z(
|
|
32701
|
+
l.kind === "episode-source" && /* @__PURE__ */ A(U, { children: [/* @__PURE__ */ z(gV, { rows: [
|
|
31823
32702
|
["media", l.row.fromUri],
|
|
31824
32703
|
["episode", l.row.toUri],
|
|
31825
32704
|
["listed by", l.row.claimer],
|
|
31826
32705
|
["answer seq", l.row.answerSeq]
|
|
31827
|
-
] }), /* @__PURE__ */ z(
|
|
32706
|
+
] }), /* @__PURE__ */ z(_V, {
|
|
31828
32707
|
bundle: e,
|
|
31829
32708
|
seq: l.row.answerSeq,
|
|
31830
32709
|
answer: o,
|
|
@@ -31849,11 +32728,11 @@ var Nz = x`
|
|
|
31849
32728
|
children: "Follow"
|
|
31850
32729
|
}) : /* @__PURE__ */ z("span", {
|
|
31851
32730
|
className: "unresolved",
|
|
31852
|
-
children:
|
|
32731
|
+
children: mV(e.gap)
|
|
31853
32732
|
}),
|
|
31854
32733
|
/* @__PURE__ */ z("span", {
|
|
31855
32734
|
className: "what",
|
|
31856
|
-
children: e.ref ?
|
|
32735
|
+
children: e.ref ? pV(e.ref) : "unresolved"
|
|
31857
32736
|
}),
|
|
31858
32737
|
/* @__PURE__ */ z("span", {
|
|
31859
32738
|
className: "key",
|
|
@@ -31864,7 +32743,7 @@ var Nz = x`
|
|
|
31864
32743
|
})
|
|
31865
32744
|
] })] })]
|
|
31866
32745
|
});
|
|
31867
|
-
},
|
|
32746
|
+
}, yV = x`
|
|
31868
32747
|
table {
|
|
31869
32748
|
width: 100%;
|
|
31870
32749
|
border-collapse: collapse;
|
|
@@ -31917,8 +32796,8 @@ var Nz = x`
|
|
|
31917
32796
|
.status.active { color: rgb(74, 222, 128); }
|
|
31918
32797
|
.status.refused { color: rgb(248, 113, 113); }
|
|
31919
32798
|
.empty { color: rgba(255, 255, 255, 0.5); font-size: 1.2rem; }
|
|
31920
|
-
`,
|
|
31921
|
-
let r =
|
|
32799
|
+
`, bV = ({ fill: e, index: t, onSelect: n }) => {
|
|
32800
|
+
let r = LB(t, e.supports);
|
|
31922
32801
|
return r.length === 0 ? /* @__PURE__ */ z("div", {
|
|
31923
32802
|
className: "proof",
|
|
31924
32803
|
children: /* @__PURE__ */ z("span", {
|
|
@@ -31941,20 +32820,20 @@ var Nz = x`
|
|
|
31941
32820
|
children: `${t.fromUri} #${t.fromNumber ?? "null"} to ${t.toUri} #${t.toNumber ?? "null"}`
|
|
31942
32821
|
}) : /* @__PURE__ */ z("span", {
|
|
31943
32822
|
className: "pair",
|
|
31944
|
-
children: e.ref ? `${
|
|
32823
|
+
children: e.ref ? `${pV(e.ref)} ${e.key}` : /* @__PURE__ */ z("span", {
|
|
31945
32824
|
className: "missing",
|
|
31946
|
-
children: `${e.key}: ${
|
|
32825
|
+
children: `${e.key}: ${mV(e.gap)}`
|
|
31947
32826
|
})
|
|
31948
32827
|
}),
|
|
31949
32828
|
t && /* @__PURE__ */ z("span", {
|
|
31950
|
-
className: `status ${
|
|
32829
|
+
className: `status ${HB(t.status) ? "active" : "refused"}`,
|
|
31951
32830
|
children: t.status
|
|
31952
32831
|
})
|
|
31953
32832
|
]
|
|
31954
32833
|
}, e.key);
|
|
31955
32834
|
}) });
|
|
31956
|
-
},
|
|
31957
|
-
css:
|
|
32835
|
+
}, xV = ({ bundle: e, index: t, selected: n, onSelect: r }) => /* @__PURE__ */ A("div", {
|
|
32836
|
+
css: yV,
|
|
31958
32837
|
"data-episodes": !0,
|
|
31959
32838
|
children: [
|
|
31960
32839
|
(e.episodes ?? []).length === 0 ? /* @__PURE__ */ z("p", {
|
|
@@ -31974,8 +32853,8 @@ var Nz = x`
|
|
|
31974
32853
|
className: "slot",
|
|
31975
32854
|
children: e.slotId
|
|
31976
32855
|
}),
|
|
31977
|
-
/* @__PURE__ */ z("td", { children: /* @__PURE__ */ z(
|
|
31978
|
-
/* @__PURE__ */ z("td", { children: /* @__PURE__ */ z(
|
|
32856
|
+
/* @__PURE__ */ z("td", { children: /* @__PURE__ */ z(JB, { value: e.number }) }),
|
|
32857
|
+
/* @__PURE__ */ z("td", { children: /* @__PURE__ */ z(JB, { value: e.title }) }),
|
|
31979
32858
|
/* @__PURE__ */ z("td", { children: e.fills.length === 0 ? /* @__PURE__ */ z("span", {
|
|
31980
32859
|
className: "empty",
|
|
31981
32860
|
children: "nothing fills this slot"
|
|
@@ -31988,7 +32867,7 @@ var Nz = x`
|
|
|
31988
32867
|
className: "uri",
|
|
31989
32868
|
children: e.episodeUri
|
|
31990
32869
|
}),
|
|
31991
|
-
/* @__PURE__ */ A("span", { children: ["#", /* @__PURE__ */ z(
|
|
32870
|
+
/* @__PURE__ */ A("span", { children: ["#", /* @__PURE__ */ z(JB, { value: e.number })] }),
|
|
31992
32871
|
/* @__PURE__ */ z("span", { children: e.origin }),
|
|
31993
32872
|
/* @__PURE__ */ z("span", {
|
|
31994
32873
|
className: "via",
|
|
@@ -31999,7 +32878,7 @@ var Nz = x`
|
|
|
31999
32878
|
children: e.by
|
|
32000
32879
|
})
|
|
32001
32880
|
]
|
|
32002
|
-
}), /* @__PURE__ */ z(
|
|
32881
|
+
}), /* @__PURE__ */ z(bV, {
|
|
32003
32882
|
fill: e,
|
|
32004
32883
|
index: t,
|
|
32005
32884
|
onSelect: r
|
|
@@ -32037,7 +32916,7 @@ var Nz = x`
|
|
|
32037
32916
|
}),
|
|
32038
32917
|
/* @__PURE__ */ z("td", { children: e.kind }),
|
|
32039
32918
|
/* @__PURE__ */ z("td", { children: /* @__PURE__ */ z("span", {
|
|
32040
|
-
className: `status ${
|
|
32919
|
+
className: `status ${HB(e.status) ? "active" : "refused"}`,
|
|
32041
32920
|
children: e.status
|
|
32042
32921
|
}) }),
|
|
32043
32922
|
/* @__PURE__ */ z("td", { children: e.by }),
|
|
@@ -32092,7 +32971,7 @@ var Nz = x`
|
|
|
32092
32971
|
});
|
|
32093
32972
|
// src/router/debug/index.tsx
|
|
32094
32973
|
j();
|
|
32095
|
-
var
|
|
32974
|
+
var SV = x`
|
|
32096
32975
|
max-width: 150rem;
|
|
32097
32976
|
margin: calc(var(--stub-header-height) + 2rem) auto 6rem;
|
|
32098
32977
|
padding: 0 1.5rem;
|
|
@@ -32202,14 +33081,14 @@ var Uz = x`
|
|
|
32202
33081
|
|
|
32203
33082
|
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
|
|
32204
33083
|
@media (max-width: 900px) { .columns { grid-template-columns: 1fr; } }
|
|
32205
|
-
`,
|
|
33084
|
+
`, CV = 1500, wV = ({ label: e, value: t }) => /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ z("span", {
|
|
32206
33085
|
className: "label",
|
|
32207
33086
|
children: e
|
|
32208
|
-
}), /* @__PURE__ */ z("code", { children: /* @__PURE__ */ z(
|
|
33087
|
+
}), /* @__PURE__ */ z("code", { children: /* @__PURE__ */ z(JB, { value: t }) })] }), TV = ({ reason: e }) => e === "null" ? /* @__PURE__ */ z("code", {
|
|
32209
33088
|
className: "token",
|
|
32210
33089
|
"data-token-reason": !0,
|
|
32211
33090
|
children: "\"null\""
|
|
32212
|
-
}) : /* @__PURE__ */ z(
|
|
33091
|
+
}) : /* @__PURE__ */ z(JB, { value: e }), EV = ({ load: e = Ox, loadAnswerBytes: t = kx, warm: n = KB }) => {
|
|
32213
33092
|
let i = Ou(), [, a] = Du(), o = Rx(i), [s, c] = B(o), [l, u] = B({ kind: "idle" }), [d, f] = B(0), [p, m] = B({ kind: "off" }), [h, g] = B([]), _ = r(""), v = r(void 0);
|
|
32214
33093
|
H(() => {
|
|
32215
33094
|
c(o), g([]), m({ kind: "off" }), _.current = "", v.current !== void 0 && clearTimeout(v.current), v.current = void 0;
|
|
@@ -32233,14 +33112,14 @@ var Uz = x`
|
|
|
32233
33112
|
t = !1;
|
|
32234
33113
|
};
|
|
32235
33114
|
}, [o, d]);
|
|
32236
|
-
let y = l.kind === "done" ? l.bundle : void 0, b = G(() => y ?
|
|
33115
|
+
let y = l.kind === "done" ? l.bundle : void 0, b = G(() => y ? FB(y) : /* @__PURE__ */ new Map(), [y]), x = h[h.length - 1], S = !(!y || y.resolved || y.reason === "not-enabled");
|
|
32237
33116
|
return H(() => {
|
|
32238
33117
|
if (!o || !S || _.current === o) return;
|
|
32239
33118
|
_.current = o;
|
|
32240
33119
|
let e = o, t = () => _.current === e, r = () => {
|
|
32241
33120
|
v.current === void 0 && (v.current = setTimeout(() => {
|
|
32242
33121
|
v.current = void 0, t() && f((e) => e + 1);
|
|
32243
|
-
},
|
|
33122
|
+
}, CV));
|
|
32244
33123
|
};
|
|
32245
33124
|
m({
|
|
32246
33125
|
kind: "asking",
|
|
@@ -32266,7 +33145,7 @@ var Uz = x`
|
|
|
32266
33145
|
}, [o, S]), H(() => () => {
|
|
32267
33146
|
_.current = "", v.current !== void 0 && clearTimeout(v.current);
|
|
32268
33147
|
}, []), /* @__PURE__ */ A("div", {
|
|
32269
|
-
css:
|
|
33148
|
+
css: SV,
|
|
32270
33149
|
"data-debug-trace": !0,
|
|
32271
33150
|
children: [
|
|
32272
33151
|
/* @__PURE__ */ z("h1", { children: "Graph trace" }),
|
|
@@ -32324,23 +33203,23 @@ var Uz = x`
|
|
|
32324
33203
|
children: [/* @__PURE__ */ A("div", {
|
|
32325
33204
|
className: "pairs",
|
|
32326
33205
|
children: [
|
|
32327
|
-
/* @__PURE__ */ z(
|
|
33206
|
+
/* @__PURE__ */ z(wV, {
|
|
32328
33207
|
label: "asked",
|
|
32329
33208
|
value: y.asked
|
|
32330
33209
|
}),
|
|
32331
|
-
/* @__PURE__ */ z(
|
|
33210
|
+
/* @__PURE__ */ z(wV, {
|
|
32332
33211
|
label: "cluster",
|
|
32333
33212
|
value: y.resolved.clusterId
|
|
32334
33213
|
}),
|
|
32335
|
-
/* @__PURE__ */ z(
|
|
33214
|
+
/* @__PURE__ */ z(wV, {
|
|
32336
33215
|
label: "aggregate",
|
|
32337
33216
|
value: y.resolved.aggUri
|
|
32338
33217
|
}),
|
|
32339
|
-
/* @__PURE__ */ z(
|
|
33218
|
+
/* @__PURE__ */ z(wV, {
|
|
32340
33219
|
label: "scope",
|
|
32341
33220
|
value: y.resolved.scope
|
|
32342
33221
|
}),
|
|
32343
|
-
/* @__PURE__ */ z(
|
|
33222
|
+
/* @__PURE__ */ z(wV, {
|
|
32344
33223
|
label: "kind",
|
|
32345
33224
|
value: y.resolved.kind
|
|
32346
33225
|
})
|
|
@@ -32370,7 +33249,7 @@ var Uz = x`
|
|
|
32370
33249
|
children: [
|
|
32371
33250
|
/* @__PURE__ */ z("div", {
|
|
32372
33251
|
className: "why",
|
|
32373
|
-
children:
|
|
33252
|
+
children: VB(y.reason)
|
|
32374
33253
|
}),
|
|
32375
33254
|
y.reason === "not-enabled" && /* @__PURE__ */ A("div", {
|
|
32376
33255
|
className: "advice",
|
|
@@ -32391,10 +33270,10 @@ var Uz = x`
|
|
|
32391
33270
|
}),
|
|
32392
33271
|
/* @__PURE__ */ A("div", {
|
|
32393
33272
|
className: "pairs",
|
|
32394
|
-
children: [/* @__PURE__ */ z(
|
|
33273
|
+
children: [/* @__PURE__ */ z(wV, {
|
|
32395
33274
|
label: "asked",
|
|
32396
33275
|
value: y.asked
|
|
32397
|
-
}), /* @__PURE__ */ z(
|
|
33276
|
+
}), /* @__PURE__ */ z(wV, {
|
|
32398
33277
|
label: "reason",
|
|
32399
33278
|
value: y.reason ?? null
|
|
32400
33279
|
})]
|
|
@@ -32405,19 +33284,19 @@ var Uz = x`
|
|
|
32405
33284
|
className: "pairs",
|
|
32406
33285
|
"data-run-length": !0,
|
|
32407
33286
|
children: [
|
|
32408
|
-
/* @__PURE__ */ z(
|
|
33287
|
+
/* @__PURE__ */ z(wV, {
|
|
32409
33288
|
label: "run length",
|
|
32410
33289
|
value: y.runLength?.value ?? null
|
|
32411
33290
|
}),
|
|
32412
|
-
/* @__PURE__ */ z(
|
|
33291
|
+
/* @__PURE__ */ z(wV, {
|
|
32413
33292
|
label: "from",
|
|
32414
33293
|
value: y.runLength?.from ?? null
|
|
32415
33294
|
}),
|
|
32416
|
-
/* @__PURE__ */ z(
|
|
33295
|
+
/* @__PURE__ */ z(wV, {
|
|
32417
33296
|
label: "tier",
|
|
32418
33297
|
value: y.runLength?.tier ?? null
|
|
32419
33298
|
}),
|
|
32420
|
-
/* @__PURE__ */ z(
|
|
33299
|
+
/* @__PURE__ */ z(wV, {
|
|
32421
33300
|
label: "witnesses",
|
|
32422
33301
|
value: y.runLength?.witnesses ?? null
|
|
32423
33302
|
})
|
|
@@ -32426,10 +33305,10 @@ var Uz = x`
|
|
|
32426
33305
|
/* @__PURE__ */ A("div", {
|
|
32427
33306
|
className: "pairs",
|
|
32428
33307
|
"data-cost": !0,
|
|
32429
|
-
children: [/* @__PURE__ */ z(
|
|
33308
|
+
children: [/* @__PURE__ */ z(wV, {
|
|
32430
33309
|
label: "statements",
|
|
32431
33310
|
value: y.cost?.statements ?? null
|
|
32432
|
-
}), /* @__PURE__ */ z(
|
|
33311
|
+
}), /* @__PURE__ */ z(wV, {
|
|
32433
33312
|
label: "ms to build",
|
|
32434
33313
|
value: y.cost?.ms ?? null
|
|
32435
33314
|
})]
|
|
@@ -32467,16 +33346,16 @@ var Uz = x`
|
|
|
32467
33346
|
] }) }), /* @__PURE__ */ z("tbody", { children: y.asks.map((e, t) => /* @__PURE__ */ A("tr", {
|
|
32468
33347
|
"data-ask": e.origin,
|
|
32469
33348
|
children: [
|
|
32470
|
-
/* @__PURE__ */ z("td", { children: /* @__PURE__ */ z(
|
|
33349
|
+
/* @__PURE__ */ z("td", { children: /* @__PURE__ */ z(JB, { value: e.seq ?? null }) }),
|
|
32471
33350
|
/* @__PURE__ */ z("td", { children: e.origin }),
|
|
32472
33351
|
/* @__PURE__ */ z("td", { children: e.outcome }),
|
|
32473
|
-
/* @__PURE__ */ z("td", { children: /* @__PURE__ */ z(
|
|
33352
|
+
/* @__PURE__ */ z("td", { children: /* @__PURE__ */ z(TV, { reason: e.reason }) })
|
|
32474
33353
|
]
|
|
32475
33354
|
}, `${e.origin} ${e.seq ?? t}`)) })]
|
|
32476
33355
|
})] })]
|
|
32477
33356
|
}),
|
|
32478
33357
|
/* @__PURE__ */ z("h2", { children: "Media graph" }),
|
|
32479
|
-
/* @__PURE__ */ z(
|
|
33358
|
+
/* @__PURE__ */ z(dV, {
|
|
32480
33359
|
bundle: y,
|
|
32481
33360
|
selected: x,
|
|
32482
33361
|
onSelect: (e) => g([e])
|
|
@@ -32511,12 +33390,12 @@ var Uz = x`
|
|
|
32511
33390
|
}),
|
|
32512
33391
|
/* @__PURE__ */ z("td", { children: e.kind }),
|
|
32513
33392
|
/* @__PURE__ */ z("td", { children: /* @__PURE__ */ z("span", {
|
|
32514
|
-
className: `status ${
|
|
33393
|
+
className: `status ${HB(e.status) ? "active" : "refused"}`,
|
|
32515
33394
|
children: e.status
|
|
32516
33395
|
}) }),
|
|
32517
33396
|
/* @__PURE__ */ z("td", { children: e.by }),
|
|
32518
33397
|
/* @__PURE__ */ z("td", { children: e.reason }),
|
|
32519
|
-
/* @__PURE__ */ z("td", { children: /* @__PURE__ */ z(
|
|
33398
|
+
/* @__PURE__ */ z("td", { children: /* @__PURE__ */ z(JB, { value: e.confidence }) }),
|
|
32520
33399
|
/* @__PURE__ */ z("td", { children: /* @__PURE__ */ z("button", {
|
|
32521
33400
|
type: "button",
|
|
32522
33401
|
className: "inspect",
|
|
@@ -32557,7 +33436,7 @@ var Uz = x`
|
|
|
32557
33436
|
/* @__PURE__ */ z("td", { children: e.claimer }),
|
|
32558
33437
|
/* @__PURE__ */ z("td", { children: e.provenance }),
|
|
32559
33438
|
/* @__PURE__ */ z("td", { children: e.answerSeq }),
|
|
32560
|
-
/* @__PURE__ */ z("td", { children: /* @__PURE__ */ z(
|
|
33439
|
+
/* @__PURE__ */ z("td", { children: /* @__PURE__ */ z(JB, { value: e.targetScope }) }),
|
|
32561
33440
|
/* @__PURE__ */ z("td", { children: /* @__PURE__ */ z("button", {
|
|
32562
33441
|
type: "button",
|
|
32563
33442
|
className: "inspect",
|
|
@@ -32593,9 +33472,9 @@ var Uz = x`
|
|
|
32593
33472
|
/* @__PURE__ */ z("td", { children: e.by }),
|
|
32594
33473
|
/* @__PURE__ */ z("td", {
|
|
32595
33474
|
className: "uri",
|
|
32596
|
-
children: /* @__PURE__ */ z(
|
|
33475
|
+
children: /* @__PURE__ */ z(JB, { value: e.evidence })
|
|
32597
33476
|
}),
|
|
32598
|
-
/* @__PURE__ */ z("td", { children: (e.supports ?? []).length === 0 ? /* @__PURE__ */ z(
|
|
33477
|
+
/* @__PURE__ */ z("td", { children: (e.supports ?? []).length === 0 ? /* @__PURE__ */ z(JB, { value: null }) : e.supports.map((e) => /* @__PURE__ */ z("button", {
|
|
32599
33478
|
type: "button",
|
|
32600
33479
|
className: "inspect",
|
|
32601
33480
|
"data-attachment-support": e,
|
|
@@ -32605,14 +33484,14 @@ var Uz = x`
|
|
|
32605
33484
|
] }, `${e.runUri} ${e.containerUri} ${e.via} ${e.by}`)) })]
|
|
32606
33485
|
}),
|
|
32607
33486
|
/* @__PURE__ */ z("h2", { children: "Episodes" }),
|
|
32608
|
-
/* @__PURE__ */ z(
|
|
33487
|
+
/* @__PURE__ */ z(xV, {
|
|
32609
33488
|
bundle: y,
|
|
32610
33489
|
index: b,
|
|
32611
33490
|
selected: x,
|
|
32612
33491
|
onSelect: (e) => g([e])
|
|
32613
33492
|
}),
|
|
32614
33493
|
/* @__PURE__ */ z("h2", { children: "Inspector" }),
|
|
32615
|
-
/* @__PURE__ */ z(
|
|
33494
|
+
/* @__PURE__ */ z(vV, {
|
|
32616
33495
|
bundle: y,
|
|
32617
33496
|
index: b,
|
|
32618
33497
|
trail: h,
|
|
@@ -32623,53 +33502,53 @@ var Uz = x`
|
|
|
32623
33502
|
] })
|
|
32624
33503
|
]
|
|
32625
33504
|
});
|
|
32626
|
-
},
|
|
32627
|
-
let e = document.querySelectorAll(
|
|
33505
|
+
}, DV = "[data-party-scroll]", OV = () => {
|
|
33506
|
+
let e = document.querySelectorAll(DV);
|
|
32628
33507
|
for (let t = e.length - 1; t >= 0; t--) {
|
|
32629
33508
|
let n = e[t];
|
|
32630
33509
|
if (n.scrollHeight - n.clientHeight > 0) return n;
|
|
32631
33510
|
}
|
|
32632
|
-
},
|
|
32633
|
-
let e =
|
|
33511
|
+
}, kV = (e, t) => t > 0 ? Math.min(1, Math.max(0, e / t)) : 0, AV = () => {
|
|
33512
|
+
let e = OV();
|
|
32634
33513
|
return e ? Math.max(0, e.scrollHeight - e.clientHeight) : Math.max(0, document.documentElement.scrollHeight - window.innerHeight);
|
|
32635
|
-
},
|
|
32636
|
-
let e =
|
|
32637
|
-
return e ?
|
|
32638
|
-
},
|
|
33514
|
+
}, jV = () => {
|
|
33515
|
+
let e = OV();
|
|
33516
|
+
return e ? kV(e.scrollTop, e.scrollHeight - e.clientHeight) : kV(window.scrollY, document.documentElement.scrollHeight - window.innerHeight);
|
|
33517
|
+
}, MV = () => {
|
|
32639
33518
|
try {
|
|
32640
33519
|
return window.matchMedia?.("(prefers-reduced-motion: reduce)")?.matches === !0;
|
|
32641
33520
|
} catch {
|
|
32642
33521
|
return !1;
|
|
32643
33522
|
}
|
|
32644
|
-
},
|
|
32645
|
-
let n =
|
|
33523
|
+
}, NV = (e, t, n) => !e || MV() ? "instant" : t <= n * 2 ? "smooth" : "instant", PV = (e, { smooth: t } = {}) => {
|
|
33524
|
+
let n = OV();
|
|
32646
33525
|
if (n) {
|
|
32647
33526
|
let r = n.scrollHeight - n.clientHeight, i = r > 0 ? e * r : 0;
|
|
32648
33527
|
n.scrollTo({
|
|
32649
33528
|
top: i,
|
|
32650
|
-
behavior:
|
|
33529
|
+
behavior: NV(t, Math.abs(i - n.scrollTop), n.clientHeight)
|
|
32651
33530
|
});
|
|
32652
33531
|
return;
|
|
32653
33532
|
}
|
|
32654
33533
|
let r = document.documentElement.scrollHeight - window.innerHeight, i = r > 0 ? e * r : 0;
|
|
32655
33534
|
window.scrollTo({
|
|
32656
33535
|
top: i,
|
|
32657
|
-
behavior:
|
|
33536
|
+
behavior: NV(t, Math.abs(i - window.scrollY), window.innerHeight)
|
|
32658
33537
|
});
|
|
32659
33538
|
};
|
|
32660
33539
|
// src/components/party-sync.tsx
|
|
32661
33540
|
j();
|
|
32662
|
-
var
|
|
33541
|
+
var FV = 2, IV = 8e3, LV = [
|
|
32663
33542
|
"wheel",
|
|
32664
33543
|
"touchstart",
|
|
32665
33544
|
"keydown",
|
|
32666
33545
|
"pointerdown"
|
|
32667
|
-
],
|
|
33546
|
+
], RV = 60, zV = () => {
|
|
32668
33547
|
let e = l_(), [t, n] = Du(), i = Ou(), a = i ? `${t}?${i}` : t, o = e.status === "active" ? e.role : void 0, s = t === t_, c = t === Hu(Z.SEARCH);
|
|
32669
33548
|
H(() => {
|
|
32670
33549
|
if (o !== "host" || s) return;
|
|
32671
33550
|
let e = () => {
|
|
32672
|
-
Q.setLocation(a,
|
|
33551
|
+
Q.setLocation(a, jV()), Q.send({
|
|
32673
33552
|
t: "nav",
|
|
32674
33553
|
path: a
|
|
32675
33554
|
});
|
|
@@ -32685,14 +33564,14 @@ var nB = 2, rB = 8e3, iB = [
|
|
|
32685
33564
|
if (o !== "host" || s) return;
|
|
32686
33565
|
let e = 0, t, n = () => {
|
|
32687
33566
|
t = void 0, e = Date.now();
|
|
32688
|
-
let n =
|
|
33567
|
+
let n = jV();
|
|
32689
33568
|
Q.setLocation(a, n), Q.send({
|
|
32690
33569
|
t: "scroll",
|
|
32691
33570
|
y: n
|
|
32692
33571
|
});
|
|
32693
33572
|
}, r = () => {
|
|
32694
33573
|
if (t) return;
|
|
32695
|
-
let r = Math.max(0, 1e3 /
|
|
33574
|
+
let r = Math.max(0, 1e3 / FV - (Date.now() - e));
|
|
32696
33575
|
t = setTimeout(n, r);
|
|
32697
33576
|
};
|
|
32698
33577
|
return document.addEventListener("scroll", r, {
|
|
@@ -32707,21 +33586,21 @@ var nB = 2, rB = 8e3, iB = [
|
|
|
32707
33586
|
if (l.current === void 0) return;
|
|
32708
33587
|
let e = l.current;
|
|
32709
33588
|
l.current = void 0;
|
|
32710
|
-
let t = 0, n = -1, r = 0, i = !1, a = u.current, o = Date.now() +
|
|
33589
|
+
let t = 0, n = -1, r = 0, i = !1, a = u.current, o = Date.now() + IV, s = () => {
|
|
32711
33590
|
i = !0;
|
|
32712
33591
|
};
|
|
32713
|
-
for (let e of
|
|
33592
|
+
for (let e of LV) document.addEventListener(e, s, { passive: !0 });
|
|
32714
33593
|
let c = () => {
|
|
32715
33594
|
cancelAnimationFrame(t);
|
|
32716
|
-
for (let e of
|
|
33595
|
+
for (let e of LV) document.removeEventListener(e, s);
|
|
32717
33596
|
};
|
|
32718
|
-
if (Nh(), e === 0) return
|
|
33597
|
+
if (Nh(), e === 0) return PV(0), c;
|
|
32719
33598
|
let d = () => {
|
|
32720
|
-
let s =
|
|
33599
|
+
let s = AV();
|
|
32721
33600
|
s === n ? r += 1 : (r = 0, n = s);
|
|
32722
|
-
let l = s > 0 && r >=
|
|
33601
|
+
let l = s > 0 && r >= RV;
|
|
32723
33602
|
if (i || u.current !== a || l || Date.now() > o) return c();
|
|
32724
|
-
|
|
33603
|
+
PV(e), t = requestAnimationFrame(d);
|
|
32725
33604
|
};
|
|
32726
33605
|
return t = requestAnimationFrame(d), c;
|
|
32727
33606
|
}, [a]);
|
|
@@ -32730,7 +33609,7 @@ var nB = 2, rB = 8e3, iB = [
|
|
|
32730
33609
|
d.current = !1;
|
|
32731
33610
|
}, [f]);
|
|
32732
33611
|
let p = (e, t) => {
|
|
32733
|
-
d.current = !0, e === a ? (Nh(), u.current += 1,
|
|
33612
|
+
d.current = !0, e === a ? (Nh(), u.current += 1, PV(t, { smooth: !0 })) : (l.current = t, n(e));
|
|
32734
33613
|
};
|
|
32735
33614
|
return u_((e, { replayed: t }) => {
|
|
32736
33615
|
if (o === "host") e.t === "ask" && e.c === "go" && e.path !== a && n(e.path);
|
|
@@ -32739,7 +33618,7 @@ var nB = 2, rB = 8e3, iB = [
|
|
|
32739
33618
|
d.current = !0, e.path !== a && n(e.path);
|
|
32740
33619
|
return;
|
|
32741
33620
|
case "scroll":
|
|
32742
|
-
Q.hostPath() === a && (Nh(), u.current += 1,
|
|
33621
|
+
Q.hostPath() === a && (Nh(), u.current += 1, PV(e.y, { smooth: !0 }));
|
|
32743
33622
|
return;
|
|
32744
33623
|
case "state":
|
|
32745
33624
|
(!d.current || t) && p(e.path, e.y);
|
|
@@ -32749,7 +33628,7 @@ var nB = 2, rB = 8e3, iB = [
|
|
|
32749
33628
|
};
|
|
32750
33629
|
// src/components/party-cursor.tsx
|
|
32751
33630
|
j();
|
|
32752
|
-
var
|
|
33631
|
+
var BV = 4, VV = 2500, HV = x`
|
|
32753
33632
|
position: fixed;
|
|
32754
33633
|
left: 0;
|
|
32755
33634
|
top: 0;
|
|
@@ -32776,7 +33655,7 @@ var sB = 4, cB = 2500, lB = x`
|
|
|
32776
33655
|
font-weight: 600;
|
|
32777
33656
|
white-space: nowrap;
|
|
32778
33657
|
}
|
|
32779
|
-
`,
|
|
33658
|
+
`, UV = () => {
|
|
32780
33659
|
let e = l_(), t = e.status === "active" ? e.role : void 0, [n] = Du(), i = Ou(), a = i ? `${n}?${i}` : n;
|
|
32781
33660
|
H(() => {
|
|
32782
33661
|
if (t !== "host") return;
|
|
@@ -32790,7 +33669,7 @@ var sB = 4, cB = 2500, lB = x`
|
|
|
32790
33669
|
r = {
|
|
32791
33670
|
x: Math.min(1, Math.max(0, t.clientX / window.innerWidth)),
|
|
32792
33671
|
y: Math.min(1, Math.max(0, t.clientY / window.innerHeight))
|
|
32793
|
-
}, !n && (n = setTimeout(i, Math.max(0, 1e3 /
|
|
33672
|
+
}, !n && (n = setTimeout(i, Math.max(0, 1e3 / BV - (Date.now() - e))));
|
|
32794
33673
|
};
|
|
32795
33674
|
return window.addEventListener("pointermove", a, { passive: !0 }), () => {
|
|
32796
33675
|
window.removeEventListener("pointermove", a), n && clearTimeout(n);
|
|
@@ -32812,10 +33691,10 @@ var sB = 4, cB = 2500, lB = x`
|
|
|
32812
33691
|
if (!o) return;
|
|
32813
33692
|
let e = setInterval(() => l(Date.now()), 500);
|
|
32814
33693
|
return () => clearInterval(e);
|
|
32815
|
-
}, [o]), t !== "guest" || !o || c - o.at >
|
|
33694
|
+
}, [o]), t !== "guest" || !o || c - o.at > VV) return null;
|
|
32816
33695
|
let d = e.status === "active" ? Q.nameOf(e.owner) : void 0;
|
|
32817
33696
|
return /* @__PURE__ */ A("div", {
|
|
32818
|
-
css:
|
|
33697
|
+
css: HV,
|
|
32819
33698
|
style: {
|
|
32820
33699
|
"--x": `${o.x * 100}vw`,
|
|
32821
33700
|
"--y": `${o.y * 100}vh`
|
|
@@ -32841,21 +33720,21 @@ var sB = 4, cB = 2500, lB = x`
|
|
|
32841
33720
|
};
|
|
32842
33721
|
// src/components/scroll-reset.tsx
|
|
32843
33722
|
j();
|
|
32844
|
-
var
|
|
33723
|
+
var WV = () => ({
|
|
32845
33724
|
pathname: location.pathname,
|
|
32846
33725
|
search: location.search
|
|
32847
|
-
}),
|
|
33726
|
+
}), GV = [
|
|
32848
33727
|
["pushState", "push"],
|
|
32849
33728
|
["replaceState", "replace"],
|
|
32850
33729
|
["popstate", "pop"]
|
|
32851
|
-
],
|
|
32852
|
-
let e = r(
|
|
33730
|
+
], KV = () => {
|
|
33731
|
+
let e = r(WV());
|
|
32853
33732
|
return H(() => {
|
|
32854
|
-
let t =
|
|
33733
|
+
let t = GV.map(([t, n]) => {
|
|
32855
33734
|
let r = () => {
|
|
32856
33735
|
let t = {
|
|
32857
33736
|
from: e.current,
|
|
32858
|
-
to:
|
|
33737
|
+
to: WV(),
|
|
32859
33738
|
kind: n,
|
|
32860
33739
|
asked: Ih()
|
|
32861
33740
|
};
|
|
@@ -32871,15 +33750,15 @@ var dB = () => ({
|
|
|
32871
33750
|
};
|
|
32872
33751
|
// src/router/index.tsx
|
|
32873
33752
|
j();
|
|
32874
|
-
var
|
|
33753
|
+
var qV = () => {
|
|
32875
33754
|
let { query: e } = Tu();
|
|
32876
33755
|
return /* @__PURE__ */ z(Ru, {
|
|
32877
33756
|
to: dd({ query: ud(e) }),
|
|
32878
33757
|
replace: !0
|
|
32879
33758
|
});
|
|
32880
|
-
},
|
|
33759
|
+
}, JV = () => (H(() => {
|
|
32881
33760
|
globalThis.close();
|
|
32882
|
-
}, []), /* @__PURE__ */ z("div", { children: "Logging in..." })),
|
|
33761
|
+
}, []), /* @__PURE__ */ z("div", { children: "Logging in..." })), YV = x`
|
|
32883
33762
|
display: flex;
|
|
32884
33763
|
flex-direction: column;
|
|
32885
33764
|
min-height: 100vh;
|
|
@@ -32887,12 +33766,12 @@ var mB = () => {
|
|
|
32887
33766
|
& > .content {
|
|
32888
33767
|
flex: 1;
|
|
32889
33768
|
}
|
|
32890
|
-
`,
|
|
33769
|
+
`, XV = x`
|
|
32891
33770
|
padding: calc(var(--stub-header-height) + 3rem) 3rem 4rem;
|
|
32892
|
-
`,
|
|
33771
|
+
`, ZV = () => /* @__PURE__ */ z(ju, {
|
|
32893
33772
|
hrefs: Vd,
|
|
32894
33773
|
children: /* @__PURE__ */ A("div", {
|
|
32895
|
-
css:
|
|
33774
|
+
css: YV,
|
|
32896
33775
|
children: [
|
|
32897
33776
|
/* @__PURE__ */ z(Q_, {}),
|
|
32898
33777
|
/* @__PURE__ */ z("div", {
|
|
@@ -32900,69 +33779,69 @@ var mB = () => {
|
|
|
32900
33779
|
children: /* @__PURE__ */ A(Lu, { children: [
|
|
32901
33780
|
/* @__PURE__ */ z(Pu, {
|
|
32902
33781
|
path: Vu(Z.HOME),
|
|
32903
|
-
component:
|
|
33782
|
+
component: RL
|
|
32904
33783
|
}),
|
|
32905
33784
|
/* @__PURE__ */ z(Pu, {
|
|
32906
33785
|
path: Vu(Z.MEDIA),
|
|
32907
|
-
component:
|
|
33786
|
+
component: RL
|
|
32908
33787
|
}),
|
|
32909
33788
|
/* @__PURE__ */ z(Pu, {
|
|
32910
33789
|
path: Vu(Z.TITLE),
|
|
32911
|
-
component:
|
|
33790
|
+
component: iR
|
|
32912
33791
|
}),
|
|
32913
33792
|
/* @__PURE__ */ z(Pu, {
|
|
32914
33793
|
path: Vu(Z.SEARCH),
|
|
32915
|
-
component:
|
|
33794
|
+
component: TR
|
|
32916
33795
|
}),
|
|
32917
33796
|
/* @__PURE__ */ z(Pu, {
|
|
32918
33797
|
path: Vu(Z.SEARCH_LEGACY),
|
|
32919
|
-
component:
|
|
33798
|
+
component: qV
|
|
32920
33799
|
}),
|
|
32921
33800
|
/* @__PURE__ */ z(Pu, {
|
|
32922
33801
|
path: Vu(Z.LEGAL),
|
|
32923
|
-
component:
|
|
33802
|
+
component: OR
|
|
32924
33803
|
}),
|
|
32925
33804
|
/* @__PURE__ */ z(Pu, {
|
|
32926
33805
|
path: Vu(Z.PRIVACY),
|
|
32927
|
-
component:
|
|
33806
|
+
component: PR
|
|
32928
33807
|
}),
|
|
32929
33808
|
/* @__PURE__ */ z(Pu, {
|
|
32930
33809
|
path: Vu(Z.SETTINGS),
|
|
32931
|
-
component:
|
|
33810
|
+
component: Pz
|
|
32932
33811
|
}),
|
|
32933
33812
|
/* @__PURE__ */ z(Pu, {
|
|
32934
33813
|
path: Vu(Z.WATCH),
|
|
32935
|
-
component:
|
|
33814
|
+
component: EB
|
|
32936
33815
|
}),
|
|
32937
33816
|
/* @__PURE__ */ z(Pu, {
|
|
32938
33817
|
path: Vu(Z.PARTY),
|
|
32939
|
-
component:
|
|
33818
|
+
component: kB
|
|
32940
33819
|
}),
|
|
32941
33820
|
/* @__PURE__ */ z(Pu, {
|
|
32942
33821
|
path: Vu(Z.DEBUG_TRACE),
|
|
32943
|
-
children: /* @__PURE__ */ z(
|
|
33822
|
+
children: /* @__PURE__ */ z(EV, {})
|
|
32944
33823
|
}),
|
|
32945
33824
|
/* @__PURE__ */ z(Pu, {
|
|
32946
33825
|
path: Vu(Z.LOGIN_CALLBACK),
|
|
32947
|
-
component:
|
|
33826
|
+
component: JV
|
|
32948
33827
|
}),
|
|
32949
33828
|
/* @__PURE__ */ z(Pu, { component: () => /* @__PURE__ */ z("div", {
|
|
32950
|
-
css:
|
|
33829
|
+
css: XV,
|
|
32951
33830
|
children: "404 No page found"
|
|
32952
33831
|
}) })
|
|
32953
33832
|
] })
|
|
32954
33833
|
}),
|
|
32955
33834
|
/* @__PURE__ */ z(ev, {}),
|
|
32956
33835
|
/* @__PURE__ */ z(nv, {}),
|
|
32957
|
-
/* @__PURE__ */ z(
|
|
32958
|
-
/* @__PURE__ */ z(
|
|
33836
|
+
/* @__PURE__ */ z(zV, {}),
|
|
33837
|
+
/* @__PURE__ */ z(UV, {}),
|
|
32959
33838
|
/* @__PURE__ */ z(p_, {}),
|
|
32960
|
-
/* @__PURE__ */ z(
|
|
33839
|
+
/* @__PURE__ */ z(KV, {})
|
|
32961
33840
|
]
|
|
32962
33841
|
})
|
|
32963
33842
|
});
|
|
32964
33843
|
L(), j();
|
|
32965
|
-
var
|
|
33844
|
+
var QV = x`
|
|
32966
33845
|
display: flex;
|
|
32967
33846
|
align-items: center;
|
|
32968
33847
|
justify-content: center;
|
|
@@ -33011,10 +33890,10 @@ var yB = x`
|
|
|
33011
33890
|
background: rgba(255, 255, 255, 0.08);
|
|
33012
33891
|
}
|
|
33013
33892
|
}
|
|
33014
|
-
`,
|
|
33893
|
+
`, $V = (e, t) => `route: ${t}\nmessage: ${e.message}\nstack: ${e.stack ?? "(no stack)"}`, eH = ({ error: e, route: t }) => {
|
|
33015
33894
|
let [n, r] = B(!1);
|
|
33016
33895
|
return /* @__PURE__ */ z("div", {
|
|
33017
|
-
css:
|
|
33896
|
+
css: QV,
|
|
33018
33897
|
children: /* @__PURE__ */ A("div", {
|
|
33019
33898
|
className: "panel",
|
|
33020
33899
|
children: [
|
|
@@ -33032,7 +33911,7 @@ var yB = x`
|
|
|
33032
33911
|
}), /* @__PURE__ */ z("button", {
|
|
33033
33912
|
type: "button",
|
|
33034
33913
|
onClick: () => {
|
|
33035
|
-
let n = navigator.clipboard?.writeText(
|
|
33914
|
+
let n = navigator.clipboard?.writeText($V(e, t));
|
|
33036
33915
|
n && n.then(() => r(!0)).catch((e) => console.error(Error("the failure details could not be copied", { cause: e })));
|
|
33037
33916
|
},
|
|
33038
33917
|
children: n ? "Copied" : "Copy details"
|
|
@@ -33041,7 +33920,7 @@ var yB = x`
|
|
|
33041
33920
|
]
|
|
33042
33921
|
})
|
|
33043
33922
|
});
|
|
33044
|
-
},
|
|
33923
|
+
}, tH = class extends oe {
|
|
33045
33924
|
state = {
|
|
33046
33925
|
error: null,
|
|
33047
33926
|
route: this.props.route
|
|
@@ -33059,14 +33938,14 @@ var yB = x`
|
|
|
33059
33938
|
console.error(Error(`the ${this.props.route} route failed to render`, { cause: e }));
|
|
33060
33939
|
}
|
|
33061
33940
|
render() {
|
|
33062
|
-
return this.state.error ? /* @__PURE__ */ z(
|
|
33941
|
+
return this.state.error ? /* @__PURE__ */ z(eH, {
|
|
33063
33942
|
error: this.state.error,
|
|
33064
33943
|
route: this.props.route
|
|
33065
33944
|
}) : this.props.children;
|
|
33066
33945
|
}
|
|
33067
|
-
},
|
|
33946
|
+
}, nH = ({ children: e }) => {
|
|
33068
33947
|
let [t] = Du();
|
|
33069
|
-
return /* @__PURE__ */ z(
|
|
33948
|
+
return /* @__PURE__ */ z(tH, {
|
|
33070
33949
|
route: t,
|
|
33071
33950
|
children: e
|
|
33072
33951
|
});
|
|
@@ -33074,19 +33953,19 @@ var yB = x`
|
|
|
33074
33953
|
// src/store-export.ts
|
|
33075
33954
|
xe(location.href) && (window.__stubExportStore = (e) => yt(e ?? { excludeOrigins: [] }));
|
|
33076
33955
|
// src/answers-export.ts
|
|
33077
|
-
var
|
|
33078
|
-
Re(location.href) && (window.__stubExportAnswers = () => Ct(), window.__stubExportAsks = () => pt(), window.__stubGraphCounts = () => ot()), tt(location.href) && (window.__stubGraphQL = (e, t, n) =>
|
|
33956
|
+
var rH = async (e, t = {}, n = {}) => UB(Ye, e, t, { settleMs: n.settleMs });
|
|
33957
|
+
Re(location.href) && (window.__stubExportAnswers = () => Ct(), window.__stubExportAsks = () => pt(), window.__stubGraphCounts = () => ot()), tt(location.href) && (window.__stubGraphQL = (e, t, n) => rH(e, t, n));
|
|
33079
33958
|
// src/utils/forget-api-keys.ts
|
|
33080
|
-
var
|
|
33959
|
+
var iH = "stub.apikeys";
|
|
33081
33960
|
L(), ((e = () => localStorage) => {
|
|
33082
33961
|
try {
|
|
33083
|
-
e().removeItem(
|
|
33962
|
+
e().removeItem(iH);
|
|
33084
33963
|
} catch {}
|
|
33085
33964
|
})(), Es({
|
|
33086
33965
|
check: nt,
|
|
33087
33966
|
focused: _t
|
|
33088
33967
|
}), As(Xa);
|
|
33089
|
-
var
|
|
33968
|
+
var aH = x`
|
|
33090
33969
|
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,500;1,600;1,700;1,800;1,900&family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
|
|
33091
33970
|
|
|
33092
33971
|
:root {
|
|
@@ -33148,8 +34027,8 @@ var EB = x`
|
|
|
33148
34027
|
}
|
|
33149
34028
|
`;
|
|
33150
34029
|
Q.resume();
|
|
33151
|
-
var
|
|
33152
|
-
|
|
34030
|
+
var oH = document.createElement("div");
|
|
34031
|
+
oH.id = "stub-root", ie(/* @__PURE__ */ A(jr, {
|
|
33153
34032
|
value: Gl,
|
|
33154
|
-
children: [/* @__PURE__ */ z(h, { styles:
|
|
33155
|
-
}), document.body.appendChild(
|
|
34033
|
+
children: [/* @__PURE__ */ z(h, { styles: aH }), /* @__PURE__ */ z(nH, { children: /* @__PURE__ */ z(ZV, {}) })]
|
|
34034
|
+
}), document.body.appendChild(oH));
|