@deepseek-ai/dsh-experimental-inspector 0.2.1-alpha.1 → 0.2.1-alpha.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/README.i18n.yaml +2 -2
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/lib/devtools/chunks/AutocompleteHistory-BJXpeT8x.js +73 -0
- package/lib/devtools/chunks/{FormatterActions-FcPgI0uV.js → FormatterActions-D6HaA-6R.js} +17 -6
- package/lib/devtools/chunks/MapUtilities-C6UNTa-e.js +50 -0
- package/lib/devtools/chunks/ResolverBase-BwI5i_Uj.js +33 -0
- package/lib/devtools/chunks/Runnable-Mz0aa-Zm.js +22 -0
- package/lib/devtools/chunks/StorageItem-_wZ3i4k_.js +12 -0
- package/lib/devtools/chunks/StringUtilities-CMDxNrEc.js +190 -0
- package/lib/devtools/chunks/{accessibility-DWRTNZZv.js → accessibility-CriFXarh.js} +225 -226
- package/lib/devtools/chunks/{acorn-_jSanihy.js → acorn-yx0Qbj0X.js} +58 -51
- package/lib/devtools/chunks/{adorners-BWktF-ky.js → adorners-D4bF0Xzg.js} +2 -4
- package/lib/devtools/chunks/{ai_assistance-DDJWkXxY.js → ai_assistance-Dzdtg9s8.js} +571 -558
- package/lib/devtools/chunks/{angular-Dutmu-L9.js → angular-CyYAyotN.js} +1 -1
- package/lib/devtools/chunks/{animation-CD0BSrV5.js → animation-eDKXX3j-.js} +91 -92
- package/lib/devtools/chunks/{application-lhlpfZHi.js → application-DG2H8fsc.js} +2237 -2232
- package/lib/devtools/chunks/{autofill-BGuL7dsc.js → autofill-DfPSF3rt.js} +24 -24
- package/lib/devtools/chunks/autofill_manager-BMi-l6xF.js +59 -0
- package/lib/devtools/chunks/{bindings-tcbmvQVs.js → bindings-DyamxTH2.js} +492 -462
- package/lib/devtools/chunks/{browser-DL1S1Kiu.js → browser-DveWkZD5.js} +1 -1
- package/lib/devtools/chunks/{browser_debugger-DN-AYfjS.js → browser_debugger-D1rAg54B.js} +146 -145
- package/lib/devtools/chunks/{changes-MAt-jsZ6.js → changes-BtlH668S.js} +46 -45
- package/lib/devtools/chunks/{changes-Bz1DPttV.js → changes-DjZCqvtP.js} +1 -1
- package/lib/devtools/chunks/{code_highlighter-BhlfnyuU.js → code_highlighter-CNBDhX-D.js} +6 -3
- package/lib/devtools/chunks/{codemirror-CBR9VJma.js → codemirror-CENmPHF2.js} +157 -137
- package/lib/devtools/chunks/{color_picker-CSYjZTOC.js → color_picker-Dp-vkqgw.js} +273 -273
- package/lib/devtools/chunks/{common-BYmylR0V.js → common-Bs7hSOUj.js} +2683 -2500
- package/lib/devtools/chunks/{common-qd_KLeYO.js → common-DMSVbaSb.js} +1077 -1439
- package/lib/devtools/chunks/{common-C4B90py-.js → common-DfB2Jn7T.js} +1 -1
- package/lib/devtools/chunks/{components-B16X4F0B.js → components-Cgicptsb.js} +68 -67
- package/lib/devtools/chunks/{components-BKOYfwK8.js → components-ChzSxrwT.js} +258 -293
- package/lib/devtools/chunks/{components-h5Jc4d84.js → components-CvUVvCxT.js} +170 -116
- package/lib/devtools/chunks/{console-Drj1oaLX.js → console-CtRRpTLN.js} +1 -1
- package/lib/devtools/chunks/{console-77CI3Icw.js → console-DyEFGxFI.js} +596 -601
- package/lib/devtools/chunks/{console_counters-DHu-wfML.js → console_counters-BNvk7SJs.js} +26 -26
- package/lib/devtools/chunks/{coverage-CpoO-XbA.js → coverage-CQXVwXWb.js} +156 -150
- package/lib/devtools/chunks/{coverage-BRz5wjEx.js → coverage-CqLu6rH2.js} +1 -1
- package/lib/devtools/chunks/{cpp-CdElSCaB.js → cpp-DaQzQ7EV.js} +1 -1
- package/lib/devtools/chunks/{css_overview-SeeMOLow.js → css_overview-UA7lEwB3.js} +344 -345
- package/lib/devtools/chunks/{data_grid-CmrktS_0.js → data_grid-C6uthMeA.js} +109 -102
- package/lib/devtools/chunks/{developer_resources-B-QY9DgD.js → developer_resources-DZK4LTht.js} +38 -37
- package/lib/devtools/chunks/{diff-qn55JSCS.js → diff-DXcO6Sla.js} +24 -7
- package/lib/devtools/chunks/{dom_extension-B0UaTHZj.js → dom_extension-BLny9Waw.js} +38 -14
- package/lib/devtools/chunks/{elements-hAAHn6NI.js → elements-BcCLQjkY.js} +1 -1
- package/lib/devtools/chunks/{elements-CDjB5Fth.js → elements-CiWscFTo.js} +1881 -1776
- package/lib/devtools/chunks/{emulation-C44LPBGb.js → emulation-CODu4I-X.js} +277 -271
- package/lib/devtools/chunks/{emulation-Dg2hBZ1s.js → emulation-CiDWWSyp.js} +61 -59
- package/lib/devtools/chunks/{emulation-DggDTf7O.js → emulation-DZzLxQFD.js} +5 -5
- package/lib/devtools/chunks/{emulation-NnJHzQl1.js → emulation-XHyfGdIJ.js} +1 -1
- package/lib/devtools/chunks/{event_listeners-4BHBMf72.js → event_listeners-DtE39_Kt.js} +63 -63
- package/lib/devtools/chunks/explain-BThUhJV7.js +745 -0
- package/lib/devtools/chunks/{greendev-DBJXfpCn.js → greendev-Ce4kKfHb.js} +38 -38
- package/lib/devtools/chunks/{heap_snapshot-CZt2KUPL.js → heap_snapshot-CTdRQlts.js} +6 -6
- package/lib/devtools/chunks/{helper-CKpZDOFV.js → helper-Cjm7Cg8b.js} +2 -2
- package/lib/devtools/chunks/{helpers-DsKPYsmx.js → helpers-CsoC22BH.js} +2 -2
- package/lib/devtools/chunks/{i18n-C9j87hY4.js → i18n-CTSaUtZW.js} +4 -3
- package/lib/devtools/chunks/{icon_button-CT9RqK0x.js → icon_button-DGIafxYW.js} +2 -2
- package/lib/devtools/chunks/{inline_editor-CLWkQCiR.js → inline_editor-R0UzNzHT.js} +218 -215
- package/lib/devtools/chunks/{inspector_main-BLu_O8D7.js → inspector_main-BFYGyw-S.js} +75 -73
- package/lib/devtools/chunks/{issue_counter-B-O8QiNX.js → issue_counter-aMFHu4Gr.js} +22 -22
- package/lib/devtools/chunks/{issues-CLL26jNI.js → issues-CfCXyqwr.js} +469 -468
- package/lib/devtools/chunks/{issues_manager-DoHFLsWX.js → issues_manager-Ba4w-pt1.js} +537 -599
- package/lib/devtools/chunks/{java-7g_qfFa2.js → java-62KG1Vpd.js} +1 -1
- package/lib/devtools/chunks/{layer_viewer-CvO3kOPP.js → layer_viewer-BFHe_8OF.js} +101 -100
- package/lib/devtools/chunks/{layers-DcApw5dX.js → layers-6D_9Q2Y1.js} +22 -22
- package/lib/devtools/chunks/{legacy-DOCLCisy.js → legacy-BYV0pRId.js} +4 -4
- package/lib/devtools/chunks/{legacy-DyOfBngp.js → legacy-dM_vujv7.js} +6124 -5944
- package/lib/devtools/chunks/{less-DXiRNbd4.js → less-DmILOm_5.js} +1 -1
- package/lib/devtools/chunks/{lighthouse-CygUfumH.js → lighthouse-B1qM_zXC.js} +181 -191
- package/lib/devtools/chunks/{lighthouse-DmUsroOS.js → lighthouse-DJcRfd0b.js} +1 -1
- package/lib/devtools/chunks/{linear_memory_inspector-DSV9fl0V.js → linear_memory_inspector-Dh5tCAly.js} +22 -22
- package/lib/devtools/chunks/{live-metrics-zpo2ismg.js → live-metrics-TfuE0SdD.js} +73 -73
- package/lib/devtools/chunks/main-BR5KnvrD.js +753 -0
- package/lib/devtools/chunks/{main-qTzsGFwj.js → main-CbxrZ9aG.js} +1 -1
- package/lib/devtools/chunks/{markdown-tZoR6Bsu.js → markdown-rVMoMV9q.js} +1 -1
- package/lib/devtools/chunks/{markdown_view-aKEyq0rC.js → markdown_view-D8BG91nk.js} +15 -12
- package/lib/devtools/chunks/{marked-zGgfoDxO.js → marked-CGxJO_CC.js} +20 -14
- package/lib/devtools/chunks/{media-BzwDz5b0.js → media-BABuksh3.js} +236 -234
- package/lib/devtools/chunks/{media-C0DVk3qR.js → media-lWOgExWb.js} +1 -1
- package/lib/devtools/chunks/{menus-DimAk5cf.js → menus-CbHfE0QY.js} +85 -83
- package/lib/devtools/chunks/{mobile_throttling-dQC-GSI7.js → mobile_throttling-DGhe-4CD.js} +174 -172
- package/lib/devtools/chunks/{mobile_throttling-BgPzBoO6.js → mobile_throttling-DPEmQ593.js} +1 -1
- package/lib/devtools/chunks/{network-CyhLFA2l.js → network-CzcqMGwP.js} +1237 -1230
- package/lib/devtools/chunks/{network-DzcurDFK.js → network-JFnyzJOB.js} +1 -1
- package/lib/devtools/chunks/{object_ui-2tm7WZMn.js → object_ui-DABOq_QK.js} +1 -1
- package/lib/devtools/chunks/{object_ui-Bie0H5KA.js → object_ui-Dj5WXMwl.js} +255 -249
- package/lib/devtools/chunks/{perf_ui-KVoWf3e9.js → perf_ui-B15al1e8.js} +409 -405
- package/lib/devtools/chunks/{perf_ui-Bo2RX_xn.js → perf_ui-Ch09Shon.js} +1 -1
- package/lib/devtools/chunks/{performance_monitor-BEz49skW.js → performance_monitor-DCfknRat.js} +55 -56
- package/lib/devtools/chunks/{php-tl5gKrxu.js → php-DVXaM5js.js} +7 -5
- package/lib/devtools/chunks/platform-D4TUCh2P.js +7 -0
- package/lib/devtools/chunks/{profiler-C17aLbu4.js → profiler-UQy7Xmba.js} +707 -703
- package/lib/devtools/chunks/{protocol_client-Cwf_jb8R.js → protocol_client-L4-X1Qrb.js} +2 -2
- package/lib/devtools/chunks/protocol_monitor-BzX6rcsq.js +2 -0
- package/lib/devtools/chunks/{protocol_monitor-BLhMIpKa.js → protocol_monitor-Ddc61xch.js} +221 -225
- package/lib/devtools/chunks/{puppeteer-ZLIws8kb.js → puppeteer-xGpmPP-i.js} +71 -89
- package/lib/devtools/chunks/{python-D9AdRkMm.js → python-kisakN4d.js} +3 -3
- package/lib/devtools/chunks/{quick_open-7ZN9BrSN.js → quick_open-Elz6wiNU.js} +1 -1
- package/lib/devtools/chunks/{quick_open-5LqbYTTQ.js → quick_open-thOwmkpR.js} +92 -94
- package/lib/devtools/chunks/{recorder-B3_Y3iDF.js → recorder-DkmPS_WQ.js} +365 -365
- package/lib/devtools/chunks/{request_link_icon-CvnKeL4L.js → request_link_icon-Do-M_Ngw.js} +2 -2
- package/lib/devtools/chunks/{root-DbVQo07X.js → root-DdvV-xPu.js} +52 -74
- package/lib/devtools/chunks/{sass-BPQlMmw2.js → sass-CIsRpUiU.js} +1 -1
- package/lib/devtools/chunks/{security-CjIwFb65.js → security-Cc3n87Ux.js} +175 -181
- package/lib/devtools/chunks/{sensors-CUwCaLnd.js → sensors-D7jtF6tx.js} +62 -62
- package/lib/devtools/chunks/{settings-Bf7TI_d_.js → settings-C_IwrLR-.js} +235 -229
- package/lib/devtools/chunks/{settings_ui-CeFF2GA-.js → settings_ui-B3VIsMZM.js} +54 -53
- package/lib/devtools/chunks/{snackbars-EEiDVB8s.js → snackbars-Dq3yf1tP.js} +1169 -1172
- package/lib/devtools/chunks/{snippets-WH3uwILH.js → snippets-BWb8aXVv.js} +51 -50
- package/lib/devtools/chunks/{source_frame-Dy_EOM1p.js → source_frame-B0odV5Nv.js} +166 -165
- package/lib/devtools/chunks/{sources-B8BvvVSx.js → sources-RXc96T-9.js} +1131 -1140
- package/lib/devtools/chunks/{sources-CFqn8ozl.js → sources-TPBBLKKV.js} +1 -1
- package/lib/devtools/chunks/{suggestion_input-D_5giWdk.js → suggestion_input-CbJ3xGeU.js} +6 -16
- package/lib/devtools/chunks/{svelte-DJS1itbE.js → svelte-C62W4gaL.js} +1 -1
- package/lib/devtools/chunks/{text_editor-C5VoL1Xb.js → text_editor-B6PKcoob.js} +374 -444
- package/lib/devtools/chunks/{text_utils-ohNt_gua.js → text_utils-DWSliayn.js} +161 -82
- package/lib/devtools/chunks/{theme_support-DIe-Aj1T.js → theme_support-BJ6jI25-.js} +49 -34
- package/lib/devtools/chunks/{third-party-web-DGiPoc0U.js → third-party-web-Dm5IRT3g.js} +1 -1
- package/lib/devtools/chunks/{timeline-erFWfDtO.js → timeline-BOm6TluW.js} +2407 -2389
- package/lib/devtools/chunks/{timeline-TQGKsD1c.js → timeline-DCzpZ1Y0.js} +1 -1
- package/lib/devtools/chunks/{utils-BOPum8Fh.js → utils-3dsE24eK.js} +50 -52
- package/lib/devtools/chunks/{vue-CjH9yovn.js → vue-rRx4yj6I.js} +1 -1
- package/lib/devtools/chunks/{wast-CbGHiqaW.js → wast-BJdLzx63.js} +1 -1
- package/lib/devtools/chunks/{web_audio-DeiVgByc.js → web_audio-BxUFAfxi.js} +25 -25
- package/lib/devtools/chunks/{webauthn-CkUZQkJE.js → webauthn-CSv6nAmN.js} +24 -24
- package/lib/devtools/chunks/{whats_new-rTSFIu0-.js → whats_new-21V-YX7t.js} +18 -19
- package/lib/devtools/chunks/{xml-DI9dcP5w.js → xml-qmN-BlAu.js} +1 -1
- package/lib/devtools/entrypoints/device_mode_emulation_frame/device_mode_emulation_frame.js +1 -1
- package/lib/devtools/entrypoints/devtools_app/devtools_app.js +2444 -2443
- package/lib/devtools/entrypoints/formatter_worker/formatter_worker-entrypoint.js +116 -118
- package/lib/devtools/entrypoints/heap_snapshot_worker/heap_snapshot_worker-entrypoint.js +289 -192
- package/lib/devtools/entrypoints/lighthouse_worker/lighthouse_worker.js +428 -403
- package/lib/devtools/entrypoints/wasmparser_worker/wasmparser_worker-entrypoint.js +31 -44
- package/lib/devtools/models/live-metrics/web-vitals-injected/web-vitals-injected.generated.js +1 -1
- package/lib/devtools/panels/recorder/injected/injected.generated.js +1 -1
- package/lib/devtools/resource-manifest.json +384 -354
- package/lib/index.js +9 -0
- package/package.json +26 -26
- package/lib/devtools/chunks/autofill_manager-lLpnJefn.js +0 -58
- package/lib/devtools/chunks/explain-Bi00oAm4.js +0 -747
- package/lib/devtools/chunks/main-CVouKJ7n.js +0 -755
- package/lib/devtools/chunks/platform-BzB373NB.js +0 -600
- package/lib/devtools/chunks/protocol_monitor-BjWZPjcg.js +0 -2
- /package/lib/devtools/chunks/{chunk-DF993M8W.js → rolldown-runtime-DF993M8W.js} +0 -0
package/README.i18n.yaml
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
en: 331f844c32631a82
|
|
16
16
|
zh: a9bc365f7d61d9ed
|
|
17
17
|
/deepseek-ai-dsh-experimental-inspector/use-this-package:
|
|
18
|
-
en:
|
|
19
|
-
zh:
|
|
18
|
+
en: 6d290aabc543f878
|
|
19
|
+
zh: 7ad283b159ae2c29
|
|
20
20
|
/deepseek-ai-dsh-experimental-inspector/runtime-layout:
|
|
21
21
|
en: 30dad7b7fe3b3465
|
|
22
22
|
zh: 2bda395981802f59
|
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ When this component is enabled, **Ctrl/Cmd+Shift+.** toggles **NodeJS Inspector*
|
|
|
39
39
|
|
|
40
40
|
The Host serves the mirrored DevTools frontend at the application-relative `inspector/devtools/devtools_app.html` path, using the existing Web login. The `inspector/devtools` prefix redirects to that entry; GET and HEAD serve files, missing resources return 404, and other methods return 405. Its `cdp` WebSocket route authenticates the same browser session and forwards only to this Inspector's Worker page target. The bottom panel supplies its claimed `clientSourceId` to the entry and automatic WebSocket endpoint; the selection follows that logical Client across reconnects. An absent selector includes all Clients, an unavailable selected Client leaves Host visible, and empty or repeated selectors reject the upgrade with 400. Explicit `ws` or `wss` query parameters override the automatic endpoint, including its selection.
|
|
41
41
|
|
|
42
|
-
The build compiles the official `chrome-devtools-frontend@1.0.1638082` TypeScript sources with the root workspace's Vite
|
|
42
|
+
The build compiles the official `chrome-devtools-frontend@1.0.1638082` TypeScript sources with the root workspace's pinned [Vite dependency](../../../package.json). This npm snapshot is an ancestor of the Chromium 150 release branch, not an exact copy of its later stable release. The [source configuration](scripts/devtools/source.ts) and package manifest fix the version. Normal npm installation supplies the source and toolchain; building needs no appspot access, browser download, browser launch, or PAK extraction. Neither workspace installation nor published-package installation runs a DevTools download hook.
|
|
43
43
|
|
|
44
44
|
The [distribution build](scripts/build-devtools.ts) emits ESM entries, shared chunks, explicit Workers, injected scripts, and runtime assets into `lib/devtools`. It preserves original module-relative resource URLs, including deployment prefixes. CSS text modules, image variables, and minimal English locale constants replace GN-generated inputs without modifying npm sources. The frontend uses English UIStrings directly from upstream modules, with no translation files or dictionary generator. Other language preferences resolve to English. All upstream panels, including Lighthouse, remain included. Memory retains its parser Worker; Performance records Host CPU. Published packages contain the built assets, integrity manifest, and Chromium license, not the build-time npm source or Vite dependencies.
|
|
45
45
|
|
package/README.zh.md
CHANGED
|
@@ -39,7 +39,7 @@ kind: "package-reference"
|
|
|
39
39
|
|
|
40
40
|
Host 在相对于应用根目录的 `inspector/devtools/devtools_app.html` 路径提供镜像后的 DevTools 前端,沿用现有 Web 登录鉴权。`inspector/devtools` 前缀重定向到该入口;GET 和 HEAD 提供文件,缺失资源返回 404,其他方法返回 405。其 `cdp` WebSocket 路由鉴权同一浏览器会话,只转发到当前 Inspector 的 Worker page target。底部面板将已声明的页面 `clientSourceId` 传给入口及自动 WebSocket 端点,重连时继续选择同一逻辑 Client。没有选择参数时包含全部 Client;指定 Client 不在线时保留 Host;空值或重复参数以 400 拒绝升级。显式 `ws` 或 `wss` query 参数覆盖自动端点及其选择范围。
|
|
41
41
|
|
|
42
|
-
构建使用官方 `chrome-devtools-frontend@1.0.1638082` TypeScript 源码及根 workspace
|
|
42
|
+
构建使用官方 `chrome-devtools-frontend@1.0.1638082` TypeScript 源码及根 workspace 固定的 [Vite 依赖](../../../package.json)。该 npm 快照是 Chromium 150 发布分支的祖先,不是其后续稳定版的逐字节副本。[源码配置](scripts/devtools/source.ts)与包清单共同固定版本。普通 npm 安装提供源码和工具链;构建不需要 appspot、下载或启动浏览器,也不需要提取 PAK。workspace 安装和发布包安装都不运行 DevTools 下载 hook。
|
|
43
43
|
|
|
44
44
|
[分发构建](scripts/build-devtools.ts)将 ESM 入口、共享 chunk、显式 Worker、注入脚本与运行时资源输出到 `lib/devtools`,保留原始模块相对资源 URL,包括部署子路径。CSS 文本模块、图片变量和最小英文 locale 常量替代 GN 生成输入,不修改 npm 源码。前端直接使用上游模块内的英文 UIStrings,不包含翻译文件或词条生成器,其他语言偏好回退英文。所有上游面板均保留,包括 Lighthouse。Memory 带有解析 Worker,Performance 记录 Host CPU。发布包包含构建资源、完整性清单和 Chromium license,不包含构建用 npm 源码或 Vite 依赖。
|
|
45
45
|
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/ui/components/text_editor/AutocompleteHistory.ts
|
|
2
|
+
var e = class e {
|
|
3
|
+
static #e = 300;
|
|
4
|
+
#t;
|
|
5
|
+
#n = [];
|
|
6
|
+
#r = 1;
|
|
7
|
+
#i = !1;
|
|
8
|
+
#a = /* @__PURE__ */ new Map();
|
|
9
|
+
#o = "";
|
|
10
|
+
#s = [];
|
|
11
|
+
constructor(e) {
|
|
12
|
+
this.#t = e, this.#n = this.#t.get();
|
|
13
|
+
}
|
|
14
|
+
clear() {
|
|
15
|
+
this.#n = [], this.#t.set([]), this.#r = 1, this.#a.clear(), this.#o = "", this.#s = [];
|
|
16
|
+
}
|
|
17
|
+
length() {
|
|
18
|
+
return this.#n.length;
|
|
19
|
+
}
|
|
20
|
+
pushHistoryItem(e) {
|
|
21
|
+
this.#i &&= (this.#n.pop(), !1), this.#r = 1, this.#a.clear(), this.#o = "", this.#s = [], e !== this.#d() && this.#n.push(e), this.#f();
|
|
22
|
+
}
|
|
23
|
+
#c(e) {
|
|
24
|
+
this.#i && this.#n.pop(), this.#i = !0, this.#n.push(e);
|
|
25
|
+
}
|
|
26
|
+
previous(e) {
|
|
27
|
+
if (this.#r > this.#n.length) return;
|
|
28
|
+
if (e ??= "", this.#r === 1 ? (this.#c(e), this.#s = [], this.#o = e) : this.#u(e), this.#o.length === 0) return ++this.#r, this.#d();
|
|
29
|
+
let t = this.#l();
|
|
30
|
+
return t ? (this.#s.push(t.index), this.#r = this.#n.length - t.index, t.value) : this.#r === 1 ? (this.#o = "", ++this.#r, this.#d()) : void 0;
|
|
31
|
+
}
|
|
32
|
+
#l() {
|
|
33
|
+
let e = this.#n.length - this.#r - 1;
|
|
34
|
+
for (let t = e; t >= 0; --t) {
|
|
35
|
+
let e = this.#n[t];
|
|
36
|
+
if (e.startsWith(this.#o)) {
|
|
37
|
+
let n = this.#a.get(t) ?? e;
|
|
38
|
+
return {
|
|
39
|
+
index: t,
|
|
40
|
+
value: n
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
#u(e) {
|
|
46
|
+
let t = this.#n.length - this.#r;
|
|
47
|
+
e !== this.#d() && (e !== this.#n[t] && e.length > 0 ? this.#a.set(t, e) : this.#a.delete(t));
|
|
48
|
+
}
|
|
49
|
+
next(e) {
|
|
50
|
+
if (this.#r === 1) return;
|
|
51
|
+
if (e = e ?? this.#d() ?? "", this.#u(e), this.#o.length === 0) return --this.#r, this.#d();
|
|
52
|
+
if (this.#s.pop(), this.#s.length === 0) return this.#r = 1, this.#d();
|
|
53
|
+
let t = this.#s[this.#s.length - 1];
|
|
54
|
+
return this.#r = this.#n.length - t, this.#d();
|
|
55
|
+
}
|
|
56
|
+
matchingEntries(e, t = 50) {
|
|
57
|
+
let n = /* @__PURE__ */ new Set();
|
|
58
|
+
for (let r = this.#n.length - 1; r >= 0 && n.size < t; --r) {
|
|
59
|
+
let t = this.#n[r];
|
|
60
|
+
t.startsWith(e) && n.add(t);
|
|
61
|
+
}
|
|
62
|
+
return n;
|
|
63
|
+
}
|
|
64
|
+
#d() {
|
|
65
|
+
let e = this.#n.length - this.#r;
|
|
66
|
+
return this.#a.get(e) ?? this.#n[e];
|
|
67
|
+
}
|
|
68
|
+
#f() {
|
|
69
|
+
this.#t.set(this.#n.slice(-e.#e));
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
//#endregion
|
|
73
|
+
export { e as t };
|
|
@@ -1,19 +1,30 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/core/platform/TypescriptUtilities.ts
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
if (e == null) throw Error(`Expected given value to not be null/undefined but it was: ${e}${t ? `\n${t}` : ""}`);
|
|
4
|
+
}
|
|
5
|
+
function t(e, t) {
|
|
6
|
+
throw Error(t);
|
|
7
|
+
}
|
|
8
|
+
function n(e) {
|
|
9
|
+
return e;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
1
12
|
//#region node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/entrypoints/formatter_worker/FormatterActions.ts
|
|
2
|
-
var
|
|
13
|
+
var r = /* @__PURE__ */ function(e) {
|
|
3
14
|
return e.FORMAT = "format", e.PARSE_CSS = "parseCSS", e.JAVASCRIPT_SUBSTITUTE = "javaScriptSubstitute", e.JAVASCRIPT_SCOPE_TREE = "javaScriptScopeTree", e;
|
|
4
|
-
}({}),
|
|
15
|
+
}({}), i = /* @__PURE__ */ function(e) {
|
|
5
16
|
return e.APPLICATION_JAVASCRIPT = "application/javascript", e.APPLICATION_JSON = "application/json", e.APPLICATION_MANIFEST_JSON = "application/manifest+json", e.TEXT_CSS = "text/css", e.TEXT_HTML = "text/html", e.TEXT_JAVASCRIPT = "text/javascript", e;
|
|
6
|
-
}({}),
|
|
17
|
+
}({}), a = [
|
|
7
18
|
"application/javascript",
|
|
8
19
|
"application/json",
|
|
9
20
|
"application/manifest+json",
|
|
10
21
|
"text/css",
|
|
11
22
|
"text/html",
|
|
12
23
|
"text/javascript"
|
|
13
|
-
],
|
|
24
|
+
], o = /* @__PURE__ */ function(e) {
|
|
14
25
|
return e[e.NONE = 0] = "NONE", e[e.LET = 1] = "LET", e[e.VAR = 2] = "VAR", e[e.FIXED = 3] = "FIXED", e;
|
|
15
|
-
}({}),
|
|
26
|
+
}({}), s = /* @__PURE__ */ function(e) {
|
|
16
27
|
return e[e.BLOCK = 1] = "BLOCK", e[e.FUNCTION = 2] = "FUNCTION", e[e.GLOBAL = 3] = "GLOBAL", e[e.ARROW_FUNCTION = 4] = "ARROW_FUNCTION", e;
|
|
17
28
|
}({});
|
|
18
29
|
//#endregion
|
|
19
|
-
export {
|
|
30
|
+
export { s as a, n as c, r as i, a as n, t as o, i as r, e as s, o as t };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/core/platform/MapUtilities.ts
|
|
2
|
+
var e = class {
|
|
3
|
+
map = /* @__PURE__ */ new Map();
|
|
4
|
+
set(e, t) {
|
|
5
|
+
let n = this.map.get(e);
|
|
6
|
+
n || (n = /* @__PURE__ */ new Set(), this.map.set(e, n)), n.add(t);
|
|
7
|
+
}
|
|
8
|
+
get(e) {
|
|
9
|
+
return this.map.get(e) || /* @__PURE__ */ new Set();
|
|
10
|
+
}
|
|
11
|
+
has(e) {
|
|
12
|
+
return this.map.has(e);
|
|
13
|
+
}
|
|
14
|
+
hasValue(e, t) {
|
|
15
|
+
let n = this.map.get(e);
|
|
16
|
+
return n ? n.has(t) : !1;
|
|
17
|
+
}
|
|
18
|
+
get size() {
|
|
19
|
+
return this.map.size;
|
|
20
|
+
}
|
|
21
|
+
delete(e, t) {
|
|
22
|
+
let n = this.get(e);
|
|
23
|
+
if (!n) return !1;
|
|
24
|
+
let r = n.delete(t);
|
|
25
|
+
return n.size || this.map.delete(e), r;
|
|
26
|
+
}
|
|
27
|
+
deleteAll(e) {
|
|
28
|
+
this.map.delete(e);
|
|
29
|
+
}
|
|
30
|
+
keysArray() {
|
|
31
|
+
return [...this.map.keys()];
|
|
32
|
+
}
|
|
33
|
+
keys() {
|
|
34
|
+
return this.map.keys();
|
|
35
|
+
}
|
|
36
|
+
valuesArray() {
|
|
37
|
+
let e = [];
|
|
38
|
+
for (let t of this.map.values()) e.push(...t.values());
|
|
39
|
+
return e;
|
|
40
|
+
}
|
|
41
|
+
clear() {
|
|
42
|
+
this.map.clear();
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
function t(e, t, n) {
|
|
46
|
+
let r = e.get(t);
|
|
47
|
+
return r ?? (r = n(t), e.set(t, r)), r;
|
|
48
|
+
}
|
|
49
|
+
//#endregion
|
|
50
|
+
export { t as n, e as t };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/core/common/ResolverBase.ts
|
|
2
|
+
var e = class {
|
|
3
|
+
#e = /* @__PURE__ */ new Map();
|
|
4
|
+
async waitFor(e) {
|
|
5
|
+
return this.getForId(e) || await this.getOrCreatePromise(e);
|
|
6
|
+
}
|
|
7
|
+
tryGet(e, t) {
|
|
8
|
+
return this.getForId(e) || (this.getOrCreatePromise(e).catch(() => {}).then((e) => {
|
|
9
|
+
e && t(e);
|
|
10
|
+
}), null);
|
|
11
|
+
}
|
|
12
|
+
clear() {
|
|
13
|
+
this.stopListening();
|
|
14
|
+
for (let [e, { reject: t }] of this.#e.entries()) t(/* @__PURE__ */ Error(`Object with ${e} never resolved.`));
|
|
15
|
+
this.#e.clear();
|
|
16
|
+
}
|
|
17
|
+
getOrCreatePromise(e) {
|
|
18
|
+
let t = this.#e.get(e);
|
|
19
|
+
if (t) return t.promise;
|
|
20
|
+
let { resolve: n, reject: r, promise: i } = Promise.withResolvers();
|
|
21
|
+
return this.#e.set(e, {
|
|
22
|
+
promise: i,
|
|
23
|
+
resolve: n,
|
|
24
|
+
reject: r
|
|
25
|
+
}), this.startListening(), i;
|
|
26
|
+
}
|
|
27
|
+
onResolve(e, t) {
|
|
28
|
+
let n = this.#e.get(e);
|
|
29
|
+
this.#e.delete(e), this.#e.size === 0 && this.stopListening(), n?.resolve(t);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { e as t };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/core/common/Runnable.ts
|
|
2
|
+
var e = /* @__PURE__ */ new Map();
|
|
3
|
+
function t(t) {
|
|
4
|
+
let { id: n, loadRunnable: r } = t;
|
|
5
|
+
if (e.has(n)) throw Error(`Duplicate late Initializable runnable id '${n}'`);
|
|
6
|
+
e.set(n, r);
|
|
7
|
+
}
|
|
8
|
+
function n(t) {
|
|
9
|
+
return e.delete(t);
|
|
10
|
+
}
|
|
11
|
+
function r() {
|
|
12
|
+
return [...e.values()];
|
|
13
|
+
}
|
|
14
|
+
var i = [];
|
|
15
|
+
function a(e) {
|
|
16
|
+
i.push(e);
|
|
17
|
+
}
|
|
18
|
+
function o() {
|
|
19
|
+
return i;
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { t as a, a as i, r as n, n as r, o as t };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/models/ai_assistance/StorageItem.ts
|
|
2
|
+
var e = class {
|
|
3
|
+
origin;
|
|
4
|
+
storageKey;
|
|
5
|
+
storageType;
|
|
6
|
+
key;
|
|
7
|
+
constructor(e) {
|
|
8
|
+
this.origin = e.origin, this.storageKey = e.storageKey, this.storageType = e.storageType, this.key = e.key;
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { e as t };
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/core/platform/StringUtilities.ts
|
|
2
|
+
var e = (e, t) => {
|
|
3
|
+
let n = !1;
|
|
4
|
+
for (let r = 0; r < t.length; ++r) if (e.indexOf(t.charAt(r)) !== -1) {
|
|
5
|
+
n = !0;
|
|
6
|
+
break;
|
|
7
|
+
}
|
|
8
|
+
if (!n) return String(e);
|
|
9
|
+
let r = "";
|
|
10
|
+
for (let n = 0; n < e.length; ++n) t.indexOf(e.charAt(n)) !== -1 && (r += "\\"), r += e.charAt(n);
|
|
11
|
+
return r;
|
|
12
|
+
}, t = (e, t) => e.toString(16).toUpperCase().padStart(t, "0"), n = /* @__PURE__ */ new Map([
|
|
13
|
+
["\b", "\\b"],
|
|
14
|
+
["\f", "\\f"],
|
|
15
|
+
["\n", "\\n"],
|
|
16
|
+
["\r", "\\r"],
|
|
17
|
+
[" ", "\\t"],
|
|
18
|
+
["\v", "\\v"],
|
|
19
|
+
["'", "\\'"],
|
|
20
|
+
["\\", "\\\\"],
|
|
21
|
+
["<!--", "\\x3C!--"],
|
|
22
|
+
["<script", "\\x3Cscript"],
|
|
23
|
+
["<\/script", "\\x3C/script"]
|
|
24
|
+
]), r = (e) => {
|
|
25
|
+
let r = /(\\|<(?:!--|\/?script))|(\p{Control})|(\p{Surrogate})/gu, i = /(\\|'|<(?:!--|\/?script))|(\p{Control})|(\p{Surrogate})/gu, a = (e, r, i, a) => i ? n.has(i) ? n.get(i) : "\\x" + t(i.charCodeAt(0), 2) : a ? "\\u" + t(a.charCodeAt(0), 4) : r ? n.get(r) || "" : e, o = "", s = "";
|
|
26
|
+
return e.includes("'") ? e.includes("\"") ? !e.includes("`") && !e.includes("${") ? (s = "`", o = e.replaceAll(r, a)) : (s = "'", o = e.replaceAll(i, a)) : (s = "\"", o = e.replaceAll(r, a)) : (s = "'", o = e.replaceAll(r, a)), `${s}${o}${s}`;
|
|
27
|
+
}, i = (e, ...t) => {
|
|
28
|
+
let n = 0;
|
|
29
|
+
return e.replaceAll(/%(?:(\d+)\$)?(?:\.(\d*))?([%dfs])/g, (e, r, i, a) => {
|
|
30
|
+
if (a === "%") return "%";
|
|
31
|
+
if (r !== void 0 && (n = parseInt(r, 10) - 1, n < 0)) throw RangeError(`Invalid parameter index ${n + 1}`);
|
|
32
|
+
if (n >= t.length) throw RangeError(`Expected at least ${n + 1} format parameters, but only ${t.length} where given.`);
|
|
33
|
+
if (a === "s") {
|
|
34
|
+
let e = String(t[n++]);
|
|
35
|
+
return i === void 0 ? e : e.substring(0, Number(i));
|
|
36
|
+
}
|
|
37
|
+
let o = Number(t[n++]);
|
|
38
|
+
return isNaN(o) && (o = 0), a === "d" ? String(Math.floor(o)).padStart(Number(i), "0") : i === void 0 ? String(o) : o.toFixed(Number(i));
|
|
39
|
+
});
|
|
40
|
+
}, a = (e) => {
|
|
41
|
+
function t(e) {
|
|
42
|
+
return e < 26 ? e + 65 : e < 52 ? e + 71 : e < 62 ? e - 4 : e === 62 ? 43 : e === 63 ? 47 : 65;
|
|
43
|
+
}
|
|
44
|
+
let n = new TextEncoder().encode(e.toString()), r = n.length, i = "";
|
|
45
|
+
if (r === 0) return i;
|
|
46
|
+
let a, o = 0;
|
|
47
|
+
for (let e = 0; e < r; e++) a = e % 3, o |= n[e] << (16 >>> a & 24), a === 2 && (i += String.fromCharCode(t(o >>> 18 & 63), t(o >>> 12 & 63), t(o >>> 6 & 63), t(o & 63)), o = 0);
|
|
48
|
+
return a === 0 ? i += String.fromCharCode(t(o >>> 18 & 63), t(o >>> 12 & 63), 61, 61) : a === 1 && (i += String.fromCharCode(t(o >>> 18 & 63), t(o >>> 12 & 63), t(o >>> 6 & 63), 61)), i;
|
|
49
|
+
}, o = (e, t) => {
|
|
50
|
+
let n = [], r = e.indexOf(t);
|
|
51
|
+
for (; r !== -1;) n.push(r), r = e.indexOf(t, r + t.length);
|
|
52
|
+
return n;
|
|
53
|
+
}, s = (e) => {
|
|
54
|
+
let t = o(e, "\n");
|
|
55
|
+
return t.push(e.length), t;
|
|
56
|
+
}, c = (e) => /^\s*$/.test(e), l = (e, t) => {
|
|
57
|
+
let n = e.replace(/^(https|http|file):\/\//i, "");
|
|
58
|
+
return t && n.toLowerCase().startsWith(t.toLowerCase()) && (n = n.substr(t.length)), n;
|
|
59
|
+
}, u = (e) => e.replace(/[\s\xA0]+/g, " "), d = (e) => e.replace(/[\0-\x08\x0B\f\x0E-\x1F\x80-\x9F]/g, "�"), f = (e) => {
|
|
60
|
+
let t = 0;
|
|
61
|
+
for (let n = 0; n < e.length; n++) {
|
|
62
|
+
let r = e.charCodeAt(n);
|
|
63
|
+
if (r <= 127) t++;
|
|
64
|
+
else if (r <= 2047) t += 2;
|
|
65
|
+
else if (r < 55296 || 57343 < r) t += 3;
|
|
66
|
+
else {
|
|
67
|
+
if (r <= 56319 && n + 1 < e.length) {
|
|
68
|
+
let r = e.charCodeAt(n + 1);
|
|
69
|
+
if (56320 <= r && r <= 57343) {
|
|
70
|
+
t += 4, n++;
|
|
71
|
+
continue;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
t += 3;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return t;
|
|
78
|
+
}, p = (e) => e.replace(/(\r)?\n/g, ""), m = /^([a-z0-9]+(?:-[a-z0-9]+)*\.)*[a-z0-9]+(?:-[a-z0-9]+)*$/, h = (e) => m.test(e), g = (e) => e.substring(0, 1).toUpperCase() + e.substring(1), _ = (e) => {
|
|
79
|
+
let t = new URL(e);
|
|
80
|
+
return t.hash = "", t.toString();
|
|
81
|
+
}, v = "^[]{}()\\.^$*+?|-,", y = "?+*(){}\\:", b = function() {
|
|
82
|
+
return v;
|
|
83
|
+
}, x = function(e) {
|
|
84
|
+
let t = "^(?:.*\\0)?";
|
|
85
|
+
for (let n = 0; n < e.length; ++n) {
|
|
86
|
+
let r = e.charAt(n);
|
|
87
|
+
v.indexOf(r) !== -1 && (r = "\\" + r), t += "[^\\0" + r + "]*" + r;
|
|
88
|
+
}
|
|
89
|
+
return new RegExp(t, "i");
|
|
90
|
+
}, S = function(e, t, n, r = !1) {
|
|
91
|
+
let i = t ? "g" : "gi", a;
|
|
92
|
+
if (n) try {
|
|
93
|
+
a = new RegExp(e, i);
|
|
94
|
+
} catch {}
|
|
95
|
+
return a ||= F(e, i), r && a && (a = RegExp(`\\b${a.source}\\b`, i)), a;
|
|
96
|
+
}, C = function(e, t) {
|
|
97
|
+
return e = e.toUpperCase(), t = t.toUpperCase(), e === t ? 0 : e > t ? 1 : -1;
|
|
98
|
+
}, w = function(e) {
|
|
99
|
+
if (!e) return 0;
|
|
100
|
+
let t = (1 << 30) * 4 - 5, n = 0, r = 1;
|
|
101
|
+
for (let i = 0; i < e.length; i++) {
|
|
102
|
+
let a = e.charCodeAt(i) * 1506996573;
|
|
103
|
+
n = (n + r * a) % t, r = r * 1345575271 % t;
|
|
104
|
+
}
|
|
105
|
+
return n = (n + r * 4294967290) % t, Math.abs(n | 0);
|
|
106
|
+
}, T = (e, t) => e > t ? 1 : e < t ? -1 : 0, E = (e, t) => {
|
|
107
|
+
if (e.length <= t) return e;
|
|
108
|
+
let n = new Intl.Segmenter(void 0, { granularity: "grapheme" });
|
|
109
|
+
if (t <= 1) return "…";
|
|
110
|
+
let r = t - 1, i = Math.ceil(r / 2), a = Math.floor(r / 2), o = 0, s = 0, c = [];
|
|
111
|
+
for (let { segment: t, index: r } of n.segment(e)) o++, o === i && (s = r + t.length), a > 0 && (c.push(r), c.length > a && c.shift());
|
|
112
|
+
if (o <= t) return e;
|
|
113
|
+
let l = a > 0 ? c[0] : e.length;
|
|
114
|
+
return e.slice(0, s) + "…" + e.slice(l);
|
|
115
|
+
}, D = (e, t) => {
|
|
116
|
+
if (e.length <= t) return e;
|
|
117
|
+
let n = new Intl.Segmenter(void 0, { granularity: "grapheme" }).segment(e)[Symbol.iterator](), r = 0;
|
|
118
|
+
for (let i = 0; i <= t - 1; i++) {
|
|
119
|
+
let t = n.next();
|
|
120
|
+
if (t.done) return e;
|
|
121
|
+
r = t.value.index;
|
|
122
|
+
}
|
|
123
|
+
for (let t = 0; t < 1; t++) if (n.next().done) return e;
|
|
124
|
+
return e.slice(0, r) + "…";
|
|
125
|
+
}, O = (t) => e(t, v), k = (t) => e(t, y), A = (e, t) => {
|
|
126
|
+
let n = /^\d+|^\D+/, r, i, a, o;
|
|
127
|
+
for (;;) {
|
|
128
|
+
if (e) {
|
|
129
|
+
if (!t) return 1;
|
|
130
|
+
} else return t ? -1 : 0;
|
|
131
|
+
if (r = e.match(n)[0], i = t.match(n)[0], a = !Number.isNaN(Number(r)), o = !Number.isNaN(Number(i)), a && !o) return -1;
|
|
132
|
+
if (o && !a) return 1;
|
|
133
|
+
if (a && o) {
|
|
134
|
+
let e = Number(r) - Number(i);
|
|
135
|
+
if (e) return e;
|
|
136
|
+
if (r.length !== i.length) return !Number(r) && !Number(i) ? r.length - i.length : i.length - r.length;
|
|
137
|
+
} else if (r !== i) return r < i ? -1 : 1;
|
|
138
|
+
e = e.substring(r.length), t = t.substring(i.length);
|
|
139
|
+
}
|
|
140
|
+
}, j = function(e) {
|
|
141
|
+
if (!e) return 0;
|
|
142
|
+
let t = e.length * 3 / 4;
|
|
143
|
+
return e[e.length - 1] === "=" && t--, e.length > 1 && e[e.length - 2] === "=" && t--, t;
|
|
144
|
+
}, M = "\\", N = function(e) {
|
|
145
|
+
let t = "";
|
|
146
|
+
for (let n = 0; n < e.length; ++n) {
|
|
147
|
+
let r = e[n];
|
|
148
|
+
if (r === M) {
|
|
149
|
+
n++;
|
|
150
|
+
continue;
|
|
151
|
+
}
|
|
152
|
+
(r === "'" || r === "\"") && (t === r ? t = "" : t === "" && (t = r));
|
|
153
|
+
}
|
|
154
|
+
return t;
|
|
155
|
+
}, P = (e) => {
|
|
156
|
+
let t = e.replace(/'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"/g, ""), n = 0;
|
|
157
|
+
for (let e of t) e === "(" ? n++ : e === ")" && n > 0 && n--;
|
|
158
|
+
return n;
|
|
159
|
+
}, F = function(e, t) {
|
|
160
|
+
let n = "";
|
|
161
|
+
for (let t = 0; t < e.length; ++t) {
|
|
162
|
+
let r = e.charAt(t);
|
|
163
|
+
b().indexOf(r) !== -1 && (n += "\\"), n += r;
|
|
164
|
+
}
|
|
165
|
+
return new RegExp(n, t || "");
|
|
166
|
+
}, I = function(e) {
|
|
167
|
+
return e.toLowerCase();
|
|
168
|
+
}, L = /[A-Z]{2,}(?=[A-Z0-9][a-z0-9]+|\b|_)|[A-Za-z][0-9]+[a-z]?|[A-Z]?[a-z]+|[0-9][A-Za-z]+|[A-Z]|[0-9]+|[.]/g, R = function(e) {
|
|
169
|
+
return e.match?.(L)?.map((e) => e.toLowerCase()).join("-").replaceAll("-.-", ".") || e;
|
|
170
|
+
};
|
|
171
|
+
function z(e) {
|
|
172
|
+
return Object.fromEntries(Object.entries(e).map(([e, t]) => [R(e), t]));
|
|
173
|
+
}
|
|
174
|
+
function B(e) {
|
|
175
|
+
return e ? e.replace(/(\p{L})(\p{N})/gu, "$1_$2").replace(/(\p{Lu}+)(\p{Lu}\p{Ll})/gu, "$1_$2").replace(/(\p{Ll}|\p{N})(\p{Lu})/gu, "$1_$2").toLowerCase().replace(/[^\p{L}\p{N}]+/gu, "_").replace(/^_|_$/g, "") : "";
|
|
176
|
+
}
|
|
177
|
+
var V = function(e, t, n) {
|
|
178
|
+
let r = e.lastIndexOf(t);
|
|
179
|
+
return r === -1 ? e : e.slice(0, r) + e.slice(r).replace(t, n);
|
|
180
|
+
}, H = function(e, t = 2) {
|
|
181
|
+
if (t === 0) return e.toFixed(0);
|
|
182
|
+
let n = e.toFixed(t).replace(/\.?0*$/, "");
|
|
183
|
+
return n === "-0" ? "0" : n;
|
|
184
|
+
}, U = function(e, t) {
|
|
185
|
+
if (e.length === 0 || !e.endsWith("=")) return e + t;
|
|
186
|
+
let n = e.substring(0, e.length - 4), r = e.substring(e.length - 4);
|
|
187
|
+
return n + globalThis.btoa(globalThis.atob(r) + globalThis.atob(t));
|
|
188
|
+
};
|
|
189
|
+
//#endregion
|
|
190
|
+
export { z as A, d as C, p as D, H as E, E as F, l as I, B as M, g as N, a as O, D as P, _ as S, i as T, w as _, U as a, A as b, F as c, O as d, k as f, r as g, N as h, T as i, I as j, R as k, S as l, s as m, C as n, P as o, x as p, u as r, f as s, j as t, e as u, h as v, V as w, b as x, c as y };
|