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

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 (88) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/README.md +12 -11
  3. package/dist/camera-trait-V4UAOPIQ.js +1 -0
  4. package/dist/{capture-constraints-B5omafmk.d.cts → capture-constraints-CVqpMNGA.d.cts} +7 -3
  5. package/dist/{capture-constraints-B5omafmk.d.ts → capture-constraints-CVqpMNGA.d.ts} +7 -3
  6. package/dist/{capture-session-doc-XBZGXWOP.js → capture-session-doc-BBDKMEAP.js} +1 -1
  7. package/dist/{capture-session-v3-ZO0QOeQH.d.ts → capture-session-v3-CFXYS0Pg.d.cts} +90 -13
  8. package/dist/{capture-session-v3-26FgzBIl.d.cts → capture-session-v3-DID39wUZ.d.ts} +90 -13
  9. package/dist/chunk-2LDOXGY3.js +1 -0
  10. package/dist/chunk-5DTWBDCP.js +1 -0
  11. package/dist/chunk-72LG73YL.js +1 -0
  12. package/dist/chunk-7QZWBDI5.js +1 -0
  13. package/dist/chunk-CPUECYAJ.js +1 -0
  14. package/dist/chunk-FSSMUAKC.js +1 -0
  15. package/dist/chunk-JWEHH2MS.js +1 -0
  16. package/dist/chunk-JYU5YHXN.js +1 -0
  17. package/dist/chunk-LFMIFR6T.js +1 -0
  18. package/dist/chunk-LJYMZQY2.js +1 -0
  19. package/dist/chunk-PBLZ5W7P.js +1 -0
  20. package/dist/chunk-RPVI2OGR.js +1 -0
  21. package/dist/chunk-SX7TUC3V.js +1 -0
  22. package/dist/chunk-TSA6GHUG.js +1 -0
  23. package/dist/chunk-U3NYGTX7.js +1 -0
  24. package/dist/chunk-VWGKUQ3C.js +1 -0
  25. package/dist/chunk-X6UIO5E3.js +1 -0
  26. package/dist/{chunk-QYYJLXKA.js → chunk-YWGW63B3.js} +1 -1
  27. package/dist/client/index.cjs +1 -1
  28. package/dist/client/index.d.cts +3 -3
  29. package/dist/client/index.d.ts +3 -3
  30. package/dist/client/index.js +1 -1
  31. package/dist/clip-inspect-DLJXVKV6.js +1 -0
  32. package/dist/core/index.cjs +1 -1
  33. package/dist/core/index.d.cts +5 -5
  34. package/dist/core/index.d.ts +5 -5
  35. package/dist/core/index.js +1 -1
  36. package/dist/core/v3/detect-worker.cjs +1 -1
  37. package/dist/core/v3/detect-worker.d.cts +1 -1
  38. package/dist/core/v3/detect-worker.d.ts +1 -1
  39. package/dist/core/v3/detect-worker.js +1 -1
  40. package/dist/create-document-capture-K5PDVOGV.js +1 -0
  41. package/dist/create-portrait-capture-5VGYZUOK.js +1 -0
  42. package/dist/{create-verification-KlHIU4Fy.d.ts → create-verification-BP2L4rzV.d.cts} +201 -82
  43. package/dist/{create-verification-CXhXxknV.d.cts → create-verification-Dc1Rd-4T.d.ts} +201 -82
  44. package/dist/{detect-worker-DclNxkZT.d.cts → detect-worker-CHqsPJoM.d.cts} +19 -2
  45. package/dist/{detect-worker-DclNxkZT.d.ts → detect-worker-CHqsPJoM.d.ts} +19 -2
  46. package/dist/{icao-gate-DI8VePWd.d.ts → icao-gate-CIXjbPCL.d.cts} +8 -1
  47. package/dist/{icao-gate-DvzOzHq6.d.cts → icao-gate-COt4O4h_.d.ts} +8 -1
  48. package/dist/{icao-policy-MRB8NMAu.d.cts → icao-policy-Cizs5guu.d.cts} +2 -2
  49. package/dist/{icao-policy-DztbA50-.d.ts → icao-policy-DI4kU6Mv.d.ts} +2 -2
  50. package/dist/index.cjs +1 -1
  51. package/dist/index.d.cts +11 -15
  52. package/dist/index.d.ts +11 -15
  53. package/dist/index.js +1 -1
  54. package/dist/internal/index.cjs +1 -1
  55. package/dist/internal/index.d.cts +49 -34
  56. package/dist/internal/index.d.ts +49 -34
  57. package/dist/internal/index.js +1 -1
  58. package/dist/plan-runner-AD2JTMC7.js +1 -0
  59. package/dist/popup/index.cjs +1 -1
  60. package/dist/popup/index.d.cts +2 -2
  61. package/dist/popup/index.d.ts +2 -2
  62. package/dist/popup/index.js +1 -1
  63. package/dist/{print-AYSCRSZB.js → print-SEWS3VHQ.js} +1 -1
  64. package/dist/{turnstile-FATNZ4AG.js → turnstile-F4DS2L3F.js} +1 -1
  65. package/dist/{types-C_XP92JQ.d.cts → types-Cjnp1o8i.d.cts} +161 -84
  66. package/dist/{types-C_XP92JQ.d.ts → types-Cjnp1o8i.d.ts} +161 -84
  67. package/package.json +1 -1
  68. package/sbom.cdx.json +10 -10
  69. package/dist/camera-trait-45MJTW4K.js +0 -1
  70. package/dist/chunk-234OZEDB.js +0 -1
  71. package/dist/chunk-7Q4YPMAF.js +0 -1
  72. package/dist/chunk-B2X33ZW2.js +0 -1
  73. package/dist/chunk-CQ7SKLMC.js +0 -1
  74. package/dist/chunk-FUHDOEBP.js +0 -1
  75. package/dist/chunk-GT2ZLGF7.js +0 -1
  76. package/dist/chunk-H3HVCWLF.js +0 -1
  77. package/dist/chunk-O5WKNZ2C.js +0 -1
  78. package/dist/chunk-OKWG3PVH.js +0 -1
  79. package/dist/chunk-P3H3D33O.js +0 -1
  80. package/dist/chunk-P6UP4UQY.js +0 -1
  81. package/dist/chunk-SNACCYTL.js +0 -1
  82. package/dist/chunk-TQB3URP2.js +0 -1
  83. package/dist/chunk-VIAT4DEA.js +0 -1
  84. package/dist/chunk-ZADZTM3M.js +0 -1
  85. package/dist/chunk-ZNIZACXD.js +0 -1
  86. package/dist/create-document-capture-23R2F47A.js +0 -1
  87. package/dist/create-portrait-capture-AGFHECK7.js +0 -1
  88. package/dist/plan-runner-NUWONT7F.js +0 -1
package/dist/index.d.cts CHANGED
@@ -1,21 +1,17 @@
1
- import { D as DocumentCaptureOptions, a as DocumentCaptureHandle, P as PortraitCaptureOptions, b as PortraitCaptureHandle } from './create-verification-CXhXxknV.cjs';
2
- export { A as AcceptedDocumentsLike, C as CameraFacing, c as CaptureChannel, d as CaptureEngineId, e as CaptureError, f as CaptureErrorDetail, g as CaptureErrorKind, h as CaptureErrorPhase, i as CaptureState, j as CapturedArtifacts, k as CapturedDocument, l as CapturedPortrait, m as ChoiceOptionSnapshot, n as ChoiceSnapshot, o as ChoiceStepHandle, p as ContactChoiceSnapshot, q as ContactChoiceStepHandle, r as DEFAULT_API_ORIGIN, s as DOCUMENT_TYPE_ORDER, t as DeriveStepEnv, u as DocumentCaptureEvents, v as DocumentCaptureState, w as DocumentFeedback, x as DocumentFeedbackKey, y as DocumentGateUpdate, z as DocumentGuide, B as DocumentGuideMeasure, E as DocumentLiveMrzOptions, F as DocumentMrzUpdate, G as DocumentPoint, H as DocumentQuad, I as DocumentReticle, J as DocumentScanPhase, K as DocumentScanUpdate, L as DocumentSide, M as DocumentSnapshot, N as DocumentStepHandle, O as EidSnapshot, Q as EidStepHandle, R as EmailOtpSnapshot, S as EmailOtpStepHandle, T as EmailSource, U as GateHint, V as GateUpdate, W as ISSUER_CODES, X as IdentitySummarySnapshot, Y as IdentitySummaryStepHandle, Z as InLaneSwitch, _ as LivePhotoGateUpdate, $ as LivePhotoPlan, a0 as LivenessAssetsStatus, a1 as LivenessCaptureEvents, a2 as LivenessCaptureHandle, a3 as LivenessCaptureOptions, a4 as LivenessSnapshot, a5 as LivenessStartOptions, a6 as LivenessStepHandle, a7 as MethodSnapshot, a8 as MethodStepHandle, a9 as MobileRequiredSnapshot, aa as MobileRequiredStepHandle, ab as OtpChannel, ac as OtpNumberSource, ad as PLATFORM_UNSUPPORTED, ae as PhoneOtpSnapshot, af as PhoneOtpStepHandle, ag as PhotoSourceState, ah as PlanChoiceSnapshot, ai as PortraitCaptureEvents, aj as PortraitCaptureState, ak as PortraitGateUpdate, al as PortraitSnapshot, am as PortraitStartOptions, an as PortraitStepHandle, ao as PreloadLivenessAssetsOptions, ap as ProcessingSnapshot, aq as ProcessingStepHandle, ar as ReasonCode, as as RegistrySnapshot, at as RegistrySource, au as RegistryStepHandle, av as ResultDisplay, aw as ResultSnapshot, ax as ResultStepHandle, ay as SdkFailureReason, az as StepAttempts, aA as StepContext, aB as StepSnapshot, aC as UnsupportedReason, aD as UnsupportedSnapshot, aE as UnsupportedStepHandle, aF as Verification, aG as VerificationBusy, aH as VerificationEvents, aI as VerificationLocale, aJ as VerificationOptions, aK as VerificationResult, aL as VerificationStatus, aM as VerificationStep, aN as WEB_IDENTITY_METHODS, aO as acceptedIssuers, aP as acceptedTypesFor, aQ as cameraUnavailableCauseOf, aR as createLivenessCapture, aS as createVerification, aT as deriveStep, aU as flagOf, aV as getLivenessAssetsStatus, aW as laneOf, aX as otherOptions, aY as preloadLivenessAssets, aZ as releaseLivenessAssets, a_ as resolveAcceptedDocuments, a$ as sectionOf, b0 as subscribeLivenessAssets } from './create-verification-CXhXxknV.cjs';
3
- import { aI as ScreenRampColour } from './types-C_XP92JQ.cjs';
4
- export { A as AcceptedDocumentType, aJ as AgeEstimationReason, aK as CameraUnavailableCause, aL as CaptureIssueReport, b as CaptureMode, aM as CaptureProvenance, f as CheckReason, g as CheckState, h as CheckType, k as ContactChannel, D as DecisionReason, n as DocReason, E as EidAfterPass, p as EidAuthInput, q as EidReason, s as EmailOtpReason, t as FaceMatchReason, H as HostedAcceptedDocuments, aN as HostedBranding, aO as HostedBrandingColorKey, u as HostedCaptureTuning, v as HostedConsentView, w as HostedDocumentCaptureTuning, x as HostedDocumentScanTuning, y as HostedDocumentsView, z as HostedEidView, B as HostedEmailOtpView, G as HostedFlowRef, I as HostedIcaoPolicy, J as HostedIntegrity, K as HostedLivePhotoTuning, aP as HostedLivenessCaptureTuning, L as HostedNativeCaptureTuning, M as HostedOcrTuning, N as HostedOtpView, O as HostedPlanView, P as HostedPortraitPendingFix, Q as HostedPortraitView, R as HostedSessionView, S as HostedSimulationView, T as HostedStepView, U as HostedVoiceLocale, V as HostedVoiceView, aQ as IcaoCaptureTuning, W as IcaoCriterion, X as IcaoReportEntry, Y as IdentityConfirmDecision, Z as IdentityMethod, _ as IdentitySummarySource, $ as IdentitySummaryView, a2 as LivenessReason, a3 as MatchReason, a5 as MethodChoiceView, a6 as NationalEidOption, a7 as NfcChipReason, a8 as NfcStepView, a9 as OtpChoiceView, aa as PhoneCountryRule, ab as PhoneFormat, ad as PhoneOtpReason, ae as PhotoSource, af as PhotoSourcePick, ag as PlanAttempts, ah as PlanChoiceKind, ai as PlanChoiceOption, aj as PlanChoiceView, ak as PlanSectionView, al as PlanStepView, am as PolicyFailureReason, ao as PopulationReason, ap as PortraitFix, aq as PortraitFixReviewInput, ar as PortraitIcaoInput, as as PortraitIcaoReason, at as PortraitOutputFormat, ax as ResolvedCaptureMode, aR as RetakeHint, aS as ScreenRampChallenge, aT as ScreenRampRendered, aU as ScreenRampReport, ay as SessionFailureReason, az as SessionOutcome, aA as SessionStatus, aD as SimulatedCaptureInput, aE as StepSection, aG as VerificationAssurance, aH as VerificationLevel } from './types-C_XP92JQ.cjs';
1
+ import { D as DocumentCaptureOptions, a as DocumentCaptureHandle, P as PortraitCaptureOptions, b as PortraitCaptureHandle } from './create-verification-BP2L4rzV.cjs';
2
+ export { A as AcceptedDocumentsLike, C as CameraFacing, c as CaptureChannel, d as CaptureEngineId, e as CaptureError, f as CaptureErrorDetail, g as CaptureErrorKind, h as CaptureErrorPhase, i as CaptureState, j as CapturedArtifacts, k as CapturedDocument, l as CapturedPortrait, m as ChoiceOptionSnapshot, n as ChoiceSnapshot, o as ChoiceStepHandle, p as ContactChoiceSnapshot, q as ContactChoiceStepHandle, r as DEFAULT_API_ORIGIN, s as DOCUMENT_TYPE_ORDER, t as DeriveStepEnv, u as DocumentCaptureEvents, v as DocumentCaptureState, w as DocumentFeedback, x as DocumentFeedbackKey, y as DocumentGateUpdate, z as DocumentGuide, B as DocumentGuideMeasure, E as DocumentLiveMrzOptions, F as DocumentMrzUpdate, G as DocumentPoint, H as DocumentQuad, I as DocumentReticle, J as DocumentScanPhase, K as DocumentScanUpdate, L as DocumentSide, M as DocumentSnapshot, N as DocumentStepHandle, O as EidSnapshot, Q as EidStepHandle, R as EmailOtpSnapshot, S as EmailOtpStepHandle, T as EmailSource, U as GateHint, V as GateUpdate, W as ISSUER_CODES, X as IdentitySummarySnapshot, Y as IdentitySummaryStepHandle, Z as InLaneSwitch, _ as LivePhotoGateUpdate, $ as LivePhotoPlan, a0 as LivenessAssetsStatus, a1 as LivenessCaptureEvents, a2 as LivenessCaptureHandle, a3 as LivenessCaptureOptions, a4 as LivenessSnapshot, a5 as LivenessStartOptions, a6 as LivenessStepHandle, a7 as MethodSnapshot, a8 as MethodStepHandle, a9 as MobileRequiredSnapshot, aa as MobileRequiredStepHandle, ab as OtpChannel, ac as OtpNumberSource, ad as PLATFORM_UNSUPPORTED, ae as PhoneOtpSnapshot, af as PhoneOtpStepHandle, ag as PhotoSourceState, ah as PlanChoiceSnapshot, ai as PortraitCaptureEvents, aj as PortraitCaptureState, ak as PortraitGateUpdate, al as PortraitSnapshot, am as PortraitStartOptions, an as PortraitStepHandle, ao as PreloadLivenessAssetsOptions, ap as ProcessingSnapshot, aq as ProcessingStepHandle, ar as ReasonCode, as as RegistrySnapshot, at as RegistrySource, au as RegistryStepHandle, av as ResultDisplay, aw as ResultSnapshot, ax as ResultStepHandle, ay as SdkFailureReason, az as StepAttempts, aA as StepContext, aB as StepSnapshot, aC as UnsupportedReason, aD as UnsupportedSnapshot, aE as UnsupportedStepHandle, aF as Verification, aG as VerificationBusy, aH as VerificationEvents, aI as VerificationLocale, aJ as VerificationOptions, aK as VerificationResult, aL as VerificationStatus, aM as VerificationStep, aN as WEB_IDENTITY_METHODS, aO as acceptedIssuers, aP as acceptedTypesFor, aQ as cameraUnavailableCauseOf, aR as createLivenessCapture, aS as createVerification, aT as deriveStep, aU as flagOf, aV as getLivenessAssetsStatus, aW as laneOf, aX as otherOptions, aY as preloadLivenessAssets, aZ as releaseLivenessAssets, a_ as resolveAcceptedDocuments, a$ as sectionOf, b0 as subscribeLivenessAssets } from './create-verification-BP2L4rzV.cjs';
3
+ import { aN as ScreenRampColour } from './types-Cjnp1o8i.cjs';
4
+ export { A as AcceptedDocumentType, aO as AgeEstimationReason, aP as CameraUnavailableCause, aQ as CaptureIssueReport, b as CaptureMode, aR as CaptureProvenance, f as CheckReason, g as CheckState, h as CheckType, i as ClosedBy, l as ContactChannel, D as DecisionReason, o as DocReason, E as EidAfterPass, q as EidAuthInput, r as EidReason, t as EmailOtpReason, u as FaceMatchReason, H as HostedAcceptedDocuments, aS as HostedBranding, aT as HostedBrandingColorKey, v as HostedCaptureTuning, w as HostedConsentView, x as HostedDocumentCaptureTuning, y as HostedDocumentScanTuning, z as HostedDocumentsView, B as HostedEidView, G as HostedEmailOtpView, I as HostedFlowRef, J as HostedIcaoPolicy, K as HostedIntegrity, L as HostedLivePhotoTuning, aU as HostedLivenessCaptureTuning, M as HostedNativeCaptureTuning, N as HostedOcrTuning, O as HostedOtpView, P as HostedPlanView, Q as HostedPortraitPendingFix, R as HostedPortraitView, S as HostedSessionView, T as HostedSimulationView, U as HostedStepView, V as HostedTesterGateView, W as HostedVoiceLocale, X as HostedVoiceView, aV as IcaoCaptureTuning, Y as IcaoCriterion, Z as IcaoReportEntry, _ as IdentityConfirmDecision, $ as IdentityMethod, a0 as IdentitySummarySource, a1 as IdentitySummaryView, a4 as LivenessReason, a5 as MatchReason, a7 as MethodChoiceView, a8 as NationalEidOption, a9 as NfcChipReason, aa as NfcStepView, ab as OtpChoiceView, ac as PhoneCountryRule, ad as PhoneFormat, af as PhoneOtpReason, ag as PhotoSource, ah as PhotoSourcePick, ai as PlanAttempts, aj as PlanChoiceKind, ak as PlanChoiceOption, al as PlanChoiceView, am as PlanSectionView, an as PlanStepView, ap as PopulationReason, aq as PortraitFix, ar as PortraitFixReviewInput, as as PortraitIcaoInput, at as PortraitIcaoReason, au as PortraitOutputFormat, ay as ResolvedCaptureMode, aW as RetakeHint, aX as ScreenRampChallenge, aY as ScreenRampPaint, aZ as ScreenRampRendered, a_ as ScreenRampReport, az as SessionDecidingStep, aA as SessionFailureReason, aB as SessionReason, aC as SessionStatus, aF as SimulatedCaptureInput, aG as StepResult, aH as StepSection, aJ as TesterGateInput, aK as TesterGateResponse, aL as VerificationAssurance, aM as VerificationLevel } from './types-Cjnp1o8i.cjs';
5
5
  export { OpenHostedOptions, PopupBlocked, PopupHandle, SEKYRO_EVENTS, SekyroEvent, SekyroEventName, openHosted } from './popup/index.cjs';
6
- export { H as HostedApiError, a as HostedErrorDetails, b as HostedErrorIssue, K as KNOWN_CODES, c as KnownCode, i as icaoPolicyOf, d as isKnownCode } from './icao-policy-MRB8NMAu.cjs';
7
- export { c as HeadPose, I as IcaoCoachKey, d as IcaoCriterionState, e as IcaoGateCriterion, f as IcaoGateSummary, g as IcaoGateUpdate } from './icao-gate-DvzOzHq6.cjs';
8
- import './detect-worker-DclNxkZT.cjs';
9
- import './capture-session-v3-26FgzBIl.cjs';
6
+ export { H as HostedApiError, a as HostedErrorDetails, b as HostedErrorIssue, K as KNOWN_CODES, c as KnownCode, i as icaoPolicyOf, d as isKnownCode } from './icao-policy-Cizs5guu.cjs';
7
+ export { c as HeadPose, I as IcaoCoachKey, d as IcaoCriterionState, e as IcaoGateCriterion, f as IcaoGateSummary, g as IcaoGateUpdate } from './icao-gate-CIXjbPCL.cjs';
8
+ import './detect-worker-CHqsPJoM.cjs';
9
+ import './capture-session-v3-CFXYS0Pg.cjs';
10
10
 
11
- /** Each colour holds for 400 ms (the service measures the mean chroma per segment). */
12
- declare const SCREEN_RAMP_SEGMENT_MS = 400;
13
- /** The layer returns to transparent at 2,000 ms on the clip timeline (before the 2,500 ms clip ends). */
14
- declare const SCREEN_RAMP_END_MS = 2000;
15
11
  /** The closed palette, in the order the backend lists it. */
16
12
  declare const SCREEN_RAMP_COLOURS: readonly ScreenRampColour[];
17
- /** The CSS colour of a palette entry (`rgb(r, g, b)`). */
18
- declare function screenRampColourValue(colour: ScreenRampColour): string;
13
+ /** The CSS colour of a palette entry or of the dark gap (`rgb(r, g, b)`). */
14
+ declare function screenRampColourValue(colour: ScreenRampColour | "dark"): string;
19
15
 
20
16
  /** Camera permission as the Permissions API reports it; `'unknown'` where it cannot tell. */
21
17
  type CameraPermissionState = "granted" | "prompt" | "denied" | "unknown";
@@ -108,4 +104,4 @@ declare function createPortraitCapture(options: PortraitCaptureOptions): Portrai
108
104
  /** Prefetch the portrait engine (call when the portrait step mounts). */
109
105
  declare function warmPortraitCapture(): void;
110
106
 
111
- export { type CameraPermissionState, DocumentCaptureHandle, DocumentCaptureOptions, type IdNumber, type IdNumberType, InvalidInputError, OtpInputError, PortraitCaptureHandle, PortraitCaptureOptions, SCREEN_RAMP_COLOURS, SCREEN_RAMP_END_MS, SCREEN_RAMP_SEGMENT_MS, ScreenRampColour, createDocumentCapture, createPortraitCapture, hasMultipleCameras, isValidIdNumber, isValidNni, normalizeDigits, normalizeNni, queryCameraPermission, screenRampColourValue, subscribeCameraPermission, warmDocumentCapture, warmPortraitCapture };
107
+ export { type CameraPermissionState, DocumentCaptureHandle, DocumentCaptureOptions, type IdNumber, type IdNumberType, InvalidInputError, OtpInputError, PortraitCaptureHandle, PortraitCaptureOptions, SCREEN_RAMP_COLOURS, ScreenRampColour, createDocumentCapture, createPortraitCapture, hasMultipleCameras, isValidIdNumber, isValidNni, normalizeDigits, normalizeNni, queryCameraPermission, screenRampColourValue, subscribeCameraPermission, warmDocumentCapture, warmPortraitCapture };
package/dist/index.d.ts CHANGED
@@ -1,21 +1,17 @@
1
- import { D as DocumentCaptureOptions, a as DocumentCaptureHandle, P as PortraitCaptureOptions, b as PortraitCaptureHandle } from './create-verification-KlHIU4Fy.js';
2
- export { A as AcceptedDocumentsLike, C as CameraFacing, c as CaptureChannel, d as CaptureEngineId, e as CaptureError, f as CaptureErrorDetail, g as CaptureErrorKind, h as CaptureErrorPhase, i as CaptureState, j as CapturedArtifacts, k as CapturedDocument, l as CapturedPortrait, m as ChoiceOptionSnapshot, n as ChoiceSnapshot, o as ChoiceStepHandle, p as ContactChoiceSnapshot, q as ContactChoiceStepHandle, r as DEFAULT_API_ORIGIN, s as DOCUMENT_TYPE_ORDER, t as DeriveStepEnv, u as DocumentCaptureEvents, v as DocumentCaptureState, w as DocumentFeedback, x as DocumentFeedbackKey, y as DocumentGateUpdate, z as DocumentGuide, B as DocumentGuideMeasure, E as DocumentLiveMrzOptions, F as DocumentMrzUpdate, G as DocumentPoint, H as DocumentQuad, I as DocumentReticle, J as DocumentScanPhase, K as DocumentScanUpdate, L as DocumentSide, M as DocumentSnapshot, N as DocumentStepHandle, O as EidSnapshot, Q as EidStepHandle, R as EmailOtpSnapshot, S as EmailOtpStepHandle, T as EmailSource, U as GateHint, V as GateUpdate, W as ISSUER_CODES, X as IdentitySummarySnapshot, Y as IdentitySummaryStepHandle, Z as InLaneSwitch, _ as LivePhotoGateUpdate, $ as LivePhotoPlan, a0 as LivenessAssetsStatus, a1 as LivenessCaptureEvents, a2 as LivenessCaptureHandle, a3 as LivenessCaptureOptions, a4 as LivenessSnapshot, a5 as LivenessStartOptions, a6 as LivenessStepHandle, a7 as MethodSnapshot, a8 as MethodStepHandle, a9 as MobileRequiredSnapshot, aa as MobileRequiredStepHandle, ab as OtpChannel, ac as OtpNumberSource, ad as PLATFORM_UNSUPPORTED, ae as PhoneOtpSnapshot, af as PhoneOtpStepHandle, ag as PhotoSourceState, ah as PlanChoiceSnapshot, ai as PortraitCaptureEvents, aj as PortraitCaptureState, ak as PortraitGateUpdate, al as PortraitSnapshot, am as PortraitStartOptions, an as PortraitStepHandle, ao as PreloadLivenessAssetsOptions, ap as ProcessingSnapshot, aq as ProcessingStepHandle, ar as ReasonCode, as as RegistrySnapshot, at as RegistrySource, au as RegistryStepHandle, av as ResultDisplay, aw as ResultSnapshot, ax as ResultStepHandle, ay as SdkFailureReason, az as StepAttempts, aA as StepContext, aB as StepSnapshot, aC as UnsupportedReason, aD as UnsupportedSnapshot, aE as UnsupportedStepHandle, aF as Verification, aG as VerificationBusy, aH as VerificationEvents, aI as VerificationLocale, aJ as VerificationOptions, aK as VerificationResult, aL as VerificationStatus, aM as VerificationStep, aN as WEB_IDENTITY_METHODS, aO as acceptedIssuers, aP as acceptedTypesFor, aQ as cameraUnavailableCauseOf, aR as createLivenessCapture, aS as createVerification, aT as deriveStep, aU as flagOf, aV as getLivenessAssetsStatus, aW as laneOf, aX as otherOptions, aY as preloadLivenessAssets, aZ as releaseLivenessAssets, a_ as resolveAcceptedDocuments, a$ as sectionOf, b0 as subscribeLivenessAssets } from './create-verification-KlHIU4Fy.js';
3
- import { aI as ScreenRampColour } from './types-C_XP92JQ.js';
4
- export { A as AcceptedDocumentType, aJ as AgeEstimationReason, aK as CameraUnavailableCause, aL as CaptureIssueReport, b as CaptureMode, aM as CaptureProvenance, f as CheckReason, g as CheckState, h as CheckType, k as ContactChannel, D as DecisionReason, n as DocReason, E as EidAfterPass, p as EidAuthInput, q as EidReason, s as EmailOtpReason, t as FaceMatchReason, H as HostedAcceptedDocuments, aN as HostedBranding, aO as HostedBrandingColorKey, u as HostedCaptureTuning, v as HostedConsentView, w as HostedDocumentCaptureTuning, x as HostedDocumentScanTuning, y as HostedDocumentsView, z as HostedEidView, B as HostedEmailOtpView, G as HostedFlowRef, I as HostedIcaoPolicy, J as HostedIntegrity, K as HostedLivePhotoTuning, aP as HostedLivenessCaptureTuning, L as HostedNativeCaptureTuning, M as HostedOcrTuning, N as HostedOtpView, O as HostedPlanView, P as HostedPortraitPendingFix, Q as HostedPortraitView, R as HostedSessionView, S as HostedSimulationView, T as HostedStepView, U as HostedVoiceLocale, V as HostedVoiceView, aQ as IcaoCaptureTuning, W as IcaoCriterion, X as IcaoReportEntry, Y as IdentityConfirmDecision, Z as IdentityMethod, _ as IdentitySummarySource, $ as IdentitySummaryView, a2 as LivenessReason, a3 as MatchReason, a5 as MethodChoiceView, a6 as NationalEidOption, a7 as NfcChipReason, a8 as NfcStepView, a9 as OtpChoiceView, aa as PhoneCountryRule, ab as PhoneFormat, ad as PhoneOtpReason, ae as PhotoSource, af as PhotoSourcePick, ag as PlanAttempts, ah as PlanChoiceKind, ai as PlanChoiceOption, aj as PlanChoiceView, ak as PlanSectionView, al as PlanStepView, am as PolicyFailureReason, ao as PopulationReason, ap as PortraitFix, aq as PortraitFixReviewInput, ar as PortraitIcaoInput, as as PortraitIcaoReason, at as PortraitOutputFormat, ax as ResolvedCaptureMode, aR as RetakeHint, aS as ScreenRampChallenge, aT as ScreenRampRendered, aU as ScreenRampReport, ay as SessionFailureReason, az as SessionOutcome, aA as SessionStatus, aD as SimulatedCaptureInput, aE as StepSection, aG as VerificationAssurance, aH as VerificationLevel } from './types-C_XP92JQ.js';
1
+ import { D as DocumentCaptureOptions, a as DocumentCaptureHandle, P as PortraitCaptureOptions, b as PortraitCaptureHandle } from './create-verification-Dc1Rd-4T.js';
2
+ export { A as AcceptedDocumentsLike, C as CameraFacing, c as CaptureChannel, d as CaptureEngineId, e as CaptureError, f as CaptureErrorDetail, g as CaptureErrorKind, h as CaptureErrorPhase, i as CaptureState, j as CapturedArtifacts, k as CapturedDocument, l as CapturedPortrait, m as ChoiceOptionSnapshot, n as ChoiceSnapshot, o as ChoiceStepHandle, p as ContactChoiceSnapshot, q as ContactChoiceStepHandle, r as DEFAULT_API_ORIGIN, s as DOCUMENT_TYPE_ORDER, t as DeriveStepEnv, u as DocumentCaptureEvents, v as DocumentCaptureState, w as DocumentFeedback, x as DocumentFeedbackKey, y as DocumentGateUpdate, z as DocumentGuide, B as DocumentGuideMeasure, E as DocumentLiveMrzOptions, F as DocumentMrzUpdate, G as DocumentPoint, H as DocumentQuad, I as DocumentReticle, J as DocumentScanPhase, K as DocumentScanUpdate, L as DocumentSide, M as DocumentSnapshot, N as DocumentStepHandle, O as EidSnapshot, Q as EidStepHandle, R as EmailOtpSnapshot, S as EmailOtpStepHandle, T as EmailSource, U as GateHint, V as GateUpdate, W as ISSUER_CODES, X as IdentitySummarySnapshot, Y as IdentitySummaryStepHandle, Z as InLaneSwitch, _ as LivePhotoGateUpdate, $ as LivePhotoPlan, a0 as LivenessAssetsStatus, a1 as LivenessCaptureEvents, a2 as LivenessCaptureHandle, a3 as LivenessCaptureOptions, a4 as LivenessSnapshot, a5 as LivenessStartOptions, a6 as LivenessStepHandle, a7 as MethodSnapshot, a8 as MethodStepHandle, a9 as MobileRequiredSnapshot, aa as MobileRequiredStepHandle, ab as OtpChannel, ac as OtpNumberSource, ad as PLATFORM_UNSUPPORTED, ae as PhoneOtpSnapshot, af as PhoneOtpStepHandle, ag as PhotoSourceState, ah as PlanChoiceSnapshot, ai as PortraitCaptureEvents, aj as PortraitCaptureState, ak as PortraitGateUpdate, al as PortraitSnapshot, am as PortraitStartOptions, an as PortraitStepHandle, ao as PreloadLivenessAssetsOptions, ap as ProcessingSnapshot, aq as ProcessingStepHandle, ar as ReasonCode, as as RegistrySnapshot, at as RegistrySource, au as RegistryStepHandle, av as ResultDisplay, aw as ResultSnapshot, ax as ResultStepHandle, ay as SdkFailureReason, az as StepAttempts, aA as StepContext, aB as StepSnapshot, aC as UnsupportedReason, aD as UnsupportedSnapshot, aE as UnsupportedStepHandle, aF as Verification, aG as VerificationBusy, aH as VerificationEvents, aI as VerificationLocale, aJ as VerificationOptions, aK as VerificationResult, aL as VerificationStatus, aM as VerificationStep, aN as WEB_IDENTITY_METHODS, aO as acceptedIssuers, aP as acceptedTypesFor, aQ as cameraUnavailableCauseOf, aR as createLivenessCapture, aS as createVerification, aT as deriveStep, aU as flagOf, aV as getLivenessAssetsStatus, aW as laneOf, aX as otherOptions, aY as preloadLivenessAssets, aZ as releaseLivenessAssets, a_ as resolveAcceptedDocuments, a$ as sectionOf, b0 as subscribeLivenessAssets } from './create-verification-Dc1Rd-4T.js';
3
+ import { aN as ScreenRampColour } from './types-Cjnp1o8i.js';
4
+ export { A as AcceptedDocumentType, aO as AgeEstimationReason, aP as CameraUnavailableCause, aQ as CaptureIssueReport, b as CaptureMode, aR as CaptureProvenance, f as CheckReason, g as CheckState, h as CheckType, i as ClosedBy, l as ContactChannel, D as DecisionReason, o as DocReason, E as EidAfterPass, q as EidAuthInput, r as EidReason, t as EmailOtpReason, u as FaceMatchReason, H as HostedAcceptedDocuments, aS as HostedBranding, aT as HostedBrandingColorKey, v as HostedCaptureTuning, w as HostedConsentView, x as HostedDocumentCaptureTuning, y as HostedDocumentScanTuning, z as HostedDocumentsView, B as HostedEidView, G as HostedEmailOtpView, I as HostedFlowRef, J as HostedIcaoPolicy, K as HostedIntegrity, L as HostedLivePhotoTuning, aU as HostedLivenessCaptureTuning, M as HostedNativeCaptureTuning, N as HostedOcrTuning, O as HostedOtpView, P as HostedPlanView, Q as HostedPortraitPendingFix, R as HostedPortraitView, S as HostedSessionView, T as HostedSimulationView, U as HostedStepView, V as HostedTesterGateView, W as HostedVoiceLocale, X as HostedVoiceView, aV as IcaoCaptureTuning, Y as IcaoCriterion, Z as IcaoReportEntry, _ as IdentityConfirmDecision, $ as IdentityMethod, a0 as IdentitySummarySource, a1 as IdentitySummaryView, a4 as LivenessReason, a5 as MatchReason, a7 as MethodChoiceView, a8 as NationalEidOption, a9 as NfcChipReason, aa as NfcStepView, ab as OtpChoiceView, ac as PhoneCountryRule, ad as PhoneFormat, af as PhoneOtpReason, ag as PhotoSource, ah as PhotoSourcePick, ai as PlanAttempts, aj as PlanChoiceKind, ak as PlanChoiceOption, al as PlanChoiceView, am as PlanSectionView, an as PlanStepView, ap as PopulationReason, aq as PortraitFix, ar as PortraitFixReviewInput, as as PortraitIcaoInput, at as PortraitIcaoReason, au as PortraitOutputFormat, ay as ResolvedCaptureMode, aW as RetakeHint, aX as ScreenRampChallenge, aY as ScreenRampPaint, aZ as ScreenRampRendered, a_ as ScreenRampReport, az as SessionDecidingStep, aA as SessionFailureReason, aB as SessionReason, aC as SessionStatus, aF as SimulatedCaptureInput, aG as StepResult, aH as StepSection, aJ as TesterGateInput, aK as TesterGateResponse, aL as VerificationAssurance, aM as VerificationLevel } from './types-Cjnp1o8i.js';
5
5
  export { OpenHostedOptions, PopupBlocked, PopupHandle, SEKYRO_EVENTS, SekyroEvent, SekyroEventName, openHosted } from './popup/index.js';
6
- export { H as HostedApiError, a as HostedErrorDetails, b as HostedErrorIssue, K as KNOWN_CODES, c as KnownCode, i as icaoPolicyOf, d as isKnownCode } from './icao-policy-DztbA50-.js';
7
- export { c as HeadPose, I as IcaoCoachKey, d as IcaoCriterionState, e as IcaoGateCriterion, f as IcaoGateSummary, g as IcaoGateUpdate } from './icao-gate-DI8VePWd.js';
8
- import './detect-worker-DclNxkZT.js';
9
- import './capture-session-v3-ZO0QOeQH.js';
6
+ export { H as HostedApiError, a as HostedErrorDetails, b as HostedErrorIssue, K as KNOWN_CODES, c as KnownCode, i as icaoPolicyOf, d as isKnownCode } from './icao-policy-DI4kU6Mv.js';
7
+ export { c as HeadPose, I as IcaoCoachKey, d as IcaoCriterionState, e as IcaoGateCriterion, f as IcaoGateSummary, g as IcaoGateUpdate } from './icao-gate-COt4O4h_.js';
8
+ import './detect-worker-CHqsPJoM.js';
9
+ import './capture-session-v3-DID39wUZ.js';
10
10
 
11
- /** Each colour holds for 400 ms (the service measures the mean chroma per segment). */
12
- declare const SCREEN_RAMP_SEGMENT_MS = 400;
13
- /** The layer returns to transparent at 2,000 ms on the clip timeline (before the 2,500 ms clip ends). */
14
- declare const SCREEN_RAMP_END_MS = 2000;
15
11
  /** The closed palette, in the order the backend lists it. */
16
12
  declare const SCREEN_RAMP_COLOURS: readonly ScreenRampColour[];
17
- /** The CSS colour of a palette entry (`rgb(r, g, b)`). */
18
- declare function screenRampColourValue(colour: ScreenRampColour): string;
13
+ /** The CSS colour of a palette entry or of the dark gap (`rgb(r, g, b)`). */
14
+ declare function screenRampColourValue(colour: ScreenRampColour | "dark"): string;
19
15
 
20
16
  /** Camera permission as the Permissions API reports it; `'unknown'` where it cannot tell. */
21
17
  type CameraPermissionState = "granted" | "prompt" | "denied" | "unknown";
@@ -108,4 +104,4 @@ declare function createPortraitCapture(options: PortraitCaptureOptions): Portrai
108
104
  /** Prefetch the portrait engine (call when the portrait step mounts). */
109
105
  declare function warmPortraitCapture(): void;
110
106
 
111
- export { type CameraPermissionState, DocumentCaptureHandle, DocumentCaptureOptions, type IdNumber, type IdNumberType, InvalidInputError, OtpInputError, PortraitCaptureHandle, PortraitCaptureOptions, SCREEN_RAMP_COLOURS, SCREEN_RAMP_END_MS, SCREEN_RAMP_SEGMENT_MS, ScreenRampColour, createDocumentCapture, createPortraitCapture, hasMultipleCameras, isValidIdNumber, isValidNni, normalizeDigits, normalizeNni, queryCameraPermission, screenRampColourValue, subscribeCameraPermission, warmDocumentCapture, warmPortraitCapture };
107
+ export { type CameraPermissionState, DocumentCaptureHandle, DocumentCaptureOptions, type IdNumber, type IdNumberType, InvalidInputError, OtpInputError, PortraitCaptureHandle, PortraitCaptureOptions, SCREEN_RAMP_COLOURS, ScreenRampColour, createDocumentCapture, createPortraitCapture, hasMultipleCameras, isValidIdNumber, isValidNni, normalizeDigits, normalizeNni, queryCameraPermission, screenRampColourValue, subscribeCameraPermission, warmDocumentCapture, warmPortraitCapture };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{a as ee,c as te}from"./chunk-SNACCYTL.js";import{a as Y,f as z,h as W,i as f,j as y,k as h,l as P,m as v,n as J,o as q,p as Q,q as X,r as j,t as $}from"./chunk-ZADZTM3M.js";import{C,D as S}from"./chunk-H3HVCWLF.js";import{e as G,f as U,g as B,h as F,o as K}from"./chunk-P3H3D33O.js";import{b as x,c as b,d as V}from"./chunk-GT2ZLGF7.js";import{g as O,h as I,i as N,j as T}from"./chunk-7Q4YPMAF.js";import"./chunk-FUHDOEBP.js";import"./chunk-POIQGEZM.js";import"./chunk-CQ7SKLMC.js";import"./chunk-FPXL63KZ.js";import{a as w,b as k,c as _,h as Z}from"./chunk-B2X33ZW2.js";import"./chunk-VIAT4DEA.js";import"./chunk-OKWG3PVH.js";function oe(e){if(e==="permission")return"denied";if(e==="notfound"||e==="insecure"||e==="unsupported")return"no_camera"}var re=/^[A-Z0-9][A-Z0-9 -]{0,39}$/,ne=Object.freeze({normalize:e=>e.trim().toUpperCase().replace(/\s+/g," "),check:e=>re.test(e),registrySources:Object.freeze([]),describe:"number must be 1 to 40 letters, digits, spaces or hyphens"});function ie(e){return typeof e=="string"&&/^\d{10}$/.test(e)&&Number(e)%97===1}var ae=Object.freeze({normalize:e=>e.trim(),check:e=>ie(e),registrySources:Object.freeze(["MR.anrpts"]),describe:"number must be the 10-digit Mauritanian national ID number with a valid check digit"}),se=Object.freeze({"MR:national_id":ae});function m(e,t){return se[`${e.toUpperCase()}:${t}`]??ne}var pe=Object.freeze({MRT:"MR"});function R(e,t){let r=e.trim().toUpperCase();return m(pe[r]??r,t)}function ue(e){let t=R(e.issuingCountry,e.type);return t.check(t.normalize(e.number))}function de(e){return m("MR","national_id").check(e)}function g(e){let t="";for(let r of e){let n=r.codePointAt(0)??0;n>=1632&&n<=1641?t+=String(n-1632):n>=1776&&n<=1785?t+=String(n-1776):r!==" "&&r!=="-"&&r!==" "&&(t+=r)}return t}function ce(e){return g(e)}var Le=f,Oe=y,Ie=h,Ne=P,Te=v;var M=()=>import("./create-document-capture-23R2F47A.js");function E(e){let t=null,r=null,n=!1,u=null,l=null,d=[],i=(o,s)=>{o.off=s.on(o.event,o.handler)},a=()=>(r??(r=M().then(o=>{if(n)return null;let s=o.createDocumentCaptureInternal(e,{}).handle;for(let c of d)c.removed||i(c,s);return u!==null&&s.setSide(u),l!==null&&s.setGuide(l.guide),t=s,s})),r),p=()=>a().catch(()=>{if(r=null,!n)for(let o of d)!o.removed&&o.event==="error"&&o.handler({kind:"generic",retryable:!0});return null});return{get state(){return t?.state??"idle"},on:(o,s)=>{let c={event:o,handler:s,off:null,removed:!1};return d.push(c),t!==null&&i(c,t),()=>{c.removed=!0,c.off?.()}},start:async()=>{let o=await p();o!==null&&!n&&await o.start()},retry:()=>{t!==null?t.retry():p().then(o=>o?.start())},setSide:o=>{t!==null?t.setSide(o):u=o},shutter:()=>t?.shutter(),setTorch:o=>t?.setTorch(o),focusAt:(o,s)=>t?.focusAt(o,s),setGuide:o=>{t!==null?t.setGuide(o):l={guide:o}},destroy:()=>{n=!0,t?.destroy(),t=null,d.length=0}}}function H(){M().then(e=>e.warmDocumentCapture()).catch(()=>{})}function Ue(e){return E(e)}function Be(){H()}var D=()=>import("./create-portrait-capture-AGFHECK7.js");function A(e){let t=null,r=null,n=!1,u=[],l=(i,a)=>{i.off=a.on(i.event,i.handler)},d=()=>(r??(r=D().then(i=>{if(n)return null;let a=i.createPortraitCaptureInternal(e).handle;for(let p of u)p.removed||l(p,a);return t=a,a})),r);return{get state(){return t?.state??"idle"},get captureMode(){return t?.captureMode??"self"},get facingMode(){return t?.facingMode??"user"},on:(i,a)=>{let p={event:i,handler:a,off:null,removed:!1};return u.push(p),t!==null&&l(p,t),()=>{p.removed=!0,p.off?.()}},start:async i=>{let a=await d();a!==null&&!n&&await a.start(i)},retry:()=>{t!==null?t.retry():d().then(i=>i?.start())},switchCamera:()=>t?.switchCamera()??!1,destroy:()=>{n=!0,t?.destroy(),t=null,u.length=0}}}function L(){D().then(e=>e.warmPortraitCapture()).catch(()=>{})}function _e(e){return A(e)}function Ze(){L()}export{Y as DEFAULT_API_ORIGIN,Le as DOCUMENT_TYPE_ORDER,_ as HostedApiError,W as ISSUER_CODES,C as InvalidInputError,w as KNOWN_CODES,S as OtpInputError,q as PLATFORM_UNSUPPORTED,N as SCREEN_RAMP_COLOURS,I as SCREEN_RAMP_END_MS,O as SCREEN_RAMP_SEGMENT_MS,ee as SEKYRO_EVENTS,J as WEB_IDENTITY_METHODS,Ie as acceptedIssuers,Oe as acceptedTypesFor,oe as cameraUnavailableCauseOf,Ue as createDocumentCapture,K as createLivenessCapture,_e as createPortraitCapture,z as createVerification,$ as deriveStep,Te as flagOf,U as getLivenessAssetsStatus,V as hasMultipleCameras,Z as icaoPolicyOf,k as isKnownCode,ue as isValidIdNumber,de as isValidNni,X as laneOf,g as normalizeDigits,ce as normalizeNni,te as openHosted,j as otherOptions,G as preloadLivenessAssets,x as queryCameraPermission,F as releaseLivenessAssets,Ne as resolveAcceptedDocuments,T as screenRampColourValue,Q as sectionOf,b as subscribeCameraPermission,B as subscribeLivenessAssets,Be as warmDocumentCapture,Ze as warmPortraitCapture};
1
+ import{a as j,c as $}from"./chunk-LJYMZQY2.js";import{a as _,f as Z,h as Y,i as f,j as y,k as h,l as P,m as v,n as z,o as W,p as J,q,r as Q,t as X}from"./chunk-RPVI2OGR.js";import{D as C,E as S}from"./chunk-X6UIO5E3.js";import{e as b,f as V,g as G,h as U,o as B}from"./chunk-5DTWBDCP.js";import{b as T,c as N,d as x}from"./chunk-7QZWBDI5.js";import{o as O,p as I}from"./chunk-PBLZ5W7P.js";import"./chunk-SX7TUC3V.js";import"./chunk-POIQGEZM.js";import"./chunk-CPUECYAJ.js";import"./chunk-FPXL63KZ.js";import{a as w,b as F,c as K,h as k}from"./chunk-JWEHH2MS.js";import"./chunk-TSA6GHUG.js";import"./chunk-JYU5YHXN.js";import"./chunk-FSSMUAKC.js";function ee(e){if(e==="permission")return"denied";if(e==="notfound"||e==="insecure"||e==="unsupported")return"no_camera"}var te=/^[A-Z0-9][A-Z0-9 -]{0,39}$/,oe=Object.freeze({normalize:e=>e.trim().toUpperCase().replace(/\s+/g," "),check:e=>te.test(e),registrySources:Object.freeze([]),describe:"number must be 1 to 40 letters, digits, spaces or hyphens"});function re(e){return typeof e=="string"&&/^\d{10}$/.test(e)&&Number(e)%97===1}var ne=Object.freeze({normalize:e=>e.trim(),check:e=>re(e),registrySources:Object.freeze(["MR.anrpts"]),describe:"number must be the 10-digit Mauritanian national ID number with a valid check digit"}),ie=Object.freeze({"MR:national_id":ne});function m(e,t){return ie[`${e.toUpperCase()}:${t}`]??oe}var ae=Object.freeze({MRT:"MR"});function R(e,t){let r=e.trim().toUpperCase();return m(ae[r]??r,t)}function se(e){let t=R(e.issuingCountry,e.type);return t.check(t.normalize(e.number))}function pe(e){return m("MR","national_id").check(e)}function g(e){let t="";for(let r of e){let n=r.codePointAt(0)??0;n>=1632&&n<=1641?t+=String(n-1632):n>=1776&&n<=1785?t+=String(n-1776):r!==" "&&r!=="-"&&r!==" "&&(t+=r)}return t}function ue(e){return g(e)}var De=f,Ae=y,Le=h,Oe=P,Ie=v;var M=()=>import("./create-document-capture-K5PDVOGV.js");function H(e){let t=null,r=null,n=!1,u=null,l=null,d=[],i=(o,s)=>{o.off=s.on(o.event,o.handler)},a=()=>(r??(r=M().then(o=>{if(n)return null;let s=o.createDocumentCaptureInternal(e,{}).handle;for(let c of d)c.removed||i(c,s);return u!==null&&s.setSide(u),l!==null&&s.setGuide(l.guide),t=s,s})),r),p=()=>a().catch(()=>{if(r=null,!n)for(let o of d)!o.removed&&o.event==="error"&&o.handler({kind:"generic",retryable:!0});return null});return{get state(){return t?.state??"idle"},on:(o,s)=>{let c={event:o,handler:s,off:null,removed:!1};return d.push(c),t!==null&&i(c,t),()=>{c.removed=!0,c.off?.()}},start:async()=>{let o=await p();o!==null&&!n&&await o.start()},retry:()=>{t!==null?t.retry():p().then(o=>o?.start())},setSide:o=>{t!==null?t.setSide(o):u=o},shutter:()=>t?.shutter(),setTorch:o=>t?.setTorch(o),focusAt:(o,s)=>t?.focusAt(o,s),setGuide:o=>{t!==null?t.setGuide(o):l={guide:o}},destroy:()=>{n=!0,t?.destroy(),t=null,d.length=0}}}function E(){M().then(e=>e.warmDocumentCapture()).catch(()=>{})}function Ve(e){return H(e)}function Ge(){E()}var D=()=>import("./create-portrait-capture-5VGYZUOK.js");function A(e){let t=null,r=null,n=!1,u=[],l=(i,a)=>{i.off=a.on(i.event,i.handler)},d=()=>(r??(r=D().then(i=>{if(n)return null;let a=i.createPortraitCaptureInternal(e).handle;for(let p of u)p.removed||l(p,a);return t=a,a})),r);return{get state(){return t?.state??"idle"},get captureMode(){return t?.captureMode??"self"},get facingMode(){return t?.facingMode??"user"},on:(i,a)=>{let p={event:i,handler:a,off:null,removed:!1};return u.push(p),t!==null&&l(p,t),()=>{p.removed=!0,p.off?.()}},start:async i=>{let a=await d();a!==null&&!n&&await a.start(i)},retry:()=>{t!==null?t.retry():d().then(i=>i?.start())},switchCamera:()=>t?.switchCamera()??!1,canSwitchCaptureMode:async()=>!1,setCaptureMode:async()=>!1,destroy:()=>{n=!0,t?.destroy(),t=null,u.length=0}}}function L(){D().then(e=>e.warmPortraitCapture()).catch(()=>{})}function Ke(e){return A(e)}function ke(){L()}export{_ as DEFAULT_API_ORIGIN,De as DOCUMENT_TYPE_ORDER,K as HostedApiError,Y as ISSUER_CODES,C as InvalidInputError,w as KNOWN_CODES,S as OtpInputError,W as PLATFORM_UNSUPPORTED,O as SCREEN_RAMP_COLOURS,j as SEKYRO_EVENTS,z as WEB_IDENTITY_METHODS,Le as acceptedIssuers,Ae as acceptedTypesFor,ee as cameraUnavailableCauseOf,Ve as createDocumentCapture,B as createLivenessCapture,Ke as createPortraitCapture,Z as createVerification,X as deriveStep,Ie as flagOf,V as getLivenessAssetsStatus,x as hasMultipleCameras,k as icaoPolicyOf,F as isKnownCode,se as isValidIdNumber,pe as isValidNni,q as laneOf,g as normalizeDigits,ue as normalizeNni,$ as openHosted,Q as otherOptions,b as preloadLivenessAssets,T as queryCameraPermission,U as releaseLivenessAssets,Oe as resolveAcceptedDocuments,I as screenRampColourValue,J as sectionOf,N as subscribeCameraPermission,G as subscribeLivenessAssets,Ge as warmDocumentCapture,ke as warmPortraitCapture};