@banou/stub 0.0.18 → 0.0.19
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/.well-known/fkn.json +1 -1
- package/build/assets/lib-Preview-B6uZKyhl.js +82 -0
- package/build/assets/lib-account-BuVN6Bsx.js +41 -0
- package/build/assets/lib-account-Cw8yCZtf.js +2 -0
- package/build/assets/lib-api-DLvscoll-DhlBp9Wz.js +312 -0
- package/build/assets/lib-api-DVwR-22s.js +2 -0
- package/build/assets/lib-build-DEOZ3A7n.js +1846 -0
- package/build/assets/lib-compat-D8G4_Lzi.js +860 -0
- package/build/assets/lib-custom-media-element-CnANKrGl.js +217 -0
- package/build/assets/lib-dash.all.min-CDvdorbj.js +27251 -0
- package/build/assets/lib-dist-Dv8d3Kr0.js +7 -0
- package/build/assets/lib-dist-S8Gxnnq-.js +12468 -0
- package/build/assets/lib-dist-T0QlKbbk.js +18578 -0
- package/build/assets/lib-dist-xBHT3Lfz.js +911 -0
- package/build/assets/lib-react-BEg4mBBK.js +112 -0
- package/build/assets/lib-react-C0OCUIWX.js +434 -0
- package/build/assets/lib-react-CAkOlDha.js +367 -0
- package/build/assets/lib-react-CGlZXIjl.js +2187 -0
- package/build/assets/lib-react-CLVoi_ZM.js +334 -0
- package/build/assets/lib-react-DUxKSzCt.js +311 -0
- package/build/assets/lib-react-QvmpnEVK.js +334 -0
- package/build/assets/lib-react-WTnxAo6F.js +202 -0
- package/build/assets/lib-remote-DeY2A2G7.js +416 -0
- package/build/assets/lib-remote-DxEZmpd0.js +2 -0
- package/build/assets/lib-rolldown-runtime-B1bRi_D7.js +27 -0
- package/build/assets/lib-worker-anime-index-Jbe1K3rX.js +1 -0
- package/build/assets/lib-worker-anime-seasons-CVM0BQGM.js +1 -0
- package/build/assets/lib-worker-index-C7ynIZYg.js +1401 -0
- package/build/assets/{main-C8JOinyp.js → main-q4eQ72Te.js} +1 -1
- package/build/fkn.json +1 -1
- package/build/index.html +1 -1
- package/build/index.js +40639 -0
- package/fkn.json +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
//#region node_modules/custom-media-element/dist/custom-media-element.js
|
|
2
|
+
var e = /* @__PURE__ */ "abort.canplay.canplaythrough.durationchange.emptied.encrypted.ended.error.loadeddata.loadedmetadata.loadstart.pause.play.playing.progress.ratechange.seeked.seeking.stalled.suspend.timeupdate.volumechange.waiting.waitingforkey.resize.enterpictureinpicture.leavepictureinpicture.webkitbeginfullscreen.webkitendfullscreen.webkitpresentationmodechanged".split("."), t = [
|
|
3
|
+
"autopictureinpicture",
|
|
4
|
+
"disablepictureinpicture",
|
|
5
|
+
"disableremoteplayback",
|
|
6
|
+
"autoplay",
|
|
7
|
+
"controls",
|
|
8
|
+
"controlslist",
|
|
9
|
+
"crossorigin",
|
|
10
|
+
"loop",
|
|
11
|
+
"muted",
|
|
12
|
+
"playsinline",
|
|
13
|
+
"poster",
|
|
14
|
+
"preload",
|
|
15
|
+
"src"
|
|
16
|
+
];
|
|
17
|
+
function n(e) {
|
|
18
|
+
return `
|
|
19
|
+
<style>
|
|
20
|
+
:host {
|
|
21
|
+
display: inline-flex;
|
|
22
|
+
line-height: 0;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
justify-content: end;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
audio {
|
|
28
|
+
width: 100%;
|
|
29
|
+
}
|
|
30
|
+
</style>
|
|
31
|
+
<slot name="media">
|
|
32
|
+
<audio${o(e)}></audio>
|
|
33
|
+
</slot>
|
|
34
|
+
<slot></slot>
|
|
35
|
+
`;
|
|
36
|
+
}
|
|
37
|
+
function r(e) {
|
|
38
|
+
return `
|
|
39
|
+
<style>
|
|
40
|
+
:host {
|
|
41
|
+
display: inline-block;
|
|
42
|
+
line-height: 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
video {
|
|
46
|
+
max-width: 100%;
|
|
47
|
+
max-height: 100%;
|
|
48
|
+
min-width: 100%;
|
|
49
|
+
min-height: 100%;
|
|
50
|
+
object-fit: var(--media-object-fit, contain);
|
|
51
|
+
object-position: var(--media-object-position, 50% 50%);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
video::-webkit-media-text-track-container {
|
|
55
|
+
transform: var(--media-webkit-text-track-transform);
|
|
56
|
+
transition: var(--media-webkit-text-track-transition);
|
|
57
|
+
}
|
|
58
|
+
</style>
|
|
59
|
+
<slot name="media">
|
|
60
|
+
<video${o(e)}></video>
|
|
61
|
+
</slot>
|
|
62
|
+
<slot></slot>
|
|
63
|
+
`;
|
|
64
|
+
}
|
|
65
|
+
function i(i, { tag: o, is: c }) {
|
|
66
|
+
let l = globalThis.document?.createElement?.(o, { is: c }), u = l ? a(l) : [];
|
|
67
|
+
return class a extends i {
|
|
68
|
+
static getTemplateHTML = o.endsWith("audio") ? n : r;
|
|
69
|
+
static shadowRootOptions = { mode: "open" };
|
|
70
|
+
static Events = e;
|
|
71
|
+
static #e = !1;
|
|
72
|
+
static get observedAttributes() {
|
|
73
|
+
return a.#t(), [...l?.constructor?.observedAttributes ?? [], ...t];
|
|
74
|
+
}
|
|
75
|
+
static #t() {
|
|
76
|
+
if (this.#e) return;
|
|
77
|
+
this.#e = !0;
|
|
78
|
+
let e = new Set(this.observedAttributes);
|
|
79
|
+
e.delete("muted");
|
|
80
|
+
for (let t of u) if (!(t in this.prototype)) if (typeof l[t] == "function") this.prototype[t] = function(...e) {
|
|
81
|
+
return this.#o(), this.call ? this.call(t, ...e) : (this.nativeEl?.[t])?.apply(this.nativeEl, e);
|
|
82
|
+
};
|
|
83
|
+
else {
|
|
84
|
+
let n = { get() {
|
|
85
|
+
this.#o();
|
|
86
|
+
let n = t.toLowerCase();
|
|
87
|
+
if (e.has(n)) {
|
|
88
|
+
let e = this.getAttribute(n);
|
|
89
|
+
return e === null ? !1 : e === "" ? !0 : e;
|
|
90
|
+
}
|
|
91
|
+
return this.get?.(t) ?? this.nativeEl?.[t];
|
|
92
|
+
} };
|
|
93
|
+
t !== t.toUpperCase() && (n.set = function(n) {
|
|
94
|
+
this.#o();
|
|
95
|
+
let r = t.toLowerCase();
|
|
96
|
+
if (e.has(r)) {
|
|
97
|
+
n === !0 || n === !1 || n == null ? this.toggleAttribute(r, !!n) : this.setAttribute(r, n);
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
if (this.set) {
|
|
101
|
+
this.set(t, n);
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
this.nativeEl && (this.nativeEl[t] = n);
|
|
105
|
+
}), Object.defineProperty(this.prototype, t, n);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
#n = !1;
|
|
109
|
+
#r = null;
|
|
110
|
+
#i = /* @__PURE__ */ new Map();
|
|
111
|
+
#a;
|
|
112
|
+
get;
|
|
113
|
+
set;
|
|
114
|
+
call;
|
|
115
|
+
get nativeEl() {
|
|
116
|
+
return this.#o(), this.#r ?? this.querySelector(":scope > [slot=media]") ?? this.querySelector(o) ?? this.shadowRoot?.querySelector(o) ?? null;
|
|
117
|
+
}
|
|
118
|
+
set nativeEl(e) {
|
|
119
|
+
this.#r = e;
|
|
120
|
+
}
|
|
121
|
+
get defaultMuted() {
|
|
122
|
+
return this.hasAttribute("muted");
|
|
123
|
+
}
|
|
124
|
+
set defaultMuted(e) {
|
|
125
|
+
this.toggleAttribute("muted", e);
|
|
126
|
+
}
|
|
127
|
+
get src() {
|
|
128
|
+
return this.getAttribute("src");
|
|
129
|
+
}
|
|
130
|
+
set src(e) {
|
|
131
|
+
this.setAttribute("src", `${e}`);
|
|
132
|
+
}
|
|
133
|
+
get preload() {
|
|
134
|
+
return this.getAttribute("preload") ?? this.nativeEl?.preload;
|
|
135
|
+
}
|
|
136
|
+
set preload(e) {
|
|
137
|
+
this.setAttribute("preload", `${e}`);
|
|
138
|
+
}
|
|
139
|
+
#o() {
|
|
140
|
+
this.#n || (this.#n = !0, this.init());
|
|
141
|
+
}
|
|
142
|
+
init() {
|
|
143
|
+
if (!this.shadowRoot) {
|
|
144
|
+
this.attachShadow({ mode: "open" });
|
|
145
|
+
let e = s(this.attributes);
|
|
146
|
+
c && (e.is = c), o && (e.part = o), this.shadowRoot.innerHTML = this.constructor.getTemplateHTML(e);
|
|
147
|
+
}
|
|
148
|
+
this.nativeEl.muted = this.hasAttribute("muted");
|
|
149
|
+
for (let e of u) this.#u(e);
|
|
150
|
+
this.#a = new MutationObserver(this.#c.bind(this)), this.shadowRoot.addEventListener("slotchange", () => this.#s()), this.#s();
|
|
151
|
+
for (let e of this.constructor.Events) this.shadowRoot.addEventListener(e, this, !0);
|
|
152
|
+
}
|
|
153
|
+
handleEvent(e) {
|
|
154
|
+
e.target === this.nativeEl && this.dispatchEvent(new CustomEvent(e.type, { detail: e.detail }));
|
|
155
|
+
}
|
|
156
|
+
#s() {
|
|
157
|
+
let e = new Map(this.#i);
|
|
158
|
+
((this.shadowRoot?.querySelector("slot:not([name])"))?.assignedElements({ flatten: !0 }).filter((e) => ["track", "source"].includes(e.localName))).forEach((t) => {
|
|
159
|
+
e.delete(t);
|
|
160
|
+
let n = this.#i.get(t);
|
|
161
|
+
n || (n = t.cloneNode(), this.#i.set(t, n), this.#a?.observe(t, { attributes: !0 })), this.nativeEl?.append(n), this.#l(n);
|
|
162
|
+
}), e.forEach((e, t) => {
|
|
163
|
+
e.remove(), this.#i.delete(t);
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
#c(e) {
|
|
167
|
+
for (let t of e) if (t.type === "attributes") {
|
|
168
|
+
let { target: e, attributeName: n } = t, r = this.#i.get(e);
|
|
169
|
+
r && n && (r.setAttribute(n, e.getAttribute(n) ?? ""), this.#l(r));
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
#l(e) {
|
|
173
|
+
e && e.localName === "track" && e.default && (e.kind === "chapters" || e.kind === "metadata") && e.track.mode === "disabled" && (e.track.mode = "hidden");
|
|
174
|
+
}
|
|
175
|
+
#u(e) {
|
|
176
|
+
if (Object.prototype.hasOwnProperty.call(this, e)) {
|
|
177
|
+
let t = this[e];
|
|
178
|
+
delete this[e], this[e] = t;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
attributeChangedCallback(e, t, n) {
|
|
182
|
+
this.#o(), this.#d(e, t, n);
|
|
183
|
+
}
|
|
184
|
+
#d(e, t, n) {
|
|
185
|
+
["id", "class"].includes(e) || !a.observedAttributes.includes(e) && this.constructor.observedAttributes.includes(e) || (n === null ? this.nativeEl?.removeAttribute(e) : this.nativeEl?.getAttribute(e) !== n && this.nativeEl?.setAttribute(e, n));
|
|
186
|
+
}
|
|
187
|
+
connectedCallback() {
|
|
188
|
+
this.#o();
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
function a(e) {
|
|
193
|
+
let t = [];
|
|
194
|
+
for (let n = Object.getPrototypeOf(e); n && n !== HTMLElement.prototype; n = Object.getPrototypeOf(n)) {
|
|
195
|
+
let e = Object.getOwnPropertyNames(n);
|
|
196
|
+
t.push(...e);
|
|
197
|
+
}
|
|
198
|
+
return t;
|
|
199
|
+
}
|
|
200
|
+
function o(e) {
|
|
201
|
+
let n = "";
|
|
202
|
+
for (let r in e) {
|
|
203
|
+
if (!t.includes(r)) continue;
|
|
204
|
+
let i = e[r];
|
|
205
|
+
i === "" ? n += ` ${r}` : n += ` ${r}="${i}"`;
|
|
206
|
+
}
|
|
207
|
+
return n;
|
|
208
|
+
}
|
|
209
|
+
function s(e) {
|
|
210
|
+
let t = {};
|
|
211
|
+
for (let n of e) t[n.name] = n.value;
|
|
212
|
+
return t;
|
|
213
|
+
}
|
|
214
|
+
var c = i(globalThis.HTMLElement ?? class {}, { tag: "video" });
|
|
215
|
+
i(globalThis.HTMLElement ?? class {}, { tag: "audio" });
|
|
216
|
+
//#endregion
|
|
217
|
+
export { c as t };
|