@scandit/web-datacapture-core 8.0.0-beta.1 → 8.0.0
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/build/js/Camera.js +1 -1
- package/build/js/{DataCaptureContext-1YWunZAJ.d.ts → DataCaptureContext-8EuyQSL7.d.ts} +41 -8
- package/build/js/DataCaptureContext.d.ts +2 -1
- package/build/js/DataCaptureContext.js +1 -1
- package/build/js/DataCaptureContextRelated.d.ts +2 -1
- package/build/js/DataCaptureVersion.js +1 -1
- package/build/js/DataCaptureView.d.ts +2 -1
- package/build/js/DataCaptureView.js +1 -1
- package/build/js/Feedback.js +1 -1
- package/build/js/FrameData.d.ts +2 -1
- package/build/js/NotificationPresenter/index.d.ts +2 -1
- package/build/js/NotificationPresenter/private/ConcreteNotificationPresenter.d.ts +2 -1
- package/build/js/NotificationPresenter/private/presets.d.ts +2 -1
- package/build/js/ScanditIcon.js +1 -1
- package/build/js/ScanditIconBuilder.js +1 -1
- package/build/js/Vibration.js +1 -1
- package/build/js/browserHelper.js +1 -1
- package/build/js/chunks/{chunk-ZEBGTTCX.js → chunk-2BBQRPKY.js} +1 -1
- package/build/js/chunks/{chunk-LMYUYJ3O.js → chunk-2EY4FBA3.js} +1 -1
- package/build/js/chunks/{chunk-D5RWW3H4.js → chunk-2VNXD4FC.js} +1 -1
- package/build/js/chunks/chunk-3HOGSYPB.js +1 -0
- package/build/js/chunks/chunk-4GP73VVU.js +97 -0
- package/build/js/chunks/{chunk-BXINLCBT.js → chunk-5MUFGMII.js} +1 -1
- package/build/js/chunks/{chunk-LYSTK36S.js → chunk-5TW3OTHU.js} +1 -1
- package/build/js/chunks/chunk-5YXBE5P2.js +1 -0
- package/build/js/chunks/{chunk-CXR3G5KR.js → chunk-7RMPOOYQ.js} +1 -1
- package/build/js/chunks/chunk-A5WVN3T4.js +1 -0
- package/build/js/chunks/chunk-AL6GJUID.js +1 -0
- package/build/js/chunks/chunk-B2I3SBRI.js +1 -0
- package/build/js/chunks/{chunk-GJGNNO4O.js → chunk-CF2DKFX2.js} +1 -1
- package/build/js/chunks/{chunk-AUONPF3B.js → chunk-EFFUWK5Z.js} +1 -1
- package/build/js/chunks/{chunk-CJOGOTBU.js → chunk-ELQAIHEQ.js} +1 -1
- package/build/js/chunks/{chunk-TH7Z32LP.js → chunk-GQVOVLRR.js} +1 -1
- package/build/js/chunks/chunk-GZMB3TRK.js +1 -0
- package/build/js/chunks/{chunk-O6PTTJES.js → chunk-HDY35RKY.js} +1 -1
- package/build/js/chunks/chunk-HTQSOUB3.js +6 -0
- package/build/js/chunks/chunk-I3U43DWH.js +1 -0
- package/build/js/chunks/{chunk-F2IJCZAS.js → chunk-IU22MD7N.js} +1 -1
- package/build/js/chunks/chunk-LXOZUOZU.js +1 -0
- package/build/js/chunks/chunk-MKTACV3Q.js +1 -0
- package/build/js/chunks/{chunk-SJOZM6AL.js → chunk-MTNFYUSF.js} +1 -1
- package/build/js/chunks/chunk-NQF3GUK2.js +1 -0
- package/build/js/chunks/{chunk-ULRY4SXF.js → chunk-PAPLDTB7.js} +1 -1
- package/build/js/chunks/{chunk-627VMN74.js → chunk-QDZ6UZHF.js} +1 -1
- package/build/js/chunks/{chunk-TAUJTFZC.js → chunk-RETAUGCJ.js} +1 -1
- package/build/js/chunks/{chunk-UQJHBITP.js → chunk-T3DJYPIP.js} +1 -1
- package/build/js/chunks/{chunk-4GKVQAVF.js → chunk-T4QDTXZN.js} +1 -1
- package/build/js/chunks/{chunk-SJ3K5O2N.js → chunk-TDOKACT7.js} +1 -1
- package/build/js/chunks/{chunk-5JAPQHXF.js → chunk-UBDDFAOX.js} +1 -1
- package/build/js/chunks/{chunk-3KWRROUJ.js → chunk-UMHCVFPN.js} +1 -1
- package/build/js/chunks/{chunk-L674VY5B.js → chunk-WAJ5PI3A.js} +1 -1
- package/build/js/chunks/{chunk-DPJEOND4.js → chunk-WNFUUIF3.js} +1 -1
- package/build/js/chunks/chunk-XVVC3E6G.js +35 -0
- package/build/js/index.d.ts +2 -1
- package/build/js/index.js +1 -1
- package/build/js/moduleLoader.d.ts +2 -1
- package/build/js/private/AsyncImageConverterBase.d.ts +44 -0
- package/build/js/private/AsyncImageConverterBase.js +1 -0
- package/build/js/private/AsyncImageConverterMainThread.d.ts +13 -0
- package/build/js/private/AsyncImageConverterMainThread.js +1 -0
- package/build/js/private/CameraAccess.js +1 -1
- package/build/js/private/CameraManager.d.ts +2 -1
- package/build/js/private/CameraManager.js +1 -1
- package/build/js/private/CameraPool.d.ts +2 -1
- package/build/js/private/CanvasDrawerWithMetrics.d.ts +2 -1
- package/build/js/private/CoreModuleLicenseTextProvider.d.ts +2 -1
- package/build/js/private/CoreModuleLicenseTextProvider.js +1 -1
- package/build/js/private/DataCaptureContextRelated.d.ts +2 -1
- package/build/js/private/FrameReaders/FrameReader.d.ts +2 -1
- package/build/js/private/FrameReaders/FrameReader.js +1 -1
- package/build/js/private/FrameReaders/FrameReaderAbstract.d.ts +2 -1
- package/build/js/private/FrameReaders/FrameReaderAbstract.js +1 -1
- 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 +2 -1
- package/build/js/private/FrameReaders/index.js +1 -1
- package/build/js/private/NormalizedModuleLoaderOptions.d.ts +2 -1
- package/build/js/private/ViewControls+related.js +1 -1
- package/build/js/private/ViewControls_related.d.ts +2 -1
- package/build/js/private/ViewsRegistry.d.ts +2 -1
- package/build/js/private/djinni-types/index.d.ts +48 -0
- package/build/js/private/djinni-types/index.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/CameraSwitchReverseSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraSwitchSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Card.d.ts +2 -2
- 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/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/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/ShutterButton.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 +2 -1
- package/build/js/private/ui/atoms/Toast.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/HintPresenter.d.ts +2 -1
- package/build/js/private/ui/molecules/HintPresenter.js +1 -1
- package/build/js/private/ui/molecules/LoadingOverlay.js +1 -1
- package/build/js/private/utils/AsyncStateMachine.d.ts +14 -2
- package/build/js/private/utils/AsyncStateMachine.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 +2 -1
- package/build/js/private/utils/safeStorage.js +1 -1
- package/build/js/private/utils/warnMultithreadingUnavailable.js +1 -1
- package/build/js/worker/AsyncImageConverterForwarder.d.ts +52 -0
- package/build/js/worker/AsyncImageConverterForwarder.js +1 -0
- package/build/js/worker/AsyncImageConverterWorker.d.ts +13 -0
- package/build/js/worker/AsyncImageConverterWorker.js +1 -0
- package/build/js/worker/WorkerMain.d.ts +2 -1
- package/build/js/worker/WorkerMain.js +1 -1
- package/build/js/worker/coreCapture.inlineWorker.d.ts +2 -1
- package/build/js/worker/coreCapture.inlineWorker.js +1 -1
- package/build/js/worker/dataCaptureEngine.d.ts +2 -1
- package/build/js/worker/dataCaptureEngine.js +1 -1
- package/build/js/worker/dataCaptureLoader.d.ts +2 -1
- package/build/js/worker/dataCaptureLoader.js +1 -1
- package/build/js/worker/dataCaptureWorkerRelated.d.ts +2 -1
- package/build/js/worker/index.d.ts +2 -1
- package/build/js/worker/index.js +1 -1
- package/package.json +1 -1
- package/build/js/chunks/chunk-6HH3HY5J.js +0 -6
- package/build/js/chunks/chunk-7B2VPGLP.js +0 -35
- package/build/js/chunks/chunk-BSIP2HDE.js +0 -1
- package/build/js/chunks/chunk-KMGMYFZI.js +0 -1
- package/build/js/chunks/chunk-MW5PTAU7.js +0 -1
- package/build/js/chunks/chunk-O3GEDPJS.js +0 -1
- package/build/js/chunks/chunk-XZO7D4BC.js +0 -1
- package/build/js/chunks/chunk-YNHLZS7P.js +0 -1
- package/build/js/chunks/chunk-ZNO7QV4M.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {b as b$2}from'./chunk-ZNO7QV4M.js';import {c,d,b as b$1,a as a$1,e}from'./chunk-PXPLMVCF.js';import {a,b}from'./chunk-TR3NGINC.js';var Ae=a((Y,ie)=>{(function(m,u){var I="1.0.40",R="",h="?",E="function",g="undefined",C="object",O="string",k="major",e="model",r="name",i="type",o="vendor",n="version",T="architecture",D="console",l="mobile",w="tablet",S="smarttv",_="wearable",W="embedded",X=500,j="Amazon",L="Apple",V="ASUS",a="BlackBerry",t="Browser",c="Chrome",x="Edge",y="Firefox",P="Google",N="Huawei",oe="LG",re="Microsoft",be="Motorola",F="Opera",G="Samsung",ce="Sharp",K="Sony",ne="Xiaomi",te="Zebra",ue="Facebook",we="Chromium OS",de="Mac OS",pe=" Browser",Te=function(d,p){var b={};for(var v in d)p[v]&&p[v].length%2===0?b[v]=p[v].concat(d[v]):b[v]=d[v];return b},Z=function(d){for(var p={},b=0;b<d.length;b++)p[d[b].toUpperCase()]=d[b];return p},fe=function(d,p){return typeof d===O?z(p).indexOf(z(d))!==-1:false},z=function(d){return d.toLowerCase()},_e=function(d){return typeof d===O?d.replace(/[^\d\.]/g,R).split(".")[0]:u},ae=function(d,p){if(typeof d===O)return d=d.replace(/^\s\s*/,R),typeof p===g?d:d.substring(0,X)},H=function(d,p){for(var b=0,v,B,U,f,s,M;b<p.length&&!s;){var se=p[b],ve=p[b+1];for(v=B=0;v<se.length&&!s&&se[v];)if(s=se[v++].exec(d),s)for(U=0;U<ve.length;U++)M=s[++B],f=ve[U],typeof f===C&&f.length>0?f.length===2?typeof f[1]==E?this[f[0]]=f[1].call(this,M):this[f[0]]=f[1]:f.length===3?typeof f[1]===E&&!(f[1].exec&&f[1].test)?this[f[0]]=M?f[1].call(this,M,f[2]):u:this[f[0]]=M?M.replace(f[1],f[2]):u:f.length===4&&(this[f[0]]=M?f[3].call(this,M.replace(f[1],f[2])):u):this[f]=M||u;b+=2;}},$=function(d,p){for(var b in p)if(typeof p[b]===C&&p[b].length>0){for(var v=0;v<p[b].length;v++)if(fe(p[b][v],d))return b===h?u:b}else if(fe(p[b],d))return b===h?u:b;return p.hasOwnProperty("*")?p["*"]:d},Re={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},me={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"},ge={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[n,[r,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[n,[r,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[r,n],[/opios[\/ ]+([\w\.]+)/i],[n,[r,F+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[n,[r,F+" GX"]],[/\bopr\/([\w\.]+)/i],[n,[r,F]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[n,[r,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[n,[r,"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],[r,n],[/quark(?:pc)?\/([-\w\.]+)/i],[n,[r,"Quark"]],[/\bddg\/([\w\.]+)/i],[n,[r,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[n,[r,"UC"+t]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[n,[r,"WeChat"]],[/konqueror\/([\w\.]+)/i],[n,[r,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[n,[r,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[n,[r,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[n,[r,"Smart Lenovo "+t]],[/(avast|avg)\/([\w\.]+)/i],[[r,/(.+)/,"$1 Secure "+t],n],[/\bfocus\/([\w\.]+)/i],[n,[r,y+" Focus"]],[/\bopt\/([\w\.]+)/i],[n,[r,F+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[n,[r,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[n,[r,"Dolphin"]],[/coast\/([\w\.]+)/i],[n,[r,F+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[n,[r,"MIUI"+pe]],[/fxios\/([\w\.-]+)/i],[n,[r,y]],[/\bqihoobrowser\/?([\w\.]*)/i],[n,[r,"360"]],[/\b(qq)\/([\w\.]+)/i],[[r,/(.+)/,"$1Browser"],n],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[r,/(.+)/,"$1"+pe],n],[/samsungbrowser\/([\w\.]+)/i],[n,[r,G+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[n,[r,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[r,"Sogou Mobile"],n],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[r,n],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[r],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[n,r],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[r,ue],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],[r,n],[/\bgsa\/([\w\.]+) .*safari\//i],[n,[r,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[n,[r,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[n,[r,c+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[r,c+" WebView"],n],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[n,[r,"Android "+t]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[r,n],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[n,[r,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[n,r],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[r,[n,$,Re]],[/(webkit|khtml)\/([\w\.]+)/i],[r,n],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[r,"Netscape"],n],[/(wolvic|librewolf)\/([\w\.]+)/i],[r,n],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[n,[r,y+" 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],[r,[n,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[r,[n,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[T,"amd64"]],[/(ia32(?=;))/i],[[T,z]],[/((?:i[346]|x)86)[;\)]/i],[[T,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[T,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[T,"armhf"]],[/windows (ce|mobile); ppc;/i],[[T,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[T,/ower/,R,z]],[/(sun4\w)[;\)]/i],[[T,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[T,z]]],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],[e,[o,G],[i,w]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[e,[o,G],[i,l]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[e,[o,L],[i,l]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[e,[o,L],[i,w]],[/(macintosh);/i],[e,[o,L]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[e,[o,ce],[i,l]],[/(?:honor)([-\w ]+)[;\)]/i],[e,[o,"Honor"],[i,l]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[e,[o,N],[i,w]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[e,[o,N],[i,l]],[/\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],[[e,/_/g," "],[o,ne],[i,l]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[e,/_/g," "],[o,ne],[i,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[e,[o,"OPPO"],[i,l]],[/\b(opd2\d{3}a?) bui/i],[e,[o,"OPPO"],[i,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[e,[o,"Vivo"],[i,l]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[e,[o,"Realme"],[i,l]],[/\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],[e,[o,be],[i,l]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[e,[o,be],[i,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[e,[o,oe],[i,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[e,[o,oe],[i,l]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[e,[o,"Lenovo"],[i,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[e,/_/g," "],[o,"Nokia"],[i,l]],[/(pixel c)\b/i],[e,[o,P],[i,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[e,[o,P],[i,l]],[/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],[e,[o,K],[i,l]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[e,"Xperia Tablet"],[o,K],[i,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[e,[o,"OnePlus"],[i,l]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[e,[o,j],[i,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[e,/(.+)/g,"Fire Phone $1"],[o,j],[i,l]],[/(playbook);[-\w\),; ]+(rim)/i],[e,o,[i,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[e,[o,a],[i,l]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[e,[o,V],[i,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[e,[o,V],[i,l]],[/(nexus 9)/i],[e,[o,"HTC"],[i,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[o,[e,/_/g," "],[i,l]],[/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],[e,[o,"TCL"],[i,w]],[/(itel) ((\w+))/i],[[o,z],e,[i,$,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[e,[o,"Acer"],[i,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[e,[o,"Meizu"],[i,l]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[e,[o,"Ulefone"],[i,l]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[e,[o,"Energizer"],[i,l]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[e,[o,"Cat"],[i,l]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[e,[o,"Smartfren"],[i,l]],[/droid.+; (a(?:015|06[35]|142p?))/i],[e,[o,"Nothing"],[i,l]],[/(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,e,[i,l]],[/(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,e,[i,w]],[/(surface duo)/i],[e,[o,re],[i,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[e,[o,"Fairphone"],[i,l]],[/(u304aa)/i],[e,[o,"AT&T"],[i,l]],[/\bsie-(\w*)/i],[e,[o,"Siemens"],[i,l]],[/\b(rct\w+) b/i],[e,[o,"RCA"],[i,w]],[/\b(venue[\d ]{2,7}) b/i],[e,[o,"Dell"],[i,w]],[/\b(q(?:mv|ta)\w+) b/i],[e,[o,"Verizon"],[i,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[e,[o,"Barnes & Noble"],[i,w]],[/\b(tm\d{3}\w+) b/i],[e,[o,"NuVision"],[i,w]],[/\b(k88) b/i],[e,[o,"ZTE"],[i,w]],[/\b(nx\d{3}j) b/i],[e,[o,"ZTE"],[i,l]],[/\b(gen\d{3}) b.+49h/i],[e,[o,"Swiss"],[i,l]],[/\b(zur\d{3}) b/i],[e,[o,"Swiss"],[i,w]],[/\b((zeki)?tb.*\b) b/i],[e,[o,"Zeki"],[i,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[o,"Dragon Touch"],e,[i,w]],[/\b(ns-?\w{0,9}) b/i],[e,[o,"Insignia"],[i,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[e,[o,"NextBook"],[i,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[o,"Voice"],e,[i,l]],[/\b(lvtel\-)?(v1[12]) b/i],[[o,"LvTel"],e,[i,l]],[/\b(ph-1) /i],[e,[o,"Essential"],[i,l]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[e,[o,"Envizen"],[i,w]],[/\b(trio[-\w\. ]+) b/i],[e,[o,"MachSpeed"],[i,w]],[/\btu_(1491) b/i],[e,[o,"Rotor"],[i,w]],[/(shield[\w ]+) b/i],[e,[o,"Nvidia"],[i,w]],[/(sprint) (\w+)/i],[o,e,[i,l]],[/(kin\.[onetw]{3})/i],[[e,/\./g," "],[o,re],[i,l]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[e,[o,te],[i,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[e,[o,te],[i,l]],[/smart-tv.+(samsung)/i],[o,[i,S]],[/hbbtv.+maple;(\d+)/i],[[e,/^/,"SmartTV"],[o,G],[i,S]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[o,oe],[i,S]],[/(apple) ?tv/i],[o,[e,L+" TV"],[i,S]],[/crkey/i],[[e,c+"cast"],[o,P],[i,S]],[/droid.+aft(\w+)( bui|\))/i],[e,[o,j],[i,S]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[e,[o,ce],[i,S]],[/(bravia[\w ]+)( bui|\))/i],[e,[o,K],[i,S]],[/(mitv-\w{5}) bui/i],[e,[o,ne],[i,S]],[/Hbbtv.*(technisat) (.*);/i],[o,e,[i,S]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[o,ae],[e,ae],[i,S]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[i,S]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[o,e,[i,D]],[/droid.+; (shield) bui/i],[e,[o,"Nvidia"],[i,D]],[/(playstation [345portablevi]+)/i],[e,[o,K],[i,D]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[e,[o,re],[i,D]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[e,[o,G],[i,_]],[/((pebble))app/i],[o,e,[i,_]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[e,[o,L],[i,_]],[/droid.+; (glass) \d/i],[e,[o,P],[i,_]],[/droid.+; (wt63?0{2,3})\)/i],[e,[o,te],[i,_]],[/droid.+; (glass) \d/i],[e,[o,P],[i,_]],[/(pico) (4|neo3(?: link|pro)?)/i],[o,e,[i,_]],[/; (quest( \d| pro)?)/i],[e,[o,ue],[i,_]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[o,[i,W]],[/(aeobc)\b/i],[e,[o,j],[i,W]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[e,[i,l]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[e,[i,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[i,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[i,l]],[/(android[-\w\. ]{0,9});.+buil/i],[e,[o,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[n,[r,x+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[r,n],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[n,[r,"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],[r,n],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[n,r]],os:[[/microsoft (windows) (vista|xp)/i],[r,n],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[r,[n,$,me]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[n,$,me],[r,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[n,/_/g,"."],[r,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[r,de],[n,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[n,r],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[r,n],[/\(bb(10);/i],[n,[r,a]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[n,[r,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[n,[r,y+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[n,[r,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[n,[r,"watchOS"]],[/crkey\/([\d\.]+)/i],[n,[r,c+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[r,we],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],[r,n],[/(sunos) ?([\w\.\d]*)/i],[[r,"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],[r,n]]},A=function(d,p){if(typeof d===C&&(p=d,d=u),!(this instanceof A))return new A(d,p).getResult();var b=typeof m!==g&&m.navigator?m.navigator:u,v=d||(b&&b.userAgent?b.userAgent:R),B=b&&b.userAgentData?b.userAgentData:u,U=p?Te(ge,p):ge,f=b&&b.userAgent==v;return this.getBrowser=function(){var s={};return s[r]=u,s[n]=u,H.call(s,v,U.browser),s[k]=_e(s[n]),f&&b&&b.brave&&typeof b.brave.isBrave==E&&(s[r]="Brave"),s},this.getCPU=function(){var s={};return s[T]=u,H.call(s,v,U.cpu),s},this.getDevice=function(){var s={};return s[o]=u,s[e]=u,s[i]=u,H.call(s,v,U.device),f&&!s[i]&&B&&B.mobile&&(s[i]=l),f&&s[e]=="Macintosh"&&b&&typeof b.standalone!==g&&b.maxTouchPoints&&b.maxTouchPoints>2&&(s[e]="iPad",s[i]=w),s},this.getEngine=function(){var s={};return s[r]=u,s[n]=u,H.call(s,v,U.engine),s},this.getOS=function(){var s={};return s[r]=u,s[n]=u,H.call(s,v,U.os),f&&!s[r]&&B&&B.platform&&B.platform!="Unknown"&&(s[r]=B.platform.replace(/chrome os/i,we).replace(/macos/i,de)),s},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(s){return v=typeof s===O&&s.length>X?ae(s,X):s,this},this.setUA(v),this};A.VERSION=I,A.BROWSER=Z([r,n,k]),A.CPU=Z([T]),A.DEVICE=Z([e,o,i,D,l,S,w,_,W]),A.ENGINE=A.OS=Z([r,n]),typeof Y!==g?(typeof ie!==g&&ie.exports&&(Y=ie.exports=A),Y.UAParser=A):typeof define===E&&define.amd?define(function(){return A}):typeof m!==g&&(m.UAParser=A);var q=typeof m!==g&&(m.jQuery||m.Zepto);if(q&&!q.ua){var J=new A;q.ua=J.getResult(),q.ua.get=function(){return J.getUA()},q.ua.set=function(d){J.setUA(d);var p=J.getResult();for(var b in p)q.ua[b]=p[b];};}})(typeof window=="object"?window:Y);});function ee(m){for(var u=1;u<arguments.length;u++){var I=arguments[u];for(var R in I)m[R]=I[R];}return m}var Ie={read:function(m){return m[0]==='"'&&(m=m.slice(1,-1)),m.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(m){return encodeURIComponent(m).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function le(m,u){function I(h,E,g){if(!(typeof document>"u")){g=ee({},u,g),typeof g.expires=="number"&&(g.expires=new Date(Date.now()+g.expires*864e5)),g.expires&&(g.expires=g.expires.toUTCString()),h=encodeURIComponent(h).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var C="";for(var O in g)g[O]&&(C+="; "+O,g[O]!==true&&(C+="="+g[O].split(";")[0]));return document.cookie=h+"="+m.write(E,h)+C}}function R(h){if(!(typeof document>"u"||arguments.length&&!h)){for(var E=document.cookie?document.cookie.split("; "):[],g={},C=0;C<E.length;C++){var O=E[C].split("="),k=O.slice(1).join("=");try{var e=decodeURIComponent(O[0]);if(g[e]=m.read(k,e),h===e)break}catch{}}return h?g[h]:g}}return Object.create({set:I,get:R,remove:function(h,E){I(h,"",ee({},E,{expires:-1}));},withAttributes:function(h){return le(this.converter,ee({},this.attributes,h))},withConverter:function(h){return le(ee({},this.converter,h),this.attributes)}},{attributes:{value:Object.freeze(u)},converter:{value:Object.freeze(m)}})}var Oe=le(Ie,{path:"/"});var Ce=b(Ae(),1);var Ee;(V=>{let m;function u(){return m==null&&(m=new Ce.default(navigator.userAgent)),m}V.getUserAgentInfo=u;function I(){var c;if("orientation"in window)return false;let a="(any-pointer: coarse)",t=(c=window.matchMedia)==null?void 0:c.call(window,a);return navigator.maxTouchPoints===0||(t==null?void 0:t.media)===a&&!(t!=null&&t.matches)}V.isDesktopDevice=I;function R(){return u().getDevice().model==="iPhone"}V.isIPhone=R;function h(){let a=u().getOS();return a.name==="iOS"&&a.version!=null&&a.version.localeCompare("16.3",void 0,{numeric:true})>=0}V.isIOSDeviceWithExtendedCameraAccess=h;function E(){return "document"in window?window.document.createElement("canvas"):null}V.getCanvas=E;function g(a){return a.name==="iOS"&&a.version!=null&&["11.2.2","11.2.5","11.2.6"].includes(a.version)}async function C(){return c()}V.hasSIMDSupport=C;async function O(){return d()}V.hasThreadsSupport=O;function k(a,t,c){let x=a[t[0]];return x==null?false:t.length===1?typeof x===c:(typeof x=="function"||typeof x=="object")&&k(x,t.slice(1),c)}function e$1(){var P;let a=true,t=null,c=null,x=null,y=null;try{if(t=V.getCanvas(),c=V.getCanvas(),x=t==null?void 0:t.getContext("webgl"),y=c==null?void 0:c.getContext("experimental-webgl"),!k(window,["WebGLRenderingContext"],"function")||x==null&&y==null)throw new Error("WebGLRenderingContext is not supported")}catch{a=false;}finally{for(let N of [x,y])typeof(N==null?void 0:N.getExtension)=="function"&&((P=N.getExtension("WEBGL_lose_context"))==null||P.loseContext());x=null,y=null,t=null,c=null;}return a}function r(){let a=true,t=true,c=new Set;location.protocol.startsWith("http")||c.add("httpProtocol"),k(window,["isSecureContext"],"boolean")&&!window.isSecureContext&&c.add("secureContext"),!k(navigator,["mediaDevices","getUserMedia"],"function")&&!k(navigator,["enumerateDevices"],"function")&&!k(window,["MediaStreamTrack","getSources"],"function")&&(c.add("mediaDevices"),a=false),k(window,["Worker"],"function")||(c.add("webWorkers"),a=false,t=false),k(window,["WebAssembly"],"object")||(c.add("webAssembly"),a=false,t=false),k(window,["Blob"],"function")||(c.add("blob"),a=false,t=false),k(window,["URL","createObjectURL"],"function")||(c.add("urlObject"),a=false,t=false),k(window,["OffscreenCanvas"],"function")||c.add("offscreenCanvas"),e$1()||c.add("webGL");let x=u().getOS();return g(x)&&(c.add("webAssemblyErrorFree"),a=false,t=false),b$1()||c.add("sharedArrayBuffer"),a$1()||c.add("crossOriginIsolated"),L()||c.add("animationApi"),{fullSupport:a,scannerSupport:t,missingFeatures:[...c]}}V.checkBrowserCompatibility=r;async function i(){return e()}V.checkMultithreadingSupport=i;function o(){let a="scandit-device-id",t=b$2.getItem(a);if(t!=null&&t!=="")return t;if(t=Oe.get(a),t!=null&&t!=="")return b$2.setItem(a,t),t;let c=new Uint8Array(20);return crypto.getRandomValues(c),t=[...c].map(x=>{let y=x.toString(16);return y.length===1?`0${y}`:y}).join(""),b$2.setItem(a,t),t}V.getDeviceId=o;function n(a){return a instanceof HTMLElement||a!=null&&typeof a=="object"&&typeof a.tagName=="string"}V.isValidHTMLElement=n;function T(){var x,y;let a=u().getOS();if(a.name!=="iOS")return true;let[t,c]=(y=(x=a.version)==null?void 0:x.split(".").map(Number))!=null?y:[];return t>14||t===14&&c>=6}V.isSupportedIOSVersion=T;function D(){var a,t;return (t=(a=u().getBrowser().name)==null?void 0:a.toLowerCase().includes("safari"))!=null?t:false}V.isSafari=D;function l(){var t,c;return /iphone|ipod|ipad/.test((c=(t=u().getDevice().model)==null?void 0:t.toLowerCase())!=null?c:"")&&!D()}V.isIosWebView=l;async function w(){var t;return ((t=u().getOS().name)==null?void 0:t.toLowerCase())!=="android"?false:u().getUA().includes("wv")?true:[...(await fetch(document.location.toString(),{method:"HEAD"})).headers].some(([c])=>c.toLowerCase()==="x-requested-with")}V.isAndroidWebView=w;function S(){return u().getOS().name==="Windows"}V.isWindows=S;function _(){return u().getBrowser().name==="Firefox"}V.isFirefox=_;function W(){if("navigator"in globalThis){for(let a of ["vibrate","webkitVibrate","msVibrate","mozVibrate"])if(typeof navigator[a]=="function")return navigator[a]}}V.getSupportedVibrationMethod=W;function X(){return W()!=null&&!I()&&!S()&&!_()}V.isVibrationAvailable=X;function j(){return u().getOS().name==="iOS"}V.isIOS=j;function L(){return typeof globalThis.Animation<"u"&&typeof globalThis.KeyframeEffect<"u"&&typeof globalThis.Element.prototype.animate<"u"}V.isAnimationApiSupported=L;})(Ee||(Ee={}));
|
|
1
|
+
import {b as b$2}from'./chunk-MKTACV3Q.js';import {c,d,b as b$1,a as a$1,e}from'./chunk-PXPLMVCF.js';import {a,b}from'./chunk-TR3NGINC.js';var Ae=a((Y,ie)=>{(function(m,u){var I="1.0.40",R="",h="?",E="function",g="undefined",C="object",O="string",k="major",e="model",r="name",i="type",o="vendor",n="version",T="architecture",D="console",l="mobile",w="tablet",S="smarttv",_="wearable",W="embedded",X=500,j="Amazon",L="Apple",V="ASUS",a="BlackBerry",t="Browser",c="Chrome",x="Edge",y="Firefox",P="Google",N="Huawei",oe="LG",re="Microsoft",be="Motorola",F="Opera",G="Samsung",ce="Sharp",K="Sony",ne="Xiaomi",te="Zebra",ue="Facebook",we="Chromium OS",de="Mac OS",pe=" Browser",Te=function(d,p){var b={};for(var v in d)p[v]&&p[v].length%2===0?b[v]=p[v].concat(d[v]):b[v]=d[v];return b},Z=function(d){for(var p={},b=0;b<d.length;b++)p[d[b].toUpperCase()]=d[b];return p},fe=function(d,p){return typeof d===O?z(p).indexOf(z(d))!==-1:false},z=function(d){return d.toLowerCase()},_e=function(d){return typeof d===O?d.replace(/[^\d\.]/g,R).split(".")[0]:u},ae=function(d,p){if(typeof d===O)return d=d.replace(/^\s\s*/,R),typeof p===g?d:d.substring(0,X)},H=function(d,p){for(var b=0,v,B,U,f,s,M;b<p.length&&!s;){var se=p[b],ve=p[b+1];for(v=B=0;v<se.length&&!s&&se[v];)if(s=se[v++].exec(d),s)for(U=0;U<ve.length;U++)M=s[++B],f=ve[U],typeof f===C&&f.length>0?f.length===2?typeof f[1]==E?this[f[0]]=f[1].call(this,M):this[f[0]]=f[1]:f.length===3?typeof f[1]===E&&!(f[1].exec&&f[1].test)?this[f[0]]=M?f[1].call(this,M,f[2]):u:this[f[0]]=M?M.replace(f[1],f[2]):u:f.length===4&&(this[f[0]]=M?f[3].call(this,M.replace(f[1],f[2])):u):this[f]=M||u;b+=2;}},$=function(d,p){for(var b in p)if(typeof p[b]===C&&p[b].length>0){for(var v=0;v<p[b].length;v++)if(fe(p[b][v],d))return b===h?u:b}else if(fe(p[b],d))return b===h?u:b;return p.hasOwnProperty("*")?p["*"]:d},Re={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},me={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"},ge={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[n,[r,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[n,[r,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[r,n],[/opios[\/ ]+([\w\.]+)/i],[n,[r,F+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[n,[r,F+" GX"]],[/\bopr\/([\w\.]+)/i],[n,[r,F]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[n,[r,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[n,[r,"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],[r,n],[/quark(?:pc)?\/([-\w\.]+)/i],[n,[r,"Quark"]],[/\bddg\/([\w\.]+)/i],[n,[r,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[n,[r,"UC"+t]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[n,[r,"WeChat"]],[/konqueror\/([\w\.]+)/i],[n,[r,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[n,[r,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[n,[r,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[n,[r,"Smart Lenovo "+t]],[/(avast|avg)\/([\w\.]+)/i],[[r,/(.+)/,"$1 Secure "+t],n],[/\bfocus\/([\w\.]+)/i],[n,[r,y+" Focus"]],[/\bopt\/([\w\.]+)/i],[n,[r,F+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[n,[r,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[n,[r,"Dolphin"]],[/coast\/([\w\.]+)/i],[n,[r,F+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[n,[r,"MIUI"+pe]],[/fxios\/([\w\.-]+)/i],[n,[r,y]],[/\bqihoobrowser\/?([\w\.]*)/i],[n,[r,"360"]],[/\b(qq)\/([\w\.]+)/i],[[r,/(.+)/,"$1Browser"],n],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[r,/(.+)/,"$1"+pe],n],[/samsungbrowser\/([\w\.]+)/i],[n,[r,G+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[n,[r,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[r,"Sogou Mobile"],n],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[r,n],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[r],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[n,r],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[r,ue],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],[r,n],[/\bgsa\/([\w\.]+) .*safari\//i],[n,[r,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[n,[r,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[n,[r,c+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[r,c+" WebView"],n],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[n,[r,"Android "+t]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[r,n],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[n,[r,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[n,r],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[r,[n,$,Re]],[/(webkit|khtml)\/([\w\.]+)/i],[r,n],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[r,"Netscape"],n],[/(wolvic|librewolf)\/([\w\.]+)/i],[r,n],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[n,[r,y+" 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],[r,[n,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[r,[n,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[T,"amd64"]],[/(ia32(?=;))/i],[[T,z]],[/((?:i[346]|x)86)[;\)]/i],[[T,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[T,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[T,"armhf"]],[/windows (ce|mobile); ppc;/i],[[T,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[T,/ower/,R,z]],[/(sun4\w)[;\)]/i],[[T,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[T,z]]],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],[e,[o,G],[i,w]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[e,[o,G],[i,l]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[e,[o,L],[i,l]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[e,[o,L],[i,w]],[/(macintosh);/i],[e,[o,L]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[e,[o,ce],[i,l]],[/(?:honor)([-\w ]+)[;\)]/i],[e,[o,"Honor"],[i,l]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[e,[o,N],[i,w]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[e,[o,N],[i,l]],[/\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],[[e,/_/g," "],[o,ne],[i,l]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[e,/_/g," "],[o,ne],[i,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[e,[o,"OPPO"],[i,l]],[/\b(opd2\d{3}a?) bui/i],[e,[o,"OPPO"],[i,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[e,[o,"Vivo"],[i,l]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[e,[o,"Realme"],[i,l]],[/\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],[e,[o,be],[i,l]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[e,[o,be],[i,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[e,[o,oe],[i,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[e,[o,oe],[i,l]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[e,[o,"Lenovo"],[i,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[e,/_/g," "],[o,"Nokia"],[i,l]],[/(pixel c)\b/i],[e,[o,P],[i,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[e,[o,P],[i,l]],[/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],[e,[o,K],[i,l]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[e,"Xperia Tablet"],[o,K],[i,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[e,[o,"OnePlus"],[i,l]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[e,[o,j],[i,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[e,/(.+)/g,"Fire Phone $1"],[o,j],[i,l]],[/(playbook);[-\w\),; ]+(rim)/i],[e,o,[i,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[e,[o,a],[i,l]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[e,[o,V],[i,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[e,[o,V],[i,l]],[/(nexus 9)/i],[e,[o,"HTC"],[i,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[o,[e,/_/g," "],[i,l]],[/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],[e,[o,"TCL"],[i,w]],[/(itel) ((\w+))/i],[[o,z],e,[i,$,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[e,[o,"Acer"],[i,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[e,[o,"Meizu"],[i,l]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[e,[o,"Ulefone"],[i,l]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[e,[o,"Energizer"],[i,l]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[e,[o,"Cat"],[i,l]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[e,[o,"Smartfren"],[i,l]],[/droid.+; (a(?:015|06[35]|142p?))/i],[e,[o,"Nothing"],[i,l]],[/(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,e,[i,l]],[/(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,e,[i,w]],[/(surface duo)/i],[e,[o,re],[i,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[e,[o,"Fairphone"],[i,l]],[/(u304aa)/i],[e,[o,"AT&T"],[i,l]],[/\bsie-(\w*)/i],[e,[o,"Siemens"],[i,l]],[/\b(rct\w+) b/i],[e,[o,"RCA"],[i,w]],[/\b(venue[\d ]{2,7}) b/i],[e,[o,"Dell"],[i,w]],[/\b(q(?:mv|ta)\w+) b/i],[e,[o,"Verizon"],[i,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[e,[o,"Barnes & Noble"],[i,w]],[/\b(tm\d{3}\w+) b/i],[e,[o,"NuVision"],[i,w]],[/\b(k88) b/i],[e,[o,"ZTE"],[i,w]],[/\b(nx\d{3}j) b/i],[e,[o,"ZTE"],[i,l]],[/\b(gen\d{3}) b.+49h/i],[e,[o,"Swiss"],[i,l]],[/\b(zur\d{3}) b/i],[e,[o,"Swiss"],[i,w]],[/\b((zeki)?tb.*\b) b/i],[e,[o,"Zeki"],[i,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[o,"Dragon Touch"],e,[i,w]],[/\b(ns-?\w{0,9}) b/i],[e,[o,"Insignia"],[i,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[e,[o,"NextBook"],[i,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[o,"Voice"],e,[i,l]],[/\b(lvtel\-)?(v1[12]) b/i],[[o,"LvTel"],e,[i,l]],[/\b(ph-1) /i],[e,[o,"Essential"],[i,l]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[e,[o,"Envizen"],[i,w]],[/\b(trio[-\w\. ]+) b/i],[e,[o,"MachSpeed"],[i,w]],[/\btu_(1491) b/i],[e,[o,"Rotor"],[i,w]],[/(shield[\w ]+) b/i],[e,[o,"Nvidia"],[i,w]],[/(sprint) (\w+)/i],[o,e,[i,l]],[/(kin\.[onetw]{3})/i],[[e,/\./g," "],[o,re],[i,l]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[e,[o,te],[i,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[e,[o,te],[i,l]],[/smart-tv.+(samsung)/i],[o,[i,S]],[/hbbtv.+maple;(\d+)/i],[[e,/^/,"SmartTV"],[o,G],[i,S]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[o,oe],[i,S]],[/(apple) ?tv/i],[o,[e,L+" TV"],[i,S]],[/crkey/i],[[e,c+"cast"],[o,P],[i,S]],[/droid.+aft(\w+)( bui|\))/i],[e,[o,j],[i,S]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[e,[o,ce],[i,S]],[/(bravia[\w ]+)( bui|\))/i],[e,[o,K],[i,S]],[/(mitv-\w{5}) bui/i],[e,[o,ne],[i,S]],[/Hbbtv.*(technisat) (.*);/i],[o,e,[i,S]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[o,ae],[e,ae],[i,S]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[i,S]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[o,e,[i,D]],[/droid.+; (shield) bui/i],[e,[o,"Nvidia"],[i,D]],[/(playstation [345portablevi]+)/i],[e,[o,K],[i,D]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[e,[o,re],[i,D]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[e,[o,G],[i,_]],[/((pebble))app/i],[o,e,[i,_]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[e,[o,L],[i,_]],[/droid.+; (glass) \d/i],[e,[o,P],[i,_]],[/droid.+; (wt63?0{2,3})\)/i],[e,[o,te],[i,_]],[/droid.+; (glass) \d/i],[e,[o,P],[i,_]],[/(pico) (4|neo3(?: link|pro)?)/i],[o,e,[i,_]],[/; (quest( \d| pro)?)/i],[e,[o,ue],[i,_]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[o,[i,W]],[/(aeobc)\b/i],[e,[o,j],[i,W]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[e,[i,l]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[e,[i,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[i,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[i,l]],[/(android[-\w\. ]{0,9});.+buil/i],[e,[o,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[n,[r,x+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[r,n],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[n,[r,"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],[r,n],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[n,r]],os:[[/microsoft (windows) (vista|xp)/i],[r,n],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[r,[n,$,me]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[n,$,me],[r,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[n,/_/g,"."],[r,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[r,de],[n,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[n,r],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[r,n],[/\(bb(10);/i],[n,[r,a]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[n,[r,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[n,[r,y+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[n,[r,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[n,[r,"watchOS"]],[/crkey\/([\d\.]+)/i],[n,[r,c+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[r,we],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],[r,n],[/(sunos) ?([\w\.\d]*)/i],[[r,"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],[r,n]]},A=function(d,p){if(typeof d===C&&(p=d,d=u),!(this instanceof A))return new A(d,p).getResult();var b=typeof m!==g&&m.navigator?m.navigator:u,v=d||(b&&b.userAgent?b.userAgent:R),B=b&&b.userAgentData?b.userAgentData:u,U=p?Te(ge,p):ge,f=b&&b.userAgent==v;return this.getBrowser=function(){var s={};return s[r]=u,s[n]=u,H.call(s,v,U.browser),s[k]=_e(s[n]),f&&b&&b.brave&&typeof b.brave.isBrave==E&&(s[r]="Brave"),s},this.getCPU=function(){var s={};return s[T]=u,H.call(s,v,U.cpu),s},this.getDevice=function(){var s={};return s[o]=u,s[e]=u,s[i]=u,H.call(s,v,U.device),f&&!s[i]&&B&&B.mobile&&(s[i]=l),f&&s[e]=="Macintosh"&&b&&typeof b.standalone!==g&&b.maxTouchPoints&&b.maxTouchPoints>2&&(s[e]="iPad",s[i]=w),s},this.getEngine=function(){var s={};return s[r]=u,s[n]=u,H.call(s,v,U.engine),s},this.getOS=function(){var s={};return s[r]=u,s[n]=u,H.call(s,v,U.os),f&&!s[r]&&B&&B.platform&&B.platform!="Unknown"&&(s[r]=B.platform.replace(/chrome os/i,we).replace(/macos/i,de)),s},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(s){return v=typeof s===O&&s.length>X?ae(s,X):s,this},this.setUA(v),this};A.VERSION=I,A.BROWSER=Z([r,n,k]),A.CPU=Z([T]),A.DEVICE=Z([e,o,i,D,l,S,w,_,W]),A.ENGINE=A.OS=Z([r,n]),typeof Y!==g?(typeof ie!==g&&ie.exports&&(Y=ie.exports=A),Y.UAParser=A):typeof define===E&&define.amd?define(function(){return A}):typeof m!==g&&(m.UAParser=A);var q=typeof m!==g&&(m.jQuery||m.Zepto);if(q&&!q.ua){var J=new A;q.ua=J.getResult(),q.ua.get=function(){return J.getUA()},q.ua.set=function(d){J.setUA(d);var p=J.getResult();for(var b in p)q.ua[b]=p[b];};}})(typeof window=="object"?window:Y);});function ee(m){for(var u=1;u<arguments.length;u++){var I=arguments[u];for(var R in I)m[R]=I[R];}return m}var Ie={read:function(m){return m[0]==='"'&&(m=m.slice(1,-1)),m.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(m){return encodeURIComponent(m).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function le(m,u){function I(h,E,g){if(!(typeof document>"u")){g=ee({},u,g),typeof g.expires=="number"&&(g.expires=new Date(Date.now()+g.expires*864e5)),g.expires&&(g.expires=g.expires.toUTCString()),h=encodeURIComponent(h).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var C="";for(var O in g)g[O]&&(C+="; "+O,g[O]!==true&&(C+="="+g[O].split(";")[0]));return document.cookie=h+"="+m.write(E,h)+C}}function R(h){if(!(typeof document>"u"||arguments.length&&!h)){for(var E=document.cookie?document.cookie.split("; "):[],g={},C=0;C<E.length;C++){var O=E[C].split("="),k=O.slice(1).join("=");try{var e=decodeURIComponent(O[0]);if(g[e]=m.read(k,e),h===e)break}catch{}}return h?g[h]:g}}return Object.create({set:I,get:R,remove:function(h,E){I(h,"",ee({},E,{expires:-1}));},withAttributes:function(h){return le(this.converter,ee({},this.attributes,h))},withConverter:function(h){return le(ee({},this.converter,h),this.attributes)}},{attributes:{value:Object.freeze(u)},converter:{value:Object.freeze(m)}})}var Oe=le(Ie,{path:"/"});var Ce=b(Ae(),1);var Ee;(V=>{let m;function u(){return m==null&&(m=new Ce.default(navigator.userAgent)),m}V.getUserAgentInfo=u;function I(){var c;if("orientation"in window)return false;let a="(any-pointer: coarse)",t=(c=window.matchMedia)==null?void 0:c.call(window,a);return navigator.maxTouchPoints===0||(t==null?void 0:t.media)===a&&!(t!=null&&t.matches)}V.isDesktopDevice=I;function R(){return u().getDevice().model==="iPhone"}V.isIPhone=R;function h(){let a=u().getOS();return a.name==="iOS"&&a.version!=null&&a.version.localeCompare("16.3",void 0,{numeric:true})>=0}V.isIOSDeviceWithExtendedCameraAccess=h;function E(){return "document"in window?window.document.createElement("canvas"):null}V.getCanvas=E;function g(a){return a.name==="iOS"&&a.version!=null&&["11.2.2","11.2.5","11.2.6"].includes(a.version)}async function C(){return c()}V.hasSIMDSupport=C;async function O(){return d()}V.hasThreadsSupport=O;function k(a,t,c){let x=a[t[0]];return x==null?false:t.length===1?typeof x===c:(typeof x=="function"||typeof x=="object")&&k(x,t.slice(1),c)}function e$1(){var P;let a=true,t=null,c=null,x=null,y=null;try{if(t=V.getCanvas(),c=V.getCanvas(),x=t==null?void 0:t.getContext("webgl"),y=c==null?void 0:c.getContext("experimental-webgl"),!k(window,["WebGLRenderingContext"],"function")||x==null&&y==null)throw new Error("WebGLRenderingContext is not supported")}catch{a=false;}finally{for(let N of [x,y])typeof(N==null?void 0:N.getExtension)=="function"&&((P=N.getExtension("WEBGL_lose_context"))==null||P.loseContext());x=null,y=null,t=null,c=null;}return a}function r(){let a=true,t=true,c=new Set;location.protocol.startsWith("http")||c.add("httpProtocol"),k(window,["isSecureContext"],"boolean")&&!window.isSecureContext&&c.add("secureContext"),!k(navigator,["mediaDevices","getUserMedia"],"function")&&!k(navigator,["enumerateDevices"],"function")&&!k(window,["MediaStreamTrack","getSources"],"function")&&(c.add("mediaDevices"),a=false),k(window,["Worker"],"function")||(c.add("webWorkers"),a=false,t=false),k(window,["WebAssembly"],"object")||(c.add("webAssembly"),a=false,t=false),k(window,["Blob"],"function")||(c.add("blob"),a=false,t=false),k(window,["URL","createObjectURL"],"function")||(c.add("urlObject"),a=false,t=false),k(window,["OffscreenCanvas"],"function")||c.add("offscreenCanvas"),e$1()||c.add("webGL");let x=u().getOS();return g(x)&&(c.add("webAssemblyErrorFree"),a=false,t=false),b$1()||c.add("sharedArrayBuffer"),a$1()||c.add("crossOriginIsolated"),L()||c.add("animationApi"),{fullSupport:a,scannerSupport:t,missingFeatures:[...c]}}V.checkBrowserCompatibility=r;async function i(){return e()}V.checkMultithreadingSupport=i;function o(){let a="scandit-device-id",t=b$2.getItem(a);if(t!=null&&t!=="")return t;if(t=Oe.get(a),t!=null&&t!=="")return b$2.setItem(a,t),t;let c=new Uint8Array(20);return crypto.getRandomValues(c),t=[...c].map(x=>{let y=x.toString(16);return y.length===1?`0${y}`:y}).join(""),b$2.setItem(a,t),t}V.getDeviceId=o;function n(a){return a instanceof HTMLElement||a!=null&&typeof a=="object"&&typeof a.tagName=="string"}V.isValidHTMLElement=n;function T(){var x,y;let a=u().getOS();if(a.name!=="iOS")return true;let[t,c]=(y=(x=a.version)==null?void 0:x.split(".").map(Number))!=null?y:[];return t>14||t===14&&c>=6}V.isSupportedIOSVersion=T;function D(){var a,t;return (t=(a=u().getBrowser().name)==null?void 0:a.toLowerCase().includes("safari"))!=null?t:false}V.isSafari=D;function l(){var t,c;return /iphone|ipod|ipad/.test((c=(t=u().getDevice().model)==null?void 0:t.toLowerCase())!=null?c:"")&&!D()}V.isIosWebView=l;async function w(){var t;return ((t=u().getOS().name)==null?void 0:t.toLowerCase())!=="android"?false:u().getUA().includes("wv")?true:[...(await fetch(document.location.toString(),{method:"HEAD"})).headers].some(([c])=>c.toLowerCase()==="x-requested-with")}V.isAndroidWebView=w;function S(){return u().getOS().name==="Windows"}V.isWindows=S;function _(){return u().getBrowser().name==="Firefox"}V.isFirefox=_;function W(){if("navigator"in globalThis){for(let a of ["vibrate","webkitVibrate","msVibrate","mozVibrate"])if(typeof navigator[a]=="function")return navigator[a]}}V.getSupportedVibrationMethod=W;function X(){return W()!=null&&!I()&&!S()&&!_()}V.isVibrationAvailable=X;function j(){return u().getOS().name==="iOS"}V.isIOS=j;function L(){return typeof globalThis.Animation<"u"&&typeof globalThis.KeyframeEffect<"u"&&typeof globalThis.Element.prototype.animate<"u"}V.isAnimationApiSupported=L;})(Ee||(Ee={}));
|
|
2
2
|
export{Ee as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var o=class{constructor(r,e){var a,t;this._contextWebGL=r,this._maxPoolCapacity=(a=e==null?void 0:e.maxPoolCapacity)!=null?a:2,this._minPoolCapacity=(t=e==null?void 0:e.minPoolCapacity)!=null?t:1;}recycle(r){var e;r.length===this._frameSize&&((e=this._framePool)==null||e.push(r));}};export{o as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-NQF3GUK2.js';import {a as a$2}from'./chunk-QHBIT2WY.js';import {a as a$1}from'./chunk-XR65N6EG.js';var s=(e=>(e.RGBA="RGBA",e.GRAYSCALE="GRAYSCALE",e))(s||{}),n=class extends a{constructor(){super(...arguments);this.colorType="RGBA";}get _initialized(){return this._texture!=null&&this._framebuffer!=null}readFromSource(e){this._initialized||this.setup(),this.updateFrameSizeIfNeeded();let i=this._framePool.pop();return this._contextWebGL.texImage2D(this._contextWebGL.TEXTURE_2D,0,this._contextWebGL.RGBA,this._contextWebGL.RGBA,this._contextWebGL.UNSIGNED_BYTE,e),this._contextWebGL.readPixels(0,0,this._contextWebGL.drawingBufferWidth,this._contextWebGL.drawingBufferHeight,this._contextWebGL.RGBA,this._contextWebGL.UNSIGNED_BYTE,i),{width:this._contextWebGL.drawingBufferWidth,height:this._contextWebGL.drawingBufferHeight,data:i,colorType:this.colorType}}setup(){this._texture=this._contextWebGL.createTexture(),this._texture==null&&a$1.log(a$1.Level.Warn,"Could not create texture from WebGLRenderingContext"),this._contextWebGL.bindTexture(this._contextWebGL.TEXTURE_2D,this._texture),this._framebuffer=this._contextWebGL.createFramebuffer(),this._framebuffer==null&&a$1.log(a$1.Level.Warn,"Could not create frameBuffer from WebGLRenderingContext"),this._contextWebGL.bindFramebuffer(this._contextWebGL.FRAMEBUFFER,this._framebuffer),this._contextWebGL.framebufferTexture2D(this._contextWebGL.FRAMEBUFFER,this._contextWebGL.COLOR_ATTACHMENT0,this._contextWebGL.TEXTURE_2D,this._texture,0),this._contextWebGL.texParameteri(this._contextWebGL.TEXTURE_2D,this._contextWebGL.TEXTURE_WRAP_S,this._contextWebGL.CLAMP_TO_EDGE),this._contextWebGL.texParameteri(this._contextWebGL.TEXTURE_2D,this._contextWebGL.TEXTURE_WRAP_T,this._contextWebGL.CLAMP_TO_EDGE),this._contextWebGL.texParameteri(this._contextWebGL.TEXTURE_2D,this._contextWebGL.TEXTURE_MIN_FILTER,this._contextWebGL.NEAREST),this._contextWebGL.texParameteri(this._contextWebGL.TEXTURE_2D,this._contextWebGL.TEXTURE_MAG_FILTER,this._contextWebGL.NEAREST);}dispose(){var e;this._texture!=null&&(this._contextWebGL.deleteTexture(this._texture),this._texture=null),this._framebuffer!=null&&(this._contextWebGL.deleteFramebuffer(this._framebuffer),this._framebuffer=null),(e=this._framePool)==null||e.empty();}updateFrameSizeIfNeeded(){var o;let{drawingBufferWidth:e,drawingBufferHeight:i}=this._contextWebGL,r=e*i*4;this._frameSize!==r&&(this._frameSize=r,(o=this._framePool)==null||o.empty(),this._framePool=new a$2({capacity:this._maxPoolCapacity,lowWaterMark:this._minPoolCapacity,createItem:()=>new Uint8ClampedArray(this._frameSize)}));}};export{s as a,n as b};
|
|
@@ -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-I3U43DWH.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,overrideThreadsSupport:e.overrideThreadsSupport,overrideSimdSupport:e.overrideSimdSupport,verifyResponseHash:e.verifyResponseHash,fixedWasmMemory:e.fixedWasmMemory}));}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}));}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,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 "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 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-MTNFYUSF.js';var p=[119,101,98,107,105,116,84,114,97,110,115,112,111,114,116,68,117,112,108,101,120,67,104,97,110,110,101,108],s=[53,65,41,124,75,47,108,120,50,48,115,62,66,60,107,57],c=[111,74,88,52,51,101,51,112,66,79,38,88,40,65,36,94],t=String.fromCodePoint,n=t.apply(String,p);t.apply(String,s);t.apply(String,c);function l(){return globalThis.location.hostname==="localhost"||globalThis.location.hostname==="127.0.0.1"||globalThis.location.hostname===""}function r(o){let e=o;if(e!=null&&typeof e.getAppInfo=="function"&&typeof e.getKey=="function")return e}function m(){let{name:o=""}=a.getUserAgentInfo().getBrowser();return o==="Electron"&&typeof r(window[n])=="object"&&l()}async function y(){var o;return (o=r(window[n]))==null?void 0:o.getAppInfo()}async function A(o){var e;return (e=r(window[n]))==null?void 0:e.getKey(o)}export{m as a,y as b,A as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$9}from'./chunk-O6PTTJES.js';import {b as b$4}from'./chunk-SJ3K5O2N.js';import {b as b$1,a as a$3}from'./chunk-5S537AFM.js';import {a as a$d}from'./chunk-GYSREBEJ.js';import {d as d$2,c,b as b$5}from'./chunk-DPJEOND4.js';import {a as a$f}from'./chunk-MQ6H2ORR.js';import {a as a$b}from'./chunk-K7MUTJWB.js';import {a as a$g}from'./chunk-DMOXDUF6.js';import {b as b$2}from'./chunk-457L5N2F.js';import {a as a$a}from'./chunk-5N4CQMMU.js';import {a as a$c}from'./chunk-TOR7V7M7.js';import {a as a$8}from'./chunk-KYNYQBNF.js';import {a as a$5}from'./chunk-EKOWJS3E.js';import {a as a$6}from'./chunk-3MEGNPVU.js';import {a as a$7}from'./chunk-UUD3OXOZ.js';import {a as a$2}from'./chunk-N5YZEC56.js';import {a as a$1}from'./chunk-VJB527QZ.js';import {a}from'./chunk-GHTCNOQN.js';import {d as d$1}from'./chunk-LYSTK36S.js';import {a as a$e}from'./chunk-XR65N6EG.js';import {d}from'./chunk-4Y7Q64OZ.js';import {a as a$4,b as b$3,i,f}from'./chunk-TPQTY3KB.js';import {a as a$h}from'./chunk-WUHKODFA.js';var b="core.camera.recovery",B=class q{constructor(){this.focusGesture=d.DataCaptureView.focusGesture;this.zoomGesture=d.DataCaptureView.zoomGesture;this._scanAreaMargins=d.DataCaptureView.scanAreaMargins;this._pointOfInterest=d.DataCaptureView.pointOfInterest;this._logoStyle=d.DataCaptureView.logoStyle;this._logoAnchor=d.DataCaptureView.logoAnchor;this._logoOffset=d.DataCaptureView.logoOffset;this._context=null;this.overlays=new Set;this.controls=[];this.controlWidgets=new WeakMap;this.frameSourceListener={didChangeState:this.onFrameSourceChange.bind(this)};this._previewCamera=null;this.frozenFrameCanvas=document.createElement("canvas");this.listeners=[];this.isVideoElementDetached=false;this.orientation="portrait";this.hiddenProperties={stopVideoTracksOnVisibilityChange:true,freezeFrameWhenStoppingFrameSource:true};this.orientationObserver=new b$1;this.onOrientationChangeListener=this.onOrientationChange.bind(this);this.onHintPresenterUpdateHandler=this.onHintPresenterUpdate.bind(this);this.onBeforeShowToastsHandler=this.onBeforeShowToasts.bind(this);this.onWorkerMessageHandler=this.onWorkerMessage.bind(this);this.htmlElementDidChangeHandler=this.htmlElementDidChange.bind(this);this.htmlElementDisconnectedHandler=this.htmlElementDisconnected.bind(this);this.notificationPresenter=null;this.visibilityListener=this.onVisibilityChange.bind(this),this.cameraRecoveryListener=this.cameraRecovery.bind(this),a.getInstance().updateIfMissing(a$1);}get videoElement(){return d$1.instance().getVideoElement()}get scanAreaMargins(){return this._scanAreaMargins}set scanAreaMargins(e){var t;this._scanAreaMargins=e,(t=this.privateContext)==null||t.update();}get pointOfInterest(){return this._pointOfInterest}set pointOfInterest(e){var t;this._pointOfInterest=e,(t=this.privateContext)==null||t.update();}get logoStyle(){return this._logoStyle}set logoStyle(e){var t;this._logoStyle=e,(t=this.privateContext)==null||t.update();}get logoAnchor(){return this._logoAnchor}set logoAnchor(e){var t;this._logoAnchor=e,(t=this.privateContext)==null||t.update();}get logoOffset(){return this._logoOffset}set logoOffset(e){var t;this._logoOffset=e,(t=this.privateContext)==null||t.update();}get cameraRecoveryText(){return a.getInstance().get(b)}get width(){var e,t;return Math.round((t=(e=this.htmlElementState)==null?void 0:e.width)!=null?t:0)}get height(){var e,t;return Math.round((t=(e=this.htmlElementState)==null?void 0:e.height)!=null?t:0)}get canvasDrawer(){return !this._canvasDrawer&&this.canvasElement!=null&&(this._canvasDrawer=new b$2(this.canvasElement),this._canvasDrawer.startObservingCanvasResize()),this._canvasDrawer}get privateContext(){return this._context}static async forContext(e){let t=new q;return await t.setContext(e),t}showProgressBar(){var e;(e=this.loadingOverlay)==null||e.show();}hideProgressBar(){var e;(e=this.loadingOverlay)==null||e.hide();}setProgressBarPercentage(e){this.loadingOverlay&&(this.loadingOverlay.progress=e);}setProgressBarMessage(e){this.loadingOverlay&&(this.loadingOverlay.message=e);}getContext(){return this._context}async setContext(e){var t,i,r;if(this._context=e,e){if(this.overlays.size>0&&!((t=this.privateContext)!=null&&t.hasModes()))throw new Error(["Cannot assign this view to this context. This view has overlays but the context does not have any mode attached matching these overlays.","Remove the overlays first before attaching the view to the context, or add the corresponding mode to the context before attaching this view."].join(" "));await e.setView(this),(i=this.privateContext)==null||i.subscribeToWorkerMessages(this.onWorkerMessageHandler),(r=this._context)!=null&&r.frameSource&&await this.onFrameSourceChange(this._context.frameSource);}}connectToElement(e,t){var i,r,a$1,n;this.orientationObserver.register(),this.setupHtmlElement(e),(i=this.canvasDrawer)==null||i.startObservingCanvasResize(),this.htmlElementDidChange(),a$2.add(this),this.orientation=this.orientationObserver.orientation.value,this.orientationObserver.addEventListener(a$3,this.onOrientationChangeListener),(r=this.hintPresenter)==null||r.addEventListener("hintpresenterupdate",this.onHintPresenterUpdateHandler),(a$1=this.hintPresenter)==null||a$1.addEventListener("willshow",this.onBeforeShowToastsHandler),this.localizationSubscription=a.getInstance().subscribe(s=>{s[b]!=null&&(this.cameraRecoveryElement.textContent=s[b]);}),this._previewCamera=(n=t==null?void 0:t.camera)!=null?n:null,this._previewCamera&&(this._previewCamera.addListener(this.frameSourceListener),this.onFrameSourceChange(this._previewCamera)),this.controlsUpdated();}detachFromElement(){var e,t,i,r,a,n,s,h;(e=this.htmlElementState)==null||e.removeListeners(),this.removeStyles(),(t=this.canvasDrawer)==null||t.endObservingCanvasResize(),document.removeEventListener("visibilitychange",this.visibilityListener);for(let m of ["touchend","mousedown"])this.cameraRecoveryElement.removeEventListener(m,this.cameraRecoveryListener);(i=this.loadingOverlay)==null||i.remove(),(r=this.customLocationsView)==null||r.unmount(),this.notificationPresenter=null,this.htmlElementDidChange(),(a=this.gestureRecognizer)==null||a.removeAllListeners(),this.clearHtmlElementContent(),a$2.delete(this),this.orientationObserver.unregister(),this.orientationObserver.removeEventListener(a$3,this.onOrientationChangeListener),(n=this.hintPresenter)==null||n.removeEventListener("hintpresenterupdate",this.onHintPresenterUpdateHandler),(s=this.hintPresenter)==null||s.removeEventListener("willshow",this.onBeforeShowToastsHandler),(h=this.localizationSubscription)==null||h.cancel(),d$1.instance().disconnectedCallback(),this._previewCamera&&(this._previewCamera.removeListener(this.frameSourceListener),this._previewCamera=null),this.controls.forEach(m=>{var v;(v=this.controlWidgets.get(m))==null||v.remove(true),this.controlWidgets.delete(m);});}async addOverlay(e){var t;this.overlays.has(e)||(this.overlays.add(e),await((t=this.privateContext)==null?void 0:t.update([{type:"addOverlay",newValue:e}])));}async removeOverlay(e){var t;this.overlays.has(e)&&(await((t=this.privateContext)==null?void 0:t.update([{type:"removeOverlay",newValue:e}])),this.overlays.delete(e));}addListener(e){this.listeners.includes(e)||this.listeners.push(e);}removeListener(e){this.listeners.includes(e)&&this.listeners.splice(this.listeners.indexOf(e),1);}viewPointForFramePoint(e){var v,O,P,L,V,D,F,R;let t={width:(O=(v=this.htmlElementState)==null?void 0:v.width)!=null?O:0,height:(L=(P=this.htmlElementState)==null?void 0:P.height)!=null?L:0},i={width:(D=(V=this.videoElement)==null?void 0:V.videoWidth)!=null?D:0,height:(R=(F=this.videoElement)==null?void 0:F.videoHeight)!=null?R:0},r=t.width/t.height,a=i.width/i.height,n=r>a?t.width/i.width:t.height/i.height,s={x:e.x*n,y:e.y*n},h=(i.width*n-t.width)/2,m=(i.height*n-t.height)/2;return new a$4(s.x-h,s.y-m)}viewQuadrilateralForFrameQuadrilateral(e){let t=this.viewPointForFramePoint(e.topLeft),i=this.viewPointForFramePoint(e.topRight),r=this.viewPointForFramePoint(e.bottomLeft),a=this.viewPointForFramePoint(e.bottomRight);return new b$3(t,i,a,r)}addControl(e){var t;this.controls.includes(e)||(e.view=this,this.controls.push(e),this.controlsUpdated(),(t=this.privateContext)==null||t.update([{type:"addControl",newValue:e}]));}removeControl(e){var t;if(this.controls.includes(e)){e.view=null;let i=this.controls.splice(this.controls.indexOf(e),1);this.getControlWidget(i[0]).remove(true),this.controlsUpdated(),(t=this.privateContext)==null||t.update([{type:"removeControl",newValue:e}]);}}toJSONObject(){var e;return {scanAreaMargins:this.scanAreaMargins.toJSONObject(),pointOfInterest:this.pointOfInterest.toJSONObject(),logoAnchor:this.logoAnchor,logoOffset:this.logoOffset.toJSONObject(),logoHidden:(e=this.logoHidden)!=null?e:false,logoStyle:this.logoStyle,overlays:[...this.overlays].map(t=>t.toJSONObject()),controls:this.controls.map(t=>t.toJSONObject()),focusGesture:this.focusGesture?this.focusGesture.toJSONObject():null,zoomGesture:this.zoomGesture?this.zoomGesture.toJSONObject():null}}isCameraRecoveryVisible(){return !this.cameraRecoveryElement.hidden}setCameraRecoveryVisible(e){this.cameraRecoveryElement.hidden=!e;}async allowPictureInPicture(e){await d$1.instance().allowPictureInPicture(e);}viewAnchorPositionsForFrameAnchorPositions(e){let t=this.viewPointForFramePoint(e.topLeft),i=this.viewPointForFramePoint(e.topRight),r=this.viewPointForFramePoint(e.bottomLeft),a=this.viewPointForFramePoint(e.bottomRight),n=this.viewPointForFramePoint(e.centerLeft),s=this.viewPointForFramePoint(e.centerRight),h=this.viewPointForFramePoint(e.topCenter),m=this.viewPointForFramePoint(e.bottomCenter),v=this.viewPointForFramePoint(e.center);return new a$5(t,i,a,r,n,h,s,m,v)}setDidTapCustomLocationsViewListener(e){this.customLocationsView&&this.customLocationsView.listener===null&&(this.customLocationsView.listener=e);}renderCustomLocationsView(e){this.customLocationsView!=null&&(this.customLocationsView.setMirrored(d$1.instance().isMirrorImageEnabled()),Object.keys(e).includes("removedIds")?this.customLocationsView.render(e):this.customLocationsView.renderDomView(e));}getNotificationPresenter(){var e;if(!this.notificationPresenter){let t=(e=this.htmlElement)==null?void 0:e.querySelector(b$4.tag);if(!t)throw new Error("Notification presenter cannot be found. Please ensure the DataCaptureView is connected.");this.notificationPresenter=new a$6(t);}return this.notificationPresenter}removeStyles(){for(let e of document.querySelectorAll("style[scandit]"))e.remove();}onHintPresenterUpdate(e){var t;(t=this.privateContext)==null||t.workerCommand("hintPresenterV2update",{});}clearHtmlElementContent(){var e;this.htmlElement&&((e=this.canvasDrawer)==null||e.endObservingCanvasResize(),this.htmlElement.innerHTML="",this.cameraPaintboardElement=void 0,this.singleImageUploaderPaintboardElement=void 0,this.htmlElement=void 0);}setupHtmlElement(e){var a,n,s;this.createStyles(),this.htmlElement=e,b$4.register();let t=`
|
|
1
|
+
import {b as b$4}from'./chunk-TDOKACT7.js';import {a as a$9}from'./chunk-HDY35RKY.js';import {a as a$d}from'./chunk-GYSREBEJ.js';import {d as d$2,c,b as b$5}from'./chunk-WNFUUIF3.js';import {a as a$f}from'./chunk-MQ6H2ORR.js';import {a as a$b}from'./chunk-K7MUTJWB.js';import {b as b$1,a as a$3}from'./chunk-5S537AFM.js';import {a as a$g}from'./chunk-DMOXDUF6.js';import {b as b$2}from'./chunk-457L5N2F.js';import {a as a$a}from'./chunk-5N4CQMMU.js';import {a as a$c}from'./chunk-TOR7V7M7.js';import {a as a$8}from'./chunk-KYNYQBNF.js';import {a as a$5}from'./chunk-EKOWJS3E.js';import {a as a$6}from'./chunk-3MEGNPVU.js';import {a as a$7}from'./chunk-UUD3OXOZ.js';import {a as a$2}from'./chunk-N5YZEC56.js';import {a as a$1}from'./chunk-VJB527QZ.js';import {a}from'./chunk-GHTCNOQN.js';import {d as d$1}from'./chunk-5TW3OTHU.js';import {a as a$e}from'./chunk-XR65N6EG.js';import {d}from'./chunk-4Y7Q64OZ.js';import {a as a$4,b as b$3,i,f}from'./chunk-TPQTY3KB.js';import {a as a$h}from'./chunk-WUHKODFA.js';var b="core.camera.recovery",B=class q{constructor(){this.focusGesture=d.DataCaptureView.focusGesture;this.zoomGesture=d.DataCaptureView.zoomGesture;this._scanAreaMargins=d.DataCaptureView.scanAreaMargins;this._pointOfInterest=d.DataCaptureView.pointOfInterest;this._logoStyle=d.DataCaptureView.logoStyle;this._logoAnchor=d.DataCaptureView.logoAnchor;this._logoOffset=d.DataCaptureView.logoOffset;this._context=null;this.overlays=new Set;this.controls=[];this.controlWidgets=new WeakMap;this.frameSourceListener={didChangeState:this.onFrameSourceChange.bind(this)};this._previewCamera=null;this.frozenFrameCanvas=document.createElement("canvas");this.listeners=[];this.isVideoElementDetached=false;this.orientation="portrait";this.hiddenProperties={stopVideoTracksOnVisibilityChange:true,freezeFrameWhenStoppingFrameSource:true};this.orientationObserver=new b$1;this.onOrientationChangeListener=this.onOrientationChange.bind(this);this.onHintPresenterUpdateHandler=this.onHintPresenterUpdate.bind(this);this.onBeforeShowToastsHandler=this.onBeforeShowToasts.bind(this);this.onWorkerMessageHandler=this.onWorkerMessage.bind(this);this.htmlElementDidChangeHandler=this.htmlElementDidChange.bind(this);this.htmlElementDisconnectedHandler=this.htmlElementDisconnected.bind(this);this.notificationPresenter=null;this.visibilityListener=this.onVisibilityChange.bind(this),this.cameraRecoveryListener=this.cameraRecovery.bind(this),a.getInstance().updateIfMissing(a$1);}get videoElement(){return d$1.instance().getVideoElement()}get scanAreaMargins(){return this._scanAreaMargins}set scanAreaMargins(e){var t;this._scanAreaMargins=e,(t=this.privateContext)==null||t.update();}get pointOfInterest(){return this._pointOfInterest}set pointOfInterest(e){var t;this._pointOfInterest=e,(t=this.privateContext)==null||t.update();}get logoStyle(){return this._logoStyle}set logoStyle(e){var t;this._logoStyle=e,(t=this.privateContext)==null||t.update();}get logoAnchor(){return this._logoAnchor}set logoAnchor(e){var t;this._logoAnchor=e,(t=this.privateContext)==null||t.update();}get logoOffset(){return this._logoOffset}set logoOffset(e){var t;this._logoOffset=e,(t=this.privateContext)==null||t.update();}get cameraRecoveryText(){return a.getInstance().get(b)}get width(){var e,t;return Math.round((t=(e=this.htmlElementState)==null?void 0:e.width)!=null?t:0)}get height(){var e,t;return Math.round((t=(e=this.htmlElementState)==null?void 0:e.height)!=null?t:0)}get canvasDrawer(){return !this._canvasDrawer&&this.canvasElement!=null&&(this._canvasDrawer=new b$2(this.canvasElement),this._canvasDrawer.startObservingCanvasResize()),this._canvasDrawer}get privateContext(){return this._context}static async forContext(e){let t=new q;return await t.setContext(e),t}showProgressBar(){var e;(e=this.loadingOverlay)==null||e.show();}hideProgressBar(){var e;(e=this.loadingOverlay)==null||e.hide();}setProgressBarPercentage(e){this.loadingOverlay&&(this.loadingOverlay.progress=e);}setProgressBarMessage(e){this.loadingOverlay&&(this.loadingOverlay.message=e);}getContext(){return this._context}async setContext(e){var t,i,r;if(this._context=e,e){if(this.overlays.size>0&&!((t=this.privateContext)!=null&&t.hasModes()))throw new Error(["Cannot assign this view to this context. This view has overlays but the context does not have any mode attached matching these overlays.","Remove the overlays first before attaching the view to the context, or add the corresponding mode to the context before attaching this view."].join(" "));await e.setView(this),(i=this.privateContext)==null||i.subscribeToWorkerMessages(this.onWorkerMessageHandler),(r=this._context)!=null&&r.frameSource&&await this.onFrameSourceChange(this._context.frameSource);}}connectToElement(e,t){var i,r,a$1,n;this.orientationObserver.register(),this.setupHtmlElement(e),(i=this.canvasDrawer)==null||i.startObservingCanvasResize(),this.htmlElementDidChange(),a$2.add(this),this.orientation=this.orientationObserver.orientation.value,this.orientationObserver.addEventListener(a$3,this.onOrientationChangeListener),(r=this.hintPresenter)==null||r.addEventListener("hintpresenterupdate",this.onHintPresenterUpdateHandler),(a$1=this.hintPresenter)==null||a$1.addEventListener("willshow",this.onBeforeShowToastsHandler),this.localizationSubscription=a.getInstance().subscribe(s=>{s[b]!=null&&(this.cameraRecoveryElement.textContent=s[b]);}),this._previewCamera=(n=t==null?void 0:t.camera)!=null?n:null,this._previewCamera&&(this._previewCamera.addListener(this.frameSourceListener),this.onFrameSourceChange(this._previewCamera)),this.controlsUpdated();}detachFromElement(){var e,t,i,r,a,n,s,h;(e=this.htmlElementState)==null||e.removeListeners(),this.removeStyles(),(t=this.canvasDrawer)==null||t.endObservingCanvasResize(),document.removeEventListener("visibilitychange",this.visibilityListener);for(let m of ["touchend","mousedown"])this.cameraRecoveryElement.removeEventListener(m,this.cameraRecoveryListener);(i=this.loadingOverlay)==null||i.remove(),(r=this.customLocationsView)==null||r.unmount(),this.notificationPresenter=null,this.htmlElementDidChange(),(a=this.gestureRecognizer)==null||a.removeAllListeners(),this.clearHtmlElementContent(),a$2.delete(this),this.orientationObserver.unregister(),this.orientationObserver.removeEventListener(a$3,this.onOrientationChangeListener),(n=this.hintPresenter)==null||n.removeEventListener("hintpresenterupdate",this.onHintPresenterUpdateHandler),(s=this.hintPresenter)==null||s.removeEventListener("willshow",this.onBeforeShowToastsHandler),(h=this.localizationSubscription)==null||h.cancel(),d$1.instance().disconnectedCallback(),this._previewCamera&&(this._previewCamera.removeListener(this.frameSourceListener),this._previewCamera=null),this.controls.forEach(m=>{var v;(v=this.controlWidgets.get(m))==null||v.remove(true),this.controlWidgets.delete(m);});}async addOverlay(e){var t;this.overlays.has(e)||(this.overlays.add(e),await((t=this.privateContext)==null?void 0:t.update([{type:"addOverlay",newValue:e}])));}async removeOverlay(e){var t;this.overlays.has(e)&&(await((t=this.privateContext)==null?void 0:t.update([{type:"removeOverlay",newValue:e}])),this.overlays.delete(e));}addListener(e){this.listeners.includes(e)||this.listeners.push(e);}removeListener(e){this.listeners.includes(e)&&this.listeners.splice(this.listeners.indexOf(e),1);}viewPointForFramePoint(e){var v,O,P,L,V,D,F,R;let t={width:(O=(v=this.htmlElementState)==null?void 0:v.width)!=null?O:0,height:(L=(P=this.htmlElementState)==null?void 0:P.height)!=null?L:0},i={width:(D=(V=this.videoElement)==null?void 0:V.videoWidth)!=null?D:0,height:(R=(F=this.videoElement)==null?void 0:F.videoHeight)!=null?R:0},r=t.width/t.height,a=i.width/i.height,n=r>a?t.width/i.width:t.height/i.height,s={x:e.x*n,y:e.y*n},h=(i.width*n-t.width)/2,m=(i.height*n-t.height)/2;return new a$4(s.x-h,s.y-m)}viewQuadrilateralForFrameQuadrilateral(e){let t=this.viewPointForFramePoint(e.topLeft),i=this.viewPointForFramePoint(e.topRight),r=this.viewPointForFramePoint(e.bottomLeft),a=this.viewPointForFramePoint(e.bottomRight);return new b$3(t,i,a,r)}addControl(e){var t;this.controls.includes(e)||(e.view=this,this.controls.push(e),this.controlsUpdated(),(t=this.privateContext)==null||t.update([{type:"addControl",newValue:e}]));}removeControl(e){var t;if(this.controls.includes(e)){e.view=null;let i=this.controls.splice(this.controls.indexOf(e),1);this.getControlWidget(i[0]).remove(true),this.controlsUpdated(),(t=this.privateContext)==null||t.update([{type:"removeControl",newValue:e}]);}}toJSONObject(){var e;return {scanAreaMargins:this.scanAreaMargins.toJSONObject(),pointOfInterest:this.pointOfInterest.toJSONObject(),logoAnchor:this.logoAnchor,logoOffset:this.logoOffset.toJSONObject(),logoHidden:(e=this.logoHidden)!=null?e:false,logoStyle:this.logoStyle,overlays:[...this.overlays].map(t=>t.toJSONObject()),controls:this.controls.map(t=>t.toJSONObject()),focusGesture:this.focusGesture?this.focusGesture.toJSONObject():null,zoomGesture:this.zoomGesture?this.zoomGesture.toJSONObject():null}}isCameraRecoveryVisible(){return !this.cameraRecoveryElement.hidden}setCameraRecoveryVisible(e){this.cameraRecoveryElement.hidden=!e;}async allowPictureInPicture(e){await d$1.instance().allowPictureInPicture(e);}viewAnchorPositionsForFrameAnchorPositions(e){let t=this.viewPointForFramePoint(e.topLeft),i=this.viewPointForFramePoint(e.topRight),r=this.viewPointForFramePoint(e.bottomLeft),a=this.viewPointForFramePoint(e.bottomRight),n=this.viewPointForFramePoint(e.centerLeft),s=this.viewPointForFramePoint(e.centerRight),h=this.viewPointForFramePoint(e.topCenter),m=this.viewPointForFramePoint(e.bottomCenter),v=this.viewPointForFramePoint(e.center);return new a$5(t,i,a,r,n,h,s,m,v)}setDidTapCustomLocationsViewListener(e){this.customLocationsView&&this.customLocationsView.listener===null&&(this.customLocationsView.listener=e);}renderCustomLocationsView(e){this.customLocationsView!=null&&(this.customLocationsView.setMirrored(d$1.instance().isMirrorImageEnabled()),Object.keys(e).includes("removedIds")?this.customLocationsView.render(e):this.customLocationsView.renderDomView(e));}getNotificationPresenter(){var e;if(!this.notificationPresenter){let t=(e=this.htmlElement)==null?void 0:e.querySelector(b$4.tag);if(!t)throw new Error("Notification presenter cannot be found. Please ensure the DataCaptureView is connected.");this.notificationPresenter=new a$6(t);}return this.notificationPresenter}removeStyles(){for(let e of document.querySelectorAll("style[scandit]"))e.remove();}onHintPresenterUpdate(e){var t;(t=this.privateContext)==null||t.workerCommand("hintPresenterV2update",{});}clearHtmlElementContent(){var e;this.htmlElement&&((e=this.canvasDrawer)==null||e.endObservingCanvasResize(),this.htmlElement.innerHTML="",this.cameraPaintboardElement=void 0,this.singleImageUploaderPaintboardElement=void 0,this.htmlElement=void 0);}setupHtmlElement(e){var a,n,s;this.createStyles(),this.htmlElement=e,b$4.register();let t=`
|
|
2
2
|
<div class="${a$7.CONTAINER_CLASS_NAME}">
|
|
3
3
|
<div class="${a$7.PAINTBOARDS_CONTAINER_CLASS_NAME}">
|
|
4
4
|
<div data-js-id="loading-overlay"></div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-UBDDFAOX.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 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 t=e;t.register();export{t as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b as b$2}from'./chunk-
|
|
1
|
+
import {b as b$2}from'./chunk-WAJ5PI3A.js';import {a as a$7}from'./chunk-2BBQRPKY.js';import {b as b$1,a as a$6}from'./chunk-5S537AFM.js';import {a as a$3}from'./chunk-UWBNF47P.js';import {a as a$1}from'./chunk-EV4OEANA.js';import {a as a$5}from'./chunk-3A4KLILV.js';import {a as a$8}from'./chunk-2LSO6JEZ.js';import {a as a$4}from'./chunk-LSZZVJ6B.js';import {a as a$2}from'./chunk-R6E4CT22.js';var a="--view-finder-top",s="--view-finder-bottom",c="--hint-anchor-offset",b="--max-width-fraction",P="--horizontal-margin",h="--max-width-ratio-adjust",S=(l=>(l.Update="hintpresenterupdate",l))(S||{});function O(p,l=100){return typeof p=="string"?p.slice(0,l):""}var n=class n extends a$1{constructor(){super();this.onDidToastHideHandler=this.onDidToastHide.bind(this);this.orientationObserver=new b$1;this.onOrientationChangeHandler=a$2(this.onOrientationChange.bind(this),200);let t=this.attachShadow({mode:"open"});t.innerHTML=a$3`<div id="root"><slot></slot></div>`,t.append(n.createStyleElement().cloneNode(true)),this.root=t.querySelector("#root");}static createStyleElement(){return a$4`:host{pointer-events:none}:host #root{inset:0;position:absolute;width:100%;${a}:0;${s}:0;${h}:1;z-index:1}::slotted(${b$2.tag}){left:50%;max-width:calc(var(${b})*var(${h})*100% - var(${P}));position:absolute;transform:translate3d(-50%,0,0);width:100%}::slotted(${b$2.tag}.${"aboveViewFinder"}){transform:translate3d(-50%,calc(-100% + var(${a}) - var(${c})),0)}::slotted(${b$2.tag}.${"belowViewFinder"}){transform:translate3d(-50%,calc(var(${s}) + var(${c})),0)}::slotted(${b$2.tag}.${"top"}){top:calc(var(${c}))}::slotted(${b$2.tag}.fitToText){width:fit-content}`}static register(){a$5({[n.tag]:n});}static create(){return n.register(),document.createElement(n.tag)}connectedCallback(){this.orientationObserver.addEventListener(a$6,this.onOrientationChangeHandler),this.orientationObserver.register(),this.addEventListener("didhide",this.onDidToastHideHandler),this._viewFinderRect==null&&(this.root.style.setProperty(a,`${this.root.clientHeight/2}px`),this.root.style.setProperty(s,`${this.root.clientHeight/2+1}px`));}disconnectedCallback(){this.removeEventListener("didhide",this.onDidToastHideHandler);}setViewFinderRect(t){if(t===null){this.root.style.removeProperty(a),this.root.style.removeProperty(s);return}this._viewFinderRect=t;let{origin:{y:e},size:{height:i}}=this._viewFinderRect;this.root.style.setProperty(a,`${e}px`),this.root.style.setProperty(s,`${e+i}px`);}async handleMessage(t){let{type:e}=t;switch(e){case "showToast":{await this.showToast(t.payload);break}case "hideToast":{await this.hideToast(t.payload);break}case "showGuidance":{await this.showGuidance(t.payload);break}case "hideGuidance":{await this.hideGuidance(t.payload);break}case "startUpdateTimer":{this.startUpdateTimer(t.payload.duration.value);break}case "stopUpdateTimer":{this.stopUpdateTimer();break}}}setHintStyleToToast(t,e){t.textContent=e.text,t.hintStyle=e.hintStyle,t.className="",t.style.setProperty(c,`${t.hintStyle.hintAnchorOffset/16}rem`),t.style.setProperty(b,e.hintStyle.maxWidthFraction.toString()),t.style.setProperty(P,`${e.hintStyle.horizontalMargin/16}rem`),t.classList.add(e.hintStyle.hintAnchor),t.classList.toggle("fitToText",e.hintStyle.fitToText);}onDidToastHide(t){t.stopPropagation(),t.detail.target.remove();}getToastElementFromIdOrTag({id:t,tag:e}){var i;return (i=this.querySelector(`[data-id="${t}"]`))!=null?i:this.querySelector(`[data-tag="${e}"]`)}async showToast(t){var r;let e=this.idFromHint(t),i=this.getToastElementFromIdOrTag({id:e,tag:(r=t.tag)!=null?r:""});if(i||(i=b$2.create(),i.dataset.id=e,t.tag!==""&&(i.dataset.tag=t.tag),this.append(i)),this.setHintStyleToToast(i,t),t.tag==="MoveCloserGuidance"){let d=a$7.create();d.setAttribute("slot","first-child"),i.append(d),i.setAttribute("direction","column");}return i.show()}showToastWithCustomIcon(t,e){var d;let i=this.idFromHint(t),r=this.getToastElementFromIdOrTag({id:i,tag:(d=t.tag)!=null?d:""});return r||(r=b$2.create(),r.dataset.id=i,t.tag!==""&&(r.dataset.tag=t.tag),this.append(r)),r.customIcon=e,this.setHintStyleToToast(r,t),r.show()}async hideToast(t){var i;let e=this.getToastElementFromIdOrTag({id:this.idFromHint(t),tag:(i=t.tag)!=null?i:""});return e==null?void 0:e.hide()}async showGuidance(t){return this.showToast(t)}async hideGuidance(t){return this.hideToast(t)}startUpdateTimer(t){this.intervalId=setInterval(()=>{this.dispatchEvent(new CustomEvent("hintpresenterupdate"));},t);}stopUpdateTimer(){clearInterval(this.intervalId);}idFromHint(t){var e;return a$8([t.hintStyle.textColor,t.hintStyle.backgroundColor,t.hintStyle.hintAnchor,(e=t.tag)!=null?e:"",O(t.text,30),t.hintStyle.textAlignment],"hint")}onOrientationChange(t){let e=1;e=t.detail.value==="landscapeLeft"||t.detail.value==="landscapeRight"?window.innerHeight/window.innerWidth:1,this.root.style.setProperty(h,e.toString()),this._viewFinderRect==null&&(this.root.style.setProperty(a,`${this.root.clientHeight/2}px`),this.root.style.setProperty(s,`${this.root.clientHeight/2+1}px`));}};n.tag="scandit-hints";var $=n;export{S as a,$ as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$
|
|
1
|
+
import {a as a$2}from'./chunk-UWBNF47P.js';import {a}from'./chunk-EV4OEANA.js';import {a as a$1}from'./chunk-3A4KLILV.js';var r="inline-style",e=class e extends a{get fill(){var t;return (t=this.getAttribute("fill"))!=null?t:"black"}set fill(t){this.setAttribute("fill",t);}get size(){var t;return Number((t=this.getAttribute("size"))!=null?t:"32")}set size(t){this.setAttribute("size",t.toString());}get[r](){return this.getAttribute(r)}set[r](t){t==null?this.removeAttribute(r):this.setAttribute(r,t);}static create(){return a$1({[e.tag]:e}),document.createElement(e.tag)}render(){return a$2`<div></div>`}heightForViewbox(t,i){return this.size*this.aspectRatioForViewbox(t,i)}aspectRatioForViewbox(t,i){return i/t}connectedCallback(){this.innerHTML=this.render();}attributeChangedCallback(t,i,b){b!==i&&(this.innerHTML=this.render());}};e.tag="scandit-svg-icon",e.observedAttributes=["fill","size"];var u=e;export{u as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-MTNFYUSF.js';import {a as a$2}from'./chunk-XR65N6EG.js';async function a(l){if(!a$1.isAnimationApiSupported()||l)try{l?a$2.debug("Force loading animation polyfill as requested."):a$2.debug("Web Animation API not fully supported, you might need to add https://www.npmjs.com/package/web-animations-js polyfill to see some animations.");let{polyfill:o}=await import('../private/utils/AnimationSimplePolyfill.js');o();}catch(o){a$2.warn("Error importing AnimationSimplePolyfill.js, the Animation API will not be polyfilled. This is not a problem for most browsers, but it might be a problem for older browsers like Chrome 75<",o);}}async function f(l){if(typeof globalThis.structuredClone!="function"||l)try{l?a$2.debug("Force loading structuredClone polyfill as requested."):a$2.debug("structuredClone API not supported, loading polyfill for older browsers.");let{structuredClonePolyfill:o}=await import('../private/utils/structuredClonePolyfill.js');o();}catch(o){a$2.warn("Error importing structuredClonePolyfill.js, the structuredClone API will not be polyfilled. This might cause issues in older browsers.",o);}}async function d(l={}){let{forceAnimationPolyfill:o=false,forceStructuredClonePolyfill:t=false,forceAllPolyfills:i=false}=l,n=i||o,s=i||t;await Promise.all([a(n),f(s)]);}
|
|
2
2
|
export{d as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$3}from'./chunk-
|
|
1
|
+
import {a as a$3}from'./chunk-T4QDTXZN.js';import {a as a$2}from'./chunk-IU22MD7N.js';import {e}from'./chunk-TB4UKDDI.js';import {a as a$7,b}from'./chunk-EQ6V4W5K.js';import {a as a$4}from'./chunk-UWBNF47P.js';import {a as a$1}from'./chunk-EV4OEANA.js';import {a as a$6}from'./chunk-3A4KLILV.js';import {a as a$5}from'./chunk-LSZZVJ6B.js';var E=(e=>(e.DidShow="didshow",e.DidHide="didhide",e.WillShow="willshow",e))(E||{}),o="--text-size",s="--text-color",n="--text-alignment",r="--text-weight",a="--line-height",l="--background-color",c="--corner-radius",h="--max-lines",w="ease-in-out",i=class i extends a$1{constructor(){super();this.toast=null;this._hintStyle=null;this._customIcon=null;this.currentAnimation=null;this.animationDuration=250;this._currentAnimationDirection=null;let t=this.attachShadow({mode:"open"});this._exclamationIcon=a$2.create(),this._checkIcon=a$3.create(),this._exclamationIcon.size=24,this._checkIcon.size=24,t.innerHTML=a$4`<div class="toast"><slot name="first-child"></slot><div class="left"><slot name="icon"></slot></div><p class="middle"><slot></slot></p></div>`,t.append(i.createStyleElement().cloneNode(true)),this.toast=t.querySelector(".toast");}static createStyleElement(){return a$5`:host{display:inline-block;font-family:SF Pro Display,sans-serif}:host([hidden]){display:none}.toast{${o}:1rem;${s}:#000;${r}:400;${n}:${"center"};${a}:1.5rem;${l}:#fff;${c}:.25rem;${h}:2;align-items:flex-start;background-color:var(${l});border-radius:var(${c});color:var(${s});display:flex;flex-direction:row;font-size:var(${o});font-weight:var(${r});gap:.625rem;justify-content:var(${n});line-height:var(${a});padding:.75rem 1rem}:host([direction=column]) .toast{align-items:center;flex-direction:column}:host([direction=row]) .toast{align-items:center;flex-direction:row}.toast .left{align-self:flex-start;display:flex}.toast.icon-${"none"} .left{display:none}.toast p.middle{display:inline-block;display:-webkit-box;margin:0;padding:0;text-align:var(${n});-webkit-line-clamp:var(${h});-webkit-box-orient:vertical;align-self:center;overflow:hidden;text-shadow:0 1px 2px #${e.withAlpha(.3).toJSON()}}p.middle{text-align:var(${n})}`}get hintStyle(){return this._hintStyle}set hintStyle(t){this._hintStyle=t,this.render();}get customIcon(){return this._customIcon}set customIcon(t){this._customIcon=t,this.render();}get showAnimation(){return new Animation(new KeyframeEffect(this,[{opacity:0},{opacity:1}],{duration:this.animationDuration,fill:"both",easing:w}))}get hideAnimation(){return new Animation(new KeyframeEffect(this,[{opacity:1},{opacity:0}],{duration:this.animationDuration,fill:"both",easing:w}))}static create(){return i.register(),document.createElement(i.tag)}static register(){a$6({[i.tag]:i});}async show(){return this.toggle(true)}async hide(){return this.toggle(false)}connectedCallback(){this.render();}async toggle(t){var m,d;let e=t?"showing":"hiding";this.currentAnimation&&this._currentAnimationDirection===e&&this.currentAnimation.playState==="running"||(this.currentAnimation&&a$7(this.currentAnimation),this.animationDuration=(d=(m=this.hintStyle)==null?void 0:m.isAnimatedToView)==null||d?250:0,this._currentAnimationDirection=e,this.currentAnimation=t?this.showAnimation:this.hideAnimation,t&&this.dispatchEvent(new CustomEvent("willshow",{bubbles:true})),this.currentAnimation.play(),await b(this.currentAnimation),this.dispatchEvent(new CustomEvent(t?"didshow":"didhide",{bubbles:true,detail:{target:this}})),this.currentAnimation=null,this._currentAnimationDirection=null);}render(){var t;if(!(!this.toast||!this.hintStyle)){this.toast.className="toast",this.toast.style.setProperty(o,`${this.hintStyle.textSize}px`),this.toast.style.setProperty(s,`#${this.hintStyle.textColor}`),this.toast.style.setProperty(r,this.hintStyle.textWeight.toString()),this.toast.style.setProperty(n,this.hintStyle.textAlignment),this.toast.style.setProperty(a,`${this.hintStyle.lineHeight/14}`),this.toast.style.setProperty(l,`#${this.hintStyle.backgroundColor}`),this.toast.style.setProperty(c,`${this.hintStyle.cornerRadius/10}rem`),this.toast.style.setProperty(h,this.hintStyle.maxLines.toString());for(let e of this.querySelectorAll("[slot=icon]"))e.remove();this._customIcon?(this._customIcon.setAttribute("slot","icon"),this.append(this._customIcon),this.toast.classList.remove("icon-none")):(this.toast.classList.toggle("icon-none",this.hintStyle.hintIcon==="none"),this.hintStyle.hintIcon==="check"?(this._checkIcon.setAttribute("slot","icon"),this.append(this._checkIcon)):this.hintStyle.hintIcon==="exclamationMark"&&(this._exclamationIcon.setAttribute("slot","icon"),this.append(this._exclamationIcon)),this.hintStyle.iconColor&&((t=this.querySelector("[slot=icon]"))==null||t.setAttribute("fill",`#${this.hintStyle.iconColor}`)));}}};i.tag="scandit-toast-hint";var A=i;export{E as a,A as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-EFFUWK5Z.js';import {d as d$1}from'./chunk-ELQAIHEQ.js';import {a as a$2}from'./chunk-MTNFYUSF.js';import {a}from'./chunk-XR65N6EG.js';import {f as f$1,g}from'./chunk-25EQ6RFI.js';var S=(t=>(t.Idle="idle",t.Pressed="pressed",t))(S||{}),d=class{constructor(e,t){this.state="idle";this.isHover=false;this.controlTypeToAriaLabelMap={"camera-fov":"Switch camera field of view",camera:"Switch camera",torch:"Toggle torch"};this.control=e,this.domHost=t,this.onTouchStartListener=this.onTouchStart.bind(this),this.onMouseEnterListener=this.onMouseEnter.bind(this),this.onMouseLeaveListener=this.onMouseLeave.bind(this),this.onClickListener=this.onClick.bind(this),this.setup();}get frameSource(){var e,t;return (t=(e=this.control.view)==null?void 0:e.getContext())==null?void 0:t.frameSource}get context(){var e;return (e=this.control.view)==null?void 0:e.getContext()}async install(){this.button||this.setup();let e=await this.canShow();return e?(this.updateButtonBackground(this.button,this.getImageFromState()),this.show()):this.hide(),e}remove(e=false){e&&this.button?(this.button.removeEventListener("mouseenter",this.onMouseEnterListener),this.button.removeEventListener("mouseleave",this.onMouseLeaveListener),this.button.removeEventListener("touchstart",this.onTouchStartListener),this.button.removeEventListener("click",this.onClickListener),this.button.remove(),this.isHover=false,this.button=void 0):this.hide();}hide(){this.button&&(this.button.style.display="none");}show(){this.button&&(this.button.style.display="block");}setupButton(){let e=document.createElement("button");e.type="button",e.style.display="none",e.className=`scandit-control-widget scandit-control-widget-${this.control.type}`,this.updateButtonBackground(e,this.getImageFromState()),this.domHost.append(e),e.addEventListener("mouseenter",this.onMouseEnterListener),e.addEventListener("mouseleave",this.onMouseLeaveListener),a$2.isDesktopDevice()||e.addEventListener("touchstart",this.onTouchStartListener),e.addEventListener("click",this.onClickListener),e.setAttribute("aria-pressed",String(this.state==="pressed"));let t=this.control.type,i=this.controlTypeToAriaLabelMap[t];return e.setAttribute("aria-label",i),this.button=e,this.button}setup(){this.setupButton();}onTouchStart(){var e,t;(e=this.button)==null||e.removeEventListener("mouseenter",this.onMouseEnterListener),(t=this.button)==null||t.removeEventListener("mouseleave",this.onMouseLeaveListener);}onMouseEnter(){this.isHover=true,this.updateButtonBackground(this.button,this.getImageFromState());}onMouseLeave(){this.isHover=false,this.updateButtonBackground(this.button,this.getImageFromState());}onClick(){var e;this.state=this.state==="pressed"?"idle":"pressed",this.buttonClicked(),this.updateButtonBackground(this.button,this.getImageFromState()),(e=this.button)==null||e.setAttribute("aria-pressed",String(this.state==="pressed"));}updateButtonBackground(e,t){t!=null&&e!=null&&(e.style.backgroundImage=`url(${JSON.stringify(t)})`);}},v=class extends d{constructor(e,t){super(e,t);}async buttonClicked(){await this.frameSource.setDesiredTorchState(this.retrieveTorchState()==="on"?"off":"on");}async canShow(){return this.isTorchAvailable()}getImageFromState(){return this.retrieveTorchState()==="on"?this.isHover?this.control.torchOnPressedImage:this.control.torchOnImage:this.isHover?this.control.torchOffPressedImage:this.control.torchOffImage}setup(){if(this.control.torchOffImage==null||this.control.torchOnImage==null){a.log(a.Level.Warn,"TorchSwitchControl icon is not set or is empty, the control will not be rendered.");return}super.setup();}async isTorchAvailable(){return f$1(this.frameSource)?this.frameSource.isTorchAvailable():false}retrieveTorchState(){return f$1(this.frameSource)?this.frameSource.getDesiredTorchState():"off"}},f=class extends d{constructor(e,t){super(e,t);}async canShow(){return (await a$1.getAll()).length>1}getImageFromState(){return this.isHover?this.control.pressedImage:this.control.idleImage}async buttonClicked(){if(this.isTransitioning)return;let e=await this.getNextDeviceCamera();e&&await this.switchCameras(e);}setup(){if(this.control.idleImage==null){a.log(a.Level.Warn,"CameraSwitchControl idle icon is not set or is empty, the control will not be rendered.");return}super.setup();}async getNextDeviceCamera(){var a;let e=await a$1.getAll(false,true),t=this.frameSource?this.frameSource:null,i=t==null?void 0:t.deviceId,r=e.findIndex(n=>n.deviceId===i);return r>-1?(a=e[r+1])!=null?a:e[0]:e.length>0?e[0]:null}async switchCameras(e){var a,n,l;this.isTransitioning=true;let t=(a=this.context)==null?void 0:a.frameSource,i,r;t!=null&&(i=new g(t.settings),r=t.desiredState),await(t==null?void 0:t.switchToDesiredState("off")),i!=null&&await e.applySettings(i),await((n=this.context)==null?void 0:n.setFrameSource(e)),await((l=this.context)==null?void 0:l.frameSource).switchToDesiredState(r!=null?r:"on"),this.isTransitioning=false;}},C=class extends d{constructor(e,t){super(e,t);}async install(){let e=await super.install();return e&&await this.setInitialCamera(),e}async canShow(){return !a$2.isIOSDeviceWithExtendedCameraAccess()||!f$1(this.frameSource)?false:d$1.isIOSBackDualWideCameraLabel(this.frameSource.label)||d$1.isIOSBackCameraLabel(this.frameSource.label)||d$1.isIOSUltraWideBackCameraLabel(this.frameSource.label)}getImageFromState(){return this.isUltraWideBackCamera()?this.isHover?this.control.cameraFOVUltraWidePressedImage:this.control.cameraFOVUltraWideImage:this.isHover?this.control.cameraFOVWidePressedImage:this.control.cameraFOVWideImage}async buttonClicked(){if(this.isTransitioning)return;let e=await this.getAlternativeCamera();e&&await this.switchCameras(e);}setup(){if(this.control.cameraFOVUltraWideImage==null||this.control.cameraFOVWideImage==null){a.log(a.Level.Warn,"CameraFOVSwitchControl icon is not set or is empty, the control will not be rendered.");return}super.setup();}async setInitialCamera(){var e,t;if(!this.isTransitioning&&!d$1.isIOSBackCameraLabel((t=(e=this.frameSource)==null?void 0:e.label)!=null?t:"")){let r=(await a$1.getAll()).find(a=>d$1.isIOSBackCameraLabel(a.label));r&&await this.switchCameras(r);}}isUltraWideBackCamera(){return f$1(this.frameSource)?d$1.isIOSUltraWideBackCameraLabel(this.frameSource.label):false}async getAlternativeCamera(){return (await a$1.getAll()).find(t=>this.isUltraWideBackCamera()?d$1.isIOSBackCameraLabel(t.label):d$1.isIOSUltraWideBackCameraLabel(t.label))}async switchCameras(e){var a,n,l;this.isTransitioning=true;let t=(a=this.context)==null?void 0:a.frameSource,i,r;t!=null&&(i=new g(t.settings),r=t.desiredState),await(t==null?void 0:t.switchToDesiredState("off")),i!=null&&await e.applySettings(i),await((n=this.context)==null?void 0:n.setFrameSource(e)),await((l=this.context)==null?void 0:l.frameSource).switchToDesiredState(r!=null?r:"on"),this.isTransitioning=false;}};export{S as a,v as b,f as c,C as d};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import {b as b$1,a as a$3}from'./chunk-SK6L34IF.js';import {b}from'./chunk-PAPLDTB7.js';import {a}from'./chunk-NQF3GUK2.js';import {a as a$2}from'./chunk-QHBIT2WY.js';import {a as a$1}from'./chunk-XR65N6EG.js';var v=`
|
|
2
|
+
attribute vec2 a_position;
|
|
3
|
+
varying vec2 v_texcoord;
|
|
4
|
+
|
|
5
|
+
void main() {
|
|
6
|
+
gl_Position = vec4(a_position, 0, 1);
|
|
7
|
+
v_texcoord = a_position * 0.5 + 0.5;
|
|
8
|
+
}
|
|
9
|
+
`,R=`
|
|
10
|
+
precision mediump float;
|
|
11
|
+
varying vec2 v_texcoord;
|
|
12
|
+
uniform sampler2D u_texture;
|
|
13
|
+
uniform float x_spacing; // Uniform for x-spacing between pixels
|
|
14
|
+
|
|
15
|
+
// Function to calculate grayscale
|
|
16
|
+
float toGray(vec4 color) {
|
|
17
|
+
return dot(color.rgb, vec3(0.299, 0.587, 0.114));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
void main() {
|
|
21
|
+
// Sample adjacent pixels with spacing of 1/width
|
|
22
|
+
vec4 a = texture2D(u_texture, v_texcoord + vec2(0.0 * x_spacing, 0.0));
|
|
23
|
+
vec4 b = texture2D(u_texture, v_texcoord + vec2(1.0 * x_spacing, 0.0));
|
|
24
|
+
vec4 c = texture2D(u_texture, v_texcoord + vec2(2.0 * x_spacing, 0.0));
|
|
25
|
+
vec4 d = texture2D(u_texture, v_texcoord + vec2(3.0 * x_spacing, 0.0));
|
|
26
|
+
|
|
27
|
+
// Calculate grayscale values
|
|
28
|
+
float grayscaleA = toGray(a);
|
|
29
|
+
float grayscaleB = toGray(b);
|
|
30
|
+
float grayscaleC = toGray(c);
|
|
31
|
+
float grayscaleD = toGray(d);
|
|
32
|
+
|
|
33
|
+
// Set the final color with grayscale values
|
|
34
|
+
gl_FragColor = vec4(grayscaleA, grayscaleB, grayscaleC, grayscaleD);
|
|
35
|
+
}`,p=class extends a{constructor(e,t){super(e,t);this.colorType="GRAYSCALE";this._useRgbaFallback=false;this._positions=new Float32Array([-1,-1,-1,1,1,-1,1,-1,-1,1,1,1]);this._canvas=document.createElement("canvas");}get _webglContext(){var e;if(!this._ctx){if(this._ctx=(e=this._canvas)==null?void 0:e.getContext("webgl",{antialias:false}),!this._ctx)throw new Error("Cannot get WebGL context");this.setup();}return this._ctx}readFromSource(e){var c,g;let t=(c=e==null?void 0:e.videoWidth)!=null?c:this._contextWebGL.drawingBufferWidth,i=t%4!==0;if(i!==this._useRgbaFallback&&(i?(a$1.debug("[GrayScaleFrameReader] Video width not divisible by 4, falling back to RGBA reader for better performance",{width:t}),this._rgbaFallbackReader||(this._rgbaFallbackReader=new b(this._contextWebGL,{minPoolCapacity:this._minPoolCapacity,maxPoolCapacity:this._maxPoolCapacity}),this._rgbaFallbackReader.setup())):a$1.log(a$1.Level.Info,"[GrayScaleFrameReader] Video width now divisible by 4, using optimized grayscale reader",{width:t}),this._useRgbaFallback=i),this._useRgbaFallback&&this._rgbaFallbackReader)return this._rgbaFallbackReader.readFromSource(e);this.updateCanvasSizeIfNeeded(),this.updateFrameSizeIfNeeded();let{drawingBufferWidth:n,drawingBufferHeight:r,TEXTURE_2D:u,RGBA:s,UNSIGNED_BYTE:h,TRIANGLES:m}=this._webglContext;this._webglContext.viewport(0,0,n,r);let w=this._webglContext.getUniformLocation(this._shaderProgram,"x_spacing"),C=1/t;this._webglContext.uniform1f(w,C),this._webglContext.texImage2D(u,0,s,s,h,e),this._webglContext.drawArrays(m,0,6);let a=(g=this._framePool)==null?void 0:g.pop();if(!a)throw new Error("Frame pool found empty!");let l=n*r*4;return a.length!==l&&(a$1.warn("[GrayScaleFrameReader] Buffer from pool has wrong size, allocating new one",{bufferLength:a.length,requiredSize:l}),a=new Uint8ClampedArray(l)),this._webglContext.readPixels(0,0,n,r,s,h,a),{width:t,height:r,data:new Uint8ClampedArray(a.buffer,0,t*r),colorType:"GRAYSCALE"}}setup(){this.initShaderProgram(),this.initBuffers(),this.initTexture();}dispose(){var e;this._ctx&&(this._shaderProgram&&(this._ctx.deleteProgram(this._shaderProgram),this._shaderProgram=null),this._positionBuffer&&(this._ctx.deleteBuffer(this._positionBuffer),this._positionBuffer=null),this._texture&&(this._ctx.deleteTexture(this._texture),this._texture=null),this._ctx=null),this._rgbaFallbackReader&&(this._rgbaFallbackReader.dispose(),this._rgbaFallbackReader=null),(e=this._framePool)==null||e.empty(),this._canvas=void 0;}updateCanvasSizeIfNeeded(){if(!this._canvas)return;let e=Math.ceil(this._contextWebGL.drawingBufferWidth/4);(this._canvas.width!==e||this._canvas.height!==this._contextWebGL.drawingBufferHeight)&&(this._canvas.width=e,this._canvas.height=this._contextWebGL.drawingBufferHeight);}updateFrameSizeIfNeeded(){let{drawingBufferWidth:e,drawingBufferHeight:t}=this._webglContext,i=e*t*4;this._frameSize!==i&&(this._frameSize=i,this._framePool&&this._framePool.empty(),this._framePool=new a$2({capacity:this._maxPoolCapacity,lowWaterMark:this._minPoolCapacity,createItem:()=>new Uint8ClampedArray(this._frameSize)}));}initShaderProgram(){let e=b$1(this._webglContext,this._webglContext.VERTEX_SHADER,v),t=b$1(this._webglContext,this._webglContext.FRAGMENT_SHADER,R);if(!e||!t)throw new Error("Shaders cannot be created");this._shaderProgram=a$3(this._webglContext,e,t),this._webglContext.useProgram(this._shaderProgram);}initBuffers(){this._positionBuffer=this._webglContext.createBuffer(),this._webglContext.bindBuffer(this._webglContext.ARRAY_BUFFER,this._positionBuffer),this._webglContext.bufferData(this._webglContext.ARRAY_BUFFER,this._positions,this._webglContext.STATIC_DRAW);let e=this._webglContext.getAttribLocation(this._shaderProgram,"a_position");this._webglContext.enableVertexAttribArray(e),this._webglContext.bindBuffer(this._webglContext.ARRAY_BUFFER,this._positionBuffer),this._webglContext.vertexAttribPointer(e,2,this._webglContext.FLOAT,false,0,0);}initTexture(){this._texture=this._webglContext.createTexture(),this._webglContext.bindTexture(this._webglContext.TEXTURE_2D,this._texture),this._webglContext.texParameteri(this._webglContext.TEXTURE_2D,this._webglContext.TEXTURE_WRAP_S,this._webglContext.CLAMP_TO_EDGE),this._webglContext.texParameteri(this._webglContext.TEXTURE_2D,this._webglContext.TEXTURE_WRAP_T,this._webglContext.CLAMP_TO_EDGE),this._webglContext.texParameteri(this._webglContext.TEXTURE_2D,this._webglContext.TEXTURE_MIN_FILTER,this._webglContext.LINEAR),this._webglContext.texParameteri(this._webglContext.TEXTURE_2D,this._webglContext.TEXTURE_MAG_FILTER,this._webglContext.LINEAR);let e=this._webglContext.getUniformLocation(this._shaderProgram,"u_texture");this._webglContext.uniform1i(e,0);}};export{p as a};
|
package/build/js/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { BrowserHelper } from './browserHelper.js';
|
|
|
7
7
|
export { Brush, BrushJSON } from './Brush.js';
|
|
8
8
|
export { g as Camera, f as CameraJSON, C as CameraPosition, l as CameraSettings, i as CameraSettingsFromJSON, j as CameraSettingsJSON, h as CameraSettingsJSONBase, F as FocusGestureStrategy, b as FrameSource, e as FrameSourceJSON, d as FrameSourceListener, c as FrameSourceState, T as TorchState, a as VideoFrameResolution, V as VideoResolution, k as isCameraFrameSource } from './Camera-CZ0Hl7v2.js';
|
|
9
9
|
export { Anchor, Color, ColorJSON, Direction, JSONType, MarginsWithUnit, MarginsWithUnitJSON, MeasureUnit, NumberWithUnit, NumberWithUnitJSON, Orientation, Point, PointJSON, PointWithUnit, PointWithUnitJSON, Quadrilateral, QuadrilateralJSON, Rect, RectJSON, RectWithUnit, RectWithUnitJSON, Size, SizeJSON, SizeWithAspect, SizeWithUnit, SizeWithUnitAndAspect, SizeWithUnitAndAspectJSON, SizeWithUnitJSON, SizingMode } from './Common.js';
|
|
10
|
-
export { C as Change, p as ContextStatus, o as ContextStatusJSON, f as DataCaptureComponent, e as DataCaptureComponentJSON, m as DataCaptureContext, i as DataCaptureContextCreationOptions, j as DataCaptureContextJSON, n as DataCaptureContextListener, D as DataCaptureContextState, A as DataCaptureLoader, z as DataCaptureLoaderOptions, a as DataCaptureMode, c as DataCaptureModeJSON, r as DataCaptureOverlay, v as DataCaptureView, u as DataCaptureViewConnectOptions, t as DataCaptureViewJSON, s as DataCaptureViewListener, F as FrameData, y as ModuleLoader, M as ModuleLoaderOptions, P as PrivateChangeSet, d as PrivateDataCaptureComponent, h as PrivateDataCaptureContext, g as PrivateDataCaptureContextOptions, b as PrivateDataCaptureMode, l as PrivateFrameHandler, k as PrivateFrameHandlerResponse, w as PrivateLoadableFrameData, q as PrivateMirrorAxis, x as convertToPublicFrameData } from './DataCaptureContext-
|
|
10
|
+
export { C as Change, p as ContextStatus, o as ContextStatusJSON, f as DataCaptureComponent, e as DataCaptureComponentJSON, m as DataCaptureContext, i as DataCaptureContextCreationOptions, j as DataCaptureContextJSON, n as DataCaptureContextListener, D as DataCaptureContextState, A as DataCaptureLoader, z as DataCaptureLoaderOptions, a as DataCaptureMode, c as DataCaptureModeJSON, r as DataCaptureOverlay, v as DataCaptureView, u as DataCaptureViewConnectOptions, t as DataCaptureViewJSON, s as DataCaptureViewListener, F as FrameData, y as ModuleLoader, M as ModuleLoaderOptions, P as PrivateChangeSet, d as PrivateDataCaptureComponent, h as PrivateDataCaptureContext, g as PrivateDataCaptureContextOptions, b as PrivateDataCaptureMode, l as PrivateFrameHandler, k as PrivateFrameHandlerResponse, w as PrivateLoadableFrameData, q as PrivateMirrorAxis, x as convertToPublicFrameData } from './DataCaptureContext-8EuyQSL7.js';
|
|
11
11
|
export { DataCaptureContextSettings, DataCaptureContextSettingsJSON } from './DataCaptureContextSettings.js';
|
|
12
12
|
export { DataCaptureError, DataCaptureErrorDetails } from './DataCaptureError.js';
|
|
13
13
|
export { DataCaptureVersion } from './DataCaptureVersion.js';
|
|
@@ -45,6 +45,7 @@ import './private/View.js';
|
|
|
45
45
|
import './license/OpenSourceSoftwareLicenseInfo.js';
|
|
46
46
|
import './private/FrameReaders/WatermarkStack.js';
|
|
47
47
|
import './private/CameraAccess.js';
|
|
48
|
+
import './private/djinni-types/index.js';
|
|
48
49
|
import './private/HtmlElementState.js';
|
|
49
50
|
import './private/utils/AsyncStateMachine.js';
|
|
50
51
|
import './private/ui/atoms/SvgIcon.js';
|
package/build/js/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunks/chunk-ACFJP5SR.js';export{a as DataCaptureLoader}from'./chunks/chunk-
|
|
1
|
+
import {a}from'./chunks/chunk-ACFJP5SR.js';export{a as DataCaptureLoader}from'./chunks/chunk-7RMPOOYQ.js';export{a as WorkerMain}from'./chunks/chunk-QDZ6UZHF.js';export{a as NotificationBuilder}from'./chunks/chunk-VBRTZG3W.js';export{a as SingleImageUploader}from'./chunks/chunk-LOV5GR63.js';export{a as SingleImageUploaderSettings}from'./chunks/chunk-TZ6TWPJD.js';export{c as CameraFOVSwitchControl,b as CameraSwitchControl,a as TorchSwitchControl}from'./chunks/chunk-FS52JIW4.js';export{a as NoViewfinder}from'./chunks/chunk-4ZMCJXZS.js';export{a as ImageFrameSource}from'./chunks/chunk-BRS5WVNO.js';export{a as LaserlineViewfinder}from'./chunks/chunk-TQ6K3P2B.js';export{a as PrivateNoneLocationSelection,b as RadiusLocationSelection,c as RectangularLocationSelection}from'./chunks/chunk-AKDTQZ73.js';export{a as RectangularViewfinder}from'./chunks/chunk-36CF5U7R.js';export{c as ScanditIconBuilder,b as ScanditIconForIconType,a as ScanditIconType}from'./chunks/chunk-2VNXD4FC.js';export{b as ScanditIcon,a as ScanditIconShape}from'./chunks/chunk-2EY4FBA3.js';export{a as DataCaptureVersion}from'./chunks/chunk-AL6GJUID.js';export{a as DataCaptureView}from'./chunks/chunk-T3DJYPIP.js';export{a as AnchorPositions}from'./chunks/chunk-EKOWJS3E.js';export{a as NotificationConfiguration}from'./chunks/chunk-KUVVZN66.js';export{a as NotificationStyle}from'./chunks/chunk-RXT3JWWR.js';export{a as Feedback}from'./chunks/chunk-5MUFGMII.js';export{a as Sound}from'./chunks/chunk-LH2NI5UL.js';export{a as Vibration}from'./chunks/chunk-GQVOVLRR.js';export{a as convertToPublicFrameData}from'./chunks/chunk-UHFABUTI.js';export{a as AimerViewfinder}from'./chunks/chunk-K5B6J4SK.js';export{a as Brush}from'./chunks/chunk-HLJPVZHK.js';export{a as Camera}from'./chunks/chunk-EFFUWK5Z.js';export{b as DataCaptureContext}from'./chunks/chunk-HTQSOUB3.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 assert,b as assertUnreachable,c as assertUnreachableThrowException}from'./chunks/chunk-FTD535WI.js';export{a as DataCaptureError}from'./chunks/chunk-QCZSSQAQ.js';export{a as BrowserHelper}from'./chunks/chunk-MTNFYUSF.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-25EQ6RFI.js';export{c as RectangularViewfinderAnimation,b as RectangularViewfinderLineStyle,a as RectangularViewfinderStyle}from'./chunks/chunk-WGLHZXRT.js';export{a as LogoStyle,c as SwipeToZoom,b as TapToFocus}from'./chunks/chunk-GX4YCYCH.js';export{q as Anchor,n as Color,p as Direction,m as MarginsWithUnit,c as MeasureUnit,d as NumberWithUnit,o as Orientation,a as Point,e as PointWithUnit,b as Quadrilateral,f as Rect,g as RectWithUnit,i as Size,j as SizeWithAspect,h as SizeWithUnit,l as SizeWithUnitAndAspect,k as SizingMode}from'./chunks/chunk-TPQTY3KB.js';export{a as ContextStatus,b as PrivateMirrorAxis}from'./chunks/chunk-WUHKODFA.js';export{a as DataCaptureContextSettings}from'./chunks/chunk-7SW2PEHB.js';a();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export { y as ModuleLoader } from './DataCaptureContext-
|
|
2
|
+
export { y as ModuleLoader } from './DataCaptureContext-8EuyQSL7.js';
|
|
3
3
|
import './Camera-CZ0Hl7v2.js';
|
|
4
4
|
import './Common.js';
|
|
5
5
|
import './private/Serializable.js';
|
|
@@ -23,5 +23,6 @@ import './tsHelper.js';
|
|
|
23
23
|
import './private/CameraAccess.js';
|
|
24
24
|
import './LoadingStatus.js';
|
|
25
25
|
import './worker/OverrideState.js';
|
|
26
|
+
import './private/djinni-types/index.js';
|
|
26
27
|
import './private/HtmlElementState.js';
|
|
27
28
|
import './private/utils/AsyncStateMachine.js';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/// <reference types="emscripten" />
|
|
2
|
+
import { AsyncImageConverterInstance, ImageBuffer } from './djinni-types/index.js';
|
|
3
|
+
|
|
4
|
+
type CanvasType = HTMLCanvasElement | OffscreenCanvas;
|
|
5
|
+
type CanvasContextType = CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D;
|
|
6
|
+
declare abstract class AsyncImageConverterBase implements AsyncImageConverterInstance {
|
|
7
|
+
protected readonly options: {
|
|
8
|
+
quality: number;
|
|
9
|
+
};
|
|
10
|
+
protected canvas?: CanvasType;
|
|
11
|
+
protected context?: CanvasContextType;
|
|
12
|
+
protected static readonly JPEG_IMAGE_MIME_TYPE = "image/jpeg";
|
|
13
|
+
constructor(options: {
|
|
14
|
+
quality: number;
|
|
15
|
+
});
|
|
16
|
+
/**
|
|
17
|
+
* Shoud return a new canvas for the current runtime. Usually an HTMLCanvasElement or an OffscreenCanvas.
|
|
18
|
+
*/
|
|
19
|
+
protected abstract getNewCanvas(width: number, height: number): CanvasType;
|
|
20
|
+
/**
|
|
21
|
+
* Should convert the canvas to a JPEG blob.
|
|
22
|
+
*/
|
|
23
|
+
protected abstract canvasToBlob(canvas: CanvasType): Promise<Blob | null>;
|
|
24
|
+
get quality(): number;
|
|
25
|
+
convertToJpeg(imageBuffer: ImageBuffer, orientation: number): Promise<Uint8Array>;
|
|
26
|
+
private validateAndExtractImageData;
|
|
27
|
+
private prepareCanvas;
|
|
28
|
+
private processImageData;
|
|
29
|
+
private validateImageData;
|
|
30
|
+
private convertToJpegBytes;
|
|
31
|
+
private ensureCanvas;
|
|
32
|
+
private createImageDataFromBuffer;
|
|
33
|
+
private isYUVFormat;
|
|
34
|
+
private isRGBAFormat;
|
|
35
|
+
private isRGBFormat;
|
|
36
|
+
private isGrayscaleFormat;
|
|
37
|
+
private createImageDataFromRGBAPlanes;
|
|
38
|
+
private createImageDataFromRGBPlanes;
|
|
39
|
+
private createImageDataFromGrayscalePlanes;
|
|
40
|
+
private getPixelFromPlane;
|
|
41
|
+
private applyRotation;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { AsyncImageConverterBase };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as AsyncImageConverterBase}from'../chunks/chunk-GZMB3TRK.js';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="emscripten" />
|
|
2
|
+
import { AsyncImageConverterBase } from './AsyncImageConverterBase.js';
|
|
3
|
+
import './djinni-types/index.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Converter safe to be used in the main thread.
|
|
7
|
+
*/
|
|
8
|
+
declare class AsyncImageConverterMainThread extends AsyncImageConverterBase {
|
|
9
|
+
protected getNewCanvas(width: number, height: number): HTMLCanvasElement;
|
|
10
|
+
protected canvasToBlob(canvas: HTMLCanvasElement): Promise<Blob | null>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { AsyncImageConverterMainThread };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as AsyncImageConverterMainThread}from'../chunks/chunk-A5WVN3T4.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{c as AspectRatio,d as CameraAccess,a as CameraPosition,b as CameraResolutionConstraint}from'../chunks/chunk-
|
|
1
|
+
export{c as AspectRatio,d as CameraAccess,a as CameraPosition,b as CameraResolutionConstraint}from'../chunks/chunk-ELQAIHEQ.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export {
|
|
2
|
+
export { bj as CameraManager, bh as CameraManagerEvent, bi as CameraManagerEventParameters, bd as CameraResolutionConstraint, be as ExtendedMediaTrackCapabilities, bf as ExtendedMediaTrackConstraintSet, ba as FrameCapture, bg as GUI, bc as MeteringMode } from '../DataCaptureContext-8EuyQSL7.js';
|
|
3
3
|
import '../Camera-CZ0Hl7v2.js';
|
|
4
4
|
import '../Common.js';
|
|
5
5
|
import './CameraAccess.js';
|
|
@@ -22,6 +22,7 @@ import './FrameReaders/WatermarkStack.js';
|
|
|
22
22
|
import '../tsHelper.js';
|
|
23
23
|
import '../LoadingStatus.js';
|
|
24
24
|
import '../worker/OverrideState.js';
|
|
25
|
+
import './djinni-types/index.js';
|
|
25
26
|
import './HtmlElementState.js';
|
|
26
27
|
import './utils/AsyncStateMachine.js';
|
|
27
28
|
import './privateAccess.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{d as CameraManager,c as CameraManagerEvent,b as CameraResolutionConstraint,a as MeteringMode}from'../chunks/chunk-
|
|
1
|
+
export{d as CameraManager,c as CameraManagerEvent,b as CameraResolutionConstraint,a as MeteringMode}from'../chunks/chunk-5TW3OTHU.js';
|