scanbot-web-sdk 6.0.0-dev.6 → 7.0.0-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/@types/barcode-scanner-view.d.ts +1 -1
  2. package/@types/core/bridge/compiled/{BarcodeConfigs.d.ts → BarcodeConfigurationTypes.d.ts} +558 -173
  3. package/@types/core/bridge/compiled/BarcodeDocumentModel.d.ts +1421 -0
  4. package/@types/core/bridge/compiled/BarcodeDocumentTypes.d.ts +14 -13
  5. package/@types/core/bridge/compiled/BarcodeScannerTypes.d.ts +25 -14
  6. package/@types/core/bridge/compiled/BarcodeTypes.d.ts +58 -56
  7. package/@types/core/bridge/compiled/CheckDocumentModel.d.ts +130 -0
  8. package/@types/core/bridge/compiled/CheckScannerTypes.d.ts +67 -0
  9. package/@types/core/bridge/compiled/CommonFieldType.d.ts +29 -28
  10. package/@types/core/bridge/compiled/CreditCardDocumentModel.d.ts +16 -0
  11. package/@types/core/bridge/compiled/CreditCardTypes.d.ts +35 -33
  12. package/@types/core/bridge/compiled/DocumentDataExtractorConfigurationTypes.d.ts +148 -0
  13. package/@types/core/bridge/compiled/DocumentDataExtractorTypes.d.ts +90 -0
  14. package/@types/core/bridge/compiled/DocumentQualityAnalyzerTypes.d.ts +28 -23
  15. package/@types/core/bridge/compiled/{DocumentDetectorTypes.d.ts → DocumentScannerTypes.d.ts} +49 -47
  16. package/@types/core/bridge/compiled/DocumentsModel.d.ts +489 -0
  17. package/@types/core/bridge/compiled/{EhicTypes.d.ts → EuropeanHealthInsuranceCardTypes.d.ts} +51 -108
  18. package/@types/core/bridge/compiled/FrameAccumulationTypes.d.ts +37 -14
  19. package/@types/core/bridge/compiled/GenericDocument.d.ts +17 -17
  20. package/@types/core/bridge/compiled/Geometry.d.ts +2 -2
  21. package/@types/core/bridge/compiled/ImageTypes.d.ts +1 -0
  22. package/@types/core/bridge/compiled/LicensePlateScannerTypes.d.ts +20 -19
  23. package/@types/core/bridge/compiled/MedicalCertificateTypes.d.ts +108 -105
  24. package/@types/core/bridge/compiled/MrzTypes.d.ts +73 -0
  25. package/@types/core/bridge/compiled/ParametricFilters.d.ts +4 -3
  26. package/@types/core/bridge/compiled/{PdfConfig.d.ts → PdfConfigurationTypes.d.ts} +48 -45
  27. package/@types/core/bridge/compiled/{GenericTextLineScannerTypes.d.ts → TextPatternScannerTypes.d.ts} +20 -39
  28. package/@types/core/bridge/compiled/TiffTypes.d.ts +48 -50
  29. package/@types/core/bridge/compiled/VinScannerTypes.d.ts +79 -0
  30. package/@types/core/bridge/worker-bridge.d.ts +512 -374
  31. package/@types/core/worker/ScanbotSDK.Core.d.ts +28 -22
  32. package/@types/core-types.d.ts +15 -12
  33. package/@types/cropping-view.d.ts +8 -4
  34. package/@types/document-data-extractor-view.d.ts +22 -0
  35. package/@types/document-scanner-view.d.ts +16 -7
  36. package/@types/index.d.ts +37 -24
  37. package/@types/interfaces/i-cropping-view-handle.d.ts +2 -0
  38. package/@types/interfaces/i-document-data-extractor-scanner-handle.d.ts +3 -0
  39. package/@types/interfaces/{i-text-data-scanner-handle.d.ts → i-text-pattern-scanner-handle.d.ts} +1 -1
  40. package/@types/model/configuration/barcode-scanner-configuration.d.ts +1 -0
  41. package/@types/model/configuration/cropping-view-configuration.d.ts +1 -0
  42. package/@types/model/configuration/document-data-extractor-configuration.d.ts +9 -0
  43. package/@types/model/configuration/document-scanner-configuration.d.ts +8 -4
  44. package/@types/model/configuration/initialization-options.d.ts +1 -2
  45. package/@types/model/configuration/mrz-scanner-configuration.d.ts +4 -4
  46. package/@types/model/configuration/selection-overlay-configuration.d.ts +5 -0
  47. package/@types/model/configuration/text-pattern-scanner-configuration.d.ts +9 -0
  48. package/@types/model/configuration/view-finder-scanner-configuration.d.ts +2 -1
  49. package/@types/model/configuration/vin-scanner-configuration.d.ts +4 -4
  50. package/@types/scanbot-sdk.d.ts +276 -210
  51. package/@types/scanner-view.d.ts +2 -0
  52. package/@types/service/document-data-extractor.d.ts +13 -0
  53. package/@types/service/ocr-engine.d.ts +3 -3
  54. package/@types/service/pdf-generator.d.ts +6 -1
  55. package/@types/service/simple-mrz-recognizer.d.ts +4 -4
  56. package/@types/service/storage/indexed-db/sb-indexed-db.d.ts +60 -0
  57. package/@types/service/storage/local/sb-local-storage.d.ts +11 -0
  58. package/@types/service/storage/sb-storage.d.ts +33 -0
  59. package/@types/service/storage/utils/create-worker-vite.d.ts +1 -0
  60. package/@types/service/storage/utils/create-worker.d.ts +1 -0
  61. package/@types/service/storage/utils/sb-storage-error.d.ts +5 -0
  62. package/@types/service/storage/utils/sb-storage-utils.d.ts +10 -0
  63. package/@types/service/text-pattern-scanner.d.ts +14 -0
  64. package/@types/service/tiff-generator.d.ts +7 -4
  65. package/@types/service/vin-scanner.d.ts +16 -0
  66. package/@types/{text-data-scanner-view.d.ts → text-pattern-scanner-view.d.ts} +10 -10
  67. package/@types/ui2/{controllers → barcode/controllers}/barcode-scanner-controller.d.ts +1 -1
  68. package/@types/ui2/{controllers → barcode/controllers}/multiple-scanning-mode-controller.d.ts +1 -1
  69. package/@types/ui2/{controllers → barcode/controllers}/single-scanning-mode-controller.d.ts +1 -1
  70. package/@types/ui2/{model → barcode/model}/counted-barcodes.d.ts +2 -2
  71. package/@types/ui2/{utils → barcode/utils}/barcode-mapper/expected-barcode-mapper.d.ts +2 -2
  72. package/@types/ui2/{utils → barcode/utils}/barcode-mapper/i-barcode-mapper.d.ts +2 -2
  73. package/@types/ui2/{utils → barcode/utils}/barcode-mapper/user-barcode-mapper.d.ts +1 -1
  74. package/@types/ui2/{utils → barcode/utils}/camera-config.d.ts +2 -2
  75. package/@types/ui2/{utils → barcode/utils}/styled-badge.d.ts +3 -1
  76. package/@types/ui2/{utils → barcode/utils}/styled-box.d.ts +1 -1
  77. package/@types/ui2/barcode/utils/styled-button.d.ts +14 -0
  78. package/@types/ui2/{utils → barcode/utils}/useScanningViewSize.d.ts +1 -1
  79. package/@types/ui2/{views → barcode/views}/action-button/action-button-container.d.ts +3 -3
  80. package/@types/ui2/{views → barcode/views}/action-button/action-button.d.ts +1 -1
  81. package/@types/ui2/{views → barcode/views}/ar/ar-badge.d.ts +2 -2
  82. package/@types/ui2/{views → barcode/views}/ar/ar-overlay-barcode-info.d.ts +2 -2
  83. package/@types/ui2/{views → barcode/views}/ar/vertical-positions.d.ts +2 -2
  84. package/@types/ui2/{views → barcode/views}/barcode-info/barcode-info.d.ts +1 -1
  85. package/@types/ui2/{views → barcode/views}/barcode-scanner.d.ts +8 -8
  86. package/@types/ui2/{views → barcode/views}/camera-permission-denied.d.ts +1 -1
  87. package/@types/ui2/{views → barcode/views}/dialog/barcode-info-dialog.d.ts +1 -1
  88. package/@types/ui2/{views → barcode/views}/dialog/barcode-mapping-error-dialog.d.ts +1 -1
  89. package/@types/ui2/{views → barcode/views}/dialog/base/confirmation-dialog.d.ts +1 -1
  90. package/@types/ui2/{views → barcode/views}/dialog/base/styled-dialog.d.ts +1 -0
  91. package/@types/ui2/{views → barcode/views}/dialog/count-edit-dialog.d.ts +1 -1
  92. package/@types/ui2/{views → barcode/views}/dialog/find-and-pick-submit-dialog.d.ts +1 -1
  93. package/@types/ui2/{views → barcode/views}/drawer/barcode-result-drawer.d.ts +1 -1
  94. package/@types/ui2/{views → barcode/views}/drawer/barcode-result-sidebar.d.ts +1 -1
  95. package/@types/ui2/{views → barcode/views}/drawer/counting-button.d.ts +1 -1
  96. package/@types/ui2/{views → barcode/views}/drawer/hooks/use-drag-listener.d.ts +1 -1
  97. package/@types/ui2/{views → barcode/views}/drawer/subviews/barcode-drawer-empty-state.d.ts +1 -1
  98. package/@types/ui2/{views → barcode/views}/drawer/subviews/barcode-list-item.d.ts +1 -1
  99. package/@types/ui2/{views → barcode/views}/drawer/subviews/barcode-list.d.ts +1 -1
  100. package/@types/ui2/{views → barcode/views}/drawer/subviews/drawer-header-content.d.ts +1 -1
  101. package/@types/ui2/{views → barcode/views}/drawer/subviews/swipe-underlay.d.ts +1 -1
  102. package/@types/ui2/{views → barcode/views}/form/dialog-button.d.ts +4 -1
  103. package/@types/ui2/{views → barcode/views}/navigation-bar.d.ts +1 -1
  104. package/@types/ui2/{views → barcode/views}/styled-text.d.ts +2 -1
  105. package/@types/ui2/configuration/DocumentQualityAnalyzerTypes.d.ts +1 -0
  106. package/@types/ui2/configuration/DocumentScannerTypes.d.ts +1 -0
  107. package/@types/ui2/configuration/Geometry.d.ts +1 -1
  108. package/@types/ui2/configuration/ParametricFilters.d.ts +1 -0
  109. package/@types/ui2/configuration/{ActionBarConfiguration.d.ts → barcode/ActionBarConfiguration.d.ts} +1 -1
  110. package/@types/ui2/configuration/{ArTrackingOverlayConfiguration.d.ts → barcode/ArTrackingOverlayConfiguration.d.ts} +1 -1
  111. package/@types/ui2/configuration/{BarcodeInfoMapping.d.ts → barcode/BarcodeInfoMapping.d.ts} +1 -1
  112. package/@types/ui2/configuration/{BarcodeRecognizerConfiguration.d.ts → barcode/BarcodeRecognizerConfiguration.d.ts} +3 -3
  113. package/@types/ui2/configuration/{BarcodeScannerConfiguration.d.ts → barcode/BarcodeScannerConfiguration.d.ts} +1 -1
  114. package/@types/ui2/configuration/barcode/BarcodeScannerTypes.d.ts +2 -0
  115. package/@types/ui2/configuration/{BarcodeScannerUIResult.d.ts → barcode/BarcodeScannerUIResult.d.ts} +1 -1
  116. package/@types/ui2/configuration/{BarcodeTextLocalization.d.ts → barcode/BarcodeTextLocalization.d.ts} +1 -1
  117. package/@types/ui2/configuration/barcode/BarcodeTypes.d.ts +1 -0
  118. package/@types/ui2/configuration/{CameraConfiguration.d.ts → barcode/CameraConfiguration.d.ts} +1 -1
  119. package/@types/ui2/configuration/{CameraPermission.d.ts → barcode/CameraPermission.d.ts} +1 -1
  120. package/@types/ui2/configuration/{Common.d.ts → barcode/Common.d.ts} +1 -1
  121. package/@types/ui2/configuration/barcode/CommonFieldType.d.ts +1 -0
  122. package/@types/ui2/configuration/{FindAndPickScanningModeUseCase.d.ts → barcode/FindAndPickScanningModeUseCase.d.ts} +1 -1
  123. package/@types/ui2/configuration/barcode/GenericDocument.d.ts +1 -0
  124. package/@types/ui2/configuration/barcode/Geometry.d.ts +1 -0
  125. package/@types/ui2/configuration/{MultipleScanningModeUseCase.d.ts → barcode/MultipleScanningModeUseCase.d.ts} +1 -1
  126. package/@types/ui2/configuration/{ScanbotAlertDialog.d.ts → barcode/ScanbotAlertDialog.d.ts} +1 -1
  127. package/@types/ui2/configuration/{SingleScanningModeUseCase.d.ts → barcode/SingleScanningModeUseCase.d.ts} +1 -1
  128. package/@types/ui2/configuration/{TopBarConfiguration.d.ts → barcode/TopBarConfiguration.d.ts} +1 -1
  129. package/@types/ui2/configuration/{UserGuidanceConfiguration.d.ts → barcode/UserGuidanceConfiguration.d.ts} +1 -1
  130. package/@types/ui2/configuration/{ViewFinderConfiguration.d.ts → barcode/ViewFinderConfiguration.d.ts} +1 -1
  131. package/@types/ui2/configuration/common/ActionBarConfiguration.d.ts +42 -0
  132. package/@types/ui2/configuration/common/CameraConfiguration.d.ts +60 -0
  133. package/@types/ui2/configuration/common/CameraPermission.d.ts +62 -0
  134. package/@types/ui2/configuration/common/Common.d.ts +467 -0
  135. package/@types/ui2/configuration/common/NavigationBarConfiguration.d.ts +11 -0
  136. package/@types/ui2/configuration/common/ScanbotAlertDialog.d.ts +74 -0
  137. package/@types/ui2/configuration/common/TopBarConfiguration.d.ts +55 -0
  138. package/@types/ui2/configuration/common/UserGuidanceConfiguration.d.ts +64 -0
  139. package/@types/ui2/configuration/common/ViewFinderConfiguration.d.ts +93 -0
  140. package/@types/ui2/configuration/document/AcknowledgementScreenConfiguration.d.ts +125 -0
  141. package/@types/ui2/configuration/document/CameraScreenConfiguration.d.ts +659 -0
  142. package/@types/ui2/configuration/document/CroppingConfiguration.d.ts +1 -0
  143. package/@types/ui2/configuration/document/CroppingResult.d.ts +1 -0
  144. package/@types/ui2/configuration/document/CroppingScreenConfiguration.d.ts +141 -0
  145. package/@types/ui2/configuration/document/CroppingTextLocalization.d.ts +1 -0
  146. package/@types/ui2/configuration/document/DocumentScannerCameraConfiguration.d.ts +60 -0
  147. package/@types/ui2/configuration/document/DocumentScannerGuidanceVisibility.d.ts +11 -0
  148. package/@types/ui2/configuration/document/DocumentScannerOutputSettings.d.ts +38 -0
  149. package/@types/ui2/configuration/document/DocumentScannerScreens.d.ts +26 -0
  150. package/@types/ui2/configuration/document/DocumentScannerTextLocalization.d.ts +608 -0
  151. package/@types/ui2/configuration/document/DocumentScannerUIResult.d.ts +5 -0
  152. package/@types/ui2/configuration/document/DocumentScannerUserGuidance.d.ts +99 -0
  153. package/@types/ui2/configuration/document/DocumentScanningFlow.d.ts +91 -0
  154. package/@types/ui2/configuration/document/IntroductionScreenConfiguration.d.ts +188 -0
  155. package/@types/ui2/configuration/document/ReorderPagesScreenConfiguration.d.ts +1 -0
  156. package/@types/ui2/configuration/document/ReviewScreenConfiguration.d.ts +372 -0
  157. package/@types/ui2/configuration/native/DocumentData.d.ts +37 -0
  158. package/@types/ui2/configuration/native/PageData.d.ts +58 -0
  159. package/@types/ui2/configuration/native/PageImageSource.d.ts +13 -0
  160. package/@types/ui2/configuration/utils.d.ts +8 -0
  161. package/@types/ui2/configuration.d.ts +46 -21
  162. package/@types/ui2/document/assets/auto-capture-disabled-icon.d.ts +4 -0
  163. package/@types/ui2/document/assets/auto-capture-icon.d.ts +4 -0
  164. package/@types/ui2/document/assets/captured-circle-icon.d.ts +5 -0
  165. package/@types/ui2/document/assets/delete-icon.d.ts +4 -0
  166. package/@types/ui2/document/assets/file-add-icon.d.ts +4 -0
  167. package/@types/ui2/document/assets/image-error-icon.d.ts +5 -0
  168. package/@types/ui2/document/assets/image-retake.d.ts +4 -0
  169. package/@types/ui2/document/assets/loading-spinner-icon.d.ts +2 -0
  170. package/@types/ui2/document/assets/shutter-button-auto-icon.d.ts +4 -0
  171. package/@types/ui2/document/assets/shutter-button-manual-icon.d.ts +5 -0
  172. package/@types/ui2/document/assets/shutter-button-spinner-icon.d.ts +4 -0
  173. package/@types/ui2/document/assets/the-hand.d.ts +10 -0
  174. package/@types/ui2/document/controller/acknowledgment-screen-controller.d.ts +16 -0
  175. package/@types/ui2/document/controller/camera-screen-controller.d.ts +20 -0
  176. package/@types/ui2/document/controller/cropping-screen-controller.d.ts +14 -0
  177. package/@types/ui2/document/controller/document-scanner-controller.d.ts +14 -0
  178. package/@types/ui2/document/controller/review-screen-controller.d.ts +18 -0
  179. package/@types/ui2/document/controller/zoom-screen-controller.d.ts +11 -0
  180. package/@types/ui2/document/model/document-detection-ui-result.d.ts +8 -0
  181. package/@types/ui2/document/model/sb-document.d.ts +62 -0
  182. package/@types/ui2/document/model/sb-page.d.ts +38 -0
  183. package/@types/ui2/document/model/utils/sb-document-data.d.ts +10 -0
  184. package/@types/ui2/document/model/utils/sb-page-data.d.ts +7 -0
  185. package/@types/ui2/document/utils/SBThemeProvider.d.ts +4 -0
  186. package/@types/ui2/document/utils/button-accessibility-styling.d.ts +40 -0
  187. package/@types/ui2/document/views/acknowledgement-screen/acknowledgement-confirmation.d.ts +19 -0
  188. package/@types/ui2/document/views/acknowledgement-screen/acknowledgement-fade.d.ts +9 -0
  189. package/@types/ui2/document/views/acknowledgement-screen/acknowledgement-image.d.ts +6 -0
  190. package/@types/ui2/document/views/acknowledgement-screen/acknowledgement-screen-bottom-bar.d.ts +12 -0
  191. package/@types/ui2/document/views/acknowledgement-screen/quality-insufficient-banner.d.ts +10 -0
  192. package/@types/ui2/document/views/camera-screen/bottom-bar.d.ts +33 -0
  193. package/@types/ui2/document/views/camera-screen/camera-permission-denied.d.ts +9 -0
  194. package/@types/ui2/document/views/camera-screen/camera-select-dropdown.d.ts +14 -0
  195. package/@types/ui2/document/views/camera-screen/introduction/assets/CheckIcon.d.ts +3 -0
  196. package/@types/ui2/document/views/camera-screen/introduction/assets/CreditCardsIcon.d.ts +3 -0
  197. package/@types/ui2/document/views/camera-screen/introduction/assets/DocumentsIcon.d.ts +3 -0
  198. package/@types/ui2/document/views/camera-screen/introduction/assets/IdCardsIcon.d.ts +3 -0
  199. package/@types/ui2/document/views/camera-screen/introduction/assets/MedicalCertsIcon.d.ts +3 -0
  200. package/@types/ui2/document/views/camera-screen/introduction/assets/Props.d.ts +3 -0
  201. package/@types/ui2/document/views/camera-screen/introduction/assets/ReceiptsIcon.d.ts +3 -0
  202. package/@types/ui2/document/views/camera-screen/introduction/introduction-image.d.ts +5 -0
  203. package/@types/ui2/document/views/camera-screen/introduction/introduction.d.ts +9 -0
  204. package/@types/ui2/document/views/camera-screen/preview-button.d.ts +11 -0
  205. package/@types/ui2/document/views/camera-screen/scanner-box.d.ts +21 -0
  206. package/@types/ui2/document/views/camera-screen/shutter-button.d.ts +10 -0
  207. package/@types/ui2/document/views/camera-screen/top-bar.d.ts +11 -0
  208. package/@types/ui2/document/views/camera-screen/top-user-guidance.d.ts +8 -0
  209. package/@types/ui2/document/views/camera-screen/use-document-scanner-view.d.ts +31 -0
  210. package/@types/ui2/document/views/camera-screen/user-guidance-text.d.ts +10 -0
  211. package/@types/ui2/document/views/common/alert-dialog.d.ts +11 -0
  212. package/@types/ui2/document/views/common/bar-button.d.ts +17 -0
  213. package/@types/ui2/document/views/common/common-top-bar.d.ts +12 -0
  214. package/@types/ui2/document/views/common/loading-spinner.d.ts +4 -0
  215. package/@types/ui2/document/views/common/styled-menu-item.d.ts +12 -0
  216. package/@types/ui2/document/views/common/styled-menu.d.ts +17 -0
  217. package/@types/ui2/document/views/review-screen/bottom-bar.d.ts +15 -0
  218. package/@types/ui2/document/views/review-screen/carousel-page.d.ts +13 -0
  219. package/@types/ui2/document/views/review-screen/carousel.d.ts +14 -0
  220. package/@types/ui2/document/views/review-screen/page-counter-and-zoom-button.d.ts +10 -0
  221. package/@types/ui2/document/views/review-screen/scroller-navigation-button.d.ts +11 -0
  222. package/@types/ui2/document/views/review-screen/top-bar.d.ts +11 -0
  223. package/@types/ui2/scanbot-sdk-ui.d.ts +4 -0
  224. package/@types/ui2/scanbot-ui-library.d.ts +7 -4
  225. package/@types/ui2/utils/text-styling.d.ts +8 -0
  226. package/@types/ui2/utils/use-time-since-first-render-has-passed.d.ts +1 -0
  227. package/@types/utils/constants.d.ts +0 -2
  228. package/@types/utils/dto/Frame.d.ts +2 -0
  229. package/@types/utils/image-utils.d.ts +2 -1
  230. package/@types/utils/parse-color.d.ts +9 -0
  231. package/@types/utils/react/useIsMounted.d.ts +2 -0
  232. package/@types/utils/react/usePromise.d.ts +4 -3
  233. package/@types/utils/supported-image-mime-types.d.ts +2 -0
  234. package/@types/utils/view-utils.d.ts +1 -1
  235. package/@types/view/barcode-polygon/animated-barcode-selection-overlay.d.ts +8 -2
  236. package/@types/view/polygon/document-polygon.d.ts +1 -0
  237. package/@types/worker/worker-bridge.d.ts +522 -384
  238. package/Libraries.txt +1510 -36
  239. package/bundle/ScanbotSDK.min.js +5 -5
  240. package/bundle/ScanbotSDK.ui2.min.js +18 -18
  241. package/bundle/ScanbotSDK.ui2.min.js.LICENSE.txt +10 -0
  242. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
  243. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  244. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
  245. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm.wasm +0 -0
  246. package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
  247. package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd.js +1 -1
  248. package/bundle/bin/barcode-scanner/ScanbotSDK.Core.js +1 -1
  249. package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.js +1 -1
  250. package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  251. package/bundle/bin/complete/ScanbotSDK.Asm-simd.wasm +0 -0
  252. package/bundle/bin/complete/ScanbotSDK.Asm.wasm +0 -0
  253. package/bundle/bin/complete/ScanbotSDK.Core-simd-threads.js +1 -1
  254. package/bundle/bin/complete/ScanbotSDK.Core-simd.js +1 -1
  255. package/bundle/bin/complete/ScanbotSDK.Core.js +1 -1
  256. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
  257. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  258. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
  259. package/bundle/bin/document-scanner/ScanbotSDK.Asm.wasm +0 -0
  260. package/bundle/bin/document-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
  261. package/bundle/bin/document-scanner/ScanbotSDK.Core-simd.js +1 -1
  262. package/bundle/bin/document-scanner/ScanbotSDK.Core.js +1 -1
  263. package/package.json +3 -3
  264. package/@types/core/bridge/compiled/CheckRecognizerTypes.d.ts +0 -29
  265. package/@types/core/bridge/compiled/FrameUtilities.d.ts +0 -18
  266. package/@types/core/bridge/compiled/GDRTypes.d.ts +0 -38
  267. package/@types/core/bridge/compiled/GenericDocumentRecognizerConfigs.d.ts +0 -150
  268. package/@types/core/bridge/compiled/GenericDocumentRecognizerTypes.d.ts +0 -83
  269. package/@types/core/bridge/compiled/GenericDocumentTypes.d.ts +0 -15
  270. package/@types/core/bridge/compiled/MRZTypes.d.ts +0 -52
  271. package/@types/generic-document-recognizer-view.d.ts +0 -22
  272. package/@types/interfaces/i-generic-document-recognizer-scanner-handle.d.ts +0 -3
  273. package/@types/model/configuration/generic-document-recognizer-configuration.d.ts +0 -9
  274. package/@types/model/configuration/text-data-scanner-configuration.d.ts +0 -9
  275. package/@types/service/generic-document-recognizer.d.ts +0 -13
  276. package/@types/service/text-data-recognizer.d.ts +0 -14
  277. package/@types/ui2/configuration/BarcodeScannerTypes.d.ts +0 -1
  278. package/@types/ui2/configuration/BarcodeTypes.d.ts +0 -1
  279. package/@types/ui2/configuration/CommonFieldType.d.ts +0 -1
  280. package/@types/ui2/configuration/GenericDocument.d.ts +0 -1
  281. package/@types/ui2/utils/styled-button.d.ts +0 -7
  282. /package/@types/core/bridge/compiled/{OcrElements.d.ts → OcrTypes.d.ts} +0 -0
  283. /package/@types/ui2/{utils → barcode/utils}/find-and-pick.ts/expected-barcode-counter.d.ts +0 -0
  284. /package/@types/ui2/{utils → barcode/utils}/styled-input.d.ts +0 -0
  285. /package/@types/ui2/{views → barcode/views}/drawer/subviews/barcode-drawer-header.d.ts +0 -0
  286. /package/@types/ui2/configuration/{BarcodeItemMapper.d.ts → barcode/BarcodeItemMapper.d.ts} +0 -0
  287. /package/@types/ui2/configuration/{BarcodeUseCase.d.ts → barcode/BarcodeUseCase.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
1
  /*! For license information please see ScanbotSDK.ui2.min.js.LICENSE.txt */
2
- !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=119)}([function(t,e,n){"use strict";n.r(e),n.d(e,"Component",(function(){return s.a})),n.d(e,"Fragment",(function(){return s.b})),n.d(e,"createContext",(function(){return s.d})),n.d(e,"createElement",(function(){return s.e})),n.d(e,"createRef",(function(){return s.f})),n.d(e,"useCallback",(function(){return E})),n.d(e,"useContext",(function(){return L})),n.d(e,"useDebugValue",(function(){return j})),n.d(e,"useEffect",(function(){return C})),n.d(e,"useErrorBoundary",(function(){return k})),n.d(e,"useId",(function(){return _})),n.d(e,"useImperativeHandle",(function(){return w})),n.d(e,"useLayoutEffect",(function(){return S})),n.d(e,"useMemo",(function(){return O})),n.d(e,"useReducer",(function(){return A})),n.d(e,"useRef",(function(){return x})),n.d(e,"useState",(function(){return y})),n.d(e,"Children",(function(){return G})),n.d(e,"PureComponent",(function(){return z})),n.d(e,"StrictMode",(function(){return Pt})),n.d(e,"Suspense",(function(){return q})),n.d(e,"SuspenseList",(function(){return tt})),n.d(e,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",(function(){return St})),n.d(e,"cloneElement",(function(){return Lt})),n.d(e,"createFactory",(function(){return wt})),n.d(e,"createPortal",(function(){return ot})),n.d(e,"default",(function(){return zt})),n.d(e,"findDOMNode",(function(){return kt})),n.d(e,"flushSync",(function(){return Tt})),n.d(e,"forwardRef",(function(){return H})),n.d(e,"hydrate",(function(){return ht})),n.d(e,"isElement",(function(){return It})),n.d(e,"isFragment",(function(){return Et})),n.d(e,"isValidElement",(function(){return Ot})),n.d(e,"lazy",(function(){return J})),n.d(e,"memo",(function(){return N})),n.d(e,"render",(function(){return dt})),n.d(e,"startTransition",(function(){return Rt})),n.d(e,"unmountComponentAtNode",(function(){return jt})),n.d(e,"unstable_batchedUpdates",(function(){return _t})),n.d(e,"useDeferredValue",(function(){return Dt})),n.d(e,"useInsertionEffect",(function(){return Ft})),n.d(e,"useSyncExternalStore",(function(){return Mt})),n.d(e,"useTransition",(function(){return Bt})),n.d(e,"version",(function(){return xt}));var r,o,i,a,s=n(12),l=0,c=[],u=[],d=s.h,h=d.__b,p=d.__r,f=d.diffed,m=d.__c,g=d.unmount,v=d.__;function b(t,e){d.__h&&d.__h(o,t,l||e),l=0;var n=o.__H||(o.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:u}),n.__[t]}function y(t){return l=1,A(I,t)}function A(t,e,n){var i=b(r++,2);if(i.t=t,!i.__c&&(i.__=[n?n(e):I(void 0,e),function(t){var e=i.__N?i.__N[0]:i.__[0],n=i.t(e,t);e!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=o,!o.u)){var a=function(t,e,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(t){return!!t.__c}));if(r.every((function(t){return!t.__N})))return!s||s.call(this,t,e,n);var o=!1;return r.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(o=!0)}})),!(!o&&i.__c.props===t)&&(!s||s.call(this,t,e,n))};o.u=!0;var s=o.shouldComponentUpdate,l=o.componentWillUpdate;o.componentWillUpdate=function(t,e,n){if(this.__e){var r=s;s=void 0,a(t,e,n),s=r}l&&l.call(this,t,e,n)},o.shouldComponentUpdate=a}return i.__N||i.__}function C(t,e){var n=b(r++,3);!d.__s&&F(n.__H,e)&&(n.__=t,n.i=e,o.__H.__h.push(n))}function S(t,e){var n=b(r++,4);!d.__s&&F(n.__H,e)&&(n.__=t,n.i=e,o.__h.push(n))}function x(t){return l=5,O((function(){return{current:t}}),[])}function w(t,e,n){l=6,S((function(){return"function"==typeof t?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0}),null==n?n:n.concat(t))}function O(t,e){var n=b(r++,7);return F(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function E(t,e){return l=8,O((function(){return t}),e)}function L(t){var e=o.context[t.__c],n=b(r++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(o)),e.props.value):t.__}function j(t,e){d.useDebugValue&&d.useDebugValue(e?e(t):t)}function k(t){var e=b(r++,10),n=y();return e.__=t,o.componentDidCatch||(o.componentDidCatch=function(t,r){e.__&&e.__(t,r),n[1](t)}),[n[0],function(){n[1](void 0)}]}function _(){var t=b(r++,11);if(!t.__){for(var e=o.__v;null!==e&&!e.__m&&null!==e.__;)e=e.__;var n=e.__m||(e.__m=[0,0]);t.__="P"+n[0]+"-"+n[1]++}return t.__}function T(){for(var t;t=c.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(D),t.__H.__h.forEach(B),t.__H.__h=[]}catch(e){t.__H.__h=[],d.__e(e,t.__v)}}d.__b=function(t){o=null,h&&h(t)},d.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),v&&v(t,e)},d.__r=function(t){p&&p(t),r=0;var e=(o=t.__c).__H;e&&(i===o?(e.__h=[],o.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=u,t.__N=t.i=void 0}))):(e.__h.forEach(D),e.__h.forEach(B),e.__h=[],r=0)),i=o},d.diffed=function(t){f&&f(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==c.push(e)&&a===d.requestAnimationFrame||((a=d.requestAnimationFrame)||R)(T)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==u&&(t.__=t.__V),t.i=void 0,t.__V=u}))),i=o=null},d.__c=function(t,e){e.some((function(t){try{t.__h.forEach(D),t.__h=t.__h.filter((function(t){return!t.__||B(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],d.__e(n,t.__v)}})),m&&m(t,e)},d.unmount=function(t){g&&g(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{D(t)}catch(t){e=t}})),n.__H=void 0,e&&d.__e(e,n.__v))};var P="function"==typeof requestAnimationFrame;function R(t){var e,n=function(){clearTimeout(r),P&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);P&&(e=requestAnimationFrame(n))}function D(t){var e=o,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),o=e}function B(t){var e=o;t.__c=t.__(),o=e}function F(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function I(t,e){return"function"==typeof e?e(t):e}function M(t,e){for(var n in e)t[n]=e[n];return t}function W(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var r in e)if("__source"!==r&&t[r]!==e[r])return!0;return!1}function z(t,e){this.props=t,this.context=e}function N(t,e){function n(t){var n=this.props.ref,r=n==t.ref;return!r&&n&&(n.call?n(null):n.current=null),e?!e(this.props,t)||!r:W(this.props,t)}function r(e){return this.shouldComponentUpdate=n,Object(s.e)(t,e)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(z.prototype=new s.a).isPureReactComponent=!0,z.prototype.shouldComponentUpdate=function(t,e){return W(this.props,t)||W(this.state,e)};var V=s.h.__b;s.h.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),V&&V(t)};var U="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function H(t){function e(e){var n=M({},e);return delete n.ref,t(n,e.ref||null)}return e.$$typeof=U,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var $=function(t,e){return null==t?null:Object(s.j)(Object(s.j)(t).map(e))},G={map:$,forEach:$,count:function(t){return t?Object(s.j)(t).length:0},only:function(t){var e=Object(s.j)(t);if(1!==e.length)throw"Children.only";return e[0]},toArray:s.j},Y=s.h.__e;s.h.__e=function(t,e,n,r){if(t.then)for(var o,i=e;i=i.__;)if((o=i.__c)&&o.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),o.__c(t,e);Y(t,e,n,r)};var Q=s.h.unmount;function Z(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),t.__c.__H=null),null!=(t=M({},t)).__c&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return Z(t,e,n)}))),t}function X(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return X(t,e,n)})),t.__c&&t.__c.__P===e&&(t.__e&&n.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=n)),t}function q(){this.__u=0,this.t=null,this.__b=null}function K(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function J(t){var e,n,r;function o(o){if(e||(e=t()).then((function(t){n=t.default||t}),(function(t){r=t})),r)throw r;if(!n)throw e;return Object(s.e)(n,o)}return o.displayName="Lazy",o.__f=!0,o}function tt(){this.u=null,this.o=null}s.h.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),Q&&Q(t)},(q.prototype=new s.a).__c=function(t,e){var n=e.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=K(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__a){var t=r.state.__a;r.__v.__k[0]=X(t,t.__c.__P,t.__c.__O)}var e;for(r.setState({__a:r.__b=null});e=r.t.pop();)e.forceUpdate()}};r.__u++||32&e.__u||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(a,a)},q.prototype.componentWillUnmount=function(){this.t=[]},q.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Z(this.__b,n,r.__O=r.__P)}this.__b=null}var o=e.__a&&Object(s.e)(s.b,null,t.fallback);return o&&(o.__u&=-33),[Object(s.e)(s.b,null,e.__a?null:t.children),o]};var et=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function nt(t){return this.getChildContext=function(){return t.context},t.children}function rt(t){var e=this,n=t.i;e.componentWillUnmount=function(){Object(s.i)(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(t){this.childNodes.push(t),e.i.appendChild(t)},insertBefore:function(t,n){this.childNodes.push(t),e.i.appendChild(t)},removeChild:function(t){this.childNodes.splice(this.childNodes.indexOf(t)>>>1,1),e.i.removeChild(t)}}),Object(s.i)(Object(s.e)(nt,{context:e.context},t.__v),e.l)}function ot(t,e){var n=Object(s.e)(rt,{__v:t,i:e});return n.containerInfo=e,n}(tt.prototype=new s.a).__a=function(t){var e=this,n=K(e.__v),r=e.o.get(t);return r[0]++,function(o){var i=function(){e.props.revealOrder?(r.push(o),et(e,t,r)):o()};n?n(i):i()}},tt.prototype.render=function(t){this.u=null,this.o=new Map;var e=Object(s.j)(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},tt.prototype.componentDidUpdate=tt.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){et(t,n,e)}))};var it="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,at=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,st=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,lt=/[A-Z0-9]/g,ct="undefined"!=typeof document,ut=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(t)};function dt(t,e,n){return null==e.__k&&(e.textContent=""),Object(s.i)(t,e),"function"==typeof n&&n(),t?t.__c:null}function ht(t,e,n){return Object(s.g)(t,e),"function"==typeof n&&n(),t?t.__c:null}s.a.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(s.a.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var pt=s.h.event;function ft(){}function mt(){return this.cancelBubble}function gt(){return this.defaultPrevented}s.h.event=function(t){return pt&&(t=pt(t)),t.persist=ft,t.isPropagationStopped=mt,t.isDefaultPrevented=gt,t.nativeEvent=t};var vt,bt={enumerable:!1,configurable:!0,get:function(){return this.class}},yt=s.h.vnode;s.h.vnode=function(t){"string"==typeof t.type&&function(t){var e=t.props,n=t.type,r={};for(var o in e){var i=e[o];if(!("value"===o&&"defaultValue"in e&&null==i||ct&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var a=o.toLowerCase();"defaultValue"===o&&"value"in e&&null==e.value?o="value":"download"===o&&!0===i?i="":"translate"===a&&"no"===i?i=!1:"ondoubleclick"===a?o="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||ut(e.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":st.test(o)?o=a:-1===n.indexOf("-")&&at.test(o)?o=o.replace(lt,"-$&").toLowerCase():null===i&&(i=void 0):a=o="oninput","oninput"===a&&r[o=a]&&(o="oninputCapture"),r[o]=i}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=Object(s.j)(e.children).forEach((function(t){t.props.selected=-1!=r.value.indexOf(t.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=Object(s.j)(e.children).forEach((function(t){t.props.selected=r.multiple?-1!=r.defaultValue.indexOf(t.props.value):r.defaultValue==t.props.value}))),e.class&&!e.className?(r.class=e.class,Object.defineProperty(r,"className",bt)):(e.className&&!e.class||e.class&&e.className)&&(r.class=r.className=e.className),t.props=r}(t),t.$$typeof=it,yt&&yt(t)};var At=s.h.__r;s.h.__r=function(t){At&&At(t),vt=t.__c};var Ct=s.h.diffed;s.h.diffed=function(t){Ct&&Ct(t);var e=t.props,n=t.__e;null!=n&&"textarea"===t.type&&"value"in e&&e.value!==n.value&&(n.value=null==e.value?"":e.value),vt=null};var St={ReactCurrentDispatcher:{current:{readContext:function(t){return vt.__n[t.__c].props.value}}}},xt="17.0.2";function wt(t){return s.e.bind(null,t)}function Ot(t){return!!t&&t.$$typeof===it}function Et(t){return Ot(t)&&t.type===s.b}function Lt(t){return Ot(t)?s.c.apply(null,arguments):t}function jt(t){return!!t.__k&&(Object(s.i)(null,t),!0)}function kt(t){return t&&(t.base||1===t.nodeType&&t)||null}var _t=function(t,e){return t(e)},Tt=function(t,e){return t(e)},Pt=s.b;function Rt(t){t()}function Dt(t){return t}function Bt(){return[!1,Rt]}var Ft=S,It=Ot;function Mt(t,e){var n=e(),r=y({h:{__:n,v:e}}),o=r[0].h,i=r[1];return S((function(){o.__=n,o.v=e,Wt(o)&&i({h:o})}),[t,n,e]),C((function(){return Wt(o)&&i({h:o}),t((function(){Wt(o)&&i({h:o})}))}),[t]),n}function Wt(t){var e,n,r=t.v,o=t.__;try{var i=r();return!((e=o)===(n=i)&&(0!==e||1/e==1/n)||e!=e&&n!=n)}catch(t){return!0}}var zt={useState:y,useId:_,useReducer:A,useEffect:C,useLayoutEffect:S,useInsertionEffect:Ft,useTransition:Bt,useDeferredValue:Dt,useSyncExternalStore:Mt,startTransition:Rt,useRef:x,useImperativeHandle:w,useMemo:O,useCallback:E,useContext:L,useDebugValue:j,version:"17.0.2",Children:G,render:dt,hydrate:ht,unmountComponentAtNode:jt,createPortal:ot,createElement:s.e,createContext:s.d,createFactory:wt,cloneElement:Lt,createRef:s.f,Fragment:s.b,isValidElement:Ot,isElement:It,isFragment:Et,findDOMNode:kt,Component:s.a,PureComponent:z,memo:N,forwardRef:H,flushSync:Tt,unstable_batchedUpdates:_t,StrictMode:Pt,Suspense:q,SuspenseList:tt,lazy:J,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:St}},function(t,e,n){"use strict";n.d(e,"f",(function(){return o})),n.d(e,"j",(function(){return i})),n.d(e,"e",(function(){return a})),n.d(e,"g",(function(){return s})),n.d(e,"a",(function(){return l})),n.d(e,"d",(function(){return c})),n.d(e,"h",(function(){return u})),n.d(e,"b",(function(){return d})),n.d(e,"c",(function(){return h})),n.d(e,"i",(function(){return p})),n.d(e,"l",(function(){return f})),n.d(e,"k",(function(){return m}));var r=n(13);class o extends r.a{constructor(t={}){super(),this.sbColorPrimary="#C8193C",this.sbColorPrimaryDisabled="#F5F5F5",this.sbColorNegative="#FF3737",this.sbColorPositive="#4EFFB4",this.sbColorWarning="#FFCE5C",this.sbColorSecondary="#FFEDEE",this.sbColorSecondaryDisabled="#F5F5F5",this.sbColorOnPrimary="#FFFFFF",this.sbColorOnSecondary="#C8193C",this.sbColorSurface="#FFFFFF",this.sbColorOutline="#EFEFEF",this.sbColorOnSurfaceVariant="#707070",this.sbColorOnSurface="#000000",this.sbColorSurfaceLow="#00000026",this.sbColorSurfaceHigh="#0000007A",this.sbColorModalOverlay="#000000A3",void 0!==t.sbColorPrimary&&(this.sbColorPrimary=t.sbColorPrimary),void 0!==t.sbColorPrimaryDisabled&&(this.sbColorPrimaryDisabled=t.sbColorPrimaryDisabled),void 0!==t.sbColorNegative&&(this.sbColorNegative=t.sbColorNegative),void 0!==t.sbColorPositive&&(this.sbColorPositive=t.sbColorPositive),void 0!==t.sbColorWarning&&(this.sbColorWarning=t.sbColorWarning),void 0!==t.sbColorSecondary&&(this.sbColorSecondary=t.sbColorSecondary),void 0!==t.sbColorSecondaryDisabled&&(this.sbColorSecondaryDisabled=t.sbColorSecondaryDisabled),void 0!==t.sbColorOnPrimary&&(this.sbColorOnPrimary=t.sbColorOnPrimary),void 0!==t.sbColorOnSecondary&&(this.sbColorOnSecondary=t.sbColorOnSecondary),void 0!==t.sbColorSurface&&(this.sbColorSurface=t.sbColorSurface),void 0!==t.sbColorOutline&&(this.sbColorOutline=t.sbColorOutline),void 0!==t.sbColorOnSurfaceVariant&&(this.sbColorOnSurfaceVariant=t.sbColorOnSurfaceVariant),void 0!==t.sbColorOnSurface&&(this.sbColorOnSurface=t.sbColorOnSurface),void 0!==t.sbColorSurfaceLow&&(this.sbColorSurfaceLow=t.sbColorSurfaceLow),void 0!==t.sbColorSurfaceHigh&&(this.sbColorSurfaceHigh=t.sbColorSurfaceHigh),void 0!==t.sbColorModalOverlay&&(this.sbColorModalOverlay=t.sbColorModalOverlay)}}class i extends r.a{constructor(t={}){super(),this.visible=!0,this.text="",this.color="#FFFFFF",this.useShadow=!1,void 0!==t.visible&&(this.visible=t.visible),void 0!==t.text&&(this.text=t.text),void 0!==t.color&&(this.color=t.color),void 0!==t.useShadow&&(this.useShadow=t.useShadow)}}class a extends r.a{constructor(t={}){super(),this.visible=!0,this.color="#FFFFFF",void 0!==t.visible&&(this.visible=t.visible),void 0!==t.color&&(this.color=t.color)}}class s extends r.a{constructor(t={}){super(),this.strokeColor="#FFFFFFFF",this.fillColor="#FFFFFF30",this.strokeWidth=2,this.cornerRadius=0,void 0!==t.strokeColor&&(this.strokeColor=t.strokeColor),void 0!==t.fillColor&&(this.fillColor=t.fillColor),void 0!==t.strokeWidth&&(this.strokeWidth=t.strokeWidth),void 0!==t.cornerRadius&&(this.cornerRadius=t.cornerRadius)}}class l extends r.a{constructor(t={}){super(),this.strokeColor="#FFFFFFFF",this.fillColor="#FFFFFF30",this.strokeWidth=2,void 0!==t.strokeColor&&(this.strokeColor=t.strokeColor),void 0!==t.fillColor&&(this.fillColor=t.fillColor),void 0!==t.strokeWidth&&(this.strokeWidth=t.strokeWidth)}}class c extends r.a{constructor(t={}){super(),this.iconVisible=!0,this.color="#FFFFFF",this.useShadow=!1,void 0!==t.iconVisible&&(this.iconVisible=t.iconVisible),void 0!==t.color&&(this.color=t.color),void 0!==t.useShadow&&(this.useShadow=t.useShadow)}}class u extends r.a{constructor(t={}){super(),this.visible=!0,this.backgroundColor="#0000007A",this.foregroundColor="#FFFFFF",this.activeBackgroundColor="#FFCE5C",this.activeForegroundColor="#1C1B1F",void 0!==t.visible&&(this.visible=t.visible),void 0!==t.backgroundColor&&(this.backgroundColor=t.backgroundColor),void 0!==t.foregroundColor&&(this.foregroundColor=t.foregroundColor),void 0!==t.activeBackgroundColor&&(this.activeBackgroundColor=t.activeBackgroundColor),void 0!==t.activeForegroundColor&&(this.activeForegroundColor=t.activeForegroundColor)}}class d extends r.a{constructor(t={}){super(),this.badgeBackgroundColor="#FFFFFF",this.badgeForegroundColor="#C8193C",this.visible=!0,this.backgroundColor="#0000007A",this.foregroundColor="#FFFFFF",this.activeBackgroundColor="#FFCE5C",this.activeForegroundColor="#1C1B1F",void 0!==t.badgeBackgroundColor&&(this.badgeBackgroundColor=t.badgeBackgroundColor),void 0!==t.badgeForegroundColor&&(this.badgeForegroundColor=t.badgeForegroundColor),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.backgroundColor&&(this.backgroundColor=t.backgroundColor),void 0!==t.foregroundColor&&(this.foregroundColor=t.foregroundColor),void 0!==t.activeBackgroundColor&&(this.activeBackgroundColor=t.activeBackgroundColor),void 0!==t.activeForegroundColor&&(this.activeForegroundColor=t.activeForegroundColor)}}class h extends r.a{constructor(t={}){super(),this.visible=!0,this.text="",this.background=new l({}),this.foreground=new c({}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.text&&(this.text=t.text),void 0!==t.background&&(this.background=new l(t.background)),void 0!==t.foreground&&(this.foreground=new c(t.foreground))}}class p extends r.a{constructor(t={}){super(),this.successBeepEnabled=!0,this.soundType="MODERN_BEEP",void 0!==t.successBeepEnabled&&(this.successBeepEnabled=t.successBeepEnabled),void 0!==t.soundType&&(this.soundType=t.soundType)}}class f extends r.a{constructor(t={}){super(),this.enabled=!1,void 0!==t.enabled&&(this.enabled=t.enabled)}}class m extends r.a{constructor(t={}){super(),this.autoCancelTimeout=0,this.initialScanDelay=0,void 0!==t.autoCancelTimeout&&(this.autoCancelTimeout=t.autoCancelTimeout),void 0!==t.initialScanDelay&&(this.initialScanDelay=t.initialScanDelay)}}},function(t,e,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return i})),n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"e",(function(){return l}));var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)};function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}Object.create;function s(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function l(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}Object.create},function(t,e,n){n(0),t.exports=n(120)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));class r{_marker(){}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return l}));var r=n(0),o=n(30),i=n(34);const a=Object(r.createContext)(null);function s(t){return{getColorValue:e=>{if(e){if(e.startsWith("?")){const n=e.slice(1);if(n in t)return t[n];i.a.debugWarn(`Color ${n} not found in palette`)}return e}i.a.debugWarn("Color is missing")}}}class l{static setPalette(t){this.palette=t}static setBarcodeTextLocalization(t){this.barcodeTextLocalization=t}static getColorValue(t){return s(l.palette).getColorValue(t)}static getPolygonColorValues(t,e){return new o.PolygonStyle({fillColor:e?l.getColorValue(t.fillColor):"transparent",strokeColor:e?l.getColorValue(t.strokeColor):"transparent",strokeWidth:t.strokeWidth,cornerRadius:t.cornerRadius})}static getLocalizedBarcodeText(t,e=[]){if(t.startsWith("?")){const e=t.slice(1);e in l.barcodeTextLocalization?t=l.barcodeTextLocalization[e]:i.a.debugWarn(`Barcode text localization key ${e} not found in localization`)}for(let n of e)t=t.replace("%d",n);return t}}l.palette=(new o.BarcodeScannerConfiguration).palette,l.barcodeTextLocalization=(new o.BarcodeScannerConfiguration).localization},function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(58);class o{constructor(t,e){this.x=t,this.y=e}static toPolygon(t,e){return[o.scaleDownTo(t[0],e),o.scaleDownTo(t[1],e),o.scaleDownTo(t[2],e),o.scaleDownTo(t[3],e)]}static scaleToPoint(t,e,n,r){return new o(r*(t.x-e),r*(t.y-n))}static scaleListToHtmlElement(t,e,n){return t.map((t=>o.scaleToHtmlElement(t,e,n)))}static scaleToHtmlElement(t,e,n){return new o(t.x*(n.clientWidth/e.width),t.y*(n.clientHeight/e.height))}static scaleUpTo(t,e){return new o(t.x*e.width,t.y*e.height)}static scaleDownTo(t,e){return new o(t.x/e.width,t.y/e.height)}static fromHtmlElement(t){return new o(t.offsetLeft,t.offsetTop)}static withScale(t,e,n){return new o(t/n,e/n)}static fromCoordinates(t,e,n,r){if(!t||!e)return new o(0,0);const i=new o(t,e);return r=null!=r?r:1,1===(n=n?n%4:0)?o.withScale(i.y,-i.x,r):2===n?o.withScale(-i.x,-i.y,r):3===n?o.withScale(-i.y,i.x,r):o.withScale(i.x,i.y,r)}static centerOf(t){const e=t.reduce(((t,e)=>t+e.x),0)/t.length,n=t.reduce(((t,e)=>t+e.y),0)/t.length;return new o(e,n)}static smallerSizeOfQuad(t){const e=Math.max(...t.map((t=>t.x)))-Math.min(...t.map((t=>t.x))),n=Math.max(...t.map((t=>t.y)))-Math.min(...t.map((t=>t.y)));return Math.min(e,n)}static empty(){return new o(0,0)}static centerX(t){if(t)return(o.highestX(t)+o.lowestX(t))/2}static highestX(t){if(t)return Math.max(...t.map((t=>t.x)))}static lowestX(t){if(t)return Math.min(...t.map((t=>t.x)))}static lowestY(t){if(t)return Math.min(...t.map((t=>t.y)))}static highestY(t){if(t)return Math.max(...t.map((t=>t.y)))}static width(t){if(t)return o.highestX(t)-o.lowestX(t)}static left(t){if(t)return t.reduce(((t,e)=>t.x<e.x?t:e))}static right(t){if(t)return t.reduce(((t,e)=>t.x>e.x?t:e))}static toSvgString(t){if(void 0!==t)return t.map((t=>`${t.x.toFixed(2)},${t.y.toFixed(2)}`)).join(" ")}static toSvgPathStringWithRoundedCorners(t,e=0){if(void 0===t)return;function n(t,e,n){const r=Math.atan2(t.y-e.y,t.x-e.x);return{x:t.x-n*Math.cos(r),y:t.y-n*Math.sin(r)}}let r="";const i=n(t[0],t[1],o.distance(t[0],t[1])/2);r+=`M ${i.x} ${i.y}`;for(let i=0;i<t.length;i++){const a=t[i],s=t[(i+1)%t.length],l=t[(i+2)%t.length],c=n(s,l,o.distance(s,l)/2),u=Math.abs(Math.atan2(s.y-a.y,s.x-a.x)-Math.atan2(s.y-l.y,s.x-l.x)),d=u>Math.PI?2*Math.PI-u:u,h=Math.min(Math.sqrt(Math.pow(s.x-a.x,2)+Math.pow(s.y-a.y,2)),Math.sqrt(Math.pow(s.x-l.x,2)+Math.pow(s.y-l.y,2))),p=Math.min(e,h*Math.tan(d/2)/2),f=Math.abs(p/Math.tan(d/2)),m=(s.x-a.x)*(s.y-l.y)-(s.x-l.x)*(s.y-a.y)<0?1:0,g=n(s,a,f),v=n(s,l,f);r+=` L${g.x} ${g.y}`,r+=` A${p} ${p} 0 0 ${m} ${v.x} ${v.y}`,r+=` L${c.x} ${c.y}`}return r+" Z"}static distance(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}static subtract(t,e){return new o(t.x-e.x,t.y-e.y)}static add(t,e){return new o(t.x+e.x,t.y+e.y)}static multiply(t,e){return new o(t.x*e,t.y*e)}static cross(t,e){return t.x*e.y-t.y*e.x}static clamp(t,e){return new o(Object(r.a)(t.x,0,e.width),Object(r.a)(t.y,0,e.height))}}},function(t,e,n){"use strict";var r=n(86);e.a=r.a},function(t,e,n){"use strict";function r(t){var e,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=r(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}e.a=function(){for(var t,e,n=0,o="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=r(t))&&(o&&(o+=" "),o+=e);return o}},function(t,e,n){"use strict";n.d(e,"b",(function(){return A}));var r=n(2),o=n(7),i=n(55),a=n(110),s=n(132),l=n(96);const c=["ownerState"],u=["variants"],d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function h(t){return"ownerState"!==t&&"theme"!==t&&"sx"!==t&&"as"!==t}const p=Object(s.a)(),f=t=>t?t.charAt(0).toLowerCase()+t.slice(1):t;function m({defaultTheme:t,theme:e,themeId:n}){return r=e,0===Object.keys(r).length?t:e[n]||e;var r}function g(t){return t?(e,n)=>n[t]:null}function v(t,e){let{ownerState:n}=e,i=Object(o.a)(e,c);const a="function"==typeof t?t(Object(r.a)({ownerState:n},i)):t;if(Array.isArray(a))return a.flatMap((t=>v(t,Object(r.a)({ownerState:n},i))));if(a&&"object"==typeof a&&Array.isArray(a.variants)){const{variants:t=[]}=a;let e=Object(o.a)(a,u);return t.forEach((t=>{let o=!0;"function"==typeof t.props?o=t.props(Object(r.a)({ownerState:n},i)):Object.keys(t.props).forEach((e=>{(null==n?void 0:n[e])!==t.props[e]&&i[e]!==t.props[e]&&(o=!1)})),o&&(Array.isArray(e)||(e=[e]),e.push("function"==typeof t.style?t.style(Object(r.a)({ownerState:n},i)):t.style))})),e}return a}var b=n(61),y=n(40);const A=t=>h(t)&&"classes"!==t,C=function(t={}){const{themeId:e,defaultTheme:n=p,rootShouldForwardProp:s=h,slotShouldForwardProp:c=h}=t,u=t=>Object(l.a)(Object(r.a)({},t,{theme:m(Object(r.a)({},t,{defaultTheme:n,themeId:e}))}));return u.__mui_systemSx=!0,(t,l={})=>{Object(i.b)(t,(t=>t.filter((t=>!(null!=t&&t.__mui_systemSx)))));const{name:p,slot:b,skipVariantsResolver:y,skipSx:A,overridesResolver:C=g(f(b))}=l,S=Object(o.a)(l,d),x=void 0!==y?y:b&&"Root"!==b&&"root"!==b||!1,w=A||!1;let O=h;"Root"===b||"root"===b?O=s:b?O=c:function(t){return"string"==typeof t&&t.charCodeAt(0)>96}(t)&&(O=void 0);const E=Object(i.a)(t,Object(r.a)({shouldForwardProp:O,label:undefined},S)),L=t=>"function"==typeof t&&t.__emotion_real!==t||Object(a.b)(t)?o=>v(t,Object(r.a)({},o,{theme:m({theme:o.theme,defaultTheme:n,themeId:e})})):t,j=(o,...i)=>{let a=L(o);const s=i?i.map(L):[];p&&C&&s.push((t=>{const o=m(Object(r.a)({},t,{defaultTheme:n,themeId:e}));if(!o.components||!o.components[p]||!o.components[p].styleOverrides)return null;const i=o.components[p].styleOverrides,a={};return Object.entries(i).forEach((([e,n])=>{a[e]=v(n,Object(r.a)({},t,{theme:o}))})),C(t,a)})),p&&!x&&s.push((t=>{var o;const i=m(Object(r.a)({},t,{defaultTheme:n,themeId:e}));return v({variants:null==i||null==(o=i.components)||null==(o=o[p])?void 0:o.variants},Object(r.a)({},t,{theme:i}))})),w||s.push(u);const l=s.length-i.length;if(Array.isArray(o)&&l>0){const t=new Array(l).fill("");a=[...o,...t],a.raw=[...o.raw,...t]}const c=E(a,...s);return t.muiName&&(c.muiName=t.muiName),c};return E.withConfig&&(j.withConfig=E.withConfig),j}}({themeId:y.a,defaultTheme:b.a,rootShouldForwardProp:A});e.a=C},function(t,e,n){"use strict";n.d(e,"a",(function(){return C})),n.d(e,"b",(function(){return A})),n.d(e,"c",(function(){return H})),n.d(e,"d",(function(){return $})),n.d(e,"e",(function(){return v})),n.d(e,"f",(function(){return y})),n.d(e,"g",(function(){return U})),n.d(e,"h",(function(){return o})),n.d(e,"i",(function(){return V})),n.d(e,"j",(function(){return _}));var r,o,i,a,s,l,c,u,d={},h=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,f=Array.isArray;function m(t,e){for(var n in e)t[n]=e[n];return t}function g(t){var e=t.parentNode;e&&e.removeChild(t)}function v(t,e,n){var o,i,a,s={};for(a in e)"key"==a?o=e[a]:"ref"==a?i=e[a]:s[a]=e[a];if(arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===s[a]&&(s[a]=t.defaultProps[a]);return b(t,s,o,i,null)}function b(t,e,n,r,a){var s={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++i:a,__i:-1,__u:0};return null==a&&null!=o.vnode&&o.vnode(s),s}function y(){return{current:null}}function A(t){return t.children}function C(t,e){this.props=t,this.context=e}function S(t,e){if(null==e)return t.__?S(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?S(t):null}function x(t,e,n){var r,i=t.__v,a=i.__e,s=t.__P;if(s)return(r=m({},i)).__v=i.__v+1,o.vnode&&o.vnode(r),F(s,r,i,t.__n,void 0!==s.ownerSVGElement,32&i.__u?[a]:null,e,null==a?S(i):a,!!(32&i.__u),n),r.__v=i.__v,r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=a&&w(r),r}function w(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return w(t)}}function O(t){(!t.__d&&(t.__d=!0)&&a.push(t)&&!E.__r++||s!==o.debounceRendering)&&((s=o.debounceRendering)||l)(E)}function E(){var t,e,n,r=[],i=[];for(a.sort(c);t=a.shift();)t.__d&&(n=a.length,e=x(t,r,i)||e,0===n||a.length>n?(I(r,e,i),i.length=r.length=0,e=void 0,a.sort(c)):e&&o.__c&&o.__c(e,h));e&&I(r,e,i),E.__r=0}function L(t,e,n,r,o,i,a,s,l,c,u){var p,f,m,g,v,b=r&&r.__k||h,y=e.length;for(n.__d=l,j(n,e,b),l=n.__d,p=0;p<y;p++)null!=(m=n.__k[p])&&"boolean"!=typeof m&&"function"!=typeof m&&(f=-1===m.__i?d:b[m.__i]||d,m.__i=p,F(t,m,f,o,i,a,s,l,c,u),g=m.__e,m.ref&&f.ref!=m.ref&&(f.ref&&W(f.ref,null,m),u.push(m.ref,m.__c||g,m)),null==v&&null!=g&&(v=g),65536&m.__u||f.__k===m.__k?l=k(m,l,t):"function"==typeof m.type&&void 0!==m.__d?l=m.__d:g&&(l=g.nextSibling),m.__d=void 0,m.__u&=-196609);n.__d=l,n.__e=v}function j(t,e,n){var r,o,i,a,s,l=e.length,c=n.length,u=c,d=0;for(t.__k=[],r=0;r<l;r++)null!=(o=t.__k[r]=null==(o=e[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?b(null,o,null,null,o):f(o)?b(A,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?b(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=t,o.__b=t.__b+1,s=T(o,n,a=r+d,u),o.__i=s,i=null,-1!==s&&(u--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&d--,"function"!=typeof o.type&&(o.__u|=65536)):s!==a&&(s===a+1?d++:s>a?u>l-a?d+=s-a:d--:d=s<a&&s==a-1?s-a:0,s!==r+d&&(o.__u|=65536))):(i=n[r])&&null==i.key&&i.__e&&0==(131072&i.__u)&&(i.__e==t.__d&&(t.__d=S(i)),z(i,i,!1),n[r]=null,u--);if(u)for(r=0;r<c;r++)null!=(i=n[r])&&0==(131072&i.__u)&&(i.__e==t.__d&&(t.__d=S(i)),z(i,i))}function k(t,e,n){var r,o;if("function"==typeof t.type){for(r=t.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=t,e=k(r[o],e,n));return e}t.__e!=e&&(n.insertBefore(t.__e,e||null),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8===e.nodeType);return e}function _(t,e){return e=e||[],null==t||"boolean"==typeof t||(f(t)?t.some((function(t){_(t,e)})):e.push(t)),e}function T(t,e,n,r){var o=t.key,i=t.type,a=n-1,s=n+1,l=e[n];if(null===l||l&&o==l.key&&i===l.type)return n;if(r>(null!=l&&0==(131072&l.__u)?1:0))for(;a>=0||s<e.length;){if(a>=0){if((l=e[a])&&0==(131072&l.__u)&&o==l.key&&i===l.type)return a;a--}if(s<e.length){if((l=e[s])&&0==(131072&l.__u)&&o==l.key&&i===l.type)return s;s++}}return-1}function P(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||p.test(e)?n:n+"px"}function R(t,e,n,r,o){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||P(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||P(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r?n.u=r.u:(n.u=Date.now(),t.addEventListener(e,i?B:D,i)):t.removeEventListener(e,i?B:D,i);else{if(o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==e&&"height"!==e&&"href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&"rowSpan"!==e&&"colSpan"!==e&&"role"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!==e[4]?t.removeAttribute(e):t.setAttribute(e,n))}}function D(t){if(this.l){var e=this.l[t.type+!1];if(t.t){if(t.t<=e.u)return}else t.t=Date.now();return e(o.event?o.event(t):t)}}function B(t){if(this.l)return this.l[t.type+!0](o.event?o.event(t):t)}function F(t,e,n,r,i,a,s,l,c,u){var d,h,p,g,v,b,y,S,x,w,O,E,j,k,_,T=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(c=!!(32&n.__u),a=[l=e.__e=n.__e]),(d=o.__b)&&d(e);t:if("function"==typeof T)try{if(S=e.props,x=(d=T.contextType)&&r[d.__c],w=d?x?x.props.value:d.__:r,n.__c?y=(h=e.__c=n.__c).__=h.__E:("prototype"in T&&T.prototype.render?e.__c=h=new T(S,w):(e.__c=h=new C(S,w),h.constructor=T,h.render=N),x&&x.sub(h),h.props=S,h.state||(h.state={}),h.context=w,h.__n=r,p=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=m({},h.__s)),m(h.__s,T.getDerivedStateFromProps(S,h.__s))),g=h.props,v=h.state,h.__v=e,p)null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==T.getDerivedStateFromProps&&S!==g&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(S,w),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(S,h.__s,w)||e.__v===n.__v)){for(e.__v!==n.__v&&(h.props=S,h.state=h.__s,h.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),O=0;O<h._sb.length;O++)h.__h.push(h._sb[O]);h._sb=[],h.__h.length&&s.push(h);break t}null!=h.componentWillUpdate&&h.componentWillUpdate(S,h.__s,w),null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(g,v,b)}))}if(h.context=w,h.props=S,h.__P=t,h.__e=!1,E=o.__r,j=0,"prototype"in T&&T.prototype.render){for(h.state=h.__s,h.__d=!1,E&&E(e),d=h.render(h.props,h.state,h.context),k=0;k<h._sb.length;k++)h.__h.push(h._sb[k]);h._sb=[]}else do{h.__d=!1,E&&E(e),d=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++j<25);h.state=h.__s,null!=h.getChildContext&&(r=m(m({},r),h.getChildContext())),p||null==h.getSnapshotBeforeUpdate||(b=h.getSnapshotBeforeUpdate(g,v)),L(t,f(_=null!=d&&d.type===A&&null==d.key?d.props.children:d)?_:[_],e,n,r,i,a,s,l,c,u),h.base=e.__e,e.__u&=-161,h.__h.length&&s.push(h),y&&(h.__E=h.__=null)}catch(t){e.__v=null,c||null!=a?(e.__e=l,e.__u|=c?160:32,a[a.indexOf(l)]=null):(e.__e=n.__e,e.__k=n.__k),o.__e(t,e,n)}else null==a&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=M(n.__e,e,n,r,i,a,s,c,u);(d=o.diffed)&&d(e)}function I(t,e,n){for(var r=0;r<n.length;r++)W(n[r],n[++r],n[++r]);o.__c&&o.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){o.__e(t,e.__v)}}))}function M(t,e,n,o,i,a,s,l,c){var u,h,p,m,v,b,y,A=n.props,C=e.props,x=e.type;if("svg"===x&&(i=!0),null!=a)for(u=0;u<a.length;u++)if((v=a[u])&&"setAttribute"in v==!!x&&(x?v.localName===x:3===v.nodeType)){t=v,a[u]=null;break}if(null==t){if(null===x)return document.createTextNode(C);t=i?document.createElementNS("http://www.w3.org/2000/svg",x):document.createElement(x,C.is&&C),a=null,l=!1}if(null===x)A===C||l&&t.data===C||(t.data=C);else{if(a=a&&r.call(t.childNodes),A=n.props||d,!l&&null!=a)for(A={},u=0;u<t.attributes.length;u++)A[(v=t.attributes[u]).name]=v.value;for(u in A)v=A[u],"children"==u||("dangerouslySetInnerHTML"==u?p=v:"key"===u||u in C||R(t,u,null,v,i));for(u in C)v=C[u],"children"==u?m=v:"dangerouslySetInnerHTML"==u?h=v:"value"==u?b=v:"checked"==u?y=v:"key"===u||l&&"function"!=typeof v||A[u]===v||R(t,u,v,A[u],i);if(h)l||p&&(h.__html===p.__html||h.__html===t.innerHTML)||(t.innerHTML=h.__html),e.__k=[];else if(p&&(t.innerHTML=""),L(t,f(m)?m:[m],e,n,o,i&&"foreignObject"!==x,a,s,a?a[0]:n.__k&&S(n,0),l,c),null!=a)for(u=a.length;u--;)null!=a[u]&&g(a[u]);l||(u="value",void 0!==b&&(b!==t[u]||"progress"===x&&!b||"option"===x&&b!==A[u])&&R(t,u,b,A[u],!1),u="checked",void 0!==y&&y!==t[u]&&R(t,u,y,A[u],!1))}return t}function W(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){o.__e(t,n)}}function z(t,e,n){var r,i;if(o.unmount&&o.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||W(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){o.__e(t,e)}r.base=r.__P=null,t.__c=void 0}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&z(r[i],e,n||"function"!=typeof t.type);n||null==t.__e||g(t.__e),t.__=t.__e=t.__d=void 0}function N(t,e,n){return this.constructor(t,n)}function V(t,e,n){var i,a,s,l;o.__&&o.__(t,e),a=(i="function"==typeof n)?null:n&&n.__k||e.__k,s=[],l=[],F(e,t=(!i&&n||e).__k=v(A,null,[t]),a||d,d,void 0!==e.ownerSVGElement,!i&&n?[n]:a?null:e.firstChild?r.call(e.childNodes):null,s,!i&&n?n:a?a.__e:e.firstChild,i,l),t.__d=void 0,I(s,t,l)}function U(t,e){V(t,e,U)}function H(t,e,n){var o,i,a,s,l=m({},t.props);for(a in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),e)"key"==a?o=e[a]:"ref"==a?i=e[a]:l[a]=void 0===e[a]&&void 0!==s?s[a]:e[a];return arguments.length>2&&(l.children=arguments.length>3?r.call(arguments,2):n),b(t.type,l,o||t.key,i||t.ref,null)}function $(t,e){var n={__c:e="__cC"+u++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some((function(t){t.__e=!0,O(t)}))},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}r=h.slice,o={__e:function(t,e,n,r){for(var o,i,a;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,r||{}),a=o.__d),a)return o.__E=o}catch(e){t=e}throw t}},i=0,C.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=m({},this.state),"function"==typeof t&&(t=t(m({},n),this.props)),t&&m(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),O(this))},C.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),O(this))},C.prototype.render=A,a=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(t,e){return t.__v.__b-e.__v.__b},E.__r=0,u=0},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));class r{}},function(t,e,n){"use strict";n.d(e,"b",(function(){return p})),n.d(e,"a",(function(){return f})),n.d(e,"c",(function(){return m})),n.d(e,"d",(function(){return b})),n.d(e,"e",(function(){return y}));var r=n(31),o=n(20),i=n(45);const a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(t){const e={};return n=>(void 0===e[n]&&(e[n]=t(n)),e[n])}((t=>{if(t.length>2){if(!l[t])return[t];t=l[t]}const[e,n]=t.split(""),r=a[e],o=s[n]||"";return Array.isArray(o)?o.map((t=>r+t)):[r+o]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],h=[...u,...d];function p(t,e,n,r){var i;const a=null!=(i=Object(o.b)(t,e,!1))?i:n;return"number"==typeof a?t=>"string"==typeof t?t:a*t:Array.isArray(a)?t=>"string"==typeof t?t:a[t]:"function"==typeof a?a:()=>{}}function f(t){return p(t,"spacing",8)}function m(t,e){if("string"==typeof e||null==e)return e;const n=t(Math.abs(e));return e>=0?n:"number"==typeof n?-n:`-${n}`}function g(t,e,n,o){if(-1===e.indexOf(n))return null;const i=function(t,e){return n=>t.reduce(((t,r)=>(t[r]=m(e,n),t)),{})}(c(n),o),a=t[n];return Object(r.b)(t,a,i)}function v(t,e){const n=f(t.theme);return Object.keys(t).map((r=>g(t,e,r,n))).reduce(i.a,{})}function b(t){return v(t,u)}function y(t){return v(t,d)}function A(t){return v(t,h)}b.propTypes={},b.filterProps=u,y.propTypes={},y.filterProps=d,A.propTypes={},A.filterProps=h},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(126),o=n(61),i=n(40);function a({props:t,name:e}){return Object(r.a)({props:t,name:e,defaultTheme:o.a,themeId:i.a})}},,function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"e",(function(){return a})),n.d(e,"d",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"f",(function(){return c})),n.d(e,"g",(function(){return u})),n.d(e,"a",(function(){return d}));var r=n(1),o=n(13);class i extends o.a{constructor(t={}){super(),this.visible=!0,this.deselected=new r.g({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:2,cornerRadius:2}),this.selected=new r.g({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:2,cornerRadius:2}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.deselected&&(this.deselected=new r.g(t.deselected)),void 0!==t.selected&&(this.selected=new r.g(t.selected))}}class a extends o.a{constructor(t={}){super(),this.imageVisible=!0,this.titleSelected=new r.j({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),this.subtitleSelected=new r.j({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.titleDeselected=new r.j({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),this.subtitleDeselected=new r.j({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.backgroundSelected=new r.g({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:0,cornerRadius:10}),this.backgroundDeselected=new r.g({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:0,cornerRadius:10}),void 0!==t.imageVisible&&(this.imageVisible=t.imageVisible),void 0!==t.titleSelected&&(this.titleSelected=new r.j(t.titleSelected)),void 0!==t.subtitleSelected&&(this.subtitleSelected=new r.j(t.subtitleSelected)),void 0!==t.titleDeselected&&(this.titleDeselected=new r.j(t.titleDeselected)),void 0!==t.subtitleDeselected&&(this.subtitleDeselected=new r.j(t.subtitleDeselected)),void 0!==t.backgroundSelected&&(this.backgroundSelected=new r.g(t.backgroundSelected)),void 0!==t.backgroundDeselected&&(this.backgroundDeselected=new r.g(t.backgroundDeselected))}}class s extends o.a{constructor(t={}){if(super(),this.visible=!0,this.foregroundColor="?sbColorOnSurface",void 0!==t.visible&&(this.visible=t.visible),void 0===t.background)throw new Error("background must be present in constructor argument");this.background=new r.a(t.background),void 0!==t.foregroundColor&&(this.foregroundColor=t.foregroundColor)}}class l extends o.a{constructor(t={}){super(),this.visible=!1,this.counterBadge=new s({background:new r.a({}),foregroundColor:"?sbColorOnSurface"}),this.automaticSelectionEnabled=!1,this.barcodeItemInfoPosition="BELOW",this.polygon=new i({visible:!0,deselected:new r.g({}),selected:new r.g({})}),this.barcodeItemConfiguration=new a({imageVisible:!0,titleSelected:new r.j({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleSelected:new r.j({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),titleDeselected:new r.j({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleDeselected:new r.j({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),backgroundSelected:new r.g({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:1,cornerRadius:5}),backgroundDeselected:new r.g({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:1,cornerRadius:5})}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.counterBadge&&(this.counterBadge=new s(t.counterBadge)),void 0!==t.automaticSelectionEnabled&&(this.automaticSelectionEnabled=t.automaticSelectionEnabled),void 0!==t.barcodeItemInfoPosition&&(this.barcodeItemInfoPosition=t.barcodeItemInfoPosition),void 0!==t.polygon&&(this.polygon=new i(t.polygon)),void 0!==t.barcodeItemConfiguration&&(this.barcodeItemConfiguration=new a(t.barcodeItemConfiguration))}}class c extends o.a{constructor(t={}){super(),this.visible=!0,this.partiallyScanned=new r.g({strokeColor:"?sbColorWarning",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),this.rejected=new r.g({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),this.completed=new r.g({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.partiallyScanned&&(this.partiallyScanned=new r.g(t.partiallyScanned)),void 0!==t.rejected&&(this.rejected=new r.g(t.rejected)),void 0!==t.completed&&(this.completed=new r.g(t.completed))}}class u extends o.a{constructor(t={}){super(),this.partiallyScanned=new s({visible:!0,background:new r.a({strokeColor:"#FFFFFF30",fillColor:"?sbColorWarning",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),this.rejected=new s({visible:!0,background:new r.a({strokeColor:"#FFFFFF30",fillColor:"?sbColorNegative",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),this.completed=new s({visible:!0,background:new r.a({strokeColor:"#FFFFFF30",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),void 0!==t.partiallyScanned&&(this.partiallyScanned=new s(t.partiallyScanned)),void 0!==t.rejected&&(this.rejected=new s(t.rejected)),void 0!==t.completed&&(this.completed=new s(t.completed))}}class d extends o.a{constructor(t={}){super(),this.visible=!1,this.automaticSelectionEnabled=!0,this.polygon=new c({}),this.badge=new u({}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.automaticSelectionEnabled&&(this.automaticSelectionEnabled=t.automaticSelectionEnabled),void 0!==t.polygon&&(this.polygon=new c(t.polygon)),void 0!==t.badge&&(this.badge=new u(t.badge))}}},function(t,e,n){"use strict";n.r(e),n.d(e,"BarcodeConfigs",(function(){return E})),n.d(e,"BarcodeScannerTypes",(function(){return L})),n.d(e,"BarcodeTypes",(function(){return r})),n.d(e,"BarcodeDocumentTypes",(function(){return o})),n.d(e,"CheckRecognizerTypes",(function(){return i})),n.d(e,"CommonFieldType",(function(){return a})),n.d(e,"DocumentDetectorTypes",(function(){return s})),n.d(e,"DocumentQualityAnalyzerTypes",(function(){return l})),n.d(e,"EhicTypes",(function(){return c})),n.d(e,"GenericDocument",(function(){return T})),n.d(e,"GenericDocumentRecognizerConfigs",(function(){return u})),n.d(e,"GenericDocumentRecognizerTypes",(function(){return h})),n.d(e,"GenericDocumentTypes",(function(){return p})),n.d(e,"GenericTextLineScannerTypes",(function(){return f})),n.d(e,"Geometry",(function(){return W})),n.d(e,"LicensePlateScannerTypes",(function(){return m})),n.d(e,"MedicalCertificateTypes",(function(){return g})),n.d(e,"MRZTypes",(function(){return b})),n.d(e,"OcrElements",(function(){return y})),n.d(e,"ParametricFilters",(function(){return A})),n.d(e,"PdfConfig",(function(){return C})),n.d(e,"TiffTypes",(function(){return S})),n.d(e,"FrameUtilities",(function(){return v})),n.d(e,"FrameAccumulationTypes",(function(){return d})),n.d(e,"ImageTypes",(function(){return x})),n.d(e,"PartiallyConstructible",(function(){return j.a}));var r={};n.r(r),n.d(r,"BarcodeFormats",(function(){return k}));var o={};n.r(o),n.d(o,"BarcodeDocumentFormats",(function(){return _}));var i={};n.r(i),n.d(i,"RecognitionResult",(function(){return P}));var a={};n.r(a);var s={};n.r(s),n.d(s,"DocumentDetectorParameters",(function(){return z})),n.d(s,"DocumentDetectorConfiguration",(function(){return N})),n.d(s,"DocumentDetectionScores",(function(){return V})),n.d(s,"DocumentDetectionResult",(function(){return U}));var l={};n.r(l),n.d(l,"DocumentQualityThreshold",(function(){return H})),n.d(l,"DocumentQualityAnalyzerConfiguration",(function(){return $})),n.d(l,"DocumentQualityAnalyzerResult",(function(){return G}));var c={};n.r(c),n.d(c,"RecognitionResult",(function(){return Y})),n.d(c,"RecognizerParameters",(function(){return Q}));var u={};n.r(u),n.d(u,"GDRConfig",(function(){return R})),n.d(u,"DateValidationConfig",(function(){return Z})),n.d(u,"EuropeanHealthInsuranceCardConfig",(function(){return X})),n.d(u,"MRZFallbackConfig",(function(){return q})),n.d(u,"GDRGroupConfig",(function(){return K}));var d={};n.r(d),n.d(d,"ResultAccumulationConfig",(function(){return J}));var h={};n.r(h),n.d(h,"RecognitionResult",(function(){return tt})),n.d(h,"RecognitionParameters",(function(){return et})),n.d(h,"GenericDocumentRecognizerParameters",(function(){return nt}));var p={};n.r(p),n.d(p,"DocumentTypes",(function(){return rt}));var f={};n.r(f),n.d(f,"WordBox",(function(){return ot})),n.d(f,"SymbolBox",(function(){return it})),n.d(f,"ScannerResult",(function(){return at})),n.d(f,"ContentValidator",(function(){return D})),n.d(f,"DefaultContentValidator",(function(){return st})),n.d(f,"PresetContentValidator",(function(){return lt})),n.d(f,"PatternContentValidator",(function(){return ct})),n.d(f,"ScannerConfiguration",(function(){return ut}));var m={};n.r(m),n.d(m,"ScannerConfiguration",(function(){return dt})),n.d(m,"ScannerResult",(function(){return ht}));var g={};n.r(g),n.d(g,"RecognitionParameters",(function(){return pt})),n.d(g,"CheckBox",(function(){return ft})),n.d(g,"DateRecord",(function(){return mt})),n.d(g,"PatientInfoField",(function(){return gt})),n.d(g,"PatientInfoBox",(function(){return vt})),n.d(g,"RecognitionResult",(function(){return bt}));var v={};n.r(v),n.d(v,"AccumulatedResultsVerifierConfig",(function(){return yt}));var b={};n.r(b),n.d(b,"RecognitionResult",(function(){return At})),n.d(b,"RecognizerConfiguration",(function(){return Ct}));var y={};n.r(y),n.d(y,"OcrElement",(function(){return B})),n.d(y,"Glyph",(function(){return St})),n.d(y,"Word",(function(){return xt})),n.d(y,"Line",(function(){return wt})),n.d(y,"Block",(function(){return Ot})),n.d(y,"Page",(function(){return Et}));var A={};n.r(A),n.d(A,"ParametricFilter",(function(){return F})),n.d(A,"ScanbotBinarizationFilter",(function(){return Lt})),n.d(A,"CustomBinarizationFilter",(function(){return jt})),n.d(A,"ColorDocumentFilter",(function(){return kt})),n.d(A,"BrightnessFilter",(function(){return _t})),n.d(A,"ContrastFilter",(function(){return Tt})),n.d(A,"GrayscaleFilter",(function(){return Pt})),n.d(A,"LegacyFilter",(function(){return Rt})),n.d(A,"WhiteBlackPointFilter",(function(){return Dt}));var C={};n.r(C),n.d(C,"PdfAttributes",(function(){return Bt})),n.d(C,"PdfConfig",(function(){return Ft}));var S={};n.r(S),n.d(S,"UserFieldValue",(function(){return I})),n.d(S,"UserFieldDoubleValue",(function(){return It})),n.d(S,"UserFieldStringValue",(function(){return Mt})),n.d(S,"UserFieldIntValue",(function(){return Wt})),n.d(S,"UserField",(function(){return zt})),n.d(S,"TIFFWriterParameters",(function(){return Nt}));var x={};n.r(x);var w,O,E=n(60),L=n(66),j=n(5);class k extends j.a{constructor(t={}){super()}}(w=k||(k={})).oned=["CODABAR","CODE_11","CODE_25","CODE_32","CODE_39","CODE_93","CODE_128","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_8","EAN_13","IATA_2_OF_5","INDUSTRIAL_2_OF_5","ITF","MSI_PLESSEY","PHARMA_CODE","PZN","UPC_A","UPC_E"],w.twod=["AZTEC","DATA_MATRIX","MAXICODE","MICRO_QR_CODE","MICRO_PDF_417","PDF_417","QR_CODE","RMQR_CODE"],w.postal=["AUSTRALIA_POST","JAPAN_POST","ROYAL_MAIL","ROYAL_TNT_POST","USPS_INTELLIGENT_MAIL"],w.pharma=["CODE_32","PHARMA_CODE","PHARMA_CODE_TWO_TRACK","PZN"],w.common=["AZTEC","CODABAR","CODE_39","CODE_93","CODE_128","DATA_MATRIX","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_13","EAN_8","ITF","MICRO_QR_CODE","PDF_417","QR_CODE","UPC_A","UPC_E"],w.all=["AUSTRALIA_POST","AZTEC","CODABAR","CODE_11","CODE_25","CODE_32","CODE_39","CODE_93","CODE_128","DATA_MATRIX","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_13","EAN_8","GS1_COMPOSITE","IATA_2_OF_5","INDUSTRIAL_2_OF_5","ITF","JAPAN_POST","MAXICODE","MICRO_PDF_417","MICRO_QR_CODE","MSI_PLESSEY","PDF_417","PHARMA_CODE","PHARMA_CODE_TWO_TRACK","PZN","QR_CODE","RMQR_CODE","ROYAL_MAIL","ROYAL_TNT_POST","UPC_A","UPC_E","USPS_INTELLIGENT_MAIL"];class _ extends j.a{constructor(t={}){super()}}(O=_||(_={})).all=["AAMVA","BOARDING_PASS","DE_MEDICAL_PLAN","MEDICAL_CERTIFICATE","ID_CARD_PDF_417","SEPA","SWISS_QR","VCARD","GS1","HIBC"],O.documentBarcodeFormats={AAMVA:["PDF_417"],ID_CARD_PDF_417:["PDF_417"],SEPA:["QR_CODE"],MEDICAL_CERTIFICATE:["PDF_417"],DE_MEDICAL_PLAN:["DATA_MATRIX"],BOARDING_PASS:["PDF_417","AZTEC"],VCARD:["QR_CODE"],SWISS_QR:["QR_CODE"],GS1:["CODE_128","AZTEC","DATA_MATRIX","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_13","EAN_8","GS1_COMPOSITE","ITF","MICRO_PDF_417","PDF_417","QR_CODE","UPC_A","UPC_E"],HIBC:["CODE_39","CODE_128","AZTEC","DATA_MATRIX","MICRO_PDF_417","PDF_417","QR_CODE"]};var T=n(38);class P extends j.a{constructor(t={}){if(super(),this.status="FAIL",void 0!==t.status&&(this.status=t.status),void 0===t.check)throw new Error("check must be present in constructor argument");this.check=null!=t.check?new T.GenericDocument(t.check):null}}var R,D,B,F,I,M,W=n(39);class z extends j.a{constructor(t={}){super(),this.isLive=!1,this.acceptedAngleScore=75,this.acceptedSizeScore=80,this.acceptedBrightnessThreshold=0,this.acceptedAspectRatioScore=85,this.aspectRatios=[],this.ignoreOrientationMismatch=!1,void 0!==t.isLive&&(this.isLive=t.isLive),void 0!==t.acceptedAngleScore&&(this.acceptedAngleScore=t.acceptedAngleScore),void 0!==t.acceptedSizeScore&&(this.acceptedSizeScore=t.acceptedSizeScore),void 0!==t.acceptedBrightnessThreshold&&(this.acceptedBrightnessThreshold=t.acceptedBrightnessThreshold),void 0!==t.acceptedAspectRatioScore&&(this.acceptedAspectRatioScore=t.acceptedAspectRatioScore),void 0!==t.aspectRatios&&(this.aspectRatios=t.aspectRatios.map((t=>new W.AspectRatio(t)))),void 0!==t.ignoreOrientationMismatch&&(this.ignoreOrientationMismatch=t.ignoreOrientationMismatch)}}class N extends j.a{constructor(t={}){super(),this.engineMode="ML",this.parameters=new z({}),void 0!==t.engineMode&&(this.engineMode=t.engineMode),void 0!==t.parameters&&(this.parameters=new z(t.parameters))}}class V extends j.a{constructor(t={}){if(super(),void 0===t.totalScore)throw new Error("totalScore must be present in constructor argument");if(this.totalScore=t.totalScore,void 0===t.distanceScore)throw new Error("distanceScore must be present in constructor argument");if(this.distanceScore=t.distanceScore,void 0===t.angleScore)throw new Error("angleScore must be present in constructor argument");if(this.angleScore=t.angleScore,void 0===t.sizeScore)throw new Error("sizeScore must be present in constructor argument");if(this.sizeScore=t.sizeScore,void 0===t.aspectRatioScore)throw new Error("aspectRatioScore must be present in constructor argument");if(this.aspectRatioScore=t.aspectRatioScore,void 0===t.lineCoverageScore)throw new Error("lineCoverageScore must be present in constructor argument");if(this.lineCoverageScore=t.lineCoverageScore,void 0===t.widthScore)throw new Error("widthScore must be present in constructor argument");if(this.widthScore=t.widthScore,void 0===t.heightScore)throw new Error("heightScore must be present in constructor argument");this.heightScore=t.heightScore}}class U extends j.a{constructor(t={}){if(super(),this.status="NOT_ACQUIRED",this.averageBrightness=0,void 0!==t.status&&(this.status=t.status),void 0===t.detectionScores)throw new Error("detectionScores must be present in constructor argument");if(this.detectionScores=new V(t.detectionScores),void 0===t.points)throw new Error("points must be present in constructor argument");if(this.points=t.points.map((t=>({x:t.x,y:t.y}))),void 0===t.horizontalLines)throw new Error("horizontalLines must be present in constructor argument");if(this.horizontalLines=t.horizontalLines.map((t=>new W.LineSegmentInt(t))),void 0===t.verticalLines)throw new Error("verticalLines must be present in constructor argument");if(this.verticalLines=t.verticalLines.map((t=>new W.LineSegmentInt(t))),void 0===t.pointsNormalized)throw new Error("pointsNormalized must be present in constructor argument");if(this.pointsNormalized=t.pointsNormalized.map((t=>({x:t.x,y:t.y}))),void 0===t.horizontalLinesNormalized)throw new Error("horizontalLinesNormalized must be present in constructor argument");if(this.horizontalLinesNormalized=t.horizontalLinesNormalized.map((t=>new W.LineSegmentFloat(t))),void 0===t.verticalLinesNormalized)throw new Error("verticalLinesNormalized must be present in constructor argument");if(this.verticalLinesNormalized=t.verticalLinesNormalized.map((t=>new W.LineSegmentFloat(t))),void 0===t.aspectRatio)throw new Error("aspectRatio must be present in constructor argument");this.aspectRatio=t.aspectRatio,void 0!==t.averageBrightness&&(this.averageBrightness=t.averageBrightness)}}class H extends j.a{constructor(t={}){if(super(),void 0===t.symbolQuality)throw new Error("symbolQuality must be present in constructor argument");if(this.symbolQuality=t.symbolQuality,void 0===t.symbolRatio)throw new Error("symbolRatio must be present in constructor argument");this.symbolRatio=t.symbolRatio}}class $ extends j.a{constructor(t={}){super(),this.qualityThresholds=[new H({symbolQuality:.5,symbolRatio:.5}),new H({symbolQuality:.7,symbolRatio:.3}),new H({symbolQuality:.85,symbolRatio:.3}),new H({symbolQuality:.9,symbolRatio:.1})],this.qualityIndices=["VERY_POOR","POOR","REASONABLE","GOOD","EXCELLENT"],this.detectOrientation=!1,this.maxImageSize=2e3,this.minEstimatedNumberOfSymbolsForDocument=20,this.minProcessedFraction=0,this.maxProcessedFraction=.5,this.earlyStopIfNSymbolsFound=100,this.tileSize=300,void 0!==t.qualityThresholds&&(this.qualityThresholds=t.qualityThresholds.map((t=>new H(t)))),void 0!==t.qualityIndices&&(this.qualityIndices=t.qualityIndices.map((t=>t))),void 0!==t.detectOrientation&&(this.detectOrientation=t.detectOrientation),void 0!==t.maxImageSize&&(this.maxImageSize=t.maxImageSize),void 0!==t.minEstimatedNumberOfSymbolsForDocument&&(this.minEstimatedNumberOfSymbolsForDocument=t.minEstimatedNumberOfSymbolsForDocument),void 0!==t.minProcessedFraction&&(this.minProcessedFraction=t.minProcessedFraction),void 0!==t.maxProcessedFraction&&(this.maxProcessedFraction=t.maxProcessedFraction),void 0!==t.earlyStopIfNSymbolsFound&&(this.earlyStopIfNSymbolsFound=t.earlyStopIfNSymbolsFound),void 0!==t.tileSize&&(this.tileSize=t.tileSize)}}class G extends j.a{constructor(t={}){if(super(),void 0===t.documentFound)throw new Error("documentFound must be present in constructor argument");if(this.documentFound=t.documentFound,void 0===t.quality)throw new Error("quality must be present in constructor argument");if(this.quality=null!=t.quality?t.quality:null,void 0===t.orientation)throw new Error("orientation must be present in constructor argument");this.orientation=null!=t.orientation?t.orientation:null}}class Y extends j.a{constructor(t={}){if(super(),this.status="FAILED_DETECTION",void 0===t.fields)throw new Error("fields must be present in constructor argument");this.fields=t.fields.map((t=>new Y.Field(t))),void 0!==t.status&&(this.status=t.status)}}!function(t){class e extends j.a{constructor(t={}){if(super(),this.validationStatus="NOT_VALIDATED",void 0===t.type)throw new Error("type must be present in constructor argument");if(this.type=t.type,void 0===t.value)throw new Error("value must be present in constructor argument");if(this.value=t.value,void 0===t.confidence)throw new Error("confidence must be present in constructor argument");this.confidence=t.confidence,void 0!==t.validationStatus&&(this.validationStatus=t.validationStatus)}}t.Field=e}(Y||(Y={}));class Q extends j.a{constructor(t={}){super(),this.allowedCountries=[],this.minBirthYear=0,this.maxBirthYear=2999,this.minExpirationYear=0,this.maxExpirationYear=2999,this.maxCountryDetectionAttempts=5,this.minEqualFrameCount=4,this.maxAccumulatedFrameCount=10,void 0!==t.allowedCountries&&(this.allowedCountries=t.allowedCountries.map((t=>t))),void 0!==t.minBirthYear&&(this.minBirthYear=t.minBirthYear),void 0!==t.maxBirthYear&&(this.maxBirthYear=t.maxBirthYear),void 0!==t.minExpirationYear&&(this.minExpirationYear=t.minExpirationYear),void 0!==t.maxExpirationYear&&(this.maxExpirationYear=t.maxExpirationYear),void 0!==t.maxCountryDetectionAttempts&&(this.maxCountryDetectionAttempts=t.maxCountryDetectionAttempts),void 0!==t.minEqualFrameCount&&(this.minEqualFrameCount=t.minEqualFrameCount),void 0!==t.maxAccumulatedFrameCount&&(this.maxAccumulatedFrameCount=t.maxAccumulatedFrameCount)}}!function(t){t.From=function(t){const e=t._type;switch(e){case"DateValidationConfig":return new Z(t);case"EuropeanHealthInsuranceCardConfig":return new X(t);case"MRZFallbackConfig":return new q(t);case"GDRGroupConfig":return new K(t);default:throw`Unknown child class name: ${e}`}}}(R||(R={}));class Z extends j.a{constructor(t={}){if(super(),this._type="DateValidationConfig",this.minYear=0,this.maxYear=2999,void 0!==t.minYear&&(this.minYear=t.minYear),void 0!==t.maxYear&&(this.maxYear=t.maxYear),void 0===t.fieldTypeName)throw new Error("fieldTypeName must be present in constructor argument");this.fieldTypeName=t.fieldTypeName}}class X extends j.a{constructor(t={}){super(),this._type="EuropeanHealthInsuranceCardConfig",this.expectedCountry=null,void 0!==t.expectedCountry&&(this.expectedCountry=null!=t.expectedCountry?t.expectedCountry:null)}}class q extends j.a{constructor(t={}){super(),this._type="MRZFallbackConfig",this.acceptedCountries=[],this.acceptedMRZTypes=[],void 0!==t.acceptedCountries&&(this.acceptedCountries=t.acceptedCountries.map((t=>t))),void 0!==t.acceptedMRZTypes&&(this.acceptedMRZTypes=t.acceptedMRZTypes.map((t=>t)))}}class K extends j.a{constructor(t={}){if(super(),this._type="GDRGroupConfig",void 0===t.acceptedDocumentTypes)throw new Error("acceptedDocumentTypes must be present in constructor argument");this.acceptedDocumentTypes=t.acceptedDocumentTypes.map((t=>t))}}class J extends j.a{constructor(t={}){super(),this.confirmationMethod="EXACT",this.minConfirmations=3,this.minConfidenceForStableField=.8,this.autoClearThreshold=4,void 0!==t.confirmationMethod&&(this.confirmationMethod=t.confirmationMethod),void 0!==t.minConfirmations&&(this.minConfirmations=t.minConfirmations),void 0!==t.minConfidenceForStableField&&(this.minConfidenceForStableField=t.minConfidenceForStableField),void 0!==t.autoClearThreshold&&(this.autoClearThreshold=t.autoClearThreshold)}}class tt extends j.a{constructor(t={}){if(super(),void 0===t.status)throw new Error("status must be present in constructor argument");if(this.status=t.status,void 0===t.document)throw new Error("document must be present in constructor argument");if(this.document=null!=t.document?new T.GenericDocument(t.document):null,void 0===t.quad)throw new Error("quad must be present in constructor argument");this.quad=null!=t.quad?t.quad.map((t=>({x:t.x,y:t.y}))):null}}class et extends j.a{constructor(t={}){super(),this.mode="LIVE",void 0!==t.mode&&(this.mode=t.mode)}}class nt extends j.a{constructor(t={}){if(super(),this.resultAccumulationConfig=new J({}),this.fieldExcludeList=[],void 0!==t.resultAccumulationConfig&&(this.resultAccumulationConfig=new J(t.resultAccumulationConfig)),void 0!==t.fieldExcludeList&&(this.fieldExcludeList=t.fieldExcludeList.map((t=>t))),void 0===t.configurations)throw new Error("configurations must be present in constructor argument");this.configurations=t.configurations.map((t=>R.From(t)))}}class rt extends j.a{constructor(t={}){super()}}(rt||(rt={})).all=["DeIdCardFront","DeIdCardBack","DePassport","DeDriverLicenseFront","DeDriverLicenseBack","DeResidencePermitFront","DeResidencePermitBack","EuropeanHealthInsuranceCard","DeHealthInsuranceCardFront"];class ot extends j.a{constructor(t={}){if(super(),this.recognitionConfidence=0,void 0===t.text)throw new Error("text must be present in constructor argument");if(this.text=t.text,void 0===t.boundingRect)throw new Error("boundingRect must be present in constructor argument");this.boundingRect={x:t.boundingRect.x,y:t.boundingRect.y,width:t.boundingRect.width,height:t.boundingRect.height},void 0!==t.recognitionConfidence&&(this.recognitionConfidence=t.recognitionConfidence)}}class it extends j.a{constructor(t={}){if(super(),void 0===t.symbol)throw new Error("symbol must be present in constructor argument");if(this.symbol=t.symbol,void 0===t.boundingRect)throw new Error("boundingRect must be present in constructor argument");if(this.boundingRect={x:t.boundingRect.x,y:t.boundingRect.y,width:t.boundingRect.width,height:t.boundingRect.height},void 0===t.recognitionConfidence)throw new Error("recognitionConfidence must be present in constructor argument");this.recognitionConfidence=t.recognitionConfidence}}class at extends j.a{constructor(t={}){if(super(),this.confidence=0,this.validationSuccessful=!1,void 0===t.rawText)throw new Error("rawText must be present in constructor argument");if(this.rawText=t.rawText,void 0===t.wordBoxes)throw new Error("wordBoxes must be present in constructor argument");if(this.wordBoxes=t.wordBoxes.map((t=>new ot(t))),void 0===t.symbolBoxes)throw new Error("symbolBoxes must be present in constructor argument");this.symbolBoxes=t.symbolBoxes.map((t=>new it(t))),void 0!==t.confidence&&(this.confidence=t.confidence),void 0!==t.validationSuccessful&&(this.validationSuccessful=t.validationSuccessful)}}!function(t){t.From=function(t){const e=t._type;switch(e){case"DefaultContentValidator":return new st(t);case"PresetContentValidator":return new lt(t);case"PatternContentValidator":return new ct(t);default:throw`Unknown child class name: ${e}`}}}(D||(D={}));class st extends j.a{constructor(t={}){super(),this._type="DefaultContentValidator",this.allowedCharacters="",void 0!==t.allowedCharacters&&(this.allowedCharacters=t.allowedCharacters)}}class lt extends j.a{constructor(t={}){if(super(),this._type="PresetContentValidator",void 0===t.preset)throw new Error("preset must be present in constructor argument");this.preset=t.preset}}class ct extends j.a{constructor(t={}){if(super(),this._type="PatternContentValidator",this.allowedCharacters="",this.matchSubstring=!1,void 0!==t.allowedCharacters&&(this.allowedCharacters=t.allowedCharacters),void 0===t.pattern)throw new Error("pattern must be present in constructor argument");this.pattern=t.pattern,void 0!==t.matchSubstring&&(this.matchSubstring=t.matchSubstring)}}class ut extends j.a{constructor(t={}){super(),this.ocrResolutionLimit=0,this.maximumNumberOfAccumulatedFrames=3,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=2,this.validator=new st({}),void 0!==t.ocrResolutionLimit&&(this.ocrResolutionLimit=t.ocrResolutionLimit),void 0!==t.maximumNumberOfAccumulatedFrames&&(this.maximumNumberOfAccumulatedFrames=t.maximumNumberOfAccumulatedFrames),void 0!==t.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=t.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==t.validator&&(this.validator=D.From(t.validator))}}class dt extends j.a{constructor(t={}){super(),this.maximumNumberOfAccumulatedFrames=3,this.minimumNumberOfRequiredFramesWithEqualScanningResult=2,this.scannerStrategy="ML",void 0!==t.maximumNumberOfAccumulatedFrames&&(this.maximumNumberOfAccumulatedFrames=t.maximumNumberOfAccumulatedFrames),void 0!==t.minimumNumberOfRequiredFramesWithEqualScanningResult&&(this.minimumNumberOfRequiredFramesWithEqualScanningResult=t.minimumNumberOfRequiredFramesWithEqualScanningResult),void 0!==t.scannerStrategy&&(this.scannerStrategy=t.scannerStrategy)}}class ht extends j.a{constructor(t={}){if(super(),this.confidence=0,this.validationSuccessful=!1,this.croppedImage=null,void 0===t.countryCode)throw new Error("countryCode must be present in constructor argument");if(this.countryCode=t.countryCode,void 0===t.licensePlate)throw new Error("licensePlate must be present in constructor argument");if(this.licensePlate=t.licensePlate,void 0===t.rawText)throw new Error("rawText must be present in constructor argument");this.rawText=t.rawText,void 0!==t.confidence&&(this.confidence=t.confidence),void 0!==t.validationSuccessful&&(this.validationSuccessful=t.validationSuccessful),void 0!==t.croppedImage&&(this.croppedImage=null!=t.croppedImage?t.croppedImage:null)}}class pt extends j.a{constructor(t={}){super(),this.shouldCropDocument=!0,this.recognizePatientInfoBox=!0,this.recognizeBarcode=!0,this.extractCroppedImage=!1,this.preprocessInput=!1,void 0!==t.shouldCropDocument&&(this.shouldCropDocument=t.shouldCropDocument),void 0!==t.recognizePatientInfoBox&&(this.recognizePatientInfoBox=t.recognizePatientInfoBox),void 0!==t.recognizeBarcode&&(this.recognizeBarcode=t.recognizeBarcode),void 0!==t.extractCroppedImage&&(this.extractCroppedImage=t.extractCroppedImage),void 0!==t.preprocessInput&&(this.preprocessInput=t.preprocessInput)}}class ft extends j.a{constructor(t={}){if(super(),this.type="UNKNOWN",this.checked=!1,this.checkedConfidence=0,void 0!==t.type&&(this.type=t.type),void 0!==t.checked&&(this.checked=t.checked),void 0!==t.checkedConfidence&&(this.checkedConfidence=t.checkedConfidence),void 0===t.quad)throw new Error("quad must be present in constructor argument");this.quad=t.quad.map((t=>({x:t.x,y:t.y})))}}class mt extends j.a{constructor(t={}){if(super(),this.value="",this.rawString="",this.type="UNDEFINED",this.recognitionConfidence=0,void 0===t.quad)throw new Error("quad must be present in constructor argument");this.quad=t.quad.map((t=>({x:t.x,y:t.y}))),void 0!==t.value&&(this.value=t.value),void 0!==t.rawString&&(this.rawString=t.rawString),void 0!==t.type&&(this.type=t.type),void 0!==t.recognitionConfidence&&(this.recognitionConfidence=t.recognitionConfidence)}}class gt extends j.a{constructor(t={}){if(super(),void 0===t.type)throw new Error("type must be present in constructor argument");if(this.type=t.type,void 0===t.value)throw new Error("value must be present in constructor argument");if(this.value=t.value,void 0===t.recognitionConfidence)throw new Error("recognitionConfidence must be present in constructor argument");this.recognitionConfidence=t.recognitionConfidence}}class vt extends j.a{constructor(t={}){if(super(),this.hasContents=!1,void 0===t.quad)throw new Error("quad must be present in constructor argument");if(this.quad=t.quad.map((t=>({x:t.x,y:t.y}))),void 0===t.fields)throw new Error("fields must be present in constructor argument");this.fields=t.fields.map((t=>new gt(t))),void 0!==t.hasContents&&(this.hasContents=t.hasContents)}}class bt extends j.a{constructor(t={}){if(super(),this.recognitionSuccessful=!1,this.formType="UNKNOWN",this.clockwiseRotations=0,this.croppedImage=null,this.scaleX=1,this.scaleY=1,void 0!==t.recognitionSuccessful&&(this.recognitionSuccessful=t.recognitionSuccessful),void 0===t.patientInfoBox)throw new Error("patientInfoBox must be present in constructor argument");if(this.patientInfoBox=new vt(t.patientInfoBox),void 0===t.checkBoxes)throw new Error("checkBoxes must be present in constructor argument");if(this.checkBoxes=t.checkBoxes.map((t=>new ft(t))),void 0===t.dates)throw new Error("dates must be present in constructor argument");if(this.dates=t.dates.map((t=>new mt(t))),void 0!==t.formType&&(this.formType=t.formType),void 0!==t.clockwiseRotations&&(this.clockwiseRotations=t.clockwiseRotations),void 0!==t.croppedImage&&(this.croppedImage=null!=t.croppedImage?t.croppedImage:null),void 0!==t.scaleX&&(this.scaleX=t.scaleX),void 0!==t.scaleY&&(this.scaleY=t.scaleY),void 0===t.documentRoi)throw new Error("documentRoi must be present in constructor argument");this.documentRoi=new U(t.documentRoi)}}class yt extends j.a{constructor(t={}){super(),this.maximumNumberOfAccumulatedFrames=3,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=2,void 0!==t.maximumNumberOfAccumulatedFrames&&(this.maximumNumberOfAccumulatedFrames=t.maximumNumberOfAccumulatedFrames),void 0!==t.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=t.minimumNumberOfRequiredFramesWithEqualRecognitionResult)}}class At extends j.a{constructor(t={}){if(super(),this.recognitionSuccessful=!1,void 0!==t.recognitionSuccessful&&(this.recognitionSuccessful=t.recognitionSuccessful),void 0===t.rawMRZ)throw new Error("rawMRZ must be present in constructor argument");if(this.rawMRZ=t.rawMRZ,void 0===t.document)throw new Error("document must be present in constructor argument");this.document=null!=t.document?new T.GenericDocument(t.document):null}}class Ct extends j.a{constructor(t={}){super(),this.accumulatedResultsVerifierConfig=new yt({}),void 0!==t.accumulatedResultsVerifierConfig&&(this.accumulatedResultsVerifierConfig=new yt(t.accumulatedResultsVerifierConfig))}}!function(t){t.From=function(t){const e=t._type;switch(e){case"Glyph":return new St(t);case"Word":return new xt(t);case"Line":return new wt(t);case"Block":return new Ot(t);case"Page":return new Et(t);default:throw`Unknown child class name: ${e}`}}}(B||(B={}));class St extends j.a{constructor(t={}){if(super(),this._type="Glyph",void 0===t.text)throw new Error("text must be present in constructor argument");if(this.text=t.text,void 0===t.confidence)throw new Error("confidence must be present in constructor argument");if(this.confidence=t.confidence,void 0===t.roi)throw new Error("roi must be present in constructor argument");this.roi=t.roi.map((t=>({x:t.x,y:t.y})))}}class xt extends j.a{constructor(t={}){if(super(),this._type="Word",void 0===t.text)throw new Error("text must be present in constructor argument");if(this.text=t.text,void 0===t.confidence)throw new Error("confidence must be present in constructor argument");if(this.confidence=t.confidence,void 0===t.roi)throw new Error("roi must be present in constructor argument");if(this.roi=t.roi.map((t=>({x:t.x,y:t.y}))),void 0===t.glyphs)throw new Error("glyphs must be present in constructor argument");this.glyphs=t.glyphs.map((t=>new St(t)))}}class wt extends j.a{constructor(t={}){if(super(),this._type="Line",void 0===t.text)throw new Error("text must be present in constructor argument");if(this.text=t.text,void 0===t.confidence)throw new Error("confidence must be present in constructor argument");if(this.confidence=t.confidence,void 0===t.roi)throw new Error("roi must be present in constructor argument");if(this.roi=t.roi.map((t=>({x:t.x,y:t.y}))),void 0===t.words)throw new Error("words must be present in constructor argument");this.words=t.words.map((t=>new xt(t)))}}class Ot extends j.a{constructor(t={}){if(super(),this._type="Block",void 0===t.text)throw new Error("text must be present in constructor argument");if(this.text=t.text,void 0===t.confidence)throw new Error("confidence must be present in constructor argument");if(this.confidence=t.confidence,void 0===t.roi)throw new Error("roi must be present in constructor argument");if(this.roi=t.roi.map((t=>({x:t.x,y:t.y}))),void 0===t.lines)throw new Error("lines must be present in constructor argument");this.lines=t.lines.map((t=>new wt(t)))}}class Et extends j.a{constructor(t={}){if(super(),this._type="Page",void 0===t.text)throw new Error("text must be present in constructor argument");if(this.text=t.text,void 0===t.confidence)throw new Error("confidence must be present in constructor argument");if(this.confidence=t.confidence,void 0===t.roi)throw new Error("roi must be present in constructor argument");if(this.roi=t.roi.map((t=>({x:t.x,y:t.y}))),void 0===t.blocks)throw new Error("blocks must be present in constructor argument");this.blocks=t.blocks.map((t=>new Ot(t)))}}!function(t){t.From=function(t){const e=t._type;switch(e){case"ScanbotBinarizationFilter":return new Lt(t);case"CustomBinarizationFilter":return new jt(t);case"ColorDocumentFilter":return new kt(t);case"BrightnessFilter":return new _t(t);case"ContrastFilter":return new Tt(t);case"GrayscaleFilter":return new Pt(t);case"LegacyFilter":return new Rt(t);case"WhiteBlackPointFilter":return new Dt(t);default:throw`Unknown child class name: ${e}`}}}(F||(F={}));class Lt extends j.a{constructor(t={}){super(),this._type="ScanbotBinarizationFilter",this.outputMode="BINARY",void 0!==t.outputMode&&(this.outputMode=t.outputMode)}}class jt extends j.a{constructor(t={}){super(),this._type="CustomBinarizationFilter",this.outputMode="BINARY",this.denoise=.5,this.radius=32,this.preset="PRESET_4",void 0!==t.outputMode&&(this.outputMode=t.outputMode),void 0!==t.denoise&&(this.denoise=t.denoise),void 0!==t.radius&&(this.radius=t.radius),void 0!==t.preset&&(this.preset=t.preset)}}class kt extends j.a{constructor(t={}){super(),this._type="ColorDocumentFilter"}}class _t extends j.a{constructor(t={}){super(),this._type="BrightnessFilter",this.brightness=0,void 0!==t.brightness&&(this.brightness=t.brightness)}}class Tt extends j.a{constructor(t={}){super(),this._type="ContrastFilter",this.contrast=0,void 0!==t.contrast&&(this.contrast=t.contrast)}}class Pt extends j.a{constructor(t={}){super(),this._type="GrayscaleFilter",this.borderWidthFraction=.06,this.blackOutliersFraction=0,this.whiteOutliersFraction=.02,void 0!==t.borderWidthFraction&&(this.borderWidthFraction=t.borderWidthFraction),void 0!==t.blackOutliersFraction&&(this.blackOutliersFraction=t.blackOutliersFraction),void 0!==t.whiteOutliersFraction&&(this.whiteOutliersFraction=t.whiteOutliersFraction)}}class Rt extends j.a{constructor(t={}){super(),this._type="LegacyFilter",this.filterType=0,void 0!==t.filterType&&(this.filterType=t.filterType)}}class Dt extends j.a{constructor(t={}){super(),this._type="WhiteBlackPointFilter",this.blackPoint=0,this.whitePoint=1,void 0!==t.blackPoint&&(this.blackPoint=t.blackPoint),void 0!==t.whitePoint&&(this.whitePoint=t.whitePoint)}}class Bt extends j.a{constructor(t={}){super(),this.author="Created with ❤️ with Scanbot SDK",this.creator="",this.title="",this.subject="",this.keywords="",void 0!==t.author&&(this.author=t.author),void 0!==t.creator&&(this.creator=t.creator),void 0!==t.title&&(this.title=t.title),void 0!==t.subject&&(this.subject=t.subject),void 0!==t.keywords&&(this.keywords=t.keywords)}}class Ft extends j.a{constructor(t={}){super(),this.attributes=new Bt({}),this.pageSize="A4",this.pageDirection="PORTRAIT",this.pageFit="FIT_IN",this.dpi=72,this.jpegQuality=80,this.resamplingMethod="NONE",void 0!==t.attributes&&(this.attributes=new Bt(t.attributes)),void 0!==t.pageSize&&(this.pageSize=t.pageSize),void 0!==t.pageDirection&&(this.pageDirection=t.pageDirection),void 0!==t.pageFit&&(this.pageFit=t.pageFit),void 0!==t.dpi&&(this.dpi=t.dpi),void 0!==t.jpegQuality&&(this.jpegQuality=t.jpegQuality),void 0!==t.resamplingMethod&&(this.resamplingMethod=t.resamplingMethod)}}!function(t){t.From=function(t){const e=t._type;switch(e){case"UserFieldDoubleValue":return new It(t);case"UserFieldStringValue":return new Mt(t);case"UserFieldIntValue":return new Wt(t);default:throw`Unknown child class name: ${e}`}}}(I||(I={}));class It extends j.a{constructor(t={}){if(super(),this._type="UserFieldDoubleValue",void 0===t.value)throw new Error("value must be present in constructor argument");this.value=t.value}}class Mt extends j.a{constructor(t={}){if(super(),this._type="UserFieldStringValue",void 0===t.value)throw new Error("value must be present in constructor argument");this.value=t.value}}class Wt extends j.a{constructor(t={}){if(super(),this._type="UserFieldIntValue",void 0===t.value)throw new Error("value must be present in constructor argument");this.value=t.value}}class zt extends j.a{constructor(t={}){if(super(),void 0===t.tag)throw new Error("tag must be present in constructor argument");if(this.tag=t.tag,void 0===t.name)throw new Error("name must be present in constructor argument");if(this.name=t.name,void 0===t.value)throw new Error("value must be present in constructor argument");this.value=I.From(t.value)}}class Nt extends j.a{constructor(t={}){super(),this.compression="LZW",this.jpegQuality=80,this.zipCompressionLevel=6,this.dpi=72,this.userFields=[],this.binarizationFilter=null,void 0!==t.compression&&(this.compression=t.compression),void 0!==t.jpegQuality&&(this.jpegQuality=t.jpegQuality),void 0!==t.zipCompressionLevel&&(this.zipCompressionLevel=t.zipCompressionLevel),void 0!==t.dpi&&(this.dpi=t.dpi),void 0!==t.userFields&&(this.userFields=t.userFields.map((t=>new zt(t)))),void 0!==t.binarizationFilter&&(this.binarizationFilter=null!=t.binarizationFilter?F.From(t.binarizationFilter):null)}}(M=Nt||(Nt={})).defaultCompression="LZW",M.binaryDocumentOptimizedCompression="CCITTFAX4"},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a}));var r=n(86),o=n(31);function i(t,e,n=!0){if(!e||"string"!=typeof e)return null;if(t&&t.vars&&n){const n=`vars.${e}`.split(".").reduce(((t,e)=>t&&t[e]?t[e]:null),t);if(null!=n)return n}return e.split(".").reduce(((t,e)=>t&&null!=t[e]?t[e]:null),t)}function a(t,e,n,r=n){let o;return o="function"==typeof t?t(n):Array.isArray(t)?t[n]||r:i(t,n)||r,e&&(o=e(o,r,t)),o}e.a=function(t){const{prop:e,cssProperty:n=t.prop,themeKey:s,transform:l}=t,c=t=>{if(null==t[e])return null;const c=t[e],u=i(t.theme,s)||{};return Object(o.b)(t,c,(t=>{let o=a(u,l,t);return t===o&&"string"==typeof t&&(o=a(u,l,`${e}${"default"===t?"":Object(r.a)(t)}`,t)),!1===n?o:{[n]:o}}))};return c.propTypes={},c.filterProps=[e],c}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(8);class o{constructor(t,e){this.width=t,this.height=e}isPortrait(){return this.height>this.width}ratio(t){return t?this.height/this.width:this.width/this.height}ratioDiff(t,e){return this.ratio(e)/t.ratio(e)}static isEmpty(t){return!t||(0===t.width||0===t.height)}static toPolygon(t){return[new r.a(0,0),new r.a(t.width,0),new r.a(t.width,t.height),new r.a(0,t.height)]}static fromHtmlElement(t){return t?new o(t.clientWidth,t.clientHeight):new o(0,0)}static fromJson(t){return new o(t.width,t.height)}static subtractFrom(t,e){return new o(t.width-e,t.height-e)}static empty(){return new o(0,0)}}},,,function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return a}));var r=n(0),o=n(6);function i(t){return{color:o.b.getColorValue(t.color),textShadow:t.useShadow?"1px 1px 2px":""}}function a(t){return t.config.visible?r.default.createElement("span",{ref:t.innerRef,style:Object.assign(Object.assign({},t.style),i(t.config))},o.b.getLocalizedBarcodeText(t.config.text)):null}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return d}));var r=n(0),o=n(77);const i=n(29).c.svg`
2
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(window,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=145)}([function(e,t,n){"use strict";n.r(t),n.d(t,"Component",(function(){return s.a})),n.d(t,"Fragment",(function(){return s.b})),n.d(t,"createContext",(function(){return s.d})),n.d(t,"createElement",(function(){return s.e})),n.d(t,"createRef",(function(){return s.f})),n.d(t,"useCallback",(function(){return O})),n.d(t,"useContext",(function(){return D})),n.d(t,"useDebugValue",(function(){return T})),n.d(t,"useEffect",(function(){return A})),n.d(t,"useErrorBoundary",(function(){return B})),n.d(t,"useId",(function(){return k})),n.d(t,"useImperativeHandle",(function(){return x})),n.d(t,"useLayoutEffect",(function(){return S})),n.d(t,"useMemo",(function(){return E})),n.d(t,"useReducer",(function(){return C})),n.d(t,"useRef",(function(){return w})),n.d(t,"useState",(function(){return y})),n.d(t,"Children",(function(){return G})),n.d(t,"PureComponent",(function(){return V})),n.d(t,"StrictMode",(function(){return Pe})),n.d(t,"Suspense",(function(){return q})),n.d(t,"SuspenseList",(function(){return ee})),n.d(t,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",(function(){return Se})),n.d(t,"cloneElement",(function(){return De})),n.d(t,"createFactory",(function(){return xe})),n.d(t,"createPortal",(function(){return oe})),n.d(t,"default",(function(){return Ve})),n.d(t,"findDOMNode",(function(){return Be})),n.d(t,"flushSync",(function(){return Ie})),n.d(t,"forwardRef",(function(){return U})),n.d(t,"hydrate",(function(){return me})),n.d(t,"isElement",(function(){return Me})),n.d(t,"isFragment",(function(){return Oe})),n.d(t,"isValidElement",(function(){return Ee})),n.d(t,"lazy",(function(){return J})),n.d(t,"memo",(function(){return W})),n.d(t,"render",(function(){return de})),n.d(t,"startTransition",(function(){return Le})),n.d(t,"unmountComponentAtNode",(function(){return Te})),n.d(t,"unstable_batchedUpdates",(function(){return ke})),n.d(t,"useDeferredValue",(function(){return Re})),n.d(t,"useInsertionEffect",(function(){return je})),n.d(t,"useSyncExternalStore",(function(){return Fe})),n.d(t,"useTransition",(function(){return _e})),n.d(t,"version",(function(){return we}));var i,o,r,a,s=n(14),c=0,l=[],u=[],d=s.h,m=d.__b,p=d.__r,h=d.diffed,f=d.__c,g=d.unmount,v=d.__;function b(e,t){d.__h&&d.__h(o,e,c||t),c=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:u}),n.__[e]}function y(e){return c=1,C(M,e)}function C(e,t,n){var r=b(i++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):M(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=o,!o.u)){var a=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter((function(e){return!!e.__c}));if(i.every((function(e){return!e.__N})))return!s||s.call(this,e,t,n);var o=!1;return i.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}})),!(!o&&r.__c.props===e)&&(!s||s.call(this,e,t,n))};o.u=!0;var s=o.shouldComponentUpdate,c=o.componentWillUpdate;o.componentWillUpdate=function(e,t,n){if(this.__e){var i=s;s=void 0,a(e,t,n),s=i}c&&c.call(this,e,t,n)},o.shouldComponentUpdate=a}return r.__N||r.__}function A(e,t){var n=b(i++,3);!d.__s&&j(n.__H,t)&&(n.__=e,n.i=t,o.__H.__h.push(n))}function S(e,t){var n=b(i++,4);!d.__s&&j(n.__H,t)&&(n.__=e,n.i=t,o.__h.push(n))}function w(e){return c=5,E((function(){return{current:e}}),[])}function x(e,t,n){c=6,S((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function E(e,t){var n=b(i++,7);return j(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function O(e,t){return c=8,E((function(){return e}),t)}function D(e){var t=o.context[e.__c],n=b(i++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__}function T(e,t){d.useDebugValue&&d.useDebugValue(t?t(e):e)}function B(e){var t=b(i++,10),n=y();return t.__=e,o.componentDidCatch||(o.componentDidCatch=function(e,i){t.__&&t.__(e,i),n[1](e)}),[n[0],function(){n[1](void 0)}]}function k(){var e=b(i++,11);if(!e.__){for(var t=o.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function I(){for(var e;e=l.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(R),e.__H.__h.forEach(_),e.__H.__h=[]}catch(t){e.__H.__h=[],d.__e(t,e.__v)}}d.__b=function(e){o=null,m&&m(e)},d.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),v&&v(e,t)},d.__r=function(e){p&&p(e),i=0;var t=(o=e.__c).__H;t&&(r===o?(t.__h=[],o.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=u,e.__N=e.i=void 0}))):(t.__h.forEach(R),t.__h.forEach(_),t.__h=[],i=0)),r=o},d.diffed=function(e){h&&h(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==l.push(t)&&a===d.requestAnimationFrame||((a=d.requestAnimationFrame)||L)(I)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==u&&(e.__=e.__V),e.i=void 0,e.__V=u}))),r=o=null},d.__c=function(e,t){t.some((function(e){try{e.__h.forEach(R),e.__h=e.__h.filter((function(e){return!e.__||_(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],d.__e(n,e.__v)}})),f&&f(e,t)},d.unmount=function(e){g&&g(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{R(e)}catch(e){t=e}})),n.__H=void 0,t&&d.__e(t,n.__v))};var P="function"==typeof requestAnimationFrame;function L(e){var t,n=function(){clearTimeout(i),P&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);P&&(t=requestAnimationFrame(n))}function R(e){var t=o,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),o=t}function _(e){var t=o;e.__c=e.__(),o=t}function j(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function M(e,t){return"function"==typeof t?t(e):t}function F(e,t){for(var n in t)e[n]=t[n];return e}function N(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var i in t)if("__source"!==i&&e[i]!==t[i])return!0;return!1}function V(e,t){this.props=e,this.context=t}function W(e,t){function n(e){var n=this.props.ref,i=n==e.ref;return!i&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!i:N(this.props,e)}function i(t){return this.shouldComponentUpdate=n,Object(s.e)(e,t)}return i.displayName="Memo("+(e.displayName||e.name)+")",i.prototype.isReactComponent=!0,i.__f=!0,i}(V.prototype=new s.a).isPureReactComponent=!0,V.prototype.shouldComponentUpdate=function(e,t){return N(this.props,e)||N(this.state,t)};var z=s.h.__b;s.h.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),z&&z(e)};var H="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function U(e){function t(t){var n=F({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=H,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Z=function(e,t){return null==e?null:Object(s.j)(Object(s.j)(e).map(t))},G={map:Z,forEach:Z,count:function(e){return e?Object(s.j)(e).length:0},only:function(e){var t=Object(s.j)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:s.j},$=s.h.__e;s.h.__e=function(e,t,n,i){if(e.then)for(var o,r=t;r=r.__;)if((o=r.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);$(e,t,n,i)};var Y=s.h.unmount;function Q(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=F({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Q(e,t,n)}))),e}function X(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return X(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function q(){this.__u=0,this.t=null,this.__b=null}function K(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function J(e){var t,n,i;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){i=e})),i)throw i;if(!n)throw t;return Object(s.e)(n,o)}return o.displayName="Lazy",o.__f=!0,o}function ee(){this.u=null,this.o=null}s.h.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Y&&Y(e)},(q.prototype=new s.a).__c=function(e,t){var n=t.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var o=K(i.__v),r=!1,a=function(){r||(r=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(!--i.__u){if(i.state.__a){var e=i.state.__a;i.__v.__k[0]=X(e,e.__c.__P,e.__c.__O)}var t;for(i.setState({__a:i.__b=null});t=i.t.pop();)t.forceUpdate()}};i.__u++||32&t.__u||i.setState({__a:i.__b=i.__v.__k[0]}),e.then(a,a)},q.prototype.componentWillUnmount=function(){this.t=[]},q.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=Q(this.__b,n,i.__O=i.__P)}this.__b=null}var o=t.__a&&Object(s.e)(s.b,null,e.fallback);return o&&(o.__u&=-33),[Object(s.e)(s.b,null,t.__a?null:e.children),o]};var te=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function ne(e){return this.getChildContext=function(){return e.context},e.children}function ie(e){var t=this,n=e.i;t.componentWillUnmount=function(){Object(s.i)(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),Object(s.i)(Object(s.e)(ne,{context:t.context},e.__v),t.l)}function oe(e,t){var n=Object(s.e)(ie,{__v:e,i:t});return n.containerInfo=t,n}(ee.prototype=new s.a).__a=function(e){var t=this,n=K(t.__v),i=t.o.get(e);return i[0]++,function(o){var r=function(){t.props.revealOrder?(i.push(o),te(t,e,i)):o()};n?n(r):r()}},ee.prototype.render=function(e){this.u=null,this.o=new Map;var t=Object(s.j)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ee.prototype.componentDidUpdate=ee.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){te(e,n,t)}))};var re="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ae=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,se=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ce=/[A-Z0-9]/g,le="undefined"!=typeof document,ue=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function de(e,t,n){return null==t.__k&&(t.textContent=""),Object(s.i)(e,t),"function"==typeof n&&n(),e?e.__c:null}function me(e,t,n){return Object(s.g)(e,t),"function"==typeof n&&n(),e?e.__c:null}s.a.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(s.a.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var pe=s.h.event;function he(){}function fe(){return this.cancelBubble}function ge(){return this.defaultPrevented}s.h.event=function(e){return pe&&(e=pe(e)),e.persist=he,e.isPropagationStopped=fe,e.isDefaultPrevented=ge,e.nativeEvent=e};var ve,be={enumerable:!1,configurable:!0,get:function(){return this.class}},ye=s.h.vnode;s.h.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,i={};for(var o in t){var r=t[o];if(!("value"===o&&"defaultValue"in t&&null==r||le&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var a=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===r?r="":"translate"===a&&"no"===r?r=!1:"ondoubleclick"===a?o="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||ue(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":se.test(o)?o=a:-1===n.indexOf("-")&&ae.test(o)?o=o.replace(ce,"-$&").toLowerCase():null===r&&(r=void 0):a=o="oninput","oninput"===a&&i[o=a]&&(o="oninputCapture"),i[o]=r}}"select"==n&&i.multiple&&Array.isArray(i.value)&&(i.value=Object(s.j)(t.children).forEach((function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)}))),"select"==n&&null!=i.defaultValue&&(i.value=Object(s.j)(t.children).forEach((function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value}))),t.class&&!t.className?(i.class=t.class,Object.defineProperty(i,"className",be)):(t.className&&!t.class||t.class&&t.className)&&(i.class=i.className=t.className),e.props=i}(e),e.$$typeof=re,ye&&ye(e)};var Ce=s.h.__r;s.h.__r=function(e){Ce&&Ce(e),ve=e.__c};var Ae=s.h.diffed;s.h.diffed=function(e){Ae&&Ae(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),ve=null};var Se={ReactCurrentDispatcher:{current:{readContext:function(e){return ve.__n[e.__c].props.value}}}},we="17.0.2";function xe(e){return s.e.bind(null,e)}function Ee(e){return!!e&&e.$$typeof===re}function Oe(e){return Ee(e)&&e.type===s.b}function De(e){return Ee(e)?s.c.apply(null,arguments):e}function Te(e){return!!e.__k&&(Object(s.i)(null,e),!0)}function Be(e){return e&&(e.base||1===e.nodeType&&e)||null}var ke=function(e,t){return e(t)},Ie=function(e,t){return e(t)},Pe=s.b;function Le(e){e()}function Re(e){return e}function _e(){return[!1,Le]}var je=S,Me=Ee;function Fe(e,t){var n=t(),i=y({h:{__:n,v:t}}),o=i[0].h,r=i[1];return S((function(){o.__=n,o.v=t,Ne(o)&&r({h:o})}),[e,n,t]),A((function(){return Ne(o)&&r({h:o}),e((function(){Ne(o)&&r({h:o})}))}),[e]),n}function Ne(e){var t,n,i=e.v,o=e.__;try{var r=i();return!((t=o)===(n=r)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}var Ve={useState:y,useId:k,useReducer:C,useEffect:A,useLayoutEffect:S,useInsertionEffect:je,useTransition:_e,useDeferredValue:Re,useSyncExternalStore:Fe,startTransition:Le,useRef:w,useImperativeHandle:x,useMemo:E,useCallback:O,useContext:D,useDebugValue:T,version:"17.0.2",Children:G,render:de,hydrate:me,unmountComponentAtNode:Te,createPortal:oe,createElement:s.e,createContext:s.d,createFactory:xe,cloneElement:De,createRef:s.f,Fragment:s.b,isValidElement:Ee,isElement:Me,isFragment:Oe,findDOMNode:Be,Component:s.a,PureComponent:V,memo:W,forwardRef:U,flushSync:Ie,unstable_batchedUpdates:ke,StrictMode:Pe,Suspense:q,SuspenseList:ee,lazy:J,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Se}},function(e,t,n){"use strict";n.r(t),n.d(t,"Palette",(function(){return o})),n.d(t,"StyledText",(function(){return r})),n.d(t,"IconStyle",(function(){return a})),n.d(t,"IconButton",(function(){return s})),n.d(t,"PolygonStyle",(function(){return c})),n.d(t,"BackgroundStyle",(function(){return l})),n.d(t,"ForegroundStyle",(function(){return u})),n.d(t,"BadgeStyle",(function(){return d})),n.d(t,"RoundButton",(function(){return m})),n.d(t,"BadgedButton",(function(){return p})),n.d(t,"ButtonConfiguration",(function(){return h})),n.d(t,"PopupMenuItem",(function(){return f})),n.d(t,"BarButtonConfiguration",(function(){return g})),n.d(t,"Sound",(function(){return v})),n.d(t,"Vibration",(function(){return b})),n.d(t,"Timeouts",(function(){return y}));var i=n(7);class o extends i.a{constructor(e={}){super(),this.sbColorPrimary="#C8193C",this.sbColorPrimaryDisabled="#F5F5F5",this.sbColorNegative="#FF3737",this.sbColorPositive="#4EFFB4",this.sbColorWarning="#FFCE5C",this.sbColorSecondary="#FFEDEE",this.sbColorSecondaryDisabled="#F5F5F5",this.sbColorOnPrimary="#FFFFFF",this.sbColorOnSecondary="#C8193C",this.sbColorSurface="#FFFFFF",this.sbColorOutline="#EFEFEF",this.sbColorOnSurfaceVariant="#707070",this.sbColorOnSurface="#000000",this.sbColorSurfaceLow="#00000026",this.sbColorSurfaceHigh="#0000007A",this.sbColorModalOverlay="#000000A3",void 0!==e.sbColorPrimary&&(this.sbColorPrimary=e.sbColorPrimary),void 0!==e.sbColorPrimaryDisabled&&(this.sbColorPrimaryDisabled=e.sbColorPrimaryDisabled),void 0!==e.sbColorNegative&&(this.sbColorNegative=e.sbColorNegative),void 0!==e.sbColorPositive&&(this.sbColorPositive=e.sbColorPositive),void 0!==e.sbColorWarning&&(this.sbColorWarning=e.sbColorWarning),void 0!==e.sbColorSecondary&&(this.sbColorSecondary=e.sbColorSecondary),void 0!==e.sbColorSecondaryDisabled&&(this.sbColorSecondaryDisabled=e.sbColorSecondaryDisabled),void 0!==e.sbColorOnPrimary&&(this.sbColorOnPrimary=e.sbColorOnPrimary),void 0!==e.sbColorOnSecondary&&(this.sbColorOnSecondary=e.sbColorOnSecondary),void 0!==e.sbColorSurface&&(this.sbColorSurface=e.sbColorSurface),void 0!==e.sbColorOutline&&(this.sbColorOutline=e.sbColorOutline),void 0!==e.sbColorOnSurfaceVariant&&(this.sbColorOnSurfaceVariant=e.sbColorOnSurfaceVariant),void 0!==e.sbColorOnSurface&&(this.sbColorOnSurface=e.sbColorOnSurface),void 0!==e.sbColorSurfaceLow&&(this.sbColorSurfaceLow=e.sbColorSurfaceLow),void 0!==e.sbColorSurfaceHigh&&(this.sbColorSurfaceHigh=e.sbColorSurfaceHigh),void 0!==e.sbColorModalOverlay&&(this.sbColorModalOverlay=e.sbColorModalOverlay)}}class r extends i.a{constructor(e={}){super(),this.visible=!0,this.text="",this.color="#FFFFFF",this.useShadow=!1,void 0!==e.visible&&(this.visible=e.visible),void 0!==e.text&&(this.text=e.text),void 0!==e.color&&(this.color=e.color),void 0!==e.useShadow&&(this.useShadow=e.useShadow)}}class a extends i.a{constructor(e={}){super(),this.visible=!0,this.color="#FFFFFF",void 0!==e.visible&&(this.visible=e.visible),void 0!==e.color&&(this.color=e.color)}}class s extends i.a{constructor(e={}){super(),this.visible=!0,this.color="#FFFFFF",this.accessibilityDescription="",void 0!==e.visible&&(this.visible=e.visible),void 0!==e.color&&(this.color=e.color),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription)}}class c extends i.a{constructor(e={}){super(),this.strokeColor="#FFFFFFFF",this.fillColor="#FFFFFF30",this.strokeWidth=2,this.cornerRadius=0,void 0!==e.strokeColor&&(this.strokeColor=e.strokeColor),void 0!==e.fillColor&&(this.fillColor=e.fillColor),void 0!==e.strokeWidth&&(this.strokeWidth=e.strokeWidth),void 0!==e.cornerRadius&&(this.cornerRadius=e.cornerRadius)}}class l extends i.a{constructor(e={}){super(),this.strokeColor="#FFFFFFFF",this.fillColor="#FFFFFF30",this.strokeWidth=2,void 0!==e.strokeColor&&(this.strokeColor=e.strokeColor),void 0!==e.fillColor&&(this.fillColor=e.fillColor),void 0!==e.strokeWidth&&(this.strokeWidth=e.strokeWidth)}}class u extends i.a{constructor(e={}){super(),this.iconVisible=!0,this.color="#FFFFFF",this.useShadow=!1,void 0!==e.iconVisible&&(this.iconVisible=e.iconVisible),void 0!==e.color&&(this.color=e.color),void 0!==e.useShadow&&(this.useShadow=e.useShadow)}}class d extends i.a{constructor(e={}){super(),this.visible=!0,this.background=new l({}),this.foregroundColor="?sbColorOnSurface",void 0!==e.visible&&(this.visible=e.visible),void 0!==e.background&&(this.background=new l(e.background)),void 0!==e.foregroundColor&&(this.foregroundColor=e.foregroundColor)}}class m extends i.a{constructor(e={}){super(),this.visible=!0,this.accessibilityDescription="",this.backgroundColor="#0000007A",this.foregroundColor="#FFFFFF",this.activeBackgroundColor="#FFCE5C",this.activeForegroundColor="#1C1B1F",void 0!==e.visible&&(this.visible=e.visible),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.foregroundColor&&(this.foregroundColor=e.foregroundColor),void 0!==e.activeBackgroundColor&&(this.activeBackgroundColor=e.activeBackgroundColor),void 0!==e.activeForegroundColor&&(this.activeForegroundColor=e.activeForegroundColor)}}class p extends i.a{constructor(e={}){super(),this.badgeBackgroundColor="#FFFFFF",this.badgeForegroundColor="#C8193C",this.visible=!0,this.backgroundColor="#0000007A",this.foregroundColor="#FFFFFF",this.activeBackgroundColor="#FFCE5C",this.activeForegroundColor="#1C1B1F",void 0!==e.badgeBackgroundColor&&(this.badgeBackgroundColor=e.badgeBackgroundColor),void 0!==e.badgeForegroundColor&&(this.badgeForegroundColor=e.badgeForegroundColor),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.foregroundColor&&(this.foregroundColor=e.foregroundColor),void 0!==e.activeBackgroundColor&&(this.activeBackgroundColor=e.activeBackgroundColor),void 0!==e.activeForegroundColor&&(this.activeForegroundColor=e.activeForegroundColor)}}class h extends i.a{constructor(e={}){super(),this.visible=!0,this.text="",this.accessibilityDescription="",this.background=new l({}),this.foreground=new u({}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.text&&(this.text=e.text),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.background&&(this.background=new l(e.background)),void 0!==e.foreground&&(this.foreground=new u(e.foreground))}}class f extends i.a{constructor(e={}){super(),this.title=new r({}),this.accessibilityDescription="",this.icon=new a({}),void 0!==e.title&&(this.title=new r(e.title)),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.icon&&(this.icon=new a(e.icon))}}class g extends i.a{constructor(e={}){super(),this.visible=!0,this.title=new r({}),this.accessibilityDescription="",this.background=new l({}),this.icon=new a({}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.title&&(this.title=new r(e.title)),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.background&&(this.background=new l(e.background)),void 0!==e.icon&&(this.icon=new a(e.icon))}}class v extends i.a{constructor(e={}){super(),this.successBeepEnabled=!0,this.soundType="MODERN_BEEP",void 0!==e.successBeepEnabled&&(this.successBeepEnabled=e.successBeepEnabled),void 0!==e.soundType&&(this.soundType=e.soundType)}}class b extends i.a{constructor(e={}){super(),this.enabled=!1,void 0!==e.enabled&&(this.enabled=e.enabled)}}class y extends i.a{constructor(e={}){super(),this.autoCancelTimeout=0,this.initialScanDelay=0,void 0!==e.autoCancelTimeout&&(this.autoCancelTimeout=e.autoCancelTimeout),void 0!==e.initialScanDelay&&(this.initialScanDelay=e.initialScanDelay)}}},function(e,t,n){"use strict";n.d(t,"f",(function(){return o})),n.d(t,"j",(function(){return r})),n.d(t,"e",(function(){return a})),n.d(t,"g",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"h",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return m})),n.d(t,"i",(function(){return p})),n.d(t,"l",(function(){return h})),n.d(t,"k",(function(){return f}));var i=n(7);class o extends i.a{constructor(e={}){super(),this.sbColorPrimary="#C8193C",this.sbColorPrimaryDisabled="#F5F5F5",this.sbColorNegative="#FF3737",this.sbColorPositive="#4EFFB4",this.sbColorWarning="#FFCE5C",this.sbColorSecondary="#FFEDEE",this.sbColorSecondaryDisabled="#F5F5F5",this.sbColorOnPrimary="#FFFFFF",this.sbColorOnSecondary="#C8193C",this.sbColorSurface="#FFFFFF",this.sbColorOutline="#EFEFEF",this.sbColorOnSurfaceVariant="#707070",this.sbColorOnSurface="#000000",this.sbColorSurfaceLow="#00000026",this.sbColorSurfaceHigh="#0000007A",this.sbColorModalOverlay="#000000A3",void 0!==e.sbColorPrimary&&(this.sbColorPrimary=e.sbColorPrimary),void 0!==e.sbColorPrimaryDisabled&&(this.sbColorPrimaryDisabled=e.sbColorPrimaryDisabled),void 0!==e.sbColorNegative&&(this.sbColorNegative=e.sbColorNegative),void 0!==e.sbColorPositive&&(this.sbColorPositive=e.sbColorPositive),void 0!==e.sbColorWarning&&(this.sbColorWarning=e.sbColorWarning),void 0!==e.sbColorSecondary&&(this.sbColorSecondary=e.sbColorSecondary),void 0!==e.sbColorSecondaryDisabled&&(this.sbColorSecondaryDisabled=e.sbColorSecondaryDisabled),void 0!==e.sbColorOnPrimary&&(this.sbColorOnPrimary=e.sbColorOnPrimary),void 0!==e.sbColorOnSecondary&&(this.sbColorOnSecondary=e.sbColorOnSecondary),void 0!==e.sbColorSurface&&(this.sbColorSurface=e.sbColorSurface),void 0!==e.sbColorOutline&&(this.sbColorOutline=e.sbColorOutline),void 0!==e.sbColorOnSurfaceVariant&&(this.sbColorOnSurfaceVariant=e.sbColorOnSurfaceVariant),void 0!==e.sbColorOnSurface&&(this.sbColorOnSurface=e.sbColorOnSurface),void 0!==e.sbColorSurfaceLow&&(this.sbColorSurfaceLow=e.sbColorSurfaceLow),void 0!==e.sbColorSurfaceHigh&&(this.sbColorSurfaceHigh=e.sbColorSurfaceHigh),void 0!==e.sbColorModalOverlay&&(this.sbColorModalOverlay=e.sbColorModalOverlay)}}class r extends i.a{constructor(e={}){super(),this.visible=!0,this.text="",this.color="#FFFFFF",this.useShadow=!1,void 0!==e.visible&&(this.visible=e.visible),void 0!==e.text&&(this.text=e.text),void 0!==e.color&&(this.color=e.color),void 0!==e.useShadow&&(this.useShadow=e.useShadow)}}class a extends i.a{constructor(e={}){super(),this.visible=!0,this.color="#FFFFFF",void 0!==e.visible&&(this.visible=e.visible),void 0!==e.color&&(this.color=e.color)}}class s extends i.a{constructor(e={}){super(),this.strokeColor="#FFFFFFFF",this.fillColor="#FFFFFF30",this.strokeWidth=2,this.cornerRadius=0,void 0!==e.strokeColor&&(this.strokeColor=e.strokeColor),void 0!==e.fillColor&&(this.fillColor=e.fillColor),void 0!==e.strokeWidth&&(this.strokeWidth=e.strokeWidth),void 0!==e.cornerRadius&&(this.cornerRadius=e.cornerRadius)}}class c extends i.a{constructor(e={}){super(),this.strokeColor="#FFFFFFFF",this.fillColor="#FFFFFF30",this.strokeWidth=2,void 0!==e.strokeColor&&(this.strokeColor=e.strokeColor),void 0!==e.fillColor&&(this.fillColor=e.fillColor),void 0!==e.strokeWidth&&(this.strokeWidth=e.strokeWidth)}}class l extends i.a{constructor(e={}){super(),this.iconVisible=!0,this.color="#FFFFFF",this.useShadow=!1,void 0!==e.iconVisible&&(this.iconVisible=e.iconVisible),void 0!==e.color&&(this.color=e.color),void 0!==e.useShadow&&(this.useShadow=e.useShadow)}}class u extends i.a{constructor(e={}){super(),this.visible=!0,this.backgroundColor="#0000007A",this.foregroundColor="#FFFFFF",this.activeBackgroundColor="#FFCE5C",this.activeForegroundColor="#1C1B1F",void 0!==e.visible&&(this.visible=e.visible),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.foregroundColor&&(this.foregroundColor=e.foregroundColor),void 0!==e.activeBackgroundColor&&(this.activeBackgroundColor=e.activeBackgroundColor),void 0!==e.activeForegroundColor&&(this.activeForegroundColor=e.activeForegroundColor)}}class d extends i.a{constructor(e={}){super(),this.badgeBackgroundColor="#FFFFFF",this.badgeForegroundColor="#C8193C",this.visible=!0,this.backgroundColor="#0000007A",this.foregroundColor="#FFFFFF",this.activeBackgroundColor="#FFCE5C",this.activeForegroundColor="#1C1B1F",void 0!==e.badgeBackgroundColor&&(this.badgeBackgroundColor=e.badgeBackgroundColor),void 0!==e.badgeForegroundColor&&(this.badgeForegroundColor=e.badgeForegroundColor),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.foregroundColor&&(this.foregroundColor=e.foregroundColor),void 0!==e.activeBackgroundColor&&(this.activeBackgroundColor=e.activeBackgroundColor),void 0!==e.activeForegroundColor&&(this.activeForegroundColor=e.activeForegroundColor)}}class m extends i.a{constructor(e={}){super(),this.visible=!0,this.text="",this.background=new c({}),this.foreground=new l({}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.text&&(this.text=e.text),void 0!==e.background&&(this.background=new c(e.background)),void 0!==e.foreground&&(this.foreground=new l(e.foreground))}}class p extends i.a{constructor(e={}){super(),this.successBeepEnabled=!0,this.soundType="MODERN_BEEP",void 0!==e.successBeepEnabled&&(this.successBeepEnabled=e.successBeepEnabled),void 0!==e.soundType&&(this.soundType=e.soundType)}}class h extends i.a{constructor(e={}){super(),this.enabled=!1,void 0!==e.enabled&&(this.enabled=e.enabled)}}class f extends i.a{constructor(e={}){super(),this.autoCancelTimeout=0,this.initialScanDelay=0,void 0!==e.autoCancelTimeout&&(this.autoCancelTimeout=e.autoCancelTimeout),void 0!==e.initialScanDelay&&(this.initialScanDelay=e.initialScanDelay)}}},function(e,t,n){"use strict";function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},i.apply(this,arguments)}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"e",(function(){return c}));var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r=function(){return r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};function a(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}Object.create;function s(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function c(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return u}));var i=n(0),o=n(36),r=n(38);const a=Object(i.createContext)(null);function s(e){return{getColorValue:t=>l(t,e)}}class c{static setPalette(e){this.palette=e}static setLocalization(e){this.localization=e}static getColorValue(e){return l(e,this.palette)}static getPolygonColorValues(e,t){return new o.PolygonStyle({fillColor:t?c.getColorValue(e.fillColor):"transparent",strokeColor:t?c.getColorValue(e.strokeColor):"transparent",strokeWidth:e.strokeWidth,cornerRadius:e.cornerRadius})}static getLocalizedText(e,t=[]){return u(e,t,this.localization)}}function l(e,t){if(e){if(e.startsWith("?")){if(!t)throw new Error("Palette is not set");const n=e.slice(1);if(n in t)return t[n];r.a.debugWarn(`Color ${n} not found in palette`)}return e}r.a.debugWarn("Color is missing")}function u(e,t=[],n){if(e.startsWith("?")){if(!n)throw new Error("Localization is not set");const t=e.slice(1);t in n?e=n[t]:r.a.debugWarn(`Text localization key ${t} was not found in the localization table`)}for(let n of t)e=e.replace("%d",n);return e}c.palette=null,c.localization=null},function(e,t,n){n(0),e.exports=n(146)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));class i{}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));class i{_marker(){}}},function(e,t,n){"use strict";function i(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(60);class o{constructor(e,t){this.x=e,this.y=t}static toPolygon(e,t){return[o.scaleDownTo(e[0],t),o.scaleDownTo(e[1],t),o.scaleDownTo(e[2],t),o.scaleDownTo(e[3],t)]}static scaleToPoint(e,t,n,i){return new o(i*(e.x-t),i*(e.y-n))}static scaleListToHtmlElement(e,t,n){return e.map((e=>o.scaleToHtmlElement(e,t,n)))}static scaleToHtmlElement(e,t,n){return new o(e.x*(n.clientWidth/t.width),e.y*(n.clientHeight/t.height))}static scaleUpTo(e,t){return new o(e.x*t.width,e.y*t.height)}static scaleDownTo(e,t){return new o(e.x/t.width,e.y/t.height)}static fromHtmlElement(e){return new o(e.offsetLeft,e.offsetTop)}static withScale(e,t,n){return new o(e/n,t/n)}static fromCoordinates(e,t,n,i){if(!e||!t)return new o(0,0);const r=new o(e,t);return i=null!=i?i:1,1===(n=n?n%4:0)?o.withScale(r.y,-r.x,i):2===n?o.withScale(-r.x,-r.y,i):3===n?o.withScale(-r.y,r.x,i):o.withScale(r.x,r.y,i)}static centerOf(e){const t=e.reduce(((e,t)=>e+t.x),0)/e.length,n=e.reduce(((e,t)=>e+t.y),0)/e.length;return new o(t,n)}static smallerSizeOfQuad(e){const t=Math.max(...e.map((e=>e.x)))-Math.min(...e.map((e=>e.x))),n=Math.max(...e.map((e=>e.y)))-Math.min(...e.map((e=>e.y)));return Math.min(t,n)}static empty(){return new o(0,0)}static centerX(e){if(e)return(o.highestX(e)+o.lowestX(e))/2}static highestX(e){if(e)return Math.max(...e.map((e=>e.x)))}static lowestX(e){if(e)return Math.min(...e.map((e=>e.x)))}static lowestY(e){if(e)return Math.min(...e.map((e=>e.y)))}static highestY(e){if(e)return Math.max(...e.map((e=>e.y)))}static width(e){if(e)return o.highestX(e)-o.lowestX(e)}static left(e){if(e)return e.reduce(((e,t)=>e.x<t.x?e:t))}static right(e){if(e)return e.reduce(((e,t)=>e.x>t.x?e:t))}static toSvgString(e){if(void 0!==e)return e.map((e=>`${e.x.toFixed(2)},${e.y.toFixed(2)}`)).join(" ")}static toSvgPathStringWithRoundedCorners(e,t=0){if(void 0===e)return;function n(e,t,n){const i=Math.atan2(e.y-t.y,e.x-t.x);return{x:e.x-n*Math.cos(i),y:e.y-n*Math.sin(i)}}let i="";const r=n(e[0],e[1],o.distance(e[0],e[1])/2);i+=`M ${r.x} ${r.y}`;for(let r=0;r<e.length;r++){const a=e[r],s=e[(r+1)%e.length],c=e[(r+2)%e.length],l=n(s,c,o.distance(s,c)/2),u=Math.abs(Math.atan2(s.y-a.y,s.x-a.x)-Math.atan2(s.y-c.y,s.x-c.x)),d=u>Math.PI?2*Math.PI-u:u,m=Math.min(Math.sqrt(Math.pow(s.x-a.x,2)+Math.pow(s.y-a.y,2)),Math.sqrt(Math.pow(s.x-c.x,2)+Math.pow(s.y-c.y,2))),p=Math.min(t,m*Math.tan(d/2)/2),h=Math.abs(p/Math.tan(d/2)),f=(s.x-a.x)*(s.y-c.y)-(s.x-c.x)*(s.y-a.y)<0?1:0,g=n(s,a,h),v=n(s,c,h);i+=` L${g.x} ${g.y}`,i+=` A${p} ${p} 0 0 ${f} ${v.x} ${v.y}`,i+=` L${l.x} ${l.y}`}return i+" Z"}static distance(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}static subtract(e,t){return new o(e.x-t.x,e.y-t.y)}static add(e,t){return new o(e.x+t.x,e.y+t.y)}static multiply(e,t){return new o(e.x*t,e.y*t)}static cross(e,t){return e.x*t.y-e.y*t.x}static clamp(e,t){return new o(Object(i.a)(e.x,0,t.width),Object(i.a)(e.y,0,t.height))}}},function(e,t,n){"use strict";function i(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=i(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}t.a=function(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=i(e))&&(o&&(o+=" "),o+=t);return o}},function(e,t,n){"use strict";n.d(t,"b",(function(){return C}));var i=n(3),o=n(9),r=n(59),a=n(136),s=n(160),c=n(109);const l=["ownerState"],u=["variants"],d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function m(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const p=Object(s.a)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function f({defaultTheme:e,theme:t,themeId:n}){return i=t,0===Object.keys(i).length?e:t[n]||t;var i}function g(e){return e?(t,n)=>n[e]:null}function v(e,t){let{ownerState:n}=t,r=Object(o.a)(t,l);const a="function"==typeof e?e(Object(i.a)({ownerState:n},r)):e;if(Array.isArray(a))return a.flatMap((e=>v(e,Object(i.a)({ownerState:n},r))));if(a&&"object"==typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=Object(o.a)(a,u);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(Object(i.a)({ownerState:n},r)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(Object(i.a)({ownerState:n},r)):e.style))})),t}return a}var b=n(65),y=n(46);const C=e=>m(e)&&"classes"!==e,A=function(e={}){const{themeId:t,defaultTheme:n=p,rootShouldForwardProp:s=m,slotShouldForwardProp:l=m}=e,u=e=>Object(c.a)(Object(i.a)({},e,{theme:f(Object(i.a)({},e,{defaultTheme:n,themeId:t}))}));return u.__mui_systemSx=!0,(e,c={})=>{Object(r.b)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:p,slot:b,skipVariantsResolver:y,skipSx:C,overridesResolver:A=g(h(b))}=c,S=Object(o.a)(c,d),w=void 0!==y?y:b&&"Root"!==b&&"root"!==b||!1,x=C||!1;let E=m;"Root"===b||"root"===b?E=s:b?E=l:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(E=void 0);const O=Object(r.a)(e,Object(i.a)({shouldForwardProp:E,label:undefined},S)),D=e=>"function"==typeof e&&e.__emotion_real!==e||Object(a.b)(e)?o=>v(e,Object(i.a)({},o,{theme:f({theme:o.theme,defaultTheme:n,themeId:t})})):e,T=(o,...r)=>{let a=D(o);const s=r?r.map(D):[];p&&A&&s.push((e=>{const o=f(Object(i.a)({},e,{defaultTheme:n,themeId:t}));if(!o.components||!o.components[p]||!o.components[p].styleOverrides)return null;const r=o.components[p].styleOverrides,a={};return Object.entries(r).forEach((([t,n])=>{a[t]=v(n,Object(i.a)({},e,{theme:o}))})),A(e,a)})),p&&!w&&s.push((e=>{var o;const r=f(Object(i.a)({},e,{defaultTheme:n,themeId:t}));return v({variants:null==r||null==(o=r.components)||null==(o=o[p])?void 0:o.variants},Object(i.a)({},e,{theme:r}))})),x||s.push(u);const c=s.length-r.length;if(Array.isArray(o)&&c>0){const e=new Array(c).fill("");a=[...o,...e],a.raw=[...o.raw,...e]}const l=O(a,...s);return e.muiName&&(l.muiName=e.muiName),l};return O.withConfig&&(T.withConfig=O.withConfig),T}}({themeId:y.a,defaultTheme:b.a,rootShouldForwardProp:C});t.a=A},function(e,t,n){"use strict";var i=n(100);t.a=i.a},function(e,t,n){"use strict";n.d(t,"a",(function(){return A})),n.d(t,"b",(function(){return C})),n.d(t,"c",(function(){return U})),n.d(t,"d",(function(){return Z})),n.d(t,"e",(function(){return v})),n.d(t,"f",(function(){return y})),n.d(t,"g",(function(){return H})),n.d(t,"h",(function(){return o})),n.d(t,"i",(function(){return z})),n.d(t,"j",(function(){return k}));var i,o,r,a,s,c,l,u,d={},m=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,h=Array.isArray;function f(e,t){for(var n in t)e[n]=t[n];return e}function g(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,n){var o,r,a,s={};for(a in t)"key"==a?o=t[a]:"ref"==a?r=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?i.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return b(e,s,o,r,null)}function b(e,t,n,i,a){var s={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++r:a,__i:-1,__u:0};return null==a&&null!=o.vnode&&o.vnode(s),s}function y(){return{current:null}}function C(e){return e.children}function A(e,t){this.props=e,this.context=t}function S(e,t){if(null==t)return e.__?S(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?S(e):null}function w(e,t,n){var i,r=e.__v,a=r.__e,s=e.__P;if(s)return(i=f({},r)).__v=r.__v+1,o.vnode&&o.vnode(i),j(s,i,r,e.__n,void 0!==s.ownerSVGElement,32&r.__u?[a]:null,t,null==a?S(r):a,!!(32&r.__u),n),i.__v=r.__v,i.__.__k[i.__i]=i,i.__d=void 0,i.__e!=a&&x(i),i}function x(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return x(e)}}function E(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!O.__r++||s!==o.debounceRendering)&&((s=o.debounceRendering)||c)(O)}function O(){var e,t,n,i=[],r=[];for(a.sort(l);e=a.shift();)e.__d&&(n=a.length,t=w(e,i,r)||t,0===n||a.length>n?(M(i,t,r),r.length=i.length=0,t=void 0,a.sort(l)):t&&o.__c&&o.__c(t,m));t&&M(i,t,r),O.__r=0}function D(e,t,n,i,o,r,a,s,c,l,u){var p,h,f,g,v,b=i&&i.__k||m,y=t.length;for(n.__d=c,T(n,t,b),c=n.__d,p=0;p<y;p++)null!=(f=n.__k[p])&&"boolean"!=typeof f&&"function"!=typeof f&&(h=-1===f.__i?d:b[f.__i]||d,f.__i=p,j(e,f,h,o,r,a,s,c,l,u),g=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&N(h.ref,null,f),u.push(f.ref,f.__c||g,f)),null==v&&null!=g&&(v=g),65536&f.__u||h.__k===f.__k?c=B(f,c,e):"function"==typeof f.type&&void 0!==f.__d?c=f.__d:g&&(c=g.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=c,n.__e=v}function T(e,t,n){var i,o,r,a,s,c=t.length,l=n.length,u=l,d=0;for(e.__k=[],i=0;i<c;i++)null!=(o=e.__k[i]=null==(o=t[i])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?b(null,o,null,null,o):h(o)?b(C,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?b(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=I(o,n,a=i+d,u),o.__i=s,r=null,-1!==s&&(u--,(r=n[s])&&(r.__u|=131072)),null==r||null===r.__v?(-1==s&&d--,"function"!=typeof o.type&&(o.__u|=65536)):s!==a&&(s===a+1?d++:s>a?u>c-a?d+=s-a:d--:d=s<a&&s==a-1?s-a:0,s!==i+d&&(o.__u|=65536))):(r=n[i])&&null==r.key&&r.__e&&0==(131072&r.__u)&&(r.__e==e.__d&&(e.__d=S(r)),V(r,r,!1),n[i]=null,u--);if(u)for(i=0;i<l;i++)null!=(r=n[i])&&0==(131072&r.__u)&&(r.__e==e.__d&&(e.__d=S(r)),V(r,r))}function B(e,t,n){var i,o;if("function"==typeof e.type){for(i=e.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=e,t=B(i[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function k(e,t){return t=t||[],null==e||"boolean"==typeof e||(h(e)?e.some((function(e){k(e,t)})):t.push(e)),t}function I(e,t,n,i){var o=e.key,r=e.type,a=n-1,s=n+1,c=t[n];if(null===c||c&&o==c.key&&r===c.type)return n;if(i>(null!=c&&0==(131072&c.__u)?1:0))for(;a>=0||s<t.length;){if(a>=0){if((c=t[a])&&0==(131072&c.__u)&&o==c.key&&r===c.type)return a;a--}if(s<t.length){if((c=t[s])&&0==(131072&c.__u)&&o==c.key&&r===c.type)return s;s++}}return-1}function P(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||p.test(t)?n:n+"px"}function L(e,t,n,i,o){var r;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||P(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||P(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])r=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=n,n?i?n.u=i.u:(n.u=Date.now(),e.addEventListener(t,r?_:R,r)):e.removeEventListener(t,r?_:R,r);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function R(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(o.event?o.event(e):e)}}function _(e){if(this.l)return this.l[e.type+!0](o.event?o.event(e):e)}function j(e,t,n,i,r,a,s,c,l,u){var d,m,p,g,v,b,y,S,w,x,E,O,T,B,k,I=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),a=[c=t.__e=n.__e]),(d=o.__b)&&d(t);e:if("function"==typeof I)try{if(S=t.props,w=(d=I.contextType)&&i[d.__c],x=d?w?w.props.value:d.__:i,n.__c?y=(m=t.__c=n.__c).__=m.__E:("prototype"in I&&I.prototype.render?t.__c=m=new I(S,x):(t.__c=m=new A(S,x),m.constructor=I,m.render=W),w&&w.sub(m),m.props=S,m.state||(m.state={}),m.context=x,m.__n=i,p=m.__d=!0,m.__h=[],m._sb=[]),null==m.__s&&(m.__s=m.state),null!=I.getDerivedStateFromProps&&(m.__s==m.state&&(m.__s=f({},m.__s)),f(m.__s,I.getDerivedStateFromProps(S,m.__s))),g=m.props,v=m.state,m.__v=t,p)null==I.getDerivedStateFromProps&&null!=m.componentWillMount&&m.componentWillMount(),null!=m.componentDidMount&&m.__h.push(m.componentDidMount);else{if(null==I.getDerivedStateFromProps&&S!==g&&null!=m.componentWillReceiveProps&&m.componentWillReceiveProps(S,x),!m.__e&&(null!=m.shouldComponentUpdate&&!1===m.shouldComponentUpdate(S,m.__s,x)||t.__v===n.__v)){for(t.__v!==n.__v&&(m.props=S,m.state=m.__s,m.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),E=0;E<m._sb.length;E++)m.__h.push(m._sb[E]);m._sb=[],m.__h.length&&s.push(m);break e}null!=m.componentWillUpdate&&m.componentWillUpdate(S,m.__s,x),null!=m.componentDidUpdate&&m.__h.push((function(){m.componentDidUpdate(g,v,b)}))}if(m.context=x,m.props=S,m.__P=e,m.__e=!1,O=o.__r,T=0,"prototype"in I&&I.prototype.render){for(m.state=m.__s,m.__d=!1,O&&O(t),d=m.render(m.props,m.state,m.context),B=0;B<m._sb.length;B++)m.__h.push(m._sb[B]);m._sb=[]}else do{m.__d=!1,O&&O(t),d=m.render(m.props,m.state,m.context),m.state=m.__s}while(m.__d&&++T<25);m.state=m.__s,null!=m.getChildContext&&(i=f(f({},i),m.getChildContext())),p||null==m.getSnapshotBeforeUpdate||(b=m.getSnapshotBeforeUpdate(g,v)),D(e,h(k=null!=d&&d.type===C&&null==d.key?d.props.children:d)?k:[k],t,n,i,r,a,s,c,l,u),m.base=t.__e,t.__u&=-161,m.__h.length&&s.push(m),y&&(m.__E=m.__=null)}catch(e){t.__v=null,l||null!=a?(t.__e=c,t.__u|=l?160:32,a[a.indexOf(c)]=null):(t.__e=n.__e,t.__k=n.__k),o.__e(e,t,n)}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=F(n.__e,t,n,i,r,a,s,l,u);(d=o.diffed)&&d(t)}function M(e,t,n){for(var i=0;i<n.length;i++)N(n[i],n[++i],n[++i]);o.__c&&o.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){o.__e(e,t.__v)}}))}function F(e,t,n,o,r,a,s,c,l){var u,m,p,f,v,b,y,C=n.props,A=t.props,w=t.type;if("svg"===w&&(r=!0),null!=a)for(u=0;u<a.length;u++)if((v=a[u])&&"setAttribute"in v==!!w&&(w?v.localName===w:3===v.nodeType)){e=v,a[u]=null;break}if(null==e){if(null===w)return document.createTextNode(A);e=r?document.createElementNS("http://www.w3.org/2000/svg",w):document.createElement(w,A.is&&A),a=null,c=!1}if(null===w)C===A||c&&e.data===A||(e.data=A);else{if(a=a&&i.call(e.childNodes),C=n.props||d,!c&&null!=a)for(C={},u=0;u<e.attributes.length;u++)C[(v=e.attributes[u]).name]=v.value;for(u in C)v=C[u],"children"==u||("dangerouslySetInnerHTML"==u?p=v:"key"===u||u in A||L(e,u,null,v,r));for(u in A)v=A[u],"children"==u?f=v:"dangerouslySetInnerHTML"==u?m=v:"value"==u?b=v:"checked"==u?y=v:"key"===u||c&&"function"!=typeof v||C[u]===v||L(e,u,v,C[u],r);if(m)c||p&&(m.__html===p.__html||m.__html===e.innerHTML)||(e.innerHTML=m.__html),t.__k=[];else if(p&&(e.innerHTML=""),D(e,h(f)?f:[f],t,n,o,r&&"foreignObject"!==w,a,s,a?a[0]:n.__k&&S(n,0),c,l),null!=a)for(u=a.length;u--;)null!=a[u]&&g(a[u]);c||(u="value",void 0!==b&&(b!==e[u]||"progress"===w&&!b||"option"===w&&b!==C[u])&&L(e,u,b,C[u],!1),u="checked",void 0!==y&&y!==e[u]&&L(e,u,y,C[u],!1))}return e}function N(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,n)}}function V(e,t,n){var i,r;if(o.unmount&&o.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||N(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){o.__e(e,t)}i.base=i.__P=null,e.__c=void 0}if(i=e.__k)for(r=0;r<i.length;r++)i[r]&&V(i[r],t,n||"function"!=typeof e.type);n||null==e.__e||g(e.__e),e.__=e.__e=e.__d=void 0}function W(e,t,n){return this.constructor(e,n)}function z(e,t,n){var r,a,s,c;o.__&&o.__(e,t),a=(r="function"==typeof n)?null:n&&n.__k||t.__k,s=[],c=[],j(t,e=(!r&&n||t).__k=v(C,null,[e]),a||d,d,void 0!==t.ownerSVGElement,!r&&n?[n]:a?null:t.firstChild?i.call(t.childNodes):null,s,!r&&n?n:a?a.__e:t.firstChild,r,c),e.__d=void 0,M(s,e,c)}function H(e,t){z(e,t,H)}function U(e,t,n){var o,r,a,s,c=f({},e.props);for(a in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)"key"==a?o=t[a]:"ref"==a?r=t[a]:c[a]=void 0===t[a]&&void 0!==s?s[a]:t[a];return arguments.length>2&&(c.children=arguments.length>3?i.call(arguments,2):n),b(e.type,c,o||e.key,r||e.ref,null)}function Z(e,t){var n={__c:t="__cC"+u++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,i;return this.getChildContext||(n=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,E(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}i=m.slice,o={__e:function(e,t,n,i){for(var o,r,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((r=o.constructor)&&null!=r.getDerivedStateFromError&&(o.setState(r.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,i||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},r=0,A.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=f({},this.state),"function"==typeof e&&(e=e(f({},n),this.props)),e&&f(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),E(this))},A.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),E(this))},A.prototype.render=C,a=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(e,t){return e.__v.__b-t.__v.__b},O.__r=0,u=0},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));var i=n(0),o=n(5);function r(e){return{color:o.b.getColorValue(e.color),textShadow:e.useShadow?"1px 1px 2px":""}}function a(e){return e.config.visible?i.default.createElement("span",{ref:e.innerRef,style:Object.assign(Object.assign({},e.style),r(e.config))},o.b.getLocalizedText(e.config.text,e.replacementArgs)):null}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n(154),o=n(65),r=n(46);function a({props:e,name:t}){return Object(i.a)({props:e,name:t,defaultTheme:o.a,themeId:r.a})}},function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return b})),n.d(t,"e",(function(){return y}));var i=n(35),o=n(25),r=n(51);const a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},c={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},l=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!c[e])return[e];e=c[e]}const[t,n]=e.split(""),i=a[t],o=s[n]||"";return Array.isArray(o)?o.map((e=>i+e)):[i+o]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],m=[...u,...d];function p(e,t,n,i){var r;const a=null!=(r=Object(o.b)(e,t,!1))?r:n;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>{}}function h(e){return p(e,"spacing",8)}function f(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function g(e,t,n,o){if(-1===t.indexOf(n))return null;const r=function(e,t){return n=>e.reduce(((e,i)=>(e[i]=f(t,n),e)),{})}(l(n),o),a=e[n];return Object(i.b)(e,a,r)}function v(e,t){const n=h(e.theme);return Object.keys(e).map((i=>g(e,t,i,n))).reduce(r.a,{})}function b(e){return v(e,u)}function y(e){return v(e,d)}function C(e){return v(e,m)}b.propTypes={},b.filterProps=u,y.propTypes={},y.filterProps=d,C.propTypes={},C.filterProps=m},,,,function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"f",(function(){return l})),n.d(t,"g",(function(){return u})),n.d(t,"a",(function(){return d}));var i=n(2),o=n(7);class r extends o.a{constructor(e={}){super(),this.visible=!0,this.deselected=new i.g({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:2,cornerRadius:2}),this.selected=new i.g({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:2,cornerRadius:2}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.deselected&&(this.deselected=new i.g(e.deselected)),void 0!==e.selected&&(this.selected=new i.g(e.selected))}}class a extends o.a{constructor(e={}){super(),this.imageVisible=!0,this.titleSelected=new i.j({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),this.subtitleSelected=new i.j({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.titleDeselected=new i.j({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),this.subtitleDeselected=new i.j({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.backgroundSelected=new i.g({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:0,cornerRadius:10}),this.backgroundDeselected=new i.g({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:0,cornerRadius:10}),void 0!==e.imageVisible&&(this.imageVisible=e.imageVisible),void 0!==e.titleSelected&&(this.titleSelected=new i.j(e.titleSelected)),void 0!==e.subtitleSelected&&(this.subtitleSelected=new i.j(e.subtitleSelected)),void 0!==e.titleDeselected&&(this.titleDeselected=new i.j(e.titleDeselected)),void 0!==e.subtitleDeselected&&(this.subtitleDeselected=new i.j(e.subtitleDeselected)),void 0!==e.backgroundSelected&&(this.backgroundSelected=new i.g(e.backgroundSelected)),void 0!==e.backgroundDeselected&&(this.backgroundDeselected=new i.g(e.backgroundDeselected))}}class s extends o.a{constructor(e={}){if(super(),this.visible=!0,this.foregroundColor="?sbColorOnSurface",void 0!==e.visible&&(this.visible=e.visible),void 0===e.background)throw new Error("background must be present in constructor argument");this.background=new i.a(e.background),void 0!==e.foregroundColor&&(this.foregroundColor=e.foregroundColor)}}class c extends o.a{constructor(e={}){super(),this.visible=!1,this.counterBadge=new s({background:new i.a({}),foregroundColor:"?sbColorOnSurface"}),this.automaticSelectionEnabled=!1,this.barcodeItemInfoPosition="BELOW",this.polygon=new r({visible:!0,deselected:new i.g({}),selected:new i.g({})}),this.barcodeItemConfiguration=new a({imageVisible:!0,titleSelected:new i.j({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleSelected:new i.j({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),titleDeselected:new i.j({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleDeselected:new i.j({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),backgroundSelected:new i.g({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:1,cornerRadius:5}),backgroundDeselected:new i.g({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:1,cornerRadius:5})}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.counterBadge&&(this.counterBadge=new s(e.counterBadge)),void 0!==e.automaticSelectionEnabled&&(this.automaticSelectionEnabled=e.automaticSelectionEnabled),void 0!==e.barcodeItemInfoPosition&&(this.barcodeItemInfoPosition=e.barcodeItemInfoPosition),void 0!==e.polygon&&(this.polygon=new r(e.polygon)),void 0!==e.barcodeItemConfiguration&&(this.barcodeItemConfiguration=new a(e.barcodeItemConfiguration))}}class l extends o.a{constructor(e={}){super(),this.visible=!0,this.partiallyScanned=new i.g({strokeColor:"?sbColorWarning",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),this.rejected=new i.g({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),this.completed=new i.g({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.partiallyScanned&&(this.partiallyScanned=new i.g(e.partiallyScanned)),void 0!==e.rejected&&(this.rejected=new i.g(e.rejected)),void 0!==e.completed&&(this.completed=new i.g(e.completed))}}class u extends o.a{constructor(e={}){super(),this.partiallyScanned=new s({visible:!0,background:new i.a({strokeColor:"#FFFFFF30",fillColor:"?sbColorWarning",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),this.rejected=new s({visible:!0,background:new i.a({strokeColor:"#FFFFFF30",fillColor:"?sbColorNegative",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),this.completed=new s({visible:!0,background:new i.a({strokeColor:"#FFFFFF30",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),void 0!==e.partiallyScanned&&(this.partiallyScanned=new s(e.partiallyScanned)),void 0!==e.rejected&&(this.rejected=new s(e.rejected)),void 0!==e.completed&&(this.completed=new s(e.completed))}}class d extends o.a{constructor(e={}){super(),this.visible=!1,this.automaticSelectionEnabled=!0,this.polygon=new l({}),this.badge=new u({}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.automaticSelectionEnabled&&(this.automaticSelectionEnabled=e.automaticSelectionEnabled),void 0!==e.polygon&&(this.polygon=new l(e.polygon)),void 0!==e.badge&&(this.badge=new u(e.badge))}}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(10);class o{constructor(e,t){this.width=e,this.height=t}isPortrait(){return this.height>this.width}ratio(e){return e?this.height/this.width:this.width/this.height}ratioDiff(e,t){return this.ratio(t)/e.ratio(t)}static isEmpty(e){return!e||(0===e.width||0===e.height)}static toPolygon(e){return[new i.a(0,0),new i.a(e.width,0),new i.a(e.width,e.height),new i.a(0,e.height)]}static fromHtmlElement(e){return e?new o(e.clientWidth,e.clientHeight):new o(0,0)}static fromJson(e){return new o(e.width,e.height)}static subtractFrom(e,t){return new o(e.width-t,e.height-t)}static empty(){return new o(0,0)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a}));var i=n(100),o=n(35);function r(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function a(e,t,n,i=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||i:r(e,n)||i,t&&(o=t(o,i,e)),o}t.a=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:c}=e,l=e=>{if(null==e[t])return null;const l=e[t],u=r(e.theme,s)||{};return Object(o.b)(e,l,(e=>{let o=a(u,c,e);return e===o&&"string"==typeof e&&(o=a(u,c,`${t}${"default"===e?"":Object(i.a)(e)}`,e)),!1===n?o:{[n]:o}}))};return l.propTypes={},l.filterProps=[t],l}},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.createSvgIcon}});var i=n(106)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return d}));var i=n(0),o=n(89);const r=n(33).c.svg`
3
3
  animation: rotate 2s linear infinite;
4
4
  width: 50px;
5
5
  height: 50px;
@@ -28,7 +28,7 @@
28
28
  stroke-dashoffset: -120;
29
29
  }
30
30
  }
31
- `;var a=t=>r.default.createElement(i,{viewBox:"0 0 50 50"},r.default.createElement("circle",{className:"path",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"3",stroke:t.color||"black"})),s=n(46),l=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};class c{}class u{constructor(){this.videoReady=!1,this.sdkReady=!1}}class d extends r.default.Component{constructor(t){super(t),this.onVideoReady=()=>{this.setState({videoReady:!0},(()=>{const{onSuccess:t}=this.props;t&&t(this)}))},this.onVideoError=t=>{if(!0===this.state.videoReady){const{onError:e}=this.props.configuration;e?e(t):console.error(t)}else{const{onFailure:e}=this.props;e&&e(t),this.dispose()}},this.state=new u,this.bridge.awaitInitialized().then((()=>{this.setState({sdkReady:!0})}))}get bridge(){return o.a.instance.bridge}dispose(){const{container:t}=this.props;t&&Object(r.render)(null,t)}componentDidMount(){this.disposed=!1}componentWillUnmount(){this.disposed=!0}isSupported(){return"localhost"===location.hostname||"https:"===location.protocol}swapCameraFacing(t){this.camera.swapCameraFacing(t)}switchCamera(t,e){return l(this,void 0,void 0,(function*(){this.camera.switchCamera(t,e)}))}getActiveCameraInfo(){return this.camera.getActiveCameraInfo()}fetchAvailableCameras(){return s.a.INSTANCE.load()}renderSpinner(t){return this.state.videoReady&&this.state.sdkReady?null:r.default.createElement("div",{"data-sb-spinner":"1",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:500}},r.default.createElement(a,{color:t}))}setTorchState(t){return this.camera.setTorchState(t)}}d.DEFAULT_DETECTION_RESOLUTION=600,d.DETECTION_RESULTION_4K=3840},,,,function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return Mt})),n.d(e,"b",(function(){return Ut})),n.d(e,"c",(function(){return Gt})),n.d(e,"d",(function(){return Yt}));var r=n(3),o=(n(109),n(0)),i=n(97),a=n.n(i),s=n(52),l=n(98),c="undefined"!=typeof t&&void 0!==t.env&&(t.env.REACT_APP_SC_ATTR||t.env.SC_ATTR)||"data-styled",u="active",d="data-styled-version",h="6.1.8",p="/*!sc*/\n",f="undefined"!=typeof window&&"HTMLElement"in window,m=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof t&&void 0!==t.env&&void 0!==t.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==t.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==t.env.REACT_APP_SC_DISABLE_SPEEDY&&t.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof t&&void 0!==t.env&&void 0!==t.env.SC_DISABLE_SPEEDY&&""!==t.env.SC_DISABLE_SPEEDY&&("false"!==t.env.SC_DISABLE_SPEEDY&&t.env.SC_DISABLE_SPEEDY)),g=(new Set,Object.freeze([])),v=Object.freeze({});function b(t,e,n){return void 0===n&&(n=v),t.theme!==n.theme&&t.theme||e||n.theme}var y=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),A=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,C=/(^-|-$)/g;function S(t){return t.replace(A,"-").replace(C,"")}var x=/(a)(d)/gi,w=function(t){return String.fromCharCode(t+(t>25?39:97))};function O(t){var e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=w(e%52)+n;return(w(e%52)+n).replace(x,"$1-$2")}var E,L=function(t,e){for(var n=e.length;n;)t=33*t^e.charCodeAt(--n);return t},j=function(t){return L(5381,t)};function k(t){return O(j(t)>>>0)}function _(t){return t.displayName||t.name||"Component"}function T(t){return"string"==typeof t&&!0}var P="function"==typeof Symbol&&Symbol.for,R=P?Symbol.for("react.memo"):60115,D=P?Symbol.for("react.forward_ref"):60112,B={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},F={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},I={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},M=((E={})[D]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},E[R]=I,E);function W(t){return("type"in(e=t)&&e.type.$$typeof)===R?I:"$$typeof"in t?M[t.$$typeof]:B;var e}var z=Object.defineProperty,N=Object.getOwnPropertyNames,V=Object.getOwnPropertySymbols,U=Object.getOwnPropertyDescriptor,H=Object.getPrototypeOf,$=Object.prototype;function G(t,e,n){if("string"!=typeof e){if($){var r=H(e);r&&r!==$&&G(t,r,n)}var o=N(e);V&&(o=o.concat(V(e)));for(var i=W(t),a=W(e),s=0;s<o.length;++s){var l=o[s];if(!(l in F||n&&n[l]||a&&l in a||i&&l in i)){var c=U(e,l);try{z(t,l,c)}catch(t){}}}}return t}function Y(t){return"function"==typeof t}function Q(t){return"object"==typeof t&&"styledComponentId"in t}function Z(t,e){return t&&e?"".concat(t," ").concat(e):t||e||""}function X(t,e){if(0===t.length)return"";for(var n=t[0],r=1;r<t.length;r++)n+=e?e+t[r]:t[r];return n}function q(t){return null!==t&&"object"==typeof t&&t.constructor.name===Object.name&&!("props"in t&&t.$$typeof)}function K(t,e,n){if(void 0===n&&(n=!1),!n&&!q(t)&&!Array.isArray(t))return e;if(Array.isArray(e))for(var r=0;r<e.length;r++)t[r]=K(t[r],e[r]);else if(q(e))for(var r in e)t[r]=K(t[r],e[r]);return t}function J(t,e){Object.defineProperty(t,"toString",{value:e})}function tt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(e.length>0?" Args: ".concat(e.join(", ")):""))}var et=function(){function t(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return t.prototype.indexOfGroup=function(t){for(var e=0,n=0;n<t;n++)e+=this.groupSizes[n];return e},t.prototype.insertRules=function(t,e){if(t>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;t>=o;)if((o<<=1)<0)throw tt(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(t+1),s=(i=0,e.length);i<s;i++)this.tag.insertRule(a,e[i])&&(this.groupSizes[t]++,a++)},t.prototype.clearGroup=function(t){if(t<this.length){var e=this.groupSizes[t],n=this.indexOfGroup(t),r=n+e;this.groupSizes[t]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.prototype.getGroup=function(t){var e="";if(t>=this.length||0===this.groupSizes[t])return e;for(var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n,i=r;i<o;i++)e+="".concat(this.tag.getRule(i)).concat(p);return e},t}(),nt=new Map,rt=new Map,ot=1,it=function(t){if(nt.has(t))return nt.get(t);for(;rt.has(ot);)ot++;var e=ot++;return nt.set(t,e),rt.set(e,t),e},at=function(t,e){ot=e+1,nt.set(t,e),rt.set(e,t)},st="style[".concat(c,"][").concat(d,'="').concat(h,'"]'),lt=new RegExp("^".concat(c,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ct=function(t,e,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&t.registerName(e,r)},ut=function(t,e){for(var n,r=(null!==(n=e.textContent)&&void 0!==n?n:"").split(p),o=[],i=0,a=r.length;i<a;i++){var s=r[i].trim();if(s){var l=s.match(lt);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(at(u,c),ct(t,u,l[3]),t.getTag().insertRules(c,o)),o.length=0}else o.push(s)}}};function dt(){return n.nc}var ht=function(t){var e=document.head,n=t||e,r=document.createElement("style"),o=function(t){var e=Array.from(t.querySelectorAll("style[".concat(c,"]")));return e[e.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(c,u),r.setAttribute(d,h);var a=dt();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},pt=function(){function t(t){this.element=ht(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(t){if(t.sheet)return t.sheet;for(var e=document.styleSheets,n=0,r=e.length;n<r;n++){var o=e[n];if(o.ownerNode===t)return o}throw tt(17)}(this.element),this.length=0}return t.prototype.insertRule=function(t,e){try{return this.sheet.insertRule(e,t),this.length++,!0}catch(t){return!1}},t.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},t.prototype.getRule=function(t){var e=this.sheet.cssRules[t];return e&&e.cssText?e.cssText:""},t}(),ft=function(){function t(t){this.element=ht(t),this.nodes=this.element.childNodes,this.length=0}return t.prototype.insertRule=function(t,e){if(t<=this.length&&t>=0){var n=document.createTextNode(e);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},t.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},t.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},t}(),mt=function(){function t(t){this.rules=[],this.length=0}return t.prototype.insertRule=function(t,e){return t<=this.length&&(this.rules.splice(t,0,e),this.length++,!0)},t.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},t.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},t}(),gt=f,vt={isServer:!f,useCSSOMInjection:!m},bt=function(){function t(t,e,n){void 0===t&&(t=v),void 0===e&&(e={});var o=this;this.options=Object(r.a)(Object(r.a)({},vt),t),this.gs=e,this.names=new Map(n),this.server=!!t.isServer,!this.server&&f&&gt&&(gt=!1,function(t){for(var e=document.querySelectorAll(st),n=0,r=e.length;n<r;n++){var o=e[n];o&&o.getAttribute(c)!==u&&(ut(t,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),J(this,(function(){return function(t){for(var e=t.getTag(),n=e.length,r="",o=function(n){var o=function(t){return rt.get(t)}(n);if(void 0===o)return"continue";var i=t.names.get(o),a=e.getGroup(n);if(void 0===i||0===a.length)return"continue";var s="".concat(c,".g").concat(n,'[id="').concat(o,'"]'),l="";void 0!==i&&i.forEach((function(t){t.length>0&&(l+="".concat(t,","))})),r+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(p)},i=0;i<n;i++)o(i);return r}(o)}))}return t.registerId=function(t){return it(t)},t.prototype.reconstructWithOptions=function(e,n){return void 0===n&&(n=!0),new t(Object(r.a)(Object(r.a)({},this.options),e),this.gs,n&&this.names||void 0)},t.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=(t=function(t){var e=t.useCSSOMInjection,n=t.target;return t.isServer?new mt(n):e?new pt(n):new ft(n)}(this.options),new et(t)));var t},t.prototype.hasNameForId=function(t,e){return this.names.has(t)&&this.names.get(t).has(e)},t.prototype.registerName=function(t,e){if(it(t),this.names.has(t))this.names.get(t).add(e);else{var n=new Set;n.add(e),this.names.set(t,n)}},t.prototype.insertRules=function(t,e,n){this.registerName(t,e),this.getTag().insertRules(it(t),n)},t.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},t.prototype.clearRules=function(t){this.getTag().clearGroup(it(t)),this.clearNames(t)},t.prototype.clearTag=function(){this.tag=void 0},t}(),yt=/&/g,At=/^\s*\/\/.*$/gm;function Ct(t,e){return t.map((function(t){return"rule"===t.type&&(t.value="".concat(e," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(e," ")),t.props=t.props.map((function(t){return"".concat(e," ").concat(t)}))),Array.isArray(t.children)&&"@keyframes"!==t.type&&(t.children=Ct(t.children,e)),t}))}function St(t){var e,n,r,o=void 0===t?v:t,i=o.options,a=void 0===i?v:i,l=o.plugins,c=void 0===l?g:l,u=function(t,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(e):t},d=c.slice();d.push((function(t){t.type===s.a&&t.value.includes("&")&&(t.props[0]=t.props[0].replace(yt,n).replace(r,u))})),a.prefix&&d.push(s.d),d.push(s.g);var h=function(t,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),e=l,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var c=t.replace(At,""),u=s.b(i||o?"".concat(i," ").concat(o," { ").concat(c," }"):c);a.namespace&&(u=Ct(u,a.namespace));var h=[];return s.f(u,s.c(d.concat(s.e((function(t){return h.push(t)}))))),h};return h.hash=c.length?c.reduce((function(t,e){return e.name||tt(15),L(t,e.name)}),5381).toString():"",h}var xt=new bt,wt=St(),Ot=o.default.createContext({shouldForwardProp:void 0,styleSheet:xt,stylis:wt}),Et=(Ot.Consumer,o.default.createContext(void 0));function Lt(){return Object(o.useContext)(Ot)}function jt(t){var e=Object(o.useState)(t.stylisPlugins),n=e[0],r=e[1],i=Lt().styleSheet,s=Object(o.useMemo)((function(){var e=i;return t.sheet?e=t.sheet:t.target&&(e=e.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e}),[t.disableCSSOMInjection,t.sheet,t.target,i]),l=Object(o.useMemo)((function(){return St({options:{namespace:t.namespace,prefix:t.enableVendorPrefixes},plugins:n})}),[t.enableVendorPrefixes,t.namespace,n]);Object(o.useEffect)((function(){a()(n,t.stylisPlugins)||r(t.stylisPlugins)}),[t.stylisPlugins]);var c=Object(o.useMemo)((function(){return{shouldForwardProp:t.shouldForwardProp,styleSheet:s,stylis:l}}),[t.shouldForwardProp,s,l]);return o.default.createElement(Ot.Provider,{value:c},o.default.createElement(Et.Provider,{value:l},t.children))}var kt=function(){function t(t,e){var n=this;this.inject=function(t,e){void 0===e&&(e=wt);var r=n.name+e.hash;t.hasNameForId(n.id,r)||t.insertRules(n.id,r,e(n.rules,r,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=e,J(this,(function(){throw tt(12,String(n.name))}))}return t.prototype.getName=function(t){return void 0===t&&(t=wt),this.name+t.hash},t}(),_t=function(t){return t>="A"&&t<="Z"};function Tt(t){for(var e="",n=0;n<t.length;n++){var r=t[n];if(1===n&&"-"===r&&"-"===t[0])return t;_t(r)?e+="-"+r.toLowerCase():e+=r}return e.startsWith("ms-")?"-"+e:e}var Pt=function(t){return null==t||!1===t||""===t},Rt=function(t){var e,n,o=[];for(var i in t){var a=t[i];t.hasOwnProperty(i)&&!Pt(a)&&(Array.isArray(a)&&a.isCss||Y(a)?o.push("".concat(Tt(i),":"),a,";"):q(a)?o.push.apply(o,Object(r.e)(Object(r.e)(["".concat(i," {")],Rt(a),!1),["}"],!1)):o.push("".concat(Tt(i),": ").concat((e=i,null==(n=a)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||e in l.a||e.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return o};function Dt(t,e,n,r){return Pt(t)?[]:Q(t)?[".".concat(t.styledComponentId)]:Y(t)?!Y(o=t)||o.prototype&&o.prototype.isReactComponent||!e?[t]:Dt(t(e),e,n,r):t instanceof kt?n?(t.inject(n,r),[t.getName(r)]):[t]:q(t)?Rt(t):Array.isArray(t)?Array.prototype.concat.apply(g,t.map((function(t){return Dt(t,e,n,r)}))):[t.toString()];var o}function Bt(t){for(var e=0;e<t.length;e+=1){var n=t[e];if(Y(n)&&!Q(n))return!1}return!0}var Ft=j(h),It=function(){function t(t,e,n){this.rules=t,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Bt(t),this.componentId=e,this.baseHash=L(Ft,e),this.baseStyle=n,bt.registerId(e)}return t.prototype.generateAndInjectStyles=function(t,e,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,e,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&e.hasNameForId(this.componentId,this.staticRulesId))r=Z(r,this.staticRulesId);else{var o=X(Dt(this.rules,t,e,n)),i=O(L(this.baseHash,o)>>>0);if(!e.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);e.insertRules(this.componentId,i,a)}r=Z(r,i),this.staticRulesId=i}else{for(var s=L(this.baseHash,n.hash),l="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)l+=u;else if(u){var d=X(Dt(u,t,e,n));s=L(s,d+c),l+=d}}if(l){var h=O(s>>>0);e.hasNameForId(this.componentId,h)||e.insertRules(this.componentId,h,n(l,".".concat(h),void 0,this.componentId)),r=Z(r,h)}}return r},t}(),Mt=o.default.createContext(void 0);Mt.Consumer;var Wt={};new Set;function zt(t,e,n){var i=Q(t),a=t,s=!T(t),l=e.attrs,c=void 0===l?g:l,u=e.componentId,d=void 0===u?function(t,e){var n="string"!=typeof t?"sc":S(t);Wt[n]=(Wt[n]||0)+1;var r="".concat(n,"-").concat(k(h+n+Wt[n]));return e?"".concat(e,"-").concat(r):r}(e.displayName,e.parentComponentId):u,p=e.displayName,f=void 0===p?function(t){return T(t)?"styled.".concat(t):"Styled(".concat(_(t),")")}(t):p,m=e.displayName&&e.componentId?"".concat(S(e.displayName),"-").concat(e.componentId):e.componentId||d,A=i&&a.attrs?a.attrs.concat(c).filter(Boolean):c,C=e.shouldForwardProp;if(i&&a.shouldForwardProp){var x=a.shouldForwardProp;if(e.shouldForwardProp){var w=e.shouldForwardProp;C=function(t,e){return x(t,e)&&w(t,e)}}else C=x}var O=new It(n,m,i?a.componentStyle:void 0);function E(t,e){return function(t,e,n){var i=t.attrs,a=t.componentStyle,s=t.defaultProps,l=t.foldedComponentIds,c=t.styledComponentId,u=t.target,d=o.default.useContext(Mt),h=Lt(),p=t.shouldForwardProp||h.shouldForwardProp,f=b(e,d,s)||v,m=function(t,e,n){for(var o,i=Object(r.a)(Object(r.a)({},e),{className:void 0,theme:n}),a=0;a<t.length;a+=1){var s=Y(o=t[a])?o(i):o;for(var l in s)i[l]="className"===l?Z(i[l],s[l]):"style"===l?Object(r.a)(Object(r.a)({},i[l]),s[l]):s[l]}return e.className&&(i.className=Z(i.className,e.className)),i}(i,e,f),g=m.as||u,A={};for(var C in m)void 0===m[C]||"$"===C[0]||"as"===C||"theme"===C&&m.theme===f||("forwardedAs"===C?A.as=m.forwardedAs:p&&!p(C,g)||(A[C]=m[C]));var S=function(t,e){var n=Lt();return t.generateAndInjectStyles(e,n.styleSheet,n.stylis)}(a,m),x=Z(l,c);return S&&(x+=" "+S),m.className&&(x+=" "+m.className),A[T(g)&&!y.has(g)?"class":"className"]=x,A.ref=n,Object(o.createElement)(g,A)}(L,t,e)}E.displayName=f;var L=o.default.forwardRef(E);return L.attrs=A,L.componentStyle=O,L.displayName=f,L.shouldForwardProp=C,L.foldedComponentIds=i?Z(a.foldedComponentIds,a.styledComponentId):"",L.styledComponentId=m,L.target=i?a.target:t,Object.defineProperty(L,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=i?function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0,o=e;r<o.length;r++)K(t,o[r],!0);return t}({},a.defaultProps,t):t}}),J(L,(function(){return".".concat(L.styledComponentId)})),s&&G(L,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),L}function Nt(t,e){for(var n=[t[0]],r=0,o=e.length;r<o;r+=1)n.push(e[r],t[r+1]);return n}var Vt=function(t){return Object.assign(t,{isCss:!0})};function Ut(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(Y(t)||q(t))return Vt(Dt(Nt(g,Object(r.e)([t],e,!0))));var o=t;return 0===e.length&&1===o.length&&"string"==typeof o[0]?Dt(o):Vt(Dt(Nt(o,e)))}function Ht(t,e,n){if(void 0===n&&(n=v),!e)throw tt(1,e);var o=function(o){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return t(e,n,Ut.apply(void 0,Object(r.e)([o],i,!1)))};return o.attrs=function(o){return Ht(t,e,Object(r.a)(Object(r.a)({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},o.withConfig=function(o){return Ht(t,e,Object(r.a)(Object(r.a)({},n),o))},o}var $t=function(t){return Ht(zt,t)},Gt=$t;y.forEach((function(t){Gt[t]=$t(t)}));!function(){function t(t,e){this.rules=t,this.componentId=e,this.isStatic=Bt(t),bt.registerId(this.componentId+1)}t.prototype.createStyles=function(t,e,n,r){var o=r(X(Dt(this.rules,e,n,r)),""),i=this.componentId+t;n.insertRules(i,i,o)},t.prototype.removeStyles=function(t,e){e.clearRules(this.componentId+t)},t.prototype.renderStyles=function(t,e,n,r){t>2&&bt.registerId(this.componentId+t),this.removeStyles(t,n),this.createStyles(t,e,n,r)}}();function Yt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var o=X(Ut.apply(void 0,Object(r.e)([t],e,!1))),i=k(o);return new kt(i,o)}(function(){function t(){var t=this;this._emitSheetCSS=function(){var e=t.instance.toString(),n=dt(),r=X([n&&'nonce="'.concat(n,'"'),"".concat(c,'="true"'),"".concat(d,'="').concat(h,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(e,"</style>")},this.getStyleTags=function(){if(t.sealed)throw tt(2);return t._emitSheetCSS()},this.getStyleElement=function(){var e;if(t.sealed)throw tt(2);var n=((e={})[c]="",e[d]=h,e.dangerouslySetInnerHTML={__html:t.instance.toString()},e),i=dt();return i&&(n.nonce=i),[o.default.createElement("style",Object(r.a)({},n,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new bt({isServer:!0}),this.sealed=!1}t.prototype.collectStyles=function(t){if(this.sealed)throw tt(2);return o.default.createElement(jt,{sheet:this.instance},t)},t.prototype.interleaveWithNodeStream=function(t){throw tt(3)}})(),"__sc-".concat(c,"__")}).call(this,n(92))},function(t,e,n){"use strict";n.r(e),n.d(e,"SingleScanningMode",(function(){return c})),n.d(e,"Resolution",(function(){return u})),n.d(e,"CameraConfiguration",(function(){return d})),n.d(e,"TopBarConfiguration",(function(){return p.a})),n.d(e,"ActionBarConfiguration",(function(){return f})),n.d(e,"BarcodeUseCase",(function(){return h})),n.d(e,"Palette",(function(){return o.f})),n.d(e,"StyledText",(function(){return o.j})),n.d(e,"IconStyle",(function(){return o.e})),n.d(e,"PolygonStyle",(function(){return o.g})),n.d(e,"BackgroundStyle",(function(){return o.a})),n.d(e,"ForegroundStyle",(function(){return o.d})),n.d(e,"RoundButton",(function(){return o.h})),n.d(e,"BadgedButton",(function(){return o.b})),n.d(e,"ButtonConfiguration",(function(){return o.c})),n.d(e,"Sound",(function(){return o.i})),n.d(e,"Vibration",(function(){return o.l})),n.d(e,"Timeouts",(function(){return o.k})),n.d(e,"ViewFinderConfiguration",(function(){return O})),n.d(e,"FinderStyle",(function(){return x})),n.d(e,"FinderCorneredStyle",(function(){return E})),n.d(e,"FinderStrokedStyle",(function(){return L})),n.d(e,"UserGuidanceConfiguration",(function(){return j})),n.d(e,"BarcodeItemErrorState",(function(){return a})),n.d(e,"BarcodeMappedData",(function(){return s})),n.d(e,"BarcodeInfoMapping",(function(){return l})),n.d(e,"ExpectedBarcode",(function(){return C})),n.d(e,"FindAndPickScanningMode",(function(){return S})),n.d(e,"BarcodeTextLocalization",(function(){return k})),n.d(e,"BarcodeRecognizerConfiguration",(function(){return _})),n.d(e,"ArOverlayPolygonConfiguration",(function(){return r.c})),n.d(e,"BarcodeItemConfiguration",(function(){return r.e})),n.d(e,"BadgeStyle",(function(){return r.d})),n.d(e,"ArOverlayGeneralConfiguration",(function(){return r.b})),n.d(e,"FindAndPickArOverlayPolygonConfiguration",(function(){return r.f})),n.d(e,"FindAndPickBadgeConfiguration",(function(){return r.g})),n.d(e,"ArOverlayFindAndPickConfiguration",(function(){return r.a})),n.d(e,"BarcodeScannerConfiguration",(function(){return P})),n.d(e,"BarcodeScannerUIItem",(function(){return D})),n.d(e,"BarcodeScannerUIResult",(function(){return B})),n.d(e,"OcrResult",(function(){return F.OcrResult})),n.d(e,"FieldParsedData",(function(){return F.FieldParsedData})),n.d(e,"FieldType",(function(){return F.FieldType})),n.d(e,"Field",(function(){return F.Field})),n.d(e,"GenericDocumentType",(function(){return F.GenericDocumentType})),n.d(e,"GenericDocument",(function(){return F.GenericDocument})),n.d(e,"Sheet",(function(){return m})),n.d(e,"SwipeToDelete",(function(){return g})),n.d(e,"ManualCountEditDialog",(function(){return v})),n.d(e,"SheetContent",(function(){return b})),n.d(e,"MultipleScanningMode",(function(){return y})),n.d(e,"ScanbotAlertDialog",(function(){return A})),n.d(e,"CameraPermissionScreen",(function(){return T})),n.d(e,"BarcodeItem",(function(){return R.BarcodeItem}));var r=n(18),o=n(1),i=n(13);class a extends i.a{constructor(t={}){super(),this.title=new o.j({text:"Connection Error!",color:"?sbColorOnSurface"}),this.subtitle=new o.j({text:"There was an issue and the data requested was not fetched. You could try again or discard this result to start a new scan.",color:"?sbColorOnSurfaceVariant"}),this.retryButton=new o.c({}),this.cancelButton=new o.c({}),void 0!==t.title&&(this.title=new o.j(t.title)),void 0!==t.subtitle&&(this.subtitle=new o.j(t.subtitle)),void 0!==t.retryButton&&(this.retryButton=new o.c(t.retryButton)),void 0!==t.cancelButton&&(this.cancelButton=new o.c(t.cancelButton))}}class s extends i.a{constructor(t={}){if(super(),void 0===t.title)throw new Error("title must be present in constructor argument");if(this.title=t.title,void 0===t.subtitle)throw new Error("subtitle must be present in constructor argument");if(this.subtitle=t.subtitle,void 0===t.barcodeImage)throw new Error("barcodeImage must be present in constructor argument");this.barcodeImage=t.barcodeImage}}class l extends i.a{constructor(t={}){super(),this.barcodeItemMapper=null,this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.modalOverlayColor="?sbColorModalOverlay",this.loadingMessage=new o.j({text:"Loading message for barcode info mapping.",color:"?sbColorPrimary"}),this.errorState=new a({}),void 0!==t.barcodeItemMapper&&(this.barcodeItemMapper=null!=t.barcodeItemMapper?t.barcodeItemMapper:null),void 0!==t.sheetColor&&(this.sheetColor=t.sheetColor),void 0!==t.dividerColor&&(this.dividerColor=t.dividerColor),void 0!==t.modalOverlayColor&&(this.modalOverlayColor=t.modalOverlayColor),void 0!==t.loadingMessage&&(this.loadingMessage=new o.j(t.loadingMessage)),void 0!==t.errorState&&(this.errorState=new a(t.errorState))}}class c extends i.a{constructor(t={}){super(),this._type="SingleScanningMode",this.confirmationSheetEnabled=!1,this.barcodeImageVisible=!0,this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.modalOverlayColor="?sbColorModalOverlay",this.barcodeTitle=new o.j({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),this.barcodeSubtitle=new o.j({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.submitButton=new o.c({visible:!0,text:"?sheetSubmitButton",background:new o.a({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new o.d({iconVisible:!0,color:"?sbColorOnPrimary"})}),this.cancelButton=new o.c({visible:!0,text:"?singleModeConfirmationCancelButton",background:new o.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new o.d({iconVisible:!1,color:"?sbColorPrimary"})}),this.barcodeInfoMapping=new l({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",loadingMessage:new o.j({text:"?barcodeInfoMappingLoadingMessage",color:"?sbColorPrimary"}),errorState:new a({title:new o.j({text:"?barcodeInfoMappingErrorStateTitle",color:"?sbColorOnSurface"}),subtitle:new o.j({text:"?barcodeInfoMappingErrorStateSubtitle",color:"?sbColorOnSurfaceVariant"}),retryButton:new o.c({visible:!0,text:"?barcodeInfoMappingErrorStateRetryButton",background:new o.a({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new o.d({iconVisible:!0,color:"?sbColorOnPrimary"})}),cancelButton:new o.c({text:"?barcodeInfoMappingErrorStateCancelButton",background:new o.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new o.d({iconVisible:!1,color:"?sbColorPrimary"})})})}),this.arOverlay=new r.b({visible:!1,counterBadge:new r.d({visible:!0,background:new o.a({strokeColor:"#000000FF",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),automaticSelectionEnabled:!1,barcodeItemInfoPosition:"BELOW",polygon:new r.c({visible:!0,deselected:new o.g({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),selected:new o.g({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5})}),barcodeItemConfiguration:new r.e({imageVisible:!0,titleSelected:new o.j({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleSelected:new o.j({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),titleDeselected:new o.j({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleDeselected:new o.j({visible:!0,text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant",useShadow:!1}),backgroundSelected:new o.g({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:1,cornerRadius:5}),backgroundDeselected:new o.g({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:1,cornerRadius:5})})}),void 0!==t.confirmationSheetEnabled&&(this.confirmationSheetEnabled=t.confirmationSheetEnabled),void 0!==t.barcodeImageVisible&&(this.barcodeImageVisible=t.barcodeImageVisible),void 0!==t.sheetColor&&(this.sheetColor=t.sheetColor),void 0!==t.dividerColor&&(this.dividerColor=t.dividerColor),void 0!==t.modalOverlayColor&&(this.modalOverlayColor=t.modalOverlayColor),void 0!==t.barcodeTitle&&(this.barcodeTitle=new o.j(t.barcodeTitle)),void 0!==t.barcodeSubtitle&&(this.barcodeSubtitle=new o.j(t.barcodeSubtitle)),void 0!==t.submitButton&&(this.submitButton=new o.c(t.submitButton)),void 0!==t.cancelButton&&(this.cancelButton=new o.c(t.cancelButton)),void 0!==t.barcodeInfoMapping&&(this.barcodeInfoMapping=new l(t.barcodeInfoMapping)),void 0!==t.arOverlay&&(this.arOverlay=new r.b(t.arOverlay))}}class u extends i.a{constructor(t={}){if(super(),void 0===t.width)throw new Error("width must be present in constructor argument");if(this.width=t.width,void 0===t.height)throw new Error("height must be present in constructor argument");this.height=t.height}}class d extends i.a{constructor(t={}){super(),this.cameraModule="BACK",this.zoomSteps=[1,2,5],this.defaultZoomFactor=1,this.flashEnabled=!1,this.idealPreviewResolution=new u({width:1920,height:1080}),void 0!==t.cameraModule&&(this.cameraModule=t.cameraModule),void 0!==t.zoomSteps&&(this.zoomSteps=t.zoomSteps.map((t=>t))),void 0!==t.defaultZoomFactor&&(this.defaultZoomFactor=t.defaultZoomFactor),void 0!==t.flashEnabled&&(this.flashEnabled=t.flashEnabled),void 0!==t.idealPreviewResolution&&(this.idealPreviewResolution=new u(t.idealPreviewResolution))}}var h,p=n(54);class f extends i.a{constructor(t={}){super(),this.flashButton=new o.h({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"}),this.zoomButton=new o.h({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"}),this.flipCameraButton=new o.h({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"}),void 0!==t.flashButton&&(this.flashButton=new o.h(t.flashButton)),void 0!==t.zoomButton&&(this.zoomButton=new o.h(t.zoomButton)),void 0!==t.flipCameraButton&&(this.flipCameraButton=new o.h(t.flipCameraButton))}}class m extends i.a{constructor(t={}){super(),this.mode="COLLAPSED_SHEET",this.collapsedVisibleHeight="SMALL",this.listButton=new o.b({}),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.collapsedVisibleHeight&&(this.collapsedVisibleHeight=t.collapsedVisibleHeight),void 0!==t.listButton&&(this.listButton=new o.b(t.listButton))}}class g extends i.a{constructor(t={}){super(),this.enabled=!0,this.backgroundColor="?sbColorNegative",this.iconColor="?sbColorOnPrimary",void 0!==t.enabled&&(this.enabled=t.enabled),void 0!==t.backgroundColor&&(this.backgroundColor=t.backgroundColor),void 0!==t.iconColor&&(this.iconColor=t.iconColor)}}class v extends i.a{constructor(t={}){super(),this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.modalOverlayColor="?sbColorModalOverlay",this.title=new o.j({text:"Update count",color:"?sbColorOnSurface"}),this.info=new o.j({text:"Adjust the number of items you scanned.",color:"?sbColorOnSurfaceVariant"}),this.updateButton=new o.c({visible:!0,text:"Update",background:new o.a({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new o.d({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),this.cancelButton=new o.c({visible:!0,text:"Cancel",background:new o.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new o.d({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),this.clearTextButton=new o.e({visible:!0,color:"?sbColorOnSurfaceVariant"}),void 0!==t.sheetColor&&(this.sheetColor=t.sheetColor),void 0!==t.dividerColor&&(this.dividerColor=t.dividerColor),void 0!==t.modalOverlayColor&&(this.modalOverlayColor=t.modalOverlayColor),void 0!==t.title&&(this.title=new o.j(t.title)),void 0!==t.info&&(this.info=new o.j(t.info)),void 0!==t.updateButton&&(this.updateButton=new o.c(t.updateButton)),void 0!==t.cancelButton&&(this.cancelButton=new o.c(t.cancelButton)),void 0!==t.clearTextButton&&(this.clearTextButton=new o.e(t.clearTextButton))}}class b extends i.a{constructor(t={}){super(),this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.manualCountChangeEnabled=!0,this.manualCountOutlineColor="?sbColorOutline",this.manualCountChangeColor="?sbColorPrimary",this.title=new o.j({text:"%d items",color:"?sbColorOnSurface"}),this.clearAllButton=new o.c({visible:!0,text:"Clear all",background:new o.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new o.d({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),this.barcodeItemTitle=new o.j({visible:!0,text:"BARCODE_TITLE",color:"?sbColorOnSurface",useShadow:!1}),this.barcodeItemSubtitle=new o.j({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.barcodeItemImageVisible=!0,this.submitButton=new o.c({visible:!0,text:"Submit",background:new o.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new o.d({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),this.startScanningButton=new o.c({visible:!0,text:"Start scanning",background:new o.a({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new o.d({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),this.placeholderTitle=new o.j({text:"No barcodes here!",color:"?sbColorOnSurface"}),this.placeholderSubtitle=new o.j({text:"The barcode list is currently empty. Close this sheet and scan your items to add them.",color:"?sbColorOnSurfaceVariant"}),this.placeholderIconBackground="?sbColorOutline",this.placeholderIcon=new o.e({visible:!0,color:"?sbColorOnSurface"}),this.swipeToDelete=new g({enabled:!0,backgroundColor:"?sbColorNegative",iconColor:"?sbColorOnPrimary"}),void 0!==t.sheetColor&&(this.sheetColor=t.sheetColor),void 0!==t.dividerColor&&(this.dividerColor=t.dividerColor),void 0!==t.manualCountChangeEnabled&&(this.manualCountChangeEnabled=t.manualCountChangeEnabled),void 0!==t.manualCountOutlineColor&&(this.manualCountOutlineColor=t.manualCountOutlineColor),void 0!==t.manualCountChangeColor&&(this.manualCountChangeColor=t.manualCountChangeColor),void 0!==t.title&&(this.title=new o.j(t.title)),void 0!==t.clearAllButton&&(this.clearAllButton=new o.c(t.clearAllButton)),void 0!==t.barcodeItemTitle&&(this.barcodeItemTitle=new o.j(t.barcodeItemTitle)),void 0!==t.barcodeItemSubtitle&&(this.barcodeItemSubtitle=new o.j(t.barcodeItemSubtitle)),void 0!==t.barcodeItemImageVisible&&(this.barcodeItemImageVisible=t.barcodeItemImageVisible),void 0!==t.submitButton&&(this.submitButton=new o.c(t.submitButton)),void 0!==t.startScanningButton&&(this.startScanningButton=new o.c(t.startScanningButton)),void 0!==t.placeholderTitle&&(this.placeholderTitle=new o.j(t.placeholderTitle)),void 0!==t.placeholderSubtitle&&(this.placeholderSubtitle=new o.j(t.placeholderSubtitle)),void 0!==t.placeholderIconBackground&&(this.placeholderIconBackground=t.placeholderIconBackground),void 0!==t.placeholderIcon&&(this.placeholderIcon=new o.e(t.placeholderIcon)),void 0!==t.swipeToDelete&&(this.swipeToDelete=new g(t.swipeToDelete))}}class y extends i.a{constructor(t={}){super(),this._type="MultipleScanningMode",this.countingRepeatDelay=1e3,this.mode="COUNTING",this.sheet=new m({mode:"COLLAPSED_SHEET",collapsedVisibleHeight:"SMALL",listButton:new o.b({badgeBackgroundColor:"?sbColorSurface",badgeForegroundColor:"?sbColorPrimary",visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"})}),this.sheetContent=new b({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",manualCountChangeEnabled:!0,manualCountOutlineColor:"?sbColorOutline",manualCountChangeColor:"?sbColorPrimary",title:new o.j({text:"?multipleModeSheetTitle",color:"?sbColorOnSurface"}),clearAllButton:new o.c({visible:!0,text:"?sheetClearAllButton",background:new o.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new o.d({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),barcodeItemTitle:new o.j({visible:!0,text:"BARCODE_TITLE",color:"?sbColorOnSurface",useShadow:!1}),barcodeItemSubtitle:new o.j({visible:!0,text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant",useShadow:!1}),barcodeItemImageVisible:!0,submitButton:new o.c({visible:!0,text:"?sheetSubmitButton",background:new o.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new o.d({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),startScanningButton:new o.c({visible:!0,text:"?sheetStartScanningButton",background:new o.a({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new o.d({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),placeholderTitle:new o.j({visible:!0,text:"?sheetPlaceholderTitle",color:"?sbColorOnSurface",useShadow:!1}),placeholderSubtitle:new o.j({visible:!0,text:"?sheetPlaceholderSubtitle",color:"?sbColorOnSurfaceVariant",useShadow:!1}),placeholderIconBackground:"?sbColorOutline",placeholderIcon:new o.e({visible:!0,color:"?sbColorOnSurface"}),swipeToDelete:new g({enabled:!0,backgroundColor:"?sbColorNegative",iconColor:"?sbColorOnPrimary"})}),this.manualCountEditDialog=new v({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",title:new o.j({text:"?manualCountEditDialogTitle",color:"?sbColorOnSurface"}),info:new o.j({text:"?manualCountEditDialogInfo",color:"?sbColorOnSurfaceVariant"}),updateButton:new o.c({visible:!0,text:"?manualCountEditDialogUpdateButton",background:new o.a({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new o.d({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new o.c({visible:!0,text:"?manualCountEditDialogCancelButton",background:new o.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new o.d({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),clearTextButton:new o.e({visible:!0,color:"?sbColorOnSurfaceVariant"})}),this.barcodeInfoMapping=new l({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",loadingMessage:new o.j({text:"?barcodeInfoMappingLoadingMessage",color:"?sbColorPrimary"}),errorState:new a({title:new o.j({text:"?barcodeInfoMappingErrorStateTitle",color:"?sbColorOnSurface"}),subtitle:new o.j({text:"?barcodeInfoMappingErrorStateSubtitle",color:"?sbColorOnSurfaceVariant"}),retryButton:new o.c({visible:!0,text:"?barcodeInfoMappingErrorStateRetryButton",background:new o.a({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new o.d({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new o.c({visible:!0,text:"?barcodeInfoMappingErrorStateCancelButton",background:new o.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new o.d({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})})})}),this.arOverlay=new r.b({visible:!1,counterBadge:new r.d({visible:!0,background:new o.a({strokeColor:"#FF000000",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),automaticSelectionEnabled:!1,barcodeItemInfoPosition:"BELOW",polygon:new r.c({visible:!0,deselected:new o.g({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),selected:new o.g({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5})}),barcodeItemConfiguration:new r.e({imageVisible:!0,titleSelected:new o.j({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleSelected:new o.j({visible:!0,text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant",useShadow:!1}),titleDeselected:new o.j({visible:!0,text:"BARCODE_TITLE",color:"?sbColorOnSurface",useShadow:!1}),subtitleDeselected:new o.j({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),backgroundSelected:new o.g({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:1,cornerRadius:5}),backgroundDeselected:new o.g({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:1,cornerRadius:5})})}),void 0!==t.countingRepeatDelay&&(this.countingRepeatDelay=t.countingRepeatDelay),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.sheet&&(this.sheet=new m(t.sheet)),void 0!==t.sheetContent&&(this.sheetContent=new b(t.sheetContent)),void 0!==t.manualCountEditDialog&&(this.manualCountEditDialog=new v(t.manualCountEditDialog)),void 0!==t.barcodeInfoMapping&&(this.barcodeInfoMapping=new l(t.barcodeInfoMapping)),void 0!==t.arOverlay&&(this.arOverlay=new r.b(t.arOverlay))}}class A extends i.a{constructor(t={}){if(super(),this.title=new o.j({text:"Title",color:"?sbColorOnSurface"}),this.subtitle=new o.j({text:"Standard explanation message text.",color:"?sbColorOnSurfaceVariant"}),this.sheetColor="?sbColorSurface",this.modalOverlayColor="?sbColorModalOverlay",this.dividerColor="?sbColorOutline",void 0!==t.title&&(this.title=new o.j(t.title)),void 0!==t.subtitle&&(this.subtitle=new o.j(t.subtitle)),void 0!==t.sheetColor&&(this.sheetColor=t.sheetColor),void 0!==t.modalOverlayColor&&(this.modalOverlayColor=t.modalOverlayColor),void 0!==t.dividerColor&&(this.dividerColor=t.dividerColor),void 0===t.okButton)throw new Error("okButton must be present in constructor argument");if(this.okButton=new o.c(t.okButton),void 0===t.cancelButton)throw new Error("cancelButton must be present in constructor argument");this.cancelButton=new o.c(t.cancelButton)}}class C extends i.a{constructor(t={}){if(super(),this.count=1,void 0===t.barcodeValue)throw new Error("barcodeValue must be present in constructor argument");this.barcodeValue=t.barcodeValue,void 0!==t.title&&(this.title=null!=t.title?t.title:null),void 0!==t.image&&(this.image=null!=t.image?t.image:null),void 0!==t.count&&(this.count=t.count)}}class S extends i.a{constructor(t={}){super(),this._type="FindAndPickScanningMode",this.scanningCompletedColor="?sbColorPositive",this.scanningPartiallyColor="?sbColorWarning",this.scanningNotScannedColor="?sbColorOutline",this.allowPartialScan=!1,this.expectedBarcodes=[],this.countingRepeatDelay=1e3,this.sheet=new m({mode:"COLLAPSED_SHEET",collapsedVisibleHeight:"SMALL",listButton:new o.b({badgeBackgroundColor:"?sbColorSurface",badgeForegroundColor:"?sbColorPrimary",visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"})}),this.sheetContent=new b({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",manualCountChangeEnabled:!0,manualCountOutlineColor:"?sbColorOutline",manualCountChangeColor:"?sbColorPrimary",title:new o.j({visible:!0,text:"?findAndPickSheetTitle",color:"?sbColorOnSurface",useShadow:!1}),clearAllButton:new o.c({visible:!0,text:"?sheetResetButton",background:new o.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new o.d({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),barcodeItemTitle:new o.j({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),barcodeItemSubtitle:new o.j({text:"?findAndPickSheetBarcodeItemSubtitle",color:"?sbColorOnSurfaceVariant"}),barcodeItemImageVisible:!0,submitButton:new o.c({visible:!0,text:"?sheetSubmitButton",background:new o.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new o.d({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),startScanningButton:new o.c({visible:!0,text:"?sheetStartScanningButton",background:new o.a({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new o.d({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),placeholderTitle:new o.j({text:"?sheetPlaceholderTitle",color:"?sbColorOnSurface"}),placeholderSubtitle:new o.j({text:"?sheetPlaceholderSubtitle",color:"?sbColorOnSurfaceVariant"}),placeholderIconBackground:"?sbColorOutline",placeholderIcon:new o.e({visible:!0,color:"?sbColorOnSurface"}),swipeToDelete:new g({enabled:!1,backgroundColor:"?sbColorNegative",iconColor:"?sbColorOnPrimary"})}),this.manualCountEditDialog=new v({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",title:new o.j({text:"?manualCountEditDialogTitle",color:"?sbColorOnSurface"}),info:new o.j({text:"?manualCountEditDialogInfo",color:"?sbColorOnSurfaceVariant"}),updateButton:new o.c({visible:!0,text:"?manualCountEditDialogUpdateButton",background:new o.a({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new o.d({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new o.c({visible:!0,text:"?manualCountEditDialogCancelButton",background:new o.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new o.d({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),clearTextButton:new o.e({visible:!0,color:"?sbColorOnSurfaceVariant"})}),this.arOverlay=new r.a({visible:!1,automaticSelectionEnabled:!0,polygon:new r.f({partiallyScanned:new o.g({strokeColor:"?sbColorWarning",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),rejected:new o.g({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),completed:new o.g({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5})}),badge:new r.g({partiallyScanned:new r.d({visible:!0,background:new o.a({strokeColor:"#000000FF",fillColor:"?sbColorWarning",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),rejected:new r.d({visible:!0,background:new o.a({strokeColor:"#000000FF",fillColor:"?sbColorSurface",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),completed:new r.d({visible:!0,background:new o.a({strokeColor:"#000000FF",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"})})}),this.partialScannedAlertDialogEnabled=!0,this.partialScannedAlertDialog=new A({title:new o.j({text:"?findAndPickPartialAlertTitle",color:"?sbColorOnSurface"}),subtitle:new o.j({text:"?findAndPickPartialAlertSubtitle",color:"?sbColorOnSurfaceVariant"}),sheetColor:"?sbColorSurface",modalOverlayColor:"?sbColorModalOverlay",dividerColor:"?sbColorOutline",okButton:new o.c({visible:!0,text:"?findAndPickPartialAlertSubmitButton",background:new o.a({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new o.d({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new o.c({visible:!0,text:"?findAndPickPartialAlertCancelButton",background:new o.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new o.d({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})})}),this.confirmationAlertDialogEnabled=!1,this.confirmationAlertDialog=new A({title:new o.j({text:"?findAndPickCompleteAlertTitle",color:"?sbColorOnSurface"}),subtitle:new o.j({text:"?findAndPickCompleteAlertSubtitle",color:"?sbColorOnSurfaceVariant"}),sheetColor:"?sbColorSurface",modalOverlayColor:"?sbColorModalOverlay",dividerColor:"?sbColorOutline",okButton:new o.c({visible:!0,text:"?findAndPickCompleteAlertSubmitButton",background:new o.a({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new o.d({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new o.c({visible:!0,text:"?findAndPickCompleteAlertCancelButton",background:new o.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new o.d({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})})}),void 0!==t.scanningCompletedColor&&(this.scanningCompletedColor=t.scanningCompletedColor),void 0!==t.scanningPartiallyColor&&(this.scanningPartiallyColor=t.scanningPartiallyColor),void 0!==t.scanningNotScannedColor&&(this.scanningNotScannedColor=t.scanningNotScannedColor),void 0!==t.allowPartialScan&&(this.allowPartialScan=t.allowPartialScan),void 0!==t.expectedBarcodes&&(this.expectedBarcodes=t.expectedBarcodes.map((t=>new C(t)))),void 0!==t.countingRepeatDelay&&(this.countingRepeatDelay=t.countingRepeatDelay),void 0!==t.sheet&&(this.sheet=new m(t.sheet)),void 0!==t.sheetContent&&(this.sheetContent=new b(t.sheetContent)),void 0!==t.manualCountEditDialog&&(this.manualCountEditDialog=new v(t.manualCountEditDialog)),void 0!==t.arOverlay&&(this.arOverlay=new r.a(t.arOverlay)),void 0!==t.partialScannedAlertDialogEnabled&&(this.partialScannedAlertDialogEnabled=t.partialScannedAlertDialogEnabled),void 0!==t.partialScannedAlertDialog&&(this.partialScannedAlertDialog=new A(t.partialScannedAlertDialog)),void 0!==t.confirmationAlertDialogEnabled&&(this.confirmationAlertDialogEnabled=t.confirmationAlertDialogEnabled),void 0!==t.confirmationAlertDialog&&(this.confirmationAlertDialog=new A(t.confirmationAlertDialog))}}(h||(h={})).From=function(t){const e=t._type;switch(e){case"SingleScanningMode":return new c(t);case"MultipleScanningMode":return new y(t);case"FindAndPickScanningMode":return new S(t);default:throw`Unknown child class name: ${e}`}};var x,w=n(39);class O extends i.a{constructor(t={}){super(),this.visible=!0,this.style=new E({strokeColor:"?sbColorSurface",strokeWidth:2,cornerRadius:10}),this.overlayColor="?sbColorSurfaceLow",this.aspectRatio=new w.AspectRatio({width:1,height:1}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.style&&(this.style=x.From(t.style)),void 0!==t.overlayColor&&(this.overlayColor=t.overlayColor),void 0!==t.aspectRatio&&(this.aspectRatio=new w.AspectRatio(t.aspectRatio))}}!function(t){t.From=function(t){const e=t._type;switch(e){case"FinderCorneredStyle":return new E(t);case"FinderStrokedStyle":return new L(t);default:throw`Unknown child class name: ${e}`}}}(x||(x={}));class E extends i.a{constructor(t={}){super(),this._type="FinderCorneredStyle",this.strokeColor="#FFFFFFFF",this.strokeWidth=3,this.cornerRadius=10,void 0!==t.strokeColor&&(this.strokeColor=t.strokeColor),void 0!==t.strokeWidth&&(this.strokeWidth=t.strokeWidth),void 0!==t.cornerRadius&&(this.cornerRadius=t.cornerRadius)}}class L extends i.a{constructor(t={}){super(),this._type="FinderStrokedStyle",this.strokeColor="#FFFFFFFF",this.strokeWidth=3,this.cornerRadius=10,void 0!==t.strokeColor&&(this.strokeColor=t.strokeColor),void 0!==t.strokeWidth&&(this.strokeWidth=t.strokeWidth),void 0!==t.cornerRadius&&(this.cornerRadius=t.cornerRadius)}}class j extends i.a{constructor(t={}){super(),this.visible=!0,this.title=new o.j({color:"?sbColorOnPrimary"}),this.background=new o.a({strokeColor:"#00000000",fillColor:"?sbColorSurfaceLow"}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.title&&(this.title=new o.j(t.title)),void 0!==t.background&&(this.background=new o.a(t.background))}}class k extends i.a{constructor(t={}){super(),this.cameraPermissionEnableCameraTitle="Camera permission denied!",this.cameraPermissionEnableCameraExplanation="Please allow the usage of the camera to start the scanning process.",this.cameraPermissionCloseButton="Close",this.topBarCancelButton="Cancel",this.topBarTitle="Scan Item",this.userGuidance="Move the finder over a barcode",this.barcodeInfoMappingLoadingMessage="Loading details...",this.barcodeInfoMappingErrorStateTitle="Connection Error!",this.barcodeInfoMappingErrorStateSubtitle="There was an issue and the data requested was not fetched. You could try again or discard this result to start a new scan.",this.barcodeInfoMappingErrorStateRetryButton="Retry",this.barcodeInfoMappingErrorStateCancelButton="Cancel",this.manualCountEditDialogTitle="Update count",this.manualCountEditDialogInfo="Adjust the number of items you scanned.",this.manualCountEditDialogUpdateButton="Update",this.manualCountEditDialogCancelButton="Cancel",this.sheetResetButton="Reset",this.sheetClearAllButton="Clear all",this.sheetSubmitButton="Submit",this.sheetStartScanningButton="Start scanning",this.sheetPlaceholderTitle="No barcodes here!",this.sheetPlaceholderSubtitle="The barcode list is currently empty. Close this sheet and scan your items to add them.",this.singleModeConfirmationCancelButton="Close",this.multipleModeSheetTitle="%d items",this.findAndPickSheetTitle="%d/%d scanned",this.findAndPickSheetBarcodeItemSubtitle="%d/%d added",this.findAndPickPartialAlertTitle="Incomplete scan!",this.findAndPickPartialAlertSubtitle="Some codes are yet to be scanned. Proceed with submission anyway?",this.findAndPickPartialAlertCancelButton="Cancel",this.findAndPickPartialAlertSubmitButton="Yes, Submit",this.findAndPickCompleteAlertTitle="All codes found!",this.findAndPickCompleteAlertSubtitle="You have successfully scanned all codes. Proceed with submission?",this.findAndPickCompleteAlertCancelButton="Dismiss",this.findAndPickCompleteAlertSubmitButton="Submit",void 0!==t.cameraPermissionEnableCameraTitle&&(this.cameraPermissionEnableCameraTitle=t.cameraPermissionEnableCameraTitle),void 0!==t.cameraPermissionEnableCameraExplanation&&(this.cameraPermissionEnableCameraExplanation=t.cameraPermissionEnableCameraExplanation),void 0!==t.cameraPermissionCloseButton&&(this.cameraPermissionCloseButton=t.cameraPermissionCloseButton),void 0!==t.topBarCancelButton&&(this.topBarCancelButton=t.topBarCancelButton),void 0!==t.topBarTitle&&(this.topBarTitle=t.topBarTitle),void 0!==t.userGuidance&&(this.userGuidance=t.userGuidance),void 0!==t.barcodeInfoMappingLoadingMessage&&(this.barcodeInfoMappingLoadingMessage=t.barcodeInfoMappingLoadingMessage),void 0!==t.barcodeInfoMappingErrorStateTitle&&(this.barcodeInfoMappingErrorStateTitle=t.barcodeInfoMappingErrorStateTitle),void 0!==t.barcodeInfoMappingErrorStateSubtitle&&(this.barcodeInfoMappingErrorStateSubtitle=t.barcodeInfoMappingErrorStateSubtitle),void 0!==t.barcodeInfoMappingErrorStateRetryButton&&(this.barcodeInfoMappingErrorStateRetryButton=t.barcodeInfoMappingErrorStateRetryButton),void 0!==t.barcodeInfoMappingErrorStateCancelButton&&(this.barcodeInfoMappingErrorStateCancelButton=t.barcodeInfoMappingErrorStateCancelButton),void 0!==t.manualCountEditDialogTitle&&(this.manualCountEditDialogTitle=t.manualCountEditDialogTitle),void 0!==t.manualCountEditDialogInfo&&(this.manualCountEditDialogInfo=t.manualCountEditDialogInfo),void 0!==t.manualCountEditDialogUpdateButton&&(this.manualCountEditDialogUpdateButton=t.manualCountEditDialogUpdateButton),void 0!==t.manualCountEditDialogCancelButton&&(this.manualCountEditDialogCancelButton=t.manualCountEditDialogCancelButton),void 0!==t.sheetResetButton&&(this.sheetResetButton=t.sheetResetButton),void 0!==t.sheetClearAllButton&&(this.sheetClearAllButton=t.sheetClearAllButton),void 0!==t.sheetSubmitButton&&(this.sheetSubmitButton=t.sheetSubmitButton),void 0!==t.sheetStartScanningButton&&(this.sheetStartScanningButton=t.sheetStartScanningButton),void 0!==t.sheetPlaceholderTitle&&(this.sheetPlaceholderTitle=t.sheetPlaceholderTitle),void 0!==t.sheetPlaceholderSubtitle&&(this.sheetPlaceholderSubtitle=t.sheetPlaceholderSubtitle),void 0!==t.singleModeConfirmationCancelButton&&(this.singleModeConfirmationCancelButton=t.singleModeConfirmationCancelButton),void 0!==t.multipleModeSheetTitle&&(this.multipleModeSheetTitle=t.multipleModeSheetTitle),void 0!==t.findAndPickSheetTitle&&(this.findAndPickSheetTitle=t.findAndPickSheetTitle),void 0!==t.findAndPickSheetBarcodeItemSubtitle&&(this.findAndPickSheetBarcodeItemSubtitle=t.findAndPickSheetBarcodeItemSubtitle),void 0!==t.findAndPickPartialAlertTitle&&(this.findAndPickPartialAlertTitle=t.findAndPickPartialAlertTitle),void 0!==t.findAndPickPartialAlertSubtitle&&(this.findAndPickPartialAlertSubtitle=t.findAndPickPartialAlertSubtitle),void 0!==t.findAndPickPartialAlertCancelButton&&(this.findAndPickPartialAlertCancelButton=t.findAndPickPartialAlertCancelButton),void 0!==t.findAndPickPartialAlertSubmitButton&&(this.findAndPickPartialAlertSubmitButton=t.findAndPickPartialAlertSubmitButton),void 0!==t.findAndPickCompleteAlertTitle&&(this.findAndPickCompleteAlertTitle=t.findAndPickCompleteAlertTitle),void 0!==t.findAndPickCompleteAlertSubtitle&&(this.findAndPickCompleteAlertSubtitle=t.findAndPickCompleteAlertSubtitle),void 0!==t.findAndPickCompleteAlertCancelButton&&(this.findAndPickCompleteAlertCancelButton=t.findAndPickCompleteAlertCancelButton),void 0!==t.findAndPickCompleteAlertSubmitButton&&(this.findAndPickCompleteAlertSubmitButton=t.findAndPickCompleteAlertSubmitButton)}}class _ extends i.a{constructor(t={}){super(),this.barcodesRegexFilter="",this.barcodeFormats=[],this.gs1Handling="PARSE",this.engineMode="NEXT_GEN_LOW_POWER",this.maximumRecognizerResolution=600,void 0!==t.barcodesRegexFilter&&(this.barcodesRegexFilter=t.barcodesRegexFilter),void 0!==t.barcodeFormats&&(this.barcodeFormats=t.barcodeFormats.map((t=>t))),void 0!==t.gs1Handling&&(this.gs1Handling=t.gs1Handling),void 0!==t.engineMode&&(this.engineMode=t.engineMode),void 0!==t.maximumRecognizerResolution&&(this.maximumRecognizerResolution=t.maximumRecognizerResolution)}}class T extends i.a{constructor(t={}){super(),this.background="?sbColorSurface",this.iconBackground="?sbColorOutline",this.icon=new o.e({visible:!0,color:"?sbColorOnSurface"}),this.closeButton=new o.c({text:"Close",background:new o.a({}),foreground:new o.d({})}),this.enableCameraTitle=new o.j({text:"Camera permission denied!",color:"?colorOnSurface"}),this.enableCameraExplanation=new o.j({text:"Please allow the usage of the camera to start the scanning process.",color:"?sbColorOnSurfaceVariant"}),void 0!==t.background&&(this.background=t.background),void 0!==t.iconBackground&&(this.iconBackground=t.iconBackground),void 0!==t.icon&&(this.icon=new o.e(t.icon)),void 0!==t.closeButton&&(this.closeButton=new o.c(t.closeButton)),void 0!==t.enableCameraTitle&&(this.enableCameraTitle=new o.j(t.enableCameraTitle)),void 0!==t.enableCameraExplanation&&(this.enableCameraExplanation=new o.j(t.enableCameraExplanation))}}class P extends i.a{constructor(t={}){super(),this.version="1.0",this.screen="BarcodeScanner",this.palette=new o.f({sbColorPrimary:"#C8193C",sbColorPrimaryDisabled:"#F5F5F5",sbColorNegative:"#FF3737",sbColorPositive:"#4EFFB4",sbColorWarning:"#FFCE5C",sbColorSecondary:"#FFEDEE",sbColorSecondaryDisabled:"#F5F5F5",sbColorOnPrimary:"#FFFFFF",sbColorOnSecondary:"#C8193C",sbColorSurface:"#FFFFFF",sbColorOutline:"#EFEFEF",sbColorOnSurfaceVariant:"#707070",sbColorOnSurface:"#000000",sbColorSurfaceLow:"#00000026",sbColorSurfaceHigh:"#0000007A",sbColorModalOverlay:"#000000A3"}),this.localization=new k({}),this.backgroundColor="?sbColorSurfaceLow",this.topBar=new p.a({title:new o.j({text:"?topBarTitle",color:"?sbColorOnPrimary"}),mode:"SOLID",backgroundColor:"?sbColorPrimary",cancelButton:new o.c({visible:!0,text:"?topBarCancelButton",background:new o.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new o.d({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})})}),this.actionBar=new f({flashButton:new o.h({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"}),zoomButton:new o.h({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"}),flipCameraButton:new o.h({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"})}),this.viewFinder=new O({visible:!0,style:new E({strokeColor:"?sbColorSurface",strokeWidth:2,cornerRadius:10}),overlayColor:"?sbColorSurfaceLow",aspectRatio:new w.AspectRatio({width:1,height:1})}),this.userGuidance=new j({visible:!0,title:new o.j({text:"?userGuidance",color:"?sbColorOnPrimary"}),background:new o.a({strokeColor:"#00000000",fillColor:"?sbColorSurfaceLow",strokeWidth:0})}),this.cameraPermission=new T({background:"?sbColorSurface",iconBackground:"?sbColorOutline",icon:new o.e({visible:!0,color:"?sbColorOnSurface"}),closeButton:new o.c({visible:!0,text:"?cameraPermissionCloseButton",background:new o.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new o.d({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),enableCameraTitle:new o.j({text:"?cameraPermissionEnableCameraTitle",color:"?sbColorOnSurface"}),enableCameraExplanation:new o.j({text:"?cameraPermissionEnableCameraExplanation",color:"?sbColorOnSurfaceVariant"})}),this.cameraConfiguration=new d({}),this.recognizerConfiguration=new _({}),this.useCase=new c({}),this.sound=new o.i({successBeepEnabled:!0,soundType:"MODERN_BEEP"}),this.vibration=new o.l({enabled:!0}),this.timeouts=new o.k({autoCancelTimeout:0,initialScanDelay:0}),void 0!==t.version&&(this.version=t.version),void 0!==t.screen&&(this.screen=t.screen),void 0!==t.palette&&(this.palette=new o.f(t.palette)),void 0!==t.localization&&(this.localization=new k(t.localization)),void 0!==t.backgroundColor&&(this.backgroundColor=t.backgroundColor),void 0!==t.topBar&&(this.topBar=new p.a(t.topBar)),void 0!==t.actionBar&&(this.actionBar=new f(t.actionBar)),void 0!==t.viewFinder&&(this.viewFinder=new O(t.viewFinder)),void 0!==t.userGuidance&&(this.userGuidance=new j(t.userGuidance)),void 0!==t.cameraPermission&&(this.cameraPermission=new T(t.cameraPermission)),void 0!==t.cameraConfiguration&&(this.cameraConfiguration=new d(t.cameraConfiguration)),void 0!==t.recognizerConfiguration&&(this.recognizerConfiguration=new _(t.recognizerConfiguration)),void 0!==t.useCase&&(this.useCase=h.From(t.useCase)),void 0!==t.sound&&(this.sound=new o.i(t.sound)),void 0!==t.vibration&&(this.vibration=new o.l(t.vibration)),void 0!==t.timeouts&&(this.timeouts=new o.k(t.timeouts))}}var R=n(66);class D extends i.a{constructor(t={}){if(super(),void 0===t.barcode)throw new Error("barcode must be present in constructor argument");if(this.barcode=new R.BarcodeItem(t.barcode),void 0===t.count)throw new Error("count must be present in constructor argument");this.count=t.count}}class B extends i.a{constructor(t={}){super(),this.items=[],void 0!==t.items&&(this.items=t.items.map((t=>new D(t))))}}var F=n(38)},function(t,e,n){"use strict";n.d(e,"e",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return l}));n(2),n(110),n(45);const r={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${r[t]}px)`};function i(t,e,n){const i=t.theme||{};if(Array.isArray(e)){const t=i.breakpoints||o;return e.reduce(((r,o,i)=>(r[t.up(t.keys[i])]=n(e[i]),r)),{})}if("object"==typeof e){const t=i.breakpoints||o;return Object.keys(e).reduce(((o,i)=>{if(-1!==Object.keys(t.values||r).indexOf(i)){o[t.up(i)]=n(e[i],i)}else{const t=i;o[t]=e[t]}return o}),{})}return n(e)}function a(t={}){var e;return(null==(e=t.keys)?void 0:e.reduce(((e,n)=>(e[t.up(n)]={},e)),{}))||{}}function s(t,e){return t.reduce(((t,e)=>{const n=t[e];return(!n||0===Object.keys(n).length)&&delete t[e],t}),e)}function l({values:t,breakpoints:e,base:n}){const r=n||function(t,e){if("object"!=typeof t)return{};const n={},r=Object.keys(e);return Array.isArray(t)?r.forEach(((e,r)=>{r<t.length&&(n[e]=!0)})):r.forEach((e=>{null!=t[e]&&(n[e]=!0)})),n}(t,e),o=Object.keys(r);if(0===o.length)return t;let i;return o.reduce(((e,n,r)=>(Array.isArray(t)?(e[n]=null!=t[r]?t[r]:t[i],i=r):"object"==typeof t?(e[n]=null!=t[n]?t[n]:t[i],i=n):e[n]=t,e)),{})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(71);class o extends r.a{constructor(t){super(),this.mirrored=!1,this.spinnerColor="black",this.backgroundColor="black",this.videoConstraints={width:{ideal:t.width},height:{ideal:t.height},facingMode:"environment",resizeMode:"none",experimental:{focusMode:"continous",focusDistance:0}}}static mapVideoConstraints(t,e){t.videoConstraints&&this.mapValues(t.videoConstraints,e.videoConstraints)}}o.DEFAULT_VIDEO_RESOLUTION_4K={width:3840,height:2160},o.DEFAULT_VIDEO_RESOLUTION_HD={width:1920,height:1080},o.DEFAULT_ACCEPTED_BRIGHTNESS_SCORE=0,o.DEFAULT_ACCEPTED_ANGLE_SCORE=75,o.DEFAULT_ACCEPTED_SIZE_SCORE=75},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};class o extends Error{constructor(t,e,n){super(e),this.name="",this.name=t,this.message=e,this.webApiError=n}static mediaDevicesUndefined(){return new o(this.MESSAGE.DEVICES_UNDEFINED,"Does your device even have a camera? If so, please use a secure context (HTTPS) or use 'localhost' explicitly.")}static enumerateDevicesFailed(){return new o(this.MESSAGE.DEVICES_UNDEFINED,"Does your device even have a camera? Because we're unable to query query navigator.mediaDevices?.enumerateDevices")}static mediaDeviceNotFound(t){return new o(this.MESSAGE.ENUMERATE_FAILED,"Does your device even have a camera? Because we were unable to query navigator.mediaDevices?.getUserMedia().",t)}static permissionDenied(t){return new o(this.MESSAGE.PERMISSION_DENIED,"Camera permission has not been granted. Please prompt your users again to grant permission.",t)}static unknown(t){return new o(this.MESSAGE.UNKNOWN,"\n Unfortunately we were unable to query navigator.mediaDevicess.getUserMedia, \n and unable to determine the reason why. This may be caused by the user to denied the permission prompt. \n Or you may be using an in-app browser that itself has not been granted permission to use the camera.\n Or your users may be using a niche browser that does not support the media API at all!\n ",t)}static tryCheckPermission(){return r(this,void 0,void 0,(function*(){if(!this.permissionState)try{const t=yield navigator.permissions.query({name:"camera"});this.permissionState=t.state}catch(t){this.permissionState=this.PERMISSION_STATE.UNKNOWN}}))}static hasDeniedPermission(){return this.permissionState===this.PERMISSION_STATE.DENIED}static hasCheckedPermission(){return!!this.permissionState}static createFromDOMException(t){return t instanceof DOMException?"NotAllowedError"===t.name?o.permissionDenied("Specifically, the native 'NotAllowedError' was thrown."):"NotFoundError"===t.name?o.mediaDeviceNotFound("Specifically, the native 'NotFoundError' was thrown."):void 0:o.unknown(null==t?void 0:t.message)}}o.PERMISSION_STATE={GRANTED:"granted",DENIED:"denied",PROMPT:"prompt",UNKNOWN:"unknown"},o.MESSAGE={DEVICES_UNDEFINED:"MediaError_DevicesUndefined",DEVICE_NOT_FOUND:"MediaError_DeviceNotFound",ENUMERATE_FAILED:"MediaError_EnumerateFailed",PERMISSION_DENIED:"MediaError_PermissionDenied",UNKNOWN:"MediaError_Unknown"}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));class r{static initialize(t=!1){this.verbose=t}static debug(t){this.verbose&&console.log("ScanbotSDK:",t)}static debugWarn(t){this.verbose&&console.warn("ScanbotSDK:",t)}}},,function(t,e,n){"use strict";var r=n(128);e.a=r.a},,function(t,e,n){"use strict";n.r(e),n.d(e,"OcrResult",(function(){return o})),n.d(e,"FieldParsedData",(function(){return i})),n.d(e,"FieldType",(function(){return a})),n.d(e,"Field",(function(){return s})),n.d(e,"GenericDocumentType",(function(){return l})),n.d(e,"GenericDocument",(function(){return c}));var r=n(5);class o extends r.a{constructor(t={}){if(super(),void 0===t.text)throw new Error("text must be present in constructor argument");if(this.text=t.text,void 0===t.confidence)throw new Error("confidence must be present in constructor argument");this.confidence=t.confidence}}class i extends r.a{constructor(t={}){if(super(),void 0===t.type)throw new Error("type must be present in constructor argument");if(this.type=t.type,void 0===t.value)throw new Error("value must be present in constructor argument");this.value=t.value}}class a extends r.a{constructor(t={}){if(super(),this.listIndex=null,void 0===t.name)throw new Error("name must be present in constructor argument");if(this.name=t.name,void 0===t.fullName)throw new Error("fullName must be present in constructor argument");if(this.fullName=t.fullName,void 0===t.normalizedName)throw new Error("normalizedName must be present in constructor argument");if(this.normalizedName=t.normalizedName,void 0===t.commonType)throw new Error("commonType must be present in constructor argument");this.commonType=null!=t.commonType?t.commonType:null,void 0!==t.listIndex&&(this.listIndex=null!=t.listIndex?t.listIndex:null)}}class s extends r.a{constructor(t={}){if(super(),this.confidenceWeight=1,this.image=null,this.validationStatus="NONE",this.parsedData=[],void 0===t.type)throw new Error("type must be present in constructor argument");if(this.type=new a(t.type),void 0===t.value)throw new Error("value must be present in constructor argument");if(this.value=null!=t.value?new o(t.value):null,void 0!==t.confidenceWeight&&(this.confidenceWeight=t.confidenceWeight),void 0!==t.image&&(this.image=null!=t.image?t.image:null),void 0===t.polygonInRoot)throw new Error("polygonInRoot must be present in constructor argument");this.polygonInRoot=t.polygonInRoot.map((t=>({x:t.x,y:t.y}))),void 0!==t.validationStatus&&(this.validationStatus=t.validationStatus),void 0!==t.parsedData&&(this.parsedData=t.parsedData.map((t=>new i(t))))}}class l extends r.a{constructor(t={}){if(super(),this.listIndex=null,void 0===t.name)throw new Error("name must be present in constructor argument");if(this.name=t.name,void 0===t.fullName)throw new Error("fullName must be present in constructor argument");if(this.fullName=t.fullName,void 0===t.normalizedName)throw new Error("normalizedName must be present in constructor argument");this.normalizedName=t.normalizedName,void 0!==t.listIndex&&(this.listIndex=null!=t.listIndex?t.listIndex:null)}}class c extends r.a{constructor(t={}){if(super(),this.crop=null,this.confidence=0,this.confidenceWeight=0,void 0===t.type)throw new Error("type must be present in constructor argument");if(this.type=new l(t.type),void 0===t.fields)throw new Error("fields must be present in constructor argument");if(this.fields=t.fields.map((t=>new s(t))),void 0===t.children)throw new Error("children must be present in constructor argument");if(this.children=t.children.map((t=>new c(t))),void 0===t.quad)throw new Error("quad must be present in constructor argument");if(this.quad=null!=t.quad?t.quad.map((t=>({x:t.x,y:t.y}))):null,void 0===t.quadInRoot)throw new Error("quadInRoot must be present in constructor argument");this.quadInRoot=null!=t.quadInRoot?t.quadInRoot.map((t=>({x:t.x,y:t.y}))):null,void 0!==t.crop&&(this.crop=null!=t.crop?t.crop:null),void 0!==t.confidence&&(this.confidence=t.confidence),void 0!==t.confidenceWeight&&(this.confidenceWeight=t.confidenceWeight)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"LineSegmentInt",(function(){return o})),n.d(e,"LineSegmentFloat",(function(){return i})),n.d(e,"AspectRatio",(function(){return a}));var r=n(5);class o extends r.a{constructor(t={}){if(super(),void 0===t.start)throw new Error("start must be present in constructor argument");if(this.start={x:t.start.x,y:t.start.y},void 0===t.end)throw new Error("end must be present in constructor argument");this.end={x:t.end.x,y:t.end.y}}}class i extends r.a{constructor(t={}){if(super(),void 0===t.start)throw new Error("start must be present in constructor argument");if(this.start={x:t.start.x,y:t.start.y},void 0===t.end)throw new Error("end must be present in constructor argument");this.end={x:t.end.x,y:t.end.y}}}class a extends r.a{constructor(t={}){super(),this.width=1,this.height=1,void 0!==t.width&&(this.width=t.width),void 0!==t.height&&(this.height=t.height)}}},function(t,e,n){"use strict";e.a="$$material"},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));class r{constructor(t,e,n,r){this.x=t,this.y=e,this.width=n,this.height=r}scaleDown(t){return new r(this.x/t,this.y/t,this.width/t,this.height/t)}bottom(){return this.y+this.height}static withSize(t,e){return new r(0,0,t,e)}static empty(){return new r(0,0,0,0)}static fromRect(t){return t?new r(t.x,t.y,t.width,t.height):r.empty()}static fromPoint(t,e){return new r(t.x-e/2,t.y-e/2,e,e)}static fromDOMRect(t){return new r(t.x,t.y,t.width,t.height)}}},function(t,e,n){"use strict";var r=n(130);e.a=r.a},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(32),o=n(30);class i extends r.a{constructor(t){super(t);const e=new o.BarcodeScannerConfiguration;this.finder=e.viewFinder,this.userGuidance=e.userGuidance}static mapFinderConfiguration(t,e){var n,o;r.a.mapValuesDeep(null!==(n=e.finder)&&void 0!==n?n:{},t.finder),r.a.mapValuesDeep(null!==(o=e.userGuidance)&&void 0!==o?o:{},t.userGuidance)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var r=n(0),o=n(33),i=n(46),a=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};class s extends r.default.Component{constructor(t){super(t),this.orientationchangeCallback=this.orientationChanged.bind(this),this.state={orientation:window.orientation,stream:void 0}}orientationChanged(t){this.setState({orientation:window.orientation})}setDeviceIdInConstraints(t){var e,n;return a(this,void 0,void 0,(function*(){const r=this.props.preferredCamera;if(r)try{const e=(yield navigator.mediaDevices.enumerateDevices()).find((t=>t.deviceId===r||t.label===r));if(e)return Object.assign(Object.assign({},t),{deviceId:e.deviceId})}catch(t){throw o.a.enumerateDevicesFailed()}else{const r={user:"front",environment:"back"},o=(null===(e=null==t?void 0:t.facingMode)||void 0===e?void 0:e.ideal)||(null===(n=null==t?void 0:t.facingMode)||void 0===n?void 0:n.exact)||(null==t?void 0:t.facingMode);if("string"==typeof o&&o in r){yield i.a.INSTANCE.load();const e=i.a.INSTANCE.getMainCamera(r[o]);if(e)return Object.assign(Object.assign({},t),{deviceId:e.deviceId})}}return t}))}componentDidMount(){return a(this,void 0,void 0,(function*(){window.addEventListener("orientationchange",this.orientationchangeCallback),yield this.refreshStream()}))}refreshStream(){var t,e,n,r,i,s,l,c;return a(this,void 0,void 0,(function*(){if(console.log("refreshStream",this),o.a.hasCheckedPermission()||(yield o.a.tryCheckPermission()),o.a.hasDeniedPermission())return void(null===(e=(t=this.props).onError)||void 0===e||e.call(t,o.a.permissionDenied()));const a={video:yield this.setDeviceIdInConstraints(this.props.videoConstraints)};try{if(!navigator.mediaDevices){const t=o.a.unknown();return null===(r=(n=this.props).onError)||void 0===r||r.call(n,t),void console.log(t)}this.stopCurrentStreams();try{const t=yield navigator.mediaDevices.getUserMedia(a);this.setState({stream:t},(()=>{var e,n,r,o;null===(n=(e=this.props).onStreamChanged)||void 0===n||n.call(e,t),null===(o=(r=this.props).onReady)||void 0===o||o.call(r)}))}catch(t){const e=o.a.mediaDeviceNotFound();return null===(s=(i=this.props).onError)||void 0===s||s.call(i,e),void console.error(e)}}catch(t){const e=o.a.createFromDOMException(t);return null===(c=(l=this.props).onError)||void 0===c||c.call(l,e),void console.error(e)}}))}stopCurrentStreams(){const t=this.state.stream,e=null==t?void 0:t.getTracks();e&&e.forEach((t=>{t.stop()}))}componentWillUnmount(){window.removeEventListener("orientationchange",this.orientationchangeCallback),this.state.stream&&(this.state.stream.getVideoTracks&&this.state.stream.getAudioTracks&&(this.state.stream.getVideoTracks().forEach((t=>t.stop())),this.state.stream.getAudioTracks().forEach((t=>t.stop()))),this.setState({stream:void 0}))}render(){return this.props.children}updateTorch(t){return a(this,void 0,void 0,(function*(){const e=[{torch:t}];yield this.state.stream.getVideoTracks()[0].applyConstraints({advanced:e})}))}getCapabilities(){if(this.state.stream.getVideoTracks){const t=this.getVideoTrack();return s.getMediaTrackCapabilities(t)}}static getMediaTrackCapabilities(t){if(t&&t.getCapabilities)return t.getCapabilities()}getVideoTrack(){const t=this.state.stream.getVideoTracks();if(t.length>0)return t[0]}}var l=n(21),c=n(41),u=n(34),d=n(64);class h{static isSupported(){return!!document.createElement("canvas").getContext("webgl")}constructor(){this._type="WebGL",this.canvas=document.createElement("canvas");const t=this.gl=this.canvas.getContext("webgl",{willReadFrequently:!0}),e=t.createTexture();t.activeTexture(t.TEXTURE0),t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR);const n=t.createShader(t.VERTEX_SHADER);t.shaderSource(n,"attribute vec2 p;void main(){ gl_Position = vec4(p,0,1);}"),t.compileShader(n);const r=t.createShader(t.FRAGMENT_SHADER);t.shaderSource(r,"precision mediump float;uniform sampler2D texture; uniform vec2 scale; uniform vec2 offset; void main() { gl_FragColor=texture2D( texture, gl_FragCoord.xy * scale + offset );}"),t.compileShader(r);const o=this.program=t.createProgram();t.attachShader(o,n),t.attachShader(o,r),t.linkProgram(o),t.useProgram(o),t.uniform1i(t.getUniformLocation(o,"texture"),0),t.bindBuffer(t.ARRAY_BUFFER,t.createBuffer()),t.bufferData(t.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),t.STATIC_DRAW),t.enableVertexAttribArray(0),t.vertexAttribPointer(0,2,t.FLOAT,!1,0,0)}getImageData(t,e,n,r,o,i,a,s){let l,c;if(i=Math.floor(i),a=Math.floor(a),e=Math.floor(e),n=Math.floor(n),r=Math.floor(r),o=Math.floor(o),t instanceof HTMLVideoElement)[c,l]=[t.videoWidth,t.videoHeight];else{if(!(t instanceof HTMLCanvasElement))throw new Error("Unsupported source type");[c,l]=[t.width,t.height]}(c<e+r||l<n+o)&&u.a.debug("Crop region exceeds source video dimensions. This can happen when the screen is resized or rotated and the video has not yet changed its size. Most likely, the frame we analyzed now contains some garbage data. This is not a problem, unless it happens very frequently.");const h=this.gl;this.canvas.width=i,this.canvas.height=a,h.viewport(0,0,i,a);const p=[r/(i*c),o/(a*l)],f=[e/c,n/l];return h.uniform2fv(h.getUniformLocation(this.program,"scale"),p),h.uniform2fv(h.getUniformLocation(this.program,"offset"),f),h.texImage2D(h.TEXTURE_2D,0,h.RGB,h.RGB,h.UNSIGNED_BYTE,t),h.drawArrays(h.TRIANGLES,0,6),(null==s?void 0:s.byteLength)!==i*a*4&&(s=new Uint8ClampedArray(i*a*4),d.a.INSTANCE.values.set("WebGLNumBufferAllocations",(d.a.INSTANCE.values.get("WebGLNumBufferAllocations")||0)+1)),h.readPixels(0,0,i,a,h.RGBA,h.UNSIGNED_BYTE,s),new ImageData(s,i,a)}}class p{constructor(){this._type="TwoD",this.canvas=document.createElement("canvas"),this.ctx=this.canvas.getContext("2d",{willReadFrequently:!0,alpha:!1}),this.ctx.imageSmoothingEnabled=!1}getImageData(t,e,n,r,o,i,a,s){return this.canvas.width=i,this.canvas.height=a,this.ctx.drawImage(t,e,n,r,o,0,0,i,a),this.ctx.getImageData(0,0,i,a)}}var f=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};class m extends r.default.Component{constructor(t){super(t),this.videoLoaded=!1,this.reloadCanvas=!0,this.swapCameraEnabled=!0,this.activeCamera=void 0,this.save=!1,this._reusableImageBuffer=null,this.onStreamChanged=t=>{this.video.srcObject=t,this.updateCameraInfo(t),this.video.addEventListener("resize",(t=>{this.reloadCanvas=!0}),!1),this.video.addEventListener("loadeddata",(t=>{this.videoLoaded=!0,this.didLoadVideo&&this.didLoadVideo()}),!1)},this.state={facingModeBack:"environment"===this.props.videoConstraints.facingMode,mirrored:this.props.mirrored,deviceId:void 0}}videoSize(){const{clientVideoWidth:t,clientVideoHeight:e}=this.calculateClientVideoConstraints();return new l.a(t,e)}saveExtractedData(){this.save=!0}zoom(){var t;return null!==(t=this.props.zoom)&&void 0!==t?t:1}imageCapture(){if(this.capture)return this.capture;const t=this.videoStream.getVideoTrack();return this.capture=new ImageCapture(t),this.capture}set reusableImageBuffer(t){this._reusableImageBuffer=t}createImageData(t=0,e){return f(this,void 0,void 0,(function*(){if(!this.video||!this.videoLoaded)return;const n=this.getCanvasRenderingContext();if(!n)return;if(e){const t=yield this.imageCapture().takePhoto(),e=yield createImageBitmap(t);u.a.debug("Bitmap size: "+e.width*e.height);const r=this.windowSize(),o=e.height/(r.height+r.y),i=r.width*o,a=r.height*o,s=e.width/2-i/2,l=r.y*o,d=new c.a(s,l,i,a);return u.a.debug("Frame size: "+d.x+"-"+d.y+"-"+d.width+"-"+d.height),n.getImageData(this.video,d.x,d.y,e.width,e.height,d.width,d.height,this._reusableImageBuffer)}let{videoWidth:r,videoHeight:o}=this.video,{clientVideoWidth:i,clientVideoHeight:a,coef:s}=this.calculateClientVideoConstraints();if(0===s)return;const l=this.finderFrame||new c.a(0,0,i,a),d=this.zoom(),h=(r-i/d)/2,p=(o-a/d)/2,f=l.x/s+h,m=l.y/s+p,g=this.finderFrame?s:d,v=l.width/g,b=l.height/g,y=this.calculateFrameSize(t,v,b);return n.getImageData(this.video,f,m,v,b,y.width,y.height,this._reusableImageBuffer)}))}windowSize(){var t;const e=this.props.configuration,n=null!==(t=e.container)&&void 0!==t?t:document.getElementById(e.containerId);if(!n)throw new Error("Container DOM element is required to calculate window size and snap image.");return c.a.fromDOMRect(n.getBoundingClientRect())}calculateClientVideoConstraints(){let{videoWidth:t,videoHeight:e}=this.video,n=this.video.getBoundingClientRect(),r=t,o=e,i=1;return n.width/n.height<=t/e?(i=n.height/e,i>0&&(r=n.width/i)):(i=n.width/t,i>0&&(o=n.height/i)),{clientVideoWidth:r,clientVideoHeight:o,coef:i}}calculateFrameSize(t,e,n){let r=e,o=n;if(t>0&&0!=e&&0!=n){const i=e/n;e>n?(r=e>t?t:e,o=r/i):(o=n>t?t:n,r=o*i)}return new l.a(r,o)}getCanvasRenderingContext(){return this.video?0===this.video.videoWidth?null:(this.canvas&&!this.reloadCanvas||(this.canvas&&this.releaseCanvas(),this.canvas=h.isSupported()?new h:new p,this.reloadCanvas=!1),this.canvas):null}releaseCanvas(){this.canvas&&(this.canvas=null)}componentWillUnmount(){this.releaseCanvas(),this.video=null,this.videoStream=null}style(){var t;const e={display:"block",width:100*this.zoom()+"%",height:100*this.zoom()+"%",left:`${this.zoomMargin()}%`,top:`${this.zoomMargin()}%`,position:"relative",objectFit:"cover",backgroundColor:null===(t=this.props.configuration)||void 0===t?void 0:t.backgroundColor};return this.state.mirrored&&(e.transform="scaleX(-1)"),e}zoomMargin(){const t=this.zoom();return 1===t?0:(1-t)/2*100}render(){const{videoConstraints:t,onReady:e,onError:n}=this.props;return r.default.createElement(s,{videoConstraints:t,preferredCamera:this.state.deviceId||this.props.preferredCamera,onReady:e,onStreamChanged:this.onStreamChanged,onError:n,ref:t=>{this.videoStream=t}},r.default.createElement("video",{autoPlay:!0,muted:!0,playsInline:!0,className:"scanbot-camera-view",ref:t=>{this.video=t},style:this.style()}))}setDirection(t){this.props.videoConstraints.facingMode={ideal:t},this.setState({facingModeBack:"environment"===t,mirrored:"user"===t},(()=>f(this,void 0,void 0,(function*(){yield this.videoStream.refreshStream(),this.swapCameraEnabled=!0}))))}swapCameraFacing(t){if(this.swapCameraEnabled){this.swapCameraEnabled=!1;const e=!this.state.facingModeBack,n=e?"environment":"user";this.props.videoConstraints.facingMode=!0===t?{exact:n}:{ideal:n},this.setState({facingModeBack:e,mirrored:!e},(()=>f(this,void 0,void 0,(function*(){yield this.videoStream.refreshStream(),this.swapCameraEnabled=!0}))))}}switchCamera(t,e){return f(this,void 0,void 0,(function*(){this.swapCameraEnabled&&(this.swapCameraEnabled=!1,this.props.videoConstraints.facingMode=void 0,this.setState({facingModeBack:void 0,mirrored:null!=e?e:this.state.mirrored,deviceId:t},(()=>f(this,void 0,void 0,(function*(){yield this.videoStream.refreshStream(),this.swapCameraEnabled=!0})))))}))}updateCameraInfo(t){this.activeCamera=i.a.getCameraInfoFromStream(t)}getActiveCameraInfo(){return this.activeCamera}setTorchState(t){if(this.activeCamera&&this.activeCamera.supportsTorchControl){return this.videoStream.getVideoTrack().applyConstraints({advanced:[{torch:t}]})}return Promise.reject("Torch is not supported for current camera.")}}},function(t,e,n){"use strict";var r=n(110);e.a=function(t,e){return e?Object(r.a)(t,e,{clone:!1}):t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(33),o=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};class i{static get INSTANCE(){return i._INSTANCE||(i._INSTANCE=new i),i._INSTANCE}constructor(){this.listOfCameras=[],this.strategy="FAST_DEFERRED"}initialize(t){if(t&&(this.strategy=t),"SLOW"===t||"FAST"===t){const e=t;this.load(e)}}load(t){return o(this,void 0,void 0,(function*(){if(!t)if("SLOW_DEFERRED"===this.strategy||"SLOW"===this.strategy)t="SLOW";else if("FAST_DEFERRED"===this.strategy||"FAST"===this.strategy)t="FAST";else if("NONE"===this.strategy)return this.listOfCameras;let e;if("SLOW"===t)e=this.loadSlow();else{if("FAST"!==t)throw new Error(`Unknown mode ${t}`);e=this.loadFast()}try{return this.listOfCameras=yield e,this.listOfCameras}catch(t){throw this.loadSlowResult=void 0,r.a.createFromDOMException(t)}}))}loadSlow(){return this.loadSlowResult=this.loadSlowResult||(()=>o(this,void 0,void 0,(function*(){yield this.assertPermissionsAreOk();const t=[];for(const e of yield this.getVideoDevices()){let n;try{n=yield this.getUserMedia({video:{deviceId:e.deviceId}}),t.push(i.getCameraInfoFromStream(n))}finally{this.stopStream(n),yield new Promise((t=>setTimeout(t,0)))}}return t})))(),this.loadSlowResult}loadFast(){return this.loadFastResult=this.loadFastResult||(()=>o(this,void 0,void 0,(function*(){yield this.assertPermissionsAreOk();const t=[];for(const e of yield this.getVideoDevices()){const n=i.guessparseCameraLabelFacingMode(e.label),r=i.guessparseCameraLabelMaxNumPixels(e.label);t.push({maxNumPixels:r,facingMode:n,supportsTorchControl:void 0,deviceId:e.deviceId,label:e.label})}return t})))(),this.loadFastResult}getMainCamera(t){var e,n,r,o,i,a;return null!==(a=null===(i=null===(o=null===(r=null===(n=null===(e=this.listOfCameras)||void 0===e?void 0:e.filter((e=>e.facingMode===t)))||void 0===n?void 0:n.map(((t,e)=>({camera:t,index:e}))))||void 0===r?void 0:r.sort(((t,e)=>{var n;return-(+t.camera.supportsTorchControl||0)-(+e.camera.supportsTorchControl||0)||-((t.camera.maxNumPixels||0)-(e.camera.maxNumPixels||0))||(null===(n=t.camera.label)||void 0===n?void 0:n.localeCompare(e.camera.label))||t.index-e.index})))||void 0===o?void 0:o[0])||void 0===i?void 0:i.camera)&&void 0!==a?a:null}getVideoDevices(){return o(this,void 0,void 0,(function*(){let t=yield navigator.mediaDevices.enumerateDevices();if(t=t.filter((t=>"videoinput"===t.kind)),t.some((t=>""===t.label))){let e;try{e=yield this.getUserMedia({video:{facingMode:{ideal:"environment"}},audio:!1}),t=yield navigator.mediaDevices.enumerateDevices(),t=t.filter((t=>"videoinput"===t.kind))}finally{this.stopStream(e)}}return t}))}stopStream(t){null==t||t.getTracks().forEach((t=>t.stop()))}static guessparseCameraLabelFacingMode(t){return function(t){const e=["rear","back","rück","arrière","trasera","trás","traseira","posteriore","后面","後面","背面","后置","後置","背置","задней","الخلفية","후","arka","achterzijde","หลัง","baksidan","bagside","sau","bak","tylny","takakamera","belakang","אחורית","πίσω","spate","hátsó","zadní","darrere","zadná","задня","stražnja","belakang","बैक"];for(const n of e)if(t.toLowerCase().includes(n.toLowerCase()))return!0;return!1}(t)?"back":"front"}static guessparseCameraLabelMaxNumPixels(t){const e=RegExp(/\b([0-9]+)mp?\b/).exec(t.toLowerCase()),n=e?1e6*parseInt(e[1],10):NaN;return Number.isNaN(n)?void 0:n}assertPermissionsAreOk(){return o(this,void 0,void 0,(function*(){if(r.a.hasCheckedPermission()||(yield r.a.tryCheckPermission()),r.a.hasDeniedPermission())throw r.a.permissionDenied();if(!navigator.mediaDevices)throw r.a.unknown()}))}static getCameraInfoFromStream(t){var e;return null===(e=t.getVideoTracks().map((t=>{var e,n,r,o,i,a;const s=null===(e=t.getCapabilities)||void 0===e?void 0:e.call(t),l=null===(n=t.getSettings)||void 0===n?void 0:n.call(t),c=t.label;let u=function(t){if("user"===(null==t?void 0:t.toLowerCase()))return"front";if("environment"===(null==t?void 0:t.toLowerCase()))return"back";return"unknown"}(null!==(o=null===(r=null==s?void 0:s.facingMode)||void 0===r?void 0:r[0])&&void 0!==o?o:l.facingMode);"unknown"===u&&(u=this.guessparseCameraLabelFacingMode(c));let d=function(t){var e,n;let r=(null===(e=null==t?void 0:t.width)||void 0===e?void 0:e.max)*(null===(n=null==t?void 0:t.height)||void 0===n?void 0:n.max);if(!r||Number.isNaN(r))return;return r}(s);Number.isNaN(d)&&(d=this.guessparseCameraLabelMaxNumPixels(c));return{facingMode:u,maxNumPixels:d,supportsTorchControl:null!==(a=null!==(i=null==s?void 0:s.torch)&&void 0!==i?i:"torch"in l)&&void 0!==a&&a,label:c,deviceId:l.deviceId}})).sort(((t,e)=>e.maxNumPixels-t.maxNumPixels)))||void 0===e?void 0:e[0]}getUserMedia(t){return o(this,void 0,void 0,(function*(){try{return yield navigator.mediaDevices.getUserMedia(t)}catch(t){throw r.a.mediaDeviceNotFound()}}))}}},function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(93)},function(t,e,n){"use strict";var r=n(111);e.a=r.a},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(0),o=n(41),i=n(6),a=n(24);class s extends r.default.Component{get style(){return this.props.configuration.style}get holeRect(){return this.holePosition}constructor(t){super(t),this.holePosition=o.a.empty(),this.resizeObserver=new ResizeObserver((()=>{this.updateWindowSize()})),this.componentDidUpdate=t=>{var e,n,r,o;(null===(e=this.props.padding)||void 0===e?void 0:e.minTopPadding)===(null===(n=t.padding)||void 0===n?void 0:n.minTopPadding)&&(null===(r=this.props.padding)||void 0===r?void 0:r.minBottomPadding)===(null===(o=t.padding)||void 0===o?void 0:o.minBottomPadding)&&this.props.configuration===t.configuration&&this.props.guidanceConfiguration===t.guidanceConfiguration||this.setState({shouldUpdateCanvas:!0}),this.updateCanvas()},this.updateWindowSize=()=>{this.setState({shouldUpdateCanvas:!0})},this.getVideoSize=()=>{var t;return null!==(t=this.holeCanvas.getBoundingClientRect())&&void 0!==t?t:new DOMRect},this.scaleForRetinaDisplay=t=>{if(window.devicePixelRatio>1){var e=t.width,n=t.height;t.width=e*window.devicePixelRatio,t.height=n*window.devicePixelRatio,t.style.width=e+"px",t.style.height=n+"px",t.getContext("2d").scale(window.devicePixelRatio,window.devicePixelRatio)}},this.updateCanvas=()=>{var t,e,n,r,o;if(!this.state.shouldUpdateCanvas)return;this.setState({shouldUpdateCanvas:!1});const i=this.getVideoSize().width,a=this.getVideoSize().height;this.holeCanvas.width=i,this.holeCanvas.height=a,this.crosshairCanvas.width=i,this.crosshairCanvas.height=a,this.scaleForRetinaDisplay(this.crosshairCanvas);const s=i-2*this.props.configuration.style.strokeWidth,l=Math.max(20,(i-s)/2),c=Math.min(s,i-2*l),u=this.props.configuration.aspectRatio.width/this.props.configuration.aspectRatio.height;this.holePosition.width=c,this.holePosition.height=this.holePosition.width/u,this.holePosition.x=i/2-c/2;const d=(null===(t=this.guidanceText)||void 0===t?void 0:t.clientHeight)+this.guidanceTextTopPadding||0,h=Math.max(10,null!==(n=null===(e=this.props.padding)||void 0===e?void 0:e.minTopPadding)&&void 0!==n?n:0),p=a-h-Math.max(10,null!==(o=null===(r=this.props.padding)||void 0===r?void 0:r.minBottomPadding)&&void 0!==o?o:0)-d;this.holePosition.height>p?(this.holePosition.height=p,this.holePosition.width=this.holePosition.height*u,this.holePosition.x=i/2-this.holePosition.width/2,this.holePosition.y=h):this.holePosition.y=h+(p-this.holePosition.height)/1.9;const f=this.holeCanvas.getContext("2d");f.save(),this.drawBackground(f),f.globalCompositeOperation="destination-out",this.drawHole();const m=this.crosshairCanvas.getContext("2d");m.globalCompositeOperation="source-over","FinderStrokedStyle"===this.props.configuration.style._type?this.drawHoleOutline():"FinderCorneredStyle"===this.props.configuration.style._type&&this.drawHoleCorners(),f.restore(),m.restore()},this.drawBackground=t=>{const{width:e,height:n}=this.getVideoSize();t.clearRect(0,0,e,n),t.beginPath(),t.rect(0,0,e,n),t.fillStyle=i.b.getColorValue(this.props.configuration.overlayColor),t.fill()},this.drawHole=()=>{const t=this.holeCanvas.getContext("2d"),e=this.cornerRadius(),n=this.holePosition.x,r=this.holePosition.y,o=this.holePosition.width,i=this.holePosition.height;t.beginPath(),t.fillStyle="black",t.moveTo(n+e,r),t.arcTo(n+o,r,n+o,r+i,e),t.arcTo(n+o,r+i,n,r+i,e),t.arcTo(n,r+i,n,r,e),t.arcTo(n,r,n+o,r,e),t.closePath(),t.fill()},this.drawCrosshair=()=>{const t=this.crosshairCanvas.getContext("2d"),e=this.holePosition.x+this.holePosition.width/2,n=this.holePosition.y+this.holePosition.height/2;t.beginPath(),t.moveTo(e-10,n),t.lineTo(e+10,n),t.moveTo(e,n-10),t.lineTo(e,n+10),t.strokeStyle="white",t.fillStyle="white",t.lineWidth=1,t.stroke()},this.drawHoleCorners=()=>{const t=this.crosshairCanvas.getContext("2d"),e=this.holePosition.x,n=this.holePosition.y,r=this.holePosition.width,o=this.holePosition.height,a=15,s=this.style.strokeWidth,l=this.cornerRadius();t.beginPath(),t.moveTo(e,n+a),t.arcTo(e,n,e+r,n,l),t.lineTo(e+a,n),t.moveTo(e+r-a,n),t.arcTo(e+r,n,e+r,n+o,l),t.lineTo(e+r,n+a),t.moveTo(e+r,n+o-a),t.arcTo(e+r,n+o,e,n+o,l),t.lineTo(e+r-a,n+o),t.moveTo(e,n+o-a),t.arcTo(e,n+o,e+r,n+o,l),t.lineTo(e+a,n+o),t.strokeStyle=i.b.getColorValue(this.style.strokeColor),t.lineWidth=s,t.stroke()},this.drawHoleOutline=()=>{const t=this.crosshairCanvas.getContext("2d"),e=this.holePosition.x,n=this.holePosition.y,r=this.holePosition.width,o=this.holePosition.height,a=this.cornerRadius(),s=this.style.strokeWidth;t.beginPath(),t.moveTo(e+a,n),t.arcTo(e+r,n,e+r,n+o,a),t.moveTo(e+r,n+a),t.arcTo(e+r,n+o,e,n+o,a),t.moveTo(e+r-a,n+o),t.arcTo(e,n+o,e,n,a),t.moveTo(e,n+o-a),t.arcTo(e,n,e+r,n,a),t.strokeStyle=i.b.getColorValue(this.style.strokeColor),t.lineWidth=s,t.stroke()},this.guidanceTextTopPadding=20,this.render=()=>r.default.createElement("div",{style:{position:"absolute",width:"100%",height:"100%",textAlign:"left"},onClick:t=>{const e=this.holePosition;t.clientX>this.holePosition.x&&t.clientX<e.x+e.width&&t.clientY>e.y&&t.clientY<e.y+e.height&&console.log("Clicked inside hole, possibly click events need to be diverted")}},r.default.createElement("canvas",{ref:t=>{this.holeCanvas=t},style:{position:"absolute",width:"100%",height:"100%"}}),r.default.createElement("canvas",{ref:t=>{this.crosshairCanvas=t},style:{position:"absolute",width:"100%",height:"100%"}}),this.guidance.visible&&r.default.createElement("div",{ref:t=>{this.guidanceText=t},style:{position:"absolute",display:"block",top:this.holePosition.y+this.holePosition.height+this.guidanceTextTopPadding,left:0,width:"100%",textAlign:"center"}},r.default.createElement(a.a,{style:{display:"inline-block",backgroundColor:i.b.getColorValue(this.guidance.background.fillColor),borderStyle:"solid",borderColor:i.b.getColorValue(this.guidance.background.strokeColor),borderWidth:this.style.strokeWidth,borderRadius:4,padding:"4px 8px",flex:1},config:this.guidance.title}))),this.state={shouldUpdateCanvas:!0}}componentDidMount(){this.updateWindowSize(),this.resizeObserver.observe(this.holeCanvas)}componentWillUnmount(){this.resizeObserver.disconnect()}bottomOfGuidanceText(){var t,e;return this.holeRect.bottom()+(null!==(e=null===(t=this.guidanceText)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0)+this.guidanceTextTopPadding}get guidance(){return this.props.guidanceConfiguration}cornerRadius(){return Math.max(0,Math.min(this.style.cornerRadius,this.holePosition.width/2,this.holePosition.height/2))}}},function(t,e,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var i=typeof r;if("string"===i||"number"===i)t.push(r);else if(Array.isArray(r)){if(r.length){var a=o.apply(null,r);a&&t.push(a)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var s in r)n.call(r,s)&&r[s]&&t.push(s);else t.push(r.toString())}}return t.join(" ")}t.exports?(o.default=o,t.exports=o):void 0===(r=function(){return o}.apply(e,[]))||(t.exports=r)}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return G})),n.d(e,"c",(function(){return tt})),n.d(e,"d",(function(){return nt})),n.d(e,"e",(function(){return et})),n.d(e,"f",(function(){return K})),n.d(e,"g",(function(){return J}));var r="-ms-",o="-moz-",i="-webkit-",a="comm",s="rule",l="decl",c="@keyframes",u=Math.abs,d=String.fromCharCode,h=Object.assign;function p(t){return t.trim()}function f(t,e){return(t=e.exec(t))?t[0]:t}function m(t,e,n){return t.replace(e,n)}function g(t,e,n){return t.indexOf(e,n)}function v(t,e){return 0|t.charCodeAt(e)}function b(t,e,n){return t.slice(e,n)}function y(t){return t.length}function A(t){return t.length}function C(t,e){return e.push(t),t}function S(t,e){return t.map(e).join("")}function x(t,e){return t.filter((function(t){return!f(t,e)}))}var w=1,O=1,E=0,L=0,j=0,k="";function _(t,e,n,r,o,i,a,s){return{value:t,root:e,parent:n,type:r,props:o,children:i,line:w,column:O,length:a,return:"",siblings:s}}function T(t,e){return h(_("",null,null,"",null,null,0,t.siblings),t,{length:-t.length},e)}function P(t){for(;t.root;)t=T(t.root,{children:[t]});C(t,t.siblings)}function R(){return j=L<E?v(k,L++):0,O++,10===j&&(O=1,w++),j}function D(){return v(k,L)}function B(){return L}function F(t,e){return b(k,t,e)}function I(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function M(t){return w=O=1,E=y(k=t),L=0,[]}function W(t){return k="",t}function z(t){return p(F(L-1,U(91===t?t+2:40===t?t+1:t)))}function N(t){for(;(j=D())&&j<33;)R();return I(t)>2||I(j)>3?"":" "}function V(t,e){for(;--e&&R()&&!(j<48||j>102||j>57&&j<65||j>70&&j<97););return F(t,B()+(e<6&&32==D()&&32==R()))}function U(t){for(;R();)switch(j){case t:return L;case 34:case 39:34!==t&&39!==t&&U(j);break;case 40:41===t&&U(t);break;case 92:R()}return L}function H(t,e){for(;R()&&t+j!==57&&(t+j!==84||47!==D()););return"/*"+F(e,L-1)+"*"+d(47===t?t:R())}function $(t){for(;!I(D());)R();return F(t,L)}function G(t){return W(Y("",null,null,null,[""],t=M(t),0,[0],t))}function Y(t,e,n,r,o,i,a,s,l){for(var c=0,h=0,p=a,f=0,b=0,A=0,S=1,x=1,E=1,_=0,T="",P=o,F=i,I=r,M=T;x;)switch(A=_,_=R()){case 40:if(108!=A&&58==v(M,p-1)){-1!=g(M+=m(z(_),"&","&\f"),"&\f",u(c?s[c-1]:0))&&(E=-1);break}case 34:case 39:case 91:M+=z(_);break;case 9:case 10:case 13:case 32:M+=N(A);break;case 92:M+=V(B()-1,7);continue;case 47:switch(D()){case 42:case 47:C(Z(H(R(),B()),e,n,l),l);break;default:M+="/"}break;case 123*S:s[c++]=y(M)*E;case 125*S:case 59:case 0:switch(_){case 0:case 125:x=0;case 59+h:-1==E&&(M=m(M,/\f/g,"")),b>0&&y(M)-p&&C(b>32?X(M+";",r,n,p-1,l):X(m(M," ","")+";",r,n,p-2,l),l);break;case 59:M+=";";default:if(C(I=Q(M,e,n,c,h,o,s,T,P=[],F=[],p,i),i),123===_)if(0===h)Y(M,e,I,I,P,i,p,s,F);else switch(99===f&&110===v(M,3)?100:f){case 100:case 108:case 109:case 115:Y(t,I,I,r&&C(Q(t,I,I,0,0,o,s,T,o,P=[],p,F),F),o,F,p,s,r?P:F);break;default:Y(M,I,I,I,[""],F,0,s,F)}}c=h=b=0,S=E=1,T=M="",p=a;break;case 58:p=1+y(M),b=A;default:if(S<1)if(123==_)--S;else if(125==_&&0==S++&&125==(j=L>0?v(k,--L):0,O--,10===j&&(O=1,w--),j))continue;switch(M+=d(_),_*S){case 38:E=h>0?1:(M+="\f",-1);break;case 44:s[c++]=(y(M)-1)*E,E=1;break;case 64:45===D()&&(M+=z(R())),f=D(),h=p=y(T=M+=$(B())),_++;break;case 45:45===A&&2==y(M)&&(S=0)}}return i}function Q(t,e,n,r,o,i,a,l,c,d,h,f){for(var g=o-1,v=0===o?i:[""],y=A(v),C=0,S=0,x=0;C<r;++C)for(var w=0,O=b(t,g+1,g=u(S=a[C])),E=t;w<y;++w)(E=p(S>0?v[w]+" "+O:m(O,/&\f/g,v[w])))&&(c[x++]=E);return _(t,e,n,0===o?s:l,c,d,h,f)}function Z(t,e,n,r){return _(t,e,n,a,d(j),b(t,2,-2),0,r)}function X(t,e,n,r,o){return _(t,e,n,l,b(t,0,r),b(t,r+1,-1),r,o)}function q(t,e,n){switch(function(t,e){return 45^v(t,0)?(((e<<2^v(t,0))<<2^v(t,1))<<2^v(t,2))<<2^v(t,3):0}(t,e)){case 5103:return i+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return i+t+t;case 4789:return o+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return i+t+o+t+r+t+t;case 5936:switch(v(t,e+11)){case 114:return i+t+r+m(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return i+t+r+m(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return i+t+r+m(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return i+t+r+t+t;case 6165:return i+t+r+"flex-"+t+t;case 5187:return i+t+m(t,/(\w+).+(:[^]+)/,i+"box-$1$2"+r+"flex-$1$2")+t;case 5443:return i+t+r+"flex-item-"+m(t,/flex-|-self/g,"")+(f(t,/flex-|baseline/)?"":r+"grid-row-"+m(t,/flex-|-self/g,""))+t;case 4675:return i+t+r+"flex-line-pack"+m(t,/align-content|flex-|-self/g,"")+t;case 5548:return i+t+r+m(t,"shrink","negative")+t;case 5292:return i+t+r+m(t,"basis","preferred-size")+t;case 6060:return i+"box-"+m(t,"-grow","")+i+t+r+m(t,"grow","positive")+t;case 4554:return i+m(t,/([^-])(transform)/g,"$1"+i+"$2")+t;case 6187:return m(m(m(t,/(zoom-|grab)/,i+"$1"),/(image-set)/,i+"$1"),t,"")+t;case 5495:case 3959:return m(t,/(image-set\([^]*)/,i+"$1$`$1");case 4968:return m(m(t,/(.+:)(flex-)?(.*)/,i+"box-pack:$3"+r+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+i+t+t;case 4200:if(!f(t,/flex-|baseline/))return r+"grid-column-align"+b(t,e)+t;break;case 2592:case 3360:return r+m(t,"template-","")+t;case 4384:case 3616:return n&&n.some((function(t,n){return e=n,f(t.props,/grid-\w+-end/)}))?~g(t+(n=n[e].value),"span",0)?t:r+m(t,"-start","")+t+r+"grid-row-span:"+(~g(n,"span",0)?f(n,/\d+/):+f(n,/\d+/)-+f(t,/\d+/))+";":r+m(t,"-start","")+t;case 4896:case 4128:return n&&n.some((function(t){return f(t.props,/grid-\w+-start/)}))?t:r+m(m(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return m(t,/(.+)-inline(.+)/,i+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(y(t)-1-e>6)switch(v(t,e+1)){case 109:if(45!==v(t,e+4))break;case 102:return m(t,/(.+:)(.+)-([^]+)/,"$1"+i+"$2-$3$1"+o+(108==v(t,e+3)?"$3":"$2-$3"))+t;case 115:return~g(t,"stretch",0)?q(m(t,"stretch","fill-available"),e,n)+t:t}break;case 5152:case 5920:return m(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(e,n,o,i,a,s,l){return r+n+":"+o+l+(i?r+n+"-span:"+(a?s:+s-+o)+l:"")+t}));case 4949:if(121===v(t,e+6))return m(t,":",":"+i)+t;break;case 6444:switch(v(t,45===v(t,14)?18:11)){case 120:return m(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+i+(45===v(t,14)?"inline-":"")+"box$3$1"+i+"$2$3$1"+r+"$2box$3")+t;case 100:return m(t,":",":"+r)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return m(t,"scroll-","scroll-snap-")+t}return t}function K(t,e){for(var n="",r=0;r<t.length;r++)n+=e(t[r],r,t,e)||"";return n}function J(t,e,n,r){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case l:return t.return=t.return||t.value;case a:return"";case c:return t.return=t.value+"{"+K(t.children,r)+"}";case s:if(!y(t.value=t.props.join(",")))return""}return y(n=K(t.children,r))?t.return=t.value+"{"+n+"}":""}function tt(t){var e=A(t);return function(n,r,o,i){for(var a="",s=0;s<e;s++)a+=t[s](n,r,o,i)||"";return a}}function et(t){return function(e){e.root||(e=e.return)&&t(e)}}function nt(t,e,n,o){if(t.length>-1&&!t.return)switch(t.type){case l:return void(t.return=q(t.value,t.length,n));case c:return K([T(t,{value:m(t.value,"@","@"+i)})],o);case s:if(t.length)return S(n=t.props,(function(e){switch(f(e,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":P(T(t,{props:[m(e,/:(read-\w+)/,":-moz-$1")]})),P(T(t,{props:[e]})),h(t,{props:x(n,o)});break;case"::placeholder":P(T(t,{props:[m(e,/:(plac\w+)/,":"+i+"input-$1")]})),P(T(t,{props:[m(e,/:(plac\w+)/,":-moz-$1")]})),P(T(t,{props:[m(e,/:(plac\w+)/,r+"input-$1")]})),P(T(t,{props:[e]})),h(t,{props:x(n,o)})}return""}))}}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(1),o=n(13);class i extends o.a{constructor(t={}){super(),this.title=new r.j({visible:!1,text:"Scan Item",color:"?sbColorOnPrimary"}),this.mode="SOLID",this.backgroundColor="?sbColorPrimary",this.cancelButton=new r.c({text:"Cancel",background:new r.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new r.d({color:"?sbColorOnPrimary"})}),void 0!==t.title&&(this.title=new r.j(t.title)),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.backgroundColor&&(this.backgroundColor=t.backgroundColor),void 0!==t.cancelButton&&(this.cancelButton=new r.c(t.cancelButton))}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i}));var r=n(29);function o(t,e){let n;return n=e?Object(r.c)(t).withConfig({displayName:e.label,shouldForwardProp:e.shouldForwardProp}):Object(r.c)(t),n}const i=(t,e)=>{t.componentStyle&&(t.componentStyle.rules=e(t.componentStyle.rules))}},function(t,e,n){"use strict";var r=n(112);e.a=r.a},function(t,e,n){"use strict";var r=n(131);e.a=r.a},function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i}));var r=n(8);function o(t,e,n){return Math.min(Math.max(t,e),n)}function i(t,e,n){return new r.a(o(t.x,-e/2,n.width-e/2),o(t.y,-e/2,n.height-e/2))}},,function(t,e,n){"use strict";n.r(e),n.d(e,"BarcodeFormatConfigurationBase",(function(){return r})),n.d(e,"BarcodeFormatOneDConfigurationBase",(function(){return o})),n.d(e,"BarcodeFormatCodabarConfiguration",(function(){return l})),n.d(e,"BarcodeFormatCode11Configuration",(function(){return c})),n.d(e,"BarcodeFormatCode39Configuration",(function(){return u})),n.d(e,"BarcodeFormatCode93Configuration",(function(){return d})),n.d(e,"BarcodeFormatCode128Configuration",(function(){return h})),n.d(e,"BarcodeFormatCode2Of5Configuration",(function(){return p})),n.d(e,"BarcodeFormatDataBarConfiguration",(function(){return f})),n.d(e,"BarcodeFormatDataBarExpandedConfiguration",(function(){return m})),n.d(e,"BarcodeFormatDataBarLimitedConfiguration",(function(){return g})),n.d(e,"BarcodeFormatITFConfiguration",(function(){return v})),n.d(e,"BarcodeFormatMSIPlesseyConfiguration",(function(){return b})),n.d(e,"BarcodeFormatUpcEanConfiguration",(function(){return y})),n.d(e,"BarcodeFormatPharmaCodeConfiguration",(function(){return A})),n.d(e,"BarcodeFormatTwoDConfigurationBase",(function(){return i})),n.d(e,"BarcodeFormatAztecConfiguration",(function(){return C})),n.d(e,"BarcodeFormatQRCodeConfiguration",(function(){return S})),n.d(e,"BarcodeFormatPDF417Configuration",(function(){return x})),n.d(e,"BarcodeFormatMicroPDF417Configuration",(function(){return w})),n.d(e,"BarcodeFormatDataMatrixConfiguration",(function(){return O})),n.d(e,"BarcodeFormatMaxiCodeConfiguration",(function(){return E})),n.d(e,"BarcodeFormatFourStateConfigurationBase",(function(){return a})),n.d(e,"BarcodeFormatAustraliaPostConfiguration",(function(){return L})),n.d(e,"BarcodeFormatJapanPostConfiguration",(function(){return j})),n.d(e,"BarcodeFormatRoyalMailConfiguration",(function(){return k})),n.d(e,"BarcodeFormatRoyalTNTPostConfiguration",(function(){return _})),n.d(e,"BarcodeFormatUSPSIntelligentMailConfiguration",(function(){return T})),n.d(e,"BarcodeFormatPharmaCodeTwoTrackConfiguration",(function(){return P})),n.d(e,"BarcodeFormatGS1CompositeConfiguration",(function(){return R})),n.d(e,"BarcodeFormatCommonOneDConfiguration",(function(){return D})),n.d(e,"BarcodeFormatCommonTwoDConfiguration",(function(){return B})),n.d(e,"BarcodeFormatCommonFourStateConfiguration",(function(){return F})),n.d(e,"BarcodeFormatCommonConfiguration",(function(){return I}));var r,o,i,a,s=n(5);!function(t){t.From=function(t){const e=t._type;switch(e){case"BarcodeFormatCodabarConfiguration":return new l(t);case"BarcodeFormatCode11Configuration":return new c(t);case"BarcodeFormatCode39Configuration":return new u(t);case"BarcodeFormatCode93Configuration":return new d(t);case"BarcodeFormatCode128Configuration":return new h(t);case"BarcodeFormatCode2Of5Configuration":return new p(t);case"BarcodeFormatDataBarConfiguration":return new f(t);case"BarcodeFormatDataBarExpandedConfiguration":return new m(t);case"BarcodeFormatDataBarLimitedConfiguration":return new g(t);case"BarcodeFormatITFConfiguration":return new v(t);case"BarcodeFormatMSIPlesseyConfiguration":return new b(t);case"BarcodeFormatUpcEanConfiguration":return new y(t);case"BarcodeFormatPharmaCodeConfiguration":return new A(t);case"BarcodeFormatAztecConfiguration":return new C(t);case"BarcodeFormatQRCodeConfiguration":return new S(t);case"BarcodeFormatPDF417Configuration":return new x(t);case"BarcodeFormatMicroPDF417Configuration":return new w(t);case"BarcodeFormatDataMatrixConfiguration":return new O(t);case"BarcodeFormatMaxiCodeConfiguration":return new E(t);case"BarcodeFormatAustraliaPostConfiguration":return new L(t);case"BarcodeFormatJapanPostConfiguration":return new j(t);case"BarcodeFormatRoyalMailConfiguration":return new k(t);case"BarcodeFormatRoyalTNTPostConfiguration":return new _(t);case"BarcodeFormatUSPSIntelligentMailConfiguration":return new T(t);case"BarcodeFormatPharmaCodeTwoTrackConfiguration":return new P(t);case"BarcodeFormatGS1CompositeConfiguration":return new R(t);case"BarcodeFormatCommonOneDConfiguration":return new D(t);case"BarcodeFormatCommonTwoDConfiguration":return new B(t);case"BarcodeFormatCommonFourStateConfiguration":return new F(t);case"BarcodeFormatCommonConfiguration":return new I(t);default:throw`Unknown child class name: ${e}`}}}(r||(r={})),function(t){t.From=function(t){const e=t._type;switch(e){case"BarcodeFormatCodabarConfiguration":return new l(t);case"BarcodeFormatCode11Configuration":return new c(t);case"BarcodeFormatCode39Configuration":return new u(t);case"BarcodeFormatCode93Configuration":return new d(t);case"BarcodeFormatCode128Configuration":return new h(t);case"BarcodeFormatCode2Of5Configuration":return new p(t);case"BarcodeFormatDataBarConfiguration":return new f(t);case"BarcodeFormatDataBarExpandedConfiguration":return new m(t);case"BarcodeFormatDataBarLimitedConfiguration":return new g(t);case"BarcodeFormatITFConfiguration":return new v(t);case"BarcodeFormatMSIPlesseyConfiguration":return new b(t);case"BarcodeFormatUpcEanConfiguration":return new y(t);case"BarcodeFormatPharmaCodeConfiguration":return new A(t);default:throw`Unknown child class name: ${e}`}}}(o||(o={}));class l extends s.a{constructor(t={}){super(),this._type="BarcodeFormatCodabarConfiguration",this.regexFilter="",this.minimum1DQuietZoneSize=6,this.minimumTextLength=0,this.maximumTextLength=0,this.returnStartEnd=!1,void 0!==t.regexFilter&&(this.regexFilter=t.regexFilter),void 0!==t.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=t.minimum1DQuietZoneSize),void 0!==t.minimumTextLength&&(this.minimumTextLength=t.minimumTextLength),void 0!==t.maximumTextLength&&(this.maximumTextLength=t.maximumTextLength),void 0!==t.returnStartEnd&&(this.returnStartEnd=t.returnStartEnd)}}class c extends s.a{constructor(t={}){super(),this._type="BarcodeFormatCode11Configuration",this.regexFilter="",this.minimum1DQuietZoneSize=6,this.stripCheckDigits=!1,this.minimumTextLength=0,this.maximumTextLength=0,this.checksum=!0,void 0!==t.regexFilter&&(this.regexFilter=t.regexFilter),void 0!==t.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=t.minimum1DQuietZoneSize),void 0!==t.stripCheckDigits&&(this.stripCheckDigits=t.stripCheckDigits),void 0!==t.minimumTextLength&&(this.minimumTextLength=t.minimumTextLength),void 0!==t.maximumTextLength&&(this.maximumTextLength=t.maximumTextLength),void 0!==t.checksum&&(this.checksum=t.checksum)}}class u extends s.a{constructor(t={}){super(),this._type="BarcodeFormatCode39Configuration",this.regexFilter="",this.minimum1DQuietZoneSize=6,this.stripCheckDigits=!1,this.minimumTextLength=0,this.maximumTextLength=0,this.code32=!1,this.code39=!0,this.pzn=!0,this.tryCode39ExtendedMode=!1,this.useCode39CheckDigit=!1,void 0!==t.regexFilter&&(this.regexFilter=t.regexFilter),void 0!==t.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=t.minimum1DQuietZoneSize),void 0!==t.stripCheckDigits&&(this.stripCheckDigits=t.stripCheckDigits),void 0!==t.minimumTextLength&&(this.minimumTextLength=t.minimumTextLength),void 0!==t.maximumTextLength&&(this.maximumTextLength=t.maximumTextLength),void 0!==t.code32&&(this.code32=t.code32),void 0!==t.code39&&(this.code39=t.code39),void 0!==t.pzn&&(this.pzn=t.pzn),void 0!==t.tryCode39ExtendedMode&&(this.tryCode39ExtendedMode=t.tryCode39ExtendedMode),void 0!==t.useCode39CheckDigit&&(this.useCode39CheckDigit=t.useCode39CheckDigit)}}class d extends s.a{constructor(t={}){super(),this._type="BarcodeFormatCode93Configuration",this.regexFilter="",this.minimum1DQuietZoneSize=6,this.minimumTextLength=0,this.maximumTextLength=0,void 0!==t.regexFilter&&(this.regexFilter=t.regexFilter),void 0!==t.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=t.minimum1DQuietZoneSize),void 0!==t.minimumTextLength&&(this.minimumTextLength=t.minimumTextLength),void 0!==t.maximumTextLength&&(this.maximumTextLength=t.maximumTextLength)}}class h extends s.a{constructor(t={}){super(),this._type="BarcodeFormatCode128Configuration",this.regexFilter="",this.minimum1DQuietZoneSize=6,this.gs1Handling="PARSE",this.minimumTextLength=0,this.maximumTextLength=0,void 0!==t.regexFilter&&(this.regexFilter=t.regexFilter),void 0!==t.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=t.minimum1DQuietZoneSize),void 0!==t.gs1Handling&&(this.gs1Handling=t.gs1Handling),void 0!==t.minimumTextLength&&(this.minimumTextLength=t.minimumTextLength),void 0!==t.maximumTextLength&&(this.maximumTextLength=t.maximumTextLength)}}class p extends s.a{constructor(t={}){super(),this._type="BarcodeFormatCode2Of5Configuration",this.regexFilter="",this.minimum1DQuietZoneSize=6,this.stripCheckDigits=!1,this.minimumTextLength=0,this.maximumTextLength=0,this.iata2of5=!0,this.code25=!1,this.industrial2of5=!0,this.useIATA2OF5Checksum=!0,void 0!==t.regexFilter&&(this.regexFilter=t.regexFilter),void 0!==t.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=t.minimum1DQuietZoneSize),void 0!==t.stripCheckDigits&&(this.stripCheckDigits=t.stripCheckDigits),void 0!==t.minimumTextLength&&(this.minimumTextLength=t.minimumTextLength),void 0!==t.maximumTextLength&&(this.maximumTextLength=t.maximumTextLength),void 0!==t.iata2of5&&(this.iata2of5=t.iata2of5),void 0!==t.code25&&(this.code25=t.code25),void 0!==t.industrial2of5&&(this.industrial2of5=t.industrial2of5),void 0!==t.useIATA2OF5Checksum&&(this.useIATA2OF5Checksum=t.useIATA2OF5Checksum)}}class f extends s.a{constructor(t={}){super(),this._type="BarcodeFormatDataBarConfiguration",this.regexFilter="",this.minimum1DQuietZoneSize=6,this.gs1Handling="PARSE",void 0!==t.regexFilter&&(this.regexFilter=t.regexFilter),void 0!==t.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=t.minimum1DQuietZoneSize),void 0!==t.gs1Handling&&(this.gs1Handling=t.gs1Handling)}}class m extends s.a{constructor(t={}){super(),this._type="BarcodeFormatDataBarExpandedConfiguration",this.regexFilter="",this.minimum1DQuietZoneSize=6,this.gs1Handling="PARSE",void 0!==t.regexFilter&&(this.regexFilter=t.regexFilter),void 0!==t.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=t.minimum1DQuietZoneSize),void 0!==t.gs1Handling&&(this.gs1Handling=t.gs1Handling)}}class g extends s.a{constructor(t={}){super(),this._type="BarcodeFormatDataBarLimitedConfiguration",this.regexFilter="",this.minimum1DQuietZoneSize=6,this.gs1Handling="PARSE",void 0!==t.regexFilter&&(this.regexFilter=t.regexFilter),void 0!==t.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=t.minimum1DQuietZoneSize),void 0!==t.gs1Handling&&(this.gs1Handling=t.gs1Handling)}}class v extends s.a{constructor(t={}){super(),this._type="BarcodeFormatITFConfiguration",this.regexFilter="",this.minimum1DQuietZoneSize=6,this.minimumTextLength=0,this.maximumTextLength=0,void 0!==t.regexFilter&&(this.regexFilter=t.regexFilter),void 0!==t.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=t.minimum1DQuietZoneSize),void 0!==t.minimumTextLength&&(this.minimumTextLength=t.minimumTextLength),void 0!==t.maximumTextLength&&(this.maximumTextLength=t.maximumTextLength)}}class b extends s.a{constructor(t={}){super(),this._type="BarcodeFormatMSIPlesseyConfiguration",this.regexFilter="",this.minimum1DQuietZoneSize=6,this.stripCheckDigits=!1,this.minimumTextLength=0,this.maximumTextLength=0,this.checksumAlgorithms=["MOD_10"],void 0!==t.regexFilter&&(this.regexFilter=t.regexFilter),void 0!==t.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=t.minimum1DQuietZoneSize),void 0!==t.stripCheckDigits&&(this.stripCheckDigits=t.stripCheckDigits),void 0!==t.minimumTextLength&&(this.minimumTextLength=t.minimumTextLength),void 0!==t.maximumTextLength&&(this.maximumTextLength=t.maximumTextLength),void 0!==t.checksumAlgorithms&&(this.checksumAlgorithms=t.checksumAlgorithms.map((t=>t)))}}class y extends s.a{constructor(t={}){super(),this._type="BarcodeFormatUpcEanConfiguration",this.regexFilter="",this.minimum1DQuietZoneSize=6,this.stripCheckDigits=!1,this.ean8=!0,this.ean13=!0,this.upca=!0,this.upce=!0,this.extensions="AllowAny",void 0!==t.regexFilter&&(this.regexFilter=t.regexFilter),void 0!==t.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=t.minimum1DQuietZoneSize),void 0!==t.stripCheckDigits&&(this.stripCheckDigits=t.stripCheckDigits),void 0!==t.ean8&&(this.ean8=t.ean8),void 0!==t.ean13&&(this.ean13=t.ean13),void 0!==t.upca&&(this.upca=t.upca),void 0!==t.upce&&(this.upce=t.upce),void 0!==t.extensions&&(this.extensions=t.extensions)}}class A extends s.a{constructor(t={}){super(),this._type="BarcodeFormatPharmaCodeConfiguration",this.regexFilter="",this.minimum1DQuietZoneSize=6,this.minimumValue=16,this.allowNarrowBarsOnly=!1,this.allowWideBarsOnly=!1,void 0!==t.regexFilter&&(this.regexFilter=t.regexFilter),void 0!==t.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=t.minimum1DQuietZoneSize),void 0!==t.minimumValue&&(this.minimumValue=t.minimumValue),void 0!==t.allowNarrowBarsOnly&&(this.allowNarrowBarsOnly=t.allowNarrowBarsOnly),void 0!==t.allowWideBarsOnly&&(this.allowWideBarsOnly=t.allowWideBarsOnly)}}!function(t){t.From=function(t){const e=t._type;switch(e){case"BarcodeFormatAztecConfiguration":return new C(t);case"BarcodeFormatQRCodeConfiguration":return new S(t);case"BarcodeFormatPDF417Configuration":return new x(t);case"BarcodeFormatMicroPDF417Configuration":return new w(t);case"BarcodeFormatDataMatrixConfiguration":return new O(t);case"BarcodeFormatMaxiCodeConfiguration":return new E(t);default:throw`Unknown child class name: ${e}`}}}(i||(i={}));class C extends s.a{constructor(t={}){super(),this._type="BarcodeFormatAztecConfiguration",this.regexFilter="",this.gs1Handling="PARSE",void 0!==t.regexFilter&&(this.regexFilter=t.regexFilter),void 0!==t.gs1Handling&&(this.gs1Handling=t.gs1Handling)}}class S extends s.a{constructor(t={}){super(),this._type="BarcodeFormatQRCodeConfiguration",this.regexFilter="",this.gs1Handling="PARSE",this.strictMode=!0,this.qr=!0,this.microQr=!1,this.rmqr=!1,void 0!==t.regexFilter&&(this.regexFilter=t.regexFilter),void 0!==t.gs1Handling&&(this.gs1Handling=t.gs1Handling),void 0!==t.strictMode&&(this.strictMode=t.strictMode),void 0!==t.qr&&(this.qr=t.qr),void 0!==t.microQr&&(this.microQr=t.microQr),void 0!==t.rmqr&&(this.rmqr=t.rmqr)}}class x extends s.a{constructor(t={}){super(),this._type="BarcodeFormatPDF417Configuration",this.regexFilter="",this.gs1Handling="PARSE",this.strictMode=!0,void 0!==t.regexFilter&&(this.regexFilter=t.regexFilter),void 0!==t.gs1Handling&&(this.gs1Handling=t.gs1Handling),void 0!==t.strictMode&&(this.strictMode=t.strictMode)}}class w extends s.a{constructor(t={}){super(),this._type="BarcodeFormatMicroPDF417Configuration",this.regexFilter="",this.gs1Handling="PARSE",this.strictMode=!0,void 0!==t.regexFilter&&(this.regexFilter=t.regexFilter),void 0!==t.gs1Handling&&(this.gs1Handling=t.gs1Handling),void 0!==t.strictMode&&(this.strictMode=t.strictMode)}}class O extends s.a{constructor(t={}){super(),this._type="BarcodeFormatDataMatrixConfiguration",this.regexFilter="",this.gs1Handling="PARSE",void 0!==t.regexFilter&&(this.regexFilter=t.regexFilter),void 0!==t.gs1Handling&&(this.gs1Handling=t.gs1Handling)}}class E extends s.a{constructor(t={}){super(),this._type="BarcodeFormatMaxiCodeConfiguration",this.regexFilter="",void 0!==t.regexFilter&&(this.regexFilter=t.regexFilter)}}!function(t){t.From=function(t){const e=t._type;switch(e){case"BarcodeFormatAustraliaPostConfiguration":return new L(t);case"BarcodeFormatJapanPostConfiguration":return new j(t);case"BarcodeFormatRoyalMailConfiguration":return new k(t);case"BarcodeFormatRoyalTNTPostConfiguration":return new _(t);case"BarcodeFormatUSPSIntelligentMailConfiguration":return new T(t);case"BarcodeFormatPharmaCodeTwoTrackConfiguration":return new P(t);default:throw`Unknown child class name: ${e}`}}}(a||(a={}));class L extends s.a{constructor(t={}){super(),this._type="BarcodeFormatAustraliaPostConfiguration",this.regexFilter="",this.australiaPostCustomerFormat="ALPHA_NUMERIC",void 0!==t.regexFilter&&(this.regexFilter=t.regexFilter),void 0!==t.australiaPostCustomerFormat&&(this.australiaPostCustomerFormat=t.australiaPostCustomerFormat)}}class j extends s.a{constructor(t={}){super(),this._type="BarcodeFormatJapanPostConfiguration",this.regexFilter="",void 0!==t.regexFilter&&(this.regexFilter=t.regexFilter)}}class k extends s.a{constructor(t={}){super(),this._type="BarcodeFormatRoyalMailConfiguration",this.regexFilter="",this.stripCheckDigits=!1,void 0!==t.regexFilter&&(this.regexFilter=t.regexFilter),void 0!==t.stripCheckDigits&&(this.stripCheckDigits=t.stripCheckDigits)}}class _ extends s.a{constructor(t={}){super(),this._type="BarcodeFormatRoyalTNTPostConfiguration",this.regexFilter="",void 0!==t.regexFilter&&(this.regexFilter=t.regexFilter)}}class T extends s.a{constructor(t={}){super(),this._type="BarcodeFormatUSPSIntelligentMailConfiguration",this.regexFilter="",void 0!==t.regexFilter&&(this.regexFilter=t.regexFilter)}}class P extends s.a{constructor(t={}){super(),this._type="BarcodeFormatPharmaCodeTwoTrackConfiguration",this.regexFilter="",this.minimumValue=364,void 0!==t.regexFilter&&(this.regexFilter=t.regexFilter),void 0!==t.minimumValue&&(this.minimumValue=t.minimumValue)}}class R extends s.a{constructor(t={}){super(),this._type="BarcodeFormatGS1CompositeConfiguration",this.regexFilter="",this.minimum1DQuietZoneSize=6,this.gs1Handling="PARSE",this.strictMode=!0,void 0!==t.regexFilter&&(this.regexFilter=t.regexFilter),void 0!==t.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=t.minimum1DQuietZoneSize),void 0!==t.gs1Handling&&(this.gs1Handling=t.gs1Handling),void 0!==t.strictMode&&(this.strictMode=t.strictMode)}}class D extends s.a{constructor(t={}){super(),this._type="BarcodeFormatCommonOneDConfiguration",this.regexFilter="",this.minimum1DQuietZoneSize=6,this.stripCheckDigits=!1,this.minimumTextLength=0,this.maximumTextLength=0,this.gs1Handling="PARSE",this.strictMode=!0,this.formats=["CODABAR","CODE_11","CODE_25","CODE_32","CODE_39","CODE_93","CODE_128","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_8","EAN_13","IATA_2_OF_5","INDUSTRIAL_2_OF_5","ITF","MSI_PLESSEY","PHARMA_CODE","PZN","UPC_A","UPC_E"],void 0!==t.regexFilter&&(this.regexFilter=t.regexFilter),void 0!==t.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=t.minimum1DQuietZoneSize),void 0!==t.stripCheckDigits&&(this.stripCheckDigits=t.stripCheckDigits),void 0!==t.minimumTextLength&&(this.minimumTextLength=t.minimumTextLength),void 0!==t.maximumTextLength&&(this.maximumTextLength=t.maximumTextLength),void 0!==t.gs1Handling&&(this.gs1Handling=t.gs1Handling),void 0!==t.strictMode&&(this.strictMode=t.strictMode),void 0!==t.formats&&(this.formats=t.formats.map((t=>t)))}}class B extends s.a{constructor(t={}){super(),this._type="BarcodeFormatCommonTwoDConfiguration",this.regexFilter="",this.gs1Handling="PARSE",this.strictMode=!0,this.formats=["AZTEC","DATA_MATRIX","MAXICODE","MICRO_QR_CODE","MICRO_PDF_417","PDF_417","QR_CODE","RMQR_CODE"],void 0!==t.regexFilter&&(this.regexFilter=t.regexFilter),void 0!==t.gs1Handling&&(this.gs1Handling=t.gs1Handling),void 0!==t.strictMode&&(this.strictMode=t.strictMode),void 0!==t.formats&&(this.formats=t.formats.map((t=>t)))}}class F extends s.a{constructor(t={}){super(),this._type="BarcodeFormatCommonFourStateConfiguration",this.regexFilter="",this.formats=["AUSTRALIA_POST","JAPAN_POST","ROYAL_MAIL","ROYAL_TNT_POST","USPS_INTELLIGENT_MAIL"],void 0!==t.regexFilter&&(this.regexFilter=t.regexFilter),void 0!==t.formats&&(this.formats=t.formats.map((t=>t)))}}class I extends s.a{constructor(t={}){super(),this._type="BarcodeFormatCommonConfiguration",this.regexFilter="",this.minimum1DQuietZoneSize=6,this.stripCheckDigits=!1,this.minimumTextLength=0,this.maximumTextLength=0,this.gs1Handling="PARSE",this.strictMode=!0,this.formats=["AZTEC","CODABAR","CODE_39","CODE_93","CODE_128","DATA_MATRIX","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_13","EAN_8","ITF","MICRO_QR_CODE","PDF_417","QR_CODE","UPC_A","UPC_E"],void 0!==t.regexFilter&&(this.regexFilter=t.regexFilter),void 0!==t.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=t.minimum1DQuietZoneSize),void 0!==t.stripCheckDigits&&(this.stripCheckDigits=t.stripCheckDigits),void 0!==t.minimumTextLength&&(this.minimumTextLength=t.minimumTextLength),void 0!==t.maximumTextLength&&(this.maximumTextLength=t.maximumTextLength),void 0!==t.gs1Handling&&(this.gs1Handling=t.gs1Handling),void 0!==t.strictMode&&(this.strictMode=t.strictMode),void 0!==t.formats&&(this.formats=t.formats.map((t=>t)))}}},function(t,e,n){"use strict";var r=n(107);const o=Object(r.a)();e.a=o},function(t,e,n){"use strict";var r=n(14),o=n(20),i=n(45);var a=function(...t){const e=t.reduce(((t,e)=>(e.filterProps.forEach((n=>{t[n]=e})),t)),{}),n=t=>Object.keys(t).reduce(((n,r)=>e[r]?Object(i.a)(n,e[r](t)):n),{});return n.propTypes={},n.filterProps=t.reduce(((t,e)=>t.concat(e.filterProps)),[]),n},s=n(31);function l(t){return"number"!=typeof t?t:`${t}px solid`}function c(t,e){return Object(o.a)({prop:t,themeKey:"borders",transform:e})}const u=c("border",l),d=c("borderTop",l),h=c("borderRight",l),p=c("borderBottom",l),f=c("borderLeft",l),m=c("borderColor"),g=c("borderTopColor"),v=c("borderRightColor"),b=c("borderBottomColor"),y=c("borderLeftColor"),A=c("outline",l),C=c("outlineColor"),S=t=>{if(void 0!==t.borderRadius&&null!==t.borderRadius){const e=Object(r.b)(t.theme,"shape.borderRadius",4,"borderRadius"),n=t=>({borderRadius:Object(r.c)(e,t)});return Object(s.b)(t,t.borderRadius,n)}return null};S.propTypes={},S.filterProps=["borderRadius"];a(u,d,h,p,f,m,g,v,b,y,S,A,C);const x=t=>{if(void 0!==t.gap&&null!==t.gap){const e=Object(r.b)(t.theme,"spacing",8,"gap"),n=t=>({gap:Object(r.c)(e,t)});return Object(s.b)(t,t.gap,n)}return null};x.propTypes={},x.filterProps=["gap"];const w=t=>{if(void 0!==t.columnGap&&null!==t.columnGap){const e=Object(r.b)(t.theme,"spacing",8,"columnGap"),n=t=>({columnGap:Object(r.c)(e,t)});return Object(s.b)(t,t.columnGap,n)}return null};w.propTypes={},w.filterProps=["columnGap"];const O=t=>{if(void 0!==t.rowGap&&null!==t.rowGap){const e=Object(r.b)(t.theme,"spacing",8,"rowGap"),n=t=>({rowGap:Object(r.c)(e,t)});return Object(s.b)(t,t.rowGap,n)}return null};O.propTypes={},O.filterProps=["rowGap"];a(x,w,O,Object(o.a)({prop:"gridColumn"}),Object(o.a)({prop:"gridRow"}),Object(o.a)({prop:"gridAutoFlow"}),Object(o.a)({prop:"gridAutoColumns"}),Object(o.a)({prop:"gridAutoRows"}),Object(o.a)({prop:"gridTemplateColumns"}),Object(o.a)({prop:"gridTemplateRows"}),Object(o.a)({prop:"gridTemplateAreas"}),Object(o.a)({prop:"gridArea"}));function E(t,e){return"grey"===e?e:t}a(Object(o.a)({prop:"color",themeKey:"palette",transform:E}),Object(o.a)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:E}),Object(o.a)({prop:"backgroundColor",themeKey:"palette",transform:E}));function L(t){return t<=1&&0!==t?100*t+"%":t}const j=Object(o.a)({prop:"width",transform:L}),k=t=>{if(void 0!==t.maxWidth&&null!==t.maxWidth){const e=e=>{var n,r;const o=(null==(n=t.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[e])||s.e[e];return o?"px"!==(null==(r=t.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${t.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:L(e)}};return Object(s.b)(t,t.maxWidth,e)}return null};k.filterProps=["maxWidth"];const _=Object(o.a)({prop:"minWidth",transform:L}),T=Object(o.a)({prop:"height",transform:L}),P=Object(o.a)({prop:"maxHeight",transform:L}),R=Object(o.a)({prop:"minHeight",transform:L});Object(o.a)({prop:"size",cssProperty:"width",transform:L}),Object(o.a)({prop:"size",cssProperty:"height",transform:L});a(j,k,_,T,P,R,Object(o.a)({prop:"boxSizing"}));const D={border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:S},color:{themeKey:"palette",transform:E},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:E},backgroundColor:{themeKey:"palette",transform:E},p:{style:r.e},pt:{style:r.e},pr:{style:r.e},pb:{style:r.e},pl:{style:r.e},px:{style:r.e},py:{style:r.e},padding:{style:r.e},paddingTop:{style:r.e},paddingRight:{style:r.e},paddingBottom:{style:r.e},paddingLeft:{style:r.e},paddingX:{style:r.e},paddingY:{style:r.e},paddingInline:{style:r.e},paddingInlineStart:{style:r.e},paddingInlineEnd:{style:r.e},paddingBlock:{style:r.e},paddingBlockStart:{style:r.e},paddingBlockEnd:{style:r.e},m:{style:r.d},mt:{style:r.d},mr:{style:r.d},mb:{style:r.d},ml:{style:r.d},mx:{style:r.d},my:{style:r.d},margin:{style:r.d},marginTop:{style:r.d},marginRight:{style:r.d},marginBottom:{style:r.d},marginLeft:{style:r.d},marginX:{style:r.d},marginY:{style:r.d},marginInline:{style:r.d},marginInlineStart:{style:r.d},marginInlineEnd:{style:r.d},marginBlock:{style:r.d},marginBlockStart:{style:r.d},marginBlockEnd:{style:r.d},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:x},rowGap:{style:O},columnGap:{style:w},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:L},maxWidth:{style:k},minWidth:{transform:L},height:{transform:L},maxHeight:{transform:L},minHeight:{transform:L},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};e.a=D},function(t,e,n){"use strict";(function(t){function r(t,e=!1){const n=[];if(e)return n;return function t(e){if(e)if(e.constructor===ImageData)n.push(e.data.buffer);else if(e.constructor===ArrayBuffer)n.push(e);else if(ArrayBuffer.isView(e))n.push(e.buffer);else if(Array.isArray(e))for(let n=0;n<e.length;++n)t(e[n]);else if(e.constructor===Object)for(const n in e)e.hasOwnProperty(n)&&t(e[n])}(t),n}function o(t){return t.startsWith("http:")||t.startsWith("https:")}function i(){if("undefined"!=typeof t&&"undefined"!=typeof t.versions&&"undefined"!=typeof t.versions.node)return!1;if(/(iPad|iPhone|iPod)/g.test(navigator.userAgent))return!1;try{return(new MessageChannel).port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11]))}catch(t){return!1}}function a(t){const{allowSimd:e=!0,allowThreads:n=!0}=t||{};let r="";if(e&&function(){try{return WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,9,1,7,0,65,0,253,15,26,11]))}catch(t){return!1}}()){r+="-simd";n&&i()&&(r+="-threads")}return r}n.d(e,"b",(function(){return r})),n.d(e,"d",(function(){return o})),n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return a}))}).call(this,n(92))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));class r{constructor(){this.values=new Map}}r.INSTANCE=new r},,function(t,e,n){"use strict";n.r(e),n.d(e,"BarcodeItem",(function(){return a})),n.d(e,"BarcodeScannerConfiguration",(function(){return s})),n.d(e,"BarcodeScannerResult",(function(){return l}));var r=n(60),o=n(5),i=n(38);class a extends o.a{constructor(t={}){if(super(),this.format="NONE",this.isUpsideDown=!1,this.sourceImage=null,this.isGS1Message=!1,this.isGS1CompositePart=!1,this.dataBarStackSize=1,void 0===t.text)throw new Error("text must be present in constructor argument");if(this.text=t.text,void 0!==t.format&&(this.format=t.format),void 0===t.quad)throw new Error("quad must be present in constructor argument");if(this.quad=t.quad.map((t=>({x:t.x,y:t.y}))),void 0!==t.isUpsideDown&&(this.isUpsideDown=t.isUpsideDown),void 0!==t.sourceImage&&(this.sourceImage=null!=t.sourceImage?t.sourceImage:null),void 0===t.rawBytes)throw new Error("rawBytes must be present in constructor argument");if(this.rawBytes=t.rawBytes,void 0===t.upcEanExtension)throw new Error("upcEanExtension must be present in constructor argument");if(this.upcEanExtension=t.upcEanExtension,void 0!==t.isGS1Message&&(this.isGS1Message=t.isGS1Message),void 0!==t.isGS1CompositePart&&(this.isGS1CompositePart=t.isGS1CompositePart),void 0!==t.dataBarStackSize&&(this.dataBarStackSize=t.dataBarStackSize),void 0===t.parsedDocument)throw new Error("parsedDocument must be present in constructor argument");this.parsedDocument=null!=t.parsedDocument?new i.GenericDocument(t.parsedDocument):null}}class s extends o.a{constructor(t={}){super(),this.barcodeFormatConfigurations=[new r.BarcodeFormatCommonConfiguration({})],this.acceptedDocumentFormats=["AAMVA","BOARDING_PASS","DE_MEDICAL_PLAN","MEDICAL_CERTIFICATE","ID_CARD_PDF_417","SEPA","SWISS_QR","VCARD","GS1","HIBC"],this.onlyAcceptDocuments=!1,this.returnBarcodeImage=!0,this.engineMode="NEXT_GEN_LOW_POWER",this.live=!0,void 0!==t.barcodeFormatConfigurations&&(this.barcodeFormatConfigurations=t.barcodeFormatConfigurations.map((t=>r.BarcodeFormatConfigurationBase.From(t)))),void 0!==t.acceptedDocumentFormats&&(this.acceptedDocumentFormats=t.acceptedDocumentFormats.map((t=>t))),void 0!==t.onlyAcceptDocuments&&(this.onlyAcceptDocuments=t.onlyAcceptDocuments),void 0!==t.returnBarcodeImage&&(this.returnBarcodeImage=t.returnBarcodeImage),void 0!==t.engineMode&&(this.engineMode=t.engineMode),void 0!==t.live&&(this.live=t.live)}}class l extends o.a{constructor(t={}){if(super(),void 0===t.barcodes)throw new Error("barcodes must be present in constructor argument");if(this.barcodes=t.barcodes.map((t=>new a(t))),void 0===t.success)throw new Error("success must be present in constructor argument");this.success=t.success}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));var r=n(2),o=n(0),i=n(7),a=n(10),s=n(159),l=n(9),c=n(16),u=n(11),d=n(158),h=n(124);function p(t){return Object(h.a)("MuiSvgIcon",t)}Object(d.a)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var f=n(4);const m=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],g=Object(u.a)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,"inherit"!==n.color&&e[`color${Object(l.a)(n.color)}`],e[`fontSize${Object(l.a)(n.fontSize)}`]]}})((({theme:t,ownerState:e})=>{var n,r,o,i,a,s,l,c,u,d,h,p,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=t.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=t.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=t.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=t.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=t.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[e.fontSize],color:null!=(d=null==(h=(t.vars||t).palette)||null==(h=h[e.color])?void 0:h.main)?d:{action:null==(p=(t.vars||t).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(f=(t.vars||t).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[e.color]}})),v=o.forwardRef((function(t,e){const n=Object(c.a)({props:t,name:"MuiSvgIcon"}),{children:u,className:d,color:h="inherit",component:v="svg",fontSize:b="medium",htmlColor:y,inheritViewBox:A=!1,titleAccess:C,viewBox:S="0 0 24 24"}=n,x=Object(i.a)(n,m),w=o.isValidElement(u)&&"svg"===u.type,O=Object(r.a)({},n,{color:h,component:v,fontSize:b,instanceFontSize:t.fontSize,inheritViewBox:A,viewBox:S,hasSvgAsChild:w}),E={};A||(E.viewBox=S);const L=(t=>{const{color:e,fontSize:n,classes:r}=t,o={root:["root","inherit"!==e&&`color${Object(l.a)(e)}`,`fontSize${Object(l.a)(n)}`]};return Object(s.a)(o,p,r)})(O);return Object(f.jsxs)(g,Object(r.a)({as:v,className:Object(a.a)(L.root,d),focusable:"false",color:y,"aria-hidden":!C||void 0,role:C?"img":void 0,ref:e},E,x,w&&u.props,{ownerState:O,children:[w?u.props.children:u,C?Object(f.jsx)("title",{children:C}):null]}))}));v.muiName="SvgIcon";var b=v;function y(t,e){function n(n,o){return Object(f.jsx)(b,Object(r.a)({"data-testid":`${e}Icon`,ref:o},n,{children:t}))}return n.muiName=b.muiName,o.memo(o.forwardRef(n))}},function(t,e,n){"use strict";var r=n(0),o=n(108);let i=!0,a=!1;const s=new o.a,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(t){t.metaKey||t.altKey||t.ctrlKey||(i=!0)}function u(){i=!1}function d(){"hidden"===this.visibilityState&&a&&(i=!0)}function h(t){const{target:e}=t;try{return e.matches(":focus-visible")}catch(t){}return i||function(t){const{type:e,tagName:n}=t;return!("INPUT"!==n||!l[e]||t.readOnly)||"TEXTAREA"===n&&!t.readOnly||!!t.isContentEditable}(e)}e.a=function(){const t=r.useCallback((t=>{var e;null!=t&&((e=t.ownerDocument).addEventListener("keydown",c,!0),e.addEventListener("mousedown",u,!0),e.addEventListener("pointerdown",u,!0),e.addEventListener("touchstart",u,!0),e.addEventListener("visibilitychange",d,!0))}),[]),e=r.useRef(!1);return{isFocusVisibleRef:e,onFocus:function(t){return!!h(t)&&(e.current=!0,!0)},onBlur:function(){return!!e.current&&(a=!0,s.start(100,(()=>{a=!1})),e.current=!1,!0)},ref:t}}},function(t,e,n){"use strict";e.a=function(t,e=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{t.apply(this,r)}),e)}return r.clear=()=>{clearTimeout(n)},r}},function(t,e,n){"use strict";var r=n(0);e.a=function(t,e){var n,o;return r.isValidElement(t)&&-1!==e.indexOf(null!=(n=t.type.muiName)?n:null==(o=t.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));class r{constructor(){this.container=void 0,this.containerId=void 0}static mapValues(t,e,n){Object.keys(t).forEach((r=>{(null==n?void 0:n.includes(r))||(e[r]=t[r])}))}static mapValuesDeep(t,e){const n=t=>t&&"object"==typeof t&&!Array.isArray(t);Object.keys(t).forEach((o=>{o in e&&n(t[o])&&n(e[o])?r.mapValuesDeep(t[o],e[o]):e[o]=t[o]}))}static _fromJson(t,e){return this.mapValuesDeep(e,t),t}}},function(t,e,n){"use strict";var r=n(132),o=n(73);const i=Object(r.a)();e.a=function(t=i){return Object(o.a)(t)}},function(t,e,n){"use strict";var r=n(0),o=n(29);e.a=function(t=null){const e=r.useContext(o.a);return e&&(n=e,0!==Object.keys(n).length)?e:t;var n}},function(t,e,n){"use strict";var r,o=function(){return"undefined"==typeof r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var t={};return function(e){if("undefined"==typeof t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function s(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function l(t,e){for(var n={},r=[],o=0;o<t.length;o++){var i=t[o],l=e.base?i[0]+e.base:i[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var d=s(u),h={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(a[d].references++,a[d].updater(h)):a.push({identifier:u,updater:g(h,e),references:1}),r.push(u)}return r}function c(t){var e=document.createElement("style"),r=t.attributes||{};if("undefined"==typeof r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(t){e.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(e);else{var a=i(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var u,d=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function h(t,e,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=d(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function p(t,e,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var f=null,m=0;function g(t,e){var n,r,o;if(e.singleton){var i=m++;n=f||(f=c(e)),r=h.bind(null,n,i,!1),o=h.bind(null,n,i,!0)}else n=c(e),r=p.bind(null,n,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=o());var n=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<n.length;r++){var o=s(n[r]);a[o].references--}for(var i=l(t,e),c=0;c<n.length;c++){var u=s(n[c]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=i}}}},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);r&&o[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},function(t,e,n){"use strict";var r=n(47);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(48)),i=n(4);e.default=(0,o.default)((0,i.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete")},function(t,e,n){"use strict";var r="6.0.0-dev.6";class o{}o.VERSION=r,o.CDN_PATH="https://cdn.jsdelivr.net/npm/scanbot-web-sdk@6.0.0-dev.6/bundle/",o.DEFAULT_WASM_FOLDER="bin/complete/",o.BUILD_WITH_UI=!0;var i=n(63);class a{constructor(t,e){this.errorInWorker=null,this.createProxy=t=>new Proxy({},{get:(e,n,r)=>(...e)=>this.post(n,e,t)}),this.handleUnrecoverableError=t=>{this.errorInWorker=t;for(const e in this.continuations)this.continuations[e].reject(t),delete this.continuations[e]},this.copyArgs=this.createProxy("copy"),this.transferArgs=this.createProxy("transfer");const{requestSuffix:n=""}=e||{},r=Object(i.c)(e),o=`${t}${t.endsWith("/")?"":"/"}ScanbotSDK.Core${r}.js${n}`;if(Object(i.d)(o)){const t=new Blob([`importScripts("${o}")`]);this.instance=new Worker(URL.createObjectURL(t))}else this.instance=new Worker(o);this.continuations={},this.nextTicketId=1,this.instance.onmessage=t=>{const{log:e,logError:n}=t.data;if(e)return void console.log(...e);if(n)return void console.error(...n);const{ticket:r,result:o,recoverableError:i,unrecoverableError:a}=t.data,s=this.continuations[r];if(!s)return;const{resolve:l,reject:c}=s;delete this.continuations[r],a?(c(a),this.handleUnrecoverableError(a)):i?c(i):l(o)},this.instance.onerror=t=>{this.handleUnrecoverableError(t.error)}}post(t,e,n){return this.errorInWorker?Promise.reject(this.errorInWorker):new Promise(((r,o)=>{const a=Object(i.b)(e,"copy"==n),s=this.nextTicketId++;this.continuations[s]={resolve:r,reject:o},this.instance.postMessage({command:t,args:e,ticket:s},a)}))}destroy(){this.instance.terminate()}}var s=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};class l extends Error{}class c extends Error{}class u{constructor(t,e,n){this.copyArgs=this.createProxy("copy"),this.transferArgs=this.createProxy("transfer"),t||(t=o.CDN_PATH+o.DEFAULT_WASM_FOLDER),this.core=new a(t,e),this.coreInitializationSuccessful=(()=>s(this,void 0,void 0,(function*(){if(yield this.core.copyArgs.initialize(...n)){let e;try{e=yield this.core.copyArgs.version()}catch(t){e="Error"}const n=o.VERSION;return e!==n?new c(`Version mismatch! \nVersion of ScanbotSDK.(ui2.)min.js is "${n}" \nbut the version of the loaded ScanbotSDK.Core*.js file is "${e}". \nThe ScanbotSDK.Core*.js file was loaded from ${t}.`):"OK"}return new l("WASM not initialized successfully. This can be due to an invalid license or problems loading the WASM file. Please check the console for more information.")})))()}awaitInitialized(){return s(this,void 0,void 0,(function*(){yield this.getCoreForCommand()}))}createProxy(t){return new Proxy({},{get:(e,n,r)=>(...e)=>s(this,void 0,void 0,(function*(){const r=yield this.getCoreForCommand(n),o="copy"===t?r.copyArgs:r.transferArgs;return yield o[n](...e)}))})}getCoreForCommand(t=""){return s(this,void 0,void 0,(function*(){const e=yield this.coreInitializationSuccessful;if("OK"===e||"getLicenseInfo"===t&&e instanceof l)return this.core;throw e}))}destroy(){this.core.destroy(),this.core=void 0}}class d{isValid(){return"Okay"===this.status||"Trial"===this.status}static fromJson(t){const e=new d;return e.status=t.licenseStatus,e.description=t.description,e}}var h=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};class p{constructor(t,e){this._sdk=t,this._pdfOperation=e}addPage(t,e="COPY_IMAGE"){return h(this,void 0,void 0,(function*(){const n=this._sdk.getBridge(e);yield n.addPageToPdf(this._pdfOperation,t)}))}complete(){return h(this,void 0,void 0,(function*(){return yield this._sdk.bridge.copyArgs.completePdf(this._pdfOperation)}))}}var f=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};class m{constructor(t,e){this._sdk=t,this._tiffOperation=e}addPage(t,e={}){return f(this,void 0,void 0,(function*(){const{binarize:n="ENABLED_IF_BINARIZATION_FILTER_SET",consumeImage:r="COPY_IMAGE"}=e,o=this._sdk.getBridge(r);yield o.addPageToTiff(this._tiffOperation,t,n)}))}complete(){return f(this,void 0,void 0,(function*(){return yield this._sdk.bridge.copyArgs.completeTiff(this._tiffOperation)}))}}var g=n(41);class v{static toPixelSize(t){return t+"px"}static containsString(t,e){return!!t&&-1!==t.indexOf(e)}static copy(t){return JSON.parse(JSON.stringify(t))}static getProperty(t,e){if(t&&t.hasOwnProperty(e))return t[e]}static uuid(){let t="";const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=e.length;for(let r=0;r<5;r++)t+=e.charAt(Math.floor(Math.random()*n));return t}}var b=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};class y{static toDataUrl(t){return new Promise(((e,n)=>{const r=new Blob([t],{type:"image/jpeg"}),o=new FileReader;o.onload=()=>e(o.result),o.onerror=()=>n(o.error),o.readAsDataURL(r)}))}static getObjectFitSize(t,e,n=!0){const r=e.width/e.height,o=t.width/t.height;let i=0,a=0;(n?r>o:r<o)?(i=t.width,a=i/r):(a=t.height,i=a*r);const s=(t.width-i)/2,l=(t.height-a)/2;return new g.a(s,l,i,a)}static loadFromUrl(t){return new Promise(((e,n)=>{const r=document.createElement("img");r.src=t,r.onload=()=>b(this,void 0,void 0,(function*(){const t=document.createElement("canvas");t.width=r.width,t.height=r.height;const n=t.getContext("2d");n.drawImage(r,0,0);const o=n.getImageData(0,0,r.width,r.height);e(o)})),r.onerror=n}))}static saveImageData(t){const e=this.createImageDataCanvas(t),n=" ("+t.width+"x"+t.height+")";e.toBlob((t=>this.saveBlob(t,v.uuid()+n+".png")))}static createImageDataCanvas(t){const e=document.createElement("canvas");return e.className="scanbot-sdk-canvas-element",e.width=t.width,e.height=t.height,e.getContext("2d").putImageData(t,0,0),e}static saveBlob(t,e){let n=document.createElement("a");n.setAttribute("download",e);let r=URL.createObjectURL(t);n.setAttribute("href",r),n.click()}static convertImageDataWrapperToImageData(t){if(t)return new ImageData(t.data,t.width,t.height)}static wrapperToBase64(t){return y.createImageDataCanvas(y.convertImageDataWrapperToImageData(t)).toDataURL("image/png")}static toBase64(t){return b(this,void 0,void 0,(function*(){const e=yield new Promise((e=>{const n=new FileReader;n.onload=()=>e(n.result),n.readAsDataURL(new Blob([t]))}));return e.slice(e.indexOf(",")+1)}))}}class A{saveImageAsJpeg(t,e){if(!t||0===t.length)return void console.log("Data cannot be null or empty");e||(e=v.uuid()+".jpeg");let n=new Blob([t],{type:"image/jpeg"});y.saveBlob(n,e)}isCameraSupported(){return!!navigator.mediaDevices}flash(){let t=this.findFlashElement();t.style.display="block",this.animateFlashOpacity("0.5",(()=>{this.animateFlashOpacity("0.0",(()=>{t.style.opacity="1.0",t.style.display="none"}))}))}findFlashElement(){return this.getOrCreateElement("flash",{position:"fixed",top:"0",left:"0",width:"100%",height:"100%","background-color":"#fff",display:"none","z-index":"5000"})}animateFlashOpacity(t,e){const n=this.getElementByClassName("flash");setTimeout((()=>{n.style.opacity=t,e()}),150)}getOrCreateElement(t,e){let n=this.getElementByClassName(t);return n||(this.createElement(t,e),n=this.getElementByClassName(t)),n}createElement(t,e){let n=document.createElement("div");n.className=t,n.style.cssText=this.cssToString(e),document.body.append(n)}cssToString(t){let e="";return Object.keys(t).forEach((n=>{e+=n+":"+t[n]+";"})),e}getElementByClassName(t){const e=document.getElementsByClassName(t);if(0!==e.length)return e[0]}}var C=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};class S{constructor(t,e){this._sdk=t,this._mrzRecognizerToken=e}recognize(t,e="COPY_IMAGE"){return C(this,void 0,void 0,(function*(){const n=this._sdk.getBridge(e);return yield n.recognizeMRZ(yield this._mrzRecognizerToken,t)}))}recognizeURL(t){return C(this,void 0,void 0,(function*(){return new Promise((e=>{const n=document.createElement("canvas"),r=document.createElement("img");r.src=t,r.onload=()=>C(this,void 0,void 0,(function*(){n.width=r.width,n.height=r.height;const t=n.getContext("2d");t.drawImage(r,0,0);const o=t.getImageData(0,0,r.width,r.height),i=yield this.recognize(o);e(i||void 0)}))}))}))}release(){return C(this,void 0,void 0,(function*(){yield this._sdk.bridge.copyArgs.releaseObject(yield this._mrzRecognizerToken)}))}}var x=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};class w{constructor(t,e){this._sdk=t,this._OcrEngineToken=e}performOcr(t,e="COPY_IMAGE"){return x(this,void 0,void 0,(function*(){const n=this._sdk.getBridge(e);return yield n.performOcr(this._OcrEngineToken,t)}))}recognizeURL(t){return x(this,void 0,void 0,(function*(){return new Promise((e=>{const n=document.createElement("canvas"),r=document.createElement("img");r.src=t,r.onload=()=>x(this,void 0,void 0,(function*(){n.width=r.width,n.height=r.height;const t=n.getContext("2d");t.drawImage(r,0,0);const o=t.getImageData(0,0,r.width,r.height),i=yield this.performOcr(o);e(i)}))}))}))}release(){return x(this,void 0,void 0,(function*(){yield this._sdk.bridge.copyArgs.releaseObject(this._OcrEngineToken)}))}}var O=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};class E{constructor(t,e){this._sdk=t,this._textDataScannerToken=e}recognize(t,e="COPY_IMAGE"){return O(this,void 0,void 0,(function*(){const n=this._sdk.getBridge(e);return yield n.recognizeTextLine(yield this._textDataScannerToken,t)}))}cleanRecognitionQueue(){return O(this,void 0,void 0,(function*(){yield this._sdk.bridge.copyArgs.cleanTextLineRecognitionQueue(yield this._textDataScannerToken)}))}recognizeURL(t){return O(this,void 0,void 0,(function*(){return new Promise((e=>{const n=document.createElement("canvas"),r=document.createElement("img");r.src=t,r.onload=()=>O(this,void 0,void 0,(function*(){n.width=r.width,n.height=r.height;const t=n.getContext("2d");t.drawImage(r,0,0);const o=t.getImageData(0,0,r.width,r.height),i=yield this.recognize(o,"CONSUME_IMAGE");i&&e(i)}))}))}))}release(){return O(this,void 0,void 0,(function*(){yield this._sdk.bridge.copyArgs.releaseObject(yield this._textDataScannerToken)}))}}var L=n(32),j=n(43),k=n(19);class _ extends j.a{constructor(){super(L.a.DEFAULT_VIDEO_RESOLUTION_HD),this.ocrConfiguration=new k.GenericTextLineScannerTypes.ScannerConfiguration,this.onTextDetected=function(t){},this.finder.aspectRatio=new k.Geometry.AspectRatio({width:6,height:1}),this.userGuidance.title.text="Please hold the device over the text to start scanning"}static fromJson(t){const e=new _;return this.mapFinderConfiguration(e,t),this._fromJson(e,t)}}class T extends j.a{constructor(){super(L.a.DEFAULT_VIDEO_RESOLUTION_HD),this.ocrConfiguration=new k.GenericTextLineScannerTypes.ScannerConfiguration,this.onTextDetected=function(t){},this.finder.aspectRatio=new k.Geometry.AspectRatio({width:6,height:1}),this.userGuidance.title.text="Please hold the device over the vehicle identification number to start scanning"}static fromJson(t){const e=new T;return this.mapFinderConfiguration(e,t),this._fromJson(e,t)}}class P extends Error{constructor(t){super(t.description),this.name="LicenseError"}}class R{static throwIfMissingBuffer(t){R.throwIfMissing(t,"ImageBuffer may not be null")}static throwIfMissing(t,e){if(!t)throw new Error(e)}}var D=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};class B{constructor(t,e){this._sdk=t,this._token=e}analyze(t,e="COPY_IMAGE"){return D(this,void 0,void 0,(function*(){R.throwIfMissingBuffer(t);const n=this._sdk.getBridge(e);return yield n.documentQualityAnalyzerAnalyze(this._token,t)}))}release(){return D(this,void 0,void 0,(function*(){yield this._sdk.bridge.copyArgs.releaseObject(this._token)}))}}var F=n(34),I=n(0),M=n(94),W=n(30),z=n(2),N=n(7);var V=I.createContext(null);function U(){return I.useContext(V)}var H="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",$=n(4);var G=function(t){const{children:e,theme:n}=t,r=U(),o=I.useMemo((()=>{const t=null===r?n:function(t,e){if("function"==typeof e)return e(t);return Object(z.a)({},t,e)}(r,n);return null!=t&&(t[H]=null!==r),t}),[n,r]);return Object($.jsx)(V.Provider,{value:o,children:e})},Y=n(29),Q=n(73);const Z={};function X(t,e,n,r=!1){return I.useMemo((()=>{const o=t&&e[t]||e;if("function"==typeof n){const i=n(o),a=t?Object(z.a)({},e,{[t]:i}):i;return r?()=>a:a}return t?Object(z.a)({},e,{[t]:n}):Object(z.a)({},e,n)}),[t,e,n,r])}var q=function(t){const{children:e,theme:n,themeId:r}=t,o=Object(Q.a)(Z),i=U()||Z,a=X(r,o,n),s=X(r,i,n,!0);return Object($.jsx)(G,{theme:s,children:Object($.jsx)(Y.a.Provider,{value:a,children:e})})},K=n(40);const J=["theme"];function tt(t){let{theme:e}=t,n=Object(N.a)(t,J);const r=e[K.a];return Object($.jsx)(q,Object(z.a)({},n,{themeId:r?K.a:void 0,theme:r||e}))}var et=n(10),nt=n(55),rt=n(96),ot=n(110),it=n(62);const at=["sx"];function st(t){const{sx:e}=t,n=Object(N.a)(t,at),{systemProps:r,otherProps:o}=(t=>{var e,n;const r={systemProps:{},otherProps:{}},o=null!=(e=null==t||null==(n=t.theme)?void 0:n.unstable_sxConfig)?e:it.a;return Object.keys(t).forEach((e=>{o[e]?r.systemProps[e]=t[e]:r.otherProps[e]=t[e]})),r})(n);let i;return i=Array.isArray(e)?[r,...e]:"function"==typeof e?(...t)=>{const n=e(...t);return Object(ot.b)(n)?Object(z.a)({},r,n):r}:Object(z.a)({},r,e),Object(z.a)({},o,{sx:i})}var lt=n(72);const ct=["className","component"];var ut=n(125),dt=n(107),ht=n(158);var pt=Object(ht.a)("MuiBox",["root"]);const ft=Object(dt.a)();var mt=function(t={}){const{themeId:e,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=t,i=Object(nt.a)("div",{shouldForwardProp:t=>"theme"!==t&&"sx"!==t&&"as"!==t})(rt.a);return I.forwardRef((function(t,a){const s=Object(lt.a)(n),l=st(t),{className:c,component:u="div"}=l,d=Object(N.a)(l,ct);return Object($.jsx)(i,Object(z.a)({as:u,ref:a,className:Object(et.a)(c,o?o(r):r),theme:e&&s[e]||s},d))}))}({themeId:K.a,defaultTheme:ft,defaultClassName:pt.root,generateClassName:ut.a.generate}),gt=n(6),vt=n(159),bt=n(11),yt=n(16),At=n(9),Ct=n(162);var St=t=>{let e;return e=t<1?5.11916*t**2:4.5*Math.log(t+1)+2,(e/100).toFixed(2)},xt=n(124);function wt(t){return Object(xt.a)("MuiPaper",t)}Object(ht.a)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Ot=["className","component","elevation","square","variant"],Et=Object(bt.a)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],!n.square&&e.rounded,"elevation"===n.variant&&e[`elevation${n.elevation}`]]}})((({theme:t,ownerState:e})=>{var n;return Object(z.a)({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!e.square&&{borderRadius:t.shape.borderRadius},"outlined"===e.variant&&{border:`1px solid ${(t.vars||t).palette.divider}`},"elevation"===e.variant&&Object(z.a)({boxShadow:(t.vars||t).shadows[e.elevation]},!t.vars&&"dark"===t.palette.mode&&{backgroundImage:`linear-gradient(${Object(Ct.a)("#fff",St(e.elevation))}, ${Object(Ct.a)("#fff",St(e.elevation))})`},t.vars&&{backgroundImage:null==(n=t.vars.overlays)?void 0:n[e.elevation]}))}));var Lt=I.forwardRef((function(t,e){const n=Object(yt.a)({props:t,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=Object(N.a)(n,Ot),c=Object(z.a)({},n,{component:o,elevation:i,square:a,variant:s}),u=(t=>{const{square:e,elevation:n,variant:r,classes:o}=t,i={root:["root",r,!e&&"rounded","elevation"===r&&`elevation${n}`]};return Object(vt.a)(i,wt,o)})(c);return Object($.jsx)(Et,Object(z.a)({as:o,ownerState:c,className:Object(et.a)(u.root,r),ref:e},l))}));function jt(t){return Object(xt.a)("MuiAppBar",t)}Object(ht.a)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const kt=["className","color","enableColorOnDark","position"],_t=(t,e)=>t?`${null==t?void 0:t.replace(")","")}, ${e})`:e,Tt=Object(bt.a)(Lt,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`position${Object(At.a)(n.position)}`],e[`color${Object(At.a)(n.color)}`]]}})((({theme:t,ownerState:e})=>{const n="light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[900];return Object(z.a)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===e.position&&{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===e.position&&{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===e.position&&{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"static"===e.position&&{position:"static"},"relative"===e.position&&{position:"relative"},!t.vars&&Object(z.a)({},"default"===e.color&&{backgroundColor:n,color:t.palette.getContrastText(n)},e.color&&"default"!==e.color&&"inherit"!==e.color&&"transparent"!==e.color&&{backgroundColor:t.palette[e.color].main,color:t.palette[e.color].contrastText},"inherit"===e.color&&{color:"inherit"},"dark"===t.palette.mode&&!e.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===e.color&&Object(z.a)({backgroundColor:"transparent",color:"inherit"},"dark"===t.palette.mode&&{backgroundImage:"none"})),t.vars&&Object(z.a)({},"default"===e.color&&{"--AppBar-background":e.enableColorOnDark?t.vars.palette.AppBar.defaultBg:_t(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":e.enableColorOnDark?t.vars.palette.text.primary:_t(t.vars.palette.AppBar.darkColor,t.vars.palette.text.primary)},e.color&&!e.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":e.enableColorOnDark?t.vars.palette[e.color].main:_t(t.vars.palette.AppBar.darkBg,t.vars.palette[e.color].main),"--AppBar-color":e.enableColorOnDark?t.vars.palette[e.color].contrastText:_t(t.vars.palette.AppBar.darkColor,t.vars.palette[e.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===e.color?"inherit":"var(--AppBar-color)"},"transparent"===e.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}));var Pt=I.forwardRef((function(t,e){const n=Object(yt.a)({props:t,name:"MuiAppBar"}),{className:r,color:o="primary",enableColorOnDark:i=!1,position:a="fixed"}=n,s=Object(N.a)(n,kt),l=Object(z.a)({},n,{color:o,position:a,enableColorOnDark:i}),c=(t=>{const{color:e,position:n,classes:r}=t,o={root:["root",`color${Object(At.a)(e)}`,`position${Object(At.a)(n)}`]};return Object(vt.a)(o,jt,r)})(l);return Object($.jsx)(Tt,Object(z.a)({square:!0,component:"header",ownerState:l,elevation:4,className:Object(et.a)(c.root,r,"fixed"===a&&"mui-fixed"),ref:e},s))}));function Rt(t){return Object(xt.a)("MuiToolbar",t)}Object(ht.a)("MuiToolbar",["root","gutters","regular","dense"]);const Dt=["className","component","disableGutters","variant"],Bt=Object(bt.a)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableGutters&&e.gutters,e[n.variant]]}})((({theme:t,ownerState:e})=>Object(z.a)({position:"relative",display:"flex",alignItems:"center"},!e.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}},"dense"===e.variant&&{minHeight:48})),(({theme:t,ownerState:e})=>"regular"===e.variant&&t.mixins.toolbar));var Ft=I.forwardRef((function(t,e){const n=Object(yt.a)({props:t,name:"MuiToolbar"}),{className:r,component:o="div",disableGutters:i=!1,variant:a="regular"}=n,s=Object(N.a)(n,Dt),l=Object(z.a)({},n,{component:o,disableGutters:i,variant:a}),c=(t=>{const{classes:e,disableGutters:n,variant:r}=t,o={root:["root",!n&&"gutters",r]};return Object(vt.a)(o,Rt,e)})(l);return Object($.jsx)(Bt,Object(z.a)({as:o,className:Object(et.a)(c.root,r),ref:e,ownerState:l},s))}));function It(t){return Object(xt.a)("MuiTypography",t)}Object(ht.a)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Mt=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Wt=Object(bt.a)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.variant&&e[n.variant],"inherit"!==n.align&&e[`align${Object(At.a)(n.align)}`],n.noWrap&&e.noWrap,n.gutterBottom&&e.gutterBottom,n.paragraph&&e.paragraph]}})((({theme:t,ownerState:e})=>Object(z.a)({margin:0},"inherit"===e.variant&&{font:"inherit"},"inherit"!==e.variant&&t.typography[e.variant],"inherit"!==e.align&&{textAlign:e.align},e.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e.gutterBottom&&{marginBottom:"0.35em"},e.paragraph&&{marginBottom:16}))),zt={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Nt={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var Vt=I.forwardRef((function(t,e){const n=Object(yt.a)({props:t,name:"MuiTypography"}),r=(t=>Nt[t]||t)(n.color),o=st(Object(z.a)({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:h=zt}=o,p=Object(N.a)(o,Mt),f=Object(z.a)({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:h}),m=s||(u?"p":h[d]||zt[d])||"span",g=(t=>{const{align:e,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=t,s={root:["root",i,"inherit"!==t.align&&`align${Object(At.a)(e)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Object(vt.a)(s,It,a)})(f);return Object($.jsx)(Wt,Object(z.a)({as:m,ref:e,ownerState:f,className:Object(et.a)(g.root,a)},p))})),Ut=n(100),Ht=n.n(Ut);const $t="var(--1-sb-dvh, 1vh)";function Gt(){const t=Object(I.useMemo)((()=>{var t,e;return null===(e=null===(t=null===window||void 0===window?void 0:window.CSS)||void 0===t?void 0:t.supports)||void 0===e?void 0:e.call(t,"height: 100dvh")}),[]),e=()=>{var e=t?"1dvh":window.innerHeight/100+"px";document.documentElement.style.setProperty("--1-sb-dvh",e)};return Object(I.useEffect)((()=>{if(e(),!t)return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}})),null}var Yt=n(54),Qt=n(24),Zt=n(127),Xt=n(36),qt=n(42),Kt=n(68);function Jt(t,e){return Jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Jt(t,e)}function te(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Jt(t,e)}var ee=I.default.createContext(null);function ne(t,e){var n=Object.create(null);return t&&I.Children.map(t,(function(t){return t})).forEach((function(t){n[t.key]=function(t){return e&&Object(I.isValidElement)(t)?e(t):t}(t)})),n}function re(t,e,n){return null!=n[e]?n[e]:t.props[e]}function oe(t,e,n){var r=ne(t.children),o=function(t,e){function n(n){return n in e?e[n]:t[n]}t=t||{},e=e||{};var r,o=Object.create(null),i=[];for(var a in t)a in e?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in e){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(e,r);return Object.keys(o).forEach((function(i){var a=o[i];if(Object(I.isValidElement)(a)){var s=i in e,l=i in r,c=e[i],u=Object(I.isValidElement)(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&Object(I.isValidElement)(c)&&(o[i]=Object(I.cloneElement)(a,{onExited:n.bind(null,a),in:c.props.in,exit:re(a,"exit",t),enter:re(a,"enter",t)})):o[i]=Object(I.cloneElement)(a,{in:!1}):o[i]=Object(I.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:re(a,"exit",t),enter:re(a,"enter",t)})}})),o}var ie=Object.values||function(t){return Object.keys(t).map((function(e){return t[e]}))},ae=function(t){function e(e,n){var r,o=(r=t.call(this,e,n)||this).handleExited.bind(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}te(e,t);var n=e.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(t,e){var n,r,o=e.children,i=e.handleExited;return{children:e.firstRender?(n=t,r=i,ne(n.children,(function(t){return Object(I.cloneElement)(t,{onExited:r.bind(null,t),in:!0,appear:re(t,"appear",n),enter:re(t,"enter",n),exit:re(t,"exit",n)})}))):oe(t,o,i),firstRender:!1}},n.handleExited=function(t,e){var n=ne(this.props.children);t.key in n||(t.props.onExited&&t.props.onExited(e),this.mounted&&this.setState((function(e){var n=Object(z.a)({},e.children);return delete n[t.key],{children:n}})))},n.render=function(){var t=this.props,e=t.component,n=t.childFactory,r=Object(N.a)(t,["component","childFactory"]),o=this.state.contextValue,i=ie(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===e?I.default.createElement(ee.Provider,{value:o},i):I.default.createElement(ee.Provider,{value:o},I.default.createElement(e,r,i))},e}(I.default.Component);ae.propTypes={},ae.defaultProps={component:"div",childFactory:function(t){return t}};var se=ae,le=n(108);var ce=function(t){const{className:e,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=t,[u,d]=I.useState(!1),h=Object(et.a)(e,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:a,height:a,top:-a/2+i,left:-a/2+o},f=Object(et.a)(n.child,u&&n.childLeaving,r&&n.childPulsate);return s||u||d(!0),I.useEffect((()=>{if(!s&&null!=l){const t=setTimeout(l,c);return()=>{clearTimeout(t)}}}),[l,s,c]),Object($.jsx)("span",{className:h,style:p,children:Object($.jsx)("span",{className:f})})};var ue=Object(ht.a)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const de=["center","classes","className"];let he,pe,fe,me,ge=t=>t;const ve=Object(Y.d)(he||(he=ge`
31
+ `;var a=e=>i.default.createElement(r,{viewBox:"0 0 50 50"},i.default.createElement("circle",{className:"path",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"3",stroke:e.color||"black"})),s=n(53),c=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class l{}class u{constructor(){this.videoReady=!1,this.sdkReady=!1}}class d extends i.default.Component{constructor(e){super(e),this.onVideoReady=()=>{this.setState({videoReady:!0},(()=>{const{onSuccess:e}=this.props;e&&e(this)}))},this.onVideoError=e=>{if(!0===this.state.videoReady){const{onError:t}=this.props.configuration;t?t(e):console.error(e)}else{const{onFailure:t}=this.props;t&&t(e),this.dispose()}},this.state=new u}get bridge(){var e;return(null!==(e=this.props.sdk)&&void 0!==e?e:o.a.instance).bridge}dispose(){const{container:e}=this.props;e&&Object(i.render)(null,e)}componentDidMount(){this.disposed=!1,this.bridge.awaitInitialized().then((()=>{this.setState({sdkReady:!0})}))}componentWillUnmount(){this.disposed=!0}isSupported(){return"localhost"===location.hostname||"https:"===location.protocol}swapCameraFacing(e){this.camera.swapCameraFacing(e)}switchCamera(e,t){return c(this,void 0,void 0,(function*(){this.camera.switchCamera(e,t)}))}getActiveCameraInfo(){return this.camera.getActiveCameraInfo()}fetchAvailableCameras(){return s.a.INSTANCE.load()}renderSpinner(e){return this.state.videoReady&&this.state.sdkReady?null:i.default.createElement("div",{"data-sb-spinner":"1",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:500}},i.default.createElement(a,{color:e}))}setTorchState(e){return this.camera.setTorchState(e)}}d.DEFAULT_DETECTION_RESOLUTION=600,d.DETECTION_RESULTION_4K=3840},function(e,t,n){"use strict";var i=n(156);t.a=i.a},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class o extends Error{constructor(e,t,n){super(t),this.name="",this.name=e,this.message=t,this.webApiError=n}static mediaDevicesUndefined(){return new o(this.MESSAGE.DEVICES_UNDEFINED,"Does your device even have a camera? If so, please use a secure context (HTTPS) or use 'localhost' explicitly.")}static enumerateDevicesFailed(){return new o(this.MESSAGE.DEVICES_UNDEFINED,"Does your device even have a camera? Because we're unable to query query navigator.mediaDevices?.enumerateDevices")}static mediaDeviceNotFound(e){return new o(this.MESSAGE.ENUMERATE_FAILED,"Does your device even have a camera? Because we were unable to query navigator.mediaDevices?.getUserMedia().",e)}static permissionDenied(e){return new o(this.MESSAGE.PERMISSION_DENIED,"Camera permission has not been granted. Please prompt your users again to grant permission.",e)}static unknown(e){return new o(this.MESSAGE.UNKNOWN,"\n Unfortunately we were unable to query navigator.mediaDevicess.getUserMedia, \n and unable to determine the reason why. This may be caused by the user to denied the permission prompt. \n Or you may be using an in-app browser that itself has not been granted permission to use the camera.\n Or your users may be using a niche browser that does not support the media API at all!\n ",e)}static tryCheckPermission(){return i(this,void 0,void 0,(function*(){if(!this.permissionState)try{const e=yield navigator.permissions.query({name:"camera"});this.permissionState=e.state}catch(e){this.permissionState=this.PERMISSION_STATE.UNKNOWN}}))}static hasDeniedPermission(){return this.permissionState===this.PERMISSION_STATE.DENIED}static hasCheckedPermission(){return!!this.permissionState}static createFromDOMException(e){return e instanceof DOMException?"NotAllowedError"===e.name?o.permissionDenied("Specifically, the native 'NotAllowedError' was thrown."):"NotFoundError"===e.name?o.mediaDeviceNotFound("Specifically, the native 'NotFoundError' was thrown."):void 0:o.unknown(null==e?void 0:e.message)}}o.PERMISSION_STATE={GRANTED:"granted",DENIED:"denied",PROMPT:"prompt",UNKNOWN:"unknown"},o.MESSAGE={DEVICES_UNDEFINED:"MediaError_DevicesUndefined",DEVICE_NOT_FOUND:"MediaError_DeviceNotFound",ENUMERATE_FAILED:"MediaError_EnumerateFailed",PERMISSION_DENIED:"MediaError_PermissionDenied",UNKNOWN:"MediaError_Unknown"}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Fe})),n.d(t,"b",(function(){return He})),n.d(t,"c",(function(){return Ge})),n.d(t,"d",(function(){return $e}));var i=n(4),o=(n(135),n(0)),r=n(110),a=n.n(r),s=n(55),c=n(111),l="undefined"!=typeof e&&void 0!==e.env&&(e.env.REACT_APP_SC_ATTR||e.env.SC_ATTR)||"data-styled",u="active",d="data-styled-version",m="6.1.8",p="/*!sc*/\n",h="undefined"!=typeof window&&"HTMLElement"in window,f=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof e&&void 0!==e.env&&void 0!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==e.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&e.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof e&&void 0!==e.env&&void 0!==e.env.SC_DISABLE_SPEEDY&&""!==e.env.SC_DISABLE_SPEEDY&&("false"!==e.env.SC_DISABLE_SPEEDY&&e.env.SC_DISABLE_SPEEDY)),g=(new Set,Object.freeze([])),v=Object.freeze({});function b(e,t,n){return void 0===n&&(n=v),e.theme!==n.theme&&e.theme||t||n.theme}var y=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),C=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,A=/(^-|-$)/g;function S(e){return e.replace(C,"-").replace(A,"")}var w=/(a)(d)/gi,x=function(e){return String.fromCharCode(e+(e>25?39:97))};function E(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=x(t%52)+n;return(x(t%52)+n).replace(w,"$1-$2")}var O,D=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},T=function(e){return D(5381,e)};function B(e){return E(T(e)>>>0)}function k(e){return e.displayName||e.name||"Component"}function I(e){return"string"==typeof e&&!0}var P="function"==typeof Symbol&&Symbol.for,L=P?Symbol.for("react.memo"):60115,R=P?Symbol.for("react.forward_ref"):60112,_={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},j={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},M={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},F=((O={})[R]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},O[L]=M,O);function N(e){return("type"in(t=e)&&t.type.$$typeof)===L?M:"$$typeof"in e?F[e.$$typeof]:_;var t}var V=Object.defineProperty,W=Object.getOwnPropertyNames,z=Object.getOwnPropertySymbols,H=Object.getOwnPropertyDescriptor,U=Object.getPrototypeOf,Z=Object.prototype;function G(e,t,n){if("string"!=typeof t){if(Z){var i=U(t);i&&i!==Z&&G(e,i,n)}var o=W(t);z&&(o=o.concat(z(t)));for(var r=N(e),a=N(t),s=0;s<o.length;++s){var c=o[s];if(!(c in j||n&&n[c]||a&&c in a||r&&c in r)){var l=H(t,c);try{V(e,c,l)}catch(e){}}}}return e}function $(e){return"function"==typeof e}function Y(e){return"object"==typeof e&&"styledComponentId"in e}function Q(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function X(e,t){if(0===e.length)return"";for(var n=e[0],i=1;i<e.length;i++)n+=t?t+e[i]:e[i];return n}function q(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function K(e,t,n){if(void 0===n&&(n=!1),!n&&!q(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var i=0;i<t.length;i++)e[i]=K(e[i],t[i]);else if(q(t))for(var i in t)e[i]=K(e[i],t[i]);return e}function J(e,t){Object.defineProperty(e,"toString",{value:t})}function ee(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var te=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,i=n.length,o=i;e>=o;)if((o<<=1)<0)throw ee(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var r=i;r<o;r++)this.groupSizes[r]=0}for(var a=this.indexOfGroup(e+1),s=(r=0,t.length);r<s;r++)this.tag.insertRule(a,t[r])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),i=n+t;this.groupSizes[e]=0;for(var o=n;o<i;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],i=this.indexOfGroup(e),o=i+n,r=i;r<o;r++)t+="".concat(this.tag.getRule(r)).concat(p);return t},e}(),ne=new Map,ie=new Map,oe=1,re=function(e){if(ne.has(e))return ne.get(e);for(;ie.has(oe);)oe++;var t=oe++;return ne.set(e,t),ie.set(t,e),t},ae=function(e,t){oe=t+1,ne.set(e,t),ie.set(t,e)},se="style[".concat(l,"][").concat(d,'="').concat(m,'"]'),ce=new RegExp("^".concat(l,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),le=function(e,t,n){for(var i,o=n.split(","),r=0,a=o.length;r<a;r++)(i=o[r])&&e.registerName(t,i)},ue=function(e,t){for(var n,i=(null!==(n=t.textContent)&&void 0!==n?n:"").split(p),o=[],r=0,a=i.length;r<a;r++){var s=i[r].trim();if(s){var c=s.match(ce);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(ae(u,l),le(e,u,c[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(s)}}};function de(){return n.nc}var me=function(e){var t=document.head,n=e||t,i=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(l,"]")));return t[t.length-1]}(n),r=void 0!==o?o.nextSibling:null;i.setAttribute(l,u),i.setAttribute(d,m);var a=de();return a&&i.setAttribute("nonce",a),n.insertBefore(i,r),i},pe=function(){function e(e){this.element=me(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,i=t.length;n<i;n++){var o=t[n];if(o.ownerNode===e)return o}throw ee(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),he=function(){function e(e){this.element=me(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),fe=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),ge=h,ve={isServer:!h,useCSSOMInjection:!f},be=function(){function e(e,t,n){void 0===e&&(e=v),void 0===t&&(t={});var o=this;this.options=Object(i.a)(Object(i.a)({},ve),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&h&&ge&&(ge=!1,function(e){for(var t=document.querySelectorAll(se),n=0,i=t.length;n<i;n++){var o=t[n];o&&o.getAttribute(l)!==u&&(ue(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),J(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,i="",o=function(n){var o=function(e){return ie.get(e)}(n);if(void 0===o)return"continue";var r=e.names.get(o),a=t.getGroup(n);if(void 0===r||0===a.length)return"continue";var s="".concat(l,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==r&&r.forEach((function(e){e.length>0&&(c+="".concat(e,","))})),i+="".concat(a).concat(s,'{content:"').concat(c,'"}').concat(p)},r=0;r<n;r++)o(r);return i}(o)}))}return e.registerId=function(e){return re(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Object(i.a)(Object(i.a)({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new fe(n):t?new pe(n):new he(n)}(this.options),new te(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(re(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(re(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(re(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),ye=/&/g,Ce=/^\s*\/\/.*$/gm;function Ae(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ae(e.children,t)),e}))}function Se(e){var t,n,i,o=void 0===e?v:e,r=o.options,a=void 0===r?v:r,c=o.plugins,l=void 0===c?g:c,u=function(e,i,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},d=l.slice();d.push((function(e){e.type===s.a&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(ye,n).replace(i,u))})),a.prefix&&d.push(s.d),d.push(s.g);var m=function(e,o,r,c){void 0===o&&(o=""),void 0===r&&(r=""),void 0===c&&(c="&"),t=c,n=o,i=new RegExp("\\".concat(n,"\\b"),"g");var l=e.replace(Ce,""),u=s.b(r||o?"".concat(r," ").concat(o," { ").concat(l," }"):l);a.namespace&&(u=Ae(u,a.namespace));var m=[];return s.f(u,s.c(d.concat(s.e((function(e){return m.push(e)}))))),m};return m.hash=l.length?l.reduce((function(e,t){return t.name||ee(15),D(e,t.name)}),5381).toString():"",m}var we=new be,xe=Se(),Ee=o.default.createContext({shouldForwardProp:void 0,styleSheet:we,stylis:xe}),Oe=(Ee.Consumer,o.default.createContext(void 0));function De(){return Object(o.useContext)(Ee)}function Te(e){var t=Object(o.useState)(e.stylisPlugins),n=t[0],i=t[1],r=De().styleSheet,s=Object(o.useMemo)((function(){var t=r;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,r]),c=Object(o.useMemo)((function(){return Se({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})}),[e.enableVendorPrefixes,e.namespace,n]);Object(o.useEffect)((function(){a()(n,e.stylisPlugins)||i(e.stylisPlugins)}),[e.stylisPlugins]);var l=Object(o.useMemo)((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:s,stylis:c}}),[e.shouldForwardProp,s,c]);return o.default.createElement(Ee.Provider,{value:l},o.default.createElement(Oe.Provider,{value:c},e.children))}var Be=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=xe);var i=n.name+t.hash;e.hasNameForId(n.id,i)||e.insertRules(n.id,i,t(n.rules,i,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,J(this,(function(){throw ee(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=xe),this.name+e.hash},e}(),ke=function(e){return e>="A"&&e<="Z"};function Ie(e){for(var t="",n=0;n<e.length;n++){var i=e[n];if(1===n&&"-"===i&&"-"===e[0])return e;ke(i)?t+="-"+i.toLowerCase():t+=i}return t.startsWith("ms-")?"-"+t:t}var Pe=function(e){return null==e||!1===e||""===e},Le=function(e){var t,n,o=[];for(var r in e){var a=e[r];e.hasOwnProperty(r)&&!Pe(a)&&(Array.isArray(a)&&a.isCss||$(a)?o.push("".concat(Ie(r),":"),a,";"):q(a)?o.push.apply(o,Object(i.e)(Object(i.e)(["".concat(r," {")],Le(a),!1),["}"],!1)):o.push("".concat(Ie(r),": ").concat((t=r,null==(n=a)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in c.a||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return o};function Re(e,t,n,i){return Pe(e)?[]:Y(e)?[".".concat(e.styledComponentId)]:$(e)?!$(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Re(e(t),t,n,i):e instanceof Be?n?(e.inject(n,i),[e.getName(i)]):[e]:q(e)?Le(e):Array.isArray(e)?Array.prototype.concat.apply(g,e.map((function(e){return Re(e,t,n,i)}))):[e.toString()];var o}function _e(e){for(var t=0;t<e.length;t+=1){var n=e[t];if($(n)&&!Y(n))return!1}return!0}var je=T(m),Me=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&_e(e),this.componentId=t,this.baseHash=D(je,t),this.baseStyle=n,be.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))i=Q(i,this.staticRulesId);else{var o=X(Re(this.rules,e,t,n)),r=E(D(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,r)){var a=n(o,".".concat(r),void 0,this.componentId);t.insertRules(this.componentId,r,a)}i=Q(i,r),this.staticRulesId=r}else{for(var s=D(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u;else if(u){var d=X(Re(u,e,t,n));s=D(s,d+l),c+=d}}if(c){var m=E(s>>>0);t.hasNameForId(this.componentId,m)||t.insertRules(this.componentId,m,n(c,".".concat(m),void 0,this.componentId)),i=Q(i,m)}}return i},e}(),Fe=o.default.createContext(void 0);Fe.Consumer;var Ne={};new Set;function Ve(e,t,n){var r=Y(e),a=e,s=!I(e),c=t.attrs,l=void 0===c?g:c,u=t.componentId,d=void 0===u?function(e,t){var n="string"!=typeof e?"sc":S(e);Ne[n]=(Ne[n]||0)+1;var i="".concat(n,"-").concat(B(m+n+Ne[n]));return t?"".concat(t,"-").concat(i):i}(t.displayName,t.parentComponentId):u,p=t.displayName,h=void 0===p?function(e){return I(e)?"styled.".concat(e):"Styled(".concat(k(e),")")}(e):p,f=t.displayName&&t.componentId?"".concat(S(t.displayName),"-").concat(t.componentId):t.componentId||d,C=r&&a.attrs?a.attrs.concat(l).filter(Boolean):l,A=t.shouldForwardProp;if(r&&a.shouldForwardProp){var w=a.shouldForwardProp;if(t.shouldForwardProp){var x=t.shouldForwardProp;A=function(e,t){return w(e,t)&&x(e,t)}}else A=w}var E=new Me(n,f,r?a.componentStyle:void 0);function O(e,t){return function(e,t,n){var r=e.attrs,a=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,l=e.styledComponentId,u=e.target,d=o.default.useContext(Fe),m=De(),p=e.shouldForwardProp||m.shouldForwardProp,h=b(t,d,s)||v,f=function(e,t,n){for(var o,r=Object(i.a)(Object(i.a)({},t),{className:void 0,theme:n}),a=0;a<e.length;a+=1){var s=$(o=e[a])?o(r):o;for(var c in s)r[c]="className"===c?Q(r[c],s[c]):"style"===c?Object(i.a)(Object(i.a)({},r[c]),s[c]):s[c]}return t.className&&(r.className=Q(r.className,t.className)),r}(r,t,h),g=f.as||u,C={};for(var A in f)void 0===f[A]||"$"===A[0]||"as"===A||"theme"===A&&f.theme===h||("forwardedAs"===A?C.as=f.forwardedAs:p&&!p(A,g)||(C[A]=f[A]));var S=function(e,t){var n=De();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(a,f),w=Q(c,l);return S&&(w+=" "+S),f.className&&(w+=" "+f.className),C[I(g)&&!y.has(g)?"class":"className"]=w,C.ref=n,Object(o.createElement)(g,C)}(D,e,t)}O.displayName=h;var D=o.default.forwardRef(O);return D.attrs=C,D.componentStyle=E,D.displayName=h,D.shouldForwardProp=A,D.foldedComponentIds=r?Q(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=f,D.target=r?a.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0,o=t;i<o.length;i++)K(e,o[i],!0);return e}({},a.defaultProps,e):e}}),J(D,(function(){return".".concat(D.styledComponentId)})),s&&G(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function We(e,t){for(var n=[e[0]],i=0,o=t.length;i<o;i+=1)n.push(t[i],e[i+1]);return n}var ze=function(e){return Object.assign(e,{isCss:!0})};function He(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if($(e)||q(e))return ze(Re(We(g,Object(i.e)([e],t,!0))));var o=e;return 0===t.length&&1===o.length&&"string"==typeof o[0]?Re(o):ze(Re(We(o,t)))}function Ue(e,t,n){if(void 0===n&&(n=v),!t)throw ee(1,t);var o=function(o){for(var r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];return e(t,n,He.apply(void 0,Object(i.e)([o],r,!1)))};return o.attrs=function(o){return Ue(e,t,Object(i.a)(Object(i.a)({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},o.withConfig=function(o){return Ue(e,t,Object(i.a)(Object(i.a)({},n),o))},o}var Ze=function(e){return Ue(Ve,e)},Ge=Ze;y.forEach((function(e){Ge[e]=Ze(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=_e(e),be.registerId(this.componentId+1)}e.prototype.createStyles=function(e,t,n,i){var o=i(X(Re(this.rules,t,n,i)),""),r=this.componentId+e;n.insertRules(r,r,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,i){e>2&&be.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,i)}}();function $e(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=X(He.apply(void 0,Object(i.e)([e],t,!1))),r=B(o);return new Be(r,o)}(function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=de(),i=X([n&&'nonce="'.concat(n,'"'),"".concat(l,'="true"'),"".concat(d,'="').concat(m,'"')].filter(Boolean)," ");return"<style ".concat(i,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw ee(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw ee(2);var n=((t={})[l]="",t[d]=m,t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=de();return r&&(n.nonce=r),[o.default.createElement("style",Object(i.a)({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new be({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw ee(2);return o.default.createElement(Te,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw ee(3)}})(),"__sc-".concat(l,"__")}).call(this,n(104))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(79);class o extends i.a{constructor(e){super(),this.mirrored=!1,this.spinnerColor="black",this.backgroundColor="black",this.videoConstraints={width:{ideal:e.width},height:{ideal:e.height},facingMode:"environment",resizeMode:"none",experimental:{focusMode:"continous",focusDistance:0}}}static mapVideoConstraints(e,t){e.videoConstraints&&this.mapValues(e.videoConstraints,t.videoConstraints)}}o.DEFAULT_VIDEO_RESOLUTION_4K={width:3840,height:2160},o.DEFAULT_VIDEO_RESOLUTION_HD={width:1920,height:1080},o.DEFAULT_ACCEPTED_BRIGHTNESS_SCORE=0,o.DEFAULT_ACCEPTED_ANGLE_SCORE=75,o.DEFAULT_ACCEPTED_SIZE_SCORE=75},function(e,t,n){"use strict";n.d(t,"e",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return c}));n(3),n(136),n(51);const i={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${i[e]}px)`};function r(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||o;return t.reduce(((i,o,r)=>(i[e.up(e.keys[r])]=n(t[r]),i)),{})}if("object"==typeof t){const e=r.breakpoints||o;return Object.keys(t).reduce(((o,r)=>{if(-1!==Object.keys(e.values||i).indexOf(r)){o[e.up(r)]=n(t[r],r)}else{const e=r;o[e]=t[e]}return o}),{})}return n(t)}function a(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function s(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function c({values:e,breakpoints:t,base:n}){const i=n||function(e,t){if("object"!=typeof e)return{};const n={},i=Object.keys(t);return Array.isArray(e)?i.forEach(((t,i)=>{i<e.length&&(n[t]=!0)})):i.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(e,t),o=Object.keys(i);if(0===o.length)return e;let r;return o.reduce(((t,n,i)=>(Array.isArray(e)?(t[n]=null!=e[i]?e[i]:e[r],r=i):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[r],r=n):t[n]=e,t)),{})}},function(e,t,n){"use strict";n.r(t),n.d(t,"SingleScanningMode",(function(){return v})),n.d(t,"Resolution",(function(){return b})),n.d(t,"CameraConfiguration",(function(){return y})),n.d(t,"TopBarConfiguration",(function(){return A.a})),n.d(t,"ActionBarConfiguration",(function(){return S})),n.d(t,"BarcodeUseCase",(function(){return C})),n.d(t,"Palette",(function(){return m.f})),n.d(t,"StyledText",(function(){return m.j})),n.d(t,"IconStyle",(function(){return m.e})),n.d(t,"PolygonStyle",(function(){return m.g})),n.d(t,"BackgroundStyle",(function(){return m.a})),n.d(t,"ForegroundStyle",(function(){return m.d})),n.d(t,"RoundButton",(function(){return m.h})),n.d(t,"BadgedButton",(function(){return m.b})),n.d(t,"ButtonConfiguration",(function(){return m.c})),n.d(t,"Sound",(function(){return m.i})),n.d(t,"Vibration",(function(){return m.l})),n.d(t,"Timeouts",(function(){return m.k})),n.d(t,"ViewFinderConfiguration",(function(){return L})),n.d(t,"FinderStyle",(function(){return I})),n.d(t,"FinderCorneredStyle",(function(){return R})),n.d(t,"FinderStrokedStyle",(function(){return _})),n.d(t,"UserGuidanceConfiguration",(function(){return j.a})),n.d(t,"BarcodeItemErrorState",(function(){return h})),n.d(t,"BarcodeMappedData",(function(){return f})),n.d(t,"BarcodeInfoMapping",(function(){return g})),n.d(t,"ExpectedBarcode",(function(){return B})),n.d(t,"FindAndPickScanningMode",(function(){return k})),n.d(t,"BarcodeTextLocalization",(function(){return M})),n.d(t,"BarcodeRecognizerConfiguration",(function(){return F})),n.d(t,"ArOverlayPolygonConfiguration",(function(){return d.c})),n.d(t,"BarcodeItemConfiguration",(function(){return d.e})),n.d(t,"BadgeStyle",(function(){return d.d})),n.d(t,"ArOverlayGeneralConfiguration",(function(){return d.b})),n.d(t,"FindAndPickArOverlayPolygonConfiguration",(function(){return d.f})),n.d(t,"FindAndPickBadgeConfiguration",(function(){return d.g})),n.d(t,"ArOverlayFindAndPickConfiguration",(function(){return d.a})),n.d(t,"BarcodeScannerConfiguration",(function(){return V})),n.d(t,"BarcodeScannerUIItem",(function(){return z})),n.d(t,"BarcodeScannerUIResult",(function(){return H})),n.d(t,"OcrResult",(function(){return U.OcrResult})),n.d(t,"FieldValidationStatusValues",(function(){return U.FieldValidationStatusValues})),n.d(t,"FieldDataFormatValues",(function(){return U.FieldDataFormatValues})),n.d(t,"FieldParsedData",(function(){return U.FieldParsedData})),n.d(t,"FieldType",(function(){return U.FieldType})),n.d(t,"Field",(function(){return U.Field})),n.d(t,"GenericDocumentType",(function(){return U.GenericDocumentType})),n.d(t,"GenericDocument",(function(){return U.GenericDocument})),n.d(t,"Sheet",(function(){return w})),n.d(t,"SwipeToDelete",(function(){return x})),n.d(t,"ManualCountEditDialog",(function(){return E})),n.d(t,"SheetContent",(function(){return O})),n.d(t,"MultipleScanningMode",(function(){return D})),n.d(t,"ScanbotAlertDialog",(function(){return T})),n.d(t,"CameraPermissionScreen",(function(){return N})),n.d(t,"BarcodeItem",(function(){return W.BarcodeItem})),n.d(t,"AcknowledgementBottomBar",(function(){return Y})),n.d(t,"AcknowledgementScreenConfiguration",(function(){return Q})),n.d(t,"ShutterButton",(function(){return ce})),n.d(t,"PreviewButton",(function(){return te})),n.d(t,"ScanAssistanceOverlay",(function(){return le})),n.d(t,"PagePreviewMode",(function(){return ue})),n.d(t,"TextButtonMode",(function(){return de})),n.d(t,"NoButtonMode",(function(){return me})),n.d(t,"CameraBottomBar",(function(){return pe})),n.d(t,"PageSnapFeedbackMode",(function(){return ne})),n.d(t,"PageSnapFunnelAnimation",(function(){return he})),n.d(t,"PageSnapCheckMarkAnimation",(function(){return fe})),n.d(t,"PageSnapFeedbackNone",(function(){return ge})),n.d(t,"CaptureFeedback",(function(){return ve})),n.d(t,"DocumentPolygonConfiguration",(function(){return be})),n.d(t,"SelectCameraMenu",(function(){return ye})),n.d(t,"CameraScreenConfiguration",(function(){return Ce})),n.d(t,"CroppingBottomBar",(function(){return Ae})),n.d(t,"CroppingScreenConfiguration",(function(){return Se})),n.d(t,"DocumentScannerCameraConfiguration",(function(){return q})),n.d(t,"DocumentScannerOutputSettings",(function(){return xe})),n.d(t,"DocumentScannerScreens",(function(){return Be})),n.d(t,"DocumentScannerTextLocalization",(function(){return ke})),n.d(t,"UserGuidanceStates",(function(){return K})),n.d(t,"DocumentScannerUserGuidance",(function(){return J})),n.d(t,"DocumentFlowAppearanceConfiguration",(function(){return Ie})),n.d(t,"DocumentScanningFlow",(function(){return Pe})),n.d(t,"IntroListEntry",(function(){return ie.g})),n.d(t,"IntroImage",(function(){return ie.f})),n.d(t,"NoIntroImage",(function(){return ie.j})),n.d(t,"ReceiptsIntroImage",(function(){return ie.k})),n.d(t,"MedicalCertificateIntroImage",(function(){return ie.i})),n.d(t,"DocumentIntroImage",(function(){return ie.d})),n.d(t,"CheckIntroImage",(function(){return ie.a})),n.d(t,"IdCardIntroImage",(function(){return ie.e})),n.d(t,"CreditCardIntroImage",(function(){return ie.b})),n.d(t,"CustomImage",(function(){return ie.c})),n.d(t,"IntroductionScreenConfiguration",(function(){return ie.h})),n.d(t,"ReviewBottomBarConfiguration",(function(){return Ee})),n.d(t,"ReviewMorePopupMenu",(function(){return Oe})),n.d(t,"ZoomOverlay",(function(){return De})),n.d(t,"ReviewScreenConfiguration",(function(){return Te})),n.d(t,"CommonActionBarConfiguration",(function(){return s})),n.d(t,"CommonCameraConfiguration",(function(){return c})),n.d(t,"CommonCameraPermission",(function(){return o})),n.d(t,"CommonCommon",(function(){return Z})),n.d(t,"CommonNavigationBarConfiguration",(function(){return l})),n.d(t,"CommonScanbotAlertDialog",(function(){return r})),n.d(t,"CommonTopBarConfiguration",(function(){return u})),n.d(t,"CommonUserGuidanceConfiguration",(function(){return i})),n.d(t,"CommonViewFinderConfiguration",(function(){return a}));var i={};n.r(i),n.d(i,"UserGuidanceConfiguration",(function(){return G})),n.d(i,"IconUserGuidanceConfiguration",(function(){return $}));var o={};n.r(o),n.d(o,"CameraPermissionScreen",(function(){return X}));var r={};n.r(r),n.d(r,"ScanbotAlertDialog",(function(){return oe}));var a={};n.r(a),n.d(a,"ViewFinderConfiguration",(function(){return re})),n.d(a,"FinderStyle",(function(){return ee})),n.d(a,"FinderCorneredStyle",(function(){return ae})),n.d(a,"FinderStrokedStyle",(function(){return se}));var s={};n.r(s),n.d(s,"ActionBarConfiguration",(function(){return Le}));var c={};n.r(c),n.d(c,"Resolution",(function(){return Re})),n.d(c,"CameraConfiguration",(function(){return _e}));var l={};n.r(l);var u={};n.r(u),n.d(u,"TopBarConfiguration",(function(){return je}));var d=n(22),m=n(2),p=n(7);class h extends p.a{constructor(e={}){super(),this.title=new m.j({text:"Connection Error!",color:"?sbColorOnSurface"}),this.subtitle=new m.j({text:"There was an issue and the data requested was not fetched. You could try again or discard this result to start a new scan.",color:"?sbColorOnSurfaceVariant"}),this.retryButton=new m.c({}),this.cancelButton=new m.c({}),void 0!==e.title&&(this.title=new m.j(e.title)),void 0!==e.subtitle&&(this.subtitle=new m.j(e.subtitle)),void 0!==e.retryButton&&(this.retryButton=new m.c(e.retryButton)),void 0!==e.cancelButton&&(this.cancelButton=new m.c(e.cancelButton))}}class f extends p.a{constructor(e={}){if(super(),void 0===e.title)throw new Error("title must be present in constructor argument");if(this.title=e.title,void 0===e.subtitle)throw new Error("subtitle must be present in constructor argument");if(this.subtitle=e.subtitle,void 0===e.barcodeImage)throw new Error("barcodeImage must be present in constructor argument");this.barcodeImage=e.barcodeImage}}class g extends p.a{constructor(e={}){super(),this.barcodeItemMapper=null,this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.modalOverlayColor="?sbColorModalOverlay",this.loadingMessage=new m.j({text:"Loading message for barcode info mapping.",color:"?sbColorPrimary"}),this.errorState=new h({}),void 0!==e.barcodeItemMapper&&(this.barcodeItemMapper=null!=e.barcodeItemMapper?e.barcodeItemMapper:null),void 0!==e.sheetColor&&(this.sheetColor=e.sheetColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.modalOverlayColor&&(this.modalOverlayColor=e.modalOverlayColor),void 0!==e.loadingMessage&&(this.loadingMessage=new m.j(e.loadingMessage)),void 0!==e.errorState&&(this.errorState=new h(e.errorState))}}class v extends p.a{constructor(e={}){super(),this._type="SingleScanningMode",this.confirmationSheetEnabled=!1,this.barcodeImageVisible=!0,this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.modalOverlayColor="?sbColorModalOverlay",this.barcodeTitle=new m.j({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),this.barcodeSubtitle=new m.j({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.submitButton=new m.c({visible:!0,text:"?sheetSubmitButton",background:new m.a({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new m.d({iconVisible:!0,color:"?sbColorOnPrimary"})}),this.cancelButton=new m.c({visible:!0,text:"?singleModeConfirmationCancelButton",background:new m.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new m.d({iconVisible:!1,color:"?sbColorPrimary"})}),this.barcodeInfoMapping=new g({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",loadingMessage:new m.j({text:"?barcodeInfoMappingLoadingMessage",color:"?sbColorPrimary"}),errorState:new h({title:new m.j({text:"?barcodeInfoMappingErrorStateTitle",color:"?sbColorOnSurface"}),subtitle:new m.j({text:"?barcodeInfoMappingErrorStateSubtitle",color:"?sbColorOnSurfaceVariant"}),retryButton:new m.c({visible:!0,text:"?barcodeInfoMappingErrorStateRetryButton",background:new m.a({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new m.d({iconVisible:!0,color:"?sbColorOnPrimary"})}),cancelButton:new m.c({text:"?barcodeInfoMappingErrorStateCancelButton",background:new m.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new m.d({iconVisible:!1,color:"?sbColorPrimary"})})})}),this.arOverlay=new d.b({visible:!1,counterBadge:new d.d({visible:!0,background:new m.a({strokeColor:"#000000FF",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),automaticSelectionEnabled:!1,barcodeItemInfoPosition:"BELOW",polygon:new d.c({visible:!0,deselected:new m.g({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),selected:new m.g({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5})}),barcodeItemConfiguration:new d.e({imageVisible:!0,titleSelected:new m.j({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleSelected:new m.j({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),titleDeselected:new m.j({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleDeselected:new m.j({visible:!0,text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant",useShadow:!1}),backgroundSelected:new m.g({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:1,cornerRadius:5}),backgroundDeselected:new m.g({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:1,cornerRadius:5})})}),void 0!==e.confirmationSheetEnabled&&(this.confirmationSheetEnabled=e.confirmationSheetEnabled),void 0!==e.barcodeImageVisible&&(this.barcodeImageVisible=e.barcodeImageVisible),void 0!==e.sheetColor&&(this.sheetColor=e.sheetColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.modalOverlayColor&&(this.modalOverlayColor=e.modalOverlayColor),void 0!==e.barcodeTitle&&(this.barcodeTitle=new m.j(e.barcodeTitle)),void 0!==e.barcodeSubtitle&&(this.barcodeSubtitle=new m.j(e.barcodeSubtitle)),void 0!==e.submitButton&&(this.submitButton=new m.c(e.submitButton)),void 0!==e.cancelButton&&(this.cancelButton=new m.c(e.cancelButton)),void 0!==e.barcodeInfoMapping&&(this.barcodeInfoMapping=new g(e.barcodeInfoMapping)),void 0!==e.arOverlay&&(this.arOverlay=new d.b(e.arOverlay))}}class b extends p.a{constructor(e={}){if(super(),void 0===e.width)throw new Error("width must be present in constructor argument");if(this.width=e.width,void 0===e.height)throw new Error("height must be present in constructor argument");this.height=e.height}}class y extends p.a{constructor(e={}){super(),this.cameraModule="BACK",this.zoomSteps=[1,2,5],this.defaultZoomFactor=1,this.flashEnabled=!1,this.idealPreviewResolution=new b({width:1920,height:1080}),void 0!==e.cameraModule&&(this.cameraModule=e.cameraModule),void 0!==e.zoomSteps&&(this.zoomSteps=e.zoomSteps.map((e=>e))),void 0!==e.defaultZoomFactor&&(this.defaultZoomFactor=e.defaultZoomFactor),void 0!==e.flashEnabled&&(this.flashEnabled=e.flashEnabled),void 0!==e.idealPreviewResolution&&(this.idealPreviewResolution=new b(e.idealPreviewResolution))}}var C,A=n(57);class S extends p.a{constructor(e={}){super(),this.flashButton=new m.h({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"}),this.zoomButton=new m.h({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"}),this.flipCameraButton=new m.h({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"}),void 0!==e.flashButton&&(this.flashButton=new m.h(e.flashButton)),void 0!==e.zoomButton&&(this.zoomButton=new m.h(e.zoomButton)),void 0!==e.flipCameraButton&&(this.flipCameraButton=new m.h(e.flipCameraButton))}}class w extends p.a{constructor(e={}){super(),this.mode="COLLAPSED_SHEET",this.collapsedVisibleHeight="SMALL",this.listButton=new m.b({}),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.collapsedVisibleHeight&&(this.collapsedVisibleHeight=e.collapsedVisibleHeight),void 0!==e.listButton&&(this.listButton=new m.b(e.listButton))}}class x extends p.a{constructor(e={}){super(),this.enabled=!0,this.backgroundColor="?sbColorNegative",this.iconColor="?sbColorOnPrimary",void 0!==e.enabled&&(this.enabled=e.enabled),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.iconColor&&(this.iconColor=e.iconColor)}}class E extends p.a{constructor(e={}){super(),this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.modalOverlayColor="?sbColorModalOverlay",this.title=new m.j({text:"Update count",color:"?sbColorOnSurface"}),this.info=new m.j({text:"Adjust the number of items you scanned.",color:"?sbColorOnSurfaceVariant"}),this.updateButton=new m.c({visible:!0,text:"Update",background:new m.a({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new m.d({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),this.cancelButton=new m.c({visible:!0,text:"Cancel",background:new m.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new m.d({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),this.clearTextButton=new m.e({visible:!0,color:"?sbColorOnSurfaceVariant"}),void 0!==e.sheetColor&&(this.sheetColor=e.sheetColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.modalOverlayColor&&(this.modalOverlayColor=e.modalOverlayColor),void 0!==e.title&&(this.title=new m.j(e.title)),void 0!==e.info&&(this.info=new m.j(e.info)),void 0!==e.updateButton&&(this.updateButton=new m.c(e.updateButton)),void 0!==e.cancelButton&&(this.cancelButton=new m.c(e.cancelButton)),void 0!==e.clearTextButton&&(this.clearTextButton=new m.e(e.clearTextButton))}}class O extends p.a{constructor(e={}){super(),this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.manualCountChangeEnabled=!0,this.manualCountOutlineColor="?sbColorOutline",this.manualCountChangeColor="?sbColorPrimary",this.title=new m.j({text:"%d items",color:"?sbColorOnSurface"}),this.clearAllButton=new m.c({visible:!0,text:"Clear all",background:new m.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new m.d({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),this.barcodeItemTitle=new m.j({visible:!0,text:"BARCODE_TITLE",color:"?sbColorOnSurface",useShadow:!1}),this.barcodeItemSubtitle=new m.j({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.barcodeItemImageVisible=!0,this.submitButton=new m.c({visible:!0,text:"Submit",background:new m.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new m.d({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),this.startScanningButton=new m.c({visible:!0,text:"Start scanning",background:new m.a({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new m.d({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),this.placeholderTitle=new m.j({text:"No barcodes here!",color:"?sbColorOnSurface"}),this.placeholderSubtitle=new m.j({text:"The barcode list is currently empty. Close this sheet and scan your items to add them.",color:"?sbColorOnSurfaceVariant"}),this.placeholderIconBackground="?sbColorOutline",this.placeholderIcon=new m.e({visible:!0,color:"?sbColorOnSurface"}),this.swipeToDelete=new x({enabled:!0,backgroundColor:"?sbColorNegative",iconColor:"?sbColorOnPrimary"}),void 0!==e.sheetColor&&(this.sheetColor=e.sheetColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.manualCountChangeEnabled&&(this.manualCountChangeEnabled=e.manualCountChangeEnabled),void 0!==e.manualCountOutlineColor&&(this.manualCountOutlineColor=e.manualCountOutlineColor),void 0!==e.manualCountChangeColor&&(this.manualCountChangeColor=e.manualCountChangeColor),void 0!==e.title&&(this.title=new m.j(e.title)),void 0!==e.clearAllButton&&(this.clearAllButton=new m.c(e.clearAllButton)),void 0!==e.barcodeItemTitle&&(this.barcodeItemTitle=new m.j(e.barcodeItemTitle)),void 0!==e.barcodeItemSubtitle&&(this.barcodeItemSubtitle=new m.j(e.barcodeItemSubtitle)),void 0!==e.barcodeItemImageVisible&&(this.barcodeItemImageVisible=e.barcodeItemImageVisible),void 0!==e.submitButton&&(this.submitButton=new m.c(e.submitButton)),void 0!==e.startScanningButton&&(this.startScanningButton=new m.c(e.startScanningButton)),void 0!==e.placeholderTitle&&(this.placeholderTitle=new m.j(e.placeholderTitle)),void 0!==e.placeholderSubtitle&&(this.placeholderSubtitle=new m.j(e.placeholderSubtitle)),void 0!==e.placeholderIconBackground&&(this.placeholderIconBackground=e.placeholderIconBackground),void 0!==e.placeholderIcon&&(this.placeholderIcon=new m.e(e.placeholderIcon)),void 0!==e.swipeToDelete&&(this.swipeToDelete=new x(e.swipeToDelete))}}class D extends p.a{constructor(e={}){super(),this._type="MultipleScanningMode",this.countingRepeatDelay=1e3,this.mode="COUNTING",this.sheet=new w({mode:"COLLAPSED_SHEET",collapsedVisibleHeight:"SMALL",listButton:new m.b({badgeBackgroundColor:"?sbColorSurface",badgeForegroundColor:"?sbColorPrimary",visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"})}),this.sheetContent=new O({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",manualCountChangeEnabled:!0,manualCountOutlineColor:"?sbColorOutline",manualCountChangeColor:"?sbColorPrimary",title:new m.j({text:"?multipleModeSheetTitle",color:"?sbColorOnSurface"}),clearAllButton:new m.c({visible:!0,text:"?sheetClearAllButton",background:new m.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new m.d({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),barcodeItemTitle:new m.j({visible:!0,text:"BARCODE_TITLE",color:"?sbColorOnSurface",useShadow:!1}),barcodeItemSubtitle:new m.j({visible:!0,text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant",useShadow:!1}),barcodeItemImageVisible:!0,submitButton:new m.c({visible:!0,text:"?sheetSubmitButton",background:new m.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new m.d({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),startScanningButton:new m.c({visible:!0,text:"?sheetStartScanningButton",background:new m.a({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new m.d({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),placeholderTitle:new m.j({visible:!0,text:"?sheetPlaceholderTitle",color:"?sbColorOnSurface",useShadow:!1}),placeholderSubtitle:new m.j({visible:!0,text:"?sheetPlaceholderSubtitle",color:"?sbColorOnSurfaceVariant",useShadow:!1}),placeholderIconBackground:"?sbColorOutline",placeholderIcon:new m.e({visible:!0,color:"?sbColorOnSurface"}),swipeToDelete:new x({enabled:!0,backgroundColor:"?sbColorNegative",iconColor:"?sbColorOnPrimary"})}),this.manualCountEditDialog=new E({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",title:new m.j({text:"?manualCountEditDialogTitle",color:"?sbColorOnSurface"}),info:new m.j({text:"?manualCountEditDialogInfo",color:"?sbColorOnSurfaceVariant"}),updateButton:new m.c({visible:!0,text:"?manualCountEditDialogUpdateButton",background:new m.a({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new m.d({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new m.c({visible:!0,text:"?manualCountEditDialogCancelButton",background:new m.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new m.d({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),clearTextButton:new m.e({visible:!0,color:"?sbColorOnSurfaceVariant"})}),this.barcodeInfoMapping=new g({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",loadingMessage:new m.j({text:"?barcodeInfoMappingLoadingMessage",color:"?sbColorPrimary"}),errorState:new h({title:new m.j({text:"?barcodeInfoMappingErrorStateTitle",color:"?sbColorOnSurface"}),subtitle:new m.j({text:"?barcodeInfoMappingErrorStateSubtitle",color:"?sbColorOnSurfaceVariant"}),retryButton:new m.c({visible:!0,text:"?barcodeInfoMappingErrorStateRetryButton",background:new m.a({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new m.d({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new m.c({visible:!0,text:"?barcodeInfoMappingErrorStateCancelButton",background:new m.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new m.d({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})})})}),this.arOverlay=new d.b({visible:!1,counterBadge:new d.d({visible:!0,background:new m.a({strokeColor:"#FF000000",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),automaticSelectionEnabled:!1,barcodeItemInfoPosition:"BELOW",polygon:new d.c({visible:!0,deselected:new m.g({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),selected:new m.g({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5})}),barcodeItemConfiguration:new d.e({imageVisible:!0,titleSelected:new m.j({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleSelected:new m.j({visible:!0,text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant",useShadow:!1}),titleDeselected:new m.j({visible:!0,text:"BARCODE_TITLE",color:"?sbColorOnSurface",useShadow:!1}),subtitleDeselected:new m.j({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),backgroundSelected:new m.g({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:1,cornerRadius:5}),backgroundDeselected:new m.g({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:1,cornerRadius:5})})}),void 0!==e.countingRepeatDelay&&(this.countingRepeatDelay=e.countingRepeatDelay),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.sheet&&(this.sheet=new w(e.sheet)),void 0!==e.sheetContent&&(this.sheetContent=new O(e.sheetContent)),void 0!==e.manualCountEditDialog&&(this.manualCountEditDialog=new E(e.manualCountEditDialog)),void 0!==e.barcodeInfoMapping&&(this.barcodeInfoMapping=new g(e.barcodeInfoMapping)),void 0!==e.arOverlay&&(this.arOverlay=new d.b(e.arOverlay))}}class T extends p.a{constructor(e={}){if(super(),this.title=new m.j({text:"Title",color:"?sbColorOnSurface"}),this.subtitle=new m.j({text:"Standard explanation message text.",color:"?sbColorOnSurfaceVariant"}),this.sheetColor="?sbColorSurface",this.modalOverlayColor="?sbColorModalOverlay",this.dividerColor="?sbColorOutline",void 0!==e.title&&(this.title=new m.j(e.title)),void 0!==e.subtitle&&(this.subtitle=new m.j(e.subtitle)),void 0!==e.sheetColor&&(this.sheetColor=e.sheetColor),void 0!==e.modalOverlayColor&&(this.modalOverlayColor=e.modalOverlayColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0===e.okButton)throw new Error("okButton must be present in constructor argument");if(this.okButton=new m.c(e.okButton),void 0===e.cancelButton)throw new Error("cancelButton must be present in constructor argument");this.cancelButton=new m.c(e.cancelButton)}}class B extends p.a{constructor(e={}){if(super(),this.count=1,void 0===e.barcodeValue)throw new Error("barcodeValue must be present in constructor argument");this.barcodeValue=e.barcodeValue,void 0!==e.title&&(this.title=null!=e.title?e.title:null),void 0!==e.image&&(this.image=null!=e.image?e.image:null),void 0!==e.count&&(this.count=e.count)}}class k extends p.a{constructor(e={}){super(),this._type="FindAndPickScanningMode",this.scanningCompletedColor="?sbColorPositive",this.scanningPartiallyColor="?sbColorWarning",this.scanningNotScannedColor="?sbColorOutline",this.allowPartialScan=!1,this.expectedBarcodes=[],this.countingRepeatDelay=1e3,this.sheet=new w({mode:"COLLAPSED_SHEET",collapsedVisibleHeight:"SMALL",listButton:new m.b({badgeBackgroundColor:"?sbColorSurface",badgeForegroundColor:"?sbColorPrimary",visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"})}),this.sheetContent=new O({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",manualCountChangeEnabled:!0,manualCountOutlineColor:"?sbColorOutline",manualCountChangeColor:"?sbColorPrimary",title:new m.j({visible:!0,text:"?findAndPickSheetTitle",color:"?sbColorOnSurface",useShadow:!1}),clearAllButton:new m.c({visible:!0,text:"?sheetResetButton",background:new m.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new m.d({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),barcodeItemTitle:new m.j({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),barcodeItemSubtitle:new m.j({text:"?findAndPickSheetBarcodeItemSubtitle",color:"?sbColorOnSurfaceVariant"}),barcodeItemImageVisible:!0,submitButton:new m.c({visible:!0,text:"?sheetSubmitButton",background:new m.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new m.d({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),startScanningButton:new m.c({visible:!0,text:"?sheetStartScanningButton",background:new m.a({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new m.d({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),placeholderTitle:new m.j({text:"?sheetPlaceholderTitle",color:"?sbColorOnSurface"}),placeholderSubtitle:new m.j({text:"?sheetPlaceholderSubtitle",color:"?sbColorOnSurfaceVariant"}),placeholderIconBackground:"?sbColorOutline",placeholderIcon:new m.e({visible:!0,color:"?sbColorOnSurface"}),swipeToDelete:new x({enabled:!1,backgroundColor:"?sbColorNegative",iconColor:"?sbColorOnPrimary"})}),this.manualCountEditDialog=new E({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",title:new m.j({text:"?manualCountEditDialogTitle",color:"?sbColorOnSurface"}),info:new m.j({text:"?manualCountEditDialogInfo",color:"?sbColorOnSurfaceVariant"}),updateButton:new m.c({visible:!0,text:"?manualCountEditDialogUpdateButton",background:new m.a({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new m.d({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new m.c({visible:!0,text:"?manualCountEditDialogCancelButton",background:new m.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new m.d({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),clearTextButton:new m.e({visible:!0,color:"?sbColorOnSurfaceVariant"})}),this.arOverlay=new d.a({visible:!1,automaticSelectionEnabled:!0,polygon:new d.f({partiallyScanned:new m.g({strokeColor:"?sbColorWarning",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),rejected:new m.g({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),completed:new m.g({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5})}),badge:new d.g({partiallyScanned:new d.d({visible:!0,background:new m.a({strokeColor:"#000000FF",fillColor:"?sbColorWarning",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),rejected:new d.d({visible:!0,background:new m.a({strokeColor:"#000000FF",fillColor:"?sbColorSurface",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),completed:new d.d({visible:!0,background:new m.a({strokeColor:"#000000FF",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"})})}),this.partialScannedAlertDialogEnabled=!0,this.partialScannedAlertDialog=new T({title:new m.j({text:"?findAndPickPartialAlertTitle",color:"?sbColorOnSurface"}),subtitle:new m.j({text:"?findAndPickPartialAlertSubtitle",color:"?sbColorOnSurfaceVariant"}),sheetColor:"?sbColorSurface",modalOverlayColor:"?sbColorModalOverlay",dividerColor:"?sbColorOutline",okButton:new m.c({visible:!0,text:"?findAndPickPartialAlertSubmitButton",background:new m.a({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new m.d({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new m.c({visible:!0,text:"?findAndPickPartialAlertCancelButton",background:new m.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new m.d({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})})}),this.confirmationAlertDialogEnabled=!1,this.confirmationAlertDialog=new T({title:new m.j({text:"?findAndPickCompleteAlertTitle",color:"?sbColorOnSurface"}),subtitle:new m.j({text:"?findAndPickCompleteAlertSubtitle",color:"?sbColorOnSurfaceVariant"}),sheetColor:"?sbColorSurface",modalOverlayColor:"?sbColorModalOverlay",dividerColor:"?sbColorOutline",okButton:new m.c({visible:!0,text:"?findAndPickCompleteAlertSubmitButton",background:new m.a({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new m.d({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new m.c({visible:!0,text:"?findAndPickCompleteAlertCancelButton",background:new m.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new m.d({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})})}),void 0!==e.scanningCompletedColor&&(this.scanningCompletedColor=e.scanningCompletedColor),void 0!==e.scanningPartiallyColor&&(this.scanningPartiallyColor=e.scanningPartiallyColor),void 0!==e.scanningNotScannedColor&&(this.scanningNotScannedColor=e.scanningNotScannedColor),void 0!==e.allowPartialScan&&(this.allowPartialScan=e.allowPartialScan),void 0!==e.expectedBarcodes&&(this.expectedBarcodes=e.expectedBarcodes.map((e=>new B(e)))),void 0!==e.countingRepeatDelay&&(this.countingRepeatDelay=e.countingRepeatDelay),void 0!==e.sheet&&(this.sheet=new w(e.sheet)),void 0!==e.sheetContent&&(this.sheetContent=new O(e.sheetContent)),void 0!==e.manualCountEditDialog&&(this.manualCountEditDialog=new E(e.manualCountEditDialog)),void 0!==e.arOverlay&&(this.arOverlay=new d.a(e.arOverlay)),void 0!==e.partialScannedAlertDialogEnabled&&(this.partialScannedAlertDialogEnabled=e.partialScannedAlertDialogEnabled),void 0!==e.partialScannedAlertDialog&&(this.partialScannedAlertDialog=new T(e.partialScannedAlertDialog)),void 0!==e.confirmationAlertDialogEnabled&&(this.confirmationAlertDialogEnabled=e.confirmationAlertDialogEnabled),void 0!==e.confirmationAlertDialog&&(this.confirmationAlertDialog=new T(e.confirmationAlertDialog))}}(C||(C={})).From=function(e){const t=e._type;switch(t){case"SingleScanningMode":return new v(e);case"MultipleScanningMode":return new D(e);case"FindAndPickScanningMode":return new k(e);default:throw`Unknown child class name: ${t}`}};var I,P=n(43);class L extends p.a{constructor(e={}){super(),this.visible=!0,this.style=new R({strokeColor:"?sbColorSurface",strokeWidth:2,cornerRadius:10}),this.overlayColor="?sbColorSurfaceLow",this.aspectRatio=new P.AspectRatio({width:1,height:1}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.style&&(this.style=I.From(e.style)),void 0!==e.overlayColor&&(this.overlayColor=e.overlayColor),void 0!==e.aspectRatio&&(this.aspectRatio=new P.AspectRatio(e.aspectRatio))}}!function(e){e.From=function(e){const t=e._type;switch(t){case"FinderCorneredStyle":return new R(e);case"FinderStrokedStyle":return new _(e);default:throw`Unknown child class name: ${t}`}}}(I||(I={}));class R extends p.a{constructor(e={}){super(),this._type="FinderCorneredStyle",this.strokeColor="#FFFFFFFF",this.strokeWidth=3,this.cornerRadius=10,void 0!==e.strokeColor&&(this.strokeColor=e.strokeColor),void 0!==e.strokeWidth&&(this.strokeWidth=e.strokeWidth),void 0!==e.cornerRadius&&(this.cornerRadius=e.cornerRadius)}}class _ extends p.a{constructor(e={}){super(),this._type="FinderStrokedStyle",this.strokeColor="#FFFFFFFF",this.strokeWidth=3,this.cornerRadius=10,void 0!==e.strokeColor&&(this.strokeColor=e.strokeColor),void 0!==e.strokeWidth&&(this.strokeWidth=e.strokeWidth),void 0!==e.cornerRadius&&(this.cornerRadius=e.cornerRadius)}}var j=n(58);class M extends p.a{constructor(e={}){super(),this.cameraPermissionEnableCameraTitle="Camera permission denied!",this.cameraPermissionEnableCameraExplanation="Please allow the usage of the camera to start the scanning process.",this.cameraPermissionCloseButton="Close",this.topBarCancelButton="Cancel",this.topBarTitle="Scan Item",this.userGuidance="Move the finder over a barcode",this.barcodeInfoMappingLoadingMessage="Loading details...",this.barcodeInfoMappingErrorStateTitle="Connection Error!",this.barcodeInfoMappingErrorStateSubtitle="There was an issue and the data requested was not fetched. You could try again or discard this result to start a new scan.",this.barcodeInfoMappingErrorStateRetryButton="Retry",this.barcodeInfoMappingErrorStateCancelButton="Cancel",this.manualCountEditDialogTitle="Update count",this.manualCountEditDialogInfo="Adjust the number of items you scanned.",this.manualCountEditDialogUpdateButton="Update",this.manualCountEditDialogCancelButton="Cancel",this.sheetResetButton="Reset",this.sheetClearAllButton="Clear all",this.sheetSubmitButton="Submit",this.sheetStartScanningButton="Start scanning",this.sheetPlaceholderTitle="No barcodes here!",this.sheetPlaceholderSubtitle="The barcode list is currently empty. Close this sheet and scan your items to add them.",this.singleModeConfirmationCancelButton="Close",this.multipleModeSheetTitle="%d items",this.findAndPickSheetTitle="%d/%d scanned",this.findAndPickSheetBarcodeItemSubtitle="%d/%d added",this.findAndPickPartialAlertTitle="Incomplete scan!",this.findAndPickPartialAlertSubtitle="Some codes are yet to be scanned. Proceed with submission anyway?",this.findAndPickPartialAlertCancelButton="Cancel",this.findAndPickPartialAlertSubmitButton="Yes, Submit",this.findAndPickCompleteAlertTitle="All codes found!",this.findAndPickCompleteAlertSubtitle="You have successfully scanned all codes. Proceed with submission?",this.findAndPickCompleteAlertCancelButton="Dismiss",this.findAndPickCompleteAlertSubmitButton="Submit",void 0!==e.cameraPermissionEnableCameraTitle&&(this.cameraPermissionEnableCameraTitle=e.cameraPermissionEnableCameraTitle),void 0!==e.cameraPermissionEnableCameraExplanation&&(this.cameraPermissionEnableCameraExplanation=e.cameraPermissionEnableCameraExplanation),void 0!==e.cameraPermissionCloseButton&&(this.cameraPermissionCloseButton=e.cameraPermissionCloseButton),void 0!==e.topBarCancelButton&&(this.topBarCancelButton=e.topBarCancelButton),void 0!==e.topBarTitle&&(this.topBarTitle=e.topBarTitle),void 0!==e.userGuidance&&(this.userGuidance=e.userGuidance),void 0!==e.barcodeInfoMappingLoadingMessage&&(this.barcodeInfoMappingLoadingMessage=e.barcodeInfoMappingLoadingMessage),void 0!==e.barcodeInfoMappingErrorStateTitle&&(this.barcodeInfoMappingErrorStateTitle=e.barcodeInfoMappingErrorStateTitle),void 0!==e.barcodeInfoMappingErrorStateSubtitle&&(this.barcodeInfoMappingErrorStateSubtitle=e.barcodeInfoMappingErrorStateSubtitle),void 0!==e.barcodeInfoMappingErrorStateRetryButton&&(this.barcodeInfoMappingErrorStateRetryButton=e.barcodeInfoMappingErrorStateRetryButton),void 0!==e.barcodeInfoMappingErrorStateCancelButton&&(this.barcodeInfoMappingErrorStateCancelButton=e.barcodeInfoMappingErrorStateCancelButton),void 0!==e.manualCountEditDialogTitle&&(this.manualCountEditDialogTitle=e.manualCountEditDialogTitle),void 0!==e.manualCountEditDialogInfo&&(this.manualCountEditDialogInfo=e.manualCountEditDialogInfo),void 0!==e.manualCountEditDialogUpdateButton&&(this.manualCountEditDialogUpdateButton=e.manualCountEditDialogUpdateButton),void 0!==e.manualCountEditDialogCancelButton&&(this.manualCountEditDialogCancelButton=e.manualCountEditDialogCancelButton),void 0!==e.sheetResetButton&&(this.sheetResetButton=e.sheetResetButton),void 0!==e.sheetClearAllButton&&(this.sheetClearAllButton=e.sheetClearAllButton),void 0!==e.sheetSubmitButton&&(this.sheetSubmitButton=e.sheetSubmitButton),void 0!==e.sheetStartScanningButton&&(this.sheetStartScanningButton=e.sheetStartScanningButton),void 0!==e.sheetPlaceholderTitle&&(this.sheetPlaceholderTitle=e.sheetPlaceholderTitle),void 0!==e.sheetPlaceholderSubtitle&&(this.sheetPlaceholderSubtitle=e.sheetPlaceholderSubtitle),void 0!==e.singleModeConfirmationCancelButton&&(this.singleModeConfirmationCancelButton=e.singleModeConfirmationCancelButton),void 0!==e.multipleModeSheetTitle&&(this.multipleModeSheetTitle=e.multipleModeSheetTitle),void 0!==e.findAndPickSheetTitle&&(this.findAndPickSheetTitle=e.findAndPickSheetTitle),void 0!==e.findAndPickSheetBarcodeItemSubtitle&&(this.findAndPickSheetBarcodeItemSubtitle=e.findAndPickSheetBarcodeItemSubtitle),void 0!==e.findAndPickPartialAlertTitle&&(this.findAndPickPartialAlertTitle=e.findAndPickPartialAlertTitle),void 0!==e.findAndPickPartialAlertSubtitle&&(this.findAndPickPartialAlertSubtitle=e.findAndPickPartialAlertSubtitle),void 0!==e.findAndPickPartialAlertCancelButton&&(this.findAndPickPartialAlertCancelButton=e.findAndPickPartialAlertCancelButton),void 0!==e.findAndPickPartialAlertSubmitButton&&(this.findAndPickPartialAlertSubmitButton=e.findAndPickPartialAlertSubmitButton),void 0!==e.findAndPickCompleteAlertTitle&&(this.findAndPickCompleteAlertTitle=e.findAndPickCompleteAlertTitle),void 0!==e.findAndPickCompleteAlertSubtitle&&(this.findAndPickCompleteAlertSubtitle=e.findAndPickCompleteAlertSubtitle),void 0!==e.findAndPickCompleteAlertCancelButton&&(this.findAndPickCompleteAlertCancelButton=e.findAndPickCompleteAlertCancelButton),void 0!==e.findAndPickCompleteAlertSubmitButton&&(this.findAndPickCompleteAlertSubmitButton=e.findAndPickCompleteAlertSubmitButton)}}class F extends p.a{constructor(e={}){super(),this.barcodesRegexFilter="",this.barcodeFormats=[],this.gs1Handling="PARSE",this.engineMode="NEXT_GEN_LOW_POWER",this.maximumRecognizerResolution=600,void 0!==e.barcodesRegexFilter&&(this.barcodesRegexFilter=e.barcodesRegexFilter),void 0!==e.barcodeFormats&&(this.barcodeFormats=e.barcodeFormats.map((e=>e))),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.engineMode&&(this.engineMode=e.engineMode),void 0!==e.maximumRecognizerResolution&&(this.maximumRecognizerResolution=e.maximumRecognizerResolution)}}class N extends p.a{constructor(e={}){super(),this.background="?sbColorSurface",this.iconBackground="?sbColorOutline",this.icon=new m.e({visible:!0,color:"?sbColorOnSurface"}),this.closeButton=new m.c({text:"Close",background:new m.a({}),foreground:new m.d({})}),this.enableCameraTitle=new m.j({text:"Camera permission denied!",color:"?colorOnSurface"}),this.enableCameraExplanation=new m.j({text:"Please allow the usage of the camera to start the scanning process.",color:"?sbColorOnSurfaceVariant"}),void 0!==e.background&&(this.background=e.background),void 0!==e.iconBackground&&(this.iconBackground=e.iconBackground),void 0!==e.icon&&(this.icon=new m.e(e.icon)),void 0!==e.closeButton&&(this.closeButton=new m.c(e.closeButton)),void 0!==e.enableCameraTitle&&(this.enableCameraTitle=new m.j(e.enableCameraTitle)),void 0!==e.enableCameraExplanation&&(this.enableCameraExplanation=new m.j(e.enableCameraExplanation))}}class V extends p.a{constructor(e={}){super(),this.version="1.0",this.screen="BarcodeScanner",this.palette=new m.f({sbColorPrimary:"#C8193C",sbColorPrimaryDisabled:"#F5F5F5",sbColorNegative:"#FF3737",sbColorPositive:"#4EFFB4",sbColorWarning:"#FFCE5C",sbColorSecondary:"#FFEDEE",sbColorSecondaryDisabled:"#F5F5F5",sbColorOnPrimary:"#FFFFFF",sbColorOnSecondary:"#C8193C",sbColorSurface:"#FFFFFF",sbColorOutline:"#EFEFEF",sbColorOnSurfaceVariant:"#707070",sbColorOnSurface:"#000000",sbColorSurfaceLow:"#00000026",sbColorSurfaceHigh:"#0000007A",sbColorModalOverlay:"#000000A3"}),this.localization=new M({}),this.backgroundColor="?sbColorSurfaceLow",this.topBar=new A.a({title:new m.j({text:"?topBarTitle",color:"?sbColorOnPrimary"}),mode:"SOLID",backgroundColor:"?sbColorPrimary",cancelButton:new m.c({visible:!0,text:"?topBarCancelButton",background:new m.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new m.d({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})})}),this.actionBar=new S({flashButton:new m.h({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"}),zoomButton:new m.h({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"}),flipCameraButton:new m.h({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"})}),this.viewFinder=new L({visible:!0,style:new R({strokeColor:"?sbColorSurface",strokeWidth:2,cornerRadius:10}),overlayColor:"?sbColorSurfaceLow",aspectRatio:new P.AspectRatio({width:1,height:1})}),this.userGuidance=new j.a({visible:!0,title:new m.j({text:"?userGuidance",color:"?sbColorOnPrimary"}),background:new m.a({strokeColor:"#00000000",fillColor:"?sbColorSurfaceLow",strokeWidth:0})}),this.cameraPermission=new N({background:"?sbColorSurface",iconBackground:"?sbColorOutline",icon:new m.e({visible:!0,color:"?sbColorOnSurface"}),closeButton:new m.c({visible:!0,text:"?cameraPermissionCloseButton",background:new m.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new m.d({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),enableCameraTitle:new m.j({text:"?cameraPermissionEnableCameraTitle",color:"?sbColorOnSurface"}),enableCameraExplanation:new m.j({text:"?cameraPermissionEnableCameraExplanation",color:"?sbColorOnSurfaceVariant"})}),this.cameraConfiguration=new y({}),this.recognizerConfiguration=new F({}),this.useCase=new v({}),this.sound=new m.i({successBeepEnabled:!0,soundType:"MODERN_BEEP"}),this.vibration=new m.l({enabled:!0}),this.timeouts=new m.k({autoCancelTimeout:0,initialScanDelay:0}),void 0!==e.version&&(this.version=e.version),void 0!==e.screen&&(this.screen=e.screen),void 0!==e.palette&&(this.palette=new m.f(e.palette)),void 0!==e.localization&&(this.localization=new M(e.localization)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.topBar&&(this.topBar=new A.a(e.topBar)),void 0!==e.actionBar&&(this.actionBar=new S(e.actionBar)),void 0!==e.viewFinder&&(this.viewFinder=new L(e.viewFinder)),void 0!==e.userGuidance&&(this.userGuidance=new j.a(e.userGuidance)),void 0!==e.cameraPermission&&(this.cameraPermission=new N(e.cameraPermission)),void 0!==e.cameraConfiguration&&(this.cameraConfiguration=new y(e.cameraConfiguration)),void 0!==e.recognizerConfiguration&&(this.recognizerConfiguration=new F(e.recognizerConfiguration)),void 0!==e.useCase&&(this.useCase=C.From(e.useCase)),void 0!==e.sound&&(this.sound=new m.i(e.sound)),void 0!==e.vibration&&(this.vibration=new m.l(e.vibration)),void 0!==e.timeouts&&(this.timeouts=new m.k(e.timeouts))}}var W=n(74);class z extends p.a{constructor(e={}){if(super(),void 0===e.barcode)throw new Error("barcode must be present in constructor argument");if(this.barcode=new W.BarcodeItem(e.barcode),void 0===e.count)throw new Error("count must be present in constructor argument");this.count=e.count}}class H extends p.a{constructor(e={}){super(),this.items=[],void 0!==e.items&&(this.items=e.items.map((e=>new z(e))))}}var U=n(42),Z=n(1);class G extends p.a{constructor(e={}){super(),this.visible=!0,this.title=new Z.StyledText({color:"?sbColorOnPrimary"}),this.background=new Z.BackgroundStyle({strokeColor:"#00000000",fillColor:"?sbColorSurfaceLow"}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.title&&(this.title=new Z.StyledText(e.title)),void 0!==e.background&&(this.background=new Z.BackgroundStyle(e.background))}}class $ extends p.a{constructor(e={}){super(),this.visible=!0,this.icon=new Z.IconStyle({color:"?sbColorOnPrimary"}),this.title=new Z.StyledText({color:"?sbColorOnPrimary"}),this.background=new Z.BackgroundStyle({fillColor:"?sbColorSurfaceLow"}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.icon&&(this.icon=new Z.IconStyle(e.icon)),void 0!==e.title&&(this.title=new Z.StyledText(e.title)),void 0!==e.background&&(this.background=new Z.BackgroundStyle(e.background))}}class Y extends p.a{constructor(e={}){super(),this.retakeButton=new Z.BarButtonConfiguration({title:new Z.StyledText({text:"?acknowledgementRetakeButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionAcknowledgementRetakeButton",background:new Z.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new Z.IconStyle({color:"?sbColorOnPrimary"})}),this.acceptWhenOkButton=new Z.BarButtonConfiguration({title:new Z.StyledText({text:"?acknowledgementAcceptButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionAcknowledgementAcceptButton",background:new Z.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new Z.IconStyle({color:"?sbColorOnPrimary"})}),this.acceptWhenNotOkButton=new Z.BarButtonConfiguration({title:new Z.StyledText({text:"?acknowledgementAcceptButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionAcknowledgementAcceptButton",background:new Z.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new Z.IconStyle({color:"?sbColorOnPrimary"})}),void 0!==e.retakeButton&&(this.retakeButton=new Z.BarButtonConfiguration(e.retakeButton)),void 0!==e.acceptWhenOkButton&&(this.acceptWhenOkButton=new Z.BarButtonConfiguration(e.acceptWhenOkButton)),void 0!==e.acceptWhenNotOkButton&&(this.acceptWhenNotOkButton=new Z.BarButtonConfiguration(e.acceptWhenNotOkButton))}}class Q extends p.a{constructor(e={}){super(),this.minimumQuality="POOR",this.acknowledgementMode="ALWAYS",this.badImageHint=new $({visible:!0,icon:new Z.IconStyle({color:"?sbColorOnPrimary"}),title:new Z.StyledText({text:"?acknowledgementScreenBadDocumentHint",color:"?sbColorOnPrimary"}),background:new Z.BackgroundStyle({strokeColor:"?sbColorNegative",fillColor:"?sbColorNegative",strokeWidth:0})}),this.backgroundColor="?sbColorOutline",this.bottomBar=new Y({}),void 0!==e.minimumQuality&&(this.minimumQuality=e.minimumQuality),void 0!==e.acknowledgementMode&&(this.acknowledgementMode=e.acknowledgementMode),void 0!==e.badImageHint&&(this.badImageHint=new $(e.badImageHint)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.bottomBar&&(this.bottomBar=new Y(e.bottomBar))}}class X extends p.a{constructor(e={}){super(),this.background="?sbColorSurface",this.iconBackground="?sbColorOutline",this.icon=new Z.IconStyle({visible:!0,color:"?sbColorOnSurface"}),this.closeButton=new Z.ButtonConfiguration({text:"Close",background:new Z.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new Z.ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),this.enableCameraTitle=new Z.StyledText({text:"Camera permission denied!",color:"?sbColorOnSurface"}),this.enableCameraExplanation=new Z.StyledText({text:"Please allow the usage of the camera to start the scanning process.",color:"?sbColorOnSurfaceVariant"}),void 0!==e.background&&(this.background=e.background),void 0!==e.iconBackground&&(this.iconBackground=e.iconBackground),void 0!==e.icon&&(this.icon=new Z.IconStyle(e.icon)),void 0!==e.closeButton&&(this.closeButton=new Z.ButtonConfiguration(e.closeButton)),void 0!==e.enableCameraTitle&&(this.enableCameraTitle=new Z.StyledText(e.enableCameraTitle)),void 0!==e.enableCameraExplanation&&(this.enableCameraExplanation=new Z.StyledText(e.enableCameraExplanation))}}class q extends p.a{constructor(e={}){super(),this.cameraModule="BACK",this.flashEnabled=!1,this.acceptedAngleScore=.75,this.acceptedSizeScore=.75,this.autoSnappingSensitivity=.66,this.autoSnappingDelay=200,this.acceptedBrightnessThreshold=50,this.autoSnappingEnabled=!0,this.requiredAspectRatios=[],this.ignoreBadAspectRatio=!0,void 0!==e.cameraModule&&(this.cameraModule=e.cameraModule),void 0!==e.flashEnabled&&(this.flashEnabled=e.flashEnabled),void 0!==e.acceptedAngleScore&&(this.acceptedAngleScore=e.acceptedAngleScore),void 0!==e.acceptedSizeScore&&(this.acceptedSizeScore=e.acceptedSizeScore),void 0!==e.autoSnappingSensitivity&&(this.autoSnappingSensitivity=e.autoSnappingSensitivity),void 0!==e.autoSnappingDelay&&(this.autoSnappingDelay=e.autoSnappingDelay),void 0!==e.acceptedBrightnessThreshold&&(this.acceptedBrightnessThreshold=e.acceptedBrightnessThreshold),void 0!==e.autoSnappingEnabled&&(this.autoSnappingEnabled=e.autoSnappingEnabled),void 0!==e.requiredAspectRatios&&(this.requiredAspectRatios=e.requiredAspectRatios.map((e=>new P.AspectRatio(e)))),void 0!==e.ignoreBadAspectRatio&&(this.ignoreBadAspectRatio=e.ignoreBadAspectRatio)}}class K extends p.a{constructor(e={}){super(),this.noDocumentFound="?cameraUserGuidanceNoDocumentFound",this.badAspectRatio="?cameraUserGuidanceBadAspectRatio",this.badAngles="?cameraUserGuidanceBadAngles",this.textHintOffCenter="?cameraUserGuidanceTextHintOffCenter",this.tooSmall="?cameraUserGuidanceTooSmall",this.tooNoisy="?cameraUserGuidanceTooNoisy",this.tooDark="?cameraUserGuidanceTooDark",this.energySaveMode="?cameraUserGuidanceEnergySaveMode",this.readyToCapture="?cameraUserGuidanceReadyToCapture",this.capturing="?cameraUserGuidanceReadyToCapture",this.captureManual="?cameraUserGuidanceReadyToCaptureManual",void 0!==e.noDocumentFound&&(this.noDocumentFound=e.noDocumentFound),void 0!==e.badAspectRatio&&(this.badAspectRatio=e.badAspectRatio),void 0!==e.badAngles&&(this.badAngles=e.badAngles),void 0!==e.textHintOffCenter&&(this.textHintOffCenter=e.textHintOffCenter),void 0!==e.tooSmall&&(this.tooSmall=e.tooSmall),void 0!==e.tooNoisy&&(this.tooNoisy=e.tooNoisy),void 0!==e.tooDark&&(this.tooDark=e.tooDark),void 0!==e.energySaveMode&&(this.energySaveMode=e.energySaveMode),void 0!==e.readyToCapture&&(this.readyToCapture=e.readyToCapture),void 0!==e.capturing&&(this.capturing=e.capturing),void 0!==e.captureManual&&(this.captureManual=e.captureManual)}}class J extends p.a{constructor(e={}){super(),this.visibility="ENABLED",this.title=new Z.StyledText({text:"?cameraUserGuidanceStart",color:"?sbColorOnPrimary"}),this.background=new Z.BackgroundStyle({strokeColor:"#00000000",fillColor:"?sbColorSurfaceHigh"}),this.statesTitles=new K({}),void 0!==e.visibility&&(this.visibility=e.visibility),void 0!==e.title&&(this.title=new Z.StyledText(e.title)),void 0!==e.background&&(this.background=new Z.BackgroundStyle(e.background)),void 0!==e.statesTitles&&(this.statesTitles=new K(e.statesTitles))}}var ee,te,ne,ie=n(37);class oe extends p.a{constructor(e={}){super(),this.title=new Z.StyledText({text:"Title",color:"?sbColorOnSurface"}),this.subtitle=new Z.StyledText({text:"Standard explanation message text.",color:"?sbColorOnSurfaceVariant"}),this.sheetColor="?sbColorSurface",this.modalOverlayColor="?sbColorModalOverlay",this.dividerColor="?sbColorOutline",this.okButton=new Z.ButtonConfiguration({background:new Z.BackgroundStyle({fillColor:"?sbColorPrimary"})}),this.actionButton=new Z.ButtonConfiguration({visible:!1,background:new Z.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0})}),this.cancelButton=new Z.ButtonConfiguration({visible:!0,background:new Z.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0})}),void 0!==e.title&&(this.title=new Z.StyledText(e.title)),void 0!==e.subtitle&&(this.subtitle=new Z.StyledText(e.subtitle)),void 0!==e.sheetColor&&(this.sheetColor=e.sheetColor),void 0!==e.modalOverlayColor&&(this.modalOverlayColor=e.modalOverlayColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.okButton&&(this.okButton=new Z.ButtonConfiguration(e.okButton)),void 0!==e.actionButton&&(this.actionButton=new Z.ButtonConfiguration(e.actionButton)),void 0!==e.cancelButton&&(this.cancelButton=new Z.ButtonConfiguration(e.cancelButton))}}class re extends p.a{constructor(e={}){super(),this.visible=!0,this.style=new ae({strokeColor:"?sbColorSurface",strokeWidth:2,cornerRadius:10}),this.overlayColor="?sbColorSurfaceLow",this.aspectRatio=new P.AspectRatio({width:1,height:1}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.style&&(this.style=ee.From(e.style)),void 0!==e.overlayColor&&(this.overlayColor=e.overlayColor),void 0!==e.aspectRatio&&(this.aspectRatio=new P.AspectRatio(e.aspectRatio))}}!function(e){e.From=function(e){const t=e._type;switch(t){case"FinderCorneredStyle":return new ae(e);case"FinderStrokedStyle":return new se(e);default:throw`Unknown child class name: ${t}`}}}(ee||(ee={}));class ae extends p.a{constructor(e={}){super(),this._type="FinderCorneredStyle",this.strokeColor="#FFFFFFFF",this.strokeWidth=3,this.cornerRadius=10,void 0!==e.strokeColor&&(this.strokeColor=e.strokeColor),void 0!==e.strokeWidth&&(this.strokeWidth=e.strokeWidth),void 0!==e.cornerRadius&&(this.cornerRadius=e.cornerRadius)}}class se extends p.a{constructor(e={}){super(),this._type="FinderStrokedStyle",this.strokeColor="#FFFFFFFF",this.strokeWidth=3,this.cornerRadius=10,void 0!==e.strokeColor&&(this.strokeColor=e.strokeColor),void 0!==e.strokeWidth&&(this.strokeWidth=e.strokeWidth),void 0!==e.cornerRadius&&(this.cornerRadius=e.cornerRadius)}}class ce extends p.a{constructor(e={}){super(),this.enabledInAutoSnappingMode=!0,this.accessibilityDescription="?accessibilityDescriptionCameraShutterButton",this.outerColor="?sbColorOnPrimary",this.innerColor="?sbColorOnPrimary",void 0!==e.enabledInAutoSnappingMode&&(this.enabledInAutoSnappingMode=e.enabledInAutoSnappingMode),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.outerColor&&(this.outerColor=e.outerColor),void 0!==e.innerColor&&(this.innerColor=e.innerColor)}}!function(e){e.From=function(e){const t=e._type;switch(t){case"PagePreviewMode":return new ue(e);case"TextButtonMode":return new de(e);case"NoButtonMode":return new me(e);default:throw`Unknown child class name: ${t}`}}}(te||(te={}));class le extends p.a{constructor(e={}){super(),this.visible=!0,this.backgroundColor="?sbColorModalOverlay",this.foregroundColor="?sbColorSurface",void 0!==e.visible&&(this.visible=e.visible),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.foregroundColor&&(this.foregroundColor=e.foregroundColor)}}class ue extends p.a{constructor(e={}){super(),this._type="PagePreviewMode",this.accessibilityDescription="?accessibilityDescriptionCameraPreviewButton",this.imagePlaceholderColor="?sbColorOnSurfaceVariant",this.pageCounter=new Z.BadgeStyle({visible:!0,background:new Z.BackgroundStyle({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface"}),foregroundColor:"?sbColorPrimary"}),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.imagePlaceholderColor&&(this.imagePlaceholderColor=e.imagePlaceholderColor),void 0!==e.pageCounter&&(this.pageCounter=new Z.BadgeStyle(e.pageCounter))}}class de extends p.a{constructor(e={}){super(),this._type="TextButtonMode",this.accessibilityDescription="?accessibilityDescriptionCameraPreviewButton",this.style=new Z.StyledText({text:"?cameraPreviewButtonTitle",color:"?sbColorOnPrimary"}),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.style&&(this.style=new Z.StyledText(e.style))}}class me extends p.a{constructor(e={}){super(),this._type="NoButtonMode",this.visible=!1,void 0!==e.visible&&(this.visible=e.visible)}}class pe extends p.a{constructor(e={}){super(),this.importButton=new Z.BarButtonConfiguration({title:new Z.StyledText({visible:!1,text:"?cameraImportButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCameraImportButton",background:new Z.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new Z.IconStyle({color:"?sbColorOnPrimary"})}),this.autoSnappingModeButton=new Z.BarButtonConfiguration({title:new Z.StyledText({visible:!1,text:"?cameraAutoSnapButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCameraAutoSnapButton",background:new Z.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new Z.IconStyle({color:"?sbColorOnPrimary"})}),this.manualSnappingModeButton=new Z.BarButtonConfiguration({title:new Z.StyledText({visible:!1,text:"?cameraManualSnapButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCameraManualSnapButton",background:new Z.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new Z.IconStyle({color:"?sbColorOnPrimary"})}),this.shutterButton=new ce({accessibilityDescription:"?accessibilityDescriptionCameraShutterButton"}),this.torchOnButton=new Z.BarButtonConfiguration({title:new Z.StyledText({visible:!1,text:"?cameraTorchOnButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCameraTorchOnButton",background:new Z.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new Z.IconStyle({color:"?sbColorOnPrimary"})}),this.torchOffButton=new Z.BarButtonConfiguration({title:new Z.StyledText({visible:!1,text:"?cameraTorchOffButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCameraTorchOffButton",background:new Z.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new Z.IconStyle({color:"?sbColorOnPrimary"})}),this.previewButton=new ue({}),void 0!==e.importButton&&(this.importButton=new Z.BarButtonConfiguration(e.importButton)),void 0!==e.autoSnappingModeButton&&(this.autoSnappingModeButton=new Z.BarButtonConfiguration(e.autoSnappingModeButton)),void 0!==e.manualSnappingModeButton&&(this.manualSnappingModeButton=new Z.BarButtonConfiguration(e.manualSnappingModeButton)),void 0!==e.shutterButton&&(this.shutterButton=new ce(e.shutterButton)),void 0!==e.torchOnButton&&(this.torchOnButton=new Z.BarButtonConfiguration(e.torchOnButton)),void 0!==e.torchOffButton&&(this.torchOffButton=new Z.BarButtonConfiguration(e.torchOffButton)),void 0!==e.previewButton&&(this.previewButton=te.From(e.previewButton))}}!function(e){e.From=function(e){const t=e._type;switch(t){case"PageSnapFunnelAnimation":return new he(e);case"PageSnapCheckMarkAnimation":return new fe(e);case"PageSnapFeedbackNone":return new ge(e);default:throw`Unknown child class name: ${t}`}}}(ne||(ne={}));class he extends p.a{constructor(e={}){super(),this._type="PageSnapFunnelAnimation",this.overlayColor="?sbColorModalOverlay",void 0!==e.overlayColor&&(this.overlayColor=e.overlayColor)}}class fe extends p.a{constructor(e={}){super(),this._type="PageSnapCheckMarkAnimation",this.overlayColor="?sbColorModalOverlay",this.checkMarkBackgroundColor="?sbColorOutline",this.checkMarkColor="#00000000",void 0!==e.overlayColor&&(this.overlayColor=e.overlayColor),void 0!==e.checkMarkBackgroundColor&&(this.checkMarkBackgroundColor=e.checkMarkBackgroundColor),void 0!==e.checkMarkColor&&(this.checkMarkColor=e.checkMarkColor)}}class ge extends p.a{constructor(e={}){super(),this._type="PageSnapFeedbackNone"}}class ve extends p.a{constructor(e={}){super(),this.cameraBlinkEnabled=!0,this.snapFeedbackMode=new he({}),void 0!==e.cameraBlinkEnabled&&(this.cameraBlinkEnabled=e.cameraBlinkEnabled),void 0!==e.snapFeedbackMode&&(this.snapFeedbackMode=ne.From(e.snapFeedbackMode))}}class be extends p.a{constructor(e={}){super(),this.visibility="ENABLED",this.documentOk=new Z.PolygonStyle({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:2}),this.documentNotOk=new Z.PolygonStyle({strokeColor:"?sbColorNegative",fillColor:"#00000000",strokeWidth:2}),this.autoSnapProgress=new Z.PolygonStyle({strokeColor:"#40A9FF",fillColor:"#00000000",strokeWidth:2}),void 0!==e.visibility&&(this.visibility=e.visibility),void 0!==e.documentOk&&(this.documentOk=new Z.PolygonStyle(e.documentOk)),void 0!==e.documentNotOk&&(this.documentNotOk=new Z.PolygonStyle(e.documentNotOk)),void 0!==e.autoSnapProgress&&(this.autoSnapProgress=new Z.PolygonStyle(e.autoSnapProgress))}}class ye extends p.a{constructor(e={}){super(),this.button=new Z.IconButton({color:"?sbColorOnPrimary",accessibilityDescription:"?accessibilityDescriptionCameraSelectButton"}),this.backgroundColor="?sbColorSurface",this.title=new Z.StyledText({text:"?cameraSelectCameraMenuTitle",color:"?sbColorOnSurfaceVariant"}),this.dividerColor="?sbColorOutline",this.menuEntry=new Z.PopupMenuItem({title:new Z.StyledText({color:"?sbColorOnSurface"}),accessibilityDescription:"?accessibilityDescriptionCameraSelectMenuItem",icon:new Z.IconStyle({color:"?sbColorOnSurface"})}),this.menuEntryActive=new Z.PopupMenuItem({title:new Z.StyledText({color:"?sbColorPrimary"}),accessibilityDescription:"?accessibilityDescriptionCameraSelectMenuItem",icon:new Z.IconStyle({color:"?sbColorPrimary"})}),void 0!==e.button&&(this.button=new Z.IconButton(e.button)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.title&&(this.title=new Z.StyledText(e.title)),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.menuEntry&&(this.menuEntry=new Z.PopupMenuItem(e.menuEntry)),void 0!==e.menuEntryActive&&(this.menuEntryActive=new Z.PopupMenuItem(e.menuEntryActive))}}class Ce extends p.a{constructor(e={}){super(),this.acknowledgement=new Q({}),this.introduction=new ie.h({}),this.scanAssistanceOverlay=new le({}),this.cameraPermission=new X({background:"?sbColorSurface",iconBackground:"?sbColorOutline",icon:new Z.IconStyle({visible:!0,color:"?sbColorOnSurface"}),closeButton:new Z.ButtonConfiguration({visible:!0,text:"?cameraPermissionCloseButton",accessibilityDescription:"?accessibilityDescriptionCameraPermissionCloseButton",background:new Z.BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new Z.ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),enableCameraTitle:new Z.StyledText({text:"?cameraPermissionEnableCameraTitle",color:"?sbColorOnSurface"}),enableCameraExplanation:new Z.StyledText({text:"?cameraPermissionEnableCameraExplanation",color:"?sbColorOnSurfaceVariant"})}),this.topBarTitle=new Z.StyledText({text:"?cameraTopBarTitle",color:"?sbColorOnPrimary"}),this.topBarIntroButton=new Z.IconButton({color:"?sbColorOnPrimary",accessibilityDescription:"?accessibilityDescriptionCameraTopBarIntroButton"}),this.topBarBackButton=new Z.ButtonConfiguration({visible:!0,text:"?cameraTopBarCancelButtonTitle",accessibilityDescription:"?accessibilityDescriptionCameraTopBarCancelButton",background:new Z.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new Z.ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),this.topBarCameraSelect=new ye({}),this.topUserGuidance=new G({title:new Z.StyledText({text:"?cameraTopGuidance",color:"?sbColorOnPrimary"})}),this.userGuidance=new J({}),this.backgroundColor="#000000FF",this.cameraConfiguration=new q({}),this.polygon=new be({}),this.bottomBar=new pe({}),this.viewFinder=new re({visible:!1,aspectRatio:new P.AspectRatio({width:21,height:29})}),this.captureFeedback=new ve({}),this.vibration=new Z.Vibration({enabled:!0}),this.timeouts=new Z.Timeouts({autoCancelTimeout:0,initialScanDelay:0}),this.limitReachedAlertDialog=new oe({title:new Z.StyledText({text:"?cameraLimitReachedAlertTitle",color:"?sbColorOnSurface"}),subtitle:new Z.StyledText({text:"?cameraLimitReachedAlertSubtitle",color:"?sbColorOnSurfaceVariant"}),okButton:new Z.ButtonConfiguration({text:"?cameraLimitReachedOkButtonTitle",accessibilityDescription:"?accessibilityDescriptionCameraLimitReachedOkButton",background:new Z.BackgroundStyle({fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new Z.ForegroundStyle({color:"?sbColorOnPrimary"})}),cancelButton:new Z.ButtonConfiguration({visible:!1})}),this.cancelAlertDialog=new oe({title:new Z.StyledText({text:"?cameraCancelAlertTitle",color:"?sbColorOnSurface"}),subtitle:new Z.StyledText({text:"?cameraCancelAlertSubtitle",color:"?sbColorOnSurfaceVariant"}),okButton:new Z.ButtonConfiguration({text:"?cameraCancelYesButtonTitle",accessibilityDescription:"?accessibilityDescriptionCameraCancelYesButton",background:new Z.BackgroundStyle({fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new Z.ForegroundStyle({color:"?sbColorOnPrimary"})}),cancelButton:new Z.ButtonConfiguration({text:"?cameraCancelNoButtonTitle",accessibilityDescription:"?accessibilityDescriptionCameraCancelNoButton",background:new Z.BackgroundStyle({fillColor:"#00000000",strokeWidth:0}),foreground:new Z.ForegroundStyle({color:"?sbColorPrimary"})})}),void 0!==e.acknowledgement&&(this.acknowledgement=new Q(e.acknowledgement)),void 0!==e.introduction&&(this.introduction=new ie.h(e.introduction)),void 0!==e.scanAssistanceOverlay&&(this.scanAssistanceOverlay=new le(e.scanAssistanceOverlay)),void 0!==e.cameraPermission&&(this.cameraPermission=new X(e.cameraPermission)),void 0!==e.topBarTitle&&(this.topBarTitle=new Z.StyledText(e.topBarTitle)),void 0!==e.topBarIntroButton&&(this.topBarIntroButton=new Z.IconButton(e.topBarIntroButton)),void 0!==e.topBarBackButton&&(this.topBarBackButton=new Z.ButtonConfiguration(e.topBarBackButton)),void 0!==e.topBarCameraSelect&&(this.topBarCameraSelect=new ye(e.topBarCameraSelect)),void 0!==e.topUserGuidance&&(this.topUserGuidance=new G(e.topUserGuidance)),void 0!==e.userGuidance&&(this.userGuidance=new J(e.userGuidance)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.cameraConfiguration&&(this.cameraConfiguration=new q(e.cameraConfiguration)),void 0!==e.polygon&&(this.polygon=new be(e.polygon)),void 0!==e.bottomBar&&(this.bottomBar=new pe(e.bottomBar)),void 0!==e.viewFinder&&(this.viewFinder=new re(e.viewFinder)),void 0!==e.captureFeedback&&(this.captureFeedback=new ve(e.captureFeedback)),void 0!==e.vibration&&(this.vibration=new Z.Vibration(e.vibration)),void 0!==e.timeouts&&(this.timeouts=new Z.Timeouts(e.timeouts)),void 0!==e.limitReachedAlertDialog&&(this.limitReachedAlertDialog=new oe(e.limitReachedAlertDialog)),void 0!==e.cancelAlertDialog&&(this.cancelAlertDialog=new oe(e.cancelAlertDialog))}}class Ae extends p.a{constructor(e={}){super(),this.detectButton=new Z.BarButtonConfiguration({title:new Z.StyledText({text:"?croppingDetectButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCroppingDetectButton",background:new Z.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new Z.IconStyle({color:"?sbColorOnPrimary"})}),this.rotateButton=new Z.BarButtonConfiguration({title:new Z.StyledText({text:"?croppingRotateButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCroppingRotateButton",background:new Z.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new Z.IconStyle({color:"?sbColorOnPrimary"})}),this.resetButton=new Z.BarButtonConfiguration({title:new Z.StyledText({text:"?croppingResetButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCroppingResetButton",background:new Z.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new Z.IconStyle({color:"?sbColorOnPrimary"})}),void 0!==e.detectButton&&(this.detectButton=new Z.BarButtonConfiguration(e.detectButton)),void 0!==e.rotateButton&&(this.rotateButton=new Z.BarButtonConfiguration(e.rotateButton)),void 0!==e.resetButton&&(this.resetButton=new Z.BarButtonConfiguration(e.resetButton))}}class Se extends p.a{constructor(e={}){super(),this.topBarBackButton=new Z.ButtonConfiguration({visible:!0,text:"?croppingTopBarCancelButtonTitle",accessibilityDescription:"?accessibilityDescriptionCroppingTopBarCancelButton",background:new Z.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new Z.ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),this.topBarTitle=new Z.StyledText({text:"?croppingScreenTitle",color:"?sbColorOnPrimary"}),this.topBarConfirmButton=new Z.ButtonConfiguration({visible:!0,text:"?croppingTopBarConfirmButtonTitle",accessibilityDescription:"?accessibilityDescriptionCroppingTopBarConfirmButton",background:new Z.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new Z.ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),this.backgroundColor="?sbColorOutline",this.croppingHandlerColor="?sbColorSurface",this.croppingPolygonColor="?sbColorSurface",this.bottomBar=new Ae({}),void 0!==e.topBarBackButton&&(this.topBarBackButton=new Z.ButtonConfiguration(e.topBarBackButton)),void 0!==e.topBarTitle&&(this.topBarTitle=new Z.StyledText(e.topBarTitle)),void 0!==e.topBarConfirmButton&&(this.topBarConfirmButton=new Z.ButtonConfiguration(e.topBarConfirmButton)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.croppingHandlerColor&&(this.croppingHandlerColor=e.croppingHandlerColor),void 0!==e.croppingPolygonColor&&(this.croppingPolygonColor=e.croppingPolygonColor),void 0!==e.bottomBar&&(this.bottomBar=new Ae(e.bottomBar))}}var we=n(80);class xe extends p.a{constructor(e={}){super(),this.pagesScanLimit=0,this.documentImageSizeLimit=0,this.documentAnalysisMode="UNFILTERED_DOCUMENT",this.defaultFilter=null,void 0!==e.pagesScanLimit&&(this.pagesScanLimit=e.pagesScanLimit),void 0!==e.documentImageSizeLimit&&(this.documentImageSizeLimit=e.documentImageSizeLimit),void 0!==e.documentAnalysisMode&&(this.documentAnalysisMode=e.documentAnalysisMode),void 0!==e.defaultFilter&&(this.defaultFilter=null!=e.defaultFilter?we.a.From(e.defaultFilter):null)}}class Ee extends p.a{constructor(e={}){super(),this.addButton=new Z.BarButtonConfiguration({title:new Z.StyledText({text:"?reviewScreenAddButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionReviewAddButton",background:new Z.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new Z.IconStyle({color:"?sbColorOnPrimary"})}),this.retakeButton=new Z.BarButtonConfiguration({title:new Z.StyledText({text:"?reviewScreenRetakeButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionReviewRetakeButton",background:new Z.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new Z.IconStyle({color:"?sbColorOnPrimary"})}),this.cropButton=new Z.BarButtonConfiguration({title:new Z.StyledText({text:"?reviewScreenCropButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionReviewCropButton",background:new Z.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new Z.IconStyle({color:"?sbColorOnPrimary"})}),this.rotateButton=new Z.BarButtonConfiguration({title:new Z.StyledText({text:"?reviewScreenRotateButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionReviewRotateButton",background:new Z.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new Z.IconStyle({color:"?sbColorOnPrimary"})}),this.deleteButton=new Z.BarButtonConfiguration({title:new Z.StyledText({text:"?reviewScreenDeleteButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionReviewDeleteButton",background:new Z.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new Z.IconStyle({color:"?sbColorOnPrimary"})}),this.submitButton=new Z.ButtonConfiguration({text:"?reviewScreenSubmitButtonTitle",accessibilityDescription:"?accessibilityDescriptionReviewSubmitButton",background:new Z.BackgroundStyle({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:0}),foreground:new Z.ForegroundStyle({color:"?sbColorOnSurface"})}),void 0!==e.addButton&&(this.addButton=new Z.BarButtonConfiguration(e.addButton)),void 0!==e.retakeButton&&(this.retakeButton=new Z.BarButtonConfiguration(e.retakeButton)),void 0!==e.cropButton&&(this.cropButton=new Z.BarButtonConfiguration(e.cropButton)),void 0!==e.rotateButton&&(this.rotateButton=new Z.BarButtonConfiguration(e.rotateButton)),void 0!==e.deleteButton&&(this.deleteButton=new Z.BarButtonConfiguration(e.deleteButton)),void 0!==e.submitButton&&(this.submitButton=new Z.ButtonConfiguration(e.submitButton))}}class Oe extends p.a{constructor(e={}){super(),this.backgroundColor="?sbColorSurface",this.deleteAll=new Z.PopupMenuItem({title:new Z.StyledText({text:"?reviewScreenDeleteAllButtonTitle",color:"?sbColorNegative"}),accessibilityDescription:"?accessibilityDescriptionReviewDeleteAllButton",icon:new Z.IconStyle({color:"?sbColorNegative"})}),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.deleteAll&&(this.deleteAll=new Z.PopupMenuItem(e.deleteAll))}}class De extends p.a{constructor(e={}){super(),this.overlayColor="?sbColorModalOverlay",this.closeButton=new Z.ButtonConfiguration({text:"?zoomOverlayCancelButtonText",accessibilityDescription:"?accessibilityDescriptionZoomOverlayCancelButton",background:new Z.BackgroundStyle({fillColor:"#00000000",strokeWidth:0}),foreground:new Z.ForegroundStyle({color:"?sbColorOnPrimary"})}),void 0!==e.overlayColor&&(this.overlayColor=e.overlayColor),void 0!==e.closeButton&&(this.closeButton=new Z.ButtonConfiguration(e.closeButton))}}class Te extends p.a{constructor(e={}){super(),this.enabled=!0,this.topBarTitle=new Z.StyledText({text:"?reviewScreenTitle",color:"?sbColorOnPrimary"}),this.topBarMoreButton=new Z.IconButton({color:"?sbColorOnPrimary",accessibilityDescription:"?accessibilityDescriptionReviewMoreButton"}),this.topBarBackButton=new Z.ButtonConfiguration({visible:!0,text:"?reviewTopBarBackButtonTitle",accessibilityDescription:"?accessibilityDescriptionReviewTopBarBackButton",background:new Z.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new Z.ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),this.morePopup=new Oe({}),this.zoomButton=new Z.RoundButton({accessibilityDescription:"?accessibilityDescriptionReviewZoomButton",backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary"}),this.zoomOverlay=new De({}),this.backgroundColor="?sbColorOnSurfaceVariant",this.bottomBar=new Ee({}),this.switchNextPageButton=new Z.IconButton({color:"?sbColorOnPrimary",accessibilityDescription:"?accessibilityDescriptionReviewNextPageButton"}),this.switchPreviousPageButton=new Z.IconButton({color:"?sbColorOnPrimary",accessibilityDescription:"?accessibilityDescriptionReviewPreviousPageButton"}),this.pageCounter=new G({title:new Z.StyledText({text:"?reviewScreenPageCount",color:"?sbColorOnPrimary"}),background:new Z.BackgroundStyle({fillColor:"?sbColorSurfaceHigh",strokeWidth:0})}),this.deleteAllPagesAlertDialog=new oe({title:new Z.StyledText({text:"?reviewDeleteAllPagesAlertTitle",color:"?sbColorOnSurface"}),subtitle:new Z.StyledText({text:"?reviewDeleteAllPagesAlertSubtitle",color:"?sbColorOnSurfaceVariant"}),okButton:new Z.ButtonConfiguration({text:"?reviewDeleteAllPagesAlertDeleteButtonTitle",accessibilityDescription:"?accessibilityDescriptionReviewDeleteAllPagesAlertDeleteButton",background:new Z.BackgroundStyle({fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new Z.ForegroundStyle({color:"?sbColorOnPrimary"})}),actionButton:new Z.ButtonConfiguration({visible:!1}),cancelButton:new Z.ButtonConfiguration({text:"?reviewDeleteAllPagesAlertCancelButtonTitle",accessibilityDescription:"?accessibilityDescriptionReviewDeleteAllPagesAlertCancelButton",background:new Z.BackgroundStyle({fillColor:"#00000000",strokeWidth:0}),foreground:new Z.ForegroundStyle({color:"?sbColorPrimary"})})}),this.deletePageAlertDialog=new oe({title:new Z.StyledText({text:"?reviewDeletePageAlertTitle",color:"?sbColorOnSurface"}),subtitle:new Z.StyledText({text:"?reviewDeletePageAlertSubTitle",color:"?sbColorOnSurfaceVariant"}),okButton:new Z.ButtonConfiguration({text:"?reviewDeletePageAlertConfirmButtonTitle",accessibilityDescription:"?accessibilityDescriptionReviewDeletePageAlertConfirmButton",background:new Z.BackgroundStyle({fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new Z.ForegroundStyle({color:"?sbColorOnPrimary"})}),actionButton:new Z.ButtonConfiguration({text:"?reviewDeletePageAlertDeleteRetakeButtonTitle",accessibilityDescription:"?accessibilityDescriptionReviewDeletePageAlertDeleteRetakeButton",background:new Z.BackgroundStyle({fillColor:"#00000000",strokeWidth:0}),foreground:new Z.ForegroundStyle({color:"?sbColorPrimary"})}),cancelButton:new Z.ButtonConfiguration({text:"?reviewDeletePageAlertCancelButtonTitle",accessibilityDescription:"?accessibilityDescriptionReviewDeletePageAlertCancelButton",background:new Z.BackgroundStyle({fillColor:"#00000000",strokeWidth:0}),foreground:new Z.ForegroundStyle({color:"?sbColorPrimary"})})}),void 0!==e.enabled&&(this.enabled=e.enabled),void 0!==e.topBarTitle&&(this.topBarTitle=new Z.StyledText(e.topBarTitle)),void 0!==e.topBarMoreButton&&(this.topBarMoreButton=new Z.IconButton(e.topBarMoreButton)),void 0!==e.topBarBackButton&&(this.topBarBackButton=new Z.ButtonConfiguration(e.topBarBackButton)),void 0!==e.morePopup&&(this.morePopup=new Oe(e.morePopup)),void 0!==e.zoomButton&&(this.zoomButton=new Z.RoundButton(e.zoomButton)),void 0!==e.zoomOverlay&&(this.zoomOverlay=new De(e.zoomOverlay)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.bottomBar&&(this.bottomBar=new Ee(e.bottomBar)),void 0!==e.switchNextPageButton&&(this.switchNextPageButton=new Z.IconButton(e.switchNextPageButton)),void 0!==e.switchPreviousPageButton&&(this.switchPreviousPageButton=new Z.IconButton(e.switchPreviousPageButton)),void 0!==e.pageCounter&&(this.pageCounter=new G(e.pageCounter)),void 0!==e.deleteAllPagesAlertDialog&&(this.deleteAllPagesAlertDialog=new oe(e.deleteAllPagesAlertDialog)),void 0!==e.deletePageAlertDialog&&(this.deletePageAlertDialog=new oe(e.deletePageAlertDialog))}}class Be extends p.a{constructor(e={}){super(),this.camera=new Ce({}),this.review=new Te({}),this.cropping=new Se({}),void 0!==e.camera&&(this.camera=new Ce(e.camera)),void 0!==e.review&&(this.review=new Te(e.review)),void 0!==e.cropping&&(this.cropping=new Se(e.cropping))}}class ke extends p.a{constructor(e={}){super(),this.cameraPermissionEnableCameraTitle="Camera permission denied!",this.cameraPermissionEnableCameraExplanation="Please allow the usage of the camera to start the scanning process.",this.cameraPermissionEnableCameraButton="Grant permission",this.cameraPermissionCloseButton="Close",this.cameraTopBarCancelButtonTitle="Cancel",this.cameraTopBarTitle="Scan Document",this.cameraTopGuidance="Scan each page of your document.",this.cameraUserGuidanceStart="Please hold your device over a document.",this.cameraUserGuidanceNoDocumentFound="No document found",this.cameraUserGuidanceBadAspectRatio="Bad aspect ratio",this.cameraUserGuidanceBadAngles="Bad angles",this.cameraUserGuidanceTooNoisy="Its too noisy. Try another background for the document",this.cameraUserGuidanceTextHintOffCenter="Document is off center",this.cameraUserGuidanceTooSmall="Document is too small. Move camera closer.",this.cameraUserGuidanceTooDark="Its too dark. Add more light.",this.cameraUserGuidanceEnergySaveMode="Energy save mode is on",this.cameraUserGuidanceReadyToCapture="Hold still capturing...",this.cameraUserGuidanceReadyToCaptureManual="Ready to capture!",this.cameraImportButtonTitle="Import",this.cameraTorchOnButtonTitle="On",this.cameraTorchOffButtonTitle="Off",this.cameraAutoSnapButtonTitle="Auto",this.cameraManualSnapButtonTitle="Manual",this.cameraPreviewButtonTitle="%d Pages",this.cameraIntroDoneButton="Done",this.cameraIntroTitle="How to scan a document",this.cameraIntroSubtitle="Follow the steps below to create a high-quality document scan",this.cameraIntroItem1="1. Place your document on a flat surface.",this.cameraIntroItem2="2. Hold your phone above the document.",this.cameraIntroItem3="3. Follow the on-screen guidance to find the optimal position.",this.cameraIntroItem4="4. Once you reach the optimal position, you can manually scan the document or let the app scan it automatically.",this.cameraProgressOverlayTitle="Please wait...",this.cameraCancelAlertTitle="Cancel?",this.cameraCancelAlertSubtitle="Canceling will delete all the pages scanned so far. Are you sure you want to cancel?",this.cameraCancelNoButtonTitle="No",this.cameraCancelYesButtonTitle="Yes, Cancel",this.cameraLimitReachedAlertTitle="You reached the limit!",this.cameraLimitReachedAlertSubtitle="You have scanned the maximum number of pages and cannot add any more. Please delete at least one page to perform a new scan.",this.cameraLimitReachedOkButtonTitle="Ok",this.cameraSelectCameraMenuTitle="Select camera",this.acknowledgementScreenBadDocumentHint="The quality of your scan does not seem sufficient.",this.acknowledgementRetakeButtonTitle="Retake",this.acknowledgementAcceptButtonTitle="Use Scan",this.reviewScreenTitle="Review (%d)",this.reviewTopBarBackButtonTitle="Back",this.reviewScreenPageCount="Page %d/%d",this.reviewScreenAddButtonTitle="Add",this.reviewScreenRetakeButtonTitle="Retake",this.reviewScreenCropButtonTitle="Crop",this.reviewScreenRotateButtonTitle="Rotate",this.reviewScreenDeleteButtonTitle="Delete",this.reviewScreenSubmitButtonTitle="Submit",this.reviewScreenDeleteAllButtonTitle="Delete all",this.reviewScreenReorderPagesButtonTitle="Reorder pages",this.zoomOverlayCancelButtonText="Close",this.reviewDeletePageAlertTitle="Delete page?",this.reviewDeleteAllPagesAlertTitle="Delete all?",this.reviewDeletePageAlertSubTitle="Are you sure you want to delete the page?",this.reviewDeleteAllPagesAlertSubtitle="Are you sure you want to delete all pages?",this.reviewDeletePageAlertConfirmButtonTitle="Yes, Delete",this.reviewDeleteAllPagesAlertDeleteButtonTitle="Yes, Delete all",this.reviewDeletePageAlertDeleteRetakeButtonTitle="Delete and Retake",this.reviewDeletePageAlertCancelButtonTitle="Cancel",this.reviewDeleteAllPagesAlertCancelButtonTitle="Cancel",this.reorderPageTitle="Reorder Pages",this.reorderPageGuidanceTitle="Drag pages to reorder",this.reorderPageText="%d",this.reorderTopBarConfirmButtonTitle="Done",this.reorderTopBarCancelButtonTitle="Cancel",this.croppingTopBarConfirmButtonTitle="Done",this.croppingTopBarCancelButtonTitle="Cancel",this.croppingDetectButtonTitle="Detect",this.croppingRotateButtonTitle="Rotate",this.croppingResetButtonTitle="Reset",this.croppingScreenTitle="Crop",this.accessibilityDescriptionCameraPermissionEnableCameraButton="Tap to grant camera permission",this.accessibilityDescriptionCameraPermissionCloseButton="Close screen without granting permission",this.accessibilityDescriptionCameraTopBarIntroButton="Tap to open introduction screen",this.accessibilityDescriptionCameraTopBarCancelButton="Tap to close scanner screen",this.accessibilityDescriptionCameraImportButton="Tap to import image",this.accessibilityDescriptionCameraTorchOnButton="Tap to disable torch",this.accessibilityDescriptionCameraTorchOffButton="Tap to enable torch",this.accessibilityDescriptionCameraShutterButton="Tap to take image",this.accessibilityDescriptionCameraAutoSnapButton="Tap to enable manual snapping mode",this.accessibilityDescriptionCameraManualSnapButton="Tap to enable auto snapping mode",this.accessibilityDescriptionCameraPreviewButton="Tap to preview scanned pages",this.accessibilityDescriptionCameraIntroDoneButton="Tap to close introduction screen",this.accessibilityDescriptionCameraSelectButton="Tap to open camera selection menu",this.accessibilityDescriptionCameraSelectMenuItem="Tap to select camera",this.accessibilityDescriptionAcknowledgementRetakeButton="Tap to retake the image",this.accessibilityDescriptionAcknowledgementAcceptButton="Tap to accept the image regarding the quality",this.accessibilityDescriptionCroppingTopBarConfirmButton="Tap to apply changes",this.accessibilityDescriptionCroppingTopBarCancelButton="Tap to close screen without applying changes",this.accessibilityDescriptionCroppingDetectButton="Tap to detect document on the image",this.accessibilityDescriptionCroppingRotateButton="Tap to rotate document",this.accessibilityDescriptionCroppingResetButton="Tap to reset document contour to whole image",this.accessibilityDescriptionReorderTopBarConfirmButton="Tap to apply changes",this.accessibilityDescriptionReorderTopBarCancelButton="Tap to close screen without applying changes",this.accessibilityDescriptionReviewNextPageButton="Tap to switch to the new page",this.accessibilityDescriptionReviewPreviousPageButton="Tap to switch to the previous page",this.accessibilityDescriptionReviewAddButton="Tap to Add new page",this.accessibilityDescriptionReviewRetakeButton="Tap to Retake current selected page",this.accessibilityDescriptionReviewCropButton="Tap to Crop selected page",this.accessibilityDescriptionReviewRotateButton="Tap to Rotate selected page clockwise",this.accessibilityDescriptionReviewDeleteButton="Tap to Delete selected page",this.accessibilityDescriptionReviewSubmitButton="Tap to Submit document",this.accessibilityDescriptionReviewMoreButton="Tap to show additional options",this.accessibilityDescriptionReviewDeleteAllButton="Tap to Delete all pages",this.accessibilityDescriptionReviewReorderPagesButton="Tap to Reorder pages",this.accessibilityDescriptionZoomOverlayCancelButton="Tap to Close zoom overlay",this.accessibilityDescriptionReviewZoomButton="Tap to open zoom overlay for selected page",this.accessibilityDescriptionReviewTopBarBackButton="Tap to Close review screen",this.accessibilityDescriptionReviewDeletePageAlertConfirmButton="Tap to Delete page",this.accessibilityDescriptionReviewDeleteAllPagesAlertDeleteButton="Tap to Delete all pages",this.accessibilityDescriptionReviewDeletePageAlertDeleteRetakeButton="Tap to Delete page and Retake it",this.accessibilityDescriptionReviewDeletePageAlertCancelButton="Tap to Cancel operation",this.accessibilityDescriptionReviewDeleteAllPagesAlertCancelButton="Tap to Cancel operation",this.accessibilityDescriptionCameraLimitReachedOkButton="Tap to close alert dialog",this.accessibilityDescriptionCameraCancelYesButton="Tap to cancel document",this.accessibilityDescriptionCameraCancelNoButton="Tap to close alert dialog",void 0!==e.cameraPermissionEnableCameraTitle&&(this.cameraPermissionEnableCameraTitle=e.cameraPermissionEnableCameraTitle),void 0!==e.cameraPermissionEnableCameraExplanation&&(this.cameraPermissionEnableCameraExplanation=e.cameraPermissionEnableCameraExplanation),void 0!==e.cameraPermissionEnableCameraButton&&(this.cameraPermissionEnableCameraButton=e.cameraPermissionEnableCameraButton),void 0!==e.cameraPermissionCloseButton&&(this.cameraPermissionCloseButton=e.cameraPermissionCloseButton),void 0!==e.cameraTopBarCancelButtonTitle&&(this.cameraTopBarCancelButtonTitle=e.cameraTopBarCancelButtonTitle),void 0!==e.cameraTopBarTitle&&(this.cameraTopBarTitle=e.cameraTopBarTitle),void 0!==e.cameraTopGuidance&&(this.cameraTopGuidance=e.cameraTopGuidance),void 0!==e.cameraUserGuidanceStart&&(this.cameraUserGuidanceStart=e.cameraUserGuidanceStart),void 0!==e.cameraUserGuidanceNoDocumentFound&&(this.cameraUserGuidanceNoDocumentFound=e.cameraUserGuidanceNoDocumentFound),void 0!==e.cameraUserGuidanceBadAspectRatio&&(this.cameraUserGuidanceBadAspectRatio=e.cameraUserGuidanceBadAspectRatio),void 0!==e.cameraUserGuidanceBadAngles&&(this.cameraUserGuidanceBadAngles=e.cameraUserGuidanceBadAngles),void 0!==e.cameraUserGuidanceTooNoisy&&(this.cameraUserGuidanceTooNoisy=e.cameraUserGuidanceTooNoisy),void 0!==e.cameraUserGuidanceTextHintOffCenter&&(this.cameraUserGuidanceTextHintOffCenter=e.cameraUserGuidanceTextHintOffCenter),void 0!==e.cameraUserGuidanceTooSmall&&(this.cameraUserGuidanceTooSmall=e.cameraUserGuidanceTooSmall),void 0!==e.cameraUserGuidanceTooDark&&(this.cameraUserGuidanceTooDark=e.cameraUserGuidanceTooDark),void 0!==e.cameraUserGuidanceEnergySaveMode&&(this.cameraUserGuidanceEnergySaveMode=e.cameraUserGuidanceEnergySaveMode),void 0!==e.cameraUserGuidanceReadyToCapture&&(this.cameraUserGuidanceReadyToCapture=e.cameraUserGuidanceReadyToCapture),void 0!==e.cameraUserGuidanceReadyToCaptureManual&&(this.cameraUserGuidanceReadyToCaptureManual=e.cameraUserGuidanceReadyToCaptureManual),void 0!==e.cameraImportButtonTitle&&(this.cameraImportButtonTitle=e.cameraImportButtonTitle),void 0!==e.cameraTorchOnButtonTitle&&(this.cameraTorchOnButtonTitle=e.cameraTorchOnButtonTitle),void 0!==e.cameraTorchOffButtonTitle&&(this.cameraTorchOffButtonTitle=e.cameraTorchOffButtonTitle),void 0!==e.cameraAutoSnapButtonTitle&&(this.cameraAutoSnapButtonTitle=e.cameraAutoSnapButtonTitle),void 0!==e.cameraManualSnapButtonTitle&&(this.cameraManualSnapButtonTitle=e.cameraManualSnapButtonTitle),void 0!==e.cameraPreviewButtonTitle&&(this.cameraPreviewButtonTitle=e.cameraPreviewButtonTitle),void 0!==e.cameraIntroDoneButton&&(this.cameraIntroDoneButton=e.cameraIntroDoneButton),void 0!==e.cameraIntroTitle&&(this.cameraIntroTitle=e.cameraIntroTitle),void 0!==e.cameraIntroSubtitle&&(this.cameraIntroSubtitle=e.cameraIntroSubtitle),void 0!==e.cameraIntroItem1&&(this.cameraIntroItem1=e.cameraIntroItem1),void 0!==e.cameraIntroItem2&&(this.cameraIntroItem2=e.cameraIntroItem2),void 0!==e.cameraIntroItem3&&(this.cameraIntroItem3=e.cameraIntroItem3),void 0!==e.cameraIntroItem4&&(this.cameraIntroItem4=e.cameraIntroItem4),void 0!==e.cameraProgressOverlayTitle&&(this.cameraProgressOverlayTitle=e.cameraProgressOverlayTitle),void 0!==e.cameraCancelAlertTitle&&(this.cameraCancelAlertTitle=e.cameraCancelAlertTitle),void 0!==e.cameraCancelAlertSubtitle&&(this.cameraCancelAlertSubtitle=e.cameraCancelAlertSubtitle),void 0!==e.cameraCancelNoButtonTitle&&(this.cameraCancelNoButtonTitle=e.cameraCancelNoButtonTitle),void 0!==e.cameraCancelYesButtonTitle&&(this.cameraCancelYesButtonTitle=e.cameraCancelYesButtonTitle),void 0!==e.cameraLimitReachedAlertTitle&&(this.cameraLimitReachedAlertTitle=e.cameraLimitReachedAlertTitle),void 0!==e.cameraLimitReachedAlertSubtitle&&(this.cameraLimitReachedAlertSubtitle=e.cameraLimitReachedAlertSubtitle),void 0!==e.cameraLimitReachedOkButtonTitle&&(this.cameraLimitReachedOkButtonTitle=e.cameraLimitReachedOkButtonTitle),void 0!==e.cameraSelectCameraMenuTitle&&(this.cameraSelectCameraMenuTitle=e.cameraSelectCameraMenuTitle),void 0!==e.acknowledgementScreenBadDocumentHint&&(this.acknowledgementScreenBadDocumentHint=e.acknowledgementScreenBadDocumentHint),void 0!==e.acknowledgementRetakeButtonTitle&&(this.acknowledgementRetakeButtonTitle=e.acknowledgementRetakeButtonTitle),void 0!==e.acknowledgementAcceptButtonTitle&&(this.acknowledgementAcceptButtonTitle=e.acknowledgementAcceptButtonTitle),void 0!==e.reviewScreenTitle&&(this.reviewScreenTitle=e.reviewScreenTitle),void 0!==e.reviewTopBarBackButtonTitle&&(this.reviewTopBarBackButtonTitle=e.reviewTopBarBackButtonTitle),void 0!==e.reviewScreenPageCount&&(this.reviewScreenPageCount=e.reviewScreenPageCount),void 0!==e.reviewScreenAddButtonTitle&&(this.reviewScreenAddButtonTitle=e.reviewScreenAddButtonTitle),void 0!==e.reviewScreenRetakeButtonTitle&&(this.reviewScreenRetakeButtonTitle=e.reviewScreenRetakeButtonTitle),void 0!==e.reviewScreenCropButtonTitle&&(this.reviewScreenCropButtonTitle=e.reviewScreenCropButtonTitle),void 0!==e.reviewScreenRotateButtonTitle&&(this.reviewScreenRotateButtonTitle=e.reviewScreenRotateButtonTitle),void 0!==e.reviewScreenDeleteButtonTitle&&(this.reviewScreenDeleteButtonTitle=e.reviewScreenDeleteButtonTitle),void 0!==e.reviewScreenSubmitButtonTitle&&(this.reviewScreenSubmitButtonTitle=e.reviewScreenSubmitButtonTitle),void 0!==e.reviewScreenDeleteAllButtonTitle&&(this.reviewScreenDeleteAllButtonTitle=e.reviewScreenDeleteAllButtonTitle),void 0!==e.reviewScreenReorderPagesButtonTitle&&(this.reviewScreenReorderPagesButtonTitle=e.reviewScreenReorderPagesButtonTitle),void 0!==e.zoomOverlayCancelButtonText&&(this.zoomOverlayCancelButtonText=e.zoomOverlayCancelButtonText),void 0!==e.reviewDeletePageAlertTitle&&(this.reviewDeletePageAlertTitle=e.reviewDeletePageAlertTitle),void 0!==e.reviewDeleteAllPagesAlertTitle&&(this.reviewDeleteAllPagesAlertTitle=e.reviewDeleteAllPagesAlertTitle),void 0!==e.reviewDeletePageAlertSubTitle&&(this.reviewDeletePageAlertSubTitle=e.reviewDeletePageAlertSubTitle),void 0!==e.reviewDeleteAllPagesAlertSubtitle&&(this.reviewDeleteAllPagesAlertSubtitle=e.reviewDeleteAllPagesAlertSubtitle),void 0!==e.reviewDeletePageAlertConfirmButtonTitle&&(this.reviewDeletePageAlertConfirmButtonTitle=e.reviewDeletePageAlertConfirmButtonTitle),void 0!==e.reviewDeleteAllPagesAlertDeleteButtonTitle&&(this.reviewDeleteAllPagesAlertDeleteButtonTitle=e.reviewDeleteAllPagesAlertDeleteButtonTitle),void 0!==e.reviewDeletePageAlertDeleteRetakeButtonTitle&&(this.reviewDeletePageAlertDeleteRetakeButtonTitle=e.reviewDeletePageAlertDeleteRetakeButtonTitle),void 0!==e.reviewDeletePageAlertCancelButtonTitle&&(this.reviewDeletePageAlertCancelButtonTitle=e.reviewDeletePageAlertCancelButtonTitle),void 0!==e.reviewDeleteAllPagesAlertCancelButtonTitle&&(this.reviewDeleteAllPagesAlertCancelButtonTitle=e.reviewDeleteAllPagesAlertCancelButtonTitle),void 0!==e.reorderPageTitle&&(this.reorderPageTitle=e.reorderPageTitle),void 0!==e.reorderPageGuidanceTitle&&(this.reorderPageGuidanceTitle=e.reorderPageGuidanceTitle),void 0!==e.reorderPageText&&(this.reorderPageText=e.reorderPageText),void 0!==e.reorderTopBarConfirmButtonTitle&&(this.reorderTopBarConfirmButtonTitle=e.reorderTopBarConfirmButtonTitle),void 0!==e.reorderTopBarCancelButtonTitle&&(this.reorderTopBarCancelButtonTitle=e.reorderTopBarCancelButtonTitle),void 0!==e.croppingTopBarConfirmButtonTitle&&(this.croppingTopBarConfirmButtonTitle=e.croppingTopBarConfirmButtonTitle),void 0!==e.croppingTopBarCancelButtonTitle&&(this.croppingTopBarCancelButtonTitle=e.croppingTopBarCancelButtonTitle),void 0!==e.croppingDetectButtonTitle&&(this.croppingDetectButtonTitle=e.croppingDetectButtonTitle),void 0!==e.croppingRotateButtonTitle&&(this.croppingRotateButtonTitle=e.croppingRotateButtonTitle),void 0!==e.croppingResetButtonTitle&&(this.croppingResetButtonTitle=e.croppingResetButtonTitle),void 0!==e.croppingScreenTitle&&(this.croppingScreenTitle=e.croppingScreenTitle),void 0!==e.accessibilityDescriptionCameraPermissionEnableCameraButton&&(this.accessibilityDescriptionCameraPermissionEnableCameraButton=e.accessibilityDescriptionCameraPermissionEnableCameraButton),void 0!==e.accessibilityDescriptionCameraPermissionCloseButton&&(this.accessibilityDescriptionCameraPermissionCloseButton=e.accessibilityDescriptionCameraPermissionCloseButton),void 0!==e.accessibilityDescriptionCameraTopBarIntroButton&&(this.accessibilityDescriptionCameraTopBarIntroButton=e.accessibilityDescriptionCameraTopBarIntroButton),void 0!==e.accessibilityDescriptionCameraTopBarCancelButton&&(this.accessibilityDescriptionCameraTopBarCancelButton=e.accessibilityDescriptionCameraTopBarCancelButton),void 0!==e.accessibilityDescriptionCameraImportButton&&(this.accessibilityDescriptionCameraImportButton=e.accessibilityDescriptionCameraImportButton),void 0!==e.accessibilityDescriptionCameraTorchOnButton&&(this.accessibilityDescriptionCameraTorchOnButton=e.accessibilityDescriptionCameraTorchOnButton),void 0!==e.accessibilityDescriptionCameraTorchOffButton&&(this.accessibilityDescriptionCameraTorchOffButton=e.accessibilityDescriptionCameraTorchOffButton),void 0!==e.accessibilityDescriptionCameraShutterButton&&(this.accessibilityDescriptionCameraShutterButton=e.accessibilityDescriptionCameraShutterButton),void 0!==e.accessibilityDescriptionCameraAutoSnapButton&&(this.accessibilityDescriptionCameraAutoSnapButton=e.accessibilityDescriptionCameraAutoSnapButton),void 0!==e.accessibilityDescriptionCameraManualSnapButton&&(this.accessibilityDescriptionCameraManualSnapButton=e.accessibilityDescriptionCameraManualSnapButton),void 0!==e.accessibilityDescriptionCameraPreviewButton&&(this.accessibilityDescriptionCameraPreviewButton=e.accessibilityDescriptionCameraPreviewButton),void 0!==e.accessibilityDescriptionCameraIntroDoneButton&&(this.accessibilityDescriptionCameraIntroDoneButton=e.accessibilityDescriptionCameraIntroDoneButton),void 0!==e.accessibilityDescriptionCameraSelectButton&&(this.accessibilityDescriptionCameraSelectButton=e.accessibilityDescriptionCameraSelectButton),void 0!==e.accessibilityDescriptionCameraSelectMenuItem&&(this.accessibilityDescriptionCameraSelectMenuItem=e.accessibilityDescriptionCameraSelectMenuItem),void 0!==e.accessibilityDescriptionAcknowledgementRetakeButton&&(this.accessibilityDescriptionAcknowledgementRetakeButton=e.accessibilityDescriptionAcknowledgementRetakeButton),void 0!==e.accessibilityDescriptionAcknowledgementAcceptButton&&(this.accessibilityDescriptionAcknowledgementAcceptButton=e.accessibilityDescriptionAcknowledgementAcceptButton),void 0!==e.accessibilityDescriptionCroppingTopBarConfirmButton&&(this.accessibilityDescriptionCroppingTopBarConfirmButton=e.accessibilityDescriptionCroppingTopBarConfirmButton),void 0!==e.accessibilityDescriptionCroppingTopBarCancelButton&&(this.accessibilityDescriptionCroppingTopBarCancelButton=e.accessibilityDescriptionCroppingTopBarCancelButton),void 0!==e.accessibilityDescriptionCroppingDetectButton&&(this.accessibilityDescriptionCroppingDetectButton=e.accessibilityDescriptionCroppingDetectButton),void 0!==e.accessibilityDescriptionCroppingRotateButton&&(this.accessibilityDescriptionCroppingRotateButton=e.accessibilityDescriptionCroppingRotateButton),void 0!==e.accessibilityDescriptionCroppingResetButton&&(this.accessibilityDescriptionCroppingResetButton=e.accessibilityDescriptionCroppingResetButton),void 0!==e.accessibilityDescriptionReorderTopBarConfirmButton&&(this.accessibilityDescriptionReorderTopBarConfirmButton=e.accessibilityDescriptionReorderTopBarConfirmButton),void 0!==e.accessibilityDescriptionReorderTopBarCancelButton&&(this.accessibilityDescriptionReorderTopBarCancelButton=e.accessibilityDescriptionReorderTopBarCancelButton),void 0!==e.accessibilityDescriptionReviewNextPageButton&&(this.accessibilityDescriptionReviewNextPageButton=e.accessibilityDescriptionReviewNextPageButton),void 0!==e.accessibilityDescriptionReviewPreviousPageButton&&(this.accessibilityDescriptionReviewPreviousPageButton=e.accessibilityDescriptionReviewPreviousPageButton),void 0!==e.accessibilityDescriptionReviewAddButton&&(this.accessibilityDescriptionReviewAddButton=e.accessibilityDescriptionReviewAddButton),void 0!==e.accessibilityDescriptionReviewRetakeButton&&(this.accessibilityDescriptionReviewRetakeButton=e.accessibilityDescriptionReviewRetakeButton),void 0!==e.accessibilityDescriptionReviewCropButton&&(this.accessibilityDescriptionReviewCropButton=e.accessibilityDescriptionReviewCropButton),void 0!==e.accessibilityDescriptionReviewRotateButton&&(this.accessibilityDescriptionReviewRotateButton=e.accessibilityDescriptionReviewRotateButton),void 0!==e.accessibilityDescriptionReviewDeleteButton&&(this.accessibilityDescriptionReviewDeleteButton=e.accessibilityDescriptionReviewDeleteButton),void 0!==e.accessibilityDescriptionReviewSubmitButton&&(this.accessibilityDescriptionReviewSubmitButton=e.accessibilityDescriptionReviewSubmitButton),void 0!==e.accessibilityDescriptionReviewMoreButton&&(this.accessibilityDescriptionReviewMoreButton=e.accessibilityDescriptionReviewMoreButton),void 0!==e.accessibilityDescriptionReviewDeleteAllButton&&(this.accessibilityDescriptionReviewDeleteAllButton=e.accessibilityDescriptionReviewDeleteAllButton),void 0!==e.accessibilityDescriptionReviewReorderPagesButton&&(this.accessibilityDescriptionReviewReorderPagesButton=e.accessibilityDescriptionReviewReorderPagesButton),void 0!==e.accessibilityDescriptionZoomOverlayCancelButton&&(this.accessibilityDescriptionZoomOverlayCancelButton=e.accessibilityDescriptionZoomOverlayCancelButton),void 0!==e.accessibilityDescriptionReviewZoomButton&&(this.accessibilityDescriptionReviewZoomButton=e.accessibilityDescriptionReviewZoomButton),void 0!==e.accessibilityDescriptionReviewTopBarBackButton&&(this.accessibilityDescriptionReviewTopBarBackButton=e.accessibilityDescriptionReviewTopBarBackButton),void 0!==e.accessibilityDescriptionReviewDeletePageAlertConfirmButton&&(this.accessibilityDescriptionReviewDeletePageAlertConfirmButton=e.accessibilityDescriptionReviewDeletePageAlertConfirmButton),void 0!==e.accessibilityDescriptionReviewDeleteAllPagesAlertDeleteButton&&(this.accessibilityDescriptionReviewDeleteAllPagesAlertDeleteButton=e.accessibilityDescriptionReviewDeleteAllPagesAlertDeleteButton),void 0!==e.accessibilityDescriptionReviewDeletePageAlertDeleteRetakeButton&&(this.accessibilityDescriptionReviewDeletePageAlertDeleteRetakeButton=e.accessibilityDescriptionReviewDeletePageAlertDeleteRetakeButton),void 0!==e.accessibilityDescriptionReviewDeletePageAlertCancelButton&&(this.accessibilityDescriptionReviewDeletePageAlertCancelButton=e.accessibilityDescriptionReviewDeletePageAlertCancelButton),void 0!==e.accessibilityDescriptionReviewDeleteAllPagesAlertCancelButton&&(this.accessibilityDescriptionReviewDeleteAllPagesAlertCancelButton=e.accessibilityDescriptionReviewDeleteAllPagesAlertCancelButton),void 0!==e.accessibilityDescriptionCameraLimitReachedOkButton&&(this.accessibilityDescriptionCameraLimitReachedOkButton=e.accessibilityDescriptionCameraLimitReachedOkButton),void 0!==e.accessibilityDescriptionCameraCancelYesButton&&(this.accessibilityDescriptionCameraCancelYesButton=e.accessibilityDescriptionCameraCancelYesButton),void 0!==e.accessibilityDescriptionCameraCancelNoButton&&(this.accessibilityDescriptionCameraCancelNoButton=e.accessibilityDescriptionCameraCancelNoButton)}}class Ie extends p.a{constructor(e={}){super(),this.topBarBackgroundColor="?sbColorPrimary",this.bottomBarBackgroundColor="?sbColorPrimary",void 0!==e.topBarBackgroundColor&&(this.topBarBackgroundColor=e.topBarBackgroundColor),void 0!==e.bottomBarBackgroundColor&&(this.bottomBarBackgroundColor=e.bottomBarBackgroundColor)}}class Pe extends p.a{constructor(e={}){super(),this.version="1.0",this.screen="DocumentScanner",this.palette=new Z.Palette({sbColorPrimary:"#C8193C",sbColorPrimaryDisabled:"#F5F5F5",sbColorNegative:"#FF3737",sbColorPositive:"#4EFFB4",sbColorWarning:"#FFCE5C",sbColorSecondary:"#FFEDEE",sbColorSecondaryDisabled:"#F5F5F5",sbColorOnPrimary:"#FFFFFF",sbColorOnSecondary:"#C8193C",sbColorSurface:"#FFFFFF",sbColorOutline:"#EFEFEF",sbColorOnSurfaceVariant:"#707070",sbColorOnSurface:"#000000",sbColorSurfaceLow:"#00000026",sbColorSurfaceHigh:"#0000007A",sbColorModalOverlay:"#000000A3"}),this.localization=new ke({}),this.appearance=new Ie({}),this.outputSettings=new xe({}),this.screens=new Be({}),this.documentUuid=null,this.cleanScanningSession=!0,void 0!==e.version&&(this.version=e.version),void 0!==e.screen&&(this.screen=e.screen),void 0!==e.palette&&(this.palette=new Z.Palette(e.palette)),void 0!==e.localization&&(this.localization=new ke(e.localization)),void 0!==e.appearance&&(this.appearance=new Ie(e.appearance)),void 0!==e.outputSettings&&(this.outputSettings=new xe(e.outputSettings)),void 0!==e.screens&&(this.screens=new Be(e.screens)),void 0!==e.documentUuid&&(this.documentUuid=null!=e.documentUuid?e.documentUuid:null),void 0!==e.cleanScanningSession&&(this.cleanScanningSession=e.cleanScanningSession)}}class Le extends p.a{constructor(e={}){super(),this.flashButton=new Z.RoundButton({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"}),this.zoomButton=new Z.RoundButton({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"}),this.flipCameraButton=new Z.RoundButton({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"}),void 0!==e.flashButton&&(this.flashButton=new Z.RoundButton(e.flashButton)),void 0!==e.zoomButton&&(this.zoomButton=new Z.RoundButton(e.zoomButton)),void 0!==e.flipCameraButton&&(this.flipCameraButton=new Z.RoundButton(e.flipCameraButton))}}class Re extends p.a{constructor(e={}){if(super(),void 0===e.width)throw new Error("width must be present in constructor argument");if(this.width=e.width,void 0===e.height)throw new Error("height must be present in constructor argument");this.height=e.height}}class _e extends p.a{constructor(e={}){super(),this.cameraModule="BACK",this.zoomSteps=[1,2,5],this.defaultZoomFactor=1,this.flashEnabled=!1,this.idealPreviewResolution=new Re({width:1920,height:1080}),void 0!==e.cameraModule&&(this.cameraModule=e.cameraModule),void 0!==e.zoomSteps&&(this.zoomSteps=e.zoomSteps.map((e=>e))),void 0!==e.defaultZoomFactor&&(this.defaultZoomFactor=e.defaultZoomFactor),void 0!==e.flashEnabled&&(this.flashEnabled=e.flashEnabled),void 0!==e.idealPreviewResolution&&(this.idealPreviewResolution=new Re(e.idealPreviewResolution))}}class je extends p.a{constructor(e={}){super(),this.title=new Z.StyledText({visible:!1,text:"Scan Item",color:"?sbColorOnPrimary"}),this.mode="SOLID",this.backgroundColor="?sbColorPrimary",this.cancelButton=new Z.ButtonConfiguration({text:"Cancel",background:new Z.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new Z.ForegroundStyle({color:"?sbColorOnPrimary"})}),void 0!==e.title&&(this.title=new Z.StyledText(e.title)),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.cancelButton&&(this.cancelButton=new Z.ButtonConfiguration(e.cancelButton))}}},function(e,t,n){"use strict";n.d(t,"g",(function(){return a})),n.d(t,"f",(function(){return i})),n.d(t,"j",(function(){return s})),n.d(t,"k",(function(){return c})),n.d(t,"i",(function(){return l})),n.d(t,"d",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"e",(function(){return m})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return h})),n.d(t,"h",(function(){return f}));var i,o=n(1),r=n(7);class a extends r.a{constructor(e={}){super(),this.image=new s({}),this.text=new o.StyledText({text:"?cameraIntroDescription",color:"?sbColorOnSurface"}),void 0!==e.image&&(this.image=i.From(e.image)),void 0!==e.text&&(this.text=new o.StyledText(e.text))}}!function(e){e.From=function(e){const t=e._type;switch(t){case"NoIntroImage":return new s(e);case"ReceiptsIntroImage":return new c(e);case"MedicalCertificateIntroImage":return new l(e);case"DocumentIntroImage":return new u(e);case"CheckIntroImage":return new d(e);case"IdCardIntroImage":return new m(e);case"CreditCardIntroImage":return new p(e);case"CustomImage":return new h(e);default:throw`Unknown child class name: ${t}`}}}(i||(i={}));class s extends r.a{constructor(e={}){super(),this._type="NoIntroImage"}}class c extends r.a{constructor(e={}){super(),this._type="ReceiptsIntroImage"}}class l extends r.a{constructor(e={}){super(),this._type="MedicalCertificateIntroImage"}}class u extends r.a{constructor(e={}){super(),this._type="DocumentIntroImage"}}class d extends r.a{constructor(e={}){super(),this._type="CheckIntroImage"}}class m extends r.a{constructor(e={}){super(),this._type="IdCardIntroImage"}}class p extends r.a{constructor(e={}){super(),this._type="CreditCardIntroImage"}}class h extends r.a{constructor(e={}){if(super(),this._type="CustomImage",void 0===e.uri)throw new Error("uri must be present in constructor argument");this.uri=e.uri}}class f extends r.a{constructor(e={}){super(),this.backgroundColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.showAutomatically=!1,this.topBarDoneButton=new o.ButtonConfiguration({visible:!0,text:"?cameraIntroDoneButton",accessibilityDescription:"?accessibilityDescriptionCameraIntroDoneButton",background:new o.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new o.ForegroundStyle({iconVisible:!0,color:"?sbColorPrimary",useShadow:!1})}),this.title=new o.StyledText({text:"?cameraIntroTitle",color:"?sbColorOnSurface"}),this.subtitle=new o.StyledText({text:"?cameraIntroSubtitle",color:"?sbColorOnSurface"}),this.items=[new a({image:new u({}),text:new o.StyledText({text:"?cameraIntroItem1",color:"?sbColorOnSurface"})}),new a({image:new s({}),text:new o.StyledText({text:"?cameraIntroItem2",color:"?sbColorOnSurface"})}),new a({image:new s({}),text:new o.StyledText({text:"?cameraIntroItem3",color:"?sbColorOnSurface"})}),new a({image:new s({}),text:new o.StyledText({text:"?cameraIntroItem4",color:"?sbColorOnSurface"})})],void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.showAutomatically&&(this.showAutomatically=e.showAutomatically),void 0!==e.topBarDoneButton&&(this.topBarDoneButton=new o.ButtonConfiguration(e.topBarDoneButton)),void 0!==e.title&&(this.title=new o.StyledText(e.title)),void 0!==e.subtitle&&(this.subtitle=new o.StyledText(e.subtitle)),void 0!==e.items&&(this.items=e.items.map((e=>new a(e))))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));class i{static initialize(e=!1){this.verbose=e}static debug(e){this.verbose&&console.log("ScanbotSDK:",e)}static debugWarn(e){this.verbose&&console.warn("ScanbotSDK:",e)}}},,function(e,t,n){"use strict";var i=n(138);t.a=i.a},,function(e,t,n){"use strict";n.r(t),n.d(t,"OcrResult",(function(){return r})),n.d(t,"FieldValidationStatusValues",(function(){return a})),n.d(t,"FieldDataFormatValues",(function(){return s})),n.d(t,"FieldParsedData",(function(){return c})),n.d(t,"FieldType",(function(){return l})),n.d(t,"Field",(function(){return u})),n.d(t,"GenericDocumentType",(function(){return d})),n.d(t,"GenericDocument",(function(){return m}));var i=n(75),o=n(8);class r extends o.a{constructor(e={}){if(super(),void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.confidence)throw new Error("confidence must be present in constructor argument");this.confidence=e.confidence}}const a=["INVALID","NONE","CONFIRMED","INFERRED","VALID","IGNORED"],s=["ISO_DATE","ISO_COUNTRY_ALPHA_2","ISO_COUNTRY_ALPHA_3","ISO_COUNTRY_NUMERIC","ISO_COUNTRY_NAME","GENDER"];class c extends o.a{constructor(e={}){if(super(),void 0===e.type)throw new Error("type must be present in constructor argument");if(this.type=e.type,void 0===e.value)throw new Error("value must be present in constructor argument");this.value=e.value}}class l extends o.a{constructor(e={}){if(super(),this.listIndex=null,void 0===e.name)throw new Error("name must be present in constructor argument");if(this.name=e.name,void 0===e.fullName)throw new Error("fullName must be present in constructor argument");if(this.fullName=e.fullName,void 0===e.normalizedName)throw new Error("normalizedName must be present in constructor argument");if(this.normalizedName=e.normalizedName,void 0===e.commonType)throw new Error("commonType must be present in constructor argument");this.commonType=null!=e.commonType&&i.CommonFieldTypeValues.includes(e.commonType)?e.commonType:null,void 0!==e.listIndex&&(this.listIndex=null!=e.listIndex?e.listIndex:null)}}class u extends o.a{constructor(e={}){if(super(),this.confidenceWeight=1,this.image=null,this.validationStatus="NONE",this.parsedData=[],void 0===e.type)throw new Error("type must be present in constructor argument");if(this.type=new l(e.type),void 0===e.value)throw new Error("value must be present in constructor argument");if(this.value=null!=e.value?new r(e.value):null,void 0!==e.confidenceWeight&&(this.confidenceWeight=e.confidenceWeight),void 0!==e.image&&(this.image=null!=e.image?e.image:null),void 0===e.polygonInRoot)throw new Error("polygonInRoot must be present in constructor argument");this.polygonInRoot=e.polygonInRoot.map((e=>({x:e.x,y:e.y}))),void 0!==e.validationStatus&&(this.validationStatus=e.validationStatus),void 0!==e.parsedData&&(this.parsedData=e.parsedData.map((e=>new c(e))))}}class d extends o.a{constructor(e={}){if(super(),this.listIndex=null,void 0===e.name)throw new Error("name must be present in constructor argument");if(this.name=e.name,void 0===e.fullName)throw new Error("fullName must be present in constructor argument");if(this.fullName=e.fullName,void 0===e.normalizedName)throw new Error("normalizedName must be present in constructor argument");this.normalizedName=e.normalizedName,void 0!==e.listIndex&&(this.listIndex=null!=e.listIndex?e.listIndex:null)}}class m extends o.a{constructor(e={}){if(super(),this.crop=null,this.confidence=0,this.confidenceWeight=0,void 0===e.type)throw new Error("type must be present in constructor argument");if(this.type=new d(e.type),void 0===e.fields)throw new Error("fields must be present in constructor argument");if(this.fields=e.fields.map((e=>new u(e))),void 0===e.children)throw new Error("children must be present in constructor argument");if(this.children=e.children.map((e=>new m(e))),void 0===e.quad)throw new Error("quad must be present in constructor argument");if(this.quad=e.quad.map((e=>({x:e.x,y:e.y}))),void 0===e.quadInRoot)throw new Error("quadInRoot must be present in constructor argument");this.quadInRoot=e.quadInRoot.map((e=>({x:e.x,y:e.y}))),void 0!==e.crop&&(this.crop=null!=e.crop?e.crop:null),void 0!==e.confidence&&(this.confidence=e.confidence),void 0!==e.confidenceWeight&&(this.confidenceWeight=e.confidenceWeight)}}},function(e,t,n){"use strict";n.r(t),n.d(t,"LineSegmentInt",(function(){return o})),n.d(t,"LineSegmentFloat",(function(){return r})),n.d(t,"AspectRatio",(function(){return a}));var i=n(8);class o extends i.a{constructor(e={}){if(super(),void 0===e.start)throw new Error("start must be present in constructor argument");if(this.start={x:e.start.x,y:e.start.y},void 0===e.end)throw new Error("end must be present in constructor argument");this.end={x:e.end.x,y:e.end.y}}}class r extends i.a{constructor(e={}){if(super(),void 0===e.start)throw new Error("start must be present in constructor argument");if(this.start={x:e.start.x,y:e.start.y},void 0===e.end)throw new Error("end must be present in constructor argument");this.end={x:e.end.x,y:e.end.y}}}class a extends i.a{constructor(e={}){super(),this.width=1,this.height=1,void 0!==e.width&&(this.width=e.width),void 0!==e.height&&(this.height=e.height)}}},function(e,t,n){"use strict";var i=n(137);t.a=i.a},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var i=n(34),o=n(36),r=n(5);function a(){const e=new o.BarcodeScannerConfiguration;return e.viewFinder.overlayColor=Object(r.d)(e.viewFinder.overlayColor,e.palette),e.viewFinder.style.strokeColor=Object(r.d)(e.viewFinder.style.strokeColor,e.palette),e.viewFinder}class s extends i.a{constructor(e){super(e),this.finder=a(),this.userGuidance=function(){const e=new o.BarcodeScannerConfiguration;return e.userGuidance.background.fillColor=Object(r.d)(e.userGuidance.background.fillColor,e.palette),e.userGuidance.title.color=Object(r.d)(e.userGuidance.title.color,e.palette),e.userGuidance.title.text=Object(r.e)(e.userGuidance.title.text,[],e.localization),e.userGuidance}()}static mapFinderConfiguration(e,t){var n,o;i.a.mapValuesDeep(null!==(n=t.finder)&&void 0!==n?n:{},e.finder),i.a.mapValuesDeep(null!==(o=t.userGuidance)&&void 0!==o?o:{},e.userGuidance)}}},function(e,t,n){"use strict";t.a="$$material"},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(24);class o{constructor(e,t,n,i){this.x=e,this.y=t,this.width=n,this.height=i}scaleDown(e){return new o(this.x/e,this.y/e,this.width/e,this.height/e)}bottom(){return this.y+this.height}size(){return new i.a(this.width,this.height)}static withSize(e,t){return new o(0,0,e,t)}static empty(){return new o(0,0,0,0)}static fromRect(e){return e?new o(e.x,e.y,e.width,e.height):o.empty()}static fromPoint(e,t){return new o(e.x-t/2,e.y-t/2,t,t)}static fromDOMRect(e){return new o(e.x,e.y,e.width,e.height)}}},function(e,t,n){"use strict";var i=n(158);t.a=i.a},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n(0),o=n(47),r=n(5),a=n(15);class s extends i.default.Component{get style(){return this.props.configuration.style}get holeRect(){return this.holePosition}constructor(e){super(e),this.holePosition=o.a.empty(),this.resizeObserver=new ResizeObserver((()=>{this.updateWindowSize()})),this.componentDidUpdate=e=>{var t,n,i,o;(null===(t=this.props.padding)||void 0===t?void 0:t.minTopPadding)===(null===(n=e.padding)||void 0===n?void 0:n.minTopPadding)&&(null===(i=this.props.padding)||void 0===i?void 0:i.minBottomPadding)===(null===(o=e.padding)||void 0===o?void 0:o.minBottomPadding)&&this.props.configuration===e.configuration&&this.props.guidanceConfiguration===e.guidanceConfiguration||this.setState({shouldUpdateCanvas:!0}),this.updateCanvas()},this.updateWindowSize=()=>{this.setState({shouldUpdateCanvas:!0})},this.getVideoSize=()=>{var e;return null!==(e=this.holeCanvas.getBoundingClientRect())&&void 0!==e?e:new DOMRect},this.scaleForRetinaDisplay=e=>{if(window.devicePixelRatio>1){var t=e.width,n=e.height;e.width=t*window.devicePixelRatio,e.height=n*window.devicePixelRatio,e.style.width=t+"px",e.style.height=n+"px",e.getContext("2d").scale(window.devicePixelRatio,window.devicePixelRatio)}},this.updateCanvas=()=>{var e,t,n,i,o;if(!this.state.shouldUpdateCanvas)return;this.setState({shouldUpdateCanvas:!1});const r=this.getVideoSize().width,a=this.getVideoSize().height;this.holeCanvas.width=r,this.holeCanvas.height=a,this.crosshairCanvas.width=r,this.crosshairCanvas.height=a,this.scaleForRetinaDisplay(this.crosshairCanvas);const s=r-2*this.props.configuration.style.strokeWidth,c=Math.max(20,(r-s)/2),l=Math.min(s,r-2*c),u=this.props.configuration.aspectRatio.width/this.props.configuration.aspectRatio.height;this.holePosition.width=l,this.holePosition.height=this.holePosition.width/u,this.holePosition.x=r/2-l/2;const d=(null===(e=this.guidanceText)||void 0===e?void 0:e.clientHeight)+this.guidanceTextTopPadding||0,m=Math.max(10,null!==(n=null===(t=this.props.padding)||void 0===t?void 0:t.minTopPadding)&&void 0!==n?n:0),p=a-m-Math.max(10,null!==(o=null===(i=this.props.padding)||void 0===i?void 0:i.minBottomPadding)&&void 0!==o?o:0)-d;this.holePosition.height>p?(this.holePosition.height=p,this.holePosition.width=this.holePosition.height*u,this.holePosition.x=r/2-this.holePosition.width/2,this.holePosition.y=m):this.holePosition.y=m+(p-this.holePosition.height)/1.9;const h=this.holeCanvas.getContext("2d");h.save(),this.drawBackground(h),h.globalCompositeOperation="destination-out",this.drawHole();const f=this.crosshairCanvas.getContext("2d");f.globalCompositeOperation="source-over","FinderStrokedStyle"===this.props.configuration.style._type?this.drawHoleOutline():"FinderCorneredStyle"===this.props.configuration.style._type&&this.drawHoleCorners(),h.restore(),f.restore()},this.drawBackground=e=>{const{width:t,height:n}=this.getVideoSize();e.clearRect(0,0,t,n),e.beginPath(),e.rect(0,0,t,n),e.fillStyle=r.b.getColorValue(this.props.configuration.overlayColor),e.fill()},this.drawHole=()=>{const e=this.holeCanvas.getContext("2d"),t=this.cornerRadius(),n=this.holePosition.x,i=this.holePosition.y,o=this.holePosition.width,r=this.holePosition.height;e.beginPath(),e.fillStyle="black",e.moveTo(n+t,i),e.arcTo(n+o,i,n+o,i+r,t),e.arcTo(n+o,i+r,n,i+r,t),e.arcTo(n,i+r,n,i,t),e.arcTo(n,i,n+o,i,t),e.closePath(),e.fill()},this.drawCrosshair=()=>{const e=this.crosshairCanvas.getContext("2d"),t=this.holePosition.x+this.holePosition.width/2,n=this.holePosition.y+this.holePosition.height/2;e.beginPath(),e.moveTo(t-10,n),e.lineTo(t+10,n),e.moveTo(t,n-10),e.lineTo(t,n+10),e.strokeStyle="white",e.fillStyle="white",e.lineWidth=1,e.stroke()},this.drawHoleCorners=()=>{const e=this.crosshairCanvas.getContext("2d"),t=this.holePosition.x,n=this.holePosition.y,i=this.holePosition.width,o=this.holePosition.height,a=15,s=this.style.strokeWidth,c=this.cornerRadius();e.beginPath(),e.moveTo(t,n+a),e.arcTo(t,n,t+i,n,c),e.lineTo(t+a,n),e.moveTo(t+i-a,n),e.arcTo(t+i,n,t+i,n+o,c),e.lineTo(t+i,n+a),e.moveTo(t+i,n+o-a),e.arcTo(t+i,n+o,t,n+o,c),e.lineTo(t+i-a,n+o),e.moveTo(t,n+o-a),e.arcTo(t,n+o,t+i,n+o,c),e.lineTo(t+a,n+o),e.strokeStyle=r.b.getColorValue(this.style.strokeColor),e.lineWidth=s,e.stroke()},this.drawHoleOutline=()=>{const e=this.crosshairCanvas.getContext("2d"),t=this.holePosition.x,n=this.holePosition.y,i=this.holePosition.width,o=this.holePosition.height,a=this.cornerRadius(),s=this.style.strokeWidth;e.beginPath(),e.moveTo(t+a,n),e.arcTo(t+i,n,t+i,n+o,a),e.moveTo(t+i,n+a),e.arcTo(t+i,n+o,t,n+o,a),e.moveTo(t+i-a,n+o),e.arcTo(t,n+o,t,n,a),e.moveTo(t,n+o-a),e.arcTo(t,n,t+i,n,a),e.strokeStyle=r.b.getColorValue(this.style.strokeColor),e.lineWidth=s,e.stroke()},this.guidanceTextTopPadding=20,this.render=()=>i.default.createElement("div",{style:{position:"absolute",width:"100%",height:"100%",textAlign:"left"},onClick:e=>{const t=this.holePosition;e.clientX>this.holePosition.x&&e.clientX<t.x+t.width&&e.clientY>t.y&&e.clientY<t.y+t.height&&console.log("Clicked inside hole, possibly click events need to be diverted")}},i.default.createElement("canvas",{ref:e=>{this.holeCanvas=e},style:{position:"absolute",width:"100%",height:"100%"}}),i.default.createElement("canvas",{ref:e=>{this.crosshairCanvas=e},style:{position:"absolute",width:"100%",height:"100%"}}),this.guidance.visible&&i.default.createElement("div",{ref:e=>{this.guidanceText=e},style:{position:"absolute",display:"block",top:this.holePosition.y+this.holePosition.height+this.guidanceTextTopPadding,left:0,width:"100%",textAlign:"center"}},i.default.createElement(a.a,{style:{display:"inline-block",backgroundColor:r.b.getColorValue(this.guidance.background.fillColor),borderStyle:"solid",borderColor:r.b.getColorValue(this.guidance.background.strokeColor),borderWidth:this.style.strokeWidth,borderRadius:4,padding:"4px 8px",flex:1},config:this.guidance.title}))),this.state={shouldUpdateCanvas:!0}}componentDidMount(){this.updateWindowSize(),this.resizeObserver.observe(this.holeCanvas)}componentWillUnmount(){this.resizeObserver.disconnect()}bottomOfGuidanceText(){var e,t;return this.holeRect.bottom()+(null!==(t=null===(e=this.guidanceText)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:0)+this.guidanceTextTopPadding}get guidance(){return this.props.guidanceConfiguration}cornerRadius(){return Math.max(0,Math.min(this.style.cornerRadius,this.holePosition.width/2,this.holePosition.height/2))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var i=n(0),o=n(32),r=n(53),a=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class s extends i.default.Component{constructor(e){super(e),this.orientationchangeCallback=this.orientationChanged.bind(this),this.state={orientation:window.orientation,stream:void 0}}orientationChanged(e){this.setState({orientation:window.orientation})}setDeviceIdInConstraints(e){var t,n;return a(this,void 0,void 0,(function*(){const i=this.props.preferredCamera;if(i)try{const t=(yield navigator.mediaDevices.enumerateDevices()).find((e=>e.deviceId===i||e.label===i));if(t)return Object.assign(Object.assign({},e),{deviceId:t.deviceId})}catch(e){throw o.a.enumerateDevicesFailed()}else{const i={user:"front",environment:"back"},o=(null===(t=null==e?void 0:e.facingMode)||void 0===t?void 0:t.ideal)||(null===(n=null==e?void 0:e.facingMode)||void 0===n?void 0:n.exact)||(null==e?void 0:e.facingMode);if("string"==typeof o&&o in i){yield r.a.INSTANCE.load();const t=r.a.INSTANCE.getMainCamera(i[o]);if(t)return Object.assign(Object.assign({},e),{deviceId:t.deviceId})}}return e}))}componentDidMount(){return a(this,void 0,void 0,(function*(){window.addEventListener("orientationchange",this.orientationchangeCallback),yield this.refreshStream()}))}refreshStream(){var e,t,n,i,r,s,c,l;return a(this,void 0,void 0,(function*(){if(console.log("refreshStream",this),o.a.hasCheckedPermission()||(yield o.a.tryCheckPermission()),o.a.hasDeniedPermission())null===(t=(e=this.props).onError)||void 0===t||t.call(e,o.a.permissionDenied());else try{const e={video:yield this.setDeviceIdInConstraints(this.props.videoConstraints)};if(!navigator.mediaDevices){const e=o.a.unknown();return null===(i=(n=this.props).onError)||void 0===i||i.call(n,e),void console.log(e)}this.stopCurrentStreams();try{const t=yield navigator.mediaDevices.getUserMedia(e);this.setState({stream:t},(()=>{var e,n,i,o;null===(n=(e=this.props).onStreamChanged)||void 0===n||n.call(e,t),null===(o=(i=this.props).onReady)||void 0===o||o.call(i)}))}catch(e){const t=o.a.mediaDeviceNotFound();return null===(s=(r=this.props).onError)||void 0===s||s.call(r,t),void console.error(t)}}catch(e){const t=o.a.createFromDOMException(e);return null===(l=(c=this.props).onError)||void 0===l||l.call(c,t),void console.error(t)}}))}stopCurrentStreams(){const e=this.state.stream,t=null==e?void 0:e.getTracks();t&&t.forEach((e=>{e.stop()}))}componentWillUnmount(){window.removeEventListener("orientationchange",this.orientationchangeCallback),this.state.stream&&(this.state.stream.getVideoTracks&&this.state.stream.getAudioTracks&&(this.state.stream.getVideoTracks().forEach((e=>e.stop())),this.state.stream.getAudioTracks().forEach((e=>e.stop()))),this.setState({stream:void 0}))}render(){return this.props.children}updateTorch(e){return a(this,void 0,void 0,(function*(){const t=[{torch:e}];yield this.state.stream.getVideoTracks()[0].applyConstraints({advanced:t})}))}getCapabilities(){if(this.state.stream.getVideoTracks){const e=this.getVideoTrack();return s.getMediaTrackCapabilities(e)}}static getMediaTrackCapabilities(e){if(e&&e.getCapabilities)return e.getCapabilities()}getVideoTrack(){const e=this.state.stream.getVideoTracks();if(e.length>0)return e[0]}}var c=n(24),l=n(47),u=n(38),d=n(71);class m{static isSupported(){return!!document.createElement("canvas").getContext("webgl")}constructor(){this._type="WebGL",this.canvas=document.createElement("canvas");const e=this.gl=this.canvas.getContext("webgl",{willReadFrequently:!0}),t=e.createTexture();e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR);const n=e.createShader(e.VERTEX_SHADER);e.shaderSource(n,"attribute vec2 p;void main(){ gl_Position = vec4(p,0,1);}"),e.compileShader(n);const i=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(i,"precision mediump float;uniform sampler2D texture; uniform vec2 scale; uniform vec2 offset; void main() { gl_FragColor=texture2D( texture, gl_FragCoord.xy * scale + offset );}"),e.compileShader(i);const o=this.program=e.createProgram();e.attachShader(o,n),e.attachShader(o,i),e.linkProgram(o),e.useProgram(o),e.uniform1i(e.getUniformLocation(o,"texture"),0),e.bindBuffer(e.ARRAY_BUFFER,e.createBuffer()),e.bufferData(e.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),e.STATIC_DRAW),e.enableVertexAttribArray(0),e.vertexAttribPointer(0,2,e.FLOAT,!1,0,0)}getImageData(e,t,n,i,o,r,a,s){let c,l;if(r=Math.floor(r),a=Math.floor(a),t=Math.floor(t),n=Math.floor(n),i=Math.floor(i),o=Math.floor(o),e instanceof HTMLVideoElement)[l,c]=[e.videoWidth,e.videoHeight];else{if(!(e instanceof HTMLCanvasElement))throw new Error("Unsupported source type");[l,c]=[e.width,e.height]}(l<t+i||c<n+o)&&u.a.debug("Crop region exceeds source video dimensions. This can happen when the screen is resized or rotated and the video has not yet changed its size. Most likely, the frame we analyzed now contains some garbage data. This is not a problem, unless it happens very frequently.");const m=this.gl;this.canvas.width=r,this.canvas.height=a,m.viewport(0,0,r,a);const p=[i/(r*l),o/(a*c)],h=[t/l,n/c];return m.uniform2fv(m.getUniformLocation(this.program,"scale"),p),m.uniform2fv(m.getUniformLocation(this.program,"offset"),h),m.texImage2D(m.TEXTURE_2D,0,m.RGB,m.RGB,m.UNSIGNED_BYTE,e),m.drawArrays(m.TRIANGLES,0,6),(null==s?void 0:s.byteLength)!==r*a*4&&(s=new Uint8ClampedArray(r*a*4),d.a.INSTANCE.values.set("WebGLNumBufferAllocations",(d.a.INSTANCE.values.get("WebGLNumBufferAllocations")||0)+1)),m.readPixels(0,0,r,a,m.RGBA,m.UNSIGNED_BYTE,s),new ImageData(s,r,a)}}class p{constructor(){this._type="TwoD",this.canvas=document.createElement("canvas"),this.ctx=this.canvas.getContext("2d",{willReadFrequently:!0,alpha:!1}),this.ctx.imageSmoothingEnabled=!1}getImageData(e,t,n,i,o,r,a,s){return this.canvas.width=r,this.canvas.height=a,this.ctx.drawImage(e,t,n,i,o,0,0,r,a),this.ctx.getImageData(0,0,r,a)}}var h=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class f extends i.default.Component{constructor(e){super(e),this.videoLoaded=!1,this.reloadCanvas=!0,this.swapCameraEnabled=!0,this.activeCamera=void 0,this.save=!1,this._reusableImageBuffer=null,this.onStreamChanged=e=>{this.video.srcObject=e,this.updateCameraInfo(e),this.video.addEventListener("resize",(e=>{this.reloadCanvas=!0}),!1),this.video.addEventListener("loadeddata",(e=>{this.videoLoaded=!0,this.didLoadVideo&&this.didLoadVideo()}),!1)},this.state={facingModeBack:"environment"===this.props.videoConstraints.facingMode,mirrored:this.props.mirrored,deviceId:void 0}}videoSize(){const{clientVideoWidth:e,clientVideoHeight:t}=this.calculateClientVideoConstraints();return new c.a(e,t)}saveExtractedData(){this.save=!0}zoom(){var e;return null!==(e=this.props.zoom)&&void 0!==e?e:1}imageCapture(){if(this.capture)return this.capture;const e=this.videoStream.getVideoTrack();return this.capture=new ImageCapture(e),this.capture}set reusableImageBuffer(e){this._reusableImageBuffer=e}createImageData(e=0,t){return h(this,void 0,void 0,(function*(){if(!this.video||!this.videoLoaded)return;const n=this.getCanvasRenderingContext();if(!n)return;if(t){const e=yield this.imageCapture().takePhoto(),t=yield createImageBitmap(e);u.a.debug("Bitmap size: "+t.width*t.height);const i=this.windowSize(),o=t.height/(i.height+i.y),r=i.width*o,a=i.height*o,s=t.width/2-r/2,c=i.y*o,d=new l.a(s,c,r,a);return u.a.debug("Frame size: "+d.x+"-"+d.y+"-"+d.width+"-"+d.height),n.getImageData(this.video,d.x,d.y,t.width,t.height,d.width,d.height,this._reusableImageBuffer)}let{videoWidth:i,videoHeight:o}=this.video,{clientVideoWidth:r,clientVideoHeight:a,coef:s}=this.calculateClientVideoConstraints();if(0===s)return;const c=this.finderFrame||new l.a(0,0,r,a);if(c.width<=0||c.height<=0)return;const d=this.zoom(),m=(i-r/d)/2,p=(o-a/d)/2,h=c.x/s+m,f=c.y/s+p,g=this.finderFrame?s:d,v=c.width/g,b=c.height/g,y=this.calculateFrameSize(e,v,b);return n.getImageData(this.video,h,f,v,b,y.width,y.height,this._reusableImageBuffer)}))}windowSize(){var e;const t=this.props.configuration,n=null!==(e=t.container)&&void 0!==e?e:document.getElementById(t.containerId);if(!n)throw new Error("Container DOM element is required to calculate window size and snap image.");return l.a.fromDOMRect(n.getBoundingClientRect())}calculateClientVideoConstraints(){let{videoWidth:e,videoHeight:t}=this.video,n=this.video.getBoundingClientRect(),i=e,o=t,r=1;return n.width/n.height<=e/t?(r=n.height/t,r>0&&(i=n.width/r)):(r=n.width/e,r>0&&(o=n.height/r)),{clientVideoWidth:i,clientVideoHeight:o,coef:r}}calculateFrameSize(e,t,n){let i=t,o=n;if(e>0&&0!=t&&0!=n){const r=t/n;t>n?(i=t>e?e:t,o=i/r):(o=n>e?e:n,i=o*r)}return new c.a(i,o)}getCanvasRenderingContext(){return this.video?0===this.video.videoWidth?null:(this.canvas&&!this.reloadCanvas||(this.canvas&&this.releaseCanvas(),this.canvas=m.isSupported()?new m:new p,this.reloadCanvas=!1),this.canvas):null}releaseCanvas(){this.canvas&&(this.canvas=null)}componentWillUnmount(){this.releaseCanvas(),this.video=null,this.videoStream=null}style(){var e;const t={display:"block",width:100*this.zoom()+"%",height:100*this.zoom()+"%",left:`${this.zoomMargin()}%`,top:`${this.zoomMargin()}%`,position:"relative",objectFit:"cover",backgroundColor:null===(e=this.props.configuration)||void 0===e?void 0:e.backgroundColor};return this.state.mirrored&&(t.transform="scaleX(-1)"),t}zoomMargin(){const e=this.zoom();return 1===e?0:(1-e)/2*100}render(){const{videoConstraints:e,onReady:t,onError:n}=this.props;return i.default.createElement(s,{videoConstraints:e,preferredCamera:this.state.deviceId||this.props.preferredCamera,onReady:t,onStreamChanged:this.onStreamChanged,onError:n,ref:e=>{this.videoStream=e}},i.default.createElement("video",{autoPlay:!0,muted:!0,playsInline:!0,className:"scanbot-camera-view",ref:e=>{this.video=e},style:this.style()}))}setDirection(e){this.props.videoConstraints.facingMode={ideal:e},this.setState({facingModeBack:"environment"===e,mirrored:"user"===e},(()=>h(this,void 0,void 0,(function*(){yield this.videoStream.refreshStream(),this.swapCameraEnabled=!0}))))}swapCameraFacing(e){if(this.swapCameraEnabled){this.swapCameraEnabled=!1;const t=!this.state.facingModeBack,n=t?"environment":"user";this.props.videoConstraints.facingMode=!0===e?{exact:n}:{ideal:n},this.setState({facingModeBack:t,mirrored:!t},(()=>h(this,void 0,void 0,(function*(){yield this.videoStream.refreshStream(),this.swapCameraEnabled=!0}))))}}switchCamera(e,t){return h(this,void 0,void 0,(function*(){this.swapCameraEnabled&&(this.swapCameraEnabled=!1,this.props.videoConstraints.facingMode=void 0,this.setState({facingModeBack:void 0,mirrored:null!=t?t:this.state.mirrored,deviceId:e},(()=>h(this,void 0,void 0,(function*(){yield this.videoStream.refreshStream(),this.swapCameraEnabled=!0})))))}))}updateCameraInfo(e){this.activeCamera=r.a.getCameraInfoFromStream(e)}getActiveCameraInfo(){return this.activeCamera}setTorchState(e){if(this.activeCamera&&this.activeCamera.supportsTorchControl){return this.videoStream.getVideoTrack().applyConstraints({advanced:[{torch:e}]})}return Promise.reject("Torch is not supported for current camera.")}}},function(e,t,n){"use strict";var i=n(136);t.a=function(e,t){return t?Object(i.a)(e,t,{clone:!1}):e}},function(e,t,n){"use strict";var i=n(159);t.a=i.a},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(32),o=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class r{static get INSTANCE(){return r._INSTANCE||(r._INSTANCE=new r),r._INSTANCE}constructor(){this.listOfCameras=[],this.strategy="FAST_DEFERRED"}initialize(e){if(e&&(this.strategy=e),"SLOW"===e||"FAST"===e){const t=e;this.load(t)}}load(e){return o(this,void 0,void 0,(function*(){if(!e)if("SLOW_DEFERRED"===this.strategy||"SLOW"===this.strategy)e="SLOW";else if("FAST_DEFERRED"===this.strategy||"FAST"===this.strategy)e="FAST";else if("NONE"===this.strategy)return this.listOfCameras;let t;if("SLOW"===e)t=this.loadSlow();else{if("FAST"!==e)throw new Error(`Unknown mode ${e}`);t=this.loadFast()}try{return this.listOfCameras=yield t,this.listOfCameras}catch(e){throw this.loadSlowResult=void 0,i.a.createFromDOMException(e)}}))}loadSlow(){return this.loadSlowResult=this.loadSlowResult||(()=>o(this,void 0,void 0,(function*(){yield this.assertPermissionsAreOk();const e=[];for(const t of yield this.getVideoDevices()){let n;try{n=yield this.getUserMedia({video:{deviceId:t.deviceId}}),e.push(r.getCameraInfoFromStream(n))}finally{this.stopStream(n),yield new Promise((e=>setTimeout(e,0)))}}return e})))(),this.loadSlowResult}loadFast(){return this.loadFastResult=this.loadFastResult||(()=>o(this,void 0,void 0,(function*(){yield this.assertPermissionsAreOk();const e=[];for(const t of yield this.getVideoDevices()){const n=r.guessparseCameraLabelFacingMode(t.label),i=r.guessparseCameraLabelMaxNumPixels(t.label);e.push({maxNumPixels:i,facingMode:n,supportsTorchControl:void 0,deviceId:t.deviceId,label:t.label})}return e})))(),this.loadFastResult}getMainCamera(e){var t,n,i,o,r,a;return null!==(a=null===(r=null===(o=null===(i=null===(n=null===(t=this.listOfCameras)||void 0===t?void 0:t.filter((t=>t.facingMode===e)))||void 0===n?void 0:n.map(((e,t)=>({camera:e,index:t}))))||void 0===i?void 0:i.sort(((e,t)=>{var n;return-(+e.camera.supportsTorchControl||0)-(+t.camera.supportsTorchControl||0)||-((e.camera.maxNumPixels||0)-(t.camera.maxNumPixels||0))||(null===(n=e.camera.label)||void 0===n?void 0:n.localeCompare(t.camera.label))||e.index-t.index})))||void 0===o?void 0:o[0])||void 0===r?void 0:r.camera)&&void 0!==a?a:null}getVideoDevices(){return o(this,void 0,void 0,(function*(){let e=yield navigator.mediaDevices.enumerateDevices();if(e=e.filter((e=>"videoinput"===e.kind)),e.some((e=>""===e.label))){let t;try{t=yield this.getUserMedia({video:{facingMode:{ideal:"environment"}},audio:!1}),e=yield navigator.mediaDevices.enumerateDevices(),e=e.filter((e=>"videoinput"===e.kind))}finally{this.stopStream(t)}}return e}))}stopStream(e){null==e||e.getTracks().forEach((e=>e.stop()))}static guessparseCameraLabelFacingMode(e){return function(e){const t=["rear","back","rück","arrière","trasera","trás","traseira","posteriore","后面","後面","背面","后置","後置","背置","задней","الخلفية","후","arka","achterzijde","หลัง","baksidan","bagside","sau","bak","tylny","takakamera","belakang","אחורית","πίσω","spate","hátsó","zadní","darrere","zadná","задня","stražnja","belakang","बैक"];for(const n of t)if(e.toLowerCase().includes(n.toLowerCase()))return!0;return!1}(e)?"back":"front"}static guessparseCameraLabelMaxNumPixels(e){const t=RegExp(/\b([0-9]+)mp?\b/).exec(e.toLowerCase()),n=t?1e6*parseInt(t[1],10):NaN;return Number.isNaN(n)?void 0:n}assertPermissionsAreOk(){return o(this,void 0,void 0,(function*(){if(i.a.hasCheckedPermission()||(yield i.a.tryCheckPermission()),i.a.hasDeniedPermission())throw i.a.permissionDenied();if(!navigator.mediaDevices)throw i.a.unknown()}))}static getCameraInfoFromStream(e){var t;return null===(t=e.getVideoTracks().map((e=>{var t,n,i,o,r,a;const s=null===(t=e.getCapabilities)||void 0===t?void 0:t.call(e),c=null===(n=e.getSettings)||void 0===n?void 0:n.call(e),l=e.label;let u=function(e){if("user"===(null==e?void 0:e.toLowerCase()))return"front";if("environment"===(null==e?void 0:e.toLowerCase()))return"back";return"unknown"}(null!==(o=null===(i=null==s?void 0:s.facingMode)||void 0===i?void 0:i[0])&&void 0!==o?o:c.facingMode);"unknown"===u&&(u=this.guessparseCameraLabelFacingMode(l));let d=function(e){var t,n;let i=(null===(t=null==e?void 0:e.width)||void 0===t?void 0:t.max)*(null===(n=null==e?void 0:e.height)||void 0===n?void 0:n.max);if(!i||Number.isNaN(i))return;return i}(s);Number.isNaN(d)&&(d=this.guessparseCameraLabelMaxNumPixels(l));return{facingMode:u,maxNumPixels:d,supportsTorchControl:null!==(a=null!==(r=null==s?void 0:s.torch)&&void 0!==r?r:"torch"in c)&&void 0!==a&&a,label:l,deviceId:c.deviceId}})).sort(((e,t)=>t.maxNumPixels-e.maxNumPixels)))||void 0===t?void 0:t[0]}getUserMedia(e){return o(this,void 0,void 0,(function*(){try{return yield navigator.mediaDevices.getUserMedia(e)}catch(e){throw i.a.mediaDeviceNotFound()}}))}}},function(e,t,n){var i;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var i=arguments[t];if(i){var r=typeof i;if("string"===r||"number"===r)e.push(i);else if(Array.isArray(i)){if(i.length){var a=o.apply(null,i);a&&e.push(a)}}else if("object"===r)if(i.toString===Object.prototype.toString)for(var s in i)n.call(i,s)&&i[s]&&e.push(s);else e.push(i.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(i=function(){return o}.apply(t,[]))||(e.exports=i)}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return G})),n.d(t,"c",(function(){return ee})),n.d(t,"d",(function(){return ne})),n.d(t,"e",(function(){return te})),n.d(t,"f",(function(){return K})),n.d(t,"g",(function(){return J}));var i="-ms-",o="-moz-",r="-webkit-",a="comm",s="rule",c="decl",l="@keyframes",u=Math.abs,d=String.fromCharCode,m=Object.assign;function p(e){return e.trim()}function h(e,t){return(e=t.exec(e))?e[0]:e}function f(e,t,n){return e.replace(t,n)}function g(e,t,n){return e.indexOf(t,n)}function v(e,t){return 0|e.charCodeAt(t)}function b(e,t,n){return e.slice(t,n)}function y(e){return e.length}function C(e){return e.length}function A(e,t){return t.push(e),e}function S(e,t){return e.map(t).join("")}function w(e,t){return e.filter((function(e){return!h(e,t)}))}var x=1,E=1,O=0,D=0,T=0,B="";function k(e,t,n,i,o,r,a,s){return{value:e,root:t,parent:n,type:i,props:o,children:r,line:x,column:E,length:a,return:"",siblings:s}}function I(e,t){return m(k("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function P(e){for(;e.root;)e=I(e.root,{children:[e]});A(e,e.siblings)}function L(){return T=D<O?v(B,D++):0,E++,10===T&&(E=1,x++),T}function R(){return v(B,D)}function _(){return D}function j(e,t){return b(B,e,t)}function M(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function F(e){return x=E=1,O=y(B=e),D=0,[]}function N(e){return B="",e}function V(e){return p(j(D-1,H(91===e?e+2:40===e?e+1:e)))}function W(e){for(;(T=R())&&T<33;)L();return M(e)>2||M(T)>3?"":" "}function z(e,t){for(;--t&&L()&&!(T<48||T>102||T>57&&T<65||T>70&&T<97););return j(e,_()+(t<6&&32==R()&&32==L()))}function H(e){for(;L();)switch(T){case e:return D;case 34:case 39:34!==e&&39!==e&&H(T);break;case 40:41===e&&H(e);break;case 92:L()}return D}function U(e,t){for(;L()&&e+T!==57&&(e+T!==84||47!==R()););return"/*"+j(t,D-1)+"*"+d(47===e?e:L())}function Z(e){for(;!M(R());)L();return j(e,D)}function G(e){return N($("",null,null,null,[""],e=F(e),0,[0],e))}function $(e,t,n,i,o,r,a,s,c){for(var l=0,m=0,p=a,h=0,b=0,C=0,S=1,w=1,O=1,k=0,I="",P=o,j=r,M=i,F=I;w;)switch(C=k,k=L()){case 40:if(108!=C&&58==v(F,p-1)){-1!=g(F+=f(V(k),"&","&\f"),"&\f",u(l?s[l-1]:0))&&(O=-1);break}case 34:case 39:case 91:F+=V(k);break;case 9:case 10:case 13:case 32:F+=W(C);break;case 92:F+=z(_()-1,7);continue;case 47:switch(R()){case 42:case 47:A(Q(U(L(),_()),t,n,c),c);break;default:F+="/"}break;case 123*S:s[l++]=y(F)*O;case 125*S:case 59:case 0:switch(k){case 0:case 125:w=0;case 59+m:-1==O&&(F=f(F,/\f/g,"")),b>0&&y(F)-p&&A(b>32?X(F+";",i,n,p-1,c):X(f(F," ","")+";",i,n,p-2,c),c);break;case 59:F+=";";default:if(A(M=Y(F,t,n,l,m,o,s,I,P=[],j=[],p,r),r),123===k)if(0===m)$(F,t,M,M,P,r,p,s,j);else switch(99===h&&110===v(F,3)?100:h){case 100:case 108:case 109:case 115:$(e,M,M,i&&A(Y(e,M,M,0,0,o,s,I,o,P=[],p,j),j),o,j,p,s,i?P:j);break;default:$(F,M,M,M,[""],j,0,s,j)}}l=m=b=0,S=O=1,I=F="",p=a;break;case 58:p=1+y(F),b=C;default:if(S<1)if(123==k)--S;else if(125==k&&0==S++&&125==(T=D>0?v(B,--D):0,E--,10===T&&(E=1,x--),T))continue;switch(F+=d(k),k*S){case 38:O=m>0?1:(F+="\f",-1);break;case 44:s[l++]=(y(F)-1)*O,O=1;break;case 64:45===R()&&(F+=V(L())),h=R(),m=p=y(I=F+=Z(_())),k++;break;case 45:45===C&&2==y(F)&&(S=0)}}return r}function Y(e,t,n,i,o,r,a,c,l,d,m,h){for(var g=o-1,v=0===o?r:[""],y=C(v),A=0,S=0,w=0;A<i;++A)for(var x=0,E=b(e,g+1,g=u(S=a[A])),O=e;x<y;++x)(O=p(S>0?v[x]+" "+E:f(E,/&\f/g,v[x])))&&(l[w++]=O);return k(e,t,n,0===o?s:c,l,d,m,h)}function Q(e,t,n,i){return k(e,t,n,a,d(T),b(e,2,-2),0,i)}function X(e,t,n,i,o){return k(e,t,n,c,b(e,0,i),b(e,i+1,-1),i,o)}function q(e,t,n){switch(function(e,t){return 45^v(e,0)?(((t<<2^v(e,0))<<2^v(e,1))<<2^v(e,2))<<2^v(e,3):0}(e,t)){case 5103:return r+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return r+e+e;case 4789:return o+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return r+e+o+e+i+e+e;case 5936:switch(v(e,t+11)){case 114:return r+e+i+f(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return r+e+i+f(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return r+e+i+f(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return r+e+i+e+e;case 6165:return r+e+i+"flex-"+e+e;case 5187:return r+e+f(e,/(\w+).+(:[^]+)/,r+"box-$1$2"+i+"flex-$1$2")+e;case 5443:return r+e+i+"flex-item-"+f(e,/flex-|-self/g,"")+(h(e,/flex-|baseline/)?"":i+"grid-row-"+f(e,/flex-|-self/g,""))+e;case 4675:return r+e+i+"flex-line-pack"+f(e,/align-content|flex-|-self/g,"")+e;case 5548:return r+e+i+f(e,"shrink","negative")+e;case 5292:return r+e+i+f(e,"basis","preferred-size")+e;case 6060:return r+"box-"+f(e,"-grow","")+r+e+i+f(e,"grow","positive")+e;case 4554:return r+f(e,/([^-])(transform)/g,"$1"+r+"$2")+e;case 6187:return f(f(f(e,/(zoom-|grab)/,r+"$1"),/(image-set)/,r+"$1"),e,"")+e;case 5495:case 3959:return f(e,/(image-set\([^]*)/,r+"$1$`$1");case 4968:return f(f(e,/(.+:)(flex-)?(.*)/,r+"box-pack:$3"+i+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+r+e+e;case 4200:if(!h(e,/flex-|baseline/))return i+"grid-column-align"+b(e,t)+e;break;case 2592:case 3360:return i+f(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,h(e.props,/grid-\w+-end/)}))?~g(e+(n=n[t].value),"span",0)?e:i+f(e,"-start","")+e+i+"grid-row-span:"+(~g(n,"span",0)?h(n,/\d+/):+h(n,/\d+/)-+h(e,/\d+/))+";":i+f(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return h(e.props,/grid-\w+-start/)}))?e:i+f(f(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return f(e,/(.+)-inline(.+)/,r+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(y(e)-1-t>6)switch(v(e,t+1)){case 109:if(45!==v(e,t+4))break;case 102:return f(e,/(.+:)(.+)-([^]+)/,"$1"+r+"$2-$3$1"+o+(108==v(e,t+3)?"$3":"$2-$3"))+e;case 115:return~g(e,"stretch",0)?q(f(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return f(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,o,r,a,s,c){return i+n+":"+o+c+(r?i+n+"-span:"+(a?s:+s-+o)+c:"")+e}));case 4949:if(121===v(e,t+6))return f(e,":",":"+r)+e;break;case 6444:switch(v(e,45===v(e,14)?18:11)){case 120:return f(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+r+(45===v(e,14)?"inline-":"")+"box$3$1"+r+"$2$3$1"+i+"$2box$3")+e;case 100:return f(e,":",":"+i)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return f(e,"scroll-","scroll-snap-")+e}return e}function K(e,t){for(var n="",i=0;i<e.length;i++)n+=t(e[i],i,e,t)||"";return n}function J(e,t,n,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case c:return e.return=e.return||e.value;case a:return"";case l:return e.return=e.value+"{"+K(e.children,i)+"}";case s:if(!y(e.value=e.props.join(",")))return""}return y(n=K(e.children,i))?e.return=e.value+"{"+n+"}":""}function ee(e){var t=C(e);return function(n,i,o,r){for(var a="",s=0;s<t;s++)a+=e[s](n,i,o,r)||"";return a}}function te(e){return function(t){t.root||(t=t.return)&&e(t)}}function ne(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case c:return void(e.return=q(e.value,e.length,n));case l:return K([I(e,{value:f(e.value,"@","@"+r)})],o);case s:if(e.length)return S(n=e.props,(function(t){switch(h(t,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":P(I(e,{props:[f(t,/:(read-\w+)/,":-moz-$1")]})),P(I(e,{props:[t]})),m(e,{props:w(n,o)});break;case"::placeholder":P(I(e,{props:[f(t,/:(plac\w+)/,":"+r+"input-$1")]})),P(I(e,{props:[f(t,/:(plac\w+)/,":-moz-$1")]})),P(I(e,{props:[f(t,/:(plac\w+)/,i+"input-$1")]})),P(I(e,{props:[t]})),m(e,{props:w(n,o)})}return""}))}}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(2),o=n(7);class r extends o.a{constructor(e={}){super(),this.title=new i.j({visible:!1,text:"Scan Item",color:"?sbColorOnPrimary"}),this.mode="SOLID",this.backgroundColor="?sbColorPrimary",this.cancelButton=new i.c({text:"Cancel",background:new i.a({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new i.d({color:"?sbColorOnPrimary"})}),void 0!==e.title&&(this.title=new i.j(e.title)),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.cancelButton&&(this.cancelButton=new i.c(e.cancelButton))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(2),o=n(7);class r extends o.a{constructor(e={}){super(),this.visible=!0,this.title=new i.j({color:"?sbColorOnPrimary"}),this.background=new i.a({strokeColor:"#00000000",fillColor:"?sbColorSurfaceLow"}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.title&&(this.title=new i.j(e.title)),void 0!==e.background&&(this.background=new i.a(e.background))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var i=n(33);function o(e,t){let n;return n=t?Object(i.c)(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Object(i.c)(e),n}const r=(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var i=n(10);function o(e,t,n){return Math.min(Math.max(e,t),n)}function r(e,t,n){return new i.a(o(e.x,-t/2,n.width-t/2),o(e.y,-t/2,n.height-t/2))}},,function(e,t,n){"use strict";n.r(t),n.d(t,"OutputModeValues",(function(){return o})),n.d(t,"BinarizationFilterPresetValues",(function(){return r})),n.d(t,"ParametricFilter",(function(){return a})),n.d(t,"ScanbotBinarizationFilter",(function(){return s})),n.d(t,"CustomBinarizationFilter",(function(){return c})),n.d(t,"ColorDocumentFilter",(function(){return l})),n.d(t,"BrightnessFilter",(function(){return u})),n.d(t,"ContrastFilter",(function(){return d})),n.d(t,"GrayscaleFilter",(function(){return m})),n.d(t,"LegacyFilter",(function(){return p})),n.d(t,"WhiteBlackPointFilter",(function(){return h}));var i=n(8);const o=["BINARY","ANTIALIASED"],r=["PRESET_1","PRESET_2","PRESET_3","PRESET_4","PRESET_5"];var a;!function(e){e.From=function(e){const t=e._type;switch(t){case"ScanbotBinarizationFilter":return new s(e);case"CustomBinarizationFilter":return new c(e);case"ColorDocumentFilter":return new l(e);case"BrightnessFilter":return new u(e);case"ContrastFilter":return new d(e);case"GrayscaleFilter":return new m(e);case"LegacyFilter":return new p(e);case"WhiteBlackPointFilter":return new h(e);default:throw`Unknown child class name: ${t}`}}}(a||(a={}));class s extends i.a{constructor(e={}){super(),this._type="ScanbotBinarizationFilter",this.outputMode="BINARY",void 0!==e.outputMode&&(this.outputMode=e.outputMode)}}class c extends i.a{constructor(e={}){super(),this._type="CustomBinarizationFilter",this.outputMode="BINARY",this.denoise=.5,this.radius=32,this.preset="PRESET_4",void 0!==e.outputMode&&(this.outputMode=e.outputMode),void 0!==e.denoise&&(this.denoise=e.denoise),void 0!==e.radius&&(this.radius=e.radius),void 0!==e.preset&&(this.preset=e.preset)}}class l extends i.a{constructor(e={}){super(),this._type="ColorDocumentFilter"}}class u extends i.a{constructor(e={}){super(),this._type="BrightnessFilter",this.brightness=0,void 0!==e.brightness&&(this.brightness=e.brightness)}}class d extends i.a{constructor(e={}){super(),this._type="ContrastFilter",this.contrast=0,void 0!==e.contrast&&(this.contrast=e.contrast)}}class m extends i.a{constructor(e={}){super(),this._type="GrayscaleFilter",this.borderWidthFraction=.06,this.blackOutliersFraction=0,this.whiteOutliersFraction=.02,void 0!==e.borderWidthFraction&&(this.borderWidthFraction=e.borderWidthFraction),void 0!==e.blackOutliersFraction&&(this.blackOutliersFraction=e.blackOutliersFraction),void 0!==e.whiteOutliersFraction&&(this.whiteOutliersFraction=e.whiteOutliersFraction)}}class p extends i.a{constructor(e={}){super(),this._type="LegacyFilter",this.filterType=0,void 0!==e.filterType&&(this.filterType=e.filterType)}}class h extends i.a{constructor(e={}){super(),this._type="WhiteBlackPointFilter",this.blackPoint=0,this.whitePoint=1,void 0!==e.blackPoint&&(this.blackPoint=e.blackPoint),void 0!==e.whitePoint&&(this.whitePoint=e.whitePoint)}}},function(e,t,n){"use strict";n.r(t),n.d(t,"BarcodeFormatConfigurationBase",(function(){return i})),n.d(t,"BarcodeFormatOneDConfigurationBase",(function(){return o})),n.d(t,"BarcodeFormatCodabarConfiguration",(function(){return a})),n.d(t,"BarcodeFormatCode11Configuration",(function(){return s})),n.d(t,"BarcodeFormatCode39Configuration",(function(){return c})),n.d(t,"BarcodeFormatCode93Configuration",(function(){return l})),n.d(t,"BarcodeFormatCode128Configuration",(function(){return u})),n.d(t,"BarcodeFormatCode2Of5Configuration",(function(){return d})),n.d(t,"BarcodeFormatDataBarConfiguration",(function(){return m})),n.d(t,"BarcodeFormatDataBarExpandedConfiguration",(function(){return p})),n.d(t,"BarcodeFormatDataBarLimitedConfiguration",(function(){return h})),n.d(t,"BarcodeFormatItfConfiguration",(function(){return f})),n.d(t,"MsiPlesseyChecksumAlgorithmValues",(function(){return g})),n.d(t,"BarcodeFormatMsiPlesseyConfiguration",(function(){return v})),n.d(t,"BarcodeFormatUpcEanConfiguration",(function(){return b})),n.d(t,"BarcodeFormatPharmaCodeConfiguration",(function(){return y})),n.d(t,"BarcodeFormatTwoDConfigurationBase",(function(){return C})),n.d(t,"BarcodeFormatAztecConfiguration",(function(){return S})),n.d(t,"BarcodeFormatQrCodeConfiguration",(function(){return w})),n.d(t,"BarcodeFormatPdf417Configuration",(function(){return x})),n.d(t,"BarcodeFormatMicroPdf417Configuration",(function(){return E})),n.d(t,"BarcodeFormatDataMatrixConfiguration",(function(){return O})),n.d(t,"BarcodeFormatMaxiCodeConfiguration",(function(){return D})),n.d(t,"BarcodeFormatFourStateConfigurationBase",(function(){return A})),n.d(t,"AustraliaPostCustomerFormatValues",(function(){return T})),n.d(t,"BarcodeFormatAustraliaPostConfiguration",(function(){return B})),n.d(t,"BarcodeFormatJapanPostConfiguration",(function(){return k})),n.d(t,"BarcodeFormatRoyalMailConfiguration",(function(){return I})),n.d(t,"BarcodeFormatRoyalTntPostConfiguration",(function(){return P})),n.d(t,"BarcodeFormatUspsIntelligentMailConfiguration",(function(){return L})),n.d(t,"BarcodeFormatPharmaCodeTwoTrackConfiguration",(function(){return R})),n.d(t,"BarcodeFormatGs1CompositeConfiguration",(function(){return _})),n.d(t,"BarcodeFormatCommonOneDConfiguration",(function(){return j})),n.d(t,"BarcodeFormatCommonTwoDConfiguration",(function(){return M})),n.d(t,"BarcodeFormatCommonFourStateConfiguration",(function(){return F})),n.d(t,"BarcodeFormatCommonConfiguration",(function(){return N}));var i,o,r=n(8);!function(e){e.From=function(e){const t=e._type;switch(t){case"BarcodeFormatCodabarConfiguration":return new a(e);case"BarcodeFormatCode11Configuration":return new s(e);case"BarcodeFormatCode39Configuration":return new c(e);case"BarcodeFormatCode93Configuration":return new l(e);case"BarcodeFormatCode128Configuration":return new u(e);case"BarcodeFormatCode2Of5Configuration":return new d(e);case"BarcodeFormatDataBarConfiguration":return new m(e);case"BarcodeFormatDataBarExpandedConfiguration":return new p(e);case"BarcodeFormatDataBarLimitedConfiguration":return new h(e);case"BarcodeFormatITFConfiguration":return new f(e);case"BarcodeFormatMSIPlesseyConfiguration":return new v(e);case"BarcodeFormatUpcEanConfiguration":return new b(e);case"BarcodeFormatPharmaCodeConfiguration":return new y(e);case"BarcodeFormatAztecConfiguration":return new S(e);case"BarcodeFormatQRCodeConfiguration":return new w(e);case"BarcodeFormatPDF417Configuration":return new x(e);case"BarcodeFormatMicroPDF417Configuration":return new E(e);case"BarcodeFormatDataMatrixConfiguration":return new O(e);case"BarcodeFormatMaxiCodeConfiguration":return new D(e);case"BarcodeFormatAustraliaPostConfiguration":return new B(e);case"BarcodeFormatJapanPostConfiguration":return new k(e);case"BarcodeFormatRoyalMailConfiguration":return new I(e);case"BarcodeFormatRoyalTNTPostConfiguration":return new P(e);case"BarcodeFormatUSPSIntelligentMailConfiguration":return new L(e);case"BarcodeFormatPharmaCodeTwoTrackConfiguration":return new R(e);case"BarcodeFormatGS1CompositeConfiguration":return new _(e);case"BarcodeFormatCommonOneDConfiguration":return new j(e);case"BarcodeFormatCommonTwoDConfiguration":return new M(e);case"BarcodeFormatCommonFourStateConfiguration":return new F(e);case"BarcodeFormatCommonConfiguration":return new N(e);default:throw`Unknown child class name: ${t}`}}}(i||(i={})),function(e){e.From=function(e){const t=e._type;switch(t){case"BarcodeFormatCodabarConfiguration":return new a(e);case"BarcodeFormatCode11Configuration":return new s(e);case"BarcodeFormatCode39Configuration":return new c(e);case"BarcodeFormatCode93Configuration":return new l(e);case"BarcodeFormatCode128Configuration":return new u(e);case"BarcodeFormatCode2Of5Configuration":return new d(e);case"BarcodeFormatDataBarConfiguration":return new m(e);case"BarcodeFormatDataBarExpandedConfiguration":return new p(e);case"BarcodeFormatDataBarLimitedConfiguration":return new h(e);case"BarcodeFormatITFConfiguration":return new f(e);case"BarcodeFormatMSIPlesseyConfiguration":return new v(e);case"BarcodeFormatUpcEanConfiguration":return new b(e);case"BarcodeFormatPharmaCodeConfiguration":return new y(e);default:throw`Unknown child class name: ${t}`}}}(o||(o={}));class a extends r.a{constructor(e={}){super(),this._type="BarcodeFormatCodabarConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumTextLength=0,this.maximumTextLength=0,this.returnStartEnd=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.returnStartEnd&&(this.returnStartEnd=e.returnStartEnd)}}class s extends r.a{constructor(e={}){super(),this._type="BarcodeFormatCode11Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.stripCheckDigits=!1,this.minimumTextLength=0,this.maximumTextLength=0,this.checksum=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.checksum&&(this.checksum=e.checksum)}}class c extends r.a{constructor(e={}){super(),this._type="BarcodeFormatCode39Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.stripCheckDigits=!1,this.minimumTextLength=0,this.maximumTextLength=0,this.code32=!1,this.code39=!0,this.pzn=!0,this.tryCode39ExtendedMode=!1,this.useCode39CheckDigit=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.code32&&(this.code32=e.code32),void 0!==e.code39&&(this.code39=e.code39),void 0!==e.pzn&&(this.pzn=e.pzn),void 0!==e.tryCode39ExtendedMode&&(this.tryCode39ExtendedMode=e.tryCode39ExtendedMode),void 0!==e.useCode39CheckDigit&&(this.useCode39CheckDigit=e.useCode39CheckDigit)}}class l extends r.a{constructor(e={}){super(),this._type="BarcodeFormatCode93Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumTextLength=0,this.maximumTextLength=0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength)}}class u extends r.a{constructor(e={}){super(),this._type="BarcodeFormatCode128Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.gs1Handling="PARSE",this.minimumTextLength=0,this.maximumTextLength=0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength)}}class d extends r.a{constructor(e={}){super(),this._type="BarcodeFormatCode2Of5Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.stripCheckDigits=!1,this.minimumTextLength=0,this.maximumTextLength=0,this.iata2of5=!0,this.code25=!1,this.industrial2of5=!0,this.useIATA2OF5Checksum=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.iata2of5&&(this.iata2of5=e.iata2of5),void 0!==e.code25&&(this.code25=e.code25),void 0!==e.industrial2of5&&(this.industrial2of5=e.industrial2of5),void 0!==e.useIATA2OF5Checksum&&(this.useIATA2OF5Checksum=e.useIATA2OF5Checksum)}}class m extends r.a{constructor(e={}){super(),this._type="BarcodeFormatDataBarConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.gs1Handling="PARSE",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling)}}class p extends r.a{constructor(e={}){super(),this._type="BarcodeFormatDataBarExpandedConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.gs1Handling="PARSE",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling)}}class h extends r.a{constructor(e={}){super(),this._type="BarcodeFormatDataBarLimitedConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.gs1Handling="PARSE",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling)}}class f extends r.a{constructor(e={}){super(),this._type="BarcodeFormatITFConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumTextLength=0,this.maximumTextLength=0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength)}}const g=["MOD_10","MOD_11_IBM","MOD_11_NCR","MOD_10_10","MOD_11_10_IBM","MOD_11_10_NCR"];class v extends r.a{constructor(e={}){super(),this._type="BarcodeFormatMSIPlesseyConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.stripCheckDigits=!1,this.minimumTextLength=0,this.maximumTextLength=0,this.checksumAlgorithms=["MOD_10"],void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.checksumAlgorithms&&(this.checksumAlgorithms=e.checksumAlgorithms.map((e=>e)))}}class b extends r.a{constructor(e={}){super(),this._type="BarcodeFormatUpcEanConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.stripCheckDigits=!1,this.ean8=!0,this.ean13=!0,this.upca=!0,this.upce=!0,this.extensions="ALLOW_ANY",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.ean8&&(this.ean8=e.ean8),void 0!==e.ean13&&(this.ean13=e.ean13),void 0!==e.upca&&(this.upca=e.upca),void 0!==e.upce&&(this.upce=e.upce),void 0!==e.extensions&&(this.extensions=e.extensions)}}class y extends r.a{constructor(e={}){super(),this._type="BarcodeFormatPharmaCodeConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumValue=16,this.allowNarrowBarsOnly=!1,this.allowWideBarsOnly=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumValue&&(this.minimumValue=e.minimumValue),void 0!==e.allowNarrowBarsOnly&&(this.allowNarrowBarsOnly=e.allowNarrowBarsOnly),void 0!==e.allowWideBarsOnly&&(this.allowWideBarsOnly=e.allowWideBarsOnly)}}var C,A;!function(e){e.From=function(e){const t=e._type;switch(t){case"BarcodeFormatAztecConfiguration":return new S(e);case"BarcodeFormatQRCodeConfiguration":return new w(e);case"BarcodeFormatPDF417Configuration":return new x(e);case"BarcodeFormatMicroPDF417Configuration":return new E(e);case"BarcodeFormatDataMatrixConfiguration":return new O(e);case"BarcodeFormatMaxiCodeConfiguration":return new D(e);default:throw`Unknown child class name: ${t}`}}}(C||(C={}));class S extends r.a{constructor(e={}){super(),this._type="BarcodeFormatAztecConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling)}}class w extends r.a{constructor(e={}){super(),this._type="BarcodeFormatQRCodeConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",this.strictMode=!0,this.qr=!0,this.microQr=!1,this.rmqr=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode),void 0!==e.qr&&(this.qr=e.qr),void 0!==e.microQr&&(this.microQr=e.microQr),void 0!==e.rmqr&&(this.rmqr=e.rmqr)}}class x extends r.a{constructor(e={}){super(),this._type="BarcodeFormatPDF417Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",this.strictMode=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode)}}class E extends r.a{constructor(e={}){super(),this._type="BarcodeFormatMicroPDF417Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",this.strictMode=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode)}}class O extends r.a{constructor(e={}){super(),this._type="BarcodeFormatDataMatrixConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling)}}class D extends r.a{constructor(e={}){super(),this._type="BarcodeFormatMaxiCodeConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone)}}!function(e){e.From=function(e){const t=e._type;switch(t){case"BarcodeFormatAustraliaPostConfiguration":return new B(e);case"BarcodeFormatJapanPostConfiguration":return new k(e);case"BarcodeFormatRoyalMailConfiguration":return new I(e);case"BarcodeFormatRoyalTNTPostConfiguration":return new P(e);case"BarcodeFormatUSPSIntelligentMailConfiguration":return new L(e);case"BarcodeFormatPharmaCodeTwoTrackConfiguration":return new R(e);default:throw`Unknown child class name: ${t}`}}}(A||(A={}));const T=["NUMERIC","ALPHA_NUMERIC"];class B extends r.a{constructor(e={}){super(),this._type="BarcodeFormatAustraliaPostConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.australiaPostCustomerFormat="ALPHA_NUMERIC",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.australiaPostCustomerFormat&&(this.australiaPostCustomerFormat=e.australiaPostCustomerFormat)}}class k extends r.a{constructor(e={}){super(),this._type="BarcodeFormatJapanPostConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone)}}class I extends r.a{constructor(e={}){super(),this._type="BarcodeFormatRoyalMailConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.stripCheckDigits=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits)}}class P extends r.a{constructor(e={}){super(),this._type="BarcodeFormatRoyalTNTPostConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone)}}class L extends r.a{constructor(e={}){super(),this._type="BarcodeFormatUSPSIntelligentMailConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone)}}class R extends r.a{constructor(e={}){super(),this._type="BarcodeFormatPharmaCodeTwoTrackConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimumValue=364,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimumValue&&(this.minimumValue=e.minimumValue)}}class _ extends r.a{constructor(e={}){super(),this._type="BarcodeFormatGS1CompositeConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.gs1Handling="PARSE",this.strictMode=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode)}}class j extends r.a{constructor(e={}){super(),this._type="BarcodeFormatCommonOneDConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.stripCheckDigits=!1,this.minimumTextLength=0,this.maximumTextLength=0,this.gs1Handling="PARSE",this.strictMode=!0,this.formats=["CODABAR","CODE_11","CODE_25","CODE_32","CODE_39","CODE_93","CODE_128","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_8","EAN_13","IATA_2_OF_5","INDUSTRIAL_2_OF_5","ITF","MSI_PLESSEY","PHARMA_CODE","PZN","UPC_A","UPC_E"],void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode),void 0!==e.formats&&(this.formats=e.formats.map((e=>e)))}}class M extends r.a{constructor(e={}){super(),this._type="BarcodeFormatCommonTwoDConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",this.strictMode=!0,this.formats=["AZTEC","DATA_MATRIX","MAXI_CODE","MICRO_QR_CODE","MICRO_PDF_417","PDF_417","QR_CODE","RMQR_CODE"],void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode),void 0!==e.formats&&(this.formats=e.formats.map((e=>e)))}}class F extends r.a{constructor(e={}){super(),this._type="BarcodeFormatCommonFourStateConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.formats=["AUSTRALIA_POST","JAPAN_POST","ROYAL_MAIL","ROYAL_TNT_POST","USPS_INTELLIGENT_MAIL"],void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.formats&&(this.formats=e.formats.map((e=>e)))}}class N extends r.a{constructor(e={}){super(),this._type="BarcodeFormatCommonConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.stripCheckDigits=!1,this.minimumTextLength=0,this.maximumTextLength=0,this.gs1Handling="PARSE",this.strictMode=!0,this.formats=["AZTEC","CODABAR","CODE_39","CODE_93","CODE_128","DATA_MATRIX","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_13","EAN_8","ITF","MICRO_QR_CODE","PDF_417","QR_CODE","UPC_A","UPC_E"],void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode),void 0!==e.formats&&(this.formats=e.formats.map((e=>e)))}}},function(e,t,n){"use strict";t.a=function(e,t=166){let n;function i(...i){clearTimeout(n),n=setTimeout((()=>{e.apply(this,i)}),t)}return i.clear=()=>{clearTimeout(n)},i}},function(e,t,n){"use strict";var i=n(133);const o=Object(i.a)();t.a=o},function(e,t,n){"use strict";var i=n(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(27)),r=n(6);t.default=(0,o.default)((0,r.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},function(e,t,n){"use strict";var i=n(18),o=n(25),r=n(51);var a=function(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,i)=>t[i]?Object(r.a)(n,t[i](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n},s=n(35);function c(e){return"number"!=typeof e?e:`${e}px solid`}function l(e,t){return Object(o.a)({prop:e,themeKey:"borders",transform:t})}const u=l("border",c),d=l("borderTop",c),m=l("borderRight",c),p=l("borderBottom",c),h=l("borderLeft",c),f=l("borderColor"),g=l("borderTopColor"),v=l("borderRightColor"),b=l("borderBottomColor"),y=l("borderLeftColor"),C=l("outline",c),A=l("outlineColor"),S=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Object(i.b)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:Object(i.c)(t,e)});return Object(s.b)(e,e.borderRadius,n)}return null};S.propTypes={},S.filterProps=["borderRadius"];a(u,d,m,p,h,f,g,v,b,y,S,C,A);const w=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Object(i.b)(e.theme,"spacing",8,"gap"),n=e=>({gap:Object(i.c)(t,e)});return Object(s.b)(e,e.gap,n)}return null};w.propTypes={},w.filterProps=["gap"];const x=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Object(i.b)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:Object(i.c)(t,e)});return Object(s.b)(e,e.columnGap,n)}return null};x.propTypes={},x.filterProps=["columnGap"];const E=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Object(i.b)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:Object(i.c)(t,e)});return Object(s.b)(e,e.rowGap,n)}return null};E.propTypes={},E.filterProps=["rowGap"];a(w,x,E,Object(o.a)({prop:"gridColumn"}),Object(o.a)({prop:"gridRow"}),Object(o.a)({prop:"gridAutoFlow"}),Object(o.a)({prop:"gridAutoColumns"}),Object(o.a)({prop:"gridAutoRows"}),Object(o.a)({prop:"gridTemplateColumns"}),Object(o.a)({prop:"gridTemplateRows"}),Object(o.a)({prop:"gridTemplateAreas"}),Object(o.a)({prop:"gridArea"}));function O(e,t){return"grey"===t?t:e}a(Object(o.a)({prop:"color",themeKey:"palette",transform:O}),Object(o.a)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:O}),Object(o.a)({prop:"backgroundColor",themeKey:"palette",transform:O}));function D(e){return e<=1&&0!==e?100*e+"%":e}const T=Object(o.a)({prop:"width",transform:D}),B=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,i;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||s.e[t];return o?"px"!==(null==(i=e.theme)||null==(i=i.breakpoints)?void 0:i.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:D(t)}};return Object(s.b)(e,e.maxWidth,t)}return null};B.filterProps=["maxWidth"];const k=Object(o.a)({prop:"minWidth",transform:D}),I=Object(o.a)({prop:"height",transform:D}),P=Object(o.a)({prop:"maxHeight",transform:D}),L=Object(o.a)({prop:"minHeight",transform:D});Object(o.a)({prop:"size",cssProperty:"width",transform:D}),Object(o.a)({prop:"size",cssProperty:"height",transform:D});a(T,B,k,I,P,L,Object(o.a)({prop:"boxSizing"}));const R={border:{themeKey:"borders",transform:c},borderTop:{themeKey:"borders",transform:c},borderRight:{themeKey:"borders",transform:c},borderBottom:{themeKey:"borders",transform:c},borderLeft:{themeKey:"borders",transform:c},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:c},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:S},color:{themeKey:"palette",transform:O},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:O},backgroundColor:{themeKey:"palette",transform:O},p:{style:i.e},pt:{style:i.e},pr:{style:i.e},pb:{style:i.e},pl:{style:i.e},px:{style:i.e},py:{style:i.e},padding:{style:i.e},paddingTop:{style:i.e},paddingRight:{style:i.e},paddingBottom:{style:i.e},paddingLeft:{style:i.e},paddingX:{style:i.e},paddingY:{style:i.e},paddingInline:{style:i.e},paddingInlineStart:{style:i.e},paddingInlineEnd:{style:i.e},paddingBlock:{style:i.e},paddingBlockStart:{style:i.e},paddingBlockEnd:{style:i.e},m:{style:i.d},mt:{style:i.d},mr:{style:i.d},mb:{style:i.d},ml:{style:i.d},mx:{style:i.d},my:{style:i.d},margin:{style:i.d},marginTop:{style:i.d},marginRight:{style:i.d},marginBottom:{style:i.d},marginLeft:{style:i.d},marginX:{style:i.d},marginY:{style:i.d},marginInline:{style:i.d},marginInlineStart:{style:i.d},marginInlineEnd:{style:i.d},marginBlock:{style:i.d},marginBlockStart:{style:i.d},marginBlockEnd:{style:i.d},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:w},rowGap:{style:E},columnGap:{style:x},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:D},maxWidth:{style:B},minWidth:{transform:D},height:{transform:D},maxHeight:{transform:D},minHeight:{transform:D},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};t.a=R},function(e,t,n){"use strict";(function(e){function i(e,t=!1){const n=[];if(t)return n;return function e(t){if(t)if(t.constructor===ImageData)n.push(t.data.buffer);else if(t.constructor===ArrayBuffer)n.push(t);else if(ArrayBuffer.isView(t))n.push(t.buffer);else if(Array.isArray(t))for(let n=0;n<t.length;++n)e(t[n]);else if(t.constructor===Object)for(const n in t)t.hasOwnProperty(n)&&e(t[n])}(e),n}function o(e){return e.startsWith("http:")||e.startsWith("https:")}function r(){if("undefined"!=typeof e&&"undefined"!=typeof e.versions&&"undefined"!=typeof e.versions.node)return!1;if(/(iPad|iPhone|iPod)/g.test(navigator.userAgent))return!1;try{return(new MessageChannel).port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11]))}catch(e){return!1}}function a(e){const{allowSimd:t=!0,allowThreads:n=!0}=e||{};let i="";if(t&&function(){try{return WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,9,1,7,0,65,0,253,15,26,11]))}catch(e){return!1}}()){i+="-simd";n&&r()&&(i+="-threads")}return i}n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return a}))}).call(this,n(104))},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));class i{constructor(){this.values=new Map}}i.INSTANCE=new i},,,function(e,t,n){"use strict";n.r(t),n.d(t,"BarcodeItem",(function(){return a})),n.d(t,"BarcodeScannerEngineModeValues",(function(){return s})),n.d(t,"BarcodeScannerConfiguration",(function(){return c})),n.d(t,"BarcodeScannerResult",(function(){return l}));var i=n(63),o=n(8),r=n(42);class a extends o.a{constructor(e={}){if(super(),this.format="NONE",this.isUpsideDown=!1,this.sourceImage=null,this.isGS1Message=!1,this.isGS1CompositePart=!1,this.dataBarStackSize=1,this.sizeScore=0,void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0!==e.format&&(this.format=e.format),void 0===e.quad)throw new Error("quad must be present in constructor argument");if(this.quad=e.quad.map((e=>({x:e.x,y:e.y}))),void 0===e.quadNormalized)throw new Error("quadNormalized must be present in constructor argument");if(this.quadNormalized=e.quadNormalized.map((e=>({x:e.x,y:e.y}))),void 0!==e.isUpsideDown&&(this.isUpsideDown=e.isUpsideDown),void 0!==e.sourceImage&&(this.sourceImage=null!=e.sourceImage?e.sourceImage:null),void 0===e.rawBytes)throw new Error("rawBytes must be present in constructor argument");if(this.rawBytes=e.rawBytes,void 0===e.upcEanExtension)throw new Error("upcEanExtension must be present in constructor argument");if(this.upcEanExtension=e.upcEanExtension,void 0!==e.isGS1Message&&(this.isGS1Message=e.isGS1Message),void 0!==e.isGS1CompositePart&&(this.isGS1CompositePart=e.isGS1CompositePart),void 0!==e.dataBarStackSize&&(this.dataBarStackSize=e.dataBarStackSize),void 0!==e.sizeScore&&(this.sizeScore=e.sizeScore),void 0===e.extractedDocument)throw new Error("extractedDocument must be present in constructor argument");this.extractedDocument=null!=e.extractedDocument?new r.GenericDocument(e.extractedDocument):null}}const s=["LEGACY","NEXT_GEN_LOW_POWER","NEXT_GEN","NEXT_GEN_LOW_POWER_AR","NEXT_GEN_AR"];class c extends o.a{constructor(e={}){super(),this.barcodeFormatConfigurations=[new i.BarcodeFormatCommonConfiguration({})],this.extractedDocumentFormats=["AAMVA","BOARDING_PASS","DE_MEDICAL_PLAN","MEDICAL_CERTIFICATE","ID_CARD_PDF_417","SEPA","SWISS_QR","VCARD","GS1","HIBC"],this.onlyAcceptDocuments=!1,this.returnBarcodeImage=!0,this.engineMode="NEXT_GEN_LOW_POWER",this.live=!0,void 0!==e.barcodeFormatConfigurations&&(this.barcodeFormatConfigurations=e.barcodeFormatConfigurations.map((e=>i.BarcodeFormatConfigurationBase.From(e)))),void 0!==e.extractedDocumentFormats&&(this.extractedDocumentFormats=e.extractedDocumentFormats.map((e=>e))),void 0!==e.onlyAcceptDocuments&&(this.onlyAcceptDocuments=e.onlyAcceptDocuments),void 0!==e.returnBarcodeImage&&(this.returnBarcodeImage=e.returnBarcodeImage),void 0!==e.engineMode&&(this.engineMode=e.engineMode),void 0!==e.live&&(this.live=e.live)}}class l extends o.a{constructor(e={}){if(super(),void 0===e.barcodes)throw new Error("barcodes must be present in constructor argument");if(this.barcodes=e.barcodes.map((e=>new a(e))),void 0===e.success)throw new Error("success must be present in constructor argument");this.success=e.success}}},function(e,t,n){"use strict";n.r(t),n.d(t,"CommonFieldTypeValues",(function(){return i}));const i=["ID","SURNAME","MAIDEN_NAME","GIVEN_NAMES","BIRTH_DATE","NATIONALITY","BIRTHPLACE","EXPIRY_DATE","EYE_COLOR","HEIGHT","ISSUE_DATE","ISSUING_AUTHORITY","ADDRESS","PSEUDONYM","MRZ","COUNTRY_CODE","GENDER","SIGNATURE","PHOTO","VALID_FROM_DATE","ROUTING_NUMBER","ACCOUNT_NUMBER","PLACE_OF_ISSUE","TITLE_TYPE","REMARKS","NAME","CARD_ACCESS_NUMBER"]},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var i=n(3),o=n(0),r=n(9),a=n(11),s=n(190),c=n(13),l=n(17),u=n(12),d=n(189),m=n(152);function p(e){return Object(m.a)("MuiSvgIcon",e)}Object(d.a)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var h=n(6);const f=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],g=Object(u.a)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Object(c.a)(n.color)}`],t[`fontSize${Object(c.a)(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,i,o,r,a,s,c,l,u,d,m,p,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(i=n.create)?void 0:i.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(r=e.typography)||null==(a=r.pxToRem)?void 0:a.call(r,20))||"1.25rem",medium:(null==(s=e.typography)||null==(c=s.pxToRem)?void 0:c.call(s,24))||"1.5rem",large:(null==(l=e.typography)||null==(u=l.pxToRem)?void 0:u.call(l,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(m=(e.vars||e).palette)||null==(m=m[t.color])?void 0:m.main)?d:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),v=o.forwardRef((function(e,t){const n=Object(l.a)({props:e,name:"MuiSvgIcon"}),{children:u,className:d,color:m="inherit",component:v="svg",fontSize:b="medium",htmlColor:y,inheritViewBox:C=!1,titleAccess:A,viewBox:S="0 0 24 24"}=n,w=Object(r.a)(n,f),x=o.isValidElement(u)&&"svg"===u.type,E=Object(i.a)({},n,{color:m,component:v,fontSize:b,instanceFontSize:e.fontSize,inheritViewBox:C,viewBox:S,hasSvgAsChild:x}),O={};C||(O.viewBox=S);const D=(e=>{const{color:t,fontSize:n,classes:i}=e,o={root:["root","inherit"!==t&&`color${Object(c.a)(t)}`,`fontSize${Object(c.a)(n)}`]};return Object(s.a)(o,p,i)})(E);return Object(h.jsxs)(g,Object(i.a)({as:v,className:Object(a.a)(D.root,d),focusable:"false",color:y,"aria-hidden":!A||void 0,role:A?"img":void 0,ref:t},O,w,x&&u.props,{ownerState:E,children:[x?u.props.children:u,A?Object(h.jsx)("title",{children:A}):null]}))}));v.muiName="SvgIcon";var b=v;function y(e,t){function n(n,o){return Object(h.jsx)(b,Object(i.a)({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return n.muiName=b.muiName,o.memo(o.forwardRef(n))}},function(e,t,n){"use strict";var i=n(0),o=n(134);let r=!0,a=!1;const s=new o.a,c={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function l(e){e.metaKey||e.altKey||e.ctrlKey||(r=!0)}function u(){r=!1}function d(){"hidden"===this.visibilityState&&a&&(r=!0)}function m(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return r||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!c[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}t.a=function(){const e=i.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",l,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",d,!0))}),[]),t=i.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!m(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,s.start(100,(()=>{a=!1})),t.current=!1,!0)},ref:e}}},function(e,t,n){"use strict";var i=n(0);t.a=function(e,t){var n,o;return i.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(o=e.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));class i{constructor(){this.container=void 0,this.containerId=void 0}static mapValues(e,t,n){Object.keys(e).forEach((i=>{(null==n?void 0:n.includes(i))||(t[i]=e[i])}))}static mapValuesDeep(e,t){const n=e=>e&&"object"==typeof e&&!Array.isArray(e);Object.keys(e).forEach((o=>{o in t&&n(e[o])&&n(t[o])?i.mapValuesDeep(e[o],t[o]):t[o]=e[o]}))}static _fromJson(e,t){return this.mapValuesDeep(t,e),e}}},function(e,t,n){"use strict";var i=n(62);n.d(t,"a",(function(){return i.ParametricFilter}))},function(e,t,n){"use strict";var i=n(160),o=n(82);const r=Object(i.a)();t.a=function(e=r){return Object(o.a)(e)}},function(e,t,n){"use strict";var i=n(0),o=n(33);t.a=function(e=null){const t=i.useContext(o.a);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},function(e,t,n){"use strict";var i=n(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(27)),r=n(6);t.default=(0,o.default)((0,r.jsx)("path",{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"}),"ArrowBackIosNew")},function(e,t,n){"use strict";var i,o=function(){return"undefined"==typeof i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var e={};return function(t){if("undefined"==typeof e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},i=[],o=0;o<e.length;o++){var r=e[o],c=t.base?r[0]+t.base:r[0],l=n[c]||0,u="".concat(c," ").concat(l);n[c]=l+1;var d=s(u),m={css:r[1],media:r[2],sourceMap:r[3]};-1!==d?(a[d].references++,a[d].updater(m)):a.push({identifier:u,updater:g(m,t),references:1}),i.push(u)}return i}function l(e){var t=document.createElement("style"),i=e.attributes||{};if("undefined"==typeof i.nonce){var o=n.nc;o&&(i.nonce=o)}if(Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var a=r(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var u,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function m(e,t,n,i){var o=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=d(t,o);else{var r=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(r,a[t]):e.appendChild(r)}}function p(e,t,n){var i=n.css,o=n.media,r=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var h=null,f=0;function g(e,t){var n,i,o;if(t.singleton){var r=f++;n=h||(h=l(t)),i=m.bind(null,n,r,!1),o=m.bind(null,n,r,!0)}else n=l(t),i=p.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<n.length;i++){var o=s(n[i]);a[o].references--}for(var r=c(e,t),l=0;l<n.length;l++){var u=s(n[l]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=r}}}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(i)for(var r=0;r<this.length;r++){var a=this[r][0];null!=a&&(o[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);i&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},function(e,t,n){"use strict";var i=n(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(27)),r=n(6);t.default=(0,o.default)((0,r.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete")},function(e,t,n){"use strict";var i=n(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(27)),r=n(6);t.default=(0,o.default)((0,r.jsx)("path",{d:"M8.9 6.07 7.48 4.66 9 3h6l1.83 2H20c1.1 0 2 .9 2 2v12c0 .05-.01.1-.02.16L20 17.17V7h-4.05l-1.83-2H9.88zm11.59 17.24L18.17 21H4c-1.1 0-2-.9-2-2V7c0-.59.27-1.12.68-1.49l-2-2L2.1 2.1l19.8 19.8zM9.19 12.02c-.11.31-.19.63-.19.98 0 1.66 1.34 3 3 3 .35 0 .67-.08.98-.19zM16.17 19l-1.68-1.68c-.73.43-1.58.68-2.49.68-2.76 0-5-2.24-5-5 0-.91.25-1.76.68-2.49L4.17 7H4v12zm-1.36-7.02 2.07 2.07c.08-.34.12-.69.12-1.05 0-2.76-2.24-5-5-5-.36 0-.71.04-1.06.12l2.07 2.07c.84.3 1.5.96 1.8 1.79"}),"NoPhotographyOutlined")},function(e,t,n){"use strict";var i=n(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(27)),r=n(6);t.default=(0,o.default)((0,r.jsx)("path",{d:"M2 13c0 4.97 4.03 9 9 9 1.76 0 3.4-.51 4.79-1.38l-1.46-1.46c-.99.53-2.13.84-3.33.84-3.86 0-7-3.14-7-7s3.14-7 7-7h.17L9.59 7.59 11 9l4-4-4-4-1.42 1.41L11.17 4H11c-4.97 0-9 4.03-9 9m9 0 6 6 6-6-6-6zm6 3.17L13.83 13 17 9.83 20.17 13z"}),"Rotate90DegreesCwOutlined")},function(e,t,n){"use strict";var i={};n.r(i),n.d(i,"BarcodeFormatValues",(function(){return ee})),n.d(i,"BarcodeFormats",(function(){return te})),n.d(i,"Gs1HandlingValues",(function(){return ie})),n.d(i,"UpcEanExtensionBehaviorValues",(function(){return oe}));var o={};n.r(o),n.d(o,"BarcodeDocumentFormatValues",(function(){return re})),n.d(o,"BarcodeDocumentFormats",(function(){return ae}));var r={};n.r(r),n.d(r,"DocumentScannerEngineModeValues",(function(){return le})),n.d(r,"DocumentScannerParameters",(function(){return ue})),n.d(r,"DocumentScannerConfiguration",(function(){return de})),n.d(r,"DocumentDetectionStatusValues",(function(){return me})),n.d(r,"DocumentDetectionScores",(function(){return pe})),n.d(r,"DocumentDetectionResult",(function(){return he}));var a={};n.r(a),n.d(a,"CheckDocumentDetectionModeValues",(function(){return ge})),n.d(a,"CheckRecognitionStatusValues",(function(){return ve})),n.d(a,"CheckScanningResult",(function(){return be})),n.d(a,"CheckScannerConfiguration",(function(){return ye}));var s={};n.r(s),n.d(s,"DocumentQualityValues",(function(){return Ae})),n.d(s,"DocumentQualityThreshold",(function(){return Se})),n.d(s,"DocumentQualityAnalyzerConfiguration",(function(){return we})),n.d(s,"DocumentQualityAnalyzerResult",(function(){return xe}));var c={};n.r(c),n.d(c,"EuropeanHealthInsuranceCardRecognitionResult",(function(){return Ee})),n.d(c,"EuropeanHealthInsuranceCardRecognizerConfiguration",(function(){return Oe}));var l={};n.r(l),n.d(l,"DocumentDataExtractorConfigurationElement",(function(){return De})),n.d(l,"DateValidationConfiguration",(function(){return Te})),n.d(l,"EuropeanHealthInsuranceCardIssuingCountryValues",(function(){return Be})),n.d(l,"EuropeanHealthInsuranceCardConfiguration",(function(){return ke})),n.d(l,"MrzFallbackConfiguration",(function(){return Ie})),n.d(l,"DocumentDataExtractorCommonConfiguration",(function(){return Pe}));var u={};n.r(u),n.d(u,"ConfirmationMethodValues",(function(){return Le})),n.d(u,"ResultAccumulationConfiguration",(function(){return Re})),n.d(u,"AccumulatedResultsVerifierConfiguration",(function(){return _e}));var d={};n.r(d),n.d(d,"DocumentDataExtractionStatusValues",(function(){return je})),n.d(d,"DocumentDataExtractionResult",(function(){return Me})),n.d(d,"DocumentDataExtractionModeValues",(function(){return Fe})),n.d(d,"DocumentDataFrameExtractionParameters",(function(){return Ne})),n.d(d,"DocumentDataExtractorConfiguration",(function(){return Ve}));var m={};n.r(m),n.d(m,"WordBox",(function(){return We})),n.d(m,"SymbolBox",(function(){return ze})),n.d(m,"TextPatternScannerResult",(function(){return He})),n.d(m,"ContentValidator",(function(){return Ue})),n.d(m,"DefaultContentValidator",(function(){return Ze})),n.d(m,"PatternContentValidator",(function(){return Ge})),n.d(m,"TextPatternScannerConfiguration",(function(){return $e}));var p={};n.r(p),n.d(p,"LicensePlateScannerStrategyValues",(function(){return Ye})),n.d(p,"LicensePlateScannerConfiguration",(function(){return Qe})),n.d(p,"LicensePlateScannerResult",(function(){return Xe}));var h={};n.r(h),n.d(h,"MedicalCertificateScanningParameters",(function(){return qe})),n.d(h,"MedicalCertificateCheckBoxTypeValues",(function(){return Ke})),n.d(h,"MedicalCertificateCheckBox",(function(){return Je})),n.d(h,"MedicalCertificateDateRecordTypeValues",(function(){return et})),n.d(h,"MedicalCertificateDateRecord",(function(){return tt})),n.d(h,"MedicalCertificatePatientInfoFieldTypeValues",(function(){return nt})),n.d(h,"MedicalCertificatePatientInfoField",(function(){return it})),n.d(h,"MedicalCertificatePatientInfoBox",(function(){return ot})),n.d(h,"MedicalCertificateFormTypeValues",(function(){return rt})),n.d(h,"MedicalCertificateScanningResult",(function(){return at}));var f={};n.r(f),n.d(f,"MrzDocumentTypeValues",(function(){return st})),n.d(f,"MrzScannerResult",(function(){return ct})),n.d(f,"MrzIncompleteResultHandlingValues",(function(){return lt})),n.d(f,"MrzScannerConfiguration",(function(){return ut}));var g={};n.r(g),n.d(g,"OcrElement",(function(){return dt})),n.d(g,"Glyph",(function(){return mt})),n.d(g,"Word",(function(){return pt})),n.d(g,"Line",(function(){return ht})),n.d(g,"Block",(function(){return ft})),n.d(g,"Page",(function(){return gt}));var v={};n.r(v),n.d(v,"PdfAttributes",(function(){return bt})),n.d(v,"PageSizeValues",(function(){return yt})),n.d(v,"PageDirectionValues",(function(){return Ct})),n.d(v,"PageFitValues",(function(){return At})),n.d(v,"ResamplingMethodValues",(function(){return St})),n.d(v,"PdfConfiguration",(function(){return wt}));var b={};n.r(b),n.d(b,"CompressionModeValues",(function(){return xt})),n.d(b,"BinarizationValues",(function(){return Et})),n.d(b,"UserFieldValue",(function(){return Ot})),n.d(b,"UserFieldDoubleValue",(function(){return Tt})),n.d(b,"UserFieldStringValue",(function(){return Bt})),n.d(b,"UserFieldIntValue",(function(){return kt})),n.d(b,"UserField",(function(){return It})),n.d(b,"TiffWriterParameters",(function(){return Pt}));var y={};n.r(y),n.d(y,"ImageRotationValues",(function(){return Lt}));var C={};n.r(C),n.d(C,"VinBarcodeExtractionStatusValues",(function(){return Rt})),n.d(C,"VinBarcodeResult",(function(){return _t})),n.d(C,"VinScannerResult",(function(){return jt})),n.d(C,"VinScannerConfiguration",(function(){return Mt}));var A={};n.r(A),n.d(A,"MRZDocumentType",(function(){return Ft})),n.d(A,"DeIdCardFrontDocumentType",(function(){return Nt})),n.d(A,"DeIdCardBackDocumentType",(function(){return Vt})),n.d(A,"DePassportDocumentType",(function(){return Wt})),n.d(A,"DeDriverLicenseFrontDocumentType",(function(){return zt})),n.d(A,"DeDriverLicenseBackDocumentType",(function(){return Ht})),n.d(A,"DeDriverLicenseBackCategoryDocumentType",(function(){return Ut})),n.d(A,"DeDriverLicenseBackCategoriesDocumentType",(function(){return Zt})),n.d(A,"DeDriverLicenseBackCategoriesADocumentType",(function(){return Gt})),n.d(A,"DeDriverLicenseBackCategoriesA1DocumentType",(function(){return $t})),n.d(A,"DeDriverLicenseBackCategoriesA2DocumentType",(function(){return Yt})),n.d(A,"DeDriverLicenseBackCategoriesAMDocumentType",(function(){return Qt})),n.d(A,"DeDriverLicenseBackCategoriesBDocumentType",(function(){return Xt})),n.d(A,"DeDriverLicenseBackCategoriesB1DocumentType",(function(){return qt})),n.d(A,"DeDriverLicenseBackCategoriesBEDocumentType",(function(){return Kt})),n.d(A,"DeDriverLicenseBackCategoriesCDocumentType",(function(){return Jt})),n.d(A,"DeDriverLicenseBackCategoriesC1DocumentType",(function(){return en})),n.d(A,"DeDriverLicenseBackCategoriesC1EDocumentType",(function(){return tn})),n.d(A,"DeDriverLicenseBackCategoriesCEDocumentType",(function(){return nn})),n.d(A,"DeDriverLicenseBackCategoriesDDocumentType",(function(){return on})),n.d(A,"DeDriverLicenseBackCategoriesD1DocumentType",(function(){return rn})),n.d(A,"DeDriverLicenseBackCategoriesD1EDocumentType",(function(){return an})),n.d(A,"DeDriverLicenseBackCategoriesDEDocumentType",(function(){return sn})),n.d(A,"DeDriverLicenseBackCategoriesLDocumentType",(function(){return cn})),n.d(A,"DeDriverLicenseBackCategoriesTDocumentType",(function(){return ln})),n.d(A,"DeResidencePermitFrontDocumentType",(function(){return un})),n.d(A,"DeResidencePermitBackDocumentType",(function(){return dn})),n.d(A,"EuropeanHealthInsuranceCardDocumentType",(function(){return mn})),n.d(A,"DeHealthInsuranceCardFrontDocumentType",(function(){return pn})),n.d(A,"MRZ",(function(){return hn})),n.d(A,"DeIdCardFront",(function(){return fn})),n.d(A,"DeIdCardBack",(function(){return gn})),n.d(A,"DePassport",(function(){return vn})),n.d(A,"DeDriverLicenseFront",(function(){return bn})),n.d(A,"DeDriverLicenseBack",(function(){return yn})),n.d(A,"DeResidencePermitFront",(function(){return Cn})),n.d(A,"DeResidencePermitBack",(function(){return An})),n.d(A,"EuropeanHealthInsuranceCard",(function(){return Sn})),n.d(A,"DeHealthInsuranceCardFront",(function(){return wn}));var S={};n.r(S),n.d(S,"BoardingPassDocumentType",(function(){return xn})),n.d(S,"BoardingPassLegDocumentType",(function(){return En})),n.d(S,"SwissQRDocumentType",(function(){return On})),n.d(S,"DEMedicalPlanDocumentType",(function(){return Dn})),n.d(S,"DEMedicalPlanPatientDocumentType",(function(){return Tn})),n.d(S,"DEMedicalPlanDoctorDocumentType",(function(){return Bn})),n.d(S,"DEMedicalPlanSubheadingDocumentType",(function(){return kn})),n.d(S,"DEMedicalPlanSubheadingMedicineDocumentType",(function(){return In})),n.d(S,"DEMedicalPlanSubheadingMedicineSubstanceDocumentType",(function(){return Pn})),n.d(S,"DEMedicalPlanSubheadingPrescriptionDocumentType",(function(){return Ln})),n.d(S,"IDCardPDF417DocumentType",(function(){return Rn})),n.d(S,"GS1DocumentType",(function(){return _n})),n.d(S,"GS1ElementDocumentType",(function(){return jn})),n.d(S,"GS1ElementValidationErrorDocumentType",(function(){return Mn})),n.d(S,"SEPADocumentType",(function(){return Fn})),n.d(S,"MedicalCertificateDocumentType",(function(){return Nn})),n.d(S,"VCardDocumentType",(function(){return Vn})),n.d(S,"VCardEntryDocumentType",(function(){return Wn})),n.d(S,"VCardVersionDocumentType",(function(){return zn})),n.d(S,"VCardSourceDocumentType",(function(){return Hn})),n.d(S,"VCardKindDocumentType",(function(){return Un})),n.d(S,"VCardXMLDocumentType",(function(){return Zn})),n.d(S,"VCardNameDocumentType",(function(){return Gn})),n.d(S,"VCardFirstNameDocumentType",(function(){return $n})),n.d(S,"VCardNicknameDocumentType",(function(){return Yn})),n.d(S,"VCardBirthdayDocumentType",(function(){return Qn})),n.d(S,"VCardAnniversaryDocumentType",(function(){return Xn})),n.d(S,"VCardGenderDocumentType",(function(){return qn})),n.d(S,"VCardDeliveryAddressDocumentType",(function(){return Kn})),n.d(S,"VCardPhotoDocumentType",(function(){return Jn})),n.d(S,"VCardTelephoneNumberDocumentType",(function(){return ei})),n.d(S,"VCardEmailDocumentType",(function(){return ti})),n.d(S,"VCardIMPPDocumentType",(function(){return ni})),n.d(S,"VCardLanguagesDocumentType",(function(){return ii})),n.d(S,"VCardTimeZoneDocumentType",(function(){return oi})),n.d(S,"VCardGeoLocationDocumentType",(function(){return ri})),n.d(S,"VCardTitleDocumentType",(function(){return ai})),n.d(S,"VCardRoleDocumentType",(function(){return si})),n.d(S,"VCardLogoDocumentType",(function(){return ci})),n.d(S,"VCardOrganisationDocumentType",(function(){return li})),n.d(S,"VCardMemberDocumentType",(function(){return ui})),n.d(S,"VCardRelatedDocumentType",(function(){return di})),n.d(S,"VCardCategoriesDocumentType",(function(){return mi})),n.d(S,"VCardNoteDocumentType",(function(){return pi})),n.d(S,"VCardProductIdDocumentType",(function(){return hi})),n.d(S,"VCardRevisionDocumentType",(function(){return fi})),n.d(S,"VCardSoundDocumentType",(function(){return gi})),n.d(S,"VCardUIDDocumentType",(function(){return vi})),n.d(S,"VCardClientPIDMapDocumentType",(function(){return bi})),n.d(S,"VCardURLDocumentType",(function(){return yi})),n.d(S,"VCardPublicKeyDocumentType",(function(){return Ci})),n.d(S,"VCardBusyTimeURLDocumentType",(function(){return Ai})),n.d(S,"VCardCalendarURIForRequestsDocumentType",(function(){return Si})),n.d(S,"VCardCalendarURIDocumentType",(function(){return wi})),n.d(S,"VCardCustomDocumentType",(function(){return xi})),n.d(S,"AAMVADocumentType",(function(){return Ei})),n.d(S,"AAMVATitleDataDocumentType",(function(){return Oi})),n.d(S,"AAMVARegistrationDataDocumentType",(function(){return Di})),n.d(S,"AAMVAMotorCarrierDataDocumentType",(function(){return Ti})),n.d(S,"AAMVARegistrantAndVehicleDataDocumentType",(function(){return Bi})),n.d(S,"AAMVAVehicleOwnerDataDocumentType",(function(){return ki})),n.d(S,"AAMVAVehicleDataDocumentType",(function(){return Ii})),n.d(S,"AAMVAVehicleSafetyInspectionDataDocumentType",(function(){return Pi})),n.d(S,"AAMVADLIDDocumentType",(function(){return Li})),n.d(S,"AAMVADriverLicenseDocumentType",(function(){return Ri})),n.d(S,"AAMVAIDCardDocumentType",(function(){return _i})),n.d(S,"AAMVAEnhancedDriverLicenseDocumentType",(function(){return ji})),n.d(S,"AAMVARawDocumentDocumentType",(function(){return Mi})),n.d(S,"HIBCDocumentType",(function(){return Fi})),n.d(S,"BoardingPass",(function(){return Ni})),n.d(S,"SwissQR",(function(){return Vi})),n.d(S,"DEMedicalPlan",(function(){return Wi})),n.d(S,"IDCardPDF417",(function(){return zi})),n.d(S,"GS1",(function(){return Hi})),n.d(S,"SEPA",(function(){return Ui})),n.d(S,"MedicalCertificate",(function(){return Zi})),n.d(S,"VCard",(function(){return Gi})),n.d(S,"AAMVA",(function(){return $i})),n.d(S,"HIBC",(function(){return Yi}));var w={};n.r(w),n.d(w,"CheckDocumentType",(function(){return Qi})),n.d(w,"USACheckDocumentType",(function(){return Xi})),n.d(w,"UAECheckDocumentType",(function(){return qi})),n.d(w,"FRACheckDocumentType",(function(){return Ki})),n.d(w,"ISRCheckDocumentType",(function(){return Ji})),n.d(w,"KWTCheckDocumentType",(function(){return eo})),n.d(w,"AUSCheckDocumentType",(function(){return to})),n.d(w,"INDCheckDocumentType",(function(){return no})),n.d(w,"CANCheckDocumentType",(function(){return io})),n.d(w,"UnknownCheckDocumentType",(function(){return oo})),n.d(w,"Check",(function(){return ro})),n.d(w,"USACheck",(function(){return ao})),n.d(w,"UAECheck",(function(){return so})),n.d(w,"FRACheck",(function(){return co})),n.d(w,"ISRCheck",(function(){return lo})),n.d(w,"KWTCheck",(function(){return uo})),n.d(w,"AUSCheck",(function(){return mo})),n.d(w,"INDCheck",(function(){return po})),n.d(w,"CANCheck",(function(){return ho})),n.d(w,"UnknownCheck",(function(){return fo}));var x={};n.r(x),n.d(x,"CreditCardDocumentType",(function(){return go})),n.d(x,"CreditCard",(function(){return vo}));var E={};n.r(E),n.d(E,"BarcodeConfigurationTypes",(function(){return q})),n.d(E,"BarcodeScannerTypes",(function(){return K})),n.d(E,"BarcodeTypes",(function(){return i})),n.d(E,"BarcodeDocumentTypes",(function(){return o})),n.d(E,"CheckScannerTypes",(function(){return a})),n.d(E,"CommonFieldType",(function(){return Ce})),n.d(E,"DocumentScannerTypes",(function(){return r})),n.d(E,"DocumentQualityAnalyzerTypes",(function(){return s})),n.d(E,"EuropeanHealthInsuranceCardTypes",(function(){return c})),n.d(E,"GenericDocument",(function(){return fe})),n.d(E,"DocumentDataExtractorConfigurationTypes",(function(){return l})),n.d(E,"DocumentDataExtractorTypes",(function(){return d})),n.d(E,"TextPatternScannerTypes",(function(){return m})),n.d(E,"Geometry",(function(){return ce})),n.d(E,"LicensePlateScannerTypes",(function(){return p})),n.d(E,"MedicalCertificateTypes",(function(){return h})),n.d(E,"MrzTypes",(function(){return f})),n.d(E,"OcrTypes",(function(){return g})),n.d(E,"ParametricFilters",(function(){return vt})),n.d(E,"PdfConfigurationTypes",(function(){return v})),n.d(E,"TiffTypes",(function(){return b})),n.d(E,"FrameAccumulationTypes",(function(){return u})),n.d(E,"ImageTypes",(function(){return y})),n.d(E,"VinScannerTypes",(function(){return C})),n.d(E,"DocumentsModel",(function(){return A})),n.d(E,"BarcodeDocumentModel",(function(){return S})),n.d(E,"CheckDocumentModel",(function(){return w})),n.d(E,"CreditCardDocumentModel",(function(){return x})),n.d(E,"PartiallyConstructible",(function(){return J.a}));class O{}O.VERSION="7.0.0-dev.2",O.BUILD_WITH_UI=!0;var D=n(68);class T{constructor(e,t){this.errorInWorker=null,this.createProxy=e=>new Proxy({},{get:(t,n,i)=>(...t)=>this.post(n,t,e)}),this.handleUnrecoverableError=e=>{this.errorInWorker=e;for(const t in this.continuations)this.continuations[t].reject(e),delete this.continuations[t]},this.copyArgs=this.createProxy("copy"),this.transferArgs=this.createProxy("transfer");const{requestSuffix:n=""}=t||{},i=Object(D.c)(t),o=`${e}${e.endsWith("/")?"":"/"}ScanbotSDK.Core${i}.js${n}`;if(Object(D.d)(o)){const e=new Blob([`importScripts("${o}")`]);this.instance=new Worker(URL.createObjectURL(e))}else this.instance=new Worker(o);this.continuations={},this.nextTicketId=1,this.instance.onmessage=e=>{const{log:t,logError:n}=e.data;if(t)return void console.log(...t);if(n)return void console.error(...n);const{ticket:i,result:o,recoverableError:r,unrecoverableError:a}=e.data,s=this.continuations[i];if(!s)return;const{resolve:c,reject:l}=s;delete this.continuations[i],a?(l(a),this.handleUnrecoverableError(a)):r?l(r):c(o)},this.instance.onerror=e=>{this.handleUnrecoverableError(e.error)}}post(e,t,n){return this.errorInWorker?Promise.reject(this.errorInWorker):new Promise(((i,o)=>{const r=Object(D.b)(t,"copy"==n),a=this.nextTicketId++;this.continuations[a]={resolve:i,reject:o},this.instance.postMessage({command:e,args:t,ticket:a},r)}))}destroy(){this.instance.terminate()}}var B=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class k extends Error{}class I extends Error{}class P{constructor(e,t,n){this.copyArgs=this.createProxy("copy"),this.transferArgs=this.createProxy("transfer"),this.core=new T(e,t),this.coreInitializationSuccessful=(()=>B(this,void 0,void 0,(function*(){if(yield this.core.copyArgs.initialize(...n)){let t;try{t=yield this.core.copyArgs.version()}catch(e){t="Error"}const n=O.VERSION;return t!==n?new I(`Version mismatch! \nVersion of ScanbotSDK.(ui2.)min.js is "${n}" \nbut the version of the loaded ScanbotSDK.Core*.js file is "${t}". \nThe ScanbotSDK.Core*.js file was loaded from ${e}.`):"OK"}return new k("WASM not initialized successfully. This can be due to an invalid license or problems loading the WASM file. Please check the console for more information.")})))()}awaitInitialized(){return B(this,void 0,void 0,(function*(){yield this.getCoreForCommand()}))}createProxy(e){return new Proxy({},{get:(t,n,i)=>(...t)=>B(this,void 0,void 0,(function*(){const i=yield this.getCoreForCommand(n),o="copy"===e?i.copyArgs:i.transferArgs;return yield o[n](...t)}))})}getCoreForCommand(e=""){return B(this,void 0,void 0,(function*(){const t=yield this.coreInitializationSuccessful;if("OK"===t||"getLicenseInfo"===e&&t instanceof k)return this.core;throw t}))}destroy(){this.core.destroy(),this.core=void 0}}class L{isValid(){return"Okay"===this.status||"Trial"===this.status}static fromJson(e){const t=new L;return t.status=e.licenseStatus,t.description=e.description,t}}var R=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class _{constructor(e,t){this._sdk=e,this._pdfOperation=t}addPage(e,t={}){return R(this,void 0,void 0,(function*(){const{consumeImage:n="COPY_IMAGE"}=t,i=this._sdk.getBridge(n);yield i.addPageToPdf(this._pdfOperation,e)}))}addPages(e){return R(this,void 0,void 0,(function*(){for(const t of e.pages){const e=yield t.finalRawImage();yield this.addPage(e)}}))}complete(){return R(this,void 0,void 0,(function*(){return yield this._sdk.bridge.copyArgs.completePdf(this._pdfOperation)}))}}var j=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class M{constructor(e,t){this._sdk=e,this._tiffOperation=t}addPage(e,t={}){return j(this,void 0,void 0,(function*(){const{binarize:n="ENABLED_IF_BINARIZATION_FILTER_SET",consumeImage:i="COPY_IMAGE"}=t,o=this._sdk.getBridge(i);yield o.addPageToTiff(this._tiffOperation,e,n)}))}addPages(e,t={}){return j(this,void 0,void 0,(function*(){for(const n of e.pages){const e=yield n.finalRawImage();yield this.addPage(e,t)}}))}complete(){return j(this,void 0,void 0,(function*(){return yield this._sdk.bridge.copyArgs.completeTiff(this._tiffOperation)}))}}var F=n(47);class N{static toPixelSize(e){return e+"px"}static containsString(e,t){return!!e&&-1!==e.indexOf(t)}static copy(e){return JSON.parse(JSON.stringify(e))}static getProperty(e,t){if(e&&e.hasOwnProperty(t))return e[t]}static uuid(){let e="";const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=t.length;for(let i=0;i<5;i++)e+=t.charAt(Math.floor(Math.random()*n));return e}}var V=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class W{static toDataUrl(e){return new Promise(((t,n)=>{const i=new Blob([e],{type:"image/jpeg"}),o=new FileReader;o.onload=()=>t(o.result),o.onerror=()=>n(o.error),o.readAsDataURL(i)}))}static getObjectFitSize(e,t,n=!0){const i=t.width/t.height,o=e.width/e.height;let r=0,a=0;(n?i>o:i<o)?(r=e.width,a=r/i):(a=e.height,r=a*i);const s=(e.width-r)/2,c=(e.height-a)/2;return new F.a(s,c,r,a)}static loadFromUrl(e){return new Promise(((t,n)=>{const i=document.createElement("img");i.src=e,i.onload=()=>V(this,void 0,void 0,(function*(){const e=document.createElement("canvas");e.width=i.width,e.height=i.height;const n=e.getContext("2d");n.drawImage(i,0,0);const o=n.getImageData(0,0,i.width,i.height);t(o)})),i.onerror=n}))}static saveImageData(e){const t=this.createImageDataCanvas(e),n=" ("+e.width+"x"+e.height+")";t.toBlob((e=>this.saveBlob(e,N.uuid()+n+".png")))}static createImageDataCanvas(e){const t=document.createElement("canvas");return t.className="scanbot-sdk-canvas-element",t.width=e.width,t.height=e.height,t.getContext("2d").putImageData(e,0,0),t}static saveBlob(e,t){let n=document.createElement("a");n.setAttribute("download",t);let i=URL.createObjectURL(e);n.setAttribute("href",i),n.click()}static convertImageDataWrapperToImageData(e){if(e)return new ImageData(e.data,e.width,e.height)}static wrapperToBase64(e){return W.createImageDataCanvas(W.convertImageDataWrapperToImageData(e)).toDataURL("image/png")}static toBase64(e,t=!0){return V(this,void 0,void 0,(function*(){const n=yield new Promise((t=>{const n=new FileReader;n.onload=()=>t(n.result),n.readAsDataURL(new Blob([e]))}));return t?n.slice(n.indexOf(",")+1):n}))}static imageUrlToImageData(e){return V(this,void 0,void 0,(function*(){return new Promise(((t,n)=>{const i=document.createElement("canvas"),o=document.createElement("img");o.src=e,o.onload=()=>V(this,void 0,void 0,(function*(){i.width=o.width,i.height=o.height;const e=i.getContext("2d");e.drawImage(o,0,0);const n=e.getImageData(0,0,o.width,o.height);t(n)})),o.onerror=n}))}))}}class z{saveImageAsJpeg(e,t){if(!e||0===e.length)return void console.log("Data cannot be null or empty");t||(t=N.uuid()+".jpeg");let n=new Blob([e],{type:"image/jpeg"});W.saveBlob(n,t)}isCameraSupported(){return!!navigator.mediaDevices}flash(){let e=this.findFlashElement();e.style.display="block",this.animateFlashOpacity("0.5",(()=>{this.animateFlashOpacity("0.0",(()=>{e.style.opacity="1.0",e.style.display="none"}))}))}findFlashElement(){return this.getOrCreateElement("flash",{position:"fixed",top:"0",left:"0",width:"100%",height:"100%","background-color":"#fff",display:"none","z-index":"5000"})}animateFlashOpacity(e,t){const n=this.getElementByClassName("flash");setTimeout((()=>{n.style.opacity=e,t()}),150)}getOrCreateElement(e,t){let n=this.getElementByClassName(e);return n||(this.createElement(e,t),n=this.getElementByClassName(e)),n}createElement(e,t){let n=document.createElement("div");n.className=e,n.style.cssText=this.cssToString(t),document.body.append(n)}cssToString(e){let t="";return Object.keys(e).forEach((n=>{t+=n+":"+e[n]+";"})),t}getElementByClassName(e){const t=document.getElementsByClassName(e);if(0!==t.length)return t[0]}}var H=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class U{constructor(e,t){this._sdk=e,this._mrzRecognizerToken=t}recognize(e,t="COPY_IMAGE"){return H(this,void 0,void 0,(function*(){const n=this._sdk.getBridge(t);return yield n.scanMRZ(yield this._mrzRecognizerToken,e)}))}recognizeURL(e){return H(this,void 0,void 0,(function*(){return new Promise((t=>{const n=document.createElement("canvas"),i=document.createElement("img");i.src=e,i.onload=()=>H(this,void 0,void 0,(function*(){n.width=i.width,n.height=i.height;const e=n.getContext("2d");e.drawImage(i,0,0);const o=e.getImageData(0,0,i.width,i.height),r=yield this.recognize(o);t(r||void 0)}))}))}))}release(){return H(this,void 0,void 0,(function*(){yield this._sdk.bridge.copyArgs.releaseObject(yield this._mrzRecognizerToken)}))}}var Z=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class G{constructor(e,t){this._sdk=e,this._OcrEngineToken=t}performOcr(e,t="COPY_IMAGE"){return Z(this,void 0,void 0,(function*(){const n=this._sdk.getBridge(t);return yield n.performOcr(this._OcrEngineToken,e)}))}recognizeURL(e){return Z(this,void 0,void 0,(function*(){return new Promise((t=>{const n=document.createElement("canvas"),i=document.createElement("img");i.src=e,i.onload=()=>Z(this,void 0,void 0,(function*(){n.width=i.width,n.height=i.height;const e=n.getContext("2d");e.drawImage(i,0,0);const o=e.getImageData(0,0,i.width,i.height),r=yield this.performOcr(o);t(r)}))}))}))}release(){return Z(this,void 0,void 0,(function*(){yield this._sdk.bridge.copyArgs.releaseObject(this._OcrEngineToken)}))}}var $=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class Y{constructor(e,t){this._sdk=e,this._textPatternScannerToken=t}recognize(e,t="COPY_IMAGE"){return $(this,void 0,void 0,(function*(){const n=this._sdk.getBridge(t);return yield n.scanTextLine(yield this._textPatternScannerToken,e)}))}cleanRecognitionQueue(){return $(this,void 0,void 0,(function*(){yield this._sdk.bridge.copyArgs.cleanTextLineScanningQueue(yield this._textPatternScannerToken)}))}recognizeURL(e){return $(this,void 0,void 0,(function*(){return this.recognize(yield W.imageUrlToImageData(e))}))}release(){return $(this,void 0,void 0,(function*(){yield this._sdk.bridge.copyArgs.releaseObject(yield this._textPatternScannerToken)}))}}var Q=n(34),X=n(45),q=n(63),K=n(74),J=n(8);const ee=["NONE","AZTEC","CODABAR","CODE_39","CODE_93","CODE_128","DATA_MATRIX","EAN_8","EAN_13","ITF","MAXI_CODE","PDF_417","QR_CODE","DATABAR","DATABAR_EXPANDED","UPC_A","UPC_E","MSI_PLESSEY","IATA_2_OF_5","INDUSTRIAL_2_OF_5","CODE_25","MICRO_QR_CODE","USPS_INTELLIGENT_MAIL","ROYAL_MAIL","JAPAN_POST","ROYAL_TNT_POST","AUSTRALIA_POST","DATABAR_LIMITED","MICRO_PDF_417","GS1_COMPOSITE","RMQR_CODE","CODE_11","CODE_32","PHARMA_CODE","PHARMA_CODE_TWO_TRACK","PZN"];class te extends J.a{constructor(e={}){super()}}var ne;(ne=te||(te={})).oned=["CODABAR","CODE_11","CODE_25","CODE_32","CODE_39","CODE_93","CODE_128","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_8","EAN_13","IATA_2_OF_5","INDUSTRIAL_2_OF_5","ITF","MSI_PLESSEY","PHARMA_CODE","PZN","UPC_A","UPC_E"],ne.twod=["AZTEC","DATA_MATRIX","MAXI_CODE","MICRO_QR_CODE","MICRO_PDF_417","PDF_417","QR_CODE","RMQR_CODE"],ne.postal=["AUSTRALIA_POST","JAPAN_POST","ROYAL_MAIL","ROYAL_TNT_POST","USPS_INTELLIGENT_MAIL"],ne.pharma=["CODE_32","PHARMA_CODE","PHARMA_CODE_TWO_TRACK","PZN"],ne.common=["AZTEC","CODABAR","CODE_39","CODE_93","CODE_128","DATA_MATRIX","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_13","EAN_8","ITF","MICRO_QR_CODE","PDF_417","QR_CODE","UPC_A","UPC_E"],ne.all=["AUSTRALIA_POST","AZTEC","CODABAR","CODE_11","CODE_25","CODE_32","CODE_39","CODE_93","CODE_128","DATA_MATRIX","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_13","EAN_8","GS1_COMPOSITE","IATA_2_OF_5","INDUSTRIAL_2_OF_5","ITF","JAPAN_POST","MAXI_CODE","MICRO_PDF_417","MICRO_QR_CODE","MSI_PLESSEY","PDF_417","PHARMA_CODE","PHARMA_CODE_TWO_TRACK","PZN","QR_CODE","RMQR_CODE","ROYAL_MAIL","ROYAL_TNT_POST","UPC_A","UPC_E","USPS_INTELLIGENT_MAIL"];const ie=["PARSE","VALIDATE_STRUCTURE","DECODE_STRUCTURE","VALIDATE_FULL","DECODE_FULL"],oe=["REQUIRE_2","REQUIRE_5","REQUIRE_ANY","IGNORE","ALLOW_2","ALLOW_5","ALLOW_ANY"],re=["AAMVA","BOARDING_PASS","DE_MEDICAL_PLAN","MEDICAL_CERTIFICATE","ID_CARD_PDF_417","SEPA","SWISS_QR","VCARD","GS1","HIBC"];class ae extends J.a{constructor(e={}){super()}}var se;(se=ae||(ae={})).all=["AAMVA","BOARDING_PASS","DE_MEDICAL_PLAN","MEDICAL_CERTIFICATE","ID_CARD_PDF_417","SEPA","SWISS_QR","VCARD","GS1","HIBC"],se.documentBarcodeFormats={AAMVA:["PDF_417"],ID_CARD_PDF_417:["PDF_417"],SEPA:["QR_CODE"],MEDICAL_CERTIFICATE:["PDF_417"],DE_MEDICAL_PLAN:["DATA_MATRIX"],BOARDING_PASS:["PDF_417","AZTEC"],VCARD:["QR_CODE"],SWISS_QR:["QR_CODE"],GS1:["CODE_128","AZTEC","DATA_MATRIX","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_13","EAN_8","GS1_COMPOSITE","ITF","MICRO_PDF_417","PDF_417","QR_CODE","UPC_A","UPC_E"],HIBC:["CODE_39","CODE_128","AZTEC","DATA_MATRIX","MICRO_PDF_417","PDF_417","QR_CODE"]};var ce=n(43);const le=["ML","LEGACY"];class ue extends J.a{constructor(e={}){super(),this.isLive=!1,this.acceptedAngleScore=75,this.acceptedSizeScore=80,this.acceptedBrightnessThreshold=0,this.acceptedAspectRatioScore=85,this.aspectRatios=[],this.ignoreOrientationMismatch=!1,void 0!==e.isLive&&(this.isLive=e.isLive),void 0!==e.acceptedAngleScore&&(this.acceptedAngleScore=e.acceptedAngleScore),void 0!==e.acceptedSizeScore&&(this.acceptedSizeScore=e.acceptedSizeScore),void 0!==e.acceptedBrightnessThreshold&&(this.acceptedBrightnessThreshold=e.acceptedBrightnessThreshold),void 0!==e.acceptedAspectRatioScore&&(this.acceptedAspectRatioScore=e.acceptedAspectRatioScore),void 0!==e.aspectRatios&&(this.aspectRatios=e.aspectRatios.map((e=>new ce.AspectRatio(e)))),void 0!==e.ignoreOrientationMismatch&&(this.ignoreOrientationMismatch=e.ignoreOrientationMismatch)}}class de extends J.a{constructor(e={}){super(),this.engineMode="ML",this.parameters=new ue({}),void 0!==e.engineMode&&(this.engineMode=e.engineMode),void 0!==e.parameters&&(this.parameters=new ue(e.parameters))}}const me=["NOT_ACQUIRED","OK","OK_BUT_TOO_SMALL","OK_BUT_BAD_ANGLES","OK_BUT_BAD_ASPECT_RATIO","OK_BUT_ORIENTATION_MISMATCH","OK_BUT_OFF_CENTER","OK_BUT_TOO_DARK","ERROR_NOTHING_DETECTED","ERROR_TOO_DARK","ERROR_TOO_NOISY"];class pe extends J.a{constructor(e={}){if(super(),void 0===e.totalScore)throw new Error("totalScore must be present in constructor argument");if(this.totalScore=e.totalScore,void 0===e.distanceScore)throw new Error("distanceScore must be present in constructor argument");if(this.distanceScore=e.distanceScore,void 0===e.angleScore)throw new Error("angleScore must be present in constructor argument");if(this.angleScore=e.angleScore,void 0===e.sizeScore)throw new Error("sizeScore must be present in constructor argument");if(this.sizeScore=e.sizeScore,void 0===e.aspectRatioScore)throw new Error("aspectRatioScore must be present in constructor argument");if(this.aspectRatioScore=e.aspectRatioScore,void 0===e.lineCoverageScore)throw new Error("lineCoverageScore must be present in constructor argument");if(this.lineCoverageScore=e.lineCoverageScore,void 0===e.widthScore)throw new Error("widthScore must be present in constructor argument");if(this.widthScore=e.widthScore,void 0===e.heightScore)throw new Error("heightScore must be present in constructor argument");this.heightScore=e.heightScore}}class he extends J.a{constructor(e={}){if(super(),this.status="NOT_ACQUIRED",this.averageBrightness=0,void 0!==e.status&&(this.status=e.status),void 0===e.detectionScores)throw new Error("detectionScores must be present in constructor argument");if(this.detectionScores=new pe(e.detectionScores),void 0===e.points)throw new Error("points must be present in constructor argument");if(this.points=e.points.map((e=>({x:e.x,y:e.y}))),void 0===e.horizontalLines)throw new Error("horizontalLines must be present in constructor argument");if(this.horizontalLines=e.horizontalLines.map((e=>new ce.LineSegmentInt(e))),void 0===e.verticalLines)throw new Error("verticalLines must be present in constructor argument");if(this.verticalLines=e.verticalLines.map((e=>new ce.LineSegmentInt(e))),void 0===e.pointsNormalized)throw new Error("pointsNormalized must be present in constructor argument");if(this.pointsNormalized=e.pointsNormalized.map((e=>({x:e.x,y:e.y}))),void 0===e.horizontalLinesNormalized)throw new Error("horizontalLinesNormalized must be present in constructor argument");if(this.horizontalLinesNormalized=e.horizontalLinesNormalized.map((e=>new ce.LineSegmentFloat(e))),void 0===e.verticalLinesNormalized)throw new Error("verticalLinesNormalized must be present in constructor argument");if(this.verticalLinesNormalized=e.verticalLinesNormalized.map((e=>new ce.LineSegmentFloat(e))),void 0===e.aspectRatio)throw new Error("aspectRatio must be present in constructor argument");this.aspectRatio=e.aspectRatio,void 0!==e.averageBrightness&&(this.averageBrightness=e.averageBrightness)}}var fe=n(42);const ge=["DISABLED","DETECT_DOCUMENT","DETECT_AND_CROP_DOCUMENT"],ve=["SUCCESS","VALIDATION_FAILED","FAIL"];class be extends J.a{constructor(e={}){if(super(),this.status="FAIL",void 0!==e.status&&(this.status=e.status),void 0===e.check)throw new Error("check must be present in constructor argument");if(this.check=null!=e.check?new fe.GenericDocument(e.check):null,void 0===e.documentDetectionResult)throw new Error("documentDetectionResult must be present in constructor argument");if(this.documentDetectionResult=null!=e.documentDetectionResult?new he(e.documentDetectionResult):null,void 0===e.croppedImage)throw new Error("croppedImage must be present in constructor argument");this.croppedImage=null!=e.croppedImage?e.croppedImage:null}}class ye extends J.a{constructor(e={}){super(),this.documentDetectionMode="DISABLED",void 0!==e.documentDetectionMode&&(this.documentDetectionMode=e.documentDetectionMode)}}var Ce=n(75);const Ae=["VERY_POOR","POOR","REASONABLE","GOOD","EXCELLENT"];class Se extends J.a{constructor(e={}){if(super(),void 0===e.symbolQuality)throw new Error("symbolQuality must be present in constructor argument");if(this.symbolQuality=e.symbolQuality,void 0===e.symbolRatio)throw new Error("symbolRatio must be present in constructor argument");this.symbolRatio=e.symbolRatio}}class we extends J.a{constructor(e={}){super(),this.qualityThresholds=[new Se({symbolQuality:.5,symbolRatio:.5}),new Se({symbolQuality:.7,symbolRatio:.3}),new Se({symbolQuality:.85,symbolRatio:.3}),new Se({symbolQuality:.9,symbolRatio:.1})],this.qualityIndices=["VERY_POOR","POOR","REASONABLE","GOOD","EXCELLENT"],this.detectOrientation=!1,this.maxImageSize=2e3,this.minEstimatedNumberOfSymbolsForDocument=20,this.minProcessedFraction=0,this.maxProcessedFraction=.5,this.earlyStopIfNSymbolsFound=100,this.tileSize=300,void 0!==e.qualityThresholds&&(this.qualityThresholds=e.qualityThresholds.map((e=>new Se(e)))),void 0!==e.qualityIndices&&(this.qualityIndices=e.qualityIndices.map((e=>e))),void 0!==e.detectOrientation&&(this.detectOrientation=e.detectOrientation),void 0!==e.maxImageSize&&(this.maxImageSize=e.maxImageSize),void 0!==e.minEstimatedNumberOfSymbolsForDocument&&(this.minEstimatedNumberOfSymbolsForDocument=e.minEstimatedNumberOfSymbolsForDocument),void 0!==e.minProcessedFraction&&(this.minProcessedFraction=e.minProcessedFraction),void 0!==e.maxProcessedFraction&&(this.maxProcessedFraction=e.maxProcessedFraction),void 0!==e.earlyStopIfNSymbolsFound&&(this.earlyStopIfNSymbolsFound=e.earlyStopIfNSymbolsFound),void 0!==e.tileSize&&(this.tileSize=e.tileSize)}}class xe extends J.a{constructor(e={}){if(super(),void 0===e.documentFound)throw new Error("documentFound must be present in constructor argument");if(this.documentFound=e.documentFound,void 0===e.quality)throw new Error("quality must be present in constructor argument");if(this.quality=null!=e.quality&&Ae.includes(e.quality)?e.quality:null,void 0===e.orientation)throw new Error("orientation must be present in constructor argument");if(this.orientation=null!=e.orientation?e.orientation:null,void 0===e.cumulativeQualityHistogram)throw new Error("cumulativeQualityHistogram must be present in constructor argument");this.cumulativeQualityHistogram=e.cumulativeQualityHistogram.map((e=>e))}}class Ee extends J.a{constructor(e={}){if(super(),this.status="FAILED_DETECTION",void 0===e.fields)throw new Error("fields must be present in constructor argument");this.fields=e.fields.map((e=>new Ee.Field(e))),void 0!==e.status&&(this.status=e.status)}}!function(e){e.RecognitionStatusValues=["SUCCESS","FAILED_DETECTION","INCOMPLETE_VALIDATION"];class t extends J.a{constructor(e={}){if(super(),this.validationStatus="NOT_VALIDATED",void 0===e.type)throw new Error("type must be present in constructor argument");if(this.type=e.type,void 0===e.value)throw new Error("value must be present in constructor argument");if(this.value=e.value,void 0===e.confidence)throw new Error("confidence must be present in constructor argument");this.confidence=e.confidence,void 0!==e.validationStatus&&(this.validationStatus=e.validationStatus)}}e.Field=t,function(e){e.ValidationStatusValues=["NOT_VALIDATED","FAILURE","SUCCESS","CONFIRMED"],e.FieldTypeValues=["SURNAME","GIVEN_NAME","DATE_OF_BIRTH","PERSONAL_IDENTIFICATION_NUMBER","INSTITUTION_NUMBER","INSTITUTION_NAME","CARD_NUMBER","CARD_EXPIRATION_DATE","COUNTRY"]}(t=e.Field||(e.Field={}))}(Ee||(Ee={}));class Oe extends J.a{constructor(e={}){super(),this.allowedCountries=[],this.minBirthYear=0,this.maxBirthYear=2999,this.minExpirationYear=0,this.maxExpirationYear=2999,this.maxCountryDetectionAttempts=5,this.minEqualFrameCount=4,this.maxAccumulatedFrameCount=10,void 0!==e.allowedCountries&&(this.allowedCountries=e.allowedCountries.map((e=>e))),void 0!==e.minBirthYear&&(this.minBirthYear=e.minBirthYear),void 0!==e.maxBirthYear&&(this.maxBirthYear=e.maxBirthYear),void 0!==e.minExpirationYear&&(this.minExpirationYear=e.minExpirationYear),void 0!==e.maxExpirationYear&&(this.maxExpirationYear=e.maxExpirationYear),void 0!==e.maxCountryDetectionAttempts&&(this.maxCountryDetectionAttempts=e.maxCountryDetectionAttempts),void 0!==e.minEqualFrameCount&&(this.minEqualFrameCount=e.minEqualFrameCount),void 0!==e.maxAccumulatedFrameCount&&(this.maxAccumulatedFrameCount=e.maxAccumulatedFrameCount)}}var De;!function(e){e.From=function(e){const t=e._type;switch(t){case"DateValidationConfiguration":return new Te(e);case"EuropeanHealthInsuranceCardConfiguration":return new ke(e);case"MRZFallbackConfiguration":return new Ie(e);case"DocumentDataExtractorCommonConfiguration":return new Pe(e);default:throw`Unknown child class name: ${t}`}}}(De||(De={}));class Te extends J.a{constructor(e={}){if(super(),this._type="DateValidationConfiguration",this.minYear=0,this.maxYear=2999,void 0!==e.minYear&&(this.minYear=e.minYear),void 0!==e.maxYear&&(this.maxYear=e.maxYear),void 0===e.fieldTypeName)throw new Error("fieldTypeName must be present in constructor argument");this.fieldTypeName=e.fieldTypeName}}const Be=["AUSTRIA","BELGIUM","BULGARIA","CROATIA","CYPRUS","CZECH_REPUBLIC","DENMARK","ESTONIA","FINLAND","FRANCE","GERMANY","GREECE","HUNGARY","IRELAND","ITALY","LATVIA","LITHUANIA","LUXEMBOURG","MALTA","NETHERLANDS","POLAND","PORTUGAL","ROMANIA","SLOVAKIA","SLOVENIA","SPAIN","SWEDEN","SWITZERLAND"];class ke extends J.a{constructor(e={}){super(),this._type="EuropeanHealthInsuranceCardConfiguration",this.expectedCountry=null,void 0!==e.expectedCountry&&(this.expectedCountry=null!=e.expectedCountry&&Be.includes(e.expectedCountry)?e.expectedCountry:null)}}class Ie extends J.a{constructor(e={}){super(),this._type="MRZFallbackConfiguration",this.acceptedCountries=[],this.acceptedMRZTypes=[],void 0!==e.acceptedCountries&&(this.acceptedCountries=e.acceptedCountries.map((e=>e))),void 0!==e.acceptedMRZTypes&&(this.acceptedMRZTypes=e.acceptedMRZTypes.map((e=>e)))}}class Pe extends J.a{constructor(e={}){if(super(),this._type="DocumentDataExtractorCommonConfiguration",void 0===e.acceptedDocumentTypes)throw new Error("acceptedDocumentTypes must be present in constructor argument");this.acceptedDocumentTypes=e.acceptedDocumentTypes.map((e=>e))}}const Le=["EXACT","INTERPOLATE"];class Re extends J.a{constructor(e={}){super(),this.confirmationMethod="EXACT",this.minConfirmations=3,this.minConfidenceForStableField=.8,this.autoClearThreshold=4,void 0!==e.confirmationMethod&&(this.confirmationMethod=e.confirmationMethod),void 0!==e.minConfirmations&&(this.minConfirmations=e.minConfirmations),void 0!==e.minConfidenceForStableField&&(this.minConfidenceForStableField=e.minConfidenceForStableField),void 0!==e.autoClearThreshold&&(this.autoClearThreshold=e.autoClearThreshold)}}class _e extends J.a{constructor(e={}){super(),this.maximumNumberOfAccumulatedFrames=3,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=2,void 0!==e.maximumNumberOfAccumulatedFrames&&(this.maximumNumberOfAccumulatedFrames=e.maximumNumberOfAccumulatedFrames),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult)}}const je=["SUCCESS","ERROR_NOTHING_FOUND","ERROR_BAD_CROP","ERROR_UNKNOWN_DOCUMENT","ERROR_UNACCEPTABLE_DOCUMENT","INCOMPLETE_VALIDATION"];class Me extends J.a{constructor(e={}){if(super(),void 0===e.status)throw new Error("status must be present in constructor argument");if(this.status=e.status,void 0===e.document)throw new Error("document must be present in constructor argument");if(this.document=null!=e.document?new fe.GenericDocument(e.document):null,void 0===e.documentDetectionResult)throw new Error("documentDetectionResult must be present in constructor argument");if(this.documentDetectionResult=new he(e.documentDetectionResult),void 0===e.croppedImage)throw new Error("croppedImage must be present in constructor argument");this.croppedImage=null!=e.croppedImage?e.croppedImage:null}}const Fe=["LIVE","SINGLE_SHOT"];class Ne extends J.a{constructor(e={}){super(),this.mode="LIVE",void 0!==e.mode&&(this.mode=e.mode)}}class Ve extends J.a{constructor(e={}){if(super(),this.resultAccumulationConfig=new Re({}),this.fieldExcludeList=[],void 0!==e.resultAccumulationConfig&&(this.resultAccumulationConfig=new Re(e.resultAccumulationConfig)),void 0!==e.fieldExcludeList&&(this.fieldExcludeList=e.fieldExcludeList.map((e=>e))),void 0===e.configurations)throw new Error("configurations must be present in constructor argument");this.configurations=e.configurations.map((e=>De.From(e)))}}class We extends J.a{constructor(e={}){if(super(),this.recognitionConfidence=0,void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.boundingRect)throw new Error("boundingRect must be present in constructor argument");this.boundingRect={x:e.boundingRect.x,y:e.boundingRect.y,width:e.boundingRect.width,height:e.boundingRect.height},void 0!==e.recognitionConfidence&&(this.recognitionConfidence=e.recognitionConfidence)}}class ze extends J.a{constructor(e={}){if(super(),void 0===e.symbol)throw new Error("symbol must be present in constructor argument");if(this.symbol=e.symbol,void 0===e.boundingRect)throw new Error("boundingRect must be present in constructor argument");if(this.boundingRect={x:e.boundingRect.x,y:e.boundingRect.y,width:e.boundingRect.width,height:e.boundingRect.height},void 0===e.recognitionConfidence)throw new Error("recognitionConfidence must be present in constructor argument");this.recognitionConfidence=e.recognitionConfidence}}class He extends J.a{constructor(e={}){if(super(),this.confidence=0,this.validationSuccessful=!1,void 0===e.rawText)throw new Error("rawText must be present in constructor argument");if(this.rawText=e.rawText,void 0===e.wordBoxes)throw new Error("wordBoxes must be present in constructor argument");if(this.wordBoxes=e.wordBoxes.map((e=>new We(e))),void 0===e.symbolBoxes)throw new Error("symbolBoxes must be present in constructor argument");this.symbolBoxes=e.symbolBoxes.map((e=>new ze(e))),void 0!==e.confidence&&(this.confidence=e.confidence),void 0!==e.validationSuccessful&&(this.validationSuccessful=e.validationSuccessful)}}var Ue;!function(e){e.From=function(e){const t=e._type;switch(t){case"DefaultContentValidator":return new Ze(e);case"PatternContentValidator":return new Ge(e);default:throw`Unknown child class name: ${t}`}}}(Ue||(Ue={}));class Ze extends J.a{constructor(e={}){super(),this._type="DefaultContentValidator",this.allowedCharacters="",void 0!==e.allowedCharacters&&(this.allowedCharacters=e.allowedCharacters)}}class Ge extends J.a{constructor(e={}){if(super(),this._type="PatternContentValidator",this.allowedCharacters="",this.matchSubstring=!1,void 0!==e.allowedCharacters&&(this.allowedCharacters=e.allowedCharacters),void 0===e.pattern)throw new Error("pattern must be present in constructor argument");this.pattern=e.pattern,void 0!==e.matchSubstring&&(this.matchSubstring=e.matchSubstring)}}class $e extends J.a{constructor(e={}){super(),this.ocrResolutionLimit=0,this.maximumNumberOfAccumulatedFrames=3,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=2,this.validator=new Ze({}),void 0!==e.ocrResolutionLimit&&(this.ocrResolutionLimit=e.ocrResolutionLimit),void 0!==e.maximumNumberOfAccumulatedFrames&&(this.maximumNumberOfAccumulatedFrames=e.maximumNumberOfAccumulatedFrames),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.validator&&(this.validator=Ue.From(e.validator))}}const Ye=["CLASSIC","ML"];class Qe extends J.a{constructor(e={}){super(),this.maximumNumberOfAccumulatedFrames=3,this.minimumNumberOfRequiredFramesWithEqualScanningResult=2,this.scannerStrategy="ML",void 0!==e.maximumNumberOfAccumulatedFrames&&(this.maximumNumberOfAccumulatedFrames=e.maximumNumberOfAccumulatedFrames),void 0!==e.minimumNumberOfRequiredFramesWithEqualScanningResult&&(this.minimumNumberOfRequiredFramesWithEqualScanningResult=e.minimumNumberOfRequiredFramesWithEqualScanningResult),void 0!==e.scannerStrategy&&(this.scannerStrategy=e.scannerStrategy)}}class Xe extends J.a{constructor(e={}){if(super(),this.confidence=0,this.validationSuccessful=!1,this.croppedImage=null,void 0===e.countryCode)throw new Error("countryCode must be present in constructor argument");if(this.countryCode=e.countryCode,void 0===e.licensePlate)throw new Error("licensePlate must be present in constructor argument");if(this.licensePlate=e.licensePlate,void 0===e.rawText)throw new Error("rawText must be present in constructor argument");this.rawText=e.rawText,void 0!==e.confidence&&(this.confidence=e.confidence),void 0!==e.validationSuccessful&&(this.validationSuccessful=e.validationSuccessful),void 0!==e.croppedImage&&(this.croppedImage=null!=e.croppedImage?e.croppedImage:null)}}class qe extends J.a{constructor(e={}){super(),this.shouldCropDocument=!0,this.recognizePatientInfoBox=!0,this.recognizeBarcode=!0,this.extractCroppedImage=!1,this.preprocessInput=!1,void 0!==e.shouldCropDocument&&(this.shouldCropDocument=e.shouldCropDocument),void 0!==e.recognizePatientInfoBox&&(this.recognizePatientInfoBox=e.recognizePatientInfoBox),void 0!==e.recognizeBarcode&&(this.recognizeBarcode=e.recognizeBarcode),void 0!==e.extractCroppedImage&&(this.extractCroppedImage=e.extractCroppedImage),void 0!==e.preprocessInput&&(this.preprocessInput=e.preprocessInput)}}const Ke=["UNKNOWN","WORK_ACCIDENT","ASSIGNED_TO_ACCIDENT_INSURANCE_DOCTOR","INITIAL_CERTIFICATE","RENEWED_CERTIFICATE","INSURED_PAY_CASE","FINAL_CERTIFICATE","REQUIRES_CARE_YES","REQUIRES_CARE_NO","ACCIDENT_YES","ACCIDENT_NO","OTHER_ACCIDENT","ENTITLEMENT_TO_CONTINUED_PAYMENT_YES","ENTITLEMENT_TO_CONTINUED_PAYMENT_NO","SICK_PAY_WAS_CLAIMED_NO","SICK_PAY_WAS_CLAIMED_YES","SINGLE_PARENT_NO","SINGLE_PARENT_YES"];class Je extends J.a{constructor(e={}){if(super(),this.type="UNKNOWN",this.checked=!1,this.checkedConfidence=0,void 0!==e.type&&(this.type=e.type),void 0!==e.checked&&(this.checked=e.checked),void 0!==e.checkedConfidence&&(this.checkedConfidence=e.checkedConfidence),void 0===e.quad)throw new Error("quad must be present in constructor argument");this.quad=e.quad.map((e=>({x:e.x,y:e.y})))}}const et=["INCAPABLE_OF_WORK_SINCE","INCAPABLE_OF_WORK_UNTIL","DIAGNOSED_ON","DOCUMENT_DATE","BIRTH_DATE","CHILD_NEEDS_CARE_FROM","CHILD_NEEDS_CARE_UNTIL","UNDEFINED"];class tt extends J.a{constructor(e={}){if(super(),this.value="",this.rawString="",this.type="UNDEFINED",this.recognitionConfidence=0,void 0===e.quad)throw new Error("quad must be present in constructor argument");this.quad=e.quad.map((e=>({x:e.x,y:e.y}))),void 0!==e.value&&(this.value=e.value),void 0!==e.rawString&&(this.rawString=e.rawString),void 0!==e.type&&(this.type=e.type),void 0!==e.recognitionConfidence&&(this.recognitionConfidence=e.recognitionConfidence)}}const nt=["INSURANCE_PROVIDER","FIRST_NAME","LAST_NAME","ADDRESS_STRING1","ADDRESS_STRING2","DIAGNOSE","HEALTH_INSURANCE_NUMBER","INSURED_PERSON_NUMBER","STATUS","PLACE_OF_OPERATION_NUMBER","DOCTOR_NUMBER","UNDEFINED"];class it extends J.a{constructor(e={}){if(super(),void 0===e.type)throw new Error("type must be present in constructor argument");if(this.type=e.type,void 0===e.value)throw new Error("value must be present in constructor argument");if(this.value=e.value,void 0===e.recognitionConfidence)throw new Error("recognitionConfidence must be present in constructor argument");this.recognitionConfidence=e.recognitionConfidence}}class ot extends J.a{constructor(e={}){if(super(),this.hasContents=!1,void 0===e.quad)throw new Error("quad must be present in constructor argument");if(this.quad=e.quad.map((e=>({x:e.x,y:e.y}))),void 0===e.fields)throw new Error("fields must be present in constructor argument");this.fields=e.fields.map((e=>new it(e))),void 0!==e.hasContents&&(this.hasContents=e.hasContents)}}const rt=["UNKNOWN","FORM_1A","FORM_1B","FORM_1C","FORM_1D","FORM_21A","FORM_21A_BACK","FORM_1B_CUSTOM"];class at extends J.a{constructor(e={}){if(super(),this.scanningSuccessful=!1,this.formType="UNKNOWN",this.clockwiseRotations=0,this.croppedImage=null,this.scaleX=1,this.scaleY=1,void 0!==e.scanningSuccessful&&(this.scanningSuccessful=e.scanningSuccessful),void 0===e.patientInfoBox)throw new Error("patientInfoBox must be present in constructor argument");if(this.patientInfoBox=new ot(e.patientInfoBox),void 0===e.checkBoxes)throw new Error("checkBoxes must be present in constructor argument");if(this.checkBoxes=e.checkBoxes.map((e=>new Je(e))),void 0===e.dates)throw new Error("dates must be present in constructor argument");if(this.dates=e.dates.map((e=>new tt(e))),void 0!==e.formType&&(this.formType=e.formType),void 0!==e.clockwiseRotations&&(this.clockwiseRotations=e.clockwiseRotations),void 0!==e.croppedImage&&(this.croppedImage=null!=e.croppedImage?e.croppedImage:null),void 0!==e.scaleX&&(this.scaleX=e.scaleX),void 0!==e.scaleY&&(this.scaleY=e.scaleY),void 0===e.documentDetectionResult)throw new Error("documentDetectionResult must be present in constructor argument");this.documentDetectionResult=null!=e.documentDetectionResult?new he(e.documentDetectionResult):null}}const st=["UNKNOWN","CREW_MEMBER_CERTIFICATE","ID_CARD","PASSPORT","VISA","CH_DRIVING_LICENSE"];class ct extends J.a{constructor(e={}){if(super(),this.success=!1,void 0!==e.success&&(this.success=e.success),void 0===e.rawMRZ)throw new Error("rawMRZ must be present in constructor argument");if(this.rawMRZ=e.rawMRZ,void 0===e.document)throw new Error("document must be present in constructor argument");this.document=null!=e.document?new fe.GenericDocument(e.document):null}}const lt=["ACCEPT","REJECT"];class ut extends J.a{constructor(e={}){super(),this.frameAccumulationConfiguration=new _e({}),this.enableDetection=!0,this.incompleteResultHandling="ACCEPT",void 0!==e.frameAccumulationConfiguration&&(this.frameAccumulationConfiguration=new _e(e.frameAccumulationConfiguration)),void 0!==e.enableDetection&&(this.enableDetection=e.enableDetection),void 0!==e.incompleteResultHandling&&(this.incompleteResultHandling=e.incompleteResultHandling)}}var dt;!function(e){e.From=function(e){const t=e._type;switch(t){case"Glyph":return new mt(e);case"Word":return new pt(e);case"Line":return new ht(e);case"Block":return new ft(e);case"Page":return new gt(e);default:throw`Unknown child class name: ${t}`}}}(dt||(dt={}));class mt extends J.a{constructor(e={}){if(super(),this._type="Glyph",void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.confidence)throw new Error("confidence must be present in constructor argument");if(this.confidence=e.confidence,void 0===e.roi)throw new Error("roi must be present in constructor argument");this.roi=e.roi.map((e=>({x:e.x,y:e.y})))}}class pt extends J.a{constructor(e={}){if(super(),this._type="Word",void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.confidence)throw new Error("confidence must be present in constructor argument");if(this.confidence=e.confidence,void 0===e.roi)throw new Error("roi must be present in constructor argument");if(this.roi=e.roi.map((e=>({x:e.x,y:e.y}))),void 0===e.glyphs)throw new Error("glyphs must be present in constructor argument");this.glyphs=e.glyphs.map((e=>new mt(e)))}}class ht extends J.a{constructor(e={}){if(super(),this._type="Line",void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.confidence)throw new Error("confidence must be present in constructor argument");if(this.confidence=e.confidence,void 0===e.roi)throw new Error("roi must be present in constructor argument");if(this.roi=e.roi.map((e=>({x:e.x,y:e.y}))),void 0===e.words)throw new Error("words must be present in constructor argument");this.words=e.words.map((e=>new pt(e)))}}class ft extends J.a{constructor(e={}){if(super(),this._type="Block",void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.confidence)throw new Error("confidence must be present in constructor argument");if(this.confidence=e.confidence,void 0===e.roi)throw new Error("roi must be present in constructor argument");if(this.roi=e.roi.map((e=>({x:e.x,y:e.y}))),void 0===e.lines)throw new Error("lines must be present in constructor argument");this.lines=e.lines.map((e=>new ht(e)))}}class gt extends J.a{constructor(e={}){if(super(),this._type="Page",void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.confidence)throw new Error("confidence must be present in constructor argument");if(this.confidence=e.confidence,void 0===e.roi)throw new Error("roi must be present in constructor argument");if(this.roi=e.roi.map((e=>({x:e.x,y:e.y}))),void 0===e.blocks)throw new Error("blocks must be present in constructor argument");this.blocks=e.blocks.map((e=>new ft(e)))}}var vt=n(62);class bt extends J.a{constructor(e={}){super(),this.author="Created with Scanbot SDK",this.creator="",this.title="",this.subject="",this.keywords="",void 0!==e.author&&(this.author=e.author),void 0!==e.creator&&(this.creator=e.creator),void 0!==e.title&&(this.title=e.title),void 0!==e.subject&&(this.subject=e.subject),void 0!==e.keywords&&(this.keywords=e.keywords)}}const yt=["LETTER","LEGAL","A3","A4","A5","B4","B5","EXECUTIVE","US4x6","US4x8","US5x7","COMM10","CUSTOM"],Ct=["PORTRAIT","LANDSCAPE","AUTO"],At=["FIT_IN","FILL_IN","STRETCH","NONE"],St=["NONE","NEAREST","LINEAR","CUBIC","LANCZOS4","AREA"];class wt extends J.a{constructor(e={}){super(),this.attributes=new bt({}),this.pageSize="A4",this.pageDirection="PORTRAIT",this.pageFit="FIT_IN",this.dpi=72,this.jpegQuality=80,this.resamplingMethod="NONE",void 0!==e.attributes&&(this.attributes=new bt(e.attributes)),void 0!==e.pageSize&&(this.pageSize=e.pageSize),void 0!==e.pageDirection&&(this.pageDirection=e.pageDirection),void 0!==e.pageFit&&(this.pageFit=e.pageFit),void 0!==e.dpi&&(this.dpi=e.dpi),void 0!==e.jpegQuality&&(this.jpegQuality=e.jpegQuality),void 0!==e.resamplingMethod&&(this.resamplingMethod=e.resamplingMethod)}}const xt=["NONE","CCITTRLE","CCITT_T4","CCITT_T6","LZW","OJPEG","JPEG","T85","T43","NEXT","CCITTRLEW","PACKBITS","THUNDERSCAN","IT8CTPAD","IT8LW","IT8MP","IT8BL","PIXARFILM","PIXARLOG","DEFLATE","ADOBE_DEFLATE"],Et=["DISABLED","ENABLED","ENABLED_IF_BINARIZATION_FILTER_SET"];var Ot,Dt;!function(e){e.From=function(e){const t=e._type;switch(t){case"UserFieldDoubleValue":return new Tt(e);case"UserFieldStringValue":return new Bt(e);case"UserFieldIntValue":return new kt(e);default:throw`Unknown child class name: ${t}`}}}(Ot||(Ot={}));class Tt extends J.a{constructor(e={}){if(super(),this._type="UserFieldDoubleValue",void 0===e.value)throw new Error("value must be present in constructor argument");this.value=e.value}}class Bt extends J.a{constructor(e={}){if(super(),this._type="UserFieldStringValue",void 0===e.value)throw new Error("value must be present in constructor argument");this.value=e.value}}class kt extends J.a{constructor(e={}){if(super(),this._type="UserFieldIntValue",void 0===e.value)throw new Error("value must be present in constructor argument");this.value=e.value}}class It extends J.a{constructor(e={}){if(super(),void 0===e.tag)throw new Error("tag must be present in constructor argument");if(this.tag=e.tag,void 0===e.name)throw new Error("name must be present in constructor argument");if(this.name=e.name,void 0===e.value)throw new Error("value must be present in constructor argument");this.value=Ot.From(e.value)}}class Pt extends J.a{constructor(e={}){super(),this.compression="LZW",this.jpegQuality=80,this.zipCompressionLevel=6,this.dpi=72,this.userFields=[],this.binarizationFilter=null,void 0!==e.compression&&(this.compression=e.compression),void 0!==e.jpegQuality&&(this.jpegQuality=e.jpegQuality),void 0!==e.zipCompressionLevel&&(this.zipCompressionLevel=e.zipCompressionLevel),void 0!==e.dpi&&(this.dpi=e.dpi),void 0!==e.userFields&&(this.userFields=e.userFields.map((e=>new It(e)))),void 0!==e.binarizationFilter&&(this.binarizationFilter=null!=e.binarizationFilter?vt.ParametricFilter.From(e.binarizationFilter):null)}}(Dt=Pt||(Pt={})).defaultCompression="LZW",Dt.binaryDocumentOptimizedCompression="CCITT_T6";const Lt=["NONE","CLOCKWISE_90","CLOCKWISE_180","COUNTERCLOCKWISE_90"],Rt=["SUCCESS","BARCODE_WITHOUT_VIN","NO_BARCODE_FOUND","BARCODE_EXTRACTION_DISABLED"];class _t extends J.a{constructor(e={}){if(super(),void 0===e.extractedVIN)throw new Error("extractedVIN must be present in constructor argument");if(this.extractedVIN=e.extractedVIN,void 0===e.rectangle)throw new Error("rectangle must be present in constructor argument");if(this.rectangle=e.rectangle.map((e=>({x:e.x,y:e.y}))),void 0===e.status)throw new Error("status must be present in constructor argument");this.status=e.status}}class jt extends J.a{constructor(e={}){if(super(),void 0===e.textResult)throw new Error("textResult must be present in constructor argument");if(this.textResult=new He(e.textResult),void 0===e.barcodeResult)throw new Error("barcodeResult must be present in constructor argument");this.barcodeResult=new _t(e.barcodeResult)}}class Mt extends J.a{constructor(e={}){super(),this.extractVINFromBarcode=!1,this.ocrResolutionLimit=0,this.maximumNumberOfAccumulatedFrames=3,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=2,void 0!==e.extractVINFromBarcode&&(this.extractVINFromBarcode=e.extractVINFromBarcode),void 0!==e.ocrResolutionLimit&&(this.ocrResolutionLimit=e.ocrResolutionLimit),void 0!==e.maximumNumberOfAccumulatedFrames&&(this.maximumNumberOfAccumulatedFrames=e.maximumNumberOfAccumulatedFrames),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult)}}const Ft="MRZ",Nt="DeIdCardFront",Vt="DeIdCardBack",Wt="DePassport",zt="DeDriverLicenseFront",Ht="DeDriverLicenseBack",Ut="Category",Zt="Categories",Gt="A",$t="A1",Yt="A2",Qt="AM",Xt="B",qt="B1",Kt="BE",Jt="C",en="C1",tn="C1E",nn="CE",on="D",rn="D1",an="D1E",sn="DE",cn="L",ln="T",un="DeResidencePermitFront",dn="DeResidencePermitBack",mn="EuropeanHealthInsuranceCard",pn="DeHealthInsuranceCardFront";class hn{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Ft}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get checkDigitBirthDate(){return this.document.fields.find((e=>"CheckDigitBirthDate"===e.type.name))}get checkDigitDocumentNumber(){return this.document.fields.find((e=>"CheckDigitDocumentNumber"===e.type.name))}get checkDigitExpiryDate(){return this.document.fields.find((e=>"CheckDigitExpiryDate"===e.type.name))}get checkDigitGeneral(){return this.document.fields.find((e=>"CheckDigitGeneral"===e.type.name))}get checkDigitPersonalNumber(){return this.document.fields.find((e=>"CheckDigitPersonalNumber"===e.type.name))}get dateOfIssuance(){return this.document.fields.find((e=>"DateOfIssuance"===e.type.name))}get documentNumber(){return this.document.fields.find((e=>"DocumentNumber"===e.type.name))}get documentType(){return this.document.fields.find((e=>"DocumentType"===e.type.name))}get documentTypeCode(){return this.document.fields.find((e=>"DocumentTypeCode"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get languageCode(){return this.document.fields.find((e=>"LanguageCode"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get officeOfIssuance(){return this.document.fields.find((e=>"OfficeOfIssuance"===e.type.name))}get optional1(){return this.document.fields.find((e=>"Optional1"===e.type.name))}get optional2(){return this.document.fields.find((e=>"Optional2"===e.type.name))}get pinCode(){return this.document.fields.find((e=>"PINCode"===e.type.name))}get personalNumber(){return this.document.fields.find((e=>"PersonalNumber"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get travelDocType(){return this.document.fields.find((e=>"TravelDocType"===e.type.name))}get travelDocTypeVariant(){return this.document.fields.find((e=>"TravelDocTypeVariant"===e.type.name))}get unknown(){return this.document.fields.find((e=>"Unknown"===e.type.name))}get versionNumber(){return this.document.fields.find((e=>"VersionNumber"===e.type.name))}get visaOptional(){return this.document.fields.find((e=>"VisaOptional"===e.type.name))}}class fn{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Nt}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get birthplace(){return this.document.fields.find((e=>"Birthplace"===e.type.name))}get cardAccessNumber(){return this.document.fields.find((e=>"CardAccessNumber"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get maidenName(){return this.document.fields.find((e=>"MaidenName"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}}class gn{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Vt}get address(){return this.document.fields.find((e=>"Address"===e.type.name))}get eyeColor(){return this.document.fields.find((e=>"EyeColor"===e.type.name))}get height(){return this.document.fields.find((e=>"Height"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get pseudonym(){return this.document.fields.find((e=>"Pseudonym"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new hn(e)}}class vn{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Wt}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get birthplace(){return this.document.fields.find((e=>"Birthplace"===e.type.name))}get countryCode(){return this.document.fields.find((e=>"CountryCode"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get maidenName(){return this.document.fields.find((e=>"MaidenName"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get passportType(){return this.document.fields.find((e=>"PassportType"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new hn(e)}}class bn{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return zt}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get birthplace(){return this.document.fields.find((e=>"Birthplace"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get licenseCategories(){return this.document.fields.find((e=>"LicenseCategories"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get serialNumber(){return this.document.fields.find((e=>"SerialNumber"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}}class yn{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Ht}get restrictions(){return this.document.fields.find((e=>"Restrictions"===e.type.name))}get categories(){const e=this.document.children.find((e=>"Categories"===e.type.name));return new yn.Categories(e)}}!function(e){class t{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}get restrictions(){return this.document.fields.find((e=>"Restrictions"===e.type.name))}get validFrom(){return this.document.fields.find((e=>"ValidFrom"===e.type.name))}get validUntil(){return this.document.fields.find((e=>"ValidUntil"===e.type.name))}}e.Category=t;class n{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Zt}get a(){const t=this.document.children.find((e=>"A"===e.type.name));return new e.Categories.A(t)}get a1(){const t=this.document.children.find((e=>"A1"===e.type.name));return new e.Categories.A1(t)}get a2(){const t=this.document.children.find((e=>"A2"===e.type.name));return new e.Categories.A2(t)}get am(){const t=this.document.children.find((e=>"AM"===e.type.name));return new e.Categories.AM(t)}get b(){const t=this.document.children.find((e=>"B"===e.type.name));return new e.Categories.B(t)}get b1(){const t=this.document.children.find((e=>"B1"===e.type.name));return t?new e.Categories.B1(t):void 0}get be(){const t=this.document.children.find((e=>"BE"===e.type.name));return new e.Categories.BE(t)}get c(){const t=this.document.children.find((e=>"C"===e.type.name));return new e.Categories.C(t)}get c1(){const t=this.document.children.find((e=>"C1"===e.type.name));return new e.Categories.C1(t)}get c1E(){const t=this.document.children.find((e=>"C1E"===e.type.name));return new e.Categories.C1E(t)}get ce(){const t=this.document.children.find((e=>"CE"===e.type.name));return new e.Categories.CE(t)}get d(){const t=this.document.children.find((e=>"D"===e.type.name));return new e.Categories.D(t)}get d1(){const t=this.document.children.find((e=>"D1"===e.type.name));return new e.Categories.D1(t)}get d1E(){const t=this.document.children.find((e=>"D1E"===e.type.name));return new e.Categories.D1E(t)}get de(){const t=this.document.children.find((e=>"DE"===e.type.name));return new e.Categories.DE(t)}get l(){const t=this.document.children.find((e=>"L"===e.type.name));return new e.Categories.L(t)}get t(){const t=this.document.children.find((e=>"T"===e.type.name));return new e.Categories.T(t)}}e.Categories=n,function(e){e.A=class extends t{constructor(e){super(e)}requiredDocumentType(){return Gt}};e.A1=class extends t{constructor(e){super(e)}requiredDocumentType(){return $t}};e.A2=class extends t{constructor(e){super(e)}requiredDocumentType(){return Yt}};e.AM=class extends t{constructor(e){super(e)}requiredDocumentType(){return Qt}};e.B=class extends t{constructor(e){super(e)}requiredDocumentType(){return Xt}};e.B1=class extends t{constructor(e){super(e)}requiredDocumentType(){return qt}};e.BE=class extends t{constructor(e){super(e)}requiredDocumentType(){return Kt}};e.C=class extends t{constructor(e){super(e)}requiredDocumentType(){return Jt}};e.C1=class extends t{constructor(e){super(e)}requiredDocumentType(){return en}};e.C1E=class extends t{constructor(e){super(e)}requiredDocumentType(){return tn}};e.CE=class extends t{constructor(e){super(e)}requiredDocumentType(){return nn}};e.D=class extends t{constructor(e){super(e)}requiredDocumentType(){return on}};e.D1=class extends t{constructor(e){super(e)}requiredDocumentType(){return rn}};e.D1E=class extends t{constructor(e){super(e)}requiredDocumentType(){return an}};e.DE=class extends t{constructor(e){super(e)}requiredDocumentType(){return sn}};e.L=class extends t{constructor(e){super(e)}requiredDocumentType(){return cn}};e.T=class extends t{constructor(e){super(e)}requiredDocumentType(){return ln}}}(n=e.Categories||(e.Categories={}))}(yn||(yn={}));class Cn{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return un}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get cardAccessNumber(){return this.document.fields.find((e=>"CardAccessNumber"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get placeOfIssue(){return this.document.fields.find((e=>"PlaceOfIssue"===e.type.name))}get remarks(){return this.document.fields.find((e=>"Remarks"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get titleType(){return this.document.fields.find((e=>"TitleType"===e.type.name))}get validFrom(){return this.document.fields.find((e=>"ValidFrom"===e.type.name))}}class An{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return dn}get address(){return this.document.fields.find((e=>"Address"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get birthplace(){return this.document.fields.find((e=>"Birthplace"===e.type.name))}get eyeColor(){return this.document.fields.find((e=>"EyeColor"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get height(){return this.document.fields.find((e=>"Height"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get remarks(){return this.document.fields.find((e=>"Remarks"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new hn(e)}}class Sn{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return mn}get barcode(){return this.document.fields.find((e=>"Barcode"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get cardNumber(){return this.document.fields.find((e=>"CardNumber"===e.type.name))}get countryCode(){return this.document.fields.find((e=>"CountryCode"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get issuerName(){return this.document.fields.find((e=>"IssuerName"===e.type.name))}get issuerNumber(){return this.document.fields.find((e=>"IssuerNumber"===e.type.name))}get personalNumber(){return this.document.fields.find((e=>"PersonalNumber"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}}class wn{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return pn}get cardAccessNumber(){return this.document.fields.find((e=>"CardAccessNumber"===e.type.name))}get issuerName(){return this.document.fields.find((e=>"IssuerName"===e.type.name))}get issuerNumber(){return this.document.fields.find((e=>"IssuerNumber"===e.type.name))}get name(){return this.document.fields.find((e=>"Name"===e.type.name))}get personalNumber(){return this.document.fields.find((e=>"PersonalNumber"===e.type.name))}}const xn="BoardingPass",En="Leg",On="SwissQR",Dn="DEMedicalPlan",Tn="Patient",Bn="Doctor",kn="Subheading",In="Medicine",Pn="Substance",Ln="Prescription",Rn="IDCardPDF417",_n="GS1",jn="Element",Mn="ValidationError",Fn="SEPA",Nn="MedicalCertificate",Vn="VCard",Wn="Entry",zn="Version",Hn="Source",Un="Kind",Zn="XML",Gn="Name",$n="FirstName",Yn="Nickname",Qn="Birthday",Xn="Anniversary",qn="Gender",Kn="DeliveryAddress",Jn="Photo",ei="TelephoneNumber",ti="Email",ni="IMPP",ii="Languages",oi="TimeZone",ri="GeoLocation",ai="Title",si="Role",ci="Logo",li="Organisation",ui="Member",di="Related",mi="Categories",pi="Note",hi="ProductId",fi="Revision",gi="Sound",vi="UID",bi="ClientPIDMap",yi="URL",Ci="PublicKey",Ai="BusyTimeURL",Si="CalendarURIForRequests",wi="CalendarURI",xi="Custom",Ei="AAMVA",Oi="TitleData",Di="RegistrationData",Ti="MotorCarrierData",Bi="RegistrantAndVehicleData",ki="VehicleOwnerData",Ii="VehicleData",Pi="VehicleSafetyInspectionData",Li="DLID",Ri="DriverLicense",_i="IDCard",ji="EnhancedDriverLicense",Mi="RawDocument",Fi="HIBC";class Ni{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return xn}get electronicTicket(){return this.document.fields.find((e=>"ElectronicTicket"===e.type.name))}get name(){return this.document.fields.find((e=>"Name"===e.type.name))}get numberOfLegs(){return this.document.fields.find((e=>"NumberOfLegs"===e.type.name))}get securityData(){return this.document.fields.find((e=>"SecurityData"===e.type.name))}get legs(){return this.document.children.filter((e=>"Leg"===e.type.name)).map((e=>new Ni.Leg(e)))}}!function(e){e.Leg=class{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return En}get airlineDesignatorOfBoardingPassIssuer(){return this.document.fields.find((e=>"AirlineDesignatorOfBoardingPassIssuer"===e.type.name))}get airlineNumericCode(){return this.document.fields.find((e=>"AirlineNumericCode"===e.type.name))}get baggageTagLicensePlateNumbers(){return this.document.fields.find((e=>"BaggageTagLicensePlateNumbers"===e.type.name))}get checkInSequenceNumber(){return this.document.fields.find((e=>"CheckInSequenceNumber"===e.type.name))}get compartmentCode(){return this.document.fields.find((e=>"CompartmentCode"===e.type.name))}get dateOfBoardingPassIssuanceJulian(){return this.document.fields.find((e=>"DateOfBoardingPassIssuanceJulian"===e.type.name))}get dateOfFlightJulian(){return this.document.fields.find((e=>"DateOfFlightJulian"===e.type.name))}get departureAirportCode(){return this.document.fields.find((e=>"DepartureAirportCode"===e.type.name))}get destinationAirportCode(){return this.document.fields.find((e=>"DestinationAirportCode"===e.type.name))}get documentFormSerialNumber(){return this.document.fields.find((e=>"DocumentFormSerialNumber"===e.type.name))}get documentType(){return this.document.fields.find((e=>"DocumentType"===e.type.name))}get fastTrack(){return this.document.fields.find((e=>"FastTrack"===e.type.name))}get firstNonConsecutiveBaggageTagLicensePlateNumber(){return this.document.fields.find((e=>"FirstNonConsecutiveBaggageTagLicensePlateNumber"===e.type.name))}get flightNumber(){return this.document.fields.find((e=>"FlightNumber"===e.type.name))}get forIndividualAirlineUse(){return this.document.fields.find((e=>"ForIndividualAirlineUse"===e.type.name))}get freeBaggageAllowance(){return this.document.fields.find((e=>"FreeBaggageAllowance"===e.type.name))}get frequentFlyerAirlineDesignator(){return this.document.fields.find((e=>"FrequentFlyerAirlineDesignator"===e.type.name))}get frequentFlyerNumber(){return this.document.fields.find((e=>"FrequentFlyerNumber"===e.type.name))}get idadIndicator(){return this.document.fields.find((e=>"IDADIndicator"===e.type.name))}get internationalDocumentationVerification(){return this.document.fields.find((e=>"InternationalDocumentationVerification"===e.type.name))}get marketingCarrierDesignator(){return this.document.fields.find((e=>"MarketingCarrierDesignator"===e.type.name))}get operatingCarrierDesignator(){return this.document.fields.find((e=>"OperatingCarrierDesignator"===e.type.name))}get operatingCarrierPNRCode(){return this.document.fields.find((e=>"OperatingCarrierPNRCode"===e.type.name))}get passengerDescription(){return this.document.fields.find((e=>"PassengerDescription"===e.type.name))}get passengerStatus(){return this.document.fields.find((e=>"PassengerStatus"===e.type.name))}get seatNumber(){return this.document.fields.find((e=>"SeatNumber"===e.type.name))}get secondNonConsecutiveBaggageTagLicensePlateNumber(){return this.document.fields.find((e=>"SecondNonConsecutiveBaggageTagLicensePlateNumber"===e.type.name))}get selecteeIndicator(){return this.document.fields.find((e=>"SelecteeIndicator"===e.type.name))}get sourceOfBoardingPassIssuance(){return this.document.fields.find((e=>"SourceOfBoardingPassIssuance"===e.type.name))}get sourceOfCheckIn(){return this.document.fields.find((e=>"SourceOfCheckIn"===e.type.name))}get versionNumber(){return this.document.fields.find((e=>"VersionNumber"===e.type.name))}}}(Ni||(Ni={}));class Vi{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return On}get additionalBillingInformation(){return this.document.fields.find((e=>"AdditionalBillingInformation"===e.type.name))}get additionalInfoTrailer(){return this.document.fields.find((e=>"AdditionalInfoTrailer"===e.type.name))}get additionalInfoUnstructured(){return this.document.fields.find((e=>"AdditionalInfoUnstructured"===e.type.name))}get alternativeProcedureParameter(){return this.document.fields.find((e=>"AlternativeProcedureParameter"===e.type.name))}get amount(){return this.document.fields.find((e=>"Amount"===e.type.name))}get currency(){return this.document.fields.find((e=>"Currency"===e.type.name))}get debtorAddressType(){return this.document.fields.find((e=>"DebtorAddressType"===e.type.name))}get debtorBuildingOrAddressLine2(){return this.document.fields.find((e=>"DebtorBuildingOrAddressLine2"===e.type.name))}get debtorCountry(){return this.document.fields.find((e=>"DebtorCountry"===e.type.name))}get debtorName(){return this.document.fields.find((e=>"DebtorName"===e.type.name))}get debtorPlace(){return this.document.fields.find((e=>"DebtorPlace"===e.type.name))}get debtorPostalCode(){return this.document.fields.find((e=>"DebtorPostalCode"===e.type.name))}get debtorStreetOrAddressLine1(){return this.document.fields.find((e=>"DebtorStreetOrAddressLine1"===e.type.name))}get dueDate(){return this.document.fields.find((e=>"DueDate"===e.type.name))}get encoding(){return this.document.fields.find((e=>"Encoding"===e.type.name))}get finalPayeeAddressType(){return this.document.fields.find((e=>"FinalPayeeAddressType"===e.type.name))}get finalPayeeBuildingOrAddressLine2(){return this.document.fields.find((e=>"FinalPayeeBuildingOrAddressLine2"===e.type.name))}get finalPayeeCountry(){return this.document.fields.find((e=>"FinalPayeeCountry"===e.type.name))}get finalPayeeName(){return this.document.fields.find((e=>"FinalPayeeName"===e.type.name))}get finalPayeePlace(){return this.document.fields.find((e=>"FinalPayeePlace"===e.type.name))}get finalPayeePostalCode(){return this.document.fields.find((e=>"FinalPayeePostalCode"===e.type.name))}get finalPayeeStreetOrAddressLine1(){return this.document.fields.find((e=>"FinalPayeeStreetOrAddressLine1"===e.type.name))}get iban(){return this.document.fields.find((e=>"IBAN"===e.type.name))}get majorVersion(){return this.document.fields.find((e=>"MajorVersion"===e.type.name))}get payeeAddressType(){return this.document.fields.find((e=>"PayeeAddressType"===e.type.name))}get payeeBuildingOrAddressLine2(){return this.document.fields.find((e=>"PayeeBuildingOrAddressLine2"===e.type.name))}get payeeCountry(){return this.document.fields.find((e=>"PayeeCountry"===e.type.name))}get payeeName(){return this.document.fields.find((e=>"PayeeName"===e.type.name))}get payeePlace(){return this.document.fields.find((e=>"PayeePlace"===e.type.name))}get payeePostalCode(){return this.document.fields.find((e=>"PayeePostalCode"===e.type.name))}get payeeStreetOrAddressLine1(){return this.document.fields.find((e=>"PayeeStreetOrAddressLine1"===e.type.name))}get paymentReference(){return this.document.fields.find((e=>"PaymentReference"===e.type.name))}get paymentReferenceType(){return this.document.fields.find((e=>"PaymentReferenceType"===e.type.name))}}class Wi{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Dn}get currentPage(){return this.document.fields.find((e=>"CurrentPage"===e.type.name))}get documentVersionNumber(){return this.document.fields.find((e=>"DocumentVersionNumber"===e.type.name))}get guid(){return this.document.fields.find((e=>"GUID"===e.type.name))}get languageCountryCode(){return this.document.fields.find((e=>"LanguageCountryCode"===e.type.name))}get patchVersionNumber(){return this.document.fields.find((e=>"PatchVersionNumber"===e.type.name))}get totalNumberOfPages(){return this.document.fields.find((e=>"TotalNumberOfPages"===e.type.name))}get patient(){const e=this.document.children.find((e=>"Patient"===e.type.name));return new Wi.Patient(e)}get doctor(){const e=this.document.children.find((e=>"Doctor"===e.type.name));return new Wi.Doctor(e)}get subheadings(){return this.document.children.filter((e=>"Subheading"===e.type.name)).map((e=>new Wi.Subheading(e)))}}!function(e){e.Patient=class{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Tn}get allergiesAndIntolerances(){return this.document.fields.find((e=>"AllergiesAndIntolerances"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get breastFeeding(){return this.document.fields.find((e=>"BreastFeeding"===e.type.name))}get creatinineValue(){return this.document.fields.find((e=>"CreatinineValue"===e.type.name))}get firstName(){return this.document.fields.find((e=>"FirstName"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get height(){return this.document.fields.find((e=>"Height"===e.type.name))}get lastName(){return this.document.fields.find((e=>"LastName"===e.type.name))}get patientFreeText(){return this.document.fields.find((e=>"PatientFreeText"===e.type.name))}get patientID(){return this.document.fields.find((e=>"PatientID"===e.type.name))}get preName(){return this.document.fields.find((e=>"PreName"===e.type.name))}get pregnant(){return this.document.fields.find((e=>"Pregnant"===e.type.name))}get suffix(){return this.document.fields.find((e=>"Suffix"===e.type.name))}get title(){return this.document.fields.find((e=>"Title"===e.type.name))}get weight(){return this.document.fields.find((e=>"Weight"===e.type.name))}};e.Doctor=class{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Bn}get doctorNumber(){return this.document.fields.find((e=>"DoctorNumber"===e.type.name))}get email(){return this.document.fields.find((e=>"Email"===e.type.name))}get hospitalID(){return this.document.fields.find((e=>"HospitalID"===e.type.name))}get issuerName(){return this.document.fields.find((e=>"IssuerName"===e.type.name))}get issuingDateAndTime(){return this.document.fields.find((e=>"IssuingDateAndTime"===e.type.name))}get pharmacyID(){return this.document.fields.find((e=>"PharmacyID"===e.type.name))}get place(){return this.document.fields.find((e=>"Place"===e.type.name))}get postalCode(){return this.document.fields.find((e=>"PostalCode"===e.type.name))}get street(){return this.document.fields.find((e=>"Street"===e.type.name))}get telephoneNumber(){return this.document.fields.find((e=>"TelephoneNumber"===e.type.name))}};class t{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return kn}get generalNotes(){return this.document.fields.filter((e=>"GeneralNote"===e.type.name))}get keyWords(){return this.document.fields.find((e=>"KeyWords"===e.type.name))}get subheadingFreeText(){return this.document.fields.find((e=>"SubheadingFreeText"===e.type.name))}get medicines(){return this.document.children.filter((e=>"Medicine"===e.type.name)).map((t=>new e.Subheading.Medicine(t)))}get prescriptions(){return this.document.children.filter((e=>"Prescription"===e.type.name)).map((t=>new e.Subheading.Prescription(t)))}}e.Subheading=t,function(t){class n{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return In}get dosageForm(){return this.document.fields.find((e=>"DosageForm"===e.type.name))}get dosageFormFreeText(){return this.document.fields.find((e=>"DosageFormFreeText"===e.type.name))}get dosageFreeText(){return this.document.fields.find((e=>"DosageFreeText"===e.type.name))}get dosingUnit(){return this.document.fields.find((e=>"DosingUnit"===e.type.name))}get dosingUnitFreeText(){return this.document.fields.find((e=>"DosingUnitFreeText"===e.type.name))}get drugName(){return this.document.fields.find((e=>"DrugName"===e.type.name))}get evening(){return this.document.fields.find((e=>"Evening"===e.type.name))}get generalNotes(){return this.document.fields.find((e=>"GeneralNotes"===e.type.name))}get midday(){return this.document.fields.find((e=>"Midday"===e.type.name))}get morning(){return this.document.fields.find((e=>"Morning"===e.type.name))}get night(){return this.document.fields.find((e=>"Night"===e.type.name))}get pharmaceuticalNumber(){return this.document.fields.find((e=>"PharmaceuticalNumber"===e.type.name))}get reasonForTreatment(){return this.document.fields.find((e=>"ReasonForTreatment"===e.type.name))}get relevantInfo(){return this.document.fields.find((e=>"RelevantInfo"===e.type.name))}get substances(){return this.document.children.filter((e=>"Substance"===e.type.name)).map((t=>new e.Subheading.Medicine.Substance(t)))}}t.Medicine=n,function(e){e.Substance=class{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Pn}get activeSubstance(){return this.document.fields.find((e=>"ActiveSubstance"===e.type.name))}get potency(){return this.document.fields.find((e=>"Potency"===e.type.name))}}}(n=t.Medicine||(t.Medicine={}));t.Prescription=class{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Ln}get generalInformation(){return this.document.fields.find((e=>"GeneralInformation"===e.type.name))}get prescriptionFreeText(){return this.document.fields.find((e=>"PrescriptionFreeText"===e.type.name))}}}(t=e.Subheading||(e.Subheading={}))}(Wi||(Wi={}));class zi{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Rn}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get dateExpired(){return this.document.fields.find((e=>"DateExpired"===e.type.name))}get dateIssued(){return this.document.fields.find((e=>"DateIssued"===e.type.name))}get documentCode(){return this.document.fields.find((e=>"DocumentCode"===e.type.name))}get firstName(){return this.document.fields.find((e=>"FirstName"===e.type.name))}get lastName(){return this.document.fields.find((e=>"LastName"===e.type.name))}get optional(){return this.document.fields.find((e=>"Optional"===e.type.name))}}class Hi{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return _n}get elements(){return this.document.children.filter((e=>"Element"===e.type.name)).map((e=>new Hi.Element(e)))}}!function(e){class t{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return jn}get applicationIdentifier(){return this.document.fields.find((e=>"ApplicationIdentifier"===e.type.name))}get dataTitle(){return this.document.fields.find((e=>"DataTitle"===e.type.name))}get elementDescription(){return this.document.fields.find((e=>"ElementDescription"===e.type.name))}get rawValue(){return this.document.fields.find((e=>"RawValue"===e.type.name))}get validationErrors(){return this.document.children.filter((e=>"ValidationError"===e.type.name)).map((t=>new e.Element.ValidationError(t)))}}e.Element=t,function(e){e.ValidationError=class{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Mn}get code(){return this.document.fields.find((e=>"Code"===e.type.name))}get reason(){return this.document.fields.find((e=>"Reason"===e.type.name))}}}(t=e.Element||(e.Element={}))}(Hi||(Hi={}));class Ui{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Fn}get amount(){return this.document.fields.find((e=>"Amount"===e.type.name))}get characterSet(){return this.document.fields.find((e=>"CharacterSet"===e.type.name))}get identification(){return this.document.fields.find((e=>"Identification"===e.type.name))}get information(){return this.document.fields.find((e=>"Information"===e.type.name))}get purpose(){return this.document.fields.find((e=>"Purpose"===e.type.name))}get receiverBIC(){return this.document.fields.find((e=>"ReceiverBIC"===e.type.name))}get receiverIBAN(){return this.document.fields.find((e=>"ReceiverIBAN"===e.type.name))}get receiverName(){return this.document.fields.find((e=>"ReceiverName"===e.type.name))}get remittance(){return this.document.fields.find((e=>"Remittance"===e.type.name))}get serviceTag(){return this.document.fields.find((e=>"ServiceTag"===e.type.name))}get version(){return this.document.fields.find((e=>"Version"===e.type.name))}}class Zi{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Nn}get accident(){return this.document.fields.find((e=>"Accident"===e.type.name))}get assignedToAccidentInsuranceDoctor(){return this.document.fields.find((e=>"AssignedToAccidentInsuranceDoctor"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get childNeedsCareFrom(){return this.document.fields.find((e=>"ChildNeedsCareFrom"===e.type.name))}get childNeedsCareUntil(){return this.document.fields.find((e=>"ChildNeedsCareUntil"===e.type.name))}get diagnose(){return this.document.fields.find((e=>"Diagnose"===e.type.name))}get diagnosedOn(){return this.document.fields.find((e=>"DiagnosedOn"===e.type.name))}get doctorNumber(){return this.document.fields.find((e=>"DoctorNumber"===e.type.name))}get documentDate(){return this.document.fields.find((e=>"DocumentDate"===e.type.name))}get firstName(){return this.document.fields.find((e=>"FirstName"===e.type.name))}get healthInsuranceNumber(){return this.document.fields.find((e=>"HealthInsuranceNumber"===e.type.name))}get incapableOfWorkSince(){return this.document.fields.find((e=>"IncapableOfWorkSince"===e.type.name))}get incapableOfWorkUntil(){return this.document.fields.find((e=>"IncapableOfWorkUntil"===e.type.name))}get initialCertificate(){return this.document.fields.find((e=>"InitialCertificate"===e.type.name))}get insuredPersonNumber(){return this.document.fields.find((e=>"InsuredPersonNumber"===e.type.name))}get lastName(){return this.document.fields.find((e=>"LastName"===e.type.name))}get placeOfOperationNumber(){return this.document.fields.find((e=>"PlaceOfOperationNumber"===e.type.name))}get renewedCertificate(){return this.document.fields.find((e=>"RenewedCertificate"===e.type.name))}get requiresCare(){return this.document.fields.find((e=>"RequiresCare"===e.type.name))}get status(){return this.document.fields.find((e=>"Status"===e.type.name))}get workAccident(){return this.document.fields.find((e=>"WorkAccident"===e.type.name))}}class Gi{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Vn}get version(){const e=this.document.children.find((e=>"Version"===e.type.name));return new Gi.Version(e)}get source(){const e=this.document.children.find((e=>"Source"===e.type.name));return e?new Gi.Source(e):void 0}get kind(){const e=this.document.children.find((e=>"Kind"===e.type.name));return e?new Gi.Kind(e):void 0}get xml(){const e=this.document.children.find((e=>"XML"===e.type.name));return e?new Gi.XML(e):void 0}get name(){const e=this.document.children.find((e=>"Name"===e.type.name));return e?new Gi.Name(e):void 0}get firstName(){const e=this.document.children.find((e=>"FirstName"===e.type.name));return e?new Gi.FirstName(e):void 0}get nickname(){const e=this.document.children.find((e=>"Nickname"===e.type.name));return e?new Gi.Nickname(e):void 0}get birthday(){const e=this.document.children.find((e=>"Birthday"===e.type.name));return e?new Gi.Birthday(e):void 0}get anniversary(){const e=this.document.children.find((e=>"Anniversary"===e.type.name));return e?new Gi.Anniversary(e):void 0}get gender(){const e=this.document.children.find((e=>"Gender"===e.type.name));return e?new Gi.Gender(e):void 0}get deliveryAddress(){const e=this.document.children.find((e=>"DeliveryAddress"===e.type.name));return e?new Gi.DeliveryAddress(e):void 0}get photo(){const e=this.document.children.find((e=>"Photo"===e.type.name));return e?new Gi.Photo(e):void 0}get telephoneNumber(){const e=this.document.children.find((e=>"TelephoneNumber"===e.type.name));return e?new Gi.TelephoneNumber(e):void 0}get email(){const e=this.document.children.find((e=>"Email"===e.type.name));return e?new Gi.Email(e):void 0}get impp(){const e=this.document.children.find((e=>"IMPP"===e.type.name));return e?new Gi.IMPP(e):void 0}get languages(){const e=this.document.children.find((e=>"Languages"===e.type.name));return e?new Gi.Languages(e):void 0}get timeZone(){const e=this.document.children.find((e=>"TimeZone"===e.type.name));return e?new Gi.TimeZone(e):void 0}get geoLocation(){const e=this.document.children.find((e=>"GeoLocation"===e.type.name));return e?new Gi.GeoLocation(e):void 0}get title(){const e=this.document.children.find((e=>"Title"===e.type.name));return e?new Gi.Title(e):void 0}get role(){const e=this.document.children.find((e=>"Role"===e.type.name));return e?new Gi.Role(e):void 0}get logo(){const e=this.document.children.find((e=>"Logo"===e.type.name));return e?new Gi.Logo(e):void 0}get organisation(){const e=this.document.children.find((e=>"Organisation"===e.type.name));return e?new Gi.Organisation(e):void 0}get member(){const e=this.document.children.find((e=>"Member"===e.type.name));return e?new Gi.Member(e):void 0}get related(){const e=this.document.children.find((e=>"Related"===e.type.name));return e?new Gi.Related(e):void 0}get categories(){const e=this.document.children.find((e=>"Categories"===e.type.name));return e?new Gi.Categories(e):void 0}get note(){const e=this.document.children.find((e=>"Note"===e.type.name));return e?new Gi.Note(e):void 0}get productId(){const e=this.document.children.find((e=>"ProductId"===e.type.name));return e?new Gi.ProductId(e):void 0}get revision(){const e=this.document.children.find((e=>"Revision"===e.type.name));return e?new Gi.Revision(e):void 0}get sound(){const e=this.document.children.find((e=>"Sound"===e.type.name));return e?new Gi.Sound(e):void 0}get uid(){const e=this.document.children.find((e=>"UID"===e.type.name));return e?new Gi.UID(e):void 0}get clientPIDMap(){const e=this.document.children.find((e=>"ClientPIDMap"===e.type.name));return e?new Gi.ClientPIDMap(e):void 0}get url(){const e=this.document.children.find((e=>"URL"===e.type.name));return e?new Gi.URL(e):void 0}get publicKey(){const e=this.document.children.find((e=>"PublicKey"===e.type.name));return e?new Gi.PublicKey(e):void 0}get busyTimeURL(){const e=this.document.children.find((e=>"BusyTimeURL"===e.type.name));return e?new Gi.BusyTimeURL(e):void 0}get calendarURIForRequests(){const e=this.document.children.find((e=>"CalendarURIForRequests"===e.type.name));return e?new Gi.CalendarURIForRequests(e):void 0}get calendarURI(){const e=this.document.children.find((e=>"CalendarURI"===e.type.name));return e?new Gi.CalendarURI(e):void 0}get customs(){return this.document.children.filter((e=>"Custom"===e.type.name)).map((e=>new Gi.Custom(e)))}}!function(e){class t{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}get rawValue(){return this.document.fields.find((e=>"RawValue"===e.type.name))}get typeModifiers(){return this.document.fields.filter((e=>"TypeModifier"===e.type.name))}get values(){return this.document.fields.filter((e=>"Value"===e.type.name))}}e.Entry=t;e.Version=class extends t{constructor(e){super(e)}requiredDocumentType(){return zn}};e.Source=class extends t{constructor(e){super(e)}requiredDocumentType(){return Hn}};e.Kind=class extends t{constructor(e){super(e)}requiredDocumentType(){return Un}};e.XML=class extends t{constructor(e){super(e)}requiredDocumentType(){return Zn}};e.Name=class extends t{constructor(e){super(e)}requiredDocumentType(){return Gn}};e.FirstName=class extends t{constructor(e){super(e)}requiredDocumentType(){return $n}};e.Nickname=class extends t{constructor(e){super(e)}requiredDocumentType(){return Yn}};e.Birthday=class extends t{constructor(e){super(e)}requiredDocumentType(){return Qn}};e.Anniversary=class extends t{constructor(e){super(e)}requiredDocumentType(){return Xn}};e.Gender=class extends t{constructor(e){super(e)}requiredDocumentType(){return qn}};e.DeliveryAddress=class extends t{constructor(e){super(e)}requiredDocumentType(){return Kn}};e.Photo=class extends t{constructor(e){super(e)}requiredDocumentType(){return Jn}};e.TelephoneNumber=class extends t{constructor(e){super(e)}requiredDocumentType(){return ei}};e.Email=class extends t{constructor(e){super(e)}requiredDocumentType(){return ti}};e.IMPP=class extends t{constructor(e){super(e)}requiredDocumentType(){return ni}};e.Languages=class extends t{constructor(e){super(e)}requiredDocumentType(){return ii}};e.TimeZone=class extends t{constructor(e){super(e)}requiredDocumentType(){return oi}};e.GeoLocation=class extends t{constructor(e){super(e)}requiredDocumentType(){return ri}};e.Title=class extends t{constructor(e){super(e)}requiredDocumentType(){return ai}};e.Role=class extends t{constructor(e){super(e)}requiredDocumentType(){return si}};e.Logo=class extends t{constructor(e){super(e)}requiredDocumentType(){return ci}};e.Organisation=class extends t{constructor(e){super(e)}requiredDocumentType(){return li}};e.Member=class extends t{constructor(e){super(e)}requiredDocumentType(){return ui}};e.Related=class extends t{constructor(e){super(e)}requiredDocumentType(){return di}};e.Categories=class extends t{constructor(e){super(e)}requiredDocumentType(){return mi}};e.Note=class extends t{constructor(e){super(e)}requiredDocumentType(){return pi}};e.ProductId=class extends t{constructor(e){super(e)}requiredDocumentType(){return hi}};e.Revision=class extends t{constructor(e){super(e)}requiredDocumentType(){return fi}};e.Sound=class extends t{constructor(e){super(e)}requiredDocumentType(){return gi}};e.UID=class extends t{constructor(e){super(e)}requiredDocumentType(){return vi}};e.ClientPIDMap=class extends t{constructor(e){super(e)}requiredDocumentType(){return bi}};e.URL=class extends t{constructor(e){super(e)}requiredDocumentType(){return yi}};e.PublicKey=class extends t{constructor(e){super(e)}requiredDocumentType(){return Ci}};e.BusyTimeURL=class extends t{constructor(e){super(e)}requiredDocumentType(){return Ai}};e.CalendarURIForRequests=class extends t{constructor(e){super(e)}requiredDocumentType(){return Si}};e.CalendarURI=class extends t{constructor(e){super(e)}requiredDocumentType(){return wi}};e.Custom=class extends t{constructor(e){super(e)}requiredDocumentType(){return xi}}}(Gi||(Gi={}));class $i{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Ei}get issuerIdentificationNumber(){return this.document.fields.find((e=>"IssuerIdentificationNumber"===e.type.name))}get jurisdictionVersionNumber(){return this.document.fields.find((e=>"JurisdictionVersionNumber"===e.type.name))}get version(){return this.document.fields.find((e=>"Version"===e.type.name))}get titleData(){const e=this.document.children.find((e=>"TitleData"===e.type.name));return e?new $i.TitleData(e):void 0}get registrationData(){const e=this.document.children.find((e=>"RegistrationData"===e.type.name));return e?new $i.RegistrationData(e):void 0}get motorCarrierData(){const e=this.document.children.find((e=>"MotorCarrierData"===e.type.name));return e?new $i.MotorCarrierData(e):void 0}get registrantAndVehicleData(){const e=this.document.children.find((e=>"RegistrantAndVehicleData"===e.type.name));return e?new $i.RegistrantAndVehicleData(e):void 0}get vehicleOwnerData(){const e=this.document.children.find((e=>"VehicleOwnerData"===e.type.name));return e?new $i.VehicleOwnerData(e):void 0}get vehicleData(){const e=this.document.children.find((e=>"VehicleData"===e.type.name));return e?new $i.VehicleData(e):void 0}get vehicleSafetyInspectionData(){const e=this.document.children.find((e=>"VehicleSafetyInspectionData"===e.type.name));return e?new $i.VehicleSafetyInspectionData(e):void 0}get driverLicense(){const e=this.document.children.find((e=>"DriverLicense"===e.type.name));return e?new $i.DriverLicense(e):void 0}get idCard(){const e=this.document.children.find((e=>"IDCard"===e.type.name));return e?new $i.IDCard(e):void 0}get enhancedDriverLicense(){const e=this.document.children.find((e=>"EnhancedDriverLicense"===e.type.name));return e?new $i.EnhancedDriverLicense(e):void 0}get rawDocument(){const e=this.document.children.find((e=>"RawDocument"===e.type.name));return new $i.RawDocument(e)}}!function(e){e.TitleData=class{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Oi}get addressCity(){return this.document.fields.find((e=>"AddressCity"===e.type.name))}get addressJurisdictionCode(){return this.document.fields.find((e=>"AddressJurisdictionCode"===e.type.name))}get addressStreet(){return this.document.fields.find((e=>"AddressStreet"===e.type.name))}get addressZipCode(){return this.document.fields.find((e=>"AddressZipCode"===e.type.name))}get businessName(){return this.document.fields.find((e=>"BusinessName"===e.type.name))}get familyName(){return this.document.fields.find((e=>"FamilyName"===e.type.name))}get firstLienHolderId(){return this.document.fields.find((e=>"FirstLienHolderId"===e.type.name))}get firstLienHolderName(){return this.document.fields.find((e=>"FirstLienHolderName"===e.type.name))}get givenName(){return this.document.fields.find((e=>"GivenName"===e.type.name))}get newUsedIndicator(){return this.document.fields.find((e=>"NewUsedIndicator"===e.type.name))}get odometerDate(){return this.document.fields.find((e=>"OdometerDate"===e.type.name))}get odometerDisclosure(){return this.document.fields.find((e=>"OdometerDisclosure"===e.type.name))}get odometerReadingKilometers(){return this.document.fields.find((e=>"OdometerReadingKilometers"===e.type.name))}get odometerReadingMileage(){return this.document.fields.find((e=>"OdometerReadingMileage"===e.type.name))}get previousTitleNumber(){return this.document.fields.find((e=>"PreviousTitleNumber"===e.type.name))}get previousTitlingJurisdiction(){return this.document.fields.find((e=>"PreviousTitlingJurisdiction"===e.type.name))}get titleBrand(){return this.document.fields.find((e=>"TitleBrand"===e.type.name))}get titleIssueDate(){return this.document.fields.find((e=>"TitleIssueDate"===e.type.name))}get titleNumber(){return this.document.fields.find((e=>"TitleNumber"===e.type.name))}get titlingJurisdiction(){return this.document.fields.find((e=>"TitlingJurisdiction"===e.type.name))}get vehicleBodyStyle(){return this.document.fields.find((e=>"VehicleBodyStyle"===e.type.name))}get vehicleColor(){return this.document.fields.find((e=>"VehicleColor"===e.type.name))}get vehicleIdentificationNumber(){return this.document.fields.find((e=>"VehicleIdentificationNumber"===e.type.name))}get vehicleMake(){return this.document.fields.find((e=>"VehicleMake"===e.type.name))}get vehicleModel(){return this.document.fields.find((e=>"VehicleModel"===e.type.name))}get vehicleModelYear(){return this.document.fields.find((e=>"VehicleModelYear"===e.type.name))}get vehiclePurchaseDate(){return this.document.fields.find((e=>"VehiclePurchaseDate"===e.type.name))}};e.RegistrationData=class{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Di}get addressCity(){return this.document.fields.find((e=>"AddressCity"===e.type.name))}get addressJurisdictionCode(){return this.document.fields.find((e=>"AddressJurisdictionCode"===e.type.name))}get addressStreet(){return this.document.fields.find((e=>"AddressStreet"===e.type.name))}get addressZipCode(){return this.document.fields.find((e=>"AddressZipCode"===e.type.name))}get axles(){return this.document.fields.find((e=>"Axles"===e.type.name))}get businessName(){return this.document.fields.find((e=>"BusinessName"===e.type.name))}get fuel(){return this.document.fields.find((e=>"Fuel"===e.type.name))}get grossVehicleWeight(){return this.document.fields.find((e=>"GrossVehicleWeight"===e.type.name))}get registrantFamilyName(){return this.document.fields.find((e=>"RegistrantFamilyName"===e.type.name))}get registrantGivenName(){return this.document.fields.find((e=>"RegistrantGivenName"===e.type.name))}get registrationExpiryDate(){return this.document.fields.find((e=>"RegistrationExpiryDate"===e.type.name))}get registrationIssueDate(){return this.document.fields.find((e=>"RegistrationIssueDate"===e.type.name))}get registrationPlateNumber(){return this.document.fields.find((e=>"RegistrationPlateNumber"===e.type.name))}get registrationWindowStickerDecal(){return this.document.fields.find((e=>"RegistrationWindowStickerDecal"===e.type.name))}get registrationYear(){return this.document.fields.find((e=>"RegistrationYear"===e.type.name))}get vehicleBodyStyle(){return this.document.fields.find((e=>"VehicleBodyStyle"===e.type.name))}get vehicleColor(){return this.document.fields.find((e=>"VehicleColor"===e.type.name))}get vehicleIdentificationNumber(){return this.document.fields.find((e=>"VehicleIdentificationNumber"===e.type.name))}get vehicleMake(){return this.document.fields.find((e=>"VehicleMake"===e.type.name))}get vehicleModel(){return this.document.fields.find((e=>"VehicleModel"===e.type.name))}get vehicleModelYear(){return this.document.fields.find((e=>"VehicleModelYear"===e.type.name))}get vehicleUse(){return this.document.fields.find((e=>"VehicleUse"===e.type.name))}};e.MotorCarrierData=class{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Ti}get carrierName(){return this.document.fields.find((e=>"CarrierName"===e.type.name))}get city(){return this.document.fields.find((e=>"City"===e.type.name))}get jurisdiction(){return this.document.fields.find((e=>"Jurisdiction"===e.type.name))}get streetAddress(){return this.document.fields.find((e=>"StreetAddress"===e.type.name))}get usdotNumber(){return this.document.fields.find((e=>"USDOTNumber"===e.type.name))}get zip(){return this.document.fields.find((e=>"Zip"===e.type.name))}};e.RegistrantAndVehicleData=class{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Bi}get address(){return this.document.fields.find((e=>"Address"===e.type.name))}get baseJurisdictionRegisteredWeight(){return this.document.fields.find((e=>"BaseJurisdictionRegisteredWeight"===e.type.name))}get carrierNameRegistrant(){return this.document.fields.find((e=>"CarrierNameRegistrant"===e.type.name))}get city(){return this.document.fields.find((e=>"City"===e.type.name))}get grossVehicleWeight(){return this.document.fields.find((e=>"GrossVehicleWeight"===e.type.name))}get jurisdiction(){return this.document.fields.find((e=>"Jurisdiction"===e.type.name))}get modelYear(){return this.document.fields.find((e=>"ModelYear"===e.type.name))}get numberOfSeats(){return this.document.fields.find((e=>"NumberOfSeats"===e.type.name))}get registrationDecalNumber(){return this.document.fields.find((e=>"RegistrationDecalNumber"===e.type.name))}get registrationEnforcementDate(){return this.document.fields.find((e=>"RegistrationEnforcementDate"===e.type.name))}get registrationExpirationDate(){return this.document.fields.find((e=>"RegistrationExpirationDate"===e.type.name))}get registrationIssueDate(){return this.document.fields.find((e=>"RegistrationIssueDate"===e.type.name))}get registrationPlateNumber(){return this.document.fields.find((e=>"RegistrationPlateNumber"===e.type.name))}get registrationYear(){return this.document.fields.find((e=>"RegistrationYear"===e.type.name))}get typeOfVehicle(){return this.document.fields.find((e=>"TypeOfVehicle"===e.type.name))}get unitNumber(){return this.document.fields.find((e=>"UnitNumber"===e.type.name))}get vehicleIdentificationNumber(){return this.document.fields.find((e=>"VehicleIdentificationNumber"===e.type.name))}get vehicleMake(){return this.document.fields.find((e=>"VehicleMake"===e.type.name))}get zipCode(){return this.document.fields.find((e=>"ZipCode"===e.type.name))}};e.VehicleOwnerData=class{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return ki}get firstOwnerIdNumber(){return this.document.fields.find((e=>"FirstOwnerIdNumber"===e.type.name))}get firstOwnerLastName(){return this.document.fields.find((e=>"FirstOwnerLastName"===e.type.name))}get firstOwnerLegalStatus(){return this.document.fields.find((e=>"FirstOwnerLegalStatus"===e.type.name))}get firstOwnerMiddleName(){return this.document.fields.find((e=>"FirstOwnerMiddleName"===e.type.name))}get firstOwnerName(){return this.document.fields.find((e=>"FirstOwnerName"===e.type.name))}get firstOwnerTotalName(){return this.document.fields.find((e=>"FirstOwnerTotalName"===e.type.name))}get mailingAddress1(){return this.document.fields.find((e=>"MailingAddress1"===e.type.name))}get mailingAddress2(){return this.document.fields.find((e=>"MailingAddress2"===e.type.name))}get mailingCity(){return this.document.fields.find((e=>"MailingCity"===e.type.name))}get mailingJurisdictionCode(){return this.document.fields.find((e=>"MailingJurisdictionCode"===e.type.name))}get mailingZipCode(){return this.document.fields.find((e=>"MailingZipCode"===e.type.name))}get residenceAddress1(){return this.document.fields.find((e=>"ResidenceAddress1"===e.type.name))}get residenceAddress2(){return this.document.fields.find((e=>"ResidenceAddress2"===e.type.name))}get residenceCity(){return this.document.fields.find((e=>"ResidenceCity"===e.type.name))}get residenceJurisdictionCode(){return this.document.fields.find((e=>"ResidenceJurisdictionCode"===e.type.name))}get residenceZipCode(){return this.document.fields.find((e=>"ResidenceZipCode"===e.type.name))}get secondOwnerIdNumber(){return this.document.fields.find((e=>"SecondOwnerIdNumber"===e.type.name))}get secondOwnerLastName(){return this.document.fields.find((e=>"SecondOwnerLastName"===e.type.name))}get secondOwnerLegalStatus(){return this.document.fields.find((e=>"SecondOwnerLegalStatus"===e.type.name))}get secondOwnerMiddleName(){return this.document.fields.find((e=>"SecondOwnerMiddleName"===e.type.name))}get secondOwnerName(){return this.document.fields.find((e=>"SecondOwnerName"===e.type.name))}get secondOwnerTotalName(){return this.document.fields.find((e=>"SecondOwnerTotalName"===e.type.name))}};e.VehicleData=class{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Ii}get bodyStyle(){return this.document.fields.find((e=>"BodyStyle"===e.type.name))}get dateJunked(){return this.document.fields.find((e=>"DateJunked"===e.type.name))}get dateRecovered(){return this.document.fields.find((e=>"DateRecovered"===e.type.name))}get dateStolen(){return this.document.fields.find((e=>"DateStolen"===e.type.name))}get engineDisplacement(){return this.document.fields.find((e=>"EngineDisplacement"===e.type.name))}get engineSize(){return this.document.fields.find((e=>"EngineSize"===e.type.name))}get fuelType(){return this.document.fields.find((e=>"FuelType"===e.type.name))}get horsepower(){return this.document.fields.find((e=>"Horsepower"===e.type.name))}get iftaIndicator(){return this.document.fields.find((e=>"IFTAIndicator"===e.type.name))}get irpIndicator(){return this.document.fields.find((e=>"IRPIndicator"===e.type.name))}get junkedIndicator(){return this.document.fields.find((e=>"JunkedIndicator"===e.type.name))}get msrp(){return this.document.fields.find((e=>"MSRP"===e.type.name))}get majorCode(){return this.document.fields.find((e=>"MajorCode"===e.type.name))}get makeYear(){return this.document.fields.find((e=>"MakeYear"===e.type.name))}get manufactureGrossWeight(){return this.document.fields.find((e=>"ManufactureGrossWeight"===e.type.name))}get minorCode(){return this.document.fields.find((e=>"MinorCode"===e.type.name))}get numberOfAxles(){return this.document.fields.find((e=>"NumberOfAxles"===e.type.name))}get numberOfCylinders(){return this.document.fields.find((e=>"NumberOfCylinders"===e.type.name))}get numberOfDoors(){return this.document.fields.find((e=>"NumberOfDoors"===e.type.name))}get stolenIndicator(){return this.document.fields.find((e=>"StolenIndicator"===e.type.name))}get transmissionCode(){return this.document.fields.find((e=>"TransmissionCode"===e.type.name))}get unladenWeight(){return this.document.fields.find((e=>"UnladenWeight"===e.type.name))}get vltClacFromDate(){return this.document.fields.find((e=>"VLTClacFromDate"===e.type.name))}get vehicleIdNumber(){return this.document.fields.find((e=>"VehicleIdNumber"===e.type.name))}get vehicleIdentificationNumber(){return this.document.fields.find((e=>"VehicleIdentificationNumber"===e.type.name))}get vehicleMake(){return this.document.fields.find((e=>"VehicleMake"===e.type.name))}get vehicleModel(){return this.document.fields.find((e=>"VehicleModel"===e.type.name))}get vehicleStatusCode(){return this.document.fields.find((e=>"VehicleStatusCode"===e.type.name))}get vehicleTypeCode(){return this.document.fields.find((e=>"VehicleTypeCode"===e.type.name))}};e.VehicleSafetyInspectionData=class{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Pi}get inspectionAddress(){return this.document.fields.find((e=>"InspectionAddress"===e.type.name))}get inspectionAirPollutionDeviceConditions(){return this.document.fields.find((e=>"InspectionAirPollutionDeviceConditions"===e.type.name))}get inspectionFacilityIdentifier(){return this.document.fields.find((e=>"InspectionFacilityIdentifier"===e.type.name))}get inspectionFormOrStickerNumberCurrent(){return this.document.fields.find((e=>"InspectionFormOrStickerNumberCurrent"===e.type.name))}get inspectionFormOrStickerNumberPrevious(){return this.document.fields.find((e=>"InspectionFormOrStickerNumberPrevious"===e.type.name))}get inspectionSmogCertificateIndicator(){return this.document.fields.find((e=>"InspectionSmogCertificateIndicator"===e.type.name))}get inspectionStationNumber(){return this.document.fields.find((e=>"InspectionStationNumber"===e.type.name))}get inspectorIdentificationNumber(){return this.document.fields.find((e=>"InspectorIdentificationNumber"===e.type.name))}get odometerReadingAtInspection(){return this.document.fields.find((e=>"OdometerReadingAtInspection"===e.type.name))}get vehicleBodyType(){return this.document.fields.find((e=>"VehicleBodyType"===e.type.name))}get vehicleMake(){return this.document.fields.find((e=>"VehicleMake"===e.type.name))}get vehicleModelYear(){return this.document.fields.find((e=>"VehicleModelYear"===e.type.name))}};class t{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}get addressCity(){return this.document.fields.find((e=>"AddressCity"===e.type.name))}get addressJurisdictionCode(){return this.document.fields.find((e=>"AddressJurisdictionCode"===e.type.name))}get addressPostalCode(){return this.document.fields.find((e=>"AddressPostalCode"===e.type.name))}get addressStreet1(){return this.document.fields.find((e=>"AddressStreet1"===e.type.name))}get addressStreet2(){return this.document.fields.find((e=>"AddressStreet2"===e.type.name))}get adultInformation(){return this.document.fields.find((e=>"AdultInformation"===e.type.name))}get aliasFamilyName(){return this.document.fields.find((e=>"AliasFamilyName"===e.type.name))}get aliasGivenName(){return this.document.fields.find((e=>"AliasGivenName"===e.type.name))}get aliasMiddleName(){return this.document.fields.find((e=>"AliasMiddleName"===e.type.name))}get aliasPrefixName(){return this.document.fields.find((e=>"AliasPrefixName"===e.type.name))}get aliasSuffixName(){return this.document.fields.find((e=>"AliasSuffixName"===e.type.name))}get cardRevisionDate(){return this.document.fields.find((e=>"CardRevisionDate"===e.type.name))}get complianceType(){return this.document.fields.find((e=>"ComplianceType"===e.type.name))}get countryIdentification(){return this.document.fields.find((e=>"CountryIdentification"===e.type.name))}get customerFamilyName(){return this.document.fields.find((e=>"CustomerFamilyName"===e.type.name))}get customerFirstName(){return this.document.fields.find((e=>"CustomerFirstName"===e.type.name))}get customerGivenNames(){return this.document.fields.find((e=>"CustomerGivenNames"===e.type.name))}get customerIdNumber(){return this.document.fields.find((e=>"CustomerIdNumber"===e.type.name))}get customerMiddleName(){return this.document.fields.find((e=>"CustomerMiddleName"===e.type.name))}get dateOfBirth(){return this.document.fields.find((e=>"DateOfBirth"===e.type.name))}get documentDiscriminator(){return this.document.fields.find((e=>"DocumentDiscriminator"===e.type.name))}get documentExpirationDate(){return this.document.fields.find((e=>"DocumentExpirationDate"===e.type.name))}get documentIssueDate(){return this.document.fields.find((e=>"DocumentIssueDate"===e.type.name))}get driverAliasDateOfBirthField(){return this.document.fields.find((e=>"DriverAliasDateOfBirthField"===e.type.name))}get driverAliasFirstName(){return this.document.fields.find((e=>"DriverAliasFirstName"===e.type.name))}get driverAliasLastName(){return this.document.fields.find((e=>"DriverAliasLastName"===e.type.name))}get driverAliasSocialSecurityNumber(){return this.document.fields.find((e=>"DriverAliasSocialSecurityNumber"===e.type.name))}get driverLastName(){return this.document.fields.find((e=>"DriverLastName"===e.type.name))}get driverLicenseClassificationCode(){return this.document.fields.find((e=>"DriverLicenseClassificationCode"===e.type.name))}get driverLicenseEndorsementsCode(){return this.document.fields.find((e=>"DriverLicenseEndorsementsCode"===e.type.name))}get driverLicenseName(){return this.document.fields.find((e=>"DriverLicenseName"===e.type.name))}get driverLicenseRestrictionCode(){return this.document.fields.find((e=>"DriverLicenseRestrictionCode"===e.type.name))}get driverNamePrefix(){return this.document.fields.find((e=>"DriverNamePrefix"===e.type.name))}get driverNameSuffix(){return this.document.fields.find((e=>"DriverNameSuffix"===e.type.name))}get driverPermitClassificationCode(){return this.document.fields.find((e=>"DriverPermitClassificationCode"===e.type.name))}get driverPermitEndorsementCode(){return this.document.fields.find((e=>"DriverPermitEndorsementCode"===e.type.name))}get driverPermitIssueDate(){return this.document.fields.find((e=>"DriverPermitIssueDate"===e.type.name))}get driverPermitRestrictionCode(){return this.document.fields.find((e=>"DriverPermitRestrictionCode"===e.type.name))}get driverResidenceCity(){return this.document.fields.find((e=>"DriverResidenceCity"===e.type.name))}get driverResidenceJurisdictionCode(){return this.document.fields.find((e=>"DriverResidenceJurisdictionCode"===e.type.name))}get driverResidencePostalCode(){return this.document.fields.find((e=>"DriverResidencePostalCode"===e.type.name))}get driverResidenceStreetAddress1(){return this.document.fields.find((e=>"DriverResidenceStreetAddress1"===e.type.name))}get driverResidenceStreetAddress2(){return this.document.fields.find((e=>"DriverResidenceStreetAddress2"===e.type.name))}get familyNameTruncation(){return this.document.fields.find((e=>"FamilyNameTruncation"===e.type.name))}get federalCommercialVehicleCodes(){return this.document.fields.find((e=>"FederalCommercialVehicleCodes"===e.type.name))}get firstNameTruncation(){return this.document.fields.find((e=>"FirstNameTruncation"===e.type.name))}get hazmatEndorsementExpirationDate(){return this.document.fields.find((e=>"HAZMATEndorsementExpirationDate"===e.type.name))}get hairColor(){return this.document.fields.find((e=>"HairColor"===e.type.name))}get height(){return this.document.fields.find((e=>"Height"===e.type.name))}get inventoryControlNumber(){return this.document.fields.find((e=>"InventoryControlNumber"===e.type.name))}get issueTimeStamp(){return this.document.fields.find((e=>"IssueTimeStamp"===e.type.name))}get jurisdictionSpecificEndorsementCodeDescription(){return this.document.fields.find((e=>"JurisdictionSpecificEndorsementCodeDescription"===e.type.name))}get jurisdictionSpecificEndorsementCodes(){return this.document.fields.find((e=>"JurisdictionSpecificEndorsementCodes"===e.type.name))}get jurisdictionSpecificRestrictionCodeDescription(){return this.document.fields.find((e=>"JurisdictionSpecificRestrictionCodeDescription"===e.type.name))}get jurisdictionSpecificRestrictionCodes(){return this.document.fields.find((e=>"JurisdictionSpecificRestrictionCodes"===e.type.name))}get jurisdictionSpecificVehicleClass(){return this.document.fields.find((e=>"JurisdictionSpecificVehicleClass"===e.type.name))}get jurisdictionSpecificVehicleClassificationDescription(){return this.document.fields.find((e=>"JurisdictionSpecificVehicleClassificationDescription"===e.type.name))}get limitedDurationDocumentIndicator(){return this.document.fields.find((e=>"LimitedDurationDocumentIndicator"===e.type.name))}get middleNameTruncation(){return this.document.fields.find((e=>"MiddleNameTruncation"===e.type.name))}get nameSuffix(){return this.document.fields.find((e=>"NameSuffix"===e.type.name))}get nonResidentIndicator(){return this.document.fields.find((e=>"NonResidentIndicator"===e.type.name))}get numberOfDuplicates(){return this.document.fields.find((e=>"NumberOfDuplicates"===e.type.name))}get organDonor(){return this.document.fields.find((e=>"OrganDonor"===e.type.name))}get organDonorIndicator(){return this.document.fields.find((e=>"OrganDonorIndicator"===e.type.name))}get permitExpirationDate(){return this.document.fields.find((e=>"PermitExpirationDate"===e.type.name))}get permitIdentifier(){return this.document.fields.find((e=>"PermitIdentifier"===e.type.name))}get physicalDescriptionEyeColor(){return this.document.fields.find((e=>"PhysicalDescriptionEyeColor"===e.type.name))}get physicalDescriptionHeight(){return this.document.fields.find((e=>"PhysicalDescriptionHeight"===e.type.name))}get physicalDescriptionSex(){return this.document.fields.find((e=>"PhysicalDescriptionSex"===e.type.name))}get physicalDescriptionWeightRange(){return this.document.fields.find((e=>"PhysicalDescriptionWeightRange"===e.type.name))}get placeOfBirth(){return this.document.fields.find((e=>"PlaceOfBirth"===e.type.name))}get raceEthnicity(){return this.document.fields.find((e=>"RaceEthnicity"===e.type.name))}get socialSecurityNumber(){return this.document.fields.find((e=>"SocialSecurityNumber"===e.type.name))}get standardEndorsementCode(){return this.document.fields.find((e=>"StandardEndorsementCode"===e.type.name))}get standardRestrictionCode(){return this.document.fields.find((e=>"StandardRestrictionCode"===e.type.name))}get standardVehicleClassification(){return this.document.fields.find((e=>"StandardVehicleClassification"===e.type.name))}get under18Until(){return this.document.fields.find((e=>"Under18Until"===e.type.name))}get under19Until(){return this.document.fields.find((e=>"Under19Until"===e.type.name))}get under21Until(){return this.document.fields.find((e=>"Under21Until"===e.type.name))}get uniqueCustomerIdentifier(){return this.document.fields.find((e=>"UniqueCustomerIdentifier"===e.type.name))}get veteranIndicator(){return this.document.fields.find((e=>"VeteranIndicator"===e.type.name))}get weightKilograms(){return this.document.fields.find((e=>"WeightKilograms"===e.type.name))}get weightPounds(){return this.document.fields.find((e=>"WeightPounds"===e.type.name))}}e.DLID=t;e.DriverLicense=class extends t{constructor(e){super(e)}requiredDocumentType(){return Ri}};e.IDCard=class extends t{constructor(e){super(e)}requiredDocumentType(){return _i}};e.EnhancedDriverLicense=class extends t{constructor(e){super(e)}requiredDocumentType(){return ji}};e.RawDocument=class{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Mi}}}($i||($i={}));class Yi{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Fi}get dateOfManufacture(){return this.document.fields.find((e=>"DateOfManufacture"===e.type.name))}get expiryDateDay(){return this.document.fields.find((e=>"ExpiryDateDay"===e.type.name))}get expiryDateHour(){return this.document.fields.find((e=>"ExpiryDateHour"===e.type.name))}get expiryDateJulianDay(){return this.document.fields.find((e=>"ExpiryDateJulianDay"===e.type.name))}get expiryDateMonth(){return this.document.fields.find((e=>"ExpiryDateMonth"===e.type.name))}get expiryDateYear(){return this.document.fields.find((e=>"ExpiryDateYear"===e.type.name))}get hasPrimaryData(){return this.document.fields.find((e=>"HasPrimaryData"===e.type.name))}get hasSecondaryData(){return this.document.fields.find((e=>"HasSecondaryData"===e.type.name))}get labelerIdentificationCode(){return this.document.fields.find((e=>"LabelerIdentificationCode"===e.type.name))}get labelersProductOrCatalogNumber(){return this.document.fields.find((e=>"LabelersProductOrCatalogNumber"===e.type.name))}get linkCharacter(){return this.document.fields.find((e=>"LinkCharacter"===e.type.name))}get lotNumber(){return this.document.fields.find((e=>"LotNumber"===e.type.name))}get quantity(){return this.document.fields.find((e=>"Quantity"===e.type.name))}get serialNumber(){return this.document.fields.find((e=>"SerialNumber"===e.type.name))}get unitOfMeasureID(){return this.document.fields.find((e=>"UnitOfMeasureID"===e.type.name))}}const Qi="Check",Xi="USACheck",qi="UAECheck",Ki="FRACheck",Ji="ISRCheck",eo="KWTCheck",to="AUSCheck",no="INDCheck",io="CANCheck",oo="UnknownCheck";class ro{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}get fontType(){return this.document.fields.find((e=>"FontType"===e.type.name))}get rawString(){return this.document.fields.find((e=>"RawString"===e.type.name))}}class ao extends ro{constructor(e){super(e)}requiredDocumentType(){return Xi}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get auxiliaryOnUs(){return this.document.fields.find((e=>"AuxiliaryOnUs"===e.type.name))}get transitNumber(){return this.document.fields.find((e=>"TransitNumber"===e.type.name))}}class so extends ro{constructor(e){super(e)}requiredDocumentType(){return qi}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get chequeNumber(){return this.document.fields.find((e=>"ChequeNumber"===e.type.name))}get routingNumber(){return this.document.fields.find((e=>"RoutingNumber"===e.type.name))}}class co extends ro{constructor(e){super(e)}requiredDocumentType(){return Ki}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get chequeNumber(){return this.document.fields.find((e=>"ChequeNumber"===e.type.name))}get routingNumber(){return this.document.fields.find((e=>"RoutingNumber"===e.type.name))}}class lo extends ro{constructor(e){super(e)}requiredDocumentType(){return Ji}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get bankNumber(){return this.document.fields.find((e=>"BankNumber"===e.type.name))}get branchNumber(){return this.document.fields.find((e=>"BranchNumber"===e.type.name))}get chequeNumber(){return this.document.fields.find((e=>"ChequeNumber"===e.type.name))}}class uo extends ro{constructor(e){super(e)}requiredDocumentType(){return eo}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get chequeNumber(){return this.document.fields.find((e=>"ChequeNumber"===e.type.name))}get sortCode(){return this.document.fields.find((e=>"SortCode"===e.type.name))}}class mo extends ro{constructor(e){super(e)}requiredDocumentType(){return to}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get auxDomestic(){return this.document.fields.find((e=>"AuxDomestic"===e.type.name))}get bsb(){return this.document.fields.find((e=>"BSB"===e.type.name))}get extraAuxDomestic(){return this.document.fields.find((e=>"ExtraAuxDomestic"===e.type.name))}get transactionCode(){return this.document.fields.find((e=>"TransactionCode"===e.type.name))}}class po extends ro{constructor(e){super(e)}requiredDocumentType(){return no}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get serialNumber(){return this.document.fields.find((e=>"SerialNumber"===e.type.name))}get sortNumber(){return this.document.fields.find((e=>"SortNumber"===e.type.name))}get transactionCode(){return this.document.fields.find((e=>"TransactionCode"===e.type.name))}}class ho extends ro{constructor(e){super(e)}requiredDocumentType(){return io}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get bankNumber(){return this.document.fields.find((e=>"BankNumber"===e.type.name))}get chequeNumber(){return this.document.fields.find((e=>"ChequeNumber"===e.type.name))}get designationNumber(){return this.document.fields.find((e=>"DesignationNumber"===e.type.name))}get transactionCode(){return this.document.fields.find((e=>"TransactionCode"===e.type.name))}get transitNumber(){return this.document.fields.find((e=>"TransitNumber"===e.type.name))}}class fo extends ro{constructor(e){super(e)}requiredDocumentType(){return oo}}const go="CreditCard";class vo{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return go}get cardNumber(){return this.document.fields.find((e=>"CardNumber"===e.type.name))}get cardholderName(){return this.document.fields.find((e=>"CardholderName"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}}class bo extends X.a{constructor(){super(Q.a.DEFAULT_VIDEO_RESOLUTION_HD),this.ocrConfiguration=new m.TextPatternScannerConfiguration,this.onTextDetected=function(e){},this.finder.aspectRatio=new ce.AspectRatio({width:6,height:1}),this.userGuidance.title.text="Please hold the device over the text to start scanning"}static fromJson(e){const t=new bo;return this.mapFinderConfiguration(t,e),this._fromJson(t,e)}}class yo extends X.a{constructor(){super(Q.a.DEFAULT_VIDEO_RESOLUTION_HD),this.detectionConfiguration=new C.VinScannerConfiguration,this.onVinDetected=function(e){},this.finder.aspectRatio=new ce.AspectRatio({width:6,height:1}),this.userGuidance.title.text="Please hold the device over the vehicle identification number to start scanning"}static fromJson(e){const t=new yo;return this.mapFinderConfiguration(t,e),this._fromJson(t,e)}}class Co extends Error{constructor(e){super(e.description),this.name="LicenseError"}}class Ao{static throwIfMissingBuffer(e){Ao.throwIfMissing(e,"ImageBuffer may not be null")}static throwIfMissing(e,t){if(!e)throw new Error(t)}}var So=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class wo{constructor(e,t){this._sdk=e,this._token=t}analyze(e,t="COPY_IMAGE"){return So(this,void 0,void 0,(function*(){Ao.throwIfMissingBuffer(e);const n=this._sdk.getBridge(t);return yield n.documentQualityAnalyzerAnalyze(this._token,e)}))}release(){return So(this,void 0,void 0,(function*(){yield this._sdk.bridge.copyArgs.releaseObject(this._token)}))}}var xo=n(38),Eo=n(0),Oo=n(107),Do=n(36),To=n(3),Bo=n(9);var ko=Eo.createContext(null);function Io(){return Eo.useContext(ko)}var Po="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Lo=n(6);var Ro=function(e){const{children:t,theme:n}=e,i=Io(),o=Eo.useMemo((()=>{const e=null===i?n:function(e,t){if("function"==typeof t)return t(e);return Object(To.a)({},e,t)}(i,n);return null!=e&&(e[Po]=null!==i),e}),[n,i]);return Object(Lo.jsx)(ko.Provider,{value:o,children:t})},_o=n(33),jo=n(82);const Mo={};function Fo(e,t,n,i=!1){return Eo.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const r=n(o),a=e?Object(To.a)({},t,{[e]:r}):r;return i?()=>a:a}return e?Object(To.a)({},t,{[e]:n}):Object(To.a)({},t,n)}),[e,t,n,i])}var No=function(e){const{children:t,theme:n,themeId:i}=e,o=Object(jo.a)(Mo),r=Io()||Mo,a=Fo(i,o,n),s=Fo(i,r,n,!0);return Object(Lo.jsx)(Ro,{theme:s,children:Object(Lo.jsx)(_o.a.Provider,{value:a,children:t})})},Vo=n(46);const Wo=["theme"];function zo(e){let{theme:t}=e,n=Object(Bo.a)(e,Wo);const i=t[Vo.a];return Object(Lo.jsx)(No,Object(To.a)({},n,{themeId:i?Vo.a:void 0,theme:i||t}))}var Ho=n(11),Uo=n(59),Zo=n(109),Go=n(136),$o=n(67);const Yo=["sx"];function Qo(e){const{sx:t}=e,n=Object(Bo.a)(e,Yo),{systemProps:i,otherProps:o}=(e=>{var t,n;const i={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:$o.a;return Object.keys(e).forEach((t=>{o[t]?i.systemProps[t]=e[t]:i.otherProps[t]=e[t]})),i})(n);let r;return r=Array.isArray(t)?[i,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Object(Go.b)(n)?Object(To.a)({},i,n):i}:Object(To.a)({},i,t),Object(To.a)({},o,{sx:r})}var Xo=n(81);const qo=["className","component"];var Ko=n(153),Jo=n(133),er=n(189);var tr=Object(er.a)("MuiBox",["root"]);const nr=Object(Jo.a)();var ir=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:i="MuiBox-root",generateClassName:o}=e,r=Object(Uo.a)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Zo.a);return Eo.forwardRef((function(e,a){const s=Object(Xo.a)(n),c=Qo(e),{className:l,component:u="div"}=c,d=Object(Bo.a)(c,qo);return Object(Lo.jsx)(r,Object(To.a)({as:u,ref:a,className:Object(Ho.a)(l,o?o(i):i),theme:t&&s[t]||s},d))}))}({themeId:Vo.a,defaultTheme:nr,defaultClassName:tr.root,generateClassName:Ko.a.generate}),or=n(5),rr=n(190),ar=n(12),sr=n(17),cr=n(13),lr=n(193);var ur=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},dr=n(152);function mr(e){return Object(dr.a)("MuiPaper",e)}Object(er.a)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const pr=["className","component","elevation","square","variant"],hr=Object(ar.a)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return Object(To.a)({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&Object(To.a)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Object(lr.a)("#fff",ur(t.elevation))}, ${Object(lr.a)("#fff",ur(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var fr=Eo.forwardRef((function(e,t){const n=Object(sr.a)({props:e,name:"MuiPaper"}),{className:i,component:o="div",elevation:r=1,square:a=!1,variant:s="elevation"}=n,c=Object(Bo.a)(n,pr),l=Object(To.a)({},n,{component:o,elevation:r,square:a,variant:s}),u=(e=>{const{square:t,elevation:n,variant:i,classes:o}=e,r={root:["root",i,!t&&"rounded","elevation"===i&&`elevation${n}`]};return Object(rr.a)(r,mr,o)})(l);return Object(Lo.jsx)(hr,Object(To.a)({as:o,ownerState:l,className:Object(Ho.a)(u.root,i),ref:t},c))}));function gr(e){return Object(dr.a)("MuiAppBar",e)}Object(er.a)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const vr=["className","color","enableColorOnDark","position"],br=(e,t)=>e?`${null==e?void 0:e.replace(")","")}, ${t})`:t,yr=Object(ar.a)(fr,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Object(cr.a)(n.position)}`],t[`color${Object(cr.a)(n.color)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[900];return Object(To.a)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===t.position&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===t.position&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===t.position&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"static"===t.position&&{position:"static"},"relative"===t.position&&{position:"relative"},!e.vars&&Object(To.a)({},"default"===t.color&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&"default"!==t.color&&"inherit"!==t.color&&"transparent"!==t.color&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},"inherit"===t.color&&{color:"inherit"},"dark"===e.palette.mode&&!t.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===t.color&&Object(To.a)({backgroundColor:"transparent",color:"inherit"},"dark"===e.palette.mode&&{backgroundImage:"none"})),e.vars&&Object(To.a)({},"default"===t.color&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:br(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:br(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:br(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:br(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===t.color?"inherit":"var(--AppBar-color)"},"transparent"===t.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}));var Cr=Eo.forwardRef((function(e,t){const n=Object(sr.a)({props:e,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:r=!1,position:a="fixed"}=n,s=Object(Bo.a)(n,vr),c=Object(To.a)({},n,{color:o,position:a,enableColorOnDark:r}),l=(e=>{const{color:t,position:n,classes:i}=e,o={root:["root",`color${Object(cr.a)(t)}`,`position${Object(cr.a)(n)}`]};return Object(rr.a)(o,gr,i)})(c);return Object(Lo.jsx)(yr,Object(To.a)({square:!0,component:"header",ownerState:c,elevation:4,className:Object(Ho.a)(l.root,i,"fixed"===a&&"mui-fixed"),ref:t},s))}));function Ar(e){return Object(dr.a)("MuiToolbar",e)}Object(er.a)("MuiToolbar",["root","gutters","regular","dense"]);const Sr=["className","component","disableGutters","variant"],wr=Object(ar.a)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((({theme:e,ownerState:t})=>Object(To.a)({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},"dense"===t.variant&&{minHeight:48})),(({theme:e,ownerState:t})=>"regular"===t.variant&&e.mixins.toolbar));var xr=Eo.forwardRef((function(e,t){const n=Object(sr.a)({props:e,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:r=!1,variant:a="regular"}=n,s=Object(Bo.a)(n,Sr),c=Object(To.a)({},n,{component:o,disableGutters:r,variant:a}),l=(e=>{const{classes:t,disableGutters:n,variant:i}=e,o={root:["root",!n&&"gutters",i]};return Object(rr.a)(o,Ar,t)})(c);return Object(Lo.jsx)(wr,Object(To.a)({as:o,className:Object(Ho.a)(l.root,i),ref:t,ownerState:c},s))}));function Er(e){return Object(dr.a)("MuiTypography",e)}Object(er.a)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Or=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Dr=Object(ar.a)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${Object(cr.a)(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Object(To.a)({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),Tr={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Br={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var kr=Eo.forwardRef((function(e,t){const n=Object(sr.a)({props:e,name:"MuiTypography"}),i=(e=>Br[e]||e)(n.color),o=Qo(Object(To.a)({},n,{color:i})),{align:r="inherit",className:a,component:s,gutterBottom:c=!1,noWrap:l=!1,paragraph:u=!1,variant:d="body1",variantMapping:m=Tr}=o,p=Object(Bo.a)(o,Or),h=Object(To.a)({},o,{align:r,color:i,className:a,component:s,gutterBottom:c,noWrap:l,paragraph:u,variant:d,variantMapping:m}),f=s||(u?"p":m[d]||Tr[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:i,paragraph:o,variant:r,classes:a}=e,s={root:["root",r,"inherit"!==e.align&&`align${Object(cr.a)(t)}`,n&&"gutterBottom",i&&"noWrap",o&&"paragraph"]};return Object(rr.a)(s,Er,a)})(h);return Object(Lo.jsx)(Dr,Object(To.a)({as:f,ref:t,ownerState:h,className:Object(Ho.a)(g.root,a)},p))})),Ir=n(83),Pr=n.n(Ir);const Lr="var(--1-sb-dvh, 1vh)";function Rr(){const e=Object(Eo.useMemo)((()=>{var e,t;return null===(t=null===(e=null===window||void 0===window?void 0:window.CSS)||void 0===e?void 0:e.supports)||void 0===t?void 0:t.call(e,"height: 100dvh")}),[]),t=()=>{var t=e?"1dvh":window.innerHeight/100+"px";document.documentElement.style.setProperty("--1-sb-dvh",t)};return Object(Eo.useEffect)((()=>{if(t(),!e)return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}})),null}var _r=n(57),jr=n(15),Mr=n(155),Fr=n(30),Nr=n(48),Vr=n(77);function Wr(e,t){return Wr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wr(e,t)}function zr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Wr(e,t)}var Hr=Eo.default.createContext(null);function Ur(e,t){var n=Object.create(null);return e&&Eo.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(Eo.isValidElement)(e)?t(e):e}(e)})),n}function Zr(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Gr(e,t,n){var i=Ur(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var i,o=Object.create(null),r=[];for(var a in e)a in t?r.length&&(o[a]=r,r=[]):r.push(a);var s={};for(var c in t){if(o[c])for(i=0;i<o[c].length;i++){var l=o[c][i];s[o[c][i]]=n(l)}s[c]=n(c)}for(i=0;i<r.length;i++)s[r[i]]=n(r[i]);return s}(t,i);return Object.keys(o).forEach((function(r){var a=o[r];if(Object(Eo.isValidElement)(a)){var s=r in t,c=r in i,l=t[r],u=Object(Eo.isValidElement)(l)&&!l.props.in;!c||s&&!u?c||!s||u?c&&s&&Object(Eo.isValidElement)(l)&&(o[r]=Object(Eo.cloneElement)(a,{onExited:n.bind(null,a),in:l.props.in,exit:Zr(a,"exit",e),enter:Zr(a,"enter",e)})):o[r]=Object(Eo.cloneElement)(a,{in:!1}):o[r]=Object(Eo.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:Zr(a,"exit",e),enter:Zr(a,"enter",e)})}})),o}var $r=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Yr=function(e){function t(t,n){var i,o=(i=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(i));return i.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},i}zr(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,i,o=t.children,r=t.handleExited;return{children:t.firstRender?(n=e,i=r,Ur(n.children,(function(e){return Object(Eo.cloneElement)(e,{onExited:i.bind(null,e),in:!0,appear:Zr(e,"appear",n),enter:Zr(e,"enter",n),exit:Zr(e,"exit",n)})}))):Gr(e,o,r),firstRender:!1}},n.handleExited=function(e,t){var n=Ur(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Object(To.a)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,i=Object(Bo.a)(e,["component","childFactory"]),o=this.state.contextValue,r=$r(this.state.children).map(n);return delete i.appear,delete i.enter,delete i.exit,null===t?Eo.default.createElement(Hr.Provider,{value:o},r):Eo.default.createElement(Hr.Provider,{value:o},Eo.default.createElement(t,i,r))},t}(Eo.default.Component);Yr.propTypes={},Yr.defaultProps={component:"div",childFactory:function(e){return e}};var Qr=Yr,Xr=n(134);var qr=function(e){const{className:t,classes:n,pulsate:i=!1,rippleX:o,rippleY:r,rippleSize:a,in:s,onExited:c,timeout:l}=e,[u,d]=Eo.useState(!1),m=Object(Ho.a)(t,n.ripple,n.rippleVisible,i&&n.ripplePulsate),p={width:a,height:a,top:-a/2+r,left:-a/2+o},h=Object(Ho.a)(n.child,u&&n.childLeaving,i&&n.childPulsate);return s||u||d(!0),Eo.useEffect((()=>{if(!s&&null!=c){const e=setTimeout(c,l);return()=>{clearTimeout(e)}}}),[c,s,l]),Object(Lo.jsx)("span",{className:m,style:p,children:Object(Lo.jsx)("span",{className:h})})};var Kr=Object(er.a)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Jr=["center","classes","className"];let ea,ta,na,ia,oa=e=>e;const ra=Object(_o.d)(ea||(ea=oa`
32
32
  0% {
33
33
  transform: scale(0);
34
34
  opacity: 0.1;
@@ -38,7 +38,7 @@
38
38
  transform: scale(1);
39
39
  opacity: 0.3;
40
40
  }
41
- `)),be=Object(Y.d)(pe||(pe=ge`
41
+ `)),aa=Object(_o.d)(ta||(ta=oa`
42
42
  0% {
43
43
  opacity: 1;
44
44
  }
@@ -46,7 +46,7 @@
46
46
  100% {
47
47
  opacity: 0;
48
48
  }
49
- `)),ye=Object(Y.d)(fe||(fe=ge`
49
+ `)),sa=Object(_o.d)(na||(na=oa`
50
50
  0% {
51
51
  transform: scale(1);
52
52
  }
@@ -58,7 +58,7 @@
58
58
  100% {
59
59
  transform: scale(1);
60
60
  }
61
- `)),Ae=Object(bt.a)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Ce=Object(bt.a)(ce,{name:"MuiTouchRipple",slot:"Ripple"})(me||(me=ge`
61
+ `)),ca=Object(ar.a)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),la=Object(ar.a)(qr,{name:"MuiTouchRipple",slot:"Ripple"})(ia||(ia=oa`
62
62
  opacity: 0;
63
63
  position: absolute;
64
64
 
@@ -101,7 +101,7 @@
101
101
  animation-iteration-count: infinite;
102
102
  animation-delay: 200ms;
103
103
  }
104
- `),ue.rippleVisible,ve,550,(({theme:t})=>t.transitions.easing.easeInOut),ue.ripplePulsate,(({theme:t})=>t.transitions.duration.shorter),ue.child,ue.childLeaving,be,550,(({theme:t})=>t.transitions.easing.easeInOut),ue.childPulsate,ye,(({theme:t})=>t.transitions.easing.easeInOut));var Se=I.forwardRef((function(t,e){const n=Object(yt.a)({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Object(N.a)(n,de),[s,l]=I.useState([]),c=I.useRef(0),u=I.useRef(null);I.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=I.useRef(!1),h=Object(le.b)(),p=I.useRef(null),f=I.useRef(null),m=I.useCallback((t=>{const{pulsate:e,rippleX:n,rippleY:r,rippleSize:i,cb:a}=t;l((t=>[...t,Object($.jsx)(Ce,{classes:{ripple:Object(et.a)(o.ripple,ue.ripple),rippleVisible:Object(et.a)(o.rippleVisible,ue.rippleVisible),ripplePulsate:Object(et.a)(o.ripplePulsate,ue.ripplePulsate),child:Object(et.a)(o.child,ue.child),childLeaving:Object(et.a)(o.childLeaving,ue.childLeaving),childPulsate:Object(et.a)(o.childPulsate,ue.childPulsate)},timeout:550,pulsate:e,rippleX:n,rippleY:r,rippleSize:i},c.current)])),c.current+=1,u.current=a}),[o]),g=I.useCallback(((t={},e={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||e.pulsate,fakeElement:a=!1}=e;if("mousedown"===(null==t?void 0:t.type)&&d.current)return void(d.current=!1);"touchstart"===(null==t?void 0:t.type)&&(d.current=!0);const s=a?null:f.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(i||void 0===t||0===t.clientX&&0===t.clientY||!t.clientX&&!t.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:e,clientY:n}=t.touches&&t.touches.length>0?t.touches[0]:t;c=Math.round(e-l.left),u=Math.round(n-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const t=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,e=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;g=Math.sqrt(t**2+e**2)}null!=t&&t.touches?null===p.current&&(p.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},h.start(80,(()=>{p.current&&(p.current(),p.current=null)}))):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,h]),v=I.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=I.useCallback(((t,e)=>{if(h.clear(),"touchend"===(null==t?void 0:t.type)&&p.current)return p.current(),p.current=null,void h.start(0,(()=>{b(t,e)}));p.current=null,l((t=>t.length>0?t.slice(1):t)),u.current=e}),[h]);return I.useImperativeHandle(e,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),Object($.jsx)(Ae,Object(z.a)({className:Object(et.a)(ue.root,o.root,i),ref:f},a,{children:Object($.jsx)(se,{component:null,exit:!0,children:s})}))}));function xe(t){return Object(xt.a)("MuiButtonBase",t)}var we=Object(ht.a)("MuiButtonBase",["root","disabled","focusVisible"]);const Oe=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Ee=Object(bt.a)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${we.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}});var Le=I.forwardRef((function(t,e){const n=Object(yt.a)({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:h="a",onBlur:p,onClick:f,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:A,onMouseDown:C,onMouseLeave:S,onMouseUp:x,onTouchEnd:w,onTouchMove:O,onTouchStart:E,tabIndex:L=0,TouchRippleProps:j,touchRippleRef:k,type:_}=n,T=Object(N.a)(n,Oe),P=I.useRef(null),R=I.useRef(null),D=Object(Xt.a)(R,k),{isFocusVisibleRef:B,onFocus:F,onBlur:M,ref:W}=Object(Kt.a)(),[V,U]=I.useState(!1);l&&V&&U(!1),I.useImperativeHandle(r,(()=>({focusVisible:()=>{U(!0),P.current.focus()}})),[]);const[H,G]=I.useState(!1);I.useEffect((()=>{G(!0)}),[]);const Y=H&&!c&&!l;function Q(t,e,n=u){return Object(qt.a)((r=>{e&&e(r);return!n&&R.current&&R.current[t](r),!0}))}I.useEffect((()=>{V&&d&&!c&&H&&R.current.pulsate()}),[c,d,V,H]);const Z=Q("start",C),X=Q("stop",m),q=Q("stop",g),K=Q("stop",x),J=Q("stop",(t=>{V&&t.preventDefault(),S&&S(t)})),tt=Q("start",E),nt=Q("stop",w),rt=Q("stop",O),ot=Q("stop",(t=>{M(t),!1===B.current&&U(!1),p&&p(t)}),!1),it=Object(qt.a)((t=>{P.current||(P.current=t.currentTarget),F(t),!0===B.current&&(U(!0),b&&b(t)),v&&v(t)})),at=()=>{const t=P.current;return s&&"button"!==s&&!("A"===t.tagName&&t.href)},st=I.useRef(!1),lt=Object(qt.a)((t=>{d&&!st.current&&V&&R.current&&" "===t.key&&(st.current=!0,R.current.stop(t,(()=>{R.current.start(t)}))),t.target===t.currentTarget&&at()&&" "===t.key&&t.preventDefault(),y&&y(t),t.target===t.currentTarget&&at()&&"Enter"===t.key&&!l&&(t.preventDefault(),f&&f(t))})),ct=Object(qt.a)((t=>{d&&" "===t.key&&R.current&&V&&!t.defaultPrevented&&(st.current=!1,R.current.stop(t,(()=>{R.current.pulsate(t)}))),A&&A(t),f&&t.target===t.currentTarget&&at()&&" "===t.key&&!t.defaultPrevented&&f(t)}));let ut=s;"button"===ut&&(T.href||T.to)&&(ut=h);const dt={};"button"===ut?(dt.type=void 0===_?"button":_,dt.disabled=l):(T.href||T.to||(dt.role="button"),l&&(dt["aria-disabled"]=l));const ht=Object(Xt.a)(e,W,P);const pt=Object(z.a)({},n,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:L,focusVisible:V}),ft=(t=>{const{disabled:e,focusVisible:n,focusVisibleClassName:r,classes:o}=t,i={root:["root",e&&"disabled",n&&"focusVisible"]},a=Object(vt.a)(i,xe,o);return n&&r&&(a.root+=` ${r}`),a})(pt);return Object($.jsxs)(Ee,Object(z.a)({as:ut,className:Object(et.a)(ft.root,a),ownerState:pt,onBlur:ot,onClick:f,onContextMenu:X,onFocus:it,onKeyDown:lt,onKeyUp:ct,onMouseDown:Z,onMouseLeave:J,onMouseUp:K,onDragLeave:q,onTouchEnd:nt,onTouchMove:rt,onTouchStart:tt,ref:ht,tabIndex:l?-1:L,type:_},dt,T,{children:[i,Y?Object($.jsx)(Se,Object(z.a)({ref:D,center:o},j)):null]}))}));function je(t){return Object(xt.a)("MuiButton",t)}var ke=Object(ht.a)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var _e=I.createContext({});var Te=I.createContext(void 0);const Pe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Re=t=>Object(z.a)({},"small"===t.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===t.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===t.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),De=Object(bt.a)(Le,{shouldForwardProp:t=>Object(bt.b)(t)||"classes"===t,name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${Object(At.a)(n.color)}`],e[`size${Object(At.a)(n.size)}`],e[`${n.variant}Size${Object(At.a)(n.size)}`],"inherit"===n.color&&e.colorInherit,n.disableElevation&&e.disableElevation,n.fullWidth&&e.fullWidth]}})((({theme:t,ownerState:e})=>{var n,r;const o="light"===t.palette.mode?t.palette.grey[300]:t.palette.grey[800],i="light"===t.palette.mode?t.palette.grey.A100:t.palette.grey[700];return Object(z.a)({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":Object(z.a)({textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Object(Ct.a)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===e.variant&&"inherit"!==e.color&&{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Object(Ct.a)(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===e.variant&&"inherit"!==e.color&&{border:`1px solid ${(t.vars||t).palette[e.color].main}`,backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Object(Ct.a)(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===e.variant&&{backgroundColor:t.vars?t.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===e.variant&&"inherit"!==e.color&&{backgroundColor:(t.vars||t).palette[e.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e.color].main}}),"&:active":Object(z.a)({},"contained"===e.variant&&{boxShadow:(t.vars||t).shadows[8]}),[`&.${ke.focusVisible}`]:Object(z.a)({},"contained"===e.variant&&{boxShadow:(t.vars||t).shadows[6]}),[`&.${ke.disabled}`]:Object(z.a)({color:(t.vars||t).palette.action.disabled},"outlined"===e.variant&&{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"contained"===e.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===e.variant&&{padding:"6px 8px"},"text"===e.variant&&"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main},"outlined"===e.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===e.variant&&"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main,border:t.vars?`1px solid rgba(${t.vars.palette[e.color].mainChannel} / 0.5)`:`1px solid ${Object(Ct.a)(t.palette[e.color].main,.5)}`},"contained"===e.variant&&{color:t.vars?t.vars.palette.text.primary:null==(n=(r=t.palette).getContrastText)?void 0:n.call(r,t.palette.grey[300]),backgroundColor:t.vars?t.vars.palette.Button.inheritContainedBg:o,boxShadow:(t.vars||t).shadows[2]},"contained"===e.variant&&"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].contrastText,backgroundColor:(t.vars||t).palette[e.color].main},"inherit"===e.color&&{color:"inherit",borderColor:"currentColor"},"small"===e.size&&"text"===e.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===e.size&&"text"===e.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===e.size&&"outlined"===e.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===e.size&&"outlined"===e.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===e.size&&"contained"===e.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===e.size&&"contained"===e.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},e.fullWidth&&{width:"100%"})}),(({ownerState:t})=>t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ke.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ke.disabled}`]:{boxShadow:"none"}})),Be=Object(bt.a)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.startIcon,e[`iconSize${Object(At.a)(n.size)}`]]}})((({ownerState:t})=>Object(z.a)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},Re(t)))),Fe=Object(bt.a)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.endIcon,e[`iconSize${Object(At.a)(n.size)}`]]}})((({ownerState:t})=>Object(z.a)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},Re(t))));var Ie=I.forwardRef((function(t,e){const n=I.useContext(_e),r=I.useContext(Te),o=Object(Zt.a)(n,t),i=Object(yt.a)({props:o,name:"MuiButton"}),{children:a,color:s="primary",component:l="button",className:c,disabled:u=!1,disableElevation:d=!1,disableFocusRipple:h=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:g="medium",startIcon:v,type:b,variant:y="text"}=i,A=Object(N.a)(i,Pe),C=Object(z.a)({},i,{color:s,component:l,disabled:u,disableElevation:d,disableFocusRipple:h,fullWidth:m,size:g,type:b,variant:y}),S=(t=>{const{color:e,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=t,s={root:["root",i,`${i}${Object(At.a)(e)}`,`size${Object(At.a)(o)}`,`${i}Size${Object(At.a)(o)}`,"inherit"===e&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Object(At.a)(o)}`],endIcon:["endIcon",`iconSize${Object(At.a)(o)}`]},l=Object(vt.a)(s,je,a);return Object(z.a)({},a,l)})(C),x=v&&Object($.jsx)(Be,{className:S.startIcon,ownerState:C,children:v}),w=p&&Object($.jsx)(Fe,{className:S.endIcon,ownerState:C,children:p}),O=r||"";return Object($.jsxs)(De,Object(z.a)({ownerState:C,className:Object(et.a)(n.className,S.root,c,O),component:l,disabled:u,focusRipple:!h,focusVisibleClassName:Object(et.a)(S.focusVisible,f),ref:e,type:b},A,{classes:S,children:[x,a,w]}))})),Me=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n};function We(t){const e=Object(I.useContext)(gt.a).getColorValue,{styleConfig:n}=t,r=Me(t,["styleConfig"]),o=Object.assign(Object.assign({},t.style),{backgroundColor:e(n.fillColor),borderColor:e(n.strokeColor),borderWidth:n.strokeWidth,borderRadius:n.cornerRadius,borderStyle:"solid"});return I.default.createElement(mt,Object.assign({},r,{style:o}))}function ze(t){var e;return t.visible?I.default.createElement(Ie,{variant:"text",onClick:t.onClick,sx:Object.assign(Object.assign({flex:1},Object(Qt.b)(t.foreground)),{textTransform:"none",fontSize:18,"&:hover, &:focus, &:active, &":{outline:"none",backgroundColor:"transparent"},px:0}),disableRipple:!0},I.default.createElement(We,{styleConfig:Object.assign(Object.assign({},t.background),{cornerRadius:4}),sx:{borderStyle:"solid",px:"8px"}},null!==(e=t.icon)&&void 0!==e?e:null,gt.b.getLocalizedBarcodeText(t.text))):I.default.createElement("div",{style:{display:"flex",flex:1}})}Yt.a;const Ne=I.default.createContext(null);function Ve(t){const e=t.mode,n="HIDDEN"===e?0:48;Object(I.useEffect)((()=>{if("HIDDEN"===e)return;const n=document.createElement("meta");return n.name="theme-color",n.content=gt.b.getColorValue(t.backgroundColor),document.head.appendChild(n),()=>{document.head.removeChild(n)}}),[e]);const r="SOLID"===e?0:n,o={height:n,remainingVisibleBodyHeight:"SOLID"===e?`calc(100 * ${$t} - ${n}px)`:`calc(100 * ${$t})`,minTopPaddingForContent:r,minTopPaddingForViewFinder:10+r},i="SOLID"===e?{backgroundColor:gt.b.getColorValue(t.backgroundColor)}:{backgroundImage:`linear-gradient(to bottom, ${gt.b.getColorValue(t.backgroundColor)}, #00000000)`,position:"absolute",backgroundColor:"transparent"};return I.default.createElement(I.default.Fragment,null,"HIDDEN"!==e&&I.default.createElement(Pt,{position:"static",elevation:0,sx:Object.assign({zIndex:1e5,height:n,minHeight:n},i)},I.default.createElement(Ft,{variant:"dense",sx:{height:n,minHeight:n}},I.default.createElement(mt,{sx:{flex:1}},t.cancelButton.visible&&I.default.createElement(I.default.Fragment,null,I.default.createElement(ze,Object.assign({onClick:t.onBackPress,icon:t.cancelButton.foreground.iconVisible&&I.default.createElement(Ht.a,{sx:{fontSize:12,mr:"5px"}})},t.cancelButton)))),I.default.createElement(mt,null,I.default.createElement(Vt,{variant:"h6",noWrap:!0,component:"div",fontSize:18,fontWeight:600},I.default.createElement(Qt.a,{config:t.title}))),I.default.createElement(mt,{sx:{flex:1}}))),I.default.createElement(Ne.Provider,{value:o},t.children))}function Ue(t){return Object(xt.a)("MuiDialogContent",t)}Object(ht.a)("MuiDialogContent",["root","dividers"]);var He=Object(ht.a)("MuiDialogTitle",["root"]);const $e=["className","dividers"],Ge=Object(bt.a)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.dividers&&e.dividers]}})((({theme:t,ownerState:e})=>Object(z.a)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},e.dividers?{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}:{[`.${He.root} + &`]:{paddingTop:0}})));var Ye=I.forwardRef((function(t,e){const n=Object(yt.a)({props:t,name:"MuiDialogContent"}),{className:r,dividers:o=!1}=n,i=Object(N.a)(n,$e),a=Object(z.a)({},n,{dividers:o}),s=(t=>{const{classes:e,dividers:n}=t,r={root:["root",n&&"dividers"]};return Object(vt.a)(r,Ue,e)})(a);return Object($.jsx)(Ge,Object(z.a)({className:Object(et.a)(s.root,r),ownerState:a,ref:e},i))}));function Qe(t){return Object(xt.a)("MuiDialogActions",t)}Object(ht.a)("MuiDialogActions",["root","spacing"]);const Ze=["className","disableSpacing"],Xe=Object(bt.a)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableSpacing&&e.spacing]}})((({ownerState:t})=>Object(z.a)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})));var qe=I.forwardRef((function(t,e){const n=Object(yt.a)({props:t,name:"MuiDialogActions"}),{className:r,disableSpacing:o=!1}=n,i=Object(N.a)(n,Ze),a=Object(z.a)({},n,{disableSpacing:o}),s=(t=>{const{classes:e,disableSpacing:n}=t,r={root:["root",!n&&"spacing"]};return Object(vt.a)(r,Qe,e)})(a);return Object($.jsx)(Xe,Object(z.a)({className:Object(et.a)(s.root,r),ownerState:a,ref:e},i))}));function Ke(t){return Object(xt.a)("MuiCircularProgress",t)}Object(ht.a)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Je=["className","color","disableShrink","size","style","thickness","value","variant"];let tn,en,nn,rn,on=t=>t;const an=44,sn=Object(Y.d)(tn||(tn=on`
104
+ `),Kr.rippleVisible,ra,550,(({theme:e})=>e.transitions.easing.easeInOut),Kr.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Kr.child,Kr.childLeaving,aa,550,(({theme:e})=>e.transitions.easing.easeInOut),Kr.childPulsate,sa,(({theme:e})=>e.transitions.easing.easeInOut));var ua=Eo.forwardRef((function(e,t){const n=Object(sr.a)({props:e,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:r}=n,a=Object(Bo.a)(n,Jr),[s,c]=Eo.useState([]),l=Eo.useRef(0),u=Eo.useRef(null);Eo.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=Eo.useRef(!1),m=Object(Xr.b)(),p=Eo.useRef(null),h=Eo.useRef(null),f=Eo.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:i,rippleSize:r,cb:a}=e;c((e=>[...e,Object(Lo.jsx)(la,{classes:{ripple:Object(Ho.a)(o.ripple,Kr.ripple),rippleVisible:Object(Ho.a)(o.rippleVisible,Kr.rippleVisible),ripplePulsate:Object(Ho.a)(o.ripplePulsate,Kr.ripplePulsate),child:Object(Ho.a)(o.child,Kr.child),childLeaving:Object(Ho.a)(o.childLeaving,Kr.childLeaving),childPulsate:Object(Ho.a)(o.childPulsate,Kr.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:i,rippleSize:r},l.current)])),l.current+=1,u.current=a}),[o]),g=Eo.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:r=i||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:h.current,c=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let l,u,g;if(r||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)l=Math.round(c.width/2),u=Math.round(c.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;l=Math.round(t-c.left),u=Math.round(n-c.top)}if(r)g=Math.sqrt((2*c.width**2+c.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-l),l)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===p.current&&(p.current=()=>{f({pulsate:o,rippleX:l,rippleY:u,rippleSize:g,cb:n})},m.start(80,(()=>{p.current&&(p.current(),p.current=null)}))):f({pulsate:o,rippleX:l,rippleY:u,rippleSize:g,cb:n})}),[i,f,m]),v=Eo.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=Eo.useCallback(((e,t)=>{if(m.clear(),"touchend"===(null==e?void 0:e.type)&&p.current)return p.current(),p.current=null,void m.start(0,(()=>{b(e,t)}));p.current=null,c((e=>e.length>0?e.slice(1):e)),u.current=t}),[m]);return Eo.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),Object(Lo.jsx)(ca,Object(To.a)({className:Object(Ho.a)(Kr.root,o.root,r),ref:h},a,{children:Object(Lo.jsx)(Qr,{component:null,exit:!0,children:s})}))}));function da(e){return Object(dr.a)("MuiButtonBase",e)}var ma=Object(er.a)("MuiButtonBase",["root","disabled","focusVisible"]);const pa=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],ha=Object(ar.a)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${ma.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}});var fa=Eo.forwardRef((function(e,t){const n=Object(sr.a)({props:e,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:r,className:a,component:s="button",disabled:c=!1,disableRipple:l=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:m="a",onBlur:p,onClick:h,onContextMenu:f,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:C,onMouseDown:A,onMouseLeave:S,onMouseUp:w,onTouchEnd:x,onTouchMove:E,onTouchStart:O,tabIndex:D=0,TouchRippleProps:T,touchRippleRef:B,type:k}=n,I=Object(Bo.a)(n,pa),P=Eo.useRef(null),L=Eo.useRef(null),R=Object(Fr.a)(L,B),{isFocusVisibleRef:_,onFocus:j,onBlur:M,ref:F}=Object(Vr.a)(),[N,V]=Eo.useState(!1);c&&N&&V(!1),Eo.useImperativeHandle(i,(()=>({focusVisible:()=>{V(!0),P.current.focus()}})),[]);const[W,z]=Eo.useState(!1);Eo.useEffect((()=>{z(!0)}),[]);const H=W&&!l&&!c;function U(e,t,n=u){return Object(Nr.a)((i=>{t&&t(i);return!n&&L.current&&L.current[e](i),!0}))}Eo.useEffect((()=>{N&&d&&!l&&W&&L.current.pulsate()}),[l,d,N,W]);const Z=U("start",A),G=U("stop",f),$=U("stop",g),Y=U("stop",w),Q=U("stop",(e=>{N&&e.preventDefault(),S&&S(e)})),X=U("start",O),q=U("stop",x),K=U("stop",E),J=U("stop",(e=>{M(e),!1===_.current&&V(!1),p&&p(e)}),!1),ee=Object(Nr.a)((e=>{P.current||(P.current=e.currentTarget),j(e),!0===_.current&&(V(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=P.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=Eo.useRef(!1),ie=Object(Nr.a)((e=>{d&&!ne.current&&N&&L.current&&" "===e.key&&(ne.current=!0,L.current.stop(e,(()=>{L.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!c&&(e.preventDefault(),h&&h(e))})),oe=Object(Nr.a)((e=>{d&&" "===e.key&&L.current&&N&&!e.defaultPrevented&&(ne.current=!1,L.current.stop(e,(()=>{L.current.pulsate(e)}))),C&&C(e),h&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let re=s;"button"===re&&(I.href||I.to)&&(re=m);const ae={};"button"===re?(ae.type=void 0===k?"button":k,ae.disabled=c):(I.href||I.to||(ae.role="button"),c&&(ae["aria-disabled"]=c));const se=Object(Fr.a)(t,F,P);const ce=Object(To.a)({},n,{centerRipple:o,component:s,disabled:c,disableRipple:l,disableTouchRipple:u,focusRipple:d,tabIndex:D,focusVisible:N}),le=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:i,classes:o}=e,r={root:["root",t&&"disabled",n&&"focusVisible"]},a=Object(rr.a)(r,da,o);return n&&i&&(a.root+=` ${i}`),a})(ce);return Object(Lo.jsxs)(ha,Object(To.a)({as:re,className:Object(Ho.a)(le.root,a),ownerState:ce,onBlur:J,onClick:h,onContextMenu:G,onFocus:ee,onKeyDown:ie,onKeyUp:oe,onMouseDown:Z,onMouseLeave:Q,onMouseUp:Y,onDragLeave:$,onTouchEnd:q,onTouchMove:K,onTouchStart:X,ref:se,tabIndex:c?-1:D,type:k},ae,I,{children:[r,H?Object(Lo.jsx)(ua,Object(To.a)({ref:R,center:o},T)):null]}))}));function ga(e){return Object(dr.a)("MuiButton",e)}var va=Object(er.a)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var ba=Eo.createContext({});var ya=Eo.createContext(void 0);const Ca=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Aa=e=>Object(To.a)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),Sa=Object(ar.a)(fa,{shouldForwardProp:e=>Object(ar.b)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Object(cr.a)(n.color)}`],t[`size${Object(cr.a)(n.size)}`],t[`${n.variant}Size${Object(cr.a)(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,i;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],r="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Object(To.a)({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Object(To.a)({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Object(lr.a)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Object(lr.a)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Object(lr.a)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Object(To.a)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${va.focusVisible}`]:Object(To.a)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${va.disabled}`]:Object(To.a)({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Object(lr.a)(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(i=e.palette).getContrastText)?void 0:n.call(i,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${va.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${va.disabled}`]:{boxShadow:"none"}})),wa=Object(ar.a)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Object(cr.a)(n.size)}`]]}})((({ownerState:e})=>Object(To.a)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Aa(e)))),xa=Object(ar.a)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Object(cr.a)(n.size)}`]]}})((({ownerState:e})=>Object(To.a)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Aa(e))));var Ea=Eo.forwardRef((function(e,t){const n=Eo.useContext(ba),i=Eo.useContext(ya),o=Object(Mr.a)(n,e),r=Object(sr.a)({props:o,name:"MuiButton"}),{children:a,color:s="primary",component:c="button",className:l,disabled:u=!1,disableElevation:d=!1,disableFocusRipple:m=!1,endIcon:p,focusVisibleClassName:h,fullWidth:f=!1,size:g="medium",startIcon:v,type:b,variant:y="text"}=r,C=Object(Bo.a)(r,Ca),A=Object(To.a)({},r,{color:s,component:c,disabled:u,disableElevation:d,disableFocusRipple:m,fullWidth:f,size:g,type:b,variant:y}),S=(e=>{const{color:t,disableElevation:n,fullWidth:i,size:o,variant:r,classes:a}=e,s={root:["root",r,`${r}${Object(cr.a)(t)}`,`size${Object(cr.a)(o)}`,`${r}Size${Object(cr.a)(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",i&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Object(cr.a)(o)}`],endIcon:["endIcon",`iconSize${Object(cr.a)(o)}`]},c=Object(rr.a)(s,ga,a);return Object(To.a)({},a,c)})(A),w=v&&Object(Lo.jsx)(wa,{className:S.startIcon,ownerState:A,children:v}),x=p&&Object(Lo.jsx)(xa,{className:S.endIcon,ownerState:A,children:p}),E=i||"";return Object(Lo.jsxs)(Sa,Object(To.a)({ownerState:A,className:Object(Ho.a)(n.className,S.root,l,E),component:c,disabled:u,focusRipple:!m,focusVisibleClassName:Object(Ho.a)(S.focusVisible,h),ref:t,type:b},C,{classes:S,children:[w,a,x]}))})),Oa=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n};function Da(e){const{styleConfig:t}=e,n=Oa(e,["styleConfig"]),i=Object.assign(Object.assign({},e.style),{backgroundColor:or.b.getColorValue(t.fillColor),borderColor:or.b.getColorValue(t.strokeColor),borderWidth:t.strokeWidth,borderRadius:t.cornerRadius,borderStyle:"solid"});return Eo.default.createElement(ir,Object.assign({},n,{style:i}))}function Ta(e){return Object(dr.a)("MuiIconButton",e)}var Ba=Object(er.a)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);const ka=["edge","children","className","color","disabled","disableFocusRipple","size"],Ia=Object(ar.a)(fa,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Object(cr.a)(n.color)}`],n.edge&&t[`edge${Object(cr.a)(n.edge)}`],t[`size${Object(cr.a)(n.size)}`]]}})((({theme:e,ownerState:t})=>Object(To.a)({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Object(lr.a)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var n;const i=null==(n=(e.vars||e).palette)?void 0:n[t.color];return Object(To.a)({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&Object(To.a)({color:null==i?void 0:i.main},!t.disableRipple&&{"&:hover":Object(To.a)({},i&&{backgroundColor:e.vars?`rgba(${i.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Object(lr.a)(i.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Ba.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}));var Pa=Eo.forwardRef((function(e,t){const n=Object(sr.a)({props:e,name:"MuiIconButton"}),{edge:i=!1,children:o,className:r,color:a="default",disabled:s=!1,disableFocusRipple:c=!1,size:l="medium"}=n,u=Object(Bo.a)(n,ka),d=Object(To.a)({},n,{edge:i,color:a,disabled:s,disableFocusRipple:c,size:l}),m=(e=>{const{classes:t,disabled:n,color:i,edge:o,size:r}=e,a={root:["root",n&&"disabled","default"!==i&&`color${Object(cr.a)(i)}`,o&&`edge${Object(cr.a)(o)}`,`size${Object(cr.a)(r)}`]};return Object(rr.a)(a,Ta,t)})(d);return Object(Lo.jsx)(Ia,Object(To.a)({className:Object(Ho.a)(m.root,r),centerRipple:!0,focusRipple:!c,disabled:s,ref:t,ownerState:d},u,{children:o}))}));function La(e){return e=or.b.getColorValue(e),Object.assign(Object.assign({},function(e){return{color:e=or.b.getColorValue(e),"&:hover":{textDecoration:"underline !important",backgroundColor:"transparent !important"}}}(e)),Ra(e))}function Ra(e){return{"&:focus-visible":{outlineColor:`${e=or.b.getColorValue(e)} !important`,outlineWidth:"2px !important",outlineStyle:"solid !important"}}}function _a(e){var t;const n=e.debugName?{[`data-sb-button-${e.debugName}`]:1}:{};return Eo.default.createElement(Eo.default.Fragment,null,e.config.visible&&Eo.default.createElement(Pa,Object.assign({disabled:!e.enabled,component:null!==(t=e.iconButtonComponent)&&void 0!==t?t:"button","aria-label":or.b.getLocalizedText(e.config.accessibilityDescription),sx:Object.assign({opacity:e.enabled?1:.5,backgroundColor:or.b.getColorValue(e.config.background.fillColor),borderWidth:e.config.background.strokeWidth,borderColor:or.b.getColorValue(e.config.background.strokeColor),borderStyle:"solid",borderRadius:"4px",visibility:e.config.visible?"visible":"hidden",flexDirection:"column"},La(e.config.title.color)),onClick:e.onClick},n),e.config.icon.visible&&Eo.default.createElement(e.icon,{color:or.b.getColorValue(e.config.icon.color)}),e.children,Eo.default.createElement(jr.a,{config:e.config.title,style:{fontSize:12,marginTop:8}})))}const ja=new Map;function Ma(e){const t=function(e){if(!ja.has(e)){const t=document.createElement("canvas");t.width=1,t.height=1;const n=t.getContext("2d");n.clearRect(0,0,1,1),n.fillStyle="#000",n.fillStyle=e;const i=n.fillStyle;if(n.fillStyle="#fff",n.fillStyle=e,i!==n.fillStyle)return ja.set(e,null),null;n.fillRect(0,0,1,1);const o=[...n.getImageData(0,0,1,1).data];ja.set(e,{r:o[0],g:o[1],b:o[2],a:o[3]})}return ja.get(e)}(e);return 0===(null==t?void 0:t.a)}function Fa(e){var t,n;if(!e.visible)return Eo.default.createElement("div",{style:{display:"flex",flex:1}});const i=e.debugName?{[`data-sb-button-${e.debugName}`]:1}:{},o="right"===(null!==(t=e.iconPosition)&&void 0!==t?t:"left");let r={};return Ma(or.b.getColorValue(e.background.fillColor))&&(r={textDecoration:"underline"}),Eo.default.createElement(Ea,Object.assign({id:e.id,"aria-label":e.ariaLabel,disabled:null!==(n=e.disabled)&&void 0!==n&&n,variant:"text",onClick:e.onClick,style:Object(jr.b)(e.foreground),sx:Object.assign({opacity:e.disabled?.5:1,flex:1,textTransform:"none",fontSize:18,"&:hover, &:focus, &:active, &":{outline:"none",backgroundColor:"transparent"},"&:hover":r,"&:focus-visible > div":{outlineColor:or.b.getColorValue(e.foreground.color),outlineWidth:2,outlineStyle:"solid"},px:0},e.buttonWidth?{width:`${e.buttonWidth}px`,minWidth:0}:{}),disableRipple:!0},i),Eo.default.createElement(Da,{styleConfig:Object.assign(Object.assign({},e.background),{cornerRadius:4}),sx:Object.assign({borderStyle:"solid",mx:"4px",px:"4px",display:"flex",alignItems:"center"},e.styleOverrides)},e.foreground.iconVisible&&!o&&e.icon,or.b.getLocalizedText(e.text),e.foreground.iconVisible&&o&&e.icon))}_r.a;const Na=Eo.default.createContext(null);function Va(e){const t=e.mode,n="HIDDEN"===t?0:48;Object(Eo.useEffect)((()=>{if("HIDDEN"===t)return;const n=document.createElement("meta");return n.name="theme-color",n.content=or.b.getColorValue(e.backgroundColor),document.head.appendChild(n),()=>{document.head.removeChild(n)}}),[t]);const i="SOLID"===t?0:n,o={height:n,remainingVisibleBodyHeight:"SOLID"===t?`calc(100 * ${Lr} - ${n}px)`:`calc(100 * ${Lr})`,minTopPaddingForContent:i,minTopPaddingForViewFinder:10+i},r="SOLID"===t?{backgroundColor:or.b.getColorValue(e.backgroundColor)}:{backgroundImage:`linear-gradient(to bottom, ${or.b.getColorValue(e.backgroundColor)}, #00000000)`,position:"absolute",backgroundColor:"transparent"};return Eo.default.createElement(Eo.default.Fragment,null,"HIDDEN"!==t&&Eo.default.createElement(Cr,{position:"static",elevation:0,sx:Object.assign({zIndex:1e5,height:n,minHeight:n},r)},Eo.default.createElement(xr,{variant:"dense",sx:{height:n,minHeight:n}},Eo.default.createElement(ir,{sx:{flex:1}},e.cancelButton.visible&&Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(Fa,Object.assign({onClick:e.onBackPress,icon:e.cancelButton.foreground.iconVisible&&Eo.default.createElement(Pr.a,{sx:{fontSize:12,mr:"5px"}})},e.cancelButton)))),Eo.default.createElement(ir,null,Eo.default.createElement(kr,{variant:"h6",noWrap:!0,component:"div",fontSize:18,fontWeight:600},Eo.default.createElement(jr.a,{config:e.title}))),Eo.default.createElement(ir,{sx:{flex:1}}))),Eo.default.createElement(Na.Provider,{value:o},e.children))}function Wa(e){return Object(dr.a)("MuiDialogContent",e)}Object(er.a)("MuiDialogContent",["root","dividers"]);var za=Object(er.a)("MuiDialogTitle",["root"]);const Ha=["className","dividers"],Ua=Object(ar.a)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})((({theme:e,ownerState:t})=>Object(To.a)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${za.root} + &`]:{paddingTop:0}})));var Za=Eo.forwardRef((function(e,t){const n=Object(sr.a)({props:e,name:"MuiDialogContent"}),{className:i,dividers:o=!1}=n,r=Object(Bo.a)(n,Ha),a=Object(To.a)({},n,{dividers:o}),s=(e=>{const{classes:t,dividers:n}=e,i={root:["root",n&&"dividers"]};return Object(rr.a)(i,Wa,t)})(a);return Object(Lo.jsx)(Ua,Object(To.a)({className:Object(Ho.a)(s.root,i),ownerState:a,ref:t},r))}));function Ga(e){return Object(dr.a)("MuiDialogActions",e)}Object(er.a)("MuiDialogActions",["root","spacing"]);const $a=["className","disableSpacing"],Ya=Object(ar.a)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((({ownerState:e})=>Object(To.a)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})));var Qa=Eo.forwardRef((function(e,t){const n=Object(sr.a)({props:e,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1}=n,r=Object(Bo.a)(n,$a),a=Object(To.a)({},n,{disableSpacing:o}),s=(e=>{const{classes:t,disableSpacing:n}=e,i={root:["root",!n&&"spacing"]};return Object(rr.a)(i,Ga,t)})(a);return Object(Lo.jsx)(Ya,Object(To.a)({className:Object(Ho.a)(s.root,i),ownerState:a,ref:t},r))}));function Xa(e){return Object(dr.a)("MuiCircularProgress",e)}Object(er.a)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const qa=["className","color","disableShrink","size","style","thickness","value","variant"];let Ka,Ja,es,ts,ns=e=>e;const is=44,os=Object(_o.d)(Ka||(Ka=ns`
105
105
  0% {
106
106
  transform: rotate(0deg);
107
107
  }
@@ -109,7 +109,7 @@
109
109
  100% {
110
110
  transform: rotate(360deg);
111
111
  }
112
- `)),ln=Object(Y.d)(en||(en=on`
112
+ `)),rs=Object(_o.d)(Ja||(Ja=ns`
113
113
  0% {
114
114
  stroke-dasharray: 1px, 200px;
115
115
  stroke-dashoffset: 0;
@@ -124,11 +124,11 @@
124
124
  stroke-dasharray: 100px, 200px;
125
125
  stroke-dashoffset: -125px;
126
126
  }
127
- `)),cn=Object(bt.a)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`color${Object(At.a)(n.color)}`]]}})((({ownerState:t,theme:e})=>Object(z.a)({display:"inline-block"},"determinate"===t.variant&&{transition:e.transitions.create("transform")},"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main})),(({ownerState:t})=>"indeterminate"===t.variant&&Object(Y.b)(nn||(nn=on`
127
+ `)),as=Object(ar.a)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Object(cr.a)(n.color)}`]]}})((({ownerState:e,theme:t})=>Object(To.a)({display:"inline-block"},"determinate"===e.variant&&{transition:t.transitions.create("transform")},"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main})),(({ownerState:e})=>"indeterminate"===e.variant&&Object(_o.b)(es||(es=ns`
128
128
  animation: ${0} 1.4s linear infinite;
129
- `),sn))),un=Object(bt.a)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),dn=Object(bt.a)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.circle,e[`circle${Object(At.a)(n.variant)}`],n.disableShrink&&e.circleDisableShrink]}})((({ownerState:t,theme:e})=>Object(z.a)({stroke:"currentColor"},"determinate"===t.variant&&{transition:e.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})),(({ownerState:t})=>"indeterminate"===t.variant&&!t.disableShrink&&Object(Y.b)(rn||(rn=on`
129
+ `),os))),ss=Object(ar.a)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),cs=Object(ar.a)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Object(cr.a)(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>Object(To.a)({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})),(({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&Object(_o.b)(ts||(ts=ns`
130
130
  animation: ${0} 1.4s ease-in-out infinite;
131
- `),ln)));var hn=I.forwardRef((function(t,e){const n=Object(yt.a)({props:t,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:i=!1,size:a=40,style:s,thickness:l=3.6,value:c=0,variant:u="indeterminate"}=n,d=Object(N.a)(n,Je),h=Object(z.a)({},n,{color:o,disableShrink:i,size:a,thickness:l,value:c,variant:u}),p=(t=>{const{classes:e,variant:n,color:r,disableShrink:o}=t,i={root:["root",n,`color${Object(At.a)(r)}`],svg:["svg"],circle:["circle",`circle${Object(At.a)(n)}`,o&&"circleDisableShrink"]};return Object(vt.a)(i,Ke,e)})(h),f={},m={},g={};if("determinate"===u){const t=2*Math.PI*((an-l)/2);f.strokeDasharray=t.toFixed(3),g["aria-valuenow"]=Math.round(c),f.strokeDashoffset=`${((100-c)/100*t).toFixed(3)}px`,m.transform="rotate(-90deg)"}return Object($.jsx)(cn,Object(z.a)({className:Object(et.a)(p.root,r),style:Object(z.a)({width:a,height:a},m,s),ownerState:h,ref:e,role:"progressbar"},g,d,{children:Object($.jsx)(un,{className:p.svg,ownerState:h,viewBox:"22 22 44 44",children:Object($.jsx)(dn,{className:p.circle,style:f,ownerState:h,cx:an,cy:an,r:(an-l)/2,fill:"none",strokeWidth:l})})}))}));function pn(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function fn(t){return parseFloat(t)}function mn(t){return Object(xt.a)("MuiSkeleton",t)}Object(ht.a)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const gn=["animation","className","component","height","style","variant","width"];let vn,bn,yn,An,Cn=t=>t;const Sn=Object(Y.d)(vn||(vn=Cn`
131
+ `),rs)));var ls=Eo.forwardRef((function(e,t){const n=Object(sr.a)({props:e,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:r=!1,size:a=40,style:s,thickness:c=3.6,value:l=0,variant:u="indeterminate"}=n,d=Object(Bo.a)(n,qa),m=Object(To.a)({},n,{color:o,disableShrink:r,size:a,thickness:c,value:l,variant:u}),p=(e=>{const{classes:t,variant:n,color:i,disableShrink:o}=e,r={root:["root",n,`color${Object(cr.a)(i)}`],svg:["svg"],circle:["circle",`circle${Object(cr.a)(n)}`,o&&"circleDisableShrink"]};return Object(rr.a)(r,Xa,t)})(m),h={},f={},g={};if("determinate"===u){const e=2*Math.PI*((is-c)/2);h.strokeDasharray=e.toFixed(3),g["aria-valuenow"]=Math.round(l),h.strokeDashoffset=`${((100-l)/100*e).toFixed(3)}px`,f.transform="rotate(-90deg)"}return Object(Lo.jsx)(as,Object(To.a)({className:Object(Ho.a)(p.root,i),style:Object(To.a)({width:a,height:a},f,s),ownerState:m,ref:t,role:"progressbar"},g,d,{children:Object(Lo.jsx)(ss,{className:p.svg,ownerState:m,viewBox:"22 22 44 44",children:Object(Lo.jsx)(cs,{className:p.circle,style:h,ownerState:m,cx:is,cy:is,r:(is-c)/2,fill:"none",strokeWidth:c})})}))}));function us(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function ds(e){return parseFloat(e)}function ms(e){return Object(dr.a)("MuiSkeleton",e)}Object(er.a)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const ps=["animation","className","component","height","style","variant","width"];let hs,fs,gs,vs,bs=e=>e;const ys=Object(_o.d)(hs||(hs=bs`
132
132
  0% {
133
133
  opacity: 1;
134
134
  }
@@ -140,7 +140,7 @@
140
140
  100% {
141
141
  opacity: 1;
142
142
  }
143
- `)),xn=Object(Y.d)(bn||(bn=Cn`
143
+ `)),Cs=Object(_o.d)(fs||(fs=bs`
144
144
  0% {
145
145
  transform: translateX(-100%);
146
146
  }
@@ -153,9 +153,9 @@
153
153
  100% {
154
154
  transform: translateX(100%);
155
155
  }
156
- `)),wn=Object(bt.a)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],!1!==n.animation&&e[n.animation],n.hasChildren&&e.withChildren,n.hasChildren&&!n.width&&e.fitContent,n.hasChildren&&!n.height&&e.heightAuto]}})((({theme:t,ownerState:e})=>{const n=pn(t.shape.borderRadius)||"px",r=fn(t.shape.borderRadius);return Object(z.a)({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:Object(Ct.a)(t.palette.text.primary,"light"===t.palette.mode?.11:.13),height:"1.2em"},"text"===e.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},"circular"===e.variant&&{borderRadius:"50%"},"rounded"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius},e.hasChildren&&{"& > *":{visibility:"hidden"}},e.hasChildren&&!e.width&&{maxWidth:"fit-content"},e.hasChildren&&!e.height&&{height:"auto"})}),(({ownerState:t})=>"pulse"===t.animation&&Object(Y.b)(yn||(yn=Cn`
156
+ `)),As=Object(ar.a)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})((({theme:e,ownerState:t})=>{const n=us(e.shape.borderRadius)||"px",i=ds(e.shape.borderRadius);return Object(To.a)({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:Object(lr.a)(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em"},"text"===t.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${i}${n}/${Math.round(i/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},"circular"===t.variant&&{borderRadius:"50%"},"rounded"===t.variant&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})}),(({ownerState:e})=>"pulse"===e.animation&&Object(_o.b)(gs||(gs=bs`
157
157
  animation: ${0} 2s ease-in-out 0.5s infinite;
158
- `),Sn)),(({ownerState:t,theme:e})=>"wave"===t.animation&&Object(Y.b)(An||(An=Cn`
158
+ `),ys)),(({ownerState:e,theme:t})=>"wave"===e.animation&&Object(_o.b)(vs||(vs=bs`
159
159
  position: relative;
160
160
  overflow: hidden;
161
161
 
@@ -178,10 +178,10 @@
178
178
  right: 0;
179
179
  top: 0;
180
180
  }
181
- `),xn,(e.vars||e).palette.action.hover)));var On=I.forwardRef((function(t,e){const n=Object(yt.a)({props:t,name:"MuiSkeleton"}),{animation:r="pulse",className:o,component:i="span",height:a,style:s,variant:l="text",width:c}=n,u=Object(N.a)(n,gn),d=Object(z.a)({},n,{animation:r,component:i,variant:l,hasChildren:Boolean(u.children)}),h=(t=>{const{classes:e,variant:n,animation:r,hasChildren:o,width:i,height:a}=t,s={root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!a&&"heightAuto"]};return Object(vt.a)(s,mn,e)})(d);return Object($.jsx)(wn,Object(z.a)({as:i,ref:e,className:Object(et.a)(h.root,o),ownerState:d},u,{style:Object(z.a)({width:c,height:a},s)}))}));function En(t){return Object(xt.a)("MuiButtonGroup",t)}var Ln=Object(ht.a)("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]);const jn=["children","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"],kn=Object(bt.a)("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${Ln.grouped}`]:e.grouped},{[`& .${Ln.grouped}`]:e[`grouped${Object(At.a)(n.orientation)}`]},{[`& .${Ln.grouped}`]:e[`grouped${Object(At.a)(n.variant)}`]},{[`& .${Ln.grouped}`]:e[`grouped${Object(At.a)(n.variant)}${Object(At.a)(n.orientation)}`]},{[`& .${Ln.grouped}`]:e[`grouped${Object(At.a)(n.variant)}${Object(At.a)(n.color)}`]},{[`& .${Ln.firstButton}`]:e.firstButton},{[`& .${Ln.lastButton}`]:e.lastButton},{[`& .${Ln.middleButton}`]:e.middleButton},e.root,e[n.variant],!0===n.disableElevation&&e.disableElevation,n.fullWidth&&e.fullWidth,"vertical"===n.orientation&&e.vertical]}})((({theme:t,ownerState:e})=>Object(z.a)({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},"contained"===e.variant&&{boxShadow:(t.vars||t).shadows[2]},e.disableElevation&&{boxShadow:"none"},e.fullWidth&&{width:"100%"},"vertical"===e.orientation&&{flexDirection:"column"},{[`& .${Ln.grouped}`]:Object(z.a)({minWidth:40,"&:hover":Object(z.a)({},"contained"===e.variant&&{boxShadow:"none"})},"contained"===e.variant&&{boxShadow:"none"}),[`& .${Ln.firstButton},& .${Ln.middleButton}`]:Object(z.a)({},"horizontal"===e.orientation&&{borderTopRightRadius:0,borderBottomRightRadius:0},"vertical"===e.orientation&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},"text"===e.variant&&"horizontal"===e.orientation&&{borderRight:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:"1px solid "+("light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),[`&.${Ln.disabled}`]:{borderRight:`1px solid ${(t.vars||t).palette.action.disabled}`}},"text"===e.variant&&"vertical"===e.orientation&&{borderBottom:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:"1px solid "+("light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),[`&.${Ln.disabled}`]:{borderBottom:`1px solid ${(t.vars||t).palette.action.disabled}`}},"text"===e.variant&&"inherit"!==e.color&&{borderColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / 0.5)`:Object(Ct.a)(t.palette[e.color].main,.5)},"outlined"===e.variant&&"horizontal"===e.orientation&&{borderRightColor:"transparent"},"outlined"===e.variant&&"vertical"===e.orientation&&{borderBottomColor:"transparent"},"contained"===e.variant&&"horizontal"===e.orientation&&{borderRight:`1px solid ${(t.vars||t).palette.grey[400]}`,[`&.${Ln.disabled}`]:{borderRight:`1px solid ${(t.vars||t).palette.action.disabled}`}},"contained"===e.variant&&"vertical"===e.orientation&&{borderBottom:`1px solid ${(t.vars||t).palette.grey[400]}`,[`&.${Ln.disabled}`]:{borderBottom:`1px solid ${(t.vars||t).palette.action.disabled}`}},"contained"===e.variant&&"inherit"!==e.color&&{borderColor:(t.vars||t).palette[e.color].dark},{"&:hover":Object(z.a)({},"outlined"===e.variant&&"horizontal"===e.orientation&&{borderRightColor:"currentColor"},"outlined"===e.variant&&"vertical"===e.orientation&&{borderBottomColor:"currentColor"})}),[`& .${Ln.lastButton},& .${Ln.middleButton}`]:Object(z.a)({},"horizontal"===e.orientation&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},"vertical"===e.orientation&&{borderTopRightRadius:0,borderTopLeftRadius:0},"outlined"===e.variant&&"horizontal"===e.orientation&&{marginLeft:-1},"outlined"===e.variant&&"vertical"===e.orientation&&{marginTop:-1})})));var _n=I.forwardRef((function(t,e){const n=Object(yt.a)({props:t,name:"MuiButtonGroup"}),{children:r,className:o,color:i="primary",component:a="div",disabled:s=!1,disableElevation:l=!1,disableFocusRipple:c=!1,disableRipple:u=!1,fullWidth:d=!1,orientation:h="horizontal",size:p="medium",variant:f="outlined"}=n,m=Object(N.a)(n,jn),g=Object(z.a)({},n,{color:i,component:a,disabled:s,disableElevation:l,disableFocusRipple:c,disableRipple:u,fullWidth:d,orientation:h,size:p,variant:f}),v=(t=>{const{classes:e,color:n,disabled:r,disableElevation:o,fullWidth:i,orientation:a,variant:s}=t,l={root:["root",s,"vertical"===a&&"vertical",i&&"fullWidth",o&&"disableElevation"],grouped:["grouped",`grouped${Object(At.a)(a)}`,`grouped${Object(At.a)(s)}`,`grouped${Object(At.a)(s)}${Object(At.a)(a)}`,`grouped${Object(At.a)(s)}${Object(At.a)(n)}`,r&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Object(vt.a)(l,En,e)})(g),b=I.useMemo((()=>({className:v.grouped,color:i,disabled:s,disableElevation:l,disableFocusRipple:c,disableRipple:u,fullWidth:d,size:p,variant:f})),[i,s,l,c,u,d,p,f,v.grouped]),y=function(t){return I.Children.toArray(t).filter((t=>I.isValidElement(t)))}(r),A=y.length,C=t=>{const e=0===t,n=t===A-1;return e&&n?"":e?v.firstButton:n?v.lastButton:v.middleButton};return Object($.jsx)(kn,Object(z.a)({as:a,role:"group",className:Object(et.a)(v.root,o),ref:e,ownerState:g},m,{children:Object($.jsx)(_e.Provider,{value:b,children:y.map(((t,e)=>Object($.jsx)(Te.Provider,{value:C(e),children:t},e)))})}))})),Tn=n(101),Pn=n.n(Tn),Rn=n(102),Dn=n.n(Rn),Bn=n(103),Fn=n.n(Bn);function In(t){return{textOverflow:"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":`${t}`,overflow:"hidden",whiteSpace:t>1?"normal":"nowrap",display:t>1?"-webkit-box":"block"}}function Mn(t){if(t.loading)return I.default.createElement(On,{variant:"rounded",width:t.imageSize,height:t.imageSize,style:{borderRadius:8}});if(null===t.data.barcodeImage){const e={width:t.imageSize,height:t.imageSize,backgroundColor:"#E0E0E0",borderRadius:3};return I.default.createElement(mt,{sx:e})}const e={width:t.imageSize,height:t.imageSize,borderRadius:8};return I.default.createElement("img",{src:t.data.barcodeImage,alt:t.data.title,style:e})}function Wn(t){var e,n;const r=(null===(e=t.barcodeMappedData)||void 0===e?void 0:e.state)||"LOADING",o=(null===(n=t.barcodeMappedData)||void 0===n?void 0:n.value)||{title:"",subtitle:"",barcodeImage:""},i=!t||"LOADED"!==r,a=t.imageSize,s=t.barcodeTitle.visible||t.barcodeSubtitle.visible||t.counterForm,l=t.counterForm&&{"&:hover, &:focus, &:active, &":{borderColor:gt.b.getColorValue(t.counterForm.manualCountOutlineColor),backgroundColor:"transparent"}};return I.default.createElement(mt,{sx:{display:"flex"},"data-sb-barcode-info":"1"},t.barcodeImageVisible&&I.default.createElement(mt,{sx:{pr:s?"16px":0,display:"flex",alignItems:"center",justifyContent:"center"}},I.default.createElement(Mn,{data:o,imageSize:a,loading:i})),s&&I.default.createElement(mt,{sx:{flex:1,display:"flex",flexDirection:"column",verticalAlign:"middle",justifyContent:"center",m:0,p:0,minWidth:0}},t.barcodeTitle.visible&&I.default.createElement(mt,{display:i?"block":"flex",sx:{alignItems:"center"}},I.default.createElement(Vt,{fontSize:16,fontWeight:"bold",sx:Object.assign(Object.assign({},In(t.maxNumberOfTitleLines)),Object(Qt.b)(t.barcodeTitle))},i?I.default.createElement(On,{variant:"text"}):o.title),t.displayRightArrow&&!i&&I.default.createElement(Pn.a,{sx:{fontSize:16,fontWeight:"bold",color:gt.b.getColorValue(t.barcodeTitle.color)}})),t.barcodeSubtitle.visible&&I.default.createElement(Vt,{fontSize:14,fontWeight:400,sx:Object.assign(Object.assign({},In(t.maxNumberOfSubtitleLines)),Object(Qt.b)(t.barcodeSubtitle))},i?I.default.createElement(On,{variant:"text"}):o.subtitle),t.counterForm&&I.default.createElement(_n,{variant:"outlined"},I.default.createElement(Ie,{disabled:!t.counterForm.removeButtonEnabled,sx:l,style:{opacity:t.counterForm.removeButtonEnabled?1:.3},onClick:()=>t.counterForm.setCounter(t.counterForm.counter-1),disableRipple:!0},I.default.createElement(Dn.a,{sx:{color:gt.b.getColorValue(t.counterForm.manualCountChangeColor)}})),I.default.createElement(Ie,{sx:Object.assign(Object.assign({},l),{color:gt.b.getColorValue(t.counterForm.manualCountChangeColor),fontWeight:"bold",fontSize:16}),onClick:t.counterForm.onNumberClick,disableRipple:!0},t.counterForm.counter),I.default.createElement(Ie,{disabled:!t.counterForm.addButtonEnabled,sx:l,style:{opacity:t.counterForm.addButtonEnabled?1:.3},onClick:()=>t.counterForm.setCounter(t.counterForm.counter+1),disableRipple:!0},I.default.createElement(Fn.a,{sx:{color:gt.b.getColorValue(t.counterForm.manualCountChangeColor)}})))))}var zn=n(31),Nn=n(61);function Vn(){const t=Object(lt.a)(Nn.a);return t[K.a]||t}var Un=I.createContext();function Hn(t){return Object(xt.a)("MuiGrid",t)}const $n=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];var Gn=Object(ht.a)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((t=>`spacing-xs-${t}`)),...["column-reverse","column","row-reverse","row"].map((t=>`direction-xs-${t}`)),...["nowrap","wrap-reverse","wrap"].map((t=>`wrap-xs-${t}`)),...$n.map((t=>`grid-xs-${t}`)),...$n.map((t=>`grid-sm-${t}`)),...$n.map((t=>`grid-md-${t}`)),...$n.map((t=>`grid-lg-${t}`)),...$n.map((t=>`grid-xl-${t}`))]);const Yn=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Qn(t){const e=parseFloat(t);return`${e}${String(t).replace(String(e),"")||"px"}`}function Zn({breakpoints:t,values:e}){let n="";Object.keys(e).forEach((t=>{""===n&&0!==e[t]&&(n=t)}));const r=Object.keys(t).sort(((e,n)=>t[e]-t[n]));return r.slice(0,r.indexOf(n))}const Xn=Object(bt.a)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{container:r,direction:o,item:i,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=function(t,e,n={}){if(!t||t<=0)return[];if("string"==typeof t&&!Number.isNaN(Number(t))||"number"==typeof t)return[n[`spacing-xs-${String(t)}`]];const r=[];return e.forEach((e=>{const o=t[e];Number(o)>0&&r.push(n[`spacing-${e}-${String(o)}`])})),r}(a,c,e));const d=[];return c.forEach((t=>{const r=n[t];r&&d.push(e[`grid-${t}-${String(r)}`])})),[e.root,r&&e.container,i&&e.item,l&&e.zeroMinWidth,...u,"row"!==o&&e[`direction-xs-${String(o)}`],"wrap"!==s&&e[`wrap-xs-${String(s)}`],...d]}})((({ownerState:t})=>Object(z.a)({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},"wrap"!==t.wrap&&{flexWrap:t.wrap})),(function({theme:t,ownerState:e}){const n=Object(zn.d)({values:e.direction,breakpoints:t.breakpoints.values});return Object(zn.b)({theme:t},n,(t=>{const e={flexDirection:t};return 0===t.indexOf("column")&&(e[`& > .${Gn.item}`]={maxWidth:"none"}),e}))}),(function({theme:t,ownerState:e}){const{container:n,rowSpacing:r}=e;let o={};if(n&&0!==r){const e=Object(zn.d)({values:r,breakpoints:t.breakpoints.values});let n;"object"==typeof e&&(n=Zn({breakpoints:t.breakpoints.values,values:e})),o=Object(zn.b)({theme:t},e,((e,r)=>{var o;const i=t.spacing(e);return"0px"!==i?{marginTop:`-${Qn(i)}`,[`& > .${Gn.item}`]:{paddingTop:Qn(i)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${Gn.item}`]:{paddingTop:0}}}))}return o}),(function({theme:t,ownerState:e}){const{container:n,columnSpacing:r}=e;let o={};if(n&&0!==r){const e=Object(zn.d)({values:r,breakpoints:t.breakpoints.values});let n;"object"==typeof e&&(n=Zn({breakpoints:t.breakpoints.values,values:e})),o=Object(zn.b)({theme:t},e,((e,r)=>{var o;const i=t.spacing(e);return"0px"!==i?{width:`calc(100% + ${Qn(i)})`,marginLeft:`-${Qn(i)}`,[`& > .${Gn.item}`]:{paddingLeft:Qn(i)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${Gn.item}`]:{paddingLeft:0}}}))}return o}),(function({theme:t,ownerState:e}){let n;return t.breakpoints.keys.reduce(((r,o)=>{let i={};if(e[o]&&(n=e[o]),!n)return r;if(!0===n)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=Object(zn.d)({values:e.columns,breakpoints:t.breakpoints.values}),s="object"==typeof a?a[o]:a;if(null==s)return r;const l=Math.round(n/s*1e8)/1e6+"%";let c={};if(e.container&&e.item&&0!==e.columnSpacing){const n=t.spacing(e.columnSpacing);if("0px"!==n){const t=`calc(${l} + ${Qn(n)})`;c={flexBasis:t,maxWidth:t}}}i=Object(z.a)({flexBasis:l,flexGrow:0,maxWidth:l},c)}return 0===t.breakpoints.values[o]?Object.assign(r,i):r[t.breakpoints.up(o)]=i,r}),{})}));const qn=t=>{const{classes:e,container:n,direction:r,item:o,spacing:i,wrap:a,zeroMinWidth:s,breakpoints:l}=t;let c=[];n&&(c=function(t,e){if(!t||t<=0)return[];if("string"==typeof t&&!Number.isNaN(Number(t))||"number"==typeof t)return[`spacing-xs-${String(t)}`];const n=[];return e.forEach((e=>{const r=t[e];if(Number(r)>0){const t=`spacing-${e}-${String(r)}`;n.push(t)}})),n}(i,l));const u=[];l.forEach((e=>{const n=t[e];n&&u.push(`grid-${e}-${String(n)}`)}));const d={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==a&&`wrap-xs-${String(a)}`,...u]};return Object(vt.a)(d,Hn,e)};var Kn=I.forwardRef((function(t,e){const n=Object(yt.a)({props:t,name:"MuiGrid"}),{breakpoints:r}=Vn(),o=st(n),{className:i,columns:a,columnSpacing:s,component:l="div",container:c=!1,direction:u="row",item:d=!1,rowSpacing:h,spacing:p=0,wrap:f="wrap",zeroMinWidth:m=!1}=o,g=Object(N.a)(o,Yn),v=h||p,b=s||p,y=I.useContext(Un),A=c?a||12:y,C={},S=Object(z.a)({},g);r.keys.forEach((t=>{null!=g[t]&&(C[t]=g[t],delete S[t])}));const x=Object(z.a)({},o,{columns:A,container:c,direction:u,item:d,rowSpacing:v,columnSpacing:b,wrap:f,zeroMinWidth:m,spacing:p},C,{breakpoints:r.keys}),w=qn(x);return Object($.jsx)(Un.Provider,{value:A,children:Object($.jsx)(Xn,Object(z.a)({ownerState:x,className:Object(et.a)(w.root,i),as:l,ref:e},S))})}));function Jn(t){return Object(xt.a)("MuiDivider",t)}Object(ht.a)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const tr=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],er=Object(bt.a)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.absolute&&e.absolute,e[n.variant],n.light&&e.light,"vertical"===n.orientation&&e.vertical,n.flexItem&&e.flexItem,n.children&&e.withChildren,n.children&&"vertical"===n.orientation&&e.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&e.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&e.textAlignLeft]}})((({theme:t,ownerState:e})=>Object(z.a)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},e.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},e.light&&{borderColor:t.vars?`rgba(${t.vars.palette.dividerChannel} / 0.08)`:Object(Ct.a)(t.palette.divider,.08)},"inset"===e.variant&&{marginLeft:72},"middle"===e.variant&&"horizontal"===e.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===e.variant&&"vertical"===e.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===e.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},e.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:t})=>Object(z.a)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:t,ownerState:e})=>Object(z.a)({},e.children&&"vertical"!==e.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(t.vars||t).palette.divider}`}})),(({theme:t,ownerState:e})=>Object(z.a)({},e.children&&"vertical"===e.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(t.vars||t).palette.divider}`}})),(({ownerState:t})=>Object(z.a)({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),nr=Object(bt.a)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.wrapper,"vertical"===n.orientation&&e.wrapperVertical]}})((({theme:t,ownerState:e})=>Object(z.a)({display:"inline-block",paddingLeft:`calc(${t.spacing(1)} * 1.2)`,paddingRight:`calc(${t.spacing(1)} * 1.2)`},"vertical"===e.orientation&&{paddingTop:`calc(${t.spacing(1)} * 1.2)`,paddingBottom:`calc(${t.spacing(1)} * 1.2)`}))),rr=I.forwardRef((function(t,e){const n=Object(yt.a)({props:t,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:h="fullWidth"}=n,p=Object(N.a)(n,tr),f=Object(z.a)({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:h}),m=(t=>{const{absolute:e,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=t,c={root:["root",e&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]};return Object(vt.a)(c,Jn,r)})(f);return Object($.jsx)(er,Object(z.a)({as:a,className:Object(et.a)(m.root,i),role:u,ref:e,ownerState:f},p,{children:o?Object($.jsx)(nr,{className:m.wrapper,ownerState:f,children:o}):null}))}));rr.muiSkipListHighlight=!0;var or=rr;W.ButtonConfiguration;function ir(t){const e=Object(I.useContext)(gt.a).getColorValue;return t.visible?I.default.createElement(Ie,{onClick:t.onClick,type:t.type,sx:Object.assign(Object.assign({},t.style),{"&:hover, &:focus, &:active, &":{borderStyle:"solid",borderColor:e(t.background.strokeColor),borderWidth:t.background.strokeWidth,backgroundColor:e(t.background.fillColor),textTransform:"none",outline:"none"}}),disableRipple:!0},t.foreground.iconVisible&&t.icon&&I.default.createElement(t.icon,{sx:{color:e(t.foreground.color),pr:2}}),I.default.createElement(Qt.a,{config:{visible:!0,text:t.text,color:t.foreground.color,useShadow:t.foreground.useShadow}})):null}var ar=n(161),sr=n(128);function lr(t){return"string"==typeof t}function cr(t,e,n){return void 0===t||lr(t)?e:Object(z.a)({},e,{ownerState:Object(z.a)({},e.ownerState,n)})}function ur(t,e=[]){if(void 0===t)return{};const n={};return Object.keys(t).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof t[n]&&!e.includes(n))).forEach((e=>{n[e]=t[e]})),n}function dr(t){if(void 0===t)return{};const e={};return Object.keys(t).filter((e=>!(e.match(/^on[A-Z]/)&&"function"==typeof t[e]))).forEach((n=>{e[n]=t[n]})),e}function hr(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=t;if(!e){const t=Object(et.a)(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),e=Object(z.a)({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Object(z.a)({},n,o,r);return t.length>0&&(a.className=t),Object.keys(e).length>0&&(a.style=e),{props:a,internalRef:void 0}}const a=ur(Object(z.a)({},o,r)),s=dr(r),l=dr(o),c=e(a),u=Object(et.a)(null==c?void 0:c.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=Object(z.a)({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),h=Object(z.a)({},c,n,l,s);return u.length>0&&(h.className=u),Object.keys(d).length>0&&(h.style=d),{props:h,internalRef:c.ref}}function pr(t,e,n){return"function"==typeof t?t(e,n):t}const fr=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function mr(t){var e;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=t,a=Object(N.a)(t,fr),s=i?{}:pr(r,o),{props:l,internalRef:c}=hr(Object(z.a)({},a,{externalSlotProps:s})),u=Object(sr.a)(c,null==s?void 0:s.ref,null==(e=t.additionalProps)?void 0:e.ref);return cr(n,Object(z.a)({},l,{ref:u}),o)}var gr=n(112),vr=n(130),br=n(160),yr=n(131);function Ar(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function Cr(t){return parseInt(Object(yr.a)(t).getComputedStyle(t).paddingRight,10)||0}function Sr(t,e,n,r,o){const i=[e,n,...r];[].forEach.call(t.children,(t=>{const e=-1===i.indexOf(t),n=!function(t){const e=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(t.tagName),n="INPUT"===t.tagName&&"hidden"===t.getAttribute("type");return e||n}(t);e&&n&&Ar(t,o)}))}function xr(t,e){let n=-1;return t.some(((t,r)=>!!e(t)&&(n=r,!0))),n}function wr(t,e){const n=[],r=t.container;if(!e.disableScrollLock){if(function(t){const e=Object(gr.a)(t);return e.body===t?Object(yr.a)(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}(r)){const t=function(t){const e=t.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}(Object(gr.a)(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Cr(r)+t}px`;const e=Object(gr.a)(r).querySelectorAll(".mui-fixed");[].forEach.call(e,(e=>{n.push({value:e.style.paddingRight,property:"padding-right",el:e}),e.style.paddingRight=`${Cr(e)+t}px`}))}let t;if(r.parentNode instanceof DocumentFragment)t=Object(gr.a)(r).body;else{const e=r.parentElement,n=Object(yr.a)(r);t="HTML"===(null==e?void 0:e.nodeName)&&"scroll"===n.getComputedStyle(e).overflowY?e:r}n.push({value:t.style.overflow,property:"overflow",el:t},{value:t.style.overflowX,property:"overflow-x",el:t},{value:t.style.overflowY,property:"overflow-y",el:t}),t.style.overflow="hidden"}return()=>{n.forEach((({value:t,el:e,property:n})=>{t?e.style.setProperty(n,t):e.style.removeProperty(n)}))}}const Or=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,e){let n=this.modals.indexOf(t);if(-1!==n)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Ar(t.modalRef,!1);const r=function(t){const e=[];return[].forEach.call(t.children,(t=>{"true"===t.getAttribute("aria-hidden")&&e.push(t)})),e}(e);Sr(e,t.mount,t.modalRef,r,!0);const o=xr(this.containers,(t=>t.container===e));return-1!==o?(this.containers[o].modals.push(t),n):(this.containers.push({modals:[t],container:e,restore:null,hiddenSiblings:r}),n)}mount(t,e){const n=xr(this.containers,(e=>-1!==e.modals.indexOf(t))),r=this.containers[n];r.restore||(r.restore=wr(r,e))}remove(t,e=!0){const n=this.modals.indexOf(t);if(-1===n)return n;const r=xr(this.containers,(e=>-1!==e.modals.indexOf(t))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),t.modalRef&&Ar(t.modalRef,e),Sr(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const t=o.modals[o.modals.length-1];t.modalRef&&Ar(t.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}};function Er(t){const{container:e,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Or,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=t,h=I.useRef({}),p=I.useRef(null),f=I.useRef(null),m=Object(sr.a)(f,d),[g,v]=I.useState(!u),b=function(t){return!!t&&t.props.hasOwnProperty("in")}(l);let y=!0;"false"!==t["aria-hidden"]&&!1!==t["aria-hidden"]||(y=!1);const A=()=>(h.current.modalRef=f.current,h.current.mount=p.current,h.current),C=()=>{o.mount(A(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},S=Object(vr.a)((()=>{const t=function(t){return"function"==typeof t?t():t}(e)||Object(gr.a)(p.current).body;o.add(A(),t),f.current&&C()})),x=I.useCallback((()=>o.isTopModal(A())),[o]),w=Object(vr.a)((t=>{p.current=t,t&&(u&&x()?C():f.current&&Ar(f.current,y))})),O=I.useCallback((()=>{o.remove(A(),y)}),[y,o]);I.useEffect((()=>()=>{O()}),[O]),I.useEffect((()=>{u?S():b&&i||O()}),[u,O,b,i,S]);const E=t=>e=>{var r;null==(r=t.onKeyDown)||r.call(t,e),"Escape"===e.key&&229!==e.which&&x()&&(n||(e.stopPropagation(),c&&c(e,"escapeKeyDown")))},L=t=>e=>{var n;null==(n=t.onClick)||n.call(t,e),e.target===e.currentTarget&&c&&c(e,"backdropClick")};return{getRootProps:(e={})=>{const n=ur(t);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Object(z.a)({},n,e);return Object(z.a)({role:"presentation"},r,{onKeyDown:E(r),ref:m})},getBackdropProps:(t={})=>{const e=t;return Object(z.a)({"aria-hidden":!0},e,{onClick:L(e),open:u})},getTransitionProps:()=>({onEnter:Object(br.a)((()=>{v(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:Object(br.a)((()=>{v(!0),s&&s(),i&&O()}),null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:w,isTopModal:x,exited:g,hasTransition:b}}const Lr=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function jr(t){const e=[],n=[];return Array.from(t.querySelectorAll(Lr)).forEach(((t,r)=>{const o=function(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?"true"===t.contentEditable||("AUDIO"===t.nodeName||"VIDEO"===t.nodeName||"DETAILS"===t.nodeName)&&null===t.getAttribute("tabindex")?0:t.tabIndex:e}(t);-1!==o&&function(t){return!(t.disabled||"INPUT"===t.tagName&&"hidden"===t.type||function(t){if("INPUT"!==t.tagName||"radio"!==t.type)return!1;if(!t.name)return!1;const e=e=>t.ownerDocument.querySelector(`input[type="radio"]${e}`);let n=e(`[name="${t.name}"]:checked`);return n||(n=e(`[name="${t.name}"]`)),n!==t}(t))}(t)&&(0===o?e.push(t):n.push({documentOrder:r,tabIndex:o,node:t}))})),n.sort(((t,e)=>t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex)).map((t=>t.node)).concat(e)}function kr(){return!0}function _r(t){const{children:e,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=jr,isEnabled:a=kr,open:s}=t,l=I.useRef(!1),c=I.useRef(null),u=I.useRef(null),d=I.useRef(null),h=I.useRef(null),p=I.useRef(!1),f=I.useRef(null),m=Object(sr.a)(e.ref,f),g=I.useRef(null);I.useEffect((()=>{s&&f.current&&(p.current=!n)}),[n,s]),I.useEffect((()=>{if(!s||!f.current)return;const t=Object(gr.a)(f.current);return f.current.contains(t.activeElement)||(f.current.hasAttribute("tabIndex")||f.current.setAttribute("tabIndex","-1"),p.current&&f.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),I.useEffect((()=>{if(!s||!f.current)return;const t=Object(gr.a)(f.current),e=e=>{g.current=e,!r&&a()&&"Tab"===e.key&&t.activeElement===f.current&&e.shiftKey&&(l.current=!0,u.current&&u.current.focus())},n=()=>{const e=f.current;if(null===e)return;if(!t.hasFocus()||!a()||l.current)return void(l.current=!1);if(e.contains(t.activeElement))return;if(r&&t.activeElement!==c.current&&t.activeElement!==u.current)return;if(t.activeElement!==h.current)h.current=null;else if(null!==h.current)return;if(!p.current)return;let n=[];if(t.activeElement!==c.current&&t.activeElement!==u.current||(n=i(f.current)),n.length>0){var o,s;const t=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),e=n[0],r=n[n.length-1];"string"!=typeof e&&"string"!=typeof r&&(t?r.focus():e.focus())}else e.focus()};t.addEventListener("focusin",n),t.addEventListener("keydown",e,!0);const o=setInterval((()=>{t.activeElement&&"BODY"===t.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),t.removeEventListener("focusin",n),t.removeEventListener("keydown",e,!0)}}),[n,r,o,a,s,i]);const v=t=>{null===d.current&&(d.current=t.relatedTarget),p.current=!0};return Object($.jsxs)(I.Fragment,{children:[Object($.jsx)("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),I.cloneElement(e,{ref:m,onFocus:t=>{null===d.current&&(d.current=t.relatedTarget),p.current=!0,h.current=t.target;const n=e.props.onFocus;n&&n(t)}}),Object($.jsx)("div",{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":"sentinelEnd"})]})}var Tr=n(111),Pr=n(129);const Rr=I.forwardRef((function(t,e){const{children:n,container:r,disablePortal:o=!1}=t,[i,a]=I.useState(null),s=Object(sr.a)(I.isValidElement(n)?n.ref:null,e);if(Object(Tr.a)((()=>{o||a(function(t){return"function"==typeof t?t():t}(r)||document.body)}),[r,o]),Object(Tr.a)((()=>{if(i&&!o)return Object(Pr.a)(e,i),()=>{Object(Pr.a)(e,null)}}),[e,i,o]),o){if(I.isValidElement(n)){const t={ref:s};return I.cloneElement(n,t)}return Object($.jsx)(I.Fragment,{children:n})}return Object($.jsx)(I.Fragment,{children:i?I.createPortal(n,i):i})}));var Dr=!1,Br="unmounted",Fr="exited",Ir="entering",Mr="entered",Wr="exiting",zr=function(t){function e(e,n){var r;r=t.call(this,e,n)||this;var o,i=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?i?(o=Fr,r.appearStatus=Ir):o=Mr:o=e.unmountOnExit||e.mountOnEnter?Br:Fr,r.state={status:o},r.nextCallback=null,r}te(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&e.status===Br?{status:Fr}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==Ir&&n!==Mr&&(e=Ir):n!==Ir&&n!==Mr||(e=Wr)}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var t,e,n,r=this.props.timeout;return t=e=n=r,null!=r&&"number"!=typeof r&&(t=r.exit,e=r.enter,n=void 0!==r.appear?r.appear:e),{exit:t,enter:e,appear:n}},n.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e)if(this.cancelNextCallback(),e===Ir){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:I.default.findDOMNode(this);n&&function(t){t.scrollTop}(n)}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Fr&&this.setState({status:Br})},n.performEnter=function(t){var e=this,n=this.props.enter,r=this.context?this.context.isMounting:t,o=this.props.nodeRef?[r]:[I.default.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!t&&!n||Dr?this.safeSetState({status:Mr},(function(){e.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Ir},(function(){e.props.onEntering(i,a),e.onTransitionEnd(l,(function(){e.safeSetState({status:Mr},(function(){e.props.onEntered(i,a)}))}))})))},n.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:I.default.findDOMNode(this);e&&!Dr?(this.props.onExit(r),this.safeSetState({status:Wr},(function(){t.props.onExiting(r),t.onTransitionEnd(n.exit,(function(){t.safeSetState({status:Fr},(function(){t.props.onExited(r)}))}))}))):this.safeSetState({status:Fr},(function(){t.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},n.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=this.props.nodeRef?this.props.nodeRef.current:I.default.findDOMNode(this),r=null==t&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},n.render=function(){var t=this.state.status;if(t===Br)return null;var e=this.props,n=e.children,r=(e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef,Object(N.a)(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return I.default.createElement(ee.Provider,{value:null},"function"==typeof n?n(t,r):I.default.cloneElement(I.default.Children.only(n),r))},e}(I.default.Component);function Nr(){}zr.contextType=ee,zr.propTypes={},zr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Nr,onEntering:Nr,onEntered:Nr,onExit:Nr,onExiting:Nr,onExited:Nr},zr.UNMOUNTED=Br,zr.EXITED=Fr,zr.ENTERING=Ir,zr.ENTERED=Mr,zr.EXITING=Wr;var Vr=zr;const Ur=t=>t.scrollTop;function Hr(t,e){var n,r;const{timeout:o,easing:i,style:a={}}=t;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[e.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[e.mode]:i,delay:a.transitionDelay}}const $r=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Gr={entering:{opacity:1},entered:{opacity:1}};var Yr=I.forwardRef((function(t,e){const n=Vn(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:h,onExited:p,onExiting:f,style:m,timeout:g=r,TransitionComponent:v=Vr}=t,b=Object(N.a)(t,$r),y=I.useRef(null),A=Object(Xt.a)(y,a.ref,e),C=t=>e=>{if(t){const n=y.current;void 0===e?t(n):t(n,e)}},S=C(d),x=C(((t,e)=>{Ur(t);const r=Hr({style:m,timeout:g,easing:s},{mode:"enter"});t.style.webkitTransition=n.transitions.create("opacity",r),t.style.transition=n.transitions.create("opacity",r),c&&c(t,e)})),w=C(u),O=C(f),E=C((t=>{const e=Hr({style:m,timeout:g,easing:s},{mode:"exit"});t.style.webkitTransition=n.transitions.create("opacity",e),t.style.transition=n.transitions.create("opacity",e),h&&h(t)})),L=C(p);return Object($.jsx)(v,Object(z.a)({appear:i,in:l,nodeRef:y,onEnter:x,onEntered:w,onEntering:S,onExit:E,onExited:L,onExiting:O,addEndListener:t=>{o&&o(y.current,t)},timeout:g},b,{children:(t,e)=>I.cloneElement(a,Object(z.a)({style:Object(z.a)({opacity:0,visibility:"exited"!==t||l?void 0:"hidden"},Gr[t],m,a.props.style),ref:A},e))}))}));function Qr(t){return Object(xt.a)("MuiBackdrop",t)}Object(ht.a)("MuiBackdrop",["root","invisible"]);const Zr=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Xr=Object(bt.a)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.invisible&&e.invisible]}})((({ownerState:t})=>Object(z.a)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})));var qr=I.forwardRef((function(t,e){var n,r,o;const i=Object(yt.a)({props:t,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:h,slotProps:p={},slots:f={},TransitionComponent:m=Yr,transitionDuration:g}=i,v=Object(N.a)(i,Zr),b=Object(z.a)({},i,{component:l,invisible:d}),y=(t=>{const{classes:e,invisible:n}=t,r={root:["root",n&&"invisible"]};return Object(vt.a)(r,Qr,e)})(b),A=null!=(n=p.root)?n:u.root;return Object($.jsx)(m,Object(z.a)({in:h,timeout:g},v,{children:Object($.jsx)(Xr,Object(z.a)({"aria-hidden":!0},A,{as:null!=(r=null!=(o=f.root)?o:c.Root)?r:l,className:Object(et.a)(y.root,s,null==A?void 0:A.className),ownerState:Object(z.a)({},b,null==A?void 0:A.ownerState),classes:y,ref:e,children:a}))}))}));function Kr(t){return Object(xt.a)("MuiModal",t)}Object(ht.a)("MuiModal",["root","hidden","backdrop"]);const Jr=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],to=Object(bt.a)("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.open&&n.exited&&e.hidden]}})((({theme:t,ownerState:e})=>Object(z.a)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!e.open&&e.exited&&{visibility:"hidden"}))),eo=Object(bt.a)(qr,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,e)=>e.backdrop})({zIndex:-1});var no=I.forwardRef((function(t,e){var n,r,o,i,a,s;const l=Object(yt.a)({name:"MuiModal",props:t}),{BackdropComponent:c=eo,BackdropProps:u,className:d,closeAfterTransition:h=!1,children:p,container:f,component:m,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:A=!1,disablePortal:C=!1,disableRestoreFocus:S=!1,disableScrollLock:x=!1,hideBackdrop:w=!1,keepMounted:O=!1,onBackdropClick:E,open:L,slotProps:j,slots:k}=l,_=Object(N.a)(l,Jr),T=Object(z.a)({},l,{closeAfterTransition:h,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:A,disablePortal:C,disableRestoreFocus:S,disableScrollLock:x,hideBackdrop:w,keepMounted:O}),{getRootProps:P,getBackdropProps:R,getTransitionProps:D,portalRef:B,isTopModal:F,exited:M,hasTransition:W}=Er(Object(z.a)({},T,{rootRef:e})),V=Object(z.a)({},T,{exited:M}),U=(t=>{const{open:e,exited:n,classes:r}=t,o={root:["root",!e&&n&&"hidden"],backdrop:["backdrop"]};return Object(vt.a)(o,Kr,r)})(V),H={};if(void 0===p.props.tabIndex&&(H.tabIndex="-1"),W){const{onEnter:t,onExited:e}=D();H.onEnter=t,H.onExited=e}const G=null!=(n=null!=(r=null==k?void 0:k.root)?r:g.Root)?n:to,Y=null!=(o=null!=(i=null==k?void 0:k.backdrop)?i:g.Backdrop)?o:c,Q=null!=(a=null==j?void 0:j.root)?a:v.root,Z=null!=(s=null==j?void 0:j.backdrop)?s:v.backdrop,X=mr({elementType:G,externalSlotProps:Q,externalForwardedProps:_,getSlotProps:P,additionalProps:{ref:e,as:m},ownerState:V,className:Object(et.a)(d,null==Q?void 0:Q.className,null==U?void 0:U.root,!V.open&&V.exited&&(null==U?void 0:U.hidden))}),q=mr({elementType:Y,externalSlotProps:Z,additionalProps:u,getSlotProps:t=>R(Object(z.a)({},t,{onClick:e=>{E&&E(e),null!=t&&t.onClick&&t.onClick(e)}})),className:Object(et.a)(null==Z?void 0:Z.className,null==u?void 0:u.className,null==U?void 0:U.backdrop),ownerState:V});return O||L||W&&!M?Object($.jsx)(Rr,{ref:B,container:f,disablePortal:C,children:Object($.jsxs)(G,Object(z.a)({},X,{children:[!w&&c?Object($.jsx)(Y,Object(z.a)({},q)):null,Object($.jsx)(_r,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:S,isEnabled:F,open:L,children:I.cloneElement(p,H)})]}))}):null}));function ro(t){return Object(xt.a)("MuiDialog",t)}var oo=Object(ht.a)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var io=I.createContext({});const ao=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],so=Object(bt.a)(qr,{name:"MuiDialog",slot:"Backdrop",overrides:(t,e)=>e.backdrop})({zIndex:-1}),lo=Object(bt.a)(no,{name:"MuiDialog",slot:"Root",overridesResolver:(t,e)=>e.root})({"@media print":{position:"absolute !important"}}),co=Object(bt.a)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.container,e[`scroll${Object(At.a)(n.scroll)}`]]}})((({ownerState:t})=>Object(z.a)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}))),uo=Object(bt.a)(Lt,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.paper,e[`scrollPaper${Object(At.a)(n.scroll)}`],e[`paperWidth${Object(At.a)(String(n.maxWidth))}`],n.fullWidth&&e.paperFullWidth,n.fullScreen&&e.paperFullScreen]}})((({theme:t,ownerState:e})=>Object(z.a)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===e.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===e.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!e.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===e.maxWidth&&{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${oo.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},e.maxWidth&&"xs"!==e.maxWidth&&{maxWidth:`${t.breakpoints.values[e.maxWidth]}${t.breakpoints.unit}`,[`&.${oo.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[e.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},e.fullWidth&&{width:"calc(100% - 64px)"},e.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${oo.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})));var ho=I.forwardRef((function(t,e){const n=Object(yt.a)({props:t,name:"MuiDialog"}),r=Vn(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":a,BackdropComponent:s,BackdropProps:l,children:c,className:u,disableEscapeKeyDown:d=!1,fullScreen:h=!1,fullWidth:p=!1,maxWidth:f="sm",onBackdropClick:m,onClose:g,open:v,PaperComponent:b=Lt,PaperProps:y={},scroll:A="paper",TransitionComponent:C=Yr,transitionDuration:S=o,TransitionProps:x}=n,w=Object(N.a)(n,ao),O=Object(z.a)({},n,{disableEscapeKeyDown:d,fullScreen:h,fullWidth:p,maxWidth:f,scroll:A}),E=(t=>{const{classes:e,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=t,a={root:["root"],container:["container",`scroll${Object(At.a)(n)}`],paper:["paper",`paperScroll${Object(At.a)(n)}`,`paperWidth${Object(At.a)(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Object(vt.a)(a,ro,e)})(O),L=I.useRef(),j=Object(ar.a)(a),k=I.useMemo((()=>({titleId:j})),[j]);return Object($.jsx)(lo,Object(z.a)({className:Object(et.a)(E.root,u),closeAfterTransition:!0,components:{Backdrop:so},componentsProps:{backdrop:Object(z.a)({transitionDuration:S,as:s},l)},disableEscapeKeyDown:d,onClose:g,open:v,ref:e,onClick:t=>{L.current&&(L.current=null,m&&m(t),g&&g(t,"backdropClick"))},ownerState:O},w,{children:Object($.jsx)(C,Object(z.a)({appear:!0,in:v,timeout:S,role:"presentation"},x,{children:Object($.jsx)(co,{className:Object(et.a)(E.container),onMouseDown:t=>{L.current=t.target===t.currentTarget},ownerState:O,children:Object($.jsx)(uo,Object(z.a)({as:b,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":j},y,{className:Object(et.a)(E.paper,y.className),ownerState:O,children:Object($.jsx)(io.Provider,{value:k,children:c})}))})}))}))})),po=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n};function fo(t){var e,{modalOverlayColor:n}=t,r=po(t,["modalOverlayColor"]);const o={backdrop:{style:{backgroundColor:gt.b.getColorValue(n)}}},i=Object.assign(Object.assign({},r.PaperProps),{sx:Object.assign(Object.assign({},null===(e=r.PaperProps)||void 0===e?void 0:e.sx),{maxWidth:400})});return I.default.createElement(ho,Object.assign({},r,{componentsProps:o,PaperProps:i}))}function mo(t){const e=Object(I.useContext)(gt.a).getColorValue,n=!t.barcodeMappedData||"LOADED"!==t.barcodeMappedData.state,r={backgroundColor:e(n?t.sheetColorLoading:t.sheetColorLoaded)},[o,i]=I.default.useState(),a=Object(I.useRef)((()=>{}));Object(I.useEffect)((()=>{t.open&&i(!1)}),[t.open]);const s=()=>{a.current=t.handleCancel,i(!0)};return I.default.createElement(fo,{modalOverlayColor:t.modalOverlayColor,open:t.open&&!o,fullWidth:!0,TransitionProps:{onExited:()=>{o&&a.current()}},onClose:()=>{n||s()}},I.default.createElement(Ye,{style:r},I.default.createElement(Wn,Object.assign({},t,{maxNumberOfTitleLines:2,maxNumberOfSubtitleLines:1,imageSize:68}))),I.default.createElement(qe,{style:r},I.default.createElement(Kn,{container:!0,spacing:2,sx:{overflow:"hidden"}},I.default.createElement(Kn,{item:!0,xs:12},I.default.createElement(or,{color:e(t.dividerColor)})),n?I.default.createElement(Kn,{item:!0,xs:12,sx:{textAlign:"center"}},I.default.createElement(mt,null,I.default.createElement(hn,{sx:{color:e(t.loadingMessage.color),verticalAlign:"middle",mr:2}}),I.default.createElement(Qt.a,{config:t.loadingMessage}))):I.default.createElement(I.default.Fragment,null,I.default.createElement(Kn,{item:!0,xs:6},I.default.createElement(ir,Object.assign({style:{width:"100%"},onClick:s},t.cancelButton))),I.default.createElement(Kn,{item:!0,xs:6},I.default.createElement(ir,Object.assign({style:{width:"100%"},onClick:()=>{a.current=t.handleSubmit,i(!0)}},t.submitButton)))))))}function go(t){return Object(xt.a)("MuiIconButton",t)}var vo=Object(ht.a)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);const bo=["edge","children","className","color","disabled","disableFocusRipple","size"],yo=Object(bt.a)(Le,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,"default"!==n.color&&e[`color${Object(At.a)(n.color)}`],n.edge&&e[`edge${Object(At.a)(n.edge)}`],e[`size${Object(At.a)(n.size)}`]]}})((({theme:t,ownerState:e})=>Object(z.a)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!e.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Object(Ct.a)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})),(({theme:t,ownerState:e})=>{var n;const r=null==(n=(t.vars||t).palette)?void 0:n[e.color];return Object(z.a)({},"inherit"===e.color&&{color:"inherit"},"inherit"!==e.color&&"default"!==e.color&&Object(z.a)({color:null==r?void 0:r.main},!e.disableRipple&&{"&:hover":Object(z.a)({},r&&{backgroundColor:t.vars?`rgba(${r.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Object(Ct.a)(r.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===e.size&&{padding:5,fontSize:t.typography.pxToRem(18)},"large"===e.size&&{padding:12,fontSize:t.typography.pxToRem(28)},{[`&.${vo.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})}));var Ao=I.forwardRef((function(t,e){const n=Object(yt.a)({props:t,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:c="medium"}=n,u=Object(N.a)(n,bo),d=Object(z.a)({},n,{edge:r,color:a,disabled:s,disableFocusRipple:l,size:c}),h=(t=>{const{classes:e,disabled:n,color:r,edge:o,size:i}=t,a={root:["root",n&&"disabled","default"!==r&&`color${Object(At.a)(r)}`,o&&`edge${Object(At.a)(o)}`,`size${Object(At.a)(i)}`]};return Object(vt.a)(a,go,e)})(d);return Object($.jsx)(yo,Object(z.a)({className:Object(et.a)(h.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:e,ownerState:d},u,{children:o}))})),Co=n(1);Co.h;function So(t){if(!1===t.visible)return null;const e={backgroundColor:t.active?gt.b.getColorValue(t.activeBackgroundColor):gt.b.getColorValue(t.backgroundColor),color:t.active?gt.b.getColorValue(t.activeForegroundColor):gt.b.getColorValue(t.foregroundColor)};return I.default.createElement(Ao,{sx:Object.assign(Object.assign({},e),{"&:hover, &:focus":Object.assign({outline:"none"},e),width:48,height:48}),onClick:t.onClick},t.text&&I.default.createElement("span",{style:{fontSize:15}},gt.b.getLocalizedBarcodeText(t.text)),t.icon&&I.default.createElement(t.icon,{style:{padding:7}}))}var xo=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};class wo{constructor(){this.audioFile=new Audio}initialize(t){return xo(this,void 0,void 0,(function*(){t.successBeepEnabled&&(this.audioFile.src="data:audio/mp4;base64,AAAAHGZ0eXBNNEEgAAACAE00QSBpc29taXNvMgAAAAhmcmVlAAASCG1kYXQBQCKAo3/4hS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS7/8QpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpd+aIUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLwBQCKAo3/4hS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS7/8QpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpd+aIUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLwA6jQEQfEIQGIQaqctMIv9EpiYforpaDbT80WfPFRSswKfd8cy6kN/+IUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0u//EKWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaXfViFLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLwA6jQQpRY6EYNCcKDAqAAEUgC2wFy0kF7JTgecsqIp6pxd/lHO7kUuSCLFK6n2mPOKfj5aKhQPOaRtBEKFS85eIYbr71AGaAPJTSIHeIhXTcpA5i155UICz3nXk0Cz0A8QhxIhoqQIJ2Be9MIEiJ6GpuMa1fPXcJmIoxDUKpZuJozBa6iFmjy7O/genSlwPKL6xaiiL8Y1XtgBDY7ke/CAOoawOqmZm6suSVQPbxzaxZJpWFcWva4RqTil72HqDpc2N4eG3KA0JkU8G58RNabxVq9gSLwysPKIzL1fZVF1FQwllEs4YUKpPtoMw2VtepdbZHqGriAsZ5Lu154uiewW41szI4RHfpWOWSH7s1LAzlv/xClpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWl36AhS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0vAA6jQEYVEIDEQDEKCAYhAIXMdbaI5q82OvhmYS1FO11cD3Yt4EwZI+aTsqoctJJaN0FKvNqorQmK3SUWpNOtf+uKNIxX3xeTEq8LKb/8QpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpd/+IUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0u+GEKWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpeABMDQD6WqsfRABwAUSib4c3/4hS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS7/8QpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpd+EIUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS8AAAO4bW9vdgAAAGxtdmhkAAAAAAAAAAAAAAAAAAAD6AAAAfgAAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAiJ0cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAABAAAAAAAAAfgAAAAAAAAAAAAAAAEBAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAH4AAAIAAABAAAAAAGabWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAAAfQAAAF8BVxAAAAAAALWhkbHIAAAAAAAAAAHNvdW4AAAAAAAAAAAAAAABTb3VuZEhhbmRsZXIAAAABRW1pbmYAAAAQc21oZAAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAABCXN0YmwAAABnc3RzZAAAAAAAAAABAAAAV21wNGEAAAAAAAAAAQAAAAAAAAAAAAEAEAAAAAAfQAAAAAAAM2VzZHMAAAAAA4CAgCIAAQAEgICAFEAVAAAAAAH0AAAAvXkFgICAAhWIBoCAgAECAAAAIHN0dHMAAAAAAAAAAgAAAAUAAAQAAAAAAQAAA8AAAAAcc3RzYwAAAAAAAAABAAAAAQAAAAYAAAABAAAAFHN0c3oAAAAAAAADAAAAAAYAAAAUc3RjbwAAAAAAAAABAAAALAAAABpzZ3BkAQAAAHJvbGwAAAACAAAAAf//AAAAHHNiZ3AAAAAAcm9sbAAAAAEAAAAGAAAAAQAAASJ1ZHRhAAABGm1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAG1kaXJhcHBsAAAAAAAAAAAAAAAA7Wlsc3QAAAAzqW5hbQAAACtkYXRhAAAAAQAAAAAyNTAgTWlsbGlzZWNvbmRzIG9mIFNpbGVuY2UAAAApqUFSVAAAACFkYXRhAAAAAQAAAABBbmFyIFNvZnR3YXJlIExMQwAAAClhQVJUAAAAIWRhdGEAAAABAAAAAEFuYXIgU29mdHdhcmUgTExDAAAAI6lhbGIAAAAbZGF0YQAAAAEAAAAAQmxhbmsgQXVkaW8AAAAkqXRvbwAAABxkYXRhAAAAAQAAAABMYXZmNjAuMy4xMDAAAAAZY3BpbAAAABFkYXRhAAAAFQAAAAAA",yield this.play(),"MODERN_BEEP"===t.soundType&&(this.audioFile.src="data:audio/mp4;base64,AAAAHGZ0eXBNNEEgAAACAE00QSBpc29taXNvMgAAAAhmcmVlAAAEcm1kYXQBQCKAo30ghS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLwDmVAjh8QBrRiUH/88pKh3gJPmPt9t8oIUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLwDsl6UY83aVqFeq3aVmmYyFp70/kJT+A9hdePd7Z7aRSFKZBhCUP6E1rS/9+DhfmhvTknCnQzE+QHVPD6rhSIRpGIAFmBioF1XkxwAQjxKkQMc+qECgXnCAU1IcgpFDnWo02EdihsnrUx/1bJAUo+x6//p8VmoS0iuleHvPnKj9mjjHOoaDGI/s2DHcYI66Grp+5pezZuKJExJOzoyJRdmv6ltO6ibTdTDZ1YqLauKTebYOtpTWnh3/K3kBQmN3NsieqxzHeZKNiFphWuYSWMhaHIZRnRt6O/WzTXYFGrG0wBT54NCQ3wtSpqr5dHbQN2yY0jcckhLUieNtOSjS3u1NuMqWbOx1zHwlHfJKgI349OU9iZEzeN3rCVbBVdrdcAEW9Cm2Ji2FjQNkiFBViV6ofFsNVeVqpKgpsf3/iWtBG6cpMqFHjy2QhyBEnPtwTbWbm9b1u7frF3bnaVykqieEvTKfqnCYL2u4g1CLiQ4Zb8hkkTL9tnGmdMOeqIkUcHZ0zsspzvHOUXJTlssZTRjqcIsp514HJO9YhVRXALKaCRKQkbMEty3CstONNYzuhq57bbccc+/Pq22226ueWXLLbTTw4bFIoQoGWepZBRJWQFh4yui2+evKOqLp+rLKJ4LKcAtQ7XA0aLCyMRVDDOmuoYcnFEmIrpzmRQNQIJ5HWvOesgzjrK071chBhESdztJ0sMqhdAAyjegdEYPNyA4BCDQtLGRRKQQBQIhXYqGZ65Pu1S7XMxxVXEOWtJGMAARETyDKiMN4tsmFfcvmo+sHuHZrY196169rbT/sHFGNK1cnJrBK2vDu7b0AsBd9VaKrsNHL/KxFHm3Yma/+S365yvTF+abktGk7JSrS++mXLBw76AiuijMPpwzPoP4jNzZjI+R/p7zboMSKiFvZkMx8CDIPGB+K2Ee7XaOqAu8z6cWgazCp76DdzIwsmGw2TiczmQMAafEX0U6lQOAA6jQJAfCsBrSxVH+Hw8fPKIpB7JuhzAB/BwAAAw9tb292AAAAbG12aGQAAAAAAAAAAAAAAAAAAAPoAAAATwABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAACOnRyYWsAAABcdGtoZAAAAAMAAAAAAAAAAAAAAAEAAAAAAAAATwAAAAAAAAAAAAAAAQEAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAACRlZHRzAAAAHGVsc3QAAAAAAAAAAQAAAE4AAAgAAAEAAAAAAbJtZGlhAAAAIG1kaGQAAAAAAAAAAAAAAAAAAKxEAAAVgFXEAAAAAAAtaGRscgAAAAAAAAAAc291bgAAAAAAAAAAAAAAAFNvdW5kSGFuZGxlcgAAAAFdbWluZgAAABBzbWhkAAAAAAAAAAAAAAAkZGluZgAAABxkcmVmAAAAAAAAAAEAAAAMdXJsIAAAAAEAAAEhc3RibAAAAGdzdHNkAAAAAAAAAAEAAABXbXA0YQAAAAAAAAABAAAAAAAAAAAAAQAQAAAAAKxEAAAAAAAzZXNkcwAAAAADgICAIgABAASAgIAUQBUAAAAAARrvAAEa7wWAgIACEggGgICAAQIAAAAgc3R0cwAAAAAAAAACAAAABQAABAAAAAABAAABgAAAABxzdHNjAAAAAAAAAAEAAAABAAAABgAAAAEAAAAsc3RzegAAAAAAAAAAAAAABgAAALkAAAC6AAABIAAAAQAAAAC9AAAAGgAAABRzdGNvAAAAAAAAAAEAAAAsAAAAGnNncGQBAAAAcm9sbAAAAAIAAAAB//8AAAAcc2JncAAAAAByb2xsAAAAAQAAAAYAAAABAAAAYXVkdGEAAABZbWV0YQAAAAAAAAAhaGRscgAAAAAAAAAAbWRpcmFwcGwAAAAAAAAAAAAAAAAsaWxzdAAAACSpdG9vAAAAHGRhdGEAAAABAAAAAExhdmY2MC4zLjEwMA=="),"CLASSIC_BEEP"===t.soundType&&(this.audioFile.src="data:audio/mp4;base64,AAAAHGZ0eXBNNEEgAAAAAE00QSBtcDQyaXNvbQAAAAFtZGF0AAAAAAAACHchIANAaBv6AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOCFO4v////////gyh+L1JkJB36Cv0yBUdzB8/8/b8vveozPf+/6eH18deTh9kOp11urWAB5ZsMnhMwSjUCF2MQub4hybjxDhHACGof0XiT9tAHVOwt4NPtPOMFr/ndlTpTNXy79GYIfXP7VkPs99ySHNOFkpNrBS1pClU3rRGHp6Dy9FBIlk4KbBNBLGMJRcWQxuVsVJCSMnGw1FuIUrBN2UJLoEMhurMxpIiyGAweBvyfNJy4FbxqDm3WDjCtzP+3yVmOjxhIBDANLYyeG05LNyCZONEOk/c4hCj3Y2XQkgTI7y/39g0a+MuEoAdbRz4gSgRJnjEGB0TnOB0LtiL0XB9kwz2SwCBB0MvIByUSWTPTsRdCA4PvEmwnNdTnJT5/kPGk4swkTgOOuWJBI0EkxFs5mmNIR6wSFql36Hn03/Lf/uHp+6aTmBY0HJ6P6X1atw/Y8vK72LCWpsq0beo5KkrrrMe1eabaDyfZRPYfgPwH4Dv4CHU663VrAA8wchbBRlqQNnYNlYNhYNigNhoTBsTCcTCgLBEQCX+XfNd+3y+piKntTerXdXpDWRpLzsKmJ4iRM4ig+I6R65pDawx8Ry4cxfeifbsbzK/TxNhafR9y2zFVicy8nCVkU6CkmLckGtqbuYvhruBP0TriLNTU1TNhW6tUCdUSyneDUWAox5RTMlF2W1san5MQRlj7Btm2bZhoqoUUAJlpaat54WVuTyOxqwzNVhPenFR9KBpuA3qrUrT+3ShOUdXAkGXmCrMBxH3XmROdVSkS8cccRMOKTN+7OOEIQrMYIcna5hipAqPHk6VSgy0gGXljIk7GR/O606SyhhgglQIZLyxxOa/ZANmzZkyZMlRoqIt/T6xZHaFLcZ6n8jSgTVoOGsK5MvOlIBBkR+AtM5hvkTG2UzEhEAcsA7bZfCZmmZmZjQnqfn/yRwXzQtlZljFYd93mGppQSDDV/oz8HKkKjElN9Pu/inFmh3IHFyXlrJ/dodwM2EUkLZff1jWCO84wYUa3JB52yTMCETuUgA0BWB+I4hDBR1xoligVhgVhgNhYdBcLCcakAb1XLO/eZ9cUtvv6cNzrRYdMWgFvJySSSSscWFxCQElKcwc2dFkyos8dHfXPYFSt0klO2wUeIUxNKf5LiWYGm57bV0dipv7Qpw9uRRu23CuNIbT7++AuwEnyFWIQP0OpdUhc7u2k2fKW3mTZZxCSb+gVCjOzNf7LzxdBpbZxYwuNkcRlqAMdRMhq+tXmbLkMGGph20w4JvwvBm+x4Wtomh4lz0GGBVGQ96+JUXhvqQQAQPRTHtn+e7SwaCKMXnEEWXevaFVrPVEX7wxIBbbcpAHXj2DQz/vO9M0FHzyQFtegQjjn+fM99jgBE2fLJs/PLcErzrmCGJdVHZ19uxTErdmR6viG6cetew2MYQFm5AIDdPmjeXifvbFcjkYQWUsqKoBQJAKMp50hLtJRCKLCTSw2f7e0wzzhr6eGhjlyOQ8blgBiR0fxcjQYM5rBBM/wzuDe972u2f/mN7u8zVqGu7QADPHgAK4PxW8nJJJJLgISwUZaaRYmFRWRBEIwQKfmepncccZoqHnVy0WnFag51Yt48agPiK7D59zNlI+6YR9SHvnKoiJCcRzsskEGDgIrLQoLEgDguNTzeNvuxVpc8wntXmUlTQMa9WLn/geS8F7ku6Vt+I9yiumFP6I5hbEGeXac1BCB3YA3gNA0rLFPwrWq//VvtF6JGKIOVA12lCnpZl8NJojK1yqVsVKp+ZqbDpq0S1duspmvSvCbwmftOnwnfuNqBCnzZfzZF9fkqxTCqlq8GmR3bGK+1uvEcF55cGGx8BNANhkk1438/rWbXeTtPGfukvhUxZBp0M5447+2SFiQW674ySiGSRHgyqcqU0x39tbz3afnWt5BKNHDYj1lzq6sg8dcJlJnSQDUEba4npgEoAqVUkksoqM0UUO3VXDo3Mablwd2GLAoXjgK071swbuWhQJ2AjGYsBx5dtOMYCyPVh+K3jxqA+IuAhTrc+3KVqmDuVmIO5TZmQbDr4vUV+0338fXQ3665PiYnII1REb2klWhUcwjqi/pMe4yYZaDbo9T1ougUKE5h1jUim2NZxM71zBZVa/tWam6wXlmFVVHGuvL76pT3PUGufbO9YwevQzCvXhsabRuJyJjz8A1Haftmewy4gZ0FWlMIO5BoXB49j0TeIiikaxP9ZHcD9oI6x2H4DajNt5WgRXj6/H72V+gj2bgMDVkIZ36j1Tl+wdO6fvFsz56a5V6t9lS+gyWSOvuQP9bqtYgqWlsthXSFkrTfNqni6jSQ5vN9Fp1iYJODbUg8Sg0lYLbNEM7oqvrggxzq13IfO9hGQ0MQVpMIAR0aSGMFWOZzpJmXG1IcjppdZkINTYN2UvrHmGUrVBHvRuueFPuy2GzQoSnMCvkT3WvaR/LoVYw7Voy47wdJee2Va623AFXWNINOpByyoc9SQU4vPQ6X0PMBLQs6GdMlx+RlC3VoMDOryeFFolCTD8B+A/A4AAANKbW9vdgAAAGxtdmhkAAAAANcxfvfXMX73AACsRAAADbEAAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAdx0cmFrAAAAXHRraGQAAAAB1zF+99cxfvcAAAABAAAAAAAADbEAAAAAAAAAAAAAAAABAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAF4bWRpYQAAACBtZGhkAAAAANcxfvfXMX73AACsRAAAGABVxAAAAAAAMWhkbHIAAAAAAAAAAHNvdW4AAAAAAAAAAAAAAABDb3JlIE1lZGlhIEF1ZGlvAAAAAR9taW5mAAAAEHNtaGQAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAAONzdGJsAAAAZ3N0c2QAAAAAAAAAAQAAAFdtcDRhAAAAAAAAAAEAAAAAAAAAAAACABAAAAAArEQAAAAAADNlc2RzAAAAAAOAgIAiAAAABICAgBRAFQAYAAAB9AAAAfQABYCAgAISEAaAgIABAgAAABhzdHRzAAAAAAAAAAEAAAAGAAAEAAAAABxzdHNjAAAAAAAAAAEAAAABAAAABgAAAAEAAAAsc3RzegAAAAAAAAAAAAAABgAAAP4AAAF+AAABjwAAAYQAAAFeAAABegAAABRzdGNvAAAAAAAAAAEAAAAsAAAA+nVkdGEAAADybWV0YQAAAAAAAAAiaGRscgAAAAAAAAAAbWRpcgAAAAAAAAAAAAAAAAAAAAAAxGlsc3QAAAC8LS0tLQAAABxtZWFuAAAAAGNvbS5hcHBsZS5pVHVuZXMAAAAUbmFtZQAAAABpVHVuU01QQgAAAIRkYXRhAAAAAQAAAAAgMDAwMDAwMDAgMDAwMDA4NDAgMDAwMDAyMEYgMDAwMDAwMDAwMDAwMERCMSAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMA=="))}))}beep(t){t.successBeepEnabled&&this.play()}play(){return xo(this,void 0,void 0,(function*(){try{yield this.audioFile.play()}catch(t){}}))}}wo.INSTANCE=new wo;var Oo=wo;class Eo{constructor(){this.DURATION=200}vibrate(t){t.enabled&&navigator.vibrate&&navigator.vibrate(this.DURATION)}}Eo.INSTANCE=new Eo;var Lo=Eo,jo=n(25),ko=n(44),_o=n(50);class To extends I.default.Component{constructor(t){super(t),this.state={base64Image:void 0}}render(){const t="x"+this.props.barcode.count;return I.default.createElement("div",{style:{display:"flex",flexDirection:"row",backgroundColor:"white",paddingBottom:5,paddingTop:5,borderBottom:"0.5px solid gray"}},I.default.createElement("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",width:"100%"}},I.default.createElement("div",{style:{display:"flex",fontSize:15,fontWeight:400,width:"100%"}},I.default.createElement("div",{style:{flex:1}},this.props.barcode.text),I.default.createElement("div",{style:{flex:1,justifyContent:"end",display:"flex"}},t)),I.default.createElement("div",{style:{color:"gray",fontSize:13,fontWeight:300}},this.props.barcode.format)))}}function Po(t,e){return t.format===e.format&&t.text===e.text}function Ro(t){return t.text+t.format}class Do extends I.default.Component{constructor(t){super(t),this.state={barcodes:this.toUniqueListWithDuplicateCounter(t.barcodes)}}toUniqueListWithDuplicateCounter(t){const e=[];return t.forEach((t=>{const n=e.findIndex((e=>Po(e,t)));-1===n?(t.count=1,e.push(t)):e[n].count++})),e}update(t){this.setState({barcodes:this.toUniqueListWithDuplicateCounter(t)})}render(){return I.default.createElement("div",{style:{display:"flex",flexDirection:"column",backgroundColor:"white",padding:15}},this.state.barcodes.map(((t,e)=>I.default.createElement(To,{key:e,barcode:t,onClick:this.props.onClick}))))}}class Bo{}Bo.ScanbotPrimary="#c8193c",Bo.LightGray="#F5F5F5",Bo.Gray="#808080",Bo.DarkGray="#333333",Bo.Orange="#FF5533",Bo.White="#FFFFFF",Bo.TransparentGreen="rgba(0, 255, 0, 0.5)",Bo.TransparentGray="rgba(50, 50, 50, 0.5)",Bo.TransparentBlack="rgba(0, 0, 0, 0.3)",Bo.SBNegative="#FF3737";var Fo,Io=Bo;!function(t){t[t.None=0]="None",t[t.PushRight=1]="PushRight",t[t.PushBottom=2]="PushBottom",t[t.Pop=3]="Pop"}(Fo||(Fo={}));class Mo extends I.default.Component{constructor(t){super(t),this._isVisible=!1,this.state={animation:{type:Fo.None},elements:[]}}containerStyle(t){return{height:"100%",width:"100%",position:"absolute",top:"0",left:"0",zIndex:101,transform:t,overflow:"scroll"}}render(){var t,e,n;if(this.state.animation.type===Fo.None)return null;const r=this.animation(this.state.animation.type),o=this.to(this.state.animation.type);this.previousDestination=o;const i=this.props.style;return I.default.createElement(r,{style:this.containerStyle(`${o}`),onAnimationStart:this.onAnimationStart.bind(this),onAnimationEnd:this.onAnimationEnd.bind(this),onClick:t=>{this.reset()}},I.default.createElement("div",{style:{backgroundColor:"white",height:i.sheetHeight,width:"100%",marginTop:i.sheetTopMargin,borderTopLeftRadius:20,borderTopRightRadius:20},onClick:t=>{t.stopPropagation()}},I.default.createElement("div",{style:{borderTopLeftRadius:20,borderTopRightRadius:20,backgroundColor:Io.ScanbotPrimary}},I.default.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"end",height:10}},I.default.createElement("div",{style:{backgroundColor:Io.White,height:3,width:33,borderRadius:5}})),I.default.createElement("div",{style:{display:"flex",height:50}},I.default.createElement("div",{style:{display:"flex",fontSize:12,flex:1,color:Io.White,alignItems:"center",justifyContent:"left",paddingLeft:10,fontWeight:300},onClick:this.props.onDeleteClick},"CLEAR ALL"),I.default.createElement("div",{style:{display:"flex",fontSize:15,flex:1,color:Io.White,justifyContent:"center",alignItems:"center",fontWeight:500}},(null!==(e=null===(t=this.barcodes)||void 0===t?void 0:t.length)&&void 0!==e?e:0)+" Codes"),I.default.createElement("div",{style:{display:"flex",fontSize:13,flex:1,color:Io.White,justifyContent:"right",alignItems:"center",paddingRight:10}},I.default.createElement("div",{style:{fontSize:30,fontWeight:100},onClick:t=>{t.stopPropagation(),this.reset()}},"×")))),I.default.createElement(Do,{ref:t=>{null!==t&&(this.list=t)},barcodes:null!==(n=this.barcodes)&&void 0!==n?n:[]})))}reset(){this.pop()}isVisible(){return this._isVisible}push(t,e){this._isVisible=!0,this.barcodes=e,this.updateAnimationType(t)}update(t){this.barcodes=t,this.forceUpdate()}pop(){this._isVisible=!1,this.updateAnimationType(Fo.Pop)}onAnimationStart(){}onAnimationEnd(){this.state.animation.type===Fo.Pop&&this.updateAnimationType(Fo.None)}updateAnimationType(t,e){this.setState({animation:{type:t}},e)}animation(t){let e=this.from(t),n=this.to(t);this.previousDestination===n&&(e=this.previousDestination,n=this.previousDestination);const r=Y.d`from {transform: ${e};} to {transform: ${n};}`;return Y.c.div`animation: ${r} 0.5s;`}from(t){if(t===Fo.PushRight)return this.translate("X",100);if(t===Fo.PushBottom)return this.translate("Y",100);if(t===Fo.Pop){const t=this.pushType===Fo.PushRight?"X":"Y";return this.translate(t,0)}}to(t){if(t===Fo.PushRight)return this.translate("X",0);if(t===Fo.PushBottom)return this.translate("Y",0);if(t===Fo.Pop){const t=this.pushType===Fo.PushRight?"X":"Y";return this.translate(t,100)}}translate(t,e){return"translate"+t+"("+e+"%)"}componentWillUnmount(){this._isVisible=!1}}var Wo=n(3),zo=function(t){return{isEnabled:function(e){return t.some((function(t){return!!e[t]}))}}},No={measureLayout:zo(["layout","layoutId","drag","_layoutResetTransform"]),animation:zo(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag"]),exit:zo(["exit"]),drag:zo(["drag","dragControls"]),focus:zo(["whileFocus"]),hover:zo(["whileHover","onHoverStart","onHoverEnd"]),tap:zo(["whileTap","onTap","onTapStart","onTapCancel"]),pan:zo(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),layoutAnimation:zo(["layout","layoutId"])};var Vo=Object(I.createContext)({strict:!1}),Uo=Object.keys(No),Ho=Uo.length;var $o=Object(I.createContext)({transformPagePoint:function(t){return t},isStatic:!1}),Go=Object(I.createContext)({});var Yo=Object(I.createContext)(null);function Qo(t){var e=Object(I.useRef)(null);return null===e.current&&(e.current=t()),e.current}function Zo(){var t=Object(I.useContext)(Yo);if(null===t)return[!0,null];var e=t.isPresent,n=t.onExitComplete,r=t.register,o=Jo();Object(I.useEffect)((function(){return r(o)}),[]);return!e&&n?[!1,function(){return null==n?void 0:n(o)}]:[!0]}function Xo(t){return null===t||t.isPresent}var qo=0,Ko=function(){return qo++},Jo=function(){return Qo(Ko)},ti=Object(I.createContext)(null),ei="undefined"!=typeof window,ni=ei?I.useLayoutEffect:I.useEffect;function ri(t,e,n,r){var o=Object(I.useContext)($o),i=Object(I.useContext)(Vo),a=Object(I.useContext)(Go).visualElement,s=Object(I.useContext)(Yo),l=function(t){var e=t.layoutId,n=Object(I.useContext)(ti);return n&&void 0!==e?n+"-"+e:e}(n),c=Object(I.useRef)(void 0);r||(r=i.renderer),!c.current&&r&&(c.current=r(t,{visualState:e,parent:a,props:Object(Wo.a)(Object(Wo.a)({},n),{layoutId:l}),presenceId:null==s?void 0:s.id,blockInitialAnimation:!1===(null==s?void 0:s.initial)}));var u=c.current;return ni((function(){u&&(u.setProps(Object(Wo.a)(Object(Wo.a)(Object(Wo.a)({},o),n),{layoutId:l})),u.isPresent=Xo(s),u.isPresenceRoot=!a||a.presenceId!==(null==s?void 0:s.id),u.syncRender())})),Object(I.useEffect)((function(){var t;u&&(null===(t=u.animationState)||void 0===t||t.animateChanges())})),ni((function(){return function(){return null==u?void 0:u.notifyUnmount()}}),[]),u}function oi(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function ii(t){return Array.isArray(t)}function ai(t){return"string"==typeof t||ii(t)}function si(t,e,n,r,o){var i;return void 0===r&&(r={}),void 0===o&&(o={}),"string"==typeof e&&(e=null===(i=t.variants)||void 0===i?void 0:i[e]),"function"==typeof e?e(null!=n?n:t.custom,r,o):e}function li(t,e,n){var r=t.getProps();return si(r,e,null!=n?n:r.custom,function(t){var e={};return t.forEachValue((function(t,n){return e[n]=t.get()})),e}(t),function(t){var e={};return t.forEachValue((function(t,n){return e[n]=t.getVelocity()})),e}(t))}function ci(t){var e;return"function"==typeof(null===(e=t.animate)||void 0===e?void 0:e.start)||ai(t.initial)||ai(t.animate)||ai(t.whileHover)||ai(t.whileDrag)||ai(t.whileTap)||ai(t.whileFocus)||ai(t.exit)}function ui(t){return Boolean(ci(t)||t.variants)}function di(t,e){var n=function(t,e){if(ci(t)){var n=t.initial,r=t.animate;return{initial:!1===n||ai(n)?n:void 0,animate:ai(r)?r:void 0}}return!1!==t.inherit?e:{}}(t,Object(I.useContext)(Go)),r=n.initial,o=n.animate;return Object(I.useMemo)((function(){return{initial:r,animate:o}}),e?[hi(r),hi(o)]:[])}function hi(t){return Array.isArray(t)?t.join(" "):t}function pi(t){var e=t.preloadedFeatures,n=t.createVisualElement,r=t.useRender,o=t.useVisualState,i=t.Component;return e&&function(t){for(var e in t){var n=t[e];null!==n&&(No[e].Component=n)}}(e),Object(I.forwardRef)((function(t,e){var a=Object(I.useContext)($o).isStatic,s=null,l=di(t,a),c=o(t,a);return!a&&ei&&(l.visualElement=ri(i,c,t,n),s=function(t,e,n){var r=[];if(Object(I.useContext)(Vo),!e)return null;for(var o=0;o<Ho;o++){var i=Uo[o],a=No[i],s=a.isEnabled,l=a.Component;s(t)&&l&&r.push(I.createElement(l,Object(Wo.a)({key:i},t,{visualElement:e})))}return r}(t,l.visualElement)),I.createElement(I.Fragment,null,I.createElement(Go.Provider,{value:l},r(i,t,function(t,e,n){return Object(I.useCallback)((function(r){var o;r&&(null===(o=t.mount)||void 0===o||o.call(t,r)),e&&(r?e.mount(r):e.unmount()),n&&("function"==typeof n?n(r):oi(n)&&(n.current=r))}),[e])}(c,l.visualElement,e),c,a)),s)}))}function fi(t){function e(e,n){return void 0===n&&(n={}),pi(t(e,n))}var n=new Map;return new Proxy(e,{get:function(t,r){return n.has(r)||n.set(r,e(r)),n.get(r)}})}var mi=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function gi(t){return"string"==typeof t&&!t.includes("-")&&!!(mi.indexOf(t)>-1||/[A-Z]/.test(t))}var vi={};var bi=["","X","Y","Z"],yi=["transformPerspective","x","y","z"];function Ai(t,e){return yi.indexOf(t)-yi.indexOf(e)}["translate","scale","rotate","skew"].forEach((function(t){return bi.forEach((function(e){return yi.push(t+e)}))}));var Ci=new Set(yi);function Si(t){return Ci.has(t)}var xi=new Set(["originX","originY","originZ"]);function wi(t){return xi.has(t)}function Oi(t,e){var n=e.layout,r=e.layoutId;return Si(t)||wi(t)||(n||void 0!==r)&&(!!vi[t]||"opacity"===t)}var Ei=function(t){return null!==t&&"object"==typeof t&&t.getVelocity},Li={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function ji(t){return t.startsWith("--")}var ki=function(t,e){return e&&"number"==typeof t?e.transform(t):t},_i=function(t,e){return function(n){return Math.max(Math.min(n,e),t)}},Ti=function(t){return t%1?Number(t.toFixed(5)):t},Pi=/(-)?([\d]*\.?[\d])+/g,Ri=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Di=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Bi(t){return"string"==typeof t}var Fi=function(t){return{test:function(e){return Bi(e)&&e.endsWith(t)&&1===e.split(" ").length},parse:parseFloat,transform:function(e){return""+e+t}}},Ii=Fi("deg"),Mi=Fi("%"),Wi=Fi("px"),zi=Fi("vh"),Ni=Fi("vw"),Vi=Object(Wo.a)(Object(Wo.a)({},Mi),{parse:function(t){return Mi.parse(t)/100},transform:function(t){return Mi.transform(100*t)}}),Ui={test:function(t){return"number"==typeof t},parse:parseFloat,transform:function(t){return t}},Hi=Object(Wo.a)(Object(Wo.a)({},Ui),{transform:_i(0,1)}),$i=Object(Wo.a)(Object(Wo.a)({},Ui),{default:1}),Gi=Object(Wo.a)(Object(Wo.a)({},Ui),{transform:Math.round}),Yi={borderWidth:Wi,borderTopWidth:Wi,borderRightWidth:Wi,borderBottomWidth:Wi,borderLeftWidth:Wi,borderRadius:Wi,radius:Wi,borderTopLeftRadius:Wi,borderTopRightRadius:Wi,borderBottomRightRadius:Wi,borderBottomLeftRadius:Wi,width:Wi,maxWidth:Wi,height:Wi,maxHeight:Wi,size:Wi,top:Wi,right:Wi,bottom:Wi,left:Wi,padding:Wi,paddingTop:Wi,paddingRight:Wi,paddingBottom:Wi,paddingLeft:Wi,margin:Wi,marginTop:Wi,marginRight:Wi,marginBottom:Wi,marginLeft:Wi,rotate:Ii,rotateX:Ii,rotateY:Ii,rotateZ:Ii,scale:$i,scaleX:$i,scaleY:$i,scaleZ:$i,skew:Ii,skewX:Ii,skewY:Ii,distance:Wi,translateX:Wi,translateY:Wi,translateZ:Wi,x:Wi,y:Wi,z:Wi,perspective:Wi,transformPerspective:Wi,opacity:Hi,originX:Vi,originY:Vi,originZ:Wi,zIndex:Gi,fillOpacity:Hi,strokeOpacity:Hi,numOctaves:Gi};function Qi(t,e,n,r,o,i,a,s){var l,c=t.style,u=t.vars,d=t.transform,h=t.transformKeys,p=t.transformOrigin;h.length=0;var f=!1,m=!1,g=!0;for(var v in e){var b=e[v];if(ji(v))u[v]=b;else{var y=Yi[v],A=ki(b,y);if(Si(v)){if(f=!0,d[v]=A,h.push(v),!g)continue;b!==(null!==(l=y.default)&&void 0!==l?l:0)&&(g=!1)}else if(wi(v))p[v]=A,m=!0;else if((null==n?void 0:n.isHydrated)&&(null==r?void 0:r.isHydrated)&&vi[v]){var C=vi[v].process(b,r,n),S=vi[v].applyTo;if(S)for(var x=S.length,w=0;w<x;w++)c[S[w]]=C;else c[v]=C}else c[v]=A}}r&&n&&a&&s?(c.transform=a(r.deltaFinal,r.treeScale,f?d:void 0),i&&(c.transform=i(d,c.transform)),c.transformOrigin=s(r)):(f&&(c.transform=function(t,e,n,r){var o=t.transform,i=t.transformKeys,a=e.enableHardwareAcceleration,s=void 0===a||a,l=e.allowTransformNone,c=void 0===l||l,u="";i.sort(Ai);for(var d=!1,h=i.length,p=0;p<h;p++){var f=i[p];u+=(Li[f]||f)+"("+o[f]+") ","z"===f&&(d=!0)}return!d&&s?u+="translateZ(0)":u=u.trim(),r?u=r(o,n?"":u):c&&n&&(u="none"),u}(t,o,g,i)),m&&(c.transformOrigin=function(t){var e=t.originX,n=void 0===e?"50%":e,r=t.originY,o=void 0===r?"50%":r,i=t.originZ;return n+" "+o+" "+(void 0===i?0:i)}(p)))}var Zi=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function Xi(t,e,n){for(var r in e)Ei(e[r])||Oi(r,n)||(t[r]=e[r])}function qi(t,e,n){var r={};return Xi(r,t.style||{},t),Object.assign(r,function(t,e,n){var r=t.transformTemplate;return Object(I.useMemo)((function(){var t={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};Qi(t,e,void 0,void 0,{enableHardwareAcceleration:!n},r);var o=t.vars,i=t.style;return Object(Wo.a)(Object(Wo.a)({},o),i)}),[e])}(t,e,n)),t.transformValues&&(r=t.transformValues(r)),r}function Ki(t,e,n){var r={},o=qi(t,e,n);return Boolean(t.drag)&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),r.style=o,r}var Ji=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","_layoutResetTransform","onLayoutAnimationComplete","onViewportBoxUpdate","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover"]);function ta(t){return Ji.has(t)}var ea=function(t){return!ta(t)};try{var na=n(122).default;ea=function(t){return t.startsWith("on")?!ta(t):na(t)}}catch(t){}function ra(t,e,n){return"string"==typeof t?t:Wi.transform(e+n*t)}var oa=function(t,e){return Wi.transform(t*e)},ia={offset:"stroke-dashoffset",array:"stroke-dasharray"},aa={offset:"strokeDashoffset",array:"strokeDasharray"};function sa(t,e,n,r,o,i,a,s){var l=e.attrX,c=e.attrY,u=e.originX,d=e.originY,h=e.pathLength,p=e.pathSpacing,f=void 0===p?1:p,m=e.pathOffset,g=void 0===m?0:m;Qi(t,Object(Wo.d)(e,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r,o,i,a,s),t.attrs=t.style,t.style={};var v=t.attrs,b=t.style,y=t.dimensions,A=t.totalPathLength;v.transform&&(y&&(b.transform=v.transform),delete v.transform),y&&(void 0!==u||void 0!==d||b.transform)&&(b.transformOrigin=function(t,e,n){return ra(e,t.x,t.width)+" "+ra(n,t.y,t.height)}(y,void 0!==u?u:.5,void 0!==d?d:.5)),void 0!==l&&(v.x=l),void 0!==c&&(v.y=c),void 0!==A&&void 0!==h&&function(t,e,n,r,o,i){void 0===r&&(r=1),void 0===o&&(o=0),void 0===i&&(i=!0);var a=i?ia:aa;t[a.offset]=oa(-o,e);var s=oa(n,e),l=oa(r,e);t[a.array]=s+" "+l}(v,A,h,f,g,!1)}var la=function(){return Object(Wo.a)(Object(Wo.a)({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function ca(t,e){var n=Object(I.useMemo)((function(){var n=la();return sa(n,e,void 0,void 0,{enableHardwareAcceleration:!1},t.transformTemplate),Object(Wo.a)(Object(Wo.a)({},n.attrs),{style:Object(Wo.a)({},n.style)})}),[e]);if(t.style){var r={};Xi(r,t.style,t),n.style=Object(Wo.a)(Object(Wo.a)({},r),n.style)}return n}function ua(t){void 0===t&&(t=!1);return function(e,n,r,o,i){var a=o.latestValues,s=(gi(e)?ca:Ki)(n,a,i),l=function(t,e,n){var r={};for(var o in t)(ea(o)||!0===n&&ta(o)||!e&&!ta(o))&&(r[o]=t[o]);return r}(n,"string"==typeof e,t),c=Object(Wo.a)(Object(Wo.a)(Object(Wo.a)({},l),s),{ref:r});return Object(I.createElement)(e,c)}}var da=/([a-z])([A-Z])/g,ha=function(t){return t.replace(da,"$1-$2").toLowerCase()};function pa(t,e){var n=e.style,r=e.vars;for(var o in Object.assign(t.style,n),r)t.style.setProperty(o,r[o])}var fa=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform"]);function ma(t,e){for(var n in pa(t,e),e.attrs)t.setAttribute(fa.has(n)?n:ha(n),e.attrs[n])}function ga(t){var e=t.style,n={};for(var r in e)(Ei(e[r])||Oi(r,t))&&(n[r]=e[r]);return n}function va(t){var e=ga(t);for(var n in t){if(Ei(t[n]))e["x"===n||"y"===n?"attr"+n.toUpperCase():n]=t[n]}return e}function ba(t){return"object"==typeof t&&"function"==typeof t.start}var ya=function(t){return Array.isArray(t)};function Aa(t){var e,n=Ei(t)?t.get():t;return e=n,Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)?n.toValue():n}function Ca(t,e,n,r){var o=t.scrapeMotionValuesFromProps,i=t.createRenderState,a=t.onMount,s={latestValues:xa(e,n,r,o),renderState:i()};return a&&(s.mount=function(t){return a(e,t,s)}),s}var Sa=function(t){return function(e,n){var r=Object(I.useContext)(Go),o=Object(I.useContext)(Yo);return n?Ca(t,e,r,o):Qo((function(){return Ca(t,e,r,o)}))}};function xa(t,e,n,r){var o={},i=!1===(null==n?void 0:n.initial),a=r(t);for(var s in a)o[s]=Aa(a[s]);var l=t.initial,c=t.animate,u=ci(t),d=ui(t);e&&d&&!u&&!1!==t.inherit&&(null!=l||(l=e.initial),null!=c||(c=e.animate));var h=i||!1===l?c:l;h&&"boolean"!=typeof h&&!ba(h)&&(Array.isArray(h)?h:[h]).forEach((function(e){var n=si(t,e);if(n){var r=n.transitionEnd;n.transition;var i=Object(Wo.d)(n,["transitionEnd","transition"]);for(var a in i)o[a]=i[a];for(var a in r)o[a]=r[a]}}));return o}var wa={useVisualState:Sa({scrapeMotionValuesFromProps:va,createRenderState:la,onMount:function(t,e,n){var r=n.renderState,o=n.latestValues;try{r.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){r.dimensions={x:0,y:0,width:0,height:0}}"path"===e.tagName&&(r.totalPathLength=e.getTotalLength()),sa(r,o,void 0,void 0,{enableHardwareAcceleration:!1},t.transformTemplate),ma(e,r)}})};var Oa,Ea={useVisualState:Sa({scrapeMotionValuesFromProps:ga,createRenderState:Zi})};function La(t,e,n,r){var o=e.forwardMotionProps,i=void 0!==o&&o,a=gi(t)?wa:Ea;return Object(Wo.a)(Object(Wo.a)({},a),{preloadedFeatures:n,useRender:ua(i),createVisualElement:r,Component:t})}function ja(t,e,n,r){return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n,r)}}function ka(t,e,n,r){Object(I.useEffect)((function(){var o=t.current;if(n&&o)return ja(o,e,n,r)}),[t,e,n,r])}function _a(t){return"undefined"!=typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function Ta(t){return!!t.touches}!function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.Exit="exit"}(Oa||(Oa={}));var Pa={pageX:0,pageY:0};function Ra(t,e){void 0===e&&(e="page");var n=t.touches[0]||t.changedTouches[0]||Pa;return{x:n[e+"X"],y:n[e+"Y"]}}function Da(t,e){return void 0===e&&(e="page"),{x:t[e+"X"],y:t[e+"Y"]}}function Ba(t,e){return void 0===e&&(e="page"),{point:Ta(t)?Ra(t,e):Da(t,e)}}var Fa=function(t,e){void 0===e&&(e=!1);var n,r=function(e){return t(e,Ba(e))};return e?(n=r,function(t){var e=t instanceof MouseEvent;(!e||e&&0===t.button)&&n(t)}):r},Ia={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Ma={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Wa(t){return ei&&null===window.onpointerdown?t:ei&&null===window.ontouchstart?Ma[t]:ei&&null===window.onmousedown?Ia[t]:t}function za(t,e,n,r){return ja(t,Wa(e),Fa(n,"pointerdown"===e),r)}function Na(t,e,n,r){return ka(t,Wa(e),n&&Fa(n,"pointerdown"===e),r)}function Va(t){var e=null;return function(){return null===e&&(e=t,function(){e=null})}}var Ua=Va("dragHorizontal"),Ha=Va("dragVertical");function $a(t){var e=!1;if("y"===t)e=Ha();else if("x"===t)e=Ua();else{var n=Ua(),r=Ha();n&&r?e=function(){n(),r()}:(n&&n(),r&&r())}return e}function Ga(){var t=$a(!0);return!t||(t(),!1)}function Ya(t,e,n){return function(r,o){var i;_a(r)&&!Ga()&&(null==n||n(r,o),null===(i=t.animationState)||void 0===i||i.setActive(Oa.Hover,e))}}var Qa=function(t,e){return!!e&&(t===e||Qa(t,e.parentElement))};function Za(t){return Object(I.useEffect)((function(){return function(){return t()}}),[])}var Xa=function(t,e){return function(n){return e(t(n))}},qa=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.reduce(Xa)};var Ka=function(t){return function(e){return t(e),null}},Ja={tap:Ka((function(t){var e=t.onTap,n=t.onTapStart,r=t.onTapCancel,o=t.whileTap,i=t.visualElement,a=e||n||r||o,s=Object(I.useRef)(!1),l=Object(I.useRef)(null);function c(){var t;null===(t=l.current)||void 0===t||t.call(l),l.current=null}function u(){var t;return c(),s.current=!1,null===(t=i.animationState)||void 0===t||t.setActive(Oa.Tap,!1),!Ga()}function d(t,n){u()&&(Qa(i.getInstance(),t.target)?null==e||e(t,n):null==r||r(t,n))}function h(t,e){u()&&(null==r||r(t,e))}Na(i,"pointerdown",a?function(t,e){var r;c(),s.current||(s.current=!0,l.current=qa(za(window,"pointerup",d),za(window,"pointercancel",h)),null==n||n(t,e),null===(r=i.animationState)||void 0===r||r.setActive(Oa.Tap,!0))}:void 0),Za(c)})),focus:Ka((function(t){var e=t.whileFocus,n=t.visualElement;ka(n,"focus",e?function(){var t;null===(t=n.animationState)||void 0===t||t.setActive(Oa.Focus,!0)}:void 0),ka(n,"blur",e?function(){var t;null===(t=n.animationState)||void 0===t||t.setActive(Oa.Focus,!1)}:void 0)})),hover:Ka((function(t){var e=t.onHoverStart,n=t.onHoverEnd,r=t.whileHover,o=t.visualElement;Na(o,"pointerenter",e||r?Ya(o,!0,e):void 0),Na(o,"pointerleave",n||r?Ya(o,!1,n):void 0)}))};function ts(t,e){if(!Array.isArray(e))return!1;var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}var es=function(t,e,n){return Math.min(Math.max(n,t),e)},ns=.001;function rs(t){var e,n,r=t.duration,o=void 0===r?800:r,i=t.bounce,a=void 0===i?.25:i,s=t.velocity,l=void 0===s?0:s,c=t.mass,u=void 0===c?1:c,d=1-a;d=es(.05,1,d),o=es(.01,10,o/1e3),d<1?(e=function(t){var e=t*d,n=e*o,r=e-l,i=os(t,d),a=Math.exp(-n);return ns-r/i*a},n=function(t){var n=t*d*o,r=n*l+l,i=Math.pow(d,2)*Math.pow(t,2)*o,a=Math.exp(-n),s=os(Math.pow(t,2),d);return(-e(t)+ns>0?-1:1)*((r-i)*a)/s}):(e=function(t){return Math.exp(-t*o)*((t-l)*o+1)-.001},n=function(t){return Math.exp(-t*o)*(o*o*(l-t))});var h=function(t,e,n){for(var r=n,o=1;o<12;o++)r-=t(r)/e(r);return r}(e,n,5/o);if(o*=1e3,isNaN(h))return{stiffness:100,damping:10,duration:o};var p=Math.pow(h,2)*u;return{stiffness:p,damping:2*d*Math.sqrt(u*p),duration:o}}function os(t,e){return t*Math.sqrt(1-e*e)}var is=["duration","bounce"],as=["stiffness","damping","mass"];function ss(t,e){return e.some((function(e){return void 0!==t[e]}))}function ls(t){var e=t.from,n=void 0===e?0:e,r=t.to,o=void 0===r?1:r,i=t.restSpeed,a=void 0===i?2:i,s=t.restDelta,l=Object(Wo.d)(t,["from","to","restSpeed","restDelta"]),c={done:!1,value:n},u=function(t){var e=Object(Wo.a)({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!ss(t,as)&&ss(t,is)){var n=rs(t);(e=Object(Wo.a)(Object(Wo.a)(Object(Wo.a)({},e),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return e}(l),d=u.stiffness,h=u.damping,p=u.mass,f=u.velocity,m=u.duration,g=u.isResolvedFromDuration,v=cs,b=cs;function y(){var t=f?-f/1e3:0,e=o-n,r=h/(2*Math.sqrt(d*p)),i=Math.sqrt(d/p)/1e3;if(null!=s||(s=Math.abs(o-n)<=1?.01:.4),r<1){var a=os(i,r);v=function(n){var s=Math.exp(-r*i*n);return o-s*((t+r*i*e)/a*Math.sin(a*n)+e*Math.cos(a*n))},b=function(n){var o=Math.exp(-r*i*n);return r*i*o*(Math.sin(a*n)*(t+r*i*e)/a+e*Math.cos(a*n))-o*(Math.cos(a*n)*(t+r*i*e)-a*e*Math.sin(a*n))}}else if(1===r)v=function(n){return o-Math.exp(-i*n)*(e+(t+i*e)*n)};else{var l=i*Math.sqrt(r*r-1);v=function(n){var a=Math.exp(-r*i*n),s=Math.min(l*n,300);return o-a*((t+r*i*e)*Math.sinh(s)+l*e*Math.cosh(s))/l}}}return y(),{next:function(t){var e=v(t);if(g)c.done=t>=m;else{var n=1e3*b(t),r=Math.abs(n)<=a,i=Math.abs(o-e)<=s;c.done=r&&i}return c.value=c.done?o:e,c},flipTarget:function(){var t;f=-f,n=(t=[o,n])[0],o=t[1],y()}}}ls.needsInterpolation=function(t,e){return"string"==typeof t||"string"==typeof e};var cs=function(t){return 0},us=function(t,e,n){var r=e-t;return 0===r?1:(n-t)/r},ds=function(t,e,n){return-n*t+n*e+t},hs=function(t,e){return function(n){return Boolean(Bi(n)&&Di.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e))}},ps=function(t,e,n){return function(r){var o;if(!Bi(r))return r;var i=r.match(Pi),a=i[0],s=i[1],l=i[2],c=i[3];return(o={})[t]=parseFloat(a),o[e]=parseFloat(s),o[n]=parseFloat(l),o.alpha=void 0!==c?parseFloat(c):1,o}},fs=_i(0,255),ms=Object(Wo.a)(Object(Wo.a)({},Ui),{transform:function(t){return Math.round(fs(t))}}),gs={test:hs("rgb","red"),parse:ps("red","green","blue"),transform:function(t){var e=t.red,n=t.green,r=t.blue,o=t.alpha,i=void 0===o?1:o;return"rgba("+ms.transform(e)+", "+ms.transform(n)+", "+ms.transform(r)+", "+Ti(Hi.transform(i))+")"}};var vs={test:hs("#"),parse:function(t){var e="",n="",r="",o="";return t.length>5?(e=t.substr(1,2),n=t.substr(3,2),r=t.substr(5,2),o=t.substr(7,2)):(e=t.substr(1,1),n=t.substr(2,1),r=t.substr(3,1),o=t.substr(4,1),e+=e,n+=n,r+=r,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:gs.transform},bs={test:hs("hsl","hue"),parse:ps("hue","saturation","lightness"),transform:function(t){var e=t.hue,n=t.saturation,r=t.lightness,o=t.alpha,i=void 0===o?1:o;return"hsla("+Math.round(e)+", "+Mi.transform(Ti(n))+", "+Mi.transform(Ti(r))+", "+Ti(Hi.transform(i))+")"}},ys=function(t,e,n){var r=t*t,o=e*e;return Math.sqrt(Math.max(0,n*(o-r)+r))},As=[vs,gs,bs],Cs=function(t){return As.find((function(e){return e.test(t)}))},Ss=function(t){return"'"+t+"' is not an animatable color. Use the equivalent color code instead."},xs=function(t,e){var n=Cs(t),r=Cs(e);Ss(t),Ss(e),n.transform,r.transform;var o=n.parse(t),i=r.parse(e),a=Object(Wo.a)({},o),s=n===bs?ds:ys;return function(t){for(var e in a)"alpha"!==e&&(a[e]=s(o[e],i[e],t));return a.alpha=ds(o.alpha,i.alpha,t),n.transform(a)}},ws={test:function(t){return gs.test(t)||vs.test(t)||bs.test(t)},parse:function(t){return gs.test(t)?gs.parse(t):bs.test(t)?bs.parse(t):vs.parse(t)},transform:function(t){return Bi(t)?t:t.hasOwnProperty("red")?gs.transform(t):bs.transform(t)}},Os="${c}",Es="${n}";function Ls(t){var e=[],n=0,r=t.match(Ri);r&&(n=r.length,t=t.replace(Ri,Os),e.push.apply(e,r.map(ws.parse)));var o=t.match(Pi);return o&&(t=t.replace(Pi,Es),e.push.apply(e,o.map(Ui.parse))),{values:e,numColors:n,tokenised:t}}function js(t){return Ls(t).values}function ks(t){var e=Ls(t),n=e.values,r=e.numColors,o=e.tokenised,i=n.length;return function(t){for(var e=o,n=0;n<i;n++)e=e.replace(n<r?Os:Es,n<r?ws.transform(t[n]):Ti(t[n]));return e}}var _s=function(t){return"number"==typeof t?0:t};var Ts={test:function(t){var e,n,r,o;return isNaN(t)&&Bi(t)&&(null!==(n=null===(e=t.match(Pi))||void 0===e?void 0:e.length)&&void 0!==n?n:0)+(null!==(o=null===(r=t.match(Ri))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:js,createTransformer:ks,getAnimatableNone:function(t){var e=js(t);return ks(t)(e.map(_s))}},Ps=function(t){return"number"==typeof t};function Rs(t,e){return Ps(t)?function(n){return ds(t,e,n)}:ws.test(t)?xs(t,e):Is(t,e)}var Ds=function(t,e){var n=Object(Wo.e)([],t),r=n.length,o=t.map((function(t,n){return Rs(t,e[n])}));return function(t){for(var e=0;e<r;e++)n[e]=o[e](t);return n}},Bs=function(t,e){var n=Object(Wo.a)(Object(Wo.a)({},t),e),r={};for(var o in n)void 0!==t[o]&&void 0!==e[o]&&(r[o]=Rs(t[o],e[o]));return function(t){for(var e in r)n[e]=r[e](t);return n}};function Fs(t){for(var e=Ts.parse(t),n=e.length,r=0,o=0,i=0,a=0;a<n;a++)r||"number"==typeof e[a]?r++:void 0!==e[a].hue?i++:o++;return{parsed:e,numNumbers:r,numRGB:o,numHSL:i}}var Is=function(t,e){var n=Ts.createTransformer(e),r=Fs(t),o=Fs(e);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&(r.numNumbers,o.numNumbers),qa(Ds(r.parsed,o.parsed),n)},Ms=function(t,e){return function(n){return ds(t,e,n)}};function Ws(t,e,n){for(var r,o=[],i=n||("number"==typeof(r=t[0])?Ms:"string"==typeof r?ws.test(r)?xs:Is:Array.isArray(r)?Ds:"object"==typeof r?Bs:void 0),a=t.length-1,s=0;s<a;s++){var l=i(t[s],t[s+1]);if(e){var c=Array.isArray(e)?e[s]:e;l=qa(c,l)}o.push(l)}return o}function zs(t,e,n){var r=void 0===n?{}:n,o=r.clamp,i=void 0===o||o,a=r.ease,s=r.mixer,l=t.length;e.length,!a||!Array.isArray(a)||a.length,t[0]>t[l-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());var c=Ws(e,a,s),u=2===l?function(t,e){var n=t[0],r=t[1],o=e[0];return function(t){return o(us(n,r,t))}}(t,c):function(t,e){var n=t.length,r=n-1;return function(o){var i=0,a=!1;if(o<=t[0]?a=!0:o>=t[r]&&(i=r-1,a=!0),!a){for(var s=1;s<n&&!(t[s]>o||s===r);s++);i=s-1}var l=us(t[i],t[i+1],o);return e[i](l)}}(t,c);return i?function(e){return u(es(t[0],t[l-1],e))}:u}var Ns,Vs=function(t){return function(e){return 1-t(1-e)}},Us=function(t){return function(e){return e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2}},Hs=function(t){return function(e){return e*e*((t+1)*e-t)}},$s=function(t){return t},Gs=(Ns=2,function(t){return Math.pow(t,Ns)}),Ys=Vs(Gs),Qs=Us(Gs),Zs=function(t){return 1-Math.sin(Math.acos(t))},Xs=Vs(Zs),qs=Us(Xs),Ks=Hs(1.525),Js=Vs(Ks),tl=Us(Ks),el=function(t){var e=Hs(t);return function(t){return(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))}}(1.525),nl=function(t){if(1===t||0===t)return t;var e=t*t;return t<.36363636363636365?7.5625*e:t<.7272727272727273?9.075*e-9.9*t+3.4:t<.9?12.066481994459833*e-19.63545706371191*t+8.898060941828255:10.8*t*t-20.52*t+10.72},rl=Vs(nl);function ol(t,e){return t.map((function(){return e||Qs})).splice(0,t.length-1)}function il(t){var e=t.from,n=void 0===e?0:e,r=t.to,o=void 0===r?1:r,i=t.ease,a=t.offset,s=t.duration,l=void 0===s?300:s,c={done:!1,value:n},u=Array.isArray(o)?o:[n,o],d=function(t,e){return t.map((function(t){return t*e}))}(a&&a.length===u.length?a:function(t){var e=t.length;return t.map((function(t,n){return 0!==n?n/(e-1):0}))}(u),l);function h(){return zs(d,u,{ease:Array.isArray(i)?i:ol(u,i)})}var p=h();return{next:function(t){return c.value=p(t),c.done=t>=l,c},flipTarget:function(){u.reverse(),p=h()}}}var al={keyframes:il,spring:ls,decay:function(t){var e=t.velocity,n=void 0===e?0:e,r=t.from,o=void 0===r?0:r,i=t.power,a=void 0===i?.8:i,s=t.timeConstant,l=void 0===s?350:s,c=t.restDelta,u=void 0===c?.5:c,d=t.modifyTarget,h={done:!1,value:o},p=a*n,f=o+p,m=void 0===d?f:d(f);return m!==f&&(p=m-o),{next:function(t){var e=-p*Math.exp(-t/l);return h.done=!(e>u||e<-u),h.value=h.done?m:m+e,h},flipTarget:function(){}}}};var sl=1/60*1e3,ll="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},cl="undefined"!=typeof window?function(t){return window.requestAnimationFrame(t)}:function(t){return setTimeout((function(){return t(ll())}),sl)};var ul=!0,dl=!1,hl=!1,pl={delta:0,timestamp:0},fl=["read","update","preRender","render","postRender"],ml=fl.reduce((function(t,e){return t[e]=function(t){var e=[],n=[],r=0,o=!1,i=new WeakSet,a={schedule:function(t,a,s){void 0===a&&(a=!1),void 0===s&&(s=!1);var l=s&&o,c=l?e:n;return a&&i.add(t),-1===c.indexOf(t)&&(c.push(t),l&&o&&(r=e.length)),t},cancel:function(t){var e=n.indexOf(t);-1!==e&&n.splice(e,1),i.delete(t)},process:function(s){var l;if(o=!0,e=(l=[n,e])[0],(n=l[1]).length=0,r=e.length)for(var c=0;c<r;c++){var u=e[c];u(s),i.has(u)&&(a.schedule(u),t())}o=!1}};return a}((function(){return dl=!0})),t}),{}),gl=fl.reduce((function(t,e){var n=ml[e];return t[e]=function(t,e,r){return void 0===e&&(e=!1),void 0===r&&(r=!1),dl||Cl(),n.schedule(t,e,r)},t}),{}),vl=fl.reduce((function(t,e){return t[e]=ml[e].cancel,t}),{}),bl=fl.reduce((function(t,e){return t[e]=function(){return ml[e].process(pl)},t}),{}),yl=function(t){return ml[t].process(pl)},Al=function(t){dl=!1,pl.delta=ul?sl:Math.max(Math.min(t-pl.timestamp,40),1),pl.timestamp=t,hl=!0,fl.forEach(yl),hl=!1,dl&&(ul=!1,cl(Al))},Cl=function(){dl=!0,ul=!0,hl||cl(Al)},Sl=function(){return pl},xl=gl;function wl(t,e,n){return void 0===n&&(n=0),t-e-n}var Ol=function(t){var e=function(e){var n=e.delta;return t(n)};return{start:function(){return xl.update(e,!0)},stop:function(){return vl.update(e)}}};function El(t){var e,n,r,o,i,a=t.from,s=t.autoplay,l=void 0===s||s,c=t.driver,u=void 0===c?Ol:c,d=t.elapsed,h=void 0===d?0:d,p=t.repeat,f=void 0===p?0:p,m=t.repeatType,g=void 0===m?"loop":m,v=t.repeatDelay,b=void 0===v?0:v,y=t.onPlay,A=t.onStop,C=t.onComplete,S=t.onRepeat,x=t.onUpdate,w=Object(Wo.d)(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),O=w.to,E=0,L=w.duration,j=!1,k=!0,_=function(t){if(Array.isArray(t.to))return il;if(al[t.type])return al[t.type];var e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?il:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?ls:il}(w);(null===(n=(e=_).needsInterpolation)||void 0===n?void 0:n.call(e,a,O))&&(i=zs([0,100],[a,O],{clamp:!1}),a=0,O=100);var T=_(Object(Wo.a)(Object(Wo.a)({},w),{from:a,to:O}));function P(){E++,"reverse"===g?h=function(t,e,n,r){return void 0===n&&(n=0),void 0===r&&(r=!0),r?wl(e+-t,e,n):e-(t-e)+n}(h,L,b,k=E%2==0):(h=wl(h,L,b),"mirror"===g&&T.flipTarget()),j=!1,S&&S()}function R(t){if(k||(t=-t),h+=t,!j){var e=T.next(Math.max(0,h));o=e.value,i&&(o=i(o)),j=k?e.done:h<=0}null==x||x(o),j&&(0===E&&(null!=L||(L=h)),E<f?function(t,e,n,r){return r?t>=e+n:t<=-n}(h,L,b,k)&&P():(r.stop(),C&&C()))}return l&&(null==y||y(),(r=u(R)).start()),{stop:function(){null==A||A(),r.stop()}}}function Ll(t,e){return e?t*(1e3/e):0}var jl=function(t){return 1e3*t},kl=function(t,e){return 1-3*e+3*t},_l=function(t,e){return 3*e-6*t},Tl=function(t){return 3*t},Pl=function(t,e,n){return((kl(e,n)*t+_l(e,n))*t+Tl(e))*t},Rl=function(t,e,n){return 3*kl(e,n)*t*t+2*_l(e,n)*t+Tl(e)};var Dl=.1;function Bl(t,e,n,r){if(t===e&&n===r)return $s;for(var o=new Float32Array(11),i=0;i<11;++i)o[i]=Pl(i*Dl,t,n);function a(e){for(var r=0,i=1;10!==i&&o[i]<=e;++i)r+=Dl;--i;var a=r+(e-o[i])/(o[i+1]-o[i])*Dl,s=Rl(a,t,n);return s>=.001?function(t,e,n,r){for(var o=0;o<8;++o){var i=Rl(e,n,r);if(0===i)return e;e-=(Pl(e,n,r)-t)/i}return e}(e,a,t,n):0===s?a:function(t,e,n,r,o){var i,a,s=0;do{(i=Pl(a=e+(n-e)/2,r,o)-t)>0?n=a:e=a}while(Math.abs(i)>1e-7&&++s<10);return a}(e,r,r+Dl,t,n)}return function(t){return 0===t||1===t?t:Pl(a(t),e,r)}}var Fl={linear:$s,easeIn:Gs,easeInOut:Qs,easeOut:Ys,circIn:Zs,circInOut:qs,circOut:Xs,backIn:Ks,backInOut:tl,backOut:Js,anticipate:el,bounceIn:rl,bounceInOut:function(t){return t<.5?.5*(1-nl(1-2*t)):.5*nl(2*t-1)+.5},bounceOut:nl},Il=function(t){if(Array.isArray(t)){t.length;var e=Object(Wo.c)(t,4);return Bl(e[0],e[1],e[2],e[3])}return"string"==typeof t?Fl[t]:t},Ml=function(t,e){return"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!Ts.test(e)||e.startsWith("url(")))},Wl=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},zl=function(t){return{type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}},Nl=function(){return{type:"keyframes",ease:"linear",duration:.3}},Vl=function(t){return{type:"keyframes",duration:.8,values:t}},Ul={x:Wl,y:Wl,z:Wl,rotate:Wl,rotateX:Wl,rotateY:Wl,rotateZ:Wl,scaleX:zl,scaleY:zl,scale:zl,opacity:Nl,backgroundColor:Nl,color:Nl,default:zl},Hl=new Set(["brightness","contrast","saturate","opacity"]);function $l(t){var e=t.slice(0,-1).split("("),n=e[0],r=e[1];if("drop-shadow"===n)return t;var o=(r.match(Pi)||[])[0];if(!o)return t;var i=r.replace(o,""),a=Hl.has(n)?1:0;return o!==r&&(a*=100),n+"("+a+i+")"}var Gl=/([a-z-]*)\(.*?\)/g,Yl=Object(Wo.a)(Object(Wo.a)({},Ts),{getAnimatableNone:function(t){var e=t.match(Gl);return e?e.map($l).join(" "):t}}),Ql=Object(Wo.a)(Object(Wo.a)({},Yi),{color:ws,backgroundColor:ws,outlineColor:ws,fill:ws,stroke:ws,borderColor:ws,borderTopColor:ws,borderRightColor:ws,borderBottomColor:ws,borderLeftColor:ws,filter:Yl,WebkitFilter:Yl}),Zl=function(t){return Ql[t]};function Xl(t,e){var n,r=Zl(t);return r!==Yl&&(r=Ts),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,e)}function ql(t){var e=t.ease,n=t.times,r=t.yoyo,o=t.flip,i=t.loop,a=Object(Wo.d)(t,["ease","times","yoyo","flip","loop"]),s=Object(Wo.a)({},a);return n&&(s.offset=n),a.duration&&(s.duration=jl(a.duration)),a.repeatDelay&&(s.repeatDelay=jl(a.repeatDelay)),e&&(s.ease=function(t){return Array.isArray(t)&&"number"!=typeof t[0]}(e)?e.map(Il):Il(e)),"tween"===a.type&&(s.type="keyframes"),(r||i||o)&&(!0,r?s.repeatType="reverse":i?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=i||r||o||a.repeat),"spring"!==a.type&&(s.type="keyframes"),s}function Kl(t,e,n){var r,o,i,a;return Array.isArray(e.to)&&(null!==(r=t.duration)&&void 0!==r||(t.duration=.8)),function(t){Array.isArray(t.to)&&null===t.to[0]&&(t.to=Object(Wo.e)([],Object(Wo.c)(t.to)),t.to[0]=t.from)}(e),function(t){t.when,t.delay,t.delayChildren,t.staggerChildren,t.staggerDirection,t.repeat,t.repeatType,t.repeatDelay,t.from;var e=Object(Wo.d)(t,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(e).length}(t)||(t=Object(Wo.a)(Object(Wo.a)({},t),(o=n,i=e.to,a=ya(i)?Vl:Ul[o]||Ul.default,Object(Wo.a)({to:i},a(i))))),Object(Wo.a)(Object(Wo.a)({},e),ql(t))}function Jl(t,e,n,r,o){var i,a=nc(r,t),s=null!==(i=a.from)&&void 0!==i?i:e.get(),l=Ml(t,n);"none"===s&&l&&"string"==typeof n?s=Xl(t,n):tc(s)&&"string"==typeof n?s=ec(n):!Array.isArray(n)&&tc(n)&&"string"==typeof s&&(n=ec(s));var c=Ml(t,s);return c&&l&&!1!==a.type?function(){var r={from:s,to:n,velocity:e.getVelocity(),onComplete:o,onUpdate:function(t){return e.set(t)}};return"inertia"===a.type||"decay"===a.type?function(t){var e,n=t.from,r=void 0===n?0:n,o=t.velocity,i=void 0===o?0:o,a=t.min,s=t.max,l=t.power,c=void 0===l?.8:l,u=t.timeConstant,d=void 0===u?750:u,h=t.bounceStiffness,p=void 0===h?500:h,f=t.bounceDamping,m=void 0===f?10:f,g=t.restDelta,v=void 0===g?1:g,b=t.modifyTarget,y=t.driver,A=t.onUpdate,C=t.onComplete;function S(t){return void 0!==a&&t<a||void 0!==s&&t>s}function x(t){return void 0===a?s:void 0===s||Math.abs(a-t)<Math.abs(s-t)?a:s}function w(t){null==e||e.stop(),e=El(Object(Wo.a)(Object(Wo.a)({},t),{driver:y,onUpdate:function(e){var n;null==A||A(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:C}))}function O(t){w(Object(Wo.a)({type:"spring",stiffness:p,damping:m,restDelta:v},t))}if(S(r))O({from:r,velocity:i,to:x(r)});else{var E=c*i+r;"undefined"!=typeof b&&(E=b(E));var L,j,k=x(E),_=k===a?-1:1;w({type:"decay",from:r,velocity:i,timeConstant:d,power:c,restDelta:v,modifyTarget:b,onUpdate:S(E)?function(t){L=j,j=t,i=Ll(t-L,Sl().delta),(1===_&&t>k||-1===_&&t<k)&&O({from:t,to:k,velocity:i})}:void 0})}return{stop:function(){return null==e?void 0:e.stop()}}}(Object(Wo.a)(Object(Wo.a)({},r),a)):El(Object(Wo.a)(Object(Wo.a)({},Kl(a,r,t)),{onUpdate:function(t){var e;r.onUpdate(t),null===(e=a.onUpdate)||void 0===e||e.call(a,t)},onComplete:function(){var t;r.onComplete(),null===(t=a.onComplete)||void 0===t||t.call(a)}}))}:function(){var t;return e.set(n),o(),null===(t=null==a?void 0:a.onComplete)||void 0===t||t.call(a),{stop:function(){}}}}function tc(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function ec(t){return"number"==typeof t?0:Xl("",t)}function nc(t,e){return t[e]||t.default||t}function rc(t,e,n,r){return void 0===r&&(r={}),e.start((function(o){var i,a,s=Jl(t,e,n,r,o),l=function(t,e){var n;return null!==(n=(nc(t,e)||{}).delay)&&void 0!==n?n:0}(r,t),c=function(){return a=s()};return l?i=setTimeout(c,jl(l)):c(),function(){clearTimeout(i),null==a||a.stop()}}))}function oc(t,e){-1===t.indexOf(e)&&t.push(e)}function ic(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var ac=function(){function t(){this.subscriptions=[]}return t.prototype.add=function(t){var e=this;return oc(this.subscriptions,t),function(){return ic(e.subscriptions,t)}},t.prototype.notify=function(t,e,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(var o=0;o<r;o++){var i=this.subscriptions[o];i&&i(t,e,n)}},t.prototype.getSize=function(){return this.subscriptions.length},t.prototype.clear=function(){this.subscriptions.length=0},t}(),sc=function(){function t(t){var e,n=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new ac,this.velocityUpdateSubscribers=new ac,this.renderSubscribers=new ac,this.canTrackVelocity=!1,this.updateAndNotify=function(t,e){void 0===e&&(e=!0),n.prev=n.current,n.current=t;var r=Sl(),o=r.delta,i=r.timestamp;n.lastUpdated!==i&&(n.timeDelta=o,n.lastUpdated=i,xl.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),e&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return xl.postRender(n.velocityCheck)},this.velocityCheck=function(t){t.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e)))}return t.prototype.onChange=function(t){return this.updateSubscribers.add(t)},t.prototype.clearListeners=function(){this.updateSubscribers.clear()},t.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},t.prototype.attach=function(t){this.passiveEffect=t},t.prototype.set=function(t,e){void 0===e&&(e=!0),e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)},t.prototype.get=function(){return this.current},t.prototype.getPrevious=function(){return this.prev},t.prototype.getVelocity=function(){return this.canTrackVelocity?Ll(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},t.prototype.start=function(t){var e=this;return this.stop(),new Promise((function(n){e.hasAnimated=!0,e.stopAnimation=t(n)})).then((function(){return e.clearAnimation()}))},t.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},t.prototype.isAnimating=function(){return!!this.stopAnimation},t.prototype.clearAnimation=function(){this.stopAnimation=null},t.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},t}();function lc(t){return new sc(t)}var cc=function(t){return function(e){return e.test(t)}},uc=[Ui,Wi,Mi,Ii,Ni,zi,{test:function(t){return"auto"===t},parse:function(t){return t}}],dc=function(t){return uc.find(cc(t))},hc=Object(Wo.e)(Object(Wo.e)([],Object(Wo.c)(uc)),[ws,Ts]),pc=function(t){return hc.find(cc(t))};function fc(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,lc(n))}function mc(t,e){var n=li(t,e),r=n?t.makeTargetAnimatable(n,!1):{},o=r.transitionEnd,i=void 0===o?{}:o;r.transition;var a,s=Object(Wo.d)(r,["transitionEnd","transition"]);for(var l in s=Object(Wo.a)(Object(Wo.a)({},s),i)){fc(t,l,(a=s[l],ya(a)?a[a.length-1]||0:a))}}function gc(t,e){if(e)return(e[t]||e.default||e).from}function vc(t,e,n){var r;void 0===n&&(n={});var o=li(t,e,n.custom),i=(o||{}).transition,a=void 0===i?t.getDefaultTransition()||{}:i;n.transitionOverride&&(a=n.transitionOverride);var s=o?function(){return bc(t,o,n)}:function(){return Promise.resolve()},l=(null===(r=t.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var o=a.delayChildren,i=void 0===o?0:o,s=a.staggerChildren,l=a.staggerDirection;return function(t,e,n,r,o,i){void 0===n&&(n=0);void 0===r&&(r=0);void 0===o&&(o=1);var a=[],s=(t.variantChildren.size-1)*r,l=1===o?function(t){return void 0===t&&(t=0),t*r}:function(t){return void 0===t&&(t=0),s-t*r};return Array.from(t.variantChildren).sort(yc).forEach((function(t,r){a.push(vc(t,e,Object(Wo.a)(Object(Wo.a)({},i),{delay:n+l(r)})).then((function(){return t.notifyAnimationComplete(e)})))})),Promise.all(a)}(t,e,i+r,s,l,n)}:function(){return Promise.resolve()},c=a.when;if(c){var u=Object(Wo.c)("beforeChildren"===c?[s,l]:[l,s],2),d=u[0],h=u[1];return d().then(h)}return Promise.all([s(),l(n.delay)])}function bc(t,e,n){var r,o=void 0===n?{}:n,i=o.delay,a=void 0===i?0:i,s=o.transitionOverride,l=o.type,c=t.makeTargetAnimatable(e),u=c.transition,d=void 0===u?t.getDefaultTransition():u,h=c.transitionEnd,p=Object(Wo.d)(c,["transition","transitionEnd"]);s&&(d=s);var f=[],m=l&&(null===(r=t.animationState)||void 0===r?void 0:r.getState()[l]);for(var g in p){var v=t.getValue(g),b=p[g];if(!(!v||void 0===b||m&&Ac(m,g))){var y=rc(g,v,b,Object(Wo.a)({delay:a},d));f.push(y)}}return Promise.all(f).then((function(){h&&mc(t,h)}))}function yc(t,e){return t.sortNodePosition(e)}function Ac(t,e){var n=t.protectedKeys,r=t.needsAnimating,o=n.hasOwnProperty(e)&&!0!==r[e];return r[e]=!1,o}var Cc=[Oa.Animate,Oa.Hover,Oa.Tap,Oa.Drag,Oa.Focus,Oa.Exit],Sc=Object(Wo.e)([],Object(Wo.c)(Cc)).reverse(),xc=Cc.length;function wc(t){return function(e){return Promise.all(e.map((function(e){var n=e.animation,r=e.options;return function(t,e,n){var r;if(void 0===n&&(n={}),t.notifyAnimationStart(),Array.isArray(e)){var o=e.map((function(e){return vc(t,e,n)}));r=Promise.all(o)}else if("string"==typeof e)r=vc(t,e,n);else{var i="function"==typeof e?li(t,e,n.custom):e;r=bc(t,i,n)}return r.then((function(){return t.notifyAnimationComplete(e)}))}(t,n,r)})))}}function Oc(t){var e,n=wc(t),r=((e={})[Oa.Animate]=Ec(!0),e[Oa.Hover]=Ec(),e[Oa.Tap]=Ec(),e[Oa.Drag]=Ec(),e[Oa.Focus]=Ec(),e[Oa.Exit]=Ec(),e),o={},i=!0,a=function(e,n){var r=li(t,n);if(r){r.transition;var o=r.transitionEnd,i=Object(Wo.d)(r,["transition","transitionEnd"]);e=Object(Wo.a)(Object(Wo.a)(Object(Wo.a)({},e),i),o)}return e};function s(e,s){for(var l,c=t.getProps(),u=t.getVariantContext(!0)||{},d=[],h=new Set,p={},f=1/0,m=function(n){var o=Sc[n],m=r[o],g=null!==(l=c[o])&&void 0!==l?l:u[o],v=ai(g),b=o===s?m.isActive:null;!1===b&&(f=n);var y=g===u[o]&&g!==c[o]&&v;if(y&&i&&t.manuallyAnimateOnMount&&(y=!1),m.protectedKeys=Object(Wo.a)({},p),!m.isActive&&null===b||!g&&!m.prevProp||ba(g)||"boolean"==typeof g)return"continue";var A=function(t,e){if("string"==typeof e)return e!==t;if(ii(e))return!ts(e,t);return!1}(m.prevProp,g)||o===s&&m.isActive&&!y&&v||n>f&&v,C=Array.isArray(g)?g:[g],S=C.reduce(a,{});!1===b&&(S={});var x=m.prevResolvedValues,w=void 0===x?{}:x,O=Object(Wo.a)(Object(Wo.a)({},w),S),E=function(t){A=!0,h.delete(t),m.needsAnimating[t]=!0};for(var L in O){var j=S[L],k=w[L];p.hasOwnProperty(L)||(j!==k?ya(j)&&ya(k)?ts(j,k)?m.protectedKeys[L]=!0:E(L):void 0!==j?E(L):h.add(L):void 0!==j&&h.has(L)?E(L):m.protectedKeys[L]=!0)}m.prevProp=g,m.prevResolvedValues=S,m.isActive&&(p=Object(Wo.a)(Object(Wo.a)({},p),S)),i&&t.blockInitialAnimation&&(A=!1),A&&!y&&d.push.apply(d,Object(Wo.e)([],Object(Wo.c)(C.map((function(t){return{animation:t,options:Object(Wo.a)({type:o},e)}})))))},g=0;g<xc;g++)m(g);if(o=Object(Wo.a)({},p),h.size){var v={};h.forEach((function(e){var n=t.getBaseTarget(e);void 0!==n&&(v[e]=n)})),d.push({animation:v})}var b=Boolean(d.length);return i&&!1===c.initial&&!t.manuallyAnimateOnMount&&(b=!1),i=!1,b?n(d):Promise.resolve()}return{isAnimated:function(t){return void 0!==o[t]},animateChanges:s,setActive:function(e,n,o){var i;return r[e].isActive===n?Promise.resolve():(null===(i=t.variantChildren)||void 0===i||i.forEach((function(t){var r;return null===(r=t.animationState)||void 0===r?void 0:r.setActive(e,n)})),r[e].isActive=n,s(o,e))},setAnimateFunction:function(e){n=e(t)},getState:function(){return r}}}function Ec(t){return void 0===t&&(t=!1),{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Lc={animation:Ka((function(t){var e=t.visualElement,n=t.animate;e.animationState||(e.animationState=Oc(e)),ba(n)&&Object(I.useEffect)((function(){return n.subscribe(e)}),[n])})),exit:Ka((function(t){var e=t.custom,n=t.visualElement,r=Object(Wo.c)(Zo(),2),o=r[0],i=r[1],a=Object(I.useContext)(Yo);Object(I.useEffect)((function(){var t,r,s=null===(t=n.animationState)||void 0===t?void 0:t.setActive(Oa.Exit,!o,{custom:null!==(r=null==a?void 0:a.custom)&&void 0!==r?r:e});!o&&(null==s||s.then(i))}),[o])}))},jc=function(t){return t.hasOwnProperty("x")&&t.hasOwnProperty("y")},kc=function(t){return jc(t)&&t.hasOwnProperty("z")},_c=function(t,e){return Math.abs(t-e)};function Tc(t,e){if(Ps(t)&&Ps(e))return _c(t,e);if(jc(t)&&jc(e)){var n=_c(t.x,e.x),r=_c(t.y,e.y),o=kc(t)&&kc(e)?_c(t.z,e.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}var Pc=function(){function t(t,e,n){var r=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var t=Bc(r.lastMoveEventInfo,r.history),e=null!==r.startEvent,n=Tc(t.offset,{x:0,y:0})>=3;if(e||n){var o=t.point,i=Sl().timestamp;r.history.push(Object(Wo.a)(Object(Wo.a)({},o),{timestamp:i}));var a=r.handlers,s=a.onStart,l=a.onMove;e||(s&&s(r.lastMoveEvent,t),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,t)}}},this.handlePointerMove=function(t,e){r.lastMoveEvent=t,r.lastMoveEventInfo=Rc(e,r.transformPagePoint),_a(t)&&0===t.buttons?r.handlePointerUp(t,e):xl.update(r.updatePoint,!0)},this.handlePointerUp=function(t,e){r.end();var n=r.handlers,o=n.onEnd,i=n.onSessionEnd,a=Bc(Rc(e,r.transformPagePoint),r.history);r.startEvent&&o&&o(t,a),i&&i(t,a)},!(Ta(t)&&t.touches.length>1)){this.handlers=e,this.transformPagePoint=o;var i=Rc(Ba(t),this.transformPagePoint),a=i.point,s=Sl().timestamp;this.history=[Object(Wo.a)(Object(Wo.a)({},a),{timestamp:s})];var l=e.onSessionStart;l&&l(t,Bc(i,this.history)),this.removeListeners=qa(za(window,"pointermove",this.handlePointerMove),za(window,"pointerup",this.handlePointerUp),za(window,"pointercancel",this.handlePointerUp))}}return t.prototype.updateHandlers=function(t){this.handlers=t},t.prototype.end=function(){this.removeListeners&&this.removeListeners(),vl.update(this.updatePoint)},t}();function Rc(t,e){return e?{point:e(t.point)}:t}function Dc(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Bc(t,e){var n=t.point;return{point:n,delta:Dc(n,Ic(e)),offset:Dc(n,Fc(e)),velocity:Mc(e,.1)}}function Fc(t){return t[0]}function Ic(t){return t[t.length-1]}function Mc(t,e){if(t.length<2)return{x:0,y:0};for(var n=t.length-1,r=null,o=Ic(t);n>=0&&(r=t[n],!(o.timestamp-r.timestamp>jl(e)));)n--;if(!r)return{x:0,y:0};var i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Wc(t){return t}function zc(t){var e=t.top;return{x:{min:t.left,max:t.right},y:{min:e,max:t.bottom}}}var Nc={translate:0,scale:1,origin:0,originPoint:0};function Vc(){return{x:Object(Wo.a)({},Nc),y:Object(Wo.a)({},Nc)}}function Uc(t){return[t("x"),t("y")]}function Hc(t,e,n){var r=e.min,o=e.max;return void 0!==r&&t<r?t=n?ds(r,t,n.min):Math.max(t,r):void 0!==o&&t>o&&(t=n?ds(o,t,n.max):Math.min(t,o)),t}function $c(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function Gc(t,e){var n,r=e.min-t.min,o=e.max-t.max;return e.max-e.min<t.max-t.min&&(r=(n=Object(Wo.c)([o,r],2))[0],o=n[1]),{min:t.min+r,max:t.min+o}}function Yc(t,e,n){return{min:Qc(t,e),max:Qc(t,n)}}function Qc(t,e){var n;return"number"==typeof t?t:null!==(n=t[e])&&void 0!==n?n:0}function Zc(t,e){return zc(function(t,e){var n=t.top,r=t.left,o=t.bottom,i=t.right;void 0===e&&(e=Wc);var a=e({x:r,y:n}),s=e({x:i,y:o});return{top:a.y,left:a.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}function Xc(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=.01),Tc(t,e)<n}function qc(t){return t.max-t.min}function Kc(t,e){var n=.5,r=qc(t),o=qc(e);return o>r?n=us(e.min,e.max-r,t.min):r>o&&(n=us(t.min,t.max-o,e.min)),es(0,1,n)}function Jc(t,e,n,r){void 0===r&&(r=.5),t.origin=r,t.originPoint=ds(e.min,e.max,t.origin),t.scale=qc(n)/qc(e),Xc(t.scale,1,1e-4)&&(t.scale=1),t.translate=ds(n.min,n.max,t.origin)-t.originPoint,Xc(t.translate)&&(t.translate=0)}function tu(t,e,n,r){Jc(t.x,e.x,n.x,eu(r.originX)),Jc(t.y,e.y,n.y,eu(r.originY))}function eu(t){return"number"==typeof t?t:.5}function nu(t,e,n){t.min=n.min+e.min,t.max=t.min+qc(e)}var ru=function(t,e){return t.depth-e.depth};function ou(t){return t.projection.isEnabled||t.shouldResetTransform()}function iu(t,e){void 0===e&&(e=[]);var n=t.parent;return n&&iu(n,e),ou(t)&&e.push(t),e}function au(t){if(!t.shouldResetTransform()){var e,n=t.getLayoutState();t.notifyBeforeLayoutMeasure(n.layout),n.isHydrated=!0,n.layout=t.measureViewportBox(),n.layoutCorrected=(e=n.layout,{x:Object(Wo.a)({},e.x),y:Object(Wo.a)({},e.y)}),t.notifyLayoutMeasure(n.layout,t.prevViewportBox||n.layout),xl.update((function(){return t.rebaseProjectionTarget()}))}}function su(t,e){return{min:e.min-t.min,max:e.max-t.min}}function lu(t,e){return{x:su(t.x,e.x),y:su(t.y,e.y)}}function cu(t,e){var n=t.getLayoutId(),r=e.getLayoutId();return n!==r||void 0===r&&t!==e}function uu(t){var e=t.getProps(),n=e.drag,r=e._dragX;return n&&!r}function du(t,e){t.min=e.min,t.max=e.max}function hu(t,e,n){return n+e*(t-n)}function pu(t,e,n,r,o){return void 0!==o&&(t=hu(t,o,r)),hu(t,n,r)+e}function fu(t,e,n,r,o){void 0===e&&(e=0),void 0===n&&(n=1),t.min=pu(t.min,e,n,r,o),t.max=pu(t.max,e,n,r,o)}function mu(t,e){var n=e.x,r=e.y;fu(t.x,n.translate,n.scale,n.originPoint),fu(t.y,r.translate,r.scale,r.originPoint)}function gu(t,e,n,r){var o=Object(Wo.c)(r,3),i=o[0],a=o[1],s=o[2];t.min=e.min,t.max=e.max;var l=void 0!==n[s]?n[s]:.5,c=ds(e.min,e.max,l);fu(t,n[i],n[a],c,n.scale)}var vu=["x","scaleX","originX"],bu=["y","scaleY","originY"];function yu(t,e,n){gu(t.x,e.x,n,vu),gu(t.y,e.y,n,bu)}function Au(t,e,n,r,o){return t=hu(t-=e,1/n,r),void 0!==o&&(t=hu(t,1/o,r)),t}function Cu(t,e,n){var r=Object(Wo.c)(n,3),o=r[0],i=r[1],a=r[2];!function(t,e,n,r,o){void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=.5);var i=ds(t.min,t.max,r)-e;t.min=Au(t.min,e,n,i,o),t.max=Au(t.max,e,n,i,o)}(t,e[o],e[i],e[a],e.scale)}function Su(t,e){Cu(t.x,e,vu),Cu(t.y,e,bu)}var xu=new Set;function wu(t,e,n){t[n]||(t[n]=[]),t[n].push(e)}function Ou(t){return xu.add(t),function(){return xu.delete(t)}}function Eu(){if(xu.size){var t=0,e=[[]],n=[],r=function(n){return wu(e,n,t)},o=function(e){wu(n,e,t),t++};xu.forEach((function(e){e(r,o),t=0})),xu.clear();for(var i=n.length,a=0;a<=i;a++)e[a]&&e[a].forEach(ju),n[a]&&n[a].forEach(ju)}}var Lu,ju=function(t){return t()},ku=new WeakMap,_u=function(){function t(t){var e=t.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.elastic={x:{min:0,max:1},y:{min:0,max:1}},this.props={},this.hasMutatedConstraints=!1,this.cursorProgress={x:.5,y:.5},this.originPoint={},this.openGlobalLock=null,this.panSession=null,this.visualElement=e,this.visualElement.enableLayoutProjection(),ku.set(e,this)}return t.prototype.start=function(t,e){var n=this,r=void 0===e?{}:e,o=r.snapToCursor,i=void 0!==o&&o,a=r.cursorProgress,s=this.props.transformPagePoint;this.panSession=new Pc(t,{onSessionStart:function(t){var e;n.stopMotion();var r=function(t){return Ba(t,"client")}(t).point;null===(e=n.cancelLayout)||void 0===e||e.call(n),n.cancelLayout=Ou((function(t,e){var o=iu(n.visualElement),s=function(t){var e=[],n=function(t){ou(t)&&e.push(t),t.children.forEach(n)};return t.children.forEach(n),e.sort(ru)}(n.visualElement),l=Object(Wo.e)(Object(Wo.e)([],Object(Wo.c)(o)),Object(Wo.c)(s)),c=!1;n.isLayoutDrag()&&n.visualElement.lockProjectionTarget(),e((function(){l.forEach((function(t){return t.resetTransform()}))})),t((function(){au(n.visualElement),s.forEach(au)})),e((function(){l.forEach((function(t){return t.restoreTransform()})),i&&(c=n.snapToCursor(r))})),t((function(){Boolean(n.getAxisMotionValue("x")&&!n.isExternalDrag())||n.visualElement.rebaseProjectionTarget(!0,n.visualElement.measureViewportBox(!1)),n.visualElement.scheduleUpdateLayoutProjection();var t=n.visualElement.projection;Uc((function(e){if(!c){var o=t.target[e],i=o.min,s=o.max;n.cursorProgress[e]=a?a[e]:us(i,s,r[e])}var l=n.getAxisMotionValue(e);l&&(n.originPoint[e]=l.get())}))})),e((function(){bl.update(),bl.preRender(),bl.render(),bl.postRender()})),t((function(){return n.resolveDragConstraints()}))}))},onStart:function(t,e){var r,o,i,a=n.props,s=a.drag,l=a.dragPropagation;(!s||l||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=$a(s),n.openGlobalLock))&&(Eu(),n.isDragging=!0,n.currentDirection=null,null===(o=(r=n.props).onDragStart)||void 0===o||o.call(r,t,e),null===(i=n.visualElement.animationState)||void 0===i||i.setActive(Oa.Drag,!0))},onMove:function(t,e){var r,o,i,a,s=n.props,l=s.dragPropagation,c=s.dragDirectionLock;if(l||n.openGlobalLock){var u=e.offset;if(c&&null===n.currentDirection)return n.currentDirection=function(t,e){void 0===e&&(e=10);var n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(u),void(null!==n.currentDirection&&(null===(o=(r=n.props).onDirectionLock)||void 0===o||o.call(r,n.currentDirection)));n.updateAxis("x",e.point,u),n.updateAxis("y",e.point,u),null===(a=(i=n.props).onDrag)||void 0===a||a.call(i,t,e),Lu=t}},onSessionEnd:function(t,e){return n.stop(t,e)}},{transformPagePoint:s})},t.prototype.resolveDragConstraints=function(){var t=this,e=this.props,n=e.dragConstraints,r=e.dragElastic,o=this.visualElement.getLayoutState().layoutCorrected;this.constraints=!!n&&(oi(n)?this.resolveRefConstraints(o,n):function(t,e){var n=e.top,r=e.left,o=e.bottom,i=e.right;return{x:$c(t.x,r,i),y:$c(t.y,n,o)}}(o,n)),this.elastic=function(t){return!1===t?t=0:!0===t&&(t=.35),{x:Yc(t,"left","right"),y:Yc(t,"top","bottom")}}(r),this.constraints&&!this.hasMutatedConstraints&&Uc((function(e){t.getAxisMotionValue(e)&&(t.constraints[e]=function(t,e){var n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(o[e],t.constraints[e]))}))},t.prototype.resolveRefConstraints=function(t,e){var n=this.props,r=n.onMeasureDragConstraints,o=n.transformPagePoint,i=e.current;this.constraintsBox=Zc(i,o);var a=function(t,e){return{x:Gc(t.x,e.x),y:Gc(t.y,e.y)}}(t,this.constraintsBox);if(r){var s=r(function(t){var e=t.x,n=t.y;return{top:n.min,bottom:n.max,left:e.min,right:e.max}}(a));this.hasMutatedConstraints=!!s,s&&(a=zc(s))}return a},t.prototype.cancelDrag=function(){var t,e;this.visualElement.unlockProjectionTarget(),null===(t=this.cancelLayout)||void 0===t||t.call(this),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(e=this.visualElement.animationState)||void 0===e||e.setActive(Oa.Drag,!1)},t.prototype.stop=function(t,e){var n,r,o;null===(n=this.panSession)||void 0===n||n.end(),this.panSession=null;var i=this.isDragging;if(this.cancelDrag(),i){var a=e.velocity;this.animateDragEnd(a),null===(o=(r=this.props).onDragEnd)||void 0===o||o.call(r,t,e)}},t.prototype.snapToCursor=function(t){var e=this;return Uc((function(n){if(Tu(n,e.props.drag,e.currentDirection)){var r=e.getAxisMotionValue(n);if(!r)return e.cursorProgress[n]=.5,!0;var o=e.visualElement.getLayoutState().layout,i=o[n].max-o[n].min,a=o[n].min+i/2,s=t[n]-a;e.originPoint[n]=t[n],r.set(s)}})).includes(!0)},t.prototype.updateAxis=function(t,e,n){if(Tu(t,this.props.drag,this.currentDirection))return this.getAxisMotionValue(t)?this.updateAxisMotionValue(t,n):this.updateVisualElementAxis(t,e)},t.prototype.updateAxisMotionValue=function(t,e){var n=this.getAxisMotionValue(t);if(e&&n){var r=this.originPoint[t]+e[t],o=this.constraints?Hc(r,this.constraints[t],this.elastic[t]):r;n.set(o)}},t.prototype.updateVisualElementAxis=function(t,e){var n,r=this.visualElement.getLayoutState().layout[t],o=r.max-r.min,i=this.cursorProgress[t],a=function(t,e,n,r,o){var i=t-e*n;return r?Hc(i,r,o):i}(e[t],o,i,null===(n=this.constraints)||void 0===n?void 0:n[t],this.elastic[t]);this.visualElement.setProjectionTargetAxis(t,a,a+o)},t.prototype.setProps=function(t){var e=t.drag,n=void 0!==e&&e,r=t.dragDirectionLock,o=void 0!==r&&r,i=t.dragPropagation,a=void 0!==i&&i,s=t.dragConstraints,l=void 0!==s&&s,c=t.dragElastic,u=void 0===c?.35:c,d=t.dragMomentum,h=void 0===d||d,p=Object(Wo.d)(t,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=Object(Wo.a)({drag:n,dragDirectionLock:o,dragPropagation:a,dragConstraints:l,dragElastic:u,dragMomentum:h},p)},t.prototype.getAxisMotionValue=function(t){var e=this.props,n=e.layout,r=e.layoutId,o="_drag"+t.toUpperCase();return this.props[o]?this.props[o]:n||void 0!==r?void 0:this.visualElement.getValue(t,0)},t.prototype.isLayoutDrag=function(){return!this.getAxisMotionValue("x")},t.prototype.isExternalDrag=function(){var t=this.props,e=t._dragX,n=t._dragY;return e||n},t.prototype.animateDragEnd=function(t){var e=this,n=this.props,r=n.drag,o=n.dragMomentum,i=n.dragElastic,a=n.dragTransition,s=function(t,e){void 0===e&&(e=!0);var n,r=t.getProjectionParent();return!!r&&(e?Su(n=lu(r.projection.target,t.projection.target),r.getLatestValues()):n=lu(r.getLayoutState().layout,t.getLayoutState().layout),Uc((function(e){return t.setProjectionTargetAxis(e,n[e].min,n[e].max,!0)})),!0)}(this.visualElement,this.isLayoutDrag()&&!this.isExternalDrag()),l=this.constraints||{};if(s&&Object.keys(l).length&&this.isLayoutDrag()){var c=this.visualElement.getProjectionParent();if(c){var u=lu(c.projection.targetFinal,l);Uc((function(t){var e=u[t],n=e.min,r=e.max;l[t]={min:isNaN(n)?void 0:n,max:isNaN(r)?void 0:r}}))}}var d=Uc((function(n){var c;if(Tu(n,r,e.currentDirection)){var u=null!==(c=null==l?void 0:l[n])&&void 0!==c?c:{},d=i?200:1e6,h=i?40:1e7,p=Object(Wo.a)(Object(Wo.a)({type:"inertia",velocity:o?t[n]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10},a),u);return e.getAxisMotionValue(n)?e.startAxisValueAnimation(n,p):e.visualElement.startLayoutAnimation(n,p,s)}}));return Promise.all(d).then((function(){var t,n;null===(n=(t=e.props).onDragTransitionEnd)||void 0===n||n.call(t)}))},t.prototype.stopMotion=function(){var t=this;Uc((function(e){var n=t.getAxisMotionValue(e);n?n.stop():t.visualElement.stopLayoutAnimation()}))},t.prototype.startAxisValueAnimation=function(t,e){var n=this.getAxisMotionValue(t);if(n){var r=n.get();return n.set(r),n.set(r),rc(t,n,0,e)}},t.prototype.scalePoint=function(){var t=this,e=this.props,n=e.drag;if(oi(e.dragConstraints)&&this.constraintsBox){this.stopMotion();var r={x:0,y:0};Uc((function(e){r[e]=Kc(t.visualElement.projection.target[e],t.constraintsBox[e])})),this.updateConstraints((function(){Uc((function(e){if(Tu(e,n,null)){var o=function(t,e,n){var r=t.max-t.min,o=ds(e.min,e.max-r,n);return{min:o,max:o+r}}(t.visualElement.projection.target[e],t.constraintsBox[e],r[e]),i=o.min,a=o.max;t.visualElement.setProjectionTargetAxis(e,i,a)}}))})),setTimeout(Eu,1)}},t.prototype.updateConstraints=function(t){var e=this;this.cancelLayout=Ou((function(n,r){var o=iu(e.visualElement);r((function(){return o.forEach((function(t){return t.resetTransform()}))})),n((function(){return au(e.visualElement)})),r((function(){return o.forEach((function(t){return t.restoreTransform()}))})),n((function(){e.resolveDragConstraints()})),t&&r(t)}))},t.prototype.mount=function(t){var e=this,n=za(t.getInstance(),"pointerdown",(function(t){var n=e.props,r=n.drag,o=n.dragListener;r&&(void 0===o||o)&&e.start(t)})),r=ja(window,"resize",(function(){e.scalePoint()})),o=t.onLayoutUpdate((function(){e.isDragging&&e.resolveDragConstraints()})),i=t.prevDragCursor;return i&&this.start(Lu,{cursorProgress:i}),function(){null==n||n(),null==r||r(),null==o||o(),e.cancelDrag()}},t}();function Tu(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}var Pu,Ru,Du={pan:Ka((function(t){var e=t.onPan,n=t.onPanStart,r=t.onPanEnd,o=t.onPanSessionStart,i=t.visualElement,a=e||n||r||o,s=Object(I.useRef)(null),l=Object(I.useContext)($o).transformPagePoint,c={onSessionStart:o,onStart:n,onMove:e,onEnd:function(t,e){s.current=null,r&&r(t,e)}};Object(I.useEffect)((function(){null!==s.current&&s.current.updateHandlers(c)})),Na(i,"pointerdown",a&&function(t){s.current=new Pc(t,c,{transformPagePoint:l})}),Za((function(){return s.current&&s.current.end()}))})),drag:Ka((function(t){var e=t.dragControls,n=t.visualElement,r=Object(I.useContext)($o).transformPagePoint,o=Qo((function(){return new _u({visualElement:n})}));o.setProps(Object(Wo.a)(Object(Wo.a)({},t),{transformPagePoint:r})),Object(I.useEffect)((function(){return e&&e.subscribe(o)}),[o]),Object(I.useEffect)((function(){return o.mount(n)}),[])}))};function Bu(t){return"string"==typeof t&&t.startsWith("var(--")}!function(t){t[t.Entering=0]="Entering",t[t.Present=1]="Present",t[t.Exiting=2]="Exiting"}(Pu||(Pu={})),function(t){t[t.Hide=0]="Hide",t[t.Show=1]="Show"}(Ru||(Ru={}));var Fu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Iu(t,e,n){void 0===n&&(n=1);var r=Object(Wo.c)(function(t){var e=Fu.exec(t);if(!e)return[,];var n=Object(Wo.c)(e,3);return[n[1],n[2]]}(t),2),o=r[0],i=r[1];if(o){var a=window.getComputedStyle(e).getPropertyValue(o);return a?a.trim():Bu(i)?Iu(i,e,n+1):i}}function Mu(t,e){return t/(e.max-e.min)*100}var Wu="_$css";var zu={process:function(t,e,n){var r=n.target;if("string"==typeof t){if(!Wi.test(t))return t;t=parseFloat(t)}return Mu(t,r.x)+"% "+Mu(t,r.y)+"%"}},Nu={borderRadius:Object(Wo.a)(Object(Wo.a)({},zu),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:zu,borderTopRightRadius:zu,borderBottomLeftRadius:zu,borderBottomRightRadius:zu,boxShadow:{process:function(t,e){var n=e.delta,r=e.treeScale,o=t,i=t.includes("var("),a=[];i&&(t=t.replace(Fu,(function(t){return a.push(t),Wu})));var s=Ts.parse(t);if(s.length>5)return o;var l=Ts.createTransformer(t),c="number"!=typeof s[0]?1:0,u=n.x.scale*r.x,d=n.y.scale*r.y;s[0+c]/=u,s[1+c]/=d;var h=ds(u,d,.5);"number"==typeof s[2+c]&&(s[2+c]/=h),"number"==typeof s[3+c]&&(s[3+c]/=h);var p=l(s);if(i){var f=0;p=p.replace(Wu,(function(){var t=a[f];return f++,t}))}return p}}},Vu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.frameTarget={x:{min:0,max:1},y:{min:0,max:1}},e.currentAnimationTarget={x:{min:0,max:1},y:{min:0,max:1}},e.isAnimating={x:!1,y:!1},e.stopAxisAnimation={x:void 0,y:void 0},e.isAnimatingTree=!1,e.animate=function(t,n,r){void 0===r&&(r={});var o=r.originBox,i=r.targetBox,a=r.visibilityAction,s=r.shouldStackAnimate,l=r.onComplete,c=r.prevParent,u=Object(Wo.d)(r,["originBox","targetBox","visibilityAction","shouldStackAnimate","onComplete","prevParent"]),d=e.props,h=d.visualElement,p=d.layout;if(!1===s)return e.isAnimatingTree=!1,e.safeToRemove();if(!e.isAnimatingTree||!0===s){s&&(e.isAnimatingTree=!0),n=o||n,t=i||t;var f=!1,m=h.getProjectionParent();if(m){var g=m.prevViewportBox,v=m.getLayoutState().layout;c&&(i&&(v=c.getLayoutState().layout),o&&!cu(c,m)&&c.prevViewportBox&&(g=c.prevViewportBox)),g&&Qu(c,o,i)&&(f=!0,n=lu(g,n),t=lu(v,t))}var b=Uu(n,t),y=Uc((function(r){var o,i;if("position"===p){var s=t[r].max-t[r].min;n[r].max=n[r].min+s}if(!h.projection.isTargetLocked)return void 0===a?b?e.animateAxis(r,t[r],n[r],Object(Wo.a)(Object(Wo.a)({},u),{isRelative:f})):(null===(i=(o=e.stopAxisAnimation)[r])||void 0===i||i.call(o),h.setProjectionTargetAxis(r,t[r].min,t[r].max,f)):void h.setVisibility(a===Ru.Show)}));return h.syncRender(),Promise.all(y).then((function(){e.isAnimatingTree=!1,l&&l(),h.notifyLayoutAnimationComplete()}))}},e}return Object(Wo.b)(e,t),e.prototype.componentDidMount=function(){var t=this,e=this.props.visualElement;e.animateMotionValue=rc,e.enableLayoutProjection(),this.unsubLayoutReady=e.onLayoutUpdate(this.animate),e.layoutSafeToRemove=function(){return t.safeToRemove()},function(t){for(var e in t)vi[e]=t[e]}(Nu)},e.prototype.componentWillUnmount=function(){var t=this;this.unsubLayoutReady(),Uc((function(e){var n,r;return null===(r=(n=t.stopAxisAnimation)[e])||void 0===r?void 0:r.call(n)}))},e.prototype.animateAxis=function(t,e,n,r){var o,i,a=this,s=void 0===r?{}:r,l=s.transition,c=s.isRelative;if(!this.isAnimating[t]||!Gu(e,this.currentAnimationTarget[t])){null===(i=(o=this.stopAxisAnimation)[t])||void 0===i||i.call(o),this.isAnimating[t]=!0;var u=this.props.visualElement,d=this.frameTarget[t],h=u.getProjectionAnimationProgress()[t];h.clearListeners(),h.set(0),h.set(0);var p=function(){var r=h.get()/1e3;!function(t,e,n,r){t.min=ds(e.min,n.min,r),t.max=ds(e.max,n.max,r)}(d,n,e,r),u.setProjectionTargetAxis(t,d.min,d.max,c)};p();var f=h.onChange(p);this.stopAxisAnimation[t]=function(){a.isAnimating[t]=!1,h.stop(),f()},this.currentAnimationTarget[t]=e;var m=l||u.getDefaultTransition()||Yu;return rc("x"===t?"layoutX":"layoutY",h,1e3,m&&nc(m,"layout")).then(this.stopAxisAnimation[t])}},e.prototype.safeToRemove=function(){var t,e;null===(e=(t=this.props).safeToRemove)||void 0===e||e.call(t)},e.prototype.render=function(){return null},e}(I.Component);function Uu(t,e){return!($u(t)||$u(e)||Gu(t.x,e.x)&&Gu(t.y,e.y))}var Hu={min:0,max:0};function $u(t){return Gu(t.x,Hu)&&Gu(t.y,Hu)}function Gu(t,e){return t.min===e.min&&t.max===e.max}var Yu={duration:.45,ease:[.4,0,.1,1]};function Qu(t,e,n){return t||!t&&!(e||n)}var Zu={layoutReady:function(t){return t.notifyLayoutReady()}};function Xu(){var t=new Set;return{add:function(e){return t.add(e)},flush:function(e){var n=void 0===e?Zu:e,r=n.layoutReady,o=n.parent;Ou((function(e,n){var i=Array.from(t).sort(ru),a=o?iu(o):[];n((function(){Object(Wo.e)(Object(Wo.e)([],Object(Wo.c)(a)),Object(Wo.c)(i)).forEach((function(t){return t.resetTransform()}))})),e((function(){i.forEach(au)})),n((function(){a.forEach((function(t){return t.restoreTransform()})),i.forEach(r)})),e((function(){i.forEach((function(t){t.isPresent&&(t.presence=Pu.Present)}))})),n((function(){bl.preRender(),bl.render()})),e((function(){xl.postRender((function(){return i.forEach(qu)})),t.clear()}))})),Eu()}}}function qu(t){t.prevViewportBox=t.projection.target}var Ku=Object(I.createContext)(Xu()),Ju=Object(I.createContext)(Xu());function td(t){return!!t.forceUpdate}var ed=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(Wo.b)(e,t),e.prototype.componentDidMount=function(){var t=this.props,e=t.syncLayout,n=t.framerSyncLayout,r=t.visualElement;td(e)&&e.register(r),td(n)&&n.register(r),r.onUnmount((function(){td(e)&&e.remove(r),td(n)&&n.remove(r)}))},e.prototype.getSnapshotBeforeUpdate=function(){var t=this.props,e=t.syncLayout,n=t.visualElement;return td(e)?e.syncUpdate():(!function(t){t.shouldResetTransform()||(t.prevViewportBox=t.measureViewportBox(!1),t.rebaseProjectionTarget(!1,t.prevViewportBox))}(n),e.add(n)),null},e.prototype.componentDidUpdate=function(){var t=this.props.syncLayout;td(t)||t.flush()},e.prototype.render=function(){return null},e}(I.default.Component);var nd={measureLayout:function(t){var e=Object(I.useContext)(Ku),n=Object(I.useContext)(Ju);return I.default.createElement(ed,Object(Wo.a)({},t,{syncLayout:e,framerSyncLayout:n}))},layoutAnimation:function(t){var e=Object(Wo.c)(Zo(),2)[1];return I.createElement(Vu,Object(Wo.a)({},t,{safeToRemove:e}))}};function rd(){return{isHydrated:!1,layout:{x:{min:0,max:1},y:{min:0,max:1}},layoutCorrected:{x:{min:0,max:1},y:{min:0,max:1}},treeScale:{x:1,y:1},delta:Vc(),deltaFinal:Vc(),deltaTransform:""}}var od=rd();function id(t,e,n){var r=t.x,o=t.y,i="translate3d("+r.translate/e.x+"px, "+o.translate/e.y+"px, 0) ";if(n){var a=n.rotate,s=n.rotateX,l=n.rotateY;a&&(i+="rotate("+a+") "),s&&(i+="rotateX("+s+") "),l&&(i+="rotateY("+l+") ")}return i+="scale("+r.scale+", "+o.scale+")",n||i!==sd?i:""}function ad(t){var e=t.deltaFinal;return 100*e.x.origin+"% "+100*e.y.origin+"% 0"}var sd=id(od.delta,od.treeScale,{x:1,y:1}),ld=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];function cd(t,e,n,r){var o,i,a=t.delta,s=t.layout,l=t.layoutCorrected,c=t.treeScale,u=e.target;i=s,du((o=l).x,i.x),du(o.y,i.y),function(t,e,n){var r=n.length;if(r){var o,i;e.x=e.y=1;for(var a=0;a<r;a++)i=(o=n[a]).getLayoutState().delta,e.x*=i.x.scale,e.y*=i.y.scale,mu(t,i),uu(o)&&yu(t,t,o.getLatestValues())}}(l,c,n),tu(a,l,u,r)}var ud=function(){function t(){this.children=[],this.isDirty=!1}return t.prototype.add=function(t){oc(this.children,t),this.isDirty=!0},t.prototype.remove=function(t){ic(this.children,t),this.isDirty=!0},t.prototype.forEach=function(t){this.isDirty&&this.children.sort(ru),this.isDirty=!1,this.children.forEach(t)},t}();var dd=function(t){var e=t.treeType,n=void 0===e?"":e,r=t.build,o=t.getBaseTarget,i=t.makeTargetAnimatable,a=t.measureViewportBox,s=t.render,l=t.readValueFromInstance,c=t.resetTransform,u=t.restoreTransform,d=t.removeValueFromRenderState,h=t.sortNodePosition,p=t.scrapeMotionValuesFromProps;return function(t,e){var f=t.parent,m=t.props,g=t.presenceId,v=t.blockInitialAnimation,b=t.visualState;void 0===e&&(e={});var y,A,C,S,x,w,O=b.latestValues,E=b.renderState,L=function(){var t=ld.map((function(){return new ac})),e={},n={clearAllListeners:function(){return t.forEach((function(t){return t.clear()}))},updatePropListeners:function(t){return ld.forEach((function(r){var o;null===(o=e[r])||void 0===o||o.call(e);var i="on"+r,a=t[i];a&&(e[r]=n[i](a))}))}};return t.forEach((function(t,e){n["on"+ld[e]]=function(e){return t.add(e)},n["notify"+ld[e]]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.notify.apply(t,Object(Wo.e)([],Object(Wo.c)(e)))}})),n}(),j={isEnabled:!1,isHydrated:!1,isTargetLocked:!1,target:{x:{min:0,max:1},y:{min:0,max:1}},targetFinal:{x:{min:0,max:1},y:{min:0,max:1}}},k=j,_=O,T=rd(),P=!1,R=new Map,D=new Map,B={},F=Object(Wo.a)({},O);function I(){y&&(G.isProjectionReady()&&(yu(k.targetFinal,k.target,_),tu(T.deltaFinal,T.layoutCorrected,k.targetFinal,O)),M(),s(y,E))}function M(){var t=O;if(S&&S.isActive()){var n=S.getCrossfadeState(G);n&&(t=n)}r(G,E,t,k,T,e,m)}function W(){L.notifyUpdate(O)}function z(){G.layoutTree.forEach(pd)}var N=p(m);for(var V in N){var U=N[V];void 0!==O[V]&&Ei(U)&&U.set(O[V],!1)}var H=ci(m),$=ui(m),G=Object(Wo.a)(Object(Wo.a)({treeType:n,current:null,depth:f?f.depth+1:0,parent:f,children:new Set,path:f?Object(Wo.e)(Object(Wo.e)([],Object(Wo.c)(f.path)),[f]):[],layoutTree:f?f.layoutTree:new ud,presenceId:g,projection:j,variantChildren:$?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==f?void 0:f.isMounted()),blockInitialAnimation:v,isMounted:function(){return Boolean(y)},mount:function(t){y=G.current=t,G.pointTo(G),$&&f&&!H&&(w=null==f?void 0:f.addVariantChild(G)),null==f||f.children.add(G)},unmount:function(){vl.update(W),vl.render(I),vl.preRender(G.updateLayoutProjection),D.forEach((function(t){return t()})),G.stopLayoutAnimation(),G.layoutTree.remove(G),null==w||w(),null==f||f.children.delete(G),null==C||C(),L.clearAllListeners()},addVariantChild:function(t){var e,n=G.getClosestVariantNode();if(n)return null===(e=n.variantChildren)||void 0===e||e.add(t),function(){return n.variantChildren.delete(t)}},sortNodePosition:function(t){return h&&n===t.treeType?h(G.getInstance(),t.getInstance()):0},getClosestVariantNode:function(){return $?G:null==f?void 0:f.getClosestVariantNode()},scheduleUpdateLayoutProjection:f?f.scheduleUpdateLayoutProjection:function(){return xl.preRender(G.updateTreeLayoutProjection,!1,!0)},getLayoutId:function(){return m.layoutId},getInstance:function(){return y},getStaticValue:function(t){return O[t]},setStaticValue:function(t,e){return O[t]=e},getLatestValues:function(){return O},setVisibility:function(t){G.isVisible!==t&&(G.isVisible=t,G.scheduleRender())},makeTargetAnimatable:function(t,e){return void 0===e&&(e=!0),i(G,t,m,e)},addValue:function(t,e){G.hasValue(t)&&G.removeValue(t),R.set(t,e),O[t]=e.get(),function(t,e){var n=e.onChange((function(e){O[t]=e,m.onUpdate&&xl.update(W,!1,!0)})),r=e.onRenderRequest(G.scheduleRender);D.set(t,(function(){n(),r()}))}(t,e)},removeValue:function(t){var e;R.delete(t),null===(e=D.get(t))||void 0===e||e(),D.delete(t),delete O[t],d(t,E)},hasValue:function(t){return R.has(t)},getValue:function(t,e){var n=R.get(t);return void 0===n&&void 0!==e&&(n=lc(e),G.addValue(t,n)),n},forEachValue:function(t){return R.forEach(t)},readValue:function(t){var n;return null!==(n=O[t])&&void 0!==n?n:l(y,t,e)},setBaseTarget:function(t,e){F[t]=e},getBaseTarget:function(t){if(o){var e=o(m,t);if(void 0!==e&&!Ei(e))return e}return F[t]}},L),{build:function(){return M(),E},scheduleRender:function(){xl.render(I,!1,!0)},syncRender:I,setProps:function(t){m=t,L.updatePropListeners(t),B=function(t,e,n){var r;for(var o in e){var i=e[o],a=n[o];if(Ei(i))t.addValue(o,i);else if(Ei(a))t.addValue(o,lc(i));else if(a!==i)if(t.hasValue(o)){var s=t.getValue(o);!s.hasAnimated&&s.set(i)}else t.addValue(o,lc(null!==(r=t.getStaticValue(o))&&void 0!==r?r:i))}for(var o in n)void 0===e[o]&&t.removeValue(o);return e}(G,p(m),B)},getProps:function(){return m},getVariant:function(t){var e;return null===(e=m.variants)||void 0===e?void 0:e[t]},getDefaultTransition:function(){return m.transition},getVariantContext:function(t){if(void 0===t&&(t=!1),t)return null==f?void 0:f.getVariantContext();if(!H){var e=(null==f?void 0:f.getVariantContext())||{};return void 0!==m.initial&&(e.initial=m.initial),e}for(var n={},r=0;r<gd;r++){var o=md[r],i=m[o];(ai(i)||!1===i)&&(n[o]=i)}return n},enableLayoutProjection:function(){j.isEnabled=!0,G.layoutTree.add(G)},lockProjectionTarget:function(){j.isTargetLocked=!0},unlockProjectionTarget:function(){G.stopLayoutAnimation(),j.isTargetLocked=!1},getLayoutState:function(){return T},setCrossfader:function(t){S=t},isProjectionReady:function(){return j.isEnabled&&j.isHydrated&&T.isHydrated},startLayoutAnimation:function(t,e,n){void 0===n&&(n=!1);var r=G.getProjectionAnimationProgress()[t],o=n?j.relativeTarget[t]:j.target[t],i=o.min,a=o.max-i;return r.clearListeners(),r.set(i),r.set(i),r.onChange((function(e){G.setProjectionTargetAxis(t,e,e+a,n)})),G.animateMotionValue(t,r,0,e)},stopLayoutAnimation:function(){Uc((function(t){return G.getProjectionAnimationProgress()[t].stop()}))},measureViewportBox:function(t){void 0===t&&(t=!0);var n=a(y,e);return t||Su(n,O),n},getProjectionAnimationProgress:function(){return x||(x={x:lc(0),y:lc(0)}),x},setProjectionTargetAxis:function(t,e,n,r){var o;void 0===r&&(r=!1),r?(j.relativeTarget||(j.relativeTarget={x:{min:0,max:1},y:{min:0,max:1}}),o=j.relativeTarget[t]):(j.relativeTarget=void 0,o=j.target[t]),j.isHydrated=!0,o.min=e,o.max=n,P=!0,L.notifySetAxisTarget()},rebaseProjectionTarget:function(t,e){void 0===e&&(e=T.layout);var n=G.getProjectionAnimationProgress(),r=n.x,o=n.y,i=!(j.relativeTarget||j.isTargetLocked||r.isAnimating()||o.isAnimating());(t||i)&&Uc((function(t){var n=e[t],r=n.min,o=n.max;G.setProjectionTargetAxis(t,r,o)}))},notifyLayoutReady:function(t){!function(t){var e=t.getProjectionParent();if(e){var n=lu(e.getLayoutState().layout,t.getLayoutState().layout);Uc((function(e){t.setProjectionTargetAxis(e,n[e].min,n[e].max,!0)}))}else t.rebaseProjectionTarget()}(G),G.notifyLayoutUpdate(T.layout,G.prevViewportBox||T.layout,t)},resetTransform:function(){return c(G,y,m)},restoreTransform:function(){return u(y,E)},updateLayoutProjection:function(){if(G.isProjectionReady()){var t=T.delta,e=T.treeScale,n=e.x,r=e.y,o=T.deltaTransform;cd(T,k,G.path,O),P&&G.notifyViewportBoxUpdate(k.target,t),P=!1;var i=id(t,e);i===o&&n===e.x&&r===e.y||G.scheduleRender(),T.deltaTransform=i}},updateTreeLayoutProjection:function(){G.layoutTree.forEach(hd),xl.preRender(z,!1,!0)},getProjectionParent:function(){if(void 0===A){for(var t=!1,e=G.path.length-1;e>=0;e--){var n=G.path[e];if(n.projection.isEnabled){t=n;break}}A=t}return A},resolveRelativeTargetBox:function(){var t=G.getProjectionParent();if(j.relativeTarget&&t&&(function(t,e){nu(t.target.x,t.relativeTarget.x,e.target.x),nu(t.target.y,t.relativeTarget.y,e.target.y)}(j,t.projection),uu(t))){var e=j.target;yu(e,e,t.getLatestValues())}},shouldResetTransform:function(){return Boolean(m._layoutResetTransform)},pointTo:function(t){k=t.projection,_=t.getLatestValues(),null==C||C(),C=qa(t.onSetAxisTarget(G.scheduleUpdateLayoutProjection),t.onLayoutAnimationComplete((function(){var t;G.isPresent?G.presence=Pu.Present:null===(t=G.layoutSafeToRemove)||void 0===t||t.call(G)})))},isPresent:!0,presence:Pu.Entering});return G}};function hd(t){t.resolveRelativeTargetBox()}function pd(t){t.updateLayoutProjection()}var fd,md=Object(Wo.e)(["initial"],Object(Wo.c)(Cc)),gd=md.length,vd=new Set(["width","height","top","left","right","bottom","x","y"]),bd=function(t){return vd.has(t)},yd=function(t,e){t.set(e,!1),t.set(e)},Ad=function(t){return t===Ui||t===Wi};!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(fd||(fd={}));var Cd=function(t,e){return parseFloat(t.split(", ")[e])},Sd=function(t,e){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var i=o.match(/^matrix3d\((.+)\)$/);if(i)return Cd(i[1],e);var a=o.match(/^matrix\((.+)\)$/);return a?Cd(a[1],t):0}},xd=new Set(["x","y","z"]),wd=yi.filter((function(t){return!xd.has(t)}));var Od={width:function(t){var e=t.x;return e.max-e.min},height:function(t){var e=t.y;return e.max-e.min},top:function(t,e){var n=e.top;return parseFloat(n)},left:function(t,e){var n=e.left;return parseFloat(n)},bottom:function(t,e){var n=t.y,r=e.top;return parseFloat(r)+(n.max-n.min)},right:function(t,e){var n=t.x,r=e.left;return parseFloat(r)+(n.max-n.min)},x:Sd(4,13),y:Sd(5,14)},Ed=function(t,e,n,r){void 0===n&&(n={}),void 0===r&&(r={}),e=Object(Wo.a)({},e),r=Object(Wo.a)({},r);var o=Object.keys(e).filter(bd),i=[],a=!1,s=[];if(o.forEach((function(o){var l=t.getValue(o);if(t.hasValue(o)){var c,u=n[o],d=e[o],h=dc(u);if(ya(d))for(var p=d.length,f=null===d[0]?1:0;f<p;f++)c?dc(d[f]):(c=dc(d[f]))===h||Ad(h)&&Ad(c);else c=dc(d);if(h!==c)if(Ad(h)&&Ad(c)){var m=l.get();"string"==typeof m&&l.set(parseFloat(m)),"string"==typeof d?e[o]=parseFloat(d):Array.isArray(d)&&c===Wi&&(e[o]=d.map(parseFloat))}else(null==h?void 0:h.transform)&&(null==c?void 0:c.transform)&&(0===u||0===d)?0===u?l.set(c.transform(u)):e[o]=h.transform(d):(a||(i=function(t){var e=[];return wd.forEach((function(n){var r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),e.length&&t.syncRender(),e}(t),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:e[o],yd(l,d))}})),s.length){var l=function(t,e,n){var r=e.measureViewportBox(),o=e.getInstance(),i=getComputedStyle(o),a=i.display,s={top:i.top,left:i.left,bottom:i.bottom,right:i.right,transform:i.transform};"none"===a&&e.setStaticValue("display",t.display||"block"),e.syncRender();var l=e.measureViewportBox();return n.forEach((function(n){var o=e.getValue(n);yd(o,Od[n](r,s)),t[n]=Od[n](l,i)})),t}(e,t,s);return i.length&&i.forEach((function(e){var n=Object(Wo.c)(e,2),r=n[0],o=n[1];t.getValue(r).set(o)})),t.syncRender(),{target:l,transitionEnd:r}}return{target:e,transitionEnd:r}};function Ld(t,e,n,r){return function(t){return Object.keys(t).some(bd)}(e)?Ed(t,e,n,r):{target:e,transitionEnd:r}}var jd=function(t,e,n,r){var o=function(t,e,n){var r,o=Object(Wo.d)(e,[]),i=t.getInstance();if(!(i instanceof HTMLElement))return{target:o,transitionEnd:n};for(var a in n&&(n=Object(Wo.a)({},n)),t.forEachValue((function(t){var e=t.get();if(Bu(e)){var n=Iu(e,i);n&&t.set(n)}})),o){var s=o[a];if(Bu(s)){var l=Iu(s,i);l&&(o[a]=l,n&&(null!==(r=n[a])&&void 0!==r||(n[a]=s)))}}return{target:o,transitionEnd:n}}(t,e,r);return Ld(t,e=o.target,n,r=o.transitionEnd)};var kd={treeType:"dom",readValueFromInstance:function(t,e){if(Si(e)){var n=Zl(e);return n&&n.default||0}var r,o=(r=t,window.getComputedStyle(r));return(ji(e)?o.getPropertyValue(e):o[e])||0},sortNodePosition:function(t,e){return 2&t.compareDocumentPosition(e)?1:-1},getBaseTarget:function(t,e){var n;return null===(n=t.style)||void 0===n?void 0:n[e]},measureViewportBox:function(t,e){return Zc(t,e.transformPagePoint)},resetTransform:function(t,e,n){var r=n.transformTemplate;e.style.transform=r?r({},""):"none",t.scheduleRender()},restoreTransform:function(t,e){t.style.transform=e.style.transform},removeValueFromRenderState:function(t,e){var n=e.vars,r=e.style;delete n[t],delete r[t]},makeTargetAnimatable:function(t,e,n,r){var o=n.transformValues;void 0===r&&(r=!0);var i=e.transition,a=e.transitionEnd,s=Object(Wo.d)(e,["transition","transitionEnd"]),l=function(t,e,n){var r,o,i={};for(var a in t)i[a]=null!==(r=gc(a,e))&&void 0!==r?r:null===(o=n.getValue(a))||void 0===o?void 0:o.get();return i}(s,i||{},t);if(o&&(a&&(a=o(a)),s&&(s=o(s)),l&&(l=o(l))),r){!function(t,e,n){var r,o,i,a,s=Object.keys(e).filter((function(e){return!t.hasValue(e)})),l=s.length;if(l)for(var c=0;c<l;c++){var u=s[c],d=e[u],h=null;Array.isArray(d)&&(h=d[0]),null===h&&(h=null!==(o=null!==(r=n[u])&&void 0!==r?r:t.readValue(u))&&void 0!==o?o:e[u]),null!=h&&("string"==typeof h&&/^\-?\d*\.?\d+$/.test(h)?h=parseFloat(h):!pc(h)&&Ts.test(d)&&(h=Xl(u,d)),t.addValue(u,lc(h)),null!==(i=(a=n)[u])&&void 0!==i||(a[u]=h),t.setBaseTarget(u,h))}}(t,s,l);var c=jd(t,s,l,a);a=c.transitionEnd,s=c.target}return Object(Wo.a)({transition:i,transitionEnd:a},s)},scrapeMotionValuesFromProps:ga,build:function(t,e,n,r,o,i,a){void 0!==t.isVisible&&(e.style.visibility=t.isVisible?"visible":"hidden");var s=r.isEnabled&&o.isHydrated;Qi(e,n,r,o,i,a.transformTemplate,s?id:void 0,s?ad:void 0)},render:pa},_d=dd(kd),Td=dd(Object(Wo.a)(Object(Wo.a)({},kd),{getBaseTarget:function(t,e){return t[e]},readValueFromInstance:function(t,e){var n;return Si(e)?(null===(n=Zl(e))||void 0===n?void 0:n.default)||0:(e=fa.has(e)?e:ha(e),t.getAttribute(e))},scrapeMotionValuesFromProps:va,build:function(t,e,n,r,o,i,a){var s=r.isEnabled&&o.isHydrated;sa(e,n,r,o,i,a.transformTemplate,s?id:void 0,s?ad:void 0)},render:ma})),Pd=function(t,e){return gi(t)?Td(e,{enableHardwareAcceleration:!1}):_d(e,{enableHardwareAcceleration:!0})},Rd=Object(Wo.a)(Object(Wo.a)(Object(Wo.a)(Object(Wo.a)({},Lc),Ja),Du),nd),Dd=fi((function(t,e){return La(t,e,Rd,Pd)}));class Bd{constructor(t){this.highlighted=!1,this.code=t,this.points=[]}}var Fd=n(8);class Id{static now(){return Date.now()}}function Md(t){var e=Qo((function(){return lc(t)}));if(Object(I.useContext)($o).isStatic){var n=Object(Wo.c)(Object(I.useState)(t),2)[1];Object(I.useEffect)((function(){return e.onChange(n)}),[])}return e}var Wd=function(t){return function(t){return"object"==typeof t&&t.mix}(t)?t.mix:void 0};function zd(t,e){var n=Md(e()),r=function(){return n.set(e())};return r(),function(t,e){Object(I.useEffect)((function(){var n=t.map((function(t){return t.onChange(e)}));return function(){return n.forEach((function(t){return t()}))}}))}(t,(function(){return xl.update(r,!1,!0)})),n}function Nd(t,e,n,r){var o="function"==typeof e?e:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=!Array.isArray(t[0]),r=n?0:-1,o=t[0+r],i=t[1+r],a=t[2+r],s=t[3+r],l=zs(i,a,Object(Wo.a)({mixer:Wd(a[0])},s));return n?l(o):l}(e,n,r);return Array.isArray(t)?Vd(t,o):Vd([t],(function(t){var e=Object(Wo.c)(t,1)[0];return o(e)}))}function Vd(t,e){var n=Qo((function(){return[]}));return zd(t,(function(){n.length=0;for(var r=t.length,o=0;o<r;o++)n[o]=t[o].get();return e(n)}))}function Ud(t,e,n){void 0===n&&(n={});var r=Ei(t)?t:lc(t);return rc("",r,e,n),{stop:function(){return r.stop()}}}var Hd=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n};class $d extends I.default.Component{constructor(t){super(t),this.state={element:t.element}}update(t){this.setState({element:t})}style(t){this.customStyle=t,this.forceUpdate()}render(){var t,e,n,r,o,i,a,s,l;const c=this.state.element,u=this.props.configuration.style;!c.highlighted&&this.props.configuration.automaticSelectionEnabled&&this.props.onClick(c);const d=null!==(e=null===(t=this.customStyle)||void 0===t?void 0:t.fillColor)&&void 0!==e?e:c.highlighted?u.highlightedPolygonFillColor:u.polygonFillColor,h=null!==(r=null===(n=this.customStyle)||void 0===n?void 0:n.strokeColor)&&void 0!==r?r:c.highlighted?u.highlightedPolygonStrokeColor:u.polygonStrokeColor,p=null!==(i=null===(o=this.customStyle)||void 0===o?void 0:o.strokeWidth)&&void 0!==i?i:c.highlighted?u.highlightedPolygonStrokeWidth:u.polygonStrokeWidth,f=null!==(s=null===(a=this.customStyle)||void 0===a?void 0:a.cornerRadius)&&void 0!==s?s:c.highlighted?u.highlightedPolygonCornerRadius:u.polygonCornerRadius,m=null!==(l=this.props.animateToPoints)&&void 0!==l?l:c.points;return I.default.createElement(Gd,{points:m,onClick:()=>{this.props.onClick&&this.props.onClick(c)},fill:d,stroke:h,strokeWidth:p,cornerRadius:f})}}function Gd(t){var{points:e,cornerRadius:n}=t,r=Hd(t,["points","cornerRadius"]);const o=[e[0].x,e[0].y,e[1].x,e[1].y,e[2].x,e[2].y,e[3].x,e[3].y],i=o.map(Md),a=Nd(i,(([t,e,r,o,i,a,s,l])=>{const c=[{x:t,y:e},{x:r,y:o},{x:i,y:a},{x:s,y:l}];return Fd.a.toSvgPathStringWithRoundedCorners(c,n)}));return Object(I.useEffect)((()=>{const t=[];for(let e=0;e<o.length;e++)t.push(Ud(i[e],o[e]));return()=>{t.forEach((t=>t.stop()))}}),[e]),I.default.createElement(Dd.path,Object.assign({d:a},r))}class Yd extends I.default.Component{constructor(t){super(t),this.state={polygonElements:[]}}update(t,e,n,r){const o=[];(class{static keepOnlyCenterMostDuplicate(t,e){const n=new Map;t.forEach((t=>{const e=Ro(t),r=n.get(e);r?r.push(t):n.set(e,[t])})),n.forEach(((e,r)=>{e.length<2?n.delete(r):e.forEach(((e,n)=>{t.splice(t.indexOf(e),1)}))})),n.forEach(((n,r)=>{const o=t=>{let e={x:0,y:0};return t.forEach((t=>{e.x+=t.x,e.y+=t.y})),e.x/=t.length,e.y/=t.length,e},i=e.width/2,a=n.reduce(((t,e)=>{const n=o(t.quad),r=o(e.quad);return Math.abs(i-n.x)<Math.abs(i-r.x)?t:e}));t.push(a)}))}}).keepOnlyCenterMostDuplicate(r,n),r.forEach((r=>{const i=new Bd(r);i.points=void 0===t?Fd.a.scaleListToHtmlElement(r.quad,n,e.video):r.quad.map((e=>{const r=new Fd.a(e.x,e.y);return r.x*=t.width/n.width,r.y*=t.height/n.height,r.y+=t.y,r.x+=t.x,r})),i.points.forEach((t=>{e.state.mirrored&&this.container&&(t.x=this.container.clientWidth-t.x)})),o.push(i)}));const i=[];this.state.polygonElements.forEach((t=>{const e=o.find((e=>Po(e.code,t.element.code)));let n=!1;void 0===e?t.updatedAt+1e3<Id.now()&&(n=!0):(t.element=e,t.polygon=I.default.createElement($d,{key:Ro(t.element.code),ref:e=>t.polygonRef=e,configuration:this.props.configuration,element:t.element,animateToPoints:e.points,onClick:this.onPolygonClick.bind(this)}),t.label=I.default.createElement(this.props.LabelComponent,Object.assign({},this.props.labelComponentConfig,{key:Ro(t.element.code),ref:e=>t.labelRef=e,configuration:this.props.configuration,element:t.element,animateToPoints:e.points,onClick:this.onPolygonClick.bind(this)})),t.updatedAt=Id.now()),n||i.push(t)})),o.forEach((t=>{if(void 0===this.state.polygonElements.find((e=>Po(e.element.code,t.code)))){let e,n;const r=I.default.createElement($d,{key:Ro(t.code),ref:r=>{e=r,void 0!==n&&this.props.onBarcodeFound(t.code,e,n)},configuration:this.props.configuration,element:t,onClick:this.onPolygonClick.bind(this)}),o=I.default.createElement(this.props.LabelComponent,Object.assign({},this.props.labelComponentConfig,{key:Ro(t.code),ref:r=>{n=r,void 0!==e&&this.props.onBarcodeFound(t.code,e,n)},configuration:this.props.configuration,element:t,onClick:this.onPolygonClick.bind(this)})),a={element:t,polygon:r,label:o,polygonRef:e,labelRef:n,updatedAt:Id.now()};i.push(a)}})),this.setState({polygonElements:i})}onPolygonClick(t){var e,n,r,o;t.highlighted=!t.highlighted,this.forceUpdate(),this.state.polygonElements.forEach((e=>{var n;const r=e.labelRef,o=e.label.props.element;r&&Po(o.code,t.code)&&(r.update(t),null===(n=e.polygonRef)||void 0===n||n.update(t))})),t.highlighted&&(null===(n=(e=this.props).onPolygonSelected)||void 0===n||n.call(e,t.code)),null===(o=(r=this.props).onPolygonClick)||void 0===o||o.call(r,t.code)}render(){var t,e;return I.default.createElement("div",{style:Object.assign({width:"100%",height:"100%",position:"absolute"},this.props.style),ref:t=>this.container=t},I.default.createElement(Dd.svg,{style:{position:"absolute",maxWidth:"100%",width:"100%",height:"100%"}},null===(t=this.state.polygonElements)||void 0===t?void 0:t.map((t=>t.polygon))),null===(e=this.state.polygonElements)||void 0===e?void 0:e.map((t=>t.label)))}}var Qd=n(74),Zd=n.n(Qd),Xd=n(84),qd={insert:"head",singleton:!1},Kd=(Zd()(Xd.a,qd),Xd.a.locals,n(51)),Jd=n.n(Kd);class th{constructor(t){this.lastTime=0,this.lastDuration=0,this.t=0,this.element=null,this.animationClass="",this.animationClass=t}setDuration(t){const e=Date.now()/1e3,n=e-this.lastTime;this.lastDuration&&(this.t+=n%this.lastDuration/this.lastDuration,this.t-=0|this.t);const r=-t*this.t;this.element&&(this.element.style.animationDuration=`${t}s`,this.element.style.animationDelay=`${r}s`,this.element.classList.remove(this.animationClass),this.element.offsetHeight,this.element.classList.add(this.animationClass)),this.lastTime=e,this.lastDuration=t}}class eh extends I.default.Component{constructor(){super(...arguments),this.inner1=new th("scanbot-shutter-rotate"),this.inner2=new th("scanbot-shutter-rotate")}render(){return I.default.createElement("div",{className:"scanbot-shutter-button",style:this.props.style,onClick:this.props.onClick},this.captureBackground(),this.captureInnerCircle(),this.captureSearchingInner1(),this.captureSearchingInner2())}updateAnimationSpeed(t){"searching"==t?(this.inner1.setDuration(3),this.inner2.setDuration(2)):(this.inner1.setDuration(1.5),this.inner2.setDuration(.75))}componentDidMount(){this.updateAnimationSpeed(this.props.action)}componentDidUpdate(){this.updateAnimationSpeed(this.props.action)}captureBackground(){return this.svgBase(null,I.default.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},this.path("M32 0c17.673 0 32 14.327 32 32 0 17.673-14.327 32-32 32C14.327 64 0 49.673 0 32 0 14.327 14.327 0 32 0zm0 3C15.984 3 3 15.984 3 32s12.984 29 29 29 29-12.984 29-29S48.016 3 32 3z")))}captureInnerCircle(){const{action:t}=this.props;return this.svgBase({"scanbot-shutter-button-part":!0,"scanbot-shutter-fade-in":"processing"==t||"manual"==t,"scanbot-shutter-fade-out":"searching"==t||"capturing"==t,"scanbot-shutter-pulse-fast":"processing"==t},I.default.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},I.default.createElement("circle",{cx:"32",cy:"32",r:"24",fill:this.props.color,fillRule:"nonzero"})))}captureSearchingInner1(){const{action:t}=this.props;return this.svgBase({"scanbot-shutter-button-part":!0,"scanbot-shutter-fade-in":"searching"==t||"capturing"==t,"scanbot-shutter-fade-out":"processing"==t||"manual"==t},I.default.createElement("g",{fill:"none",fillOpacity:"0.7",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},this.path("M44.24 51.476a1 1 0 01-1.066-1.692A20.981 20.981 0 0053 32c0-11.598-9.402-21-21-21a1 1 0 010-2c12.703 0 23 10.297 23 23a22.98 22.98 0 01-10.76 19.476z")),(t=>{this.inner1.element=t}))}captureSearchingInner2(){const{action:t}=this.props;return this.svgBase({"scanbot-shutter-button-part":!0,"scanbot-shutter-fade-in":"searching"==t||"capturing"==t,"scanbot-shutter-fade-out":"processing"==t||"manual"==t},I.default.createElement("g",{fill:"none",fillOpacity:"0.4",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},this.path("M46.624 35.35a1 1 0 01-1.95-.445C44.89 33.96 45 32.988 45 32c0-7.18-5.82-13-13-13a1 1 0 010-2c8.284 0 15 6.716 15 15 0 1.138-.127 2.26-.376 3.35z")),(t=>{this.inner2.element=t}))}path(t){return I.default.createElement("path",{fill:this.props.color,fillRule:"nonzero",d:t})}svgBase(t,e,n){return I.default.createElement("div",{className:Jd()(t),ref:n},I.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 64 64"},e))}}class nh extends I.default.Component{render(){return I.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},I.default.createElement("mask",{id:"mask0_919_23088",style:"mask-type:alpha",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24"},I.default.createElement("rect",{width:"24",height:"24",fill:"#D9D9D9"})),I.default.createElement("g",{mask:"url(#mask0_919_23088)"},I.default.createElement("path",{d:"M9 19V17H21V19H9ZM9 13V11H21V13H9ZM9 7V5H21V7H9ZM5 20C4.45 20 3.97917 19.8042 3.5875 19.4125C3.19583 19.0208 3 18.55 3 18C3 17.45 3.19583 16.9792 3.5875 16.5875C3.97917 16.1958 4.45 16 5 16C5.55 16 6.02083 16.1958 6.4125 16.5875C6.80417 16.9792 7 17.45 7 18C7 18.55 6.80417 19.0208 6.4125 19.4125C6.02083 19.8042 5.55 20 5 20ZM5 14C4.45 14 3.97917 13.8042 3.5875 13.4125C3.19583 13.0208 3 12.55 3 12C3 11.45 3.19583 10.9792 3.5875 10.5875C3.97917 10.1958 4.45 10 5 10C5.55 10 6.02083 10.1958 6.4125 10.5875C6.80417 10.9792 7 11.45 7 12C7 12.55 6.80417 13.0208 6.4125 13.4125C6.02083 13.8042 5.55 14 5 14ZM5 8C4.45 8 3.97917 7.80417 3.5875 7.4125C3.19583 7.02083 3 6.55 3 6C3 5.45 3.19583 4.97917 3.5875 4.5875C3.97917 4.19583 4.45 4 5 4C5.55 4 6.02083 4.19583 6.4125 4.5875C6.80417 4.97917 7 5.45 7 6C7 6.55 6.80417 7.02083 6.4125 7.4125C6.02083 7.80417 5.55 8 5 8Z",fill:"white"})))}}class rh extends I.default.Component{render(){return I.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},I.default.createElement("mask",{id:"mask0_919_23102",style:"mask-type:alpha",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24"},I.default.createElement("rect",{width:"24",height:"24",fill:"#D9D9D9"})),I.default.createElement("g",{mask:"url(#mask0_919_23102)"},I.default.createElement("path",{d:"M12 22C10.75 22 9.57917 21.7625 8.4875 21.2875C7.39583 20.8125 6.44583 20.1708 5.6375 19.3625C4.82917 18.5542 4.1875 17.6042 3.7125 16.5125C3.2375 15.4208 3 14.25 3 13H5C5 14.95 5.67917 16.6042 7.0375 17.9625C8.39583 19.3208 10.05 20 12 20C13.95 20 15.6042 19.3208 16.9625 17.9625C18.3208 16.6042 19 14.95 19 13C19 11.05 18.3208 9.39583 16.9625 8.0375C15.6042 6.67917 13.95 6 12 6H11.85L13.4 7.55L12 9L8 5L12 1L13.4 2.45L11.85 4H12C13.25 4 14.4208 4.2375 15.5125 4.7125C16.6042 5.1875 17.5542 5.82917 18.3625 6.6375C19.1708 7.44583 19.8125 8.39583 20.2875 9.4875C20.7625 10.5792 21 11.75 21 13C21 14.25 20.7625 15.4208 20.2875 16.5125C19.8125 17.6042 19.1708 18.5542 18.3625 19.3625C17.5542 20.1708 16.6042 20.8125 15.5125 21.2875C14.4208 21.7625 13.25 22 12 22Z",fill:"white"})))}}class oh extends I.default.Component{constructor(t){super(t),this.state={barcodes:void 0}}update(t){this.setState({barcodes:t})}didScan(){return void 0!==this.state.barcodes}render(){var t,e;return I.default.createElement("div",{style:{position:"absolute",bottom:0,width:"100%",height:76,display:"flex",alignItems:"center",backgroundColor:Io.ScanbotPrimary}},I.default.createElement("div",{style:{display:"flex",flex:1,justifyContent:"center",alignItems:"center",opacity:this.didScan()?1:.5},onClick:this.didScan()&&this.props.onBurgerClick},I.default.createElement(nh,null),I.default.createElement("div",{style:{backgroundColor:Io.Orange,color:Io.White,width:24,height:24,borderRadius:12,marginLeft:10,fontSize:13,lineHeight:"24px",textAlign:"center"}},null!==(e=null===(t=this.state.barcodes)||void 0===t?void 0:t.length)&&void 0!==e?e:0)),I.default.createElement("div",{style:{display:"flex",flex:1,justifyContent:"center",opacity:this.props.isShowingImage?.5:1}},I.default.createElement(eh,{style:{left:0,bottom:0,transform:"none"},color:"#FFF",action:this.props.action,onClick:!this.props.isShowingImage&&this.props.onShutterButtonClick})),I.default.createElement("div",{style:{display:"flex",flex:1,justifyContent:"center",alignItems:"center",opacity:this.didScan()?1:.5},onClick:this.didScan()&&this.props.onScanMoreClick},I.default.createElement("div",{style:{fontSize:13,color:Io.White,marginRight:10}},"Scan More"),I.default.createElement(rh,null)))}}class ih extends I.default.Component{render(){const t=Fd.a.centerOf(this.props.points),e=Fd.a.smallerSizeOfQuad(this.props.points)/40;return I.default.createElement("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{position:"absolute",left:t.x-20,top:t.y-20,transform:`scale(${e})`}},I.default.createElement("mask",{id:"mask0_910_20901",style:"mask-type:alpha",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"40",height:"40"},I.default.createElement("rect",{width:"40",height:"40",fill:"#D9D9D9"})),I.default.createElement("g",{mask:"url(#mask0_910_20901)"},I.default.createElement("rect",{x:"7",y:"13",width:"26",height:"16",fill:"white"}),I.default.createElement("path",{d:"M17.5833 27.6111L29.3611 15.8333L27.3055 13.8055L17.5833 23.5278L12.6666 18.6111L10.6389 20.6389L17.5833 27.6111ZM20 36.6666C17.713 36.6666 15.5555 36.2291 13.5278 35.3541C11.5 34.4791 9.73147 33.287 8.22219 31.7778C6.71294 30.2685 5.52081 28.5 4.64581 26.4722C3.77081 24.4444 3.33331 22.287 3.33331 20C3.33331 17.6944 3.77081 15.5278 4.64581 13.5C5.52081 11.4722 6.71294 9.70831 8.22219 8.20831C9.73147 6.70831 11.5 5.52081 13.5278 4.64581C15.5555 3.77081 17.713 3.33331 20 3.33331C22.3055 3.33331 24.4722 3.77081 26.5 4.64581C28.5278 5.52081 30.2916 6.70831 31.7916 8.20831C33.2916 9.70831 34.4791 11.4722 35.3541 13.5C36.2291 15.5278 36.6666 17.6944 36.6666 20C36.6666 22.287 36.2291 24.4444 35.3541 26.4722C34.4791 28.5 33.2916 30.2685 31.7916 31.7778C30.2916 33.287 28.5278 34.4791 26.5 35.3541C24.4722 36.2291 22.3055 36.6666 20 36.6666Z",fill:"#55BB77"})))}}var ah=n(21);class sh extends I.default.Component{constructor(t){super(t),this.state={elements:[],imageSize:ah.a.empty()}}update(t){const e=[];t.barcodes.forEach((n=>{const r=new Bd(n);r.points=Fd.a.scaleListToHtmlElement(n.quad,t.originalImageSize,this.image),e.push(r)})),this.setState({imageSize:ah.a.fromHtmlElement(this.image),elements:e})}reset(){this.setState({elements:[]})}render(){return void 0===this.props.image||null===this.props.image?null:I.default.createElement("div",{className:"scanned-image-with-overlay",style:{position:"absolute",display:"flex",justifyContent:"center",alignItems:this.state.image?"normal":"center",minHeight:"300px",height:"100%",width:"100%",top:0,left:0}},I.default.createElement("img",{style:{maxWidth:"100%"},ref:t=>this.image=t,src:`${this.props.image}`}),I.default.createElement("div",{style:{position:"absolute",maxWidth:"100%",width:this.state.imageSize.width,height:this.state.imageSize.height}},this.state.elements.map(((t,e)=>I.default.createElement(ih,{key:e,points:t.points})))))}}class lh extends I.default.Component{render(){if(!this.props.visible)return null;const t=Y.c.svg`
181
+ `),Cs,(t.vars||t).palette.action.hover)));var Ss=Eo.forwardRef((function(e,t){const n=Object(sr.a)({props:e,name:"MuiSkeleton"}),{animation:i="pulse",className:o,component:r="span",height:a,style:s,variant:c="text",width:l}=n,u=Object(Bo.a)(n,ps),d=Object(To.a)({},n,{animation:i,component:r,variant:c,hasChildren:Boolean(u.children)}),m=(e=>{const{classes:t,variant:n,animation:i,hasChildren:o,width:r,height:a}=e,s={root:["root",n,i,o&&"withChildren",o&&!r&&"fitContent",o&&!a&&"heightAuto"]};return Object(rr.a)(s,ms,t)})(d);return Object(Lo.jsx)(As,Object(To.a)({as:r,ref:t,className:Object(Ho.a)(m.root,o),ownerState:d},u,{style:Object(To.a)({width:l,height:a},s)}))}));function ws(e){return Object(dr.a)("MuiButtonGroup",e)}var xs=Object(er.a)("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]);const Es=["children","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"],Os=Object(ar.a)("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${xs.grouped}`]:t.grouped},{[`& .${xs.grouped}`]:t[`grouped${Object(cr.a)(n.orientation)}`]},{[`& .${xs.grouped}`]:t[`grouped${Object(cr.a)(n.variant)}`]},{[`& .${xs.grouped}`]:t[`grouped${Object(cr.a)(n.variant)}${Object(cr.a)(n.orientation)}`]},{[`& .${xs.grouped}`]:t[`grouped${Object(cr.a)(n.variant)}${Object(cr.a)(n.color)}`]},{[`& .${xs.firstButton}`]:t.firstButton},{[`& .${xs.lastButton}`]:t.lastButton},{[`& .${xs.middleButton}`]:t.middleButton},t.root,t[n.variant],!0===n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,"vertical"===n.orientation&&t.vertical]}})((({theme:e,ownerState:t})=>Object(To.a)({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[2]},t.disableElevation&&{boxShadow:"none"},t.fullWidth&&{width:"100%"},"vertical"===t.orientation&&{flexDirection:"column"},{[`& .${xs.grouped}`]:Object(To.a)({minWidth:40,"&:hover":Object(To.a)({},"contained"===t.variant&&{boxShadow:"none"})},"contained"===t.variant&&{boxShadow:"none"}),[`& .${xs.firstButton},& .${xs.middleButton}`]:Object(To.a)({},"horizontal"===t.orientation&&{borderTopRightRadius:0,borderBottomRightRadius:0},"vertical"===t.orientation&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},"text"===t.variant&&"horizontal"===t.orientation&&{borderRight:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:"1px solid "+("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),[`&.${xs.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}},"text"===t.variant&&"vertical"===t.orientation&&{borderBottom:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:"1px solid "+("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),[`&.${xs.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}},"text"===t.variant&&"inherit"!==t.color&&{borderColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:Object(lr.a)(e.palette[t.color].main,.5)},"outlined"===t.variant&&"horizontal"===t.orientation&&{borderRightColor:"transparent"},"outlined"===t.variant&&"vertical"===t.orientation&&{borderBottomColor:"transparent"},"contained"===t.variant&&"horizontal"===t.orientation&&{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${xs.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}},"contained"===t.variant&&"vertical"===t.orientation&&{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${xs.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}},"contained"===t.variant&&"inherit"!==t.color&&{borderColor:(e.vars||e).palette[t.color].dark},{"&:hover":Object(To.a)({},"outlined"===t.variant&&"horizontal"===t.orientation&&{borderRightColor:"currentColor"},"outlined"===t.variant&&"vertical"===t.orientation&&{borderBottomColor:"currentColor"})}),[`& .${xs.lastButton},& .${xs.middleButton}`]:Object(To.a)({},"horizontal"===t.orientation&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},"vertical"===t.orientation&&{borderTopRightRadius:0,borderTopLeftRadius:0},"outlined"===t.variant&&"horizontal"===t.orientation&&{marginLeft:-1},"outlined"===t.variant&&"vertical"===t.orientation&&{marginTop:-1})})));var Ds=Eo.forwardRef((function(e,t){const n=Object(sr.a)({props:e,name:"MuiButtonGroup"}),{children:i,className:o,color:r="primary",component:a="div",disabled:s=!1,disableElevation:c=!1,disableFocusRipple:l=!1,disableRipple:u=!1,fullWidth:d=!1,orientation:m="horizontal",size:p="medium",variant:h="outlined"}=n,f=Object(Bo.a)(n,Es),g=Object(To.a)({},n,{color:r,component:a,disabled:s,disableElevation:c,disableFocusRipple:l,disableRipple:u,fullWidth:d,orientation:m,size:p,variant:h}),v=(e=>{const{classes:t,color:n,disabled:i,disableElevation:o,fullWidth:r,orientation:a,variant:s}=e,c={root:["root",s,"vertical"===a&&"vertical",r&&"fullWidth",o&&"disableElevation"],grouped:["grouped",`grouped${Object(cr.a)(a)}`,`grouped${Object(cr.a)(s)}`,`grouped${Object(cr.a)(s)}${Object(cr.a)(a)}`,`grouped${Object(cr.a)(s)}${Object(cr.a)(n)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Object(rr.a)(c,ws,t)})(g),b=Eo.useMemo((()=>({className:v.grouped,color:r,disabled:s,disableElevation:c,disableFocusRipple:l,disableRipple:u,fullWidth:d,size:p,variant:h})),[r,s,c,l,u,d,p,h,v.grouped]),y=function(e){return Eo.Children.toArray(e).filter((e=>Eo.isValidElement(e)))}(i),C=y.length,A=e=>{const t=0===e,n=e===C-1;return t&&n?"":t?v.firstButton:n?v.lastButton:v.middleButton};return Object(Lo.jsx)(Os,Object(To.a)({as:a,role:"group",className:Object(Ho.a)(v.root,o),ref:t,ownerState:g},f,{children:Object(Lo.jsx)(ba.Provider,{value:b,children:y.map(((e,t)=>Object(Lo.jsx)(ya.Provider,{value:A(t),children:e},t)))})}))})),Ts=n(113),Bs=n.n(Ts),ks=n(114),Is=n.n(ks),Ps=n(115),Ls=n.n(Ps);function Rs(e){return{textOverflow:"ellipsis",WebkitBoxOrient:"vertical",WebkitLineClamp:`${e}`,overflow:"hidden",whiteSpace:e>1?"normal":"nowrap",display:e>1?"-webkit-box":"block"}}function _s(e){if(e.loading)return Eo.default.createElement(Ss,{variant:"rounded",width:e.imageSize,height:e.imageSize,style:{borderRadius:8}});if(null===e.data.barcodeImage){const t={width:e.imageSize,height:e.imageSize,backgroundColor:"#E0E0E0",borderRadius:3};return Eo.default.createElement(ir,{sx:t})}const t={width:e.imageSize,height:e.imageSize,borderRadius:8};return Eo.default.createElement("img",{src:e.data.barcodeImage,alt:e.data.title,style:t})}function js(e){var t,n;const i=(null===(t=e.barcodeMappedData)||void 0===t?void 0:t.state)||"LOADING",o=(null===(n=e.barcodeMappedData)||void 0===n?void 0:n.value)||{title:"",subtitle:"",barcodeImage:""},r=!e||"LOADED"!==i,a=e.imageSize,s=e.barcodeTitle.visible||e.barcodeSubtitle.visible||e.counterForm,c=e.counterForm&&{"&:hover, &:focus, &:active, &":{borderColor:or.b.getColorValue(e.counterForm.manualCountOutlineColor),backgroundColor:"transparent"}};return Eo.default.createElement(ir,{sx:{display:"flex"},"data-sb-barcode-info":"1"},e.barcodeImageVisible&&Eo.default.createElement(ir,{sx:{pr:s?"16px":0,display:"flex",alignItems:"center",justifyContent:"center"}},Eo.default.createElement(_s,{data:o,imageSize:a,loading:r})),s&&Eo.default.createElement(ir,{sx:{flex:1,display:"flex",flexDirection:"column",verticalAlign:"middle",justifyContent:"center",m:0,p:0,minWidth:0}},e.barcodeTitle.visible&&Eo.default.createElement(ir,{display:r?"block":"flex",sx:{alignItems:"center"}},Eo.default.createElement(kr,{fontSize:16,fontWeight:"bold",sx:Object.assign(Object.assign({},Rs(e.maxNumberOfTitleLines)),Object(jr.b)(e.barcodeTitle))},r?Eo.default.createElement(Ss,{variant:"text"}):o.title),e.displayRightArrow&&!r&&Eo.default.createElement(Bs.a,{sx:{fontSize:16,fontWeight:"bold",color:or.b.getColorValue(e.barcodeTitle.color)}})),e.barcodeSubtitle.visible&&Eo.default.createElement(kr,{fontSize:14,fontWeight:400,sx:Object.assign(Object.assign({},Rs(e.maxNumberOfSubtitleLines)),Object(jr.b)(e.barcodeSubtitle))},r?Eo.default.createElement(Ss,{variant:"text"}):o.subtitle),e.counterForm&&Eo.default.createElement(Ds,{variant:"outlined"},Eo.default.createElement(Ea,{disabled:!e.counterForm.removeButtonEnabled,sx:c,style:{opacity:e.counterForm.removeButtonEnabled?1:.3},onClick:()=>e.counterForm.setCounter(e.counterForm.counter-1),disableRipple:!0},Eo.default.createElement(Is.a,{sx:{color:or.b.getColorValue(e.counterForm.manualCountChangeColor)}})),Eo.default.createElement(Ea,{sx:Object.assign(Object.assign({},c),{color:or.b.getColorValue(e.counterForm.manualCountChangeColor),fontWeight:"bold",fontSize:16}),onClick:e.counterForm.onNumberClick,disableRipple:!0},e.counterForm.counter),Eo.default.createElement(Ea,{disabled:!e.counterForm.addButtonEnabled,sx:c,style:{opacity:e.counterForm.addButtonEnabled?1:.3},onClick:()=>e.counterForm.setCounter(e.counterForm.counter+1),disableRipple:!0},Eo.default.createElement(Ls.a,{sx:{color:or.b.getColorValue(e.counterForm.manualCountChangeColor)}})))))}var Ms=n(35),Fs=n(65);function Ns(){const e=Object(Xo.a)(Fs.a);return e[Vo.a]||e}var Vs=Eo.createContext();function Ws(e){return Object(dr.a)("MuiGrid",e)}const zs=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];var Hs=Object(er.a)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...zs.map((e=>`grid-xs-${e}`)),...zs.map((e=>`grid-sm-${e}`)),...zs.map((e=>`grid-md-${e}`)),...zs.map((e=>`grid-lg-${e}`)),...zs.map((e=>`grid-xl-${e}`))]);const Us=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Zs(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function Gs({breakpoints:e,values:t}){let n="";Object.keys(t).forEach((e=>{""===n&&0!==t[e]&&(n=e)}));const i=Object.keys(e).sort(((t,n)=>e[t]-e[n]));return i.slice(0,i.indexOf(n))}const $s=Object(ar.a)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:i,direction:o,item:r,spacing:a,wrap:s,zeroMinWidth:c,breakpoints:l}=n;let u=[];i&&(u=function(e,t,n={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[n[`spacing-xs-${String(e)}`]];const i=[];return t.forEach((t=>{const o=e[t];Number(o)>0&&i.push(n[`spacing-${t}-${String(o)}`])})),i}(a,l,t));const d=[];return l.forEach((e=>{const i=n[e];i&&d.push(t[`grid-${e}-${String(i)}`])})),[t.root,i&&t.container,r&&t.item,c&&t.zeroMinWidth,...u,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==s&&t[`wrap-xs-${String(s)}`],...d]}})((({ownerState:e})=>Object(To.a)({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})),(function({theme:e,ownerState:t}){const n=Object(Ms.d)({values:t.direction,breakpoints:e.breakpoints.values});return Object(Ms.b)({theme:e},n,(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${Hs.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:i}=t;let o={};if(n&&0!==i){const t=Object(Ms.d)({values:i,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=Gs({breakpoints:e.breakpoints.values,values:t})),o=Object(Ms.b)({theme:e},t,((t,i)=>{var o;const r=e.spacing(t);return"0px"!==r?{marginTop:`-${Zs(r)}`,[`& > .${Hs.item}`]:{paddingTop:Zs(r)}}:null!=(o=n)&&o.includes(i)?{}:{marginTop:0,[`& > .${Hs.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:i}=t;let o={};if(n&&0!==i){const t=Object(Ms.d)({values:i,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=Gs({breakpoints:e.breakpoints.values,values:t})),o=Object(Ms.b)({theme:e},t,((t,i)=>{var o;const r=e.spacing(t);return"0px"!==r?{width:`calc(100% + ${Zs(r)})`,marginLeft:`-${Zs(r)}`,[`& > .${Hs.item}`]:{paddingLeft:Zs(r)}}:null!=(o=n)&&o.includes(i)?{}:{width:"100%",marginLeft:0,[`& > .${Hs.item}`]:{paddingLeft:0}}}))}return o}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce(((i,o)=>{let r={};if(t[o]&&(n=t[o]),!n)return i;if(!0===n)r={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)r={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=Object(Ms.d)({values:t.columns,breakpoints:e.breakpoints.values}),s="object"==typeof a?a[o]:a;if(null==s)return i;const c=Math.round(n/s*1e8)/1e6+"%";let l={};if(t.container&&t.item&&0!==t.columnSpacing){const n=e.spacing(t.columnSpacing);if("0px"!==n){const e=`calc(${c} + ${Zs(n)})`;l={flexBasis:e,maxWidth:e}}}r=Object(To.a)({flexBasis:c,flexGrow:0,maxWidth:c},l)}return 0===e.breakpoints.values[o]?Object.assign(i,r):i[e.breakpoints.up(o)]=r,i}),{})}));const Ys=e=>{const{classes:t,container:n,direction:i,item:o,spacing:r,wrap:a,zeroMinWidth:s,breakpoints:c}=e;let l=[];n&&(l=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];const n=[];return t.forEach((t=>{const i=e[t];if(Number(i)>0){const e=`spacing-${t}-${String(i)}`;n.push(e)}})),n}(r,c));const u=[];c.forEach((t=>{const n=e[t];n&&u.push(`grid-${t}-${String(n)}`)}));const d={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...l,"row"!==i&&`direction-xs-${String(i)}`,"wrap"!==a&&`wrap-xs-${String(a)}`,...u]};return Object(rr.a)(d,Ws,t)};var Qs=Eo.forwardRef((function(e,t){const n=Object(sr.a)({props:e,name:"MuiGrid"}),{breakpoints:i}=Ns(),o=Qo(n),{className:r,columns:a,columnSpacing:s,component:c="div",container:l=!1,direction:u="row",item:d=!1,rowSpacing:m,spacing:p=0,wrap:h="wrap",zeroMinWidth:f=!1}=o,g=Object(Bo.a)(o,Us),v=m||p,b=s||p,y=Eo.useContext(Vs),C=l?a||12:y,A={},S=Object(To.a)({},g);i.keys.forEach((e=>{null!=g[e]&&(A[e]=g[e],delete S[e])}));const w=Object(To.a)({},o,{columns:C,container:l,direction:u,item:d,rowSpacing:v,columnSpacing:b,wrap:h,zeroMinWidth:f,spacing:p},A,{breakpoints:i.keys}),x=Ys(w);return Object(Lo.jsx)(Vs.Provider,{value:C,children:Object(Lo.jsx)($s,Object(To.a)({ownerState:w,className:Object(Ho.a)(x.root,r),as:c,ref:t},S))})}));function Xs(e){return Object(dr.a)("MuiDivider",e)}var qs=Object(er.a)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Ks=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Js=Object(ar.a)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Object(To.a)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Object(lr.a)(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>Object(To.a)({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Object(To.a)({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Object(To.a)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Object(To.a)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),ec=Object(ar.a)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Object(To.a)({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),tc=Eo.forwardRef((function(e,t){const n=Object(sr.a)({props:e,name:"MuiDivider"}),{absolute:i=!1,children:o,className:r,component:a=(o?"div":"hr"),flexItem:s=!1,light:c=!1,orientation:l="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:m="fullWidth"}=n,p=Object(Bo.a)(n,Ks),h=Object(To.a)({},n,{absolute:i,component:a,flexItem:s,light:c,orientation:l,role:u,textAlign:d,variant:m}),f=(e=>{const{absolute:t,children:n,classes:i,flexItem:o,light:r,orientation:a,textAlign:s,variant:c}=e,l={root:["root",t&&"absolute",c,r&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]};return Object(rr.a)(l,Xs,i)})(h);return Object(Lo.jsx)(Js,Object(To.a)({as:a,className:Object(Ho.a)(f.root,r),role:u,ref:t,ownerState:h},p,{children:o?Object(Lo.jsx)(ec,{className:f.wrapper,ownerState:h,children:o}):null}))}));tc.muiSkipListHighlight=!0;var nc=tc;Do.ButtonConfiguration;function ic(e){var t;if(!e.visible)return null;const n={["data-sb-button-"+e.debugName]:!0};return Eo.default.createElement(Ea,Object.assign({disabled:null!==(t=e.disabled)&&void 0!==t&&t,onClick:e.onClick,type:e.type,"aria-label":e.ariaLabel,sx:Object.assign(Object.assign({},e.style),{"&:hover, &:focus, &:active, &":{borderStyle:"solid",borderColor:or.b.getColorValue(e.background.strokeColor),borderWidth:e.background.strokeWidth,backgroundColor:or.b.getColorValue(e.background.fillColor),textTransform:"none",outline:"none"}}),disableRipple:!0},n),e.foreground.iconVisible&&e.icon&&Eo.default.createElement(e.icon,{sx:{color:or.b.getColorValue(e.foreground.color),pr:2}}),Eo.default.createElement(jr.a,{config:{visible:!0,text:e.text,color:e.foreground.color,useShadow:e.foreground.useShadow}}))}var oc=n(192),rc=n(156);function ac(e){return"string"==typeof e}function sc(e,t,n){return void 0===e||ac(e)?t:Object(To.a)({},t,{ownerState:Object(To.a)({},t.ownerState,n)})}function cc(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function lc(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function uc(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:o,className:r}=e;if(!t){const e=Object(Ho.a)(null==n?void 0:n.className,r,null==o?void 0:o.className,null==i?void 0:i.className),t=Object(To.a)({},null==n?void 0:n.style,null==o?void 0:o.style,null==i?void 0:i.style),a=Object(To.a)({},n,o,i);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=cc(Object(To.a)({},o,i)),s=lc(i),c=lc(o),l=t(a),u=Object(Ho.a)(null==l?void 0:l.className,null==n?void 0:n.className,r,null==o?void 0:o.className,null==i?void 0:i.className),d=Object(To.a)({},null==l?void 0:l.style,null==n?void 0:n.style,null==o?void 0:o.style,null==i?void 0:i.style),m=Object(To.a)({},l,n,c,s);return u.length>0&&(m.className=u),Object.keys(d).length>0&&(m.style=d),{props:m,internalRef:l.ref}}function dc(e,t,n){return"function"==typeof e?e(t,n):e}const mc=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function pc(e){var t;const{elementType:n,externalSlotProps:i,ownerState:o,skipResolvingSlotProps:r=!1}=e,a=Object(Bo.a)(e,mc),s=r?{}:dc(i,o),{props:c,internalRef:l}=uc(Object(To.a)({},a,{externalSlotProps:s})),u=Object(rc.a)(l,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref);return sc(n,Object(To.a)({},c,{ref:u}),o)}var hc=n(138),fc=n(158),gc=n(191),vc=n(159);function bc(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function yc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Cc(e){return parseInt(Object(vc.a)(e).getComputedStyle(e).paddingRight,10)||0}function Ac(e,t,n,i,o){const r=[t,n,...i];[].forEach.call(e.children,(e=>{const t=-1===r.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&yc(e,o)}))}function Sc(e,t){let n=-1;return e.some(((e,i)=>!!t(e)&&(n=i,!0))),n}function wc(e,t){const n=[],i=e.container;if(!t.disableScrollLock){if(function(e){const t=Object(hc.a)(e);return t.body===e?Object(vc.a)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){const e=bc(Object(hc.a)(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${Cc(i)+e}px`;const t=Object(hc.a)(i).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Cc(t)+e}px`}))}let e;if(i.parentNode instanceof DocumentFragment)e=Object(hc.a)(i).body;else{const t=i.parentElement,n=Object(vc.a)(i);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:i}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const xc=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&yc(e.modalRef,!1);const i=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Ac(t,e.mount,e.modalRef,i,!0);const o=Sc(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:i}),n)}mount(e,t){const n=Sc(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[n];i.restore||(i.restore=wc(i,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const i=Sc(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&yc(e.modalRef,t),Ac(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&yc(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Ec(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:i=!1,manager:o=xc,closeAfterTransition:r=!1,onTransitionEnter:a,onTransitionExited:s,children:c,onClose:l,open:u,rootRef:d}=e,m=Eo.useRef({}),p=Eo.useRef(null),h=Eo.useRef(null),f=Object(rc.a)(h,d),[g,v]=Eo.useState(!u),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const C=()=>(m.current.modalRef=h.current,m.current.mount=p.current,m.current),A=()=>{o.mount(C(),{disableScrollLock:i}),h.current&&(h.current.scrollTop=0)},S=Object(fc.a)((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Object(hc.a)(p.current).body;o.add(C(),e),h.current&&A()})),w=Eo.useCallback((()=>o.isTopModal(C())),[o]),x=Object(fc.a)((e=>{p.current=e,e&&(u&&w()?A():h.current&&yc(h.current,y))})),E=Eo.useCallback((()=>{o.remove(C(),y)}),[y,o]);Eo.useEffect((()=>()=>{E()}),[E]),Eo.useEffect((()=>{u?S():b&&r||E()}),[u,E,b,r,S]);const O=e=>t=>{var i;null==(i=e.onKeyDown)||i.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),l&&l(t,"escapeKeyDown")))},D=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&l&&l(t,"backdropClick")};return{getRootProps:(t={})=>{const n=cc(e);delete n.onTransitionEnter,delete n.onTransitionExited;const i=Object(To.a)({},n,t);return Object(To.a)({role:"presentation"},i,{onKeyDown:O(i),ref:f})},getBackdropProps:(e={})=>{const t=e;return Object(To.a)({"aria-hidden":!0},t,{onClick:D(t),open:u})},getTransitionProps:()=>({onEnter:Object(gc.a)((()=>{v(!1),a&&a()}),null==c?void 0:c.props.onEnter),onExited:Object(gc.a)((()=>{v(!0),s&&s(),r&&E()}),null==c?void 0:c.props.onExited)}),rootRef:f,portalRef:x,isTopModal:w,exited:g,hasTransition:b}}const Oc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Dc(e){const t=[],n=[];return Array.from(e.querySelectorAll(Oc)).forEach(((e,i)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:i,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Tc(){return!0}function Bc(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:i=!1,disableRestoreFocus:o=!1,getTabbable:r=Dc,isEnabled:a=Tc,open:s}=e,c=Eo.useRef(!1),l=Eo.useRef(null),u=Eo.useRef(null),d=Eo.useRef(null),m=Eo.useRef(null),p=Eo.useRef(!1),h=Eo.useRef(null),f=Object(rc.a)(t.ref,h),g=Eo.useRef(null);Eo.useEffect((()=>{s&&h.current&&(p.current=!n)}),[n,s]),Eo.useEffect((()=>{if(!s||!h.current)return;const e=Object(hc.a)(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),p.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(c.current=!0,d.current.focus()),d.current=null)}}),[s]),Eo.useEffect((()=>{if(!s||!h.current)return;const e=Object(hc.a)(h.current),t=t=>{g.current=t,!i&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||c.current)return void(c.current=!1);if(t.contains(e.activeElement))return;if(i&&e.activeElement!==l.current&&e.activeElement!==u.current)return;if(e.activeElement!==m.current)m.current=null;else if(null!==m.current)return;if(!p.current)return;let n=[];if(e.activeElement!==l.current&&e.activeElement!==u.current||(n=r(h.current)),n.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=n[0],i=n[n.length-1];"string"!=typeof t&&"string"!=typeof i&&(e?i.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,i,o,a,s,r]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0};return Object(Lo.jsxs)(Eo.Fragment,{children:[Object(Lo.jsx)("div",{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":"sentinelStart"}),Eo.cloneElement(t,{ref:f,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0,m.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Object(Lo.jsx)("div",{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":"sentinelEnd"})]})}var kc=n(137),Ic=n(157);const Pc=Eo.forwardRef((function(e,t){const{children:n,container:i,disablePortal:o=!1}=e,[r,a]=Eo.useState(null),s=Object(rc.a)(Eo.isValidElement(n)?n.ref:null,t);if(Object(kc.a)((()=>{o||a(function(e){return"function"==typeof e?e():e}(i)||document.body)}),[i,o]),Object(kc.a)((()=>{if(r&&!o)return Object(Ic.a)(t,r),()=>{Object(Ic.a)(t,null)}}),[t,r,o]),o){if(Eo.isValidElement(n)){const e={ref:s};return Eo.cloneElement(n,e)}return Object(Lo.jsx)(Eo.Fragment,{children:n})}return Object(Lo.jsx)(Eo.Fragment,{children:r?Eo.createPortal(n,r):r})}));var Lc=!1,Rc="unmounted",_c="exited",jc="entering",Mc="entered",Fc="exiting",Nc=function(e){function t(t,n){var i;i=e.call(this,t,n)||this;var o,r=n&&!n.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?r?(o=_c,i.appearStatus=jc):o=Mc:o=t.unmountOnExit||t.mountOnEnter?Rc:_c,i.state={status:o},i.nextCallback=null,i}zr(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Rc?{status:_c}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==jc&&n!==Mc&&(t=jc):n!==jc&&n!==Mc||(t=Fc)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,i=this.props.timeout;return e=t=n=i,null!=i&&"number"!=typeof i&&(e=i.exit,t=i.enter,n=void 0!==i.appear?i.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===jc){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Eo.default.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===_c&&this.setState({status:Rc})},n.performEnter=function(e){var t=this,n=this.props.enter,i=this.context?this.context.isMounting:e,o=this.props.nodeRef?[i]:[Eo.default.findDOMNode(this),i],r=o[0],a=o[1],s=this.getTimeouts(),c=i?s.appear:s.enter;!e&&!n||Lc?this.safeSetState({status:Mc},(function(){t.props.onEntered(r)})):(this.props.onEnter(r,a),this.safeSetState({status:jc},(function(){t.props.onEntering(r,a),t.onTransitionEnd(c,(function(){t.safeSetState({status:Mc},(function(){t.props.onEntered(r,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),i=this.props.nodeRef?void 0:Eo.default.findDOMNode(this);t&&!Lc?(this.props.onExit(i),this.safeSetState({status:Fc},(function(){e.props.onExiting(i),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:_c},(function(){e.props.onExited(i)}))}))}))):this.safeSetState({status:_c},(function(){e.props.onExited(i)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(i){n&&(n=!1,t.nextCallback=null,e(i))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Eo.default.findDOMNode(this),i=null==e&&!this.props.addEndListener;if(n&&!i){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],r=o[0],a=o[1];this.props.addEndListener(r,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Rc)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(Bo.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return Eo.default.createElement(Hr.Provider,{value:null},"function"==typeof n?n(e,i):Eo.default.cloneElement(Eo.default.Children.only(n),i))},t}(Eo.default.Component);function Vc(){}Nc.contextType=Hr,Nc.propTypes={},Nc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vc,onEntering:Vc,onEntered:Vc,onExit:Vc,onExiting:Vc,onExited:Vc},Nc.UNMOUNTED=Rc,Nc.EXITED=_c,Nc.ENTERING=jc,Nc.ENTERED=Mc,Nc.EXITING=Fc;var Wc=Nc;const zc=e=>e.scrollTop;function Hc(e,t){var n,i;const{timeout:o,easing:r,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(i=a.transitionTimingFunction)?i:"object"==typeof r?r[t.mode]:r,delay:a.transitionDelay}}const Uc=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Zc={entering:{opacity:1},entered:{opacity:1}};var Gc=Eo.forwardRef((function(e,t){const n=Ns(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:r=!0,children:a,easing:s,in:c,onEnter:l,onEntered:u,onEntering:d,onExit:m,onExited:p,onExiting:h,style:f,timeout:g=i,TransitionComponent:v=Wc}=e,b=Object(Bo.a)(e,Uc),y=Eo.useRef(null),C=Object(Fr.a)(y,a.ref,t),A=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},S=A(d),w=A(((e,t)=>{zc(e);const i=Hc({style:f,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",i),e.style.transition=n.transitions.create("opacity",i),l&&l(e,t)})),x=A(u),E=A(h),O=A((e=>{const t=Hc({style:f,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),m&&m(e)})),D=A(p);return Object(Lo.jsx)(v,Object(To.a)({appear:r,in:c,nodeRef:y,onEnter:w,onEntered:x,onEntering:S,onExit:O,onExited:D,onExiting:E,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>Eo.cloneElement(a,Object(To.a)({style:Object(To.a)({opacity:0,visibility:"exited"!==e||c?void 0:"hidden"},Zc[e],f,a.props.style),ref:C},t))}))}));function $c(e){return Object(dr.a)("MuiBackdrop",e)}Object(er.a)("MuiBackdrop",["root","invisible"]);const Yc=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Qc=Object(ar.a)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Object(To.a)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})));var Xc=Eo.forwardRef((function(e,t){var n,i,o;const r=Object(sr.a)({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:c="div",components:l={},componentsProps:u={},invisible:d=!1,open:m,slotProps:p={},slots:h={},TransitionComponent:f=Gc,transitionDuration:g}=r,v=Object(Bo.a)(r,Yc),b=Object(To.a)({},r,{component:c,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e,i={root:["root",n&&"invisible"]};return Object(rr.a)(i,$c,t)})(b),C=null!=(n=p.root)?n:u.root;return Object(Lo.jsx)(f,Object(To.a)({in:m,timeout:g},v,{children:Object(Lo.jsx)(Qc,Object(To.a)({"aria-hidden":!0},C,{as:null!=(i=null!=(o=h.root)?o:l.Root)?i:c,className:Object(Ho.a)(y.root,s,null==C?void 0:C.className),ownerState:Object(To.a)({},b,null==C?void 0:C.ownerState),classes:y,ref:t,children:a}))}))}));function qc(e){return Object(dr.a)("MuiModal",e)}Object(er.a)("MuiModal",["root","hidden","backdrop"]);const Kc=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Jc=Object(ar.a)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Object(To.a)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),el=Object(ar.a)(Xc,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1});var tl=Eo.forwardRef((function(e,t){var n,i,o,r,a,s;const c=Object(sr.a)({name:"MuiModal",props:e}),{BackdropComponent:l=el,BackdropProps:u,className:d,closeAfterTransition:m=!1,children:p,container:h,component:f,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:C=!1,disablePortal:A=!1,disableRestoreFocus:S=!1,disableScrollLock:w=!1,hideBackdrop:x=!1,keepMounted:E=!1,onBackdropClick:O,open:D,slotProps:T,slots:B}=c,k=Object(Bo.a)(c,Kc),I=Object(To.a)({},c,{closeAfterTransition:m,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:C,disablePortal:A,disableRestoreFocus:S,disableScrollLock:w,hideBackdrop:x,keepMounted:E}),{getRootProps:P,getBackdropProps:L,getTransitionProps:R,portalRef:_,isTopModal:j,exited:M,hasTransition:F}=Ec(Object(To.a)({},I,{rootRef:t})),N=Object(To.a)({},I,{exited:M}),V=(e=>{const{open:t,exited:n,classes:i}=e,o={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return Object(rr.a)(o,qc,i)})(N),W={};if(void 0===p.props.tabIndex&&(W.tabIndex="-1"),F){const{onEnter:e,onExited:t}=R();W.onEnter=e,W.onExited=t}const z=null!=(n=null!=(i=null==B?void 0:B.root)?i:g.Root)?n:Jc,H=null!=(o=null!=(r=null==B?void 0:B.backdrop)?r:g.Backdrop)?o:l,U=null!=(a=null==T?void 0:T.root)?a:v.root,Z=null!=(s=null==T?void 0:T.backdrop)?s:v.backdrop,G=pc({elementType:z,externalSlotProps:U,externalForwardedProps:k,getSlotProps:P,additionalProps:{ref:t,as:f},ownerState:N,className:Object(Ho.a)(d,null==U?void 0:U.className,null==V?void 0:V.root,!N.open&&N.exited&&(null==V?void 0:V.hidden))}),$=pc({elementType:H,externalSlotProps:Z,additionalProps:u,getSlotProps:e=>L(Object(To.a)({},e,{onClick:t=>{O&&O(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Object(Ho.a)(null==Z?void 0:Z.className,null==u?void 0:u.className,null==V?void 0:V.backdrop),ownerState:N});return E||D||F&&!M?Object(Lo.jsx)(Pc,{ref:_,container:h,disablePortal:A,children:Object(Lo.jsxs)(z,Object(To.a)({},G,{children:[!x&&l?Object(Lo.jsx)(H,Object(To.a)({},$)):null,Object(Lo.jsx)(Bc,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:S,isEnabled:j,open:D,children:Eo.cloneElement(p,W)})]}))}):null}));function nl(e){return Object(dr.a)("MuiDialog",e)}var il=Object(er.a)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var ol=Eo.createContext({});const rl=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],al=Object(ar.a)(Xc,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),sl=Object(ar.a)(tl,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),cl=Object(ar.a)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Object(cr.a)(n.scroll)}`]]}})((({ownerState:e})=>Object(To.a)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}))),ll=Object(ar.a)(fr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Object(cr.a)(n.scroll)}`],t[`paperWidth${Object(cr.a)(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((({theme:e,ownerState:t})=>Object(To.a)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===t.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===t.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===t.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${il.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&"xs"!==t.maxWidth&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${il.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${il.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})));var ul=Eo.forwardRef((function(e,t){const n=Object(sr.a)({props:e,name:"MuiDialog"}),i=Ns(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":r,"aria-labelledby":a,BackdropComponent:s,BackdropProps:c,children:l,className:u,disableEscapeKeyDown:d=!1,fullScreen:m=!1,fullWidth:p=!1,maxWidth:h="sm",onBackdropClick:f,onClose:g,open:v,PaperComponent:b=fr,PaperProps:y={},scroll:C="paper",TransitionComponent:A=Gc,transitionDuration:S=o,TransitionProps:w}=n,x=Object(Bo.a)(n,rl),E=Object(To.a)({},n,{disableEscapeKeyDown:d,fullScreen:m,fullWidth:p,maxWidth:h,scroll:C}),O=(e=>{const{classes:t,scroll:n,maxWidth:i,fullWidth:o,fullScreen:r}=e,a={root:["root"],container:["container",`scroll${Object(cr.a)(n)}`],paper:["paper",`paperScroll${Object(cr.a)(n)}`,`paperWidth${Object(cr.a)(String(i))}`,o&&"paperFullWidth",r&&"paperFullScreen"]};return Object(rr.a)(a,nl,t)})(E),D=Eo.useRef(),T=Object(oc.a)(a),B=Eo.useMemo((()=>({titleId:T})),[T]);return Object(Lo.jsx)(sl,Object(To.a)({className:Object(Ho.a)(O.root,u),closeAfterTransition:!0,components:{Backdrop:al},componentsProps:{backdrop:Object(To.a)({transitionDuration:S,as:s},c)},disableEscapeKeyDown:d,onClose:g,open:v,ref:t,onClick:e=>{D.current&&(D.current=null,f&&f(e),g&&g(e,"backdropClick"))},ownerState:E},x,{children:Object(Lo.jsx)(A,Object(To.a)({appear:!0,in:v,timeout:S,role:"presentation"},w,{children:Object(Lo.jsx)(cl,{className:Object(Ho.a)(O.container),onMouseDown:e=>{D.current=e.target===e.currentTarget},ownerState:E,children:Object(Lo.jsx)(ll,Object(To.a)({as:b,elevation:24,role:"dialog","aria-describedby":r,"aria-labelledby":T},y,{className:Object(Ho.a)(O.paper,y.className),ownerState:E,children:Object(Lo.jsx)(ol.Provider,{value:B,children:l})}))})}))}))})),dl=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n};function ml(e){var t,{modalOverlayColor:n}=e,i=dl(e,["modalOverlayColor"]);const o={backdrop:{style:{backgroundColor:or.b.getColorValue(n)}}},r=Object.assign(Object.assign({},i.PaperProps),{sx:Object.assign(Object.assign({},null===(t=i.PaperProps)||void 0===t?void 0:t.sx),i.width?{width:i.width}:{maxWidth:400})});return Eo.default.createElement(ul,Object.assign({},i,{componentsProps:o,PaperProps:r}))}function pl(e){const t=Object(Eo.useContext)(or.a).getColorValue,n=!e.barcodeMappedData||"LOADED"!==e.barcodeMappedData.state,i={backgroundColor:t(n?e.sheetColorLoading:e.sheetColorLoaded)},[o,r]=Eo.default.useState(),a=Object(Eo.useRef)((()=>{}));Object(Eo.useEffect)((()=>{e.open&&r(!1)}),[e.open]);const s=()=>{a.current=e.handleCancel,r(!0)};return Eo.default.createElement(ml,{modalOverlayColor:e.modalOverlayColor,open:e.open&&!o,fullWidth:!0,TransitionProps:{onExited:()=>{o&&a.current()}},onClose:()=>{n||s()}},Eo.default.createElement(Za,{style:i},Eo.default.createElement(js,Object.assign({},e,{maxNumberOfTitleLines:2,maxNumberOfSubtitleLines:1,imageSize:68}))),Eo.default.createElement(Qa,{style:i},Eo.default.createElement(Qs,{container:!0,spacing:2,sx:{overflow:"hidden"}},Eo.default.createElement(Qs,{item:!0,xs:12},Eo.default.createElement(nc,{color:t(e.dividerColor)})),n?Eo.default.createElement(Qs,{item:!0,xs:12,sx:{textAlign:"center"}},Eo.default.createElement(ir,null,Eo.default.createElement(ls,{sx:{color:t(e.loadingMessage.color),verticalAlign:"middle",mr:2}}),Eo.default.createElement(jr.a,{config:e.loadingMessage}))):Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(Qs,{item:!0,xs:6},Eo.default.createElement(ic,Object.assign({style:{width:"100%"},onClick:s},e.cancelButton))),Eo.default.createElement(Qs,{item:!0,xs:6},Eo.default.createElement(ic,Object.assign({style:{width:"100%"},onClick:()=>{a.current=e.handleSubmit,r(!0)}},e.submitButton)))))))}var hl=n(2);hl.h;function fl(e){if(!1===e.visible)return null;const t={backgroundColor:e.active?or.b.getColorValue(e.activeBackgroundColor):or.b.getColorValue(e.backgroundColor),color:e.active?or.b.getColorValue(e.activeForegroundColor):or.b.getColorValue(e.foregroundColor)};return Eo.default.createElement(Pa,{sx:Object.assign(Object.assign({},t),{"&:hover, &:focus":Object.assign({outline:"none"},t),width:48,height:48}),onClick:e.onClick},e.text&&Eo.default.createElement("span",{style:{fontSize:15}},or.b.getLocalizedText(e.text)),e.icon&&Eo.default.createElement(e.icon,{style:{padding:7}}))}var gl=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class vl{constructor(){this.audioFile=new Audio}initialize(e){return gl(this,void 0,void 0,(function*(){e.successBeepEnabled&&(this.audioFile.src="data:audio/mp4;base64,AAAAHGZ0eXBNNEEgAAACAE00QSBpc29taXNvMgAAAAhmcmVlAAASCG1kYXQBQCKAo3/4hS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS7/8QpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpd+aIUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLwBQCKAo3/4hS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS7/8QpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpd+aIUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLwA6jQEQfEIQGIQaqctMIv9EpiYforpaDbT80WfPFRSswKfd8cy6kN/+IUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0u//EKWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaXfViFLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLwA6jQQpRY6EYNCcKDAqAAEUgC2wFy0kF7JTgecsqIp6pxd/lHO7kUuSCLFK6n2mPOKfj5aKhQPOaRtBEKFS85eIYbr71AGaAPJTSIHeIhXTcpA5i155UICz3nXk0Cz0A8QhxIhoqQIJ2Be9MIEiJ6GpuMa1fPXcJmIoxDUKpZuJozBa6iFmjy7O/genSlwPKL6xaiiL8Y1XtgBDY7ke/CAOoawOqmZm6suSVQPbxzaxZJpWFcWva4RqTil72HqDpc2N4eG3KA0JkU8G58RNabxVq9gSLwysPKIzL1fZVF1FQwllEs4YUKpPtoMw2VtepdbZHqGriAsZ5Lu154uiewW41szI4RHfpWOWSH7s1LAzlv/xClpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWl36AhS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0vAA6jQEYVEIDEQDEKCAYhAIXMdbaI5q82OvhmYS1FO11cD3Yt4EwZI+aTsqoctJJaN0FKvNqorQmK3SUWpNOtf+uKNIxX3xeTEq8LKb/8QpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpd/+IUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0u+GEKWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpeABMDQD6WqsfRABwAUSib4c3/4hS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS7/8QpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpd+EIUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS8AAAO4bW9vdgAAAGxtdmhkAAAAAAAAAAAAAAAAAAAD6AAAAfgAAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAiJ0cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAABAAAAAAAAAfgAAAAAAAAAAAAAAAEBAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAH4AAAIAAABAAAAAAGabWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAAAfQAAAF8BVxAAAAAAALWhkbHIAAAAAAAAAAHNvdW4AAAAAAAAAAAAAAABTb3VuZEhhbmRsZXIAAAABRW1pbmYAAAAQc21oZAAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAABCXN0YmwAAABnc3RzZAAAAAAAAAABAAAAV21wNGEAAAAAAAAAAQAAAAAAAAAAAAEAEAAAAAAfQAAAAAAAM2VzZHMAAAAAA4CAgCIAAQAEgICAFEAVAAAAAAH0AAAAvXkFgICAAhWIBoCAgAECAAAAIHN0dHMAAAAAAAAAAgAAAAUAAAQAAAAAAQAAA8AAAAAcc3RzYwAAAAAAAAABAAAAAQAAAAYAAAABAAAAFHN0c3oAAAAAAAADAAAAAAYAAAAUc3RjbwAAAAAAAAABAAAALAAAABpzZ3BkAQAAAHJvbGwAAAACAAAAAf//AAAAHHNiZ3AAAAAAcm9sbAAAAAEAAAAGAAAAAQAAASJ1ZHRhAAABGm1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAG1kaXJhcHBsAAAAAAAAAAAAAAAA7Wlsc3QAAAAzqW5hbQAAACtkYXRhAAAAAQAAAAAyNTAgTWlsbGlzZWNvbmRzIG9mIFNpbGVuY2UAAAApqUFSVAAAACFkYXRhAAAAAQAAAABBbmFyIFNvZnR3YXJlIExMQwAAAClhQVJUAAAAIWRhdGEAAAABAAAAAEFuYXIgU29mdHdhcmUgTExDAAAAI6lhbGIAAAAbZGF0YQAAAAEAAAAAQmxhbmsgQXVkaW8AAAAkqXRvbwAAABxkYXRhAAAAAQAAAABMYXZmNjAuMy4xMDAAAAAZY3BpbAAAABFkYXRhAAAAFQAAAAAA",yield this.play(),"MODERN_BEEP"===e.soundType&&(this.audioFile.src="data:audio/mp4;base64,AAAAHGZ0eXBNNEEgAAACAE00QSBpc29taXNvMgAAAAhmcmVlAAAEcm1kYXQBQCKAo30ghS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLwDmVAjh8QBrRiUH/88pKh3gJPmPt9t8oIUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLwDsl6UY83aVqFeq3aVmmYyFp70/kJT+A9hdePd7Z7aRSFKZBhCUP6E1rS/9+DhfmhvTknCnQzE+QHVPD6rhSIRpGIAFmBioF1XkxwAQjxKkQMc+qECgXnCAU1IcgpFDnWo02EdihsnrUx/1bJAUo+x6//p8VmoS0iuleHvPnKj9mjjHOoaDGI/s2DHcYI66Grp+5pezZuKJExJOzoyJRdmv6ltO6ibTdTDZ1YqLauKTebYOtpTWnh3/K3kBQmN3NsieqxzHeZKNiFphWuYSWMhaHIZRnRt6O/WzTXYFGrG0wBT54NCQ3wtSpqr5dHbQN2yY0jcckhLUieNtOSjS3u1NuMqWbOx1zHwlHfJKgI349OU9iZEzeN3rCVbBVdrdcAEW9Cm2Ji2FjQNkiFBViV6ofFsNVeVqpKgpsf3/iWtBG6cpMqFHjy2QhyBEnPtwTbWbm9b1u7frF3bnaVykqieEvTKfqnCYL2u4g1CLiQ4Zb8hkkTL9tnGmdMOeqIkUcHZ0zsspzvHOUXJTlssZTRjqcIsp514HJO9YhVRXALKaCRKQkbMEty3CstONNYzuhq57bbccc+/Pq22226ueWXLLbTTw4bFIoQoGWepZBRJWQFh4yui2+evKOqLp+rLKJ4LKcAtQ7XA0aLCyMRVDDOmuoYcnFEmIrpzmRQNQIJ5HWvOesgzjrK071chBhESdztJ0sMqhdAAyjegdEYPNyA4BCDQtLGRRKQQBQIhXYqGZ65Pu1S7XMxxVXEOWtJGMAARETyDKiMN4tsmFfcvmo+sHuHZrY196169rbT/sHFGNK1cnJrBK2vDu7b0AsBd9VaKrsNHL/KxFHm3Yma/+S365yvTF+abktGk7JSrS++mXLBw76AiuijMPpwzPoP4jNzZjI+R/p7zboMSKiFvZkMx8CDIPGB+K2Ee7XaOqAu8z6cWgazCp76DdzIwsmGw2TiczmQMAafEX0U6lQOAA6jQJAfCsBrSxVH+Hw8fPKIpB7JuhzAB/BwAAAw9tb292AAAAbG12aGQAAAAAAAAAAAAAAAAAAAPoAAAATwABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAACOnRyYWsAAABcdGtoZAAAAAMAAAAAAAAAAAAAAAEAAAAAAAAATwAAAAAAAAAAAAAAAQEAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAACRlZHRzAAAAHGVsc3QAAAAAAAAAAQAAAE4AAAgAAAEAAAAAAbJtZGlhAAAAIG1kaGQAAAAAAAAAAAAAAAAAAKxEAAAVgFXEAAAAAAAtaGRscgAAAAAAAAAAc291bgAAAAAAAAAAAAAAAFNvdW5kSGFuZGxlcgAAAAFdbWluZgAAABBzbWhkAAAAAAAAAAAAAAAkZGluZgAAABxkcmVmAAAAAAAAAAEAAAAMdXJsIAAAAAEAAAEhc3RibAAAAGdzdHNkAAAAAAAAAAEAAABXbXA0YQAAAAAAAAABAAAAAAAAAAAAAQAQAAAAAKxEAAAAAAAzZXNkcwAAAAADgICAIgABAASAgIAUQBUAAAAAARrvAAEa7wWAgIACEggGgICAAQIAAAAgc3R0cwAAAAAAAAACAAAABQAABAAAAAABAAABgAAAABxzdHNjAAAAAAAAAAEAAAABAAAABgAAAAEAAAAsc3RzegAAAAAAAAAAAAAABgAAALkAAAC6AAABIAAAAQAAAAC9AAAAGgAAABRzdGNvAAAAAAAAAAEAAAAsAAAAGnNncGQBAAAAcm9sbAAAAAIAAAAB//8AAAAcc2JncAAAAAByb2xsAAAAAQAAAAYAAAABAAAAYXVkdGEAAABZbWV0YQAAAAAAAAAhaGRscgAAAAAAAAAAbWRpcmFwcGwAAAAAAAAAAAAAAAAsaWxzdAAAACSpdG9vAAAAHGRhdGEAAAABAAAAAExhdmY2MC4zLjEwMA=="),"CLASSIC_BEEP"===e.soundType&&(this.audioFile.src="data:audio/mp4;base64,AAAAHGZ0eXBNNEEgAAAAAE00QSBtcDQyaXNvbQAAAAFtZGF0AAAAAAAACHchIANAaBv6AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOCFO4v////////gyh+L1JkJB36Cv0yBUdzB8/8/b8vveozPf+/6eH18deTh9kOp11urWAB5ZsMnhMwSjUCF2MQub4hybjxDhHACGof0XiT9tAHVOwt4NPtPOMFr/ndlTpTNXy79GYIfXP7VkPs99ySHNOFkpNrBS1pClU3rRGHp6Dy9FBIlk4KbBNBLGMJRcWQxuVsVJCSMnGw1FuIUrBN2UJLoEMhurMxpIiyGAweBvyfNJy4FbxqDm3WDjCtzP+3yVmOjxhIBDANLYyeG05LNyCZONEOk/c4hCj3Y2XQkgTI7y/39g0a+MuEoAdbRz4gSgRJnjEGB0TnOB0LtiL0XB9kwz2SwCBB0MvIByUSWTPTsRdCA4PvEmwnNdTnJT5/kPGk4swkTgOOuWJBI0EkxFs5mmNIR6wSFql36Hn03/Lf/uHp+6aTmBY0HJ6P6X1atw/Y8vK72LCWpsq0beo5KkrrrMe1eabaDyfZRPYfgPwH4Dv4CHU663VrAA8wchbBRlqQNnYNlYNhYNigNhoTBsTCcTCgLBEQCX+XfNd+3y+piKntTerXdXpDWRpLzsKmJ4iRM4ig+I6R65pDawx8Ry4cxfeifbsbzK/TxNhafR9y2zFVicy8nCVkU6CkmLckGtqbuYvhruBP0TriLNTU1TNhW6tUCdUSyneDUWAox5RTMlF2W1san5MQRlj7Btm2bZhoqoUUAJlpaat54WVuTyOxqwzNVhPenFR9KBpuA3qrUrT+3ShOUdXAkGXmCrMBxH3XmROdVSkS8cccRMOKTN+7OOEIQrMYIcna5hipAqPHk6VSgy0gGXljIk7GR/O606SyhhgglQIZLyxxOa/ZANmzZkyZMlRoqIt/T6xZHaFLcZ6n8jSgTVoOGsK5MvOlIBBkR+AtM5hvkTG2UzEhEAcsA7bZfCZmmZmZjQnqfn/yRwXzQtlZljFYd93mGppQSDDV/oz8HKkKjElN9Pu/inFmh3IHFyXlrJ/dodwM2EUkLZff1jWCO84wYUa3JB52yTMCETuUgA0BWB+I4hDBR1xoligVhgVhgNhYdBcLCcakAb1XLO/eZ9cUtvv6cNzrRYdMWgFvJySSSSscWFxCQElKcwc2dFkyos8dHfXPYFSt0klO2wUeIUxNKf5LiWYGm57bV0dipv7Qpw9uRRu23CuNIbT7++AuwEnyFWIQP0OpdUhc7u2k2fKW3mTZZxCSb+gVCjOzNf7LzxdBpbZxYwuNkcRlqAMdRMhq+tXmbLkMGGph20w4JvwvBm+x4Wtomh4lz0GGBVGQ96+JUXhvqQQAQPRTHtn+e7SwaCKMXnEEWXevaFVrPVEX7wxIBbbcpAHXj2DQz/vO9M0FHzyQFtegQjjn+fM99jgBE2fLJs/PLcErzrmCGJdVHZ19uxTErdmR6viG6cetew2MYQFm5AIDdPmjeXifvbFcjkYQWUsqKoBQJAKMp50hLtJRCKLCTSw2f7e0wzzhr6eGhjlyOQ8blgBiR0fxcjQYM5rBBM/wzuDe972u2f/mN7u8zVqGu7QADPHgAK4PxW8nJJJJLgISwUZaaRYmFRWRBEIwQKfmepncccZoqHnVy0WnFag51Yt48agPiK7D59zNlI+6YR9SHvnKoiJCcRzsskEGDgIrLQoLEgDguNTzeNvuxVpc8wntXmUlTQMa9WLn/geS8F7ku6Vt+I9yiumFP6I5hbEGeXac1BCB3YA3gNA0rLFPwrWq//VvtF6JGKIOVA12lCnpZl8NJojK1yqVsVKp+ZqbDpq0S1duspmvSvCbwmftOnwnfuNqBCnzZfzZF9fkqxTCqlq8GmR3bGK+1uvEcF55cGGx8BNANhkk1438/rWbXeTtPGfukvhUxZBp0M5447+2SFiQW674ySiGSRHgyqcqU0x39tbz3afnWt5BKNHDYj1lzq6sg8dcJlJnSQDUEba4npgEoAqVUkksoqM0UUO3VXDo3Mablwd2GLAoXjgK071swbuWhQJ2AjGYsBx5dtOMYCyPVh+K3jxqA+IuAhTrc+3KVqmDuVmIO5TZmQbDr4vUV+0338fXQ3665PiYnII1REb2klWhUcwjqi/pMe4yYZaDbo9T1ougUKE5h1jUim2NZxM71zBZVa/tWam6wXlmFVVHGuvL76pT3PUGufbO9YwevQzCvXhsabRuJyJjz8A1Haftmewy4gZ0FWlMIO5BoXB49j0TeIiikaxP9ZHcD9oI6x2H4DajNt5WgRXj6/H72V+gj2bgMDVkIZ36j1Tl+wdO6fvFsz56a5V6t9lS+gyWSOvuQP9bqtYgqWlsthXSFkrTfNqni6jSQ5vN9Fp1iYJODbUg8Sg0lYLbNEM7oqvrggxzq13IfO9hGQ0MQVpMIAR0aSGMFWOZzpJmXG1IcjppdZkINTYN2UvrHmGUrVBHvRuueFPuy2GzQoSnMCvkT3WvaR/LoVYw7Voy47wdJee2Va623AFXWNINOpByyoc9SQU4vPQ6X0PMBLQs6GdMlx+RlC3VoMDOryeFFolCTD8B+A/A4AAANKbW9vdgAAAGxtdmhkAAAAANcxfvfXMX73AACsRAAADbEAAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAdx0cmFrAAAAXHRraGQAAAAB1zF+99cxfvcAAAABAAAAAAAADbEAAAAAAAAAAAAAAAABAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAF4bWRpYQAAACBtZGhkAAAAANcxfvfXMX73AACsRAAAGABVxAAAAAAAMWhkbHIAAAAAAAAAAHNvdW4AAAAAAAAAAAAAAABDb3JlIE1lZGlhIEF1ZGlvAAAAAR9taW5mAAAAEHNtaGQAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAAONzdGJsAAAAZ3N0c2QAAAAAAAAAAQAAAFdtcDRhAAAAAAAAAAEAAAAAAAAAAAACABAAAAAArEQAAAAAADNlc2RzAAAAAAOAgIAiAAAABICAgBRAFQAYAAAB9AAAAfQABYCAgAISEAaAgIABAgAAABhzdHRzAAAAAAAAAAEAAAAGAAAEAAAAABxzdHNjAAAAAAAAAAEAAAABAAAABgAAAAEAAAAsc3RzegAAAAAAAAAAAAAABgAAAP4AAAF+AAABjwAAAYQAAAFeAAABegAAABRzdGNvAAAAAAAAAAEAAAAsAAAA+nVkdGEAAADybWV0YQAAAAAAAAAiaGRscgAAAAAAAAAAbWRpcgAAAAAAAAAAAAAAAAAAAAAAxGlsc3QAAAC8LS0tLQAAABxtZWFuAAAAAGNvbS5hcHBsZS5pVHVuZXMAAAAUbmFtZQAAAABpVHVuU01QQgAAAIRkYXRhAAAAAQAAAAAgMDAwMDAwMDAgMDAwMDA4NDAgMDAwMDAyMEYgMDAwMDAwMDAwMDAwMERCMSAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMA=="))}))}beep(e){e.successBeepEnabled&&this.play()}play(){return gl(this,void 0,void 0,(function*(){try{yield this.audioFile.play()}catch(e){}}))}}vl.INSTANCE=new vl;var bl=vl;class yl{constructor(){this.DURATION=200}vibrate(e){e.enabled&&navigator.vibrate&&navigator.vibrate(this.DURATION)}}yl.INSTANCE=new yl;var Cl=yl,Al=n(29),Sl=n(50),wl=n(49);class xl extends Eo.default.Component{constructor(e){super(e),this.state={base64Image:void 0}}render(){const e="x"+this.props.barcode.count;return Eo.default.createElement("div",{style:{display:"flex",flexDirection:"row",backgroundColor:"white",paddingBottom:5,paddingTop:5,borderBottom:"0.5px solid gray"}},Eo.default.createElement("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",width:"100%"}},Eo.default.createElement("div",{style:{display:"flex",fontSize:15,fontWeight:400,width:"100%"}},Eo.default.createElement("div",{style:{flex:1}},this.props.barcode.text),Eo.default.createElement("div",{style:{flex:1,justifyContent:"end",display:"flex"}},e)),Eo.default.createElement("div",{style:{color:"gray",fontSize:13,fontWeight:300}},this.props.barcode.format)))}}function El(e,t){return e.format===t.format&&e.text===t.text}function Ol(e){return e.text+e.format}class Dl extends Eo.default.Component{constructor(e){super(e),this.state={barcodes:this.toUniqueListWithDuplicateCounter(e.barcodes)}}toUniqueListWithDuplicateCounter(e){const t=[];return e.forEach((e=>{const n=t.findIndex((t=>El(t,e)));-1===n?(e.count=1,t.push(e)):t[n].count++})),t}update(e){this.setState({barcodes:this.toUniqueListWithDuplicateCounter(e)})}render(){return Eo.default.createElement("div",{style:{display:"flex",flexDirection:"column",backgroundColor:"white",padding:15}},this.state.barcodes.map(((e,t)=>Eo.default.createElement(xl,{key:t,barcode:e,onClick:this.props.onClick}))))}}class Tl{}Tl.ScanbotPrimary="#c8193c",Tl.LightGray="#F5F5F5",Tl.Gray="#808080",Tl.DarkGray="#333333",Tl.Orange="#FF5533",Tl.White="#FFFFFF",Tl.TransparentGreen="rgba(0, 255, 0, 0.5)",Tl.TransparentGray="rgba(50, 50, 50, 0.5)",Tl.TransparentBlack="rgba(0, 0, 0, 0.3)",Tl.SBNegative="#FF3737";var Bl,kl=Tl;!function(e){e[e.None=0]="None",e[e.PushRight=1]="PushRight",e[e.PushBottom=2]="PushBottom",e[e.Pop=3]="Pop"}(Bl||(Bl={}));class Il extends Eo.default.Component{constructor(e){super(e),this._isVisible=!1,this.state={animation:{type:Bl.None},elements:[]}}containerStyle(e){return{height:"100%",width:"100%",position:"absolute",top:"0",left:"0",zIndex:101,transform:e,overflow:"scroll"}}render(){var e,t,n;if(this.state.animation.type===Bl.None)return null;const i=this.animation(this.state.animation.type),o=this.to(this.state.animation.type);this.previousDestination=o;const r=this.props.style;return Eo.default.createElement(i,{style:this.containerStyle(`${o}`),onAnimationStart:this.onAnimationStart.bind(this),onAnimationEnd:this.onAnimationEnd.bind(this),onClick:e=>{this.reset()}},Eo.default.createElement("div",{style:{backgroundColor:"white",height:r.sheetHeight,width:"100%",marginTop:r.sheetTopMargin,borderTopLeftRadius:20,borderTopRightRadius:20},onClick:e=>{e.stopPropagation()}},Eo.default.createElement("div",{style:{borderTopLeftRadius:20,borderTopRightRadius:20,backgroundColor:kl.ScanbotPrimary}},Eo.default.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"end",height:10}},Eo.default.createElement("div",{style:{backgroundColor:kl.White,height:3,width:33,borderRadius:5}})),Eo.default.createElement("div",{style:{display:"flex",height:50}},Eo.default.createElement("div",{style:{display:"flex",fontSize:12,flex:1,color:kl.White,alignItems:"center",justifyContent:"left",paddingLeft:10,fontWeight:300},onClick:this.props.onDeleteClick},"CLEAR ALL"),Eo.default.createElement("div",{style:{display:"flex",fontSize:15,flex:1,color:kl.White,justifyContent:"center",alignItems:"center",fontWeight:500}},(null!==(t=null===(e=this.barcodes)||void 0===e?void 0:e.length)&&void 0!==t?t:0)+" Codes"),Eo.default.createElement("div",{style:{display:"flex",fontSize:13,flex:1,color:kl.White,justifyContent:"right",alignItems:"center",paddingRight:10}},Eo.default.createElement("div",{style:{fontSize:30,fontWeight:100},onClick:e=>{e.stopPropagation(),this.reset()}},"×")))),Eo.default.createElement(Dl,{ref:e=>{null!==e&&(this.list=e)},barcodes:null!==(n=this.barcodes)&&void 0!==n?n:[]})))}reset(){this.pop()}isVisible(){return this._isVisible}push(e,t){this._isVisible=!0,this.barcodes=t,this.updateAnimationType(e)}update(e){this.barcodes=e,this.forceUpdate()}pop(){this._isVisible=!1,this.updateAnimationType(Bl.Pop)}onAnimationStart(){}onAnimationEnd(){this.state.animation.type===Bl.Pop&&this.updateAnimationType(Bl.None)}updateAnimationType(e,t){this.setState({animation:{type:e}},t)}animation(e){let t=this.from(e),n=this.to(e);this.previousDestination===n&&(t=this.previousDestination,n=this.previousDestination);const i=_o.d`from {transform: ${t};} to {transform: ${n};}`;return _o.c.div`animation: ${i} 0.5s;`}from(e){if(e===Bl.PushRight)return this.translate("X",100);if(e===Bl.PushBottom)return this.translate("Y",100);if(e===Bl.Pop){const e=this.pushType===Bl.PushRight?"X":"Y";return this.translate(e,0)}}to(e){if(e===Bl.PushRight)return this.translate("X",0);if(e===Bl.PushBottom)return this.translate("Y",0);if(e===Bl.Pop){const e=this.pushType===Bl.PushRight?"X":"Y";return this.translate(e,100)}}translate(e,t){return"translate"+e+"("+t+"%)"}componentWillUnmount(){this._isVisible=!1}}var Pl=n(4),Ll=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},Rl={measureLayout:Ll(["layout","layoutId","drag","_layoutResetTransform"]),animation:Ll(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag"]),exit:Ll(["exit"]),drag:Ll(["drag","dragControls"]),focus:Ll(["whileFocus"]),hover:Ll(["whileHover","onHoverStart","onHoverEnd"]),tap:Ll(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Ll(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),layoutAnimation:Ll(["layout","layoutId"])};var _l=Object(Eo.createContext)({strict:!1}),jl=Object.keys(Rl),Ml=jl.length;var Fl=Object(Eo.createContext)({transformPagePoint:function(e){return e},isStatic:!1}),Nl=Object(Eo.createContext)({});var Vl=Object(Eo.createContext)(null);function Wl(e){var t=Object(Eo.useRef)(null);return null===t.current&&(t.current=e()),t.current}function zl(){var e=Object(Eo.useContext)(Vl);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,i=e.register,o=Gl();Object(Eo.useEffect)((function(){return i(o)}),[]);return!t&&n?[!1,function(){return null==n?void 0:n(o)}]:[!0]}function Hl(e){return null===e||e.isPresent}var Ul=0,Zl=function(){return Ul++},Gl=function(){return Wl(Zl)},$l=Object(Eo.createContext)(null),Yl="undefined"!=typeof window,Ql=Yl?Eo.useLayoutEffect:Eo.useEffect;function Xl(e,t,n,i){var o=Object(Eo.useContext)(Fl),r=Object(Eo.useContext)(_l),a=Object(Eo.useContext)(Nl).visualElement,s=Object(Eo.useContext)(Vl),c=function(e){var t=e.layoutId,n=Object(Eo.useContext)($l);return n&&void 0!==t?n+"-"+t:t}(n),l=Object(Eo.useRef)(void 0);i||(i=r.renderer),!l.current&&i&&(l.current=i(e,{visualState:t,parent:a,props:Object(Pl.a)(Object(Pl.a)({},n),{layoutId:c}),presenceId:null==s?void 0:s.id,blockInitialAnimation:!1===(null==s?void 0:s.initial)}));var u=l.current;return Ql((function(){u&&(u.setProps(Object(Pl.a)(Object(Pl.a)(Object(Pl.a)({},o),n),{layoutId:c})),u.isPresent=Hl(s),u.isPresenceRoot=!a||a.presenceId!==(null==s?void 0:s.id),u.syncRender())})),Object(Eo.useEffect)((function(){var e;u&&(null===(e=u.animationState)||void 0===e||e.animateChanges())})),Ql((function(){return function(){return null==u?void 0:u.notifyUnmount()}}),[]),u}function ql(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Kl(e){return Array.isArray(e)}function Jl(e){return"string"==typeof e||Kl(e)}function eu(e,t,n,i,o){var r;return void 0===i&&(i={}),void 0===o&&(o={}),"string"==typeof t&&(t=null===(r=e.variants)||void 0===r?void 0:r[t]),"function"==typeof t?t(null!=n?n:e.custom,i,o):t}function tu(e,t,n){var i=e.getProps();return eu(i,t,null!=n?n:i.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.getVelocity()})),t}(e))}function nu(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Jl(e.initial)||Jl(e.animate)||Jl(e.whileHover)||Jl(e.whileDrag)||Jl(e.whileTap)||Jl(e.whileFocus)||Jl(e.exit)}function iu(e){return Boolean(nu(e)||e.variants)}function ou(e,t){var n=function(e,t){if(nu(e)){var n=e.initial,i=e.animate;return{initial:!1===n||Jl(n)?n:void 0,animate:Jl(i)?i:void 0}}return!1!==e.inherit?t:{}}(e,Object(Eo.useContext)(Nl)),i=n.initial,o=n.animate;return Object(Eo.useMemo)((function(){return{initial:i,animate:o}}),t?[ru(i),ru(o)]:[])}function ru(e){return Array.isArray(e)?e.join(" "):e}function au(e){var t=e.preloadedFeatures,n=e.createVisualElement,i=e.useRender,o=e.useVisualState,r=e.Component;return t&&function(e){for(var t in e){var n=e[t];null!==n&&(Rl[t].Component=n)}}(t),Object(Eo.forwardRef)((function(e,t){var a=Object(Eo.useContext)(Fl).isStatic,s=null,c=ou(e,a),l=o(e,a);return!a&&Yl&&(c.visualElement=Xl(r,l,e,n),s=function(e,t,n){var i=[];if(Object(Eo.useContext)(_l),!t)return null;for(var o=0;o<Ml;o++){var r=jl[o],a=Rl[r],s=a.isEnabled,c=a.Component;s(e)&&c&&i.push(Eo.createElement(c,Object(Pl.a)({key:r},e,{visualElement:t})))}return i}(e,c.visualElement)),Eo.createElement(Eo.Fragment,null,Eo.createElement(Nl.Provider,{value:c},i(r,e,function(e,t,n){return Object(Eo.useCallback)((function(i){var o;i&&(null===(o=e.mount)||void 0===o||o.call(e,i)),t&&(i?t.mount(i):t.unmount()),n&&("function"==typeof n?n(i):ql(n)&&(n.current=i))}),[t])}(l,c.visualElement,t),l,a)),s)}))}function su(e){function t(t,n){return void 0===n&&(n={}),au(e(t,n))}var n=new Map;return new Proxy(t,{get:function(e,i){return n.has(i)||n.set(i,t(i)),n.get(i)}})}var cu=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function lu(e){return"string"==typeof e&&!e.includes("-")&&!!(cu.indexOf(e)>-1||/[A-Z]/.test(e))}var uu={};var du=["","X","Y","Z"],mu=["transformPerspective","x","y","z"];function pu(e,t){return mu.indexOf(e)-mu.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return du.forEach((function(t){return mu.push(e+t)}))}));var hu=new Set(mu);function fu(e){return hu.has(e)}var gu=new Set(["originX","originY","originZ"]);function vu(e){return gu.has(e)}function bu(e,t){var n=t.layout,i=t.layoutId;return fu(e)||vu(e)||(n||void 0!==i)&&(!!uu[e]||"opacity"===e)}var yu=function(e){return null!==e&&"object"==typeof e&&e.getVelocity},Cu={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Au(e){return e.startsWith("--")}var Su=function(e,t){return t&&"number"==typeof e?t.transform(e):e},wu=function(e,t){return function(n){return Math.max(Math.min(n,t),e)}},xu=function(e){return e%1?Number(e.toFixed(5)):e},Eu=/(-)?([\d]*\.?[\d])+/g,Ou=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Du=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Tu(e){return"string"==typeof e}var Bu=function(e){return{test:function(t){return Tu(t)&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+e}}},ku=Bu("deg"),Iu=Bu("%"),Pu=Bu("px"),Lu=Bu("vh"),Ru=Bu("vw"),_u=Object(Pl.a)(Object(Pl.a)({},Iu),{parse:function(e){return Iu.parse(e)/100},transform:function(e){return Iu.transform(100*e)}}),ju={test:function(e){return"number"==typeof e},parse:parseFloat,transform:function(e){return e}},Mu=Object(Pl.a)(Object(Pl.a)({},ju),{transform:wu(0,1)}),Fu=Object(Pl.a)(Object(Pl.a)({},ju),{default:1}),Nu=Object(Pl.a)(Object(Pl.a)({},ju),{transform:Math.round}),Vu={borderWidth:Pu,borderTopWidth:Pu,borderRightWidth:Pu,borderBottomWidth:Pu,borderLeftWidth:Pu,borderRadius:Pu,radius:Pu,borderTopLeftRadius:Pu,borderTopRightRadius:Pu,borderBottomRightRadius:Pu,borderBottomLeftRadius:Pu,width:Pu,maxWidth:Pu,height:Pu,maxHeight:Pu,size:Pu,top:Pu,right:Pu,bottom:Pu,left:Pu,padding:Pu,paddingTop:Pu,paddingRight:Pu,paddingBottom:Pu,paddingLeft:Pu,margin:Pu,marginTop:Pu,marginRight:Pu,marginBottom:Pu,marginLeft:Pu,rotate:ku,rotateX:ku,rotateY:ku,rotateZ:ku,scale:Fu,scaleX:Fu,scaleY:Fu,scaleZ:Fu,skew:ku,skewX:ku,skewY:ku,distance:Pu,translateX:Pu,translateY:Pu,translateZ:Pu,x:Pu,y:Pu,z:Pu,perspective:Pu,transformPerspective:Pu,opacity:Mu,originX:_u,originY:_u,originZ:Pu,zIndex:Nu,fillOpacity:Mu,strokeOpacity:Mu,numOctaves:Nu};function Wu(e,t,n,i,o,r,a,s){var c,l=e.style,u=e.vars,d=e.transform,m=e.transformKeys,p=e.transformOrigin;m.length=0;var h=!1,f=!1,g=!0;for(var v in t){var b=t[v];if(Au(v))u[v]=b;else{var y=Vu[v],C=Su(b,y);if(fu(v)){if(h=!0,d[v]=C,m.push(v),!g)continue;b!==(null!==(c=y.default)&&void 0!==c?c:0)&&(g=!1)}else if(vu(v))p[v]=C,f=!0;else if((null==n?void 0:n.isHydrated)&&(null==i?void 0:i.isHydrated)&&uu[v]){var A=uu[v].process(b,i,n),S=uu[v].applyTo;if(S)for(var w=S.length,x=0;x<w;x++)l[S[x]]=A;else l[v]=A}else l[v]=C}}i&&n&&a&&s?(l.transform=a(i.deltaFinal,i.treeScale,h?d:void 0),r&&(l.transform=r(d,l.transform)),l.transformOrigin=s(i)):(h&&(l.transform=function(e,t,n,i){var o=e.transform,r=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,c=t.allowTransformNone,l=void 0===c||c,u="";r.sort(pu);for(var d=!1,m=r.length,p=0;p<m;p++){var h=r[p];u+=(Cu[h]||h)+"("+o[h]+") ","z"===h&&(d=!0)}return!d&&s?u+="translateZ(0)":u=u.trim(),i?u=i(o,n?"":u):l&&n&&(u="none"),u}(e,o,g,r)),f&&(l.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,i=e.originY,o=void 0===i?"50%":i,r=e.originZ;return n+" "+o+" "+(void 0===r?0:r)}(p)))}var zu=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function Hu(e,t,n){for(var i in t)yu(t[i])||bu(i,n)||(e[i]=t[i])}function Uu(e,t,n){var i={};return Hu(i,e.style||{},e),Object.assign(i,function(e,t,n){var i=e.transformTemplate;return Object(Eo.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};Wu(e,t,void 0,void 0,{enableHardwareAcceleration:!n},i);var o=e.vars,r=e.style;return Object(Pl.a)(Object(Pl.a)({},o),r)}),[t])}(e,t,n)),e.transformValues&&(i=e.transformValues(i)),i}function Zu(e,t,n){var i={},o=Uu(e,t,n);return Boolean(e.drag)&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),i.style=o,i}var Gu=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","_layoutResetTransform","onLayoutAnimationComplete","onViewportBoxUpdate","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover"]);function $u(e){return Gu.has(e)}var Yu=function(e){return!$u(e)};try{var Qu=n(150).default;Yu=function(e){return e.startsWith("on")?!$u(e):Qu(e)}}catch(e){}function Xu(e,t,n){return"string"==typeof e?e:Pu.transform(t+n*e)}var qu=function(e,t){return Pu.transform(e*t)},Ku={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ju={offset:"strokeDashoffset",array:"strokeDasharray"};function ed(e,t,n,i,o,r,a,s){var c=t.attrX,l=t.attrY,u=t.originX,d=t.originY,m=t.pathLength,p=t.pathSpacing,h=void 0===p?1:p,f=t.pathOffset,g=void 0===f?0:f;Wu(e,Object(Pl.d)(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,i,o,r,a,s),e.attrs=e.style,e.style={};var v=e.attrs,b=e.style,y=e.dimensions,C=e.totalPathLength;v.transform&&(y&&(b.transform=v.transform),delete v.transform),y&&(void 0!==u||void 0!==d||b.transform)&&(b.transformOrigin=function(e,t,n){return Xu(t,e.x,e.width)+" "+Xu(n,e.y,e.height)}(y,void 0!==u?u:.5,void 0!==d?d:.5)),void 0!==c&&(v.x=c),void 0!==l&&(v.y=l),void 0!==C&&void 0!==m&&function(e,t,n,i,o,r){void 0===i&&(i=1),void 0===o&&(o=0),void 0===r&&(r=!0);var a=r?Ku:Ju;e[a.offset]=qu(-o,t);var s=qu(n,t),c=qu(i,t);e[a.array]=s+" "+c}(v,C,m,h,g,!1)}var td=function(){return Object(Pl.a)(Object(Pl.a)({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function nd(e,t){var n=Object(Eo.useMemo)((function(){var n=td();return ed(n,t,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),Object(Pl.a)(Object(Pl.a)({},n.attrs),{style:Object(Pl.a)({},n.style)})}),[t]);if(e.style){var i={};Hu(i,e.style,e),n.style=Object(Pl.a)(Object(Pl.a)({},i),n.style)}return n}function id(e){void 0===e&&(e=!1);return function(t,n,i,o,r){var a=o.latestValues,s=(lu(t)?nd:Zu)(n,a,r),c=function(e,t,n){var i={};for(var o in e)(Yu(o)||!0===n&&$u(o)||!t&&!$u(o))&&(i[o]=e[o]);return i}(n,"string"==typeof t,e),l=Object(Pl.a)(Object(Pl.a)(Object(Pl.a)({},c),s),{ref:i});return Object(Eo.createElement)(t,l)}}var od=/([a-z])([A-Z])/g,rd=function(e){return e.replace(od,"$1-$2").toLowerCase()};function ad(e,t){var n=t.style,i=t.vars;for(var o in Object.assign(e.style,n),i)e.style.setProperty(o,i[o])}var sd=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform"]);function cd(e,t){for(var n in ad(e,t),t.attrs)e.setAttribute(sd.has(n)?n:rd(n),t.attrs[n])}function ld(e){var t=e.style,n={};for(var i in t)(yu(t[i])||bu(i,e))&&(n[i]=t[i]);return n}function ud(e){var t=ld(e);for(var n in e){if(yu(e[n]))t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]}return t}function dd(e){return"object"==typeof e&&"function"==typeof e.start}var md=function(e){return Array.isArray(e)};function pd(e){var t,n=yu(e)?e.get():e;return t=n,Boolean(t&&"object"==typeof t&&t.mix&&t.toValue)?n.toValue():n}function hd(e,t,n,i){var o=e.scrapeMotionValuesFromProps,r=e.createRenderState,a=e.onMount,s={latestValues:gd(t,n,i,o),renderState:r()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var fd=function(e){return function(t,n){var i=Object(Eo.useContext)(Nl),o=Object(Eo.useContext)(Vl);return n?hd(e,t,i,o):Wl((function(){return hd(e,t,i,o)}))}};function gd(e,t,n,i){var o={},r=!1===(null==n?void 0:n.initial),a=i(e);for(var s in a)o[s]=pd(a[s]);var c=e.initial,l=e.animate,u=nu(e),d=iu(e);t&&d&&!u&&!1!==e.inherit&&(null!=c||(c=t.initial),null!=l||(l=t.animate));var m=r||!1===c?l:c;m&&"boolean"!=typeof m&&!dd(m)&&(Array.isArray(m)?m:[m]).forEach((function(t){var n=eu(e,t);if(n){var i=n.transitionEnd;n.transition;var r=Object(Pl.d)(n,["transitionEnd","transition"]);for(var a in r)o[a]=r[a];for(var a in i)o[a]=i[a]}}));return o}var vd={useVisualState:fd({scrapeMotionValuesFromProps:ud,createRenderState:td,onMount:function(e,t,n){var i=n.renderState,o=n.latestValues;try{i.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){i.dimensions={x:0,y:0,width:0,height:0}}"path"===t.tagName&&(i.totalPathLength=t.getTotalLength()),ed(i,o,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),cd(t,i)}})};var bd,yd={useVisualState:fd({scrapeMotionValuesFromProps:ld,createRenderState:zu})};function Cd(e,t,n,i){var o=t.forwardMotionProps,r=void 0!==o&&o,a=lu(e)?vd:yd;return Object(Pl.a)(Object(Pl.a)({},a),{preloadedFeatures:n,useRender:id(r),createVisualElement:i,Component:e})}function Ad(e,t,n,i){return e.addEventListener(t,n,i),function(){return e.removeEventListener(t,n,i)}}function Sd(e,t,n,i){Object(Eo.useEffect)((function(){var o=e.current;if(n&&o)return Ad(o,t,n,i)}),[e,t,n,i])}function wd(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function xd(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.Exit="exit"}(bd||(bd={}));var Ed={pageX:0,pageY:0};function Od(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Ed;return{x:n[t+"X"],y:n[t+"Y"]}}function Dd(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Td(e,t){return void 0===t&&(t="page"),{point:xd(e)?Od(e,t):Dd(e,t)}}var Bd=function(e,t){void 0===t&&(t=!1);var n,i=function(t){return e(t,Td(t))};return t?(n=i,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):i},kd={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Id={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Pd(e){return Yl&&null===window.onpointerdown?e:Yl&&null===window.ontouchstart?Id[e]:Yl&&null===window.onmousedown?kd[e]:e}function Ld(e,t,n,i){return Ad(e,Pd(t),Bd(n,"pointerdown"===t),i)}function Rd(e,t,n,i){return Sd(e,Pd(t),n&&Bd(n,"pointerdown"===t),i)}function _d(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var jd=_d("dragHorizontal"),Md=_d("dragVertical");function Fd(e){var t=!1;if("y"===e)t=Md();else if("x"===e)t=jd();else{var n=jd(),i=Md();n&&i?t=function(){n(),i()}:(n&&n(),i&&i())}return t}function Nd(){var e=Fd(!0);return!e||(e(),!1)}function Vd(e,t,n){return function(i,o){var r;wd(i)&&!Nd()&&(null==n||n(i,o),null===(r=e.animationState)||void 0===r||r.setActive(bd.Hover,t))}}var Wd=function(e,t){return!!t&&(e===t||Wd(e,t.parentElement))};function zd(e){return Object(Eo.useEffect)((function(){return function(){return e()}}),[])}var Hd=function(e,t){return function(n){return t(e(n))}},Ud=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce(Hd)};var Zd=function(e){return function(t){return e(t),null}},Gd={tap:Zd((function(e){var t=e.onTap,n=e.onTapStart,i=e.onTapCancel,o=e.whileTap,r=e.visualElement,a=t||n||i||o,s=Object(Eo.useRef)(!1),c=Object(Eo.useRef)(null);function l(){var e;null===(e=c.current)||void 0===e||e.call(c),c.current=null}function u(){var e;return l(),s.current=!1,null===(e=r.animationState)||void 0===e||e.setActive(bd.Tap,!1),!Nd()}function d(e,n){u()&&(Wd(r.getInstance(),e.target)?null==t||t(e,n):null==i||i(e,n))}function m(e,t){u()&&(null==i||i(e,t))}Rd(r,"pointerdown",a?function(e,t){var i;l(),s.current||(s.current=!0,c.current=Ud(Ld(window,"pointerup",d),Ld(window,"pointercancel",m)),null==n||n(e,t),null===(i=r.animationState)||void 0===i||i.setActive(bd.Tap,!0))}:void 0),zd(l)})),focus:Zd((function(e){var t=e.whileFocus,n=e.visualElement;Sd(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(bd.Focus,!0)}:void 0),Sd(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(bd.Focus,!1)}:void 0)})),hover:Zd((function(e){var t=e.onHoverStart,n=e.onHoverEnd,i=e.whileHover,o=e.visualElement;Rd(o,"pointerenter",t||i?Vd(o,!0,t):void 0),Rd(o,"pointerleave",n||i?Vd(o,!1,n):void 0)}))};function $d(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}var Yd=function(e,t,n){return Math.min(Math.max(n,e),t)},Qd=.001;function Xd(e){var t,n,i=e.duration,o=void 0===i?800:i,r=e.bounce,a=void 0===r?.25:r,s=e.velocity,c=void 0===s?0:s,l=e.mass,u=void 0===l?1:l,d=1-a;d=Yd(.05,1,d),o=Yd(.01,10,o/1e3),d<1?(t=function(e){var t=e*d,n=t*o,i=t-c,r=qd(e,d),a=Math.exp(-n);return Qd-i/r*a},n=function(e){var n=e*d*o,i=n*c+c,r=Math.pow(d,2)*Math.pow(e,2)*o,a=Math.exp(-n),s=qd(Math.pow(e,2),d);return(-t(e)+Qd>0?-1:1)*((i-r)*a)/s}):(t=function(e){return Math.exp(-e*o)*((e-c)*o+1)-.001},n=function(e){return Math.exp(-e*o)*(o*o*(c-e))});var m=function(e,t,n){for(var i=n,o=1;o<12;o++)i-=e(i)/t(i);return i}(t,n,5/o);if(o*=1e3,isNaN(m))return{stiffness:100,damping:10,duration:o};var p=Math.pow(m,2)*u;return{stiffness:p,damping:2*d*Math.sqrt(u*p),duration:o}}function qd(e,t){return e*Math.sqrt(1-t*t)}var Kd=["duration","bounce"],Jd=["stiffness","damping","mass"];function em(e,t){return t.some((function(t){return void 0!==e[t]}))}function tm(e){var t=e.from,n=void 0===t?0:t,i=e.to,o=void 0===i?1:i,r=e.restSpeed,a=void 0===r?2:r,s=e.restDelta,c=Object(Pl.d)(e,["from","to","restSpeed","restDelta"]),l={done:!1,value:n},u=function(e){var t=Object(Pl.a)({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!em(e,Jd)&&em(e,Kd)){var n=Xd(e);(t=Object(Pl.a)(Object(Pl.a)(Object(Pl.a)({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(c),d=u.stiffness,m=u.damping,p=u.mass,h=u.velocity,f=u.duration,g=u.isResolvedFromDuration,v=nm,b=nm;function y(){var e=h?-h/1e3:0,t=o-n,i=m/(2*Math.sqrt(d*p)),r=Math.sqrt(d/p)/1e3;if(null!=s||(s=Math.abs(o-n)<=1?.01:.4),i<1){var a=qd(r,i);v=function(n){var s=Math.exp(-i*r*n);return o-s*((e+i*r*t)/a*Math.sin(a*n)+t*Math.cos(a*n))},b=function(n){var o=Math.exp(-i*r*n);return i*r*o*(Math.sin(a*n)*(e+i*r*t)/a+t*Math.cos(a*n))-o*(Math.cos(a*n)*(e+i*r*t)-a*t*Math.sin(a*n))}}else if(1===i)v=function(n){return o-Math.exp(-r*n)*(t+(e+r*t)*n)};else{var c=r*Math.sqrt(i*i-1);v=function(n){var a=Math.exp(-i*r*n),s=Math.min(c*n,300);return o-a*((e+i*r*t)*Math.sinh(s)+c*t*Math.cosh(s))/c}}}return y(),{next:function(e){var t=v(e);if(g)l.done=e>=f;else{var n=1e3*b(e),i=Math.abs(n)<=a,r=Math.abs(o-t)<=s;l.done=i&&r}return l.value=l.done?o:t,l},flipTarget:function(){var e;h=-h,n=(e=[o,n])[0],o=e[1],y()}}}tm.needsInterpolation=function(e,t){return"string"==typeof e||"string"==typeof t};var nm=function(e){return 0},im=function(e,t,n){var i=t-e;return 0===i?1:(n-e)/i},om=function(e,t,n){return-n*e+n*t+e},rm=function(e,t){return function(n){return Boolean(Tu(n)&&Du.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t))}},am=function(e,t,n){return function(i){var o;if(!Tu(i))return i;var r=i.match(Eu),a=r[0],s=r[1],c=r[2],l=r[3];return(o={})[e]=parseFloat(a),o[t]=parseFloat(s),o[n]=parseFloat(c),o.alpha=void 0!==l?parseFloat(l):1,o}},sm=wu(0,255),cm=Object(Pl.a)(Object(Pl.a)({},ju),{transform:function(e){return Math.round(sm(e))}}),lm={test:rm("rgb","red"),parse:am("red","green","blue"),transform:function(e){var t=e.red,n=e.green,i=e.blue,o=e.alpha,r=void 0===o?1:o;return"rgba("+cm.transform(t)+", "+cm.transform(n)+", "+cm.transform(i)+", "+xu(Mu.transform(r))+")"}};var um={test:rm("#"),parse:function(e){var t="",n="",i="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),i=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),i=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,i+=i,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}},transform:lm.transform},dm={test:rm("hsl","hue"),parse:am("hue","saturation","lightness"),transform:function(e){var t=e.hue,n=e.saturation,i=e.lightness,o=e.alpha,r=void 0===o?1:o;return"hsla("+Math.round(t)+", "+Iu.transform(xu(n))+", "+Iu.transform(xu(i))+", "+xu(Mu.transform(r))+")"}},mm=function(e,t,n){var i=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-i)+i))},pm=[um,lm,dm],hm=function(e){return pm.find((function(t){return t.test(e)}))},fm=function(e){return"'"+e+"' is not an animatable color. Use the equivalent color code instead."},gm=function(e,t){var n=hm(e),i=hm(t);fm(e),fm(t),n.transform,i.transform;var o=n.parse(e),r=i.parse(t),a=Object(Pl.a)({},o),s=n===dm?om:mm;return function(e){for(var t in a)"alpha"!==t&&(a[t]=s(o[t],r[t],e));return a.alpha=om(o.alpha,r.alpha,e),n.transform(a)}},vm={test:function(e){return lm.test(e)||um.test(e)||dm.test(e)},parse:function(e){return lm.test(e)?lm.parse(e):dm.test(e)?dm.parse(e):um.parse(e)},transform:function(e){return Tu(e)?e:e.hasOwnProperty("red")?lm.transform(e):dm.transform(e)}},bm="${c}",ym="${n}";function Cm(e){var t=[],n=0,i=e.match(Ou);i&&(n=i.length,e=e.replace(Ou,bm),t.push.apply(t,i.map(vm.parse)));var o=e.match(Eu);return o&&(e=e.replace(Eu,ym),t.push.apply(t,o.map(ju.parse))),{values:t,numColors:n,tokenised:e}}function Am(e){return Cm(e).values}function Sm(e){var t=Cm(e),n=t.values,i=t.numColors,o=t.tokenised,r=n.length;return function(e){for(var t=o,n=0;n<r;n++)t=t.replace(n<i?bm:ym,n<i?vm.transform(e[n]):xu(e[n]));return t}}var wm=function(e){return"number"==typeof e?0:e};var xm={test:function(e){var t,n,i,o;return isNaN(e)&&Tu(e)&&(null!==(n=null===(t=e.match(Eu))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(i=e.match(Ou))||void 0===i?void 0:i.length)&&void 0!==o?o:0)>0},parse:Am,createTransformer:Sm,getAnimatableNone:function(e){var t=Am(e);return Sm(e)(t.map(wm))}},Em=function(e){return"number"==typeof e};function Om(e,t){return Em(e)?function(n){return om(e,t,n)}:vm.test(e)?gm(e,t):km(e,t)}var Dm=function(e,t){var n=Object(Pl.e)([],e),i=n.length,o=e.map((function(e,n){return Om(e,t[n])}));return function(e){for(var t=0;t<i;t++)n[t]=o[t](e);return n}},Tm=function(e,t){var n=Object(Pl.a)(Object(Pl.a)({},e),t),i={};for(var o in n)void 0!==e[o]&&void 0!==t[o]&&(i[o]=Om(e[o],t[o]));return function(e){for(var t in i)n[t]=i[t](e);return n}};function Bm(e){for(var t=xm.parse(e),n=t.length,i=0,o=0,r=0,a=0;a<n;a++)i||"number"==typeof t[a]?i++:void 0!==t[a].hue?r++:o++;return{parsed:t,numNumbers:i,numRGB:o,numHSL:r}}var km=function(e,t){var n=xm.createTransformer(t),i=Bm(e),o=Bm(t);return i.numHSL===o.numHSL&&i.numRGB===o.numRGB&&(i.numNumbers,o.numNumbers),Ud(Dm(i.parsed,o.parsed),n)},Im=function(e,t){return function(n){return om(e,t,n)}};function Pm(e,t,n){for(var i,o=[],r=n||("number"==typeof(i=e[0])?Im:"string"==typeof i?vm.test(i)?gm:km:Array.isArray(i)?Dm:"object"==typeof i?Tm:void 0),a=e.length-1,s=0;s<a;s++){var c=r(e[s],e[s+1]);if(t){var l=Array.isArray(t)?t[s]:t;c=Ud(l,c)}o.push(c)}return o}function Lm(e,t,n){var i=void 0===n?{}:n,o=i.clamp,r=void 0===o||o,a=i.ease,s=i.mixer,c=e.length;t.length,!a||!Array.isArray(a)||a.length,e[0]>e[c-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());var l=Pm(t,a,s),u=2===c?function(e,t){var n=e[0],i=e[1],o=t[0];return function(e){return o(im(n,i,e))}}(e,l):function(e,t){var n=e.length,i=n-1;return function(o){var r=0,a=!1;if(o<=e[0]?a=!0:o>=e[i]&&(r=i-1,a=!0),!a){for(var s=1;s<n&&!(e[s]>o||s===i);s++);r=s-1}var c=im(e[r],e[r+1],o);return t[r](c)}}(e,l);return r?function(t){return u(Yd(e[0],e[c-1],t))}:u}var Rm,_m=function(e){return function(t){return 1-e(1-t)}},jm=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},Mm=function(e){return function(t){return t*t*((e+1)*t-e)}},Fm=function(e){return e},Nm=(Rm=2,function(e){return Math.pow(e,Rm)}),Vm=_m(Nm),Wm=jm(Nm),zm=function(e){return 1-Math.sin(Math.acos(e))},Hm=_m(zm),Um=jm(Hm),Zm=Mm(1.525),Gm=_m(Zm),$m=jm(Zm),Ym=function(e){var t=Mm(e);return function(e){return(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))}}(1.525),Qm=function(e){if(1===e||0===e)return e;var t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},Xm=_m(Qm);function qm(e,t){return e.map((function(){return t||Wm})).splice(0,e.length-1)}function Km(e){var t=e.from,n=void 0===t?0:t,i=e.to,o=void 0===i?1:i,r=e.ease,a=e.offset,s=e.duration,c=void 0===s?300:s,l={done:!1,value:n},u=Array.isArray(o)?o:[n,o],d=function(e,t){return e.map((function(e){return e*t}))}(a&&a.length===u.length?a:function(e){var t=e.length;return e.map((function(e,n){return 0!==n?n/(t-1):0}))}(u),c);function m(){return Lm(d,u,{ease:Array.isArray(r)?r:qm(u,r)})}var p=m();return{next:function(e){return l.value=p(e),l.done=e>=c,l},flipTarget:function(){u.reverse(),p=m()}}}var Jm={keyframes:Km,spring:tm,decay:function(e){var t=e.velocity,n=void 0===t?0:t,i=e.from,o=void 0===i?0:i,r=e.power,a=void 0===r?.8:r,s=e.timeConstant,c=void 0===s?350:s,l=e.restDelta,u=void 0===l?.5:l,d=e.modifyTarget,m={done:!1,value:o},p=a*n,h=o+p,f=void 0===d?h:d(h);return f!==h&&(p=f-o),{next:function(e){var t=-p*Math.exp(-e/c);return m.done=!(t>u||t<-u),m.value=m.done?f:f+t,m},flipTarget:function(){}}}};var ep=1/60*1e3,tp="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},np="undefined"!=typeof window?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout((function(){return e(tp())}),ep)};var ip=!0,op=!1,rp=!1,ap={delta:0,timestamp:0},sp=["read","update","preRender","render","postRender"],cp=sp.reduce((function(e,t){return e[t]=function(e){var t=[],n=[],i=0,o=!1,r=new WeakSet,a={schedule:function(e,a,s){void 0===a&&(a=!1),void 0===s&&(s=!1);var c=s&&o,l=c?t:n;return a&&r.add(e),-1===l.indexOf(e)&&(l.push(e),c&&o&&(i=t.length)),e},cancel:function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1),r.delete(e)},process:function(s){var c;if(o=!0,t=(c=[n,t])[0],(n=c[1]).length=0,i=t.length)for(var l=0;l<i;l++){var u=t[l];u(s),r.has(u)&&(a.schedule(u),e())}o=!1}};return a}((function(){return op=!0})),e}),{}),lp=sp.reduce((function(e,t){var n=cp[t];return e[t]=function(e,t,i){return void 0===t&&(t=!1),void 0===i&&(i=!1),op||hp(),n.schedule(e,t,i)},e}),{}),up=sp.reduce((function(e,t){return e[t]=cp[t].cancel,e}),{}),dp=sp.reduce((function(e,t){return e[t]=function(){return cp[t].process(ap)},e}),{}),mp=function(e){return cp[e].process(ap)},pp=function(e){op=!1,ap.delta=ip?ep:Math.max(Math.min(e-ap.timestamp,40),1),ap.timestamp=e,rp=!0,sp.forEach(mp),rp=!1,op&&(ip=!1,np(pp))},hp=function(){op=!0,ip=!0,rp||np(pp)},fp=function(){return ap},gp=lp;function vp(e,t,n){return void 0===n&&(n=0),e-t-n}var bp=function(e){var t=function(t){var n=t.delta;return e(n)};return{start:function(){return gp.update(t,!0)},stop:function(){return up.update(t)}}};function yp(e){var t,n,i,o,r,a=e.from,s=e.autoplay,c=void 0===s||s,l=e.driver,u=void 0===l?bp:l,d=e.elapsed,m=void 0===d?0:d,p=e.repeat,h=void 0===p?0:p,f=e.repeatType,g=void 0===f?"loop":f,v=e.repeatDelay,b=void 0===v?0:v,y=e.onPlay,C=e.onStop,A=e.onComplete,S=e.onRepeat,w=e.onUpdate,x=Object(Pl.d)(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),E=x.to,O=0,D=x.duration,T=!1,B=!0,k=function(e){if(Array.isArray(e.to))return Km;if(Jm[e.type])return Jm[e.type];var t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Km:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?tm:Km}(x);(null===(n=(t=k).needsInterpolation)||void 0===n?void 0:n.call(t,a,E))&&(r=Lm([0,100],[a,E],{clamp:!1}),a=0,E=100);var I=k(Object(Pl.a)(Object(Pl.a)({},x),{from:a,to:E}));function P(){O++,"reverse"===g?m=function(e,t,n,i){return void 0===n&&(n=0),void 0===i&&(i=!0),i?vp(t+-e,t,n):t-(e-t)+n}(m,D,b,B=O%2==0):(m=vp(m,D,b),"mirror"===g&&I.flipTarget()),T=!1,S&&S()}function L(e){if(B||(e=-e),m+=e,!T){var t=I.next(Math.max(0,m));o=t.value,r&&(o=r(o)),T=B?t.done:m<=0}null==w||w(o),T&&(0===O&&(null!=D||(D=m)),O<h?function(e,t,n,i){return i?e>=t+n:e<=-n}(m,D,b,B)&&P():(i.stop(),A&&A()))}return c&&(null==y||y(),(i=u(L)).start()),{stop:function(){null==C||C(),i.stop()}}}function Cp(e,t){return t?e*(1e3/t):0}var Ap=function(e){return 1e3*e},Sp=function(e,t){return 1-3*t+3*e},wp=function(e,t){return 3*t-6*e},xp=function(e){return 3*e},Ep=function(e,t,n){return((Sp(t,n)*e+wp(t,n))*e+xp(t))*e},Op=function(e,t,n){return 3*Sp(t,n)*e*e+2*wp(t,n)*e+xp(t)};var Dp=.1;function Tp(e,t,n,i){if(e===t&&n===i)return Fm;for(var o=new Float32Array(11),r=0;r<11;++r)o[r]=Ep(r*Dp,e,n);function a(t){for(var i=0,r=1;10!==r&&o[r]<=t;++r)i+=Dp;--r;var a=i+(t-o[r])/(o[r+1]-o[r])*Dp,s=Op(a,e,n);return s>=.001?function(e,t,n,i){for(var o=0;o<8;++o){var r=Op(t,n,i);if(0===r)return t;t-=(Ep(t,n,i)-e)/r}return t}(t,a,e,n):0===s?a:function(e,t,n,i,o){var r,a,s=0;do{(r=Ep(a=t+(n-t)/2,i,o)-e)>0?n=a:t=a}while(Math.abs(r)>1e-7&&++s<10);return a}(t,i,i+Dp,e,n)}return function(e){return 0===e||1===e?e:Ep(a(e),t,i)}}var Bp={linear:Fm,easeIn:Nm,easeInOut:Wm,easeOut:Vm,circIn:zm,circInOut:Um,circOut:Hm,backIn:Zm,backInOut:$m,backOut:Gm,anticipate:Ym,bounceIn:Xm,bounceInOut:function(e){return e<.5?.5*(1-Qm(1-2*e)):.5*Qm(2*e-1)+.5},bounceOut:Qm},kp=function(e){if(Array.isArray(e)){e.length;var t=Object(Pl.c)(e,4);return Tp(t[0],t[1],t[2],t[3])}return"string"==typeof e?Bp[e]:e},Ip=function(e,t){return"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!xm.test(t)||t.startsWith("url(")))},Pp=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},Lp=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}},Rp=function(){return{type:"keyframes",ease:"linear",duration:.3}},_p=function(e){return{type:"keyframes",duration:.8,values:e}},jp={x:Pp,y:Pp,z:Pp,rotate:Pp,rotateX:Pp,rotateY:Pp,rotateZ:Pp,scaleX:Lp,scaleY:Lp,scale:Lp,opacity:Rp,backgroundColor:Rp,color:Rp,default:Lp},Mp=new Set(["brightness","contrast","saturate","opacity"]);function Fp(e){var t=e.slice(0,-1).split("("),n=t[0],i=t[1];if("drop-shadow"===n)return e;var o=(i.match(Eu)||[])[0];if(!o)return e;var r=i.replace(o,""),a=Mp.has(n)?1:0;return o!==i&&(a*=100),n+"("+a+r+")"}var Np=/([a-z-]*)\(.*?\)/g,Vp=Object(Pl.a)(Object(Pl.a)({},xm),{getAnimatableNone:function(e){var t=e.match(Np);return t?t.map(Fp).join(" "):e}}),Wp=Object(Pl.a)(Object(Pl.a)({},Vu),{color:vm,backgroundColor:vm,outlineColor:vm,fill:vm,stroke:vm,borderColor:vm,borderTopColor:vm,borderRightColor:vm,borderBottomColor:vm,borderLeftColor:vm,filter:Vp,WebkitFilter:Vp}),zp=function(e){return Wp[e]};function Hp(e,t){var n,i=zp(e);return i!==Vp&&(i=xm),null===(n=i.getAnimatableNone)||void 0===n?void 0:n.call(i,t)}function Up(e){var t=e.ease,n=e.times,i=e.yoyo,o=e.flip,r=e.loop,a=Object(Pl.d)(e,["ease","times","yoyo","flip","loop"]),s=Object(Pl.a)({},a);return n&&(s.offset=n),a.duration&&(s.duration=Ap(a.duration)),a.repeatDelay&&(s.repeatDelay=Ap(a.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(kp):kp(t)),"tween"===a.type&&(s.type="keyframes"),(i||r||o)&&(!0,i?s.repeatType="reverse":r?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=r||i||o||a.repeat),"spring"!==a.type&&(s.type="keyframes"),s}function Zp(e,t,n){var i,o,r,a;return Array.isArray(t.to)&&(null!==(i=e.duration)&&void 0!==i||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=Object(Pl.e)([],Object(Pl.c)(e.to)),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=Object(Pl.d)(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=Object(Pl.a)(Object(Pl.a)({},e),(o=n,r=t.to,a=md(r)?_p:jp[o]||jp.default,Object(Pl.a)({to:r},a(r))))),Object(Pl.a)(Object(Pl.a)({},t),Up(e))}function Gp(e,t,n,i,o){var r,a=Qp(i,e),s=null!==(r=a.from)&&void 0!==r?r:t.get(),c=Ip(e,n);"none"===s&&c&&"string"==typeof n?s=Hp(e,n):$p(s)&&"string"==typeof n?s=Yp(n):!Array.isArray(n)&&$p(n)&&"string"==typeof s&&(n=Yp(s));var l=Ip(e,s);return l&&c&&!1!==a.type?function(){var i={from:s,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===a.type||"decay"===a.type?function(e){var t,n=e.from,i=void 0===n?0:n,o=e.velocity,r=void 0===o?0:o,a=e.min,s=e.max,c=e.power,l=void 0===c?.8:c,u=e.timeConstant,d=void 0===u?750:u,m=e.bounceStiffness,p=void 0===m?500:m,h=e.bounceDamping,f=void 0===h?10:h,g=e.restDelta,v=void 0===g?1:g,b=e.modifyTarget,y=e.driver,C=e.onUpdate,A=e.onComplete;function S(e){return void 0!==a&&e<a||void 0!==s&&e>s}function w(e){return void 0===a?s:void 0===s||Math.abs(a-e)<Math.abs(s-e)?a:s}function x(e){null==t||t.stop(),t=yp(Object(Pl.a)(Object(Pl.a)({},e),{driver:y,onUpdate:function(t){var n;null==C||C(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:A}))}function E(e){x(Object(Pl.a)({type:"spring",stiffness:p,damping:f,restDelta:v},e))}if(S(i))E({from:i,velocity:r,to:w(i)});else{var O=l*r+i;"undefined"!=typeof b&&(O=b(O));var D,T,B=w(O),k=B===a?-1:1;x({type:"decay",from:i,velocity:r,timeConstant:d,power:l,restDelta:v,modifyTarget:b,onUpdate:S(O)?function(e){D=T,T=e,r=Cp(e-D,fp().delta),(1===k&&e>B||-1===k&&e<B)&&E({from:e,to:B,velocity:r})}:void 0})}return{stop:function(){return null==t?void 0:t.stop()}}}(Object(Pl.a)(Object(Pl.a)({},i),a)):yp(Object(Pl.a)(Object(Pl.a)({},Zp(a,i,e)),{onUpdate:function(e){var t;i.onUpdate(e),null===(t=a.onUpdate)||void 0===t||t.call(a,e)},onComplete:function(){var e;i.onComplete(),null===(e=a.onComplete)||void 0===e||e.call(a)}}))}:function(){var e;return t.set(n),o(),null===(e=null==a?void 0:a.onComplete)||void 0===e||e.call(a),{stop:function(){}}}}function $p(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Yp(e){return"number"==typeof e?0:Hp("",e)}function Qp(e,t){return e[t]||e.default||e}function Xp(e,t,n,i){return void 0===i&&(i={}),t.start((function(o){var r,a,s=Gp(e,t,n,i,o),c=function(e,t){var n;return null!==(n=(Qp(e,t)||{}).delay)&&void 0!==n?n:0}(i,e),l=function(){return a=s()};return c?r=setTimeout(l,Ap(c)):l(),function(){clearTimeout(r),null==a||a.stop()}}))}function qp(e,t){-1===e.indexOf(t)&&e.push(t)}function Kp(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Jp=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return qp(this.subscriptions,e),function(){return Kp(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](e,t,n);else for(var o=0;o<i;o++){var r=this.subscriptions[o];r&&r(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),eh=function(){function e(e){var t,n=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Jp,this.velocityUpdateSubscribers=new Jp,this.renderSubscribers=new Jp,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var i=fp(),o=i.delta,r=i.timestamp;n.lastUpdated!==r&&(n.timeDelta=o,n.lastUpdated=r,gp.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),t&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return gp.postRender(n.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t)))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?Cp(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function th(e){return new eh(e)}var nh=function(e){return function(t){return t.test(e)}},ih=[ju,Pu,Iu,ku,Ru,Lu,{test:function(e){return"auto"===e},parse:function(e){return e}}],oh=function(e){return ih.find(nh(e))},rh=Object(Pl.e)(Object(Pl.e)([],Object(Pl.c)(ih)),[vm,xm]),ah=function(e){return rh.find(nh(e))};function sh(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,th(n))}function ch(e,t){var n=tu(e,t),i=n?e.makeTargetAnimatable(n,!1):{},o=i.transitionEnd,r=void 0===o?{}:o;i.transition;var a,s=Object(Pl.d)(i,["transitionEnd","transition"]);for(var c in s=Object(Pl.a)(Object(Pl.a)({},s),r)){sh(e,c,(a=s[c],md(a)?a[a.length-1]||0:a))}}function lh(e,t){if(t)return(t[e]||t.default||t).from}function uh(e,t,n){var i;void 0===n&&(n={});var o=tu(e,t,n.custom),r=(o||{}).transition,a=void 0===r?e.getDefaultTransition()||{}:r;n.transitionOverride&&(a=n.transitionOverride);var s=o?function(){return dh(e,o,n)}:function(){return Promise.resolve()},c=(null===(i=e.variantChildren)||void 0===i?void 0:i.size)?function(i){void 0===i&&(i=0);var o=a.delayChildren,r=void 0===o?0:o,s=a.staggerChildren,c=a.staggerDirection;return function(e,t,n,i,o,r){void 0===n&&(n=0);void 0===i&&(i=0);void 0===o&&(o=1);var a=[],s=(e.variantChildren.size-1)*i,c=1===o?function(e){return void 0===e&&(e=0),e*i}:function(e){return void 0===e&&(e=0),s-e*i};return Array.from(e.variantChildren).sort(mh).forEach((function(e,i){a.push(uh(e,t,Object(Pl.a)(Object(Pl.a)({},r),{delay:n+c(i)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(a)}(e,t,r+i,s,c,n)}:function(){return Promise.resolve()},l=a.when;if(l){var u=Object(Pl.c)("beforeChildren"===l?[s,c]:[c,s],2),d=u[0],m=u[1];return d().then(m)}return Promise.all([s(),c(n.delay)])}function dh(e,t,n){var i,o=void 0===n?{}:n,r=o.delay,a=void 0===r?0:r,s=o.transitionOverride,c=o.type,l=e.makeTargetAnimatable(t),u=l.transition,d=void 0===u?e.getDefaultTransition():u,m=l.transitionEnd,p=Object(Pl.d)(l,["transition","transitionEnd"]);s&&(d=s);var h=[],f=c&&(null===(i=e.animationState)||void 0===i?void 0:i.getState()[c]);for(var g in p){var v=e.getValue(g),b=p[g];if(!(!v||void 0===b||f&&ph(f,g))){var y=Xp(g,v,b,Object(Pl.a)({delay:a},d));h.push(y)}}return Promise.all(h).then((function(){m&&ch(e,m)}))}function mh(e,t){return e.sortNodePosition(t)}function ph(e,t){var n=e.protectedKeys,i=e.needsAnimating,o=n.hasOwnProperty(t)&&!0!==i[t];return i[t]=!1,o}var hh=[bd.Animate,bd.Hover,bd.Tap,bd.Drag,bd.Focus,bd.Exit],fh=Object(Pl.e)([],Object(Pl.c)(hh)).reverse(),gh=hh.length;function vh(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,i=t.options;return function(e,t,n){var i;if(void 0===n&&(n={}),e.notifyAnimationStart(),Array.isArray(t)){var o=t.map((function(t){return uh(e,t,n)}));i=Promise.all(o)}else if("string"==typeof t)i=uh(e,t,n);else{var r="function"==typeof t?tu(e,t,n.custom):t;i=dh(e,r,n)}return i.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,i)})))}}function bh(e){var t,n=vh(e),i=((t={})[bd.Animate]=yh(!0),t[bd.Hover]=yh(),t[bd.Tap]=yh(),t[bd.Drag]=yh(),t[bd.Focus]=yh(),t[bd.Exit]=yh(),t),o={},r=!0,a=function(t,n){var i=tu(e,n);if(i){i.transition;var o=i.transitionEnd,r=Object(Pl.d)(i,["transition","transitionEnd"]);t=Object(Pl.a)(Object(Pl.a)(Object(Pl.a)({},t),r),o)}return t};function s(t,s){for(var c,l=e.getProps(),u=e.getVariantContext(!0)||{},d=[],m=new Set,p={},h=1/0,f=function(n){var o=fh[n],f=i[o],g=null!==(c=l[o])&&void 0!==c?c:u[o],v=Jl(g),b=o===s?f.isActive:null;!1===b&&(h=n);var y=g===u[o]&&g!==l[o]&&v;if(y&&r&&e.manuallyAnimateOnMount&&(y=!1),f.protectedKeys=Object(Pl.a)({},p),!f.isActive&&null===b||!g&&!f.prevProp||dd(g)||"boolean"==typeof g)return"continue";var C=function(e,t){if("string"==typeof t)return t!==e;if(Kl(t))return!$d(t,e);return!1}(f.prevProp,g)||o===s&&f.isActive&&!y&&v||n>h&&v,A=Array.isArray(g)?g:[g],S=A.reduce(a,{});!1===b&&(S={});var w=f.prevResolvedValues,x=void 0===w?{}:w,E=Object(Pl.a)(Object(Pl.a)({},x),S),O=function(e){C=!0,m.delete(e),f.needsAnimating[e]=!0};for(var D in E){var T=S[D],B=x[D];p.hasOwnProperty(D)||(T!==B?md(T)&&md(B)?$d(T,B)?f.protectedKeys[D]=!0:O(D):void 0!==T?O(D):m.add(D):void 0!==T&&m.has(D)?O(D):f.protectedKeys[D]=!0)}f.prevProp=g,f.prevResolvedValues=S,f.isActive&&(p=Object(Pl.a)(Object(Pl.a)({},p),S)),r&&e.blockInitialAnimation&&(C=!1),C&&!y&&d.push.apply(d,Object(Pl.e)([],Object(Pl.c)(A.map((function(e){return{animation:e,options:Object(Pl.a)({type:o},t)}})))))},g=0;g<gh;g++)f(g);if(o=Object(Pl.a)({},p),m.size){var v={};m.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(v[t]=n)})),d.push({animation:v})}var b=Boolean(d.length);return r&&!1===l.initial&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?n(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==o[e]},animateChanges:s,setActive:function(t,n,o){var r;return i[t].isActive===n?Promise.resolve():(null===(r=e.variantChildren)||void 0===r||r.forEach((function(e){var i;return null===(i=e.animationState)||void 0===i?void 0:i.setActive(t,n)})),i[t].isActive=n,s(o,t))},setAnimateFunction:function(t){n=t(e)},getState:function(){return i}}}function yh(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Ch={animation:Zd((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=bh(t)),dd(n)&&Object(Eo.useEffect)((function(){return n.subscribe(t)}),[n])})),exit:Zd((function(e){var t=e.custom,n=e.visualElement,i=Object(Pl.c)(zl(),2),o=i[0],r=i[1],a=Object(Eo.useContext)(Vl);Object(Eo.useEffect)((function(){var e,i,s=null===(e=n.animationState)||void 0===e?void 0:e.setActive(bd.Exit,!o,{custom:null!==(i=null==a?void 0:a.custom)&&void 0!==i?i:t});!o&&(null==s||s.then(r))}),[o])}))},Ah=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},Sh=function(e){return Ah(e)&&e.hasOwnProperty("z")},wh=function(e,t){return Math.abs(e-t)};function xh(e,t){if(Em(e)&&Em(t))return wh(e,t);if(Ah(e)&&Ah(t)){var n=wh(e.x,t.x),i=wh(e.y,t.y),o=Sh(e)&&Sh(t)?wh(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(i,2)+Math.pow(o,2))}}var Eh=function(){function e(e,t,n){var i=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(i.lastMoveEvent&&i.lastMoveEventInfo){var e=Th(i.lastMoveEventInfo,i.history),t=null!==i.startEvent,n=xh(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,r=fp().timestamp;i.history.push(Object(Pl.a)(Object(Pl.a)({},o),{timestamp:r}));var a=i.handlers,s=a.onStart,c=a.onMove;t||(s&&s(i.lastMoveEvent,e),i.startEvent=i.lastMoveEvent),c&&c(i.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){i.lastMoveEvent=e,i.lastMoveEventInfo=Oh(t,i.transformPagePoint),wd(e)&&0===e.buttons?i.handlePointerUp(e,t):gp.update(i.updatePoint,!0)},this.handlePointerUp=function(e,t){i.end();var n=i.handlers,o=n.onEnd,r=n.onSessionEnd,a=Th(Oh(t,i.transformPagePoint),i.history);i.startEvent&&o&&o(e,a),r&&r(e,a)},!(xd(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var r=Oh(Td(e),this.transformPagePoint),a=r.point,s=fp().timestamp;this.history=[Object(Pl.a)(Object(Pl.a)({},a),{timestamp:s})];var c=t.onSessionStart;c&&c(e,Th(r,this.history)),this.removeListeners=Ud(Ld(window,"pointermove",this.handlePointerMove),Ld(window,"pointerup",this.handlePointerUp),Ld(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),up.update(this.updatePoint)},e}();function Oh(e,t){return t?{point:t(e.point)}:e}function Dh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Th(e,t){var n=e.point;return{point:n,delta:Dh(n,kh(t)),offset:Dh(n,Bh(t)),velocity:Ih(t,.1)}}function Bh(e){return e[0]}function kh(e){return e[e.length-1]}function Ih(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,i=null,o=kh(e);n>=0&&(i=e[n],!(o.timestamp-i.timestamp>Ap(t)));)n--;if(!i)return{x:0,y:0};var r=(o.timestamp-i.timestamp)/1e3;if(0===r)return{x:0,y:0};var a={x:(o.x-i.x)/r,y:(o.y-i.y)/r};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Ph(e){return e}function Lh(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}var Rh={translate:0,scale:1,origin:0,originPoint:0};function _h(){return{x:Object(Pl.a)({},Rh),y:Object(Pl.a)({},Rh)}}function jh(e){return[e("x"),e("y")]}function Mh(e,t,n){var i=t.min,o=t.max;return void 0!==i&&e<i?e=n?om(i,e,n.min):Math.max(e,i):void 0!==o&&e>o&&(e=n?om(o,e,n.max):Math.min(e,o)),e}function Fh(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Nh(e,t){var n,i=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(i=(n=Object(Pl.c)([o,i],2))[0],o=n[1]),{min:e.min+i,max:e.min+o}}function Vh(e,t,n){return{min:Wh(e,t),max:Wh(e,n)}}function Wh(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function zh(e,t){return Lh(function(e,t){var n=e.top,i=e.left,o=e.bottom,r=e.right;void 0===t&&(t=Ph);var a=t({x:i,y:n}),s=t({x:r,y:o});return{top:a.y,left:a.x,bottom:s.y,right:s.x}}(e.getBoundingClientRect(),t))}function Hh(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),xh(e,t)<n}function Uh(e){return e.max-e.min}function Zh(e,t){var n=.5,i=Uh(e),o=Uh(t);return o>i?n=im(t.min,t.max-i,e.min):i>o&&(n=im(e.min,e.max-o,t.min)),Yd(0,1,n)}function Gh(e,t,n,i){void 0===i&&(i=.5),e.origin=i,e.originPoint=om(t.min,t.max,e.origin),e.scale=Uh(n)/Uh(t),Hh(e.scale,1,1e-4)&&(e.scale=1),e.translate=om(n.min,n.max,e.origin)-e.originPoint,Hh(e.translate)&&(e.translate=0)}function $h(e,t,n,i){Gh(e.x,t.x,n.x,Yh(i.originX)),Gh(e.y,t.y,n.y,Yh(i.originY))}function Yh(e){return"number"==typeof e?e:.5}function Qh(e,t,n){e.min=n.min+t.min,e.max=e.min+Uh(t)}var Xh=function(e,t){return e.depth-t.depth};function qh(e){return e.projection.isEnabled||e.shouldResetTransform()}function Kh(e,t){void 0===t&&(t=[]);var n=e.parent;return n&&Kh(n,t),qh(e)&&t.push(e),t}function Jh(e){if(!e.shouldResetTransform()){var t,n=e.getLayoutState();e.notifyBeforeLayoutMeasure(n.layout),n.isHydrated=!0,n.layout=e.measureViewportBox(),n.layoutCorrected=(t=n.layout,{x:Object(Pl.a)({},t.x),y:Object(Pl.a)({},t.y)}),e.notifyLayoutMeasure(n.layout,e.prevViewportBox||n.layout),gp.update((function(){return e.rebaseProjectionTarget()}))}}function ef(e,t){return{min:t.min-e.min,max:t.max-e.min}}function tf(e,t){return{x:ef(e.x,t.x),y:ef(e.y,t.y)}}function nf(e,t){var n=e.getLayoutId(),i=t.getLayoutId();return n!==i||void 0===i&&e!==t}function of(e){var t=e.getProps(),n=t.drag,i=t._dragX;return n&&!i}function rf(e,t){e.min=t.min,e.max=t.max}function af(e,t,n){return n+t*(e-n)}function sf(e,t,n,i,o){return void 0!==o&&(e=af(e,o,i)),af(e,n,i)+t}function cf(e,t,n,i,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=sf(e.min,t,n,i,o),e.max=sf(e.max,t,n,i,o)}function lf(e,t){var n=t.x,i=t.y;cf(e.x,n.translate,n.scale,n.originPoint),cf(e.y,i.translate,i.scale,i.originPoint)}function uf(e,t,n,i){var o=Object(Pl.c)(i,3),r=o[0],a=o[1],s=o[2];e.min=t.min,e.max=t.max;var c=void 0!==n[s]?n[s]:.5,l=om(t.min,t.max,c);cf(e,n[r],n[a],l,n.scale)}var df=["x","scaleX","originX"],mf=["y","scaleY","originY"];function pf(e,t,n){uf(e.x,t.x,n,df),uf(e.y,t.y,n,mf)}function hf(e,t,n,i,o){return e=af(e-=t,1/n,i),void 0!==o&&(e=af(e,1/o,i)),e}function ff(e,t,n){var i=Object(Pl.c)(n,3),o=i[0],r=i[1],a=i[2];!function(e,t,n,i,o){void 0===t&&(t=0),void 0===n&&(n=1),void 0===i&&(i=.5);var r=om(e.min,e.max,i)-t;e.min=hf(e.min,t,n,r,o),e.max=hf(e.max,t,n,r,o)}(e,t[o],t[r],t[a],t.scale)}function gf(e,t){ff(e.x,t,df),ff(e.y,t,mf)}var vf=new Set;function bf(e,t,n){e[n]||(e[n]=[]),e[n].push(t)}function yf(e){return vf.add(e),function(){return vf.delete(e)}}function Cf(){if(vf.size){var e=0,t=[[]],n=[],i=function(n){return bf(t,n,e)},o=function(t){bf(n,t,e),e++};vf.forEach((function(t){t(i,o),e=0})),vf.clear();for(var r=n.length,a=0;a<=r;a++)t[a]&&t[a].forEach(Sf),n[a]&&n[a].forEach(Sf)}}var Af,Sf=function(e){return e()},wf=new WeakMap,xf=function(){function e(e){var t=e.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.elastic={x:{min:0,max:1},y:{min:0,max:1}},this.props={},this.hasMutatedConstraints=!1,this.cursorProgress={x:.5,y:.5},this.originPoint={},this.openGlobalLock=null,this.panSession=null,this.visualElement=t,this.visualElement.enableLayoutProjection(),wf.set(t,this)}return e.prototype.start=function(e,t){var n=this,i=void 0===t?{}:t,o=i.snapToCursor,r=void 0!==o&&o,a=i.cursorProgress,s=this.props.transformPagePoint;this.panSession=new Eh(e,{onSessionStart:function(e){var t;n.stopMotion();var i=function(e){return Td(e,"client")}(e).point;null===(t=n.cancelLayout)||void 0===t||t.call(n),n.cancelLayout=yf((function(e,t){var o=Kh(n.visualElement),s=function(e){var t=[],n=function(e){qh(e)&&t.push(e),e.children.forEach(n)};return e.children.forEach(n),t.sort(Xh)}(n.visualElement),c=Object(Pl.e)(Object(Pl.e)([],Object(Pl.c)(o)),Object(Pl.c)(s)),l=!1;n.isLayoutDrag()&&n.visualElement.lockProjectionTarget(),t((function(){c.forEach((function(e){return e.resetTransform()}))})),e((function(){Jh(n.visualElement),s.forEach(Jh)})),t((function(){c.forEach((function(e){return e.restoreTransform()})),r&&(l=n.snapToCursor(i))})),e((function(){Boolean(n.getAxisMotionValue("x")&&!n.isExternalDrag())||n.visualElement.rebaseProjectionTarget(!0,n.visualElement.measureViewportBox(!1)),n.visualElement.scheduleUpdateLayoutProjection();var e=n.visualElement.projection;jh((function(t){if(!l){var o=e.target[t],r=o.min,s=o.max;n.cursorProgress[t]=a?a[t]:im(r,s,i[t])}var c=n.getAxisMotionValue(t);c&&(n.originPoint[t]=c.get())}))})),t((function(){dp.update(),dp.preRender(),dp.render(),dp.postRender()})),e((function(){return n.resolveDragConstraints()}))}))},onStart:function(e,t){var i,o,r,a=n.props,s=a.drag,c=a.dragPropagation;(!s||c||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=Fd(s),n.openGlobalLock))&&(Cf(),n.isDragging=!0,n.currentDirection=null,null===(o=(i=n.props).onDragStart)||void 0===o||o.call(i,e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(bd.Drag,!0))},onMove:function(e,t){var i,o,r,a,s=n.props,c=s.dragPropagation,l=s.dragDirectionLock;if(c||n.openGlobalLock){var u=t.offset;if(l&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(u),void(null!==n.currentDirection&&(null===(o=(i=n.props).onDirectionLock)||void 0===o||o.call(i,n.currentDirection)));n.updateAxis("x",t.point,u),n.updateAxis("y",t.point,u),null===(a=(r=n.props).onDrag)||void 0===a||a.call(r,e,t),Af=e}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:s})},e.prototype.resolveDragConstraints=function(){var e=this,t=this.props,n=t.dragConstraints,i=t.dragElastic,o=this.visualElement.getLayoutState().layoutCorrected;this.constraints=!!n&&(ql(n)?this.resolveRefConstraints(o,n):function(e,t){var n=t.top,i=t.left,o=t.bottom,r=t.right;return{x:Fh(e.x,i,r),y:Fh(e.y,n,o)}}(o,n)),this.elastic=function(e){return!1===e?e=0:!0===e&&(e=.35),{x:Vh(e,"left","right"),y:Vh(e,"top","bottom")}}(i),this.constraints&&!this.hasMutatedConstraints&&jh((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(e,t){var n=this.props,i=n.onMeasureDragConstraints,o=n.transformPagePoint,r=t.current;this.constraintsBox=zh(r,o);var a=function(e,t){return{x:Nh(e.x,t.x),y:Nh(e.y,t.y)}}(e,this.constraintsBox);if(i){var s=i(function(e){var t=e.x,n=e.y;return{top:n.min,bottom:n.max,left:t.min,right:t.max}}(a));this.hasMutatedConstraints=!!s,s&&(a=Lh(s))}return a},e.prototype.cancelDrag=function(){var e,t;this.visualElement.unlockProjectionTarget(),null===(e=this.cancelLayout)||void 0===e||e.call(this),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(bd.Drag,!1)},e.prototype.stop=function(e,t){var n,i,o;null===(n=this.panSession)||void 0===n||n.end(),this.panSession=null;var r=this.isDragging;if(this.cancelDrag(),r){var a=t.velocity;this.animateDragEnd(a),null===(o=(i=this.props).onDragEnd)||void 0===o||o.call(i,e,t)}},e.prototype.snapToCursor=function(e){var t=this;return jh((function(n){if(Ef(n,t.props.drag,t.currentDirection)){var i=t.getAxisMotionValue(n);if(!i)return t.cursorProgress[n]=.5,!0;var o=t.visualElement.getLayoutState().layout,r=o[n].max-o[n].min,a=o[n].min+r/2,s=e[n]-a;t.originPoint[n]=e[n],i.set(s)}})).includes(!0)},e.prototype.updateAxis=function(e,t,n){if(Ef(e,this.props.drag,this.currentDirection))return this.getAxisMotionValue(e)?this.updateAxisMotionValue(e,n):this.updateVisualElementAxis(e,t)},e.prototype.updateAxisMotionValue=function(e,t){var n=this.getAxisMotionValue(e);if(t&&n){var i=this.originPoint[e]+t[e],o=this.constraints?Mh(i,this.constraints[e],this.elastic[e]):i;n.set(o)}},e.prototype.updateVisualElementAxis=function(e,t){var n,i=this.visualElement.getLayoutState().layout[e],o=i.max-i.min,r=this.cursorProgress[e],a=function(e,t,n,i,o){var r=e-t*n;return i?Mh(r,i,o):r}(t[e],o,r,null===(n=this.constraints)||void 0===n?void 0:n[e],this.elastic[e]);this.visualElement.setProjectionTargetAxis(e,a,a+o)},e.prototype.setProps=function(e){var t=e.drag,n=void 0!==t&&t,i=e.dragDirectionLock,o=void 0!==i&&i,r=e.dragPropagation,a=void 0!==r&&r,s=e.dragConstraints,c=void 0!==s&&s,l=e.dragElastic,u=void 0===l?.35:l,d=e.dragMomentum,m=void 0===d||d,p=Object(Pl.d)(e,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=Object(Pl.a)({drag:n,dragDirectionLock:o,dragPropagation:a,dragConstraints:c,dragElastic:u,dragMomentum:m},p)},e.prototype.getAxisMotionValue=function(e){var t=this.props,n=t.layout,i=t.layoutId,o="_drag"+e.toUpperCase();return this.props[o]?this.props[o]:n||void 0!==i?void 0:this.visualElement.getValue(e,0)},e.prototype.isLayoutDrag=function(){return!this.getAxisMotionValue("x")},e.prototype.isExternalDrag=function(){var e=this.props,t=e._dragX,n=e._dragY;return t||n},e.prototype.animateDragEnd=function(e){var t=this,n=this.props,i=n.drag,o=n.dragMomentum,r=n.dragElastic,a=n.dragTransition,s=function(e,t){void 0===t&&(t=!0);var n,i=e.getProjectionParent();return!!i&&(t?gf(n=tf(i.projection.target,e.projection.target),i.getLatestValues()):n=tf(i.getLayoutState().layout,e.getLayoutState().layout),jh((function(t){return e.setProjectionTargetAxis(t,n[t].min,n[t].max,!0)})),!0)}(this.visualElement,this.isLayoutDrag()&&!this.isExternalDrag()),c=this.constraints||{};if(s&&Object.keys(c).length&&this.isLayoutDrag()){var l=this.visualElement.getProjectionParent();if(l){var u=tf(l.projection.targetFinal,c);jh((function(e){var t=u[e],n=t.min,i=t.max;c[e]={min:isNaN(n)?void 0:n,max:isNaN(i)?void 0:i}}))}}var d=jh((function(n){var l;if(Ef(n,i,t.currentDirection)){var u=null!==(l=null==c?void 0:c[n])&&void 0!==l?l:{},d=r?200:1e6,m=r?40:1e7,p=Object(Pl.a)(Object(Pl.a)({type:"inertia",velocity:o?e[n]:0,bounceStiffness:d,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10},a),u);return t.getAxisMotionValue(n)?t.startAxisValueAnimation(n,p):t.visualElement.startLayoutAnimation(n,p,s)}}));return Promise.all(d).then((function(){var e,n;null===(n=(e=t.props).onDragTransitionEnd)||void 0===n||n.call(e)}))},e.prototype.stopMotion=function(){var e=this;jh((function(t){var n=e.getAxisMotionValue(t);n?n.stop():e.visualElement.stopLayoutAnimation()}))},e.prototype.startAxisValueAnimation=function(e,t){var n=this.getAxisMotionValue(e);if(n){var i=n.get();return n.set(i),n.set(i),Xp(e,n,0,t)}},e.prototype.scalePoint=function(){var e=this,t=this.props,n=t.drag;if(ql(t.dragConstraints)&&this.constraintsBox){this.stopMotion();var i={x:0,y:0};jh((function(t){i[t]=Zh(e.visualElement.projection.target[t],e.constraintsBox[t])})),this.updateConstraints((function(){jh((function(t){if(Ef(t,n,null)){var o=function(e,t,n){var i=e.max-e.min,o=om(t.min,t.max-i,n);return{min:o,max:o+i}}(e.visualElement.projection.target[t],e.constraintsBox[t],i[t]),r=o.min,a=o.max;e.visualElement.setProjectionTargetAxis(t,r,a)}}))})),setTimeout(Cf,1)}},e.prototype.updateConstraints=function(e){var t=this;this.cancelLayout=yf((function(n,i){var o=Kh(t.visualElement);i((function(){return o.forEach((function(e){return e.resetTransform()}))})),n((function(){return Jh(t.visualElement)})),i((function(){return o.forEach((function(e){return e.restoreTransform()}))})),n((function(){t.resolveDragConstraints()})),e&&i(e)}))},e.prototype.mount=function(e){var t=this,n=Ld(e.getInstance(),"pointerdown",(function(e){var n=t.props,i=n.drag,o=n.dragListener;i&&(void 0===o||o)&&t.start(e)})),i=Ad(window,"resize",(function(){t.scalePoint()})),o=e.onLayoutUpdate((function(){t.isDragging&&t.resolveDragConstraints()})),r=e.prevDragCursor;return r&&this.start(Af,{cursorProgress:r}),function(){null==n||n(),null==i||i(),null==o||o(),t.cancelDrag()}},e}();function Ef(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var Of,Df,Tf={pan:Zd((function(e){var t=e.onPan,n=e.onPanStart,i=e.onPanEnd,o=e.onPanSessionStart,r=e.visualElement,a=t||n||i||o,s=Object(Eo.useRef)(null),c=Object(Eo.useContext)(Fl).transformPagePoint,l={onSessionStart:o,onStart:n,onMove:t,onEnd:function(e,t){s.current=null,i&&i(e,t)}};Object(Eo.useEffect)((function(){null!==s.current&&s.current.updateHandlers(l)})),Rd(r,"pointerdown",a&&function(e){s.current=new Eh(e,l,{transformPagePoint:c})}),zd((function(){return s.current&&s.current.end()}))})),drag:Zd((function(e){var t=e.dragControls,n=e.visualElement,i=Object(Eo.useContext)(Fl).transformPagePoint,o=Wl((function(){return new xf({visualElement:n})}));o.setProps(Object(Pl.a)(Object(Pl.a)({},e),{transformPagePoint:i})),Object(Eo.useEffect)((function(){return t&&t.subscribe(o)}),[o]),Object(Eo.useEffect)((function(){return o.mount(n)}),[])}))};function Bf(e){return"string"==typeof e&&e.startsWith("var(--")}!function(e){e[e.Entering=0]="Entering",e[e.Present=1]="Present",e[e.Exiting=2]="Exiting"}(Of||(Of={})),function(e){e[e.Hide=0]="Hide",e[e.Show=1]="Show"}(Df||(Df={}));var kf=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function If(e,t,n){void 0===n&&(n=1);var i=Object(Pl.c)(function(e){var t=kf.exec(e);if(!t)return[,];var n=Object(Pl.c)(t,3);return[n[1],n[2]]}(e),2),o=i[0],r=i[1];if(o){var a=window.getComputedStyle(t).getPropertyValue(o);return a?a.trim():Bf(r)?If(r,t,n+1):r}}function Pf(e,t){return e/(t.max-t.min)*100}var Lf="_$css";var Rf={process:function(e,t,n){var i=n.target;if("string"==typeof e){if(!Pu.test(e))return e;e=parseFloat(e)}return Pf(e,i.x)+"% "+Pf(e,i.y)+"%"}},_f={borderRadius:Object(Pl.a)(Object(Pl.a)({},Rf),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Rf,borderTopRightRadius:Rf,borderBottomLeftRadius:Rf,borderBottomRightRadius:Rf,boxShadow:{process:function(e,t){var n=t.delta,i=t.treeScale,o=e,r=e.includes("var("),a=[];r&&(e=e.replace(kf,(function(e){return a.push(e),Lf})));var s=xm.parse(e);if(s.length>5)return o;var c=xm.createTransformer(e),l="number"!=typeof s[0]?1:0,u=n.x.scale*i.x,d=n.y.scale*i.y;s[0+l]/=u,s[1+l]/=d;var m=om(u,d,.5);"number"==typeof s[2+l]&&(s[2+l]/=m),"number"==typeof s[3+l]&&(s[3+l]/=m);var p=c(s);if(r){var h=0;p=p.replace(Lf,(function(){var e=a[h];return h++,e}))}return p}}},jf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.frameTarget={x:{min:0,max:1},y:{min:0,max:1}},t.currentAnimationTarget={x:{min:0,max:1},y:{min:0,max:1}},t.isAnimating={x:!1,y:!1},t.stopAxisAnimation={x:void 0,y:void 0},t.isAnimatingTree=!1,t.animate=function(e,n,i){void 0===i&&(i={});var o=i.originBox,r=i.targetBox,a=i.visibilityAction,s=i.shouldStackAnimate,c=i.onComplete,l=i.prevParent,u=Object(Pl.d)(i,["originBox","targetBox","visibilityAction","shouldStackAnimate","onComplete","prevParent"]),d=t.props,m=d.visualElement,p=d.layout;if(!1===s)return t.isAnimatingTree=!1,t.safeToRemove();if(!t.isAnimatingTree||!0===s){s&&(t.isAnimatingTree=!0),n=o||n,e=r||e;var h=!1,f=m.getProjectionParent();if(f){var g=f.prevViewportBox,v=f.getLayoutState().layout;l&&(r&&(v=l.getLayoutState().layout),o&&!nf(l,f)&&l.prevViewportBox&&(g=l.prevViewportBox)),g&&zf(l,o,r)&&(h=!0,n=tf(g,n),e=tf(v,e))}var b=Mf(n,e),y=jh((function(i){var o,r;if("position"===p){var s=e[i].max-e[i].min;n[i].max=n[i].min+s}if(!m.projection.isTargetLocked)return void 0===a?b?t.animateAxis(i,e[i],n[i],Object(Pl.a)(Object(Pl.a)({},u),{isRelative:h})):(null===(r=(o=t.stopAxisAnimation)[i])||void 0===r||r.call(o),m.setProjectionTargetAxis(i,e[i].min,e[i].max,h)):void m.setVisibility(a===Df.Show)}));return m.syncRender(),Promise.all(y).then((function(){t.isAnimatingTree=!1,c&&c(),m.notifyLayoutAnimationComplete()}))}},t}return Object(Pl.b)(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.visualElement;t.animateMotionValue=Xp,t.enableLayoutProjection(),this.unsubLayoutReady=t.onLayoutUpdate(this.animate),t.layoutSafeToRemove=function(){return e.safeToRemove()},function(e){for(var t in e)uu[t]=e[t]}(_f)},t.prototype.componentWillUnmount=function(){var e=this;this.unsubLayoutReady(),jh((function(t){var n,i;return null===(i=(n=e.stopAxisAnimation)[t])||void 0===i?void 0:i.call(n)}))},t.prototype.animateAxis=function(e,t,n,i){var o,r,a=this,s=void 0===i?{}:i,c=s.transition,l=s.isRelative;if(!this.isAnimating[e]||!Vf(t,this.currentAnimationTarget[e])){null===(r=(o=this.stopAxisAnimation)[e])||void 0===r||r.call(o),this.isAnimating[e]=!0;var u=this.props.visualElement,d=this.frameTarget[e],m=u.getProjectionAnimationProgress()[e];m.clearListeners(),m.set(0),m.set(0);var p=function(){var i=m.get()/1e3;!function(e,t,n,i){e.min=om(t.min,n.min,i),e.max=om(t.max,n.max,i)}(d,n,t,i),u.setProjectionTargetAxis(e,d.min,d.max,l)};p();var h=m.onChange(p);this.stopAxisAnimation[e]=function(){a.isAnimating[e]=!1,m.stop(),h()},this.currentAnimationTarget[e]=t;var f=c||u.getDefaultTransition()||Wf;return Xp("x"===e?"layoutX":"layoutY",m,1e3,f&&Qp(f,"layout")).then(this.stopAxisAnimation[e])}},t.prototype.safeToRemove=function(){var e,t;null===(t=(e=this.props).safeToRemove)||void 0===t||t.call(e)},t.prototype.render=function(){return null},t}(Eo.Component);function Mf(e,t){return!(Nf(e)||Nf(t)||Vf(e.x,t.x)&&Vf(e.y,t.y))}var Ff={min:0,max:0};function Nf(e){return Vf(e.x,Ff)&&Vf(e.y,Ff)}function Vf(e,t){return e.min===t.min&&e.max===t.max}var Wf={duration:.45,ease:[.4,0,.1,1]};function zf(e,t,n){return e||!e&&!(t||n)}var Hf={layoutReady:function(e){return e.notifyLayoutReady()}};function Uf(){var e=new Set;return{add:function(t){return e.add(t)},flush:function(t){var n=void 0===t?Hf:t,i=n.layoutReady,o=n.parent;yf((function(t,n){var r=Array.from(e).sort(Xh),a=o?Kh(o):[];n((function(){Object(Pl.e)(Object(Pl.e)([],Object(Pl.c)(a)),Object(Pl.c)(r)).forEach((function(e){return e.resetTransform()}))})),t((function(){r.forEach(Jh)})),n((function(){a.forEach((function(e){return e.restoreTransform()})),r.forEach(i)})),t((function(){r.forEach((function(e){e.isPresent&&(e.presence=Of.Present)}))})),n((function(){dp.preRender(),dp.render()})),t((function(){gp.postRender((function(){return r.forEach(Zf)})),e.clear()}))})),Cf()}}}function Zf(e){e.prevViewportBox=e.projection.target}var Gf=Object(Eo.createContext)(Uf()),$f=Object(Eo.createContext)(Uf());function Yf(e){return!!e.forceUpdate}var Qf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Pl.b)(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.syncLayout,n=e.framerSyncLayout,i=e.visualElement;Yf(t)&&t.register(i),Yf(n)&&n.register(i),i.onUnmount((function(){Yf(t)&&t.remove(i),Yf(n)&&n.remove(i)}))},t.prototype.getSnapshotBeforeUpdate=function(){var e=this.props,t=e.syncLayout,n=e.visualElement;return Yf(t)?t.syncUpdate():(!function(e){e.shouldResetTransform()||(e.prevViewportBox=e.measureViewportBox(!1),e.rebaseProjectionTarget(!1,e.prevViewportBox))}(n),t.add(n)),null},t.prototype.componentDidUpdate=function(){var e=this.props.syncLayout;Yf(e)||e.flush()},t.prototype.render=function(){return null},t}(Eo.default.Component);var Xf={measureLayout:function(e){var t=Object(Eo.useContext)(Gf),n=Object(Eo.useContext)($f);return Eo.default.createElement(Qf,Object(Pl.a)({},e,{syncLayout:t,framerSyncLayout:n}))},layoutAnimation:function(e){var t=Object(Pl.c)(zl(),2)[1];return Eo.createElement(jf,Object(Pl.a)({},e,{safeToRemove:t}))}};function qf(){return{isHydrated:!1,layout:{x:{min:0,max:1},y:{min:0,max:1}},layoutCorrected:{x:{min:0,max:1},y:{min:0,max:1}},treeScale:{x:1,y:1},delta:_h(),deltaFinal:_h(),deltaTransform:""}}var Kf=qf();function Jf(e,t,n){var i=e.x,o=e.y,r="translate3d("+i.translate/t.x+"px, "+o.translate/t.y+"px, 0) ";if(n){var a=n.rotate,s=n.rotateX,c=n.rotateY;a&&(r+="rotate("+a+") "),s&&(r+="rotateX("+s+") "),c&&(r+="rotateY("+c+") ")}return r+="scale("+i.scale+", "+o.scale+")",n||r!==tg?r:""}function eg(e){var t=e.deltaFinal;return 100*t.x.origin+"% "+100*t.y.origin+"% 0"}var tg=Jf(Kf.delta,Kf.treeScale,{x:1,y:1}),ng=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];function ig(e,t,n,i){var o,r,a=e.delta,s=e.layout,c=e.layoutCorrected,l=e.treeScale,u=t.target;r=s,rf((o=c).x,r.x),rf(o.y,r.y),function(e,t,n){var i=n.length;if(i){var o,r;t.x=t.y=1;for(var a=0;a<i;a++)r=(o=n[a]).getLayoutState().delta,t.x*=r.x.scale,t.y*=r.y.scale,lf(e,r),of(o)&&pf(e,e,o.getLatestValues())}}(c,l,n),$h(a,c,u,i)}var og=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){qp(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){Kp(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Xh),this.isDirty=!1,this.children.forEach(e)},e}();var rg=function(e){var t=e.treeType,n=void 0===t?"":t,i=e.build,o=e.getBaseTarget,r=e.makeTargetAnimatable,a=e.measureViewportBox,s=e.render,c=e.readValueFromInstance,l=e.resetTransform,u=e.restoreTransform,d=e.removeValueFromRenderState,m=e.sortNodePosition,p=e.scrapeMotionValuesFromProps;return function(e,t){var h=e.parent,f=e.props,g=e.presenceId,v=e.blockInitialAnimation,b=e.visualState;void 0===t&&(t={});var y,C,A,S,w,x,E=b.latestValues,O=b.renderState,D=function(){var e=ng.map((function(){return new Jp})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){return ng.forEach((function(i){var o;null===(o=t[i])||void 0===o||o.call(t);var r="on"+i,a=e[r];a&&(t[i]=n[r](a))}))}};return e.forEach((function(e,t){n["on"+ng[t]]=function(t){return e.add(t)},n["notify"+ng[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,Object(Pl.e)([],Object(Pl.c)(t)))}})),n}(),T={isEnabled:!1,isHydrated:!1,isTargetLocked:!1,target:{x:{min:0,max:1},y:{min:0,max:1}},targetFinal:{x:{min:0,max:1},y:{min:0,max:1}}},B=T,k=E,I=qf(),P=!1,L=new Map,R=new Map,_={},j=Object(Pl.a)({},E);function M(){y&&(G.isProjectionReady()&&(pf(B.targetFinal,B.target,k),$h(I.deltaFinal,I.layoutCorrected,B.targetFinal,E)),F(),s(y,O))}function F(){var e=E;if(S&&S.isActive()){var n=S.getCrossfadeState(G);n&&(e=n)}i(G,O,e,B,I,t,f)}function N(){D.notifyUpdate(E)}function V(){G.layoutTree.forEach(sg)}var W=p(f);for(var z in W){var H=W[z];void 0!==E[z]&&yu(H)&&H.set(E[z],!1)}var U=nu(f),Z=iu(f),G=Object(Pl.a)(Object(Pl.a)({treeType:n,current:null,depth:h?h.depth+1:0,parent:h,children:new Set,path:h?Object(Pl.e)(Object(Pl.e)([],Object(Pl.c)(h.path)),[h]):[],layoutTree:h?h.layoutTree:new og,presenceId:g,projection:T,variantChildren:Z?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==h?void 0:h.isMounted()),blockInitialAnimation:v,isMounted:function(){return Boolean(y)},mount:function(e){y=G.current=e,G.pointTo(G),Z&&h&&!U&&(x=null==h?void 0:h.addVariantChild(G)),null==h||h.children.add(G)},unmount:function(){up.update(N),up.render(M),up.preRender(G.updateLayoutProjection),R.forEach((function(e){return e()})),G.stopLayoutAnimation(),G.layoutTree.remove(G),null==x||x(),null==h||h.children.delete(G),null==A||A(),D.clearAllListeners()},addVariantChild:function(e){var t,n=G.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return m&&n===e.treeType?m(G.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return Z?G:null==h?void 0:h.getClosestVariantNode()},scheduleUpdateLayoutProjection:h?h.scheduleUpdateLayoutProjection:function(){return gp.preRender(G.updateTreeLayoutProjection,!1,!0)},getLayoutId:function(){return f.layoutId},getInstance:function(){return y},getStaticValue:function(e){return E[e]},setStaticValue:function(e,t){return E[e]=t},getLatestValues:function(){return E},setVisibility:function(e){G.isVisible!==e&&(G.isVisible=e,G.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),r(G,e,f,t)},addValue:function(e,t){G.hasValue(e)&&G.removeValue(e),L.set(e,t),E[e]=t.get(),function(e,t){var n=t.onChange((function(t){E[e]=t,f.onUpdate&&gp.update(N,!1,!0)})),i=t.onRenderRequest(G.scheduleRender);R.set(e,(function(){n(),i()}))}(e,t)},removeValue:function(e){var t;L.delete(e),null===(t=R.get(e))||void 0===t||t(),R.delete(e),delete E[e],d(e,O)},hasValue:function(e){return L.has(e)},getValue:function(e,t){var n=L.get(e);return void 0===n&&void 0!==t&&(n=th(t),G.addValue(e,n)),n},forEachValue:function(e){return L.forEach(e)},readValue:function(e){var n;return null!==(n=E[e])&&void 0!==n?n:c(y,e,t)},setBaseTarget:function(e,t){j[e]=t},getBaseTarget:function(e){if(o){var t=o(f,e);if(void 0!==t&&!yu(t))return t}return j[e]}},D),{build:function(){return F(),O},scheduleRender:function(){gp.render(M,!1,!0)},syncRender:M,setProps:function(e){f=e,D.updatePropListeners(e),_=function(e,t,n){var i;for(var o in t){var r=t[o],a=n[o];if(yu(r))e.addValue(o,r);else if(yu(a))e.addValue(o,th(r));else if(a!==r)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(r)}else e.addValue(o,th(null!==(i=e.getStaticValue(o))&&void 0!==i?i:r))}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}(G,p(f),_)},getProps:function(){return f},getVariant:function(e){var t;return null===(t=f.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return f.transition},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==h?void 0:h.getVariantContext();if(!U){var t=(null==h?void 0:h.getVariantContext())||{};return void 0!==f.initial&&(t.initial=f.initial),t}for(var n={},i=0;i<ug;i++){var o=lg[i],r=f[o];(Jl(r)||!1===r)&&(n[o]=r)}return n},enableLayoutProjection:function(){T.isEnabled=!0,G.layoutTree.add(G)},lockProjectionTarget:function(){T.isTargetLocked=!0},unlockProjectionTarget:function(){G.stopLayoutAnimation(),T.isTargetLocked=!1},getLayoutState:function(){return I},setCrossfader:function(e){S=e},isProjectionReady:function(){return T.isEnabled&&T.isHydrated&&I.isHydrated},startLayoutAnimation:function(e,t,n){void 0===n&&(n=!1);var i=G.getProjectionAnimationProgress()[e],o=n?T.relativeTarget[e]:T.target[e],r=o.min,a=o.max-r;return i.clearListeners(),i.set(r),i.set(r),i.onChange((function(t){G.setProjectionTargetAxis(e,t,t+a,n)})),G.animateMotionValue(e,i,0,t)},stopLayoutAnimation:function(){jh((function(e){return G.getProjectionAnimationProgress()[e].stop()}))},measureViewportBox:function(e){void 0===e&&(e=!0);var n=a(y,t);return e||gf(n,E),n},getProjectionAnimationProgress:function(){return w||(w={x:th(0),y:th(0)}),w},setProjectionTargetAxis:function(e,t,n,i){var o;void 0===i&&(i=!1),i?(T.relativeTarget||(T.relativeTarget={x:{min:0,max:1},y:{min:0,max:1}}),o=T.relativeTarget[e]):(T.relativeTarget=void 0,o=T.target[e]),T.isHydrated=!0,o.min=t,o.max=n,P=!0,D.notifySetAxisTarget()},rebaseProjectionTarget:function(e,t){void 0===t&&(t=I.layout);var n=G.getProjectionAnimationProgress(),i=n.x,o=n.y,r=!(T.relativeTarget||T.isTargetLocked||i.isAnimating()||o.isAnimating());(e||r)&&jh((function(e){var n=t[e],i=n.min,o=n.max;G.setProjectionTargetAxis(e,i,o)}))},notifyLayoutReady:function(e){!function(e){var t=e.getProjectionParent();if(t){var n=tf(t.getLayoutState().layout,e.getLayoutState().layout);jh((function(t){e.setProjectionTargetAxis(t,n[t].min,n[t].max,!0)}))}else e.rebaseProjectionTarget()}(G),G.notifyLayoutUpdate(I.layout,G.prevViewportBox||I.layout,e)},resetTransform:function(){return l(G,y,f)},restoreTransform:function(){return u(y,O)},updateLayoutProjection:function(){if(G.isProjectionReady()){var e=I.delta,t=I.treeScale,n=t.x,i=t.y,o=I.deltaTransform;ig(I,B,G.path,E),P&&G.notifyViewportBoxUpdate(B.target,e),P=!1;var r=Jf(e,t);r===o&&n===t.x&&i===t.y||G.scheduleRender(),I.deltaTransform=r}},updateTreeLayoutProjection:function(){G.layoutTree.forEach(ag),gp.preRender(V,!1,!0)},getProjectionParent:function(){if(void 0===C){for(var e=!1,t=G.path.length-1;t>=0;t--){var n=G.path[t];if(n.projection.isEnabled){e=n;break}}C=e}return C},resolveRelativeTargetBox:function(){var e=G.getProjectionParent();if(T.relativeTarget&&e&&(function(e,t){Qh(e.target.x,e.relativeTarget.x,t.target.x),Qh(e.target.y,e.relativeTarget.y,t.target.y)}(T,e.projection),of(e))){var t=T.target;pf(t,t,e.getLatestValues())}},shouldResetTransform:function(){return Boolean(f._layoutResetTransform)},pointTo:function(e){B=e.projection,k=e.getLatestValues(),null==A||A(),A=Ud(e.onSetAxisTarget(G.scheduleUpdateLayoutProjection),e.onLayoutAnimationComplete((function(){var e;G.isPresent?G.presence=Of.Present:null===(e=G.layoutSafeToRemove)||void 0===e||e.call(G)})))},isPresent:!0,presence:Of.Entering});return G}};function ag(e){e.resolveRelativeTargetBox()}function sg(e){e.updateLayoutProjection()}var cg,lg=Object(Pl.e)(["initial"],Object(Pl.c)(hh)),ug=lg.length,dg=new Set(["width","height","top","left","right","bottom","x","y"]),mg=function(e){return dg.has(e)},pg=function(e,t){e.set(t,!1),e.set(t)},hg=function(e){return e===ju||e===Pu};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(cg||(cg={}));var fg=function(e,t){return parseFloat(e.split(", ")[t])},gg=function(e,t){return function(n,i){var o=i.transform;if("none"===o||!o)return 0;var r=o.match(/^matrix3d\((.+)\)$/);if(r)return fg(r[1],t);var a=o.match(/^matrix\((.+)\)$/);return a?fg(a[1],e):0}},vg=new Set(["x","y","z"]),bg=mu.filter((function(e){return!vg.has(e)}));var yg={width:function(e){var t=e.x;return t.max-t.min},height:function(e){var t=e.y;return t.max-t.min},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,i=t.top;return parseFloat(i)+(n.max-n.min)},right:function(e,t){var n=e.x,i=t.left;return parseFloat(i)+(n.max-n.min)},x:gg(4,13),y:gg(5,14)},Cg=function(e,t,n,i){void 0===n&&(n={}),void 0===i&&(i={}),t=Object(Pl.a)({},t),i=Object(Pl.a)({},i);var o=Object.keys(t).filter(mg),r=[],a=!1,s=[];if(o.forEach((function(o){var c=e.getValue(o);if(e.hasValue(o)){var l,u=n[o],d=t[o],m=oh(u);if(md(d))for(var p=d.length,h=null===d[0]?1:0;h<p;h++)l?oh(d[h]):(l=oh(d[h]))===m||hg(m)&&hg(l);else l=oh(d);if(m!==l)if(hg(m)&&hg(l)){var f=c.get();"string"==typeof f&&c.set(parseFloat(f)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&l===Pu&&(t[o]=d.map(parseFloat))}else(null==m?void 0:m.transform)&&(null==l?void 0:l.transform)&&(0===u||0===d)?0===u?c.set(l.transform(u)):t[o]=m.transform(d):(a||(r=function(e){var t=[];return bg.forEach((function(n){var i=e.getValue(n);void 0!==i&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),a=!0),s.push(o),i[o]=void 0!==i[o]?i[o]:t[o],pg(c,d))}})),s.length){var c=function(e,t,n){var i=t.measureViewportBox(),o=t.getInstance(),r=getComputedStyle(o),a=r.display,s={top:r.top,left:r.left,bottom:r.bottom,right:r.right,transform:r.transform};"none"===a&&t.setStaticValue("display",e.display||"block"),t.syncRender();var c=t.measureViewportBox();return n.forEach((function(n){var o=t.getValue(n);pg(o,yg[n](i,s)),e[n]=yg[n](c,r)})),e}(t,e,s);return r.length&&r.forEach((function(t){var n=Object(Pl.c)(t,2),i=n[0],o=n[1];e.getValue(i).set(o)})),e.syncRender(),{target:c,transitionEnd:i}}return{target:t,transitionEnd:i}};function Ag(e,t,n,i){return function(e){return Object.keys(e).some(mg)}(t)?Cg(e,t,n,i):{target:t,transitionEnd:i}}var Sg=function(e,t,n,i){var o=function(e,t,n){var i,o=Object(Pl.d)(t,[]),r=e.getInstance();if(!(r instanceof HTMLElement))return{target:o,transitionEnd:n};for(var a in n&&(n=Object(Pl.a)({},n)),e.forEachValue((function(e){var t=e.get();if(Bf(t)){var n=If(t,r);n&&e.set(n)}})),o){var s=o[a];if(Bf(s)){var c=If(s,r);c&&(o[a]=c,n&&(null!==(i=n[a])&&void 0!==i||(n[a]=s)))}}return{target:o,transitionEnd:n}}(e,t,i);return Ag(e,t=o.target,n,i=o.transitionEnd)};var wg={treeType:"dom",readValueFromInstance:function(e,t){if(fu(t)){var n=zp(t);return n&&n.default||0}var i,o=(i=e,window.getComputedStyle(i));return(Au(t)?o.getPropertyValue(t):o[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return zh(e,t.transformPagePoint)},resetTransform:function(e,t,n){var i=n.transformTemplate;t.style.transform=i?i({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,i=t.style;delete n[e],delete i[e]},makeTargetAnimatable:function(e,t,n,i){var o=n.transformValues;void 0===i&&(i=!0);var r=t.transition,a=t.transitionEnd,s=Object(Pl.d)(t,["transition","transitionEnd"]),c=function(e,t,n){var i,o,r={};for(var a in e)r[a]=null!==(i=lh(a,t))&&void 0!==i?i:null===(o=n.getValue(a))||void 0===o?void 0:o.get();return r}(s,r||{},e);if(o&&(a&&(a=o(a)),s&&(s=o(s)),c&&(c=o(c))),i){!function(e,t,n){var i,o,r,a,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),c=s.length;if(c)for(var l=0;l<c;l++){var u=s[l],d=t[u],m=null;Array.isArray(d)&&(m=d[0]),null===m&&(m=null!==(o=null!==(i=n[u])&&void 0!==i?i:e.readValue(u))&&void 0!==o?o:t[u]),null!=m&&("string"==typeof m&&/^\-?\d*\.?\d+$/.test(m)?m=parseFloat(m):!ah(m)&&xm.test(d)&&(m=Hp(u,d)),e.addValue(u,th(m)),null!==(r=(a=n)[u])&&void 0!==r||(a[u]=m),e.setBaseTarget(u,m))}}(e,s,c);var l=Sg(e,s,c,a);a=l.transitionEnd,s=l.target}return Object(Pl.a)({transition:r,transitionEnd:a},s)},scrapeMotionValuesFromProps:ld,build:function(e,t,n,i,o,r,a){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden");var s=i.isEnabled&&o.isHydrated;Wu(t,n,i,o,r,a.transformTemplate,s?Jf:void 0,s?eg:void 0)},render:ad},xg=rg(wg),Eg=rg(Object(Pl.a)(Object(Pl.a)({},wg),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return fu(t)?(null===(n=zp(t))||void 0===n?void 0:n.default)||0:(t=sd.has(t)?t:rd(t),e.getAttribute(t))},scrapeMotionValuesFromProps:ud,build:function(e,t,n,i,o,r,a){var s=i.isEnabled&&o.isHydrated;ed(t,n,i,o,r,a.transformTemplate,s?Jf:void 0,s?eg:void 0)},render:cd})),Og=function(e,t){return lu(e)?Eg(t,{enableHardwareAcceleration:!1}):xg(t,{enableHardwareAcceleration:!0})},Dg=Object(Pl.a)(Object(Pl.a)(Object(Pl.a)(Object(Pl.a)({},Ch),Gd),Tf),Xf),Tg=su((function(e,t){return Cd(e,t,Dg,Og)}));class Bg{constructor(e){this.highlighted=!1,this.code=e,this.points=[]}}var kg=n(10);class Ig{static now(){return Date.now()}}function Pg(e){var t=Wl((function(){return th(e)}));if(Object(Eo.useContext)(Fl).isStatic){var n=Object(Pl.c)(Object(Eo.useState)(e),2)[1];Object(Eo.useEffect)((function(){return t.onChange(n)}),[])}return t}var Lg=function(e){return function(e){return"object"==typeof e&&e.mix}(e)?e.mix:void 0};function Rg(e,t){var n=Pg(t()),i=function(){return n.set(t())};return i(),function(e,t){Object(Eo.useEffect)((function(){var n=e.map((function(e){return e.onChange(t)}));return function(){return n.forEach((function(e){return e()}))}}))}(e,(function(){return gp.update(i,!1,!0)})),n}function _g(e,t,n,i){var o="function"==typeof t?t:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=!Array.isArray(e[0]),i=n?0:-1,o=e[0+i],r=e[1+i],a=e[2+i],s=e[3+i],c=Lm(r,a,Object(Pl.a)({mixer:Lg(a[0])},s));return n?c(o):c}(t,n,i);return Array.isArray(e)?jg(e,o):jg([e],(function(e){var t=Object(Pl.c)(e,1)[0];return o(t)}))}function jg(e,t){var n=Wl((function(){return[]}));return Rg(e,(function(){n.length=0;for(var i=e.length,o=0;o<i;o++)n[o]=e[o].get();return t(n)}))}function Mg(e,t,n){void 0===n&&(n={});var i=yu(e)?e:th(e);return Xp("",i,t,n),{stop:function(){return i.stop()}}}var Fg=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n};class Ng extends Eo.default.Component{constructor(e){super(e),this.state={element:e.element}}update(e){this.setState({element:e})}style(e){this.customStyle=e,this.forceUpdate()}render(){var e,t,n,i,o,r,a,s,c;const l=this.state.element,u=this.props.configuration.style;!l.highlighted&&this.props.configuration.automaticSelectionEnabled&&this.props.onClick(l);const d=null!==(t=null===(e=this.customStyle)||void 0===e?void 0:e.fillColor)&&void 0!==t?t:l.highlighted?u.highlightedPolygonFillColor:u.polygonFillColor,m=null!==(i=null===(n=this.customStyle)||void 0===n?void 0:n.strokeColor)&&void 0!==i?i:l.highlighted?u.highlightedPolygonStrokeColor:u.polygonStrokeColor,p=null!==(r=null===(o=this.customStyle)||void 0===o?void 0:o.strokeWidth)&&void 0!==r?r:l.highlighted?u.highlightedPolygonStrokeWidth:u.polygonStrokeWidth,h=null!==(s=null===(a=this.customStyle)||void 0===a?void 0:a.cornerRadius)&&void 0!==s?s:l.highlighted?u.highlightedPolygonCornerRadius:u.polygonCornerRadius,f=null!==(c=this.props.animateToPoints)&&void 0!==c?c:l.points;return Eo.default.createElement(Vg,{points:f,onClick:()=>{this.props.onClick&&this.props.onClick(l)},fill:d,stroke:m,strokeWidth:p,cornerRadius:h})}}function Vg(e){var{points:t,cornerRadius:n}=e,i=Fg(e,["points","cornerRadius"]);const o=[t[0].x,t[0].y,t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y],r=o.map(Pg),a=_g(r,(([e,t,i,o,r,a,s,c])=>{const l=[{x:e,y:t},{x:i,y:o},{x:r,y:a},{x:s,y:c}];return kg.a.toSvgPathStringWithRoundedCorners(l,n)}));return Object(Eo.useEffect)((()=>{const e=[];for(let t=0;t<o.length;t++)e.push(Mg(r[t],o[t]));return()=>{e.forEach((e=>e.stop()))}}),[t]),Eo.default.createElement(Tg.path,Object.assign({d:a},i))}class Wg{constructor(){this.detectedAt=0}update(e,t,n,i,o,r){this.polygon=e,this.polygonRef=t,this.label=n,this.labelRef=i,this.element=o,this.updatedAt=r}}class zg extends Eo.default.Component{constructor(e){super(e),this.state={polygonElements:[]}}update(e,t,n,i){const o=[];(class{static keepOnlyCenterMostDuplicate(e,t){const n=new Map;e.forEach((e=>{const t=Ol(e),i=n.get(t);i?i.push(e):n.set(t,[e])})),n.forEach(((t,i)=>{t.length<2?n.delete(i):t.forEach(((t,n)=>{e.splice(e.indexOf(t),1)}))})),n.forEach(((n,i)=>{const o=e=>{let t={x:0,y:0};return e.forEach((e=>{t.x+=e.x,t.y+=e.y})),t.x/=e.length,t.y/=e.length,t},r=t.width/2,a=n.reduce(((e,t)=>{const n=o(e.quad),i=o(t.quad);return Math.abs(r-n.x)<Math.abs(r-i.x)?e:t}));e.push(a)}))}}).keepOnlyCenterMostDuplicate(i,n),i.forEach((i=>{const r=new Bg(i);r.points=void 0===e?kg.a.scaleListToHtmlElement(i.quad,n,t.video):i.quad.map((t=>{const i=new kg.a(t.x,t.y);return i.x*=e.width/n.width,i.y*=e.height/n.height,i.y+=e.y,i.x+=e.x,i})),r.points.forEach((e=>{t.state.mirrored&&this.container&&(e.x=this.container.clientWidth-e.x)})),o.push(r)}));const r=[];this.state.polygonElements.forEach((e=>{const t=o.find((t=>El(t.code,e.element.code)));let n=!1;const i=Ig.now();void 0===t?e.updatedAt+1e3<i&&(n=!0):(e.element=t,e.polygon=Eo.default.createElement(Ng,{key:Ol(e.element.code),ref:t=>e.polygonRef=t,configuration:this.props.configuration,element:e.element,animateToPoints:t.points,onClick:this.onPolygonClick.bind(this)}),e.label=Eo.default.createElement(this.props.LabelComponent,Object.assign({},this.props.labelComponentConfig,{key:Ol(e.element.code),ref:t=>e.labelRef=t,configuration:this.props.configuration,element:e.element,animateToPoints:t.points,onClick:this.onPolygonClick.bind(this)})),this.props.configuration.automaticSelectionEnabled&&this.props.configuration.countingRepeatDelay>-1&&e.detectedAt>0&&i>this.props.configuration.countingRepeatDelay+e.detectedAt&&(this.props.onPolygonSelected(t.code),e.detectedAt=i),e.updatedAt=i),n||r.push(e)})),o.forEach((e=>{if(void 0===this.state.polygonElements.find((t=>El(t.element.code,e.code)))){let t,n;const i=new Wg,o=Eo.default.createElement(Ng,{key:Ol(e.code),ref:i=>{t=i,void 0!==n&&this.props.onBarcodeFound(e.code,t,n)},configuration:this.props.configuration,element:e,onClick:this.onPolygonClick.bind(this)}),a=Eo.default.createElement(this.props.LabelComponent,Object.assign({},this.props.labelComponentConfig,{key:Ol(e.code),ref:i=>{n=i,void 0!==t&&this.props.onBarcodeFound(e.code,t,n)},configuration:this.props.configuration,element:e,onClick:this.onPolygonClick.bind(this)}));i.update(o,t,a,n,e,Ig.now()),r.push(i)}})),this.setState({polygonElements:r})}onPolygonClick(e){var t,n,i,o;let r;e.highlighted=!e.highlighted,this.forceUpdate(),this.state.polygonElements.forEach((t=>{var n;const i=t.labelRef,o=t.label.props.element;El(o.code,e.code)&&(r=t),i&&El(o.code,e.code)&&(i.update(e),null===(n=t.polygonRef)||void 0===n||n.update(e))})),e.highlighted&&(null===(n=(t=this.props).onPolygonSelected)||void 0===n||n.call(t,e.code),r&&(r.detectedAt=Ig.now())),null===(o=(i=this.props).onPolygonClick)||void 0===o||o.call(i,e.code)}render(){var e,t;return Eo.default.createElement("div",{style:Object.assign({width:"100%",height:"100%",position:"absolute"},this.props.style),ref:e=>this.container=e},Eo.default.createElement(Tg.svg,{style:{position:"absolute",maxWidth:"100%",width:"100%",height:"100%"}},null===(e=this.state.polygonElements)||void 0===e?void 0:e.map((e=>e.polygon))),null===(t=this.state.polygonElements)||void 0===t?void 0:t.map((e=>e.label)))}}var Hg=n(84),Ug=n.n(Hg),Zg=n(97),Gg={insert:"head",singleton:!1},$g=(Ug()(Zg.a,Gg),Zg.a.locals,n(54)),Yg=n.n($g);class Qg{constructor(e){this.lastTime=0,this.lastDuration=0,this.t=0,this.element=null,this.animationClass="",this.animationClass=e}setDuration(e){const t=Date.now()/1e3,n=t-this.lastTime;this.lastDuration&&(this.t+=n%this.lastDuration/this.lastDuration,this.t-=0|this.t);const i=-e*this.t;this.element&&(this.element.style.animationDuration=`${e}s`,this.element.style.animationDelay=`${i}s`,this.element.classList.remove(this.animationClass),this.element.offsetHeight,this.element.classList.add(this.animationClass)),this.lastTime=t,this.lastDuration=e}}class Xg extends Eo.default.Component{constructor(){super(...arguments),this.inner1=new Qg("scanbot-shutter-rotate"),this.inner2=new Qg("scanbot-shutter-rotate")}render(){return Eo.default.createElement("div",{className:"scanbot-shutter-button",style:this.props.style,onClick:this.props.onClick},this.captureBackground(),this.captureInnerCircle(),this.captureSearchingInner1(),this.captureSearchingInner2())}updateAnimationSpeed(e){"searching"==e?(this.inner1.setDuration(3),this.inner2.setDuration(2)):(this.inner1.setDuration(1.5),this.inner2.setDuration(.75))}componentDidMount(){this.updateAnimationSpeed(this.props.action)}componentDidUpdate(){this.updateAnimationSpeed(this.props.action)}captureBackground(){return this.svgBase(null,Eo.default.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},this.path("M32 0c17.673 0 32 14.327 32 32 0 17.673-14.327 32-32 32C14.327 64 0 49.673 0 32 0 14.327 14.327 0 32 0zm0 3C15.984 3 3 15.984 3 32s12.984 29 29 29 29-12.984 29-29S48.016 3 32 3z")))}captureInnerCircle(){const{action:e}=this.props;return this.svgBase({"scanbot-shutter-button-part":!0,"scanbot-shutter-fade-in":"processing"==e||"manual"==e,"scanbot-shutter-fade-out":"searching"==e||"capturing"==e,"scanbot-shutter-pulse-fast":"processing"==e},Eo.default.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},Eo.default.createElement("circle",{cx:"32",cy:"32",r:"24",fill:this.props.color,fillRule:"nonzero"})))}captureSearchingInner1(){const{action:e}=this.props;return this.svgBase({"scanbot-shutter-button-part":!0,"scanbot-shutter-fade-in":"searching"==e||"capturing"==e,"scanbot-shutter-fade-out":"processing"==e||"manual"==e},Eo.default.createElement("g",{fill:"none",fillOpacity:"0.7",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},this.path("M44.24 51.476a1 1 0 01-1.066-1.692A20.981 20.981 0 0053 32c0-11.598-9.402-21-21-21a1 1 0 010-2c12.703 0 23 10.297 23 23a22.98 22.98 0 01-10.76 19.476z")),(e=>{this.inner1.element=e}))}captureSearchingInner2(){const{action:e}=this.props;return this.svgBase({"scanbot-shutter-button-part":!0,"scanbot-shutter-fade-in":"searching"==e||"capturing"==e,"scanbot-shutter-fade-out":"processing"==e||"manual"==e},Eo.default.createElement("g",{fill:"none",fillOpacity:"0.4",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},this.path("M46.624 35.35a1 1 0 01-1.95-.445C44.89 33.96 45 32.988 45 32c0-7.18-5.82-13-13-13a1 1 0 010-2c8.284 0 15 6.716 15 15 0 1.138-.127 2.26-.376 3.35z")),(e=>{this.inner2.element=e}))}path(e){return Eo.default.createElement("path",{fill:this.props.color,fillRule:"nonzero",d:e})}svgBase(e,t,n){return Eo.default.createElement("div",{className:Yg()(e),ref:n},Eo.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 64 64"},t))}}class qg extends Eo.default.Component{render(){return Eo.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Eo.default.createElement("mask",{id:"mask0_919_23088",style:"mask-type:alpha",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24"},Eo.default.createElement("rect",{width:"24",height:"24",fill:"#D9D9D9"})),Eo.default.createElement("g",{mask:"url(#mask0_919_23088)"},Eo.default.createElement("path",{d:"M9 19V17H21V19H9ZM9 13V11H21V13H9ZM9 7V5H21V7H9ZM5 20C4.45 20 3.97917 19.8042 3.5875 19.4125C3.19583 19.0208 3 18.55 3 18C3 17.45 3.19583 16.9792 3.5875 16.5875C3.97917 16.1958 4.45 16 5 16C5.55 16 6.02083 16.1958 6.4125 16.5875C6.80417 16.9792 7 17.45 7 18C7 18.55 6.80417 19.0208 6.4125 19.4125C6.02083 19.8042 5.55 20 5 20ZM5 14C4.45 14 3.97917 13.8042 3.5875 13.4125C3.19583 13.0208 3 12.55 3 12C3 11.45 3.19583 10.9792 3.5875 10.5875C3.97917 10.1958 4.45 10 5 10C5.55 10 6.02083 10.1958 6.4125 10.5875C6.80417 10.9792 7 11.45 7 12C7 12.55 6.80417 13.0208 6.4125 13.4125C6.02083 13.8042 5.55 14 5 14ZM5 8C4.45 8 3.97917 7.80417 3.5875 7.4125C3.19583 7.02083 3 6.55 3 6C3 5.45 3.19583 4.97917 3.5875 4.5875C3.97917 4.19583 4.45 4 5 4C5.55 4 6.02083 4.19583 6.4125 4.5875C6.80417 4.97917 7 5.45 7 6C7 6.55 6.80417 7.02083 6.4125 7.4125C6.02083 7.80417 5.55 8 5 8Z",fill:"white"})))}}class Kg extends Eo.default.Component{render(){return Eo.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Eo.default.createElement("mask",{id:"mask0_919_23102",style:"mask-type:alpha",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24"},Eo.default.createElement("rect",{width:"24",height:"24",fill:"#D9D9D9"})),Eo.default.createElement("g",{mask:"url(#mask0_919_23102)"},Eo.default.createElement("path",{d:"M12 22C10.75 22 9.57917 21.7625 8.4875 21.2875C7.39583 20.8125 6.44583 20.1708 5.6375 19.3625C4.82917 18.5542 4.1875 17.6042 3.7125 16.5125C3.2375 15.4208 3 14.25 3 13H5C5 14.95 5.67917 16.6042 7.0375 17.9625C8.39583 19.3208 10.05 20 12 20C13.95 20 15.6042 19.3208 16.9625 17.9625C18.3208 16.6042 19 14.95 19 13C19 11.05 18.3208 9.39583 16.9625 8.0375C15.6042 6.67917 13.95 6 12 6H11.85L13.4 7.55L12 9L8 5L12 1L13.4 2.45L11.85 4H12C13.25 4 14.4208 4.2375 15.5125 4.7125C16.6042 5.1875 17.5542 5.82917 18.3625 6.6375C19.1708 7.44583 19.8125 8.39583 20.2875 9.4875C20.7625 10.5792 21 11.75 21 13C21 14.25 20.7625 15.4208 20.2875 16.5125C19.8125 17.6042 19.1708 18.5542 18.3625 19.3625C17.5542 20.1708 16.6042 20.8125 15.5125 21.2875C14.4208 21.7625 13.25 22 12 22Z",fill:"white"})))}}class Jg extends Eo.default.Component{constructor(e){super(e),this.state={barcodes:void 0}}update(e){this.setState({barcodes:e})}didScan(){return void 0!==this.state.barcodes}render(){var e,t;return Eo.default.createElement("div",{style:{position:"absolute",bottom:0,width:"100%",height:76,display:"flex",alignItems:"center",backgroundColor:kl.ScanbotPrimary}},Eo.default.createElement("div",{style:{display:"flex",flex:1,justifyContent:"center",alignItems:"center",opacity:this.didScan()?1:.5},onClick:this.didScan()&&this.props.onBurgerClick},Eo.default.createElement(qg,null),Eo.default.createElement("div",{style:{backgroundColor:kl.Orange,color:kl.White,width:24,height:24,borderRadius:12,marginLeft:10,fontSize:13,lineHeight:"24px",textAlign:"center"}},null!==(t=null===(e=this.state.barcodes)||void 0===e?void 0:e.length)&&void 0!==t?t:0)),Eo.default.createElement("div",{style:{display:"flex",flex:1,justifyContent:"center",opacity:this.props.isShowingImage?.5:1}},Eo.default.createElement(Xg,{style:{left:0,bottom:0,transform:"none"},color:"#FFF",action:this.props.action,onClick:!this.props.isShowingImage&&this.props.onShutterButtonClick})),Eo.default.createElement("div",{style:{display:"flex",flex:1,justifyContent:"center",alignItems:"center",opacity:this.didScan()?1:.5},onClick:this.didScan()&&this.props.onScanMoreClick},Eo.default.createElement("div",{style:{fontSize:13,color:kl.White,marginRight:10}},"Scan More"),Eo.default.createElement(Kg,null)))}}class ev extends Eo.default.Component{render(){const e=kg.a.centerOf(this.props.points),t=kg.a.smallerSizeOfQuad(this.props.points)/40;return Eo.default.createElement("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{position:"absolute",left:e.x-20,top:e.y-20,transform:`scale(${t})`}},Eo.default.createElement("mask",{id:"mask0_910_20901",style:"mask-type:alpha",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"40",height:"40"},Eo.default.createElement("rect",{width:"40",height:"40",fill:"#D9D9D9"})),Eo.default.createElement("g",{mask:"url(#mask0_910_20901)"},Eo.default.createElement("rect",{x:"7",y:"13",width:"26",height:"16",fill:"white"}),Eo.default.createElement("path",{d:"M17.5833 27.6111L29.3611 15.8333L27.3055 13.8055L17.5833 23.5278L12.6666 18.6111L10.6389 20.6389L17.5833 27.6111ZM20 36.6666C17.713 36.6666 15.5555 36.2291 13.5278 35.3541C11.5 34.4791 9.73147 33.287 8.22219 31.7778C6.71294 30.2685 5.52081 28.5 4.64581 26.4722C3.77081 24.4444 3.33331 22.287 3.33331 20C3.33331 17.6944 3.77081 15.5278 4.64581 13.5C5.52081 11.4722 6.71294 9.70831 8.22219 8.20831C9.73147 6.70831 11.5 5.52081 13.5278 4.64581C15.5555 3.77081 17.713 3.33331 20 3.33331C22.3055 3.33331 24.4722 3.77081 26.5 4.64581C28.5278 5.52081 30.2916 6.70831 31.7916 8.20831C33.2916 9.70831 34.4791 11.4722 35.3541 13.5C36.2291 15.5278 36.6666 17.6944 36.6666 20C36.6666 22.287 36.2291 24.4444 35.3541 26.4722C34.4791 28.5 33.2916 30.2685 31.7916 31.7778C30.2916 33.287 28.5278 34.4791 26.5 35.3541C24.4722 36.2291 22.3055 36.6666 20 36.6666Z",fill:"#55BB77"})))}}var tv=n(24);class nv extends Eo.default.Component{constructor(e){super(e),this.state={elements:[],imageSize:tv.a.empty()}}update(e){const t=[];e.barcodes.forEach((n=>{const i=new Bg(n);i.points=kg.a.scaleListToHtmlElement(n.quad,e.originalImageSize,this.image),t.push(i)})),this.setState({imageSize:tv.a.fromHtmlElement(this.image),elements:t})}reset(){this.setState({elements:[]})}render(){return void 0===this.props.image||null===this.props.image?null:Eo.default.createElement("div",{className:"scanned-image-with-overlay",style:{position:"absolute",display:"flex",justifyContent:"center",alignItems:this.state.image?"normal":"center",minHeight:"300px",height:"100%",width:"100%",top:0,left:0}},Eo.default.createElement("img",{style:{maxWidth:"100%"},ref:e=>this.image=e,src:`${this.props.image}`}),Eo.default.createElement("div",{style:{position:"absolute",maxWidth:"100%",width:this.state.imageSize.width,height:this.state.imageSize.height}},this.state.elements.map(((e,t)=>Eo.default.createElement(ev,{key:t,points:e.points})))))}}class iv extends Eo.default.Component{render(){if(!this.props.visible)return null;const e=_o.c.svg`
182
182
  animation: rotate 2s linear infinite;
183
183
  @keyframes rotate { 100% { transform: rotate(360deg); } }
184
- `;return I.default.createElement("div",{style:{top:0,left:0,width:"100%",height:"100%",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",zIndex:100}},I.default.createElement(t,{width:"101",height:"100",viewBox:"0 0 101 100",fill:"none",xmlns:"http://www.w3.org/2000/svg"},I.default.createElement("circle",{cx:"50.5",cy:"50",r:"50",fill:"#3E3E3E","fill-opacity":"0.35"}),I.default.createElement("path",{d:"M90.5153 49.6094C91.715 49.6094 92.6933 50.5827 92.6321 51.7808C92.1218 61.7815 88.0988 71.3096 81.2342 78.6635C73.8743 86.548 63.7963 91.3454 53.036 92.0868C42.2757 92.8282 31.6351 89.4582 23.2634 82.6576C15.455 76.3147 10.1633 67.4283 8.28624 57.5922C8.06135 56.4138 8.89694 55.3155 10.0853 55.1509C11.2737 54.9864 12.3642 55.8183 12.5959 56.9954C14.3176 65.7412 19.0487 73.6367 26.0026 79.2856C33.5201 85.3922 43.0751 88.4183 52.7374 87.7526C62.3998 87.0869 71.4494 82.7789 78.0584 75.699C84.1719 69.1497 87.7754 60.68 88.2814 51.7807C88.3495 50.5829 89.3156 49.6094 90.5153 49.6094Z",fill:"white"}),I.default.createElement("path",{d:"M40.7013 23.4514C40.2751 22.2667 40.8885 20.9518 42.1022 20.6166C45.5928 19.6526 49.2351 19.3251 52.8537 19.6567C57.2305 20.0577 61.4662 21.4131 65.2628 23.6273C69.0594 25.8416 72.3246 28.861 74.8286 32.4731C77.3326 36.0851 79.0146 40.2021 79.7562 44.5341C80.4978 48.8662 80.281 53.3082 79.121 57.5475C77.9611 61.7868 75.8862 65.7204 73.0423 69.0714C70.1985 72.4225 66.6548 75.1095 62.6606 76.9436C59.3583 78.4599 55.8145 79.3627 52.202 79.6146C50.9459 79.7022 49.9301 78.6662 49.9379 77.4072C49.9457 76.1481 50.9746 75.1443 52.2293 75.0398C55.1749 74.7942 58.0613 74.0382 60.758 72.8C64.1467 71.244 67.1532 68.9642 69.5659 66.1212C71.9787 63.2781 73.7391 59.9408 74.7232 56.3442C75.7073 52.7475 75.8912 48.9789 75.262 45.3035C74.6328 41.6281 73.2058 38.1353 71.0814 35.0708C68.957 32.0062 66.1867 29.4445 62.9657 27.5659C59.7446 25.6873 56.151 24.5374 52.4377 24.1972C49.4828 23.9265 46.5092 24.1737 43.6497 24.9219C42.4316 25.2406 41.1274 24.6362 40.7013 23.4514Z",fill:"white"}),I.default.createElement("path",{d:"M39.9232 61.6554C39.1643 62.5529 37.8105 62.673 37.0094 61.813C35.7171 60.4259 34.6502 58.8388 33.8523 57.1092C32.7564 54.7336 32.1944 52.1468 32.206 49.5307C32.2175 46.9146 32.8022 44.3328 33.9189 41.967C35.0356 39.6011 36.6573 37.5088 38.6697 35.8372C40.6822 34.1656 43.0365 32.9554 45.567 32.2916C48.0975 31.6279 50.7428 31.5268 53.3166 31.9954C55.8904 32.464 58.3303 33.4911 60.4644 35.0042C62.0183 36.1059 63.3827 37.4458 64.5093 38.9707C65.2077 39.916 64.8412 41.2247 63.8197 41.8061C62.7982 42.3875 61.5108 42.0174 60.7778 41.0986C59.9824 40.1015 59.0489 39.2181 58.0027 38.4763C56.3759 37.3229 54.5161 36.5401 52.5541 36.1828C50.5922 35.8256 48.5758 35.9027 46.6469 36.4086C44.7179 36.9146 42.9233 37.8371 41.3893 39.1113C39.8553 40.3855 38.6192 41.9804 37.7679 43.7838C36.9167 45.5872 36.471 47.5552 36.4622 49.5494C36.4534 51.5436 36.8818 53.5154 37.7172 55.3262C38.2544 56.4908 38.9515 57.5705 39.7858 58.5353C40.5545 59.4244 40.6821 60.7579 39.9232 61.6554Z",fill:"white"})))}}class ch extends I.default.Component{render(){return this.props.text?I.default.createElement("div",{style:{position:"absolute",top:this.props.top,bottom:this.props.bottom,display:"flex",width:"100%",justifyContent:"center"}},I.default.createElement("div",{style:{padding:"5px 10px",borderRadius:5,backgroundColor:Io.TransparentGray,color:Io.White,fontWeight:500,fontSize:13}},this.props.text)):null}}class uh extends I.default.Component{constructor(t){super(t),this.state={element:t.element}}style(t){this.customStyle=t,this.forceUpdate()}update(t){this.setState({element:t})}formatText(t,e){if("None"!==e)return"Text"===e?t.text:t.format+" ("+t.text+")"}render(){var t,e,n,r,o;const i=this.state.element,a=this.props.configuration.style,s=this.formatText(i.code,this.props.configuration.textFormat),l=Fd.a.width(null!==(t=this.props.animateToPoints)&&void 0!==t?t:i.points);if(!s)return null;if(!i.points)return null;const c=null!==(n=null===(e=this.customStyle)||void 0===e?void 0:e.backgroundColor)&&void 0!==n?n:i.highlighted?a.highlightedTextBackgroundColor:a.textBackgroundColor,u=null!==(o=null===(r=this.customStyle)||void 0===r?void 0:r.textColor)&&void 0!==o?o:i.highlighted?a.highlightedTextColor:a.textColor;return I.default.createElement(Dd.div,{ref:t=>this.label=t,onClick:()=>{this.props.onClick&&this.props.onClick(i)},style:{x:Fd.a.lowestX(i.points),y:Fd.a.highestY(i.points)+3,backgroundColor:c,fontSize:12,width:l,overflow:"hidden",color:u,borderRadius:5,position:"absolute",padding:"3px 7px",textAlign:"center",maxHeight:50,lineBreak:"anywhere",lineHeight:"22px",WebkitLineClamp:2,display:"-webkit-box",WebkitBoxOrient:"vertical"},animate:this.props.animateToPoints?{x:Fd.a.lowestX(this.props.animateToPoints),y:Fd.a.highestY(this.props.animateToPoints)+30}:{}},s)}}class dh{constructor(){this.defaultFillColor="rgba(255, 0, 0, 0.3)",this.defaultHighlightedFillColor="rgba(0, 255, 0, 0.3)",this.polygonStrokeColor="rgba(255, 0, 0, 1)",this.polygonFillColor=this.defaultFillColor,this.polygonStrokeWidth=1,this.polygonCornerRadius=0,this.highlightedPolygonStrokeColor="rgba(0, 255, 0, 1)",this.highlightedPolygonFillColor=this.defaultHighlightedFillColor,this.highlightedPolygonStrokeWidth=2,this.highlightedPolygonCornerRadius=0,this.textColor="white",this.textBackgroundColor="rgba(255, 0, 0, 0.9)",this.highlightedTextColor="white",this.highlightedTextBackgroundColor="rgba(0, 255, 0, 0.9)"}}class hh{constructor(){this.visible=!1,this.textFormat="Text",this.automaticSelectionEnabled=!1,this.style=new dh}}class ph{constructor(){this.topLabelTop=20,this.sheetHeight="95%",this.sheetTopMargin="10%"}}class fh{constructor(){this.enabled=!1,this.style=new ph}}class mh extends j.a{constructor(){super(L.a.DEFAULT_VIDEO_RESOLUTION_HD),this.captureDelay=1e3,this.overlay=new hh,this.detectionParameters=new k.BarcodeScannerTypes.BarcodeScannerConfiguration,this.scanAndCount=new fh,this.onBarcodesDetected=function(t){}}static fromJson(t){const e=new mh;return this.mapValues(t,e,["style","videoConstraints","overlay","scanAndCount","finder","userGuidance"]),this.mapFinderConfiguration(e,t),t.overlay&&(this.mapValues(t.overlay,e.overlay,["style"]),t.overlay.style&&this.mapValues(t.overlay.style,e.overlay.style)),t.scanAndCount&&(this.mapValues(t.scanAndCount,e.scanAndCount,["style"]),t.scanAndCount.style&&this.mapValues(t.scanAndCount.style,e.scanAndCount.style)),this.mapVideoConstraints(t,e),e}}class gh{constructor(t){this.coreResult=t,this.barcodes=[],this.originalImageSize=null,this.barcodes=t.barcodes,t.originalImage&&(this.originalImageSize=new ah.a(t.originalImage.width,t.originalImage.height))}isEmpty(){return 0===this.barcodes.length}}class vh{static warn(t){console.warn("[ScanbotSDK]",t)}}class bh{static convertLinesToViewportLines(t,e){if(e&&t)return e.map((e=>({start:new Fd.a(e.start.x*t.width,e.start.y*t.height),end:new Fd.a(e.end.x*t.width,e.end.y*t.height)})))}static convertToViewportPointsFromParentSize(t,e){return e?ah.a.isEmpty(t)?void 0:e.map((e=>Fd.a.scaleUpTo(e,t))):ah.a.toPolygon(t)}static calculateScale(t){let e,n=0,r=0;return 1>t.width/t.height?(e=t.height/1,n=(1-t.width/e)/2):(e=t.width/1,r=(1-t.height/e)/2),{x:n,y:r,containerScale:e}}static findScale(t,e){let n,r=0,o=0;return e.ratio(!0)>t.ratio(!0)?(n=t.width/e.width,o=(e.height-t.height/n)/2):(n=t.height/e.height,r=(e.width-t.width/n)/2),{x:r,y:o,scale:n}}static preventDefaultCallback(t){t.preventDefault()}static disableScreenMovement(){document.addEventListener("touchmove",bh.preventDefaultCallback,{passive:!1}),document.body.scrollTop=document.documentElement.scrollTop=0,document.documentElement.style.overflow="hidden"}static enableScreenMovement(){document.removeEventListener("touchmove",bh.preventDefaultCallback),document.documentElement.style.overflow="auto"}static findContainerOrThrow(t){var e;const n=null!==(e=t.container)&&void 0!==e?e:document.getElementById(t.containerId);if(!n)throw Error("Unable to initialize scanner: Cannot find container element either from 'container' property or with the containerId property provided.");return n}}var yh=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};jo.a;jo.b;class Ah extends jo.c{constructor(t){var e;super(t),this.shouldComputeSize=!0,this.paused=!1,this.barcodeRecognizerHandle=null,this.barcodes=[],this.detectionRunning=!1,this.updateDimensionsCallback=this.updateDimensions.bind(this),this.backendurl=void 0,this.desiredRecognitionResolution=void 0,this.desiredRecognitionResolution=this.configuration.desiredRecognitionResolution,Object.assign(this.state,{isFinderVisible:null===(e=this.configuration.finder.visible)||void 0===e||e,zoom:void 0,action:"manual",image:void 0,bottomHintText:void 0})}get configuration(){return this._configuration||(this._configuration=mh.fromJson(this.props.configuration)),this._configuration}get enabled(){return!this.disposed}static create(t){return yh(this,void 0,void 0,(function*(){const e=bh.findContainerOrThrow(t);return new Promise(((n,r)=>{Object(I.render)(I.default.createElement(Ah,{container:e,configuration:t,onSuccess:n,onFailure:r}),e)}))}))}isDetectionPaused(){return this.paused}resumeDetection(){return yh(this,void 0,void 0,(function*(){vh.warn("Barcode detection resumed"),yield this.resume()}))}pauseDetection(){vh.warn("Barcode detection paused"),this.pause()}componentDidMount(){const t=Object.create(null,{componentDidMount:{get:()=>super.componentDidMount}});return yh(this,void 0,void 0,(function*(){t.componentDidMount.call(this),window.addEventListener("resize",this.updateDimensionsCallback),yield this.resume()}))}componentWillUnmount(){super.componentWillUnmount(),this.pause(),window.removeEventListener("resize",this.updateDimensionsCallback),this.barcodeRecognizerHandle&&this.bridge.copyArgs.releaseObject(this.barcodeRecognizerHandle).catch((t=>{var e,n;return null===(n=(e=this.props.configuration).onError)||void 0===n?void 0:n.call(e,t)}))}updateDimensions(){return yh(this,void 0,void 0,(function*(){this.shouldComputeSize=!0,this.forceUpdate()}))}resume(){return yh(this,void 0,void 0,(function*(){this.paused=!1,yield this.detect()}))}pause(){this.paused=!0}detect(){var t,e,n,r,o;return yh(this,void 0,void 0,(function*(){if(!this.enabled)return;if(this.paused)return;if(null===(t=this.configuration.scanAndCount)||void 0===t?void 0:t.enabled)return;if(this.detectionRunning)return;let i=!1;try{this.detectionRunning=!0;const t=yield this.recognizeBarcodes(!0,this.shouldComputeSize);if(this.shouldComputeSize=!1,!t)return;const a=new gh(t);a.isEmpty()?this.configuration._onDetectionFailed&&(null===(e=this.configuration)||void 0===e||e._onDetectionFailed(t.originalImage)):(i=!0,this.configuration.overlay.visible||this.configuration.onBarcodesDetected(a)),null===(n=this.overlay)||void 0===n||n.update(null===(r=this.finder)||void 0===r?void 0:r.holeRect,this.camera,a.originalImageSize,a.barcodes)}catch(t){console.log(t)}finally{this.detectionRunning=!1;const t=()=>requestAnimationFrame((()=>this.detect())),e=(null===(o=this.configuration.overlay)||void 0===o?void 0:o.visible)?0:this.configuration.captureDelay;i&&0!=e?setTimeout(t,e):t()}}))}setUseBackendService(t){console.log("Now using backend service for recognition: ",t),this.backendurl=t}recognizeBarcodes(t,e){var n,r,o,i,a,s,l,c;return yh(this,void 0,void 0,(function*(){try{window&&window.__SB_DEBUG_BARCODESCANNER_FORCE_DETERMINISTIC_MODE&&(t=!1);const l=t?jo.c.DEFAULT_DETECTION_RESOLUTION:jo.c.DETECTION_RESULTION_4K,c=null!==(n=this.desiredRecognitionResolution)&&void 0!==n?n:l;this.camera.finderFrame=null===(r=this.finder)||void 0===r?void 0:r.holeRect;const u=yield null===(o=this.camera)||void 0===o?void 0:o.createImageData(c,!1);if(!u)return;e&&this.forceUpdate(),(null===(i=this.configuration.scanAndCount)||void 0===i?void 0:i.enabled)&&(this.setState({image:y.wrapperToBase64(u)}),void 0!==this.desiredRecognitionResolution?console.log("Recognizing barcodes with custom resolution:",this.desiredRecognitionResolution):console.log("Recognizing barcodes with max resolution:",jo.c.DETECTION_RESULTION_4K,"(the actual resolution depends on your device and may be lower)"));new ah.a(u.width,u.height);this.barcodeRecognizerHandle||(this.barcodeRecognizerHandle=yield this.bridge.copyArgs.createBarcodeRecognizer(new k.BarcodeScannerTypes.BarcodeScannerConfiguration(Object.assign(Object.assign({},this.configuration.detectionParameters),{live:t}))));const d=yield this.bridge.transferArgs.recognizeBarcodes(this.barcodeRecognizerHandle,u);if(!this.enabled)return;return null===d?void(null===(s=(a=this.props).onLicenseError)||void 0===s||s.call(a)):(this.camera.reusableImageBuffer=d.originalImage.data,d)}catch(t){return void(null===(c=(l=this.props.configuration).onError)||void 0===c||c.call(l,t))}}))}setRecognitionResolution(t){this.desiredRecognitionResolution=t}getResolution(){return yh(this,void 0,void 0,(function*(){return new Promise(((t,e)=>{const n=this.camera.videoSize();n.width>0&&n.height>0?t(ah.a.fromJson(n)):this.camera.didLoadVideo=()=>{const e=this.camera.videoSize();t(ah.a.fromJson(e))}}))}))}saveExtractedImageData(){this.camera.saveExtractedData()}setFinderVisible(t){this.setState({isFinderVisible:t})}setZoom(t){this.setState({zoom:t})}setCameraDirection(t){this.camera.setDirection(t)}updateTorch(t){this.camera.videoStream.updateTorch(t)}getCapabilities(){return this.camera.videoStream.getCapabilities()}render(){var t,e,n,r,o,i,a;const s=(null===(t=this.configuration.scanAndCount)||void 0===t?void 0:t.enabled)?"Tap the shutter button to scan":void 0;return I.default.createElement("div",{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"black",minHeight:"100px"}},this.renderSpinner(null===(e=this.configuration)||void 0===e?void 0:e.spinnerColor),I.default.createElement("div",{style:{position:"absolute",width:"100%",height:"100%"}},I.default.createElement(ko.a,{configuration:this.configuration,videoConstraints:this.configuration.videoConstraints,mirrored:this.configuration.mirrored,preferredCamera:this.configuration.preferredCamera,zoom:null!==(n=this.state.zoom)&&void 0!==n?n:this.configuration.zoom,onReady:this.onVideoReady,onError:this.onVideoError,ref:t=>{this.camera=t}})),I.default.createElement(ch,{top:null===(r=this.configuration.scanAndCount)||void 0===r?void 0:r.style.topLabelTop,text:s}),I.default.createElement(sh,{ref:t=>this.scannedImage=t,image:this.state.image}),this.state.isFinderVisible&&I.default.createElement(_o.a,{ref:t=>{this.finder=t},padding:this.props.viewFinderPadding,guidanceConfiguration:this.configuration.userGuidance,configuration:this.configuration.finder}),I.default.createElement(ch,{bottom:100,text:this.state.bottomHintText}),I.default.createElement(lh,{visible:"processing"===this.state.action}),(null===(o=this.configuration.overlay)||void 0===o?void 0:o.visible)&&I.default.createElement(Yd,{ref:t=>{t&&(this.overlay=t)},configuration:this.configuration.overlay,onPolygonSelected:t=>{const e=new gh({barcodes:[t]});this.configuration.onBarcodesDetected(e)},onBarcodeFound:(t,e,n)=>{var r;(null===(r=this.configuration.overlay)||void 0===r?void 0:r.onBarcodeFound)&&this.configuration.overlay.onBarcodeFound(t,e,n)},LabelComponent:uh,labelComponentConfig:{}}),(null===(i=this.configuration.scanAndCount)||void 0===i?void 0:i.enabled)&&I.default.createElement(oh,{ref:t=>this.bottomActionBar=t,action:this.state.action,isShowingImage:void 0!==this.state.image,onBurgerClick:()=>{this.popup.push(Fo.PushBottom,this.barcodes)},onShutterButtonClick:()=>yh(this,void 0,void 0,(function*(){(new A).flash(),this.setState({action:"processing"});const t=(new Date).getTime();let e=yield this.recognizeBarcodes(!1,!1);const n=new gh(null!=e?e:{barcodes:[]});console.log("Recognition took:",((new Date).getTime()-t)/1e3);const r=this.countLabelText(n.barcodes);this.setState({action:"manual",bottomHintText:r}),this.scannedImage.update(n),this.barcodes.push(...n.barcodes),this.bottomActionBar.update(this.barcodes),n.barcodes.length>0&&this.configuration.onBarcodesDetected(n)})),onScanMoreClick:()=>{this.resetCountImage()}}),I.default.createElement(Mo,{ref:t=>this.popup=t,style:null===(a=this.configuration.scanAndCount)||void 0===a?void 0:a.style,onDeleteClick:()=>{if(confirm("Are you sure you want to delete all scanned barcodes?")){for(;this.barcodes.length>0;)this.barcodes.pop();console.log("Cleared barcodes",this.barcodes.length),this.popup.update(this.barcodes),this.bottomActionBar.update(void 0),this.resetCountImage(),this.popup.reset()}}}))}resetCountImage(){this.scannedImage.reset(),this.setState({image:void 0,bottomHintText:void 0})}countLabelText(t){return 0==t.length?"No codes scanned. Try again?":1==t.length?"1 Code Scanned":`${t.length} Codes Scanned`}}var Ch=n(67),Sh=Object(Ch.a)(Object($.jsx)("path",{d:"M6 2h12v3H6zm0 5v1l2 3v11h8V11l2-3V7zm6 8.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5"}),"FlashlightOn"),xh=Object(Ch.a)(Object($.jsx)("path",{d:"M18 5V2H6v1.17L7.83 5zm-2 6 2-3V7H9.83L16 13.17zM2.81 2.81 1.39 4.22 8 10.83V22h8v-3.17l3.78 3.78 1.41-1.41z"}),"FlashlightOff"),wh=Object(Ch.a)(Object($.jsx)("path",{d:"M20 5h-3.17L15 3H9L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m-8 13c-2.76 0-5-2.24-5-5H5l2.5-2.5L10 13H8c0 2.21 1.79 4 4 4 .58 0 1.13-.13 1.62-.35l.74.74c-.71.37-1.5.61-2.36.61m4.5-2.5L14 13h2c0-2.21-1.79-4-4-4-.58 0-1.13.13-1.62.35l-.74-.73C10.35 8.24 11.14 8 12 8c2.76 0 5 2.24 5 5h2z"}),"FlipCameraIos");function Oh(t,e){return t&&(t.hasFacingOptions&&e.flipCameraButton.visible||t.isTorchAvailable&&e.flashButton.visible)||e.zoomButton.visible}function Eh(t){const e=t.zoomSteps.findIndex((e=>e==t.defaultZoomFactor)),[n,r]=Object(I.useState)(t.torchEnabledInitially),[o,i]=Object(I.useState)(e),a=t.zoomSteps[o],[s,l]=Object(I.useState)("BACK"==t.initialCameraModule?"environment":"user"),c=function(t){var e,n;const r=null===(n=null===(e=null==t?void 0:t.camera)||void 0===e?void 0:e.video)||void 0===n?void 0:n.parentElement,o=()=>r?r.getBoundingClientRect():null,[i,a]=Object(I.useState)(o());return Object(I.useEffect)((()=>{if(r){const t=()=>a(o());t();const e=new ResizeObserver(t);return e.observe(r),()=>{e.disconnect()}}}),[r]),i}(t.scanner),u=!!c;if(Object(I.useEffect)((()=>{var e;(null===(e=t.capabilities)||void 0===e?void 0:e.isTorchAvailable)&&u&&t.scanner.setTorchState(n)}),[t.capabilities,u,n]),Object(I.useEffect)((()=>{var e;u&&(null===(e=t.scanner)||void 0===e||e.setZoom(a))}),[u,a]),!t.capabilities||!c)return null;if(!Oh(t.capabilities,t.config))return null;const d=c.height-t.bottomPadding-48;return I.default.createElement(mt,{style:{position:"absolute",marginTop:d,marginLeft:c.width/2,transform:"translateX(-50%)",display:"flex",justifyContent:"center",zIndex:1e3}},I.default.createElement(So,Object.assign({},t.config.flashButton,{visible:t.capabilities.isTorchAvailable&&t.config.flashButton.visible,icon:n?Sh:xh,active:n,onClick:()=>r(!n)})),I.default.createElement("div",{style:{width:20}}),I.default.createElement(So,Object.assign({},t.config.zoomButton,{text:`${a.toFixed(1)}x`,active:o!==e,onClick:()=>i((o+1)%t.zoomSteps.length)})),I.default.createElement("div",{style:{width:20}}),I.default.createElement(So,Object.assign({},t.config.flipCameraButton,{visible:t.capabilities.hasFacingOptions&&t.config.flipCameraButton.visible,active:"user"===s,icon:wh,onClick:()=>{var e;const n="environment"===s?"user":"environment";l(n),null===(e=t.scanner)||void 0===e||e.setCameraDirection(n)}})))}const Lh=Object(I.createContext)(null);class jh{static compute(t,e,n){const r=(Fd.a.lowestY(t)+Fd.a.highestY(t))/2,o={badgeY:r,badgeStyle:{transform:"translateX(-50%) translateY(-50%)"}};return"BELOW"===n?Object.assign(Object.assign({},o),{labelY:Math.max(Fd.a.highestY(t)+jh.LABEL_AND_BADGE_PADDING,e?r-jh.AR_BADGE_SIZE/2-jh.LABEL_AND_BADGE_PADDING:-1/0),labelStyle:{transform:"translateX(-50%)"}}):"ABOVE"===n?Object.assign(Object.assign({},o),{labelY:Math.min(Fd.a.lowestY(t)-jh.LABEL_AND_BADGE_PADDING,e.visible?r+jh.AR_BADGE_SIZE/2+jh.LABEL_AND_BADGE_PADDING:1/0),labelStyle:{transform:"translateX(-50%) translateY(-100%)"}}):"STACKED"===n?{badgeY:r,badgeStyle:{transform:`translateX(-50%) translateY(calc(-100% - ${jh.LABEL_AND_BADGE_PADDING/2}px))`},labelY:r,labelStyle:{transform:e.visible?`translateX(-50%) translateY(${jh.LABEL_AND_BADGE_PADDING/2}px)`:"translateX(-50%) translateY(-50%)"}}:"DISABLED"===n?Object.assign(Object.assign({},o),{labelY:0,labelStyle:{display:"none"}}):void 0}}jh.AR_BADGE_SIZE=48,jh.LABEL_AND_BADGE_PADDING=10;var kh=jh;function _h(t){return t.style.visible?""==t.content?null:I.default.createElement(Dd.div,{style:Object.assign({position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",zIndex:100},t.positionBadge),animate:t.animateToPoints?t.positionBadge:{},transition:t.transition},I.default.createElement(We,{styleConfig:Object.assign(Object.assign({},t.style.background),{cornerRadius:kh.AR_BADGE_SIZE/2}),style:Object.assign(Object.assign({},t.verticalPositions.badgeStyle),{width:kh.AR_BADGE_SIZE,height:kh.AR_BADGE_SIZE,color:gt.b.getColorValue(t.style.foregroundColor),display:"flex",justifyContent:"center",alignItems:"center",zIndex:1500,cursor:"pointer"}),onClick:()=>null==t?void 0:t.onClick()},I.default.createElement(Vt,{fontSize:16,fontWeight:"500",style:{display:"flex",justifyContent:"center",alignItems:"center"}},t.content))):null}var Th=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n};class Ph extends uh{constructor(){super(...arguments),this.count=0,this.setCount=t=>{this.count=t,this.forceUpdate()}}styleBadge(t,e){this.customBadgeStyle=t,this.customBadgeContent=e,this.forceUpdate()}badgeContent(){return this.customBadgeContent?this.customBadgeContent:0===this.count?"":"x"+this.count}render(){var t,e;let{barcodeItemConfiguration:n,barcodeItemInfoPosition:r,counterBadge:o}=this.props;const i=n,a=this.state.element,s=null!==(t=this.props.animateToPoints)&&void 0!==t?t:a.points,l=a.code,c=a.highlighted,u=(Fd.a.lowestX(s)+Fd.a.highestX(s))/2;void 0===r&&(r="BELOW");const d=kh.compute(s,o,r),h=void 0===i||!1===i.titleDeselected.visible&&!1===i.subtitleDeselected.visible,p={x:u,y:Math.round(d.labelY)},f={x:u,y:Math.round(d.badgeY)},m={duration:.25,easing:"linear"};return I.default.createElement(I.default.Fragment,null,i&&I.default.createElement(Dd.div,{ref:t=>this.label=t,style:Object.assign(Object.assign({},p),{position:"absolute",width:"100%",zIndex:100}),animate:this.props.animateToPoints?p:{},transition:m},I.default.createElement(We,{sx:Object.assign({p:1,maxWidth:232,cursor:"pointer",display:h?"inline-block":"block",zIndex:1500},d.labelStyle),styleConfig:c?i.backgroundSelected:i.backgroundDeselected,"data-sb-ar-barcode-info":"1",onClick:()=>{var t;return null===(t=this.props)||void 0===t?void 0:t.onClick(a)}},I.default.createElement(Rh,{barcode:l,barcodeImageVisible:i.imageVisible,maxNumberOfTitleLines:1,maxNumberOfSubtitleLines:1,imageSize:42,displayRightArrow:!0,barcodeTitle:c?i.titleSelected:i.titleDeselected,barcodeSubtitle:c?i.subtitleSelected:i.subtitleDeselected}))),I.default.createElement(_h,{onClick:()=>{var t;return null===(t=this.props)||void 0===t?void 0:t.onClick(a)},style:null!==(e=this.customBadgeStyle)&&void 0!==e?e:o,positionBadge:f,content:this.badgeContent(),verticalPositions:d,transition:m,animateToPoints:this.props.animateToPoints}))}}function Rh(t){var{barcode:e}=t,n=Th(t,["barcode"]);const r=Object(I.useContext)(Lh).useBarcodeMappedData(e);return I.default.createElement(Wn,Object.assign({barcodeMappedData:r},n))}var Dh=n(18);function Bh(t){const e=Object(I.useRef)(),n=Object(I.useRef)(null),[r,o]=(Object(I.useContext)(Ne),Object(I.useState)(void 0)),[i,a]=Object(I.useState)(!1);Object(I.useEffect)((()=>{var n,r;t.scanningPaused?null===(n=e.current)||void 0===n||n.pause():null===(r=e.current)||void 0===r||r.resume()}),[t.scanningPaused]);const s=function(t){const e=new hh;e.visible=t.visible;const n=t.polygon instanceof Dh.c,r=t.polygon,o=t,i=n?r.selected:o.polygon.partiallyScanned,a=n?r.deselected:o.polygon.partiallyScanned;return t.polygon.visible?(e.style.highlightedPolygonFillColor=gt.b.getColorValue(i.fillColor),e.style.highlightedPolygonStrokeColor=gt.b.getColorValue(i.strokeColor),e.style.highlightedPolygonStrokeWidth=i.strokeWidth,e.style.highlightedPolygonCornerRadius=i.cornerRadius,e.style.polygonFillColor=gt.b.getColorValue(a.fillColor),e.style.polygonStrokeColor=gt.b.getColorValue(a.strokeColor),e.style.polygonStrokeWidth=a.strokeWidth,e.style.polygonCornerRadius=a.cornerRadius):(e.style.highlightedPolygonFillColor="transparent",e.style.highlightedPolygonStrokeColor="transparent",e.style.polygonFillColor="transparent",e.style.polygonStrokeColor="transparent"),e.automaticSelectionEnabled=!1,e}(t.arOverlay),l=Object.assign(Object.assign({},t.barcodeScannerViewConfig),{onBarcodesDetected:r=>{var o,i,a,s,l,c;null===(o=n.current)||void 0===o||o.update(null===(a=null===(i=e.current)||void 0===i?void 0:i.finder)||void 0===a?void 0:a.holeRect,null===(s=e.current)||void 0===s?void 0:s.camera,r.originalImageSize,r.barcodes),null===(c=(l=t.barcodeScannerViewConfig).onBarcodesDetected)||void 0===c||c.call(l,r)},_onDetectionFailed:r=>{var o,i,a,s,l,c;null===(o=n.current)||void 0===o||o.update(null===(a=null===(i=e.current)||void 0===i?void 0:i.finder)||void 0===a?void 0:a.holeRect,null===(s=e.current)||void 0===s?void 0:s.camera,new ah.a(r.width,r.height),[]),null===(c=(l=t.barcodeScannerViewConfig)._onDetectionFailed)||void 0===c||c.call(l,r)}});return Object(I.useEffect)((()=>{const e=Oh(r,t.actionBarConfig);t.setActionButtonsVisible(e),a(e)}),[r,t.actionBarConfig]),I.default.createElement(I.default.Fragment,null,t.arOverlay.visible&&I.default.createElement(Yd,{style:{zIndex:1e3,position:"absolute"},ref:n,LabelComponent:Ph,labelComponentConfig:t.arOverlay,onBarcodeFound:t.arOnBarcodeEnter,onPolygonClick:t.arOnBarcodeClick,configuration:s}),I.default.createElement(Eh,{config:t.actionBarConfig,scanner:e.current,capabilities:r,bottomPadding:t.actionBarBottomPadding,torchEnabledInitially:t.cameraConfiguration.flashEnabled,zoomSteps:t.cameraConfiguration.zoomSteps,defaultZoomFactor:t.cameraConfiguration.defaultZoomFactor,initialCameraModule:t.cameraConfiguration.cameraModule}),I.default.createElement(Ah,{ref:e,viewFinderPadding:t.viewFinderPadding,configuration:l,onSuccess:()=>class{static setFromScanner(t,e){var n;if(!t.current)return;const r=t.current.getCapabilities();e({hasFacingOptions:(null==r?void 0:r.facingMode)&&r.facingMode.length>0,isTorchAvailable:null!==(n=t.current.getActiveCameraInfo().supportsTorchControl)&&void 0!==n&&n})}}.setFromScanner(e,o),onFailure:t.onCameraPermissionDenied,onLicenseError:t.onLicenseError}))}function Fh(t){return Object(I.useMemo)((()=>{const e=(new mh).videoConstraints;return e.width.ideal=t.cameraConfiguration.idealPreviewResolution.width,e.height.ideal=t.cameraConfiguration.idealPreviewResolution.height,e.facingMode="FRONT"===t.cameraConfiguration.cameraModule?"user":"environment",{videoConstraints:e,backgroundColor:gt.b.getColorValue(t.backgroundColor),userGuidance:t.userGuidance,finder:t.viewFinder,detectionParameters:new k.BarcodeScannerTypes.BarcodeScannerConfiguration({live:!0,engineMode:t.recognizerConfiguration.engineMode,barcodeFormatConfigurations:[new k.BarcodeConfigs.BarcodeFormatCommonConfiguration({formats:t.recognizerConfiguration.barcodeFormats.length>0?t.recognizerConfiguration.barcodeFormats:void 0,regexFilter:t.recognizerConfiguration.barcodesRegexFilter,gs1Handling:t.recognizerConfiguration.gs1Handling})]}),desiredRecognitionResolution:t.recognizerConfiguration.maximumRecognizerResolution}}),[t])}var Ih=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};function Mh(t){const[e,n]=Object(I.useState)(null),[r,o]=Object(I.useState)(!0),i=Object(I.useMemo)((()=>"__sb_"+Math.random()),[]),a=t.barcodeMapper,s=t.configuration.useCase,l=Object.assign(Object.assign({},Fh(t.configuration)),{onBarcodesDetected:e=>{e.barcodes.length>0&&!s.arOverlay.visible&&t.scanningEnabled.current&&n(e.barcodes[0])},onError:t.onError,containerId:i,captureDelay:0}),c=n=>Ih(this,void 0,void 0,(function*(){let r;r=null===e?[]:[new W.BarcodeScannerUIItem({count:1,barcode:n})];const o={items:r};t.onSubmit(o)}));Object(I.useEffect)((()=>{e&&(Oo.INSTANCE.beep(t.configuration.sound),Lo.INSTANCE.vibrate(t.configuration.vibration))}),[e]),Object(I.useEffect)((()=>{null===e||s.confirmationSheetEnabled||c(e)}),[e,s.confirmationSheetEnabled]);const u=a.useBarcodeMappedData(e);Object(I.useEffect)((()=>{"FAILED"===(null==u?void 0:u.state)&&n(null)}),[null==u?void 0:u.state]);const d=Object(I.useContext)(Ne);return I.default.createElement(I.default.Fragment,null,I.default.createElement(Lh.Provider,{value:t.barcodeMapper},I.default.createElement(mo,Object.assign({open:!!u&&["LOADED","LOADING"].includes(u.state)&&s.confirmationSheetEnabled,handleCancel:()=>{n(null)},handleSubmit:()=>{c(e)},barcodeMappedData:u},{sheetColorLoaded:(h=s).sheetColor,sheetColorLoading:h.barcodeInfoMapping.sheetColor,barcodeImageVisible:h.barcodeImageVisible,barcodeTitle:h.barcodeTitle,barcodeSubtitle:h.barcodeSubtitle,cancelButton:h.cancelButton,submitButton:h.submitButton,dividerColor:h.dividerColor,loadingMessage:h.barcodeInfoMapping.loadingMessage},{displayRightArrow:!1,modalOverlayColor:s.modalOverlayColor})),I.default.createElement(mt,{id:i,sx:{width:"100%",height:d.remainingVisibleBodyHeight}},I.default.createElement(Bh,{cameraConfiguration:t.configuration.cameraConfiguration,scanningPaused:null!==e,setActionButtonsVisible:o,viewFinderPadding:{minTopPadding:d.minTopPaddingForViewFinder,minBottomPadding:r?80:0},barcodeScannerViewConfig:l,arOnBarcodeClick:t=>n(t),arOnBarcodeEnter:e=>{s.arOverlay.automaticSelectionEnabled&&t.scanningEnabled.current&&n(e)},arOverlay:Object.assign(Object.assign({},s.arOverlay),{counterBadge:Object.assign(Object.assign({},s.arOverlay.counterBadge),{visible:!1})}),containerId:i,actionBarConfig:t.configuration.actionBar,actionBarBottomPadding:16,onCameraPermissionDenied:t.onCameraPermissionDenied,onLicenseError:t.onError}))));var h}var Wh=Object(Ch.a)(Object($.jsx)("path",{d:"M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74m9.84 4.63-4.54-2.26c-.17-.07-.35-.11-.54-.11H13v-6c0-.83-.67-1.5-1.5-1.5S10 6.67 10 7.5v10.74c-3.6-.76-3.54-.75-3.67-.75-.31 0-.59.13-.79.33l-.79.8 4.94 4.94c.27.27.65.44 1.06.44h6.79c.75 0 1.33-.55 1.44-1.28l.75-5.27c.01-.07.02-.14.02-.2 0-.62-.38-1.16-.91-1.38"}),"TouchApp"),zh=Object(Ch.a)(Object($.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Nh=Object(Ch.a)(Object($.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Vh=n(126);function Uh(t){const{children:e,defer:n=!1,fallback:r=null}=t,[o,i]=I.useState(!1);return Object(Tr.a)((()=>{n||i(!0)}),[n]),I.useEffect((()=>{n&&i(!0)}),[n]),Object($.jsx)(I.Fragment,{children:o?e:r})}var Hh=n(69),$h=n(57);const Gh=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Yh(t,e,n){var r;const o=function(t,e,n){const r=e.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=Object($h.a)(e);let a;if(e.fakeTransform)a=e.fakeTransform;else{const t=i.getComputedStyle(e);a=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("transform")}let s=0,l=0;if(a&&"none"!==a&&"string"==typeof a){const t=a.split("(")[1].split(")")[0].split(",");s=parseInt(t[4],10),l=parseInt(t[5],10)}return"left"===t?o?`translateX(${o.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:"right"===t?o?`translateX(-${r.right-o.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:"up"===t?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}(t,e,"function"==typeof(r=n)?r():r);o&&(e.style.webkitTransform=o,e.style.transform=o)}var Qh=I.forwardRef((function(t,e){const n=Vn(),r={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,container:l,direction:c="down",easing:u=r,in:d,onEnter:h,onEntered:p,onEntering:f,onExit:m,onExited:g,onExiting:v,style:b,timeout:y=o,TransitionComponent:A=Vr}=t,C=Object(N.a)(t,Gh),S=I.useRef(null),x=Object(Xt.a)(s.ref,S,e),w=t=>e=>{t&&(void 0===e?t(S.current):t(S.current,e))},O=w(((t,e)=>{Yh(c,t,l),Ur(t),h&&h(t,e)})),E=w(((t,e)=>{const r=Hr({timeout:y,style:b,easing:u},{mode:"enter"});t.style.webkitTransition=n.transitions.create("-webkit-transform",Object(z.a)({},r)),t.style.transition=n.transitions.create("transform",Object(z.a)({},r)),t.style.webkitTransform="none",t.style.transform="none",f&&f(t,e)})),L=w(p),j=w(v),k=w((t=>{const e=Hr({timeout:y,style:b,easing:u},{mode:"exit"});t.style.webkitTransition=n.transitions.create("-webkit-transform",e),t.style.transition=n.transitions.create("transform",e),Yh(c,t,l),m&&m(t)})),_=w((t=>{t.style.webkitTransition="",t.style.transition="",g&&g(t)})),T=I.useCallback((()=>{S.current&&Yh(c,S.current,l)}),[c,l]);return I.useEffect((()=>{if(d||"down"===c||"right"===c)return;const t=Object(Hh.a)((()=>{S.current&&Yh(c,S.current,l)})),e=Object($h.a)(S.current);return e.addEventListener("resize",t),()=>{t.clear(),e.removeEventListener("resize",t)}}),[c,d,l]),I.useEffect((()=>{d||T()}),[d,T]),Object($.jsx)(A,Object(z.a)({nodeRef:S,onEnter:O,onEntered:L,onEntering:E,onExit:k,onExited:_,onExiting:j,addEndListener:t=>{i&&i(S.current,t)},appear:a,in:d,timeout:y},C,{children:(t,e)=>I.cloneElement(s,Object(z.a)({ref:x,style:Object(z.a)({visibility:"exited"!==t||d?void 0:"hidden"},b,s.props.style)},e))}))}));function Zh(t){return Object(xt.a)("MuiDrawer",t)}Object(ht.a)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Xh=["BackdropProps"],qh=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],Kh=(t,e)=>{const{ownerState:n}=t;return[e.root,("permanent"===n.variant||"persistent"===n.variant)&&e.docked,e.modal]},Jh=Object(bt.a)(no,{name:"MuiDrawer",slot:"Root",overridesResolver:Kh})((({theme:t})=>({zIndex:(t.vars||t).zIndex.drawer}))),tp=Object(bt.a)("div",{shouldForwardProp:bt.b,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Kh})({flex:"0 0 auto"}),ep=Object(bt.a)(Lt,{name:"MuiDrawer",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.paper,e[`paperAnchor${Object(At.a)(n.anchor)}`],"temporary"!==n.variant&&e[`paperAnchorDocked${Object(At.a)(n.anchor)}`]]}})((({theme:t,ownerState:e})=>Object(z.a)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===e.anchor&&{left:0},"top"===e.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===e.anchor&&{right:0},"bottom"===e.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===e.anchor&&"temporary"!==e.variant&&{borderRight:`1px solid ${(t.vars||t).palette.divider}`},"top"===e.anchor&&"temporary"!==e.variant&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`},"right"===e.anchor&&"temporary"!==e.variant&&{borderLeft:`1px solid ${(t.vars||t).palette.divider}`},"bottom"===e.anchor&&"temporary"!==e.variant&&{borderTop:`1px solid ${(t.vars||t).palette.divider}`}))),np={left:"right",right:"left",top:"down",bottom:"up"};function rp(t){return-1!==["left","right"].indexOf(t)}function op(t,e){return"rtl"===t.direction&&rp(e)?np[e]:e}var ip=I.forwardRef((function(t,e){const n=Object(yt.a)({props:t,name:"MuiDrawer"}),r=Vn(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{anchor:i="left",BackdropProps:a,children:s,className:l,elevation:c=16,hideBackdrop:u=!1,ModalProps:{BackdropProps:d}={},onClose:h,open:p=!1,PaperProps:f={},SlideProps:m,TransitionComponent:g=Qh,transitionDuration:v=o,variant:b="temporary"}=n,y=Object(N.a)(n.ModalProps,Xh),A=Object(N.a)(n,qh),C=I.useRef(!1);I.useEffect((()=>{C.current=!0}),[]);const S=op(r,i),x=i,w=Object(z.a)({},n,{anchor:x,elevation:c,open:p,variant:b},A),O=(t=>{const{classes:e,anchor:n,variant:r}=t,o={root:["root"],docked:[("permanent"===r||"persistent"===r)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Object(At.a)(n)}`,"temporary"!==r&&`paperAnchorDocked${Object(At.a)(n)}`]};return Object(vt.a)(o,Zh,e)})(w),E=Object($.jsx)(ep,Object(z.a)({elevation:"temporary"===b?c:0,square:!0},f,{className:Object(et.a)(O.paper,f.className),ownerState:w,children:s}));if("permanent"===b)return Object($.jsx)(tp,Object(z.a)({className:Object(et.a)(O.root,O.docked,l),ownerState:w,ref:e},A,{children:E}));const L=Object($.jsx)(g,Object(z.a)({in:p,direction:np[S],timeout:v,appear:C.current},m,{children:E}));return"persistent"===b?Object($.jsx)(tp,Object(z.a)({className:Object(et.a)(O.root,O.docked,l),ownerState:w,ref:e},A,{children:L})):Object($.jsx)(Jh,Object(z.a)({BackdropProps:Object(z.a)({},a,d,{transitionDuration:v}),className:Object(et.a)(O.root,O.modal,l),open:p,ownerState:w,onClose:h,hideBackdrop:u,ref:e},A,y,{children:L}))})),ap=n(56),sp=n(49);const lp=["anchor","classes","className","width","style"],cp=Object(bt.a)("div",{shouldForwardProp:bt.b})((({theme:t,ownerState:e})=>Object(z.a)({position:"fixed",top:0,left:0,bottom:0,zIndex:t.zIndex.drawer-1},"left"===e.anchor&&{right:"auto"},"right"===e.anchor&&{left:"auto",right:0},"top"===e.anchor&&{bottom:"auto",right:0},"bottom"===e.anchor&&{top:"auto",bottom:0,right:0})));var up=I.forwardRef((function(t,e){const{anchor:n,classes:r={},className:o,width:i,style:a}=t,s=Object(N.a)(t,lp),l=t;return Object($.jsx)(cp,Object(z.a)({className:Object(et.a)("PrivateSwipeArea-root",r.root,r[`anchor${Object(At.a)(n)}`],o),ref:e,style:Object(z.a)({[rp(n)?"width":"height"]:i},a),ownerState:l},s))}));const dp=["BackdropProps"],hp=["anchor","disableBackdropTransition","disableDiscovery","disableSwipeToOpen","hideBackdrop","hysteresis","allowSwipeInChildren","minFlingVelocity","ModalProps","onClose","onOpen","open","PaperProps","SwipeAreaProps","swipeAreaWidth","transitionDuration","variant"];let pp=null;function fp(t,e,n){return"right"===t?n.body.offsetWidth-e[0].pageX:e[0].pageX}function mp(t,e,n){return"bottom"===t?n.innerHeight-e[0].clientY:e[0].clientY}function gp(t,e){return t?e.clientWidth:e.clientHeight}function vp(t,e,n,r){return Math.min(Math.max(n?e-t:r+e-t,0),r)}const bp="undefined"!=typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent);var yp=I.forwardRef((function(t,e){const n=Object(Vh.a)({name:"MuiSwipeableDrawer",props:t}),r=Vn(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{anchor:i="left",disableBackdropTransition:a=!1,disableDiscovery:s=!1,disableSwipeToOpen:l=bp,hideBackdrop:c,hysteresis:u=.52,allowSwipeInChildren:d=!1,minFlingVelocity:h=450,ModalProps:{BackdropProps:p}={},onClose:f,onOpen:m,open:g=!1,PaperProps:v={},SwipeAreaProps:b,swipeAreaWidth:y=20,transitionDuration:A=o,variant:C="temporary"}=n,S=Object(N.a)(n.ModalProps,dp),x=Object(N.a)(n,hp),[w,O]=I.useState(!1),E=I.useRef({isSwiping:null}),L=I.useRef(),j=I.useRef(),k=I.useRef(),_=Object(Xt.a)(v.ref,k),T=I.useRef(!1),P=I.useRef();Object(sp.a)((()=>{P.current=null}),[g]);const R=I.useCallback(((t,e={})=>{const{mode:n=null,changeTransition:o=!0}=e,s=op(r,i),l=-1!==["right","bottom"].indexOf(s)?1:-1,u=rp(i),d=u?`translate(${l*t}px, 0)`:`translate(0, ${l*t}px)`,h=k.current.style;h.webkitTransform=d,h.transform=d;let p="";if(n&&(p=r.transitions.create("all",Hr({easing:void 0,style:void 0,timeout:A},{mode:n}))),o&&(h.webkitTransition=p,h.transition=p),!a&&!c){const e=j.current.style;e.opacity=1-t/gp(u,k.current),o&&(e.webkitTransition=p,e.transition=p)}}),[i,a,c,r,A]),D=Object(qt.a)((t=>{if(!T.current)return;if(pp=null,T.current=!1,I.flushSync((()=>{O(!1)})),!E.current.isSwiping)return void(E.current.isSwiping=null);E.current.isSwiping=null;const e=op(r,i),n=rp(i);let o;o=n?fp(e,t.changedTouches,Object(ap.a)(t.currentTarget)):mp(e,t.changedTouches,Object($h.a)(t.currentTarget));const a=n?E.current.startX:E.current.startY,s=gp(n,k.current),l=vp(o,a,g,s),c=l/s;Math.abs(E.current.velocity)>h&&(P.current=1e3*Math.abs((s-l)/E.current.velocity)),g?E.current.velocity>h||c>u?f():R(0,{mode:"exit"}):E.current.velocity<-h||1-c>u?m():R(gp(n,k.current),{mode:"enter"})})),B=(t=!1)=>{if(!w){!t&&s&&d||I.flushSync((()=>{O(!0)}));const e=rp(i);!g&&k.current&&R(gp(e,k.current)+(s?15:-20),{changeTransition:!1}),E.current.velocity=0,E.current.lastTime=null,E.current.lastTranslate=null,E.current.paperHit=!1,T.current=!0}},F=Object(qt.a)((t=>{if(!k.current||!T.current)return;if(null!==pp&&pp!==E.current)return;B(!0);const e=op(r,i),n=rp(i),o=fp(e,t.touches,Object(ap.a)(t.currentTarget)),a=mp(e,t.touches,Object($h.a)(t.currentTarget));if(g&&k.current.contains(t.target)&&null===pp){const e=function({domTreeShapes:t,start:e,current:n,anchor:r}){const o={x:"scrollLeft",y:"scrollTop"},i={x:"scrollWidth",y:"scrollHeight"},a={x:"clientWidth",y:"clientHeight"};return t.some((t=>{let s=n>=e;"top"!==r&&"left"!==r||(s=!s);const l="left"===r||"right"===r?"x":"y",c=Math.round(t[o[l]]),u=c>0,d=c+t[a[l]]<t[i[l]];return!!(s&&d||!s&&u)}))}({domTreeShapes:function(t,e){const n=[];for(;t&&t!==e.parentElement;){const r=Object($h.a)(e).getComputedStyle(t);"absolute"===r.getPropertyValue("position")||"hidden"===r.getPropertyValue("overflow-x")||(t.clientWidth>0&&t.scrollWidth>t.clientWidth||t.clientHeight>0&&t.scrollHeight>t.clientHeight)&&n.push(t),t=t.parentElement}return n}(t.target,k.current),start:n?E.current.startX:E.current.startY,current:n?o:a,anchor:i});if(e)return void(pp=!0);pp=E.current}if(null==E.current.isSwiping){const e=Math.abs(o-E.current.startX),r=Math.abs(a-E.current.startY),i=n?e>r&&e>3:r>e&&r>3;if(i&&t.cancelable&&t.preventDefault(),!0===i||(n?r>3:e>3)){if(E.current.isSwiping=i,!i)return void D(t);E.current.startX=o,E.current.startY=a,s||g||(n?E.current.startX-=20:E.current.startY-=20)}}if(!E.current.isSwiping)return;const l=gp(n,k.current);let c=n?E.current.startX:E.current.startY;g&&!E.current.paperHit&&(c=Math.min(c,l));const u=vp(n?o:a,c,g,l);if(g)if(E.current.paperHit)0===u&&(E.current.startX=o,E.current.startY=a);else{if(!(n?o<l:a<l))return;E.current.paperHit=!0,E.current.startX=o,E.current.startY=a}null===E.current.lastTranslate&&(E.current.lastTranslate=u,E.current.lastTime=performance.now()+1);const d=(u-E.current.lastTranslate)/(performance.now()-E.current.lastTime)*1e3;E.current.velocity=.4*E.current.velocity+.6*d,E.current.lastTranslate=u,E.current.lastTime=performance.now(),t.cancelable&&t.preventDefault(),R(u)})),M=Object(qt.a)((t=>{if(t.defaultPrevented)return;if(t.defaultMuiPrevented)return;if(g&&(c||!j.current.contains(t.target))&&!k.current.contains(t.target))return;const e=op(r,i),n=rp(i),o=fp(e,t.touches,Object(ap.a)(t.currentTarget)),a=mp(e,t.touches,Object($h.a)(t.currentTarget));if(!g){var s;if(l||!(t.target===L.current||null!=(s=k.current)&&s.contains(t.target)&&("function"==typeof d?d(t,L.current,k.current):d)))return;if(n){if(o>y)return}else if(a>y)return}t.defaultMuiPrevented=!0,pp=null,E.current.startX=o,E.current.startY=a,B()}));return I.useEffect((()=>{if("temporary"===C){const t=Object(ap.a)(k.current);return t.addEventListener("touchstart",M),t.addEventListener("touchmove",F,{passive:!g}),t.addEventListener("touchend",D),()=>{t.removeEventListener("touchstart",M),t.removeEventListener("touchmove",F,{passive:!g}),t.removeEventListener("touchend",D)}}}),[C,g,M,F,D]),I.useEffect((()=>()=>{pp===E.current&&(pp=null)}),[]),I.useEffect((()=>{g||O(!1)}),[g]),Object($.jsxs)(I.Fragment,{children:[Object($.jsx)(ip,Object(z.a)({open:!("temporary"!==C||!w)||g,variant:C,ModalProps:Object(z.a)({BackdropProps:Object(z.a)({},p,{ref:j})},"temporary"===C&&{keepMounted:!0},S),hideBackdrop:c,PaperProps:Object(z.a)({},v,{style:Object(z.a)({pointerEvents:"temporary"!==C||g||d?"":"none"},v.style),ref:_}),anchor:i,transitionDuration:P.current||A,onClose:f,ref:e},x)),!l&&"temporary"===C&&Object($.jsx)(Uh,{children:Object($.jsx)(up,Object(z.a)({anchor:i,ref:L,width:y},b))})]})})),Ap=n(95);function Cp(t){const e=Object.assign(Object.assign({},t.title),{text:gt.b.getLocalizedBarcodeText(t.title.text,t.textReplacementArgs)});return I.default.createElement(I.default.Fragment,null,I.default.createElement(ze,Object.assign({},t.leftButton)),I.default.createElement(Vt,{sx:{flex:2,textAlign:"center",fontWeight:600,fontSize:18}},I.default.createElement(Qt.a,{config:e})),I.default.createElement(ze,Object.assign({},t.rightButton)))}function Sp(){return I.default.createElement("div",{style:{width:30,height:6,backgroundColor:Ap.a[300],borderRadius:3,position:"absolute",top:8,left:"calc(50% - 15px)"},"data-sb-drawer-puller":"1"})}function xp(t){return I.default.createElement(mt,Object.assign({sx:{display:"flex",width:"100%",alignItems:"center",justifyContent:"center",paddingTop:2,paddingBottom:1,touchAction:"none"},ref:t.innerRef},t.dragProps),I.default.createElement(Sp,null),I.default.createElement(Cp,Object.assign({},t.drawerHeaderContentProps)))}var wp=Object(Ch.a)(Object($.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Op(t){return Object(xt.a)("MuiAvatar",t)}Object(ht.a)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Ep=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],Lp=["component","slots","slotProps"],jp=["component"];const kp=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],_p=Object(bt.a)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],n.colorDefault&&e.colorDefault]}})((({theme:t})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:Object(z.a)({color:(t.vars||t).palette.background.default},t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:Object(z.a)({backgroundColor:t.palette.grey[400]},t.applyStyles("dark",{backgroundColor:t.palette.grey[600]})))}]}))),Tp=Object(bt.a)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(t,e)=>e.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Pp=Object(bt.a)(wp,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(t,e)=>e.fallback})({width:"75%",height:"75%"});var Rp=I.forwardRef((function(t,e){const n=Object(yt.a)({props:t,name:"MuiAvatar"}),{alt:r,children:o,className:i,component:a="div",slots:s={},slotProps:l={},imgProps:c,sizes:u,src:d,srcSet:h,variant:p="circular"}=n,f=Object(N.a)(n,kp);let m=null;const g=function({crossOrigin:t,referrerPolicy:e,src:n,srcSet:r}){const[o,i]=I.useState(!1);return I.useEffect((()=>{if(!n&&!r)return;i(!1);let o=!0;const a=new Image;return a.onload=()=>{o&&i("loaded")},a.onerror=()=>{o&&i("error")},a.crossOrigin=t,a.referrerPolicy=e,a.src=n,r&&(a.srcset=r),()=>{o=!1}}),[t,e,n,r]),o}(Object(z.a)({},c,{src:d,srcSet:h})),v=d||h,b=v&&"error"!==g,y=Object(z.a)({},n,{colorDefault:!b,component:a,variant:p}),A=(t=>{const{classes:e,variant:n,colorDefault:r}=t,o={root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]};return Object(vt.a)(o,Op,e)})(y),[C,S]=function(t,e){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:a,internalForwardedProps:s}=e,l=Object(N.a)(e,Ep),{component:c,slots:u={[t]:void 0},slotProps:d={[t]:void 0}}=i,h=Object(N.a)(i,Lp),p=u[t]||r,f=pr(d[t],o),m=hr(Object(z.a)({className:n},l,{externalForwardedProps:"root"===t?h:void 0,externalSlotProps:f})),{props:{component:g},internalRef:v}=m,b=Object(N.a)(m.props,jp),y=Object(sr.a)(v,null==f?void 0:f.ref,e.ref),A=a?a(b):{},C=Object(z.a)({},o,A),S="root"===t?g||c:g,x=cr(p,Object(z.a)({},"root"===t&&!c&&!u[t]&&s,"root"!==t&&!u[t]&&s,b,S&&{as:S},{ref:y}),C);return Object.keys(A).forEach((t=>{delete x[t]})),[p,x]}("img",{className:A.img,elementType:Tp,externalForwardedProps:{slots:s,slotProps:{img:Object(z.a)({},c,l.img)}},additionalProps:{alt:r,src:d,srcSet:h,sizes:u},ownerState:y});return m=b?Object($.jsx)(C,Object(z.a)({},S)):o||0===o?o:v&&r?r[0]:Object($.jsx)(Pp,{ownerState:y,className:A.fallback}),Object($.jsx)(_p,Object(z.a)({as:a,ownerState:y,className:Object(et.a)(A.root,i),ref:e},f,{children:m}))}));function Dp(t){return I.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"41",height:"38",viewBox:"0 0 41 38",fill:"none"},I.default.createElement("path",{d:"M4.09514 37.0902V10.6304L0.019043 1.87823L3.18969 0.348877L7.76144 10.6304H32.6886L37.2484 0.348877L40.419 1.87823L36.3549 10.6304V37.0902H4.09514ZM15.994 22.013H24.494C24.9461 22.013 25.3211 21.8632 25.619 21.5637C25.9169 21.2641 26.0658 20.8871 26.0658 20.4325C26.0658 19.9779 25.9169 19.6038 25.619 19.3101C25.3211 19.0164 24.9461 18.8695 24.494 18.8695H15.994C15.5419 18.8695 15.167 19.0193 14.8691 19.3189C14.5712 19.6184 14.4223 19.9955 14.4223 20.45C14.4223 20.9046 14.5712 21.2788 14.8691 21.5725C15.167 21.8662 15.5419 22.013 15.994 22.013ZM7.50164 33.6837H32.9364V14.0489H7.50164V33.6837Z",fill:t.color}))}function Bp(t){return t.isVisible?I.default.createElement("div",{style:{display:"flex",alignItems:"center",flexDirection:"column",marginTop:"auto",marginBottom:"auto",overflowY:"scroll"}},t.style.placeholderIcon.visible&&I.default.createElement(Rp,{style:{backgroundColor:gt.b.getColorValue(t.style.placeholderIconBackground),width:100,height:100}},I.default.createElement(Dp,{color:gt.b.getColorValue(t.style.placeholderIcon.color)})),I.default.createElement(Vt,{style:{marginTop:20},variant:"h6"},I.default.createElement(Qt.a,{config:t.style.placeholderTitle})),I.default.createElement(Vt,{style:{marginTop:20,paddingLeft:"10%",paddingRight:"10%",maxWidth:400,textAlign:"center"},variant:"body2"},I.default.createElement(Qt.a,{config:t.style.placeholderSubtitle})),t.onStartClick&&t.style.startScanningButton.visible&&I.default.createElement(ir,Object.assign({style:{width:"60%",marginTop:20}},t.style.startScanningButton,{visible:!0,onClick:t.onStartClick}))):null}function Fp(t,e,n){const r=Object(I.useRef)(),o=Object(I.useRef)(null),[i,a]=Object(I.useState)(),[s,l]=Object(I.useState)(!1),c=Object(I.useRef)([]),u=t=>{let n="none";if(c.current.length>0){const e=200,r=((t,e)=>{let n=t[0],r=Math.abs(n.time-e);for(let o=1;o<t.length;o++){const i=Math.abs(t[o].time-e);i<r&&(n=t[o],r=i)}return n})(c.current,t.timeStamp-e),o=r.y-t.clientY,i=100;o>i?n="up":o<-i&&(n="down")}c.current.splice(0,c.current.length),e(new Fd.a(t.clientX,t.clientY),n)},d={onPointerDown:t=>{t.target.setPointerCapture(t.pointerId),l(!0),o.current=new Fd.a(t.clientX,t.clientY),a(Fd.a.empty()),t.stopPropagation()},onPointerMove:e=>{if(!s)return;const n=new Fd.a(e.clientX,e.clientY);r.current=e,a(n),t(n),c.current.push({x:e.clientX,y:e.clientY,time:e.timeStamp})},onPointerUp:t=>{t.target.releasePointerCapture(t.pointerId),l(!1),u(t)},onPointerCancel:t=>{t.target.releasePointerCapture(t.pointerId),l(!1),n()}};return{startPoint:o,currentPoint:i,props:d,stop:()=>{r.current.stopPropagation()},dragOngoing:s}}var Ip=n(58);function Mp(t){const[e,n]=Object(I.useState)(0),[r,o]=Object(I.useState)(!1),i=Object(I.useRef)(null),a=Object(I.useContext)(Ne).height,s=t=>{n(t),o(!0),setTimeout((()=>{o(!1)}),500)},l=e=>{const n=e-c.startPoint.current.y;return Object(Ip.a)((t.isOpen?100:0)-100*n/(window.innerHeight-a-t.closedSheetVisibleHeight),0,100)},c=Fp((t=>{n(l(t.y))}),((e,n)=>{if(e.y===c.startPoint.current.y)return;let r;r=l(e.y)<50?"swipe-to-close":"swipe-to-open","up"===n&&(r="swipe-to-open"),"down"===n&&(r="swipe-to-close"),t.onSwipe(r)}),(()=>{}));return Object(I.useEffect)((()=>{r||c.dragOngoing||!i||(t.isOpen||0===e?t.isOpen&&100!==e&&s(100):s(0))}),[t.isOpen,e,c.dragOngoing]),I.createElement("div",null,I.createElement(yp,{variant:"persistent",anchor:"bottom",open:!0,onClose:()=>{},onOpen:()=>{},swipeAreaWidth:56,disableSwipeToOpen:!1,ModalProps:{keepMounted:!0},PaperProps:{style:{height:`calc((100 * ${$t} - ${a}px - ${t.closedSheetVisibleHeight}px) * ${e} / 100 + ${t.closedSheetVisibleHeight}px)`,overflow:"hidden",borderRadius:10,borderBottomLeftRadius:0,borderBottomRightRadius:0,transition:r?"height 500ms":void 0,backgroundColor:gt.b.getColorValue(t.contentStyle.sheetColor)},elevation:24}},I.createElement(xp,{innerRef:t=>{i.current=t},drawerHeaderContentProps:t.drawerHeaderContentProps,dragProps:c.props}),t.children,I.createElement(Bp,{isVisible:t.isPlaceholderVisible,style:t.contentStyle,onStartClick:()=>t.onSwipe("swipe-to-close")})))}var Wp=n(104),zp=n.n(Wp),Np=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n};function Vp(t){var{inputRef:e}=t,n=Np(t,["inputRef"]);const r=Object.assign(Object.assign({},n),{style:Object.assign(Object.assign({},n.style||{}),{border:"none",display:"block",outlineWidth:0,width:"100%"})});return I.default.createElement("input",Object.assign({},r,{ref:e}))}var Up=Object(Ch.a)(Object($.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay");function Hp(t){const e=!!t.barcode,[n,r]=I.default.useState(""),o=I.default.useRef(null),i={backgroundColor:gt.b.getColorValue(t.dialogStyling.sheetColor)};return Object(I.useEffect)((()=>{e&&r(String(t.barcode.count))}),[e]),I.default.createElement(I.default.Fragment,null,I.default.createElement(fo,{open:e,modalOverlayColor:t.dialogStyling.modalOverlayColor,TransitionProps:{onEnter:()=>{var t;return null===(t=o.current)||void 0===t?void 0:t.focus()}},onClose:t.onCancel,PaperProps:{component:"form",onSubmit:e=>{e.preventDefault(),t.setCounter(t.barcode.barcode,parseInt(n)||0)}}},I.default.createElement(Ye,{style:i},I.default.createElement(Vt,{fontSize:16,fontWeight:500,textAlign:"center"},I.default.createElement(Qt.a,{config:t.dialogStyling.title})),I.default.createElement(Vt,{fontSize:14,textAlign:"center"},I.default.createElement(Qt.a,{config:t.dialogStyling.info})),I.default.createElement(mt,{sx:{display:"flex",border:"2px solid",borderColor:gt.b.getColorValue(t.dialogStyling.dividerColor),mh:2,mb:0,p:1,borderRadius:1}},I.default.createElement(Vp,{inputRef:o,value:n,onChange:t=>{const e=parseInt(t.target.value.replaceAll(/[^0-9]/g,""));r(e>=0?e.toString():"")},type:"text",pattern:"[0-9]*"}),t.dialogStyling.clearTextButton.visible&&I.default.createElement(zp.a,{sx:{marginLeft:"auto",paddingLeft:1},onClick:()=>r(""),htmlColor:gt.b.getColorValue(t.dialogStyling.clearTextButton.color)}))),I.default.createElement(qe,{sx:Object.assign(Object.assign({},i),{pt:0})},I.default.createElement(Kn,{container:!0,spacing:2},I.default.createElement(Kn,{item:!0,xs:12},I.default.createElement(or,{color:gt.b.getColorValue(t.dialogStyling.dividerColor)})),I.default.createElement(Kn,{item:!0,xs:6},I.default.createElement(ir,Object.assign({style:{width:"100%"},onClick:t.onCancel},t.dialogStyling.cancelButton))),I.default.createElement(Kn,{item:!0,xs:6},I.default.createElement(ir,Object.assign({icon:Up,style:{width:"100%"},onClick:()=>{},type:"submit"},t.dialogStyling.updateButton)))))))}var $p=I.createContext({});function Gp(t){return Object(xt.a)("MuiList",t)}Object(ht.a)("MuiList",["root","padding","dense","subheader"]);const Yp=["children","className","component","dense","disablePadding","subheader"],Qp=Object(bt.a)("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disablePadding&&e.padding,n.dense&&e.dense,n.subheader&&e.subheader]}})((({ownerState:t})=>Object(z.a)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})));var Zp=I.forwardRef((function(t,e){const n=Object(yt.a)({props:t,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=Object(N.a)(n,Yp),u=I.useMemo((()=>({dense:a})),[a]),d=Object(z.a)({},n,{component:i,dense:a,disablePadding:s}),h=(t=>{const{classes:e,disablePadding:n,dense:r,subheader:o}=t,i={root:["root",!n&&"padding",r&&"dense",o&&"subheader"]};return Object(vt.a)(i,Gp,e)})(d);return Object($.jsx)($p.Provider,{value:u,children:Object($.jsxs)(Qp,Object(z.a)({as:i,className:Object(et.a)(h.root,o),ref:e,ownerState:d},c,{children:[l,r]}))})})),Xp=n(70);function qp(t){return Object(xt.a)("MuiListItem",t)}var Kp=Object(ht.a)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var Jp=Object(ht.a)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function tf(t){return Object(xt.a)("MuiListItemSecondaryAction",t)}Object(ht.a)("MuiListItemSecondaryAction",["root","disableGutters"]);const ef=["className"],nf=Object(bt.a)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.disableGutters&&e.disableGutters]}})((({ownerState:t})=>Object(z.a)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0}))),rf=I.forwardRef((function(t,e){const n=Object(yt.a)({props:t,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=Object(N.a)(n,ef),i=I.useContext($p),a=Object(z.a)({},n,{disableGutters:i.disableGutters}),s=(t=>{const{disableGutters:e,classes:n}=t,r={root:["root",e&&"disableGutters"]};return Object(vt.a)(r,tf,n)})(a);return Object($.jsx)(nf,Object(z.a)({className:Object(et.a)(s.root,r),ownerState:a,ref:e},o))}));rf.muiName="ListItemSecondaryAction";var of=rf;const af=["className"],sf=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],lf=Object(bt.a)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,"flex-start"===n.alignItems&&e.alignItemsFlexStart,n.divider&&e.divider,!n.disableGutters&&e.gutters,!n.disablePadding&&e.padding,n.button&&e.button,n.hasSecondaryAction&&e.secondaryAction]}})((({theme:t,ownerState:e})=>Object(z.a)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!e.disablePadding&&Object(z.a)({paddingTop:8,paddingBottom:8},e.dense&&{paddingTop:4,paddingBottom:4},!e.disableGutters&&{paddingLeft:16,paddingRight:16},!!e.secondaryAction&&{paddingRight:48}),!!e.secondaryAction&&{[`& > .${Jp.root}`]:{paddingRight:48}},{[`&.${Kp.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Kp.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Object(Ct.a)(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Kp.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Object(Ct.a)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Kp.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"flex-start"===e.alignItems&&{alignItems:"flex-start"},e.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},e.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Kp.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Object(Ct.a)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Object(Ct.a)(t.palette.primary.main,t.palette.action.selectedOpacity)}}},e.hasSecondaryAction&&{paddingRight:48}))),cf=Object(bt.a)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(t,e)=>e.container})({position:"relative"});var uf=I.forwardRef((function(t,e){const n=Object(yt.a)({props:t,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:i=!1,children:a,className:s,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:h}={},dense:p=!1,disabled:f=!1,disableGutters:m=!1,disablePadding:g=!1,divider:v=!1,focusVisibleClassName:b,secondaryAction:y,selected:A=!1,slotProps:C={},slots:S={}}=n,x=Object(N.a)(n.ContainerProps,af),w=Object(N.a)(n,sf),O=I.useContext($p),E=I.useMemo((()=>({dense:p||O.dense||!1,alignItems:r,disableGutters:m})),[r,O.dense,p,m]),L=I.useRef(null);Object(sp.a)((()=>{o&&L.current&&L.current.focus()}),[o]);const j=I.Children.toArray(a),k=j.length&&Object(Xp.a)(j[j.length-1],["ListItemSecondaryAction"]),_=Object(z.a)({},n,{alignItems:r,autoFocus:o,button:i,dense:E.dense,disabled:f,disableGutters:m,disablePadding:g,divider:v,hasSecondaryAction:k,selected:A}),T=(t=>{const{alignItems:e,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=t,d={root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button","flex-start"===e&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]};return Object(vt.a)(d,qp,r)})(_),P=Object(Xt.a)(L,e),R=S.root||c.Root||lf,D=C.root||u.root||{},B=Object(z.a)({className:Object(et.a)(T.root,D.className,s),disabled:f},w);let F=l||"li";return i&&(B.component=l||"div",B.focusVisibleClassName=Object(et.a)(Kp.focusVisible,b),F=Le),k?(F=B.component||l?F:"div","li"===d&&("li"===F?F="div":"li"===B.component&&(B.component="div")),Object($.jsx)($p.Provider,{value:E,children:Object($.jsxs)(cf,Object(z.a)({as:d,className:Object(et.a)(T.container,h),ref:P,ownerState:_},x,{children:[Object($.jsx)(R,Object(z.a)({},D,!lr(R)&&{as:F,ownerState:Object(z.a)({},_,D.ownerState)},B,{children:j})),j.pop()]}))})):Object($.jsx)($p.Provider,{value:E,children:Object($.jsxs)(R,Object(z.a)({},D,{as:F,ref:P},!lr(R)&&{ownerState:Object(z.a)({},_,D.ownerState)},B,{children:[j,y&&Object($.jsx)(of,{children:y})]}))})})),df=n(76),hf=n.n(df);function pf(t){return I.default.createElement("div",{style:{top:0,width:"100%",marginTop:"1px",marginLeft:"1px",height:"calc(100% - 2px)",position:"absolute",backgroundColor:gt.b.getColorValue(t.config.backgroundColor),display:"flex",alignItems:"right",justifyContent:"right"}},I.default.createElement(hf.a,{style:{height:"100%",color:gt.b.getColorValue(t.config.iconColor),paddingRight:t.visibleOffset/2,cursor:"pointer"}}))}var ff=n(99);function mf(t,e,n,r,o){const[i,a]=I.useState((()=>o&&n?n(t).matches:r?r(t).matches:e));return Object(sp.a)((()=>{let e=!0;if(!n)return;const r=n(t),o=()=>{e&&a(r.matches)};return o(),r.addListener(o),()=>{e=!1,r.removeListener(o)}}),[t,n]),i}const gf=I.useSyncExternalStore;function vf(t,e,n,r,o){const i=I.useCallback((()=>e),[e]),a=I.useMemo((()=>{if(o&&n)return()=>n(t).matches;if(null!==r){const{matches:e}=r(t);return()=>e}return i}),[i,t,r,o,n]),[s,l]=I.useMemo((()=>{if(null===n)return[i,()=>()=>{}];const e=n(t);return[()=>e.matches,t=>(e.addListener(t),()=>{e.removeListener(t)})]}),[i,n,t]);return gf(l,s,a)}function bf(t,e={}){const n=Object(Q.a)(),r="undefined"!=typeof window&&"undefined"!=typeof window.matchMedia,{defaultMatches:o=!1,matchMedia:i=(r?window.matchMedia:null),ssrMatchMedia:a=null,noSsr:s=!1}=Object(ff.a)({name:"MuiUseMediaQuery",props:e,theme:n});let l="function"==typeof t?t(n):t;l=l.replace(/^@media( ?)/m,"");return(void 0!==gf?vf:mf)(l,o,i,a,s)}const yf=0,Af=800,Cf=1200;function Sf(t){switch(t){case"mobile":return bf("(min-width:"+yf+"px) and (max-width:"+(Af-1)+"px)");case"tablet":return bf("(min-width:"+Af+"px) and (max-width:"+(Cf-1)+"px)");case"desktop":return bf("(min-width:"+Cf+"px)")}}const xf=150;function wf(t){const[e,n]=Object(I.useState)(0),[r,o]=Object(I.useState)(!1);let i;const a=Fp((t=>{let e=a.startPoint.current.x-t.x;e<0?a.stop():n(-e)}),(e=>{if(e.x===a.startPoint.current.x)return;if(a.startPoint.current.x-e.x>75){const e=t.animateBackAfterDelete?()=>{c(0)}:void 0;c(xf,e)}else c(0)}),(()=>{c(0)})),s=Object(I.useContext)(Lh),l=s.useBarcodeMappedData(t.barcode);Object(I.useEffect)((()=>{const e={barcode:t.barcode,callback:()=>t.onDelete(t.barcode)};return s.addOnEvictionListener(e),()=>{s.removeOnEvictionListener(e)}}),[]);const c=(e,r)=>{const a=e>=xf,s=-i.getBoundingClientRect().width;n(a?s:0),o(!0),setTimeout((()=>{o(!1),a&&t.onDelete(t.barcode),r&&r()}),200)},u=Sf("desktop")&&t.swipeToDeleteConfig.enabled,d=!u&&t.swipeToDeleteConfig.enabled;return Object(I.useEffect)((()=>{d||c(0)}),[d]),I.default.createElement(mt,{sx:{px:2},style:{width:"100%",paddingRight:0},ref:t=>{t&&(i=t)}},I.default.createElement(pf,{config:t.swipeToDeleteConfig,visibleOffset:xf}),I.default.createElement(mt,Object.assign({sx:{width:"100%",backgroundColor:gt.b.getColorValue(t.sheetColor),transform:`translateX(${e}px)`,transition:r?"transform 200ms ease-in-out":void 0,touchAction:"pan-y",display:"flex",alignItems:"center",paddingTop:"16px",paddingBottom:"16px",columnGap:"16px"}},d?a.props:{}),I.default.createElement(Wn,Object.assign({barcodeMappedData:l},t)),null!==t.readonlyCount&&I.default.createElement(mt,{sx:{fontSize:18,marginTop:"auto",flex:1,textAlign:"right",color:gt.b.getColorValue("?sbColorOnSurfaceVariant")}},"x",t.readonlyCount),u&&I.default.createElement(hf.a,{sx:{height:"100%",marginLeft:"auto",cursor:"pointer",color:gt.b.getColorValue("?sbColorOnSurface")},onClick:()=>t.onDelete(t.barcode)}),I.default.createElement(mt,{sx:{width:"0px"}})))}function Of(t){const e=gt.b.getColorValue(t.sheetContent.dividerColor),n=t.sheetContent.manualCountChangeEnabled&&"COUNTING"===t.mode,r=(e,n)=>{let r=t.indicatorColor.partial;return n===e.count?r=t.indicatorColor.complete:0===n&&(r=t.indicatorColor.notScanned),gt.b.getColorValue(r)};return I.default.createElement(I.default.Fragment,null,I.default.createElement(or,{style:{borderColor:e}}),t.barcodes.length>0&&I.default.createElement(mt,{sx:{width:"auto",flex:1,overflowY:"auto",overflowX:"hidden"},role:"presentation"},I.default.createElement(Zp,{sx:{p:0}},t.barcodes.map((({barcode:o,count:i},a)=>{const s=t.expectedBarcodes.find((t=>t.barcodeValue===o.text));return I.default.createElement(uf,{key:a,sx:{padding:0,borderBottom:`1px solid ${e}`}},t.indicatorColor&&I.default.createElement("div",{style:{display:"flex",width:4,height:"100%",backgroundColor:r(s,i),position:"absolute"}}),I.default.createElement(wf,{barcode:o,animateBackAfterDelete:t.animateBackAfterDelete,onDelete:()=>t.onBarcodeChange({type:"remove",barcode:o}),counterForm:n&&{counter:i,manualCountChangeColor:t.sheetContent.manualCountChangeColor,manualCountOutlineColor:t.sheetContent.manualCountOutlineColor,addButtonEnabled:void 0===s||s.count>i,removeButtonEnabled:void 0===s||i>0,setCounter:e=>{t.onBarcodeChange({type:"setCount",barcodes:[o],computeNewCount:()=>e})},onNumberClick:()=>t.onNumberClick({barcode:o,count:i})},readonlyCount:"COUNTING"!==t.mode||t.sheetContent.manualCountChangeEnabled?null:i,maxNumberOfTitleLines:1,maxNumberOfSubtitleLines:1,displayRightArrow:!1,imageSize:n?84:40,barcodeImageVisible:t.sheetContent.barcodeItemImageVisible,barcodeTitle:t.sheetContent.barcodeItemTitle,barcodeSubtitle:t.sheetContent.barcodeItemSubtitle,swipeToDeleteConfig:t.sheetContent.swipeToDelete,sheetColor:t.sheetContent.sheetColor}))})))))}var Ef=n(105),Lf=n.n(Ef);var jf=t=>{const e=I.useRef({});return I.useEffect((()=>{e.current=t})),e.current};function kf(t){return Object(xt.a)("MuiBadge",t)}var _f=Object(ht.a)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);const Tf=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Pf=yt.a,Rf=Object(bt.a)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(t,e)=>e.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Df=Object(bt.a)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.badge,e[n.variant],e[`anchorOrigin${Object(At.a)(n.anchorOrigin.vertical)}${Object(At.a)(n.anchorOrigin.horizontal)}${Object(At.a)(n.overlap)}`],"default"!==n.color&&e[`color${Object(At.a)(n.color)}`],n.invisible&&e.invisible]}})((({theme:t})=>{var e;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen}),variants:[...Object.keys((null!=(e=t.vars)?e:t).palette).filter((e=>{var n,r;return(null!=(n=t.vars)?n:t).palette[e].main&&(null!=(r=t.vars)?r:t).palette[e].contrastText})).map((e=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main,color:(t.vars||t).palette[e].contrastText}}))),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:({ownerState:t})=>"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${_f.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${_f.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${_f.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${_f.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${_f.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${_f.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${_f.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${_f.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})}}]}}));var Bf=I.forwardRef((function(t,e){var n,r,o,i,a,s;const l=Pf({props:t,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:u,component:d,components:h={},componentsProps:p={},children:f,overlap:m="rectangular",color:g="default",invisible:v=!1,max:b=99,badgeContent:y,slots:A,slotProps:C,showZero:S=!1,variant:x="standard"}=l,w=Object(N.a)(l,Tf),{badgeContent:O,invisible:E,max:L,displayValue:j}=function(t){const{badgeContent:e,invisible:n=!1,max:r=99,showZero:o=!1}=t,i=jf({badgeContent:e,max:r});let a=n;!1!==n||0!==e||o||(a=!0);const{badgeContent:s,max:l=r}=a?i:t;return{badgeContent:s,invisible:a,max:l,displayValue:s&&Number(s)>l?`${l}+`:s}}({max:b,invisible:v,badgeContent:y,showZero:S}),k=jf({anchorOrigin:c,color:g,overlap:m,variant:x,badgeContent:y}),_=E||null==O&&"dot"!==x,{color:T=g,overlap:P=m,anchorOrigin:R=c,variant:D=x}=_?k:l,B="dot"!==D?j:void 0,F=Object(z.a)({},l,{badgeContent:O,invisible:_,max:L,displayValue:B,showZero:S,anchorOrigin:R,color:T,overlap:P,variant:D}),I=(t=>{const{color:e,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=t,s={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${Object(At.a)(n.vertical)}${Object(At.a)(n.horizontal)}`,`anchorOrigin${Object(At.a)(n.vertical)}${Object(At.a)(n.horizontal)}${Object(At.a)(o)}`,`overlap${Object(At.a)(o)}`,"default"!==e&&`color${Object(At.a)(e)}`]};return Object(vt.a)(s,kf,a)})(F),M=null!=(n=null!=(r=null==A?void 0:A.root)?r:h.Root)?n:Rf,W=null!=(o=null!=(i=null==A?void 0:A.badge)?i:h.Badge)?o:Df,V=null!=(a=null==C?void 0:C.root)?a:p.root,U=null!=(s=null==C?void 0:C.badge)?s:p.badge,H=mr({elementType:M,externalSlotProps:V,externalForwardedProps:w,additionalProps:{ref:e,as:d},ownerState:F,className:Object(et.a)(null==V?void 0:V.className,I.root,u)}),G=mr({elementType:W,externalSlotProps:U,ownerState:F,className:Object(et.a)(I.badge,null==U?void 0:U.className)});return Object($.jsxs)(M,Object(z.a)({},H,{children:[f,Object($.jsx)(W,Object(z.a)({},G,{children:B}))]}))}));function Ff(t){return I.default.createElement(Bf,{anchorOrigin:{vertical:"top",horizontal:"left"},badgeContent:t.text,showZero:!0,color:"primary",overlap:"circular",slotProps:{badge:{style:{backgroundColor:t.backgroundColor,color:t.foregroundColor,fontWeight:"bold"}}}},t.children)}function If(t){if(!t.buttonStyling.visible)return null;return I.default.createElement(mt,{style:t.style},I.default.createElement(Ff,{text:t.text,backgroundColor:gt.b.getColorValue(t.buttonStyling.badgeBackgroundColor),foregroundColor:gt.b.getColorValue(t.buttonStyling.badgeForegroundColor)},I.default.createElement(Ao,{sx:{backgroundColor:gt.b.getColorValue(t.buttonStyling.backgroundColor),width:60,height:60,"&:hover, &:focus":{backgroundColor:gt.b.getColorValue(t.buttonStyling.activeBackgroundColor),outline:"none"}},onClick:t.onClick,disableRipple:!0,disableFocusRipple:!0},I.default.createElement(Lf.a,{sx:{color:gt.b.getColorValue(t.buttonStyling.foregroundColor),fontSize:"24pt","&:hover, &:focus":{color:gt.b.getColorValue(t.buttonStyling.activeForegroundColor)}}}))))}const Mf=(t,e)=>(null===t.format||null===e.format||t.format===e.format)&&t.text===e.text,Wf=(t,e)=>t.find((t=>((t,e)=>t.barcodeValue===e.text)(t,e)));class zf{constructor(t,e){this.expectedCount=t,this.foundCount=e}isFulFilled(){return void 0!==this.expectedCount&&void 0!==this.foundCount&&this.expectedCount===this.foundCount}toString(){return`${this.foundCount}/${this.expectedCount}`}}function Nf(t){const e=Object(I.useContext)(gt.a).getColorValue,n={backgroundColor:e(t.sheetColor)};return I.default.createElement(fo,{modalOverlayColor:t.modalOverlayColor,open:t.open},I.default.createElement(Ye,{sx:Object.assign(Object.assign({},n),{p:2,pb:1,textAlign:"center"})},I.default.createElement(Vt,{sx:{fontSize:"16pt",fontWeight:"bold"}},I.default.createElement(Qt.a,{config:t.title})),I.default.createElement(Vt,{sx:{fontSize:"14pt",lineHeight:"16pt"}},I.default.createElement(Qt.a,{config:t.subtitle}))),I.default.createElement(qe,{sx:Object.assign(Object.assign({},n),{pt:1})},I.default.createElement(Kn,{container:!0,spacing:2},I.default.createElement(Kn,{item:!0,xs:12},I.default.createElement(or,{color:e(t.dividerColor)})),I.default.createElement(Kn,{item:!0,xs:6},I.default.createElement(ir,Object.assign({style:{width:"100%"},icon:t.cancelButton.icon,onClick:t.cancelButton.onClick},t.cancelButton.style))),I.default.createElement(Kn,{item:!0,xs:6},I.default.createElement(ir,Object.assign({style:{width:"100%"},icon:t.okButton.icon,onClick:t.okButton.onClick},t.okButton.style))))))}function Vf(t){return t.open?I.default.createElement(Nf,{open:t.open,dividerColor:t.style.dividerColor,modalOverlayColor:t.style.modalOverlayColor,sheetColor:t.style.sheetColor,title:t.style.title,subtitle:t.style.subtitle,cancelButton:{style:t.style.cancelButton,onClick:t.onDismiss},okButton:{style:t.style.okButton,onClick:t.onSubmit}}):null}class Uf{constructor(t,e,n){this.barcodeItemSubtitleText=t,this.foundBarcodes=e,this.expectedBarcodes=n}useBarcodeMappedData(t){var e,n,r;const o=null!==(n=null===(e=this.foundBarcodes.find((e=>Mf(e.barcode,t))))||void 0===e?void 0:e.count.toString())&&void 0!==n?n:"0",i=Wf(this.expectedBarcodes,t);return{state:"LOADED",value:{title:`${null!==(r=i.title)&&void 0!==r?r:t.text}`,subtitle:gt.b.getLocalizedBarcodeText(this.barcodeItemSubtitleText,[o,null==i?void 0:i.count.toString()]),barcodeImage:i.image}}}addOnEvictionListener(){}removeOnEvictionListener(){}}function Hf(t){const e=Object(I.useContext)(Ne);return I.default.createElement(Kn,{item:!0,xs:5,component:"div",zIndex:1050,style:{paddingTop:e.minTopPaddingForContent,height:"100%",flexDirection:"column",display:"flex",backgroundColor:gt.b.getColorValue(t.sheetContent.sheetColor)}},I.default.createElement(mt,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},zIndex:50},I.default.createElement(Cp,Object.assign({},t.headerProps))),t.barcodeList,I.default.createElement(Bp,{isVisible:t.isEmptyStateVisible,style:t.sheetContent}))}var $f=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};function Gf(t){const e=Object(I.useRef)(),n=Object(I.useRef)(new Date("2001-01-01")),[r,o]=Object(I.useReducer)(function(t,e,n,r){return(o,i)=>{const a=t.useCase,s="FindAndPickScanningMode"===a._type,l=s?"COUNTING":a.mode,c=s?a.expectedBarcodes:[],u=t=>{let e=[...o];const n=i.barcodes||[i.barcode];for(const r of n){const n=e.findIndex((t=>Mf(t.barcode,r)));if(-1===n)e.push({barcode:r,count:t(0)});else{const r=e[n];e[n]=Object.assign(Object.assign({},r),{count:t(r.count,r)})}}return e},d=(t,n)=>{var o;if(e.current=new Date,!n)return t;const i=null===(o=Wf(c,n.barcode))||void 0===o?void 0:o.count;return void 0===i||i===t?t:(r(),t+1)};switch(i.type){case"onBarcodesDetected":{if((new Date).getTime()-e.current.getTime()<a.countingRepeatDelay||!n.current)return[...o];if(s)return a.arOverlay.automaticSelectionEnabled?u(d):[...o];const t=a.arOverlay;if(!t.visible||t.automaticSelectionEnabled){let t=!1;return u((n=>{let o="COUNTING"===l?n+1:1;return o===n||t||(e.current=new Date,r()),o}))}return u((t=>t))}case"onARCodeClick":return u(((t,e)=>{if(s)return d(t,e);const n="UNIQUE"===l?1-t:t+1;return n>0&&r(),n}));case"onCountEditDialogChange":{let t=()=>i.count||0;if(s){const e=Wf(c,i.barcode);i.count>e.count&&(t=()=>e.count)}return u(t)}case"setCount":return u(i.computeNewCount);case"remove":return o.map((t=>Object.assign(Object.assign({},t),{count:Mf(t.barcode,i.barcode)?0:t.count})));case"clear":return o.map((t=>Object.assign(Object.assign({},t),{count:0})));case"setHtmlElements":let t=!1;const h=o.map((e=>Mf(e.barcode,i.barcode)?(t=!0,Object.assign(Object.assign({},e),{polygonElement:i.polygonElement,labelElement:i.labelElement})):e));return t||h.push({barcode:i.barcode,count:0,labelElement:i.labelElement,polygonElement:i.polygonElement}),h}}}(t.configuration,n,t.scanningEnabled,(()=>{Oo.INSTANCE.beep(t.configuration.sound),Lo.INSTANCE.vibrate(t.configuration.vibration)})),[]),[i,a]=I.default.useState(null),[s,l]=Object(I.useState)(!1),c=Object(I.useMemo)((()=>"__sb_"+Math.random()),[]),[u,d]=Object(I.useState)(!0),h=t.barcodeMapper,[p,f]=Object(I.useState)(null),m="FindAndPickScanningMode"===t.configuration.useCase._type,g=t.configuration.useCase,v=m?"COUNTING":g.mode,b=Object(I.useRef)(Object.assign(Object.assign({},Fh(t.configuration)),{onBarcodesDetected:t=>{o({type:"onBarcodesDetected",barcodes:t.barcodes})},_onDetectionFailed(t){},onError:t.onError,captureDelay:1e3/60}));Object(I.useEffect)((()=>{if(m){const e=C();for(const n of e){const e=[(t=n.barcodeValue,new k.BarcodeScannerTypes.BarcodeItem({text:t,format:null,quad:[],sourceImage:null,rawBytes:null,upcEanExtension:null,parsedDocument:null}))];o({type:"setCount",barcodes:e,computeNewCount:()=>0})}}var t}),[]),Object(I.useEffect)((()=>{b.current.container=e.current}),[e]),Object(I.useEffect)((()=>{if(m)for(const t of r){const e=g.arOverlay,n=t.polygonElement,r=t.labelElement;if(x(t.barcode)){const o=B(t.barcode);let i=t.count+"/"+o.expectedCount;g.arOverlay.automaticSelectionEnabled||0!==t.count||(i=I.default.createElement(Wh,null)),o.isFulFilled()?(null==n||n.style(gt.b.getPolygonColorValues(e.polygon.completed,e.polygon.visible)),null==r||r.styleBadge(e.badge.completed,I.default.createElement(zh,null))):(null==n||n.style(gt.b.getPolygonColorValues(e.polygon.partiallyScanned,e.polygon.visible)),null==r||r.styleBadge(e.badge.partiallyScanned,i))}else null==n||n.style(gt.b.getPolygonColorValues(e.polygon.rejected,e.polygon.visible)),null==r||r.styleBadge(e.badge.rejected,I.default.createElement(Nh,null))}else for(const t of r){if(t.polygonElement){const e=g.arOverlay.polygon,n=t.count>0?e.selected:e.deselected;t.polygonElement.style(gt.b.getPolygonColorValues(n,e.visible))}t.labelElement&&(t.labelElement.update(Object.assign(Object.assign({},t.labelElement.state.element),{highlighted:t.count>0})),t.labelElement.setCount(t.count))}}),[r]);const y=r.reduce(((t,e)=>t+e.count),0),A=()=>C().every((t=>r.some((e=>e.barcode.text===t.barcodeValue&&e.count===t.count)))),C=()=>m?g.expectedBarcodes:[],S=t=>Wf(C(),t),x=t=>!!S(t),w=()=>m?r.filter((t=>x(t.barcode))):r.filter((t=>t.count>0)),O=()=>$f(this,void 0,void 0,(function*(){const e=w().map((t=>new W.BarcodeScannerUIItem({count:"COUNTING"===v?t.count:1,barcode:t.barcode})));t.onSubmit({items:e})})),E=I.default.createElement(Of,{expectedBarcodes:C(),barcodes:w(),animateBackAfterDelete:m,onBarcodeChange:o,sheetContent:g.sheetContent,onNumberClick:t=>a(t),mode:v,indicatorColor:m&&{partial:g.scanningPartiallyColor,complete:g.scanningCompletedColor,notScanned:g.scanningNotScannedColor}}),L={textReplacementArgs:[y.toString()],leftButton:Object.assign(Object.assign({},g.sheetContent.clearAllButton),{onClick:()=>o({type:"clear"})}),rightButton:Object.assign(Object.assign({},g.sheetContent.submitButton),{onClick:()=>$f(this,void 0,void 0,(function*(){if(m){const t=g;let e=null;t.partialScannedAlertDialogEnabled&&!A()&&(e=t.partialScannedAlertDialog),t.confirmationAlertDialogEnabled&&A()&&(e=t.confirmationAlertDialog),e?f(e):yield O()}else yield O()}))}),title:g.sheetContent.title},j=Sf("mobile"),_="BUTTON"!==g.sheet.mode&&j?"SMALL"===g.sheet.collapsedVisibleHeight?69:128:0,T=j&&"BUTTON"===g.sheet.mode,P=T?76:0,R=(u?80:0)+P,D=Object(I.useContext)(Ne),B=t=>{const e=r.find((e=>e.barcode.text===t.text)),n=S(t);return new zf(null==n?void 0:n.count,null==e?void 0:e.count)},F=C().reduce(((t,e)=>t+e.count),0);m&&L.textReplacementArgs.push(F.toString());const M=m?new Uf(g.sheetContent.barcodeItemSubtitle.text,r,C()):h,z=!m&&0===y;return I.default.createElement(I.default.Fragment,null,I.default.createElement(Lh.Provider,{value:M},I.default.createElement(Kn,{container:!0,sx:{display:"flex",flexDirection:j?"column":"row",height:`calc(${D.remainingVisibleBodyHeight} - ${_}px)`},alignItems:"stretch"},I.default.createElement(Kn,{id:c,item:!0,ref:e,component:"div",xs:j?12:7,zIndex:100},T&&I.default.createElement(If,{style:{position:"absolute",marginTop:`calc(${D.remainingVisibleBodyHeight} - 60px - 8px)`,width:"100%",display:"flex",justifyContent:"center",zIndex:1100},text:m?`${y}/${F}`:y.toString(),onClick:()=>l(!s),buttonStyling:g.sheet.listButton}),I.default.createElement(Bh,{viewFinderPadding:{minTopPadding:D.minTopPaddingForContent,minBottomPadding:R},arOverlay:(()=>{if(m){const t=g.arOverlay;return Object.assign(Object.assign({},t),{counterBadge:Object.assign({},t.badge.partiallyScanned)})}const t=g.arOverlay,e=t.counterBadge;return Object.assign(Object.assign({},t),{counterBadge:Object.assign(Object.assign({},e),{visible:e.visible&&"COUNTING"===v})})})(),containerId:c,barcodeScannerViewConfig:b.current,onCameraPermissionDenied:t.onCameraPermissionDenied,actionBarConfig:t.configuration.actionBar,actionBarBottomPadding:16+P,setActionButtonsVisible:d,arOnBarcodeClick:t=>{o({type:"onARCodeClick",barcode:t})},arOnBarcodeEnter:(t,e,n)=>{if(!n||!e)return;o({type:"setHtmlElements",barcode:t,labelElement:n,polygonElement:e})},scanningPaused:s&&j,cameraConfiguration:t.configuration.cameraConfiguration,onLicenseError:t.onError}),j&&I.default.createElement(Mp,{closedSheetVisibleHeight:_,sheetStyle:g.sheet,contentStyle:g.sheetContent,manualCountEditDialog:g.manualCountEditDialog,isPlaceholderVisible:z,onBarcodeChange:t=>o(t),drawerHeaderContentProps:L,isOpen:s,onSwipe:t=>{l("swipe-to-open"===t)}},E)),function(t){switch(t){case"mobile":return bf("(min-width:"+yf+"px)");case"tablet":return bf("(min-width:"+Af+"px)");case"desktop":return bf("(min-width:"+Cf+"px)")}}("tablet")&&I.default.createElement(Hf,{headerProps:L,sheetContent:g.sheetContent,isEmptyStateVisible:z,barcodeList:E})),I.default.createElement(Hp,{barcode:i,dialogStyling:g.manualCountEditDialog,onCancel:()=>a(null),setCounter:(t,e)=>{o({type:"onCountEditDialogChange",barcode:t,count:e}),a(null)}}),I.default.createElement(Vf,{open:null!==p,style:p,onDismiss:()=>f(null),onSubmit:O})))}const Yf=Object(I.createContext)(null),Qf={didCatch:!1,error:null};class Zf extends I.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Qf}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(null!==t){for(var e,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null===(e=(n=this.props).onReset)||void 0===e||e.call(n,{args:o,reason:"imperative-api"}),this.setState(Qf)}}componentDidCatch(t,e){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,t,e)}componentDidUpdate(t,e){const{didCatch:n}=this.state,{resetKeys:r}=this.props;var o,i;n&&null!==e.error&&function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.length!==e.length||t.some(((t,n)=>!Object.is(t,e[n])))}(t.resetKeys,r)&&(null===(o=(i=this.props).onReset)||void 0===o||o.call(i,{next:r,prev:t.resetKeys,reason:"keys"}),this.setState(Qf))}render(){const{children:t,fallbackRender:e,FallbackComponent:n,fallback:r}=this.props,{didCatch:o,error:i}=this.state;let a=t;if(o){const t={error:i,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof e)a=e(t);else if(n)a=Object(I.createElement)(n,t);else{if(null!==r&&!Object(I.isValidElement)(r))throw i;a=r}}return Object(I.createElement)(Yf.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},a)}}function Xf(t){const e=Object(I.useRef)(!0);Object(I.useEffect)((()=>(e.current=!0,()=>{e.current=!1})));const[,n]=Object(I.useReducer)((t=>t+1),0),r=Object(I.useRef)();return Object(I.useMemo)((()=>{r.current={loading:!0,value:void 0,error:null}}),[t]),function(t,e){Object(I.useMemo)((()=>{t&&t.then((t=>{e({loading:!1,error:null,value:t})})).catch((t=>{e({loading:!1,error:{reason:t},value:void 0})}))}),[t])}(t,(t=>{r.current=t,e.current&&n()})),t?r.current:null}var qf=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};class Kf{constructor(t,e){this.barcodeItemMapper=t,this.onError=e,this.cache=new Map,this.cacheEntryPendingRetries=[],this.hash=t=>Ro(t),this.onEvictionListeners=new Set}getBarcodeMappedData(t){const e=this.hash(t);if(!this.cache.has(e)){const n=(()=>qf(this,void 0,void 0,(function*(){if(this.barcodeItemMapper){const e=new W.BarcodeScannerUIItem({count:1,barcode:t});return this.barcodeItemMapper(e)}{const e=yield y.toDataUrl(yield hg.instance.imageToJpeg(t.sourceImage));return{title:t.text,subtitle:t.format,barcodeImage:e}}})))();this.cache.set(e,n)}return this.cache.get(e)}useBarcodeMappedData(t){const e=Object(I.useRef)(!1),n=Xf(t&&this.getBarcodeMappedData(t));if(Object(I.useEffect)((()=>{n&&n.error&&(e.current=!1,this.cacheEntryPendingRetries.push({barcode:t,retry:()=>{this.cache.delete(this.hash(t)),e.current=!0}}),this.onError((()=>{for(const t of this.cacheEntryPendingRetries)t.retry();this.cacheEntryPendingRetries.length=0}),(()=>{e.current=!0;for(const t of this.cacheEntryPendingRetries)for(const e of this.onEvictionListeners)this.hash(e.barcode)==this.hash(t.barcode)&&e.callback();this.cacheEntryPendingRetries.length=0})))}),[n&&n.error]),!n)return null;let r;return r=n.value?"LOADED":n.error&&!e.current?"RETRY_DIALOG_OPEN":n.error?"FAILED":"LOADING",{value:n.value,state:r}}addOnEvictionListener(t){this.onEvictionListeners.add(t)}removeOnEvictionListener(t){this.onEvictionListeners.delete(t)}}W.BarcodeItemErrorState;function Jf(t){return I.default.createElement(Nf,{open:t.open,dividerColor:t.dividerColor,modalOverlayColor:t.modalOverlayColor,sheetColor:t.sheetColor,title:t.title,subtitle:t.subtitle,cancelButton:{style:t.cancelButton,onClick:t.handleCancel},okButton:{style:t.retryButton,icon:Up,onClick:t.handleRetry}})}var tm=n(106),em=n.n(tm);function nm(t){const e=Object(I.useContext)(Ne);return I.default.createElement(mt,{sx:{paddingTop:e.minTopPaddingForContent+"px",overflowY:"scroll",backgroundColor:gt.b.getColorValue(t.config.background)}},I.default.createElement(mt,{sx:{height:e.remainingVisibleBodyHeight,marginLeft:"auto",marginRight:"auto",maxWidth:280,display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"}},t.config.icon.visible&&I.default.createElement(mt,null,I.default.createElement(Rp,{sx:{width:100,height:100,backgroundColor:gt.b.getColorValue(t.config.iconBackground),margin:"24px"}},I.default.createElement(em.a,{sx:{fontSize:50,color:gt.b.getColorValue(t.config.icon.color)}}))),I.default.createElement(Vt,{sx:{fontSize:20,textAlign:"center"}},I.default.createElement(Qt.a,{config:t.config.enableCameraTitle})),I.default.createElement(Vt,{sx:{fontSize:16,textAlign:"center",paddingTop:"12px"}},I.default.createElement(Qt.a,{config:t.config.enableCameraExplanation})),I.default.createElement(mt,{sx:{paddingTop:"16px"}},I.default.createElement(ze,Object.assign({},t.config.closeButton,{onClick:t.onAppClose})))))}function rm(t){const e=Object(I.useRef)(Object(dt.a)({palette:{primary:{main:Io.ScanbotPrimary},secondary:{main:Io.DarkGray}}})),[n,r]=Object(I.useState)(!1),[o,i]=Object(I.useState)(!1),[a,s]=Object(I.useState)(t.configuration.timeouts.initialScanDelay<=0),l=Object(I.useRef)(!1),c=Object(I.useRef)(),u=Object(I.useRef)(),d=t.configuration.useCase,h="FindAndPickScanningMode"===d._type?null:d.barcodeInfoMapping,p=Object(I.useMemo)((()=>new Kf(null==h?void 0:h.barcodeItemMapper,((t,e)=>{r(!0),c.current=()=>{r(!1),t()},u.current=()=>{r(!1),e()}}))),[]);let f;if(Object(I.useMemo)((()=>{gt.b.setPalette(t.configuration.palette),gt.b.setBarcodeTextLocalization(t.configuration.localization)}),[t.configuration]),Object(I.useEffect)((()=>{if(t.configuration.timeouts.autoCancelTimeout>0){const e=setTimeout((()=>{t.onClose()}),t.configuration.timeouts.autoCancelTimeout);return()=>{clearTimeout(e)}}}),[]),Object(I.useEffect)((()=>{if(t.configuration.timeouts.initialScanDelay>0){const e=setTimeout((()=>{s(!0)}),t.configuration.timeouts.initialScanDelay);return()=>{clearTimeout(e)}}}),[]),Object(I.useEffect)((()=>{l.current=!n&&a}),[n,a]),"SingleScanningMode"===d._type)f=I.default.createElement(Mh,{configuration:t.configuration,barcodeMapper:p,onClose:t.onClose,onSubmit:t.onSubmit,onError:t.onError,onCameraPermissionDenied:()=>i(!0),scanningEnabled:l});else{if("MultipleScanningMode"!==d._type&&"FindAndPickScanningMode"!==d._type)throw new Error("Unsupported use case type");f=I.default.createElement(Gf,{configuration:t.configuration,barcodeMapper:p,onSubmit:t.onSubmit,onError:t.onError,onCameraPermissionDenied:()=>i(!0),scanningEnabled:l})}return I.default.createElement(I.default.Fragment,null,I.default.createElement(Gt,null),I.default.createElement(Zf,{onError:t.onError,fallback:I.default.createElement("div",null,"Error")},I.default.createElement(gt.a.Provider,{value:Object(gt.c)(t.configuration.palette)},I.default.createElement(tt,{theme:e.current},h&&I.default.createElement(Jf,Object.assign({open:n,handleCancel:u.current,handleRetry:c.current,modalOverlayColor:h.modalOverlayColor,dividerColor:h.dividerColor,sheetColor:h.sheetColor},h.errorState)),I.default.createElement(mt,{sx:{height:`100 * ${$t}`,width:"100vw",backgroundColor:gt.b.getColorValue(t.configuration.backgroundColor)}},I.default.createElement(Ve,Object.assign({onBackPress:t.onClose},t.configuration.topBar),!o&&f,o&&I.default.createElement(nm,{onAppClose:t.onClose,config:t.configuration.cameraPermission})))))))}var om=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};class im{static createBarcodeScanner(t){return new Promise(((e,n)=>{Oo.INSTANCE.initialize(t.sound);const r=im.createContainer("barcode-scanner-controller"),o=Object(M.createRoot)(r),i=()=>om(this,void 0,void 0,(function*(){return new Promise((t=>{window.setTimeout((()=>{o.unmount(),document.body.removeChild(r),t()}),0)}))})),a=t=>om(this,void 0,void 0,(function*(){yield i(),n(t)}));o.render(I.default.createElement(rm,{configuration:t,onClose:()=>om(this,void 0,void 0,(function*(){yield i(),e(null)})),onSubmit:t=>om(this,void 0,void 0,(function*(){yield i(),e(t)})),onError:a})),(()=>{om(this,void 0,void 0,(function*(){try{const t=yield hg.instance.getLicenseInfo();t.isValid()||(yield a(new P(t)))}catch(t){yield a(t)}}))})()}))}static createContainer(t){const e=document.createElement("div");return e.id=t,e.style.position="fixed",e.style.width="100%",e.style.height="100%",e.style.zIndex="1000",e.style.top="0",e.style.backgroundColor="rgba(0, 0, 0, 0.5)",document.body.appendChild(e),e}}im.Config=W;var am=im,sm=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};class lm{constructor(t,e){this._sdk=t,this._recognizer=e}recognize(t,e,n="COPY_IMAGE"){return sm(this,void 0,void 0,(function*(){const r=this._sdk.getBridge(n);return yield r.genericDocumentRecognizerRecognize(this._recognizer,t,new k.GenericDocumentRecognizerTypes.RecognitionParameters(e))}))}release(){return sm(this,void 0,void 0,(function*(){yield this._sdk.bridge.copyArgs.releaseObject(this._recognizer)}))}}const cm={OK:"Capturing your document... Please do not move the camera.",OK_SMALL_SIZE:"The document is too small. Try moving closer.",OK_BAD_ANGLES:"This is a bad camera angle. Hold the device straight over the document.",OK_BAD_ASPECT_RATIO:"Rotate the device sideways, so that the document fits better into the screen.",OK_OFF_CENTER:"Try holding the device at the center of the document.",OK_TOO_DARK:"A document was detected, but it is too dark. Try turning on a light.",OK_ORIENTATION_MISMATCH:"The document seems to be upside down. Please rotate the device or document",ERROR_NOTHING_DETECTED:"Please hold the device over a document to start scanning.",ERROR_TOO_DARK:"It is too dark. Try turning on a light.",ERROR_NOISE:"Please move the document to a clear surface.",NOT_ACQUIRED:"Scanning failed."};class um{constructor(t){this.hint=t}}class dm{constructor(){this.outline=new hm,this.captureButton=new gm}}class hm{constructor(){this.polygon=new pm,this.path=new fm,this.label=new mm}}class pm{constructor(){this.strokeCapturing="green",this.strokeSearching="yellow",this.fillCapturing="transparent",this.fillSearching="transparent"}}class fm{constructor(){this.stroke="green",this.strokeWidth=4}}class mm{}class gm{constructor(){this.color="#FFF"}}class vm extends L.a{constructor(){super(L.a.DEFAULT_VIDEO_RESOLUTION_4K),this.detectionParameters=new k.DocumentDetectorTypes.DocumentDetectorParameters,this.autoCaptureEnabled=!0,this.autoCaptureSensitivity=.66,this.autoCaptureDelay=1e3,this.ignoreBadAspectRatio=!0,this.useImageCaptureAPI=!1,this.text=new um(cm),this.style=new dm,this.onDocumentDetected=function(t){}}static fromJson(t){var e;const n=new vm;if(this.mapValues(t,n,["text","style","videoConstraints","detectionParameters"]),n.detectionParameters=new k.DocumentDetectorTypes.DocumentDetectorParameters(null!==(e=t.detectionParameters)&&void 0!==e?e:{}),t.text&&t.text.hint&&this.mapValues(t.text.hint,n.text.hint),t.style){this.mapValues(t.style,n.style,["outline","captureButton"]);const e=t.style.outline;if(e){this.mapValues(e,n.style.outline,["polygon","path","label"]);const t=e.polygon;t&&this.mapValues(t,n.style.outline.polygon);const r=e.path;r&&this.mapValues(r,n.style.outline.path);const o=e.label;o&&this.mapValues(o,n.style.outline.label)}const r=t.style.captureButton;r&&this.mapValues(r,n.style.captureButton)}return this.mapVideoConstraints(t,n),n}}var bm=n(85),ym={insert:"head",singleton:!1};Zd()(bm.a,ym),bm.a.locals;class Am extends I.default.Component{constructor(){super(...arguments),this.LINE_COUNT=4}render(){return I.default.createElement("svg",{style:{width:"100%",height:"100%",position:"absolute",overflow:"visible",fill:this.props.polygonStyle.fill}},this.fill())}fill(){if(!this.props.points||0===this.props.points.length)return null;const t=[];for(let e=0;e<this.LINE_COUNT;e++){const n=this.props.points[e],r=this.props.points[(e+1)%this.LINE_COUNT];t.push(I.default.createElement("line",{key:e,style:this.props.polygonStyle,className:this.props.polygonClasses,x1:n.x,y1:n.y,x2:r.x,y2:r.y}))}return t}setFrame(){window.requestAnimationFrame((()=>this.forceUpdate()))}}Am.CLASSNAME="scanbot-document-outline";class Cm extends I.default.Component{constructor(t){super(t),this.state={points:[],animatedPoints:[],isOk:!1,isVisible:!1}}update(t,e,n,r){const o={points:t,animatedPoints:e,isOk:n,isVisible:r};this.setState(o)}pointStringOrLatestValidPoints(t){return t&&t.length>0?Fd.a.toSvgString(t):Fd.a.toSvgString(this.latestValidPoints)}render(){var t;this.state.points&&(this.latestValidPoints=this.state.points);const e=null!==(t=this.props.style)&&void 0!==t?t:{},n=Jd()(Am.CLASSNAME,{[`${Am.CLASSNAME}-ok`]:this.state.isOk},{[`${Am.CLASSNAME}-visible`]:this.state.isVisible},{[`${Am.CLASSNAME}-hidden`]:!this.state.isVisible});return I.default.createElement(Dd.polygon,{ref:t=>this.polygon=t,style:{strokeWidth:e.strokeWidth||2},animate:{points:this.pointStringOrLatestValidPoints(this.state.animatedPoints),opacity:this.state.isVisible?1:0,stroke:this.state.isOk?e.strokeCapturing:e.strokeSearching,fill:this.state.isOk?e.fillCapturing:e.fillSearching},onClick:()=>{},fill:"transparent",className:n})}}var Sm=Cm;class xm extends I.default.Component{constructor(t){super(t),this.state={path:void 0}}render(){var t,e;return this.state.path?I.default.createElement(Dd.path,{pathLength:"1",strokeDasharray:"1 1",initial:{strokeDashoffset:1},animate:{strokeDashoffset:0},transition:{duration:this.props.duration/1e3,ease:"easeInOut",repeat:0,repeatType:"loop",repeatDelay:1},stroke:(null===(t=this.props.style)||void 0===t?void 0:t.stroke)||"white",strokeWidth:(null===(e=this.props.style)||void 0===e?void 0:e.strokeWidth)||2,fill:"none",d:this.state.path,className:`${Am.CLASSNAME}-path`}):null}animate(t){const e="M"+Fd.a.toSvgString(t)+"z";this.setState({path:e})}clear(){this.setState({path:void 0})}}class wm extends I.default.Component{render(){return I.default.createElement(Dd.svg,{style:{width:"100%",height:"100%",position:"absolute",overflow:"visible"}},I.default.createElement(Sm,{ref:t=>this.polygon=t,style:this.props.polygonStyle}),I.default.createElement(xm,{ref:t=>this.path=t,style:this.props.pathStyle,duration:this.props.autoCaptureSensitivity}))}update(t,e,n){var r;const o="processing"!==n&&!!t,i=null!==(r=this.previous)&&void 0!==r?r:t,a=this.previous?t:void 0;this.polygon.update(i,a,e,o),this.previous=t,this.previous&&"capturing"===n?this.animateCapturing():this.clearAnimation()}animateCapturing(){this.path.animate(this.previous)}clearAnimation(){this.path.clear()}}class Om extends I.default.Component{constructor(){super(...arguments),this.hintLabelClassName="scanbot-document-hint-text",this.state={text:"Initializing...",ok:!1,validPoints:!1}}render(){const{ok:t,text:e,validPoints:n}=this.state,r="searching"===this.props.action||"capturing"===this.props.action,o="processing"!==this.props.action&&n,i=Jd()({[this.hintLabelClassName]:!0,[`${this.hintLabelClassName}-visible`]:o,[`${this.hintLabelClassName}-hidden`]:!o});return I.default.createElement("div",{style:{width:"100%",height:"100%",position:"absolute",left:0,top:0}},I.default.createElement(wm,{ref:t=>{this.polygon=t},action:this.props.action,style:{width:"100%",height:"100%"},polygonStyle:this.props.style.polygon,pathStyle:this.props.style.path,isOk:t,isVisible:o,autoCaptureSensitivity:this.props.autoCaptureSensitivity}),r&&I.default.createElement("label",{ref:t=>this.label=t,style:this.props.style.label,className:i,dangerouslySetInnerHTML:{__html:e}}))}update(t,e,n){this.polygon.update(e,t,this.props.action),this.label&&(this.label.innerHTML=n)}}class Em{static isConvex(t){if(t.length<4)return!0;let e=!1,n=t.length;for(let r=0;r<n;r++){const o=t[(r+2)%n].x-t[(r+1)%n].x,i=t[(r+2)%n].y-t[(r+1)%n].y,a=t[r].x-t[(r+1)%n].x,s=o*(t[r].y-t[(r+1)%n].y)-i*a;if(0==r)e=s>0;else if(e!=s>0)return!1}return!0}static distanceBetweenPoints(t,e){return Math.pow(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2),.5)}static intersection(t,e){const n=t[0],r=Fd.a.subtract(t[1],n),o=e[0],i=Fd.a.subtract(e[1],o);if(0===Fd.a.cross(r,i))return;const a=Fd.a.cross(Fd.a.subtract(o,n),r)/Fd.a.cross(r,i);return Fd.a.add(o,Fd.a.multiply(i,a))}}class Lm{constructor(t,e=Lm.DEFAULT_SENSITIVITY){this.maxDistance=this.calculateMaxDistance(t),this.sensitivity=e}check(t){let e=!1;if(this.lastPolygon){for(var n=0;n<4;n++)if(this.isPointMoved(t[n],this.lastPolygon[n])){e=!0;break}}else e=!0;return e}reset(){this.lastPolygon=void 0}update(t){this.lastPolygon=t}isPointMoved(t,e){return Em.distanceBetweenPoints(t,e)/this.maxDistance>this.sensitivity}calculateMaxDistance(t){let e=new Fd.a(0,0),n=new Fd.a(t.width,t.height);return Em.distanceBetweenPoints(e,n)}}Lm.DEFAULT_SENSITIVITY=.5;var jm=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};jo.b;jo.a;class km extends jo.c{constructor(t){if(super(t),this.preventAutoCapture=!1,this.defaultCaptureButtonClick=()=>jm(this,void 0,void 0,(function*(){const t=yield this.detectAndCrop();this.configuration.onDocumentDetected(t)})),Object.assign(this.state,{action:this.defaultAction}),!this.isSupported()){throw Error("Camera can only be accessed if the content is served via HTTPS, or on localhost. Check DocumentScannerView.isSupported() before creating the scanner.")}if(!hg.instance)throw Error("Initialize the SDK by calling ScanbotSDK.initialize() before using the document scanner.")}get defaultAction(){return this.isAutoCaptureEnabled()?"searching":"manual"}get enabled(){return("searching"==this.state.action||"capturing"==this.state.action||"manual"==this.state.action)&&!this.disposed}get configuration(){return this._configuration||(this._configuration=vm.fromJson(this.props.configuration)),this._configuration}get autoCaptureSensitivity(){return 3e3*(1-this.configuration.autoCaptureSensitivity)}static create(t){return jm(this,void 0,void 0,(function*(){const e=document.getElementById(t.containerId);if(!e)throw Error("Unable to initialize ScanbotSDK: Cannot find container element with the id provided.");return new Promise(((n,r)=>{Object(I.render)(I.default.createElement(km,{container:e,configuration:t,onSuccess:n,onFailure:r}),e)}))}))}detectAndCrop(){var t,e,n;return jm(this,void 0,void 0,(function*(){try{if(this.enabled){this.setState({action:"processing"});const e=yield null===(t=this.camera)||void 0===t?void 0:t.createImageData(km.DETECT_AND_CROP_RESOLUTION,this.configuration.useImageCaptureAPI);if(!e)return;return F.a.debug("Detect & Crop document of size: "+e.height*e.width),yield this.bridge.transferArgs.detectAndCropDocument(e)}}catch(t){null===(n=(e=this.configuration).onError)||void 0===n||n.call(e,t)}finally{this.setState({action:this.defaultAction})}}))}enableAutoCapture(){this.updateAutoCapture(!0)}disableAutoCapture(){this.updateAutoCapture(!1)}updateAutoCapture(t){this._configuration?this._configuration.autoCaptureEnabled=t:this.props.configuration.autoCaptureEnabled=t,this.setState({action:this.defaultAction})}isAutoCaptureEnabled(){return this._configuration?this._configuration.autoCaptureEnabled:this.props.configuration.autoCaptureEnabled}componentDidMount(){const t=Object.create(null,{componentDidMount:{get:()=>super.componentDidMount}});return jm(this,void 0,void 0,(function*(){t.componentDidMount.call(this),this.detect(),this.recognizer=this.bridge.copyArgs.createDocumentDetector(new k.DocumentDetectorTypes.DocumentDetectorParameters(this.configuration.detectionParameters)),this.recognizer.catch((t=>{var e,n;return null===(n=(e=this.configuration).onError)||void 0===n?void 0:n.call(e,t)}))}))}componentWillUnmount(){const t=Object.create(null,{componentWillUnmount:{get:()=>super.componentWillUnmount}});return jm(this,void 0,void 0,(function*(){t.componentWillUnmount.call(this),this.handleAutoCapture(!1),yield hg.instance.release(yield this.recognizer,"Document Scanner")}))}detect(){var t,e;return jm(this,void 0,void 0,(function*(){try{if(!this.enabled)return;const t=yield this.detectInWebWorker();if(!t||!this.enabled)return;if(!this.outline)return;this.camera.reusableImageBuffer=t.originalImage.data;const e=this.getStatusString(t),n="OK"===e,r=e.startsWith("OK")?this.scalePolygonPointsToPixels(t.pointsNormalized):void 0;this.outline.update(n,r,v.getProperty(this.configuration.text.hint,e)),yield this.handleAutoCapture(n,r)}catch(n){null===(e=(t=this.configuration).onError)||void 0===e||e.call(t,n)}finally{requestAnimationFrame(this.detect.bind(this))}}))}getStatusString(t){return this.configuration.ignoreBadAspectRatio&&"OK_BAD_ASPECT_RATIO"===t.status?"OK":t.status}detectInWebWorker(){var t,e,n;return jm(this,void 0,void 0,(function*(){try{const e=yield null===(t=this.camera)||void 0===t?void 0:t.createImageData(jo.c.DEFAULT_DETECTION_RESOLUTION,!1);return e&&this.enabled?yield this.bridge.transferArgs.documentDetectorDetect(yield this.recognizer,e):null}catch(t){return null===(n=(e=this.configuration).onError)||void 0===n||n.call(e,t),null}}))}handleAutoCapture(t,e){return jm(this,void 0,void 0,(function*(){if(this.configuration.autoCaptureEnabled&&!this.preventAutoCapture)if(t&&!this.autoCaptureToken&&e){if(this.updateButton("capturing"),!this.polygonMovementPredicate){const t=this.getCameraFrameSize();this.polygonMovementPredicate=new Lm(t)}if(this.runMovementPredicate(e))return this.updateButton("searching"),clearTimeout(this.autoCaptureToken),void(this.autoCaptureToken=void 0);this.autoCaptureToken=setTimeout((()=>jm(this,void 0,void 0,(function*(){if(this.autoCaptureToken=void 0,!this.enabled)return;if(!this.configuration.autoCaptureEnabled)return;const t=yield this.detectAndCrop();if(null==t?void 0:t.pointsNormalized){const e=this.scalePolygonPointsToPixels(t.pointsNormalized);if(this.runMovementPredicate(e))return}(null==t?void 0:t.status.startsWith("OK"))&&this.configuration.onDocumentDetected&&(this.configuration.onDocumentDetected(t),this.preventAutoCapture=!0,setTimeout((()=>{this.preventAutoCapture=!1}),this.configuration.autoCaptureDelay))}))),this.autoCaptureSensitivity)}else!t&&this.autoCaptureToken&&(this.updateButton("searching"),clearTimeout(this.autoCaptureToken),this.autoCaptureToken=void 0)}))}updateButton(t){this.setState({action:t})}render(){var t,e,n;const{action:r}=this.state,{configuration:o}=this,i=null===(t=o.style)||void 0===t?void 0:t.captureButton;return I.default.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},this.renderSpinner(null===(e=this.configuration)||void 0===e?void 0:e.spinnerColor),I.default.createElement(ko.a,{configuration:this.configuration,videoConstraints:o.videoConstraints,mirrored:o.mirrored,preferredCamera:this.configuration.preferredCamera,onReady:this.onVideoReady,onError:this.onVideoError,ref:t=>{this.camera=t}}),I.default.createElement(Om,{ref:t=>{this.outline=t},style:null===(n=o.style)||void 0===n?void 0:n.outline,action:r,autoCaptureSensitivity:this.autoCaptureSensitivity}),I.default.createElement(eh,{color:(null==i?void 0:i.color)?i.color:"FFF",action:r,onClick:this.enabled?o.onCaptureButtonClick||this.defaultCaptureButtonClick:()=>{}}))}scalePolygonPointsToPixels(t){if(t){const e=this.getCameraFrameSize(),n=ah.a.fromHtmlElement(this.camera.video),r=bh.findScale(n,e);t=(t=bh.convertToViewportPointsFromParentSize(e,t)).map((t=>Fd.a.scaleToPoint(t,r.x,r.y,r.scale)))}return t}runMovementPredicate(t){const e=this.polygonMovementPredicate.check(t);return this.polygonMovementPredicate.update(t),e}getCameraFrameSize(){return this.camera.calculateFrameSize(jo.c.DEFAULT_DETECTION_RESOLUTION,this.camera.videoSize().width,this.camera.videoSize().height)}}km.DETECT_AND_CROP_RESOLUTION=0;var _m=km;class Tm extends j.a{constructor(){super(L.a.DEFAULT_VIDEO_RESOLUTION_HD),this.recognizerConfiguration=new k.MRZTypes.RecognizerConfiguration,this.onMrzDetected=function(t){},this.finder.aspectRatio=new k.Geometry.AspectRatio({width:4,height:1}),this.userGuidance.title.text="Please hold the device over the MRZ code to start scanning"}static fromJson(t){const e=new Tm;return this.mapValues(t,e,["style","videoConstraints","finder","userGuidance"]),this.mapFinderConfiguration(e,t),this.mapVideoConstraints(t,e),e}}var Pm=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};jo.a;jo.b;class Rm extends jo.c{constructor(t){super(t),this.shouldComputeSize=!0,this.paused=!1,this.updateDimensionsCallback=this.updateDimensions.bind(this),Object.assign(this.state,{isFinderVisible:!0})}get configuration(){return this._configuration||(this._configuration=Tm.fromJson(this.props.configuration)),this._configuration}get enabled(){return!this.disposed}static create(t,e){return Pm(this,void 0,void 0,(function*(){const n=document.getElementById(t.containerId);if(!n)throw Error("Unable to initialize ScanbotSDK: Cannot find container element with the id provided.");return new Promise(((r,o)=>{Object(I.render)(I.default.createElement(Rm,{container:n,configuration:t,onSuccess:r,onFailure:o,mrzRecognizer:e}),n)}))}))}isDetectionPaused(){return this.paused}resumeDetection(){return Pm(this,void 0,void 0,(function*(){vh.warn("Mrz detection resumed"),yield this.resume()}))}pauseDetection(){vh.warn("Mrz detection paused"),this.pause()}componentDidMount(){const t=Object.create(null,{componentDidMount:{get:()=>super.componentDidMount}});return Pm(this,void 0,void 0,(function*(){t.componentDidMount.call(this),window.addEventListener("resize",this.updateDimensionsCallback),yield this.resume()}))}componentWillUnmount(){super.componentWillUnmount(),this.pause(),this.props.mrzRecognizer.release(),window.removeEventListener("resize",this.updateDimensionsCallback)}updateDimensions(){return Pm(this,void 0,void 0,(function*(){this.shouldComputeSize=!0,this.forceUpdate()}))}resume(){return Pm(this,void 0,void 0,(function*(){this.paused=!1,yield this.detect()}))}pause(){this.paused=!0}detect(){var t,e,n,r,o;return Pm(this,void 0,void 0,(function*(){const i=this.shouldComputeSize;if(!this.enabled)return;if(this.paused)return;let a=!1;try{this.camera.finderFrame=null===(t=this.finder)||void 0===t?void 0:t.holeRect;const r=yield null===(e=this.camera)||void 0===e?void 0:e.createImageData(Rm.FRAME_RESOLUTION);if(!r)return;i&&this.forceUpdate();const o=yield this.props.mrzRecognizer.recognize(r,"CONSUME_IMAGE");if(!this.enabled)return;if(null===o)return;this.camera.reusableImageBuffer=null==o?void 0:o.originalImage.data,o.recognitionSuccessful?(delete o.originalImage,a=!0,this.configuration.onMrzDetected(o)):this.configuration._onDetectionFailed&&(null===(n=this.configuration)||void 0===n||n._onDetectionFailed(o.originalImage))}catch(t){null===(o=(r=this.configuration).onError)||void 0===o||o.call(r,t)}finally{a?setTimeout((()=>{requestAnimationFrame(this.detect.bind(this))}),200):requestAnimationFrame(this.detect.bind(this))}}))}saveExtractedImageData(){this.camera.saveExtractedData()}setFinderVisible(t){this.setState({isFinderVisible:t})}render(){var t;return I.default.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},this.renderSpinner(null===(t=this.configuration)||void 0===t?void 0:t.spinnerColor),I.default.createElement("div",{style:{position:"absolute",width:"100%",height:"100%"}},I.default.createElement(ko.a,{configuration:this.configuration,videoConstraints:this.configuration.videoConstraints,mirrored:this.configuration.mirrored,preferredCamera:this.configuration.preferredCamera,onReady:this.onVideoReady,onError:this.onVideoError,ref:t=>{this.camera=t}})),this.state.isFinderVisible&&I.default.createElement(_o.a,{ref:t=>{this.finder=t},guidanceConfiguration:this.configuration.userGuidance,configuration:this.configuration.finder}))}}Rm.FRAME_RESOLUTION=1200;var Dm=Rm,Bm=n(71);class Fm{constructor(){this.disabled=!1,this.color="transparent"}}class Im{constructor(){this.color="white",this.border="1px solid lightgray",this.size=20}}class Mm{constructor(){this.color="#1ec31e",this.width=4}}class Wm{constructor(){this.padding=10}}class zm{constructor(){this.margin=15,this.size=100,this.zoom=1.5}}class Nm{constructor(){this.width=2,this.color="white"}}class Vm{constructor(){this.size=20,this.color="white"}}class Um extends Bm.a{constructor(){super(),this.disableScroll=!0,this.rotations=0,this.style=new Wm,this.style.magneticLines=new Fm,this.style.polygon=new Mm,this.style.polygon.handles=new Im,this.style.magnifier=new zm,this.style.magnifier.border=new Nm,this.style.magnifier.crosshair=new Vm}static fromJson(t){const e=new Um;return this.mapValues(t,e,["style"]),t.style&&(this.mapValues(t.style,e.style,["polygon","magneticLines","magnifier"]),t.style.polygon&&(this.mapValues(t.style.polygon,e.style.polygon,["handles"]),t.style.polygon.handles&&this.mapValues(t.style.polygon.handles,e.style.polygon.handles)),t.style.magneticLines&&this.mapValues(t.style.magneticLines,e.style.magneticLines,[]),t.style.magnifier&&(this.mapValues(t.style.magnifier,e.style.magnifier,["border","crosshair"]),t.style.magnifier.border&&this.mapValues(t.style.magnifier.border,e.style.magnifier.border,[]),t.style.magnifier.crosshair&&this.mapValues(t.style.magnifier.crosshair,e.style.magnifier.crosshair,[]))),e}}class Hm extends I.default.Component{constructor(){super(...arguments),this.BUFFER=4}fromPoint(t){return I.default.createElement("svg",{style:{width:"100%",height:"100%",position:"absolute"}},I.default.createElement("line",{x1:t.start.x.toString(),y1:t.start.y.toString(),x2:t.end.x.toString(),y2:t.end.y.toString(),style:{stroke:this.props.style.color,strokeWidth:2}}))}componentDidUpdate(t,e,n){this.props.style.disabled||this.snapToClosestIfAnyAreClose()}render(){var t,e,n,r,o,i;return I.default.createElement("div",{style:{width:"100%",height:"100%",position:"absolute"}},null===(n=null===(e=null===(t=this.props.lines)||void 0===t?void 0:t.horizontal)||void 0===e?void 0:e.scaled)||void 0===n?void 0:n.map((t=>this.fromPoint(t))),null===(i=null===(o=null===(r=this.props.lines)||void 0===r?void 0:r.vertical)||void 0===o?void 0:o.scaled)||void 0===i?void 0:i.map((t=>this.fromPoint(t))))}snapToClosestIfAnyAreClose(){var t,e,n,r;const o=this.props.movingLine;let i=null===(e=null===(t=this.props.lines)||void 0===t?void 0:t.vertical)||void 0===e?void 0:e.scaled;if(o.isHorizontal&&(i=null===(r=null===(n=this.props.lines)||void 0===n?void 0:n.horizontal)||void 0===r?void 0:r.scaled),!i)return;const a=this.midPoint(o.points[0].coordinates,o.points[1].coordinates),s=i.map((t=>({distance:this.distanceToLine(t,a),mLine:t})));s.sort(((t,e)=>t.distance-e.distance)),s[0].distance<this.BUFFER&&this.props.snapTo({magneticLine:s[0].mLine,polygonLine:o})}distanceToLine(t,e){const n=e.x-t.start.x,r=e.y-t.start.y,o=t.end.x-t.start.x,i=t.end.y-t.start.y,a=o*o+i*i;if(0===a)return 1/0;const s=(n*o+r*i)/a;let l;return l=s<=0?t.start:s>=1?t.end:new Fd.a(t.start.x+s*o,t.start.y+s*i),Fd.a.distance(e,l)}midPoint(t,e){return new Fd.a((t.x+e.x)/2,(t.y+e.y)/2)}}class $m extends I.default.Component{constructor(){super(...arguments),this.POINT_COUNT=4,this.items=[],this.DRAG_BUFFER=5}get pointSize(){var t,e;return(null===(t=this.props.style)||void 0===t?void 0:t.size)?(null===(e=this.props)||void 0===e?void 0:e.scale)?this.props.style.size/this.props.scale:this.props.style.size:0}get pointStyle(){var t,e;return{width:this.pointSize+"px",height:this.pointSize+"px",border:null===(t=this.props.style)||void 0===t?void 0:t.border,borderRadius:this.pointSize/2+"px",backgroundColor:null===(e=this.props.style)||void 0===e?void 0:e.color,position:"absolute",cursor:"pointer",zIndex:500}}nextIndex(t){return(t+1)%this.POINT_COUNT}previousIndex(t){return(t-1+this.POINT_COUNT)%this.POINT_COUNT}isHorizontal(t){return t%2==0}isOutOfBounds(t,e){return t<-this.DRAG_BUFFER||t>e+this.DRAG_BUFFER}get invisibleHandleStyle(){return{width:"50px",height:"50px",opacity:0,position:"relative",top:this.pointSize/2-25+"px",left:this.pointSize/2-25+"px",borderRadius:"25px"}}}class Gm extends $m{create(){if(!this.props.points||4!==this.props.points.length)return null;const t=[];for(let e=0;e<this.POINT_COUNT;e++){const n=this.props.points[e],r=I.default.createElement("div",{style:Object.assign(Object.assign({},this.pointStyle),{left:n.x-this.pointSize/2+"px",top:n.y-this.pointSize/2+"px"}),key:e.toString(),ref:t=>this.items[e]=t,onPointerDown:t=>this.cornerTouchStart(t,e),onPointerUp:t=>this.cornerTouchEnd(t),onPointerMove:t=>this.cornerTouchMove(t,e),"data-sb-cropping-corner":e},I.default.createElement("div",{style:Object.assign({},this.invisibleHandleStyle)}));t.push(r)}return t}cornerTouchStart(t,e){t.target.setPointerCapture(t.pointerId);const n=Fd.a.fromCoordinates(t.clientX,t.clientY,this.props.rotations,this.props.scale),r=this.items[e],o=Fd.a.fromHtmlElement(r);this.parentOffset=new Fd.a(n.x-o.x,n.y-o.y),this.props.cornerMoveStart({index:e,point:this.props.points[e]})}cornerTouchMove(t,e){if(!this.parentOffset)return;const n=Fd.a.fromCoordinates(t.clientX,t.clientY,this.props.rotations,this.props.scale),{x:r,y:o}=Object(Ip.b)({x:n.x-this.parentOffset.x,y:n.y-this.parentOffset.y},this.pointSize,this.props.containerSize),i=this.pointSize/2,a=this.props.points[e];this.props.points[e]=new Fd.a(r+i,o+i),Em.isConvex(this.props.points)?this.props.cornerMoved({index:e,point:this.props.points[e]}):this.props.points[e]=a}cornerTouchEnd(t){t.target.releasePointerCapture(t.pointerId),this.parentOffset=null,this.props.cornerMoveEnd()}render(){return I.default.createElement("div",{style:{width:"100%",height:"100%",position:"absolute",cursor:"pointer",zIndex:500,userSelect:"none",msUserSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none"}},this.create())}}class Ym extends $m{create(){if(!this.props.points||4!==this.props.points.length)return null;const t=[];for(let e=0;e<this.POINT_COUNT;e++){const n=this.props.points[e];let r=this.props.points[this.nextIndex(e)];const o=I.default.createElement("div",{style:Object.assign(Object.assign({},this.pointStyle),{left:n.x+(r.x-n.x)/2-this.pointSize/2+"px",top:n.y+(r.y-n.y)/2-this.pointSize/2+"px"}),key:e.toString(),ref:t=>this.items[e]=t,onPointerDown:t=>this.lineTouchStart(t,e),onPointerMove:t=>this.lineTouchMove(t,e),onPointerUp:t=>this.lineTouchEnd(t),"data-sb-cropping-side":e},I.default.createElement("div",{style:this.invisibleHandleStyle}));t.push(o)}return t}lineTouchStart(t,e){t.target.setPointerCapture(t.pointerId);const n=Fd.a.fromCoordinates(t.clientX,t.clientY,this.props.rotations,this.props.scale),r=this.items[e],o=Fd.a.fromHtmlElement(r),i=this.props.points[e],a=this.props.points[this.nextIndex(e)];this.point0Start=v.copy(this.props.points[this.previousIndex(e)]),this.point1Start=v.copy(i),this.point2Start=v.copy(a),this.point3Start=v.copy(this.props.points[this.nextIndex(this.nextIndex(e))]),this.point1Offset=new Fd.a(i.x-o.x,i.y-o.y),this.point2Offset=new Fd.a(a.x-o.x,a.y-o.y),this.parentOffset=new Fd.a(n.x-o.x,n.y-o.y)}lineTouchMove(t,e){if(!this.parentOffset)return;const n=Fd.a.fromCoordinates(t.clientX,t.clientY,this.props.rotations,this.props.scale),r=this.props.points[this.previousIndex(e)];let o=new Fd.a(null,null),i=new Fd.a(null,null);const a=this.props.points[this.nextIndex(e+1)],s=n.x-this.parentOffset.x,l=n.y-this.parentOffset.y;if(this.isHorizontal(e)){const t=l+this.point1Offset.y,e=l+this.point2Offset.y,n=t-this.point1Start.y;o.x=this.point1Start.x+(this.point1Start.x-this.point0Start.x)*(n/(this.point1Start.y-this.point0Start.y)),i.x=this.point2Start.x+(this.point2Start.x-this.point3Start.x)*(n/(this.point2Start.y-this.point3Start.y)),o.y=t,i.y=e}else{const t=s+this.point1Offset.x,e=s+this.point2Offset.x,n=t-this.point1Start.x;o.y=this.point1Start.y+(this.point1Start.y-this.point0Start.y)*(n/(this.point1Start.x-this.point0Start.x)),i.y=this.point2Start.y+(this.point2Start.y-this.point3Start.y)*(n/(this.point2Start.x-this.point3Start.x)),o.x=t,i.x=e}o=Fd.a.clamp(o,this.props.containerSize),i=Fd.a.clamp(i,this.props.containerSize),this.isNearOpposingPoint(this.point1Start,o,r,this.isHorizontal(e)?"y":"x")||this.isNearOpposingPoint(this.point1Start,i,a,this.isHorizontal(e)?"y":"x")||this.areEdgesCrossing(r,o,i,a)||Em.isConvex([r,o,i,a])&&(this.props.points[e].x=o.x,this.props.points[e].y=o.y,this.props.points[this.nextIndex(e)].x=i.x,this.props.points[this.nextIndex(e)].y=i.y,this.props.lineMoved({points:[{index:e,coordinates:o},{index:this.nextIndex(e),coordinates:i}],previousPoint:r,nextPoint:a,isHorizontal:this.isHorizontal(e)}))}lineTouchEnd(t){t.target.releasePointerCapture(t.pointerId),this.parentOffset=null}isNearOpposingPoint(t,e,n,r){if(t[r]>n[r]){if(e[r]-10<n[r])return!0}else if(e[r]>n[r]-10)return!0;return!1}areEdgesCrossing(t,e,n,r){const o=t.x,i=t.y,a=e.x,s=e.y,l=n.x,c=n.y,u=r.x,d=r.y;return((o-l)*(s-c)-(i-c)*(a-l))*((o-u)*(s-d)-(i-d)*(a-u))<0&&((l-o)*(d-i)-(c-i)*(u-o))*((l-a)*(d-s)-(c-s)*(u-a))<0}render(){return I.default.createElement("div",{style:{width:"100%",height:"100%",position:"absolute"}},this.create())}}class Qm extends I.default.Component{render(){return I.default.createElement("div",{style:{width:"100%",height:"100%",position:"absolute"}},I.default.createElement(Gm,{ref:t=>this.corners=t,style:this.props.style,containerSize:this.props.containerSize,scale:this.props.scale,rotations:this.props.rotations,points:this.props.coordinatePoints,cornerMoveStart:this.props.cornerMoveStart,cornerMoved:this.props.cornerMoved,cornerMoveEnd:this.props.cornerMoveEnd}),I.default.createElement(Ym,{ref:t=>this.lines=t,style:this.props.style,containerSize:this.props.containerSize,scale:this.props.scale,rotations:this.props.rotations,points:this.props.coordinatePoints,lineMoved:this.props.lineMoved}))}setFrame(){for(let t=0;t<this.corners.POINT_COUNT;t++){const e=this.props.coordinatePoints[t];this.corners.items[t]&&(this.corners.items[t].style.left=e.x-this.corners.pointSize/2+"px",this.corners.items[t].style.top=e.y-this.corners.pointSize/2+"px");let n=this.props.coordinatePoints[this.corners.nextIndex(t)];this.lines.items[t]&&(this.lines.items[t].style.left=e.x+(n.x-e.x)/2-this.corners.pointSize/2+"px",this.lines.items[t].style.top=e.y+(n.y-e.y)/2-this.corners.pointSize/2+"px")}}snapTo(t){const e=[t.polygonLine.previousPoint,t.polygonLine.points[0].coordinates],n=[t.polygonLine.points[1].coordinates,t.polygonLine.nextPoint],r=[t.magneticLine.start,t.magneticLine.end];this.props.coordinatePoints[t.polygonLine.points[0].index]=Em.intersection(e,r),this.props.coordinatePoints[t.polygonLine.points[1].index]=Em.intersection(n,r),this.props.cornerMoveEnd(),this.setFrame()}}class Zm extends I.default.Component{constructor(t){super(t),this.state={movingLine:void 0}}render(){return I.default.createElement("div",null,I.default.createElement(Qm,{ref:t=>this.handles=t,containerSize:this.props.size,coordinatePoints:this.props.points,rotations:this.props.rotations,scale:this.props.scale,style:this.props.handleStyle,cornerMoveStart:this.props.cornerMoveStart,cornerMoved:t=>{this.setFrame(),this.props.cornerMoved(t)},cornerMoveEnd:this.props.cornerMoveEnd,lineMoved:t=>{this.setFrame(),this.setState({movingLine:t})}}),I.default.createElement(Hm,{style:this.props.magneticLineStyle,lines:this.props.magneticLines,movingLine:this.state.movingLine,snapTo:t=>{var e,n;null===(e=this.handles)||void 0===e||e.snapTo(t),null===(n=this.polygon)||void 0===n||n.setFrame()}}),I.default.createElement(Am,{size:this.props.size,points:this.props.points,polygonStyle:this.props.polygonStyle,polygonClasses:this.props.polygonClasses,ref:t=>this.polygon=t}))}setFrame(){var t,e;null===(t=this.polygon)||void 0===t||t.setFrame(),null===(e=this.handles)||void 0===e||e.setFrame()}}class Xm extends I.default.Component{render(){return I.default.createElement("img",{ref:t=>this.image=t,style:{width:"100%",height:"100%",objectFit:"cover",position:"absolute"},src:this.props.src,alt:".",onLoad:t=>{t.target&&this.props.onImageLoaded(t.target)}})}}class qm extends I.default.Component{constructor(){super(...arguments),this.animating=!1}width(){return this.container.offsetWidth-2*this.container.offsetLeft}height(){return this.container.offsetHeight-2*this.container.offsetTop}isAnimating(){return this.animating}render(){const{size:t,imageMargin:e,rotations:n,scale:r,duration:o}=this.props,i=90*(n-1),a=90*n;this.previousScale||(this.previousScale=1);const s=Y.d`
185
- from {transform: rotate(${i}deg) scale(${this.previousScale}); }
186
- to {transform: rotate(${a}deg) scale(${r});
187
- }`,l=Y.c.div`position: absolute; animation: ${s} ${o}s;`;return this.previousScale=r,I.default.createElement("div",{style:{width:"100%",height:"100%",position:"absolute"},ref:t=>this.container=t},I.default.createElement(l,{style:{width:this.calculate(t,"width"),height:this.calculate(t,"height"),transform:`rotate(${a}deg) scale(${r})`,marginTop:this.marginWithAspect(e,"y",t),marginLeft:this.marginWithAspect(e,"x",t)},onAnimationStart:()=>{this.animating=!0},onAnimationEnd:()=>{this.animating=!1}},this.props.children))}marginWithAspect(t,e,n){if(!t||!n)return 0;n.width,n.height;return t[e]}calculate(t,e){return t?t[e]:"100%"}}class Km extends I.default.Component{componentDidMount(){bh.disableScreenMovement()}componentWillUnmount(){bh.enableScreenMovement()}render(){return I.default.createElement("div",null)}}class Jm{constructor(t,e){this.element=t,this.size=e}}class tg{}class eg extends I.default.Component{render(){return I.default.createElement("div",{style:this.props.style},I.default.createElement("svg",null,this.vertical(),this.horizontal()))}half(){return this.props.size/2}vertical(){const t=this.half();return I.default.createElement("line",{x1:t,y1:0,x2:t,y2:this.props.size,stroke:this.props.color,strokeWidth:"2"})}horizontal(){const t=this.half();return I.default.createElement("line",{x1:0,y1:t,x2:this.props.size,y2:t,stroke:this.props.color,strokeWidth:"2"})}}class ng extends I.default.Component{get crosshairSize(){var t,e;return null===(e=null===(t=this.props.style)||void 0===t?void 0:t.crosshair)||void 0===e?void 0:e.size}constructor(t){super(t),this.MAX_ROTATIONS=4,this.state={frame:g.a.empty(),cropImageFitSize:ah.a.empty(),rotation:{count:0,scale:1},margin:{left:this.props.style.margin,top:this.props.style.margin},container:{width:0},scale:{width:1,height:1}}}style(){return{container:{marginLeft:this.state.margin.left,marginTop:this.state.margin.top,width:this.state.frame.width,height:this.state.frame.height,borderRadius:this.props.style.size/2,border:this.props.style.border.width+"px solid "+this.props.style.border.color,position:"absolute",overflow:"hidden",zIndex:50,transform:"rotate("+90*this.state.rotation.count+"deg)"},image:{width:this.state.cropImageFitSize.width*this.props.style.zoom,height:this.state.cropImageFitSize.height*this.props.style.zoom,marginLeft:-this.state.frame.x,marginTop:-this.state.frame.y,objectFit:"cover"},crosshair:{margin:"auto",position:"absolute",width:this.crosshairSize,height:this.crosshairSize,top:this.state.frame.height/2-this.crosshairSize/2,left:this.state.frame.width/2-this.crosshairSize/2}}}render(){return this.state.visible?I.default.createElement("div",{style:this.style().container},I.default.createElement("img",{style:this.style().image,ref:t=>this.destination=t,src:this.props.src,alt:"."}),I.default.createElement(eg,{style:this.style().crosshair,size:this.crosshairSize,color:this.props.style.crosshair.color})):null}update(t){if(!this.state.visible)return;this.destination.src=t.source.element.src;const e=g.a.fromPoint(Fd.a.scaleUpTo(t.origin,new ah.a(this.props.style.zoom,this.props.style.zoom)),this.props.style.size),n=t.container.width-(this.props.style.margin+this.props.style.size),r=this.isPointTopLeft(t.origin,t.source.size,t.rotations);this.setState({frame:e,cropImageFitSize:t.source.size,rotation:{count:t.rotations,scale:t.scale},margin:{left:r?n:this.props.style.margin},container:{width:t.container.width},scale:{width:t.source.size.width/t.container.width,height:t.source.size.height/t.container.height}})}isPointTopLeft(t,e,n){const r=t.x,o=t.y,i=this.normalizeRotations(n),a=this.state.container.width/4;return 0===i?r<a&&o<a:1===i?r<a&&o>e.height-a:2===i?r>e.width-a&&o>e.height-a:r>e.width-a&&o<a}setIsVisible(t,e){this.setState({visible:t},e)}normalizeRotations(t){return t%this.MAX_ROTATIONS}}var rg=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};class og extends I.default.Component{constructor(t){super(t),this.onResizeCallback=()=>{},this.MAX_ROTATIONS=4,this.BASE_SCALE=1,this.state={image:void 0,documentDetectionResult:void 0,polygon:void 0,calculatedSize:ah.a.empty(),animation:{rotations:0,scale:1,duration:0},points:[],magneticLines:{horizontal:{original:[],scaled:[]},vertical:{original:[],scaled:[]}},imageMargin:Fd.a.empty()},this.onResizeCallback=this.onResize.bind(this)}static create(t){return rg(this,void 0,void 0,(function*(){const e=document.getElementById(t.containerId);if(!e)throw Error("Unable to initialize cropping component: Cannot find container element with the id provided.");return new Promise(((n,r)=>{Object(I.render)(I.default.createElement(og,{onReady:n,onError:r,container:e,configuration:Um.fromJson(t)}),e)}))}))}componentDidMount(){var t,e,n;return rg(this,void 0,void 0,(function*(){const r=null===(t=this.configuration)||void 0===t?void 0:t.image,o=yield hg.instance.detectAndCropDocument(r),i=yield y.toDataUrl(yield hg.instance.imageToJpeg(r));this.setState({documentDetectionResult:o,image:i,polygon:null!==(n=null===(e=this.configuration)||void 0===e?void 0:e.polygon)&&void 0!==n?n:o.pointsNormalized,magneticLines:{vertical:{original:o.verticalLinesNormalized},horizontal:{original:o.horizontalLinesNormalized}}}),this.props.onReady&&this.props.onReady(this),addEventListener("resize",this.onResizeCallback),addEventListener("orientationchange",this.onResizeCallback)}))}componentWillUnmount(){return rg(this,void 0,void 0,(function*(){removeEventListener("resize",this.onResizeCallback),removeEventListener("orientationchange",this.onResizeCallback)}))}onImageLoaded(t){return rg(this,void 0,void 0,(function*(){ah.a.isEmpty(this.state.calculatedSize)&&(this.htmlImage=t,this.initializeSizes())}))}onResize(){const t=this.state.points.map((t=>new Fd.a(t.x/this.state.calculatedSize.width,t.y/this.state.calculatedSize.height)));this.initializeSizes(t)}initializeSizes(t,e,n){const r=new ah.a(this.htmlImage.naturalWidth,this.htmlImage.naturalHeight),o=new ah.a(this.container.width(),this.container.height()),i=y.getObjectFitSize(o,r),a=new ah.a(i.width,i.height),s=null!=t?t:this.state.polygon,l=bh.convertToViewportPointsFromParentSize(a,s),c=null!=e?e:this.state.magneticLines.horizontal.original,u=null!=n?n:this.state.magneticLines.vertical.original,d=bh.convertLinesToViewportLines(a,c),h=bh.convertLinesToViewportLines(a,u);this.setState({calculatedSize:a,points:l,magneticLines:{horizontal:{original:c,scaled:d},vertical:{original:u,scaled:h}},animation:{duration:0,rotations:this.rotations,scale:this.calculateScale(0,this.rotations,a)},imageMargin:this.calculateMargin(a)})}render(){var t,e,n,r,o,i;const a=Am.CLASSNAME,s=Jd()({[a]:!0,[`${a}-visible`]:!0}),l=this.configuration.style.polygon.width,c=(null===(t=this.state.animation)||void 0===t?void 0:t.scale)?l/this.state.animation.scale:l,u=this.configuration.style.padding||0,d=`calc(100% - 2*${u}px)`;return I.default.createElement("div",{style:{position:"relative",width:d,height:d,padding:u}},I.default.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},this.configuration.disableScroll&&I.default.createElement(Km,null),I.default.createElement(ng,{ref:t=>this.magnifier=t,style:this.configuration.style.magnifier}),I.default.createElement(qm,{ref:t=>this.container=t,size:this.state.calculatedSize,rotations:null===(e=this.state.animation)||void 0===e?void 0:e.rotations,scale:null===(n=this.state.animation)||void 0===n?void 0:n.scale,duration:null===(r=this.state.animation)||void 0===r?void 0:r.duration,imageMargin:this.state.imageMargin},I.default.createElement(Xm,{src:this.state.image,onImageLoaded:t=>this.onImageLoaded(t)}),I.default.createElement(Zm,{style:{width:"100%",height:"100%",zIndex:500},size:this.state.calculatedSize,polygonStyle:{cursor:"pointer",stroke:this.configuration.style.polygon.color,strokeWidth:`${c}px`},handleStyle:this.configuration.style.polygon.handles,magneticLineStyle:this.configuration.style.magneticLines,polygonClasses:s,points:this.state.points,rotations:null===(o=this.state.animation)||void 0===o?void 0:o.rotations,scale:null===(i=this.state.animation)||void 0===i?void 0:i.scale,magneticLines:this.state.magneticLines,cornerMoveStart:this.showMagnifier.bind(this),cornerMoved:this.updateMagnifier.bind(this),cornerMoveEnd:this.hideMagnifier.bind(this)}))))}showMagnifier(t){var e;null===(e=this.magnifier)||void 0===e||e.setIsVisible(!0,(()=>{var e;null===(e=this.magnifier)||void 0===e||e.update(this.magnifierOptions(t))}))}updateMagnifier(t){var e;null===(e=this.magnifier)||void 0===e||e.update(this.magnifierOptions(t))}magnifierOptions(t){const e=new tg;return e.source=new Jm(this.htmlImage,this.state.calculatedSize),e.container=new ah.a(this.container.width(),this.container.height()),e.origin=t.point,e.rotations=this.state.animation.rotations,e.scale=this.state.animation.scale,e}hideMagnifier(){var t;null===(t=this.magnifier)||void 0===t||t.setIsVisible(!1)}apply(){var t;return rg(this,void 0,void 0,(function*(){const e=Fd.a.toPolygon(this.state.points,this.state.calculatedSize),n=this.toCoreRotations(this.rotations),r=yield hg.instance.imageCrop(null===(t=this.configuration)||void 0===t?void 0:t.image,e);return{image:yield hg.instance.imageRotate(r,n,"CONSUME_IMAGE"),polygon:e,rotations:this.rotations}}))}toCoreRotations(t){switch(t%this.MAX_ROTATIONS){case 0:return"NONE";case 1:return"CLOCKWISE_90";case 2:return"CLOCKWISE_180";case 3:return"COUNTERCLOCKWISE_90"}}rotate(t){return rg(this,void 0,void 0,(function*(){if(this.container.isAnimating())return void console.warn("Unable to rotate: previous rotation animation in progress");const e=this.calculateScale(this.rotations,t,this.state.calculatedSize);this.setState({animation:{rotations:this.rotations+t,scale:e,duration:1}})}))}detect(){return rg(this,void 0,void 0,(function*(){const t=this.state.documentDetectionResult;this.initializeSizes(t.pointsNormalized,t.horizontalLinesNormalized,t.verticalLinesNormalized)}))}dispose(){const{container:t}=this.props;if(!t)throw Error("Component wasn't created with openCroppingView. Remove component from render tree to dispose.");Object(I.render)(null,t)}get rotations(){var t,e;const n=null===(t=this.state.animation)||void 0===t?void 0:t.rotations;return n&&0!==n?n:null!==(e=this.configuration.rotations)&&void 0!==e?e:0}get configuration(){return this._configuration||(this._configuration=Um.fromJson(this.props.configuration)),this._configuration}calculateScale(t,e,n){return e?(t+e)%2==0?this.BASE_SCALE:this.calculateRatio(n):this.BASE_SCALE}calculateRatio(t){return Math.min(this.container.width()/t.height,this.container.height()/t.width)}calculateMargin(t){return t.width>t.height?{x:0,y:this.container.height()/2-t.height/2}:{x:this.container.width()/2-t.width/2,y:0}}}var ig=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};jo.a;jo.b;class ag extends jo.c{constructor(t){super(t),this.shouldComputeSize=!0,this.paused=!1,this.updateDimensionsCallback=this.updateDimensions.bind(this),Object.assign(this.state,{isFinderVisible:!0})}get configuration(){return this.props.configuration}get enabled(){return!this.disposed}static create(t,e,n){return ig(this,void 0,void 0,(function*(){const r=document.getElementById(t.containerId);if(!r)throw Error("Unable to initialize ScanbotSDK: Cannot find container element with the id provided.");return new Promise(((o,i)=>{Object(I.render)(I.default.createElement(ag,{container:r,configuration:t,onTextDetected:e,onSuccess:o,onFailure:i,textDataScanner:n}),r)}))}))}isDetectionPaused(){return this.paused}resumeDetection(){return ig(this,void 0,void 0,(function*(){vh.warn("TextData detection resumed"),yield this.resume()}))}pauseDetection(){vh.warn("TextData detection paused"),this.pause()}componentDidMount(){const t=Object.create(null,{componentDidMount:{get:()=>super.componentDidMount}});return ig(this,void 0,void 0,(function*(){t.componentDidMount.call(this),window.addEventListener("resize",this.updateDimensionsCallback),yield this.resume()}))}componentWillUnmount(){super.componentWillUnmount(),this.pause(),this.props.textDataScanner.release(),window.removeEventListener("resize",this.updateDimensionsCallback)}updateDimensions(){return ig(this,void 0,void 0,(function*(){this.shouldComputeSize=!0,this.forceUpdate()}))}resume(){return ig(this,void 0,void 0,(function*(){this.paused=!1,yield this.detect()}))}pause(){this.props.textDataScanner.cleanRecognitionQueue(),this.paused=!0}detect(){var t,e,n,r;return ig(this,void 0,void 0,(function*(){const o=this.shouldComputeSize;if(!this.enabled)return;if(this.paused)return;let i=!1;try{this.camera.finderFrame=null===(t=this.finder)||void 0===t?void 0:t.holeRect;const n=yield null===(e=this.camera)||void 0===e?void 0:e.createImageData(ag.FRAME_RESOLUTION);if(!n)return;o&&this.forceUpdate();const r=yield this.props.textDataScanner.recognize(n);if(!this.enabled)return;if(null===r)return;r&&(i=!0,this.props.onTextDetected(r),this.camera.reusableImageBuffer=r.originalImage.data)}catch(t){null===(r=(n=this.configuration).onError)||void 0===r||r.call(n,t)}finally{i?setTimeout((()=>{requestAnimationFrame(this.detect.bind(this))}),200):requestAnimationFrame(this.detect.bind(this))}}))}saveExtractedImageData(){this.camera.saveExtractedData()}render(){var t;return I.default.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},this.renderSpinner(null===(t=this.configuration)||void 0===t?void 0:t.spinnerColor),I.default.createElement("div",{style:{position:"absolute",width:"100%",height:"100%"}},I.default.createElement(ko.a,{configuration:this.configuration,videoConstraints:this.configuration.videoConstraints,mirrored:this.configuration.mirrored,preferredCamera:this.configuration.preferredCamera,onReady:this.onVideoReady,onError:this.onVideoError,ref:t=>{this.camera=t}})),this.state.isFinderVisible&&I.default.createElement(_o.a,{ref:t=>{this.finder=t},guidanceConfiguration:this.configuration.userGuidance,configuration:this.configuration.finder}))}}ag.FRAME_RESOLUTION=1200;var sg=ag,lg=n(64),cg=n(46),ug=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};class dg{static get UI(){if(!o.BUILD_WITH_UI)throw new Error("UI components are not included in Scanbot.min.js. Please use ScanbotSDK.ui2.min.js instead.");return dg._ui2}static initialize(t){var e;return ug(this,void 0,void 0,(function*(){const n=new dg,r=t.engine||dg.defaultEnginePath,a=!!t.allowThreads,s=null!==(e=t.requestSuffix)&&void 0!==e?e:`?${n.version}`,l=[t.licenseKey,r,window.location.hostname,o.CDN_PATH+o.DEFAULT_WASM_FOLDER,{captureConsole:!1,allowThreads:a,requestSuffix:s}];return n.bridge=new u(r,{allowSimd:!0,allowThreads:a,requestSuffix:s},l),dg.instance=n,window.scanbotSdk=n,F.a.initialize(t.verboseLogging),t.allowThreads&&!Object(i.a)()&&(F.a.debugWarn("Threads are not available in this environment. The SDK will run in single-threaded mode."),window.hasOwnProperty("crossOriginIsolated")&&!window.crossOriginIsolated&&F.a.debugWarn("The site is not cross-origin isolated. This prevents multithreading in the ScanbotSDK. To enable multithreading, you need to set the 'Cross-Origin-Opener-Policy' and 'Cross-Origin-Embedder-Policy' http headers. See our documentation for details.")),this.cameras.initialize(null==t?void 0:t.bestCameraDetectionStrategy),n}))}createDocumentScanner(t){return ug(this,void 0,void 0,(function*(){let e;try{return e=yield _m.create(t),yield this.licenseCheck(),e}catch(t){throw e&&e.dispose(),t}}))}createMrzScanner(t){return ug(this,void 0,void 0,(function*(){let e;try{const n=new S(this,this.bridge.copyArgs.createMRZRecognizer(t.recognizerConfiguration));return e=yield Dm.create(t,n),yield this.licenseCheck(),e}catch(t){throw e&&e.dispose(),t}}))}createBarcodeScanner(t){return ug(this,void 0,void 0,(function*(){let e;try{return e=yield Ah.create(t),yield this.licenseCheck(),e}catch(t){throw e&&e.dispose(),t}}))}openCroppingView(t){return ug(this,void 0,void 0,(function*(){return yield this.licenseCheck(),yield og.create(t)}))}createTextDataScanner(t){return ug(this,void 0,void 0,(function*(){try{t=_.fromJson(t);const e=yield this.createGenericTextLineScanner(t,t.onTextDetected,t.ocrConfiguration);return yield this.licenseCheck(),e}catch(t){throw t}}))}createVINScanner(t){return ug(this,void 0,void 0,(function*(){let e;try{t=T.fromJson(t);const n=e=>{""!==e.rawText&&t.onTextDetected(e)},r=new k.GenericTextLineScannerTypes.ScannerConfiguration(Object.assign(Object.assign({},t.ocrConfiguration),{validator:new k.GenericTextLineScannerTypes.PresetContentValidator({preset:"VEHICLE_IDENTIFICATION_NUMBER"})}));return e=yield this.createGenericTextLineScanner(t,n,r),yield this.licenseCheck(),e}catch(t){throw e&&e.dispose(),t}}))}createGenericDocumentRecognizerScanner(t){return ug(this,void 0,void 0,(function*(){let e;try{const r=n(121).default;return e=yield r.create(this,t),yield this.licenseCheck(),e}catch(t){throw e&&e.dispose(),t}}))}toDataUrl(t){return ug(this,void 0,void 0,(function*(){return R.throwIfMissingBuffer(t),yield y.toDataUrl(t)}))}detectDocument(t,e={},n="COPY_IMAGE"){return ug(this,void 0,void 0,(function*(){yield this.licenseCheck(),R.throwIfMissingBuffer(t);const r=yield this.bridge.copyArgs.createDocumentDetector(e),o=this.getBridge(n),i=yield o.documentDetectorDetect(r,t);return yield this.release(r,"documentDetector"),i}))}detectAndCropDocument(t,e="COPY_IMAGE"){return ug(this,void 0,void 0,(function*(){yield this.licenseCheck(),R.throwIfMissingBuffer(t);const n=this.getBridge(e);return yield n.detectAndCropDocument(t)}))}detectBarcodes(t,e={},n="COPY_IMAGE"){return ug(this,void 0,void 0,(function*(){yield this.licenseCheck(),R.throwIfMissingBuffer(t),"string"==typeof t&&(t=yield y.loadFromUrl(t));const r=Object.assign({},e);r.live=!1;const o=yield this.bridge.copyArgs.createBarcodeRecognizer(r),i=yield this.getBridge(n).recognizeBarcodes(o,t);return yield this.release(o,"barcodeRecognizer"),i}))}parseBarcodeDocument(t,e){return ug(this,void 0,void 0,(function*(){return yield this.licenseCheck(),yield this.bridge.copyArgs.parseBarcodeDocument(t,e)}))}createSimpleMRZRecognizer(){return ug(this,void 0,void 0,(function*(){const t=new k.MRZTypes.RecognizerConfiguration({accumulatedResultsVerifierConfig:{maximumNumberOfAccumulatedFrames:0}});return new S(this,this.bridge.copyArgs.createMRZRecognizer(t))}))}createOcrEngine(){return ug(this,void 0,void 0,(function*(){return new w(this,yield this.bridge.copyArgs.createOcrEngine())}))}createDocumentQualityAnalyzer(t={}){return ug(this,void 0,void 0,(function*(){const e=yield this.bridge.copyArgs.createDocumentQualityAnalyzer(t);return new B(this,e)}))}imageRotate(t,e,n="COPY_IMAGE"){return ug(this,void 0,void 0,(function*(){R.throwIfMissingBuffer(t);const r=this.getBridge(n);return yield r.imageRotate(t,e)}))}imageFilter(t,e,n="COPY_IMAGE"){return ug(this,void 0,void 0,(function*(){R.throwIfMissingBuffer(t);const r=this.getBridge(n);return yield r.imageApplyFilter(t,e)}))}imageCrop(t,e,n="COPY_IMAGE"){return ug(this,void 0,void 0,(function*(){R.throwIfMissingBuffer(t);const r=this.getBridge(n);return yield r.imageCrop(t,e)}))}imageResize(t,e,n="COPY_IMAGE"){return ug(this,void 0,void 0,(function*(){R.throwIfMissingBuffer(t);const r=this.getBridge(n);return yield r.imageResize(t,e)}))}getLicenseInfo(){return ug(this,void 0,void 0,(function*(){const t=yield this.bridge.copyArgs.getLicenseInfo();return d.fromJson(t)}))}beginPdf(t){return ug(this,void 0,void 0,(function*(){return yield this.licenseCheck(),new p(this,yield this.bridge.copyArgs.beginPdf(t))}))}beginTiff(t={}){return ug(this,void 0,void 0,(function*(){return yield this.licenseCheck(),new m(this,yield this.bridge.copyArgs.beginTiff(t))}))}createGenericDocumentRecognizer(t){return ug(this,void 0,void 0,(function*(){return yield this.licenseCheck(),new lm(this,yield this.bridge.copyArgs.genericDocumentRecognizerCreate(t))}))}imageToJpeg(t,e="COPY_IMAGE"){return ug(this,void 0,void 0,(function*(){yield this.licenseCheck();return this.getBridge(e).encodeJpeg(t)}))}get version(){return o.VERSION}get utils(){return this._utils||(this._utils=new A),this._utils}release(t,e){return ug(this,void 0,void 0,(function*(){t&&(F.a.debug(`Releasing object ${null!=e?e:"unknown"}`),yield this.bridge.copyArgs.releaseObject(t))}))}getBridge(t){return"CONSUME_IMAGE"===t?this.bridge.transferArgs:this.bridge.copyArgs}licenseCheck(){return ug(this,void 0,void 0,(function*(){const t=yield this.getLicenseInfo();if(!t.isValid())throw console.error(`LicenseError: ${t.status}`),new P(t)}))}createGenericTextLineScanner(t,e,n){return ug(this,void 0,void 0,(function*(){const r=this.bridge.copyArgs.createGenericTextLineScanner(n),o=new E(this,r);return yield sg.create(t,e,o)}))}destroy(){this.bridge.destroy(),dg.instance=void 0}}dg.defaultEnginePath="",dg._ui2=o.BUILD_WITH_UI?am:void 0,dg.cameras=cg.a.INSTANCE,dg.Config=k,dg._stats=lg.a.INSTANCE;var hg=e.a=dg},,,,,,function(t,e,n){"use strict";n(2);e.a=function(t,e){return()=>null}},function(t,e,n){"use strict";var r=n(75),o=n.n(r)()((function(t){return t[1]}));o.push([t.i,"\n.scanbot-shutter-fade-in {\n opacity: 1;\n}\n\n.scanbot-shutter-fade-out {\n opacity: 0;\n}\n\n.scanbot-shutter-rotate {\n animation: scanbot-shutter-rotating linear infinite;\n}\n\n.scanbot-shutter-pulse-fast {\n animation: scanbot-shutter-pulsing 1s ease-in-out infinite;\n}\n\n.scanbot-shutter-button {\n position: relative;\n width: 64px;\n height: 64px;\n left: 50%;\n bottom: 12px;\n transform: translate(-50%, -100%);\n}\n\n.scanbot-shutter-button-part {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n transition: opacity 0.5s ease-in-out;\n}\n\n@keyframes scanbot-shutter-rotating {\n to {\n transform: rotate(360deg);\n }\n}\n\n@keyframes scanbot-shutter-pulsing {\n 0% {\n opacity: 0.25;\n }\n 50% {\n opacity: 0.8;\n }\n 100% {\n opacity: 0.25;\n }\n}\n",""]),e.a=o},function(t,e,n){"use strict";var r=n(75),o=n.n(r)()((function(t){return t[1]}));o.push([t.i,".scanbot-document-hint-text {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n text-align: center;\n background-color: rgba(0, 0, 0, 0.4);\n color: white;\n border-radius: 0.25em;\n padding: 0.05em 0.3em 0.05em 0.3em;\n font-family: sans-serif;\n font-size: 0.9em;\n font-weight: 300;\n}\n",""]),e.a=o},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(123);function o(t){if("string"!=typeof t)throw new Error(Object(r.a)(7));return t.charAt(0).toUpperCase()+t.slice(1)}},,,,,,function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var l,c=[],u=!1,d=-1;function h(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&p())}function p(){if(!u){var t=s(h);u=!0;for(var e=c.length;e;){for(l=c,c=[];++d<e;)l&&l[d].run();d=-1,e=c.length}l=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function m(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new f(t,e)),1!==c.length||u||s(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){"use strict";n.r(e),n.d(e,"capitalize",(function(){return o.a})),n.d(e,"createChainedFunction",(function(){return i})),n.d(e,"createSvgIcon",(function(){return a.a})),n.d(e,"debounce",(function(){return s.a})),n.d(e,"deprecatedPropType",(function(){return l})),n.d(e,"isMuiElement",(function(){return c.a})),n.d(e,"ownerDocument",(function(){return u.a})),n.d(e,"ownerWindow",(function(){return d.a})),n.d(e,"requirePropFactory",(function(){return h.a})),n.d(e,"setRef",(function(){return p})),n.d(e,"unstable_useEnhancedEffect",(function(){return f.a})),n.d(e,"unstable_useId",(function(){return m})),n.d(e,"unsupportedProp",(function(){return g})),n.d(e,"useControlled",(function(){return b})),n.d(e,"useEventCallback",(function(){return y.a})),n.d(e,"useForkRef",(function(){return A.a})),n.d(e,"useIsFocusVisible",(function(){return C.a})),n.d(e,"unstable_ClassNameGenerator",(function(){return S}));var r=n(125),o=n(9),i=n(160).a,a=n(67),s=n(69);var l=function(t,e){return()=>null},c=n(70),u=n(56),d=n(57),h=n(83),p=n(129).a,f=n(49),m=n(161).a;var g=function(t,e,n,r,o){return null},v=n(0);var b=function({controlled:t,default:e,name:n,state:r="value"}){const{current:o}=v.useRef(void 0!==t),[i,a]=v.useState(e);return[o?t:i,v.useCallback((t=>{o||a(t)}),[])]},y=n(42),A=n(36),C=n(68);const S={configure:t=>{r.a.configure(t)}}},function(t,e,n){const{render:r,hydrate:o,unmountComponentAtNode:i}=n(0);function a(t){return{render(e){r(e,t)},unmount(){i(t)}}}e.createRoot=a,e.hydrateRoot=function(t,e){return o(e,t),a(t)}},function(t,e,n){"use strict";e.a={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"}},function(t,e,n){"use strict";var r=n(86),o=n(45),i=n(20),a=n(31),s=n(62);const l=function(){function t(t,e,n,o){const s={[t]:e,theme:n},l=o[t];if(!l)return{[t]:e};const{cssProperty:c=t,themeKey:u,transform:d,style:h}=l;if(null==e)return null;if("typography"===u&&"inherit"===e)return{[t]:e};const p=Object(i.b)(n,u)||{};if(h)return h(s);return Object(a.b)(s,e,(e=>{let n=Object(i.c)(p,d,e);return e===n&&"string"==typeof e&&(n=Object(i.c)(p,d,`${t}${"default"===e?"":Object(r.a)(e)}`,e)),!1===c?n:{[c]:n}}))}return function e(n){var r;const{sx:i,theme:l={}}=n||{};if(!i)return null;const c=null!=(r=l.unstable_sxConfig)?r:s.a;function u(n){let r=n;if("function"==typeof n)r=n(l);else if("object"!=typeof n)return n;if(!r)return null;const i=Object(a.a)(l.breakpoints),s=Object.keys(i);let u=i;return Object.keys(r).forEach((n=>{const i=(s=r[n],d=l,"function"==typeof s?s(d):s);var s,d;if(null!=i)if("object"==typeof i)if(c[n])u=Object(o.a)(u,t(n,i,l,c));else{const t=Object(a.b)({theme:l},i,(t=>({[n]:t})));!function(...t){const e=t.reduce(((t,e)=>t.concat(Object.keys(e))),[]),n=new Set(e);return t.every((t=>n.size===Object.keys(t).length))}(t,i)?u=Object(o.a)(u,t):u[n]=e({sx:i,theme:l})}else u=Object(o.a)(u,t(n,i,l,c))})),Object(a.c)(s,u)}return Array.isArray(i)?i.map(u):u(i)}}();l.filterProps=["sx"],e.a=l},function(t,e){t.exports=function(t,e,n,r){var o=n?n.call(r,t,e):void 0;if(void 0!==o)return!!o;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var i=Object.keys(t),a=Object.keys(e);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(e),l=0;l<i.length;l++){var c=i[l];if(!s(c))return!1;var u=t[c],d=e[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0}},function(t,e,n){"use strict";e.a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(127);function o(t){const{theme:e,name:n,props:o}=t;return e&&e.components&&e.components[n]&&e.components[n].defaultProps?Object(r.a)(e.components[n].defaultProps,o):o}},function(t,e,n){"use strict";var r=n(47);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(48)),i=n(4);e.default=(0,o.default)((0,i.jsx)("path",{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"}),"ArrowBackIosNew")},function(t,e,n){"use strict";var r=n(47);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(48)),i=n(4);e.default=(0,o.default)((0,i.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight")},function(t,e,n){"use strict";var r=n(47);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(48)),i=n(4);e.default=(0,o.default)((0,i.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove")},function(t,e,n){"use strict";var r=n(47);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(48)),i=n(4);e.default=(0,o.default)((0,i.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add")},function(t,e,n){"use strict";var r=n(47);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(48)),i=n(4);e.default=(0,o.default)((0,i.jsx)("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"HighlightOff")},function(t,e,n){"use strict";var r=n(47);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(48)),i=n(4);e.default=(0,o.default)((0,i.jsx)("path",{d:"M5 13h14v-2H5zm-2 4h14v-2H3zM7 7v2h14V7z"}),"ClearAll")},function(t,e,n){"use strict";var r=n(47);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(48)),i=n(4);e.default=(0,o.default)((0,i.jsx)("path",{d:"M8.9 6.07 7.48 4.66 9 3h6l1.83 2H20c1.1 0 2 .9 2 2v12c0 .05-.01.1-.02.16L20 17.17V7h-4.05l-1.83-2H9.88zm11.59 17.24L18.17 21H4c-1.1 0-2-.9-2-2V7c0-.59.27-1.12.68-1.49l-2-2L2.1 2.1l19.8 19.8zM9.19 12.02c-.11.31-.19.63-.19.98 0 1.66 1.34 3 3 3 .35 0 .67-.08.98-.19zM16.17 19l-1.68-1.68c-.73.43-1.58.68-2.49.68-2.76 0-5-2.24-5-5 0-.91.25-1.76.68-2.49L4.17 7H4v12zm-1.36-7.02 2.07 2.07c.08-.34.12-.69.12-1.05 0-2.76-2.24-5-5-5-.36 0-.71.04-1.06.12l2.07 2.07c.84.3 1.5.96 1.8 1.79"}),"NoPhotographyOutlined")},function(t,e,n){"use strict";var r=n(2),o=n(7),i=n(123),a=n(110),s=n(132),l=n(62),c=n(96);var u=n(162);var d={black:"#000",white:"#fff"},h=n(95);var p={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var f={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var v={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var b={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const y=["mode","contrastThreshold","tonalOffset"],A={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},C={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function S(t,e,n,r){const o=r.light||r,i=r.dark||1.5*r;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:"light"===e?t.light=Object(u.d)(t.main,o):"dark"===e&&(t.dark=Object(u.b)(t.main,i)))}function x(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:s=.2}=t,l=Object(o.a)(t,y),c=t.primary||function(t="light"){return"dark"===t?{main:g[200],light:g[50],dark:g[400]}:{main:g[700],light:g[400],dark:g[800]}}(e),x=t.secondary||function(t="light"){return"dark"===t?{main:p[200],light:p[50],dark:p[400]}:{main:p[500],light:p[300],dark:p[700]}}(e),w=t.error||function(t="light"){return"dark"===t?{main:f[500],light:f[300],dark:f[700]}:{main:f[700],light:f[400],dark:f[800]}}(e),O=t.info||function(t="light"){return"dark"===t?{main:v[400],light:v[300],dark:v[700]}:{main:v[700],light:v[500],dark:v[900]}}(e),E=t.success||function(t="light"){return"dark"===t?{main:b[400],light:b[300],dark:b[700]}:{main:b[800],light:b[500],dark:b[900]}}(e),L=t.warning||function(t="light"){return"dark"===t?{main:m[400],light:m[300],dark:m[700]}:{main:"#ed6c02",light:m[500],dark:m[900]}}(e);function j(t){return Object(u.c)(t,C.text.primary)>=n?C.text.primary:A.text.primary}const k=({color:t,name:e,mainShade:n=500,lightShade:o=300,darkShade:a=700})=>{if(!(t=Object(r.a)({},t)).main&&t[n]&&(t.main=t[n]),!t.hasOwnProperty("main"))throw new Error(Object(i.a)(11,e?` (${e})`:"",n));if("string"!=typeof t.main)throw new Error(Object(i.a)(12,e?` (${e})`:"",JSON.stringify(t.main)));return S(t,"light",o,s),S(t,"dark",a,s),t.contrastText||(t.contrastText=j(t.main)),t},_={dark:C,light:A};return Object(a.a)(Object(r.a)({common:Object(r.a)({},d),mode:e,primary:k({color:c,name:"primary"}),secondary:k({color:x,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:k({color:w,name:"error"}),warning:k({color:L,name:"warning"}),info:k({color:O,name:"info"}),success:k({color:E,name:"success"}),grey:h.a,contrastThreshold:n,getContrastText:j,augmentColor:k,tonalOffset:s},_[e]),l)}const w=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const O={textTransform:"uppercase"},E='"Roboto", "Helvetica", "Arial", sans-serif';function L(t,e){const n="function"==typeof e?e(t):e,{fontFamily:i=E,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:h=16,allVariants:p,pxToRem:f}=n,m=Object(o.a)(n,w);const g=s/14,v=f||(t=>t/h*g+"rem"),b=(t,e,n,o,a)=>{return Object(r.a)({fontFamily:i,fontWeight:t,fontSize:v(e),lineHeight:n},i===E?{letterSpacing:(s=o/e,Math.round(1e5*s)/1e5)+"em"}:{},a,p);var s},y={h1:b(l,96,1.167,-1.5),h2:b(l,60,1.2,-.5),h3:b(c,48,1.167,0),h4:b(c,34,1.235,.25),h5:b(c,24,1.334,0),h6:b(u,20,1.6,.15),subtitle1:b(c,16,1.75,.15),subtitle2:b(u,14,1.57,.1),body1:b(c,16,1.5,.15),body2:b(c,14,1.43,.15),button:b(u,14,1.75,.4,O),caption:b(c,12,1.66,.4),overline:b(c,12,2.66,1,O),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Object(a.a)(Object(r.a)({htmlFontSize:h,pxToRem:v,fontFamily:i,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},y),m,{clone:!1})}function j(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,0.2)`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,0.14)`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,0.12)`].join(",")}var k=["none",j(0,2,1,-1,0,1,1,0,0,1,3,0),j(0,3,1,-2,0,2,2,0,0,1,5,0),j(0,3,3,-2,0,3,4,0,0,1,8,0),j(0,2,4,-1,0,4,5,0,0,1,10,0),j(0,3,5,-1,0,5,8,0,0,1,14,0),j(0,3,5,-1,0,6,10,0,0,1,18,0),j(0,4,5,-2,0,7,10,1,0,2,16,1),j(0,5,5,-3,0,8,10,1,0,3,14,2),j(0,5,6,-3,0,9,12,1,0,3,16,2),j(0,6,6,-3,0,10,14,1,0,4,18,3),j(0,6,7,-4,0,11,15,1,0,4,20,3),j(0,7,8,-4,0,12,17,2,0,5,22,4),j(0,7,8,-4,0,13,19,2,0,5,24,4),j(0,7,9,-4,0,14,21,2,0,5,26,4),j(0,8,9,-5,0,15,22,2,0,6,28,5),j(0,8,10,-5,0,16,24,2,0,6,30,5),j(0,8,11,-5,0,17,26,2,0,6,32,5),j(0,9,11,-5,0,18,28,2,0,7,34,6),j(0,9,12,-6,0,19,29,2,0,7,36,6),j(0,10,13,-6,0,20,31,3,0,8,38,7),j(0,10,13,-6,0,21,33,3,0,8,40,7),j(0,10,14,-6,0,22,35,3,0,8,42,7),j(0,11,14,-7,0,23,36,3,0,9,44,8),j(0,11,15,-7,0,24,38,3,0,9,46,8)];const _=["duration","easing","delay"],T={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},P={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function R(t){return`${Math.round(t)}ms`}function D(t){if(!t)return 0;const e=t/36;return Math.round(10*(4+15*e**.25+e/5))}function B(t){const e=Object(r.a)({},T,t.easing),n=Object(r.a)({},P,t.duration);return Object(r.a)({getAutoHeightDuration:D,create:(t=["all"],r={})=>{const{duration:i=n.standard,easing:a=e.easeInOut,delay:s=0}=r;Object(o.a)(r,_);return(Array.isArray(t)?t:[t]).map((t=>`${t} ${"string"==typeof i?i:R(i)} ${a} ${"string"==typeof s?s:R(s)}`)).join(",")}},t,{easing:e,duration:n})}var F={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const I=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function M(t={},...e){const{mixins:n={},palette:u={},transitions:d={},typography:h={}}=t,p=Object(o.a)(t,I);if(t.vars)throw new Error(Object(i.a)(18));const f=x(u),m=Object(s.a)(t);let g=Object(a.a)(m,{mixins:(v=m.breakpoints,b=n,Object(r.a)({toolbar:{minHeight:56,[v.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[v.up("sm")]:{minHeight:64}}},b)),palette:f,shadows:k.slice(),typography:L(f,h),transitions:B(d),zIndex:Object(r.a)({},F)});var v,b;return g=Object(a.a)(g,p),g=e.reduce(((t,e)=>Object(a.a)(t,e)),g),g.unstable_sxConfig=Object(r.a)({},l.a,null==p?void 0:p.unstable_sxConfig),g.unstable_sx=function(t){return Object(c.a)({sx:t,theme:this})},g}e.a=M},function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s}));var r=n(0);const o={};const i=[];class a{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new a}start(t,e){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,e()}),t)}}function s(){const t=function(t,e){const n=r.useRef(o);return n.current===o&&(n.current=t(e)),n}(a.create).current;var e;return e=t.disposeEffect,r.useEffect(e,i),t}},function(t,e,n){"use strict";function r(t){var e=Object.create(null);return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}n.d(e,"a",(function(){return i}));var o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=r((function(t){return o.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a}));var r=n(2);function o(t){if("object"!=typeof t||null===t)return!1;const e=Object.getPrototypeOf(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)}function i(t){if(!o(t))return t;const e={};return Object.keys(t).forEach((n=>{e[n]=i(t[n])})),e}function a(t,e,n={clone:!0}){const s=n.clone?Object(r.a)({},t):t;return o(t)&&o(e)&&Object.keys(e).forEach((r=>{"__proto__"!==r&&(o(e[r])&&r in t&&o(t[r])?s[r]=a(t[r],e[r],n):n.clone?s[r]=o(e[r])?i(e[r]):e[r]:s[r]=e[r])})),s}},function(t,e,n){"use strict";var r=n(0);const o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;e.a=o},function(t,e,n){"use strict";function r(t){return t&&t.ownerDocument||document}n.d(e,"a",(function(){return r}))},,,,,,,function(t,e,n){"use strict";n.r(e),n.d(e,"ScanbotSDK",(function(){return r}));const r=n(77).a},function(t,e,n){"use strict";n.r(e),n.d(e,"jsx",(function(){return c})),n.d(e,"jsxAttr",(function(){return p})),n.d(e,"jsxDEV",(function(){return c})),n.d(e,"jsxEscape",(function(){return f})),n.d(e,"jsxTemplate",(function(){return u})),n.d(e,"jsxs",(function(){return c}));var r=n(12);n.d(e,"Fragment",(function(){return r.b}));var o=/["&<]/;function i(t){if(0===t.length||!1===o.test(t))return t;for(var e=0,n=0,r="",i="";n<t.length;n++){switch(t.charCodeAt(n)){case 34:i="&quot;";break;case 38:i="&amp;";break;case 60:i="&lt;";break;default:continue}n!==e&&(r+=t.slice(e,n)),r+=i,e=n+1}return n!==e&&(r+=t.slice(e,n)),r}var a=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,s=0,l=Array.isArray;function c(t,e,n,o,i,a){var l,c,u={};for(c in e)"ref"==c?l=e[c]:u[c]=e[c];var d={type:t,props:u,key:n,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--s,__i:-1,__u:0,__source:i,__self:a};if("function"==typeof t&&(l=t.defaultProps))for(c in l)void 0===u[c]&&(u[c]=l[c]);return r.h.vnode&&r.h.vnode(d),d}function u(t){var e=c(r.b,{tpl:t,exprs:[].slice.call(arguments,1)});return e.key=e.__v,e}var d={},h=/[A-Z]/g;function p(t,e){if(r.h.attr){var n=r.h.attr(t,e);if("string"==typeof n)return n}if("ref"===t||"key"===t)return"";if("style"===t&&"object"==typeof e){var o="";for(var s in e){var l=e[s];if(null!=l&&""!==l){var c="-"==s[0]?s:d[s]||(d[s]=s.replace(h,"-$&").toLowerCase()),u=";";"number"!=typeof l||c.startsWith("--")||a.test(c)||(u="px;"),o=o+c+":"+l+u}}return t+'="'+o+'"'}return null==e||!1===e||"function"==typeof e||"object"==typeof e?"":!0===e?t:t+'="'+i(e)+'"'}function f(t){if(null==t||"boolean"==typeof t||"function"==typeof t)return null;if("object"==typeof t){if(void 0===t.constructor)return t;if(l(t)){for(var e=0;e<t.length;e++)t[e]=f(t[e]);return t}}return i(""+t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return h}));var r=n(0),o=n(25),i=n(32),a=n(43);class s extends a.a{constructor(){super(i.a.DEFAULT_VIDEO_RESOLUTION_HD),this.finder.aspectRatio={width:2,height:1},this.userGuidance.title.visible=!1}static fromJson(t){const e=new s;return this.mapValues(t,e,["videoConstraints","finder","userGuidance"]),this.mapFinderConfiguration(e,t),this.mapVideoConstraints(t,e),e}}var l=n(19),c=n(44),u=n(50),d=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};o.a;class h extends o.c{constructor(t){super(t),this.enabled=!0,this.configuration=t.configuration}static create(t,e){var n;return d(this,void 0,void 0,(function*(){const o=null!==(n=e.container)&&void 0!==n?n:document.getElementById(e.containerId);if(e=s.fromJson(e),!o)throw Error("Unable to initialize ScanbotSDK: Cannot find container element with the id provided.");return new Promise(((n,i)=>{Object(r.render)(r.default.createElement(h,{container:o,configuration:e,onSuccess:n,onFailure:i,sdk:t}),o)}))}))}componentDidMount(){var t,e;super.componentDidMount();try{this.genericDocumentRecognizer=this.props.sdk.createGenericDocumentRecognizer(this.configuration.detectorParameters)}catch(n){null===(e=(t=this.configuration).onError)||void 0===e||e.call(t,n)}this.detect()}componentWillUnmount(){const t=Object.create(null,{componentWillUnmount:{get:()=>super.componentWillUnmount}});return d(this,void 0,void 0,(function*(){t.componentWillUnmount.call(this),this.enabled=!1,yield(yield this.genericDocumentRecognizer).release()}))}detect(){var t,e,n,r,i,a;return d(this,void 0,void 0,(function*(){try{if(!this.enabled)return;this.camera.finderFrame=null===(t=this.finder)||void 0===t?void 0:t.holeRect;const i=yield null===(e=this.camera)||void 0===e?void 0:e.createImageData(o.c.DEFAULT_DETECTION_RESOLUTION);if(!i)return;const a=yield(yield this.genericDocumentRecognizer).recognize(i,new l.GenericDocumentRecognizerTypes.RecognitionParameters({mode:"LIVE"}),"CONSUME_IMAGE");if(!this.enabled)return;this.camera.reusableImageBuffer=a.originalImage.data,null===(r=(n=this.configuration).onDocumentDetected)||void 0===r||r.call(n,a)}catch(t){null===(a=(i=this.configuration).onError)||void 0===a||a.call(i,t)}finally{requestAnimationFrame((()=>this.detect()))}}))}render(){var t;const e=this.configuration;return r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},this.renderSpinner(null===(t=this.configuration)||void 0===t?void 0:t.spinnerColor),r.default.createElement("div",{style:{position:"absolute",width:"100%",height:"100%"}},r.default.createElement(c.a,{key:"camera",configuration:this.configuration,videoConstraints:e.videoConstraints,mirrored:e.mirrored,preferredCamera:this.configuration.preferredCamera,onReady:this.onVideoReady,onError:this.onVideoError,ref:t=>{this.camera=t}})),this.configuration.finder.visible&&r.default.createElement(u.a,{ref:t=>{this.finder=t},guidanceConfiguration:this.configuration.userGuidance,configuration:this.configuration.finder})))}}},function(t,e,n){"use strict";n.r(e);var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}((function(t){return r.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91}));e.default=o},function(t,e,n){"use strict";function r(t){let e="https://mui.com/production-error/?code="+t;for(let t=1;t<arguments.length;t+=1)e+="&args[]="+encodeURIComponent(arguments[t]);return"Minified MUI error #"+t+"; visit "+e+" for the full message."}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(125);const o={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function i(t,e,n="Mui"){const i=o[e];return i?`${n}-${i}`:`${r.a.generate(t)}-${e}`}},function(t,e,n){"use strict";const r=t=>t,o=(()=>{let t=r;return{configure(e){t=e},generate:e=>t(e),reset(){t=r}}})();e.a=o},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(99),o=n(72);function i({props:t,name:e,defaultTheme:n,themeId:i}){let a=Object(o.a)(n);i&&(a=a[i]||a);return Object(r.a)({theme:a,name:e,props:t})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(2);function o(t,e){const n=Object(r.a)({},e);return Object.keys(t).forEach((i=>{if(i.toString().match(/^(components|slots)$/))n[i]=Object(r.a)({},t[i],n[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){const a=t[i]||{},s=e[i];n[i]={},s&&Object.keys(s)?a&&Object.keys(a)?(n[i]=Object(r.a)({},s),Object.keys(a).forEach((t=>{n[i][t]=o(a[t],s[t])}))):n[i]=s:n[i]=a}else void 0===n[i]&&(n[i]=t[i])})),n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0),o=n(129);function i(...t){return r.useMemo((()=>t.every((t=>null==t))?null:e=>{t.forEach((t=>{Object(o.a)(t,e)}))}),t)}},function(t,e,n){"use strict";function r(t,e){"function"==typeof t?t(e):t&&(t.current=e)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";var r=n(0),o=n(111);e.a=function(t){const e=r.useRef(t);return Object(o.a)((()=>{e.current=t})),r.useRef(((...t)=>(0,e.current)(...t))).current}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(112);function o(t){return Object(r.a)(t).defaultView||window}},function(t,e,n){"use strict";var r=n(2),o=n(7),i=n(110);const a=["values","unit","step"];function s(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:i=5}=t,s=Object(o.a)(t,a),l=(t=>{const e=Object.keys(t).map((e=>({key:e,val:t[e]})))||[];return e.sort(((t,e)=>t.val-e.val)),e.reduce(((t,e)=>Object(r.a)({},t,{[e.key]:e.val})),{})})(e),c=Object.keys(l);function u(t){return`@media (min-width:${"number"==typeof e[t]?e[t]:t}${n})`}function d(t){return`@media (max-width:${("number"==typeof e[t]?e[t]:t)-i/100}${n})`}function h(t,r){const o=c.indexOf(r);return`@media (min-width:${"number"==typeof e[t]?e[t]:t}${n}) and (max-width:${(-1!==o&&"number"==typeof e[c[o]]?e[c[o]]:r)-i/100}${n})`}return Object(r.a)({keys:c,values:l,up:u,down:d,between:h,only:function(t){return c.indexOf(t)+1<c.length?h(t,c[c.indexOf(t)+1]):u(t)},not:function(t){const e=c.indexOf(t);return 0===e?u(c[1]):e===c.length-1?d(c[e]):h(t,c[c.indexOf(t)+1]).replace("@media","@media not all and")},unit:n},s)}var l={borderRadius:4},c=n(14);var u=n(96),d=n(62);function h(t,e){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(t).replace(/(\[[^\]]+\])/,"*:where($1)")]:e}}return n.palette.mode===t?e:{}}const p=["breakpoints","palette","spacing","shape"];e.a=function(t={},...e){const{breakpoints:n={},palette:a={},spacing:f,shape:m={}}=t,g=Object(o.a)(t,p),v=s(n),b=function(t=8){if(t.mui)return t;const e=Object(c.a)({spacing:t}),n=(...t)=>(0===t.length?[1]:t).map((t=>{const n=e(t);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(f);let y=Object(i.a)({breakpoints:v,direction:"ltr",components:{},palette:Object(r.a)({mode:"light"},a),spacing:b,shape:Object(r.a)({},l,m)},g);return y.applyStyles=h,y=e.reduce(((t,e)=>Object(i.a)(t,e)),y),y.unstable_sxConfig=Object(r.a)({},d.a,null==g?void 0:g.unstable_sxConfig),y.unstable_sx=function(t){return Object(u.a)({sx:t,theme:this})},y}},,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(124);function o(t,e,n="Mui"){const o={};return e.forEach((e=>{o[e]=Object(r.a)(t,e,n)})),o}},function(t,e,n){"use strict";function r(t,e,n){const r={};return Object.keys(t).forEach((o=>{r[o]=t[o].reduce(((t,r)=>{if(r){const o=e(r);""!==o&&t.push(o),n&&n[r]&&t.push(n[r])}return t}),[]).join(" ")})),r}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(...t){return t.reduce(((t,e)=>null==e?t:function(...n){t.apply(this,n),e.apply(this,n)}),(()=>{}))}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(0);let o=0;const i=r["useId".toString()];function a(t){if(void 0!==i){const e=i();return null!=t?t:e}return function(t){const[e,n]=r.useState(t),i=t||e;return r.useEffect((()=>{null==e&&(o+=1,n(`mui-${o}`))}),[e]),i}(t)}},function(t,e,n){"use strict";n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return d})),n.d(e,"d",(function(){return h}));var r=n(123);var o=function(t,e=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,n))};function i(t,e=0,n=1){return o(t,e,n)}function a(t){if(t.type)return t;if("#"===t.charAt(0))return a(function(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&1===n[0].length&&(n=n.map((t=>t+t))),n?`rgb${4===n.length?"a":""}(${n.map(((t,e)=>e<3?parseInt(t,16):Math.round(parseInt(t,16)/255*1e3)/1e3)).join(", ")})`:""}(t));const e=t.indexOf("("),n=t.substring(0,e);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Object(r.a)(9,t));let o,i=t.substring(e+1,t.length-1);if("color"===n){if(i=i.split(" "),o=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error(Object(r.a)(10,o))}else i=i.split(",");return i=i.map((t=>parseFloat(t))),{type:n,values:i,colorSpace:o}}function s(t){const{type:e,colorSpace:n}=t;let{values:r}=t;return-1!==e.indexOf("rgb")?r=r.map(((t,e)=>e<3?parseInt(t,10):t)):-1!==e.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==e.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${e}(${r})`}function l(t){let e="hsl"===(t=a(t)).type||"hsla"===t.type?a(function(t){t=a(t);const{values:e}=t,n=e[0],r=e[1]/100,o=e[2]/100,i=r*Math.min(o,1-o),l=(t,e=(t+n/30)%12)=>o-i*Math.max(Math.min(e-3,9-e,1),-1);let c="rgb";const u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===t.type&&(c+="a",u.push(e[3])),s({type:c,values:u})}(t)).values:t.values;return e=e.map((e=>("color"!==t.type&&(e/=255),e<=.03928?e/12.92:((e+.055)/1.055)**2.4))),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function c(t,e){const n=l(t),r=l(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u(t,e){return t=a(t),e=i(e),"rgb"!==t.type&&"hsl"!==t.type||(t.type+="a"),"color"===t.type?t.values[3]=`/${e}`:t.values[3]=e,s(t)}function d(t,e){if(t=a(t),e=i(e),-1!==t.type.indexOf("hsl"))t.values[2]*=1-e;else if(-1!==t.type.indexOf("rgb")||-1!==t.type.indexOf("color"))for(let n=0;n<3;n+=1)t.values[n]*=1-e;return s(t)}function h(t,e){if(t=a(t),e=i(e),-1!==t.type.indexOf("hsl"))t.values[2]+=(100-t.values[2])*e;else if(-1!==t.type.indexOf("rgb"))for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(-1!==t.type.indexOf("color"))for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return s(t)}}])}));
184
+ `;return Eo.default.createElement("div",{style:{top:0,left:0,width:"100%",height:"100%",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",zIndex:100}},Eo.default.createElement(e,{width:"101",height:"100",viewBox:"0 0 101 100",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Eo.default.createElement("circle",{cx:"50.5",cy:"50",r:"50",fill:"#3E3E3E","fill-opacity":"0.35"}),Eo.default.createElement("path",{d:"M90.5153 49.6094C91.715 49.6094 92.6933 50.5827 92.6321 51.7808C92.1218 61.7815 88.0988 71.3096 81.2342 78.6635C73.8743 86.548 63.7963 91.3454 53.036 92.0868C42.2757 92.8282 31.6351 89.4582 23.2634 82.6576C15.455 76.3147 10.1633 67.4283 8.28624 57.5922C8.06135 56.4138 8.89694 55.3155 10.0853 55.1509C11.2737 54.9864 12.3642 55.8183 12.5959 56.9954C14.3176 65.7412 19.0487 73.6367 26.0026 79.2856C33.5201 85.3922 43.0751 88.4183 52.7374 87.7526C62.3998 87.0869 71.4494 82.7789 78.0584 75.699C84.1719 69.1497 87.7754 60.68 88.2814 51.7807C88.3495 50.5829 89.3156 49.6094 90.5153 49.6094Z",fill:"white"}),Eo.default.createElement("path",{d:"M40.7013 23.4514C40.2751 22.2667 40.8885 20.9518 42.1022 20.6166C45.5928 19.6526 49.2351 19.3251 52.8537 19.6567C57.2305 20.0577 61.4662 21.4131 65.2628 23.6273C69.0594 25.8416 72.3246 28.861 74.8286 32.4731C77.3326 36.0851 79.0146 40.2021 79.7562 44.5341C80.4978 48.8662 80.281 53.3082 79.121 57.5475C77.9611 61.7868 75.8862 65.7204 73.0423 69.0714C70.1985 72.4225 66.6548 75.1095 62.6606 76.9436C59.3583 78.4599 55.8145 79.3627 52.202 79.6146C50.9459 79.7022 49.9301 78.6662 49.9379 77.4072C49.9457 76.1481 50.9746 75.1443 52.2293 75.0398C55.1749 74.7942 58.0613 74.0382 60.758 72.8C64.1467 71.244 67.1532 68.9642 69.5659 66.1212C71.9787 63.2781 73.7391 59.9408 74.7232 56.3442C75.7073 52.7475 75.8912 48.9789 75.262 45.3035C74.6328 41.6281 73.2058 38.1353 71.0814 35.0708C68.957 32.0062 66.1867 29.4445 62.9657 27.5659C59.7446 25.6873 56.151 24.5374 52.4377 24.1972C49.4828 23.9265 46.5092 24.1737 43.6497 24.9219C42.4316 25.2406 41.1274 24.6362 40.7013 23.4514Z",fill:"white"}),Eo.default.createElement("path",{d:"M39.9232 61.6554C39.1643 62.5529 37.8105 62.673 37.0094 61.813C35.7171 60.4259 34.6502 58.8388 33.8523 57.1092C32.7564 54.7336 32.1944 52.1468 32.206 49.5307C32.2175 46.9146 32.8022 44.3328 33.9189 41.967C35.0356 39.6011 36.6573 37.5088 38.6697 35.8372C40.6822 34.1656 43.0365 32.9554 45.567 32.2916C48.0975 31.6279 50.7428 31.5268 53.3166 31.9954C55.8904 32.464 58.3303 33.4911 60.4644 35.0042C62.0183 36.1059 63.3827 37.4458 64.5093 38.9707C65.2077 39.916 64.8412 41.2247 63.8197 41.8061C62.7982 42.3875 61.5108 42.0174 60.7778 41.0986C59.9824 40.1015 59.0489 39.2181 58.0027 38.4763C56.3759 37.3229 54.5161 36.5401 52.5541 36.1828C50.5922 35.8256 48.5758 35.9027 46.6469 36.4086C44.7179 36.9146 42.9233 37.8371 41.3893 39.1113C39.8553 40.3855 38.6192 41.9804 37.7679 43.7838C36.9167 45.5872 36.471 47.5552 36.4622 49.5494C36.4534 51.5436 36.8818 53.5154 37.7172 55.3262C38.2544 56.4908 38.9515 57.5705 39.7858 58.5353C40.5545 59.4244 40.6821 60.7579 39.9232 61.6554Z",fill:"white"})))}}class ov extends Eo.default.Component{render(){return this.props.text?Eo.default.createElement("div",{style:{position:"absolute",top:this.props.top,bottom:this.props.bottom,display:"flex",width:"100%",justifyContent:"center"}},Eo.default.createElement("div",{style:{padding:"5px 10px",borderRadius:5,backgroundColor:kl.TransparentGray,color:kl.White,fontWeight:500,fontSize:13}},this.props.text)):null}}class rv extends Eo.default.Component{constructor(e){super(e),this.state={element:e.element}}style(e){this.customStyle=e,this.forceUpdate()}update(e){this.setState({element:e})}formatText(e,t){if("None"!==t)return"Text"===t?e.text:e.format+" ("+e.text+")"}render(){var e,t,n,i,o;const r=this.state.element,a=this.props.configuration.style,s=this.formatText(r.code,this.props.configuration.textFormat),c=kg.a.width(null!==(e=this.props.animateToPoints)&&void 0!==e?e:r.points);if(!s)return null;if(!r.points)return null;const l=null!==(n=null===(t=this.customStyle)||void 0===t?void 0:t.backgroundColor)&&void 0!==n?n:r.highlighted?a.highlightedTextBackgroundColor:a.textBackgroundColor,u=null!==(o=null===(i=this.customStyle)||void 0===i?void 0:i.textColor)&&void 0!==o?o:r.highlighted?a.highlightedTextColor:a.textColor;return Eo.default.createElement(Tg.div,{ref:e=>this.label=e,onClick:()=>{this.props.onClick&&this.props.onClick(r)},style:{x:kg.a.lowestX(r.points),y:kg.a.highestY(r.points)+3,backgroundColor:l,fontSize:12,width:c,overflow:"hidden",color:u,borderRadius:5,position:"absolute",padding:"3px 7px",textAlign:"center",maxHeight:50,lineBreak:"anywhere",lineHeight:"22px",WebkitLineClamp:2,display:"-webkit-box",WebkitBoxOrient:"vertical"},animate:this.props.animateToPoints?{x:kg.a.lowestX(this.props.animateToPoints),y:kg.a.highestY(this.props.animateToPoints)+30}:{}},s)}}class av{constructor(){this.defaultFillColor="rgba(255, 0, 0, 0.3)",this.defaultHighlightedFillColor="rgba(0, 255, 0, 0.3)",this.polygonStrokeColor="rgba(255, 0, 0, 1)",this.polygonFillColor=this.defaultFillColor,this.polygonStrokeWidth=1,this.polygonCornerRadius=0,this.highlightedPolygonStrokeColor="rgba(0, 255, 0, 1)",this.highlightedPolygonFillColor=this.defaultHighlightedFillColor,this.highlightedPolygonStrokeWidth=2,this.highlightedPolygonCornerRadius=0,this.textColor="white",this.textBackgroundColor="rgba(255, 0, 0, 0.9)",this.highlightedTextColor="white",this.highlightedTextBackgroundColor="rgba(0, 255, 0, 0.9)"}}class sv{constructor(){this.visible=!1,this.textFormat="Text",this.automaticSelectionEnabled=!1,this.countingRepeatDelay=-1,this.style=new av}}class cv{constructor(){this.topLabelTop=20,this.sheetHeight="95%",this.sheetTopMargin="10%"}}class lv{constructor(){this.enabled=!1,this.style=new cv}}class uv extends X.a{constructor(){super(Q.a.DEFAULT_VIDEO_RESOLUTION_HD),this.captureDelay=1e3,this.overlay=new sv,this.detectionParameters=new K.BarcodeScannerConfiguration,this.scanAndCount=new lv,this.onBarcodesDetected=function(e){}}static fromJson(e){const t=new uv;return this.mapValues(e,t,["style","videoConstraints","overlay","scanAndCount","finder","userGuidance"]),this.mapFinderConfiguration(t,e),e.overlay&&(this.mapValues(e.overlay,t.overlay,["style"]),e.overlay.style&&this.mapValues(e.overlay.style,t.overlay.style)),e.scanAndCount&&(this.mapValues(e.scanAndCount,t.scanAndCount,["style"]),e.scanAndCount.style&&this.mapValues(e.scanAndCount.style,t.scanAndCount.style)),this.mapVideoConstraints(e,t),t}}class dv{constructor(e){this.coreResult=e,this.barcodes=[],this.originalImageSize=null,this.barcodes=e.barcodes,e.originalImage&&(this.originalImageSize=new tv.a(e.originalImage.width,e.originalImage.height))}isEmpty(){return 0===this.barcodes.length}}class mv{static warn(e){console.warn("[ScanbotSDK]",e)}}class pv{static convertLinesToViewportLines(e,t){if(t&&e)return t.map((t=>({start:new kg.a(t.start.x*e.width,t.start.y*e.height),end:new kg.a(t.end.x*e.width,t.end.y*e.height)})))}static convertToViewportPointsFromParentSize(e,t){return t?tv.a.isEmpty(e)?void 0:t.map((t=>kg.a.scaleUpTo(t,e))):tv.a.toPolygon(e)}static calculateScale(e){let t,n=0,i=0;return 1>e.width/e.height?(t=e.height/1,n=(1-e.width/t)/2):(t=e.width/1,i=(1-e.height/t)/2),{x:n,y:i,containerScale:t}}static findScale(e,t){let n,i=0,o=0;return t.ratio(!0)>e.ratio(!0)?(n=e.width/t.width,o=(t.height-e.height/n)/2):(n=e.height/t.height,i=(t.width-e.width/n)/2),{x:i,y:o,scale:n}}static preventDefaultCallback(e){e.preventDefault()}static disableScreenMovement(){document.addEventListener("touchmove",pv.preventDefaultCallback,{passive:!1}),document.body.scrollTop=document.documentElement.scrollTop=0,document.documentElement.style.overflow="hidden"}static enableScreenMovement(){document.removeEventListener("touchmove",pv.preventDefaultCallback),document.documentElement.style.overflow="auto"}static findContainerOrThrow(e){var t;const n=null!==(t=e.container)&&void 0!==t?t:document.getElementById(e.containerId);if(!n)throw Error("Unable to initialize scanner: Cannot find container element either from 'container' property or with the containerId property provided.");return n}}var hv=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};Al.a;Al.b;class fv extends Al.c{constructor(e){var t;super(e),this.shouldComputeSize=!0,this.paused=!1,this.barcodeScannerHandle=null,this.barcodes=[],this.detectionRunning=!1,this.updateDimensionsCallback=this.updateDimensions.bind(this),this.backendurl=void 0,this.desiredRecognitionResolution=void 0,this.desiredRecognitionResolution=this.configuration.desiredRecognitionResolution,Object.assign(this.state,{isFinderVisible:null===(t=this.configuration.finder.visible)||void 0===t||t,zoom:void 0,action:"manual",image:void 0,bottomHintText:void 0})}get configuration(){return this._configuration||(this._configuration=uv.fromJson(this.props.configuration)),this._configuration}get enabled(){return!this.disposed}static create(e){return hv(this,void 0,void 0,(function*(){const t=pv.findContainerOrThrow(e);return new Promise(((n,i)=>{Object(Eo.render)(Eo.default.createElement(fv,{container:t,configuration:e,onSuccess:n,onFailure:i}),t)}))}))}isDetectionPaused(){return this.paused}resumeDetection(){return hv(this,void 0,void 0,(function*(){mv.warn("Barcode detection resumed"),yield this.resume()}))}pauseDetection(){mv.warn("Barcode detection paused"),this.pause()}componentDidMount(){const e=Object.create(null,{componentDidMount:{get:()=>super.componentDidMount}});return hv(this,void 0,void 0,(function*(){e.componentDidMount.call(this),window.addEventListener("resize",this.updateDimensionsCallback),yield this.resume()}))}componentWillUnmount(){super.componentWillUnmount(),this.pause(),window.removeEventListener("resize",this.updateDimensionsCallback),this.barcodeScannerHandle&&this.bridge.copyArgs.releaseObject(this.barcodeScannerHandle).catch((e=>{var t,n;return null===(n=(t=this.props.configuration).onError)||void 0===n?void 0:n.call(t,e)}))}updateDimensions(){return hv(this,void 0,void 0,(function*(){this.shouldComputeSize=!0,this.forceUpdate()}))}resume(){return hv(this,void 0,void 0,(function*(){this.paused=!1,yield this.detect()}))}pause(){this.paused=!0}detect(){var e,t,n,i,o;return hv(this,void 0,void 0,(function*(){if(!this.enabled)return;if(this.paused)return;if(null===(e=this.configuration.scanAndCount)||void 0===e?void 0:e.enabled)return;if(this.detectionRunning)return;let r=!1;try{this.detectionRunning=!0;const e=yield this.recognizeBarcodes(!0,this.shouldComputeSize);if(this.shouldComputeSize=!1,!e)return;const a=new dv(e);a.isEmpty()?this.configuration._onDetectionFailed&&(null===(t=this.configuration)||void 0===t||t._onDetectionFailed(e.originalImage)):(r=!0,this.configuration.overlay.visible||this.configuration.onBarcodesDetected(a)),null===(n=this.overlay)||void 0===n||n.update(null===(i=this.finder)||void 0===i?void 0:i.holeRect,this.camera,a.originalImageSize,a.barcodes)}catch(e){console.log(e)}finally{this.detectionRunning=!1;const e=()=>requestAnimationFrame((()=>this.detect())),t=(null===(o=this.configuration.overlay)||void 0===o?void 0:o.visible)?0:this.configuration.captureDelay;r&&0!=t?setTimeout(e,t):e()}}))}setUseBackendService(e){console.log("Now using backend service for recognition: ",e),this.backendurl=e}recognizeBarcodes(e,t){var n,i,o,r,a,s,c,l;return hv(this,void 0,void 0,(function*(){try{window&&window.__SB_DEBUG_BARCODESCANNER_FORCE_DETERMINISTIC_MODE&&(e=!1);const c=e?Al.c.DEFAULT_DETECTION_RESOLUTION:Al.c.DETECTION_RESULTION_4K,l=null!==(n=this.desiredRecognitionResolution)&&void 0!==n?n:c;this.camera.finderFrame=null===(i=this.finder)||void 0===i?void 0:i.holeRect;const u=yield null===(o=this.camera)||void 0===o?void 0:o.createImageData(l,!1);if(!u)return;t&&this.forceUpdate(),(null===(r=this.configuration.scanAndCount)||void 0===r?void 0:r.enabled)&&(this.setState({image:W.wrapperToBase64(u)}),void 0!==this.desiredRecognitionResolution?console.log("Recognizing barcodes with custom resolution:",this.desiredRecognitionResolution):console.log("Recognizing barcodes with max resolution:",Al.c.DETECTION_RESULTION_4K,"(the actual resolution depends on your device and may be lower)"));new tv.a(u.width,u.height);this.barcodeScannerHandle||(this.barcodeScannerHandle=yield this.bridge.copyArgs.createBarcodeScanner(new K.BarcodeScannerConfiguration(Object.assign(Object.assign({},this.configuration.detectionParameters),{live:e}))));const d=yield this.bridge.transferArgs.scanBarcodes(this.barcodeScannerHandle,u);if(!this.enabled)return;return null===d?void(null===(s=(a=this.props).onLicenseError)||void 0===s||s.call(a)):(this.camera.reusableImageBuffer=d.originalImage.data,d)}catch(e){return void(null===(l=(c=this.props.configuration).onError)||void 0===l||l.call(c,e))}}))}setRecognitionResolution(e){this.desiredRecognitionResolution=e}getResolution(){return hv(this,void 0,void 0,(function*(){return new Promise(((e,t)=>{const n=this.camera.videoSize();n.width>0&&n.height>0?e(tv.a.fromJson(n)):this.camera.didLoadVideo=()=>{const t=this.camera.videoSize();e(tv.a.fromJson(t))}}))}))}saveExtractedImageData(){this.camera.saveExtractedData()}setFinderVisible(e){this.setState({isFinderVisible:e})}setZoom(e){this.setState({zoom:e})}setCameraDirection(e){this.camera.setDirection(e)}updateTorch(e){this.camera.videoStream.updateTorch(e)}getCapabilities(){return this.camera.videoStream.getCapabilities()}render(){var e,t,n,i,o,r,a;const s=(null===(e=this.configuration.scanAndCount)||void 0===e?void 0:e.enabled)?"Tap the shutter button to scan":void 0;return Eo.default.createElement("div",{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"black",minHeight:"100px"}},this.renderSpinner(null===(t=this.configuration)||void 0===t?void 0:t.spinnerColor),Eo.default.createElement("div",{style:{position:"absolute",width:"100%",height:"100%"}},Eo.default.createElement(Sl.a,{configuration:this.configuration,videoConstraints:this.configuration.videoConstraints,mirrored:this.configuration.mirrored,preferredCamera:this.configuration.preferredCamera,zoom:null!==(n=this.state.zoom)&&void 0!==n?n:this.configuration.zoom,onReady:this.onVideoReady,onError:this.onVideoError,ref:e=>{this.camera=e}})),Eo.default.createElement(ov,{top:null===(i=this.configuration.scanAndCount)||void 0===i?void 0:i.style.topLabelTop,text:s}),Eo.default.createElement(nv,{ref:e=>this.scannedImage=e,image:this.state.image}),this.state.isFinderVisible&&Eo.default.createElement(wl.a,{ref:e=>{this.finder=e},padding:this.props.viewFinderPadding,guidanceConfiguration:this.configuration.userGuidance,configuration:this.configuration.finder}),Eo.default.createElement(ov,{bottom:100,text:this.state.bottomHintText}),Eo.default.createElement(iv,{visible:"processing"===this.state.action}),(null===(o=this.configuration.overlay)||void 0===o?void 0:o.visible)&&Eo.default.createElement(zg,{ref:e=>{e&&(this.overlay=e)},configuration:this.configuration.overlay,onPolygonSelected:e=>{const t=new dv({barcodes:[e]});this.configuration.onBarcodesDetected(t)},onBarcodeFound:(e,t,n)=>{var i;(null===(i=this.configuration.overlay)||void 0===i?void 0:i.onBarcodeFound)&&this.configuration.overlay.onBarcodeFound(e,t,n)},LabelComponent:rv,labelComponentConfig:{}}),(null===(r=this.configuration.scanAndCount)||void 0===r?void 0:r.enabled)&&Eo.default.createElement(Jg,{ref:e=>this.bottomActionBar=e,action:this.state.action,isShowingImage:void 0!==this.state.image,onBurgerClick:()=>{this.popup.push(Bl.PushBottom,this.barcodes)},onShutterButtonClick:()=>hv(this,void 0,void 0,(function*(){(new z).flash(),this.setState({action:"processing"});const e=(new Date).getTime();let t=yield this.recognizeBarcodes(!1,!1);const n=new dv(null!=t?t:{barcodes:[]});console.log("Recognition took:",((new Date).getTime()-e)/1e3);const i=this.countLabelText(n.barcodes);this.setState({action:"manual",bottomHintText:i}),this.scannedImage.update(n),this.barcodes.push(...n.barcodes),this.bottomActionBar.update(this.barcodes),n.barcodes.length>0&&this.configuration.onBarcodesDetected(n)})),onScanMoreClick:()=>{this.resetCountImage()}}),Eo.default.createElement(Il,{ref:e=>this.popup=e,style:null===(a=this.configuration.scanAndCount)||void 0===a?void 0:a.style,onDeleteClick:()=>{if(confirm("Are you sure you want to delete all scanned barcodes?")){for(;this.barcodes.length>0;)this.barcodes.pop();console.log("Cleared barcodes",this.barcodes.length),this.popup.update(this.barcodes),this.bottomActionBar.update(void 0),this.resetCountImage(),this.popup.reset()}}}))}resetCountImage(){this.scannedImage.reset(),this.setState({image:void 0,bottomHintText:void 0})}countLabelText(e){return 0==e.length?"No codes scanned. Try again?":1==e.length?"1 Code Scanned":`${e.length} Codes Scanned`}}var gv=n(76),vv=Object(gv.a)(Object(Lo.jsx)("path",{d:"M6 2h12v3H6zm0 5v1l2 3v11h8V11l2-3V7zm6 8.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5"}),"FlashlightOn"),bv=Object(gv.a)(Object(Lo.jsx)("path",{d:"M18 5V2H6v1.17L7.83 5zm-2 6 2-3V7H9.83L16 13.17zM2.81 2.81 1.39 4.22 8 10.83V22h8v-3.17l3.78 3.78 1.41-1.41z"}),"FlashlightOff"),yv=Object(gv.a)(Object(Lo.jsx)("path",{d:"M20 5h-3.17L15 3H9L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m-8 13c-2.76 0-5-2.24-5-5H5l2.5-2.5L10 13H8c0 2.21 1.79 4 4 4 .58 0 1.13-.13 1.62-.35l.74.74c-.71.37-1.5.61-2.36.61m4.5-2.5L14 13h2c0-2.21-1.79-4-4-4-.58 0-1.13.13-1.62.35l-.74-.73C10.35 8.24 11.14 8 12 8c2.76 0 5 2.24 5 5h2z"}),"FlipCameraIos");function Cv(e,t){return e&&(e.hasFacingOptions&&t.flipCameraButton.visible||e.isTorchAvailable&&t.flashButton.visible)||t.zoomButton.visible}function Av(e){const t=e.zoomSteps.findIndex((t=>t==e.defaultZoomFactor)),[n,i]=Object(Eo.useState)(e.torchEnabledInitially),[o,r]=Object(Eo.useState)(t),a=e.zoomSteps[o],[s,c]=Object(Eo.useState)("BACK"==e.initialCameraModule?"environment":"user"),l=function(e){var t,n;const i=null===(n=null===(t=null==e?void 0:e.camera)||void 0===t?void 0:t.video)||void 0===n?void 0:n.parentElement,o=()=>i?i.getBoundingClientRect():null,[r,a]=Object(Eo.useState)(o());return Object(Eo.useEffect)((()=>{if(i){const e=()=>a(o());e();const t=new ResizeObserver(e);return t.observe(i),()=>{t.disconnect()}}}),[i]),r}(e.scanner),u=!!l;if(Object(Eo.useEffect)((()=>{var t;(null===(t=e.capabilities)||void 0===t?void 0:t.isTorchAvailable)&&u&&e.scanner.setTorchState(n)}),[e.capabilities,u,n]),Object(Eo.useEffect)((()=>{var t;u&&(null===(t=e.scanner)||void 0===t||t.setZoom(a))}),[u,a]),!e.capabilities||!l)return null;if(!Cv(e.capabilities,e.config))return null;const d=l.height-e.bottomPadding-48;return Eo.default.createElement(ir,{style:{position:"absolute",marginTop:d,marginLeft:l.width/2,transform:"translateX(-50%)",display:"flex",justifyContent:"center",zIndex:1e3}},Eo.default.createElement(fl,Object.assign({},e.config.flashButton,{visible:e.capabilities.isTorchAvailable&&e.config.flashButton.visible,icon:n?vv:bv,active:n,onClick:()=>i(!n)})),Eo.default.createElement("div",{style:{width:20}}),Eo.default.createElement(fl,Object.assign({},e.config.zoomButton,{text:`${a.toFixed(1)}x`,active:o!==t,onClick:()=>r((o+1)%e.zoomSteps.length)})),Eo.default.createElement("div",{style:{width:20}}),Eo.default.createElement(fl,Object.assign({},e.config.flipCameraButton,{visible:e.capabilities.hasFacingOptions&&e.config.flipCameraButton.visible,active:"user"===s,icon:yv,onClick:()=>{var t;const n="environment"===s?"user":"environment";c(n),null===(t=e.scanner)||void 0===t||t.setCameraDirection(n)}})))}const Sv=Object(Eo.createContext)(null);class wv{static compute(e,t,n){const i=(kg.a.lowestY(e)+kg.a.highestY(e))/2,o={badgeY:i,badgeStyle:{transform:"translateX(-50%) translateY(-50%)"}};return"BELOW"===n?Object.assign(Object.assign({},o),{labelY:Math.max(kg.a.highestY(e)+wv.LABEL_AND_BADGE_PADDING,t?i-wv.AR_BADGE_SIZE/2-wv.LABEL_AND_BADGE_PADDING:-1/0),labelStyle:{transform:"translateX(-50%)"}}):"ABOVE"===n?Object.assign(Object.assign({},o),{labelY:Math.min(kg.a.lowestY(e)-wv.LABEL_AND_BADGE_PADDING,t.visible?i+wv.AR_BADGE_SIZE/2+wv.LABEL_AND_BADGE_PADDING:1/0),labelStyle:{transform:"translateX(-50%) translateY(-100%)"}}):"STACKED"===n?{badgeY:i,badgeStyle:{transform:`translateX(-50%) translateY(calc(-100% - ${wv.LABEL_AND_BADGE_PADDING/2}px))`},labelY:i,labelStyle:{transform:t.visible?`translateX(-50%) translateY(${wv.LABEL_AND_BADGE_PADDING/2}px)`:"translateX(-50%) translateY(-50%)"}}:"DISABLED"===n?Object.assign(Object.assign({},o),{labelY:0,labelStyle:{display:"none"}}):void 0}}wv.AR_BADGE_SIZE=48,wv.LABEL_AND_BADGE_PADDING=10;var xv=wv;function Ev(e){return e.style.visible?""==e.content?null:Eo.default.createElement(Tg.div,{style:Object.assign({position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",zIndex:100},e.positionBadge),animate:e.animateToPoints?e.positionBadge:{},transition:e.transition},Eo.default.createElement(Da,{styleConfig:Object.assign(Object.assign({},e.style.background),{cornerRadius:xv.AR_BADGE_SIZE/2}),style:Object.assign(Object.assign({},e.verticalPositions.badgeStyle),{width:xv.AR_BADGE_SIZE,height:xv.AR_BADGE_SIZE,color:or.b.getColorValue(e.style.foregroundColor),display:"flex",justifyContent:"center",alignItems:"center",zIndex:1500,cursor:"pointer"}),onClick:()=>null==e?void 0:e.onClick()},Eo.default.createElement(kr,{fontSize:16,fontWeight:"500",style:{display:"flex",justifyContent:"center",alignItems:"center"}},e.content))):null}var Ov=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n};class Dv extends rv{constructor(){super(...arguments),this.count=0,this.setCount=e=>{this.count=e,this.forceUpdate()}}styleBadge(e,t){this.customBadgeStyle=e,this.customBadgeContent=t,this.forceUpdate()}badgeContent(){return this.customBadgeContent?this.customBadgeContent:0===this.count?"":"x"+this.count}render(){var e,t;let{barcodeItemConfiguration:n,barcodeItemInfoPosition:i,counterBadge:o}=this.props;const r=n,a=this.state.element,s=null!==(e=this.props.animateToPoints)&&void 0!==e?e:a.points,c=a.code,l=a.highlighted,u=(kg.a.lowestX(s)+kg.a.highestX(s))/2;void 0===i&&(i="BELOW");const d=xv.compute(s,o,i),m=void 0===r||!1===r.titleDeselected.visible&&!1===r.subtitleDeselected.visible,p={x:u,y:Math.round(d.labelY)},h={x:u,y:Math.round(d.badgeY)},f={duration:.25,easing:"linear"};return Eo.default.createElement(Eo.default.Fragment,null,r&&Eo.default.createElement(Tg.div,{ref:e=>this.label=e,style:Object.assign(Object.assign({},p),{position:"absolute",width:"100%",zIndex:100}),animate:this.props.animateToPoints?p:{},transition:f},Eo.default.createElement(Da,{sx:Object.assign({p:1,maxWidth:232,cursor:"pointer",display:m?"inline-block":"block",zIndex:1500},d.labelStyle),styleConfig:l?r.backgroundSelected:r.backgroundDeselected,"data-sb-ar-barcode-info":"1",onClick:()=>{var e;return null===(e=this.props)||void 0===e?void 0:e.onClick(a)}},Eo.default.createElement(Tv,{barcode:c,barcodeImageVisible:r.imageVisible,maxNumberOfTitleLines:1,maxNumberOfSubtitleLines:1,imageSize:42,displayRightArrow:!0,barcodeTitle:l?r.titleSelected:r.titleDeselected,barcodeSubtitle:l?r.subtitleSelected:r.subtitleDeselected}))),Eo.default.createElement(Ev,{onClick:()=>{var e;return null===(e=this.props)||void 0===e?void 0:e.onClick(a)},style:null!==(t=this.customBadgeStyle)&&void 0!==t?t:o,positionBadge:h,content:this.badgeContent(),verticalPositions:d,transition:f,animateToPoints:this.props.animateToPoints}))}}function Tv(e){var{barcode:t}=e,n=Ov(e,["barcode"]);const i=Object(Eo.useContext)(Sv).useBarcodeMappedData(t);return Eo.default.createElement(js,Object.assign({barcodeMappedData:i},n))}var Bv=n(22);function kv(e){const t=Object(Eo.useRef)(),n=Object(Eo.useRef)(null),[i,o]=(Object(Eo.useContext)(Na),Object(Eo.useState)(void 0)),[r,a]=Object(Eo.useState)(!1);Object(Eo.useEffect)((()=>{var n,i;e.scanningPaused?null===(n=t.current)||void 0===n||n.pause():null===(i=t.current)||void 0===i||i.resume()}),[e.scanningPaused]);const s=function(e){const t=new sv;t.visible=e.visible;const n=e.polygon instanceof Bv.c,i=e.polygon,o=e,r=n?i.selected:o.polygon.partiallyScanned,a=n?i.deselected:o.polygon.partiallyScanned;return e.polygon.visible?(t.style.highlightedPolygonFillColor=or.b.getColorValue(r.fillColor),t.style.highlightedPolygonStrokeColor=or.b.getColorValue(r.strokeColor),t.style.highlightedPolygonStrokeWidth=r.strokeWidth,t.style.highlightedPolygonCornerRadius=r.cornerRadius,t.style.polygonFillColor=or.b.getColorValue(a.fillColor),t.style.polygonStrokeColor=or.b.getColorValue(a.strokeColor),t.style.polygonStrokeWidth=a.strokeWidth,t.style.polygonCornerRadius=a.cornerRadius):(t.style.highlightedPolygonFillColor="transparent",t.style.highlightedPolygonStrokeColor="transparent",t.style.polygonFillColor="transparent",t.style.polygonStrokeColor="transparent"),t.automaticSelectionEnabled=!1,t}(e.arOverlay),c=Object.assign(Object.assign({},e.barcodeScannerViewConfig),{onBarcodesDetected:i=>{var o,r,a,s,c,l;null===(o=n.current)||void 0===o||o.update(null===(a=null===(r=t.current)||void 0===r?void 0:r.finder)||void 0===a?void 0:a.holeRect,null===(s=t.current)||void 0===s?void 0:s.camera,i.originalImageSize,i.barcodes),null===(l=(c=e.barcodeScannerViewConfig).onBarcodesDetected)||void 0===l||l.call(c,i)},_onDetectionFailed:i=>{var o,r,a,s,c,l;null===(o=n.current)||void 0===o||o.update(null===(a=null===(r=t.current)||void 0===r?void 0:r.finder)||void 0===a?void 0:a.holeRect,null===(s=t.current)||void 0===s?void 0:s.camera,new tv.a(i.width,i.height),[]),null===(l=(c=e.barcodeScannerViewConfig)._onDetectionFailed)||void 0===l||l.call(c,i)}});return Object(Eo.useEffect)((()=>{const t=Cv(i,e.actionBarConfig);e.setActionButtonsVisible(t),a(t)}),[i,e.actionBarConfig]),Eo.default.createElement(Eo.default.Fragment,null,e.arOverlay.visible&&Eo.default.createElement(zg,{style:{zIndex:1e3,position:"absolute"},ref:n,LabelComponent:Dv,labelComponentConfig:e.arOverlay,onBarcodeFound:e.arOnBarcodeEnter,onPolygonClick:e.arOnBarcodeClick,configuration:s}),Eo.default.createElement(Av,{config:e.actionBarConfig,scanner:t.current,capabilities:i,bottomPadding:e.actionBarBottomPadding,torchEnabledInitially:e.cameraConfiguration.flashEnabled,zoomSteps:e.cameraConfiguration.zoomSteps,defaultZoomFactor:e.cameraConfiguration.defaultZoomFactor,initialCameraModule:e.cameraConfiguration.cameraModule}),Eo.default.createElement(fv,{ref:t,viewFinderPadding:e.viewFinderPadding,configuration:c,onSuccess:()=>class{static setFromScanner(e,t){var n;if(!e.current)return;const i=e.current.getCapabilities();t({hasFacingOptions:(null==i?void 0:i.facingMode)&&i.facingMode.length>0,isTorchAvailable:null!==(n=e.current.getActiveCameraInfo().supportsTorchControl)&&void 0!==n&&n})}}.setFromScanner(t,o),onFailure:e.onCameraPermissionDenied,onLicenseError:e.onLicenseError}))}function Iv(e){return Object(Eo.useMemo)((()=>{const t=(new uv).videoConstraints;return t.width.ideal=e.cameraConfiguration.idealPreviewResolution.width,t.height.ideal=e.cameraConfiguration.idealPreviewResolution.height,t.facingMode="FRONT"===e.cameraConfiguration.cameraModule?"user":"environment",{videoConstraints:t,backgroundColor:or.b.getColorValue(e.backgroundColor),userGuidance:e.userGuidance,finder:e.viewFinder,detectionParameters:new K.BarcodeScannerConfiguration({live:!0,engineMode:e.recognizerConfiguration.engineMode,barcodeFormatConfigurations:[new q.BarcodeFormatCommonConfiguration({formats:e.recognizerConfiguration.barcodeFormats.length>0?e.recognizerConfiguration.barcodeFormats:void 0,regexFilter:e.recognizerConfiguration.barcodesRegexFilter,gs1Handling:e.recognizerConfiguration.gs1Handling})]}),desiredRecognitionResolution:e.recognizerConfiguration.maximumRecognizerResolution}}),[e])}var Pv=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};function Lv(e){const[t,n]=Object(Eo.useState)(null),[i,o]=Object(Eo.useState)(!0),r=Object(Eo.useMemo)((()=>"__sb_"+Math.random()),[]),a=e.barcodeMapper,s=e.configuration.useCase,c=Object.assign(Object.assign({},Iv(e.configuration)),{onBarcodesDetected:t=>{t.barcodes.length>0&&!s.arOverlay.visible&&e.scanningEnabled.current&&n(t.barcodes[0])},onError:e.onError,containerId:r,captureDelay:0}),l=n=>Pv(this,void 0,void 0,(function*(){let i;i=null===t?[]:[new Do.BarcodeScannerUIItem({count:1,barcode:n})];const o={items:i};e.onSubmit(o)}));Object(Eo.useEffect)((()=>{t&&(bl.INSTANCE.beep(e.configuration.sound),Cl.INSTANCE.vibrate(e.configuration.vibration))}),[t]),Object(Eo.useEffect)((()=>{null===t||s.confirmationSheetEnabled||l(t)}),[t,s.confirmationSheetEnabled]);const u=a.useBarcodeMappedData(t);Object(Eo.useEffect)((()=>{"FAILED"===(null==u?void 0:u.state)&&n(null)}),[null==u?void 0:u.state]);const d=Object(Eo.useContext)(Na);return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(Sv.Provider,{value:e.barcodeMapper},Eo.default.createElement(pl,Object.assign({open:!!u&&["LOADED","LOADING"].includes(u.state)&&s.confirmationSheetEnabled,handleCancel:()=>{n(null)},handleSubmit:()=>{l(t)},barcodeMappedData:u},{sheetColorLoaded:(m=s).sheetColor,sheetColorLoading:m.barcodeInfoMapping.sheetColor,barcodeImageVisible:m.barcodeImageVisible,barcodeTitle:m.barcodeTitle,barcodeSubtitle:m.barcodeSubtitle,cancelButton:m.cancelButton,submitButton:m.submitButton,dividerColor:m.dividerColor,loadingMessage:m.barcodeInfoMapping.loadingMessage},{displayRightArrow:!1,modalOverlayColor:s.modalOverlayColor})),Eo.default.createElement(ir,{id:r,sx:{width:"100%",height:d.remainingVisibleBodyHeight}},Eo.default.createElement(kv,{cameraConfiguration:e.configuration.cameraConfiguration,scanningPaused:null!==t,setActionButtonsVisible:o,viewFinderPadding:{minTopPadding:d.minTopPaddingForViewFinder,minBottomPadding:i?80:0},barcodeScannerViewConfig:c,arOnBarcodeClick:e=>n(e),arOnBarcodeEnter:t=>{s.arOverlay.automaticSelectionEnabled&&e.scanningEnabled.current&&n(t)},arOverlay:Object.assign(Object.assign({},s.arOverlay),{counterBadge:Object.assign(Object.assign({},s.arOverlay.counterBadge),{visible:!1})}),containerId:r,actionBarConfig:e.configuration.actionBar,actionBarBottomPadding:16,onCameraPermissionDenied:e.onCameraPermissionDenied,onLicenseError:e.onError}))));var m}var Rv=Object(gv.a)(Object(Lo.jsx)("path",{d:"M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74m9.84 4.63-4.54-2.26c-.17-.07-.35-.11-.54-.11H13v-6c0-.83-.67-1.5-1.5-1.5S10 6.67 10 7.5v10.74c-3.6-.76-3.54-.75-3.67-.75-.31 0-.59.13-.79.33l-.79.8 4.94 4.94c.27.27.65.44 1.06.44h6.79c.75 0 1.33-.55 1.44-1.28l.75-5.27c.01-.07.02-.14.02-.2 0-.62-.38-1.16-.91-1.38"}),"TouchApp"),_v=Object(gv.a)(Object(Lo.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),jv=Object(gv.a)(Object(Lo.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Mv=n(154);function Fv(e){const{children:t,defer:n=!1,fallback:i=null}=e,[o,r]=Eo.useState(!1);return Object(kc.a)((()=>{n||r(!0)}),[n]),Eo.useEffect((()=>{n&&r(!0)}),[n]),Object(Lo.jsx)(Eo.Fragment,{children:o?t:i})}var Nv=n(64),Vv=n(52);const Wv=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function zv(e,t,n){var i;const o=function(e,t,n){const i=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),r=Object(Vv.a)(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const e=r.getComputedStyle(t);a=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let s=0,c=0;if(a&&"none"!==a&&"string"==typeof a){const e=a.split("(")[1].split(")")[0].split(",");s=parseInt(e[4],10),c=parseInt(e[5],10)}return"left"===e?o?`translateX(${o.right+s-i.left}px)`:`translateX(${r.innerWidth+s-i.left}px)`:"right"===e?o?`translateX(-${i.right-o.left-s}px)`:`translateX(-${i.left+i.width-s}px)`:"up"===e?o?`translateY(${o.bottom+c-i.top}px)`:`translateY(${r.innerHeight+c-i.top}px)`:o?`translateY(-${i.top-o.top+i.height-c}px)`:`translateY(-${i.top+i.height-c}px)`}(e,t,"function"==typeof(i=n)?i():i);o&&(t.style.webkitTransform=o,t.style.transform=o)}var Hv=Eo.forwardRef((function(e,t){const n=Ns(),i={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:r,appear:a=!0,children:s,container:c,direction:l="down",easing:u=i,in:d,onEnter:m,onEntered:p,onEntering:h,onExit:f,onExited:g,onExiting:v,style:b,timeout:y=o,TransitionComponent:C=Wc}=e,A=Object(Bo.a)(e,Wv),S=Eo.useRef(null),w=Object(Fr.a)(s.ref,S,t),x=e=>t=>{e&&(void 0===t?e(S.current):e(S.current,t))},E=x(((e,t)=>{zv(l,e,c),zc(e),m&&m(e,t)})),O=x(((e,t)=>{const i=Hc({timeout:y,style:b,easing:u},{mode:"enter"});e.style.webkitTransition=n.transitions.create("-webkit-transform",Object(To.a)({},i)),e.style.transition=n.transitions.create("transform",Object(To.a)({},i)),e.style.webkitTransform="none",e.style.transform="none",h&&h(e,t)})),D=x(p),T=x(v),B=x((e=>{const t=Hc({timeout:y,style:b,easing:u},{mode:"exit"});e.style.webkitTransition=n.transitions.create("-webkit-transform",t),e.style.transition=n.transitions.create("transform",t),zv(l,e,c),f&&f(e)})),k=x((e=>{e.style.webkitTransition="",e.style.transition="",g&&g(e)})),I=Eo.useCallback((()=>{S.current&&zv(l,S.current,c)}),[l,c]);return Eo.useEffect((()=>{if(d||"down"===l||"right"===l)return;const e=Object(Nv.a)((()=>{S.current&&zv(l,S.current,c)})),t=Object(Vv.a)(S.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,d,c]),Eo.useEffect((()=>{d||I()}),[d,I]),Object(Lo.jsx)(C,Object(To.a)({nodeRef:S,onEnter:E,onEntered:D,onEntering:O,onExit:B,onExited:k,onExiting:T,addEndListener:e=>{r&&r(S.current,e)},appear:a,in:d,timeout:y},A,{children:(e,t)=>Eo.cloneElement(s,Object(To.a)({ref:w,style:Object(To.a)({visibility:"exited"!==e||d?void 0:"hidden"},b,s.props.style)},t))}))}));function Uv(e){return Object(dr.a)("MuiDrawer",e)}Object(er.a)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Zv=["BackdropProps"],Gv=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],$v=(e,t)=>{const{ownerState:n}=e;return[t.root,("permanent"===n.variant||"persistent"===n.variant)&&t.docked,t.modal]},Yv=Object(ar.a)(tl,{name:"MuiDrawer",slot:"Root",overridesResolver:$v})((({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),Qv=Object(ar.a)("div",{shouldForwardProp:ar.b,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:$v})({flex:"0 0 auto"}),Xv=Object(ar.a)(fr,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Object(cr.a)(n.anchor)}`],"temporary"!==n.variant&&t[`paperAnchorDocked${Object(cr.a)(n.anchor)}`]]}})((({theme:e,ownerState:t})=>Object(To.a)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===t.anchor&&{left:0},"top"===t.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===t.anchor&&{right:0},"bottom"===t.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===t.anchor&&"temporary"!==t.variant&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},"top"===t.anchor&&"temporary"!==t.variant&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},"right"===t.anchor&&"temporary"!==t.variant&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"bottom"===t.anchor&&"temporary"!==t.variant&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`}))),qv={left:"right",right:"left",top:"down",bottom:"up"};function Kv(e){return-1!==["left","right"].indexOf(e)}function Jv(e,t){return"rtl"===e.direction&&Kv(t)?qv[t]:t}var eb=Eo.forwardRef((function(e,t){const n=Object(sr.a)({props:e,name:"MuiDrawer"}),i=Ns(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:r="left",BackdropProps:a,children:s,className:c,elevation:l=16,hideBackdrop:u=!1,ModalProps:{BackdropProps:d}={},onClose:m,open:p=!1,PaperProps:h={},SlideProps:f,TransitionComponent:g=Hv,transitionDuration:v=o,variant:b="temporary"}=n,y=Object(Bo.a)(n.ModalProps,Zv),C=Object(Bo.a)(n,Gv),A=Eo.useRef(!1);Eo.useEffect((()=>{A.current=!0}),[]);const S=Jv(i,r),w=r,x=Object(To.a)({},n,{anchor:w,elevation:l,open:p,variant:b},C),E=(e=>{const{classes:t,anchor:n,variant:i}=e,o={root:["root"],docked:[("permanent"===i||"persistent"===i)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Object(cr.a)(n)}`,"temporary"!==i&&`paperAnchorDocked${Object(cr.a)(n)}`]};return Object(rr.a)(o,Uv,t)})(x),O=Object(Lo.jsx)(Xv,Object(To.a)({elevation:"temporary"===b?l:0,square:!0},h,{className:Object(Ho.a)(E.paper,h.className),ownerState:x,children:s}));if("permanent"===b)return Object(Lo.jsx)(Qv,Object(To.a)({className:Object(Ho.a)(E.root,E.docked,c),ownerState:x,ref:t},C,{children:O}));const D=Object(Lo.jsx)(g,Object(To.a)({in:p,direction:qv[S],timeout:v,appear:A.current},f,{children:O}));return"persistent"===b?Object(Lo.jsx)(Qv,Object(To.a)({className:Object(Ho.a)(E.root,E.docked,c),ownerState:x,ref:t},C,{children:D})):Object(Lo.jsx)(Yv,Object(To.a)({BackdropProps:Object(To.a)({},a,d,{transitionDuration:v}),className:Object(Ho.a)(E.root,E.modal,c),open:p,ownerState:x,onClose:m,hideBackdrop:u,ref:t},C,y,{children:D}))})),tb=n(40),nb=n(44);const ib=["anchor","classes","className","width","style"],ob=Object(ar.a)("div",{shouldForwardProp:ar.b})((({theme:e,ownerState:t})=>Object(To.a)({position:"fixed",top:0,left:0,bottom:0,zIndex:e.zIndex.drawer-1},"left"===t.anchor&&{right:"auto"},"right"===t.anchor&&{left:"auto",right:0},"top"===t.anchor&&{bottom:"auto",right:0},"bottom"===t.anchor&&{top:"auto",bottom:0,right:0})));var rb=Eo.forwardRef((function(e,t){const{anchor:n,classes:i={},className:o,width:r,style:a}=e,s=Object(Bo.a)(e,ib),c=e;return Object(Lo.jsx)(ob,Object(To.a)({className:Object(Ho.a)("PrivateSwipeArea-root",i.root,i[`anchor${Object(cr.a)(n)}`],o),ref:t,style:Object(To.a)({[Kv(n)?"width":"height"]:r},a),ownerState:c},s))}));const ab=["BackdropProps"],sb=["anchor","disableBackdropTransition","disableDiscovery","disableSwipeToOpen","hideBackdrop","hysteresis","allowSwipeInChildren","minFlingVelocity","ModalProps","onClose","onOpen","open","PaperProps","SwipeAreaProps","swipeAreaWidth","transitionDuration","variant"];let cb=null;function lb(e,t,n){return"right"===e?n.body.offsetWidth-t[0].pageX:t[0].pageX}function ub(e,t,n){return"bottom"===e?n.innerHeight-t[0].clientY:t[0].clientY}function db(e,t){return e?t.clientWidth:t.clientHeight}function mb(e,t,n,i){return Math.min(Math.max(n?t-e:i+t-e,0),i)}const pb="undefined"!=typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent);var hb=Eo.forwardRef((function(e,t){const n=Object(Mv.a)({name:"MuiSwipeableDrawer",props:e}),i=Ns(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:r="left",disableBackdropTransition:a=!1,disableDiscovery:s=!1,disableSwipeToOpen:c=pb,hideBackdrop:l,hysteresis:u=.52,allowSwipeInChildren:d=!1,minFlingVelocity:m=450,ModalProps:{BackdropProps:p}={},onClose:h,onOpen:f,open:g=!1,PaperProps:v={},SwipeAreaProps:b,swipeAreaWidth:y=20,transitionDuration:C=o,variant:A="temporary"}=n,S=Object(Bo.a)(n.ModalProps,ab),w=Object(Bo.a)(n,sb),[x,E]=Eo.useState(!1),O=Eo.useRef({isSwiping:null}),D=Eo.useRef(),T=Eo.useRef(),B=Eo.useRef(),k=Object(Fr.a)(v.ref,B),I=Eo.useRef(!1),P=Eo.useRef();Object(nb.a)((()=>{P.current=null}),[g]);const L=Eo.useCallback(((e,t={})=>{const{mode:n=null,changeTransition:o=!0}=t,s=Jv(i,r),c=-1!==["right","bottom"].indexOf(s)?1:-1,u=Kv(r),d=u?`translate(${c*e}px, 0)`:`translate(0, ${c*e}px)`,m=B.current.style;m.webkitTransform=d,m.transform=d;let p="";if(n&&(p=i.transitions.create("all",Hc({easing:void 0,style:void 0,timeout:C},{mode:n}))),o&&(m.webkitTransition=p,m.transition=p),!a&&!l){const t=T.current.style;t.opacity=1-e/db(u,B.current),o&&(t.webkitTransition=p,t.transition=p)}}),[r,a,l,i,C]),R=Object(Nr.a)((e=>{if(!I.current)return;if(cb=null,I.current=!1,Eo.flushSync((()=>{E(!1)})),!O.current.isSwiping)return void(O.current.isSwiping=null);O.current.isSwiping=null;const t=Jv(i,r),n=Kv(r);let o;o=n?lb(t,e.changedTouches,Object(tb.a)(e.currentTarget)):ub(t,e.changedTouches,Object(Vv.a)(e.currentTarget));const a=n?O.current.startX:O.current.startY,s=db(n,B.current),c=mb(o,a,g,s),l=c/s;Math.abs(O.current.velocity)>m&&(P.current=1e3*Math.abs((s-c)/O.current.velocity)),g?O.current.velocity>m||l>u?h():L(0,{mode:"exit"}):O.current.velocity<-m||1-l>u?f():L(db(n,B.current),{mode:"enter"})})),_=(e=!1)=>{if(!x){!e&&s&&d||Eo.flushSync((()=>{E(!0)}));const t=Kv(r);!g&&B.current&&L(db(t,B.current)+(s?15:-20),{changeTransition:!1}),O.current.velocity=0,O.current.lastTime=null,O.current.lastTranslate=null,O.current.paperHit=!1,I.current=!0}},j=Object(Nr.a)((e=>{if(!B.current||!I.current)return;if(null!==cb&&cb!==O.current)return;_(!0);const t=Jv(i,r),n=Kv(r),o=lb(t,e.touches,Object(tb.a)(e.currentTarget)),a=ub(t,e.touches,Object(Vv.a)(e.currentTarget));if(g&&B.current.contains(e.target)&&null===cb){const t=function({domTreeShapes:e,start:t,current:n,anchor:i}){const o={x:"scrollLeft",y:"scrollTop"},r={x:"scrollWidth",y:"scrollHeight"},a={x:"clientWidth",y:"clientHeight"};return e.some((e=>{let s=n>=t;"top"!==i&&"left"!==i||(s=!s);const c="left"===i||"right"===i?"x":"y",l=Math.round(e[o[c]]),u=l>0,d=l+e[a[c]]<e[r[c]];return!!(s&&d||!s&&u)}))}({domTreeShapes:function(e,t){const n=[];for(;e&&e!==t.parentElement;){const i=Object(Vv.a)(t).getComputedStyle(e);"absolute"===i.getPropertyValue("position")||"hidden"===i.getPropertyValue("overflow-x")||(e.clientWidth>0&&e.scrollWidth>e.clientWidth||e.clientHeight>0&&e.scrollHeight>e.clientHeight)&&n.push(e),e=e.parentElement}return n}(e.target,B.current),start:n?O.current.startX:O.current.startY,current:n?o:a,anchor:r});if(t)return void(cb=!0);cb=O.current}if(null==O.current.isSwiping){const t=Math.abs(o-O.current.startX),i=Math.abs(a-O.current.startY),r=n?t>i&&t>3:i>t&&i>3;if(r&&e.cancelable&&e.preventDefault(),!0===r||(n?i>3:t>3)){if(O.current.isSwiping=r,!r)return void R(e);O.current.startX=o,O.current.startY=a,s||g||(n?O.current.startX-=20:O.current.startY-=20)}}if(!O.current.isSwiping)return;const c=db(n,B.current);let l=n?O.current.startX:O.current.startY;g&&!O.current.paperHit&&(l=Math.min(l,c));const u=mb(n?o:a,l,g,c);if(g)if(O.current.paperHit)0===u&&(O.current.startX=o,O.current.startY=a);else{if(!(n?o<c:a<c))return;O.current.paperHit=!0,O.current.startX=o,O.current.startY=a}null===O.current.lastTranslate&&(O.current.lastTranslate=u,O.current.lastTime=performance.now()+1);const d=(u-O.current.lastTranslate)/(performance.now()-O.current.lastTime)*1e3;O.current.velocity=.4*O.current.velocity+.6*d,O.current.lastTranslate=u,O.current.lastTime=performance.now(),e.cancelable&&e.preventDefault(),L(u)})),M=Object(Nr.a)((e=>{if(e.defaultPrevented)return;if(e.defaultMuiPrevented)return;if(g&&(l||!T.current.contains(e.target))&&!B.current.contains(e.target))return;const t=Jv(i,r),n=Kv(r),o=lb(t,e.touches,Object(tb.a)(e.currentTarget)),a=ub(t,e.touches,Object(Vv.a)(e.currentTarget));if(!g){var s;if(c||!(e.target===D.current||null!=(s=B.current)&&s.contains(e.target)&&("function"==typeof d?d(e,D.current,B.current):d)))return;if(n){if(o>y)return}else if(a>y)return}e.defaultMuiPrevented=!0,cb=null,O.current.startX=o,O.current.startY=a,_()}));return Eo.useEffect((()=>{if("temporary"===A){const e=Object(tb.a)(B.current);return e.addEventListener("touchstart",M),e.addEventListener("touchmove",j,{passive:!g}),e.addEventListener("touchend",R),()=>{e.removeEventListener("touchstart",M),e.removeEventListener("touchmove",j,{passive:!g}),e.removeEventListener("touchend",R)}}}),[A,g,M,j,R]),Eo.useEffect((()=>()=>{cb===O.current&&(cb=null)}),[]),Eo.useEffect((()=>{g||E(!1)}),[g]),Object(Lo.jsxs)(Eo.Fragment,{children:[Object(Lo.jsx)(eb,Object(To.a)({open:!("temporary"!==A||!x)||g,variant:A,ModalProps:Object(To.a)({BackdropProps:Object(To.a)({},p,{ref:T})},"temporary"===A&&{keepMounted:!0},S),hideBackdrop:l,PaperProps:Object(To.a)({},v,{style:Object(To.a)({pointerEvents:"temporary"!==A||g||d?"":"none"},v.style),ref:k}),anchor:r,transitionDuration:P.current||C,onClose:h,ref:t},w)),!c&&"temporary"===A&&Object(Lo.jsx)(Fv,{children:Object(Lo.jsx)(rb,Object(To.a)({anchor:r,ref:D,width:y},b))})]})})),fb=n(108);function gb(e){const t=Object.assign(Object.assign({},e.title),{text:or.b.getLocalizedText(e.title.text,e.textReplacementArgs)});return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(Fa,Object.assign({},e.leftButton)),Eo.default.createElement(kr,{sx:{flex:2,textAlign:"center",fontWeight:600,fontSize:18}},Eo.default.createElement(jr.a,{config:t})),Eo.default.createElement(Fa,Object.assign({},e.rightButton)))}function vb(){return Eo.default.createElement("div",{style:{width:30,height:6,backgroundColor:fb.a[300],borderRadius:3,position:"absolute",top:8,left:"calc(50% - 15px)"},"data-sb-drawer-puller":"1"})}function bb(e){return Eo.default.createElement(ir,Object.assign({sx:{display:"flex",width:"100%",alignItems:"center",justifyContent:"center",paddingTop:2,paddingBottom:1,touchAction:"none"},ref:e.innerRef},e.dragProps),Eo.default.createElement(vb,null),Eo.default.createElement(gb,Object.assign({},e.drawerHeaderContentProps)))}var yb=Object(gv.a)(Object(Lo.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Cb(e){return Object(dr.a)("MuiAvatar",e)}Object(er.a)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Ab=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],Sb=["component","slots","slotProps"],wb=["component"];const xb=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],Eb=Object(ar.a)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})((({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:Object(To.a)({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:Object(To.a)({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]}))),Ob=Object(ar.a)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Db=Object(ar.a)(yb,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});var Tb=Eo.forwardRef((function(e,t){const n=Object(sr.a)({props:e,name:"MuiAvatar"}),{alt:i,children:o,className:r,component:a="div",slots:s={},slotProps:c={},imgProps:l,sizes:u,src:d,srcSet:m,variant:p="circular"}=n,h=Object(Bo.a)(n,xb);let f=null;const g=function({crossOrigin:e,referrerPolicy:t,src:n,srcSet:i}){const[o,r]=Eo.useState(!1);return Eo.useEffect((()=>{if(!n&&!i)return;r(!1);let o=!0;const a=new Image;return a.onload=()=>{o&&r("loaded")},a.onerror=()=>{o&&r("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,i&&(a.srcset=i),()=>{o=!1}}),[e,t,n,i]),o}(Object(To.a)({},l,{src:d,srcSet:m})),v=d||m,b=v&&"error"!==g,y=Object(To.a)({},n,{colorDefault:!b,component:a,variant:p}),C=(e=>{const{classes:t,variant:n,colorDefault:i}=e,o={root:["root",n,i&&"colorDefault"],img:["img"],fallback:["fallback"]};return Object(rr.a)(o,Cb,t)})(y),[A,S]=function(e,t){const{className:n,elementType:i,ownerState:o,externalForwardedProps:r,getSlotOwnerState:a,internalForwardedProps:s}=t,c=Object(Bo.a)(t,Ab),{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0}}=r,m=Object(Bo.a)(r,Sb),p=u[e]||i,h=dc(d[e],o),f=uc(Object(To.a)({className:n},c,{externalForwardedProps:"root"===e?m:void 0,externalSlotProps:h})),{props:{component:g},internalRef:v}=f,b=Object(Bo.a)(f.props,wb),y=Object(rc.a)(v,null==h?void 0:h.ref,t.ref),C=a?a(b):{},A=Object(To.a)({},o,C),S="root"===e?g||l:g,w=sc(p,Object(To.a)({},"root"===e&&!l&&!u[e]&&s,"root"!==e&&!u[e]&&s,b,S&&{as:S},{ref:y}),A);return Object.keys(C).forEach((e=>{delete w[e]})),[p,w]}("img",{className:C.img,elementType:Ob,externalForwardedProps:{slots:s,slotProps:{img:Object(To.a)({},l,c.img)}},additionalProps:{alt:i,src:d,srcSet:m,sizes:u},ownerState:y});return f=b?Object(Lo.jsx)(A,Object(To.a)({},S)):o||0===o?o:v&&i?i[0]:Object(Lo.jsx)(Db,{ownerState:y,className:C.fallback}),Object(Lo.jsx)(Eb,Object(To.a)({as:a,ownerState:y,className:Object(Ho.a)(C.root,r),ref:t},h,{children:f}))}));function Bb(e){return Eo.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"41",height:"38",viewBox:"0 0 41 38",fill:"none"},Eo.default.createElement("path",{d:"M4.09514 37.0902V10.6304L0.019043 1.87823L3.18969 0.348877L7.76144 10.6304H32.6886L37.2484 0.348877L40.419 1.87823L36.3549 10.6304V37.0902H4.09514ZM15.994 22.013H24.494C24.9461 22.013 25.3211 21.8632 25.619 21.5637C25.9169 21.2641 26.0658 20.8871 26.0658 20.4325C26.0658 19.9779 25.9169 19.6038 25.619 19.3101C25.3211 19.0164 24.9461 18.8695 24.494 18.8695H15.994C15.5419 18.8695 15.167 19.0193 14.8691 19.3189C14.5712 19.6184 14.4223 19.9955 14.4223 20.45C14.4223 20.9046 14.5712 21.2788 14.8691 21.5725C15.167 21.8662 15.5419 22.013 15.994 22.013ZM7.50164 33.6837H32.9364V14.0489H7.50164V33.6837Z",fill:e.color}))}function kb(e){return e.isVisible?Eo.default.createElement("div",{style:{display:"flex",alignItems:"center",flexDirection:"column",marginTop:"auto",marginBottom:"auto",overflowY:"scroll"}},e.style.placeholderIcon.visible&&Eo.default.createElement(Tb,{style:{backgroundColor:or.b.getColorValue(e.style.placeholderIconBackground),width:100,height:100}},Eo.default.createElement(Bb,{color:or.b.getColorValue(e.style.placeholderIcon.color)})),Eo.default.createElement(kr,{style:{marginTop:20},variant:"h6"},Eo.default.createElement(jr.a,{config:e.style.placeholderTitle})),Eo.default.createElement(kr,{style:{marginTop:20,paddingLeft:"10%",paddingRight:"10%",maxWidth:400,textAlign:"center"},variant:"body2"},Eo.default.createElement(jr.a,{config:e.style.placeholderSubtitle})),e.onStartClick&&e.style.startScanningButton.visible&&Eo.default.createElement(ic,Object.assign({style:{width:"60%",marginTop:20}},e.style.startScanningButton,{visible:!0,onClick:e.onStartClick}))):null}function Ib(e,t,n){const i=Object(Eo.useRef)(),o=Object(Eo.useRef)(null),[r,a]=Object(Eo.useState)(),[s,c]=Object(Eo.useState)(!1),l=Object(Eo.useRef)([]),u=e=>{let n="none";if(l.current.length>0){const t=200,i=((e,t)=>{let n=e[0],i=Math.abs(n.time-t);for(let o=1;o<e.length;o++){const r=Math.abs(e[o].time-t);r<i&&(n=e[o],i=r)}return n})(l.current,e.timeStamp-t),o=i.y-e.clientY,r=100;o>r?n="up":o<-r&&(n="down")}l.current.splice(0,l.current.length),t(new kg.a(e.clientX,e.clientY),n)},d={onPointerDown:e=>{e.target.setPointerCapture(e.pointerId),c(!0),o.current=new kg.a(e.clientX,e.clientY),a(kg.a.empty()),e.stopPropagation()},onPointerMove:t=>{if(!s)return;const n=new kg.a(t.clientX,t.clientY);i.current=t,a(n),e(n),l.current.push({x:t.clientX,y:t.clientY,time:t.timeStamp})},onPointerUp:e=>{e.target.releasePointerCapture(e.pointerId),c(!1),u(e)},onPointerCancel:e=>{e.target.releasePointerCapture(e.pointerId),c(!1),n()}};return{startPoint:o,currentPoint:r,props:d,stop:()=>{i.current.stopPropagation()},dragOngoing:s}}var Pb=n(60);function Lb(e){const[t,n]=Object(Eo.useState)(0),[i,o]=Object(Eo.useState)(!1),r=Object(Eo.useRef)(null),a=Object(Eo.useContext)(Na).height,s=e=>{n(e),o(!0),setTimeout((()=>{o(!1)}),500)},c=t=>{const n=t-l.startPoint.current.y;return Object(Pb.a)((e.isOpen?100:0)-100*n/(window.innerHeight-a-e.closedSheetVisibleHeight),0,100)},l=Ib((e=>{n(c(e.y))}),((t,n)=>{if(t.y===l.startPoint.current.y)return;let i;i=c(t.y)<50?"swipe-to-close":"swipe-to-open","up"===n&&(i="swipe-to-open"),"down"===n&&(i="swipe-to-close"),e.onSwipe(i)}),(()=>{}));return Object(Eo.useEffect)((()=>{i||l.dragOngoing||!r||(e.isOpen||0===t?e.isOpen&&100!==t&&s(100):s(0))}),[e.isOpen,t,l.dragOngoing]),Eo.createElement("div",null,Eo.createElement(hb,{variant:"persistent",anchor:"bottom",open:!0,onClose:()=>{},onOpen:()=>{},swipeAreaWidth:56,disableSwipeToOpen:!1,ModalProps:{keepMounted:!0},PaperProps:{style:{height:`calc((100 * ${Lr} - ${a}px - ${e.closedSheetVisibleHeight}px) * ${t} / 100 + ${e.closedSheetVisibleHeight}px)`,overflow:"hidden",borderRadius:10,borderBottomLeftRadius:0,borderBottomRightRadius:0,transition:i?"height 500ms":void 0,backgroundColor:or.b.getColorValue(e.contentStyle.sheetColor)},elevation:24}},Eo.createElement(bb,{innerRef:e=>{r.current=e},drawerHeaderContentProps:e.drawerHeaderContentProps,dragProps:l.props}),e.children,Eo.createElement(kb,{isVisible:e.isPlaceholderVisible,style:e.contentStyle,onStartClick:()=>e.onSwipe("swipe-to-close")})))}var Rb=n(116),_b=n.n(Rb),jb=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n};function Mb(e){var{inputRef:t}=e,n=jb(e,["inputRef"]);const i=Object.assign(Object.assign({},n),{style:Object.assign(Object.assign({},n.style||{}),{border:"none",display:"block",outlineWidth:0,width:"100%"})});return Eo.default.createElement("input",Object.assign({},i,{ref:t}))}var Fb=Object(gv.a)(Object(Lo.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay");function Nb(e){const t=!!e.barcode,[n,i]=Eo.default.useState(""),o=Eo.default.useRef(null),r={backgroundColor:or.b.getColorValue(e.dialogStyling.sheetColor)};return Object(Eo.useEffect)((()=>{t&&i(String(e.barcode.count))}),[t]),Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(ml,{open:t,modalOverlayColor:e.dialogStyling.modalOverlayColor,TransitionProps:{onEnter:()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.focus()}},onClose:e.onCancel,PaperProps:{component:"form",onSubmit:t=>{t.preventDefault(),e.setCounter(e.barcode.barcode,parseInt(n)||0)}}},Eo.default.createElement(Za,{style:r},Eo.default.createElement(kr,{fontSize:16,fontWeight:500,textAlign:"center"},Eo.default.createElement(jr.a,{config:e.dialogStyling.title})),Eo.default.createElement(kr,{fontSize:14,textAlign:"center"},Eo.default.createElement(jr.a,{config:e.dialogStyling.info})),Eo.default.createElement(ir,{sx:{display:"flex",border:"2px solid",borderColor:or.b.getColorValue(e.dialogStyling.dividerColor),mh:2,mb:0,p:1,borderRadius:1}},Eo.default.createElement(Mb,{inputRef:o,value:n,onChange:e=>{const t=parseInt(e.target.value.replaceAll(/[^0-9]/g,""));i(t>=0?t.toString():"")},type:"text",pattern:"[0-9]*"}),e.dialogStyling.clearTextButton.visible&&Eo.default.createElement(_b.a,{sx:{marginLeft:"auto",paddingLeft:1},onClick:()=>i(""),htmlColor:or.b.getColorValue(e.dialogStyling.clearTextButton.color)}))),Eo.default.createElement(Qa,{sx:Object.assign(Object.assign({},r),{pt:0})},Eo.default.createElement(Qs,{container:!0,spacing:2},Eo.default.createElement(Qs,{item:!0,xs:12},Eo.default.createElement(nc,{color:or.b.getColorValue(e.dialogStyling.dividerColor)})),Eo.default.createElement(Qs,{item:!0,xs:6},Eo.default.createElement(ic,Object.assign({style:{width:"100%"},onClick:e.onCancel},e.dialogStyling.cancelButton))),Eo.default.createElement(Qs,{item:!0,xs:6},Eo.default.createElement(ic,Object.assign({icon:Fb,style:{width:"100%"},onClick:()=>{},type:"submit"},e.dialogStyling.updateButton)))))))}var Vb=Eo.createContext({});function Wb(e){return Object(dr.a)("MuiList",e)}Object(er.a)("MuiList",["root","padding","dense","subheader"]);const zb=["children","className","component","dense","disablePadding","subheader"],Hb=Object(ar.a)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Object(To.a)({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var Ub=Eo.forwardRef((function(e,t){const n=Object(sr.a)({props:e,name:"MuiList"}),{children:i,className:o,component:r="ul",dense:a=!1,disablePadding:s=!1,subheader:c}=n,l=Object(Bo.a)(n,zb),u=Eo.useMemo((()=>({dense:a})),[a]),d=Object(To.a)({},n,{component:r,dense:a,disablePadding:s}),m=(e=>{const{classes:t,disablePadding:n,dense:i,subheader:o}=e,r={root:["root",!n&&"padding",i&&"dense",o&&"subheader"]};return Object(rr.a)(r,Wb,t)})(d);return Object(Lo.jsx)(Vb.Provider,{value:u,children:Object(Lo.jsxs)(Hb,Object(To.a)({as:r,className:Object(Ho.a)(m.root,o),ref:t,ownerState:d},l,{children:[c,i]}))})})),Zb=n(78);function Gb(e){return Object(dr.a)("MuiListItem",e)}var $b=Object(er.a)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var Yb=Object(er.a)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Qb(e){return Object(dr.a)("MuiListItemSecondaryAction",e)}Object(er.a)("MuiListItemSecondaryAction",["root","disableGutters"]);const Xb=["className"],qb=Object(ar.a)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>Object(To.a)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),Kb=Eo.forwardRef((function(e,t){const n=Object(sr.a)({props:e,name:"MuiListItemSecondaryAction"}),{className:i}=n,o=Object(Bo.a)(n,Xb),r=Eo.useContext(Vb),a=Object(To.a)({},n,{disableGutters:r.disableGutters}),s=(e=>{const{disableGutters:t,classes:n}=e,i={root:["root",t&&"disableGutters"]};return Object(rr.a)(i,Qb,n)})(a);return Object(Lo.jsx)(qb,Object(To.a)({className:Object(Ho.a)(s.root,i),ownerState:a,ref:t},o))}));Kb.muiName="ListItemSecondaryAction";var Jb=Kb;const ey=["className"],ty=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],ny=Object(ar.a)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>Object(To.a)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&Object(To.a)({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Yb.root}`]:{paddingRight:48}},{[`&.${$b.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$b.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Object(lr.a)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${$b.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Object(lr.a)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${$b.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${$b.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Object(lr.a)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Object(lr.a)(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),iy=Object(ar.a)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"});var oy=Eo.forwardRef((function(e,t){const n=Object(sr.a)({props:e,name:"MuiListItem"}),{alignItems:i="center",autoFocus:o=!1,button:r=!1,children:a,className:s,component:c,components:l={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:m}={},dense:p=!1,disabled:h=!1,disableGutters:f=!1,disablePadding:g=!1,divider:v=!1,focusVisibleClassName:b,secondaryAction:y,selected:C=!1,slotProps:A={},slots:S={}}=n,w=Object(Bo.a)(n.ContainerProps,ey),x=Object(Bo.a)(n,ty),E=Eo.useContext(Vb),O=Eo.useMemo((()=>({dense:p||E.dense||!1,alignItems:i,disableGutters:f})),[i,E.dense,p,f]),D=Eo.useRef(null);Object(nb.a)((()=>{o&&D.current&&D.current.focus()}),[o]);const T=Eo.Children.toArray(a),B=T.length&&Object(Zb.a)(T[T.length-1],["ListItemSecondaryAction"]),k=Object(To.a)({},n,{alignItems:i,autoFocus:o,button:r,dense:O.dense,disabled:h,disableGutters:f,disablePadding:g,divider:v,hasSecondaryAction:B,selected:C}),I=(e=>{const{alignItems:t,button:n,classes:i,dense:o,disabled:r,disableGutters:a,disablePadding:s,divider:c,hasSecondaryAction:l,selected:u}=e,d={root:["root",o&&"dense",!a&&"gutters",!s&&"padding",c&&"divider",r&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",l&&"secondaryAction",u&&"selected"],container:["container"]};return Object(rr.a)(d,Gb,i)})(k),P=Object(Fr.a)(D,t),L=S.root||l.Root||ny,R=A.root||u.root||{},_=Object(To.a)({className:Object(Ho.a)(I.root,R.className,s),disabled:h},x);let j=c||"li";return r&&(_.component=c||"div",_.focusVisibleClassName=Object(Ho.a)($b.focusVisible,b),j=fa),B?(j=_.component||c?j:"div","li"===d&&("li"===j?j="div":"li"===_.component&&(_.component="div")),Object(Lo.jsx)(Vb.Provider,{value:O,children:Object(Lo.jsxs)(iy,Object(To.a)({as:d,className:Object(Ho.a)(I.container,m),ref:P,ownerState:k},w,{children:[Object(Lo.jsx)(L,Object(To.a)({},R,!ac(L)&&{as:j,ownerState:Object(To.a)({},k,R.ownerState)},_,{children:T})),T.pop()]}))})):Object(Lo.jsx)(Vb.Provider,{value:O,children:Object(Lo.jsxs)(L,Object(To.a)({},R,{as:j,ref:P},!ac(L)&&{ownerState:Object(To.a)({},k,R.ownerState)},_,{children:[T,y&&Object(Lo.jsx)(Jb,{children:y})]}))})})),ry=n(86),ay=n.n(ry);function sy(e){return Eo.default.createElement("div",{style:{top:0,width:"100%",marginTop:"1px",marginLeft:"1px",height:"calc(100% - 2px)",position:"absolute",backgroundColor:or.b.getColorValue(e.config.backgroundColor),display:"flex",alignItems:"right",justifyContent:"right"}},Eo.default.createElement(ay.a,{style:{height:"100%",color:or.b.getColorValue(e.config.iconColor),paddingRight:e.visibleOffset/2,cursor:"pointer"}}))}var cy=n(112);function ly(e,t,n,i,o){const[r,a]=Eo.useState((()=>o&&n?n(e).matches:i?i(e).matches:t));return Object(nb.a)((()=>{let t=!0;if(!n)return;const i=n(e),o=()=>{t&&a(i.matches)};return o(),i.addListener(o),()=>{t=!1,i.removeListener(o)}}),[e,n]),r}const uy=Eo.useSyncExternalStore;function dy(e,t,n,i,o){const r=Eo.useCallback((()=>t),[t]),a=Eo.useMemo((()=>{if(o&&n)return()=>n(e).matches;if(null!==i){const{matches:t}=i(e);return()=>t}return r}),[r,e,i,o,n]),[s,c]=Eo.useMemo((()=>{if(null===n)return[r,()=>()=>{}];const t=n(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]}),[r,n,e]);return uy(c,s,a)}function my(e,t={}){const n=Object(jo.a)(),i="undefined"!=typeof window&&"undefined"!=typeof window.matchMedia,{defaultMatches:o=!1,matchMedia:r=(i?window.matchMedia:null),ssrMatchMedia:a=null,noSsr:s=!1}=Object(cy.a)({name:"MuiUseMediaQuery",props:t,theme:n});let c="function"==typeof e?e(n):e;c=c.replace(/^@media( ?)/m,"");return(void 0!==uy?dy:ly)(c,o,r,a,s)}const py=0,hy=800,fy=1200;function gy(e){switch(e){case"mobile":return my("(min-width:"+py+"px) and (max-width:"+(hy-1)+"px)");case"tablet":return my("(min-width:"+hy+"px) and (max-width:"+(fy-1)+"px)");case"desktop":return my("(min-width:"+fy+"px)")}}function vy(e){switch(e){case"mobile":return my("(min-width:"+py+"px)");case"tablet":return my("(min-width:"+hy+"px)");case"desktop":return my("(min-width:"+fy+"px)")}}const by=150;function yy(e){const[t,n]=Object(Eo.useState)(0),[i,o]=Object(Eo.useState)(!1);let r;const a=Ib((e=>{let t=a.startPoint.current.x-e.x;t<0?a.stop():n(-t)}),(t=>{if(t.x===a.startPoint.current.x)return;if(a.startPoint.current.x-t.x>75){const t=e.animateBackAfterDelete?()=>{l(0)}:void 0;l(by,t)}else l(0)}),(()=>{l(0)})),s=Object(Eo.useContext)(Sv),c=s.useBarcodeMappedData(e.barcode);Object(Eo.useEffect)((()=>{const t={barcode:e.barcode,callback:()=>e.onDelete(e.barcode)};return s.addOnEvictionListener(t),()=>{s.removeOnEvictionListener(t)}}),[]);const l=(t,i)=>{const a=t>=by,s=-r.getBoundingClientRect().width;n(a?s:0),o(!0),setTimeout((()=>{o(!1),a&&e.onDelete(e.barcode),i&&i()}),200)},u=gy("desktop")&&e.swipeToDeleteConfig.enabled,d=!u&&e.swipeToDeleteConfig.enabled;return Object(Eo.useEffect)((()=>{d||l(0)}),[d]),Eo.default.createElement(ir,{sx:{px:2},style:{width:"100%",paddingRight:0},ref:e=>{e&&(r=e)}},Eo.default.createElement(sy,{config:e.swipeToDeleteConfig,visibleOffset:by}),Eo.default.createElement(ir,Object.assign({sx:{width:"100%",backgroundColor:or.b.getColorValue(e.sheetColor),transform:`translateX(${t}px)`,transition:i?"transform 200ms ease-in-out":void 0,touchAction:"pan-y",display:"flex",alignItems:"center",paddingTop:"16px",paddingBottom:"16px",columnGap:"16px"}},d?a.props:{}),Eo.default.createElement(js,Object.assign({barcodeMappedData:c},e)),null!==e.readonlyCount&&Eo.default.createElement(ir,{sx:{fontSize:18,marginTop:"auto",flex:1,textAlign:"right",color:or.b.getColorValue("?sbColorOnSurfaceVariant")}},"x",e.readonlyCount),u&&Eo.default.createElement(ay.a,{sx:{height:"100%",marginLeft:"auto",cursor:"pointer",color:or.b.getColorValue("?sbColorOnSurface")},onClick:()=>e.onDelete(e.barcode)}),Eo.default.createElement(ir,{sx:{width:"0px"}})))}function Cy(e){const t=or.b.getColorValue(e.sheetContent.dividerColor),n=e.sheetContent.manualCountChangeEnabled&&"COUNTING"===e.mode,i=(t,n)=>{let i=e.indicatorColor.partial;return n===t.count?i=e.indicatorColor.complete:0===n&&(i=e.indicatorColor.notScanned),or.b.getColorValue(i)};return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(nc,{style:{borderColor:t}}),e.barcodes.length>0&&Eo.default.createElement(ir,{sx:{width:"auto",flex:1,overflowY:"auto",overflowX:"hidden"},role:"presentation"},Eo.default.createElement(Ub,{sx:{p:0}},e.barcodes.map((({barcode:o,count:r},a)=>{const s=e.expectedBarcodes.find((e=>e.barcodeValue===o.text));return Eo.default.createElement(oy,{key:a,sx:{padding:0,borderBottom:`1px solid ${t}`}},e.indicatorColor&&Eo.default.createElement("div",{style:{display:"flex",width:4,height:"100%",backgroundColor:i(s,r),position:"absolute"}}),Eo.default.createElement(yy,{barcode:o,animateBackAfterDelete:e.animateBackAfterDelete,onDelete:()=>e.onBarcodeChange({type:"remove",barcode:o}),counterForm:n&&{counter:r,manualCountChangeColor:e.sheetContent.manualCountChangeColor,manualCountOutlineColor:e.sheetContent.manualCountOutlineColor,addButtonEnabled:void 0===s||s.count>r,removeButtonEnabled:void 0===s||r>0,setCounter:t=>{e.onBarcodeChange({type:"setCount",barcodes:[o],computeNewCount:()=>t})},onNumberClick:()=>e.onNumberClick({barcode:o,count:r})},readonlyCount:"COUNTING"!==e.mode||e.sheetContent.manualCountChangeEnabled?null:r,maxNumberOfTitleLines:1,maxNumberOfSubtitleLines:1,displayRightArrow:!1,imageSize:n?84:40,barcodeImageVisible:e.sheetContent.barcodeItemImageVisible,barcodeTitle:e.sheetContent.barcodeItemTitle,barcodeSubtitle:e.sheetContent.barcodeItemSubtitle,swipeToDeleteConfig:e.sheetContent.swipeToDelete,sheetColor:e.sheetContent.sheetColor}))})))))}var Ay=n(117),Sy=n.n(Ay);var wy=e=>{const t=Eo.useRef({});return Eo.useEffect((()=>{t.current=e})),t.current};function xy(e){return Object(dr.a)("MuiBadge",e)}var Ey=Object(er.a)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);const Oy=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Dy=sr.a,Ty=Object(ar.a)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),By=Object(ar.a)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Object(cr.a)(n.anchorOrigin.vertical)}${Object(cr.a)(n.anchorOrigin.horizontal)}${Object(cr.a)(n.overlap)}`],"default"!==n.color&&t[`color${Object(cr.a)(n.color)}`],n.invisible&&t.invisible]}})((({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var n,i;return(null!=(n=e.vars)?n:e).palette[t].main&&(null!=(i=e.vars)?i:e).palette[t].contrastText})).map((t=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}}))),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Ey.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Ey.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Ey.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Ey.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Ey.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Ey.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Ey.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Ey.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}));var ky=Eo.forwardRef((function(e,t){var n,i,o,r,a,s;const c=Dy({props:e,name:"MuiBadge"}),{anchorOrigin:l={vertical:"top",horizontal:"right"},className:u,component:d,components:m={},componentsProps:p={},children:h,overlap:f="rectangular",color:g="default",invisible:v=!1,max:b=99,badgeContent:y,slots:C,slotProps:A,showZero:S=!1,variant:w="standard"}=c,x=Object(Bo.a)(c,Oy),{badgeContent:E,invisible:O,max:D,displayValue:T}=function(e){const{badgeContent:t,invisible:n=!1,max:i=99,showZero:o=!1}=e,r=wy({badgeContent:t,max:i});let a=n;!1!==n||0!==t||o||(a=!0);const{badgeContent:s,max:c=i}=a?r:e;return{badgeContent:s,invisible:a,max:c,displayValue:s&&Number(s)>c?`${c}+`:s}}({max:b,invisible:v,badgeContent:y,showZero:S}),B=wy({anchorOrigin:l,color:g,overlap:f,variant:w,badgeContent:y}),k=O||null==E&&"dot"!==w,{color:I=g,overlap:P=f,anchorOrigin:L=l,variant:R=w}=k?B:c,_="dot"!==R?T:void 0,j=Object(To.a)({},c,{badgeContent:E,invisible:k,max:D,displayValue:_,showZero:S,anchorOrigin:L,color:I,overlap:P,variant:R}),M=(e=>{const{color:t,anchorOrigin:n,invisible:i,overlap:o,variant:r,classes:a={}}=e,s={root:["root"],badge:["badge",r,i&&"invisible",`anchorOrigin${Object(cr.a)(n.vertical)}${Object(cr.a)(n.horizontal)}`,`anchorOrigin${Object(cr.a)(n.vertical)}${Object(cr.a)(n.horizontal)}${Object(cr.a)(o)}`,`overlap${Object(cr.a)(o)}`,"default"!==t&&`color${Object(cr.a)(t)}`]};return Object(rr.a)(s,xy,a)})(j),F=null!=(n=null!=(i=null==C?void 0:C.root)?i:m.Root)?n:Ty,N=null!=(o=null!=(r=null==C?void 0:C.badge)?r:m.Badge)?o:By,V=null!=(a=null==A?void 0:A.root)?a:p.root,W=null!=(s=null==A?void 0:A.badge)?s:p.badge,z=pc({elementType:F,externalSlotProps:V,externalForwardedProps:x,additionalProps:{ref:t,as:d},ownerState:j,className:Object(Ho.a)(null==V?void 0:V.className,M.root,u)}),H=pc({elementType:N,externalSlotProps:W,ownerState:j,className:Object(Ho.a)(M.badge,null==W?void 0:W.className)});return Object(Lo.jsxs)(F,Object(To.a)({},z,{children:[h,Object(Lo.jsx)(N,Object(To.a)({},H,{children:_}))]}))}));function Iy(e){const t=e.badgeStyle||{},n=e.overlap||"circular";return Eo.default.createElement(ky,{anchorOrigin:{vertical:"top",horizontal:"left"},badgeContent:e.text,showZero:!0,color:"primary",overlap:n,slotProps:{badge:{style:Object.assign(Object.assign({},t),{backgroundColor:e.backgroundColor,color:e.foregroundColor,fontWeight:"bold"})}}},e.children)}function Py(e){if(!e.buttonStyling.visible)return null;return Eo.default.createElement(ir,{style:e.style},Eo.default.createElement(Iy,{text:e.text,backgroundColor:or.b.getColorValue(e.buttonStyling.badgeBackgroundColor),foregroundColor:or.b.getColorValue(e.buttonStyling.badgeForegroundColor)},Eo.default.createElement(Pa,{sx:{backgroundColor:or.b.getColorValue(e.buttonStyling.backgroundColor),width:60,height:60,"&:hover, &:focus":{backgroundColor:or.b.getColorValue(e.buttonStyling.activeBackgroundColor),outline:"none"}},onClick:e.onClick,disableRipple:!0,disableFocusRipple:!0},Eo.default.createElement(Sy.a,{sx:{color:or.b.getColorValue(e.buttonStyling.foregroundColor),fontSize:"24pt","&:hover, &:focus":{color:or.b.getColorValue(e.buttonStyling.activeForegroundColor)}}}))))}const Ly=(e,t)=>(null===e.format||null===t.format||e.format===t.format)&&e.text===t.text,Ry=(e,t)=>e.find((e=>((e,t)=>e.barcodeValue===t.text)(e,t)));class _y{constructor(e,t){this.expectedCount=e,this.foundCount=t}isFulFilled(){return void 0!==this.expectedCount&&void 0!==this.foundCount&&this.expectedCount===this.foundCount}toString(){return`${this.foundCount}/${this.expectedCount}`}}function jy(e){const t=Object(Eo.useContext)(or.a).getColorValue,n={backgroundColor:t(e.sheetColor)};return Eo.default.createElement(ml,{modalOverlayColor:e.modalOverlayColor,open:e.open},Eo.default.createElement(Za,{sx:Object.assign(Object.assign({},n),{p:2,pb:1,textAlign:"center"})},Eo.default.createElement(kr,{sx:{fontSize:"16pt",fontWeight:"bold"}},Eo.default.createElement(jr.a,{config:e.title})),Eo.default.createElement(kr,{sx:{fontSize:"14pt",lineHeight:"16pt"}},Eo.default.createElement(jr.a,{config:e.subtitle}))),Eo.default.createElement(Qa,{sx:Object.assign(Object.assign({},n),{pt:1})},Eo.default.createElement(Qs,{container:!0,spacing:2},Eo.default.createElement(Qs,{item:!0,xs:12},Eo.default.createElement(nc,{color:t(e.dividerColor)})),Eo.default.createElement(Qs,{item:!0,xs:6},Eo.default.createElement(ic,Object.assign({style:{width:"100%"},icon:e.cancelButton.icon,onClick:e.cancelButton.onClick},e.cancelButton.style))),Eo.default.createElement(Qs,{item:!0,xs:6},Eo.default.createElement(ic,Object.assign({style:{width:"100%"},icon:e.okButton.icon,onClick:e.okButton.onClick},e.okButton.style))))))}function My(e){return e.open?Eo.default.createElement(jy,{open:e.open,dividerColor:e.style.dividerColor,modalOverlayColor:e.style.modalOverlayColor,sheetColor:e.style.sheetColor,title:e.style.title,subtitle:e.style.subtitle,cancelButton:{style:e.style.cancelButton,onClick:e.onDismiss},okButton:{style:e.style.okButton,onClick:e.onSubmit}}):null}class Fy{constructor(e,t,n){this.barcodeItemSubtitleText=e,this.foundBarcodes=t,this.expectedBarcodes=n}useBarcodeMappedData(e){var t,n,i;const o=null!==(n=null===(t=this.foundBarcodes.find((t=>Ly(t.barcode,e))))||void 0===t?void 0:t.count.toString())&&void 0!==n?n:"0",r=Ry(this.expectedBarcodes,e);return{state:"LOADED",value:{title:`${null!==(i=r.title)&&void 0!==i?i:e.text}`,subtitle:or.b.getLocalizedText(this.barcodeItemSubtitleText,[o,null==r?void 0:r.count.toString()]),barcodeImage:r.image}}}addOnEvictionListener(){}removeOnEvictionListener(){}}function Ny(e){const t=Object(Eo.useContext)(Na);return Eo.default.createElement(Qs,{item:!0,xs:5,component:"div",zIndex:1050,style:{paddingTop:t.minTopPaddingForContent,height:"100%",flexDirection:"column",display:"flex",backgroundColor:or.b.getColorValue(e.sheetContent.sheetColor)}},Eo.default.createElement(ir,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},zIndex:50},Eo.default.createElement(gb,Object.assign({},e.headerProps))),e.barcodeList,Eo.default.createElement(kb,{isVisible:e.isEmptyStateVisible,style:e.sheetContent}))}var Vy=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};function Wy(e){const t=Object(Eo.useRef)(),n=Object(Eo.useRef)(new Date("2001-01-01")),[i,o]=Object(Eo.useReducer)(function(e,t,n,i){return(o,r)=>{const a=e.useCase,s="FindAndPickScanningMode"===a._type,c=s?"COUNTING":a.mode,l=s?a.expectedBarcodes:[],u=e=>{let t=[...o];const n=r.barcodes||[r.barcode];for(const i of n){const n=t.findIndex((e=>Ly(e.barcode,i)));if(-1===n)t.push({barcode:i,count:e(0)});else{const i=t[n];t[n]=Object.assign(Object.assign({},i),{count:e(i.count,i)})}}return t},d=(e,n)=>{var o;if(t.current=new Date,!n)return e;const r=null===(o=Ry(l,n.barcode))||void 0===o?void 0:o.count;return void 0===r||r===e?e:(i(),e+1)};switch(r.type){case"onBarcodesDetected":{if((new Date).getTime()-t.current.getTime()<a.countingRepeatDelay||!n.current)return[...o];if(s)return a.arOverlay.automaticSelectionEnabled?u(d):[...o];const e=a.arOverlay;if(!e.visible||e.automaticSelectionEnabled){let e=!1;return u((n=>{let o="COUNTING"===c?n+1:1;return o===n||e||(t.current=new Date,i()),o}))}return u((e=>e))}case"onARCodeClick":return u(((e,t)=>{if(s)return d(e,t);const n="UNIQUE"===c?1-e:e+1;return n>0&&i(),n}));case"onCountEditDialogChange":{let e=()=>r.count||0;if(s){const t=Ry(l,r.barcode);r.count>t.count&&(e=()=>t.count)}return u(e)}case"setCount":return u(r.computeNewCount);case"remove":return o.map((e=>Object.assign(Object.assign({},e),{count:Ly(e.barcode,r.barcode)?0:e.count})));case"clear":return o.map((e=>Object.assign(Object.assign({},e),{count:0})));case"setHtmlElements":let e=!1;const m=o.map((t=>Ly(t.barcode,r.barcode)?(e=!0,Object.assign(Object.assign({},t),{polygonElement:r.polygonElement,labelElement:r.labelElement})):t));return e||m.push({barcode:r.barcode,count:0,labelElement:r.labelElement,polygonElement:r.polygonElement}),m}}}(e.configuration,n,e.scanningEnabled,(()=>{bl.INSTANCE.beep(e.configuration.sound),Cl.INSTANCE.vibrate(e.configuration.vibration)})),[]),[r,a]=Eo.default.useState(null),[s,c]=Object(Eo.useState)(!1),l=Object(Eo.useMemo)((()=>"__sb_"+Math.random()),[]),[u,d]=Object(Eo.useState)(!0),m=e.barcodeMapper,[p,h]=Object(Eo.useState)(null),f="FindAndPickScanningMode"===e.configuration.useCase._type,g=e.configuration.useCase,v=f?"COUNTING":g.mode,b=Object(Eo.useRef)(Object.assign(Object.assign({},Iv(e.configuration)),{onBarcodesDetected:e=>{o({type:"onBarcodesDetected",barcodes:e.barcodes})},_onDetectionFailed(e){},onError:e.onError,captureDelay:1e3/60}));Object(Eo.useEffect)((()=>{if(f){const t=A();for(const n of t){const t=[(e=n.barcodeValue,new K.BarcodeItem({text:e,format:null,quad:[],quadNormalized:[],sourceImage:null,rawBytes:null,upcEanExtension:null,extractedDocument:null}))];o({type:"setCount",barcodes:t,computeNewCount:()=>0})}}var e}),[]),Object(Eo.useEffect)((()=>{b.current.container=t.current}),[t]),Object(Eo.useEffect)((()=>{if(f)for(const e of i){const t=g.arOverlay,n=e.polygonElement,i=e.labelElement;if(w(e.barcode)){const o=R(e.barcode);let r=e.count+"/"+o.expectedCount;g.arOverlay.automaticSelectionEnabled||0!==e.count||(r=Eo.default.createElement(Rv,null)),o.isFulFilled()?(null==n||n.style(or.b.getPolygonColorValues(t.polygon.completed,t.polygon.visible)),null==i||i.styleBadge(t.badge.completed,Eo.default.createElement(_v,null))):(null==n||n.style(or.b.getPolygonColorValues(t.polygon.partiallyScanned,t.polygon.visible)),null==i||i.styleBadge(t.badge.partiallyScanned,r))}else null==n||n.style(or.b.getPolygonColorValues(t.polygon.rejected,t.polygon.visible)),null==i||i.styleBadge(t.badge.rejected,Eo.default.createElement(jv,null))}else for(const e of i){if(e.polygonElement){const t=g.arOverlay.polygon,n=e.count>0?t.selected:t.deselected;e.polygonElement.style(or.b.getPolygonColorValues(n,t.visible))}e.labelElement&&(e.labelElement.update(Object.assign(Object.assign({},e.labelElement.state.element),{highlighted:e.count>0})),e.labelElement.setCount(e.count))}}),[i]);const y=i.reduce(((e,t)=>e+t.count),0),C=()=>A().every((e=>i.some((t=>t.barcode.text===e.barcodeValue&&t.count===e.count)))),A=()=>f?g.expectedBarcodes:[],S=e=>Ry(A(),e),w=e=>!!S(e),x=()=>f?i.filter((e=>w(e.barcode))):i.filter((e=>e.count>0)),E=()=>Vy(this,void 0,void 0,(function*(){const t=x().map((e=>new Do.BarcodeScannerUIItem({count:"COUNTING"===v?e.count:1,barcode:e.barcode})));e.onSubmit({items:t})})),O=Eo.default.createElement(Cy,{expectedBarcodes:A(),barcodes:x(),animateBackAfterDelete:f,onBarcodeChange:o,sheetContent:g.sheetContent,onNumberClick:e=>a(e),mode:v,indicatorColor:f&&{partial:g.scanningPartiallyColor,complete:g.scanningCompletedColor,notScanned:g.scanningNotScannedColor}}),D={textReplacementArgs:[y.toString()],leftButton:Object.assign(Object.assign({},g.sheetContent.clearAllButton),{onClick:()=>o({type:"clear"})}),rightButton:Object.assign(Object.assign({},g.sheetContent.submitButton),{onClick:()=>Vy(this,void 0,void 0,(function*(){if(f){const e=g;let t=null;e.partialScannedAlertDialogEnabled&&!C()&&(t=e.partialScannedAlertDialog),e.confirmationAlertDialogEnabled&&C()&&(t=e.confirmationAlertDialog),t?h(t):yield E()}else yield E()}))}),title:g.sheetContent.title},T=gy("mobile"),B="BUTTON"!==g.sheet.mode&&T?"SMALL"===g.sheet.collapsedVisibleHeight?69:128:0,k=T&&"BUTTON"===g.sheet.mode,I=k?76:0,P=(u?80:0)+I,L=Object(Eo.useContext)(Na),R=e=>{const t=i.find((t=>t.barcode.text===e.text)),n=S(e);return new _y(null==n?void 0:n.count,null==t?void 0:t.count)},_=A().reduce(((e,t)=>e+t.count),0);f&&D.textReplacementArgs.push(_.toString());const j=f?new Fy(g.sheetContent.barcodeItemSubtitle.text,i,A()):m,M=!f&&0===y;return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(Sv.Provider,{value:j},Eo.default.createElement(Qs,{container:!0,sx:{display:"flex",flexDirection:T?"column":"row",height:`calc(${L.remainingVisibleBodyHeight} - ${B}px)`},alignItems:"stretch"},Eo.default.createElement(Qs,{id:l,item:!0,ref:t,component:"div",xs:T?12:7,zIndex:100},k&&Eo.default.createElement(Py,{style:{position:"absolute",marginTop:`calc(${L.remainingVisibleBodyHeight} - 60px - 8px)`,width:"100%",display:"flex",justifyContent:"center",zIndex:1100},text:f?`${y}/${_}`:y.toString(),onClick:()=>c(!s),buttonStyling:g.sheet.listButton}),Eo.default.createElement(kv,{viewFinderPadding:{minTopPadding:L.minTopPaddingForContent,minBottomPadding:P},arOverlay:(()=>{if(f){const e=g.arOverlay;return Object.assign(Object.assign({},e),{counterBadge:Object.assign({},e.badge.partiallyScanned)})}const e=g.arOverlay,t=e.counterBadge;return Object.assign(Object.assign({},e),{counterBadge:Object.assign(Object.assign({},t),{visible:t.visible&&"COUNTING"===v})})})(),containerId:l,barcodeScannerViewConfig:b.current,onCameraPermissionDenied:e.onCameraPermissionDenied,actionBarConfig:e.configuration.actionBar,actionBarBottomPadding:16+I,setActionButtonsVisible:d,arOnBarcodeClick:e=>{o({type:"onARCodeClick",barcode:e})},arOnBarcodeEnter:(e,t,n)=>{if(!n||!t)return;o({type:"setHtmlElements",barcode:e,labelElement:n,polygonElement:t})},scanningPaused:s&&T,cameraConfiguration:e.configuration.cameraConfiguration,onLicenseError:e.onError}),T&&Eo.default.createElement(Lb,{closedSheetVisibleHeight:B,sheetStyle:g.sheet,contentStyle:g.sheetContent,manualCountEditDialog:g.manualCountEditDialog,isPlaceholderVisible:M,onBarcodeChange:e=>o(e),drawerHeaderContentProps:D,isOpen:s,onSwipe:e=>{c("swipe-to-open"===e)}},O)),vy("tablet")&&Eo.default.createElement(Ny,{headerProps:D,sheetContent:g.sheetContent,isEmptyStateVisible:M,barcodeList:O})),Eo.default.createElement(Nb,{barcode:r,dialogStyling:g.manualCountEditDialog,onCancel:()=>a(null),setCounter:(e,t)=>{o({type:"onCountEditDialogChange",barcode:e,count:t}),a(null)}}),Eo.default.createElement(My,{open:null!==p,style:p,onDismiss:()=>h(null),onSubmit:E})))}const zy=Object(Eo.createContext)(null),Hy={didCatch:!1,error:null};class Uy extends Eo.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Hy}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,n,i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:o,reason:"imperative-api"}),this.setState(Hy)}}componentDidCatch(e,t){var n,i;null===(n=(i=this.props).onError)||void 0===n||n.call(i,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:i}=this.props;var o,r;n&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some(((e,n)=>!Object.is(e,t[n])))}(e.resetKeys,i)&&(null===(o=(r=this.props).onReset)||void 0===o||o.call(r,{next:i,prev:e.resetKeys,reason:"keys"}),this.setState(Hy))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:i}=this.props,{didCatch:o,error:r}=this.state;let a=e;if(o){const e={error:r,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)a=t(e);else if(n)a=Object(Eo.createElement)(n,e);else{if(null!==i&&!Object(Eo.isValidElement)(i))throw r;a=i}}return Object(Eo.createElement)(zy.Provider,{value:{didCatch:o,error:r,resetErrorBoundary:this.resetErrorBoundary}},a)}}function Zy(){const e=Object(Eo.useRef)(!0);return Object(Eo.useEffect)((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function Gy(e){const t=Zy(),[,n]=Object(Eo.useReducer)((e=>e+1),0),i=Object(Eo.useRef)();return Object(Eo.useMemo)((()=>{i.current={loading:!0,value:void 0,error:null}}),[e]),function(e,t){Object(Eo.useMemo)((()=>{e&&e.then((e=>{t({loading:!1,error:null,value:e})})).catch((e=>{t({loading:!1,error:{reason:e},value:void 0})}))}),[e])}(e,(e=>{i.current=e,t.current&&n()})),e?i.current:null}var $y=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class Yy{constructor(e,t){this.barcodeItemMapper=e,this.onError=t,this.cache=new Map,this.cacheEntryPendingRetries=[],this.hash=e=>Ol(e),this.onEvictionListeners=new Set}getBarcodeMappedData(e){const t=this.hash(e);if(!this.cache.has(t)){const n=(()=>$y(this,void 0,void 0,(function*(){if(this.barcodeItemMapper){const t=new Do.BarcodeScannerUIItem({count:1,barcode:e});return this.barcodeItemMapper(t)}{const t=yield W.toDataUrl(yield sO.instance.imageToJpeg(e.sourceImage));return{title:e.text,subtitle:e.format,barcodeImage:t}}})))();this.cache.set(t,n)}return this.cache.get(t)}useBarcodeMappedData(e){const t=Object(Eo.useRef)(!1),n=Gy(e&&this.getBarcodeMappedData(e));if(Object(Eo.useEffect)((()=>{n&&n.error&&(t.current=!1,this.cacheEntryPendingRetries.push({barcode:e,retry:()=>{this.cache.delete(this.hash(e)),t.current=!0}}),this.onError((()=>{for(const e of this.cacheEntryPendingRetries)e.retry();this.cacheEntryPendingRetries.length=0}),(()=>{t.current=!0;for(const e of this.cacheEntryPendingRetries)for(const t of this.onEvictionListeners)this.hash(t.barcode)==this.hash(e.barcode)&&t.callback();this.cacheEntryPendingRetries.length=0})))}),[n&&n.error]),!n)return null;let i;return i=n.value?"LOADED":n.error&&!t.current?"RETRY_DIALOG_OPEN":n.error?"FAILED":"LOADING",{value:n.value,state:i}}addOnEvictionListener(e){this.onEvictionListeners.add(e)}removeOnEvictionListener(e){this.onEvictionListeners.delete(e)}}Do.BarcodeItemErrorState;function Qy(e){return Eo.default.createElement(jy,{open:e.open,dividerColor:e.dividerColor,modalOverlayColor:e.modalOverlayColor,sheetColor:e.sheetColor,title:e.title,subtitle:e.subtitle,cancelButton:{style:e.cancelButton,onClick:e.handleCancel},okButton:{style:e.retryButton,icon:Fb,onClick:e.handleRetry}})}var Xy=n(87),qy=n.n(Xy);function Ky(e){const t=Object(Eo.useContext)(Na);return Eo.default.createElement(ir,{sx:{paddingTop:t.minTopPaddingForContent+"px",overflowY:"scroll",backgroundColor:or.b.getColorValue(e.config.background)}},Eo.default.createElement(ir,{sx:{height:t.remainingVisibleBodyHeight,marginLeft:"auto",marginRight:"auto",maxWidth:280,display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"}},e.config.icon.visible&&Eo.default.createElement(ir,null,Eo.default.createElement(Tb,{sx:{width:100,height:100,backgroundColor:or.b.getColorValue(e.config.iconBackground),margin:"24px"}},Eo.default.createElement(qy.a,{sx:{fontSize:50,color:or.b.getColorValue(e.config.icon.color)}}))),Eo.default.createElement(kr,{sx:{fontSize:20,textAlign:"center"}},Eo.default.createElement(jr.a,{config:e.config.enableCameraTitle})),Eo.default.createElement(kr,{sx:{fontSize:16,textAlign:"center",paddingTop:"12px"}},Eo.default.createElement(jr.a,{config:e.config.enableCameraExplanation})),Eo.default.createElement(ir,{sx:{paddingTop:"16px"}},Eo.default.createElement(Fa,Object.assign({},e.config.closeButton,{onClick:e.onAppClose})))))}function Jy(e){const t=Object(Eo.useRef)(Object(Jo.a)({palette:{primary:{main:kl.ScanbotPrimary},secondary:{main:kl.DarkGray}}})),[n,i]=Object(Eo.useState)(!1),[o,r]=Object(Eo.useState)(!1),[a,s]=Object(Eo.useState)(e.configuration.timeouts.initialScanDelay<=0),c=Object(Eo.useRef)(!1),l=Object(Eo.useRef)(),u=Object(Eo.useRef)(),d=e.configuration.useCase,m="FindAndPickScanningMode"===d._type?null:d.barcodeInfoMapping,p=Object(Eo.useMemo)((()=>new Yy(null==m?void 0:m.barcodeItemMapper,((e,t)=>{i(!0),l.current=()=>{i(!1),e()},u.current=()=>{i(!1),t()}}))),[]);let h;if(Object(Eo.useMemo)((()=>{or.b.setPalette(e.configuration.palette),or.b.setLocalization(e.configuration.localization)}),[e.configuration]),Object(Eo.useEffect)((()=>{if(e.configuration.timeouts.autoCancelTimeout>0){const t=setTimeout((()=>{e.onClose()}),e.configuration.timeouts.autoCancelTimeout);return()=>{clearTimeout(t)}}}),[]),Object(Eo.useEffect)((()=>{if(e.configuration.timeouts.initialScanDelay>0){const t=setTimeout((()=>{s(!0)}),e.configuration.timeouts.initialScanDelay);return()=>{clearTimeout(t)}}}),[]),Object(Eo.useEffect)((()=>{c.current=!n&&a}),[n,a]),"SingleScanningMode"===d._type)h=Eo.default.createElement(Lv,{configuration:e.configuration,barcodeMapper:p,onClose:e.onClose,onSubmit:e.onSubmit,onError:e.onError,onCameraPermissionDenied:()=>r(!0),scanningEnabled:c});else{if("MultipleScanningMode"!==d._type&&"FindAndPickScanningMode"!==d._type)throw new Error("Unsupported use case type");h=Eo.default.createElement(Wy,{configuration:e.configuration,barcodeMapper:p,onSubmit:e.onSubmit,onError:e.onError,onCameraPermissionDenied:()=>r(!0),scanningEnabled:c})}return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(Rr,null),Eo.default.createElement(Uy,{onError:e.onError,fallback:Eo.default.createElement("div",null,"Error")},Eo.default.createElement(or.a.Provider,{value:Object(or.c)(e.configuration.palette)},Eo.default.createElement(zo,{theme:t.current},m&&Eo.default.createElement(Qy,Object.assign({open:n,handleCancel:u.current,handleRetry:l.current,modalOverlayColor:m.modalOverlayColor,dividerColor:m.dividerColor,sheetColor:m.sheetColor},m.errorState)),Eo.default.createElement(ir,{sx:{height:`100 * ${Lr}`,width:"100vw",backgroundColor:or.b.getColorValue(e.configuration.backgroundColor)}},Eo.default.createElement(Va,Object.assign({onBackPress:e.onClose},e.configuration.topBar),!o&&h,o&&Eo.default.createElement(Ky,{onAppClose:e.onClose,config:e.configuration.cameraPermission})))))))}class eC{constructor(e){this.document=e}}var tC=n(37),nC=n(66),iC=n.n(nC);function oC(e){const{color:t}=e;return Eo.default.createElement("svg",{width:"286",height:"240",viewBox:"0 0 286 240",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Eo.default.createElement("rect",{width:"286",height:"238.748",transform:"translate(0 0.489746)",fill:"transparent"}),Eo.default.createElement("path",{d:"M173.211 205.398H94.7913C93.9699 205.398 93.3054 204.733 93.3054 203.912V80.0909C93.3054 79.2695 93.9699 78.605 94.7913 78.605H173.211C174.033 78.605 174.697 79.2695 174.697 80.0909V203.912C174.697 204.733 174.033 205.398 173.211 205.398ZM96.2771 202.426H171.726V81.5767H96.2771V202.426ZM160.829 184.761H152.575V181.789H160.829V184.761ZM160.829 168.252H107.173V165.28H160.829V168.252ZM160.829 151.742H152.575V148.77H160.829V151.742ZM136.065 151.742H107.173V148.77H136.065V151.742ZM160.829 135.233H152.575V132.261H160.829V135.233ZM136.065 135.233H107.173V132.261H136.065V135.233ZM160.829 118.723H152.575V115.751H160.829V118.723ZM136.065 118.723H107.173V115.751H136.065V118.723ZM160.829 102.214H152.575V99.2419H160.829V102.214ZM136.065 102.214H107.173V99.2419H136.065V102.214Z",fill:t}),Eo.default.createElement("path",{d:"M178.826 66.5525H170.571V63.5808H178.826V66.5525ZM154.062 66.5525H125.17V63.5808H154.062V66.5525ZM178.826 50.043H170.571V47.0713H178.826V50.043ZM154.062 50.043H125.17V47.0713H154.062V50.043Z",fill:t}),Eo.default.createElement("path",{d:"M111.302 35.8152C111.302 34.9939 111.967 34.3293 112.788 34.3293H191.208C192.03 34.3293 192.694 34.9939 192.694 35.8152V135.232C192.694 136.053 192.03 136.718 191.208 136.718H173.213V133.746H189.722V37.3011H114.274V80.0903H111.302V35.8152Z",fill:t}),Eo.default.createElement("path",{d:"M174.46 79.6618C174.202 78.8819 173.363 78.4596 172.583 78.7174L172.105 82.0053L188.88 134.381L191.134 136.258C191.134 136.258 191.134 134.195 192.079 134.381L174.46 79.6618Z",fill:t}),Eo.default.createElement("g",{style:{mixBlendMode:"soft-light"}},Eo.default.createElement("path",{d:"M172.051 142.95V124.876L96.3274 152.397V170.471L172.051 142.95Z",fill:t})))}function rC(e){const{color:t}=e;return Eo.default.createElement("svg",{width:"286",height:"239",viewBox:"0 0 286 239",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Eo.default.createElement("rect",{width:"286",height:"238.748",transform:"translate(0 0.237671)",fill:"transparent"}),Eo.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M85.3575 73.6228C84.5124 73.6228 83.8287 74.3065 83.8287 75.1516V189.81C83.8287 190.655 84.5124 191.339 85.3575 191.339H174.536C175.381 191.339 176.065 190.655 176.065 189.81V100.631C176.065 100.224 175.904 99.8371 175.619 99.5526L150.139 74.073C149.851 73.7842 149.464 73.6228 149.057 73.6228H85.3575ZM86.8863 76.6804V188.281H173.007V102.16H149.057C148.212 102.16 147.528 101.476 147.528 100.631V76.6804H86.8863ZM170.846 99.1025L150.585 78.8419V99.1025H170.846Z",fill:t}),Eo.default.createElement("path",{d:"M147.528 177.665H96.5686V174.607H147.528V177.665ZM164.514 167.048H96.5686V163.991H164.514V167.048ZM164.514 156.432H96.5686V153.374H164.514V156.432ZM133.149 105.956L130.987 103.795L119.33 115.456L109.767 105.893C113.742 104.559 116.613 100.801 116.613 96.3846C116.613 90.8598 112.115 86.3626 106.591 86.3626H96.5686V121.864H99.6261V106.407H105.958L117.169 117.618L105.508 129.279L107.669 131.44L119.33 119.779L130.992 131.44L133.153 129.279L121.492 117.618L133.149 105.956ZM99.6261 103.349V89.4202H106.591C110.429 89.4202 113.555 92.5457 113.555 96.3846C113.555 100.224 110.429 103.349 106.591 103.349H99.6261Z",fill:t}),Eo.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M98.0973 60.883C97.2523 60.883 96.5686 61.5667 96.5686 62.4118V73.6228H99.6261V63.9406H160.268V87.8914C160.268 88.7365 160.951 89.4202 161.796 89.4202H185.747V175.541H176.076V178.599H187.276C188.121 178.599 188.805 177.915 188.805 177.07V87.8914C188.805 87.4838 188.643 87.0973 188.359 86.8128L162.879 61.3331C162.591 61.0444 162.204 60.883 161.796 60.883H98.0973ZM183.586 86.3626L163.325 66.1021V86.3626H183.586Z",fill:t}),Eo.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M110.837 48.1432C109.992 48.1432 109.308 48.8269 109.308 49.672V60.883H112.366V51.2007H173.007V75.1516C173.007 75.9967 173.691 76.6804 174.536 76.6804H198.487V162.802H188.816V165.859H200.016C200.861 165.859 201.545 165.175 201.545 164.33V75.1516C201.545 74.7439 201.383 74.3575 201.099 74.073L175.619 48.5933C175.33 48.3046 174.944 48.1432 174.536 48.1432H110.837ZM196.326 73.6228L176.065 53.3623V73.6228H196.326Z",fill:t}),Eo.default.createElement("g",{style:{mixBlendMode:"soft-light"}},Eo.default.createElement("path",{d:"M172.844 188.832H86.629V113.394L172.844 148.212V188.832Z",fill:"url(#paint0_linear_557_1465)"})),Eo.default.createElement("defs",null,Eo.default.createElement("linearGradient",{id:"paint0_linear_557_1465",x1:"130.151",y1:"118.368",x2:"129.736",y2:"188.832",gradientUnits:"userSpaceOnUse"},Eo.default.createElement("stop",{stopColor:t,stopOpacity:"0"}),Eo.default.createElement("stop",{offset:"0.722496",stopColor:t}))))}function aC(e){const{color:t}=e;return Eo.default.createElement("svg",{width:"286",height:"239",viewBox:"0 0 286 239",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Eo.default.createElement("rect",{width:"286",height:"238.748",fill:"transparent"}),Eo.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M85.2563 72.9183C84.4112 72.9183 83.7275 73.607 83.7275 74.4583V189.956C83.7275 190.807 84.4112 191.496 85.2563 191.496H174.435C175.28 191.496 175.964 190.807 175.964 189.956V100.124C175.964 99.7137 175.802 99.3244 175.518 99.0378L150.038 73.3717C149.75 73.0808 149.363 72.9183 148.955 72.9183H85.2563ZM86.7851 75.9982V188.416H172.906V101.664H148.955C148.11 101.664 147.427 100.976 147.427 100.124V75.9982H86.7851ZM170.745 98.5844L150.484 78.1756V98.5844H170.745Z",fill:t}),Eo.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M161.695 124.25H97.9961V127.33H161.695V124.25ZM161.695 137.084H97.9961V140.168H161.695V137.084ZM161.695 149.917H97.9961V153.001H161.695V149.917ZM161.695 162.75H97.9961V165.834H161.695V162.75Z",fill:t}),Eo.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M97.9961 60.0852C97.1511 60.0852 96.4674 60.774 96.4674 61.6252V72.9183H99.5249V63.1652H160.166V87.2913C160.166 88.1426 160.85 88.8313 161.695 88.8313H185.646V175.583H175.975V178.663H187.175C188.02 178.663 188.704 177.974 188.704 177.123V87.2913C188.704 86.8807 188.542 86.4914 188.258 86.2048L162.778 60.5387C162.489 60.2478 162.103 60.0852 161.695 60.0852H97.9961ZM183.485 85.7513L163.224 65.3425V85.7513H183.485Z",fill:t}),Eo.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M110.736 47.2522C109.891 47.2522 109.207 47.9409 109.207 48.7922V60.0852H112.265V50.3321H172.906V74.4583C172.906 75.3095 173.59 75.9982 174.435 75.9982H198.386V162.75H188.715V165.83H199.915C200.76 165.83 201.443 165.141 201.443 164.29V74.4583C201.443 74.0476 201.282 73.6583 200.998 73.3717L175.518 47.7056C175.229 47.4147 174.843 47.2522 174.435 47.2522H110.736ZM196.224 72.9183L175.964 52.5095V72.9183H196.224Z",fill:t}),Eo.default.createElement("g",{style:{mixBlendMode:"soft-light"}},Eo.default.createElement("path",{d:"M172.844 188.594H86.629V113.156L172.844 147.974V188.594Z",fill:"url(#paint0_linear_557_1462)"})),Eo.default.createElement("defs",null,Eo.default.createElement("linearGradient",{id:"paint0_linear_557_1462",x1:"130.151",y1:"118.13",x2:"129.736",y2:"188.594",gradientUnits:"userSpaceOnUse"},Eo.default.createElement("stop",{stopColor:t,stopOpacity:"0"}),Eo.default.createElement("stop",{offset:"0.722496",stopColor:t}))))}function sC(e){const{color:t}=e;return Eo.default.createElement("svg",{width:"286",height:"239",viewBox:"0 0 286 239",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Eo.default.createElement("rect",{width:"286",height:"238.748",transform:"translate(0 0.252197)",fill:"transparent"}),Eo.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.8858 67.2461H206.331C207.315 67.2461 208.112 68.0427 208.112 69.0274V148.198C208.112 149.183 207.315 149.979 206.331 149.979H57.8858C56.9011 149.979 56.1045 149.183 56.1045 148.198V69.0274C56.1045 68.0427 56.9011 67.2461 57.8858 67.2461ZM204.549 70.8088H188.502L184.935 70.8038H79.2767L75.719 70.8088H59.6672V146.417H204.549V70.8088Z",fill:t}),Eo.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M192.232 131.072H70.4609V134.579H192.232V131.072Z",fill:t}),Eo.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M137.023 124.445H70.4609V127.951H137.023V124.445Z",fill:t}),Eo.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M154.834 91.8126C156.378 91.2748 157.875 91.8812 159.135 93.0581C159.912 93.7836 160.383 94.9148 160.697 96.2223C161.89 101.192 158.931 105.086 155.401 107.747C154.487 108.436 153.507 109.065 152.504 109.634C152.629 111.883 152.971 113.886 153.518 115.307C153.958 116.449 154.414 116.91 154.695 117.045C154.824 117.106 155.197 117.245 156.082 116.593C157.154 115.804 158.48 114.339 160.054 111.889C162.325 108.353 163.811 105.745 164.733 103.853C164.871 103.57 164.994 103.305 165.105 103.06C164.618 101.743 165.065 100.362 165.498 99.625C165.624 99.4115 165.788 99.1797 165.997 98.9797C166.151 98.8316 166.576 98.4573 167.217 98.4428C167.593 98.4343 167.97 98.5556 168.278 98.8062C168.562 99.0368 168.712 99.3145 168.792 99.5191C168.942 99.9021 168.95 100.295 168.937 100.573C168.909 101.173 168.741 101.894 168.437 102.749C168.829 103.064 169.379 103.266 170.06 103.302C171.173 103.362 172.298 102.941 172.954 102.213C174.863 100.095 177.418 98.185 180.536 97.8253C181.365 97.7297 182.224 97.6408 183.098 97.5504C186.089 97.241 189.256 96.9135 191.961 96.2372C193.699 95.8027 195.099 95.2557 196.067 94.5713C196.998 93.9135 197.455 93.1906 197.539 92.3236L200.494 92.6118C200.305 94.546 199.225 95.9753 197.781 96.9957C196.375 97.9894 194.564 98.6466 192.681 99.1174C189.748 99.8507 186.282 100.208 183.263 100.519C182.426 100.606 181.624 100.688 180.876 100.775C178.776 101.017 176.834 102.343 175.159 104.201C173.808 105.699 171.758 106.366 169.903 106.267C168.995 106.219 168.054 105.978 167.227 105.507C166.23 107.501 164.725 110.11 162.552 113.493C160.889 116.083 159.331 117.887 157.843 118.984C156.448 120.011 154.889 120.429 153.414 119.723C152.091 119.09 151.273 117.738 150.747 116.374C150.182 114.907 149.821 113.068 149.634 111.082C147.662 111.967 145.746 112.619 144.193 113.033L143.427 110.165C145.145 109.706 147.328 108.933 149.482 107.874C149.478 107.086 149.496 106.294 149.536 105.509C149.738 101.57 150.496 97.4995 151.843 94.8477C152.501 93.5543 153.451 92.2939 154.834 91.8126ZM152.479 106.174C152.868 105.918 153.248 105.652 153.614 105.376C156.807 102.969 158.585 100.145 157.81 96.9152C157.538 95.781 157.238 95.349 157.108 95.2275C156.299 94.4715 155.923 94.577 155.81 94.6164C155.534 94.7123 155.042 95.107 154.49 96.1927C153.42 98.2992 152.695 101.883 152.501 105.661C152.493 105.832 152.485 106.003 152.479 106.174ZM165.971 100.375C165.971 100.375 165.972 100.379 165.972 100.388L165.971 100.375Z",fill:t}),Eo.default.createElement("path",{d:"M74.5812 93.19H81.7632C84.4565 93.19 86.647 95.3805 86.647 98.0737C86.647 100.767 84.4565 102.957 81.7632 102.957H79.4686V107.051H76.8794V102.957H70.9902V100.372H81.7632C83.0308 100.372 84.0615 99.3413 84.0615 98.0737C84.0615 96.8061 83.0308 95.7755 81.7632 95.7755H74.5812C71.888 95.7755 69.6974 93.585 69.6974 90.8917C69.6974 88.1985 71.888 86.0079 74.5812 86.0079H76.8794V81.9142H79.465V86.0079H85.3542V88.5935H74.5812C73.3136 88.5935 72.283 89.6241 72.283 90.8917C72.283 92.1593 73.3136 93.19 74.5812 93.19Z",fill:t}),Eo.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M85.851 89.0878H74.5831C73.5888 89.0878 72.7797 89.8969 72.7797 90.8912C72.7797 91.8856 73.5888 92.6947 74.5831 92.6947H81.7651C84.7317 92.6947 87.1437 95.1067 87.1437 98.0732C87.1437 101.04 84.7317 103.452 81.7651 103.452H79.9653V107.546H76.3866V103.452H70.4973V99.8767H81.7651C82.7595 99.8767 83.5686 99.0676 83.5686 98.0732C83.5686 97.0789 82.7595 96.2698 81.7651 96.2698H74.5831C71.6166 96.2698 69.2046 93.8578 69.2046 90.8912C69.2046 87.9247 71.6166 85.5126 74.5831 85.5126H76.3866V81.4189H79.9617V85.5126H85.851V89.0878ZM85.3542 86.0079V88.5935H74.5812C73.3136 88.5935 72.283 89.6241 72.283 90.8917C72.283 92.1593 73.3136 93.19 74.5812 93.19H81.7632C84.4565 93.19 86.647 95.3805 86.647 98.0737C86.647 100.767 84.4565 102.957 81.7632 102.957H79.4686V107.051H76.8794V102.957H70.9902V100.372H81.7632C83.0308 100.372 84.0615 99.3413 84.0615 98.0737C84.0615 96.8061 83.0308 95.7755 81.7632 95.7755H74.5812C71.888 95.7755 69.6974 93.585 69.6974 90.8917C69.6974 88.1985 71.888 86.0079 74.5812 86.0079H76.8794V81.9142H79.465V86.0079H85.3542Z",fill:t}),Eo.default.createElement("path",{d:"M77.888 170.225C77.888 171.209 78.6847 172.006 79.6694 172.006H228.114C229.099 172.006 229.895 171.209 229.895 170.225V91.0542C229.895 90.0696 229.099 89.2729 228.114 89.2729H206.718V92.8306L210.286 92.8356H226.333V168.443H81.4507V148.197H77.888V170.225Z",fill:t}),Eo.default.createElement("g",{style:{mixBlendMode:"soft-light"}},Eo.default.createElement("path",{d:"M124.937 70.8245H143.011L115.49 146.438H97.4164L124.937 70.8245Z",fill:t})),Eo.default.createElement("g",{style:{mixBlendMode:"soft-light"}},Eo.default.createElement("path",{d:"M157.336 70.8245H162.725L134.954 146.438H129.565L157.336 70.8245Z",fill:t})))}function cC(e){const{color:t}=e;return Eo.default.createElement("svg",{width:"286",height:"240",viewBox:"0 0 286 240",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Eo.default.createElement("rect",{width:"286",height:"238.748",transform:"translate(0 0.371094)",fill:"transparent"}),Eo.default.createElement("path",{d:"M130.218 153.186H68.4406C63.9202 153.186 60.516 149.782 60.516 145.272V72.9456C60.516 68.4316 63.9202 65.0322 68.4406 65.0322H183.475C187.996 65.0322 191.4 68.4316 191.4 72.9456V126.127H188.332V72.9456C188.332 70.1334 186.291 68.0955 183.475 68.0955H68.4406C65.6244 68.0955 63.5836 70.1334 63.5836 72.9456V145.272C63.5836 148.08 65.6244 150.122 68.4406 150.122H130.218V153.186ZM167.041 114.518H128.493V111.455H167.041V114.518Z",fill:t}),Eo.default.createElement("path",{d:"M121.698 153.186H183.476C187.997 153.186 191.401 149.782 191.401 145.272L191.4 72.9456C191.4 68.4316 187.996 65.0322 183.475 65.0322H68.4406C63.9202 65.0322 60.516 68.4316 60.516 72.9456L60.5169 126.127H63.5845L63.5836 72.9456C63.5836 70.1334 65.6244 68.0955 68.4406 68.0955H183.475C186.291 68.0955 188.332 70.1334 188.332 72.9456L188.333 145.272C188.333 148.08 186.292 150.122 183.476 150.122H121.698V153.186Z",fill:t}),Eo.default.createElement("path",{d:"M215.429 174.458H104.655C99.1122 174.458 94.6003 169.953 94.6003 164.418V152.25H97.6679V164.418C97.6679 168.264 100.804 171.395 104.655 171.395H215.429C219.281 171.395 222.417 168.268 222.417 164.418V96.3454C222.417 92.4994 219.285 89.368 215.429 89.368H190.462V86.3048H215.429C220.976 86.3048 225.484 90.8103 225.484 96.3454V164.418C225.484 169.957 220.976 174.458 215.429 174.458Z",fill:t}),Eo.default.createElement("path",{d:"M166.838 91.7213H128.493V88.658H166.838V91.7213Z",fill:"#A5A5A5"}),Eo.default.createElement("path",{d:"M167.041 103.232H128.696V100.169H167.041V103.232Z",fill:"#A5A5A5"}),Eo.default.createElement("path",{d:"M177.817 140.631H74.0316V137.568H177.817V140.631Z",fill:"#A5A5A5"}),Eo.default.createElement("path",{d:"M208.701 108.301H191.401V105.238H208.701V108.301Z",fill:"#A5A5A5"}),Eo.default.createElement("path",{d:"M208.904 119.812H191.603V116.748H208.904V119.812Z",fill:"#A5A5A5"}),Eo.default.createElement("path",{d:"M191.401 128.035V131.098H208.904V128.035H191.401Z",fill:"#A5A5A5"}),Eo.default.createElement("path",{d:"M112.159 121.403H115.229V119.282C115.229 111.233 110.38 103.947 103.123 100.631C106.044 98.1624 107.766 94.5534 107.766 90.656C107.766 83.3827 101.818 77.4666 94.5044 77.4666C87.1911 77.4666 81.2423 83.3827 81.2423 90.656C81.2423 94.5534 82.9651 98.1624 85.8862 100.631C78.6283 103.947 73.7798 111.233 73.7798 119.282V121.403H76.8501V119.282C76.8501 111.551 82.1165 104.643 89.6559 102.488C90.2614 102.314 90.7006 101.788 90.7603 101.165C90.82 100.542 90.4917 99.9436 89.9288 99.6595C86.4619 97.908 84.3127 94.4601 84.3127 90.656C84.3127 85.0664 88.884 80.5201 94.5044 80.5201C100.125 80.5201 104.696 85.0664 104.696 90.656C104.696 94.4601 102.543 97.908 99.08 99.6595C98.5171 99.9436 98.1888 100.542 98.2485 101.165C98.3082 101.788 98.7474 102.314 99.3529 102.488C106.892 104.643 112.159 111.551 112.159 119.282V121.403Z",fill:"#A5A5A5"}),Eo.default.createElement("g",{style:{mixBlendMode:"soft-light"}},Eo.default.createElement("path",{d:"M126.999 68.3479H145.072L117.552 150.417H99.4783L126.999 68.3479Z",fill:t})),Eo.default.createElement("g",{style:{mixBlendMode:"soft-light"}},Eo.default.createElement("path",{d:"M164.554 68.3479H169.942L142.171 150.417H136.783L164.554 68.3479Z",fill:t})))}function lC(e){const{color:t}=e;return Eo.default.createElement("svg",{width:"286",height:"239",viewBox:"0 0 286 239",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Eo.default.createElement("rect",{width:"286",height:"238.748",transform:"translate(0 0.118896)",fill:"transparent"}),Eo.default.createElement("path",{d:"M130.218 152.933H68.4406C63.9202 152.933 60.516 149.53 60.516 145.02V72.6932C60.516 68.1791 63.9202 64.7798 68.4406 64.7798H183.475C187.996 64.7798 191.4 68.1791 191.4 72.6932V125.875H188.332V72.6932C188.332 69.8809 186.291 67.843 183.475 67.843H68.4406C65.6244 67.843 63.5836 69.8809 63.5836 72.6932V145.02C63.5836 147.828 65.6244 149.87 68.4406 149.87H130.218V152.933ZM113.176 135.915H74.8314V132.852H113.176V135.915ZM100.395 101.879H74.8314C73.9836 101.879 73.2976 101.194 73.2976 100.348V79.075C73.2976 78.2283 73.9836 77.5433 74.8314 77.5433H100.395C101.242 77.5433 101.928 78.2283 101.928 79.075V100.348C101.928 101.194 101.242 101.879 100.395 101.879ZM93.4074 98.8159H98.8609V89.1156H93.4074V98.8159ZM84.8863 98.8159H90.344V87.584C90.344 86.7373 91.03 86.0524 91.8778 86.0524H98.8651V80.6066H84.8863V98.8159ZM76.3652 98.8159H81.8187V93.3701H76.3652V98.8159ZM76.3652 90.3069H81.8187V80.6066H76.3652V90.3069Z",fill:t}),Eo.default.createElement("path",{d:"M121.698 152.933H183.476C187.997 152.933 191.401 149.53 191.401 145.02L191.4 72.6932C191.4 68.1791 187.996 64.7798 183.475 64.7798H68.4406C63.9202 64.7798 60.516 68.1791 60.516 72.6932L60.5169 125.875H63.5845L63.5836 72.6932C63.5836 69.8809 65.6244 67.843 68.4406 67.843H183.475C186.291 67.843 188.332 69.8809 188.332 72.6932L188.333 145.02C188.333 147.828 186.292 149.87 183.476 149.87H121.698V152.933Z",fill:t}),Eo.default.createElement("path",{d:"M215.429 174.206H104.655C99.1122 174.206 94.6003 169.7 94.6003 164.165V151.997H97.6679V164.165C97.6679 168.011 100.804 171.143 104.655 171.143H215.429C219.281 171.143 222.417 168.016 222.417 164.165V118.897H190.462V115.834H222.417V106.134H190.462V103.07H222.417V96.093C222.417 92.2469 219.285 89.1156 215.429 89.1156H190.462V86.0524H215.429C220.976 86.0524 225.484 90.5579 225.484 96.093V164.165C225.484 169.705 220.976 174.206 215.429 174.206Z",fill:t}),Eo.default.createElement("g",{style:{mixBlendMode:"soft-light"}},Eo.default.createElement("path",{d:"M111.248 68.0957H129.322L101.801 150.165H83.7275L111.248 68.0957Z",fill:t})),Eo.default.createElement("g",{style:{mixBlendMode:"soft-light"}},Eo.default.createElement("path",{d:"M154.606 68.0957H159.994L132.223 150.165H126.835L154.606 68.0957Z",fill:t})))}function uC(e){if(e.source instanceof tC.j)return null;const t="#FFFFFF";return Eo.default.createElement(ir,{sx:{backgroundColor:"rgb(191, 191, 191)",borderRadius:1,width:"100%",height:250}},Eo.default.createElement(ir,{sx:{padding:"10px",display:"flex",alignItems:"center",justifyContent:"center",height:"calc(100% - 20px)"}},(()=>{if(e.source instanceof tC.k)return Eo.default.createElement(oC,{color:t});if(e.source instanceof tC.i)return Eo.default.createElement(rC,{color:t});if(e.source instanceof tC.d)return Eo.default.createElement(aC,{color:t});if(e.source instanceof tC.a)return Eo.default.createElement(sC,{color:t});if(e.source instanceof tC.e)return Eo.default.createElement(cC,{color:t});if(e.source instanceof tC.b)return Eo.default.createElement(lC,{color:t});if(e.source instanceof tC.c){const n=e.source;return Eo.default.createElement("img",{src:n.uri,style:{color:t,backgroundColor:"rgb(191, 191, 191)",maxHeight:"100%",maxWidth:"100%"},alt:""})}throw new Error("Unknown intro image type")})()))}function dC(e){return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(ml,{modalOverlayColor:"rgba(0, 0, 0, 0.64)",open:e.isOpen,onClose:e.onClose,width:"min(calc(100% - 2 * 24px), 500px)",PaperProps:{sx:{m:"10px",p:"10px",maxHeight:`calc(100 * ${Lr} - 2 * 24px)`,backgroundColor:or.b.getColorValue(e.config.backgroundColor)}}},Eo.default.createElement(kr,{component:"div"},Eo.default.createElement(ir,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"}},Eo.default.createElement(jr.a,{style:Object.assign({fontWeight:600,fontSize:16},Rs(1)),config:e.config.title}),Eo.default.createElement(ir,null,Eo.default.createElement(Fa,{onClick:e.onClose,visible:e.config.topBarDoneButton.visible,text:e.config.topBarDoneButton.text,background:e.config.topBarDoneButton.background,foreground:e.config.topBarDoneButton.foreground,icon:Eo.default.createElement(iC.a,{sx:{fontSize:24}}),debugName:"close-introduction"}))),Eo.default.createElement(ir,{sx:{width:"100%",border:`1px solid ${or.b.getColorValue(e.config.dividerColor)}`,marginBottom:"12px"}}),Eo.default.createElement(jr.a,{config:e.config.subtitle,style:{fontSize:16,paddingBottom:"10px"}}),e.config.items.map(((e,t)=>{const n=e.image instanceof tC.j;return Eo.default.createElement(ir,{key:t,sx:{display:"flex",flexDirection:"column"}},Eo.default.createElement(ir,{sx:{pt:n?0:"10px",pb:n?0:"10px"}},Eo.default.createElement(uC,{source:e.image})),Eo.default.createElement(jr.a,{style:{fontWeight:500,fontSize:14,padding:1,paddingLeft:15,textIndent:-15},config:e.text}))})))))}var mC=n(121),pC=n.n(mC);function hC(e){return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(ir,{sx:{backgroundColor:or.b.getColorValue(e.backgroundColor),display:"flex",justifyContent:"space-between",alignItems:"center",height:50,width:"100vw"}},Eo.default.createElement(ir,{style:{flexBasis:0,flexGrow:1}},e.leftContent),Eo.default.createElement(ir,null,Eo.default.createElement("h1",{style:{fontSize:18,fontWeight:500,textAlign:"center"}},Eo.default.createElement(jr.a,{config:e.centerTitle,replacementArgs:e.centerTitleReplacementArgs}))),Eo.default.createElement(ir,{style:{flexBasis:0,flexGrow:1,textAlign:"right",whiteSpace:"nowrap"}},e.rightContent)))}var fC=n(98),gC=n.n(fC),vC=n(118),bC=n.n(vC),yC=n(119),CC=n.n(yC),AC=(n(105),bc);const SC=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function wC(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function xC(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function EC(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function OC(e,t,n,i,o,r){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!i&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&EC(s,r)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}var DC=Eo.forwardRef((function(e,t){const{actions:n,autoFocus:i=!1,autoFocusItem:o=!1,children:r,className:a,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:l,variant:u="selectedMenu"}=e,d=Object(Bo.a)(e,SC),m=Eo.useRef(null),p=Eo.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Object(nb.a)((()=>{i&&m.current.focus()}),[i]),Eo.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!m.current.style.width;if(e.clientHeight<m.current.clientHeight&&n){const n=`${AC(Object(tb.a)(e))}px`;m.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,m.current.style.width=`calc(100% + ${n})`}return m.current}})),[]);const h=Object(Fr.a)(m,t);let f=-1;Eo.Children.forEach(r,((e,t)=>{Eo.isValidElement(e)?(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===f)&&(f=t),f===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(f+=1,f>=r.length&&(f=-1))):f===t&&(f+=1,f>=r.length&&(f=-1))}));const g=Eo.Children.map(r,((e,t)=>{if(t===f){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),Eo.cloneElement(e,t)}return e}));return Object(Lo.jsx)(Ub,Object(To.a)({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=m.current,n=e.key,i=Object(tb.a)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),OC(t,i,c,s,wC);else if("ArrowUp"===n)e.preventDefault(),OC(t,i,c,s,xC);else if("Home"===n)e.preventDefault(),OC(t,null,c,s,wC);else if("End"===n)e.preventDefault(),OC(t,null,c,s,xC);else if(1===n.length){const o=p.current,r=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&r!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(r);const c=i&&!o.repeating&&EC(i,o);o.previousKeyMatched&&(c||OC(t,i,!1,s,wC,o))?e.preventDefault():o.previousKeyMatched=!1}l&&l(e)},tabIndex:i?0:-1},d,{children:g}))}));const TC=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function BC(e){return`scale(${e}, ${e**2})`}const kC={entering:{opacity:1,transform:BC(1)},entered:{opacity:1,transform:"none"}},IC="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),PC=Eo.forwardRef((function(e,t){const{addEndListener:n,appear:i=!0,children:o,easing:r,in:a,onEnter:s,onEntered:c,onEntering:l,onExit:u,onExited:d,onExiting:m,style:p,timeout:h="auto",TransitionComponent:f=Wc}=e,g=Object(Bo.a)(e,TC),v=Object(Xr.b)(),b=Eo.useRef(),y=Ns(),C=Eo.useRef(null),A=Object(Fr.a)(C,o.ref,t),S=e=>t=>{if(e){const n=C.current;void 0===t?e(n):e(n,t)}},w=S(l),x=S(((e,t)=>{zc(e);const{duration:n,delay:i,easing:o}=Hc({style:p,timeout:h,easing:r},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:i}),y.transitions.create("transform",{duration:IC?a:.666*a,delay:i,easing:o})].join(","),s&&s(e,t)})),E=S(c),O=S(m),D=S((e=>{const{duration:t,delay:n,easing:i}=Hc({style:p,timeout:h,easing:r},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:IC?o:.666*o,delay:IC?n:n||.333*o,easing:i})].join(","),e.style.opacity=0,e.style.transform=BC(.75),u&&u(e)})),T=S(d);return Object(Lo.jsx)(f,Object(To.a)({appear:i,in:a,nodeRef:C,onEnter:x,onEntered:E,onEntering:w,onExit:D,onExited:T,onExiting:O,addEndListener:e=>{"auto"===h&&v.start(b.current||0,e),n&&n(C.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>Eo.cloneElement(o,Object(To.a)({style:Object(To.a)({opacity:0,transform:BC(.75),visibility:"exited"!==e||a?void 0:"hidden"},kC[e],p,o.props.style),ref:A},t))}))}));PC.muiSupportAuto=!0;var LC=PC;function RC(e){return Object(dr.a)("MuiPopover",e)}Object(er.a)("MuiPopover",["root","paper"]);const _C=["onEntering"],jC=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],MC=["slotProps"];function FC(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function NC(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function VC(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function WC(e){return"function"==typeof e?e():e}const zC=Object(ar.a)(tl,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),HC=Object(ar.a)(fr,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var UC=Eo.forwardRef((function(e,t){var n,i,o;const r=Object(sr.a)({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:u="anchorEl",children:d,className:m,container:p,elevation:h=8,marginThreshold:f=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:A=LC,transitionDuration:S="auto",TransitionProps:{onEntering:w}={},disableScrollLock:x=!1}=r,E=Object(Bo.a)(r.TransitionProps,_C),O=Object(Bo.a)(r,jC),D=null!=(n=null==y?void 0:y.paper)?n:v,T=Eo.useRef(),B=Object(Fr.a)(T,D.ref),k=Object(To.a)({},r,{anchorOrigin:c,anchorReference:u,elevation:h,marginThreshold:f,externalPaperSlotProps:D,transformOrigin:C,TransitionComponent:A,transitionDuration:S,TransitionProps:E}),I=(e=>{const{classes:t}=e;return Object(rr.a)({root:["root"],paper:["paper"]},RC,t)})(k),P=Eo.useCallback((()=>{if("anchorPosition"===u)return l;const e=WC(s),t=(e&&1===e.nodeType?e:Object(tb.a)(T.current).body).getBoundingClientRect();return{top:t.top+FC(t,c.vertical),left:t.left+NC(t,c.horizontal)}}),[s,c.horizontal,c.vertical,l,u]),L=Eo.useCallback((e=>({vertical:FC(e,C.vertical),horizontal:NC(e,C.horizontal)})),[C.horizontal,C.vertical]),R=Eo.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=L(t);if("none"===u)return{top:null,left:null,transformOrigin:VC(n)};const i=P();let o=i.top-n.vertical,r=i.left-n.horizontal;const a=o+t.height,c=r+t.width,l=Object(Vv.a)(WC(s)),d=l.innerHeight-f,m=l.innerWidth-f;if(null!==f&&o<f){const e=o-f;o-=e,n.vertical+=e}else if(null!==f&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==f&&r<f){const e=r-f;r-=e,n.horizontal+=e}else if(c>m){const e=c-m;r-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(r)}px`,transformOrigin:VC(n)}}),[s,u,P,L,f]),[_,j]=Eo.useState(g),M=Eo.useCallback((()=>{const e=T.current;if(!e)return;const t=R(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,j(!0)}),[R]);Eo.useEffect((()=>(x&&window.addEventListener("scroll",M),()=>window.removeEventListener("scroll",M))),[s,x,M]);Eo.useEffect((()=>{g&&M()})),Eo.useImperativeHandle(a,(()=>g?{updatePosition:()=>{M()}}:null),[g,M]),Eo.useEffect((()=>{if(!g)return;const e=Object(Nv.a)((()=>{M()})),t=Object(Vv.a)(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,M]);let F=S;"auto"!==S||A.muiSupportAuto||(F=void 0);const N=p||(s?Object(tb.a)(WC(s)).body:void 0),V=null!=(i=null==b?void 0:b.root)?i:zC,W=null!=(o=null==b?void 0:b.paper)?o:HC,z=pc({elementType:W,externalSlotProps:Object(To.a)({},D,{style:_?D.style:Object(To.a)({},D.style,{opacity:0})}),additionalProps:{elevation:h,ref:B},ownerState:k,className:Object(Ho.a)(I.paper,null==D?void 0:D.className)}),H=pc({elementType:V,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:O,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:N,open:g},ownerState:k,className:Object(Ho.a)(I.root,m)}),{slotProps:U}=H,Z=Object(Bo.a)(H,MC);return Object(Lo.jsx)(V,Object(To.a)({},Z,!ac(V)&&{slotProps:U,disableScrollLock:x},{children:Object(Lo.jsx)(A,Object(To.a)({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),M()},onExited:()=>{j(!1)},timeout:F},E,{children:Object(Lo.jsx)(W,Object(To.a)({},z,{children:d}))}))}))}));function ZC(e){return Object(dr.a)("MuiMenu",e)}Object(er.a)("MuiMenu",["root","paper","list"]);const GC=["onEntering"],$C=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],YC={vertical:"top",horizontal:"right"},QC={vertical:"top",horizontal:"left"},XC=Object(ar.a)(UC,{shouldForwardProp:e=>Object(ar.b)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qC=Object(ar.a)(HC,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),KC=Object(ar.a)(DC,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var JC=Eo.forwardRef((function(e,t){var n,i;const o=Object(sr.a)({props:e,name:"MuiMenu"}),{autoFocus:r=!0,children:a,className:s,disableAutoFocusItem:c=!1,MenuListProps:l={},onClose:u,open:d,PaperProps:m={},PopoverClasses:p,transitionDuration:h="auto",TransitionProps:{onEntering:f}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=Object(Bo.a)(o.TransitionProps,GC),C=Object(Bo.a)(o,$C),A=Ns(),S="rtl"===A.direction,w=Object(To.a)({},o,{autoFocus:r,disableAutoFocusItem:c,MenuListProps:l,onEntering:f,PaperProps:m,transitionDuration:h,TransitionProps:y,variant:g}),x=(e=>{const{classes:t}=e;return Object(rr.a)({root:["root"],paper:["paper"],list:["list"]},ZC,t)})(w),E=r&&!c&&d,O=Eo.useRef(null);let D=-1;Eo.Children.map(a,((e,t)=>{Eo.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===D)&&(D=t))}));const T=null!=(n=v.paper)?n:qC,B=null!=(i=b.paper)?i:m,k=pc({elementType:v.root,externalSlotProps:b.root,ownerState:w,className:[x.root,s]}),I=pc({elementType:T,externalSlotProps:B,ownerState:w,className:x.paper});return Object(Lo.jsx)(XC,Object(To.a)({onClose:u,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?YC:QC,slots:{paper:T,root:v.root},slotProps:{root:k,paper:I},open:d,ref:t,transitionDuration:h,TransitionProps:Object(To.a)({onEntering:(e,t)=>{O.current&&O.current.adjustStyleForScrollbar(e,A),f&&f(e,t)}},y),ownerState:w},C,{classes:p,children:Object(Lo.jsx)(KC,Object(To.a)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),u&&u(e,"tabKeyDown"))},actions:O,autoFocus:r&&(-1===D||c),autoFocusItem:E,variant:g},l,{className:Object(Ho.a)(x.list,l.className),children:a}))}))}));function eA(e){return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(JC,{anchorEl:e.anchor,open:null!==e.anchor,onClose:e.onClose,MenuListProps:{"aria-labelledby":"sb-button-review-more"},slotProps:{paper:{style:{backgroundColor:or.b.getColorValue(e.backgroundColor),minWidth:e.minWidth}}}},e.children))}var tA=Object(er.a)("MuiListItemIcon",["root","alignItemsFlexStart"]);var nA=Object(er.a)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function iA(e){return Object(dr.a)("MuiMenuItem",e)}var oA=Object(er.a)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const rA=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],aA=Object(ar.a)(fa,{shouldForwardProp:e=>Object(ar.b)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Object(To.a)({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${oA.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Object(lr.a)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${oA.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Object(lr.a)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${oA.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Object(lr.a)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Object(lr.a)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${oA.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${oA.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${qs.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${qs.inset}`]:{marginLeft:52},[`& .${nA.root}`]:{marginTop:0,marginBottom:0},[`& .${nA.inset}`]:{paddingLeft:36},[`& .${tA.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Object(To.a)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${tA.root} svg`]:{fontSize:"1.25rem"}}))));var sA=Eo.forwardRef((function(e,t){const n=Object(sr.a)({props:e,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:r=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:c,role:l="menuitem",tabIndex:u,className:d}=n,m=Object(Bo.a)(n,rA),p=Eo.useContext(Vb),h=Eo.useMemo((()=>({dense:r||p.dense||!1,disableGutters:s})),[p.dense,r,s]),f=Eo.useRef(null);Object(nb.a)((()=>{i&&f.current&&f.current.focus()}),[i]);const g=Object(To.a)({},n,{dense:h.dense,divider:a,disableGutters:s}),v=(e=>{const{disabled:t,dense:n,divider:i,disableGutters:o,selected:r,classes:a}=e,s={root:["root",n&&"dense",t&&"disabled",!o&&"gutters",i&&"divider",r&&"selected"]},c=Object(rr.a)(s,iA,a);return Object(To.a)({},a,c)})(n),b=Object(Fr.a)(f,t);let y;return n.disabled||(y=void 0!==u?u:-1),Object(Lo.jsx)(Vb.Provider,{value:h,children:Object(Lo.jsx)(aA,Object(To.a)({ref:b,role:l,tabIndex:y,component:o,focusVisibleClassName:Object(Ho.a)(v.focusVisible,c),className:Object(Ho.a)(v.root,d)},m,{ownerState:g,classes:v}))})}));function cA(e){const t=or.b.getColorValue(e.textColor);return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(sA,{tabIndex:0,disabled:e.disabled,autoFocus:e.autoFocus,"aria-label":or.b.getLocalizedText(e.ariaLabel),onClick:e.onClick,sx:Object.assign(Object.assign({"&, &:hover, &:focus":{backgroundColor:"transparent"}},La(t)),{paddingX:"8px",marginX:"8px"})},e.children))}var lA=n(120),uA=n.n(lA);function dA(e){const[t,n]=Eo.default.useState(!1),[i,o]=Eo.default.useState(null),r=Boolean(i),a=e.config.screens.camera.topBarCameraSelect;return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(Fa,{id:"sb-button-camera-select",ariaLabel:or.b.getLocalizedText(a.button.accessibilityDescription),onClick:e=>o(e.currentTarget),visible:a.button.visible,text:"",background:{fillColor:"transparent",strokeColor:"transparent",strokeWidth:0},foreground:{color:a.button.color,iconVisible:!0,useShadow:!1},icon:Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(gC.a,null),!r&&Eo.default.createElement(bC.a,{sx:{marginX:"-4px"}}),r&&Eo.default.createElement(CC.a,{sx:{marginX:"-4px"}})),buttonWidth:48}),Eo.default.createElement(eA,{anchor:i,ariaLabelledBy:"sb-button-camera-select",backgroundColor:a.backgroundColor,onClose:()=>o(null),minWidth:"calc(min(100% - 40px, 323px))"},Eo.default.createElement(sA,{disabled:!0,sx:{borderBottomColor:or.b.getColorValue(a.dividerColor),borderBottomStyle:"solid",borderBottomWidth:"1px",fontSize:14,marginTop:"-4px",marginBottom:"4px",marginX:"4px",width:"calc(100% - 8px)",opacity:"1 !important"}},Eo.default.createElement(jr.a,{config:a.title})),e.cameraSelectConfig.availableCameras.map((i=>{const r=i.deviceId===e.cameraSelectConfig.activeCamera.deviceId,s=r?a.menuEntryActive:a.menuEntry;return Eo.default.createElement(cA,{disabled:t,key:i.deviceId,autoFocus:r,ariaLabel:s.accessibilityDescription,textColor:s.title.color,onClick:()=>{o(null),n(!0),e.cameraSelectConfig.onSelect(i).finally((()=>n(!1)))}},s.icon.visible&&Eo.default.createElement(gC.a,{style:{color:or.b.getColorValue(s.icon.color),marginRight:"8px"}}),Eo.default.createElement(kr,{variant:"inherit",noWrap:!0},Eo.default.createElement(jr.a,{config:Object.assign(Object.assign({},s.title),{text:i.label})})),r&&Eo.default.createElement(uA.a,{style:{color:or.b.getColorValue(s.icon.color),marginLeft:"auto",paddingLeft:15,fontSize:16}}))}))))}function mA(e){const t=e.config.screens.camera;return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(hC,{backgroundColor:e.config.appearance.topBarBackgroundColor,leftContent:Eo.default.createElement(Fa,{ariaLabel:or.b.getLocalizedText(t.topBarBackButton.accessibilityDescription),onClick:e.onCloseButtonClick,visible:t.topBarBackButton.visible,text:t.topBarBackButton.text,background:t.topBarBackButton.background,foreground:t.topBarBackButton.foreground,icon:Eo.default.createElement(iC.a,{sx:{fontSize:24}}),debugName:"close-camera-screen"}),centerTitle:t.topBarTitle,rightContent:Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(ir,{style:{display:"flex",justifyContent:"space-around",alignItems:"center",whiteSpace:"nowrap",maxWidth:120,marginLeft:"auto"}},Eo.default.createElement(dA,{config:e.config,cameraSelectConfig:e.cameraSelectConfig}),Eo.default.createElement(Fa,{ariaLabel:or.b.getLocalizedText(t.topBarIntroButton.accessibilityDescription),visible:t.topBarIntroButton.visible,text:"",background:{fillColor:"transparent",strokeColor:"transparent",strokeWidth:0},foreground:{color:t.topBarIntroButton.color,iconVisible:!0,useShadow:!1},debugName:"show-introduction",icon:Eo.default.createElement(pC.a,{sx:{fontSize:24}}),onClick:e.onShowIntroButtonClick,buttonWidth:20})))}))}var pA=n(124),hA=n.n(pA);function fA(e){const t=or.b.getColorValue(e.color);return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Eo.default.createElement("path",{d:"M4 21C3.45 21 2.97917 20.8042 2.5875 20.4125C2.19583 20.0208 2 19.55 2 19V7C2 6.45 2.19583 5.97917 2.5875 5.5875C2.97917 5.19583 3.45 5 4 5H7.15L9 3H15L16.85 5H20C20.55 5 21.0208 5.19583 21.4125 5.5875C21.8042 5.97917 22 6.45 22 7V19C22 19.55 21.8042 20.0208 21.4125 20.4125C21.0208 20.8042 20.55 21 20 21H4ZM4 19H20V7H15.95L14.125 5H9.875L8.05 7H4V19Z",fill:t}),Eo.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.80078 16.5L11.0008 7.5H13.0008L16.2008 16.5H14.3008L13.6008 14.5H10.4008L9.70078 16.5H7.80078ZM13.1508 13.15H10.8508L12.0008 9.5L13.1508 13.15Z",fill:t})))}function gA(e){const t=or.b.getColorValue(e.color);return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement("svg",{width:"23",height:"22",viewBox:"0 0 23 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{paddingTop:2,paddingRight:1}},Eo.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.018 15.145L22.018 17.145V5.01997C22.018 4.46997 21.8222 3.99914 21.4305 3.60747C21.0388 3.2158 20.568 3.01997 20.018 3.01997H16.868L15.018 1.01997H9.01799L7.51799 2.64497L8.94299 4.06997L9.89299 3.01997H14.143L15.968 5.01997H20.018V15.145ZM2.60549 18.4325C2.99716 18.8241 3.46799 19.02 4.01799 19.02H18.193L20.493 21.32L21.918 19.895L21.043 19.02L19.043 17.02L15.668 13.645L14.218 12.195L10.843 8.81997L9.39299 7.36997L7.04299 5.01997L5.04299 3.01997L2.11799 0.0949707L0.692993 1.51997L2.69533 3.52231C2.66494 3.54959 2.63499 3.57797 2.60549 3.60747C2.21383 3.99914 2.01799 4.46997 2.01799 5.01997V17.02C2.01799 17.57 2.21383 18.0408 2.60549 18.4325ZM4.19299 5.01997H4.01799V17.02H16.193L14.1538 14.9807L12.6236 13.4506L11.7055 12.5325H13.618L13.726 12.841C13.9158 12.6605 14.0761 12.4519 14.2069 12.2153L13.1654 11.1741L13.168 11.1825H10.868L11.4203 9.42965L10.8219 8.83152C10.4317 9.04725 10.1179 9.3434 9.88049 9.71997C9.74455 9.93561 9.64684 10.1671 9.58737 10.4143L11.7055 12.5325H10.418L9.71799 14.5325H7.81799L9.36226 10.1892L8.05722 8.8842L4.19299 5.01997ZM14.4768 9.63538L10.8494 6.00662L11.018 5.53247H13.018L14.4768 9.63538Z",fill:t}),Eo.default.createElement("path",{d:"M9.88049 9.71997C9.74455 9.93561 9.64684 10.1671 9.58737 10.4143L11.7055 12.5325H13.618L13.726 12.841C13.9158 12.6605 14.0761 12.4519 14.2069 12.2153L13.1654 11.1741L13.168 11.1825H10.868L11.4203 9.42965L10.8219 8.83152C10.4317 9.04725 10.1179 9.3434 9.88049 9.71997Z",fill:t})))}var vA=n(122),bA=n.n(vA),yA=n(123),CA=n.n(yA);function AA(e){return"NoButtonMode"===e.config._type?Eo.default.createElement(Eo.default.Fragment,null):"PagePreviewMode"===e.config._type?Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(Ea,{"data-sb-button-preview":!0,"arial-label":or.b.getLocalizedText(e.config.accessibilityDescription),disabled:!e.enabled,sx:Object.assign({paddingY:"11px"},La(e.config.pageCounter.background.fillColor)),onClick:e.onClick},Eo.default.createElement(Iy,{text:`${e.count}`,backgroundColor:or.b.getColorValue(e.config.pageCounter.background.fillColor),badgeStyle:{borderColor:or.b.getColorValue(e.config.pageCounter.background.strokeColor),borderWidth:e.config.pageCounter.background.strokeWidth,borderStyle:"solid"},overlap:"rectangular",foregroundColor:or.b.getColorValue(e.config.pageCounter.foregroundColor)},e.previewImageUrl&&Eo.default.createElement("img",{style:{maxWidth:40,maxHeight:56},src:e.previewImageUrl,alt:"Preview image of the last page"}),!e.previewImageUrl&&Eo.default.createElement(ir,{style:{backgroundColor:or.b.getColorValue(e.config.imagePlaceholderColor),width:40,height:56}})))):"TextButtonMode"===e.config._type?Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(Ea,{"data-sb-button-preview":!0,disabled:!e.enabled,onClick:e.onClick,"aria-label":or.b.getLocalizedText(e.config.accessibilityDescription),sx:Object.assign(Object.assign({},La(e.config.style.color)),{textTransform:"none"})},Eo.default.createElement(jr.a,{config:e.config.style,replacementArgs:[`${e.count}`]}))):void 0}function SA(e){const t=or.b.getColorValue(e.color);return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement("svg",{width:"65",height:"65",viewBox:"0 0 65 65",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Eo.default.createElement("path",{d:"M6.72501 49.1933C6.13188 49.5779 5.33687 49.4102 4.97627 48.8021C1.72147 43.3141 0.176561 36.9684 0.556438 30.5796C0.96168 23.7643 3.53609 17.2572 7.90342 12.0093C12.2708 6.76151 18.202 3.04806 24.8305 1.41171C31.4589 -0.224643 38.4369 0.301896 44.7447 2.91437C51.0525 5.52685 56.3594 10.0883 59.8898 15.9321C63.4202 21.7758 64.989 28.5956 64.3669 35.3946C63.7449 42.1936 60.9646 48.6154 56.4323 53.7215C52.1838 58.508 46.6046 61.9032 40.4226 63.4828C39.7377 63.6578 39.0569 63.2143 38.9094 62.523C38.7619 61.8316 39.2037 61.1543 39.888 60.9769C45.5359 59.5128 50.6318 56.4001 54.5177 52.0221C58.6874 47.3245 61.2453 41.4164 61.8176 35.1613C62.3899 28.9063 60.9466 22.6321 57.6986 17.2558C54.4506 11.8796 49.5683 7.68302 43.7651 5.27954C37.9619 2.87607 31.5422 2.39165 25.444 3.89709C19.3459 5.40253 13.8891 8.81891 9.87115 13.6469C5.8532 18.4749 3.48475 24.4615 3.11192 30.7316C2.76447 36.5751 4.16728 42.3794 7.12605 47.4081C7.48454 48.0173 7.31814 48.8087 6.72501 49.1933Z",fill:"url(#paint0_linear_779_506)"},Eo.default.createElement("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",to:"0 32.5 32.5",from:"360 32.5 32.5",dur:"2s",begin:"0s",repeatCount:"indefinite"})),Eo.default.createElement("path",{d:"M6.72501 49.1933C6.13188 49.5779 5.33687 49.4102 4.97627 48.8021C1.72147 43.3141 0.176561 36.9684 0.556438 30.5796C0.96168 23.7643 3.53609 17.2572 7.90342 12.0093C12.2708 6.76151 18.202 3.04806 24.8305 1.41171C31.4589 -0.224643 38.4369 0.301896 44.7447 2.91437C51.0525 5.52685 56.3594 10.0883 59.8898 15.9321C63.4202 21.7758 64.989 28.5956 64.3669 35.3946C63.7449 42.1936 60.9646 48.6154 56.4323 53.7215C52.1838 58.508 46.6046 61.9032 40.4226 63.4828C39.7377 63.6578 39.0569 63.2143 38.9094 62.523C38.7619 61.8316 39.2037 61.1543 39.888 60.9769C45.5359 59.5128 50.6318 56.4001 54.5177 52.0221C58.6874 47.3245 61.2453 41.4164 61.8176 35.1613C62.3899 28.9063 60.9466 22.6321 57.6986 17.2558C54.4506 11.8796 49.5683 7.68302 43.7651 5.27954C37.9619 2.87607 31.5422 2.39165 25.444 3.89709C19.3459 5.40253 13.8891 8.81891 9.87115 13.6469C5.8532 18.4749 3.48475 24.4615 3.11192 30.7316C2.76447 36.5751 4.16728 42.3794 7.12605 47.4081C7.48454 48.0173 7.31814 48.8087 6.72501 49.1933Z",fill:"url(#paint1_linear_779_506)"},Eo.default.createElement("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",to:"0 32.5 32.5",from:"360 32.5 32.5",dur:"2s",begin:"0s",repeatCount:"indefinite"})),Eo.default.createElement("defs",null,Eo.default.createElement("linearGradient",{id:"paint0_linear_779_506",x1:"60.3614",y1:"33.7149",x2:"37.0173",y2:"64.479",gradientUnits:"userSpaceOnUse"},Eo.default.createElement("stop",{stopColor:t}),Eo.default.createElement("stop",{offset:"0.847585",stopColor:t,stopOpacity:"0"})),Eo.default.createElement("linearGradient",{id:"paint1_linear_779_506",x1:"8.69831",y1:"51.1273",x2:"20.179",y2:"68.157",gradientUnits:"userSpaceOnUse"},Eo.default.createElement("stop",{stopColor:t}),Eo.default.createElement("stop",{offset:"0.370714",stopColor:t,stopOpacity:"0"})))))}function wA(e){const t=or.b.getColorValue(e.color);return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement("svg",{width:"45",height:"44",viewBox:"0 0 45 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Eo.default.createElement("g",{clipPath:"url(#clip0_780_4723)"},Eo.default.createElement("path",{d:"M22.5127 8.09418C24.6704 8.09418 26.4195 6.34504 26.4195 4.18735C26.4195 2.02967 24.6704 0.280518 22.5127 0.280518C20.355 0.280518 18.6058 2.02967 18.6058 4.18735C18.6058 6.34504 20.355 8.09418 22.5127 8.09418Z",fill:t,fillOpacity:"0.2"},Eo.default.createElement("animate",{attributeName:"fill-opacity",values:"1;0.75;0.5;0.25;0;0",dur:"1.6s",begin:"-1.4s",repeatCount:"indefinite"})),Eo.default.createElement("path",{d:"M9.93003 13.2714C12.0877 13.2714 13.8369 11.5223 13.8369 9.3646C13.8369 7.20691 12.0877 5.45776 9.93003 5.45776C7.77234 5.45776 6.02319 7.20691 6.02319 9.3646C6.02319 11.5223 7.77234 13.2714 9.93003 13.2714Z",fill:t,fillOpacity:"0.4"},Eo.default.createElement("animate",{attributeName:"fill-opacity",values:"1;0.75;0.5;0.25;0;0",dur:"1.6s",begin:"-1.2s",repeatCount:"indefinite"})),Eo.default.createElement("path",{d:"M4.80063 25.8922C6.95832 25.8922 8.70747 24.143 8.70747 21.9853C8.70747 19.8276 6.95832 18.0785 4.80063 18.0785C2.64295 18.0785 0.893799 19.8276 0.893799 21.9853C0.893799 24.143 2.64295 25.8922 4.80063 25.8922Z",fill:t,fillOpacity:"0.6"},Eo.default.createElement("animate",{attributeName:"fill-opacity",values:"1;0.75;0.5;0.25;0;0",dur:"1.6s",begin:"-1.0s",repeatCount:"indefinite"})),Eo.default.createElement("path",{d:"M9.9282 38.4743C12.0859 38.4743 13.835 36.7252 13.835 34.5675C13.835 32.4098 12.0859 30.6606 9.9282 30.6606C7.77051 30.6606 6.02136 32.4098 6.02136 34.5675C6.02136 36.7252 7.77051 38.4743 9.9282 38.4743Z",fill:t,fillOpacity:"0.8"},Eo.default.createElement("animate",{attributeName:"fill-opacity",values:"1;0.75;0.5;0.25;0;0",dur:"1.6s",begin:"-0.8s",repeatCount:"indefinite"})),Eo.default.createElement("path",{d:"M22.5127 43.7196C24.6704 43.7196 26.4195 41.9704 26.4195 39.8127C26.4195 37.655 24.6704 35.9059 22.5127 35.9059C20.355 35.9059 18.6058 37.655 18.6058 39.8127C18.6058 41.9704 20.355 43.7196 22.5127 43.7196Z",fill:t,fillOpacity:"1"},Eo.default.createElement("animate",{attributeName:"fill-opacity",values:"1;0.75;0.5;0.25;0;0",dur:"1.6s",begin:"-0.6s",repeatCount:"indefinite"})),Eo.default.createElement("path",{d:"M35.0819 38.4743C37.2396 38.4743 38.9887 36.7252 38.9887 34.5675C38.9887 32.4098 37.2396 30.6606 35.0819 30.6606C32.9242 30.6606 31.175 32.4098 31.175 34.5675C31.175 36.7252 32.9242 38.4743 35.0819 38.4743Z",fill:t,fillOpacity:"0.7"},Eo.default.createElement("animate",{attributeName:"fill-opacity",values:"1;0.75;0.5;0.25;0;0",dur:"1.6s",begin:"-0.4s",repeatCount:"indefinite"})),Eo.default.createElement("path",{d:"M40.1988 25.8922C42.3565 25.8922 44.1057 24.143 44.1057 21.9853C44.1057 19.8276 42.3565 18.0785 40.1988 18.0785C38.0411 18.0785 36.292 19.8276 36.292 21.9853C36.292 24.143 38.0411 25.8922 40.1988 25.8922Z",fill:t,fillOpacity:"0.5"},Eo.default.createElement("animate",{attributeName:"fill-opacity",values:"1;0.75;0.5;0.25;0;0",dur:"1.6s",begin:"-0.2s",repeatCount:"indefinite"})),Eo.default.createElement("path",{d:"M35.0819 13.31C37.2396 13.31 38.9887 11.5609 38.9887 9.40317C38.9887 7.24549 37.2396 5.49634 35.0819 5.49634C32.9242 5.49634 31.175 7.24549 31.175 9.40317C31.175 11.5609 32.9242 13.31 35.0819 13.31Z",fill:t,fillOpacity:"0.3"},Eo.default.createElement("animate",{attributeName:"fill-opacity",values:"1;0.75;0.5;0.25;0;0",dur:"1.6s",begin:"0s",repeatCount:"indefinite"}))),Eo.default.createElement("defs",null,Eo.default.createElement("clipPath",{id:"clip0_780_4723"},Eo.default.createElement("rect",{width:"44",height:"44",fill:t,transform:"translate(0.5)"})))))}function xA(e){const t=or.b.getColorValue(e.innerColor),n=or.b.getColorValue(e.outerColor);return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement("svg",{width:"65",height:"64",viewBox:"0 0 65 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Eo.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.5 2.66666C16.2996 2.66666 3.16666 15.7996 3.16666 32C3.16666 48.2004 16.2996 61.3333 32.5 61.3333C48.7004 61.3333 61.8333 48.2004 61.8333 32C61.8333 15.7996 48.7004 2.66666 32.5 2.66666ZM0.5 32C0.5 14.3269 14.8269 0 32.5 0C50.1731 0 64.5 14.3269 64.5 32C64.5 49.6731 50.1731 64 32.5 64C14.8269 64 0.5 49.6731 0.5 32Z",fill:n}),Eo.default.createElement("path",{d:"M56.7425 32C56.7425 45.3885 45.8889 56.242 32.5004 56.242C19.1119 56.242 8.2584 45.3885 8.2584 32C8.2584 18.6115 19.1119 7.75793 32.5004 7.75793C45.8889 7.75793 56.7425 18.6115 56.7425 32Z",fill:t})))}function EA(e){const t="manual"===e.state||"auto"===e.state&&e.config.enabledInAutoSnappingMode;return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(Ea,{disabled:!t,onClick:e.onClick,"aria-label":or.b.getLocalizedText(e.config.accessibilityDescription),"data-sb-button-shutter":!0,sx:Object.assign({width:56,margin:0,padding:0},La(e.config.innerColor))},"auto"===e.state&&Eo.default.createElement(SA,{key:"auto",color:e.config.outerColor}),"loading"===e.state&&Eo.default.createElement(wA,{key:"loading",color:e.config.outerColor}),"manual"===e.state&&Eo.default.createElement(xA,{key:"manual",innerColor:e.config.innerColor,outerColor:e.config.outerColor})))}function OA(e){const t={backgroundColor:or.b.getColorValue(e.config.sheetColor)};let n=[{config:e.config.okButton,onClick:e.onOkClick,debugName:"ok"},{config:e.config.actionButton,onClick:e.onActionClick,debugName:"action"},{config:e.config.cancelButton,onClick:e.onCancelClick,debugName:"cancel"}].filter((e=>e.config.visible));2===n.length&&(n=n.reverse());const i=2===n.length?6:12,[o,r]=Eo.default.useState(!0);Object(Eo.useEffect)((()=>{r(e.open)}),[e.open]);const a=o?1:.5;return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(ml,{modalOverlayColor:e.config.modalOverlayColor,open:e.open,PaperProps:{style:{borderRadius:"8px"}},onClose:e.onCancelClick},Eo.default.createElement(Za,{sx:Object.assign(Object.assign({},t),{p:2,pb:1,textAlign:"center"})},Eo.default.createElement(kr,{sx:{fontSize:"16px",fontWeight:"bold"}},Eo.default.createElement(jr.a,{config:e.config.title})),Eo.default.createElement(kr,{sx:{fontSize:"14px",lineHeight:"16pt",pt:1}},Eo.default.createElement(jr.a,{config:e.config.subtitle}))),Eo.default.createElement(Qa,{sx:Object.assign(Object.assign({},t),{pt:1})},Eo.default.createElement(Qs,{container:!0,spacing:2},Eo.default.createElement(Qs,{item:!0,xs:12},Eo.default.createElement(nc,{color:or.b.getColorValue(e.config.dividerColor)})),n.map(((e,t)=>{return Eo.default.createElement(Qs,{item:!0,xs:i,key:t},Eo.default.createElement(ic,{disabled:!o,style:Object.assign({width:"100%",opacity:a},(n=e.config,Ma(or.b.getColorValue(n.background.fillColor))?La(n.foreground.color):Object.assign(Object.assign({},Ra(n.background.fillColor)),{"& span":{transition:"transform 0.3s !important"},"&:hover span":{transform:"translateX(6px) !important"},"& > div, &":{transition:"border-radius 0.3s !important"},"&:hover > div, &:hover":{borderRadius:"0px !important"}}))),onClick:()=>{r(!1),e.onClick()},visible:e.config.visible,text:e.config.text,foreground:e.config.foreground,background:e.config.background,debugName:e.debugName,ariaLabel:or.b.getLocalizedText(e.config.accessibilityDescription)}));var n}))))))}const DA=["image/jpeg","image/jpg","image/png","image/bmp","image/dib","image/tiff"];var TA=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};function BA(e){const t=e.config.screens.camera.bottomBar,n="auto"===e.buttonStates.snappingModeState?t.autoSnappingModeButton:t.manualSnappingModeButton,i="auto"===e.buttonStates.snappingModeState?fA:gA,o="on"===e.buttonStates.torchState?t.torchOnButton:t.torchOffButton,r=Eo.default.createRef();Object(Eo.useEffect)((()=>{r.current&&(r.current.oncancel=e.onFileSelectDialogClosed)}),[r.current]);const[a,s]=Eo.default.useState(!1),c=()=>s(!0);return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(ir,{"data-sb-bottom-bar":!0,sx:{backgroundColor:or.b.getColorValue(e.config.appearance.bottomBarBackgroundColor),height:112,display:"flex",alignItems:"center",justifyContent:"center"}},Eo.default.createElement(ir,{sx:{maxWidth:400,display:"flex",alignItems:"center",justifyContent:"space-between",fontSize:24,flexGrow:1,marginX:"min(24px, 5vw)"}},Eo.default.createElement("div",null,Eo.default.createElement(_a,{onClick:e.scanLimitReached?c:e.onFileSelectDialogOpened,enabled:e.buttonStates.importButtonEnabled,config:t.importButton,iconButtonComponent:e.scanLimitReached?"button":"label",icon:({color:e})=>Eo.default.createElement(hA.a,{sx:{color:e}}),debugName:"import"},!e.scanLimitReached&&Eo.default.createElement("input",{hidden:!0,type:"file",accept:DA.join(", "),ref:r,onChange:t=>{var n,i;e.onFileSelectDialogClosed();const o=null===(i=null===(n=null==t?void 0:t.target)||void 0===n?void 0:n.files)||void 0===i?void 0:i[0];o&&(()=>{TA(this,void 0,void 0,(function*(){const t=e.sdk.detectAndCropDocument(yield o.arrayBuffer(),"CONSUME_IMAGE");e.onFileUploaded(t)}))})()},value:""}))),Eo.default.createElement("div",null,Eo.default.createElement(_a,{enabled:e.buttonStates.snappingModeButtonEnabled,config:n,icon:i,onClick:e.snappingModeButtonClick,debugName:"snapping-mode"})),Eo.default.createElement(EA,{state:e.buttonStates.shutterButtonState,onClick:e.scanLimitReached?c:e.onShutterButtonClick,config:e.config.screens.camera.bottomBar.shutterButton}),Eo.default.createElement("div",null,Eo.default.createElement(_a,{enabled:e.buttonStates.torchButtonEnabled,config:o,icon:t=>"on"===e.buttonStates.torchState?Eo.default.createElement(bA.a,{sx:t}):Eo.default.createElement(CA.a,{sx:t}),onClick:e.onTorchButtonClick,debugName:"torch"})),Eo.default.createElement("div",null,Eo.default.createElement(AA,{enabled:e.buttonStates.reviewButtonEnabled,config:t.previewButton,count:e.buttonStates.reviewButtonCount,previewImageUrl:e.buttonStates.reviewButtonPreviewImageUrl,onClick:e.onReviewButtonClick})))),Eo.default.createElement(OA,{open:a,config:e.config.screens.camera.limitReachedAlertDialog,onCancelClick:()=>{},onActionClick:()=>{},onOkClick:()=>{s(!1)}}))}function kA(e){const t=or.b.getColorValue(e.color),n=221/376,i=`calc(${e.maxHeight} - ${e.paddingTop}px - ${e.paddingBottom}px)`,o=e.maxWidth,r=`min(${`calc(${i} * ${n})`}, ${o})`,a=`min(${i}, ${`calc(${o} / ${n})`})`;return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement("svg",{style:{width:r,height:a,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom},viewBox:"0 0 221 376",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Eo.default.createElement("path",{d:"M25.2696 149.527V20.2272C25.2696 9.60794 33.8814 1 44.5006 1H147.398C158.018 1 166.629 9.60794 166.629 20.2272V267.036C166.629 277.655 158.018 286.263 147.398 286.263H44.5006C33.8814 286.263 25.2696 277.655 25.2696 267.036V262.47M25.2696 200.917V183.453M27.5913 182.88V202.205M27.5913 224.958V239.567M27.5913 259.894V267.036C27.5913 267.902 27.6573 268.757 27.781 269.593L27.7889 269.64C27.8213 269.83 27.8538 270.021 27.8898 270.208C28.0875 271.246 28.3818 272.25 28.7617 273.212C28.8353 273.411 28.9166 273.609 29.0021 273.8C29.5369 275.014 30.211 276.159 31.0016 277.209C31.0791 277.304 31.157 277.411 31.2345 277.506C31.7807 278.205 32.3892 278.85 33.0366 279.457C33.3 279.701 33.5714 279.934 33.8505 280.159C33.9474 280.243 34.0482 280.32 34.149 280.392C34.4471 280.625 34.7532 280.847 35.0674 281.06L35.0712 281.063C35.0891 281.077 35.1074 281.092 35.1254 281.102C35.3193 281.228 35.5129 281.35 35.7068 281.473C35.924 281.602 36.1446 281.732 36.3656 281.854C36.5905 281.976 36.8153 282.095 37.044 282.209C37.1562 282.263 37.2726 282.32 37.3848 282.37L37.3905 282.372C37.5049 282.429 37.6194 282.485 37.7337 282.53C38.0865 282.683 38.443 282.824 38.8072 282.958C39.0477 283.045 39.2916 283.125 39.5359 283.202C39.6599 283.24 39.784 283.278 39.9081 283.313C40.2841 283.412 40.6639 283.511 41.0475 283.587C41.1716 283.614 41.2995 283.641 41.4311 283.664C41.5628 283.687 41.6907 283.713 41.8186 283.732C42.0782 283.774 42.3419 283.813 42.6053 283.839C42.7912 283.866 42.9775 283.877 43.1634 283.893C43.3184 283.904 43.4734 283.912 43.6284 283.919C43.9192 283.935 44.2059 283.942 44.5006 283.942H147.395C147.693 283.942 147.984 283.935 148.274 283.919C148.43 283.912 148.584 283.904 148.739 283.893C149.042 283.87 149.34 283.843 149.642 283.809C149.526 283.82 149.414 283.828 149.298 283.839C157.731 282.889 164.308 275.716 164.308 267.036V20.2272C164.308 11.2009 157.196 3.80228 148.274 3.34114H148.263C147.976 3.32548 147.689 3.31784 147.395 3.31784H44.5006C44.2059 3.31784 43.9231 3.32548 43.6326 3.34114H43.6284C43.4734 3.34878 43.3184 3.3568 43.1634 3.36825C43.0161 3.37969 42.8611 3.39535 42.7099 3.40679C34.2265 4.30614 27.5913 11.507 27.5913 20.2272V151.388M25.2696 238.278V226.254M34.1941 158.545V20.2306C34.1941 14.7975 38.4134 10.2996 43.8178 9.94611H43.9106L44.0499 9.93198C44.2141 9.92475 44.3641 9.92472 44.5034 9.92472H59.3495C60.1993 9.96748 60.8848 10.6244 60.9704 11.4631L60.9713 11.4779C60.9744 11.5301 60.9776 11.5829 60.9776 11.6383V11.6597C61.1811 16.011 64.772 19.4736 69.1698 19.4736H122.73C127.127 19.4736 130.718 16.011 130.922 11.6597V11.6383C130.922 11.5829 130.925 11.5304 130.928 11.4782L130.929 11.4631C131.015 10.6244 131.7 9.96748 132.549 9.92472H147.396C147.535 9.92472 147.685 9.92475 147.849 9.93198L147.988 9.94611H148.082C153.486 10.2996 157.705 14.7975 157.705 20.2306V267.036C157.705 272.376 153.536 276.892 148.217 277.308C148.165 277.312 148.123 277.315 148.081 277.319L148.078 277.319H148.042L148.014 277.323H147.953L147.932 277.327L147.93 277.327L147.929 277.327C147.751 277.335 147.574 277.342 147.396 277.342H44.5034C44.3255 277.342 44.148 277.335 43.9701 277.327L43.969 277.327L43.9679 277.327L43.9465 277.323H43.8858L43.8572 277.319H43.8217L43.8187 277.319C43.7769 277.315 43.7345 277.312 43.6823 277.308C38.3633 276.892 34.1941 272.376 34.1941 267.036V178.586M23.6521 148.301C23.6147 148.268 23.5193 148.222 23.3693 148.163C23.0612 148.043 22.636 148.008 22.2253 147.974C22.0313 147.958 21.8432 147.942 21.6714 147.919L20.8934 147.811C17.5128 147.337 13.6811 146.802 10.5597 147.83C10.3058 147.914 9.97642 148.033 9.68745 148.214C7.45931 149.607 2.80262 154.442 1.61011 159.826C0.977204 162.683 1.41084 165.294 2.89957 167.585C5.96789 172.306 10.5074 175.841 14.5438 178.676C15.524 179.364 16.6101 180.101 17.9614 180.995C18.1866 181.144 18.3939 181.293 18.5924 181.434C19.294 181.936 19.8482 182.332 20.7503 182.431C23.522 182.735 26.401 182.373 29.0765 181.383L29.3048 181.299C30.427 180.886 31.8238 180.373 32.4861 179.432C34.1031 177.136 36.2369 173.538 37.2172 169.433C37.6402 167.662 37.7405 166.251 37.5325 164.993C37.0481 162.071 34.9474 159.796 32.4452 157.346C32.1406 157.237 31.7749 156.862 31.0886 156.066C30.9542 155.91 30.8446 155.781 30.782 155.72L25.3035 150.365C24.763 149.837 24.3217 149.364 23.9259 148.769C23.8278 148.623 23.7709 148.512 23.7247 148.422M23.6521 148.301C23.6682 148.314 23.6819 148.338 23.7247 148.422M23.6521 148.301L23.6529 148.301C23.669 148.315 23.6819 148.338 23.7247 148.422M166.63 213.913L173.334 220.343M173.334 220.343L173.38 220.386C172.942 224.452 172.916 225.028 173.235 230.114M173.334 220.343C173.026 223.089 172.754 226.806 173.072 229.253M173.334 220.343C173.495 218.899 173.667 217.723 173.767 217.141M173.235 230.114C173.252 230.386 173.27 230.67 173.289 230.969L173.289 230.971M173.235 230.114L173.294 230.423C173.335 230.581 173.322 230.772 173.289 230.971M173.235 230.114L173.073 229.263M173.289 230.971L173.172 232.02M173.289 230.971C173.252 231.196 173.191 231.431 173.157 231.641M173.172 232.02L173.163 232.103M173.172 232.02C173.168 231.93 173.163 231.799 173.157 231.641M173.172 232.02C173.176 232.096 173.179 232.142 173.182 232.146M173.163 232.103L172.448 238.511M173.163 232.103C173.168 232.118 173.175 232.132 173.182 232.146M173.163 232.103C173.119 231.984 173.128 231.822 173.157 231.641M172.448 238.511L172.388 238.594C172.361 238.632 170.173 241.232 166.854 246.152M172.448 238.511L173.072 229.253M173.072 229.253C173.072 229.253 173.073 229.257 173.073 229.263M173.072 229.253L173.073 229.263M173.073 229.263C173.089 229.397 173.129 230.85 173.157 231.641M173.182 232.146C173.687 232.904 174.584 233.798 175.666 234.725M173.182 232.146C173.535 232.81 174.468 233.726 175.666 234.725M175.666 234.725C179.226 237.776 184.8 241.195 185.104 241.381C185.033 241.338 179.198 237.671 175.666 234.725ZM173.767 217.141C174.564 217.463 176.281 218.113 178.633 218.417M173.767 217.141C174.18 217.329 175.973 218.088 178.633 218.417M173.767 217.141L166.558 206.5M178.633 218.417C181.548 218.793 185.438 218.636 189.756 216.658M178.633 218.417C181.534 218.776 185.465 218.623 189.756 216.658M189.756 216.658C189.827 216.626 189.898 216.593 189.969 216.559M67.4683 323.631C70.4328 329.189 74.192 335.823 77.6768 341.522C92.8799 366.399 95.2 373.141 95.5527 374.664V375.7M67.4683 323.631C72.9296 307.707 97.7699 290.507 98.2854 290.15L98.2916 290.146C98.04 290.321 73.495 307.571 67.4683 323.631ZM67.4683 323.631C62.152 313.572 58.8077 305.831 56.9292 301.071C55.0301 296.265 52.4092 291.749 49.1397 287.657L47.9153 286.137M28.8505 204.209C31.3841 207.632 32.9003 212.464 31.6452 217.3C30.4889 221.756 27.8489 225.222 24.3855 226.861V237.921C27.7065 239.088 29.7911 241.302 30.5828 244.508C31.9643 250.084 29.9423 257.645 25.9796 261.726C24.1702 263.585 22.1669 264.543 20.1136 264.543C19.8662 264.543 19.6185 264.528 19.37 264.501L24.9855 268.636M34.147 152.964L26.212 149.313C25.8452 149.145 25.5564 149.529 25.8452 149.811L31.3237 155.166C31.3955 155.236 31.5222 155.382 31.6757 155.56L31.6786 155.563C31.9222 155.846 32.4736 156.485 32.6873 156.606H32.7968L32.9098 156.716C34.9429 158.703 37.7268 161.424 38.2968 164.867C38.5227 166.23 38.4193 167.738 37.9711 169.614C36.9622 173.838 34.7761 177.527 33.1198 179.879C32.3187 181.017 30.7957 181.577 29.5724 182.027L29.3457 182.11C27.1996 182.905 24.9271 183.312 22.6761 183.312C22.3249 183.312 21.9749 183.301 21.6252 183.281C22.2994 184.192 23.7392 186.664 25.2718 190.467M211.09 375.7V374.664L213.502 342.095L215.94 316.496L219.792 274.632C220.431 267.696 219.597 260.833 217.316 254.235C214.986 247.501 213.473 241.094 212.817 235.192C212.268 230.25 212.46 225.348 212.646 220.608C212.995 211.71 213.297 204.026 208.158 200.602C200.156 195.267 175.98 167.503 173.151 161.277C172.263 159.324 171 158.464 169.497 158.79C168.553 158.994 167.372 159.481 166.702 160.263M146.375 286.09C145.308 288.615 143.615 292.089 142.556 294.787M130.056 113.003H63.0631M130.056 84.3738H100.854M130.056 147.359H63.0631M130.056 181.714H63.0631M130.056 121.592H63.0631M130.056 92.9627H100.854M130.056 155.948H63.0631M130.056 190.303H63.0631M130.056 130.181H63.0631M130.056 164.537H63.0631M130.056 198.892H63.0631M130.056 138.77H63.0631M130.056 173.125H63.0631M130.056 207.481H63.0631M30.8954 217.105C29.7728 221.431 27.2014 224.769 23.8407 226.264C22.4226 226.896 20.8755 227.194 19.2463 227.145C13.854 226.987 9.84776 225.057 7.66123 221.564C5.3411 217.859 5.23957 212.578 7.39594 207.783C10.7883 200.246 23.0215 200.651 23.9228 200.691C25.9616 201.409 27.6374 202.632 28.9043 204.325C31.3378 207.564 32.1005 212.461 30.8954 217.105ZM23.8772 238.567C27.0829 239.619 29.0858 241.68 29.8306 244.695C31.154 250.036 29.2183 257.279 25.4236 261.184C24.0047 262.646 21.7086 264.253 18.833 263.627C16.7477 263.173 14.7108 261.619 12.78 259.001C5.82762 249.577 5.68905 247.795 8.07293 242.887C10.5545 237.78 14.2157 237.19 20.5306 237.867C21.6693 237.988 22.7263 238.2 23.6764 238.498L23.8772 238.567ZM135.782 224.965H56.7644C52.4952 224.965 49.0344 221.505 49.0344 217.235V79.8139C49.0344 75.5447 52.4952 72.0839 56.7644 72.0839H135.782C140.051 72.0839 143.512 75.5447 143.512 79.8139V217.235C143.512 221.505 140.051 224.965 135.782 224.965Z",stroke:t,strokeWidth:"1.75936"}),Eo.default.createElement("defs",null,Eo.default.createElement("linearGradient",{id:"paint0_linear_441_9693",x1:"110.664",y1:"375.7",x2:"110.664",y2:"1",gradientUnits:"userSpaceOnUse"},Eo.default.createElement("stop",{offset:"0.029183",stopColor:t,stopOpacity:"0"}),Eo.default.createElement("stop",{offset:"0.204626",stopColor:t})))))}function IA(e){return Eo.default.createElement(Eo.default.Fragment,null,e.config.visible&&Eo.default.createElement(Da,{styleConfig:{strokeColor:e.config.background.strokeColor,fillColor:e.config.background.fillColor,cornerRadius:0,strokeWidth:0},sx:{height:40,display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",width:"100%"}},Eo.default.createElement(jr.a,{config:e.config.title})))}function PA(e){const t=e.config.screens.camera.userGuidance.statesTitles,n="auto"===e.snappingMode?t.readyToCapture:t.captureManual,i={NOT_ACQUIRED:t.noDocumentFound,OK:n,OK_BUT_TOO_SMALL:t.tooSmall,OK_BUT_BAD_ANGLES:t.badAngles,OK_BUT_BAD_ASPECT_RATIO:t.badAspectRatio,OK_BUT_OFF_CENTER:t.textHintOffCenter,OK_BUT_ORIENTATION_MISMATCH:t.badAspectRatio,OK_BUT_TOO_DARK:t.tooDark,ERROR_NOTHING_DETECTED:t.noDocumentFound,ERROR_TOO_DARK:t.tooDark,ERROR_TOO_NOISY:t.tooNoisy,START:e.config.screens.camera.userGuidance.title.text};return Eo.default.createElement(jr.a,{config:Object.assign(Object.assign({},e.config.screens.camera.userGuidance.title),{text:or.b.getLocalizedText(i[e.text])})})}const LA=`calc(100 * ${Lr} - 50px - 112px)`,RA="0.5s";function _A(e){const t=e.config.screens.camera,n=e.bottomUserGuidanceVisible?56:0;return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement("div",{style:{position:"absolute",width:"100%",height:LA}},e.documentScannerView),Eo.default.createElement("div",{style:{position:"absolute",width:"100%",height:LA,backgroundColor:"white",opacity:e.showCameraBlink?1:0,transition:e.showCameraBlink?"":"opacity 0.5s ease-in"}}),Eo.default.createElement(ir,{sx:{height:LA,position:"relative"}},Eo.default.createElement(IA,{config:t.topUserGuidance}),e.bottomUserGuidanceVisible&&Eo.default.createElement(ir,{key:"bottomUserGuidance",sx:{position:"absolute",marginTop:`calc(${LA} - ${n}px)`,width:"100%",display:"flex",justifyContent:"center"}},Eo.default.createElement(Da,{styleConfig:{fillColor:t.userGuidance.background.fillColor,strokeColor:t.userGuidance.background.strokeColor,strokeWidth:t.userGuidance.background.strokeWidth,cornerRadius:4},sx:{padding:"6px 10px"}},Eo.default.createElement(PA,{config:e.config,text:e.userGuidanceText,snappingMode:e.snappingMode}))),t.scanAssistanceOverlay.visible&&!t.viewFinder.visible&&Eo.default.createElement(ir,{key:"scanAssistanceOverlay",sx:{backgroundColor:or.b.getColorValue(t.scanAssistanceOverlay.backgroundColor),height:"100%",display:"flex",justifyContent:"center",alignItems:"center",opacity:e.showHand?1:0,transition:"opacity 0.5s"}},Eo.default.createElement(kA,{color:t.scanAssistanceOverlay.foregroundColor,maxWidth:"80%",maxHeight:`min(calc(${LA} * 0.85), 600px)`,paddingTop:40,paddingBottom:n}))))}const jA={OK:"Capturing your document... Please do not move the camera.",OK_BUT_TOO_SMALL:"The document is too small. Try moving closer.",OK_BUT_BAD_ANGLES:"This is a bad camera angle. Hold the device straight over the document.",OK_BUT_BAD_ASPECT_RATIO:"Rotate the device sideways, so that the document fits better into the screen.",OK_BUT_OFF_CENTER:"Try holding the device at the center of the document.",OK_BUT_TOO_DARK:"A document was detected, but it is too dark. Try turning on a light.",OK_BUT_ORIENTATION_MISMATCH:"The document seems to be upside down. Please rotate the device or document",ERROR_NOTHING_DETECTED:"Please hold the device over a document to start scanning.",ERROR_TOO_DARK:"It is too dark. Try turning on a light.",ERROR_TOO_NOISY:"Please move the document to a clear surface.",NOT_ACQUIRED:"Scanning failed."};class MA{constructor(e){this.hint=e}}class FA{constructor(){this.outline=new NA,this.captureButton=new HA}}class NA{constructor(){this.polygon=new VA,this.path=new WA,this.label=new zA}}class VA{constructor(){this.strokeCapturing="green",this.strokeSearching="yellow",this.fillCapturing="transparent",this.fillSearching="transparent",this.strokeWidthCapturing=2,this.strokeWidthSearching=2}}class WA{constructor(){this.stroke="green",this.strokeWidth=4}}class zA{}class HA{constructor(){this.color="#FFF"}}class UA extends Q.a{constructor(){super(Q.a.DEFAULT_VIDEO_RESOLUTION_4K),this.detectionParameters=new r.DocumentScannerParameters,this.autoCaptureEnabled=!0,this.autoCaptureSensitivity=.66,this.autoCaptureDelay=1e3,this.ignoreBadAspectRatio=!0,this.useImageCaptureAPI=!1,this.text=new MA(jA),this.style=new FA,this.onDocumentDetected=function(e){},this.finder=Object(X.b)(),this.finder.visible=!1}static fromJson(e){var t,n;const i=new UA;if(Q.a.mapValuesDeep(null!==(t=e.finder)&&void 0!==t?t:{},i.finder),this.mapValues(e,i,["text","style","videoConstraints","detectionParameters"]),i.detectionParameters=new r.DocumentScannerParameters(null!==(n=e.detectionParameters)&&void 0!==n?n:{}),e.text&&e.text.hint&&this.mapValues(e.text.hint,i.text.hint),e.style){this.mapValues(e.style,i.style,["outline","captureButton"]);const t=e.style.outline;if(t){this.mapValues(t,i.style.outline,["polygon","path","label"]);const e=t.polygon;e&&this.mapValues(e,i.style.outline.polygon);const n=t.path;n&&this.mapValues(n,i.style.outline.path);const o=t.label;o&&this.mapValues(o,i.style.outline.label)}const n=e.style.captureButton;n&&this.mapValues(n,i.style.captureButton)}return this.mapVideoConstraints(e,i),i}}var ZA=n(99),GA={insert:"head",singleton:!1};Ug()(ZA.a,GA),ZA.a.locals;class $A extends Eo.default.Component{constructor(){super(...arguments),this.LINE_COUNT=4}render(){return Eo.default.createElement("svg",{style:{width:"100%",height:"100%",position:"absolute",overflow:"visible",fill:this.props.polygonStyle.fill}},this.fill())}fill(){if(!this.props.points||0===this.props.points.length)return null;const e=[];for(let t=0;t<this.LINE_COUNT;t++){const n=this.props.points[t],i=this.props.points[(t+1)%this.LINE_COUNT];e.push(Eo.default.createElement("line",{key:t,style:this.props.polygonStyle,className:this.props.polygonClasses,x1:n.x,y1:n.y,x2:i.x,y2:i.y}))}return e}setFrame(){window.requestAnimationFrame((()=>this.forceUpdate()))}}$A.CLASSNAME="scanbot-document-outline";class YA extends Eo.default.Component{constructor(e){super(e),this.state={points:[],animatedPoints:[],isOk:!1,isVisible:!1}}update(e,t,n,i){if(t&&t.some((e=>Number.isNaN(e.x)||Number.isNaN(e.y))))return;const o={points:e,animatedPoints:t,isOk:n,isVisible:i};this.setState(o)}pointStringOrLatestValidPoints(e){return e&&e.length>0?kg.a.toSvgString(e):kg.a.toSvgString(this.latestValidPoints)}render(){var e;this.state.points&&(this.latestValidPoints=this.state.points);const t=null!==(e=this.props.style)&&void 0!==e?e:{},n=Yg()($A.CLASSNAME,{[`${$A.CLASSNAME}-ok`]:this.state.isOk},{[`${$A.CLASSNAME}-visible`]:this.state.isVisible},{[`${$A.CLASSNAME}-hidden`]:!this.state.isVisible});return Eo.default.createElement(Tg.polygon,{ref:e=>this.polygon=e,transition:{duration:.1},animate:{points:this.pointStringOrLatestValidPoints(this.state.animatedPoints),opacity:this.state.isVisible?1:0,stroke:this.state.isOk?t.strokeCapturing:t.strokeSearching,fill:this.state.isOk?t.fillCapturing:t.fillSearching,strokeWidth:this.state.isOk?t.strokeWidthCapturing:t.strokeWidthSearching},onClick:()=>{},className:n})}}var QA=YA;class XA extends Eo.default.Component{constructor(e){super(e),this.state={path:void 0}}render(){var e,t;return this.state.path?Eo.default.createElement(Tg.path,{pathLength:"1",strokeDasharray:"1 1",initial:{strokeDashoffset:1},animate:{strokeDashoffset:0,d:this.state.path},transition:{strokeDashoffset:{duration:this.props.duration/1e3,ease:"easeInOut",repeat:0,repeatType:"loop",repeatDelay:1},d:{duration:.1}},stroke:(null===(e=this.props.style)||void 0===e?void 0:e.stroke)||"white",strokeWidth:(null===(t=this.props.style)||void 0===t?void 0:t.strokeWidth)||2,fill:"none",d:this.state.path,className:`${$A.CLASSNAME}-path`}):null}animate(e){const t="M"+kg.a.toSvgString(e)+"z";this.setState({path:t})}clear(){this.setState({path:void 0})}}class qA extends Eo.default.Component{render(){return Eo.default.createElement(Tg.svg,{style:{width:"100%",height:"100%",position:"absolute",overflow:"visible"}},Eo.default.createElement(QA,{ref:e=>this.polygon=e,style:this.props.polygonStyle}),Eo.default.createElement(XA,{ref:e=>this.path=e,style:this.props.pathStyle,duration:this.props.autoCaptureSensitivity}))}update(e,t,n){var i;const o="processing"!==n&&!!e,r=null!==(i=this.previous)&&void 0!==i?i:e,a=this.previous?e:void 0;this.polygon.update(r,a,t,o),this.previous=e,this.previous&&"capturing"===n?this.animateCapturing():this.clearAnimation()}animateCapturing(){this.path.animate(this.previous)}clearAnimation(){this.path.clear()}}class KA extends Eo.default.Component{constructor(){super(...arguments),this.hintLabelClassName="scanbot-document-hint-text",this.state={text:"Initializing...",ok:!1,validPoints:!1}}render(){const{ok:e,text:t,validPoints:n}=this.state,i="searching"===this.props.action||"capturing"===this.props.action,o="processing"!==this.props.action&&n,r=Yg()({[this.hintLabelClassName]:!0,[`${this.hintLabelClassName}-visible`]:o,[`${this.hintLabelClassName}-hidden`]:!o});return Eo.default.createElement("div",{style:{width:"100%",height:"100%",position:"absolute",left:0,top:0}},Eo.default.createElement(qA,{ref:e=>{this.polygon=e},action:this.props.action,style:{width:"100%",height:"100%"},polygonStyle:this.props.style.polygon,pathStyle:this.props.style.path,isOk:e,isVisible:o,autoCaptureSensitivity:this.props.autoCaptureSensitivity}),i&&Eo.default.createElement("label",{ref:e=>this.label=e,style:this.props.style.label,className:r,dangerouslySetInnerHTML:{__html:t}}))}update(e,t,n){this.polygon.update(t,e,this.props.action),this.label&&(this.label.innerHTML=n)}}class JA{static isConvex(e){if(e.length<4)return!0;let t=!1,n=e.length;for(let i=0;i<n;i++){const o=e[(i+2)%n].x-e[(i+1)%n].x,r=e[(i+2)%n].y-e[(i+1)%n].y,a=e[i].x-e[(i+1)%n].x,s=o*(e[i].y-e[(i+1)%n].y)-r*a;if(0==i)t=s>0;else if(t!=s>0)return!1}return!0}static distanceBetweenPoints(e,t){return Math.pow(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2),.5)}static intersection(e,t){const n=e[0],i=kg.a.subtract(e[1],n),o=t[0],r=kg.a.subtract(t[1],o);if(0===kg.a.cross(i,r))return;const a=kg.a.cross(kg.a.subtract(o,n),i)/kg.a.cross(i,r);return kg.a.add(o,kg.a.multiply(r,a))}}class eS{constructor(e,t=eS.DEFAULT_SENSITIVITY){this.maxDistance=this.calculateMaxDistance(e),this.sensitivity=t}check(e){let t=!1;if(this.lastPolygon){for(var n=0;n<4;n++)if(this.isPointMoved(e[n],this.lastPolygon[n])){t=!0;break}}else t=!0;return t}reset(){this.lastPolygon=void 0}update(e){this.lastPolygon=e}isPointMoved(e,t){return JA.distanceBetweenPoints(e,t)/this.maxDistance>this.sensitivity}calculateMaxDistance(e){let t=new kg.a(0,0),n=new kg.a(e.width,e.height);return JA.distanceBetweenPoints(t,n)}}eS.DEFAULT_SENSITIVITY=.5;var tS=n(58),nS=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};Al.b;Al.a;class iS extends Al.c{constructor(e){if(super(e),this.preventAutoCapture=!1,this.defaultCaptureButtonClick=()=>nS(this,void 0,void 0,(function*(){const e=yield this.detectAndCrop();this.configuration.onDocumentDetected(e)})),Object.assign(this.state,{action:this.defaultAction}),!this.isSupported()){throw Error("Camera can only be accessed if the content is served via HTTPS, or on localhost. Check DocumentScannerView.isSupported() before creating the scanner.")}if(!e.sdk)throw Error("Initialize the SDK by calling ScanbotSDK.initialize() before using the document scanner.")}get defaultAction(){return this.isAutoCaptureEnabled()?"searching":"manual"}get enabled(){return!("searching"!=this.state.action&&"capturing"!=this.state.action&&"manual"!=this.state.action||this.disposed||this.props.pauseAR)}get configuration(){return this._configuration||(this._configuration=UA.fromJson(this.props.configuration)),this._configuration}componentDidUpdate(e){e.configuration!==this.props.configuration&&(this._configuration=void 0)}get autoCaptureSensitivity(){return 3e3*(1-this.configuration.autoCaptureSensitivity)}static create(e,t){return nS(this,void 0,void 0,(function*(){const n=document.getElementById(e.containerId);if(!n)throw Error("Unable to initialize ScanbotSDK: Cannot find container element with the id provided.");return new Promise(((i,o)=>{Object(Eo.render)(Eo.default.createElement(iS,{container:n,configuration:e,onSuccess:i,onFailure:o,sdk:t}),n)}))}))}detectAndCrop(){var e,t,n,i;return nS(this,void 0,void 0,(function*(){try{if(this.enabled){this.setState({action:"processing"}),this.camera.finderFrame=null===(e=this.finder)||void 0===e?void 0:e.holeRect;const n=yield null===(t=this.camera)||void 0===t?void 0:t.createImageData(iS.DETECT_AND_CROP_RESOLUTION,this.configuration.useImageCaptureAPI);return n?(xo.a.debug("Detect & Crop document of size: "+n.height*n.width),yield this.bridge.transferArgs.detectAndCropDocument(n)):null}}catch(e){return null===(i=(n=this.configuration).onError)||void 0===i||i.call(n,e),null}finally{this.setState({action:this.defaultAction})}}))}enableAutoCapture(){this.updateAutoCapture(!0)}disableAutoCapture(){this.updateAutoCapture(!1)}updateAutoCapture(e){this._configuration?this._configuration.autoCaptureEnabled=e:this.props.configuration.autoCaptureEnabled=e,this.setState({action:this.defaultAction})}isAutoCaptureEnabled(){return this._configuration?this._configuration.autoCaptureEnabled:this.props.configuration.autoCaptureEnabled}componentDidMount(){const e=Object.create(null,{componentDidMount:{get:()=>super.componentDidMount}});return nS(this,void 0,void 0,(function*(){e.componentDidMount.call(this),this.detect(),this.scannerToken=this.bridge.copyArgs.createDocumentScanner(new r.DocumentScannerParameters(this.configuration.detectionParameters)),this.scannerToken.catch((e=>{var t,n;return null===(n=(t=this.configuration).onError)||void 0===n?void 0:n.call(t,e)}))}))}componentWillUnmount(){const e=Object.create(null,{componentWillUnmount:{get:()=>super.componentWillUnmount}});return nS(this,void 0,void 0,(function*(){e.componentWillUnmount.call(this),this.handleAutoCapture(!1),yield this.props.sdk.release(yield this.scannerToken,"Document Scanner")}))}detect(){var e,t,n,i;return nS(this,void 0,void 0,(function*(){try{if(!this.enabled)return;const n=yield this.detectInWebWorker();if(!n||!this.enabled)return;if(!this.outline)return;this.camera.reusableImageBuffer=n.originalImage.data;const i=this.getStatusString(n),o="OK"===i,r=i.startsWith("OK")?this.scalePolygonPointsToPixels(n.pointsNormalized):void 0;this.outline.update(o,r,N.getProperty(this.configuration.text.hint,i)),null===(t=(e=this.props).onStatusStringUpdate)||void 0===t||t.call(e,i),yield this.handleAutoCapture(o,r)}catch(e){null===(i=(n=this.configuration).onError)||void 0===i||i.call(n,e)}finally{requestAnimationFrame(this.detect.bind(this))}}))}getStatusString(e){return this.configuration.ignoreBadAspectRatio&&"OK_BUT_BAD_ASPECT_RATIO"===e.status?"OK":e.status}detectInWebWorker(){var e,t,n,i;return nS(this,void 0,void 0,(function*(){try{this.camera.finderFrame=null===(e=this.finder)||void 0===e?void 0:e.holeRect;const n=yield null===(t=this.camera)||void 0===t?void 0:t.createImageData(Al.c.DEFAULT_DETECTION_RESOLUTION,!1);return n&&this.enabled?yield this.bridge.transferArgs.documentScannerDetect(yield this.scannerToken,n):null}catch(e){return null===(i=(n=this.configuration).onError)||void 0===i||i.call(n,e),null}}))}handleAutoCapture(e,t){return nS(this,void 0,void 0,(function*(){if(this.configuration.autoCaptureEnabled&&!this.preventAutoCapture)if(e&&!this.autoCaptureToken&&t){if(this.updateButton("capturing"),!this.polygonMovementPredicate){const e=this.getCameraFrameSize();this.polygonMovementPredicate=new eS(e)}if(this.runMovementPredicate(t))return this.updateButton("searching"),clearTimeout(this.autoCaptureToken),void(this.autoCaptureToken=void 0);this.autoCaptureToken=setTimeout((()=>nS(this,void 0,void 0,(function*(){if(this.autoCaptureToken=void 0,!this.enabled)return;if(!this.configuration.autoCaptureEnabled)return;const e=yield this.detectAndCrop();if(null==e?void 0:e.pointsNormalized){const t=this.scalePolygonPointsToPixels(e.pointsNormalized);if(this.runMovementPredicate(t))return}(null==e?void 0:e.status.startsWith("OK"))&&this.configuration.onDocumentDetected&&(this.configuration.onDocumentDetected(e),this.preventAutoCapture=!0,setTimeout((()=>{this.preventAutoCapture=!1}),this.configuration.autoCaptureDelay))}))),this.autoCaptureSensitivity)}else!e&&this.autoCaptureToken&&(this.updateButton("searching"),clearTimeout(this.autoCaptureToken),this.autoCaptureToken=void 0)}))}updateButton(e){this.setState({action:e})}render(){var e,t,n,i;const{action:o}=this.state,{configuration:r}=this,a=null===(e=r.style)||void 0===e?void 0:e.captureButton;return Eo.default.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},this.renderSpinner(null===(t=this.configuration)||void 0===t?void 0:t.spinnerColor),Eo.default.createElement("div",{style:{position:"absolute",width:"100%",height:"100%"}},Eo.default.createElement(Sl.a,{configuration:this.configuration,videoConstraints:r.videoConstraints,mirrored:r.mirrored,preferredCamera:this.configuration.preferredCamera,onReady:this.onVideoReady,onError:this.onVideoError,ref:e=>{this.camera=e}})),this.configuration.finder.visible&&Eo.default.createElement(wl.a,{ref:e=>{this.finder=e},padding:this.props.viewFinderPadding,guidanceConfiguration:new tS.a({visible:!1}),configuration:this.configuration.finder}),Eo.default.createElement(KA,{ref:e=>{this.outline=e},style:null===(n=r.style)||void 0===n?void 0:n.outline,action:o,autoCaptureSensitivity:this.autoCaptureSensitivity}),!(null!==(i=this.props.hideShutterButton)&&void 0!==i&&i)&&Eo.default.createElement(Xg,{color:(null==a?void 0:a.color)?a.color:"FFF",action:o,onClick:this.enabled?r.onCaptureButtonClick||this.defaultCaptureButtonClick:()=>{}}))}scalePolygonPointsToPixels(e){var t;if(e){const n=this.getCameraFrameSize(),i=tv.a.fromHtmlElement(this.camera.video),o=pv.findScale(i,n);(null===(t=this.finder)||void 0===t?void 0:t.holeRect)&&(e=e.map((e=>new kg.a((e.x*this.finder.holeRect.width+this.finder.holeRect.x)/i.width,(e.y*this.finder.holeRect.height+this.finder.holeRect.y)/i.height)))),e=null==(e=pv.convertToViewportPointsFromParentSize(n,e))?void 0:e.map((e=>kg.a.scaleToPoint(e,o.x,o.y,o.scale)))}return e}runMovementPredicate(e){const t=this.polygonMovementPredicate.check(e);return this.polygonMovementPredicate.update(e),t}getCameraFrameSize(){return this.camera.calculateFrameSize(Al.c.DEFAULT_DETECTION_RESOLUTION,this.camera.videoSize().width,this.camera.videoSize().height)}}iS.DETECT_AND_CROP_RESOLUTION=0;var oS=iS;function rS(e){const[t,n]=Object(Eo.useState)(!1);return Object(Eo.useEffect)((()=>{const t=setTimeout((()=>{n(!0)}),e);return()=>clearTimeout(t)}),[]),t}var aS=n(32);function sS(e){if(!e.visible)return null;const t=e.config.screens.camera.cameraPermission;return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(ul,{fullScreen:!0,open:e.visible,transitionDuration:0},Eo.default.createElement(hC,{backgroundColor:e.config.appearance.topBarBackgroundColor,leftContent:null,rightContent:null,centerTitle:e.config.screens.camera.topBarTitle}),Eo.default.createElement(ir,{style:{height:`calc(100 * ${Lr} - 50px)`,backgroundColor:or.b.getColorValue(t.background),display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"}},Eo.default.createElement(ir,{style:{backgroundColor:or.b.getColorValue(t.iconBackground),borderRadius:40,width:80,height:80,display:"flex",justifyContent:"center",alignItems:"center"}},Eo.default.createElement(qy.a,{style:{color:or.b.getColorValue(t.icon.color)},sx:{fontSize:40}})),Eo.default.createElement("h4",{style:{margin:12}},Eo.default.createElement(jr.a,{style:{fontSize:18,fontWeight:500},config:t.enableCameraTitle})),Eo.default.createElement(ir,{style:{marginBottom:"12px",maxWidth:350,textAlign:"center"}},Eo.default.createElement(jr.a,{config:t.enableCameraExplanation})),Eo.default.createElement(ir,null,Eo.default.createElement(Fa,{icon:Eo.default.createElement(jv,{style:{fontSize:18}}),iconPosition:"right",onClick:e.onCloseClick,visible:t.closeButton.visible,text:t.closeButton.text,background:t.closeButton.background,foreground:t.closeButton.foreground,ariaLabel:t.closeButton.accessibilityDescription,styleOverrides:{fontSize:14,padding:"8px 20px",gap:"6px"}})))))}class cS{constructor(){}static get(e,t){const n=localStorage.getItem(this.getKey(e));return null===n?t:JSON.parse(n)}static set(e,t){localStorage.setItem(this.getKey(e),JSON.stringify(t))}static clear(){localStorage.clear()}static getKey(e){return`sb_document_rtu_ui_${e}`}}var lS=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};function uS(e,t){return lS(this,void 0,void 0,(function*(){return{value:yield e,source:t}}))}var dS=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};function mS(e){var t;const n=e.configuration.screens.camera,[i,o]=Object(Eo.useState)(n.cameraConfiguration.autoSnappingEnabled?"auto":"manual"),[r,a]=Object(Eo.useState)(n.cameraConfiguration.flashEnabled),[s,c]=Eo.default.useState(!1),l=Object(Eo.useRef)(null);const[u,d]=Object(Eo.useState)((()=>!cS.get("hasSeenIntroduction",!1)||n.introduction.showAutomatically));Object(Eo.useEffect)((()=>{e.scanLimitReached&&o("manual")}),[e.scanLimitReached]);const m=null===(t=e.pages)||void 0===t?void 0:t[e.pages.length-1],[p,h]=Object(Eo.useState)(null),f=Gy(null==m?void 0:m.finalImageUrl());Object(Eo.useEffect)((()=>{0===e.pages.length?h(null):f.value&&h(f.value)}),[f,e.pages.length]);const g="ENABLED"===n.userGuidance.visibility||"AUTO_CAPTURE_ONLY"===n.userGuidance.visibility&&"auto"===i,v={minTopPadding:20+(n.topUserGuidance.visible?40:0),minBottomPadding:20+(g?56:0)},[b,y]=Object(Eo.useState)(!1),C=0===n.timeouts.initialScanDelay||rS(n.timeouts.initialScanDelay),[A,S]=Object(Eo.useState)("START"),[w,x]=Object(Eo.useState)(!0),{documentScannerView:E,documentScannerViewRef:O,torchSupported:D,scannerInitialized:T,activeCamera:B,availableCameras:k,setActiveCamera:I}=function(e){const t=e.configuration.screens.camera,n=t.cameraConfiguration,i=!e.pauseAR&&("ENABLED"===t.polygon.visibility||"AUTO_CAPTURE_ONLY"===t.polygon.visibility&&"auto"===e.snappingMode),o=e=>i?or.b.getColorValue(e):"#00000000",r=(new UA).videoConstraints;r.facingMode="FRONT"===n.cameraModule?"user":"environment";const a=!e.scanningPaused&&"auto"===e.snappingMode,s={videoConstraints:r,onError:e.onError,backgroundColor:or.b.getColorValue(t.backgroundColor),onDocumentDetected:e.onImageCaptured,autoCaptureEnabled:a,autoCaptureDelay:n.autoSnappingDelay,autoCaptureSensitivity:n.autoSnappingSensitivity,ignoreBadAspectRatio:n.ignoreBadAspectRatio,detectionParameters:{aspectRatios:n.requiredAspectRatios,acceptedAngleScore:n.acceptedAngleScore,acceptedBrightnessThreshold:n.acceptedBrightnessThreshold,acceptedSizeScore:n.acceptedSizeScore},spinnerColor:"transparent",style:{outline:{label:{backgroundColor:"transparent",color:"transparent"},path:{stroke:o(t.polygon.autoSnapProgress.strokeColor),strokeWidth:t.polygon.autoSnapProgress.strokeWidth},polygon:{strokeWidthSearching:t.polygon.documentNotOk.strokeWidth,strokeSearching:o(t.polygon.documentNotOk.strokeColor),fillSearching:o(t.polygon.documentNotOk.fillColor),strokeWidthCapturing:t.polygon.documentOk.strokeWidth,fillCapturing:o(t.polygon.documentOk.fillColor),strokeCapturing:o(t.polygon.documentOk.strokeColor)}}},finder:t.viewFinder},c=Object(Eo.useRef)(null);Object(Eo.useEffect)((()=>()=>{var e;return null===(e=c.current)||void 0===e?void 0:e.dispose()}),[]),Object(Eo.useEffect)((()=>{c.current&&(a?c.current.enableAutoCapture():c.current.disableAutoCapture())}),[e.scanningPaused,e.snappingMode,c.current]);const[l,u]=Object(Eo.useState)(!1);Object(Eo.useEffect)((()=>{c.current&&l&&c.current.setTorchState(e.torchEnabled).catch((e=>{}))}),[e.torchEnabled,c.current,l]);const[d,m]=Object(Eo.useState)(!1),[p,h]=Object(Eo.useState)(null),[f,g]=Object(Eo.useState)([]);Object(Eo.useEffect)((()=>{c.current||m(!1)}),[c.current]);const v=Eo.default.createElement(oS,{sdk:e.sdk,ref:c,configuration:s,onSuccess:function(){var e,t,n;u(null===(e=c.current)||void 0===e?void 0:e.getActiveCameraInfo().supportsTorchControl),m(!0);const i=null===(t=c.current)||void 0===t?void 0:t.getActiveCameraInfo();h(null!=i?i:null),g(i?[i]:[]),null===(n=c.current)||void 0===n||n.fetchAvailableCameras().then(g)},onFailure:e.onError,hideShutterButton:!0,onStatusStringUpdate:e.onUserGuidanceTextUpdate,viewFinderPadding:e.viewFinderPadding,pauseAR:e.pauseAR});return{documentScannerView:v,documentScannerViewRef:c,torchSupported:l,scannerInitialized:d,activeCamera:p,availableCameras:f,setActiveCamera:function(e){var t;return h(e),null===(t=c.current)||void 0===t?void 0:t.switchCamera(e.deviceId)}}}({sdk:e.sdk,configuration:e.configuration,onImageCaptured:e=>{_(uS(Promise.resolve(e),"AUTO_SNAP"))},onUserGuidanceTextUpdate:function(e){(!w||"ERROR_NOTHING_DETECTED"!==e&&P)&&(S(e),x(!1))},snappingMode:i,scanningPaused:e.scanningPaused||!C,torchEnabled:r,onError:t=>{t instanceof aS.a?y(!0):e.onError(t)},viewFinderPadding:v,pauseAR:!e.visible||e.scanningPaused||!C}),P=rS(1e3),[L,R]=Object(Eo.useState)(!1);Object(Eo.useEffect)((()=>{requestAnimationFrame((()=>R(!1)))}),[L]);function _(t){R(n.captureFeedback.cameraBlinkEnabled),Cl.INSTANCE.vibrate(e.configuration.screens.camera.vibration),e.onImageCaptured(t)}return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(ir,{display:e.visible?"block":"none","data-sb-screen-camera":!0,style:{position:"absolute",width:"100vw"}},Eo.default.createElement(dC,{config:n.introduction,isOpen:u,onClose:()=>{d(!1),cS.set("hasSeenIntroduction",!0)}}),Eo.default.createElement(mA,{cameraSelectConfig:{availableCameras:k,activeCamera:B,onSelect:e=>dS(this,void 0,void 0,(function*(){yield I(e),a(!1)}))},onCloseButtonClick:()=>{var t;0===e.pages.length?null===(t=e.onClose)||void 0===t||t.call(e):c(!0)},config:e.configuration,onShowIntroButtonClick:()=>d(!0)}),Eo.default.createElement(_A,{config:e.configuration,sdk:e.sdk,documentScannerView:E,showHand:w,userGuidanceText:A,bottomUserGuidanceVisible:g,snappingMode:i,showCameraBlink:L}),Eo.default.createElement(BA,{buttonStates:{importButtonEnabled:!e.scanningPaused,snappingModeState:i,snappingModeButtonEnabled:!e.scanLimitReached,torchState:r&&D?"on":"off",torchButtonEnabled:D,reviewButtonCount:e.pages.length,reviewButtonPreviewImageUrl:p,reviewButtonEnabled:e.pages.length>0,shutterButtonState:e.scanningPaused||!T?"loading":i},sdk:e.sdk,onFileSelectDialogOpened:function(){l.current=i,o("manual")},onFileSelectDialogClosed:function(){l.current&&(o(l.current),l.current=null)},onFileUploaded:t=>e.onImageCaptured(uS(t,"IMPORTED")),snappingModeButtonClick:()=>o((e=>function(e){return"auto"===e?"manual":"auto"}(e))),onTorchButtonClick:()=>a((e=>!e)),onReviewButtonClick:e.onReviewButtonClick,onShutterButtonClick:function(){var e;return dS(this,void 0,void 0,(function*(){x(!1),_(uS(null===(e=O.current)||void 0===e?void 0:e.detectAndCrop(),"MANUAL_SNAP"))}))},scanLimitReached:e.scanLimitReached,config:e.configuration}),Eo.default.createElement(OA,{open:s,config:e.configuration.screens.camera.cancelAlertDialog,onCancelClick:()=>c(!1),onActionClick:()=>{},onOkClick:e.onClose}),Eo.default.createElement(sS,{visible:b,onCloseClick:e.onClose,config:e.configuration})))}function pS(e){const t=Object(Eo.useMemo)((()=>Object(Jo.a)({components:{MuiButtonBase:{styleOverrides:{root:{"&:hover, &:focus":{outline:"none"}}},defaultProps:{disableRipple:!0}}}})),[]);return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(zo,{theme:t},Eo.default.createElement(kr,{component:"div"},e.children)))}function hS(e){const t=or.b.getColorValue(e.color);return Eo.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Eo.default.createElement("mask",{id:"mask0_856_1211",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24"},Eo.default.createElement("rect",{width:"24",height:"24",fill:"#D9D9D9"})),Eo.default.createElement("g",{mask:"url(#mask0_856_1211)"},Eo.default.createElement("path",{d:"M3 9V3H5V6.35C5.83333 5.31667 6.85417 4.5 8.0625 3.9C9.27083 3.3 10.5833 3 12 3C13.9667 3 15.7208 3.55833 17.2625 4.675C18.8042 5.79167 19.8833 7.23333 20.5 9H18.325C17.7583 7.8 16.9167 6.83333 15.8 6.1C14.6833 5.36667 13.4167 5 12 5C11.05 5 10.1542 5.175 9.3125 5.525C8.47083 5.875 7.73333 6.36667 7.1 7H9V9H3ZM6 18H18L14.25 13L11.25 17L9 14L6 18ZM5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V12H5V20H19V12H21V20C21 20.55 20.8042 21.0208 20.4125 21.4125C20.0208 21.8042 19.55 22 19 22H5Z",fill:t})))}function fS(e){const t=e.config,n=e.isQualityAcceptable?t.acceptWhenOkButton:t.acceptWhenNotOkButton;return Eo.default.createElement(ir,{sx:{backgroundColor:or.b.getColorValue(e.backgroundColor),height:78,display:"flex",width:"100%",zIndex:1e3,justifyContent:"center"}},Eo.default.createElement(ir,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",fontSize:24,flexGrow:1,marginX:"min(24px, 5vw)",maxWidth:400}},Eo.default.createElement(_a,{config:e.config.retakeButton,icon:hS,enabled:!0,debugName:"ack-retake",onClick:e.onRetake}),Eo.default.createElement(_a,{config:n,icon:e=>Eo.default.createElement(_v,{style:e}),enabled:!0,debugName:"ack-use-scan",onClick:e.onAccept})))}function gS(e){if(!e.config.visible)return null;const t=or.b.getColorValue(e.config.color);return Eo.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Eo.default.createElement("mask",{id:"mask0_447_6066",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24"},Eo.default.createElement("rect",{width:"24",height:"24",fill:"#D9D9D9"})),Eo.default.createElement("g",{mask:"url(#mask0_447_6066)"},Eo.default.createElement("path",{d:"M5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H13V5H5V19H19V11H21V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5ZM6 17H18L14.25 12L11.25 16L9 13L6 17Z",fill:t}),Eo.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.17 8.83C15.95 9.61 16.8933 10 18 10C19.1067 10 20.05 9.61 20.83 8.83C21.61 8.05 22 7.10667 22 6C22 4.89333 21.61 3.95 20.83 3.17C20.05 2.39 19.1067 2 18 2C16.8933 2 15.95 2.39 15.17 3.17C14.39 3.95 14 4.89333 14 6C14 7.10667 14.39 8.05 15.17 8.83ZM18.4 6.8V3.6H17.6V6.8H18.4ZM18.28 8.28C18.2 8.36 18.1067 8.4 18 8.4C17.8933 8.4 17.8 8.36 17.72 8.28C17.64 8.2 17.6 8.10667 17.6 8C17.6 7.89333 17.64 7.8 17.72 7.72C17.8 7.64 17.8933 7.6 18 7.6C18.1067 7.6 18.2 7.64 18.28 7.72C18.36 7.8 18.4 7.89333 18.4 8C18.4 8.10667 18.36 8.2 18.28 8.28Z",fill:t})))}function vS(e){if(!e.visible||!e.config.visible)return null;const t=e.config.background;return Eo.default.createElement(ir,{style:Object.assign({backgroundColor:or.b.getColorValue(t.fillColor),borderWidth:t.strokeWidth,borderColor:or.b.getColorValue(t.strokeColor),display:"flex",alignItems:"center",flexDirection:"row",padding:"10px",borderRadius:"5px",alignSelf:"center",width:"calc(100% - 40px)",margin:10,maxWidth:"438px"},e.style)},Eo.default.createElement(gS,{config:e.config.icon}),Eo.default.createElement(jr.a,{style:{marginLeft:"10px",fontSize:"14px",lineHeight:"16px",fontWeight:400},config:e.config.title}))}function bS(e){return Eo.default.createElement("img",{"data-sb-acknowledgment-image":!0,style:{display:"block",maxWidth:"90%",objectFit:"contain",flex:1,height:`calc(100 * ${Lr} - 78px - 52px - 20px)`,paddingTop:10},src:e.image,alt:""})}function yS(e){if(!e.visible)return null;const t=e.isQualityAcceptable;return Eo.default.createElement("div",{style:{display:"inherit",flexDirection:"inherit",justifyContent:"inherit",alignItems:"inherit",height:"100%",width:"100%"}},Eo.default.createElement(bS,{image:e.base64Image}),Eo.default.createElement(vS,{visible:!t,config:e.banner.config}),Eo.default.createElement(fS,{isQualityAcceptable:t,backgroundColor:e.bottomBar.backgroundColor,config:e.bottomBar.config,onRetake:e.bottomBar.onRetake,onAccept:e.bottomBar.onAccept}))}function CS(e){const t=or.b.getColorValue(e.config.checkMarkColor),n=or.b.getColorValue(e.config.checkMarkBackgroundColor);return Eo.default.createElement("svg",{"data-sb-acknowledgment-checkmark":!0,width:"96",height:"96",viewBox:"0 0 96 96",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Eo.default.createElement("path",{d:"M71.2135 31.8234C72.376 32.9859 72.376 34.8984 71.2135 36.0609L43.0885 64.1859C42.5073 64.7672 41.7385 65.0672 40.9698 65.0672C40.201 65.0672 39.4323 64.7672 38.851 64.1859L24.7885 50.1234C23.626 48.9609 23.626 47.0484 24.7885 45.8859C25.951 44.7234 27.8635 44.7234 29.026 45.8859L40.9698 57.8297L66.976 31.8234C68.1385 30.6422 70.051 30.6422 71.2135 31.8234Z",fill:t}),Eo.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48 0C21.525 0 0 21.525 0 48C0 74.475 21.525 96 48 96C74.475 96 96 74.475 96 48C96 21.525 74.475 0 48 0ZM71.2135 36.0609C72.376 34.8984 72.376 32.9859 71.2135 31.8234C70.051 30.6422 68.1385 30.6422 66.976 31.8234L40.9698 57.8297L29.026 45.8859C27.8635 44.7234 25.951 44.7234 24.7885 45.8859C23.626 47.0484 23.626 48.9609 24.7885 50.1234L38.851 64.1859C39.4323 64.7672 40.201 65.0672 40.9698 65.0672C41.7385 65.0672 42.5073 64.7672 43.0885 64.1859L71.2135 36.0609Z",fill:n}))}function AS(e){if(!e.visible)return null;if("PageSnapFeedbackNone"===e.mode._type)return null;if("PageSnapFunnelAnimation"===e.mode._type)return Eo.default.createElement(bS,{image:e.base64Image});if("PageSnapCheckMarkAnimation"===e.mode._type)return Eo.default.createElement(CS,{config:e.mode});throw new Error(`Unknown PageSnapFeedbackMode: ${e.mode}`)}var SS=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};function wS(e){const t=Gy(e.croppedDetectionResult);Object(Eo.useEffect)((()=>{(null===(null==t?void 0:t.value)||(null==t?void 0:t.error))&&e.onReject()}),[null==t?void 0:t.value,null==t?void 0:t.error]);const n=e.configuration.screens.camera.acknowledgement,i=e.configuration.screens.camera.captureFeedback,o=e.configuration.outputSettings,r=n.acknowledgementMode,[a,s]=Eo.default.useState(null),[c,l]=Eo.default.useState(null),u=Eo.default.useRef(null),d=null!==c,m=()=>"ALWAYS"===r||"NONE"!==r&&(!!d&&("BAD_QUALITY"===r&&!c)),p=t=>{setTimeout((()=>{h(),e.onAccept(t,u.current)}),1500)},h=()=>{s(null),l(null)},f={null:-1,VERY_POOR:0,POOR:1,REASONABLE:2,GOOD:3,EXCELLENT:4};let g;Object(Eo.useEffect)((()=>{var a;if(null==t?void 0:t.value){const c=t.value.value;let d=null!==(a=c.croppedImage)&&void 0!==a?a:c.originalImage;function m(){return SS(this,void 0,void 0,(function*(){null!==o.defaultFilter&&"FILTERED_DOCUMENT"===o.documentAnalysisMode&&(d=yield e.sdk.imageFilter(d,o.defaultFilter,"COPY_IMAGE"));if("PageSnapFunnelAnimation"===i.snapFeedbackMode._type||"ALWAYS"===r||"BAD_QUALITY"===r){const t=yield e.sdk.imageToJpeg(d),n=yield W.toBase64(t,!1);s(n)}if("NONE"===r)return l(!0),void p(t.value);if(null===c.croppedImage)return void l(!1);const a=yield e.sdk.createDocumentQualityAnalyzer(),m=yield a.analyze(d);u.current=m.quality,yield a.release();const h=f[m.quality]>=f[n.minimumQuality];l(h),h&&"BAD_QUALITY"===r&&p(t.value)}))}return m(),()=>{h()}}}),[null==t?void 0:t.value]),g=m()?n.backgroundColor:"PageSnapFeedbackNone"===i.snapFeedbackMode._type?"transparent":i.snapFeedbackMode.overlayColor,g=or.b.getColorValue(g);const v=i.cameraBlinkEnabled?RA:"0s";return Eo.default.createElement(Bc,{open:e.visible},Eo.default.createElement(Gc,{tabIndex:-1,"data-sb-screen-acknowledgment":!0,in:e.visible,timeout:250,style:{position:"absolute",width:"100vw",height:`calc(100 * ${Lr})`,display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",transitionDelay:e.visible?v:"0s"}},Eo.default.createElement(ir,{style:{display:e.visible?"flex":"none",flexDirection:"column",justifyContent:"center",alignItems:"center",backgroundColor:g,zIndex:1e3}},Eo.default.createElement(AS,{visible:!m()&&d,base64Image:a,mode:i.snapFeedbackMode}),Eo.default.createElement(yS,{visible:m(),isQualityAcceptable:c,base64Image:a,banner:{config:n.badImageHint},bottomBar:{backgroundColor:e.configuration.appearance.bottomBarBackgroundColor,config:n.bottomBar,onRetake:()=>{h(),e.onReject()},onAccept:()=>{h(),e.onAccept(null==t?void 0:t.value,u.current)}}}))))}var xS=n(126),ES=n.n(xS),OS=n(1),DS=n(125),TS=n.n(DS);function BS(e){const t=e.config.screens.review,[n,i]=Eo.default.useState(null);return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(hC,{backgroundColor:or.b.getColorValue(e.config.appearance.topBarBackgroundColor),leftContent:Eo.default.createElement(Fa,{disabled:!e.buttonsEnabled,onClick:e.onCloseButtonClick,visible:t.topBarBackButton.visible,text:t.topBarBackButton.text,background:t.topBarBackButton.background,foreground:t.topBarBackButton.foreground,icon:Eo.default.createElement(iC.a,{sx:{fontSize:24}}),debugName:"close-review-screen"}),centerTitle:t.topBarTitle,centerTitleReplacementArgs:[`${e.numPages}`],rightContent:Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(Fa,{disabled:!e.buttonsEnabled,onClick:e=>i(e.currentTarget),visible:t.topBarMoreButton.visible,text:"",background:new OS.BackgroundStyle({strokeColor:"transparent",fillColor:"transparent",strokeWidth:0}),foreground:new OS.ForegroundStyle({color:t.topBarMoreButton.color,iconVisible:!0}),icon:Eo.default.createElement(TS.a,{sx:{fontSize:24}}),debugName:"more",id:"sb-button-review-more",ariaLabel:or.b.getLocalizedText(t.topBarMoreButton.accessibilityDescription)}),Eo.default.createElement(JC,{anchorEl:n,open:null!==n,onClose:()=>i(null),MenuListProps:{"aria-labelledby":"sb-button-review-more"},slotProps:{paper:{style:{backgroundColor:or.b.getColorValue(t.morePopup.backgroundColor)}}}},Eo.default.createElement(cA,{disabled:!1,autoFocus:!0,ariaLabel:t.morePopup.deleteAll.accessibilityDescription,onClick:()=>{i(null),e.onDeleteButtonClick()},textColor:t.morePopup.deleteAll.title.color},Eo.default.createElement(ES.a,{sx:{color:or.b.getColorValue(t.morePopup.deleteAll.icon.color),visibility:t.morePopup.deleteAll.icon.visible?"visible":"hidden"}}),Eo.default.createElement(jr.a,{config:t.morePopup.deleteAll.title,style:{marginLeft:8}}))))}))}var kS=n(127),IS=n.n(kS),PS=n(88),LS=n.n(PS);function RS(e){const t=or.b.getColorValue(e.color);return Eo.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Eo.default.createElement("path",{d:"M6 22C5.45 22 4.97917 21.8042 4.5875 21.4125C4.19583 21.0208 4 20.55 4 20V4C4 3.45 4.19583 2.97917 4.5875 2.5875C4.97917 2.19583 5.45 2 6 2H14L20 8V12.35C19.6833 12.2333 19.3583 12.1458 19.025 12.0875C18.6917 12.0292 18.35 12 18 12V9H13V4H6V20H12.35C12.4833 20.3833 12.65 20.7417 12.85 21.075C13.05 21.4083 13.2833 21.7167 13.55 22H6Z",fill:t}),Eo.default.createElement("path",{d:"M16.8624 19V22H18.8624V19H21.8624V17H18.8624V14H16.8624V17H13.8624V19H16.8624Z",fill:t}))}function _S(e){const t=or.b.getColorValue(e.color);return Eo.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Eo.default.createElement("mask",{id:"mask0_856_1229",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24"},Eo.default.createElement("rect",{width:"24",height:"24",fill:"#D9D9D9"})),Eo.default.createElement("g",{mask:"url(#mask0_856_1229)"},Eo.default.createElement("path",{d:"M7 21C6.45 21 5.97917 20.8042 5.5875 20.4125C5.19583 20.0208 5 19.55 5 19V6H4V4H9V3H15V4H20V6H19V19C19 19.55 18.8042 20.0208 18.4125 20.4125C18.0208 20.8042 17.55 21 17 21H7ZM17 6H7V19H17V6ZM9 17H11V8H9V17ZM13 17H15V8H13V17Z",fill:t})))}function jS(){return vy("tablet")?80:160}function MS(e){const t=vy("tablet"),n=e.config.screens.review,i=Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(Da,{style:{height:42,display:"flex",alignItems:"center",justifyContent:"center",fontSize:16,textTransform:"none",padding:"0 20px",width:"100%"},styleConfig:Object.assign(Object.assign({},n.bottomBar.submitButton.background),{cornerRadius:4})},Eo.default.createElement(jr.a,{config:{text:or.b.getLocalizedText(n.bottomBar.submitButton.text),visible:!0,color:n.bottomBar.submitButton.foreground.color,useShadow:n.bottomBar.submitButton.foreground.useShadow}}))),o=Object.assign(Object.assign({padding:"4px"},Ra(n.bottomBar.submitButton.background.fillColor)),{"& span":{transition:"transform 0.3s !important"},"&:hover span":{transform:"translateX(6px) !important"},"& > div, &":{transition:"border-radius 0.3s !important"},"&:hover > div, &:hover":{borderRadius:"0px !important"}});return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(ir,{style:{backgroundColor:or.b.getColorValue(e.config.appearance.bottomBarBackgroundColor),height:jS(),width:"100%"}},Eo.default.createElement(ir,{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:t?"space-between":"center",height:80}},t&&Eo.default.createElement(ir,{visibility:"hidden"}),Eo.default.createElement(ir,{style:{display:"flex",flexDirection:"row",maxWidth:"600px",justifyContent:"space-around",flexGrow:1}},Eo.default.createElement(_a,{enabled:e.buttonsEnabled,config:n.bottomBar.addButton,icon:RS,onClick:e.onAddPageClick,debugName:"add-page"}),Eo.default.createElement(_a,{enabled:e.buttonsEnabled,config:n.bottomBar.retakeButton,icon:hS,onClick:e.onRetakeClick,debugName:"retake"}),Eo.default.createElement(_a,{enabled:e.buttonsEnabled,config:n.bottomBar.cropButton,icon:e=>Eo.default.createElement(IS.a,{sx:{color:e}}),onClick:e.onCropClick,debugName:"crop-button"}),Eo.default.createElement(_a,{enabled:e.buttonsEnabled,config:n.bottomBar.rotateButton,icon:e=>Eo.default.createElement(LS.a,{sx:{color:e}}),onClick:e.onRotateClick,debugName:"rotate-button"}),Eo.default.createElement(_a,{enabled:e.buttonsEnabled,config:n.bottomBar.deleteButton,icon:_S,onClick:e.onDeleteClick,debugName:"delete-button"})),t&&Eo.default.createElement(Ea,{"data-sb-button-submit":!0,disabled:!e.buttonsEnabled,"aria-label":or.b.getLocalizedText(n.bottomBar.submitButton.text),sx:Object.assign({flexGrow:1,maxWidth:172,marginX:"4px"},o),onClick:e.onSubmitClick},i)),!t&&Eo.default.createElement(ir,{style:{padding:"12px",display:"flex"}},Eo.default.createElement(Ea,{"data-sb-button-submit":!0,disabled:!e.buttonsEnabled,"aria-label":or.b.getLocalizedText(n.bottomBar.submitButton.text),sx:Object.assign({flexGrow:1,maxWidth:600,margin:"0 auto"},o),onClick:e.onSubmitClick},i))))}var FS=n(128),NS=n.n(FS);function VS(e){return Eo.default.createElement(ir,{style:{display:"flex",width:"100%",backgroundColor:or.b.getColorValue(e.config.backgroundColor),justifyContent:"space-between",alignItems:"end",padding:"16px 0"}},Eo.default.createElement(ir,{style:{width:72,height:20}}),Eo.default.createElement(ir,null,Eo.default.createElement(Da,{styleConfig:{strokeColor:e.config.pageCounter.background.strokeColor,fillColor:e.config.pageCounter.background.fillColor,strokeWidth:e.config.pageCounter.background.strokeWidth,cornerRadius:4}},Eo.default.createElement(jr.a,{config:e.config.pageCounter.title,replacementArgs:[`${e.currentPage}`,`${e.totalNumPages}`],style:{fontSize:14,padding:"8px 12px"}}))),Eo.default.createElement(ir,null,Eo.default.createElement(Pa,{onClick:e.onZoomButtonClick,"aria-label":or.b.getLocalizedText(e.config.zoomButton.accessibilityDescription),sx:Object.assign({backgroundColor:or.b.getColorValue(e.config.zoomButton.backgroundColor),color:or.b.getColorValue(e.config.zoomButton.foregroundColor),margin:"0 16px",visibility:e.config.zoomButton.visible?"visible":"hidden","&:hover":{backgroundColor:or.b.getColorValue(e.config.zoomButton.activeBackgroundColor),color:or.b.getColorValue(e.config.zoomButton.activeForegroundColor)}},Ra(e.config.zoomButton.foregroundColor))},Eo.default.createElement(NS.a,null))))}function WS(){return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Eo.default.createElement("path",{d:"M5.6236 27.7347C2.97532 25.2802 1.23517 22.0019 0.686077 18.4331C0.136983 14.8642 0.811227 11.2145 2.59919 8.0774C4.38716 4.94028 7.1837 2.50018 10.5342 1.15382C13.8847 -0.192539 17.592 -0.365996 21.0536 0.661651L20.0518 4.03609C17.3518 3.23452 14.46 3.36982 11.8467 4.41998C9.23329 5.47014 7.05198 7.37342 5.65737 9.82037C4.26276 12.2673 3.73685 15.1141 4.16514 17.8978C4.59343 20.6815 5.95075 23.2385 8.01641 25.1531L5.6236 27.7347Z",fill:"black",fillOpacity:"0.15"},Eo.default.createElement("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",to:"0 16.5 16",from:"360 16.5 16",dur:"2s",begin:"0s",repeatCount:"indefinite"})),Eo.default.createElement("path",{d:"M16.5 1.76C16.5 0.787979 17.2903 -0.0100083 18.2565 0.0967004C20.3808 0.331329 22.4428 0.989952 24.3179 2.04006C26.7065 3.37771 28.7119 5.30584 30.1422 7.64002C31.5726 9.9742 32.3802 12.6364 32.4877 15.3718C32.5951 18.1073 31.9989 20.8246 30.7561 23.2638C29.5133 25.7031 27.6654 27.7826 25.3891 29.3035C23.1129 30.8244 20.4845 31.7359 17.7553 31.9507C15.0262 32.1655 12.2876 31.6764 9.80145 30.5303C7.84973 29.6305 6.10487 28.3495 4.6664 26.7687C4.01218 26.0498 4.19322 24.9414 4.9796 24.3701C5.76598 23.7987 6.85859 23.9836 7.5348 24.6819C8.60362 25.7856 9.87071 26.6862 11.2751 27.3336C13.2143 28.2276 15.3504 28.6091 17.4792 28.4415C19.6079 28.274 21.6581 27.5631 23.4335 26.3767C25.209 25.1904 26.6503 23.5684 27.6198 21.6658C28.5892 19.7632 29.0542 17.6437 28.9704 15.51C28.8865 13.3764 28.2567 11.2999 27.1409 9.47922C26.0252 7.65856 24.4611 6.15461 22.598 5.11125C21.2487 4.35561 19.7753 3.85986 18.2542 3.6439C17.2918 3.50727 16.5 2.73202 16.5 1.76Z",fill:"black"},Eo.default.createElement("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",to:"0 16.5 16",from:"360 16.5 16",dur:"2s",begin:"0s",repeatCount:"indefinite"}))))}function zS(e){return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(ul,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},slotProps:{backdrop:{style:{backgroundColor:"transparent"}}},open:e.open,transitionDuration:100},Eo.default.createElement(ir,{"data-sb-loading-spinner":!0,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-busy":open?"true":"false",style:{backgroundColor:"#EFEFEF",border:"1px solid #CCC",borderRadius:"4px",height:65,width:65,display:"flex",alignItems:"center",justifyContent:"center"}},Eo.default.createElement(WS,null))))}function HS(e){const t=e.config.visible&&e.active;return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement("div",{style:{width:"40px"}},Eo.default.createElement(Ea,{[`data-sb-button-${e.debugName}`]:!0,sx:Object.assign({color:or.b.getColorValue(e.config.color),minWidth:"auto",visibility:t?"visible":"hidden",paddingX:"4px",marginX:"4px"},La(e.config.color)),onClick:e.onClick,"aria-label":or.b.getLocalizedText(e.config.accessibilityDescription)},Eo.default.createElement(e.icon,null))))}var US=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};function ZS(e){var t,n;const i=Gy(e.page.finalImageUrl()),[o,r]=Eo.default.useState(null),[a,s]=Eo.default.useState(!1);Object(Eo.useEffect)((()=>{(()=>{US(this,void 0,void 0,(function*(){!e.animateRotation&&i.value&&(yield new Promise((e=>{const t=document.createElement("img");t.onload=e,t.src=i.value})),r(i.value),s(!1)),e.animateRotation&&s(!0)}))})()}),[i.value,e.animateRotation]);const c=Eo.default.useRef(null),l=(()=>{const e=c.current;if(a&&e){const t=e.parentElement;let n;if([e.clientHeight,e.clientWidth,t.clientHeight,e.clientHeight].some((e=>0===e)))n=1;else{const i=1/(e.clientWidth/e.clientHeight),o=t.clientWidth/t.clientHeight;n=t.clientHeight>e.naturalWidth&&t.clientWidth>e.naturalHeight?Math.max(e.naturalHeight/t.clientHeight,1):i<o?t.clientHeight/e.clientWidth:t.clientWidth/e.clientHeight}return{transform:`rotate(90deg) scale(${n})`,transition:"transform 0.5s"}}return{transform:"none",transition:"none"}})();return null===o&&null!==e.onAnimateRotationDone.current?(null===(n=(t=e.onAnimateRotationDone).current)||void 0===n||n.call(t),null):Eo.default.createElement(Eo.default.Fragment,null,o&&Eo.default.createElement("img",{"data-sb-carousel-page":!0,ref:c,onTransitionEnd:()=>{var t,n;return null===(n=(t=e.onAnimateRotationDone).current)||void 0===n?void 0:n.call(t)},style:Object.assign(Object.assign({},e.style),l),src:o,alt:`Page ${e.index}`}))}var GS=n(129),$S=n.n(GS);function YS(e){return function(e){return"[object Object]"===Object.prototype.toString.call(e)}(e)||Array.isArray(e)}function QS(e,t){const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;return JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every((n=>{const i=e[n],o=t[n];return"function"==typeof i?`${i}`==`${o}`:YS(i)&&YS(o)?QS(i,o):i===o}))}function XS(e){return e.concat().sort(((e,t)=>e.name>t.name?1:-1)).map((e=>e.options))}function qS(e){return"number"==typeof e}function KS(e){return"string"==typeof e}function JS(e){return"boolean"==typeof e}function ew(e){return"[object Object]"===Object.prototype.toString.call(e)}function tw(e){return Math.abs(e)}function nw(e){return Math.sign(e)}function iw(e,t){return tw(e-t)}function ow(e){return lw(e).map(Number)}function rw(e){return e[aw(e)]}function aw(e){return Math.max(0,e.length-1)}function sw(e,t){return t===aw(e)}function cw(e,t=0){return Array.from(Array(e),((e,n)=>t+n))}function lw(e){return Object.keys(e)}function uw(e,t){return[e,t].reduce(((e,t)=>(lw(t).forEach((n=>{const i=e[n],o=t[n],r=ew(i)&&ew(o);e[n]=r?uw(i,o):o})),e)),{})}function dw(e,t){return"undefined"!=typeof t.MouseEvent&&e instanceof t.MouseEvent}function mw(){let e=[];const t={add:function(n,i,o,r={passive:!0}){let a;if("addEventListener"in n)n.addEventListener(i,o,r),a=()=>n.removeEventListener(i,o,r);else{const e=n;e.addListener(o),a=()=>e.removeListener(o)}return e.push(a),t},clear:function(){e=e.filter((e=>e()))}};return t}function pw(e,t,n,i){const o=mw(),r=1e3/60;let a=null,s=0,c=0;function l(e){if(!c)return;a||(a=e);const o=e-a;for(a=e,s+=o;s>=r;)n(r),s-=r;i(s/r),c&&t.requestAnimationFrame(l)}function u(){t.cancelAnimationFrame(c),a=null,s=0,c=0}return{init:function(){o.add(e,"visibilitychange",(()=>{e.hidden&&(a=null,s=0)}))},destroy:function(){u(),o.clear()},start:function(){c||(c=t.requestAnimationFrame(l))},stop:u,update:()=>n(r),render:i}}function hw(e=0,t=0){const n=tw(e-t);function i(t){return t<e}function o(e){return e>t}function r(e){return i(e)||o(e)}return{length:n,max:t,min:e,constrain:function(n){return r(n)?i(n)?e:t:n},reachedAny:r,reachedMax:o,reachedMin:i,removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function fw(e,t,n){const{constrain:i}=hw(0,e),o=e+1;let r=a(t);function a(e){return n?tw((o+e)%o):i(e)}function s(){return r}function c(){return fw(e,s(),n)}const l={get:s,set:function(e){return r=a(e),l},add:function(e){return c().set(s()+e)},clone:c};return l}function gw(e,t,n,i,o,r,a,s,c,l,u,d,m,p,h,f,g,v,b){const{cross:y,direction:C}=e,A=["INPUT","SELECT","TEXTAREA"],S={passive:!1},w=mw(),x=mw(),E=hw(50,225).constrain(p.measure(20)),O={mouse:300,touch:400},D={mouse:500,touch:600},T=h?43:25;let B=!1,k=0,I=0,P=!1,L=!1,R=!1,_=!1;function j(e){if(!dw(e,i)&&e.touches.length>=2)return M(e);const t=r.readPoint(e),n=r.readPoint(e,y),a=iw(t,k),c=iw(n,I);if(!L&&!_){if(!e.cancelable)return M(e);if(L=a>c,!L)return M(e)}const u=r.pointerMove(e);a>f&&(R=!0),l.useFriction(.3).useDuration(.75),s.start(),o.add(C(u)),e.preventDefault()}function M(e){const t=u.byDistance(0,!1).index!==d.get(),n=r.pointerUp(e)*(h?D:O)[_?"mouse":"touch"],i=function(e,t){const n=d.add(-1*nw(e)),i=u.byDistance(e,!h).distance;return h||tw(e)<E?i:g&&t?.5*i:u.byIndex(n.get(),0).distance}(C(n),t),o=function(e,t){if(0===e||0===t)return 0;if(tw(e)<=tw(t))return 0;const n=iw(tw(e),tw(t));return tw(n/e)}(n,i),a=T-10*o,s=v+o/50;L=!1,P=!1,x.clear(),l.useDuration(a).useFriction(s),c.distance(i,!h),_=!1,m.emit("pointerUp")}function F(e){R&&(e.stopPropagation(),e.preventDefault(),R=!1)}return{init:function(e){if(!b)return;function s(s){(JS(b)||b(e,s))&&function(e){const s=dw(e,i);if(_=s,R=h&&s&&!e.buttons&&B,B=iw(o.get(),a.get())>=2,s&&0!==e.button)return;if(function(e){const t=e.nodeName||"";return A.includes(t)}(e.target))return;P=!0,r.pointerDown(e),l.useFriction(0).useDuration(0),o.set(a),function(){const e=_?n:t;x.add(e,"touchmove",j,S).add(e,"touchend",M).add(e,"mousemove",j,S).add(e,"mouseup",M)}(),k=r.readPoint(e),I=r.readPoint(e,y),m.emit("pointerDown")}(s)}const c=t;w.add(c,"dragstart",(e=>e.preventDefault()),S).add(c,"touchmove",(()=>{}),S).add(c,"touchend",(()=>{})).add(c,"touchstart",s).add(c,"mousedown",s).add(c,"touchcancel",M).add(c,"contextmenu",M).add(c,"click",F,!0)},destroy:function(){w.clear(),x.clear()},pointerDown:function(){return P}}}function vw(e,t){let n,i;function o(e){return e.timeStamp}function r(n,i){const o="client"+("x"===(i||e.scroll)?"X":"Y");return(dw(n,t)?n:n.touches[0])[o]}return{pointerDown:function(e){return n=e,i=e,r(e)},pointerMove:function(e){const t=r(e)-r(i),a=o(e)-o(n)>170;return i=e,a&&(n=e),t},pointerUp:function(e){if(!n||!i)return 0;const t=r(i)-r(n),a=o(e)-o(n),s=o(e)-o(i)>170,c=t/a;return a&&!s&&tw(c)>.1?c:0},readPoint:r}}function bw(e,t,n,i,o,r,a){const s=[e].concat(i);let c,l,u=[],d=!1;function m(e){return o.measureSize(a.measure(e))}return{init:function(o){r&&(l=m(e),u=i.map(m),c=new ResizeObserver((n=>{(JS(r)||r(o,n))&&function(n){for(const r of n){if(d)return;const n=r.target===e,a=i.indexOf(r.target),s=n?l:u[a];if(tw(m(n?e:i[a])-s)>=.5){o.reInit(),t.emit("resize");break}}}(n)})),n.requestAnimationFrame((()=>{s.forEach((e=>c.observe(e)))})))},destroy:function(){d=!0,c&&c.disconnect()}}}function yw(e,t,n,i,o){const r=o.measure(10),a=o.measure(50),s=hw(.1,.99);let c=!1;function l(){return!c&&(!!e.reachedAny(n.get())&&!!e.reachedAny(t.get()))}return{shouldConstrain:l,constrain:function(o){if(!l())return;const c=e.reachedMin(t.get())?"min":"max",u=tw(e[c]-t.get()),d=n.get()-t.get(),m=s.constrain(u/a);n.subtract(d*m),!o&&tw(d)<r&&(n.set(e.constrain(n.get())),i.useDuration(25).useBaseFriction())},toggleActive:function(e){c=!e}}}function Cw(e,t,n,i){const o=t.min+.1,r=t.max+.1,{reachedMin:a,reachedMax:s}=hw(o,r);return{loop:function(t){if(!function(e){return 1===e?s(n.get()):-1===e&&a(n.get())}(t))return;const o=e*(-1*t);i.forEach((e=>e.add(o)))}}}function Aw(e,t,n,i,o){const{reachedAny:r,removeOffset:a,constrain:s}=i;function c(e){return e.concat().sort(((e,t)=>tw(e)-tw(t)))[0]}function l(t,i){const o=[t,t+n,t-n];if(!e)return t;if(!i)return c(o);const r=o.filter((e=>nw(e)===i));return r.length?c(r):rw(o)-n}const u={byDistance:function(n,i){const c=o.get()+n,{index:u,distance:d}=function(n){const i=e?a(n):s(n),o=t.map(((e,t)=>({diff:l(e-i,0),index:t}))).sort(((e,t)=>tw(e.diff)-tw(t.diff))),{index:r}=o[0];return{index:r,distance:i}}(c),m=!e&&r(c);return!i||m?{index:u,distance:n}:{index:u,distance:n+l(t[u]-d,0)}},byIndex:function(e,n){return{index:e,distance:l(t[e]-o.get(),n)}},shortcut:l};return u}function Sw(e,t,n,i,o,r,a,s){const c={passive:!0,capture:!0};let l=0;function u(e){"Tab"===e.code&&(l=(new Date).getTime())}return{init:function(d){s&&(r.add(document,"keydown",u,!1),t.forEach(((t,u)=>{r.add(t,"focus",(t=>{(JS(s)||s(d,t))&&function(t){if((new Date).getTime()-l>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;const r=n.findIndex((e=>e.includes(t)));qS(r)&&(o.useDuration(0),i.index(r,0),a.emit("slideFocus"))}(u)}),c)})))}}}function ww(e){let t=e;function n(e){return qS(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function xw(e,t){const n="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},i=t.style;let o=!1;return{clear:function(){o||(i.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){o||(i.transform=n(e.direction(t)))},toggleActive:function(e){o=!e}}}function Ew(e,t,n,i,o,r,a,s,c){const l=ow(o),u=ow(o).reverse(),d=function(){const e=a[0];return h(p(u,e),n,!1)}().concat(function(){const e=t-a[0]-1;return h(p(l,e),-n,!0)}());function m(e,t){return e.reduce(((e,t)=>e-o[t]),t)}function p(e,t){return e.reduce(((e,n)=>m(e,t)>0?e.concat([n]):e),[])}function h(o,a,l){const u=function(e){return r.map(((n,o)=>({start:n-i[o]+.5+e,end:n+t-.5+e})))}(a);return o.map((t=>{const i=l?0:-n,o=l?n:0,r=l?"end":"start",a=u[t][r];return{index:t,loopPoint:a,slideLocation:ww(-1),translate:xw(e,c[t]),target:()=>s.get()>a?i:o}}))}return{canLoop:function(){return d.every((({index:e})=>m(l.filter((t=>t!==e)),t)<=.1))},clear:function(){d.forEach((e=>e.translate.clear()))},loop:function(){d.forEach((e=>{const{target:t,translate:n,slideLocation:i}=e,o=t();o!==i.get()&&(n.to(o),i.set(o))}))},loopPoints:d}}function Ow(e,t,n){let i,o=!1;return{init:function(r){n&&(i=new MutationObserver((e=>{o||(JS(n)||n(r,e))&&function(e){for(const n of e)if("childList"===n.type){r.reInit(),t.emit("slidesChanged");break}}(e)})),i.observe(e,{childList:!0}))},destroy:function(){i&&i.disconnect(),o=!0}}}function Dw(e,t,n,i){const o={};let r,a=null,s=null,c=!1;return{init:function(){r=new IntersectionObserver((e=>{c||(e.forEach((e=>{const n=t.indexOf(e.target);o[n]=e})),a=null,s=null,n.emit("slidesInView"))}),{root:e.parentElement,threshold:i}),t.forEach((e=>r.observe(e)))},destroy:function(){r&&r.disconnect(),c=!0},get:function(e=!0){if(e&&a)return a;if(!e&&s)return s;const t=function(e){return lw(o).reduce(((t,n)=>{const i=parseInt(n),{isIntersecting:r}=o[i];return(e&&r||!e&&!r)&&t.push(i),t}),[])}(e);return e&&(a=t),e||(s=t),t}}}function Tw(e,t,n,i,o,r,a,s,c){const{startEdge:l,endEdge:u,direction:d}=e,m=qS(n);return{groupSlides:function(e){return m?function(e,t){return ow(e).filter((e=>e%t==0)).map((n=>e.slice(n,n+t)))}(e,n):function(e){return e.length?ow(e).reduce(((n,m,p)=>{const h=rw(n)||0,f=0===h,g=m===aw(e),v=o[l]-r[h][l],b=o[l]-r[m][u],y=!i&&f?d(a):0,C=tw(b-(!i&&g?d(s):0)-(v+y));return p&&C>t+c&&n.push(m),g&&n.push(e.length),n}),[]).map(((t,n,i)=>{const o=Math.max(i[n-1]||0);return e.slice(o,t)})):[]}(e)}}}function Bw(e,t,n,i,o,r,a){const{align:s,axis:c,direction:l,startIndex:u,loop:d,duration:m,dragFree:p,dragThreshold:h,inViewThreshold:f,slidesToScroll:g,skipSnaps:v,containScroll:b,watchResize:y,watchSlides:C,watchDrag:A,watchFocus:S}=r,w={measure:function(e){const{offsetTop:t,offsetLeft:n,offsetWidth:i,offsetHeight:o}=e;return{top:t,right:n+i,bottom:t+o,left:n,width:i,height:o}}},x=w.measure(t),E=n.map(w.measure),O=function(e,t){const n="rtl"===t,i="y"===e,o=!i&&n?-1:1;return{scroll:i?"y":"x",cross:i?"x":"y",startEdge:i?"top":n?"right":"left",endEdge:i?"bottom":n?"left":"right",measureSize:function(e){const{height:t,width:n}=e;return i?t:n},direction:function(e){return e*o}}}(c,l),D=O.measureSize(x),T=function(e){return{measure:function(t){return e*(t/100)}}}(D),B=function(e,t){const n={start:function(){return 0},center:function(e){return i(e)/2},end:i};function i(e){return t-e}return{measure:function(i,o){return KS(e)?n[e](i):e(t,i,o)}}}(s,D),k=!d&&!!b,I=d||!!b,{slideSizes:P,slideSizesWithGaps:L,startGap:R,endGap:_}=function(e,t,n,i,o,r){const{measureSize:a,startEdge:s,endEdge:c}=e,l=n[0]&&o,u=function(){if(!l)return 0;const e=n[0];return tw(t[s]-e[s])}(),d=function(){if(!l)return 0;const e=r.getComputedStyle(rw(i));return parseFloat(e.getPropertyValue(`margin-${c}`))}(),m=n.map(a),p=n.map(((e,t,n)=>{const i=!t,o=sw(n,t);return i?m[t]+u:o?m[t]+d:n[t+1][s]-e[s]})).map(tw);return{slideSizes:m,slideSizesWithGaps:p,startGap:u,endGap:d}}(O,x,E,n,I,o),j=Tw(O,D,g,d,x,E,R,_,2),{snaps:M,snapsAligned:F}=function(e,t,n,i,o){const{startEdge:r,endEdge:a}=e,{groupSlides:s}=o,c=s(i).map((e=>rw(e)[a]-e[0][r])).map(tw).map(t.measure),l=i.map((e=>n[r]-e[r])).map((e=>-tw(e))),u=s(l).map((e=>e[0])).map(((e,t)=>e+c[t]));return{snaps:l,snapsAligned:u}}(O,B,x,E,j),N=-rw(M)+rw(L),{snapsContained:V,scrollContainLimit:W}=function(e,t,n,i,o){const r=hw(-t+e,0),a=n.map(((e,t)=>{const{min:i,max:o}=r,a=r.constrain(e),s=!t,l=sw(n,t);return s?o:l||c(i,a)?i:c(o,a)?o:a})).map((e=>parseFloat(e.toFixed(3)))),s=function(){const e=a[0],t=rw(a);return hw(a.lastIndexOf(e),a.indexOf(t)+1)}();function c(e,t){return iw(e,t)<1}return{snapsContained:function(){if(t<=e+o)return[r.max];if("keepSnaps"===i)return a;const{min:n,max:c}=s;return a.slice(n,c)}(),scrollContainLimit:s}}(D,N,F,b,2),z=k?V:F,{limit:H}=function(e,t,n){const i=t[0];return{limit:hw(n?i-e:rw(t),i)}}(N,z,d),U=fw(aw(z),u,d),Z=U.clone(),G=ow(n),$=pw(i,o,(e=>(({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:i}},o)=>{i||n.constrain(e.pointerDown()),t.seek(o)})(se,e)),(e=>(({scrollBody:e,translate:t,location:n,offsetLocation:i,scrollLooper:o,slideLooper:r,dragHandler:a,animation:s,eventHandler:c,scrollBounds:l,options:{loop:u}},d)=>{const m=e.settled(),p=!l.shouldConstrain(),h=u?m:m&&p;h&&!a.pointerDown()&&(s.stop(),c.emit("settle")),h||c.emit("scroll");const f=n.get()*d+X.get()*(1-d);i.set(f),u&&(o.loop(e.direction()),r.loop()),t.to(i.get())})(se,e))),Y=z[U.get()],Q=ww(Y),X=ww(Y),q=ww(Y),K=ww(Y),J=function(e,t,n,i,o,r){let a=0,s=0,c=o,l=r,u=e.get(),d=0;function m(e){return c=e,h}function p(e){return l=e,h}const h={direction:function(){return s},duration:function(){return c},velocity:function(){return a},seek:function(t){const o=t/1e3,r=c*o,m=i.get()-e.get();let p=0;return c?(n.set(e),a+=m/r,a*=l,u+=a,e.add(a*o),p=u-d):(a=0,n.set(i),e.set(i),p=m),s=nw(p),d=u,h},settled:function(){return tw(i.get()-t.get())<.001},useBaseFriction:function(){return p(r)},useBaseDuration:function(){return m(o)},useFriction:p,useDuration:m};return h}(Q,q,X,K,m,.68),ee=Aw(d,z,N,H,K),te=function(e,t,n,i,o,r,a){function s(o){const s=o.distance,c=o.index!==t.get();r.add(s),s&&(i.duration()?e.start():(e.update(),e.render(1),e.update())),c&&(n.set(t.get()),t.set(o.index),a.emit("select"))}return{distance:function(e,t){s(o.byDistance(e,t))},index:function(e,n){const i=t.clone().set(e);s(o.byIndex(i.get(),n))}}}($,U,Z,J,ee,K,a),ne=function(e){const{max:t,length:n}=e;return{get:function(e){return n?(e-t)/-n:0}}}(H),ie=mw(),oe=Dw(t,n,a,f),{slideRegistry:re}=function(e,t,n,i,o,r){const{groupSlides:a}=o,{min:s,max:c}=i;return{slideRegistry:function(){const i=a(r),o=!e||"keepSnaps"===t;return 1===n.length?[r]:o?i:i.slice(s,c).map(((e,t,n)=>{const i=!t,o=sw(n,t);return i?cw(rw(n[0])+1):o?cw(aw(r)-rw(n)[0]+1,rw(n)[0]):e}))}()}}(k,b,z,W,j,G),ae=Sw(e,n,re,te,J,ie,a,S),se={ownerDocument:i,ownerWindow:o,eventHandler:a,containerRect:x,slideRects:E,animation:$,axis:O,dragHandler:gw(O,e,i,o,K,vw(O,o),Q,$,te,J,ee,U,a,T,p,h,v,.68,A),eventStore:ie,percentOfView:T,index:U,indexPrevious:Z,limit:H,location:Q,offsetLocation:q,previousLocation:X,options:r,resizeHandler:bw(t,a,o,n,O,y,w),scrollBody:J,scrollBounds:yw(H,q,K,J,T),scrollLooper:Cw(N,H,q,[Q,q,X,K]),scrollProgress:ne,scrollSnapList:z.map(ne.get),scrollSnaps:z,scrollTarget:ee,scrollTo:te,slideLooper:Ew(O,D,N,P,L,M,z,q,n),slideFocus:ae,slidesHandler:Ow(t,a,C),slidesInView:oe,slideIndexes:G,slideRegistry:re,slidesToScroll:j,target:K,translate:xw(O,t)};return se}const kw={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Iw(e){function t(e,t){return uw(e,t||{})}const n={mergeOptions:t,optionsAtMedia:function(n){const i=n.breakpoints||{},o=lw(i).filter((t=>e.matchMedia(t).matches)).map((e=>i[e])).reduce(((e,n)=>t(e,n)),{});return t(n,o)},optionsMediaQueries:function(t){return t.map((e=>lw(e.breakpoints||{}))).reduce(((e,t)=>e.concat(t)),[]).map(e.matchMedia)}};return n}function Pw(e,t,n){const i=e.ownerDocument,o=i.defaultView,r=Iw(o),a=function(e){let t=[];return{init:function(n,i){return t=i.filter((({options:t})=>!1!==e.optionsAtMedia(t).active)),t.forEach((t=>t.init(n,e))),i.reduce(((e,t)=>Object.assign(e,{[t.name]:t})),{})},destroy:function(){t=t.filter((e=>e.destroy()))}}}(r),s=mw(),c=function(){let e,t={};function n(e){return t[e]||[]}const i={init:function(t){e=t},emit:function(t){return n(t).forEach((n=>n(e,t))),i},off:function(e,o){return t[e]=n(e).filter((e=>e!==o)),i},on:function(e,o){return t[e]=n(e).concat([o]),i},clear:function(){t={}}};return i}(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=r,{on:m,off:p,emit:h}=c,f=O;let g,v,b,y,C=!1,A=l(kw,Pw.globalOptions),S=l(A),w=[];function x(t){const n=Bw(e,b,y,i,o,t,c);if(t.loop&&!n.slideLooper.canLoop()){return x(Object.assign({},t,{loop:!1}))}return n}function E(t,n){C||(A=l(A,t),S=u(A),w=n||w,function(){const{container:t,slides:n}=S,i=KS(t)?e.querySelector(t):t;b=i||e.children[0];const o=KS(n)?b.querySelectorAll(n):n;y=[].slice.call(o||b.children)}(),g=x(S),d([A,...w.map((({options:e})=>e))]).forEach((e=>s.add(e,"change",O))),S.active&&(g.translate.to(g.location.get()),g.animation.init(),g.slidesInView.init(),g.slideFocus.init(k),g.eventHandler.init(k),g.resizeHandler.init(k),g.slidesHandler.init(k),g.options.loop&&g.slideLooper.loop(),b.offsetParent&&y.length&&g.dragHandler.init(k),v=a.init(k,w)))}function O(e,t){const n=B();D(),E(l({startIndex:n},e),t),c.emit("reInit")}function D(){g.dragHandler.destroy(),g.eventStore.clear(),g.translate.clear(),g.slideLooper.clear(),g.resizeHandler.destroy(),g.slidesHandler.destroy(),g.slidesInView.destroy(),g.animation.destroy(),a.destroy(),s.clear()}function T(e,t,n){S.active&&!C&&(g.scrollBody.useBaseFriction().useDuration(!0===t?0:S.duration),g.scrollTo.index(e,n||0))}function B(){return g.index.get()}const k={canScrollNext:function(){return g.index.add(1).get()!==B()},canScrollPrev:function(){return g.index.add(-1).get()!==B()},containerNode:function(){return b},internalEngine:function(){return g},destroy:function(){C||(C=!0,s.clear(),D(),c.emit("destroy"),c.clear())},off:p,on:m,emit:h,plugins:function(){return v},previousScrollSnap:function(){return g.indexPrevious.get()},reInit:f,rootNode:function(){return e},scrollNext:function(e){T(g.index.add(1).get(),e,-1)},scrollPrev:function(e){T(g.index.add(-1).get(),e,1)},scrollProgress:function(){return g.scrollProgress.get(g.location.get())},scrollSnapList:function(){return g.scrollSnapList},scrollTo:T,selectedScrollSnap:B,slideNodes:function(){return y},slidesInView:function(){return g.slidesInView.get()},slidesNotInView:function(){return g.slidesInView.get(!1)}};return E(t,n),setTimeout((()=>c.emit("init")),0),k}function Lw(e={},t=[]){const n=Object(Eo.useRef)(e),i=Object(Eo.useRef)(t),[o,r]=Object(Eo.useState)(),[a,s]=Object(Eo.useState)(),c=Object(Eo.useCallback)((()=>{o&&o.reInit(n.current,i.current)}),[o]);return Object(Eo.useEffect)((()=>{QS(n.current,e)||(n.current=e,c())}),[e,c]),Object(Eo.useEffect)((()=>{(function(e,t){if(e.length!==t.length)return!1;const n=XS(e),i=XS(t);return n.every(((e,t)=>QS(e,i[t])))})(i.current,t)||(i.current=t,c())}),[t,c]),Object(Eo.useEffect)((()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&a){Pw.globalOptions=Lw.globalOptions;const e=Pw(a,n.current,i.current);return r(e),()=>e.destroy()}r(void 0)}),[a,r]),[s,o]}Pw.globalOptions=void 0,Lw.globalOptions=void 0;function Rw(e){var t,n,i;const o=Object(Eo.useMemo)((()=>{var t;return null!==(t=e.currentPosition)&&void 0!==t?t:0}),[]),r={duration:20,startIndex:o},[a,s]=Lw(r);Object(Eo.useEffect)((()=>{s&&s.on("select",(()=>{e.onGoToPage(null==s?void 0:s.selectedScrollSnap())}))}),[s]),Object(Eo.useEffect)((()=>{s&&(e.buttonsEnabled?s.reInit({watchDrag:!0}):s.reInit({watchDrag:!1}))}),[e.buttonsEnabled]);const c=jS();return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(ir,{sx:{flexGrow:1,backgroundColor:or.b.getColorValue(e.configuration.screens.review.backgroundColor),width:"100vw",display:"flex",alignItems:"center",justifyContent:"center",paddingTop:"32px"}},Eo.default.createElement(HS,{config:e.configuration.screens.review.switchPreviousPageButton,icon:Pr.a,onClick:()=>null==s?void 0:s.scrollTo(e.currentPosition-1),active:e.currentPosition>0,debugName:"carousel-back"}),Eo.default.createElement("div",{className:"embla",ref:a,style:{overflow:"hidden",width:"100%",height:"100%"}},Eo.default.createElement("div",{className:"embla__container",style:{display:"flex",height:"100%"}},null===(t=e.document)||void 0===t?void 0:t.pages.map(((t,n)=>Eo.default.createElement("div",{className:"embla__slide",key:t.id,style:{position:"relative",minWidth:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",margin:"0"}},Eo.default.createElement(ZS,{page:t,animateRotation:t.id===e.currentlyRotatingPageId,onAnimateRotationDone:e.onRotationAnimationDone,index:n+1,style:{maxHeight:`calc(100 * ${Lr} - ${50+c+72+32}px)`,maxWidth:"100%"}})))))),Eo.default.createElement(HS,{config:e.configuration.screens.review.switchNextPageButton,icon:$S.a,onClick:()=>null==s?void 0:s.scrollTo(e.currentPosition+1),active:e.currentPosition<(null===(i=null===(n=e.document)||void 0===n?void 0:n.pages)||void 0===i?void 0:i.length)-1,debugName:"carousel-forward"})))}var _w=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};function jw(e){var t,n,i,o,r,a;const s=null===(t=e.document)||void 0===t?void 0:t.pageAtIndex(e.currentPosition),[c,l]=Eo.default.useState(!1);Object(Eo.useEffect)((()=>{e.visible&&!e.configuration.screens.review.enabled&&e.onSubmit()}),[e.visible]),Object(Eo.useEffect)((()=>{var t,n;0===(null===(n=null===(t=e.document)||void 0===t?void 0:t.pages)||void 0===n?void 0:n.length)&&e.visible&&!c&&e.onClose()}),[null===(n=e.document)||void 0===n?void 0:n.pages,e.visible,c]);const[u,d]=Object(Eo.useState)(!0),[m,p]=Object(Eo.useState)(null),h=Object(Eo.useRef)(null),[f,g]=Object(Eo.useState)(!1),[v,b]=Object(Eo.useState)(!1);return Object(Eo.useEffect)((()=>{d(!f&&!v)}),[f,v]),e.visible?Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(zS,{open:c}),Eo.default.createElement(OA,{open:f,config:e.configuration.screens.review.deletePageAlertDialog,onCancelClick:()=>g(!1),onActionClick:()=>{g(!1),e.onRetakeImage(e.currentPosition)},onOkClick:()=>_w(this,void 0,void 0,(function*(){var t,n,i;l(!0),(null===(n=null===(t=e.document)||void 0===t?void 0:t.pages)||void 0===n?void 0:n.length)>1&&e.onGoToPage(Math.max(e.currentPosition-1,0)),yield null===(i=e.document)||void 0===i?void 0:i.deletePage(s),l(!1),g(!1)}))}),Eo.default.createElement(OA,{open:v,config:e.configuration.screens.review.deleteAllPagesAlertDialog,onCancelClick:()=>b(!1),onOkClick:()=>_w(this,void 0,void 0,(function*(){var t;l(!0),yield null===(t=e.document)||void 0===t?void 0:t.deleteAllPages(),l(!1),b(!1)}))}),Eo.default.createElement(ir,{"data-sb-screen-review":!0,display:e.visible?"flex":"none",style:{position:"absolute",width:"100vw",height:`calc(100 * ${Lr})`,flexDirection:"column",alignItems:"center",justifyContent:"center"}},Eo.default.createElement(BS,{config:e.configuration,numPages:null===(o=null===(i=e.document)||void 0===i?void 0:i.pages)||void 0===o?void 0:o.length,onCloseButtonClick:e.onClose,onDeleteButtonClick:()=>b(!0),buttonsEnabled:u}),Eo.default.createElement(Rw,{buttonsEnabled:u,document:e.document,currentPosition:e.currentPosition,onGoToPage:e.onGoToPage,configuration:e.configuration,onRotationAnimationDone:h,currentlyRotatingPageId:m}),Eo.default.createElement(VS,{config:e.configuration.screens.review,currentPage:e.currentPosition+1,totalNumPages:null===(a=null===(r=e.document)||void 0===r?void 0:r.pages)||void 0===a?void 0:a.length,onZoomButtonClick:()=>e.onZoomButtonClick(e.currentPosition)}),Eo.default.createElement(MS,{config:e.configuration,onSubmitClick:e.onSubmit,onAddPageClick:()=>{e.onInsertImage(e.currentPosition+1)},onRetakeClick:()=>e.onRetakeImage(e.currentPosition),onCropClick:()=>e.onCropButtonClick(e.currentPosition),onRotateClick:()=>_w(this,void 0,void 0,(function*(){var t,n;if(null!==h.current)return;d(!1),l(!0);const i=null===(t=e.document)||void 0===t?void 0:t.pageAtIndex(e.currentPosition),o=new Promise((e=>{h.current=e,p(i.id)})),r=null===(n=e.document)||void 0===n?void 0:n.cropAndRotatePage(i,null,1);yield Promise.all([o,r]),yield i.finalImageUrl(),h.current=null,p(null),d(!0),l(!1)})),onDeleteClick:()=>g(!0),buttonsEnabled:u}))):null}var Mw=function(e,t){return Number(e.toFixed(t))},Fw=function(e,t,n){n&&"function"==typeof n&&n(e,t)},Nw={easeOut:function(e){return-Math.cos(e*Math.PI)/2+.5},linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:(4-2*e)*e-1},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}},Vw=function(e){"number"==typeof e&&cancelAnimationFrame(e)},Ww=function(e){e.mounted&&(Vw(e.animation),e.animate=!1,e.animation=null,e.velocity=null)};function zw(e,t,n,i){if(e.mounted){var o=(new Date).getTime();Ww(e),e.animation=function(){if(!e.mounted)return Vw(e.animation);var r=(new Date).getTime()-o,a=(0,Nw[t])(r/n);r>=n?(i(1),e.animation=null):e.animation&&(i(a),requestAnimationFrame(e.animation))},requestAnimationFrame(e.animation)}}function Hw(e,t,n,i){var o=function(e){var t=e.scale,n=e.positionX,i=e.positionY;return!(Number.isNaN(t)||Number.isNaN(n)||Number.isNaN(i))}(t);if(e.mounted&&o){var r=e.setTransformState,a=e.transformState,s=a.scale,c=a.positionX,l=a.positionY,u=t.scale-s,d=t.positionX-c,m=t.positionY-l;0===n?r(t.scale,t.positionX,t.positionY):zw(e,i,n,(function(e){r(s+u*e,c+d*e,l+m*e)}))}}var Uw=function(e,t){var n=e.wrapperComponent,i=e.contentComponent,o=e.setup.centerZoomedOut;if(!n||!i)throw new Error("Components are not mounted");var r=function(e,t,n){var i=e.offsetWidth,o=e.offsetHeight,r=t.offsetWidth*n,a=t.offsetHeight*n;return{wrapperWidth:i,wrapperHeight:o,newContentWidth:r,newDiffWidth:i-r,newContentHeight:a,newDiffHeight:o-a}}(n,i,t),a=r.wrapperWidth,s=r.wrapperHeight,c=function(e,t,n,i,o,r,a){var s=e>t?n*(a?1:.5):0,c=i>o?r*(a?1:.5):0;return{minPositionX:e-t-s,maxPositionX:s,minPositionY:i-o-c,maxPositionY:c}}(a,r.newContentWidth,r.newDiffWidth,s,r.newContentHeight,r.newDiffHeight,Boolean(o));return c},Zw=function(e,t,n,i){return Mw(i?e<t?t:e>n?n:e:e,2)},Gw=function(e,t){var n=Uw(e,t);return e.bounds=n,n};function $w(e,t,n,i,o,r,a){var s=n.minPositionX,c=n.minPositionY,l=n.maxPositionX,u=n.maxPositionY,d=0,m=0;return a&&(d=o,m=r),{x:Zw(e,s-d,l+d,i),y:Zw(t,c-m,u+m,i)}}function Yw(e,t,n,i,o,r){var a=e.transformState,s=a.scale,c=a.positionX,l=a.positionY,u=i-s;return"number"!=typeof t||"number"!=typeof n?(console.error("Mouse X and Y position were not provided!"),{x:c,y:l}):$w(c-t*u,l-n*u,o,r,0,0,null)}function Qw(e,t,n,i,o){var r=t-(o?i:0);return!Number.isNaN(n)&&e>=n?n:!Number.isNaN(t)&&e<=r?r:e}var Xw=function(e,t){var n=e.setup.panning.excluded,i=e.isInitialized,o=e.wrapperComponent,r=t.target,a="shadowRoot"in r&&"composedPath"in t?t.composedPath().some((function(e){return e instanceof Element&&(null==o?void 0:o.contains(e))})):null==o?void 0:o.contains(r);return!!(i&&r&&a)&&!Bx(r,n)},qw=function(e){var t=e.isInitialized,n=e.isPanning,i=e.setup.panning.disabled;return!(!t||!n||i)};function Kw(e,t,n,i,o){var r=e.setup.limitToBounds,a=e.wrapperComponent,s=e.bounds,c=e.transformState,l=c.scale,u=c.positionX,d=c.positionY;if(null!==a&&null!==s&&(t!==u||n!==d)){var m=$w(t,n,s,r,i,o,a),p=m.x,h=m.y;e.setTransformState(l,p,h)}}var Jw=function(e,t){var n=e.setup,i=e.transformState.scale,o=n.minScale,r=n.disablePadding;return t>0&&i>=o&&!r?t:0};function ex(e,t,n,i,o,r,a,s,c,l){if(o){var u;if(t>a&&n>a)return(u=a+(e-a)*l)>c?c:u<a?a:u;if(t<r&&n<r)return(u=r+(e-r)*l)<s?s:u>r?r:u}return i?t:Zw(e,r,a,o)}function tx(e,t){var n=function(e){var t=e.mounted,n=e.setup,i=n.disabled,o=n.velocityAnimation,r=e.transformState.scale;return!(o.disabled&&!(r>1)&&i&&!t)}(e);if(n){var i=e.lastMousePosition,o=e.velocityTime,r=e.setup,a=e.wrapperComponent,s=r.velocityAnimation.equalToMove,c=Date.now();if(i&&o&&a){var l=function(e,t){return t?Math.min(1,e.offsetWidth/window.innerWidth):1}(a,s),u=t.x-i.x,d=t.y-i.y,m=u/l,p=d/l,h=c-o,f=u*u+d*d,g=Math.sqrt(f)/h;e.velocity={velocityX:m,velocityY:p,total:g}}e.lastMousePosition=t,e.velocityTime=c}}function nx(e,t){var n=e.transformState.scale;Ww(e),Gw(e,n),void 0!==window.TouchEvent&&t instanceof TouchEvent?function(e,t){var n=t.touches,i=e.transformState,o=i.positionX,r=i.positionY;if(e.isPanning=!0,1===n.length){var a=n[0].clientX,s=n[0].clientY;e.startCoords={x:a-o,y:s-r}}}(e,t):function(e,t){var n=e.transformState,i=n.positionX,o=n.positionY;e.isPanning=!0;var r=t.clientX,a=t.clientY;e.startCoords={x:r-i,y:a-o}}(e,t)}function ix(e){var t=e.transformState.scale,n=e.setup,i=n.minScale,o=n.alignmentAnimation,r=o.disabled,a=o.sizeX,s=o.sizeY,c=o.animationTime,l=o.animationType;if(!(r||t<i||!a&&!s)){var u=function(e){var t=e.transformState,n=t.positionX,i=t.positionY,o=t.scale,r=e.setup,a=r.disabled,s=r.limitToBounds,c=r.centerZoomedOut,l=e.wrapperComponent;if(!a&&l&&e.bounds){var u=e.bounds,d=u.maxPositionX,m=u.minPositionX,p=u.maxPositionY,h=u.minPositionY,f=n>d||n<m,g=i>p||i<h,v=Yw(e,n>d?l.offsetWidth:e.setup.minPositionX||0,i>p?l.offsetHeight:e.setup.minPositionY||0,o,e.bounds,s||c),b=v.x,y=v.y;return{scale:o,positionX:f?b:n,positionY:g?y:i}}}(e);u&&Hw(e,u,c,l)}}function ox(e,t,n){var i=e.startCoords,o=e.setup.alignmentAnimation,r=o.sizeX,a=o.sizeY;if(i){var s=function(e,t,n){var i=e.startCoords,o=e.transformState,r=e.setup.panning,a=r.lockAxisX,s=r.lockAxisY,c=o.positionX,l=o.positionY;if(!i)return{x:c,y:l};var u=t-i.x,d=n-i.y;return{x:a?c:u,y:s?l:d}}(e,t,n),c=s.x,l=s.y,u=Jw(e,r),d=Jw(e,a);tx(e,{x:c,y:l}),Kw(e,c,l,u,d)}}function rx(e){if(e.isPanning){var t=e.setup.panning.velocityDisabled,n=e.velocity,i=e.wrapperComponent,o=e.contentComponent;e.isPanning=!1,e.animate=!1,e.animation=null;var r=null==i?void 0:i.getBoundingClientRect(),a=null==o?void 0:o.getBoundingClientRect(),s=(null==r?void 0:r.width)||0,c=(null==r?void 0:r.height)||0,l=(null==a?void 0:a.width)||0,u=(null==a?void 0:a.height)||0,d=s<l||c<u;!t&&n&&(null==n?void 0:n.total)>.1&&d?function(e){var t=e.velocity,n=e.bounds,i=e.setup,o=e.wrapperComponent,r=function(e){var t=e.mounted,n=e.velocity,i=e.bounds,o=e.setup,r=o.disabled,a=o.velocityAnimation,s=e.transformState.scale;return!(a.disabled&&!(s>1)&&r&&!t||!n||!i)}(e);if(r&&t&&n&&o){var a=t.velocityX,s=t.velocityY,c=t.total,l=n.maxPositionX,u=n.minPositionX,d=n.maxPositionY,m=n.minPositionY,p=i.limitToBounds,h=i.alignmentAnimation,f=i.zoomAnimation,g=i.panning,v=g.lockAxisY,b=g.lockAxisX,y=f.animationType,C=h.sizeX,A=h.sizeY,S=h.velocityAlignmentTime,w=function(e,t){var n=e.setup.velocityAnimation,i=n.equalToMove,o=n.animationTime,r=n.sensitivity;return i?o*t*r:o}(e,c),x=Math.max(w,S),E=Jw(e,C),O=Jw(e,A),D=E*o.offsetWidth/100,T=O*o.offsetHeight/100,B=l+D,k=u-D,I=d+T,P=m-T,L=e.transformState,R=(new Date).getTime();zw(e,y,x,(function(t){var n=e.transformState,i=n.scale,o=n.positionX,r=n.positionY,c=((new Date).getTime()-R)/S,f=1-(0,Nw[h.animationType])(Math.min(1,c)),g=1-t,y=o+a*g,C=r+s*g,A=ex(y,L.positionX,o,b,p,u,l,k,B,f),w=ex(C,L.positionY,r,v,p,m,d,P,I,f);o===y&&r===C||e.setTransformState(i,A,w)}))}}(e):ix(e)}}function ax(e,t,n,i){var o=e.setup,r=o.minScale,a=o.maxScale,s=o.limitToBounds,c=Qw(Mw(t,2),r,a,0,!1),l=Yw(e,n,i,c,Gw(e,c),s);return{scale:c,positionX:l.x,positionY:l.y}}function sx(e,t,n){var i=e.transformState.scale,o=e.wrapperComponent,r=e.setup,a=r.minScale,s=r.limitToBounds,c=r.zoomAnimation,l=c.disabled,u=c.animationTime,d=c.animationType,m=l||i>=a;if((i>=1||s)&&ix(e),!m&&o&&e.mounted){var p=ax(e,a,t||o.offsetWidth/2,n||o.offsetHeight/2);p&&Hw(e,p,u,d)}}var cx=function(){return cx=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},cx.apply(this,arguments)};function lx(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}var ux=1,dx=0,mx=0,px={disabled:!1,minPositionX:null,maxPositionX:null,minPositionY:null,maxPositionY:null,minScale:1,maxScale:8,limitToBounds:!0,centerZoomedOut:!1,centerOnInit:!1,disablePadding:!1,smooth:!0,wheel:{step:.2,disabled:!1,smoothStep:.001,wheelDisabled:!1,touchPadDisabled:!1,activationKeys:[],excluded:[]},panning:{disabled:!1,velocityDisabled:!1,lockAxisX:!1,lockAxisY:!1,allowLeftClickPan:!0,allowMiddleClickPan:!0,allowRightClickPan:!0,wheelPanning:!1,activationKeys:[],excluded:[]},pinch:{step:5,disabled:!1,excluded:[]},doubleClick:{disabled:!1,step:.7,mode:"zoomIn",animationType:"easeOut",animationTime:200,excluded:[]},zoomAnimation:{disabled:!1,size:.4,animationTime:200,animationType:"easeOut"},alignmentAnimation:{disabled:!1,sizeX:100,sizeY:100,animationTime:200,velocityAlignmentTime:400,animationType:"easeOut"},velocityAnimation:{disabled:!1,sensitivity:1,animationTime:400,animationType:"easeOut",equalToMove:!0}},hx=function(e){var t,n,i,o;return{previousScale:null!==(t=e.initialScale)&&void 0!==t?t:ux,scale:null!==(n=e.initialScale)&&void 0!==n?n:ux,positionX:null!==(i=e.initialPositionX)&&void 0!==i?i:dx,positionY:null!==(o=e.initialPositionY)&&void 0!==o?o:mx}},fx=function(e){var t=cx({},px);return Object.keys(e).forEach((function(n){var i="undefined"!=typeof e[n];if("undefined"!=typeof px[n]&&i){var o=Object.prototype.toString.call(px[n]),r="[object Object]"===o,a="[object Array]"===o;t[n]=r?cx(cx({},px[n]),e[n]):a?lx(lx([],px[n],!0),e[n],!0):e[n]}})),t},gx=function(e,t,n){var i=e.transformState.scale,o=e.wrapperComponent,r=e.setup,a=r.maxScale,s=r.minScale,c=r.zoomAnimation,l=r.smooth,u=c.size;if(!o)throw new Error("Wrapper is not mounted");var d=l?i*Math.exp(t*n):i+t*n;return Qw(Mw(d,3),s,a,u,!1)};function vx(e,t,n,i,o){var r=e.wrapperComponent,a=e.transformState,s=a.scale,c=a.positionX,l=a.positionY;if(!r)return console.error("No WrapperComponent found");var u=(r.offsetWidth/2-c)/s,d=(r.offsetHeight/2-l)/s,m=ax(e,gx(e,t,n),u,d);if(!m)return console.error("Error during zoom event. New transformation state was not calculated.");Hw(e,m,i,o)}function bx(e,t,n,i){var o=e.setup,r=e.wrapperComponent,a=o.limitToBounds,s=hx(e.props),c=e.transformState,l=c.scale,u=c.positionX,d=c.positionY;if(r){var m=Uw(e,s.scale),p=$w(s.positionX,s.positionY,m,a,0,0,r),h={scale:s.scale,positionX:p.x,positionY:p.y};l===s.scale&&u===s.positionX&&d===s.positionY||(null==i||i(),Hw(e,h,t,n))}}var yx=function(e){return function(t,n,i){void 0===t&&(t=.5),void 0===n&&(n=300),void 0===i&&(i="easeOut"),vx(e,1,t,n,i)}},Cx=function(e){return function(t,n,i){void 0===t&&(t=.5),void 0===n&&(n=300),void 0===i&&(i="easeOut"),vx(e,-1,t,n,i)}},Ax=function(e){return function(t,n,i,o,r){void 0===o&&(o=300),void 0===r&&(r="easeOut");var a=e.transformState,s=a.positionX,c=a.positionY,l=a.scale,u=e.wrapperComponent,d=e.contentComponent;if(!e.setup.disabled&&u&&d){var m={positionX:Number.isNaN(t)?s:t,positionY:Number.isNaN(n)?c:n,scale:Number.isNaN(i)?l:i};Hw(e,m,o,r)}}},Sx=function(e){return function(t,n){void 0===t&&(t=200),void 0===n&&(n="easeOut"),bx(e,t,n)}},wx=function(e){return function(t,n,i){void 0===n&&(n=200),void 0===i&&(i="easeOut");var o=e.transformState,r=e.wrapperComponent,a=e.contentComponent;if(r&&a){var s=Ix(t||o.scale,r,a);Hw(e,s,n,i)}}},xx=function(e){return function(t,n,i,o){void 0===i&&(i=600),void 0===o&&(o="easeOut"),Ww(e);var r=e.wrapperComponent,a="string"==typeof t?document.getElementById(t):t;if(r&&a&&r.contains(a)){var s=function(e,t,n){var i=e.wrapperComponent,o=e.contentComponent,r=e.transformState,a=e.setup,s=a.limitToBounds,c=a.minScale,l=a.maxScale;if(!i||!o)return r;var u,d,m,p,h,f,g,v,b=i.getBoundingClientRect(),y=t.getBoundingClientRect(),C=(u=i,d=o,m=r,p=t.getBoundingClientRect(),h=u.getBoundingClientRect(),f=d.getBoundingClientRect(),g=h.x*m.scale,v=h.y*m.scale,{x:(p.x-f.x+g)/m.scale,y:(p.y-f.y+v)/m.scale}),A=C.x,S=C.y,w=y.width/r.scale,x=y.height/r.scale,E=i.offsetWidth/w,O=i.offsetHeight/x,D=Qw(n||Math.min(E,O),c,l,0,!1),T=(b.width-w*D)/2,B=(b.height-x*D)/2,k=$w((b.left-A)*D+T,(b.top-S)*D+B,Uw(e,D),s,0,0,i);return{positionX:k.x,positionY:k.y,scale:D}}(e,a,n);Hw(e,s,i,o)}}},Ex=function(e){return{instance:e,zoomIn:yx(e),zoomOut:Cx(e),setTransform:Ax(e),resetTransform:Sx(e),centerView:wx(e),zoomToElement:xx(e)}},Ox=function(e){return{instance:e,state:e.transformState}},Dx=function(e){var t={};return Object.assign(t,Ox(e)),Object.assign(t,Ex(e)),t};function Tx(){try{return{get passive(){return!0,!1}}}catch(e){return!1}}var Bx=function(e,t){return t.some((function(t){return e.matches("".concat(t,", .").concat(t,", ").concat(t," *, .").concat(t," *"))}))},kx=function(e){e&&clearTimeout(e)},Ix=function(e,t,n){var i=n.offsetWidth*e,o=n.offsetHeight*e;return{scale:e,positionX:(t.offsetWidth-i)/2,positionY:(t.offsetHeight-o)/2}};function Px(e,t,n){var i=t.getBoundingClientRect(),o=0,r=0;if("clientX"in e)o=(e.clientX-i.left)/n,r=(e.clientY-i.top)/n;else{var a=e.touches[0];o=(a.clientX-i.left)/n,r=(a.clientY-i.top)/n}return(Number.isNaN(o)||Number.isNaN(r))&&console.error("No mouse or touch offset found"),{x:o,y:r}}var Lx=function(e){return Math.sqrt(Math.pow(e.touches[0].pageX-e.touches[1].pageX,2)+Math.pow(e.touches[0].pageY-e.touches[1].pageY,2))},Rx=function(e,t){var n=e.props,i=n.onWheel,o=n.onZoom,r=e.contentComponent,a=e.setup,s=e.transformState.scale,c=a.limitToBounds,l=a.centerZoomedOut,u=a.zoomAnimation,d=a.wheel,m=a.disablePadding,p=a.smooth,h=u.size,f=u.disabled,g=d.step,v=d.smoothStep;if(!r)throw new Error("Component not mounted");t.preventDefault(),t.stopPropagation();var b=function(e,t){var n,i,o=function(e){return e?e.deltaY<0?1:-1:0}(e);return i=o,"number"==typeof(n=t)?n:i}(t,null),y=function(e,t,n,i,o){var r=e.transformState.scale,a=e.wrapperComponent,s=e.setup,c=s.maxScale,l=s.minScale,u=s.zoomAnimation,d=s.disablePadding,m=u.size,p=u.disabled;if(!a)throw new Error("Wrapper is not mounted");var h=r+t*n;if(o)return h;var f=!i&&!p;return Qw(Mw(h,3),l,c,m,f&&!d)}(e,b,p?v*Math.abs(t.deltaY):g,!t.ctrlKey);if(s!==y){var C=Gw(e,y),A=Px(t,r,s),S=c&&(f||0===h||l||m),w=Yw(e,A.x,A.y,y,C,S),x=w.x,E=w.y;e.previousWheelEvent=t,e.setTransformState(y,x,E),Fw(Dx(e),t,i),Fw(Dx(e),t,o)}},_x=function(e,t){var n=e.props,i=n.onWheelStop,o=n.onZoomStop;kx(e.wheelAnimationTimer),e.wheelAnimationTimer=setTimeout((function(){e.mounted&&(sx(e,t.x,t.y),e.wheelAnimationTimer=null)}),100);var r=function(e,t){var n=e.previousWheelEvent,i=e.transformState.scale,o=e.setup,r=o.maxScale,a=o.minScale;return!!n&&(i<r||i>a||Math.sign(n.deltaY)!==Math.sign(t.deltaY)||n.deltaY>0&&n.deltaY<t.deltaY||n.deltaY<0&&n.deltaY>t.deltaY||Math.sign(n.deltaY)!==Math.sign(t.deltaY))}(e,t);r&&(kx(e.wheelStopEventTimer),e.wheelStopEventTimer=setTimeout((function(){e.mounted&&(e.wheelStopEventTimer=null,Fw(Dx(e),t,i),Fw(Dx(e),t,o))}),160))},jx=function(e){for(var t=0,n=0,i=0;i<2;i+=1)t+=e.touches[i].clientX,n+=e.touches[i].clientY;return{x:t/2,y:n/2}},Mx=function(e,t){var n=e.contentComponent,i=e.pinchStartDistance,o=e.wrapperComponent,r=e.transformState.scale,a=e.setup,s=a.limitToBounds,c=a.centerZoomedOut,l=a.zoomAnimation,u=a.alignmentAnimation,d=l.disabled,m=l.size;if(null!==i&&n){var p=function(e,t,n){var i=n.getBoundingClientRect(),o=e.touches,r=Mw(o[0].clientX-i.left,5),a=Mw(o[0].clientY-i.top,5);return{x:(r+Mw(o[1].clientX-i.left,5))/2/t,y:(a+Mw(o[1].clientY-i.top,5))/2/t}}(t,r,n);if(Number.isFinite(p.x)&&Number.isFinite(p.y)){var h=Lx(t),f=function(e,t){var n=e.pinchStartScale,i=e.pinchStartDistance,o=e.setup,r=o.maxScale,a=o.minScale,s=o.zoomAnimation,c=o.disablePadding,l=s.size,u=s.disabled;if(!n||null===i||!t)throw new Error("Pinch touches distance was not provided");return t<0?e.transformState.scale:Qw(Mw(t/i*n,2),a,r,l,!u&&!c)}(e,h),g=jx(t),v=g.x-(e.pinchLastCenterX||0),b=g.y-(e.pinchLastCenterY||0);if(f!==r||0!==v||0!==b){e.pinchLastCenterX=g.x,e.pinchLastCenterY=g.y;var y=Gw(e,f),C=s&&(d||0===m||c),A=Yw(e,p.x,p.y,f,y,C),S=A.x,w=A.y;e.pinchMidpoint=p,e.lastDistance=h;var x=u.sizeX,E=u.sizeY,O=$w(S+v,w+b,y,s,Jw(e,x),Jw(e,E),o),D=O.x,T=O.y;e.setTransformState(f,D,T)}}}},Fx=function(e,t){var n=e.props.onZoomStop,i=e.setup.doubleClick.animationTime;kx(e.doubleClickStopEventTimer),e.doubleClickStopEventTimer=setTimeout((function(){e.doubleClickStopEventTimer=null,Fw(Dx(e),t,n)}),i)};function Nx(e,t){var n=e.setup,i=e.doubleClickStopEventTimer,o=e.transformState,r=e.contentComponent,a=o.scale,s=e.props,c=s.onZoomStart,l=s.onZoom,u=n.doubleClick,d=u.disabled,m=u.mode,p=u.step,h=u.animationTime,f=u.animationType;if(!d&&!i){if("reset"===m)return function(e,t){var n=e.props,i=n.onZoomStart,o=n.onZoom,r=e.setup.doubleClick,a=r.animationTime,s=r.animationType;Fw(Dx(e),t,i),bx(e,a,s,(function(){return Fw(Dx(e),t,o)})),Fx(e,t)}(e,t);if(!r)return console.error("No ContentComponent found");var g=function(e,t){return"toggle"===e?1===t?1:-1:"zoomOut"===e?-1:1}(m,e.transformState.scale),v=gx(e,g,p);if(a!==v){Fw(Dx(e),t,c);var b=Px(t,r,a),y=ax(e,v,b.x,b.y);if(!y)return console.error("Error during zoom event. New transformation state was not calculated.");Fw(Dx(e),t,l),Hw(e,y,h,f),Fx(e,t)}}}var Vx=function(e){var t=this;this.mounted=!0,this.pinchLastCenterX=null,this.pinchLastCenterY=null,this.onChangeCallbacks=new Set,this.onInitCallbacks=new Set,this.wrapperComponent=null,this.contentComponent=null,this.isInitialized=!1,this.bounds=null,this.previousWheelEvent=null,this.wheelStopEventTimer=null,this.wheelAnimationTimer=null,this.isPanning=!1,this.isWheelPanning=!1,this.startCoords=null,this.lastTouch=null,this.distance=null,this.lastDistance=null,this.pinchStartDistance=null,this.pinchStartScale=null,this.pinchMidpoint=null,this.doubleClickStopEventTimer=null,this.velocity=null,this.velocityTime=null,this.lastMousePosition=null,this.animate=!1,this.animation=null,this.maxBounds=null,this.pressedKeys={},this.mount=function(){t.initializeWindowEvents()},this.unmount=function(){t.cleanupWindowEvents()},this.update=function(e){t.props=e,Gw(t,t.transformState.scale),t.setup=fx(e)},this.initializeWindowEvents=function(){var e,n,i=Tx(),o=null===(e=t.wrapperComponent)||void 0===e?void 0:e.ownerDocument,r=null==o?void 0:o.defaultView;null===(n=t.wrapperComponent)||void 0===n||n.addEventListener("wheel",t.onWheelPanning,i),null==r||r.addEventListener("mousedown",t.onPanningStart,i),null==r||r.addEventListener("mousemove",t.onPanning,i),null==r||r.addEventListener("mouseup",t.onPanningStop,i),null==o||o.addEventListener("mouseleave",t.clearPanning,i),null==r||r.addEventListener("keyup",t.setKeyUnPressed,i),null==r||r.addEventListener("keydown",t.setKeyPressed,i)},this.cleanupWindowEvents=function(){var e,n,i=Tx(),o=null===(e=t.wrapperComponent)||void 0===e?void 0:e.ownerDocument,r=null==o?void 0:o.defaultView;null==r||r.removeEventListener("mousedown",t.onPanningStart,i),null==r||r.removeEventListener("mousemove",t.onPanning,i),null==r||r.removeEventListener("mouseup",t.onPanningStop,i),null==o||o.removeEventListener("mouseleave",t.clearPanning,i),null==r||r.removeEventListener("keyup",t.setKeyUnPressed,i),null==r||r.removeEventListener("keydown",t.setKeyPressed,i),document.removeEventListener("mouseleave",t.clearPanning,i),Ww(t),null===(n=t.observer)||void 0===n||n.disconnect()},this.handleInitializeWrapperEvents=function(e){var n=Tx();e.addEventListener("wheel",t.onWheelZoom,n),e.addEventListener("dblclick",t.onDoubleClick,n),e.addEventListener("touchstart",t.onTouchPanningStart,n),e.addEventListener("touchmove",t.onTouchPanning,n),e.addEventListener("touchend",t.onTouchPanningStop,n)},this.handleInitialize=function(e){var n=t.setup.centerOnInit;t.applyTransformation(),t.onInitCallbacks.forEach((function(e){return e(Dx(t))})),n&&(t.setCenter(),t.observer=new ResizeObserver((function(){var n,i=e.offsetWidth,o=e.offsetHeight;(i>0||o>0)&&(t.onInitCallbacks.forEach((function(e){return e(Dx(t))})),t.setCenter(),null===(n=t.observer)||void 0===n||n.disconnect())})),setTimeout((function(){var e;null===(e=t.observer)||void 0===e||e.disconnect()}),5e3),t.observer.observe(e))},this.onWheelZoom=function(e){if(!t.setup.disabled){var n=function(e,t){var n=e.setup.wheel,i=n.disabled,o=n.wheelDisabled,r=n.touchPadDisabled,a=n.excluded,s=e.isInitialized,c=e.isPanning,l=t.target;return!(!s||c||i||!l||o&&!t.ctrlKey||r&&t.ctrlKey||Bx(l,a))}(t,e);n&&t.isPressingKeys(t.setup.wheel.activationKeys)&&(function(e,t){var n=e.props,i=n.onWheelStart,o=n.onZoomStart;e.wheelStopEventTimer||(Ww(e),Fw(Dx(e),t,i),Fw(Dx(e),t,o))}(t,e),Rx(t,e),_x(t,e))}},this.onWheelPanning=function(e){var n=t.setup,i=n.disabled,o=n.wheel,r=n.panning;if(t.wrapperComponent&&t.contentComponent&&!i&&o.wheelDisabled&&!r.disabled&&r.wheelPanning&&!e.ctrlKey){e.preventDefault(),e.stopPropagation();var a=t.transformState,s=a.positionX,c=a.positionY,l=s-e.deltaX,u=c-e.deltaY,d=r.lockAxisX?s:l,m=r.lockAxisY?c:u,p=t.setup.alignmentAnimation,h=p.sizeX,f=p.sizeY,g=Jw(t,h),v=Jw(t,f);d===s&&m===c||Kw(t,d,m,g,v)}},this.onPanningStart=function(e){var n=t.setup.disabled,i=t.props.onPanningStart;n||Xw(t,e)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(0!==e.button||t.setup.panning.allowLeftClickPan)&&(1!==e.button||t.setup.panning.allowMiddleClickPan)&&(2!==e.button||t.setup.panning.allowRightClickPan)&&(e.preventDefault(),e.stopPropagation(),Ww(t),nx(t,e),Fw(Dx(t),e,i))},this.onPanning=function(e){var n=t.setup.disabled,i=t.props.onPanning;n||qw(t)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(e.preventDefault(),e.stopPropagation(),ox(t,e.clientX,e.clientY),Fw(Dx(t),e,i))},this.onPanningStop=function(e){var n=t.props.onPanningStop;t.isPanning&&(rx(t),Fw(Dx(t),e,n))},this.onPinchStart=function(e){var n=t.setup.disabled,i=t.props,o=i.onPinchingStart,r=i.onZoomStart;if(!n){var a=function(e,t){var n=e.setup.pinch,i=n.disabled,o=n.excluded,r=e.isInitialized,a=t.target;return!(!r||i||!a||Bx(a,o))}(t,e);a&&(function(e,t){var n=Lx(t);e.pinchStartDistance=n,e.lastDistance=n,e.pinchStartScale=e.transformState.scale,e.isPanning=!1;var i=jx(t);e.pinchLastCenterX=i.x,e.pinchLastCenterY=i.y,Ww(e)}(t,e),Ww(t),Fw(Dx(t),e,o),Fw(Dx(t),e,r))}},this.onPinch=function(e){var n=t.setup.disabled,i=t.props,o=i.onPinching,r=i.onZoom;if(!n){var a=function(e){var t=e.setup.pinch.disabled,n=e.isInitialized,i=e.pinchStartDistance;return!(!n||t||!i)}(t);a&&(e.preventDefault(),e.stopPropagation(),Mx(t,e),Fw(Dx(t),e,o),Fw(Dx(t),e,r))}},this.onPinchStop=function(e){var n,i,o=t.props,r=o.onPinchingStop,a=o.onZoomStop;t.pinchStartScale&&(i=(n=t).pinchMidpoint,n.velocity=null,n.lastDistance=null,n.pinchMidpoint=null,n.pinchStartScale=null,n.pinchStartDistance=null,sx(n,null==i?void 0:i.x,null==i?void 0:i.y),Fw(Dx(t),e,r),Fw(Dx(t),e,a))},this.onTouchPanningStart=function(e){var n=t.setup.disabled,i=t.props.onPanningStart;if(!n&&Xw(t,e))if(t.lastTouch&&+new Date-t.lastTouch<200&&1===e.touches.length)t.onDoubleClick(e);else{t.lastTouch=+new Date,Ww(t);var o=e.touches,r=1===o.length,a=2===o.length;r&&(Ww(t),nx(t,e),Fw(Dx(t),e,i)),a&&t.onPinchStart(e)}},this.onTouchPanning=function(e){var n=t.setup.disabled,i=t.props.onPanning;if(t.isPanning&&1===e.touches.length){if(n)return;if(!qw(t))return;e.preventDefault(),e.stopPropagation();var o=e.touches[0];ox(t,o.clientX,o.clientY),Fw(Dx(t),e,i)}else e.touches.length>1&&t.onPinch(e)},this.onTouchPanningStop=function(e){t.onPanningStop(e),t.onPinchStop(e)},this.onDoubleClick=function(e){if(!t.setup.disabled){var n=function(e,t){var n=e.isInitialized,i=e.setup,o=e.wrapperComponent,r=i.doubleClick,a=r.disabled,s=r.excluded,c=t.target,l=null==o?void 0:o.contains(c);return!(!(n&&c&&l)||a||Bx(c,s))}(t,e);n&&Nx(t,e)}},this.clearPanning=function(e){t.isPanning&&t.onPanningStop(e)},this.setKeyPressed=function(e){t.pressedKeys[e.key]=!0},this.setKeyUnPressed=function(e){t.pressedKeys[e.key]=!1},this.isPressingKeys=function(e){return!e.length||Boolean(e.find((function(e){return t.pressedKeys[e]})))},this.setTransformState=function(e,n,i){var o=t.props.onTransformed;if(Number.isNaN(e)||Number.isNaN(n)||Number.isNaN(i))console.error("Detected NaN set state values");else{e!==t.transformState.scale&&(t.transformState.previousScale=t.transformState.scale,t.transformState.scale=e),t.transformState.positionX=n,t.transformState.positionY=i,t.applyTransformation();var r=Dx(t);t.onChangeCallbacks.forEach((function(e){return e(r)})),Fw(r,{scale:e,positionX:n,positionY:i},o)}},this.setCenter=function(){if(t.wrapperComponent&&t.contentComponent){var e=Ix(t.transformState.scale,t.wrapperComponent,t.contentComponent);t.setTransformState(e.scale,e.positionX,e.positionY)}},this.handleTransformStyles=function(e,n,i){return t.props.customTransform?t.props.customTransform(e,n,i):function(e,t,n){return"translate(".concat(e,"px, ").concat(t,"px) scale(").concat(n,")")}(e,n,i)},this.applyTransformation=function(){if(t.mounted&&t.contentComponent){var e=t.transformState,n=e.scale,i=e.positionX,o=e.positionY,r=t.handleTransformStyles(i,o,n);t.contentComponent.style.transform=r}},this.getContext=function(){return Dx(t)},this.onChange=function(e){return t.onChangeCallbacks.has(e)||t.onChangeCallbacks.add(e),function(){t.onChangeCallbacks.delete(e)}},this.onInit=function(e){return t.onInitCallbacks.has(e)||t.onInitCallbacks.add(e),function(){t.onInitCallbacks.delete(e)}},this.init=function(e,n){t.cleanupWindowEvents(),t.wrapperComponent=e,t.contentComponent=n,Gw(t,t.transformState.scale),t.handleInitializeWrapperEvents(e),t.handleInitialize(n),t.initializeWindowEvents(),t.isInitialized=!0;var i=Dx(t);Fw(i,void 0,t.props.onInit)},this.props=e,this.setup=fx(this.props),this.transformState=hx(this.props)},Wx=Eo.default.createContext(null),zx=Eo.default.forwardRef((function(e,t){var n,i,o=Object(Eo.useRef)(new Vx(e)).current,r=(n=e.children,i=Ex(o),"function"==typeof n?n(i):n);return Object(Eo.useImperativeHandle)(t,(function(){return Ex(o)}),[o]),Object(Eo.useEffect)((function(){o.update(e)}),[o,e]),Eo.default.createElement(Wx.Provider,{value:o},r)}));Eo.default.forwardRef((function(e,t){var n,i=Object(Eo.useRef)(null),o=Object(Eo.useContext)(Wx);return Object(Eo.useEffect)((function(){return o.onChange((function(e){if(i.current){i.current.style.transform=o.handleTransformStyles(0,0,1/e.instance.transformState.scale)}}))}),[o]),Eo.default.createElement("div",cx({},e,{ref:(n=[i,t],function(e){n.forEach((function(t){"function"==typeof t?t(e):null!=t&&(t.current=e)}))})}))}));var Hx="transform-component-module_wrapper__SPB86",Ux="transform-component-module_content__FBWxo";!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".transform-component-module_wrapper__SPB86 {\n position: relative;\n width: -moz-fit-content;\n width: fit-content;\n height: -moz-fit-content;\n height: fit-content;\n overflow: hidden;\n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Safari */\n -khtml-user-select: none; /* Konqueror HTML */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none;\n margin: 0;\n padding: 0;\n}\n.transform-component-module_content__FBWxo {\n display: flex;\n flex-wrap: wrap;\n width: -moz-fit-content;\n width: fit-content;\n height: -moz-fit-content;\n height: fit-content;\n margin: 0;\n padding: 0;\n transform-origin: 0% 0%;\n}\n.transform-component-module_content__FBWxo img {\n pointer-events: none;\n}\n");var Zx=function(e){var t=e.children,n=e.wrapperClass,i=void 0===n?"":n,o=e.contentClass,r=void 0===o?"":o,a=e.wrapperStyle,s=e.contentStyle,c=e.wrapperProps,l=void 0===c?{}:c,u=e.contentProps,d=void 0===u?{}:u,m=Object(Eo.useContext)(Wx),p=m.init,h=m.cleanupWindowEvents,f=Object(Eo.useRef)(null),g=Object(Eo.useRef)(null);return Object(Eo.useEffect)((function(){var e=f.current,t=g.current;return null!==e&&null!==t&&p&&(null==p||p(e,t)),function(){null==h||h()}}),[]),Eo.default.createElement("div",cx({},l,{ref:f,className:"react-transform-wrapper ".concat(Hx," ").concat(i),style:a}),Eo.default.createElement("div",cx({},d,{ref:g,className:"react-transform-component ".concat(Ux," ").concat(r),style:s}),t))};var Gx=n(130),$x=n.n(Gx);function Yx(e){var t;const n=Gy(null===(t=e.page)||void 0===t?void 0:t.finalImageUrl());if(!(e.visible&&n.value))return null;const i=e.config.closeButton;return Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(ir,{style:{touchAction:"none",backgroundColor:or.b.getColorValue(e.config.overlayColor)}},Eo.default.createElement(ir,{style:{textAlign:"right",height:"45px",paddingRight:8}},Eo.default.createElement(Fa,{onClick:e.onCloseButtonClick,visible:i.visible,text:i.text,background:i.background,foreground:i.foreground,ariaLabel:or.b.getLocalizedText(i.accessibilityDescription),iconPosition:"right",icon:Eo.default.createElement($x.a,{style:{paddingLeft:4}})})),Eo.default.createElement(zx,{centerOnInit:!0},Eo.default.createElement(Zx,{wrapperStyle:{width:"100%"},contentStyle:{width:"100%"}},Eo.default.createElement(ir,{style:{width:"100%",height:`calc(100 *${Lr} - 45px)`,display:"flex",justifyContent:"center",alignItems:"center",touchAction:"none"}},Eo.default.createElement("img",{src:n.value,alt:"Zoomed image",style:{maxWidth:"100%",maxHeight:"100%"}}))))))}var Qx=n(131),Xx=n.n(Qx),qx=n(132),Kx=n.n(qx),Jx=n(79);class eE{constructor(){this.disabled=!1,this.color="transparent"}}class tE{constructor(){this.color="white",this.border="1px solid lightgray",this.size=20,this.filter=""}}class nE{constructor(){this.color="#1ec31e",this.width=4}}class iE{constructor(){this.padding=10}}class oE{constructor(){this.margin=15,this.size=100,this.zoom=1.5}}class rE{constructor(){this.width=2,this.color="white"}}class aE{constructor(){this.size=20,this.color="white"}}class sE extends Jx.a{constructor(){super(),this.disableScroll=!0,this.rotations=0,this.style=new iE,this.style.magneticLines=new eE,this.style.polygon=new nE,this.style.polygon.handles=new tE,this.style.magnifier=new oE,this.style.magnifier.border=new rE,this.style.magnifier.crosshair=new aE}static fromJson(e){const t=new sE;return this.mapValues(e,t,["style"]),e.style&&(this.mapValues(e.style,t.style,["polygon","magneticLines","magnifier"]),e.style.polygon&&(this.mapValues(e.style.polygon,t.style.polygon,["handles"]),e.style.polygon.handles&&this.mapValues(e.style.polygon.handles,t.style.polygon.handles)),e.style.magneticLines&&this.mapValues(e.style.magneticLines,t.style.magneticLines,[]),e.style.magnifier&&(this.mapValues(e.style.magnifier,t.style.magnifier,["border","crosshair"]),e.style.magnifier.border&&this.mapValues(e.style.magnifier.border,t.style.magnifier.border,[]),e.style.magnifier.crosshair&&this.mapValues(e.style.magnifier.crosshair,t.style.magnifier.crosshair,[]))),t}}class cE extends Eo.default.Component{constructor(){super(...arguments),this.BUFFER=4}fromPoint(e){return Eo.default.createElement("svg",{style:{width:"100%",height:"100%",position:"absolute"}},Eo.default.createElement("line",{x1:e.start.x.toString(),y1:e.start.y.toString(),x2:e.end.x.toString(),y2:e.end.y.toString(),style:{stroke:this.props.style.color,strokeWidth:2}}))}componentDidUpdate(e,t,n){this.props.style.disabled||this.snapToClosestIfAnyAreClose()}render(){var e,t,n,i,o,r;return Eo.default.createElement("div",{style:{width:"100%",height:"100%",position:"absolute"}},null===(n=null===(t=null===(e=this.props.lines)||void 0===e?void 0:e.horizontal)||void 0===t?void 0:t.scaled)||void 0===n?void 0:n.map((e=>this.fromPoint(e))),null===(r=null===(o=null===(i=this.props.lines)||void 0===i?void 0:i.vertical)||void 0===o?void 0:o.scaled)||void 0===r?void 0:r.map((e=>this.fromPoint(e))))}snapToClosestIfAnyAreClose(){var e,t,n,i;const o=this.props.movingLine;let r=null===(t=null===(e=this.props.lines)||void 0===e?void 0:e.vertical)||void 0===t?void 0:t.scaled;if(o.isHorizontal&&(r=null===(i=null===(n=this.props.lines)||void 0===n?void 0:n.horizontal)||void 0===i?void 0:i.scaled),!r||0===r.length)return;const a=this.midPoint(o.points[0].coordinates,o.points[1].coordinates),s=r.map((e=>({distance:this.distanceToLine(e,a),mLine:e})));s.sort(((e,t)=>e.distance-t.distance)),s[0].distance<this.BUFFER&&this.props.snapTo({magneticLine:s[0].mLine,polygonLine:o})}distanceToLine(e,t){const n=t.x-e.start.x,i=t.y-e.start.y,o=e.end.x-e.start.x,r=e.end.y-e.start.y,a=o*o+r*r;if(0===a)return 1/0;const s=(n*o+i*r)/a;let c;return c=s<=0?e.start:s>=1?e.end:new kg.a(e.start.x+s*o,e.start.y+s*r),kg.a.distance(t,c)}midPoint(e,t){return new kg.a((e.x+t.x)/2,(e.y+t.y)/2)}}class lE extends Eo.default.Component{constructor(){super(...arguments),this.POINT_COUNT=4,this.items=[],this.DRAG_BUFFER=5}get pointSize(){var e,t;return(null===(e=this.props.style)||void 0===e?void 0:e.size)?(null===(t=this.props)||void 0===t?void 0:t.scale)?this.props.style.size/this.props.scale:this.props.style.size:0}get pointStyle(){var e,t,n;return{width:this.pointSize+"px",height:this.pointSize+"px",border:null===(e=this.props.style)||void 0===e?void 0:e.border,borderRadius:this.pointSize/2+"px",backgroundColor:null===(t=this.props.style)||void 0===t?void 0:t.color,position:"absolute",cursor:"pointer",zIndex:500,filter:null===(n=this.props.style)||void 0===n?void 0:n.filter}}nextIndex(e){return(e+1)%this.POINT_COUNT}previousIndex(e){return(e-1+this.POINT_COUNT)%this.POINT_COUNT}isHorizontal(e){return e%2==0}isOutOfBounds(e,t){return e<-this.DRAG_BUFFER||e>t+this.DRAG_BUFFER}get invisibleHandleStyle(){return{width:"50px",height:"50px",opacity:0,position:"relative",top:this.pointSize/2-25+"px",left:this.pointSize/2-25+"px",borderRadius:"25px"}}}class uE extends lE{create(){if(!this.props.points||4!==this.props.points.length)return null;const e=[];for(let t=0;t<this.POINT_COUNT;t++){const n=this.props.points[t],i=Eo.default.createElement("div",{style:Object.assign(Object.assign({},this.pointStyle),{left:n.x-this.pointSize/2+"px",top:n.y-this.pointSize/2+"px"}),key:t.toString(),ref:e=>this.items[t]=e,onPointerDown:e=>this.cornerTouchStart(e,t),onPointerUp:e=>this.cornerTouchEnd(e),onPointerMove:e=>this.cornerTouchMove(e,t),"data-sb-cropping-corner":t},Eo.default.createElement("div",{style:Object.assign({},this.invisibleHandleStyle)}));e.push(i)}return e}cornerTouchStart(e,t){e.target.setPointerCapture(e.pointerId);const n=kg.a.fromCoordinates(e.clientX,e.clientY,this.props.rotations,this.props.scale),i=this.items[t],o=kg.a.fromHtmlElement(i);this.parentOffset=new kg.a(n.x-o.x,n.y-o.y),this.props.cornerMoveStart({index:t,point:this.props.points[t]})}cornerTouchMove(e,t){if(!this.parentOffset)return;const n=kg.a.fromCoordinates(e.clientX,e.clientY,this.props.rotations,this.props.scale),{x:i,y:o}=Object(Pb.b)({x:n.x-this.parentOffset.x,y:n.y-this.parentOffset.y},this.pointSize,this.props.containerSize),r=this.pointSize/2,a=this.props.points[t];this.props.points[t]=new kg.a(i+r,o+r),JA.isConvex(this.props.points)?this.props.cornerMoved({index:t,point:this.props.points[t]}):this.props.points[t]=a}cornerTouchEnd(e){e.target.releasePointerCapture(e.pointerId),this.parentOffset=null,this.props.cornerMoveEnd()}render(){return Eo.default.createElement("div",{style:{width:"100%",height:"100%",position:"absolute",cursor:"pointer",zIndex:500,userSelect:"none",msUserSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none"}},this.create())}}class dE extends lE{create(){if(!this.props.points||4!==this.props.points.length)return null;const e=[];for(let t=0;t<this.POINT_COUNT;t++){const n=this.props.points[t];let i=this.props.points[this.nextIndex(t)];const o=Eo.default.createElement("div",{style:Object.assign(Object.assign({},this.pointStyle),{left:n.x+(i.x-n.x)/2-this.pointSize/2+"px",top:n.y+(i.y-n.y)/2-this.pointSize/2+"px"}),key:t.toString(),ref:e=>this.items[t]=e,onPointerDown:e=>this.lineTouchStart(e,t),onPointerMove:e=>this.lineTouchMove(e,t),onPointerUp:e=>this.lineTouchEnd(e),"data-sb-cropping-side":t},Eo.default.createElement("div",{style:this.invisibleHandleStyle}));e.push(o)}return e}lineTouchStart(e,t){e.target.setPointerCapture(e.pointerId);const n=kg.a.fromCoordinates(e.clientX,e.clientY,this.props.rotations,this.props.scale),i=this.items[t],o=kg.a.fromHtmlElement(i),r=this.props.points[t],a=this.props.points[this.nextIndex(t)];this.point0Start=N.copy(this.props.points[this.previousIndex(t)]),this.point1Start=N.copy(r),this.point2Start=N.copy(a),this.point3Start=N.copy(this.props.points[this.nextIndex(this.nextIndex(t))]),this.point1Offset=new kg.a(r.x-o.x,r.y-o.y),this.point2Offset=new kg.a(a.x-o.x,a.y-o.y),this.parentOffset=new kg.a(n.x-o.x,n.y-o.y)}lineTouchMove(e,t){if(!this.parentOffset)return;const n=kg.a.fromCoordinates(e.clientX,e.clientY,this.props.rotations,this.props.scale),i=this.props.points[this.previousIndex(t)];let o=new kg.a(null,null),r=new kg.a(null,null);const a=this.props.points[this.nextIndex(t+1)],s=n.x-this.parentOffset.x,c=n.y-this.parentOffset.y;if(this.isHorizontal(t)){const e=c+this.point1Offset.y,t=c+this.point2Offset.y,n=e-this.point1Start.y;o.x=this.point1Start.x+(this.point1Start.x-this.point0Start.x)*(n/(this.point1Start.y-this.point0Start.y)),r.x=this.point2Start.x+(this.point2Start.x-this.point3Start.x)*(n/(this.point2Start.y-this.point3Start.y)),o.y=e,r.y=t}else{const e=s+this.point1Offset.x,t=s+this.point2Offset.x,n=e-this.point1Start.x;o.y=this.point1Start.y+(this.point1Start.y-this.point0Start.y)*(n/(this.point1Start.x-this.point0Start.x)),r.y=this.point2Start.y+(this.point2Start.y-this.point3Start.y)*(n/(this.point2Start.x-this.point3Start.x)),o.x=e,r.x=t}o=kg.a.clamp(o,this.props.containerSize),r=kg.a.clamp(r,this.props.containerSize),this.isNearOpposingPoint(this.point1Start,o,i,this.isHorizontal(t)?"y":"x")||this.isNearOpposingPoint(this.point1Start,r,a,this.isHorizontal(t)?"y":"x")||this.areEdgesCrossing(i,o,r,a)||JA.isConvex([i,o,r,a])&&(this.props.points[t].x=o.x,this.props.points[t].y=o.y,this.props.points[this.nextIndex(t)].x=r.x,this.props.points[this.nextIndex(t)].y=r.y,this.props.lineMoved({points:[{index:t,coordinates:o},{index:this.nextIndex(t),coordinates:r}],previousPoint:i,nextPoint:a,isHorizontal:this.isHorizontal(t)}))}lineTouchEnd(e){e.target.releasePointerCapture(e.pointerId),this.parentOffset=null}isNearOpposingPoint(e,t,n,i){if(e[i]>n[i]){if(t[i]-10<n[i])return!0}else if(t[i]>n[i]-10)return!0;return!1}areEdgesCrossing(e,t,n,i){const o=e.x,r=e.y,a=t.x,s=t.y,c=n.x,l=n.y,u=i.x,d=i.y;return((o-c)*(s-l)-(r-l)*(a-c))*((o-u)*(s-d)-(r-d)*(a-u))<0&&((c-o)*(d-r)-(l-r)*(u-o))*((c-a)*(d-s)-(l-s)*(u-a))<0}render(){return Eo.default.createElement("div",{style:{width:"100%",height:"100%",position:"absolute"}},this.create())}}class mE extends Eo.default.Component{render(){return Eo.default.createElement("div",{style:{width:"100%",height:"100%",position:"absolute"}},Eo.default.createElement(uE,{ref:e=>this.corners=e,style:this.props.style,containerSize:this.props.containerSize,scale:this.props.scale,rotations:this.props.rotations,points:this.props.coordinatePoints,cornerMoveStart:this.props.cornerMoveStart,cornerMoved:this.props.cornerMoved,cornerMoveEnd:this.props.cornerMoveEnd}),Eo.default.createElement(dE,{ref:e=>this.lines=e,style:this.props.style,containerSize:this.props.containerSize,scale:this.props.scale,rotations:this.props.rotations,points:this.props.coordinatePoints,lineMoved:this.props.lineMoved}))}setFrame(){for(let e=0;e<this.corners.POINT_COUNT;e++){const t=this.props.coordinatePoints[e];this.corners.items[e]&&(this.corners.items[e].style.left=t.x-this.corners.pointSize/2+"px",this.corners.items[e].style.top=t.y-this.corners.pointSize/2+"px");let n=this.props.coordinatePoints[this.corners.nextIndex(e)];this.lines.items[e]&&(this.lines.items[e].style.left=t.x+(n.x-t.x)/2-this.corners.pointSize/2+"px",this.lines.items[e].style.top=t.y+(n.y-t.y)/2-this.corners.pointSize/2+"px")}}snapTo(e){const t=[e.polygonLine.previousPoint,e.polygonLine.points[0].coordinates],n=[e.polygonLine.points[1].coordinates,e.polygonLine.nextPoint],i=[e.magneticLine.start,e.magneticLine.end];this.props.coordinatePoints[e.polygonLine.points[0].index]=JA.intersection(t,i),this.props.coordinatePoints[e.polygonLine.points[1].index]=JA.intersection(n,i),this.props.cornerMoveEnd(),this.setFrame()}}class pE extends Eo.default.Component{constructor(e){super(e),this.state={movingLine:void 0}}render(){return Eo.default.createElement("div",null,Eo.default.createElement(mE,{ref:e=>this.handles=e,containerSize:this.props.size,coordinatePoints:this.props.points,rotations:this.props.rotations,scale:this.props.scale,style:this.props.handleStyle,cornerMoveStart:this.props.cornerMoveStart,cornerMoved:e=>{this.setFrame(),this.props.cornerMoved(e)},cornerMoveEnd:this.props.cornerMoveEnd,lineMoved:e=>{this.setFrame(),this.setState({movingLine:e})}}),Eo.default.createElement(cE,{style:this.props.magneticLineStyle,lines:this.props.magneticLines,movingLine:this.state.movingLine,snapTo:e=>{var t,n;null===(t=this.handles)||void 0===t||t.snapTo(e),null===(n=this.polygon)||void 0===n||n.setFrame()}}),Eo.default.createElement($A,{size:this.props.size,points:this.props.points,polygonStyle:this.props.polygonStyle,polygonClasses:this.props.polygonClasses,ref:e=>this.polygon=e}))}setFrame(){var e,t;null===(e=this.polygon)||void 0===e||e.setFrame(),null===(t=this.handles)||void 0===t||t.setFrame()}}class hE extends Eo.default.Component{render(){return Eo.default.createElement("img",{ref:e=>this.image=e,style:{width:"100%",height:"100%",objectFit:"cover",position:"absolute"},src:this.props.src,alt:".",onLoad:e=>{e.target&&this.props.onImageLoaded(e.target)}})}}class fE extends Eo.default.Component{constructor(){super(...arguments),this.animating=!1}width(){return this.container.offsetWidth-2*this.container.offsetLeft}height(){return this.container.offsetHeight-2*this.container.offsetTop}isAnimating(){return this.animating}render(){const{size:e,imageMargin:t,rotations:n,scale:i,duration:o}=this.props,r=90*(n-1),a=90*n;this.previousScale||(this.previousScale=1);const s=_o.d`
185
+ from {transform: rotate(${r}deg) scale(${this.previousScale}); }
186
+ to {transform: rotate(${a}deg) scale(${i});
187
+ }`,c=_o.c.div`position: absolute; animation: ${s} ${o}s;`;return this.previousScale=i,Eo.default.createElement("div",{style:{width:"100%",height:"100%",position:"absolute"},ref:e=>this.container=e},Eo.default.createElement(c,{style:{width:this.calculate(e,"width"),height:this.calculate(e,"height"),transform:`rotate(${a}deg) scale(${i})`,marginTop:this.marginWithAspect(t,"y",e),marginLeft:this.marginWithAspect(t,"x",e)},onAnimationStart:()=>{this.animating=!0},onAnimationEnd:()=>{this.animating=!1}},this.props.children))}marginWithAspect(e,t,n){if(!e||!n)return 0;n.width,n.height;return e[t]}calculate(e,t){return e?e[t]:"100%"}}class gE extends Eo.default.Component{componentDidMount(){pv.disableScreenMovement()}componentWillUnmount(){pv.enableScreenMovement()}render(){return Eo.default.createElement("div",null)}}class vE{constructor(e,t){this.element=e,this.size=t}}class bE{}class yE extends Eo.default.Component{render(){return Eo.default.createElement("div",{style:this.props.style},Eo.default.createElement("svg",null,this.vertical(),this.horizontal()))}half(){return this.props.size/2}vertical(){const e=this.half();return Eo.default.createElement("line",{x1:e,y1:0,x2:e,y2:this.props.size,stroke:this.props.color,strokeWidth:"2"})}horizontal(){const e=this.half();return Eo.default.createElement("line",{x1:0,y1:e,x2:this.props.size,y2:e,stroke:this.props.color,strokeWidth:"2"})}}class CE extends Eo.default.Component{get crosshairSize(){var e,t;return null===(t=null===(e=this.props.style)||void 0===e?void 0:e.crosshair)||void 0===t?void 0:t.size}constructor(e){super(e),this.MAX_ROTATIONS=4,this.state={frame:F.a.empty(),cropImageFitSize:tv.a.empty(),rotation:{count:0,scale:1},margin:{left:this.props.style.margin,top:this.props.style.margin},container:{width:0},scale:{width:1,height:1}}}style(){return{container:{marginLeft:this.state.margin.left,marginTop:this.state.margin.top,width:this.state.frame.width,height:this.state.frame.height,borderRadius:this.props.style.size/2,border:this.props.style.border.width+"px solid "+this.props.style.border.color,position:"absolute",overflow:"hidden",zIndex:50,transform:"rotate("+90*this.state.rotation.count+"deg)"},image:{width:this.state.cropImageFitSize.width*this.props.style.zoom,height:this.state.cropImageFitSize.height*this.props.style.zoom,marginLeft:-this.state.frame.x,marginTop:-this.state.frame.y,objectFit:"cover"},crosshair:{margin:"auto",position:"absolute",width:this.crosshairSize,height:this.crosshairSize,top:this.state.frame.height/2-this.crosshairSize/2,left:this.state.frame.width/2-this.crosshairSize/2}}}render(){return this.state.visible?Eo.default.createElement("div",{style:this.style().container},Eo.default.createElement("img",{style:this.style().image,ref:e=>this.destination=e,src:this.props.src,alt:"."}),Eo.default.createElement(yE,{style:this.style().crosshair,size:this.crosshairSize,color:this.props.style.crosshair.color})):null}update(e){if(!this.state.visible)return;this.destination.src=e.source.element.src;const t=F.a.fromPoint(kg.a.scaleUpTo(e.origin,new tv.a(this.props.style.zoom,this.props.style.zoom)),this.props.style.size),n=e.container.width-(this.props.style.margin+this.props.style.size),i=this.isPointTopLeft(e.origin,e.source.size,e.rotations);this.setState({frame:t,cropImageFitSize:e.source.size,rotation:{count:e.rotations,scale:e.scale},margin:{left:i?n:this.props.style.margin},container:{width:e.container.width},scale:{width:e.source.size.width/e.container.width,height:e.source.size.height/e.container.height}})}isPointTopLeft(e,t,n){const i=e.x,o=e.y,r=this.normalizeRotations(n),a=this.state.container.width/4;return 0===r?i<a&&o<a:1===r?i<a&&o>t.height-a:2===r?i>t.width-a&&o>t.height-a:i>t.width-a&&o<a}setIsVisible(e,t){this.setState({visible:e},t)}normalizeRotations(e){return e%this.MAX_ROTATIONS}}var AE=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class SE extends Eo.default.Component{constructor(e){super(e),this.onResizeCallback=()=>{},this.MAX_ROTATIONS=4,this.BASE_SCALE=1,this.sdk=e.sdk,this.state={image:void 0,documentDetectionResult:void 0,polygon:void 0,calculatedSize:tv.a.empty(),animation:{rotations:0,scale:1,duration:0},points:[],magneticLines:{horizontal:{original:[],scaled:[]},vertical:{original:[],scaled:[]}},imageMargin:kg.a.empty()},this.onResizeCallback=this.onResize.bind(this)}static create(e,t){return AE(this,void 0,void 0,(function*(){const n=document.getElementById(e.containerId);if(!n)throw Error("Unable to initialize cropping component: Cannot find container element with the id provided.");return new Promise(((i,o)=>{Object(Eo.render)(Eo.default.createElement(SE,{sdk:t,onReady:i,onError:o,container:n,configuration:sE.fromJson(e)}),n)}))}))}componentDidMount(){var e,t,n;return AE(this,void 0,void 0,(function*(){const i=null===(e=this.configuration)||void 0===e?void 0:e.image,o=yield this.sdk.detectAndCropDocument(i),r=yield W.toDataUrl(yield this.sdk.imageToJpeg(i));this.setState({documentDetectionResult:o,image:r,polygon:null!==(n=null===(t=this.configuration)||void 0===t?void 0:t.polygon)&&void 0!==n?n:o.pointsNormalized,magneticLines:{vertical:{original:o.verticalLinesNormalized},horizontal:{original:o.horizontalLinesNormalized}}}),this.props.onReady&&this.props.onReady(this),addEventListener("resize",this.onResizeCallback),addEventListener("orientationchange",this.onResizeCallback)}))}componentWillUnmount(){return AE(this,void 0,void 0,(function*(){removeEventListener("resize",this.onResizeCallback),removeEventListener("orientationchange",this.onResizeCallback)}))}onImageLoaded(e){return AE(this,void 0,void 0,(function*(){tv.a.isEmpty(this.state.calculatedSize)&&(this.htmlImage=e,this.initializeSizes())}))}onResize(){const e=this.state.points.map((e=>new kg.a(e.x/this.state.calculatedSize.width,e.y/this.state.calculatedSize.height)));this.initializeSizes(e)}initializeSizes(e,t,n){const i=new tv.a(this.htmlImage.naturalWidth,this.htmlImage.naturalHeight),o=new tv.a(this.container.width(),this.container.height()),r=W.getObjectFitSize(o,i),a=new tv.a(r.width,r.height),s=null!=e?e:this.state.polygon,c=pv.convertToViewportPointsFromParentSize(a,s),l=null!=t?t:this.state.magneticLines.horizontal.original,u=null!=n?n:this.state.magneticLines.vertical.original,d=pv.convertLinesToViewportLines(a,l),m=pv.convertLinesToViewportLines(a,u);this.setState({calculatedSize:a,points:c,magneticLines:{horizontal:{original:l,scaled:d},vertical:{original:u,scaled:m}},animation:{duration:0,rotations:this.rotations,scale:this.calculateScale(0,this.rotations,a)},imageMargin:this.calculateMargin(a)})}render(){var e,t,n,i,o,r;const a=$A.CLASSNAME,s=Yg()({[a]:!0,[`${a}-visible`]:!0}),c=this.configuration.style.polygon.width,l=(null===(e=this.state.animation)||void 0===e?void 0:e.scale)?c/this.state.animation.scale:c,u=this.configuration.style.padding||0,d=`calc(100% - 2*${u}px)`;return Eo.default.createElement("div",{style:{position:"relative",width:d,height:d,padding:u}},Eo.default.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},this.configuration.disableScroll&&Eo.default.createElement(gE,null),Eo.default.createElement(CE,{ref:e=>this.magnifier=e,style:this.configuration.style.magnifier}),Eo.default.createElement(fE,{ref:e=>this.container=e,size:this.state.calculatedSize,rotations:null===(t=this.state.animation)||void 0===t?void 0:t.rotations,scale:null===(n=this.state.animation)||void 0===n?void 0:n.scale,duration:null===(i=this.state.animation)||void 0===i?void 0:i.duration,imageMargin:this.state.imageMargin},Eo.default.createElement(hE,{src:this.state.image,onImageLoaded:e=>this.onImageLoaded(e)}),Eo.default.createElement(pE,{style:{width:"100%",height:"100%",zIndex:500},size:this.state.calculatedSize,polygonStyle:{cursor:"pointer",stroke:this.configuration.style.polygon.color,strokeWidth:`${l}px`},handleStyle:this.configuration.style.polygon.handles,magneticLineStyle:this.configuration.style.magneticLines,polygonClasses:s,points:this.state.points,rotations:null===(o=this.state.animation)||void 0===o?void 0:o.rotations,scale:null===(r=this.state.animation)||void 0===r?void 0:r.scale,magneticLines:this.state.magneticLines,cornerMoveStart:this.showMagnifier.bind(this),cornerMoved:this.updateMagnifier.bind(this),cornerMoveEnd:this.hideMagnifier.bind(this)}))))}showMagnifier(e){var t;null===(t=this.magnifier)||void 0===t||t.setIsVisible(!0,(()=>{var t;null===(t=this.magnifier)||void 0===t||t.update(this.magnifierOptions(e))}))}updateMagnifier(e){var t;null===(t=this.magnifier)||void 0===t||t.update(this.magnifierOptions(e))}magnifierOptions(e){const t=new bE;return t.source=new vE(this.htmlImage,this.state.calculatedSize),t.container=new tv.a(this.container.width(),this.container.height()),t.origin=e.point,t.rotations=this.state.animation.rotations,t.scale=this.state.animation.scale,t}hideMagnifier(){var e;null===(e=this.magnifier)||void 0===e||e.setIsVisible(!1)}apply(){var e;return AE(this,void 0,void 0,(function*(){const t=kg.a.toPolygon(this.state.points,this.state.calculatedSize),n=this.toCoreRotations(this.rotations),i=yield this.sdk.imageCrop(null===(e=this.configuration)||void 0===e?void 0:e.image,t);return{image:yield this.sdk.imageRotate(i,n,"CONSUME_IMAGE"),polygon:t,rotations:this.rotations}}))}toCoreRotations(e){switch(e%this.MAX_ROTATIONS){case 0:return"NONE";case 1:return"CLOCKWISE_90";case 2:return"CLOCKWISE_180";case 3:return"COUNTERCLOCKWISE_90"}}rotate(e){return AE(this,void 0,void 0,(function*(){if(this.container.isAnimating())return void console.warn("Unable to rotate: previous rotation animation in progress");const t=this.calculateScale(this.rotations,e,this.state.calculatedSize);this.setState({animation:{rotations:this.rotations+e,scale:t,duration:1}})}))}detect(){return AE(this,void 0,void 0,(function*(){const e=this.state.documentDetectionResult;0===e.pointsNormalized.length?this.resetPolygon():this.initializeSizes(e.pointsNormalized,e.horizontalLinesNormalized,e.verticalLinesNormalized)}))}resetPolygon(){const e=this.state.documentDetectionResult;this.initializeSizes([new kg.a(0,0),new kg.a(1,0),new kg.a(1,1),new kg.a(0,1)],e.horizontalLinesNormalized,e.verticalLinesNormalized)}dispose(){const{container:e}=this.props;if(!e)throw Error("Component wasn't created with openCroppingView. Remove component from render tree to dispose.");Object(Eo.render)(null,e)}get rotations(){var e,t;const n=null===(e=this.state.animation)||void 0===e?void 0:e.rotations;return n&&0!==n?n:null!==(t=this.configuration.rotations)&&void 0!==t?t:0}get configuration(){return this._configuration||(this._configuration=sE.fromJson(this.props.configuration)),this._configuration}calculateScale(e,t,n){return t?(e+t)%2==0?this.BASE_SCALE:this.calculateRatio(n):this.BASE_SCALE}calculateRatio(e){return Math.min(this.container.width()/e.height,this.container.height()/e.width)}calculateMargin(e){return e.width>e.height?{x:0,y:this.container.height()/2-e.height/2}:{x:this.container.width()/2-e.width/2,y:0}}}var wE=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};function xE(e){const t=e.config.screens.cropping,n=Eo.default.useRef(null),i=Eo.default.useRef(null),[o,r]=Eo.default.useState(!0),a=Object(Eo.useRef)(0),s=Eo.default.useRef(Promise.resolve());return Object(Eo.useEffect)((()=>{if(n.current&&e.page)return s.current=s.current.then((()=>wE(this,void 0,void 0,(function*(){r(!0);const o=yield e.page.cropData();if(!n.current)return;a.current=o.rotations;const s=yield SE.create({containerId:"sb-cropping-container",image:o.image,polygon:o.crop,rotations:o.rotations,style:{polygon:{color:or.b.getColorValue(t.croppingPolygonColor),handles:{color:or.b.getColorValue(t.croppingHandlerColor),border:"transparent",filter:"drop-shadow(0px 0px 2px #00000070)"}}}},e.sdk);i.current=s,r(!1)})))),()=>{s.current=s.current.then((()=>wE(this,void 0,void 0,(function*(){var e;null===(e=i.current)||void 0===e||e.dispose()}))))}}),[n.current,e.page]),e.page?Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(zS,{open:o}),Eo.default.createElement(ir,{style:{backgroundColor:or.b.getColorValue(t.backgroundColor),width:"100%",height:`calc(100 * ${Lr})`,display:"flex",flexDirection:"column",touchAction:"none",userSelect:"none",WebkitTapHighlightColor:"transparent"}},Eo.default.createElement(hC,{backgroundColor:e.config.appearance.topBarBackgroundColor,leftContent:Eo.default.createElement(Fa,{ariaLabel:or.b.getLocalizedText(t.topBarBackButton.accessibilityDescription),onClick:e.onCloseButtonClick,visible:t.topBarBackButton.visible,text:t.topBarBackButton.text,background:t.topBarBackButton.background,foreground:t.topBarBackButton.foreground,debugName:"cropping-screen-close",disabled:o}),centerTitle:t.topBarTitle,rightContent:Eo.default.createElement(Fa,{ariaLabel:or.b.getLocalizedText(t.topBarConfirmButton.accessibilityDescription),onClick:()=>wE(this,void 0,void 0,(function*(){if(!i.current)return void e.onCloseButtonClick();const t=i.current;r(!0);const n=kg.a.toPolygon(t.state.points,t.state.calculatedSize),o=(4+t.rotations-a.current)%4;yield e.onApplyCrop(n,o),r(!1)})),visible:t.topBarConfirmButton.visible,text:t.topBarConfirmButton.text,background:t.topBarConfirmButton.background,foreground:t.topBarConfirmButton.foreground,debugName:"cropping-screen-apply",disabled:o})}),Eo.default.createElement(ir,{style:{flexGrow:1,width:"100%"},ref:n,id:"sb-cropping-container"}),Eo.default.createElement(ir,{style:{backgroundColor:or.b.getColorValue(e.config.appearance.bottomBarBackgroundColor),height:80,width:"100%",display:"flex",justifyContent:"center"}},Eo.default.createElement(ir,{style:{maxWidth:400,display:"flex",justifyContent:"space-between",alignItems:"center",flexGrow:1,padding:"0 20px"}},Eo.default.createElement(_a,{enabled:!o,config:t.bottomBar.detectButton,icon:({color:e})=>Eo.default.createElement(Xx.a,{style:{color:e}}),onClick:()=>wE(this,void 0,void 0,(function*(){var e;r(!0),yield null===(e=i.current)||void 0===e?void 0:e.detect(),r(!1)})),debugName:"retake"}),Eo.default.createElement(_a,{enabled:!o,config:t.bottomBar.rotateButton,icon:({color:e})=>Eo.default.createElement(LS.a,{style:{color:e}}),onClick:()=>{var e;return null===(e=i.current)||void 0===e?void 0:e.rotate(1)},debugName:"retake"}),Eo.default.createElement(_a,{enabled:!o,config:t.bottomBar.resetButton,icon:({color:e})=>Eo.default.createElement(Kx.a,{style:{color:e}}),onClick:()=>{var e;return null===(e=i.current)||void 0===e?void 0:e.resetPolygon()},debugName:"retake"}))))):null}var EE=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class OE{get id(){return this.data.id}getData(){return this.data}constructor(e,t){this.document=e,this.data=t,this._finalImageUrl=null,this.data.rotations=t.rotations||0}sdk(){return sO.instance}getOriginalImage(){return EE(this,void 0,void 0,(function*(){return yield this.sdk().storage.getSBPageImage(this.data.originalImageId)}))}getPolygon(){var e;return 4===(null===(e=this.data.polygon)||void 0===e?void 0:e.length)?this.data.polygon:OE.FULL_SIZE_POLYGON}cropData(){return EE(this,void 0,void 0,(function*(){return{crop:this.getPolygon(),rotations:this.data.rotations,image:yield this.getOriginalImage()}}))}finalRawImage(){return EE(this,void 0,void 0,(function*(){if(null===this.data.documentImageId){let e=yield this.getOriginalImage();const t=this.document.data.documentImageSizeLimit;0!==t?(e=yield this.sdk().imageResize(e,t,"COPY_IMAGE"),e=yield this.sdk().imageCrop(e,this.getPolygon(),"CONSUME_IMAGE")):e=yield this.sdk().imageCrop(e,this.getPolygon(),"COPY_IMAGE");const n=this.data.filters||[];for(let t of n)e=yield this.sdk().imageFilter(e,t,"CONSUME_IMAGE");const i=OE.ROTATIONS[this.data.rotations%4];e=yield this.sdk().imageRotate(e,i,"CONSUME_IMAGE");const o=yield this.sdk().storage.insertSBPageImage(e);return jE._internal_updateProperty(this.data,"documentImageId",o),yield this.document.updateStorageDocument(),e}return yield this.sdk().storage.getSBPageImage(this.data.documentImageId)}))}finalImageUrl(){return null===this._finalImageUrl&&(this._finalImageUrl=(()=>EE(this,void 0,void 0,(function*(){const e=yield this.finalRawImage(),t=yield this.sdk().imageToJpeg(e,"CONSUME_IMAGE");return URL.createObjectURL(new Blob([t],{type:"image/jpeg"}))})))()),this._finalImageUrl}invalidateImage(){return EE(this,void 0,void 0,(function*(){null!==this.data.documentImageId&&(yield this.sdk().storage.deleteImageById(this.data.documentImageId),jE._internal_updateProperty(this.data,"documentImageId",null)),yield this.document.updateStorageDocument(),URL.revokeObjectURL(yield this._finalImageUrl),this._finalImageUrl=null}))}}OE.ROTATIONS=["NONE","CLOCKWISE_90","CLOCKWISE_180","COUNTERCLOCKWISE_90"],OE.FULL_SIZE_POLYGON=[{x:0,y:0},{x:1,y:0},{x:1,y:1},{x:0,y:1}];class DE{constructor(e){this.name="SBStorageError",this.message=e}}var TE=n(7),BE=n(80);class kE extends TE.a{constructor(e={}){super(),this.filters=null,this.polygon=[],this.documentDetectionStatus=null,this.documentQuality=null,this.source=null,this.id=null,this.originalImageId=null,this.documentImageId=null,this.unfilteredDocumentImageId=null,void 0!==e.filters&&(this.filters=null!=e.filters?e.filters.map((e=>BE.a.From(e))):null),void 0!==e.polygon&&(this.polygon=e.polygon.map((e=>({x:e.x,y:e.y})))),void 0!==e.documentDetectionStatus&&(this.documentDetectionStatus=null!=e.documentDetectionStatus?e.documentDetectionStatus:null),void 0!==e.documentQuality&&(this.documentQuality=null!=e.documentQuality?e.documentQuality:null),void 0!==e.source&&(this.source=null!=e.source?e.source:null),void 0!==e.id&&(this.id=null!=e.id?e.id:null),void 0!==e.originalImageId&&(this.originalImageId=null!=e.originalImageId?e.originalImageId:null),void 0!==e.documentImageId&&(this.documentImageId=null!=e.documentImageId?e.documentImageId:null),void 0!==e.unfilteredDocumentImageId&&(this.unfilteredDocumentImageId=null!=e.unfilteredDocumentImageId?e.unfilteredDocumentImageId:null)}}class IE extends TE.a{constructor(e={}){if(super(),this.documentImageSizeLimit=0,this.id=null,this.pdfId=null,this.tiffId=null,void 0===e.creationTimestamp)throw new Error("creationTimestamp must be present in constructor argument");if(this.creationTimestamp=e.creationTimestamp,void 0===e.pages)throw new Error("pages must be present in constructor argument");this.pages=e.pages.map((e=>new kE(e))),void 0!==e.documentImageSizeLimit&&(this.documentImageSizeLimit=e.documentImageSizeLimit),void 0!==e.id&&(this.id=null!=e.id?e.id:null),void 0!==e.pdfId&&(this.pdfId=null!=e.pdfId?e.pdfId:null),void 0!==e.tiffId&&(this.tiffId=null!=e.tiffId?e.tiffId:null)}}class PE extends IE{constructor(){super(...arguments),this.pages=[]}}class LE extends kE{}var RE=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class _E{get documentImageSizeLimit(){return this.configuration.outputSettings.documentImageSizeLimit}get cleanSession(){return this.configuration.cleanScanningSession}get filters(){const e=this.configuration.outputSettings;return e.defaultFilter?[e.defaultFilter]:[]}constructor(e){this.configuration=e.config,this.documentId=null==e?void 0:e.documentId}loadFromStorage(){return void 0!==this.documentId}}class jE{getData(){return this.data}get isDraft(){return this.data.id===jE.DOCUMENT_DRAFT_ID}constructor(e){var t;this._pages=[],this.data=e;for(let e=0;e<(null===(t=this.data.pages)||void 0===t?void 0:t.length);e++)this.syncPage(e)}syncPage(e){this._pages[e]=new OE(this,this.data.pages[e])}get pages(){return this._pages}splicePage(e,t,...n){return this.data.pages.splice(e,t,...n),this._pages.splice(e,t,...n.map((e=>new OE(this,e))))}sdk(){return sO.instance}get pageCount(){return this.pages.length}pageAtIndex(e){return this.pages[e]}static loadFromStorage(e){return RE(this,void 0,void 0,(function*(){const t=yield sO.instance.storage.getSBDocument(e);if(void 0===t)throw new DE("Document not found in database.");return new jE(t)}))}static create(e){return RE(this,void 0,void 0,(function*(){const t=sO.instance;let n;if(e.loadFromStorage())n=yield jE.loadFromStorage(e.documentId);else{const i=yield t.storage.getSBDocument(jE.DOCUMENT_DRAFT_ID),o=void 0!==i;if(e.cleanSession&&o){for(const e of i.pages)yield t.storage.deleteImages(e);jE._internal_updateProperty(i,"pages",[])}const r=o?i:new PE({id:jE.DOCUMENT_DRAFT_ID,creationTimestamp:Date.now(),pages:[],documentImageSizeLimit:e.documentImageSizeLimit});n=new jE(r)}return n.data.filters=e.filters,yield n.updateStorageDocument(),n}))}updateStorageDocument(){return RE(this,void 0,void 0,(function*(){return yield this.sdk().storage.insertSBDocument(this)}))}delete(){return RE(this,void 0,void 0,(function*(){yield this.sdk().storage.deleteSBDocument(this);for(const e of this.pages)yield this.sdk().storage.deleteImages(e)}))}addPage(e,t,n,i){return RE(this,void 0,void 0,(function*(){void 0===i&&(i=this.pages.length);const o=new LE({id:Math.round(1e6*Math.random()),polygon:e.pointsNormalized,documentDetectionStatus:e.status,originalImageId:-1,source:n,documentQuality:t,filters:this.data.filters}),r=yield this.sdk().storage.insertSBPageImage(e.originalImage);jE._internal_updateProperty(o,"originalImageId",r),this.splicePage(i,0,o),yield this.updateStorageDocument()}))}deleteFromPosition(e){return RE(this,void 0,void 0,(function*(){const t=this.splicePage(e,1);yield this.sdk().storage.deleteImages(t[0]),yield this.updateStorageDocument()}))}deletePage(e){return RE(this,void 0,void 0,(function*(){const t=this.pages.indexOf(e);if(-1===t)throw new Error("Page not found in document.");yield this.deleteFromPosition(t)}))}deleteAllPages(){return RE(this,void 0,void 0,(function*(){for(;this.pages.length>0;)yield this.deleteFromPosition(0)}))}cropAndRotateAtIndex(e,t,n){return RE(this,void 0,void 0,(function*(){const i=this.pageAtIndex(e);yield this.cropAndRotatePage(i,t,n)}))}cropAndRotatePage(e,t,n){return RE(this,void 0,void 0,(function*(){const i=this.data.pages[this.pages.indexOf(e)];4===(null==t?void 0:t.length)&&jE._internal_updateProperty(i,"polygon",t),null!=n&&(i.rotations+=n),yield e.invalidateImage(),yield this.updateStorageDocument()}))}updateDataProperty(e,t){jE._internal_updateProperty(this.data,e,t)}static _internal_updateProperty(e,t,n){e[t]=n}deleteId(){delete this.data.id}convertToFinalVersion(){return RE(this,void 0,void 0,(function*(){if(this.isDraft){this.deleteId();const e=yield this.updateStorageDocument();jE._internal_updateProperty(this.data,"id",e),yield this.sdk().storage.deleteSBDocument(jE.DOCUMENT_DRAFT_ID)}return this}))}insertRenderedBuffer(e,t){return RE(this,void 0,void 0,(function*(){const n=yield this.sdk().storage.insertSBPageImage(e);return jE._internal_updateProperty(this.data,t,n),e}))}createPdf(e){return RE(this,void 0,void 0,(function*(){const t=yield this.sdk().beginPdf(e);yield t.addPages(this);const n=yield t.complete();return yield this.saveRenderedPdf(n),n}))}createTiff(e={},t={}){return RE(this,void 0,void 0,(function*(){const n=yield this.sdk().beginTiff(e);yield n.addPages(this,t);const i=yield n.complete();return yield this.saveRenderedTiff(i),i}))}loadPdf(){return RE(this,void 0,void 0,(function*(){return yield this.loadBuffer(this.data.pdfId)}))}loadTiff(){return RE(this,void 0,void 0,(function*(){return yield this.loadBuffer(this.data.tiffId)}))}loadBuffer(e){return RE(this,void 0,void 0,(function*(){return yield this.sdk().storage.getSBPageImage(e)}))}saveRenderedPdf(e){return RE(this,void 0,void 0,(function*(){return yield this.insertRenderedBuffer(e,"pdfId")}))}saveRenderedTiff(e){return RE(this,void 0,void 0,(function*(){return yield this.insertRenderedBuffer(e,"tiffId")}))}}jE.DOCUMENT_DRAFT_ID=-1;var ME=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};function FE(e){var t;Object(Eo.useMemo)((()=>{or.b.setPalette(e.configuration.palette),or.b.setLocalization(e.configuration.localization)}),[e.configuration]);const n=Zy(),[i,o]=Object(Eo.useState)(null);Object(Eo.useEffect)((()=>{const t=new _E({config:e.configuration,documentId:e.documentId});jE.create(t).then((t=>{var n;t instanceof jE?o(t):null===(n=e.onError)||void 0===n||n.call(e,t)}))}),[]);const[r,a]=Eo.default.useState({screen:"camera",insertMode:{name:"insert back"}}),s="acknowledgment"===r.screen?r:null;return Object(Eo.useEffect)((()=>{const t=e.configuration.screens.camera.timeouts.autoCancelTimeout;if(0!==t){const n=setTimeout(e.onClose,t);return()=>clearTimeout(n)}}),[]),Eo.default.createElement(Eo.default.Fragment,null,Eo.default.createElement(Rr,null),Eo.default.createElement(pS,null,Eo.default.createElement(wS,{visible:"acknowledgment"===r.screen,configuration:e.configuration,sdk:e.sdk,croppedDetectionResult:null==s?void 0:s.croppedDetectionResult,onAccept:(t,o)=>{if(!s)throw new Error("Internal error: Invalid routing state");let r;const c=[];if("insert back"===s.insertMode.name){const n=i.addPage(t.value,o,t.source);c.push(n),r=e.configuration.outputSettings.pagesScanLimit>0&&i.pages.length+1===e.configuration.outputSettings.pagesScanLimit?{screen:"review",position:i.pages.length+1}:{screen:"camera",insertMode:{name:"insert back"}}}else{const e=s.insertMode.position,n=i.addPage(t.value,o,t.source,e);c.push(n),r={screen:"review",position:e},"replace"===s.insertMode.name&&c.push((()=>ME(this,void 0,void 0,(function*(){yield i.deleteFromPosition(e),yield n})))())}Promise.all(c).then((()=>{n.current&&a((e=>"acknowledgment"===e.screen?r:e))}))},onReject:()=>{var e;return a({screen:"camera",insertMode:null!==(e=null==s?void 0:s.insertMode)&&void 0!==e?e:{name:"insert back"}})},onError:e.onError}),Eo.default.createElement(mS,{visible:["camera","acknowledgment"].includes(r.screen),scanningPaused:"camera"!==r.screen||null===i,configuration:e.configuration,onClose:()=>ME(this,void 0,void 0,(function*(){(null==i?void 0:i.isDraft)&&(yield i.delete()),e.onClose()})),onImageCaptured:e=>{if("camera"!==r.screen)throw new Error("Internal error: Invalid routing state");a({screen:"acknowledgment",croppedDetectionResult:e,insertMode:r.insertMode})},onReviewButtonClick:()=>a({screen:"review",position:Math.max(0,i.pageCount-1)}),sdk:e.sdk,pages:null!==(t=null==i?void 0:i.pages)&&void 0!==t?t:[],scanLimitReached:(()=>{var t;return!(e.configuration.outputSettings.pagesScanLimit<=0)&&(("camera"!==r.screen||"replace"!==r.insertMode.name)&&(null===(t=null==i?void 0:i.pages)||void 0===t?void 0:t.length)>=e.configuration.outputSettings.pagesScanLimit)})(),onError:e.onError}),Eo.default.createElement(jw,{document:i,currentPosition:"review"===r.screen?r.position:null,visible:"review"===r.screen,configuration:e.configuration,onClose:()=>a({screen:"camera",insertMode:{name:"insert back"}}),onSubmit:()=>ME(this,void 0,void 0,(function*(){const t=yield i.convertToFinalVersion(),n=new eC(t);e.onSubmit(n)})),onGoToPage:e=>{a({screen:"review",position:e})},onRetakeImage:e=>a({screen:"camera",insertMode:{name:"replace",position:e}}),onInsertImage:e=>a({screen:"camera",insertMode:{name:"insert at",position:e}}),onZoomButtonClick:e=>a({screen:"zoom",position:e}),onCropButtonClick:e=>a({screen:"crop",position:e})}),Eo.default.createElement(Yx,{visible:"zoom"===r.screen,page:"zoom"===r.screen?i.pageAtIndex(r.position):null,config:e.configuration.screens.review.zoomOverlay,onCloseButtonClick:()=>a({screen:"review",position:"zoom"===r.screen?r.position:0})}),Eo.default.createElement(xE,{sdk:e.sdk,page:"crop"===r.screen?i.pageAtIndex(r.position):null,config:e.configuration,onCloseButtonClick:()=>a({screen:"review",position:"crop"===r.screen?r.position:0}),onApplyCrop:(e,t)=>ME(this,void 0,void 0,(function*(){if("crop"!==r.screen)throw new Error("Internal error: Invalid routing state");yield i.cropAndRotateAtIndex(r.position,e,t),a({screen:"review",position:r.position})}))})))}var NE=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class VE{static createDocumentScanner(e,t){return new Promise(((n,i)=>{const{root:o,unmount:r}=this.createRoot(),a=e=>NE(this,void 0,void 0,(function*(){yield r(),i(e)}));o.render(Eo.default.createElement(Eo.default.StrictMode,null," ",Eo.default.createElement(FE,{configuration:e,documentId:t,onClose:()=>NE(this,void 0,void 0,(function*(){yield r(),n(null)})),onSubmit:e=>NE(this,void 0,void 0,(function*(){yield r(),n(e)})),onError:a,sdk:sO.instance}))),this.checkLicense(a)}))}static createBarcodeScanner(e){return new Promise(((t,n)=>{bl.INSTANCE.initialize(e.sound);const{root:i,unmount:o}=this.createRoot(),r=e=>NE(this,void 0,void 0,(function*(){yield o(),n(e)}));i.render(Eo.default.createElement(Jy,{configuration:e,onClose:()=>NE(this,void 0,void 0,(function*(){yield o(),t(null)})),onSubmit:e=>NE(this,void 0,void 0,(function*(){yield o(),t(e)})),onError:r})),this.checkLicense(r)}))}static createRoot(){const e=VE.createContainer("barcode-scanner-controller"),t=Object(Oo.createRoot)(e);return{unmount:()=>NE(this,void 0,void 0,(function*(){return new Promise((n=>{window.setTimeout((()=>{t.unmount(),document.body.removeChild(e),n()}),0)}))})),root:t}}static checkLicense(e){(()=>{NE(this,void 0,void 0,(function*(){try{const t=yield sO.instance.getLicenseInfo();t.isValid()||(yield e(new Co(t)))}catch(t){yield e(t)}}))})()}static createContainer(e){const t=document.createElement("div");return t.id=e,t.style.position="fixed",t.style.width="100%",t.style.height=`calc(100 * ${Lr})`,t.style.zIndex="1000",t.style.top="0",t.style.left="0",t.style.backgroundColor="rgba(0, 0, 0, 0.5)",document.body.appendChild(t),t}}VE.Config=Do;var WE=VE,zE=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class HE{constructor(e,t){this._sdk=e,this._recognizer=t}recognize(e,t,n="COPY_IMAGE"){return zE(this,void 0,void 0,(function*(){const i=this._sdk.getBridge(n);return yield i.documentDataExtractorExtract(this._recognizer,e,t)}))}release(){return zE(this,void 0,void 0,(function*(){yield this._sdk.bridge.copyArgs.releaseObject(this._recognizer)}))}}class UE extends X.a{constructor(){super(Q.a.DEFAULT_VIDEO_RESOLUTION_HD),this.recognizerConfiguration=new f.MrzScannerConfiguration,this.onMrzDetected=function(e){},this.finder.aspectRatio=new ce.AspectRatio({width:4,height:1}),this.userGuidance.title.text="Please hold the device over the MRZ code to start scanning"}static fromJson(e){const t=new UE;return this.mapValues(e,t,["style","videoConstraints","finder","userGuidance"]),this.mapFinderConfiguration(t,e),this.mapVideoConstraints(e,t),t}}var ZE=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};Al.a;Al.b;class GE extends Al.c{constructor(e){super(e),this.shouldComputeSize=!0,this.paused=!1,this.updateDimensionsCallback=this.updateDimensions.bind(this),Object.assign(this.state,{isFinderVisible:!0})}get configuration(){return this._configuration||(this._configuration=UE.fromJson(this.props.configuration)),this._configuration}get enabled(){return!this.disposed}static create(e,t){return ZE(this,void 0,void 0,(function*(){const n=document.getElementById(e.containerId);if(!n)throw Error("Unable to initialize ScanbotSDK: Cannot find container element with the id provided.");return new Promise(((i,o)=>{Object(Eo.render)(Eo.default.createElement(GE,{container:n,configuration:e,onSuccess:i,onFailure:o,mrzRecognizer:t}),n)}))}))}isDetectionPaused(){return this.paused}resumeDetection(){return ZE(this,void 0,void 0,(function*(){mv.warn("Mrz detection resumed"),yield this.resume()}))}pauseDetection(){mv.warn("Mrz detection paused"),this.pause()}componentDidMount(){const e=Object.create(null,{componentDidMount:{get:()=>super.componentDidMount}});return ZE(this,void 0,void 0,(function*(){e.componentDidMount.call(this),window.addEventListener("resize",this.updateDimensionsCallback),yield this.resume()}))}componentWillUnmount(){super.componentWillUnmount(),this.pause(),this.props.mrzRecognizer.release(),window.removeEventListener("resize",this.updateDimensionsCallback)}updateDimensions(){return ZE(this,void 0,void 0,(function*(){this.shouldComputeSize=!0,this.forceUpdate()}))}resume(){return ZE(this,void 0,void 0,(function*(){this.paused=!1,yield this.detect()}))}pause(){this.paused=!0}detect(){var e,t,n,i,o;return ZE(this,void 0,void 0,(function*(){const r=this.shouldComputeSize;if(!this.enabled)return;if(this.paused)return;let a=!1;try{this.camera.finderFrame=null===(e=this.finder)||void 0===e?void 0:e.holeRect;const i=yield null===(t=this.camera)||void 0===t?void 0:t.createImageData(GE.FRAME_RESOLUTION);if(!i)return;r&&this.forceUpdate();const o=yield this.props.mrzRecognizer.recognize(i,"CONSUME_IMAGE");if(!this.enabled)return;if(null===o)return;this.camera.reusableImageBuffer=null==o?void 0:o.originalImage.data,o.success?(delete o.originalImage,a=!0,this.configuration.onMrzDetected(o)):this.configuration._onDetectionFailed&&(null===(n=this.configuration)||void 0===n||n._onDetectionFailed(o.originalImage))}catch(e){null===(o=(i=this.configuration).onError)||void 0===o||o.call(i,e)}finally{a?setTimeout((()=>{requestAnimationFrame(this.detect.bind(this))}),200):requestAnimationFrame(this.detect.bind(this))}}))}saveExtractedImageData(){this.camera.saveExtractedData()}setFinderVisible(e){this.setState({isFinderVisible:e})}render(){var e;return Eo.default.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},this.renderSpinner(null===(e=this.configuration)||void 0===e?void 0:e.spinnerColor),Eo.default.createElement("div",{style:{position:"absolute",width:"100%",height:"100%"}},Eo.default.createElement(Sl.a,{configuration:this.configuration,videoConstraints:this.configuration.videoConstraints,mirrored:this.configuration.mirrored,preferredCamera:this.configuration.preferredCamera,onReady:this.onVideoReady,onError:this.onVideoError,ref:e=>{this.camera=e}})),this.state.isFinderVisible&&Eo.default.createElement(wl.a,{ref:e=>{this.finder=e},guidanceConfiguration:this.configuration.userGuidance,configuration:this.configuration.finder}))}}GE.FRAME_RESOLUTION=1200;var $E=GE,YE=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};Al.b;class QE extends Al.c{constructor(e){super(e),this.shouldComputeSize=!0,this.paused=!1,this.updateDimensionsCallback=this.updateDimensions.bind(this),Object.assign(this.state,{isFinderVisible:!0})}get configuration(){return this.props.configuration}get enabled(){return!this.disposed}static create(e,t){return YE(this,void 0,void 0,(function*(){const n=document.getElementById(e.containerId);if(!n)throw Error("Unable to initialize ScanbotSDK: Cannot find container element with the id provided.");return new Promise(((i,o)=>{Object(Eo.render)(Eo.default.createElement(QE,{container:n,configuration:e,onDetected:t.onDetected,onSuccess:i,onFailure:o,scanner:t.scanner}),n)}))}))}isDetectionPaused(){return this.paused}resumeDetection(){return YE(this,void 0,void 0,(function*(){mv.warn("Text pattern detection resumed"),yield this.resume()}))}pauseDetection(){mv.warn("Text pattern detection paused"),this.pause()}componentDidMount(){const e=Object.create(null,{componentDidMount:{get:()=>super.componentDidMount}});return YE(this,void 0,void 0,(function*(){e.componentDidMount.call(this),window.addEventListener("resize",this.updateDimensionsCallback),yield this.resume()}))}componentWillUnmount(){super.componentWillUnmount(),this.pause(),this.props.scanner.release(),window.removeEventListener("resize",this.updateDimensionsCallback)}updateDimensions(){return YE(this,void 0,void 0,(function*(){this.shouldComputeSize=!0,this.forceUpdate()}))}resume(){return YE(this,void 0,void 0,(function*(){this.paused=!1,yield this.detect()}))}pause(){this.props.scanner.cleanRecognitionQueue(),this.paused=!0}detect(){var e,t,n,i;return YE(this,void 0,void 0,(function*(){const o=this.shouldComputeSize;if(!this.enabled)return;if(this.paused)return;let r=!1;try{this.camera.finderFrame=null===(e=this.finder)||void 0===e?void 0:e.holeRect;const n=yield null===(t=this.camera)||void 0===t?void 0:t.createImageData(QE.FRAME_RESOLUTION);if(!n)return;o&&this.forceUpdate();const i=yield this.props.scanner.recognize(n);if(!this.enabled)return;if(null===i)return;i&&(r=!0,this.props.onDetected(i),this.camera.reusableImageBuffer=i.originalImage.data)}catch(e){null===(i=(n=this.configuration).onError)||void 0===i||i.call(n,e)}finally{r?setTimeout((()=>{requestAnimationFrame(this.detect.bind(this))}),200):requestAnimationFrame(this.detect.bind(this))}}))}saveExtractedImageData(){this.camera.saveExtractedData()}render(){var e;return Eo.default.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},this.renderSpinner(null===(e=this.configuration)||void 0===e?void 0:e.spinnerColor),Eo.default.createElement("div",{style:{position:"absolute",width:"100%",height:"100%"}},Eo.default.createElement(Sl.a,{configuration:this.configuration,videoConstraints:this.configuration.videoConstraints,mirrored:this.configuration.mirrored,preferredCamera:this.configuration.preferredCamera,onReady:this.onVideoReady,onError:this.onVideoError,ref:e=>{this.camera=e}})),this.state.isFinderVisible&&Eo.default.createElement(wl.a,{ref:e=>{this.finder=e},guidanceConfiguration:this.configuration.userGuidance,configuration:this.configuration.finder}))}}QE.FRAME_RESOLUTION=1200;var XE=QE,qE=n(71),KE=n(53);var JE=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class eO{constructor(){this.tokenCounter=0,this.taskMap=new Map,this.worker=function(){const e=n(148).default.replace("data:application/javascript;charset=utf-8;base64,",""),t=atob(e),i=new Blob([t],{type:"application/javascript"}),o=URL.createObjectURL(i);return new Worker(o)}(),this.worker.onmessage=e=>{const t=e.data,n=t.token;if(this.taskMap.has(n)){(0,this.taskMap.get(n).resolve)(t.data),this.taskMap.delete(n)}else console.error("Unknown token:",n)},this.worker.onerror=e=>{if(!e.error)return void console.log("SBSDK: Error event triggered, but no error present",e);if(!e.error.cause)return void console.error("SBSDK: Error event triggered, but no cause present",e.error);const t=e.error.cause.token;if(this.taskMap.has(t)){(0,this.taskMap.get(t).reject)(e.error),this.taskMap.delete(t)}else console.error("Unknown token:",t)}}generateUniqueToken(){return this.tokenCounter++,"token_"+this.tokenCounter+"_"+Math.random().toString(36).substr(2,9)}query(e){return JE(this,void 0,void 0,(function*(){const t=this.generateUniqueToken();return this.worker.postMessage({token:t,query:e}),new Promise(((e,n)=>{this.taskMap.set(t,{resolve:e,reject:n})}))}))}}var tO=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class nO{constructor(){this.db=new eO}clear(){return tO(this,void 0,void 0,(function*(){yield this.db.query({type:"clear"})}))}delete(){return tO(this,void 0,void 0,(function*(){yield this.db.query({type:"delete"})}))}getCroppedDetectionResults(e=!0){return tO(this,void 0,void 0,(function*(){const t=yield this.db.query({type:"getCroppedDetectionResults"});if(!e)return t;const n=t.map((e=>e.id)),i=yield this.getCroppedDetectionResultImages(n);for(const e of t)this.mapImages(e,i);return t}))}getCroppedDetectionResult(e){return tO(this,void 0,void 0,(function*(){const t=yield this.db.query({type:"getCroppedDetectionResult",data:e}),n=yield this.getCroppedDetectionResultImage(e);return this.mapImages(t,n),t}))}mapImages(e,t){var n,i;e.originalImage=null===(n=t.find((t=>t.documentId===e.id&&"original"===t.type)))||void 0===n?void 0:n.data,e.croppedImage=null===(i=t.find((t=>t.documentId===e.id&&"cropped"===t.type)))||void 0===i?void 0:i.data}getCroppedDetectionResultImages(e){return tO(this,void 0,void 0,(function*(){return yield this.db.query({type:"getImages",data:e})}))}getCroppedDetectionResultImage(e){return tO(this,void 0,void 0,(function*(){return yield this.db.query({type:"getImages",data:[e]})}))}storeCroppedDetectionResult(e){return tO(this,void 0,void 0,(function*(){const t=Object.create(e);t.croppedImage=null,t.originalImage=null;const n=yield this.db.query({type:"storeCroppedDetectionResult",data:t}),i=[{documentId:n,data:e.originalImage,type:"original"},{documentId:n,data:e.croppedImage,type:"cropped"}];return yield this.db.query({type:"storeImages",data:i}),n}))}getSBDocumentIds(){return tO(this,void 0,void 0,(function*(){return yield this.db.query({type:"getSBDocumentIds"})}))}insertSBDocument(e){return tO(this,void 0,void 0,(function*(){return yield this.db.query({type:"insertSBDocument",data:e.getData()})}))}deleteSBDocument(e){return tO(this,void 0,void 0,(function*(){const t="number"==typeof e?e:e.getData().id;return yield this.db.query({type:"deleteSBDocument",data:t})}))}getSBDocument(e){return tO(this,void 0,void 0,(function*(){return yield this.db.query({type:"getSBDocument",data:e})}))}insertSBPageImage(e){return tO(this,void 0,void 0,(function*(){const t={image:e};return yield this.db.query({type:"insertSBPageImage",data:t})}))}getSBPageImage(e){return tO(this,void 0,void 0,(function*(){return(yield this.db.query({type:"getSBPageImage",data:e})).image}))}deleteImageById(e){return tO(this,void 0,void 0,(function*(){return yield this.db.query({type:"deleteSBPageImages",data:[e]})}))}deleteImages(e){return tO(this,void 0,void 0,(function*(){const t=e instanceof OE?e.getData():e,n=[t.originalImageId];t.documentImageId&&n.push(t.documentImageId),t.unfilteredDocumentImageId&&n.push(t.unfilteredDocumentImageId),yield this.db.query({type:"deleteSBPageImages",data:n})}))}}var iO=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class oO{constructor(e,t){this._sdk=e,this._token=t}recognize(e,t="COPY_IMAGE"){return iO(this,void 0,void 0,(function*(){const n=this._sdk.getBridge(t);return yield n.scanVin(yield this._token,e)}))}cleanRecognitionQueue(){return iO(this,void 0,void 0,(function*(){yield this._sdk.bridge.copyArgs.cleanVinScanningQueue(yield this._token)}))}recognizeURL(e){return iO(this,void 0,void 0,(function*(){return this.recognize(yield W.imageUrlToImageData(e))}))}release(){return iO(this,void 0,void 0,(function*(){yield this._sdk.bridge.copyArgs.releaseObject(yield this._token)}))}}var rO=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class aO{constructor(){this.storage=new nO}static get UI(){if(!O.BUILD_WITH_UI)throw new Error("UI components are not included in Scanbot.min.js. Please use ScanbotSDK.ui2.min.js instead.");return aO._ui2}static initialize(e){var t;return rO(this,void 0,void 0,(function*(){const n=new aO,i=e.enginePath||aO.defaultEnginePath,o=!!e.allowThreads,r=null!==(t=e.requestSuffix)&&void 0!==t?t:`?${n.version}`;if(!i)throw new Error("To initialize the ScanbotSDK, please specify the enginePath option. This option should specify the location of the accompanying WASM and JS files in the bundle folder. It can either point to your server or a CDN. Please note that this option has been renamed from engine -> enginePath recently. Please see our documentation for more details on how to set up the enginePath correctly.");const a=[e.licenseKey,i,window.location.hostname,"",{captureConsole:!1,allowThreads:o,requestSuffix:r}];return n.bridge=new P(i,{allowSimd:!0,allowThreads:o,requestSuffix:r},a),aO.instance=n,window.scanbotSdk=n,xo.a.initialize(e.verboseLogging),e.allowThreads&&!Object(D.a)()&&(xo.a.debugWarn("Threads are not available in this environment. The SDK will run in single-threaded mode."),window.hasOwnProperty("crossOriginIsolated")&&!window.crossOriginIsolated&&xo.a.debugWarn("The site is not cross-origin isolated. This prevents multithreading in the ScanbotSDK. To enable multithreading, you need to set the 'Cross-Origin-Opener-Policy' and 'Cross-Origin-Embedder-Policy' http headers. See our documentation for details.")),this.cameras.initialize(null==e?void 0:e.bestCameraDetectionStrategy),n}))}createDocumentScanner(e){return rO(this,void 0,void 0,(function*(){let t;try{return t=yield oS.create(e,this),yield this.licenseCheck(),t}catch(e){throw t&&t.dispose(),e}}))}createMrzScanner(e){var t;return rO(this,void 0,void 0,(function*(){let n;try{const i=new U(this,this.bridge.copyArgs.createMRZScanner(null!==(t=e.recognizerConfiguration)&&void 0!==t?t:{}));return n=yield $E.create(e,i),yield this.licenseCheck(),n}catch(e){throw n&&n.dispose(),e}}))}createBarcodeScanner(e){return rO(this,void 0,void 0,(function*(){let t;try{return t=yield fv.create(e),yield this.licenseCheck(),t}catch(e){throw t&&t.dispose(),e}}))}openCroppingView(e){return rO(this,void 0,void 0,(function*(){return yield this.licenseCheck(),yield SE.create(e,this)}))}createTextPatternScanner(e){return rO(this,void 0,void 0,(function*(){let t;try{e=bo.fromJson(e);const n=this.bridge.copyArgs.createTextPatternScanner(e.ocrConfiguration),i=new Y(this,n);return t=yield XE.create(e,{onDetected:e.onTextDetected,scanner:i}),yield this.licenseCheck(),t}catch(e){throw t&&t.dispose(),e}}))}createVINScanner(e){return rO(this,void 0,void 0,(function*(){let t;try{e=yo.fromJson(e);const n=t=>{""===t.textResult.rawText&&""===t.barcodeResult.extractedVIN||e.onVinDetected(t)},i=this.bridge.copyArgs.createVinScanner(e.detectionConfiguration),o=new oO(this,i);return t=yield XE.create(e,{scanner:o,onDetected:n}),yield this.licenseCheck(),t}catch(e){throw t&&t.dispose(),e}}))}createDocumentDataExtractorScanner(e){return rO(this,void 0,void 0,(function*(){let t;try{const i=n(149).default;return t=yield i.create(this,e),yield this.licenseCheck(),t}catch(e){throw t&&t.dispose(),e}}))}toDataUrl(e){return rO(this,void 0,void 0,(function*(){return Ao.throwIfMissingBuffer(e),yield W.toDataUrl(e)}))}detectDocument(e,t={},n="COPY_IMAGE"){return rO(this,void 0,void 0,(function*(){yield this.licenseCheck(),Ao.throwIfMissingBuffer(e);const i=yield this.bridge.copyArgs.createDocumentScanner(t),o=this.getBridge(n),r=yield o.documentScannerDetect(i,e);return yield this.release(i,"documentDetector"),r}))}detectAndCropDocument(e,t="COPY_IMAGE"){return rO(this,void 0,void 0,(function*(){yield this.licenseCheck(),Ao.throwIfMissingBuffer(e);const n=this.getBridge(t);return yield n.detectAndCropDocument(e)}))}detectBarcodes(e,t={},n="COPY_IMAGE"){return rO(this,void 0,void 0,(function*(){yield this.licenseCheck(),Ao.throwIfMissingBuffer(e),"string"==typeof e&&(e=yield W.loadFromUrl(e));const i=Object.assign({},t);i.live=!1;const o=yield this.bridge.copyArgs.createBarcodeScanner(i),r=yield this.getBridge(n).scanBarcodes(o,e);return yield this.release(o,"barcodeRecognizer"),r}))}parseBarcodeDocument(e,t){return rO(this,void 0,void 0,(function*(){return yield this.licenseCheck(),yield this.bridge.copyArgs.parseBarcodeDocument(e,t)}))}createSimpleMRZRecognizer(){return rO(this,void 0,void 0,(function*(){const e=new f.MrzScannerConfiguration({frameAccumulationConfiguration:{maximumNumberOfAccumulatedFrames:0}});return new U(this,this.bridge.copyArgs.createMRZScanner(e))}))}createOcrEngine(){return rO(this,void 0,void 0,(function*(){return new G(this,yield this.bridge.copyArgs.createOcrEngine())}))}createDocumentQualityAnalyzer(e={}){return rO(this,void 0,void 0,(function*(){const t=yield this.bridge.copyArgs.createDocumentQualityAnalyzer(e);return new wo(this,t)}))}imageRotate(e,t,n="COPY_IMAGE"){return rO(this,void 0,void 0,(function*(){Ao.throwIfMissingBuffer(e);const i=this.getBridge(n);return yield i.imageRotate(e,t)}))}imageFilter(e,t,n="COPY_IMAGE"){return rO(this,void 0,void 0,(function*(){Ao.throwIfMissingBuffer(e);const i=this.getBridge(n);return yield i.imageApplyFilter(e,t)}))}imageCrop(e,t,n="COPY_IMAGE"){return rO(this,void 0,void 0,(function*(){Ao.throwIfMissingBuffer(e);const i=this.getBridge(n);return yield i.imageCrop(e,t)}))}imageResize(e,t,n="COPY_IMAGE"){return rO(this,void 0,void 0,(function*(){Ao.throwIfMissingBuffer(e);const i=this.getBridge(n);return yield i.imageResize(e,t)}))}getLicenseInfo(){return rO(this,void 0,void 0,(function*(){const e=yield this.bridge.copyArgs.getLicenseInfo();return L.fromJson(e)}))}beginPdf(e){return rO(this,void 0,void 0,(function*(){return yield this.licenseCheck(),new _(this,yield this.bridge.copyArgs.beginPdf(e))}))}beginTiff(e={}){return rO(this,void 0,void 0,(function*(){return yield this.licenseCheck(),new M(this,yield this.bridge.copyArgs.beginTiff(e))}))}createDocumentDataExtractor(e){return rO(this,void 0,void 0,(function*(){return yield this.licenseCheck(),new HE(this,yield this.bridge.copyArgs.documentDataExtractorCreate(e))}))}imageToJpeg(e,t="COPY_IMAGE"){return rO(this,void 0,void 0,(function*(){yield this.licenseCheck();return this.getBridge(t).encodeJpeg(e)}))}get version(){return O.VERSION}get utils(){return this._utils||(this._utils=new z),this._utils}release(e,t){return rO(this,void 0,void 0,(function*(){e&&(xo.a.debug(`Releasing object ${null!=t?t:"unknown"}`),yield this.bridge.copyArgs.releaseObject(e))}))}getBridge(e){return"CONSUME_IMAGE"===e?this.bridge.transferArgs:this.bridge.copyArgs}licenseCheck(){return rO(this,void 0,void 0,(function*(){const e=yield this.getLicenseInfo();if(!e.isValid())throw console.error(`LicenseError: ${e.status}`),new Co(e)}))}destroy(){this.bridge.destroy(),aO.instance=void 0}}aO.defaultEnginePath="",aO._ui2=O.BUILD_WITH_UI?WE:void 0,aO.cameras=KE.a.INSTANCE,aO.Config=E,aO._stats=qE.a.INSTANCE;var sO=t.a=aO},,,,,,,function(e,t,n){"use strict";n(3);t.a=function(e,t){return()=>null}},function(e,t,n){"use strict";var i=n(85),o=n.n(i)()((function(e){return e[1]}));o.push([e.i,"\n.scanbot-shutter-fade-in {\n opacity: 1;\n}\n\n.scanbot-shutter-fade-out {\n opacity: 0;\n}\n\n.scanbot-shutter-rotate {\n animation: scanbot-shutter-rotating linear infinite;\n}\n\n.scanbot-shutter-pulse-fast {\n animation: scanbot-shutter-pulsing 1s ease-in-out infinite;\n}\n\n.scanbot-shutter-button {\n position: relative;\n width: 64px;\n height: 64px;\n left: 50%;\n bottom: 12px;\n transform: translate(-50%, -100%);\n}\n\n.scanbot-shutter-button-part {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n transition: opacity 0.5s ease-in-out;\n}\n\n@keyframes scanbot-shutter-rotating {\n to {\n transform: rotate(360deg);\n }\n}\n\n@keyframes scanbot-shutter-pulsing {\n 0% {\n opacity: 0.25;\n }\n 50% {\n opacity: 0.8;\n }\n 100% {\n opacity: 0.25;\n }\n}\n",""]),t.a=o},function(e,t,n){"use strict";var i=n(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(27)),r=n(6);t.default=(0,o.default)((0,r.jsx)("path",{d:"M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 14H4V6h4.05l1.83-2h4.24l1.83 2H20zM12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0 8c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"}),"CameraAltOutlined")},function(e,t,n){"use strict";var i=n(85),o=n.n(i)()((function(e){return e[1]}));o.push([e.i,".scanbot-document-hint-text {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n text-align: center;\n background-color: rgba(0, 0, 0, 0.4);\n color: white;\n border-radius: 0.25em;\n padding: 0.05em 0.3em 0.05em 0.3em;\n font-family: sans-serif;\n font-size: 0.9em;\n font-weight: 300;\n}\n",""]),t.a=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(151);function o(e){if("string"!=typeof e)throw new Error(Object(i.a)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},,,,function(e,t){var n,i,o=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(e){n=r}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(e){i=a}}();var c,l=[],u=!1,d=-1;function m(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&p())}function p(){if(!u){var e=s(m);u=!0;for(var t=l.length;t;){for(c=l,l=[];++d<t;)c&&c[d].run();d=-1,t=l.length}c=null,u=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function f(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||u||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=f,o.addListener=f,o.once=f,o.off=f,o.removeListener=f,o.removeAllListeners=f,o.emit=f,o.prependListener=f,o.prependOnceListener=f,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";e.exports=n(147)},function(e,t,n){"use strict";n.r(t),n.d(t,"capitalize",(function(){return o.a})),n.d(t,"createChainedFunction",(function(){return r})),n.d(t,"createSvgIcon",(function(){return a.a})),n.d(t,"debounce",(function(){return s.a})),n.d(t,"deprecatedPropType",(function(){return c})),n.d(t,"isMuiElement",(function(){return l.a})),n.d(t,"ownerDocument",(function(){return u.a})),n.d(t,"ownerWindow",(function(){return d.a})),n.d(t,"requirePropFactory",(function(){return m.a})),n.d(t,"setRef",(function(){return p})),n.d(t,"unstable_useEnhancedEffect",(function(){return h.a})),n.d(t,"unstable_useId",(function(){return f})),n.d(t,"unsupportedProp",(function(){return g})),n.d(t,"useControlled",(function(){return b})),n.d(t,"useEventCallback",(function(){return y.a})),n.d(t,"useForkRef",(function(){return C.a})),n.d(t,"useIsFocusVisible",(function(){return A.a})),n.d(t,"unstable_ClassNameGenerator",(function(){return S}));var i=n(153),o=n(13),r=n(191).a,a=n(76),s=n(64);var c=function(e,t){return()=>null},l=n(78),u=n(40),d=n(52),m=n(96),p=n(157).a,h=n(44),f=n(192).a;var g=function(e,t,n,i,o){return null},v=n(0);var b=function({controlled:e,default:t,name:n,state:i="value"}){const{current:o}=v.useRef(void 0!==e),[r,a]=v.useState(t);return[o?e:r,v.useCallback((e=>{o||a(e)}),[])]},y=n(48),C=n(30),A=n(77);const S={configure:e=>{i.a.configure(e)}}},function(e,t,n){const{render:i,hydrate:o,unmountComponentAtNode:r}=n(0);function a(e){return{render(t){i(t,e)},unmount(){r(e)}}}t.createRoot=a,t.hydrateRoot=function(e,t){return o(t,e),a(e)}},function(e,t,n){"use strict";t.a={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"}},function(e,t,n){"use strict";var i=n(100),o=n(51),r=n(25),a=n(35),s=n(67);const c=function(){function e(e,t,n,o){const s={[e]:t,theme:n},c=o[e];if(!c)return{[e]:t};const{cssProperty:l=e,themeKey:u,transform:d,style:m}=c;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const p=Object(r.b)(n,u)||{};if(m)return m(s);return Object(a.b)(s,t,(t=>{let n=Object(r.c)(p,d,t);return t===n&&"string"==typeof t&&(n=Object(r.c)(p,d,`${e}${"default"===t?"":Object(i.a)(t)}`,t)),!1===l?n:{[l]:n}}))}return function t(n){var i;const{sx:r,theme:c={}}=n||{};if(!r)return null;const l=null!=(i=c.unstable_sxConfig)?i:s.a;function u(n){let i=n;if("function"==typeof n)i=n(c);else if("object"!=typeof n)return n;if(!i)return null;const r=Object(a.a)(c.breakpoints),s=Object.keys(r);let u=r;return Object.keys(i).forEach((n=>{const r=(s=i[n],d=c,"function"==typeof s?s(d):s);var s,d;if(null!=r)if("object"==typeof r)if(l[n])u=Object(o.a)(u,e(n,r,c,l));else{const e=Object(a.b)({theme:c},r,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,r)?u=Object(o.a)(u,e):u[n]=t({sx:r,theme:c})}else u=Object(o.a)(u,e(n,r,c,l))})),Object(a.c)(s,u)}return Array.isArray(r)?r.map(u):u(r)}}();c.filterProps=["sx"],t.a=c},function(e,t){e.exports=function(e,t,n,i){var o=n?n.call(i,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<r.length;c++){var l=r[c];if(!s(l))return!1;var u=e[l],d=t[l];if(!1===(o=n?n.call(i,u,d,l):void 0)||void 0===o&&u!==d)return!1}return!0}},function(e,t,n){"use strict";t.a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(155);function o(e){const{theme:t,name:n,props:o}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Object(i.a)(t.components[n].defaultProps,o):o}},function(e,t,n){"use strict";var i=n(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(27)),r=n(6);t.default=(0,o.default)((0,r.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight")},function(e,t,n){"use strict";var i=n(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(27)),r=n(6);t.default=(0,o.default)((0,r.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove")},function(e,t,n){"use strict";var i=n(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(27)),r=n(6);t.default=(0,o.default)((0,r.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add")},function(e,t,n){"use strict";var i=n(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(27)),r=n(6);t.default=(0,o.default)((0,r.jsx)("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"HighlightOff")},function(e,t,n){"use strict";var i=n(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(27)),r=n(6);t.default=(0,o.default)((0,r.jsx)("path",{d:"M5 13h14v-2H5zm-2 4h14v-2H3zM7 7v2h14V7z"}),"ClearAll")},function(e,t,n){"use strict";var i=n(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(27)),r=n(6);t.default=(0,o.default)((0,r.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDownOutlined")},function(e,t,n){"use strict";var i=n(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(27)),r=n(6);t.default=(0,o.default)((0,r.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUpOutlined")},function(e,t,n){"use strict";var i=n(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(27)),r=n(6);t.default=(0,o.default)((0,r.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check")},function(e,t,n){"use strict";var i=n(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(27)),r=n(6);t.default=(0,o.default)((0,r.jsx)("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"}),"HelpOutline")},function(e,t,n){"use strict";var i=n(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(27)),r=n(6);t.default=(0,o.default)([(0,r.jsx)("path",{d:"M18 2H6v6l2 3v11h8V11l2-3zm-2 2v1H8V4zm-2 6.4V20h-4v-9.61l-2-3V7h8v.39z"},"0"),(0,r.jsx)("circle",{cx:"12",cy:"14",r:"1.5"},"1")],"FlashlightOnOutlined")},function(e,t,n){"use strict";var i=n(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(27)),r=n(6);t.default=(0,o.default)((0,r.jsx)("path",{d:"M2.81 2.81 1.39 4.22 8 10.83V22h8v-3.17l3.78 3.78 1.41-1.41zM14 20h-4v-7.17l4 4zm2-16v1H7.83l2 2H16v.39l-2 3.01v.77l2 2V11l2-3V2H6v1.17l.83.83z"}),"FlashlightOffOutlined")},function(e,t,n){"use strict";var i=n(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(27)),r=n(6);t.default=(0,o.default)((0,r.jsx)("path",{d:"M18 20H4V6h9V4H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-9h-2zm-7.79-3.17-1.96-2.36L5.5 18h11l-3.54-4.71zM20 4V1h-2v3h-3c.01.01 0 2 0 2h3v2.99c.01.01 2 0 2 0V6h3V4z"}),"AddPhotoAlternateOutlined")},function(e,t,n){"use strict";var i=n(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(27)),r=n(6);t.default=(0,o.default)((0,r.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert")},function(e,t,n){"use strict";var i=n(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(27)),r=n(6);t.default=(0,o.default)((0,r.jsx)("path",{d:"M14.12 10.47 12 12.59l-2.13-2.12-1.41 1.41L10.59 14l-2.12 2.12 1.41 1.41L12 15.41l2.12 2.12 1.41-1.41L13.41 14l2.12-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4zM6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8z"}),"DeleteForeverOutlined")},function(e,t,n){"use strict";var i=n(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(27)),r=n(6);t.default=(0,o.default)((0,r.jsx)("path",{d:"M17 15h2V7c0-1.1-.9-2-2-2H9v2h8zM7 17V1H5v4H1v2h4v10c0 1.1.9 2 2 2h10v4h2v-4h4v-2z"}),"Crop")},function(e,t,n){"use strict";var i=n(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(27)),r=n(6);t.default=(0,o.default)((0,r.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14m.5-7H9v2H7v1h2v2h1v-2h2V9h-2z"}),"ZoomInOutlined")},function(e,t,n){"use strict";var i=n(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(27)),r=n(6);t.default=(0,o.default)((0,r.jsx)("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIos")},function(e,t,n){"use strict";var i=n(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(27)),r=n(6);t.default=(0,o.default)((0,r.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel")},function(e,t,n){"use strict";var i=n(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(27)),r=n(6);t.default=(0,o.default)((0,r.jsx)("path",{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm0 6-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25zm-7.5-5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zm-1.51 3.49L9 15.17l-.99-2.18L5.83 12l2.18-.99L9 8.83l.99 2.18 2.18.99z"}),"AutoAwesomeOutlined")},function(e,t,n){"use strict";var i=n(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(27)),r=n(6);t.default=(0,o.default)((0,r.jsx)("path",{d:"M3 5h2V3c-1.1 0-2 .9-2 2m0 8h2v-2H3zm4 8h2v-2H7zM3 9h2V7H3zm10-6h-2v2h2zm6 0v2h2c0-1.1-.9-2-2-2M5 21v-2H3c0 1.1.9 2 2 2m-2-4h2v-2H3zM9 3H7v2h2zm2 18h2v-2h-2zm8-8h2v-2h-2zm0 8c1.1 0 2-.9 2-2h-2zm0-12h2V7h-2zm0 8h2v-2h-2zm-4 4h2v-2h-2zm0-16h2V3h-2zM7 17h10V7H7zm2-8h6v6H9z"}),"SelectAll")},function(e,t,n){"use strict";var i=n(3),o=n(9),r=n(151),a=n(136),s=n(160),c=n(67),l=n(109);var u=n(193);var d={black:"#000",white:"#fff"},m=n(108);var p={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var h={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var f={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var v={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var b={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const y=["mode","contrastThreshold","tonalOffset"],C={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},A={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function S(e,t,n,i){const o=i.light||i,r=i.dark||1.5*i;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Object(u.d)(e.main,o):"dark"===t&&(e.dark=Object(u.b)(e.main,r)))}function w(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:s=.2}=e,c=Object(o.a)(e,y),l=e.primary||function(e="light"){return"dark"===e?{main:g[200],light:g[50],dark:g[400]}:{main:g[700],light:g[400],dark:g[800]}}(t),w=e.secondary||function(e="light"){return"dark"===e?{main:p[200],light:p[50],dark:p[400]}:{main:p[500],light:p[300],dark:p[700]}}(t),x=e.error||function(e="light"){return"dark"===e?{main:h[500],light:h[300],dark:h[700]}:{main:h[700],light:h[400],dark:h[800]}}(t),E=e.info||function(e="light"){return"dark"===e?{main:v[400],light:v[300],dark:v[700]}:{main:v[700],light:v[500],dark:v[900]}}(t),O=e.success||function(e="light"){return"dark"===e?{main:b[400],light:b[300],dark:b[700]}:{main:b[800],light:b[500],dark:b[900]}}(t),D=e.warning||function(e="light"){return"dark"===e?{main:f[400],light:f[300],dark:f[700]}:{main:"#ed6c02",light:f[500],dark:f[900]}}(t);function T(e){return Object(u.c)(e,A.text.primary)>=n?A.text.primary:C.text.primary}const B=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:a=700})=>{if(!(e=Object(i.a)({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Object(r.a)(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Object(r.a)(12,t?` (${t})`:"",JSON.stringify(e.main)));return S(e,"light",o,s),S(e,"dark",a,s),e.contrastText||(e.contrastText=T(e.main)),e},k={dark:A,light:C};return Object(a.a)(Object(i.a)({common:Object(i.a)({},d),mode:t,primary:B({color:l,name:"primary"}),secondary:B({color:w,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:B({color:x,name:"error"}),warning:B({color:D,name:"warning"}),info:B({color:E,name:"info"}),success:B({color:O,name:"success"}),grey:m.a,contrastThreshold:n,getContrastText:T,augmentColor:B,tonalOffset:s},k[t]),c)}const x=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const E={textTransform:"uppercase"},O='"Roboto", "Helvetica", "Arial", sans-serif';function D(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=O,fontSize:s=14,fontWeightLight:c=300,fontWeightRegular:l=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:m=16,allVariants:p,pxToRem:h}=n,f=Object(o.a)(n,x);const g=s/14,v=h||(e=>e/m*g+"rem"),b=(e,t,n,o,a)=>{return Object(i.a)({fontFamily:r,fontWeight:e,fontSize:v(t),lineHeight:n},r===O?{letterSpacing:(s=o/t,Math.round(1e5*s)/1e5)+"em"}:{},a,p);var s},y={h1:b(c,96,1.167,-1.5),h2:b(c,60,1.2,-.5),h3:b(l,48,1.167,0),h4:b(l,34,1.235,.25),h5:b(l,24,1.334,0),h6:b(u,20,1.6,.15),subtitle1:b(l,16,1.75,.15),subtitle2:b(u,14,1.57,.1),body1:b(l,16,1.5,.15),body2:b(l,14,1.43,.15),button:b(u,14,1.75,.4,E),caption:b(l,12,1.66,.4),overline:b(l,12,2.66,1,E),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Object(a.a)(Object(i.a)({htmlFontSize:m,pxToRem:v,fontFamily:r,fontSize:s,fontWeightLight:c,fontWeightRegular:l,fontWeightMedium:u,fontWeightBold:d},y),f,{clone:!1})}function T(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var B=["none",T(0,2,1,-1,0,1,1,0,0,1,3,0),T(0,3,1,-2,0,2,2,0,0,1,5,0),T(0,3,3,-2,0,3,4,0,0,1,8,0),T(0,2,4,-1,0,4,5,0,0,1,10,0),T(0,3,5,-1,0,5,8,0,0,1,14,0),T(0,3,5,-1,0,6,10,0,0,1,18,0),T(0,4,5,-2,0,7,10,1,0,2,16,1),T(0,5,5,-3,0,8,10,1,0,3,14,2),T(0,5,6,-3,0,9,12,1,0,3,16,2),T(0,6,6,-3,0,10,14,1,0,4,18,3),T(0,6,7,-4,0,11,15,1,0,4,20,3),T(0,7,8,-4,0,12,17,2,0,5,22,4),T(0,7,8,-4,0,13,19,2,0,5,24,4),T(0,7,9,-4,0,14,21,2,0,5,26,4),T(0,8,9,-5,0,15,22,2,0,6,28,5),T(0,8,10,-5,0,16,24,2,0,6,30,5),T(0,8,11,-5,0,17,26,2,0,6,32,5),T(0,9,11,-5,0,18,28,2,0,7,34,6),T(0,9,12,-6,0,19,29,2,0,7,36,6),T(0,10,13,-6,0,20,31,3,0,8,38,7),T(0,10,13,-6,0,21,33,3,0,8,40,7),T(0,10,14,-6,0,22,35,3,0,8,42,7),T(0,11,14,-7,0,23,36,3,0,9,44,8),T(0,11,15,-7,0,24,38,3,0,9,46,8)];const k=["duration","easing","delay"],I={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},P={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function L(e){return`${Math.round(e)}ms`}function R(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function _(e){const t=Object(i.a)({},I,e.easing),n=Object(i.a)({},P,e.duration);return Object(i.a)({getAutoHeightDuration:R,create:(e=["all"],i={})=>{const{duration:r=n.standard,easing:a=t.easeInOut,delay:s=0}=i;Object(o.a)(i,k);return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof r?r:L(r)} ${a} ${"string"==typeof s?s:L(s)}`)).join(",")}},e,{easing:t,duration:n})}var j={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const M=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function F(e={},...t){const{mixins:n={},palette:u={},transitions:d={},typography:m={}}=e,p=Object(o.a)(e,M);if(e.vars)throw new Error(Object(r.a)(18));const h=w(u),f=Object(s.a)(e);let g=Object(a.a)(f,{mixins:(v=f.breakpoints,b=n,Object(i.a)({toolbar:{minHeight:56,[v.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[v.up("sm")]:{minHeight:64}}},b)),palette:h,shadows:B.slice(),typography:D(h,m),transitions:_(d),zIndex:Object(i.a)({},j)});var v,b;return g=Object(a.a)(g,p),g=t.reduce(((e,t)=>Object(a.a)(e,t)),g),g.unstable_sxConfig=Object(i.a)({},c.a,null==p?void 0:p.unstable_sxConfig),g.unstable_sx=function(e){return Object(l.a)({sx:e,theme:this})},g}t.a=F},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var i=n(0);const o={};const r=[];class a{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new a}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}function s(){const e=function(e,t){const n=i.useRef(o);return n.current===o&&(n.current=e(t)),n}(a.create).current;var t;return t=e.disposeEffect,i.useEffect(t,r),e}},function(e,t,n){"use strict";function i(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,"a",(function(){return r}));var o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,r=i((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var i=n(3);function o(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function r(e){if(!o(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=r(e[n])})),t}function a(e,t,n={clone:!0}){const s=n.clone?Object(i.a)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((i=>{"__proto__"!==i&&(o(t[i])&&i in e&&o(e[i])?s[i]=a(e[i],t[i],n):n.clone?s[i]=o(t[i])?r(t[i]):t[i]:s[i]=t[i])})),s}},function(e,t,n){"use strict";var i=n(0);const o="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;t.a=o},function(e,t,n){"use strict";function i(e){return e&&e.ownerDocument||document}n.d(t,"a",(function(){return i}))},,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"ScanbotSDK",(function(){return i}));const i=n(89).a},function(e,t,n){"use strict";n.r(t),n.d(t,"jsx",(function(){return l})),n.d(t,"jsxAttr",(function(){return p})),n.d(t,"jsxDEV",(function(){return l})),n.d(t,"jsxEscape",(function(){return h})),n.d(t,"jsxTemplate",(function(){return u})),n.d(t,"jsxs",(function(){return l}));var i=n(14);n.d(t,"Fragment",(function(){return i.b}));var o=/["&<]/;function r(e){if(0===e.length||!1===o.test(e))return e;for(var t=0,n=0,i="",r="";n<e.length;n++){switch(e.charCodeAt(n)){case 34:r="&quot;";break;case 38:r="&amp;";break;case 60:r="&lt;";break;default:continue}n!==t&&(i+=e.slice(t,n)),i+=r,t=n+1}return n!==t&&(i+=e.slice(t,n)),i}var a=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,s=0,c=Array.isArray;function l(e,t,n,o,r,a){var c,l,u={};for(l in t)"ref"==l?c=t[l]:u[l]=t[l];var d={type:e,props:u,key:n,ref:c,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--s,__i:-1,__u:0,__source:r,__self:a};if("function"==typeof e&&(c=e.defaultProps))for(l in c)void 0===u[l]&&(u[l]=c[l]);return i.h.vnode&&i.h.vnode(d),d}function u(e){var t=l(i.b,{tpl:e,exprs:[].slice.call(arguments,1)});return t.key=t.__v,t}var d={},m=/[A-Z]/g;function p(e,t){if(i.h.attr){var n=i.h.attr(e,t);if("string"==typeof n)return n}if("ref"===e||"key"===e)return"";if("style"===e&&"object"==typeof t){var o="";for(var s in t){var c=t[s];if(null!=c&&""!==c){var l="-"==s[0]?s:d[s]||(d[s]=s.replace(m,"-$&").toLowerCase()),u=";";"number"!=typeof c||l.startsWith("--")||a.test(l)||(u="px;"),o=o+l+":"+c+u}}return e+'="'+o+'"'}return null==t||!1===t||"function"==typeof t||"object"==typeof t?"":!0===t?e:e+'="'+r(t)+'"'}function h(e){if(null==e||"boolean"==typeof e||"function"==typeof e)return null;if("object"==typeof e){if(void 0===e.constructor)return e;if(c(e)){for(var t=0;t<e.length;t++)e[t]=h(e[t]);return e}}return r(""+e)}},function(e,t,n){"use strict";var i,o=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.server_context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case a:case c:case s:case p:case h:return e;default:switch(e=e&&e.$$typeof){case d:case u:case m:case g:case f:case l:return e;default:return t}}case r:return t}}}i=Symbol.for("react.module.reference"),t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=m,t.Fragment=a,t.Lazy=g,t.Memo=f,t.Portal=r,t.Profiler=c,t.StrictMode=s,t.Suspense=p,t.SuspenseList=h,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return b(e)===u},t.isContextProvider=function(e){return b(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return b(e)===m},t.isFragment=function(e){return b(e)===a},t.isLazy=function(e){return b(e)===g},t.isMemo=function(e){return b(e)===f},t.isPortal=function(e){return b(e)===r},t.isProfiler=function(e){return b(e)===c},t.isStrictMode=function(e){return b(e)===s},t.isSuspense=function(e){return b(e)===p},t.isSuspenseList=function(e){return b(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===c||e===s||e===p||e===h||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===f||e.$$typeof===l||e.$$typeof===u||e.$$typeof===m||e.$$typeof===i||void 0!==e.getModuleId)},t.typeOf=b},function(e,t,n){"use strict";n.r(t),t.default="data:application/javascript;charset=utf-8;base64,InVzZSBzdHJpY3QiOwoKY29uc3QgREJfTkFNRSA9ICJTQlNES0Jhc2UiOwoKY29uc3QgU1RPUkVTID0gewogICAgQ1JPUFBFRF9ERVRFQ1RJT05fUkVTVUxUUzogImNyb3BwZWREZXRlY3Rpb25SZXN1bHRzIiwKICAgIFNCX0RPQ1VNRU5UUzogIlNCRG9jdW1lbnRzIiwKICAgIElNQUdFUzogImltYWdlcyIKfTsKCmZ1bmN0aW9uIHBvc3RSZXN1bHRPblN1Y2Nlc3ModG9rZW4gLyo6IHN0cmluZyovLCByZXF1ZXN0IC8qOiBJREJSZXF1ZXN0Ki8pIHsKICAgIHJlcXVlc3Qub25zdWNjZXNzID0gZXZlbnQgPT4gewogICAgICAgIHNlbGYucG9zdE1lc3NhZ2UoeyB0b2tlbjogdG9rZW4sIGRhdGE6IGV2ZW50LnRhcmdldC5yZXN1bHQgfSk7CiAgICB9Owp9CgpmdW5jdGlvbiBvcGVuREIoKSAvKjogUHJvbWlzZTxJREJEYXRhYmFzZT4qL3sKICAgIHJldHVybiBuZXcgUHJvbWlzZSgocmVzb2x2ZSwgcmVqZWN0KSA9PiB7CgogICAgICAgIC8qKiBOQiEgVXBkYXRlIHZlcnNpb24gd2hlbiBEQiBtb2RlbCBjaGFuZ2VzICovCiAgICAgICAgY29uc3QgREJfVkVSU0lPTiA9IDU7CiAgICAgICAgY29uc3QgcmVxdWVzdCA9IGluZGV4ZWREQi5vcGVuKERCX05BTUUsIERCX1ZFUlNJT04pOwoKICAgICAgICByZXF1ZXN0Lm9uc3VjY2VzcyA9IGV2ZW50ID0+IHsKICAgICAgICAgICAgcmVzb2x2ZShldmVudC50YXJnZXRbInJlc3VsdCJdKTsKICAgICAgICB9OwogICAgICAgIHJlcXVlc3Qub25lcnJvciA9IGV2ZW50ID0+IHsKICAgICAgICAgICAgY29uc3QgY29kZSA9IGV2ZW50LnRhcmdldCA/IGV2ZW50LnRhcmdldFsiZXJyb3JDb2RlIl0gOiAiVW5rbm93biBlcnJvciBjb2RlIjsKICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCJFcnJvciBvcGVuaW5nIGRhdGFiYXNlOiAiICsgY29kZSk7CiAgICAgICAgfTsKICAgICAgICByZXF1ZXN0Lm9udXBncmFkZW5lZWRlZCA9IGV2ZW50ID0+IHsKICAgICAgICAgICAgLy8gVE9ETzogJ29udXBncmFkZW5lZWRlZCcgaXMgb25seSBjYWxsZWQgd2hlbiBGSVJTVCBvcGVuaW5nIHRoZSBkYXRhYmFzZQogICAgICAgICAgICAvLyAgQU5EIHdoZW4gdGhlIHZlcnNpb24gbnVtYmVyIGlzIGluY3JlYXNlZC4gV2hhdCBlbHNlIG5lZWRzIHRvIGJlIGRvbmUgaGVyZT8KICAgICAgICAgICAgY29uc3QgZGIgPSBldmVudC50YXJnZXQgLyogYXMgSURCT3BlbkRCUmVxdWVzdCovLnJlc3VsdDsKCiAgICAgICAgICAgIGZvciAoY29uc3Qga2V5IGluIFNUT1JFUykgewogICAgICAgICAgICAgICAgY29uc3QgbmFtZSA9IFNUT1JFU1trZXldOwogICAgICAgICAgICAgICAgLy8gVE9ETyBjYW4ndCBqdXN0IGRlbGV0ZSBpbiBwcm9kdWN0aW9uLCBuZWVkIHRvIG1pZ3JhdGUgZGF0YQogICAgICAgICAgICAgICAgdHJ5IHsKICAgICAgICAgICAgICAgICAgICBkYi5kZWxldGVPYmplY3RTdG9yZShuYW1lKTsKICAgICAgICAgICAgICAgIH0gY2F0Y2ggKGVycm9yKSB7CiAgICAgICAgICAgICAgICAgICAgLy8gQ2FuJ3QgZGVsZXRlIG9iamVjdCBzdG9yZSB0aGF0IGRvZXNuJ3QgZXhpc3QKICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZygiRXJyb3IgZGVsZXRpbmcgb2JqZWN0IHN0b3JlOiAiLCBuYW1lKTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICBkYi5jcmVhdGVPYmplY3RTdG9yZShuYW1lLCB7IGtleVBhdGg6ICJpZCIsIGF1dG9JbmNyZW1lbnQ6IHRydWUgfSk7CiAgICAgICAgICAgIH0KICAgICAgICB9OwogICAgfSk7Cn0KCmFzeW5jIGZ1bmN0aW9uIGdldFRyYW5zYWN0aW9uKHN0b3JlTmFtZXMgLyo6IHN0cmluZ1tdKi8pIC8qOiBQcm9taXNlPElEQlRyYW5zYWN0aW9uPiovewogICAgY29uc3QgZGIgPSBhd2FpdCBvcGVuREIoKTsKICAgIC8vIFRPRE8gaXMgaXQgZXZlciBhY3R1YWxseSBuZWNlc3NhcnkgdG8gd2FpdCBmb3IgYSB0cmFuc2FjdGlvbidzICdvbmNvbXBsZXRlJyBldmVudD8KICAgIHJldHVybiBkYi50cmFuc2FjdGlvbihzdG9yZU5hbWVzLCAicmVhZHdyaXRlIik7Cn0KCmFzeW5jIGZ1bmN0aW9uIGdldFN0b3JlKG5hbWUgLyo6IHN0cmluZyovKSAvKjogUHJvbWlzZTxJREJPYmplY3RTdG9yZT4qL3sKICAgIGNvbnN0IHRyYW5zYWN0aW9uID0gYXdhaXQgZ2V0VHJhbnNhY3Rpb24oW25hbWVdKTsKICAgIHJldHVybiB0cmFuc2FjdGlvbi5vYmplY3RTdG9yZShuYW1lKTsKfQoKYXN5bmMgZnVuY3Rpb24gZ2V0Q3JvcHBlZERldGVjdGlvblJlc3VsdFN0b3JlKCkgLyo6IFByb21pc2U8SURCT2JqZWN0U3RvcmU+Ki97CiAgICByZXR1cm4gZ2V0U3RvcmUoImNyb3BwZWREZXRlY3Rpb25SZXN1bHRzIik7Cn0KCmFzeW5jIGZ1bmN0aW9uIGdldEltYWdlc1N0b3JlKCkgLyo6IFByb21pc2U8SURCT2JqZWN0U3RvcmU+Ki97CiAgICByZXR1cm4gZ2V0U3RvcmUoImltYWdlcyIpOwp9Cgphc3luYyBmdW5jdGlvbiBjbGVhcigpIHsKICAgIGZvciAoY29uc3Qga2V5IGluIFNUT1JFUykgewogICAgICAgIGNvbnN0IG5hbWUgPSBTVE9SRVNba2V5XTsKICAgICAgICBjb25zdCBzdG9yZSA9IGF3YWl0IGdldFN0b3JlKG5hbWUpOwogICAgICAgIHN0b3JlLmNsZWFyKCk7CiAgICB9Cn0KCmFzeW5jIGZ1bmN0aW9uIGRlbGV0ZURCKCkgewogICAgcmV0dXJuIG5ldyBQcm9taXNlKChyZXNvbHZlLCByZWplY3QpID0+IHsKICAgICAgICBjb25zdCByZXF1ZXN0ID0gaW5kZXhlZERCLmRlbGV0ZURhdGFiYXNlKERCX05BTUUpOwogICAgICAgIHJlcXVlc3Qub25zdWNjZXNzID0gZXZlbnQgPT4gewogICAgICAgICAgICByZXNvbHZlKGV2ZW50KTsKICAgICAgICB9OwogICAgICAgIHJlcXVlc3Qub25lcnJvciA9IGV2ZW50ID0+IHsKICAgICAgICAgICAgcmVqZWN0KGV2ZW50KTsKICAgICAgICB9OwogICAgfSk7Cn0KCmZ1bmN0aW9uIHRocm93RXhjZXB0aW9uKHRva2VuLCBxdWVyeSwgbWVzc2FnZSkgewogICAgdGhyb3cgbmV3IEVycm9yKCJTQkluZGV4ZWREQiB3b3JrZXIgZXJyb3I6ICIgKyBKU09OLnN0cmluZ2lmeSh7CiAgICAgICAgInRva2VuIjogdG9rZW4sCiAgICAgICAgInF1ZXJ5IjogcXVlcnksCiAgICAgICAgIm1lc3NhZ2UiOiBtZXNzYWdlCiAgICB9KSk7Cn0KCnNlbGYub25tZXNzYWdlID0gYXN5bmMgKGV2ZW50IC8qOiBNZXNzYWdlRXZlbnQqLykgPT4gewoKICAgIGNvbnN0IHRva2VuID0gZXZlbnQuZGF0YS50b2tlbjsKICAgIGNvbnN0IHF1ZXJ5ID0gZXZlbnQuZGF0YS5xdWVyeTsKCiAgICB0cnkgewogICAgICAgIGlmIChxdWVyeS50eXBlID09PSAnY2xlYXInKSB7CiAgICAgICAgICAgIGF3YWl0IGNsZWFyKCk7CiAgICAgICAgICAgIHNlbGYucG9zdE1lc3NhZ2UoeyB0b2tlbjogdG9rZW4sIGRhdGE6IHRydWUgfSk7CiAgICAgICAgfSBlbHNlIGlmIChxdWVyeS50eXBlID09PSAnZGVsZXRlJykgewogICAgICAgICAgICBhd2FpdCBkZWxldGVEQigpOwogICAgICAgICAgICBzZWxmLnBvc3RNZXNzYWdlKHsgdG9rZW46IHRva2VuLCBkYXRhOiB0cnVlIH0pOwogICAgICAgIH0gZWxzZSBpZiAocXVlcnkudHlwZSA9PT0gJ3N0b3JlQ3JvcHBlZERldGVjdGlvblJlc3VsdCcpIHsKICAgICAgICAgICAgY29uc3Qgc3RvcmUgPSBhd2FpdCBnZXRDcm9wcGVkRGV0ZWN0aW9uUmVzdWx0U3RvcmUoKTsKICAgICAgICAgICAgY29uc3QgcmVxdWVzdCA9IHN0b3JlLmFkZChxdWVyeS5kYXRhKTsKICAgICAgICAgICAgcG9zdFJlc3VsdE9uU3VjY2Vzcyh0b2tlbiwgcmVxdWVzdCk7CiAgICAgICAgfSBlbHNlIGlmIChxdWVyeS50eXBlID09PSAnZ2V0Q3JvcHBlZERldGVjdGlvblJlc3VsdHMnKSB7CiAgICAgICAgICAgIGNvbnN0IHN0b3JlID0gYXdhaXQgZ2V0Q3JvcHBlZERldGVjdGlvblJlc3VsdFN0b3JlKCk7CiAgICAgICAgICAgIGNvbnN0IHJlcXVlc3QgPSBzdG9yZS5nZXRBbGwoKTsKICAgICAgICAgICAgcG9zdFJlc3VsdE9uU3VjY2Vzcyh0b2tlbiwgcmVxdWVzdCk7CiAgICAgICAgfSBlbHNlIGlmIChxdWVyeS50eXBlID09PSAnZ2V0Q3JvcHBlZERldGVjdGlvblJlc3VsdCcpIHsKICAgICAgICAgICAgY29uc3Qgc3RvcmUgPSBhd2FpdCBnZXRDcm9wcGVkRGV0ZWN0aW9uUmVzdWx0U3RvcmUoKTsKICAgICAgICAgICAgY29uc3QgcmVxdWVzdCA9IHN0b3JlLmdldChxdWVyeS5kYXRhKTsKICAgICAgICAgICAgcG9zdFJlc3VsdE9uU3VjY2Vzcyh0b2tlbiwgcmVxdWVzdCk7CiAgICAgICAgfSBlbHNlIGlmIChxdWVyeS50eXBlID09PSAnc3RvcmVJbWFnZXMnKSB7CiAgICAgICAgICAgIGNvbnN0IGltYWdlcyA9IHF1ZXJ5LmRhdGE7CiAgICAgICAgICAgIGNvbnN0IHN0b3JlID0gYXdhaXQgZ2V0SW1hZ2VzU3RvcmUoKTsKICAgICAgICAgICAgZm9yIChjb25zdCBpbWFnZSBvZiBpbWFnZXMpIHsKICAgICAgICAgICAgICAgIHN0b3JlLmFkZChpbWFnZSk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgc2VsZi5wb3N0TWVzc2FnZSh7IHRva2VuOiB0b2tlbiwgZGF0YTogdHJ1ZSB9KTsKICAgICAgICB9IGVsc2UgaWYgKHF1ZXJ5LnR5cGUgPT09ICdnZXRJbWFnZXMnKSB7CiAgICAgICAgICAgIGNvbnN0IHN0b3JlID0gYXdhaXQgZ2V0SW1hZ2VzU3RvcmUoKTsKICAgICAgICAgICAgY29uc3QgZG9jdW1lbnRJZHMgPSBxdWVyeS5kYXRhOwogICAgICAgICAgICAvLyBUT0RPIGdldCBmcm9tIHN0b3JlIGJ5IGZvcmVpZ24ga2V5PwogICAgICAgICAgICBzdG9yZS5nZXRBbGwoKS5vbnN1Y2Nlc3MgPSBldmVudCA9PiB7CiAgICAgICAgICAgICAgICBjb25zdCBpbWFnZXMgPSBldmVudC50YXJnZXQucmVzdWx0OwogICAgICAgICAgICAgICAgY29uc3QgZmlsdGVyZWRJbWFnZXMgPSBpbWFnZXMuZmlsdGVyKGltYWdlID0+IGRvY3VtZW50SWRzLmluY2x1ZGVzKGltYWdlLmRvY3VtZW50SWQpKTsKICAgICAgICAgICAgICAgIHNlbGYucG9zdE1lc3NhZ2UoeyB0b2tlbjogdG9rZW4sIGRhdGE6IGZpbHRlcmVkSW1hZ2VzIH0pOwogICAgICAgICAgICB9OwogICAgICAgIH0gZWxzZSBpZiAocXVlcnkudHlwZSA9PT0gImdldFNCRG9jdW1lbnRJZHMiKSB7CiAgICAgICAgICAgIGNvbnN0IHN0b3JlID0gYXdhaXQgZ2V0U3RvcmUoU1RPUkVTLlNCX0RPQ1VNRU5UUyk7CiAgICAgICAgICAgIGNvbnN0IHJlcXVlc3QgPSBzdG9yZS5nZXRBbGxLZXlzKCk7CiAgICAgICAgICAgIHBvc3RSZXN1bHRPblN1Y2Nlc3ModG9rZW4sIHJlcXVlc3QpOwogICAgICAgIH0gZWxzZSBpZiAocXVlcnkudHlwZSA9PT0gImluc2VydFNCRG9jdW1lbnQiKSB7CiAgICAgICAgICAgIGNvbnN0IHN0b3JlID0gYXdhaXQgZ2V0U3RvcmUoU1RPUkVTLlNCX0RPQ1VNRU5UUyk7CiAgICAgICAgICAgIGNvbnN0IHJlcXVlc3QgPSBzdG9yZS5wdXQocXVlcnkuZGF0YSk7CiAgICAgICAgICAgIHBvc3RSZXN1bHRPblN1Y2Nlc3ModG9rZW4sIHJlcXVlc3QpOwogICAgICAgIH0gZWxzZSBpZiAocXVlcnkudHlwZSA9PT0gImRlbGV0ZVNCRG9jdW1lbnQiKSB7CiAgICAgICAgICAgIGNvbnN0IHN0b3JlID0gYXdhaXQgZ2V0U3RvcmUoU1RPUkVTLlNCX0RPQ1VNRU5UUyk7CiAgICAgICAgICAgIGF3YWl0IHN0b3JlLmRlbGV0ZShxdWVyeS5kYXRhKTsKICAgICAgICAgICAgc2VsZi5wb3N0TWVzc2FnZSh7IHRva2VuOiB0b2tlbiwgZGF0YTogdHJ1ZSB9KTsKICAgICAgICB9IGVsc2UgaWYgKHF1ZXJ5LnR5cGUgPT09ICJnZXRTQkRvY3VtZW50IikgewogICAgICAgICAgICBjb25zdCBzdG9yZSA9IGF3YWl0IGdldFN0b3JlKFNUT1JFUy5TQl9ET0NVTUVOVFMpOwogICAgICAgICAgICBjb25zdCByZXF1ZXN0ID0gc3RvcmUuZ2V0KHF1ZXJ5LmRhdGEpOwogICAgICAgICAgICBwb3N0UmVzdWx0T25TdWNjZXNzKHRva2VuLCByZXF1ZXN0KTsKICAgICAgICB9IGVsc2UgaWYgKHF1ZXJ5LnR5cGUgPT09ICJpbnNlcnRTQlBhZ2VJbWFnZSIpIHsKICAgICAgICAgICAgY29uc3Qgc3RvcmUgPSBhd2FpdCBnZXRTdG9yZShTVE9SRVMuSU1BR0VTKTsKICAgICAgICAgICAgY29uc3QgcmVxdWVzdCA9IHN0b3JlLnB1dChxdWVyeS5kYXRhKTsKICAgICAgICAgICAgcG9zdFJlc3VsdE9uU3VjY2Vzcyh0b2tlbiwgcmVxdWVzdCk7CiAgICAgICAgfSBlbHNlIGlmIChxdWVyeS50eXBlID09PSAiZ2V0U0JQYWdlSW1hZ2UiKSB7CiAgICAgICAgICAgIGNvbnN0IHN0b3JlID0gYXdhaXQgZ2V0U3RvcmUoU1RPUkVTLklNQUdFUyk7CiAgICAgICAgICAgIGNvbnN0IHJlcXVlc3QgPSBzdG9yZS5nZXQocXVlcnkuZGF0YSk7CiAgICAgICAgICAgIHBvc3RSZXN1bHRPblN1Y2Nlc3ModG9rZW4sIHJlcXVlc3QpOwogICAgICAgIH0gZWxzZSBpZiAocXVlcnkudHlwZSA9PT0gImRlbGV0ZVNCUGFnZUltYWdlcyIpIHsKICAgICAgICAgICAgY29uc3Qgc3RvcmUgPSBhd2FpdCBnZXRTdG9yZShTVE9SRVMuSU1BR0VTKTsKICAgICAgICAgICAgY29uc3QgaWRzID0gcXVlcnkuZGF0YTsKICAgICAgICAgICAgZm9yIChjb25zdCBpZCBvZiBpZHMpIHsKICAgICAgICAgICAgICAgIGF3YWl0IHN0b3JlLmRlbGV0ZShpZCk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgc2VsZi5wb3N0TWVzc2FnZSh7IHRva2VuOiB0b2tlbiwgZGF0YTogdHJ1ZSB9KTsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgICB0aHJvd0V4Y2VwdGlvbih0b2tlbiwgcXVlcnksICJVbmtub3duIHF1ZXJ5IHR5cGUiKTsKICAgICAgICB9CiAgICB9IGNhdGNoIChlcnJvcikgewogICAgICAgIGNvbnNvbGUubG9nKCJFcnJvciBpbiBTQkluZGV4ZWREQiB3b3JrZXI6ICIsIGVycm9yKTsKICAgICAgICB0aHJvd0V4Y2VwdGlvbih0b2tlbiwgcXVlcnksIGVycm9yLm1lc3NhZ2UgfHwgZXJyb3IpOwogICAgfQp9Ow=="},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return d}));var i=n(0),o=n(29),r=n(34),a=n(45);class s extends a.a{constructor(){super(r.a.DEFAULT_VIDEO_RESOLUTION_HD),this.finder.aspectRatio={width:2,height:1},this.userGuidance.title.visible=!1}static fromJson(e){const t=new s;return this.mapValues(e,t,["videoConstraints","finder","userGuidance"]),this.mapFinderConfiguration(t,e),this.mapVideoConstraints(e,t),t}}var c=n(50),l=n(49),u=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};o.a;class d extends o.c{constructor(e){super(e),this.enabled=!0,this.configuration=e.configuration}static create(e,t){var n;return u(this,void 0,void 0,(function*(){const o=null!==(n=t.container)&&void 0!==n?n:document.getElementById(t.containerId);if(t=s.fromJson(t),!o)throw Error("Unable to initialize ScanbotSDK: Cannot find container element with the id provided.");return new Promise(((n,r)=>{Object(i.render)(i.default.createElement(d,{container:o,configuration:t,onSuccess:n,onFailure:r,sdk:e}),o)}))}))}componentDidMount(){var e,t;super.componentDidMount();try{this.documentDataExtractor=this.props.sdk.createDocumentDataExtractor(this.configuration.detectorParameters)}catch(n){null===(t=(e=this.configuration).onError)||void 0===t||t.call(e,n)}this.detect()}componentWillUnmount(){const e=Object.create(null,{componentWillUnmount:{get:()=>super.componentWillUnmount}});return u(this,void 0,void 0,(function*(){e.componentWillUnmount.call(this),this.enabled=!1,yield(yield this.documentDataExtractor).release()}))}detect(){var e,t,n,i,r,a;return u(this,void 0,void 0,(function*(){try{if(!this.enabled)return;this.camera.finderFrame=null===(e=this.finder)||void 0===e?void 0:e.holeRect;const r=yield null===(t=this.camera)||void 0===t?void 0:t.createImageData(o.c.DEFAULT_DETECTION_RESOLUTION);if(!r)return;const a=yield(yield this.documentDataExtractor).recognize(r,{mode:"LIVE"},"CONSUME_IMAGE");if(!this.enabled)return;this.camera.reusableImageBuffer=a.originalImage.data,null===(i=(n=this.configuration).onDocumentDetected)||void 0===i||i.call(n,a)}catch(e){null===(a=(r=this.configuration).onError)||void 0===a||a.call(r,e)}finally{requestAnimationFrame((()=>this.detect()))}}))}render(){var e;const t=this.configuration;return i.default.createElement(i.default.Fragment,null,i.default.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},this.renderSpinner(null===(e=this.configuration)||void 0===e?void 0:e.spinnerColor),i.default.createElement("div",{style:{position:"absolute",width:"100%",height:"100%"}},i.default.createElement(c.a,{key:"camera",configuration:this.configuration,videoConstraints:t.videoConstraints,mirrored:t.mirrored,preferredCamera:this.configuration.preferredCamera,onReady:this.onVideoReady,onError:this.onVideoError,ref:e=>{this.camera=e}})),this.configuration.finder.visible&&i.default.createElement(l.a,{ref:e=>{this.finder=e},guidanceConfiguration:this.configuration.userGuidance,configuration:this.configuration.finder})))}}},function(e,t,n){"use strict";n.r(t);var i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));t.default=o},function(e,t,n){"use strict";function i(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(153);const o={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function r(e,t,n="Mui"){const r=o[t];return r?`${n}-${r}`:`${i.a.generate(e)}-${t}`}},function(e,t,n){"use strict";const i=e=>e,o=(()=>{let e=i;return{configure(t){e=t},generate:t=>e(t),reset(){e=i}}})();t.a=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(112),o=n(81);function r({props:e,name:t,defaultTheme:n,themeId:r}){let a=Object(o.a)(n);r&&(a=a[r]||a);return Object(i.a)({theme:a,name:t,props:e})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(3);function o(e,t){const n=Object(i.a)({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Object(i.a)({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const a=e[r]||{},s=t[r];n[r]={},s&&Object.keys(s)?a&&Object.keys(a)?(n[r]=Object(i.a)({},s),Object.keys(a).forEach((e=>{n[r][e]=o(a[e],s[e])}))):n[r]=s:n[r]=a}else void 0===n[r]&&(n[r]=e[r])})),n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(0),o=n(157);function r(...e){return i.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Object(o.a)(e,t)}))}),e)}},function(e,t,n){"use strict";function i(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";var i=n(0),o=n(137);t.a=function(e){const t=i.useRef(e);return Object(o.a)((()=>{t.current=e})),i.useRef(((...e)=>(0,t.current)(...e))).current}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(138);function o(e){return Object(i.a)(e).defaultView||window}},function(e,t,n){"use strict";var i=n(3),o=n(9),r=n(136);const a=["values","unit","step"];function s(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,s=Object(o.a)(e,a),c=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Object(i.a)({},e,{[t.key]:t.val})),{})})(t),l=Object.keys(c);function u(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function d(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function m(e,i){const o=l.indexOf(i);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[l[o]]?t[l[o]]:i)-r/100}${n})`}return Object(i.a)({keys:l,values:c,up:u,down:d,between:m,only:function(e){return l.indexOf(e)+1<l.length?m(e,l[l.indexOf(e)+1]):u(e)},not:function(e){const t=l.indexOf(e);return 0===t?u(l[1]):t===l.length-1?d(l[t]):m(e,l[l.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},s)}var c={borderRadius:4},l=n(18);var u=n(109),d=n(67);function m(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}const p=["breakpoints","palette","spacing","shape"];t.a=function(e={},...t){const{breakpoints:n={},palette:a={},spacing:h,shape:f={}}=e,g=Object(o.a)(e,p),v=s(n),b=function(e=8){if(e.mui)return e;const t=Object(l.a)({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(h);let y=Object(r.a)({breakpoints:v,direction:"ltr",components:{},palette:Object(i.a)({mode:"light"},a),spacing:b,shape:Object(i.a)({},c,f)},g);return y.applyStyles=m,y=t.reduce(((e,t)=>Object(r.a)(e,t)),y),y.unstable_sxConfig=Object(i.a)({},d.a,null==g?void 0:g.unstable_sxConfig),y.unstable_sx=function(e){return Object(u.a)({sx:e,theme:this})},y}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(152);function o(e,t,n="Mui"){const o={};return t.forEach((t=>{o[t]=Object(i.a)(e,t,n)})),o}},function(e,t,n){"use strict";function i(e,t,n){const i={};return Object.keys(e).forEach((o=>{i[o]=e[o].reduce(((e,i)=>{if(i){const o=t(i);""!==o&&e.push(o),n&&n[i]&&e.push(n[i])}return e}),[]).join(" ")})),i}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";function i(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n(0);let o=0;const r=i["useId".toString()];function a(e){if(void 0!==r){const t=r();return null!=e?e:t}return function(e){const[t,n]=i.useState(e),r=e||t;return i.useEffect((()=>{null==t&&(o+=1,n(`mui-${o}`))}),[t]),r}(e)}},function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"d",(function(){return m}));var i=n(151);var o=function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))};function r(e,t=0,n=1){return o(e,t,n)}function a(e){if(e.type)return e;if("#"===e.charAt(0))return a(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Object(i.a)(9,e));let o,r=e.substring(t+1,e.length-1);if("color"===n){if(r=r.split(" "),o=r.shift(),4===r.length&&"/"===r[3].charAt(0)&&(r[3]=r[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error(Object(i.a)(10,o))}else r=r.split(",");return r=r.map((e=>parseFloat(e))),{type:n,values:r,colorSpace:o}}function s(e){const{type:t,colorSpace:n}=e;let{values:i}=e;return-1!==t.indexOf("rgb")?i=i.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),i=-1!==t.indexOf("color")?`${n} ${i.join(" ")}`:`${i.join(", ")}`,`${t}(${i})`}function c(e){let t="hsl"===(e=a(e)).type||"hsla"===e.type?a(function(e){e=a(e);const{values:t}=e,n=t[0],i=t[1]/100,o=t[2]/100,r=i*Math.min(o,1-o),c=(e,t=(e+n/30)%12)=>o-r*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const u=[Math.round(255*c(0)),Math.round(255*c(8)),Math.round(255*c(4))];return"hsla"===e.type&&(l+="a",u.push(t[3])),s({type:l,values:u})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l(e,t){const n=c(e),i=c(t);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)}function u(e,t){return e=a(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function d(e,t){if(e=a(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function m(e,t){if(e=a(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}}])}));