@sekyro/web 0.1.0-rc.20 → 0.1.0-rc.21

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.
Files changed (60) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/{capture-session-doc-QA4DOFRF.js → capture-session-doc-XBZGXWOP.js} +1 -1
  3. package/dist/{capture-session-v3-CNL-GX11.d.cts → capture-session-v3-26FgzBIl.d.cts} +1 -1
  4. package/dist/{capture-session-v3-DaBqN8fO.d.ts → capture-session-v3-ZO0QOeQH.d.ts} +1 -1
  5. package/dist/chunk-234OZEDB.js +1 -0
  6. package/dist/chunk-33KKMPJ5.js +1 -0
  7. package/dist/chunk-53POX7U4.js +1 -0
  8. package/dist/{chunk-FGOVIGGL.js → chunk-7Q4YPMAF.js} +1 -1
  9. package/dist/chunk-B2X33ZW2.js +1 -0
  10. package/dist/{chunk-5ZKQHFFW.js → chunk-H3HVCWLF.js} +1 -1
  11. package/dist/{chunk-W2WD7PR2.js → chunk-P3H3D33O.js} +1 -1
  12. package/dist/{chunk-U6S7SCBY.js → chunk-P6UP4UQY.js} +1 -1
  13. package/dist/{chunk-IG466TOP.js → chunk-QYYJLXKA.js} +1 -1
  14. package/dist/{chunk-ZLWH4RBO.js → chunk-VIAT4DEA.js} +1 -1
  15. package/dist/chunk-ZADZTM3M.js +1 -0
  16. package/dist/chunk-ZNIZACXD.js +1 -0
  17. package/dist/client/index.cjs +1 -1
  18. package/dist/client/index.d.cts +3 -3
  19. package/dist/client/index.d.ts +3 -3
  20. package/dist/client/index.js +1 -1
  21. package/dist/core/index.cjs +1 -1
  22. package/dist/core/index.d.cts +3 -3
  23. package/dist/core/index.d.ts +3 -3
  24. package/dist/core/index.js +1 -1
  25. package/dist/{create-document-capture-GJXBQMTC.js → create-document-capture-23R2F47A.js} +1 -1
  26. package/dist/{create-portrait-capture-MOS2D7CL.js → create-portrait-capture-AGFHECK7.js} +1 -1
  27. package/dist/{create-verification-BBOUYpga.d.cts → create-verification-CXhXxknV.d.cts} +44 -5
  28. package/dist/{create-verification-COpe2hxf.d.ts → create-verification-KlHIU4Fy.d.ts} +44 -5
  29. package/dist/{icao-gate-CEGvJR3q.d.ts → icao-gate-DI8VePWd.d.ts} +36 -4
  30. package/dist/{icao-gate-l40OU6x1.d.cts → icao-gate-DvzOzHq6.d.cts} +36 -4
  31. package/dist/icao-gate-T3BTOKFJ.js +1 -0
  32. package/dist/{icao-policy-BgI1Y870.d.ts → icao-policy-DztbA50-.d.ts} +3 -3
  33. package/dist/{icao-policy-C7fIdRzo.d.cts → icao-policy-MRB8NMAu.d.cts} +3 -3
  34. package/dist/icao-tuning-4ETMF53W.js +1 -0
  35. package/dist/index.cjs +1 -1
  36. package/dist/index.d.cts +7 -7
  37. package/dist/index.d.ts +7 -7
  38. package/dist/index.js +1 -1
  39. package/dist/internal/index.cjs +1 -1
  40. package/dist/internal/index.d.cts +10 -6
  41. package/dist/internal/index.d.ts +10 -6
  42. package/dist/internal/index.js +1 -1
  43. package/dist/plan-runner-NUWONT7F.js +1 -0
  44. package/dist/popup/index.d.cts +1 -1
  45. package/dist/popup/index.d.ts +1 -1
  46. package/dist/popup/index.js +1 -1
  47. package/dist/{types-Dpfg2cO8.d.cts → types-C_XP92JQ.d.cts} +40 -7
  48. package/dist/{types-Dpfg2cO8.d.ts → types-C_XP92JQ.d.ts} +40 -7
  49. package/package.json +1 -1
  50. package/sbom.cdx.json +10 -10
  51. package/dist/chunk-7ZCZY3ZP.js +0 -1
  52. package/dist/chunk-BPE5NSQ2.js +0 -1
  53. package/dist/chunk-KHR4U2SZ.js +0 -1
  54. package/dist/chunk-KZBBB5B2.js +0 -1
  55. package/dist/chunk-NJML6FMD.js +0 -1
  56. package/dist/chunk-XCKE2MJL.js +0 -1
  57. package/dist/icao-gate-PWBMKRGC.js +0 -1
  58. package/dist/icao-tuning-4GGVX6B4.js +0 -1
  59. package/dist/plan-runner-35655N4Z.js +0 -1
  60. /package/dist/{chunk-U6TYL2IJ.js → chunk-SNACCYTL.js} +0 -0
@@ -1,11 +1,11 @@
1
- import { b1 as DocCatalogEntry, b2 as LiveMrzTuning, b3 as TextLockTuning, b4 as OcrEngineClient, b5 as DocAssistReport, b6 as ReadyInfo, b7 as LoadFailure, b8 as OcrEngineOptions, b9 as SubmitRuntime, a3 as LivenessCaptureOptions, a2 as LivenessCaptureHandle, aM as VerificationStep, aK as VerificationResult, aB as StepSnapshot, _ as LivePhotoGateUpdate, ba as HostedClientLike } from '../create-verification-BBOUYpga.cjs';
2
- export { bb as ANALYSIS_LONG_EDGE, bc as ASPECT_BANDS, bd as AttestationError, be as BLUR_REFUSE_SHARPNESS_MAX, bf as BlurStatus, bg as CAPTURE_CANDIDATE_SPACING_MS, bh as CAPTURE_EXTRA_CANDIDATES, bi as CLIP_MIME_ALLOWLIST, bj as CaptureEngine, bk as CaptureSessionDoc, bl as CaptureSessionDocEvents, bm as CaptureSessionDocOptions, bn as DOC_ANALYSIS_DEFAULTS, bo as DOC_BLACK_FRAME_LUMA, bp as DOC_BLACK_FRAME_TICKS, bq as DOC_CADENCE_HZ, br as DOC_CAMERA_TUNING_DEFAULTS, bs as DOC_CATALOG, bt as DOC_DETECT_WIDTH, bu as DOC_FEEDBACK_STATES, bv as DOC_FIRST_FRAME_MS, bw as DOC_GATE_V1_DEFAULTS, bx as DOC_SHUTTER_DEFAULTS, by as DeviceReadHint, bz as DocArtifacts, bA as DocAssist, bB as DocAssistEngine, bC as DocAssistTick, bD as DocCameraTuning, bE as DocCaptureReport, bF as DocCaptureVia, bG as DocChecksPayload, bH as DocEngineLike, bI as DocFeedbackAggregator, bJ as DocFeedbackKey, bK as DocFeedbackState, bL as DocFormat, bM as DocFrameAnalysis, bN as DocFrameMeasures, bO as DocGateQuality, bP as DocGateThresholds, bQ as DocGateTick, bR as DocGateTickInput, bS as DocGateV1, bT as DocQuad, bU as DocQuadPoint, bV as DocShutterReason, bW as DocShutterTuning, bX as DocSide, bY as DocumentCaptureController, bZ as DocumentCaptureInternals, b_ as EMPTY_GUIDE_METRICS, b$ as EncodedDocument, c0 as FLIP_FILL_MIN, c1 as FLIP_GAP_MS, c2 as FLIP_TIMEOUT_MS, c3 as FocusCaps, c4 as FramingStatus, c5 as GUIDE_LOCK_DEFAULTS, c6 as GlareStatus, c7 as GrabbedFrame, c8 as GuideBlocker, c9 as GuideLock, ca as GuideLockTick, cb as GuideLockTuning, cc as GuideMetrics, cd as GuideRect, ce as INFERENCE_RETRY_ATTEMPTS, cf as INFERENCE_RETRY_DEFAULT_S, W as ISSUER_CODES, cg as LANDMARKER_MODEL, ch as LENS_STORAGE_KEY, ci as LENS_TRY_MAX, cj as LIVE_MRZ_DEFAULTS, ck as LIVE_PHOTO_IDLE_MS, cl as LIVE_PHOTO_MAX_HZ, cm as LandmarkedFace, cn as LandmarkerLike, co as LensKind, cp as LensSource, cq as LightingStatus, cr as LiveMrzCapture, cs as LiveMrzState, ct as LivePhotoGate, cu as LivePhotoKit, cv as LivePhotoKitInternals, cw as LivePhotoKitOptions, cx as LivePhotoStill, cy as LivenessCaptureInternalHandle, cz as LivenessCaptureInternals, cA as LivenessFlowDeps, cB as LivenessFlowOutcome, cC as MANUAL_SHUTTER_MS, cD as MR_DOC_CATALOG, cE as NO_REPORT_MS, cF as OpenDocCameraDeps, cG as PORTRAIT_JPEG_QUALITY, cH as PRELOAD_BLAZE_INIT_TIMEOUT_MS, cI as PRELOAD_BUDGET_MS, cJ as PROCESSING_POLL_DELAY_MS, cK as PROCESSING_POLL_MAX, cL as PortraitCaptureController, cM as PortraitCaptureInternals, cN as REGISTRY_RETRY_DELAY_MS, cO as ReticleType, cP as SAME_FACE_MAX_DROPS, cQ as ScanEvent, cR as ScanLayout, cS as ScanNotice, cT as ScanPhase, cU as ScanReport, cV as ScanSide, cW as ScanState, cX as SubmitExecutor, cY as TEXT_LOCK_DEFAULTS, cZ as TRANSPORT_REPLAY_ATTEMPTS, c_ as TRANSPORT_REPLAY_DELAY_MS, c$ as VerificationInternals, d0 as analyzeDocFrame, d1 as analyzeGuide, d2 as aspectBand, d3 as aspectFits, d4 as buildDeviceReadHint, d5 as coverPointToVideo, d6 as createDocumentCaptureInternal, d7 as createFaceLandmarker, d8 as createLivePhotoKit, d9 as createLivenessCaptureInternal, da as createPortraitCaptureInternal, db as createVerificationInternal, dc as docZoomFor, dd as encodeDocumentImage, de as facesOf, df as feedbackVoteOf, dg as focusOk, dh as guideQuad, di as guideRegionInFrame, dj as initialScanState, dk as lensKindOf, dl as mapEngineState, dm as mapErrorKind, dn as mapGuidanceHint, dp as nextScanState, dq as observePortraitFrame, dr as openDocCamera, ds as passportBandOf, dt as portraitMatchStep, du as preloadedDetectorFactory, dv as quadAreaFrac, dw as quadBounds, dx as quadIou, dy as quadTiltRatio, dz as randomUuid, dA as rankBackCameras, dB as readStoredLens, dC as resetLivenessAssetsForTests, dD as resolveDocCameraTuning, dE as resolveDocShutterTuning, dF as resolveGuideLockTuning, dG as runLivenessFlow, dH as runSubmission, dI as scannerFormatFor, dJ as setPreloadLoaderForTests, dK as settledHint, dL as singleShotFocusAt, dM as specularFraction, dN as supportsFocusMode, dO as warmDocDetector, dP as writeStoredLens } from '../create-verification-BBOUYpga.cjs';
1
+ import { b1 as DocCatalogEntry, b2 as LiveMrzTuning, b3 as TextLockTuning, b4 as OcrEngineClient, b5 as DocAssistReport, b6 as ReadyInfo, b7 as LoadFailure, b8 as OcrEngineOptions, b9 as SubmitRuntime, a3 as LivenessCaptureOptions, a2 as LivenessCaptureHandle, aM as VerificationStep, aK as VerificationResult, aB as StepSnapshot, _ as LivePhotoGateUpdate, ba as HostedClientLike } from '../create-verification-CXhXxknV.cjs';
2
+ export { bb as ANALYSIS_LONG_EDGE, bc as ASPECT_BANDS, bd as AttestationError, be as BLUR_REFUSE_SHARPNESS_MAX, bf as BlurStatus, bg as CAPTURE_CANDIDATE_SPACING_MS, bh as CAPTURE_EXTRA_CANDIDATES, bi as CLIP_MIME_ALLOWLIST, bj as CaptureEngine, bk as CaptureSessionDoc, bl as CaptureSessionDocEvents, bm as CaptureSessionDocOptions, bn as DOC_ANALYSIS_DEFAULTS, bo as DOC_BLACK_FRAME_LUMA, bp as DOC_BLACK_FRAME_TICKS, bq as DOC_CADENCE_HZ, br as DOC_CAMERA_TUNING_DEFAULTS, bs as DOC_CATALOG, bt as DOC_DETECT_WIDTH, bu as DOC_FEEDBACK_STATES, bv as DOC_FIRST_FRAME_MS, bw as DOC_GATE_V1_DEFAULTS, bx as DOC_SHUTTER_DEFAULTS, by as DeviceReadHint, bz as DocArtifacts, bA as DocAssist, bB as DocAssistEngine, bC as DocAssistTick, bD as DocCameraTuning, bE as DocCaptureReport, bF as DocCaptureVia, bG as DocChecksPayload, bH as DocEngineLike, bI as DocFeedbackAggregator, bJ as DocFeedbackKey, bK as DocFeedbackState, bL as DocFormat, bM as DocFrameAnalysis, bN as DocFrameMeasures, bO as DocGateQuality, bP as DocGateThresholds, bQ as DocGateTick, bR as DocGateTickInput, bS as DocGateV1, bT as DocQuad, bU as DocQuadPoint, bV as DocShutterReason, bW as DocShutterTuning, bX as DocSide, bY as DocumentCaptureController, bZ as DocumentCaptureInternals, b_ as EMPTY_GUIDE_METRICS, b$ as EncodedDocument, c0 as FLIP_FILL_MIN, c1 as FLIP_GAP_MS, c2 as FLIP_TIMEOUT_MS, c3 as FocusCaps, c4 as FramingStatus, c5 as GUIDE_LOCK_DEFAULTS, c6 as GlareStatus, c7 as GrabbedFrame, c8 as GuideBlocker, c9 as GuideLock, ca as GuideLockTick, cb as GuideLockTuning, cc as GuideMetrics, cd as GuideRect, ce as INFERENCE_RETRY_ATTEMPTS, cf as INFERENCE_RETRY_DEFAULT_S, W as ISSUER_CODES, cg as LANDMARKER_MODEL, ch as LENS_STORAGE_KEY, ci as LENS_TRY_MAX, cj as LIVE_MRZ_DEFAULTS, ck as LIVE_PHOTO_IDLE_MS, cl as LIVE_PHOTO_MAX_HZ, cm as LandmarkedFace, cn as LandmarkerLike, co as LensKind, cp as LensSource, cq as LightingStatus, cr as LiveMrzCapture, cs as LiveMrzState, ct as LivePhotoGate, cu as LivePhotoKit, cv as LivePhotoKitInternals, cw as LivePhotoKitOptions, cx as LivePhotoStill, cy as LivenessCaptureInternalHandle, cz as LivenessCaptureInternals, cA as LivenessFlowDeps, cB as LivenessFlowOutcome, cC as MANUAL_SHUTTER_MS, cD as MR_DOC_CATALOG, cE as NO_REPORT_MS, cF as OpenDocCameraDeps, cG as PORTRAIT_JPEG_QUALITY, cH as PRELOAD_BLAZE_INIT_TIMEOUT_MS, cI as PRELOAD_BUDGET_MS, cJ as PROCESSING_POLL_DELAY_MS, cK as PROCESSING_POLL_MAX, cL as PortraitCaptureController, cM as PortraitCaptureInternals, cN as REGISTRY_RETRY_DELAY_MS, cO as ReticleType, cP as SAME_FACE_MAX_DROPS, cQ as ScanEvent, cR as ScanLayout, cS as ScanNotice, cT as ScanPhase, cU as ScanReport, cV as ScanSide, cW as ScanState, cX as SubmitExecutor, cY as TEXT_LOCK_DEFAULTS, cZ as TRANSPORT_REPLAY_ATTEMPTS, c_ as TRANSPORT_REPLAY_DELAY_MS, c$ as VerificationInternals, d0 as analyzeDocFrame, d1 as analyzeGuide, d2 as aspectBand, d3 as aspectFits, d4 as buildDeviceReadHint, d5 as coverPointToVideo, d6 as createDocumentCaptureInternal, d7 as createFaceLandmarker, d8 as createLivePhotoKit, d9 as createLivenessCaptureInternal, da as createPortraitCaptureInternal, db as createVerificationInternal, dc as docZoomFor, dd as encodeDocumentImage, de as facesOf, df as feedbackVoteOf, dg as focusOk, dh as guideQuad, di as guideRegionInFrame, dj as initialScanState, dk as lensKindOf, dl as mapEngineState, dm as mapErrorKind, dn as mapGuidanceHint, dp as nextScanState, dq as observePortraitFrame, dr as openDocCamera, ds as passportBandOf, dt as portraitMatchStep, du as preloadedDetectorFactory, dv as quadAreaFrac, dw as quadBounds, dx as quadIou, dy as quadTiltRatio, dz as randomUuid, dA as rankBackCameras, dB as readStoredLens, dC as resetLivenessAssetsForTests, dD as resolveDocCameraTuning, dE as resolveDocShutterTuning, dF as resolveGuideLockTuning, dG as runLivenessFlow, dH as runSubmission, dI as scannerFormatFor, dJ as setPreloadLoaderForTests, dK as settledHint, dL as singleShotFocusAt, dM as specularFraction, dN as supportsFocusMode, dO as warmDocDetector, dP as writeStoredLens } from '../create-verification-CXhXxknV.cjs';
3
3
  export { C as CENTERED_FACTOR, a as CIRCLE_RADIUS_FACTOR, F as FormFactor, I as IN_CIRCLE_FACTOR, d as detectFormFactor, c as detectIsMobile } from '../capture-constraints-B5omafmk.cjs';
4
- import { R as HostedSessionView, h as CheckType, f as CheckReason, ak as PlanStepView } from '../types-Dpfg2cO8.cjs';
5
- export { aT as ICAO_FALLBACK, aO as IcaoCaptureTuning, aU as IcaoProfile, aV as ResolvedIcaoTuning, aW as resolveIcaoTuning } from '../types-Dpfg2cO8.cjs';
6
- export { B as BackgroundStats, h as Box, C as CLIPPED_LUMA, F as FaceGeometry, i as FaceLighting, c as HeadPose, j as ICAO_CANVAS, k as ICAO_GATE_CRITERIA, l as ICAO_SHARP_REF, I as IcaoCoachKey, d as IcaoCriterionState, m as IcaoFrameObservation, n as IcaoGate, e as IcaoGateCriterion, o as IcaoGateOptions, f as IcaoGateSummary, g as IcaoGateUpdate, p as IcaoJudgedCriterion, q as IcaoMeasures, r as IcaoPixelStats, L as LumaPlane, P as Point, R as RegionStats, t as backgroundStats, u as createIcaoGate, v as eyeLineRoll, w as eyeOpenness, x as eyeSpecular, y as faceGeometry, z as faceLighting, A as faceSharpness, D as icaoPixelStats, E as icaoWindow, G as judgeIcao, J as lumaPlane, K as percentile, N as portraitCropRegion, O as poseFromMatrix, Q as regionStats, T as scoreFrame, V as windowOverflow } from '../icao-gate-l40OU6x1.cjs';
4
+ import { R as HostedSessionView, h as CheckType, f as CheckReason, al as PlanStepView } from '../types-C_XP92JQ.cjs';
5
+ export { aV as ICAO_FALLBACK, aQ as IcaoCaptureTuning, aW as IcaoProfile, aX as ResolvedIcaoTuning, aY as resolveIcaoTuning } from '../types-C_XP92JQ.cjs';
6
+ export { B as BackgroundStats, h as Box, C as CLIPPED_LUMA, F as FaceGeometry, i as FaceLighting, c as HeadPose, j as ICAO_CANVAS, k as ICAO_GATE_CRITERIA, l as ICAO_SHARP_REF, I as IcaoCoachKey, d as IcaoCriterionState, m as IcaoFrameObservation, n as IcaoGate, e as IcaoGateCriterion, o as IcaoGateOptions, p as IcaoGateScores, f as IcaoGateSummary, g as IcaoGateUpdate, q as IcaoJudgedCriterion, r as IcaoMeasures, t as IcaoMouthScores, u as IcaoPixelStats, L as LumaPlane, P as Point, R as RegionStats, v as backgroundStats, w as createIcaoGate, x as eyeLineRoll, y as eyeOpenness, z as eyeSpecular, A as faceGeometry, D as faceLighting, E as faceSharpness, G as icaoPixelStats, J as icaoWindow, K as judgeIcao, N as lumaPlane, O as percentile, Q as portraitCropRegion, T as poseFromMatrix, V as regionStats, W as scoreFrame, X as windowOverflow } from '../icao-gate-DvzOzHq6.cjs';
7
7
  import '../detect-worker-DclNxkZT.cjs';
8
- import '../capture-session-v3-CNL-GX11.cjs';
8
+ import '../capture-session-v3-26FgzBIl.cjs';
9
9
 
10
10
  type DocumentTypeId = DocCatalogEntry["docType"];
11
11
  /** Same shape as the hosted view's `acceptedDocuments`. */
@@ -296,6 +296,8 @@ interface RunnerDeps {
296
296
  setView?(view: HostedSessionView): void;
297
297
  /** Step 3 one capture: the ICAO coaching of the running live-photo capture. */
298
298
  onLivePhoto?(handler: (gate: LivePhotoGateUpdate) => void): () => void;
299
+ /** Stops every camera of the session (a skipped capture in a simulated session). */
300
+ stopCameras?(): void;
299
301
  }
300
302
  interface StepRunner {
301
303
  run(): Promise<VerificationStep>;
@@ -308,6 +310,8 @@ interface StepRunner {
308
310
  republish(): void;
309
311
  /** Submit one step input (exposed for the document binding, Task 4). */
310
312
  submit(checkType: CheckType, executor: Executor, onAccepted?: () => void): Promise<void>;
313
+ /** "Skip with test data" answered the liveness or the portrait on this page: a following match has no probe. */
314
+ faceProbeSkipped(): boolean;
311
315
  }
312
316
  declare function createStepRunner(deps: RunnerDeps): StepRunner;
313
317
 
@@ -1,11 +1,11 @@
1
- import { b1 as DocCatalogEntry, b2 as LiveMrzTuning, b3 as TextLockTuning, b4 as OcrEngineClient, b5 as DocAssistReport, b6 as ReadyInfo, b7 as LoadFailure, b8 as OcrEngineOptions, b9 as SubmitRuntime, a3 as LivenessCaptureOptions, a2 as LivenessCaptureHandle, aM as VerificationStep, aK as VerificationResult, aB as StepSnapshot, _ as LivePhotoGateUpdate, ba as HostedClientLike } from '../create-verification-COpe2hxf.js';
2
- export { bb as ANALYSIS_LONG_EDGE, bc as ASPECT_BANDS, bd as AttestationError, be as BLUR_REFUSE_SHARPNESS_MAX, bf as BlurStatus, bg as CAPTURE_CANDIDATE_SPACING_MS, bh as CAPTURE_EXTRA_CANDIDATES, bi as CLIP_MIME_ALLOWLIST, bj as CaptureEngine, bk as CaptureSessionDoc, bl as CaptureSessionDocEvents, bm as CaptureSessionDocOptions, bn as DOC_ANALYSIS_DEFAULTS, bo as DOC_BLACK_FRAME_LUMA, bp as DOC_BLACK_FRAME_TICKS, bq as DOC_CADENCE_HZ, br as DOC_CAMERA_TUNING_DEFAULTS, bs as DOC_CATALOG, bt as DOC_DETECT_WIDTH, bu as DOC_FEEDBACK_STATES, bv as DOC_FIRST_FRAME_MS, bw as DOC_GATE_V1_DEFAULTS, bx as DOC_SHUTTER_DEFAULTS, by as DeviceReadHint, bz as DocArtifacts, bA as DocAssist, bB as DocAssistEngine, bC as DocAssistTick, bD as DocCameraTuning, bE as DocCaptureReport, bF as DocCaptureVia, bG as DocChecksPayload, bH as DocEngineLike, bI as DocFeedbackAggregator, bJ as DocFeedbackKey, bK as DocFeedbackState, bL as DocFormat, bM as DocFrameAnalysis, bN as DocFrameMeasures, bO as DocGateQuality, bP as DocGateThresholds, bQ as DocGateTick, bR as DocGateTickInput, bS as DocGateV1, bT as DocQuad, bU as DocQuadPoint, bV as DocShutterReason, bW as DocShutterTuning, bX as DocSide, bY as DocumentCaptureController, bZ as DocumentCaptureInternals, b_ as EMPTY_GUIDE_METRICS, b$ as EncodedDocument, c0 as FLIP_FILL_MIN, c1 as FLIP_GAP_MS, c2 as FLIP_TIMEOUT_MS, c3 as FocusCaps, c4 as FramingStatus, c5 as GUIDE_LOCK_DEFAULTS, c6 as GlareStatus, c7 as GrabbedFrame, c8 as GuideBlocker, c9 as GuideLock, ca as GuideLockTick, cb as GuideLockTuning, cc as GuideMetrics, cd as GuideRect, ce as INFERENCE_RETRY_ATTEMPTS, cf as INFERENCE_RETRY_DEFAULT_S, W as ISSUER_CODES, cg as LANDMARKER_MODEL, ch as LENS_STORAGE_KEY, ci as LENS_TRY_MAX, cj as LIVE_MRZ_DEFAULTS, ck as LIVE_PHOTO_IDLE_MS, cl as LIVE_PHOTO_MAX_HZ, cm as LandmarkedFace, cn as LandmarkerLike, co as LensKind, cp as LensSource, cq as LightingStatus, cr as LiveMrzCapture, cs as LiveMrzState, ct as LivePhotoGate, cu as LivePhotoKit, cv as LivePhotoKitInternals, cw as LivePhotoKitOptions, cx as LivePhotoStill, cy as LivenessCaptureInternalHandle, cz as LivenessCaptureInternals, cA as LivenessFlowDeps, cB as LivenessFlowOutcome, cC as MANUAL_SHUTTER_MS, cD as MR_DOC_CATALOG, cE as NO_REPORT_MS, cF as OpenDocCameraDeps, cG as PORTRAIT_JPEG_QUALITY, cH as PRELOAD_BLAZE_INIT_TIMEOUT_MS, cI as PRELOAD_BUDGET_MS, cJ as PROCESSING_POLL_DELAY_MS, cK as PROCESSING_POLL_MAX, cL as PortraitCaptureController, cM as PortraitCaptureInternals, cN as REGISTRY_RETRY_DELAY_MS, cO as ReticleType, cP as SAME_FACE_MAX_DROPS, cQ as ScanEvent, cR as ScanLayout, cS as ScanNotice, cT as ScanPhase, cU as ScanReport, cV as ScanSide, cW as ScanState, cX as SubmitExecutor, cY as TEXT_LOCK_DEFAULTS, cZ as TRANSPORT_REPLAY_ATTEMPTS, c_ as TRANSPORT_REPLAY_DELAY_MS, c$ as VerificationInternals, d0 as analyzeDocFrame, d1 as analyzeGuide, d2 as aspectBand, d3 as aspectFits, d4 as buildDeviceReadHint, d5 as coverPointToVideo, d6 as createDocumentCaptureInternal, d7 as createFaceLandmarker, d8 as createLivePhotoKit, d9 as createLivenessCaptureInternal, da as createPortraitCaptureInternal, db as createVerificationInternal, dc as docZoomFor, dd as encodeDocumentImage, de as facesOf, df as feedbackVoteOf, dg as focusOk, dh as guideQuad, di as guideRegionInFrame, dj as initialScanState, dk as lensKindOf, dl as mapEngineState, dm as mapErrorKind, dn as mapGuidanceHint, dp as nextScanState, dq as observePortraitFrame, dr as openDocCamera, ds as passportBandOf, dt as portraitMatchStep, du as preloadedDetectorFactory, dv as quadAreaFrac, dw as quadBounds, dx as quadIou, dy as quadTiltRatio, dz as randomUuid, dA as rankBackCameras, dB as readStoredLens, dC as resetLivenessAssetsForTests, dD as resolveDocCameraTuning, dE as resolveDocShutterTuning, dF as resolveGuideLockTuning, dG as runLivenessFlow, dH as runSubmission, dI as scannerFormatFor, dJ as setPreloadLoaderForTests, dK as settledHint, dL as singleShotFocusAt, dM as specularFraction, dN as supportsFocusMode, dO as warmDocDetector, dP as writeStoredLens } from '../create-verification-COpe2hxf.js';
1
+ import { b1 as DocCatalogEntry, b2 as LiveMrzTuning, b3 as TextLockTuning, b4 as OcrEngineClient, b5 as DocAssistReport, b6 as ReadyInfo, b7 as LoadFailure, b8 as OcrEngineOptions, b9 as SubmitRuntime, a3 as LivenessCaptureOptions, a2 as LivenessCaptureHandle, aM as VerificationStep, aK as VerificationResult, aB as StepSnapshot, _ as LivePhotoGateUpdate, ba as HostedClientLike } from '../create-verification-KlHIU4Fy.js';
2
+ export { bb as ANALYSIS_LONG_EDGE, bc as ASPECT_BANDS, bd as AttestationError, be as BLUR_REFUSE_SHARPNESS_MAX, bf as BlurStatus, bg as CAPTURE_CANDIDATE_SPACING_MS, bh as CAPTURE_EXTRA_CANDIDATES, bi as CLIP_MIME_ALLOWLIST, bj as CaptureEngine, bk as CaptureSessionDoc, bl as CaptureSessionDocEvents, bm as CaptureSessionDocOptions, bn as DOC_ANALYSIS_DEFAULTS, bo as DOC_BLACK_FRAME_LUMA, bp as DOC_BLACK_FRAME_TICKS, bq as DOC_CADENCE_HZ, br as DOC_CAMERA_TUNING_DEFAULTS, bs as DOC_CATALOG, bt as DOC_DETECT_WIDTH, bu as DOC_FEEDBACK_STATES, bv as DOC_FIRST_FRAME_MS, bw as DOC_GATE_V1_DEFAULTS, bx as DOC_SHUTTER_DEFAULTS, by as DeviceReadHint, bz as DocArtifacts, bA as DocAssist, bB as DocAssistEngine, bC as DocAssistTick, bD as DocCameraTuning, bE as DocCaptureReport, bF as DocCaptureVia, bG as DocChecksPayload, bH as DocEngineLike, bI as DocFeedbackAggregator, bJ as DocFeedbackKey, bK as DocFeedbackState, bL as DocFormat, bM as DocFrameAnalysis, bN as DocFrameMeasures, bO as DocGateQuality, bP as DocGateThresholds, bQ as DocGateTick, bR as DocGateTickInput, bS as DocGateV1, bT as DocQuad, bU as DocQuadPoint, bV as DocShutterReason, bW as DocShutterTuning, bX as DocSide, bY as DocumentCaptureController, bZ as DocumentCaptureInternals, b_ as EMPTY_GUIDE_METRICS, b$ as EncodedDocument, c0 as FLIP_FILL_MIN, c1 as FLIP_GAP_MS, c2 as FLIP_TIMEOUT_MS, c3 as FocusCaps, c4 as FramingStatus, c5 as GUIDE_LOCK_DEFAULTS, c6 as GlareStatus, c7 as GrabbedFrame, c8 as GuideBlocker, c9 as GuideLock, ca as GuideLockTick, cb as GuideLockTuning, cc as GuideMetrics, cd as GuideRect, ce as INFERENCE_RETRY_ATTEMPTS, cf as INFERENCE_RETRY_DEFAULT_S, W as ISSUER_CODES, cg as LANDMARKER_MODEL, ch as LENS_STORAGE_KEY, ci as LENS_TRY_MAX, cj as LIVE_MRZ_DEFAULTS, ck as LIVE_PHOTO_IDLE_MS, cl as LIVE_PHOTO_MAX_HZ, cm as LandmarkedFace, cn as LandmarkerLike, co as LensKind, cp as LensSource, cq as LightingStatus, cr as LiveMrzCapture, cs as LiveMrzState, ct as LivePhotoGate, cu as LivePhotoKit, cv as LivePhotoKitInternals, cw as LivePhotoKitOptions, cx as LivePhotoStill, cy as LivenessCaptureInternalHandle, cz as LivenessCaptureInternals, cA as LivenessFlowDeps, cB as LivenessFlowOutcome, cC as MANUAL_SHUTTER_MS, cD as MR_DOC_CATALOG, cE as NO_REPORT_MS, cF as OpenDocCameraDeps, cG as PORTRAIT_JPEG_QUALITY, cH as PRELOAD_BLAZE_INIT_TIMEOUT_MS, cI as PRELOAD_BUDGET_MS, cJ as PROCESSING_POLL_DELAY_MS, cK as PROCESSING_POLL_MAX, cL as PortraitCaptureController, cM as PortraitCaptureInternals, cN as REGISTRY_RETRY_DELAY_MS, cO as ReticleType, cP as SAME_FACE_MAX_DROPS, cQ as ScanEvent, cR as ScanLayout, cS as ScanNotice, cT as ScanPhase, cU as ScanReport, cV as ScanSide, cW as ScanState, cX as SubmitExecutor, cY as TEXT_LOCK_DEFAULTS, cZ as TRANSPORT_REPLAY_ATTEMPTS, c_ as TRANSPORT_REPLAY_DELAY_MS, c$ as VerificationInternals, d0 as analyzeDocFrame, d1 as analyzeGuide, d2 as aspectBand, d3 as aspectFits, d4 as buildDeviceReadHint, d5 as coverPointToVideo, d6 as createDocumentCaptureInternal, d7 as createFaceLandmarker, d8 as createLivePhotoKit, d9 as createLivenessCaptureInternal, da as createPortraitCaptureInternal, db as createVerificationInternal, dc as docZoomFor, dd as encodeDocumentImage, de as facesOf, df as feedbackVoteOf, dg as focusOk, dh as guideQuad, di as guideRegionInFrame, dj as initialScanState, dk as lensKindOf, dl as mapEngineState, dm as mapErrorKind, dn as mapGuidanceHint, dp as nextScanState, dq as observePortraitFrame, dr as openDocCamera, ds as passportBandOf, dt as portraitMatchStep, du as preloadedDetectorFactory, dv as quadAreaFrac, dw as quadBounds, dx as quadIou, dy as quadTiltRatio, dz as randomUuid, dA as rankBackCameras, dB as readStoredLens, dC as resetLivenessAssetsForTests, dD as resolveDocCameraTuning, dE as resolveDocShutterTuning, dF as resolveGuideLockTuning, dG as runLivenessFlow, dH as runSubmission, dI as scannerFormatFor, dJ as setPreloadLoaderForTests, dK as settledHint, dL as singleShotFocusAt, dM as specularFraction, dN as supportsFocusMode, dO as warmDocDetector, dP as writeStoredLens } from '../create-verification-KlHIU4Fy.js';
3
3
  export { C as CENTERED_FACTOR, a as CIRCLE_RADIUS_FACTOR, F as FormFactor, I as IN_CIRCLE_FACTOR, d as detectFormFactor, c as detectIsMobile } from '../capture-constraints-B5omafmk.js';
4
- import { R as HostedSessionView, h as CheckType, f as CheckReason, ak as PlanStepView } from '../types-Dpfg2cO8.js';
5
- export { aT as ICAO_FALLBACK, aO as IcaoCaptureTuning, aU as IcaoProfile, aV as ResolvedIcaoTuning, aW as resolveIcaoTuning } from '../types-Dpfg2cO8.js';
6
- export { B as BackgroundStats, h as Box, C as CLIPPED_LUMA, F as FaceGeometry, i as FaceLighting, c as HeadPose, j as ICAO_CANVAS, k as ICAO_GATE_CRITERIA, l as ICAO_SHARP_REF, I as IcaoCoachKey, d as IcaoCriterionState, m as IcaoFrameObservation, n as IcaoGate, e as IcaoGateCriterion, o as IcaoGateOptions, f as IcaoGateSummary, g as IcaoGateUpdate, p as IcaoJudgedCriterion, q as IcaoMeasures, r as IcaoPixelStats, L as LumaPlane, P as Point, R as RegionStats, t as backgroundStats, u as createIcaoGate, v as eyeLineRoll, w as eyeOpenness, x as eyeSpecular, y as faceGeometry, z as faceLighting, A as faceSharpness, D as icaoPixelStats, E as icaoWindow, G as judgeIcao, J as lumaPlane, K as percentile, N as portraitCropRegion, O as poseFromMatrix, Q as regionStats, T as scoreFrame, V as windowOverflow } from '../icao-gate-CEGvJR3q.js';
4
+ import { R as HostedSessionView, h as CheckType, f as CheckReason, al as PlanStepView } from '../types-C_XP92JQ.js';
5
+ export { aV as ICAO_FALLBACK, aQ as IcaoCaptureTuning, aW as IcaoProfile, aX as ResolvedIcaoTuning, aY as resolveIcaoTuning } from '../types-C_XP92JQ.js';
6
+ export { B as BackgroundStats, h as Box, C as CLIPPED_LUMA, F as FaceGeometry, i as FaceLighting, c as HeadPose, j as ICAO_CANVAS, k as ICAO_GATE_CRITERIA, l as ICAO_SHARP_REF, I as IcaoCoachKey, d as IcaoCriterionState, m as IcaoFrameObservation, n as IcaoGate, e as IcaoGateCriterion, o as IcaoGateOptions, p as IcaoGateScores, f as IcaoGateSummary, g as IcaoGateUpdate, q as IcaoJudgedCriterion, r as IcaoMeasures, t as IcaoMouthScores, u as IcaoPixelStats, L as LumaPlane, P as Point, R as RegionStats, v as backgroundStats, w as createIcaoGate, x as eyeLineRoll, y as eyeOpenness, z as eyeSpecular, A as faceGeometry, D as faceLighting, E as faceSharpness, G as icaoPixelStats, J as icaoWindow, K as judgeIcao, N as lumaPlane, O as percentile, Q as portraitCropRegion, T as poseFromMatrix, V as regionStats, W as scoreFrame, X as windowOverflow } from '../icao-gate-DI8VePWd.js';
7
7
  import '../detect-worker-DclNxkZT.js';
8
- import '../capture-session-v3-DaBqN8fO.js';
8
+ import '../capture-session-v3-ZO0QOeQH.js';
9
9
 
10
10
  type DocumentTypeId = DocCatalogEntry["docType"];
11
11
  /** Same shape as the hosted view's `acceptedDocuments`. */
@@ -296,6 +296,8 @@ interface RunnerDeps {
296
296
  setView?(view: HostedSessionView): void;
297
297
  /** Step 3 one capture: the ICAO coaching of the running live-photo capture. */
298
298
  onLivePhoto?(handler: (gate: LivePhotoGateUpdate) => void): () => void;
299
+ /** Stops every camera of the session (a skipped capture in a simulated session). */
300
+ stopCameras?(): void;
299
301
  }
300
302
  interface StepRunner {
301
303
  run(): Promise<VerificationStep>;
@@ -308,6 +310,8 @@ interface StepRunner {
308
310
  republish(): void;
309
311
  /** Submit one step input (exposed for the document binding, Task 4). */
310
312
  submit(checkType: CheckType, executor: Executor, onAccepted?: () => void): Promise<void>;
313
+ /** "Skip with test data" answered the liveness or the portrait on this page: a following match has no probe. */
314
+ faceProbeSkipped(): boolean;
311
315
  }
312
316
  declare function createStepRunner(deps: RunnerDeps): StepRunner;
313
317
 
@@ -1 +1 @@
1
- import{c as _e,d as Le,e as Re,h as Se,i as Te,j as ce}from"../chunk-XCKE2MJL.js";import{a as Vt,b as Xt,c as Zt,d as Jt,e as Qt,f as jt,g as qt,h as $t,i as er,j as ae,k as se,m as Ee,n as me}from"../chunk-KHR4U2SZ.js";import{a as Nt,b as vt,c as gt,d as bt,e as Gt,f as ht,g as Ut,h as Yt,i as Ht,j as Wt,k as kt,l as Kt,m as Bt}from"../chunk-7ZCZY3ZP.js";import{a as wt,b as zt}from"../chunk-BPE5NSQ2.js";import{b as pe,c as ie,d as ne}from"../chunk-CJHMFPL6.js";import"../chunk-RI3E7GBN.js";import"../chunk-GI3UFGRQ.js";import{a as d,b as M,c as F,d as N,e as v}from"../chunk-O5WKNZ2C.js";import{A as yt,B as ft,C as ut,D as Ot,E as At,F as It,G as xt,H as Ct,I as Pt,J as Dt,K as dt,L as Mt,M as Ft,a as We,b as ke,c as Ke,d as Je,e as Qe,f as je,g as qe,h as $e,i as et,j as tt,k as rt,l as ot,m as pt,n as it,o as nt,p as at,q as st,r as Et,s as mt,t as _t,u as Lt,v as Rt,w as St,x as Tt,y as ct,z as lt}from"../chunk-U6S7SCBY.js";import{a as Ye,b as He}from"../chunk-SMKCBUJL.js";import{a as Be,b as we,c as ze,d as Ve,e as Xe,f as Ze}from"../chunk-MXWLCDFX.js";import{a as k,b as Fe,c as Ne,d as ve,e as ge,f as be,g as Ge,h as he,i as Ue,j as K,k as B,l as w,m as Z,n as J,o as Q,p as j,q,r as $,s as ee,t as te,u as re,x as oe}from"../chunk-IG466TOP.js";import{a as g,b,c as G,d as h,e as U,f as Y,g as H,h as W,i as z,j as V,l as X}from"../chunk-G6LKLN4U.js";import{a as xe,b as Ce,c as Pe,d as De,e as de,f as Me}from"../chunk-TDLIXFDT.js";import{b as ye,c as fe,d as ue,e as Oe,g as Ae,h as tr,i as rr,j as or,k as pr,l as ir,m as nr,s as Ie}from"../chunk-KZBBB5B2.js";import{A as P,B as D,g as S,m as T,n as c,o as l,p as y,s as f,u,v as O,w as A,x as I,y as x,z as C}from"../chunk-5ZKQHFFW.js";import{a as i,b as n,c as a,d as s,i as E,j as m,k as _,l as L,n as R}from"../chunk-W2WD7PR2.js";import"../chunk-GT2ZLGF7.js";import"../chunk-FGOVIGGL.js";import{c as e,d as t,f as r,g as o,h as p}from"../chunk-FUHDOEBP.js";import"../chunk-POIQGEZM.js";import"../chunk-CQ7SKLMC.js";import"../chunk-FPXL63KZ.js";import"../chunk-NJML6FMD.js";import"../chunk-ZLWH4RBO.js";import"../chunk-OKWG3PVH.js";import{a as le}from"../chunk-DFTCAWMP.js";import"../chunk-DK5YPBDQ.js";export{ae as ANALYSIS_LONG_EDGE,xe as ASPECT_BANDS,C as AttestationError,Ge as BLUR_REFUSE_SHARPNESS_MAX,Ft as CAPTURE_CANDIDATE_SPACING_MS,Mt as CAPTURE_EXTRA_CANDIDATES,p as CENTERED_FACTOR,r as CIRCLE_RADIUS_FACTOR,Vt as CLIPPED_LUMA,u as CLIP_MIME_ALLOWLIST,Dt as CaptureSessionDoc,rr as DOCUMENT_TYPE_ORDER,Je as DOC_ANALYSIS_DEFAULTS,At as DOC_BLACK_FRAME_LUMA,It as DOC_BLACK_FRAME_TICKS,xt as DOC_CADENCE_HZ,$e as DOC_CAMERA_TUNING_DEFAULTS,de as DOC_CATALOG,Be as DOC_DETECT_WIDTH,We as DOC_FEEDBACK_STATES,Ot as DOC_FIRST_FRAME_MS,we as DOC_GATE_V1_DEFAULTS,Ct as DOC_SHUTTER_DEFAULTS,X as DocAssist,Ke as DocFeedbackAggregator,Ze as DocGateV1,Rt as EMPTY_GUIDE_METRICS,Ne as FLIP_FILL_MIN,Fe as FLIP_GAP_MS,ve as FLIP_TIMEOUT_MS,lt as GUIDE_LOCK_DEFAULTS,ft as GuideLock,bt as ICAO_CANVAS,wt as ICAO_FALLBACK,Yt as ICAO_GATE_CRITERIA,Xt as ICAO_SHARP_REF,I as INFERENCE_RETRY_ATTEMPTS,x as INFERENCE_RETRY_DEFAULT_S,o as IN_CIRCLE_FACTOR,tr as ISSUER_CODES,pe as LANDMARKER_MODEL,ot as LENS_STORAGE_KEY,_t as LENS_TRY_MAX,V as LIVE_MRZ_DEFAULTS,Le as LIVE_PHOTO_IDLE_MS,_e as LIVE_PHOTO_MAX_HZ,ge as MANUAL_SHUTTER_MS,Ye as MRZ_BAND_DEFAULTS,De as MR_DOC_CATALOG,be as NO_REPORT_MS,le as OCR_ASSET_SET,Te as OTP_RESEND_COOLDOWN_MS,se as PORTRAIT_JPEG_QUALITY,i as PRELOAD_BLAZE_INIT_TIMEOUT_MS,n as PRELOAD_BUDGET_MS,Se as PROCESSING_BACKOFF_MS,fe as PROCESSING_POLL_DELAY_MS,ue as PROCESSING_POLL_MAX,G as REGION_PAD,ye as REGISTRY_RETRY_DELAY_MS,S as RETRYABLE_REASONS,re as SAME_FACE_MAX_DROPS,g as SHARPNESS_LONG_EDGE,z as TEXT_LOCK_DEFAULTS,O as TRANSPORT_REPLAY_ATTEMPTS,A as TRANSPORT_REPLAY_DELAY_MS,M as TURNSTILE_EXECUTE_TIMEOUT_MS,d as TURNSTILE_SCRIPT_SRC,Q as WEB_OCR_ENGINE,pr as acceptedIssuers,or as acceptedTypesFor,qe as analyzeDocFrame,Tt as analyzeGuide,Ce as aspectBand,Pe as aspectFits,qt as backgroundStats,$ as browserFamily,Z as buildDeviceReadHint,B as classifyCardSide,K as classifyCardSideWith,st as coverPointToVideo,oe as createDocumentCaptureInternal,ne as createFaceLandmarker,Bt as createIcaoGate,Re as createLivePhotoKit,R as createLivenessCaptureInternal,me as createPortraitCaptureInternal,ce as createStepRunner,Ae as createVerificationInternal,U as cropImage,e as detectFormFactor,t as detectIsMobile,He as detectMrzBand,Et as docZoomFor,k as encodeDocumentImage,v as executeTurnstile,gt as eyeLineRoll,Wt as eyeOpenness,jt as eyeSpecular,Nt as faceGeometry,Qt as faceLighting,$t as faceSharpness,ie as facesOf,ke as feedbackVoteOf,nr as flagOf,mt as focusOk,te as formatMismatch,l as frontierStep,ct as guideQuad,St as guideRegionInFrame,er as icaoPixelStats,Gt as icaoWindow,he as initialScanState,T as isExecutable,c as isTerminalView,Ht as judgeIcao,tt as lensKindOf,ee as liveMrzWireReport,N as loadTurnstile,Zt as lumaPlane,_ as mapEngineState,L as mapErrorKind,m as mapGuidanceHint,f as mapSessionResult,W as measureBitmapSharpness,H as measureRegionSharpness,Ue as nextScanState,Ee as observePortraitFrame,Lt as openDocCamera,dt as passportBandOf,kt as percentile,b as photoSharpness,Ut as portraitCropRegion,Ie as portraitMatchStep,vt as poseFromMatrix,E as preloadedDetectorFactory,ze as quadAreaFrac,Xe as quadBounds,Ve as quadIou,je as quadTiltRatio,Oe as randomUuid,rt as rankBackCameras,pt as readStoredLens,Jt as regionStats,s as resetLivenessAssetsForTests,F as resetTurnstileForTests,Y as resizeLongEdge,ir as resolveAcceptedDocuments,et as resolveDocCameraTuning,Pt as resolveDocShutterTuning,yt as resolveGuideLockTuning,zt as resolveIcaoTuning,j as resolveWebOcrPlan,D as runLivenessFlow,P as runSubmission,Me as scannerFormatFor,Kt as scoreFrame,a as setPreloadLoaderForTests,J as settledHint,at as singleShotFocusAt,Qe as specularFraction,q as startWebOcr,y as stepOf,h as stillRegionOf,w as stillToImageData,nt as supportsFocusMode,ut as warmDocDetector,ht as windowOverflow,it as writeStoredLens};
1
+ import{c as _e,d as Le,e as Re,h as Se,i as Te,j as ce}from"../chunk-234OZEDB.js";import{a as Vt,b as Xt,c as Zt,d as Jt,e as Qt,f as jt,g as qt,h as $t,i as er,j as ae,k as se,m as Ee,n as me}from"../chunk-ZNIZACXD.js";import{a as Nt,b as vt,c as gt,d as bt,e as Gt,f as ht,g as Ut,h as Yt,i as Ht,j as Wt,k as kt,l as Kt,m as Bt}from"../chunk-53POX7U4.js";import{a as wt,b as zt}from"../chunk-33KKMPJ5.js";import{b as pe,c as ie,d as ne}from"../chunk-CJHMFPL6.js";import"../chunk-RI3E7GBN.js";import"../chunk-GI3UFGRQ.js";import{a as d,b as M,c as F,d as N,e as v}from"../chunk-O5WKNZ2C.js";import{A as yt,B as ft,C as ut,D as Ot,E as At,F as It,G as xt,H as Ct,I as Pt,J as Dt,K as dt,L as Mt,M as Ft,a as We,b as ke,c as Ke,d as Je,e as Qe,f as je,g as qe,h as $e,i as et,j as tt,k as rt,l as ot,m as pt,n as it,o as nt,p as at,q as st,r as Et,s as mt,t as _t,u as Lt,v as Rt,w as St,x as Tt,y as ct,z as lt}from"../chunk-P6UP4UQY.js";import{a as Ye,b as He}from"../chunk-SMKCBUJL.js";import{a as Be,b as we,c as ze,d as Ve,e as Xe,f as Ze}from"../chunk-MXWLCDFX.js";import{a as k,b as Fe,c as Ne,d as ve,e as ge,f as be,g as Ge,h as he,i as Ue,j as K,k as B,l as w,m as Z,n as J,o as Q,p as j,q,r as $,s as ee,t as te,u as re,x as oe}from"../chunk-QYYJLXKA.js";import{a as g,b,c as G,d as h,e as U,f as Y,g as H,h as W,i as z,j as V,l as X}from"../chunk-G6LKLN4U.js";import{a as xe,b as Ce,c as Pe,d as De,e as de,f as Me}from"../chunk-TDLIXFDT.js";import{b as ye,c as fe,d as ue,e as Oe,g as Ae,h as tr,i as rr,j as or,k as pr,l as ir,m as nr,s as Ie}from"../chunk-ZADZTM3M.js";import{A as P,B as D,g as S,m as T,n as c,o as l,p as y,s as f,u,v as O,w as A,x as I,y as x,z as C}from"../chunk-H3HVCWLF.js";import{a as i,b as n,c as a,d as s,i as E,j as m,k as _,l as L,n as R}from"../chunk-P3H3D33O.js";import"../chunk-GT2ZLGF7.js";import"../chunk-7Q4YPMAF.js";import{c as e,d as t,f as r,g as o,h as p}from"../chunk-FUHDOEBP.js";import"../chunk-POIQGEZM.js";import"../chunk-CQ7SKLMC.js";import"../chunk-FPXL63KZ.js";import"../chunk-B2X33ZW2.js";import"../chunk-VIAT4DEA.js";import"../chunk-OKWG3PVH.js";import{a as le}from"../chunk-DFTCAWMP.js";import"../chunk-DK5YPBDQ.js";export{ae as ANALYSIS_LONG_EDGE,xe as ASPECT_BANDS,C as AttestationError,Ge as BLUR_REFUSE_SHARPNESS_MAX,Ft as CAPTURE_CANDIDATE_SPACING_MS,Mt as CAPTURE_EXTRA_CANDIDATES,p as CENTERED_FACTOR,r as CIRCLE_RADIUS_FACTOR,Vt as CLIPPED_LUMA,u as CLIP_MIME_ALLOWLIST,Dt as CaptureSessionDoc,rr as DOCUMENT_TYPE_ORDER,Je as DOC_ANALYSIS_DEFAULTS,At as DOC_BLACK_FRAME_LUMA,It as DOC_BLACK_FRAME_TICKS,xt as DOC_CADENCE_HZ,$e as DOC_CAMERA_TUNING_DEFAULTS,de as DOC_CATALOG,Be as DOC_DETECT_WIDTH,We as DOC_FEEDBACK_STATES,Ot as DOC_FIRST_FRAME_MS,we as DOC_GATE_V1_DEFAULTS,Ct as DOC_SHUTTER_DEFAULTS,X as DocAssist,Ke as DocFeedbackAggregator,Ze as DocGateV1,Rt as EMPTY_GUIDE_METRICS,Ne as FLIP_FILL_MIN,Fe as FLIP_GAP_MS,ve as FLIP_TIMEOUT_MS,lt as GUIDE_LOCK_DEFAULTS,ft as GuideLock,bt as ICAO_CANVAS,wt as ICAO_FALLBACK,Yt as ICAO_GATE_CRITERIA,Xt as ICAO_SHARP_REF,I as INFERENCE_RETRY_ATTEMPTS,x as INFERENCE_RETRY_DEFAULT_S,o as IN_CIRCLE_FACTOR,tr as ISSUER_CODES,pe as LANDMARKER_MODEL,ot as LENS_STORAGE_KEY,_t as LENS_TRY_MAX,V as LIVE_MRZ_DEFAULTS,Le as LIVE_PHOTO_IDLE_MS,_e as LIVE_PHOTO_MAX_HZ,ge as MANUAL_SHUTTER_MS,Ye as MRZ_BAND_DEFAULTS,De as MR_DOC_CATALOG,be as NO_REPORT_MS,le as OCR_ASSET_SET,Te as OTP_RESEND_COOLDOWN_MS,se as PORTRAIT_JPEG_QUALITY,i as PRELOAD_BLAZE_INIT_TIMEOUT_MS,n as PRELOAD_BUDGET_MS,Se as PROCESSING_BACKOFF_MS,fe as PROCESSING_POLL_DELAY_MS,ue as PROCESSING_POLL_MAX,G as REGION_PAD,ye as REGISTRY_RETRY_DELAY_MS,S as RETRYABLE_REASONS,re as SAME_FACE_MAX_DROPS,g as SHARPNESS_LONG_EDGE,z as TEXT_LOCK_DEFAULTS,O as TRANSPORT_REPLAY_ATTEMPTS,A as TRANSPORT_REPLAY_DELAY_MS,M as TURNSTILE_EXECUTE_TIMEOUT_MS,d as TURNSTILE_SCRIPT_SRC,Q as WEB_OCR_ENGINE,pr as acceptedIssuers,or as acceptedTypesFor,qe as analyzeDocFrame,Tt as analyzeGuide,Ce as aspectBand,Pe as aspectFits,qt as backgroundStats,$ as browserFamily,Z as buildDeviceReadHint,B as classifyCardSide,K as classifyCardSideWith,st as coverPointToVideo,oe as createDocumentCaptureInternal,ne as createFaceLandmarker,Bt as createIcaoGate,Re as createLivePhotoKit,R as createLivenessCaptureInternal,me as createPortraitCaptureInternal,ce as createStepRunner,Ae as createVerificationInternal,U as cropImage,e as detectFormFactor,t as detectIsMobile,He as detectMrzBand,Et as docZoomFor,k as encodeDocumentImage,v as executeTurnstile,gt as eyeLineRoll,Wt as eyeOpenness,jt as eyeSpecular,Nt as faceGeometry,Qt as faceLighting,$t as faceSharpness,ie as facesOf,ke as feedbackVoteOf,nr as flagOf,mt as focusOk,te as formatMismatch,l as frontierStep,ct as guideQuad,St as guideRegionInFrame,er as icaoPixelStats,Gt as icaoWindow,he as initialScanState,T as isExecutable,c as isTerminalView,Ht as judgeIcao,tt as lensKindOf,ee as liveMrzWireReport,N as loadTurnstile,Zt as lumaPlane,_ as mapEngineState,L as mapErrorKind,m as mapGuidanceHint,f as mapSessionResult,W as measureBitmapSharpness,H as measureRegionSharpness,Ue as nextScanState,Ee as observePortraitFrame,Lt as openDocCamera,dt as passportBandOf,kt as percentile,b as photoSharpness,Ut as portraitCropRegion,Ie as portraitMatchStep,vt as poseFromMatrix,E as preloadedDetectorFactory,ze as quadAreaFrac,Xe as quadBounds,Ve as quadIou,je as quadTiltRatio,Oe as randomUuid,rt as rankBackCameras,pt as readStoredLens,Jt as regionStats,s as resetLivenessAssetsForTests,F as resetTurnstileForTests,Y as resizeLongEdge,ir as resolveAcceptedDocuments,et as resolveDocCameraTuning,Pt as resolveDocShutterTuning,yt as resolveGuideLockTuning,zt as resolveIcaoTuning,j as resolveWebOcrPlan,D as runLivenessFlow,P as runSubmission,Me as scannerFormatFor,Kt as scoreFrame,a as setPreloadLoaderForTests,J as settledHint,at as singleShotFocusAt,Qe as specularFraction,q as startWebOcr,y as stepOf,h as stillRegionOf,w as stillToImageData,nt as supportsFocusMode,ut as warmDocDetector,ht as windowOverflow,it as writeStoredLens};
@@ -0,0 +1 @@
1
+ import{e as W}from"./chunk-A3FUGHAH.js";import{a as z,b as K,e as Q,f as J,g as R,j as q}from"./chunk-234OZEDB.js";import{n as $}from"./chunk-ZNIZACXD.js";import"./chunk-53POX7U4.js";import"./chunk-33KKMPJ5.js";import"./chunk-CJHMFPL6.js";import"./chunk-RI3E7GBN.js";import"./chunk-GI3UFGRQ.js";import{A as G,I as H,i as B}from"./chunk-P6UP4UQY.js";import"./chunk-SMKCBUJL.js";import"./chunk-MXWLCDFX.js";import{x as j}from"./chunk-QYYJLXKA.js";import"./chunk-G6LKLN4U.js";import"./chunk-TDLIXFDT.js";import{b as L,c as F,d as U,e as A,t as V}from"./chunk-H3HVCWLF.js";import"./chunk-P3H3D33O.js";import"./chunk-GT2ZLGF7.js";import"./chunk-7Q4YPMAF.js";import"./chunk-FUHDOEBP.js";import"./chunk-POIQGEZM.js";import"./chunk-CQ7SKLMC.js";import"./chunk-FPXL63KZ.js";import{c as b,i as N}from"./chunk-B2X33ZW2.js";import{a as E}from"./chunk-VIAT4DEA.js";import"./chunk-OKWG3PVH.js";import"./chunk-DFTCAWMP.js";import"./chunk-DK5YPBDQ.js";var ee=2e4,te=new Set(["media_type_unsupported","media_type_mismatch"]),X=new Set(["document_upload_not_allowed","portrait_source_not_allowed","uploaded_media_not_allowed"]);function Y(t){let s=null,p=Promise.resolve(),c=!1,f=null,M=null,m=!1,D=null,g=!1,C=!1,v=()=>{s?.controller.handle.destroy(),s=null},h=()=>{let e=t.currentView(),n=e===null?null:R(e,{isMobile:t.isMobile()});return n?.kind==="portrait"?n:null},I=()=>{if(t.destroyed())return"self";let e=t.currentView(),n=e===null?void 0:J(e);return n==="self"||n==="assisted"?n:t.cameraMode?.()??A(n??U(e),null)},S=async(e,n)=>{if(t.destroyed())return;let u=I();n.setFlowState("uploading"),c=!1;let i=null;try{await t.runner().submit("portrait_icao",async(o,y)=>{if(i===null){let w=await V(o,"image","image/jpeg",e.image.size,{engine:"portrait"});await o.uploadToSpaces(w.uploadUrl,e.image,"image/jpeg"),i=(await o.completeMedia(w.key)).key}n.setFlowState("checking");let d={media:{portrait:i},gate:N(e.gate),...e.tuningVersion!==void 0?{tuningVersion:e.tuningVersion}:{},source:"camera",capture:{mode:u}};return o.submitCheck("portrait_icao",d,{idempotencyKey:y})})}catch(o){c=!0,o instanceof b&&X.has(o.code)&&await t.refreshView?.().catch(()=>{})}if(n.setFlowState("done"),t.destroyed())return;let r=h();(r===null||r.phase!=="capture")&&s?.controller===n&&v(),t.runner().republish()},x=e=>t.runner().submit("face_match",(n,u)=>n.submitCheck("face_match",t.runner().faceProbeSkipped()?{simulatedCapture:!0}:{},{idempotencyKey:u})).then(()=>{},()=>{c=!0,e()}),P=null,O=async e=>{let n=h();if(n===null||n.phase!=="capture"||!n.photo.uploadOffered)throw new RangeError("upload_not_offered");let{prepareUploadFile:u}=await import("./upload-file-UYXOHCRG.js"),i=await u(e,t.uploadInternals);if(t.destroyed())return;v(),c=!1;let r=null;try{await t.runner().submit("portrait_icao",async(o,y)=>{if(r===null){let w=await o.presign("image",i.contentType,i.blob.size,{source:"upload"});await o.uploadToSpaces(w.uploadUrl,i.blob,i.contentType),r=(await o.completeMedia(w.key)).key}let d={media:{portrait:r},source:"upload"};return o.submitCheck("portrait_icao",d,{idempotencyKey:y})})}catch(o){throw o instanceof b&&te.has(o.code)?new TypeError("unsupported_file"):(o instanceof b&&X.has(o.code)&&await t.refreshView?.().catch(()=>{}),o)}},k=null,_=e=>{if(k!==null)return k;let n=h();if(n===null||n.phase!=="review")return Promise.reject(new RangeError("no_pending_fix"));let u={fixReview:{accept:e}},i=t.runner().submit("portrait_icao",(r,o)=>r.submitCheck("portrait_icao",u,{idempotencyKey:o})).catch(async r=>{throw r instanceof b&&r.code==="portrait_no_pending_fix"&&await t.refreshView?.().catch(()=>{}),r}).finally(()=>{k=null});return k=i,i},a=e=>{let n=()=>O(e),u=(P===null?n():P.then(n,n)).finally(()=>{P===u&&(P=null)});return P=u,u};return{bind:(e,n)=>{if(e.phase==="review")return v(),{...e,uploadFailed:c,resubmit:()=>Promise.resolve(),capture:()=>{throw new Error("the adjusted photo waits for confirmFix()")},uploadPortrait:()=>Promise.reject(new RangeError("upload_not_offered")),confirmFix:_};if(e.phase==="match")return v(),f!==e.attemptsRemaining&&!c&&(f=e.attemptsRemaining,x(n)),{...e,uploadFailed:c,resubmit:()=>(c=!1,f=e.attemptsRemaining,n(),x(n)),capture:()=>{throw new Error("the portrait was already accepted")},uploadPortrait:()=>Promise.reject(new RangeError("upload_not_offered")),confirmFix:_};if(f=null,e.reuse===!0&&e.phase==="capture")return v(),!g&&D!==e.attemptsRemaining&&(D=e.attemptsRemaining,g=!0,t.runner().submit("portrait_icao",(i,r)=>i.submitCheck("portrait_icao",{},{idempotencyKey:r})).then(()=>{C=!1},()=>{C=!0}).finally(()=>{g=!1,n()})),{kind:"processing",key:"processing",context:e.context,section:e.section,stalled:C&&!g,refresh:()=>(C=!1,D=null,n(),Promise.resolve())};let u=t.keptPortraitInput?.()??null;return u!==null&&(m||u!==M&&e.report===null&&e.reason===void 0&&!e.retakeOnly)?(m||(M=u,m=!0,t.runner().submit("portrait_icao",(i,r)=>i.submitCheck("portrait_icao",u,{idempotencyKey:r})).catch(()=>{}).finally(()=>{m=!1,n()})),{kind:"processing",key:"processing",context:e.context,section:e.section,stalled:!1,refresh:()=>Promise.resolve()}):{...e,uploadFailed:c,resubmit:()=>Promise.resolve(),capture:i=>{if(s!==null&&s.video===i.video)return s.controller.handle;v(),c=!1;let r=$({video:i.video,tuning:e.tuning,tuningVersion:e.tuningVersion,...e.icao!=null?{policy:e.icao.policy}:{},...i.keepScreenAwake!==void 0?{keepScreenAwake:i.keepScreenAwake}:{},...i.assetBaseUrl!==void 0?{assetBaseUrl:i.assetBaseUrl}:{}},t.internals,I);s={video:i.video,controller:r},r.handle.on("error",d=>{t.reportCaptureIssue?.(L("portrait",d,0))});let o=!1,y=(d,w)=>{let T=r.gateScores();T!==null&&t.reportGate?.({kind:"portrait_gate",platform:"web",outcome:d,...w!==null?{failing:w}:{},...T})};return r.handle.on("gate",d=>{!o&&!d.ready&&(r.gateScores()?.elapsedMs??0)>=ee&&(o=!0,y("stuck",d.failing))}),r.handle.on("captured",d=>{y("captured",null),o=!1,p=p.then(()=>S(d,r)).catch(()=>{})}),r.handle},uploadPortrait:a,confirmFix:_}},destroy:v}}function Z(t){let s=t;if(typeof s.apiOrigin!="string"||typeof s.sessionToken!="string")return;let p=`${s.apiOrigin}/api/v2/hosted/capture-reports`,c=s.sessionToken;return f=>{try{fetch(p,{method:"POST",headers:{"content-type":"application/json","x-session-token":c,"x-sekyro-sdk":`@sekyro/web/${E}`},body:JSON.stringify({reports:f}),keepalive:!0}).catch(()=>{})}catch{}}}function ne(t){let s=t.apiOrigin;return W("sdk",typeof s=="string"&&/staging|sandbox|localhost/.test(s)?"sandbox":"live")}function Se(t){let s=null,p=null,c=null,f=F(),M=Promise.resolve(),m=()=>{c?.flow.handle.destroy(),c=null},D=async(a,l)=>{if(t.destroyed())return;l.setFlowState("uploading");let e=null,n,u=!1,i=t.currentView()?.documents!==void 0;try{await s.submit("doc_ocr",async(d,w)=>{if(e===null){let T=await V(d,"image","image/jpeg",a.image.size,{engine:"document"});await d.uploadToSpaces(T.uploadUrl,a.image,"image/jpeg"),e=(await d.completeMedia(T.key)).key}return l.setFlowState("checking"),n===void 0&&(n=l.takeDeviceRead(a)),d.submitCheck("doc_ocr",{imageKey:e,side:a.side,...n!==null?{deviceRead:n}:{},...i?{source:"camera"}:{}},{idempotencyKey:w})})}catch{u=!0}finally{l.setFlowState("done")}if(t.destroyed())return;if(u){l.settle(a.side,{ok:!1,issue:"technical"});return}let r=t.currentView(),o=r===null?null:R(r,{isMobile:t.isMobile()});if(o?.kind!=="document"){l.settle(a.side,{ok:!0}),c?.flow===l?m():l.handle.destroy();return}if(o.reason==="document_type_not_accepted"){p=null,c?.flow===l&&m(),s.republish();return}a.side==="single"||o.acceptedSides.includes(a.side)||o.reason==="side_missing"?(l.settle(a.side,{ok:!0}),p?.documentType!=="passport"&&l.handle.setSide(o.side)):l.settle(a.side,{ok:!1,issue:"reread"})},g=null,C=async a=>{let l=t.currentView(),e=l===null?null:R(l,{isMobile:t.isMobile()});if(l===null||e?.kind!=="document")throw new RangeError("upload_not_offered");if(!e.photo.uploadOffered)throw new RangeError("upload_not_offered");let n=p?.documentType==="passport"?"single":e.side,{prepareUploadFile:u}=await import("./upload-file-UYXOHCRG.js"),i=await u(a,t.uploadInternals);if(t.destroyed())return;m();let r=null;try{await s.submit("doc_ocr",async(o,y)=>{if(r===null){let d=await o.presign("image",i.contentType,i.blob.size,{source:"upload"});await o.uploadToSpaces(d.uploadUrl,i.blob,i.contentType),r=(await o.completeMedia(d.key)).key}return o.submitCheck("doc_ocr",{imageKey:r,side:n,source:"upload"},{idempotencyKey:y})})}catch(o){throw o instanceof b&&(o.code==="media_type_unsupported"||o.code==="media_type_mismatch")?new TypeError("unsupported_file"):(o instanceof b&&(o.code==="document_upload_not_allowed"||o.code==="uploaded_media_not_allowed")&&await t.refreshView().catch(()=>{}),o)}},v=(a,l)=>({...a,uploadDocument:e=>{let n=()=>C(e),u=(g===null?n():g.then(n,n)).finally(()=>{g===u&&(g=null)});return g=u,u},issuer:p?.issuer??null,documentType:p?.documentType??null,captureSide:p===null?null:p.documentType==="passport"?"single":a.side,selectDocument:(e,n)=>{if(!K(a.documents).includes(e)||!z(a.documents,e).includes(n))throw new RangeError(`${n} from ${e} is not accepted`);(p?.issuer!==e||p.documentType!==n)&&m(),p={issuer:e,documentType:n},l()},capture:e=>{if(p===null)throw new Error("selectDocument() first");if(c!==null&&c.video===e.video)return c.flow.handle;m();let n=p,u=n.documentType==="passport"?"single":a.acceptedSides.length>0?a.side:void 0,i=j({video:e.video,documentType:n.documentType,issuer:n.issuer,...u!==void 0?{side:u}:{},...e.keepScreenAwake!==void 0?{keepScreenAwake:e.keepScreenAwake}:{},...e.liveMrz!==void 0?{liveMrz:e.liveMrz}:{}},{...t.documentInternals??{},...(()=>{let r=t.currentView()?.capture?.document,o=t.documentInternals?.blurRefuseSharpnessMax??r?.scan?.blurRefuseSharpnessMax;return{engineOptions:{camera:B(r?.camera),shutter:H(r?.scan),guideLock:G(r?.guide),...t.documentInternals?.engineOptions??{}},...typeof o=="number"&&Number.isFinite(o)&&o>=0&&o<=1?{blurRefuseSharpnessMax:o}:{}}})(),deferRead:!0,...(()=>{let r=t.currentView();if(r===null||t.documentInternals?.webOcr!==void 0)return{};let o=Z(t.runtime.client);return{webOcr:{captureDocument:r.capture?.document,salt:r.sessionId,baseUrl:ne(t.runtime.client),...o!==void 0?{reports:o}:{}}}})()});return c={video:e.video,flow:i},f.newHandle(),i.handle.on("state",r=>f.note(r)),i.handle.on("error",r=>{f.noteError(),t.reportCaptureIssue?.(L("document",r,f.value))}),i.handle.on("captured",r=>{M=M.then(()=>D(r,i)).catch(()=>{})}),i.handle}}),h=null,I=null,S=new Set,x=t.runtime.client;t.runtime.client=new Proxy(x,{get(a,l){if(l==="submitCheck")return(I??a).submitCheck.bind(I??a);let e=Reflect.get(a,l);return typeof e=="function"?e.bind(a):e}});let P=()=>{h?.destroy(),h=null,I=null},O=a=>{let l=t.currentView(),e=l===null?null:R(l,{isMobile:t.isMobile()});if(l===null||e?.kind!=="liveness"||e.livePhoto?.icao!==!0)return;if(h===null){let r=Q({tuning:l.capture?.icao??null,tuningVersion:l.capture?.tuningVersion??null,...e.icao!=null?{policy:e.icao.policy}:{},still:e.livePhoto.still,...a.assetBaseUrl!==void 0?{assetBaseUrl:a.assetBaseUrl}:{}},t.livePhotoInternals);h=r,I=r.decorate(x),r.onGate(o=>{for(let y of S)y(o)})}let n=h,u=t.baseCapture??{},i=u.engineOptions?.telemetry;return{...u,engineOptions:{...u.engineOptions??{},measureQuality:n.engineOptions.measureQuality,telemetry:r=>{i?.(r),n.engineOptions.telemetry(r)}}}},k=Y({keptPortraitInput:()=>h?.lastPortraitInput()??null,runner:()=>s,currentView:t.currentView,...t.cameraMode!==void 0?{cameraMode:t.cameraMode}:{},destroyed:t.destroyed,isMobile:t.isMobile,...t.portraitInternals!==void 0?{internals:t.portraitInternals}:{},...t.uploadInternals!==void 0?{uploadInternals:t.uploadInternals}:{},refreshView:()=>t.refreshView(),...t.reportCaptureIssue!==void 0?{reportCaptureIssue:t.reportCaptureIssue}:{},reportGate:a=>Z(t.runtime.client)?.([a])}),_=q({...t,bindDocument:v,bindPortrait:k.bind,stopCameras:()=>{m(),k.destroy(),P(),t.stopLiveness?.()},onLivePhoto:a=>(S.add(a),()=>S.delete(a))});return s=_,{..._,captureInternals:O,destroy:()=>{m(),k.destroy(),P(),S.clear()}}}export{Se as createPlanRunner,Z as reportSink,ne as sdkAssetBase};
@@ -16,7 +16,7 @@ interface SekyroEvent {
16
16
  level?: 0 | 1 | 2 | 3;
17
17
  }
18
18
  interface OpenOptions {
19
- /** The `hosted_url` returned by `POST /api/v2/sessions` (create result). */
19
+ /** The `hostedUrl` returned by `POST /api/v2/sessions` (create result). */
20
20
  hostedUrl: string;
21
21
  /** Called for every allowlist-validated event posted by the hosted page. */
22
22
  onEvent: (event: SekyroEvent) => void;
@@ -16,7 +16,7 @@ interface SekyroEvent {
16
16
  level?: 0 | 1 | 2 | 3;
17
17
  }
18
18
  interface OpenOptions {
19
- /** The `hosted_url` returned by `POST /api/v2/sessions` (create result). */
19
+ /** The `hostedUrl` returned by `POST /api/v2/sessions` (create result). */
20
20
  hostedUrl: string;
21
21
  /** Called for every allowlist-validated event posted by the hosted page. */
22
22
  onEvent: (event: SekyroEvent) => void;
@@ -1 +1 @@
1
- import{a,b,c}from"../chunk-U6TYL2IJ.js";export{a as SEKYRO_EVENTS,b as open,c as openHosted};
1
+ import{a,b,c}from"../chunk-SNACCYTL.js";export{a as SEKYRO_EVENTS,b as open,c as openHosted};
@@ -52,11 +52,12 @@ declare const ICAO_DEVICE_LIMITS: {
52
52
  readonly eyes: {
53
53
  readonly relativeMin: 0.62;
54
54
  readonly blinkMax: 0.48;
55
+ readonly lowerEyeMin: 0.32;
55
56
  };
56
57
  readonly mouth: {
57
58
  readonly jawOpenMax: 0.13;
58
59
  readonly smileMax: 0.28;
59
- readonly puckerMax: 0.28;
60
+ readonly puckerMax: 0.48;
60
61
  };
61
62
  readonly lighting: {
62
63
  readonly faceLuma: readonly [95, 185];
@@ -84,6 +85,7 @@ declare const ICAO_DEVICE_LIMITS: {
84
85
  readonly eyes: {
85
86
  readonly relativeMin: 0.62;
86
87
  readonly blinkMax: 0.48;
88
+ readonly lowerEyeMin: 0.32;
87
89
  };
88
90
  readonly mouth: {
89
91
  readonly jawOpenMax: 0.13;
@@ -129,6 +131,7 @@ interface IcaoCaptureTuning {
129
131
  eyes?: {
130
132
  relativeMin?: number;
131
133
  blinkMax?: number;
134
+ lowerEyeMin?: number;
132
135
  earMin?: number;
133
136
  };
134
137
  mouth?: {
@@ -189,6 +192,7 @@ interface ResolvedIcaoTuning {
189
192
  eyes: {
190
193
  relativeMin: number;
191
194
  blinkMax: number;
195
+ lowerEyeMin: number;
192
196
  };
193
197
  mouth: {
194
198
  jawOpenMax: number;
@@ -642,7 +646,7 @@ interface HostedEmailOtpView {
642
646
  * criterion; every one is retryable (re-run only the ICAO gate).
643
647
  * `media_unreadable` (no report) is shared with liveness.
644
648
  */
645
- type PortraitIcaoReason = "icao_pose" | "icao_eyes" | "icao_mouth" | "icao_occlusion" | "icao_lighting" | "icao_background" | "icao_resolution" | "portrait_not_from_liveness" | "portrait_recaptured" | "portrait_morph_suspected" | "portrait_reference_mismatch" | "portrait_declined_fix" | "portrait_fix_review";
649
+ type PortraitIcaoReason = "icao_pose" | "icao_eyes" | "icao_mouth" | "icao_occlusion" | "icao_lighting" | "icao_background" | "icao_resolution" | "portrait_not_from_liveness" | "portrait_morph_suspected" | "portrait_reference_mismatch" | "portrait_declined_fix" | "portrait_fix_review";
646
650
  /** One ICAO criterion of the server's portrait report (SDK spec §4.9). */
647
651
  type IcaoCriterion = "pose" | "eyes" | "mouth" | "occlusion" | "glare" | "lighting" | "background" | "resolution";
648
652
  /** The ICAO policy of a session's selfie (spec 2026-10-24 selfie ICAO policy §10). */
@@ -845,8 +849,7 @@ type HostedVoiceLocale = "ar" | "fr" | "en";
845
849
  *
846
850
  * `clips[locale]` maps a voice key (`fcv3.*`, the `@sekyro/react` voice-key
847
851
  * namespace) to an ABSOLUTE URL on the Sekyro AI assets host
848
- * (`https://assets.sekyro.ai/voice/<setId>/<locale>/<name>.mp3`; staging:
849
- * `assets-staging.sekyro.ai`). URLs are immutable per `setId`. A locale or key
852
+ * (`https://assets.sekyro.ai/voice/<setId>/<locale>/<name>.mp3`). URLs are immutable per `setId`. A locale or key
850
853
  * may be missing — the player falls back to the device voice for it.
851
854
  *
852
855
  * A page with a Content-Security-Policy must allow the assets origin in
@@ -1172,6 +1175,13 @@ interface HostedSessionView {
1172
1175
  * picker. Absent on older APIs (fall back to `acceptedDocumentTypes` for MR).
1173
1176
  */
1174
1177
  acceptedDocuments?: HostedAcceptedDocuments;
1178
+ /**
1179
+ * The person's country as detected from the IP address the session started
1180
+ * from (ISO 3166-1 alpha-2). The document country picker lists it first when
1181
+ * the session accepts a document from it. Absent when unknown (and on older
1182
+ * APIs).
1183
+ */
1184
+ detectedCountry?: string;
1175
1185
  /**
1176
1186
  * ISO-8601 time from which this device may verify again — set with
1177
1187
  * `failureReason: 'device_cooldown'` (profile v2 step 4). Absent otherwise
@@ -1281,6 +1291,11 @@ interface HostedSessionView {
1281
1291
  * older APIs. Offer "continue without a camera" only then, or on a `human` session.
1282
1292
  */
1283
1293
  cameraUnavailableHandled?: true;
1294
+ /**
1295
+ * Sandbox DX spec 2026-11-06 §8: present only on a simulated session (never Live, never bound to a tester), so the
1296
+ * flow can say that nothing is sent and offer to skip the camera steps. Absent otherwise and on older APIs.
1297
+ */
1298
+ simulation?: HostedSimulationView;
1284
1299
  /**
1285
1300
  * 2026-11-05: where the ID document step's photo may come from. Absent when the open document step is camera only
1286
1301
  * with no upload offered (and on older APIs): `{ source: "camera", uploadOffered: false }`.
@@ -1505,6 +1520,21 @@ interface FaceMatchInput {
1505
1520
  }
1506
1521
  /** Document side (docs.types.ts DocSide). */
1507
1522
  type DocSide = "recto" | "verso" | "single";
1523
+ /** The hosted view's `simulation` block (Sandbox DX spec 2026-11-06 §8): what a simulated session tells the flow. */
1524
+ interface HostedSimulationView {
1525
+ /** The code that passes the phone, email and national eID code screens: render it, nothing is delivered. */
1526
+ otpCode: string;
1527
+ /** The server takes {@link SimulatedCaptureInput} on the document, chip, liveness and portrait steps. */
1528
+ skipCapture: boolean;
1529
+ }
1530
+ /**
1531
+ * The input of a camera step skipped in a simulated session (`doc_ocr`, `nfc_chip`, `liveness`, `face_match`,
1532
+ * `portrait_icao`), with no media. Any other session answers `403 simulated_capture_forbidden`.
1533
+ */
1534
+ interface SimulatedCaptureInput {
1535
+ /** Always `true`. */
1536
+ simulatedCapture: true;
1537
+ }
1508
1538
  /** The hosted view's `documents` block (2026-11-05): where the ID document step's photo may come from. */
1509
1539
  interface HostedDocumentsView {
1510
1540
  /** The step's setting ({@link PhotoSource}). */
@@ -1613,8 +1643,8 @@ interface EmailOtpInput {
1613
1643
  }
1614
1644
  /**
1615
1645
  * portrait_icao executor input (SDK spec §4.9): the ICAO gate's frame
1616
- * (uploaded as media kind `image`). The server re-runs every criterion; only
1617
- * `gate.baselineEyeOpenness` (0–1, the user's own eye-openness baseline) is used.
1646
+ * (uploaded as media kind `image`). The server re-runs every criterion; only the
1647
+ * eye baselines (0–1, the user's own eye openness) are used.
1618
1648
  */
1619
1649
  interface PortraitIcaoInput {
1620
1650
  media: {
@@ -1622,6 +1652,9 @@ interface PortraitIcaoInput {
1622
1652
  };
1623
1653
  gate?: {
1624
1654
  baselineEyeOpenness?: number;
1655
+ /** The baseline of each eye, both or neither: the server then judges each eye against its own. */
1656
+ baselineEyeOpennessLeft?: number;
1657
+ baselineEyeOpennessRight?: number;
1625
1658
  /**
1626
1659
  * The device verdict on the submitted still, with the server's criterion names
1627
1660
  * (`framing` folds into `resolution`; unmeasured criteria are omitted, and
@@ -1696,4 +1729,4 @@ interface SubmitCheckBody {
1696
1729
  forceOutcome?: "pass" | "fail" | "age_over" | "age_uncertain" | "age_under" | "age_unavailable";
1697
1730
  }
1698
1731
 
1699
- export { type LivenessCaptureInput as $, type AcceptedDocumentType as A, type HostedEmailOtpView as B, type CaptureContext as C, type DecisionReason as D, type EidAfterPass as E, type FaceMatchInput as F, type HostedFlowRef as G, type HostedAcceptedDocuments as H, type HostedIcaoPolicy as I, type HostedIntegrity as J, type HostedLivePhotoTuning as K, type HostedNativeCaptureTuning as L, type HostedOcrTuning as M, type HostedOtpView as N, type HostedPlanView as O, type HostedPortraitPendingFix as P, type HostedPortraitView as Q, type HostedSessionView as R, type HostedStepView as S, type HostedVoiceLocale as T, type HostedVoiceView as U, type IcaoCriterion as V, type IcaoReportEntry as W, type IdentityConfirmDecision as X, type IdentityMethod as Y, type IdentitySummarySource as Z, type IdentitySummaryView as _, type AttestationInput as a, type LivenessInput as a0, type LivenessReason as a1, type MatchReason as a2, type MediaKind as a3, type MethodChoiceView as a4, type NationalEidOption as a5, type NfcChipReason as a6, type NfcStepView as a7, type OtpChoiceView as a8, type PhoneCountryRule as a9, type SessionStepView as aA, type SessionView as aB, type StepSection as aC, type SubmitCheckBody as aD, type VerificationAssurance as aE, type VerificationLevel as aF, type ScreenRampColour as aG, type AgeEstimationReason as aH, type CameraUnavailableCause as aI, type CaptureIssueReport as aJ, type CaptureProvenance as aK, type HostedBranding as aL, type HostedBrandingColorKey as aM, type HostedLivenessCaptureTuning as aN, type IcaoCaptureTuning as aO, type RetakeHint as aP, type ScreenRampChallenge as aQ, type ScreenRampRendered as aR, type ScreenRampReport as aS, ICAO_FALLBACK as aT, type IcaoProfile as aU, type ResolvedIcaoTuning as aV, resolveIcaoTuning as aW, type PersonMask as aX, type BackgroundUniformity as aY, type PhoneFormat as aa, type PhoneOtpInput as ab, type PhoneOtpReason as ac, type PhotoSource as ad, type PhotoSourcePick as ae, type PlanAttempts as af, type PlanChoiceKind as ag, type PlanChoiceOption as ah, type PlanChoiceView as ai, type PlanSectionView as aj, type PlanStepView as ak, type PolicyFailureReason as al, type PopulationInput as am, type PopulationReason as an, type PortraitFix as ao, type PortraitFixReviewInput as ap, type PortraitIcaoInput as aq, type PortraitIcaoReason as ar, type PortraitOutputFormat as as, type PresignRequest as at, type PresignUploadResult as au, type RecordConsentResult as av, type ResolvedCaptureMode as aw, type SessionFailureReason as ax, type SessionOutcome as ay, type SessionStatus as az, type CaptureMode as b, type CaptureNoncesResult as c, type CaptureProof as d, type CheckInputByType as e, type CheckReason as f, type CheckState as g, type CheckType as h, type CompleteMediaResult as i, type ConsentLocale as j, type ContactChannel as k, type DocDeviceRead as l, type DocOcrInput as m, type DocReason as n, type DocSide as o, type EidAuthInput as p, type EidReason as q, type EmailOtpInput as r, type EmailOtpReason as s, type FaceMatchReason as t, type HostedCaptureTuning as u, type HostedConsentView as v, type HostedDocumentCaptureTuning as w, type HostedDocumentScanTuning as x, type HostedDocumentsView as y, type HostedEidView as z };
1732
+ export { type IdentitySummaryView as $, type AcceptedDocumentType as A, type HostedEmailOtpView as B, type CaptureContext as C, type DecisionReason as D, type EidAfterPass as E, type FaceMatchInput as F, type HostedFlowRef as G, type HostedAcceptedDocuments as H, type HostedIcaoPolicy as I, type HostedIntegrity as J, type HostedLivePhotoTuning as K, type HostedNativeCaptureTuning as L, type HostedOcrTuning as M, type HostedOtpView as N, type HostedPlanView as O, type HostedPortraitPendingFix as P, type HostedPortraitView as Q, type HostedSessionView as R, type HostedSimulationView as S, type HostedStepView as T, type HostedVoiceLocale as U, type HostedVoiceView as V, type IcaoCriterion as W, type IcaoReportEntry as X, type IdentityConfirmDecision as Y, type IdentityMethod as Z, type IdentitySummarySource as _, type AttestationInput as a, type LivenessCaptureInput as a0, type LivenessInput as a1, type LivenessReason as a2, type MatchReason as a3, type MediaKind as a4, type MethodChoiceView as a5, type NationalEidOption as a6, type NfcChipReason as a7, type NfcStepView as a8, type OtpChoiceView as a9, type SessionStatus as aA, type SessionStepView as aB, type SessionView as aC, type SimulatedCaptureInput as aD, type StepSection as aE, type SubmitCheckBody as aF, type VerificationAssurance as aG, type VerificationLevel as aH, type ScreenRampColour as aI, type AgeEstimationReason as aJ, type CameraUnavailableCause as aK, type CaptureIssueReport as aL, type CaptureProvenance as aM, type HostedBranding as aN, type HostedBrandingColorKey as aO, type HostedLivenessCaptureTuning as aP, type IcaoCaptureTuning as aQ, type RetakeHint as aR, type ScreenRampChallenge as aS, type ScreenRampRendered as aT, type ScreenRampReport as aU, ICAO_FALLBACK as aV, type IcaoProfile as aW, type ResolvedIcaoTuning as aX, resolveIcaoTuning as aY, type PersonMask as aZ, type BackgroundUniformity as a_, type PhoneCountryRule as aa, type PhoneFormat as ab, type PhoneOtpInput as ac, type PhoneOtpReason as ad, type PhotoSource as ae, type PhotoSourcePick as af, type PlanAttempts as ag, type PlanChoiceKind as ah, type PlanChoiceOption as ai, type PlanChoiceView as aj, type PlanSectionView as ak, type PlanStepView as al, type PolicyFailureReason as am, type PopulationInput as an, type PopulationReason as ao, type PortraitFix as ap, type PortraitFixReviewInput as aq, type PortraitIcaoInput as ar, type PortraitIcaoReason as as, type PortraitOutputFormat as at, type PresignRequest as au, type PresignUploadResult as av, type RecordConsentResult as aw, type ResolvedCaptureMode as ax, type SessionFailureReason as ay, type SessionOutcome as az, type CaptureMode as b, type CaptureNoncesResult as c, type CaptureProof as d, type CheckInputByType as e, type CheckReason as f, type CheckState as g, type CheckType as h, type CompleteMediaResult as i, type ConsentLocale as j, type ContactChannel as k, type DocDeviceRead as l, type DocOcrInput as m, type DocReason as n, type DocSide as o, type EidAuthInput as p, type EidReason as q, type EmailOtpInput as r, type EmailOtpReason as s, type FaceMatchReason as t, type HostedCaptureTuning as u, type HostedConsentView as v, type HostedDocumentCaptureTuning as w, type HostedDocumentScanTuning as x, type HostedDocumentsView as y, type HostedEidView as z };
@@ -52,11 +52,12 @@ declare const ICAO_DEVICE_LIMITS: {
52
52
  readonly eyes: {
53
53
  readonly relativeMin: 0.62;
54
54
  readonly blinkMax: 0.48;
55
+ readonly lowerEyeMin: 0.32;
55
56
  };
56
57
  readonly mouth: {
57
58
  readonly jawOpenMax: 0.13;
58
59
  readonly smileMax: 0.28;
59
- readonly puckerMax: 0.28;
60
+ readonly puckerMax: 0.48;
60
61
  };
61
62
  readonly lighting: {
62
63
  readonly faceLuma: readonly [95, 185];
@@ -84,6 +85,7 @@ declare const ICAO_DEVICE_LIMITS: {
84
85
  readonly eyes: {
85
86
  readonly relativeMin: 0.62;
86
87
  readonly blinkMax: 0.48;
88
+ readonly lowerEyeMin: 0.32;
87
89
  };
88
90
  readonly mouth: {
89
91
  readonly jawOpenMax: 0.13;
@@ -129,6 +131,7 @@ interface IcaoCaptureTuning {
129
131
  eyes?: {
130
132
  relativeMin?: number;
131
133
  blinkMax?: number;
134
+ lowerEyeMin?: number;
132
135
  earMin?: number;
133
136
  };
134
137
  mouth?: {
@@ -189,6 +192,7 @@ interface ResolvedIcaoTuning {
189
192
  eyes: {
190
193
  relativeMin: number;
191
194
  blinkMax: number;
195
+ lowerEyeMin: number;
192
196
  };
193
197
  mouth: {
194
198
  jawOpenMax: number;
@@ -642,7 +646,7 @@ interface HostedEmailOtpView {
642
646
  * criterion; every one is retryable (re-run only the ICAO gate).
643
647
  * `media_unreadable` (no report) is shared with liveness.
644
648
  */
645
- type PortraitIcaoReason = "icao_pose" | "icao_eyes" | "icao_mouth" | "icao_occlusion" | "icao_lighting" | "icao_background" | "icao_resolution" | "portrait_not_from_liveness" | "portrait_recaptured" | "portrait_morph_suspected" | "portrait_reference_mismatch" | "portrait_declined_fix" | "portrait_fix_review";
649
+ type PortraitIcaoReason = "icao_pose" | "icao_eyes" | "icao_mouth" | "icao_occlusion" | "icao_lighting" | "icao_background" | "icao_resolution" | "portrait_not_from_liveness" | "portrait_morph_suspected" | "portrait_reference_mismatch" | "portrait_declined_fix" | "portrait_fix_review";
646
650
  /** One ICAO criterion of the server's portrait report (SDK spec §4.9). */
647
651
  type IcaoCriterion = "pose" | "eyes" | "mouth" | "occlusion" | "glare" | "lighting" | "background" | "resolution";
648
652
  /** The ICAO policy of a session's selfie (spec 2026-10-24 selfie ICAO policy §10). */
@@ -845,8 +849,7 @@ type HostedVoiceLocale = "ar" | "fr" | "en";
845
849
  *
846
850
  * `clips[locale]` maps a voice key (`fcv3.*`, the `@sekyro/react` voice-key
847
851
  * namespace) to an ABSOLUTE URL on the Sekyro AI assets host
848
- * (`https://assets.sekyro.ai/voice/<setId>/<locale>/<name>.mp3`; staging:
849
- * `assets-staging.sekyro.ai`). URLs are immutable per `setId`. A locale or key
852
+ * (`https://assets.sekyro.ai/voice/<setId>/<locale>/<name>.mp3`). URLs are immutable per `setId`. A locale or key
850
853
  * may be missing — the player falls back to the device voice for it.
851
854
  *
852
855
  * A page with a Content-Security-Policy must allow the assets origin in
@@ -1172,6 +1175,13 @@ interface HostedSessionView {
1172
1175
  * picker. Absent on older APIs (fall back to `acceptedDocumentTypes` for MR).
1173
1176
  */
1174
1177
  acceptedDocuments?: HostedAcceptedDocuments;
1178
+ /**
1179
+ * The person's country as detected from the IP address the session started
1180
+ * from (ISO 3166-1 alpha-2). The document country picker lists it first when
1181
+ * the session accepts a document from it. Absent when unknown (and on older
1182
+ * APIs).
1183
+ */
1184
+ detectedCountry?: string;
1175
1185
  /**
1176
1186
  * ISO-8601 time from which this device may verify again — set with
1177
1187
  * `failureReason: 'device_cooldown'` (profile v2 step 4). Absent otherwise
@@ -1281,6 +1291,11 @@ interface HostedSessionView {
1281
1291
  * older APIs. Offer "continue without a camera" only then, or on a `human` session.
1282
1292
  */
1283
1293
  cameraUnavailableHandled?: true;
1294
+ /**
1295
+ * Sandbox DX spec 2026-11-06 §8: present only on a simulated session (never Live, never bound to a tester), so the
1296
+ * flow can say that nothing is sent and offer to skip the camera steps. Absent otherwise and on older APIs.
1297
+ */
1298
+ simulation?: HostedSimulationView;
1284
1299
  /**
1285
1300
  * 2026-11-05: where the ID document step's photo may come from. Absent when the open document step is camera only
1286
1301
  * with no upload offered (and on older APIs): `{ source: "camera", uploadOffered: false }`.
@@ -1505,6 +1520,21 @@ interface FaceMatchInput {
1505
1520
  }
1506
1521
  /** Document side (docs.types.ts DocSide). */
1507
1522
  type DocSide = "recto" | "verso" | "single";
1523
+ /** The hosted view's `simulation` block (Sandbox DX spec 2026-11-06 §8): what a simulated session tells the flow. */
1524
+ interface HostedSimulationView {
1525
+ /** The code that passes the phone, email and national eID code screens: render it, nothing is delivered. */
1526
+ otpCode: string;
1527
+ /** The server takes {@link SimulatedCaptureInput} on the document, chip, liveness and portrait steps. */
1528
+ skipCapture: boolean;
1529
+ }
1530
+ /**
1531
+ * The input of a camera step skipped in a simulated session (`doc_ocr`, `nfc_chip`, `liveness`, `face_match`,
1532
+ * `portrait_icao`), with no media. Any other session answers `403 simulated_capture_forbidden`.
1533
+ */
1534
+ interface SimulatedCaptureInput {
1535
+ /** Always `true`. */
1536
+ simulatedCapture: true;
1537
+ }
1508
1538
  /** The hosted view's `documents` block (2026-11-05): where the ID document step's photo may come from. */
1509
1539
  interface HostedDocumentsView {
1510
1540
  /** The step's setting ({@link PhotoSource}). */
@@ -1613,8 +1643,8 @@ interface EmailOtpInput {
1613
1643
  }
1614
1644
  /**
1615
1645
  * portrait_icao executor input (SDK spec §4.9): the ICAO gate's frame
1616
- * (uploaded as media kind `image`). The server re-runs every criterion; only
1617
- * `gate.baselineEyeOpenness` (0–1, the user's own eye-openness baseline) is used.
1646
+ * (uploaded as media kind `image`). The server re-runs every criterion; only the
1647
+ * eye baselines (0–1, the user's own eye openness) are used.
1618
1648
  */
1619
1649
  interface PortraitIcaoInput {
1620
1650
  media: {
@@ -1622,6 +1652,9 @@ interface PortraitIcaoInput {
1622
1652
  };
1623
1653
  gate?: {
1624
1654
  baselineEyeOpenness?: number;
1655
+ /** The baseline of each eye, both or neither: the server then judges each eye against its own. */
1656
+ baselineEyeOpennessLeft?: number;
1657
+ baselineEyeOpennessRight?: number;
1625
1658
  /**
1626
1659
  * The device verdict on the submitted still, with the server's criterion names
1627
1660
  * (`framing` folds into `resolution`; unmeasured criteria are omitted, and
@@ -1696,4 +1729,4 @@ interface SubmitCheckBody {
1696
1729
  forceOutcome?: "pass" | "fail" | "age_over" | "age_uncertain" | "age_under" | "age_unavailable";
1697
1730
  }
1698
1731
 
1699
- export { type LivenessCaptureInput as $, type AcceptedDocumentType as A, type HostedEmailOtpView as B, type CaptureContext as C, type DecisionReason as D, type EidAfterPass as E, type FaceMatchInput as F, type HostedFlowRef as G, type HostedAcceptedDocuments as H, type HostedIcaoPolicy as I, type HostedIntegrity as J, type HostedLivePhotoTuning as K, type HostedNativeCaptureTuning as L, type HostedOcrTuning as M, type HostedOtpView as N, type HostedPlanView as O, type HostedPortraitPendingFix as P, type HostedPortraitView as Q, type HostedSessionView as R, type HostedStepView as S, type HostedVoiceLocale as T, type HostedVoiceView as U, type IcaoCriterion as V, type IcaoReportEntry as W, type IdentityConfirmDecision as X, type IdentityMethod as Y, type IdentitySummarySource as Z, type IdentitySummaryView as _, type AttestationInput as a, type LivenessInput as a0, type LivenessReason as a1, type MatchReason as a2, type MediaKind as a3, type MethodChoiceView as a4, type NationalEidOption as a5, type NfcChipReason as a6, type NfcStepView as a7, type OtpChoiceView as a8, type PhoneCountryRule as a9, type SessionStepView as aA, type SessionView as aB, type StepSection as aC, type SubmitCheckBody as aD, type VerificationAssurance as aE, type VerificationLevel as aF, type ScreenRampColour as aG, type AgeEstimationReason as aH, type CameraUnavailableCause as aI, type CaptureIssueReport as aJ, type CaptureProvenance as aK, type HostedBranding as aL, type HostedBrandingColorKey as aM, type HostedLivenessCaptureTuning as aN, type IcaoCaptureTuning as aO, type RetakeHint as aP, type ScreenRampChallenge as aQ, type ScreenRampRendered as aR, type ScreenRampReport as aS, ICAO_FALLBACK as aT, type IcaoProfile as aU, type ResolvedIcaoTuning as aV, resolveIcaoTuning as aW, type PersonMask as aX, type BackgroundUniformity as aY, type PhoneFormat as aa, type PhoneOtpInput as ab, type PhoneOtpReason as ac, type PhotoSource as ad, type PhotoSourcePick as ae, type PlanAttempts as af, type PlanChoiceKind as ag, type PlanChoiceOption as ah, type PlanChoiceView as ai, type PlanSectionView as aj, type PlanStepView as ak, type PolicyFailureReason as al, type PopulationInput as am, type PopulationReason as an, type PortraitFix as ao, type PortraitFixReviewInput as ap, type PortraitIcaoInput as aq, type PortraitIcaoReason as ar, type PortraitOutputFormat as as, type PresignRequest as at, type PresignUploadResult as au, type RecordConsentResult as av, type ResolvedCaptureMode as aw, type SessionFailureReason as ax, type SessionOutcome as ay, type SessionStatus as az, type CaptureMode as b, type CaptureNoncesResult as c, type CaptureProof as d, type CheckInputByType as e, type CheckReason as f, type CheckState as g, type CheckType as h, type CompleteMediaResult as i, type ConsentLocale as j, type ContactChannel as k, type DocDeviceRead as l, type DocOcrInput as m, type DocReason as n, type DocSide as o, type EidAuthInput as p, type EidReason as q, type EmailOtpInput as r, type EmailOtpReason as s, type FaceMatchReason as t, type HostedCaptureTuning as u, type HostedConsentView as v, type HostedDocumentCaptureTuning as w, type HostedDocumentScanTuning as x, type HostedDocumentsView as y, type HostedEidView as z };
1732
+ export { type IdentitySummaryView as $, type AcceptedDocumentType as A, type HostedEmailOtpView as B, type CaptureContext as C, type DecisionReason as D, type EidAfterPass as E, type FaceMatchInput as F, type HostedFlowRef as G, type HostedAcceptedDocuments as H, type HostedIcaoPolicy as I, type HostedIntegrity as J, type HostedLivePhotoTuning as K, type HostedNativeCaptureTuning as L, type HostedOcrTuning as M, type HostedOtpView as N, type HostedPlanView as O, type HostedPortraitPendingFix as P, type HostedPortraitView as Q, type HostedSessionView as R, type HostedSimulationView as S, type HostedStepView as T, type HostedVoiceLocale as U, type HostedVoiceView as V, type IcaoCriterion as W, type IcaoReportEntry as X, type IdentityConfirmDecision as Y, type IdentityMethod as Z, type IdentitySummarySource as _, type AttestationInput as a, type LivenessCaptureInput as a0, type LivenessInput as a1, type LivenessReason as a2, type MatchReason as a3, type MediaKind as a4, type MethodChoiceView as a5, type NationalEidOption as a6, type NfcChipReason as a7, type NfcStepView as a8, type OtpChoiceView as a9, type SessionStatus as aA, type SessionStepView as aB, type SessionView as aC, type SimulatedCaptureInput as aD, type StepSection as aE, type SubmitCheckBody as aF, type VerificationAssurance as aG, type VerificationLevel as aH, type ScreenRampColour as aI, type AgeEstimationReason as aJ, type CameraUnavailableCause as aK, type CaptureIssueReport as aL, type CaptureProvenance as aM, type HostedBranding as aN, type HostedBrandingColorKey as aO, type HostedLivenessCaptureTuning as aP, type IcaoCaptureTuning as aQ, type RetakeHint as aR, type ScreenRampChallenge as aS, type ScreenRampRendered as aT, type ScreenRampReport as aU, ICAO_FALLBACK as aV, type IcaoProfile as aW, type ResolvedIcaoTuning as aX, resolveIcaoTuning as aY, type PersonMask as aZ, type BackgroundUniformity as a_, type PhoneCountryRule as aa, type PhoneFormat as ab, type PhoneOtpInput as ac, type PhoneOtpReason as ad, type PhotoSource as ae, type PhotoSourcePick as af, type PlanAttempts as ag, type PlanChoiceKind as ah, type PlanChoiceOption as ai, type PlanChoiceView as aj, type PlanSectionView as ak, type PlanStepView as al, type PolicyFailureReason as am, type PopulationInput as an, type PopulationReason as ao, type PortraitFix as ap, type PortraitFixReviewInput as aq, type PortraitIcaoInput as ar, type PortraitIcaoReason as as, type PortraitOutputFormat as at, type PresignRequest as au, type PresignUploadResult as av, type RecordConsentResult as aw, type ResolvedCaptureMode as ax, type SessionFailureReason as ay, type SessionOutcome as az, type CaptureMode as b, type CaptureNoncesResult as c, type CaptureProof as d, type CheckInputByType as e, type CheckReason as f, type CheckState as g, type CheckType as h, type CompleteMediaResult as i, type ConsentLocale as j, type ContactChannel as k, type DocDeviceRead as l, type DocOcrInput as m, type DocReason as n, type DocSide as o, type EidAuthInput as p, type EidReason as q, type EmailOtpInput as r, type EmailOtpReason as s, type FaceMatchReason as t, type HostedCaptureTuning as u, type HostedConsentView as v, type HostedDocumentCaptureTuning as w, type HostedDocumentScanTuning as x, type HostedDocumentsView as y, type HostedEidView as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sekyro/web",
3
- "version": "0.1.0-rc.20",
3
+ "version": "0.1.0-rc.21",
4
4
  "description": "Sekyro AI web SDK \u2014 browser liveness capture, hosted-verification client and popup embed for Sekyro AI identity verification",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {
package/sbom.cdx.json CHANGED
@@ -97,8 +97,8 @@
97
97
  "type": "application",
98
98
  "name": "web",
99
99
  "group": "@sekyro",
100
- "version": "0.1.0-rc.20",
101
- "bom-ref": "@sekyro/web@0.1.0-rc.20",
100
+ "version": "0.1.0-rc.21",
101
+ "bom-ref": "@sekyro/web@0.1.0-rc.21",
102
102
  "description": "Sekyro AI web SDK — browser liveness capture, hosted-verification client and popup embed for Sekyro AI identity verification",
103
103
  "licenses": [
104
104
  {
@@ -108,7 +108,7 @@
108
108
  }
109
109
  }
110
110
  ],
111
- "purl": "pkg:npm/%40sekyro/web@0.1.0-rc.20?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2FIBTIKAR-Technologies%2Fibtikar-identity.git%23packages%2Fsekyro-web",
111
+ "purl": "pkg:npm/%40sekyro/web@0.1.0-rc.21?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2FIBTIKAR-Technologies%2Fibtikar-identity.git%23packages%2Fsekyro-web",
112
112
  "externalReferences": [
113
113
  {
114
114
  "url": "https://github.com/IBTIKAR-Technologies/ibtikar-identity/issues",
@@ -150,7 +150,7 @@
150
150
  "name": "tasks-vision",
151
151
  "group": "@mediapipe",
152
152
  "version": "0.10.35",
153
- "bom-ref": "@sekyro/web@0.1.0-rc.20|@mediapipe/tasks-vision@0.10.35",
153
+ "bom-ref": "@sekyro/web@0.1.0-rc.21|@mediapipe/tasks-vision@0.10.35",
154
154
  "licenses": [
155
155
  {
156
156
  "license": {
@@ -185,7 +185,7 @@
185
185
  "name": "thumbmarkjs",
186
186
  "group": "@thumbmarkjs",
187
187
  "version": "1.12.0",
188
- "bom-ref": "@sekyro/web@0.1.0-rc.20|@thumbmarkjs/thumbmarkjs@1.12.0",
188
+ "bom-ref": "@sekyro/web@0.1.0-rc.21|@thumbmarkjs/thumbmarkjs@1.12.0",
189
189
  "licenses": [
190
190
  {
191
191
  "license": {
@@ -218,17 +218,17 @@
218
218
  ],
219
219
  "dependencies": [
220
220
  {
221
- "ref": "@sekyro/web@0.1.0-rc.20",
221
+ "ref": "@sekyro/web@0.1.0-rc.21",
222
222
  "dependsOn": [
223
- "@sekyro/web@0.1.0-rc.20|@mediapipe/tasks-vision@0.10.35",
224
- "@sekyro/web@0.1.0-rc.20|@thumbmarkjs/thumbmarkjs@1.12.0"
223
+ "@sekyro/web@0.1.0-rc.21|@mediapipe/tasks-vision@0.10.35",
224
+ "@sekyro/web@0.1.0-rc.21|@thumbmarkjs/thumbmarkjs@1.12.0"
225
225
  ]
226
226
  },
227
227
  {
228
- "ref": "@sekyro/web@0.1.0-rc.20|@mediapipe/tasks-vision@0.10.35"
228
+ "ref": "@sekyro/web@0.1.0-rc.21|@mediapipe/tasks-vision@0.10.35"
229
229
  },
230
230
  {
231
- "ref": "@sekyro/web@0.1.0-rc.20|@thumbmarkjs/thumbmarkjs@1.12.0"
231
+ "ref": "@sekyro/web@0.1.0-rc.21|@thumbmarkjs/thumbmarkjs@1.12.0"
232
232
  }
233
233
  ]
234
234
  }
@@ -1 +0,0 @@
1
- var w=[468,473],K=[[33,133],[362,263]],V=[[33,7,163,144,145,153,154,155,133,173,157,158,159,160,161,246],[362,382,381,380,374,373,390,249,263,466,388,387,386,385,384,398]],D=1;function S(e){let n=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY,t=Number.NEGATIVE_INFINITY,s=Number.NEGATIVE_INFINITY;for(let r of e)r.x<n&&(n=r.x),r.y<o&&(o=r.y),r.x>t&&(t=r.x),r.y>s&&(s=r.y);return e.length===0?{x:0,y:0,width:0,height:0}:{x:n,y:o,width:t-n,height:s-o}}var _=(e,n)=>({x:(e.x+n.x)/2,y:(e.y+n.y)/2});function $(e,n,o){if(e.length<468)return null;let t=l=>{let i=e[l];return{x:i.x*n,y:i.y*o}},s=[0,1].map(l=>{let i=e.length>w[1]?t(w[l]):null,[c,p]=K[l];return i??_(t(c),t(p))}),r=V.map(l=>S(l.map(t))),h=[];for(let l=0;l<Math.min(e.length,468);l+=1)h.push(t(l));let[d,m]=s,u=d.x>m.x,b=u?m:d,f=u?d:m;return{leftEye:b,rightEye:f,iod:Math.hypot(f.x-b.x,f.y-b.y),box:S(h),nose:t(D),leftEyeBox:u?r[1]:r[0],rightEyeBox:u?r[0]:r[1]}}var R=180/Math.PI;function F(e,n="column"){if(e.length<16||e.some(l=>!Number.isFinite(l)))return null;let o=(l,i)=>n==="column"?e[i*4+l]:e[l*4+i],t=Math.hypot(o(0,0),o(1,0),o(2,0))||1,s=o(0,0)/t,r=o(1,0)/t,h=o(2,0)/t,d=o(2,1)/t,m=o(2,2)/t,u=Math.asin(Math.max(-1,Math.min(1,-h)))*R,b=Math.atan2(d,m)*R,f=Math.atan2(r,s)*R;return{yaw:u,pitch:b,roll:f}}function B(e){return Math.atan2(e.rightEye.y-e.leftEye.y,e.rightEye.x-e.leftEye.x)*R}var E={width:480,height:640,eyeX:240,eyeY:289,iodMin:120,iodMax:160};function G(e){let n=E,o=e.iod>=n.iodMin&&e.iod<=n.iodMax?1:n.iodMin/Math.max(e.iod,1e-6),t=n.width/o,s=n.height/o,r=_(e.leftEye,e.rightEye);return{x:r.x-n.eyeX/n.width*t,y:r.y-n.eyeY/n.height*s,width:t,height:s}}function N(e,n,o){let t=Math.max(0,-e.x),s=Math.max(0,-e.y),r=Math.max(0,e.x+e.width-n),h=Math.max(0,e.y+e.height-o);return Math.max((t+r)/e.width,(s+h)/e.height)}function ee(e,n,o,t){let s=G(e),r=s.x+s.width/2,h=s.y+s.height/2,d=E.width/E.height,m=Math.max(s.height*t.margin,t.minHeight,t.minWidth/d);m=Math.min(m,o,n/d);let u=m*d,b=Math.min(Math.max(r-u/2,0),Math.max(0,n-u)),f=Math.min(Math.max(h-m/2,0),Math.max(0,o-m));return{x:Math.round(b),y:Math.round(f),width:Math.round(u),height:Math.round(m)}}var v=["face","framing","pose","eyes","mouth","glare","lighting","background","resolution","sharpness"],H=new Set(["glare","background"]),x=e=>({pass:!0,value:e,coach:null}),y=(e,n)=>({pass:!1,value:e,coach:n}),I=(e,n)=>({pass:e,value:null,coach:e?null:n,none:!0});function X(e,n){let o=e.pose,t;if(o!==null){let c=o.pitch-n.pitchOffsetDeg,p=Math.max(Math.abs(o.yaw),Math.abs(c),Math.abs(o.roll));t=Math.abs(o.yaw)<=n.yawDeg&&Math.abs(c)<=n.pitchDeg&&Math.abs(o.roll)<=n.rollDeg?x(p):y(p,"pose")}else t={...I(!1,"pose"),value:e.eyeLineRoll??null};let s=I(!1,"eyes");if(e.eyes!==null){let c=e.baseline,p=Math.min(e.eyes.left,e.eyes.right),M=Math.max(1-n.eyes.blinkMax,c!==null&&c>0&&c<=1?n.eyes.relativeMin*c:0),g=c!==null&&c>0?p/c:null;s=p>=M-1e-9?x(g):y(g,"eyes")}let r=I(!1,"mouth");if(e.mouth!==null){let{jawOpen:c,smile:p,pucker:M}=e.mouth,g=Math.max(c/n.mouth.jawOpenMax,p/n.mouth.smileMax,M/n.mouth.puckerMax);r=c<=n.mouth.jawOpenMax&&p<=n.mouth.smileMax&&M<=n.mouth.puckerMax?x(g):y(g,"mouth")}let h=e.lighting,d=I(!0,"lighting");if(h!==null){let[c,p]=n.lighting.faceLuma,[M,g]=n.lighting.halfRatio;d=h.faceLuma<c||h.faceLuma>p||h.clipped>n.lighting.clippedMax?y(h.faceLuma,"lighting"):h.halfRatio<M||h.halfRatio>g?y(h.halfRatio,"lighting_side"):x(h.faceLuma)}let m=e.uniformity,u=e.background,b=n.background.required?m!=null&&n.backgroundCheck.enabled?m.uniform?x(m.colorStd):y(m.colorStd,"background"):u===null?I(!0,"background"):u.luma>=n.background.lumaMin&&u.sd<=n.background.lumaSdMax?x(u.luma):y(u.luma,"background"):I(!0,"background"),f=n.resolution,l=Math.min(e.frameWidth,e.frameHeight)>=f.minWidth&&Math.max(e.frameWidth,e.frameHeight)>=f.minHeight,i=e.iod>=f.minIodPx&&l?x(e.iod):y(e.iod,"resolution");return{pose:t,eyes:s,mouth:r,lighting:d,background:b,resolution:i}}function L(e){let n=e?.eyeBlinkLeft,o=e?.eyeBlinkRight;return typeof n!="number"||typeof o!="number"?null:{left:1-n,right:1-o,blinkLeft:n,blinkRight:o}}function q(e,n){if(e.length===0)return null;let o=[...e].sort((s,r)=>s-r),t=Math.min(o.length-1,Math.max(0,Math.ceil(n*o.length)-1));return o[t]}function T(e,n,o){let t={},s=e.geometry;if(e.faces!==1||s===null){let c=e.faces>1?y(e.faces,"multiple_faces"):y(e.faces,"no_face");for(let p of v)t[p]=p==="face"?c:I(!1,"no_face");return{results:t,pose:null}}t.face=x(1);let r=G(s),h=N(r,e.frameWidth,e.frameHeight);t.framing=r.height>e.frameHeight*1.02||r.width>e.frameWidth*1.02?y(h,"too_close"):h>.02?y(h,"center"):x(h);let d=e.matrix!=null?F(e.matrix):null,m=L(e.blendshapes),u=e.blendshapes,b=e.stats??null,f=X({pose:d,eyeLineRoll:Math.abs(B(s)),eyes:m,baseline:o,mouth:u==null?null:{jawOpen:u.jawOpen??0,smile:Math.max(u.mouthSmileLeft??0,u.mouthSmileRight??0),pucker:u.mouthPucker??0},lighting:b?.lighting??null,background:b?.background??null,uniformity:e.backgroundCheck??null,iod:s.iod,frameWidth:e.frameWidth,frameHeight:e.frameHeight},n);Object.assign(t,f);let l=b?.eyeSpecular??null;t.glare=l===null?I(!0,"glare"):l<=n.glare.specularMax?x(l):y(l,"glare");let i=b?.sharpness??null;return t.sharpness=i===null||i>=n.sharpnessMin?x(i):y(i,"hold_still"),{results:t,pose:d}}var J={pose:"pose",eyes:"eyes",mouth:"mouth",glare:"glare",lighting:"lighting",background:"background",framing:"resolution",resolution:"resolution"};function oe(e,n={}){let o=n.policy==="alert",t=new Map,s=0,r=null,h=null,d={},m=[],u=null,b=null,f=l=>{if(m=m.filter(c=>l-c.at<=e.baseline.windowMs),m.length<e.baseline.minSamples)return null;let i=q(m.map(c=>c.open),e.baseline.percentile);return i===null||i<=0?null:Math.min(1,i)};return{push(l,i){let c=T(l,e,null),p=L(l.blendshapes);p!==null&&c.results.face.pass&&c.results.pose.pass&&m.push({at:i,open:(p.left+p.right)/2});let M=f(i),{results:g,pose:A}=T(l,e,M);for(let a of v)g[a].pass&&(a!=="eyes"||M!==null)?t.has(a)||t.set(a,i):t.delete(a);let P=a=>{let C=t.get(a);return C!==void 0&&i-C>=e.holdMs};v.filter(a=>!H.has(a)).every(P)?r??(r=i):r=null;let W=a=>a==="background"&&l.backgroundCheck!=null?e.backgroundCheck.timeoutMs:e.softGraceMs,U=a=>H.has(a)&&!g[a].pass&&r!==null&&i-r>=W(a),k=v.map(a=>({criterion:a,pass:g[a].pass,held:P(a),waived:U(a),value:g[a].value,coach:g[a].pass?null:g[a].coach}));s=k.every(a=>a.pass||a.waived)?s+1:0;let O=k.find(a=>!a.pass&&!a.waived)??null,j=k.filter(a=>a.held||a.waived).length;g.face.pass&&g.framing.pass?h??(h=i):h=null;let Y=k.every(a=>a.held||a.waived)&&s>=e.holdFrames||o&&h!==null&&i-h>=e.alertGraceMs;d={};for(let a of v){let C=J[a];C!==void 0&&g[a].none!==!0&&(d[C]=(d[C]??!0)&&g[a].pass)}return b=l.backgroundCheck??null,u={criteria:k,coach:O?.coach??"hold",failing:O?.criterion??null,progress:j/k.length,ready:Y,baseline:M,pose:A},u},last:()=>u,summary(){let l={criteria:{}};if(u===null)return l;l.verdict={...d},u.baseline!==null&&Math.round(u.baseline*1e3)>0&&(l.baselineEyeOpenness=Math.round(u.baseline*1e3)/1e3);for(let i of u.criteria){let c=i.value===null||!Number.isFinite(i.value)?null:Math.round(i.value*1e3)/1e3;l.criteria[i.criterion]=i.waived?{pass:i.pass,value:c,waived:!0}:{pass:i.pass,value:c}}if(b!==null&&e.background.required){let{pixels:i,...c}=b;l.backgroundCheck=c}return l},reset(){t.clear(),s=0,r=null,h=null,d={},u=null,b=null}}}export{$ as a,F as b,B as c,E as d,G as e,N as f,ee as g,v as h,X as i,L as j,q as k,T as l,oe as m};
@@ -1 +0,0 @@
1
- import{a as M,c as p}from"./chunk-GI3UFGRQ.js";var f={id_document:{pose:{yawDeg:7,pitchDeg:7,rollDeg:5,pitchOffsetDeg:4},eyes:{relativeMin:.62,blinkMax:.48},mouth:{jawOpenMax:.13,smileMax:.28,puckerMax:.28},lighting:{faceLuma:[95,185],halfRatio:[.77,1.31],clippedMax:.015},background:{required:!0,lumaMin:165,lumaSdMax:20},resolution:{minIodPx:110,minWidth:480,minHeight:640}},selfie:{pose:{yawDeg:7,pitchDeg:7,rollDeg:7,pitchOffsetDeg:4},eyes:{relativeMin:.62,blinkMax:.48},mouth:{jawOpenMax:.13,smileMax:.28,puckerMax:.28},lighting:{faceLuma:[95,185],halfRatio:[.77,1.31],clippedMax:.015},background:{required:!1,lumaMin:165,lumaSdMax:20},resolution:{minIodPx:100,minWidth:480,minHeight:640}}};function k(a){let i=f[a];return{profile:a,backgroundCheck:M,...i.pose,holdMs:500,alertGraceMs:3e3,eyes:{...i.eyes},mouth:{...i.mouth},lighting:{...i.lighting,faceLuma:[i.lighting.faceLuma[0],i.lighting.faceLuma[1]],halfRatio:[i.lighting.halfRatio[0],i.lighting.halfRatio[1]]},background:{...i.background},resolution:{...i.resolution},holdFrames:3,cadenceHz:10,baseline:{windowMs:3e3,minSamples:6,percentile:.8},sharpnessMin:.25,glare:{specularMax:.01},softGraceMs:4e3,cropMargin:1.25,camera:{width:1920,height:1080}}}var I=k("id_document"),D=/^[A-Za-z0-9._-]{1,64}$/;function n(a,i,r,u){return typeof a=="number"&&Number.isFinite(a)&&a>=r&&a<=u?a:i}function x(a,i,r,u){if(!Array.isArray(a)||a.length!==2)return[i[0],i[1]];let[e,l]=a,t=n(e,Number.NaN,r,u),m=n(l,Number.NaN,r,u);return Number.isNaN(t)||Number.isNaN(m)||t>m?[i[0],i[1]]:[t,m]}function o(a){return typeof a=="object"&&a!==null&&!Array.isArray(a)?a:{}}function R(a,i){let r=o(a),u=r.profile==="selfie"?"selfie":"id_document",e=u==="selfie"?k(u):I,l=o(r.eyes),t=o(r.mouth),m=o(r.lighting),c=o(r.background),s=o(r.resolution),g=o(r.baseline),w=o(r.glare),b=o(r.camera),h=typeof c.required=="boolean"?c.required:e.background.required,d=p(r.backgroundCheck);return{profile:u,yawDeg:n(r.yawDeg,e.yawDeg,1,45),pitchDeg:n(r.pitchDeg,e.pitchDeg,1,45),pitchOffsetDeg:n(r.pitchOffsetDeg,e.pitchOffsetDeg,-20,20),rollDeg:n(r.rollDeg,e.rollDeg,1,45),holdMs:n(r.holdMs,e.holdMs,0,5e3),alertGraceMs:n(r.alertGraceMs,e.alertGraceMs,0,6e4),eyes:{relativeMin:n(l.relativeMin,e.eyes.relativeMin,0,1),blinkMax:n(l.blinkMax,e.eyes.blinkMax,0,1)},mouth:{jawOpenMax:n(t.jawOpenMax,e.mouth.jawOpenMax,0,1),smileMax:n(t.smileMax,e.mouth.smileMax,0,1),puckerMax:n(t.puckerMax,e.mouth.puckerMax,0,1)},lighting:{faceLuma:x(m.faceLuma,e.lighting.faceLuma,0,255),halfRatio:x(m.halfRatio,e.lighting.halfRatio,0,10),clippedMax:n(m.clippedMax,e.lighting.clippedMax,0,1)},background:{required:h,lumaMin:n(c.lumaMin,e.background.lumaMin,0,255),lumaSdMax:n(c.lumaSdMax,e.background.lumaSdMax,0,255)},resolution:{minIodPx:n(s.minIodPx,e.resolution.minIodPx,1,2e3),minWidth:n(s.minWidth,e.resolution.minWidth,1,8e3),minHeight:n(s.minHeight,e.resolution.minHeight,1,8e3)},holdFrames:Math.round(n(r.holdFrames,e.holdFrames,1,60)),cadenceHz:n(r.cadenceHz,e.cadenceHz,1,30),baseline:{windowMs:n(g.windowMs,e.baseline.windowMs,200,3e4),minSamples:Math.round(n(g.minSamples,e.baseline.minSamples,1,300)),percentile:n(g.percentile,e.baseline.percentile,.5,1)},sharpnessMin:n(r.sharpnessMin,e.sharpnessMin,0,1),glare:{specularMax:n(w.specularMax,e.glare.specularMax,0,1)},softGraceMs:n(r.softGraceMs,e.softGraceMs,0,6e4),cropMargin:n(r.cropMargin,e.cropMargin,1,2),camera:{width:Math.round(n(b.width,e.camera.width,320,4096)),height:Math.round(n(b.height,e.camera.height,240,4096))},backgroundCheck:h?d:{...d,enabled:!1},tuningVersion:typeof i=="string"&&D.test(i)?i:null}}export{I as a,R as b};