@stokr/components-library 3.0.65 → 3.0.67

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 (753) hide show
  1. package/README.md +16 -3
  2. package/dist/_virtual/Collapse.js +4 -0
  3. package/dist/_virtual/Component.js +4 -0
  4. package/dist/_virtual/Range.js +4 -0
  5. package/dist/_virtual/ResizeObserver.es.js +6 -0
  6. package/dist/_virtual/UnmountClosed.js +4 -0
  7. package/dist/_virtual/_commonjsHelpers.js +38 -0
  8. package/dist/_virtual/arrows.js +4 -0
  9. package/dist/_virtual/attributes-to-props.js +4 -0
  10. package/dist/_virtual/constants.js +4 -0
  11. package/dist/_virtual/default-props.js +4 -0
  12. package/dist/_virtual/defaultRenderElements.js +4 -0
  13. package/dist/_virtual/dom-to-react.js +4 -0
  14. package/dist/_virtual/domparser.js +4 -0
  15. package/dist/_virtual/dots.js +4 -0
  16. package/dist/_virtual/getInnerHeight.js +4 -0
  17. package/dist/_virtual/getInnerWidth.js +4 -0
  18. package/dist/_virtual/getScrollbarWidth.js +4 -0
  19. package/dist/_virtual/hoist-non-react-statics.cjs.js +2 -0
  20. package/dist/_virtual/html-to-dom.js +4 -0
  21. package/dist/_virtual/index.js +5 -0
  22. package/dist/_virtual/index10.js +5 -0
  23. package/dist/_virtual/index11.js +7 -0
  24. package/dist/_virtual/index12.js +7 -0
  25. package/dist/_virtual/index13.js +7 -0
  26. package/dist/_virtual/index14.js +4 -0
  27. package/dist/_virtual/index15.js +7 -0
  28. package/dist/_virtual/index16.js +7 -0
  29. package/dist/_virtual/index17.js +7 -0
  30. package/dist/_virtual/index18.js +4 -0
  31. package/dist/_virtual/index19.js +4 -0
  32. package/dist/_virtual/index2.js +7 -0
  33. package/dist/_virtual/index20.js +4 -0
  34. package/dist/_virtual/index21.js +4 -0
  35. package/dist/_virtual/index22.js +4 -0
  36. package/dist/_virtual/index23.js +4 -0
  37. package/dist/_virtual/index24.js +4 -0
  38. package/dist/_virtual/index25.js +4 -0
  39. package/dist/_virtual/index26.js +4 -0
  40. package/dist/_virtual/index27.js +4 -0
  41. package/dist/_virtual/index28.js +4 -0
  42. package/dist/_virtual/index29.js +4 -0
  43. package/dist/_virtual/index3.js +5 -0
  44. package/dist/_virtual/index30.js +4 -0
  45. package/dist/_virtual/index31.js +4 -0
  46. package/dist/_virtual/index4.js +5 -0
  47. package/dist/_virtual/index5.js +5 -0
  48. package/dist/_virtual/index6.js +5 -0
  49. package/dist/_virtual/index7.js +7 -0
  50. package/dist/_virtual/index8.js +4 -0
  51. package/dist/_virtual/index9.js +5 -0
  52. package/dist/_virtual/initial-state.js +4 -0
  53. package/dist/_virtual/inner-slider.js +4 -0
  54. package/dist/_virtual/innerSliderUtils.js +4 -0
  55. package/dist/_virtual/isString.js +4 -0
  56. package/dist/_virtual/node.js +4 -0
  57. package/dist/_virtual/performance-now.js +4 -0
  58. package/dist/_virtual/popper.js +6 -0
  59. package/dist/_virtual/possibleStandardNamesOptimized.js +4 -0
  60. package/dist/_virtual/react-is.development.js +4 -0
  61. package/dist/_virtual/react-is.production.min.js +4 -0
  62. package/dist/_virtual/react-table.development.js +4 -0
  63. package/dist/_virtual/react-table.production.min.js +4 -0
  64. package/dist/_virtual/react-tippy.js +5 -0
  65. package/dist/_virtual/react-tippy2.js +4 -0
  66. package/dist/_virtual/returnFalse.js +4 -0
  67. package/dist/_virtual/slider.js +4 -0
  68. package/dist/_virtual/styles.js +4 -0
  69. package/dist/_virtual/track.js +4 -0
  70. package/dist/_virtual/types.js +4 -0
  71. package/dist/_virtual/utilities.js +4 -0
  72. package/dist/_virtual/utilities2.js +4 -0
  73. package/dist/_virtual/utilities3.js +4 -0
  74. package/dist/_virtual/utils.js +4 -0
  75. package/dist/analytics/index.js +1 -1
  76. package/dist/api/fetchData.js +2 -2
  77. package/dist/components/2FA/Connect2FA.js +1 -1
  78. package/dist/components/2FA/EnterCode.js +1 -1
  79. package/dist/components/2FA/Sucess2FA.js +1 -1
  80. package/dist/components/2FA/login-with-otp-flow.js +47 -12
  81. package/dist/components/2FA/main-flow.js +29 -5
  82. package/dist/components/AccountBalance/AccountBalance.js +1 -1
  83. package/dist/components/AdminDashboard/Table/ReactTable.js +5 -5
  84. package/dist/components/AdminDashboard/Table/ReactTableWrapper.js +1 -1
  85. package/dist/components/AdminDashboard/Table/Table.js +1 -1
  86. package/dist/components/AgreementItem/AgreementItem.js +1 -1
  87. package/dist/components/BackButton/BackButton.js +1 -1
  88. package/dist/components/Background/Background.js +1 -1
  89. package/dist/components/BasicTable/BasicTable.js +1 -1
  90. package/dist/components/BlogPost/BlogPost.js +1 -1
  91. package/dist/components/Button/Button.styles.js +1 -1
  92. package/dist/components/Button/GlareButton.js +2 -2
  93. package/dist/components/ChartLegend/ChartLegend.js +3 -3
  94. package/dist/components/Checkbox/Checkbox.js +1 -1
  95. package/dist/components/Checklist/ChecklistCard.js +1 -1
  96. package/dist/components/Chips/Chip.js +1 -1
  97. package/dist/components/Chips/ChipWrapper.js +1 -1
  98. package/dist/components/ComponentScroll/ComponentScroll.js +3 -3
  99. package/dist/components/Country/CountrySelect.js +4 -4
  100. package/dist/components/CryptoAddress/ComponentWrap.js +1 -1
  101. package/dist/components/CryptoAddress/CryptoAddress.js +7 -7
  102. package/dist/components/CryptoAddress/RadioWrap.js +1 -1
  103. package/dist/components/CryptoAddressDetails/CryptoAddressDetails.js +1 -1
  104. package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.js +1 -1
  105. package/dist/components/FAQ/FAQ.js +1 -1
  106. package/dist/components/FAQ/FAQ.styles.js +2 -2
  107. package/dist/components/Footer/Footer.js +1 -1
  108. package/dist/components/Footer/FooterLayout.js +1 -1
  109. package/dist/components/Footer/FooterMenu.js +3 -3
  110. package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +5 -5
  111. package/dist/components/Form/Form.js +2 -2
  112. package/dist/components/Form/Form.styles.js +1 -1
  113. package/dist/components/Header/Header.js +3 -3
  114. package/dist/components/HeroBlock/HeroVideoBlock.js +1 -1
  115. package/dist/components/IdentityInfo/IdentityInfo.js +1 -1
  116. package/dist/components/InfoIcon/InfoIcon.js +6 -6
  117. package/dist/components/Input/DatePickerInput.js +5 -3
  118. package/dist/components/Input/Input.js +1 -1
  119. package/dist/components/Input/InputPassword.js +1 -1
  120. package/dist/components/Input/InputUsername.js +1 -1
  121. package/dist/components/Input/InputWithButton.js +1 -1
  122. package/dist/components/Input/MultiSelect.js +4 -3
  123. package/dist/components/Input/OtpInput.js +2 -2
  124. package/dist/components/Input/RangeInput.js +4 -4
  125. package/dist/components/Input/Select.js +5 -4
  126. package/dist/components/Input/TableFilterDropdown.js +1 -1
  127. package/dist/components/InvestmentStat/InvestmentStat.js +1 -1
  128. package/dist/components/LatestUpdate/LatestUpdate.js +1 -1
  129. package/dist/components/Layout/Layout.js +1 -1
  130. package/dist/components/LoginModal/LoginModal.js +6 -6
  131. package/dist/components/MainMenu/DynamicMainMenu.js +3 -3
  132. package/dist/components/MainMenu/MainMenu.js +6 -6
  133. package/dist/components/Modal/Modal.js +2 -2
  134. package/dist/components/Modal/NewVentureModal/NewVentureModal.js +9 -9
  135. package/dist/components/Modal/PaymentModal.js +2 -2
  136. package/dist/components/Modal/SuccessModal/SuccessModal.js +3 -3
  137. package/dist/components/MultiProgressBar/MultiProgressBar.js +1 -1
  138. package/dist/components/Number/Number.js +1 -1
  139. package/dist/components/PageTransition/PageTransition.js +1 -1
  140. package/dist/components/Pagination/Pagination.js +1 -1
  141. package/dist/components/Pagination/PaginationControls.js +1 -1
  142. package/dist/components/Payment/PaymentDisplay.js +4 -4
  143. package/dist/components/Payment/TimerComponent.js +1 -1
  144. package/dist/components/ProfileBadge/ProfileBadge.js +1 -1
  145. package/dist/components/ProfileBox/ProfileBox.js +1 -1
  146. package/dist/components/ProfileStat/ProfileStat.js +1 -1
  147. package/dist/components/QRCode/QRCode.js +2 -2
  148. package/dist/components/Radio/Radio.js +1 -1
  149. package/dist/components/RefreshButton/RefreshButton.js +1 -1
  150. package/dist/components/RegisterConfirmModal/RegisterConfirmModal.js +1 -1
  151. package/dist/components/RegisterModal/RegisterModal.js +8 -8
  152. package/dist/components/RequestDataBox/RequestDataBox.js +1 -1
  153. package/dist/components/ResetConfirmModal/ResetConfirmModal.js +1 -1
  154. package/dist/components/ResetPasswordModal/ResetPasswordModal.js +6 -6
  155. package/dist/components/SEO/SEO.js +3 -3
  156. package/dist/components/Slider/Slider.js +4 -4
  157. package/dist/components/SmartLink/SmartLink.js +1 -1
  158. package/dist/components/Snackbar/Snackbar.js +1 -1
  159. package/dist/components/Snackbar/SnackbarProvider.js +1 -1
  160. package/dist/components/StepController/StepController.js +1 -1
  161. package/dist/components/StepController/StepControllerContext.js +1 -1
  162. package/dist/components/StepController/StepControllerProgress.js +1 -1
  163. package/dist/components/StepsProgress/StepIndicator.js +1 -1
  164. package/dist/components/StepsProgress/StepsProgress.js +1 -1
  165. package/dist/components/Switch/Switch.js +1 -1
  166. package/dist/components/Tabs/Tabs.js +1 -1
  167. package/dist/components/TabsNav/TabNav.js +1 -1
  168. package/dist/components/TabsNav/TabsNav.js +1 -1
  169. package/dist/components/TaxResidenceCard/TaxResidenceCard.js +1 -1
  170. package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.js +2 -2
  171. package/dist/components/TeamOverview/TeamOverview.js +1 -1
  172. package/dist/components/TermsModal/TermsModal.js +5 -5
  173. package/dist/components/Timeline/TimelineStep.js +1 -1
  174. package/dist/components/ToDoList/ToDoList.js +3 -3
  175. package/dist/components/ToDoList/ToDoListTask.js +4 -4
  176. package/dist/components/TransactionDetails/TransactionDetails.js +1 -1
  177. package/dist/components/TransactionDetails/TransactionDetails.styles.js +2 -2
  178. package/dist/components/TransactionInfo/TransactionInfo.js +1 -1
  179. package/dist/components/VerifyEmailModal/VerifyEmailModal.js +5 -5
  180. package/dist/components/headerHo/HeaderHo.js +3 -1
  181. package/dist/components/logo/Logo.js +1 -1
  182. package/dist/components/taxId/register-taxid.js +4 -4
  183. package/dist/components-library.css +781 -0
  184. package/dist/context/Auth.js +15 -12
  185. package/dist/context/AuthContext.js +89 -16
  186. package/dist/firebase-config.js +4 -2
  187. package/dist/hooks/useNewVentureForm.js +1 -1
  188. package/dist/index.js +5 -4
  189. package/dist/model/axios.js +2 -1
  190. package/dist/model/axiosPublic.js +2 -1
  191. package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +8 -0
  192. package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +6 -0
  193. package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +7 -0
  194. package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +7 -0
  195. package/dist/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +6 -0
  196. package/dist/node_modules/@babel/runtime/helpers/esm/createClass.js +15 -0
  197. package/dist/node_modules/@babel/runtime/helpers/esm/createSuper.js +17 -0
  198. package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js +12 -0
  199. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +12 -0
  200. package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +8 -0
  201. package/dist/node_modules/@babel/runtime/helpers/esm/inherits.js +16 -0
  202. package/dist/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +13 -0
  203. package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +6 -0
  204. package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +24 -0
  205. package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +6 -0
  206. package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +6 -0
  207. package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +25 -0
  208. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +13 -0
  209. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +12 -0
  210. package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +10 -0
  211. package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +8 -0
  212. package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +10 -0
  213. package/dist/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +10 -0
  214. package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +10 -0
  215. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +14 -0
  216. package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +9 -0
  217. package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +11 -0
  218. package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +11 -0
  219. package/dist/node_modules/@date-fns/tz/date/index.js +66 -0
  220. package/dist/node_modules/@date-fns/tz/date/mini.js +124 -0
  221. package/dist/node_modules/@date-fns/tz/tzName/index.js +11 -0
  222. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +28 -0
  223. package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +345 -0
  224. package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js +31 -0
  225. package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +10 -0
  226. package/dist/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js +84 -0
  227. package/dist/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +50 -0
  228. package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +169 -0
  229. package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +83 -0
  230. package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +53 -0
  231. package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js +9 -0
  232. package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +45 -0
  233. package/dist/node_modules/@firebase/app/dist/esm/index.esm.js +609 -0
  234. package/dist/node_modules/@firebase/auth/dist/esm/index-36fcbc82.js +5751 -0
  235. package/dist/node_modules/@firebase/component/dist/esm/index.esm.js +291 -0
  236. package/dist/node_modules/@firebase/logger/dist/esm/index.esm.js +106 -0
  237. package/dist/node_modules/@firebase/util/dist/index.esm.js +828 -0
  238. package/dist/node_modules/@firebase/util/dist/postinstall.js +4 -0
  239. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +257 -0
  240. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +122 -0
  241. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +34 -0
  242. package/dist/node_modules/@lottiefiles/dotlottie-react/dist/index.js +53 -0
  243. package/dist/node_modules/@lottiefiles/dotlottie-web/dist/index.js +1973 -0
  244. package/dist/node_modules/add-px-to-style/index.js +48 -0
  245. package/dist/node_modules/axios/index.js +38 -0
  246. package/dist/node_modules/axios/lib/adapters/adapters.js +71 -0
  247. package/dist/node_modules/axios/lib/adapters/fetch.js +219 -0
  248. package/dist/node_modules/axios/lib/adapters/xhr.js +141 -0
  249. package/dist/node_modules/axios/lib/axios.js +50 -0
  250. package/dist/node_modules/axios/lib/cancel/CancelToken.js +99 -0
  251. package/dist/node_modules/axios/lib/cancel/CanceledError.js +20 -0
  252. package/dist/node_modules/axios/lib/cancel/isCancel.js +6 -0
  253. package/dist/node_modules/axios/lib/core/Axios.js +188 -0
  254. package/dist/node_modules/axios/lib/core/AxiosError.js +67 -0
  255. package/dist/node_modules/axios/lib/core/AxiosHeaders.js +231 -0
  256. package/dist/node_modules/axios/lib/core/InterceptorManager.js +66 -0
  257. package/dist/node_modules/axios/lib/core/buildFullPath.js +12 -0
  258. package/dist/node_modules/axios/lib/core/dispatchRequest.js +52 -0
  259. package/dist/node_modules/axios/lib/core/mergeConfig.js +88 -0
  260. package/dist/node_modules/axios/lib/core/settle.js +18 -0
  261. package/dist/node_modules/axios/lib/core/transformData.js +17 -0
  262. package/dist/node_modules/axios/lib/defaults/index.js +116 -0
  263. package/dist/node_modules/axios/lib/defaults/transitional.js +9 -0
  264. package/dist/node_modules/axios/lib/env/data.js +4 -0
  265. package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +34 -0
  266. package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js +77 -0
  267. package/dist/node_modules/axios/lib/helpers/bind.js +8 -0
  268. package/dist/node_modules/axios/lib/helpers/buildURL.js +32 -0
  269. package/dist/node_modules/axios/lib/helpers/combineURLs.js +6 -0
  270. package/dist/node_modules/axios/lib/helpers/composeSignals.js +39 -0
  271. package/dist/node_modules/axios/lib/helpers/cookies.js +49 -0
  272. package/dist/node_modules/axios/lib/helpers/formDataToJSON.js +54 -0
  273. package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js +9 -0
  274. package/dist/node_modules/axios/lib/helpers/isAxiosError.js +7 -0
  275. package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js +11 -0
  276. package/dist/node_modules/axios/lib/helpers/null.js +4 -0
  277. package/dist/node_modules/axios/lib/helpers/parseHeaders.js +47 -0
  278. package/dist/node_modules/axios/lib/helpers/parseProtocol.js +7 -0
  279. package/dist/node_modules/axios/lib/helpers/progressEventReducer.js +41 -0
  280. package/dist/node_modules/axios/lib/helpers/resolveConfig.js +46 -0
  281. package/dist/node_modules/axios/lib/helpers/speedometer.js +36 -0
  282. package/dist/node_modules/axios/lib/helpers/spread.js +8 -0
  283. package/dist/node_modules/axios/lib/helpers/throttle.js +35 -0
  284. package/dist/node_modules/axios/lib/helpers/toFormData.js +117 -0
  285. package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js +18 -0
  286. package/dist/node_modules/axios/lib/helpers/trackStream.js +80 -0
  287. package/dist/node_modules/axios/lib/helpers/validator.js +67 -0
  288. package/dist/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
  289. package/dist/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
  290. package/dist/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
  291. package/dist/node_modules/axios/lib/platform/browser/index.js +15 -0
  292. package/dist/node_modules/axios/lib/platform/common/utils.js +15 -0
  293. package/dist/node_modules/axios/lib/platform/index.js +9 -0
  294. package/dist/node_modules/axios/lib/utils.js +415 -0
  295. package/dist/node_modules/classnames/index.js +61 -0
  296. package/dist/node_modules/copy-to-clipboard/index.js +101 -0
  297. package/dist/node_modules/country-flag-icons/modules/react/3x2/index.js +6570 -0
  298. package/dist/node_modules/country-flag-icons/react/3x2/index.js +269 -0
  299. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +8 -0
  300. package/dist/node_modules/date-fns/_lib/defaultOptions.js +7 -0
  301. package/dist/node_modules/date-fns/_lib/format/formatters.js +652 -0
  302. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +62 -0
  303. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +58 -0
  304. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +20 -0
  305. package/dist/node_modules/date-fns/_lib/normalizeDates.js +11 -0
  306. package/dist/node_modules/date-fns/_lib/normalizeInterval.js +8 -0
  307. package/dist/node_modules/date-fns/_lib/protectedTokens.js +23 -0
  308. package/dist/node_modules/date-fns/addDays.js +12 -0
  309. package/dist/node_modules/date-fns/addMonths.js +26 -0
  310. package/dist/node_modules/date-fns/addWeeks.js +7 -0
  311. package/dist/node_modules/date-fns/addYears.js +7 -0
  312. package/dist/node_modules/date-fns/constants.js +14 -0
  313. package/dist/node_modules/date-fns/constructFrom.js +11 -0
  314. package/dist/node_modules/date-fns/differenceInCalendarDays.js +19 -0
  315. package/dist/node_modules/date-fns/differenceInCalendarMonths.js +14 -0
  316. package/dist/node_modules/date-fns/eachMonthOfInterval.js +20 -0
  317. package/dist/node_modules/date-fns/eachYearOfInterval.js +20 -0
  318. package/dist/node_modules/date-fns/endOfISOWeek.js +7 -0
  319. package/dist/node_modules/date-fns/endOfMonth.js +11 -0
  320. package/dist/node_modules/date-fns/endOfWeek.js +15 -0
  321. package/dist/node_modules/date-fns/endOfYear.js +11 -0
  322. package/dist/node_modules/date-fns/format.js +77 -0
  323. package/dist/node_modules/date-fns/getDayOfYear.js +12 -0
  324. package/dist/node_modules/date-fns/getDaysInMonth.js +14 -0
  325. package/dist/node_modules/date-fns/getDefaultOptions.js +7 -0
  326. package/dist/node_modules/date-fns/getISODay.js +8 -0
  327. package/dist/node_modules/date-fns/getISOWeek.js +12 -0
  328. package/dist/node_modules/date-fns/getISOWeekYear.js +25 -0
  329. package/dist/node_modules/date-fns/getMonth.js +7 -0
  330. package/dist/node_modules/date-fns/getWeek.js +12 -0
  331. package/dist/node_modules/date-fns/getWeekYear.js +28 -0
  332. package/dist/node_modules/date-fns/getYear.js +7 -0
  333. package/dist/node_modules/date-fns/isAfter.js +7 -0
  334. package/dist/node_modules/date-fns/isBefore.js +7 -0
  335. package/dist/node_modules/date-fns/isDate.js +6 -0
  336. package/dist/node_modules/date-fns/isSameDay.js +13 -0
  337. package/dist/node_modules/date-fns/isSameMonth.js +12 -0
  338. package/dist/node_modules/date-fns/isSameYear.js +12 -0
  339. package/dist/node_modules/date-fns/isValid.js +8 -0
  340. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +10 -0
  341. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +20 -0
  342. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +43 -0
  343. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +16 -0
  344. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +85 -0
  345. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +36 -0
  346. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +12 -0
  347. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +164 -0
  348. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +122 -0
  349. package/dist/node_modules/date-fns/locale/en-US.js +20 -0
  350. package/dist/node_modules/date-fns/max.js +16 -0
  351. package/dist/node_modules/date-fns/min.js +16 -0
  352. package/dist/node_modules/date-fns/parse/_lib/Parser.js +25 -0
  353. package/dist/node_modules/date-fns/parse/_lib/Setter.js +44 -0
  354. package/dist/node_modules/date-fns/parse/_lib/constants.js +50 -0
  355. package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +44 -0
  356. package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +44 -0
  357. package/dist/node_modules/date-fns/parse/_lib/parsers/DateParser.js +64 -0
  358. package/dist/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +52 -0
  359. package/dist/node_modules/date-fns/parse/_lib/parsers/DayParser.js +45 -0
  360. package/dist/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +44 -0
  361. package/dist/node_modules/date-fns/parse/_lib/parsers/EraParser.js +30 -0
  362. package/dist/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +20 -0
  363. package/dist/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +17 -0
  364. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +32 -0
  365. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +27 -0
  366. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +28 -0
  367. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +34 -0
  368. package/dist/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +106 -0
  369. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +43 -0
  370. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +43 -0
  371. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +43 -0
  372. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +39 -0
  373. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +76 -0
  374. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +42 -0
  375. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +67 -0
  376. package/dist/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +27 -0
  377. package/dist/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +73 -0
  378. package/dist/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +71 -0
  379. package/dist/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +27 -0
  380. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +76 -0
  381. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +73 -0
  382. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +71 -0
  383. package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +16 -0
  384. package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +16 -0
  385. package/dist/node_modules/date-fns/parse/_lib/parsers/YearParser.js +47 -0
  386. package/dist/node_modules/date-fns/parse/_lib/parsers.js +67 -0
  387. package/dist/node_modules/date-fns/parse/_lib/utils.js +117 -0
  388. package/dist/node_modules/date-fns/parse.js +123 -0
  389. package/dist/node_modules/date-fns/setDay.js +17 -0
  390. package/dist/node_modules/date-fns/setISODay.js +12 -0
  391. package/dist/node_modules/date-fns/setISOWeek.js +11 -0
  392. package/dist/node_modules/date-fns/setMonth.js +17 -0
  393. package/dist/node_modules/date-fns/setWeek.js +11 -0
  394. package/dist/node_modules/date-fns/setYear.js +11 -0
  395. package/dist/node_modules/date-fns/startOfDay.js +9 -0
  396. package/dist/node_modules/date-fns/startOfISOWeek.js +7 -0
  397. package/dist/node_modules/date-fns/startOfISOWeekYear.js +13 -0
  398. package/dist/node_modules/date-fns/startOfMonth.js +10 -0
  399. package/dist/node_modules/date-fns/startOfWeek.js +15 -0
  400. package/dist/node_modules/date-fns/startOfWeekYear.js +17 -0
  401. package/dist/node_modules/date-fns/startOfYear.js +10 -0
  402. package/dist/node_modules/date-fns/toDate.js +7 -0
  403. package/dist/node_modules/date-fns/transpose.js +18 -0
  404. package/dist/node_modules/date-fns-tz/dist/esm/_lib/getTimezoneOffsetInMilliseconds/index.js +8 -0
  405. package/dist/node_modules/date-fns-tz/dist/esm/_lib/newDateUTC/index.js +9 -0
  406. package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzIntlTimeZoneName/index.js +29 -0
  407. package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzParseTimezone/index.js +89 -0
  408. package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzPattern/index.js +4 -0
  409. package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzTokenizeDate/index.js +81 -0
  410. package/dist/node_modules/date-fns-tz/dist/esm/format/formatters/index.js +125 -0
  411. package/dist/node_modules/date-fns-tz/dist/esm/format/index.js +24 -0
  412. package/dist/node_modules/date-fns-tz/dist/esm/formatInTimeZone/index.js +13 -0
  413. package/dist/node_modules/date-fns-tz/dist/esm/toDate/index.js +305 -0
  414. package/dist/node_modules/date-fns-tz/dist/esm/toZonedTime/index.js +14 -0
  415. package/dist/node_modules/deepmerge/dist/es.js +69 -0
  416. package/dist/node_modules/dom-css/index.js +65 -0
  417. package/dist/node_modules/domelementtype/lib/index.js +39 -0
  418. package/dist/node_modules/domhandler/lib/index.js +166 -0
  419. package/dist/node_modules/domhandler/lib/node.js +438 -0
  420. package/dist/node_modules/dompurify/dist/purify.es.js +1020 -0
  421. package/dist/node_modules/firebase/app/dist/esm/index.esm.js +20 -0
  422. package/dist/node_modules/firebase/auth/dist/esm/index.esm.js +44 -0
  423. package/dist/node_modules/formik/dist/formik.esm.js +969 -0
  424. package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +92 -0
  425. package/dist/node_modules/html-dom-parser/lib/client/constants.js +55 -0
  426. package/dist/node_modules/html-dom-parser/lib/client/domparser.js +96 -0
  427. package/dist/node_modules/html-dom-parser/lib/client/html-to-dom.js +31 -0
  428. package/dist/node_modules/html-dom-parser/lib/client/utilities.js +96 -0
  429. package/dist/node_modules/html-react-parser/esm/index.js +5 -0
  430. package/dist/node_modules/html-react-parser/lib/attributes-to-props.js +64 -0
  431. package/dist/node_modules/html-react-parser/lib/dom-to-react.js +99 -0
  432. package/dist/node_modules/html-react-parser/lib/index.js +51 -0
  433. package/dist/node_modules/html-react-parser/lib/utilities.js +79 -0
  434. package/dist/node_modules/idb/build/index.js +69 -0
  435. package/dist/node_modules/idb/build/wrap-idb-value.js +148 -0
  436. package/dist/node_modules/inline-style-parser/cjs/index.js +142 -0
  437. package/dist/node_modules/js-cookie/dist/js.cookie.js +99 -0
  438. package/dist/node_modules/json2mq/index.js +55 -0
  439. package/dist/node_modules/lodash-es/_DataView.js +6 -0
  440. package/dist/node_modules/lodash-es/_Hash.js +21 -0
  441. package/dist/node_modules/lodash-es/_ListCache.js +21 -0
  442. package/dist/node_modules/lodash-es/_Map.js +6 -0
  443. package/dist/node_modules/lodash-es/_MapCache.js +21 -0
  444. package/dist/node_modules/lodash-es/_Promise.js +6 -0
  445. package/dist/node_modules/lodash-es/_Set.js +6 -0
  446. package/dist/node_modules/lodash-es/_Stack.js +18 -0
  447. package/dist/node_modules/lodash-es/_Symbol.js +5 -0
  448. package/dist/node_modules/lodash-es/_Uint8Array.js +5 -0
  449. package/dist/node_modules/lodash-es/_WeakMap.js +6 -0
  450. package/dist/node_modules/lodash-es/_arrayEach.js +12 -0
  451. package/dist/node_modules/lodash-es/_arrayFilter.js +13 -0
  452. package/dist/node_modules/lodash-es/_arrayLikeKeys.js +24 -0
  453. package/dist/node_modules/lodash-es/_arrayMap.js +10 -0
  454. package/dist/node_modules/lodash-es/_arrayPush.js +10 -0
  455. package/dist/node_modules/lodash-es/_assignValue.js +13 -0
  456. package/dist/node_modules/lodash-es/_assocIndexOf.js +13 -0
  457. package/dist/node_modules/lodash-es/_baseAssign.js +8 -0
  458. package/dist/node_modules/lodash-es/_baseAssignIn.js +8 -0
  459. package/dist/node_modules/lodash-es/_baseAssignValue.js +16 -0
  460. package/dist/node_modules/lodash-es/_baseClone.js +88 -0
  461. package/dist/node_modules/lodash-es/_baseCreate.js +21 -0
  462. package/dist/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
  463. package/dist/node_modules/lodash-es/_baseGetTag.js +14 -0
  464. package/dist/node_modules/lodash-es/_baseIsArguments.js +9 -0
  465. package/dist/node_modules/lodash-es/_baseIsMap.js +9 -0
  466. package/dist/node_modules/lodash-es/_baseIsNative.js +22 -0
  467. package/dist/node_modules/lodash-es/_baseIsSet.js +9 -0
  468. package/dist/node_modules/lodash-es/_baseIsTypedArray.js +14 -0
  469. package/dist/node_modules/lodash-es/_baseKeys.js +19 -0
  470. package/dist/node_modules/lodash-es/_baseKeysIn.js +20 -0
  471. package/dist/node_modules/lodash-es/_baseTimes.js +10 -0
  472. package/dist/node_modules/lodash-es/_baseToString.js +21 -0
  473. package/dist/node_modules/lodash-es/_baseUnary.js +8 -0
  474. package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +9 -0
  475. package/dist/node_modules/lodash-es/_cloneBuffer.js +16 -0
  476. package/dist/node_modules/lodash-es/_cloneDataView.js +8 -0
  477. package/dist/node_modules/lodash-es/_cloneRegExp.js +9 -0
  478. package/dist/node_modules/lodash-es/_cloneSymbol.js +8 -0
  479. package/dist/node_modules/lodash-es/_cloneTypedArray.js +8 -0
  480. package/dist/node_modules/lodash-es/_copyArray.js +11 -0
  481. package/dist/node_modules/lodash-es/_copyObject.js +23 -0
  482. package/dist/node_modules/lodash-es/_copySymbols.js +8 -0
  483. package/dist/node_modules/lodash-es/_copySymbolsIn.js +8 -0
  484. package/dist/node_modules/lodash-es/_coreJsData.js +5 -0
  485. package/dist/node_modules/lodash-es/_defineProperty.js +12 -0
  486. package/dist/node_modules/lodash-es/_freeGlobal.js +4 -0
  487. package/dist/node_modules/lodash-es/_getAllKeys.js +9 -0
  488. package/dist/node_modules/lodash-es/_getAllKeysIn.js +9 -0
  489. package/dist/node_modules/lodash-es/_getMapData.js +8 -0
  490. package/dist/node_modules/lodash-es/_getNative.js +9 -0
  491. package/dist/node_modules/lodash-es/_getPrototype.js +5 -0
  492. package/dist/node_modules/lodash-es/_getRawTag.js +25 -0
  493. package/dist/node_modules/lodash-es/_getSymbols.js +17 -0
  494. package/dist/node_modules/lodash-es/_getSymbolsIn.js +16 -0
  495. package/dist/node_modules/lodash-es/_getTag.js +34 -0
  496. package/dist/node_modules/lodash-es/_getValue.js +6 -0
  497. package/dist/node_modules/lodash-es/_hashClear.js +8 -0
  498. package/dist/node_modules/lodash-es/_hashDelete.js +8 -0
  499. package/dist/node_modules/lodash-es/_hashGet.js +15 -0
  500. package/dist/node_modules/lodash-es/_hashHas.js +10 -0
  501. package/dist/node_modules/lodash-es/_hashSet.js +11 -0
  502. package/dist/node_modules/lodash-es/_initCloneArray.js +13 -0
  503. package/dist/node_modules/lodash-es/_initCloneByTag.js +43 -0
  504. package/dist/node_modules/lodash-es/_initCloneObject.js +9 -0
  505. package/dist/node_modules/lodash-es/_isIndex.js +10 -0
  506. package/dist/node_modules/lodash-es/_isKeyable.js +7 -0
  507. package/dist/node_modules/lodash-es/_isMasked.js +11 -0
  508. package/dist/node_modules/lodash-es/_isPrototype.js +8 -0
  509. package/dist/node_modules/lodash-es/_listCacheClear.js +7 -0
  510. package/dist/node_modules/lodash-es/_listCacheDelete.js +20 -0
  511. package/dist/node_modules/lodash-es/_listCacheGet.js +8 -0
  512. package/dist/node_modules/lodash-es/_listCacheHas.js +7 -0
  513. package/dist/node_modules/lodash-es/_listCacheSet.js +14 -0
  514. package/dist/node_modules/lodash-es/_mapCacheClear.js +14 -0
  515. package/dist/node_modules/lodash-es/_mapCacheDelete.js +9 -0
  516. package/dist/node_modules/lodash-es/_mapCacheGet.js +7 -0
  517. package/dist/node_modules/lodash-es/_mapCacheHas.js +7 -0
  518. package/dist/node_modules/lodash-es/_mapCacheSet.js +10 -0
  519. package/dist/node_modules/lodash-es/_memoizeCapped.js +15 -0
  520. package/dist/node_modules/lodash-es/_nativeCreate.js +5 -0
  521. package/dist/node_modules/lodash-es/_nativeKeys.js +5 -0
  522. package/dist/node_modules/lodash-es/_nativeKeysIn.js +12 -0
  523. package/dist/node_modules/lodash-es/_nodeUtil.js +18 -0
  524. package/dist/node_modules/lodash-es/_objectToString.js +8 -0
  525. package/dist/node_modules/lodash-es/_overArg.js +8 -0
  526. package/dist/node_modules/lodash-es/_root.js +6 -0
  527. package/dist/node_modules/lodash-es/_stackClear.js +8 -0
  528. package/dist/node_modules/lodash-es/_stackDelete.js +8 -0
  529. package/dist/node_modules/lodash-es/_stackGet.js +6 -0
  530. package/dist/node_modules/lodash-es/_stackHas.js +6 -0
  531. package/dist/node_modules/lodash-es/_stackSet.js +22 -0
  532. package/dist/node_modules/lodash-es/_stringToPath.js +16 -0
  533. package/dist/node_modules/lodash-es/_toKey.js +11 -0
  534. package/dist/node_modules/lodash-es/_toSource.js +18 -0
  535. package/dist/node_modules/lodash-es/clone.js +8 -0
  536. package/dist/node_modules/lodash-es/cloneDeep.js +8 -0
  537. package/dist/node_modules/lodash-es/eq.js +6 -0
  538. package/dist/node_modules/lodash-es/isArguments.js +13 -0
  539. package/dist/node_modules/lodash-es/isArray.js +4 -0
  540. package/dist/node_modules/lodash-es/isArrayLike.js +8 -0
  541. package/dist/node_modules/lodash-es/isBuffer.js +11 -0
  542. package/dist/node_modules/lodash-es/isFunction.js +13 -0
  543. package/dist/node_modules/lodash-es/isLength.js +7 -0
  544. package/dist/node_modules/lodash-es/isMap.js +8 -0
  545. package/dist/node_modules/lodash-es/isObject.js +7 -0
  546. package/dist/node_modules/lodash-es/isObjectLike.js +6 -0
  547. package/dist/node_modules/lodash-es/isPlainObject.js +22 -0
  548. package/dist/node_modules/lodash-es/isSet.js +8 -0
  549. package/dist/node_modules/lodash-es/isSymbol.js +9 -0
  550. package/dist/node_modules/lodash-es/isTypedArray.js +8 -0
  551. package/dist/node_modules/lodash-es/keys.js +9 -0
  552. package/dist/node_modules/lodash-es/keysIn.js +9 -0
  553. package/dist/node_modules/lodash-es/memoize.js +22 -0
  554. package/dist/node_modules/lodash-es/stubArray.js +6 -0
  555. package/dist/node_modules/lodash-es/stubFalse.js +6 -0
  556. package/dist/node_modules/lodash-es/toPath.js +16 -0
  557. package/dist/node_modules/lodash-es/toString.js +7 -0
  558. package/dist/node_modules/lodash.debounce/index.js +137 -0
  559. package/dist/node_modules/memoize-one/dist/memoize-one.esm.js +52 -0
  560. package/dist/node_modules/mixpanel-browser/dist/mixpanel.module.js +25533 -0
  561. package/dist/node_modules/object-assign/index.js +73 -0
  562. package/dist/node_modules/performance-now/lib/performance-now.js +42 -0
  563. package/dist/node_modules/popper.js/dist/esm/popper.js +1516 -0
  564. package/dist/node_modules/prefix-style/index.js +29 -0
  565. package/dist/node_modules/prop-types/checkPropTypes.js +68 -0
  566. package/dist/node_modules/prop-types/factoryWithThrowingShims.js +58 -0
  567. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +451 -0
  568. package/dist/node_modules/prop-types/index.js +20 -0
  569. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +12 -0
  570. package/dist/node_modules/prop-types/lib/has.js +11 -0
  571. package/dist/node_modules/property-expr/index.js +105 -0
  572. package/dist/node_modules/qrcode.react/lib/esm/index.js +1099 -0
  573. package/dist/node_modules/raf/index.js +67 -0
  574. package/dist/node_modules/react-collapse/lib/Collapse.js +285 -0
  575. package/dist/node_modules/react-collapse/lib/UnmountClosed.js +278 -0
  576. package/dist/node_modules/react-collapse/lib/index.js +17 -0
  577. package/dist/node_modules/react-copy-to-clipboard/lib/Component.js +209 -0
  578. package/dist/node_modules/react-copy-to-clipboard/lib/index.js +14 -0
  579. package/dist/node_modules/react-custom-scrollbars-4/lib/Scrollbars/defaultRenderElements.js +85 -0
  580. package/dist/node_modules/react-custom-scrollbars-4/lib/Scrollbars/index.js +706 -0
  581. package/dist/node_modules/react-custom-scrollbars-4/lib/Scrollbars/styles.js +67 -0
  582. package/dist/node_modules/react-custom-scrollbars-4/lib/index.js +24 -0
  583. package/dist/node_modules/react-custom-scrollbars-4/lib/utils/getInnerHeight.js +21 -0
  584. package/dist/node_modules/react-custom-scrollbars-4/lib/utils/getInnerWidth.js +21 -0
  585. package/dist/node_modules/react-custom-scrollbars-4/lib/utils/getScrollbarWidth.js +44 -0
  586. package/dist/node_modules/react-custom-scrollbars-4/lib/utils/isString.js +19 -0
  587. package/dist/node_modules/react-custom-scrollbars-4/lib/utils/returnFalse.js +19 -0
  588. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +325 -0
  589. package/dist/node_modules/react-day-picker/dist/esm/UI.js +59 -0
  590. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +25 -0
  591. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +9 -0
  592. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +9 -0
  593. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +282 -0
  594. package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +7 -0
  595. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +7 -0
  596. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +18 -0
  597. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +8 -0
  598. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +13 -0
  599. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +21 -0
  600. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +7 -0
  601. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +7 -0
  602. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +8 -0
  603. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +8 -0
  604. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +7 -0
  605. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +7 -0
  606. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +9 -0
  607. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +34 -0
  608. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +9 -0
  609. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +7 -0
  610. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +9 -0
  611. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +8 -0
  612. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +7 -0
  613. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +8 -0
  614. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +8 -0
  615. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +7 -0
  616. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +7 -0
  617. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +11 -0
  618. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +7 -0
  619. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +9 -0
  620. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +54 -0
  621. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +10 -0
  622. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +7 -0
  623. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +7 -0
  624. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +10 -0
  625. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +6 -0
  626. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +7 -0
  627. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +9 -0
  628. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +18 -0
  629. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +40 -0
  630. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +72 -0
  631. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +11 -0
  632. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +13 -0
  633. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +17 -0
  634. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +10 -0
  635. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +19 -0
  636. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +30 -0
  637. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +12 -0
  638. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +20 -0
  639. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +15 -0
  640. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +22 -0
  641. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +16 -0
  642. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +16 -0
  643. package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js +41 -0
  644. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +17 -0
  645. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +43 -0
  646. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +39 -0
  647. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +20 -0
  648. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +20 -0
  649. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +20 -0
  650. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +14 -0
  651. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +13 -0
  652. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +9 -0
  653. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +23 -0
  654. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +14 -0
  655. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +9 -0
  656. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +26 -0
  657. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +14 -0
  658. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +10 -0
  659. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +11 -0
  660. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +6 -0
  661. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +6 -0
  662. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +7 -0
  663. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +6 -0
  664. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +6 -0
  665. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +6 -0
  666. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +7 -0
  667. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +6 -0
  668. package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js +62 -0
  669. package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js +145 -0
  670. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +42 -0
  671. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +33 -0
  672. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +33 -0
  673. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +128 -0
  674. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +100 -0
  675. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +13 -0
  676. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +42 -0
  677. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +21 -0
  678. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +55 -0
  679. package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js +53 -0
  680. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +52 -0
  681. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +17 -0
  682. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +61 -0
  683. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +23 -0
  684. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +8 -0
  685. package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js +11 -0
  686. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +26 -0
  687. package/dist/node_modules/react-fast-compare/index.js +63 -0
  688. package/dist/node_modules/react-helmet/es/Helmet.js +717 -0
  689. package/dist/node_modules/react-helmet/node_modules/react-fast-compare/index.js +81 -0
  690. package/dist/node_modules/react-intersection-observer/dist/index.js +178 -0
  691. package/dist/node_modules/react-is/cjs/react-is.development.js +157 -0
  692. package/dist/node_modules/react-is/cjs/react-is.production.min.js +98 -0
  693. package/dist/node_modules/react-is/index.js +17 -0
  694. package/dist/node_modules/react-otp-input/lib/index.esm.js +168 -0
  695. package/dist/node_modules/react-portal/es/LegacyPortal.js +91 -0
  696. package/dist/node_modules/react-portal/es/Portal.js +74 -0
  697. package/dist/node_modules/react-portal/es/PortalCompat.js +12 -0
  698. package/dist/node_modules/react-portal/es/utils.js +4 -0
  699. package/dist/node_modules/react-property/lib/index.js +471 -0
  700. package/dist/node_modules/react-property/lib/possibleStandardNamesOptimized.js +499 -0
  701. package/dist/node_modules/react-range/lib/Range.js +592 -0
  702. package/dist/node_modules/react-range/lib/index.js +39 -0
  703. package/dist/node_modules/react-range/lib/types.js +19 -0
  704. package/dist/node_modules/react-range/lib/utils.js +318 -0
  705. package/dist/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +19 -0
  706. package/dist/node_modules/react-select/dist/Select-ef7c0426.esm.js +2317 -0
  707. package/dist/node_modules/react-select/dist/index-641ee5b8.esm.js +1071 -0
  708. package/dist/node_modules/react-select/dist/react-select.esm.js +20 -0
  709. package/dist/node_modules/react-select/dist/useCreatable-09aaeb9a.esm.js +75 -0
  710. package/dist/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +51 -0
  711. package/dist/node_modules/react-side-effect/lib/index.js +105 -0
  712. package/dist/node_modules/react-slick/lib/arrows.js +248 -0
  713. package/dist/node_modules/react-slick/lib/default-props.js +85 -0
  714. package/dist/node_modules/react-slick/lib/dots.js +192 -0
  715. package/dist/node_modules/react-slick/lib/index.js +22 -0
  716. package/dist/node_modules/react-slick/lib/initial-state.js +48 -0
  717. package/dist/node_modules/react-slick/lib/inner-slider.js +810 -0
  718. package/dist/node_modules/react-slick/lib/slider.js +333 -0
  719. package/dist/node_modules/react-slick/lib/track.js +330 -0
  720. package/dist/node_modules/react-slick/lib/utils/innerSliderUtils.js +730 -0
  721. package/dist/node_modules/react-table/dist/react-table.development.js +3684 -0
  722. package/dist/node_modules/react-table/dist/react-table.production.min.js +1637 -0
  723. package/dist/node_modules/react-table/index.js +17 -0
  724. package/dist/node_modules/react-tippy/dist/react-tippy.js +1981 -0
  725. package/dist/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +495 -0
  726. package/dist/node_modules/string-convert/camel2hyphen.js +16 -0
  727. package/dist/node_modules/style-to-js/cjs/index.js +31 -0
  728. package/dist/node_modules/style-to-js/cjs/utilities.js +42 -0
  729. package/dist/node_modules/style-to-object/cjs/index.js +38 -0
  730. package/dist/node_modules/stylis/src/Enum.js +20 -0
  731. package/dist/node_modules/stylis/src/Middleware.js +22 -0
  732. package/dist/node_modules/stylis/src/Parser.js +157 -0
  733. package/dist/node_modules/stylis/src/Serializer.js +29 -0
  734. package/dist/node_modules/stylis/src/Tokenizer.js +160 -0
  735. package/dist/node_modules/stylis/src/Utility.js +52 -0
  736. package/dist/node_modules/tiny-case/index.js +33 -0
  737. package/dist/node_modules/tiny-warning/dist/tiny-warning.esm.js +16 -0
  738. package/dist/node_modules/to-camel-case/index.js +18 -0
  739. package/dist/node_modules/to-no-case/index.js +32 -0
  740. package/dist/node_modules/to-space-case/index.js +18 -0
  741. package/dist/node_modules/toggle-selection/index.js +42 -0
  742. package/dist/node_modules/toposort/index.js +79 -0
  743. package/dist/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +5 -0
  744. package/dist/node_modules/yup/index.esm.js +1921 -0
  745. package/dist/routing/RouterWrapper.js +1 -1
  746. package/dist/styles/global.js +2 -2
  747. package/dist/utils/copyToClipboard.js +7 -7
  748. package/dist/utils/delete-redirect-cookie-and-navigate.js +3 -3
  749. package/dist/utils/moment.js +2 -3
  750. package/dist/utils/redirect-url.js +2 -2
  751. package/dist/utils/set-redirect-cookie.js +2 -2
  752. package/dist/utils/transition.js +1 -1
  753. package/package.json +1 -1
@@ -0,0 +1,1099 @@
1
+ import React__default from "react";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
6
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
+ var __spreadValues = (a, b) => {
8
+ for (var prop in b || (b = {}))
9
+ if (__hasOwnProp.call(b, prop))
10
+ __defNormalProp(a, prop, b[prop]);
11
+ if (__getOwnPropSymbols)
12
+ for (var prop of __getOwnPropSymbols(b)) {
13
+ if (__propIsEnum.call(b, prop))
14
+ __defNormalProp(a, prop, b[prop]);
15
+ }
16
+ return a;
17
+ };
18
+ var __objRest = (source, exclude) => {
19
+ var target = {};
20
+ for (var prop in source)
21
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
22
+ target[prop] = source[prop];
23
+ if (source != null && __getOwnPropSymbols)
24
+ for (var prop of __getOwnPropSymbols(source)) {
25
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
26
+ target[prop] = source[prop];
27
+ }
28
+ return target;
29
+ };
30
+ var qrcodegen;
31
+ ((qrcodegen2) => {
32
+ const _QrCode = class _QrCode2 {
33
+ /*-- Constructor (low level) and fields --*/
34
+ // Creates a new QR Code with the given version number,
35
+ // error correction level, data codeword bytes, and mask number.
36
+ // This is a low-level API that most users should not use directly.
37
+ // A mid-level API is the encodeSegments() function.
38
+ constructor(version, errorCorrectionLevel, dataCodewords, msk) {
39
+ this.version = version;
40
+ this.errorCorrectionLevel = errorCorrectionLevel;
41
+ this.modules = [];
42
+ this.isFunction = [];
43
+ if (version < _QrCode2.MIN_VERSION || version > _QrCode2.MAX_VERSION)
44
+ throw new RangeError("Version value out of range");
45
+ if (msk < -1 || msk > 7)
46
+ throw new RangeError("Mask value out of range");
47
+ this.size = version * 4 + 17;
48
+ let row = [];
49
+ for (let i = 0; i < this.size; i++)
50
+ row.push(false);
51
+ for (let i = 0; i < this.size; i++) {
52
+ this.modules.push(row.slice());
53
+ this.isFunction.push(row.slice());
54
+ }
55
+ this.drawFunctionPatterns();
56
+ const allCodewords = this.addEccAndInterleave(dataCodewords);
57
+ this.drawCodewords(allCodewords);
58
+ if (msk == -1) {
59
+ let minPenalty = 1e9;
60
+ for (let i = 0; i < 8; i++) {
61
+ this.applyMask(i);
62
+ this.drawFormatBits(i);
63
+ const penalty = this.getPenaltyScore();
64
+ if (penalty < minPenalty) {
65
+ msk = i;
66
+ minPenalty = penalty;
67
+ }
68
+ this.applyMask(i);
69
+ }
70
+ }
71
+ assert(0 <= msk && msk <= 7);
72
+ this.mask = msk;
73
+ this.applyMask(msk);
74
+ this.drawFormatBits(msk);
75
+ this.isFunction = [];
76
+ }
77
+ /*-- Static factory functions (high level) --*/
78
+ // Returns a QR Code representing the given Unicode text string at the given error correction level.
79
+ // As a conservative upper bound, this function is guaranteed to succeed for strings that have 738 or fewer
80
+ // Unicode code points (not UTF-16 code units) if the low error correction level is used. The smallest possible
81
+ // QR Code version is automatically chosen for the output. The ECC level of the result may be higher than the
82
+ // ecl argument if it can be done without increasing the version.
83
+ static encodeText(text, ecl) {
84
+ const segs = qrcodegen2.QrSegment.makeSegments(text);
85
+ return _QrCode2.encodeSegments(segs, ecl);
86
+ }
87
+ // Returns a QR Code representing the given binary data at the given error correction level.
88
+ // This function always encodes using the binary segment mode, not any text mode. The maximum number of
89
+ // bytes allowed is 2953. The smallest possible QR Code version is automatically chosen for the output.
90
+ // The ECC level of the result may be higher than the ecl argument if it can be done without increasing the version.
91
+ static encodeBinary(data, ecl) {
92
+ const seg = qrcodegen2.QrSegment.makeBytes(data);
93
+ return _QrCode2.encodeSegments([seg], ecl);
94
+ }
95
+ /*-- Static factory functions (mid level) --*/
96
+ // Returns a QR Code representing the given segments with the given encoding parameters.
97
+ // The smallest possible QR Code version within the given range is automatically
98
+ // chosen for the output. Iff boostEcl is true, then the ECC level of the result
99
+ // may be higher than the ecl argument if it can be done without increasing the
100
+ // version. The mask number is either between 0 to 7 (inclusive) to force that
101
+ // mask, or -1 to automatically choose an appropriate mask (which may be slow).
102
+ // This function allows the user to create a custom sequence of segments that switches
103
+ // between modes (such as alphanumeric and byte) to encode text in less space.
104
+ // This is a mid-level API; the high-level API is encodeText() and encodeBinary().
105
+ static encodeSegments(segs, ecl, minVersion = 1, maxVersion = 40, mask = -1, boostEcl = true) {
106
+ if (!(_QrCode2.MIN_VERSION <= minVersion && minVersion <= maxVersion && maxVersion <= _QrCode2.MAX_VERSION) || mask < -1 || mask > 7)
107
+ throw new RangeError("Invalid value");
108
+ let version;
109
+ let dataUsedBits;
110
+ for (version = minVersion; ; version++) {
111
+ const dataCapacityBits2 = _QrCode2.getNumDataCodewords(version, ecl) * 8;
112
+ const usedBits = QrSegment.getTotalBits(segs, version);
113
+ if (usedBits <= dataCapacityBits2) {
114
+ dataUsedBits = usedBits;
115
+ break;
116
+ }
117
+ if (version >= maxVersion)
118
+ throw new RangeError("Data too long");
119
+ }
120
+ for (const newEcl of [_QrCode2.Ecc.MEDIUM, _QrCode2.Ecc.QUARTILE, _QrCode2.Ecc.HIGH]) {
121
+ if (boostEcl && dataUsedBits <= _QrCode2.getNumDataCodewords(version, newEcl) * 8)
122
+ ecl = newEcl;
123
+ }
124
+ let bb = [];
125
+ for (const seg of segs) {
126
+ appendBits(seg.mode.modeBits, 4, bb);
127
+ appendBits(seg.numChars, seg.mode.numCharCountBits(version), bb);
128
+ for (const b of seg.getData())
129
+ bb.push(b);
130
+ }
131
+ assert(bb.length == dataUsedBits);
132
+ const dataCapacityBits = _QrCode2.getNumDataCodewords(version, ecl) * 8;
133
+ assert(bb.length <= dataCapacityBits);
134
+ appendBits(0, Math.min(4, dataCapacityBits - bb.length), bb);
135
+ appendBits(0, (8 - bb.length % 8) % 8, bb);
136
+ assert(bb.length % 8 == 0);
137
+ for (let padByte = 236; bb.length < dataCapacityBits; padByte ^= 236 ^ 17)
138
+ appendBits(padByte, 8, bb);
139
+ let dataCodewords = [];
140
+ while (dataCodewords.length * 8 < bb.length)
141
+ dataCodewords.push(0);
142
+ bb.forEach((b, i) => dataCodewords[i >>> 3] |= b << 7 - (i & 7));
143
+ return new _QrCode2(version, ecl, dataCodewords, mask);
144
+ }
145
+ /*-- Accessor methods --*/
146
+ // Returns the color of the module (pixel) at the given coordinates, which is false
147
+ // for light or true for dark. The top left corner has the coordinates (x=0, y=0).
148
+ // If the given coordinates are out of bounds, then false (light) is returned.
149
+ getModule(x, y) {
150
+ return 0 <= x && x < this.size && 0 <= y && y < this.size && this.modules[y][x];
151
+ }
152
+ // Modified to expose modules for easy access
153
+ getModules() {
154
+ return this.modules;
155
+ }
156
+ /*-- Private helper methods for constructor: Drawing function modules --*/
157
+ // Reads this object's version field, and draws and marks all function modules.
158
+ drawFunctionPatterns() {
159
+ for (let i = 0; i < this.size; i++) {
160
+ this.setFunctionModule(6, i, i % 2 == 0);
161
+ this.setFunctionModule(i, 6, i % 2 == 0);
162
+ }
163
+ this.drawFinderPattern(3, 3);
164
+ this.drawFinderPattern(this.size - 4, 3);
165
+ this.drawFinderPattern(3, this.size - 4);
166
+ const alignPatPos = this.getAlignmentPatternPositions();
167
+ const numAlign = alignPatPos.length;
168
+ for (let i = 0; i < numAlign; i++) {
169
+ for (let j = 0; j < numAlign; j++) {
170
+ if (!(i == 0 && j == 0 || i == 0 && j == numAlign - 1 || i == numAlign - 1 && j == 0))
171
+ this.drawAlignmentPattern(alignPatPos[i], alignPatPos[j]);
172
+ }
173
+ }
174
+ this.drawFormatBits(0);
175
+ this.drawVersion();
176
+ }
177
+ // Draws two copies of the format bits (with its own error correction code)
178
+ // based on the given mask and this object's error correction level field.
179
+ drawFormatBits(mask) {
180
+ const data = this.errorCorrectionLevel.formatBits << 3 | mask;
181
+ let rem = data;
182
+ for (let i = 0; i < 10; i++)
183
+ rem = rem << 1 ^ (rem >>> 9) * 1335;
184
+ const bits = (data << 10 | rem) ^ 21522;
185
+ assert(bits >>> 15 == 0);
186
+ for (let i = 0; i <= 5; i++)
187
+ this.setFunctionModule(8, i, getBit(bits, i));
188
+ this.setFunctionModule(8, 7, getBit(bits, 6));
189
+ this.setFunctionModule(8, 8, getBit(bits, 7));
190
+ this.setFunctionModule(7, 8, getBit(bits, 8));
191
+ for (let i = 9; i < 15; i++)
192
+ this.setFunctionModule(14 - i, 8, getBit(bits, i));
193
+ for (let i = 0; i < 8; i++)
194
+ this.setFunctionModule(this.size - 1 - i, 8, getBit(bits, i));
195
+ for (let i = 8; i < 15; i++)
196
+ this.setFunctionModule(8, this.size - 15 + i, getBit(bits, i));
197
+ this.setFunctionModule(8, this.size - 8, true);
198
+ }
199
+ // Draws two copies of the version bits (with its own error correction code),
200
+ // based on this object's version field, iff 7 <= version <= 40.
201
+ drawVersion() {
202
+ if (this.version < 7)
203
+ return;
204
+ let rem = this.version;
205
+ for (let i = 0; i < 12; i++)
206
+ rem = rem << 1 ^ (rem >>> 11) * 7973;
207
+ const bits = this.version << 12 | rem;
208
+ assert(bits >>> 18 == 0);
209
+ for (let i = 0; i < 18; i++) {
210
+ const color = getBit(bits, i);
211
+ const a = this.size - 11 + i % 3;
212
+ const b = Math.floor(i / 3);
213
+ this.setFunctionModule(a, b, color);
214
+ this.setFunctionModule(b, a, color);
215
+ }
216
+ }
217
+ // Draws a 9*9 finder pattern including the border separator,
218
+ // with the center module at (x, y). Modules can be out of bounds.
219
+ drawFinderPattern(x, y) {
220
+ for (let dy = -4; dy <= 4; dy++) {
221
+ for (let dx = -4; dx <= 4; dx++) {
222
+ const dist = Math.max(Math.abs(dx), Math.abs(dy));
223
+ const xx = x + dx;
224
+ const yy = y + dy;
225
+ if (0 <= xx && xx < this.size && 0 <= yy && yy < this.size)
226
+ this.setFunctionModule(xx, yy, dist != 2 && dist != 4);
227
+ }
228
+ }
229
+ }
230
+ // Draws a 5*5 alignment pattern, with the center module
231
+ // at (x, y). All modules must be in bounds.
232
+ drawAlignmentPattern(x, y) {
233
+ for (let dy = -2; dy <= 2; dy++) {
234
+ for (let dx = -2; dx <= 2; dx++)
235
+ this.setFunctionModule(x + dx, y + dy, Math.max(Math.abs(dx), Math.abs(dy)) != 1);
236
+ }
237
+ }
238
+ // Sets the color of a module and marks it as a function module.
239
+ // Only used by the constructor. Coordinates must be in bounds.
240
+ setFunctionModule(x, y, isDark) {
241
+ this.modules[y][x] = isDark;
242
+ this.isFunction[y][x] = true;
243
+ }
244
+ /*-- Private helper methods for constructor: Codewords and masking --*/
245
+ // Returns a new byte string representing the given data with the appropriate error correction
246
+ // codewords appended to it, based on this object's version and error correction level.
247
+ addEccAndInterleave(data) {
248
+ const ver = this.version;
249
+ const ecl = this.errorCorrectionLevel;
250
+ if (data.length != _QrCode2.getNumDataCodewords(ver, ecl))
251
+ throw new RangeError("Invalid argument");
252
+ const numBlocks = _QrCode2.NUM_ERROR_CORRECTION_BLOCKS[ecl.ordinal][ver];
253
+ const blockEccLen = _QrCode2.ECC_CODEWORDS_PER_BLOCK[ecl.ordinal][ver];
254
+ const rawCodewords = Math.floor(_QrCode2.getNumRawDataModules(ver) / 8);
255
+ const numShortBlocks = numBlocks - rawCodewords % numBlocks;
256
+ const shortBlockLen = Math.floor(rawCodewords / numBlocks);
257
+ let blocks = [];
258
+ const rsDiv = _QrCode2.reedSolomonComputeDivisor(blockEccLen);
259
+ for (let i = 0, k = 0; i < numBlocks; i++) {
260
+ let dat = data.slice(k, k + shortBlockLen - blockEccLen + (i < numShortBlocks ? 0 : 1));
261
+ k += dat.length;
262
+ const ecc = _QrCode2.reedSolomonComputeRemainder(dat, rsDiv);
263
+ if (i < numShortBlocks)
264
+ dat.push(0);
265
+ blocks.push(dat.concat(ecc));
266
+ }
267
+ let result = [];
268
+ for (let i = 0; i < blocks[0].length; i++) {
269
+ blocks.forEach((block, j) => {
270
+ if (i != shortBlockLen - blockEccLen || j >= numShortBlocks)
271
+ result.push(block[i]);
272
+ });
273
+ }
274
+ assert(result.length == rawCodewords);
275
+ return result;
276
+ }
277
+ // Draws the given sequence of 8-bit codewords (data and error correction) onto the entire
278
+ // data area of this QR Code. Function modules need to be marked off before this is called.
279
+ drawCodewords(data) {
280
+ if (data.length != Math.floor(_QrCode2.getNumRawDataModules(this.version) / 8))
281
+ throw new RangeError("Invalid argument");
282
+ let i = 0;
283
+ for (let right = this.size - 1; right >= 1; right -= 2) {
284
+ if (right == 6)
285
+ right = 5;
286
+ for (let vert = 0; vert < this.size; vert++) {
287
+ for (let j = 0; j < 2; j++) {
288
+ const x = right - j;
289
+ const upward = (right + 1 & 2) == 0;
290
+ const y = upward ? this.size - 1 - vert : vert;
291
+ if (!this.isFunction[y][x] && i < data.length * 8) {
292
+ this.modules[y][x] = getBit(data[i >>> 3], 7 - (i & 7));
293
+ i++;
294
+ }
295
+ }
296
+ }
297
+ }
298
+ assert(i == data.length * 8);
299
+ }
300
+ // XORs the codeword modules in this QR Code with the given mask pattern.
301
+ // The function modules must be marked and the codeword bits must be drawn
302
+ // before masking. Due to the arithmetic of XOR, calling applyMask() with
303
+ // the same mask value a second time will undo the mask. A final well-formed
304
+ // QR Code needs exactly one (not zero, two, etc.) mask applied.
305
+ applyMask(mask) {
306
+ if (mask < 0 || mask > 7)
307
+ throw new RangeError("Mask value out of range");
308
+ for (let y = 0; y < this.size; y++) {
309
+ for (let x = 0; x < this.size; x++) {
310
+ let invert;
311
+ switch (mask) {
312
+ case 0:
313
+ invert = (x + y) % 2 == 0;
314
+ break;
315
+ case 1:
316
+ invert = y % 2 == 0;
317
+ break;
318
+ case 2:
319
+ invert = x % 3 == 0;
320
+ break;
321
+ case 3:
322
+ invert = (x + y) % 3 == 0;
323
+ break;
324
+ case 4:
325
+ invert = (Math.floor(x / 3) + Math.floor(y / 2)) % 2 == 0;
326
+ break;
327
+ case 5:
328
+ invert = x * y % 2 + x * y % 3 == 0;
329
+ break;
330
+ case 6:
331
+ invert = (x * y % 2 + x * y % 3) % 2 == 0;
332
+ break;
333
+ case 7:
334
+ invert = ((x + y) % 2 + x * y % 3) % 2 == 0;
335
+ break;
336
+ default:
337
+ throw new Error("Unreachable");
338
+ }
339
+ if (!this.isFunction[y][x] && invert)
340
+ this.modules[y][x] = !this.modules[y][x];
341
+ }
342
+ }
343
+ }
344
+ // Calculates and returns the penalty score based on state of this QR Code's current modules.
345
+ // This is used by the automatic mask choice algorithm to find the mask pattern that yields the lowest score.
346
+ getPenaltyScore() {
347
+ let result = 0;
348
+ for (let y = 0; y < this.size; y++) {
349
+ let runColor = false;
350
+ let runX = 0;
351
+ let runHistory = [0, 0, 0, 0, 0, 0, 0];
352
+ for (let x = 0; x < this.size; x++) {
353
+ if (this.modules[y][x] == runColor) {
354
+ runX++;
355
+ if (runX == 5)
356
+ result += _QrCode2.PENALTY_N1;
357
+ else if (runX > 5)
358
+ result++;
359
+ } else {
360
+ this.finderPenaltyAddHistory(runX, runHistory);
361
+ if (!runColor)
362
+ result += this.finderPenaltyCountPatterns(runHistory) * _QrCode2.PENALTY_N3;
363
+ runColor = this.modules[y][x];
364
+ runX = 1;
365
+ }
366
+ }
367
+ result += this.finderPenaltyTerminateAndCount(runColor, runX, runHistory) * _QrCode2.PENALTY_N3;
368
+ }
369
+ for (let x = 0; x < this.size; x++) {
370
+ let runColor = false;
371
+ let runY = 0;
372
+ let runHistory = [0, 0, 0, 0, 0, 0, 0];
373
+ for (let y = 0; y < this.size; y++) {
374
+ if (this.modules[y][x] == runColor) {
375
+ runY++;
376
+ if (runY == 5)
377
+ result += _QrCode2.PENALTY_N1;
378
+ else if (runY > 5)
379
+ result++;
380
+ } else {
381
+ this.finderPenaltyAddHistory(runY, runHistory);
382
+ if (!runColor)
383
+ result += this.finderPenaltyCountPatterns(runHistory) * _QrCode2.PENALTY_N3;
384
+ runColor = this.modules[y][x];
385
+ runY = 1;
386
+ }
387
+ }
388
+ result += this.finderPenaltyTerminateAndCount(runColor, runY, runHistory) * _QrCode2.PENALTY_N3;
389
+ }
390
+ for (let y = 0; y < this.size - 1; y++) {
391
+ for (let x = 0; x < this.size - 1; x++) {
392
+ const color = this.modules[y][x];
393
+ if (color == this.modules[y][x + 1] && color == this.modules[y + 1][x] && color == this.modules[y + 1][x + 1])
394
+ result += _QrCode2.PENALTY_N2;
395
+ }
396
+ }
397
+ let dark = 0;
398
+ for (const row of this.modules)
399
+ dark = row.reduce((sum, color) => sum + (color ? 1 : 0), dark);
400
+ const total = this.size * this.size;
401
+ const k = Math.ceil(Math.abs(dark * 20 - total * 10) / total) - 1;
402
+ assert(0 <= k && k <= 9);
403
+ result += k * _QrCode2.PENALTY_N4;
404
+ assert(0 <= result && result <= 2568888);
405
+ return result;
406
+ }
407
+ /*-- Private helper functions --*/
408
+ // Returns an ascending list of positions of alignment patterns for this version number.
409
+ // Each position is in the range [0,177), and are used on both the x and y axes.
410
+ // This could be implemented as lookup table of 40 variable-length lists of integers.
411
+ getAlignmentPatternPositions() {
412
+ if (this.version == 1)
413
+ return [];
414
+ else {
415
+ const numAlign = Math.floor(this.version / 7) + 2;
416
+ const step = this.version == 32 ? 26 : Math.ceil((this.version * 4 + 4) / (numAlign * 2 - 2)) * 2;
417
+ let result = [6];
418
+ for (let pos = this.size - 7; result.length < numAlign; pos -= step)
419
+ result.splice(1, 0, pos);
420
+ return result;
421
+ }
422
+ }
423
+ // Returns the number of data bits that can be stored in a QR Code of the given version number, after
424
+ // all function modules are excluded. This includes remainder bits, so it might not be a multiple of 8.
425
+ // The result is in the range [208, 29648]. This could be implemented as a 40-entry lookup table.
426
+ static getNumRawDataModules(ver) {
427
+ if (ver < _QrCode2.MIN_VERSION || ver > _QrCode2.MAX_VERSION)
428
+ throw new RangeError("Version number out of range");
429
+ let result = (16 * ver + 128) * ver + 64;
430
+ if (ver >= 2) {
431
+ const numAlign = Math.floor(ver / 7) + 2;
432
+ result -= (25 * numAlign - 10) * numAlign - 55;
433
+ if (ver >= 7)
434
+ result -= 36;
435
+ }
436
+ assert(208 <= result && result <= 29648);
437
+ return result;
438
+ }
439
+ // Returns the number of 8-bit data (i.e. not error correction) codewords contained in any
440
+ // QR Code of the given version number and error correction level, with remainder bits discarded.
441
+ // This stateless pure function could be implemented as a (40*4)-cell lookup table.
442
+ static getNumDataCodewords(ver, ecl) {
443
+ return Math.floor(_QrCode2.getNumRawDataModules(ver) / 8) - _QrCode2.ECC_CODEWORDS_PER_BLOCK[ecl.ordinal][ver] * _QrCode2.NUM_ERROR_CORRECTION_BLOCKS[ecl.ordinal][ver];
444
+ }
445
+ // Returns a Reed-Solomon ECC generator polynomial for the given degree. This could be
446
+ // implemented as a lookup table over all possible parameter values, instead of as an algorithm.
447
+ static reedSolomonComputeDivisor(degree) {
448
+ if (degree < 1 || degree > 255)
449
+ throw new RangeError("Degree out of range");
450
+ let result = [];
451
+ for (let i = 0; i < degree - 1; i++)
452
+ result.push(0);
453
+ result.push(1);
454
+ let root = 1;
455
+ for (let i = 0; i < degree; i++) {
456
+ for (let j = 0; j < result.length; j++) {
457
+ result[j] = _QrCode2.reedSolomonMultiply(result[j], root);
458
+ if (j + 1 < result.length)
459
+ result[j] ^= result[j + 1];
460
+ }
461
+ root = _QrCode2.reedSolomonMultiply(root, 2);
462
+ }
463
+ return result;
464
+ }
465
+ // Returns the Reed-Solomon error correction codeword for the given data and divisor polynomials.
466
+ static reedSolomonComputeRemainder(data, divisor) {
467
+ let result = divisor.map((_) => 0);
468
+ for (const b of data) {
469
+ const factor = b ^ result.shift();
470
+ result.push(0);
471
+ divisor.forEach((coef, i) => result[i] ^= _QrCode2.reedSolomonMultiply(coef, factor));
472
+ }
473
+ return result;
474
+ }
475
+ // Returns the product of the two given field elements modulo GF(2^8/0x11D). The arguments and result
476
+ // are unsigned 8-bit integers. This could be implemented as a lookup table of 256*256 entries of uint8.
477
+ static reedSolomonMultiply(x, y) {
478
+ if (x >>> 8 != 0 || y >>> 8 != 0)
479
+ throw new RangeError("Byte out of range");
480
+ let z = 0;
481
+ for (let i = 7; i >= 0; i--) {
482
+ z = z << 1 ^ (z >>> 7) * 285;
483
+ z ^= (y >>> i & 1) * x;
484
+ }
485
+ assert(z >>> 8 == 0);
486
+ return z;
487
+ }
488
+ // Can only be called immediately after a light run is added, and
489
+ // returns either 0, 1, or 2. A helper function for getPenaltyScore().
490
+ finderPenaltyCountPatterns(runHistory) {
491
+ const n = runHistory[1];
492
+ assert(n <= this.size * 3);
493
+ const core = n > 0 && runHistory[2] == n && runHistory[3] == n * 3 && runHistory[4] == n && runHistory[5] == n;
494
+ return (core && runHistory[0] >= n * 4 && runHistory[6] >= n ? 1 : 0) + (core && runHistory[6] >= n * 4 && runHistory[0] >= n ? 1 : 0);
495
+ }
496
+ // Must be called at the end of a line (row or column) of modules. A helper function for getPenaltyScore().
497
+ finderPenaltyTerminateAndCount(currentRunColor, currentRunLength, runHistory) {
498
+ if (currentRunColor) {
499
+ this.finderPenaltyAddHistory(currentRunLength, runHistory);
500
+ currentRunLength = 0;
501
+ }
502
+ currentRunLength += this.size;
503
+ this.finderPenaltyAddHistory(currentRunLength, runHistory);
504
+ return this.finderPenaltyCountPatterns(runHistory);
505
+ }
506
+ // Pushes the given value to the front and drops the last value. A helper function for getPenaltyScore().
507
+ finderPenaltyAddHistory(currentRunLength, runHistory) {
508
+ if (runHistory[0] == 0)
509
+ currentRunLength += this.size;
510
+ runHistory.pop();
511
+ runHistory.unshift(currentRunLength);
512
+ }
513
+ };
514
+ _QrCode.MIN_VERSION = 1;
515
+ _QrCode.MAX_VERSION = 40;
516
+ _QrCode.PENALTY_N1 = 3;
517
+ _QrCode.PENALTY_N2 = 3;
518
+ _QrCode.PENALTY_N3 = 40;
519
+ _QrCode.PENALTY_N4 = 10;
520
+ _QrCode.ECC_CODEWORDS_PER_BLOCK = [
521
+ // Version: (note that index 0 is for padding, and is set to an illegal value)
522
+ //0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40 Error correction level
523
+ [-1, 7, 10, 15, 20, 26, 18, 20, 24, 30, 18, 20, 24, 26, 30, 22, 24, 28, 30, 28, 28, 28, 28, 30, 30, 26, 28, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30],
524
+ // Low
525
+ [-1, 10, 16, 26, 18, 24, 16, 18, 22, 22, 26, 30, 22, 22, 24, 24, 28, 28, 26, 26, 26, 26, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28],
526
+ // Medium
527
+ [-1, 13, 22, 18, 26, 18, 24, 18, 22, 20, 24, 28, 26, 24, 20, 30, 24, 28, 28, 26, 30, 28, 30, 30, 30, 30, 28, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30],
528
+ // Quartile
529
+ [-1, 17, 28, 22, 16, 22, 28, 26, 26, 24, 28, 24, 28, 22, 24, 24, 30, 28, 28, 26, 28, 30, 24, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30]
530
+ // High
531
+ ];
532
+ _QrCode.NUM_ERROR_CORRECTION_BLOCKS = [
533
+ // Version: (note that index 0 is for padding, and is set to an illegal value)
534
+ //0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40 Error correction level
535
+ [-1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 4, 4, 4, 4, 4, 6, 6, 6, 6, 7, 8, 8, 9, 9, 10, 12, 12, 12, 13, 14, 15, 16, 17, 18, 19, 19, 20, 21, 22, 24, 25],
536
+ // Low
537
+ [-1, 1, 1, 1, 2, 2, 4, 4, 4, 5, 5, 5, 8, 9, 9, 10, 10, 11, 13, 14, 16, 17, 17, 18, 20, 21, 23, 25, 26, 28, 29, 31, 33, 35, 37, 38, 40, 43, 45, 47, 49],
538
+ // Medium
539
+ [-1, 1, 1, 2, 2, 4, 4, 6, 6, 8, 8, 8, 10, 12, 16, 12, 17, 16, 18, 21, 20, 23, 23, 25, 27, 29, 34, 34, 35, 38, 40, 43, 45, 48, 51, 53, 56, 59, 62, 65, 68],
540
+ // Quartile
541
+ [-1, 1, 1, 2, 4, 4, 4, 5, 6, 8, 8, 11, 11, 16, 16, 18, 16, 19, 21, 25, 25, 25, 34, 30, 32, 35, 37, 40, 42, 45, 48, 51, 54, 57, 60, 63, 66, 70, 74, 77, 81]
542
+ // High
543
+ ];
544
+ qrcodegen2.QrCode = _QrCode;
545
+ function appendBits(val, len, bb) {
546
+ if (len < 0 || len > 31 || val >>> len != 0)
547
+ throw new RangeError("Value out of range");
548
+ for (let i = len - 1; i >= 0; i--)
549
+ bb.push(val >>> i & 1);
550
+ }
551
+ function getBit(x, i) {
552
+ return (x >>> i & 1) != 0;
553
+ }
554
+ function assert(cond) {
555
+ if (!cond)
556
+ throw new Error("Assertion error");
557
+ }
558
+ const _QrSegment = class _QrSegment2 {
559
+ /*-- Constructor (low level) and fields --*/
560
+ // Creates a new QR Code segment with the given attributes and data.
561
+ // The character count (numChars) must agree with the mode and the bit buffer length,
562
+ // but the constraint isn't checked. The given bit buffer is cloned and stored.
563
+ constructor(mode, numChars, bitData) {
564
+ this.mode = mode;
565
+ this.numChars = numChars;
566
+ this.bitData = bitData;
567
+ if (numChars < 0)
568
+ throw new RangeError("Invalid argument");
569
+ this.bitData = bitData.slice();
570
+ }
571
+ /*-- Static factory functions (mid level) --*/
572
+ // Returns a segment representing the given binary data encoded in
573
+ // byte mode. All input byte arrays are acceptable. Any text string
574
+ // can be converted to UTF-8 bytes and encoded as a byte mode segment.
575
+ static makeBytes(data) {
576
+ let bb = [];
577
+ for (const b of data)
578
+ appendBits(b, 8, bb);
579
+ return new _QrSegment2(_QrSegment2.Mode.BYTE, data.length, bb);
580
+ }
581
+ // Returns a segment representing the given string of decimal digits encoded in numeric mode.
582
+ static makeNumeric(digits) {
583
+ if (!_QrSegment2.isNumeric(digits))
584
+ throw new RangeError("String contains non-numeric characters");
585
+ let bb = [];
586
+ for (let i = 0; i < digits.length; ) {
587
+ const n = Math.min(digits.length - i, 3);
588
+ appendBits(parseInt(digits.substring(i, i + n), 10), n * 3 + 1, bb);
589
+ i += n;
590
+ }
591
+ return new _QrSegment2(_QrSegment2.Mode.NUMERIC, digits.length, bb);
592
+ }
593
+ // Returns a segment representing the given text string encoded in alphanumeric mode.
594
+ // The characters allowed are: 0 to 9, A to Z (uppercase only), space,
595
+ // dollar, percent, asterisk, plus, hyphen, period, slash, colon.
596
+ static makeAlphanumeric(text) {
597
+ if (!_QrSegment2.isAlphanumeric(text))
598
+ throw new RangeError("String contains unencodable characters in alphanumeric mode");
599
+ let bb = [];
600
+ let i;
601
+ for (i = 0; i + 2 <= text.length; i += 2) {
602
+ let temp = _QrSegment2.ALPHANUMERIC_CHARSET.indexOf(text.charAt(i)) * 45;
603
+ temp += _QrSegment2.ALPHANUMERIC_CHARSET.indexOf(text.charAt(i + 1));
604
+ appendBits(temp, 11, bb);
605
+ }
606
+ if (i < text.length)
607
+ appendBits(_QrSegment2.ALPHANUMERIC_CHARSET.indexOf(text.charAt(i)), 6, bb);
608
+ return new _QrSegment2(_QrSegment2.Mode.ALPHANUMERIC, text.length, bb);
609
+ }
610
+ // Returns a new mutable list of zero or more segments to represent the given Unicode text string.
611
+ // The result may use various segment modes and switch modes to optimize the length of the bit stream.
612
+ static makeSegments(text) {
613
+ if (text == "")
614
+ return [];
615
+ else if (_QrSegment2.isNumeric(text))
616
+ return [_QrSegment2.makeNumeric(text)];
617
+ else if (_QrSegment2.isAlphanumeric(text))
618
+ return [_QrSegment2.makeAlphanumeric(text)];
619
+ else
620
+ return [_QrSegment2.makeBytes(_QrSegment2.toUtf8ByteArray(text))];
621
+ }
622
+ // Returns a segment representing an Extended Channel Interpretation
623
+ // (ECI) designator with the given assignment value.
624
+ static makeEci(assignVal) {
625
+ let bb = [];
626
+ if (assignVal < 0)
627
+ throw new RangeError("ECI assignment value out of range");
628
+ else if (assignVal < 1 << 7)
629
+ appendBits(assignVal, 8, bb);
630
+ else if (assignVal < 1 << 14) {
631
+ appendBits(2, 2, bb);
632
+ appendBits(assignVal, 14, bb);
633
+ } else if (assignVal < 1e6) {
634
+ appendBits(6, 3, bb);
635
+ appendBits(assignVal, 21, bb);
636
+ } else
637
+ throw new RangeError("ECI assignment value out of range");
638
+ return new _QrSegment2(_QrSegment2.Mode.ECI, 0, bb);
639
+ }
640
+ // Tests whether the given string can be encoded as a segment in numeric mode.
641
+ // A string is encodable iff each character is in the range 0 to 9.
642
+ static isNumeric(text) {
643
+ return _QrSegment2.NUMERIC_REGEX.test(text);
644
+ }
645
+ // Tests whether the given string can be encoded as a segment in alphanumeric mode.
646
+ // A string is encodable iff each character is in the following set: 0 to 9, A to Z
647
+ // (uppercase only), space, dollar, percent, asterisk, plus, hyphen, period, slash, colon.
648
+ static isAlphanumeric(text) {
649
+ return _QrSegment2.ALPHANUMERIC_REGEX.test(text);
650
+ }
651
+ /*-- Methods --*/
652
+ // Returns a new copy of the data bits of this segment.
653
+ getData() {
654
+ return this.bitData.slice();
655
+ }
656
+ // (Package-private) Calculates and returns the number of bits needed to encode the given segments at
657
+ // the given version. The result is infinity if a segment has too many characters to fit its length field.
658
+ static getTotalBits(segs, version) {
659
+ let result = 0;
660
+ for (const seg of segs) {
661
+ const ccbits = seg.mode.numCharCountBits(version);
662
+ if (seg.numChars >= 1 << ccbits)
663
+ return Infinity;
664
+ result += 4 + ccbits + seg.bitData.length;
665
+ }
666
+ return result;
667
+ }
668
+ // Returns a new array of bytes representing the given string encoded in UTF-8.
669
+ static toUtf8ByteArray(str) {
670
+ str = encodeURI(str);
671
+ let result = [];
672
+ for (let i = 0; i < str.length; i++) {
673
+ if (str.charAt(i) != "%")
674
+ result.push(str.charCodeAt(i));
675
+ else {
676
+ result.push(parseInt(str.substring(i + 1, i + 3), 16));
677
+ i += 2;
678
+ }
679
+ }
680
+ return result;
681
+ }
682
+ };
683
+ _QrSegment.NUMERIC_REGEX = /^[0-9]*$/;
684
+ _QrSegment.ALPHANUMERIC_REGEX = /^[A-Z0-9 $%*+.\/:-]*$/;
685
+ _QrSegment.ALPHANUMERIC_CHARSET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";
686
+ let QrSegment = _QrSegment;
687
+ qrcodegen2.QrSegment = _QrSegment;
688
+ })(qrcodegen || (qrcodegen = {}));
689
+ ((qrcodegen2) => {
690
+ ((QrCode2) => {
691
+ const _Ecc = class _Ecc {
692
+ // The QR Code can tolerate about 30% erroneous codewords
693
+ /*-- Constructor and fields --*/
694
+ constructor(ordinal, formatBits) {
695
+ this.ordinal = ordinal;
696
+ this.formatBits = formatBits;
697
+ }
698
+ };
699
+ _Ecc.LOW = new _Ecc(0, 1);
700
+ _Ecc.MEDIUM = new _Ecc(1, 0);
701
+ _Ecc.QUARTILE = new _Ecc(2, 3);
702
+ _Ecc.HIGH = new _Ecc(3, 2);
703
+ QrCode2.Ecc = _Ecc;
704
+ })(qrcodegen2.QrCode || (qrcodegen2.QrCode = {}));
705
+ })(qrcodegen || (qrcodegen = {}));
706
+ ((qrcodegen2) => {
707
+ ((QrSegment2) => {
708
+ const _Mode = class _Mode {
709
+ /*-- Constructor and fields --*/
710
+ constructor(modeBits, numBitsCharCount) {
711
+ this.modeBits = modeBits;
712
+ this.numBitsCharCount = numBitsCharCount;
713
+ }
714
+ /*-- Method --*/
715
+ // (Package-private) Returns the bit width of the character count field for a segment in
716
+ // this mode in a QR Code at the given version number. The result is in the range [0, 16].
717
+ numCharCountBits(ver) {
718
+ return this.numBitsCharCount[Math.floor((ver + 7) / 17)];
719
+ }
720
+ };
721
+ _Mode.NUMERIC = new _Mode(1, [10, 12, 14]);
722
+ _Mode.ALPHANUMERIC = new _Mode(2, [9, 11, 13]);
723
+ _Mode.BYTE = new _Mode(4, [8, 16, 16]);
724
+ _Mode.KANJI = new _Mode(8, [8, 10, 12]);
725
+ _Mode.ECI = new _Mode(7, [0, 0, 0]);
726
+ QrSegment2.Mode = _Mode;
727
+ })(qrcodegen2.QrSegment || (qrcodegen2.QrSegment = {}));
728
+ })(qrcodegen || (qrcodegen = {}));
729
+ var qrcodegen_default = qrcodegen;
730
+ var ERROR_LEVEL_MAP = {
731
+ L: qrcodegen_default.QrCode.Ecc.LOW,
732
+ M: qrcodegen_default.QrCode.Ecc.MEDIUM,
733
+ Q: qrcodegen_default.QrCode.Ecc.QUARTILE,
734
+ H: qrcodegen_default.QrCode.Ecc.HIGH
735
+ };
736
+ var DEFAULT_SIZE = 128;
737
+ var DEFAULT_LEVEL = "L";
738
+ var DEFAULT_BGCOLOR = "#FFFFFF";
739
+ var DEFAULT_FGCOLOR = "#000000";
740
+ var DEFAULT_INCLUDEMARGIN = false;
741
+ var DEFAULT_MINVERSION = 1;
742
+ var SPEC_MARGIN_SIZE = 4;
743
+ var DEFAULT_MARGIN_SIZE = 0;
744
+ var DEFAULT_IMG_SCALE = 0.1;
745
+ function generatePath(modules, margin = 0) {
746
+ const ops = [];
747
+ modules.forEach(function(row, y) {
748
+ let start = null;
749
+ row.forEach(function(cell, x) {
750
+ if (!cell && start !== null) {
751
+ ops.push(
752
+ `M${start + margin} ${y + margin}h${x - start}v1H${start + margin}z`
753
+ );
754
+ start = null;
755
+ return;
756
+ }
757
+ if (x === row.length - 1) {
758
+ if (!cell) {
759
+ return;
760
+ }
761
+ if (start === null) {
762
+ ops.push(`M${x + margin},${y + margin} h1v1H${x + margin}z`);
763
+ } else {
764
+ ops.push(
765
+ `M${start + margin},${y + margin} h${x + 1 - start}v1H${start + margin}z`
766
+ );
767
+ }
768
+ return;
769
+ }
770
+ if (cell && start === null) {
771
+ start = x;
772
+ }
773
+ });
774
+ });
775
+ return ops.join("");
776
+ }
777
+ function excavateModules(modules, excavation) {
778
+ return modules.slice().map((row, y) => {
779
+ if (y < excavation.y || y >= excavation.y + excavation.h) {
780
+ return row;
781
+ }
782
+ return row.map((cell, x) => {
783
+ if (x < excavation.x || x >= excavation.x + excavation.w) {
784
+ return cell;
785
+ }
786
+ return false;
787
+ });
788
+ });
789
+ }
790
+ function getImageSettings(cells, size, margin, imageSettings) {
791
+ if (imageSettings == null) {
792
+ return null;
793
+ }
794
+ const numCells = cells.length + margin * 2;
795
+ const defaultSize = Math.floor(size * DEFAULT_IMG_SCALE);
796
+ const scale = numCells / size;
797
+ const w = (imageSettings.width || defaultSize) * scale;
798
+ const h = (imageSettings.height || defaultSize) * scale;
799
+ const x = imageSettings.x == null ? cells.length / 2 - w / 2 : imageSettings.x * scale;
800
+ const y = imageSettings.y == null ? cells.length / 2 - h / 2 : imageSettings.y * scale;
801
+ const opacity = imageSettings.opacity == null ? 1 : imageSettings.opacity;
802
+ let excavation = null;
803
+ if (imageSettings.excavate) {
804
+ let floorX = Math.floor(x);
805
+ let floorY = Math.floor(y);
806
+ let ceilW = Math.ceil(w + x - floorX);
807
+ let ceilH = Math.ceil(h + y - floorY);
808
+ excavation = { x: floorX, y: floorY, w: ceilW, h: ceilH };
809
+ }
810
+ const crossOrigin = imageSettings.crossOrigin;
811
+ return { x, y, h, w, excavation, opacity, crossOrigin };
812
+ }
813
+ function getMarginSize(includeMargin, marginSize) {
814
+ if (marginSize != null) {
815
+ return Math.max(Math.floor(marginSize), 0);
816
+ }
817
+ return includeMargin ? SPEC_MARGIN_SIZE : DEFAULT_MARGIN_SIZE;
818
+ }
819
+ function useQRCode({
820
+ value,
821
+ level,
822
+ minVersion,
823
+ includeMargin,
824
+ marginSize,
825
+ imageSettings,
826
+ size,
827
+ boostLevel
828
+ }) {
829
+ let qrcode = React__default.useMemo(() => {
830
+ const values = Array.isArray(value) ? value : [value];
831
+ const segments = values.reduce((accum, v) => {
832
+ accum.push(...qrcodegen_default.QrSegment.makeSegments(v));
833
+ return accum;
834
+ }, []);
835
+ return qrcodegen_default.QrCode.encodeSegments(
836
+ segments,
837
+ ERROR_LEVEL_MAP[level],
838
+ minVersion,
839
+ void 0,
840
+ void 0,
841
+ boostLevel
842
+ );
843
+ }, [value, level, minVersion, boostLevel]);
844
+ const { cells, margin, numCells, calculatedImageSettings } = React__default.useMemo(() => {
845
+ let cells2 = qrcode.getModules();
846
+ const margin2 = getMarginSize(includeMargin, marginSize);
847
+ const numCells2 = cells2.length + margin2 * 2;
848
+ const calculatedImageSettings2 = getImageSettings(
849
+ cells2,
850
+ size,
851
+ margin2,
852
+ imageSettings
853
+ );
854
+ return {
855
+ cells: cells2,
856
+ margin: margin2,
857
+ numCells: numCells2,
858
+ calculatedImageSettings: calculatedImageSettings2
859
+ };
860
+ }, [qrcode, size, imageSettings, includeMargin, marginSize]);
861
+ return {
862
+ qrcode,
863
+ margin,
864
+ cells,
865
+ numCells,
866
+ calculatedImageSettings
867
+ };
868
+ }
869
+ var SUPPORTS_PATH2D = (function() {
870
+ try {
871
+ new Path2D().addPath(new Path2D());
872
+ } catch (e) {
873
+ return false;
874
+ }
875
+ return true;
876
+ })();
877
+ var QRCodeCanvas = React__default.forwardRef(
878
+ function QRCodeCanvas2(props, forwardedRef) {
879
+ const _a = props, {
880
+ value,
881
+ size = DEFAULT_SIZE,
882
+ level = DEFAULT_LEVEL,
883
+ bgColor = DEFAULT_BGCOLOR,
884
+ fgColor = DEFAULT_FGCOLOR,
885
+ includeMargin = DEFAULT_INCLUDEMARGIN,
886
+ minVersion = DEFAULT_MINVERSION,
887
+ boostLevel,
888
+ marginSize,
889
+ imageSettings
890
+ } = _a, extraProps = __objRest(_a, [
891
+ "value",
892
+ "size",
893
+ "level",
894
+ "bgColor",
895
+ "fgColor",
896
+ "includeMargin",
897
+ "minVersion",
898
+ "boostLevel",
899
+ "marginSize",
900
+ "imageSettings"
901
+ ]);
902
+ const _b = extraProps, { style } = _b, otherProps = __objRest(_b, ["style"]);
903
+ const imgSrc = imageSettings == null ? void 0 : imageSettings.src;
904
+ const _canvas = React__default.useRef(null);
905
+ const _image = React__default.useRef(null);
906
+ const setCanvasRef = React__default.useCallback(
907
+ (node) => {
908
+ _canvas.current = node;
909
+ if (typeof forwardedRef === "function") {
910
+ forwardedRef(node);
911
+ } else if (forwardedRef) {
912
+ forwardedRef.current = node;
913
+ }
914
+ },
915
+ [forwardedRef]
916
+ );
917
+ const [isImgLoaded, setIsImageLoaded] = React__default.useState(false);
918
+ const { margin, cells, numCells, calculatedImageSettings } = useQRCode({
919
+ value,
920
+ level,
921
+ minVersion,
922
+ boostLevel,
923
+ includeMargin,
924
+ marginSize,
925
+ imageSettings,
926
+ size
927
+ });
928
+ React__default.useEffect(() => {
929
+ if (_canvas.current != null) {
930
+ const canvas = _canvas.current;
931
+ const ctx = canvas.getContext("2d");
932
+ if (!ctx) {
933
+ return;
934
+ }
935
+ let cellsToDraw = cells;
936
+ const image = _image.current;
937
+ const haveImageToRender = calculatedImageSettings != null && image !== null && image.complete && image.naturalHeight !== 0 && image.naturalWidth !== 0;
938
+ if (haveImageToRender) {
939
+ if (calculatedImageSettings.excavation != null) {
940
+ cellsToDraw = excavateModules(
941
+ cells,
942
+ calculatedImageSettings.excavation
943
+ );
944
+ }
945
+ }
946
+ const pixelRatio = window.devicePixelRatio || 1;
947
+ canvas.height = canvas.width = size * pixelRatio;
948
+ const scale = size / numCells * pixelRatio;
949
+ ctx.scale(scale, scale);
950
+ ctx.fillStyle = bgColor;
951
+ ctx.fillRect(0, 0, numCells, numCells);
952
+ ctx.fillStyle = fgColor;
953
+ if (SUPPORTS_PATH2D) {
954
+ ctx.fill(new Path2D(generatePath(cellsToDraw, margin)));
955
+ } else {
956
+ cells.forEach(function(row, rdx) {
957
+ row.forEach(function(cell, cdx) {
958
+ if (cell) {
959
+ ctx.fillRect(cdx + margin, rdx + margin, 1, 1);
960
+ }
961
+ });
962
+ });
963
+ }
964
+ if (calculatedImageSettings) {
965
+ ctx.globalAlpha = calculatedImageSettings.opacity;
966
+ }
967
+ if (haveImageToRender) {
968
+ ctx.drawImage(
969
+ image,
970
+ calculatedImageSettings.x + margin,
971
+ calculatedImageSettings.y + margin,
972
+ calculatedImageSettings.w,
973
+ calculatedImageSettings.h
974
+ );
975
+ }
976
+ }
977
+ });
978
+ React__default.useEffect(() => {
979
+ setIsImageLoaded(false);
980
+ }, [imgSrc]);
981
+ const canvasStyle = __spreadValues({ height: size, width: size }, style);
982
+ let img = null;
983
+ if (imgSrc != null) {
984
+ img = /* @__PURE__ */ React__default.createElement(
985
+ "img",
986
+ {
987
+ src: imgSrc,
988
+ key: imgSrc,
989
+ style: { display: "none" },
990
+ onLoad: () => {
991
+ setIsImageLoaded(true);
992
+ },
993
+ ref: _image,
994
+ crossOrigin: calculatedImageSettings == null ? void 0 : calculatedImageSettings.crossOrigin
995
+ }
996
+ );
997
+ }
998
+ return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
999
+ "canvas",
1000
+ __spreadValues({
1001
+ style: canvasStyle,
1002
+ height: size,
1003
+ width: size,
1004
+ ref: setCanvasRef,
1005
+ role: "img"
1006
+ }, otherProps)
1007
+ ), img);
1008
+ }
1009
+ );
1010
+ QRCodeCanvas.displayName = "QRCodeCanvas";
1011
+ var QRCodeSVG = React__default.forwardRef(
1012
+ function QRCodeSVG2(props, forwardedRef) {
1013
+ const _a = props, {
1014
+ value,
1015
+ size = DEFAULT_SIZE,
1016
+ level = DEFAULT_LEVEL,
1017
+ bgColor = DEFAULT_BGCOLOR,
1018
+ fgColor = DEFAULT_FGCOLOR,
1019
+ includeMargin = DEFAULT_INCLUDEMARGIN,
1020
+ minVersion = DEFAULT_MINVERSION,
1021
+ boostLevel,
1022
+ title,
1023
+ marginSize,
1024
+ imageSettings
1025
+ } = _a, otherProps = __objRest(_a, [
1026
+ "value",
1027
+ "size",
1028
+ "level",
1029
+ "bgColor",
1030
+ "fgColor",
1031
+ "includeMargin",
1032
+ "minVersion",
1033
+ "boostLevel",
1034
+ "title",
1035
+ "marginSize",
1036
+ "imageSettings"
1037
+ ]);
1038
+ const { margin, cells, numCells, calculatedImageSettings } = useQRCode({
1039
+ value,
1040
+ level,
1041
+ minVersion,
1042
+ boostLevel,
1043
+ includeMargin,
1044
+ marginSize,
1045
+ imageSettings,
1046
+ size
1047
+ });
1048
+ let cellsToDraw = cells;
1049
+ let image = null;
1050
+ if (imageSettings != null && calculatedImageSettings != null) {
1051
+ if (calculatedImageSettings.excavation != null) {
1052
+ cellsToDraw = excavateModules(
1053
+ cells,
1054
+ calculatedImageSettings.excavation
1055
+ );
1056
+ }
1057
+ image = /* @__PURE__ */ React__default.createElement(
1058
+ "image",
1059
+ {
1060
+ href: imageSettings.src,
1061
+ height: calculatedImageSettings.h,
1062
+ width: calculatedImageSettings.w,
1063
+ x: calculatedImageSettings.x + margin,
1064
+ y: calculatedImageSettings.y + margin,
1065
+ preserveAspectRatio: "none",
1066
+ opacity: calculatedImageSettings.opacity,
1067
+ crossOrigin: calculatedImageSettings.crossOrigin
1068
+ }
1069
+ );
1070
+ }
1071
+ const fgPath = generatePath(cellsToDraw, margin);
1072
+ return /* @__PURE__ */ React__default.createElement(
1073
+ "svg",
1074
+ __spreadValues({
1075
+ height: size,
1076
+ width: size,
1077
+ viewBox: `0 0 ${numCells} ${numCells}`,
1078
+ ref: forwardedRef,
1079
+ role: "img"
1080
+ }, otherProps),
1081
+ !!title && /* @__PURE__ */ React__default.createElement("title", null, title),
1082
+ /* @__PURE__ */ React__default.createElement(
1083
+ "path",
1084
+ {
1085
+ fill: bgColor,
1086
+ d: `M0,0 h${numCells}v${numCells}H0z`,
1087
+ shapeRendering: "crispEdges"
1088
+ }
1089
+ ),
1090
+ /* @__PURE__ */ React__default.createElement("path", { fill: fgColor, d: fgPath, shapeRendering: "crispEdges" }),
1091
+ image
1092
+ );
1093
+ }
1094
+ );
1095
+ QRCodeSVG.displayName = "QRCodeSVG";
1096
+ export {
1097
+ QRCodeCanvas,
1098
+ QRCodeSVG
1099
+ };