@scandit/web-datacapture-core 8.2.0 → 8.3.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY.txt +0 -1
- package/build/electron/common.cjs +1 -1
- package/build/electron/constants.cjs +1 -1
- package/build/electron/main.cjs +1 -1
- package/build/electron/preload.cjs +1 -1
- package/build/js/{Camera-DhGjpcjv.d.ts → Camera-BnPnXqAt.d.ts} +1 -1
- package/build/js/Camera.d.ts +1 -1
- package/build/js/Camera.js +1 -1
- package/build/js/CameraRelated.d.ts +1 -1
- package/build/js/{DataCaptureContext-Dvdr7st4.d.ts → DataCaptureContext-LM_Re1B4.d.ts} +42 -4
- package/build/js/DataCaptureContext.d.ts +4 -2
- package/build/js/DataCaptureContext.js +1 -1
- package/build/js/DataCaptureContextRelated.d.ts +5 -3
- package/build/js/DataCaptureVersion.js +1 -1
- package/build/js/DataCaptureView.d.ts +5 -3
- package/build/js/DataCaptureView.js +1 -1
- package/build/js/Feedback.js +1 -1
- package/build/js/FrameData.d.ts +4 -2
- package/build/js/ImageFrameSource.d.ts +1 -1
- package/build/js/ImageFrameSource.js +1 -1
- package/build/js/NotificationPresenter/index.d.ts +4 -2
- package/build/js/NotificationPresenter/private/ConcreteNotificationPresenter.d.ts +4 -2
- package/build/js/NotificationPresenter/private/presets.d.ts +4 -2
- package/build/js/ScanditIcon.js +1 -1
- package/build/js/ScanditIconBuilder.js +1 -1
- package/build/js/SingleImageUploader.d.ts +1 -1
- package/build/js/Sound.js +1 -1
- package/build/js/Vibration.js +1 -1
- package/build/js/browserHelper.d.ts +10 -0
- package/build/js/browserHelper.js +1 -1
- package/build/js/chunks/{chunk-UQVVJP5Z.js → chunk-2OCDIZIS.js} +1 -1
- package/build/js/chunks/{chunk-QFSNPY5Y.js → chunk-2SGKGZ6F.js} +1 -1
- package/build/js/chunks/{chunk-O7EM4VIM.js → chunk-33ZWDLU7.js} +1 -1
- package/build/js/chunks/{chunk-3MKSI2DV.js → chunk-6IM6NGGI.js} +1 -1
- package/build/js/chunks/{chunk-WVVNJRUA.js → chunk-7EGT56UE.js} +1 -1
- package/build/js/chunks/chunk-7JVAQ2A3.js +1 -0
- package/build/js/chunks/{chunk-MX6NS4FA.js → chunk-7ZU6DPLL.js} +1 -1
- package/build/js/chunks/{chunk-7HYFN4JO.js → chunk-A3ZT7PJA.js} +1 -1
- package/build/js/chunks/chunk-A5G2NHT2.js +1 -0
- package/build/js/chunks/{chunk-DGIQ3GF7.js → chunk-ARODHCN7.js} +1 -1
- package/build/js/chunks/chunk-BQO4QYI6.js +1 -0
- package/build/js/chunks/{chunk-QUWP3ILW.js → chunk-BSX3V75N.js} +1 -1
- package/build/js/chunks/chunk-BV63CXZF.js +1 -0
- package/build/js/chunks/{chunk-SFS4ELLN.js → chunk-DQ5X7FNV.js} +1 -1
- package/build/js/chunks/chunk-DZE2EYSZ.js +1 -0
- package/build/js/chunks/{chunk-SYGWA3T6.js → chunk-E7IMQECS.js} +1 -1
- package/build/js/chunks/{chunk-VSROWPI6.js → chunk-FCXZZH3O.js} +1 -1
- package/build/js/chunks/{chunk-O4HDBWKK.js → chunk-FMOB7R2T.js} +1 -1
- package/build/js/chunks/{chunk-U7ETOWGJ.js → chunk-GS7VZDY5.js} +1 -1
- package/build/js/chunks/{chunk-NXW6JP4X.js → chunk-H7FKC2FI.js} +1 -1
- package/build/js/chunks/{chunk-NXAYIU7F.js → chunk-IASACVTH.js} +1 -1
- package/build/js/chunks/chunk-IVQL2BYY.js +1 -0
- package/build/js/chunks/chunk-KUAZYGPM.js +1 -0
- package/build/js/chunks/{chunk-DTREAYZQ.js → chunk-KVRNF3VA.js} +1 -1
- package/build/js/chunks/{chunk-UERKPMRV.js → chunk-L66S4DN2.js} +1 -1
- package/build/js/chunks/chunk-M2ZQCUEL.js +1 -0
- package/build/js/chunks/{chunk-YE2GYNRP.js → chunk-NMXQDQYI.js} +1 -1
- package/build/js/chunks/{chunk-BBOKPRKO.js → chunk-O5D4KVS5.js} +1 -1
- package/build/js/chunks/{chunk-GLSB4QTY.js → chunk-OCKYBUXO.js} +1 -1
- package/build/js/chunks/{chunk-XYZYNUX3.js → chunk-RXDVYEE5.js} +1 -1
- package/build/js/chunks/{chunk-QUBJJDLC.js → chunk-RYXKMXTY.js} +1 -1
- package/build/js/chunks/{chunk-RP4YFAF2.js → chunk-SSTFVERQ.js} +1 -1
- package/build/js/chunks/{chunk-7OFC24NE.js → chunk-SX5ZLP2O.js} +1 -1
- package/build/js/chunks/{chunk-V2OKMBZD.js → chunk-UJYGOVXB.js} +1 -1
- package/build/js/chunks/chunk-W3X3ZRQZ.js +1 -0
- package/build/js/chunks/chunk-WBYBTOBZ.js +1 -0
- package/build/js/chunks/{chunk-JCP7NQPV.js → chunk-WFKB322J.js} +1 -1
- package/build/js/chunks/{chunk-VJ7ZYB4V.js → chunk-WJOT37ST.js} +1 -1
- package/build/js/chunks/{chunk-I4F6XB6S.js → chunk-XVH5A2QH.js} +1 -1
- package/build/js/chunks/{chunk-4J3Y5IIL.js → chunk-XW3Z6KKS.js} +1 -1
- package/build/js/chunks/{chunk-QPR2YHD4.js → chunk-YJNJGCAN.js} +1 -1
- package/build/js/chunks/chunk-YMM2PV73.js +6 -0
- package/build/js/chunks/chunk-YONR3EGV.js +2 -0
- package/build/js/chunks/{chunk-6EEMWSEO.js → chunk-YP53ND2Q.js} +1 -1
- package/build/js/chunks/{chunk-NT5WI2PS.js → chunk-YUZDO2PC.js} +1 -1
- package/build/js/chunks/{chunk-ZWO2PAO7.js → chunk-YXXMWHFX.js} +1 -1
- package/build/js/controls/CameraFOVSwitchControl.d.ts +4 -2
- package/build/js/controls/CameraFOVSwitchControl.js +1 -1
- package/build/js/controls/CameraSwitchControl.d.ts +4 -2
- package/build/js/controls/CameraSwitchControl.js +1 -1
- package/build/js/controls/TorchSwitchControl.d.ts +4 -2
- package/build/js/controls/TorchSwitchControl.js +1 -1
- package/build/js/controls/common.d.ts +4 -2
- package/build/js/controls/index.d.ts +4 -2
- package/build/js/controls/index.js +1 -1
- package/build/js/defaults/DefaultsCamera.d.ts +4 -2
- package/build/js/defaults/DefaultsCameraSettings.d.ts +1 -1
- package/build/js/defaults/DefaultsDataCaptureView.js +1 -1
- package/build/js/index.d.ts +5 -3
- package/build/js/index.js +1 -1
- package/build/js/moduleLoader.d.ts +4 -2
- package/build/js/private/AdditionalLayerPosition.d.ts +6 -0
- package/build/js/private/AdditionalLayerPosition.js +1 -0
- package/build/js/private/BatteryInterface.d.ts +81 -0
- package/build/js/private/BatteryInterface.js +1 -0
- package/build/js/private/CameraAccess.d.ts +1 -1
- package/build/js/private/CameraAccess.js +1 -1
- package/build/js/private/CameraManager.d.ts +5 -3
- package/build/js/private/CameraManager.js +1 -1
- package/build/js/private/CameraPool.d.ts +4 -2
- package/build/js/private/CanvasDrawerWithMetrics.d.ts +4 -2
- package/build/js/private/CoreModuleLicenseTextProvider.d.ts +4 -2
- package/build/js/private/CoreModuleLicenseTextProvider.js +1 -1
- package/build/js/private/CustomLocationsView.js +1 -1
- package/build/js/private/DataCaptureContextRelated.d.ts +4 -2
- package/build/js/private/FrameReaders/FrameReader.d.ts +4 -2
- package/build/js/private/FrameReaders/FrameReader.js +1 -1
- package/build/js/private/FrameReaders/FrameReaderAbstract.d.ts +4 -2
- package/build/js/private/FrameReaders/GrayScaleFrameReader.d.ts +4 -2
- package/build/js/private/FrameReaders/GrayScaleFrameReader.js +1 -1
- package/build/js/private/FrameReaders/index.d.ts +4 -2
- package/build/js/private/FrameReaders/index.js +1 -1
- package/build/js/private/NormalizedModuleLoaderOptions.d.ts +4 -2
- package/build/js/private/OrientationObserver.js +1 -1
- package/build/js/private/SingleImageUploaderView.d.ts +4 -2
- package/build/js/private/SingleImageUploaderView.js +1 -1
- package/build/js/private/ViewControls+related.js +1 -1
- package/build/js/private/ViewControls_related.d.ts +4 -2
- package/build/js/private/ViewStyles.js +1 -1
- package/build/js/private/ViewsRegistry.d.ts +4 -2
- package/build/js/private/customHowler.d.ts +27 -0
- package/build/js/private/customHowler.js +1 -0
- package/build/js/private/hybridDesktopPlatformHelpers.js +1 -1
- package/build/js/private/ui/atoms/AimerSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowDownSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowLeftSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowRightSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowUpSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowsUp.js +1 -1
- package/build/js/private/ui/atoms/Backdrop.js +1 -1
- package/build/js/private/ui/atoms/CalendarExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraFOVUltrawideSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraFOVWideSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraSwitchReverseSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraSwitchSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Card.js +1 -1
- package/build/js/private/ui/atoms/CardList.js +1 -1
- package/build/js/private/ui/atoms/CheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronDownSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronLeftSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronRightSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronUpSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CrossSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/DeleteSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Dot5xSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/GlassSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/HandLensCheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/KeyboardSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/LowStockSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/OnexSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/PauseSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/PrinterSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ProgressBar.js +1 -1
- package/build/js/private/ui/atoms/QuestionMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RestartSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedCheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedCrossSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ScanSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ShutterButton.js +1 -1
- package/build/js/private/ui/atoms/SlashSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/StarFilledSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/StarHalfFilledSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/StarOutlinedSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/SvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ToPickSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Toast.d.ts +4 -2
- package/build/js/private/ui/atoms/Toast.js +1 -1
- package/build/js/private/ui/atoms/TorchOffSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/TorchOnSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/TwoxSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/WrongItemSvgIcon.js +1 -1
- package/build/js/private/ui/molecules/CameraFOVSwitchButton.js +1 -1
- package/build/js/private/ui/molecules/CameraSwitchButton.js +1 -1
- package/build/js/private/ui/molecules/ControlsLayout.js +1 -1
- package/build/js/private/ui/molecules/HintPresenter.d.ts +4 -2
- package/build/js/private/ui/molecules/HintPresenter.js +1 -1
- package/build/js/private/ui/molecules/LoadingOverlay.js +1 -1
- package/build/js/private/ui/molecules/TorchSwitchIconButton.d.ts +1 -1
- package/build/js/private/ui/molecules/TorchSwitchIconButton.js +1 -1
- package/build/js/private/utils/index.js +1 -1
- package/build/js/private/utils/polyfillLoader.js +1 -1
- package/build/js/private/utils/replaceImagesInViewUtils.d.ts +4 -2
- package/build/js/private/utils/warnMultithreadingUnavailable.js +1 -1
- package/build/js/worker/ImageConverterForwarder.d.ts +4 -2
- package/build/js/worker/ViewInfoHelper.d.ts +4 -2
- package/build/js/worker/WorkerMain.d.ts +4 -2
- package/build/js/worker/WorkerMain.js +1 -1
- package/build/js/worker/coreCapture.inlineWorker.d.ts +4 -2
- package/build/js/worker/coreCapture.inlineWorker.js +1 -1
- package/build/js/worker/dataCaptureEngine.d.ts +4 -2
- package/build/js/worker/dataCaptureEngine.js +1 -1
- package/build/js/worker/dataCaptureLoader.d.ts +4 -2
- package/build/js/worker/dataCaptureLoader.js +1 -1
- package/build/js/worker/dataCaptureWorkerRelated.d.ts +4 -2
- package/build/js/worker/dataCaptureWorkerRelated.js +1 -1
- package/build/js/worker/index.d.ts +4 -2
- package/build/js/worker/index.js +1 -1
- package/package.json +6 -6
- package/build/js/chunks/chunk-A225YZFY.js +0 -2
- package/build/js/chunks/chunk-ACF5LYP7.js +0 -1
- package/build/js/chunks/chunk-DSFN65OM.js +0 -1
- package/build/js/chunks/chunk-ECPEKYII.js +0 -1
- package/build/js/chunks/chunk-FQYVZGCE.js +0 -1
- package/build/js/chunks/chunk-LH2NI5UL.js +0 -2
- package/build/js/chunks/chunk-OFNPZ4HM.js +0 -6
- package/build/js/chunks/chunk-UOQFOEG6.js +0 -1
- package/build/js/chunks/chunk-XG6VNDVQ.js +0 -1
- /package/build/js/chunks/{chunk-TU2LKPHV.js → chunk-FHNMZZV2.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-IBDUCVB4.js';import {a as a$1}from'./chunk-LFJUGRQV.js';import {g as g$1}from'./chunk-SYGWA3T6.js';import {d as d$1}from'./chunk-NT5WI2PS.js';import {b as b$1}from'./chunk-A225YZFY.js';import {a as a$3}from'./chunk-XR65N6EG.js';import {g}from'./chunk-3D2HNEVH.js';import {a}from'./chunk-6LHGFWQI.js';import {a as a$2}from'./chunk-QCZSSQAQ.js';d$1.addVideoDevicesListener(w=>{b.integrateIncomingVideoDevices(w.map(e=>d.fromDeviceCamera(e)));});var C;C=a$1;var s=class s{constructor(e){this._label="";this._deviceId="";this._notFoundOnDevice=false;this._isBestGuess=false;this.type="camera";this._currentState="off";this._settings=new g;this._desiredTorchState="off";this._desiredState="off";this.listeners=[];this._context=null;this[C]={markAsUnmappedToDeviceCameras:this.markAsUnmappedToDeviceCameras.bind(this),setDeviceId:this.setDeviceId.bind(this),setLabel:this.setLabel.bind(this),markAsBestGuess:this.markAsBestGuess.bind(this)};this._captureAndSendBound=this.captureAndSend.bind(this);this.stateTransitionStrategyMap={off:{on:this.transitionFromStateOffToOn.bind(this),standby:this.transitionFromStateOffToStandby.bind(this)},on:{off:this.transitionFromStateOnToOff.bind(this),standby:this.transitionFromStateOnToStandby.bind(this)},standby:{off:this.transitionFromStateStandbyToOff.bind(this),on:this.transitionFromStateStandbyToOn.bind(this)}};this.cameraManager=e!=null?e:g$1.instance();}static pickBestGuess(){return s.getOrCreate({position:"worldFacing",bestGuess:true})}static pickBestGuessForPosition(e){if(!a.availablePositions.includes(e))throw new Error(`Invalid camera position: "${e}"`);return s.getOrCreate({position:e})}static forDeviceId(e){return s.getOrCreate({deviceId:e})}static async getAll(e,t){return await d$1.getCameras(e!=null?e:false,t!=null?t:false),[...b.get()]}static getOrCreate(e){let{deviceId:t,position:r,bestGuess:i}=e,n=new s;return n._deviceId=t!=null?t:"",n.position=r!=null?r:"worldFacing",i&&n[a$1].markAsBestGuess(),b.getOrCreate(n)}static fromDeviceCamera(e){let t=new s;return t.position=e.position,t._deviceId=e.deviceId,t._label=e.label,t}get deviceId(){return this._deviceId}get label(){return this._label}get desiredState(){return this._desiredState}get settings(){return this._settings}get currentResolution(){var e;return (e=this._currentResolution)!=null?e:null}setDeviceId(e){this._deviceId=e;}setLabel(e){this._label=e;}get context(){return this._context}set context(e){this._context=e,this._context&&this.currentState==="on"&&this.startSendingCapturesToWorker();}get currentState(){return this._currentState}async switchToDesiredState(e){var t,r;if(this.currentTransitionStrategyPromise&&await this.currentTransitionStrategyPromise,this._notFoundOnDevice&&(e==="on"||e==="standby"))throw new a$2({message:`Cannot switch state to ${e}. This camera could not be mapped to a detected camera on the device. Please use another camera and delete this one.`,name:"Unmapped Camera"});return this.currentTransitionStrategyPromise=(r=(t=this.stateTransitionStrategyMap[this.currentState])==null?void 0:t[e])==null?void 0:r.call(t).catch(i=>{if(i instanceof DOMException&&i.message==="The associated Track is in an invalid state"){a$3.log(a$3.Level.Warn,i);return}throw i}),this.currentTransitionStrategyPromise}getDesiredTorchState(){return this._desiredTorchState}async setDesiredTorchState(e){this._desiredTorchState=e,await this.cameraManager.setTorchEnabled(this._desiredTorchState==="on"),await this.notifyContext({type:"torchState",newValue:this._desiredTorchState});}async isTorchAvailable(){return this.cameraManager.isTorchAvailable()}addListener(e){e!=null&&(this.listeners.includes(e)||this.listeners.push(e));}removeListener(e){e!=null&&this.listeners.includes(e)&&this.listeners.splice(this.listeners.indexOf(e),1);}async applySettings(e){var r;this._settings=new g(e);let t=this.settings.getProperty("grayScaleFrameReader");if(this.cameraManager.setFrameReaderType(t===true?"GRAYSCALE":"RGBA"),this.currentState==="on"||this.currentState==="standby"){let i=this.cameraManager.activeCameraSettings;(i==null?void 0:i.preferredResolution)!==this.settings.preferredResolution&&(await this.cameraManager.applyCameraSettings(this.settings),(r=this.cameraManager.activeCamera)!=null&&r.currentResolution&&(this._currentResolution={width:this.cameraManager.activeCamera.currentResolution.width,height:this.cameraManager.activeCamera.currentResolution.height})),await this.cameraManager.setZoom(this.settings.zoomFactor);let n=this.settings.getProperty("minFrameRate"),h=this.settings.getProperty("maxFrameRate");(n!=null||h!=null)&&await this.cameraManager.setFrameRate({min:n,max:h});let l=this.settings.getProperty("manualLensPosition");l!=null&&await this.cameraManager.setFocus(l);let p=this.settings.getProperty("exposureTargetBias"),S=this.settings.getProperty("exposureDuration");(p!=null||S!=null)&&await this.cameraManager.setExposure({compensation:p,time:S});}return this.notifyContext({type:"cameraSettings",newValue:this.settings})}toJSONObject(){return {type:this.type,position:this.position,settings:this.settings.toJSONObject(),desiredState:this.desiredState,desiredTorchState:this._desiredTorchState}}getMirrorImageEnabled(){var e;return (e=this._desiredMirrorImageEnabled)!=null?e:this.cameraManager.isMirrorImageEnabled()}async setMirrorImageEnabled(e){this._desiredMirrorImageEnabled=e,this.cameraManager.setMirrorImageEnabled(e,true),this.context&&await this.context.setFrameSource(this);}getCurrentState(){return this._currentState}async setClipArea(e){await this.cameraManager.setClipArea(e);}async setCurrentState(e){if(e!==this._currentState){this._currentState=e,this.notifyListeners();try{await this.notifyContext({type:"frameSourceState",newValue:e}),e==="on"&&this.startSendingCapturesToWorker();}catch{a$3.warn("Error while notifying context about new state of Camera");}}}async setupCamera(){if(this.cameraManager.setSelectedCameraSettings(this.settings),this.deviceId==="")this.cameraManager.setSelectedCamera(),this.cameraManager.setInitialCameraPosition(this.position);else {let t=(await d$1.getCameras()).find(r=>r.deviceId===this.deviceId);t&&(this.cameraManager.setInitialCameraPosition(t.position),this.cameraManager.setSelectedCamera(t));}await this.cameraManager.setupCameras(),typeof this._desiredMirrorImageEnabled=="boolean"?this.cameraManager.setMirrorImageEnabled(this._desiredMirrorImageEnabled,true):this.cameraManager.setMirrorImageEnabled(this.cameraManager.isMirrorImageEnabled(),false),this.context&&await this.context.setFrameSource(this),this.cameraManager.activeCamera&&(this._deviceId=this.cameraManager.activeCamera.deviceId,this._label=this.cameraManager.activeCamera.label,this.position=this.cameraManager.activeCamera.position,this._currentResolution=this.cameraManager.activeCamera.currentResolution);}markAsUnmappedToDeviceCameras(){this._notFoundOnDevice=true;}markAsBestGuess(){this._isBestGuess=true;}async notifyContext(e){if(this.context)return this.context.update([e])}notifyListeners(){for(let e of this.listeners)e.didChangeState&&e.didChangeState(this,this.currentState);}updateCanvasVideoImage(){this.currentState==="on"&&this.context&&(this.cameraManager.updateCanvasVideoImage(),this._lastCanvasVideoPreviewAnimationFrame=this.cameraManager.requestVideoFrame(this.updateCanvasVideoImage.bind(this)));}async captureAndSend(){if(this.currentState!=="on"||!this.context)return;if(!this.context.hasEnabledMode()){this._lastCaptureRequestAnimationFrame=this.cameraManager.requestVideoFrame(this._captureAndSendBound);return}let e=null;try{e=this.cameraManager.captureImage();}catch(t){a$3.warn("Camera: error while capturing image.",t);}finally{if(e!=null)if(this.cameraManager.synchronousFrameHandling){let t=await this.context.sendFrameToProcessor(e);this.cameraManager.recycle(t.data);}else this.context.sendFrameToProcessor(e).then(t=>(this.cameraManager.recycle(t.data),null)).catch(t=>{a$3.warn("error while recycling uint8array",t);});this._lastCaptureRequestAnimationFrame=this.cameraManager.requestVideoFrame(this._captureAndSendBound);}}startSendingCapturesToWorker(){this.stopSendingCapturesToWorker(),this.captureAndSend();}stopSendingCapturesToWorker(){this._lastCanvasVideoPreviewAnimationFrame!=null&&this.cameraManager.cancelVideoFrame(this._lastCanvasVideoPreviewAnimationFrame),this._lastCaptureRequestAnimationFrame!=null&&this.cameraManager.cancelVideoFrame(this._lastCaptureRequestAnimationFrame);}async transitionFromStateOffToOn(){if(!(this.currentState==="on"||this.currentState==="starting"||this.currentState==="wakingUp")){this._desiredState="on",await this.setCurrentState("starting");try{await this.setupCamera(),await this.setCurrentState("on");}catch(e){throw a$3.log(a$3.Level.Error,e),await this.setCurrentState("off"),e}}}async transitionFromStateOffToStandby(){if(!(this.currentState==="standby"||this.currentState==="bootingUp"||this.currentState==="goingToSleep")){if(await this.isAndroidWebView()){a$3.log(a$3.Level.Warn,'Warning: "Standby" state does not work inside web views. Falling back to state "On".'),await this.transitionFromStateOffToOn();return}this._desiredState="standby",await this.setCurrentState("bootingUp");try{await this.setupCamera(),this.cameraManager.pauseStream(),await this.setCurrentState("standby");}catch(e){throw a$3.log(a$3.Level.Error,e),await this.setCurrentState("off"),e}await this.setCurrentState("standby"),await this.setDesiredTorchState("off");}}async transitionFromStateOnToOff(){this.currentState==="off"||this.currentState==="stopping"||(this._desiredState="off",await this.setCurrentState("stopping"),await this.cameraManager.stopStream(),await this.setCurrentState("off"),await this.setDesiredTorchState("off"));}async transitionFromStateOnToStandby(){if(!(this.currentState==="standby"||this.currentState==="bootingUp"||this.currentState==="goingToSleep")){if(await this.isAndroidWebView()){a$3.log(a$3.Level.Warn,'Warning: "Standby" state does not work inside web views. Falling back to state "Off".'),await this.transitionFromStateOnToOff();return}this._desiredState="standby",await this.setCurrentState("goingToSleep"),this.cameraManager.pauseStream(),await this.setCurrentState("standby"),await this.setDesiredTorchState("off");}}async transitionFromStateStandbyToOff(){this.currentState==="off"||this.currentState==="stopping"||(this._desiredState="off",await this.setCurrentState("shuttingDown"),await this.cameraManager.stopStream(),await this.setCurrentState("off"),await this.setDesiredTorchState("off"));}async transitionFromStateStandbyToOn(){this.currentState==="on"||this.currentState==="starting"||this.currentState==="wakingUp"||(this._desiredState="on",await this.setCurrentState("wakingUp"),this.cameraManager.resumeStream(),await this.setCurrentState("on"));}async isAndroidWebView(){return this._isAndroidWebView==null&&(this._isAndroidWebView=await b$1.isAndroidWebView()),this._isAndroidWebView}isZoomAvailable(){var e;return ((e=this.cameraManager.mediaTrackCapabilities)==null?void 0:e.zoom)!=null}},d=s;export{d as a};
|
|
1
|
+
import {b}from'./chunk-IBDUCVB4.js';import {a as a$1}from'./chunk-LFJUGRQV.js';import {g as g$1}from'./chunk-E7IMQECS.js';import {d as d$1}from'./chunk-YUZDO2PC.js';import {b as b$1}from'./chunk-YONR3EGV.js';import {a as a$3}from'./chunk-XR65N6EG.js';import {g}from'./chunk-3D2HNEVH.js';import {a}from'./chunk-6LHGFWQI.js';import {a as a$2}from'./chunk-QCZSSQAQ.js';d$1.addVideoDevicesListener(w=>{b.integrateIncomingVideoDevices(w.map(e=>d.fromDeviceCamera(e)));});var C;C=a$1;var s=class s{constructor(e){this._label="";this._deviceId="";this._notFoundOnDevice=false;this._isBestGuess=false;this.type="camera";this._currentState="off";this._settings=new g;this._desiredTorchState="off";this._desiredState="off";this.listeners=[];this._context=null;this[C]={markAsUnmappedToDeviceCameras:this.markAsUnmappedToDeviceCameras.bind(this),setDeviceId:this.setDeviceId.bind(this),setLabel:this.setLabel.bind(this),markAsBestGuess:this.markAsBestGuess.bind(this)};this._captureAndSendBound=this.captureAndSend.bind(this);this.stateTransitionStrategyMap={off:{on:this.transitionFromStateOffToOn.bind(this),standby:this.transitionFromStateOffToStandby.bind(this)},on:{off:this.transitionFromStateOnToOff.bind(this),standby:this.transitionFromStateOnToStandby.bind(this)},standby:{off:this.transitionFromStateStandbyToOff.bind(this),on:this.transitionFromStateStandbyToOn.bind(this)}};this.cameraManager=e!=null?e:g$1.instance();}static pickBestGuess(){return s.getOrCreate({position:"worldFacing",bestGuess:true})}static pickBestGuessForPosition(e){if(!a.availablePositions.includes(e))throw new Error(`Invalid camera position: "${e}"`);return s.getOrCreate({position:e})}static forDeviceId(e){return s.getOrCreate({deviceId:e})}static async getAll(e,t){return await d$1.getCameras(e!=null?e:false,t!=null?t:false),[...b.get()]}static getOrCreate(e){let{deviceId:t,position:r,bestGuess:i}=e,n=new s;return n._deviceId=t!=null?t:"",n.position=r!=null?r:"worldFacing",i&&n[a$1].markAsBestGuess(),b.getOrCreate(n)}static fromDeviceCamera(e){let t=new s;return t.position=e.position,t._deviceId=e.deviceId,t._label=e.label,t}get deviceId(){return this._deviceId}get label(){return this._label}get desiredState(){return this._desiredState}get settings(){return this._settings}get currentResolution(){var e;return (e=this._currentResolution)!=null?e:null}setDeviceId(e){this._deviceId=e;}setLabel(e){this._label=e;}get context(){return this._context}set context(e){this._context=e,this._context&&this.currentState==="on"&&this.startSendingCapturesToWorker();}get currentState(){return this._currentState}async switchToDesiredState(e){var t,r;if(this.currentTransitionStrategyPromise&&await this.currentTransitionStrategyPromise,this._notFoundOnDevice&&(e==="on"||e==="standby"))throw new a$2({message:`Cannot switch state to ${e}. This camera could not be mapped to a detected camera on the device. Please use another camera and delete this one.`,name:"Unmapped Camera"});return this.currentTransitionStrategyPromise=(r=(t=this.stateTransitionStrategyMap[this.currentState])==null?void 0:t[e])==null?void 0:r.call(t).catch(i=>{if(i instanceof DOMException&&i.message==="The associated Track is in an invalid state"){a$3.log(a$3.Level.Warn,i);return}throw i}),this.currentTransitionStrategyPromise}getDesiredTorchState(){return this._desiredTorchState}async setDesiredTorchState(e){this._desiredTorchState=e,await this.cameraManager.setTorchEnabled(this._desiredTorchState==="on"),await this.notifyContext({type:"torchState",newValue:this._desiredTorchState});}async isTorchAvailable(){return this.cameraManager.isTorchAvailable()}addListener(e){e!=null&&(this.listeners.includes(e)||this.listeners.push(e));}removeListener(e){e!=null&&this.listeners.includes(e)&&this.listeners.splice(this.listeners.indexOf(e),1);}async applySettings(e){var r;this._settings=new g(e);let t=this.settings.getProperty("grayScaleFrameReader");if(this.cameraManager.setFrameReaderType(t===true?"GRAYSCALE":"RGBA"),this.currentState==="on"||this.currentState==="standby"){let i=this.cameraManager.activeCameraSettings;(i==null?void 0:i.preferredResolution)!==this.settings.preferredResolution&&(await this.cameraManager.applyCameraSettings(this.settings),(r=this.cameraManager.activeCamera)!=null&&r.currentResolution&&(this._currentResolution={width:this.cameraManager.activeCamera.currentResolution.width,height:this.cameraManager.activeCamera.currentResolution.height})),await this.cameraManager.setZoom(this.settings.zoomFactor);let n=this.settings.getProperty("minFrameRate"),h=this.settings.getProperty("maxFrameRate");(n!=null||h!=null)&&await this.cameraManager.setFrameRate({min:n,max:h});let l=this.settings.getProperty("manualLensPosition");l!=null&&await this.cameraManager.setFocus(l);let p=this.settings.getProperty("exposureTargetBias"),S=this.settings.getProperty("exposureDuration");(p!=null||S!=null)&&await this.cameraManager.setExposure({compensation:p,time:S});}return this.notifyContext({type:"cameraSettings",newValue:this.settings})}toJSONObject(){return {type:this.type,position:this.position,settings:this.settings.toJSONObject(),desiredState:this.desiredState,desiredTorchState:this._desiredTorchState}}getMirrorImageEnabled(){var e;return (e=this._desiredMirrorImageEnabled)!=null?e:this.cameraManager.isMirrorImageEnabled()}async setMirrorImageEnabled(e){this._desiredMirrorImageEnabled=e,this.cameraManager.setMirrorImageEnabled(e,true),this.context&&await this.context.setFrameSource(this);}getCurrentState(){return this._currentState}async setClipArea(e){await this.cameraManager.setClipArea(e);}async setCurrentState(e){if(e!==this._currentState){this._currentState=e,this.notifyListeners();try{await this.notifyContext({type:"frameSourceState",newValue:e}),e==="on"&&this.startSendingCapturesToWorker();}catch{a$3.warn("Error while notifying context about new state of Camera");}}}async setupCamera(){if(this.cameraManager.setSelectedCameraSettings(this.settings),this.deviceId==="")this.cameraManager.setSelectedCamera(),this.cameraManager.setInitialCameraPosition(this.position);else {let t=(await d$1.getCameras()).find(r=>r.deviceId===this.deviceId);t&&(this.cameraManager.setInitialCameraPosition(t.position),this.cameraManager.setSelectedCamera(t));}await this.cameraManager.setupCameras(),typeof this._desiredMirrorImageEnabled=="boolean"?this.cameraManager.setMirrorImageEnabled(this._desiredMirrorImageEnabled,true):this.cameraManager.setMirrorImageEnabled(this.cameraManager.isMirrorImageEnabled(),false),this.context&&await this.context.setFrameSource(this),this.cameraManager.activeCamera&&(this._deviceId=this.cameraManager.activeCamera.deviceId,this._label=this.cameraManager.activeCamera.label,this.position=this.cameraManager.activeCamera.position,this._currentResolution=this.cameraManager.activeCamera.currentResolution);}markAsUnmappedToDeviceCameras(){this._notFoundOnDevice=true;}markAsBestGuess(){this._isBestGuess=true;}async notifyContext(e){if(this.context)return this.context.update([e])}notifyListeners(){for(let e of this.listeners)e.didChangeState&&e.didChangeState(this,this.currentState);}updateCanvasVideoImage(){this.currentState==="on"&&this.context&&(this.cameraManager.updateCanvasVideoImage(),this._lastCanvasVideoPreviewAnimationFrame=this.cameraManager.requestVideoFrame(this.updateCanvasVideoImage.bind(this)));}async captureAndSend(){if(this.currentState!=="on"||!this.context)return;if(!this.context.hasEnabledMode()){this._lastCaptureRequestAnimationFrame=this.cameraManager.requestVideoFrame(this._captureAndSendBound);return}let e=null;try{e=this.cameraManager.captureImage();}catch(t){a$3.warn("Camera: error while capturing image.",t);}finally{if(e!=null)if(this.cameraManager.synchronousFrameHandling){let t=await this.context.sendFrameToProcessor(e);this.cameraManager.recycle(t.data);}else this.context.sendFrameToProcessor(e).then(t=>(this.cameraManager.recycle(t.data),null)).catch(t=>{a$3.warn("error while recycling uint8array",t);});this._lastCaptureRequestAnimationFrame=this.cameraManager.requestVideoFrame(this._captureAndSendBound);}}startSendingCapturesToWorker(){this.stopSendingCapturesToWorker(),this.captureAndSend();}stopSendingCapturesToWorker(){this._lastCanvasVideoPreviewAnimationFrame!=null&&this.cameraManager.cancelVideoFrame(this._lastCanvasVideoPreviewAnimationFrame),this._lastCaptureRequestAnimationFrame!=null&&this.cameraManager.cancelVideoFrame(this._lastCaptureRequestAnimationFrame);}async transitionFromStateOffToOn(){if(!(this.currentState==="on"||this.currentState==="starting"||this.currentState==="wakingUp")){this._desiredState="on",await this.setCurrentState("starting");try{await this.setupCamera(),await this.setCurrentState("on");}catch(e){throw a$3.log(a$3.Level.Error,e),await this.setCurrentState("off"),e}}}async transitionFromStateOffToStandby(){if(!(this.currentState==="standby"||this.currentState==="bootingUp"||this.currentState==="goingToSleep")){if(await this.isAndroidWebView()){a$3.log(a$3.Level.Warn,'Warning: "Standby" state does not work inside web views. Falling back to state "On".'),await this.transitionFromStateOffToOn();return}this._desiredState="standby",await this.setCurrentState("bootingUp");try{await this.setupCamera(),this.cameraManager.pauseStream(),await this.setCurrentState("standby");}catch(e){throw a$3.log(a$3.Level.Error,e),await this.setCurrentState("off"),e}await this.setCurrentState("standby"),await this.setDesiredTorchState("off");}}async transitionFromStateOnToOff(){this.currentState==="off"||this.currentState==="stopping"||(this._desiredState="off",await this.setCurrentState("stopping"),await this.cameraManager.stopStream(),await this.setCurrentState("off"),await this.setDesiredTorchState("off"));}async transitionFromStateOnToStandby(){if(!(this.currentState==="standby"||this.currentState==="bootingUp"||this.currentState==="goingToSleep")){if(await this.isAndroidWebView()){a$3.log(a$3.Level.Warn,'Warning: "Standby" state does not work inside web views. Falling back to state "Off".'),await this.transitionFromStateOnToOff();return}this._desiredState="standby",await this.setCurrentState("goingToSleep"),this.cameraManager.pauseStream(),await this.setCurrentState("standby"),await this.setDesiredTorchState("off");}}async transitionFromStateStandbyToOff(){this.currentState==="off"||this.currentState==="stopping"||(this._desiredState="off",await this.setCurrentState("shuttingDown"),await this.cameraManager.stopStream(),await this.setCurrentState("off"),await this.setDesiredTorchState("off"));}async transitionFromStateStandbyToOn(){this.currentState==="on"||this.currentState==="starting"||this.currentState==="wakingUp"||(this._desiredState="on",await this.setCurrentState("wakingUp"),this.cameraManager.resumeStream(),await this.setCurrentState("on"));}async isAndroidWebView(){return this._isAndroidWebView==null&&(this._isAndroidWebView=await b$1.isAndroidWebView()),this._isAndroidWebView}isZoomAvailable(){var e;return ((e=this.cameraManager.mediaTrackCapabilities)==null?void 0:e.zoom)!=null}},d=s;export{d as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-YONR3EGV.js';import {a as a$1}from'./chunk-KXAJHLEO.js';import {a}from'./chunk-XR65N6EG.js';var p=class u{constructor(e){this.workerCommandId=1;this.workerTasks=new Map;this.workerListeners=[];var r;this.libraryLocation=e.libraryLocation,this.workerMessageListener=this.onWorkerMessage.bind(this),this.dataCaptureWorker.addEventListener("message",this.workerMessageListener),this.verifyResponseHash=e.verifyResponseHash,this.highEndBlurryRecognition=(r=e.highEndBlurryRecognition)!=null?r:false,this.simdSupport=e.simdSupport,this.threadsSupport=e.threadsSupport,typeof e.loadProgressNotifier=="function"&&this.addWorkerListener(t=>{var o;t.type==="loadLibraryProgress"&&((o=e.loadProgressNotifier)==null||o.call(e,t.payload));});}get dataCaptureWorker(){return (this._dataCaptureWorker)!=null||(this._dataCaptureWorker=(void 0)),this._dataCaptureWorker}get name(){return "CoreLoader"}get fixedWasmMemory(){return this.threadsSupport&&b.isFixedMemoryRequired()?300:null}static async create(e){var t;let r=new u(e);return await r.workerCommand("setLogLevel",{level:(t=e.logLevel)!=null?t:a.Level.Debug}),await r.load(),r}getIndexedDBTimeoutMs(){var t;let e=a$1.getInstanceFor("localStorage"),r=Number.parseInt((t=e.getItem("IndexedDBBlockedTimeoutMs"))!=null?t:"1500",10);return Number.isNaN(r)&&(r=1500),r}async load(){var e;try{await this.workerCommand("loadLibrary",{libraryLocation:this.libraryLocation,locationPath:window.location.pathname,referredOrigin:window.location.origin,writableDataPathOverride:(e=a$1.getInstanceFor("localStorage").getItem("scanditWritableDataPathOverride"))!=null?e:void 0,indexedDBTimeoutMs:this.getIndexedDBTimeoutMs(),verifyResponseHash:this.verifyResponseHash,fixedWasmMemory:this.fixedWasmMemory,simdSupport:this.simdSupport,threadsSupport:this.threadsSupport});}catch(r){if(r!=null&&typeof r=="object"&&typeof r.error=="string"&&r.error.includes("BlockedIndexedDB"))return await this.terminateDataCaptureWorker(false),this.dataCaptureWorker.addEventListener("message",this.workerMessageListener),a$1.getInstanceFor("localStorage").setItem("scanditWritableDataPathOverride",`/scandit_sync_folder_${[...crypto.getRandomValues(new Uint32Array(2))].map(o=>o.toString(32)).join("")}`),this.load();throw r}}async workerCommand(e,r,t){return new Promise((o,i)=>{let a=this.workerCommandId++;this.workerTasks.set(a,{resolve:o,reject:i,command:e});let l={...r,command:e,id:a};this.dataCaptureWorker.postMessage(l,t);})}async terminateDataCaptureWorker(e=true){var r,t;e&&await this.workerCommand("dispose",{}),(r=this._dataCaptureWorker)==null||r.removeEventListener("message",this.workerMessageListener),(t=this._dataCaptureWorker)==null||t.terminate(),this._dataCaptureWorker=void 0;}addWorkerListener(e){this.workerListeners.push(e);}removeWorkerListener(e){this.workerListeners.includes(e)&&this.workerListeners.splice(this.workerListeners.indexOf(e),1);}getOptions(){return {libraryLocation:this.libraryLocation,simdSupport:this.simdSupport,threadsSupport:this.threadsSupport,verifyResponseHash:this.verifyResponseHash}}onWorkerMessage(e){let r=e.data;if(r.type==="workerTaskId"&&typeof r.id=="number"){let{id:t,error:o,payload:i}=r,a=this.workerTasks.get(t);o==null?a==null||a.resolve(i):a==null||a.reject(r),this.workerTasks.delete(t);}else for(let t of this.workerListeners)t(r);}};export{p as a};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import {a as a$7}from'./chunk-O5D4KVS5.js';import {a as a$4}from'./chunk-ACFJP5SR.js';import {a as a$a,c as c$2,b as b$3}from'./chunk-L66S4DN2.js';import {a as a$i}from'./chunk-BA3RP6L2.js';import {a as a$8}from'./chunk-AIC4H5KG.js';import {a as a$g}from'./chunk-KSCFPJAW.js';import {a as a$d}from'./chunk-JS3T7K2Z.js';import {a as a$e}from'./chunk-W3X3ZRQZ.js';import {b as b$2}from'./chunk-6H6FKGVE.js';import {a as a$c}from'./chunk-N5YZEC56.js';import {a as a$6}from'./chunk-VJB527QZ.js';import {a as a$5}from'./chunk-GHTCNOQN.js';import {a as a$1}from'./chunk-LXOZUOZU.js';import {a as a$f}from'./chunk-FGO2SSRS.js';import {g as g$1,e as e$1}from'./chunk-E7IMQECS.js';import {a as a$9}from'./chunk-GPJEB376.js';import {b as b$1}from'./chunk-YONR3EGV.js';import {c as c$1,e}from'./chunk-SBC5K7IT.js';import {a as a$3}from'./chunk-XR65N6EG.js';import {f}from'./chunk-3D2HNEVH.js';import {a as a$h}from'./chunk-WUHKODFA.js';import {a as a$2}from'./chunk-7SW2PEHB.js';import {a as a$b}from'./chunk-QCZSSQAQ.js';import {c}from'./chunk-TR3NGINC.js';var Y=[{from:"unconfigured",to:"configuring"},{from:"configuring",to:"configured"},{from:"configuring",to:"unconfigured"},{from:"configured",to:"creating-context"},{from:"creating-context",to:"ready"},{from:"creating-context",to:"unconfigured"},{from:"ready",to:"unconfigured"},{from:"configured",to:"unconfigured"}];function v(f,e,t){let r=t.value;return t.value=function(...n){let i=g.stateMachine;return i.currentState==="ready"&&g.mainDataCaptureLoader!=null?r.apply(this,n):i.isInitializing||i.currentState==="configured"?i.waitForState("ready").then(()=>r.apply(this,n)):Promise.reject(new Error(`Please call DataCaptureContext.forLicenseKey() before calling ${String(e)}`))},t}function U(f){return f[a$i]!=null}function x(f){return "skipSerialization"in f||f[a$i]!=null}var $,G,q,a=class a{constructor(){this._asyncImageConverterInstance=void 0;this.framework="web";this.runtimeEnvironment={deviceOS:($=b$1.getUserAgentInfo().getOS().name)!=null?$:"",browser:(G=b$1.getUserAgentInfo().getBrowser().name)!=null?G:"",browserVersion:(q=b$1.getUserAgentInfo().getBrowser().version)!=null?q:"",get deviceModelName(){let{model:e,vendor:t}=b$1.getUserAgentInfo().getDevice();return (t==null||t==="")&&(t="Unknown"),(e==null||e==="")&&(e="Unknown"),[t,e].join(" ")}};this.settings=new a$2;this._frameSource=null;this._view=null;this.modes=new Set;this.components=[];this.listeners=[];this.updateListeners=new Set;this.cameraPropertiesReportListener=this.reportCameraProperties.bind(this);this.cameraAccessErrorListener=this.onCameraAccessError.bind(this);this.onWorkerMessageListener=this.onWorkerMessage.bind(this);this.onVisibilityChangeListener=this.onVisibilityChange.bind(this);this.batteryChangeListener=this.onBatteryChange.bind(this);this.pendingWorkerMessageListeners=new Set;this.delayedRegistration=false;this.highEndBlurryRecognition=false;this._frameHandlers=[];this._useSynchronousFrameFlow=false;}static get moduleLicenseTextProviders(){return [new b]}static get sharedInstance(){return a._sharedInstance==null&&(a._sharedInstance=new a),a._sharedInstance}static get currentState(){return a.stateMachine.currentState}static get isReady(){return a.stateMachine.currentState==="ready"}static get isInitializing(){return a.stateMachine.isInitializing}static addStateListener(e){a.stateMachine.addListener(e);}static removeStateListener(e){a.stateMachine.removeListener(e);}async initializeWithOptions(e){var t,r,n,i,s,o,u,c,l;a.deviceID===""&&(a.deviceID=await b$1.getDeviceId()),this.licenseKey=(r=(t=e.licenseKey)!=null?t:a.userLicenseKey)!=null?r:"",this.deviceName=(n=e.deviceName)!=null?n:"",this.dataCaptureInstance=(i=e.dataCaptureInstance)!=null?i:a.mainDataCaptureLoader,this.delayedRegistration=(s=e.delayedRegistration)!=null?s:false,e.settings!=null&&(this.settings=e.settings),this.highEndBlurryRecognition=(l=(c=(o=e.dataCaptureInstance)==null?void 0:o.highEndBlurryRecognition)!=null?c:(u=a.mainDataCaptureLoader)==null?void 0:u.highEndBlurryRecognition)!=null?l:false;for(let S of this.pendingWorkerMessageListeners)this.dataCaptureInstance.addWorkerListener(S);this.pendingWorkerMessageListeners.clear(),this.settings!=null&&await this.applySettings(this.settings),await this.createContext();}get frameSource(){return this._frameSource}get workerCommand(){if(this.dataCaptureInstance==null)throw new Error("Cannot call workerCommand before dataCaptureInstance is set");return this.dataCaptureInstance.workerCommand.bind(this.dataCaptureInstance)}static async forLicenseKey(e,t){return a$3.debug(`forLicenseKey called, current state: ${a.stateMachine.currentState}`),a.stateMachine.currentState==="ready"?(a$3.debug("DataCaptureContext is already ready, returning existing instance"),a.sharedInstance):a.stateMachine.isInitializing?(a$3.debug("DataCaptureContext is already initializing, waiting for completion"),await a.stateMachine.waitForState("ready"),a.sharedInstance):(a.stateMachine.currentState==="unconfigured"&&(a$3.debug("Starting initialization from unconfigured state"),await a.stateMachine.executeAsyncTransition({targetState:"configuring",action:async()=>{await a.internalConfigure(e,t);},onSuccess:"configured",onError:"unconfigured"}),await a.stateMachine.executeAsyncTransition({targetState:"creating-context",action:async()=>{await a.sharedInstance.initializeWithOptions({licenseKey:e,deviceName:t.deviceName,settings:t.settings});},onSuccess:"ready",onError:"unconfigured"})),a.sharedInstance)}static async internalConfigure(e$1,t){var S;a$4(),a$5.getInstance().updateIfMissing(a$6);let{forceAllPolyfills:r,overrideThreadsSupport:n,overrideSimdSupport:i}=a.getOverridesFromQueryString(),[s,o,u]=await Promise.all([a$7({forceAllPolyfills:r}),c$1(),e()]);n!=="auto"&&(a$3.warn(`Threads support override: was ${u} is now ${n==="on"}`),u=n==="on"),i!=="auto"&&(a$3.warn(`SIMD support override: was ${o} is now ${i==="on"}`),o=i==="on"),a.capabilityInfo={simdSupport:o,threadsSupport:u},a$3.debug(`Capability info detected - SIMD: ${o}, Threads: ${u}`),await a.validateOptions({...t,licenseKey:e$1});let c={licenseKey:e$1,libraryLocation:a$8(t.libraryLocation),moduleLoaders:t.moduleLoaders,logLevel:(S=t.logLevel)!=null?S:a$3.Level.Debug,verifyResponseHash:true,loadProgressNotifier:b$2.notify.bind(b$2),simdSupport:o,threadsSupport:u};a$3.setLevel(c.logLevel),a.userLicenseKey=c.licenseKey,a.libraryLocation=c.libraryLocation,b$2.subscribe(a.updateViewsWithProgress);let l=b$1.checkBrowserCompatibility();if(!l.fullSupport&&!l.scannerSupport)throw new a$9(l);b$1.isSupportedIOSVersion()||a$3.warn(`Warning: Minimum supported iOS version is 14.6.
|
|
2
|
+
Please check the minimum system requirements here:
|
|
3
|
+
https://docs.scandit.com/system-requirements#browser-compatibility`),a.dataCaptureLoaders=await a.loadModules(c.moduleLoaders,c),a.mainDataCaptureLoader=[...a.dataCaptureLoaders.entries()][0][1],b$2.unsubscribe(a.updateViewsWithProgress);}static async forLicenseKeyInElectronPath(e,t){if(!a$a())throw new a$b({name:"MisconfigurationError",message:"forLicenseKeyInElectronPath can only be used in Electron applications"});let r=await c$2({licenseDataPath:e});if(r==null)throw new a$b({name:"NoLicenseKeyError",message:`Cannot retrieve license key for Electron app at ${e}`});return a.forLicenseKey(r.licenseKey,{...t})}static updateViewsWithProgress({percentage:e}){for(let t of a$c.values())t.setProgressBarPercentage(e);}static getOverridesFromQueryString(){var s,o,u;function e(c){return ["auto","off","on"].includes(c)}let t=new URLSearchParams(window.location.search),[r="auto",n="auto",i=false]=[(s=t.get("pthreads"))==null?void 0:s.toLowerCase(),(o=t.get("simd"))==null?void 0:o.toLowerCase(),((u=t.get("forceAllPolyfills"))==null?void 0:u.toLowerCase())==="true"];return {overrideThreadsSupport:e(r)?r:"auto",overrideSimdSupport:e(n)?n:"auto",forceAllPolyfills:i}}static async validateOptions(e){if(e.licenseKey==null||e.licenseKey.trim().length<64)throw new a$b({name:"NoLicenseKeyError",message:"No license key provided"});if(typeof e.libraryLocation!="string")throw new a$b({name:"MisconfigurationError",message:'Option "libraryLocation" was not provided'});if(!Array.isArray(e.moduleLoaders)||e.moduleLoaders.length===0)throw new a$b({name:"MisconfigurationError",message:'Option "moduleLoaders" is missing or empty'});let t=e.moduleLoaders.map(r=>r.moduleName);if(!["BarcodeCapture","IdCapture","LabelCapture"].includes(t[0]))throw new a$b({name:"MisconfigurationError",message:'Main modules must be loaded before side modules. For example "BarcodeCapture" must be loaded before "Parser".'})}static async loadModules(e,t){let r=new Map,n=new Map;for(let i of e)n.set(i.moduleName,i.load(t));await Promise.all(n.values());for(let[i,s]of n)r.set(i,await s);return r}static async getOpenSourceSoftwareLicenseInfo(){let e=[];for(let r of a.moduleLicenseTextProviders){let n=await r.getLicenseText();e.push(n);}let t=e.join(`
|
|
4
|
+
|
|
5
|
+
`);return new a$d(t)}async setFrameSource(e){let t=e!==this._frameSource;if(this._frameSource!==null&&(this._frameSource.context=null),this._frameSource=e!=null?e:null,e&&(e.context=this,await this.workerCommand("setFrameSource",{mirrorAxis:this.getMirrorAxisForFrameSource(e),isCameraFrameSource:f(e)})),await this.update([{type:"frameSourceState",newValue:this.frameSource}]),t)for(let r of this.listeners)r.didChangeFrameSource&&r.didChangeFrameSource(this,this._frameSource);}addListener(e){this.listeners.includes(e)||this.listeners.push(e);}async flushAnalytics(){await this.workerCommand("flushAnalytics",{});}removeListener(e){this.listeners.includes(e)&&this.listeners.splice(this.listeners.indexOf(e),1);}async addMode(e){this.modes.add(e),await e.attachedToContext(this),this.updateCameraFrameFlow(),await this.update([],{updateContext:!x(e)});}async removeMode(e){this.modes.delete(e),await e.detachedFromContext(),this.updateCameraFrameFlow(),await this.update([],{updateContext:!x(e)});}async setMode(e){this.modes.has(e)||(this.modes.clear(),this.modes.add(e),await e.attachedToContext(this),this.updateCameraFrameFlow(),await this.update());}async removeCurrentMode(){for(let e of this.modes)await e.detachedFromContext();this.modes.clear(),await this.update();}async removeAllModes(){let e=Array.from(this.modes);for(let t of e)await this.removeMode(t);}async dispose(){if(a.stateMachine.currentState!=="unconfigured")try{await a.stateMachine.executeAsyncTransition({targetState:"unconfigured",action:async()=>{g$1.instance().removeListener("cameraProperties",this.cameraPropertiesReportListener),g$1.instance().removeListener("cameraAccessError",this.cameraAccessErrorListener),this.unsubscribeToVisibilityChange(this.onVisibilityChangeListener);for(let e of this.modes)await e.detachedFromContext();this._view&&(await this._view.setContext(null),this._view=null),this.dataCaptureInstance&&(await this.dataCaptureInstance.terminateDataCaptureWorker(true).catch(()=>{}),this.dataCaptureInstance=void 0),this.webBatteryInterface&&(this.webBatteryInterface.dispose(),this.webBatteryInterface=void 0),a.deviceID="";},onSuccess:"unconfigured",onError:"unconfigured"});}catch(e){if(a.stateMachine.currentState==="unconfigured")return;throw e}finally{this.modes.clear(),this.listeners=[],this.components.length=0,this.updateListeners.clear(),this.pendingWorkerMessageListeners.clear(),this.delayedRegistration=false,this.highEndBlurryRecognition=false,this._frameHandlers.length=0,this.frameSource&&(this.frameSource.context=null,this._frameSource=null),this.licenseKey="",this.deviceName="";}}async applySettings(e){this.settings=e,await this.update();}toJSONObject(){var e,t;return {licenseKey:this.licenseKey,framework:this.framework,deviceName:this.deviceName,...this.runtimeEnvironment,modes:[...this.modes].filter(r=>!x(r)).map(r=>r.toJSONObject()),components:this.components.map(r=>r.toJSONObject()),frameSource:this.frameSource?this.frameSource.toJSONObject():null,settings:this.settings.toJSONObject(),view:(t=(e=this._view)==null?void 0:e.toJSONObject())!=null?t:null}}getView(){return this._view}async setView(e){return this._view=e,this.update([{type:"viewSet",newValue:e}])}async getAppName(){let e=null;if(a$a()){let t=await b$3();if((t==null?void 0:t.appName)==null||t.appName==="")throw new Error("Cannot retrieve electron appName. Did you set it up in package.json? https://www.electronjs.org/docs/latest/api/app#appgetname");e=t.appName;}return e}urlToHostname(e){try{return new URL(e!=null?e:"").hostname}catch{return ""}}getParentDomain(){var t;let e="";return parent!==window&&(e||(e=this.urlToHostname((t=location.ancestorOrigins)==null?void 0:t[0])),e||(e=this.urlToHostname(document.referrer)),e||(e="")),e.startsWith("[")&&e.endsWith("]")&&(e=e.slice(1,-1)),e}async createContext(){this.webBatteryInterface=await a$e.create();let e=this.webBatteryInterface.getBatteryInfo();await this.workerCommand("createContext",{context:this.toJSONObject(),deviceId:a.deviceID,delayedRegistration:this.delayedRegistration,highEndBlurryRecognition:this.highEndBlurryRecognition,appName:await this.getAppName(),parentDomain:this.getParentDomain(),isTablet:b$1.isTablet(),batteryInfo:e}),this.webBatteryInterface.addBatteryChangeListener(this.batteryChangeListener),this.subscribeToWorkerMessages(this.onWorkerMessageListener),this.subscribeToCameraManagerEvents(),this.subscribeToVisibilityChange(this.onVisibilityChangeListener),this._view!=null&&await this.setView(this._view),this.frameSource!=null&&await this.setFrameSource(this.frameSource);}subscribeToVisibilityChange(e){document.addEventListener("visibilitychange",e);}unsubscribeToVisibilityChange(e){document.removeEventListener("visibilitychange",e);}async requestFrameData(e){return this.workerCommand("requestFrameData",{frameId:e})}performanceMark(e){a$f(globalThis.performance)&&typeof globalThis.performance.mark=="function"&&performance.mark(e);}async sendFrameToProcessor(e){var n,i;let t=e instanceof ImageData?{data:e.data,width:e.width,height:e.height,frameId:(n=e.frameId)!=null?n:e$1(),colorType:(i=e.colorType)!=null?i:"RGBA"}:e,r=await this.sendFrameToHandlers(t);return t.data=r.capture.data,r.skip?r.capture:(this.performanceMark("processFrameBeforeSDC"),this.sendFrameToSDC(t))}async sendFrameToHandlers(e){for(let t of this._frameHandlers)if((await t(e)).action==="skip")return {skip:true,capture:e};return {skip:false,capture:e}}async sendFrameToSDC(e){return this.workerCommand("processFrame",e,[e.data.buffer])}registerFrameHandler(e){this._frameHandlers.includes(e)||this._frameHandlers.push(e);}unregisterFrameHandler(e){this._frameHandlers.includes(e)&&this._frameHandlers.splice(this._frameHandlers.indexOf(e),1);}onBatteryChange(e){this.workerCommand("updateBatteryInfo",{batteryInfo:e});}onVisibilityChange(){this.workerCommand("documentVisibility",{state:document.visibilityState});}getImageConverterInstance(e){return this._asyncImageConverterInstance==null&&(this._asyncImageConverterInstance=new a$g(e)),this._asyncImageConverterInstance}onWorkerMessage(e){if(e.type==="contextDidChangeStatus"){e.payload.isValid||a$3.error(e.payload);for(let t of this.listeners)t.didChangeStatus&&t.didChangeStatus(this,a$h.fromJSON(e.payload));}if(e.type==="didStartObservingContext")for(let t of this.listeners)t.didStartObservingContext&&t.didStartObservingContext(this);e.type==="onFrameProcessingFinished"&&this.performanceMark("processFrameAfterSDC"),e.type==="convertToJPEG"&&this.convertImageToJPEG(e);}async convertImageToJPEG(e){let{imageId:t,width:r,height:n,data:i,planes:s,orientation:o,quality:u}=e,c={getWidth:()=>r,getHeight:()=>n,getPlanes:()=>s,toBitmap:()=>i,getBitmapRepresentationFromYUV:()=>{throw new Error("Not implemented")},deepCopy:()=>{throw new Error("Not implemented")}},l=await this.getImageConverterInstance({quality:u}).convertToJpeg(c,o);return this.workerCommand("convertToJPEGResult",{imageId:t,result:l})}subscribeToCameraManagerEvents(){g$1.instance().addListener("cameraProperties",this.cameraPropertiesReportListener),g$1.instance().addListener("cameraAccessError",this.cameraAccessErrorListener);}async reportCameraProperties(e){return this.workerCommand("reportCameraProperties",e)}onCameraAccessError(e){for(let t of this.listeners)t.didChangeStatus&&t.didChangeStatus(this,a$h.fromJSON({code:33794,isValid:true,message:typeof(e==null?void 0:e.toString)=="function"?e.toString():"Unknown error"}));}async update(e=[],{updateContext:t=true}={}){var r,n;t&&await this.updateContext();for(let i of e){switch(i.type){case "frameSourceState":{await((r=this._view)==null?void 0:r.onFrameSourceChange(this.frameSource));break}case "singleImageModeUploaderSettings":{(n=this._view)==null||n.onSingleImageUploaderSettingsChange(i.newValue);break}case "addOverlay":{await this.addNativeOverlay(i.newValue);break}case "removeOverlay":{await this.removeNativeOverlay(i.newValue);break}}for(let s of this.updateListeners){let o=s(i);o instanceof Promise&&await o;}}}async updateContext(){await this.workerCommand("updateContext",{context:this.toJSONObject(),...this.getViewInfo()}).catch(e=>a$3.warn("Error while updating context:",e,this.toJSONObject()));}getViewInfo(){return this._view!=null?{view:{width:this._view.width,height:this._view.height,visible:this._view.width>0&&this._view.height>0,orientation:this._view.orientation}}:{view:null}}getMirrorAxisForFrameSource(e){let t="None";return f(e)&&e.getMirrorImageEnabled()&&(t="Y"),t}async addComponent(e){if(!this.components.includes(e))return this.components.push(e),e._context=this,this.update()}async addNativeOverlay(e){if(U(e))return this.workerCommand("addNativeOverlay",{overlayHandle:e[a$i]})}async removeNativeOverlay(e){if(U(e))return this.workerCommand("removeNativeOverlay",{overlayHandle:e[a$i]})}subscribeToWorkerMessages(e){this.dataCaptureInstance?this.dataCaptureInstance.addWorkerListener(e):this.pendingWorkerMessageListeners.add(e);}unsubscribeToWorkerMessages(e){this.dataCaptureInstance&&this.dataCaptureInstance.removeWorkerListener(e),this.pendingWorkerMessageListeners.delete(e);}hasEnabledMode(){return [...this.modes].some(e=>e.isEnabled())}updateCameraFrameFlow(){let e=[...this.modes].some(t=>t._synchronousFrameFlow===true);g$1.instance().setFrameHandling(e);}async isFeatureSupported(e){return (await this.workerCommand("isFeatureSupported",{feature:e})).supported}};a.deviceID="",a.stateMachine=new a$1("unconfigured",Y),a.mainDataCaptureLoader=void 0,a.dataCaptureLoaders=new Map,a.libraryLocation=void 0,a.userLicenseKey=null,a.capabilityInfo=void 0,c([v],a.prototype,"setFrameSource",1),c([v],a.prototype,"addMode",1),c([v],a.prototype,"removeMode",1),c([v],a.prototype,"setMode",1),c([v],a.prototype,"removeCurrentMode",1),c([v],a.prototype,"isFeatureSupported",1);var g=a;var b=class{constructor(e=g,t=a$3,r=globalThis.fetch.bind(globalThis)){this.staticContext=g;this.staticContext=e,this.logger=t,this.fetch=r;}get workerCommand(){var e;return (e=this.staticContext.mainDataCaptureLoader)==null?void 0:e.workerCommand.bind(this.staticContext.mainDataCaptureLoader)}async getLicenseText(){var i,s;let e=this.staticContext.stateMachine.currentState;if(e==="unconfigured"||e==="configuring")return this.logger.warn('You must call "DataCaptureContext.forLicenseKey" before retrieving open source license text info.'),"";let t=new URL(`${((i=this.staticContext.libraryLocation)!=null?i:"").replace(/\/$/,"")}/license/web-core-license.txt`),[r,n]=await Promise.all([(s=this.workerCommand)==null?void 0:s.call(this,"getOpenSourceSoftwareLicenseInfo",{}),this.fetchWebLicenseText(t.toString())]);return [r==null?void 0:r.licenseText,n].filter(o=>o!=null).join(`
|
|
6
|
+
`)}async fetchWebLicenseText(e){return this.fetch(e,{mode:"cors",credentials:"include",headers:{"Content-Type":"text/plain"}}).then(async t=>{if(!t.ok)throw new Error(`${t.status} ${t.statusText}`);return t.text()}).catch(t=>(this.logger.warn(`Failed to fetch license from ${e}: ${t.toString()}`),null))}};export{b as a,g as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a as a$2}from'./chunk-KXAJHLEO.js';import {a as a$3}from'./chunk-AAEQZ45T.js';import {c,d,b as b$1,a as a$1,e}from'./chunk-SBC5K7IT.js';import {a,b}from'./chunk-TR3NGINC.js';var Ae=a((Q,we)=>{(function(O,w){var ee="1.0.40",I="",_="?",D="function",M="undefined",ie="object",K="string",oe="major",i="model",t="name",e="type",o="vendor",n="version",A="architecture",V="console",b="mobile",u="tablet",k="smarttv",E="wearable",te="embedded",ne=500,Y="Amazon",L="Apple",re="ASUS",ae="BlackBerry",X="Browser",$="Chrome",de="Edge",Z="Firefox",q="Google",se="Huawei",le="LG",W="Microsoft",a="Motorola",s="Opera",r="Samsung",p="Sharp",g="Sony",h="Xiaomi",x="Zebra",y="Facebook",P="Chromium OS",be="Mac OS",N=" Browser",z=function(d,f){var c={};for(var v in d)f[v]&&f[v].length%2===0?c[v]=f[v].concat(d[v]):c[v]=d[v];return c},F=function(d){for(var f={},c=0;c<d.length;c++)f[d[c].toUpperCase()]=d[c];return f},J=function(d,f){return typeof d===K?R(f).indexOf(R(d))!==-1:false},R=function(d){return d.toLowerCase()},G=function(d){return typeof d===K?d.replace(/[^\d\.]/g,I).split(".")[0]:w},j=function(d,f){if(typeof d===K)return d=d.replace(/^\s\s*/,I),typeof f===M?d:d.substring(0,ne)},B=function(d,f){for(var c=0,v,U,C,m,l,T;c<f.length&&!l;){var pe=f[c],ge=f[c+1];for(v=U=0;v<pe.length&&!l&&pe[v];)if(l=pe[v++].exec(d),l)for(C=0;C<ge.length;C++)T=l[++U],m=ge[C],typeof m===ie&&m.length>0?m.length===2?typeof m[1]==D?this[m[0]]=m[1].call(this,T):this[m[0]]=m[1]:m.length===3?typeof m[1]===D&&!(m[1].exec&&m[1].test)?this[m[0]]=T?m[1].call(this,T,m[2]):w:this[m[0]]=T?T.replace(m[1],m[2]):w:m.length===4&&(this[m[0]]=T?m[3].call(this,T.replace(m[1],m[2])):w):this[m]=T||w;c+=2;}},ce=function(d,f){for(var c in f)if(typeof f[c]===ie&&f[c].length>0){for(var v=0;v<f[c].length;v++)if(J(f[c][v],d))return c===_?w:c}else if(J(f[c],d))return c===_?w:c;return f.hasOwnProperty("*")?f["*"]:d},Te={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},fe={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},me={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[n,[t,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[n,[t,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[t,n],[/opios[\/ ]+([\w\.]+)/i],[n,[t,s+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[n,[t,s+" GX"]],[/\bopr\/([\w\.]+)/i],[n,[t,s]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[n,[t,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[n,[t,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[t,n],[/quark(?:pc)?\/([-\w\.]+)/i],[n,[t,"Quark"]],[/\bddg\/([\w\.]+)/i],[n,[t,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[n,[t,"UC"+X]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[n,[t,"WeChat"]],[/konqueror\/([\w\.]+)/i],[n,[t,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[n,[t,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[n,[t,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[n,[t,"Smart Lenovo "+X]],[/(avast|avg)\/([\w\.]+)/i],[[t,/(.+)/,"$1 Secure "+X],n],[/\bfocus\/([\w\.]+)/i],[n,[t,Z+" Focus"]],[/\bopt\/([\w\.]+)/i],[n,[t,s+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[n,[t,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[n,[t,"Dolphin"]],[/coast\/([\w\.]+)/i],[n,[t,s+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[n,[t,"MIUI"+N]],[/fxios\/([\w\.-]+)/i],[n,[t,Z]],[/\bqihoobrowser\/?([\w\.]*)/i],[n,[t,"360"]],[/\b(qq)\/([\w\.]+)/i],[[t,/(.+)/,"$1Browser"],n],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[t,/(.+)/,"$1"+N],n],[/samsungbrowser\/([\w\.]+)/i],[n,[t,r+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[n,[t,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[t,"Sogou Mobile"],n],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[t,n],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[t],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[n,t],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[t,y],n],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[t,n],[/\bgsa\/([\w\.]+) .*safari\//i],[n,[t,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[n,[t,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[n,[t,$+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[t,$+" WebView"],n],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[n,[t,"Android "+X]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[t,n],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[n,[t,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[n,t],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[t,[n,ce,Te]],[/(webkit|khtml)\/([\w\.]+)/i],[t,n],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[t,"Netscape"],n],[/(wolvic|librewolf)\/([\w\.]+)/i],[t,n],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[n,[t,Z+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[t,[n,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[t,[n,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[A,"amd64"]],[/(ia32(?=;))/i],[[A,R]],[/((?:i[346]|x)86)[;\)]/i],[[A,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[A,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[A,"armhf"]],[/windows (ce|mobile); ppc;/i],[[A,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[A,/ower/,I,R]],[/(sun4\w)[;\)]/i],[[A,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[A,R]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[i,[o,r],[e,u]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[i,[o,r],[e,b]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[i,[o,L],[e,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[i,[o,L],[e,u]],[/(macintosh);/i],[i,[o,L]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[i,[o,p],[e,b]],[/(?:honor)([-\w ]+)[;\)]/i],[i,[o,"Honor"],[e,b]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[i,[o,se],[e,u]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[i,[o,se],[e,b]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[i,/_/g," "],[o,h],[e,b]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[i,/_/g," "],[o,h],[e,u]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[i,[o,"OPPO"],[e,b]],[/\b(opd2\d{3}a?) bui/i],[i,[o,"OPPO"],[e,u]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[i,[o,"Vivo"],[e,b]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[i,[o,"Realme"],[e,b]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[i,[o,a],[e,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[i,[o,a],[e,u]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[i,[o,le],[e,u]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[i,[o,le],[e,b]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[i,[o,"Lenovo"],[e,u]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[i,/_/g," "],[o,"Nokia"],[e,b]],[/(pixel c)\b/i],[i,[o,q],[e,u]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[i,[o,q],[e,b]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[i,[o,g],[e,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[i,"Xperia Tablet"],[o,g],[e,u]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[i,[o,"OnePlus"],[e,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[i,[o,Y],[e,u]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[i,/(.+)/g,"Fire Phone $1"],[o,Y],[e,b]],[/(playbook);[-\w\),; ]+(rim)/i],[i,o,[e,u]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[i,[o,ae],[e,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[i,[o,re],[e,u]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[i,[o,re],[e,b]],[/(nexus 9)/i],[i,[o,"HTC"],[e,u]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[o,[i,/_/g," "],[e,b]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[i,[o,"TCL"],[e,u]],[/(itel) ((\w+))/i],[[o,R],i,[e,ce,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[i,[o,"Acer"],[e,u]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[i,[o,"Meizu"],[e,b]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[i,[o,"Ulefone"],[e,b]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[i,[o,"Energizer"],[e,b]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[i,[o,"Cat"],[e,b]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[i,[o,"Smartfren"],[e,b]],[/droid.+; (a(?:015|06[35]|142p?))/i],[i,[o,"Nothing"],[e,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[o,i,[e,b]],[/(imo) (tab \w+)/i,/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[o,i,[e,u]],[/(surface duo)/i],[i,[o,W],[e,u]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[i,[o,"Fairphone"],[e,b]],[/(u304aa)/i],[i,[o,"AT&T"],[e,b]],[/\bsie-(\w*)/i],[i,[o,"Siemens"],[e,b]],[/\b(rct\w+) b/i],[i,[o,"RCA"],[e,u]],[/\b(venue[\d ]{2,7}) b/i],[i,[o,"Dell"],[e,u]],[/\b(q(?:mv|ta)\w+) b/i],[i,[o,"Verizon"],[e,u]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[i,[o,"Barnes & Noble"],[e,u]],[/\b(tm\d{3}\w+) b/i],[i,[o,"NuVision"],[e,u]],[/\b(k88) b/i],[i,[o,"ZTE"],[e,u]],[/\b(nx\d{3}j) b/i],[i,[o,"ZTE"],[e,b]],[/\b(gen\d{3}) b.+49h/i],[i,[o,"Swiss"],[e,b]],[/\b(zur\d{3}) b/i],[i,[o,"Swiss"],[e,u]],[/\b((zeki)?tb.*\b) b/i],[i,[o,"Zeki"],[e,u]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[o,"Dragon Touch"],i,[e,u]],[/\b(ns-?\w{0,9}) b/i],[i,[o,"Insignia"],[e,u]],[/\b((nxa|next)-?\w{0,9}) b/i],[i,[o,"NextBook"],[e,u]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[o,"Voice"],i,[e,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[o,"LvTel"],i,[e,b]],[/\b(ph-1) /i],[i,[o,"Essential"],[e,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[i,[o,"Envizen"],[e,u]],[/\b(trio[-\w\. ]+) b/i],[i,[o,"MachSpeed"],[e,u]],[/\btu_(1491) b/i],[i,[o,"Rotor"],[e,u]],[/(shield[\w ]+) b/i],[i,[o,"Nvidia"],[e,u]],[/(sprint) (\w+)/i],[o,i,[e,b]],[/(kin\.[onetw]{3})/i],[[i,/\./g," "],[o,W],[e,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[i,[o,x],[e,u]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[i,[o,x],[e,b]],[/smart-tv.+(samsung)/i],[o,[e,k]],[/hbbtv.+maple;(\d+)/i],[[i,/^/,"SmartTV"],[o,r],[e,k]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[o,le],[e,k]],[/(apple) ?tv/i],[o,[i,L+" TV"],[e,k]],[/crkey/i],[[i,$+"cast"],[o,q],[e,k]],[/droid.+aft(\w+)( bui|\))/i],[i,[o,Y],[e,k]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[i,[o,p],[e,k]],[/(bravia[\w ]+)( bui|\))/i],[i,[o,g],[e,k]],[/(mitv-\w{5}) bui/i],[i,[o,h],[e,k]],[/Hbbtv.*(technisat) (.*);/i],[o,i,[e,k]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[o,j],[i,j],[e,k]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[e,k]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[o,i,[e,V]],[/droid.+; (shield) bui/i],[i,[o,"Nvidia"],[e,V]],[/(playstation [345portablevi]+)/i],[i,[o,g],[e,V]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[i,[o,W],[e,V]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[i,[o,r],[e,E]],[/((pebble))app/i],[o,i,[e,E]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[i,[o,L],[e,E]],[/droid.+; (glass) \d/i],[i,[o,q],[e,E]],[/droid.+; (wt63?0{2,3})\)/i],[i,[o,x],[e,E]],[/droid.+; (glass) \d/i],[i,[o,q],[e,E]],[/(pico) (4|neo3(?: link|pro)?)/i],[o,i,[e,E]],[/; (quest( \d| pro)?)/i],[i,[o,y],[e,E]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[o,[e,te]],[/(aeobc)\b/i],[i,[o,Y],[e,te]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[i,[e,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[i,[e,u]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[e,u]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[e,b]],[/(android[-\w\. ]{0,9});.+buil/i],[i,[o,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[n,[t,de+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[t,n],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[n,[t,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[t,n],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[n,t]],os:[[/microsoft (windows) (vista|xp)/i],[t,n],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[t,[n,ce,fe]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[n,ce,fe],[t,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[n,/_/g,"."],[t,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[t,be],[n,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[n,t],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[t,n],[/\(bb(10);/i],[n,[t,ae]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[n,[t,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[n,[t,Z+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[n,[t,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[n,[t,"watchOS"]],[/crkey\/([\d\.]+)/i],[n,[t,$+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[t,P],n],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[t,n],[/(sunos) ?([\w\.\d]*)/i],[[t,"Solaris"],n],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[t,n]]},S=function(d,f){if(typeof d===ie&&(f=d,d=w),!(this instanceof S))return new S(d,f).getResult();var c=typeof O!==M&&O.navigator?O.navigator:w,v=d||(c&&c.userAgent?c.userAgent:I),U=c&&c.userAgentData?c.userAgentData:w,C=f?z(me,f):me,m=c&&c.userAgent==v;return this.getBrowser=function(){var l={};return l[t]=w,l[n]=w,B.call(l,v,C.browser),l[oe]=G(l[n]),m&&c&&c.brave&&typeof c.brave.isBrave==D&&(l[t]="Brave"),l},this.getCPU=function(){var l={};return l[A]=w,B.call(l,v,C.cpu),l},this.getDevice=function(){var l={};return l[o]=w,l[i]=w,l[e]=w,B.call(l,v,C.device),m&&!l[e]&&U&&U.mobile&&(l[e]=b),m&&l[i]=="Macintosh"&&c&&typeof c.standalone!==M&&c.maxTouchPoints&&c.maxTouchPoints>2&&(l[i]="iPad",l[e]=u),l},this.getEngine=function(){var l={};return l[t]=w,l[n]=w,B.call(l,v,C.engine),l},this.getOS=function(){var l={};return l[t]=w,l[n]=w,B.call(l,v,C.os),m&&!l[t]&&U&&U.platform&&U.platform!="Unknown"&&(l[t]=U.platform.replace(/chrome os/i,P).replace(/macos/i,be)),l},this.getResult=function(){return {ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return v},this.setUA=function(l){return v=typeof l===K&&l.length>ne?j(l,ne):l,this},this.setUA(v),this};S.VERSION=ee,S.BROWSER=F([t,n,oe]),S.CPU=F([A]),S.DEVICE=F([i,o,e,V,b,k,u,E,te]),S.ENGINE=S.OS=F([t,n]),typeof Q!==M?(typeof we!==M&&we.exports&&(Q=we.exports=S),Q.UAParser=S):typeof define===D&&define.amd?define(function(){return S}):typeof O!==M&&(O.UAParser=S);var H=typeof O!==M&&(O.jQuery||O.Zepto);if(H&&!H.ua){var ue=new S;H.ua=ue.getResult(),H.ua.get=function(){return ue.getUA()},H.ua.set=function(d){ue.setUA(d);var f=ue.getResult();for(var c in f)H.ua[c]=f[c];};}})(typeof window=="object"?window:Q);});var Ce=b(Ae(),1);var Re=(_=>(_.Standalone="standalone",_.Fullscreen="fullscreen",_.MinimalUI="minimal-ui",_.Browser="browser",_))(Re||{}),Ee;(W=>{let O;function w(){return O==null&&(O=new Ce.default(navigator.userAgent)),O}W.getUserAgentInfo=w;function ee(){var r;if("orientation"in window)return false;let a="(any-pointer: coarse)",s=(r=window.matchMedia)==null?void 0:r.call(window,a);return navigator.maxTouchPoints===0||(s==null?void 0:s.media)===a&&!(s!=null&&s.matches)}W.isDesktopDevice=ee;function I(){return w().getDevice().model==="iPhone"}W.isIPhone=I;function _(){var h,x,y,P;let a=w(),s=(x=(h=a.getOS().name)==null?void 0:h.toLowerCase())!=null?x:"",r=a.getDevice(),p=(P=(y=r.model)==null?void 0:y.toLowerCase())!=null?P:"",g=r.type;return s.includes("ios")&&(g==="tablet"||p.includes("ipad"))}W.isIPad=_;function D(){var g,h,x,y;let a=(h=(g=w().getOS().name)==null?void 0:g.toLowerCase())!=null?h:"",s=w().getDevice(),r=s.type,p=(y=(x=s.model)==null?void 0:x.toLowerCase())!=null?y:"";return a.includes("mac")&&(r==="laptop"||p.includes("macintosh"))}W.isMacBook=D;function M(){return I()||_()||D()}W.isAppleDevice=M;function ie(){let a=w().getOS();return a.name==="iOS"&&a.version!=null&&a.version.localeCompare("16.3",void 0,{numeric:true})>=0}W.isIOSDeviceWithExtendedCameraAccess=ie;function K(){return "document"in window?window.document.createElement("canvas"):null}W.getCanvas=K;function oe(a){return a.name==="iOS"&&a.version!=null&&["11.2.2","11.2.5","11.2.6"].includes(a.version)}async function i(){return c()}W.hasSIMDSupport=i;async function t(){return d()}W.hasThreadsSupport=t;function e$1(a,s,r){let p=a[s[0]];return p==null?false:s.length===1?typeof p===r:(typeof p=="function"||typeof p=="object")&&e$1(p,s.slice(1),r)}function o(){var h;let a=true,s=null,r=null,p=null,g=null;try{if(s=W.getCanvas(),r=W.getCanvas(),p=s==null?void 0:s.getContext("webgl"),g=r==null?void 0:r.getContext("experimental-webgl"),!e$1(window,["WebGLRenderingContext"],"function")||p==null&&g==null)throw new Error("WebGLRenderingContext is not supported")}catch{a=false;}finally{for(let x of [p,g])typeof(x==null?void 0:x.getExtension)=="function"&&((h=x.getExtension("WEBGL_lose_context"))==null||h.loseContext());p=null,g=null,s=null,r=null;}return a}function n(){let a=true,s=true,r=new Set;location.protocol.startsWith("http")||r.add("httpProtocol"),e$1(window,["isSecureContext"],"boolean")&&!window.isSecureContext&&r.add("secureContext"),!e$1(navigator,["mediaDevices","getUserMedia"],"function")&&!e$1(navigator,["enumerateDevices"],"function")&&!e$1(window,["MediaStreamTrack","getSources"],"function")&&(r.add("mediaDevices"),a=false),e$1(window,["Worker"],"function")||(r.add("webWorkers"),a=false,s=false),e$1(window,["WebAssembly"],"object")||(r.add("webAssembly"),a=false,s=false),e$1(window,["Blob"],"function")||(r.add("blob"),a=false,s=false),e$1(window,["URL","createObjectURL"],"function")||(r.add("urlObject"),a=false,s=false),e$1(window,["OffscreenCanvas"],"function")||r.add("offscreenCanvas"),o()||r.add("webGL");let p=w().getOS();return oe(p)&&(r.add("webAssemblyErrorFree"),a=false,s=false),b$1()||r.add("sharedArrayBuffer"),a$1()||r.add("crossOriginIsolated"),de()||r.add("animationApi"),{fullSupport:a,scannerSupport:s,missingFeatures:[...r]}}W.checkBrowserCompatibility=n;async function A(){return e()}W.checkMultithreadingSupport=A;async function V(){let a="scandit-device-id",s=a$2.getInstanceFor("localStorage"),r=s.getItem(a);if(r!=null&&r!=="")return r;let g=await a$3().get(a);if(r=g==null?void 0:g.value,r!=null&&r!=="")return s.setItem(a,r),r;let h=new Uint8Array(20);return crypto.getRandomValues(h),r=[...h].map(x=>{let y=x.toString(16);return y.length===1?`0${y}`:y}).join(""),s.setItem(a,r),r}W.getDeviceId=V;function b(a){return a instanceof HTMLElement||a!=null&&typeof a=="object"&&typeof a.tagName=="string"}W.isValidHTMLElement=b;function u(){var p,g;let a=w().getOS();if(a.name!=="iOS")return true;let[s,r]=(g=(p=a.version)==null?void 0:p.split(".").map(Number))!=null?g:[];return s>14||s===14&&r>=6}W.isSupportedIOSVersion=u;function k(){var a,s;return (s=(a=w().getBrowser().name)==null?void 0:a.toLowerCase().includes("safari"))!=null?s:false}W.isSafari=k;function E(){var s,r;return /iphone|ipod|ipad/.test((r=(s=w().getDevice().model)==null?void 0:s.toLowerCase())!=null?r:"")&&!k()}W.isIosWebView=E;function te(){var a;return ((a=w().getOS().name)==null?void 0:a.toLowerCase())==="android"}W.isAndroid=te;function ne(){return ee()||I()?false:w().getDevice().type==="tablet"}W.isTablet=ne;async function Y(){var s;return ((s=w().getOS().name)==null?void 0:s.toLowerCase())!=="android"?false:w().getUA().includes("wv")?true:[...(await fetch(document.location.toString(),{method:"HEAD"})).headers].some(([r])=>r.toLowerCase()==="x-requested-with")}W.isAndroidWebView=Y;function L(){return w().getOS().name==="Windows"}W.isWindows=L;function re(){return w().getBrowser().name==="Firefox"}W.isFirefox=re;function ae(){if("navigator"in globalThis){for(let a of ["vibrate","webkitVibrate","msVibrate","mozVibrate"])if(typeof navigator[a]=="function")return navigator[a]}}W.getSupportedVibrationMethod=ae;function X(){return ae()!=null&&!ee()&&!L()&&!re()}W.isVibrationAvailable=X;function $(){return w().getOS().name==="iOS"}W.isIOS=$;function de(){return typeof globalThis.Animation<"u"&&typeof globalThis.KeyframeEffect<"u"&&typeof globalThis.Element.prototype.animate<"u"}W.isAnimationApiSupported=de;function Z(){return "virtualKeyboard"in navigator}W.hasVirtualKeyboardSupport=Z;function q(a){var p;let s=`(display-mode: ${a})`,r=(p=globalThis.matchMedia)==null?void 0:p.call(globalThis,s);return (r==null?void 0:r.matches)===true?true:a==="standalone"&&typeof navigator=="object"&&"standalone"in navigator&&typeof navigator.standalone=="boolean"?navigator.standalone===true:false}W.isPwaDisplayMode=q;function se(a,s,r){let p=N=>N.split(".").map(z=>Number.parseInt(z,10)||0),g=p(a),h=p(s),x=p(r),y=(N,z)=>{var J,R;let F=Math.max(N.length,z.length);for(let G=0;G<F;G++){let j=(J=N[G])!=null?J:0,B=(R=z[G])!=null?R:0;if(j>B)return 1;if(j<B)return -1}return 0},P=y(g,h)>=0,be=y(g,x)<0;return P&&be}function le(){let s="26.3";if(M()){let r=w(),p=r.getOS(),g=r.getBrowser(),h=k()?g.version:p.version;return h?se(h,"26",s):false}return false}W.isFixedMemoryRequired=le;})(Ee||(Ee={}));
|
|
2
|
+
export{Re as a,Ee as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-33ZWDLU7.js';import {a as a$2}from'./chunk-UWBNF47P.js';import {a as a$1}from'./chunk-3A4KLILV.js';var e=class e extends a{static create(){return e.register(),document.createElement(e.tag)}static register(){a$1({[e.tag]:e});}render(){return a$2`<style>${e.tag}{display:flex}</style><svg width="${this.size}" height="${this.heightForViewbox(24,24)}" viewBox="0 0 24 24" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12ZM22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM16.7337 10.4937C17.0888 10.152 17.0888 9.59799 16.7337 9.25628C16.3787 8.91457 15.8031 8.91457 15.4481 9.25628L10.6364 13.8876L8.55192 11.8813C8.19689 11.5396 7.62129 11.5396 7.26627 11.8813C6.91124 12.223 6.91124 12.777 7.26627 13.1187L9.99354 15.7437C10.3486 16.0854 10.9242 16.0854 11.2792 15.7437L16.7337 10.4937Z" fill="${this.fill}"/></svg>`}};e.tag="scandit-rounded-check-icon";var c=e;export{c as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-GPJEB376.js';import {b}from'./chunk-A225YZFY.js';import {a as a$1}from'./chunk-XR65N6EG.js';import {a as a$2}from'./chunk-QCZSSQAQ.js';var ee=(C=>(C.WorldFacing="worldFacing",C.UserFacing="userFacing",C))(ee||{}),ae=(c=>(c[c.ULTRA_HD=0]="ULTRA_HD",c[c.FULL_HD=1]="FULL_HD",c[c.HD=2]="HD",c[c.SD=3]="SD",c[c.NONE=4]="NONE",c))(ae||{}),re=(v=>(v.AUTO="auto",v.FOUR_TO_THREE="fourToThree",v.SIXTEEN_TO_NINE="sixteenToNine",v))(re||{}),U;(l=>{let T=new Map([["DeviceCaptureError","AbortError"],["NotSupportedError","AbortError"],["ScreenCaptureError","AbortError"],["TabCaptureError","AbortError"],["TypeError","AbortError"],["InvalidStateError","NotAllowedError"],["MediaDeviceFailedDueToShutdown","NotAllowedError"],["MediaDeviceKillSwitchOn","NotAllowedError"],["PermissionDeniedError","NotAllowedError"],["PermissionDismissedError","NotAllowedError"],["DevicesNotFoundError","NotFoundError"],["SourceUnavailableError","NotReadableError"],["TrackStartError","NotReadableError"],["ConstraintNotSatisfiedError","OverconstrainedError"]]),O=["rear","back","r\xFCck","arri\xE8re","trasera","tr\xE1s","traseira","posteriore","\u540E\u9762","\u5F8C\u9762","\u80CC\u9762","\u540E\u7F6E","\u5F8C\u7F6E","\u80CC\u7F6E","\u0437\u0430\u0434\u043D\u0435\u0439","\u0627\u0644\u062E\u0644\u0641\u064A\u0629","\uD6C4","arka","achterzijde","\u0E2B\u0E25\u0E31\u0E07","baksidan","bagside","sau","bak","tylny","takakamera","belakang","\u05D0\u05D7\u05D5\u05E8\u05D9\u05EA","\u03C0\u03AF\u03C3\u03C9","spate","h\xE1ts\xF3","zadn\xED","darrere","posterior","zadn\xE1","\u0437\u0430\u0434\u043D\u044F","stra\u017Enja","belakang","\u092C\u0948\u0915"],C=new Set(["Desk View Camera","Schreibtischansicht-Kamera","Cam\xE9ra Desk\xA0View","C\xE1mara de Vista Cenital","C\xE2mara da Vista de Secret\xE1ria","Fotocamera di Panoramica Scrivania","\u684C\u4E0A\u89C6\u89D2\u76F8\u673A","\u30C7\u30B9\u30AF\u30D3\u30E5\u30FC\u30AB\u30E1\u30E9","\u041A\u0430\u043C\u0435\u0440\u0430 \u041E\u0431\u0437\u043E\u0440\u0430 \u0441\u0442\u043E\u043B\u0430","Masa G\xF6r\xFCnt\xFCs\xFC Kameras\u0131","Bureauweergave-camera","\u0643\u0627\u0645\u064A\u0631\u0627 \u0627\u0644\u0639\u0631\u0636 \u0627\u0644\u0631\u0623\u0633\u064A","\u0E01\u0E25\u0E49\u0E2D\u0E07\u0E14\u0E39\u0E14\u0E49\u0E32\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E42\u0E15\u0E4A\u0E30","Bordsvisningskamera","Kamera til Visning af skrivebord","Camera Desk View","Bordvisning-kamera","Kamera w\xA0aplikacji Widok blatu","Ty\xF6p\xF6yt\xE4n\xE4kym\xE4n kamera","Kamera Tampilan Meja","\u05DE\u05E6\u05DC\u05DE\u05EA \u05F4\u05EA\u05E6\u05D5\u05D2\u05EA \u05E9\u05D5\u05DC\u05D7\u05DF\u05F4","\u039A\u03AC\u03BC\u03B5\u03C1\u03B1 \u03C4\u03B7\u03C2 \u03A0\u03C1\u03BF\u03B2\u03BF\u03BB\u03AE\u03C2 \u03B3\u03C1\u03B1\u03C6\u03B5\u03AF\u03BF\u03C5","Camer\u0103 Vizualizare birou","\xCDr\xF3asztal n\xE9zet kamer\xE1ja","Stoln\xED kamera","C\xE0mera de l\u2019app Vista de l\u2019Escriptori"]),v=new Set(["MacBook Pro Desk View Camera"]),x=new Set(["Front Camera","Frontkamera","Appareil photo avant","C\xE1mara frontal","C\xE2mera Frontal","C\xE2mara frontal","Fotocamera (anteriore)","\u524D\u7F6E\u76F8\u673A","\u524D\u7F6E\u76F8\u6A5F","\u524D\u9762\u30AB\u30E1\u30E9","\u041A\u0430\u043C\u0435\u0440\u0430 \u043D\u0430 \u043F\u0435\u0440\u0435\u0434\u043D\u0435\u0439 \u043F\u0430\u043D\u0435\u043B\u0438","\xD6n Kamera","Camera aan voorzijde","\u0627\u0644\u0643\u0627\u0645\u064A\u0631\u0627 \u0627\u0644\u0623\u0645\u0627\u0645\u064A\u0629","\u0E01\u0E25\u0E49\u0E2D\u0E07\u0E14\u0E49\u0E32\u0E19\u0E2B\u0E19\u0E49\u0E32","Kamera p\xE5 framsidan","Forsidekamera","Camera m\u1EB7t tr\u01B0\u1EDBc","Kamera foran","Przedni aparat","Etukamera","Kamera Depan","\u05DE\u05E6\u05DC\u05DE\u05D4 \u05E7\u05D3\u05DE\u05D9\u05EA","\u039C\u03C0\u03C1\u03BF\u03C3\u03C4\u03B9\u03BD\u03AE \u03BA\u03AC\u03BC\u03B5\u03C1\u03B1","Camer\u0103 fa\u021B\u0103","El\xFCls\u0151 kamera","P\u0159edn\xED fotoapar\xE1t","C\xE0mera frontal","Predn\xE1 kamera","\u041F\u0435\u0440\u0435\u0434\u043D\u044F \u043A\u0430\u043C\u0435\u0440\u0430","Prednja kamera","Kamera Depan","\u092B\u093C\u094D\u0930\u0902\u091F \u0915\u0948\u092E\u0930\u093E"]),c=new Set(["Back Camera","R\xFCckkamera","Cam\xE9ra arri\xE8re","C\xE1mara trasera","C\xE2mera Traseira","C\xE2mara traseira","Fotocamera (posteriore)","\u540E\u7F6E\u76F8\u673A","\u5F8C\u7F6E\u76F8\u6A5F","\u80CC\u9762\u30AB\u30E1\u30E9","\u041A\u0430\u043C\u0435\u0440\u0430 \u043D\u0430 \u0437\u0430\u0434\u043D\u0435\u0439 \u043F\u0430\u043D\u0435\u043B\u0438","Arka Kamera","Camera aan achterzijde","\u0627\u0644\u0643\u0627\u0645\u064A\u0631\u0627 \u0627\u0644\u062E\u0644\u0641\u064A\u0629","\u0E01\u0E25\u0E49\u0E2D\u0E07\u0E14\u0E49\u0E32\u0E19\u0E2B\u0E25\u0E31\u0E07","Kamera p\xE5 baksidan","Bagsidekamera","Camera m\u1EB7t sau","Kamera bak","Tylny aparat","Takakamera","Kamera Belakang","\u05DE\u05E6\u05DC\u05DE\u05D4 \u05D0\u05D7\u05D5\u05E8\u05D9\u05EA","\u03A0\u03AF\u03C3\u03C9 \u03BA\u03AC\u03BC\u03B5\u03C1\u03B1","Camer\u0103 spate","H\xE1ts\xF3 kamera","Zadn\xED fotoapar\xE1t","C\xE0mera posterior","Zadn\xE1 kamera","\u0417\u0430\u0434\u043D\u044F \u043A\u0430\u043C\u0435\u0440\u0430","Stra\u017Enja kamera","Kamera Belakang","\u092C\u0948\u0915 \u0915\u0948\u092E\u0930\u093E"]),N=new Set(["Back Dual Wide Camera","R\xFCckseitige Dual-Weitwinkelkamera","Double appareil photo grand angle arri\xE8re","C\xE1mara trasera dual con gran angular","C\xE2mera Dupla Grande-Angular Traseira","C\xE2mara grande angular dupla traseira","Fotocamera doppia con grandangolo (posteriore)","\u540E\u7F6E\u53CC\u5E7F\u89D2\u955C\u5934","\u5F8C\u7F6E\u96D9\u5EE3\u89D2\u76F8\u6A5F","\u80CC\u9762\u30C7\u30E5\u30A2\u30EB\u5E83\u89D2\u30AB\u30E1\u30E9","\u0417\u0430\u0434\u043D\u044F\u044F \u0434\u0432\u043E\u0439\u043D\u0430\u044F \u0448\u0438\u0440\u043E\u043A\u043E\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0430\u043C\u0435\u0440\u0430","\xC7ift Geni\u015F Kamera Arka Y\xFCz\xFC","\u0643\u0627\u0645\u064A\u0631\u0627 \u062E\u0644\u0641\u064A\u0629 \u0645\u0632\u062F\u0648\u062C\u0629 \u0639\u0631\u064A\u0636\u0629","\u0E01\u0E25\u0E49\u0E2D\u0E07\u0E04\u0E39\u0E48\u0E14\u0E49\u0E32\u0E19\u0E2B\u0E25\u0E31\u0E07\u0E21\u0E38\u0E21\u0E01\u0E27\u0E49\u0E32\u0E07","Dubbel vidvinkelkamera p\xE5 baksidan","Camera k\xE9p r\u1ED9ng m\u1EB7t sau","Dobbelt vidvinkelkamera bak","Tylny dwuobiektywowy aparat szerokok\u0105tny","Laajakulmainen kaksoistakakamera","Kamera Lebar Belakang Ganda","\u05DE\u05E6\u05DC\u05DE\u05D4 \u05DB\u05E4\u05D5\u05DC\u05D4 \u05E8\u05D7\u05D1\u05D4 \u05D0\u05D7\u05D5\u05E8\u05D9\u05EA","\u03A0\u03AF\u03C3\u03C9 \u03B4\u03B9\u03C0\u03BB\u03AE \u03B5\u03C5\u03C1\u03B5\u03AF\u03B1 \u03BA\u03AC\u03BC\u03B5\u03C1\u03B1","Camer\u0103 dubl\u0103 cu obiectiv superangular spate","H\xE1ts\xF3, kett\u0151s, sz\xE9les l\xE1t\xF3sz\xF6g\u0171 kamera","Zadn\xED du\xE1ln\xED \u0161iroko\xFAhl\xFD fotoapar\xE1t","C\xE0mera dual posterior amb gran angular","Zadn\xE1 du\xE1lna \u0161irokouhl\xE1 kamera","\u0417\u0430\u0434\u043D\u044F \u0437\u0434\u0432\u043E\u0454\u043D\u0430 \u0448\u0438\u0440\u043E\u043A\u043E\u043A\u0443\u0442\u043D\u0430 \u043A\u0430\u043C\u0435\u0440\u0430","Stra\u017Enja dvostruka \u0161iroka kamera","Dwikamera Lebar Belakang","\u092C\u0948\u0915 \u0921\u094D\u092F\u0941\u0905\u0932 \u0935\u093E\u0907\u0921 \u0915\u0948\u092E\u0930\u093E"]),B=new Set(["Back Ultra Wide Camera","R\xFCckseitige Ultra-Weitwinkelkamera","Appareil photo ultra grand angle arri\xE8re","C\xE1mara trasera con ultra gran angular","C\xE2mera Ultra-Angular Traseira","C\xE2mara ultra grande angular traseira","Fotocamera con ultra-grandangolo (posteriore)","\u540E\u7F6E\u8D85\u5E7F\u89D2\u76F8\u673A","\u5F8C\u7F6E\u8D85\u5EE3\u89D2\u76F8\u6A5F","\u80CC\u9762\u8D85\u5E83\u89D2\u30AB\u30E1\u30E9","\u0417\u0430\u0434\u043D\u044F\u044F \u0441\u0432\u0435\u0440\u0445\u0448\u0438\u0440\u043E\u043A\u043E\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0430\u043C\u0435\u0440\u0430","Ultra Geni\u015F Kamera Arka Y\xFCz\xFC","Ultrabrede camera aan achterzijde","\u0643\u0627\u0645\u064A\u0631\u0627 \u062E\u0644\u0641\u064A\u0629 \u0639\u0631\u064A\u0636\u0629 \u062C\u062F\u064B\u0627","\u0E01\u0E25\u0E49\u0E2D\u0E07\u0E14\u0E49\u0E32\u0E19\u0E2B\u0E25\u0E31\u0E07\u0E21\u0E38\u0E21\u0E01\u0E27\u0E49\u0E32\u0E07\u0E2D\u0E31\u0E25\u0E15\u0E23\u0E49\u0E32","Ultravidvinkelkamera p\xE5 baksidan","Ultravidvinkelkameraet p\xE5 bagsiden","Camera c\u1EF1c r\u1ED9ng m\u1EB7t sau","Ultravidvinkelkamera bak","Tylny aparat ultraszerokok\u0105tny","Ultralaajakulmainen takakamera","Kamera Ultra Lebar Belakang","\u05DE\u05E6\u05DC\u05DE\u05D4 \u05D0\u05D5\u05DC\u05D8\u05E8\u05D4 \u05E8\u05D7\u05D1\u05D4 \u05D0\u05D7\u05D5\u05E8\u05D9\u05EA","\u03A0\u03AF\u03C3\u03C9 \u03C5\u03C0\u03B5\u03C1\u03B5\u03C5\u03C1\u03B5\u03AF\u03B1 \u03BA\u03AC\u03BC\u03B5\u03C1\u03B1","Camer\u0103 cu obiectiv ultra\u2011superangular spate","H\xE1ts\xF3, ultrasz\xE9les l\xE1t\xF3sz\xF6g\u0171 kamera","Zadn\xED ultra \u0161iroko\xFAhl\xFD fotoapar\xE1t","C\xE0mera posterior amb ultra gran angular","Zadn\xE1 ultra\u0161irokouhl\xE1 kamera","\u0417\u0430\u0434\u043D\u044F \u043D\u0430\u0434\u0448\u0438\u0440\u043E\u043A\u043E\u043A\u0443\u0442\u043D\u0430 \u043A\u0430\u043C\u0435\u0440\u0430","Stra\u017Enja ultra \u0161iroka kamera","Kamera Ultralebar Belakang","\u092C\u0948\u0915 \u0905\u0932\u094D\u091F\u094D\u0930\u093E \u0935\u093E\u0907\u0921 \u0915\u0948\u092E\u0930\u093E"]),m,D=false;l.mainCameraForPositionOverridesOnDesktop=new Map,l.deviceIdToCameraObjects=new Map,l.inaccessibleDeviceIds=new Set;let w=new Set;function ie(e){w.add(e);}l.addVideoDevicesListener=ie;function te(e,r){l.mainCameraForPositionOverridesOnDesktop.set(e,r);}l.setMainCameraForPositionOverridesOnDesktop=te;function ne(){l.mainCameraForPositionOverridesOnDesktop.clear();}l.clearMainCameraForPositionOverridesOnDesktop=ne;function M(){return navigator.mediaDevices.getUserMedia.bind(navigator.mediaDevices)}function W(){if(typeof navigator.enumerateDevices=="function")return navigator.enumerateDevices.bind(navigator);if(typeof navigator.mediaDevices=="object"&&typeof navigator.mediaDevices.enumerateDevices=="function")return navigator.mediaDevices.enumerateDevices.bind(navigator.mediaDevices)}function E(){D=true;}function K(e){let r=e.toLowerCase();return O.some(a=>r.includes(a))}function h(e){return x.has(e)}l.isIOSFrontCameraLabel=h;function F(e){return c.has(e)}l.isIOSBackCameraLabel=F;function I(e){return N.has(e)}l.isIOSBackDualWideCameraLabel=I;function R(e){return B.has(e)}l.isIOSUltraWideBackCameraLabel=R;function L(e){var a;let r=e.message==="Invalid constraint"?"OverconstrainedError":(a=T.get(e.name))!=null?a:e.name;Object.defineProperty(e,"name",{value:r});}function V(e){if(e.length===0)return {areSomeCameraLabelsFilled:false,areAllCameraLabelsFilled:false,areAllCameraLabelsUnfilled:false};let r=0;for(let i of e)i.label!==""&&r++;let a=r===e.length,t=r===0;return {areSomeCameraLabelsFilled:r>0&&r<e.length,areAllCameraLabelsFilled:a,areAllCameraLabelsUnfilled:t}}function j(e,r){var a;return (a=l.mainCameraForPositionOverridesOnDesktop.get(r))!=null?a:e.find(t=>t.position===r)}function z(e,r){let a=r==="worldFacing"?F:h;for(let t of e)if(a(t.label))return t}function _(e,r){if(r==="worldFacing"){let a;for(let t of e){if(I(t.label))return t;!a&&F(t.label)&&(a=t);}return a}else for(let a of e)if(h(a.label))return a}function H(e,r){let{areSomeCameraLabelsFilled:a,areAllCameraLabelsUnfilled:t}=V(e),n=b.getUserAgentInfo().getOS().name==="iOS";if(t)return e[r==="userFacing"?0:e.length-1];let i=e.filter(o=>o.position===r);if(i.length===1)return i[0];if(a){if(n){let o=z(i,r);if(o!=null)return o}return i[r==="userFacing"?0:i.length-1]}if(n){let o=_(e,r);if(o)return o}return i.sort((o,s)=>o.label.localeCompare(s.label))[0]}function oe(e,r){return b.isDesktopDevice()?j(e,r):H(e,r)}l.getMainCameraForPosition=oe;function k(e,r){return e.unshift(e.splice(r,1)[0])}function se(e,r){function a(i,o){let s=l.mainCameraForPositionOverridesOnDesktop.get(o);return s!=null&&i.includes(s)&&(i=i.filter(g=>g!==s),i.unshift(s)),i}let t=e.filter(i=>i.position==="userFacing"),n=e.filter(i=>i.position==="worldFacing");return b.isDesktopDevice()?(t=a(t,"userFacing"),n=a(n,"worldFacing")):e.every(i=>i.label==="")?n.reverse():(t.sort((i,o)=>i.label.localeCompare(o.label)),n.sort((i,o)=>i.label.localeCompare(o.label)),b.getUserAgentInfo().getOS().name==="iOS"&&(t.some((i,o)=>h(i.label)&&k(t,o)>=0),n.some((i,o)=>R(i.label)&&k(n,o)>=0),n.some((i,o)=>I(i.label)&&k(n,o)>=0)||n.some((i,o)=>F(i.label)&&k(n,o)>=0))),r==="userFacing"?[...t,...n]:[...n,...t]}l.sortCamerasForCameraPosition=se;function A(e,r){let a=e.getVideoTracks();if(a.length>0){let t=a[0],n;typeof t.getSettings=="function"&&(n=t.getSettings(),n.facingMode!=null&&n.facingMode.length>0&&(r.position=n.facingMode==="environment"?"worldFacing":"userFacing"));let{label:i=""}=t;i.length>0&&(r.label=i);}}l.adjustCameraFromMediaStream=A;function G(e,r,a){if(l.deviceIdToCameraObjects.has(e.deviceId))return l.deviceIdToCameraObjects.get(e.deviceId);let{label:t="",deviceId:n}=e,i;return !b.isDesktopDevice()&&a.every(o=>o.label===""&&!l.deviceIdToCameraObjects.has(o.deviceId))?i=a.length===1||r+1<=Math.floor(a.length/2)?"userFacing":"worldFacing":i=K(t)?"worldFacing":"userFacing",{position:i,label:t,deviceId:n}}function Z(e){let r=e.map((a,t,n)=>G(a,t,n)).map(a=>(a.deviceId!==""&&l.deviceIdToCameraObjects.set(a.deviceId,a),a)).filter(a=>!/\b(?:ir|infrared)\b/i.test(a.label)||/^IR UVC WebCam$/i.test(a.label.toUpperCase())).filter(a=>!C.has(a.label)).filter(a=>!v.has(a.label)).filter(a=>!l.inaccessibleDeviceIds.has(a.deviceId));if(!b.isDesktopDevice()&&r.length>1&&!r.some(a=>a.position==="worldFacing")){let a=r.length-1,t=r.map(n=>{let i=/\b(\d+)mp?\b/i.exec(n.label);return i!=null?Number.parseInt(i[1],10):Number.NaN});t.some(n=>Number.isNaN(n))||(a=t.lastIndexOf(Math.max(...t))),r[a].position="worldFacing";}return r}async function Y(){if(m!=null&&m.length>0&&m.every(e=>e.label===""&&!l.deviceIdToCameraObjects.has(e.deviceId)))try{return await M()({video:true,audio:false})}catch{}}function X(e,r){var a,t;if(r.length>0&&e.length===r.length&&!r.every((n,i)=>e[i].deviceId===n.deviceId)){let n={};for(let[i,o]of e.entries()){let s=l.deviceIdToCameraObjects.get(o.deviceId);if(s==null||s.label!==((t=(a=r[i])==null?void 0:a.label)!=null?t:""))continue;let g=r[i].deviceId;n[s.deviceId]=g,l.inaccessibleDeviceIds.has(s.deviceId)&&l.inaccessibleDeviceIds.add(g),s.deviceId=g,l.deviceIdToCameraObjects.set(g,s);}a$1.log(a$1.Level.Debug,"Detected updated camera deviceId information and updated it accordingly",n);}}function $(){typeof navigator.mediaDevices.addEventListener=="function"?navigator.mediaDevices.addEventListener("devicechange",E):navigator.mediaDevices.ondevicechange=E;}async function y(){let e,r=W();if(r)e=await r();else throw new a({fullSupport:false,scannerSupport:true,missingFeatures:["mediaDevices"]});return e.filter(a=>a.kind==="videoinput")}async function le(e=false,r=false){var n;let a$2=b.checkBrowserCompatibility();if(!a$2.fullSupport)throw new a(a$2);if($(),m==null||e||D){D=false;let i,o=m!=null?m:[];m=[];try{m=await y(),r||(i=await Y(),i!=null&&(m=await y())),a$1.debug("Camera list (devices):",...m),m.length>0&&m.every(s=>s.deviceId==="")&&a$1.log(a$1.Level.Debug,"Incomplete camera information listed due to user permission denial, cameras will not be accessible"),X(o,m);}catch(s){throw L(s),s}finally{for(let s of (n=i==null?void 0:i.getVideoTracks())!=null?n:[])s.stop();}}let t=Z(m);a$1.log(a$1.Level.Debug,"Camera list (cameras): ",...t);for(let i of w)i([...t]);return [...t]}l.getCameras=le;async function q(e){return a$1.debug("Attempt to access camera (parameters):",e.video),new Promise((r,a)=>{setTimeout(async()=>{try{let t=await M()(e);if(t==null){a(new a$2({name:"AbortError",message:"Cannot get stream from getUserMedia function."}));return}r(t);}catch(t){a(t);}},0);})}function J(e,r){let a={resizeMode:"none"};switch(e){case 0:return {...a,width:{min:2880,ideal:r==="fourToThree"?2880:3840,max:4096},height:{min:1800,ideal:2160,max:2400}};case 1:return {...a,width:{min:1440,ideal:r==="fourToThree"?1440:1920,max:2160},height:{min:900,ideal:1080,max:1440}};case 2:return {...a,width:{min:960,ideal:r==="fourToThree"?960:1280,max:1440},height:{min:480,ideal:720,max:960}};case 3:return {...a,width:{min:640,ideal:640,max:800},height:{min:360,ideal:r==="fourToThree"?480:360,max:640}};default:return {}}}l.getUserMediaVideoParameters=J;function Q(e){e.deviceId!==""&&(a$1.log(a$1.Level.Debug,"Camera marked to be inaccessible:",e),l.inaccessibleDeviceIds.add(e.deviceId));}l.markCameraAsInaccessible=Q;async function me(e,r,a){a$1.log(a$1.Level.Debug,"Attempt to access camera (camera):",e);let t={audio:false,video:J(r,a)};e.deviceId===""?t.video.facingMode={ideal:e.position==="worldFacing"?"environment":"user"}:t.video.deviceId={exact:e.deviceId};try{let n=await q(t);return A(n,e),n}catch(n){throw L(n),["OverconstrainedError","NotReadableError","NotAllowedError"].includes(n.name)||Q(e),n}}l.accessCameraStream=me;})(U||(U={}));export{ee as a,ae as b,re as c,U as d};
|
|
1
|
+
import {a}from'./chunk-GPJEB376.js';import {b}from'./chunk-YONR3EGV.js';import {a as a$1}from'./chunk-XR65N6EG.js';import {a as a$2}from'./chunk-QCZSSQAQ.js';var ee=(C=>(C.WorldFacing="worldFacing",C.UserFacing="userFacing",C))(ee||{}),ae=(c=>(c[c.ULTRA_HD=0]="ULTRA_HD",c[c.FULL_HD=1]="FULL_HD",c[c.HD=2]="HD",c[c.SD=3]="SD",c[c.NONE=4]="NONE",c))(ae||{}),re=(v=>(v.AUTO="auto",v.FOUR_TO_THREE="fourToThree",v.SIXTEEN_TO_NINE="sixteenToNine",v))(re||{}),U;(l=>{let T=new Map([["DeviceCaptureError","AbortError"],["NotSupportedError","AbortError"],["ScreenCaptureError","AbortError"],["TabCaptureError","AbortError"],["TypeError","AbortError"],["InvalidStateError","NotAllowedError"],["MediaDeviceFailedDueToShutdown","NotAllowedError"],["MediaDeviceKillSwitchOn","NotAllowedError"],["PermissionDeniedError","NotAllowedError"],["PermissionDismissedError","NotAllowedError"],["DevicesNotFoundError","NotFoundError"],["SourceUnavailableError","NotReadableError"],["TrackStartError","NotReadableError"],["ConstraintNotSatisfiedError","OverconstrainedError"]]),O=["rear","back","r\xFCck","arri\xE8re","trasera","tr\xE1s","traseira","posteriore","\u540E\u9762","\u5F8C\u9762","\u80CC\u9762","\u540E\u7F6E","\u5F8C\u7F6E","\u80CC\u7F6E","\u0437\u0430\u0434\u043D\u0435\u0439","\u0627\u0644\u062E\u0644\u0641\u064A\u0629","\uD6C4","arka","achterzijde","\u0E2B\u0E25\u0E31\u0E07","baksidan","bagside","sau","bak","tylny","takakamera","belakang","\u05D0\u05D7\u05D5\u05E8\u05D9\u05EA","\u03C0\u03AF\u03C3\u03C9","spate","h\xE1ts\xF3","zadn\xED","darrere","posterior","zadn\xE1","\u0437\u0430\u0434\u043D\u044F","stra\u017Enja","belakang","\u092C\u0948\u0915"],C=new Set(["Desk View Camera","Schreibtischansicht-Kamera","Cam\xE9ra Desk\xA0View","C\xE1mara de Vista Cenital","C\xE2mara da Vista de Secret\xE1ria","Fotocamera di Panoramica Scrivania","\u684C\u4E0A\u89C6\u89D2\u76F8\u673A","\u30C7\u30B9\u30AF\u30D3\u30E5\u30FC\u30AB\u30E1\u30E9","\u041A\u0430\u043C\u0435\u0440\u0430 \u041E\u0431\u0437\u043E\u0440\u0430 \u0441\u0442\u043E\u043B\u0430","Masa G\xF6r\xFCnt\xFCs\xFC Kameras\u0131","Bureauweergave-camera","\u0643\u0627\u0645\u064A\u0631\u0627 \u0627\u0644\u0639\u0631\u0636 \u0627\u0644\u0631\u0623\u0633\u064A","\u0E01\u0E25\u0E49\u0E2D\u0E07\u0E14\u0E39\u0E14\u0E49\u0E32\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E42\u0E15\u0E4A\u0E30","Bordsvisningskamera","Kamera til Visning af skrivebord","Camera Desk View","Bordvisning-kamera","Kamera w\xA0aplikacji Widok blatu","Ty\xF6p\xF6yt\xE4n\xE4kym\xE4n kamera","Kamera Tampilan Meja","\u05DE\u05E6\u05DC\u05DE\u05EA \u05F4\u05EA\u05E6\u05D5\u05D2\u05EA \u05E9\u05D5\u05DC\u05D7\u05DF\u05F4","\u039A\u03AC\u03BC\u03B5\u03C1\u03B1 \u03C4\u03B7\u03C2 \u03A0\u03C1\u03BF\u03B2\u03BF\u03BB\u03AE\u03C2 \u03B3\u03C1\u03B1\u03C6\u03B5\u03AF\u03BF\u03C5","Camer\u0103 Vizualizare birou","\xCDr\xF3asztal n\xE9zet kamer\xE1ja","Stoln\xED kamera","C\xE0mera de l\u2019app Vista de l\u2019Escriptori"]),v=new Set(["MacBook Pro Desk View Camera"]),x=new Set(["Front Camera","Frontkamera","Appareil photo avant","C\xE1mara frontal","C\xE2mera Frontal","C\xE2mara frontal","Fotocamera (anteriore)","\u524D\u7F6E\u76F8\u673A","\u524D\u7F6E\u76F8\u6A5F","\u524D\u9762\u30AB\u30E1\u30E9","\u041A\u0430\u043C\u0435\u0440\u0430 \u043D\u0430 \u043F\u0435\u0440\u0435\u0434\u043D\u0435\u0439 \u043F\u0430\u043D\u0435\u043B\u0438","\xD6n Kamera","Camera aan voorzijde","\u0627\u0644\u0643\u0627\u0645\u064A\u0631\u0627 \u0627\u0644\u0623\u0645\u0627\u0645\u064A\u0629","\u0E01\u0E25\u0E49\u0E2D\u0E07\u0E14\u0E49\u0E32\u0E19\u0E2B\u0E19\u0E49\u0E32","Kamera p\xE5 framsidan","Forsidekamera","Camera m\u1EB7t tr\u01B0\u1EDBc","Kamera foran","Przedni aparat","Etukamera","Kamera Depan","\u05DE\u05E6\u05DC\u05DE\u05D4 \u05E7\u05D3\u05DE\u05D9\u05EA","\u039C\u03C0\u03C1\u03BF\u03C3\u03C4\u03B9\u03BD\u03AE \u03BA\u03AC\u03BC\u03B5\u03C1\u03B1","Camer\u0103 fa\u021B\u0103","El\xFCls\u0151 kamera","P\u0159edn\xED fotoapar\xE1t","C\xE0mera frontal","Predn\xE1 kamera","\u041F\u0435\u0440\u0435\u0434\u043D\u044F \u043A\u0430\u043C\u0435\u0440\u0430","Prednja kamera","Kamera Depan","\u092B\u093C\u094D\u0930\u0902\u091F \u0915\u0948\u092E\u0930\u093E"]),c=new Set(["Back Camera","R\xFCckkamera","Cam\xE9ra arri\xE8re","C\xE1mara trasera","C\xE2mera Traseira","C\xE2mara traseira","Fotocamera (posteriore)","\u540E\u7F6E\u76F8\u673A","\u5F8C\u7F6E\u76F8\u6A5F","\u80CC\u9762\u30AB\u30E1\u30E9","\u041A\u0430\u043C\u0435\u0440\u0430 \u043D\u0430 \u0437\u0430\u0434\u043D\u0435\u0439 \u043F\u0430\u043D\u0435\u043B\u0438","Arka Kamera","Camera aan achterzijde","\u0627\u0644\u0643\u0627\u0645\u064A\u0631\u0627 \u0627\u0644\u062E\u0644\u0641\u064A\u0629","\u0E01\u0E25\u0E49\u0E2D\u0E07\u0E14\u0E49\u0E32\u0E19\u0E2B\u0E25\u0E31\u0E07","Kamera p\xE5 baksidan","Bagsidekamera","Camera m\u1EB7t sau","Kamera bak","Tylny aparat","Takakamera","Kamera Belakang","\u05DE\u05E6\u05DC\u05DE\u05D4 \u05D0\u05D7\u05D5\u05E8\u05D9\u05EA","\u03A0\u03AF\u03C3\u03C9 \u03BA\u03AC\u03BC\u03B5\u03C1\u03B1","Camer\u0103 spate","H\xE1ts\xF3 kamera","Zadn\xED fotoapar\xE1t","C\xE0mera posterior","Zadn\xE1 kamera","\u0417\u0430\u0434\u043D\u044F \u043A\u0430\u043C\u0435\u0440\u0430","Stra\u017Enja kamera","Kamera Belakang","\u092C\u0948\u0915 \u0915\u0948\u092E\u0930\u093E"]),N=new Set(["Back Dual Wide Camera","R\xFCckseitige Dual-Weitwinkelkamera","Double appareil photo grand angle arri\xE8re","C\xE1mara trasera dual con gran angular","C\xE2mera Dupla Grande-Angular Traseira","C\xE2mara grande angular dupla traseira","Fotocamera doppia con grandangolo (posteriore)","\u540E\u7F6E\u53CC\u5E7F\u89D2\u955C\u5934","\u5F8C\u7F6E\u96D9\u5EE3\u89D2\u76F8\u6A5F","\u80CC\u9762\u30C7\u30E5\u30A2\u30EB\u5E83\u89D2\u30AB\u30E1\u30E9","\u0417\u0430\u0434\u043D\u044F\u044F \u0434\u0432\u043E\u0439\u043D\u0430\u044F \u0448\u0438\u0440\u043E\u043A\u043E\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0430\u043C\u0435\u0440\u0430","\xC7ift Geni\u015F Kamera Arka Y\xFCz\xFC","\u0643\u0627\u0645\u064A\u0631\u0627 \u062E\u0644\u0641\u064A\u0629 \u0645\u0632\u062F\u0648\u062C\u0629 \u0639\u0631\u064A\u0636\u0629","\u0E01\u0E25\u0E49\u0E2D\u0E07\u0E04\u0E39\u0E48\u0E14\u0E49\u0E32\u0E19\u0E2B\u0E25\u0E31\u0E07\u0E21\u0E38\u0E21\u0E01\u0E27\u0E49\u0E32\u0E07","Dubbel vidvinkelkamera p\xE5 baksidan","Camera k\xE9p r\u1ED9ng m\u1EB7t sau","Dobbelt vidvinkelkamera bak","Tylny dwuobiektywowy aparat szerokok\u0105tny","Laajakulmainen kaksoistakakamera","Kamera Lebar Belakang Ganda","\u05DE\u05E6\u05DC\u05DE\u05D4 \u05DB\u05E4\u05D5\u05DC\u05D4 \u05E8\u05D7\u05D1\u05D4 \u05D0\u05D7\u05D5\u05E8\u05D9\u05EA","\u03A0\u03AF\u03C3\u03C9 \u03B4\u03B9\u03C0\u03BB\u03AE \u03B5\u03C5\u03C1\u03B5\u03AF\u03B1 \u03BA\u03AC\u03BC\u03B5\u03C1\u03B1","Camer\u0103 dubl\u0103 cu obiectiv superangular spate","H\xE1ts\xF3, kett\u0151s, sz\xE9les l\xE1t\xF3sz\xF6g\u0171 kamera","Zadn\xED du\xE1ln\xED \u0161iroko\xFAhl\xFD fotoapar\xE1t","C\xE0mera dual posterior amb gran angular","Zadn\xE1 du\xE1lna \u0161irokouhl\xE1 kamera","\u0417\u0430\u0434\u043D\u044F \u0437\u0434\u0432\u043E\u0454\u043D\u0430 \u0448\u0438\u0440\u043E\u043A\u043E\u043A\u0443\u0442\u043D\u0430 \u043A\u0430\u043C\u0435\u0440\u0430","Stra\u017Enja dvostruka \u0161iroka kamera","Dwikamera Lebar Belakang","\u092C\u0948\u0915 \u0921\u094D\u092F\u0941\u0905\u0932 \u0935\u093E\u0907\u0921 \u0915\u0948\u092E\u0930\u093E"]),B=new Set(["Back Ultra Wide Camera","R\xFCckseitige Ultra-Weitwinkelkamera","Appareil photo ultra grand angle arri\xE8re","C\xE1mara trasera con ultra gran angular","C\xE2mera Ultra-Angular Traseira","C\xE2mara ultra grande angular traseira","Fotocamera con ultra-grandangolo (posteriore)","\u540E\u7F6E\u8D85\u5E7F\u89D2\u76F8\u673A","\u5F8C\u7F6E\u8D85\u5EE3\u89D2\u76F8\u6A5F","\u80CC\u9762\u8D85\u5E83\u89D2\u30AB\u30E1\u30E9","\u0417\u0430\u0434\u043D\u044F\u044F \u0441\u0432\u0435\u0440\u0445\u0448\u0438\u0440\u043E\u043A\u043E\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0430\u043C\u0435\u0440\u0430","Ultra Geni\u015F Kamera Arka Y\xFCz\xFC","Ultrabrede camera aan achterzijde","\u0643\u0627\u0645\u064A\u0631\u0627 \u062E\u0644\u0641\u064A\u0629 \u0639\u0631\u064A\u0636\u0629 \u062C\u062F\u064B\u0627","\u0E01\u0E25\u0E49\u0E2D\u0E07\u0E14\u0E49\u0E32\u0E19\u0E2B\u0E25\u0E31\u0E07\u0E21\u0E38\u0E21\u0E01\u0E27\u0E49\u0E32\u0E07\u0E2D\u0E31\u0E25\u0E15\u0E23\u0E49\u0E32","Ultravidvinkelkamera p\xE5 baksidan","Ultravidvinkelkameraet p\xE5 bagsiden","Camera c\u1EF1c r\u1ED9ng m\u1EB7t sau","Ultravidvinkelkamera bak","Tylny aparat ultraszerokok\u0105tny","Ultralaajakulmainen takakamera","Kamera Ultra Lebar Belakang","\u05DE\u05E6\u05DC\u05DE\u05D4 \u05D0\u05D5\u05DC\u05D8\u05E8\u05D4 \u05E8\u05D7\u05D1\u05D4 \u05D0\u05D7\u05D5\u05E8\u05D9\u05EA","\u03A0\u03AF\u03C3\u03C9 \u03C5\u03C0\u03B5\u03C1\u03B5\u03C5\u03C1\u03B5\u03AF\u03B1 \u03BA\u03AC\u03BC\u03B5\u03C1\u03B1","Camer\u0103 cu obiectiv ultra\u2011superangular spate","H\xE1ts\xF3, ultrasz\xE9les l\xE1t\xF3sz\xF6g\u0171 kamera","Zadn\xED ultra \u0161iroko\xFAhl\xFD fotoapar\xE1t","C\xE0mera posterior amb ultra gran angular","Zadn\xE1 ultra\u0161irokouhl\xE1 kamera","\u0417\u0430\u0434\u043D\u044F \u043D\u0430\u0434\u0448\u0438\u0440\u043E\u043A\u043E\u043A\u0443\u0442\u043D\u0430 \u043A\u0430\u043C\u0435\u0440\u0430","Stra\u017Enja ultra \u0161iroka kamera","Kamera Ultralebar Belakang","\u092C\u0948\u0915 \u0905\u0932\u094D\u091F\u094D\u0930\u093E \u0935\u093E\u0907\u0921 \u0915\u0948\u092E\u0930\u093E"]),m,D=false;l.mainCameraForPositionOverridesOnDesktop=new Map,l.deviceIdToCameraObjects=new Map,l.inaccessibleDeviceIds=new Set;let w=new Set;function ie(e){w.add(e);}l.addVideoDevicesListener=ie;function te(e,r){l.mainCameraForPositionOverridesOnDesktop.set(e,r);}l.setMainCameraForPositionOverridesOnDesktop=te;function ne(){l.mainCameraForPositionOverridesOnDesktop.clear();}l.clearMainCameraForPositionOverridesOnDesktop=ne;function M(){return navigator.mediaDevices.getUserMedia.bind(navigator.mediaDevices)}function W(){if(typeof navigator.enumerateDevices=="function")return navigator.enumerateDevices.bind(navigator);if(typeof navigator.mediaDevices=="object"&&typeof navigator.mediaDevices.enumerateDevices=="function")return navigator.mediaDevices.enumerateDevices.bind(navigator.mediaDevices)}function E(){D=true;}function K(e){let r=e.toLowerCase();return O.some(a=>r.includes(a))}function h(e){return x.has(e)}l.isIOSFrontCameraLabel=h;function F(e){return c.has(e)}l.isIOSBackCameraLabel=F;function I(e){return N.has(e)}l.isIOSBackDualWideCameraLabel=I;function R(e){return B.has(e)}l.isIOSUltraWideBackCameraLabel=R;function L(e){var a;let r=e.message==="Invalid constraint"?"OverconstrainedError":(a=T.get(e.name))!=null?a:e.name;Object.defineProperty(e,"name",{value:r});}function V(e){if(e.length===0)return {areSomeCameraLabelsFilled:false,areAllCameraLabelsFilled:false,areAllCameraLabelsUnfilled:false};let r=0;for(let i of e)i.label!==""&&r++;let a=r===e.length,t=r===0;return {areSomeCameraLabelsFilled:r>0&&r<e.length,areAllCameraLabelsFilled:a,areAllCameraLabelsUnfilled:t}}function j(e,r){var a;return (a=l.mainCameraForPositionOverridesOnDesktop.get(r))!=null?a:e.find(t=>t.position===r)}function z(e,r){let a=r==="worldFacing"?F:h;for(let t of e)if(a(t.label))return t}function _(e,r){if(r==="worldFacing"){let a;for(let t of e){if(I(t.label))return t;!a&&F(t.label)&&(a=t);}return a}else for(let a of e)if(h(a.label))return a}function H(e,r){let{areSomeCameraLabelsFilled:a,areAllCameraLabelsUnfilled:t}=V(e),n=b.getUserAgentInfo().getOS().name==="iOS";if(t)return e[r==="userFacing"?0:e.length-1];let i=e.filter(o=>o.position===r);if(i.length===1)return i[0];if(a){if(n){let o=z(i,r);if(o!=null)return o}return i[r==="userFacing"?0:i.length-1]}if(n){let o=_(e,r);if(o)return o}return i.sort((o,s)=>o.label.localeCompare(s.label))[0]}function oe(e,r){return b.isDesktopDevice()?j(e,r):H(e,r)}l.getMainCameraForPosition=oe;function k(e,r){return e.unshift(e.splice(r,1)[0])}function se(e,r){function a(i,o){let s=l.mainCameraForPositionOverridesOnDesktop.get(o);return s!=null&&i.includes(s)&&(i=i.filter(g=>g!==s),i.unshift(s)),i}let t=e.filter(i=>i.position==="userFacing"),n=e.filter(i=>i.position==="worldFacing");return b.isDesktopDevice()?(t=a(t,"userFacing"),n=a(n,"worldFacing")):e.every(i=>i.label==="")?n.reverse():(t.sort((i,o)=>i.label.localeCompare(o.label)),n.sort((i,o)=>i.label.localeCompare(o.label)),b.getUserAgentInfo().getOS().name==="iOS"&&(t.some((i,o)=>h(i.label)&&k(t,o)>=0),n.some((i,o)=>R(i.label)&&k(n,o)>=0),n.some((i,o)=>I(i.label)&&k(n,o)>=0)||n.some((i,o)=>F(i.label)&&k(n,o)>=0))),r==="userFacing"?[...t,...n]:[...n,...t]}l.sortCamerasForCameraPosition=se;function A(e,r){let a=e.getVideoTracks();if(a.length>0){let t=a[0],n;typeof t.getSettings=="function"&&(n=t.getSettings(),n.facingMode!=null&&n.facingMode.length>0&&(r.position=n.facingMode==="environment"?"worldFacing":"userFacing"));let{label:i=""}=t;i.length>0&&(r.label=i);}}l.adjustCameraFromMediaStream=A;function G(e,r,a){if(l.deviceIdToCameraObjects.has(e.deviceId))return l.deviceIdToCameraObjects.get(e.deviceId);let{label:t="",deviceId:n}=e,i;return !b.isDesktopDevice()&&a.every(o=>o.label===""&&!l.deviceIdToCameraObjects.has(o.deviceId))?i=a.length===1||r+1<=Math.floor(a.length/2)?"userFacing":"worldFacing":i=K(t)?"worldFacing":"userFacing",{position:i,label:t,deviceId:n}}function Z(e){let r=e.map((a,t,n)=>G(a,t,n)).map(a=>(a.deviceId!==""&&l.deviceIdToCameraObjects.set(a.deviceId,a),a)).filter(a=>!/\b(?:ir|infrared)\b/i.test(a.label)||/^IR UVC WebCam$/i.test(a.label.toUpperCase())).filter(a=>!C.has(a.label)).filter(a=>!v.has(a.label)).filter(a=>!l.inaccessibleDeviceIds.has(a.deviceId));if(!b.isDesktopDevice()&&r.length>1&&!r.some(a=>a.position==="worldFacing")){let a=r.length-1,t=r.map(n=>{let i=/\b(\d+)mp?\b/i.exec(n.label);return i!=null?Number.parseInt(i[1],10):Number.NaN});t.some(n=>Number.isNaN(n))||(a=t.lastIndexOf(Math.max(...t))),r[a].position="worldFacing";}return r}async function Y(){if(m!=null&&m.length>0&&m.every(e=>e.label===""&&!l.deviceIdToCameraObjects.has(e.deviceId)))try{return await M()({video:true,audio:false})}catch{}}function X(e,r){var a,t;if(r.length>0&&e.length===r.length&&!r.every((n,i)=>e[i].deviceId===n.deviceId)){let n={};for(let[i,o]of e.entries()){let s=l.deviceIdToCameraObjects.get(o.deviceId);if(s==null||s.label!==((t=(a=r[i])==null?void 0:a.label)!=null?t:""))continue;let g=r[i].deviceId;n[s.deviceId]=g,l.inaccessibleDeviceIds.has(s.deviceId)&&l.inaccessibleDeviceIds.add(g),s.deviceId=g,l.deviceIdToCameraObjects.set(g,s);}a$1.log(a$1.Level.Debug,"Detected updated camera deviceId information and updated it accordingly",n);}}function $(){typeof navigator.mediaDevices.addEventListener=="function"?navigator.mediaDevices.addEventListener("devicechange",E):navigator.mediaDevices.ondevicechange=E;}async function y(){let e,r=W();if(r)e=await r();else throw new a({fullSupport:false,scannerSupport:true,missingFeatures:["mediaDevices"]});return e.filter(a=>a.kind==="videoinput")}async function le(e=false,r=false){var n;let a$2=b.checkBrowserCompatibility();if(!a$2.fullSupport)throw new a(a$2);if($(),m==null||e||D){D=false;let i,o=m!=null?m:[];m=[];try{m=await y(),r||(i=await Y(),i!=null&&(m=await y())),a$1.debug("Camera list (devices):",...m),m.length>0&&m.every(s=>s.deviceId==="")&&a$1.log(a$1.Level.Debug,"Incomplete camera information listed due to user permission denial, cameras will not be accessible"),X(o,m);}catch(s){throw L(s),s}finally{for(let s of (n=i==null?void 0:i.getVideoTracks())!=null?n:[])s.stop();}}let t=Z(m);a$1.log(a$1.Level.Debug,"Camera list (cameras): ",...t);for(let i of w)i([...t]);return [...t]}l.getCameras=le;async function q(e){return a$1.debug("Attempt to access camera (parameters):",e.video),new Promise((r,a)=>{setTimeout(async()=>{try{let t=await M()(e);if(t==null){a(new a$2({name:"AbortError",message:"Cannot get stream from getUserMedia function."}));return}r(t);}catch(t){a(t);}},0);})}function J(e,r){let a={resizeMode:"none"};switch(e){case 0:return {...a,width:{min:2880,ideal:r==="fourToThree"?2880:3840,max:4096},height:{min:1800,ideal:2160,max:2400}};case 1:return {...a,width:{min:1440,ideal:r==="fourToThree"?1440:1920,max:2160},height:{min:900,ideal:1080,max:1440}};case 2:return {...a,width:{min:960,ideal:r==="fourToThree"?960:1280,max:1440},height:{min:480,ideal:720,max:960}};case 3:return {...a,width:{min:640,ideal:640,max:800},height:{min:360,ideal:r==="fourToThree"?480:360,max:640}};default:return {}}}l.getUserMediaVideoParameters=J;function Q(e){e.deviceId!==""&&(a$1.log(a$1.Level.Debug,"Camera marked to be inaccessible:",e),l.inaccessibleDeviceIds.add(e.deviceId));}l.markCameraAsInaccessible=Q;async function me(e,r,a){a$1.log(a$1.Level.Debug,"Attempt to access camera (camera):",e);let t={audio:false,video:J(r,a)};e.deviceId===""?t.video.facingMode={ideal:e.position==="worldFacing"?"environment":"user"}:t.video.deviceId={exact:e.deviceId};try{let n=await q(t);return A(n,e),n}catch(n){throw L(n),["OverconstrainedError","NotReadableError","NotAllowedError"].includes(n.name)||Q(e),n}}l.accessCameraStream=me;})(U||(U={}));export{ee as a,ae as b,re as c,U as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-SEAVQZN6.js';import {a}from'./chunk-
|
|
1
|
+
import {a as a$2}from'./chunk-SEAVQZN6.js';import {a}from'./chunk-M2ZQCUEL.js';import {a as a$5}from'./chunk-AIRWHLJH.js';import {a as a$4}from'./chunk-FGO2SSRS.js';import {a as a$1}from'./chunk-QCRFVRSS.js';import {b}from'./chunk-FTD535WI.js';import {a as a$3}from'./chunk-XR65N6EG.js';var h=class{constructor(a$3,e){this.onMessageListener=this.onMessage.bind(this);this.workerSelf=a$3,this.dataCaptureInstance=new a(e,{postMessage:this.postMessage.bind(this),getOffscreenCanvas:this.getOffscreenCanvas.bind(this)}),a$1(a$3)&&(a$2(a$3),this.listenToMessages());}listenToMessages(){this.workerSelf.addEventListener("message",this.onMessageListener),this.workerSelf.addEventListener("error",a=>{a$3.log(a$3.Level.Error,a);}),this.workerSelf.addEventListener("messageerror",a=>{a$3.log(a$3.Level.Error,a);});}postMessage(a,e){this.workerSelf.postMessage(a,e!=null?e:[]);}getOffscreenCanvas(){if(this.isOffscreenCanvasSupported())return new this.workerSelf.OffscreenCanvas(32,32)}isOffscreenCanvasSupported(){return typeof this.workerSelf.OffscreenCanvas=="function"}hasPayload(a){return a$4(a)&&"payload"in a}hasTransferables(a){return a$4(a)&&Array.isArray(a.transferables)}async respondWith(a,e,l){let r=null,t;try{t=l(),t instanceof Promise&&(t=await t);}catch(m){t=void 0,r=a$5(m);}let i={type:"workerTaskId",command:a,id:e,payload:this.hasPayload(t)?t.payload:void 0};r!=null&&(i.error=r),this.postMessage(i,this.hasTransferables(t)?t.transferables:[]);}onMessage(a){switch(a.data.command){case "loadLibrary":{{let{data:e}=a;this.respondWith(e.command,e.id,async()=>this.dataCaptureInstance.loadLibrary({libraryLocation:e.libraryLocation,locationPath:e.locationPath,referredOrigin:e.referredOrigin,writableDataPathOverride:e.writableDataPathOverride,threadsSupport:e.threadsSupport,simdSupport:e.simdSupport,verifyResponseHash:e.verifyResponseHash,fixedWasmMemory:e.fixedWasmMemory,indexedDBTimeoutMs:e.indexedDBTimeoutMs}));}break}case "onTap":{{let{data:e}=a;this.respondWith(e.command,e.id,async()=>{this.dataCaptureInstance.onTap(e.point);});}break}case "hintPresenterV2update":{{let{data:e}=a;this.respondWith(e.command,e.id,async()=>{this.dataCaptureInstance.hintPresenterV2Update();});}break}case "createContext":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.createContext({context:e.context,deviceId:e.deviceId,delayedRegistration:e.delayedRegistration,highEndBlurryRecognition:e.highEndBlurryRecognition,appName:e.appName,parentDomain:e.parentDomain,isTablet:e.isTablet,batteryInfo:e.batteryInfo}));}break}case "setFrameSource":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.setFrameSource(e.mirrorAxis,e.isCameraFrameSource));}break}case "processFrame":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.processFrame({data:e.data,frameId:e.frameId,width:e.width,height:e.height,colorType:e.colorType}));}break}case "requestFrameData":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.requestFrameData(e.frameId));}break}case "deleteFrameData":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>{this.dataCaptureInstance.deleteFrameData(e.frameId);});}break}case "updateContext":{{let{data:e}=a;this.respondWith(e.command,e.id,async()=>this.dataCaptureInstance.updateContext(e));}break}case "dispose":{this.respondWith(a.data.command,a.data.id,()=>this.dataCaptureInstance.dispose());break}case "flushAnalytics":{this.respondWith(a.data.command,a.data.id,()=>{this.dataCaptureInstance.flushAnalytics();});break}case "reportCameraProperties":{{let{data:e}=a;this.respondWith(e.command,e.id,async()=>this.dataCaptureInstance.reportCameraProperties(e));}break}case "setLogLevel":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>{a$3.setLevel(e.level);});}break}case "updateBatteryInfo":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>{this.dataCaptureInstance.updateBatteryInfo(e.batteryInfo);});}break}case "extractCentaurusLicense":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.extractCentaurusLicense(e.licenseKey));}break}case "documentVisibility":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>{this.dataCaptureInstance.onDocumentVisibilityChange(e.state);});}break}case "isFeatureSupported":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.isFeatureSupported(e.feature));}break}case "getViewfinderInfo":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.getViewfinderInfo());}break}case "getOpenSourceSoftwareLicenseInfo":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.getOpenSourceSoftwareLicenseInfo());}break}case "addNativeOverlay":this.dataCaptureInstance.addNativeOverlay(a);break;case "removeNativeOverlay":this.dataCaptureInstance.removeNativeOverlay(a);break;case "convertToJPEGResult":{{let{data:e}=a;this.dataCaptureInstance.convertToJPEGResult(e.imageId,e.result);}break}default:return b(a.data),false}return true}};export{h as a};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import { C as Control, a as ControlType } from '../DataCaptureContext-
|
|
3
|
-
import '../Camera-
|
|
2
|
+
import { C as Control, a as ControlType } from '../DataCaptureContext-LM_Re1B4.js';
|
|
3
|
+
import '../Camera-BnPnXqAt.js';
|
|
4
4
|
import '../commons/Rect.js';
|
|
5
5
|
import '../private/Serializable.js';
|
|
6
6
|
import '../commons/Point.js';
|
|
@@ -26,9 +26,11 @@ import '../private/CustomLocationsView.js';
|
|
|
26
26
|
import '../private/View.js';
|
|
27
27
|
import '../private/AnchorPositions.js';
|
|
28
28
|
import '../private/nativeHandle.js';
|
|
29
|
+
import '../private/AdditionalLayerPosition.js';
|
|
29
30
|
import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
30
31
|
import '../logger.js';
|
|
31
32
|
import '../private/FrameReaders/ColorType.js';
|
|
33
|
+
import '../private/BatteryInterface.js';
|
|
32
34
|
import '../LoadingStatus.js';
|
|
33
35
|
import '../private/djinni-types/index.js';
|
|
34
36
|
import '../private/HtmlElementState.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as CameraFOVSwitchControl}from'../chunks/chunk-
|
|
1
|
+
export{a as CameraFOVSwitchControl}from'../chunks/chunk-7ZU6DPLL.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import { C as Control, a as ControlType } from '../DataCaptureContext-
|
|
3
|
-
import '../Camera-
|
|
2
|
+
import { C as Control, a as ControlType } from '../DataCaptureContext-LM_Re1B4.js';
|
|
3
|
+
import '../Camera-BnPnXqAt.js';
|
|
4
4
|
import '../commons/Rect.js';
|
|
5
5
|
import '../private/Serializable.js';
|
|
6
6
|
import '../commons/Point.js';
|
|
@@ -26,9 +26,11 @@ import '../private/CustomLocationsView.js';
|
|
|
26
26
|
import '../private/View.js';
|
|
27
27
|
import '../private/AnchorPositions.js';
|
|
28
28
|
import '../private/nativeHandle.js';
|
|
29
|
+
import '../private/AdditionalLayerPosition.js';
|
|
29
30
|
import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
30
31
|
import '../logger.js';
|
|
31
32
|
import '../private/FrameReaders/ColorType.js';
|
|
33
|
+
import '../private/BatteryInterface.js';
|
|
32
34
|
import '../LoadingStatus.js';
|
|
33
35
|
import '../private/djinni-types/index.js';
|
|
34
36
|
import '../private/HtmlElementState.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as CameraSwitchControl}from'../chunks/chunk-
|
|
1
|
+
export{a as CameraSwitchControl}from'../chunks/chunk-H7FKC2FI.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import { C as Control, a as ControlType } from '../DataCaptureContext-
|
|
3
|
-
import '../Camera-
|
|
2
|
+
import { C as Control, a as ControlType } from '../DataCaptureContext-LM_Re1B4.js';
|
|
3
|
+
import '../Camera-BnPnXqAt.js';
|
|
4
4
|
import '../commons/Rect.js';
|
|
5
5
|
import '../private/Serializable.js';
|
|
6
6
|
import '../commons/Point.js';
|
|
@@ -26,9 +26,11 @@ import '../private/CustomLocationsView.js';
|
|
|
26
26
|
import '../private/View.js';
|
|
27
27
|
import '../private/AnchorPositions.js';
|
|
28
28
|
import '../private/nativeHandle.js';
|
|
29
|
+
import '../private/AdditionalLayerPosition.js';
|
|
29
30
|
import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
30
31
|
import '../logger.js';
|
|
31
32
|
import '../private/FrameReaders/ColorType.js';
|
|
33
|
+
import '../private/BatteryInterface.js';
|
|
32
34
|
import '../LoadingStatus.js';
|
|
33
35
|
import '../private/djinni-types/index.js';
|
|
34
36
|
import '../private/HtmlElementState.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as TorchSwitchControl}from'../chunks/chunk-
|
|
1
|
+
export{a as TorchSwitchControl}from'../chunks/chunk-FHNMZZV2.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export { C as Control, a as ControlType,
|
|
2
|
+
export { C as Control, a as ControlType, bh as PrivateBaseControl, bi as PrivateControl } from '../DataCaptureContext-LM_Re1B4.js';
|
|
3
3
|
import '../private/Serializable.js';
|
|
4
|
-
import '../Camera-
|
|
4
|
+
import '../Camera-BnPnXqAt.js';
|
|
5
5
|
import '../commons/Rect.js';
|
|
6
6
|
import '../commons/Point.js';
|
|
7
7
|
import '../commons/Size.js';
|
|
@@ -26,9 +26,11 @@ import '../private/CustomLocationsView.js';
|
|
|
26
26
|
import '../private/View.js';
|
|
27
27
|
import '../private/AnchorPositions.js';
|
|
28
28
|
import '../private/nativeHandle.js';
|
|
29
|
+
import '../private/AdditionalLayerPosition.js';
|
|
29
30
|
import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
30
31
|
import '../logger.js';
|
|
31
32
|
import '../private/FrameReaders/ColorType.js';
|
|
33
|
+
import '../private/BatteryInterface.js';
|
|
32
34
|
import '../LoadingStatus.js';
|
|
33
35
|
import '../private/djinni-types/index.js';
|
|
34
36
|
import '../private/HtmlElementState.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
export { CameraFOVSwitchControl } from './CameraFOVSwitchControl.js';
|
|
3
3
|
export { CameraSwitchControl } from './CameraSwitchControl.js';
|
|
4
|
-
export { C as Control, a as ControlType } from '../DataCaptureContext-
|
|
4
|
+
export { C as Control, a as ControlType } from '../DataCaptureContext-LM_Re1B4.js';
|
|
5
5
|
export { TorchSwitchControl } from './TorchSwitchControl.js';
|
|
6
|
-
import '../Camera-
|
|
6
|
+
import '../Camera-BnPnXqAt.js';
|
|
7
7
|
import '../commons/Rect.js';
|
|
8
8
|
import '../private/Serializable.js';
|
|
9
9
|
import '../commons/Point.js';
|
|
@@ -29,9 +29,11 @@ import '../private/CustomLocationsView.js';
|
|
|
29
29
|
import '../private/View.js';
|
|
30
30
|
import '../private/AnchorPositions.js';
|
|
31
31
|
import '../private/nativeHandle.js';
|
|
32
|
+
import '../private/AdditionalLayerPosition.js';
|
|
32
33
|
import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
33
34
|
import '../logger.js';
|
|
34
35
|
import '../private/FrameReaders/ColorType.js';
|
|
36
|
+
import '../private/BatteryInterface.js';
|
|
35
37
|
import '../LoadingStatus.js';
|
|
36
38
|
import '../private/djinni-types/index.js';
|
|
37
39
|
import '../private/HtmlElementState.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as CameraFOVSwitchControl}from'../chunks/chunk-
|
|
1
|
+
export{a as CameraFOVSwitchControl}from'../chunks/chunk-7ZU6DPLL.js';export{a as CameraSwitchControl}from'../chunks/chunk-H7FKC2FI.js';export{a as TorchSwitchControl}from'../chunks/chunk-FHNMZZV2.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import {
|
|
2
|
+
import { k as VideoResolution, F as FocusGestureStrategy, b as CameraPosition } from '../Camera-BnPnXqAt.js';
|
|
3
3
|
import '../ScanditIcon.js';
|
|
4
|
-
import '../DataCaptureContext-
|
|
4
|
+
import '../DataCaptureContext-LM_Re1B4.js';
|
|
5
5
|
import '../commons/Rect.js';
|
|
6
6
|
import '../private/Serializable.js';
|
|
7
7
|
import '../commons/Point.js';
|
|
@@ -26,9 +26,11 @@ import '../private/CustomLocationsView.js';
|
|
|
26
26
|
import '../private/View.js';
|
|
27
27
|
import '../private/AnchorPositions.js';
|
|
28
28
|
import '../private/nativeHandle.js';
|
|
29
|
+
import '../private/AdditionalLayerPosition.js';
|
|
29
30
|
import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
30
31
|
import '../logger.js';
|
|
31
32
|
import '../private/FrameReaders/ColorType.js';
|
|
33
|
+
import '../private/BatteryInterface.js';
|
|
32
34
|
import '../LoadingStatus.js';
|
|
33
35
|
import '../private/djinni-types/index.js';
|
|
34
36
|
import '../private/HtmlElementState.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import {
|
|
2
|
+
import { k as VideoResolution, F as FocusGestureStrategy } from '../Camera-BnPnXqAt.js';
|
|
3
3
|
import '../commons/Rect.js';
|
|
4
4
|
import '../private/Serializable.js';
|
|
5
5
|
import '../commons/Point.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as defaultDataCaptureView}from'../chunks/chunk-
|
|
1
|
+
export{a as defaultDataCaptureView}from'../chunks/chunk-2OCDIZIS.js';
|
package/build/js/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export { AimerViewfinder } from './AimerViewfinder.js';
|
|
|
5
5
|
export { BrowserCompatibility, Feature } from './browserCompatibility.js';
|
|
6
6
|
export { BrowserHelper, DisplayMode } from './browserHelper.js';
|
|
7
7
|
export { Brush, BrushJSON } from './Brush.js';
|
|
8
|
-
export {
|
|
8
|
+
export { C as Camera, a as CameraJSON, b as CameraPosition, c as CameraSettings, d as CameraSettingsFromJSON, e as CameraSettingsJSON, f as CameraSettingsJSONBase, F as FocusGestureStrategy, g as FrameSource, h as FrameSourceJSON, i as FrameSourceListener, j as FrameSourceState, P as PrivateCameraExtraProperties, T as TorchState, V as VideoFrameResolution, k as VideoResolution, l as isCameraFrameSource } from './Camera-BnPnXqAt.js';
|
|
9
9
|
export { Anchor } from './commons/Anchor.js';
|
|
10
10
|
export { Color, ColorJSON } from './commons/Color.js';
|
|
11
11
|
export { Direction } from './commons/Direction.js';
|
|
@@ -26,7 +26,7 @@ export { SizeWithUnit, SizeWithUnitJSON } from './commons/SizeWithUnit.js';
|
|
|
26
26
|
export { SizeWithUnitAndAspect, SizeWithUnitAndAspectJSON } from './commons/SizeWithUnitAndAspect.js';
|
|
27
27
|
export { CameraFOVSwitchControl } from './controls/CameraFOVSwitchControl.js';
|
|
28
28
|
export { CameraSwitchControl } from './controls/CameraSwitchControl.js';
|
|
29
|
-
export { b as Change,
|
|
29
|
+
export { b as Change, c as ContextStatus, d as ContextStatusJSON, C as Control, a as ControlType, D as DataCaptureComponent, e as DataCaptureComponentJSON, f as DataCaptureContext, g as DataCaptureContextCreationOptions, h as DataCaptureContextJSON, i as DataCaptureContextListener, j as DataCaptureContextState, k as DataCaptureLoader, l as DataCaptureLoaderOptions, m as DataCaptureMode, n as DataCaptureModeJSON, o as DataCaptureOverlay, p as DataCaptureView, q as DataCaptureViewConnectOptions, r as DataCaptureViewJSON, s as DataCaptureViewListener, F as FrameData, M as ModuleLoader, t as ModuleLoaderOptions, P as PrivateCapabilityInfo, u as PrivateChangeSet, v as PrivateDataCaptureComponent, w as PrivateDataCaptureContext, x as PrivateDataCaptureContextOptions, y as PrivateDataCaptureMode, z as PrivateFrameHandler, A as PrivateFrameHandlerResponse, B as PrivateLoadableFrameData, E as PrivateMirrorAxis, G as convertToPublicFrameData } from './DataCaptureContext-LM_Re1B4.js';
|
|
30
30
|
export { TorchSwitchControl } from './controls/TorchSwitchControl.js';
|
|
31
31
|
export { DataCaptureContextSettings, DataCaptureContextSettingsJSON } from './DataCaptureContextSettings.js';
|
|
32
32
|
export { DataCaptureError, DataCaptureErrorDetails } from './DataCaptureError.js';
|
|
@@ -42,6 +42,7 @@ export { NotificationBuilder } from './NotificationPresenter/NotificationBuilder
|
|
|
42
42
|
export { NotificationConfiguration } from './NotificationPresenter/NotificationConfiguration.js';
|
|
43
43
|
export { NotificationPresenter } from './NotificationPresenter/NotificationPresenter.js';
|
|
44
44
|
export { NotificationStyle } from './NotificationPresenter/NotificationStyle.js';
|
|
45
|
+
export { AdditionalLayerPosition } from './private/AdditionalLayerPosition.js';
|
|
45
46
|
export { AnchorPositions, AnchorPositionsJSON } from './private/AnchorPositions.js';
|
|
46
47
|
export { ScanditHTMLElement } from './private/utils/ScanditHTMLElement.js';
|
|
47
48
|
export { RectangularViewfinder } from './RectangularViewfinder.js';
|
|
@@ -55,14 +56,15 @@ export { DeepMutable, DeepPartial, DistributiveKeyOf, MethodSignature, Mutable,
|
|
|
55
56
|
export { Vibration } from './Vibration.js';
|
|
56
57
|
export { NoViewfinder, Viewfinder } from './Viewfinder.js';
|
|
57
58
|
export { AimerViewfinderJSON, LaserlineViewfinderJSON, PrivateLaserlineViewfinderDefault, PrivateRectangularViewfinderAnimation, PrivateRectangularViewfinderDefault, RectangularViewfinderAnimation, RectangularViewfinderJSON, RectangularViewfinderLineStyle, RectangularViewfinderStyle, ViewfinderJSON, ViewfinderType, ViewfinderTypeAimer, ViewfinderTypeLaserLine, ViewfinderTypeNone, ViewfinderTypeRectangular, ViewfinderTypeTargetAimer } from './ViewfinderPlusRelated.js';
|
|
59
|
+
export { INTERNAL_ACCESS } from './private/privateAccess.js';
|
|
58
60
|
export { WorkerMain } from './worker/WorkerMain.js';
|
|
59
61
|
import './private/Serializable.js';
|
|
60
|
-
import './private/privateAccess.js';
|
|
61
62
|
import './private/CustomLocationsView.js';
|
|
62
63
|
import './private/View.js';
|
|
63
64
|
import './private/nativeHandle.js';
|
|
64
65
|
import './license/OpenSourceSoftwareLicenseInfo.js';
|
|
65
66
|
import './private/FrameReaders/ColorType.js';
|
|
67
|
+
import './private/BatteryInterface.js';
|
|
66
68
|
import './private/djinni-types/index.js';
|
|
67
69
|
import './private/HtmlElementState.js';
|
|
68
70
|
import './private/utils/AsyncStateMachine.js';
|
package/build/js/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DataCaptureLoader}from'./chunks/chunk-
|
|
1
|
+
export{a as DataCaptureLoader}from'./chunks/chunk-YJNJGCAN.js';export{a as WorkerMain}from'./chunks/chunk-YXXMWHFX.js';export{a as CameraFOVSwitchControl}from'./chunks/chunk-7ZU6DPLL.js';export{a as CameraSwitchControl}from'./chunks/chunk-H7FKC2FI.js';export{a as TorchSwitchControl}from'./chunks/chunk-FHNMZZV2.js';export{a as RectWithUnit}from'./chunks/chunk-TKO5JMMS.js';export{a as Direction}from'./chunks/chunk-WARGMW7Z.js';export{a as NotificationBuilder}from'./chunks/chunk-5LXHD7FZ.js';export{a as NoViewfinder}from'./chunks/chunk-4ZMCJXZS.js';export{a as PrivateNoneLocationSelection,b as RadiusLocationSelection,c as RectangularLocationSelection}from'./chunks/chunk-CAHJ3YOV.js';export{a as RectangularViewfinder}from'./chunks/chunk-GPUTPXQM.js';export{c as ScanditIconBuilder,b as ScanditIconForIconType,a as ScanditIconType}from'./chunks/chunk-DQ5X7FNV.js';export{b as ScanditIcon,a as ScanditIconShape}from'./chunks/chunk-FMOB7R2T.js';export{a as SingleImageUploader}from'./chunks/chunk-EQP4U5U2.js';export{a as SingleImageUploaderSettings}from'./chunks/chunk-IMXMNDKM.js';export{a as DataCaptureVersion}from'./chunks/chunk-7JVAQ2A3.js';export{a as DataCaptureView}from'./chunks/chunk-BQO4QYI6.js';export{a as AdditionalLayerPosition}from'./chunks/chunk-DZE2EYSZ.js';export{a as AnchorPositions}from'./chunks/chunk-RSQRPDVQ.js';export{a as Orientation}from'./chunks/chunk-5RCWM6NI.js';export{a as PointWithUnit}from'./chunks/chunk-BDGRWHLY.js';export{a as Quadrilateral}from'./chunks/chunk-IJQG3OU6.js';export{a as Anchor}from'./chunks/chunk-Y7ZNLVR2.js';export{a as MarginsWithUnit}from'./chunks/chunk-MA6UDVDJ.js';export{a as NotificationConfiguration}from'./chunks/chunk-CRUOVJHW.js';export{a as NotificationStyle}from'./chunks/chunk-RXT3JWWR.js';export{a as MeasureUnit}from'./chunks/chunk-QQEY536Q.js';export{a as LogoStyle,c as SwipeToZoom,b as TapToFocus}from'./chunks/chunk-GX4YCYCH.js';export{a as Feedback}from'./chunks/chunk-7EGT56UE.js';export{a as Sound}from'./chunks/chunk-BV63CXZF.js';export{a as Vibration}from'./chunks/chunk-IASACVTH.js';export{a as convertToPublicFrameData}from'./chunks/chunk-W33RVR5M.js';export{a as ImageFrameSource}from'./chunks/chunk-OCKYBUXO.js';export{a as LaserlineViewfinder}from'./chunks/chunk-RXPPTQAB.js';export{a as AimerViewfinder}from'./chunks/chunk-3KKUZY2T.js';export{c as RectangularViewfinderAnimation,b as RectangularViewfinderLineStyle,a as RectangularViewfinderStyle}from'./chunks/chunk-WGLHZXRT.js';export{a as SizeWithUnitAndAspect}from'./chunks/chunk-AZWFNBVA.js';export{a as SizeWithAspect}from'./chunks/chunk-FR24G4R7.js';export{a as SizingMode}from'./chunks/chunk-2JIATMSD.js';export{a as SizeWithUnit}from'./chunks/chunk-F2GMW4LP.js';export{a as NumberWithUnit}from'./chunks/chunk-ENYHCJGH.js';export{a as Brush}from'./chunks/chunk-YOTQPBO6.js';export{a as Color}from'./chunks/chunk-SGL5J2CI.js';export{a as Camera}from'./chunks/chunk-XW3Z6KKS.js';export{a as INTERNAL_ACCESS}from'./chunks/chunk-LFJUGRQV.js';export{b as DataCaptureContext}from'./chunks/chunk-YMM2PV73.js';export{a as OverrideState}from'./chunks/chunk-6W7FX6LD.js';export{b as loadingStatus}from'./chunks/chunk-6H6FKGVE.js';export{a as Localization}from'./chunks/chunk-GHTCNOQN.js';export{a as ScanditHTMLElement}from'./chunks/chunk-EV4OEANA.js';export{a as Point}from'./chunks/chunk-KAFNKP6O.js';export{a as Rect}from'./chunks/chunk-E4XJ4GKD.js';export{a as Size}from'./chunks/chunk-QOCHMKNY.js';export{a as assert,b as assertUnreachable,c as assertUnreachableThrowException}from'./chunks/chunk-FTD535WI.js';export{b as BrowserHelper,a as DisplayMode}from'./chunks/chunk-YONR3EGV.js';export{a as Feature}from'./chunks/chunk-NVK73TNL.js';export{a as Logger}from'./chunks/chunk-XR65N6EG.js';export{c as CameraPosition,g as CameraSettings,e as FocusGestureStrategy,a as FrameSourceState,b as TorchState,d as VideoResolution,f as isCameraFrameSource}from'./chunks/chunk-3D2HNEVH.js';export{a as ContextStatus,b as PrivateMirrorAxis}from'./chunks/chunk-WUHKODFA.js';export{a as DataCaptureContextSettings}from'./chunks/chunk-7SW2PEHB.js';export{a as DataCaptureError}from'./chunks/chunk-QCZSSQAQ.js';
|