/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@regulaforensics/ionic-native-face-api@7.1.457/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
var __extends=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();import{AwesomeCordovaNativePlugin,cordova}from"@awesome-cordova-plugins/core";import{Observable}from"rxjs";var Customization=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.colors=t.colors,n.fonts=t.fonts,n.images=t.images,n.uiCustomizationLayer=t.uiCustomizationLayer,n}},e}();export{Customization};var Font=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.name=t.name,n.style=t.style,n.size=t.size,n}},e}();export{Font};var DetectFaceResult=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;if(n.quality=[],null!=t.quality)for(var r in t.quality){null!=(o=ImageQualityResult.fromJson(t.quality[r]))&&n.quality.push(o)}if(n.attributes=[],null!=t.attributes)for(var r in t.attributes){null!=(o=DetectFacesAttributeResult.fromJson(t.attributes[r]))&&n.attributes.push(o)}if(n.crop=t.crop,n.faceRect=Rect.fromJson(t.faceRect),n.originalRect=Rect.fromJson(t.originalRect),n.landmarks=[],null!=t.landmarks)for(var r in t.landmarks){var o;null!=(o=Point.fromJson(t.landmarks[r]))&&n.landmarks.push(o)}return n.isQualityCompliant=t.isQualityCompliant,n}},e}();export{DetectFaceResult};var DetectFacesAttributeResult=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.attribute=t.attribute,n.value=t.value,n.range=ImageQualityRange.fromJson(t.range),n.confidence=t.confidence,n}},e}();export{DetectFacesAttributeResult};var DetectFacesConfig=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;if(n.attributes=[],null!=t.attributes)for(var r in t.attributes)n.attributes.push(t.attributes[r]);if(n.customQuality=[],null!=t.customQuality)for(var r in t.customQuality){var o=ImageQualityCharacteristic.fromJson(t.customQuality[r]);null!=o&&n.customQuality.push(o)}return n.outputImageParams=OutputImageParams.fromJson(t.outputImageParams),n.onlyCentralFace=t.onlyCentralFace,n}},e}();export{DetectFacesConfig};var UnderlyingException=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.code=t.code,n.message=t.message,n}},e}();export{UnderlyingException};var DetectFacesException=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.code=t.code,n.message=t.message,n.underlyingError=UnderlyingException.fromJson(t.underlyingError),n}},e}();export{DetectFacesException};var DetectFacesRequest=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.tag=t.tag,n.scenario=t.scenario,n.image=t.image,n.configuration=DetectFacesConfig.fromJson(t.configuration),n}},e}();export{DetectFacesRequest};var DetectFacesResponse=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;if(n.detection=DetectFaceResult.fromJson(t.detection),n.scenario=t.scenario,n.error=DetectFacesException.fromJson(t.error),n.allDetections=[],null!=t.allDetections)for(var r in t.allDetections){var o=DetectFaceResult.fromJson(t.allDetections[r]);null!=o&&n.allDetections.push(o)}return n}},e}();export{DetectFacesResponse};var FaceCaptureConfig=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;if(n.copyright=t.copyright,n.cameraSwitchEnabled=t.cameraSwitchEnabled,n.closeButtonEnabled=t.closeButtonEnabled,n.torchButtonEnabled=t.torchButtonEnabled,n.vibrateOnSteps=t.vibrateOnSteps,n.detectOcclusion=t.detectOcclusion,n.showFaceAnimation=t.showFaceAnimation,n.cameraPositionAndroid=t.cameraPositionAndroid,n.cameraPositionIOS=t.cameraPositionIOS,n.screenOrientation=[],null!=t.screenOrientation)for(var r in t.screenOrientation)n.screenOrientation.push(t.screenOrientation[r]);return n.timeout=t.timeout,n.holdStillDuration=t.holdStillDuration,n}},e}();export{FaceCaptureConfig};var FaceCaptureException=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.code=t.code,n.message=t.message,n}},e}();export{FaceCaptureException};var FaceCaptureImage=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.imageType=t.imageType,n.image=t.image,n.tag=t.tag,n}},e}();export{FaceCaptureImage};var FaceCaptureResponse=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.error=FaceCaptureException.fromJson(t.error),n.image=FaceCaptureImage.fromJson(t.image),n}},e}();export{FaceCaptureResponse};var OutputImageCrop=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.type=t.type,n.size=Size.fromJson(t.size),n.padColor=t.padColor,n.returnOriginalRect=t.returnOriginalRect,n}},e}();export{OutputImageCrop};var OutputImageParams=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.backgroundColor=t.backgroundColor,n.crop=OutputImageCrop.fromJson(t.crop),n}},e}();export{OutputImageParams};var Point=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.x=t.x,n.y=t.y,n}},e}();export{Point};var Rect=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.bottom=t.bottom,n.top=t.top,n.left=t.left,n.right=t.right,n}},e}();export{Rect};var Size=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.width=t.width,n.height=t.height,n}},e}();export{Size};var ImageQualityCharacteristic=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.characteristicName=t.characteristicName,n.color=t.color,n.recommendedRange=ImageQualityRange.fromJson(t.recommendedRange),n.customRange=ImageQualityRange.fromJson(t.customRange),n}},e}();export{ImageQualityCharacteristic};var ImageQualityRange=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.min=t.min,n.max=t.max,n}},e}();export{ImageQualityRange};var ImageQualityResult=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.name=t.name,n.group=t.group,n.status=t.status,n.range=ImageQualityRange.fromJson(t.range),n.value=t.value,n}},e}();export{ImageQualityResult};var FaceSDKVersion=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.api=t.api,n.core=t.core,n.coreMode=t.coreMode,n}},e}();export{FaceSDKVersion};var InitConfig=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.license=t.license,n.licenseUpdate=t.licenseUpdate,n.useBleDevice=t.useBleDevice,n}},e}();export{InitConfig};var InitException=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.code=t.code,n.message=t.message,n.underlyingError=UnderlyingException.fromJson(t.underlyingError),n}},e}();export{InitException};var LivenessConfig=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;if(n.copyright=t.copyright,n.cameraSwitchEnabled=t.cameraSwitchEnabled,n.closeButtonEnabled=t.closeButtonEnabled,n.torchButtonEnabled=t.torchButtonEnabled,n.vibrateOnSteps=t.vibrateOnSteps,n.cameraPositionAndroid=t.cameraPositionAndroid,n.cameraPositionIOS=t.cameraPositionIOS,n.screenOrientation=[],null!=t.screenOrientation)for(var r in t.screenOrientation)n.screenOrientation.push(t.screenOrientation[r]);if(n.locationTrackingEnabled=t.locationTrackingEnabled,n.attemptsCount=t.attemptsCount,n.recordingProcess=t.recordingProcess,n.livenessType=t.livenessType,n.tag=t.tag,n.skipStep=[],null!=t.skipStep)for(var r in t.skipStep)n.skipStep.push(t.skipStep[r]);return n.metadata=t.metadata,n}},e}();export{LivenessConfig};var LivenessException=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.code=t.code,n.message=t.message,n.underlyingError=UnderlyingException.fromJson(t.underlyingError),n}},e}();export{LivenessException};var LivenessNotification=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.status=t.status,n.response=LivenessResponse.fromJson(t.response),n}},e}();export{LivenessNotification};var LivenessResponse=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.image=t.image,n.liveness=t.liveness,n.tag=t.tag,n.transactionId=t.transactionId,n.estimatedAge=t.estimatedAge,n.error=LivenessException.fromJson(t.error),n}},e}();export{LivenessResponse};var ComparedFace=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.imageIndex=t.imageIndex,n.image=MatchFacesImage.fromJson(t.image),n.faceIndex=t.faceIndex,n.face=MatchFacesDetectionFace.fromJson(t.face),n}},e}();export{ComparedFace};var ComparedFacesPair=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.first=ComparedFace.fromJson(t.first),n.second=ComparedFace.fromJson(t.second),n.similarity=t.similarity,n.score=t.score,n.error=MatchFacesException.fromJson(t.error),n}},e}();export{ComparedFacesPair};var ComparedFacesSplit=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;if(n.matchedFaces=[],null!=t.matchedFaces)for(var r in t.matchedFaces){null!=(o=ComparedFacesPair.fromJson(t.matchedFaces[r]))&&n.matchedFaces.push(o)}if(n.unmatchedFaces=[],null!=t.unmatchedFaces)for(var r in t.unmatchedFaces){var o;null!=(o=ComparedFacesPair.fromJson(t.unmatchedFaces[r]))&&n.unmatchedFaces.push(o)}return n}},e}();export{ComparedFacesSplit};var MatchFacesConfig=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.processingMode=t.processingMode,n.locationTrackingEnabled=t.locationTrackingEnabled,n}},e}();export{MatchFacesConfig};var MatchFacesDetection=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;if(n.imageIndex=t.imageIndex,n.image=MatchFacesImage.fromJson(t.image),n.faces=[],null!=t.faces)for(var r in t.faces){var o=MatchFacesDetectionFace.fromJson(t.faces[r]);null!=o&&n.faces.push(o)}return n.error=MatchFacesException.fromJson(t.error),n}},e}();export{MatchFacesDetection};var MatchFacesDetectionFace=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;if(n.faceIndex=t.faceIndex,n.landmarks=[],null!=t.landmarks)for(var r in t.landmarks){var o=Point.fromJson(t.landmarks[r]);null!=o&&n.landmarks.push(o)}return n.faceRect=Rect.fromJson(t.faceRect),n.rotationAngle=t.rotationAngle,n.originalRect=Rect.fromJson(t.originalRect),n.crop=t.crop,n}},e}();export{MatchFacesDetectionFace};var MatchFacesException=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.code=t.code,n.message=t.message,n.underlyingError=UnderlyingException.fromJson(t.underlyingError),n}},e}();export{MatchFacesException};var MatchFacesImage=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.image=t.image,n.imageType=t.imageType,n.detectAll=t.detectAll,n.identifier=t.identifier,n}},e}();export{MatchFacesImage};var MatchFacesRequest=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;if(n.images=[],null!=t.images)for(var r in t.images){var o=MatchFacesImage.fromJson(t.images[r]);null!=o&&n.images.push(o)}return n.outputImageParams=OutputImageParams.fromJson(t.outputImageParams),n.tag=t.tag,n.metadata=t.metadata,n}},e}();export{MatchFacesRequest};var MatchFacesResponse=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;if(n.results=[],null!=t.results)for(var r in t.results){null!=(o=ComparedFacesPair.fromJson(t.results[r]))&&n.results.push(o)}if(n.detections=[],null!=t.detections)for(var r in t.detections){var o;null!=(o=MatchFacesDetection.fromJson(t.detections[r]))&&n.detections.push(o)}return n.tag=t.tag,n.error=MatchFacesException.fromJson(t.error),n}},e}();export{MatchFacesResponse};var EditGroupPersonsRequest=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;if(n.personIdsToAdd=[],null!=t.personIdsToAdd)for(var r in t.personIdsToAdd)n.personIdsToAdd.push(t.personIdsToAdd[r]);if(n.personIdsToRemove=[],null!=t.personIdsToRemove)for(var r in t.personIdsToRemove)n.personIdsToRemove.push(t.personIdsToRemove[r]);return n}},e}();export{EditGroupPersonsRequest};var ImageUpload=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.imageData=t.imageData,n.imageUrl=t.imageUrl,n}},e}();export{ImageUpload};var PageableItemList=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;if(n.items=[],null!=t.items)for(var r in t.items)n.items.push(t.items[r]);return n.page=t.page,n.totalPages=t.totalPages,n}},e}();export{PageableItemList};var Person=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;if(n.name=t.name,n.updatedAt=t.updatedAt,n.groups=[],null!=t.groups)for(var r in t.groups)n.groups.push(t.groups[r]);return n.id=t.id,n.metadata=t.metadata,n.createdAt=t.createdAt,n}},e}();export{Person};var PersonGroup=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.name=t.name,n.id=t.id,n.metadata=t.metadata,n.createdAt=t.createdAt,n}},e}();export{PersonGroup};var PersonImage=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.path=t.path,n.url=t.url,n.contentType=t.contentType,n.id=t.id,n.metadata=t.metadata,n.createdAt=t.createdAt,n}},e}();export{PersonImage};var SearchPerson=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;if(n.images=[],null!=t.images)for(var r in t.images){var o=SearchPersonImage.fromJson(t.images[r]);null!=o&&n.images.push(o)}if(n.detection=SearchPersonDetection.fromJson(t.detection),n.name=t.name,n.updatedAt=t.updatedAt,n.groups=[],null!=t.groups)for(var r in t.groups)n.groups.push(t.groups[r]);return n.id=t.id,n.metadata=t.metadata,n.createdAt=t.createdAt,n}},e}();export{SearchPerson};var SearchPersonDetection=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;if(n.landmarks=[],null!=t.landmarks)for(var r in t.landmarks){var o=Point.fromJson(t.landmarks[r]);null!=o&&n.landmarks.push(o)}return n.rect=Rect.fromJson(t.rect),n.crop=t.crop,n.rotationAngle=t.rotationAngle,n}},e}();export{SearchPersonDetection};var SearchPersonImage=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.similarity=t.similarity,n.distance=t.distance,n.path=t.path,n.url=t.url,n.contentType=t.contentType,n.id=t.id,n.metadata=t.metadata,n.createdAt=t.createdAt,n}},e}();export{SearchPersonImage};var SearchPersonRequest=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;if(n.imageUpload=ImageUpload.fromJson(t.imageUpload),n.groupIdsForSearch=[],null!=t.groupIdsForSearch)for(var r in t.groupIdsForSearch)n.groupIdsForSearch.push(t.groupIdsForSearch[r]);return n.threshold=t.threshold,n.limit=t.limit,n.detectAll=t.detectAll,n.outputImageParams=OutputImageParams.fromJson(t.outputImageParams),n}},e}();export{SearchPersonRequest};var InitResponse=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.success=t.success,n.error=InitException.fromJson(t.error),n}},e}();export{InitResponse};var VideoEncoderCompletion=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.success=t.success,n.transactionId=t.transactionId,n}},e}();export{VideoEncoderCompletion};var PersonDBResponse=function(){function e(){}return e.fromJson=function(t){if(null!=t&&null!=t){var n=new e;return n.data=t.data,n.error=t.error,n}},e}();export{PersonDBResponse};export var FontStyle={NORMAL:0,BOLD:1,ITALIC:2,BOLD_ITALIC:3};export var CustomizationColor={ONBOARDING_SCREEN_START_BUTTON_BACKGROUND:100,ONBOARDING_SCREEN_START_BUTTON_TITLE:101,ONBOARDING_SCREEN_BACKGROUND:102,ONBOARDING_SCREEN_TITLE_LABEL_TEXT:103,ONBOARDING_SCREEN_SUBTITLE_LABEL_TEXT:104,ONBOARDING_SCREEN_MESSAGE_LABELS_TEXT:105,CAMERA_SCREEN_STROKE_NORMAL:200,CAMERA_SCREEN_STROKE_ACTIVE:201,CAMERA_SCREEN_SECTOR_TARGET:202,CAMERA_SCREEN_SECTOR_ACTIVE:203,CAMERA_SCREEN_FRONT_HINT_LABEL_BACKGROUND:204,CAMERA_SCREEN_FRONT_HINT_LABEL_TEXT:205,CAMERA_SCREEN_BACK_HINT_LABEL_BACKGROUND:206,CAMERA_SCREEN_BACK_HINT_LABEL_TEXT:207,CAMERA_SCREEN_LIGHT_TOOLBAR_TINT:208,CAMERA_SCREEN_DARK_TOOLBAR_TINT:209,RETRY_SCREEN_BACKGROUND:300,RETRY_SCREEN_RETRY_BUTTON_BACKGROUND:301,RETRY_SCREEN_RETRY_BUTTON_TITLE:302,RETRY_SCREEN_TITLE_LABEL_TEXT:303,RETRY_SCREEN_SUBTITLE_LABEL_TEXT:304,RETRY_SCREEN_HINT_LABELS_TEXT:305,PROCESSING_SCREEN_BACKGROUND:400,PROCESSING_SCREEN_PROGRESS:401,PROCESSING_SCREEN_TITLE:402,SUCCESS_SCREEN_BACKGROUND:500};export var ImageQualityGroupName={IMAGE_CHARACTERISTICS:1,HEAD_SIZE_AND_POSITION:2,FACE_QUALITY:3,EYES_CHARACTERISTICS:4,SHADOWS_AND_LIGHTNING:5,POSE_AND_EXPRESSION:6,HEAD_OCCLUSION:7,BACKGROUND:8,UNKNOWN:9};export var LicensingResultCode={OK:0,LICENSE_CORRUPTED:1,INVALID_DATE:2,INVALID_VERSION:3,INVALID_DEVICE_ID:4,INVALID_SYSTEM_OR_APP_ID:5,NO_CAPABILITIES:6,NO_AUTHENTICITY:7,LICENSE_ABSENT:8,NO_INTERNET:9,NO_DATABASE:10,DATABASE_INCORRECT:11};export var DetectFacesErrorCode={IMAGE_EMPTY:0,FR_FACE_NOT_DETECTED:1,FACER_NO_LICENSE:2,FACER_IS_NOT_INITIALIZED:3,FACER_COMMAND_IS_NOT_SUPPORTED:4,FACER_COMMAND_PARAMS_READ_ERROR:5,PROCESSING_FAILED:6,REQUEST_FAILED:7,API_CALL_FAILED:8};export var CameraPosition={FRONT:0,BACK:1};export var InitErrorCode={IN_PROGRESS_ALREADY:0,MISSING_CORE:1,INTERNAL_CORE_ERROR:2,BAD_LICENSE:3,UNAVAILABLE:4,CONTEXT_IS_NULL:100,RESOURCE_DAT_ABSENT:101,LICENSE_IS_NULL:102};export var LivenessStatus={PASSED:0,UNKNOWN:1};export var LivenessErrorCode={NOT_INITIALIZED:0,NO_LICENSE:1,API_CALL_FAILED:2,SESSION_START_FAILED:3,CANCELLED:4,PROCESSING_TIMEOUT:5,PROCESSING_FAILED:6,PROCESSING_FRAME_FAILED:7,APPLICATION_INACTIVE:8,CONTEXT_IS_NULL:9,IN_PROGRESS_ALREADY:10,ZOOM_NOT_SUPPORTED:11,CAMERA_NO_PERMISSION:12,CAMERA_NOT_AVAILABLE:13};export var RecordingProcess={ASYNCHRONOUS_UPLOAD:0,SYNCHRONOUS_UPLOAD:1,NOT_UPLOAD:2};export var DetectFacesBackendErrorCode={FR_FACE_NOT_DETECTED:2,FACER_NO_LICENSE:200,FACER_IS_NOT_INITIALIZED:201,FACER_COMMAND_IS_NOT_SUPPORTED:202,FACER_COMMAND_PARAMS_READ_ERROR:203,UNDEFINED:-1};export var MatchFacesErrorCode={IMAGE_EMPTY:0,FACE_NOT_DETECTED:1,LANDMARKS_NOT_DETECTED:2,FACE_ALIGNER_FAILED:3,DESCRIPTOR_EXTRACTOR_ERROR:4,IMAGES_COUNT_LIMIT_EXCEEDED:5,API_CALL_FAILED:6,PROCESSING_FAILED:7,NO_LICENSE:8};export var ImageQualityCharacteristicName={IMAGE_WIDTH:"ImageWidth",IMAGE_HEIGHT:"ImageHeight",IMAGE_WIDTH_TO_HEIGHT:"ImageWidthToHeight",IMAGE_CHANNELS_NUMBER:"ImageChannelsNumber",ART_FACE:"ArtFace",PADDING_RATIO:"PaddingRatio",FACE_MID_POINT_HORIZONTAL_POSITION:"FaceMidPointHorizontalPosition",FACE_MID_POINT_VERTICAL_POSITION:"FaceMidPointVerticalPosition",HEAD_WIDTH_RATIO:"HeadWidthRatio",HEAD_HEIGHT_RATIO:"HeadHeightRatio",EYES_DISTANCE:"EyesDistance",YAW:"Yaw",PITCH:"Pitch",ROLL:"Roll",BLUR_LEVEL:"BlurLevel",NOISE_LEVEL:"NoiseLevel",UNNATURAL_SKIN_TONE:"UnnaturalSkinTone",FACE_DYNAMIC_RANGE:"FaceDynamicRange",EYE_RIGHT_CLOSED:"EyeRightClosed",EYE_LEFT_CLOSED:"EyeLeftClosed",EYE_RIGHT_OCCLUDED:"EyeRightOccluded",EYE_LEFT_OCCLUDED:"EyeLeftOccluded",EYES_RED:"EyesRed",EYE_RIGHT_COVERED_WITH_HAIR:"EyeRightCoveredWithHair",EYE_LEFT_COVERED_WITH_HAIR:"EyeLeftCoveredWithHair",OFF_GAZE:"OffGaze",TOO_DARK:"TooDark",TOO_LIGHT:"TooLight",FACE_GLARE:"FaceGlare",SHADOWS_ON_FACE:"ShadowsOnFace",SHOULDERS_POSE:"ShouldersPose",EXPRESSION_LEVEL:"ExpressionLevel",MOUTH_OPEN:"MouthOpen",SMILE:"Smile",DARK_GLASSES:"DarkGlasses",REFLECTION_ON_GLASSES:"ReflectionOnGlasses",FRAMES_TOO_HEAVY:"FramesTooHeavy",FACE_OCCLUDED:"FaceOccluded",HEAD_COVERING:"HeadCovering",FOREHEAD_COVERING:"ForeheadCovering",STRONG_MAKEUP:"StrongMakeup",HEAD_PHONES:"Headphones",MEDICAL_MASK:"MedicalMask",BACKGROUND_UNIFORMITY:"BackgroundUniformity",SHADOWS_ON_BACKGROUND:"ShadowsOnBackground",OTHER_FACES:"OtherFaces",BACKGROUND_COLOR_MATCH:"BackgroundColorMatch",UNKNOWN:"Unknown",IMAGE_CHARACTERISTIC_ALL_RECOMMENDED:"ImageCharacteristic",HEAD_SIZE_AND_POSITION_ALL_RECOMMENDED:"HeadSizeAndPosition",FACE_IMAGE_QUALITY_ALL_RECOMMENDED:"FaceImageQuality",EYES_CHARACTERISTICS_ALL_RECOMMENDED:"EyesCharacteristics",SHADOW_AND_LIGHTING_ALL_RECOMMENDED:"ShadowsAndLightning",POSE_AND_EXPRESSION_ALL_RECOMMENDED:"PoseAndExpression",HEAD_OCCLUSION_ALL_RECOMMENDED:"HeadOcclusion",QUALITY_BACKGROUND_ALL_RECOMMENDED:"QualityBackground"};export var ScreenOrientation={PORTRAIT:0,LANDSCAPE:1};export var CustomizationFont={ONBOARDING_SCREEN_START_BUTTON:100,ONBOARDING_SCREEN_TITLE_LABEL:101,ONBOARDING_SCREEN_SUBTITLE_LABEL:102,ONBOARDING_SCREEN_MESSAGE_LABELS:103,CAMERA_SCREEN_HINT_LABEL:200,RETRY_SCREEN_RETRY_BUTTON:300,RETRY_SCREEN_TITLE_LABEL:301,RETRY_SCREEN_SUBTITLE_LABEL:302,RETRY_SCREEN_HINT_LABELS:303,PROCESSING_SCREEN:400};export var DetectFacesScenario={CROP_CENTRAL_FACE:"CropCentralFace",CROP_ALL_FACES:"CropAllFaces",THUMBNAIL:"Thumbnail",ATTRIBUTES_ALL:"AttributesAll",QUALITY_FULL:"QualityFull",QUALITY_ICAO:"QualityICAO",QUALITY_VISA_SCHENGEN:"QualityVisaSchengen",QUALITY_VISA_USA:"QualityVisaUSA"};export var LivenessProcessStatus={START:0,PREPARING:1,NEW_SESSION:2,NEXT_STAGE:3,SECTOR_CHANGED:4,PROGRESS:5,LOW_BRIGHTNESS:6,FIT_FACE:7,MOVE_AWAY:8,MOVE_CLOSER:9,TURN_HEAD:10,PROCESSING:11,FAILED:12,RETRY:13,SUCCESS:14};export var OutputImageCropAspectRatio={OUTPUT_IMAGE_CROP_ASPECT_RATIO_3X4:0,OUTPUT_IMAGE_CROP_ASPECT_RATIO_4X5:1,OUTPUT_IMAGE_CROP_ASPECT_RATIO_2X3:2,OUTPUT_IMAGE_CROP_ASPECT_RATIO_1X1:3,OUTPUT_IMAGE_CROP_ASPECT_RATIO_7X9:4};export var LivenessType={ACTIVE:0,PASSIVE:1};export var LivenessSkipStep={ONBOARDING_STEP:0,SUCCESS_STEP:1};export var ImageQualityResultStatus={IMAGE_QUALITY_RESULT_STATUS_FALSE:0,IMAGE_QUALITY_RESULT_STATUS_TRUE:1,IMAGE_QUALITY_RESULT_STATUS_UNDETERMINED:2};export var ImageType={PRINTED:1,RFID:2,LIVE:3,DOCUMENT_WITH_LIVE:4,EXTERNAL:5,GHOST_PORTRAIT:6,BARCODE:7};export var FaceCaptureErrorCode={CANCEL:0,TIMEOUT:1,NOT_INITIALIZED:2,SESSION_START_FAILED:3,CAMERA_NOT_AVAILABLE:4,CAMERA_NO_PERMISSION:5,IN_PROGRESS_ALREADY:6,CONTEXT_IS_NULL:7};export var LivenessBackendErrorCode={UNDEFINED:-1,NO_LICENSE:200,NOT_INITIALIZED:201,COMMAND_IS_NOT_SUPPORTED:202,PARAMS_READ_ERROR:203,LOW_QUALITY:231,TRACK_BREAK:246,CLOSED_EYES_DETECTED:230,HIGH_ASYMMETRY:232,FACE_OVER_EMOTIONAL:233,SUNGLASSES_DETECTED:234,SMALL_AGE:235,HEADDRESS_DETECTED:236,MEDICINE_MASK_DETECTED:239,OCCLUSION_DETECTED:240,FOREHEAD_GLASSES_DETECTED:242,MOUTH_OPENED:243,ART_MASK_DETECTED:244,NOT_MATCHED:237,IMAGES_COUNT_LIMIT_EXCEEDED:238,ELECTRONIC_DEVICE_DETECTED:245,WRONG_GEO:247,WRONG_OF:248,WRONG_VIEW:249,TIMEOUT_LIVENESS_TRANSACTION:250,FAILED_LIVENESS_TRANSACTION:251,ABORTED_LIVENESS_TRANSACTION:252,GENERAL_CHECK_FAIL:253,PASSIVE_LIVENESS_FAIL:254,PRINTED_FACE_DETECTED:255,BLOCKED_REQUEST:256,CORRUPTED_REQUEST:257};export var ProcessingMode={ONLINE:0,OFFLINE:1};export var CustomizationImage={ONBOARDING_SCREEN_CLOSE_BUTTON:100,ONBOARDING_SCREEN_ILLUMINATION:101,ONBOARDING_SCREEN_ACCESSORIES:102,ONBOARDING_SCREEN_CAMERA_LEVEL:103,CAMERA_SCREEN_CLOSE_BUTTON:200,CAMERA_SCREEN_LIGHT_ON_BUTTON:201,CAMERA_SCREEN_LIGHT_OFF_BUTTON:202,CAMERA_SCREEN_SWITCH_BUTTON:203,RETRY_SCREEN_CLOSE_BUTTON:300,RETRY_SCREEN_HINT_ENVIRONMENT:301,RETRY_SCREEN_HINT_SUBJECT:302,PROCESSING_SCREEN_CLOSE_BUTTON:400,SUCCESS_SCREEN_IMAGE:500};export var DetectFacesAttribute={AGE:"Age",EYE_RIGHT:"EyeRight",EYE_LEFT:"EyeLeft",EMOTION:"Emotion",SMILE:"Smile",GLASSES:"Glasses",HEAD_COVERING:"HeadCovering",FOREHEAD_COVERING:"ForeheadCovering",MOUTH:"Mouth",MEDICAL_MASK:"MedicalMask",OCCLUSION:"Occlusion",STRONG_MAKEUP:"StrongMakeup",HEADPHONES:"Headphones"};export var Enum={FontStyle:FontStyle,CustomizationColor:CustomizationColor,ImageQualityGroupName:ImageQualityGroupName,LicensingResultCode:LicensingResultCode,DetectFacesErrorCode:DetectFacesErrorCode,CameraPosition:CameraPosition,InitErrorCode:InitErrorCode,LivenessStatus:LivenessStatus,LivenessErrorCode:LivenessErrorCode,RecordingProcess:RecordingProcess,DetectFacesBackendErrorCode:DetectFacesBackendErrorCode,MatchFacesErrorCode:MatchFacesErrorCode,ImageQualityCharacteristicName:ImageQualityCharacteristicName,ScreenOrientation:ScreenOrientation,CustomizationFont:CustomizationFont,DetectFacesScenario:DetectFacesScenario,LivenessProcessStatus:LivenessProcessStatus,OutputImageCropAspectRatio:OutputImageCropAspectRatio,LivenessType:LivenessType,LivenessSkipStep:LivenessSkipStep,ImageQualityResultStatus:ImageQualityResultStatus,ImageType:ImageType,FaceCaptureErrorCode:FaceCaptureErrorCode,LivenessBackendErrorCode:LivenessBackendErrorCode,ProcessingMode:ProcessingMode,CustomizationImage:CustomizationImage,DetectFacesAttribute:DetectFacesAttribute};var FaceSDKOriginal=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.getVersion=function(){return cordova(this,"getVersion",{},arguments)},t.prototype.getServiceUrl=function(){return cordova(this,"getServiceUrl",{},arguments)},t.prototype.setServiceUrl=function(e){return cordova(this,"setServiceUrl",{},arguments)},t.prototype.setLocalizationDictionary=function(e){return cordova(this,"setLocalizationDictionary",{},arguments)},t.prototype.setRequestHeaders=function(e){return cordova(this,"setRequestHeaders",{},arguments)},t.prototype.setCustomization=function(e){return cordova(this,"setCustomization",{},arguments)},t.prototype.isInitialized=function(){return cordova(this,"isInitialized",{},arguments)},t.prototype.initialize=function(e){return cordova(this,"initialize",{},arguments)},t.prototype.deinitialize=function(){return cordova(this,"deinitialize",{},arguments)},t.prototype.startFaceCapture=function(e){return cordova(this,"startFaceCapture",{observable:!0},arguments)},t.prototype.stopFaceCapture=function(){return cordova(this,"stopFaceCapture",{},arguments)},t.prototype.startLiveness=function(e){return cordova(this,"startLiveness",{observable:!0},arguments)},t.prototype.stopLiveness=function(){return cordova(this,"stopLiveness",{},arguments)},t.prototype.matchFaces=function(e,t){return cordova(this,"matchFaces",{},arguments)},t.prototype.splitComparedFaces=function(e,t){return cordova(this,"splitComparedFaces",{},arguments)},t.prototype.detectFaces=function(e){return cordova(this,"detectFaces",{},arguments)},t.prototype.createPerson=function(e,t,n){return cordova(this,"createPerson",{},arguments)},t.prototype.updatePerson=function(e){return cordova(this,"updatePerson",{},arguments)},t.prototype.deletePerson=function(e){return cordova(this,"deletePerson",{},arguments)},t.prototype.getPerson=function(e){return cordova(this,"getPerson",{},arguments)},t.prototype.addPersonImage=function(e,t){return cordova(this,"addPersonImage",{},arguments)},t.prototype.deletePersonImage=function(e,t){return cordova(this,"deletePersonImage",{},arguments)},t.prototype.getPersonImage=function(e,t){return cordova(this,"getPersonImage",{},arguments)},t.prototype.getPersonImages=function(e){return cordova(this,"getPersonImages",{},arguments)},t.prototype.getPersonImagesForPage=function(e,t,n){return cordova(this,"getPersonImagesForPage",{},arguments)},t.prototype.createGroup=function(e,t){return cordova(this,"createGroup",{},arguments)},t.prototype.updateGroup=function(e){return cordova(this,"updateGroup",{},arguments)},t.prototype.editPersonsInGroup=function(e,t){return cordova(this,"editPersonsInGroup",{},arguments)},t.prototype.deleteGroup=function(e){return cordova(this,"deleteGroup",{},arguments)},t.prototype.getGroup=function(e){return cordova(this,"getGroup",{},arguments)},t.prototype.getGroups=function(){return cordova(this,"getGroups",{},arguments)},t.prototype.getGroupsForPage=function(e,t){return cordova(this,"getGroupsForPage",{},arguments)},t.prototype.getPersonGroups=function(e){return cordova(this,"getPersonGroups",{},arguments)},t.prototype.getPersonGroupsForPage=function(e,t,n){return cordova(this,"getPersonGroupsForPage",{},arguments)},t.prototype.getPersonsInGroup=function(e){return cordova(this,"getPersonsInGroup",{},arguments)},t.prototype.getPersonsInGroupForPage=function(e,t,n){return cordova(this,"getPersonsInGroupForPage",{},arguments)},t.prototype.searchPerson=function(e){return cordova(this,"searchPerson",{},arguments)},t.pluginName="FaceSDK",t.plugin="cordova-plugin-face-api",t.pluginRef="FaceSDKPlugin.FaceSDK",t.repo="https://github.com/regulaforensics/FaceApi-Cordova-Plugin",t.platforms=["Android","iOS"],t}(AwesomeCordovaNativePlugin),FaceSDK=new FaceSDKOriginal;export{FaceSDK};
//# sourceMappingURL=/sm/f9b407a314943dd214b2dc1b5bebfe209bc6da77bdda9a1dd23462a6b0655ed1.map