@burdenoff/fe-libs 2026.904.20 → 2026.904.22
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/dist/node_modules/fflate/esm/browser.js +324 -0
- package/dist/node_modules/pdfjs-dist/build/pdf.js +15775 -0
- package/dist/node_modules/pdfjs-dist/build/pdf.worker.min.js +50952 -0
- package/dist/shared/assistant/aiCredits.d.ts +21 -0
- package/dist/shared/assistant/aiCredits.d.ts.map +1 -0
- package/dist/shared/assistant/aiCredits.js +15 -0
- package/dist/shared/assistant/createSandboxAssistantTransport.js +2 -1
- package/dist/shared/assistant/documentExtract.d.ts +22 -0
- package/dist/shared/assistant/documentExtract.d.ts.map +1 -0
- package/dist/shared/assistant/documentExtract.js +133 -0
- package/dist/shared/assistant/gatewayClient.d.ts +15 -1
- package/dist/shared/assistant/gatewayClient.d.ts.map +1 -1
- package/dist/shared/assistant/gatewayClient.js +6 -11
- package/dist/shared/assistant/index.d.ts +6 -0
- package/dist/shared/assistant/index.d.ts.map +1 -1
- package/dist/shared/assistant/quota.d.ts +65 -0
- package/dist/shared/assistant/quota.d.ts.map +1 -0
- package/dist/shared/assistant/quota.js +45 -0
- package/dist/shared/assistant/ui/composer/AssistantComposer.d.ts +50 -0
- package/dist/shared/assistant/ui/composer/AssistantComposer.d.ts.map +1 -0
- package/dist/shared/assistant/ui/composer/AssistantComposer.js +185 -0
- package/dist/shared/assistant/useAssistantAttachments.d.ts +26 -0
- package/dist/shared/assistant/useAssistantAttachments.d.ts.map +1 -0
- package/dist/shared/assistant/useAssistantAttachments.js +244 -0
- package/dist/shared/assistant/useWorkspaceWriteAccess.d.ts +29 -0
- package/dist/shared/assistant/useWorkspaceWriteAccess.d.ts.map +1 -0
- package/dist/shared/assistant/useWorkspaceWriteAccess.js +41 -0
- package/dist/shared/utils/imageDownscale.d.ts +91 -0
- package/dist/shared/utils/imageDownscale.d.ts.map +1 -0
- package/dist/shared/utils/imageDownscale.js +102 -0
- package/dist/shared/utils/index.d.ts +4 -3
- package/dist/shared/utils/index.d.ts.map +1 -1
- package/dist/shared-assistant.js +84 -78
- package/dist/shared-utils.js +6 -5
- package/dist/shared.js +94 -93
- package/dist/utils/index.js +1 -0
- package/package.json +13 -3
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
//#region src/shared/utils/imageDownscale.ts
|
|
2
|
+
var e = {
|
|
3
|
+
maxDim: 768,
|
|
4
|
+
quality: .6
|
|
5
|
+
};
|
|
6
|
+
function t(e) {
|
|
7
|
+
let t = e.indexOf(",");
|
|
8
|
+
return t >= 0 ? e.slice(t + 1) : e;
|
|
9
|
+
}
|
|
10
|
+
function n(e) {
|
|
11
|
+
return e.inlineDataUrl ? t(e.inlineDataUrl) : e.base64;
|
|
12
|
+
}
|
|
13
|
+
function r(e) {
|
|
14
|
+
return new Promise((t, n) => {
|
|
15
|
+
let r = new FileReader();
|
|
16
|
+
r.onload = () => {
|
|
17
|
+
let e = String(r.result ?? ""), n = e.indexOf(",");
|
|
18
|
+
t({
|
|
19
|
+
base64: n >= 0 ? e.slice(n + 1) : e,
|
|
20
|
+
dataUrl: e
|
|
21
|
+
});
|
|
22
|
+
}, r.onerror = () => n(r.error ?? /* @__PURE__ */ Error("Could not read image")), r.readAsDataURL(e);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
async function i(e) {
|
|
26
|
+
if (typeof createImageBitmap == "function") try {
|
|
27
|
+
let t = await createImageBitmap(e);
|
|
28
|
+
return {
|
|
29
|
+
width: t.width,
|
|
30
|
+
height: t.height,
|
|
31
|
+
draw: (e, n, r) => e.drawImage(t, 0, 0, n, r),
|
|
32
|
+
release: () => t.close()
|
|
33
|
+
};
|
|
34
|
+
} catch {}
|
|
35
|
+
return new Promise((t) => {
|
|
36
|
+
let n = URL.createObjectURL(e), r = new Image();
|
|
37
|
+
r.onload = () => {
|
|
38
|
+
t({
|
|
39
|
+
width: r.naturalWidth,
|
|
40
|
+
height: r.naturalHeight,
|
|
41
|
+
draw: (e, t, n) => e.drawImage(r, 0, 0, t, n),
|
|
42
|
+
release: () => URL.revokeObjectURL(n)
|
|
43
|
+
});
|
|
44
|
+
}, r.onerror = () => {
|
|
45
|
+
URL.revokeObjectURL(n), t(null);
|
|
46
|
+
}, r.src = n;
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
async function a(e, t, n) {
|
|
50
|
+
let r = Math.min(1, t / Math.max(e.width, e.height)), i = Math.max(1, Math.round(e.width * r)), a = Math.max(1, Math.round(e.height * r)), o = document.createElement("canvas");
|
|
51
|
+
o.width = i, o.height = a;
|
|
52
|
+
let s = o.getContext("2d");
|
|
53
|
+
if (!s) return null;
|
|
54
|
+
e.draw(s, i, a);
|
|
55
|
+
let c = await new Promise((e) => o.toBlob((t) => e(t), "image/jpeg", n));
|
|
56
|
+
return c && c.size > 0 ? c : null;
|
|
57
|
+
}
|
|
58
|
+
async function o(e, t = {}) {
|
|
59
|
+
let { maxDim: n = 1280, quality: o = .72, encodeFallback: s = !0, inline: c } = t, l = e.name.replace(/\.[^.]+$/, "") + ".jpg", u = null;
|
|
60
|
+
try {
|
|
61
|
+
if (u = await i(e), u && u.width > 0 && u.height > 0) {
|
|
62
|
+
let e = await a(u, n, o);
|
|
63
|
+
if (e) {
|
|
64
|
+
let { base64: t, dataUrl: n } = await r(e), i;
|
|
65
|
+
if (c) try {
|
|
66
|
+
let t = await a(u, c.maxDim, c.quality);
|
|
67
|
+
t && t.size < e.size && (i = (await r(t)).dataUrl);
|
|
68
|
+
} catch {}
|
|
69
|
+
return {
|
|
70
|
+
blob: e,
|
|
71
|
+
base64: t,
|
|
72
|
+
dataUrl: n,
|
|
73
|
+
inlineDataUrl: i,
|
|
74
|
+
mimeType: "image/jpeg",
|
|
75
|
+
filename: l,
|
|
76
|
+
downscaled: !0
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
} catch {} finally {
|
|
81
|
+
u?.release();
|
|
82
|
+
}
|
|
83
|
+
if (!s) return {
|
|
84
|
+
blob: e,
|
|
85
|
+
base64: "",
|
|
86
|
+
dataUrl: "",
|
|
87
|
+
mimeType: e.type || "image/jpeg",
|
|
88
|
+
filename: e.name || l,
|
|
89
|
+
downscaled: !1
|
|
90
|
+
};
|
|
91
|
+
let { base64: d, dataUrl: f } = await r(e);
|
|
92
|
+
return {
|
|
93
|
+
blob: e,
|
|
94
|
+
base64: d,
|
|
95
|
+
dataUrl: f,
|
|
96
|
+
mimeType: e.type || "image/jpeg",
|
|
97
|
+
filename: e.name || l,
|
|
98
|
+
downscaled: !1
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
//#endregion
|
|
102
|
+
export { e as INLINE_ENCODE, o as downscaleImage, n as selectInlineBase64 };
|
|
@@ -16,15 +16,16 @@ export { clearAuthSessionStorage, hasAuthGraphQLErrors, isAuthGraphQLError, isAu
|
|
|
16
16
|
export type { GraphQLErrorLike, TokenRefreshConfig } from './authErrorHandling';
|
|
17
17
|
export { BACKEND_ERROR_EVENT, CONNECTION_STATUS_EVENT, dispatchBackendErrorEvent, extractBackendError, isAbortError, isBackendErrorDisplay, isTransportError, markConnectionHealthy, shouldToastBackendError, } from './backendErrors';
|
|
18
18
|
export type { BackendErrorDisplay, BackendErrorExtensions, ConnectionStatusDetail, ExtractBackendErrorOptions, GraphQLBackendErrorLike, } from './backendErrors';
|
|
19
|
-
export { AppInitializer, useShellNavigate, useRegistryHelpers } from './appHelpers';
|
|
19
|
+
export { AppInitializer, useShellNavigate, useRegistryHelpers, } from './appHelpers';
|
|
20
20
|
export type { AppInitializerProps } from './appHelpers';
|
|
21
|
-
export { initializeLogger, setUserContext, clearUserContext } from './loggerInit';
|
|
21
|
+
export { initializeLogger, setUserContext, clearUserContext, } from './loggerInit';
|
|
22
22
|
export type { InitLoggerOptions } from './loggerInit';
|
|
23
23
|
export { setSSoCookie, getSSoCookie, clearSSoCookie, setShellSsoCookies, readShellSsoCookie, clearShellSsoCookies, isSharedSsoCookieDomain, isTrustedSsoOrigin, } from './authCookie';
|
|
24
24
|
export type { ShellSsoCookieData } from './authCookie';
|
|
25
25
|
export { SSO_DEPOSITED_PARAM, beginSsoNavigation, isSsoNavigationPending, clearSsoNavigation, readSsoDepositState, markSsoDepositPending, markSsoDepositDone, clearSsoDepositState, shouldAttemptSsoDeposit, mintSsoSessionTokens, buildSsoDepositUrl, consumeSsoDepositMarker, } from './ssoDeposit';
|
|
26
26
|
export type { MintedSsoTokens, MintSsoSessionResult, SsoDepositPayload, SsoDepositState, } from './ssoDeposit';
|
|
27
|
-
export { createProfileScopedStorage, getProfileScopedKey } from './profileScopedStorage';
|
|
27
|
+
export { createProfileScopedStorage, getProfileScopedKey, } from './profileScopedStorage';
|
|
28
28
|
export { QUOTA_EXHAUSTED_CODE, RESOURCE_CAP_EXCEEDED_CODE, STORAGE_QUOTA_EXCEEDED_CODE, UPGRADE_ERROR_CODES, isQuotaExhaustedError, isUpgradeError, extractUpgradeErrorExtensions, extractQuotaExhaustedExtensions, buildQuotaExhaustedMessage, } from './quotaErrors';
|
|
29
29
|
export type { QuotaExhaustedExtensions, UpgradeErrorCode, UpgradeErrorExtensions, } from './quotaErrors';
|
|
30
|
+
export * from './imageDownscale';
|
|
30
31
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C;;;GAGG;AACH,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC;AAED,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,YAAY,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAG1D,OAAO,EACL,YAAY,EACZ,WAAW,EACX,cAAc,EACd,cAAc,EACd,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,GACf,MAAM,UAAU,CAAC;AAClB,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,eAAe,EACf,eAAe,EACf,OAAO,EACP,WAAW,EACX,YAAY,EACZ,SAAS,EACT,UAAU,GACX,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGlE,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,eAAe,GAChB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG9E,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,GAChB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAGhF,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACvB,yBAAyB,EACzB,mBAAmB,EACnB,YAAY,EACZ,qBAAqB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,GACxB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/index.ts"],"names":[],"mappings":"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"}
|
package/dist/shared-assistant.js
CHANGED
|
@@ -1,79 +1,85 @@
|
|
|
1
1
|
import { useVoiceInput as e } from "./shared/assistant/voice/useVoiceInput.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
|
|
2
|
+
import { classifyQuotaError as t, isQuotaExhaustedError as n, quotaExhaustedEventName as r } from "./shared/assistant/quota.js";
|
|
3
|
+
import { buildSandboxContextInput as i, executeSandboxGraphQL as a } from "./shared/assistant/gatewayClient.js";
|
|
4
|
+
import { CHECK_AI_CREDITS as o, CREATE_SANDBOX as s, EXTEND_SANDBOX_TTL as c, GET_ACTIVE_SANDBOXES as l, GET_SANDBOX as u, PROXY_SANDBOX_REQUEST as d, REPORT_AI_TOKEN_USAGE as f, STOP_ASSISTANT_SANDBOX as p, WAIT_FOR_SANDBOX_RUNNING as m } from "./shared/assistant/operations.js";
|
|
5
|
+
import { ASSISTANT_API_AUTH_STRATEGY as h, getImageForMode as g, getImageTagForMode as _, getResourcesForMode as v, getSandboxImageRegistry as y, resolveSandboxAssistantMode as b } from "./shared/assistant/images.js";
|
|
6
|
+
import { getCapability as x, isUnknownFieldError as S, markSupported as C, markUnsupported as w } from "./shared/assistant/capabilities.js";
|
|
7
|
+
import { buildAssistantSandboxEnv as T, buildPromptRequestBody as E, checkAssistantAiCredits as D, createAssistantSandbox as O, createAssistantSession as k, downloadAssistantArtifact as A, extendAssistantSandboxTTL as j, findExistingSandbox as M, getAssistantArtifacts as N, getAssistantMessages as P, getAssistantSession as F, getAssistantStreamAccess as I, modeRequiresConfirmWrites as L, reportAssistantAiTokenUsage as R, selectExistingAssistantSandbox as z, sendAssistantPromptAsync as B, sendHeartbeat as V, stopReapedAssistantSandbox as H, waitForAssistantServiceReady as U, waitForSandboxRunning as W } from "./shared/assistant/api.js";
|
|
8
|
+
import { AssistantRuntimeManager as G } from "./shared/assistant/runtime.js";
|
|
9
|
+
import { buildProgress as K, getAssistantMedia as q, getAssistantText as J, getRawMessageCreatedAt as Y, getToolProgress as X, isReapedSandboxConnectionError as Z, isRecoverable as Q, mapSessionToHistory as $, mergeMessagesById as ee, sanitize as te } from "./shared/assistant/progress.js";
|
|
10
|
+
import { createSandboxAssistantTransport as ne } from "./shared/assistant/createSandboxAssistantTransport.js";
|
|
11
|
+
import { useSandboxAssistantTransport as re } from "./shared/assistant/useSandboxAssistantTransport.js";
|
|
12
|
+
import { chatTurns as ie, groupBySession as ae, groupConsecutiveBySession as oe, isVoiceTurn as se, voiceMarker as ce, voiceSessionIdOf as le, voiceTurnsOnly as ue } from "./shared/assistant/voice/turnVisibility.js";
|
|
13
|
+
import { browserSpeechEngine as de } from "./shared/assistant/speech/browserSpeechEngine.js";
|
|
14
|
+
import { HOSTED_TTS_TIER as fe, HOSTED_VOICES as pe, hostedLocaleFor as me, hostedSupportsLanguage as he } from "./shared/assistant/speech/hostedVoiceCatalogue.js";
|
|
15
|
+
import { HOSTED_TTS_MAX_CHARS as ge, SPEAKING_RATE_MAX as _e, SPEAKING_RATE_MAX_STREAMING as ve, SPEAKING_RATE_MAX_SYNC as ye, SPEAKING_RATE_MIN as be, base64ToBytes as xe, buildRequest as Se, classifyHttpFailure as Ce, decodeAudioResponse as we, shouldDisableEngine as Te, splitForVendor as Ee } from "./shared/assistant/speech/hostedTtsProtocol.js";
|
|
16
|
+
import { createHostedTtsEngine as De } from "./shared/assistant/speech/hostedTtsSpeechEngine.js";
|
|
17
|
+
import { createRoutingSpeechEngine as Oe } from "./shared/assistant/speech/routingSpeechEngine.js";
|
|
18
|
+
import { configureSpeechEngine as ke, createSpeechEngines as Ae, getSpeechEngine as je, readSpeechEngineConfig as Me, resetSpeechEngine as Ne } from "./shared/assistant/speech/createSpeechEngine.js";
|
|
19
|
+
import { micIsInterrupt as Pe, showsAssistantCaption as Fe, showsUserCaption as Ie, voiceStageState as Le, waveformIsActive as Re, waveformIsSettled as ze } from "./shared/assistant/voice/voiceStageState.js";
|
|
20
|
+
import { ENDPOINT_GRACE_MS as Be, INITIAL_SESSION as Ve, INTERRUPT_MAX_MS as He, INTERRUPT_MIN_MS as Ue, SILENCE_SUBMIT_MS as We, isCapturing as Ge, isEcho as Ke, isSubmittable as qe, orbMode as Je, planReplyConsumption as Ye, spokenSoFar as Xe, voiceSessionReducer as Ze } from "./shared/assistant/voice/voiceSession.js";
|
|
21
|
+
import { SPEECH_LANG as Qe, VOICE_LIST_TIMEOUT_MS as $e, isSpeechBlocked as et, languageDisplayName as tt, normalizeLangTag as nt, primaryLanguageSubtag as rt, selectVoiceForLocale as it, speechGate as at, speechLangForLocale as ot, voiceAvailability as st, voiceQualityRank as ct, voicesForLocale as lt } from "./shared/assistant/voice/speechVoices.js";
|
|
22
|
+
import { buildContinuedFromVoiceNote as ut, buildVoiceTranscriptMarkdown as dt, voiceTranscriptFilename as ft } from "./shared/assistant/voice/voiceTranscript.js";
|
|
23
|
+
import { DEFAULT_SPEAKABLE_LABELS as pt, MAX_SPEAKABLE_CHARS as mt, MAX_SPOKEN_TABLE_ROWS as ht, SPEECH_CHUNK_CHARS as gt, SPEECH_CHUNK_CJK_CHARS as _t, chunkForSpeech as vt, containsCjk as yt, speakableEmail as bt, splitTableRow as xt, toSpeakableText as St } from "./shared/assistant/voice/speakableText.js";
|
|
24
|
+
import { PREVIEW_LANGUAGES as Ct, voicePreviewText as wt } from "./shared/assistant/voice/voicePreview.js";
|
|
25
|
+
import { POLL_FAST_MS as Tt, POLL_FAST_UNTIL_MS as Et, POLL_SLOW_MS as Dt, POLL_STEADY_MS as Ot, POLL_STEADY_UNTIL_MS as kt, pollDelayMs as At } from "./shared/assistant/voice/assistantPollSchedule.js";
|
|
26
|
+
import { toCaptionText as jt } from "./shared/assistant/voice/captionText.js";
|
|
27
|
+
import { ASSISTANT_LANGUAGES as Mt, DEFAULT_SPEECH_RATE as Nt, findAssistantLanguage as Pt, resolveAssistantLanguage as Ft } from "./shared/assistant/voice/languages.js";
|
|
28
|
+
import { replyFollowsInput as It, resolveLanguagePair as Lt } from "./shared/assistant/voice/languagePair.js";
|
|
29
|
+
import { findPendingWrite as Rt, parseConfirmationRefusal as zt } from "./shared/assistant/pendingWrite.js";
|
|
30
|
+
import { AssistantProductProvider as Bt, resolveModeConfig as Vt, useAssistantProduct as Ht, useAssistantProductOrNull as Ut } from "./shared/assistant/product.js";
|
|
31
|
+
import { AssistantI18nProvider as Wt, assistantTranslationKey as Gt, useAssistantI18nNamespace as Kt, useAssistantTr as qt } from "./shared/assistant/i18n.js";
|
|
32
|
+
import { SPOKEN_LABEL_LANGUAGES as Jt, speechLabelsFor as Yt } from "./shared/assistant/voice/speechLabels.js";
|
|
33
|
+
import { detectScriptLocale as Xt, resolveSpeechLocale as Zt } from "./shared/assistant/voice/replyLanguage.js";
|
|
34
|
+
import { IDLE_PLAYBACK as Qt, isSpeakingMessage as $t, requiresCancel as en, speechPlaybackReducer as tn } from "./shared/assistant/voice/speechPlayback.js";
|
|
35
|
+
import { MAX_INLINE_IMAGE_BASE64_BYTES as nn, MAX_REQUEST_BODY_BYTES as rn } from "./shared/assistant/gatewayLimits.js";
|
|
36
|
+
import { BOILERPLATE_PAGE_SHARE as an, MAX_BOILERPLATE_LINE_CHARS as on, MAX_EXTRACTED_CHARS as sn, MAX_PDF_PAGES_SCANNED as cn, MIN_PAGE_TEXT_CHARS as ln, MIN_TEXT_PAGE_SHARE as un, columnLetterToIndex as dn, decodeXmlEntities as fn, docxXmlToText as pn, fitPdfPages as mn, formatPageRanges as hn, isMostlyImagePages as gn, joinSheets as _n, pageMarker as vn, parseSharedStrings as yn, parseWorkbookSheets as bn, pdfTextItemsToPage as xn, sheetXmlToRows as Sn, summarisePageText as Cn, truncatePagesForInline as wn } from "./shared/assistant/documentText.js";
|
|
37
|
+
import { ATTACHMENT_ACCEPT as Tn, AttachmentRejectedError as En, INLINE_IMAGE_MAX_DIM as Dn, INLINE_IMAGE_QUALITY as On, MAX_ATTACHMENTS as kn, MAX_FILE_BYTES as An, MAX_INLINE_CHARS_PER_FILE as jn, MAX_INLINE_CHARS_TOTAL as Mn, MAX_INLINE_IMAGE_BASE64_CHARS as Nn, MAX_INLINE_IMAGE_PARTS as Pn, MAX_INLINE_TURN_BODY_BYTES as Fn, MAX_TURN_BODY_BYTES as In, PROMPT_ENVELOPE_RESERVE_BYTES as Ln, TURN_BODY_HEADROOM_BYTES as Rn, buildAttachmentPromptBlock as zn, buildPromptParts as Bn, buildPromptWithAttachments as Vn, classifyAttachment as Hn, countInlineImageCandidates as Un, countInlinedImageParts as Wn, detectDocumentFormat as Gn, estimateTurnBodyBytes as Kn, formatBytes as qn, getAttachmentSendBlocker as Jn, getExtension as Yn, getSendableAttachments as Xn, hasAttachmentWorkInFlight as Zn, parseDataUrl as Qn, toMessageAttachment as $n, truncateForInline as er, validateFile as tr } from "./shared/assistant/attachments.js";
|
|
38
|
+
import { useAssistantStore as nr } from "./shared/assistant/store.js";
|
|
39
|
+
import { isTurnInFlight as rr } from "./shared/assistant/turnState.js";
|
|
40
|
+
import { AssistantToolActivity as ir, parseToolActivity as ar } from "./shared/assistant/ui/AssistantToolActivity.js";
|
|
41
|
+
import { AssistantSpeechProvider as or, useAssistantSpeech as sr } from "./shared/assistant/ui/AssistantSpeechProvider.js";
|
|
42
|
+
import { useVoiceSession as cr } from "./shared/assistant/ui/useVoiceSession.js";
|
|
43
|
+
import { copyToClipboard as lr } from "./shared/assistant/clipboard.js";
|
|
44
|
+
import { getActorId as ur, getOrganizationId as dr, getWorkspaceId as fr } from "./shared/assistant/context.js";
|
|
45
|
+
import { ATTACHMENT_SOURCES as pr, availableAttachmentSources as mr, deviceHasCamera as hr } from "./shared/assistant/attachmentSources.js";
|
|
46
|
+
import { SANDBOX_READY_TTL_MS as gr, createReadinessTracker as _r, isRecentlyVerified as vr } from "./shared/assistant/sandboxReadiness.js";
|
|
47
|
+
import { AssistantAutoSpeakToggle as yr } from "./shared/assistant/ui/AssistantAutoSpeakToggle.js";
|
|
48
|
+
import { AssistantMarkdownImage as br, imageHostLabel as xr, isRemoteImageSrc as Sr } from "./shared/assistant/ui/AssistantMarkdownImage.js";
|
|
49
|
+
import { AssistantMarkdownRenderer as Cr, assistantUrlTransform as wr } from "./shared/assistant/ui/AssistantMarkdownRenderer.js";
|
|
50
|
+
import { AssistantMessageAttachments as Tr } from "./shared/assistant/ui/AssistantMessageAttachments.js";
|
|
51
|
+
import { AssistantPendingWriteCard as Er } from "./shared/assistant/ui/AssistantPendingWriteCard.js";
|
|
52
|
+
import { AssistantReplyLanguageSelector as Dr } from "./shared/assistant/ui/AssistantReplyLanguageSelector.js";
|
|
53
|
+
import { AssistantSpeakButton as Or } from "./shared/assistant/ui/AssistantSpeakButton.js";
|
|
54
|
+
import { AssistantSpokenTurnsNotice as kr } from "./shared/assistant/ui/AssistantSpokenTurnsNotice.js";
|
|
55
|
+
import { AssistantAttachmentButton as Ar } from "./shared/assistant/ui/composer/AssistantAttachmentButton.js";
|
|
56
|
+
import { AssistantAttachmentChips as jr } from "./shared/assistant/ui/composer/AssistantAttachmentChips.js";
|
|
57
|
+
import { AssistantLanguageSelector as Mr, FOLLOW_APP_LOCALE as Nr } from "./shared/assistant/ui/composer/AssistantLanguageSelector.js";
|
|
58
|
+
import { ASSISTANT_MODE_META as Pr, AssistantModeSelector as Fr, nextModeIndex as Ir } from "./shared/assistant/ui/composer/AssistantModeSelector.js";
|
|
59
|
+
import { AssistantVoiceButton as Lr } from "./shared/assistant/ui/composer/AssistantVoiceButton.js";
|
|
60
|
+
import { AUTO_VOICE as Rr, AssistantVoiceSelector as zr } from "./shared/assistant/ui/composer/AssistantVoiceSelector.js";
|
|
61
|
+
import { AssistantVoiceOrb as Br } from "./shared/assistant/ui/voice/AssistantVoiceOrb.js";
|
|
62
|
+
import { AssistantVoiceSessionButton as Vr } from "./shared/assistant/ui/voice/AssistantVoiceSessionButton.js";
|
|
63
|
+
import { VoiceCaption as Hr } from "./shared/assistant/ui/voice/VoiceCaption.js";
|
|
64
|
+
import { VoiceConversationView as Ur } from "./shared/assistant/ui/voice/VoiceConversationView.js";
|
|
65
|
+
import { VoiceWaveform as Wr } from "./shared/assistant/ui/voice/VoiceWaveform.js";
|
|
66
|
+
import { VoiceMiniController as Gr } from "./shared/assistant/ui/voice/VoiceMiniController.js";
|
|
67
|
+
import { VoiceStage as Kr } from "./shared/assistant/ui/voice/VoiceStage.js";
|
|
68
|
+
import { VoiceTranscriptDrawer as qr } from "./shared/assistant/ui/voice/VoiceTranscriptDrawer.js";
|
|
69
|
+
import { downloadFile as Jr, exportConversation as Yr } from "./shared/assistant/exportConversation.js";
|
|
70
|
+
import { AssistantMoreMenu as Xr } from "./shared/assistant/ui/AssistantMoreMenu.js";
|
|
71
|
+
import { AssistantHeader as Zr } from "./shared/assistant/ui/AssistantHeader.js";
|
|
72
|
+
import { AssistantConversationList as Qr } from "./shared/assistant/ui/AssistantConversationList.js";
|
|
73
|
+
import { AssistantEmptyState as $r } from "./shared/assistant/ui/AssistantEmptyState.js";
|
|
74
|
+
import { AssistantMessageItem as ei } from "./shared/assistant/ui/AssistantMessageItem.js";
|
|
75
|
+
import { AssistantMessageList as ti } from "./shared/assistant/ui/AssistantMessageList.js";
|
|
76
|
+
import { AssistantVoiceSession as ni } from "./shared/assistant/ui/voice/AssistantVoiceSession.js";
|
|
77
|
+
import { useAssistantApiAccess as ri } from "./shared/assistant/useAssistantApiAccess.js";
|
|
78
|
+
import { useConversationTurns as ii } from "./shared/assistant/useConversationTurns.js";
|
|
79
|
+
import { isMultimodalBodyRejection as ai, isRecoverableAssistantError as oi } from "./shared/assistant/transportErrors.js";
|
|
80
|
+
import { aiCreditsUpdatedEventName as si, dispatchAssistantQuotaExhausted as ci, notifyAiCreditsUpdated as li } from "./shared/assistant/aiCredits.js";
|
|
81
|
+
import { useWorkspaceWriteAccess as ui } from "./shared/assistant/useWorkspaceWriteAccess.js";
|
|
82
|
+
import { extractDocumentText as di } from "./shared/assistant/documentExtract.js";
|
|
83
|
+
import { useAssistantAttachments as fi } from "./shared/assistant/useAssistantAttachments.js";
|
|
84
|
+
import { AssistantComposer as pi } from "./shared/assistant/ui/composer/AssistantComposer.js";
|
|
85
|
+
export { h as ASSISTANT_API_AUTH_STRATEGY, Mt as ASSISTANT_LANGUAGES, Pr as ASSISTANT_MODE_META, Tn as ATTACHMENT_ACCEPT, pr as ATTACHMENT_SOURCES, Rr as AUTO_VOICE, Ar as AssistantAttachmentButton, jr as AssistantAttachmentChips, yr as AssistantAutoSpeakToggle, pi as AssistantComposer, Qr as AssistantConversationList, $r as AssistantEmptyState, Zr as AssistantHeader, Wt as AssistantI18nProvider, Mr as AssistantLanguageSelector, br as AssistantMarkdownImage, Cr as AssistantMarkdownRenderer, Tr as AssistantMessageAttachments, ei as AssistantMessageItem, ti as AssistantMessageList, Fr as AssistantModeSelector, Xr as AssistantMoreMenu, Er as AssistantPendingWriteCard, Bt as AssistantProductProvider, Dr as AssistantReplyLanguageSelector, G as AssistantRuntimeManager, Or as AssistantSpeakButton, or as AssistantSpeechProvider, kr as AssistantSpokenTurnsNotice, ir as AssistantToolActivity, Lr as AssistantVoiceButton, Br as AssistantVoiceOrb, zr as AssistantVoiceSelector, ni as AssistantVoiceSession, Vr as AssistantVoiceSessionButton, En as AttachmentRejectedError, an as BOILERPLATE_PAGE_SHARE, o as CHECK_AI_CREDITS, s as CREATE_SANDBOX, pt as DEFAULT_SPEAKABLE_LABELS, Nt as DEFAULT_SPEECH_RATE, Be as ENDPOINT_GRACE_MS, c as EXTEND_SANDBOX_TTL, Nr as FOLLOW_APP_LOCALE, l as GET_ACTIVE_SANDBOXES, u as GET_SANDBOX, ge as HOSTED_TTS_MAX_CHARS, fe as HOSTED_TTS_TIER, pe as HOSTED_VOICES, Qt as IDLE_PLAYBACK, Ve as INITIAL_SESSION, Dn as INLINE_IMAGE_MAX_DIM, On as INLINE_IMAGE_QUALITY, He as INTERRUPT_MAX_MS, Ue as INTERRUPT_MIN_MS, kn as MAX_ATTACHMENTS, on as MAX_BOILERPLATE_LINE_CHARS, sn as MAX_EXTRACTED_CHARS, An as MAX_FILE_BYTES, jn as MAX_INLINE_CHARS_PER_FILE, Mn as MAX_INLINE_CHARS_TOTAL, nn as MAX_INLINE_IMAGE_BASE64_BYTES, Nn as MAX_INLINE_IMAGE_BASE64_CHARS, Pn as MAX_INLINE_IMAGE_PARTS, Fn as MAX_INLINE_TURN_BODY_BYTES, cn as MAX_PDF_PAGES_SCANNED, rn as MAX_REQUEST_BODY_BYTES, mt as MAX_SPEAKABLE_CHARS, ht as MAX_SPOKEN_TABLE_ROWS, In as MAX_TURN_BODY_BYTES, ln as MIN_PAGE_TEXT_CHARS, un as MIN_TEXT_PAGE_SHARE, Tt as POLL_FAST_MS, Et as POLL_FAST_UNTIL_MS, Dt as POLL_SLOW_MS, Ot as POLL_STEADY_MS, kt as POLL_STEADY_UNTIL_MS, Ct as PREVIEW_LANGUAGES, Ln as PROMPT_ENVELOPE_RESERVE_BYTES, d as PROXY_SANDBOX_REQUEST, f as REPORT_AI_TOKEN_USAGE, gr as SANDBOX_READY_TTL_MS, We as SILENCE_SUBMIT_MS, _e as SPEAKING_RATE_MAX, ve as SPEAKING_RATE_MAX_STREAMING, ye as SPEAKING_RATE_MAX_SYNC, be as SPEAKING_RATE_MIN, gt as SPEECH_CHUNK_CHARS, _t as SPEECH_CHUNK_CJK_CHARS, Qe as SPEECH_LANG, Jt as SPOKEN_LABEL_LANGUAGES, p as STOP_ASSISTANT_SANDBOX, Rn as TURN_BODY_HEADROOM_BYTES, $e as VOICE_LIST_TIMEOUT_MS, Hr as VoiceCaption, Ur as VoiceConversationView, Gr as VoiceMiniController, Kr as VoiceStage, qr as VoiceTranscriptDrawer, Wr as VoiceWaveform, m as WAIT_FOR_SANDBOX_RUNNING, si as aiCreditsUpdatedEventName, Gt as assistantTranslationKey, wr as assistantUrlTransform, mr as availableAttachmentSources, xe as base64ToBytes, de as browserSpeechEngine, T as buildAssistantSandboxEnv, zn as buildAttachmentPromptBlock, ut as buildContinuedFromVoiceNote, K as buildProgress, Bn as buildPromptParts, E as buildPromptRequestBody, Vn as buildPromptWithAttachments, Se as buildRequest, i as buildSandboxContextInput, dt as buildVoiceTranscriptMarkdown, ie as chatTurns, D as checkAssistantAiCredits, vt as chunkForSpeech, Hn as classifyAttachment, Ce as classifyHttpFailure, t as classifyQuotaError, dn as columnLetterToIndex, ke as configureSpeechEngine, yt as containsCjk, lr as copyToClipboard, Un as countInlineImageCandidates, Wn as countInlinedImageParts, O as createAssistantSandbox, k as createAssistantSession, De as createHostedTtsEngine, _r as createReadinessTracker, Oe as createRoutingSpeechEngine, ne as createSandboxAssistantTransport, Ae as createSpeechEngines, we as decodeAudioResponse, fn as decodeXmlEntities, Gn as detectDocumentFormat, Xt as detectScriptLocale, hr as deviceHasCamera, ci as dispatchAssistantQuotaExhausted, pn as docxXmlToText, A as downloadAssistantArtifact, Jr as downloadFile, Kn as estimateTurnBodyBytes, a as executeSandboxGraphQL, Yr as exportConversation, j as extendAssistantSandboxTTL, di as extractDocumentText, Pt as findAssistantLanguage, M as findExistingSandbox, Rt as findPendingWrite, mn as fitPdfPages, qn as formatBytes, hn as formatPageRanges, ur as getActorId, N as getAssistantArtifacts, q as getAssistantMedia, P as getAssistantMessages, F as getAssistantSession, I as getAssistantStreamAccess, J as getAssistantText, Jn as getAttachmentSendBlocker, x as getCapability, Yn as getExtension, g as getImageForMode, _ as getImageTagForMode, dr as getOrganizationId, Y as getRawMessageCreatedAt, v as getResourcesForMode, y as getSandboxImageRegistry, Xn as getSendableAttachments, je as getSpeechEngine, X as getToolProgress, fr as getWorkspaceId, ae as groupBySession, oe as groupConsecutiveBySession, Zn as hasAttachmentWorkInFlight, me as hostedLocaleFor, he as hostedSupportsLanguage, xr as imageHostLabel, Ge as isCapturing, Ke as isEcho, gn as isMostlyImagePages, ai as isMultimodalBodyRejection, n as isQuotaExhaustedError, Z as isReapedSandboxConnectionError, vr as isRecentlyVerified, Q as isRecoverable, oi as isRecoverableAssistantError, Sr as isRemoteImageSrc, $t as isSpeakingMessage, et as isSpeechBlocked, qe as isSubmittable, rr as isTurnInFlight, S as isUnknownFieldError, se as isVoiceTurn, _n as joinSheets, tt as languageDisplayName, $ as mapSessionToHistory, C as markSupported, w as markUnsupported, ee as mergeMessagesById, Pe as micIsInterrupt, L as modeRequiresConfirmWrites, Ir as nextModeIndex, nt as normalizeLangTag, li as notifyAiCreditsUpdated, Je as orbMode, vn as pageMarker, zt as parseConfirmationRefusal, Qn as parseDataUrl, yn as parseSharedStrings, ar as parseToolActivity, bn as parseWorkbookSheets, xn as pdfTextItemsToPage, Ye as planReplyConsumption, At as pollDelayMs, rt as primaryLanguageSubtag, r as quotaExhaustedEventName, Me as readSpeechEngineConfig, It as replyFollowsInput, R as reportAssistantAiTokenUsage, en as requiresCancel, Ne as resetSpeechEngine, Ft as resolveAssistantLanguage, Lt as resolveLanguagePair, Vt as resolveModeConfig, b as resolveSandboxAssistantMode, Zt as resolveSpeechLocale, te as sanitize, z as selectExistingAssistantSandbox, it as selectVoiceForLocale, B as sendAssistantPromptAsync, V as sendHeartbeat, Sn as sheetXmlToRows, Te as shouldDisableEngine, Fe as showsAssistantCaption, Ie as showsUserCaption, bt as speakableEmail, at as speechGate, Yt as speechLabelsFor, ot as speechLangForLocale, tn as speechPlaybackReducer, Ee as splitForVendor, xt as splitTableRow, Xe as spokenSoFar, H as stopReapedAssistantSandbox, Cn as summarisePageText, jt as toCaptionText, $n as toMessageAttachment, St as toSpeakableText, er as truncateForInline, wn as truncatePagesForInline, ri as useAssistantApiAccess, fi as useAssistantAttachments, Kt as useAssistantI18nNamespace, Ht as useAssistantProduct, Ut as useAssistantProductOrNull, sr as useAssistantSpeech, nr as useAssistantStore, qt as useAssistantTr, ii as useConversationTurns, re as useSandboxAssistantTransport, e as useVoiceInput, cr as useVoiceSession, ui as useWorkspaceWriteAccess, tr as validateFile, st as voiceAvailability, ce as voiceMarker, wt as voicePreviewText, ct as voiceQualityRank, le as voiceSessionIdOf, Ze as voiceSessionReducer, Le as voiceStageState, ft as voiceTranscriptFilename, ue as voiceTurnsOnly, lt as voicesForLocale, U as waitForAssistantServiceReady, W as waitForSandboxRunning, Re as waveformIsActive, ze as waveformIsSettled };
|
package/dist/shared-utils.js
CHANGED
|
@@ -11,11 +11,12 @@ import { AppInitializer as ve, useRegistryHelpers as ye, useShellNavigate as be
|
|
|
11
11
|
import { clearUserContext as xe, initializeLogger as Se, setUserContext as Ce } from "./shared/utils/loggerInit.js";
|
|
12
12
|
import { createProfileScopedStorage as we, getProfileScopedKey as Te } from "./shared/utils/profileScopedStorage.js";
|
|
13
13
|
import { QUOTA_EXHAUSTED_CODE as Ee, RESOURCE_CAP_EXCEEDED_CODE as De, STORAGE_QUOTA_EXCEEDED_CODE as Oe, UPGRADE_ERROR_CODES as ke, buildQuotaExhaustedMessage as Ae, extractQuotaExhaustedExtensions as je, extractUpgradeErrorExtensions as Me, isQuotaExhaustedError as Ne, isUpgradeError as Pe } from "./shared/utils/quotaErrors.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
14
|
+
import { INLINE_ENCODE as Fe, downscaleImage as Ie, selectInlineBase64 as Le } from "./shared/utils/imageDownscale.js";
|
|
15
|
+
import { clsx as Re } from "clsx";
|
|
16
|
+
import { twMerge as ze } from "tailwind-merge";
|
|
16
17
|
//#region src/shared/utils/index.ts
|
|
17
|
-
function
|
|
18
|
-
return
|
|
18
|
+
function Be(...e) {
|
|
19
|
+
return ze(Re(e));
|
|
19
20
|
}
|
|
20
21
|
//#endregion
|
|
21
|
-
export { ve as AppInitializer, L as BACKEND_ERROR_EVENT, R as CONNECTION_STATUS_EVENT, Ee as QUOTA_EXHAUSTED_CODE, De as RESOURCE_CAP_EXCEEDED_CODE, oe as SSO_DEPOSITED_PARAM, Oe as STORAGE_QUOTA_EXCEEDED_CODE, ke as UPGRADE_ERROR_CODES, t as alertTokens, K as attemptTokenRefresh, se as beginSsoNavigation, Ae as buildQuotaExhaustedMessage, ce as buildSsoDepositUrl, f as capitalizeFirst, p as capitalizeWords, n as categoryTokens, q as clearAuthSessionStorage, Q as clearSSoCookie, $ as clearShellSsoCookies, le as clearSsoDepositState, ue as clearSsoNavigation, xe as clearUserContext,
|
|
22
|
+
export { ve as AppInitializer, L as BACKEND_ERROR_EVENT, R as CONNECTION_STATUS_EVENT, Fe as INLINE_ENCODE, Ee as QUOTA_EXHAUSTED_CODE, De as RESOURCE_CAP_EXCEEDED_CODE, oe as SSO_DEPOSITED_PARAM, Oe as STORAGE_QUOTA_EXCEEDED_CODE, ke as UPGRADE_ERROR_CODES, t as alertTokens, K as attemptTokenRefresh, se as beginSsoNavigation, Ae as buildQuotaExhaustedMessage, ce as buildSsoDepositUrl, f as capitalizeFirst, p as capitalizeWords, n as categoryTokens, q as clearAuthSessionStorage, Q as clearSSoCookie, $ as clearShellSsoCookies, le as clearSsoDepositState, ue as clearSsoNavigation, xe as clearUserContext, Be as cn, de as consumeSsoDepositMarker, e as createApolloClient, we as createProfileScopedStorage, z as dispatchBackendErrorEvent, Ie as downscaleImage, B as extractBackendError, je as extractQuotaExhaustedExtensions, Me as extractUpgradeErrorExtensions, m as formatBytes, h as formatCompactNumber, g as formatCurrency, _ as formatCurrencyCompact, v as formatDate, y as formatDateTime, b as formatDuration, x as formatList, S as formatNumber, C as formatOrdinal, w as formatPercentage, T as formatRelativeTime, E as formatTime, r as getAlertTokens, i as getCategoryTokens, Te as getProfileScopedKey, a as getProgressTokens, ee as getSSoCookie, o as getStatusBadgeTokens, s as getStatusTokens, c as getTrendTokens, J as hasAuthGraphQLErrors, Se as initializeLogger, P as installGatewayFetchRewrite, V as isAbortError, Y as isAuthGraphQLError, X as isAuthNetworkError, H as isBackendErrorDisplay, M as isChunkLoadError, Ne as isQuotaExhaustedError, te as isSharedSsoCookieDomain, fe as isSsoNavigationPending, U as isTransportError, ne as isTrustedSsoOrigin, Pe as isUpgradeError, N as lazyWithRetry, W as markConnectionHealthy, pe as markSsoDepositDone, me as markSsoDepositPending, he as mintSsoSessionTokens, D as pluralize, l as progressTokens, re as readShellSsoCookie, ge as readSsoDepositState, Z as redirectToLogin, F as resolveGatewayBases, Le as selectInlineBase64, ie as setSSoCookie, ae as setShellSsoCookies, Ce as setUserContext, _e as shouldAttemptSsoDeposit, G as shouldToastBackendError, O as slugify, u as statusTokens, I as suppressConsole, k as toCamelCase, A as toPascalCase, d as trendTokens, j as truncateText, ye as useRegistryHelpers, be as useShellNavigate };
|