@sekyro/web 0.1.0-rc.22 → 0.1.0-rc.22.1

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 (92) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/background-monitor-GCMNCJMG.js +1 -0
  3. package/dist/camera-trait-HVV5ZEDI.js +1 -0
  4. package/dist/{capture-session-doc-YDUKUN3P.js → capture-session-doc-VSUEDAEN.js} +1 -1
  5. package/dist/{capture-session-v3-CkcuPKSD.d.ts → capture-session-v3-C-Q-21Fm.d.ts} +1 -1
  6. package/dist/{capture-session-v3-TJL-0Muv.d.cts → capture-session-v3-DD-MXSU4.d.cts} +1 -1
  7. package/dist/{chunk-PZYVSLPG.js → chunk-6RJTKX5I.js} +1 -1
  8. package/dist/{chunk-VWGKUQ3C.js → chunk-ACP2ZOVW.js} +1 -1
  9. package/dist/{chunk-MXWLCDFX.js → chunk-AXJ2VWIK.js} +1 -1
  10. package/dist/{chunk-G6LKLN4U.js → chunk-EKEHAFEK.js} +1 -1
  11. package/dist/{chunk-HYGINGDC.js → chunk-FSJPKOCC.js} +1 -1
  12. package/dist/{chunk-Z5D7SZUW.js → chunk-H6REKPZ4.js} +1 -1
  13. package/dist/{chunk-A3FUGHAH.js → chunk-HFCVN6AG.js} +1 -1
  14. package/dist/{chunk-7XT5YDSC.js → chunk-J5IQ6THP.js} +1 -1
  15. package/dist/{chunk-RALQBQPT.js → chunk-NHXLIDQJ.js} +1 -1
  16. package/dist/chunk-PVSYKKMP.js +1 -0
  17. package/dist/{chunk-SX7TUC3V.js → chunk-RJZ5SARR.js} +1 -1
  18. package/dist/{chunk-TJUM65FN.js → chunk-TTD5LQG2.js} +1 -1
  19. package/dist/{chunk-RI3E7GBN.js → chunk-TYJA2XJR.js} +1 -1
  20. package/dist/chunk-V4VFZ7NQ.js +1 -0
  21. package/dist/chunk-XK4CCTLL.js +1 -0
  22. package/dist/{chunk-33KKMPJ5.js → chunk-XLYHT4ZQ.js} +1 -1
  23. package/dist/{chunk-2KTSNAVR.js → chunk-ZGDUIZC2.js} +1 -1
  24. package/dist/client/index.cjs +1 -1
  25. package/dist/client/index.d.cts +3 -3
  26. package/dist/client/index.d.ts +3 -3
  27. package/dist/client/index.js +1 -1
  28. package/dist/core/index.cjs +1 -1
  29. package/dist/core/index.d.cts +3 -3
  30. package/dist/core/index.d.ts +3 -3
  31. package/dist/core/index.js +1 -1
  32. package/dist/core/ocr/worker.js +1 -1
  33. package/dist/core/v3/detect-worker.js +1 -1
  34. package/dist/create-document-capture-D7GUVFWF.js +1 -0
  35. package/dist/create-portrait-capture-VRZZOMJS.js +1 -0
  36. package/dist/{create-verification-DnyHCSu6.d.cts → create-verification-BsZ038gI.d.cts} +3 -3
  37. package/dist/{create-verification-DoISHOqL.d.ts → create-verification-CfSZiPSN.d.ts} +3 -3
  38. package/dist/{detector-scanic-YCDNLCGV.js → detector-scanic-F3Y5X3DF.js} +1 -1
  39. package/dist/{icao-gate-lZ_fHE7k.d.ts → icao-gate-BrnPW_gd.d.ts} +1 -1
  40. package/dist/{icao-gate-BFlSZYCZ.d.cts → icao-gate-Bw0Fxd30.d.cts} +1 -1
  41. package/dist/icao-gate-SO6YJ7RV.js +1 -0
  42. package/dist/{icao-policy-BOcutYdD.d.ts → icao-policy-C14ZKZ7r.d.ts} +2 -2
  43. package/dist/{icao-policy-JZH0UdmD.d.cts → icao-policy-DcaumEDt.d.cts} +2 -2
  44. package/dist/icao-tuning-DCZCMCEQ.js +1 -0
  45. package/dist/index.cjs +1 -1
  46. package/dist/index.d.cts +7 -7
  47. package/dist/index.d.ts +7 -7
  48. package/dist/index.js +1 -1
  49. package/dist/internal/index.cjs +1 -1
  50. package/dist/internal/index.d.cts +16 -12
  51. package/dist/internal/index.d.ts +16 -12
  52. package/dist/internal/index.js +1 -1
  53. package/dist/{landmarker-KB7LVXAU.js → landmarker-3BBP3RBY.js} +1 -1
  54. package/dist/mrz-band-DCXFWDBD.js +1 -0
  55. package/dist/{plan-runner-3ZMV7SFQ.js → plan-runner-5UZYQ2XH.js} +1 -1
  56. package/dist/popup/index.js +1 -1
  57. package/dist/{print-SEWS3VHQ.js → print-4WOMNRBE.js} +1 -1
  58. package/dist/{turnstile-2J3LUHCG.js → turnstile-MX6YN4YH.js} +1 -1
  59. package/dist/{types-DwfyBTte.d.ts → types-ChKVytm_.d.cts} +4 -4
  60. package/dist/{types-DwfyBTte.d.cts → types-ChKVytm_.d.ts} +4 -4
  61. package/package.json +1 -1
  62. package/sbom.cdx.json +10 -10
  63. package/dist/background-monitor-A7FKJOAG.js +0 -1
  64. package/dist/camera-trait-V4UAOPIQ.js +0 -1
  65. package/dist/chunk-32ELI5BZ.js +0 -1
  66. package/dist/chunk-BATJN3VQ.js +0 -1
  67. package/dist/chunk-Z2BIZYZQ.js +0 -1
  68. package/dist/create-document-capture-K6EHRCWN.js +0 -1
  69. package/dist/create-portrait-capture-5VGYZUOK.js +0 -1
  70. package/dist/icao-gate-T3BTOKFJ.js +0 -1
  71. package/dist/icao-tuning-4ETMF53W.js +0 -1
  72. package/dist/mrz-band-VYHOTDHY.js +0 -1
  73. /package/dist/{chunk-53POX7U4.js → chunk-25TEJBSB.js} +0 -0
  74. /package/dist/{chunk-CPUECYAJ.js → chunk-7KXJEF7P.js} +0 -0
  75. /package/dist/{chunk-LJYMZQY2.js → chunk-7TGVXBW6.js} +0 -0
  76. /package/dist/{chunk-TDLIXFDT.js → chunk-BPKDXDDH.js} +0 -0
  77. /package/dist/{chunk-TSA6GHUG.js → chunk-CDDYFUER.js} +0 -0
  78. /package/dist/{chunk-7QZWBDI5.js → chunk-CPK5FYNJ.js} +0 -0
  79. /package/dist/{chunk-FPXL63KZ.js → chunk-FK2DJADA.js} +0 -0
  80. /package/dist/{chunk-GI3UFGRQ.js → chunk-LL3YYUKR.js} +0 -0
  81. /package/dist/{chunk-DK5YPBDQ.js → chunk-LYYLXNA4.js} +0 -0
  82. /package/dist/{chunk-SMKCBUJL.js → chunk-NYRFUVAR.js} +0 -0
  83. /package/dist/{chunk-FSSMUAKC.js → chunk-UBRNDTTD.js} +0 -0
  84. /package/dist/{chunk-POIQGEZM.js → chunk-V5P5P3HY.js} +0 -0
  85. /package/dist/{chunk-DFTCAWMP.js → chunk-VP37FW6C.js} +0 -0
  86. /package/dist/{chunk-2LDOXGY3.js → chunk-XB4KLBHY.js} +0 -0
  87. /package/dist/{chunk-CJHMFPL6.js → chunk-YH7DR3PF.js} +0 -0
  88. /package/dist/{clip-inspect-DLJXVKV6.js → clip-inspect-HZ7N2YOP.js} +0 -0
  89. /package/dist/{keyframe-rank-YAJLYJYF.js → keyframe-rank-R4NPQGN3.js} +0 -0
  90. /package/dist/{scanic-ml-stub-KW7IZHUT.js → scanic-ml-stub-XPNKT2N3.js} +0 -0
  91. /package/dist/{segmenter-USLNBX65.js → segmenter-3CVPTZMM.js} +0 -0
  92. /package/dist/{upload-file-UYXOHCRG.js → upload-file-C4MFKLT3.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-DnyHCSu6.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 LIVE_MRZ_DEFAULTS, cj as LIVE_PHOTO_IDLE_MS, ck as LIVE_PHOTO_MAX_HZ, cl as LandmarkedFace, cm as LandmarkerLike, cn as LensSource, co as LightingStatus, cp as LiveMrzCapture, cq as LiveMrzState, cr as LivePhotoGate, cs as LivePhotoKit, ct as LivePhotoKitInternals, cu as LivePhotoKitOptions, cv as LivePhotoStill, cw as LivenessCaptureInternalHandle, cx as LivenessCaptureInternals, cy as LivenessFlowDeps, cz as LivenessFlowOutcome, cA as MANUAL_SHUTTER_MS, cB as MR_DOC_CATALOG, cC as NO_REPORT_MS, cD as OpenDocCameraDeps, cE as PORTRAIT_JPEG_QUALITY, cF as PRELOAD_BLAZE_INIT_TIMEOUT_MS, cG as PRELOAD_BUDGET_MS, cH as PROCESSING_POLL_DELAY_MS, cI as PROCESSING_POLL_MAX, cJ as PortraitCaptureController, cK as PortraitCaptureInternals, cL as REGISTRY_RETRY_DELAY_MS, cM as ReticleType, cN as SAME_FACE_MAX_DROPS, cO as ScanEvent, cP as ScanLayout, cQ as ScanNotice, cR as ScanPhase, cS as ScanReport, cT as ScanSide, cU as ScanState, cV as SubmitExecutor, cW as TEXT_LOCK_DEFAULTS, cX as TRANSPORT_REPLAY_ATTEMPTS, cY as TRANSPORT_REPLAY_DELAY_MS, cZ as VerificationInternals, c_ as analyzeDocFrame, c$ as analyzeGuide, d0 as aspectBand, d1 as aspectFits, d2 as buildDeviceReadHint, d3 as coverPointToVideo, d4 as createDocumentCaptureInternal, d5 as createFaceLandmarker, d6 as createLivePhotoKit, d7 as createLivenessCaptureInternal, d8 as createPortraitCaptureInternal, d9 as createVerificationInternal, da as docZoomFor, db as encodeDocumentImage, dc as facesOf, dd as feedbackVoteOf, de as focusOk, df as guideQuad, dg as guideRegionInFrame, dh as initialScanState, di as mapEngineState, dj as mapErrorKind, dk as mapGuidanceHint, dl as nextScanState, dm as observePortraitFrame, dn as openDocCamera, dp as passportBandOf, dq as portraitMatchStep, dr as preloadedDetectorFactory, ds as quadAreaFrac, dt as quadBounds, du as quadIou, dv as quadTiltRatio, dw as randomUuid, dx as readStoredLens, dy as resetLivenessAssetsForTests, dz as resolveDocCameraTuning, dA as resolveDocShutterTuning, dB as resolveGuideLockTuning, dC as runLivenessFlow, dD as runSubmission, dE as scannerFormatFor, dF as setPreloadLoaderForTests, dG as settledHint, dH as singleShotFocusAt, dI as specularFraction, dJ as supportsFocusMode, dK as warmDocDetector, dL as writeStoredLens } from '../create-verification-DnyHCSu6.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-BsZ038gI.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 LIVE_MRZ_DEFAULTS, cj as LIVE_PHOTO_IDLE_MS, ck as LIVE_PHOTO_MAX_HZ, cl as LandmarkedFace, cm as LandmarkerLike, cn as LensSource, co as LightingStatus, cp as LiveMrzCapture, cq as LiveMrzState, cr as LivePhotoGate, cs as LivePhotoKit, ct as LivePhotoKitInternals, cu as LivePhotoKitOptions, cv as LivePhotoStill, cw as LivenessCaptureInternalHandle, cx as LivenessCaptureInternals, cy as LivenessFlowDeps, cz as LivenessFlowOutcome, cA as MANUAL_SHUTTER_MS, cB as MR_DOC_CATALOG, cC as NO_REPORT_MS, cD as OpenDocCameraDeps, cE as PORTRAIT_JPEG_QUALITY, cF as PRELOAD_BLAZE_INIT_TIMEOUT_MS, cG as PRELOAD_BUDGET_MS, cH as PROCESSING_POLL_DELAY_MS, cI as PROCESSING_POLL_MAX, cJ as PortraitCaptureController, cK as PortraitCaptureInternals, cL as REGISTRY_RETRY_DELAY_MS, cM as ReticleType, cN as SAME_FACE_MAX_DROPS, cO as ScanEvent, cP as ScanLayout, cQ as ScanNotice, cR as ScanPhase, cS as ScanReport, cT as ScanSide, cU as ScanState, cV as SubmitExecutor, cW as TEXT_LOCK_DEFAULTS, cX as TRANSPORT_REPLAY_ATTEMPTS, cY as TRANSPORT_REPLAY_DELAY_MS, cZ as VerificationInternals, c_ as analyzeDocFrame, c$ as analyzeGuide, d0 as aspectBand, d1 as aspectFits, d2 as buildDeviceReadHint, d3 as coverPointToVideo, d4 as createDocumentCaptureInternal, d5 as createFaceLandmarker, d6 as createLivePhotoKit, d7 as createLivenessCaptureInternal, d8 as createPortraitCaptureInternal, d9 as createVerificationInternal, da as docZoomFor, db as encodeDocumentImage, dc as facesOf, dd as feedbackVoteOf, de as focusOk, df as guideQuad, dg as guideRegionInFrame, dh as initialScanState, di as mapEngineState, dj as mapErrorKind, dk as mapGuidanceHint, dl as nextScanState, dm as observePortraitFrame, dn as openDocCamera, dp as passportBandOf, dq as portraitMatchStep, dr as preloadedDetectorFactory, ds as quadAreaFrac, dt as quadBounds, du as quadIou, dv as quadTiltRatio, dw as randomUuid, dx as readStoredLens, dy as resetLivenessAssetsForTests, dz as resolveDocCameraTuning, dA as resolveDocShutterTuning, dB as resolveGuideLockTuning, dC as runLivenessFlow, dD as runSubmission, dE as scannerFormatFor, dF as setPreloadLoaderForTests, dG as settledHint, dH as singleShotFocusAt, dI as specularFraction, dJ as supportsFocusMode, dK as warmDocDetector, dL as writeStoredLens } from '../create-verification-BsZ038gI.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-CVqpMNGA.cjs';
4
- import { S as HostedSessionView, h as CheckType, am as PlanStepView } from '../types-DwfyBTte.cjs';
5
- export { aY as ICAO_FALLBACK, aS as IcaoCaptureTuning, aZ as IcaoProfile, a_ as ResolvedIcaoTuning, a$ as resolveIcaoTuning } from '../types-DwfyBTte.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-BFlSZYCZ.cjs';
4
+ import { S as HostedSessionView, h as CheckType, am as PlanStepView } from '../types-ChKVytm_.cjs';
5
+ export { aY as ICAO_FALLBACK, aS as IcaoCaptureTuning, aZ as IcaoProfile, a_ as ResolvedIcaoTuning, a$ as resolveIcaoTuning } from '../types-ChKVytm_.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-Bw0Fxd30.cjs';
7
7
  import '../detect-worker-CHqsPJoM.cjs';
8
- import '../capture-session-v3-TJL-0Muv.cjs';
8
+ import '../capture-session-v3-DD-MXSU4.cjs';
9
9
 
10
10
  /** At most this many ranked lenses are tried (each costs a camera reopen). */
11
11
  declare const LENS_TRY_MAX = 3;
@@ -368,10 +368,12 @@ interface ResultOptions {
368
368
  declare const TURNSTILE_SCRIPT_SRC = "https://challenges.cloudflare.com/turnstile/v0/api.js";
369
369
  /**
370
370
  * Bound on a single execute round-trip (challenge fetch + solve). A healthy
371
- * invisible challenge settles in a few seconds; a stalled one is retried once by
372
- * the liveness submission, so a stall costs about this long, not a full minute.
371
+ * invisible challenge settles in a few seconds, but on slow phones and networks
372
+ * it routinely takes 10 to 20 s: 10 s failed a third of real sessions
373
+ * (incident 2026-11-10), so the bound is 30 s. A failed or timed-out challenge
374
+ * is retried once on a fresh widget.
373
375
  */
374
- declare const TURNSTILE_EXECUTE_TIMEOUT_MS = 10000;
376
+ declare const TURNSTILE_EXECUTE_TIMEOUT_MS = 30000;
375
377
  interface TurnstileRenderParams {
376
378
  sitekey: string;
377
379
  callback: (token: string) => void;
@@ -404,9 +406,11 @@ interface ExecuteTurnstileOptions {
404
406
  }
405
407
  /**
406
408
  * Run one invisible execute-mode challenge on the kept widget and resolve its
407
- * token. Rejects on challenge error, on `signal` abort, or after
408
- * {@link TURNSTILE_EXECUTE_TIMEOUT_MS} — the verification maps a failure to
409
- * `result {status:'unavailable', reason:'attestation'}` after one retry.
409
+ * token. A challenge error, a load/render failure or a challenge that does not
410
+ * settle within the timeout removes the widget and runs the challenge ONCE more
411
+ * on a freshly rendered widget; only then does the promise reject. An abort
412
+ * (`signal`) rejects at once, without the second attempt. The verification
413
+ * submits without a token when this rejects, so the server decides.
410
414
  */
411
415
  declare function executeTurnstile(siteKey: string, opts?: ExecuteTurnstileOptions): Promise<string>;
412
416
 
@@ -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-DoISHOqL.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 LIVE_MRZ_DEFAULTS, cj as LIVE_PHOTO_IDLE_MS, ck as LIVE_PHOTO_MAX_HZ, cl as LandmarkedFace, cm as LandmarkerLike, cn as LensSource, co as LightingStatus, cp as LiveMrzCapture, cq as LiveMrzState, cr as LivePhotoGate, cs as LivePhotoKit, ct as LivePhotoKitInternals, cu as LivePhotoKitOptions, cv as LivePhotoStill, cw as LivenessCaptureInternalHandle, cx as LivenessCaptureInternals, cy as LivenessFlowDeps, cz as LivenessFlowOutcome, cA as MANUAL_SHUTTER_MS, cB as MR_DOC_CATALOG, cC as NO_REPORT_MS, cD as OpenDocCameraDeps, cE as PORTRAIT_JPEG_QUALITY, cF as PRELOAD_BLAZE_INIT_TIMEOUT_MS, cG as PRELOAD_BUDGET_MS, cH as PROCESSING_POLL_DELAY_MS, cI as PROCESSING_POLL_MAX, cJ as PortraitCaptureController, cK as PortraitCaptureInternals, cL as REGISTRY_RETRY_DELAY_MS, cM as ReticleType, cN as SAME_FACE_MAX_DROPS, cO as ScanEvent, cP as ScanLayout, cQ as ScanNotice, cR as ScanPhase, cS as ScanReport, cT as ScanSide, cU as ScanState, cV as SubmitExecutor, cW as TEXT_LOCK_DEFAULTS, cX as TRANSPORT_REPLAY_ATTEMPTS, cY as TRANSPORT_REPLAY_DELAY_MS, cZ as VerificationInternals, c_ as analyzeDocFrame, c$ as analyzeGuide, d0 as aspectBand, d1 as aspectFits, d2 as buildDeviceReadHint, d3 as coverPointToVideo, d4 as createDocumentCaptureInternal, d5 as createFaceLandmarker, d6 as createLivePhotoKit, d7 as createLivenessCaptureInternal, d8 as createPortraitCaptureInternal, d9 as createVerificationInternal, da as docZoomFor, db as encodeDocumentImage, dc as facesOf, dd as feedbackVoteOf, de as focusOk, df as guideQuad, dg as guideRegionInFrame, dh as initialScanState, di as mapEngineState, dj as mapErrorKind, dk as mapGuidanceHint, dl as nextScanState, dm as observePortraitFrame, dn as openDocCamera, dp as passportBandOf, dq as portraitMatchStep, dr as preloadedDetectorFactory, ds as quadAreaFrac, dt as quadBounds, du as quadIou, dv as quadTiltRatio, dw as randomUuid, dx as readStoredLens, dy as resetLivenessAssetsForTests, dz as resolveDocCameraTuning, dA as resolveDocShutterTuning, dB as resolveGuideLockTuning, dC as runLivenessFlow, dD as runSubmission, dE as scannerFormatFor, dF as setPreloadLoaderForTests, dG as settledHint, dH as singleShotFocusAt, dI as specularFraction, dJ as supportsFocusMode, dK as warmDocDetector, dL as writeStoredLens } from '../create-verification-DoISHOqL.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-CfSZiPSN.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 LIVE_MRZ_DEFAULTS, cj as LIVE_PHOTO_IDLE_MS, ck as LIVE_PHOTO_MAX_HZ, cl as LandmarkedFace, cm as LandmarkerLike, cn as LensSource, co as LightingStatus, cp as LiveMrzCapture, cq as LiveMrzState, cr as LivePhotoGate, cs as LivePhotoKit, ct as LivePhotoKitInternals, cu as LivePhotoKitOptions, cv as LivePhotoStill, cw as LivenessCaptureInternalHandle, cx as LivenessCaptureInternals, cy as LivenessFlowDeps, cz as LivenessFlowOutcome, cA as MANUAL_SHUTTER_MS, cB as MR_DOC_CATALOG, cC as NO_REPORT_MS, cD as OpenDocCameraDeps, cE as PORTRAIT_JPEG_QUALITY, cF as PRELOAD_BLAZE_INIT_TIMEOUT_MS, cG as PRELOAD_BUDGET_MS, cH as PROCESSING_POLL_DELAY_MS, cI as PROCESSING_POLL_MAX, cJ as PortraitCaptureController, cK as PortraitCaptureInternals, cL as REGISTRY_RETRY_DELAY_MS, cM as ReticleType, cN as SAME_FACE_MAX_DROPS, cO as ScanEvent, cP as ScanLayout, cQ as ScanNotice, cR as ScanPhase, cS as ScanReport, cT as ScanSide, cU as ScanState, cV as SubmitExecutor, cW as TEXT_LOCK_DEFAULTS, cX as TRANSPORT_REPLAY_ATTEMPTS, cY as TRANSPORT_REPLAY_DELAY_MS, cZ as VerificationInternals, c_ as analyzeDocFrame, c$ as analyzeGuide, d0 as aspectBand, d1 as aspectFits, d2 as buildDeviceReadHint, d3 as coverPointToVideo, d4 as createDocumentCaptureInternal, d5 as createFaceLandmarker, d6 as createLivePhotoKit, d7 as createLivenessCaptureInternal, d8 as createPortraitCaptureInternal, d9 as createVerificationInternal, da as docZoomFor, db as encodeDocumentImage, dc as facesOf, dd as feedbackVoteOf, de as focusOk, df as guideQuad, dg as guideRegionInFrame, dh as initialScanState, di as mapEngineState, dj as mapErrorKind, dk as mapGuidanceHint, dl as nextScanState, dm as observePortraitFrame, dn as openDocCamera, dp as passportBandOf, dq as portraitMatchStep, dr as preloadedDetectorFactory, ds as quadAreaFrac, dt as quadBounds, du as quadIou, dv as quadTiltRatio, dw as randomUuid, dx as readStoredLens, dy as resetLivenessAssetsForTests, dz as resolveDocCameraTuning, dA as resolveDocShutterTuning, dB as resolveGuideLockTuning, dC as runLivenessFlow, dD as runSubmission, dE as scannerFormatFor, dF as setPreloadLoaderForTests, dG as settledHint, dH as singleShotFocusAt, dI as specularFraction, dJ as supportsFocusMode, dK as warmDocDetector, dL as writeStoredLens } from '../create-verification-CfSZiPSN.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-CVqpMNGA.js';
4
- import { S as HostedSessionView, h as CheckType, am as PlanStepView } from '../types-DwfyBTte.js';
5
- export { aY as ICAO_FALLBACK, aS as IcaoCaptureTuning, aZ as IcaoProfile, a_ as ResolvedIcaoTuning, a$ as resolveIcaoTuning } from '../types-DwfyBTte.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-lZ_fHE7k.js';
4
+ import { S as HostedSessionView, h as CheckType, am as PlanStepView } from '../types-ChKVytm_.js';
5
+ export { aY as ICAO_FALLBACK, aS as IcaoCaptureTuning, aZ as IcaoProfile, a_ as ResolvedIcaoTuning, a$ as resolveIcaoTuning } from '../types-ChKVytm_.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-BrnPW_gd.js';
7
7
  import '../detect-worker-CHqsPJoM.js';
8
- import '../capture-session-v3-CkcuPKSD.js';
8
+ import '../capture-session-v3-C-Q-21Fm.js';
9
9
 
10
10
  /** At most this many ranked lenses are tried (each costs a camera reopen). */
11
11
  declare const LENS_TRY_MAX = 3;
@@ -368,10 +368,12 @@ interface ResultOptions {
368
368
  declare const TURNSTILE_SCRIPT_SRC = "https://challenges.cloudflare.com/turnstile/v0/api.js";
369
369
  /**
370
370
  * Bound on a single execute round-trip (challenge fetch + solve). A healthy
371
- * invisible challenge settles in a few seconds; a stalled one is retried once by
372
- * the liveness submission, so a stall costs about this long, not a full minute.
371
+ * invisible challenge settles in a few seconds, but on slow phones and networks
372
+ * it routinely takes 10 to 20 s: 10 s failed a third of real sessions
373
+ * (incident 2026-11-10), so the bound is 30 s. A failed or timed-out challenge
374
+ * is retried once on a fresh widget.
373
375
  */
374
- declare const TURNSTILE_EXECUTE_TIMEOUT_MS = 10000;
376
+ declare const TURNSTILE_EXECUTE_TIMEOUT_MS = 30000;
375
377
  interface TurnstileRenderParams {
376
378
  sitekey: string;
377
379
  callback: (token: string) => void;
@@ -404,9 +406,11 @@ interface ExecuteTurnstileOptions {
404
406
  }
405
407
  /**
406
408
  * Run one invisible execute-mode challenge on the kept widget and resolve its
407
- * token. Rejects on challenge error, on `signal` abort, or after
408
- * {@link TURNSTILE_EXECUTE_TIMEOUT_MS} — the verification maps a failure to
409
- * `result {status:'unavailable', reason:'attestation'}` after one retry.
409
+ * token. A challenge error, a load/render failure or a challenge that does not
410
+ * settle within the timeout removes the widget and runs the challenge ONCE more
411
+ * on a freshly rendered widget; only then does the promise reject. An abort
412
+ * (`signal`) rejects at once, without the second attempt. The verification
413
+ * submits without a token when this rejects, so the server decides.
410
414
  */
411
415
  declare function executeTurnstile(siteKey: string, opts?: ExecuteTurnstileOptions): Promise<string>;
412
416
 
@@ -1 +1 @@
1
- import{c as me,d as _e,e as Le,h as Te,i as Re,j as Se}from"../chunk-TJUM65FN.js";import{a as W,b as ve,c as ge,d as be,e as Ge,f as he,g as Ue,h as Ye,i as He,j as k,k as K,l as w,m as X,n as Z,o as J,p as Q,q as j,r as q,s as $,t as ee,u as te,x as re}from"../chunk-HYGINGDC.js";import{a as Bt,b as Vt,c as Xt,d as Zt,e as Jt,f as Qt,g as jt,h as qt,i as $t,j as ne,k as ae,m as se,n as Ee}from"../chunk-VWGKUQ3C.js";import{a as Ft,b as Nt,c as vt,d as gt,e as bt,f as Gt,g as ht,h as Ut,i as Yt,j as Ht,k as Wt,l as kt,m as Kt}from"../chunk-53POX7U4.js";import{a as wt,b as zt}from"../chunk-33KKMPJ5.js";import{b as oe,c as pe,d as ie}from"../chunk-CJHMFPL6.js";import"../chunk-RI3E7GBN.js";import"../chunk-GI3UFGRQ.js";import{a as D,b as d,c as M,d as F,e as N}from"../chunk-Z2BIZYZQ.js";import{A as ut,B as It,C as Ot,D as xt,E as At,F as Ct,G as Pt,H as Dt,I as dt,J as Mt,a as Ke,b as we,c as ze,d as je,e as qe,f as $e,g as et,h as tt,i as rt,j as ot,k as pt,l as it,m as nt,n as at,o as st,p as Et,q as mt,r as _t,s as Lt,t as Tt,u as Rt,v as St,w as ct,x as lt,y as yt,z as ft}from"../chunk-Z5D7SZUW.js";import{a as v,b as g,c as b,d as G,e as h,f as U,g as Y,h as H,i as z,j as B,l as V}from"../chunk-G6LKLN4U.js";import{a as We,b as ke}from"../chunk-SMKCBUJL.js";import{a as Be,b as Ve,c as Xe,d as Ze,e as Je,f as Qe}from"../chunk-MXWLCDFX.js";import{a as Pe,b as De,c as de,d as Me,e as Fe,f as Ne}from"../chunk-TDLIXFDT.js";import{b as le,c as ye,d as fe,e as ue,g as Ie,h as er,i as tr,j as rr,k as or,l as pr,m as ir,s as Oe}from"../chunk-32ELI5BZ.js";import{A as C,B as P,i as R,j as S,k as c,l,o as y,u as f,v as u,w as I,x as O,y as x,z as A}from"../chunk-PZYVSLPG.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 T}from"../chunk-RALQBQPT.js";import"../chunk-7QZWBDI5.js";import"../chunk-7XT5YDSC.js";import"../chunk-SX7TUC3V.js";import"../chunk-POIQGEZM.js";import{p as xe,q as Ae,r as Ce}from"../chunk-CPUECYAJ.js";import"../chunk-FPXL63KZ.js";import"../chunk-2KTSNAVR.js";import{c as e,d as t,f as r,g as o,h as p}from"../chunk-TSA6GHUG.js";import"../chunk-BATJN3VQ.js";import"../chunk-FSSMUAKC.js";import{a as ce}from"../chunk-DFTCAWMP.js";import"../chunk-DK5YPBDQ.js";export{ne as ANALYSIS_LONG_EDGE,Pe as ASPECT_BANDS,A as AttestationError,Ue as BLUR_REFUSE_SHARPNESS_MAX,Mt as CAPTURE_CANDIDATE_SPACING_MS,dt as CAPTURE_EXTRA_CANDIDATES,p as CENTERED_FACTOR,r as CIRCLE_RADIUS_FACTOR,Bt as CLIPPED_LUMA,f as CLIP_MIME_ALLOWLIST,Pt as CaptureSessionDoc,tr as DOCUMENT_TYPE_ORDER,je as DOC_ANALYSIS_DEFAULTS,It as DOC_BLACK_FRAME_LUMA,Ot as DOC_BLACK_FRAME_TICKS,xt as DOC_CADENCE_HZ,tt as DOC_CAMERA_TUNING_DEFAULTS,Fe as DOC_CATALOG,Be as DOC_DETECT_WIDTH,Ke as DOC_FEEDBACK_STATES,ut as DOC_FIRST_FRAME_MS,Ve as DOC_GATE_V1_DEFAULTS,At as DOC_SHUTTER_DEFAULTS,V as DocAssist,ze as DocFeedbackAggregator,Qe as DocGateV1,Lt as EMPTY_GUIDE_METRICS,ge as FLIP_FILL_MIN,ve as FLIP_GAP_MS,be as FLIP_TIMEOUT_MS,ct as GUIDE_LOCK_DEFAULTS,yt as GuideLock,gt as ICAO_CANVAS,wt as ICAO_FALLBACK,Ut as ICAO_GATE_CRITERIA,Vt as ICAO_SHARP_REF,O as INFERENCE_RETRY_ATTEMPTS,x as INFERENCE_RETRY_DEFAULT_S,o as IN_CIRCLE_FACTOR,er as ISSUER_CODES,oe as LANDMARKER_MODEL,ot as LENS_STORAGE_KEY,xe as LENS_TRY_MAX,B as LIVE_MRZ_DEFAULTS,_e as LIVE_PHOTO_IDLE_MS,me as LIVE_PHOTO_MAX_HZ,Ge as MANUAL_SHUTTER_MS,We as MRZ_BAND_DEFAULTS,Me as MR_DOC_CATALOG,he as NO_REPORT_MS,ce as OCR_ASSET_SET,Re as OTP_RESEND_COOLDOWN_MS,ae as PORTRAIT_JPEG_QUALITY,i as PRELOAD_BLAZE_INIT_TIMEOUT_MS,n as PRELOAD_BUDGET_MS,Te as PROCESSING_BACKOFF_MS,ye as PROCESSING_POLL_DELAY_MS,fe as PROCESSING_POLL_MAX,b as REGION_PAD,le as REGISTRY_RETRY_DELAY_MS,te as SAME_FACE_MAX_DROPS,v as SHARPNESS_LONG_EDGE,z as TEXT_LOCK_DEFAULTS,u as TRANSPORT_REPLAY_ATTEMPTS,I as TRANSPORT_REPLAY_DELAY_MS,d as TURNSTILE_EXECUTE_TIMEOUT_MS,D as TURNSTILE_SCRIPT_SRC,J as WEB_OCR_ENGINE,or as acceptedIssuers,rr as acceptedTypesFor,et as analyzeDocFrame,Rt as analyzeGuide,De as aspectBand,de as aspectFits,jt as backgroundStats,q as browserFamily,X as buildDeviceReadHint,K as classifyCardSide,k as classifyCardSideWith,st as coverPointToVideo,re as createDocumentCaptureInternal,ie as createFaceLandmarker,Kt as createIcaoGate,Le as createLivePhotoKit,T as createLivenessCaptureInternal,Ee as createPortraitCaptureInternal,Se as createStepRunner,Ie as createVerificationInternal,h as cropImage,e as detectFormFactor,t as detectIsMobile,ke as detectMrzBand,Et as docZoomFor,W as encodeDocumentImage,N as executeTurnstile,vt as eyeLineRoll,Ht as eyeOpenness,Qt as eyeSpecular,Ft as faceGeometry,Jt as faceLighting,qt as faceSharpness,pe as facesOf,we as feedbackVoteOf,ir as flagOf,mt as focusOk,ee as formatMismatch,c as frontierStep,St as guideQuad,Tt as guideRegionInFrame,$t as icaoPixelStats,bt as icaoWindow,Ye as initialScanState,R as isExecutable,S as isTerminalView,Yt as judgeIcao,Ae as lensKindOf,$ as liveMrzWireReport,F as loadTurnstile,Xt as lumaPlane,_ as mapEngineState,L as mapErrorKind,m as mapGuidanceHint,y as mapSessionResult,H as measureBitmapSharpness,Y as measureRegionSharpness,He as nextScanState,se as observePortraitFrame,_t as openDocCamera,Dt as passportBandOf,Wt as percentile,g as photoSharpness,ht as portraitCropRegion,Oe as portraitMatchStep,Nt as poseFromMatrix,E as preloadedDetectorFactory,Xe as quadAreaFrac,Je as quadBounds,Ze as quadIou,$e as quadTiltRatio,ue as randomUuid,Ce as rankBackCameras,pt as readStoredLens,Zt as regionStats,s as resetLivenessAssetsForTests,M as resetTurnstileForTests,U as resizeLongEdge,pr as resolveAcceptedDocuments,rt as resolveDocCameraTuning,Ct as resolveDocShutterTuning,lt as resolveGuideLockTuning,zt as resolveIcaoTuning,Q as resolveWebOcrPlan,P as runLivenessFlow,C as runSubmission,Ne as scannerFormatFor,kt as scoreFrame,a as setPreloadLoaderForTests,Z as settledHint,at as singleShotFocusAt,qe as specularFraction,j as startWebOcr,l as stepOf,G as stillRegionOf,w as stillToImageData,nt as supportsFocusMode,ft as warmDocDetector,Gt as windowOverflow,it as writeStoredLens};
1
+ import{c as me,d as _e,e as Le,h as Te,i as Re,j as Se}from"../chunk-TTD5LQG2.js";import{a as W,b as ve,c as ge,d as be,e as Ge,f as he,g as Ue,h as Ye,i as He,j as k,k as K,l as w,m as X,n as Z,o as J,p as Q,q as j,r as q,s as $,t as ee,u as te,x as re}from"../chunk-FSJPKOCC.js";import{a as Bt,b as Vt,c as Xt,d as Zt,e as Jt,f as Qt,g as jt,h as qt,i as $t,j as ne,k as ae,m as se,n as Ee}from"../chunk-ACP2ZOVW.js";import{a as Ft,b as Nt,c as vt,d as gt,e as bt,f as Gt,g as ht,h as Ut,i as Yt,j as Ht,k as Wt,l as kt,m as Kt}from"../chunk-25TEJBSB.js";import{a as wt,b as zt}from"../chunk-XLYHT4ZQ.js";import{b as oe,c as pe,d as ie}from"../chunk-YH7DR3PF.js";import"../chunk-TYJA2XJR.js";import"../chunk-LL3YYUKR.js";import{a as D,b as d,c as M,d as F,e as N}from"../chunk-V4VFZ7NQ.js";import{A as ut,B as It,C as Ot,D as xt,E as At,F as Ct,G as Pt,H as Dt,I as dt,J as Mt,a as Ke,b as we,c as ze,d as je,e as qe,f as $e,g as et,h as tt,i as rt,j as ot,k as pt,l as it,m as nt,n as at,o as st,p as Et,q as mt,r as _t,s as Lt,t as Tt,u as Rt,v as St,w as ct,x as lt,y as yt,z as ft}from"../chunk-H6REKPZ4.js";import{a as v,b as g,c as b,d as G,e as h,f as U,g as Y,h as H,i as z,j as B,l as V}from"../chunk-EKEHAFEK.js";import{a as We,b as ke}from"../chunk-NYRFUVAR.js";import{a as Be,b as Ve,c as Xe,d as Ze,e as Je,f as Qe}from"../chunk-AXJ2VWIK.js";import{a as Pe,b as De,c as de,d as Me,e as Fe,f as Ne}from"../chunk-BPKDXDDH.js";import{b as le,c as ye,d as fe,e as ue,g as Ie,h as er,i as tr,j as rr,k as or,l as pr,m as ir,s as Oe}from"../chunk-PVSYKKMP.js";import{A as C,B as P,i as R,j as S,k as c,l,o as y,u as f,v as u,w as I,x as O,y as x,z as A}from"../chunk-6RJTKX5I.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 T}from"../chunk-NHXLIDQJ.js";import"../chunk-CPK5FYNJ.js";import"../chunk-J5IQ6THP.js";import"../chunk-RJZ5SARR.js";import"../chunk-V5P5P3HY.js";import{p as xe,q as Ae,r as Ce}from"../chunk-7KXJEF7P.js";import"../chunk-FK2DJADA.js";import"../chunk-ZGDUIZC2.js";import{c as e,d as t,f as r,g as o,h as p}from"../chunk-CDDYFUER.js";import"../chunk-XK4CCTLL.js";import"../chunk-UBRNDTTD.js";import{a as ce}from"../chunk-VP37FW6C.js";import"../chunk-LYYLXNA4.js";export{ne as ANALYSIS_LONG_EDGE,Pe as ASPECT_BANDS,A as AttestationError,Ue as BLUR_REFUSE_SHARPNESS_MAX,Mt as CAPTURE_CANDIDATE_SPACING_MS,dt as CAPTURE_EXTRA_CANDIDATES,p as CENTERED_FACTOR,r as CIRCLE_RADIUS_FACTOR,Bt as CLIPPED_LUMA,f as CLIP_MIME_ALLOWLIST,Pt as CaptureSessionDoc,tr as DOCUMENT_TYPE_ORDER,je as DOC_ANALYSIS_DEFAULTS,It as DOC_BLACK_FRAME_LUMA,Ot as DOC_BLACK_FRAME_TICKS,xt as DOC_CADENCE_HZ,tt as DOC_CAMERA_TUNING_DEFAULTS,Fe as DOC_CATALOG,Be as DOC_DETECT_WIDTH,Ke as DOC_FEEDBACK_STATES,ut as DOC_FIRST_FRAME_MS,Ve as DOC_GATE_V1_DEFAULTS,At as DOC_SHUTTER_DEFAULTS,V as DocAssist,ze as DocFeedbackAggregator,Qe as DocGateV1,Lt as EMPTY_GUIDE_METRICS,ge as FLIP_FILL_MIN,ve as FLIP_GAP_MS,be as FLIP_TIMEOUT_MS,ct as GUIDE_LOCK_DEFAULTS,yt as GuideLock,gt as ICAO_CANVAS,wt as ICAO_FALLBACK,Ut as ICAO_GATE_CRITERIA,Vt as ICAO_SHARP_REF,O as INFERENCE_RETRY_ATTEMPTS,x as INFERENCE_RETRY_DEFAULT_S,o as IN_CIRCLE_FACTOR,er as ISSUER_CODES,oe as LANDMARKER_MODEL,ot as LENS_STORAGE_KEY,xe as LENS_TRY_MAX,B as LIVE_MRZ_DEFAULTS,_e as LIVE_PHOTO_IDLE_MS,me as LIVE_PHOTO_MAX_HZ,Ge as MANUAL_SHUTTER_MS,We as MRZ_BAND_DEFAULTS,Me as MR_DOC_CATALOG,he as NO_REPORT_MS,ce as OCR_ASSET_SET,Re as OTP_RESEND_COOLDOWN_MS,ae as PORTRAIT_JPEG_QUALITY,i as PRELOAD_BLAZE_INIT_TIMEOUT_MS,n as PRELOAD_BUDGET_MS,Te as PROCESSING_BACKOFF_MS,ye as PROCESSING_POLL_DELAY_MS,fe as PROCESSING_POLL_MAX,b as REGION_PAD,le as REGISTRY_RETRY_DELAY_MS,te as SAME_FACE_MAX_DROPS,v as SHARPNESS_LONG_EDGE,z as TEXT_LOCK_DEFAULTS,u as TRANSPORT_REPLAY_ATTEMPTS,I as TRANSPORT_REPLAY_DELAY_MS,d as TURNSTILE_EXECUTE_TIMEOUT_MS,D as TURNSTILE_SCRIPT_SRC,J as WEB_OCR_ENGINE,or as acceptedIssuers,rr as acceptedTypesFor,et as analyzeDocFrame,Rt as analyzeGuide,De as aspectBand,de as aspectFits,jt as backgroundStats,q as browserFamily,X as buildDeviceReadHint,K as classifyCardSide,k as classifyCardSideWith,st as coverPointToVideo,re as createDocumentCaptureInternal,ie as createFaceLandmarker,Kt as createIcaoGate,Le as createLivePhotoKit,T as createLivenessCaptureInternal,Ee as createPortraitCaptureInternal,Se as createStepRunner,Ie as createVerificationInternal,h as cropImage,e as detectFormFactor,t as detectIsMobile,ke as detectMrzBand,Et as docZoomFor,W as encodeDocumentImage,N as executeTurnstile,vt as eyeLineRoll,Ht as eyeOpenness,Qt as eyeSpecular,Ft as faceGeometry,Jt as faceLighting,qt as faceSharpness,pe as facesOf,we as feedbackVoteOf,ir as flagOf,mt as focusOk,ee as formatMismatch,c as frontierStep,St as guideQuad,Tt as guideRegionInFrame,$t as icaoPixelStats,bt as icaoWindow,Ye as initialScanState,R as isExecutable,S as isTerminalView,Yt as judgeIcao,Ae as lensKindOf,$ as liveMrzWireReport,F as loadTurnstile,Xt as lumaPlane,_ as mapEngineState,L as mapErrorKind,m as mapGuidanceHint,y as mapSessionResult,H as measureBitmapSharpness,Y as measureRegionSharpness,He as nextScanState,se as observePortraitFrame,_t as openDocCamera,Dt as passportBandOf,Wt as percentile,g as photoSharpness,ht as portraitCropRegion,Oe as portraitMatchStep,Nt as poseFromMatrix,E as preloadedDetectorFactory,Xe as quadAreaFrac,Je as quadBounds,Ze as quadIou,$e as quadTiltRatio,ue as randomUuid,Ce as rankBackCameras,pt as readStoredLens,Zt as regionStats,s as resetLivenessAssetsForTests,M as resetTurnstileForTests,U as resizeLongEdge,pr as resolveAcceptedDocuments,rt as resolveDocCameraTuning,Ct as resolveDocShutterTuning,lt as resolveGuideLockTuning,zt as resolveIcaoTuning,Q as resolveWebOcrPlan,P as runLivenessFlow,C as runSubmission,Ne as scannerFormatFor,kt as scoreFrame,a as setPreloadLoaderForTests,Z as settledHint,at as singleShotFocusAt,qe as specularFraction,j as startWebOcr,l as stepOf,G as stillRegionOf,w as stillToImageData,nt as supportsFocusMode,ft as warmDocDetector,Gt as windowOverflow,it as writeStoredLens};
@@ -1 +1 @@
1
- import{a,b,c,d}from"./chunk-CJHMFPL6.js";export{a as LANDMARKER_INIT_TIMEOUT_MS,b as LANDMARKER_MODEL,d as createFaceLandmarker,c as facesOf};
1
+ import{a,b,c,d}from"./chunk-YH7DR3PF.js";export{a as LANDMARKER_INIT_TIMEOUT_MS,b as LANDMARKER_MODEL,d as createFaceLandmarker,c as facesOf};
@@ -0,0 +1 @@
1
+ import{a,b}from"./chunk-NYRFUVAR.js";export{a as MRZ_BAND_DEFAULTS,b as detectMrzBand};
@@ -1 +1 @@
1
- import{e as Z}from"./chunk-A3FUGHAH.js";import{a as Q,b as J,e as X,f as E,g as R,j as Y}from"./chunk-TJUM65FN.js";import{x as $}from"./chunk-HYGINGDC.js";import{n as W}from"./chunk-VWGKUQ3C.js";import"./chunk-53POX7U4.js";import"./chunk-33KKMPJ5.js";import"./chunk-CJHMFPL6.js";import"./chunk-RI3E7GBN.js";import"./chunk-GI3UFGRQ.js";import{F as N,i as z,x as K}from"./chunk-Z5D7SZUW.js";import"./chunk-G6LKLN4U.js";import"./chunk-SMKCBUJL.js";import"./chunk-MXWLCDFX.js";import"./chunk-TDLIXFDT.js";import{b as O,c as B,q as G,s as j,t as F}from"./chunk-PZYVSLPG.js";import"./chunk-RALQBQPT.js";import"./chunk-7QZWBDI5.js";import"./chunk-7XT5YDSC.js";import"./chunk-SX7TUC3V.js";import"./chunk-POIQGEZM.js";import"./chunk-CPUECYAJ.js";import"./chunk-FPXL63KZ.js";import{c as C,i as q}from"./chunk-2KTSNAVR.js";import"./chunk-TSA6GHUG.js";import{a as H}from"./chunk-BATJN3VQ.js";import"./chunk-FSSMUAKC.js";import"./chunk-DFTCAWMP.js";import"./chunk-DK5YPBDQ.js";var re=2e4,oe=new Set(["media_type_unsupported","media_type_mismatch"]),ee=new Set(["document_upload_not_allowed","portrait_source_not_allowed","uploaded_media_not_allowed"]);function te(e){let c=null,m=Promise.resolve(),d=!1,w=null,M=null,h=!1,D=null,g=!1,_=!1,k=()=>{c?.controller.handle.destroy(),c=null},v=()=>{let t=e.currentView(),r=t===null?null:R(t,{isMobile:e.isMobile()});return r?.kind==="portrait"?r:null},S=()=>{if(e.destroyed())return"self";let t=e.currentView(),r=t===null?void 0:E(t);return r==="self"||r==="assisted"?r:r==="choice"&&e.captureModeSwitch!==void 0?e.captureModeSwitch.pick()??"self":e.cameraMode?.()??j(r??G(t),null)},I=e.captureModeSwitch,x=I===void 0?void 0:{session:()=>{let t=e.currentView();return t!==null&&E(t)==="choice"?"choice":S()},onModeChange:t=>I.choose(t)},T=async(t,r)=>{if(e.destroyed())return;let u=S();r.setFlowState("uploading"),d=!1;let n=null;try{await e.runner().submit("portrait_icao",async(s,y)=>{if(n===null){let f=await F(s,"image","image/jpeg",t.image.size,{engine:"portrait"});await s.uploadToSpaces(f.uploadUrl,t.image,"image/jpeg"),n=(await s.completeMedia(f.key)).key}r.setFlowState("checking");let b={media:{portrait:n},gate:q(t.gate),...t.tuningVersion!==void 0?{tuningVersion:t.tuningVersion}:{},source:"camera",capture:{mode:u,facingMode:t.facingMode}};return s.submitCheck("portrait_icao",b,{idempotencyKey:y})})}catch(s){d=!0,s instanceof C&&ee.has(s.code)&&await e.refreshView?.().catch(()=>{})}if(r.setFlowState("done"),e.destroyed())return;let o=v();(o===null||o.phase!=="capture")&&c?.controller===r&&k(),e.runner().republish()},L=t=>e.runner().submit("face_match",(r,u)=>r.submitCheck("face_match",e.runner().faceProbeSkipped()?{simulatedCapture:!0}:{},{idempotencyKey:u})).then(()=>{},()=>{d=!0,t()}),P=null,V=async t=>{let r=v();if(r===null||r.phase!=="capture"||!r.photo.uploadOffered)throw new RangeError("upload_not_offered");let{prepareUploadFile:u}=await import("./upload-file-UYXOHCRG.js"),n=await u(t,e.uploadInternals);if(e.destroyed())return;k(),d=!1;let o=null;try{await e.runner().submit("portrait_icao",async(s,y)=>{if(o===null){let f=await s.presign("image",n.contentType,n.blob.size,{source:"upload"});await s.uploadToSpaces(f.uploadUrl,n.blob,n.contentType),o=(await s.completeMedia(f.key)).key}let b={media:{portrait:o},source:"upload"};return s.submitCheck("portrait_icao",b,{idempotencyKey:y})})}catch(s){throw s instanceof C&&oe.has(s.code)?new TypeError("unsupported_file"):(s instanceof C&&ee.has(s.code)&&await e.refreshView?.().catch(()=>{}),s)}},i=null,l=t=>{if(i!==null)return i;let r=v();if(r===null||r.phase!=="review")return Promise.reject(new RangeError("no_pending_fix"));let u={fixReview:{accept:t}},n=e.runner().submit("portrait_icao",(o,s)=>o.submitCheck("portrait_icao",u,{idempotencyKey:s})).catch(async o=>{throw o instanceof C&&o.code==="portrait_no_pending_fix"&&await e.refreshView?.().catch(()=>{}),o}).finally(()=>{i=null});return i=n,n},a=t=>{let r=()=>V(t),u=(P===null?r():P.then(r,r)).finally(()=>{P===u&&(P=null)});return P=u,u};return{bind:(t,r)=>{if(t.phase==="review")return k(),{...t,uploadFailed:d,resubmit:()=>Promise.resolve(),capture:()=>{throw new Error("the adjusted photo waits for confirmFix()")},uploadPortrait:()=>Promise.reject(new RangeError("upload_not_offered")),confirmFix:l};if(t.phase==="match")return k(),w!==t.attemptsRemaining&&!d&&(w=t.attemptsRemaining,L(r)),{...t,uploadFailed:d,resubmit:()=>(d=!1,w=t.attemptsRemaining,r(),L(r)),capture:()=>{throw new Error("the portrait was already accepted")},uploadPortrait:()=>Promise.reject(new RangeError("upload_not_offered")),confirmFix:l};if(w=null,t.reuse===!0&&t.phase==="capture")return k(),!g&&D!==t.attemptsRemaining&&(D=t.attemptsRemaining,g=!0,e.runner().submit("portrait_icao",(n,o)=>n.submitCheck("portrait_icao",{},{idempotencyKey:o})).then(()=>{_=!1},()=>{_=!0}).finally(()=>{g=!1,r()})),{kind:"processing",key:"processing",context:t.context,section:t.section,stalled:_&&!g,refresh:()=>(_=!1,D=null,r(),Promise.resolve())};let u=e.keptPortraitInput?.()??null;return u!==null&&(h||u!==M&&t.report===null&&t.reason===void 0&&!t.retakeOnly)?(h||(M=u,h=!0,e.runner().submit("portrait_icao",(n,o)=>n.submitCheck("portrait_icao",u,{idempotencyKey:o})).catch(()=>{}).finally(()=>{h=!1,r()})),{kind:"processing",key:"processing",context:t.context,section:t.section,stalled:!1,refresh:()=>Promise.resolve()}):{...t,uploadFailed:d,resubmit:()=>Promise.resolve(),capture:n=>{if(c!==null&&c.video===n.video)return c.controller.handle;k(),d=!1;let o=W({video:n.video,tuning:t.tuning,tuningVersion:t.tuningVersion,...t.icao!=null?{policy:t.icao.policy}:{},...n.keepScreenAwake!==void 0?{keepScreenAwake:n.keepScreenAwake}:{},...n.assetBaseUrl!==void 0?{assetBaseUrl:n.assetBaseUrl}:{}},e.internals,S,x);c={video:n.video,controller:o};let s=o.handle.destroy;o.handle.destroy=()=>{c?.controller===o&&(c=null),s()},o.handle.on("error",f=>{e.reportCaptureIssue?.(O("portrait",f,0))});let y=!1,b=(f,U)=>{let A=o.gateScores();A!==null&&e.reportGate?.({kind:"portrait_gate",platform:"web",outcome:f,...U!==null?{failing:U}:{},...A})};return o.handle.on("gate",f=>{!y&&!f.ready&&(o.gateScores()?.elapsedMs??0)>=re&&(y=!0,b("stuck",f.failing))}),o.handle.on("captured",f=>{b("captured",null),y=!1,m=m.then(()=>T(f,o)).catch(()=>{})}),o.handle},uploadPortrait:a,confirmFix:l}},destroy:k}}function ne(e){let c=e;if(typeof c.apiOrigin!="string"||typeof c.sessionToken!="string")return;let m=`${c.apiOrigin}/api/v2/hosted/capture-reports`,d=c.sessionToken;return w=>{try{fetch(m,{method:"POST",headers:{"content-type":"application/json","x-session-token":d,"x-sekyro-sdk":`@sekyro/web/${H}`},body:JSON.stringify({reports:w}),keepalive:!0}).catch(()=>{})}catch{}}}function ie(e){let c=e.apiOrigin;return Z("sdk",typeof c=="string"&&/staging|sandbox|localhost/.test(c)?"sandbox":"live")}function Me(e){let c=null,m=null,d=null,w=B(),M=Promise.resolve(),h=()=>{d?.flow.handle.destroy(),d=null},D=async(i,l)=>{if(e.destroyed())return;l.setFlowState("uploading");let a=null,p,t=!1,r=e.currentView()?.documents!==void 0;try{await c.submit("doc_ocr",async(y,b)=>{if(a===null){let f=await F(y,"image","image/jpeg",i.image.size,{engine:"document"});await y.uploadToSpaces(f.uploadUrl,i.image,"image/jpeg"),a=(await y.completeMedia(f.key)).key}return l.setFlowState("checking"),p===void 0&&(p=l.takeDeviceRead(i)),y.submitCheck("doc_ocr",{imageKey:a,side:i.side,...p!==null?{deviceRead:p}:{},...r?{source:"camera"}:{}},{idempotencyKey:b})})}catch{t=!0}finally{l.setFlowState("done")}if(e.destroyed())return;if(t){l.settle(i.side,{ok:!1,issue:"technical"});return}let u=e.currentView(),n=u===null?null:R(u,{isMobile:e.isMobile()});if(n?.kind!=="document"){l.settle(i.side,{ok:!0}),d?.flow===l?h():l.handle.destroy();return}if(n.reason==="document_type_not_accepted"){m=null,d?.flow===l&&h(),c.republish();return}let o=n.acceptedSides;i.side!=="single"&&(o.includes(i.side)||n.reason==="side_missing")&&!(o.includes("recto")&&o.includes("verso"))?(l.settle(i.side,{ok:!0}),m?.documentType!=="passport"&&l.handle.setSide(n.side)):l.settle(i.side,{ok:!1,issue:"reread"})},g=null,_=async i=>{let l=e.currentView(),a=l===null?null:R(l,{isMobile:e.isMobile()});if(l===null||a?.kind!=="document")throw new RangeError("upload_not_offered");if(!a.photo.uploadOffered)throw new RangeError("upload_not_offered");let p=m?.documentType==="passport"?"single":a.side,{prepareUploadFile:t}=await import("./upload-file-UYXOHCRG.js"),r=await t(i,e.uploadInternals);if(e.destroyed())return;h();let u=null;try{await c.submit("doc_ocr",async(n,o)=>{if(u===null){let s=await n.presign("image",r.contentType,r.blob.size,{source:"upload"});await n.uploadToSpaces(s.uploadUrl,r.blob,r.contentType),u=(await n.completeMedia(s.key)).key}return n.submitCheck("doc_ocr",{imageKey:u,side:p,source:"upload"},{idempotencyKey:o})})}catch(n){throw n instanceof C&&(n.code==="media_type_unsupported"||n.code==="media_type_mismatch")?new TypeError("unsupported_file"):(n instanceof C&&(n.code==="document_upload_not_allowed"||n.code==="uploaded_media_not_allowed")&&await e.refreshView().catch(()=>{}),n)}},k=(i,l)=>({...i,uploadDocument:a=>{let p=()=>_(a),t=(g===null?p():g.then(p,p)).finally(()=>{g===t&&(g=null)});return g=t,t},issuer:m?.issuer??null,documentType:m?.documentType??null,captureSide:m===null?null:m.documentType==="passport"?"single":i.side,selectDocument:(a,p)=>{if(!J(i.documents).includes(a)||!Q(i.documents,a).includes(p))throw new RangeError(`${p} from ${a} is not accepted`);(m?.issuer!==a||m.documentType!==p)&&h(),m={issuer:a,documentType:p},l()},capture:a=>{if(m===null)throw new Error("selectDocument() first");if(d!==null&&d.video===a.video)return d.flow.handle;h();let p=m,t=p.documentType==="passport"?"single":i.acceptedSides.length>0?i.side:void 0,r=$({video:a.video,documentType:p.documentType,issuer:p.issuer,...t!==void 0?{side:t}:{},...a.keepScreenAwake!==void 0?{keepScreenAwake:a.keepScreenAwake}:{},...a.liveMrz!==void 0?{liveMrz:a.liveMrz}:{}},{...e.documentInternals??{},...(()=>{let n=e.currentView()?.capture?.document,o=e.documentInternals?.blurRefuseSharpnessMax??n?.scan?.blurRefuseSharpnessMax;return{engineOptions:{camera:z(n?.camera),shutter:N(n?.scan),guideLock:K(n?.guide),...e.documentInternals?.engineOptions??{}},...typeof o=="number"&&Number.isFinite(o)&&o>=0&&o<=1?{blurRefuseSharpnessMax:o}:{}}})(),deferRead:!0,...(()=>{let n=e.currentView();if(n===null||e.documentInternals?.webOcr!==void 0)return{};let o=ne(e.runtime.client);return{webOcr:{captureDocument:n.capture?.document,salt:n.sessionId,baseUrl:ie(e.runtime.client),...o!==void 0?{reports:o}:{}}}})()});d={video:a.video,flow:r};let u=r.handle.destroy;return r.handle.destroy=()=>{d?.flow===r&&(d=null),u()},w.newHandle(),r.handle.on("state",n=>w.note(n)),r.handle.on("error",n=>{w.noteError(),e.reportCaptureIssue?.(O("document",n,w.value))}),r.handle.on("captured",n=>{M=M.then(()=>D(n,r)).catch(()=>{})}),r.handle}}),v=null,S=null,I=new Set,x=e.runtime.client;e.runtime.client=new Proxy(x,{get(i,l){if(l==="submitCheck")return(S??i).submitCheck.bind(S??i);let a=Reflect.get(i,l);return typeof a=="function"?a.bind(i):a}});let T=()=>{v?.destroy(),v=null,S=null},L=i=>{let l=e.currentView(),a=l===null?null:R(l,{isMobile:e.isMobile()});if(l===null||a?.kind!=="liveness"||a.livePhoto?.icao!==!0)return;if(v===null){let u=X({tuning:l.capture?.icao??null,tuningVersion:l.capture?.tuningVersion??null,...a.icao!=null?{policy:a.icao.policy}:{},still:a.livePhoto.still,...i.assetBaseUrl!==void 0?{assetBaseUrl:i.assetBaseUrl}:{}},e.livePhotoInternals);v=u,S=u.decorate(x),u.onGate(n=>{for(let o of I)o(n)})}let p=v,t=e.baseCapture??{},r=t.engineOptions?.telemetry;return{...t,engineOptions:{...t.engineOptions??{},measureQuality:p.engineOptions.measureQuality,telemetry:u=>{r?.(u),p.engineOptions.telemetry(u)}}}},P=te({keptPortraitInput:()=>v?.lastPortraitInput()??null,runner:()=>c,currentView:e.currentView,...e.cameraMode!==void 0?{cameraMode:e.cameraMode}:{},...e.captureModeSwitch!==void 0?{captureModeSwitch:e.captureModeSwitch}:{},destroyed:e.destroyed,isMobile:e.isMobile,...e.portraitInternals!==void 0?{internals:e.portraitInternals}:{},...e.uploadInternals!==void 0?{uploadInternals:e.uploadInternals}:{},refreshView:()=>e.refreshView(),...e.reportCaptureIssue!==void 0?{reportCaptureIssue:e.reportCaptureIssue}:{},reportGate:i=>ne(e.runtime.client)?.([i])}),V=Y({...e,bindDocument:k,bindPortrait:P.bind,stopCameras:()=>{h(),P.destroy(),T(),e.stopLiveness?.()},onLivePhoto:i=>(I.add(i),()=>I.delete(i))});return c=V,{...V,captureInternals:L,destroy:()=>{h(),P.destroy(),T(),I.clear()}}}export{Me as createPlanRunner,ne as reportSink,ie as sdkAssetBase};
1
+ import{e as Z}from"./chunk-HFCVN6AG.js";import{a as Q,b as J,e as X,f as E,g as R,j as Y}from"./chunk-TTD5LQG2.js";import{x as $}from"./chunk-FSJPKOCC.js";import{n as W}from"./chunk-ACP2ZOVW.js";import"./chunk-25TEJBSB.js";import"./chunk-XLYHT4ZQ.js";import"./chunk-YH7DR3PF.js";import"./chunk-TYJA2XJR.js";import"./chunk-LL3YYUKR.js";import{F as N,i as z,x as K}from"./chunk-H6REKPZ4.js";import"./chunk-EKEHAFEK.js";import"./chunk-NYRFUVAR.js";import"./chunk-AXJ2VWIK.js";import"./chunk-BPKDXDDH.js";import{b as O,c as B,q as G,s as j,t as F}from"./chunk-6RJTKX5I.js";import"./chunk-NHXLIDQJ.js";import"./chunk-CPK5FYNJ.js";import"./chunk-J5IQ6THP.js";import"./chunk-RJZ5SARR.js";import"./chunk-V5P5P3HY.js";import"./chunk-7KXJEF7P.js";import"./chunk-FK2DJADA.js";import{c as C,i as q}from"./chunk-ZGDUIZC2.js";import"./chunk-CDDYFUER.js";import{a as H}from"./chunk-XK4CCTLL.js";import"./chunk-UBRNDTTD.js";import"./chunk-VP37FW6C.js";import"./chunk-LYYLXNA4.js";var re=2e4,oe=new Set(["media_type_unsupported","media_type_mismatch"]),ee=new Set(["document_upload_not_allowed","portrait_source_not_allowed","uploaded_media_not_allowed"]);function te(e){let c=null,m=Promise.resolve(),d=!1,w=null,M=null,h=!1,D=null,g=!1,_=!1,k=()=>{c?.controller.handle.destroy(),c=null},v=()=>{let t=e.currentView(),r=t===null?null:R(t,{isMobile:e.isMobile()});return r?.kind==="portrait"?r:null},S=()=>{if(e.destroyed())return"self";let t=e.currentView(),r=t===null?void 0:E(t);return r==="self"||r==="assisted"?r:r==="choice"&&e.captureModeSwitch!==void 0?e.captureModeSwitch.pick()??"self":e.cameraMode?.()??j(r??G(t),null)},I=e.captureModeSwitch,x=I===void 0?void 0:{session:()=>{let t=e.currentView();return t!==null&&E(t)==="choice"?"choice":S()},onModeChange:t=>I.choose(t)},T=async(t,r)=>{if(e.destroyed())return;let u=S();r.setFlowState("uploading"),d=!1;let n=null;try{await e.runner().submit("portrait_icao",async(s,y)=>{if(n===null){let f=await F(s,"image","image/jpeg",t.image.size,{engine:"portrait"});await s.uploadToSpaces(f.uploadUrl,t.image,"image/jpeg"),n=(await s.completeMedia(f.key)).key}r.setFlowState("checking");let b={media:{portrait:n},gate:q(t.gate),...t.tuningVersion!==void 0?{tuningVersion:t.tuningVersion}:{},source:"camera",capture:{mode:u,facingMode:t.facingMode}};return s.submitCheck("portrait_icao",b,{idempotencyKey:y})})}catch(s){d=!0,s instanceof C&&ee.has(s.code)&&await e.refreshView?.().catch(()=>{})}if(r.setFlowState("done"),e.destroyed())return;let o=v();(o===null||o.phase!=="capture")&&c?.controller===r&&k(),e.runner().republish()},L=t=>e.runner().submit("face_match",(r,u)=>r.submitCheck("face_match",e.runner().faceProbeSkipped()?{simulatedCapture:!0}:{},{idempotencyKey:u})).then(()=>{},()=>{d=!0,t()}),P=null,V=async t=>{let r=v();if(r===null||r.phase!=="capture"||!r.photo.uploadOffered)throw new RangeError("upload_not_offered");let{prepareUploadFile:u}=await import("./upload-file-C4MFKLT3.js"),n=await u(t,e.uploadInternals);if(e.destroyed())return;k(),d=!1;let o=null;try{await e.runner().submit("portrait_icao",async(s,y)=>{if(o===null){let f=await s.presign("image",n.contentType,n.blob.size,{source:"upload"});await s.uploadToSpaces(f.uploadUrl,n.blob,n.contentType),o=(await s.completeMedia(f.key)).key}let b={media:{portrait:o},source:"upload"};return s.submitCheck("portrait_icao",b,{idempotencyKey:y})})}catch(s){throw s instanceof C&&oe.has(s.code)?new TypeError("unsupported_file"):(s instanceof C&&ee.has(s.code)&&await e.refreshView?.().catch(()=>{}),s)}},i=null,l=t=>{if(i!==null)return i;let r=v();if(r===null||r.phase!=="review")return Promise.reject(new RangeError("no_pending_fix"));let u={fixReview:{accept:t}},n=e.runner().submit("portrait_icao",(o,s)=>o.submitCheck("portrait_icao",u,{idempotencyKey:s})).catch(async o=>{throw o instanceof C&&o.code==="portrait_no_pending_fix"&&await e.refreshView?.().catch(()=>{}),o}).finally(()=>{i=null});return i=n,n},a=t=>{let r=()=>V(t),u=(P===null?r():P.then(r,r)).finally(()=>{P===u&&(P=null)});return P=u,u};return{bind:(t,r)=>{if(t.phase==="review")return k(),{...t,uploadFailed:d,resubmit:()=>Promise.resolve(),capture:()=>{throw new Error("the adjusted photo waits for confirmFix()")},uploadPortrait:()=>Promise.reject(new RangeError("upload_not_offered")),confirmFix:l};if(t.phase==="match")return k(),w!==t.attemptsRemaining&&!d&&(w=t.attemptsRemaining,L(r)),{...t,uploadFailed:d,resubmit:()=>(d=!1,w=t.attemptsRemaining,r(),L(r)),capture:()=>{throw new Error("the portrait was already accepted")},uploadPortrait:()=>Promise.reject(new RangeError("upload_not_offered")),confirmFix:l};if(w=null,t.reuse===!0&&t.phase==="capture")return k(),!g&&D!==t.attemptsRemaining&&(D=t.attemptsRemaining,g=!0,e.runner().submit("portrait_icao",(n,o)=>n.submitCheck("portrait_icao",{},{idempotencyKey:o})).then(()=>{_=!1},()=>{_=!0}).finally(()=>{g=!1,r()})),{kind:"processing",key:"processing",context:t.context,section:t.section,stalled:_&&!g,refresh:()=>(_=!1,D=null,r(),Promise.resolve())};let u=e.keptPortraitInput?.()??null;return u!==null&&(h||u!==M&&t.report===null&&t.reason===void 0&&!t.retakeOnly)?(h||(M=u,h=!0,e.runner().submit("portrait_icao",(n,o)=>n.submitCheck("portrait_icao",u,{idempotencyKey:o})).catch(()=>{}).finally(()=>{h=!1,r()})),{kind:"processing",key:"processing",context:t.context,section:t.section,stalled:!1,refresh:()=>Promise.resolve()}):{...t,uploadFailed:d,resubmit:()=>Promise.resolve(),capture:n=>{if(c!==null&&c.video===n.video)return c.controller.handle;k(),d=!1;let o=W({video:n.video,tuning:t.tuning,tuningVersion:t.tuningVersion,...t.icao!=null?{policy:t.icao.policy}:{},...n.keepScreenAwake!==void 0?{keepScreenAwake:n.keepScreenAwake}:{},...n.assetBaseUrl!==void 0?{assetBaseUrl:n.assetBaseUrl}:{}},e.internals,S,x);c={video:n.video,controller:o};let s=o.handle.destroy;o.handle.destroy=()=>{c?.controller===o&&(c=null),s()},o.handle.on("error",f=>{e.reportCaptureIssue?.(O("portrait",f,0))});let y=!1,b=(f,U)=>{let A=o.gateScores();A!==null&&e.reportGate?.({kind:"portrait_gate",platform:"web",outcome:f,...U!==null?{failing:U}:{},...A})};return o.handle.on("gate",f=>{!y&&!f.ready&&(o.gateScores()?.elapsedMs??0)>=re&&(y=!0,b("stuck",f.failing))}),o.handle.on("captured",f=>{b("captured",null),y=!1,m=m.then(()=>T(f,o)).catch(()=>{})}),o.handle},uploadPortrait:a,confirmFix:l}},destroy:k}}function ne(e){let c=e;if(typeof c.apiOrigin!="string"||typeof c.sessionToken!="string")return;let m=`${c.apiOrigin}/api/v2/hosted/capture-reports`,d=c.sessionToken;return w=>{try{fetch(m,{method:"POST",headers:{"content-type":"application/json","x-session-token":d,"x-sekyro-sdk":`@sekyro/web/${H}`},body:JSON.stringify({reports:w}),keepalive:!0}).catch(()=>{})}catch{}}}function ie(e){let c=e.apiOrigin;return Z("sdk",typeof c=="string"&&/staging|sandbox|localhost/.test(c)?"sandbox":"live")}function Me(e){let c=null,m=null,d=null,w=B(),M=Promise.resolve(),h=()=>{d?.flow.handle.destroy(),d=null},D=async(i,l)=>{if(e.destroyed())return;l.setFlowState("uploading");let a=null,p,t=!1,r=e.currentView()?.documents!==void 0;try{await c.submit("doc_ocr",async(y,b)=>{if(a===null){let f=await F(y,"image","image/jpeg",i.image.size,{engine:"document"});await y.uploadToSpaces(f.uploadUrl,i.image,"image/jpeg"),a=(await y.completeMedia(f.key)).key}return l.setFlowState("checking"),p===void 0&&(p=l.takeDeviceRead(i)),y.submitCheck("doc_ocr",{imageKey:a,side:i.side,...p!==null?{deviceRead:p}:{},...r?{source:"camera"}:{}},{idempotencyKey:b})})}catch{t=!0}finally{l.setFlowState("done")}if(e.destroyed())return;if(t){l.settle(i.side,{ok:!1,issue:"technical"});return}let u=e.currentView(),n=u===null?null:R(u,{isMobile:e.isMobile()});if(n?.kind!=="document"){l.settle(i.side,{ok:!0}),d?.flow===l?h():l.handle.destroy();return}if(n.reason==="document_type_not_accepted"){m=null,d?.flow===l&&h(),c.republish();return}let o=n.acceptedSides;i.side!=="single"&&(o.includes(i.side)||n.reason==="side_missing")&&!(o.includes("recto")&&o.includes("verso"))?(l.settle(i.side,{ok:!0}),m?.documentType!=="passport"&&l.handle.setSide(n.side)):l.settle(i.side,{ok:!1,issue:"reread"})},g=null,_=async i=>{let l=e.currentView(),a=l===null?null:R(l,{isMobile:e.isMobile()});if(l===null||a?.kind!=="document")throw new RangeError("upload_not_offered");if(!a.photo.uploadOffered)throw new RangeError("upload_not_offered");let p=m?.documentType==="passport"?"single":a.side,{prepareUploadFile:t}=await import("./upload-file-C4MFKLT3.js"),r=await t(i,e.uploadInternals);if(e.destroyed())return;h();let u=null;try{await c.submit("doc_ocr",async(n,o)=>{if(u===null){let s=await n.presign("image",r.contentType,r.blob.size,{source:"upload"});await n.uploadToSpaces(s.uploadUrl,r.blob,r.contentType),u=(await n.completeMedia(s.key)).key}return n.submitCheck("doc_ocr",{imageKey:u,side:p,source:"upload"},{idempotencyKey:o})})}catch(n){throw n instanceof C&&(n.code==="media_type_unsupported"||n.code==="media_type_mismatch")?new TypeError("unsupported_file"):(n instanceof C&&(n.code==="document_upload_not_allowed"||n.code==="uploaded_media_not_allowed")&&await e.refreshView().catch(()=>{}),n)}},k=(i,l)=>({...i,uploadDocument:a=>{let p=()=>_(a),t=(g===null?p():g.then(p,p)).finally(()=>{g===t&&(g=null)});return g=t,t},issuer:m?.issuer??null,documentType:m?.documentType??null,captureSide:m===null?null:m.documentType==="passport"?"single":i.side,selectDocument:(a,p)=>{if(!J(i.documents).includes(a)||!Q(i.documents,a).includes(p))throw new RangeError(`${p} from ${a} is not accepted`);(m?.issuer!==a||m.documentType!==p)&&h(),m={issuer:a,documentType:p},l()},capture:a=>{if(m===null)throw new Error("selectDocument() first");if(d!==null&&d.video===a.video)return d.flow.handle;h();let p=m,t=p.documentType==="passport"?"single":i.acceptedSides.length>0?i.side:void 0,r=$({video:a.video,documentType:p.documentType,issuer:p.issuer,...t!==void 0?{side:t}:{},...a.keepScreenAwake!==void 0?{keepScreenAwake:a.keepScreenAwake}:{},...a.liveMrz!==void 0?{liveMrz:a.liveMrz}:{}},{...e.documentInternals??{},...(()=>{let n=e.currentView()?.capture?.document,o=e.documentInternals?.blurRefuseSharpnessMax??n?.scan?.blurRefuseSharpnessMax;return{engineOptions:{camera:z(n?.camera),shutter:N(n?.scan),guideLock:K(n?.guide),...e.documentInternals?.engineOptions??{}},...typeof o=="number"&&Number.isFinite(o)&&o>=0&&o<=1?{blurRefuseSharpnessMax:o}:{}}})(),deferRead:!0,...(()=>{let n=e.currentView();if(n===null||e.documentInternals?.webOcr!==void 0)return{};let o=ne(e.runtime.client);return{webOcr:{captureDocument:n.capture?.document,salt:n.sessionId,baseUrl:ie(e.runtime.client),...o!==void 0?{reports:o}:{}}}})()});d={video:a.video,flow:r};let u=r.handle.destroy;return r.handle.destroy=()=>{d?.flow===r&&(d=null),u()},w.newHandle(),r.handle.on("state",n=>w.note(n)),r.handle.on("error",n=>{w.noteError(),e.reportCaptureIssue?.(O("document",n,w.value))}),r.handle.on("captured",n=>{M=M.then(()=>D(n,r)).catch(()=>{})}),r.handle}}),v=null,S=null,I=new Set,x=e.runtime.client;e.runtime.client=new Proxy(x,{get(i,l){if(l==="submitCheck")return(S??i).submitCheck.bind(S??i);let a=Reflect.get(i,l);return typeof a=="function"?a.bind(i):a}});let T=()=>{v?.destroy(),v=null,S=null},L=i=>{let l=e.currentView(),a=l===null?null:R(l,{isMobile:e.isMobile()});if(l===null||a?.kind!=="liveness"||a.livePhoto?.icao!==!0)return;if(v===null){let u=X({tuning:l.capture?.icao??null,tuningVersion:l.capture?.tuningVersion??null,...a.icao!=null?{policy:a.icao.policy}:{},still:a.livePhoto.still,...i.assetBaseUrl!==void 0?{assetBaseUrl:i.assetBaseUrl}:{}},e.livePhotoInternals);v=u,S=u.decorate(x),u.onGate(n=>{for(let o of I)o(n)})}let p=v,t=e.baseCapture??{},r=t.engineOptions?.telemetry;return{...t,engineOptions:{...t.engineOptions??{},measureQuality:p.engineOptions.measureQuality,telemetry:u=>{r?.(u),p.engineOptions.telemetry(u)}}}},P=te({keptPortraitInput:()=>v?.lastPortraitInput()??null,runner:()=>c,currentView:e.currentView,...e.cameraMode!==void 0?{cameraMode:e.cameraMode}:{},...e.captureModeSwitch!==void 0?{captureModeSwitch:e.captureModeSwitch}:{},destroyed:e.destroyed,isMobile:e.isMobile,...e.portraitInternals!==void 0?{internals:e.portraitInternals}:{},...e.uploadInternals!==void 0?{uploadInternals:e.uploadInternals}:{},refreshView:()=>e.refreshView(),...e.reportCaptureIssue!==void 0?{reportCaptureIssue:e.reportCaptureIssue}:{},reportGate:i=>ne(e.runtime.client)?.([i])}),V=Y({...e,bindDocument:k,bindPortrait:P.bind,stopCameras:()=>{h(),P.destroy(),T(),e.stopLiveness?.()},onLivePhoto:i=>(I.add(i),()=>I.delete(i))});return c=V,{...V,captureInternals:L,destroy:()=>{h(),P.destroy(),T(),I.clear()}}}export{Me as createPlanRunner,ne as reportSink,ie as sdkAssetBase};
@@ -1 +1 @@
1
- import{a,b,c}from"../chunk-LJYMZQY2.js";export{a as SEKYRO_EVENTS,b as open,c as openHosted};
1
+ import{a,b,c}from"../chunk-7TGVXBW6.js";export{a as SEKYRO_EVENTS,b as open,c as openHosted};
@@ -1 +1 @@
1
- import{a as s,b as u}from"./chunk-2LDOXGY3.js";import{Thumbmark as c}from"@thumbmarkjs/thumbmarkjs";var d=["canvas","webgl","audio","fonts","hardware","screen","system","locales","math","plugins"],f=2e3,l=4e3,m=1e3,g=2e3,h=64,p=32,P=8,b=128;function a(n,t){if(typeof n!="string")return;let e=n.trim();return e.length>0&&e.length<=t?e:void 0}async function y(){let n=navigator.userAgentData;if(typeof n?.getHighEntropyValues!="function")return;let t=await s(()=>n.getHighEntropyValues(["model","platformVersion"]),m);if(t==null)return;let e=a(t.model,h),i=a(t.platformVersion,p),o={...e!==void 0?{model:e}:{},...i!==void 0?{platformVersion:i}:{}};return Object.keys(o).length>0?o:void 0}async function _(){let[n,t]=await Promise.all([new c({stabilize:["private","iframe"],exclude:["permissions","webrtc","speech"],logging:!1,collect_beacon:!1,timeout:f}).get(),y()]),e=n?.thumbmark;if(typeof e!="string"||e.length<P||e.length>b)return;let i={};for(let o of d){let r=n.components?.[o];r==null||r.timeout==="true"||(i[o]=await u(r))}return{hash:e,c:i,...t!==void 0?{hints:t}:{}}}function w(){return new Promise(n=>{typeof globalThis.requestIdleCallback=="function"?globalThis.requestIdleCallback(()=>n(),{timeout:g}):n()})}async function I(n){return n()||(await w(),n())?"busy":s(_,l)}export{I as computePrint,y as readHints};
1
+ import{a as s,b as u}from"./chunk-XB4KLBHY.js";import{Thumbmark as c}from"@thumbmarkjs/thumbmarkjs";var d=["canvas","webgl","audio","fonts","hardware","screen","system","locales","math","plugins"],f=2e3,l=4e3,m=1e3,g=2e3,h=64,p=32,P=8,b=128;function a(n,t){if(typeof n!="string")return;let e=n.trim();return e.length>0&&e.length<=t?e:void 0}async function y(){let n=navigator.userAgentData;if(typeof n?.getHighEntropyValues!="function")return;let t=await s(()=>n.getHighEntropyValues(["model","platformVersion"]),m);if(t==null)return;let e=a(t.model,h),i=a(t.platformVersion,p),o={...e!==void 0?{model:e}:{},...i!==void 0?{platformVersion:i}:{}};return Object.keys(o).length>0?o:void 0}async function _(){let[n,t]=await Promise.all([new c({stabilize:["private","iframe"],exclude:["permissions","webrtc","speech"],logging:!1,collect_beacon:!1,timeout:f}).get(),y()]),e=n?.thumbmark;if(typeof e!="string"||e.length<P||e.length>b)return;let i={};for(let o of d){let r=n.components?.[o];r==null||r.timeout==="true"||(i[o]=await u(r))}return{hash:e,c:i,...t!==void 0?{hints:t}:{}}}function w(){return new Promise(n=>{typeof globalThis.requestIdleCallback=="function"?globalThis.requestIdleCallback(()=>n(),{timeout:g}):n()})}async function I(n){return n()||(await w(),n())?"busy":s(_,l)}export{I as computePrint,y as readHints};
@@ -1 +1 @@
1
- import{a,b,c,d,e}from"./chunk-Z2BIZYZQ.js";export{b as TURNSTILE_EXECUTE_TIMEOUT_MS,a as TURNSTILE_SCRIPT_SRC,e as executeTurnstile,d as loadTurnstile,c as resetTurnstileForTests};
1
+ import{a,b,c,d,e}from"./chunk-V4VFZ7NQ.js";export{b as TURNSTILE_EXECUTE_TIMEOUT_MS,a as TURNSTILE_SCRIPT_SRC,e as executeTurnstile,d as loadTurnstile,c as resetTurnstileForTests};
@@ -252,10 +252,10 @@ type SessionStatus = "created" | "in_progress" | "review_pending" | "verified" |
252
252
  /**
253
253
  * Why a `not_verified` session was not verified (verification-session.schema.ts
254
254
  * `SESSION_REASONS`): a verdict against the person (`rejected`), no verdict
255
- * (`inconclusive`), the check could not run (`unavailable`), the person left before a
256
- * result (`abandoned`), nobody opened the link (`not_opened`), a flow rule (`policy`),
257
- * the organization cancelled it (`cancelled`), a newer session took its review over
258
- * (`superseded`).
255
+ * (`inconclusive`), the check could not run (`unavailable`), the person started but the
256
+ * session expired before a result (`abandoned`), the link was sent but the session expired
257
+ * before it was opened (`not_opened`), a flow rule (`policy`), the organization cancelled
258
+ * it (`cancelled`), a newer session took its review over (`superseded`).
259
259
  */
260
260
  type SessionReason = "rejected" | "inconclusive" | "unavailable" | "abandoned" | "not_opened" | "policy" | "cancelled" | "superseded";
261
261
  /** Who or what closed a finished session (verification-session.schema.ts `CLOSED_BY`). */
@@ -252,10 +252,10 @@ type SessionStatus = "created" | "in_progress" | "review_pending" | "verified" |
252
252
  /**
253
253
  * Why a `not_verified` session was not verified (verification-session.schema.ts
254
254
  * `SESSION_REASONS`): a verdict against the person (`rejected`), no verdict
255
- * (`inconclusive`), the check could not run (`unavailable`), the person left before a
256
- * result (`abandoned`), nobody opened the link (`not_opened`), a flow rule (`policy`),
257
- * the organization cancelled it (`cancelled`), a newer session took its review over
258
- * (`superseded`).
255
+ * (`inconclusive`), the check could not run (`unavailable`), the person started but the
256
+ * session expired before a result (`abandoned`), the link was sent but the session expired
257
+ * before it was opened (`not_opened`), a flow rule (`policy`), the organization cancelled
258
+ * it (`cancelled`), a newer session took its review over (`superseded`).
259
259
  */
260
260
  type SessionReason = "rejected" | "inconclusive" | "unavailable" | "abandoned" | "not_opened" | "policy" | "cancelled" | "superseded";
261
261
  /** Who or what closed a finished session (verification-session.schema.ts `CLOSED_BY`). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sekyro/web",
3
- "version": "0.1.0-rc.22",
3
+ "version": "0.1.0-rc.22.1",
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.22",
101
- "bom-ref": "@sekyro/web@0.1.0-rc.22",
100
+ "version": "0.1.0-rc.22.1",
101
+ "bom-ref": "@sekyro/web@0.1.0-rc.22.1",
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.22?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.22.1?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.22|@mediapipe/tasks-vision@0.10.35",
153
+ "bom-ref": "@sekyro/web@0.1.0-rc.22.1|@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.22|@thumbmarkjs/thumbmarkjs@1.12.0",
188
+ "bom-ref": "@sekyro/web@0.1.0-rc.22.1|@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.22",
221
+ "ref": "@sekyro/web@0.1.0-rc.22.1",
222
222
  "dependsOn": [
223
- "@sekyro/web@0.1.0-rc.22|@mediapipe/tasks-vision@0.10.35",
224
- "@sekyro/web@0.1.0-rc.22|@thumbmarkjs/thumbmarkjs@1.12.0"
223
+ "@sekyro/web@0.1.0-rc.22.1|@mediapipe/tasks-vision@0.10.35",
224
+ "@sekyro/web@0.1.0-rc.22.1|@thumbmarkjs/thumbmarkjs@1.12.0"
225
225
  ]
226
226
  },
227
227
  {
228
- "ref": "@sekyro/web@0.1.0-rc.22|@mediapipe/tasks-vision@0.10.35"
228
+ "ref": "@sekyro/web@0.1.0-rc.22.1|@mediapipe/tasks-vision@0.10.35"
229
229
  },
230
230
  {
231
- "ref": "@sekyro/web@0.1.0-rc.22|@thumbmarkjs/thumbmarkjs@1.12.0"
231
+ "ref": "@sekyro/web@0.1.0-rc.22.1|@thumbmarkjs/thumbmarkjs@1.12.0"
232
232
  }
233
233
  ]
234
234
  }
@@ -1 +0,0 @@
1
- import{a}from"./chunk-RI3E7GBN.js";import"./chunk-GI3UFGRQ.js";export{a as createBackgroundMonitor};
@@ -1 +0,0 @@
1
- import{a,b,c,d}from"./chunk-2LDOXGY3.js";export{a as bounded,c as cameraHash,b as hex16,d as noteCameraTrait};
@@ -1 +0,0 @@
1
- import{A as Fe,B as Be,a as Te,b as Ve,c as De,d as H,e as Y,f as W,g as Ne,h as T,i as He,j as P,k as V,l as R,m as ie,n as E,o as L,p as U,q as j,r as Le,s as Ue}from"./chunk-PZYVSLPG.js";import{n as we}from"./chunk-RALQBQPT.js";import{a as Me}from"./chunk-7QZWBDI5.js";import{c as oe,g as Ee,h as Z}from"./chunk-2KTSNAVR.js";import{c as Ie,d as ne}from"./chunk-TSA6GHUG.js";function $(e){return e.idNumberBound??e.nniBound}function F(e){return e===void 0?void 0:e.idNumberFromDocument??e.nniFromDocument}function Ge(e){let t=e.idNumberMasked??e.nniMasked;return typeof t=="string"&&t!==""?t:void 0}var ht="https://api.sekyro.ai",St=5e3,yt=24e4,gt=1500,_t=10;function Ct(e){return new Promise(t=>setTimeout(t,e))}function kt(){let e=globalThis.crypto;if(e!==void 0&&typeof e.randomUUID=="function")return e.randomUUID();let t=new Uint8Array(16);if(e!==void 0&&typeof e.getRandomValues=="function")e.getRandomValues(t);else for(let r=0;r<16;r+=1)t[r]=Math.floor(Math.random()*256);t[6]=(t[6]??0)&15|64,t[8]=(t[8]??0)&63|128;let o=[...t].map(r=>r.toString(16).padStart(2,"0")).join("");return`${o.slice(0,8)}-${o.slice(8,12)}-${o.slice(12,16)}-${o.slice(16,20)}-${o.slice(20)}`}function mn(e){return Pt(e,{})}function Pt(e,t){let o=e.apiOrigin??ht,r=e.autoRetry??!0,i=e.rearm??"auto",s=t.client??new Ee({apiOrigin:o,sessionToken:e.clientToken,fetch:e.fetch}),u=t.sleep??Ct,a=t.uuid??kt,p=t.getTurnstileToken??((n,c)=>import("./turnstile-2J3LUHCG.js").then(l=>l.executeTurnstile(n,c))),m=Me(),h=null,b=null,d=!1,_=new AbortController,f=null,A=null,B=null,G=()=>B??Le(f),de=()=>Ue(j(f),G()),x=n=>{f=n,m.emit("view",n),h?.onView(n)},C=()=>f!==null?Promise.resolve(f):(A??(A=s.getSession().then(n=>(x(n),n)).finally(()=>{A=null})),A),O=async()=>{let n=await s.getSession();return x(n),n},J=async(n,c)=>{n.plan!==void 0?x(n):await O()},Q=null,le=async n=>{let c=await C();if(n||!c.consentRecorded){let l=await s.recordConsent(e.locale);l.plan!==void 0?x(l):f!==null&&x({...f,consentRecorded:!0})}be(c.turnstileSiteKey)},I=n=>n?.force===!0?le(!0):(Q??(Q=le(!1).finally(()=>{Q=null})),Q),X={client:s,ensureConsent:n=>I(n),sleep:u,uuid:a,...t.random!==void 0?{random:t.random}:{},onBusy:n=>{d||m.emit("busy",n)}},pe=!1,fe=null,z=n=>{if(n.status==="verified"||n.status==="not_verified"||n.status==="review"){if(pe)return;pe=!0}fe=JSON.stringify(n),m.emit("result",n)},tt=n=>{fe!==JSON.stringify(n)&&z(n)},me=async n=>{let c=f;n&&(c=await O().catch(()=>f));let l=c===null?null:T(c);return l!==null&&!d&&m.emit("method",l),l!==null},he=null,Se=!1,ye=!1,ge=()=>Fe(X,(n,c)=>n.submitCheck("population_registry",{},{idempotencyKey:c})),_e=n=>$(n)===!0||F(R(n,"population_registry"))===!0,nt=async()=>{try{let n=await C();if(P(n)||T(n)!==null||V(n)?.checkType!=="population_registry")return;if(!_e(n)&&F(R(n,"population_registry"))===void 0&&(n=await O()),!_e(n)){ye=!0;return}await I(),await J(await ge(),"population_registry");let c=f===null?void 0:R(f,"population_registry");if(c?.state==="input_required"&&c.reason==="registry_unavailable"&&W(c)>0){if(await u(St),d)return;await J(await ge(),"population_registry")}}catch(n){if(n instanceof oe&&(n.code==="check_not_active"||n.code==="step_not_on_path")){await O().catch(()=>{});return}Se=!0;return}f!==null&&P(f)&&z(L(f,{autoRetry:r}))},Ce=()=>(he??(he=nt()),he),ke=t.now??Date.now,K=null,ee=n=>p(n,{signal:_.signal}),Pe=(n,c)=>n!==null&&n.siteKey===c&&ke()-n.at<yt,be=n=>{if(n===null||d||Pe(K,n))return;let c=ee(n);c.catch(()=>{}),K={siteKey:n,at:ke(),token:c}},ot=n=>{let c=K;return K=null,Pe(c,n)?c.token.catch(()=>ee(n)):ee(n)},it=async()=>{let c=(await C()).turnstileSiteKey;return c===null?{sandbox:!0}:{channel:"hosted_web",siteKey:c,turnstileToken:await ot(c)}},q=n=>{if(d)return;let c=s.reportCaptureIssue;if(c===void 0)return;let l=n.formFactor;try{l??(l=Ie())}catch{}try{Promise.resolve(c.call(s,{...n,...l!==void 0?{formFactor:l}:{}})).catch(()=>{})}catch{}},k=null,Re=Promise.resolve(),N=0,rt=async()=>{let n=await C();for(let c=0;c<_t&&!d&&!P(n)&&V(n)===void 0&&Y(n).some(l=>l.state==="processing")&&(await u(gt),!d);c+=1)n=await O();return n},st=async(n,c,l)=>{let{capture:g}=n,S=()=>d,M=()=>n.alive&&n.attempt===l,ve=y=>{M()&&g.setFlowState(y)},w=y=>{if(!S()&&(y.status==="unavailable"&&y.reasonCode!==void 0&&!Te(y.reasonCode)&&q({check:"liveness",kind:"unavailable",phase:"upload",engineKind:y.reasonCode,attempt:Math.max(0,n.issues.value)}),z(y),!!M())){if(y.status==="retry"&&i==="auto"){g.handle.retry();return}g.setFlowState("done")}};if(c.degraded==="NO_RECORDER"){let y=f?.sessionId??(await C().catch(()=>null))?.sessionId??"";w(E(y,"no_recorder"));return}ve("uploading");try{if(await Ce(),S())return;let y=await C(),Ae;if(!P(y)&&T(y)!==null){await me(!1),w(E(y.sessionId,"method_required"));return}if(!P(y)){if(V(y)?.checkType==="population_registry"){w(E(y.sessionId,ye?"nni_unbound":Se?"network":"registry_unavailable"));return}if(await I(),S())return;Ae=f??y;let te=await Be({...X,artifacts:c,getAttestation:it,getView:()=>f??y,refreshView:O,applySubmit:J,onPhase:ve,isCancelled:S,onKeyframePromoted:mt=>{b=mt}});if(S())return;if(te.kind==="unavailable"){w(E(y.sessionId,te.reason));return}if(te.kind==="resync"&&await O(),f!==null&&T(f)!==null){await me(!1),w(E(y.sessionId,"method_required"));return}y=await rt()}w(L(y,{autoRetry:r,previous:Ae}))}catch{if(S())return;w(E(f?.sessionId??"","network"))}},at=(n,c)=>{let l=n.attempt;N>0&&n.alive&&n.capture.setFlowState("uploading"),N+=1,Re=Re.then(()=>st(n,c,l)).finally(()=>{N-=1,N===0&&h?.onChainIdle()}).catch(()=>{})},xe=n=>{k?.capture.handle.destroy(),k!==null&&(k.alive=!1);let c=we(n,h?.captureInternals?.(n)??t.capture,()=>f?.capture?.liveness?.keyframe?.rank===!0,de,()=>f?.capture?.liveness?.screenRamp,{session:()=>j(f),onModeChange:S=>{B=S}}),l={capture:c,alive:!0,attempt:0,issues:De()};k=l,c.handle.on("error",S=>{q(Ve("liveness",S,l.issues.value))}),c.handle.on("state",S=>{if(l.issues.note(S),S==="starting"){l.attempt+=1,be(f?.turnstileSiteKey??null);let M=f===null?void 0:V(f)?.checkType;(M==="liveness"||M==="face_match")&&I().catch(()=>{})}}),c.handle.on("captured",S=>{Promise.resolve().then(()=>at(l,S))});let g=c.handle;return{get state(){return g.state},get captureMode(){return g.captureMode},get facingMode(){return g.facingMode},on:(S,M)=>g.on(S,M),start:async S=>{if(f===null&&await C().catch(()=>{}),!!l.alive)return g.start(S)},retry:()=>g.retry(),switchCamera:()=>g.switchCamera(),canSwitchCaptureMode:()=>g.canSwitchCaptureMode(),setCaptureMode:S=>g.setCaptureMode(S),destroy:()=>{l.alive=!1,k===l&&(k=null),g.destroy()}}},ct=async()=>{if(d)return null;try{let n=await C();return d?null:T(n)}catch{return null}},ut=async()=>{if(d)return"self";try{let n=await C();if(d)return"self";let c=j(n);return c==="choice"?G()??c:c}catch{return"self"}},dt=async()=>{if(d)return!1;try{let n=await C();return d||P(n)||ne()?!1:U(n,V(n))==="phone"||U(n,R(n,"liveness"))==="phone"}catch{return!1}},lt=async()=>{if(d)return!1;try{let n=await C();return!d&&n.returning===!0}catch{return!1}},pt=async n=>{let c=(await C()).plan?.choice,l=c?.options.find(S=>H[S.service]===n);if(!l)throw new RangeError(`method ${String(n)} is not offered`);let g=await s.choose(c.nodeId,l.id);d||x(g)},Oe=null,ft=()=>(Oe??(Oe=import("./plan-runner-3ZMV7SFQ.js").then(n=>{let c=n.createPlanRunner({runtime:X,currentView:()=>f,cameraMode:de,captureModeSwitch:{pick:G,choose:l=>{B=l}},ensureView:C,refreshView:O,ensureConsent:()=>I(),liveness:xe,stopLiveness:()=>{k!==null&&(k.alive=!1,k.capture.handle.destroy(),k=null)},chainBusy:()=>N>0,destroyed:()=>d,sleep:u,isMobile:ne,now:t.now??Date.now,keptFaceKey:()=>b,setView:x,baseCapture:t.capture,emitStep:l=>{d||m.emit("step",l)},emitResult:tt,reportCaptureIssue:q,documentInternals:t.document,portraitInternals:t.portrait,livePhotoInternals:t.livePhoto,uploadInternals:t.upload});return h=c,c})),Oe);return{consent:()=>I(),startRegistry:Ce,methodChoice:ct,selectMethod:pt,reportCameraUnavailable:async n=>{await I();let c=s.reportCameraUnavailable;if(c===void 0)throw new TypeError("this client cannot report a missing camera");let l=await c.call(s,n).catch(g=>{if(g instanceof oe&&g.code==="check_out_of_order")return s.getSession();throw g});d||x(l)},reportCaptureIssue:q,mobileRequired:dt,captureMode:ut,chooseCaptureMode:n=>{B=n},get captureChoice(){return G()},returning:lt,liveness:xe,run:async()=>{if(d)throw new Error("verification destroyed");return(await ft()).run()},currentStep:()=>h?.current()??null,voiceClips:async()=>{if(d)return null;try{let n=await C();return d?null:n.voice??null}catch{return null}},on:(n,c)=>m.on(n,c),destroy:()=>{d=!0,_.abort(),h?.destroy(),k!==null&&(k.alive=!1,k.capture.handle.destroy(),k=null),m.clear()}}}var Ke=["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"];var bt=["carte_identite","passport","residence_permit"];function Rt(e,t){let o=e.byIssuer?.[t]??e.default;return bt.filter(r=>o==="*"||o.includes(r))}function gn(e,t=Ke){return[...new Set([...t,...Object.keys(e.byIssuer??{})])].filter(r=>Rt(e,r).length>0).sort()}function qe(e){if(e.acceptedDocuments)return e.acceptedDocuments;let t=e.acceptedDocumentTypes?.length?[...e.acceptedDocumentTypes]:["carte_identite","passport"];return{default:[],byIssuer:{MR:t}}}function _n(e){return/^[A-Z]{2}$/.test(e)?String.fromCodePoint(...[...e].map(t=>127462+t.charCodeAt(0)-65)):""}var Ye=Object.freeze({nni_invalid:"id_number_invalid",nni_not_found:"registry_record_not_found",nni_recheck:"id_number_recheck",document_nni_mismatch:"document_id_number_mismatch",nni_locked:"id_number_locked",nni_unbound:"id_number_unbound",sandbox_nni_not_seeded:"sandbox_id_number_not_seeded",missing_nni:"missing_id_number",registry_needs_nni_source:"registry_needs_id_number_source"}),xt=new Map(Object.entries(Ye)),kn=new Map(Object.entries(Ye).map(([e,t])=>[t,e]));function We(e){return xt.get(e)??e}var In=["national_number","document_photo","national_eid"],Ot=new Set(["phone_otp","email_otp","national_eid","document","nfc","population_registry","supplied_identity","summary_confirm","liveness","portrait","face_match","aml_screening","face_dedup","age_estimation"]),vt=new Set(["supplied_identity","aml_screening","face_dedup","age_estimation"]),se=["document","population_registry","national_eid"],ae=["phone_otp","email_otp"],$e={identity_method:se,contact:ae},At=["population_registry","document"],ce="platform_unsupported",It=new Set(["prefilled","user_entered","prefilled_or_entered"]),Mt={phone_otp:"contact",email_otp:"contact",eid_auth:"identity",doc_ocr:"identity",nfc_chip:"identity",population_registry:"identity",liveness:"live_photo",portrait_icao:"live_photo",face_match:"live_photo"};function v(e){return e.section??Mt[e.checkType]??null}function wt(e,t){let o=e.plan?.choice;if(o===void 0||o.locked)return;let r=o.options.find(i=>i.id!==o.selected&&i.available!==!1&&t.includes(i.service));return r===void 0?void 0:{nodeId:o.nodeId,option:r}}function ue(e){let t=e.plan,o=t?.choice;if(t===void 0||o===void 0||o.locked||t.current===null||t.current===o.nodeId||P(e))return null;let r=$e[o.kind]??[...se,...ae],i=o.options.flatMap(a=>a.available===!1||!r.includes(a.service)?[]:[a.nationalEid!=null?{id:a.id,service:a.service,nationalEid:a.nationalEid}:{id:a.id,service:a.service}]),s=t.steps.find(a=>a.id===t.current)?.service,u=o.selected??i.find(a=>a.service===s)?.id??null;return i.some(a=>a.id!==u)?{nodeId:o.nodeId,kind:o.kind,current:u,options:i}:null}function Je(e){return e==null?[]:e.options.filter(t=>t.id!==e.current)}function Et(e){let t=e.simulation;if(typeof t!="object"||t===null)return;let{otpCode:o,skipCapture:r}=t;return typeof o=="string"&&o!==""&&typeof r=="boolean"?{otpCode:o,skipCapture:r}:void 0}function Tt(e){let t=(e.plan?.sections??[]).map(s=>({id:s.id,state:s.state})),o={sessionId:ie(e.sessionId),orgName:e.orgName,returning:e.returning===!0,consentRecorded:e.consentRecorded,expiresAt:e.expiresAt,sections:t.map(s=>s.id),progress:t,purpose:e.purpose??"identity"};e.branding!==void 0&&(o.branding=e.branding),e.cameraUnavailableHandled===!0&&(o.cameraUnavailableHandled=!0);let r=Et(e);r!==void 0&&(o.simulation=r);let i=ue(e);return i!==null&&(o.switchable=i),o}function Vt(e){let t={attemptsRemaining:W(e),attemptsExhausted:e.attempts.used>=e.attempts.max};return e.reason!==void 0&&(t.reason=e.reason),e.retakeHint!==void 0&&(t.retakeHint=e.retakeHint),t}var Qe={phone_otp:"phone",email_otp:"email"};function Dt(e,t){let o=wt(e,[t==="phone_otp"?"email_otp":"phone_otp"]);return o===void 0?void 0:Qe[o.option.service]}function Nt(e,t,o,r){let i=t.checkType==="email_otp",s=(i?t.emailOtp:t.otp)??{},u=i?t.emailOtp?.emailSource:t.otp?.numberSource,a=u!==void 0&&It.has(u)?u:i?"prefilled_or_entered":"user_entered",p=typeof s.sentToMasked=="string"&&s.sentToMasked.length>0,m=s.prefilled===!0,h=Dt(e,i?"email_otp":"phone_otp"),b={key:t.checkType,context:o,section:v(t),phase:p?"verify":"send",canSwitch:h!==void 0,...r},d=i?{kind:"email_otp",...b,emailSource:a,needsEmail:a!=="prefilled"&&!m}:{kind:"phone_otp",...b,numberSource:a,needsPhone:a!=="prefilled"&&!m,channels:(t.otp?.channels??[]).filter(_=>_==="whatsapp"||_==="sms")};if(h!==void 0&&(d.switchChannel=h),m&&(d.prefilled=!0),p&&(d.sentToMasked=s.sentToMasked),!i&&t.otp?.channel!==void 0&&(d.channel=t.otp.channel),!i&&Array.isArray(t.phoneCountries)&&(d.phoneCountries=t.phoneCountries.filter(_=>typeof _=="string"&&/^[A-Z]{2}$/.test(_))),!i&&Array.isArray(t.phoneRules)){let _=d.phoneCountries??[];d.phoneRules=t.phoneRules.flatMap(f=>{let A=Ut(f);return A!==void 0&&_.includes(A.code)?[A]:[]})}return!i&&t.phoneInternational===!0&&(d.phoneInternational=!0),s.expiresAt!==void 0&&(d.codeExpiresAt=s.expiresAt),s.resendAvailableAt!==void 0&&(d.resendAvailableAt=s.resendAvailableAt),d}var Ht=/^[\d[\]\-|()?:^]{1,64}$/;function Lt(e){try{return typeof e=="string"&&Ht.test(e)&&new RegExp(e)!==null}catch{return!1}}var je=e=>typeof e=="number"&&Number.isInteger(e)&&e>=1&&e<=15;function Ut(e){let{code:t,dial:o,trunk:r,lengths:i,formats:s}=e??{};if(typeof t!="string"||typeof o!="string"||!/^\d{1,3}$/.test(o)||r!==void 0&&(typeof r!="string"||!/^\d{1,3}$/.test(r))||!Array.isArray(i)||i.length===0||!i.every(je))return;let u={code:t,dial:o,lengths:[...i].sort((a,p)=>a-p)};if(r!==void 0&&(u.trunk=r),s!==void 0){if(!(Array.isArray(s)&&s.length<=8&&s.every(p=>Lt(p?.leading)&&Array.isArray(p.groups)&&p.groups.every(je)&&i.includes(p.groups.reduce((m,h)=>m+h,0)))))return;u.formats=s.map(p=>({leading:p.leading,groups:[...p.groups]}))}return u}function Ft(e,t,o,r){let i=$(e)===!0?"bound":F(t)===!0?"document":"typed",s=i==="typed"&&t.state==="input_required"&&t.reason!==void 0&&We(t.reason)==="id_number_recheck",u=Je(ue(e)),a=!r.attemptsExhausted&&u.length===1&&u[0]?.service==="document";return{kind:"registry",key:"registry",context:o,section:v(t),state:t.state==="input_required"?"input_required":"pending",source:i,recheck:s,canUseDocument:a,...r}}function Bt(e,t,o,r,i){let s=[...t.acceptedSides??[]],u={kind:"document",key:"document",context:o,section:v(t),side:s.includes("recto")?"verso":"recto",acceptedSides:s,documents:qe(e),photo:ze(Xe(e.documents),i),...r};return e.detectedCountry!==void 0&&(u.detectedCountry=e.detectedCountry),Gt(e)&&(u.ageStepUp=!0),u}function Xe(e,t=!0){let o=e?.source==="upload"||e?.source==="choice"?e.source:"camera",r=e?.sourcePick==="camera"||e?.sourcePick==="upload"?e.sourcePick:null;return{source:o,pick:r,uploadOffered:t&&e?.uploadOffered===!0}}function ze(e,t){return t?{...e,cameraOnPhone:!0}:e}function Gt(e){let t=Y(e).find(r=>r.checkType==="age_estimation"),o=t?.reason;return t?.state==="failed"&&(o==="age_uncertain"||o==="age_unavailable")}function Kt(e){let t=R(e,"liveness");return t?.state==="passed"||t?.state==="review"}function Ze(e,t,o,r,i,s=!1){let u=t.icao?.report,a=e.portrait,p=i==="capture"?a?.pendingFix??null:null;p!==null&&(i="review");let m=et(e);return{kind:"portrait",key:`portrait:${i}`,context:o,section:v(t),phase:i,report:Array.isArray(u)?u:null,review:t.state==="review",tuning:e.capture?.icao??null,tuningVersion:e.capture?.tuningVersion??null,icao:Z(e),retakeOnly:i==="capture"&&t.state==="input_required"&&m===void 0&&e.capture?.livePhoto?.oneCapture===!0&&Kt(e),photo:ze(Xe(a,i==="capture"),s&&i==="capture"),pendingFix:p,...m!==void 0?{captureMode:m}:{},...a?.reuse?.pending===!0?{reuse:!0}:{},...r}}function et(e){let t=e.portrait?.captureMode;return t==="self"||t==="assisted"||t==="choice"?t:void 0}var re={minLongSidePx:1280,jpegQuality:.95};function qt(e,t){let o=e.capture?.livePhoto;if(o?.oneCapture!==!0)return null;let r=R(e,"portrait_icao"),i=o.still??re;return{icao:t==="liveness"&&Z(e)!==null&&et(e)===void 0&&r!==void 0&&r.state==="pending"&&r.reason===void 0,still:{minLongSidePx:i.minLongSidePx??re.minLongSidePx,jpegQuality:i.jpegQuality??re.jpegQuality}}}function Yt(e,t,o,r){let i=t.eid,s=v(t);if(i===void 0||i.challenge!=="app_code")return{kind:"unsupported",key:"unsupported:eid_auth",context:o,section:s,checkType:"eid_auth",reason:"update_required"};let u=Je(ue(e)),a=u.length===1&&At.includes(u[0]?.service??"")?u[0]:void 0,p=a===void 0?void 0:H[a.service],m=p!==void 0,h={kind:"eid",key:"eid",context:o,section:s,provider:i.provider,providerName:i.providerName,country:i.country,challenge:"app_code",phase:i.awaiting==="code"?"code":"identifier",identifierBound:i.identifierBound===!0,canUseCamera:m,afterPass:i.afterPass==="continue"?"continue":"end",...r};return m&&(h.cameraMethod=p),i.expiresAt!==void 0&&(h.codeExpiresAt=i.expiresAt),i.resendAvailableAt!==void 0&&(h.resendAvailableAt=i.resendAvailableAt),i.resendsRemaining!==void 0&&(h.resendsRemaining=i.resendsRemaining),i.codeAttemptsRemaining!==void 0&&(h.codeAttemptsRemaining=i.codeAttemptsRemaining),h}function Wt(e,t){if(t.checkType!=="face_match"||t.reason!==void 0)return null;let o=R(e,"portrait_icao");return o!==void 0&&(o.state==="passed"||o.state==="review")?o:null}var jt={rejected:"rejected",inconclusive:"inconclusive",unavailable:"unavailable",abandoned:"expired",not_opened:"expired",cancelled:"expired",superseded:"expired",policy:"policy"};function Zt(e){return e.reasonCode===ce?"platform_unsupported":e.status==="review_pending"?"review":e.status==="verified"?"verified":e.reasonCode==="device_cooldown"?"cooldown":e.reasonCode==="starter_credit_claimed"?"policy":(e.status==="not_verified"&&e.reason!==void 0?jt[e.reason]:void 0)??"rejected"}function $t(e,t){let o=Zt(e),r=o==="platform_unsupported"?{sessionId:ie(e.sessionId),status:"unavailable",reasonCode:ce}:L(e,{autoRetry:!1}),i={kind:"result",key:"result",context:t,section:null,display:o,result:r};return e.status==="not_verified"&&e.reason!==void 0&&(i.reason=e.reason),e.reasonCode!==void 0&&(i.reasonCode=e.reasonCode),e.status==="not_verified"&&e.step!==void 0&&(i.step=e.step),e.retryAfter!==void 0&&(i.retryAfter=e.retryAfter),i}function Jt(e,t,o){let r=e.identitySummary;if(r==null)return null;let i={kind:"identity_summary",key:"identity_summary",context:t,section:o??"identity",summaryKind:r.kind==="partial"?"partial":r.kind??"full",source:r.source,portraitAvailable:r.portrait?.available===!0,retakeAvailable:r.retakeAvailable===!0};for(let u of Qt){let a=r[u];typeof a=="string"&&a!==""&&(i[u]=a)}let s=Ge(r);return s!==void 0&&(i.idNumberMasked=s,i.nniMasked=s),i}var Qt=["fullName","birthDate","birthYear","nationality","documentType","documentNumberMasked","expiryDate","retakeTarget"];function D(e,t,o,r){return{kind:"unsupported",key:`unsupported:${o}`,context:e,section:t,checkType:o,reason:r}}function Xt(e){return e.kind==="contact"?"contact":(e.kind==="identity_method","identity")}function zt(e,t){let o=$e[e.kind]??[...se,...ae],r=Xt(e),i=e.options.flatMap(u=>{if(u.available===!1||!o.includes(u.service))return[];let a={id:u.id,service:u.service};u.nationalEid!=null&&(a.nationalEid=u.nationalEid);let p=(u.channels??[]).filter(m=>m==="whatsapp"||m==="sms");return u.service==="phone_otp"&&p.length>0&&(a.channels=p),[a]});if(i.length===0){let u=e.options.length>0&&e.options.every(a=>a.service==="nfc");return D(t,r,"choice",u?"platform_unsupported":"update_required")}let s={nodeId:e.nodeId,kind:e.kind,selected:e.selected,options:i};if(e.kind==="identity_method"){let u={kind:"method",key:"method",context:t,section:r,options:i.map(p=>H[p.service]),choice:s},a=i.find(p=>p.nationalEid!==void 0)?.nationalEid;return a!==void 0&&(u.nationalEid=a),u}return e.kind==="contact"?{kind:"contact_choice",key:"contact_choice",context:t,section:r,options:i.map(u=>Qe[u.service]),selected:null,locked:!1,choice:s}:{kind:"choice",key:`choice:${e.nodeId}`,context:t,section:r,choice:s}}function Mn(e,t={}){let o=Tt(e);if(P(e)||e.reasonCode===ce)return $t(e,o);let r=e.plan;if(r===void 0||!Array.isArray(r.sections))return D(o,null,"plan","update_required");let i=Ne(e);if(i!==null)return zt(i,o);let s=r.current===null?void 0:r.steps.find(d=>d.id===r.current),u=d=>{let _={kind:"processing",key:"processing",context:o,section:d!==void 0?v(d):r.sections.find(f=>f.state==="current")?.id??null,stalled:!1};return typeof d?.service=="string"&&d.service!==""&&(_.service=d.service),_};if(r.current===null)return u(r.steps.find(d=>d.state==="processing"));if(s===void 0)return D(o,null,"step","update_required");if(!Ot.has(s.service))return s.interaction==="server"?u(s):D(o,v(s),s.service,"update_required");if(vt.has(s.service)||!He(s))return u(s);let a=s,p=Vt(a),m=a.checkType,h=v(a),b=t.isMobile===!1?U(e,a):null;if(b==="phone")return{kind:"mobile_required",key:"mobile_required",context:o,section:h,checkType:m};switch(m){case"phone_otp":case"email_otp":return Nt(e,a,o,p);case"population_registry":return Ft(e,a,o,p);case"eid_auth":return Yt(e,a,o,p);case"doc_ocr":return Bt(e,a,o,p,b==="upload_or_phone");case"identity_confirm":return Jt(e,o,h)??u(a);case"portrait_icao":return Ze(e,a,o,p,"capture",b==="upload_or_phone");case"liveness":case"face_match":{let d=Wt(e,a);if(d!==null)return Ze(e,d,o,p,"match");let _=a.requiresMobile===!0,f=Z(e);return{kind:"liveness",key:"biometric",context:o,section:h,mode:m==="face_match"?"selfie":"liveness",requiresMobile:_,instructions:f===null?"standard":"icao",icao:f,livePhoto:qt(e,m),...p}}case"nfc_chip":return D(o,h,m,"platform_unsupported");default:return D(o,h,m,"update_required")}}export{ht as a,St as b,gt as c,_t as d,kt as e,mn as f,Pt as g,Ke as h,bt as i,Rt as j,gn as k,qe as l,_n as m,In as n,ce as o,v as p,ue as q,Je as r,Wt as s,Mn as t};
@@ -1 +0,0 @@
1
- var f="0.1.0-rc.22";var T=/FBAN|FBAV|FB_IAB|FBIOS|MessengerForiOS|Instagram|WhatsApp|musical_ly|BytedanceWebview|TikTok|Snapchat|\bLine\/|LinkedInApp|Pinterest|MicroMessenger|; wv\)/i;function p(t){let e=t??(typeof navigator>"u"?"":String(navigator.userAgent??""));return T.test(e)}var h="sekyro.did",P=1e4,v=()=>globalThis.process?.versions?.node,y;function b(){let t=globalThis.crypto;try{if(typeof t?.randomUUID=="function")return t.randomUUID()}catch{}try{if(typeof t?.getRandomValues=="function"){let e=t.getRandomValues(new Uint8Array(16));return Array.from(e,r=>r.toString(16).padStart(2,"0")).join("")}}catch{}}function I(){try{let t=localStorage.getItem(h);if(t)return t;let e=b();return e!==void 0&&localStorage.setItem(h,e),e}catch{return y??(y=b()),y}}async function w(){let t=globalThis.crypto?.subtle;if(!t)return"";let e=navigator,r=JSON.stringify([e.userAgent,e.platform,e.hardwareConcurrency??null,e.deviceMemory??null,e.maxTouchPoints??0,screen.width,screen.height,screen.colorDepth,globalThis.devicePixelRatio??1,Intl.DateTimeFormat().resolvedOptions().timeZone,e.languages?.join(",")??e.language]),i=await t.digest("SHA-256",new TextEncoder().encode(r));return Array.from(new Uint8Array(i),o=>o.toString(16).padStart(2,"0")).join("").slice(0,32)}function k(){try{let t=Number(navigator.maxTouchPoints);return Number.isFinite(t)&&t>=0?{touch:Math.min(64,Math.trunc(t))}:{}}catch{return{}}}function x(t){let e=new TextEncoder().encode(t),r="";for(let i of e)r+=String.fromCharCode(i);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function A(t){let e,r,i,o,a,l,u=()=>l?.readyState==="live",_=()=>{a!==void 0||!globalThis.crypto?.subtle||v()||u()||(a=Promise.race([import("./print-SEWS3VHQ.js"),new Promise(n=>setTimeout(n,P))]).then(n=>n?.computePrint(u)).then(n=>{n==="busy"?a=void 0:o=n}).catch(()=>{}))};return{timezone(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone?.slice(0,64)||void 0}catch{return}},noteCameraLabel(n){n&&(e=n.slice(0,128))},noteCamera(n){r=n},noteCameraTrack(n){l=n},async deviceHeader(){try{i??(i=w().catch(()=>""));let n=[];navigator.webdriver&&n.push("webdriver"),/HeadlessChrome/.test(navigator.userAgent)&&n.push("headless");let g=await i,m=I(),S={v:1,platform:"web",sdk:t.sdk.slice(0,64),ids:[...m?[{kind:"web_local",value:m.slice(0,128)}]:[],...g?[{kind:"web_fp",value:g}]:[]],screen:{w:screen.width,h:screen.height,dpr:globalThis.devicePixelRatio??1},...k(),...e?{cameraLabel:e}:{},...n.length?{signals:n}:{},...o?{print:{v:2,...o,...r?{camera:r}:{}}}:{},...p()?{inApp:!0}:{}},C=x(JSON.stringify(S));return _(),C}catch{return}},printReady(){return a??Promise.resolve()}}}var s=Symbol.for("sekyro.web.clientContext"),c=globalThis,d=c[s]??(c[s]=A({sdk:`@sekyro/web@${f}`}));function M(t){try{let e=t.getVideoTracks?.()[0];if(e){if(d.noteCameraLabel(e.label),d.noteCameraTrack(e),v())return;import("./camera-trait-V4UAOPIQ.js").then(r=>r.noteCameraTrait(e,d)).catch(()=>{})}}catch{}}export{f as a,p as b,d as c,M as d};
@@ -1 +0,0 @@
1
- var E="https://challenges.cloudflare.com/turnstile/v0/api.js",x=1e4;function T(){return window.turnstile}var l=null,r=null,p=Promise.resolve();function b(){l=null,r?.container.remove(),r=null,p=Promise.resolve()}function v(){return l??(l=new Promise((i,n)=>{let t=T();if(t){i(t);return}let e=document.createElement("script");e.src=E,e.async=!0,e.onload=()=>{let s=T();s?i(s):(l=null,n(new Error("Turnstile script loaded but exposed no API")))},e.onerror=()=>{l=null,e.remove(),n(new Error("Turnstile script failed to load"))},document.head.appendChild(e)})),l}function c(){return new Error("Turnstile challenge aborted")}function w(i,n){if(r!==null&&r.siteKey===n)return r;if(r!==null){try{i.remove(r.id)}catch{}r.container.remove(),r=null}let t=document.createElement("div");document.body.appendChild(t);let e={siteKey:n,container:t,fresh:!0,pending:null},s=i.render(t,{sitekey:n,execution:"execute",appearance:"execute",callback:o=>e.pending?.resolve(o),"error-callback":o=>e.pending?.reject(new Error(`Turnstile challenge failed${o?` (${o})`:""}`))});if(s===void 0)throw t.remove(),new Error("Turnstile render returned no widget id");return e.id=s,r=e,r}function h(i,n){try{i.reset(n.id),n.fresh=!1}catch{r===n&&(n.container.remove(),r=null)}}function P(i,n={}){let t=p.then(()=>m(i,n),()=>m(i,n));return p=t.catch(()=>{}),t}async function m(i,n){let t=n.timeoutMs??1e4,e=n.signal;if(e?.aborted)throw c();let s=await v();if(e?.aborted)throw c();let o=w(s,i),f,u,g=!1;try{return await new Promise((d,a)=>{o.pending={resolve:d,reject:a},f=setTimeout(()=>a(new Error(`Turnstile challenge timed out (${t} ms)`)),t),e!==void 0&&(u=()=>a(c()),e.addEventListener("abort",u,{once:!0})),o.fresh||s.reset(o.id),o.fresh=!1,s.execute(o.id)}).then(d=>(g=!0,d))}finally{clearTimeout(f),e!==void 0&&u!==void 0&&e.removeEventListener("abort",u),o.pending=null,g||h(s,o)}}export{E as a,x as b,b as c,v as d,P as e};
@@ -1 +0,0 @@
1
- import{u as a,v as b,w as c,x as d}from"./chunk-HYGINGDC.js";import"./chunk-G6LKLN4U.js";import"./chunk-TDLIXFDT.js";import"./chunk-RALQBQPT.js";import"./chunk-7QZWBDI5.js";import"./chunk-7XT5YDSC.js";import"./chunk-SX7TUC3V.js";import"./chunk-POIQGEZM.js";import"./chunk-CPUECYAJ.js";import"./chunk-FPXL63KZ.js";import"./chunk-TSA6GHUG.js";import"./chunk-BATJN3VQ.js";import"./chunk-FSSMUAKC.js";import"./chunk-DK5YPBDQ.js";export{a as SAME_FACE_MAX_DROPS,c as createDocumentCapture,d as createDocumentCaptureInternal,b as warmDocumentCapture};
@@ -1 +0,0 @@
1
- import{j as a,k as b,l as c,m as d,n as e,o as f}from"./chunk-VWGKUQ3C.js";import"./chunk-53POX7U4.js";import"./chunk-33KKMPJ5.js";import"./chunk-CJHMFPL6.js";import"./chunk-RI3E7GBN.js";import"./chunk-GI3UFGRQ.js";import"./chunk-7QZWBDI5.js";import"./chunk-SX7TUC3V.js";import"./chunk-CPUECYAJ.js";import"./chunk-TSA6GHUG.js";export{a as ANALYSIS_LONG_EDGE,b as PORTRAIT_JPEG_QUALITY,e as createPortraitCaptureInternal,c as defaultGrabber,d as observe,f as warmPortraitCapture};
@@ -1 +0,0 @@
1
- import{h as a,i as b,j as c,k as d,l as e,m as f}from"./chunk-53POX7U4.js";export{a as ICAO_GATE_CRITERIA,f as createIcaoGate,c as eyeOpenness,b as judgeIcao,d as percentile,e as scoreFrame};
@@ -1 +0,0 @@
1
- import{a,b}from"./chunk-33KKMPJ5.js";import"./chunk-GI3UFGRQ.js";export{a as ICAO_FALLBACK,b as resolveIcaoTuning};
@@ -1 +0,0 @@
1
- import{a,b}from"./chunk-SMKCBUJL.js";export{a as MRZ_BAND_DEFAULTS,b as detectMrzBand};
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes