@incodetech/core 0.0.0-dev-20260803-2bd16802 → 0.0.0-dev-20260803-e2b5d35d
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/{3dAvatarProvider-D9H4rR6_.esm.js → 3dAvatarProvider-1zpeX-h8.esm.js} +2 -2
- package/dist/Face2DProvider-TLwFIRn4.esm.js +437 -0
- package/dist/{PrivacyLensProvider-DA3rp6sf.esm.js → PrivacyLensProvider-D8PS7AJa.esm.js} +3 -325
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-0e7XVmLE.esm.js → apiError-C_08gwg2.esm.js} +1 -1
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-CArZpDf_.esm.js → authenticationManager-D76jxYNX.esm.js} +2 -2
- package/dist/{authenticationStateMachine-3w56jRTO.esm.js → authenticationStateMachine-CJILuEbH.esm.js} +2 -2
- package/dist/avatar.esm.js +1 -1
- package/dist/avatar2dWarm-DqucNFX4.esm.js +1330 -0
- package/dist/{avatarStats-BIB3SREM.esm.js → avatarStats-CdUOb3VD.esm.js} +12 -22
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-3Pbtj-RV.d.ts → consentManager-uhDPdU6i.d.ts} +4 -4
- package/dist/createFaceAvatar-AF92I3xf.esm.js +103 -0
- package/dist/{deepsightLoader-DYVd_8gR.esm.js → deepsightLoader-DqEfPplN.esm.js} +3 -3
- package/dist/document-upload.d.ts +4 -4
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-Jgr8OAlG.esm.js → dynamicFormsManager-BHfeedY2.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-Cm6YJQBA.esm.js → dynamicFormsStateMachine-BeKhow9E.esm.js} +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-DLlenLG2.esm.js → ekybManager-3pPpvD6Z.esm.js} +1 -1
- package/dist/{ekybStateMachine-DpaO3WdV.esm.js → ekybStateMachine-BH8TaB7v.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-CPWJcuFy.esm.js → electronicSignatureManager-DHC0bqr9.esm.js} +1 -1
- package/dist/extensibility.d.ts +2 -2
- package/dist/extensibility.esm.js +8 -8
- package/dist/{faceCaptureManagerFactory-C58fhn5l.esm.js → faceCaptureManagerFactory-DqQCDsDY.esm.js} +1 -1
- package/dist/{faceCaptureSetup-a7dsfqui.esm.js → faceCaptureSetup-5Ye-LXbB.esm.js} +25 -10
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-BZWoO8E3.esm.js → flowCompletionService-DEO2OqAI.esm.js} +1 -1
- package/dist/{flowServices-DlsSs-nq.esm.js → flowServices-D6T8fwIf.esm.js} +3 -3
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-C7LEmSRJ.esm.js → geolocationManager-IbghOO6X.esm.js} +1 -1
- package/dist/{geolocationStateMachine-CV2cecNj.esm.js → geolocationStateMachine-B5WkRLnz.esm.js} +1 -1
- package/dist/id-selfie-flow.esm.js +6 -6
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-DtcaSiRd.esm.js → idCaptureManager-C_q4C_aV.esm.js} +1 -1
- package/dist/{idCaptureServices-DcGxxfYS.esm.js → idCaptureServices-DlnEwYJJ.esm.js} +2 -2
- package/dist/{idCaptureStateMachine-cWGQatgx.esm.js → idCaptureStateMachine-CKJ_aV6s.esm.js} +7 -7
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-DyPzUmsZ.d.ts → mandatoryConsentManager-B29kR0XA.d.ts} +4 -4
- package/dist/{mediapipeShared-B0iQQ5k7.esm.js → mediapipeShared-D0syL_Gp.esm.js} +6 -1
- package/dist/{onDeviceFaceResults-BuTjLnON.esm.js → onDeviceFaceResults-D53Rr_B1.esm.js} +3 -3
- package/dist/personhood.esm.js +3 -3
- package/dist/privacyLensWorker-DI-Rg83h.esm.js +355 -0
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-DdljWMN1.esm.js → recordingService-Dv5Ztm5Y.esm.js} +1 -1
- package/dist/{runChildModule-BSTzbivl.esm.js → runChildModule-Dh9HjxbH.esm.js} +1 -1
- package/dist/selfie.esm.js +4 -4
- package/dist/{selfieManager-BzCnteUg.esm.js → selfieManager-CwLK0icS.esm.js} +2 -2
- package/dist/{selfieStateMachine-TC6ctOex.esm.js → selfieStateMachine-C1ErWDmF.esm.js} +2 -2
- package/dist/{session-DY1mtqPs.esm.js → session-DvCKSn2k.esm.js} +4 -4
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-q_Sx6L7L.esm.js → sessionInitializer-DR77TDcE.esm.js} +2 -2
- package/dist/{setup-DZLzxBYo.esm.js → setup-DSLbrjHG.esm.js} +4 -4
- package/dist/trueSight-CGZ_9YL1.esm.js +1 -0
- package/dist/{trueSightService-mUItB6iL.esm.js → trueSightService-PXOP5bS9.esm.js} +1 -1
- package/dist/video-selfie.esm.js +3 -3
- package/dist/{videoSelfieCameraWarmer-DAG8CmBp.esm.js → videoSelfieCameraWarmer-BLrAyxUW.esm.js} +2 -2
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.d.ts +4 -4
- package/dist/workflow.esm.js +14 -14
- package/package.json +1 -1
- package/dist/Face2DProvider-BZCsS_sf.esm.js +0 -824
- package/dist/createFaceAvatar-x5aaJwVM.esm.js +0 -42
- package/dist/trueSight-CxKqRMOO.esm.js +0 -1
package/dist/{idCaptureStateMachine-cWGQatgx.esm.js → idCaptureStateMachine-CKJ_aV6s.esm.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
2
|
import { n as revokeObjectURL } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
3
3
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
4
|
-
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
5
|
-
import { t as getDisableIpify } from "./sessionInitializer-
|
|
6
|
-
import "./trueSight-
|
|
4
|
+
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-PXOP5bS9.esm.js";
|
|
5
|
+
import { t as getDisableIpify } from "./sessionInitializer-DR77TDcE.esm.js";
|
|
6
|
+
import "./trueSight-CGZ_9YL1.esm.js";
|
|
7
7
|
import { t as addDeviceStats } from "./stats-B0nFKawG.esm.js";
|
|
8
8
|
import { t as isAndroid } from "./platform-Cd_yWGNG.esm.js";
|
|
9
|
-
import "./session-
|
|
9
|
+
import "./session-DvCKSn2k.esm.js";
|
|
10
10
|
import { a as and, n as sendTo, r as assign, s as not, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
11
11
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
12
12
|
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-3UAjhmjw.esm.js";
|
|
13
|
-
import { _ as StreamCanvasProcessingSession } from "./onDeviceFaceResults-
|
|
13
|
+
import { _ as StreamCanvasProcessingSession } from "./onDeviceFaceResults-D53Rr_B1.esm.js";
|
|
14
14
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
15
15
|
import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
|
|
16
16
|
import { t as getBrowser } from "./getBrowser-DNrQeL4T.esm.js";
|
|
@@ -19,7 +19,7 @@ import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js"
|
|
|
19
19
|
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-KNkc71eN.esm.js";
|
|
20
20
|
import { n as flagIdManualReview } from "./manualReviewService-D4IkipnN.esm.js";
|
|
21
21
|
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS } from "./idCaptureDefaults-DrQe0hWr.esm.js";
|
|
22
|
-
import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, i as preloadIdRecordingProvider, l as uploadIdImage, o as startRecordingSession, p as getIdCameraStream, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-
|
|
22
|
+
import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, i as preloadIdRecordingProvider, l as uploadIdImage, o as startRecordingSession, p as getIdCameraStream, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-DlnEwYJJ.esm.js";
|
|
23
23
|
//#region src/modules/id/digitalUpload/digitalUploadErrors.ts
|
|
24
24
|
const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
25
25
|
function isKnownFailReason(reason) {
|
|
@@ -1316,7 +1316,7 @@ const startRecordingActor = fromPromise(async ({ input }) => {
|
|
|
1316
1316
|
});
|
|
1317
1317
|
const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
|
|
1318
1318
|
if (!input.dependencies) return;
|
|
1319
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
1319
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-DqEfPplN.esm.js");
|
|
1320
1320
|
return loadDeepsightSession({
|
|
1321
1321
|
ds: input.ds,
|
|
1322
1322
|
storage: input.dependencies.storage,
|
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as reset, o as setup, r as isConfigured } from "./setup-
|
|
1
|
+
import { i as reset, o as setup, r as isConfigured } from "./setup-DSLbrjHG.esm.js";
|
|
2
2
|
export { isConfigured, reset, setup };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { r as MandatoryConsentConfig } from "./types-BX_XkMsQ2.js";
|
|
2
|
-
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-
|
|
2
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-B29kR0XA.js";
|
|
3
3
|
export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
|
package/dist/{mandatoryConsentManager-DyPzUmsZ.d.ts → mandatoryConsentManager-B29kR0XA.d.ts}
RENAMED
|
@@ -61,14 +61,14 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
|
|
|
61
61
|
type: "clearError";
|
|
62
62
|
params: NonReducibleUnknown;
|
|
63
63
|
};
|
|
64
|
-
resetContext: {
|
|
65
|
-
type: "resetContext";
|
|
66
|
-
params: NonReducibleUnknown;
|
|
67
|
-
};
|
|
68
64
|
toggleSigned: {
|
|
69
65
|
type: "toggleSigned";
|
|
70
66
|
params: NonReducibleUnknown;
|
|
71
67
|
};
|
|
68
|
+
resetContext: {
|
|
69
|
+
type: "resetContext";
|
|
70
|
+
params: NonReducibleUnknown;
|
|
71
|
+
};
|
|
72
72
|
}>, {
|
|
73
73
|
type: "canSubmit";
|
|
74
74
|
params: unknown;
|
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
* - `outputFaceBlendshapes: true` — drives blink / mouth / smile.
|
|
25
25
|
*/
|
|
26
26
|
async function createFaceLandmarker(paths) {
|
|
27
|
+
const modelBytesPromise = fetch(paths.faceLandmarkerModelPath).then((res) => {
|
|
28
|
+
if (!res.ok) throw new Error(`model fetch HTTP ${res.status}`);
|
|
29
|
+
return res.arrayBuffer();
|
|
30
|
+
}).then((buf) => new Uint8Array(buf)).catch(() => null);
|
|
27
31
|
const globalScope = window;
|
|
28
32
|
const savedModule = globalScope.Module;
|
|
29
33
|
globalScope.Module = void 0;
|
|
@@ -33,9 +37,10 @@ async function createFaceLandmarker(paths) {
|
|
|
33
37
|
paths.mediapipeModulePath
|
|
34
38
|
);
|
|
35
39
|
const fileset = await tasksVision.FilesetResolver.forVisionTasks(paths.mediapipeWasmPath);
|
|
40
|
+
const modelBytes = await modelBytesPromise;
|
|
36
41
|
return await tasksVision.FaceLandmarker.createFromOptions(fileset, {
|
|
37
42
|
baseOptions: {
|
|
38
|
-
modelAssetPath: paths.faceLandmarkerModelPath,
|
|
43
|
+
...modelBytes ? { modelAssetBuffer: modelBytes } : { modelAssetPath: paths.faceLandmarkerModelPath },
|
|
39
44
|
delegate: "CPU"
|
|
40
45
|
},
|
|
41
46
|
runningMode: "VIDEO",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { c as mlWasmJSApi_default, i as BaseWasmProvider } from "./safeStorage-Ep56I-f_.esm.js";
|
|
2
2
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
3
|
+
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-PXOP5bS9.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
5
|
-
import "./trueSight-
|
|
5
|
+
import "./trueSight-CGZ_9YL1.esm.js";
|
|
6
6
|
import { t as addDeviceStats } from "./stats-B0nFKawG.esm.js";
|
|
7
7
|
import { a as isIPhone14OrHigher, n as isDesktop } from "./platform-Cd_yWGNG.esm.js";
|
|
8
8
|
import { a as stopCameraStream, r as requestCameraAccess } from "./camera-BmFEyPP_.esm.js";
|
|
@@ -521,7 +521,7 @@ async function stopRecording(session) {
|
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
523
|
async function initializeDeepsightSession(options) {
|
|
524
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
524
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-DqEfPplN.esm.js");
|
|
525
525
|
return loadDeepsightSession({
|
|
526
526
|
ds: options.ds,
|
|
527
527
|
storage: options.storage
|
package/dist/personhood.esm.js
CHANGED
|
@@ -2,15 +2,15 @@ import { r as WasmUtilProvider } from "./safeStorage-Ep56I-f_.esm.js";
|
|
|
2
2
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-k-FDkC4W.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
4
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
5
|
-
import { b as getStoredHttpConfig, w as createApi$1, y as randomUUID } from "./trueSightService-
|
|
5
|
+
import { b as getStoredHttpConfig, w as createApi$1, y as randomUUID } from "./trueSightService-PXOP5bS9.esm.js";
|
|
6
6
|
import { n as eventModuleNames } from "./events-ethtfu2b.esm.js";
|
|
7
|
-
import { _ as getDeviceFingerprintInfo, g as getThumbmarkId, n as getFingerprintEnabled, p as isBrowserSimulation, v as BrowserEnvironmentProvider } from "./sessionInitializer-
|
|
7
|
+
import { _ as getDeviceFingerprintInfo, g as getThumbmarkId, n as getFingerprintEnabled, p as isBrowserSimulation, v as BrowserEnvironmentProvider } from "./sessionInitializer-DR77TDcE.esm.js";
|
|
8
8
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
9
9
|
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
10
10
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
11
11
|
import { i as requestPermission, t as checkPermission } from "./permissionServices-3UAjhmjw.esm.js";
|
|
12
12
|
import { a as stopCameraStream, r as requestCameraAccess } from "./camera-BmFEyPP_.esm.js";
|
|
13
|
-
import { f as stopStream, l as startDetection, s as initializeDeepsightSession, v as FaceDetectionProvider } from "./onDeviceFaceResults-
|
|
13
|
+
import { f as stopStream, l as startDetection, s as initializeDeepsightSession, v as FaceDetectionProvider } from "./onDeviceFaceResults-D53Rr_B1.esm.js";
|
|
14
14
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
15
15
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
16
16
|
//#region src/modules/personhood/personhoodServices.ts
|
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
import { n as createStatsWindow } from "./avatarStats-CdUOb3VD.esm.js";
|
|
2
|
+
//#region ../infra/src/avatar/framePacing.ts
|
|
3
|
+
/**
|
|
4
|
+
* Creates a tolerance-based fps cap. The first frame is always accepted.
|
|
5
|
+
*
|
|
6
|
+
* The default is the literal `8` (= FRAME_PACER_TOLERANCE_MS), NOT the
|
|
7
|
+
* constant: this function is serialized into worker blobs via `toString()`,
|
|
8
|
+
* where a module-scope reference in a default parameter would ReferenceError
|
|
9
|
+
* at runtime on the first one-arg call — and no serialization test evaluates
|
|
10
|
+
* defaults, so it would ship silently.
|
|
11
|
+
*/
|
|
12
|
+
function createFramePacer(maxFps, toleranceMs = 8) {
|
|
13
|
+
const intervalMs = 1e3 / Math.max(maxFps, 1);
|
|
14
|
+
const minGapMs = Math.max(intervalMs - toleranceMs, 0);
|
|
15
|
+
let lastAcceptedAt = Number.NEGATIVE_INFINITY;
|
|
16
|
+
let dropped = 0;
|
|
17
|
+
return {
|
|
18
|
+
shouldRender(nowMs) {
|
|
19
|
+
if (nowMs - lastAcceptedAt >= minGapMs) {
|
|
20
|
+
lastAcceptedAt = nowMs;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
dropped += 1;
|
|
24
|
+
return false;
|
|
25
|
+
},
|
|
26
|
+
get droppedCount() {
|
|
27
|
+
return dropped;
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region ../infra/src/avatar/privacy-lens/privacyLensGlCore.ts
|
|
33
|
+
/**
|
|
34
|
+
* Builds the lens GL pipeline on `canvas`. Throws if WebGL is unavailable or
|
|
35
|
+
* the program fails to compile/link (callers fall back / surface the error).
|
|
36
|
+
* SELF-CONTAINED — see the module doc before editing.
|
|
37
|
+
*/
|
|
38
|
+
function createPrivacyLensGl(canvas, vertSrc, fragSrc, renderSize) {
|
|
39
|
+
canvas.width = renderSize;
|
|
40
|
+
canvas.height = renderSize;
|
|
41
|
+
const gl = canvas.getContext("webgl", {
|
|
42
|
+
alpha: false,
|
|
43
|
+
antialias: false,
|
|
44
|
+
premultipliedAlpha: false,
|
|
45
|
+
preserveDrawingBuffer: false
|
|
46
|
+
}) ?? canvas.getContext("experimental-webgl");
|
|
47
|
+
if (!gl) throw new Error("privacy-lens: WebGL is not available");
|
|
48
|
+
const compile = (type, src) => {
|
|
49
|
+
const shader = gl.createShader(type);
|
|
50
|
+
if (!shader) throw new Error("privacy-lens: createShader failed");
|
|
51
|
+
gl.shaderSource(shader, src);
|
|
52
|
+
gl.compileShader(shader);
|
|
53
|
+
if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) {
|
|
54
|
+
const log = gl.getShaderInfoLog(shader);
|
|
55
|
+
gl.deleteShader(shader);
|
|
56
|
+
throw new Error(`privacy-lens: shader compile failed: ${log}`);
|
|
57
|
+
}
|
|
58
|
+
return shader;
|
|
59
|
+
};
|
|
60
|
+
const vs = compile(gl.VERTEX_SHADER, vertSrc);
|
|
61
|
+
const fs = compile(gl.FRAGMENT_SHADER, fragSrc);
|
|
62
|
+
const program = gl.createProgram();
|
|
63
|
+
if (!program) throw new Error("privacy-lens: createProgram failed");
|
|
64
|
+
gl.attachShader(program, vs);
|
|
65
|
+
gl.attachShader(program, fs);
|
|
66
|
+
gl.linkProgram(program);
|
|
67
|
+
gl.deleteShader(vs);
|
|
68
|
+
gl.deleteShader(fs);
|
|
69
|
+
if (!gl.getProgramParameter(program, gl.LINK_STATUS)) {
|
|
70
|
+
const log = gl.getProgramInfoLog(program);
|
|
71
|
+
gl.deleteProgram(program);
|
|
72
|
+
throw new Error(`privacy-lens: program link failed: ${log}`);
|
|
73
|
+
}
|
|
74
|
+
gl.useProgram(program);
|
|
75
|
+
const quad = gl.createBuffer();
|
|
76
|
+
gl.bindBuffer(gl.ARRAY_BUFFER, quad);
|
|
77
|
+
gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([
|
|
78
|
+
-1,
|
|
79
|
+
-1,
|
|
80
|
+
1,
|
|
81
|
+
-1,
|
|
82
|
+
-1,
|
|
83
|
+
1,
|
|
84
|
+
1,
|
|
85
|
+
1
|
|
86
|
+
]), gl.STATIC_DRAW);
|
|
87
|
+
const aPos = gl.getAttribLocation(program, "aPos");
|
|
88
|
+
gl.enableVertexAttribArray(aPos);
|
|
89
|
+
gl.vertexAttribPointer(aPos, 2, gl.FLOAT, false, 0, 0);
|
|
90
|
+
const videoTex = gl.createTexture();
|
|
91
|
+
if (!videoTex) throw new Error("privacy-lens: createTexture failed");
|
|
92
|
+
gl.bindTexture(gl.TEXTURE_2D, videoTex);
|
|
93
|
+
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);
|
|
94
|
+
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);
|
|
95
|
+
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);
|
|
96
|
+
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);
|
|
97
|
+
const uniformNames = [
|
|
98
|
+
"uVideo",
|
|
99
|
+
"uRes",
|
|
100
|
+
"uVideoRes",
|
|
101
|
+
"uTime",
|
|
102
|
+
"uFrost",
|
|
103
|
+
"uSandblast",
|
|
104
|
+
"uGrainSize",
|
|
105
|
+
"uWarmth",
|
|
106
|
+
"uBright",
|
|
107
|
+
"uShadow",
|
|
108
|
+
"uSun",
|
|
109
|
+
"uSunSpeed"
|
|
110
|
+
];
|
|
111
|
+
const uniforms = {};
|
|
112
|
+
for (let i = 0; i < uniformNames.length; i += 1) uniforms[uniformNames[i]] = gl.getUniformLocation(program, uniformNames[i]);
|
|
113
|
+
gl.uniform1i(uniforms.uVideo, 0);
|
|
114
|
+
if (uniforms.uRes) gl.uniform2f(uniforms.uRes, renderSize, renderSize);
|
|
115
|
+
gl.viewport(0, 0, renderSize, renderSize);
|
|
116
|
+
gl.clearColor(.88, .86, .83, 1);
|
|
117
|
+
let texWidth = 0;
|
|
118
|
+
let texHeight = 0;
|
|
119
|
+
let disposed = false;
|
|
120
|
+
const setF = (name, value) => {
|
|
121
|
+
const loc = uniforms[name];
|
|
122
|
+
if (loc) gl.uniform1f(loc, value);
|
|
123
|
+
};
|
|
124
|
+
return {
|
|
125
|
+
clear() {
|
|
126
|
+
if (disposed) return;
|
|
127
|
+
gl.clear(gl.COLOR_BUFFER_BIT);
|
|
128
|
+
},
|
|
129
|
+
render(source, srcWidth, srcHeight, timeSec, params, measure) {
|
|
130
|
+
if (disposed) return null;
|
|
131
|
+
const t0 = measure ? performance.now() : 0;
|
|
132
|
+
gl.activeTexture(gl.TEXTURE0);
|
|
133
|
+
gl.bindTexture(gl.TEXTURE_2D, videoTex);
|
|
134
|
+
if (srcWidth !== texWidth || srcHeight !== texHeight) {
|
|
135
|
+
texWidth = srcWidth;
|
|
136
|
+
texHeight = srcHeight;
|
|
137
|
+
gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, texWidth, texHeight, 0, gl.RGBA, gl.UNSIGNED_BYTE, null);
|
|
138
|
+
if (uniforms.uVideoRes) gl.uniform2f(uniforms.uVideoRes, texWidth, texHeight);
|
|
139
|
+
}
|
|
140
|
+
gl.texSubImage2D(gl.TEXTURE_2D, 0, 0, 0, gl.RGBA, gl.UNSIGNED_BYTE, source);
|
|
141
|
+
const t1 = measure ? performance.now() : 0;
|
|
142
|
+
setF("uTime", timeSec);
|
|
143
|
+
setF("uFrost", params.frost);
|
|
144
|
+
setF("uSandblast", params.sandblast);
|
|
145
|
+
setF("uGrainSize", params.grainSize);
|
|
146
|
+
setF("uWarmth", params.warmth);
|
|
147
|
+
setF("uBright", params.brightness);
|
|
148
|
+
setF("uShadow", params.shadowLift);
|
|
149
|
+
setF("uSun", params.sun);
|
|
150
|
+
setF("uSunSpeed", params.sunSpeed);
|
|
151
|
+
gl.drawArrays(gl.TRIANGLE_STRIP, 0, 4);
|
|
152
|
+
if (!measure) return null;
|
|
153
|
+
const t2 = performance.now();
|
|
154
|
+
return {
|
|
155
|
+
uploadMs: t1 - t0,
|
|
156
|
+
drawMs: t2 - t1
|
|
157
|
+
};
|
|
158
|
+
},
|
|
159
|
+
dispose() {
|
|
160
|
+
if (disposed) return;
|
|
161
|
+
disposed = true;
|
|
162
|
+
gl.deleteProgram(program);
|
|
163
|
+
gl.deleteBuffer(quad);
|
|
164
|
+
gl.deleteTexture(videoTex);
|
|
165
|
+
gl.getExtension("WEBGL_lose_context")?.loseContext();
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
//#endregion
|
|
170
|
+
//#region ../infra/src/avatar/privacy-lens/privacyLensWorker.ts
|
|
171
|
+
/**
|
|
172
|
+
* Worker mode for the privacy lens (ENG-49806 Plan B).
|
|
173
|
+
*
|
|
174
|
+
* Under a saturated main thread (the synchronous WASM detection pipeline can
|
|
175
|
+
* occupy it back-to-back on throttled/low-tier devices) a main-thread lens is
|
|
176
|
+
* starved to single-digit fps regardless of how cheap its frame is — measured
|
|
177
|
+
* at 1.6-3 fps with 0ms upload/draw. The fix is to take the main thread out of
|
|
178
|
+
* the frame path entirely: camera track → `MediaStreamTrackProcessor` →
|
|
179
|
+
* `VideoFrame` stream → worker → OffscreenCanvas WebGL. The main thread only
|
|
180
|
+
* bridges dev-tuning params and stats at 4 Hz.
|
|
181
|
+
*
|
|
182
|
+
* Support: Chromium 94+ (Chrome/Edge/Android WebView/Samsung Internet) — the
|
|
183
|
+
* low-tier Android target segment. Safari/Firefox and strict-CSP hosts that
|
|
184
|
+
* block blob workers fail the probe or the Worker constructor and fall back to
|
|
185
|
+
* the main-thread path automatically (`PrivacyLensProvider`).
|
|
186
|
+
*
|
|
187
|
+
* Packaging: the worker script is assembled AT RUNTIME from
|
|
188
|
+
* `Function.prototype.toString()` of the shared, self-contained functions
|
|
189
|
+
* (`createPrivacyLensGl`, `createFramePacer`, `createStatsWindow`,
|
|
190
|
+
* `privacyLensWorkerMain`) plus JSON-injected shader sources and stats/pacer
|
|
191
|
+
* constants, and loaded via a Blob URL. No separate worker chunk to ship —
|
|
192
|
+
* bundler-agnostic for npm and CDN consumers alike. The serialized functions
|
|
193
|
+
* must therefore never close over module-level values.
|
|
194
|
+
*/
|
|
195
|
+
/**
|
|
196
|
+
* Whether the worker path is available in this environment. All three probes
|
|
197
|
+
* must hold; anything missing (Safari's worker-only MSTP shape, Firefox, old
|
|
198
|
+
* WebView) routes to the main-thread fallback.
|
|
199
|
+
*/
|
|
200
|
+
function canUsePrivacyLensWorker() {
|
|
201
|
+
const g = globalThis;
|
|
202
|
+
if (typeof g.MediaStreamTrackProcessor !== "function" || typeof g.Worker !== "function" || typeof g.HTMLCanvasElement !== "function") return false;
|
|
203
|
+
return "transferControlToOffscreen" in g.HTMLCanvasElement.prototype;
|
|
204
|
+
}
|
|
205
|
+
/** Constructs a MediaStreamTrackProcessor (Chromium main-thread shape). */
|
|
206
|
+
function createTrackProcessor(track) {
|
|
207
|
+
const Ctor = globalThis.MediaStreamTrackProcessor;
|
|
208
|
+
if (!Ctor) throw new Error("MediaStreamTrackProcessor unavailable");
|
|
209
|
+
return new Ctor({ track });
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* The worker's entire logic. SELF-CONTAINED (serialized via toString into the
|
|
213
|
+
* blob): everything it needs arrives via `deps` / messages; no module refs.
|
|
214
|
+
* Frame loop: sequential read → pace → render → close. MSTP buffers at most
|
|
215
|
+
* one frame internally, so reads always yield the freshest frame and closing
|
|
216
|
+
* every frame promptly keeps the camera's frame pool healthy — an unclosed
|
|
217
|
+
* VideoFrame can stall the CAPTURE pipeline, which the lens must never do.
|
|
218
|
+
*/
|
|
219
|
+
function privacyLensWorkerMain(scope, deps) {
|
|
220
|
+
let gl = null;
|
|
221
|
+
let pacer = null;
|
|
222
|
+
let reader = null;
|
|
223
|
+
let params = null;
|
|
224
|
+
let statsEnabled = false;
|
|
225
|
+
let stopped = false;
|
|
226
|
+
let stats = null;
|
|
227
|
+
const pump = async () => {
|
|
228
|
+
const startTime = performance.now();
|
|
229
|
+
while (!stopped && reader && gl && pacer && params) {
|
|
230
|
+
let result;
|
|
231
|
+
try {
|
|
232
|
+
result = await reader.read();
|
|
233
|
+
} catch {
|
|
234
|
+
break;
|
|
235
|
+
}
|
|
236
|
+
if (result.done) break;
|
|
237
|
+
const frame = result.value;
|
|
238
|
+
try {
|
|
239
|
+
const now = performance.now();
|
|
240
|
+
if (!pacer.shouldRender(now)) {
|
|
241
|
+
if (statsEnabled) stats?.noteDropped();
|
|
242
|
+
continue;
|
|
243
|
+
}
|
|
244
|
+
const timing = gl.render(frame, frame.displayWidth, frame.displayHeight, (now - startTime) / 1e3, params, statsEnabled);
|
|
245
|
+
if (statsEnabled) stats?.noteRendered(now, timing?.uploadMs, timing?.drawMs);
|
|
246
|
+
} catch {} finally {
|
|
247
|
+
frame.close();
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
scope.onmessage = (event) => {
|
|
252
|
+
const msg = event.data;
|
|
253
|
+
if (msg.type === "start") {
|
|
254
|
+
try {
|
|
255
|
+
gl = deps.createGl(msg.canvas, deps.vertSrc, deps.fragSrc, deps.renderSize);
|
|
256
|
+
gl.clear();
|
|
257
|
+
} catch (error) {
|
|
258
|
+
scope.postMessage({
|
|
259
|
+
type: "fatal",
|
|
260
|
+
message: String(error)
|
|
261
|
+
});
|
|
262
|
+
return;
|
|
263
|
+
}
|
|
264
|
+
params = msg.params;
|
|
265
|
+
statsEnabled = msg.statsEnabled;
|
|
266
|
+
stats = deps.createStats({
|
|
267
|
+
variant: "privacy-lens",
|
|
268
|
+
mode: "worker",
|
|
269
|
+
publishIntervalMs: deps.publishIntervalMs,
|
|
270
|
+
gapWindow: deps.gapWindow,
|
|
271
|
+
publish: (snapshot) => scope.postMessage({
|
|
272
|
+
type: "stats",
|
|
273
|
+
snapshot
|
|
274
|
+
})
|
|
275
|
+
});
|
|
276
|
+
pacer = deps.createPacer(msg.maxFps, deps.frameToleranceMs);
|
|
277
|
+
reader = msg.readable.getReader();
|
|
278
|
+
scope.postMessage({ type: "started" });
|
|
279
|
+
pump();
|
|
280
|
+
} else if (msg.type === "params") params = msg.params;
|
|
281
|
+
else if (msg.type === "statsEnabled") statsEnabled = msg.value;
|
|
282
|
+
else if (msg.type === "stop") {
|
|
283
|
+
stopped = true;
|
|
284
|
+
try {
|
|
285
|
+
reader?.cancel();
|
|
286
|
+
} catch {}
|
|
287
|
+
gl?.dispose();
|
|
288
|
+
gl = null;
|
|
289
|
+
scope.postMessage({ type: "stopped" });
|
|
290
|
+
}
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Dev/build transforms that inject module-level references into function bodies.
|
|
295
|
+
* These pass `new Function(src)` (syntactically valid) but throw a
|
|
296
|
+
* `ReferenceError` at worker boot because the injected identifier
|
|
297
|
+
* (`$RefreshSig$`, `cov_xxx()`, …) doesn't exist in the worker scope — silently
|
|
298
|
+
* downgrading everyone to the slow main-thread path via the fatal→fallback net.
|
|
299
|
+
* The vite config excludes `packages/infra` from prefresh for this reason; this
|
|
300
|
+
* list is the runtime backstop for any other instrumenter (coverage, SSR, a
|
|
301
|
+
* consumer's bundler) that the config can't reach.
|
|
302
|
+
*/
|
|
303
|
+
const WORKER_SOURCE_SENTINELS = [
|
|
304
|
+
{
|
|
305
|
+
name: "prefresh / react-refresh",
|
|
306
|
+
pattern: /\$Refresh(Sig|Reg)\$/
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
name: "istanbul coverage",
|
|
310
|
+
pattern: /\bcov_[0-9a-zA-Z]+\(/
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
name: "vite SSR transform",
|
|
314
|
+
pattern: /__vite_ssr_/
|
|
315
|
+
}
|
|
316
|
+
];
|
|
317
|
+
/**
|
|
318
|
+
* Returns the name of the instrumenter that corrupted the serialized worker
|
|
319
|
+
* source, or null if the source is clean. Callers log loudly and fall back to
|
|
320
|
+
* the main-thread lens rather than booting a worker that will `ReferenceError`.
|
|
321
|
+
*/
|
|
322
|
+
function detectWorkerSourceInstrumentation(source) {
|
|
323
|
+
for (const sentinel of WORKER_SOURCE_SENTINELS) if (sentinel.pattern.test(source)) return sentinel.name;
|
|
324
|
+
return null;
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Assembles the worker script from the serialized shared functions + injected
|
|
328
|
+
* shader sources and stats/pacer constants. Everything referenced must be
|
|
329
|
+
* self-contained (see module doc); the shaders and the numeric constants
|
|
330
|
+
* (`PUBLISH_INTERVAL_MS`, `GAP_WINDOW`, `FRAME_PACER_TOLERANCE_MS`) are injected
|
|
331
|
+
* as literals so the worker never depends on this module's scope.
|
|
332
|
+
*/
|
|
333
|
+
function buildPrivacyLensWorkerSource(options) {
|
|
334
|
+
if (!Number.isFinite(options.renderSize)) throw new Error(`privacy-lens: renderSize must be finite, got ${String(options.renderSize)}`);
|
|
335
|
+
return [
|
|
336
|
+
"\"use strict\";",
|
|
337
|
+
`const createGl = ${createPrivacyLensGl.toString()};`,
|
|
338
|
+
`const createPacer = ${createFramePacer.toString()};`,
|
|
339
|
+
`const createStats = ${createStatsWindow.toString()};`,
|
|
340
|
+
`const workerMain = ${privacyLensWorkerMain.toString()};`,
|
|
341
|
+
`workerMain(self, {
|
|
342
|
+
createGl,
|
|
343
|
+
createPacer,
|
|
344
|
+
createStats,
|
|
345
|
+
vertSrc: ${JSON.stringify(options.vertSrc)},
|
|
346
|
+
fragSrc: ${JSON.stringify(options.fragSrc)},
|
|
347
|
+
renderSize: ${JSON.stringify(options.renderSize)},
|
|
348
|
+
publishIntervalMs: ${JSON.stringify(500)},
|
|
349
|
+
gapWindow: ${JSON.stringify(128)},
|
|
350
|
+
frameToleranceMs: ${JSON.stringify(8)},
|
|
351
|
+
});`
|
|
352
|
+
].join("\n");
|
|
353
|
+
}
|
|
354
|
+
//#endregion
|
|
355
|
+
export { createPrivacyLensGl as a, detectWorkerSourceInstrumentation as i, canUsePrivacyLensWorker as n, createFramePacer as o, createTrackProcessor as r, buildPrivacyLensWorkerSource as t };
|
package/dist/qe-signature.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as areAllConsented, i as QE_CONSENT_KEYS, n as electronicSignatureMachine, s as getDefaultConsentChecks, t as createElectronicSignatureManager } from "./electronicSignatureManager-
|
|
1
|
+
import { a as areAllConsented, i as QE_CONSENT_KEYS, n as electronicSignatureMachine, s as getDefaultConsentChecks, t as createElectronicSignatureManager } from "./electronicSignatureManager-DHC0bqr9.esm.js";
|
|
2
2
|
//#region src/modules/qe-signature/index.ts
|
|
3
3
|
function createQeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as isAndroid } from "./platform-Cd_yWGNG.esm.js";
|
|
2
|
-
import { d as stopRecording, g as uploadDeepsightVideo, u as startRecordingSession } from "./onDeviceFaceResults-
|
|
2
|
+
import { d as stopRecording, g as uploadDeepsightVideo, u as startRecordingSession } from "./onDeviceFaceResults-D53Rr_B1.esm.js";
|
|
3
3
|
import { t as getAdaptiveMediaRecorderOptions } from "./mediaRecorderOptions-CUsftWlH.esm.js";
|
|
4
4
|
//#region ../infra/src/media/VideoTrimmer.ts
|
|
5
5
|
async function getDurationBySeek(videoBlob) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
2
|
-
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-
|
|
2
|
+
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-PXOP5bS9.esm.js";
|
|
3
3
|
import { C as createEventBus } from "./events-ethtfu2b.esm.js";
|
|
4
4
|
import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
5
|
import { t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
package/dist/selfie.esm.js
CHANGED
|
@@ -3,11 +3,11 @@ import { t as BrowserStorageProvider } from "./BrowserStorageProvider-k-FDkC4W.e
|
|
|
3
3
|
import { n as eventModuleNames } from "./events-ethtfu2b.esm.js";
|
|
4
4
|
import { o as createActor, r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
6
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
7
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-5Ye-LXbB.esm.js";
|
|
7
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-DqQCDsDY.esm.js";
|
|
8
8
|
import { r as processFace } from "./selfieErrorUtils-DggLa9pg.esm.js";
|
|
9
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
10
|
-
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-
|
|
9
|
+
import { t as selfieMachine } from "./selfieStateMachine-C1ErWDmF.esm.js";
|
|
10
|
+
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-CwLK0icS.esm.js";
|
|
11
11
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-DVtdZdpI.esm.js";
|
|
12
12
|
//#region src/modules/selfie/selfieCaptureOnlyStateMachine.ts
|
|
13
13
|
/**
|
|
@@ -2,8 +2,8 @@ import { r as WasmUtilProvider } from "./safeStorage-Ep56I-f_.esm.js";
|
|
|
2
2
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-k-FDkC4W.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./events-ethtfu2b.esm.js";
|
|
4
4
|
import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
5
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-DqQCDsDY.esm.js";
|
|
6
|
+
import { t as selfieMachine } from "./selfieStateMachine-C1ErWDmF.esm.js";
|
|
7
7
|
//#region src/modules/selfie/selfieActor.ts
|
|
8
8
|
function createSelfieActor(options) {
|
|
9
9
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
2
2
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
3
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-
|
|
3
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-5Ye-LXbB.esm.js";
|
|
4
|
+
import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-D53Rr_B1.esm.js";
|
|
5
5
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
6
6
|
import { i as uploadSelfie, n as validateUploadResponse, r as processFace } from "./selfieErrorUtils-DggLa9pg.esm.js";
|
|
7
7
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as getApi } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { h as noteSessionCreated, l as trueSightLog } from "./trueSightService-
|
|
3
|
-
import "./sessionInitializer-
|
|
2
|
+
import { h as noteSessionCreated, l as trueSightLog } from "./trueSightService-PXOP5bS9.esm.js";
|
|
3
|
+
import "./sessionInitializer-DR77TDcE.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
5
|
-
import "./trueSight-
|
|
6
|
-
import { r as toIncodeApiError } from "./apiError-
|
|
5
|
+
import "./trueSight-CGZ_9YL1.esm.js";
|
|
6
|
+
import { r as toIncodeApiError } from "./apiError-C_08gwg2.esm.js";
|
|
7
7
|
//#region src/internal/session/sessionService.ts
|
|
8
8
|
/**
|
|
9
9
|
* HTTP status codes the QR validation endpoint emits, keyed by their semantic
|
package/dist/session.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as initializeSession } from "./sessionInitializer-
|
|
2
|
-
import { t as IncodeApiError } from "./apiError-
|
|
3
|
-
import { a as refreshQrUrlUuid, i as createSession, n as QrValidationError, o as validateQrUuid, r as bootstrapSession, t as QR_VALIDATION_ERROR_CODES } from "./session-
|
|
4
|
-
import { n as getFinishStatus } from "./flowCompletionService-
|
|
1
|
+
import { i as initializeSession } from "./sessionInitializer-DR77TDcE.esm.js";
|
|
2
|
+
import { t as IncodeApiError } from "./apiError-C_08gwg2.esm.js";
|
|
3
|
+
import { a as refreshQrUrlUuid, i as createSession, n as QrValidationError, o as validateQrUuid, r as bootstrapSession, t as QR_VALIDATION_ERROR_CODES } from "./session-DvCKSn2k.esm.js";
|
|
4
|
+
import { n as getFinishStatus } from "./flowCompletionService-DEO2OqAI.esm.js";
|
|
5
5
|
export { IncodeApiError, QR_VALIDATION_ERROR_CODES, QrValidationError, bootstrapSession, createSession, getFinishStatus, initializeSession, refreshQrUrlUuid, validateQrUuid };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { _ as updateFeatureManagementUser } from "./feature-management-CFRmD8Nr.esm.js";
|
|
2
2
|
import { c as setToken, r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { _ as noteTokenActivated, d as fetchFeatureConfig, f as isFeatureEnabled, l as trueSightLog, m as noteEnvironment, p as resetFeatureConfigCache, s as startTrueSightCollection, v as SDK_VERSION } from "./trueSightService-
|
|
3
|
+
import { _ as noteTokenActivated, d as fetchFeatureConfig, f as isFeatureEnabled, l as trueSightLog, m as noteEnvironment, p as resetFeatureConfigCache, s as startTrueSightCollection, v as SDK_VERSION } from "./trueSightService-PXOP5bS9.esm.js";
|
|
4
4
|
import { v as addEvent, y as getAnalyticsBatcher } from "./events-ethtfu2b.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
6
|
-
import "./trueSight-
|
|
6
|
+
import "./trueSight-CGZ_9YL1.esm.js";
|
|
7
7
|
import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue } from "./stats-B0nFKawG.esm.js";
|
|
8
8
|
import { n as UAParser, t as getParsedUserAgent } from "./getParsedUserAgent-pJjATANs.esm.js";
|
|
9
9
|
import { r as isIOS } from "./platform-Cd_yWGNG.esm.js";
|
|
@@ -5,14 +5,14 @@ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.j
|
|
|
5
5
|
import { b as resetEnvironment, d as initializeFeatureManagement, h as resetFeatureManagementProviderInstance, l as getIsFeatureManagementLocked, m as resetFeatureManagement, p as optOutFeatureManagement, v as applyEnvironment, y as getEnvironment } from "./feature-management-CFRmD8Nr.esm.js";
|
|
6
6
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
7
7
|
import { a as resetApi, i as isApiConfigured, n as getApi, r as getToken, s as setHttpRequestObserver, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
8
|
-
import { C as upgradeToWasmHttpClient$1, S as resetHttpClientState, b as getStoredHttpConfig, g as noteTestingSignals, l as trueSightLog, n as initializeTrueSightDiagnostics, o as resetTrueSight, t as finalizeTrueSight, u as categoryForEndpoint, x as installFreshHttpClient } from "./trueSightService-
|
|
8
|
+
import { C as upgradeToWasmHttpClient$1, S as resetHttpClientState, b as getStoredHttpConfig, g as noteTestingSignals, l as trueSightLog, n as initializeTrueSightDiagnostics, o as resetTrueSight, t as finalizeTrueSight, u as categoryForEndpoint, x as installFreshHttpClient } from "./trueSightService-PXOP5bS9.esm.js";
|
|
9
9
|
import { b as resetAnalyticsBatcher, c as resetExperimentAssignments, x as setAnalyticsBatcher, y as getAnalyticsBatcher } from "./events-ethtfu2b.esm.js";
|
|
10
|
-
import { a as resetSessionInit, d as resolveStandaloneFlowPolicy, f as setStandaloneFlowPolicy, i as initializeSession, l as registerFlowPreloader, o as setClientFingerprintEnabled, s as setClientIpLookupEnabled, u as resetStandaloneFlowPolicy, v as BrowserEnvironmentProvider } from "./sessionInitializer-
|
|
10
|
+
import { a as resetSessionInit, d as resolveStandaloneFlowPolicy, f as setStandaloneFlowPolicy, i as initializeSession, l as registerFlowPreloader, o as setClientFingerprintEnabled, s as setClientIpLookupEnabled, u as resetStandaloneFlowPolicy, v as BrowserEnvironmentProvider } from "./sessionInitializer-DR77TDcE.esm.js";
|
|
11
11
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
12
|
-
import "./trueSight-
|
|
12
|
+
import "./trueSight-CGZ_9YL1.esm.js";
|
|
13
13
|
import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-B0nFKawG.esm.js";
|
|
14
14
|
import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-4RsGrIt6.esm.js";
|
|
15
|
-
import { n as preloadDashboardFlow, r as resetDashboardFlowCache } from "./flowServices-
|
|
15
|
+
import { n as preloadDashboardFlow, r as resetDashboardFlowCache } from "./flowServices-D6T8fwIf.esm.js";
|
|
16
16
|
//#region ../infra/src/providers/browser/BrowserPageLifecycleProvider.ts
|
|
17
17
|
var BrowserPageLifecycleProvider = class {
|
|
18
18
|
sendBeacon(url, body, contentType = "application/json") {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./trueSightService-PXOP5bS9.esm.js";
|
|
@@ -724,7 +724,7 @@ function epochMsToIsoString(epochMs) {
|
|
|
724
724
|
}
|
|
725
725
|
//#endregion
|
|
726
726
|
//#region src/internal/version/sdkVersion.ts
|
|
727
|
-
const SDK_VERSION = "0.0.0-dev-20260803-
|
|
727
|
+
const SDK_VERSION = "0.0.0-dev-20260803-e2b5d35d";
|
|
728
728
|
//#endregion
|
|
729
729
|
//#region src/internal/trueSight/recordBuilder.ts
|
|
730
730
|
/**
|