/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/capacitor-plugin-scanbot-sdk@8.0.0/dist/plugin.cjs.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
"use strict";var core=require("@capacitor/core");class ToJsonConfiguration{constructor(e={}){this.serializeImages=!0,this.imageSerializationMode="REFERENCE",void 0!==e.serializeImages&&(this.serializeImages=e.serializeImages),void 0!==e.imageSerializationMode&&(this.imageSerializationMode=e.imageSerializationMode)}serialize(e=new ToJsonConfiguration){return{serializeImages:this.serializeImages,imageSerializationMode:this.imageSerializationMode}}}const ImageSerializationModeValues=["REFERENCE","BUFFER"],OutputModeValues=["BINARY","ANTIALIASED"],BinarizationFilterPresetValues=["PRESET_1","PRESET_2","PRESET_3","PRESET_4","PRESET_5"];exports.ParametricFilter=void 0,(exports.ParametricFilter||(exports.ParametricFilter={})).from=function(e){const t=e._type;switch(t){case"LegacyFilter":return new LegacyFilter(e);case"ScanbotBinarizationFilter":return new ScanbotBinarizationFilter(e);case"CustomBinarizationFilter":return new CustomBinarizationFilter(e);case"ColorDocumentFilter":return new ColorDocumentFilter(e);case"BrightnessFilter":return new BrightnessFilter(e);case"ContrastFilter":return new ContrastFilter(e);case"GrayscaleFilter":return new GrayscaleFilter(e);case"WhiteBlackPointFilter":return new WhiteBlackPointFilter(e);default:throw new Error(`Unknown child class name: ${t}`)}};class LegacyFilter{constructor(e={}){this._type="LegacyFilter",this.filterType=0,void 0!==e.filterType&&(this.filterType=e.filterType)}serialize(e=new ToJsonConfiguration){return{_type:this._type,filterType:this.filterType}}}class ScanbotBinarizationFilter{constructor(e={}){this._type="ScanbotBinarizationFilter",this.outputMode="BINARY",void 0!==e.outputMode&&(this.outputMode=e.outputMode)}serialize(e=new ToJsonConfiguration){return{_type:this._type,outputMode:this.outputMode}}}class CustomBinarizationFilter{constructor(e={}){this._type="CustomBinarizationFilter",this.outputMode="BINARY",this.denoise=.5,this.radius=32,this.preset="PRESET_4",void 0!==e.outputMode&&(this.outputMode=e.outputMode),void 0!==e.denoise&&(this.denoise=e.denoise),void 0!==e.radius&&(this.radius=e.radius),void 0!==e.preset&&(this.preset=e.preset)}serialize(e=new ToJsonConfiguration){return{_type:this._type,outputMode:this.outputMode,denoise:this.denoise,radius:this.radius,preset:this.preset}}}class ColorDocumentFilter{constructor(e={}){this._type="ColorDocumentFilter",this.contrastEnhancement=.5,this.colorEnhancement=.5,this.paperWhitening=1,this.paperWhiteningBias=0,void 0!==e.contrastEnhancement&&(this.contrastEnhancement=e.contrastEnhancement),void 0!==e.colorEnhancement&&(this.colorEnhancement=e.colorEnhancement),void 0!==e.paperWhitening&&(this.paperWhitening=e.paperWhitening),void 0!==e.paperWhiteningBias&&(this.paperWhiteningBias=e.paperWhiteningBias)}serialize(e=new ToJsonConfiguration){return{_type:this._type,contrastEnhancement:this.contrastEnhancement,colorEnhancement:this.colorEnhancement,paperWhitening:this.paperWhitening,paperWhiteningBias:this.paperWhiteningBias}}}class BrightnessFilter{constructor(e={}){this._type="BrightnessFilter",this.brightness=0,void 0!==e.brightness&&(this.brightness=e.brightness)}serialize(e=new ToJsonConfiguration){return{_type:this._type,brightness:this.brightness}}}class ContrastFilter{constructor(e={}){this._type="ContrastFilter",this.contrast=0,void 0!==e.contrast&&(this.contrast=e.contrast)}serialize(e=new ToJsonConfiguration){return{_type:this._type,contrast:this.contrast}}}class GrayscaleFilter{constructor(e={}){this._type="GrayscaleFilter",this.borderWidthFraction=.06,this.blackOutliersFraction=0,this.whiteOutliersFraction=.02,void 0!==e.borderWidthFraction&&(this.borderWidthFraction=e.borderWidthFraction),void 0!==e.blackOutliersFraction&&(this.blackOutliersFraction=e.blackOutliersFraction),void 0!==e.whiteOutliersFraction&&(this.whiteOutliersFraction=e.whiteOutliersFraction)}serialize(e=new ToJsonConfiguration){return{_type:this._type,borderWidthFraction:this.borderWidthFraction,blackOutliersFraction:this.blackOutliersFraction,whiteOutliersFraction:this.whiteOutliersFraction}}}class WhiteBlackPointFilter{constructor(e={}){this._type="WhiteBlackPointFilter",this.blackPoint=0,this.whitePoint=1,void 0!==e.blackPoint&&(this.blackPoint=e.blackPoint),void 0!==e.whitePoint&&(this.whitePoint=e.whitePoint)}serialize(e=new ToJsonConfiguration){return{_type:this._type,blackPoint:this.blackPoint,whitePoint:this.whitePoint}}}const PageBinarizationValues=["DISABLED","ENABLED","ENABLED_IF_BINARIZATION_FILTER_SET"];class AddPageOptions{constructor(e={}){this.filters=null,this.index=null,this.documentDetection=!0,void 0!==e.filters&&(this.filters=null!=e.filters?e.filters.map((e=>exports.ParametricFilter.from(e))):null),void 0!==e.index&&(this.index=null!=e.index?e.index:null),void 0!==e.documentDetection&&(this.documentDetection=e.documentDetection)}}class CreateDocumentOptions{constructor(e={}){this.documentImageSizeLimit=0,this.filters=null,this.documentDetection=!0,void 0!==e.documentImageSizeLimit&&(this.documentImageSizeLimit=e.documentImageSizeLimit),void 0!==e.filters&&(this.filters=null!=e.filters?e.filters.map((e=>exports.ParametricFilter.from(e))):null),void 0!==e.documentDetection&&(this.documentDetection=e.documentDetection)}}class SBError extends Error{constructor(e){super(e)}}class InvalidLicenseError extends SBError{constructor(e){super(e),this.type="InvalidLicense"}}class NullPointerError extends SBError{constructor(e){super(e),this.type="NullPointer"}}class InvalidArgumentError extends SBError{constructor(e){super(e),this.type="InvalidArgument"}}class InvalidImageRefError extends SBError{constructor(e){super(e),this.type="InvalidImageRef"}}class ComponentUnavailableError extends SBError{constructor(e){super(e),this.type="ComponentUnavailable"}}class IllegalStateError extends SBError{constructor(e){super(e),this.type="IllegalState"}}class IOError extends SBError{constructor(e){super(e),this.type="IOError"}}class InvalidDataError extends SBError{constructor(e){super(e),this.type="InvalidData"}}class OutOfMemoryError extends SBError{constructor(e){super(e),this.type="OutOfMemory"}}class TimeoutError extends SBError{constructor(e){super(e),this.type="Timeout"}}class UnknownError extends SBError{constructor(e){super(e),this.type="Unknown"}}class ProcessError extends SBError{constructor(e,t){super(e),this.type="ProcessError",this.code=t}}function createSBError(e){const t=Number(e.code),i=e.message||e.errorMessage||"An unknown error occurred";switch(t){case 1:return new UnknownError(i);case 2:return new InvalidLicenseError(i);case 3:return new NullPointerError(i);case 4:return new InvalidArgumentError(i);case 5:return new InvalidImageRefError(i);case 6:return new ComponentUnavailableError(i);case 7:return new IllegalStateError(i);case 8:return new IOError(i);case 9:return new InvalidDataError(i);case 11:return new OutOfMemoryError(i);case 12:return new TimeoutError(i);default:return t>=100?new ProcessError(i,t):new UnknownError(i)}}class ModifyPageOptions{constructor(e={}){this.rotation="NONE",this.polygon=null,this.filters=null,void 0!==e.rotation&&(this.rotation=e.rotation),void 0!==e.polygon&&(this.polygon=null!=e.polygon?e.polygon.map((e=>({x:e.x,y:e.y}))):null),void 0!==e.filters&&(this.filters=null!=e.filters?e.filters.map((e=>exports.ParametricFilter.from(e))):null)}}exports.OcrElement=void 0,(exports.OcrElement||(exports.OcrElement={})).from=function(e){const t=e._type;switch(t){case"Glyph":return new Glyph(e);case"Word":return new Word(e);case"Line":return new Line(e);case"Block":return new Block(e);case"Page":return new OcrPage(e);default:throw new Error(`Unknown child class name: ${t}`)}};class Glyph{constructor(e={}){if(this._type="Glyph",void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.confidence)throw new Error("confidence must be present in constructor argument");if(this.confidence=e.confidence,void 0===e.roi)throw new Error("roi must be present in constructor argument");this.roi=e.roi.map((e=>({x:e.x,y:e.y})))}serialize(e=new ToJsonConfiguration){return{_type:this._type}}}class Word{constructor(e={}){if(this._type="Word",void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.confidence)throw new Error("confidence must be present in constructor argument");if(this.confidence=e.confidence,void 0===e.roi)throw new Error("roi must be present in constructor argument");if(this.roi=e.roi.map((e=>({x:e.x,y:e.y}))),void 0===e.glyphs)throw new Error("glyphs must be present in constructor argument");this.glyphs=e.glyphs.map((e=>new Glyph(e)))}serialize(e=new ToJsonConfiguration){return{_type:this._type,glyphs:this.glyphs.map((t=>t.serialize(e)))}}}class Line{constructor(e={}){if(this._type="Line",void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.confidence)throw new Error("confidence must be present in constructor argument");if(this.confidence=e.confidence,void 0===e.roi)throw new Error("roi must be present in constructor argument");if(this.roi=e.roi.map((e=>({x:e.x,y:e.y}))),void 0===e.words)throw new Error("words must be present in constructor argument");this.words=e.words.map((e=>new Word(e)))}serialize(e=new ToJsonConfiguration){return{_type:this._type,words:this.words.map((t=>t.serialize(e)))}}}class Block{constructor(e={}){if(this._type="Block",void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.confidence)throw new Error("confidence must be present in constructor argument");if(this.confidence=e.confidence,void 0===e.roi)throw new Error("roi must be present in constructor argument");if(this.roi=e.roi.map((e=>({x:e.x,y:e.y}))),void 0===e.lines)throw new Error("lines must be present in constructor argument");this.lines=e.lines.map((e=>new Line(e)))}serialize(e=new ToJsonConfiguration){return{_type:this._type,lines:this.lines.map((t=>t.serialize(e)))}}}class OcrPage{constructor(e={}){if(this._type="Page",void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.confidence)throw new Error("confidence must be present in constructor argument");if(this.confidence=e.confidence,void 0===e.roi)throw new Error("roi must be present in constructor argument");if(this.roi=e.roi.map((e=>({x:e.x,y:e.y}))),void 0===e.blocks)throw new Error("blocks must be present in constructor argument");this.blocks=e.blocks.map((e=>new Block(e)))}serialize(e=new ToJsonConfiguration){return{_type:this._type,blocks:this.blocks.map((t=>t.serialize(e)))}}}class OcrConfigsResult{constructor(e={}){if(void 0===e.languageDataPath)throw new Error("languageDataPath must be present in constructor argument");if(this.languageDataPath=e.languageDataPath,void 0===e.installedLanguages)throw new Error("installedLanguages must be present in constructor argument");this.installedLanguages=e.installedLanguages.map((e=>e))}serialize(e=new ToJsonConfiguration){return{languageDataPath:this.languageDataPath,installedLanguages:this.installedLanguages.map((e=>e))}}}class PerformOcrResult{constructor(e={}){if(void 0===e.recognizedText)throw new Error("recognizedText must be present in constructor argument");if(this.recognizedText=e.recognizedText,void 0===e.pages)throw new Error("pages must be present in constructor argument");this.pages=e.pages.map((e=>new OcrPage(e)))}serialize(e=new ToJsonConfiguration){return{recognizedText:this.recognizedText,pages:this.pages.map((t=>t.serialize(e)))}}}class PdfExtractorOptions{constructor(e={}){this.quality=90,this.scaling=2,void 0!==e.quality&&(this.quality=e.quality),void 0!==e.scaling&&(this.scaling=e.scaling)}}class SdkConfiguration{constructor(e={}){if(this.loggingEnabled=!1,this.enableNativeLogging=!1,this.storageBaseDirectory=null,this.storageImageQuality=80,this.storageImageFormat="JPG",this.fileEncryptionMode=null,this.fileEncryptionPassword=null,this.performanceHintApi=!0,this.allowGpuAcceleration=!0,this.allowXnnpackAcceleration=!0,void 0===e.licenseKey)throw new Error("licenseKey must be present in constructor argument");this.licenseKey=e.licenseKey,void 0!==e.loggingEnabled&&(this.loggingEnabled=e.loggingEnabled),void 0!==e.enableNativeLogging&&(this.enableNativeLogging=e.enableNativeLogging),void 0!==e.storageBaseDirectory&&(this.storageBaseDirectory=null!=e.storageBaseDirectory?e.storageBaseDirectory:null),void 0!==e.storageImageQuality&&(this.storageImageQuality=e.storageImageQuality),void 0!==e.storageImageFormat&&(this.storageImageFormat=e.storageImageFormat),void 0!==e.fileEncryptionMode&&(this.fileEncryptionMode=null!=e.fileEncryptionMode&&FileEncryptionModeValues.includes(e.fileEncryptionMode)?e.fileEncryptionMode:null),void 0!==e.fileEncryptionPassword&&(this.fileEncryptionPassword=null!=e.fileEncryptionPassword?e.fileEncryptionPassword:null),void 0!==e.performanceHintApi&&(this.performanceHintApi=e.performanceHintApi),void 0!==e.allowGpuAcceleration&&(this.allowGpuAcceleration=e.allowGpuAcceleration),void 0!==e.allowXnnpackAcceleration&&(this.allowXnnpackAcceleration=e.allowXnnpackAcceleration)}}const StorageImageFormatValues=["JPG","PNG"],FileEncryptionModeValues=["AES128","AES256"];class AnalyticsFeature{constructor(e={}){}serialize(e=new ToJsonConfiguration){return{}}}!function(e){e.documentScanner="rtuui_document_scanner"}(AnalyticsFeature||(AnalyticsFeature={}));class AnalyticsCategory{constructor(e={}){}serialize(e=new ToJsonConfiguration){return{}}}!function(e){e.acknowledge="acknowledge"}(AnalyticsCategory||(AnalyticsCategory={}));class AnalyticsEvent{constructor(e={}){if(this.values=[],void 0===e.feature)throw new Error("feature must be present in constructor argument");if(this.feature=e.feature,void 0===e.category)throw new Error("category must be present in constructor argument");if(this.category=e.category,void 0===e.name)throw new Error("name must be present in constructor argument");this.name=e.name,void 0!==e.values&&(this.values=e.values.map((e=>e)))}serialize(e=new ToJsonConfiguration){return{feature:this.feature,category:this.category,name:this.name,values:this.values.map((e=>e))}}}class AnalyticsEventName{constructor(e={}){}serialize(e=new ToJsonConfiguration){return{}}}!function(e){e.importedImageQualityResult="imported_image_quality_result",e.scannedImageQualityResult="scanned_image_quality_result",e.proceedImage="proceed_with_image",e.retakeImage="retake_image"}(AnalyticsEventName||(AnalyticsEventName={}));class AnalyticsEventFactory{constructor(e={}){}serialize(e=new ToJsonConfiguration){return{}}}!function(e){e.scannedImageQualityResult=new AnalyticsEvent({feature:"rtuui_document_scanner",category:"acknowledge",name:"scanned_image_quality_result"}),e.importedImageQualityResult=new AnalyticsEvent({feature:"rtuui_document_scanner",category:"acknowledge",name:"imported_image_quality_result"}),e.proceedWithImage=new AnalyticsEvent({feature:"rtuui_document_scanner",category:"acknowledge",name:"proceed_with_image"}),e.retakeImage=new AnalyticsEvent({feature:"rtuui_document_scanner",category:"acknowledge",name:"retake_image"})}(AnalyticsEventFactory||(AnalyticsEventFactory={})),exports.BarcodeFormatConfigurationBase=void 0,(exports.BarcodeFormatConfigurationBase||(exports.BarcodeFormatConfigurationBase={})).from=function(e){const t=e._type;switch(t){case"BarcodeFormatCodabarConfiguration":return new BarcodeFormatCodabarConfiguration(e);case"BarcodeFormatCode11Configuration":return new BarcodeFormatCode11Configuration(e);case"BarcodeFormatCode39Configuration":return new BarcodeFormatCode39Configuration(e);case"BarcodeFormatCode93Configuration":return new BarcodeFormatCode93Configuration(e);case"BarcodeFormatCode128Configuration":return new BarcodeFormatCode128Configuration(e);case"BarcodeFormatCode2Of5Configuration":return new BarcodeFormatCode2Of5Configuration(e);case"BarcodeFormatDataBarConfiguration":return new BarcodeFormatDataBarConfiguration(e);case"BarcodeFormatDataBarExpandedConfiguration":return new BarcodeFormatDataBarExpandedConfiguration(e);case"BarcodeFormatDataBarLimitedConfiguration":return new BarcodeFormatDataBarLimitedConfiguration(e);case"BarcodeFormatITFConfiguration":return new BarcodeFormatItfConfiguration(e);case"BarcodeFormatMSIPlesseyConfiguration":return new BarcodeFormatMsiPlesseyConfiguration(e);case"BarcodeFormatUpcEanConfiguration":return new BarcodeFormatUpcEanConfiguration(e);case"BarcodeFormatPharmaCodeConfiguration":return new BarcodeFormatPharmaCodeConfiguration(e);case"BarcodeFormatAztecConfiguration":return new BarcodeFormatAztecConfiguration(e);case"BarcodeFormatQRCodeConfiguration":return new BarcodeFormatQrCodeConfiguration(e);case"BarcodeFormatPDF417Configuration":return new BarcodeFormatPdf417Configuration(e);case"BarcodeFormatMicroPDF417Configuration":return new BarcodeFormatMicroPdf417Configuration(e);case"BarcodeFormatDataMatrixConfiguration":return new BarcodeFormatDataMatrixConfiguration(e);case"BarcodeFormatMaxiCodeConfiguration":return new BarcodeFormatMaxiCodeConfiguration(e);case"BarcodeFormatAustraliaPostConfiguration":return new BarcodeFormatAustraliaPostConfiguration(e);case"BarcodeFormatJapanPostConfiguration":return new BarcodeFormatJapanPostConfiguration(e);case"BarcodeFormatRoyalMailConfiguration":return new BarcodeFormatRoyalMailConfiguration(e);case"BarcodeFormatRoyalTNTPostConfiguration":return new BarcodeFormatRoyalTntPostConfiguration(e);case"BarcodeFormatUSPSIntelligentMailConfiguration":return new BarcodeFormatUspsIntelligentMailConfiguration(e);case"BarcodeFormatPharmaCodeTwoTrackConfiguration":return new BarcodeFormatPharmaCodeTwoTrackConfiguration(e);case"BarcodeFormatGS1CompositeConfiguration":return new BarcodeFormatGs1CompositeConfiguration(e);case"BarcodeFormatCommonOneDConfiguration":return new BarcodeFormatCommonOneDConfiguration(e);case"BarcodeFormatCommonTwoDConfiguration":return new BarcodeFormatCommonTwoDConfiguration(e);case"BarcodeFormatCommonFourStateConfiguration":return new BarcodeFormatCommonFourStateConfiguration(e);case"BarcodeFormatCommonConfiguration":return new BarcodeFormatCommonConfiguration(e);default:throw new Error(`Unknown child class name: ${t}`)}},exports.BarcodeFormatOneDConfigurationBase=void 0,(exports.BarcodeFormatOneDConfigurationBase||(exports.BarcodeFormatOneDConfigurationBase={})).from=function(e){const t=e._type;switch(t){case"BarcodeFormatCodabarConfiguration":return new BarcodeFormatCodabarConfiguration(e);case"BarcodeFormatCode11Configuration":return new BarcodeFormatCode11Configuration(e);case"BarcodeFormatCode39Configuration":return new BarcodeFormatCode39Configuration(e);case"BarcodeFormatCode93Configuration":return new BarcodeFormatCode93Configuration(e);case"BarcodeFormatCode128Configuration":return new BarcodeFormatCode128Configuration(e);case"BarcodeFormatCode2Of5Configuration":return new BarcodeFormatCode2Of5Configuration(e);case"BarcodeFormatDataBarConfiguration":return new BarcodeFormatDataBarConfiguration(e);case"BarcodeFormatDataBarExpandedConfiguration":return new BarcodeFormatDataBarExpandedConfiguration(e);case"BarcodeFormatDataBarLimitedConfiguration":return new BarcodeFormatDataBarLimitedConfiguration(e);case"BarcodeFormatITFConfiguration":return new BarcodeFormatItfConfiguration(e);case"BarcodeFormatMSIPlesseyConfiguration":return new BarcodeFormatMsiPlesseyConfiguration(e);case"BarcodeFormatUpcEanConfiguration":return new BarcodeFormatUpcEanConfiguration(e);case"BarcodeFormatPharmaCodeConfiguration":return new BarcodeFormatPharmaCodeConfiguration(e);default:throw new Error(`Unknown child class name: ${t}`)}};class BarcodeFormatCodabarConfiguration{constructor(e={}){this._type="BarcodeFormatCodabarConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.minimumTextLength=1,this.maximumTextLength=0,this.enableOneDBlurScanner=!0,this.returnStartEnd=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.enableOneDBlurScanner&&(this.enableOneDBlurScanner=e.enableOneDBlurScanner),void 0!==e.returnStartEnd&&(this.returnStartEnd=e.returnStartEnd)}}class BarcodeFormatCode11Configuration{constructor(e={}){this._type="BarcodeFormatCode11Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.stripCheckDigits=!1,this.minimumTextLength=1,this.maximumTextLength=0,this.checksum=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.checksum&&(this.checksum=e.checksum)}}class BarcodeFormatCode39Configuration{constructor(e={}){this._type="BarcodeFormatCode39Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.stripCheckDigits=!1,this.minimumTextLength=1,this.maximumTextLength=0,this.enableOneDBlurScanner=!0,this.code32=!1,this.code39=!0,this.pzn7=!0,this.pzn8=!0,this.tryCode39ExtendedMode=!1,this.useCode39CheckDigit=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.enableOneDBlurScanner&&(this.enableOneDBlurScanner=e.enableOneDBlurScanner),void 0!==e.code32&&(this.code32=e.code32),void 0!==e.code39&&(this.code39=e.code39),void 0!==e.pzn7&&(this.pzn7=e.pzn7),void 0!==e.pzn8&&(this.pzn8=e.pzn8),void 0!==e.tryCode39ExtendedMode&&(this.tryCode39ExtendedMode=e.tryCode39ExtendedMode),void 0!==e.useCode39CheckDigit&&(this.useCode39CheckDigit=e.useCode39CheckDigit)}}class BarcodeFormatCode93Configuration{constructor(e={}){this._type="BarcodeFormatCode93Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.stripCheckDigits=!1,this.minimumTextLength=1,this.maximumTextLength=0,this.enableOneDBlurScanner=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.enableOneDBlurScanner&&(this.enableOneDBlurScanner=e.enableOneDBlurScanner)}}class BarcodeFormatCode128Configuration{constructor(e={}){this._type="BarcodeFormatCode128Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.gs1Handling="PARSE",this.minimumTextLength=1,this.maximumTextLength=0,this.enableOneDBlurScanner=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.enableOneDBlurScanner&&(this.enableOneDBlurScanner=e.enableOneDBlurScanner)}}class BarcodeFormatCode2Of5Configuration{constructor(e={}){this._type="BarcodeFormatCode2Of5Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.stripCheckDigits=!1,this.minimumTextLength=1,this.maximumTextLength=0,this.iata2of5=!0,this.code25=!1,this.industrial2of5=!0,this.useIATA2OF5Checksum=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.iata2of5&&(this.iata2of5=e.iata2of5),void 0!==e.code25&&(this.code25=e.code25),void 0!==e.industrial2of5&&(this.industrial2of5=e.industrial2of5),void 0!==e.useIATA2OF5Checksum&&(this.useIATA2OF5Checksum=e.useIATA2OF5Checksum)}}class BarcodeFormatDataBarConfiguration{constructor(e={}){this._type="BarcodeFormatDataBarConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.gs1Handling="PARSE",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling)}}class BarcodeFormatDataBarExpandedConfiguration{constructor(e={}){this._type="BarcodeFormatDataBarExpandedConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.gs1Handling="PARSE",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling)}}class BarcodeFormatDataBarLimitedConfiguration{constructor(e={}){this._type="BarcodeFormatDataBarLimitedConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.gs1Handling="PARSE",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling)}}class BarcodeFormatItfConfiguration{constructor(e={}){this._type="BarcodeFormatITFConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.minimumTextLength=1,this.maximumTextLength=0,this.enableOneDBlurScanner=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.enableOneDBlurScanner&&(this.enableOneDBlurScanner=e.enableOneDBlurScanner)}}const MsiPlesseyChecksumAlgorithmValues=["MOD_10","MOD_11_IBM","MOD_11_NCR","MOD_10_10","MOD_11_10_IBM","MOD_11_10_NCR"];class BarcodeFormatMsiPlesseyConfiguration{constructor(e={}){this._type="BarcodeFormatMSIPlesseyConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.stripCheckDigits=!1,this.minimumTextLength=1,this.maximumTextLength=0,this.enableOneDBlurScanner=!0,this.checksumAlgorithms=["MOD_10"],void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.enableOneDBlurScanner&&(this.enableOneDBlurScanner=e.enableOneDBlurScanner),void 0!==e.checksumAlgorithms&&(this.checksumAlgorithms=e.checksumAlgorithms.map((e=>e)))}}class BarcodeFormatUpcEanConfiguration{constructor(e={}){this._type="BarcodeFormatUpcEanConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.stripCheckDigits=!1,this.enableOneDBlurScanner=!1,this.ean8=!0,this.ean13=!0,this.upca=!0,this.upce=!0,this.extensions="ALLOW_ANY",this.minimumNumberOfRequiredFramesWithEqualRecognitionResultExtensionless=1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.enableOneDBlurScanner&&(this.enableOneDBlurScanner=e.enableOneDBlurScanner),void 0!==e.ean8&&(this.ean8=e.ean8),void 0!==e.ean13&&(this.ean13=e.ean13),void 0!==e.upca&&(this.upca=e.upca),void 0!==e.upce&&(this.upce=e.upce),void 0!==e.extensions&&(this.extensions=e.extensions),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResultExtensionless&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResultExtensionless=e.minimumNumberOfRequiredFramesWithEqualRecognitionResultExtensionless)}}class BarcodeFormatPharmaCodeConfiguration{constructor(e={}){this._type="BarcodeFormatPharmaCodeConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.minimumValue=16,this.allowNarrowBarsOnly=!1,this.allowWideBarsOnly=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.minimumValue&&(this.minimumValue=e.minimumValue),void 0!==e.allowNarrowBarsOnly&&(this.allowNarrowBarsOnly=e.allowNarrowBarsOnly),void 0!==e.allowWideBarsOnly&&(this.allowWideBarsOnly=e.allowWideBarsOnly)}}exports.BarcodeFormatTwoDConfigurationBase=void 0,(exports.BarcodeFormatTwoDConfigurationBase||(exports.BarcodeFormatTwoDConfigurationBase={})).from=function(e){const t=e._type;switch(t){case"BarcodeFormatAztecConfiguration":return new BarcodeFormatAztecConfiguration(e);case"BarcodeFormatQRCodeConfiguration":return new BarcodeFormatQrCodeConfiguration(e);case"BarcodeFormatPDF417Configuration":return new BarcodeFormatPdf417Configuration(e);case"BarcodeFormatMicroPDF417Configuration":return new BarcodeFormatMicroPdf417Configuration(e);case"BarcodeFormatDataMatrixConfiguration":return new BarcodeFormatDataMatrixConfiguration(e);case"BarcodeFormatMaxiCodeConfiguration":return new BarcodeFormatMaxiCodeConfiguration(e);default:throw new Error(`Unknown child class name: ${t}`)}};class BarcodeFormatAztecConfiguration{constructor(e={}){this._type="BarcodeFormatAztecConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling)}}class BarcodeFormatQrCodeConfiguration{constructor(e={}){this._type="BarcodeFormatQRCodeConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",this.strictMode=!0,this.qr=!0,this.microQr=!1,this.rmqr=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode),void 0!==e.qr&&(this.qr=e.qr),void 0!==e.microQr&&(this.microQr=e.microQr),void 0!==e.rmqr&&(this.rmqr=e.rmqr)}}class BarcodeFormatPdf417Configuration{constructor(e={}){this._type="BarcodeFormatPDF417Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",this.strictMode=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode)}}class BarcodeFormatMicroPdf417Configuration{constructor(e={}){this._type="BarcodeFormatMicroPDF417Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",this.strictMode=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode)}}class BarcodeFormatDataMatrixConfiguration{constructor(e={}){this._type="BarcodeFormatDataMatrixConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling)}}class BarcodeFormatMaxiCodeConfiguration{constructor(e={}){this._type="BarcodeFormatMaxiCodeConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone)}}exports.BarcodeFormatFourStateConfigurationBase=void 0,(exports.BarcodeFormatFourStateConfigurationBase||(exports.BarcodeFormatFourStateConfigurationBase={})).from=function(e){const t=e._type;switch(t){case"BarcodeFormatAustraliaPostConfiguration":return new BarcodeFormatAustraliaPostConfiguration(e);case"BarcodeFormatJapanPostConfiguration":return new BarcodeFormatJapanPostConfiguration(e);case"BarcodeFormatRoyalMailConfiguration":return new BarcodeFormatRoyalMailConfiguration(e);case"BarcodeFormatRoyalTNTPostConfiguration":return new BarcodeFormatRoyalTntPostConfiguration(e);case"BarcodeFormatUSPSIntelligentMailConfiguration":return new BarcodeFormatUspsIntelligentMailConfiguration(e);case"BarcodeFormatPharmaCodeTwoTrackConfiguration":return new BarcodeFormatPharmaCodeTwoTrackConfiguration(e);default:throw new Error(`Unknown child class name: ${t}`)}};const AustraliaPostCustomerFormatValues=["NUMERIC","ALPHA_NUMERIC"];class BarcodeFormatAustraliaPostConfiguration{constructor(e={}){this._type="BarcodeFormatAustraliaPostConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.australiaPostCustomerFormat="ALPHA_NUMERIC",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.australiaPostCustomerFormat&&(this.australiaPostCustomerFormat=e.australiaPostCustomerFormat)}}class BarcodeFormatJapanPostConfiguration{constructor(e={}){this._type="BarcodeFormatJapanPostConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone)}}class BarcodeFormatRoyalMailConfiguration{constructor(e={}){this._type="BarcodeFormatRoyalMailConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.stripCheckDigits=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits)}}class BarcodeFormatRoyalTntPostConfiguration{constructor(e={}){this._type="BarcodeFormatRoyalTNTPostConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone)}}class BarcodeFormatUspsIntelligentMailConfiguration{constructor(e={}){this._type="BarcodeFormatUSPSIntelligentMailConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone)}}class BarcodeFormatPharmaCodeTwoTrackConfiguration{constructor(e={}){this._type="BarcodeFormatPharmaCodeTwoTrackConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimumValue=364,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimumValue&&(this.minimumValue=e.minimumValue)}}class BarcodeFormatGs1CompositeConfiguration{constructor(e={}){this._type="BarcodeFormatGS1CompositeConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.gs1Handling="PARSE",this.strictMode=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode)}}class BarcodeFormatCommonOneDConfiguration{constructor(e={}){this._type="BarcodeFormatCommonOneDConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.stripCheckDigits=!1,this.minimumTextLength=1,this.maximumTextLength=0,this.gs1Handling="PARSE",this.oneDConfirmationMode="THOROUGH",this.formats=["CODABAR","CODE_11","CODE_25","CODE_32","CODE_39","CODE_93","CODE_128","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_8","EAN_13","IATA_2_OF_5","INDUSTRIAL_2_OF_5","ITF","MSI_PLESSEY","PHARMA_CODE","PZN_7","PZN_8","UPC_A","UPC_E"],void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.formats&&(this.formats=e.formats.map((e=>e)))}}class BarcodeFormatCommonTwoDConfiguration{constructor(e={}){this._type="BarcodeFormatCommonTwoDConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",this.strictMode=!0,this.formats=["AZTEC","DATA_MATRIX","MAXI_CODE","MICRO_QR_CODE","MICRO_PDF_417","PDF_417","QR_CODE","RMQR_CODE"],void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode),void 0!==e.formats&&(this.formats=e.formats.map((e=>e)))}}class BarcodeFormatCommonFourStateConfiguration{constructor(e={}){this._type="BarcodeFormatCommonFourStateConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.formats=["AUSTRALIA_POST","JAPAN_POST","ROYAL_MAIL","ROYAL_TNT_POST","USPS_INTELLIGENT_MAIL"],void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.formats&&(this.formats=e.formats.map((e=>e)))}}class BarcodeFormatCommonConfiguration{constructor(e={}){this._type="BarcodeFormatCommonConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.stripCheckDigits=!1,this.minimumTextLength=1,this.maximumTextLength=0,this.gs1Handling="PARSE",this.strictMode=!0,this.oneDConfirmationMode="THOROUGH",this.formats=["AZTEC","CODABAR","CODE_39","CODE_93","CODE_128","DATA_MATRIX","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_13","EAN_8","ITF","PDF_417","QR_CODE","UPC_A","UPC_E"],void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.formats&&(this.formats=e.formats.map((e=>e)))}}const ScanbotSDKPlugin=core.registerPlugin("ScanbotSDKCapacitor",{});class RefCountedObjectProfile{constructor(e={}){if(this.strongReferences=0,this.serializedReferences=0,void 0===e.uniqueId)throw new Error("uniqueId must be present in constructor argument");if(this.uniqueId=e.uniqueId,void 0===e.timestampCreated)throw new Error("timestampCreated must be present in constructor argument");this.timestampCreated=e.timestampCreated,void 0!==e.strongReferences&&(this.strongReferences=e.strongReferences),void 0!==e.serializedReferences&&(this.serializedReferences=e.serializedReferences)}serialize(e=new ToJsonConfiguration){return{uniqueId:this.uniqueId,timestampCreated:this.timestampCreated,strongReferences:this.strongReferences,serializedReferences:this.serializedReferences}}}const ColorConversionValues=["GRAY","COLOR","ANY_COLOR","UNCHANGED"],CanvasColorValues=["WHITE","BLACK"];class ImageInfo{constructor(e={}){if(void 0===e.height)throw new Error("height must be present in constructor argument");if(this.height=e.height,void 0===e.width)throw new Error("width must be present in constructor argument");if(this.width=e.width,void 0===e.maxByteSize)throw new Error("maxByteSize must be present in constructor argument");this.maxByteSize=e.maxByteSize}serialize(e=new ToJsonConfiguration){return{height:this.height,width:this.width,maxByteSize:this.maxByteSize}}}const PathLoadModeValues=["EAGER","LAZY","LAZY_WITH_COPY"],BufferLoadModeValues=["EAGER","LAZY"],EncodingFormatValues=["JPEG","PNG"],EncryptionModeValues=["REQUIRED","DISABLED","AUTO"];class BasicImageLoadOptions{constructor(e={}){this.cropRect={x:0,y:0,width:0,height:0},this.canvasColor="WHITE",void 0!==e.cropRect&&(this.cropRect={x:e.cropRect.x,y:e.cropRect.y,width:e.cropRect.width,height:e.cropRect.height}),void 0!==e.canvasColor&&(this.canvasColor=e.canvasColor)}}class RawImageLoadOptions{constructor(e={}){this.cropRect={x:0,y:0,width:0,height:0},this.origin="TOP_LEFT",this.canvasColor="WHITE",this.orientation="NONE",void 0!==e.cropRect&&(this.cropRect={x:e.cropRect.x,y:e.cropRect.y,width:e.cropRect.width,height:e.cropRect.height}),void 0!==e.origin&&(this.origin=e.origin),void 0!==e.canvasColor&&(this.canvasColor=e.canvasColor),void 0!==e.orientation&&(this.orientation=e.orientation)}}class PathImageLoadOptions{constructor(e={}){this.cropRect={x:0,y:0,width:0,height:0},this.colorConversion="ANY_COLOR",this.canvasColor="WHITE",this.loadMode="EAGER",this.encryptionMode="AUTO",void 0!==e.cropRect&&(this.cropRect={x:e.cropRect.x,y:e.cropRect.y,width:e.cropRect.width,height:e.cropRect.height}),void 0!==e.colorConversion&&(this.colorConversion=e.colorConversion),void 0!==e.canvasColor&&(this.canvasColor=e.canvasColor),void 0!==e.loadMode&&(this.loadMode=e.loadMode),void 0!==e.encryptionMode&&(this.encryptionMode=e.encryptionMode)}}class BufferImageLoadOptions{constructor(e={}){this.cropRect={x:0,y:0,width:0,height:0},this.colorConversion="ANY_COLOR",this.canvasColor="WHITE",this.loadMode="EAGER",void 0!==e.cropRect&&(this.cropRect={x:e.cropRect.x,y:e.cropRect.y,width:e.cropRect.width,height:e.cropRect.height}),void 0!==e.colorConversion&&(this.colorConversion=e.colorConversion),void 0!==e.canvasColor&&(this.canvasColor=e.canvasColor),void 0!==e.loadMode&&(this.loadMode=e.loadMode)}}class SaveImageOptions{constructor(e={}){this.quality=-1,this.encryptionMode="AUTO",void 0!==e.quality&&(this.quality=e.quality),void 0!==e.encryptionMode&&(this.encryptionMode=e.encryptionMode)}}class EncodeImageOptions{constructor(e={}){this.quality=-1,this.format="JPEG",void 0!==e.quality&&(this.quality=e.quality),void 0!==e.format&&(this.format=e.format)}}const ImageSourceTypeValues=["API","PLATFORM_IMAGE","CAMERA","FILE","BUFFER","OTHER"];class ImageSource{constructor(e={}){if(void 0===e.type)throw new Error("type must be present in constructor argument");if(this.type=e.type,void 0===e.filePath)throw new Error("filePath must be present in constructor argument");this.filePath=null!=e.filePath?e.filePath:null}serialize(e=new ToJsonConfiguration){return{type:this.type,filePath:null!=this.filePath?this.filePath:null}}}class ImageProfile{constructor(e={}){this.bitmapMemoryConsumption=0,this.hibernationMemoryConsumption=0,void 0!==e.bitmapMemoryConsumption&&(this.bitmapMemoryConsumption=e.bitmapMemoryConsumption),void 0!==e.hibernationMemoryConsumption&&(this.hibernationMemoryConsumption=e.hibernationMemoryConsumption)}serialize(e=new ToJsonConfiguration){return{bitmapMemoryConsumption:this.bitmapMemoryConsumption,hibernationMemoryConsumption:this.hibernationMemoryConsumption}}}class ImageRefProfile{constructor(e={}){if(void 0===e.refInfo)throw new Error("refInfo must be present in constructor argument");if(this.refInfo=new RefCountedObjectProfile(e.refInfo),void 0===e.imageInfo)throw new Error("imageInfo must be present in constructor argument");if(this.imageInfo=new ImageProfile(e.imageInfo),void 0===e.imageSource)throw new Error("imageSource must be present in constructor argument");this.imageSource=null!=e.imageSource?new ImageSource(e.imageSource):null}serialize(e=new ToJsonConfiguration){return{refInfo:this.refInfo.serialize(e),imageInfo:this.imageInfo.serialize(e),imageSource:null!=this.imageSource?this.imageSource.serialize(e):null}}}class ImageRefPoolSnapshot{constructor(e={}){if(this.totalMemoryConsumption=0,void 0===e.imageRefProfiles)throw new Error("imageRefProfiles must be present in constructor argument");this.imageRefProfiles=e.imageRefProfiles.map((e=>new ImageRefProfile(e))),void 0!==e.totalMemoryConsumption&&(this.totalMemoryConsumption=e.totalMemoryConsumption)}serialize(e=new ToJsonConfiguration){return{imageRefProfiles:this.imageRefProfiles.map((t=>t.serialize(e))),totalMemoryConsumption:this.totalMemoryConsumption}}}class ImageRefPoolSnapshotsDiff{constructor(e={}){if(this.totalMemoryConsumptionDiff=0,void 0!==e.totalMemoryConsumptionDiff&&(this.totalMemoryConsumptionDiff=e.totalMemoryConsumptionDiff),void 0===e.removed)throw new Error("removed must be present in constructor argument");if(this.removed=e.removed.map((e=>e)),void 0===e.added)throw new Error("added must be present in constructor argument");if(this.added=e.added.map((e=>e)),void 0===e.modified)throw new Error("modified must be present in constructor argument");this.modified=e.modified.map((e=>e))}serialize(e=new ToJsonConfiguration){return{totalMemoryConsumptionDiff:this.totalMemoryConsumptionDiff,removed:this.removed.map((e=>e)),added:this.added.map((e=>e)),modified:this.modified.map((e=>e))}}}class AutoReleasePool{constructor(){this.poolObjects=[]}releaseAll(){for(const e of this.poolObjects)e.isRetained()||e.release()}addObject(e){this.poolObjects.push(e)}}async function autorelease(e){null===AutoReleasePool.globalPull&&(AutoReleasePool.globalPull=new AutoReleasePool),AutoReleasePool.globalPullReferences++;try{return await e()}finally{AutoReleasePool.globalPullReferences--,0===AutoReleasePool.globalPullReferences&&(AutoReleasePool.globalPull.releaseAll(),AutoReleasePool.globalPull=null)}}AutoReleasePool.globalPull=null,AutoReleasePool.globalPullReferences=0;class AutoReleasable{constructor(e){if(this.retained=!1,e){if(null===AutoReleasePool.globalPull){throw new InvalidImageRefError("Initializing an object that contains a ScanbotImage instance as REFERENCE must be wrapped inside an autorelease pool. For example:\n autorelease(()=>{\n  const barcodeItem = new BarcodeItem(source);\n });")}AutoReleasePool.globalPull.addObject(this)}}isRetained(){return this.retained}retain(){this.retained=!0}}class ImageRef extends AutoReleasable{get buffer(){return this._buffer}constructor(e,t){super(e),this.released=!1,this.uniqueId=e,this._buffer=t}static from(e){return e.buffer?new ImageRef(void 0,e.buffer):ImageRef.deserialize(e)}static deserialize(e){if(!e.uniqueId)throw new InvalidImageRefError("uniqueId must be present in serializedRef argument");return ScanbotSDKPlugin.imageRefDeserialize({uniqueId:e.uniqueId}).then((t=>{t.result||console.error(`Unsuccessful deserialization of ImageRef with uniqueId ${e.uniqueId}`)})).catch((t=>{console.error(`Error while deserializing ImageRef with uniqueId ${e.uniqueId}: ${t}`)})),new ImageRef(e.uniqueId,void 0)}async serialize(e){if("BUFFER"===e){const e=await this.encodeImage();return e?{buffer:e}:null}return this.throwErrorIfUniqueIdIsMissing(),this.throwErrorIfReleased(),ScanbotSDKPlugin.imageRefSerialize({uniqueId:this.uniqueId}).then((e=>{e.result||console.error(`Unsuccessful serialization of ImageRef with uniqueId ${this.uniqueId}`)})).catch((e=>{console.error(`Error while serializing ImageRef with uniqueId ${this.uniqueId}: ${e}`)})),{uniqueId:this.uniqueId}}static async fromImageFileUri(e,t=new PathImageLoadOptions){try{const i=(await ScanbotSDKPlugin.imageRefFromImageFileUri({uri:e,options:t})).result;return ImageRef.deserialize({uniqueId:i})}catch(e){return console.error(e),null}}static async fromEncodedBuffer(e,t=new BufferImageLoadOptions){try{const i=(await ScanbotSDKPlugin.imageRefFromEncodedBuffer({buffer:e,options:t})).result;return ImageRef.deserialize({uniqueId:i})}catch(e){return console.error(e),null}}async hibernate(){this.throwErrorIfUniqueIdIsMissing(),this.throwErrorIfReleased();try{await ScanbotSDKPlugin.imageRefHibernate({uniqueId:this.uniqueId})}catch(e){console.error(e)}}async clear(){this.throwErrorIfUniqueIdIsMissing(),this.throwErrorIfReleased();try{await ScanbotSDKPlugin.imageRefClear({uniqueId:this.uniqueId})}catch(e){console.error(e)}}async info(){this.throwErrorIfUniqueIdIsMissing(),this.throwErrorIfReleased();try{const e=await ScanbotSDKPlugin.imageRefInfo({uniqueId:this.uniqueId});return new ImageInfo(e)}catch(e){return console.error(e),null}}async saveImage(e,t=new SaveImageOptions){this.throwErrorIfUniqueIdIsMissing(),this.throwErrorIfReleased();try{return(await ScanbotSDKPlugin.imageRefSaveImage({uniqueId:this.uniqueId,path:e,options:t})).result}catch(e){return console.error(e),!1}}async encodeInPlace(){if(this._buffer);else{this.throwErrorIfUniqueIdIsMissing(),this.throwErrorIfReleased();try{const e=(await ScanbotSDKPlugin.imageRefEncodeImage({uniqueId:this.uniqueId,options:new EncodeImageOptions})).result;e&&(this._buffer=e)}catch(e){console.error(e)}}}async encodeImage(e){if(this._buffer){if(e)throw new InvalidImageRefError("EncodeImageOptions are not available when image is already encoded to base64");return this._buffer}this.throwErrorIfUniqueIdIsMissing(),this.throwErrorIfReleased();try{return(await ScanbotSDKPlugin.imageRefEncodeImage({uniqueId:this.uniqueId,options:null!=e?e:new EncodeImageOptions})).result}catch(e){return console.error(e),null}}release(){this.throwErrorIfUniqueIdIsMissing(),this.released||(ScanbotSDKPlugin.imageRefRelease({uniqueId:this.uniqueId}).catch((e=>{console.error(`Error while releasing ImageRef with uniqueId ${this.uniqueId}: ${e}`)})),this.released=!0)}static async makeSnapshot(){try{const e=await ScanbotSDKPlugin.makeSnapshot();return new ImageRefPoolSnapshot(e)}catch(e){return console.error(e),null}}static releaseAll(){ScanbotSDKPlugin.imageRefReleaseAll().catch((()=>{}))}throwErrorIfUniqueIdIsMissing(){if(!this.uniqueId)throw new InvalidImageRefError("uniqueId is missing")}throwErrorIfReleased(){if(this.released)throw new InvalidImageRefError(`ImageRef with uniqueId ${this.uniqueId} has been released`)}}const CommonFieldTypeValues=["ID","SURNAME","MAIDEN_NAME","GIVEN_NAMES","BIRTH_DATE","NATIONALITY","BIRTHPLACE","EXPIRY_DATE","EYE_COLOR","HEIGHT","ISSUE_DATE","ISSUING_AUTHORITY","ADDRESS","PSEUDONYM","MRZ","ISSUING_COUNTRY","GENDER","SIGNATURE","PHOTO","VALID_FROM_DATE","ROUTING_NUMBER","ACCOUNT_NUMBER","PLACE_OF_ISSUE","TITLE_TYPE","REMARKS","NAME","CARD_ACCESS_NUMBER","PERSONAL_ID"];class OcrResult{constructor(e={}){if(void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.confidence)throw new Error("confidence must be present in constructor argument");this.confidence=e.confidence}serialize(e=new ToJsonConfiguration){return{text:this.text,confidence:this.confidence}}}const FieldValidationStatusValues=["INVALID","OBSTRUCTED","NONE","CONFIRMED","INFERRED","VALID","IGNORED"],FieldDataFormatValues=["ISO_DATE","ISO_COUNTRY_ALPHA_2","ISO_COUNTRY_ALPHA_3","ISO_COUNTRY_NUMERIC","ISO_COUNTRY_NAME","GENDER"];class FieldParsedData{constructor(e={}){if(void 0===e.type)throw new Error("type must be present in constructor argument");if(this.type=e.type,void 0===e.value)throw new Error("value must be present in constructor argument");this.value=e.value}serialize(e=new ToJsonConfiguration){return{type:this.type,value:this.value}}}class FieldType{constructor(e={}){if(this.listIndex=null,void 0===e.name)throw new Error("name must be present in constructor argument");if(this.name=e.name,void 0===e.fullName)throw new Error("fullName must be present in constructor argument");if(this.fullName=e.fullName,void 0===e.normalizedName)throw new Error("normalizedName must be present in constructor argument");if(this.normalizedName=e.normalizedName,void 0===e.commonType)throw new Error("commonType must be present in constructor argument");this.commonType=null!=e.commonType&&CommonFieldTypeValues.includes(e.commonType)?e.commonType:null,void 0!==e.listIndex&&(this.listIndex=null!=e.listIndex?e.listIndex:null)}serialize(e=new ToJsonConfiguration){return{name:this.name,fullName:this.fullName,normalizedName:this.normalizedName,commonType:null!=this.commonType?this.commonType:null,listIndex:null!=this.listIndex?this.listIndex:null}}}class Field{constructor(e={}){if(this.confidenceWeight=1,this.image=null,this.validationStatus="NONE",this.parsedData=[],this._released=!1,void 0===e.type)throw new Error("type must be present in constructor argument");if(this.type=new FieldType(e.type),void 0===e.value)throw new Error("value must be present in constructor argument");if(this.value=null!=e.value?new OcrResult(e.value):null,void 0!==e.confidenceWeight&&(this.confidenceWeight=e.confidenceWeight),void 0!==e.image&&(this.image=null!=e.image?ImageRef.from(e.image):null),void 0===e.polygonInRoot)throw new Error("polygonInRoot must be present in constructor argument");this.polygonInRoot=e.polygonInRoot.map((e=>({x:e.x,y:e.y}))),void 0!==e.validationStatus&&(this.validationStatus=e.validationStatus),void 0!==e.parsedData&&(this.parsedData=e.parsedData.map((e=>new FieldParsedData(e))))}async serialize(e=new ToJsonConfiguration){return{type:this.type.serialize(e),value:null!=this.value?this.value.serialize(e):null,confidenceWeight:this.confidenceWeight,image:e.serializeImages?null!=this.image?await this.image.serialize(e.imageSerializationMode):null:void 0,polygonInRoot:this.polygonInRoot.map((e=>e)),validationStatus:this.validationStatus,parsedData:this.parsedData.map((t=>t.serialize(e)))}}release(){this._released||(null!=this.image&&this.image.release(),this._released=!0)}async encodeImages(){null!=this.image&&await this.image.encodeInPlace()}}class GenericDocumentType{constructor(e={}){if(this.listIndex=null,void 0===e.name)throw new Error("name must be present in constructor argument");if(this.name=e.name,void 0===e.fullName)throw new Error("fullName must be present in constructor argument");if(this.fullName=e.fullName,void 0===e.normalizedName)throw new Error("normalizedName must be present in constructor argument");this.normalizedName=e.normalizedName,void 0!==e.listIndex&&(this.listIndex=null!=e.listIndex?e.listIndex:null)}serialize(e=new ToJsonConfiguration){return{name:this.name,fullName:this.fullName,normalizedName:this.normalizedName,listIndex:null!=this.listIndex?this.listIndex:null}}}class GenericDocument{constructor(e={}){if(this.crop=null,this.confidence=0,this.confidenceWeight=0,this._released=!1,void 0===e.type)throw new Error("type must be present in constructor argument");if(this.type=new GenericDocumentType(e.type),void 0===e.fields)throw new Error("fields must be present in constructor argument");if(this.fields=e.fields.map((e=>new Field(e))),void 0===e.children)throw new Error("children must be present in constructor argument");if(this.children=e.children.map((e=>new GenericDocument(e))),void 0===e.quad)throw new Error("quad must be present in constructor argument");if(this.quad=e.quad.map((e=>({x:e.x,y:e.y}))),void 0===e.quadInRoot)throw new Error("quadInRoot must be present in constructor argument");this.quadInRoot=e.quadInRoot.map((e=>({x:e.x,y:e.y}))),void 0!==e.crop&&(this.crop=null!=e.crop?ImageRef.from(e.crop):null),void 0!==e.confidence&&(this.confidence=e.confidence),void 0!==e.confidenceWeight&&(this.confidenceWeight=e.confidenceWeight)}async serialize(e=new ToJsonConfiguration){return{type:this.type.serialize(e),fields:await Promise.all(this.fields.map((async t=>await t.serialize(e)))),children:await Promise.all(this.children.map((async t=>await t.serialize(e)))),quad:this.quad.map((e=>e)),quadInRoot:this.quadInRoot.map((e=>e)),crop:e.serializeImages?null!=this.crop?await this.crop.serialize(e.imageSerializationMode):null:void 0,confidence:this.confidence,confidenceWeight:this.confidenceWeight}}release(){this._released||(this.fields.forEach((e=>{e.release()})),this.children.forEach((e=>{e.release()})),null!=this.crop&&this.crop.release(),this._released=!0)}async encodeImages(){await Promise.all(this.fields.map((async e=>{await e.encodeImages()}))),await Promise.all(this.children.map((async e=>{await e.encodeImages()}))),null!=this.crop&&await this.crop.encodeInPlace()}}const BarcodeDocumentFormatValues=["AAMVA","BOARDING_PASS","DE_MEDICAL_PLAN","MEDICAL_CERTIFICATE","ID_CARD_PDF_417","SEPA","SWISS_QR","VCARD","GS1","HIBC","BRITISH_COLUMBIA_DRIVER_LICENSE"];class BarcodeDocumentFormats{constructor(e={}){}serialize(e=new ToJsonConfiguration){return{}}}!function(e){e.all=["AAMVA","BOARDING_PASS","DE_MEDICAL_PLAN","MEDICAL_CERTIFICATE","ID_CARD_PDF_417","SEPA","SWISS_QR","VCARD","GS1","HIBC","BRITISH_COLUMBIA_DRIVER_LICENSE"],e.documentBarcodeFormats={AAMVA:["PDF_417"],ID_CARD_PDF_417:["PDF_417"],SEPA:["QR_CODE"],MEDICAL_CERTIFICATE:["PDF_417"],DE_MEDICAL_PLAN:["DATA_MATRIX"],BOARDING_PASS:["PDF_417","AZTEC","QR_CODE"],VCARD:["QR_CODE","DATA_MATRIX"],SWISS_QR:["QR_CODE"],GS1:["CODE_128","AZTEC","DATA_MATRIX","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_13","EAN_8","GS1_COMPOSITE","ITF","MICRO_PDF_417","PDF_417","QR_CODE","UPC_A","UPC_E"],HIBC:["CODE_39","CODE_128","AZTEC","DATA_MATRIX","MICRO_PDF_417","PDF_417","QR_CODE"],BRITISH_COLUMBIA_DRIVER_LICENSE:["PDF_417"]}}(BarcodeDocumentFormats||(BarcodeDocumentFormats={}));class BarcodeDocumentParserResult{constructor(e={}){if(this._released=!1,void 0===e.success)throw new Error("success must be present in constructor argument");if(this.success=e.success,void 0===e.parsedDocument)throw new Error("parsedDocument must be present in constructor argument");this.parsedDocument=null!=e.parsedDocument?new GenericDocument(e.parsedDocument):null}async serialize(e=new ToJsonConfiguration){return{success:this.success,parsedDocument:null!=this.parsedDocument?await this.parsedDocument.serialize(e):null}}release(){this._released||(null!=this.parsedDocument&&this.parsedDocument.release(),this._released=!0)}async encodeImages(){null!=this.parsedDocument&&await this.parsedDocument.encodeImages()}}const CharacterEncodingValues=["UNKNOWN","ASCII","ISO_8859_PART1","ISO_8859_PART2","ISO_8859_PART3","ISO_8859_PART4","ISO_8859_PART5","ISO_8859_PART6","ISO_8859_PART7","ISO_8859_PART8","ISO_8859_PART9","ISO_8859_PART10","ISO_8859_PART11","ISO_8859_PART13","ISO_8859_PART14","ISO_8859_PART15","ISO_8859_PART16","CP_437","CP_1250","CP_1251","CP_1252","CP_1256","SHIFT_JIS","BIG_5","GB_2312","GB_18030","EUC_JP","EUC_KR","UTF_16_BE","UTF_8","UTF_16_LE","UTF_32_BE","UTF_32_LE","BINARY"];class RangeEncoding{constructor(e={}){if(void 0===e.start)throw new Error("start must be present in constructor argument");if(this.start=e.start,void 0===e.end)throw new Error("end must be present in constructor argument");if(this.end=e.end,void 0===e.encoding)throw new Error("encoding must be present in constructor argument");this.encoding=e.encoding}serialize(e=new ToJsonConfiguration){return{start:this.start,end:this.end,encoding:this.encoding}}}class StructuredAppendInfo{constructor(e={}){if(void 0===e.count)throw new Error("count must be present in constructor argument");if(this.count=e.count,void 0===e.index)throw new Error("index must be present in constructor argument");if(this.index=e.index,void 0===e.id)throw new Error("id must be present in constructor argument");this.id=e.id}serialize(e=new ToJsonConfiguration){return{count:this.count,index:this.index,id:this.id}}}const BarcodeFormatValues=["NONE","AZTEC","CODABAR","CODE_39","CODE_93","CODE_128","DATA_MATRIX","EAN_8","EAN_13","ITF","MAXI_CODE","PDF_417","QR_CODE","DATABAR","DATABAR_EXPANDED","UPC_A","UPC_E","MSI_PLESSEY","IATA_2_OF_5","INDUSTRIAL_2_OF_5","CODE_25","MICRO_QR_CODE","USPS_INTELLIGENT_MAIL","ROYAL_MAIL","JAPAN_POST","ROYAL_TNT_POST","AUSTRALIA_POST","DATABAR_LIMITED","MICRO_PDF_417","GS1_COMPOSITE","RMQR_CODE","CODE_11","CODE_32","PHARMA_CODE","PHARMA_CODE_TWO_TRACK","PZN_7","PZN_8"];class BarcodeFormats{constructor(e={}){}serialize(e=new ToJsonConfiguration){return{}}}!function(e){e.oned=["CODABAR","CODE_11","CODE_25","CODE_32","CODE_39","CODE_93","CODE_128","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_8","EAN_13","IATA_2_OF_5","INDUSTRIAL_2_OF_5","ITF","MSI_PLESSEY","PHARMA_CODE","PZN_7","PZN_8","UPC_A","UPC_E"],e.twod=["AZTEC","DATA_MATRIX","MAXI_CODE","MICRO_QR_CODE","MICRO_PDF_417","PDF_417","QR_CODE","RMQR_CODE"],e.postal=["AUSTRALIA_POST","JAPAN_POST","ROYAL_MAIL","ROYAL_TNT_POST","USPS_INTELLIGENT_MAIL"],e.pharma=["CODE_32","PHARMA_CODE","PHARMA_CODE_TWO_TRACK","PZN_7","PZN_8"],e.common=["AZTEC","CODABAR","CODE_39","CODE_93","CODE_128","DATA_MATRIX","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_13","EAN_8","ITF","PDF_417","QR_CODE","UPC_A","UPC_E"],e.all=["AUSTRALIA_POST","AZTEC","CODABAR","CODE_11","CODE_25","CODE_32","CODE_39","CODE_93","CODE_128","DATA_MATRIX","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_13","EAN_8","GS1_COMPOSITE","IATA_2_OF_5","INDUSTRIAL_2_OF_5","ITF","JAPAN_POST","MAXI_CODE","MICRO_PDF_417","MICRO_QR_CODE","MSI_PLESSEY","PDF_417","PHARMA_CODE","PHARMA_CODE_TWO_TRACK","PZN_7","PZN_8","QR_CODE","RMQR_CODE","ROYAL_MAIL","ROYAL_TNT_POST","UPC_A","UPC_E","USPS_INTELLIGENT_MAIL"]}(BarcodeFormats||(BarcodeFormats={}));const Gs1HandlingValues=["PARSE","VALIDATE_STRUCTURE","DECODE_STRUCTURE","VALIDATE_FULL","DECODE_FULL"],UpcEanExtensionBehaviorValues=["REQUIRE_2","REQUIRE_5","REQUIRE_ANY","IGNORE","ALLOW_2","ALLOW_5","ALLOW_ANY"],OneDConfirmationModeValues=["NONE","MINIMAL","MODERATE","THOROUGH"];class BarcodeItem{constructor(e={}){if(this.format="NONE",this.isUpsideDown=!1,this.sourceImage=null,this.isGS1Message=!1,this.isGS1CompositePart=!1,this.dataBarStackSize=1,this.sizeScore=0,this.globalIndex=-1,this._released=!1,void 0!==e.format&&(this.format=e.format),void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.rawBytes)throw new Error("rawBytes must be present in constructor argument");if(this.rawBytes=e.rawBytes,void 0===e.rawBytesEncodings)throw new Error("rawBytesEncodings must be present in constructor argument");if(this.rawBytesEncodings=e.rawBytesEncodings.map((e=>new RangeEncoding(e))),void 0===e.structuredAppendInfo)throw new Error("structuredAppendInfo must be present in constructor argument");if(this.structuredAppendInfo=null!=e.structuredAppendInfo?new StructuredAppendInfo(e.structuredAppendInfo):null,void 0===e.quad)throw new Error("quad must be present in constructor argument");if(this.quad=e.quad.map((e=>({x:e.x,y:e.y}))),void 0===e.quadNormalized)throw new Error("quadNormalized must be present in constructor argument");if(this.quadNormalized=e.quadNormalized.map((e=>({x:e.x,y:e.y}))),void 0===e.extendedQuad)throw new Error("extendedQuad must be present in constructor argument");if(this.extendedQuad=e.extendedQuad.map((e=>({x:e.x,y:e.y}))),void 0===e.extendedQuadNormalized)throw new Error("extendedQuadNormalized must be present in constructor argument");if(this.extendedQuadNormalized=e.extendedQuadNormalized.map((e=>({x:e.x,y:e.y}))),void 0!==e.isUpsideDown&&(this.isUpsideDown=e.isUpsideDown),void 0!==e.sourceImage&&(this.sourceImage=null!=e.sourceImage?ImageRef.from(e.sourceImage):null),void 0===e.upcEanExtension)throw new Error("upcEanExtension must be present in constructor argument");if(this.upcEanExtension=e.upcEanExtension,void 0!==e.isGS1Message&&(this.isGS1Message=e.isGS1Message),void 0!==e.isGS1CompositePart&&(this.isGS1CompositePart=e.isGS1CompositePart),void 0!==e.dataBarStackSize&&(this.dataBarStackSize=e.dataBarStackSize),void 0!==e.sizeScore&&(this.sizeScore=e.sizeScore),void 0===e.extractedDocument)throw new Error("extractedDocument must be present in constructor argument");this.extractedDocument=null!=e.extractedDocument?new GenericDocument(e.extractedDocument):null,void 0!==e.globalIndex&&(this.globalIndex=e.globalIndex)}async serialize(e=new ToJsonConfiguration){return{format:this.format,text:this.text,rawBytes:this.rawBytes,rawBytesEncodings:this.rawBytesEncodings.map((t=>t.serialize(e))),structuredAppendInfo:null!=this.structuredAppendInfo?this.structuredAppendInfo.serialize(e):null,quad:this.quad.map((e=>e)),quadNormalized:this.quadNormalized.map((e=>e)),extendedQuad:this.extendedQuad.map((e=>e)),extendedQuadNormalized:this.extendedQuadNormalized.map((e=>e)),isUpsideDown:this.isUpsideDown,sourceImage:e.serializeImages?null!=this.sourceImage?await this.sourceImage.serialize(e.imageSerializationMode):null:void 0,upcEanExtension:this.upcEanExtension,isGS1Message:this.isGS1Message,isGS1CompositePart:this.isGS1CompositePart,dataBarStackSize:this.dataBarStackSize,sizeScore:this.sizeScore,extractedDocument:null!=this.extractedDocument?await this.extractedDocument.serialize(e):null,globalIndex:this.globalIndex}}release(){this._released||(null!=this.sourceImage&&this.sourceImage.release(),null!=this.extractedDocument&&this.extractedDocument.release(),this._released=!0)}async encodeImages(){null!=this.sourceImage&&await this.sourceImage.encodeInPlace(),null!=this.extractedDocument&&await this.extractedDocument.encodeImages()}}const BarcodeScannerEngineModeValues=["LEGACY","NEXT_GEN_LOW_POWER","NEXT_GEN","NEXT_GEN_LOW_POWER_FAR_DISTANCE","NEXT_GEN_FAR_DISTANCE","NEXT_GEN_MAX_DISTANCE"],BarcodeAccumulationMethodValues=["LAST_VISIBLE","INTERPOLATE_BY_CAMERA"];class BarcodeAccumulationConfiguration{constructor(e={}){this.accumulationTime=500,this.removeUnconnectedResults=!0,this.method="INTERPOLATE_BY_CAMERA",void 0!==e.accumulationTime&&(this.accumulationTime=e.accumulationTime),void 0!==e.removeUnconnectedResults&&(this.removeUnconnectedResults=e.removeUnconnectedResults),void 0!==e.method&&(this.method=e.method)}}class BarcodeScannerConfiguration{constructor(e={}){this.barcodeFormatConfigurations=[new BarcodeFormatCommonConfiguration({})],this.extractedDocumentFormats=["AAMVA","BOARDING_PASS","DE_MEDICAL_PLAN","MEDICAL_CERTIFICATE","ID_CARD_PDF_417","SEPA","SWISS_QR","VCARD","GS1","HIBC","BRITISH_COLUMBIA_DRIVER_LICENSE"],this.onlyAcceptDocuments=!1,this.returnBarcodeImage=!1,this.engineMode="NEXT_GEN",this.accumulationConfig=new BarcodeAccumulationConfiguration({}),this.optimizedForOverlays=!1,this.processingMode="AUTO",void 0!==e.barcodeFormatConfigurations&&(this.barcodeFormatConfigurations=e.barcodeFormatConfigurations.map((e=>exports.BarcodeFormatConfigurationBase.from(e)))),void 0!==e.extractedDocumentFormats&&(this.extractedDocumentFormats=e.extractedDocumentFormats.map((e=>e))),void 0!==e.onlyAcceptDocuments&&(this.onlyAcceptDocuments=e.onlyAcceptDocuments),void 0!==e.returnBarcodeImage&&(this.returnBarcodeImage=e.returnBarcodeImage),void 0!==e.engineMode&&(this.engineMode=e.engineMode),void 0!==e.accumulationConfig&&(this.accumulationConfig=new BarcodeAccumulationConfiguration(e.accumulationConfig)),void 0!==e.optimizedForOverlays&&(this.optimizedForOverlays=e.optimizedForOverlays),void 0!==e.processingMode&&(this.processingMode=e.processingMode)}}class BarcodeScannerResult{constructor(e={}){if(this._released=!1,void 0===e.barcodes)throw new Error("barcodes must be present in constructor argument");if(this.barcodes=e.barcodes.map((e=>new BarcodeItem(e))),void 0===e.success)throw new Error("success must be present in constructor argument");this.success=e.success}async serialize(e=new ToJsonConfiguration){return{barcodes:await Promise.all(this.barcodes.map((async t=>await t.serialize(e)))),success:this.success}}release(){this._released||(this.barcodes.forEach((e=>{e.release()})),this._released=!0)}async encodeImages(){await Promise.all(this.barcodes.map((async e=>{await e.encodeImages()})))}}const CameraLiveScannerResolutionValues=["AUTO","FULL_HD","UHD"];class LineSegmentInt{constructor(e={}){if(void 0===e.start)throw new Error("start must be present in constructor argument");if(this.start={x:e.start.x,y:e.start.y},void 0===e.end)throw new Error("end must be present in constructor argument");this.end={x:e.end.x,y:e.end.y}}serialize(e=new ToJsonConfiguration){return{start:this.start,end:this.end}}}class LineSegmentFloat{constructor(e={}){if(void 0===e.start)throw new Error("start must be present in constructor argument");if(this.start={x:e.start.x,y:e.start.y},void 0===e.end)throw new Error("end must be present in constructor argument");this.end={x:e.end.x,y:e.end.y}}serialize(e=new ToJsonConfiguration){return{start:this.start,end:this.end}}}class AspectRatio{constructor(e={}){this.width=1,this.height=1,void 0!==e.width&&(this.width=e.width),void 0!==e.height&&(this.height=e.height)}serialize(e=new ToJsonConfiguration){return{width:this.width,height:this.height}}}const DocumentScannerEngineModeValues=["ML","LEGACY"];class DocumentScannerParameters{constructor(e={}){this.acceptedAngleScore=75,this.acceptedSizeScore=80,this.acceptedBrightnessThreshold=0,this.acceptedAspectRatioScore=85,this.aspectRatios=[],this.ignoreOrientationMismatch=!1,void 0!==e.acceptedAngleScore&&(this.acceptedAngleScore=e.acceptedAngleScore),void 0!==e.acceptedSizeScore&&(this.acceptedSizeScore=e.acceptedSizeScore),void 0!==e.acceptedBrightnessThreshold&&(this.acceptedBrightnessThreshold=e.acceptedBrightnessThreshold),void 0!==e.acceptedAspectRatioScore&&(this.acceptedAspectRatioScore=e.acceptedAspectRatioScore),void 0!==e.aspectRatios&&(this.aspectRatios=e.aspectRatios.map((e=>new AspectRatio(e)))),void 0!==e.ignoreOrientationMismatch&&(this.ignoreOrientationMismatch=e.ignoreOrientationMismatch)}}class PartiallyVisibleDocumentConfiguration{constructor(e={}){this.allowPartiallyVisibleDocuments=!1,this.accumulationDuration=700,this.retentionTime=1500,this.minimumBrightness=0,void 0!==e.allowPartiallyVisibleDocuments&&(this.allowPartiallyVisibleDocuments=e.allowPartiallyVisibleDocuments),void 0!==e.accumulationDuration&&(this.accumulationDuration=e.accumulationDuration),void 0!==e.retentionTime&&(this.retentionTime=e.retentionTime),void 0!==e.minimumBrightness&&(this.minimumBrightness=e.minimumBrightness)}}class DocumentScannerConfiguration{constructor(e={}){this.engineMode="ML",this.processingMode="AUTO",this.parameters=new DocumentScannerParameters({}),this.partiallyVisibleDocumentConfiguration=new PartiallyVisibleDocumentConfiguration({}),void 0!==e.engineMode&&(this.engineMode=e.engineMode),void 0!==e.processingMode&&(this.processingMode=e.processingMode),void 0!==e.parameters&&(this.parameters=new DocumentScannerParameters(e.parameters)),void 0!==e.partiallyVisibleDocumentConfiguration&&(this.partiallyVisibleDocumentConfiguration=new PartiallyVisibleDocumentConfiguration(e.partiallyVisibleDocumentConfiguration))}}const DocumentDisplacementValues=["NONE","UP","UPPER_RIGHT","RIGHT","LOWER_RIGHT","DOWN","LOWER_LEFT","LEFT","UPPER_LEFT"],DocumentDetectionStatusValues=["NOT_ACQUIRED","OK","OK_BUT_TOO_SMALL","OK_BUT_BAD_ANGLES","OK_BUT_BAD_ASPECT_RATIO","OK_BUT_ORIENTATION_MISMATCH","OK_BUT_OFF_CENTER","OK_BUT_TOO_DARK","ERROR_NOTHING_DETECTED","ERROR_PARTIALLY_VISIBLE","ERROR_PARTIALLY_VISIBLE_TOO_CLOSE","ERROR_TOO_DARK","ERROR_TOO_NOISY"];class DocumentDetectionScores{constructor(e={}){if(void 0===e.totalScore)throw new Error("totalScore must be present in constructor argument");if(this.totalScore=e.totalScore,void 0===e.distanceScore)throw new Error("distanceScore must be present in constructor argument");if(this.distanceScore=e.distanceScore,void 0===e.angleScore)throw new Error("angleScore must be present in constructor argument");if(this.angleScore=e.angleScore,void 0===e.sizeScore)throw new Error("sizeScore must be present in constructor argument");if(this.sizeScore=e.sizeScore,void 0===e.aspectRatioScore)throw new Error("aspectRatioScore must be present in constructor argument");if(this.aspectRatioScore=e.aspectRatioScore,void 0===e.lineCoverageScore)throw new Error("lineCoverageScore must be present in constructor argument");if(this.lineCoverageScore=e.lineCoverageScore,void 0===e.widthScore)throw new Error("widthScore must be present in constructor argument");if(this.widthScore=e.widthScore,void 0===e.heightScore)throw new Error("heightScore must be present in constructor argument");this.heightScore=e.heightScore}serialize(e=new ToJsonConfiguration){return{totalScore:this.totalScore,distanceScore:this.distanceScore,angleScore:this.angleScore,sizeScore:this.sizeScore,aspectRatioScore:this.aspectRatioScore,lineCoverageScore:this.lineCoverageScore,widthScore:this.widthScore,heightScore:this.heightScore}}}class DocumentDetectionResult{constructor(e={}){if(this.status="NOT_ACQUIRED",this.averageBrightness=0,this.displacement="NONE",void 0!==e.status&&(this.status=e.status),void 0===e.detectionScores)throw new Error("detectionScores must be present in constructor argument");if(this.detectionScores=new DocumentDetectionScores(e.detectionScores),void 0===e.points)throw new Error("points must be present in constructor argument");if(this.points=e.points.map((e=>({x:e.x,y:e.y}))),void 0===e.horizontalLines)throw new Error("horizontalLines must be present in constructor argument");if(this.horizontalLines=e.horizontalLines.map((e=>new LineSegmentInt(e))),void 0===e.verticalLines)throw new Error("verticalLines must be present in constructor argument");if(this.verticalLines=e.verticalLines.map((e=>new LineSegmentInt(e))),void 0===e.pointsNormalized)throw new Error("pointsNormalized must be present in constructor argument");if(this.pointsNormalized=e.pointsNormalized.map((e=>({x:e.x,y:e.y}))),void 0===e.horizontalLinesNormalized)throw new Error("horizontalLinesNormalized must be present in constructor argument");if(this.horizontalLinesNormalized=e.horizontalLinesNormalized.map((e=>new LineSegmentFloat(e))),void 0===e.verticalLinesNormalized)throw new Error("verticalLinesNormalized must be present in constructor argument");if(this.verticalLinesNormalized=e.verticalLinesNormalized.map((e=>new LineSegmentFloat(e))),void 0===e.aspectRatio)throw new Error("aspectRatio must be present in constructor argument");if(this.aspectRatio=e.aspectRatio,void 0!==e.averageBrightness&&(this.averageBrightness=e.averageBrightness),void 0!==e.displacement&&(this.displacement=e.displacement),void 0===e.displacementVector)throw new Error("displacementVector must be present in constructor argument");this.displacementVector={x:e.displacementVector.x,y:e.displacementVector.y}}serialize(e=new ToJsonConfiguration){return{status:this.status,detectionScores:this.detectionScores.serialize(e),points:this.points.map((e=>e)),horizontalLines:this.horizontalLines.map((t=>t.serialize(e))),verticalLines:this.verticalLines.map((t=>t.serialize(e))),pointsNormalized:this.pointsNormalized.map((e=>e)),horizontalLinesNormalized:this.horizontalLinesNormalized.map((t=>t.serialize(e))),verticalLinesNormalized:this.verticalLinesNormalized.map((t=>t.serialize(e))),aspectRatio:this.aspectRatio,averageBrightness:this.averageBrightness,displacement:this.displacement,displacementVector:this.displacementVector}}}class DocumentScanningResult{constructor(e={}){if(this.croppedImage=null,this._released=!1,void 0===e.detectionResult)throw new Error("detectionResult must be present in constructor argument");this.detectionResult=new DocumentDetectionResult(e.detectionResult),void 0!==e.croppedImage&&(this.croppedImage=null!=e.croppedImage?ImageRef.from(e.croppedImage):null)}async serialize(e=new ToJsonConfiguration){return{detectionResult:this.detectionResult.serialize(e),croppedImage:e.serializeImages?null!=this.croppedImage?await this.croppedImage.serialize(e.imageSerializationMode):null:void 0}}release(){this._released||(null!=this.croppedImage&&this.croppedImage.release(),this._released=!0)}async encodeImages(){null!=this.croppedImage&&await this.croppedImage.encodeInPlace()}}const CheckDocumentDetectionModeValues=["DISABLED","DETECT_DOCUMENT","DETECT_AND_CROP_DOCUMENT"],CheckMagneticInkStripScanningStatusValues=["SUCCESS","INCOMPLETE_VALIDATION","ERROR_NOTHING_FOUND"];class CheckScanningResult{constructor(e={}){if(this.status="ERROR_NOTHING_FOUND",this.croppedImage=null,this._released=!1,void 0!==e.status&&(this.status=e.status),void 0===e.check)throw new Error("check must be present in constructor argument");if(this.check=null!=e.check?new GenericDocument(e.check):null,void 0===e.documentDetectionResult)throw new Error("documentDetectionResult must be present in constructor argument");this.documentDetectionResult=null!=e.documentDetectionResult?new DocumentDetectionResult(e.documentDetectionResult):null,void 0!==e.croppedImage&&(this.croppedImage=null!=e.croppedImage?ImageRef.from(e.croppedImage):null)}async serialize(e=new ToJsonConfiguration){return{status:this.status,check:null!=this.check?await this.check.serialize(e):null,documentDetectionResult:null!=this.documentDetectionResult?this.documentDetectionResult.serialize(e):null,croppedImage:e.serializeImages?null!=this.croppedImage?await this.croppedImage.serialize(e.imageSerializationMode):null:void 0}}release(){this._released||(null!=this.check&&this.check.release(),null!=this.croppedImage&&this.croppedImage.release(),this._released=!0)}async encodeImages(){null!=this.check&&await this.check.encodeImages(),null!=this.croppedImage&&await this.croppedImage.encodeInPlace()}}const CheckStandardValues=["USA","FRA","KWT","AUS","IND","ISR","UAE","CAN"];class CheckScannerConfiguration{constructor(e={}){this.documentDetectionMode="DISABLED",this.acceptedCheckStandards=[],this.processingMode="AUTO",void 0!==e.documentDetectionMode&&(this.documentDetectionMode=e.documentDetectionMode),void 0!==e.acceptedCheckStandards&&(this.acceptedCheckStandards=e.acceptedCheckStandards.map((e=>e))),void 0!==e.processingMode&&(this.processingMode=e.processingMode)}serialize(e=new ToJsonConfiguration){return{documentDetectionMode:this.documentDetectionMode,acceptedCheckStandards:this.acceptedCheckStandards.map((e=>e)),processingMode:this.processingMode}}}const ProcessingModeValues=["LIVE","SINGLE_SHOT","AUTO"],ConfirmationMethodValues=["EXACT","INTERPOLATE"];class ResultAccumulationConfiguration{constructor(e={}){this.confirmationMethod="EXACT",this.minConfirmations=3,this.minConfidenceForStableField=.8,this.autoClearThreshold=4,void 0!==e.confirmationMethod&&(this.confirmationMethod=e.confirmationMethod),void 0!==e.minConfirmations&&(this.minConfirmations=e.minConfirmations),void 0!==e.minConfidenceForStableField&&(this.minConfidenceForStableField=e.minConfidenceForStableField),void 0!==e.autoClearThreshold&&(this.autoClearThreshold=e.autoClearThreshold)}}class AccumulatedResultsVerifierConfiguration{constructor(e={}){this.maximumNumberOfAccumulatedFrames=3,this.minimumNumberOfRequiredFramesWithEqualScanningResult=2,void 0!==e.maximumNumberOfAccumulatedFrames&&(this.maximumNumberOfAccumulatedFrames=e.maximumNumberOfAccumulatedFrames),void 0!==e.minimumNumberOfRequiredFramesWithEqualScanningResult&&(this.minimumNumberOfRequiredFramesWithEqualScanningResult=e.minimumNumberOfRequiredFramesWithEqualScanningResult)}}const CreditCardScanningStatusValues=["SUCCESS","ERROR_NOTHING_FOUND","INCOMPLETE"];class CreditCardScanningResult{constructor(e={}){if(this._released=!1,void 0===e.detectionStatus)throw new Error("detectionStatus must be present in constructor argument");if(this.detectionStatus=e.detectionStatus,void 0===e.scanningStatus)throw new Error("scanningStatus must be present in constructor argument");if(this.scanningStatus=e.scanningStatus,void 0===e.creditCard)throw new Error("creditCard must be present in constructor argument");if(this.creditCard=null!=e.creditCard?new GenericDocument(e.creditCard):null,void 0===e.quad)throw new Error("quad must be present in constructor argument");if(this.quad=e.quad.map((e=>({x:e.x,y:e.y}))),void 0===e.quadNormalized)throw new Error("quadNormalized must be present in constructor argument");this.quadNormalized=e.quadNormalized.map((e=>({x:e.x,y:e.y})))}async serialize(e=new ToJsonConfiguration){return{detectionStatus:this.detectionStatus,scanningStatus:this.scanningStatus,creditCard:null!=this.creditCard?await this.creditCard.serialize(e):null,quad:this.quad.map((e=>e)),quadNormalized:this.quadNormalized.map((e=>e))}}release(){this._released||(null!=this.creditCard&&this.creditCard.release(),this._released=!0)}async encodeImages(){null!=this.creditCard&&await this.creditCard.encodeImages()}}class CreditCardScannerConfiguration{constructor(e={}){this.useDocumentDetector=!0,this.requireExpiryDate=!0,this.requireCardholderName=!0,this.resultAccumulationConfig=new ResultAccumulationConfiguration({}),this.returnCreditCardImage=!1,this.processingMode="AUTO",void 0!==e.useDocumentDetector&&(this.useDocumentDetector=e.useDocumentDetector),void 0!==e.requireExpiryDate&&(this.requireExpiryDate=e.requireExpiryDate),void 0!==e.requireCardholderName&&(this.requireCardholderName=e.requireCardholderName),void 0!==e.resultAccumulationConfig&&(this.resultAccumulationConfig=new ResultAccumulationConfiguration(e.resultAccumulationConfig)),void 0!==e.returnCreditCardImage&&(this.returnCreditCardImage=e.returnCreditCardImage),void 0!==e.processingMode&&(this.processingMode=e.processingMode)}}class DocumentClassifierConfiguration{constructor(e={}){this.crop=!0,void 0!==e.crop&&(this.crop=e.crop)}serialize(e=new ToJsonConfiguration){return{crop:this.crop}}}const DocumentClassifierStatusValues=["SUCCESS","FAILURE_SCANNING"],DocumentTypeValues=["UNKNOWN","BILL_OF_LADING","PAY_SHEET","SCALE_TICKET","TOLL_RECEIPT","WASH_RECEIPT"];class DocumentClassifierResult{constructor(e={}){if(this._released=!1,void 0===e.documentType)throw new Error("documentType must be present in constructor argument");if(this.documentType=e.documentType,void 0===e.confidence)throw new Error("confidence must be present in constructor argument");if(this.confidence=e.confidence,void 0===e.status)throw new Error("status must be present in constructor argument");if(this.status=e.status,void 0===e.documentScanningResult)throw new Error("documentScanningResult must be present in constructor argument");this.documentScanningResult=new DocumentScanningResult(e.documentScanningResult)}async serialize(e=new ToJsonConfiguration){return{documentType:this.documentType,confidence:this.confidence,status:this.status,documentScanningResult:await this.documentScanningResult.serialize(e)}}release(){this._released||(this.documentScanningResult.release(),this._released=!0)}async encodeImages(){await this.documentScanningResult.encodeImages()}}exports.DocumentDataExtractorConfigurationElement=void 0,(exports.DocumentDataExtractorConfigurationElement||(exports.DocumentDataExtractorConfigurationElement={})).from=function(e){const t=e._type;switch(t){case"DateValidationConfiguration":return new DateValidationConfiguration(e);case"DeAddressParserConfiguration":return new DeAddressParserConfiguration(e);case"EuropeanHealthInsuranceCardConfiguration":return new EuropeanHealthInsuranceCardConfiguration(e);case"MRZFallbackConfiguration":return new MrzFallbackConfiguration(e);case"AutoFocusConfiguration":return new AutoFocusConfiguration(e);case"GlareDetectionConfiguration":return new GlareDetectionConfiguration(e);case"DocumentDataExtractorCommonConfiguration":return new DocumentDataExtractorCommonConfiguration(e);default:throw new Error(`Unknown child class name: ${t}`)}};class DateValidationConfiguration{constructor(e={}){if(this._type="DateValidationConfiguration",this.minYear=0,this.maxYear=2999,void 0!==e.minYear&&(this.minYear=e.minYear),void 0!==e.maxYear&&(this.maxYear=e.maxYear),void 0===e.fieldTypeName)throw new Error("fieldTypeName must be present in constructor argument");this.fieldTypeName=e.fieldTypeName}}class DeAddressParserConfiguration{constructor(e={}){if(this._type="DeAddressParserConfiguration",this.binaryFileAddressDatabase="",void 0===e.documentTypes)throw new Error("documentTypes must be present in constructor argument");this.documentTypes=e.documentTypes.map((e=>e)),void 0!==e.binaryFileAddressDatabase&&(this.binaryFileAddressDatabase=e.binaryFileAddressDatabase)}}const EuropeanHealthInsuranceCardIssuingCountryValues=["AUSTRIA","BELGIUM","BULGARIA","CROATIA","CYPRUS","CZECH_REPUBLIC","DENMARK","ESTONIA","FINLAND","FRANCE","GERMANY","GREECE","HUNGARY","IRELAND","ITALY","LATVIA","LITHUANIA","LUXEMBOURG","MALTA","NETHERLANDS","POLAND","PORTUGAL","ROMANIA","SLOVAKIA","SLOVENIA","SPAIN","SWEDEN","SWITZERLAND"];class EuropeanHealthInsuranceCardConfiguration{constructor(e={}){this._type="EuropeanHealthInsuranceCardConfiguration",this.expectedCountry=null,void 0!==e.expectedCountry&&(this.expectedCountry=null!=e.expectedCountry&&EuropeanHealthInsuranceCardIssuingCountryValues.includes(e.expectedCountry)?e.expectedCountry:null)}}class MrzFallbackConfiguration{constructor(e={}){this._type="MRZFallbackConfiguration",this.acceptedCountries=[],this.acceptedMRZTypes=[],void 0!==e.acceptedCountries&&(this.acceptedCountries=e.acceptedCountries.map((e=>e))),void 0!==e.acceptedMRZTypes&&(this.acceptedMRZTypes=e.acceptedMRZTypes.map((e=>e)))}}class AutoFocusConfiguration{constructor(e={}){this._type="AutoFocusConfiguration",this.sensitivityThreshold=.02,void 0!==e.sensitivityThreshold&&(this.sensitivityThreshold=e.sensitivityThreshold)}}class GlareDetectionConfiguration{constructor(e={}){this._type="GlareDetectionConfiguration",this.glareDetectionThreshold=.5,void 0!==e.glareDetectionThreshold&&(this.glareDetectionThreshold=e.glareDetectionThreshold)}}class DocumentDataExtractorCommonConfiguration{constructor(e={}){this._type="DocumentDataExtractorCommonConfiguration",this.acceptedDocumentTypes=["DeIdCardFront","DeIdCardBack","DeHealthInsuranceCardFront","DePassport","DeResidencePermitFront","DeResidencePermitBack","EuropeanHealthInsuranceCard","EuropeanDriverLicenseFront","EuropeanDriverLicenseBack"],void 0!==e.acceptedDocumentTypes&&(this.acceptedDocumentTypes=e.acceptedDocumentTypes.map((e=>e)))}}const DocumentDataExtractionStatusValues=["OK","OK_BUT_INVALID_DOCUMENT","OK_BUT_NOT_CONFIRMED","SCANNING_IN_PROGRESS_STILL_FOCUSING","ERROR_NOTHING_FOUND","ERROR_BAD_CROP","ERROR_UNKNOWN_DOCUMENT","ERROR_UNACCEPTABLE_DOCUMENT"];class DocumentDataExtractionResult{constructor(e={}){if(this.croppedImage=null,this._released=!1,void 0===e.status)throw new Error("status must be present in constructor argument");if(this.status=e.status,void 0===e.document)throw new Error("document must be present in constructor argument");if(this.document=null!=e.document?new GenericDocument(e.document):null,void 0===e.documentDetectionResult)throw new Error("documentDetectionResult must be present in constructor argument");this.documentDetectionResult=new DocumentDetectionResult(e.documentDetectionResult),void 0!==e.croppedImage&&(this.croppedImage=null!=e.croppedImage?ImageRef.from(e.croppedImage):null)}async serialize(e=new ToJsonConfiguration){return{status:this.status,document:null!=this.document?await this.document.serialize(e):null,documentDetectionResult:this.documentDetectionResult.serialize(e),croppedImage:e.serializeImages?null!=this.croppedImage?await this.croppedImage.serialize(e.imageSerializationMode):null:void 0}}release(){this._released||(null!=this.document&&this.document.release(),null!=this.croppedImage&&this.croppedImage.release(),this._released=!0)}async encodeImages(){null!=this.document&&await this.document.encodeImages(),null!=this.croppedImage&&await this.croppedImage.encodeInPlace()}}const DocumentTrustModeValues=["TRUSTED","UNTRUSTED"];class DocumentDataExtractorConfiguration{constructor(e={}){this.resultAccumulationConfig=new ResultAccumulationConfiguration({}),this.fieldExcludeList=[],this.configurations=[new DocumentDataExtractorCommonConfiguration({})],this.returnCrops=!1,this.documentTrustMode="TRUSTED",this.processingMode="AUTO",void 0!==e.resultAccumulationConfig&&(this.resultAccumulationConfig=new ResultAccumulationConfiguration(e.resultAccumulationConfig)),void 0!==e.fieldExcludeList&&(this.fieldExcludeList=e.fieldExcludeList.map((e=>e))),void 0!==e.configurations&&(this.configurations=e.configurations.map((e=>exports.DocumentDataExtractorConfigurationElement.from(e)))),void 0!==e.returnCrops&&(this.returnCrops=e.returnCrops),void 0!==e.documentTrustMode&&(this.documentTrustMode=e.documentTrustMode),void 0!==e.processingMode&&(this.processingMode=e.processingMode)}}const ValueConsistencyValues=["OK","OK_PUNCTUATION_UPPER_CASE_CLEANED","OK_DEBURRED","OK_DEBURRED_EXTENDED","OK_TRUNCATED","INCONSISTENT"];class FieldConsistencyVerificationReport{constructor(e={}){if(void 0===e.fieldType)throw new Error("fieldType must be present in constructor argument");if(this.fieldType=e.fieldType,void 0===e.consistency)throw new Error("consistency must be present in constructor argument");if(this.consistency=e.consistency,void 0===e.fieldFullNames)throw new Error("fieldFullNames must be present in constructor argument");this.fieldFullNames=e.fieldFullNames.map((e=>e))}serialize(e=new ToJsonConfiguration){return{fieldType:this.fieldType,consistency:this.consistency,fieldFullNames:this.fieldFullNames.map((e=>e))}}}class ConsistencyVerificationReport{constructor(e={}){if(void 0===e.overallConsistency)throw new Error("overallConsistency must be present in constructor argument");if(this.overallConsistency=e.overallConsistency,void 0===e.fieldDetails)throw new Error("fieldDetails must be present in constructor argument");this.fieldDetails=e.fieldDetails.map((e=>new FieldConsistencyVerificationReport(e)))}serialize(e=new ToJsonConfiguration){return{overallConsistency:this.overallConsistency,fieldDetails:this.fieldDetails.map((t=>t.serialize(e)))}}}const ValueSemanticsValues=["SKIPPED","VALID","INVALID"];class FieldValueSemantics{constructor(e={}){if(void 0===e.fieldFullName)throw new Error("fieldFullName must be present in constructor argument");if(this.fieldFullName=e.fieldFullName,void 0===e.invalidSemantics)throw new Error("invalidSemantics must be present in constructor argument");this.invalidSemantics=e.invalidSemantics}serialize(e=new ToJsonConfiguration){return{fieldFullName:this.fieldFullName,invalidSemantics:this.invalidSemantics}}}class CompositeFieldValueSemantics{constructor(e={}){if(void 0===e.overallFieldValueSemantics)throw new Error("overallFieldValueSemantics must be present in constructor argument");if(this.overallFieldValueSemantics=e.overallFieldValueSemantics,void 0===e.fieldDetails)throw new Error("fieldDetails must be present in constructor argument");this.fieldDetails=e.fieldDetails.map((e=>new FieldValueSemantics(e)))}serialize(e=new ToJsonConfiguration){return{overallFieldValueSemantics:this.overallFieldValueSemantics,fieldDetails:this.fieldDetails.map((t=>t.serialize(e)))}}}class SemanticsVerificationReport{constructor(e={}){if(void 0===e.overallInvalidSemantics)throw new Error("overallInvalidSemantics must be present in constructor argument");if(this.overallInvalidSemantics=e.overallInvalidSemantics,void 0===e.expiryDateSemantics)throw new Error("expiryDateSemantics must be present in constructor argument");if(this.expiryDateSemantics=new CompositeFieldValueSemantics(e.expiryDateSemantics),void 0===e.issueDateSemantics)throw new Error("issueDateSemantics must be present in constructor argument");if(this.issueDateSemantics=new CompositeFieldValueSemantics(e.issueDateSemantics),void 0===e.birthDateSemantics)throw new Error("birthDateSemantics must be present in constructor argument");if(this.birthDateSemantics=new CompositeFieldValueSemantics(e.birthDateSemantics),void 0===e.issueDateBeforeExpiryDate)throw new Error("issueDateBeforeExpiryDate must be present in constructor argument");if(this.issueDateBeforeExpiryDate=e.issueDateBeforeExpiryDate,void 0===e.birthDateBeforeIssueDate)throw new Error("birthDateBeforeIssueDate must be present in constructor argument");if(this.birthDateBeforeIssueDate=e.birthDateBeforeIssueDate,void 0===e.birthDateBeforeExpiryDate)throw new Error("birthDateBeforeExpiryDate must be present in constructor argument");this.birthDateBeforeExpiryDate=e.birthDateBeforeExpiryDate}serialize(e=new ToJsonConfiguration){return{overallInvalidSemantics:this.overallInvalidSemantics,expiryDateSemantics:this.expiryDateSemantics.serialize(e),issueDateSemantics:this.issueDateSemantics.serialize(e),birthDateSemantics:this.birthDateSemantics.serialize(e),issueDateBeforeExpiryDate:this.issueDateBeforeExpiryDate,birthDateBeforeIssueDate:this.birthDateBeforeIssueDate,birthDateBeforeExpiryDate:this.birthDateBeforeExpiryDate}}}class FieldSuspiciousDataVerificationReport{constructor(e={}){if(void 0===e.fieldFullName)throw new Error("fieldFullName must be present in constructor argument");if(this.fieldFullName=e.fieldFullName,void 0===e.isSuspicious)throw new Error("isSuspicious must be present in constructor argument");this.isSuspicious=e.isSuspicious}serialize(e=new ToJsonConfiguration){return{fieldFullName:this.fieldFullName,isSuspicious:this.isSuspicious}}}class SuspiciousDataVerificationReport{constructor(e={}){if(void 0===e.overallSuspiciousData)throw new Error("overallSuspiciousData must be present in constructor argument");if(this.overallSuspiciousData=e.overallSuspiciousData,void 0===e.fieldDetails)throw new Error("fieldDetails must be present in constructor argument");this.fieldDetails=e.fieldDetails.map((e=>new FieldSuspiciousDataVerificationReport(e)))}serialize(e=new ToJsonConfiguration){return{overallSuspiciousData:this.overallSuspiciousData,fieldDetails:this.fieldDetails.map((t=>t.serialize(e)))}}}class FieldInvalidDataVerificationReport{constructor(e={}){if(void 0===e.fieldFullName)throw new Error("fieldFullName must be present in constructor argument");if(this.fieldFullName=e.fieldFullName,void 0===e.isInvalid)throw new Error("isInvalid must be present in constructor argument");this.isInvalid=e.isInvalid}serialize(e=new ToJsonConfiguration){return{fieldFullName:this.fieldFullName,isInvalid:this.isInvalid}}}class InvalidDataVerificationReport{constructor(e={}){if(void 0===e.overallIsInvalid)throw new Error("overallIsInvalid must be present in constructor argument");if(this.overallIsInvalid=e.overallIsInvalid,void 0===e.fieldDetails)throw new Error("fieldDetails must be present in constructor argument");this.fieldDetails=e.fieldDetails.map((e=>new FieldInvalidDataVerificationReport(e)))}serialize(e=new ToJsonConfiguration){return{overallIsInvalid:this.overallIsInvalid,fieldDetails:this.fieldDetails.map((t=>t.serialize(e)))}}}const DocumentVerificationStatusValues=["OK","OK_WITH_WARNINGS","INVALID"];class DocumentVerificationReport{constructor(e={}){if(void 0===e.overallVerificationStatus)throw new Error("overallVerificationStatus must be present in constructor argument");if(this.overallVerificationStatus=e.overallVerificationStatus,void 0===e.consistencyVerificationReport)throw new Error("consistencyVerificationReport must be present in constructor argument");if(this.consistencyVerificationReport=new ConsistencyVerificationReport(e.consistencyVerificationReport),void 0===e.semanticsVerificationReport)throw new Error("semanticsVerificationReport must be present in constructor argument");if(this.semanticsVerificationReport=new SemanticsVerificationReport(e.semanticsVerificationReport),void 0===e.suspiciousDataVerificationReport)throw new Error("suspiciousDataVerificationReport must be present in constructor argument");if(this.suspiciousDataVerificationReport=new SuspiciousDataVerificationReport(e.suspiciousDataVerificationReport),void 0===e.invalidDataVerificationReport)throw new Error("invalidDataVerificationReport must be present in constructor argument");this.invalidDataVerificationReport=new InvalidDataVerificationReport(e.invalidDataVerificationReport)}serialize(e=new ToJsonConfiguration){return{overallVerificationStatus:this.overallVerificationStatus,consistencyVerificationReport:this.consistencyVerificationReport.serialize(e),semanticsVerificationReport:this.semanticsVerificationReport.serialize(e),suspiciousDataVerificationReport:this.suspiciousDataVerificationReport.serialize(e),invalidDataVerificationReport:this.invalidDataVerificationReport.serialize(e)}}}const DocumentQualityValues=["VERY_POOR","POOR","REASONABLE","GOOD","EXCELLENT"];class DocumentQualityThreshold{constructor(e={}){if(void 0===e.symbolQuality)throw new Error("symbolQuality must be present in constructor argument");if(this.symbolQuality=e.symbolQuality,void 0===e.symbolRatio)throw new Error("symbolRatio must be present in constructor argument");this.symbolRatio=e.symbolRatio}}class ProcessByTileConfiguration{constructor(e={}){this.enabled=!1,this.minProcessedFraction=1,this.maxProcessedFraction=1,this.minNumberOfRequiredSymbols=100,this.tileSize=300,void 0!==e.enabled&&(this.enabled=e.enabled),void 0!==e.minProcessedFraction&&(this.minProcessedFraction=e.minProcessedFraction),void 0!==e.maxProcessedFraction&&(this.maxProcessedFraction=e.maxProcessedFraction),void 0!==e.minNumberOfRequiredSymbols&&(this.minNumberOfRequiredSymbols=e.minNumberOfRequiredSymbols),void 0!==e.tileSize&&(this.tileSize=e.tileSize)}}class DocumentQualityAnalyzerConfiguration{constructor(e={}){this.qualityThresholds=[new DocumentQualityThreshold({symbolQuality:.5,symbolRatio:.5}),new DocumentQualityThreshold({symbolQuality:.7,symbolRatio:.3}),new DocumentQualityThreshold({symbolQuality:.85,symbolRatio:.3}),new DocumentQualityThreshold({symbolQuality:.9,symbolRatio:.1})],this.qualityIndices=["VERY_POOR","POOR","REASONABLE","GOOD","EXCELLENT"],this.detectOrientation=!1,this.inspectSmallText=!1,this.maxImageSize=2e3,this.minEstimatedNumberOfSymbolsForDocument=20,this.processByTileConfiguration=new ProcessByTileConfiguration({}),this.minRequiredOrientationConfidence=0,this.returnQualityHeatmap=!1,void 0!==e.qualityThresholds&&(this.qualityThresholds=e.qualityThresholds.map((e=>new DocumentQualityThreshold(e)))),void 0!==e.qualityIndices&&(this.qualityIndices=e.qualityIndices.map((e=>e))),void 0!==e.detectOrientation&&(this.detectOrientation=e.detectOrientation),void 0!==e.inspectSmallText&&(this.inspectSmallText=e.inspectSmallText),void 0!==e.maxImageSize&&(this.maxImageSize=e.maxImageSize),void 0!==e.minEstimatedNumberOfSymbolsForDocument&&(this.minEstimatedNumberOfSymbolsForDocument=e.minEstimatedNumberOfSymbolsForDocument),void 0!==e.processByTileConfiguration&&(this.processByTileConfiguration=new ProcessByTileConfiguration(e.processByTileConfiguration)),void 0!==e.minRequiredOrientationConfidence&&(this.minRequiredOrientationConfidence=e.minRequiredOrientationConfidence),void 0!==e.returnQualityHeatmap&&(this.returnQualityHeatmap=e.returnQualityHeatmap)}}class DocumentQualityAnalyzerResult{constructor(e={}){if(this.qualityHeatmap=null,this._released=!1,void 0===e.documentFound)throw new Error("documentFound must be present in constructor argument");if(this.documentFound=e.documentFound,void 0===e.quality)throw new Error("quality must be present in constructor argument");if(this.quality=null!=e.quality&&DocumentQualityValues.includes(e.quality)?e.quality:null,void 0===e.orientation)throw new Error("orientation must be present in constructor argument");if(this.orientation=null!=e.orientation?e.orientation:null,void 0===e.orientationConfidence)throw new Error("orientationConfidence must be present in constructor argument");if(this.orientationConfidence=null!=e.orientationConfidence?e.orientationConfidence:null,void 0===e.cumulativeQualityHistogram)throw new Error("cumulativeQualityHistogram must be present in constructor argument");if(this.cumulativeQualityHistogram=e.cumulativeQualityHistogram.map((e=>e)),void 0===e.cumulativeContrastHistogram)throw new Error("cumulativeContrastHistogram must be present in constructor argument");if(this.cumulativeContrastHistogram=e.cumulativeContrastHistogram.map((e=>e)),void 0===e.cumulativeTextSizeHistogram)throw new Error("cumulativeTextSizeHistogram must be present in constructor argument");this.cumulativeTextSizeHistogram=e.cumulativeTextSizeHistogram.map((e=>e)),void 0!==e.qualityHeatmap&&(this.qualityHeatmap=null!=e.qualityHeatmap?ImageRef.from(e.qualityHeatmap):null)}async serialize(e=new ToJsonConfiguration){return{documentFound:this.documentFound,quality:null!=this.quality?this.quality:null,orientation:null!=this.orientation?this.orientation:null,orientationConfidence:null!=this.orientationConfidence?this.orientationConfidence:null,cumulativeQualityHistogram:this.cumulativeQualityHistogram.map((e=>e)),cumulativeContrastHistogram:this.cumulativeContrastHistogram.map((e=>e)),cumulativeTextSizeHistogram:this.cumulativeTextSizeHistogram.map((e=>e)),qualityHeatmap:e.serializeImages?null!=this.qualityHeatmap?await this.qualityHeatmap.serialize(e.imageSerializationMode):null:void 0}}release(){this._released||(null!=this.qualityHeatmap&&this.qualityHeatmap.release(),this._released=!0)}async encodeImages(){null!=this.qualityHeatmap&&await this.qualityHeatmap.encodeInPlace()}}const PageImageSourceValues=["UNDEFINED","MANUAL_SNAP","AUTO_SNAP","CAMERA_FRAME","IMPORTED"];class PageData{constructor(e={}){if(this.filters=null,this.polygon=[],this.documentDetectionStatus=null,this.documentQuality=null,this.source=null,this.documentImageURI=null,this.unfilteredDocumentImageURI=null,this.documentImagePreviewURI=null,void 0===e.uuid)throw new Error("uuid must be present in constructor argument");if(this.uuid=e.uuid,void 0!==e.filters&&(this.filters=null!=e.filters?e.filters.map((e=>exports.ParametricFilter.from(e))):null),void 0!==e.polygon&&(this.polygon=e.polygon.map((e=>({x:e.x,y:e.y})))),void 0!==e.documentDetectionStatus&&(this.documentDetectionStatus=null!=e.documentDetectionStatus&&DocumentDetectionStatusValues.includes(e.documentDetectionStatus)?e.documentDetectionStatus:null),void 0!==e.documentQuality&&(this.documentQuality=null!=e.documentQuality&&DocumentQualityValues.includes(e.documentQuality)?e.documentQuality:null),void 0!==e.source&&(this.source=null!=e.source&&PageImageSourceValues.includes(e.source)?e.source:null),void 0===e.originalImageURI)throw new Error("originalImageURI must be present in constructor argument");this.originalImageURI=e.originalImageURI,void 0!==e.documentImageURI&&(this.documentImageURI=null!=e.documentImageURI?e.documentImageURI:null),void 0!==e.unfilteredDocumentImageURI&&(this.unfilteredDocumentImageURI=null!=e.unfilteredDocumentImageURI?e.unfilteredDocumentImageURI:null),void 0!==e.documentImagePreviewURI&&(this.documentImagePreviewURI=null!=e.documentImagePreviewURI?e.documentImagePreviewURI:null)}serialize(e=new ToJsonConfiguration){return{uuid:this.uuid,filters:null!=this.filters?this.filters.map((t=>t.serialize(e))):null,polygon:this.polygon.map((e=>e)),documentDetectionStatus:null!=this.documentDetectionStatus?this.documentDetectionStatus:null,documentQuality:null!=this.documentQuality?this.documentQuality:null,source:null!=this.source?this.source:null,originalImageURI:this.originalImageURI,documentImageURI:null!=this.documentImageURI?this.documentImageURI:null,unfilteredDocumentImageURI:null!=this.unfilteredDocumentImageURI?this.unfilteredDocumentImageURI:null,documentImagePreviewURI:null!=this.documentImagePreviewURI?this.documentImagePreviewURI:null}}}class DocumentData{constructor(e={}){if(this.documentImageSizeLimit=0,void 0===e.uuid)throw new Error("uuid must be present in constructor argument");if(this.uuid=e.uuid,void 0===e.creationTimestamp)throw new Error("creationTimestamp must be present in constructor argument");if(this.creationTimestamp=e.creationTimestamp,void 0===e.pages)throw new Error("pages must be present in constructor argument");if(this.pages=e.pages.map((e=>new PageData(e))),void 0!==e.documentImageSizeLimit&&(this.documentImageSizeLimit=e.documentImageSizeLimit),void 0===e.pdfURI)throw new Error("pdfURI must be present in constructor argument");if(this.pdfURI=e.pdfURI,void 0===e.tiffURI)throw new Error("tiffURI must be present in constructor argument");this.tiffURI=e.tiffURI}serialize(e=new ToJsonConfiguration){return{uuid:this.uuid,creationTimestamp:this.creationTimestamp,pages:this.pages.map((t=>t.serialize(e))),documentImageSizeLimit:this.documentImageSizeLimit,pdfURI:this.pdfURI,tiffURI:this.tiffURI}}}class BoardingPass{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return BoardingPass.DOCUMENT_TYPE}get electronicTicketIndicator(){return this.document.fields.find((e=>"ElectronicTicketIndicator"===e.type.name))}get formatCode(){return this.document.fields.find((e=>"FormatCode"===e.type.name))}get numberOfLegs(){return this.document.fields.find((e=>"NumberOfLegs"===e.type.name))}get passengerName(){return this.document.fields.find((e=>"PassengerName"===e.type.name))}get securityData(){return this.document.fields.find((e=>"SecurityData"===e.type.name))}get securityDataType(){return this.document.fields.find((e=>"SecurityDataType"===e.type.name))}get legs(){return this.document.children.filter((e=>"Leg"===e.type.name)).map((e=>new BoardingPass.Leg(e)))}}BoardingPass.DOCUMENT_TYPE="BoardingPass",BoardingPass.ELECTRONIC_TICKET_INDICATOR_FIELD_NAME="ElectronicTicketIndicator",BoardingPass.ELECTRONIC_TICKET_INDICATOR_FIELD_NAME_NORMALIZED="BoardingPass.ElectronicTicketIndicator",BoardingPass.FORMAT_CODE_FIELD_NAME="FormatCode",BoardingPass.FORMAT_CODE_FIELD_NAME_NORMALIZED="BoardingPass.FormatCode",BoardingPass.NUMBER_OF_LEGS_FIELD_NAME="NumberOfLegs",BoardingPass.NUMBER_OF_LEGS_FIELD_NAME_NORMALIZED="BoardingPass.NumberOfLegs",BoardingPass.PASSENGER_NAME_FIELD_NAME="PassengerName",BoardingPass.PASSENGER_NAME_FIELD_NAME_NORMALIZED="BoardingPass.PassengerName",BoardingPass.SECURITY_DATA_FIELD_NAME="SecurityData",BoardingPass.SECURITY_DATA_FIELD_NAME_NORMALIZED="BoardingPass.SecurityData",BoardingPass.SECURITY_DATA_TYPE_FIELD_NAME="SecurityDataType",BoardingPass.SECURITY_DATA_TYPE_FIELD_NAME_NORMALIZED="BoardingPass.SecurityDataType",function(e){class t{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.Leg.DOCUMENT_TYPE}get airlineDesignatorOfBoardingPassIssuer(){return this.document.fields.find((e=>"AirlineDesignatorOfBoardingPassIssuer"===e.type.name))}get airlineNumericCode(){return this.document.fields.find((e=>"AirlineNumericCode"===e.type.name))}get baggageTagLicensePlateNumbers(){return this.document.fields.find((e=>"BaggageTagLicensePlateNumbers"===e.type.name))}get checkInSequenceNumber(){return this.document.fields.find((e=>"CheckInSequenceNumber"===e.type.name))}get compartmentCode(){return this.document.fields.find((e=>"CompartmentCode"===e.type.name))}get dateOfBoardingPassIssuanceJulian(){return this.document.fields.find((e=>"DateOfBoardingPassIssuanceJulian"===e.type.name))}get dateOfFlightJulian(){return this.document.fields.find((e=>"DateOfFlightJulian"===e.type.name))}get departureAirportCode(){return this.document.fields.find((e=>"DepartureAirportCode"===e.type.name))}get destinationAirportCode(){return this.document.fields.find((e=>"DestinationAirportCode"===e.type.name))}get documentFormSerialNumber(){return this.document.fields.find((e=>"DocumentFormSerialNumber"===e.type.name))}get documentType(){return this.document.fields.find((e=>"DocumentType"===e.type.name))}get fastTrack(){return this.document.fields.find((e=>"FastTrack"===e.type.name))}get firstNonConsecutiveBaggageTagLicensePlateNumber(){return this.document.fields.find((e=>"FirstNonConsecutiveBaggageTagLicensePlateNumber"===e.type.name))}get flightNumber(){return this.document.fields.find((e=>"FlightNumber"===e.type.name))}get forIndividualAirlineUse(){return this.document.fields.find((e=>"ForIndividualAirlineUse"===e.type.name))}get freeBaggageAllowance(){return this.document.fields.find((e=>"FreeBaggageAllowance"===e.type.name))}get frequentFlyerAirlineDesignator(){return this.document.fields.find((e=>"FrequentFlyerAirlineDesignator"===e.type.name))}get frequentFlyerNumber(){return this.document.fields.find((e=>"FrequentFlyerNumber"===e.type.name))}get idadIndicator(){return this.document.fields.find((e=>"IDADIndicator"===e.type.name))}get internationalDocumentationVerification(){return this.document.fields.find((e=>"InternationalDocumentationVerification"===e.type.name))}get marketingCarrierDesignator(){return this.document.fields.find((e=>"MarketingCarrierDesignator"===e.type.name))}get operatingCarrierDesignator(){return this.document.fields.find((e=>"OperatingCarrierDesignator"===e.type.name))}get operatingCarrierPNRCode(){return this.document.fields.find((e=>"OperatingCarrierPNRCode"===e.type.name))}get passengerDescription(){return this.document.fields.find((e=>"PassengerDescription"===e.type.name))}get passengerStatus(){return this.document.fields.find((e=>"PassengerStatus"===e.type.name))}get seatNumber(){return this.document.fields.find((e=>"SeatNumber"===e.type.name))}get secondNonConsecutiveBaggageTagLicensePlateNumber(){return this.document.fields.find((e=>"SecondNonConsecutiveBaggageTagLicensePlateNumber"===e.type.name))}get selecteeIndicator(){return this.document.fields.find((e=>"SelecteeIndicator"===e.type.name))}get sourceOfBoardingPassIssuance(){return this.document.fields.find((e=>"SourceOfBoardingPassIssuance"===e.type.name))}get sourceOfCheckIn(){return this.document.fields.find((e=>"SourceOfCheckIn"===e.type.name))}get versionNumber(){return this.document.fields.find((e=>"VersionNumber"===e.type.name))}}t.DOCUMENT_TYPE="Leg",t.AIRLINE_DESIGNATOR_OF_BOARDING_PASS_ISSUER_FIELD_NAME="AirlineDesignatorOfBoardingPassIssuer",t.AIRLINE_DESIGNATOR_OF_BOARDING_PASS_ISSUER_FIELD_NAME_NORMALIZED="BoardingPass.Leg.AirlineDesignatorOfBoardingPassIssuer",t.AIRLINE_NUMERIC_CODE_FIELD_NAME="AirlineNumericCode",t.AIRLINE_NUMERIC_CODE_FIELD_NAME_NORMALIZED="BoardingPass.Leg.AirlineNumericCode",t.BAGGAGE_TAG_LICENSE_PLATE_NUMBERS_FIELD_NAME="BaggageTagLicensePlateNumbers",t.BAGGAGE_TAG_LICENSE_PLATE_NUMBERS_FIELD_NAME_NORMALIZED="BoardingPass.Leg.BaggageTagLicensePlateNumbers",t.CHECK_IN_SEQUENCE_NUMBER_FIELD_NAME="CheckInSequenceNumber",t.CHECK_IN_SEQUENCE_NUMBER_FIELD_NAME_NORMALIZED="BoardingPass.Leg.CheckInSequenceNumber",t.COMPARTMENT_CODE_FIELD_NAME="CompartmentCode",t.COMPARTMENT_CODE_FIELD_NAME_NORMALIZED="BoardingPass.Leg.CompartmentCode",t.DATE_OF_BOARDING_PASS_ISSUANCE_JULIAN_FIELD_NAME="DateOfBoardingPassIssuanceJulian",t.DATE_OF_BOARDING_PASS_ISSUANCE_JULIAN_FIELD_NAME_NORMALIZED="BoardingPass.Leg.DateOfBoardingPassIssuanceJulian",t.DATE_OF_FLIGHT_JULIAN_FIELD_NAME="DateOfFlightJulian",t.DATE_OF_FLIGHT_JULIAN_FIELD_NAME_NORMALIZED="BoardingPass.Leg.DateOfFlightJulian",t.DEPARTURE_AIRPORT_CODE_FIELD_NAME="DepartureAirportCode",t.DEPARTURE_AIRPORT_CODE_FIELD_NAME_NORMALIZED="BoardingPass.Leg.DepartureAirportCode",t.DESTINATION_AIRPORT_CODE_FIELD_NAME="DestinationAirportCode",t.DESTINATION_AIRPORT_CODE_FIELD_NAME_NORMALIZED="BoardingPass.Leg.DestinationAirportCode",t.DOCUMENT_FORM_SERIAL_NUMBER_FIELD_NAME="DocumentFormSerialNumber",t.DOCUMENT_FORM_SERIAL_NUMBER_FIELD_NAME_NORMALIZED="BoardingPass.Leg.DocumentFormSerialNumber",t.DOCUMENT_TYPE_FIELD_NAME="DocumentType",t.DOCUMENT_TYPE_FIELD_NAME_NORMALIZED="BoardingPass.Leg.DocumentType",t.FAST_TRACK_FIELD_NAME="FastTrack",t.FAST_TRACK_FIELD_NAME_NORMALIZED="BoardingPass.Leg.FastTrack",t.FIRST_NON_CONSECUTIVE_BAGGAGE_TAG_LICENSE_PLATE_NUMBER_FIELD_NAME="FirstNonConsecutiveBaggageTagLicensePlateNumber",t.FIRST_NON_CONSECUTIVE_BAGGAGE_TAG_LICENSE_PLATE_NUMBER_FIELD_NAME_NORMALIZED="BoardingPass.Leg.FirstNonConsecutiveBaggageTagLicensePlateNumber",t.FLIGHT_NUMBER_FIELD_NAME="FlightNumber",t.FLIGHT_NUMBER_FIELD_NAME_NORMALIZED="BoardingPass.Leg.FlightNumber",t.FOR_INDIVIDUAL_AIRLINE_USE_FIELD_NAME="ForIndividualAirlineUse",t.FOR_INDIVIDUAL_AIRLINE_USE_FIELD_NAME_NORMALIZED="BoardingPass.Leg.ForIndividualAirlineUse",t.FREE_BAGGAGE_ALLOWANCE_FIELD_NAME="FreeBaggageAllowance",t.FREE_BAGGAGE_ALLOWANCE_FIELD_NAME_NORMALIZED="BoardingPass.Leg.FreeBaggageAllowance",t.FREQUENT_FLYER_AIRLINE_DESIGNATOR_FIELD_NAME="FrequentFlyerAirlineDesignator",t.FREQUENT_FLYER_AIRLINE_DESIGNATOR_FIELD_NAME_NORMALIZED="BoardingPass.Leg.FrequentFlyerAirlineDesignator",t.FREQUENT_FLYER_NUMBER_FIELD_NAME="FrequentFlyerNumber",t.FREQUENT_FLYER_NUMBER_FIELD_NAME_NORMALIZED="BoardingPass.Leg.FrequentFlyerNumber",t.IDAD_INDICATOR_FIELD_NAME="IDADIndicator",t.IDAD_INDICATOR_FIELD_NAME_NORMALIZED="BoardingPass.Leg.IDADIndicator",t.INTERNATIONAL_DOCUMENTATION_VERIFICATION_FIELD_NAME="InternationalDocumentationVerification",t.INTERNATIONAL_DOCUMENTATION_VERIFICATION_FIELD_NAME_NORMALIZED="BoardingPass.Leg.InternationalDocumentationVerification",t.MARKETING_CARRIER_DESIGNATOR_FIELD_NAME="MarketingCarrierDesignator",t.MARKETING_CARRIER_DESIGNATOR_FIELD_NAME_NORMALIZED="BoardingPass.Leg.MarketingCarrierDesignator",t.OPERATING_CARRIER_DESIGNATOR_FIELD_NAME="OperatingCarrierDesignator",t.OPERATING_CARRIER_DESIGNATOR_FIELD_NAME_NORMALIZED="BoardingPass.Leg.OperatingCarrierDesignator",t.OPERATING_CARRIER_PNR_CODE_FIELD_NAME="OperatingCarrierPNRCode",t.OPERATING_CARRIER_PNR_CODE_FIELD_NAME_NORMALIZED="BoardingPass.Leg.OperatingCarrierPNRCode",t.PASSENGER_DESCRIPTION_FIELD_NAME="PassengerDescription",t.PASSENGER_DESCRIPTION_FIELD_NAME_NORMALIZED="BoardingPass.Leg.PassengerDescription",t.PASSENGER_STATUS_FIELD_NAME="PassengerStatus",t.PASSENGER_STATUS_FIELD_NAME_NORMALIZED="BoardingPass.Leg.PassengerStatus",t.SEAT_NUMBER_FIELD_NAME="SeatNumber",t.SEAT_NUMBER_FIELD_NAME_NORMALIZED="BoardingPass.Leg.SeatNumber",t.SECOND_NON_CONSECUTIVE_BAGGAGE_TAG_LICENSE_PLATE_NUMBER_FIELD_NAME="SecondNonConsecutiveBaggageTagLicensePlateNumber",t.SECOND_NON_CONSECUTIVE_BAGGAGE_TAG_LICENSE_PLATE_NUMBER_FIELD_NAME_NORMALIZED="BoardingPass.Leg.SecondNonConsecutiveBaggageTagLicensePlateNumber",t.SELECTEE_INDICATOR_FIELD_NAME="SelecteeIndicator",t.SELECTEE_INDICATOR_FIELD_NAME_NORMALIZED="BoardingPass.Leg.SelecteeIndicator",t.SOURCE_OF_BOARDING_PASS_ISSUANCE_FIELD_NAME="SourceOfBoardingPassIssuance",t.SOURCE_OF_BOARDING_PASS_ISSUANCE_FIELD_NAME_NORMALIZED="BoardingPass.Leg.SourceOfBoardingPassIssuance",t.SOURCE_OF_CHECK_IN_FIELD_NAME="SourceOfCheckIn",t.SOURCE_OF_CHECK_IN_FIELD_NAME_NORMALIZED="BoardingPass.Leg.SourceOfCheckIn",t.VERSION_NUMBER_FIELD_NAME="VersionNumber",t.VERSION_NUMBER_FIELD_NAME_NORMALIZED="BoardingPass.Leg.VersionNumber",e.Leg=t}(BoardingPass||(BoardingPass={}));class SwissQR{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return SwissQR.DOCUMENT_TYPE}get additionalBillingInformation(){return this.document.fields.find((e=>"AdditionalBillingInformation"===e.type.name))}get additionalInfoTrailer(){return this.document.fields.find((e=>"AdditionalInfoTrailer"===e.type.name))}get additionalInfoUnstructured(){return this.document.fields.find((e=>"AdditionalInfoUnstructured"===e.type.name))}get alternativeProcedureParameter(){return this.document.fields.find((e=>"AlternativeProcedureParameter"===e.type.name))}get amount(){return this.document.fields.find((e=>"Amount"===e.type.name))}get currency(){return this.document.fields.find((e=>"Currency"===e.type.name))}get debtorAddressType(){return this.document.fields.find((e=>"DebtorAddressType"===e.type.name))}get debtorBuildingOrAddressLine2(){return this.document.fields.find((e=>"DebtorBuildingOrAddressLine2"===e.type.name))}get debtorCountry(){return this.document.fields.find((e=>"DebtorCountry"===e.type.name))}get debtorName(){return this.document.fields.find((e=>"DebtorName"===e.type.name))}get debtorPlace(){return this.document.fields.find((e=>"DebtorPlace"===e.type.name))}get debtorPostalCode(){return this.document.fields.find((e=>"DebtorPostalCode"===e.type.name))}get debtorStreetOrAddressLine1(){return this.document.fields.find((e=>"DebtorStreetOrAddressLine1"===e.type.name))}get dueDate(){return this.document.fields.find((e=>"DueDate"===e.type.name))}get encoding(){return this.document.fields.find((e=>"Encoding"===e.type.name))}get finalPayeeAddressType(){return this.document.fields.find((e=>"FinalPayeeAddressType"===e.type.name))}get finalPayeeBuildingOrAddressLine2(){return this.document.fields.find((e=>"FinalPayeeBuildingOrAddressLine2"===e.type.name))}get finalPayeeCountry(){return this.document.fields.find((e=>"FinalPayeeCountry"===e.type.name))}get finalPayeeName(){return this.document.fields.find((e=>"FinalPayeeName"===e.type.name))}get finalPayeePlace(){return this.document.fields.find((e=>"FinalPayeePlace"===e.type.name))}get finalPayeePostalCode(){return this.document.fields.find((e=>"FinalPayeePostalCode"===e.type.name))}get finalPayeeStreetOrAddressLine1(){return this.document.fields.find((e=>"FinalPayeeStreetOrAddressLine1"===e.type.name))}get iban(){return this.document.fields.find((e=>"IBAN"===e.type.name))}get majorVersion(){return this.document.fields.find((e=>"MajorVersion"===e.type.name))}get payeeAddressType(){return this.document.fields.find((e=>"PayeeAddressType"===e.type.name))}get payeeBuildingOrAddressLine2(){return this.document.fields.find((e=>"PayeeBuildingOrAddressLine2"===e.type.name))}get payeeCountry(){return this.document.fields.find((e=>"PayeeCountry"===e.type.name))}get payeeName(){return this.document.fields.find((e=>"PayeeName"===e.type.name))}get payeePlace(){return this.document.fields.find((e=>"PayeePlace"===e.type.name))}get payeePostalCode(){return this.document.fields.find((e=>"PayeePostalCode"===e.type.name))}get payeeStreetOrAddressLine1(){return this.document.fields.find((e=>"PayeeStreetOrAddressLine1"===e.type.name))}get paymentReference(){return this.document.fields.find((e=>"PaymentReference"===e.type.name))}get paymentReferenceType(){return this.document.fields.find((e=>"PaymentReferenceType"===e.type.name))}}SwissQR.DOCUMENT_TYPE="SwissQR",SwissQR.ADDITIONAL_BILLING_INFORMATION_FIELD_NAME="AdditionalBillingInformation",SwissQR.ADDITIONAL_BILLING_INFORMATION_FIELD_NAME_NORMALIZED="SwissQR.AdditionalBillingInformation",SwissQR.ADDITIONAL_INFO_TRAILER_FIELD_NAME="AdditionalInfoTrailer",SwissQR.ADDITIONAL_INFO_TRAILER_FIELD_NAME_NORMALIZED="SwissQR.AdditionalInfoTrailer",SwissQR.ADDITIONAL_INFO_UNSTRUCTURED_FIELD_NAME="AdditionalInfoUnstructured",SwissQR.ADDITIONAL_INFO_UNSTRUCTURED_FIELD_NAME_NORMALIZED="SwissQR.AdditionalInfoUnstructured",SwissQR.ALTERNATIVE_PROCEDURE_PARAMETER_FIELD_NAME="AlternativeProcedureParameter",SwissQR.ALTERNATIVE_PROCEDURE_PARAMETER_FIELD_NAME_NORMALIZED="SwissQR.AlternativeProcedureParameter",SwissQR.AMOUNT_FIELD_NAME="Amount",SwissQR.AMOUNT_FIELD_NAME_NORMALIZED="SwissQR.Amount",SwissQR.CURRENCY_FIELD_NAME="Currency",SwissQR.CURRENCY_FIELD_NAME_NORMALIZED="SwissQR.Currency",SwissQR.DEBTOR_ADDRESS_TYPE_FIELD_NAME="DebtorAddressType",SwissQR.DEBTOR_ADDRESS_TYPE_FIELD_NAME_NORMALIZED="SwissQR.DebtorAddressType",SwissQR.DEBTOR_BUILDING_OR_ADDRESS_LINE_2_FIELD_NAME="DebtorBuildingOrAddressLine2",SwissQR.DEBTOR_BUILDING_OR_ADDRESS_LINE_2_FIELD_NAME_NORMALIZED="SwissQR.DebtorBuildingOrAddressLine2",SwissQR.DEBTOR_COUNTRY_FIELD_NAME="DebtorCountry",SwissQR.DEBTOR_COUNTRY_FIELD_NAME_NORMALIZED="SwissQR.DebtorCountry",SwissQR.DEBTOR_NAME_FIELD_NAME="DebtorName",SwissQR.DEBTOR_NAME_FIELD_NAME_NORMALIZED="SwissQR.DebtorName",SwissQR.DEBTOR_PLACE_FIELD_NAME="DebtorPlace",SwissQR.DEBTOR_PLACE_FIELD_NAME_NORMALIZED="SwissQR.DebtorPlace",SwissQR.DEBTOR_POSTAL_CODE_FIELD_NAME="DebtorPostalCode",SwissQR.DEBTOR_POSTAL_CODE_FIELD_NAME_NORMALIZED="SwissQR.DebtorPostalCode",SwissQR.DEBTOR_STREET_OR_ADDRESS_LINE_1_FIELD_NAME="DebtorStreetOrAddressLine1",SwissQR.DEBTOR_STREET_OR_ADDRESS_LINE_1_FIELD_NAME_NORMALIZED="SwissQR.DebtorStreetOrAddressLine1",SwissQR.DUE_DATE_FIELD_NAME="DueDate",SwissQR.DUE_DATE_FIELD_NAME_NORMALIZED="SwissQR.DueDate",SwissQR.ENCODING_FIELD_NAME="Encoding",SwissQR.ENCODING_FIELD_NAME_NORMALIZED="SwissQR.Encoding",SwissQR.FINAL_PAYEE_ADDRESS_TYPE_FIELD_NAME="FinalPayeeAddressType",SwissQR.FINAL_PAYEE_ADDRESS_TYPE_FIELD_NAME_NORMALIZED="SwissQR.FinalPayeeAddressType",SwissQR.FINAL_PAYEE_BUILDING_OR_ADDRESS_LINE_2_FIELD_NAME="FinalPayeeBuildingOrAddressLine2",SwissQR.FINAL_PAYEE_BUILDING_OR_ADDRESS_LINE_2_FIELD_NAME_NORMALIZED="SwissQR.FinalPayeeBuildingOrAddressLine2",SwissQR.FINAL_PAYEE_COUNTRY_FIELD_NAME="FinalPayeeCountry",SwissQR.FINAL_PAYEE_COUNTRY_FIELD_NAME_NORMALIZED="SwissQR.FinalPayeeCountry",SwissQR.FINAL_PAYEE_NAME_FIELD_NAME="FinalPayeeName",SwissQR.FINAL_PAYEE_NAME_FIELD_NAME_NORMALIZED="SwissQR.FinalPayeeName",SwissQR.FINAL_PAYEE_PLACE_FIELD_NAME="FinalPayeePlace",SwissQR.FINAL_PAYEE_PLACE_FIELD_NAME_NORMALIZED="SwissQR.FinalPayeePlace",SwissQR.FINAL_PAYEE_POSTAL_CODE_FIELD_NAME="FinalPayeePostalCode",SwissQR.FINAL_PAYEE_POSTAL_CODE_FIELD_NAME_NORMALIZED="SwissQR.FinalPayeePostalCode",SwissQR.FINAL_PAYEE_STREET_OR_ADDRESS_LINE_1_FIELD_NAME="FinalPayeeStreetOrAddressLine1",SwissQR.FINAL_PAYEE_STREET_OR_ADDRESS_LINE_1_FIELD_NAME_NORMALIZED="SwissQR.FinalPayeeStreetOrAddressLine1",SwissQR.IBAN_FIELD_NAME="IBAN",SwissQR.IBAN_FIELD_NAME_NORMALIZED="SwissQR.IBAN",SwissQR.MAJOR_VERSION_FIELD_NAME="MajorVersion",SwissQR.MAJOR_VERSION_FIELD_NAME_NORMALIZED="SwissQR.MajorVersion",SwissQR.PAYEE_ADDRESS_TYPE_FIELD_NAME="PayeeAddressType",SwissQR.PAYEE_ADDRESS_TYPE_FIELD_NAME_NORMALIZED="SwissQR.PayeeAddressType",SwissQR.PAYEE_BUILDING_OR_ADDRESS_LINE_2_FIELD_NAME="PayeeBuildingOrAddressLine2",SwissQR.PAYEE_BUILDING_OR_ADDRESS_LINE_2_FIELD_NAME_NORMALIZED="SwissQR.PayeeBuildingOrAddressLine2",SwissQR.PAYEE_COUNTRY_FIELD_NAME="PayeeCountry",SwissQR.PAYEE_COUNTRY_FIELD_NAME_NORMALIZED="SwissQR.PayeeCountry",SwissQR.PAYEE_NAME_FIELD_NAME="PayeeName",SwissQR.PAYEE_NAME_FIELD_NAME_NORMALIZED="SwissQR.PayeeName",SwissQR.PAYEE_PLACE_FIELD_NAME="PayeePlace",SwissQR.PAYEE_PLACE_FIELD_NAME_NORMALIZED="SwissQR.PayeePlace",SwissQR.PAYEE_POSTAL_CODE_FIELD_NAME="PayeePostalCode",SwissQR.PAYEE_POSTAL_CODE_FIELD_NAME_NORMALIZED="SwissQR.PayeePostalCode",SwissQR.PAYEE_STREET_OR_ADDRESS_LINE_1_FIELD_NAME="PayeeStreetOrAddressLine1",SwissQR.PAYEE_STREET_OR_ADDRESS_LINE_1_FIELD_NAME_NORMALIZED="SwissQR.PayeeStreetOrAddressLine1",SwissQR.PAYMENT_REFERENCE_FIELD_NAME="PaymentReference",SwissQR.PAYMENT_REFERENCE_FIELD_NAME_NORMALIZED="SwissQR.PaymentReference",SwissQR.PAYMENT_REFERENCE_TYPE_FIELD_NAME="PaymentReferenceType",SwissQR.PAYMENT_REFERENCE_TYPE_FIELD_NAME_NORMALIZED="SwissQR.PaymentReferenceType";class DEMedicalPlan{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return DEMedicalPlan.DOCUMENT_TYPE}get currentPage(){return this.document.fields.find((e=>"CurrentPage"===e.type.name))}get documentVersionNumber(){return this.document.fields.find((e=>"DocumentVersionNumber"===e.type.name))}get guid(){return this.document.fields.find((e=>"GUID"===e.type.name))}get languageCountryCode(){return this.document.fields.find((e=>"LanguageCountryCode"===e.type.name))}get patchVersionNumber(){return this.document.fields.find((e=>"PatchVersionNumber"===e.type.name))}get totalNumberOfPages(){return this.document.fields.find((e=>"TotalNumberOfPages"===e.type.name))}get patient(){const e=this.document.children.find((e=>"Patient"===e.type.name));return new DEMedicalPlan.Patient(e)}get doctor(){const e=this.document.children.find((e=>"Doctor"===e.type.name));return new DEMedicalPlan.Doctor(e)}get subheadings(){return this.document.children.filter((e=>"Subheading"===e.type.name)).map((e=>new DEMedicalPlan.Subheading(e)))}}DEMedicalPlan.DOCUMENT_TYPE="DEMedicalPlan",DEMedicalPlan.CURRENT_PAGE_FIELD_NAME="CurrentPage",DEMedicalPlan.CURRENT_PAGE_FIELD_NAME_NORMALIZED="DEMedicalPlan.CurrentPage",DEMedicalPlan.DOCUMENT_VERSION_NUMBER_FIELD_NAME="DocumentVersionNumber",DEMedicalPlan.DOCUMENT_VERSION_NUMBER_FIELD_NAME_NORMALIZED="DEMedicalPlan.DocumentVersionNumber",DEMedicalPlan.GUID_FIELD_NAME="GUID",DEMedicalPlan.GUID_FIELD_NAME_NORMALIZED="DEMedicalPlan.GUID",DEMedicalPlan.LANGUAGE_COUNTRY_CODE_FIELD_NAME="LanguageCountryCode",DEMedicalPlan.LANGUAGE_COUNTRY_CODE_FIELD_NAME_NORMALIZED="DEMedicalPlan.LanguageCountryCode",DEMedicalPlan.PATCH_VERSION_NUMBER_FIELD_NAME="PatchVersionNumber",DEMedicalPlan.PATCH_VERSION_NUMBER_FIELD_NAME_NORMALIZED="DEMedicalPlan.PatchVersionNumber",DEMedicalPlan.TOTAL_NUMBER_OF_PAGES_FIELD_NAME="TotalNumberOfPages",DEMedicalPlan.TOTAL_NUMBER_OF_PAGES_FIELD_NAME_NORMALIZED="DEMedicalPlan.TotalNumberOfPages",function(e){class t{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.Patient.DOCUMENT_TYPE}get allergiesAndIntolerances(){return this.document.fields.find((e=>"AllergiesAndIntolerances"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get breastFeeding(){return this.document.fields.find((e=>"BreastFeeding"===e.type.name))}get creatinineValue(){return this.document.fields.find((e=>"CreatinineValue"===e.type.name))}get firstName(){return this.document.fields.find((e=>"FirstName"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get height(){return this.document.fields.find((e=>"Height"===e.type.name))}get lastName(){return this.document.fields.find((e=>"LastName"===e.type.name))}get patientFreeText(){return this.document.fields.find((e=>"PatientFreeText"===e.type.name))}get patientID(){return this.document.fields.find((e=>"PatientID"===e.type.name))}get preName(){return this.document.fields.find((e=>"PreName"===e.type.name))}get pregnant(){return this.document.fields.find((e=>"Pregnant"===e.type.name))}get suffix(){return this.document.fields.find((e=>"Suffix"===e.type.name))}get title(){return this.document.fields.find((e=>"Title"===e.type.name))}get weight(){return this.document.fields.find((e=>"Weight"===e.type.name))}}t.DOCUMENT_TYPE="Patient",t.ALLERGIES_AND_INTOLERANCES_FIELD_NAME="AllergiesAndIntolerances",t.ALLERGIES_AND_INTOLERANCES_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.AllergiesAndIntolerances",t.BIRTH_DATE_FIELD_NAME="BirthDate",t.BIRTH_DATE_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.BirthDate",t.BREAST_FEEDING_FIELD_NAME="BreastFeeding",t.BREAST_FEEDING_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.BreastFeeding",t.CREATININE_VALUE_FIELD_NAME="CreatinineValue",t.CREATININE_VALUE_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.CreatinineValue",t.FIRST_NAME_FIELD_NAME="FirstName",t.FIRST_NAME_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.FirstName",t.GENDER_FIELD_NAME="Gender",t.GENDER_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.Gender",t.HEIGHT_FIELD_NAME="Height",t.HEIGHT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.Height",t.LAST_NAME_FIELD_NAME="LastName",t.LAST_NAME_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.LastName",t.PATIENT_FREE_TEXT_FIELD_NAME="PatientFreeText",t.PATIENT_FREE_TEXT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.PatientFreeText",t.PATIENT_ID_FIELD_NAME="PatientID",t.PATIENT_ID_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.PatientID",t.PRE_NAME_FIELD_NAME="PreName",t.PRE_NAME_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.PreName",t.PREGNANT_FIELD_NAME="Pregnant",t.PREGNANT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.Pregnant",t.SUFFIX_FIELD_NAME="Suffix",t.SUFFIX_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.Suffix",t.TITLE_FIELD_NAME="Title",t.TITLE_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.Title",t.WEIGHT_FIELD_NAME="Weight",t.WEIGHT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.Weight",e.Patient=t;class i{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.Doctor.DOCUMENT_TYPE}get doctorNumber(){return this.document.fields.find((e=>"DoctorNumber"===e.type.name))}get email(){return this.document.fields.find((e=>"Email"===e.type.name))}get hospitalID(){return this.document.fields.find((e=>"HospitalID"===e.type.name))}get issuerName(){return this.document.fields.find((e=>"IssuerName"===e.type.name))}get issuingDateAndTime(){return this.document.fields.find((e=>"IssuingDateAndTime"===e.type.name))}get pharmacyID(){return this.document.fields.find((e=>"PharmacyID"===e.type.name))}get place(){return this.document.fields.find((e=>"Place"===e.type.name))}get postalCode(){return this.document.fields.find((e=>"PostalCode"===e.type.name))}get street(){return this.document.fields.find((e=>"Street"===e.type.name))}get telephoneNumber(){return this.document.fields.find((e=>"TelephoneNumber"===e.type.name))}}i.DOCUMENT_TYPE="Doctor",i.DOCTOR_NUMBER_FIELD_NAME="DoctorNumber",i.DOCTOR_NUMBER_FIELD_NAME_NORMALIZED="DEMedicalPlan.Doctor.DoctorNumber",i.EMAIL_FIELD_NAME="Email",i.EMAIL_FIELD_NAME_NORMALIZED="DEMedicalPlan.Doctor.Email",i.HOSPITAL_ID_FIELD_NAME="HospitalID",i.HOSPITAL_ID_FIELD_NAME_NORMALIZED="DEMedicalPlan.Doctor.HospitalID",i.ISSUER_NAME_FIELD_NAME="IssuerName",i.ISSUER_NAME_FIELD_NAME_NORMALIZED="DEMedicalPlan.Doctor.IssuerName",i.ISSUING_DATE_AND_TIME_FIELD_NAME="IssuingDateAndTime",i.ISSUING_DATE_AND_TIME_FIELD_NAME_NORMALIZED="DEMedicalPlan.Doctor.IssuingDateAndTime",i.PHARMACY_ID_FIELD_NAME="PharmacyID",i.PHARMACY_ID_FIELD_NAME_NORMALIZED="DEMedicalPlan.Doctor.PharmacyID",i.PLACE_FIELD_NAME="Place",i.PLACE_FIELD_NAME_NORMALIZED="DEMedicalPlan.Doctor.Place",i.POSTAL_CODE_FIELD_NAME="PostalCode",i.POSTAL_CODE_FIELD_NAME_NORMALIZED="DEMedicalPlan.Doctor.PostalCode",i.STREET_FIELD_NAME="Street",i.STREET_FIELD_NAME_NORMALIZED="DEMedicalPlan.Doctor.Street",i.TELEPHONE_NUMBER_FIELD_NAME="TelephoneNumber",i.TELEPHONE_NUMBER_FIELD_NAME_NORMALIZED="DEMedicalPlan.Doctor.TelephoneNumber",e.Doctor=i;class n{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.Subheading.DOCUMENT_TYPE}get generalNotes(){return this.document.fields.filter((e=>"GeneralNote"===e.type.name))}get keyWords(){return this.document.fields.find((e=>"KeyWords"===e.type.name))}get subheadingFreeText(){return this.document.fields.find((e=>"SubheadingFreeText"===e.type.name))}get medicines(){return this.document.children.filter((e=>"Medicine"===e.type.name)).map((t=>new e.Subheading.Medicine(t)))}get prescriptions(){return this.document.children.filter((e=>"Prescription"===e.type.name)).map((t=>new e.Subheading.Prescription(t)))}}n.DOCUMENT_TYPE="Subheading",n.GENERAL_NOTE_FIELD_NAME="GeneralNote",n.GENERAL_NOTE_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.GeneralNote",n.KEY_WORDS_FIELD_NAME="KeyWords",n.KEY_WORDS_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.KeyWords",n.SUBHEADING_FREE_TEXT_FIELD_NAME="SubheadingFreeText",n.SUBHEADING_FREE_TEXT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.SubheadingFreeText",e.Subheading=n,function(t){class i{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.Subheading.Medicine.DOCUMENT_TYPE}get dosageForm(){return this.document.fields.find((e=>"DosageForm"===e.type.name))}get dosageFormFreeText(){return this.document.fields.find((e=>"DosageFormFreeText"===e.type.name))}get dosageFreeText(){return this.document.fields.find((e=>"DosageFreeText"===e.type.name))}get dosingUnit(){return this.document.fields.find((e=>"DosingUnit"===e.type.name))}get dosingUnitFreeText(){return this.document.fields.find((e=>"DosingUnitFreeText"===e.type.name))}get drugName(){return this.document.fields.find((e=>"DrugName"===e.type.name))}get evening(){return this.document.fields.find((e=>"Evening"===e.type.name))}get generalNotes(){return this.document.fields.find((e=>"GeneralNotes"===e.type.name))}get midday(){return this.document.fields.find((e=>"Midday"===e.type.name))}get morning(){return this.document.fields.find((e=>"Morning"===e.type.name))}get night(){return this.document.fields.find((e=>"Night"===e.type.name))}get pharmaceuticalNumber(){return this.document.fields.find((e=>"PharmaceuticalNumber"===e.type.name))}get reasonForTreatment(){return this.document.fields.find((e=>"ReasonForTreatment"===e.type.name))}get relevantInfo(){return this.document.fields.find((e=>"RelevantInfo"===e.type.name))}get substances(){return this.document.children.filter((e=>"Substance"===e.type.name)).map((t=>new e.Subheading.Medicine.Substance(t)))}}i.DOCUMENT_TYPE="Medicine",i.DOSAGE_FORM_FIELD_NAME="DosageForm",i.DOSAGE_FORM_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.DosageForm",i.DOSAGE_FORM_FREE_TEXT_FIELD_NAME="DosageFormFreeText",i.DOSAGE_FORM_FREE_TEXT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.DosageFormFreeText",i.DOSAGE_FREE_TEXT_FIELD_NAME="DosageFreeText",i.DOSAGE_FREE_TEXT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.DosageFreeText",i.DOSING_UNIT_FIELD_NAME="DosingUnit",i.DOSING_UNIT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.DosingUnit",i.DOSING_UNIT_FREE_TEXT_FIELD_NAME="DosingUnitFreeText",i.DOSING_UNIT_FREE_TEXT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.DosingUnitFreeText",i.DRUG_NAME_FIELD_NAME="DrugName",i.DRUG_NAME_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.DrugName",i.EVENING_FIELD_NAME="Evening",i.EVENING_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.Evening",i.GENERAL_NOTES_FIELD_NAME="GeneralNotes",i.GENERAL_NOTES_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.GeneralNotes",i.MIDDAY_FIELD_NAME="Midday",i.MIDDAY_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.Midday",i.MORNING_FIELD_NAME="Morning",i.MORNING_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.Morning",i.NIGHT_FIELD_NAME="Night",i.NIGHT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.Night",i.PHARMACEUTICAL_NUMBER_FIELD_NAME="PharmaceuticalNumber",i.PHARMACEUTICAL_NUMBER_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.PharmaceuticalNumber",i.REASON_FOR_TREATMENT_FIELD_NAME="ReasonForTreatment",i.REASON_FOR_TREATMENT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.ReasonForTreatment",i.RELEVANT_INFO_FIELD_NAME="RelevantInfo",i.RELEVANT_INFO_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.RelevantInfo",t.Medicine=i,function(t){class i{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.Subheading.Medicine.Substance.DOCUMENT_TYPE}get activeSubstance(){return this.document.fields.find((e=>"ActiveSubstance"===e.type.name))}get potency(){return this.document.fields.find((e=>"Potency"===e.type.name))}}i.DOCUMENT_TYPE="Substance",i.ACTIVE_SUBSTANCE_FIELD_NAME="ActiveSubstance",i.ACTIVE_SUBSTANCE_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.Substance.ActiveSubstance",i.POTENCY_FIELD_NAME="Potency",i.POTENCY_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.Substance.Potency",t.Substance=i}(i=t.Medicine||(t.Medicine={}));class n{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.Subheading.Prescription.DOCUMENT_TYPE}get generalInformation(){return this.document.fields.find((e=>"GeneralInformation"===e.type.name))}get prescriptionFreeText(){return this.document.fields.find((e=>"PrescriptionFreeText"===e.type.name))}}n.DOCUMENT_TYPE="Prescription",n.GENERAL_INFORMATION_FIELD_NAME="GeneralInformation",n.GENERAL_INFORMATION_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Prescription.GeneralInformation",n.PRESCRIPTION_FREE_TEXT_FIELD_NAME="PrescriptionFreeText",n.PRESCRIPTION_FREE_TEXT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Prescription.PrescriptionFreeText",t.Prescription=n}(n=e.Subheading||(e.Subheading={}))}(DEMedicalPlan||(DEMedicalPlan={}));class IDCardPDF417{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return IDCardPDF417.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get dateExpired(){return this.document.fields.find((e=>"DateExpired"===e.type.name))}get dateIssued(){return this.document.fields.find((e=>"DateIssued"===e.type.name))}get documentCode(){return this.document.fields.find((e=>"DocumentCode"===e.type.name))}get firstName(){return this.document.fields.find((e=>"FirstName"===e.type.name))}get lastName(){return this.document.fields.find((e=>"LastName"===e.type.name))}get optional(){return this.document.fields.find((e=>"Optional"===e.type.name))}}IDCardPDF417.DOCUMENT_TYPE="IDCardPDF417",IDCardPDF417.BIRTH_DATE_FIELD_NAME="BirthDate",IDCardPDF417.BIRTH_DATE_FIELD_NAME_NORMALIZED="IDCardPDF417.BirthDate",IDCardPDF417.DATE_EXPIRED_FIELD_NAME="DateExpired",IDCardPDF417.DATE_EXPIRED_FIELD_NAME_NORMALIZED="IDCardPDF417.DateExpired",IDCardPDF417.DATE_ISSUED_FIELD_NAME="DateIssued",IDCardPDF417.DATE_ISSUED_FIELD_NAME_NORMALIZED="IDCardPDF417.DateIssued",IDCardPDF417.DOCUMENT_CODE_FIELD_NAME="DocumentCode",IDCardPDF417.DOCUMENT_CODE_FIELD_NAME_NORMALIZED="IDCardPDF417.DocumentCode",IDCardPDF417.FIRST_NAME_FIELD_NAME="FirstName",IDCardPDF417.FIRST_NAME_FIELD_NAME_NORMALIZED="IDCardPDF417.FirstName",IDCardPDF417.LAST_NAME_FIELD_NAME="LastName",IDCardPDF417.LAST_NAME_FIELD_NAME_NORMALIZED="IDCardPDF417.LastName",IDCardPDF417.OPTIONAL_FIELD_NAME="Optional",IDCardPDF417.OPTIONAL_FIELD_NAME_NORMALIZED="IDCardPDF417.Optional";class GS1{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return GS1.DOCUMENT_TYPE}get elements(){return this.document.children.filter((e=>"Element"===e.type.name)).map((e=>new GS1.Element(e)))}}GS1.DOCUMENT_TYPE="GS1",function(e){class t{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.Element.DOCUMENT_TYPE}get applicationIdentifier(){return this.document.fields.find((e=>"ApplicationIdentifier"===e.type.name))}get dataTitle(){return this.document.fields.find((e=>"DataTitle"===e.type.name))}get elementDescription(){return this.document.fields.find((e=>"ElementDescription"===e.type.name))}get rawValue(){return this.document.fields.find((e=>"RawValue"===e.type.name))}get validationErrors(){return this.document.children.filter((e=>"ValidationError"===e.type.name)).map((t=>new e.Element.ValidationError(t)))}}t.DOCUMENT_TYPE="Element",t.APPLICATION_IDENTIFIER_FIELD_NAME="ApplicationIdentifier",t.APPLICATION_IDENTIFIER_FIELD_NAME_NORMALIZED="GS1.Element.ApplicationIdentifier",t.DATA_TITLE_FIELD_NAME="DataTitle",t.DATA_TITLE_FIELD_NAME_NORMALIZED="GS1.Element.DataTitle",t.ELEMENT_DESCRIPTION_FIELD_NAME="ElementDescription",t.ELEMENT_DESCRIPTION_FIELD_NAME_NORMALIZED="GS1.Element.ElementDescription",t.RAW_VALUE_FIELD_NAME="RawValue",t.RAW_VALUE_FIELD_NAME_NORMALIZED="GS1.Element.RawValue",e.Element=t,function(t){class i{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.Element.ValidationError.DOCUMENT_TYPE}get code(){return this.document.fields.find((e=>"Code"===e.type.name))}get reason(){return this.document.fields.find((e=>"Reason"===e.type.name))}}i.DOCUMENT_TYPE="ValidationError",i.CODE_FIELD_NAME="Code",i.CODE_FIELD_NAME_NORMALIZED="GS1.Element.ValidationError.Code",i.REASON_FIELD_NAME="Reason",i.REASON_FIELD_NAME_NORMALIZED="GS1.Element.ValidationError.Reason",t.ValidationError=i}(t=e.Element||(e.Element={}))}(GS1||(GS1={}));class SEPA{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return SEPA.DOCUMENT_TYPE}get amount(){return this.document.fields.find((e=>"Amount"===e.type.name))}get characterSet(){return this.document.fields.find((e=>"CharacterSet"===e.type.name))}get identification(){return this.document.fields.find((e=>"Identification"===e.type.name))}get information(){return this.document.fields.find((e=>"Information"===e.type.name))}get purpose(){return this.document.fields.find((e=>"Purpose"===e.type.name))}get receiverBIC(){return this.document.fields.find((e=>"ReceiverBIC"===e.type.name))}get receiverIBAN(){return this.document.fields.find((e=>"ReceiverIBAN"===e.type.name))}get receiverName(){return this.document.fields.find((e=>"ReceiverName"===e.type.name))}get remittance(){return this.document.fields.find((e=>"Remittance"===e.type.name))}get serviceTag(){return this.document.fields.find((e=>"ServiceTag"===e.type.name))}get version(){return this.document.fields.find((e=>"Version"===e.type.name))}}SEPA.DOCUMENT_TYPE="SEPA",SEPA.AMOUNT_FIELD_NAME="Amount",SEPA.AMOUNT_FIELD_NAME_NORMALIZED="SEPA.Amount",SEPA.CHARACTER_SET_FIELD_NAME="CharacterSet",SEPA.CHARACTER_SET_FIELD_NAME_NORMALIZED="SEPA.CharacterSet",SEPA.IDENTIFICATION_FIELD_NAME="Identification",SEPA.IDENTIFICATION_FIELD_NAME_NORMALIZED="SEPA.Identification",SEPA.INFORMATION_FIELD_NAME="Information",SEPA.INFORMATION_FIELD_NAME_NORMALIZED="SEPA.Information",SEPA.PURPOSE_FIELD_NAME="Purpose",SEPA.PURPOSE_FIELD_NAME_NORMALIZED="SEPA.Purpose",SEPA.RECEIVER_BIC_FIELD_NAME="ReceiverBIC",SEPA.RECEIVER_BIC_FIELD_NAME_NORMALIZED="SEPA.ReceiverBIC",SEPA.RECEIVER_IBAN_FIELD_NAME="ReceiverIBAN",SEPA.RECEIVER_IBAN_FIELD_NAME_NORMALIZED="SEPA.ReceiverIBAN",SEPA.RECEIVER_NAME_FIELD_NAME="ReceiverName",SEPA.RECEIVER_NAME_FIELD_NAME_NORMALIZED="SEPA.ReceiverName",SEPA.REMITTANCE_FIELD_NAME="Remittance",SEPA.REMITTANCE_FIELD_NAME_NORMALIZED="SEPA.Remittance",SEPA.SERVICE_TAG_FIELD_NAME="ServiceTag",SEPA.SERVICE_TAG_FIELD_NAME_NORMALIZED="SEPA.ServiceTag",SEPA.VERSION_FIELD_NAME="Version",SEPA.VERSION_FIELD_NAME_NORMALIZED="SEPA.Version";class MedicalCertificate{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return MedicalCertificate.DOCUMENT_TYPE}get accident(){return this.document.fields.find((e=>"Accident"===e.type.name))}get assignedToAccidentInsuranceDoctor(){return this.document.fields.find((e=>"AssignedToAccidentInsuranceDoctor"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get childNeedsCareFrom(){return this.document.fields.find((e=>"ChildNeedsCareFrom"===e.type.name))}get childNeedsCareUntil(){return this.document.fields.find((e=>"ChildNeedsCareUntil"===e.type.name))}get diagnose(){return this.document.fields.find((e=>"Diagnose"===e.type.name))}get diagnosedOn(){return this.document.fields.find((e=>"DiagnosedOn"===e.type.name))}get doctorNumber(){return this.document.fields.find((e=>"DoctorNumber"===e.type.name))}get documentDate(){return this.document.fields.find((e=>"DocumentDate"===e.type.name))}get firstName(){return this.document.fields.find((e=>"FirstName"===e.type.name))}get healthInsuranceNumber(){return this.document.fields.find((e=>"HealthInsuranceNumber"===e.type.name))}get incapableOfWorkSince(){return this.document.fields.find((e=>"IncapableOfWorkSince"===e.type.name))}get incapableOfWorkUntil(){return this.document.fields.find((e=>"IncapableOfWorkUntil"===e.type.name))}get initialCertificate(){return this.document.fields.find((e=>"InitialCertificate"===e.type.name))}get insuredPersonNumber(){return this.document.fields.find((e=>"InsuredPersonNumber"===e.type.name))}get lastName(){return this.document.fields.find((e=>"LastName"===e.type.name))}get placeOfOperationNumber(){return this.document.fields.find((e=>"PlaceOfOperationNumber"===e.type.name))}get renewedCertificate(){return this.document.fields.find((e=>"RenewedCertificate"===e.type.name))}get requiresCare(){return this.document.fields.find((e=>"RequiresCare"===e.type.name))}get status(){return this.document.fields.find((e=>"Status"===e.type.name))}get workAccident(){return this.document.fields.find((e=>"WorkAccident"===e.type.name))}}MedicalCertificate.DOCUMENT_TYPE="MedicalCertificate",MedicalCertificate.ACCIDENT_FIELD_NAME="Accident",MedicalCertificate.ACCIDENT_FIELD_NAME_NORMALIZED="MedicalCertificate.Accident",MedicalCertificate.ASSIGNED_TO_ACCIDENT_INSURANCE_DOCTOR_FIELD_NAME="AssignedToAccidentInsuranceDoctor",MedicalCertificate.ASSIGNED_TO_ACCIDENT_INSURANCE_DOCTOR_FIELD_NAME_NORMALIZED="MedicalCertificate.AssignedToAccidentInsuranceDoctor",MedicalCertificate.BIRTH_DATE_FIELD_NAME="BirthDate",MedicalCertificate.BIRTH_DATE_FIELD_NAME_NORMALIZED="MedicalCertificate.BirthDate",MedicalCertificate.CHILD_NEEDS_CARE_FROM_FIELD_NAME="ChildNeedsCareFrom",MedicalCertificate.CHILD_NEEDS_CARE_FROM_FIELD_NAME_NORMALIZED="MedicalCertificate.ChildNeedsCareFrom",MedicalCertificate.CHILD_NEEDS_CARE_UNTIL_FIELD_NAME="ChildNeedsCareUntil",MedicalCertificate.CHILD_NEEDS_CARE_UNTIL_FIELD_NAME_NORMALIZED="MedicalCertificate.ChildNeedsCareUntil",MedicalCertificate.DIAGNOSE_FIELD_NAME="Diagnose",MedicalCertificate.DIAGNOSE_FIELD_NAME_NORMALIZED="MedicalCertificate.Diagnose",MedicalCertificate.DIAGNOSED_ON_FIELD_NAME="DiagnosedOn",MedicalCertificate.DIAGNOSED_ON_FIELD_NAME_NORMALIZED="MedicalCertificate.DiagnosedOn",MedicalCertificate.DOCTOR_NUMBER_FIELD_NAME="DoctorNumber",MedicalCertificate.DOCTOR_NUMBER_FIELD_NAME_NORMALIZED="MedicalCertificate.DoctorNumber",MedicalCertificate.DOCUMENT_DATE_FIELD_NAME="DocumentDate",MedicalCertificate.DOCUMENT_DATE_FIELD_NAME_NORMALIZED="MedicalCertificate.DocumentDate",MedicalCertificate.FIRST_NAME_FIELD_NAME="FirstName",MedicalCertificate.FIRST_NAME_FIELD_NAME_NORMALIZED="MedicalCertificate.FirstName",MedicalCertificate.HEALTH_INSURANCE_NUMBER_FIELD_NAME="HealthInsuranceNumber",MedicalCertificate.HEALTH_INSURANCE_NUMBER_FIELD_NAME_NORMALIZED="MedicalCertificate.HealthInsuranceNumber",MedicalCertificate.INCAPABLE_OF_WORK_SINCE_FIELD_NAME="IncapableOfWorkSince",MedicalCertificate.INCAPABLE_OF_WORK_SINCE_FIELD_NAME_NORMALIZED="MedicalCertificate.IncapableOfWorkSince",MedicalCertificate.INCAPABLE_OF_WORK_UNTIL_FIELD_NAME="IncapableOfWorkUntil",MedicalCertificate.INCAPABLE_OF_WORK_UNTIL_FIELD_NAME_NORMALIZED="MedicalCertificate.IncapableOfWorkUntil",MedicalCertificate.INITIAL_CERTIFICATE_FIELD_NAME="InitialCertificate",MedicalCertificate.INITIAL_CERTIFICATE_FIELD_NAME_NORMALIZED="MedicalCertificate.InitialCertificate",MedicalCertificate.INSURED_PERSON_NUMBER_FIELD_NAME="InsuredPersonNumber",MedicalCertificate.INSURED_PERSON_NUMBER_FIELD_NAME_NORMALIZED="MedicalCertificate.InsuredPersonNumber",MedicalCertificate.LAST_NAME_FIELD_NAME="LastName",MedicalCertificate.LAST_NAME_FIELD_NAME_NORMALIZED="MedicalCertificate.LastName",MedicalCertificate.PLACE_OF_OPERATION_NUMBER_FIELD_NAME="PlaceOfOperationNumber",MedicalCertificate.PLACE_OF_OPERATION_NUMBER_FIELD_NAME_NORMALIZED="MedicalCertificate.PlaceOfOperationNumber",MedicalCertificate.RENEWED_CERTIFICATE_FIELD_NAME="RenewedCertificate",MedicalCertificate.RENEWED_CERTIFICATE_FIELD_NAME_NORMALIZED="MedicalCertificate.RenewedCertificate",MedicalCertificate.REQUIRES_CARE_FIELD_NAME="RequiresCare",MedicalCertificate.REQUIRES_CARE_FIELD_NAME_NORMALIZED="MedicalCertificate.RequiresCare",MedicalCertificate.STATUS_FIELD_NAME="Status",MedicalCertificate.STATUS_FIELD_NAME_NORMALIZED="MedicalCertificate.Status",MedicalCertificate.WORK_ACCIDENT_FIELD_NAME="WorkAccident",MedicalCertificate.WORK_ACCIDENT_FIELD_NAME_NORMALIZED="MedicalCertificate.WorkAccident";class VCard{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return VCard.DOCUMENT_TYPE}get version(){const e=this.document.children.find((e=>"Version"===e.type.name));return new VCard.Version(e)}get sources(){return this.document.children.filter((e=>"Source"===e.type.name)).map((e=>new VCard.Source(e)))}get kind(){const e=this.document.children.find((e=>"Kind"===e.type.name));return e?new VCard.Kind(e):void 0}get xmls(){return this.document.children.filter((e=>"XML"===e.type.name)).map((e=>new VCard.XML(e)))}get name(){const e=this.document.children.find((e=>"Name"===e.type.name));return e?new VCard.Name(e):void 0}get formattedName(){const e=this.document.children.find((e=>"FormattedName"===e.type.name));return e?new VCard.FormattedName(e):void 0}get nicknames(){return this.document.children.filter((e=>"Nickname"===e.type.name)).map((e=>new VCard.Nickname(e)))}get birthday(){const e=this.document.children.find((e=>"Birthday"===e.type.name));return e?new VCard.Birthday(e):void 0}get anniversary(){const e=this.document.children.find((e=>"Anniversary"===e.type.name));return e?new VCard.Anniversary(e):void 0}get gender(){const e=this.document.children.find((e=>"Gender"===e.type.name));return e?new VCard.Gender(e):void 0}get deliveryAddresses(){return this.document.children.filter((e=>"DeliveryAddress"===e.type.name)).map((e=>new VCard.DeliveryAddress(e)))}get labels(){return this.document.children.filter((e=>"Label"===e.type.name)).map((e=>new VCard.Label(e)))}get photos(){return this.document.children.filter((e=>"Photo"===e.type.name)).map((e=>new VCard.Photo(e)))}get telephoneNumbers(){return this.document.children.filter((e=>"TelephoneNumber"===e.type.name)).map((e=>new VCard.TelephoneNumber(e)))}get emails(){return this.document.children.filter((e=>"Email"===e.type.name)).map((e=>new VCard.Email(e)))}get impps(){return this.document.children.filter((e=>"IMPP"===e.type.name)).map((e=>new VCard.IMPP(e)))}get languages(){return this.document.children.filter((e=>"Language"===e.type.name)).map((e=>new VCard.Language(e)))}get timeZones(){return this.document.children.filter((e=>"TimeZone"===e.type.name)).map((e=>new VCard.TimeZone(e)))}get geoLocations(){return this.document.children.filter((e=>"GeoLocation"===e.type.name)).map((e=>new VCard.GeoLocation(e)))}get titles(){return this.document.children.filter((e=>"Title"===e.type.name)).map((e=>new VCard.Title(e)))}get roles(){return this.document.children.filter((e=>"Role"===e.type.name)).map((e=>new VCard.Role(e)))}get logos(){return this.document.children.filter((e=>"Logo"===e.type.name)).map((e=>new VCard.Logo(e)))}get agents(){return this.document.children.filter((e=>"Agent"===e.type.name)).map((e=>new VCard.Agent(e)))}get organisations(){return this.document.children.filter((e=>"Organisation"===e.type.name)).map((e=>new VCard.Organisation(e)))}get members(){return this.document.children.filter((e=>"Member"===e.type.name)).map((e=>new VCard.Member(e)))}get relateds(){return this.document.children.filter((e=>"Related"===e.type.name)).map((e=>new VCard.Related(e)))}get categories(){return this.document.children.filter((e=>"Category"===e.type.name)).map((e=>new VCard.Category(e)))}get notes(){return this.document.children.filter((e=>"Note"===e.type.name)).map((e=>new VCard.Note(e)))}get productId(){const e=this.document.children.find((e=>"ProductId"===e.type.name));return e?new VCard.ProductId(e):void 0}get revision(){const e=this.document.children.find((e=>"Revision"===e.type.name));return e?new VCard.Revision(e):void 0}get sounds(){return this.document.children.filter((e=>"Sound"===e.type.name)).map((e=>new VCard.Sound(e)))}get uid(){const e=this.document.children.find((e=>"UID"===e.type.name));return e?new VCard.UID(e):void 0}get clientPIDMaps(){return this.document.children.filter((e=>"ClientPIDMap"===e.type.name)).map((e=>new VCard.ClientPIDMap(e)))}get urls(){return this.document.children.filter((e=>"URL"===e.type.name)).map((e=>new VCard.URL(e)))}get publicKeys(){return this.document.children.filter((e=>"PublicKey"===e.type.name)).map((e=>new VCard.PublicKey(e)))}get busyTimeURLs(){return this.document.children.filter((e=>"BusyTimeURL"===e.type.name)).map((e=>new VCard.BusyTimeURL(e)))}get calendarURIForRequestss(){return this.document.children.filter((e=>"CalendarURIForRequests"===e.type.name)).map((e=>new VCard.CalendarURIForRequests(e)))}get calendarURIs(){return this.document.children.filter((e=>"CalendarURI"===e.type.name)).map((e=>new VCard.CalendarURI(e)))}get sortString(){const e=this.document.children.find((e=>"SortString"===e.type.name));return e?new VCard.SortString(e):void 0}get classification(){const e=this.document.children.find((e=>"Classification"===e.type.name));return e?new VCard.Classification(e):void 0}get customs(){return this.document.children.filter((e=>"Custom"===e.type.name)).map((e=>new VCard.Custom(e)))}}VCard.DOCUMENT_TYPE="VCard",function(e){class t{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}get rawValue(){return this.document.fields.find((e=>"RawValue"===e.type.name))}get typeModifiers(){return this.document.fields.filter((e=>"TypeModifier"===e.type.name))}get values(){return this.document.fields.filter((e=>"Value"===e.type.name))}}t.RAW_VALUE_FIELD_NAME="RawValue",t.RAW_VALUE_FIELD_NAME_NORMALIZED="VCard.Entry.RawValue",t.TYPE_MODIFIER_FIELD_NAME="TypeModifier",t.TYPE_MODIFIER_FIELD_NAME_NORMALIZED="VCard.Entry.TypeModifier",t.VALUE_FIELD_NAME="Value",t.VALUE_FIELD_NAME_NORMALIZED="VCard.Entry.Value",e.Entry=t;class i extends t{constructor(e){super(e)}requiredDocumentType(){return e.Version.DOCUMENT_TYPE}}i.DOCUMENT_TYPE="Version",e.Version=i;class n extends t{constructor(e){super(e)}requiredDocumentType(){return e.Source.DOCUMENT_TYPE}}n.DOCUMENT_TYPE="Source",e.Source=n;class r extends t{constructor(e){super(e)}requiredDocumentType(){return e.Kind.DOCUMENT_TYPE}}r.DOCUMENT_TYPE="Kind",e.Kind=r;class o extends t{constructor(e){super(e)}requiredDocumentType(){return e.XML.DOCUMENT_TYPE}}o.DOCUMENT_TYPE="XML",e.XML=o;class a extends t{constructor(e){super(e)}requiredDocumentType(){return e.Name.DOCUMENT_TYPE}}a.DOCUMENT_TYPE="Name",e.Name=a;class s extends t{constructor(e){super(e)}requiredDocumentType(){return e.FormattedName.DOCUMENT_TYPE}}s.DOCUMENT_TYPE="FormattedName",e.FormattedName=s;class c extends t{constructor(e){super(e)}requiredDocumentType(){return e.Nickname.DOCUMENT_TYPE}}c.DOCUMENT_TYPE="Nickname",e.Nickname=c;class d extends t{constructor(e){super(e)}requiredDocumentType(){return e.Birthday.DOCUMENT_TYPE}}d.DOCUMENT_TYPE="Birthday",e.Birthday=d;class l extends t{constructor(e){super(e)}requiredDocumentType(){return e.Anniversary.DOCUMENT_TYPE}}l.DOCUMENT_TYPE="Anniversary",e.Anniversary=l;class u extends t{constructor(e){super(e)}requiredDocumentType(){return e.Gender.DOCUMENT_TYPE}}u.DOCUMENT_TYPE="Gender",e.Gender=u;class m extends t{constructor(e){super(e)}requiredDocumentType(){return e.DeliveryAddress.DOCUMENT_TYPE}}m.DOCUMENT_TYPE="DeliveryAddress",e.DeliveryAddress=m;class E extends t{constructor(e){super(e)}requiredDocumentType(){return e.Label.DOCUMENT_TYPE}}E.DOCUMENT_TYPE="Label",e.Label=E;class D extends t{constructor(e){super(e)}requiredDocumentType(){return e.Photo.DOCUMENT_TYPE}}D.DOCUMENT_TYPE="Photo",e.Photo=D;class h extends t{constructor(e){super(e)}requiredDocumentType(){return e.TelephoneNumber.DOCUMENT_TYPE}}h.DOCUMENT_TYPE="TelephoneNumber",e.TelephoneNumber=h;class C extends t{constructor(e){super(e)}requiredDocumentType(){return e.Email.DOCUMENT_TYPE}}C.DOCUMENT_TYPE="Email",e.Email=C;class I extends t{constructor(e){super(e)}requiredDocumentType(){return e.IMPP.DOCUMENT_TYPE}}I.DOCUMENT_TYPE="IMPP",e.IMPP=I;class g extends t{constructor(e){super(e)}requiredDocumentType(){return e.Language.DOCUMENT_TYPE}}g.DOCUMENT_TYPE="Language",e.Language=g;class p extends t{constructor(e){super(e)}requiredDocumentType(){return e.TimeZone.DOCUMENT_TYPE}}p.DOCUMENT_TYPE="TimeZone",e.TimeZone=p;class A extends t{constructor(e){super(e)}requiredDocumentType(){return e.GeoLocation.DOCUMENT_TYPE}}A.DOCUMENT_TYPE="GeoLocation",e.GeoLocation=A;class _ extends t{constructor(e){super(e)}requiredDocumentType(){return e.Title.DOCUMENT_TYPE}}_.DOCUMENT_TYPE="Title",e.Title=_;class S extends t{constructor(e){super(e)}requiredDocumentType(){return e.Role.DOCUMENT_TYPE}}S.DOCUMENT_TYPE="Role",e.Role=S;class N extends t{constructor(e){super(e)}requiredDocumentType(){return e.Logo.DOCUMENT_TYPE}}N.DOCUMENT_TYPE="Logo",e.Logo=N;class f extends t{constructor(e){super(e)}requiredDocumentType(){return e.Agent.DOCUMENT_TYPE}}f.DOCUMENT_TYPE="Agent",e.Agent=f;class y extends t{constructor(e){super(e)}requiredDocumentType(){return e.Organisation.DOCUMENT_TYPE}}y.DOCUMENT_TYPE="Organisation",e.Organisation=y;class M extends t{constructor(e){super(e)}requiredDocumentType(){return e.Member.DOCUMENT_TYPE}}M.DOCUMENT_TYPE="Member",e.Member=M;class R extends t{constructor(e){super(e)}requiredDocumentType(){return e.Related.DOCUMENT_TYPE}}R.DOCUMENT_TYPE="Related",e.Related=R;class T extends t{constructor(e){super(e)}requiredDocumentType(){return e.Category.DOCUMENT_TYPE}}T.DOCUMENT_TYPE="Category",e.Category=T;class B extends t{constructor(e){super(e)}requiredDocumentType(){return e.Note.DOCUMENT_TYPE}}B.DOCUMENT_TYPE="Note",e.Note=B;class b extends t{constructor(e){super(e)}requiredDocumentType(){return e.ProductId.DOCUMENT_TYPE}}b.DOCUMENT_TYPE="ProductId",e.ProductId=b;class F extends t{constructor(e){super(e)}requiredDocumentType(){return e.Revision.DOCUMENT_TYPE}}F.DOCUMENT_TYPE="Revision",e.Revision=F;class L extends t{constructor(e){super(e)}requiredDocumentType(){return e.Sound.DOCUMENT_TYPE}}L.DOCUMENT_TYPE="Sound",e.Sound=L;class O extends t{constructor(e){super(e)}requiredDocumentType(){return e.UID.DOCUMENT_TYPE}}O.DOCUMENT_TYPE="UID",e.UID=O;class P extends t{constructor(e){super(e)}requiredDocumentType(){return e.ClientPIDMap.DOCUMENT_TYPE}}P.DOCUMENT_TYPE="ClientPIDMap",e.ClientPIDMap=P;class w extends t{constructor(e){super(e)}requiredDocumentType(){return e.URL.DOCUMENT_TYPE}}w.DOCUMENT_TYPE="URL",e.URL=w;class v extends t{constructor(e){super(e)}requiredDocumentType(){return e.PublicKey.DOCUMENT_TYPE}}v.DOCUMENT_TYPE="PublicKey",e.PublicKey=v;class x extends t{constructor(e){super(e)}requiredDocumentType(){return e.BusyTimeURL.DOCUMENT_TYPE}}x.DOCUMENT_TYPE="BusyTimeURL",e.BusyTimeURL=x;class k extends t{constructor(e){super(e)}requiredDocumentType(){return e.CalendarURIForRequests.DOCUMENT_TYPE}}k.DOCUMENT_TYPE="CalendarURIForRequests",e.CalendarURIForRequests=k;class U extends t{constructor(e){super(e)}requiredDocumentType(){return e.CalendarURI.DOCUMENT_TYPE}}U.DOCUMENT_TYPE="CalendarURI",e.CalendarURI=U;class V extends t{constructor(e){super(e)}requiredDocumentType(){return e.SortString.DOCUMENT_TYPE}}V.DOCUMENT_TYPE="SortString",e.SortString=V;class Z extends t{constructor(e){super(e)}requiredDocumentType(){return e.Classification.DOCUMENT_TYPE}}Z.DOCUMENT_TYPE="Classification",e.Classification=Z;class G extends t{constructor(e){super(e)}requiredDocumentType(){return e.Custom.DOCUMENT_TYPE}}G.DOCUMENT_TYPE="Custom",e.Custom=G}(VCard||(VCard={}));class BritishColumbiaDriverLicense{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return BritishColumbiaDriverLicense.DOCUMENT_TYPE}get address(){return this.document.fields.find((e=>"Address"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get cardExpiry(){return this.document.fields.find((e=>"CardExpiry"===e.type.name))}get cardNumber(){return this.document.fields.find((e=>"CardNumber"===e.type.name))}get city(){return this.document.fields.find((e=>"City"===e.type.name))}get errorControlCode(){return this.document.fields.find((e=>"ErrorControlCode"===e.type.name))}get eyeColor(){return this.document.fields.find((e=>"EyeColor"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get hairColor(){return this.document.fields.find((e=>"HairColor"===e.type.name))}get height(){return this.document.fields.find((e=>"Height"===e.type.name))}get lastName(){return this.document.fields.find((e=>"LastName"===e.type.name))}get personalHealthNumber(){return this.document.fields.find((e=>"PersonalHealthNumber"===e.type.name))}get postalCode(){return this.document.fields.find((e=>"PostalCode"===e.type.name))}get province(){return this.document.fields.find((e=>"Province"===e.type.name))}get provinceCode(){return this.document.fields.find((e=>"ProvinceCode"===e.type.name))}get securityFunction(){return this.document.fields.find((e=>"SecurityFunction"===e.type.name))}get securityVersion(){return this.document.fields.find((e=>"SecurityVersion"===e.type.name))}get sex(){return this.document.fields.find((e=>"Sex"===e.type.name))}get version(){return this.document.fields.find((e=>"Version"===e.type.name))}get weight(){return this.document.fields.find((e=>"Weight"===e.type.name))}}BritishColumbiaDriverLicense.DOCUMENT_TYPE="BritishColumbiaDriverLicense",BritishColumbiaDriverLicense.ADDRESS_FIELD_NAME="Address",BritishColumbiaDriverLicense.ADDRESS_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.Address",BritishColumbiaDriverLicense.BIRTH_DATE_FIELD_NAME="BirthDate",BritishColumbiaDriverLicense.BIRTH_DATE_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.BirthDate",BritishColumbiaDriverLicense.CARD_EXPIRY_FIELD_NAME="CardExpiry",BritishColumbiaDriverLicense.CARD_EXPIRY_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.CardExpiry",BritishColumbiaDriverLicense.CARD_NUMBER_FIELD_NAME="CardNumber",BritishColumbiaDriverLicense.CARD_NUMBER_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.CardNumber",BritishColumbiaDriverLicense.CITY_FIELD_NAME="City",BritishColumbiaDriverLicense.CITY_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.City",BritishColumbiaDriverLicense.ERROR_CONTROL_CODE_FIELD_NAME="ErrorControlCode",BritishColumbiaDriverLicense.ERROR_CONTROL_CODE_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.ErrorControlCode",BritishColumbiaDriverLicense.EYE_COLOR_FIELD_NAME="EyeColor",BritishColumbiaDriverLicense.EYE_COLOR_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.EyeColor",BritishColumbiaDriverLicense.GIVEN_NAMES_FIELD_NAME="GivenNames",BritishColumbiaDriverLicense.GIVEN_NAMES_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.GivenNames",BritishColumbiaDriverLicense.HAIR_COLOR_FIELD_NAME="HairColor",BritishColumbiaDriverLicense.HAIR_COLOR_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.HairColor",BritishColumbiaDriverLicense.HEIGHT_FIELD_NAME="Height",BritishColumbiaDriverLicense.HEIGHT_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.Height",BritishColumbiaDriverLicense.LAST_NAME_FIELD_NAME="LastName",BritishColumbiaDriverLicense.LAST_NAME_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.LastName",BritishColumbiaDriverLicense.PERSONAL_HEALTH_NUMBER_FIELD_NAME="PersonalHealthNumber",BritishColumbiaDriverLicense.PERSONAL_HEALTH_NUMBER_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.PersonalHealthNumber",BritishColumbiaDriverLicense.POSTAL_CODE_FIELD_NAME="PostalCode",BritishColumbiaDriverLicense.POSTAL_CODE_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.PostalCode",BritishColumbiaDriverLicense.PROVINCE_FIELD_NAME="Province",BritishColumbiaDriverLicense.PROVINCE_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.Province",BritishColumbiaDriverLicense.PROVINCE_CODE_FIELD_NAME="ProvinceCode",BritishColumbiaDriverLicense.PROVINCE_CODE_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.ProvinceCode",BritishColumbiaDriverLicense.SECURITY_FUNCTION_FIELD_NAME="SecurityFunction",BritishColumbiaDriverLicense.SECURITY_FUNCTION_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.SecurityFunction",BritishColumbiaDriverLicense.SECURITY_VERSION_FIELD_NAME="SecurityVersion",BritishColumbiaDriverLicense.SECURITY_VERSION_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.SecurityVersion",BritishColumbiaDriverLicense.SEX_FIELD_NAME="Sex",BritishColumbiaDriverLicense.SEX_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.Sex",BritishColumbiaDriverLicense.VERSION_FIELD_NAME="Version",BritishColumbiaDriverLicense.VERSION_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.Version",BritishColumbiaDriverLicense.WEIGHT_FIELD_NAME="Weight",BritishColumbiaDriverLicense.WEIGHT_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.Weight";class AAMVA{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return AAMVA.DOCUMENT_TYPE}get issuerIdentificationNumber(){return this.document.fields.find((e=>"IssuerIdentificationNumber"===e.type.name))}get jurisdictionVersionNumber(){return this.document.fields.find((e=>"JurisdictionVersionNumber"===e.type.name))}get version(){return this.document.fields.find((e=>"Version"===e.type.name))}get titleData(){const e=this.document.children.find((e=>"TitleData"===e.type.name));return e?new AAMVA.TitleData(e):void 0}get registrationData(){const e=this.document.children.find((e=>"RegistrationData"===e.type.name));return e?new AAMVA.RegistrationData(e):void 0}get motorCarrierData(){const e=this.document.children.find((e=>"MotorCarrierData"===e.type.name));return e?new AAMVA.MotorCarrierData(e):void 0}get registrantAndVehicleData(){const e=this.document.children.find((e=>"RegistrantAndVehicleData"===e.type.name));return e?new AAMVA.RegistrantAndVehicleData(e):void 0}get vehicleOwnerData(){const e=this.document.children.find((e=>"VehicleOwnerData"===e.type.name));return e?new AAMVA.VehicleOwnerData(e):void 0}get vehicleData(){const e=this.document.children.find((e=>"VehicleData"===e.type.name));return e?new AAMVA.VehicleData(e):void 0}get vehicleSafetyInspectionData(){const e=this.document.children.find((e=>"VehicleSafetyInspectionData"===e.type.name));return e?new AAMVA.VehicleSafetyInspectionData(e):void 0}get driverLicense(){const e=this.document.children.find((e=>"DriverLicense"===e.type.name));return e?new AAMVA.DriverLicense(e):void 0}get idCard(){const e=this.document.children.find((e=>"IDCard"===e.type.name));return e?new AAMVA.IDCard(e):void 0}get enhancedDriverLicense(){const e=this.document.children.find((e=>"EnhancedDriverLicense"===e.type.name));return e?new AAMVA.EnhancedDriverLicense(e):void 0}get rawDocument(){const e=this.document.children.find((e=>"RawDocument"===e.type.name));return new AAMVA.RawDocument(e)}}AAMVA.DOCUMENT_TYPE="AAMVA",AAMVA.ISSUER_IDENTIFICATION_NUMBER_FIELD_NAME="IssuerIdentificationNumber",AAMVA.ISSUER_IDENTIFICATION_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.IssuerIdentificationNumber",AAMVA.JURISDICTION_VERSION_NUMBER_FIELD_NAME="JurisdictionVersionNumber",AAMVA.JURISDICTION_VERSION_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.JurisdictionVersionNumber",AAMVA.VERSION_FIELD_NAME="Version",AAMVA.VERSION_FIELD_NAME_NORMALIZED="AAMVA.Version",function(e){class t{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.TitleData.DOCUMENT_TYPE}get addressCity(){return this.document.fields.find((e=>"AddressCity"===e.type.name))}get addressJurisdictionCode(){return this.document.fields.find((e=>"AddressJurisdictionCode"===e.type.name))}get addressStreet(){return this.document.fields.find((e=>"AddressStreet"===e.type.name))}get addressZipCode(){return this.document.fields.find((e=>"AddressZipCode"===e.type.name))}get businessName(){return this.document.fields.find((e=>"BusinessName"===e.type.name))}get familyName(){return this.document.fields.find((e=>"FamilyName"===e.type.name))}get firstLienHolderId(){return this.document.fields.find((e=>"FirstLienHolderId"===e.type.name))}get firstLienHolderName(){return this.document.fields.find((e=>"FirstLienHolderName"===e.type.name))}get givenName(){return this.document.fields.find((e=>"GivenName"===e.type.name))}get newUsedIndicator(){return this.document.fields.find((e=>"NewUsedIndicator"===e.type.name))}get odometerDate(){return this.document.fields.find((e=>"OdometerDate"===e.type.name))}get odometerDisclosure(){return this.document.fields.find((e=>"OdometerDisclosure"===e.type.name))}get odometerReadingKilometers(){return this.document.fields.find((e=>"OdometerReadingKilometers"===e.type.name))}get odometerReadingMileage(){return this.document.fields.find((e=>"OdometerReadingMileage"===e.type.name))}get previousTitleNumber(){return this.document.fields.find((e=>"PreviousTitleNumber"===e.type.name))}get previousTitlingJurisdiction(){return this.document.fields.find((e=>"PreviousTitlingJurisdiction"===e.type.name))}get titleBrand(){return this.document.fields.find((e=>"TitleBrand"===e.type.name))}get titleIssueDate(){return this.document.fields.find((e=>"TitleIssueDate"===e.type.name))}get titleNumber(){return this.document.fields.find((e=>"TitleNumber"===e.type.name))}get titlingJurisdiction(){return this.document.fields.find((e=>"TitlingJurisdiction"===e.type.name))}get vehicleBodyStyle(){return this.document.fields.find((e=>"VehicleBodyStyle"===e.type.name))}get vehicleColor(){return this.document.fields.find((e=>"VehicleColor"===e.type.name))}get vehicleIdentificationNumber(){return this.document.fields.find((e=>"VehicleIdentificationNumber"===e.type.name))}get vehicleMake(){return this.document.fields.find((e=>"VehicleMake"===e.type.name))}get vehicleModel(){return this.document.fields.find((e=>"VehicleModel"===e.type.name))}get vehicleModelYear(){return this.document.fields.find((e=>"VehicleModelYear"===e.type.name))}get vehiclePurchaseDate(){return this.document.fields.find((e=>"VehiclePurchaseDate"===e.type.name))}}t.DOCUMENT_TYPE="TitleData",t.ADDRESS_CITY_FIELD_NAME="AddressCity",t.ADDRESS_CITY_FIELD_NAME_NORMALIZED="AAMVA.TitleData.AddressCity",t.ADDRESS_JURISDICTION_CODE_FIELD_NAME="AddressJurisdictionCode",t.ADDRESS_JURISDICTION_CODE_FIELD_NAME_NORMALIZED="AAMVA.TitleData.AddressJurisdictionCode",t.ADDRESS_STREET_FIELD_NAME="AddressStreet",t.ADDRESS_STREET_FIELD_NAME_NORMALIZED="AAMVA.TitleData.AddressStreet",t.ADDRESS_ZIP_CODE_FIELD_NAME="AddressZipCode",t.ADDRESS_ZIP_CODE_FIELD_NAME_NORMALIZED="AAMVA.TitleData.AddressZipCode",t.BUSINESS_NAME_FIELD_NAME="BusinessName",t.BUSINESS_NAME_FIELD_NAME_NORMALIZED="AAMVA.TitleData.BusinessName",t.FAMILY_NAME_FIELD_NAME="FamilyName",t.FAMILY_NAME_FIELD_NAME_NORMALIZED="AAMVA.TitleData.FamilyName",t.FIRST_LIEN_HOLDER_ID_FIELD_NAME="FirstLienHolderId",t.FIRST_LIEN_HOLDER_ID_FIELD_NAME_NORMALIZED="AAMVA.TitleData.FirstLienHolderId",t.FIRST_LIEN_HOLDER_NAME_FIELD_NAME="FirstLienHolderName",t.FIRST_LIEN_HOLDER_NAME_FIELD_NAME_NORMALIZED="AAMVA.TitleData.FirstLienHolderName",t.GIVEN_NAME_FIELD_NAME="GivenName",t.GIVEN_NAME_FIELD_NAME_NORMALIZED="AAMVA.TitleData.GivenName",t.NEW_USED_INDICATOR_FIELD_NAME="NewUsedIndicator",t.NEW_USED_INDICATOR_FIELD_NAME_NORMALIZED="AAMVA.TitleData.NewUsedIndicator",t.ODOMETER_DATE_FIELD_NAME="OdometerDate",t.ODOMETER_DATE_FIELD_NAME_NORMALIZED="AAMVA.TitleData.OdometerDate",t.ODOMETER_DISCLOSURE_FIELD_NAME="OdometerDisclosure",t.ODOMETER_DISCLOSURE_FIELD_NAME_NORMALIZED="AAMVA.TitleData.OdometerDisclosure",t.ODOMETER_READING_KILOMETERS_FIELD_NAME="OdometerReadingKilometers",t.ODOMETER_READING_KILOMETERS_FIELD_NAME_NORMALIZED="AAMVA.TitleData.OdometerReadingKilometers",t.ODOMETER_READING_MILEAGE_FIELD_NAME="OdometerReadingMileage",t.ODOMETER_READING_MILEAGE_FIELD_NAME_NORMALIZED="AAMVA.TitleData.OdometerReadingMileage",t.PREVIOUS_TITLE_NUMBER_FIELD_NAME="PreviousTitleNumber",t.PREVIOUS_TITLE_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.TitleData.PreviousTitleNumber",t.PREVIOUS_TITLING_JURISDICTION_FIELD_NAME="PreviousTitlingJurisdiction",t.PREVIOUS_TITLING_JURISDICTION_FIELD_NAME_NORMALIZED="AAMVA.TitleData.PreviousTitlingJurisdiction",t.TITLE_BRAND_FIELD_NAME="TitleBrand",t.TITLE_BRAND_FIELD_NAME_NORMALIZED="AAMVA.TitleData.TitleBrand",t.TITLE_ISSUE_DATE_FIELD_NAME="TitleIssueDate",t.TITLE_ISSUE_DATE_FIELD_NAME_NORMALIZED="AAMVA.TitleData.TitleIssueDate",t.TITLE_NUMBER_FIELD_NAME="TitleNumber",t.TITLE_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.TitleData.TitleNumber",t.TITLING_JURISDICTION_FIELD_NAME="TitlingJurisdiction",t.TITLING_JURISDICTION_FIELD_NAME_NORMALIZED="AAMVA.TitleData.TitlingJurisdiction",t.VEHICLE_BODY_STYLE_FIELD_NAME="VehicleBodyStyle",t.VEHICLE_BODY_STYLE_FIELD_NAME_NORMALIZED="AAMVA.TitleData.VehicleBodyStyle",t.VEHICLE_COLOR_FIELD_NAME="VehicleColor",t.VEHICLE_COLOR_FIELD_NAME_NORMALIZED="AAMVA.TitleData.VehicleColor",t.VEHICLE_IDENTIFICATION_NUMBER_FIELD_NAME="VehicleIdentificationNumber",t.VEHICLE_IDENTIFICATION_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.TitleData.VehicleIdentificationNumber",t.VEHICLE_MAKE_FIELD_NAME="VehicleMake",t.VEHICLE_MAKE_FIELD_NAME_NORMALIZED="AAMVA.TitleData.VehicleMake",t.VEHICLE_MODEL_FIELD_NAME="VehicleModel",t.VEHICLE_MODEL_FIELD_NAME_NORMALIZED="AAMVA.TitleData.VehicleModel",t.VEHICLE_MODEL_YEAR_FIELD_NAME="VehicleModelYear",t.VEHICLE_MODEL_YEAR_FIELD_NAME_NORMALIZED="AAMVA.TitleData.VehicleModelYear",t.VEHICLE_PURCHASE_DATE_FIELD_NAME="VehiclePurchaseDate",t.VEHICLE_PURCHASE_DATE_FIELD_NAME_NORMALIZED="AAMVA.TitleData.VehiclePurchaseDate",e.TitleData=t;class i{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.RegistrationData.DOCUMENT_TYPE}get addressCity(){return this.document.fields.find((e=>"AddressCity"===e.type.name))}get addressJurisdictionCode(){return this.document.fields.find((e=>"AddressJurisdictionCode"===e.type.name))}get addressStreet(){return this.document.fields.find((e=>"AddressStreet"===e.type.name))}get addressZipCode(){return this.document.fields.find((e=>"AddressZipCode"===e.type.name))}get axles(){return this.document.fields.find((e=>"Axles"===e.type.name))}get businessName(){return this.document.fields.find((e=>"BusinessName"===e.type.name))}get fuel(){return this.document.fields.find((e=>"Fuel"===e.type.name))}get grossVehicleWeight(){return this.document.fields.find((e=>"GrossVehicleWeight"===e.type.name))}get registrantFamilyName(){return this.document.fields.find((e=>"RegistrantFamilyName"===e.type.name))}get registrantGivenName(){return this.document.fields.find((e=>"RegistrantGivenName"===e.type.name))}get registrationExpiryDate(){return this.document.fields.find((e=>"RegistrationExpiryDate"===e.type.name))}get registrationIssueDate(){return this.document.fields.find((e=>"RegistrationIssueDate"===e.type.name))}get registrationPlateNumber(){return this.document.fields.find((e=>"RegistrationPlateNumber"===e.type.name))}get registrationWindowStickerDecal(){return this.document.fields.find((e=>"RegistrationWindowStickerDecal"===e.type.name))}get registrationYear(){return this.document.fields.find((e=>"RegistrationYear"===e.type.name))}get vehicleBodyStyle(){return this.document.fields.find((e=>"VehicleBodyStyle"===e.type.name))}get vehicleColor(){return this.document.fields.find((e=>"VehicleColor"===e.type.name))}get vehicleIdentificationNumber(){return this.document.fields.find((e=>"VehicleIdentificationNumber"===e.type.name))}get vehicleMake(){return this.document.fields.find((e=>"VehicleMake"===e.type.name))}get vehicleModel(){return this.document.fields.find((e=>"VehicleModel"===e.type.name))}get vehicleModelYear(){return this.document.fields.find((e=>"VehicleModelYear"===e.type.name))}get vehicleUse(){return this.document.fields.find((e=>"VehicleUse"===e.type.name))}}i.DOCUMENT_TYPE="RegistrationData",i.ADDRESS_CITY_FIELD_NAME="AddressCity",i.ADDRESS_CITY_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.AddressCity",i.ADDRESS_JURISDICTION_CODE_FIELD_NAME="AddressJurisdictionCode",i.ADDRESS_JURISDICTION_CODE_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.AddressJurisdictionCode",i.ADDRESS_STREET_FIELD_NAME="AddressStreet",i.ADDRESS_STREET_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.AddressStreet",i.ADDRESS_ZIP_CODE_FIELD_NAME="AddressZipCode",i.ADDRESS_ZIP_CODE_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.AddressZipCode",i.AXLES_FIELD_NAME="Axles",i.AXLES_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.Axles",i.BUSINESS_NAME_FIELD_NAME="BusinessName",i.BUSINESS_NAME_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.BusinessName",i.FUEL_FIELD_NAME="Fuel",i.FUEL_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.Fuel",i.GROSS_VEHICLE_WEIGHT_FIELD_NAME="GrossVehicleWeight",i.GROSS_VEHICLE_WEIGHT_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.GrossVehicleWeight",i.REGISTRANT_FAMILY_NAME_FIELD_NAME="RegistrantFamilyName",i.REGISTRANT_FAMILY_NAME_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.RegistrantFamilyName",i.REGISTRANT_GIVEN_NAME_FIELD_NAME="RegistrantGivenName",i.REGISTRANT_GIVEN_NAME_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.RegistrantGivenName",i.REGISTRATION_EXPIRY_DATE_FIELD_NAME="RegistrationExpiryDate",i.REGISTRATION_EXPIRY_DATE_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.RegistrationExpiryDate",i.REGISTRATION_ISSUE_DATE_FIELD_NAME="RegistrationIssueDate",i.REGISTRATION_ISSUE_DATE_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.RegistrationIssueDate",i.REGISTRATION_PLATE_NUMBER_FIELD_NAME="RegistrationPlateNumber",i.REGISTRATION_PLATE_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.RegistrationPlateNumber",i.REGISTRATION_WINDOW_STICKER_DECAL_FIELD_NAME="RegistrationWindowStickerDecal",i.REGISTRATION_WINDOW_STICKER_DECAL_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.RegistrationWindowStickerDecal",i.REGISTRATION_YEAR_FIELD_NAME="RegistrationYear",i.REGISTRATION_YEAR_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.RegistrationYear",i.VEHICLE_BODY_STYLE_FIELD_NAME="VehicleBodyStyle",i.VEHICLE_BODY_STYLE_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.VehicleBodyStyle",i.VEHICLE_COLOR_FIELD_NAME="VehicleColor",i.VEHICLE_COLOR_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.VehicleColor",i.VEHICLE_IDENTIFICATION_NUMBER_FIELD_NAME="VehicleIdentificationNumber",i.VEHICLE_IDENTIFICATION_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.VehicleIdentificationNumber",i.VEHICLE_MAKE_FIELD_NAME="VehicleMake",i.VEHICLE_MAKE_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.VehicleMake",i.VEHICLE_MODEL_FIELD_NAME="VehicleModel",i.VEHICLE_MODEL_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.VehicleModel",i.VEHICLE_MODEL_YEAR_FIELD_NAME="VehicleModelYear",i.VEHICLE_MODEL_YEAR_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.VehicleModelYear",i.VEHICLE_USE_FIELD_NAME="VehicleUse",i.VEHICLE_USE_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.VehicleUse",e.RegistrationData=i;class n{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.MotorCarrierData.DOCUMENT_TYPE}get carrierName(){return this.document.fields.find((e=>"CarrierName"===e.type.name))}get city(){return this.document.fields.find((e=>"City"===e.type.name))}get jurisdiction(){return this.document.fields.find((e=>"Jurisdiction"===e.type.name))}get streetAddress(){return this.document.fields.find((e=>"StreetAddress"===e.type.name))}get usdotNumber(){return this.document.fields.find((e=>"USDOTNumber"===e.type.name))}get zip(){return this.document.fields.find((e=>"Zip"===e.type.name))}}n.DOCUMENT_TYPE="MotorCarrierData",n.CARRIER_NAME_FIELD_NAME="CarrierName",n.CARRIER_NAME_FIELD_NAME_NORMALIZED="AAMVA.MotorCarrierData.CarrierName",n.CITY_FIELD_NAME="City",n.CITY_FIELD_NAME_NORMALIZED="AAMVA.MotorCarrierData.City",n.JURISDICTION_FIELD_NAME="Jurisdiction",n.JURISDICTION_FIELD_NAME_NORMALIZED="AAMVA.MotorCarrierData.Jurisdiction",n.STREET_ADDRESS_FIELD_NAME="StreetAddress",n.STREET_ADDRESS_FIELD_NAME_NORMALIZED="AAMVA.MotorCarrierData.StreetAddress",n.USDOT_NUMBER_FIELD_NAME="USDOTNumber",n.USDOT_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.MotorCarrierData.USDOTNumber",n.ZIP_FIELD_NAME="Zip",n.ZIP_FIELD_NAME_NORMALIZED="AAMVA.MotorCarrierData.Zip",e.MotorCarrierData=n;class r{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.RegistrantAndVehicleData.DOCUMENT_TYPE}get address(){return this.document.fields.find((e=>"Address"===e.type.name))}get baseJurisdictionRegisteredWeight(){return this.document.fields.find((e=>"BaseJurisdictionRegisteredWeight"===e.type.name))}get carrierNameRegistrant(){return this.document.fields.find((e=>"CarrierNameRegistrant"===e.type.name))}get city(){return this.document.fields.find((e=>"City"===e.type.name))}get grossVehicleWeight(){return this.document.fields.find((e=>"GrossVehicleWeight"===e.type.name))}get jurisdiction(){return this.document.fields.find((e=>"Jurisdiction"===e.type.name))}get modelYear(){return this.document.fields.find((e=>"ModelYear"===e.type.name))}get numberOfSeats(){return this.document.fields.find((e=>"NumberOfSeats"===e.type.name))}get registrationDecalNumber(){return this.document.fields.find((e=>"RegistrationDecalNumber"===e.type.name))}get registrationEnforcementDate(){return this.document.fields.find((e=>"RegistrationEnforcementDate"===e.type.name))}get registrationExpirationDate(){return this.document.fields.find((e=>"RegistrationExpirationDate"===e.type.name))}get registrationIssueDate(){return this.document.fields.find((e=>"RegistrationIssueDate"===e.type.name))}get registrationPlateNumber(){return this.document.fields.find((e=>"RegistrationPlateNumber"===e.type.name))}get registrationYear(){return this.document.fields.find((e=>"RegistrationYear"===e.type.name))}get typeOfVehicle(){return this.document.fields.find((e=>"TypeOfVehicle"===e.type.name))}get unitNumber(){return this.document.fields.find((e=>"UnitNumber"===e.type.name))}get vehicleIdentificationNumber(){return this.document.fields.find((e=>"VehicleIdentificationNumber"===e.type.name))}get vehicleMake(){return this.document.fields.find((e=>"VehicleMake"===e.type.name))}get zipCode(){return this.document.fields.find((e=>"ZipCode"===e.type.name))}}r.DOCUMENT_TYPE="RegistrantAndVehicleData",r.ADDRESS_FIELD_NAME="Address",r.ADDRESS_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.Address",r.BASE_JURISDICTION_REGISTERED_WEIGHT_FIELD_NAME="BaseJurisdictionRegisteredWeight",r.BASE_JURISDICTION_REGISTERED_WEIGHT_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.BaseJurisdictionRegisteredWeight",r.CARRIER_NAME_REGISTRANT_FIELD_NAME="CarrierNameRegistrant",r.CARRIER_NAME_REGISTRANT_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.CarrierNameRegistrant",r.CITY_FIELD_NAME="City",r.CITY_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.City",r.GROSS_VEHICLE_WEIGHT_FIELD_NAME="GrossVehicleWeight",r.GROSS_VEHICLE_WEIGHT_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.GrossVehicleWeight",r.JURISDICTION_FIELD_NAME="Jurisdiction",r.JURISDICTION_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.Jurisdiction",r.MODEL_YEAR_FIELD_NAME="ModelYear",r.MODEL_YEAR_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.ModelYear",r.NUMBER_OF_SEATS_FIELD_NAME="NumberOfSeats",r.NUMBER_OF_SEATS_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.NumberOfSeats",r.REGISTRATION_DECAL_NUMBER_FIELD_NAME="RegistrationDecalNumber",r.REGISTRATION_DECAL_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.RegistrationDecalNumber",r.REGISTRATION_ENFORCEMENT_DATE_FIELD_NAME="RegistrationEnforcementDate",r.REGISTRATION_ENFORCEMENT_DATE_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.RegistrationEnforcementDate",r.REGISTRATION_EXPIRATION_DATE_FIELD_NAME="RegistrationExpirationDate",r.REGISTRATION_EXPIRATION_DATE_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.RegistrationExpirationDate",r.REGISTRATION_ISSUE_DATE_FIELD_NAME="RegistrationIssueDate",r.REGISTRATION_ISSUE_DATE_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.RegistrationIssueDate",r.REGISTRATION_PLATE_NUMBER_FIELD_NAME="RegistrationPlateNumber",r.REGISTRATION_PLATE_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.RegistrationPlateNumber",r.REGISTRATION_YEAR_FIELD_NAME="RegistrationYear",r.REGISTRATION_YEAR_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.RegistrationYear",r.TYPE_OF_VEHICLE_FIELD_NAME="TypeOfVehicle",r.TYPE_OF_VEHICLE_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.TypeOfVehicle",r.UNIT_NUMBER_FIELD_NAME="UnitNumber",r.UNIT_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.UnitNumber",r.VEHICLE_IDENTIFICATION_NUMBER_FIELD_NAME="VehicleIdentificationNumber",r.VEHICLE_IDENTIFICATION_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.VehicleIdentificationNumber",r.VEHICLE_MAKE_FIELD_NAME="VehicleMake",r.VEHICLE_MAKE_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.VehicleMake",r.ZIP_CODE_FIELD_NAME="ZipCode",r.ZIP_CODE_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.ZipCode",e.RegistrantAndVehicleData=r;class o{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.VehicleOwnerData.DOCUMENT_TYPE}get firstOwnerIdNumber(){return this.document.fields.find((e=>"FirstOwnerIdNumber"===e.type.name))}get firstOwnerLastName(){return this.document.fields.find((e=>"FirstOwnerLastName"===e.type.name))}get firstOwnerLegalStatus(){return this.document.fields.find((e=>"FirstOwnerLegalStatus"===e.type.name))}get firstOwnerMiddleName(){return this.document.fields.find((e=>"FirstOwnerMiddleName"===e.type.name))}get firstOwnerName(){return this.document.fields.find((e=>"FirstOwnerName"===e.type.name))}get firstOwnerTotalName(){return this.document.fields.find((e=>"FirstOwnerTotalName"===e.type.name))}get mailingAddress1(){return this.document.fields.find((e=>"MailingAddress1"===e.type.name))}get mailingAddress2(){return this.document.fields.find((e=>"MailingAddress2"===e.type.name))}get mailingCity(){return this.document.fields.find((e=>"MailingCity"===e.type.name))}get mailingJurisdictionCode(){return this.document.fields.find((e=>"MailingJurisdictionCode"===e.type.name))}get mailingZipCode(){return this.document.fields.find((e=>"MailingZipCode"===e.type.name))}get residenceAddress1(){return this.document.fields.find((e=>"ResidenceAddress1"===e.type.name))}get residenceAddress2(){return this.document.fields.find((e=>"ResidenceAddress2"===e.type.name))}get residenceCity(){return this.document.fields.find((e=>"ResidenceCity"===e.type.name))}get residenceJurisdictionCode(){return this.document.fields.find((e=>"ResidenceJurisdictionCode"===e.type.name))}get residenceZipCode(){return this.document.fields.find((e=>"ResidenceZipCode"===e.type.name))}get secondOwnerIdNumber(){return this.document.fields.find((e=>"SecondOwnerIdNumber"===e.type.name))}get secondOwnerLastName(){return this.document.fields.find((e=>"SecondOwnerLastName"===e.type.name))}get secondOwnerLegalStatus(){return this.document.fields.find((e=>"SecondOwnerLegalStatus"===e.type.name))}get secondOwnerMiddleName(){return this.document.fields.find((e=>"SecondOwnerMiddleName"===e.type.name))}get secondOwnerName(){return this.document.fields.find((e=>"SecondOwnerName"===e.type.name))}get secondOwnerTotalName(){return this.document.fields.find((e=>"SecondOwnerTotalName"===e.type.name))}}o.DOCUMENT_TYPE="VehicleOwnerData",o.FIRST_OWNER_ID_NUMBER_FIELD_NAME="FirstOwnerIdNumber",o.FIRST_OWNER_ID_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.FirstOwnerIdNumber",o.FIRST_OWNER_LAST_NAME_FIELD_NAME="FirstOwnerLastName",o.FIRST_OWNER_LAST_NAME_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.FirstOwnerLastName",o.FIRST_OWNER_LEGAL_STATUS_FIELD_NAME="FirstOwnerLegalStatus",o.FIRST_OWNER_LEGAL_STATUS_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.FirstOwnerLegalStatus",o.FIRST_OWNER_MIDDLE_NAME_FIELD_NAME="FirstOwnerMiddleName",o.FIRST_OWNER_MIDDLE_NAME_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.FirstOwnerMiddleName",o.FIRST_OWNER_NAME_FIELD_NAME="FirstOwnerName",o.FIRST_OWNER_NAME_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.FirstOwnerName",o.FIRST_OWNER_TOTAL_NAME_FIELD_NAME="FirstOwnerTotalName",o.FIRST_OWNER_TOTAL_NAME_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.FirstOwnerTotalName",o.MAILING_ADDRESS_1_FIELD_NAME="MailingAddress1",o.MAILING_ADDRESS_1_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.MailingAddress1",o.MAILING_ADDRESS_2_FIELD_NAME="MailingAddress2",o.MAILING_ADDRESS_2_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.MailingAddress2",o.MAILING_CITY_FIELD_NAME="MailingCity",o.MAILING_CITY_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.MailingCity",o.MAILING_JURISDICTION_CODE_FIELD_NAME="MailingJurisdictionCode",o.MAILING_JURISDICTION_CODE_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.MailingJurisdictionCode",o.MAILING_ZIP_CODE_FIELD_NAME="MailingZipCode",o.MAILING_ZIP_CODE_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.MailingZipCode",o.RESIDENCE_ADDRESS_1_FIELD_NAME="ResidenceAddress1",o.RESIDENCE_ADDRESS_1_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.ResidenceAddress1",o.RESIDENCE_ADDRESS_2_FIELD_NAME="ResidenceAddress2",o.RESIDENCE_ADDRESS_2_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.ResidenceAddress2",o.RESIDENCE_CITY_FIELD_NAME="ResidenceCity",o.RESIDENCE_CITY_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.ResidenceCity",o.RESIDENCE_JURISDICTION_CODE_FIELD_NAME="ResidenceJurisdictionCode",o.RESIDENCE_JURISDICTION_CODE_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.ResidenceJurisdictionCode",o.RESIDENCE_ZIP_CODE_FIELD_NAME="ResidenceZipCode",o.RESIDENCE_ZIP_CODE_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.ResidenceZipCode",o.SECOND_OWNER_ID_NUMBER_FIELD_NAME="SecondOwnerIdNumber",o.SECOND_OWNER_ID_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.SecondOwnerIdNumber",o.SECOND_OWNER_LAST_NAME_FIELD_NAME="SecondOwnerLastName",o.SECOND_OWNER_LAST_NAME_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.SecondOwnerLastName",o.SECOND_OWNER_LEGAL_STATUS_FIELD_NAME="SecondOwnerLegalStatus",o.SECOND_OWNER_LEGAL_STATUS_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.SecondOwnerLegalStatus",o.SECOND_OWNER_MIDDLE_NAME_FIELD_NAME="SecondOwnerMiddleName",o.SECOND_OWNER_MIDDLE_NAME_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.SecondOwnerMiddleName",o.SECOND_OWNER_NAME_FIELD_NAME="SecondOwnerName",o.SECOND_OWNER_NAME_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.SecondOwnerName",o.SECOND_OWNER_TOTAL_NAME_FIELD_NAME="SecondOwnerTotalName",o.SECOND_OWNER_TOTAL_NAME_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.SecondOwnerTotalName",e.VehicleOwnerData=o;class a{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.VehicleData.DOCUMENT_TYPE}get bodyStyle(){return this.document.fields.find((e=>"BodyStyle"===e.type.name))}get dateJunked(){return this.document.fields.find((e=>"DateJunked"===e.type.name))}get dateRecovered(){return this.document.fields.find((e=>"DateRecovered"===e.type.name))}get dateStolen(){return this.document.fields.find((e=>"DateStolen"===e.type.name))}get engineDisplacement(){return this.document.fields.find((e=>"EngineDisplacement"===e.type.name))}get engineSize(){return this.document.fields.find((e=>"EngineSize"===e.type.name))}get fuelType(){return this.document.fields.find((e=>"FuelType"===e.type.name))}get horsepower(){return this.document.fields.find((e=>"Horsepower"===e.type.name))}get iftaIndicator(){return this.document.fields.find((e=>"IFTAIndicator"===e.type.name))}get irpIndicator(){return this.document.fields.find((e=>"IRPIndicator"===e.type.name))}get junkedIndicator(){return this.document.fields.find((e=>"JunkedIndicator"===e.type.name))}get msrp(){return this.document.fields.find((e=>"MSRP"===e.type.name))}get majorCode(){return this.document.fields.find((e=>"MajorCode"===e.type.name))}get makeYear(){return this.document.fields.find((e=>"MakeYear"===e.type.name))}get manufactureGrossWeight(){return this.document.fields.find((e=>"ManufactureGrossWeight"===e.type.name))}get minorCode(){return this.document.fields.find((e=>"MinorCode"===e.type.name))}get numberOfAxles(){return this.document.fields.find((e=>"NumberOfAxles"===e.type.name))}get numberOfCylinders(){return this.document.fields.find((e=>"NumberOfCylinders"===e.type.name))}get numberOfDoors(){return this.document.fields.find((e=>"NumberOfDoors"===e.type.name))}get stolenIndicator(){return this.document.fields.find((e=>"StolenIndicator"===e.type.name))}get transmissionCode(){return this.document.fields.find((e=>"TransmissionCode"===e.type.name))}get unladenWeight(){return this.document.fields.find((e=>"UnladenWeight"===e.type.name))}get vltClacFromDate(){return this.document.fields.find((e=>"VLTClacFromDate"===e.type.name))}get vehicleIdNumber(){return this.document.fields.find((e=>"VehicleIdNumber"===e.type.name))}get vehicleIdentificationNumber(){return this.document.fields.find((e=>"VehicleIdentificationNumber"===e.type.name))}get vehicleMake(){return this.document.fields.find((e=>"VehicleMake"===e.type.name))}get vehicleModel(){return this.document.fields.find((e=>"VehicleModel"===e.type.name))}get vehicleStatusCode(){return this.document.fields.find((e=>"VehicleStatusCode"===e.type.name))}get vehicleTypeCode(){return this.document.fields.find((e=>"VehicleTypeCode"===e.type.name))}}a.DOCUMENT_TYPE="VehicleData",a.BODY_STYLE_FIELD_NAME="BodyStyle",a.BODY_STYLE_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.BodyStyle",a.DATE_JUNKED_FIELD_NAME="DateJunked",a.DATE_JUNKED_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.DateJunked",a.DATE_RECOVERED_FIELD_NAME="DateRecovered",a.DATE_RECOVERED_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.DateRecovered",a.DATE_STOLEN_FIELD_NAME="DateStolen",a.DATE_STOLEN_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.DateStolen",a.ENGINE_DISPLACEMENT_FIELD_NAME="EngineDisplacement",a.ENGINE_DISPLACEMENT_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.EngineDisplacement",a.ENGINE_SIZE_FIELD_NAME="EngineSize",a.ENGINE_SIZE_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.EngineSize",a.FUEL_TYPE_FIELD_NAME="FuelType",a.FUEL_TYPE_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.FuelType",a.HORSEPOWER_FIELD_NAME="Horsepower",a.HORSEPOWER_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.Horsepower",a.IFTA_INDICATOR_FIELD_NAME="IFTAIndicator",a.IFTA_INDICATOR_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.IFTAIndicator",a.IRP_INDICATOR_FIELD_NAME="IRPIndicator",a.IRP_INDICATOR_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.IRPIndicator",a.JUNKED_INDICATOR_FIELD_NAME="JunkedIndicator",a.JUNKED_INDICATOR_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.JunkedIndicator",a.MSRP_FIELD_NAME="MSRP",a.MSRP_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.MSRP",a.MAJOR_CODE_FIELD_NAME="MajorCode",a.MAJOR_CODE_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.MajorCode",a.MAKE_YEAR_FIELD_NAME="MakeYear",a.MAKE_YEAR_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.MakeYear",a.MANUFACTURE_GROSS_WEIGHT_FIELD_NAME="ManufactureGrossWeight",a.MANUFACTURE_GROSS_WEIGHT_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.ManufactureGrossWeight",a.MINOR_CODE_FIELD_NAME="MinorCode",a.MINOR_CODE_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.MinorCode",a.NUMBER_OF_AXLES_FIELD_NAME="NumberOfAxles",a.NUMBER_OF_AXLES_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.NumberOfAxles",a.NUMBER_OF_CYLINDERS_FIELD_NAME="NumberOfCylinders",a.NUMBER_OF_CYLINDERS_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.NumberOfCylinders",a.NUMBER_OF_DOORS_FIELD_NAME="NumberOfDoors",a.NUMBER_OF_DOORS_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.NumberOfDoors",a.STOLEN_INDICATOR_FIELD_NAME="StolenIndicator",a.STOLEN_INDICATOR_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.StolenIndicator",a.TRANSMISSION_CODE_FIELD_NAME="TransmissionCode",a.TRANSMISSION_CODE_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.TransmissionCode",a.UNLADEN_WEIGHT_FIELD_NAME="UnladenWeight",a.UNLADEN_WEIGHT_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.UnladenWeight",a.VLT_CLAC_FROM_DATE_FIELD_NAME="VLTClacFromDate",a.VLT_CLAC_FROM_DATE_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.VLTClacFromDate",a.VEHICLE_ID_NUMBER_FIELD_NAME="VehicleIdNumber",a.VEHICLE_ID_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.VehicleIdNumber",a.VEHICLE_IDENTIFICATION_NUMBER_FIELD_NAME="VehicleIdentificationNumber",a.VEHICLE_IDENTIFICATION_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.VehicleIdentificationNumber",a.VEHICLE_MAKE_FIELD_NAME="VehicleMake",a.VEHICLE_MAKE_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.VehicleMake",a.VEHICLE_MODEL_FIELD_NAME="VehicleModel",a.VEHICLE_MODEL_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.VehicleModel",a.VEHICLE_STATUS_CODE_FIELD_NAME="VehicleStatusCode",a.VEHICLE_STATUS_CODE_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.VehicleStatusCode",a.VEHICLE_TYPE_CODE_FIELD_NAME="VehicleTypeCode",a.VEHICLE_TYPE_CODE_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.VehicleTypeCode",e.VehicleData=a;class s{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.VehicleSafetyInspectionData.DOCUMENT_TYPE}get inspectionAddress(){return this.document.fields.find((e=>"InspectionAddress"===e.type.name))}get inspectionAirPollutionDeviceConditions(){return this.document.fields.find((e=>"InspectionAirPollutionDeviceConditions"===e.type.name))}get inspectionFacilityIdentifier(){return this.document.fields.find((e=>"InspectionFacilityIdentifier"===e.type.name))}get inspectionFormOrStickerNumberCurrent(){return this.document.fields.find((e=>"InspectionFormOrStickerNumberCurrent"===e.type.name))}get inspectionFormOrStickerNumberPrevious(){return this.document.fields.find((e=>"InspectionFormOrStickerNumberPrevious"===e.type.name))}get inspectionSmogCertificateIndicator(){return this.document.fields.find((e=>"InspectionSmogCertificateIndicator"===e.type.name))}get inspectionStationNumber(){return this.document.fields.find((e=>"InspectionStationNumber"===e.type.name))}get inspectorIdentificationNumber(){return this.document.fields.find((e=>"InspectorIdentificationNumber"===e.type.name))}get odometerReadingAtInspection(){return this.document.fields.find((e=>"OdometerReadingAtInspection"===e.type.name))}get vehicleBodyType(){return this.document.fields.find((e=>"VehicleBodyType"===e.type.name))}get vehicleMake(){return this.document.fields.find((e=>"VehicleMake"===e.type.name))}get vehicleModelYear(){return this.document.fields.find((e=>"VehicleModelYear"===e.type.name))}}s.DOCUMENT_TYPE="VehicleSafetyInspectionData",s.INSPECTION_ADDRESS_FIELD_NAME="InspectionAddress",s.INSPECTION_ADDRESS_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.InspectionAddress",s.INSPECTION_AIR_POLLUTION_DEVICE_CONDITIONS_FIELD_NAME="InspectionAirPollutionDeviceConditions",s.INSPECTION_AIR_POLLUTION_DEVICE_CONDITIONS_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.InspectionAirPollutionDeviceConditions",s.INSPECTION_FACILITY_IDENTIFIER_FIELD_NAME="InspectionFacilityIdentifier",s.INSPECTION_FACILITY_IDENTIFIER_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.InspectionFacilityIdentifier",s.INSPECTION_FORM_OR_STICKER_NUMBER_CURRENT_FIELD_NAME="InspectionFormOrStickerNumberCurrent",s.INSPECTION_FORM_OR_STICKER_NUMBER_CURRENT_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.InspectionFormOrStickerNumberCurrent",s.INSPECTION_FORM_OR_STICKER_NUMBER_PREVIOUS_FIELD_NAME="InspectionFormOrStickerNumberPrevious",s.INSPECTION_FORM_OR_STICKER_NUMBER_PREVIOUS_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.InspectionFormOrStickerNumberPrevious",s.INSPECTION_SMOG_CERTIFICATE_INDICATOR_FIELD_NAME="InspectionSmogCertificateIndicator",s.INSPECTION_SMOG_CERTIFICATE_INDICATOR_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.InspectionSmogCertificateIndicator",s.INSPECTION_STATION_NUMBER_FIELD_NAME="InspectionStationNumber",s.INSPECTION_STATION_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.InspectionStationNumber",s.INSPECTOR_IDENTIFICATION_NUMBER_FIELD_NAME="InspectorIdentificationNumber",s.INSPECTOR_IDENTIFICATION_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.InspectorIdentificationNumber",s.ODOMETER_READING_AT_INSPECTION_FIELD_NAME="OdometerReadingAtInspection",s.ODOMETER_READING_AT_INSPECTION_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.OdometerReadingAtInspection",s.VEHICLE_BODY_TYPE_FIELD_NAME="VehicleBodyType",s.VEHICLE_BODY_TYPE_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.VehicleBodyType",s.VEHICLE_MAKE_FIELD_NAME="VehicleMake",s.VEHICLE_MAKE_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.VehicleMake",s.VEHICLE_MODEL_YEAR_FIELD_NAME="VehicleModelYear",s.VEHICLE_MODEL_YEAR_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.VehicleModelYear",e.VehicleSafetyInspectionData=s;class c{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}get addressCity(){return this.document.fields.find((e=>"AddressCity"===e.type.name))}get addressJurisdictionCode(){return this.document.fields.find((e=>"AddressJurisdictionCode"===e.type.name))}get addressPostalCode(){return this.document.fields.find((e=>"AddressPostalCode"===e.type.name))}get addressStreet1(){return this.document.fields.find((e=>"AddressStreet1"===e.type.name))}get addressStreet2(){return this.document.fields.find((e=>"AddressStreet2"===e.type.name))}get adultInformation(){return this.document.fields.find((e=>"AdultInformation"===e.type.name))}get aliasFamilyName(){return this.document.fields.find((e=>"AliasFamilyName"===e.type.name))}get aliasGivenName(){return this.document.fields.find((e=>"AliasGivenName"===e.type.name))}get aliasMiddleName(){return this.document.fields.find((e=>"AliasMiddleName"===e.type.name))}get aliasPrefixName(){return this.document.fields.find((e=>"AliasPrefixName"===e.type.name))}get aliasSuffixName(){return this.document.fields.find((e=>"AliasSuffixName"===e.type.name))}get cardRevisionDate(){return this.document.fields.find((e=>"CardRevisionDate"===e.type.name))}get complianceType(){return this.document.fields.find((e=>"ComplianceType"===e.type.name))}get countryIdentification(){return this.document.fields.find((e=>"CountryIdentification"===e.type.name))}get customerFamilyName(){return this.document.fields.find((e=>"CustomerFamilyName"===e.type.name))}get customerFirstName(){return this.document.fields.find((e=>"CustomerFirstName"===e.type.name))}get customerGivenNames(){return this.document.fields.find((e=>"CustomerGivenNames"===e.type.name))}get customerIdNumber(){return this.document.fields.find((e=>"CustomerIdNumber"===e.type.name))}get customerMiddleName(){return this.document.fields.find((e=>"CustomerMiddleName"===e.type.name))}get dateOfBirth(){return this.document.fields.find((e=>"DateOfBirth"===e.type.name))}get documentDiscriminator(){return this.document.fields.find((e=>"DocumentDiscriminator"===e.type.name))}get documentExpirationDate(){return this.document.fields.find((e=>"DocumentExpirationDate"===e.type.name))}get documentIssueDate(){return this.document.fields.find((e=>"DocumentIssueDate"===e.type.name))}get driverAliasDateOfBirthField(){return this.document.fields.find((e=>"DriverAliasDateOfBirthField"===e.type.name))}get driverAliasFirstName(){return this.document.fields.find((e=>"DriverAliasFirstName"===e.type.name))}get driverAliasLastName(){return this.document.fields.find((e=>"DriverAliasLastName"===e.type.name))}get driverAliasSocialSecurityNumber(){return this.document.fields.find((e=>"DriverAliasSocialSecurityNumber"===e.type.name))}get driverLastName(){return this.document.fields.find((e=>"DriverLastName"===e.type.name))}get driverLicenseClassificationCode(){return this.document.fields.find((e=>"DriverLicenseClassificationCode"===e.type.name))}get driverLicenseEndorsementsCode(){return this.document.fields.find((e=>"DriverLicenseEndorsementsCode"===e.type.name))}get driverLicenseName(){return this.document.fields.find((e=>"DriverLicenseName"===e.type.name))}get driverLicenseRestrictionCode(){return this.document.fields.find((e=>"DriverLicenseRestrictionCode"===e.type.name))}get driverNamePrefix(){return this.document.fields.find((e=>"DriverNamePrefix"===e.type.name))}get driverNameSuffix(){return this.document.fields.find((e=>"DriverNameSuffix"===e.type.name))}get driverPermitClassificationCode(){return this.document.fields.find((e=>"DriverPermitClassificationCode"===e.type.name))}get driverPermitEndorsementCode(){return this.document.fields.find((e=>"DriverPermitEndorsementCode"===e.type.name))}get driverPermitIssueDate(){return this.document.fields.find((e=>"DriverPermitIssueDate"===e.type.name))}get driverPermitRestrictionCode(){return this.document.fields.find((e=>"DriverPermitRestrictionCode"===e.type.name))}get driverResidenceCity(){return this.document.fields.find((e=>"DriverResidenceCity"===e.type.name))}get driverResidenceJurisdictionCode(){return this.document.fields.find((e=>"DriverResidenceJurisdictionCode"===e.type.name))}get driverResidencePostalCode(){return this.document.fields.find((e=>"DriverResidencePostalCode"===e.type.name))}get driverResidenceStreetAddress1(){return this.document.fields.find((e=>"DriverResidenceStreetAddress1"===e.type.name))}get driverResidenceStreetAddress2(){return this.document.fields.find((e=>"DriverResidenceStreetAddress2"===e.type.name))}get familyNameTruncation(){return this.document.fields.find((e=>"FamilyNameTruncation"===e.type.name))}get federalCommercialVehicleCodes(){return this.document.fields.find((e=>"FederalCommercialVehicleCodes"===e.type.name))}get firstNameTruncation(){return this.document.fields.find((e=>"FirstNameTruncation"===e.type.name))}get hazmatEndorsementExpirationDate(){return this.document.fields.find((e=>"HAZMATEndorsementExpirationDate"===e.type.name))}get hairColor(){return this.document.fields.find((e=>"HairColor"===e.type.name))}get height(){return this.document.fields.find((e=>"Height"===e.type.name))}get inventoryControlNumber(){return this.document.fields.find((e=>"InventoryControlNumber"===e.type.name))}get issueTimeStamp(){return this.document.fields.find((e=>"IssueTimeStamp"===e.type.name))}get jurisdictionSpecificEndorsementCodeDescription(){return this.document.fields.find((e=>"JurisdictionSpecificEndorsementCodeDescription"===e.type.name))}get jurisdictionSpecificEndorsementCodes(){return this.document.fields.find((e=>"JurisdictionSpecificEndorsementCodes"===e.type.name))}get jurisdictionSpecificRestrictionCodeDescription(){return this.document.fields.find((e=>"JurisdictionSpecificRestrictionCodeDescription"===e.type.name))}get jurisdictionSpecificRestrictionCodes(){return this.document.fields.find((e=>"JurisdictionSpecificRestrictionCodes"===e.type.name))}get jurisdictionSpecificVehicleClass(){return this.document.fields.find((e=>"JurisdictionSpecificVehicleClass"===e.type.name))}get jurisdictionSpecificVehicleClassificationDescription(){return this.document.fields.find((e=>"JurisdictionSpecificVehicleClassificationDescription"===e.type.name))}get limitedDurationDocumentIndicator(){return this.document.fields.find((e=>"LimitedDurationDocumentIndicator"===e.type.name))}get middleNameTruncation(){return this.document.fields.find((e=>"MiddleNameTruncation"===e.type.name))}get nameSuffix(){return this.document.fields.find((e=>"NameSuffix"===e.type.name))}get nonResidentIndicator(){return this.document.fields.find((e=>"NonResidentIndicator"===e.type.name))}get numberOfDuplicates(){return this.document.fields.find((e=>"NumberOfDuplicates"===e.type.name))}get organDonor(){return this.document.fields.find((e=>"OrganDonor"===e.type.name))}get organDonorIndicator(){return this.document.fields.find((e=>"OrganDonorIndicator"===e.type.name))}get permitExpirationDate(){return this.document.fields.find((e=>"PermitExpirationDate"===e.type.name))}get permitIdentifier(){return this.document.fields.find((e=>"PermitIdentifier"===e.type.name))}get physicalDescriptionEyeColor(){return this.document.fields.find((e=>"PhysicalDescriptionEyeColor"===e.type.name))}get physicalDescriptionHeight(){return this.document.fields.find((e=>"PhysicalDescriptionHeight"===e.type.name))}get physicalDescriptionSex(){return this.document.fields.find((e=>"PhysicalDescriptionSex"===e.type.name))}get physicalDescriptionWeightRange(){return this.document.fields.find((e=>"PhysicalDescriptionWeightRange"===e.type.name))}get placeOfBirth(){return this.document.fields.find((e=>"PlaceOfBirth"===e.type.name))}get raceEthnicity(){return this.document.fields.find((e=>"RaceEthnicity"===e.type.name))}get socialSecurityNumber(){return this.document.fields.find((e=>"SocialSecurityNumber"===e.type.name))}get standardEndorsementCode(){return this.document.fields.find((e=>"StandardEndorsementCode"===e.type.name))}get standardRestrictionCode(){return this.document.fields.find((e=>"StandardRestrictionCode"===e.type.name))}get standardVehicleClassification(){return this.document.fields.find((e=>"StandardVehicleClassification"===e.type.name))}get under18Until(){return this.document.fields.find((e=>"Under18Until"===e.type.name))}get under19Until(){return this.document.fields.find((e=>"Under19Until"===e.type.name))}get under21Until(){return this.document.fields.find((e=>"Under21Until"===e.type.name))}get uniqueCustomerIdentifier(){return this.document.fields.find((e=>"UniqueCustomerIdentifier"===e.type.name))}get veteranIndicator(){return this.document.fields.find((e=>"VeteranIndicator"===e.type.name))}get weightKilograms(){return this.document.fields.find((e=>"WeightKilograms"===e.type.name))}get weightPounds(){return this.document.fields.find((e=>"WeightPounds"===e.type.name))}}c.ADDRESS_CITY_FIELD_NAME="AddressCity",c.ADDRESS_CITY_FIELD_NAME_NORMALIZED="AAMVA.DLID.AddressCity",c.ADDRESS_JURISDICTION_CODE_FIELD_NAME="AddressJurisdictionCode",c.ADDRESS_JURISDICTION_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.AddressJurisdictionCode",c.ADDRESS_POSTAL_CODE_FIELD_NAME="AddressPostalCode",c.ADDRESS_POSTAL_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.AddressPostalCode",c.ADDRESS_STREET_1_FIELD_NAME="AddressStreet1",c.ADDRESS_STREET_1_FIELD_NAME_NORMALIZED="AAMVA.DLID.AddressStreet1",c.ADDRESS_STREET_2_FIELD_NAME="AddressStreet2",c.ADDRESS_STREET_2_FIELD_NAME_NORMALIZED="AAMVA.DLID.AddressStreet2",c.ADULT_INFORMATION_FIELD_NAME="AdultInformation",c.ADULT_INFORMATION_FIELD_NAME_NORMALIZED="AAMVA.DLID.AdultInformation",c.ALIAS_FAMILY_NAME_FIELD_NAME="AliasFamilyName",c.ALIAS_FAMILY_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.AliasFamilyName",c.ALIAS_GIVEN_NAME_FIELD_NAME="AliasGivenName",c.ALIAS_GIVEN_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.AliasGivenName",c.ALIAS_MIDDLE_NAME_FIELD_NAME="AliasMiddleName",c.ALIAS_MIDDLE_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.AliasMiddleName",c.ALIAS_PREFIX_NAME_FIELD_NAME="AliasPrefixName",c.ALIAS_PREFIX_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.AliasPrefixName",c.ALIAS_SUFFIX_NAME_FIELD_NAME="AliasSuffixName",c.ALIAS_SUFFIX_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.AliasSuffixName",c.CARD_REVISION_DATE_FIELD_NAME="CardRevisionDate",c.CARD_REVISION_DATE_FIELD_NAME_NORMALIZED="AAMVA.DLID.CardRevisionDate",c.COMPLIANCE_TYPE_FIELD_NAME="ComplianceType",c.COMPLIANCE_TYPE_FIELD_NAME_NORMALIZED="AAMVA.DLID.ComplianceType",c.COUNTRY_IDENTIFICATION_FIELD_NAME="CountryIdentification",c.COUNTRY_IDENTIFICATION_FIELD_NAME_NORMALIZED="AAMVA.DLID.CountryIdentification",c.CUSTOMER_FAMILY_NAME_FIELD_NAME="CustomerFamilyName",c.CUSTOMER_FAMILY_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.CustomerFamilyName",c.CUSTOMER_FIRST_NAME_FIELD_NAME="CustomerFirstName",c.CUSTOMER_FIRST_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.CustomerFirstName",c.CUSTOMER_GIVEN_NAMES_FIELD_NAME="CustomerGivenNames",c.CUSTOMER_GIVEN_NAMES_FIELD_NAME_NORMALIZED="AAMVA.DLID.CustomerGivenNames",c.CUSTOMER_ID_NUMBER_FIELD_NAME="CustomerIdNumber",c.CUSTOMER_ID_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.DLID.CustomerIdNumber",c.CUSTOMER_MIDDLE_NAME_FIELD_NAME="CustomerMiddleName",c.CUSTOMER_MIDDLE_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.CustomerMiddleName",c.DATE_OF_BIRTH_FIELD_NAME="DateOfBirth",c.DATE_OF_BIRTH_FIELD_NAME_NORMALIZED="AAMVA.DLID.DateOfBirth",c.DOCUMENT_DISCRIMINATOR_FIELD_NAME="DocumentDiscriminator",c.DOCUMENT_DISCRIMINATOR_FIELD_NAME_NORMALIZED="AAMVA.DLID.DocumentDiscriminator",c.DOCUMENT_EXPIRATION_DATE_FIELD_NAME="DocumentExpirationDate",c.DOCUMENT_EXPIRATION_DATE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DocumentExpirationDate",c.DOCUMENT_ISSUE_DATE_FIELD_NAME="DocumentIssueDate",c.DOCUMENT_ISSUE_DATE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DocumentIssueDate",c.DRIVER_ALIAS_DATE_OF_BIRTH_FIELD_FIELD_NAME="DriverAliasDateOfBirthField",c.DRIVER_ALIAS_DATE_OF_BIRTH_FIELD_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverAliasDateOfBirthField",c.DRIVER_ALIAS_FIRST_NAME_FIELD_NAME="DriverAliasFirstName",c.DRIVER_ALIAS_FIRST_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverAliasFirstName",c.DRIVER_ALIAS_LAST_NAME_FIELD_NAME="DriverAliasLastName",c.DRIVER_ALIAS_LAST_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverAliasLastName",c.DRIVER_ALIAS_SOCIAL_SECURITY_NUMBER_FIELD_NAME="DriverAliasSocialSecurityNumber",c.DRIVER_ALIAS_SOCIAL_SECURITY_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverAliasSocialSecurityNumber",c.DRIVER_LAST_NAME_FIELD_NAME="DriverLastName",c.DRIVER_LAST_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverLastName",c.DRIVER_LICENSE_CLASSIFICATION_CODE_FIELD_NAME="DriverLicenseClassificationCode",c.DRIVER_LICENSE_CLASSIFICATION_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverLicenseClassificationCode",c.DRIVER_LICENSE_ENDORSEMENTS_CODE_FIELD_NAME="DriverLicenseEndorsementsCode",c.DRIVER_LICENSE_ENDORSEMENTS_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverLicenseEndorsementsCode",c.DRIVER_LICENSE_NAME_FIELD_NAME="DriverLicenseName",c.DRIVER_LICENSE_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverLicenseName",c.DRIVER_LICENSE_RESTRICTION_CODE_FIELD_NAME="DriverLicenseRestrictionCode",c.DRIVER_LICENSE_RESTRICTION_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverLicenseRestrictionCode",c.DRIVER_NAME_PREFIX_FIELD_NAME="DriverNamePrefix",c.DRIVER_NAME_PREFIX_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverNamePrefix",c.DRIVER_NAME_SUFFIX_FIELD_NAME="DriverNameSuffix",c.DRIVER_NAME_SUFFIX_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverNameSuffix",c.DRIVER_PERMIT_CLASSIFICATION_CODE_FIELD_NAME="DriverPermitClassificationCode",c.DRIVER_PERMIT_CLASSIFICATION_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverPermitClassificationCode",c.DRIVER_PERMIT_ENDORSEMENT_CODE_FIELD_NAME="DriverPermitEndorsementCode",c.DRIVER_PERMIT_ENDORSEMENT_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverPermitEndorsementCode",c.DRIVER_PERMIT_ISSUE_DATE_FIELD_NAME="DriverPermitIssueDate",c.DRIVER_PERMIT_ISSUE_DATE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverPermitIssueDate",c.DRIVER_PERMIT_RESTRICTION_CODE_FIELD_NAME="DriverPermitRestrictionCode",c.DRIVER_PERMIT_RESTRICTION_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverPermitRestrictionCode",c.DRIVER_RESIDENCE_CITY_FIELD_NAME="DriverResidenceCity",c.DRIVER_RESIDENCE_CITY_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverResidenceCity",c.DRIVER_RESIDENCE_JURISDICTION_CODE_FIELD_NAME="DriverResidenceJurisdictionCode",c.DRIVER_RESIDENCE_JURISDICTION_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverResidenceJurisdictionCode",c.DRIVER_RESIDENCE_POSTAL_CODE_FIELD_NAME="DriverResidencePostalCode",c.DRIVER_RESIDENCE_POSTAL_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverResidencePostalCode",c.DRIVER_RESIDENCE_STREET_ADDRESS_1_FIELD_NAME="DriverResidenceStreetAddress1",c.DRIVER_RESIDENCE_STREET_ADDRESS_1_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverResidenceStreetAddress1",c.DRIVER_RESIDENCE_STREET_ADDRESS_2_FIELD_NAME="DriverResidenceStreetAddress2",c.DRIVER_RESIDENCE_STREET_ADDRESS_2_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverResidenceStreetAddress2",c.FAMILY_NAME_TRUNCATION_FIELD_NAME="FamilyNameTruncation",c.FAMILY_NAME_TRUNCATION_FIELD_NAME_NORMALIZED="AAMVA.DLID.FamilyNameTruncation",c.FEDERAL_COMMERCIAL_VEHICLE_CODES_FIELD_NAME="FederalCommercialVehicleCodes",c.FEDERAL_COMMERCIAL_VEHICLE_CODES_FIELD_NAME_NORMALIZED="AAMVA.DLID.FederalCommercialVehicleCodes",c.FIRST_NAME_TRUNCATION_FIELD_NAME="FirstNameTruncation",c.FIRST_NAME_TRUNCATION_FIELD_NAME_NORMALIZED="AAMVA.DLID.FirstNameTruncation",c.HAZMAT_ENDORSEMENT_EXPIRATION_DATE_FIELD_NAME="HAZMATEndorsementExpirationDate",c.HAZMAT_ENDORSEMENT_EXPIRATION_DATE_FIELD_NAME_NORMALIZED="AAMVA.DLID.HAZMATEndorsementExpirationDate",c.HAIR_COLOR_FIELD_NAME="HairColor",c.HAIR_COLOR_FIELD_NAME_NORMALIZED="AAMVA.DLID.HairColor",c.HEIGHT_FIELD_NAME="Height",c.HEIGHT_FIELD_NAME_NORMALIZED="AAMVA.DLID.Height",c.INVENTORY_CONTROL_NUMBER_FIELD_NAME="InventoryControlNumber",c.INVENTORY_CONTROL_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.DLID.InventoryControlNumber",c.ISSUE_TIME_STAMP_FIELD_NAME="IssueTimeStamp",c.ISSUE_TIME_STAMP_FIELD_NAME_NORMALIZED="AAMVA.DLID.IssueTimeStamp",c.JURISDICTION_SPECIFIC_ENDORSEMENT_CODE_DESCRIPTION_FIELD_NAME="JurisdictionSpecificEndorsementCodeDescription",c.JURISDICTION_SPECIFIC_ENDORSEMENT_CODE_DESCRIPTION_FIELD_NAME_NORMALIZED="AAMVA.DLID.JurisdictionSpecificEndorsementCodeDescription",c.JURISDICTION_SPECIFIC_ENDORSEMENT_CODES_FIELD_NAME="JurisdictionSpecificEndorsementCodes",c.JURISDICTION_SPECIFIC_ENDORSEMENT_CODES_FIELD_NAME_NORMALIZED="AAMVA.DLID.JurisdictionSpecificEndorsementCodes",c.JURISDICTION_SPECIFIC_RESTRICTION_CODE_DESCRIPTION_FIELD_NAME="JurisdictionSpecificRestrictionCodeDescription",c.JURISDICTION_SPECIFIC_RESTRICTION_CODE_DESCRIPTION_FIELD_NAME_NORMALIZED="AAMVA.DLID.JurisdictionSpecificRestrictionCodeDescription",c.JURISDICTION_SPECIFIC_RESTRICTION_CODES_FIELD_NAME="JurisdictionSpecificRestrictionCodes",c.JURISDICTION_SPECIFIC_RESTRICTION_CODES_FIELD_NAME_NORMALIZED="AAMVA.DLID.JurisdictionSpecificRestrictionCodes",c.JURISDICTION_SPECIFIC_VEHICLE_CLASS_FIELD_NAME="JurisdictionSpecificVehicleClass",c.JURISDICTION_SPECIFIC_VEHICLE_CLASS_FIELD_NAME_NORMALIZED="AAMVA.DLID.JurisdictionSpecificVehicleClass",c.JURISDICTION_SPECIFIC_VEHICLE_CLASSIFICATION_DESCRIPTION_FIELD_NAME="JurisdictionSpecificVehicleClassificationDescription",c.JURISDICTION_SPECIFIC_VEHICLE_CLASSIFICATION_DESCRIPTION_FIELD_NAME_NORMALIZED="AAMVA.DLID.JurisdictionSpecificVehicleClassificationDescription",c.LIMITED_DURATION_DOCUMENT_INDICATOR_FIELD_NAME="LimitedDurationDocumentIndicator",c.LIMITED_DURATION_DOCUMENT_INDICATOR_FIELD_NAME_NORMALIZED="AAMVA.DLID.LimitedDurationDocumentIndicator",c.MIDDLE_NAME_TRUNCATION_FIELD_NAME="MiddleNameTruncation",c.MIDDLE_NAME_TRUNCATION_FIELD_NAME_NORMALIZED="AAMVA.DLID.MiddleNameTruncation",c.NAME_SUFFIX_FIELD_NAME="NameSuffix",c.NAME_SUFFIX_FIELD_NAME_NORMALIZED="AAMVA.DLID.NameSuffix",c.NON_RESIDENT_INDICATOR_FIELD_NAME="NonResidentIndicator",c.NON_RESIDENT_INDICATOR_FIELD_NAME_NORMALIZED="AAMVA.DLID.NonResidentIndicator",c.NUMBER_OF_DUPLICATES_FIELD_NAME="NumberOfDuplicates",c.NUMBER_OF_DUPLICATES_FIELD_NAME_NORMALIZED="AAMVA.DLID.NumberOfDuplicates",c.ORGAN_DONOR_FIELD_NAME="OrganDonor",c.ORGAN_DONOR_FIELD_NAME_NORMALIZED="AAMVA.DLID.OrganDonor",c.ORGAN_DONOR_INDICATOR_FIELD_NAME="OrganDonorIndicator",c.ORGAN_DONOR_INDICATOR_FIELD_NAME_NORMALIZED="AAMVA.DLID.OrganDonorIndicator",c.PERMIT_EXPIRATION_DATE_FIELD_NAME="PermitExpirationDate",c.PERMIT_EXPIRATION_DATE_FIELD_NAME_NORMALIZED="AAMVA.DLID.PermitExpirationDate",c.PERMIT_IDENTIFIER_FIELD_NAME="PermitIdentifier",c.PERMIT_IDENTIFIER_FIELD_NAME_NORMALIZED="AAMVA.DLID.PermitIdentifier",c.PHYSICAL_DESCRIPTION_EYE_COLOR_FIELD_NAME="PhysicalDescriptionEyeColor",c.PHYSICAL_DESCRIPTION_EYE_COLOR_FIELD_NAME_NORMALIZED="AAMVA.DLID.PhysicalDescriptionEyeColor",c.PHYSICAL_DESCRIPTION_HEIGHT_FIELD_NAME="PhysicalDescriptionHeight",c.PHYSICAL_DESCRIPTION_HEIGHT_FIELD_NAME_NORMALIZED="AAMVA.DLID.PhysicalDescriptionHeight",c.PHYSICAL_DESCRIPTION_SEX_FIELD_NAME="PhysicalDescriptionSex",c.PHYSICAL_DESCRIPTION_SEX_FIELD_NAME_NORMALIZED="AAMVA.DLID.PhysicalDescriptionSex",c.PHYSICAL_DESCRIPTION_WEIGHT_RANGE_FIELD_NAME="PhysicalDescriptionWeightRange",c.PHYSICAL_DESCRIPTION_WEIGHT_RANGE_FIELD_NAME_NORMALIZED="AAMVA.DLID.PhysicalDescriptionWeightRange",c.PLACE_OF_BIRTH_FIELD_NAME="PlaceOfBirth",c.PLACE_OF_BIRTH_FIELD_NAME_NORMALIZED="AAMVA.DLID.PlaceOfBirth",c.RACE_ETHNICITY_FIELD_NAME="RaceEthnicity",c.RACE_ETHNICITY_FIELD_NAME_NORMALIZED="AAMVA.DLID.RaceEthnicity",c.SOCIAL_SECURITY_NUMBER_FIELD_NAME="SocialSecurityNumber",c.SOCIAL_SECURITY_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.DLID.SocialSecurityNumber",c.STANDARD_ENDORSEMENT_CODE_FIELD_NAME="StandardEndorsementCode",c.STANDARD_ENDORSEMENT_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.StandardEndorsementCode",c.STANDARD_RESTRICTION_CODE_FIELD_NAME="StandardRestrictionCode",c.STANDARD_RESTRICTION_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.StandardRestrictionCode",c.STANDARD_VEHICLE_CLASSIFICATION_FIELD_NAME="StandardVehicleClassification",c.STANDARD_VEHICLE_CLASSIFICATION_FIELD_NAME_NORMALIZED="AAMVA.DLID.StandardVehicleClassification",c.UNDER_18_UNTIL_FIELD_NAME="Under18Until",c.UNDER_18_UNTIL_FIELD_NAME_NORMALIZED="AAMVA.DLID.Under18Until",c.UNDER_19_UNTIL_FIELD_NAME="Under19Until",c.UNDER_19_UNTIL_FIELD_NAME_NORMALIZED="AAMVA.DLID.Under19Until",c.UNDER_21_UNTIL_FIELD_NAME="Under21Until",c.UNDER_21_UNTIL_FIELD_NAME_NORMALIZED="AAMVA.DLID.Under21Until",c.UNIQUE_CUSTOMER_IDENTIFIER_FIELD_NAME="UniqueCustomerIdentifier",c.UNIQUE_CUSTOMER_IDENTIFIER_FIELD_NAME_NORMALIZED="AAMVA.DLID.UniqueCustomerIdentifier",c.VETERAN_INDICATOR_FIELD_NAME="VeteranIndicator",c.VETERAN_INDICATOR_FIELD_NAME_NORMALIZED="AAMVA.DLID.VeteranIndicator",c.WEIGHT_KILOGRAMS_FIELD_NAME="WeightKilograms",c.WEIGHT_KILOGRAMS_FIELD_NAME_NORMALIZED="AAMVA.DLID.WeightKilograms",c.WEIGHT_POUNDS_FIELD_NAME="WeightPounds",c.WEIGHT_POUNDS_FIELD_NAME_NORMALIZED="AAMVA.DLID.WeightPounds",e.DLID=c;class d extends c{constructor(e){super(e)}requiredDocumentType(){return e.DriverLicense.DOCUMENT_TYPE}}d.DOCUMENT_TYPE="DriverLicense",e.DriverLicense=d;class l extends c{constructor(e){super(e)}requiredDocumentType(){return e.IDCard.DOCUMENT_TYPE}}l.DOCUMENT_TYPE="IDCard",e.IDCard=l;class u extends c{constructor(e){super(e)}requiredDocumentType(){return e.EnhancedDriverLicense.DOCUMENT_TYPE}}u.DOCUMENT_TYPE="EnhancedDriverLicense",e.EnhancedDriverLicense=u;class m{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.RawDocument.DOCUMENT_TYPE}}m.DOCUMENT_TYPE="RawDocument",e.RawDocument=m}(AAMVA||(AAMVA={}));class HIBC{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return HIBC.DOCUMENT_TYPE}get dateOfManufacture(){return this.document.fields.find((e=>"DateOfManufacture"===e.type.name))}get expiryDateDay(){return this.document.fields.find((e=>"ExpiryDateDay"===e.type.name))}get expiryDateHour(){return this.document.fields.find((e=>"ExpiryDateHour"===e.type.name))}get expiryDateJulianDay(){return this.document.fields.find((e=>"ExpiryDateJulianDay"===e.type.name))}get expiryDateMonth(){return this.document.fields.find((e=>"ExpiryDateMonth"===e.type.name))}get expiryDateYear(){return this.document.fields.find((e=>"ExpiryDateYear"===e.type.name))}get hasPrimaryData(){return this.document.fields.find((e=>"HasPrimaryData"===e.type.name))}get hasSecondaryData(){return this.document.fields.find((e=>"HasSecondaryData"===e.type.name))}get labelerIdentificationCode(){return this.document.fields.find((e=>"LabelerIdentificationCode"===e.type.name))}get labelersProductOrCatalogNumber(){return this.document.fields.find((e=>"LabelersProductOrCatalogNumber"===e.type.name))}get linkCharacter(){return this.document.fields.find((e=>"LinkCharacter"===e.type.name))}get lotNumber(){return this.document.fields.find((e=>"LotNumber"===e.type.name))}get quantity(){return this.document.fields.find((e=>"Quantity"===e.type.name))}get serialNumber(){return this.document.fields.find((e=>"SerialNumber"===e.type.name))}get unitOfMeasureID(){return this.document.fields.find((e=>"UnitOfMeasureID"===e.type.name))}}HIBC.DOCUMENT_TYPE="HIBC",HIBC.DATE_OF_MANUFACTURE_FIELD_NAME="DateOfManufacture",HIBC.DATE_OF_MANUFACTURE_FIELD_NAME_NORMALIZED="HIBC.DateOfManufacture",HIBC.EXPIRY_DATE_DAY_FIELD_NAME="ExpiryDateDay",HIBC.EXPIRY_DATE_DAY_FIELD_NAME_NORMALIZED="HIBC.ExpiryDateDay",HIBC.EXPIRY_DATE_HOUR_FIELD_NAME="ExpiryDateHour",HIBC.EXPIRY_DATE_HOUR_FIELD_NAME_NORMALIZED="HIBC.ExpiryDateHour",HIBC.EXPIRY_DATE_JULIAN_DAY_FIELD_NAME="ExpiryDateJulianDay",HIBC.EXPIRY_DATE_JULIAN_DAY_FIELD_NAME_NORMALIZED="HIBC.ExpiryDateJulianDay",HIBC.EXPIRY_DATE_MONTH_FIELD_NAME="ExpiryDateMonth",HIBC.EXPIRY_DATE_MONTH_FIELD_NAME_NORMALIZED="HIBC.ExpiryDateMonth",HIBC.EXPIRY_DATE_YEAR_FIELD_NAME="ExpiryDateYear",HIBC.EXPIRY_DATE_YEAR_FIELD_NAME_NORMALIZED="HIBC.ExpiryDateYear",HIBC.HAS_PRIMARY_DATA_FIELD_NAME="HasPrimaryData",HIBC.HAS_PRIMARY_DATA_FIELD_NAME_NORMALIZED="HIBC.HasPrimaryData",HIBC.HAS_SECONDARY_DATA_FIELD_NAME="HasSecondaryData",HIBC.HAS_SECONDARY_DATA_FIELD_NAME_NORMALIZED="HIBC.HasSecondaryData",HIBC.LABELER_IDENTIFICATION_CODE_FIELD_NAME="LabelerIdentificationCode",HIBC.LABELER_IDENTIFICATION_CODE_FIELD_NAME_NORMALIZED="HIBC.LabelerIdentificationCode",HIBC.LABELERS_PRODUCT_OR_CATALOG_NUMBER_FIELD_NAME="LabelersProductOrCatalogNumber",HIBC.LABELERS_PRODUCT_OR_CATALOG_NUMBER_FIELD_NAME_NORMALIZED="HIBC.LabelersProductOrCatalogNumber",HIBC.LINK_CHARACTER_FIELD_NAME="LinkCharacter",HIBC.LINK_CHARACTER_FIELD_NAME_NORMALIZED="HIBC.LinkCharacter",HIBC.LOT_NUMBER_FIELD_NAME="LotNumber",HIBC.LOT_NUMBER_FIELD_NAME_NORMALIZED="HIBC.LotNumber",HIBC.QUANTITY_FIELD_NAME="Quantity",HIBC.QUANTITY_FIELD_NAME_NORMALIZED="HIBC.Quantity",HIBC.SERIAL_NUMBER_FIELD_NAME="SerialNumber",HIBC.SERIAL_NUMBER_FIELD_NAME_NORMALIZED="HIBC.SerialNumber",HIBC.UNIT_OF_MEASURE_ID_FIELD_NAME="UnitOfMeasureID",HIBC.UNIT_OF_MEASURE_ID_FIELD_NAME_NORMALIZED="HIBC.UnitOfMeasureID";class Check{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}get fontType(){return this.document.fields.find((e=>"FontType"===e.type.name))}get rawString(){return this.document.fields.find((e=>"RawString"===e.type.name))}}Check.FONT_TYPE_FIELD_NAME="FontType",Check.FONT_TYPE_FIELD_NAME_NORMALIZED="Check.FontType",Check.RAW_STRING_FIELD_NAME="RawString",Check.RAW_STRING_FIELD_NAME_NORMALIZED="Check.RawString";class USACheck extends Check{constructor(e){super(e)}requiredDocumentType(){return USACheck.DOCUMENT_TYPE}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get auxiliaryOnUs(){return this.document.fields.find((e=>"AuxiliaryOnUs"===e.type.name))}get checkNumber(){return this.document.fields.find((e=>"CheckNumber"===e.type.name))}get transitNumber(){return this.document.fields.find((e=>"TransitNumber"===e.type.name))}}USACheck.DOCUMENT_TYPE="USACheck",USACheck.ACCOUNT_NUMBER_FIELD_NAME="AccountNumber",USACheck.ACCOUNT_NUMBER_FIELD_NAME_NORMALIZED="USACheck.AccountNumber",USACheck.AUXILIARY_ON_US_FIELD_NAME="AuxiliaryOnUs",USACheck.AUXILIARY_ON_US_FIELD_NAME_NORMALIZED="USACheck.AuxiliaryOnUs",USACheck.CHECK_NUMBER_FIELD_NAME="CheckNumber",USACheck.CHECK_NUMBER_FIELD_NAME_NORMALIZED="USACheck.CheckNumber",USACheck.TRANSIT_NUMBER_FIELD_NAME="TransitNumber",USACheck.TRANSIT_NUMBER_FIELD_NAME_NORMALIZED="USACheck.TransitNumber";class UAECheck extends Check{constructor(e){super(e)}requiredDocumentType(){return UAECheck.DOCUMENT_TYPE}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get chequeNumber(){return this.document.fields.find((e=>"ChequeNumber"===e.type.name))}get routingNumber(){return this.document.fields.find((e=>"RoutingNumber"===e.type.name))}}UAECheck.DOCUMENT_TYPE="UAECheck",UAECheck.ACCOUNT_NUMBER_FIELD_NAME="AccountNumber",UAECheck.ACCOUNT_NUMBER_FIELD_NAME_NORMALIZED="UAECheck.AccountNumber",UAECheck.CHEQUE_NUMBER_FIELD_NAME="ChequeNumber",UAECheck.CHEQUE_NUMBER_FIELD_NAME_NORMALIZED="UAECheck.ChequeNumber",UAECheck.ROUTING_NUMBER_FIELD_NAME="RoutingNumber",UAECheck.ROUTING_NUMBER_FIELD_NAME_NORMALIZED="UAECheck.RoutingNumber";class FRACheck extends Check{constructor(e){super(e)}requiredDocumentType(){return FRACheck.DOCUMENT_TYPE}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get chequeNumber(){return this.document.fields.find((e=>"ChequeNumber"===e.type.name))}get routingNumber(){return this.document.fields.find((e=>"RoutingNumber"===e.type.name))}}FRACheck.DOCUMENT_TYPE="FRACheck",FRACheck.ACCOUNT_NUMBER_FIELD_NAME="AccountNumber",FRACheck.ACCOUNT_NUMBER_FIELD_NAME_NORMALIZED="FRACheck.AccountNumber",FRACheck.CHEQUE_NUMBER_FIELD_NAME="ChequeNumber",FRACheck.CHEQUE_NUMBER_FIELD_NAME_NORMALIZED="FRACheck.ChequeNumber",FRACheck.ROUTING_NUMBER_FIELD_NAME="RoutingNumber",FRACheck.ROUTING_NUMBER_FIELD_NAME_NORMALIZED="FRACheck.RoutingNumber";class ISRCheck extends Check{constructor(e){super(e)}requiredDocumentType(){return ISRCheck.DOCUMENT_TYPE}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get bankNumber(){return this.document.fields.find((e=>"BankNumber"===e.type.name))}get branchNumber(){return this.document.fields.find((e=>"BranchNumber"===e.type.name))}get chequeNumber(){return this.document.fields.find((e=>"ChequeNumber"===e.type.name))}}ISRCheck.DOCUMENT_TYPE="ISRCheck",ISRCheck.ACCOUNT_NUMBER_FIELD_NAME="AccountNumber",ISRCheck.ACCOUNT_NUMBER_FIELD_NAME_NORMALIZED="ISRCheck.AccountNumber",ISRCheck.BANK_NUMBER_FIELD_NAME="BankNumber",ISRCheck.BANK_NUMBER_FIELD_NAME_NORMALIZED="ISRCheck.BankNumber",ISRCheck.BRANCH_NUMBER_FIELD_NAME="BranchNumber",ISRCheck.BRANCH_NUMBER_FIELD_NAME_NORMALIZED="ISRCheck.BranchNumber",ISRCheck.CHEQUE_NUMBER_FIELD_NAME="ChequeNumber",ISRCheck.CHEQUE_NUMBER_FIELD_NAME_NORMALIZED="ISRCheck.ChequeNumber";class KWTCheck extends Check{constructor(e){super(e)}requiredDocumentType(){return KWTCheck.DOCUMENT_TYPE}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get chequeNumber(){return this.document.fields.find((e=>"ChequeNumber"===e.type.name))}get sortCode(){return this.document.fields.find((e=>"SortCode"===e.type.name))}}KWTCheck.DOCUMENT_TYPE="KWTCheck",KWTCheck.ACCOUNT_NUMBER_FIELD_NAME="AccountNumber",KWTCheck.ACCOUNT_NUMBER_FIELD_NAME_NORMALIZED="KWTCheck.AccountNumber",KWTCheck.CHEQUE_NUMBER_FIELD_NAME="ChequeNumber",KWTCheck.CHEQUE_NUMBER_FIELD_NAME_NORMALIZED="KWTCheck.ChequeNumber",KWTCheck.SORT_CODE_FIELD_NAME="SortCode",KWTCheck.SORT_CODE_FIELD_NAME_NORMALIZED="KWTCheck.SortCode";class AUSCheck extends Check{constructor(e){super(e)}requiredDocumentType(){return AUSCheck.DOCUMENT_TYPE}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get auxDomestic(){return this.document.fields.find((e=>"AuxDomestic"===e.type.name))}get bsb(){return this.document.fields.find((e=>"BSB"===e.type.name))}get extraAuxDomestic(){return this.document.fields.find((e=>"ExtraAuxDomestic"===e.type.name))}get transactionCode(){return this.document.fields.find((e=>"TransactionCode"===e.type.name))}}AUSCheck.DOCUMENT_TYPE="AUSCheck",AUSCheck.ACCOUNT_NUMBER_FIELD_NAME="AccountNumber",AUSCheck.ACCOUNT_NUMBER_FIELD_NAME_NORMALIZED="AUSCheck.AccountNumber",AUSCheck.AUX_DOMESTIC_FIELD_NAME="AuxDomestic",AUSCheck.AUX_DOMESTIC_FIELD_NAME_NORMALIZED="AUSCheck.AuxDomestic",AUSCheck.BSB_FIELD_NAME="BSB",AUSCheck.BSB_FIELD_NAME_NORMALIZED="AUSCheck.BSB",AUSCheck.EXTRA_AUX_DOMESTIC_FIELD_NAME="ExtraAuxDomestic",AUSCheck.EXTRA_AUX_DOMESTIC_FIELD_NAME_NORMALIZED="AUSCheck.ExtraAuxDomestic",AUSCheck.TRANSACTION_CODE_FIELD_NAME="TransactionCode",AUSCheck.TRANSACTION_CODE_FIELD_NAME_NORMALIZED="AUSCheck.TransactionCode";class INDCheck extends Check{constructor(e){super(e)}requiredDocumentType(){return INDCheck.DOCUMENT_TYPE}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get serialNumber(){return this.document.fields.find((e=>"SerialNumber"===e.type.name))}get sortNumber(){return this.document.fields.find((e=>"SortNumber"===e.type.name))}get transactionCode(){return this.document.fields.find((e=>"TransactionCode"===e.type.name))}}INDCheck.DOCUMENT_TYPE="INDCheck",INDCheck.ACCOUNT_NUMBER_FIELD_NAME="AccountNumber",INDCheck.ACCOUNT_NUMBER_FIELD_NAME_NORMALIZED="INDCheck.AccountNumber",INDCheck.SERIAL_NUMBER_FIELD_NAME="SerialNumber",INDCheck.SERIAL_NUMBER_FIELD_NAME_NORMALIZED="INDCheck.SerialNumber",INDCheck.SORT_NUMBER_FIELD_NAME="SortNumber",INDCheck.SORT_NUMBER_FIELD_NAME_NORMALIZED="INDCheck.SortNumber",INDCheck.TRANSACTION_CODE_FIELD_NAME="TransactionCode",INDCheck.TRANSACTION_CODE_FIELD_NAME_NORMALIZED="INDCheck.TransactionCode";class CANCheck extends Check{constructor(e){super(e)}requiredDocumentType(){return CANCheck.DOCUMENT_TYPE}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get bankNumber(){return this.document.fields.find((e=>"BankNumber"===e.type.name))}get chequeNumber(){return this.document.fields.find((e=>"ChequeNumber"===e.type.name))}get designationNumber(){return this.document.fields.find((e=>"DesignationNumber"===e.type.name))}get transactionCode(){return this.document.fields.find((e=>"TransactionCode"===e.type.name))}get transitNumber(){return this.document.fields.find((e=>"TransitNumber"===e.type.name))}}CANCheck.DOCUMENT_TYPE="CANCheck",CANCheck.ACCOUNT_NUMBER_FIELD_NAME="AccountNumber",CANCheck.ACCOUNT_NUMBER_FIELD_NAME_NORMALIZED="CANCheck.AccountNumber",CANCheck.BANK_NUMBER_FIELD_NAME="BankNumber",CANCheck.BANK_NUMBER_FIELD_NAME_NORMALIZED="CANCheck.BankNumber",CANCheck.CHEQUE_NUMBER_FIELD_NAME="ChequeNumber",CANCheck.CHEQUE_NUMBER_FIELD_NAME_NORMALIZED="CANCheck.ChequeNumber",CANCheck.DESIGNATION_NUMBER_FIELD_NAME="DesignationNumber",CANCheck.DESIGNATION_NUMBER_FIELD_NAME_NORMALIZED="CANCheck.DesignationNumber",CANCheck.TRANSACTION_CODE_FIELD_NAME="TransactionCode",CANCheck.TRANSACTION_CODE_FIELD_NAME_NORMALIZED="CANCheck.TransactionCode",CANCheck.TRANSIT_NUMBER_FIELD_NAME="TransitNumber",CANCheck.TRANSIT_NUMBER_FIELD_NAME_NORMALIZED="CANCheck.TransitNumber";class UnknownCheck extends Check{constructor(e){super(e)}requiredDocumentType(){return UnknownCheck.DOCUMENT_TYPE}}UnknownCheck.DOCUMENT_TYPE="UnknownCheck";class CreditCard{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return CreditCard.DOCUMENT_TYPE}get cardNumber(){return this.document.fields.find((e=>"CardNumber"===e.type.name))}get cardholderName(){return this.document.fields.find((e=>"CardholderName"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}}CreditCard.DOCUMENT_TYPE="CreditCard",CreditCard.CARD_NUMBER_FIELD_NAME="CardNumber",CreditCard.CARD_NUMBER_FIELD_NAME_NORMALIZED="CreditCard.CardNumber",CreditCard.CARDHOLDER_NAME_FIELD_NAME="CardholderName",CreditCard.CARDHOLDER_NAME_FIELD_NAME_NORMALIZED="CreditCard.CardholderName",CreditCard.EXPIRY_DATE_FIELD_NAME="ExpiryDate",CreditCard.EXPIRY_DATE_FIELD_NAME_NORMALIZED="CreditCard.ExpiryDate";class Metadata{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Metadata.DOCUMENT_TYPE}get country(){return this.document.fields.find((e=>"Country"===e.type.name))}get documentSide(){return this.document.fields.find((e=>"DocumentSide"===e.type.name))}get printingFormat(){return this.document.fields.find((e=>"PrintingFormat"===e.type.name))}get tagss(){return this.document.fields.filter((e=>"Tags"===e.type.name))}}Metadata.DOCUMENT_TYPE="Metadata",Metadata.COUNTRY_FIELD_NAME="Country",Metadata.COUNTRY_FIELD_NAME_NORMALIZED="Metadata.Country",Metadata.DOCUMENT_SIDE_FIELD_NAME="DocumentSide",Metadata.DOCUMENT_SIDE_FIELD_NAME_NORMALIZED="Metadata.DocumentSide",Metadata.PRINTING_FORMAT_FIELD_NAME="PrintingFormat",Metadata.PRINTING_FORMAT_FIELD_NAME_NORMALIZED="Metadata.PrintingFormat",Metadata.TAGS_FIELD_NAME="Tags",Metadata.TAGS_FIELD_NAME_NORMALIZED="Metadata.Tags";class MRZ{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return MRZ.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get checkDigitBirthDate(){return this.document.fields.find((e=>"CheckDigitBirthDate"===e.type.name))}get checkDigitDocumentNumber(){return this.document.fields.find((e=>"CheckDigitDocumentNumber"===e.type.name))}get checkDigitExpiryDate(){return this.document.fields.find((e=>"CheckDigitExpiryDate"===e.type.name))}get checkDigitGeneral(){return this.document.fields.find((e=>"CheckDigitGeneral"===e.type.name))}get checkDigitPersonalNumber(){return this.document.fields.find((e=>"CheckDigitPersonalNumber"===e.type.name))}get dateOfIssuance(){return this.document.fields.find((e=>"DateOfIssuance"===e.type.name))}get documentNumber(){return this.document.fields.find((e=>"DocumentNumber"===e.type.name))}get documentType(){return this.document.fields.find((e=>"DocumentType"===e.type.name))}get documentTypeCode(){return this.document.fields.find((e=>"DocumentTypeCode"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get languageCode(){return this.document.fields.find((e=>"LanguageCode"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get officeOfIssuance(){return this.document.fields.find((e=>"OfficeOfIssuance"===e.type.name))}get optional1(){return this.document.fields.find((e=>"Optional1"===e.type.name))}get optional2(){return this.document.fields.find((e=>"Optional2"===e.type.name))}get pinCode(){return this.document.fields.find((e=>"PINCode"===e.type.name))}get personalNumber(){return this.document.fields.find((e=>"PersonalNumber"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get travelDocType(){return this.document.fields.find((e=>"TravelDocType"===e.type.name))}get travelDocTypeVariant(){return this.document.fields.find((e=>"TravelDocTypeVariant"===e.type.name))}get unknown(){return this.document.fields.find((e=>"Unknown"===e.type.name))}get versionNumber(){return this.document.fields.find((e=>"VersionNumber"===e.type.name))}get visaOptional(){return this.document.fields.find((e=>"VisaOptional"===e.type.name))}}MRZ.DOCUMENT_TYPE="MRZ",MRZ.BIRTH_DATE_FIELD_NAME="BirthDate",MRZ.BIRTH_DATE_FIELD_NAME_NORMALIZED="MRZ.BirthDate",MRZ.CHECK_DIGIT_BIRTH_DATE_FIELD_NAME="CheckDigitBirthDate",MRZ.CHECK_DIGIT_BIRTH_DATE_FIELD_NAME_NORMALIZED="MRZ.CheckDigitBirthDate",MRZ.CHECK_DIGIT_DOCUMENT_NUMBER_FIELD_NAME="CheckDigitDocumentNumber",MRZ.CHECK_DIGIT_DOCUMENT_NUMBER_FIELD_NAME_NORMALIZED="MRZ.CheckDigitDocumentNumber",MRZ.CHECK_DIGIT_EXPIRY_DATE_FIELD_NAME="CheckDigitExpiryDate",MRZ.CHECK_DIGIT_EXPIRY_DATE_FIELD_NAME_NORMALIZED="MRZ.CheckDigitExpiryDate",MRZ.CHECK_DIGIT_GENERAL_FIELD_NAME="CheckDigitGeneral",MRZ.CHECK_DIGIT_GENERAL_FIELD_NAME_NORMALIZED="MRZ.CheckDigitGeneral",MRZ.CHECK_DIGIT_PERSONAL_NUMBER_FIELD_NAME="CheckDigitPersonalNumber",MRZ.CHECK_DIGIT_PERSONAL_NUMBER_FIELD_NAME_NORMALIZED="MRZ.CheckDigitPersonalNumber",MRZ.DATE_OF_ISSUANCE_FIELD_NAME="DateOfIssuance",MRZ.DATE_OF_ISSUANCE_FIELD_NAME_NORMALIZED="MRZ.DateOfIssuance",MRZ.DOCUMENT_NUMBER_FIELD_NAME="DocumentNumber",MRZ.DOCUMENT_NUMBER_FIELD_NAME_NORMALIZED="MRZ.DocumentNumber",MRZ.DOCUMENT_TYPE_FIELD_NAME="DocumentType",MRZ.DOCUMENT_TYPE_FIELD_NAME_NORMALIZED="MRZ.DocumentType",MRZ.DOCUMENT_TYPE_CODE_FIELD_NAME="DocumentTypeCode",MRZ.DOCUMENT_TYPE_CODE_FIELD_NAME_NORMALIZED="MRZ.DocumentTypeCode",MRZ.EXPIRY_DATE_FIELD_NAME="ExpiryDate",MRZ.EXPIRY_DATE_FIELD_NAME_NORMALIZED="MRZ.ExpiryDate",MRZ.GENDER_FIELD_NAME="Gender",MRZ.GENDER_FIELD_NAME_NORMALIZED="MRZ.Gender",MRZ.GIVEN_NAMES_FIELD_NAME="GivenNames",MRZ.GIVEN_NAMES_FIELD_NAME_NORMALIZED="MRZ.GivenNames",MRZ.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",MRZ.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="MRZ.IssuingAuthority",MRZ.LANGUAGE_CODE_FIELD_NAME="LanguageCode",MRZ.LANGUAGE_CODE_FIELD_NAME_NORMALIZED="MRZ.LanguageCode",MRZ.NATIONALITY_FIELD_NAME="Nationality",MRZ.NATIONALITY_FIELD_NAME_NORMALIZED="MRZ.Nationality",MRZ.OFFICE_OF_ISSUANCE_FIELD_NAME="OfficeOfIssuance",MRZ.OFFICE_OF_ISSUANCE_FIELD_NAME_NORMALIZED="MRZ.OfficeOfIssuance",MRZ.OPTIONAL_1_FIELD_NAME="Optional1",MRZ.OPTIONAL_1_FIELD_NAME_NORMALIZED="MRZ.Optional1",MRZ.OPTIONAL_2_FIELD_NAME="Optional2",MRZ.OPTIONAL_2_FIELD_NAME_NORMALIZED="MRZ.Optional2",MRZ.PIN_CODE_FIELD_NAME="PINCode",MRZ.PIN_CODE_FIELD_NAME_NORMALIZED="MRZ.PINCode",MRZ.PERSONAL_NUMBER_FIELD_NAME="PersonalNumber",MRZ.PERSONAL_NUMBER_FIELD_NAME_NORMALIZED="MRZ.PersonalNumber",MRZ.SURNAME_FIELD_NAME="Surname",MRZ.SURNAME_FIELD_NAME_NORMALIZED="MRZ.Surname",MRZ.TRAVEL_DOC_TYPE_FIELD_NAME="TravelDocType",MRZ.TRAVEL_DOC_TYPE_FIELD_NAME_NORMALIZED="MRZ.TravelDocType",MRZ.TRAVEL_DOC_TYPE_VARIANT_FIELD_NAME="TravelDocTypeVariant",MRZ.TRAVEL_DOC_TYPE_VARIANT_FIELD_NAME_NORMALIZED="MRZ.TravelDocTypeVariant",MRZ.UNKNOWN_FIELD_NAME="Unknown",MRZ.UNKNOWN_FIELD_NAME_NORMALIZED="MRZ.Unknown",MRZ.VERSION_NUMBER_FIELD_NAME="VersionNumber",MRZ.VERSION_NUMBER_FIELD_NAME_NORMALIZED="MRZ.VersionNumber",MRZ.VISA_OPTIONAL_FIELD_NAME="VisaOptional",MRZ.VISA_OPTIONAL_FIELD_NAME_NORMALIZED="MRZ.VisaOptional";class ParsedDeAddress{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return ParsedDeAddress.DOCUMENT_TYPE}get district(){return this.document.fields.find((e=>"District"===e.type.name))}get districtAddition(){return this.document.fields.find((e=>"DistrictAddition"===e.type.name))}get houseNumber(){return this.document.fields.find((e=>"HouseNumber"===e.type.name))}get postalCode(){return this.document.fields.find((e=>"PostalCode"===e.type.name))}get streetName(){return this.document.fields.find((e=>"StreetName"===e.type.name))}}ParsedDeAddress.DOCUMENT_TYPE="ParsedDeAddress",ParsedDeAddress.DISTRICT_FIELD_NAME="District",ParsedDeAddress.DISTRICT_FIELD_NAME_NORMALIZED="ParsedDeAddress.District",ParsedDeAddress.DISTRICT_ADDITION_FIELD_NAME="DistrictAddition",ParsedDeAddress.DISTRICT_ADDITION_FIELD_NAME_NORMALIZED="ParsedDeAddress.DistrictAddition",ParsedDeAddress.HOUSE_NUMBER_FIELD_NAME="HouseNumber",ParsedDeAddress.HOUSE_NUMBER_FIELD_NAME_NORMALIZED="ParsedDeAddress.HouseNumber",ParsedDeAddress.POSTAL_CODE_FIELD_NAME="PostalCode",ParsedDeAddress.POSTAL_CODE_FIELD_NAME_NORMALIZED="ParsedDeAddress.PostalCode",ParsedDeAddress.STREET_NAME_FIELD_NAME="StreetName",ParsedDeAddress.STREET_NAME_FIELD_NAME_NORMALIZED="ParsedDeAddress.StreetName";class DeIdCardFront{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return DeIdCardFront.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get birthplace(){return this.document.fields.find((e=>"Birthplace"===e.type.name))}get cardAccessNumber(){return this.document.fields.find((e=>"CardAccessNumber"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get maidenName(){return this.document.fields.find((e=>"MaidenName"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get series(){return this.document.fields.find((e=>"Series"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new Metadata(e)}}DeIdCardFront.DOCUMENT_TYPE="DeIdCardFront",DeIdCardFront.BIRTH_DATE_FIELD_NAME="BirthDate",DeIdCardFront.BIRTH_DATE_FIELD_NAME_NORMALIZED="DeIdCardFront.BirthDate",DeIdCardFront.BIRTHPLACE_FIELD_NAME="Birthplace",DeIdCardFront.BIRTHPLACE_FIELD_NAME_NORMALIZED="DeIdCardFront.Birthplace",DeIdCardFront.CARD_ACCESS_NUMBER_FIELD_NAME="CardAccessNumber",DeIdCardFront.CARD_ACCESS_NUMBER_FIELD_NAME_NORMALIZED="DeIdCardFront.CardAccessNumber",DeIdCardFront.EXPIRY_DATE_FIELD_NAME="ExpiryDate",DeIdCardFront.EXPIRY_DATE_FIELD_NAME_NORMALIZED="DeIdCardFront.ExpiryDate",DeIdCardFront.GIVEN_NAMES_FIELD_NAME="GivenNames",DeIdCardFront.GIVEN_NAMES_FIELD_NAME_NORMALIZED="DeIdCardFront.GivenNames",DeIdCardFront.ID_FIELD_NAME="ID",DeIdCardFront.ID_FIELD_NAME_NORMALIZED="DeIdCardFront.ID",DeIdCardFront.MAIDEN_NAME_FIELD_NAME="MaidenName",DeIdCardFront.MAIDEN_NAME_FIELD_NAME_NORMALIZED="DeIdCardFront.MaidenName",DeIdCardFront.NATIONALITY_FIELD_NAME="Nationality",DeIdCardFront.NATIONALITY_FIELD_NAME_NORMALIZED="DeIdCardFront.Nationality",DeIdCardFront.PHOTO_FIELD_NAME="Photo",DeIdCardFront.PHOTO_FIELD_NAME_NORMALIZED="DeIdCardFront.Photo",DeIdCardFront.SERIES_FIELD_NAME="Series",DeIdCardFront.SERIES_FIELD_NAME_NORMALIZED="DeIdCardFront.Series",DeIdCardFront.SIGNATURE_FIELD_NAME="Signature",DeIdCardFront.SIGNATURE_FIELD_NAME_NORMALIZED="DeIdCardFront.Signature",DeIdCardFront.SURNAME_FIELD_NAME="Surname",DeIdCardFront.SURNAME_FIELD_NAME_NORMALIZED="DeIdCardFront.Surname";class DeIdCardBack{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return DeIdCardBack.DOCUMENT_TYPE}get address(){return this.document.fields.find((e=>"Address"===e.type.name))}get eyeColor(){return this.document.fields.find((e=>"EyeColor"===e.type.name))}get height(){return this.document.fields.find((e=>"Height"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get pseudonym(){return this.document.fields.find((e=>"Pseudonym"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get series(){return this.document.fields.find((e=>"Series"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new MRZ(e)}get parsedDeAddress(){const e=this.document.children.find((e=>"ParsedDeAddress"===e.type.name));return new ParsedDeAddress(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new Metadata(e)}}DeIdCardBack.DOCUMENT_TYPE="DeIdCardBack",DeIdCardBack.ADDRESS_FIELD_NAME="Address",DeIdCardBack.ADDRESS_FIELD_NAME_NORMALIZED="DeIdCardBack.Address",DeIdCardBack.EYE_COLOR_FIELD_NAME="EyeColor",DeIdCardBack.EYE_COLOR_FIELD_NAME_NORMALIZED="DeIdCardBack.EyeColor",DeIdCardBack.HEIGHT_FIELD_NAME="Height",DeIdCardBack.HEIGHT_FIELD_NAME_NORMALIZED="DeIdCardBack.Height",DeIdCardBack.ISSUE_DATE_FIELD_NAME="IssueDate",DeIdCardBack.ISSUE_DATE_FIELD_NAME_NORMALIZED="DeIdCardBack.IssueDate",DeIdCardBack.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",DeIdCardBack.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="DeIdCardBack.IssuingAuthority",DeIdCardBack.PSEUDONYM_FIELD_NAME="Pseudonym",DeIdCardBack.PSEUDONYM_FIELD_NAME_NORMALIZED="DeIdCardBack.Pseudonym",DeIdCardBack.RAW_MRZ_FIELD_NAME="RawMRZ",DeIdCardBack.RAW_MRZ_FIELD_NAME_NORMALIZED="DeIdCardBack.RawMRZ",DeIdCardBack.SERIES_FIELD_NAME="Series",DeIdCardBack.SERIES_FIELD_NAME_NORMALIZED="DeIdCardBack.Series";class DePassport{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return DePassport.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get birthplace(){return this.document.fields.find((e=>"Birthplace"===e.type.name))}get countryCode(){return this.document.fields.find((e=>"CountryCode"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get maidenName(){return this.document.fields.find((e=>"MaidenName"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get passportType(){return this.document.fields.find((e=>"PassportType"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new MRZ(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new Metadata(e)}}DePassport.DOCUMENT_TYPE="DePassport",DePassport.BIRTH_DATE_FIELD_NAME="BirthDate",DePassport.BIRTH_DATE_FIELD_NAME_NORMALIZED="DePassport.BirthDate",DePassport.BIRTHPLACE_FIELD_NAME="Birthplace",DePassport.BIRTHPLACE_FIELD_NAME_NORMALIZED="DePassport.Birthplace",DePassport.COUNTRY_CODE_FIELD_NAME="CountryCode",DePassport.COUNTRY_CODE_FIELD_NAME_NORMALIZED="DePassport.CountryCode",DePassport.EXPIRY_DATE_FIELD_NAME="ExpiryDate",DePassport.EXPIRY_DATE_FIELD_NAME_NORMALIZED="DePassport.ExpiryDate",DePassport.GENDER_FIELD_NAME="Gender",DePassport.GENDER_FIELD_NAME_NORMALIZED="DePassport.Gender",DePassport.GIVEN_NAMES_FIELD_NAME="GivenNames",DePassport.GIVEN_NAMES_FIELD_NAME_NORMALIZED="DePassport.GivenNames",DePassport.ID_FIELD_NAME="ID",DePassport.ID_FIELD_NAME_NORMALIZED="DePassport.ID",DePassport.ISSUE_DATE_FIELD_NAME="IssueDate",DePassport.ISSUE_DATE_FIELD_NAME_NORMALIZED="DePassport.IssueDate",DePassport.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",DePassport.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="DePassport.IssuingAuthority",DePassport.MAIDEN_NAME_FIELD_NAME="MaidenName",DePassport.MAIDEN_NAME_FIELD_NAME_NORMALIZED="DePassport.MaidenName",DePassport.NATIONALITY_FIELD_NAME="Nationality",DePassport.NATIONALITY_FIELD_NAME_NORMALIZED="DePassport.Nationality",DePassport.PASSPORT_TYPE_FIELD_NAME="PassportType",DePassport.PASSPORT_TYPE_FIELD_NAME_NORMALIZED="DePassport.PassportType",DePassport.PHOTO_FIELD_NAME="Photo",DePassport.PHOTO_FIELD_NAME_NORMALIZED="DePassport.Photo",DePassport.RAW_MRZ_FIELD_NAME="RawMRZ",DePassport.RAW_MRZ_FIELD_NAME_NORMALIZED="DePassport.RawMRZ",DePassport.SIGNATURE_FIELD_NAME="Signature",DePassport.SIGNATURE_FIELD_NAME_NORMALIZED="DePassport.Signature",DePassport.SURNAME_FIELD_NAME="Surname",DePassport.SURNAME_FIELD_NAME_NORMALIZED="DePassport.Surname";class EuropeanDriverLicenseFront{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return EuropeanDriverLicenseFront.DOCUMENT_TYPE}get address(){return this.document.fields.find((e=>"Address"===e.type.name))}get administrativeNumber(){return this.document.fields.find((e=>"AdministrativeNumber"===e.type.name))}get barcode(){return this.document.fields.find((e=>"Barcode"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get birthplace(){return this.document.fields.find((e=>"Birthplace"===e.type.name))}get citizenship(){return this.document.fields.find((e=>"Citizenship"===e.type.name))}get country(){return this.document.fields.find((e=>"Country"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get licenseCategories(){return this.document.fields.find((e=>"LicenseCategories"===e.type.name))}get mrz(){return this.document.fields.find((e=>"MRZ"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get restrictions(){return this.document.fields.find((e=>"Restrictions"===e.type.name))}get serialNumber(){return this.document.fields.find((e=>"SerialNumber"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new Metadata(e)}}EuropeanDriverLicenseFront.DOCUMENT_TYPE="EuropeanDriverLicenseFront",EuropeanDriverLicenseFront.ADDRESS_FIELD_NAME="Address",EuropeanDriverLicenseFront.ADDRESS_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.Address",EuropeanDriverLicenseFront.ADMINISTRATIVE_NUMBER_FIELD_NAME="AdministrativeNumber",EuropeanDriverLicenseFront.ADMINISTRATIVE_NUMBER_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.AdministrativeNumber",EuropeanDriverLicenseFront.BARCODE_FIELD_NAME="Barcode",EuropeanDriverLicenseFront.BARCODE_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.Barcode",EuropeanDriverLicenseFront.BIRTH_DATE_FIELD_NAME="BirthDate",EuropeanDriverLicenseFront.BIRTH_DATE_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.BirthDate",EuropeanDriverLicenseFront.BIRTHPLACE_FIELD_NAME="Birthplace",EuropeanDriverLicenseFront.BIRTHPLACE_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.Birthplace",EuropeanDriverLicenseFront.CITIZENSHIP_FIELD_NAME="Citizenship",EuropeanDriverLicenseFront.CITIZENSHIP_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.Citizenship",EuropeanDriverLicenseFront.COUNTRY_FIELD_NAME="Country",EuropeanDriverLicenseFront.COUNTRY_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.Country",EuropeanDriverLicenseFront.EXPIRY_DATE_FIELD_NAME="ExpiryDate",EuropeanDriverLicenseFront.EXPIRY_DATE_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.ExpiryDate",EuropeanDriverLicenseFront.GENDER_FIELD_NAME="Gender",EuropeanDriverLicenseFront.GENDER_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.Gender",EuropeanDriverLicenseFront.GIVEN_NAMES_FIELD_NAME="GivenNames",EuropeanDriverLicenseFront.GIVEN_NAMES_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.GivenNames",EuropeanDriverLicenseFront.ID_FIELD_NAME="ID",EuropeanDriverLicenseFront.ID_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.ID",EuropeanDriverLicenseFront.ISSUE_DATE_FIELD_NAME="IssueDate",EuropeanDriverLicenseFront.ISSUE_DATE_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.IssueDate",EuropeanDriverLicenseFront.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",EuropeanDriverLicenseFront.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.IssuingAuthority",EuropeanDriverLicenseFront.LICENSE_CATEGORIES_FIELD_NAME="LicenseCategories",EuropeanDriverLicenseFront.LICENSE_CATEGORIES_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.LicenseCategories",EuropeanDriverLicenseFront.MRZ_FIELD_NAME="MRZ",EuropeanDriverLicenseFront.MRZ_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.MRZ",EuropeanDriverLicenseFront.PHOTO_FIELD_NAME="Photo",EuropeanDriverLicenseFront.PHOTO_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.Photo",EuropeanDriverLicenseFront.RESTRICTIONS_FIELD_NAME="Restrictions",EuropeanDriverLicenseFront.RESTRICTIONS_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.Restrictions",EuropeanDriverLicenseFront.SERIAL_NUMBER_FIELD_NAME="SerialNumber",EuropeanDriverLicenseFront.SERIAL_NUMBER_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.SerialNumber",EuropeanDriverLicenseFront.SIGNATURE_FIELD_NAME="Signature",EuropeanDriverLicenseFront.SIGNATURE_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.Signature",EuropeanDriverLicenseFront.SURNAME_FIELD_NAME="Surname",EuropeanDriverLicenseFront.SURNAME_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.Surname";class EuropeanDriverLicenseBack{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return EuropeanDriverLicenseBack.DOCUMENT_TYPE}get country(){return this.document.fields.find((e=>"Country"===e.type.name))}get restrictions(){return this.document.fields.find((e=>"Restrictions"===e.type.name))}get categories(){const e=this.document.children.find((e=>"Categories"===e.type.name));return new EuropeanDriverLicenseBack.Categories(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new Metadata(e)}}EuropeanDriverLicenseBack.DOCUMENT_TYPE="EuropeanDriverLicenseBack",EuropeanDriverLicenseBack.COUNTRY_FIELD_NAME="Country",EuropeanDriverLicenseBack.COUNTRY_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseBack.Country",EuropeanDriverLicenseBack.RESTRICTIONS_FIELD_NAME="Restrictions",EuropeanDriverLicenseBack.RESTRICTIONS_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseBack.Restrictions",function(e){class t{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}get restrictions(){return this.document.fields.find((e=>"Restrictions"===e.type.name))}get validFrom(){return this.document.fields.find((e=>"ValidFrom"===e.type.name))}get validUntil(){return this.document.fields.find((e=>"ValidUntil"===e.type.name))}}t.RESTRICTIONS_FIELD_NAME="Restrictions",t.RESTRICTIONS_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseBack.Category.Restrictions",t.VALID_FROM_FIELD_NAME="ValidFrom",t.VALID_FROM_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseBack.Category.ValidFrom",t.VALID_UNTIL_FIELD_NAME="ValidUntil",t.VALID_UNTIL_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseBack.Category.ValidUntil",e.Category=t;class i{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.Categories.DOCUMENT_TYPE}get a(){const t=this.document.children.find((e=>"A"===e.type.name));return new e.Categories.A(t)}get a1(){const t=this.document.children.find((e=>"A1"===e.type.name));return new e.Categories.A1(t)}get a2(){const t=this.document.children.find((e=>"A2"===e.type.name));return new e.Categories.A2(t)}get am(){const t=this.document.children.find((e=>"AM"===e.type.name));return new e.Categories.AM(t)}get b(){const t=this.document.children.find((e=>"B"===e.type.name));return new e.Categories.B(t)}get b1(){const t=this.document.children.find((e=>"B1"===e.type.name));return t?new e.Categories.B1(t):void 0}get be(){const t=this.document.children.find((e=>"BE"===e.type.name));return new e.Categories.BE(t)}get c(){const t=this.document.children.find((e=>"C"===e.type.name));return new e.Categories.C(t)}get c1(){const t=this.document.children.find((e=>"C1"===e.type.name));return new e.Categories.C1(t)}get c1E(){const t=this.document.children.find((e=>"C1E"===e.type.name));return new e.Categories.C1E(t)}get ce(){const t=this.document.children.find((e=>"CE"===e.type.name));return new e.Categories.CE(t)}get d(){const t=this.document.children.find((e=>"D"===e.type.name));return new e.Categories.D(t)}get d1(){const t=this.document.children.find((e=>"D1"===e.type.name));return new e.Categories.D1(t)}get d1E(){const t=this.document.children.find((e=>"D1E"===e.type.name));return new e.Categories.D1E(t)}get de(){const t=this.document.children.find((e=>"DE"===e.type.name));return new e.Categories.DE(t)}get l(){const t=this.document.children.find((e=>"L"===e.type.name));return new e.Categories.L(t)}get t(){const t=this.document.children.find((e=>"T"===e.type.name));return new e.Categories.T(t)}}i.DOCUMENT_TYPE="Categories",e.Categories=i,function(i){class n extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.A.DOCUMENT_TYPE}}n.DOCUMENT_TYPE="A",i.A=n;class r extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.A1.DOCUMENT_TYPE}}r.DOCUMENT_TYPE="A1",i.A1=r;class o extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.A2.DOCUMENT_TYPE}}o.DOCUMENT_TYPE="A2",i.A2=o;class a extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.AM.DOCUMENT_TYPE}}a.DOCUMENT_TYPE="AM",i.AM=a;class s extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.B.DOCUMENT_TYPE}}s.DOCUMENT_TYPE="B",i.B=s;class c extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.B1.DOCUMENT_TYPE}}c.DOCUMENT_TYPE="B1",i.B1=c;class d extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.BE.DOCUMENT_TYPE}}d.DOCUMENT_TYPE="BE",i.BE=d;class l extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.C.DOCUMENT_TYPE}}l.DOCUMENT_TYPE="C",i.C=l;class u extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.C1.DOCUMENT_TYPE}}u.DOCUMENT_TYPE="C1",i.C1=u;class m extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.C1E.DOCUMENT_TYPE}}m.DOCUMENT_TYPE="C1E",i.C1E=m;class E extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.CE.DOCUMENT_TYPE}}E.DOCUMENT_TYPE="CE",i.CE=E;class D extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.D.DOCUMENT_TYPE}}D.DOCUMENT_TYPE="D",i.D=D;class h extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.D1.DOCUMENT_TYPE}}h.DOCUMENT_TYPE="D1",i.D1=h;class C extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.D1E.DOCUMENT_TYPE}}C.DOCUMENT_TYPE="D1E",i.D1E=C;class I extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.DE.DOCUMENT_TYPE}}I.DOCUMENT_TYPE="DE",i.DE=I;class g extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.L.DOCUMENT_TYPE}}g.DOCUMENT_TYPE="L",i.L=g;class p extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.T.DOCUMENT_TYPE}}p.DOCUMENT_TYPE="T",i.T=p}(i=e.Categories||(e.Categories={}))}(EuropeanDriverLicenseBack||(EuropeanDriverLicenseBack={}));class DeResidencePermitFront{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return DeResidencePermitFront.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get cardAccessNumber(){return this.document.fields.find((e=>"CardAccessNumber"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get placeOfIssue(){return this.document.fields.find((e=>"PlaceOfIssue"===e.type.name))}get remarks(){return this.document.fields.find((e=>"Remarks"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get titleType(){return this.document.fields.find((e=>"TitleType"===e.type.name))}get validFrom(){return this.document.fields.find((e=>"ValidFrom"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new Metadata(e)}}DeResidencePermitFront.DOCUMENT_TYPE="DeResidencePermitFront",DeResidencePermitFront.BIRTH_DATE_FIELD_NAME="BirthDate",DeResidencePermitFront.BIRTH_DATE_FIELD_NAME_NORMALIZED="DeResidencePermitFront.BirthDate",DeResidencePermitFront.CARD_ACCESS_NUMBER_FIELD_NAME="CardAccessNumber",DeResidencePermitFront.CARD_ACCESS_NUMBER_FIELD_NAME_NORMALIZED="DeResidencePermitFront.CardAccessNumber",DeResidencePermitFront.EXPIRY_DATE_FIELD_NAME="ExpiryDate",DeResidencePermitFront.EXPIRY_DATE_FIELD_NAME_NORMALIZED="DeResidencePermitFront.ExpiryDate",DeResidencePermitFront.GENDER_FIELD_NAME="Gender",DeResidencePermitFront.GENDER_FIELD_NAME_NORMALIZED="DeResidencePermitFront.Gender",DeResidencePermitFront.GIVEN_NAMES_FIELD_NAME="GivenNames",DeResidencePermitFront.GIVEN_NAMES_FIELD_NAME_NORMALIZED="DeResidencePermitFront.GivenNames",DeResidencePermitFront.ID_FIELD_NAME="ID",DeResidencePermitFront.ID_FIELD_NAME_NORMALIZED="DeResidencePermitFront.ID",DeResidencePermitFront.NATIONALITY_FIELD_NAME="Nationality",DeResidencePermitFront.NATIONALITY_FIELD_NAME_NORMALIZED="DeResidencePermitFront.Nationality",DeResidencePermitFront.PHOTO_FIELD_NAME="Photo",DeResidencePermitFront.PHOTO_FIELD_NAME_NORMALIZED="DeResidencePermitFront.Photo",DeResidencePermitFront.PLACE_OF_ISSUE_FIELD_NAME="PlaceOfIssue",DeResidencePermitFront.PLACE_OF_ISSUE_FIELD_NAME_NORMALIZED="DeResidencePermitFront.PlaceOfIssue",DeResidencePermitFront.REMARKS_FIELD_NAME="Remarks",DeResidencePermitFront.REMARKS_FIELD_NAME_NORMALIZED="DeResidencePermitFront.Remarks",DeResidencePermitFront.SIGNATURE_FIELD_NAME="Signature",DeResidencePermitFront.SIGNATURE_FIELD_NAME_NORMALIZED="DeResidencePermitFront.Signature",DeResidencePermitFront.SURNAME_FIELD_NAME="Surname",DeResidencePermitFront.SURNAME_FIELD_NAME_NORMALIZED="DeResidencePermitFront.Surname",DeResidencePermitFront.TITLE_TYPE_FIELD_NAME="TitleType",DeResidencePermitFront.TITLE_TYPE_FIELD_NAME_NORMALIZED="DeResidencePermitFront.TitleType",DeResidencePermitFront.VALID_FROM_FIELD_NAME="ValidFrom",DeResidencePermitFront.VALID_FROM_FIELD_NAME_NORMALIZED="DeResidencePermitFront.ValidFrom";class DeResidencePermitBack{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return DeResidencePermitBack.DOCUMENT_TYPE}get address(){return this.document.fields.find((e=>"Address"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get birthplace(){return this.document.fields.find((e=>"Birthplace"===e.type.name))}get eyeColor(){return this.document.fields.find((e=>"EyeColor"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get height(){return this.document.fields.find((e=>"Height"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get remarks(){return this.document.fields.find((e=>"Remarks"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new MRZ(e)}get parsedDeAddress(){const e=this.document.children.find((e=>"ParsedDeAddress"===e.type.name));return new ParsedDeAddress(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new Metadata(e)}}DeResidencePermitBack.DOCUMENT_TYPE="DeResidencePermitBack",DeResidencePermitBack.ADDRESS_FIELD_NAME="Address",DeResidencePermitBack.ADDRESS_FIELD_NAME_NORMALIZED="DeResidencePermitBack.Address",DeResidencePermitBack.BIRTH_DATE_FIELD_NAME="BirthDate",DeResidencePermitBack.BIRTH_DATE_FIELD_NAME_NORMALIZED="DeResidencePermitBack.BirthDate",DeResidencePermitBack.BIRTHPLACE_FIELD_NAME="Birthplace",DeResidencePermitBack.BIRTHPLACE_FIELD_NAME_NORMALIZED="DeResidencePermitBack.Birthplace",DeResidencePermitBack.EYE_COLOR_FIELD_NAME="EyeColor",DeResidencePermitBack.EYE_COLOR_FIELD_NAME_NORMALIZED="DeResidencePermitBack.EyeColor",DeResidencePermitBack.GENDER_FIELD_NAME="Gender",DeResidencePermitBack.GENDER_FIELD_NAME_NORMALIZED="DeResidencePermitBack.Gender",DeResidencePermitBack.HEIGHT_FIELD_NAME="Height",DeResidencePermitBack.HEIGHT_FIELD_NAME_NORMALIZED="DeResidencePermitBack.Height",DeResidencePermitBack.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",DeResidencePermitBack.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="DeResidencePermitBack.IssuingAuthority",DeResidencePermitBack.NATIONALITY_FIELD_NAME="Nationality",DeResidencePermitBack.NATIONALITY_FIELD_NAME_NORMALIZED="DeResidencePermitBack.Nationality",DeResidencePermitBack.RAW_MRZ_FIELD_NAME="RawMRZ",DeResidencePermitBack.RAW_MRZ_FIELD_NAME_NORMALIZED="DeResidencePermitBack.RawMRZ",DeResidencePermitBack.REMARKS_FIELD_NAME="Remarks",DeResidencePermitBack.REMARKS_FIELD_NAME_NORMALIZED="DeResidencePermitBack.Remarks";class EuropeanHealthInsuranceCard{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return EuropeanHealthInsuranceCard.DOCUMENT_TYPE}get barcode(){return this.document.fields.find((e=>"Barcode"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get cardNumber(){return this.document.fields.find((e=>"CardNumber"===e.type.name))}get countryCode(){return this.document.fields.find((e=>"CountryCode"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get issuerName(){return this.document.fields.find((e=>"IssuerName"===e.type.name))}get issuerNumber(){return this.document.fields.find((e=>"IssuerNumber"===e.type.name))}get personalNumber(){return this.document.fields.find((e=>"PersonalNumber"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new Metadata(e)}}EuropeanHealthInsuranceCard.DOCUMENT_TYPE="EuropeanHealthInsuranceCard",EuropeanHealthInsuranceCard.BARCODE_FIELD_NAME="Barcode",EuropeanHealthInsuranceCard.BARCODE_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.Barcode",EuropeanHealthInsuranceCard.BIRTH_DATE_FIELD_NAME="BirthDate",EuropeanHealthInsuranceCard.BIRTH_DATE_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.BirthDate",EuropeanHealthInsuranceCard.CARD_NUMBER_FIELD_NAME="CardNumber",EuropeanHealthInsuranceCard.CARD_NUMBER_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.CardNumber",EuropeanHealthInsuranceCard.COUNTRY_CODE_FIELD_NAME="CountryCode",EuropeanHealthInsuranceCard.COUNTRY_CODE_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.CountryCode",EuropeanHealthInsuranceCard.EXPIRY_DATE_FIELD_NAME="ExpiryDate",EuropeanHealthInsuranceCard.EXPIRY_DATE_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.ExpiryDate",EuropeanHealthInsuranceCard.GIVEN_NAMES_FIELD_NAME="GivenNames",EuropeanHealthInsuranceCard.GIVEN_NAMES_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.GivenNames",EuropeanHealthInsuranceCard.ISSUER_NAME_FIELD_NAME="IssuerName",EuropeanHealthInsuranceCard.ISSUER_NAME_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.IssuerName",EuropeanHealthInsuranceCard.ISSUER_NUMBER_FIELD_NAME="IssuerNumber",EuropeanHealthInsuranceCard.ISSUER_NUMBER_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.IssuerNumber",EuropeanHealthInsuranceCard.PERSONAL_NUMBER_FIELD_NAME="PersonalNumber",EuropeanHealthInsuranceCard.PERSONAL_NUMBER_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.PersonalNumber",EuropeanHealthInsuranceCard.SIGNATURE_FIELD_NAME="Signature",EuropeanHealthInsuranceCard.SIGNATURE_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.Signature",EuropeanHealthInsuranceCard.SURNAME_FIELD_NAME="Surname",EuropeanHealthInsuranceCard.SURNAME_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.Surname";class DeHealthInsuranceCardFront{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return DeHealthInsuranceCardFront.DOCUMENT_TYPE}get cardAccessNumber(){return this.document.fields.find((e=>"CardAccessNumber"===e.type.name))}get issuerName(){return this.document.fields.find((e=>"IssuerName"===e.type.name))}get issuerNumber(){return this.document.fields.find((e=>"IssuerNumber"===e.type.name))}get name(){return this.document.fields.find((e=>"Name"===e.type.name))}get personalNumber(){return this.document.fields.find((e=>"PersonalNumber"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new Metadata(e)}}DeHealthInsuranceCardFront.DOCUMENT_TYPE="DeHealthInsuranceCardFront",DeHealthInsuranceCardFront.CARD_ACCESS_NUMBER_FIELD_NAME="CardAccessNumber",DeHealthInsuranceCardFront.CARD_ACCESS_NUMBER_FIELD_NAME_NORMALIZED="DeHealthInsuranceCardFront.CardAccessNumber",DeHealthInsuranceCardFront.ISSUER_NAME_FIELD_NAME="IssuerName",DeHealthInsuranceCardFront.ISSUER_NAME_FIELD_NAME_NORMALIZED="DeHealthInsuranceCardFront.IssuerName",DeHealthInsuranceCardFront.ISSUER_NUMBER_FIELD_NAME="IssuerNumber",DeHealthInsuranceCardFront.ISSUER_NUMBER_FIELD_NAME_NORMALIZED="DeHealthInsuranceCardFront.IssuerNumber",DeHealthInsuranceCardFront.NAME_FIELD_NAME="Name",DeHealthInsuranceCardFront.NAME_FIELD_NAME_NORMALIZED="DeHealthInsuranceCardFront.Name",DeHealthInsuranceCardFront.PERSONAL_NUMBER_FIELD_NAME="PersonalNumber",DeHealthInsuranceCardFront.PERSONAL_NUMBER_FIELD_NAME_NORMALIZED="DeHealthInsuranceCardFront.PersonalNumber";class BrIdCardFront{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return BrIdCardFront.DOCUMENT_TYPE}get barcode(){return this.document.fields.find((e=>"Barcode"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get birthplace(){return this.document.fields.find((e=>"Birthplace"===e.type.name))}get bloodType(){return this.document.fields.find((e=>"BloodType"===e.type.name))}get civilRegistryDetails(){return this.document.fields.find((e=>"CivilRegistryDetails"===e.type.name))}get driverLicenseNumber(){return this.document.fields.find((e=>"DriverLicenseNumber"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get fingerprint(){return this.document.fields.find((e=>"Fingerprint"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get healthCardNumber(){return this.document.fields.find((e=>"HealthCardNumber"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get issuingAuthoritySignature(){return this.document.fields.find((e=>"IssuingAuthoritySignature"===e.type.name))}get militaryCertificateNumber(){return this.document.fields.find((e=>"MilitaryCertificateNumber"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get observations(){return this.document.fields.find((e=>"Observations"===e.type.name))}get parents(){return this.document.fields.find((e=>"Parents"===e.type.name))}get personalNumber(){return this.document.fields.find((e=>"PersonalNumber"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get placeOfIssue(){return this.document.fields.find((e=>"PlaceOfIssue"===e.type.name))}get professionalIdentityNumber(){return this.document.fields.find((e=>"ProfessionalIdentityNumber"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get socialSecurityNumber(){return this.document.fields.find((e=>"SocialSecurityNumber"===e.type.name))}get stateCode(){return this.document.fields.find((e=>"StateCode"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get taxpayerNumber(){return this.document.fields.find((e=>"TaxpayerNumber"===e.type.name))}get voterRegistrationNumber(){return this.document.fields.find((e=>"VoterRegistrationNumber"===e.type.name))}get workCardNumber(){return this.document.fields.find((e=>"WorkCardNumber"===e.type.name))}get workCardSeries(){return this.document.fields.find((e=>"WorkCardSeries"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new Metadata(e)}}BrIdCardFront.DOCUMENT_TYPE="BrIdCardFront",BrIdCardFront.BARCODE_FIELD_NAME="Barcode",BrIdCardFront.BARCODE_FIELD_NAME_NORMALIZED="BrIdCardFront.Barcode",BrIdCardFront.BIRTH_DATE_FIELD_NAME="BirthDate",BrIdCardFront.BIRTH_DATE_FIELD_NAME_NORMALIZED="BrIdCardFront.BirthDate",BrIdCardFront.BIRTHPLACE_FIELD_NAME="Birthplace",BrIdCardFront.BIRTHPLACE_FIELD_NAME_NORMALIZED="BrIdCardFront.Birthplace",BrIdCardFront.BLOOD_TYPE_FIELD_NAME="BloodType",BrIdCardFront.BLOOD_TYPE_FIELD_NAME_NORMALIZED="BrIdCardFront.BloodType",BrIdCardFront.CIVIL_REGISTRY_DETAILS_FIELD_NAME="CivilRegistryDetails",BrIdCardFront.CIVIL_REGISTRY_DETAILS_FIELD_NAME_NORMALIZED="BrIdCardFront.CivilRegistryDetails",BrIdCardFront.DRIVER_LICENSE_NUMBER_FIELD_NAME="DriverLicenseNumber",BrIdCardFront.DRIVER_LICENSE_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardFront.DriverLicenseNumber",BrIdCardFront.EXPIRY_DATE_FIELD_NAME="ExpiryDate",BrIdCardFront.EXPIRY_DATE_FIELD_NAME_NORMALIZED="BrIdCardFront.ExpiryDate",BrIdCardFront.FINGERPRINT_FIELD_NAME="Fingerprint",BrIdCardFront.FINGERPRINT_FIELD_NAME_NORMALIZED="BrIdCardFront.Fingerprint",BrIdCardFront.GENDER_FIELD_NAME="Gender",BrIdCardFront.GENDER_FIELD_NAME_NORMALIZED="BrIdCardFront.Gender",BrIdCardFront.GIVEN_NAMES_FIELD_NAME="GivenNames",BrIdCardFront.GIVEN_NAMES_FIELD_NAME_NORMALIZED="BrIdCardFront.GivenNames",BrIdCardFront.HEALTH_CARD_NUMBER_FIELD_NAME="HealthCardNumber",BrIdCardFront.HEALTH_CARD_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardFront.HealthCardNumber",BrIdCardFront.ID_FIELD_NAME="ID",BrIdCardFront.ID_FIELD_NAME_NORMALIZED="BrIdCardFront.ID",BrIdCardFront.ISSUE_DATE_FIELD_NAME="IssueDate",BrIdCardFront.ISSUE_DATE_FIELD_NAME_NORMALIZED="BrIdCardFront.IssueDate",BrIdCardFront.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",BrIdCardFront.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="BrIdCardFront.IssuingAuthority",BrIdCardFront.ISSUING_AUTHORITY_SIGNATURE_FIELD_NAME="IssuingAuthoritySignature",BrIdCardFront.ISSUING_AUTHORITY_SIGNATURE_FIELD_NAME_NORMALIZED="BrIdCardFront.IssuingAuthoritySignature",BrIdCardFront.MILITARY_CERTIFICATE_NUMBER_FIELD_NAME="MilitaryCertificateNumber",BrIdCardFront.MILITARY_CERTIFICATE_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardFront.MilitaryCertificateNumber",BrIdCardFront.NATIONALITY_FIELD_NAME="Nationality",BrIdCardFront.NATIONALITY_FIELD_NAME_NORMALIZED="BrIdCardFront.Nationality",BrIdCardFront.OBSERVATIONS_FIELD_NAME="Observations",BrIdCardFront.OBSERVATIONS_FIELD_NAME_NORMALIZED="BrIdCardFront.Observations",BrIdCardFront.PARENTS_FIELD_NAME="Parents",BrIdCardFront.PARENTS_FIELD_NAME_NORMALIZED="BrIdCardFront.Parents",BrIdCardFront.PERSONAL_NUMBER_FIELD_NAME="PersonalNumber",BrIdCardFront.PERSONAL_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardFront.PersonalNumber",BrIdCardFront.PHOTO_FIELD_NAME="Photo",BrIdCardFront.PHOTO_FIELD_NAME_NORMALIZED="BrIdCardFront.Photo",BrIdCardFront.PLACE_OF_ISSUE_FIELD_NAME="PlaceOfIssue",BrIdCardFront.PLACE_OF_ISSUE_FIELD_NAME_NORMALIZED="BrIdCardFront.PlaceOfIssue",BrIdCardFront.PROFESSIONAL_IDENTITY_NUMBER_FIELD_NAME="ProfessionalIdentityNumber",BrIdCardFront.PROFESSIONAL_IDENTITY_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardFront.ProfessionalIdentityNumber",BrIdCardFront.SIGNATURE_FIELD_NAME="Signature",BrIdCardFront.SIGNATURE_FIELD_NAME_NORMALIZED="BrIdCardFront.Signature",BrIdCardFront.SOCIAL_SECURITY_NUMBER_FIELD_NAME="SocialSecurityNumber",BrIdCardFront.SOCIAL_SECURITY_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardFront.SocialSecurityNumber",BrIdCardFront.STATE_CODE_FIELD_NAME="StateCode",BrIdCardFront.STATE_CODE_FIELD_NAME_NORMALIZED="BrIdCardFront.StateCode",BrIdCardFront.SURNAME_FIELD_NAME="Surname",BrIdCardFront.SURNAME_FIELD_NAME_NORMALIZED="BrIdCardFront.Surname",BrIdCardFront.TAXPAYER_NUMBER_FIELD_NAME="TaxpayerNumber",BrIdCardFront.TAXPAYER_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardFront.TaxpayerNumber",BrIdCardFront.VOTER_REGISTRATION_NUMBER_FIELD_NAME="VoterRegistrationNumber",BrIdCardFront.VOTER_REGISTRATION_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardFront.VoterRegistrationNumber",BrIdCardFront.WORK_CARD_NUMBER_FIELD_NAME="WorkCardNumber",BrIdCardFront.WORK_CARD_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardFront.WorkCardNumber",BrIdCardFront.WORK_CARD_SERIES_FIELD_NAME="WorkCardSeries",BrIdCardFront.WORK_CARD_SERIES_FIELD_NAME_NORMALIZED="BrIdCardFront.WorkCardSeries";class BrIdCardBack{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return BrIdCardBack.DOCUMENT_TYPE}get barcode(){return this.document.fields.find((e=>"Barcode"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get birthplace(){return this.document.fields.find((e=>"Birthplace"===e.type.name))}get civilRegistryDetails(){return this.document.fields.find((e=>"CivilRegistryDetails"===e.type.name))}get driverLicenseNumber(){return this.document.fields.find((e=>"DriverLicenseNumber"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get fingerprint(){return this.document.fields.find((e=>"Fingerprint"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get healthCardNumber(){return this.document.fields.find((e=>"HealthCardNumber"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get militaryCertificateNumber(){return this.document.fields.find((e=>"MilitaryCertificateNumber"===e.type.name))}get pageNumber(){return this.document.fields.find((e=>"PageNumber"===e.type.name))}get parents(){return this.document.fields.find((e=>"Parents"===e.type.name))}get personalNumber(){return this.document.fields.find((e=>"PersonalNumber"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get placeOfIssue(){return this.document.fields.find((e=>"PlaceOfIssue"===e.type.name))}get placeOfOrigin(){return this.document.fields.find((e=>"PlaceOfOrigin"===e.type.name))}get professionalIdentityNumber(){return this.document.fields.find((e=>"ProfessionalIdentityNumber"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get socialSecurityNumber(){return this.document.fields.find((e=>"SocialSecurityNumber"===e.type.name))}get stateCode(){return this.document.fields.find((e=>"StateCode"===e.type.name))}get taxpayerNumber(){return this.document.fields.find((e=>"TaxpayerNumber"===e.type.name))}get voterRegistrationNumber(){return this.document.fields.find((e=>"VoterRegistrationNumber"===e.type.name))}get workCardNumber(){return this.document.fields.find((e=>"WorkCardNumber"===e.type.name))}get workCardSeries(){return this.document.fields.find((e=>"WorkCardSeries"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new MRZ(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new Metadata(e)}}BrIdCardBack.DOCUMENT_TYPE="BrIdCardBack",BrIdCardBack.BARCODE_FIELD_NAME="Barcode",BrIdCardBack.BARCODE_FIELD_NAME_NORMALIZED="BrIdCardBack.Barcode",BrIdCardBack.BIRTH_DATE_FIELD_NAME="BirthDate",BrIdCardBack.BIRTH_DATE_FIELD_NAME_NORMALIZED="BrIdCardBack.BirthDate",BrIdCardBack.BIRTHPLACE_FIELD_NAME="Birthplace",BrIdCardBack.BIRTHPLACE_FIELD_NAME_NORMALIZED="BrIdCardBack.Birthplace",BrIdCardBack.CIVIL_REGISTRY_DETAILS_FIELD_NAME="CivilRegistryDetails",BrIdCardBack.CIVIL_REGISTRY_DETAILS_FIELD_NAME_NORMALIZED="BrIdCardBack.CivilRegistryDetails",BrIdCardBack.DRIVER_LICENSE_NUMBER_FIELD_NAME="DriverLicenseNumber",BrIdCardBack.DRIVER_LICENSE_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardBack.DriverLicenseNumber",BrIdCardBack.EXPIRY_DATE_FIELD_NAME="ExpiryDate",BrIdCardBack.EXPIRY_DATE_FIELD_NAME_NORMALIZED="BrIdCardBack.ExpiryDate",BrIdCardBack.FINGERPRINT_FIELD_NAME="Fingerprint",BrIdCardBack.FINGERPRINT_FIELD_NAME_NORMALIZED="BrIdCardBack.Fingerprint",BrIdCardBack.GIVEN_NAMES_FIELD_NAME="GivenNames",BrIdCardBack.GIVEN_NAMES_FIELD_NAME_NORMALIZED="BrIdCardBack.GivenNames",BrIdCardBack.HEALTH_CARD_NUMBER_FIELD_NAME="HealthCardNumber",BrIdCardBack.HEALTH_CARD_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardBack.HealthCardNumber",BrIdCardBack.ID_FIELD_NAME="ID",BrIdCardBack.ID_FIELD_NAME_NORMALIZED="BrIdCardBack.ID",BrIdCardBack.ISSUE_DATE_FIELD_NAME="IssueDate",BrIdCardBack.ISSUE_DATE_FIELD_NAME_NORMALIZED="BrIdCardBack.IssueDate",BrIdCardBack.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",BrIdCardBack.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="BrIdCardBack.IssuingAuthority",BrIdCardBack.MILITARY_CERTIFICATE_NUMBER_FIELD_NAME="MilitaryCertificateNumber",BrIdCardBack.MILITARY_CERTIFICATE_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardBack.MilitaryCertificateNumber",BrIdCardBack.PAGE_NUMBER_FIELD_NAME="PageNumber",BrIdCardBack.PAGE_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardBack.PageNumber",BrIdCardBack.PARENTS_FIELD_NAME="Parents",BrIdCardBack.PARENTS_FIELD_NAME_NORMALIZED="BrIdCardBack.Parents",BrIdCardBack.PERSONAL_NUMBER_FIELD_NAME="PersonalNumber",BrIdCardBack.PERSONAL_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardBack.PersonalNumber",BrIdCardBack.PHOTO_FIELD_NAME="Photo",BrIdCardBack.PHOTO_FIELD_NAME_NORMALIZED="BrIdCardBack.Photo",BrIdCardBack.PLACE_OF_ISSUE_FIELD_NAME="PlaceOfIssue",BrIdCardBack.PLACE_OF_ISSUE_FIELD_NAME_NORMALIZED="BrIdCardBack.PlaceOfIssue",BrIdCardBack.PLACE_OF_ORIGIN_FIELD_NAME="PlaceOfOrigin",BrIdCardBack.PLACE_OF_ORIGIN_FIELD_NAME_NORMALIZED="BrIdCardBack.PlaceOfOrigin",BrIdCardBack.PROFESSIONAL_IDENTITY_NUMBER_FIELD_NAME="ProfessionalIdentityNumber",BrIdCardBack.PROFESSIONAL_IDENTITY_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardBack.ProfessionalIdentityNumber",BrIdCardBack.RAW_MRZ_FIELD_NAME="RawMRZ",BrIdCardBack.RAW_MRZ_FIELD_NAME_NORMALIZED="BrIdCardBack.RawMRZ",BrIdCardBack.SIGNATURE_FIELD_NAME="Signature",BrIdCardBack.SIGNATURE_FIELD_NAME_NORMALIZED="BrIdCardBack.Signature",BrIdCardBack.SOCIAL_SECURITY_NUMBER_FIELD_NAME="SocialSecurityNumber",BrIdCardBack.SOCIAL_SECURITY_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardBack.SocialSecurityNumber",BrIdCardBack.STATE_CODE_FIELD_NAME="StateCode",BrIdCardBack.STATE_CODE_FIELD_NAME_NORMALIZED="BrIdCardBack.StateCode",BrIdCardBack.TAXPAYER_NUMBER_FIELD_NAME="TaxpayerNumber",BrIdCardBack.TAXPAYER_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardBack.TaxpayerNumber",BrIdCardBack.VOTER_REGISTRATION_NUMBER_FIELD_NAME="VoterRegistrationNumber",BrIdCardBack.VOTER_REGISTRATION_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardBack.VoterRegistrationNumber",BrIdCardBack.WORK_CARD_NUMBER_FIELD_NAME="WorkCardNumber",BrIdCardBack.WORK_CARD_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardBack.WorkCardNumber",BrIdCardBack.WORK_CARD_SERIES_FIELD_NAME="WorkCardSeries",BrIdCardBack.WORK_CARD_SERIES_FIELD_NAME_NORMALIZED="BrIdCardBack.WorkCardSeries";class BrIdCardFrontPhotoOnly{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return BrIdCardFrontPhotoOnly.DOCUMENT_TYPE}get fingerprint(){return this.document.fields.find((e=>"Fingerprint"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new Metadata(e)}}BrIdCardFrontPhotoOnly.DOCUMENT_TYPE="BrIdCardFrontPhotoOnly",BrIdCardFrontPhotoOnly.FINGERPRINT_FIELD_NAME="Fingerprint",BrIdCardFrontPhotoOnly.FINGERPRINT_FIELD_NAME_NORMALIZED="BrIdCardFrontPhotoOnly.Fingerprint",BrIdCardFrontPhotoOnly.PHOTO_FIELD_NAME="Photo",BrIdCardFrontPhotoOnly.PHOTO_FIELD_NAME_NORMALIZED="BrIdCardFrontPhotoOnly.Photo";class CnEntryAndExitPermitBack{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return CnEntryAndExitPermitBack.DOCUMENT_TYPE}get barcodeBottom(){return this.document.fields.find((e=>"BarcodeBottom"===e.type.name))}get barcodeTop(){return this.document.fields.find((e=>"BarcodeTop"===e.type.name))}get hongKongValidFrom(){return this.document.fields.find((e=>"HongKongValidFrom"===e.type.name))}get hongKongValidUntil(){return this.document.fields.find((e=>"HongKongValidUntil"===e.type.name))}get macaoValidFrom(){return this.document.fields.find((e=>"MacaoValidFrom"===e.type.name))}get macaoValidUntil(){return this.document.fields.find((e=>"MacaoValidUntil"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get taiwanIDNumber(){return this.document.fields.find((e=>"TaiwanIDNumber"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new MRZ(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new Metadata(e)}}CnEntryAndExitPermitBack.DOCUMENT_TYPE="CnEntryAndExitPermitBack",CnEntryAndExitPermitBack.BARCODE_BOTTOM_FIELD_NAME="BarcodeBottom",CnEntryAndExitPermitBack.BARCODE_BOTTOM_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitBack.BarcodeBottom",CnEntryAndExitPermitBack.BARCODE_TOP_FIELD_NAME="BarcodeTop",CnEntryAndExitPermitBack.BARCODE_TOP_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitBack.BarcodeTop",CnEntryAndExitPermitBack.HONG_KONG_VALID_FROM_FIELD_NAME="HongKongValidFrom",CnEntryAndExitPermitBack.HONG_KONG_VALID_FROM_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitBack.HongKongValidFrom",CnEntryAndExitPermitBack.HONG_KONG_VALID_UNTIL_FIELD_NAME="HongKongValidUntil",CnEntryAndExitPermitBack.HONG_KONG_VALID_UNTIL_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitBack.HongKongValidUntil",CnEntryAndExitPermitBack.MACAO_VALID_FROM_FIELD_NAME="MacaoValidFrom",CnEntryAndExitPermitBack.MACAO_VALID_FROM_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitBack.MacaoValidFrom",CnEntryAndExitPermitBack.MACAO_VALID_UNTIL_FIELD_NAME="MacaoValidUntil",CnEntryAndExitPermitBack.MACAO_VALID_UNTIL_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitBack.MacaoValidUntil",CnEntryAndExitPermitBack.RAW_MRZ_FIELD_NAME="RawMRZ",CnEntryAndExitPermitBack.RAW_MRZ_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitBack.RawMRZ",CnEntryAndExitPermitBack.TAIWAN_ID_NUMBER_FIELD_NAME="TaiwanIDNumber",CnEntryAndExitPermitBack.TAIWAN_ID_NUMBER_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitBack.TaiwanIDNumber";class CnEntryAndExitPermitFront{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return CnEntryAndExitPermitFront.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get business(){return this.document.fields.find((e=>"Business"===e.type.name))}get destinations(){return this.document.fields.find((e=>"Destinations"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get mrzLine(){return this.document.fields.find((e=>"MRZLine"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get placeOfIssue(){return this.document.fields.find((e=>"PlaceOfIssue"===e.type.name))}get portsOfExitAndEntry(){return this.document.fields.find((e=>"PortsOfExitAndEntry"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get timesOfExitAndEntry(){return this.document.fields.find((e=>"TimesOfExitAndEntry"===e.type.name))}get validFrom(){return this.document.fields.find((e=>"ValidFrom"===e.type.name))}get validUntil(){return this.document.fields.find((e=>"ValidUntil"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new MRZ(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new Metadata(e)}}CnEntryAndExitPermitFront.DOCUMENT_TYPE="CnEntryAndExitPermitFront",CnEntryAndExitPermitFront.BIRTH_DATE_FIELD_NAME="BirthDate",CnEntryAndExitPermitFront.BIRTH_DATE_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.BirthDate",CnEntryAndExitPermitFront.BUSINESS_FIELD_NAME="Business",CnEntryAndExitPermitFront.BUSINESS_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.Business",CnEntryAndExitPermitFront.DESTINATIONS_FIELD_NAME="Destinations",CnEntryAndExitPermitFront.DESTINATIONS_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.Destinations",CnEntryAndExitPermitFront.GENDER_FIELD_NAME="Gender",CnEntryAndExitPermitFront.GENDER_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.Gender",CnEntryAndExitPermitFront.GIVEN_NAMES_FIELD_NAME="GivenNames",CnEntryAndExitPermitFront.GIVEN_NAMES_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.GivenNames",CnEntryAndExitPermitFront.ID_FIELD_NAME="ID",CnEntryAndExitPermitFront.ID_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.ID",CnEntryAndExitPermitFront.ISSUE_DATE_FIELD_NAME="IssueDate",CnEntryAndExitPermitFront.ISSUE_DATE_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.IssueDate",CnEntryAndExitPermitFront.MRZ_LINE_FIELD_NAME="MRZLine",CnEntryAndExitPermitFront.MRZ_LINE_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.MRZLine",CnEntryAndExitPermitFront.PHOTO_FIELD_NAME="Photo",CnEntryAndExitPermitFront.PHOTO_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.Photo",CnEntryAndExitPermitFront.PLACE_OF_ISSUE_FIELD_NAME="PlaceOfIssue",CnEntryAndExitPermitFront.PLACE_OF_ISSUE_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.PlaceOfIssue",CnEntryAndExitPermitFront.PORTS_OF_EXIT_AND_ENTRY_FIELD_NAME="PortsOfExitAndEntry",CnEntryAndExitPermitFront.PORTS_OF_EXIT_AND_ENTRY_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.PortsOfExitAndEntry",CnEntryAndExitPermitFront.RAW_MRZ_FIELD_NAME="RawMRZ",CnEntryAndExitPermitFront.RAW_MRZ_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.RawMRZ",CnEntryAndExitPermitFront.TIMES_OF_EXIT_AND_ENTRY_FIELD_NAME="TimesOfExitAndEntry",CnEntryAndExitPermitFront.TIMES_OF_EXIT_AND_ENTRY_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.TimesOfExitAndEntry",CnEntryAndExitPermitFront.VALID_FROM_FIELD_NAME="ValidFrom",CnEntryAndExitPermitFront.VALID_FROM_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.ValidFrom",CnEntryAndExitPermitFront.VALID_UNTIL_FIELD_NAME="ValidUntil",CnEntryAndExitPermitFront.VALID_UNTIL_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.ValidUntil";class CnPermanentResidentCardFront{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return CnPermanentResidentCardFront.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get validFrom(){return this.document.fields.find((e=>"ValidFrom"===e.type.name))}get validUntil(){return this.document.fields.find((e=>"ValidUntil"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new Metadata(e)}}CnPermanentResidentCardFront.DOCUMENT_TYPE="CnPermanentResidentCardFront",CnPermanentResidentCardFront.BIRTH_DATE_FIELD_NAME="BirthDate",CnPermanentResidentCardFront.BIRTH_DATE_FIELD_NAME_NORMALIZED="CnPermanentResidentCardFront.BirthDate",CnPermanentResidentCardFront.GENDER_FIELD_NAME="Gender",CnPermanentResidentCardFront.GENDER_FIELD_NAME_NORMALIZED="CnPermanentResidentCardFront.Gender",CnPermanentResidentCardFront.GIVEN_NAMES_FIELD_NAME="GivenNames",CnPermanentResidentCardFront.GIVEN_NAMES_FIELD_NAME_NORMALIZED="CnPermanentResidentCardFront.GivenNames",CnPermanentResidentCardFront.ID_FIELD_NAME="ID",CnPermanentResidentCardFront.ID_FIELD_NAME_NORMALIZED="CnPermanentResidentCardFront.ID",CnPermanentResidentCardFront.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",CnPermanentResidentCardFront.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="CnPermanentResidentCardFront.IssuingAuthority",CnPermanentResidentCardFront.NATIONALITY_FIELD_NAME="Nationality",CnPermanentResidentCardFront.NATIONALITY_FIELD_NAME_NORMALIZED="CnPermanentResidentCardFront.Nationality",CnPermanentResidentCardFront.PHOTO_FIELD_NAME="Photo",CnPermanentResidentCardFront.PHOTO_FIELD_NAME_NORMALIZED="CnPermanentResidentCardFront.Photo",CnPermanentResidentCardFront.VALID_FROM_FIELD_NAME="ValidFrom",CnPermanentResidentCardFront.VALID_FROM_FIELD_NAME_NORMALIZED="CnPermanentResidentCardFront.ValidFrom",CnPermanentResidentCardFront.VALID_UNTIL_FIELD_NAME="ValidUntil",CnPermanentResidentCardFront.VALID_UNTIL_FIELD_NAME_NORMALIZED="CnPermanentResidentCardFront.ValidUntil";class HkIdentityCardFront{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return HkIdentityCardFront.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get givenNamesInChineseCode(){return this.document.fields.find((e=>"GivenNamesInChineseCode"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get idSymbols(){return this.document.fields.find((e=>"IDSymbols"===e.type.name))}get initialRegistrationDate(){return this.document.fields.find((e=>"InitialRegistrationDate"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new Metadata(e)}}HkIdentityCardFront.DOCUMENT_TYPE="HkIdentityCardFront",HkIdentityCardFront.BIRTH_DATE_FIELD_NAME="BirthDate",HkIdentityCardFront.BIRTH_DATE_FIELD_NAME_NORMALIZED="HkIdentityCardFront.BirthDate",HkIdentityCardFront.GENDER_FIELD_NAME="Gender",HkIdentityCardFront.GENDER_FIELD_NAME_NORMALIZED="HkIdentityCardFront.Gender",HkIdentityCardFront.GIVEN_NAMES_FIELD_NAME="GivenNames",HkIdentityCardFront.GIVEN_NAMES_FIELD_NAME_NORMALIZED="HkIdentityCardFront.GivenNames",HkIdentityCardFront.GIVEN_NAMES_IN_CHINESE_CODE_FIELD_NAME="GivenNamesInChineseCode",HkIdentityCardFront.GIVEN_NAMES_IN_CHINESE_CODE_FIELD_NAME_NORMALIZED="HkIdentityCardFront.GivenNamesInChineseCode",HkIdentityCardFront.ID_FIELD_NAME="ID",HkIdentityCardFront.ID_FIELD_NAME_NORMALIZED="HkIdentityCardFront.ID",HkIdentityCardFront.ID_SYMBOLS_FIELD_NAME="IDSymbols",HkIdentityCardFront.ID_SYMBOLS_FIELD_NAME_NORMALIZED="HkIdentityCardFront.IDSymbols",HkIdentityCardFront.INITIAL_REGISTRATION_DATE_FIELD_NAME="InitialRegistrationDate",HkIdentityCardFront.INITIAL_REGISTRATION_DATE_FIELD_NAME_NORMALIZED="HkIdentityCardFront.InitialRegistrationDate",HkIdentityCardFront.ISSUE_DATE_FIELD_NAME="IssueDate",HkIdentityCardFront.ISSUE_DATE_FIELD_NAME_NORMALIZED="HkIdentityCardFront.IssueDate",HkIdentityCardFront.PHOTO_FIELD_NAME="Photo",HkIdentityCardFront.PHOTO_FIELD_NAME_NORMALIZED="HkIdentityCardFront.Photo";class TwEntryAndExitPermit{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return TwEntryAndExitPermit.DOCUMENT_TYPE}get barcodeLeft(){return this.document.fields.find((e=>"BarcodeLeft"===e.type.name))}get barcodeRight(){return this.document.fields.find((e=>"BarcodeRight"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get countryCode(){return this.document.fields.find((e=>"CountryCode"===e.type.name))}get countryOfResidency(){return this.document.fields.find((e=>"CountryOfResidency"===e.type.name))}get documentType(){return this.document.fields.find((e=>"DocumentType"===e.type.name))}get entryInspection(){return this.document.fields.find((e=>"EntryInspection"===e.type.name))}get exitInspection(){return this.document.fields.find((e=>"ExitInspection"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get passportNumber(){return this.document.fields.find((e=>"PassportNumber"===e.type.name))}get personalNumber(){return this.document.fields.find((e=>"PersonalNumber"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get remarks(){return this.document.fields.find((e=>"Remarks"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new MRZ(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new Metadata(e)}}TwEntryAndExitPermit.DOCUMENT_TYPE="TwEntryAndExitPermit",TwEntryAndExitPermit.BARCODE_LEFT_FIELD_NAME="BarcodeLeft",TwEntryAndExitPermit.BARCODE_LEFT_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.BarcodeLeft",TwEntryAndExitPermit.BARCODE_RIGHT_FIELD_NAME="BarcodeRight",TwEntryAndExitPermit.BARCODE_RIGHT_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.BarcodeRight",TwEntryAndExitPermit.BIRTH_DATE_FIELD_NAME="BirthDate",TwEntryAndExitPermit.BIRTH_DATE_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.BirthDate",TwEntryAndExitPermit.COUNTRY_CODE_FIELD_NAME="CountryCode",TwEntryAndExitPermit.COUNTRY_CODE_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.CountryCode",TwEntryAndExitPermit.COUNTRY_OF_RESIDENCY_FIELD_NAME="CountryOfResidency",TwEntryAndExitPermit.COUNTRY_OF_RESIDENCY_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.CountryOfResidency",TwEntryAndExitPermit.DOCUMENT_TYPE_FIELD_NAME="DocumentType",TwEntryAndExitPermit.DOCUMENT_TYPE_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.DocumentType",TwEntryAndExitPermit.ENTRY_INSPECTION_FIELD_NAME="EntryInspection",TwEntryAndExitPermit.ENTRY_INSPECTION_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.EntryInspection",TwEntryAndExitPermit.EXIT_INSPECTION_FIELD_NAME="ExitInspection",TwEntryAndExitPermit.EXIT_INSPECTION_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.ExitInspection",TwEntryAndExitPermit.EXPIRY_DATE_FIELD_NAME="ExpiryDate",TwEntryAndExitPermit.EXPIRY_DATE_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.ExpiryDate",TwEntryAndExitPermit.GENDER_FIELD_NAME="Gender",TwEntryAndExitPermit.GENDER_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.Gender",TwEntryAndExitPermit.GIVEN_NAMES_FIELD_NAME="GivenNames",TwEntryAndExitPermit.GIVEN_NAMES_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.GivenNames",TwEntryAndExitPermit.ID_FIELD_NAME="ID",TwEntryAndExitPermit.ID_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.ID",TwEntryAndExitPermit.ISSUE_DATE_FIELD_NAME="IssueDate",TwEntryAndExitPermit.ISSUE_DATE_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.IssueDate",TwEntryAndExitPermit.PASSPORT_NUMBER_FIELD_NAME="PassportNumber",TwEntryAndExitPermit.PASSPORT_NUMBER_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.PassportNumber",TwEntryAndExitPermit.PERSONAL_NUMBER_FIELD_NAME="PersonalNumber",TwEntryAndExitPermit.PERSONAL_NUMBER_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.PersonalNumber",TwEntryAndExitPermit.PHOTO_FIELD_NAME="Photo",TwEntryAndExitPermit.PHOTO_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.Photo",TwEntryAndExitPermit.RAW_MRZ_FIELD_NAME="RawMRZ",TwEntryAndExitPermit.RAW_MRZ_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.RawMRZ",TwEntryAndExitPermit.REMARKS_FIELD_NAME="Remarks",TwEntryAndExitPermit.REMARKS_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.Remarks";class MoIdentityCardBack{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return MoIdentityCardBack.DOCUMENT_TYPE}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get validationPhoto(){return this.document.fields.find((e=>"ValidationPhoto"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new MRZ(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new Metadata(e)}}MoIdentityCardBack.DOCUMENT_TYPE="MoIdentityCardBack",MoIdentityCardBack.RAW_MRZ_FIELD_NAME="RawMRZ",MoIdentityCardBack.RAW_MRZ_FIELD_NAME_NORMALIZED="MoIdentityCardBack.RawMRZ",MoIdentityCardBack.VALIDATION_PHOTO_FIELD_NAME="ValidationPhoto",MoIdentityCardBack.VALIDATION_PHOTO_FIELD_NAME_NORMALIZED="MoIdentityCardBack.ValidationPhoto";class MoIdentityCardFront{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return MoIdentityCardFront.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get validFrom(){return this.document.fields.find((e=>"ValidFrom"===e.type.name))}get validUntil(){return this.document.fields.find((e=>"ValidUntil"===e.type.name))}get validationPhoto(){return this.document.fields.find((e=>"ValidationPhoto"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new Metadata(e)}}MoIdentityCardFront.DOCUMENT_TYPE="MoIdentityCardFront",MoIdentityCardFront.BIRTH_DATE_FIELD_NAME="BirthDate",MoIdentityCardFront.BIRTH_DATE_FIELD_NAME_NORMALIZED="MoIdentityCardFront.BirthDate",MoIdentityCardFront.GENDER_FIELD_NAME="Gender",MoIdentityCardFront.GENDER_FIELD_NAME_NORMALIZED="MoIdentityCardFront.Gender",MoIdentityCardFront.GIVEN_NAMES_FIELD_NAME="GivenNames",MoIdentityCardFront.GIVEN_NAMES_FIELD_NAME_NORMALIZED="MoIdentityCardFront.GivenNames",MoIdentityCardFront.ID_FIELD_NAME="ID",MoIdentityCardFront.ID_FIELD_NAME_NORMALIZED="MoIdentityCardFront.ID",MoIdentityCardFront.PHOTO_FIELD_NAME="Photo",MoIdentityCardFront.PHOTO_FIELD_NAME_NORMALIZED="MoIdentityCardFront.Photo",MoIdentityCardFront.SIGNATURE_FIELD_NAME="Signature",MoIdentityCardFront.SIGNATURE_FIELD_NAME_NORMALIZED="MoIdentityCardFront.Signature",MoIdentityCardFront.SURNAME_FIELD_NAME="Surname",MoIdentityCardFront.SURNAME_FIELD_NAME_NORMALIZED="MoIdentityCardFront.Surname",MoIdentityCardFront.VALID_FROM_FIELD_NAME="ValidFrom",MoIdentityCardFront.VALID_FROM_FIELD_NAME_NORMALIZED="MoIdentityCardFront.ValidFrom",MoIdentityCardFront.VALID_UNTIL_FIELD_NAME="ValidUntil",MoIdentityCardFront.VALID_UNTIL_FIELD_NAME_NORMALIZED="MoIdentityCardFront.ValidUntil",MoIdentityCardFront.VALIDATION_PHOTO_FIELD_NAME="ValidationPhoto",MoIdentityCardFront.VALIDATION_PHOTO_FIELD_NAME_NORMALIZED="MoIdentityCardFront.ValidationPhoto";const ImageRotationValues=["NONE","CLOCKWISE_90","CLOCKWISE_180","COUNTERCLOCKWISE_90"],ImageOriginValues=["TOP_LEFT","TOP_RIGHT","BOTTOM_LEFT","BOTTOM_RIGHT"],LicenseStatusValues=["OKAY","TRIAL","OKAY_EXPIRING_SOON","FAILURE_NOT_SET","FAILURE_CORRUPTED","FAILURE_WRONG_OS","FAILURE_APP_ID_MISMATCH","FAILURE_EXPIRED","FAILURE_SERVER","FAILURE_VERSION","FAILURE_INACTIVE"];class DeviceDeregistrationError{constructor(e={}){if(void 0===e.deviceId)throw new Error("deviceId must be present in constructor argument");if(this.deviceId=e.deviceId,void 0===e.errorMessage)throw new Error("errorMessage must be present in constructor argument");this.errorMessage=e.errorMessage}serialize(e=new ToJsonConfiguration){return{deviceId:this.deviceId,errorMessage:this.errorMessage}}}class LicenseInfo{constructor(e={}){if(this.devices=null,void 0===e.status)throw new Error("status must be present in constructor argument");if(this.status=e.status,void 0===e.isValid)throw new Error("isValid must be present in constructor argument");if(this.isValid=e.isValid,void 0===e.licenseStatusMessage)throw new Error("licenseStatusMessage must be present in constructor argument");if(this.licenseStatusMessage=e.licenseStatusMessage,void 0===e.expirationTimestamp)throw new Error("expirationTimestamp must be present in constructor argument");if(this.expirationTimestamp=e.expirationTimestamp,void 0===e.expirationDateString)throw new Error("expirationDateString must be present in constructor argument");if(this.expirationDateString=e.expirationDateString,void 0===e.errorMessage)throw new Error("errorMessage must be present in constructor argument");if(this.errorMessage=e.errorMessage,void 0===e.onlineLicenseCheckInProgress)throw new Error("onlineLicenseCheckInProgress must be present in constructor argument");if(this.onlineLicenseCheckInProgress=e.onlineLicenseCheckInProgress,void 0===e.license)throw new Error("license must be present in constructor argument");if(this.license=e.license,void 0!==e.devices&&(this.devices=null!=e.devices?e.devices:null),void 0===e.nextOnlineLicenseCheckInMs)throw new Error("nextOnlineLicenseCheckInMs must be present in constructor argument");if(this.nextOnlineLicenseCheckInMs=e.nextOnlineLicenseCheckInMs,void 0===e.deviceDeregistationErrors)throw new Error("deviceDeregistationErrors must be present in constructor argument");this.deviceDeregistationErrors=e.deviceDeregistationErrors.map((e=>new DeviceDeregistrationError(e)))}serialize(e=new ToJsonConfiguration){return{status:this.status,isValid:this.isValid,licenseStatusMessage:this.licenseStatusMessage,expirationTimestamp:this.expirationTimestamp,expirationDateString:this.expirationDateString,errorMessage:this.errorMessage,onlineLicenseCheckInProgress:this.onlineLicenseCheckInProgress,license:this.license,devices:null!=this.devices?this.devices:null,nextOnlineLicenseCheckInMs:this.nextOnlineLicenseCheckInMs,deviceDeregistationErrors:this.deviceDeregistationErrors.map((t=>t.serialize(e)))}}}const FeatureValues=["BARCODE_SCANNER","CHECK_SCANNER","CREDIT_CARD_SCANNER","IMAGE_PROCESSING","DOCUMENT_SCANNER","LICENSE_PLATE_SCANNER","MEDICAL_CERTIFICATE_SCANNER","MRZ_SCANNER","OCR","TEXT_PATTERN_SCANNER","PDF_CREATION","ID_CARD_SCANNER","DRIVER_LICENSE_SCANNER","EHIC_SCANNER","DOCUMENT_CLASSIFICATION"],MrzDocumentTypeValues=["UNKNOWN","CREW_MEMBER_CERTIFICATE","ID_CARD","PASSPORT","VISA","CH_DRIVING_LICENSE"];class MrzScannerResult{constructor(e={}){if(this.success=!1,this._released=!1,void 0!==e.success&&(this.success=e.success),void 0===e.rawMRZ)throw new Error("rawMRZ must be present in constructor argument");if(this.rawMRZ=e.rawMRZ,void 0===e.document)throw new Error("document must be present in constructor argument");this.document=null!=e.document?new GenericDocument(e.document):null}async serialize(e=new ToJsonConfiguration){return{success:this.success,rawMRZ:this.rawMRZ,document:null!=this.document?await this.document.serialize(e):null}}release(){this._released||(null!=this.document&&this.document.release(),this._released=!0)}async encodeImages(){null!=this.document&&await this.document.encodeImages()}}const MrzIncompleteResultHandlingValues=["ACCEPT","REJECT"];class MrzScannerConfiguration{constructor(e={}){this.frameAccumulationConfiguration=new AccumulatedResultsVerifierConfiguration({}),this.enableDetection=!0,this.incompleteResultHandling="REJECT",this.returnCrops=!1,this.processingMode="AUTO",void 0!==e.frameAccumulationConfiguration&&(this.frameAccumulationConfiguration=new AccumulatedResultsVerifierConfiguration(e.frameAccumulationConfiguration)),void 0!==e.enableDetection&&(this.enableDetection=e.enableDetection),void 0!==e.incompleteResultHandling&&(this.incompleteResultHandling=e.incompleteResultHandling),void 0!==e.returnCrops&&(this.returnCrops=e.returnCrops),void 0!==e.processingMode&&(this.processingMode=e.processingMode)}}class MrzParserConfiguration{constructor(e={}){this.incompleteResultHandling="ACCEPT",void 0!==e.incompleteResultHandling&&(this.incompleteResultHandling=e.incompleteResultHandling)}}class PdfAttributes{constructor(e={}){this.author="Created with Scanbot SDK",this.creator="",this.title="",this.subject="",this.keywords="",void 0!==e.author&&(this.author=e.author),void 0!==e.creator&&(this.creator=e.creator),void 0!==e.title&&(this.title=e.title),void 0!==e.subject&&(this.subject=e.subject),void 0!==e.keywords&&(this.keywords=e.keywords)}}const PageSizeValues=["LETTER","LEGAL","A3","A4","A5","B4","B5","EXECUTIVE","US4x6","US4x8","US5x7","COMM10","CUSTOM"],PageDirectionValues=["PORTRAIT","LANDSCAPE","AUTO"],PageFitValues=["FIT_IN","FILL_IN","STRETCH","NONE"],ResamplingMethodValues=["NONE","NEAREST","LINEAR","CUBIC","LANCZOS4","AREA"];class PdfConfiguration{constructor(e={}){this.attributes=new PdfAttributes({}),this.pageSize="A4",this.pageDirection="PORTRAIT",this.pageFit="FIT_IN",this.dpi=72,this.jpegQuality=80,this.resamplingMethod="NONE",this.binarizationFilter=null,void 0!==e.attributes&&(this.attributes=new PdfAttributes(e.attributes)),void 0!==e.pageSize&&(this.pageSize=e.pageSize),void 0!==e.pageDirection&&(this.pageDirection=e.pageDirection),void 0!==e.pageFit&&(this.pageFit=e.pageFit),void 0!==e.dpi&&(this.dpi=e.dpi),void 0!==e.jpegQuality&&(this.jpegQuality=e.jpegQuality),void 0!==e.resamplingMethod&&(this.resamplingMethod=e.resamplingMethod),void 0!==e.binarizationFilter&&(this.binarizationFilter=null!=e.binarizationFilter?exports.ParametricFilter.from(e.binarizationFilter):null)}}const PatternGrammarValues=["WILDCARD","REGEX"];class WordBox{constructor(e={}){if(this.recognitionConfidence=0,void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.boundingRect)throw new Error("boundingRect must be present in constructor argument");this.boundingRect={x:e.boundingRect.x,y:e.boundingRect.y,width:e.boundingRect.width,height:e.boundingRect.height},void 0!==e.recognitionConfidence&&(this.recognitionConfidence=e.recognitionConfidence)}serialize(e=new ToJsonConfiguration){return{text:this.text,boundingRect:this.boundingRect,recognitionConfidence:this.recognitionConfidence}}}class SymbolBox{constructor(e={}){if(void 0===e.symbol)throw new Error("symbol must be present in constructor argument");if(this.symbol=e.symbol,void 0===e.boundingRect)throw new Error("boundingRect must be present in constructor argument");if(this.boundingRect={x:e.boundingRect.x,y:e.boundingRect.y,width:e.boundingRect.width,height:e.boundingRect.height},void 0===e.recognitionConfidence)throw new Error("recognitionConfidence must be present in constructor argument");this.recognitionConfidence=e.recognitionConfidence}serialize(e=new ToJsonConfiguration){return{symbol:this.symbol,boundingRect:this.boundingRect,recognitionConfidence:this.recognitionConfidence}}}class TextPatternScannerResult{constructor(e={}){if(this.confidence=0,this.validationSuccessful=!1,void 0===e.rawText)throw new Error("rawText must be present in constructor argument");if(this.rawText=e.rawText,void 0===e.wordBoxes)throw new Error("wordBoxes must be present in constructor argument");if(this.wordBoxes=e.wordBoxes.map((e=>new WordBox(e))),void 0===e.symbolBoxes)throw new Error("symbolBoxes must be present in constructor argument");this.symbolBoxes=e.symbolBoxes.map((e=>new SymbolBox(e))),void 0!==e.confidence&&(this.confidence=e.confidence),void 0!==e.validationSuccessful&&(this.validationSuccessful=e.validationSuccessful)}serialize(e=new ToJsonConfiguration){return{rawText:this.rawText,wordBoxes:this.wordBoxes.map((t=>t.serialize(e))),symbolBoxes:this.symbolBoxes.map((t=>t.serialize(e))),confidence:this.confidence,validationSuccessful:this.validationSuccessful}}}exports.ContentValidator=void 0,(exports.ContentValidator||(exports.ContentValidator={})).from=function(e){const t=e._type;switch(t){case"DefaultContentValidator":return new DefaultContentValidator(e);case"PatternContentValidator":return new PatternContentValidator(e);default:throw new Error(`Unknown child class name: ${t}`)}};class DefaultContentValidator{constructor(e={}){this._type="DefaultContentValidator",this.allowedCharacters="",void 0!==e.allowedCharacters&&(this.allowedCharacters=e.allowedCharacters)}}class PatternContentValidator{constructor(e={}){if(this._type="PatternContentValidator",this.allowedCharacters="",this.matchSubstring=!1,this.patternGrammar="WILDCARD",void 0!==e.allowedCharacters&&(this.allowedCharacters=e.allowedCharacters),void 0===e.pattern)throw new Error("pattern must be present in constructor argument");this.pattern=e.pattern,void 0!==e.matchSubstring&&(this.matchSubstring=e.matchSubstring),void 0!==e.patternGrammar&&(this.patternGrammar=e.patternGrammar)}}class TextPatternScannerConfiguration{constructor(e={}){this.ocrResolutionLimit=0,this.maximumNumberOfAccumulatedFrames=3,this.minimumNumberOfRequiredFramesWithEqualScanningResult=2,this.optimizeSingleLine=!1,this.validator=new DefaultContentValidator({}),void 0!==e.ocrResolutionLimit&&(this.ocrResolutionLimit=e.ocrResolutionLimit),void 0!==e.maximumNumberOfAccumulatedFrames&&(this.maximumNumberOfAccumulatedFrames=e.maximumNumberOfAccumulatedFrames),void 0!==e.minimumNumberOfRequiredFramesWithEqualScanningResult&&(this.minimumNumberOfRequiredFramesWithEqualScanningResult=e.minimumNumberOfRequiredFramesWithEqualScanningResult),void 0!==e.optimizeSingleLine&&(this.optimizeSingleLine=e.optimizeSingleLine),void 0!==e.validator&&(this.validator=exports.ContentValidator.from(e.validator))}}const CompressionModeValues=["NONE","CCITTRLE","CCITT_T4","CCITT_T6","LZW","JPEG","CCITTRLEW","PACKBITS","DEFLATE","ADOBE_DEFLATE"];exports.UserFieldValue=void 0,(exports.UserFieldValue||(exports.UserFieldValue={})).from=function(e){const t=e._type;switch(t){case"UserFieldDoubleValue":return new UserFieldDoubleValue(e);case"UserFieldStringValue":return new UserFieldStringValue(e);case"UserFieldIntValue":return new UserFieldIntValue(e);default:throw new Error(`Unknown child class name: ${t}`)}};class UserFieldDoubleValue{constructor(e={}){if(this._type="UserFieldDoubleValue",void 0===e.value)throw new Error("value must be present in constructor argument");this.value=e.value}}class UserFieldStringValue{constructor(e={}){if(this._type="UserFieldStringValue",void 0===e.value)throw new Error("value must be present in constructor argument");this.value=e.value}}class UserFieldIntValue{constructor(e={}){if(this._type="UserFieldIntValue",void 0===e.value)throw new Error("value must be present in constructor argument");this.value=e.value}}class UserField{constructor(e={}){if(void 0===e.tag)throw new Error("tag must be present in constructor argument");if(this.tag=e.tag,void 0===e.name)throw new Error("name must be present in constructor argument");if(this.name=e.name,void 0===e.value)throw new Error("value must be present in constructor argument");this.value=exports.UserFieldValue.from(e.value)}}class TiffGeneratorParameters{constructor(e={}){this.compression="LZW",this.jpegQuality=80,this.zipCompressionLevel=6,this.dpi=72,this.userFields=[],this.binarizationFilter=null,void 0!==e.compression&&(this.compression=e.compression),void 0!==e.jpegQuality&&(this.jpegQuality=e.jpegQuality),void 0!==e.zipCompressionLevel&&(this.zipCompressionLevel=e.zipCompressionLevel),void 0!==e.dpi&&(this.dpi=e.dpi),void 0!==e.userFields&&(this.userFields=e.userFields.map((e=>new UserField(e)))),void 0!==e.binarizationFilter&&(this.binarizationFilter=null!=e.binarizationFilter?exports.ParametricFilter.from(e.binarizationFilter):null)}}!function(e){e.defaultCompression="LZW",e.binaryDocumentOptimizedCompression="CCITT_T6"}(TiffGeneratorParameters||(TiffGeneratorParameters={}));class Palette{constructor(e={}){this.sbColorPrimary="#C8193C",this.sbColorPrimaryDisabled="#F5F5F5",this.sbColorNegative="#FF3737",this.sbColorPositive="#4EFFB4",this.sbColorWarning="#FFCE5C",this.sbColorSecondary="#FFEDEE",this.sbColorSecondaryDisabled="#F5F5F5",this.sbColorOnPrimary="#FFFFFF",this.sbColorOnSecondary="#C8193C",this.sbColorSurface="#FFFFFF",this.sbColorOutline="#EFEFEF",this.sbColorOnSurfaceVariant="#707070",this.sbColorOnSurface="#000000",this.sbColorSurfaceLow="#00000026",this.sbColorSurfaceHigh="#0000007A",this.sbColorModalOverlay="#000000A3",void 0!==e.sbColorPrimary&&(this.sbColorPrimary=e.sbColorPrimary),void 0!==e.sbColorPrimaryDisabled&&(this.sbColorPrimaryDisabled=e.sbColorPrimaryDisabled),void 0!==e.sbColorNegative&&(this.sbColorNegative=e.sbColorNegative),void 0!==e.sbColorPositive&&(this.sbColorPositive=e.sbColorPositive),void 0!==e.sbColorWarning&&(this.sbColorWarning=e.sbColorWarning),void 0!==e.sbColorSecondary&&(this.sbColorSecondary=e.sbColorSecondary),void 0!==e.sbColorSecondaryDisabled&&(this.sbColorSecondaryDisabled=e.sbColorSecondaryDisabled),void 0!==e.sbColorOnPrimary&&(this.sbColorOnPrimary=e.sbColorOnPrimary),void 0!==e.sbColorOnSecondary&&(this.sbColorOnSecondary=e.sbColorOnSecondary),void 0!==e.sbColorSurface&&(this.sbColorSurface=e.sbColorSurface),void 0!==e.sbColorOutline&&(this.sbColorOutline=e.sbColorOutline),void 0!==e.sbColorOnSurfaceVariant&&(this.sbColorOnSurfaceVariant=e.sbColorOnSurfaceVariant),void 0!==e.sbColorOnSurface&&(this.sbColorOnSurface=e.sbColorOnSurface),void 0!==e.sbColorSurfaceLow&&(this.sbColorSurfaceLow=e.sbColorSurfaceLow),void 0!==e.sbColorSurfaceHigh&&(this.sbColorSurfaceHigh=e.sbColorSurfaceHigh),void 0!==e.sbColorModalOverlay&&(this.sbColorModalOverlay=e.sbColorModalOverlay)}}class StyledText{constructor(e={}){this.visible=!0,this.text="",this.color="#FFFFFF",this.useShadow=!1,void 0!==e.visible&&(this.visible=e.visible),void 0!==e.text&&(this.text=e.text),void 0!==e.color&&(this.color=e.color),void 0!==e.useShadow&&(this.useShadow=e.useShadow)}}class IconStyle{constructor(e={}){this.visible=!0,this.color="#FFFFFF",void 0!==e.visible&&(this.visible=e.visible),void 0!==e.color&&(this.color=e.color)}}class IconButton{constructor(e={}){this.visible=!0,this.color="#FFFFFF",this.accessibilityDescription="",void 0!==e.visible&&(this.visible=e.visible),void 0!==e.color&&(this.color=e.color),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription)}}class PolygonStyle{constructor(e={}){this.strokeColor="#FFFFFFFF",this.fillColor="#FFFFFF30",this.strokeWidth=2,this.cornerRadius=0,void 0!==e.strokeColor&&(this.strokeColor=e.strokeColor),void 0!==e.fillColor&&(this.fillColor=e.fillColor),void 0!==e.strokeWidth&&(this.strokeWidth=e.strokeWidth),void 0!==e.cornerRadius&&(this.cornerRadius=e.cornerRadius)}}class BackgroundStyle{constructor(e={}){this.strokeColor="#FFFFFFFF",this.fillColor="#FFFFFF30",this.strokeWidth=2,void 0!==e.strokeColor&&(this.strokeColor=e.strokeColor),void 0!==e.fillColor&&(this.fillColor=e.fillColor),void 0!==e.strokeWidth&&(this.strokeWidth=e.strokeWidth)}}class ForegroundStyle{constructor(e={}){this.iconVisible=!0,this.color="#FFFFFF",this.useShadow=!1,void 0!==e.iconVisible&&(this.iconVisible=e.iconVisible),void 0!==e.color&&(this.color=e.color),void 0!==e.useShadow&&(this.useShadow=e.useShadow)}}class BadgeStyle{constructor(e={}){this.visible=!0,this.background=new BackgroundStyle({}),this.foregroundColor="?sbColorOnSurface",void 0!==e.visible&&(this.visible=e.visible),void 0!==e.background&&(this.background=new BackgroundStyle(e.background)),void 0!==e.foregroundColor&&(this.foregroundColor=e.foregroundColor)}}class RoundButton{constructor(e={}){this.visible=!0,this.accessibilityDescription="",this.backgroundColor="#0000007A",this.foregroundColor="#FFFFFF",this.activeBackgroundColor="#FFCE5C",this.activeForegroundColor="#1C1B1F",void 0!==e.visible&&(this.visible=e.visible),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.foregroundColor&&(this.foregroundColor=e.foregroundColor),void 0!==e.activeBackgroundColor&&(this.activeBackgroundColor=e.activeBackgroundColor),void 0!==e.activeForegroundColor&&(this.activeForegroundColor=e.activeForegroundColor)}}class BadgedButton{constructor(e={}){this.badgeBackgroundColor="#FFFFFF",this.badgeForegroundColor="#C8193C",this.visible=!0,this.backgroundColor="#0000007A",this.foregroundColor="#FFFFFF",this.activeBackgroundColor="#FFCE5C",this.activeForegroundColor="#1C1B1F",void 0!==e.badgeBackgroundColor&&(this.badgeBackgroundColor=e.badgeBackgroundColor),void 0!==e.badgeForegroundColor&&(this.badgeForegroundColor=e.badgeForegroundColor),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.foregroundColor&&(this.foregroundColor=e.foregroundColor),void 0!==e.activeBackgroundColor&&(this.activeBackgroundColor=e.activeBackgroundColor),void 0!==e.activeForegroundColor&&(this.activeForegroundColor=e.activeForegroundColor)}}class ButtonConfiguration{constructor(e={}){this.visible=!0,this.text="",this.accessibilityDescription="",this.background=new BackgroundStyle({}),this.foreground=new ForegroundStyle({}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.text&&(this.text=e.text),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.background&&(this.background=new BackgroundStyle(e.background)),void 0!==e.foreground&&(this.foreground=new ForegroundStyle(e.foreground))}}class PopupMenuItem{constructor(e={}){this.title=new StyledText({}),this.accessibilityDescription="",this.icon=new IconStyle({}),void 0!==e.title&&(this.title=new StyledText(e.title)),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.icon&&(this.icon=new IconStyle(e.icon))}}class BarButtonConfiguration{constructor(e={}){this.visible=!0,this.title=new StyledText({}),this.accessibilityDescription="",this.background=new BackgroundStyle({}),this.icon=new IconStyle({}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.title&&(this.title=new StyledText(e.title)),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.background&&(this.background=new BackgroundStyle(e.background)),void 0!==e.icon&&(this.icon=new IconStyle(e.icon))}}const OrientationLockModeValues=["NONE","PORTRAIT","LANDSCAPE"],CameraPreviewModeValues=["FIT_IN","FILL_IN"],SoundTypeValues=["MODERN_BEEP","CLASSIC_BEEP"];class Sound{constructor(e={}){this.successBeepEnabled=!0,this.soundType="MODERN_BEEP",void 0!==e.successBeepEnabled&&(this.successBeepEnabled=e.successBeepEnabled),void 0!==e.soundType&&(this.soundType=e.soundType)}}class Vibration{constructor(e={}){this.enabled=!1,void 0!==e.enabled&&(this.enabled=e.enabled)}}class Timeouts{constructor(e={}){this.autoCancelTimeout=0,this.initialScanDelay=0,void 0!==e.autoCancelTimeout&&(this.autoCancelTimeout=e.autoCancelTimeout),void 0!==e.initialScanDelay&&(this.initialScanDelay=e.initialScanDelay)}}class EdgeInsets{constructor(e={}){this.top=0,this.left=0,this.bottom=0,this.right=0,void 0!==e.top&&(this.top=e.top),void 0!==e.left&&(this.left=e.left),void 0!==e.bottom&&(this.bottom=e.bottom),void 0!==e.right&&(this.right=e.right)}}class ArOverlayPolygonConfiguration{constructor(e={}){this.visible=!0,this.deselected=new PolygonStyle({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:2,cornerRadius:2}),this.selected=new PolygonStyle({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:2,cornerRadius:2}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.deselected&&(this.deselected=new PolygonStyle(e.deselected)),void 0!==e.selected&&(this.selected=new PolygonStyle(e.selected))}}const BarcodeItemInfoPositionValues=["DISABLED","STACKED","BELOW","ABOVE"];class BarcodeItemConfiguration{constructor(e={}){this.imageVisible=!0,this.titleSelected=new StyledText({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),this.subtitleSelected=new StyledText({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.titleDeselected=new StyledText({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),this.subtitleDeselected=new StyledText({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.backgroundSelected=new PolygonStyle({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:0,cornerRadius:10}),this.backgroundDeselected=new PolygonStyle({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:0,cornerRadius:10}),void 0!==e.imageVisible&&(this.imageVisible=e.imageVisible),void 0!==e.titleSelected&&(this.titleSelected=new StyledText(e.titleSelected)),void 0!==e.subtitleSelected&&(this.subtitleSelected=new StyledText(e.subtitleSelected)),void 0!==e.titleDeselected&&(this.titleDeselected=new StyledText(e.titleDeselected)),void 0!==e.subtitleDeselected&&(this.subtitleDeselected=new StyledText(e.subtitleDeselected)),void 0!==e.backgroundSelected&&(this.backgroundSelected=new PolygonStyle(e.backgroundSelected)),void 0!==e.backgroundDeselected&&(this.backgroundDeselected=new PolygonStyle(e.backgroundDeselected))}}class ArOverlayGeneralConfiguration{constructor(e={}){this.visible=!1,this.counterBadge=new BadgeStyle({background:new BackgroundStyle({}),foregroundColor:"?sbColorOnSurface"}),this.automaticSelectionEnabled=!1,this.barcodeItemInfoPosition="DISABLED",this.polygon=new ArOverlayPolygonConfiguration({visible:!0,deselected:new PolygonStyle({}),selected:new PolygonStyle({})}),this.barcodeItemConfiguration=new BarcodeItemConfiguration({imageVisible:!0,titleSelected:new StyledText({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleSelected:new StyledText({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),titleDeselected:new StyledText({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleDeselected:new StyledText({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),backgroundSelected:new PolygonStyle({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:1,cornerRadius:5}),backgroundDeselected:new PolygonStyle({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:1,cornerRadius:5})}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.counterBadge&&(this.counterBadge=new BadgeStyle(e.counterBadge)),void 0!==e.automaticSelectionEnabled&&(this.automaticSelectionEnabled=e.automaticSelectionEnabled),void 0!==e.barcodeItemInfoPosition&&(this.barcodeItemInfoPosition=e.barcodeItemInfoPosition),void 0!==e.polygon&&(this.polygon=new ArOverlayPolygonConfiguration(e.polygon)),void 0!==e.barcodeItemConfiguration&&(this.barcodeItemConfiguration=new BarcodeItemConfiguration(e.barcodeItemConfiguration))}}class FindAndPickArOverlayPolygonConfiguration{constructor(e={}){this.visible=!0,this.partiallyScanned=new PolygonStyle({strokeColor:"?sbColorWarning",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),this.rejected=new PolygonStyle({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),this.completed=new PolygonStyle({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.partiallyScanned&&(this.partiallyScanned=new PolygonStyle(e.partiallyScanned)),void 0!==e.rejected&&(this.rejected=new PolygonStyle(e.rejected)),void 0!==e.completed&&(this.completed=new PolygonStyle(e.completed))}}class FindAndPickBadgeConfiguration{constructor(e={}){this.partiallyScanned=new BadgeStyle({visible:!0,background:new BackgroundStyle({strokeColor:"#FFFFFF30",fillColor:"?sbColorWarning",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),this.rejected=new BadgeStyle({visible:!0,background:new BackgroundStyle({strokeColor:"#FFFFFF30",fillColor:"?sbColorNegative",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),this.completed=new BadgeStyle({visible:!0,background:new BackgroundStyle({strokeColor:"#FFFFFF30",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),void 0!==e.partiallyScanned&&(this.partiallyScanned=new BadgeStyle(e.partiallyScanned)),void 0!==e.rejected&&(this.rejected=new BadgeStyle(e.rejected)),void 0!==e.completed&&(this.completed=new BadgeStyle(e.completed))}}class ArOverlayFindAndPickConfiguration{constructor(e={}){this.visible=!1,this.automaticSelectionEnabled=!0,this.polygon=new FindAndPickArOverlayPolygonConfiguration({}),this.badge=new FindAndPickBadgeConfiguration({}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.automaticSelectionEnabled&&(this.automaticSelectionEnabled=e.automaticSelectionEnabled),void 0!==e.polygon&&(this.polygon=new FindAndPickArOverlayPolygonConfiguration(e.polygon)),void 0!==e.badge&&(this.badge=new FindAndPickBadgeConfiguration(e.badge))}}class BarcodeItemErrorState{constructor(e={}){this.title=new StyledText({text:"Connection Error!",color:"?sbColorOnSurface"}),this.subtitle=new StyledText({text:"There was an issue and the data requested was not fetched. You could try again or discard this result to start a new scan.",color:"?sbColorOnSurfaceVariant"}),this.retryButton=new ButtonConfiguration({}),this.cancelButton=new ButtonConfiguration({}),void 0!==e.title&&(this.title=new StyledText(e.title)),void 0!==e.subtitle&&(this.subtitle=new StyledText(e.subtitle)),void 0!==e.retryButton&&(this.retryButton=new ButtonConfiguration(e.retryButton)),void 0!==e.cancelButton&&(this.cancelButton=new ButtonConfiguration(e.cancelButton))}}class BarcodeMappedData{constructor(e={}){if(void 0===e.title)throw new Error("title must be present in constructor argument");if(this.title=e.title,void 0===e.subtitle)throw new Error("subtitle must be present in constructor argument");if(this.subtitle=e.subtitle,void 0===e.barcodeImage)throw new Error("barcodeImage must be present in constructor argument");this.barcodeImage=e.barcodeImage}}!function(e){e.BARCODE_IMAGE_KEY="BARCODE_IMAGE"}(BarcodeMappedData||(BarcodeMappedData={}));class BarcodeInfoMapping{constructor(e={}){this.barcodeItemMapper=null,this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.modalOverlayColor="?sbColorModalOverlay",this.loadingMessage=new StyledText({text:"Loading message for barcode info mapping.",color:"?sbColorPrimary"}),this.errorState=new BarcodeItemErrorState({}),void 0!==e.barcodeItemMapper&&(this.barcodeItemMapper=null!=e.barcodeItemMapper?e.barcodeItemMapper:null),void 0!==e.sheetColor&&(this.sheetColor=e.sheetColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.modalOverlayColor&&(this.modalOverlayColor=e.modalOverlayColor),void 0!==e.loadingMessage&&(this.loadingMessage=new StyledText(e.loadingMessage)),void 0!==e.errorState&&(this.errorState=new BarcodeItemErrorState(e.errorState))}}class ActionBarConfiguration{constructor(e={}){this.flashButton=new RoundButton({visible:!0,accessibilityDescription:"?accessibilityDescriptionFlashButton",backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"}),this.zoomButton=new RoundButton({visible:!0,accessibilityDescription:"?accessibilityDescriptionZoomButton",backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"}),this.flipCameraButton=new RoundButton({visible:!0,accessibilityDescription:"?accessibilityDescriptionFlipCameraButton",backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"}),void 0!==e.flashButton&&(this.flashButton=new RoundButton(e.flashButton)),void 0!==e.zoomButton&&(this.zoomButton=new RoundButton(e.zoomButton)),void 0!==e.flipCameraButton&&(this.flipCameraButton=new RoundButton(e.flipCameraButton))}}const CameraModuleValues=["FRONT","BACK","BACK_WIDEST"];class CameraConfiguration{constructor(e={}){this.cameraModule="BACK",this.zoomSteps=[1,2,5],this.defaultZoomFactor=1,this.flashEnabled=!1,this.minFocusDistanceLock=!1,this.touchToFocusEnabled=!1,this.pinchToZoomEnabled=!0,this.orientationLockMode="NONE",this.cameraPreviewMode="FILL_IN",this.hardwareButtonsEnabled=!0,this.fpsLimit=20,this.cameraLiveScannerResolution="FULL_HD",void 0!==e.cameraModule&&(this.cameraModule=e.cameraModule),void 0!==e.zoomSteps&&(this.zoomSteps=e.zoomSteps.map((e=>e))),void 0!==e.defaultZoomFactor&&(this.defaultZoomFactor=e.defaultZoomFactor),void 0!==e.flashEnabled&&(this.flashEnabled=e.flashEnabled),void 0!==e.minFocusDistanceLock&&(this.minFocusDistanceLock=e.minFocusDistanceLock),void 0!==e.touchToFocusEnabled&&(this.touchToFocusEnabled=e.touchToFocusEnabled),void 0!==e.pinchToZoomEnabled&&(this.pinchToZoomEnabled=e.pinchToZoomEnabled),void 0!==e.orientationLockMode&&(this.orientationLockMode=e.orientationLockMode),void 0!==e.cameraPreviewMode&&(this.cameraPreviewMode=e.cameraPreviewMode),void 0!==e.hardwareButtonsEnabled&&(this.hardwareButtonsEnabled=e.hardwareButtonsEnabled),void 0!==e.fpsLimit&&(this.fpsLimit=e.fpsLimit),void 0!==e.cameraLiveScannerResolution&&(this.cameraLiveScannerResolution=e.cameraLiveScannerResolution)}}class CameraPermissionScreen{constructor(e={}){this.statusBarMode="DARK",this.background="?sbColorSurface",this.iconBackground="?sbColorOutline",this.icon=new IconStyle({color:"?sbColorOnSurface"}),this.enableCameraButton=new ButtonConfiguration({text:"?cameraPermissionEnableCameraButton",background:new BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorOnPrimary"})}),this.closeButton=new ButtonConfiguration({text:"?cameraPermissionCloseButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary"})}),this.enableCameraTitle=new StyledText({text:"?cameraPermissionEnableCameraTitle",color:"?sbColorOnSurface"}),this.enableCameraExplanation=new StyledText({text:"?cameraPermissionEnableCameraExplanation",color:"?sbColorOnSurfaceVariant"}),void 0!==e.statusBarMode&&(this.statusBarMode=e.statusBarMode),void 0!==e.background&&(this.background=e.background),void 0!==e.iconBackground&&(this.iconBackground=e.iconBackground),void 0!==e.icon&&(this.icon=new IconStyle(e.icon)),void 0!==e.enableCameraButton&&(this.enableCameraButton=new ButtonConfiguration(e.enableCameraButton)),void 0!==e.closeButton&&(this.closeButton=new ButtonConfiguration(e.closeButton)),void 0!==e.enableCameraTitle&&(this.enableCameraTitle=new StyledText(e.enableCameraTitle)),void 0!==e.enableCameraExplanation&&(this.enableCameraExplanation=new StyledText(e.enableCameraExplanation))}}class TopBarConfiguration{constructor(e={}){this.title=new StyledText({visible:!1,text:"Scan Item",color:"?sbColorOnPrimary"}),this.mode="SOLID",this.statusBarMode="LIGHT",this.backgroundColor="?sbColorPrimary",this.cancelButton=new ButtonConfiguration({text:"Cancel",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new ForegroundStyle({color:"?sbColorOnPrimary"})}),void 0!==e.title&&(this.title=new StyledText(e.title)),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.statusBarMode&&(this.statusBarMode=e.statusBarMode),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.cancelButton&&(this.cancelButton=new ButtonConfiguration(e.cancelButton))}}const StatusBarModeValues=["DARK","LIGHT","HIDDEN"],TopBarModeValues=["SOLID","GRADIENT","HIDDEN"];class UserGuidanceConfiguration{constructor(e={}){this.visible=!0,this.title=new StyledText({color:"?sbColorOnPrimary"}),this.background=new BackgroundStyle({strokeColor:"#00000000",fillColor:"?sbColorSurfaceLow"}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.title&&(this.title=new StyledText(e.title)),void 0!==e.background&&(this.background=new BackgroundStyle(e.background))}}class IconUserGuidanceConfiguration{constructor(e={}){this.visible=!0,this.icon=new IconStyle({color:"?sbColorOnPrimary"}),this.title=new StyledText({color:"?sbColorOnPrimary"}),this.background=new BackgroundStyle({fillColor:"?sbColorSurfaceLow"}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.icon&&(this.icon=new IconStyle(e.icon)),void 0!==e.title&&(this.title=new StyledText(e.title)),void 0!==e.background&&(this.background=new BackgroundStyle(e.background))}}exports.BaseViewFinderConfiguration=void 0,(exports.BaseViewFinderConfiguration||(exports.BaseViewFinderConfiguration={})).from=function(e){const t=e._type;switch(t){case"ViewFinderConfiguration":return new ViewFinderConfiguration(e);case"PermanentViewFinderConfiguration":return new PermanentViewFinderConfiguration(e);default:throw new Error(`Unknown child class name: ${t}`)}};class ViewFinderConfiguration{constructor(e={}){this._type="ViewFinderConfiguration",this.style=new FinderCorneredStyle({strokeColor:"?sbColorSurface",strokeWidth:2,cornerRadius:10}),this.overlayColor="?sbColorSurfaceLow",this.aspectRatio=new AspectRatio({width:1,height:1}),this.minimumInsets=new EdgeInsets({top:16,left:16,bottom:16,right:16}),this.preferredHeight=-1,this.visible=!0,void 0!==e.style&&(this.style=exports.FinderStyle.from(e.style)),void 0!==e.overlayColor&&(this.overlayColor=e.overlayColor),void 0!==e.aspectRatio&&(this.aspectRatio=new AspectRatio(e.aspectRatio)),void 0!==e.minimumInsets&&(this.minimumInsets=new EdgeInsets(e.minimumInsets)),void 0!==e.preferredHeight&&(this.preferredHeight=e.preferredHeight),void 0!==e.visible&&(this.visible=e.visible)}}class PermanentViewFinderConfiguration{constructor(e={}){this._type="PermanentViewFinderConfiguration",this.style=new FinderCorneredStyle({strokeColor:"?sbColorSurface",strokeWidth:2,cornerRadius:10}),this.overlayColor="?sbColorSurfaceLow",this.aspectRatio=new AspectRatio({width:1,height:1}),this.minimumInsets=new EdgeInsets({top:16,left:16,bottom:16,right:16}),this.preferredHeight=-1,void 0!==e.style&&(this.style=exports.FinderStyle.from(e.style)),void 0!==e.overlayColor&&(this.overlayColor=e.overlayColor),void 0!==e.aspectRatio&&(this.aspectRatio=new AspectRatio(e.aspectRatio)),void 0!==e.minimumInsets&&(this.minimumInsets=new EdgeInsets(e.minimumInsets)),void 0!==e.preferredHeight&&(this.preferredHeight=e.preferredHeight)}}exports.FinderStyle=void 0,(exports.FinderStyle||(exports.FinderStyle={})).from=function(e){const t=e._type;switch(t){case"FinderCorneredStyle":return new FinderCorneredStyle(e);case"FinderStrokedStyle":return new FinderStrokedStyle(e);default:throw new Error(`Unknown child class name: ${t}`)}};class FinderCorneredStyle{constructor(e={}){this._type="FinderCorneredStyle",this.strokeColor="#FFFFFFFF",this.strokeWidth=3,this.cornerRadius=10,void 0!==e.strokeColor&&(this.strokeColor=e.strokeColor),void 0!==e.strokeWidth&&(this.strokeWidth=e.strokeWidth),void 0!==e.cornerRadius&&(this.cornerRadius=e.cornerRadius)}}class FinderStrokedStyle{constructor(e={}){this._type="FinderStrokedStyle",this.strokeColor="#FFFFFFFF",this.strokeWidth=3,this.cornerRadius=10,void 0!==e.strokeColor&&(this.strokeColor=e.strokeColor),void 0!==e.strokeWidth&&(this.strokeWidth=e.strokeWidth),void 0!==e.cornerRadius&&(this.cornerRadius=e.cornerRadius)}}class BarcodeTextLocalization{constructor(e={}){this.topBarCancelButton="Cancel",this.topBarTitle="Scan Item",this.userGuidance="Move the finder over a barcode",this.barcodeInfoMappingLoadingMessage="Loading details...",this.barcodeInfoMappingErrorStateTitle="Connection Error!",this.barcodeInfoMappingErrorStateSubtitle="There was an issue and the data requested was not fetched. You could try again or discard this result to start a new scan.",this.barcodeInfoMappingErrorStateRetryButton="Retry",this.barcodeInfoMappingErrorStateCancelButton="Cancel",this.manualCountEditDialogTitle="Update count",this.manualCountEditDialogInfo="Adjust the number of items you scanned.",this.manualCountEditDialogUpdateButton="Update",this.manualCountEditDialogCancelButton="Cancel",this.sheetResetButton="Reset",this.sheetClearAllButton="Clear all",this.sheetSubmitButton="Submit",this.sheetStartScanningButton="Start scanning",this.sheetPlaceholderTitle="No barcodes here!",this.sheetPlaceholderSubtitle="The barcode list is currently empty. Close this sheet and scan your items to add them.",this.singleModeConfirmationCancelButton="Close",this.multipleModeSheetTitle="%d items",this.findAndPickSheetTitle="%d/%d scanned",this.findAndPickSheetBarcodeItemSubtitle="%d/%d added",this.findAndPickPartialAlertTitle="Incomplete scan!",this.findAndPickPartialAlertSubtitle="Some codes are yet to be scanned. Proceed with submission anyway?",this.findAndPickPartialAlertCancelButton="Cancel",this.findAndPickPartialAlertSubmitButton="Yes, Submit",this.findAndPickCompleteAlertTitle="All codes found!",this.findAndPickCompleteAlertSubtitle="You have successfully scanned all codes. Proceed with submission?",this.findAndPickCompleteAlertCancelButton="Dismiss",this.findAndPickCompleteAlertSubmitButton="Submit",this.accessibilityDescriptionCancelButton="Cancel",this.accessibilityDescriptionFlashButton="Toggle flash",this.accessibilityDescriptionZoomButton="Toggle camera zoom",this.accessibilityDescriptionFlipCameraButton="Flip camera",this.cameraPermissionEnableCameraTitle="Camera permission denied!",this.cameraPermissionEnableCameraExplanation="Please allow the usage of the camera to start the scanning process.",this.cameraPermissionEnableCameraButton="Grant permission",this.cameraPermissionCloseButton="Close",this.accessibilityDescriptionCameraPermissionEnableCameraButton="Tap to grant camera permission",this.accessibilityDescriptionCameraPermissionCloseButton="Close screen without granting permission",void 0!==e.topBarCancelButton&&(this.topBarCancelButton=e.topBarCancelButton),void 0!==e.topBarTitle&&(this.topBarTitle=e.topBarTitle),void 0!==e.userGuidance&&(this.userGuidance=e.userGuidance),void 0!==e.barcodeInfoMappingLoadingMessage&&(this.barcodeInfoMappingLoadingMessage=e.barcodeInfoMappingLoadingMessage),void 0!==e.barcodeInfoMappingErrorStateTitle&&(this.barcodeInfoMappingErrorStateTitle=e.barcodeInfoMappingErrorStateTitle),void 0!==e.barcodeInfoMappingErrorStateSubtitle&&(this.barcodeInfoMappingErrorStateSubtitle=e.barcodeInfoMappingErrorStateSubtitle),void 0!==e.barcodeInfoMappingErrorStateRetryButton&&(this.barcodeInfoMappingErrorStateRetryButton=e.barcodeInfoMappingErrorStateRetryButton),void 0!==e.barcodeInfoMappingErrorStateCancelButton&&(this.barcodeInfoMappingErrorStateCancelButton=e.barcodeInfoMappingErrorStateCancelButton),void 0!==e.manualCountEditDialogTitle&&(this.manualCountEditDialogTitle=e.manualCountEditDialogTitle),void 0!==e.manualCountEditDialogInfo&&(this.manualCountEditDialogInfo=e.manualCountEditDialogInfo),void 0!==e.manualCountEditDialogUpdateButton&&(this.manualCountEditDialogUpdateButton=e.manualCountEditDialogUpdateButton),void 0!==e.manualCountEditDialogCancelButton&&(this.manualCountEditDialogCancelButton=e.manualCountEditDialogCancelButton),void 0!==e.sheetResetButton&&(this.sheetResetButton=e.sheetResetButton),void 0!==e.sheetClearAllButton&&(this.sheetClearAllButton=e.sheetClearAllButton),void 0!==e.sheetSubmitButton&&(this.sheetSubmitButton=e.sheetSubmitButton),void 0!==e.sheetStartScanningButton&&(this.sheetStartScanningButton=e.sheetStartScanningButton),void 0!==e.sheetPlaceholderTitle&&(this.sheetPlaceholderTitle=e.sheetPlaceholderTitle),void 0!==e.sheetPlaceholderSubtitle&&(this.sheetPlaceholderSubtitle=e.sheetPlaceholderSubtitle),void 0!==e.singleModeConfirmationCancelButton&&(this.singleModeConfirmationCancelButton=e.singleModeConfirmationCancelButton),void 0!==e.multipleModeSheetTitle&&(this.multipleModeSheetTitle=e.multipleModeSheetTitle),void 0!==e.findAndPickSheetTitle&&(this.findAndPickSheetTitle=e.findAndPickSheetTitle),void 0!==e.findAndPickSheetBarcodeItemSubtitle&&(this.findAndPickSheetBarcodeItemSubtitle=e.findAndPickSheetBarcodeItemSubtitle),void 0!==e.findAndPickPartialAlertTitle&&(this.findAndPickPartialAlertTitle=e.findAndPickPartialAlertTitle),void 0!==e.findAndPickPartialAlertSubtitle&&(this.findAndPickPartialAlertSubtitle=e.findAndPickPartialAlertSubtitle),void 0!==e.findAndPickPartialAlertCancelButton&&(this.findAndPickPartialAlertCancelButton=e.findAndPickPartialAlertCancelButton),void 0!==e.findAndPickPartialAlertSubmitButton&&(this.findAndPickPartialAlertSubmitButton=e.findAndPickPartialAlertSubmitButton),void 0!==e.findAndPickCompleteAlertTitle&&(this.findAndPickCompleteAlertTitle=e.findAndPickCompleteAlertTitle),void 0!==e.findAndPickCompleteAlertSubtitle&&(this.findAndPickCompleteAlertSubtitle=e.findAndPickCompleteAlertSubtitle),void 0!==e.findAndPickCompleteAlertCancelButton&&(this.findAndPickCompleteAlertCancelButton=e.findAndPickCompleteAlertCancelButton),void 0!==e.findAndPickCompleteAlertSubmitButton&&(this.findAndPickCompleteAlertSubmitButton=e.findAndPickCompleteAlertSubmitButton),void 0!==e.accessibilityDescriptionCancelButton&&(this.accessibilityDescriptionCancelButton=e.accessibilityDescriptionCancelButton),void 0!==e.accessibilityDescriptionFlashButton&&(this.accessibilityDescriptionFlashButton=e.accessibilityDescriptionFlashButton),void 0!==e.accessibilityDescriptionZoomButton&&(this.accessibilityDescriptionZoomButton=e.accessibilityDescriptionZoomButton),void 0!==e.accessibilityDescriptionFlipCameraButton&&(this.accessibilityDescriptionFlipCameraButton=e.accessibilityDescriptionFlipCameraButton),void 0!==e.cameraPermissionEnableCameraTitle&&(this.cameraPermissionEnableCameraTitle=e.cameraPermissionEnableCameraTitle),void 0!==e.cameraPermissionEnableCameraExplanation&&(this.cameraPermissionEnableCameraExplanation=e.cameraPermissionEnableCameraExplanation),void 0!==e.cameraPermissionEnableCameraButton&&(this.cameraPermissionEnableCameraButton=e.cameraPermissionEnableCameraButton),void 0!==e.cameraPermissionCloseButton&&(this.cameraPermissionCloseButton=e.cameraPermissionCloseButton),void 0!==e.accessibilityDescriptionCameraPermissionEnableCameraButton&&(this.accessibilityDescriptionCameraPermissionEnableCameraButton=e.accessibilityDescriptionCameraPermissionEnableCameraButton),void 0!==e.accessibilityDescriptionCameraPermissionCloseButton&&(this.accessibilityDescriptionCameraPermissionCloseButton=e.accessibilityDescriptionCameraPermissionCloseButton)}}class ScanbotAlertDialog{constructor(e={}){this.title=new StyledText({text:"Title",color:"?sbColorOnSurface"}),this.subtitle=new StyledText({text:"Standard explanation message text.",color:"?sbColorOnSurfaceVariant"}),this.sheetColor="?sbColorSurface",this.modalOverlayColor="?sbColorModalOverlay",this.dividerColor="?sbColorOutline",this.okButton=new ButtonConfiguration({background:new BackgroundStyle({fillColor:"?sbColorPrimary"})}),this.actionButton=new ButtonConfiguration({visible:!1,background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0})}),this.cancelButton=new ButtonConfiguration({visible:!0,background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0})}),void 0!==e.title&&(this.title=new StyledText(e.title)),void 0!==e.subtitle&&(this.subtitle=new StyledText(e.subtitle)),void 0!==e.sheetColor&&(this.sheetColor=e.sheetColor),void 0!==e.modalOverlayColor&&(this.modalOverlayColor=e.modalOverlayColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.okButton&&(this.okButton=new ButtonConfiguration(e.okButton)),void 0!==e.actionButton&&(this.actionButton=new ButtonConfiguration(e.actionButton)),void 0!==e.cancelButton&&(this.cancelButton=new ButtonConfiguration(e.cancelButton))}}const MultipleBarcodesScanningModeValues=["COUNTING","UNIQUE"],SheetModeValues=["BUTTON","COLLAPSED_SHEET"],CollapsedVisibleHeightValues=["SMALL","LARGE"];class Sheet{constructor(e={}){this.mode="COLLAPSED_SHEET",this.collapsedVisibleHeight="SMALL",this.listButton=new BadgedButton({}),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.collapsedVisibleHeight&&(this.collapsedVisibleHeight=e.collapsedVisibleHeight),void 0!==e.listButton&&(this.listButton=new BadgedButton(e.listButton))}}class SwipeToDelete{constructor(e={}){this.enabled=!0,this.backgroundColor="?sbColorNegative",this.iconColor="?sbColorOnPrimary",void 0!==e.enabled&&(this.enabled=e.enabled),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.iconColor&&(this.iconColor=e.iconColor)}}class ManualCountEditDialog{constructor(e={}){this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.modalOverlayColor="?sbColorModalOverlay",this.title=new StyledText({text:"Update count",color:"?sbColorOnSurface"}),this.info=new StyledText({text:"Adjust the number of items you scanned.",color:"?sbColorOnSurfaceVariant"}),this.updateButton=new ButtonConfiguration({visible:!0,text:"Update",background:new BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),this.cancelButton=new ButtonConfiguration({visible:!0,text:"Cancel",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),this.clearTextButton=new IconStyle({visible:!0,color:"?sbColorOnSurfaceVariant"}),void 0!==e.sheetColor&&(this.sheetColor=e.sheetColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.modalOverlayColor&&(this.modalOverlayColor=e.modalOverlayColor),void 0!==e.title&&(this.title=new StyledText(e.title)),void 0!==e.info&&(this.info=new StyledText(e.info)),void 0!==e.updateButton&&(this.updateButton=new ButtonConfiguration(e.updateButton)),void 0!==e.cancelButton&&(this.cancelButton=new ButtonConfiguration(e.cancelButton)),void 0!==e.clearTextButton&&(this.clearTextButton=new IconStyle(e.clearTextButton))}}class SheetContent{constructor(e={}){this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.manualCountChangeEnabled=!0,this.manualCountOutlineColor="?sbColorOutline",this.manualCountChangeColor="?sbColorPrimary",this.title=new StyledText({text:"%d items",color:"?sbColorOnSurface"}),this.clearAllButton=new ButtonConfiguration({visible:!0,text:"Clear all",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),this.barcodeItemTitle=new StyledText({visible:!0,text:"BARCODE_TITLE",color:"?sbColorOnSurface",useShadow:!1}),this.barcodeItemSubtitle=new StyledText({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.barcodeItemImageVisible=!0,this.submitButton=new ButtonConfiguration({visible:!0,text:"Submit",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),this.startScanningButton=new ButtonConfiguration({visible:!0,text:"Start scanning",background:new BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),this.placeholderTitle=new StyledText({text:"No barcodes here!",color:"?sbColorOnSurface"}),this.placeholderSubtitle=new StyledText({text:"The barcode list is currently empty. Close this sheet and scan your items to add them.",color:"?sbColorOnSurfaceVariant"}),this.placeholderIconBackground="?sbColorOutline",this.placeholderIcon=new IconStyle({visible:!0,color:"?sbColorOnSurface"}),this.swipeToDelete=new SwipeToDelete({enabled:!0,backgroundColor:"?sbColorNegative",iconColor:"?sbColorOnPrimary"}),void 0!==e.sheetColor&&(this.sheetColor=e.sheetColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.manualCountChangeEnabled&&(this.manualCountChangeEnabled=e.manualCountChangeEnabled),void 0!==e.manualCountOutlineColor&&(this.manualCountOutlineColor=e.manualCountOutlineColor),void 0!==e.manualCountChangeColor&&(this.manualCountChangeColor=e.manualCountChangeColor),void 0!==e.title&&(this.title=new StyledText(e.title)),void 0!==e.clearAllButton&&(this.clearAllButton=new ButtonConfiguration(e.clearAllButton)),void 0!==e.barcodeItemTitle&&(this.barcodeItemTitle=new StyledText(e.barcodeItemTitle)),void 0!==e.barcodeItemSubtitle&&(this.barcodeItemSubtitle=new StyledText(e.barcodeItemSubtitle)),void 0!==e.barcodeItemImageVisible&&(this.barcodeItemImageVisible=e.barcodeItemImageVisible),void 0!==e.submitButton&&(this.submitButton=new ButtonConfiguration(e.submitButton)),void 0!==e.startScanningButton&&(this.startScanningButton=new ButtonConfiguration(e.startScanningButton)),void 0!==e.placeholderTitle&&(this.placeholderTitle=new StyledText(e.placeholderTitle)),void 0!==e.placeholderSubtitle&&(this.placeholderSubtitle=new StyledText(e.placeholderSubtitle)),void 0!==e.placeholderIconBackground&&(this.placeholderIconBackground=e.placeholderIconBackground),void 0!==e.placeholderIcon&&(this.placeholderIcon=new IconStyle(e.placeholderIcon)),void 0!==e.swipeToDelete&&(this.swipeToDelete=new SwipeToDelete(e.swipeToDelete))}}class MultipleScanningMode{constructor(e={}){this._type="MultipleScanningMode",this.countingRepeatDelay=1e3,this.allowEmptySubmission=!1,this.mode="COUNTING",this.sheet=new Sheet({mode:"COLLAPSED_SHEET",collapsedVisibleHeight:"SMALL",listButton:new BadgedButton({badgeBackgroundColor:"?sbColorSurface",badgeForegroundColor:"?sbColorPrimary",visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"})}),this.sheetContent=new SheetContent({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",manualCountChangeEnabled:!0,manualCountOutlineColor:"?sbColorOutline",manualCountChangeColor:"?sbColorPrimary",title:new StyledText({text:"?multipleModeSheetTitle",color:"?sbColorOnSurface"}),clearAllButton:new ButtonConfiguration({visible:!0,text:"?sheetClearAllButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),barcodeItemTitle:new StyledText({visible:!0,text:"BARCODE_TITLE",color:"?sbColorOnSurface",useShadow:!1}),barcodeItemSubtitle:new StyledText({visible:!0,text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant",useShadow:!1}),barcodeItemImageVisible:!0,submitButton:new ButtonConfiguration({visible:!0,text:"?sheetSubmitButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),startScanningButton:new ButtonConfiguration({visible:!0,text:"?sheetStartScanningButton",background:new BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),placeholderTitle:new StyledText({visible:!0,text:"?sheetPlaceholderTitle",color:"?sbColorOnSurface",useShadow:!1}),placeholderSubtitle:new StyledText({visible:!0,text:"?sheetPlaceholderSubtitle",color:"?sbColorOnSurfaceVariant",useShadow:!1}),placeholderIconBackground:"?sbColorOutline",placeholderIcon:new IconStyle({visible:!0,color:"?sbColorOnSurface"}),swipeToDelete:new SwipeToDelete({enabled:!0,backgroundColor:"?sbColorNegative",iconColor:"?sbColorOnPrimary"})}),this.manualCountEditDialog=new ManualCountEditDialog({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",title:new StyledText({text:"?manualCountEditDialogTitle",color:"?sbColorOnSurface"}),info:new StyledText({text:"?manualCountEditDialogInfo",color:"?sbColorOnSurfaceVariant"}),updateButton:new ButtonConfiguration({visible:!0,text:"?manualCountEditDialogUpdateButton",background:new BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new ButtonConfiguration({visible:!0,text:"?manualCountEditDialogCancelButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),clearTextButton:new IconStyle({visible:!0,color:"?sbColorOnSurfaceVariant"})}),this.barcodeInfoMapping=new BarcodeInfoMapping({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",loadingMessage:new StyledText({text:"?barcodeInfoMappingLoadingMessage",color:"?sbColorPrimary"}),errorState:new BarcodeItemErrorState({title:new StyledText({text:"?barcodeInfoMappingErrorStateTitle",color:"?sbColorOnSurface"}),subtitle:new StyledText({text:"?barcodeInfoMappingErrorStateSubtitle",color:"?sbColorOnSurfaceVariant"}),retryButton:new ButtonConfiguration({visible:!0,text:"?barcodeInfoMappingErrorStateRetryButton",background:new BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new ButtonConfiguration({visible:!0,text:"?barcodeInfoMappingErrorStateCancelButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})})})}),this.arOverlay=new ArOverlayGeneralConfiguration({visible:!1,counterBadge:new BadgeStyle({visible:!0,background:new BackgroundStyle({strokeColor:"#FF000000",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),automaticSelectionEnabled:!1,barcodeItemInfoPosition:"BELOW",polygon:new ArOverlayPolygonConfiguration({visible:!0,deselected:new PolygonStyle({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),selected:new PolygonStyle({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5})}),barcodeItemConfiguration:new BarcodeItemConfiguration({imageVisible:!0,titleSelected:new StyledText({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleSelected:new StyledText({visible:!0,text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant",useShadow:!1}),titleDeselected:new StyledText({visible:!0,text:"BARCODE_TITLE",color:"?sbColorOnSurface",useShadow:!1}),subtitleDeselected:new StyledText({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),backgroundSelected:new PolygonStyle({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:1,cornerRadius:5}),backgroundDeselected:new PolygonStyle({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:1,cornerRadius:5})})}),void 0!==e.countingRepeatDelay&&(this.countingRepeatDelay=e.countingRepeatDelay),void 0!==e.allowEmptySubmission&&(this.allowEmptySubmission=e.allowEmptySubmission),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.sheet&&(this.sheet=new Sheet(e.sheet)),void 0!==e.sheetContent&&(this.sheetContent=new SheetContent(e.sheetContent)),void 0!==e.manualCountEditDialog&&(this.manualCountEditDialog=new ManualCountEditDialog(e.manualCountEditDialog)),void 0!==e.barcodeInfoMapping&&(this.barcodeInfoMapping=new BarcodeInfoMapping(e.barcodeInfoMapping)),void 0!==e.arOverlay&&(this.arOverlay=new ArOverlayGeneralConfiguration(e.arOverlay))}}class ExpectedBarcode{constructor(e={}){if(this.title=null,this.image=null,this.count=1,void 0===e.barcodeValue)throw new Error("barcodeValue must be present in constructor argument");this.barcodeValue=e.barcodeValue,void 0!==e.title&&(this.title=null!=e.title?e.title:null),void 0!==e.image&&(this.image=null!=e.image?e.image:null),void 0!==e.count&&(this.count=e.count)}}!function(e){e.BARCODE_IMAGE_KEY="BARCODE_IMAGE"}(ExpectedBarcode||(ExpectedBarcode={}));class FindAndPickScanningMode{constructor(e={}){this._type="FindAndPickScanningMode",this.scanningCompletedColor="?sbColorPositive",this.scanningPartiallyColor="?sbColorWarning",this.scanningNotScannedColor="?sbColorOutline",this.allowPartialScan=!1,this.expectedBarcodes=[],this.countingRepeatDelay=1e3,this.sheet=new Sheet({mode:"COLLAPSED_SHEET",collapsedVisibleHeight:"SMALL",listButton:new BadgedButton({badgeBackgroundColor:"?sbColorSurface",badgeForegroundColor:"?sbColorPrimary",visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"})}),this.sheetContent=new SheetContent({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",manualCountChangeEnabled:!0,manualCountOutlineColor:"?sbColorOutline",manualCountChangeColor:"?sbColorPrimary",title:new StyledText({visible:!0,text:"?findAndPickSheetTitle",color:"?sbColorOnSurface",useShadow:!1}),clearAllButton:new ButtonConfiguration({visible:!0,text:"?sheetResetButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),barcodeItemTitle:new StyledText({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),barcodeItemSubtitle:new StyledText({text:"?findAndPickSheetBarcodeItemSubtitle",color:"?sbColorOnSurfaceVariant"}),barcodeItemImageVisible:!0,submitButton:new ButtonConfiguration({visible:!0,text:"?sheetSubmitButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),startScanningButton:new ButtonConfiguration({visible:!0,text:"?sheetStartScanningButton",background:new BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),placeholderTitle:new StyledText({text:"?sheetPlaceholderTitle",color:"?sbColorOnSurface"}),placeholderSubtitle:new StyledText({text:"?sheetPlaceholderSubtitle",color:"?sbColorOnSurfaceVariant"}),placeholderIconBackground:"?sbColorOutline",placeholderIcon:new IconStyle({visible:!0,color:"?sbColorOnSurface"}),swipeToDelete:new SwipeToDelete({enabled:!1,backgroundColor:"?sbColorNegative",iconColor:"?sbColorOnPrimary"})}),this.manualCountEditDialog=new ManualCountEditDialog({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",title:new StyledText({text:"?manualCountEditDialogTitle",color:"?sbColorOnSurface"}),info:new StyledText({text:"?manualCountEditDialogInfo",color:"?sbColorOnSurfaceVariant"}),updateButton:new ButtonConfiguration({visible:!0,text:"?manualCountEditDialogUpdateButton",background:new BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new ButtonConfiguration({visible:!0,text:"?manualCountEditDialogCancelButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),clearTextButton:new IconStyle({visible:!0,color:"?sbColorOnSurfaceVariant"})}),this.arOverlay=new ArOverlayFindAndPickConfiguration({visible:!0,automaticSelectionEnabled:!0,polygon:new FindAndPickArOverlayPolygonConfiguration({partiallyScanned:new PolygonStyle({strokeColor:"?sbColorWarning",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),rejected:new PolygonStyle({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),completed:new PolygonStyle({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5})}),badge:new FindAndPickBadgeConfiguration({partiallyScanned:new BadgeStyle({visible:!0,background:new BackgroundStyle({strokeColor:"#000000FF",fillColor:"?sbColorWarning",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),rejected:new BadgeStyle({visible:!0,background:new BackgroundStyle({strokeColor:"#000000FF",fillColor:"?sbColorSurface",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),completed:new BadgeStyle({visible:!0,background:new BackgroundStyle({strokeColor:"#000000FF",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"})})}),this.partialScannedAlertDialogEnabled=!0,this.partialScannedAlertDialog=new ScanbotAlertDialog({title:new StyledText({text:"?findAndPickPartialAlertTitle",color:"?sbColorOnSurface"}),subtitle:new StyledText({text:"?findAndPickPartialAlertSubtitle",color:"?sbColorOnSurfaceVariant"}),sheetColor:"?sbColorSurface",modalOverlayColor:"?sbColorModalOverlay",dividerColor:"?sbColorOutline",okButton:new ButtonConfiguration({visible:!0,text:"?findAndPickPartialAlertSubmitButton",background:new BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new ButtonConfiguration({visible:!0,text:"?findAndPickPartialAlertCancelButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})})}),this.confirmationAlertDialogEnabled=!1,this.confirmationAlertDialog=new ScanbotAlertDialog({title:new StyledText({text:"?findAndPickCompleteAlertTitle",color:"?sbColorOnSurface"}),subtitle:new StyledText({text:"?findAndPickCompleteAlertSubtitle",color:"?sbColorOnSurfaceVariant"}),sheetColor:"?sbColorSurface",modalOverlayColor:"?sbColorModalOverlay",dividerColor:"?sbColorOutline",okButton:new ButtonConfiguration({visible:!0,text:"?findAndPickCompleteAlertSubmitButton",background:new BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new ButtonConfiguration({visible:!0,text:"?findAndPickCompleteAlertCancelButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})})}),void 0!==e.scanningCompletedColor&&(this.scanningCompletedColor=e.scanningCompletedColor),void 0!==e.scanningPartiallyColor&&(this.scanningPartiallyColor=e.scanningPartiallyColor),void 0!==e.scanningNotScannedColor&&(this.scanningNotScannedColor=e.scanningNotScannedColor),void 0!==e.allowPartialScan&&(this.allowPartialScan=e.allowPartialScan),void 0!==e.expectedBarcodes&&(this.expectedBarcodes=e.expectedBarcodes.map((e=>new ExpectedBarcode(e)))),void 0!==e.countingRepeatDelay&&(this.countingRepeatDelay=e.countingRepeatDelay),void 0!==e.sheet&&(this.sheet=new Sheet(e.sheet)),void 0!==e.sheetContent&&(this.sheetContent=new SheetContent(e.sheetContent)),void 0!==e.manualCountEditDialog&&(this.manualCountEditDialog=new ManualCountEditDialog(e.manualCountEditDialog)),void 0!==e.arOverlay&&(this.arOverlay=new ArOverlayFindAndPickConfiguration(e.arOverlay)),void 0!==e.partialScannedAlertDialogEnabled&&(this.partialScannedAlertDialogEnabled=e.partialScannedAlertDialogEnabled),void 0!==e.partialScannedAlertDialog&&(this.partialScannedAlertDialog=new ScanbotAlertDialog(e.partialScannedAlertDialog)),void 0!==e.confirmationAlertDialogEnabled&&(this.confirmationAlertDialogEnabled=e.confirmationAlertDialogEnabled),void 0!==e.confirmationAlertDialog&&(this.confirmationAlertDialog=new ScanbotAlertDialog(e.confirmationAlertDialog))}}class SingleScanningMode{constructor(e={}){this._type="SingleScanningMode",this.confirmationSheetEnabled=!1,this.barcodeImageVisible=!0,this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.modalOverlayColor="?sbColorModalOverlay",this.barcodeTitle=new StyledText({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),this.barcodeSubtitle=new StyledText({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.submitButton=new ButtonConfiguration({visible:!0,text:"?sheetSubmitButton",background:new BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary"})}),this.cancelButton=new ButtonConfiguration({visible:!0,text:"?singleModeConfirmationCancelButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary"})}),this.barcodeInfoMapping=new BarcodeInfoMapping({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",loadingMessage:new StyledText({text:"?barcodeInfoMappingLoadingMessage",color:"?sbColorPrimary"}),errorState:new BarcodeItemErrorState({title:new StyledText({text:"?barcodeInfoMappingErrorStateTitle",color:"?sbColorOnSurface"}),subtitle:new StyledText({text:"?barcodeInfoMappingErrorStateSubtitle",color:"?sbColorOnSurfaceVariant"}),retryButton:new ButtonConfiguration({visible:!0,text:"?barcodeInfoMappingErrorStateRetryButton",background:new BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary"})}),cancelButton:new ButtonConfiguration({text:"?barcodeInfoMappingErrorStateCancelButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary"})})})}),this.arOverlay=new ArOverlayGeneralConfiguration({visible:!1,counterBadge:new BadgeStyle({visible:!0,background:new BackgroundStyle({strokeColor:"#000000FF",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),automaticSelectionEnabled:!1,barcodeItemInfoPosition:"BELOW",polygon:new ArOverlayPolygonConfiguration({visible:!0,deselected:new PolygonStyle({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),selected:new PolygonStyle({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5})}),barcodeItemConfiguration:new BarcodeItemConfiguration({imageVisible:!0,titleSelected:new StyledText({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleSelected:new StyledText({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),titleDeselected:new StyledText({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleDeselected:new StyledText({visible:!0,text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant",useShadow:!1}),backgroundSelected:new PolygonStyle({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:1,cornerRadius:5}),backgroundDeselected:new PolygonStyle({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:1,cornerRadius:5})})}),void 0!==e.confirmationSheetEnabled&&(this.confirmationSheetEnabled=e.confirmationSheetEnabled),void 0!==e.barcodeImageVisible&&(this.barcodeImageVisible=e.barcodeImageVisible),void 0!==e.sheetColor&&(this.sheetColor=e.sheetColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.modalOverlayColor&&(this.modalOverlayColor=e.modalOverlayColor),void 0!==e.barcodeTitle&&(this.barcodeTitle=new StyledText(e.barcodeTitle)),void 0!==e.barcodeSubtitle&&(this.barcodeSubtitle=new StyledText(e.barcodeSubtitle)),void 0!==e.submitButton&&(this.submitButton=new ButtonConfiguration(e.submitButton)),void 0!==e.cancelButton&&(this.cancelButton=new ButtonConfiguration(e.cancelButton)),void 0!==e.barcodeInfoMapping&&(this.barcodeInfoMapping=new BarcodeInfoMapping(e.barcodeInfoMapping)),void 0!==e.arOverlay&&(this.arOverlay=new ArOverlayGeneralConfiguration(e.arOverlay))}}exports.BarcodeUseCase=void 0,(exports.BarcodeUseCase||(exports.BarcodeUseCase={})).from=function(e){const t=e._type;switch(t){case"SingleScanningMode":return new SingleScanningMode(e);case"MultipleScanningMode":return new MultipleScanningMode(e);case"FindAndPickScanningMode":return new FindAndPickScanningMode(e);default:throw new Error(`Unknown child class name: ${t}`)}};class BarcodeScannerScreenConfiguration{constructor(e={}){this.version="1.0",this.screen="BarcodeScanner",this.palette=new Palette({sbColorPrimary:"#C8193C",sbColorPrimaryDisabled:"#F5F5F5",sbColorNegative:"#FF3737",sbColorPositive:"#4EFFB4",sbColorWarning:"#FFCE5C",sbColorSecondary:"#FFEDEE",sbColorSecondaryDisabled:"#F5F5F5",sbColorOnPrimary:"#FFFFFF",sbColorOnSecondary:"#C8193C",sbColorSurface:"#FFFFFF",sbColorOutline:"#EFEFEF",sbColorOnSurfaceVariant:"#707070",sbColorOnSurface:"#000000",sbColorSurfaceLow:"#00000026",sbColorSurfaceHigh:"#0000007A",sbColorModalOverlay:"#000000A3"}),this.localization=new BarcodeTextLocalization({}),this.backgroundColor="?sbColorSurfaceLow",this.topBar=new TopBarConfiguration({title:new StyledText({text:"?topBarTitle",color:"?sbColorOnPrimary"}),mode:"SOLID",statusBarMode:"LIGHT",backgroundColor:"?sbColorPrimary",cancelButton:new ButtonConfiguration({visible:!0,text:"?topBarCancelButton",accessibilityDescription:"?accessibilityDescriptionCancelButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})})}),this.actionBar=new ActionBarConfiguration({flashButton:new RoundButton({visible:!0,accessibilityDescription:"?accessibilityDescriptionFlashButton",backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"}),zoomButton:new RoundButton({visible:!0,accessibilityDescription:"?accessibilityDescriptionZoomButton",backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"}),flipCameraButton:new RoundButton({visible:!0,accessibilityDescription:"?accessibilityDescriptionFlipCameraButton",backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"})}),this.viewFinder=new ViewFinderConfiguration({style:new FinderCorneredStyle({strokeColor:"?sbColorSurface",strokeWidth:2,cornerRadius:10}),overlayColor:"?sbColorSurfaceLow",aspectRatio:new AspectRatio({width:1,height:1}),visible:!0}),this.userGuidance=new UserGuidanceConfiguration({visible:!0,title:new StyledText({text:"?userGuidance",color:"?sbColorOnPrimary"}),background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"?sbColorSurfaceLow",strokeWidth:0})}),this.cameraPermission=new CameraPermissionScreen({statusBarMode:"DARK",background:"?sbColorSurface",iconBackground:"?sbColorOutline",icon:new IconStyle({visible:!0,color:"?sbColorOnSurface"}),enableCameraButton:new ButtonConfiguration({visible:!0,text:"?cameraPermissionEnableCameraButton",accessibilityDescription:"?accessibilityDescriptionCameraPermissionEnableCameraButton",background:new BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),closeButton:new ButtonConfiguration({visible:!0,text:"?cameraPermissionCloseButton",accessibilityDescription:"?accessibilityDescriptionCameraPermissionCloseButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),enableCameraTitle:new StyledText({text:"?cameraPermissionEnableCameraTitle",color:"?sbColorOnSurface"}),enableCameraExplanation:new StyledText({text:"?cameraPermissionEnableCameraExplanation",color:"?sbColorOnSurfaceVariant"})}),this.cameraConfiguration=new CameraConfiguration({}),this.scannerConfiguration=new BarcodeScannerConfiguration({}),this.useCase=new SingleScanningMode({}),this.sound=new Sound({successBeepEnabled:!0,soundType:"MODERN_BEEP"}),this.vibration=new Vibration({enabled:!0}),this.timeouts=new Timeouts({autoCancelTimeout:0,initialScanDelay:0}),this.keepScreenOn=!0,void 0!==e.version&&(this.version=e.version),void 0!==e.screen&&(this.screen=e.screen),void 0!==e.palette&&(this.palette=new Palette(e.palette)),void 0!==e.localization&&(this.localization=new BarcodeTextLocalization(e.localization)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.topBar&&(this.topBar=new TopBarConfiguration(e.topBar)),void 0!==e.actionBar&&(this.actionBar=new ActionBarConfiguration(e.actionBar)),void 0!==e.viewFinder&&(this.viewFinder=new ViewFinderConfiguration(e.viewFinder)),void 0!==e.userGuidance&&(this.userGuidance=new UserGuidanceConfiguration(e.userGuidance)),void 0!==e.cameraPermission&&(this.cameraPermission=new CameraPermissionScreen(e.cameraPermission)),void 0!==e.cameraConfiguration&&(this.cameraConfiguration=new CameraConfiguration(e.cameraConfiguration)),void 0!==e.scannerConfiguration&&(this.scannerConfiguration=new BarcodeScannerConfiguration(e.scannerConfiguration)),void 0!==e.useCase&&(this.useCase=exports.BarcodeUseCase.from(e.useCase)),void 0!==e.sound&&(this.sound=new Sound(e.sound)),void 0!==e.vibration&&(this.vibration=new Vibration(e.vibration)),void 0!==e.timeouts&&(this.timeouts=new Timeouts(e.timeouts)),void 0!==e.keepScreenOn&&(this.keepScreenOn=e.keepScreenOn)}}class BarcodeScannerUiItem{constructor(e={}){if(this._released=!1,void 0===e.barcode)throw new Error("barcode must be present in constructor argument");if(this.barcode=new BarcodeItem(e.barcode),void 0===e.count)throw new Error("count must be present in constructor argument");this.count=e.count}async serialize(e=new ToJsonConfiguration){return{barcode:await this.barcode.serialize(e),count:this.count}}release(){this._released||(this.barcode.release(),this._released=!0)}async encodeImages(){await this.barcode.encodeImages()}}class BarcodeScannerUiResult{constructor(e={}){this.selectedZoomFactor=1,this.items=[],this._released=!1,void 0!==e.selectedZoomFactor&&(this.selectedZoomFactor=e.selectedZoomFactor),void 0!==e.items&&(this.items=e.items.map((e=>new BarcodeScannerUiItem(e))))}async serialize(e=new ToJsonConfiguration){return{selectedZoomFactor:this.selectedZoomFactor,items:await Promise.all(this.items.map((async t=>await t.serialize(e))))}}release(){this._released||(this.items.forEach((e=>{e.release()})),this._released=!0)}async encodeImages(){await Promise.all(this.items.map((async e=>{await e.encodeImages()})))}}exports.CheckScannerIntroImage=void 0,(exports.CheckScannerIntroImage||(exports.CheckScannerIntroImage={})).from=function(e){const t=e._type;switch(t){case"CheckIntroDefaultImage":return new CheckIntroDefaultImage(e);case"CheckNoImage":return new CheckNoImage(e);case"CheckIntroCustomImage":return new CheckIntroCustomImage(e);default:throw new Error(`Unknown child class name: ${t}`)}};class CheckIntroDefaultImage{constructor(e={}){this._type="CheckIntroDefaultImage"}}class CheckNoImage{constructor(e={}){this._type="CheckNoImage"}}class CheckIntroCustomImage{constructor(e={}){if(this._type="CheckIntroCustomImage",void 0===e.uri)throw new Error("uri must be present in constructor argument");this.uri=e.uri}}class CheckScannerIntroScreenConfiguration{constructor(e={}){this.image=new CheckIntroDefaultImage({}),this.backgroundColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.handlerColor="?sbColorOutline",this.showAutomatically=!1,this.title=new StyledText({text:"?introScreenTitle",color:"?sbColorOnSurface"}),this.explanation=new StyledText({text:"?introScreenText",color:"?sbColorOnSurface"}),this.doneButton=new ButtonConfiguration({text:"?introScreenDoneButton",accessibilityDescription:"?accessibilityDescriptionIntroScreenDoneButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new ForegroundStyle({color:"?sbColorOnPrimary"})}),void 0!==e.image&&(this.image=exports.CheckScannerIntroImage.from(e.image)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.handlerColor&&(this.handlerColor=e.handlerColor),void 0!==e.showAutomatically&&(this.showAutomatically=e.showAutomatically),void 0!==e.title&&(this.title=new StyledText(e.title)),void 0!==e.explanation&&(this.explanation=new StyledText(e.explanation)),void 0!==e.doneButton&&(this.doneButton=new ButtonConfiguration(e.doneButton))}}class ScanCompletionOverlay{constructor(e={}){this.message=new StyledText({text:"?completionOverlaySuccessMessage",color:"?sbColorOnPrimary"}),this.iconColor="?sbColorOnPrimary",this.overlayBackgroundColor="?sbColorSurfaceHigh",this.timeout=1e3,void 0!==e.message&&(this.message=new StyledText(e.message)),void 0!==e.iconColor&&(this.iconColor=e.iconColor),void 0!==e.overlayBackgroundColor&&(this.overlayBackgroundColor=e.overlayBackgroundColor),void 0!==e.timeout&&(this.timeout=e.timeout)}}class CheckScannerScreenTextLocalization{constructor(e={}){this.topBarTitle="Check Scanner",this.topBarCancelButton="Cancel",this.topUserGuidance="Point the camera at the check",this.finderViewUserGuidance="Looking for check...",this.introScreenTitle="How to scan a check",this.introScreenDoneButton="Start Scanning",this.introScreenText="This scanner reads the MICR (Magnetic Ink Character Recognition) line – the numbers and characters printed at the bottom of your check.\n\nTo scan, place the check on a flat, well-lit surface and position your camera so the entire check is within the frame. The check data will be automatically extracted.\nTap 'Start Scanning' to begin.",this.completionOverlaySuccessMessage="Scanned successfully",this.accessibilityDescriptionOpenIntroScreenButton="Open Check Scanner introduction",this.accessibilityDescriptionIntroScreenDoneButton="Start check scanning",this.accessibilityDescriptionCancelButton="Cancel check scanning",this.accessibilityDescriptionRetryButton="Retry check scanning",this.accessibilityDescriptionCloseScannerButton="Close check scanner",this.checkAlertRetryButton="Retry",this.checkAlertCloseScannerButton="Close Scanner",this.checkNoCheckDetectedAlertTitle="No check detected",this.checkNoCheckDetectedAlertSubtitle="The scanner couldn't detect the check. Please ensure the check is valid, well-lit, and fully visible, then try again.",this.checkImageNotGoodAlertTitle="Check not recognized",this.checkImageNotGoodAlertSubtitle="Make sure the check is valid, well-lit, and fully visible. Then try again.",this.accessibilityDescriptionFlashButton="Toggle flash",this.accessibilityDescriptionZoomButton="Toggle camera zoom",this.accessibilityDescriptionFlipCameraButton="Flip camera",this.cameraPermissionEnableCameraTitle="Camera permission denied!",this.cameraPermissionEnableCameraExplanation="Please allow the usage of the camera to start the scanning process.",this.cameraPermissionEnableCameraButton="Grant permission",this.cameraPermissionCloseButton="Close",this.accessibilityDescriptionCameraPermissionEnableCameraButton="Tap to grant camera permission",this.accessibilityDescriptionCameraPermissionCloseButton="Close screen without granting permission",this.checkUserGuidanceNoCheckFound="Looking for check...",this.checkUserGuidanceScanningProgress="Scanning the check...",this.checkUserGuidanceTooDark="Too dark. Please turn on a light.",this.checkUserGuidanceTooSmall="Please move closer to the check.",this.checkUserGuidanceBadPerspective="Please hold your device straight over the check.",void 0!==e.topBarTitle&&(this.topBarTitle=e.topBarTitle),void 0!==e.topBarCancelButton&&(this.topBarCancelButton=e.topBarCancelButton),void 0!==e.topUserGuidance&&(this.topUserGuidance=e.topUserGuidance),void 0!==e.finderViewUserGuidance&&(this.finderViewUserGuidance=e.finderViewUserGuidance),void 0!==e.introScreenTitle&&(this.introScreenTitle=e.introScreenTitle),void 0!==e.introScreenDoneButton&&(this.introScreenDoneButton=e.introScreenDoneButton),void 0!==e.introScreenText&&(this.introScreenText=e.introScreenText),void 0!==e.completionOverlaySuccessMessage&&(this.completionOverlaySuccessMessage=e.completionOverlaySuccessMessage),void 0!==e.accessibilityDescriptionOpenIntroScreenButton&&(this.accessibilityDescriptionOpenIntroScreenButton=e.accessibilityDescriptionOpenIntroScreenButton),void 0!==e.accessibilityDescriptionIntroScreenDoneButton&&(this.accessibilityDescriptionIntroScreenDoneButton=e.accessibilityDescriptionIntroScreenDoneButton),void 0!==e.accessibilityDescriptionCancelButton&&(this.accessibilityDescriptionCancelButton=e.accessibilityDescriptionCancelButton),void 0!==e.accessibilityDescriptionRetryButton&&(this.accessibilityDescriptionRetryButton=e.accessibilityDescriptionRetryButton),void 0!==e.accessibilityDescriptionCloseScannerButton&&(this.accessibilityDescriptionCloseScannerButton=e.accessibilityDescriptionCloseScannerButton),void 0!==e.checkAlertRetryButton&&(this.checkAlertRetryButton=e.checkAlertRetryButton),void 0!==e.checkAlertCloseScannerButton&&(this.checkAlertCloseScannerButton=e.checkAlertCloseScannerButton),void 0!==e.checkNoCheckDetectedAlertTitle&&(this.checkNoCheckDetectedAlertTitle=e.checkNoCheckDetectedAlertTitle),void 0!==e.checkNoCheckDetectedAlertSubtitle&&(this.checkNoCheckDetectedAlertSubtitle=e.checkNoCheckDetectedAlertSubtitle),void 0!==e.checkImageNotGoodAlertTitle&&(this.checkImageNotGoodAlertTitle=e.checkImageNotGoodAlertTitle),void 0!==e.checkImageNotGoodAlertSubtitle&&(this.checkImageNotGoodAlertSubtitle=e.checkImageNotGoodAlertSubtitle),void 0!==e.accessibilityDescriptionFlashButton&&(this.accessibilityDescriptionFlashButton=e.accessibilityDescriptionFlashButton),void 0!==e.accessibilityDescriptionZoomButton&&(this.accessibilityDescriptionZoomButton=e.accessibilityDescriptionZoomButton),void 0!==e.accessibilityDescriptionFlipCameraButton&&(this.accessibilityDescriptionFlipCameraButton=e.accessibilityDescriptionFlipCameraButton),void 0!==e.cameraPermissionEnableCameraTitle&&(this.cameraPermissionEnableCameraTitle=e.cameraPermissionEnableCameraTitle),void 0!==e.cameraPermissionEnableCameraExplanation&&(this.cameraPermissionEnableCameraExplanation=e.cameraPermissionEnableCameraExplanation),void 0!==e.cameraPermissionEnableCameraButton&&(this.cameraPermissionEnableCameraButton=e.cameraPermissionEnableCameraButton),void 0!==e.cameraPermissionCloseButton&&(this.cameraPermissionCloseButton=e.cameraPermissionCloseButton),void 0!==e.accessibilityDescriptionCameraPermissionEnableCameraButton&&(this.accessibilityDescriptionCameraPermissionEnableCameraButton=e.accessibilityDescriptionCameraPermissionEnableCameraButton),void 0!==e.accessibilityDescriptionCameraPermissionCloseButton&&(this.accessibilityDescriptionCameraPermissionCloseButton=e.accessibilityDescriptionCameraPermissionCloseButton),void 0!==e.checkUserGuidanceNoCheckFound&&(this.checkUserGuidanceNoCheckFound=e.checkUserGuidanceNoCheckFound),void 0!==e.checkUserGuidanceScanningProgress&&(this.checkUserGuidanceScanningProgress=e.checkUserGuidanceScanningProgress),void 0!==e.checkUserGuidanceTooDark&&(this.checkUserGuidanceTooDark=e.checkUserGuidanceTooDark),void 0!==e.checkUserGuidanceTooSmall&&(this.checkUserGuidanceTooSmall=e.checkUserGuidanceTooSmall),void 0!==e.checkUserGuidanceBadPerspective&&(this.checkUserGuidanceBadPerspective=e.checkUserGuidanceBadPerspective)}}class CheckScannerGuidanceStates{constructor(e={}){this.noCheckFound="?checkUserGuidanceNoCheckFound",this.scanningProgress="?checkUserGuidanceScanningProgress",this.tooDark="?checkUserGuidanceTooDark",this.tooSmall="?checkUserGuidanceTooSmall",this.badPerspective="?checkUserGuidanceBadPerspective",void 0!==e.noCheckFound&&(this.noCheckFound=e.noCheckFound),void 0!==e.scanningProgress&&(this.scanningProgress=e.scanningProgress),void 0!==e.tooDark&&(this.tooDark=e.tooDark),void 0!==e.tooSmall&&(this.tooSmall=e.tooSmall),void 0!==e.badPerspective&&(this.badPerspective=e.badPerspective)}}class CheckScannerGuidanceConfiguration{constructor(e={}){this.visibility=!0,this.title=new StyledText({text:"?checkUserGuidanceNoCheckFound",color:"?sbColorOnPrimary"}),this.background=new BackgroundStyle({strokeColor:"#00000000",fillColor:"?sbColorSurfaceLow"}),this.statesTitles=new CheckScannerGuidanceStates({}),void 0!==e.visibility&&(this.visibility=e.visibility),void 0!==e.title&&(this.title=new StyledText(e.title)),void 0!==e.background&&(this.background=new BackgroundStyle(e.background)),void 0!==e.statesTitles&&(this.statesTitles=new CheckScannerGuidanceStates(e.statesTitles))}}class CheckScanningProgressConfiguration{constructor(e={}){this.enabled=!0,this.progressColor="#40A9FF",this.animationDuration=1e3,void 0!==e.enabled&&(this.enabled=e.enabled),void 0!==e.progressColor&&(this.progressColor=e.progressColor),void 0!==e.animationDuration&&(this.animationDuration=e.animationDuration)}}class CheckScannerScreenConfiguration{constructor(e={}){this.version="1.0",this.screen="CheckScanner",this.localization=new CheckScannerScreenTextLocalization({}),this.palette=new Palette({}),this.backgroundColor="?sbColorSurfaceLow",this.cameraConfiguration=new CameraConfiguration({orientationLockMode:"PORTRAIT"}),this.cameraPermission=new CameraPermissionScreen({statusBarMode:"DARK",background:"?sbColorSurface",iconBackground:"?sbColorOutline",icon:new IconStyle({visible:!0,color:"?sbColorOnSurface"}),enableCameraButton:new ButtonConfiguration({visible:!0,text:"?cameraPermissionEnableCameraButton",accessibilityDescription:"?accessibilityDescriptionCameraPermissionEnableCameraButton",background:new BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),closeButton:new ButtonConfiguration({visible:!0,text:"?cameraPermissionCloseButton",accessibilityDescription:"?accessibilityDescriptionCameraPermissionCloseButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),enableCameraTitle:new StyledText({text:"?cameraPermissionEnableCameraTitle",color:"?sbColorOnSurface"}),enableCameraExplanation:new StyledText({text:"?cameraPermissionEnableCameraExplanation",color:"?sbColorOnSurfaceVariant"})}),this.topUserGuidance=new UserGuidanceConfiguration({title:new StyledText({text:"?topUserGuidance"})}),this.scanStatusUserGuidance=new CheckScannerGuidanceConfiguration({}),this.topBar=new TopBarConfiguration({title:new StyledText({visible:!0,text:"?topBarTitle"}),cancelButton:new ButtonConfiguration({text:"?topBarCancelButton",accessibilityDescription:"?accessibilityDescriptionCancelButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new ForegroundStyle({color:"?sbColorOnPrimary"})})}),this.topBarOpenIntroScreenButton=new IconButton({color:"?sbColorOnPrimary",accessibilityDescription:"?accessibilityDescriptionOpenIntroScreenButton"}),this.introScreen=new CheckScannerIntroScreenConfiguration({}),this.actionBar=new ActionBarConfiguration({flipCameraButton:new RoundButton({visible:!1,accessibilityDescription:"?accessibilityDescriptionFlipCameraButton",backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"})}),this.viewFinder=new PermanentViewFinderConfiguration({style:new FinderCorneredStyle({strokeColor:"?sbColorSurface",strokeWidth:2}),aspectRatio:new AspectRatio({width:2.14,height:1}),minimumInsets:new EdgeInsets({top:24,left:24,bottom:24,right:24})}),this.scannerConfiguration=new CheckScannerConfiguration({}),this.captureHighResolutionImage=!1,this.exampleOverlayVisible=!0,this.scanningProgress=new CheckScanningProgressConfiguration({}),this.noCheckFoundTimeout=5e3,this.accumulationTimeout=3e3,this.successOverlay=new ScanCompletionOverlay({}),this.noCheckDetectedAlertDialog=new ScanbotAlertDialog({title:new StyledText({text:"?checkNoCheckDetectedAlertTitle",color:"?sbColorOnSurface"}),subtitle:new StyledText({text:"?checkNoCheckDetectedAlertSubtitle",color:"?sbColorOnSurfaceVariant"}),sheetColor:"?sbColorSurface",modalOverlayColor:"?sbColorModalOverlay",dividerColor:"?sbColorOutline",okButton:new ButtonConfiguration({visible:!0,text:"?checkAlertRetryButton",accessibilityDescription:"?accessibilityDescriptionRetryButton",background:new BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new ButtonConfiguration({visible:!0,text:"?checkAlertCloseScannerButton",accessibilityDescription:"?accessibilityDescriptionCloseScannerButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})})}),this.imageNotGoodAlertDialog=new ScanbotAlertDialog({title:new StyledText({text:"?checkImageNotGoodAlertTitle",color:"?sbColorOnSurface"}),subtitle:new StyledText({text:"?checkImageNotGoodAlertSubtitle",color:"?sbColorOnSurfaceVariant"}),sheetColor:"?sbColorSurface",modalOverlayColor:"?sbColorModalOverlay",dividerColor:"?sbColorOutline",okButton:new ButtonConfiguration({visible:!0,text:"?checkAlertRetryButton",accessibilityDescription:"?accessibilityDescriptionRetryButton",background:new BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new ButtonConfiguration({visible:!0,text:"?checkAlertCloseScannerButton",accessibilityDescription:"?accessibilityDescriptionCloseScannerButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})})}),this.sound=new Sound({}),this.vibration=new Vibration({}),this.keepScreenOn=!0,void 0!==e.version&&(this.version=e.version),void 0!==e.screen&&(this.screen=e.screen),void 0!==e.localization&&(this.localization=new CheckScannerScreenTextLocalization(e.localization)),void 0!==e.palette&&(this.palette=new Palette(e.palette)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.cameraConfiguration&&(this.cameraConfiguration=new CameraConfiguration(e.cameraConfiguration)),void 0!==e.cameraPermission&&(this.cameraPermission=new CameraPermissionScreen(e.cameraPermission)),void 0!==e.topUserGuidance&&(this.topUserGuidance=new UserGuidanceConfiguration(e.topUserGuidance)),void 0!==e.scanStatusUserGuidance&&(this.scanStatusUserGuidance=new CheckScannerGuidanceConfiguration(e.scanStatusUserGuidance)),void 0!==e.topBar&&(this.topBar=new TopBarConfiguration(e.topBar)),void 0!==e.topBarOpenIntroScreenButton&&(this.topBarOpenIntroScreenButton=new IconButton(e.topBarOpenIntroScreenButton)),void 0!==e.introScreen&&(this.introScreen=new CheckScannerIntroScreenConfiguration(e.introScreen)),void 0!==e.actionBar&&(this.actionBar=new ActionBarConfiguration(e.actionBar)),void 0!==e.viewFinder&&(this.viewFinder=new PermanentViewFinderConfiguration(e.viewFinder)),void 0!==e.scannerConfiguration&&(this.scannerConfiguration=new CheckScannerConfiguration(e.scannerConfiguration)),void 0!==e.captureHighResolutionImage&&(this.captureHighResolutionImage=e.captureHighResolutionImage),void 0!==e.exampleOverlayVisible&&(this.exampleOverlayVisible=e.exampleOverlayVisible),void 0!==e.scanningProgress&&(this.scanningProgress=new CheckScanningProgressConfiguration(e.scanningProgress)),void 0!==e.noCheckFoundTimeout&&(this.noCheckFoundTimeout=e.noCheckFoundTimeout),void 0!==e.accumulationTimeout&&(this.accumulationTimeout=e.accumulationTimeout),void 0!==e.successOverlay&&(this.successOverlay=new ScanCompletionOverlay(e.successOverlay)),void 0!==e.noCheckDetectedAlertDialog&&(this.noCheckDetectedAlertDialog=new ScanbotAlertDialog(e.noCheckDetectedAlertDialog)),void 0!==e.imageNotGoodAlertDialog&&(this.imageNotGoodAlertDialog=new ScanbotAlertDialog(e.imageNotGoodAlertDialog)),void 0!==e.sound&&(this.sound=new Sound(e.sound)),void 0!==e.vibration&&(this.vibration=new Vibration(e.vibration)),void 0!==e.keepScreenOn&&(this.keepScreenOn=e.keepScreenOn)}}class CheckScannerUiResult{constructor(e={}){if(this._released=!1,void 0===e.recognitionStatus)throw new Error("recognitionStatus must be present in constructor argument");if(this.recognitionStatus=e.recognitionStatus,void 0===e.croppedImage)throw new Error("croppedImage must be present in constructor argument");if(this.croppedImage=null!=e.croppedImage?ImageRef.from(e.croppedImage):null,void 0===e.check)throw new Error("check must be present in constructor argument");this.check=null!=e.check?new GenericDocument(e.check):null}async serialize(e=new ToJsonConfiguration){return{recognitionStatus:this.recognitionStatus,croppedImage:e.serializeImages?null!=this.croppedImage?await this.croppedImage.serialize(e.imageSerializationMode):null:void 0,check:null!=this.check?await this.check.serialize(e):null}}release(){this._released||(null!=this.croppedImage&&this.croppedImage.release(),null!=this.check&&this.check.release(),this._released=!0)}async encodeImages(){null!=this.croppedImage&&await this.croppedImage.encodeInPlace(),null!=this.check&&await this.check.encodeImages()}}const BottomBarModeValues=["SOLID","GRADIENT","HIDDEN"],NavigationBarModeValues=["DARK","LIGHT","HIDDEN"];exports.CreditCardScannerIntroImage=void 0,(exports.CreditCardScannerIntroImage||(exports.CreditCardScannerIntroImage={})).from=function(e){const t=e._type;switch(t){case"CreditCardIntroOneSideImage":return new CreditCardIntroOneSideImage(e);case"CreditCardIntroTwoSidesImage":return new CreditCardIntroTwoSidesImage(e);case"CreditCardNoImage":return new CreditCardNoImage(e);case"CreditCardIntroCustomImage":return new CreditCardIntroCustomImage(e);default:throw new Error(`Unknown child class name: ${t}`)}};class CreditCardIntroOneSideImage{constructor(e={}){this._type="CreditCardIntroOneSideImage"}}class CreditCardIntroTwoSidesImage{constructor(e={}){this._type="CreditCardIntroTwoSidesImage"}}class CreditCardNoImage{constructor(e={}){this._type="CreditCardNoImage"}}class CreditCardIntroCustomImage{constructor(e={}){if(this._type="CreditCardIntroCustomImage",void 0===e.uri)throw new Error("uri must be present in constructor argument");this.uri=e.uri}}class CreditCardScannerIntroScreenConfiguration{constructor(e={}){this.image=new CreditCardIntroOneSideImage({}),this.backgroundColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.handlerColor="?sbColorOutline",this.showAutomatically=!1,this.title=new StyledText({text:"?introScreenTitle",color:"?sbColorOnSurface"}),this.explanation=new StyledText({text:"?introScreenText",color:"?sbColorOnSurface"}),this.doneButton=new ButtonConfiguration({text:"?introScreenDoneButton",accessibilityDescription:"?accessibilityDescriptionIntroScreenDoneButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new ForegroundStyle({color:"?sbColorOnPrimary"})}),void 0!==e.image&&(this.image=exports.CreditCardScannerIntroImage.from(e.image)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.handlerColor&&(this.handlerColor=e.handlerColor),void 0!==e.showAutomatically&&(this.showAutomatically=e.showAutomatically),void 0!==e.title&&(this.title=new StyledText(e.title)),void 0!==e.explanation&&(this.explanation=new StyledText(e.explanation)),void 0!==e.doneButton&&(this.doneButton=new ButtonConfiguration(e.doneButton))}}class CreditCardScannerScreenTextLocalization{constructor(e={}){this.topBarTitle="Credit Card Scanner",this.topBarCancelButton="Cancel",this.topUserGuidance="Scan the credit card",this.introScreenTitle="How to scan a credit card",this.introScreenDoneButton="Start Scanning",this.introScreenText="To quickly and securely input your credit card details, please hold your device over the credit card, so that the camera aligns with the numbers on the front of the card. \n\nThe scanner will guide you to the optimal scanning position. Once the scan is complete, your card details will automatically be extracted and processed.\n\nPress 'Start Scanning' to begin.",this.completionOverlaySuccessMessage="Scanned successfully",this.completionOverlayIncompleteDataMessage="Incomplete scan",this.accessibilityDescriptionOpenIntroScreenButton="Open introduction screen.",this.accessibilityDescriptionIntroScreenDoneButton="Start scanning",this.accessibilityDescriptionCancelButton="Cancel",this.accessibilityDescriptionFlashButton="Toggle flash",this.accessibilityDescriptionZoomButton="Toggle camera zoom",this.accessibilityDescriptionFlipCameraButton="Flip camera",this.creditCardUserGuidanceNoCardFound="Looking for credit card...",this.creditCardUserGuidanceScanningProgress="Scanning the credit card...",this.creditCardUserGuidanceTooDark="Too dark. Please turn on a light.",this.creditCardUserGuidanceTooSmall="Please move closer to the credit card.",this.creditCardUserGuidanceBadPerspective="Please hold your device straight over the credit card.",this.cameraPermissionEnableCameraTitle="Camera permission denied!",this.cameraPermissionEnableCameraExplanation="Please allow the usage of the camera to start the scanning process.",this.cameraPermissionEnableCameraButton="Grant permission",this.cameraPermissionCloseButton="Close",this.accessibilityDescriptionCameraPermissionEnableCameraButton="Tap to grant camera permission",this.accessibilityDescriptionCameraPermissionCloseButton="Close screen without granting permission",void 0!==e.topBarTitle&&(this.topBarTitle=e.topBarTitle),void 0!==e.topBarCancelButton&&(this.topBarCancelButton=e.topBarCancelButton),void 0!==e.topUserGuidance&&(this.topUserGuidance=e.topUserGuidance),void 0!==e.introScreenTitle&&(this.introScreenTitle=e.introScreenTitle),void 0!==e.introScreenDoneButton&&(this.introScreenDoneButton=e.introScreenDoneButton),void 0!==e.introScreenText&&(this.introScreenText=e.introScreenText),void 0!==e.completionOverlaySuccessMessage&&(this.completionOverlaySuccessMessage=e.completionOverlaySuccessMessage),void 0!==e.completionOverlayIncompleteDataMessage&&(this.completionOverlayIncompleteDataMessage=e.completionOverlayIncompleteDataMessage),void 0!==e.accessibilityDescriptionOpenIntroScreenButton&&(this.accessibilityDescriptionOpenIntroScreenButton=e.accessibilityDescriptionOpenIntroScreenButton),void 0!==e.accessibilityDescriptionIntroScreenDoneButton&&(this.accessibilityDescriptionIntroScreenDoneButton=e.accessibilityDescriptionIntroScreenDoneButton),void 0!==e.accessibilityDescriptionCancelButton&&(this.accessibilityDescriptionCancelButton=e.accessibilityDescriptionCancelButton),void 0!==e.accessibilityDescriptionFlashButton&&(this.accessibilityDescriptionFlashButton=e.accessibilityDescriptionFlashButton),void 0!==e.accessibilityDescriptionZoomButton&&(this.accessibilityDescriptionZoomButton=e.accessibilityDescriptionZoomButton),void 0!==e.accessibilityDescriptionFlipCameraButton&&(this.accessibilityDescriptionFlipCameraButton=e.accessibilityDescriptionFlipCameraButton),void 0!==e.creditCardUserGuidanceNoCardFound&&(this.creditCardUserGuidanceNoCardFound=e.creditCardUserGuidanceNoCardFound),void 0!==e.creditCardUserGuidanceScanningProgress&&(this.creditCardUserGuidanceScanningProgress=e.creditCardUserGuidanceScanningProgress),void 0!==e.creditCardUserGuidanceTooDark&&(this.creditCardUserGuidanceTooDark=e.creditCardUserGuidanceTooDark),void 0!==e.creditCardUserGuidanceTooSmall&&(this.creditCardUserGuidanceTooSmall=e.creditCardUserGuidanceTooSmall),void 0!==e.creditCardUserGuidanceBadPerspective&&(this.creditCardUserGuidanceBadPerspective=e.creditCardUserGuidanceBadPerspective),void 0!==e.cameraPermissionEnableCameraTitle&&(this.cameraPermissionEnableCameraTitle=e.cameraPermissionEnableCameraTitle),void 0!==e.cameraPermissionEnableCameraExplanation&&(this.cameraPermissionEnableCameraExplanation=e.cameraPermissionEnableCameraExplanation),void 0!==e.cameraPermissionEnableCameraButton&&(this.cameraPermissionEnableCameraButton=e.cameraPermissionEnableCameraButton),void 0!==e.cameraPermissionCloseButton&&(this.cameraPermissionCloseButton=e.cameraPermissionCloseButton),void 0!==e.accessibilityDescriptionCameraPermissionEnableCameraButton&&(this.accessibilityDescriptionCameraPermissionEnableCameraButton=e.accessibilityDescriptionCameraPermissionEnableCameraButton),void 0!==e.accessibilityDescriptionCameraPermissionCloseButton&&(this.accessibilityDescriptionCameraPermissionCloseButton=e.accessibilityDescriptionCameraPermissionCloseButton)}}class CreditCardScannerGuidanceStates{constructor(e={}){this.noCardFound="?creditCardUserGuidanceNoCardFound",this.scanningProgress="?creditCardUserGuidanceScanningProgress",this.tooDark="?creditCardUserGuidanceTooDark",this.tooSmall="?creditCardUserGuidanceTooSmall",this.badPerspective="?creditCardUserGuidanceBadPerspective",void 0!==e.noCardFound&&(this.noCardFound=e.noCardFound),void 0!==e.scanningProgress&&(this.scanningProgress=e.scanningProgress),void 0!==e.tooDark&&(this.tooDark=e.tooDark),void 0!==e.tooSmall&&(this.tooSmall=e.tooSmall),void 0!==e.badPerspective&&(this.badPerspective=e.badPerspective)}}class CreditCardScanGuidanceConfiguration{constructor(e={}){this.visibility=!0,this.title=new StyledText({text:"?creditCardUserGuidanceNoCardFound",color:"?sbColorOnPrimary"}),this.background=new BackgroundStyle({strokeColor:"#00000000",fillColor:"?sbColorSurfaceLow"}),this.statesTitles=new CreditCardScannerGuidanceStates({}),void 0!==e.visibility&&(this.visibility=e.visibility),void 0!==e.title&&(this.title=new StyledText(e.title)),void 0!==e.background&&(this.background=new BackgroundStyle(e.background)),void 0!==e.statesTitles&&(this.statesTitles=new CreditCardScannerGuidanceStates(e.statesTitles))}}class CreditCardScanningProgressConfiguration{constructor(e={}){this.enabled=!0,this.progressColor="#40A9FF",this.animationDuration=1e3,void 0!==e.enabled&&(this.enabled=e.enabled),void 0!==e.progressColor&&(this.progressColor=e.progressColor),void 0!==e.animationDuration&&(this.animationDuration=e.animationDuration)}}class CreditCardScannerScreenConfiguration{constructor(e={}){this.version="1.0",this.screen="CreditCardScanner",this.localization=new CreditCardScannerScreenTextLocalization({}),this.palette=new Palette({}),this.backgroundColor="?sbColorSurfaceLow",this.cameraConfiguration=new CameraConfiguration({orientationLockMode:"PORTRAIT"}),this.cameraPermission=new CameraPermissionScreen({statusBarMode:"DARK",background:"?sbColorSurface",iconBackground:"?sbColorOutline",icon:new IconStyle({visible:!0,color:"?sbColorOnSurface"}),enableCameraButton:new ButtonConfiguration({visible:!0,text:"?cameraPermissionEnableCameraButton",accessibilityDescription:"?accessibilityDescriptionCameraPermissionEnableCameraButton",background:new BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),closeButton:new ButtonConfiguration({visible:!0,text:"?cameraPermissionCloseButton",accessibilityDescription:"?accessibilityDescriptionCameraPermissionCloseButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),enableCameraTitle:new StyledText({text:"?cameraPermissionEnableCameraTitle",color:"?sbColorOnSurface"}),enableCameraExplanation:new StyledText({text:"?cameraPermissionEnableCameraExplanation",color:"?sbColorOnSurfaceVariant"})}),this.topUserGuidance=new UserGuidanceConfiguration({title:new StyledText({text:"?topUserGuidance"})}),this.scanStatusUserGuidance=new CreditCardScanGuidanceConfiguration({}),this.topBar=new TopBarConfiguration({title:new StyledText({visible:!0,text:"?topBarTitle"}),cancelButton:new ButtonConfiguration({text:"?topBarCancelButton",accessibilityDescription:"?accessibilityDescriptionCancelButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new ForegroundStyle({color:"?sbColorOnPrimary"})})}),this.topBarOpenIntroScreenButton=new IconButton({color:"?sbColorOnPrimary",accessibilityDescription:"?accessibilityDescriptionOpenIntroScreenButton"}),this.introScreen=new CreditCardScannerIntroScreenConfiguration({}),this.actionBar=new ActionBarConfiguration({flipCameraButton:new RoundButton({visible:!1,accessibilityDescription:"?accessibilityDescriptionFlipCameraButton",backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"})}),this.viewFinder=new PermanentViewFinderConfiguration({style:new FinderCorneredStyle({strokeColor:"?sbColorSurface",strokeWidth:2}),aspectRatio:new AspectRatio({width:1.586,height:1}),minimumInsets:new EdgeInsets({top:24,left:24,bottom:24,right:24})}),this.scannerConfiguration=new CreditCardScannerConfiguration({}),this.exampleOverlayVisible=!0,this.scanningProgress=new CreditCardScanningProgressConfiguration({}),this.scanIncompleteDataTimeout=3e3,this.successOverlay=new ScanCompletionOverlay({}),this.incompleteDataOverlay=new ScanCompletionOverlay({message:new StyledText({text:"?completionOverlayIncompleteDataMessage"})}),this.sound=new Sound({}),this.vibration=new Vibration({}),this.keepScreenOn=!0,void 0!==e.version&&(this.version=e.version),void 0!==e.screen&&(this.screen=e.screen),void 0!==e.localization&&(this.localization=new CreditCardScannerScreenTextLocalization(e.localization)),void 0!==e.palette&&(this.palette=new Palette(e.palette)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.cameraConfiguration&&(this.cameraConfiguration=new CameraConfiguration(e.cameraConfiguration)),void 0!==e.cameraPermission&&(this.cameraPermission=new CameraPermissionScreen(e.cameraPermission)),void 0!==e.topUserGuidance&&(this.topUserGuidance=new UserGuidanceConfiguration(e.topUserGuidance)),void 0!==e.scanStatusUserGuidance&&(this.scanStatusUserGuidance=new CreditCardScanGuidanceConfiguration(e.scanStatusUserGuidance)),void 0!==e.topBar&&(this.topBar=new TopBarConfiguration(e.topBar)),void 0!==e.topBarOpenIntroScreenButton&&(this.topBarOpenIntroScreenButton=new IconButton(e.topBarOpenIntroScreenButton)),void 0!==e.introScreen&&(this.introScreen=new CreditCardScannerIntroScreenConfiguration(e.introScreen)),void 0!==e.actionBar&&(this.actionBar=new ActionBarConfiguration(e.actionBar)),void 0!==e.viewFinder&&(this.viewFinder=new PermanentViewFinderConfiguration(e.viewFinder)),void 0!==e.scannerConfiguration&&(this.scannerConfiguration=new CreditCardScannerConfiguration(e.scannerConfiguration)),void 0!==e.exampleOverlayVisible&&(this.exampleOverlayVisible=e.exampleOverlayVisible),void 0!==e.scanningProgress&&(this.scanningProgress=new CreditCardScanningProgressConfiguration(e.scanningProgress)),void 0!==e.scanIncompleteDataTimeout&&(this.scanIncompleteDataTimeout=e.scanIncompleteDataTimeout),void 0!==e.successOverlay&&(this.successOverlay=new ScanCompletionOverlay(e.successOverlay)),void 0!==e.incompleteDataOverlay&&(this.incompleteDataOverlay=new ScanCompletionOverlay(e.incompleteDataOverlay)),void 0!==e.sound&&(this.sound=new Sound(e.sound)),void 0!==e.vibration&&(this.vibration=new Vibration(e.vibration)),void 0!==e.keepScreenOn&&(this.keepScreenOn=e.keepScreenOn)}}class CreditCardScannerUiResult{constructor(e={}){if(this._released=!1,void 0===e.recognitionStatus)throw new Error("recognitionStatus must be present in constructor argument");if(this.recognitionStatus=e.recognitionStatus,void 0===e.creditCard)throw new Error("creditCard must be present in constructor argument");this.creditCard=null!=e.creditCard?new GenericDocument(e.creditCard):null}async serialize(e=new ToJsonConfiguration){return{recognitionStatus:this.recognitionStatus,creditCard:null!=this.creditCard?await this.creditCard.serialize(e):null}}release(){this._released||(null!=this.creditCard&&this.creditCard.release(),this._released=!0)}async encodeImages(){null!=this.creditCard&&await this.creditCard.encodeImages()}}const AcknowledgementModeValues=["BAD_QUALITY","ALWAYS","NONE"];class AcknowledgementBottomBar{constructor(e={}){this.retakeButton=new BarButtonConfiguration({title:new StyledText({text:"?acknowledgementRetakeButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionAcknowledgementRetakeButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new IconStyle({color:"?sbColorOnPrimary"})}),this.acceptWhenOkButton=new BarButtonConfiguration({title:new StyledText({text:"?acknowledgementAcceptButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionAcknowledgementAcceptButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new IconStyle({color:"?sbColorOnPrimary"})}),this.acceptWhenNotOkButton=new BarButtonConfiguration({title:new StyledText({text:"?acknowledgementAcceptButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionAcknowledgementAcceptButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new IconStyle({color:"?sbColorOnPrimary"})}),void 0!==e.retakeButton&&(this.retakeButton=new BarButtonConfiguration(e.retakeButton)),void 0!==e.acceptWhenOkButton&&(this.acceptWhenOkButton=new BarButtonConfiguration(e.acceptWhenOkButton)),void 0!==e.acceptWhenNotOkButton&&(this.acceptWhenNotOkButton=new BarButtonConfiguration(e.acceptWhenNotOkButton))}}class AcknowledgementScreenConfiguration{constructor(e={}){this.topBarTitle=new StyledText({visible:!1,text:"?acknowledgementTitle",color:"?sbColorOnPrimary"}),this.minimumQuality="POOR",this.acknowledgementMode="ALWAYS",this.badImageHint=new IconUserGuidanceConfiguration({visible:!0,icon:new IconStyle({color:"?sbColorOnPrimary"}),title:new StyledText({text:"?acknowledgementScreenBadDocumentHint",color:"?sbColorOnPrimary"}),background:new BackgroundStyle({strokeColor:"?sbColorNegative",fillColor:"?sbColorNegative",strokeWidth:0})}),this.backgroundColor="?sbColorOutline",this.bottomBar=new AcknowledgementBottomBar({}),void 0!==e.topBarTitle&&(this.topBarTitle=new StyledText(e.topBarTitle)),void 0!==e.minimumQuality&&(this.minimumQuality=e.minimumQuality),void 0!==e.acknowledgementMode&&(this.acknowledgementMode=e.acknowledgementMode),void 0!==e.badImageHint&&(this.badImageHint=new IconUserGuidanceConfiguration(e.badImageHint)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.bottomBar&&(this.bottomBar=new AcknowledgementBottomBar(e.bottomBar))}}const CapturePhotoQualityPrioritizationValues=["SPEED","BALANCED","QUALITY"];class DocumentScannerCameraConfiguration{constructor(e={}){this.cameraModule="BACK",this.defaultZoomFactor=1,this.autoCropOnManualSnap=!0,this.flashEnabled=!1,this.minFocusDistanceLock=!1,this.touchToFocusEnabled=!1,this.pinchToZoomEnabled=!0,this.cameraPreviewMode="FILL_IN",this.captureQualityPrioritization="BALANCED",this.autoSnappingSensitivity=.66,this.autoSnappingDelay=200,this.autoSnappingEnabled=!0,this.captureWithHardwareButtonsEnabled=!0,this.fpsLimit=20,this.cameraLiveScannerResolution="FULL_HD",void 0!==e.cameraModule&&(this.cameraModule=e.cameraModule),void 0!==e.defaultZoomFactor&&(this.defaultZoomFactor=e.defaultZoomFactor),void 0!==e.autoCropOnManualSnap&&(this.autoCropOnManualSnap=e.autoCropOnManualSnap),void 0!==e.flashEnabled&&(this.flashEnabled=e.flashEnabled),void 0!==e.minFocusDistanceLock&&(this.minFocusDistanceLock=e.minFocusDistanceLock),void 0!==e.touchToFocusEnabled&&(this.touchToFocusEnabled=e.touchToFocusEnabled),void 0!==e.pinchToZoomEnabled&&(this.pinchToZoomEnabled=e.pinchToZoomEnabled),void 0!==e.cameraPreviewMode&&(this.cameraPreviewMode=e.cameraPreviewMode),void 0!==e.captureQualityPrioritization&&(this.captureQualityPrioritization=e.captureQualityPrioritization),void 0!==e.autoSnappingSensitivity&&(this.autoSnappingSensitivity=e.autoSnappingSensitivity),void 0!==e.autoSnappingDelay&&(this.autoSnappingDelay=e.autoSnappingDelay),void 0!==e.autoSnappingEnabled&&(this.autoSnappingEnabled=e.autoSnappingEnabled),void 0!==e.captureWithHardwareButtonsEnabled&&(this.captureWithHardwareButtonsEnabled=e.captureWithHardwareButtonsEnabled),void 0!==e.fpsLimit&&(this.fpsLimit=e.fpsLimit),void 0!==e.cameraLiveScannerResolution&&(this.cameraLiveScannerResolution=e.cameraLiveScannerResolution)}}class UserGuidanceStates{constructor(e={}){this.noDocumentFound="?cameraUserGuidanceNoDocumentFound",this.badAspectRatio="?cameraUserGuidanceBadAspectRatio",this.badAngles="?cameraUserGuidanceBadAngles",this.orientationMismatch="?cameraUserGuidanceOrientationMismatch",this.textHintOffCenter="?cameraUserGuidanceTextHintOffCenter",this.tooSmall="?cameraUserGuidanceTooSmall",this.tooNoisy="?cameraUserGuidanceTooNoisy",this.tooDark="?cameraUserGuidanceTooDark",this.energySaveMode="?cameraUserGuidanceEnergySaveMode",this.readyToCapture="?cameraUserGuidanceReadyToCapture",this.capturing="?cameraUserGuidanceReadyToCapture",this.captureManual="?cameraUserGuidanceReadyToCaptureManual",void 0!==e.noDocumentFound&&(this.noDocumentFound=e.noDocumentFound),void 0!==e.badAspectRatio&&(this.badAspectRatio=e.badAspectRatio),void 0!==e.badAngles&&(this.badAngles=e.badAngles),void 0!==e.orientationMismatch&&(this.orientationMismatch=e.orientationMismatch),void 0!==e.textHintOffCenter&&(this.textHintOffCenter=e.textHintOffCenter),void 0!==e.tooSmall&&(this.tooSmall=e.tooSmall),void 0!==e.tooNoisy&&(this.tooNoisy=e.tooNoisy),void 0!==e.tooDark&&(this.tooDark=e.tooDark),void 0!==e.energySaveMode&&(this.energySaveMode=e.energySaveMode),void 0!==e.readyToCapture&&(this.readyToCapture=e.readyToCapture),void 0!==e.capturing&&(this.capturing=e.capturing),void 0!==e.captureManual&&(this.captureManual=e.captureManual)}}class DocumentScannerUserGuidance{constructor(e={}){this.visibility="ENABLED",this.title=new StyledText({text:"?cameraUserGuidanceStart",color:"?sbColorOnPrimary"}),this.background=new BackgroundStyle({strokeColor:"#00000000",fillColor:"?sbColorSurfaceHigh"}),this.statesTitles=new UserGuidanceStates({}),void 0!==e.visibility&&(this.visibility=e.visibility),void 0!==e.title&&(this.title=new StyledText(e.title)),void 0!==e.background&&(this.background=new BackgroundStyle(e.background)),void 0!==e.statesTitles&&(this.statesTitles=new UserGuidanceStates(e.statesTitles))}}class IntroListEntry{constructor(e={}){this.image=new NoIntroImage({}),this.text=new StyledText({text:"?cameraIntroDescription",color:"?sbColorOnSurface"}),void 0!==e.image&&(this.image=exports.IntroImage.from(e.image)),void 0!==e.text&&(this.text=new StyledText(e.text))}}exports.IntroImage=void 0,(exports.IntroImage||(exports.IntroImage={})).from=function(e){const t=e._type;switch(t){case"NoIntroImage":return new NoIntroImage(e);case"CustomImage":return new CustomImage(e);case"ReceiptsIntroImage":return new ReceiptsIntroImage(e);case"MedicalCertificateIntroImage":return new MedicalCertificateIntroImage(e);case"DocumentIntroImage":return new DocumentIntroImage(e);case"CheckIntroImage":return new CheckIntroImage(e);case"IdCardIntroImage":return new IdCardIntroImage(e);case"CreditCardIntroImage":return new CreditCardIntroImage(e);default:throw new Error(`Unknown child class name: ${t}`)}};class NoIntroImage{constructor(e={}){this._type="NoIntroImage"}}class CustomImage{constructor(e={}){if(this._type="CustomImage",void 0===e.uri)throw new Error("uri must be present in constructor argument");this.uri=e.uri}}class ReceiptsIntroImage{constructor(e={}){this._type="ReceiptsIntroImage"}}class MedicalCertificateIntroImage{constructor(e={}){this._type="MedicalCertificateIntroImage"}}class DocumentIntroImage{constructor(e={}){this._type="DocumentIntroImage"}}class CheckIntroImage{constructor(e={}){this._type="CheckIntroImage"}}class IdCardIntroImage{constructor(e={}){this._type="IdCardIntroImage"}}class CreditCardIntroImage{constructor(e={}){this._type="CreditCardIntroImage"}}class IntroductionScreenConfiguration{constructor(e={}){this.backgroundColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.handlerColor="?sbColorOutline",this.showAutomatically=!1,this.topBarDoneButton=new ButtonConfiguration({visible:!0,text:"?cameraIntroDoneButton",accessibilityDescription:"?accessibilityDescriptionCameraIntroDoneButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new ForegroundStyle({iconVisible:!0,color:"?sbColorPrimary",useShadow:!1})}),this.title=new StyledText({text:"?cameraIntroTitle",color:"?sbColorOnSurface"}),this.subtitle=new StyledText({text:"?cameraIntroSubtitle",color:"?sbColorOnSurface"}),this.items=[new IntroListEntry({image:new DocumentIntroImage({}),text:new StyledText({text:"?cameraIntroItem1",color:"?sbColorOnSurface"})}),new IntroListEntry({image:new NoIntroImage({}),text:new StyledText({text:"?cameraIntroItem2",color:"?sbColorOnSurface"})}),new IntroListEntry({image:new NoIntroImage({}),text:new StyledText({text:"?cameraIntroItem3",color:"?sbColorOnSurface"})}),new IntroListEntry({image:new NoIntroImage({}),text:new StyledText({text:"?cameraIntroItem4",color:"?sbColorOnSurface"})})],void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.handlerColor&&(this.handlerColor=e.handlerColor),void 0!==e.showAutomatically&&(this.showAutomatically=e.showAutomatically),void 0!==e.topBarDoneButton&&(this.topBarDoneButton=new ButtonConfiguration(e.topBarDoneButton)),void 0!==e.title&&(this.title=new StyledText(e.title)),void 0!==e.subtitle&&(this.subtitle=new StyledText(e.subtitle)),void 0!==e.items&&(this.items=e.items.map((e=>new IntroListEntry(e))))}}class ShutterButton{constructor(e={}){this.enabledInAutoSnappingMode=!0,this.accessibilityDescription="?accessibilityDescriptionCameraShutterButton",this.outerColor="?sbColorOnPrimary",this.innerColor="?sbColorOnPrimary",void 0!==e.enabledInAutoSnappingMode&&(this.enabledInAutoSnappingMode=e.enabledInAutoSnappingMode),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.outerColor&&(this.outerColor=e.outerColor),void 0!==e.innerColor&&(this.innerColor=e.innerColor)}}exports.PreviewButton=void 0,(exports.PreviewButton||(exports.PreviewButton={})).from=function(e){const t=e._type;switch(t){case"PagePreviewMode":return new PagePreviewMode(e);case"TextButtonMode":return new TextButtonMode(e);case"TextWithBadgeButtonMode":return new TextWithBadgeButtonMode(e);case"NoButtonMode":return new NoButtonMode(e);default:throw new Error(`Unknown child class name: ${t}`)}};class ScanAssistanceOverlay{constructor(e={}){this.visible=!0,this.backgroundColor="?sbColorModalOverlay",this.foregroundColor="?sbColorSurface",void 0!==e.visible&&(this.visible=e.visible),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.foregroundColor&&(this.foregroundColor=e.foregroundColor)}}class PagePreviewMode{constructor(e={}){this._type="PagePreviewMode",this.accessibilityDescription="?accessibilityDescriptionCameraPreviewButton",this.imagePlaceholderColor="?sbColorOnSurfaceVariant",this.pageCounter=new BadgeStyle({visible:!0,background:new BackgroundStyle({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface"}),foregroundColor:"?sbColorPrimary"}),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.imagePlaceholderColor&&(this.imagePlaceholderColor=e.imagePlaceholderColor),void 0!==e.pageCounter&&(this.pageCounter=new BadgeStyle(e.pageCounter))}}class TextButtonMode{constructor(e={}){this._type="TextButtonMode",this.accessibilityDescription="?accessibilityDescriptionCameraPreviewButton",this.style=new StyledText({text:"?cameraPreviewButtonTitle",color:"?sbColorOnPrimary"}),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.style&&(this.style=new StyledText(e.style))}}class TextWithBadgeButtonMode{constructor(e={}){this._type="TextWithBadgeButtonMode",this.accessibilityDescription="?accessibilityDescriptionCameraPreviewButton",this.text=new StyledText({text:"?cameraBadgedPreviewButtonTitle",color:"?sbColorOnPrimary"}),this.pageCounter=new BadgeStyle({visible:!0,background:new BackgroundStyle({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface"}),foregroundColor:"?sbColorPrimary"}),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.text&&(this.text=new StyledText(e.text)),void 0!==e.pageCounter&&(this.pageCounter=new BadgeStyle(e.pageCounter))}}class NoButtonMode{constructor(e={}){this._type="NoButtonMode",this.visible=!1,void 0!==e.visible&&(this.visible=e.visible)}}class CameraBottomBar{constructor(e={}){this.bottomBarMode="SOLID",this.importButton=new BarButtonConfiguration({title:new StyledText({visible:!1,text:"?cameraImportButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCameraImportButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new IconStyle({color:"?sbColorOnPrimary"})}),this.autoSnappingModeButton=new BarButtonConfiguration({title:new StyledText({visible:!1,text:"?cameraAutoSnapButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCameraAutoSnapButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new IconStyle({color:"?sbColorOnPrimary"})}),this.manualSnappingModeButton=new BarButtonConfiguration({title:new StyledText({visible:!1,text:"?cameraManualSnapButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCameraManualSnapButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new IconStyle({color:"?sbColorOnPrimary"})}),this.shutterButton=new ShutterButton({accessibilityDescription:"?accessibilityDescriptionCameraShutterButton"}),this.torchOnButton=new BarButtonConfiguration({title:new StyledText({visible:!1,text:"?cameraTorchOnButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCameraTorchOnButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new IconStyle({color:"?sbColorOnPrimary"})}),this.torchOffButton=new BarButtonConfiguration({title:new StyledText({visible:!1,text:"?cameraTorchOffButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCameraTorchOffButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new IconStyle({color:"?sbColorOnPrimary"})}),this.previewButton=new PagePreviewMode({}),void 0!==e.bottomBarMode&&(this.bottomBarMode=e.bottomBarMode),void 0!==e.importButton&&(this.importButton=new BarButtonConfiguration(e.importButton)),void 0!==e.autoSnappingModeButton&&(this.autoSnappingModeButton=new BarButtonConfiguration(e.autoSnappingModeButton)),void 0!==e.manualSnappingModeButton&&(this.manualSnappingModeButton=new BarButtonConfiguration(e.manualSnappingModeButton)),void 0!==e.shutterButton&&(this.shutterButton=new ShutterButton(e.shutterButton)),void 0!==e.torchOnButton&&(this.torchOnButton=new BarButtonConfiguration(e.torchOnButton)),void 0!==e.torchOffButton&&(this.torchOffButton=new BarButtonConfiguration(e.torchOffButton)),void 0!==e.previewButton&&(this.previewButton=exports.PreviewButton.from(e.previewButton))}}exports.PageSnapFeedbackMode=void 0,(exports.PageSnapFeedbackMode||(exports.PageSnapFeedbackMode={})).from=function(e){const t=e._type;switch(t){case"PageSnapFunnelAnimation":return new PageSnapFunnelAnimation(e);case"PageSnapCheckMarkAnimation":return new PageSnapCheckMarkAnimation(e);case"PageSnapFeedbackNone":return new PageSnapFeedbackNone(e);default:throw new Error(`Unknown child class name: ${t}`)}};class PageSnapFunnelAnimation{constructor(e={}){this._type="PageSnapFunnelAnimation",this.overlayColor="?sbColorModalOverlay",void 0!==e.overlayColor&&(this.overlayColor=e.overlayColor)}}class PageSnapCheckMarkAnimation{constructor(e={}){this._type="PageSnapCheckMarkAnimation",this.overlayColor="?sbColorModalOverlay",this.checkMarkBackgroundColor="?sbColorOutline",this.checkMarkColor="#00000000",void 0!==e.overlayColor&&(this.overlayColor=e.overlayColor),void 0!==e.checkMarkBackgroundColor&&(this.checkMarkBackgroundColor=e.checkMarkBackgroundColor),void 0!==e.checkMarkColor&&(this.checkMarkColor=e.checkMarkColor)}}class PageSnapFeedbackNone{constructor(e={}){this._type="PageSnapFeedbackNone"}}class CaptureFeedback{constructor(e={}){this.cameraBlinkEnabled=!0,this.snapFeedbackMode=new PageSnapFunnelAnimation({}),void 0!==e.cameraBlinkEnabled&&(this.cameraBlinkEnabled=e.cameraBlinkEnabled),void 0!==e.snapFeedbackMode&&(this.snapFeedbackMode=exports.PageSnapFeedbackMode.from(e.snapFeedbackMode))}}class DocumentPolygonConfiguration{constructor(e={}){this.visibility="ENABLED",this.documentOk=new PolygonStyle({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:2}),this.documentNotOk=new PolygonStyle({strokeColor:"?sbColorNegative",fillColor:"#00000000",strokeWidth:2}),this.autoSnapProgress=new PolygonStyle({strokeColor:"#40A9FF",fillColor:"#00000000",strokeWidth:2}),void 0!==e.visibility&&(this.visibility=e.visibility),void 0!==e.documentOk&&(this.documentOk=new PolygonStyle(e.documentOk)),void 0!==e.documentNotOk&&(this.documentNotOk=new PolygonStyle(e.documentNotOk)),void 0!==e.autoSnapProgress&&(this.autoSnapProgress=new PolygonStyle(e.autoSnapProgress))}}class CameraScreenConfiguration{constructor(e={}){this.acknowledgement=new AcknowledgementScreenConfiguration({}),this.introduction=new IntroductionScreenConfiguration({}),this.scanAssistanceOverlay=new ScanAssistanceOverlay({}),this.cameraPermission=new CameraPermissionScreen({statusBarMode:"DARK",background:"?sbColorSurface",iconBackground:"?sbColorOutline",icon:new IconStyle({visible:!0,color:"?sbColorOnSurface"}),enableCameraButton:new ButtonConfiguration({visible:!0,text:"?cameraPermissionEnableCameraButton",accessibilityDescription:"?accessibilityDescriptionCameraPermissionEnableCameraButton",background:new BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),closeButton:new ButtonConfiguration({visible:!0,text:"?cameraPermissionCloseButton",accessibilityDescription:"?accessibilityDescriptionCameraPermissionCloseButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),enableCameraTitle:new StyledText({text:"?cameraPermissionEnableCameraTitle",color:"?sbColorOnSurface"}),enableCameraExplanation:new StyledText({text:"?cameraPermissionEnableCameraExplanation",color:"?sbColorOnSurfaceVariant"})}),this.topBarTitle=new StyledText({text:"?cameraTopBarTitle",color:"?sbColorOnPrimary"}),this.topBarIntroButton=new IconButton({color:"?sbColorOnPrimary",accessibilityDescription:"?accessibilityDescriptionCameraTopBarIntroButton"}),this.topBarBackButton=new ButtonConfiguration({visible:!0,text:"?cameraTopBarCancelButtonTitle",accessibilityDescription:"?accessibilityDescriptionCameraTopBarCancelButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),this.topUserGuidance=new UserGuidanceConfiguration({title:new StyledText({text:"?cameraTopGuidance",color:"?sbColorOnPrimary"})}),this.userGuidance=new DocumentScannerUserGuidance({}),this.backgroundColor="#000000FF",this.autoRotateImages=!0,this.openReviewAfterEachScan=!1,this.cameraConfiguration=new DocumentScannerCameraConfiguration({}),this.scannerParameters=new DocumentScannerParameters({}),this.polygon=new DocumentPolygonConfiguration({}),this.bottomBar=new CameraBottomBar({}),this.viewFinder=new ViewFinderConfiguration({aspectRatio:new AspectRatio({width:21,height:29}),visible:!1}),this.captureFeedback=new CaptureFeedback({}),this.vibration=new Vibration({enabled:!0}),this.timeouts=new Timeouts({autoCancelTimeout:0,initialScanDelay:0}),this.limitReachedAlertDialog=new ScanbotAlertDialog({title:new StyledText({text:"?cameraLimitReachedAlertTitle",color:"?sbColorOnSurface"}),subtitle:new StyledText({text:"?cameraLimitReachedAlertSubtitle",color:"?sbColorOnSurfaceVariant"}),okButton:new ButtonConfiguration({text:"?cameraLimitReachedOkButtonTitle",accessibilityDescription:"?accessibilityDescriptionCameraLimitReachedOkButton",background:new BackgroundStyle({fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new ForegroundStyle({color:"?sbColorOnPrimary"})}),cancelButton:new ButtonConfiguration({visible:!1})}),this.cancelAlertDialog=new ScanbotAlertDialog({title:new StyledText({text:"?cameraCancelAlertTitle",color:"?sbColorOnSurface"}),subtitle:new StyledText({text:"?cameraCancelAlertSubtitle",color:"?sbColorOnSurfaceVariant"}),okButton:new ButtonConfiguration({text:"?cameraCancelYesButtonTitle",accessibilityDescription:"?accessibilityDescriptionCameraCancelYesButton",background:new BackgroundStyle({fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new ForegroundStyle({color:"?sbColorOnPrimary"})}),cancelButton:new ButtonConfiguration({text:"?cameraCancelNoButtonTitle",accessibilityDescription:"?accessibilityDescriptionCameraCancelNoButton",background:new BackgroundStyle({fillColor:"#00000000",strokeWidth:0}),foreground:new ForegroundStyle({color:"?sbColorPrimary"})})}),this.documentQualityAnalyzerConfiguration=new DocumentQualityAnalyzerConfiguration({}),void 0!==e.acknowledgement&&(this.acknowledgement=new AcknowledgementScreenConfiguration(e.acknowledgement)),void 0!==e.introduction&&(this.introduction=new IntroductionScreenConfiguration(e.introduction)),void 0!==e.scanAssistanceOverlay&&(this.scanAssistanceOverlay=new ScanAssistanceOverlay(e.scanAssistanceOverlay)),void 0!==e.cameraPermission&&(this.cameraPermission=new CameraPermissionScreen(e.cameraPermission)),void 0!==e.topBarTitle&&(this.topBarTitle=new StyledText(e.topBarTitle)),void 0!==e.topBarIntroButton&&(this.topBarIntroButton=new IconButton(e.topBarIntroButton)),void 0!==e.topBarBackButton&&(this.topBarBackButton=new ButtonConfiguration(e.topBarBackButton)),void 0!==e.topUserGuidance&&(this.topUserGuidance=new UserGuidanceConfiguration(e.topUserGuidance)),void 0!==e.userGuidance&&(this.userGuidance=new DocumentScannerUserGuidance(e.userGuidance)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.autoRotateImages&&(this.autoRotateImages=e.autoRotateImages),void 0!==e.openReviewAfterEachScan&&(this.openReviewAfterEachScan=e.openReviewAfterEachScan),void 0!==e.cameraConfiguration&&(this.cameraConfiguration=new DocumentScannerCameraConfiguration(e.cameraConfiguration)),void 0!==e.scannerParameters&&(this.scannerParameters=new DocumentScannerParameters(e.scannerParameters)),void 0!==e.polygon&&(this.polygon=new DocumentPolygonConfiguration(e.polygon)),void 0!==e.bottomBar&&(this.bottomBar=new CameraBottomBar(e.bottomBar)),void 0!==e.viewFinder&&(this.viewFinder=new ViewFinderConfiguration(e.viewFinder)),void 0!==e.captureFeedback&&(this.captureFeedback=new CaptureFeedback(e.captureFeedback)),void 0!==e.vibration&&(this.vibration=new Vibration(e.vibration)),void 0!==e.timeouts&&(this.timeouts=new Timeouts(e.timeouts)),void 0!==e.limitReachedAlertDialog&&(this.limitReachedAlertDialog=new ScanbotAlertDialog(e.limitReachedAlertDialog)),void 0!==e.cancelAlertDialog&&(this.cancelAlertDialog=new ScanbotAlertDialog(e.cancelAlertDialog)),void 0!==e.documentQualityAnalyzerConfiguration&&(this.documentQualityAnalyzerConfiguration=new DocumentQualityAnalyzerConfiguration(e.documentQualityAnalyzerConfiguration))}}class CroppingBottomBar{constructor(e={}){this.detectButton=new BarButtonConfiguration({title:new StyledText({text:"?croppingDetectButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCroppingDetectButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new IconStyle({color:"?sbColorOnPrimary"})}),this.rotateButton=new BarButtonConfiguration({title:new StyledText({text:"?croppingRotateButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCroppingRotateButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new IconStyle({color:"?sbColorOnPrimary"})}),this.resetButton=new BarButtonConfiguration({title:new StyledText({text:"?croppingResetButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCroppingResetButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new IconStyle({color:"?sbColorOnPrimary"})}),void 0!==e.detectButton&&(this.detectButton=new BarButtonConfiguration(e.detectButton)),void 0!==e.rotateButton&&(this.rotateButton=new BarButtonConfiguration(e.rotateButton)),void 0!==e.resetButton&&(this.resetButton=new BarButtonConfiguration(e.resetButton))}}class CroppingScreenConfiguration{constructor(e={}){this.topBarBackButton=new ButtonConfiguration({visible:!0,text:"?croppingTopBarCancelButtonTitle",accessibilityDescription:"?accessibilityDescriptionCroppingTopBarCancelButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),this.topBarTitle=new StyledText({text:"?croppingScreenTitle",color:"?sbColorOnPrimary"}),this.topBarConfirmButton=new ButtonConfiguration({visible:!0,text:"?croppingTopBarConfirmButtonTitle",accessibilityDescription:"?accessibilityDescriptionCroppingTopBarConfirmButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),this.backgroundColor="?sbColorOutline",this.croppingHandlerColor="?sbColorSurface",this.croppingPolygonColor="?sbColorSurface",this.croppingPolygonMagneticLineColor="?sbColorSurface",this.bottomBar=new CroppingBottomBar({}),void 0!==e.topBarBackButton&&(this.topBarBackButton=new ButtonConfiguration(e.topBarBackButton)),void 0!==e.topBarTitle&&(this.topBarTitle=new StyledText(e.topBarTitle)),void 0!==e.topBarConfirmButton&&(this.topBarConfirmButton=new ButtonConfiguration(e.topBarConfirmButton)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.croppingHandlerColor&&(this.croppingHandlerColor=e.croppingHandlerColor),void 0!==e.croppingPolygonColor&&(this.croppingPolygonColor=e.croppingPolygonColor),void 0!==e.croppingPolygonMagneticLineColor&&(this.croppingPolygonMagneticLineColor=e.croppingPolygonMagneticLineColor),void 0!==e.bottomBar&&(this.bottomBar=new CroppingBottomBar(e.bottomBar))}}class CroppingTextLocalization{constructor(e={}){this.cameraProgressOverlayTitle="Please wait...",this.croppingTopBarCancelButtonTitle="Cancel",this.croppingTopBarConfirmButtonTitle="Done",this.croppingDetectButtonTitle="Detect",this.croppingRotateButtonTitle="Rotate",this.croppingResetButtonTitle="Reset",this.croppingScreenTitle="Crop",this.accessibilityDescriptionCroppingTopBarConfirmButton="Tap to apply changes",this.accessibilityDescriptionCroppingTopBarCancelButton="Tap to close screen without applying changes",this.accessibilityDescriptionCroppingDetectButton="Tap to detect document on the image",this.accessibilityDescriptionCroppingRotateButton="Tap to rotate document",this.accessibilityDescriptionCroppingResetButton="Tap to reset document contour to whole image",void 0!==e.cameraProgressOverlayTitle&&(this.cameraProgressOverlayTitle=e.cameraProgressOverlayTitle),void 0!==e.croppingTopBarCancelButtonTitle&&(this.croppingTopBarCancelButtonTitle=e.croppingTopBarCancelButtonTitle),void 0!==e.croppingTopBarConfirmButtonTitle&&(this.croppingTopBarConfirmButtonTitle=e.croppingTopBarConfirmButtonTitle),void 0!==e.croppingDetectButtonTitle&&(this.croppingDetectButtonTitle=e.croppingDetectButtonTitle),void 0!==e.croppingRotateButtonTitle&&(this.croppingRotateButtonTitle=e.croppingRotateButtonTitle),void 0!==e.croppingResetButtonTitle&&(this.croppingResetButtonTitle=e.croppingResetButtonTitle),void 0!==e.croppingScreenTitle&&(this.croppingScreenTitle=e.croppingScreenTitle),void 0!==e.accessibilityDescriptionCroppingTopBarConfirmButton&&(this.accessibilityDescriptionCroppingTopBarConfirmButton=e.accessibilityDescriptionCroppingTopBarConfirmButton),void 0!==e.accessibilityDescriptionCroppingTopBarCancelButton&&(this.accessibilityDescriptionCroppingTopBarCancelButton=e.accessibilityDescriptionCroppingTopBarCancelButton),void 0!==e.accessibilityDescriptionCroppingDetectButton&&(this.accessibilityDescriptionCroppingDetectButton=e.accessibilityDescriptionCroppingDetectButton),void 0!==e.accessibilityDescriptionCroppingRotateButton&&(this.accessibilityDescriptionCroppingRotateButton=e.accessibilityDescriptionCroppingRotateButton),void 0!==e.accessibilityDescriptionCroppingResetButton&&(this.accessibilityDescriptionCroppingResetButton=e.accessibilityDescriptionCroppingResetButton)}}class CroppingAppearanceConfiguration{constructor(e={}){this.statusBarMode="LIGHT",this.navigationBarMode="LIGHT",this.topBarBackgroundColor="?sbColorPrimary",this.bottomBarBackgroundColor="?sbColorPrimary",this.orientationLockMode="NONE",void 0!==e.statusBarMode&&(this.statusBarMode=e.statusBarMode),void 0!==e.navigationBarMode&&(this.navigationBarMode=e.navigationBarMode),void 0!==e.topBarBackgroundColor&&(this.topBarBackgroundColor=e.topBarBackgroundColor),void 0!==e.bottomBarBackgroundColor&&(this.bottomBarBackgroundColor=e.bottomBarBackgroundColor),void 0!==e.orientationLockMode&&(this.orientationLockMode=e.orientationLockMode)}}class CroppingConfiguration{constructor(e={}){if(this.version="1.0",this.screen="CroppingConfiguration",this.palette=new Palette({sbColorPrimary:"#C8193C",sbColorPrimaryDisabled:"#F5F5F5",sbColorNegative:"#FF3737",sbColorPositive:"#4EFFB4",sbColorWarning:"#FFCE5C",sbColorSecondary:"#FFEDEE",sbColorSecondaryDisabled:"#F5F5F5",sbColorOnPrimary:"#FFFFFF",sbColorOnSecondary:"#C8193C",sbColorSurface:"#FFFFFF",sbColorOutline:"#EFEFEF",sbColorOnSurfaceVariant:"#707070",sbColorOnSurface:"#000000",sbColorSurfaceLow:"#00000026",sbColorSurfaceHigh:"#0000007A",sbColorModalOverlay:"#000000A3"}),this.localization=new CroppingTextLocalization({}),this.appearance=new CroppingAppearanceConfiguration({}),this.cropping=new CroppingScreenConfiguration({}),this.documentAnalysisMode="UNFILTERED_DOCUMENT",void 0!==e.version&&(this.version=e.version),void 0!==e.screen&&(this.screen=e.screen),void 0!==e.palette&&(this.palette=new Palette(e.palette)),void 0===e.documentUuid)throw new Error("documentUuid must be present in constructor argument");if(this.documentUuid=e.documentUuid,void 0===e.pageUuid)throw new Error("pageUuid must be present in constructor argument");this.pageUuid=e.pageUuid,void 0!==e.localization&&(this.localization=new CroppingTextLocalization(e.localization)),void 0!==e.appearance&&(this.appearance=new CroppingAppearanceConfiguration(e.appearance)),void 0!==e.cropping&&(this.cropping=new CroppingScreenConfiguration(e.cropping)),void 0!==e.documentAnalysisMode&&(this.documentAnalysisMode=e.documentAnalysisMode)}}class CroppingResult{constructor(e={}){if(this.errorMessage=null,void 0===e.documentUuid)throw new Error("documentUuid must be present in constructor argument");if(this.documentUuid=e.documentUuid,void 0===e.pageUuid)throw new Error("pageUuid must be present in constructor argument");this.pageUuid=e.pageUuid,void 0!==e.errorMessage&&(this.errorMessage=null!=e.errorMessage?e.errorMessage:null)}serialize(e=new ToJsonConfiguration){return{documentUuid:this.documentUuid,pageUuid:this.pageUuid,errorMessage:null!=this.errorMessage?this.errorMessage:null}}}const UserGuidanceVisibilityValues=["ENABLED","AUTO_CAPTURE_ONLY","DISABLED"],DocumentAnalysisModeValues=["FILTERED_DOCUMENT","UNFILTERED_DOCUMENT"];class DocumentScannerOutputSettings{constructor(e={}){this.pagesScanLimit=0,this.documentImageSizeLimit=0,this.documentAnalysisMode="UNFILTERED_DOCUMENT",this.defaultFilter=null,void 0!==e.pagesScanLimit&&(this.pagesScanLimit=e.pagesScanLimit),void 0!==e.documentImageSizeLimit&&(this.documentImageSizeLimit=e.documentImageSizeLimit),void 0!==e.documentAnalysisMode&&(this.documentAnalysisMode=e.documentAnalysisMode),void 0!==e.defaultFilter&&(this.defaultFilter=null!=e.defaultFilter?exports.ParametricFilter.from(e.defaultFilter):null)}}class ReorderPagesScreenConfiguration{constructor(e={}){this.topBarBackButton=new ButtonConfiguration({visible:!0,text:"?reorderTopBarCancelButtonTitle",accessibilityDescription:"?accessibilityDescriptionReorderTopBarCancelButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),this.topBarTitle=new StyledText({text:"?reorderPageTitle",color:"?sbColorOnPrimary"}),this.topBarConfirmButton=new ButtonConfiguration({visible:!0,text:"?reorderTopBarConfirmButtonTitle",accessibilityDescription:"?accessibilityDescriptionReorderTopBarConfirmButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),this.backgroundColor="?sbColorOutline",this.guidance=new UserGuidanceConfiguration({title:new StyledText({text:"?reorderPageGuidanceTitle",color:"?sbColorOnPrimary"}),background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"?sbColorSurfaceLow",strokeWidth:0})}),this.pageTextStyle=new StyledText({text:"?reorderPageText",color:"?sbColorOnSurface"}),void 0!==e.topBarBackButton&&(this.topBarBackButton=new ButtonConfiguration(e.topBarBackButton)),void 0!==e.topBarTitle&&(this.topBarTitle=new StyledText(e.topBarTitle)),void 0!==e.topBarConfirmButton&&(this.topBarConfirmButton=new ButtonConfiguration(e.topBarConfirmButton)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.guidance&&(this.guidance=new UserGuidanceConfiguration(e.guidance)),void 0!==e.pageTextStyle&&(this.pageTextStyle=new StyledText(e.pageTextStyle))}}class ReviewBottomBarConfiguration{constructor(e={}){this.addButton=new BarButtonConfiguration({title:new StyledText({text:"?reviewScreenAddButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionReviewAddButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new IconStyle({color:"?sbColorOnPrimary"})}),this.retakeButton=new BarButtonConfiguration({title:new StyledText({text:"?reviewScreenRetakeButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionReviewRetakeButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new IconStyle({color:"?sbColorOnPrimary"})}),this.cropButton=new BarButtonConfiguration({title:new StyledText({text:"?reviewScreenCropButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionReviewCropButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new IconStyle({color:"?sbColorOnPrimary"})}),this.rotateButton=new BarButtonConfiguration({title:new StyledText({text:"?reviewScreenRotateButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionReviewRotateButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new IconStyle({color:"?sbColorOnPrimary"})}),this.deleteButton=new BarButtonConfiguration({title:new StyledText({text:"?reviewScreenDeleteButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionReviewDeleteButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new IconStyle({color:"?sbColorOnPrimary"})}),this.submitButton=new ButtonConfiguration({text:"?reviewScreenSubmitButtonTitle",accessibilityDescription:"?accessibilityDescriptionReviewSubmitButton",background:new BackgroundStyle({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:0}),foreground:new ForegroundStyle({color:"?sbColorOnSurface"})}),void 0!==e.addButton&&(this.addButton=new BarButtonConfiguration(e.addButton)),void 0!==e.retakeButton&&(this.retakeButton=new BarButtonConfiguration(e.retakeButton)),void 0!==e.cropButton&&(this.cropButton=new BarButtonConfiguration(e.cropButton)),void 0!==e.rotateButton&&(this.rotateButton=new BarButtonConfiguration(e.rotateButton)),void 0!==e.deleteButton&&(this.deleteButton=new BarButtonConfiguration(e.deleteButton)),void 0!==e.submitButton&&(this.submitButton=new ButtonConfiguration(e.submitButton))}}class ReviewMorePopupMenu{constructor(e={}){this.backgroundColor="?sbColorSurface",this.reorderPages=new PopupMenuItem({title:new StyledText({text:"?reviewScreenReorderPagesButtonTitle",color:"?sbColorOnSurface"}),accessibilityDescription:"?accessibilityDescriptionReviewReorderPagesButton",icon:new IconStyle({color:"?sbColorOnSurface"})}),this.deleteAll=new PopupMenuItem({title:new StyledText({text:"?reviewScreenDeleteAllButtonTitle",color:"?sbColorNegative"}),accessibilityDescription:"?accessibilityDescriptionReviewDeleteAllButton",icon:new IconStyle({color:"?sbColorNegative"})}),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.reorderPages&&(this.reorderPages=new PopupMenuItem(e.reorderPages)),void 0!==e.deleteAll&&(this.deleteAll=new PopupMenuItem(e.deleteAll))}}class ZoomOverlay{constructor(e={}){this.overlayColor="?sbColorModalOverlay",this.closeButton=new ButtonConfiguration({text:"?zoomOverlayCancelButtonText",accessibilityDescription:"?accessibilityDescriptionZoomOverlayCancelButton",background:new BackgroundStyle({fillColor:"#00000000",strokeWidth:0}),foreground:new ForegroundStyle({color:"?sbColorOnPrimary"})}),void 0!==e.overlayColor&&(this.overlayColor=e.overlayColor),void 0!==e.closeButton&&(this.closeButton=new ButtonConfiguration(e.closeButton))}}class ReviewScreenConfiguration{constructor(e={}){this.enabled=!0,this.showLastPageWhenAdding=!1,this.topBarTitle=new StyledText({text:"?reviewScreenTitle",color:"?sbColorOnPrimary"}),this.topBarMoreButton=new IconButton({color:"?sbColorOnPrimary",accessibilityDescription:"?accessibilityDescriptionReviewMoreButton"}),this.topBarBackButton=new ButtonConfiguration({visible:!0,text:"?reviewTopBarBackButtonTitle",accessibilityDescription:"?accessibilityDescriptionReviewTopBarBackButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),this.morePopup=new ReviewMorePopupMenu({}),this.zoomButton=new RoundButton({accessibilityDescription:"?accessibilityDescriptionReviewZoomButton",backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary"}),this.zoomOverlay=new ZoomOverlay({}),this.backgroundColor="?sbColorOnSurfaceVariant",this.bottomBar=new ReviewBottomBarConfiguration({}),this.switchNextPageButton=new IconButton({color:"?sbColorOnPrimary",accessibilityDescription:"?accessibilityDescriptionReviewNextPageButton"}),this.switchPreviousPageButton=new IconButton({color:"?sbColorOnPrimary",accessibilityDescription:"?accessibilityDescriptionReviewPreviousPageButton"}),this.pageCounter=new UserGuidanceConfiguration({title:new StyledText({text:"?reviewScreenPageCount",color:"?sbColorOnPrimary"}),background:new BackgroundStyle({fillColor:"?sbColorSurfaceHigh",strokeWidth:0})}),this.deleteAllPagesAlertDialog=new ScanbotAlertDialog({title:new StyledText({text:"?reviewDeleteAllPagesAlertTitle",color:"?sbColorOnSurface"}),subtitle:new StyledText({text:"?reviewDeleteAllPagesAlertSubtitle",color:"?sbColorOnSurfaceVariant"}),okButton:new ButtonConfiguration({text:"?reviewDeleteAllPagesAlertDeleteButtonTitle",accessibilityDescription:"?accessibilityDescriptionReviewDeleteAllPagesAlertDeleteButton",background:new BackgroundStyle({fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new ForegroundStyle({color:"?sbColorOnPrimary"})}),actionButton:new ButtonConfiguration({visible:!1}),cancelButton:new ButtonConfiguration({text:"?reviewDeleteAllPagesAlertCancelButtonTitle",accessibilityDescription:"?accessibilityDescriptionReviewDeleteAllPagesAlertCancelButton",background:new BackgroundStyle({fillColor:"#00000000",strokeWidth:0}),foreground:new ForegroundStyle({color:"?sbColorPrimary"})})}),this.deletePageAlertDialog=new ScanbotAlertDialog({title:new StyledText({text:"?reviewDeletePageAlertTitle",color:"?sbColorOnSurface"}),subtitle:new StyledText({text:"?reviewDeletePageAlertSubTitle",color:"?sbColorOnSurfaceVariant"}),okButton:new ButtonConfiguration({text:"?reviewDeletePageAlertConfirmButtonTitle",accessibilityDescription:"?accessibilityDescriptionReviewDeletePageAlertConfirmButton",background:new BackgroundStyle({fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new ForegroundStyle({color:"?sbColorOnPrimary"})}),actionButton:new ButtonConfiguration({text:"?reviewDeletePageAlertDeleteRetakeButtonTitle",accessibilityDescription:"?accessibilityDescriptionReviewDeletePageAlertDeleteRetakeButton",background:new BackgroundStyle({fillColor:"#00000000",strokeWidth:0}),foreground:new ForegroundStyle({color:"?sbColorPrimary"})}),cancelButton:new ButtonConfiguration({text:"?reviewDeletePageAlertCancelButtonTitle",accessibilityDescription:"?accessibilityDescriptionReviewDeletePageAlertCancelButton",background:new BackgroundStyle({fillColor:"#00000000",strokeWidth:0}),foreground:new ForegroundStyle({color:"?sbColorPrimary"})})}),void 0!==e.enabled&&(this.enabled=e.enabled),void 0!==e.showLastPageWhenAdding&&(this.showLastPageWhenAdding=e.showLastPageWhenAdding),void 0!==e.topBarTitle&&(this.topBarTitle=new StyledText(e.topBarTitle)),void 0!==e.topBarMoreButton&&(this.topBarMoreButton=new IconButton(e.topBarMoreButton)),void 0!==e.topBarBackButton&&(this.topBarBackButton=new ButtonConfiguration(e.topBarBackButton)),void 0!==e.morePopup&&(this.morePopup=new ReviewMorePopupMenu(e.morePopup)),void 0!==e.zoomButton&&(this.zoomButton=new RoundButton(e.zoomButton)),void 0!==e.zoomOverlay&&(this.zoomOverlay=new ZoomOverlay(e.zoomOverlay)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.bottomBar&&(this.bottomBar=new ReviewBottomBarConfiguration(e.bottomBar)),void 0!==e.switchNextPageButton&&(this.switchNextPageButton=new IconButton(e.switchNextPageButton)),void 0!==e.switchPreviousPageButton&&(this.switchPreviousPageButton=new IconButton(e.switchPreviousPageButton)),void 0!==e.pageCounter&&(this.pageCounter=new UserGuidanceConfiguration(e.pageCounter)),void 0!==e.deleteAllPagesAlertDialog&&(this.deleteAllPagesAlertDialog=new ScanbotAlertDialog(e.deleteAllPagesAlertDialog)),void 0!==e.deletePageAlertDialog&&(this.deletePageAlertDialog=new ScanbotAlertDialog(e.deletePageAlertDialog))}}class DocumentScannerScreens{constructor(e={}){this.camera=new CameraScreenConfiguration({}),this.review=new ReviewScreenConfiguration({}),this.cropping=new CroppingScreenConfiguration({}),this.reorderPages=new ReorderPagesScreenConfiguration({}),void 0!==e.camera&&(this.camera=new CameraScreenConfiguration(e.camera)),void 0!==e.review&&(this.review=new ReviewScreenConfiguration(e.review)),void 0!==e.cropping&&(this.cropping=new CroppingScreenConfiguration(e.cropping)),void 0!==e.reorderPages&&(this.reorderPages=new ReorderPagesScreenConfiguration(e.reorderPages))}}class DocumentScannerTextLocalization{constructor(e={}){this.cameraTopBarCancelButtonTitle="Cancel",this.cameraTopBarTitle="Scan Document",this.cameraTopGuidance="Scan each page of your document.",this.cameraUserGuidanceStart="Please hold your device over a document.",this.cameraUserGuidanceNoDocumentFound="No document found",this.cameraUserGuidanceBadAspectRatio="Bad aspect ratio",this.cameraUserGuidanceOrientationMismatch="Orientation mismatch",this.cameraUserGuidanceBadAngles="Bad angles",this.cameraUserGuidanceTooNoisy="Its too noisy. Try another background for the document",this.cameraUserGuidanceTextHintOffCenter="Document is off center",this.cameraUserGuidanceTooSmall="Document is too small. Move camera closer.",this.cameraUserGuidanceTooDark="Its too dark. Add more light.",this.cameraUserGuidanceEnergySaveMode="Energy save mode is on",this.cameraUserGuidanceReadyToCapture="Hold still capturing...",this.cameraUserGuidanceReadyToCaptureManual="Ready to capture!",this.cameraImportButtonTitle="Import",this.cameraTorchOnButtonTitle="On",this.cameraTorchOffButtonTitle="Off",this.cameraAutoSnapButtonTitle="Auto",this.cameraManualSnapButtonTitle="Manual",this.cameraPreviewButtonTitle="%d Pages",this.cameraBadgedPreviewButtonTitle="Submit",this.cameraIntroDoneButton="Done",this.cameraIntroTitle="How to scan a document",this.cameraIntroSubtitle="Follow the steps below to create a high-quality document scan",this.cameraIntroItem1="1. Place your document on a flat surface.",this.cameraIntroItem2="2. Hold your phone above the document.",this.cameraIntroItem3="3. Follow the on-screen guidance to find the optimal position.",this.cameraIntroItem4="4. Once you reach the optimal position, you can manually scan the document or let the app scan it automatically.",this.cameraProgressOverlayTitle="Please wait...",this.cameraCancelAlertTitle="Cancel?",this.cameraCancelAlertSubtitle="Canceling will delete all the pages scanned so far. Are you sure you want to cancel?",this.cameraCancelNoButtonTitle="No",this.cameraCancelYesButtonTitle="Yes, Cancel",this.cameraLimitReachedAlertTitle="You reached the limit!",this.cameraLimitReachedAlertSubtitle="You have scanned the maximum number of pages and cannot add any more. Please delete at least one page to perform a new scan.",this.cameraLimitReachedOkButtonTitle="Ok",this.acknowledgementScreenBadDocumentHint="The quality of your scan does not seem sufficient.",this.acknowledgementRetakeButtonTitle="Retake",this.acknowledgementAcceptButtonTitle="Use Scan",this.reviewScreenTitle="Review (%d)",this.reviewTopBarBackButtonTitle="Back",this.reviewScreenPageCount="Page %d/%d",this.reviewScreenAddButtonTitle="Add",this.reviewScreenRetakeButtonTitle="Retake",this.reviewScreenCropButtonTitle="Crop",this.reviewScreenRotateButtonTitle="Rotate",this.reviewScreenDeleteButtonTitle="Delete",this.reviewScreenSubmitButtonTitle="Submit",this.reviewScreenDeleteAllButtonTitle="Delete all",this.reviewScreenReorderPagesButtonTitle="Reorder pages",this.zoomOverlayCancelButtonText="Close",this.reviewDeletePageAlertTitle="Delete page?",this.reviewDeleteAllPagesAlertTitle="Delete all?",this.reviewDeletePageAlertSubTitle="Are you sure you want to delete the page?",this.reviewDeleteAllPagesAlertSubtitle="Are you sure you want to delete all pages?",this.reviewDeletePageAlertConfirmButtonTitle="Yes, Delete",this.reviewDeleteAllPagesAlertDeleteButtonTitle="Yes, Delete all",this.reviewDeletePageAlertDeleteRetakeButtonTitle="Delete and Retake",this.reviewDeletePageAlertCancelButtonTitle="Cancel",this.reviewDeleteAllPagesAlertCancelButtonTitle="Cancel",this.acknowledgementTitle="Acknowledgement",this.reorderPageTitle="Reorder Pages",this.reorderPageGuidanceTitle="Drag pages to reorder",this.reorderPageText="%d",this.reorderTopBarConfirmButtonTitle="Done",this.reorderTopBarCancelButtonTitle="Cancel",this.croppingTopBarConfirmButtonTitle="Done",this.croppingTopBarCancelButtonTitle="Cancel",this.croppingDetectButtonTitle="Detect",this.croppingRotateButtonTitle="Rotate",this.croppingResetButtonTitle="Reset",this.croppingScreenTitle="Crop",this.accessibilityDescriptionCameraTopBarIntroButton="Tap to open introduction screen",this.accessibilityDescriptionCameraTopBarCancelButton="Tap to close scanner screen",this.accessibilityDescriptionCameraImportButton="Tap to import image",this.accessibilityDescriptionCameraTorchOnButton="Tap to disable torch",this.accessibilityDescriptionCameraTorchOffButton="Tap to enable torch",this.accessibilityDescriptionCameraShutterButton="Tap to take image",this.accessibilityDescriptionCameraAutoSnapButton="Tap to enable manual snapping mode",this.accessibilityDescriptionCameraManualSnapButton="Tap to enable auto snapping mode",this.accessibilityDescriptionCameraPreviewButton="Tap to preview scanned pages",this.accessibilityDescriptionCameraIntroDoneButton="Tap to close introduction screen",this.accessibilityDescriptionAcknowledgementRetakeButton="Tap to retake the image",this.accessibilityDescriptionAcknowledgementAcceptButton="Tap to accept the image regardless of its quality",this.accessibilityDescriptionCroppingTopBarConfirmButton="Tap to apply changes",this.accessibilityDescriptionCroppingTopBarCancelButton="Tap to close screen without applying changes",this.accessibilityDescriptionCroppingDetectButton="Tap to detect document on the image",this.accessibilityDescriptionCroppingRotateButton="Tap to rotate document",this.accessibilityDescriptionCroppingResetButton="Tap to reset document contour to whole image",this.accessibilityDescriptionReorderTopBarConfirmButton="Tap to apply changes",this.accessibilityDescriptionReorderTopBarCancelButton="Tap to close screen without applying changes",this.accessibilityDescriptionReviewNextPageButton="Tap to switch to the new page",this.accessibilityDescriptionReviewPreviousPageButton="Tap to switch to the previous page",this.accessibilityDescriptionReviewAddButton="Tap to Add new page",this.accessibilityDescriptionReviewRetakeButton="Tap to Retake current selected page",this.accessibilityDescriptionReviewCropButton="Tap to Crop selected page",this.accessibilityDescriptionReviewRotateButton="Tap to Rotate selected page clockwise",this.accessibilityDescriptionReviewDeleteButton="Tap to Delete selected page",this.accessibilityDescriptionReviewSubmitButton="Tap to Submit document",this.accessibilityDescriptionReviewMoreButton="Tap to show additional options",this.accessibilityDescriptionReviewDeleteAllButton="Tap to Delete all pages",this.accessibilityDescriptionReviewReorderPagesButton="Tap to Reorder pages",this.accessibilityDescriptionZoomOverlayCancelButton="Tap to Close zoom overlay",this.accessibilityDescriptionReviewZoomButton="Tap to open zoom overlay for selected page",this.accessibilityDescriptionReviewTopBarBackButton="Tap to Close review screen",this.accessibilityDescriptionReviewDeletePageAlertConfirmButton="Tap to Delete page",this.accessibilityDescriptionReviewDeleteAllPagesAlertDeleteButton="Tap to Delete all pages",this.accessibilityDescriptionReviewDeletePageAlertDeleteRetakeButton="Tap to Delete page and Retake it",this.accessibilityDescriptionReviewDeletePageAlertCancelButton="Tap to Cancel operation",this.accessibilityDescriptionReviewDeleteAllPagesAlertCancelButton="Tap to Cancel operation",this.accessibilityDescriptionCameraLimitReachedOkButton="Tap to close alert dialog",this.accessibilityDescriptionCameraCancelYesButton="Tap to cancel document",this.accessibilityDescriptionCameraCancelNoButton="Tap to close alert dialog",this.cameraPermissionEnableCameraTitle="Camera permission denied!",this.cameraPermissionEnableCameraExplanation="Please allow the usage of the camera to start the scanning process.",this.cameraPermissionEnableCameraButton="Grant permission",this.cameraPermissionCloseButton="Close",this.accessibilityDescriptionCameraPermissionEnableCameraButton="Tap to grant camera permission",this.accessibilityDescriptionCameraPermissionCloseButton="Close screen without granting permission",void 0!==e.cameraTopBarCancelButtonTitle&&(this.cameraTopBarCancelButtonTitle=e.cameraTopBarCancelButtonTitle),void 0!==e.cameraTopBarTitle&&(this.cameraTopBarTitle=e.cameraTopBarTitle),void 0!==e.cameraTopGuidance&&(this.cameraTopGuidance=e.cameraTopGuidance),void 0!==e.cameraUserGuidanceStart&&(this.cameraUserGuidanceStart=e.cameraUserGuidanceStart),void 0!==e.cameraUserGuidanceNoDocumentFound&&(this.cameraUserGuidanceNoDocumentFound=e.cameraUserGuidanceNoDocumentFound),void 0!==e.cameraUserGuidanceBadAspectRatio&&(this.cameraUserGuidanceBadAspectRatio=e.cameraUserGuidanceBadAspectRatio),void 0!==e.cameraUserGuidanceOrientationMismatch&&(this.cameraUserGuidanceOrientationMismatch=e.cameraUserGuidanceOrientationMismatch),void 0!==e.cameraUserGuidanceBadAngles&&(this.cameraUserGuidanceBadAngles=e.cameraUserGuidanceBadAngles),void 0!==e.cameraUserGuidanceTooNoisy&&(this.cameraUserGuidanceTooNoisy=e.cameraUserGuidanceTooNoisy),void 0!==e.cameraUserGuidanceTextHintOffCenter&&(this.cameraUserGuidanceTextHintOffCenter=e.cameraUserGuidanceTextHintOffCenter),void 0!==e.cameraUserGuidanceTooSmall&&(this.cameraUserGuidanceTooSmall=e.cameraUserGuidanceTooSmall),void 0!==e.cameraUserGuidanceTooDark&&(this.cameraUserGuidanceTooDark=e.cameraUserGuidanceTooDark),void 0!==e.cameraUserGuidanceEnergySaveMode&&(this.cameraUserGuidanceEnergySaveMode=e.cameraUserGuidanceEnergySaveMode),void 0!==e.cameraUserGuidanceReadyToCapture&&(this.cameraUserGuidanceReadyToCapture=e.cameraUserGuidanceReadyToCapture),void 0!==e.cameraUserGuidanceReadyToCaptureManual&&(this.cameraUserGuidanceReadyToCaptureManual=e.cameraUserGuidanceReadyToCaptureManual),void 0!==e.cameraImportButtonTitle&&(this.cameraImportButtonTitle=e.cameraImportButtonTitle),void 0!==e.cameraTorchOnButtonTitle&&(this.cameraTorchOnButtonTitle=e.cameraTorchOnButtonTitle),void 0!==e.cameraTorchOffButtonTitle&&(this.cameraTorchOffButtonTitle=e.cameraTorchOffButtonTitle),void 0!==e.cameraAutoSnapButtonTitle&&(this.cameraAutoSnapButtonTitle=e.cameraAutoSnapButtonTitle),void 0!==e.cameraManualSnapButtonTitle&&(this.cameraManualSnapButtonTitle=e.cameraManualSnapButtonTitle),void 0!==e.cameraPreviewButtonTitle&&(this.cameraPreviewButtonTitle=e.cameraPreviewButtonTitle),void 0!==e.cameraBadgedPreviewButtonTitle&&(this.cameraBadgedPreviewButtonTitle=e.cameraBadgedPreviewButtonTitle),void 0!==e.cameraIntroDoneButton&&(this.cameraIntroDoneButton=e.cameraIntroDoneButton),void 0!==e.cameraIntroTitle&&(this.cameraIntroTitle=e.cameraIntroTitle),void 0!==e.cameraIntroSubtitle&&(this.cameraIntroSubtitle=e.cameraIntroSubtitle),void 0!==e.cameraIntroItem1&&(this.cameraIntroItem1=e.cameraIntroItem1),void 0!==e.cameraIntroItem2&&(this.cameraIntroItem2=e.cameraIntroItem2),void 0!==e.cameraIntroItem3&&(this.cameraIntroItem3=e.cameraIntroItem3),void 0!==e.cameraIntroItem4&&(this.cameraIntroItem4=e.cameraIntroItem4),void 0!==e.cameraProgressOverlayTitle&&(this.cameraProgressOverlayTitle=e.cameraProgressOverlayTitle),void 0!==e.cameraCancelAlertTitle&&(this.cameraCancelAlertTitle=e.cameraCancelAlertTitle),void 0!==e.cameraCancelAlertSubtitle&&(this.cameraCancelAlertSubtitle=e.cameraCancelAlertSubtitle),void 0!==e.cameraCancelNoButtonTitle&&(this.cameraCancelNoButtonTitle=e.cameraCancelNoButtonTitle),void 0!==e.cameraCancelYesButtonTitle&&(this.cameraCancelYesButtonTitle=e.cameraCancelYesButtonTitle),void 0!==e.cameraLimitReachedAlertTitle&&(this.cameraLimitReachedAlertTitle=e.cameraLimitReachedAlertTitle),void 0!==e.cameraLimitReachedAlertSubtitle&&(this.cameraLimitReachedAlertSubtitle=e.cameraLimitReachedAlertSubtitle),void 0!==e.cameraLimitReachedOkButtonTitle&&(this.cameraLimitReachedOkButtonTitle=e.cameraLimitReachedOkButtonTitle),void 0!==e.acknowledgementScreenBadDocumentHint&&(this.acknowledgementScreenBadDocumentHint=e.acknowledgementScreenBadDocumentHint),void 0!==e.acknowledgementRetakeButtonTitle&&(this.acknowledgementRetakeButtonTitle=e.acknowledgementRetakeButtonTitle),void 0!==e.acknowledgementAcceptButtonTitle&&(this.acknowledgementAcceptButtonTitle=e.acknowledgementAcceptButtonTitle),void 0!==e.reviewScreenTitle&&(this.reviewScreenTitle=e.reviewScreenTitle),void 0!==e.reviewTopBarBackButtonTitle&&(this.reviewTopBarBackButtonTitle=e.reviewTopBarBackButtonTitle),void 0!==e.reviewScreenPageCount&&(this.reviewScreenPageCount=e.reviewScreenPageCount),void 0!==e.reviewScreenAddButtonTitle&&(this.reviewScreenAddButtonTitle=e.reviewScreenAddButtonTitle),void 0!==e.reviewScreenRetakeButtonTitle&&(this.reviewScreenRetakeButtonTitle=e.reviewScreenRetakeButtonTitle),void 0!==e.reviewScreenCropButtonTitle&&(this.reviewScreenCropButtonTitle=e.reviewScreenCropButtonTitle),void 0!==e.reviewScreenRotateButtonTitle&&(this.reviewScreenRotateButtonTitle=e.reviewScreenRotateButtonTitle),void 0!==e.reviewScreenDeleteButtonTitle&&(this.reviewScreenDeleteButtonTitle=e.reviewScreenDeleteButtonTitle),void 0!==e.reviewScreenSubmitButtonTitle&&(this.reviewScreenSubmitButtonTitle=e.reviewScreenSubmitButtonTitle),void 0!==e.reviewScreenDeleteAllButtonTitle&&(this.reviewScreenDeleteAllButtonTitle=e.reviewScreenDeleteAllButtonTitle),void 0!==e.reviewScreenReorderPagesButtonTitle&&(this.reviewScreenReorderPagesButtonTitle=e.reviewScreenReorderPagesButtonTitle),void 0!==e.zoomOverlayCancelButtonText&&(this.zoomOverlayCancelButtonText=e.zoomOverlayCancelButtonText),void 0!==e.reviewDeletePageAlertTitle&&(this.reviewDeletePageAlertTitle=e.reviewDeletePageAlertTitle),void 0!==e.reviewDeleteAllPagesAlertTitle&&(this.reviewDeleteAllPagesAlertTitle=e.reviewDeleteAllPagesAlertTitle),void 0!==e.reviewDeletePageAlertSubTitle&&(this.reviewDeletePageAlertSubTitle=e.reviewDeletePageAlertSubTitle),void 0!==e.reviewDeleteAllPagesAlertSubtitle&&(this.reviewDeleteAllPagesAlertSubtitle=e.reviewDeleteAllPagesAlertSubtitle),void 0!==e.reviewDeletePageAlertConfirmButtonTitle&&(this.reviewDeletePageAlertConfirmButtonTitle=e.reviewDeletePageAlertConfirmButtonTitle),void 0!==e.reviewDeleteAllPagesAlertDeleteButtonTitle&&(this.reviewDeleteAllPagesAlertDeleteButtonTitle=e.reviewDeleteAllPagesAlertDeleteButtonTitle),void 0!==e.reviewDeletePageAlertDeleteRetakeButtonTitle&&(this.reviewDeletePageAlertDeleteRetakeButtonTitle=e.reviewDeletePageAlertDeleteRetakeButtonTitle),void 0!==e.reviewDeletePageAlertCancelButtonTitle&&(this.reviewDeletePageAlertCancelButtonTitle=e.reviewDeletePageAlertCancelButtonTitle),void 0!==e.reviewDeleteAllPagesAlertCancelButtonTitle&&(this.reviewDeleteAllPagesAlertCancelButtonTitle=e.reviewDeleteAllPagesAlertCancelButtonTitle),void 0!==e.acknowledgementTitle&&(this.acknowledgementTitle=e.acknowledgementTitle),void 0!==e.reorderPageTitle&&(this.reorderPageTitle=e.reorderPageTitle),void 0!==e.reorderPageGuidanceTitle&&(this.reorderPageGuidanceTitle=e.reorderPageGuidanceTitle),void 0!==e.reorderPageText&&(this.reorderPageText=e.reorderPageText),void 0!==e.reorderTopBarConfirmButtonTitle&&(this.reorderTopBarConfirmButtonTitle=e.reorderTopBarConfirmButtonTitle),void 0!==e.reorderTopBarCancelButtonTitle&&(this.reorderTopBarCancelButtonTitle=e.reorderTopBarCancelButtonTitle),void 0!==e.croppingTopBarConfirmButtonTitle&&(this.croppingTopBarConfirmButtonTitle=e.croppingTopBarConfirmButtonTitle),void 0!==e.croppingTopBarCancelButtonTitle&&(this.croppingTopBarCancelButtonTitle=e.croppingTopBarCancelButtonTitle),void 0!==e.croppingDetectButtonTitle&&(this.croppingDetectButtonTitle=e.croppingDetectButtonTitle),void 0!==e.croppingRotateButtonTitle&&(this.croppingRotateButtonTitle=e.croppingRotateButtonTitle),void 0!==e.croppingResetButtonTitle&&(this.croppingResetButtonTitle=e.croppingResetButtonTitle),void 0!==e.croppingScreenTitle&&(this.croppingScreenTitle=e.croppingScreenTitle),void 0!==e.accessibilityDescriptionCameraTopBarIntroButton&&(this.accessibilityDescriptionCameraTopBarIntroButton=e.accessibilityDescriptionCameraTopBarIntroButton),void 0!==e.accessibilityDescriptionCameraTopBarCancelButton&&(this.accessibilityDescriptionCameraTopBarCancelButton=e.accessibilityDescriptionCameraTopBarCancelButton),void 0!==e.accessibilityDescriptionCameraImportButton&&(this.accessibilityDescriptionCameraImportButton=e.accessibilityDescriptionCameraImportButton),void 0!==e.accessibilityDescriptionCameraTorchOnButton&&(this.accessibilityDescriptionCameraTorchOnButton=e.accessibilityDescriptionCameraTorchOnButton),void 0!==e.accessibilityDescriptionCameraTorchOffButton&&(this.accessibilityDescriptionCameraTorchOffButton=e.accessibilityDescriptionCameraTorchOffButton),void 0!==e.accessibilityDescriptionCameraShutterButton&&(this.accessibilityDescriptionCameraShutterButton=e.accessibilityDescriptionCameraShutterButton),void 0!==e.accessibilityDescriptionCameraAutoSnapButton&&(this.accessibilityDescriptionCameraAutoSnapButton=e.accessibilityDescriptionCameraAutoSnapButton),void 0!==e.accessibilityDescriptionCameraManualSnapButton&&(this.accessibilityDescriptionCameraManualSnapButton=e.accessibilityDescriptionCameraManualSnapButton),void 0!==e.accessibilityDescriptionCameraPreviewButton&&(this.accessibilityDescriptionCameraPreviewButton=e.accessibilityDescriptionCameraPreviewButton),void 0!==e.accessibilityDescriptionCameraIntroDoneButton&&(this.accessibilityDescriptionCameraIntroDoneButton=e.accessibilityDescriptionCameraIntroDoneButton),void 0!==e.accessibilityDescriptionAcknowledgementRetakeButton&&(this.accessibilityDescriptionAcknowledgementRetakeButton=e.accessibilityDescriptionAcknowledgementRetakeButton),void 0!==e.accessibilityDescriptionAcknowledgementAcceptButton&&(this.accessibilityDescriptionAcknowledgementAcceptButton=e.accessibilityDescriptionAcknowledgementAcceptButton),void 0!==e.accessibilityDescriptionCroppingTopBarConfirmButton&&(this.accessibilityDescriptionCroppingTopBarConfirmButton=e.accessibilityDescriptionCroppingTopBarConfirmButton),void 0!==e.accessibilityDescriptionCroppingTopBarCancelButton&&(this.accessibilityDescriptionCroppingTopBarCancelButton=e.accessibilityDescriptionCroppingTopBarCancelButton),void 0!==e.accessibilityDescriptionCroppingDetectButton&&(this.accessibilityDescriptionCroppingDetectButton=e.accessibilityDescriptionCroppingDetectButton),void 0!==e.accessibilityDescriptionCroppingRotateButton&&(this.accessibilityDescriptionCroppingRotateButton=e.accessibilityDescriptionCroppingRotateButton),void 0!==e.accessibilityDescriptionCroppingResetButton&&(this.accessibilityDescriptionCroppingResetButton=e.accessibilityDescriptionCroppingResetButton),void 0!==e.accessibilityDescriptionReorderTopBarConfirmButton&&(this.accessibilityDescriptionReorderTopBarConfirmButton=e.accessibilityDescriptionReorderTopBarConfirmButton),void 0!==e.accessibilityDescriptionReorderTopBarCancelButton&&(this.accessibilityDescriptionReorderTopBarCancelButton=e.accessibilityDescriptionReorderTopBarCancelButton),void 0!==e.accessibilityDescriptionReviewNextPageButton&&(this.accessibilityDescriptionReviewNextPageButton=e.accessibilityDescriptionReviewNextPageButton),void 0!==e.accessibilityDescriptionReviewPreviousPageButton&&(this.accessibilityDescriptionReviewPreviousPageButton=e.accessibilityDescriptionReviewPreviousPageButton),void 0!==e.accessibilityDescriptionReviewAddButton&&(this.accessibilityDescriptionReviewAddButton=e.accessibilityDescriptionReviewAddButton),void 0!==e.accessibilityDescriptionReviewRetakeButton&&(this.accessibilityDescriptionReviewRetakeButton=e.accessibilityDescriptionReviewRetakeButton),void 0!==e.accessibilityDescriptionReviewCropButton&&(this.accessibilityDescriptionReviewCropButton=e.accessibilityDescriptionReviewCropButton),void 0!==e.accessibilityDescriptionReviewRotateButton&&(this.accessibilityDescriptionReviewRotateButton=e.accessibilityDescriptionReviewRotateButton),void 0!==e.accessibilityDescriptionReviewDeleteButton&&(this.accessibilityDescriptionReviewDeleteButton=e.accessibilityDescriptionReviewDeleteButton),void 0!==e.accessibilityDescriptionReviewSubmitButton&&(this.accessibilityDescriptionReviewSubmitButton=e.accessibilityDescriptionReviewSubmitButton),void 0!==e.accessibilityDescriptionReviewMoreButton&&(this.accessibilityDescriptionReviewMoreButton=e.accessibilityDescriptionReviewMoreButton),void 0!==e.accessibilityDescriptionReviewDeleteAllButton&&(this.accessibilityDescriptionReviewDeleteAllButton=e.accessibilityDescriptionReviewDeleteAllButton),void 0!==e.accessibilityDescriptionReviewReorderPagesButton&&(this.accessibilityDescriptionReviewReorderPagesButton=e.accessibilityDescriptionReviewReorderPagesButton),void 0!==e.accessibilityDescriptionZoomOverlayCancelButton&&(this.accessibilityDescriptionZoomOverlayCancelButton=e.accessibilityDescriptionZoomOverlayCancelButton),void 0!==e.accessibilityDescriptionReviewZoomButton&&(this.accessibilityDescriptionReviewZoomButton=e.accessibilityDescriptionReviewZoomButton),void 0!==e.accessibilityDescriptionReviewTopBarBackButton&&(this.accessibilityDescriptionReviewTopBarBackButton=e.accessibilityDescriptionReviewTopBarBackButton),void 0!==e.accessibilityDescriptionReviewDeletePageAlertConfirmButton&&(this.accessibilityDescriptionReviewDeletePageAlertConfirmButton=e.accessibilityDescriptionReviewDeletePageAlertConfirmButton),void 0!==e.accessibilityDescriptionReviewDeleteAllPagesAlertDeleteButton&&(this.accessibilityDescriptionReviewDeleteAllPagesAlertDeleteButton=e.accessibilityDescriptionReviewDeleteAllPagesAlertDeleteButton),void 0!==e.accessibilityDescriptionReviewDeletePageAlertDeleteRetakeButton&&(this.accessibilityDescriptionReviewDeletePageAlertDeleteRetakeButton=e.accessibilityDescriptionReviewDeletePageAlertDeleteRetakeButton),void 0!==e.accessibilityDescriptionReviewDeletePageAlertCancelButton&&(this.accessibilityDescriptionReviewDeletePageAlertCancelButton=e.accessibilityDescriptionReviewDeletePageAlertCancelButton),void 0!==e.accessibilityDescriptionReviewDeleteAllPagesAlertCancelButton&&(this.accessibilityDescriptionReviewDeleteAllPagesAlertCancelButton=e.accessibilityDescriptionReviewDeleteAllPagesAlertCancelButton),void 0!==e.accessibilityDescriptionCameraLimitReachedOkButton&&(this.accessibilityDescriptionCameraLimitReachedOkButton=e.accessibilityDescriptionCameraLimitReachedOkButton),void 0!==e.accessibilityDescriptionCameraCancelYesButton&&(this.accessibilityDescriptionCameraCancelYesButton=e.accessibilityDescriptionCameraCancelYesButton),void 0!==e.accessibilityDescriptionCameraCancelNoButton&&(this.accessibilityDescriptionCameraCancelNoButton=e.accessibilityDescriptionCameraCancelNoButton),void 0!==e.cameraPermissionEnableCameraTitle&&(this.cameraPermissionEnableCameraTitle=e.cameraPermissionEnableCameraTitle),void 0!==e.cameraPermissionEnableCameraExplanation&&(this.cameraPermissionEnableCameraExplanation=e.cameraPermissionEnableCameraExplanation),void 0!==e.cameraPermissionEnableCameraButton&&(this.cameraPermissionEnableCameraButton=e.cameraPermissionEnableCameraButton),void 0!==e.cameraPermissionCloseButton&&(this.cameraPermissionCloseButton=e.cameraPermissionCloseButton),void 0!==e.accessibilityDescriptionCameraPermissionEnableCameraButton&&(this.accessibilityDescriptionCameraPermissionEnableCameraButton=e.accessibilityDescriptionCameraPermissionEnableCameraButton),void 0!==e.accessibilityDescriptionCameraPermissionCloseButton&&(this.accessibilityDescriptionCameraPermissionCloseButton=e.accessibilityDescriptionCameraPermissionCloseButton)}}class DocumentFlowAppearanceConfiguration{constructor(e={}){this.statusBarMode="LIGHT",this.navigationBarMode="LIGHT",this.topBarBackgroundColor="?sbColorPrimary",this.bottomBarBackgroundColor="?sbColorPrimary",this.orientationLockMode="NONE",void 0!==e.statusBarMode&&(this.statusBarMode=e.statusBarMode),void 0!==e.navigationBarMode&&(this.navigationBarMode=e.navigationBarMode),void 0!==e.topBarBackgroundColor&&(this.topBarBackgroundColor=e.topBarBackgroundColor),void 0!==e.bottomBarBackgroundColor&&(this.bottomBarBackgroundColor=e.bottomBarBackgroundColor),void 0!==e.orientationLockMode&&(this.orientationLockMode=e.orientationLockMode)}}class DocumentScanningFlow{constructor(e={}){this.version="1.0",this.screen="DocumentScanner",this.palette=new Palette({sbColorPrimary:"#C8193C",sbColorPrimaryDisabled:"#F5F5F5",sbColorNegative:"#FF3737",sbColorPositive:"#4EFFB4",sbColorWarning:"#FFCE5C",sbColorSecondary:"#FFEDEE",sbColorSecondaryDisabled:"#F5F5F5",sbColorOnPrimary:"#FFFFFF",sbColorOnSecondary:"#C8193C",sbColorSurface:"#FFFFFF",sbColorOutline:"#EFEFEF",sbColorOnSurfaceVariant:"#707070",sbColorOnSurface:"#000000",sbColorSurfaceLow:"#00000026",sbColorSurfaceHigh:"#0000007A",sbColorModalOverlay:"#000000A3"}),this.localization=new DocumentScannerTextLocalization({}),this.appearance=new DocumentFlowAppearanceConfiguration({}),this.outputSettings=new DocumentScannerOutputSettings({}),this.screens=new DocumentScannerScreens({}),this.documentUuid=null,this.cleanScanningSession=!0,this.showReviewScreenOnStart=!1,this.keepScreenOn=!0,void 0!==e.version&&(this.version=e.version),void 0!==e.screen&&(this.screen=e.screen),void 0!==e.palette&&(this.palette=new Palette(e.palette)),void 0!==e.localization&&(this.localization=new DocumentScannerTextLocalization(e.localization)),void 0!==e.appearance&&(this.appearance=new DocumentFlowAppearanceConfiguration(e.appearance)),void 0!==e.outputSettings&&(this.outputSettings=new DocumentScannerOutputSettings(e.outputSettings)),void 0!==e.screens&&(this.screens=new DocumentScannerScreens(e.screens)),void 0!==e.documentUuid&&(this.documentUuid=null!=e.documentUuid?e.documentUuid:null),void 0!==e.cleanScanningSession&&(this.cleanScanningSession=e.cleanScanningSession),void 0!==e.showReviewScreenOnStart&&(this.showReviewScreenOnStart=e.showReviewScreenOnStart),void 0!==e.keepScreenOn&&(this.keepScreenOn=e.keepScreenOn)}}class DocumentDataExtractionProgressConfiguration{constructor(e={}){this.enabled=!0,this.progressColor="#40A9FF",this.animationDuration=1e3,void 0!==e.enabled&&(this.enabled=e.enabled),void 0!==e.progressColor&&(this.progressColor=e.progressColor),void 0!==e.animationDuration&&(this.animationDuration=e.animationDuration)}}exports.DocumentDataExtractorIntroImage=void 0,(exports.DocumentDataExtractorIntroImage||(exports.DocumentDataExtractorIntroImage={})).from=function(e){const t=e._type;switch(t){case"DocumentDataIntroDefaultImage":return new DocumentDataIntroDefaultImage(e);case"DocumentDataIntroNoImage":return new DocumentDataIntroNoImage(e);case"DocumentDataIntroCustomImage":return new DocumentDataIntroCustomImage(e);default:throw new Error(`Unknown child class name: ${t}`)}};class DocumentDataIntroDefaultImage{constructor(e={}){this._type="DocumentDataIntroDefaultImage"}}class DocumentDataIntroNoImage{constructor(e={}){this._type="DocumentDataIntroNoImage"}}class DocumentDataIntroCustomImage{constructor(e={}){if(this._type="DocumentDataIntroCustomImage",void 0===e.uri)throw new Error("uri must be present in constructor argument");this.uri=e.uri}}class DocumentDataExtractorIntroScreenConfiguration{constructor(e={}){this.image=new DocumentDataIntroDefaultImage({}),this.backgroundColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.handlerColor="?sbColorOutline",this.showAutomatically=!1,this.title=new StyledText({text:"?introScreenTitle",color:"?sbColorOnSurface"}),this.explanation=new StyledText({text:"?introScreenText",color:"?sbColorOnSurface"}),this.doneButton=new ButtonConfiguration({text:"?introScreenDoneButton",accessibilityDescription:"?accessibilityDescriptionIntroScreenDoneButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new ForegroundStyle({color:"?sbColorOnPrimary"})}),void 0!==e.image&&(this.image=exports.DocumentDataExtractorIntroImage.from(e.image)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.handlerColor&&(this.handlerColor=e.handlerColor),void 0!==e.showAutomatically&&(this.showAutomatically=e.showAutomatically),void 0!==e.title&&(this.title=new StyledText(e.title)),void 0!==e.explanation&&(this.explanation=new StyledText(e.explanation)),void 0!==e.doneButton&&(this.doneButton=new ButtonConfiguration(e.doneButton))}}class DocumentDataExtractorScreenTextLocalization{constructor(e={}){this.topBarTitle="Document Data Extractor",this.topBarCancelButton="Cancel",this.topUserGuidance="Point the camera at the ID document",this.introScreenTitle="How to scan an ID document",this.introScreenDoneButton="Start Scanning",this.introScreenText="To scan an ID, position the document within the frame, ensuring it's properly aligned and all key details are clearly visible. The scanner will then automatically extract essential information like name, date of birth, and document number. Once scanned, the data will be processed.\n\nPress 'Start Scanning' to begin.",this.completionOverlaySuccessMessage="Scanned successfully",this.accessibilityDescriptionOpenIntroScreenButton="Open ID document scanning introduction",this.accessibilityDescriptionIntroScreenDoneButton="Start ID scanning",this.accessibilityDescriptionCancelButton="Cancel ID scanning",this.accessibilityDescriptionRetryButton="Retry ID scanning",this.accessibilityDescriptionCloseScannerButton="Close the scanner",this.documentDataExtractorAlertRetryButton="Retry",this.documentDataExtractorAlertCloseScannerButton="Close Scanner",this.documentDataExtractorNoDocumentDetectedAlertTitle="No document detected",this.documentDataExtractorNoDocumentDetectedAlertSubtitle="The scanner couldn't detect the document. Please ensure it's well-lit and fully visible, then try again.",this.documentDataExtractorCantProcessDocumentAlertTitle="Document could not be processed",this.documentDataExtractorCantProcessDocumentAlertSubtitle="This document doesn't meet the processing requirements. Please check accepted document types and try again.",this.documentDataExtractorUnsupportedDocumentAlertTitle="Unsupported document",this.documentDataExtractorUnsupportedDocumentAlertSubtitle="This document type isn't supported. Please try again with a valid document format.",this.documentDataExtractorScanningTooLongAlertTitle="Scanning took too long",this.documentDataExtractorScanningTooLongAlertSubtitle="Scanning took longer than expected. Please ensure the document is well-lit and fully visible, then try again.",this.accessibilityDescriptionFlashButton="Toggle flash",this.accessibilityDescriptionZoomButton="Toggle camera zoom",this.accessibilityDescriptionFlipCameraButton="Flip camera",this.cameraPermissionEnableCameraTitle="Camera permission denied!",this.cameraPermissionEnableCameraExplanation="Please allow the usage of the camera to start the scanning process.",this.cameraPermissionEnableCameraButton="Grant permission",this.cameraPermissionCloseButton="Close",this.accessibilityDescriptionCameraPermissionEnableCameraButton="Tap to grant camera permission",this.accessibilityDescriptionCameraPermissionCloseButton="Close screen without granting permission",this.documentUserGuidanceNoDocumentFound="Looking for document...",this.documentUserGuidanceScanningProgress="Scanning the document...",this.documentUserGuidanceTooDark="Too dark. Please turn on a light.",this.documentUserGuidanceTooSmall="Please move closer to the document.",this.documentUserGuidanceBadPerspective="Please hold your device straight over the document.",void 0!==e.topBarTitle&&(this.topBarTitle=e.topBarTitle),void 0!==e.topBarCancelButton&&(this.topBarCancelButton=e.topBarCancelButton),void 0!==e.topUserGuidance&&(this.topUserGuidance=e.topUserGuidance),void 0!==e.introScreenTitle&&(this.introScreenTitle=e.introScreenTitle),void 0!==e.introScreenDoneButton&&(this.introScreenDoneButton=e.introScreenDoneButton),void 0!==e.introScreenText&&(this.introScreenText=e.introScreenText),void 0!==e.completionOverlaySuccessMessage&&(this.completionOverlaySuccessMessage=e.completionOverlaySuccessMessage),void 0!==e.accessibilityDescriptionOpenIntroScreenButton&&(this.accessibilityDescriptionOpenIntroScreenButton=e.accessibilityDescriptionOpenIntroScreenButton),void 0!==e.accessibilityDescriptionIntroScreenDoneButton&&(this.accessibilityDescriptionIntroScreenDoneButton=e.accessibilityDescriptionIntroScreenDoneButton),void 0!==e.accessibilityDescriptionCancelButton&&(this.accessibilityDescriptionCancelButton=e.accessibilityDescriptionCancelButton),void 0!==e.accessibilityDescriptionRetryButton&&(this.accessibilityDescriptionRetryButton=e.accessibilityDescriptionRetryButton),void 0!==e.accessibilityDescriptionCloseScannerButton&&(this.accessibilityDescriptionCloseScannerButton=e.accessibilityDescriptionCloseScannerButton),void 0!==e.documentDataExtractorAlertRetryButton&&(this.documentDataExtractorAlertRetryButton=e.documentDataExtractorAlertRetryButton),void 0!==e.documentDataExtractorAlertCloseScannerButton&&(this.documentDataExtractorAlertCloseScannerButton=e.documentDataExtractorAlertCloseScannerButton),void 0!==e.documentDataExtractorNoDocumentDetectedAlertTitle&&(this.documentDataExtractorNoDocumentDetectedAlertTitle=e.documentDataExtractorNoDocumentDetectedAlertTitle),void 0!==e.documentDataExtractorNoDocumentDetectedAlertSubtitle&&(this.documentDataExtractorNoDocumentDetectedAlertSubtitle=e.documentDataExtractorNoDocumentDetectedAlertSubtitle),void 0!==e.documentDataExtractorCantProcessDocumentAlertTitle&&(this.documentDataExtractorCantProcessDocumentAlertTitle=e.documentDataExtractorCantProcessDocumentAlertTitle),void 0!==e.documentDataExtractorCantProcessDocumentAlertSubtitle&&(this.documentDataExtractorCantProcessDocumentAlertSubtitle=e.documentDataExtractorCantProcessDocumentAlertSubtitle),void 0!==e.documentDataExtractorUnsupportedDocumentAlertTitle&&(this.documentDataExtractorUnsupportedDocumentAlertTitle=e.documentDataExtractorUnsupportedDocumentAlertTitle),void 0!==e.documentDataExtractorUnsupportedDocumentAlertSubtitle&&(this.documentDataExtractorUnsupportedDocumentAlertSubtitle=e.documentDataExtractorUnsupportedDocumentAlertSubtitle),void 0!==e.documentDataExtractorScanningTooLongAlertTitle&&(this.documentDataExtractorScanningTooLongAlertTitle=e.documentDataExtractorScanningTooLongAlertTitle),void 0!==e.documentDataExtractorScanningTooLongAlertSubtitle&&(this.documentDataExtractorScanningTooLongAlertSubtitle=e.documentDataExtractorScanningTooLongAlertSubtitle),void 0!==e.accessibilityDescriptionFlashButton&&(this.accessibilityDescriptionFlashButton=e.accessibilityDescriptionFlashButton),void 0!==e.accessibilityDescriptionZoomButton&&(this.accessibilityDescriptionZoomButton=e.accessibilityDescriptionZoomButton),void 0!==e.accessibilityDescriptionFlipCameraButton&&(this.accessibilityDescriptionFlipCameraButton=e.accessibilityDescriptionFlipCameraButton),void 0!==e.cameraPermissionEnableCameraTitle&&(this.cameraPermissionEnableCameraTitle=e.cameraPermissionEnableCameraTitle),void 0!==e.cameraPermissionEnableCameraExplanation&&(this.cameraPermissionEnableCameraExplanation=e.cameraPermissionEnableCameraExplanation),void 0!==e.cameraPermissionEnableCameraButton&&(this.cameraPermissionEnableCameraButton=e.cameraPermissionEnableCameraButton),void 0!==e.cameraPermissionCloseButton&&(this.cameraPermissionCloseButton=e.cameraPermissionCloseButton),void 0!==e.accessibilityDescriptionCameraPermissionEnableCameraButton&&(this.accessibilityDescriptionCameraPermissionEnableCameraButton=e.accessibilityDescriptionCameraPermissionEnableCameraButton),void 0!==e.accessibilityDescriptionCameraPermissionCloseButton&&(this.accessibilityDescriptionCameraPermissionCloseButton=e.accessibilityDescriptionCameraPermissionCloseButton),void 0!==e.documentUserGuidanceNoDocumentFound&&(this.documentUserGuidanceNoDocumentFound=e.documentUserGuidanceNoDocumentFound),void 0!==e.documentUserGuidanceScanningProgress&&(this.documentUserGuidanceScanningProgress=e.documentUserGuidanceScanningProgress),void 0!==e.documentUserGuidanceTooDark&&(this.documentUserGuidanceTooDark=e.documentUserGuidanceTooDark),void 0!==e.documentUserGuidanceTooSmall&&(this.documentUserGuidanceTooSmall=e.documentUserGuidanceTooSmall),void 0!==e.documentUserGuidanceBadPerspective&&(this.documentUserGuidanceBadPerspective=e.documentUserGuidanceBadPerspective)}}class DocumentDataExtractorGuidanceStates{constructor(e={}){this.noDocumentFound="?documentUserGuidanceNoDocumentFound",this.scanningProgress="?documentUserGuidanceScanningProgress",this.tooDark="?documentUserGuidanceTooDark",this.tooSmall="?documentUserGuidanceTooSmall",this.badPerspective="?documentUserGuidanceBadPerspective",void 0!==e.noDocumentFound&&(this.noDocumentFound=e.noDocumentFound),void 0!==e.scanningProgress&&(this.scanningProgress=e.scanningProgress),void 0!==e.tooDark&&(this.tooDark=e.tooDark),void 0!==e.tooSmall&&(this.tooSmall=e.tooSmall),void 0!==e.badPerspective&&(this.badPerspective=e.badPerspective)}}class DocumentDataExtractorGuidanceConfiguration{constructor(e={}){this.visibility=!0,this.title=new StyledText({text:"?documentUserGuidanceNoDocumentFound",color:"?sbColorOnPrimary"}),this.background=new BackgroundStyle({strokeColor:"#00000000",fillColor:"?sbColorSurfaceLow"}),this.statesTitles=new DocumentDataExtractorGuidanceStates({}),void 0!==e.visibility&&(this.visibility=e.visibility),void 0!==e.title&&(this.title=new StyledText(e.title)),void 0!==e.background&&(this.background=new BackgroundStyle(e.background)),void 0!==e.statesTitles&&(this.statesTitles=new DocumentDataExtractorGuidanceStates(e.statesTitles))}}class DocumentDataExtractorScreenConfiguration{constructor(e={}){this.version="1.0",this.screen="DocumentDataExtractor",this.localization=new DocumentDataExtractorScreenTextLocalization({}),this.palette=new Palette({}),this.backgroundColor="?sbColorSurfaceLow",this.cameraConfiguration=new CameraConfiguration({orientationLockMode:"PORTRAIT"}),this.cameraPermission=new CameraPermissionScreen({statusBarMode:"DARK",background:"?sbColorSurface",iconBackground:"?sbColorOutline",icon:new IconStyle({visible:!0,color:"?sbColorOnSurface"}),enableCameraButton:new ButtonConfiguration({visible:!0,text:"?cameraPermissionEnableCameraButton",accessibilityDescription:"?accessibilityDescriptionCameraPermissionEnableCameraButton",background:new BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),closeButton:new ButtonConfiguration({visible:!0,text:"?cameraPermissionCloseButton",accessibilityDescription:"?accessibilityDescriptionCameraPermissionCloseButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),enableCameraTitle:new StyledText({text:"?cameraPermissionEnableCameraTitle",color:"?sbColorOnSurface"}),enableCameraExplanation:new StyledText({text:"?cameraPermissionEnableCameraExplanation",color:"?sbColorOnSurfaceVariant"})}),this.topUserGuidance=new UserGuidanceConfiguration({title:new StyledText({text:"?topUserGuidance"})}),this.scanStatusUserGuidance=new DocumentDataExtractorGuidanceConfiguration({}),this.topBar=new TopBarConfiguration({title:new StyledText({visible:!0,text:"?topBarTitle"}),cancelButton:new ButtonConfiguration({text:"?topBarCancelButton",accessibilityDescription:"?accessibilityDescriptionCancelButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new ForegroundStyle({color:"?sbColorOnPrimary"})})}),this.topBarOpenIntroScreenButton=new IconButton({color:"?sbColorOnPrimary",accessibilityDescription:"?accessibilityDescriptionOpenIntroScreenButton"}),this.introScreen=new DocumentDataExtractorIntroScreenConfiguration({}),this.actionBar=new ActionBarConfiguration({flipCameraButton:new RoundButton({visible:!1,accessibilityDescription:"?accessibilityDescriptionFlipCameraButton",backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"})}),this.viewFinder=new PermanentViewFinderConfiguration({style:new FinderCorneredStyle({strokeColor:"?sbColorSurface",strokeWidth:2}),aspectRatio:new AspectRatio({width:3,height:2}),minimumInsets:new EdgeInsets({top:24,left:24,bottom:24,right:24})}),this.scannerConfiguration=new DocumentDataExtractorConfiguration({}),this.extractionProgress=new DocumentDataExtractionProgressConfiguration({}),this.noDocumentFoundTimeout=5e3,this.accumulationTimeout=3e3,this.successOverlay=new ScanCompletionOverlay({}),this.noDocumentDetectedAlertDialog=new ScanbotAlertDialog({title:new StyledText({text:"?documentDataExtractorNoDocumentDetectedAlertTitle",color:"?sbColorOnSurface"}),subtitle:new StyledText({text:"?documentDataExtractorNoDocumentDetectedAlertSubtitle",color:"?sbColorOnSurfaceVariant"}),sheetColor:"?sbColorSurface",modalOverlayColor:"?sbColorModalOverlay",dividerColor:"?sbColorOutline",okButton:new ButtonConfiguration({visible:!0,text:"?documentDataExtractorAlertRetryButton",accessibilityDescription:"?accessibilityDescriptionRetryButton",background:new BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new ButtonConfiguration({visible:!0,text:"?documentDataExtractorAlertCloseScannerButton",accessibilityDescription:"?accessibilityDescriptionCloseScannerButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})})}),this.cantProcessDocumentAlertDialog=new ScanbotAlertDialog({title:new StyledText({text:"?documentDataExtractorCantProcessDocumentAlertTitle",color:"?sbColorOnSurface"}),subtitle:new StyledText({text:"?documentDataExtractorCantProcessDocumentAlertSubtitle",color:"?sbColorOnSurfaceVariant"}),sheetColor:"?sbColorSurface",modalOverlayColor:"?sbColorModalOverlay",dividerColor:"?sbColorOutline",okButton:new ButtonConfiguration({visible:!0,text:"?documentDataExtractorAlertRetryButton",accessibilityDescription:"?accessibilityDescriptionRetryButton",background:new BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new ButtonConfiguration({visible:!0,text:"?documentDataExtractorAlertCloseScannerButton",accessibilityDescription:"?accessibilityDescriptionCloseScannerButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})})}),this.unsupportedDocumentAlertDialog=new ScanbotAlertDialog({title:new StyledText({text:"?documentDataExtractorUnsupportedDocumentAlertTitle",color:"?sbColorOnSurface"}),subtitle:new StyledText({text:"?documentDataExtractorUnsupportedDocumentAlertSubtitle",color:"?sbColorOnSurfaceVariant"}),sheetColor:"?sbColorSurface",modalOverlayColor:"?sbColorModalOverlay",dividerColor:"?sbColorOutline",okButton:new ButtonConfiguration({visible:!0,text:"?documentDataExtractorAlertRetryButton",accessibilityDescription:"?accessibilityDescriptionRetryButton",background:new BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new ButtonConfiguration({visible:!0,text:"?documentDataExtractorAlertCloseScannerButton",accessibilityDescription:"?accessibilityDescriptionCloseScannerButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})})}),this.scanningTooLongAlertDialog=new ScanbotAlertDialog({title:new StyledText({text:"?documentDataExtractorScanningTooLongAlertTitle",color:"?sbColorOnSurface"}),subtitle:new StyledText({text:"?documentDataExtractorScanningTooLongAlertSubtitle",color:"?sbColorOnSurfaceVariant"}),sheetColor:"?sbColorSurface",modalOverlayColor:"?sbColorModalOverlay",dividerColor:"?sbColorOutline",okButton:new ButtonConfiguration({visible:!0,text:"?documentDataExtractorAlertRetryButton",accessibilityDescription:"?accessibilityDescriptionRetButton",background:new BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new ButtonConfiguration({visible:!0,text:"?documentDataExtractorAlertCloseScannerButton",accessibilityDescription:"?accessibilityDescriptionCloseScannerButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})})}),this.sound=new Sound({}),this.vibration=new Vibration({}),this.keepScreenOn=!0,void 0!==e.version&&(this.version=e.version),void 0!==e.screen&&(this.screen=e.screen),void 0!==e.localization&&(this.localization=new DocumentDataExtractorScreenTextLocalization(e.localization)),void 0!==e.palette&&(this.palette=new Palette(e.palette)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.cameraConfiguration&&(this.cameraConfiguration=new CameraConfiguration(e.cameraConfiguration)),void 0!==e.cameraPermission&&(this.cameraPermission=new CameraPermissionScreen(e.cameraPermission)),void 0!==e.topUserGuidance&&(this.topUserGuidance=new UserGuidanceConfiguration(e.topUserGuidance)),void 0!==e.scanStatusUserGuidance&&(this.scanStatusUserGuidance=new DocumentDataExtractorGuidanceConfiguration(e.scanStatusUserGuidance)),void 0!==e.topBar&&(this.topBar=new TopBarConfiguration(e.topBar)),void 0!==e.topBarOpenIntroScreenButton&&(this.topBarOpenIntroScreenButton=new IconButton(e.topBarOpenIntroScreenButton)),void 0!==e.introScreen&&(this.introScreen=new DocumentDataExtractorIntroScreenConfiguration(e.introScreen)),void 0!==e.actionBar&&(this.actionBar=new ActionBarConfiguration(e.actionBar)),void 0!==e.viewFinder&&(this.viewFinder=new PermanentViewFinderConfiguration(e.viewFinder)),void 0!==e.scannerConfiguration&&(this.scannerConfiguration=new DocumentDataExtractorConfiguration(e.scannerConfiguration)),void 0!==e.extractionProgress&&(this.extractionProgress=new DocumentDataExtractionProgressConfiguration(e.extractionProgress)),void 0!==e.noDocumentFoundTimeout&&(this.noDocumentFoundTimeout=e.noDocumentFoundTimeout),void 0!==e.accumulationTimeout&&(this.accumulationTimeout=e.accumulationTimeout),void 0!==e.successOverlay&&(this.successOverlay=new ScanCompletionOverlay(e.successOverlay)),void 0!==e.noDocumentDetectedAlertDialog&&(this.noDocumentDetectedAlertDialog=new ScanbotAlertDialog(e.noDocumentDetectedAlertDialog)),void 0!==e.cantProcessDocumentAlertDialog&&(this.cantProcessDocumentAlertDialog=new ScanbotAlertDialog(e.cantProcessDocumentAlertDialog)),void 0!==e.unsupportedDocumentAlertDialog&&(this.unsupportedDocumentAlertDialog=new ScanbotAlertDialog(e.unsupportedDocumentAlertDialog)),void 0!==e.scanningTooLongAlertDialog&&(this.scanningTooLongAlertDialog=new ScanbotAlertDialog(e.scanningTooLongAlertDialog)),void 0!==e.sound&&(this.sound=new Sound(e.sound)),void 0!==e.vibration&&(this.vibration=new Vibration(e.vibration)),void 0!==e.keepScreenOn&&(this.keepScreenOn=e.keepScreenOn)}}class DocumentDataExtractorUiResult{constructor(e={}){if(this._released=!1,void 0===e.recognitionStatus)throw new Error("recognitionStatus must be present in constructor argument");if(this.recognitionStatus=e.recognitionStatus,void 0===e.document)throw new Error("document must be present in constructor argument");if(this.document=null!=e.document?new GenericDocument(e.document):null,void 0===e.croppedImage)throw new Error("croppedImage must be present in constructor argument");this.croppedImage=null!=e.croppedImage?ImageRef.from(e.croppedImage):null}async serialize(e=new ToJsonConfiguration){return{recognitionStatus:this.recognitionStatus,document:null!=this.document?await this.document.serialize(e):null,croppedImage:e.serializeImages?null!=this.croppedImage?await this.croppedImage.serialize(e.imageSerializationMode):null:void 0}}release(){this._released||(null!=this.document&&this.document.release(),null!=this.croppedImage&&this.croppedImage.release(),this._released=!0)}async encodeImages(){null!=this.document&&await this.document.encodeImages(),null!=this.croppedImage&&await this.croppedImage.encodeInPlace()}}exports.MrzFinderLayoutPreset=void 0,(exports.MrzFinderLayoutPreset||(exports.MrzFinderLayoutPreset={})).from=function(e){const t=e._type;switch(t){case"TwoLineMRZFinderLayoutPreset":return new TwoLineMrzFinderLayoutPreset(e);case"ThreeLineMRZFinderLayoutPreset":return new ThreeLineMrzFinderLayoutPreset(e);case"NoLayoutPreset":return new NoLayoutPreset(e);default:throw new Error(`Unknown child class name: ${t}`)}};class TwoLineMrzFinderLayoutPreset{constructor(e={}){this._type="TwoLineMRZFinderLayoutPreset",this.mrzTextLine1="I<USASMITH<<JACK<<<<<<<<<<<<<<<<<<<<",this.mrzTextLine2="2342353464USA9602300M2904076<<<<<<<2",this.adjustedFinderAspectRatio=5.390625,void 0!==e.mrzTextLine1&&(this.mrzTextLine1=e.mrzTextLine1),void 0!==e.mrzTextLine2&&(this.mrzTextLine2=e.mrzTextLine2),void 0!==e.adjustedFinderAspectRatio&&(this.adjustedFinderAspectRatio=e.adjustedFinderAspectRatio)}}class ThreeLineMrzFinderLayoutPreset{constructor(e={}){this._type="ThreeLineMRZFinderLayoutPreset",this.mrzTextLine1="I<USA2342353464<<<<<<<<<<<<<<<",this.mrzTextLine2="9602300M2904076USA<<<<<<<<<<<2",this.mrzTextLine3="SMITH<<JACK<<<<<<<<<<<<<<<<<<<",this.adjustedFinderAspectRatio=4.3125,void 0!==e.mrzTextLine1&&(this.mrzTextLine1=e.mrzTextLine1),void 0!==e.mrzTextLine2&&(this.mrzTextLine2=e.mrzTextLine2),void 0!==e.mrzTextLine3&&(this.mrzTextLine3=e.mrzTextLine3),void 0!==e.adjustedFinderAspectRatio&&(this.adjustedFinderAspectRatio=e.adjustedFinderAspectRatio)}}class NoLayoutPreset{constructor(e={}){this._type="NoLayoutPreset"}}exports.MrzScannerIntroImage=void 0,(exports.MrzScannerIntroImage||(exports.MrzScannerIntroImage={})).from=function(e){const t=e._type;switch(t){case"MrzIntroDefaultImage":return new MrzIntroDefaultImage(e);case"MrzIntroNoImage":return new MrzIntroNoImage(e);case"MrzIntroCustomImage":return new MrzIntroCustomImage(e);default:throw new Error(`Unknown child class name: ${t}`)}};class MrzIntroDefaultImage{constructor(e={}){this._type="MrzIntroDefaultImage"}}class MrzIntroNoImage{constructor(e={}){this._type="MrzIntroNoImage"}}class MrzIntroCustomImage{constructor(e={}){if(this._type="MrzIntroCustomImage",void 0===e.uri)throw new Error("uri must be present in constructor argument");this.uri=e.uri}}class MrzScannerIntroScreenConfiguration{constructor(e={}){this.image=new MrzIntroDefaultImage({}),this.backgroundColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.handlerColor="?sbColorOutline",this.showAutomatically=!1,this.title=new StyledText({text:"?introScreenTitle",color:"?sbColorOnSurface"}),this.explanation=new StyledText({text:"?introScreenText",color:"?sbColorOnSurface"}),this.doneButton=new ButtonConfiguration({text:"?introScreenDoneButton",accessibilityDescription:"?accessibilityDescriptionIntroScreenDoneButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new ForegroundStyle({color:"?sbColorOnPrimary"})}),void 0!==e.image&&(this.image=exports.MrzScannerIntroImage.from(e.image)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.handlerColor&&(this.handlerColor=e.handlerColor),void 0!==e.showAutomatically&&(this.showAutomatically=e.showAutomatically),void 0!==e.title&&(this.title=new StyledText(e.title)),void 0!==e.explanation&&(this.explanation=new StyledText(e.explanation)),void 0!==e.doneButton&&(this.doneButton=new ButtonConfiguration(e.doneButton))}}class MrzScannerScreenTextLocalization{constructor(e={}){this.topBarTitle="MRZ Scanner",this.topBarCancelButton="Cancel",this.topUserGuidance="Scan your Identity Document",this.finderViewUserGuidance="Scan the MRZ",this.introScreenTitle="How to scan an MRZ",this.introScreenDoneButton="Start Scanning",this.introScreenText="The Machine Readable Zone (MRZ) is a special code on your ID document (such as a passport or ID card) that contains your personal information in a machine-readable format.\n\nTo scan it, simply hold your camera over the document, so that it aligns with the MRZ section. Once scanned, the data will be automatically processed, and you will be directed to the results screen.\n\nPress 'Start Scanning' to begin.",this.completionOverlaySuccessMessage="Scanned successfully",this.accessibilityDescriptionOpenIntroScreenButton="Open introduction screen.",this.accessibilityDescriptionIntroScreenDoneButton="Start scanning",this.accessibilityDescriptionCancelButton="Cancel",this.accessibilityDescriptionFlashButton="Toggle flash",this.accessibilityDescriptionZoomButton="Toggle camera zoom",this.accessibilityDescriptionFlipCameraButton="Flip camera",this.cameraPermissionEnableCameraTitle="Camera permission denied!",this.cameraPermissionEnableCameraExplanation="Please allow the usage of the camera to start the scanning process.",this.cameraPermissionEnableCameraButton="Grant permission",this.cameraPermissionCloseButton="Close",this.accessibilityDescriptionCameraPermissionEnableCameraButton="Tap to grant camera permission",this.accessibilityDescriptionCameraPermissionCloseButton="Close screen without granting permission",void 0!==e.topBarTitle&&(this.topBarTitle=e.topBarTitle),void 0!==e.topBarCancelButton&&(this.topBarCancelButton=e.topBarCancelButton),void 0!==e.topUserGuidance&&(this.topUserGuidance=e.topUserGuidance),void 0!==e.finderViewUserGuidance&&(this.finderViewUserGuidance=e.finderViewUserGuidance),void 0!==e.introScreenTitle&&(this.introScreenTitle=e.introScreenTitle),void 0!==e.introScreenDoneButton&&(this.introScreenDoneButton=e.introScreenDoneButton),void 0!==e.introScreenText&&(this.introScreenText=e.introScreenText),void 0!==e.completionOverlaySuccessMessage&&(this.completionOverlaySuccessMessage=e.completionOverlaySuccessMessage),void 0!==e.accessibilityDescriptionOpenIntroScreenButton&&(this.accessibilityDescriptionOpenIntroScreenButton=e.accessibilityDescriptionOpenIntroScreenButton),void 0!==e.accessibilityDescriptionIntroScreenDoneButton&&(this.accessibilityDescriptionIntroScreenDoneButton=e.accessibilityDescriptionIntroScreenDoneButton),void 0!==e.accessibilityDescriptionCancelButton&&(this.accessibilityDescriptionCancelButton=e.accessibilityDescriptionCancelButton),void 0!==e.accessibilityDescriptionFlashButton&&(this.accessibilityDescriptionFlashButton=e.accessibilityDescriptionFlashButton),void 0!==e.accessibilityDescriptionZoomButton&&(this.accessibilityDescriptionZoomButton=e.accessibilityDescriptionZoomButton),void 0!==e.accessibilityDescriptionFlipCameraButton&&(this.accessibilityDescriptionFlipCameraButton=e.accessibilityDescriptionFlipCameraButton),void 0!==e.cameraPermissionEnableCameraTitle&&(this.cameraPermissionEnableCameraTitle=e.cameraPermissionEnableCameraTitle),void 0!==e.cameraPermissionEnableCameraExplanation&&(this.cameraPermissionEnableCameraExplanation=e.cameraPermissionEnableCameraExplanation),void 0!==e.cameraPermissionEnableCameraButton&&(this.cameraPermissionEnableCameraButton=e.cameraPermissionEnableCameraButton),void 0!==e.cameraPermissionCloseButton&&(this.cameraPermissionCloseButton=e.cameraPermissionCloseButton),void 0!==e.accessibilityDescriptionCameraPermissionEnableCameraButton&&(this.accessibilityDescriptionCameraPermissionEnableCameraButton=e.accessibilityDescriptionCameraPermissionEnableCameraButton),void 0!==e.accessibilityDescriptionCameraPermissionCloseButton&&(this.accessibilityDescriptionCameraPermissionCloseButton=e.accessibilityDescriptionCameraPermissionCloseButton)}}class MrzScannerScreenConfiguration{constructor(e={}){this.version="1.0",this.screen="MrzScanner",this.localization=new MrzScannerScreenTextLocalization({}),this.palette=new Palette({}),this.backgroundColor="?sbColorSurfaceLow",this.cameraConfiguration=new CameraConfiguration({orientationLockMode:"PORTRAIT"}),this.cameraPermission=new CameraPermissionScreen({statusBarMode:"DARK",background:"?sbColorSurface",iconBackground:"?sbColorOutline",icon:new IconStyle({visible:!0,color:"?sbColorOnSurface"}),enableCameraButton:new ButtonConfiguration({visible:!0,text:"?cameraPermissionEnableCameraButton",accessibilityDescription:"?accessibilityDescriptionCameraPermissionEnableCameraButton",background:new BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),closeButton:new ButtonConfiguration({visible:!0,text:"?cameraPermissionCloseButton",accessibilityDescription:"?accessibilityDescriptionCameraPermissionCloseButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),enableCameraTitle:new StyledText({text:"?cameraPermissionEnableCameraTitle",color:"?sbColorOnSurface"}),enableCameraExplanation:new StyledText({text:"?cameraPermissionEnableCameraExplanation",color:"?sbColorOnSurfaceVariant"})}),this.topUserGuidance=new UserGuidanceConfiguration({title:new StyledText({text:"?topUserGuidance"})}),this.finderViewUserGuidance=new UserGuidanceConfiguration({title:new StyledText({text:"?finderViewUserGuidance"})}),this.topBar=new TopBarConfiguration({title:new StyledText({visible:!0,text:"?topBarTitle"}),cancelButton:new ButtonConfiguration({text:"?topBarCancelButton",accessibilityDescription:"?accessibilityDescriptionCancelButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new ForegroundStyle({color:"?sbColorOnPrimary"})})}),this.topBarOpenIntroScreenButton=new IconButton({color:"?sbColorOnPrimary",accessibilityDescription:"?accessibilityDescriptionOpenIntroScreenButton"}),this.introScreen=new MrzScannerIntroScreenConfiguration({}),this.actionBar=new ActionBarConfiguration({flipCameraButton:new RoundButton({visible:!1,accessibilityDescription:"?accessibilityDescriptionFlipCameraButton",backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"})}),this.viewFinder=new PermanentViewFinderConfiguration({style:new FinderCorneredStyle({strokeColor:"?sbColorSurface",strokeWidth:2}),aspectRatio:new AspectRatio({width:-1,height:-1}),minimumInsets:new EdgeInsets({top:24,left:24,bottom:24,right:24})}),this.scannerConfiguration=new MrzScannerConfiguration({}),this.mrzExampleOverlay=new TwoLineMrzFinderLayoutPreset({}),this.successOverlay=new ScanCompletionOverlay({}),this.sound=new Sound({}),this.vibration=new Vibration({}),this.keepScreenOn=!0,void 0!==e.version&&(this.version=e.version),void 0!==e.screen&&(this.screen=e.screen),void 0!==e.localization&&(this.localization=new MrzScannerScreenTextLocalization(e.localization)),void 0!==e.palette&&(this.palette=new Palette(e.palette)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.cameraConfiguration&&(this.cameraConfiguration=new CameraConfiguration(e.cameraConfiguration)),void 0!==e.cameraPermission&&(this.cameraPermission=new CameraPermissionScreen(e.cameraPermission)),void 0!==e.topUserGuidance&&(this.topUserGuidance=new UserGuidanceConfiguration(e.topUserGuidance)),void 0!==e.finderViewUserGuidance&&(this.finderViewUserGuidance=new UserGuidanceConfiguration(e.finderViewUserGuidance)),void 0!==e.topBar&&(this.topBar=new TopBarConfiguration(e.topBar)),void 0!==e.topBarOpenIntroScreenButton&&(this.topBarOpenIntroScreenButton=new IconButton(e.topBarOpenIntroScreenButton)),void 0!==e.introScreen&&(this.introScreen=new MrzScannerIntroScreenConfiguration(e.introScreen)),void 0!==e.actionBar&&(this.actionBar=new ActionBarConfiguration(e.actionBar)),void 0!==e.viewFinder&&(this.viewFinder=new PermanentViewFinderConfiguration(e.viewFinder)),void 0!==e.scannerConfiguration&&(this.scannerConfiguration=new MrzScannerConfiguration(e.scannerConfiguration)),void 0!==e.mrzExampleOverlay&&(this.mrzExampleOverlay=exports.MrzFinderLayoutPreset.from(e.mrzExampleOverlay)),void 0!==e.successOverlay&&(this.successOverlay=new ScanCompletionOverlay(e.successOverlay)),void 0!==e.sound&&(this.sound=new Sound(e.sound)),void 0!==e.vibration&&(this.vibration=new Vibration(e.vibration)),void 0!==e.keepScreenOn&&(this.keepScreenOn=e.keepScreenOn)}}class MrzScannerUiResult{constructor(e={}){if(this._released=!1,void 0===e.rawMRZ)throw new Error("rawMRZ must be present in constructor argument");if(this.rawMRZ=e.rawMRZ,void 0===e.mrzDocument)throw new Error("mrzDocument must be present in constructor argument");this.mrzDocument=null!=e.mrzDocument?new GenericDocument(e.mrzDocument):null}async serialize(e=new ToJsonConfiguration){return{rawMRZ:this.rawMRZ,mrzDocument:null!=this.mrzDocument?await this.mrzDocument.serialize(e):null}}release(){this._released||(null!=this.mrzDocument&&this.mrzDocument.release(),this._released=!0)}async encodeImages(){null!=this.mrzDocument&&await this.mrzDocument.encodeImages()}}exports.TextPatternScannerIntroImage=void 0,(exports.TextPatternScannerIntroImage||(exports.TextPatternScannerIntroImage={})).from=function(e){const t=e._type;switch(t){case"TextPatternIntroGeneralField":return new TextPatternIntroGeneralField(e);case"TextPatternIntroAlphabeticField":return new TextPatternIntroAlphabeticField(e);case"TextPatternIntroMeterDevice":return new TextPatternIntroMeterDevice(e);case"TextPatternIntroShippingContainer":return new TextPatternIntroShippingContainer(e);case"TextPatternIntroNoImage":return new TextPatternIntroNoImage(e);case"TextPatternIntroCustomImage":return new TextPatternIntroCustomImage(e);default:throw new Error(`Unknown child class name: ${t}`)}};class TextPatternIntroGeneralField{constructor(e={}){this._type="TextPatternIntroGeneralField"}}class TextPatternIntroAlphabeticField{constructor(e={}){this._type="TextPatternIntroAlphabeticField"}}class TextPatternIntroMeterDevice{constructor(e={}){this._type="TextPatternIntroMeterDevice"}}class TextPatternIntroShippingContainer{constructor(e={}){this._type="TextPatternIntroShippingContainer"}}class TextPatternIntroNoImage{constructor(e={}){this._type="TextPatternIntroNoImage"}}class TextPatternIntroCustomImage{constructor(e={}){if(this._type="TextPatternIntroCustomImage",void 0===e.uri)throw new Error("uri must be present in constructor argument");this.uri=e.uri}}class TextPatternScannerIntroScreenConfiguration{constructor(e={}){this.image=new TextPatternIntroGeneralField({}),this.backgroundColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.handlerColor="?sbColorOutline",this.showAutomatically=!1,this.title=new StyledText({text:"?introScreenTitle",color:"?sbColorOnSurface"}),this.explanation=new StyledText({text:"?introScreenText",color:"?sbColorOnSurface"}),this.doneButton=new ButtonConfiguration({text:"?introScreenDoneButton",accessibilityDescription:"?accessibilityDescriptionIntroScreenDoneButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new ForegroundStyle({color:"?sbColorOnPrimary"})}),void 0!==e.image&&(this.image=exports.TextPatternScannerIntroImage.from(e.image)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.handlerColor&&(this.handlerColor=e.handlerColor),void 0!==e.showAutomatically&&(this.showAutomatically=e.showAutomatically),void 0!==e.title&&(this.title=new StyledText(e.title)),void 0!==e.explanation&&(this.explanation=new StyledText(e.explanation)),void 0!==e.doneButton&&(this.doneButton=new ButtonConfiguration(e.doneButton))}}class TextPatternScannerScreenTextLocalization{constructor(e={}){this.topBarTitle="Text Scanner",this.topBarCancelButton="Cancel",this.topUserGuidance="Locate the text you are looking for",this.finderViewUserGuidance="Scanning for text pattern...",this.introScreenTitle="How to scan text",this.introScreenDoneButton="Start Scanning",this.introScreenText="To scan a single line of text, please hold your device so that the camera viewfinder clearly captures the text you want to scan. Please ensure the text is properly aligned. Once the scan is complete, the text will be automatically extracted.\n\nPress 'Start Scanning' to begin.",this.completionOverlaySuccessMessage="Scanned successfully",this.accessibilityDescriptionOpenIntroScreenButton="Open introduction screen.",this.accessibilityDescriptionIntroScreenDoneButton="Start scanning",this.accessibilityDescriptionCancelButton="Cancel",this.textPatternConfirmationAlertTitle="Text Detected!",this.textPatternConfirmationAlertCancelButton="Retry",this.textPatternConfirmationAlertSubmitButton="Submit",this.accessibilityDescriptionConfirmationCancelButton="Retry",this.accessibilityDescriptionConfirmationSubmitButton="Submit",this.accessibilityDescriptionFlashButton="Toggle flash",this.accessibilityDescriptionZoomButton="Toggle camera zoom",this.accessibilityDescriptionFlipCameraButton="Flip camera",this.cameraPermissionEnableCameraTitle="Camera permission denied!",this.cameraPermissionEnableCameraExplanation="Please allow the usage of the camera to start the scanning process.",this.cameraPermissionEnableCameraButton="Grant permission",this.cameraPermissionCloseButton="Close",this.accessibilityDescriptionCameraPermissionEnableCameraButton="Tap to grant camera permission",this.accessibilityDescriptionCameraPermissionCloseButton="Close screen without granting permission",void 0!==e.topBarTitle&&(this.topBarTitle=e.topBarTitle),void 0!==e.topBarCancelButton&&(this.topBarCancelButton=e.topBarCancelButton),void 0!==e.topUserGuidance&&(this.topUserGuidance=e.topUserGuidance),void 0!==e.finderViewUserGuidance&&(this.finderViewUserGuidance=e.finderViewUserGuidance),void 0!==e.introScreenTitle&&(this.introScreenTitle=e.introScreenTitle),void 0!==e.introScreenDoneButton&&(this.introScreenDoneButton=e.introScreenDoneButton),void 0!==e.introScreenText&&(this.introScreenText=e.introScreenText),void 0!==e.completionOverlaySuccessMessage&&(this.completionOverlaySuccessMessage=e.completionOverlaySuccessMessage),void 0!==e.accessibilityDescriptionOpenIntroScreenButton&&(this.accessibilityDescriptionOpenIntroScreenButton=e.accessibilityDescriptionOpenIntroScreenButton),void 0!==e.accessibilityDescriptionIntroScreenDoneButton&&(this.accessibilityDescriptionIntroScreenDoneButton=e.accessibilityDescriptionIntroScreenDoneButton),void 0!==e.accessibilityDescriptionCancelButton&&(this.accessibilityDescriptionCancelButton=e.accessibilityDescriptionCancelButton),void 0!==e.textPatternConfirmationAlertTitle&&(this.textPatternConfirmationAlertTitle=e.textPatternConfirmationAlertTitle),void 0!==e.textPatternConfirmationAlertCancelButton&&(this.textPatternConfirmationAlertCancelButton=e.textPatternConfirmationAlertCancelButton),void 0!==e.textPatternConfirmationAlertSubmitButton&&(this.textPatternConfirmationAlertSubmitButton=e.textPatternConfirmationAlertSubmitButton),void 0!==e.accessibilityDescriptionConfirmationCancelButton&&(this.accessibilityDescriptionConfirmationCancelButton=e.accessibilityDescriptionConfirmationCancelButton),void 0!==e.accessibilityDescriptionConfirmationSubmitButton&&(this.accessibilityDescriptionConfirmationSubmitButton=e.accessibilityDescriptionConfirmationSubmitButton),void 0!==e.accessibilityDescriptionFlashButton&&(this.accessibilityDescriptionFlashButton=e.accessibilityDescriptionFlashButton),void 0!==e.accessibilityDescriptionZoomButton&&(this.accessibilityDescriptionZoomButton=e.accessibilityDescriptionZoomButton),void 0!==e.accessibilityDescriptionFlipCameraButton&&(this.accessibilityDescriptionFlipCameraButton=e.accessibilityDescriptionFlipCameraButton),void 0!==e.cameraPermissionEnableCameraTitle&&(this.cameraPermissionEnableCameraTitle=e.cameraPermissionEnableCameraTitle),void 0!==e.cameraPermissionEnableCameraExplanation&&(this.cameraPermissionEnableCameraExplanation=e.cameraPermissionEnableCameraExplanation),void 0!==e.cameraPermissionEnableCameraButton&&(this.cameraPermissionEnableCameraButton=e.cameraPermissionEnableCameraButton),void 0!==e.cameraPermissionCloseButton&&(this.cameraPermissionCloseButton=e.cameraPermissionCloseButton),void 0!==e.accessibilityDescriptionCameraPermissionEnableCameraButton&&(this.accessibilityDescriptionCameraPermissionEnableCameraButton=e.accessibilityDescriptionCameraPermissionEnableCameraButton),void 0!==e.accessibilityDescriptionCameraPermissionCloseButton&&(this.accessibilityDescriptionCameraPermissionCloseButton=e.accessibilityDescriptionCameraPermissionCloseButton)}}class TextPatternScannerScreenConfiguration{constructor(e={}){this.version="1.0",this.screen="TextPatternScanner",this.localization=new TextPatternScannerScreenTextLocalization({}),this.palette=new Palette({}),this.backgroundColor="?sbColorSurfaceLow",this.cameraConfiguration=new CameraConfiguration({orientationLockMode:"PORTRAIT"}),this.cameraPermission=new CameraPermissionScreen({statusBarMode:"DARK",background:"?sbColorSurface",iconBackground:"?sbColorOutline",icon:new IconStyle({visible:!0,color:"?sbColorOnSurface"}),enableCameraButton:new ButtonConfiguration({visible:!0,text:"?cameraPermissionEnableCameraButton",accessibilityDescription:"?accessibilityDescriptionCameraPermissionEnableCameraButton",background:new BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),closeButton:new ButtonConfiguration({visible:!0,text:"?cameraPermissionCloseButton",accessibilityDescription:"?accessibilityDescriptionCameraPermissionCloseButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),enableCameraTitle:new StyledText({text:"?cameraPermissionEnableCameraTitle",color:"?sbColorOnSurface"}),enableCameraExplanation:new StyledText({text:"?cameraPermissionEnableCameraExplanation",color:"?sbColorOnSurfaceVariant"})}),this.topUserGuidance=new UserGuidanceConfiguration({title:new StyledText({text:"?topUserGuidance"})}),this.finderViewUserGuidance=new UserGuidanceConfiguration({title:new StyledText({text:"?finderViewUserGuidance"})}),this.topBar=new TopBarConfiguration({title:new StyledText({visible:!0,text:"?topBarTitle"}),cancelButton:new ButtonConfiguration({text:"?topBarCancelButton",accessibilityDescription:"?accessibilityDescriptionCancelButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new ForegroundStyle({color:"?sbColorOnPrimary"})})}),this.topBarOpenIntroScreenButton=new IconButton({color:"?sbColorOnPrimary",accessibilityDescription:"?accessibilityDescriptionOpenIntroScreenButton"}),this.introScreen=new TextPatternScannerIntroScreenConfiguration({}),this.actionBar=new ActionBarConfiguration({flipCameraButton:new RoundButton({visible:!1,accessibilityDescription:"?accessibilityDescriptionFlipCameraButton",backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"})}),this.viewFinder=new PermanentViewFinderConfiguration({style:new FinderCorneredStyle({strokeColor:"?sbColorSurface",strokeWidth:2}),aspectRatio:new AspectRatio({width:3.85,height:1}),preferredHeight:48}),this.scannerConfiguration=new TextPatternScannerConfiguration({}),this.shouldShowWordBoxes=!0,this.wordBoxesFillColor="#33CCE54C",this.wordBoxesLineColor="#33CCE599",this.confirmationAlertDialogEnabled=!1,this.confirmationAlertDialog=new ScanbotAlertDialog({title:new StyledText({text:"?textPatternConfirmationAlertTitle",color:"?sbColorOnSurface"}),subtitle:new StyledText({color:"?sbColorOnSurfaceVariant"}),sheetColor:"?sbColorSurface",modalOverlayColor:"?sbColorModalOverlay",dividerColor:"?sbColorOutline",okButton:new ButtonConfiguration({visible:!0,text:"?textPatternConfirmationAlertSubmitButton",accessibilityDescription:"?accessibilityDescriptionConfirmationSubmitButton",background:new BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new ButtonConfiguration({visible:!0,text:"?textPatternConfirmationAlertCancelButton",accessibilityDescription:"?accessibilityDescriptionConfirmationCancelButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})})}),this.successOverlay=new ScanCompletionOverlay({}),this.sound=new Sound({}),this.vibration=new Vibration({}),this.keepScreenOn=!0,void 0!==e.version&&(this.version=e.version),void 0!==e.screen&&(this.screen=e.screen),void 0!==e.localization&&(this.localization=new TextPatternScannerScreenTextLocalization(e.localization)),void 0!==e.palette&&(this.palette=new Palette(e.palette)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.cameraConfiguration&&(this.cameraConfiguration=new CameraConfiguration(e.cameraConfiguration)),void 0!==e.cameraPermission&&(this.cameraPermission=new CameraPermissionScreen(e.cameraPermission)),void 0!==e.topUserGuidance&&(this.topUserGuidance=new UserGuidanceConfiguration(e.topUserGuidance)),void 0!==e.finderViewUserGuidance&&(this.finderViewUserGuidance=new UserGuidanceConfiguration(e.finderViewUserGuidance)),void 0!==e.topBar&&(this.topBar=new TopBarConfiguration(e.topBar)),void 0!==e.topBarOpenIntroScreenButton&&(this.topBarOpenIntroScreenButton=new IconButton(e.topBarOpenIntroScreenButton)),void 0!==e.introScreen&&(this.introScreen=new TextPatternScannerIntroScreenConfiguration(e.introScreen)),void 0!==e.actionBar&&(this.actionBar=new ActionBarConfiguration(e.actionBar)),void 0!==e.viewFinder&&(this.viewFinder=new PermanentViewFinderConfiguration(e.viewFinder)),void 0!==e.scannerConfiguration&&(this.scannerConfiguration=new TextPatternScannerConfiguration(e.scannerConfiguration)),void 0!==e.shouldShowWordBoxes&&(this.shouldShowWordBoxes=e.shouldShowWordBoxes),void 0!==e.wordBoxesFillColor&&(this.wordBoxesFillColor=e.wordBoxesFillColor),void 0!==e.wordBoxesLineColor&&(this.wordBoxesLineColor=e.wordBoxesLineColor),void 0!==e.confirmationAlertDialogEnabled&&(this.confirmationAlertDialogEnabled=e.confirmationAlertDialogEnabled),void 0!==e.confirmationAlertDialog&&(this.confirmationAlertDialog=new ScanbotAlertDialog(e.confirmationAlertDialog)),void 0!==e.successOverlay&&(this.successOverlay=new ScanCompletionOverlay(e.successOverlay)),void 0!==e.sound&&(this.sound=new Sound(e.sound)),void 0!==e.vibration&&(this.vibration=new Vibration(e.vibration)),void 0!==e.keepScreenOn&&(this.keepScreenOn=e.keepScreenOn)}}class TextPatternScannerUiResult{constructor(e={}){if(this.confidence=0,void 0===e.rawText)throw new Error("rawText must be present in constructor argument");if(this.rawText=e.rawText,void 0===e.wordBoxes)throw new Error("wordBoxes must be present in constructor argument");if(this.wordBoxes=e.wordBoxes.map((e=>new WordBox(e))),void 0===e.symbolBoxes)throw new Error("symbolBoxes must be present in constructor argument");this.symbolBoxes=e.symbolBoxes.map((e=>new SymbolBox(e))),void 0!==e.confidence&&(this.confidence=e.confidence)}serialize(e=new ToJsonConfiguration){return{rawText:this.rawText,wordBoxes:this.wordBoxes.map((t=>t.serialize(e))),symbolBoxes:this.symbolBoxes.map((t=>t.serialize(e))),confidence:this.confidence}}}exports.VinScannerIntroImage=void 0,(exports.VinScannerIntroImage||(exports.VinScannerIntroImage={})).from=function(e){const t=e._type;switch(t){case"VINIntroDefaultImage":return new VinIntroDefaultImage(e);case"VINIntroNoImage":return new VinIntroNoImage(e);case"VINIntroCustomImage":return new VinIntroCustomImage(e);default:throw new Error(`Unknown child class name: ${t}`)}};class VinIntroDefaultImage{constructor(e={}){this._type="VINIntroDefaultImage"}}class VinIntroNoImage{constructor(e={}){this._type="VINIntroNoImage"}}class VinIntroCustomImage{constructor(e={}){if(this._type="VINIntroCustomImage",void 0===e.uri)throw new Error("uri must be present in constructor argument");this.uri=e.uri}}class VinScannerIntroScreenConfiguration{constructor(e={}){this.image=new VinIntroDefaultImage({}),this.backgroundColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.handlerColor="?sbColorOutline",this.showAutomatically=!1,this.title=new StyledText({text:"?introScreenTitle",color:"?sbColorOnSurface"}),this.explanation=new StyledText({text:"?introScreenText",color:"?sbColorOnSurface"}),this.doneButton=new ButtonConfiguration({text:"?introScreenDoneButton",accessibilityDescription:"?accessibilityDescriptionIntroScreenDoneButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new ForegroundStyle({color:"?sbColorOnPrimary"})}),void 0!==e.image&&(this.image=exports.VinScannerIntroImage.from(e.image)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.handlerColor&&(this.handlerColor=e.handlerColor),void 0!==e.showAutomatically&&(this.showAutomatically=e.showAutomatically),void 0!==e.title&&(this.title=new StyledText(e.title)),void 0!==e.explanation&&(this.explanation=new StyledText(e.explanation)),void 0!==e.doneButton&&(this.doneButton=new ButtonConfiguration(e.doneButton))}}const VinBarcodeExtractionStatusValues=["SUCCESS","BARCODE_WITHOUT_VIN","NO_BARCODE_FOUND","BARCODE_EXTRACTION_DISABLED"];class VinBarcodeResult{constructor(e={}){if(void 0===e.extractedVIN)throw new Error("extractedVIN must be present in constructor argument");if(this.extractedVIN=e.extractedVIN,void 0===e.rectangle)throw new Error("rectangle must be present in constructor argument");if(this.rectangle=e.rectangle.map((e=>({x:e.x,y:e.y}))),void 0===e.status)throw new Error("status must be present in constructor argument");this.status=e.status}serialize(e=new ToJsonConfiguration){return{extractedVIN:this.extractedVIN,rectangle:this.rectangle.map((e=>e)),status:this.status}}}class VinScannerResult{constructor(e={}){if(void 0===e.textResult)throw new Error("textResult must be present in constructor argument");if(this.textResult=new TextPatternScannerResult(e.textResult),void 0===e.barcodeResult)throw new Error("barcodeResult must be present in constructor argument");this.barcodeResult=new VinBarcodeResult(e.barcodeResult)}serialize(e=new ToJsonConfiguration){return{textResult:this.textResult.serialize(e),barcodeResult:this.barcodeResult.serialize(e)}}}class VinScannerConfiguration{constructor(e={}){this.optimizeSingleLine=!0,this.extractVINFromBarcode=!1,this.ocrResolutionLimit=0,this.maximumNumberOfAccumulatedFrames=3,this.minimumNumberOfRequiredFramesWithEqualScanningResult=2,void 0!==e.optimizeSingleLine&&(this.optimizeSingleLine=e.optimizeSingleLine),void 0!==e.extractVINFromBarcode&&(this.extractVINFromBarcode=e.extractVINFromBarcode),void 0!==e.ocrResolutionLimit&&(this.ocrResolutionLimit=e.ocrResolutionLimit),void 0!==e.maximumNumberOfAccumulatedFrames&&(this.maximumNumberOfAccumulatedFrames=e.maximumNumberOfAccumulatedFrames),void 0!==e.minimumNumberOfRequiredFramesWithEqualScanningResult&&(this.minimumNumberOfRequiredFramesWithEqualScanningResult=e.minimumNumberOfRequiredFramesWithEqualScanningResult)}}class VinScannerScreenTextLocalization{constructor(e={}){this.topBarTitle="VIN Scanner",this.topBarCancelButton="Cancel",this.topUserGuidance="Point the camera at the VIN",this.finderViewUserGuidance="Looking for VIN...",this.introScreenTitle="How to scan a VIN",this.introScreenDoneButton="Start Scanning",this.introScreenText="A VIN (Vehicle Identification Number) is a unique code you'll find on a vehicle's windshield or on the inside of the driver's door. \n\nTo scan, simply point your camera at the VIN, ensuring it's within the frame. The VIN will be automatically extracted.\n\nTap 'Start Scanning' to begin.",this.completionOverlaySuccessMessage="Scanned successfully",this.accessibilityDescriptionOpenIntroScreenButton="Open VIN Scanner introduction",this.accessibilityDescriptionIntroScreenDoneButton="Start VIN scanning",this.accessibilityDescriptionCancelButton="Cancel VIN scanning",this.vinConfirmationAlertTitle="VIN detected",this.vinConfirmationAlertCancelButton="Cancel",this.vinConfirmationAlertSubmitButton="Submit",this.accessibilityDescriptionConfirmationCancelButton="Cancel VIN scanning",this.accessibilityDescriptionConfirmationSubmitButton="Submit VIN scan result",this.accessibilityDescriptionFlashButton="Toggle flash",this.accessibilityDescriptionZoomButton="Toggle camera zoom",this.accessibilityDescriptionFlipCameraButton="Flip camera",this.cameraPermissionEnableCameraTitle="Camera permission denied!",this.cameraPermissionEnableCameraExplanation="Please allow the usage of the camera to start the scanning process.",this.cameraPermissionEnableCameraButton="Grant permission",this.cameraPermissionCloseButton="Close",this.accessibilityDescriptionCameraPermissionEnableCameraButton="Tap to grant camera permission",this.accessibilityDescriptionCameraPermissionCloseButton="Close screen without granting permission",void 0!==e.topBarTitle&&(this.topBarTitle=e.topBarTitle),void 0!==e.topBarCancelButton&&(this.topBarCancelButton=e.topBarCancelButton),void 0!==e.topUserGuidance&&(this.topUserGuidance=e.topUserGuidance),void 0!==e.finderViewUserGuidance&&(this.finderViewUserGuidance=e.finderViewUserGuidance),void 0!==e.introScreenTitle&&(this.introScreenTitle=e.introScreenTitle),void 0!==e.introScreenDoneButton&&(this.introScreenDoneButton=e.introScreenDoneButton),void 0!==e.introScreenText&&(this.introScreenText=e.introScreenText),void 0!==e.completionOverlaySuccessMessage&&(this.completionOverlaySuccessMessage=e.completionOverlaySuccessMessage),void 0!==e.accessibilityDescriptionOpenIntroScreenButton&&(this.accessibilityDescriptionOpenIntroScreenButton=e.accessibilityDescriptionOpenIntroScreenButton),void 0!==e.accessibilityDescriptionIntroScreenDoneButton&&(this.accessibilityDescriptionIntroScreenDoneButton=e.accessibilityDescriptionIntroScreenDoneButton),void 0!==e.accessibilityDescriptionCancelButton&&(this.accessibilityDescriptionCancelButton=e.accessibilityDescriptionCancelButton),void 0!==e.vinConfirmationAlertTitle&&(this.vinConfirmationAlertTitle=e.vinConfirmationAlertTitle),void 0!==e.vinConfirmationAlertCancelButton&&(this.vinConfirmationAlertCancelButton=e.vinConfirmationAlertCancelButton),void 0!==e.vinConfirmationAlertSubmitButton&&(this.vinConfirmationAlertSubmitButton=e.vinConfirmationAlertSubmitButton),void 0!==e.accessibilityDescriptionConfirmationCancelButton&&(this.accessibilityDescriptionConfirmationCancelButton=e.accessibilityDescriptionConfirmationCancelButton),void 0!==e.accessibilityDescriptionConfirmationSubmitButton&&(this.accessibilityDescriptionConfirmationSubmitButton=e.accessibilityDescriptionConfirmationSubmitButton),void 0!==e.accessibilityDescriptionFlashButton&&(this.accessibilityDescriptionFlashButton=e.accessibilityDescriptionFlashButton),void 0!==e.accessibilityDescriptionZoomButton&&(this.accessibilityDescriptionZoomButton=e.accessibilityDescriptionZoomButton),void 0!==e.accessibilityDescriptionFlipCameraButton&&(this.accessibilityDescriptionFlipCameraButton=e.accessibilityDescriptionFlipCameraButton),void 0!==e.cameraPermissionEnableCameraTitle&&(this.cameraPermissionEnableCameraTitle=e.cameraPermissionEnableCameraTitle),void 0!==e.cameraPermissionEnableCameraExplanation&&(this.cameraPermissionEnableCameraExplanation=e.cameraPermissionEnableCameraExplanation),void 0!==e.cameraPermissionEnableCameraButton&&(this.cameraPermissionEnableCameraButton=e.cameraPermissionEnableCameraButton),void 0!==e.cameraPermissionCloseButton&&(this.cameraPermissionCloseButton=e.cameraPermissionCloseButton),void 0!==e.accessibilityDescriptionCameraPermissionEnableCameraButton&&(this.accessibilityDescriptionCameraPermissionEnableCameraButton=e.accessibilityDescriptionCameraPermissionEnableCameraButton),void 0!==e.accessibilityDescriptionCameraPermissionCloseButton&&(this.accessibilityDescriptionCameraPermissionCloseButton=e.accessibilityDescriptionCameraPermissionCloseButton)}}class VinScannerScreenConfiguration{constructor(e={}){this.version="1.0",this.screen="VINScanner",this.localization=new VinScannerScreenTextLocalization({}),this.palette=new Palette({}),this.backgroundColor="?sbColorSurfaceLow",this.cameraConfiguration=new CameraConfiguration({orientationLockMode:"PORTRAIT"}),this.cameraPermission=new CameraPermissionScreen({statusBarMode:"DARK",background:"?sbColorSurface",iconBackground:"?sbColorOutline",icon:new IconStyle({visible:!0,color:"?sbColorOnSurface"}),enableCameraButton:new ButtonConfiguration({visible:!0,text:"?cameraPermissionEnableCameraButton",accessibilityDescription:"?accessibilityDescriptionCameraPermissionEnableCameraButton",background:new BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),closeButton:new ButtonConfiguration({visible:!0,text:"?cameraPermissionCloseButton",accessibilityDescription:"?accessibilityDescriptionCameraPermissionCloseButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),enableCameraTitle:new StyledText({text:"?cameraPermissionEnableCameraTitle",color:"?sbColorOnSurface"}),enableCameraExplanation:new StyledText({text:"?cameraPermissionEnableCameraExplanation",color:"?sbColorOnSurfaceVariant"})}),this.topUserGuidance=new UserGuidanceConfiguration({title:new StyledText({text:"?topUserGuidance"})}),this.finderViewUserGuidance=new UserGuidanceConfiguration({title:new StyledText({text:"?finderViewUserGuidance"})}),this.topBar=new TopBarConfiguration({title:new StyledText({visible:!0,text:"?topBarTitle"}),cancelButton:new ButtonConfiguration({text:"?topBarCancelButton",accessibilityDescription:"?accessibilityDescriptionCancelButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new ForegroundStyle({color:"?sbColorOnPrimary"})})}),this.topBarOpenIntroScreenButton=new IconButton({color:"?sbColorOnPrimary",accessibilityDescription:"?accessibilityDescriptionOpenIntroScreenButton"}),this.introScreen=new VinScannerIntroScreenConfiguration({}),this.actionBar=new ActionBarConfiguration({flipCameraButton:new RoundButton({visible:!1,accessibilityDescription:"?accessibilityDescriptionFlipCameraButton",backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"})}),this.viewFinder=new PermanentViewFinderConfiguration({style:new FinderCorneredStyle({strokeColor:"?sbColorSurface",strokeWidth:2}),aspectRatio:new AspectRatio({width:5,height:1}),preferredHeight:56}),this.scannerConfiguration=new VinScannerConfiguration({}),this.shouldShowWordBoxes=!0,this.wordBoxesFillColor="#33CCE54C",this.wordBoxesLineColor="#33CCE599",this.confirmationAlertDialogEnabled=!1,this.confirmationAlertDialog=new ScanbotAlertDialog({title:new StyledText({text:"?vinConfirmationAlertTitle",color:"?sbColorOnSurface"}),subtitle:new StyledText({color:"?sbColorOnSurfaceVariant"}),sheetColor:"?sbColorSurface",modalOverlayColor:"?sbColorModalOverlay",dividerColor:"?sbColorOutline",okButton:new ButtonConfiguration({visible:!0,text:"?vinConfirmationAlertSubmitButton",accessibilityDescription:"?accessibilityDescriptionConfirmationSubmitButton",background:new BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new ButtonConfiguration({visible:!0,text:"?vinConfirmationAlertCancelButton",accessibilityDescription:"?accessibilityDescriptionConfirmationCancelButton",background:new BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})})}),this.successOverlay=new ScanCompletionOverlay({}),this.sound=new Sound({}),this.vibration=new Vibration({}),this.keepScreenOn=!0,void 0!==e.version&&(this.version=e.version),void 0!==e.screen&&(this.screen=e.screen),void 0!==e.localization&&(this.localization=new VinScannerScreenTextLocalization(e.localization)),void 0!==e.palette&&(this.palette=new Palette(e.palette)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.cameraConfiguration&&(this.cameraConfiguration=new CameraConfiguration(e.cameraConfiguration)),void 0!==e.cameraPermission&&(this.cameraPermission=new CameraPermissionScreen(e.cameraPermission)),void 0!==e.topUserGuidance&&(this.topUserGuidance=new UserGuidanceConfiguration(e.topUserGuidance)),void 0!==e.finderViewUserGuidance&&(this.finderViewUserGuidance=new UserGuidanceConfiguration(e.finderViewUserGuidance)),void 0!==e.topBar&&(this.topBar=new TopBarConfiguration(e.topBar)),void 0!==e.topBarOpenIntroScreenButton&&(this.topBarOpenIntroScreenButton=new IconButton(e.topBarOpenIntroScreenButton)),void 0!==e.introScreen&&(this.introScreen=new VinScannerIntroScreenConfiguration(e.introScreen)),void 0!==e.actionBar&&(this.actionBar=new ActionBarConfiguration(e.actionBar)),void 0!==e.viewFinder&&(this.viewFinder=new PermanentViewFinderConfiguration(e.viewFinder)),void 0!==e.scannerConfiguration&&(this.scannerConfiguration=new VinScannerConfiguration(e.scannerConfiguration)),void 0!==e.shouldShowWordBoxes&&(this.shouldShowWordBoxes=e.shouldShowWordBoxes),void 0!==e.wordBoxesFillColor&&(this.wordBoxesFillColor=e.wordBoxesFillColor),void 0!==e.wordBoxesLineColor&&(this.wordBoxesLineColor=e.wordBoxesLineColor),void 0!==e.confirmationAlertDialogEnabled&&(this.confirmationAlertDialogEnabled=e.confirmationAlertDialogEnabled),void 0!==e.confirmationAlertDialog&&(this.confirmationAlertDialog=new ScanbotAlertDialog(e.confirmationAlertDialog)),void 0!==e.successOverlay&&(this.successOverlay=new ScanCompletionOverlay(e.successOverlay)),void 0!==e.sound&&(this.sound=new Sound(e.sound)),void 0!==e.vibration&&(this.vibration=new Vibration(e.vibration)),void 0!==e.keepScreenOn&&(this.keepScreenOn=e.keepScreenOn)}}class VinScannerUiResult{constructor(e={}){if(void 0===e.textResult)throw new Error("textResult must be present in constructor argument");if(this.textResult=new TextPatternScannerResult(e.textResult),void 0===e.barcodeResult)throw new Error("barcodeResult must be present in constructor argument");this.barcodeResult=new VinBarcodeResult(e.barcodeResult)}serialize(e=new ToJsonConfiguration){return{textResult:this.textResult.serialize(e),barcodeResult:this.barcodeResult.serialize(e)}}}function mapRTUUIResult(e,t){return"OK"===e.status?Object.assign(Object.assign({},e),{data:new t(e.data)}):e}function handleImageInput(e){const t=e=>e instanceof ImageRef?e.uniqueId?{uniqueId:e.uniqueId}:{buffer:e.buffer}:{imageFileUri:e};return Array.isArray(e)?e.map(t):t(e)}async function withSBErrorHandling(e){try{return await e()}catch(e){throw createSBError(e)}}const ScanbotBarcodeImpl={scanFromImage:async e=>withSBErrorHandling((async()=>new BarcodeScannerResult(await ScanbotSDKPlugin.scanBarcodesFromImage({image:handleImageInput(e.image),configuration:e.configuration})))),scanFromPdf:async e=>withSBErrorHandling((async()=>new BarcodeScannerResult(await ScanbotSDKPlugin.scanBarcodesFromPdf(e)))),async startScanner(e){if(e.useCase instanceof SingleScanningMode||e.useCase instanceof MultipleScanningMode){const t=e.useCase.barcodeInfoMapping.barcodeItemMapper;null!==t&&(ScanbotSDKPlugin.registerBarcodeItemMapperCallback({},(e=>{const i=`${e.text}${e.upcEanExtension}_${e.format}`;t(e,(e=>ScanbotSDKPlugin.onBarcodeItemMapper({barcodeItemUuid:i,barcodeMappedData:e})),(()=>ScanbotSDKPlugin.onBarcodeItemMapper({barcodeItemUuid:i})))})),e.useCase.barcodeInfoMapping.barcodeItemMapper=null)}return withSBErrorHandling((async()=>mapRTUUIResult(await ScanbotSDKPlugin.startBarcodeScanner(e),BarcodeScannerUiResult)))},parseDocument:async e=>withSBErrorHandling((async()=>new BarcodeDocumentParserResult(await ScanbotSDKPlugin.parseBarcodeDocument(e))))},ScanbotCheckImpl={scanFromImage:async e=>withSBErrorHandling((async()=>new CheckScanningResult(await ScanbotSDKPlugin.scanCheckFromImage({configuration:e.configuration,image:handleImageInput(e.image)})))),startScanner:async e=>withSBErrorHandling((async()=>mapRTUUIResult(await ScanbotSDKPlugin.startCheckScanner(e),CheckScannerUiResult)))},ScanbotCreditCardImpl={scanFromImage:async e=>withSBErrorHandling((async()=>new CreditCardScanningResult(await ScanbotSDKPlugin.scanCreditCardFromImage({configuration:e.configuration,image:handleImageInput(e.image)})))),startScanner:async e=>withSBErrorHandling((async()=>mapRTUUIResult(await ScanbotSDKPlugin.startCreditCardScanner(e),CreditCardScannerUiResult)))},ScanbotDocumentDataExtractorImpl={extractFromImage:async e=>withSBErrorHandling((async()=>new DocumentDataExtractionResult(await ScanbotSDKPlugin.extractDocumentDataFromImage({configuration:e.configuration,image:handleImageInput(e.image)})))),startExtractorScreen:async e=>withSBErrorHandling((async()=>mapRTUUIResult(await ScanbotSDKPlugin.startDDEScreen(e),DocumentDataExtractorUiResult))),verifyDocument:async e=>withSBErrorHandling((async()=>new DocumentVerificationReport(await ScanbotSDKPlugin.verifyDocument({documentParts:e}))))},ScanbotDocumentImpl={createDocumentFromImages:async e=>withSBErrorHandling((async()=>new DocumentData(await ScanbotSDKPlugin.createDocumentFromImages(Object.assign(Object.assign({},e),{images:Array.isArray(e.images)?handleImageInput(e.images):void 0}))))),createDocumentFromLegacyPages:async e=>withSBErrorHandling((async()=>new DocumentData(await ScanbotSDKPlugin.createDocumentFromLegacyPages(e)))),createDocumentFromPdf:async e=>withSBErrorHandling((async()=>new DocumentData(await ScanbotSDKPlugin.createDocumentFromPdf(e)))),documentExists:async e=>withSBErrorHandling((async()=>(await ScanbotSDKPlugin.documentExists({documentUuid:e})).result)),loadDocument:async e=>withSBErrorHandling((async()=>new DocumentData(await ScanbotSDKPlugin.loadDocument({documentUuid:e})))),getStoredDocumentUuids:async()=>withSBErrorHandling((async()=>(await ScanbotSDKPlugin.getStoredDocumentUuids()).result)),cloneDocument:async e=>withSBErrorHandling((async()=>new DocumentData(await ScanbotSDKPlugin.cloneDocument({documentUuid:e})))),deleteDocument:async e=>withSBErrorHandling((()=>ScanbotSDKPlugin.deleteDocument({documentUuid:e}))),deleteAllDocuments:async()=>withSBErrorHandling((()=>ScanbotSDKPlugin.deleteAllDocuments())),addPages:async e=>withSBErrorHandling((async()=>new DocumentData(await ScanbotSDKPlugin.addPages(Object.assign(Object.assign({},e),{images:handleImageInput(e.images)}))))),movePage:async e=>withSBErrorHandling((async()=>new DocumentData(await ScanbotSDKPlugin.movePage(e)))),modifyPage:async e=>withSBErrorHandling((async()=>new DocumentData(await ScanbotSDKPlugin.modifyPage(e)))),removePages:async e=>withSBErrorHandling((async()=>new DocumentData(await ScanbotSDKPlugin.removePagesFromDocument(e)))),removeAllPages:async e=>withSBErrorHandling((async()=>new DocumentData(await ScanbotSDKPlugin.removeAllPages({documentUuid:e})))),scanFromImage:async e=>withSBErrorHandling((async()=>new DocumentScanningResult(await ScanbotSDKPlugin.scanDocumentFromImage({configuration:e.configuration,image:handleImageInput(e.image)})))),analyzeQualityOnImage:async e=>withSBErrorHandling((async()=>new DocumentQualityAnalyzerResult(await ScanbotSDKPlugin.analyzeDocumentQualityOnImage({configuration:e.configuration,image:handleImageInput(e.image)})))),startScanner:async e=>withSBErrorHandling((async()=>mapRTUUIResult(await ScanbotSDKPlugin.startDocumentScanner(e),DocumentData))),startCroppingScreen:async e=>withSBErrorHandling((async()=>mapRTUUIResult(await ScanbotSDKPlugin.startCroppingScreen(e),DocumentData)))},ScanbotImageProcessorImpl={applyFiltersOnImageFile:async e=>withSBErrorHandling((async()=>(await ScanbotSDKPlugin.applyFiltersOnImageFile(e)).result)),applyFilters:async e=>withSBErrorHandling((async()=>ImageRef.from(await ScanbotSDKPlugin.applyFiltersOnImage({filters:e.filters,image:handleImageInput(e.image)})))),rotateImageFile:async e=>withSBErrorHandling((async()=>(await ScanbotSDKPlugin.rotateImageFile(e)).result)),rotate:async e=>withSBErrorHandling((async()=>ImageRef.from(await ScanbotSDKPlugin.rotateImage({rotation:e.rotation,image:handleImageInput(e.image)})))),readImageData:async e=>withSBErrorHandling((async()=>(await ScanbotSDKPlugin.readImageData({imageFileUri:e})).result)),resizeImageFile:async e=>withSBErrorHandling((async()=>(await ScanbotSDKPlugin.resizeImageFile(e)).result)),resize:async e=>withSBErrorHandling((async()=>ImageRef.from(await ScanbotSDKPlugin.resizeImage({maxSize:e.maxSize,image:handleImageInput(e.image)})))),cropImageFile:async e=>withSBErrorHandling((async()=>(await ScanbotSDKPlugin.cropImageFile(e)).result)),crop:async e=>withSBErrorHandling((async()=>ImageRef.from(await ScanbotSDKPlugin.cropImage({polygon:e.polygon,image:handleImageInput(e.image)}))))},ScanbotLegacyPageImpl={removePage:async e=>withSBErrorHandling((()=>ScanbotSDKPlugin.removeLegacyPage({page:e}))),removeAllPages:async()=>withSBErrorHandling((()=>ScanbotSDKPlugin.removeAllLegacyPages())),setDocumentImage:async e=>withSBErrorHandling((()=>ScanbotSDKPlugin.setDocumentImageOnLegacyPage(e))),refreshImageUris:async e=>withSBErrorHandling((async()=>(await ScanbotSDKPlugin.refreshImageUrisOnLegacyPage({pages:e})).result))},ScanbotMrzImpl={scanFromImage:async e=>withSBErrorHandling((async()=>new MrzScannerResult(await ScanbotSDKPlugin.scanMrzFromImage({configuration:e.configuration,image:handleImageInput(e.image)})))),startScanner:async e=>withSBErrorHandling((async()=>mapRTUUIResult(await ScanbotSDKPlugin.startMrzScanner(e),MrzScannerUiResult)))},ScanbotOcrEngineImpl={recognizeOnImages:async e=>withSBErrorHandling((async()=>new PerformOcrResult(await ScanbotSDKPlugin.recognizeOcrOnImages({configuration:e.configuration,images:handleImageInput(e.images)})))),recognizeOnDocument:async e=>withSBErrorHandling((async()=>new PerformOcrResult(await ScanbotSDKPlugin.recognizeOcrOnDocument(e))))},ScanbotPdfGeneratorImpl={generateFromImages:async e=>withSBErrorHandling((async()=>(await ScanbotSDKPlugin.generatePdfFromImages(Object.assign(Object.assign({},e),{images:handleImageInput(e.images)}))).result)),generateFromDocument:async e=>withSBErrorHandling((async()=>(await ScanbotSDKPlugin.generatePdfFromDocument(e)).result))},ScanbotPdfImageExtractorImpl={extractImageFiles:async e=>withSBErrorHandling((async()=>(await ScanbotSDKPlugin.extractImageFilesFromPdf(e)).result))},ScanbotSdkImpl={initialize:async e=>withSBErrorHandling((async()=>new LicenseInfo(await ScanbotSDKPlugin.initialize(e)))),getLicenseInfo:async()=>withSBErrorHandling((async()=>new LicenseInfo(await ScanbotSDKPlugin.getLicenseInfo()))),getOcrConfigs:async()=>withSBErrorHandling((async()=>new OcrConfigsResult(await ScanbotSDKPlugin.getOcrConfigs()))),cleanupStorage:async()=>withSBErrorHandling(ScanbotSDKPlugin.cleanupStorage),setAnalyticsSubscriber:async e=>e?ScanbotSDKPlugin.setAnalyticsServiceCallback({},(t=>{t&&e(new AnalyticsEvent(t))})):ScanbotSDKPlugin.removeAnalyticsServiceCallback(),mockCamera:async e=>withSBErrorHandling((()=>ScanbotSDKPlugin.mockCamera(e)))},ScanbotTextPatternImpl={startScanner:async e=>withSBErrorHandling((async()=>mapRTUUIResult(await ScanbotSDKPlugin.startTextPatternScanner(e),TextPatternScannerUiResult)))},ScanbotTiffGeneratorImpl={generateFromImages:async e=>withSBErrorHandling((async()=>(await ScanbotSDKPlugin.generateTiffFromImages({tiffGeneratorParameters:e.tiffGeneratorParameters,images:handleImageInput(e.images)})).result)),generateFromDocument:async e=>withSBErrorHandling((async()=>(await ScanbotSDKPlugin.generateTiffFromDocument(e)).result))},ScanbotVinImpl={startScanner:async e=>withSBErrorHandling((async()=>mapRTUUIResult(await ScanbotSDKPlugin.startVinScanner(e),VinScannerUiResult)))},ScanbotBarcode={startScanner:async e=>ScanbotBarcodeImpl.startScanner(e),scanFromImage:async e=>ScanbotBarcodeImpl.scanFromImage(e),scanFromPdf:async e=>ScanbotBarcodeImpl.scanFromPdf(e),parseDocument:async e=>ScanbotBarcodeImpl.parseDocument(e)},ScanbotCheck={startScanner:async e=>ScanbotCheckImpl.startScanner(e),scanFromImage:async e=>ScanbotCheckImpl.scanFromImage(e)},ScanbotCreditCard={startScanner:async e=>ScanbotCreditCardImpl.startScanner(e),scanFromImage:async e=>ScanbotCreditCardImpl.scanFromImage(e)},ScanbotDocument={createDocumentFromImages:async e=>ScanbotDocumentImpl.createDocumentFromImages(e),createDocumentFromPdf:async e=>ScanbotDocumentImpl.createDocumentFromPdf(e),createDocumentFromLegacyPages:async e=>ScanbotDocumentImpl.createDocumentFromLegacyPages(e),documentExists:async e=>ScanbotDocumentImpl.documentExists(e),loadDocument:async e=>ScanbotDocumentImpl.loadDocument(e),getStoredDocumentUuids:async()=>ScanbotDocumentImpl.getStoredDocumentUuids(),cloneDocument:async e=>ScanbotDocumentImpl.cloneDocument(e),deleteDocument:async e=>ScanbotDocumentImpl.deleteDocument(e),deleteAllDocuments:async()=>ScanbotDocumentImpl.deleteAllDocuments(),addPages:async e=>ScanbotDocumentImpl.addPages(e),movePage:async e=>ScanbotDocumentImpl.movePage(e),modifyPage:async e=>ScanbotDocumentImpl.modifyPage(e),removePages:async e=>ScanbotDocumentImpl.removePages(e),removeAllPages:async e=>ScanbotDocumentImpl.removeAllPages(e),startScanner:async e=>ScanbotDocumentImpl.startScanner(e),startCroppingScreen:async e=>ScanbotDocumentImpl.startCroppingScreen(e),scanFromImage:async e=>ScanbotDocumentImpl.scanFromImage(e),analyzeQualityOnImage:async e=>ScanbotDocumentImpl.analyzeQualityOnImage(e)},ScanbotDocumentDataExtractor={startExtractorScreen:async e=>ScanbotDocumentDataExtractorImpl.startExtractorScreen(e),extractFromImage:async e=>ScanbotDocumentDataExtractorImpl.extractFromImage(e),verifyDocument:async e=>ScanbotDocumentDataExtractorImpl.verifyDocument(e)},ScanbotImageProcessor={applyFiltersOnImageFile:async e=>ScanbotImageProcessorImpl.applyFiltersOnImageFile(e),applyFilters:async e=>ScanbotImageProcessorImpl.applyFilters(e),rotateImageFile:async e=>ScanbotImageProcessorImpl.rotateImageFile(e),rotate:async e=>ScanbotImageProcessorImpl.rotate(e),resizeImageFile:async e=>ScanbotImageProcessorImpl.resizeImageFile(e),resize:async e=>ScanbotImageProcessorImpl.resize(e),cropImageFile:async e=>ScanbotImageProcessorImpl.cropImageFile(e),crop:async e=>ScanbotImageProcessorImpl.crop(e),readImageData:async e=>ScanbotImageProcessorImpl.readImageData(e)},ScanbotLegacyPage={removePage:async e=>ScanbotLegacyPageImpl.removePage(e),removeAllPages:async()=>ScanbotLegacyPageImpl.removeAllPages(),setDocumentImage:async e=>ScanbotLegacyPageImpl.setDocumentImage(e),refreshImageUris:async e=>ScanbotLegacyPageImpl.refreshImageUris(e)},ScanbotMrz={startScanner:async e=>ScanbotMrzImpl.startScanner(e),scanFromImage:async e=>ScanbotMrzImpl.scanFromImage(e)},ScanbotOcrEngine={recognizeOnImages:async e=>ScanbotOcrEngineImpl.recognizeOnImages(e),recognizeOnDocument:async e=>ScanbotOcrEngineImpl.recognizeOnDocument(e)},ScanbotPdfGenerator={generateFromImages:async e=>ScanbotPdfGeneratorImpl.generateFromImages(e),generateFromDocument:async e=>ScanbotPdfGeneratorImpl.generateFromDocument(e)},ScanbotPdfImageExtractor={extractImageFiles:async e=>ScanbotPdfImageExtractorImpl.extractImageFiles(e)},ScanbotTextPattern={startScanner:async e=>ScanbotTextPatternImpl.startScanner(e)},ScanbotTiffGenerator={generateFromImages:async e=>ScanbotTiffGeneratorImpl.generateFromImages(e),generateFromDocument:async e=>ScanbotTiffGeneratorImpl.generateFromDocument(e)},ScanbotVin={startScanner:async e=>ScanbotVinImpl.startScanner(e)},ScanbotSdk={Barcode:ScanbotBarcode,Check:ScanbotCheck,CreditCard:ScanbotCreditCard,Document:ScanbotDocument,DocumentDataExtractor:ScanbotDocumentDataExtractor,ImageProcessor:ScanbotImageProcessor,LegacyPage:ScanbotLegacyPage,Mrz:ScanbotMrz,OcrEngine:ScanbotOcrEngine,PdfGenerator:ScanbotPdfGenerator,PdfImageExtractor:ScanbotPdfImageExtractor,TextPattern:ScanbotTextPattern,TiffGenerator:ScanbotTiffGenerator,Vin:ScanbotVin,getOcrConfigs:async()=>ScanbotSdkImpl.getOcrConfigs(),mockCamera:async e=>ScanbotSdkImpl.mockCamera(e),setAnalyticsSubscriber:async e=>ScanbotSdkImpl.setAnalyticsSubscriber(e),initialize:async e=>ScanbotSdkImpl.initialize(e),getLicenseInfo:async()=>ScanbotSdkImpl.getLicenseInfo(),cleanupStorage:async()=>ScanbotSdkImpl.cleanupStorage()};exports.AAMVA=AAMVA,exports.AUSCheck=AUSCheck,exports.AccumulatedResultsVerifierConfiguration=AccumulatedResultsVerifierConfiguration,exports.AcknowledgementBottomBar=AcknowledgementBottomBar,exports.AcknowledgementModeValues=AcknowledgementModeValues,exports.AcknowledgementScreenConfiguration=AcknowledgementScreenConfiguration,exports.ActionBarConfiguration=ActionBarConfiguration,exports.AddPageOptions=AddPageOptions,exports.AnalyticsCategory=AnalyticsCategory,exports.AnalyticsEvent=AnalyticsEvent,exports.AnalyticsEventFactory=AnalyticsEventFactory,exports.AnalyticsEventName=AnalyticsEventName,exports.AnalyticsFeature=AnalyticsFeature,exports.ArOverlayFindAndPickConfiguration=ArOverlayFindAndPickConfiguration,exports.ArOverlayGeneralConfiguration=ArOverlayGeneralConfiguration,exports.ArOverlayPolygonConfiguration=ArOverlayPolygonConfiguration,exports.AspectRatio=AspectRatio,exports.AustraliaPostCustomerFormatValues=AustraliaPostCustomerFormatValues,exports.AutoFocusConfiguration=AutoFocusConfiguration,exports.BackgroundStyle=BackgroundStyle,exports.BadgeStyle=BadgeStyle,exports.BadgedButton=BadgedButton,exports.BarButtonConfiguration=BarButtonConfiguration,exports.BarcodeAccumulationConfiguration=BarcodeAccumulationConfiguration,exports.BarcodeAccumulationMethodValues=BarcodeAccumulationMethodValues,exports.BarcodeDocumentFormatValues=BarcodeDocumentFormatValues,exports.BarcodeDocumentFormats=BarcodeDocumentFormats,exports.BarcodeDocumentParserResult=BarcodeDocumentParserResult,exports.BarcodeFormatAustraliaPostConfiguration=BarcodeFormatAustraliaPostConfiguration,exports.BarcodeFormatAztecConfiguration=BarcodeFormatAztecConfiguration,exports.BarcodeFormatCodabarConfiguration=BarcodeFormatCodabarConfiguration,exports.BarcodeFormatCode11Configuration=BarcodeFormatCode11Configuration,exports.BarcodeFormatCode128Configuration=BarcodeFormatCode128Configuration,exports.BarcodeFormatCode2Of5Configuration=BarcodeFormatCode2Of5Configuration,exports.BarcodeFormatCode39Configuration=BarcodeFormatCode39Configuration,exports.BarcodeFormatCode93Configuration=BarcodeFormatCode93Configuration,exports.BarcodeFormatCommonConfiguration=BarcodeFormatCommonConfiguration,exports.BarcodeFormatCommonFourStateConfiguration=BarcodeFormatCommonFourStateConfiguration,exports.BarcodeFormatCommonOneDConfiguration=BarcodeFormatCommonOneDConfiguration,exports.BarcodeFormatCommonTwoDConfiguration=BarcodeFormatCommonTwoDConfiguration,exports.BarcodeFormatDataBarConfiguration=BarcodeFormatDataBarConfiguration,exports.BarcodeFormatDataBarExpandedConfiguration=BarcodeFormatDataBarExpandedConfiguration,exports.BarcodeFormatDataBarLimitedConfiguration=BarcodeFormatDataBarLimitedConfiguration,exports.BarcodeFormatDataMatrixConfiguration=BarcodeFormatDataMatrixConfiguration,exports.BarcodeFormatGs1CompositeConfiguration=BarcodeFormatGs1CompositeConfiguration,exports.BarcodeFormatItfConfiguration=BarcodeFormatItfConfiguration,exports.BarcodeFormatJapanPostConfiguration=BarcodeFormatJapanPostConfiguration,exports.BarcodeFormatMaxiCodeConfiguration=BarcodeFormatMaxiCodeConfiguration,exports.BarcodeFormatMicroPdf417Configuration=BarcodeFormatMicroPdf417Configuration,exports.BarcodeFormatMsiPlesseyConfiguration=BarcodeFormatMsiPlesseyConfiguration,exports.BarcodeFormatPdf417Configuration=BarcodeFormatPdf417Configuration,exports.BarcodeFormatPharmaCodeConfiguration=BarcodeFormatPharmaCodeConfiguration,exports.BarcodeFormatPharmaCodeTwoTrackConfiguration=BarcodeFormatPharmaCodeTwoTrackConfiguration,exports.BarcodeFormatQrCodeConfiguration=BarcodeFormatQrCodeConfiguration,exports.BarcodeFormatRoyalMailConfiguration=BarcodeFormatRoyalMailConfiguration,exports.BarcodeFormatRoyalTntPostConfiguration=BarcodeFormatRoyalTntPostConfiguration,exports.BarcodeFormatUpcEanConfiguration=BarcodeFormatUpcEanConfiguration,exports.BarcodeFormatUspsIntelligentMailConfiguration=BarcodeFormatUspsIntelligentMailConfiguration,exports.BarcodeFormatValues=BarcodeFormatValues,exports.BarcodeFormats=BarcodeFormats,exports.BarcodeInfoMapping=BarcodeInfoMapping,exports.BarcodeItem=BarcodeItem,exports.BarcodeItemConfiguration=BarcodeItemConfiguration,exports.BarcodeItemErrorState=BarcodeItemErrorState,exports.BarcodeItemInfoPositionValues=BarcodeItemInfoPositionValues,exports.BarcodeMappedData=BarcodeMappedData,exports.BarcodeScannerConfiguration=BarcodeScannerConfiguration,exports.BarcodeScannerEngineModeValues=BarcodeScannerEngineModeValues,exports.BarcodeScannerResult=BarcodeScannerResult,exports.BarcodeScannerScreenConfiguration=BarcodeScannerScreenConfiguration,exports.BarcodeScannerUiItem=BarcodeScannerUiItem,exports.BarcodeScannerUiResult=BarcodeScannerUiResult,exports.BarcodeTextLocalization=BarcodeTextLocalization,exports.BasicImageLoadOptions=BasicImageLoadOptions,exports.BinarizationFilterPresetValues=BinarizationFilterPresetValues,exports.Block=Block,exports.BoardingPass=BoardingPass,exports.BottomBarModeValues=BottomBarModeValues,exports.BrIdCardBack=BrIdCardBack,exports.BrIdCardFront=BrIdCardFront,exports.BrIdCardFrontPhotoOnly=BrIdCardFrontPhotoOnly,exports.BrightnessFilter=BrightnessFilter,exports.BritishColumbiaDriverLicense=BritishColumbiaDriverLicense,exports.BufferImageLoadOptions=BufferImageLoadOptions,exports.BufferLoadModeValues=BufferLoadModeValues,exports.ButtonConfiguration=ButtonConfiguration,exports.CANCheck=CANCheck,exports.CameraBottomBar=CameraBottomBar,exports.CameraConfiguration=CameraConfiguration,exports.CameraLiveScannerResolutionValues=CameraLiveScannerResolutionValues,exports.CameraModuleValues=CameraModuleValues,exports.CameraPermissionScreen=CameraPermissionScreen,exports.CameraPreviewModeValues=CameraPreviewModeValues,exports.CameraScreenConfiguration=CameraScreenConfiguration,exports.CanvasColorValues=CanvasColorValues,exports.CaptureFeedback=CaptureFeedback,exports.CapturePhotoQualityPrioritizationValues=CapturePhotoQualityPrioritizationValues,exports.CharacterEncodingValues=CharacterEncodingValues,exports.Check=Check,exports.CheckDocumentDetectionModeValues=CheckDocumentDetectionModeValues,exports.CheckIntroCustomImage=CheckIntroCustomImage,exports.CheckIntroDefaultImage=CheckIntroDefaultImage,exports.CheckIntroImage=CheckIntroImage,exports.CheckMagneticInkStripScanningStatusValues=CheckMagneticInkStripScanningStatusValues,exports.CheckNoImage=CheckNoImage,exports.CheckScannerConfiguration=CheckScannerConfiguration,exports.CheckScannerGuidanceConfiguration=CheckScannerGuidanceConfiguration,exports.CheckScannerGuidanceStates=CheckScannerGuidanceStates,exports.CheckScannerIntroScreenConfiguration=CheckScannerIntroScreenConfiguration,exports.CheckScannerScreenConfiguration=CheckScannerScreenConfiguration,exports.CheckScannerScreenTextLocalization=CheckScannerScreenTextLocalization,exports.CheckScannerUiResult=CheckScannerUiResult,exports.CheckScanningProgressConfiguration=CheckScanningProgressConfiguration,exports.CheckScanningResult=CheckScanningResult,exports.CheckStandardValues=CheckStandardValues,exports.CnEntryAndExitPermitBack=CnEntryAndExitPermitBack,exports.CnEntryAndExitPermitFront=CnEntryAndExitPermitFront,exports.CnPermanentResidentCardFront=CnPermanentResidentCardFront,exports.CollapsedVisibleHeightValues=CollapsedVisibleHeightValues,exports.ColorConversionValues=ColorConversionValues,exports.ColorDocumentFilter=ColorDocumentFilter,exports.CommonFieldTypeValues=CommonFieldTypeValues,exports.ComponentUnavailableError=ComponentUnavailableError,exports.CompositeFieldValueSemantics=CompositeFieldValueSemantics,exports.CompressionModeValues=CompressionModeValues,exports.ConfirmationMethodValues=ConfirmationMethodValues,exports.ConsistencyVerificationReport=ConsistencyVerificationReport,exports.ContrastFilter=ContrastFilter,exports.CreateDocumentOptions=CreateDocumentOptions,exports.CreditCard=CreditCard,exports.CreditCardIntroCustomImage=CreditCardIntroCustomImage,exports.CreditCardIntroImage=CreditCardIntroImage,exports.CreditCardIntroOneSideImage=CreditCardIntroOneSideImage,exports.CreditCardIntroTwoSidesImage=CreditCardIntroTwoSidesImage,exports.CreditCardNoImage=CreditCardNoImage,exports.CreditCardScanGuidanceConfiguration=CreditCardScanGuidanceConfiguration,exports.CreditCardScannerConfiguration=CreditCardScannerConfiguration,exports.CreditCardScannerGuidanceStates=CreditCardScannerGuidanceStates,exports.CreditCardScannerIntroScreenConfiguration=CreditCardScannerIntroScreenConfiguration,exports.CreditCardScannerScreenConfiguration=CreditCardScannerScreenConfiguration,exports.CreditCardScannerScreenTextLocalization=CreditCardScannerScreenTextLocalization,exports.CreditCardScannerUiResult=CreditCardScannerUiResult,exports.CreditCardScanningProgressConfiguration=CreditCardScanningProgressConfiguration,exports.CreditCardScanningResult=CreditCardScanningResult,exports.CreditCardScanningStatusValues=CreditCardScanningStatusValues,exports.CroppingAppearanceConfiguration=CroppingAppearanceConfiguration,exports.CroppingBottomBar=CroppingBottomBar,exports.CroppingConfiguration=CroppingConfiguration,exports.CroppingResult=CroppingResult,exports.CroppingScreenConfiguration=CroppingScreenConfiguration,exports.CroppingTextLocalization=CroppingTextLocalization,exports.CustomBinarizationFilter=CustomBinarizationFilter,exports.CustomImage=CustomImage,exports.DEMedicalPlan=DEMedicalPlan,exports.DateValidationConfiguration=DateValidationConfiguration,exports.DeAddressParserConfiguration=DeAddressParserConfiguration,exports.DeHealthInsuranceCardFront=DeHealthInsuranceCardFront,exports.DeIdCardBack=DeIdCardBack,exports.DeIdCardFront=DeIdCardFront,exports.DePassport=DePassport,exports.DeResidencePermitBack=DeResidencePermitBack,exports.DeResidencePermitFront=DeResidencePermitFront,exports.DefaultContentValidator=DefaultContentValidator,exports.DeviceDeregistrationError=DeviceDeregistrationError,exports.DocumentAnalysisModeValues=DocumentAnalysisModeValues,exports.DocumentClassifierConfiguration=DocumentClassifierConfiguration,exports.DocumentClassifierResult=DocumentClassifierResult,exports.DocumentClassifierStatusValues=DocumentClassifierStatusValues,exports.DocumentData=DocumentData,exports.DocumentDataExtractionProgressConfiguration=DocumentDataExtractionProgressConfiguration,exports.DocumentDataExtractionResult=DocumentDataExtractionResult,exports.DocumentDataExtractionStatusValues=DocumentDataExtractionStatusValues,exports.DocumentDataExtractorCommonConfiguration=DocumentDataExtractorCommonConfiguration,exports.DocumentDataExtractorConfiguration=DocumentDataExtractorConfiguration,exports.DocumentDataExtractorGuidanceConfiguration=DocumentDataExtractorGuidanceConfiguration,exports.DocumentDataExtractorGuidanceStates=DocumentDataExtractorGuidanceStates,exports.DocumentDataExtractorIntroScreenConfiguration=DocumentDataExtractorIntroScreenConfiguration,exports.DocumentDataExtractorScreenConfiguration=DocumentDataExtractorScreenConfiguration,exports.DocumentDataExtractorScreenTextLocalization=DocumentDataExtractorScreenTextLocalization,exports.DocumentDataExtractorUiResult=DocumentDataExtractorUiResult,exports.DocumentDataIntroCustomImage=DocumentDataIntroCustomImage,exports.DocumentDataIntroDefaultImage=DocumentDataIntroDefaultImage,exports.DocumentDataIntroNoImage=DocumentDataIntroNoImage,exports.DocumentDetectionResult=DocumentDetectionResult,exports.DocumentDetectionScores=DocumentDetectionScores,exports.DocumentDetectionStatusValues=DocumentDetectionStatusValues,exports.DocumentDisplacementValues=DocumentDisplacementValues,exports.DocumentFlowAppearanceConfiguration=DocumentFlowAppearanceConfiguration,exports.DocumentIntroImage=DocumentIntroImage,exports.DocumentPolygonConfiguration=DocumentPolygonConfiguration,exports.DocumentQualityAnalyzerConfiguration=DocumentQualityAnalyzerConfiguration,exports.DocumentQualityAnalyzerResult=DocumentQualityAnalyzerResult,exports.DocumentQualityThreshold=DocumentQualityThreshold,exports.DocumentQualityValues=DocumentQualityValues,exports.DocumentScannerCameraConfiguration=DocumentScannerCameraConfiguration,exports.DocumentScannerConfiguration=DocumentScannerConfiguration,exports.DocumentScannerEngineModeValues=DocumentScannerEngineModeValues,exports.DocumentScannerOutputSettings=DocumentScannerOutputSettings,exports.DocumentScannerParameters=DocumentScannerParameters,exports.DocumentScannerScreens=DocumentScannerScreens,exports.DocumentScannerTextLocalization=DocumentScannerTextLocalization,exports.DocumentScannerUserGuidance=DocumentScannerUserGuidance,exports.DocumentScanningFlow=DocumentScanningFlow,exports.DocumentScanningResult=DocumentScanningResult,exports.DocumentTrustModeValues=DocumentTrustModeValues,exports.DocumentTypeValues=DocumentTypeValues,exports.DocumentVerificationReport=DocumentVerificationReport,exports.DocumentVerificationStatusValues=DocumentVerificationStatusValues,exports.EdgeInsets=EdgeInsets,exports.EncodeImageOptions=EncodeImageOptions,exports.EncodingFormatValues=EncodingFormatValues,exports.EncryptionModeValues=EncryptionModeValues,exports.EuropeanDriverLicenseBack=EuropeanDriverLicenseBack,exports.EuropeanDriverLicenseFront=EuropeanDriverLicenseFront,exports.EuropeanHealthInsuranceCard=EuropeanHealthInsuranceCard,exports.EuropeanHealthInsuranceCardConfiguration=EuropeanHealthInsuranceCardConfiguration,exports.EuropeanHealthInsuranceCardIssuingCountryValues=EuropeanHealthInsuranceCardIssuingCountryValues,exports.ExpectedBarcode=ExpectedBarcode,exports.FRACheck=FRACheck,exports.FeatureValues=FeatureValues,exports.Field=Field,exports.FieldConsistencyVerificationReport=FieldConsistencyVerificationReport,exports.FieldDataFormatValues=FieldDataFormatValues,exports.FieldInvalidDataVerificationReport=FieldInvalidDataVerificationReport,exports.FieldParsedData=FieldParsedData,exports.FieldSuspiciousDataVerificationReport=FieldSuspiciousDataVerificationReport,exports.FieldType=FieldType,exports.FieldValidationStatusValues=FieldValidationStatusValues,exports.FieldValueSemantics=FieldValueSemantics,exports.FileEncryptionModeValues=FileEncryptionModeValues,exports.FindAndPickArOverlayPolygonConfiguration=FindAndPickArOverlayPolygonConfiguration,exports.FindAndPickBadgeConfiguration=FindAndPickBadgeConfiguration,exports.FindAndPickScanningMode=FindAndPickScanningMode,exports.FinderCorneredStyle=FinderCorneredStyle,exports.FinderStrokedStyle=FinderStrokedStyle,exports.ForegroundStyle=ForegroundStyle,exports.GS1=GS1,exports.GenericDocument=GenericDocument,exports.GenericDocumentType=GenericDocumentType,exports.GlareDetectionConfiguration=GlareDetectionConfiguration,exports.Glyph=Glyph,exports.GrayscaleFilter=GrayscaleFilter,exports.Gs1HandlingValues=Gs1HandlingValues,exports.HIBC=HIBC,exports.HkIdentityCardFront=HkIdentityCardFront,exports.IDCardPDF417=IDCardPDF417,exports.INDCheck=INDCheck,exports.IOError=IOError,exports.ISRCheck=ISRCheck,exports.IconButton=IconButton,exports.IconStyle=IconStyle,exports.IconUserGuidanceConfiguration=IconUserGuidanceConfiguration,exports.IdCardIntroImage=IdCardIntroImage,exports.IllegalStateError=IllegalStateError,exports.ImageInfo=ImageInfo,exports.ImageOriginValues=ImageOriginValues,exports.ImageProfile=ImageProfile,exports.ImageRef=ImageRef,exports.ImageRefPoolSnapshot=ImageRefPoolSnapshot,exports.ImageRefPoolSnapshotsDiff=ImageRefPoolSnapshotsDiff,exports.ImageRefProfile=ImageRefProfile,exports.ImageRotationValues=ImageRotationValues,exports.ImageSerializationModeValues=ImageSerializationModeValues,exports.ImageSource=ImageSource,exports.ImageSourceTypeValues=ImageSourceTypeValues,exports.IntroListEntry=IntroListEntry,exports.IntroductionScreenConfiguration=IntroductionScreenConfiguration,exports.InvalidArgumentError=InvalidArgumentError,exports.InvalidDataError=InvalidDataError,exports.InvalidDataVerificationReport=InvalidDataVerificationReport,exports.InvalidImageRefError=InvalidImageRefError,exports.InvalidLicenseError=InvalidLicenseError,exports.KWTCheck=KWTCheck,exports.LegacyFilter=LegacyFilter,exports.LicenseInfo=LicenseInfo,exports.LicenseStatusValues=LicenseStatusValues,exports.Line=Line,exports.LineSegmentFloat=LineSegmentFloat,exports.LineSegmentInt=LineSegmentInt,exports.MRZ=MRZ,exports.ManualCountEditDialog=ManualCountEditDialog,exports.MedicalCertificate=MedicalCertificate,exports.MedicalCertificateIntroImage=MedicalCertificateIntroImage,exports.Metadata=Metadata,exports.MoIdentityCardBack=MoIdentityCardBack,exports.MoIdentityCardFront=MoIdentityCardFront,exports.ModifyPageOptions=ModifyPageOptions,exports.MrzDocumentTypeValues=MrzDocumentTypeValues,exports.MrzFallbackConfiguration=MrzFallbackConfiguration,exports.MrzIncompleteResultHandlingValues=MrzIncompleteResultHandlingValues,exports.MrzIntroCustomImage=MrzIntroCustomImage,exports.MrzIntroDefaultImage=MrzIntroDefaultImage,exports.MrzIntroNoImage=MrzIntroNoImage,exports.MrzParserConfiguration=MrzParserConfiguration,exports.MrzScannerConfiguration=MrzScannerConfiguration,exports.MrzScannerIntroScreenConfiguration=MrzScannerIntroScreenConfiguration,exports.MrzScannerResult=MrzScannerResult,exports.MrzScannerScreenConfiguration=MrzScannerScreenConfiguration,exports.MrzScannerScreenTextLocalization=MrzScannerScreenTextLocalization,exports.MrzScannerUiResult=MrzScannerUiResult,exports.MsiPlesseyChecksumAlgorithmValues=MsiPlesseyChecksumAlgorithmValues,exports.MultipleBarcodesScanningModeValues=MultipleBarcodesScanningModeValues,exports.MultipleScanningMode=MultipleScanningMode,exports.NavigationBarModeValues=NavigationBarModeValues,exports.NoButtonMode=NoButtonMode,exports.NoIntroImage=NoIntroImage,exports.NoLayoutPreset=NoLayoutPreset,exports.NullPointerError=NullPointerError,exports.OcrConfigsResult=OcrConfigsResult,exports.OcrPage=OcrPage,exports.OcrResult=OcrResult,exports.OneDConfirmationModeValues=OneDConfirmationModeValues,exports.OrientationLockModeValues=OrientationLockModeValues,exports.OutOfMemoryError=OutOfMemoryError,exports.OutputModeValues=OutputModeValues,exports.PageBinarizationValues=PageBinarizationValues,exports.PageData=PageData,exports.PageDirectionValues=PageDirectionValues,exports.PageFitValues=PageFitValues,exports.PageImageSourceValues=PageImageSourceValues,exports.PagePreviewMode=PagePreviewMode,exports.PageSizeValues=PageSizeValues,exports.PageSnapCheckMarkAnimation=PageSnapCheckMarkAnimation,exports.PageSnapFeedbackNone=PageSnapFeedbackNone,exports.PageSnapFunnelAnimation=PageSnapFunnelAnimation,exports.Palette=Palette,exports.ParsedDeAddress=ParsedDeAddress,exports.PartiallyVisibleDocumentConfiguration=PartiallyVisibleDocumentConfiguration,exports.PathImageLoadOptions=PathImageLoadOptions,exports.PathLoadModeValues=PathLoadModeValues,exports.PatternContentValidator=PatternContentValidator,exports.PatternGrammarValues=PatternGrammarValues,exports.PdfAttributes=PdfAttributes,exports.PdfConfiguration=PdfConfiguration,exports.PdfExtractorOptions=PdfExtractorOptions,exports.PerformOcrResult=PerformOcrResult,exports.PermanentViewFinderConfiguration=PermanentViewFinderConfiguration,exports.PolygonStyle=PolygonStyle,exports.PopupMenuItem=PopupMenuItem,exports.ProcessByTileConfiguration=ProcessByTileConfiguration,exports.ProcessError=ProcessError,exports.ProcessingModeValues=ProcessingModeValues,exports.RangeEncoding=RangeEncoding,exports.RawImageLoadOptions=RawImageLoadOptions,exports.ReceiptsIntroImage=ReceiptsIntroImage,exports.RefCountedObjectProfile=RefCountedObjectProfile,exports.ReorderPagesScreenConfiguration=ReorderPagesScreenConfiguration,exports.ResamplingMethodValues=ResamplingMethodValues,exports.ResultAccumulationConfiguration=ResultAccumulationConfiguration,exports.ReviewBottomBarConfiguration=ReviewBottomBarConfiguration,exports.ReviewMorePopupMenu=ReviewMorePopupMenu,exports.ReviewScreenConfiguration=ReviewScreenConfiguration,exports.RoundButton=RoundButton,exports.SBError=SBError,exports.SEPA=SEPA,exports.SaveImageOptions=SaveImageOptions,exports.ScanAssistanceOverlay=ScanAssistanceOverlay,exports.ScanCompletionOverlay=ScanCompletionOverlay,exports.ScanbotAlertDialog=ScanbotAlertDialog,exports.ScanbotBarcode=ScanbotBarcode,exports.ScanbotBinarizationFilter=ScanbotBinarizationFilter,exports.ScanbotCheck=ScanbotCheck,exports.ScanbotCreditCard=ScanbotCreditCard,exports.ScanbotDocument=ScanbotDocument,exports.ScanbotDocumentDataExtractor=ScanbotDocumentDataExtractor,exports.ScanbotImageProcessor=ScanbotImageProcessor,exports.ScanbotLegacyPage=ScanbotLegacyPage,exports.ScanbotMrz=ScanbotMrz,exports.ScanbotOcrEngine=ScanbotOcrEngine,exports.ScanbotPdfGenerator=ScanbotPdfGenerator,exports.ScanbotPdfImageExtractor=ScanbotPdfImageExtractor,exports.ScanbotSDK=ScanbotSdk,exports.ScanbotTextPattern=ScanbotTextPattern,exports.ScanbotTiffGenerator=ScanbotTiffGenerator,exports.ScanbotVin=ScanbotVin,exports.SdkConfiguration=SdkConfiguration,exports.SemanticsVerificationReport=SemanticsVerificationReport,exports.Sheet=Sheet,exports.SheetContent=SheetContent,exports.SheetModeValues=SheetModeValues,exports.ShutterButton=ShutterButton,exports.SingleScanningMode=SingleScanningMode,exports.Sound=Sound,exports.SoundTypeValues=SoundTypeValues,exports.StatusBarModeValues=StatusBarModeValues,exports.StorageImageFormatValues=StorageImageFormatValues,exports.StructuredAppendInfo=StructuredAppendInfo,exports.StyledText=StyledText,exports.SuspiciousDataVerificationReport=SuspiciousDataVerificationReport,exports.SwipeToDelete=SwipeToDelete,exports.SwissQR=SwissQR,exports.SymbolBox=SymbolBox,exports.TextButtonMode=TextButtonMode,exports.TextPatternIntroAlphabeticField=TextPatternIntroAlphabeticField,exports.TextPatternIntroCustomImage=TextPatternIntroCustomImage,exports.TextPatternIntroGeneralField=TextPatternIntroGeneralField,exports.TextPatternIntroMeterDevice=TextPatternIntroMeterDevice,exports.TextPatternIntroNoImage=TextPatternIntroNoImage,exports.TextPatternIntroShippingContainer=TextPatternIntroShippingContainer,exports.TextPatternScannerConfiguration=TextPatternScannerConfiguration,exports.TextPatternScannerIntroScreenConfiguration=TextPatternScannerIntroScreenConfiguration,exports.TextPatternScannerResult=TextPatternScannerResult,exports.TextPatternScannerScreenConfiguration=TextPatternScannerScreenConfiguration,exports.TextPatternScannerScreenTextLocalization=TextPatternScannerScreenTextLocalization,exports.TextPatternScannerUiResult=TextPatternScannerUiResult,exports.TextWithBadgeButtonMode=TextWithBadgeButtonMode,exports.ThreeLineMrzFinderLayoutPreset=ThreeLineMrzFinderLayoutPreset,exports.TiffGeneratorParameters=TiffGeneratorParameters,exports.TimeoutError=TimeoutError,exports.Timeouts=Timeouts,exports.ToJsonConfiguration=ToJsonConfiguration,exports.TopBarConfiguration=TopBarConfiguration,exports.TopBarModeValues=TopBarModeValues,exports.TwEntryAndExitPermit=TwEntryAndExitPermit,exports.TwoLineMrzFinderLayoutPreset=TwoLineMrzFinderLayoutPreset,exports.UAECheck=UAECheck,exports.USACheck=USACheck,exports.UnknownCheck=UnknownCheck,exports.UnknownError=UnknownError,exports.UpcEanExtensionBehaviorValues=UpcEanExtensionBehaviorValues,exports.UserField=UserField,exports.UserFieldDoubleValue=UserFieldDoubleValue,exports.UserFieldIntValue=UserFieldIntValue,exports.UserFieldStringValue=UserFieldStringValue,exports.UserGuidanceConfiguration=UserGuidanceConfiguration,exports.UserGuidanceStates=UserGuidanceStates,exports.UserGuidanceVisibilityValues=UserGuidanceVisibilityValues,exports.VCard=VCard,exports.ValueConsistencyValues=ValueConsistencyValues,exports.ValueSemanticsValues=ValueSemanticsValues,exports.Vibration=Vibration,exports.ViewFinderConfiguration=ViewFinderConfiguration,exports.VinBarcodeExtractionStatusValues=VinBarcodeExtractionStatusValues,exports.VinBarcodeResult=VinBarcodeResult,exports.VinIntroCustomImage=VinIntroCustomImage,exports.VinIntroDefaultImage=VinIntroDefaultImage,exports.VinIntroNoImage=VinIntroNoImage,exports.VinScannerConfiguration=VinScannerConfiguration,exports.VinScannerIntroScreenConfiguration=VinScannerIntroScreenConfiguration,exports.VinScannerResult=VinScannerResult,exports.VinScannerScreenConfiguration=VinScannerScreenConfiguration,exports.VinScannerScreenTextLocalization=VinScannerScreenTextLocalization,exports.VinScannerUiResult=VinScannerUiResult,exports.WhiteBlackPointFilter=WhiteBlackPointFilter,exports.Word=Word,exports.WordBox=WordBox,exports.ZoomOverlay=ZoomOverlay,exports.autorelease=autorelease,exports.createSBError=createSBError,exports.handleImageInput=handleImageInput,exports.mapRTUUIResult=mapRTUUIResult,exports.withSBErrorHandling=withSBErrorHandling;
//# sourceMappingURL=/sm/41ac7bf67e88a3f776c331554027ddceefe88ef61f5b9f1bd3a4f12e1c565d48.map