@agentdocumentformat/cli 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +45 -0
- package/dist/adf.mjs +162 -0
- package/dist/chunks/APEv2Parser-2CNNHMXV.mjs +22 -0
- package/dist/chunks/AiffParser-7BR4RL6G.mjs +162 -0
- package/dist/chunks/App-L5L37JI5.mjs +16747 -0
- package/dist/chunks/AsfParser-VVRSLFOM.mjs +538 -0
- package/dist/chunks/DsdiffParser-CMD4AX7A.mjs +156 -0
- package/dist/chunks/DsfParser-UOGZDS2M.mjs +94 -0
- package/dist/chunks/FlacParser-HB3T3CD4.mjs +23 -0
- package/dist/chunks/MP4Parser-66HBRUSX.mjs +973 -0
- package/dist/chunks/MatroskaParser-J3HUIMEW.mjs +579 -0
- package/dist/chunks/MpegParser-YW6LIUEW.mjs +442 -0
- package/dist/chunks/MusepackParser-PAUSXP7D.mjs +252 -0
- package/dist/chunks/OggParser-NUBV3GWC.mjs +359 -0
- package/dist/chunks/WavPackParser-WQAGT7TC.mjs +171 -0
- package/dist/chunks/WaveParser-EWLQVDX4.mjs +238 -0
- package/dist/chunks/adf-schema-JRU2BTOG.mjs +62 -0
- package/dist/chunks/build-QF5W473T.mjs +60 -0
- package/dist/chunks/chatgpt-subscription-BQGWYZXE.mjs +23 -0
- package/dist/chunks/chunk-2DIECGFL.mjs +6 -0
- package/dist/chunks/chunk-2NAP2ZF7.mjs +60 -0
- package/dist/chunks/chunk-3AT7IIP7.mjs +25696 -0
- package/dist/chunks/chunk-3GNIDM53.mjs +35 -0
- package/dist/chunks/chunk-3M4ZPOA3.mjs +1477 -0
- package/dist/chunks/chunk-4MQPTCXY.mjs +510 -0
- package/dist/chunks/chunk-5PO5PKRV.mjs +366 -0
- package/dist/chunks/chunk-5QU5VY7N.mjs +52 -0
- package/dist/chunks/chunk-5W7KES6P.mjs +436 -0
- package/dist/chunks/chunk-62NE4LG4.mjs +61 -0
- package/dist/chunks/chunk-64OKE4X3.mjs +45 -0
- package/dist/chunks/chunk-6GJ4QHRI.mjs +1278 -0
- package/dist/chunks/chunk-6VQEXLE2.mjs +144 -0
- package/dist/chunks/chunk-6XUV6EK6.mjs +41 -0
- package/dist/chunks/chunk-776TSXEP.mjs +43 -0
- package/dist/chunks/chunk-7CV2SA3H.mjs +285 -0
- package/dist/chunks/chunk-7MTRVW2U.mjs +3103 -0
- package/dist/chunks/chunk-7N2R2VCG.mjs +1434 -0
- package/dist/chunks/chunk-7T2YMTWL.mjs +374 -0
- package/dist/chunks/chunk-7XYNI52E.mjs +149 -0
- package/dist/chunks/chunk-APHX6HSV.mjs +7731 -0
- package/dist/chunks/chunk-APRU6PHC.mjs +40 -0
- package/dist/chunks/chunk-AUYKRQPJ.mjs +499 -0
- package/dist/chunks/chunk-DXWDD5XJ.mjs +136 -0
- package/dist/chunks/chunk-EWL5FG4I.mjs +39 -0
- package/dist/chunks/chunk-EYX2YLJW.mjs +117 -0
- package/dist/chunks/chunk-F5ELW46V.mjs +27 -0
- package/dist/chunks/chunk-G426FACA.mjs +49 -0
- package/dist/chunks/chunk-GEKSJHIV.mjs +2472 -0
- package/dist/chunks/chunk-HBUENVQL.mjs +570 -0
- package/dist/chunks/chunk-HPVFJYXR.mjs +112 -0
- package/dist/chunks/chunk-HWLWPXQ7.mjs +721 -0
- package/dist/chunks/chunk-I2HJYHFT.mjs +665 -0
- package/dist/chunks/chunk-I3UYSITV.mjs +68 -0
- package/dist/chunks/chunk-IC4JDZCI.mjs +3864 -0
- package/dist/chunks/chunk-IHDDCZBS.mjs +112 -0
- package/dist/chunks/chunk-IIGMZHQQ.mjs +10416 -0
- package/dist/chunks/chunk-KWFOS5WC.mjs +41 -0
- package/dist/chunks/chunk-LAZIXV2F.mjs +5290 -0
- package/dist/chunks/chunk-LFMB4PAA.mjs +10814 -0
- package/dist/chunks/chunk-M2RX3S2T.mjs +49 -0
- package/dist/chunks/chunk-M3WPIJYM.mjs +65 -0
- package/dist/chunks/chunk-NBTUWMGP.mjs +263 -0
- package/dist/chunks/chunk-NGK6PVSF.mjs +2676 -0
- package/dist/chunks/chunk-NZ7JTHEO.mjs +85 -0
- package/dist/chunks/chunk-OQN33RGQ.mjs +52 -0
- package/dist/chunks/chunk-RIX34QHC.mjs +2935 -0
- package/dist/chunks/chunk-SGUTYISF.mjs +16 -0
- package/dist/chunks/chunk-SLJ5L7PY.mjs +1473 -0
- package/dist/chunks/chunk-SLUKGXKH.mjs +68 -0
- package/dist/chunks/chunk-TMT32MXT.mjs +419 -0
- package/dist/chunks/chunk-UYY5M2PB.mjs +151 -0
- package/dist/chunks/chunk-VAUOM3IN.mjs +298 -0
- package/dist/chunks/chunk-VMHTYDH4.mjs +172 -0
- package/dist/chunks/chunk-VZS54AA5.mjs +200 -0
- package/dist/chunks/chunk-WFQUVXML.mjs +295 -0
- package/dist/chunks/chunk-X34PDRUH.mjs +809 -0
- package/dist/chunks/chunk-XNPZBLYL.mjs +33 -0
- package/dist/chunks/chunk-XX7OSWTO.mjs +157 -0
- package/dist/chunks/chunk-XYTWGHFS.mjs +600 -0
- package/dist/chunks/chunk-XYV3VCIX.mjs +336 -0
- package/dist/chunks/chunk-Y5ZLKFLE.mjs +1469 -0
- package/dist/chunks/chunk-ZJKXHM4Q.mjs +230 -0
- package/dist/chunks/cli-TCMBNZF6.mjs +1030 -0
- package/dist/chunks/commands-DTEKM4ZL.mjs +20 -0
- package/dist/chunks/daemon-ZC3FZ2P4.mjs +112449 -0
- package/dist/chunks/daemon-control-WDX7PMTC.mjs +300 -0
- package/dist/chunks/daemon-token-WRSULP7G.mjs +23 -0
- package/dist/chunks/devtools-H7CI2ZVG.mjs +85 -0
- package/dist/chunks/discord-IWDQJA7A.mjs +70588 -0
- package/dist/chunks/dist-C57KYFS2.mjs +4952 -0
- package/dist/chunks/dist-I3XBAGDL.mjs +11 -0
- package/dist/chunks/email-V4Q4VJON.mjs +58679 -0
- package/dist/chunks/environment-NX277MQG.mjs +15 -0
- package/dist/chunks/grok-subscription-4PYX7TBF.mjs +19 -0
- package/dist/chunks/layout-EPJQNFAI.mjs +22 -0
- package/dist/chunks/lib-N7FCZWKH.mjs +4038 -0
- package/dist/chunks/open-OTQDGDH5.mjs +36 -0
- package/dist/chunks/parser-JVY2PWSM.mjs +19 -0
- package/dist/chunks/pipeline-executor-BHBSJX2K.mjs +19 -0
- package/dist/chunks/react-IUIDQ5LX.mjs +11 -0
- package/dist/chunks/screen-54BUTYCW.mjs +27 -0
- package/dist/chunks/slack-3L5QTDZX.mjs +8113 -0
- package/dist/chunks/store-WR7TZJZS.mjs +32 -0
- package/dist/chunks/telegram-5ISVFBV3.mjs +14918 -0
- package/dist/chunks/terminal-O5WO7C5U.mjs +48 -0
- package/dist/chunks/theme-NORU4J74.mjs +20 -0
- package/dist/chunks/themes-F2FKU7CP.mjs +23 -0
- package/dist/chunks/token-6G3HCMNX.mjs +54 -0
- package/dist/chunks/token-util-UXYSDQIW.mjs +12 -0
- package/dist/chunks/tui-ODVYUIMT.mjs +197 -0
- package/dist/chunks/welcome-XHXFV7SH.mjs +32 -0
- package/dist/chunks/whatsapp-XSAMNGPJ.mjs +85412 -0
- package/dist/chunks/xterm-headless-YF53XWXE.mjs +3353 -0
- package/package.json +53 -0
- package/resources/wasm/coreutils.LICENSE +18 -0
- package/resources/wasm/coreutils.wasm +0 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { createRequire as __adfCreateRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __adfFileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __adfDirname } from 'node:path';
|
|
4
|
+
const require = __adfCreateRequire(import.meta.url);
|
|
5
|
+
const __filename = __adfFileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __adfDirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
startCallbackServer
|
|
9
|
+
} from "./chunk-2NAP2ZF7.mjs";
|
|
10
|
+
import {
|
|
11
|
+
__export
|
|
12
|
+
} from "./chunk-M2RX3S2T.mjs";
|
|
13
|
+
|
|
14
|
+
// src/main/cli/auth-flow.ts
|
|
15
|
+
var auth_flow_exports = {};
|
|
16
|
+
__export(auth_flow_exports, {
|
|
17
|
+
AUTH_POLL_INTERVAL_MS: () => AUTH_POLL_INTERVAL_MS,
|
|
18
|
+
AUTH_PROVIDERS: () => AUTH_PROVIDERS,
|
|
19
|
+
AUTH_PROVIDER_LABELS: () => AUTH_PROVIDER_LABELS,
|
|
20
|
+
RELAY_CALLBACK_TIMEOUT_MS: () => RELAY_CALLBACK_TIMEOUT_MS,
|
|
21
|
+
browserLaunchCommand: () => browserLaunchCommand,
|
|
22
|
+
daemonIsLocal: () => daemonIsLocal,
|
|
23
|
+
loginChatGpt: () => loginChatGpt,
|
|
24
|
+
loginGrok: () => loginGrok,
|
|
25
|
+
normalizeAuthProvider: () => normalizeAuthProvider,
|
|
26
|
+
openBrowser: () => openBrowser,
|
|
27
|
+
waitForAuth: () => waitForAuth
|
|
28
|
+
});
|
|
29
|
+
import { spawn as nodeSpawn } from "child_process";
|
|
30
|
+
var AUTH_PROVIDERS = ["chatgpt", "grok"], AUTH_PROVIDER_LABELS = {
|
|
31
|
+
chatgpt: "ChatGPT",
|
|
32
|
+
grok: "Grok"
|
|
33
|
+
}, RELAY_CALLBACK_TIMEOUT_MS = 300 * 1e3, AUTH_POLL_INTERVAL_MS = 2e3, LOOPBACK_HOSTS = /* @__PURE__ */ new Set(["localhost", "127.0.0.1", "::1", "[::1]"]);
|
|
34
|
+
function normalizeAuthProvider(value) {
|
|
35
|
+
switch (value?.toLowerCase()) {
|
|
36
|
+
case "chatgpt":
|
|
37
|
+
case "openai":
|
|
38
|
+
case "codex":
|
|
39
|
+
return "chatgpt";
|
|
40
|
+
case "grok":
|
|
41
|
+
case "xai":
|
|
42
|
+
return "grok";
|
|
43
|
+
default:
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
function daemonIsLocal(daemonUrl) {
|
|
48
|
+
try {
|
|
49
|
+
return LOOPBACK_HOSTS.has(new URL(daemonUrl).hostname);
|
|
50
|
+
} catch {
|
|
51
|
+
return !1;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function browserLaunchCommand(url, platform = process.platform) {
|
|
55
|
+
return platform === "win32" ? { command: "rundll32", args: ["url.dll,FileProtocolHandler", url] } : platform === "darwin" ? { command: "open", args: [url] } : { command: "xdg-open", args: [url] };
|
|
56
|
+
}
|
|
57
|
+
function openBrowser(url, deps = {}) {
|
|
58
|
+
let { command, args } = browserLaunchCommand(url, deps.platform);
|
|
59
|
+
try {
|
|
60
|
+
let child = (deps.spawn ?? nodeSpawn)(command, args, { detached: !0, stdio: "ignore", windowsHide: !0 });
|
|
61
|
+
child.on("error", () => {
|
|
62
|
+
}), child.unref();
|
|
63
|
+
} catch {
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
var CANCELLED = { ok: !1, error: "Sign-in cancelled", cancelled: !0 };
|
|
67
|
+
function isRecord(value) {
|
|
68
|
+
return typeof value == "object" && value !== null && !Array.isArray(value);
|
|
69
|
+
}
|
|
70
|
+
function abortableSleep(ms, signal) {
|
|
71
|
+
return new Promise((resolve) => {
|
|
72
|
+
if (signal?.aborted) {
|
|
73
|
+
resolve();
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
let timer = setTimeout(done, ms);
|
|
77
|
+
function done() {
|
|
78
|
+
clearTimeout(timer), signal?.removeEventListener("abort", done), resolve();
|
|
79
|
+
}
|
|
80
|
+
signal?.addEventListener("abort", done, { once: !0 });
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
async function loginChatGpt(deps, opts) {
|
|
84
|
+
let relay = opts.mode === "relay" ? !0 : opts.mode === "loopback" ? !1 : !daemonIsLocal(opts.daemonUrl), open = deps.openBrowser ?? openBrowser;
|
|
85
|
+
if (!relay) {
|
|
86
|
+
let data = await deps.request("POST", "/auth/chatgpt/start", { mode: "loopback" }), authUrl = isRecord(data) && typeof data.authUrl == "string" ? data.authUrl : "";
|
|
87
|
+
return opts.onStart({ mode: "loopback", authUrl, raw: data }), deps.signal?.aborted ? CANCELLED : (authUrl && open(authUrl), waitForAuth(deps, "chatgpt", RELAY_CALLBACK_TIMEOUT_MS));
|
|
88
|
+
}
|
|
89
|
+
let server = await (deps.startCallbackServer ?? (() => startCallbackServer(RELAY_CALLBACK_TIMEOUT_MS)))();
|
|
90
|
+
try {
|
|
91
|
+
let redirectUri = `http://localhost:${server.port}/auth/callback`, started = await deps.request("POST", "/auth/chatgpt/start", { mode: "relay", redirectUri });
|
|
92
|
+
if (!isRecord(started) || typeof started.flowId != "string" || typeof started.authUrl != "string")
|
|
93
|
+
throw new Error("Daemon did not return a relay auth flow \u2014 it may be running an older build");
|
|
94
|
+
if (opts.onStart({ mode: "relay", authUrl: started.authUrl, redirectUri, raw: started }), deps.signal?.aborted) return CANCELLED;
|
|
95
|
+
open(started.authUrl);
|
|
96
|
+
let callback = await raceAbort(server.waitForCallback(), deps.signal);
|
|
97
|
+
if (!callback) return CANCELLED;
|
|
98
|
+
let done = await deps.request("POST", "/auth/chatgpt/complete", { flowId: started.flowId, code: callback.code, state: callback.state }), status = isRecord(done) && isRecord(done.status) ? done.status : {};
|
|
99
|
+
return { ok: !0, email: typeof status.email == "string" ? status.email : void 0, raw: done };
|
|
100
|
+
} finally {
|
|
101
|
+
server.close();
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
async function loginGrok(deps, opts) {
|
|
105
|
+
let data = await deps.request("POST", "/auth/grok/start");
|
|
106
|
+
if (!isRecord(data)) throw new Error("Unexpected response from /auth/grok/start");
|
|
107
|
+
let userCode = typeof data.userCode == "string" ? data.userCode : "", verificationUri = typeof data.verificationUriComplete == "string" && data.verificationUriComplete ? data.verificationUriComplete : typeof data.verificationUri == "string" ? data.verificationUri : "", expiresInSec = typeof data.expiresIn == "number" && data.expiresIn > 0 ? data.expiresIn : 900;
|
|
108
|
+
return opts.onStart({ userCode, verificationUri, expiresInSec, raw: data }), deps.signal?.aborted ? CANCELLED : (verificationUri && (deps.openBrowser ?? openBrowser)(verificationUri), waitForAuth(deps, "grok", expiresInSec * 1e3));
|
|
109
|
+
}
|
|
110
|
+
async function waitForAuth(deps, provider, timeoutMs) {
|
|
111
|
+
let sleep = deps.sleep ?? ((ms) => abortableSleep(ms, deps.signal)), deadline = Date.now() + timeoutMs;
|
|
112
|
+
for (; Date.now() < deadline; ) {
|
|
113
|
+
if (await sleep(AUTH_POLL_INTERVAL_MS), deps.signal?.aborted) return CANCELLED;
|
|
114
|
+
let status = await deps.request("GET", `/auth/${provider}/status`);
|
|
115
|
+
if (deps.signal?.aborted) return CANCELLED;
|
|
116
|
+
if (isRecord(status)) {
|
|
117
|
+
if (status.authenticated === !0) return { ok: !0, email: typeof status.email == "string" ? status.email : void 0, raw: status };
|
|
118
|
+
if (typeof status.flowError == "string" && status.flowError) return { ok: !1, error: status.flowError };
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
return { ok: !1, error: `Timed out waiting for ${AUTH_PROVIDER_LABELS[provider]} sign-in`, timedOut: !0 };
|
|
122
|
+
}
|
|
123
|
+
async function raceAbort(promise, signal) {
|
|
124
|
+
return signal ? signal.aborted ? null : new Promise((resolve, reject) => {
|
|
125
|
+
let onAbort = () => resolve(null);
|
|
126
|
+
signal.addEventListener("abort", onAbort, { once: !0 }), promise.then(
|
|
127
|
+
(value) => {
|
|
128
|
+
signal.removeEventListener("abort", onAbort), resolve(value);
|
|
129
|
+
},
|
|
130
|
+
(err) => {
|
|
131
|
+
signal.removeEventListener("abort", onAbort), signal.aborted ? resolve(null) : reject(err);
|
|
132
|
+
}
|
|
133
|
+
);
|
|
134
|
+
}) : promise;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export {
|
|
138
|
+
AUTH_PROVIDER_LABELS,
|
|
139
|
+
normalizeAuthProvider,
|
|
140
|
+
openBrowser,
|
|
141
|
+
loginChatGpt,
|
|
142
|
+
loginGrok,
|
|
143
|
+
auth_flow_exports
|
|
144
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { createRequire as __adfCreateRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __adfFileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __adfDirname } from 'node:path';
|
|
4
|
+
const require = __adfCreateRequire(import.meta.url);
|
|
5
|
+
const __filename = __adfFileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __adfDirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
require_extension,
|
|
9
|
+
require_permessage_deflate,
|
|
10
|
+
require_receiver,
|
|
11
|
+
require_sender,
|
|
12
|
+
require_stream,
|
|
13
|
+
require_subprotocol,
|
|
14
|
+
require_websocket,
|
|
15
|
+
require_websocket_server
|
|
16
|
+
} from "./chunk-NGK6PVSF.mjs";
|
|
17
|
+
import {
|
|
18
|
+
__commonJS
|
|
19
|
+
} from "./chunk-M2RX3S2T.mjs";
|
|
20
|
+
|
|
21
|
+
// node_modules/ws/index.js
|
|
22
|
+
var require_ws = __commonJS({
|
|
23
|
+
"node_modules/ws/index.js"(exports, module) {
|
|
24
|
+
"use strict";
|
|
25
|
+
var createWebSocketStream = require_stream(), extension = require_extension(), PerMessageDeflate = require_permessage_deflate(), Receiver = require_receiver(), Sender = require_sender(), subprotocol = require_subprotocol(), WebSocket = require_websocket(), WebSocketServer = require_websocket_server();
|
|
26
|
+
WebSocket.createWebSocketStream = createWebSocketStream;
|
|
27
|
+
WebSocket.extension = extension;
|
|
28
|
+
WebSocket.PerMessageDeflate = PerMessageDeflate;
|
|
29
|
+
WebSocket.Receiver = Receiver;
|
|
30
|
+
WebSocket.Sender = Sender;
|
|
31
|
+
WebSocket.Server = WebSocketServer;
|
|
32
|
+
WebSocket.subprotocol = subprotocol;
|
|
33
|
+
WebSocket.WebSocket = WebSocket;
|
|
34
|
+
WebSocket.WebSocketServer = WebSocketServer;
|
|
35
|
+
module.exports = WebSocket;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export {
|
|
40
|
+
require_ws
|
|
41
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { createRequire as __adfCreateRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __adfFileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __adfDirname } from 'node:path';
|
|
4
|
+
const require = __adfCreateRequire(import.meta.url);
|
|
5
|
+
const __filename = __adfFileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __adfDirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
nanoid
|
|
9
|
+
} from "./chunk-3GNIDM53.mjs";
|
|
10
|
+
|
|
11
|
+
// src/main/adapters/shared/audio-convert.ts
|
|
12
|
+
import { execFile } from "child_process";
|
|
13
|
+
import { promises as fsp } from "fs";
|
|
14
|
+
import { join } from "path";
|
|
15
|
+
import { tmpdir } from "os";
|
|
16
|
+
async function convertToOggOpus(input) {
|
|
17
|
+
let id = nanoid(8), inPath = join(tmpdir(), `adf_audio_in_${id}`), outPath = join(tmpdir(), `adf_audio_out_${id}.ogg`);
|
|
18
|
+
try {
|
|
19
|
+
return await fsp.writeFile(inPath, input), await new Promise((resolve, reject) => {
|
|
20
|
+
execFile("ffmpeg", [
|
|
21
|
+
"-i",
|
|
22
|
+
inPath,
|
|
23
|
+
"-c:a",
|
|
24
|
+
"libopus",
|
|
25
|
+
"-b:a",
|
|
26
|
+
"64k",
|
|
27
|
+
"-vn",
|
|
28
|
+
"-y",
|
|
29
|
+
outPath
|
|
30
|
+
], (error) => {
|
|
31
|
+
error ? reject(new Error(`ffmpeg conversion failed: ${error.message}. Is ffmpeg installed?`)) : resolve();
|
|
32
|
+
});
|
|
33
|
+
}), await fsp.readFile(outPath);
|
|
34
|
+
} finally {
|
|
35
|
+
await fsp.unlink(inPath).catch(() => {
|
|
36
|
+
}), await fsp.unlink(outPath).catch(() => {
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export {
|
|
42
|
+
convertToOggOpus
|
|
43
|
+
};
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
import { createRequire as __adfCreateRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __adfFileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __adfDirname } from 'node:path';
|
|
4
|
+
const require = __adfCreateRequire(import.meta.url);
|
|
5
|
+
const __filename = __adfFileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __adfDirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
require_react
|
|
9
|
+
} from "./chunk-6GJ4QHRI.mjs";
|
|
10
|
+
import {
|
|
11
|
+
__commonJS
|
|
12
|
+
} from "./chunk-M2RX3S2T.mjs";
|
|
13
|
+
|
|
14
|
+
// node_modules/react/cjs/react-jsx-runtime.production.js
|
|
15
|
+
var require_react_jsx_runtime_production = __commonJS({
|
|
16
|
+
"node_modules/react/cjs/react-jsx-runtime.production.js"(exports) {
|
|
17
|
+
"use strict";
|
|
18
|
+
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
19
|
+
function jsxProd(type, config, maybeKey) {
|
|
20
|
+
var key = null;
|
|
21
|
+
if (maybeKey !== void 0 && (key = "" + maybeKey), config.key !== void 0 && (key = "" + config.key), "key" in config) {
|
|
22
|
+
maybeKey = {};
|
|
23
|
+
for (var propName in config)
|
|
24
|
+
propName !== "key" && (maybeKey[propName] = config[propName]);
|
|
25
|
+
} else maybeKey = config;
|
|
26
|
+
return config = maybeKey.ref, {
|
|
27
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
28
|
+
type,
|
|
29
|
+
key,
|
|
30
|
+
ref: config !== void 0 ? config : null,
|
|
31
|
+
props: maybeKey
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
35
|
+
exports.jsx = jsxProd;
|
|
36
|
+
exports.jsxs = jsxProd;
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
// node_modules/react/cjs/react-jsx-runtime.development.js
|
|
41
|
+
var require_react_jsx_runtime_development = __commonJS({
|
|
42
|
+
"node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
|
|
43
|
+
"use strict";
|
|
44
|
+
process.env.NODE_ENV !== "production" && (function() {
|
|
45
|
+
function getComponentNameFromType(type) {
|
|
46
|
+
if (type == null) return null;
|
|
47
|
+
if (typeof type == "function")
|
|
48
|
+
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
49
|
+
if (typeof type == "string") return type;
|
|
50
|
+
switch (type) {
|
|
51
|
+
case REACT_FRAGMENT_TYPE:
|
|
52
|
+
return "Fragment";
|
|
53
|
+
case REACT_PROFILER_TYPE:
|
|
54
|
+
return "Profiler";
|
|
55
|
+
case REACT_STRICT_MODE_TYPE:
|
|
56
|
+
return "StrictMode";
|
|
57
|
+
case REACT_SUSPENSE_TYPE:
|
|
58
|
+
return "Suspense";
|
|
59
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
60
|
+
return "SuspenseList";
|
|
61
|
+
case REACT_ACTIVITY_TYPE:
|
|
62
|
+
return "Activity";
|
|
63
|
+
}
|
|
64
|
+
if (typeof type == "object")
|
|
65
|
+
switch (typeof type.tag == "number" && console.error(
|
|
66
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
67
|
+
), type.$$typeof) {
|
|
68
|
+
case REACT_PORTAL_TYPE:
|
|
69
|
+
return "Portal";
|
|
70
|
+
case REACT_CONTEXT_TYPE:
|
|
71
|
+
return type.displayName || "Context";
|
|
72
|
+
case REACT_CONSUMER_TYPE:
|
|
73
|
+
return (type._context.displayName || "Context") + ".Consumer";
|
|
74
|
+
case REACT_FORWARD_REF_TYPE:
|
|
75
|
+
var innerType = type.render;
|
|
76
|
+
return type = type.displayName, type || (type = innerType.displayName || innerType.name || "", type = type !== "" ? "ForwardRef(" + type + ")" : "ForwardRef"), type;
|
|
77
|
+
case REACT_MEMO_TYPE:
|
|
78
|
+
return innerType = type.displayName || null, innerType !== null ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
79
|
+
case REACT_LAZY_TYPE:
|
|
80
|
+
innerType = type._payload, type = type._init;
|
|
81
|
+
try {
|
|
82
|
+
return getComponentNameFromType(type(innerType));
|
|
83
|
+
} catch {
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
function testStringCoercion(value) {
|
|
89
|
+
return "" + value;
|
|
90
|
+
}
|
|
91
|
+
function checkKeyStringCoercion(value) {
|
|
92
|
+
try {
|
|
93
|
+
testStringCoercion(value);
|
|
94
|
+
var JSCompiler_inline_result = !1;
|
|
95
|
+
} catch {
|
|
96
|
+
JSCompiler_inline_result = !0;
|
|
97
|
+
}
|
|
98
|
+
if (JSCompiler_inline_result) {
|
|
99
|
+
JSCompiler_inline_result = console;
|
|
100
|
+
var JSCompiler_temp_const = JSCompiler_inline_result.error, JSCompiler_inline_result$jscomp$0 = typeof Symbol == "function" && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
101
|
+
return JSCompiler_temp_const.call(
|
|
102
|
+
JSCompiler_inline_result,
|
|
103
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
104
|
+
JSCompiler_inline_result$jscomp$0
|
|
105
|
+
), testStringCoercion(value);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
function getTaskName(type) {
|
|
109
|
+
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
110
|
+
if (typeof type == "object" && type !== null && type.$$typeof === REACT_LAZY_TYPE)
|
|
111
|
+
return "<...>";
|
|
112
|
+
try {
|
|
113
|
+
var name = getComponentNameFromType(type);
|
|
114
|
+
return name ? "<" + name + ">" : "<...>";
|
|
115
|
+
} catch {
|
|
116
|
+
return "<...>";
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
function getOwner() {
|
|
120
|
+
var dispatcher = ReactSharedInternals.A;
|
|
121
|
+
return dispatcher === null ? null : dispatcher.getOwner();
|
|
122
|
+
}
|
|
123
|
+
function UnknownOwner() {
|
|
124
|
+
return Error("react-stack-top-frame");
|
|
125
|
+
}
|
|
126
|
+
function hasValidKey(config) {
|
|
127
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
128
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
129
|
+
if (getter && getter.isReactWarning) return !1;
|
|
130
|
+
}
|
|
131
|
+
return config.key !== void 0;
|
|
132
|
+
}
|
|
133
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
134
|
+
function warnAboutAccessingKey() {
|
|
135
|
+
specialPropKeyWarningShown || (specialPropKeyWarningShown = !0, console.error(
|
|
136
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
137
|
+
displayName
|
|
138
|
+
));
|
|
139
|
+
}
|
|
140
|
+
warnAboutAccessingKey.isReactWarning = !0, Object.defineProperty(props, "key", {
|
|
141
|
+
get: warnAboutAccessingKey,
|
|
142
|
+
configurable: !0
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
function elementRefGetterWithDeprecationWarning() {
|
|
146
|
+
var componentName = getComponentNameFromType(this.type);
|
|
147
|
+
return didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = !0, console.error(
|
|
148
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
149
|
+
)), componentName = this.props.ref, componentName !== void 0 ? componentName : null;
|
|
150
|
+
}
|
|
151
|
+
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
152
|
+
var refProp = props.ref;
|
|
153
|
+
return type = {
|
|
154
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
155
|
+
type,
|
|
156
|
+
key,
|
|
157
|
+
props,
|
|
158
|
+
_owner: owner
|
|
159
|
+
}, (refProp !== void 0 ? refProp : null) !== null ? Object.defineProperty(type, "ref", {
|
|
160
|
+
enumerable: !1,
|
|
161
|
+
get: elementRefGetterWithDeprecationWarning
|
|
162
|
+
}) : Object.defineProperty(type, "ref", { enumerable: !1, value: null }), type._store = {}, Object.defineProperty(type._store, "validated", {
|
|
163
|
+
configurable: !1,
|
|
164
|
+
enumerable: !1,
|
|
165
|
+
writable: !0,
|
|
166
|
+
value: 0
|
|
167
|
+
}), Object.defineProperty(type, "_debugInfo", {
|
|
168
|
+
configurable: !1,
|
|
169
|
+
enumerable: !1,
|
|
170
|
+
writable: !0,
|
|
171
|
+
value: null
|
|
172
|
+
}), Object.defineProperty(type, "_debugStack", {
|
|
173
|
+
configurable: !1,
|
|
174
|
+
enumerable: !1,
|
|
175
|
+
writable: !0,
|
|
176
|
+
value: debugStack
|
|
177
|
+
}), Object.defineProperty(type, "_debugTask", {
|
|
178
|
+
configurable: !1,
|
|
179
|
+
enumerable: !1,
|
|
180
|
+
writable: !0,
|
|
181
|
+
value: debugTask
|
|
182
|
+
}), Object.freeze && (Object.freeze(type.props), Object.freeze(type)), type;
|
|
183
|
+
}
|
|
184
|
+
function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
|
|
185
|
+
var children = config.children;
|
|
186
|
+
if (children !== void 0)
|
|
187
|
+
if (isStaticChildren)
|
|
188
|
+
if (isArrayImpl(children)) {
|
|
189
|
+
for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
|
|
190
|
+
validateChildKeys(children[isStaticChildren]);
|
|
191
|
+
Object.freeze && Object.freeze(children);
|
|
192
|
+
} else
|
|
193
|
+
console.error(
|
|
194
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
195
|
+
);
|
|
196
|
+
else validateChildKeys(children);
|
|
197
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
198
|
+
children = getComponentNameFromType(type);
|
|
199
|
+
var keys = Object.keys(config).filter(function(k) {
|
|
200
|
+
return k !== "key";
|
|
201
|
+
});
|
|
202
|
+
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}", didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
203
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
204
|
+
let props = %s;
|
|
205
|
+
<%s {...props} />
|
|
206
|
+
React keys must be passed directly to JSX without using spread:
|
|
207
|
+
let props = %s;
|
|
208
|
+
<%s key={someKey} {...props} />`,
|
|
209
|
+
isStaticChildren,
|
|
210
|
+
children,
|
|
211
|
+
keys,
|
|
212
|
+
children
|
|
213
|
+
), didWarnAboutKeySpread[children + isStaticChildren] = !0);
|
|
214
|
+
}
|
|
215
|
+
if (children = null, maybeKey !== void 0 && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey), hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key), "key" in config) {
|
|
216
|
+
maybeKey = {};
|
|
217
|
+
for (var propName in config)
|
|
218
|
+
propName !== "key" && (maybeKey[propName] = config[propName]);
|
|
219
|
+
} else maybeKey = config;
|
|
220
|
+
return children && defineKeyPropWarningGetter(
|
|
221
|
+
maybeKey,
|
|
222
|
+
typeof type == "function" ? type.displayName || type.name || "Unknown" : type
|
|
223
|
+
), ReactElement(
|
|
224
|
+
type,
|
|
225
|
+
children,
|
|
226
|
+
maybeKey,
|
|
227
|
+
getOwner(),
|
|
228
|
+
debugStack,
|
|
229
|
+
debugTask
|
|
230
|
+
);
|
|
231
|
+
}
|
|
232
|
+
function validateChildKeys(node) {
|
|
233
|
+
isValidElement(node) ? node._store && (node._store.validated = 1) : typeof node == "object" && node !== null && node.$$typeof === REACT_LAZY_TYPE && (node._payload.status === "fulfilled" ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
|
|
234
|
+
}
|
|
235
|
+
function isValidElement(object) {
|
|
236
|
+
return typeof object == "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
237
|
+
}
|
|
238
|
+
var React = require_react(), REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
239
|
+
return null;
|
|
240
|
+
};
|
|
241
|
+
React = {
|
|
242
|
+
react_stack_bottom_frame: function(callStackForError) {
|
|
243
|
+
return callStackForError();
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
var specialPropKeyWarningShown, didWarnAboutElementRef = {}, unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
|
|
247
|
+
React,
|
|
248
|
+
UnknownOwner
|
|
249
|
+
)(), unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner)), didWarnAboutKeySpread = {};
|
|
250
|
+
exports.Fragment = REACT_FRAGMENT_TYPE, exports.jsx = function(type, config, maybeKey) {
|
|
251
|
+
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
252
|
+
return jsxDEVImpl(
|
|
253
|
+
type,
|
|
254
|
+
config,
|
|
255
|
+
maybeKey,
|
|
256
|
+
!1,
|
|
257
|
+
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
258
|
+
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
259
|
+
);
|
|
260
|
+
}, exports.jsxs = function(type, config, maybeKey) {
|
|
261
|
+
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
262
|
+
return jsxDEVImpl(
|
|
263
|
+
type,
|
|
264
|
+
config,
|
|
265
|
+
maybeKey,
|
|
266
|
+
!0,
|
|
267
|
+
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
268
|
+
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
269
|
+
);
|
|
270
|
+
};
|
|
271
|
+
})();
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
|
|
275
|
+
// node_modules/react/jsx-runtime.js
|
|
276
|
+
var require_jsx_runtime = __commonJS({
|
|
277
|
+
"node_modules/react/jsx-runtime.js"(exports, module) {
|
|
278
|
+
"use strict";
|
|
279
|
+
process.env.NODE_ENV === "production" ? module.exports = require_react_jsx_runtime_production() : module.exports = require_react_jsx_runtime_development();
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
|
|
283
|
+
export {
|
|
284
|
+
require_jsx_runtime
|
|
285
|
+
};
|