@arthurzakharov/ui-kit 1.5.3 → 1.5.5

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 (280) hide show
  1. package/dist/animations/fade-grow/fade-grow.component.d.ts +2 -0
  2. package/dist/animations/{animation-fade-grow/animation-fade-grow.component.js → fade-grow/fade-grow.component.js} +9 -9
  3. package/dist/animations/fade-grow/index.d.ts +1 -0
  4. package/dist/animations/fade-grow/index.js +4 -0
  5. package/dist/animations/fade-scale/fade-scale.component.d.ts +2 -0
  6. package/dist/animations/{animation-fade-scale/animation-fade-scale.component.js → fade-scale/fade-scale.component.js} +10 -10
  7. package/dist/animations/fade-scale/index.d.ts +1 -0
  8. package/dist/animations/fade-scale/index.js +4 -0
  9. package/dist/animations/fade-slide/fade-slide.component.d.ts +6 -0
  10. package/dist/animations/{animation-fade-slide/animation-fade-slide.component.js → fade-slide/fade-slide.component.js} +8 -8
  11. package/dist/animations/fade-slide/index.d.ts +1 -0
  12. package/dist/animations/fade-slide/index.js +4 -0
  13. package/dist/animations/rotate/index.d.ts +1 -0
  14. package/dist/animations/rotate/index.js +4 -0
  15. package/dist/animations/{animation-rotate/animation-rotate.component.d.ts → rotate/rotate.component.d.ts} +2 -2
  16. package/dist/animations/{animation-rotate/animation-rotate.component.js → rotate/rotate.component.js} +6 -6
  17. package/dist/animations/utils/default-props.d.ts +1 -1
  18. package/dist/assets/box-5bAcfszB.css +1 -0
  19. package/dist/assets/button-card-B-nlEbJU.css +1 -0
  20. package/dist/assets/button-radio-CPeNePW2.css +1 -0
  21. package/dist/assets/button-text-BKSERdhL.css +1 -0
  22. package/dist/assets/caption-B28SGRY1.css +1 -0
  23. package/dist/assets/card-image-LY9zvE8g.css +1 -0
  24. package/dist/assets/card-text-sR2uSJyo.css +1 -0
  25. package/dist/assets/checkbox-BzL5bg8o.css +1 -0
  26. package/dist/assets/choice-j496CvVc.css +1 -0
  27. package/dist/assets/dropdown-DLhCAHEx.css +1 -0
  28. package/dist/assets/error-message-CQHYhXbt.css +1 -0
  29. package/dist/assets/hidden-input-DHJQHUKd.css +1 -0
  30. package/dist/assets/input-D66hMzHc.css +1 -0
  31. package/dist/assets/label-BKXQlPJi.css +1 -0
  32. package/dist/assets/{main-DlyWXITA.css → main-Dz2hrn4n.css} +1 -1
  33. package/dist/assets/radio-VoXwCoAp.css +1 -0
  34. package/dist/assets/radio-label-CZHWBUUt.css +1 -0
  35. package/dist/assets/signature-D9gYlpze.css +1 -0
  36. package/dist/assets/status-ZxxbM9u1.css +1 -0
  37. package/dist/assets/text-area-Dgc2jHSx.css +1 -0
  38. package/dist/assets/text-field-Bp4Ra0yN.css +1 -0
  39. package/dist/components/accordion-table/accordion-table.component.js +18 -18
  40. package/dist/components/bottom-bar/bottom-bar.component.d.ts +1 -1
  41. package/dist/components/bottom-bar/bottom-bar.component.js +25 -27
  42. package/dist/components/dialog/dialog.component.js +19108 -60
  43. package/dist/components/dialog-article/dialog-article.component.d.ts +0 -4
  44. package/dist/components/dialog-article/dialog-article.component.js +20 -20
  45. package/dist/components/main-attachment/main-attachment.component.js +7 -7
  46. package/dist/components/payment/components/glass/glass.component.js +2 -2
  47. package/dist/components/sidebar/sidebar.component.d.ts +1 -1
  48. package/dist/components/sidebar/sidebar.component.js +14 -14
  49. package/dist/components/signature/signature.component.d.ts +1 -1
  50. package/dist/components/signature/signature.component.js +848 -783
  51. package/dist/components/text/text.component.d.ts +2 -2
  52. package/dist/components/user-panel/user-panel.component.js +13 -13
  53. package/dist/controls/box/box.component.d.ts +10 -0
  54. package/dist/controls/box/box.component.js +40 -0
  55. package/dist/controls/box/index.d.ts +1 -0
  56. package/dist/controls/box/index.js +4 -0
  57. package/dist/controls/{control-button/control-button.component.d.ts → button/button.component.d.ts} +5 -4
  58. package/dist/controls/button/button.component.js +82 -0
  59. package/dist/controls/button/index.d.ts +1 -0
  60. package/dist/controls/button/index.js +4 -0
  61. package/dist/controls/{control-button-card/control-button-card.component.d.ts → button-card/button-card.component.d.ts} +5 -4
  62. package/dist/controls/button-card/button-card.component.js +79 -0
  63. package/dist/controls/button-card/index.d.ts +1 -0
  64. package/dist/controls/button-card/index.js +4 -0
  65. package/dist/controls/button-radio/button-radio.component.d.ts +20 -0
  66. package/dist/controls/button-radio/button-radio.component.js +83 -0
  67. package/dist/controls/button-radio/index.d.ts +1 -0
  68. package/dist/controls/button-radio/index.js +4 -0
  69. package/dist/controls/{control-button-text/control-button-text.component.d.ts → button-text/button-text.component.d.ts} +4 -4
  70. package/dist/controls/button-text/button-text.component.js +87 -0
  71. package/dist/controls/button-text/index.d.ts +1 -0
  72. package/dist/controls/button-text/index.js +4 -0
  73. package/dist/controls/caption/caption.component.d.ts +10 -0
  74. package/dist/controls/caption/caption.component.js +48 -0
  75. package/dist/controls/caption/index.d.ts +1 -0
  76. package/dist/controls/caption/index.js +4 -0
  77. package/dist/controls/card-image/card-image.component.d.ts +10 -0
  78. package/dist/controls/card-image/card-image.component.js +81 -0
  79. package/dist/controls/card-image/index.d.ts +1 -0
  80. package/dist/controls/card-image/index.js +4 -0
  81. package/dist/controls/card-text/card-text.component.d.ts +9 -0
  82. package/dist/controls/card-text/card-text.component.js +75 -0
  83. package/dist/controls/card-text/index.d.ts +1 -0
  84. package/dist/controls/card-text/index.js +4 -0
  85. package/dist/controls/checkbox/checkbox.component.d.ts +10 -0
  86. package/dist/controls/checkbox/checkbox.component.js +103 -0
  87. package/dist/controls/checkbox/index.d.ts +1 -0
  88. package/dist/controls/checkbox/index.js +4 -0
  89. package/dist/controls/choice/choice.component.d.ts +12 -0
  90. package/dist/controls/choice/choice.component.js +67 -0
  91. package/dist/controls/choice/index.d.ts +1 -0
  92. package/dist/controls/choice/index.js +4 -0
  93. package/dist/controls/{control-dropdown/control-dropdown.component.d.ts → dropdown/dropdown.component.d.ts} +3 -3
  94. package/dist/controls/dropdown/dropdown.component.js +127 -0
  95. package/dist/controls/dropdown/index.d.ts +1 -0
  96. package/dist/controls/dropdown/index.js +4 -0
  97. package/dist/controls/error-message/error-message.component.d.ts +5 -0
  98. package/dist/controls/error-message/error-message.component.js +22 -0
  99. package/dist/controls/error-message/index.d.ts +1 -0
  100. package/dist/controls/error-message/index.js +4 -0
  101. package/dist/controls/hidden-input/hidden-input.component.d.ts +15 -0
  102. package/dist/controls/hidden-input/hidden-input.component.js +38 -0
  103. package/dist/controls/hidden-input/index.d.ts +1 -0
  104. package/dist/controls/hidden-input/index.js +4 -0
  105. package/dist/controls/hooks/index.d.ts +1 -0
  106. package/dist/controls/hooks/index.js +3 -1
  107. package/dist/controls/hooks/use-choice/use-choice.hook.d.ts +2 -2
  108. package/dist/controls/hooks/use-control-interaction/index.d.ts +1 -0
  109. package/dist/controls/hooks/use-control-interaction/index.js +4 -0
  110. package/dist/controls/hooks/use-control-interaction/use-control-interaction.hook.d.ts +7 -0
  111. package/dist/controls/hooks/use-control-interaction/use-control-interaction.hook.js +25 -0
  112. package/dist/controls/index.d.ts +22 -0
  113. package/dist/controls/index.js +50 -0
  114. package/dist/controls/input/index.d.ts +1 -0
  115. package/dist/controls/input/index.js +4 -0
  116. package/dist/controls/input/input.component.d.ts +9 -0
  117. package/dist/controls/input/input.component.js +143 -0
  118. package/dist/controls/input/input.utils.d.ts +10 -0
  119. package/dist/controls/input/input.utils.js +24 -0
  120. package/dist/controls/label/index.d.ts +1 -0
  121. package/dist/controls/label/index.js +4 -0
  122. package/dist/controls/label/label.component.d.ts +8 -0
  123. package/dist/controls/label/label.component.js +33 -0
  124. package/dist/controls/radio/index.d.ts +1 -0
  125. package/dist/controls/radio/index.js +4 -0
  126. package/dist/controls/radio/radio.component.d.ts +12 -0
  127. package/dist/controls/radio/radio.component.js +109 -0
  128. package/dist/controls/radio-label/index.d.ts +1 -0
  129. package/dist/controls/radio-label/index.js +4 -0
  130. package/dist/controls/radio-label/radio-label.component.d.ts +19 -0
  131. package/dist/controls/radio-label/radio-label.component.js +49 -0
  132. package/dist/controls/status/index.d.ts +1 -0
  133. package/dist/controls/status/index.js +4 -0
  134. package/dist/controls/status/status.component.d.ts +6 -0
  135. package/dist/controls/status/status.component.js +36 -0
  136. package/dist/controls/text-area/index.d.ts +1 -0
  137. package/dist/controls/text-area/index.js +4 -0
  138. package/dist/controls/text-area/text-area.component.d.ts +8 -0
  139. package/dist/controls/text-area/text-area.component.js +62 -0
  140. package/dist/controls/text-field/index.d.ts +1 -0
  141. package/dist/controls/text-field/index.js +4 -0
  142. package/dist/controls/text-field/text-field.component.d.ts +10 -0
  143. package/dist/controls/text-field/text-field.component.js +100 -0
  144. package/dist/controls/utils/functions/functions.util.d.ts +0 -1
  145. package/dist/controls/utils/functions/functions.util.js +3 -14
  146. package/dist/controls/utils/functions/index.js +3 -4
  147. package/dist/controls/utils/index.js +3 -4
  148. package/dist/controls/utils/types.d.ts +8 -5
  149. package/dist/{index-PfP8s0Qf.js → index-CPvYWadf.js} +1 -1
  150. package/dist/main.d.ts +25 -24
  151. package/dist/main.js +101 -99
  152. package/dist/{proxy-Cx6n7mT2.js → proxy-CmTphuYR.js} +1762 -1717
  153. package/dist/utils/converter/index.d.ts +1 -0
  154. package/dist/utils/converter/index.js +4 -0
  155. package/dist/utils/functions/functions.util.js +10 -10
  156. package/dist/utils/story/grey-box/grey-box.component.d.ts +9 -0
  157. package/dist/utils/story/grey-box/grey-box.component.js +24 -0
  158. package/dist/utils/story/grey-box/index.d.ts +1 -0
  159. package/dist/utils/story/grey-box/index.js +4 -0
  160. package/dist/utils/story/size-box/index.d.ts +1 -0
  161. package/dist/utils/story/size-box/index.js +4 -0
  162. package/dist/utils/story/size-box/size-box.component.d.ts +6 -0
  163. package/dist/utils/story/size-box/size-box.component.js +5 -0
  164. package/package.json +10 -18
  165. package/dist/_commonjsHelpers-CqEciG1_.js +0 -31
  166. package/dist/animations/animation-fade-grow/animation-fade-grow.component.d.ts +0 -2
  167. package/dist/animations/animation-fade-grow/index.d.ts +0 -1
  168. package/dist/animations/animation-fade-grow/index.js +0 -4
  169. package/dist/animations/animation-fade-scale/animation-fade-scale.component.d.ts +0 -2
  170. package/dist/animations/animation-fade-scale/index.d.ts +0 -1
  171. package/dist/animations/animation-fade-scale/index.js +0 -4
  172. package/dist/animations/animation-fade-slide/animation-fade-slide.component.d.ts +0 -6
  173. package/dist/animations/animation-fade-slide/index.d.ts +0 -1
  174. package/dist/animations/animation-fade-slide/index.js +0 -4
  175. package/dist/animations/animation-rotate/index.d.ts +0 -1
  176. package/dist/animations/animation-rotate/index.js +0 -4
  177. package/dist/assets/control-box-Dx-QKPgf.css +0 -1
  178. package/dist/assets/control-button-card-Cb8_vJbQ.css +0 -1
  179. package/dist/assets/control-button-radio-BodzD0rU.css +0 -1
  180. package/dist/assets/control-button-text-BbE_5ebO.css +0 -1
  181. package/dist/assets/control-card-image-BYT3bzTE.css +0 -1
  182. package/dist/assets/control-card-text-Cvv3bL2p.css +0 -1
  183. package/dist/assets/control-checkbox-uLtXjmYN.css +0 -1
  184. package/dist/assets/control-choice-BAHN-VTm.css +0 -1
  185. package/dist/assets/control-dropdown-DaS5KsvG.css +0 -1
  186. package/dist/assets/control-error-message-CKgqmo1U.css +0 -1
  187. package/dist/assets/control-hidden-input-BhMdNmnP.css +0 -1
  188. package/dist/assets/control-input-nR0XQHHp.css +0 -1
  189. package/dist/assets/control-label-C8pjaWEU.css +0 -1
  190. package/dist/assets/control-radio-Bo1rvcg2.css +0 -1
  191. package/dist/assets/control-radio-label-CgZ-FNj0.css +0 -1
  192. package/dist/assets/control-radio-text-S7MEO4a2.css +0 -1
  193. package/dist/assets/control-status-DPNvkGlM.css +0 -1
  194. package/dist/assets/control-text-n-qi7e2Y.css +0 -1
  195. package/dist/assets/control-textarea-B6gWlJs3.css +0 -1
  196. package/dist/assets/signature-EuXLu4YT.css +0 -1
  197. package/dist/controls/control-box/control-box.component.d.ts +0 -14
  198. package/dist/controls/control-box/control-box.component.js +0 -33
  199. package/dist/controls/control-box/index.d.ts +0 -2
  200. package/dist/controls/control-box/index.js +0 -4
  201. package/dist/controls/control-button/control-button.component.js +0 -84
  202. package/dist/controls/control-button/index.d.ts +0 -2
  203. package/dist/controls/control-button/index.js +0 -4
  204. package/dist/controls/control-button-card/control-button-card.component.js +0 -65
  205. package/dist/controls/control-button-card/index.d.ts +0 -2
  206. package/dist/controls/control-button-card/index.js +0 -4
  207. package/dist/controls/control-button-radio/control-button-radio.component.d.ts +0 -19
  208. package/dist/controls/control-button-radio/control-button-radio.component.js +0 -69
  209. package/dist/controls/control-button-radio/index.d.ts +0 -2
  210. package/dist/controls/control-button-radio/index.js +0 -4
  211. package/dist/controls/control-button-text/control-button-text.component.js +0 -87
  212. package/dist/controls/control-button-text/index.d.ts +0 -2
  213. package/dist/controls/control-button-text/index.js +0 -4
  214. package/dist/controls/control-card-image/control-card-image.component.d.ts +0 -8
  215. package/dist/controls/control-card-image/control-card-image.component.js +0 -53
  216. package/dist/controls/control-card-image/index.d.ts +0 -2
  217. package/dist/controls/control-card-image/index.js +0 -4
  218. package/dist/controls/control-card-text/control-card-text.component.d.ts +0 -7
  219. package/dist/controls/control-card-text/control-card-text.component.js +0 -48
  220. package/dist/controls/control-card-text/index.d.ts +0 -2
  221. package/dist/controls/control-card-text/index.js +0 -4
  222. package/dist/controls/control-checkbox/control-checkbox.component.d.ts +0 -11
  223. package/dist/controls/control-checkbox/control-checkbox.component.js +0 -97
  224. package/dist/controls/control-checkbox/index.d.ts +0 -2
  225. package/dist/controls/control-checkbox/index.js +0 -4
  226. package/dist/controls/control-choice/control-choice.component.d.ts +0 -12
  227. package/dist/controls/control-choice/control-choice.component.js +0 -64
  228. package/dist/controls/control-choice/index.d.ts +0 -2
  229. package/dist/controls/control-choice/index.js +0 -4
  230. package/dist/controls/control-dropdown/control-dropdown.component.js +0 -106
  231. package/dist/controls/control-dropdown/index.d.ts +0 -2
  232. package/dist/controls/control-dropdown/index.js +0 -4
  233. package/dist/controls/control-error-message/control-error-message.component.d.ts +0 -7
  234. package/dist/controls/control-error-message/control-error-message.component.js +0 -16
  235. package/dist/controls/control-error-message/index.d.ts +0 -1
  236. package/dist/controls/control-error-message/index.js +0 -4
  237. package/dist/controls/control-hidden-input/control-hidden-input.component.d.ts +0 -15
  238. package/dist/controls/control-hidden-input/control-hidden-input.component.js +0 -41
  239. package/dist/controls/control-hidden-input/index.d.ts +0 -2
  240. package/dist/controls/control-hidden-input/index.js +0 -4
  241. package/dist/controls/control-input/control-input.component.d.ts +0 -11
  242. package/dist/controls/control-input/control-input.component.js +0 -973
  243. package/dist/controls/control-input/index.d.ts +0 -2
  244. package/dist/controls/control-input/index.js +0 -4
  245. package/dist/controls/control-label/control-label.component.d.ts +0 -13
  246. package/dist/controls/control-label/control-label.component.js +0 -25
  247. package/dist/controls/control-label/index.d.ts +0 -1
  248. package/dist/controls/control-label/index.js +0 -4
  249. package/dist/controls/control-radio/control-radio.component.d.ts +0 -14
  250. package/dist/controls/control-radio/control-radio.component.js +0 -79
  251. package/dist/controls/control-radio/index.d.ts +0 -2
  252. package/dist/controls/control-radio/index.js +0 -4
  253. package/dist/controls/control-radio-label/control-radio-label.component.d.ts +0 -22
  254. package/dist/controls/control-radio-label/control-radio-label.component.js +0 -39
  255. package/dist/controls/control-radio-label/index.d.ts +0 -1
  256. package/dist/controls/control-radio-label/index.js +0 -4
  257. package/dist/controls/control-radio-text/control-radio-text.component.d.ts +0 -10
  258. package/dist/controls/control-radio-text/control-radio-text.component.js +0 -45
  259. package/dist/controls/control-radio-text/index.d.ts +0 -2
  260. package/dist/controls/control-radio-text/index.js +0 -4
  261. package/dist/controls/control-status/control-status.component.d.ts +0 -11
  262. package/dist/controls/control-status/control-status.component.js +0 -42
  263. package/dist/controls/control-status/index.d.ts +0 -1
  264. package/dist/controls/control-status/index.js +0 -4
  265. package/dist/controls/control-text/control-text.component.d.ts +0 -11
  266. package/dist/controls/control-text/control-text.component.js +0 -70
  267. package/dist/controls/control-text/index.d.ts +0 -2
  268. package/dist/controls/control-text/index.js +0 -4
  269. package/dist/controls/control-textarea/control-textarea.component.d.ts +0 -15
  270. package/dist/controls/control-textarea/control-textarea.component.js +0 -63
  271. package/dist/controls/control-textarea/index.d.ts +0 -1
  272. package/dist/controls/control-textarea/index.js +0 -4
  273. package/dist/index-D3EuHLHH.js +0 -19053
  274. /package/dist/animations/{hook → hooks}/index.d.ts +0 -0
  275. /package/dist/animations/{hook → hooks}/index.js +0 -0
  276. /package/dist/animations/{hook → hooks}/use-animation-lifecycle/index.d.ts +0 -0
  277. /package/dist/animations/{hook → hooks}/use-animation-lifecycle/index.js +0 -0
  278. /package/dist/animations/{hook → hooks}/use-animation-lifecycle/use-animation-lifecycle.hook.d.ts +0 -0
  279. /package/dist/animations/{hook → hooks}/use-animation-lifecycle/use-animation-lifecycle.hook.js +0 -0
  280. /package/dist/assets/{control-button-Tzg6F5Dp.css → button-Tzg6F5Dp.css} +0 -0
@@ -1,237 +1,261 @@
1
- import { jsxs as ee, jsx as I } from "react/jsx-runtime";
2
- import ze, { useRef as Pe, useState as ie, useCallback as ne, useEffect as we } from "react";
3
- import { a as Ne, g as Be } from "../../_commonjsHelpers-CqEciG1_.js";
4
- import { useResizeObserver as Fe } from "usehooks-ts";
5
- import { RefreshCw as Ue, RotateCcw as Ye, Check as He } from "lucide-react";
6
- import de from "clsx";
7
- import { AnimationFadeScale as te } from "../../animations/animation-fade-scale/animation-fade-scale.component.js";
8
- import { AnimationFadeSlide as Ve } from "../../animations/animation-fade-slide/animation-fade-slide.component.js";
9
- import { ControlButton as Ee } from "../../controls/control-button/control-button.component.js";
10
- import { ControlButtonText as se } from "../../controls/control-button-text/control-button-text.component.js";
11
- import { Text as he } from "../text/text.component.js";
12
- import { Loader as Xe } from "../loader/loader.component.js";
13
- import '../../assets/signature-EuXLu4YT.css';var le = { exports: {} }, ue = { exports: {} }, ce = { exports: {} }, q = {};
1
+ import { jsxs as ee, jsx as H } from "react/jsx-runtime";
2
+ import ze, { useRef as xe, useState as oe, useCallback as te, useEffect as Pe } from "react";
3
+ import { useResizeObserver as Ne } from "usehooks-ts";
4
+ import { RefreshCw as Fe, RotateCcw as qe, Check as Be } from "lucide-react";
5
+ import fe from "clsx";
6
+ import { Button as we } from "../../controls/button/button.component.js";
7
+ import { ButtonText as ie } from "../../controls/button-text/button-text.component.js";
8
+ import { Loader as Ue } from "../loader/loader.component.js";
9
+ import { baseProps as Ee } from "../../utils/functions/functions.util.js";
10
+ import '../../assets/signature-D9gYlpze.css';function He(e) {
11
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
12
+ }
13
+ function Ye(e) {
14
+ if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
15
+ var a = e.default;
16
+ if (typeof a == "function") {
17
+ var r = function t() {
18
+ var n = !1;
19
+ try {
20
+ n = this instanceof t;
21
+ } catch {
22
+ }
23
+ return n ? Reflect.construct(a, arguments, this.constructor) : a.apply(this, arguments);
24
+ };
25
+ r.prototype = a.prototype;
26
+ } else r = {};
27
+ return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(e).forEach(function(t) {
28
+ var n = Object.getOwnPropertyDescriptor(e, t);
29
+ Object.defineProperty(r, t, n.get ? n : {
30
+ enumerable: !0,
31
+ get: function() {
32
+ return e[t];
33
+ }
34
+ });
35
+ }), r;
36
+ }
37
+ var ce = { exports: {} }, se = { exports: {} }, ue = { exports: {} }, I = {};
14
38
  var Te;
15
- function Je() {
16
- if (Te) return q;
39
+ function Ve() {
40
+ if (Te) return I;
17
41
  Te = 1;
18
- var e = typeof Symbol == "function" && Symbol.for, r = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, t = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, u = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, d = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, o = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, p = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, m = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, _ = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, x = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, b = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, S = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, y = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, W = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
19
- function j(f) {
20
- if (typeof f == "object" && f !== null) {
21
- var X = f.$$typeof;
22
- switch (X) {
23
- case r:
24
- switch (f = f.type, f) {
25
- case d:
26
- case o:
42
+ var e = typeof Symbol == "function" && Symbol.for, a = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, t = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, n = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, s = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, f = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, u = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, v = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, y = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, b = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, T = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, g = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, x = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, _ = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, q = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
43
+ function $(d) {
44
+ if (typeof d == "object" && d !== null) {
45
+ var Z = d.$$typeof;
46
+ switch (Z) {
47
+ case a:
48
+ switch (d = d.type, d) {
49
+ case f:
50
+ case u:
27
51
  case t:
28
- case i:
29
- case a:
30
- case p:
31
- return f;
52
+ case o:
53
+ case n:
54
+ case v:
55
+ return d;
32
56
  default:
33
- switch (f = f && f.$$typeof, f) {
34
- case u:
57
+ switch (d = d && d.$$typeof, d) {
58
+ case s:
35
59
  case l:
36
- case x:
37
- case _:
60
+ case T:
61
+ case b:
38
62
  case c:
39
- return f;
63
+ return d;
40
64
  default:
41
- return X;
65
+ return Z;
42
66
  }
43
67
  }
44
- case n:
45
- return X;
68
+ case r:
69
+ return Z;
46
70
  }
47
71
  }
48
72
  }
49
- function k(f) {
50
- return j(f) === o;
73
+ function k(d) {
74
+ return $(d) === u;
51
75
  }
52
- return q.AsyncMode = d, q.ConcurrentMode = o, q.ContextConsumer = u, q.ContextProvider = c, q.Element = r, q.ForwardRef = l, q.Fragment = t, q.Lazy = x, q.Memo = _, q.Portal = n, q.Profiler = i, q.StrictMode = a, q.Suspense = p, q.isAsyncMode = function(f) {
53
- return k(f) || j(f) === d;
54
- }, q.isConcurrentMode = k, q.isContextConsumer = function(f) {
55
- return j(f) === u;
56
- }, q.isContextProvider = function(f) {
57
- return j(f) === c;
58
- }, q.isElement = function(f) {
59
- return typeof f == "object" && f !== null && f.$$typeof === r;
60
- }, q.isForwardRef = function(f) {
61
- return j(f) === l;
62
- }, q.isFragment = function(f) {
63
- return j(f) === t;
64
- }, q.isLazy = function(f) {
65
- return j(f) === x;
66
- }, q.isMemo = function(f) {
67
- return j(f) === _;
68
- }, q.isPortal = function(f) {
69
- return j(f) === n;
70
- }, q.isProfiler = function(f) {
71
- return j(f) === i;
72
- }, q.isStrictMode = function(f) {
73
- return j(f) === a;
74
- }, q.isSuspense = function(f) {
75
- return j(f) === p;
76
- }, q.isValidElementType = function(f) {
77
- return typeof f == "string" || typeof f == "function" || f === t || f === o || f === i || f === a || f === p || f === m || typeof f == "object" && f !== null && (f.$$typeof === x || f.$$typeof === _ || f.$$typeof === c || f.$$typeof === u || f.$$typeof === l || f.$$typeof === S || f.$$typeof === y || f.$$typeof === W || f.$$typeof === b);
78
- }, q.typeOf = j, q;
76
+ return I.AsyncMode = f, I.ConcurrentMode = u, I.ContextConsumer = s, I.ContextProvider = c, I.Element = a, I.ForwardRef = l, I.Fragment = t, I.Lazy = T, I.Memo = b, I.Portal = r, I.Profiler = o, I.StrictMode = n, I.Suspense = v, I.isAsyncMode = function(d) {
77
+ return k(d) || $(d) === f;
78
+ }, I.isConcurrentMode = k, I.isContextConsumer = function(d) {
79
+ return $(d) === s;
80
+ }, I.isContextProvider = function(d) {
81
+ return $(d) === c;
82
+ }, I.isElement = function(d) {
83
+ return typeof d == "object" && d !== null && d.$$typeof === a;
84
+ }, I.isForwardRef = function(d) {
85
+ return $(d) === l;
86
+ }, I.isFragment = function(d) {
87
+ return $(d) === t;
88
+ }, I.isLazy = function(d) {
89
+ return $(d) === T;
90
+ }, I.isMemo = function(d) {
91
+ return $(d) === b;
92
+ }, I.isPortal = function(d) {
93
+ return $(d) === r;
94
+ }, I.isProfiler = function(d) {
95
+ return $(d) === o;
96
+ }, I.isStrictMode = function(d) {
97
+ return $(d) === n;
98
+ }, I.isSuspense = function(d) {
99
+ return $(d) === v;
100
+ }, I.isValidElementType = function(d) {
101
+ return typeof d == "string" || typeof d == "function" || d === t || d === u || d === o || d === n || d === v || d === y || typeof d == "object" && d !== null && (d.$$typeof === T || d.$$typeof === b || d.$$typeof === c || d.$$typeof === s || d.$$typeof === l || d.$$typeof === x || d.$$typeof === _ || d.$$typeof === q || d.$$typeof === g);
102
+ }, I.typeOf = $, I;
79
103
  }
80
104
  var L = {};
81
- var Ce;
82
- function Ze() {
83
- return Ce || (Ce = 1, process.env.NODE_ENV !== "production" && (function() {
84
- var e = typeof Symbol == "function" && Symbol.for, r = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, t = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, u = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, d = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, o = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, p = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, m = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, _ = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, x = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, b = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, S = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, y = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, W = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
85
- function j(v) {
86
- return typeof v == "string" || typeof v == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
87
- v === t || v === o || v === i || v === a || v === p || v === m || typeof v == "object" && v !== null && (v.$$typeof === x || v.$$typeof === _ || v.$$typeof === c || v.$$typeof === u || v.$$typeof === l || v.$$typeof === S || v.$$typeof === y || v.$$typeof === W || v.$$typeof === b);
105
+ var Se;
106
+ function Xe() {
107
+ return Se || (Se = 1, process.env.NODE_ENV !== "production" && (function() {
108
+ var e = typeof Symbol == "function" && Symbol.for, a = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, t = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, n = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, s = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, f = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, u = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, v = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, y = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, b = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, T = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, g = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, x = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, _ = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, q = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
109
+ function $(p) {
110
+ return typeof p == "string" || typeof p == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
111
+ p === t || p === u || p === o || p === n || p === v || p === y || typeof p == "object" && p !== null && (p.$$typeof === T || p.$$typeof === b || p.$$typeof === c || p.$$typeof === s || p.$$typeof === l || p.$$typeof === x || p.$$typeof === _ || p.$$typeof === q || p.$$typeof === g);
88
112
  }
89
- function k(v) {
90
- if (typeof v == "object" && v !== null) {
91
- var K = v.$$typeof;
113
+ function k(p) {
114
+ if (typeof p == "object" && p !== null) {
115
+ var K = p.$$typeof;
92
116
  switch (K) {
93
- case r:
94
- var oe = v.type;
95
- switch (oe) {
96
- case d:
97
- case o:
117
+ case a:
118
+ var ae = p.type;
119
+ switch (ae) {
120
+ case f:
121
+ case u:
98
122
  case t:
99
- case i:
100
- case a:
101
- case p:
102
- return oe;
123
+ case o:
124
+ case n:
125
+ case v:
126
+ return ae;
103
127
  default:
104
- var Se = oe && oe.$$typeof;
105
- switch (Se) {
106
- case u:
128
+ var be = ae && ae.$$typeof;
129
+ switch (be) {
130
+ case s:
107
131
  case l:
108
- case x:
109
- case _:
132
+ case T:
133
+ case b:
110
134
  case c:
111
- return Se;
135
+ return be;
112
136
  default:
113
137
  return K;
114
138
  }
115
139
  }
116
- case n:
140
+ case r:
117
141
  return K;
118
142
  }
119
143
  }
120
144
  }
121
- var f = d, X = o, re = u, Q = c, M = r, P = l, B = t, N = x, g = _, G = n, U = i, H = a, J = p, F = !1;
122
- function Z(v) {
123
- return F || (F = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), s(v) || k(v) === d;
145
+ var d = f, Z = u, re = s, Q = c, A = a, P = l, N = t, R = T, m = b, F = r, G = o, V = n, X = v, B = !1;
146
+ function J(p) {
147
+ return B || (B = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), i(p) || k(p) === f;
124
148
  }
125
- function s(v) {
126
- return k(v) === o;
149
+ function i(p) {
150
+ return k(p) === u;
127
151
  }
128
- function h(v) {
129
- return k(v) === u;
152
+ function h(p) {
153
+ return k(p) === s;
130
154
  }
131
- function w(v) {
132
- return k(v) === c;
155
+ function w(p) {
156
+ return k(p) === c;
133
157
  }
134
- function C(v) {
135
- return typeof v == "object" && v !== null && v.$$typeof === r;
158
+ function C(p) {
159
+ return typeof p == "object" && p !== null && p.$$typeof === a;
136
160
  }
137
- function E(v) {
138
- return k(v) === l;
161
+ function E(p) {
162
+ return k(p) === l;
139
163
  }
140
- function O(v) {
141
- return k(v) === t;
164
+ function M(p) {
165
+ return k(p) === t;
142
166
  }
143
- function T(v) {
144
- return k(v) === x;
167
+ function S(p) {
168
+ return k(p) === T;
145
169
  }
146
- function R(v) {
147
- return k(v) === _;
170
+ function O(p) {
171
+ return k(p) === b;
148
172
  }
149
- function A(v) {
150
- return k(v) === n;
173
+ function j(p) {
174
+ return k(p) === r;
151
175
  }
152
- function $(v) {
153
- return k(v) === i;
176
+ function W(p) {
177
+ return k(p) === o;
154
178
  }
155
- function D(v) {
156
- return k(v) === a;
179
+ function D(p) {
180
+ return k(p) === n;
157
181
  }
158
- function V(v) {
159
- return k(v) === p;
182
+ function Y(p) {
183
+ return k(p) === v;
160
184
  }
161
- L.AsyncMode = f, L.ConcurrentMode = X, L.ContextConsumer = re, L.ContextProvider = Q, L.Element = M, L.ForwardRef = P, L.Fragment = B, L.Lazy = N, L.Memo = g, L.Portal = G, L.Profiler = U, L.StrictMode = H, L.Suspense = J, L.isAsyncMode = Z, L.isConcurrentMode = s, L.isContextConsumer = h, L.isContextProvider = w, L.isElement = C, L.isForwardRef = E, L.isFragment = O, L.isLazy = T, L.isMemo = R, L.isPortal = A, L.isProfiler = $, L.isStrictMode = D, L.isSuspense = V, L.isValidElementType = j, L.typeOf = k;
185
+ L.AsyncMode = d, L.ConcurrentMode = Z, L.ContextConsumer = re, L.ContextProvider = Q, L.Element = A, L.ForwardRef = P, L.Fragment = N, L.Lazy = R, L.Memo = m, L.Portal = F, L.Profiler = G, L.StrictMode = V, L.Suspense = X, L.isAsyncMode = J, L.isConcurrentMode = i, L.isContextConsumer = h, L.isContextProvider = w, L.isElement = C, L.isForwardRef = E, L.isFragment = M, L.isLazy = S, L.isMemo = O, L.isPortal = j, L.isProfiler = W, L.isStrictMode = D, L.isSuspense = Y, L.isValidElementType = $, L.typeOf = k;
162
186
  })()), L;
163
187
  }
164
- var Re;
188
+ var Ce;
165
189
  function $e() {
166
- return Re || (Re = 1, process.env.NODE_ENV === "production" ? ce.exports = Je() : ce.exports = Ze()), ce.exports;
190
+ return Ce || (Ce = 1, process.env.NODE_ENV === "production" ? ue.exports = Ve() : ue.exports = Xe()), ue.exports;
167
191
  }
168
- var ve, Me;
169
- function Ge() {
170
- if (Me) return ve;
171
- Me = 1;
172
- var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
173
- function t(i) {
174
- if (i == null)
192
+ var de, Oe;
193
+ function Je() {
194
+ if (Oe) return de;
195
+ Oe = 1;
196
+ var e = Object.getOwnPropertySymbols, a = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
197
+ function t(o) {
198
+ if (o == null)
175
199
  throw new TypeError("Object.assign cannot be called with null or undefined");
176
- return Object(i);
200
+ return Object(o);
177
201
  }
178
- function a() {
202
+ function n() {
179
203
  try {
180
204
  if (!Object.assign)
181
205
  return !1;
182
- var i = new String("abc");
183
- if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
206
+ var o = new String("abc");
207
+ if (o[5] = "de", Object.getOwnPropertyNames(o)[0] === "5")
184
208
  return !1;
185
- for (var c = {}, u = 0; u < 10; u++)
186
- c["_" + String.fromCharCode(u)] = u;
187
- var d = Object.getOwnPropertyNames(c).map(function(l) {
209
+ for (var c = {}, s = 0; s < 10; s++)
210
+ c["_" + String.fromCharCode(s)] = s;
211
+ var f = Object.getOwnPropertyNames(c).map(function(l) {
188
212
  return c[l];
189
213
  });
190
- if (d.join("") !== "0123456789")
214
+ if (f.join("") !== "0123456789")
191
215
  return !1;
192
- var o = {};
216
+ var u = {};
193
217
  return "abcdefghijklmnopqrst".split("").forEach(function(l) {
194
- o[l] = l;
195
- }), Object.keys(Object.assign({}, o)).join("") === "abcdefghijklmnopqrst";
218
+ u[l] = l;
219
+ }), Object.keys(Object.assign({}, u)).join("") === "abcdefghijklmnopqrst";
196
220
  } catch {
197
221
  return !1;
198
222
  }
199
223
  }
200
- return ve = a() ? Object.assign : function(i, c) {
201
- for (var u, d = t(i), o, l = 1; l < arguments.length; l++) {
202
- u = Object(arguments[l]);
203
- for (var p in u)
204
- r.call(u, p) && (d[p] = u[p]);
224
+ return de = n() ? Object.assign : function(o, c) {
225
+ for (var s, f = t(o), u, l = 1; l < arguments.length; l++) {
226
+ s = Object(arguments[l]);
227
+ for (var v in s)
228
+ a.call(s, v) && (f[v] = s[v]);
205
229
  if (e) {
206
- o = e(u);
207
- for (var m = 0; m < o.length; m++)
208
- n.call(u, o[m]) && (d[o[m]] = u[o[m]]);
230
+ u = e(s);
231
+ for (var y = 0; y < u.length; y++)
232
+ r.call(s, u[y]) && (f[u[y]] = s[u[y]]);
209
233
  }
210
234
  }
211
- return d;
212
- }, ve;
235
+ return f;
236
+ }, de;
213
237
  }
214
- var pe, Oe;
215
- function be() {
216
- if (Oe) return pe;
217
- Oe = 1;
238
+ var he, Re;
239
+ function _e() {
240
+ if (Re) return he;
241
+ Re = 1;
218
242
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
219
- return pe = e, pe;
243
+ return he = e, he;
220
244
  }
221
- var ge, Ae;
245
+ var pe, Ae;
222
246
  function We() {
223
- return Ae || (Ae = 1, ge = Function.call.bind(Object.prototype.hasOwnProperty)), ge;
247
+ return Ae || (Ae = 1, pe = Function.call.bind(Object.prototype.hasOwnProperty)), pe;
224
248
  }
225
- var me, De;
226
- function Ke() {
227
- if (De) return me;
228
- De = 1;
249
+ var ve, Me;
250
+ function Ze() {
251
+ if (Me) return ve;
252
+ Me = 1;
229
253
  var e = function() {
230
254
  };
231
255
  if (process.env.NODE_ENV !== "production") {
232
- var r = /* @__PURE__ */ be(), n = {}, t = /* @__PURE__ */ We();
233
- e = function(i) {
234
- var c = "Warning: " + i;
256
+ var a = /* @__PURE__ */ _e(), r = {}, t = /* @__PURE__ */ We();
257
+ e = function(o) {
258
+ var c = "Warning: " + o;
235
259
  typeof console < "u" && console.error(c);
236
260
  try {
237
261
  throw new Error(c);
@@ -239,311 +263,311 @@ function Ke() {
239
263
  }
240
264
  };
241
265
  }
242
- function a(i, c, u, d, o) {
266
+ function n(o, c, s, f, u) {
243
267
  if (process.env.NODE_ENV !== "production") {
244
- for (var l in i)
245
- if (t(i, l)) {
246
- var p;
268
+ for (var l in o)
269
+ if (t(o, l)) {
270
+ var v;
247
271
  try {
248
- if (typeof i[l] != "function") {
249
- var m = Error(
250
- (d || "React class") + ": " + u + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
272
+ if (typeof o[l] != "function") {
273
+ var y = Error(
274
+ (f || "React class") + ": " + s + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
251
275
  );
252
- throw m.name = "Invariant Violation", m;
276
+ throw y.name = "Invariant Violation", y;
253
277
  }
254
- p = i[l](c, l, d, u, null, r);
255
- } catch (x) {
256
- p = x;
278
+ v = o[l](c, l, f, s, null, a);
279
+ } catch (T) {
280
+ v = T;
257
281
  }
258
- if (p && !(p instanceof Error) && e(
259
- (d || "React class") + ": type specification of " + u + " `" + l + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof p + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
260
- ), p instanceof Error && !(p.message in n)) {
261
- n[p.message] = !0;
262
- var _ = o ? o() : "";
282
+ if (v && !(v instanceof Error) && e(
283
+ (f || "React class") + ": type specification of " + s + " `" + l + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof v + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
284
+ ), v instanceof Error && !(v.message in r)) {
285
+ r[v.message] = !0;
286
+ var b = u ? u() : "";
263
287
  e(
264
- "Failed " + u + " type: " + p.message + (_ ?? "")
288
+ "Failed " + s + " type: " + v.message + (b ?? "")
265
289
  );
266
290
  }
267
291
  }
268
292
  }
269
293
  }
270
- return a.resetWarningCache = function() {
271
- process.env.NODE_ENV !== "production" && (n = {});
272
- }, me = a, me;
294
+ return n.resetWarningCache = function() {
295
+ process.env.NODE_ENV !== "production" && (r = {});
296
+ }, ve = n, ve;
273
297
  }
274
- var ye, ke;
275
- function Qe() {
276
- if (ke) return ye;
277
- ke = 1;
278
- var e = $e(), r = Ge(), n = /* @__PURE__ */ be(), t = /* @__PURE__ */ We(), a = /* @__PURE__ */ Ke(), i = function() {
298
+ var ye, je;
299
+ function Ge() {
300
+ if (je) return ye;
301
+ je = 1;
302
+ var e = $e(), a = Je(), r = /* @__PURE__ */ _e(), t = /* @__PURE__ */ We(), n = /* @__PURE__ */ Ze(), o = function() {
279
303
  };
280
- process.env.NODE_ENV !== "production" && (i = function(u) {
281
- var d = "Warning: " + u;
282
- typeof console < "u" && console.error(d);
304
+ process.env.NODE_ENV !== "production" && (o = function(s) {
305
+ var f = "Warning: " + s;
306
+ typeof console < "u" && console.error(f);
283
307
  try {
284
- throw new Error(d);
308
+ throw new Error(f);
285
309
  } catch {
286
310
  }
287
311
  });
288
312
  function c() {
289
313
  return null;
290
314
  }
291
- return ye = function(u, d) {
292
- var o = typeof Symbol == "function" && Symbol.iterator, l = "@@iterator";
293
- function p(s) {
294
- var h = s && (o && s[o] || s[l]);
315
+ return ye = function(s, f) {
316
+ var u = typeof Symbol == "function" && Symbol.iterator, l = "@@iterator";
317
+ function v(i) {
318
+ var h = i && (u && i[u] || i[l]);
295
319
  if (typeof h == "function")
296
320
  return h;
297
321
  }
298
- var m = "<<anonymous>>", _ = {
299
- array: y("array"),
300
- bigint: y("bigint"),
301
- bool: y("boolean"),
302
- func: y("function"),
303
- number: y("number"),
304
- object: y("object"),
305
- string: y("string"),
306
- symbol: y("symbol"),
307
- any: W(),
308
- arrayOf: j,
322
+ var y = "<<anonymous>>", b = {
323
+ array: _("array"),
324
+ bigint: _("bigint"),
325
+ bool: _("boolean"),
326
+ func: _("function"),
327
+ number: _("number"),
328
+ object: _("object"),
329
+ string: _("string"),
330
+ symbol: _("symbol"),
331
+ any: q(),
332
+ arrayOf: $,
309
333
  element: k(),
310
- elementType: f(),
311
- instanceOf: X,
334
+ elementType: d(),
335
+ instanceOf: Z,
312
336
  node: P(),
313
337
  objectOf: Q,
314
338
  oneOf: re,
315
- oneOfType: M,
316
- shape: N,
317
- exact: g
339
+ oneOfType: A,
340
+ shape: R,
341
+ exact: m
318
342
  };
319
- function x(s, h) {
320
- return s === h ? s !== 0 || 1 / s === 1 / h : s !== s && h !== h;
343
+ function T(i, h) {
344
+ return i === h ? i !== 0 || 1 / i === 1 / h : i !== i && h !== h;
321
345
  }
322
- function b(s, h) {
323
- this.message = s, this.data = h && typeof h == "object" ? h : {}, this.stack = "";
346
+ function g(i, h) {
347
+ this.message = i, this.data = h && typeof h == "object" ? h : {}, this.stack = "";
324
348
  }
325
- b.prototype = Error.prototype;
326
- function S(s) {
349
+ g.prototype = Error.prototype;
350
+ function x(i) {
327
351
  if (process.env.NODE_ENV !== "production")
328
352
  var h = {}, w = 0;
329
- function C(O, T, R, A, $, D, V) {
330
- if (A = A || m, D = D || R, V !== n) {
331
- if (d) {
332
- var v = new Error(
353
+ function C(M, S, O, j, W, D, Y) {
354
+ if (j = j || y, D = D || O, Y !== r) {
355
+ if (f) {
356
+ var p = new Error(
333
357
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
334
358
  );
335
- throw v.name = "Invariant Violation", v;
359
+ throw p.name = "Invariant Violation", p;
336
360
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
337
- var K = A + ":" + R;
361
+ var K = j + ":" + O;
338
362
  !h[K] && // Avoid spamming the console because they are often not actionable except for lib authors
339
- w < 3 && (i(
340
- "You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" + A + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
363
+ w < 3 && (o(
364
+ "You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" + j + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
341
365
  ), h[K] = !0, w++);
342
366
  }
343
367
  }
344
- return T[R] == null ? O ? T[R] === null ? new b("The " + $ + " `" + D + "` is marked as required " + ("in `" + A + "`, but its value is `null`.")) : new b("The " + $ + " `" + D + "` is marked as required in " + ("`" + A + "`, but its value is `undefined`.")) : null : s(T, R, A, $, D);
368
+ return S[O] == null ? M ? S[O] === null ? new g("The " + W + " `" + D + "` is marked as required " + ("in `" + j + "`, but its value is `null`.")) : new g("The " + W + " `" + D + "` is marked as required in " + ("`" + j + "`, but its value is `undefined`.")) : null : i(S, O, j, W, D);
345
369
  }
346
370
  var E = C.bind(null, !1);
347
371
  return E.isRequired = C.bind(null, !0), E;
348
372
  }
349
- function y(s) {
350
- function h(w, C, E, O, T, R) {
351
- var A = w[C], $ = H(A);
352
- if ($ !== s) {
353
- var D = J(A);
354
- return new b(
355
- "Invalid " + O + " `" + T + "` of type " + ("`" + D + "` supplied to `" + E + "`, expected ") + ("`" + s + "`."),
356
- { expectedType: s }
373
+ function _(i) {
374
+ function h(w, C, E, M, S, O) {
375
+ var j = w[C], W = V(j);
376
+ if (W !== i) {
377
+ var D = X(j);
378
+ return new g(
379
+ "Invalid " + M + " `" + S + "` of type " + ("`" + D + "` supplied to `" + E + "`, expected ") + ("`" + i + "`."),
380
+ { expectedType: i }
357
381
  );
358
382
  }
359
383
  return null;
360
384
  }
361
- return S(h);
385
+ return x(h);
362
386
  }
363
- function W() {
364
- return S(c);
387
+ function q() {
388
+ return x(c);
365
389
  }
366
- function j(s) {
367
- function h(w, C, E, O, T) {
368
- if (typeof s != "function")
369
- return new b("Property `" + T + "` of component `" + E + "` has invalid PropType notation inside arrayOf.");
370
- var R = w[C];
371
- if (!Array.isArray(R)) {
372
- var A = H(R);
373
- return new b("Invalid " + O + " `" + T + "` of type " + ("`" + A + "` supplied to `" + E + "`, expected an array."));
390
+ function $(i) {
391
+ function h(w, C, E, M, S) {
392
+ if (typeof i != "function")
393
+ return new g("Property `" + S + "` of component `" + E + "` has invalid PropType notation inside arrayOf.");
394
+ var O = w[C];
395
+ if (!Array.isArray(O)) {
396
+ var j = V(O);
397
+ return new g("Invalid " + M + " `" + S + "` of type " + ("`" + j + "` supplied to `" + E + "`, expected an array."));
374
398
  }
375
- for (var $ = 0; $ < R.length; $++) {
376
- var D = s(R, $, E, O, T + "[" + $ + "]", n);
399
+ for (var W = 0; W < O.length; W++) {
400
+ var D = i(O, W, E, M, S + "[" + W + "]", r);
377
401
  if (D instanceof Error)
378
402
  return D;
379
403
  }
380
404
  return null;
381
405
  }
382
- return S(h);
406
+ return x(h);
383
407
  }
384
408
  function k() {
385
- function s(h, w, C, E, O) {
386
- var T = h[w];
387
- if (!u(T)) {
388
- var R = H(T);
389
- return new b("Invalid " + E + " `" + O + "` of type " + ("`" + R + "` supplied to `" + C + "`, expected a single ReactElement."));
409
+ function i(h, w, C, E, M) {
410
+ var S = h[w];
411
+ if (!s(S)) {
412
+ var O = V(S);
413
+ return new g("Invalid " + E + " `" + M + "` of type " + ("`" + O + "` supplied to `" + C + "`, expected a single ReactElement."));
390
414
  }
391
415
  return null;
392
416
  }
393
- return S(s);
417
+ return x(i);
394
418
  }
395
- function f() {
396
- function s(h, w, C, E, O) {
397
- var T = h[w];
398
- if (!e.isValidElementType(T)) {
399
- var R = H(T);
400
- return new b("Invalid " + E + " `" + O + "` of type " + ("`" + R + "` supplied to `" + C + "`, expected a single ReactElement type."));
419
+ function d() {
420
+ function i(h, w, C, E, M) {
421
+ var S = h[w];
422
+ if (!e.isValidElementType(S)) {
423
+ var O = V(S);
424
+ return new g("Invalid " + E + " `" + M + "` of type " + ("`" + O + "` supplied to `" + C + "`, expected a single ReactElement type."));
401
425
  }
402
426
  return null;
403
427
  }
404
- return S(s);
428
+ return x(i);
405
429
  }
406
- function X(s) {
407
- function h(w, C, E, O, T) {
408
- if (!(w[C] instanceof s)) {
409
- var R = s.name || m, A = Z(w[C]);
410
- return new b("Invalid " + O + " `" + T + "` of type " + ("`" + A + "` supplied to `" + E + "`, expected ") + ("instance of `" + R + "`."));
430
+ function Z(i) {
431
+ function h(w, C, E, M, S) {
432
+ if (!(w[C] instanceof i)) {
433
+ var O = i.name || y, j = J(w[C]);
434
+ return new g("Invalid " + M + " `" + S + "` of type " + ("`" + j + "` supplied to `" + E + "`, expected ") + ("instance of `" + O + "`."));
411
435
  }
412
436
  return null;
413
437
  }
414
- return S(h);
438
+ return x(h);
415
439
  }
416
- function re(s) {
417
- if (!Array.isArray(s))
418
- return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
440
+ function re(i) {
441
+ if (!Array.isArray(i))
442
+ return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
419
443
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
420
- ) : i("Invalid argument supplied to oneOf, expected an array.")), c;
421
- function h(w, C, E, O, T) {
422
- for (var R = w[C], A = 0; A < s.length; A++)
423
- if (x(R, s[A]))
444
+ ) : o("Invalid argument supplied to oneOf, expected an array.")), c;
445
+ function h(w, C, E, M, S) {
446
+ for (var O = w[C], j = 0; j < i.length; j++)
447
+ if (T(O, i[j]))
424
448
  return null;
425
- var $ = JSON.stringify(s, function(V, v) {
426
- var K = J(v);
427
- return K === "symbol" ? String(v) : v;
449
+ var W = JSON.stringify(i, function(Y, p) {
450
+ var K = X(p);
451
+ return K === "symbol" ? String(p) : p;
428
452
  });
429
- return new b("Invalid " + O + " `" + T + "` of value `" + String(R) + "` " + ("supplied to `" + E + "`, expected one of " + $ + "."));
453
+ return new g("Invalid " + M + " `" + S + "` of value `" + String(O) + "` " + ("supplied to `" + E + "`, expected one of " + W + "."));
430
454
  }
431
- return S(h);
455
+ return x(h);
432
456
  }
433
- function Q(s) {
434
- function h(w, C, E, O, T) {
435
- if (typeof s != "function")
436
- return new b("Property `" + T + "` of component `" + E + "` has invalid PropType notation inside objectOf.");
437
- var R = w[C], A = H(R);
438
- if (A !== "object")
439
- return new b("Invalid " + O + " `" + T + "` of type " + ("`" + A + "` supplied to `" + E + "`, expected an object."));
440
- for (var $ in R)
441
- if (t(R, $)) {
442
- var D = s(R, $, E, O, T + "." + $, n);
457
+ function Q(i) {
458
+ function h(w, C, E, M, S) {
459
+ if (typeof i != "function")
460
+ return new g("Property `" + S + "` of component `" + E + "` has invalid PropType notation inside objectOf.");
461
+ var O = w[C], j = V(O);
462
+ if (j !== "object")
463
+ return new g("Invalid " + M + " `" + S + "` of type " + ("`" + j + "` supplied to `" + E + "`, expected an object."));
464
+ for (var W in O)
465
+ if (t(O, W)) {
466
+ var D = i(O, W, E, M, S + "." + W, r);
443
467
  if (D instanceof Error)
444
468
  return D;
445
469
  }
446
470
  return null;
447
471
  }
448
- return S(h);
472
+ return x(h);
449
473
  }
450
- function M(s) {
451
- if (!Array.isArray(s))
452
- return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), c;
453
- for (var h = 0; h < s.length; h++) {
454
- var w = s[h];
474
+ function A(i) {
475
+ if (!Array.isArray(i))
476
+ return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), c;
477
+ for (var h = 0; h < i.length; h++) {
478
+ var w = i[h];
455
479
  if (typeof w != "function")
456
- return i(
457
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + F(w) + " at index " + h + "."
480
+ return o(
481
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + B(w) + " at index " + h + "."
458
482
  ), c;
459
483
  }
460
- function C(E, O, T, R, A) {
461
- for (var $ = [], D = 0; D < s.length; D++) {
462
- var V = s[D], v = V(E, O, T, R, A, n);
463
- if (v == null)
484
+ function C(E, M, S, O, j) {
485
+ for (var W = [], D = 0; D < i.length; D++) {
486
+ var Y = i[D], p = Y(E, M, S, O, j, r);
487
+ if (p == null)
464
488
  return null;
465
- v.data && t(v.data, "expectedType") && $.push(v.data.expectedType);
489
+ p.data && t(p.data, "expectedType") && W.push(p.data.expectedType);
466
490
  }
467
- var K = $.length > 0 ? ", expected one of type [" + $.join(", ") + "]" : "";
468
- return new b("Invalid " + R + " `" + A + "` supplied to " + ("`" + T + "`" + K + "."));
491
+ var K = W.length > 0 ? ", expected one of type [" + W.join(", ") + "]" : "";
492
+ return new g("Invalid " + O + " `" + j + "` supplied to " + ("`" + S + "`" + K + "."));
469
493
  }
470
- return S(C);
494
+ return x(C);
471
495
  }
472
496
  function P() {
473
- function s(h, w, C, E, O) {
474
- return G(h[w]) ? null : new b("Invalid " + E + " `" + O + "` supplied to " + ("`" + C + "`, expected a ReactNode."));
497
+ function i(h, w, C, E, M) {
498
+ return F(h[w]) ? null : new g("Invalid " + E + " `" + M + "` supplied to " + ("`" + C + "`, expected a ReactNode."));
475
499
  }
476
- return S(s);
500
+ return x(i);
477
501
  }
478
- function B(s, h, w, C, E) {
479
- return new b(
480
- (s || "React class") + ": " + h + " type `" + w + "." + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + E + "`."
502
+ function N(i, h, w, C, E) {
503
+ return new g(
504
+ (i || "React class") + ": " + h + " type `" + w + "." + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + E + "`."
481
505
  );
482
506
  }
483
- function N(s) {
484
- function h(w, C, E, O, T) {
485
- var R = w[C], A = H(R);
486
- if (A !== "object")
487
- return new b("Invalid " + O + " `" + T + "` of type `" + A + "` " + ("supplied to `" + E + "`, expected `object`."));
488
- for (var $ in s) {
489
- var D = s[$];
507
+ function R(i) {
508
+ function h(w, C, E, M, S) {
509
+ var O = w[C], j = V(O);
510
+ if (j !== "object")
511
+ return new g("Invalid " + M + " `" + S + "` of type `" + j + "` " + ("supplied to `" + E + "`, expected `object`."));
512
+ for (var W in i) {
513
+ var D = i[W];
490
514
  if (typeof D != "function")
491
- return B(E, O, T, $, J(D));
492
- var V = D(R, $, E, O, T + "." + $, n);
493
- if (V)
494
- return V;
515
+ return N(E, M, S, W, X(D));
516
+ var Y = D(O, W, E, M, S + "." + W, r);
517
+ if (Y)
518
+ return Y;
495
519
  }
496
520
  return null;
497
521
  }
498
- return S(h);
522
+ return x(h);
499
523
  }
500
- function g(s) {
501
- function h(w, C, E, O, T) {
502
- var R = w[C], A = H(R);
503
- if (A !== "object")
504
- return new b("Invalid " + O + " `" + T + "` of type `" + A + "` " + ("supplied to `" + E + "`, expected `object`."));
505
- var $ = r({}, w[C], s);
506
- for (var D in $) {
507
- var V = s[D];
508
- if (t(s, D) && typeof V != "function")
509
- return B(E, O, T, D, J(V));
510
- if (!V)
511
- return new b(
512
- "Invalid " + O + " `" + T + "` key `" + D + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(w[C], null, " ") + `
513
- Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
524
+ function m(i) {
525
+ function h(w, C, E, M, S) {
526
+ var O = w[C], j = V(O);
527
+ if (j !== "object")
528
+ return new g("Invalid " + M + " `" + S + "` of type `" + j + "` " + ("supplied to `" + E + "`, expected `object`."));
529
+ var W = a({}, w[C], i);
530
+ for (var D in W) {
531
+ var Y = i[D];
532
+ if (t(i, D) && typeof Y != "function")
533
+ return N(E, M, S, D, X(Y));
534
+ if (!Y)
535
+ return new g(
536
+ "Invalid " + M + " `" + S + "` key `" + D + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(w[C], null, " ") + `
537
+ Valid keys: ` + JSON.stringify(Object.keys(i), null, " ")
514
538
  );
515
- var v = V(R, D, E, O, T + "." + D, n);
516
- if (v)
517
- return v;
539
+ var p = Y(O, D, E, M, S + "." + D, r);
540
+ if (p)
541
+ return p;
518
542
  }
519
543
  return null;
520
544
  }
521
- return S(h);
545
+ return x(h);
522
546
  }
523
- function G(s) {
524
- switch (typeof s) {
547
+ function F(i) {
548
+ switch (typeof i) {
525
549
  case "number":
526
550
  case "string":
527
551
  case "undefined":
528
552
  return !0;
529
553
  case "boolean":
530
- return !s;
554
+ return !i;
531
555
  case "object":
532
- if (Array.isArray(s))
533
- return s.every(G);
534
- if (s === null || u(s))
556
+ if (Array.isArray(i))
557
+ return i.every(F);
558
+ if (i === null || s(i))
535
559
  return !0;
536
- var h = p(s);
560
+ var h = v(i);
537
561
  if (h) {
538
- var w = h.call(s), C;
539
- if (h !== s.entries) {
562
+ var w = h.call(i), C;
563
+ if (h !== i.entries) {
540
564
  for (; !(C = w.next()).done; )
541
- if (!G(C.value))
565
+ if (!F(C.value))
542
566
  return !1;
543
567
  } else
544
568
  for (; !(C = w.next()).done; ) {
545
569
  var E = C.value;
546
- if (E && !G(E[1]))
570
+ if (E && !F(E[1]))
547
571
  return !1;
548
572
  }
549
573
  } else
@@ -553,27 +577,27 @@ Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
553
577
  return !1;
554
578
  }
555
579
  }
556
- function U(s, h) {
557
- return s === "symbol" ? !0 : h ? h["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && h instanceof Symbol : !1;
580
+ function G(i, h) {
581
+ return i === "symbol" ? !0 : h ? h["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && h instanceof Symbol : !1;
558
582
  }
559
- function H(s) {
560
- var h = typeof s;
561
- return Array.isArray(s) ? "array" : s instanceof RegExp ? "object" : U(h, s) ? "symbol" : h;
583
+ function V(i) {
584
+ var h = typeof i;
585
+ return Array.isArray(i) ? "array" : i instanceof RegExp ? "object" : G(h, i) ? "symbol" : h;
562
586
  }
563
- function J(s) {
564
- if (typeof s > "u" || s === null)
565
- return "" + s;
566
- var h = H(s);
587
+ function X(i) {
588
+ if (typeof i > "u" || i === null)
589
+ return "" + i;
590
+ var h = V(i);
567
591
  if (h === "object") {
568
- if (s instanceof Date)
592
+ if (i instanceof Date)
569
593
  return "date";
570
- if (s instanceof RegExp)
594
+ if (i instanceof RegExp)
571
595
  return "regexp";
572
596
  }
573
597
  return h;
574
598
  }
575
- function F(s) {
576
- var h = J(s);
599
+ function B(i) {
600
+ var h = X(i);
577
601
  switch (h) {
578
602
  case "array":
579
603
  case "object":
@@ -586,35 +610,35 @@ Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
586
610
  return h;
587
611
  }
588
612
  }
589
- function Z(s) {
590
- return !s.constructor || !s.constructor.name ? m : s.constructor.name;
613
+ function J(i) {
614
+ return !i.constructor || !i.constructor.name ? y : i.constructor.name;
591
615
  }
592
- return _.checkPropTypes = a, _.resetWarningCache = a.resetWarningCache, _.PropTypes = _, _;
616
+ return b.checkPropTypes = n, b.resetWarningCache = n.resetWarningCache, b.PropTypes = b, b;
593
617
  }, ye;
594
618
  }
595
- var _e, Ie;
596
- function et() {
597
- if (Ie) return _e;
598
- Ie = 1;
599
- var e = /* @__PURE__ */ be();
600
- function r() {
619
+ var me, De;
620
+ function Ke() {
621
+ if (De) return me;
622
+ De = 1;
623
+ var e = /* @__PURE__ */ _e();
624
+ function a() {
601
625
  }
602
- function n() {
626
+ function r() {
603
627
  }
604
- return n.resetWarningCache = r, _e = function() {
605
- function t(c, u, d, o, l, p) {
606
- if (p !== e) {
607
- var m = new Error(
628
+ return r.resetWarningCache = a, me = function() {
629
+ function t(c, s, f, u, l, v) {
630
+ if (v !== e) {
631
+ var y = new Error(
608
632
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
609
633
  );
610
- throw m.name = "Invariant Violation", m;
634
+ throw y.name = "Invariant Violation", y;
611
635
  }
612
636
  }
613
637
  t.isRequired = t;
614
- function a() {
638
+ function n() {
615
639
  return t;
616
640
  }
617
- var i = {
641
+ var o = {
618
642
  array: t,
619
643
  bigint: t,
620
644
  bool: t,
@@ -624,117 +648,117 @@ function et() {
624
648
  string: t,
625
649
  symbol: t,
626
650
  any: t,
627
- arrayOf: a,
651
+ arrayOf: n,
628
652
  element: t,
629
653
  elementType: t,
630
- instanceOf: a,
654
+ instanceOf: n,
631
655
  node: t,
632
- objectOf: a,
633
- oneOf: a,
634
- oneOfType: a,
635
- shape: a,
636
- exact: a,
637
- checkPropTypes: n,
638
- resetWarningCache: r
656
+ objectOf: n,
657
+ oneOf: n,
658
+ oneOfType: n,
659
+ shape: n,
660
+ exact: n,
661
+ checkPropTypes: r,
662
+ resetWarningCache: a
639
663
  };
640
- return i.PropTypes = i, i;
641
- }, _e;
664
+ return o.PropTypes = o, o;
665
+ }, me;
642
666
  }
643
- var qe;
644
- function tt() {
645
- if (qe) return ue.exports;
646
- if (qe = 1, process.env.NODE_ENV !== "production") {
647
- var e = $e(), r = !0;
648
- ue.exports = /* @__PURE__ */ Qe()(e.isElement, r);
667
+ var ke;
668
+ function Qe() {
669
+ if (ke) return se.exports;
670
+ if (ke = 1, process.env.NODE_ENV !== "production") {
671
+ var e = $e(), a = !0;
672
+ se.exports = /* @__PURE__ */ Ge()(e.isElement, a);
649
673
  } else
650
- ue.exports = /* @__PURE__ */ et()();
651
- return ue.exports;
674
+ se.exports = /* @__PURE__ */ Ke()();
675
+ return se.exports;
652
676
  }
653
- function ae(e, r, n) {
654
- this.x = e, this.y = r, this.time = n || (/* @__PURE__ */ new Date()).getTime();
677
+ function ne(e, a, r) {
678
+ this.x = e, this.y = a, this.time = r || (/* @__PURE__ */ new Date()).getTime();
655
679
  }
656
- ae.prototype.velocityFrom = function(e) {
680
+ ne.prototype.velocityFrom = function(e) {
657
681
  return this.time !== e.time ? this.distanceTo(e) / (this.time - e.time) : 1;
658
682
  };
659
- ae.prototype.distanceTo = function(e) {
683
+ ne.prototype.distanceTo = function(e) {
660
684
  return Math.sqrt(Math.pow(this.x - e.x, 2) + Math.pow(this.y - e.y, 2));
661
685
  };
662
- ae.prototype.equals = function(e) {
686
+ ne.prototype.equals = function(e) {
663
687
  return this.x === e.x && this.y === e.y && this.time === e.time;
664
688
  };
665
- function xe(e, r, n, t) {
666
- this.startPoint = e, this.control1 = r, this.control2 = n, this.endPoint = t;
689
+ function ge(e, a, r, t) {
690
+ this.startPoint = e, this.control1 = a, this.control2 = r, this.endPoint = t;
667
691
  }
668
- xe.prototype.length = function() {
669
- for (var e = 10, r = 0, n = void 0, t = void 0, a = 0; a <= e; a += 1) {
670
- var i = a / e, c = this._point(i, this.startPoint.x, this.control1.x, this.control2.x, this.endPoint.x), u = this._point(i, this.startPoint.y, this.control1.y, this.control2.y, this.endPoint.y);
671
- if (a > 0) {
672
- var d = c - n, o = u - t;
673
- r += Math.sqrt(d * d + o * o);
692
+ ge.prototype.length = function() {
693
+ for (var e = 10, a = 0, r = void 0, t = void 0, n = 0; n <= e; n += 1) {
694
+ var o = n / e, c = this._point(o, this.startPoint.x, this.control1.x, this.control2.x, this.endPoint.x), s = this._point(o, this.startPoint.y, this.control1.y, this.control2.y, this.endPoint.y);
695
+ if (n > 0) {
696
+ var f = c - r, u = s - t;
697
+ a += Math.sqrt(f * f + u * u);
674
698
  }
675
- n = c, t = u;
699
+ r = c, t = s;
676
700
  }
677
- return r;
701
+ return a;
678
702
  };
679
- xe.prototype._point = function(e, r, n, t, a) {
680
- return r * (1 - e) * (1 - e) * (1 - e) + 3 * n * (1 - e) * (1 - e) * e + 3 * t * (1 - e) * e * e + a * e * e * e;
703
+ ge.prototype._point = function(e, a, r, t, n) {
704
+ return a * (1 - e) * (1 - e) * (1 - e) + 3 * r * (1 - e) * (1 - e) * e + 3 * t * (1 - e) * e * e + n * e * e * e;
681
705
  };
682
- function nt(e, r, n) {
683
- var t, a, i, c = null, u = 0;
684
- n || (n = {});
685
- var d = function() {
686
- u = n.leading === !1 ? 0 : Date.now(), c = null, i = e.apply(t, a), c || (t = a = null);
706
+ function et(e, a, r) {
707
+ var t, n, o, c = null, s = 0;
708
+ r || (r = {});
709
+ var f = function() {
710
+ s = r.leading === !1 ? 0 : Date.now(), c = null, o = e.apply(t, n), c || (t = n = null);
687
711
  };
688
712
  return function() {
689
- var o = Date.now();
690
- !u && n.leading === !1 && (u = o);
691
- var l = r - (o - u);
692
- return t = this, a = arguments, l <= 0 || l > r ? (c && (clearTimeout(c), c = null), u = o, i = e.apply(t, a), c || (t = a = null)) : !c && n.trailing !== !1 && (c = setTimeout(d, l)), i;
713
+ var u = Date.now();
714
+ !s && r.leading === !1 && (s = u);
715
+ var l = a - (u - s);
716
+ return t = this, n = arguments, l <= 0 || l > a ? (c && (clearTimeout(c), c = null), s = u, o = e.apply(t, n), c || (t = n = null)) : !c && r.trailing !== !1 && (c = setTimeout(f, l)), o;
693
717
  };
694
718
  }
695
- function z(e, r) {
696
- var n = this, t = r || {};
697
- this.velocityFilterWeight = t.velocityFilterWeight || 0.7, this.minWidth = t.minWidth || 0.5, this.maxWidth = t.maxWidth || 2.5, this.throttle = "throttle" in t ? t.throttle : 16, this.minDistance = "minDistance" in t ? t.minDistance : 5, this.throttle ? this._strokeMoveUpdate = nt(z.prototype._strokeUpdate, this.throttle) : this._strokeMoveUpdate = z.prototype._strokeUpdate, this.dotSize = t.dotSize || function() {
719
+ function z(e, a) {
720
+ var r = this, t = a || {};
721
+ this.velocityFilterWeight = t.velocityFilterWeight || 0.7, this.minWidth = t.minWidth || 0.5, this.maxWidth = t.maxWidth || 2.5, this.throttle = "throttle" in t ? t.throttle : 16, this.minDistance = "minDistance" in t ? t.minDistance : 5, this.throttle ? this._strokeMoveUpdate = et(z.prototype._strokeUpdate, this.throttle) : this._strokeMoveUpdate = z.prototype._strokeUpdate, this.dotSize = t.dotSize || function() {
698
722
  return (this.minWidth + this.maxWidth) / 2;
699
- }, this.penColor = t.penColor || "black", this.backgroundColor = t.backgroundColor || "rgba(0,0,0,0)", this.onBegin = t.onBegin, this.onEnd = t.onEnd, this._canvas = e, this._ctx = e.getContext("2d"), this.clear(), this._handleMouseDown = function(a) {
700
- a.which === 1 && (n._mouseButtonDown = !0, n._strokeBegin(a));
701
- }, this._handleMouseMove = function(a) {
702
- n._mouseButtonDown && n._strokeMoveUpdate(a);
703
- }, this._handleMouseUp = function(a) {
704
- a.which === 1 && n._mouseButtonDown && (n._mouseButtonDown = !1, n._strokeEnd(a));
705
- }, this._handleTouchStart = function(a) {
706
- if (a.targetTouches.length === 1) {
707
- var i = a.changedTouches[0];
708
- n._strokeBegin(i);
723
+ }, this.penColor = t.penColor || "black", this.backgroundColor = t.backgroundColor || "rgba(0,0,0,0)", this.onBegin = t.onBegin, this.onEnd = t.onEnd, this._canvas = e, this._ctx = e.getContext("2d"), this.clear(), this._handleMouseDown = function(n) {
724
+ n.which === 1 && (r._mouseButtonDown = !0, r._strokeBegin(n));
725
+ }, this._handleMouseMove = function(n) {
726
+ r._mouseButtonDown && r._strokeMoveUpdate(n);
727
+ }, this._handleMouseUp = function(n) {
728
+ n.which === 1 && r._mouseButtonDown && (r._mouseButtonDown = !1, r._strokeEnd(n));
729
+ }, this._handleTouchStart = function(n) {
730
+ if (n.targetTouches.length === 1) {
731
+ var o = n.changedTouches[0];
732
+ r._strokeBegin(o);
709
733
  }
710
- }, this._handleTouchMove = function(a) {
711
- a.preventDefault();
712
- var i = a.targetTouches[0];
713
- n._strokeMoveUpdate(i);
714
- }, this._handleTouchEnd = function(a) {
715
- var i = a.target === n._canvas;
716
- i && (a.preventDefault(), n._strokeEnd(a));
734
+ }, this._handleTouchMove = function(n) {
735
+ n.preventDefault();
736
+ var o = n.targetTouches[0];
737
+ r._strokeMoveUpdate(o);
738
+ }, this._handleTouchEnd = function(n) {
739
+ var o = n.target === r._canvas;
740
+ o && (n.preventDefault(), r._strokeEnd(n));
717
741
  }, this.on();
718
742
  }
719
743
  z.prototype.clear = function() {
720
- var e = this._ctx, r = this._canvas;
721
- e.fillStyle = this.backgroundColor, e.clearRect(0, 0, r.width, r.height), e.fillRect(0, 0, r.width, r.height), this._data = [], this._reset(), this._isEmpty = !0;
744
+ var e = this._ctx, a = this._canvas;
745
+ e.fillStyle = this.backgroundColor, e.clearRect(0, 0, a.width, a.height), e.fillRect(0, 0, a.width, a.height), this._data = [], this._reset(), this._isEmpty = !0;
722
746
  };
723
747
  z.prototype.fromDataURL = function(e) {
724
- var r = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = new Image(), a = n.ratio || window.devicePixelRatio || 1, i = n.width || this._canvas.width / a, c = n.height || this._canvas.height / a;
748
+ var a = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = new Image(), n = r.ratio || window.devicePixelRatio || 1, o = r.width || this._canvas.width / n, c = r.height || this._canvas.height / n;
725
749
  this._reset(), t.src = e, t.onload = function() {
726
- r._ctx.drawImage(t, 0, 0, i, c);
750
+ a._ctx.drawImage(t, 0, 0, o, c);
727
751
  }, this._isEmpty = !1;
728
752
  };
729
753
  z.prototype.toDataURL = function(e) {
730
- var r;
754
+ var a;
731
755
  switch (e) {
732
756
  case "image/svg+xml":
733
757
  return this._toSVG();
734
758
  default:
735
- for (var n = arguments.length, t = Array(n > 1 ? n - 1 : 0), a = 1; a < n; a++)
736
- t[a - 1] = arguments[a];
737
- return (r = this._canvas).toDataURL.apply(r, [e].concat(t));
759
+ for (var r = arguments.length, t = Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
760
+ t[n - 1] = arguments[n];
761
+ return (a = this._canvas).toDataURL.apply(a, [e].concat(t));
738
762
  }
739
763
  };
740
764
  z.prototype.on = function() {
@@ -750,10 +774,10 @@ z.prototype._strokeBegin = function(e) {
750
774
  this._data.push([]), this._reset(), this._strokeUpdate(e), typeof this.onBegin == "function" && this.onBegin(e);
751
775
  };
752
776
  z.prototype._strokeUpdate = function(e) {
753
- var r = e.clientX, n = e.clientY, t = this._createPoint(r, n), a = this._data[this._data.length - 1], i = a && a[a.length - 1], c = i && t.distanceTo(i) < this.minDistance;
754
- if (!(i && c)) {
755
- var u = this._addPoint(t), d = u.curve, o = u.widths;
756
- d && o && this._drawCurve(d, o.start, o.end), this._data[this._data.length - 1].push({
777
+ var a = e.clientX, r = e.clientY, t = this._createPoint(a, r), n = this._data[this._data.length - 1], o = n && n[n.length - 1], c = o && t.distanceTo(o) < this.minDistance;
778
+ if (!(o && c)) {
779
+ var s = this._addPoint(t), f = s.curve, u = s.widths;
780
+ f && u && this._drawCurve(f, u.start, u.end), this._data[this._data.length - 1].push({
757
781
  x: t.x,
758
782
  y: t.y,
759
783
  time: t.time,
@@ -762,13 +786,13 @@ z.prototype._strokeUpdate = function(e) {
762
786
  }
763
787
  };
764
788
  z.prototype._strokeEnd = function(e) {
765
- var r = this.points.length > 2, n = this.points[0];
766
- if (!r && n && this._drawDot(n), n) {
767
- var t = this._data[this._data.length - 1], a = t[t.length - 1];
768
- n.equals(a) || t.push({
769
- x: n.x,
770
- y: n.y,
771
- time: n.time,
789
+ var a = this.points.length > 2, r = this.points[0];
790
+ if (!a && r && this._drawDot(r), r) {
791
+ var t = this._data[this._data.length - 1], n = t[t.length - 1];
792
+ r.equals(n) || t.push({
793
+ x: r.x,
794
+ y: r.y,
795
+ time: r.time,
772
796
  color: this.penColor
773
797
  });
774
798
  }
@@ -783,413 +807,454 @@ z.prototype._handleTouchEvents = function() {
783
807
  z.prototype._reset = function() {
784
808
  this.points = [], this._lastVelocity = 0, this._lastWidth = (this.minWidth + this.maxWidth) / 2, this._ctx.fillStyle = this.penColor;
785
809
  };
786
- z.prototype._createPoint = function(e, r, n) {
810
+ z.prototype._createPoint = function(e, a, r) {
787
811
  var t = this._canvas.getBoundingClientRect();
788
- return new ae(e - t.left, r - t.top, n || (/* @__PURE__ */ new Date()).getTime());
812
+ return new ne(e - t.left, a - t.top, r || (/* @__PURE__ */ new Date()).getTime());
789
813
  };
790
814
  z.prototype._addPoint = function(e) {
791
- var r = this.points, n = void 0;
792
- if (r.push(e), r.length > 2) {
793
- r.length === 3 && r.unshift(r[0]), n = this._calculateCurveControlPoints(r[0], r[1], r[2]);
794
- var t = n.c2;
795
- n = this._calculateCurveControlPoints(r[1], r[2], r[3]);
796
- var a = n.c1, i = new xe(r[1], t, a, r[2]), c = this._calculateCurveWidths(i);
797
- return r.shift(), { curve: i, widths: c };
815
+ var a = this.points, r = void 0;
816
+ if (a.push(e), a.length > 2) {
817
+ a.length === 3 && a.unshift(a[0]), r = this._calculateCurveControlPoints(a[0], a[1], a[2]);
818
+ var t = r.c2;
819
+ r = this._calculateCurveControlPoints(a[1], a[2], a[3]);
820
+ var n = r.c1, o = new ge(a[1], t, n, a[2]), c = this._calculateCurveWidths(o);
821
+ return a.shift(), { curve: o, widths: c };
798
822
  }
799
823
  return {};
800
824
  };
801
- z.prototype._calculateCurveControlPoints = function(e, r, n) {
802
- var t = e.x - r.x, a = e.y - r.y, i = r.x - n.x, c = r.y - n.y, u = { x: (e.x + r.x) / 2, y: (e.y + r.y) / 2 }, d = { x: (r.x + n.x) / 2, y: (r.y + n.y) / 2 }, o = Math.sqrt(t * t + a * a), l = Math.sqrt(i * i + c * c), p = u.x - d.x, m = u.y - d.y, _ = l / (o + l), x = { x: d.x + p * _, y: d.y + m * _ }, b = r.x - x.x, S = r.y - x.y;
825
+ z.prototype._calculateCurveControlPoints = function(e, a, r) {
826
+ var t = e.x - a.x, n = e.y - a.y, o = a.x - r.x, c = a.y - r.y, s = { x: (e.x + a.x) / 2, y: (e.y + a.y) / 2 }, f = { x: (a.x + r.x) / 2, y: (a.y + r.y) / 2 }, u = Math.sqrt(t * t + n * n), l = Math.sqrt(o * o + c * c), v = s.x - f.x, y = s.y - f.y, b = l / (u + l), T = { x: f.x + v * b, y: f.y + y * b }, g = a.x - T.x, x = a.y - T.y;
803
827
  return {
804
- c1: new ae(u.x + b, u.y + S),
805
- c2: new ae(d.x + b, d.y + S)
828
+ c1: new ne(s.x + g, s.y + x),
829
+ c2: new ne(f.x + g, f.y + x)
806
830
  };
807
831
  };
808
832
  z.prototype._calculateCurveWidths = function(e) {
809
- var r = e.startPoint, n = e.endPoint, t = { start: null, end: null }, a = this.velocityFilterWeight * n.velocityFrom(r) + (1 - this.velocityFilterWeight) * this._lastVelocity, i = this._strokeWidth(a);
810
- return t.start = this._lastWidth, t.end = i, this._lastVelocity = a, this._lastWidth = i, t;
833
+ var a = e.startPoint, r = e.endPoint, t = { start: null, end: null }, n = this.velocityFilterWeight * r.velocityFrom(a) + (1 - this.velocityFilterWeight) * this._lastVelocity, o = this._strokeWidth(n);
834
+ return t.start = this._lastWidth, t.end = o, this._lastVelocity = n, this._lastWidth = o, t;
811
835
  };
812
836
  z.prototype._strokeWidth = function(e) {
813
837
  return Math.max(this.maxWidth / (e + 1), this.minWidth);
814
838
  };
815
- z.prototype._drawPoint = function(e, r, n) {
839
+ z.prototype._drawPoint = function(e, a, r) {
816
840
  var t = this._ctx;
817
- t.moveTo(e, r), t.arc(e, r, n, 0, 2 * Math.PI, !1), this._isEmpty = !1;
841
+ t.moveTo(e, a), t.arc(e, a, r, 0, 2 * Math.PI, !1), this._isEmpty = !1;
818
842
  };
819
- z.prototype._drawCurve = function(e, r, n) {
820
- var t = this._ctx, a = n - r, i = Math.floor(e.length());
843
+ z.prototype._drawCurve = function(e, a, r) {
844
+ var t = this._ctx, n = r - a, o = Math.floor(e.length());
821
845
  t.beginPath();
822
- for (var c = 0; c < i; c += 1) {
823
- var u = c / i, d = u * u, o = d * u, l = 1 - u, p = l * l, m = p * l, _ = m * e.startPoint.x;
824
- _ += 3 * p * u * e.control1.x, _ += 3 * l * d * e.control2.x, _ += o * e.endPoint.x;
825
- var x = m * e.startPoint.y;
826
- x += 3 * p * u * e.control1.y, x += 3 * l * d * e.control2.y, x += o * e.endPoint.y;
827
- var b = r + o * a;
828
- this._drawPoint(_, x, b);
846
+ for (var c = 0; c < o; c += 1) {
847
+ var s = c / o, f = s * s, u = f * s, l = 1 - s, v = l * l, y = v * l, b = y * e.startPoint.x;
848
+ b += 3 * v * s * e.control1.x, b += 3 * l * f * e.control2.x, b += u * e.endPoint.x;
849
+ var T = y * e.startPoint.y;
850
+ T += 3 * v * s * e.control1.y, T += 3 * l * f * e.control2.y, T += u * e.endPoint.y;
851
+ var g = a + u * n;
852
+ this._drawPoint(b, T, g);
829
853
  }
830
854
  t.closePath(), t.fill();
831
855
  };
832
856
  z.prototype._drawDot = function(e) {
833
- var r = this._ctx, n = typeof this.dotSize == "function" ? this.dotSize() : this.dotSize;
834
- r.beginPath(), this._drawPoint(e.x, e.y, n), r.closePath(), r.fill();
857
+ var a = this._ctx, r = typeof this.dotSize == "function" ? this.dotSize() : this.dotSize;
858
+ a.beginPath(), this._drawPoint(e.x, e.y, r), a.closePath(), a.fill();
835
859
  };
836
- z.prototype._fromData = function(e, r, n) {
860
+ z.prototype._fromData = function(e, a, r) {
837
861
  for (var t = 0; t < e.length; t += 1) {
838
- var a = e[t];
839
- if (a.length > 1)
840
- for (var i = 0; i < a.length; i += 1) {
841
- var c = a[i], u = new ae(c.x, c.y, c.time), d = c.color;
842
- if (i === 0)
843
- this.penColor = d, this._reset(), this._addPoint(u);
844
- else if (i !== a.length - 1) {
845
- var o = this._addPoint(u), l = o.curve, p = o.widths;
846
- l && p && r(l, p, d);
862
+ var n = e[t];
863
+ if (n.length > 1)
864
+ for (var o = 0; o < n.length; o += 1) {
865
+ var c = n[o], s = new ne(c.x, c.y, c.time), f = c.color;
866
+ if (o === 0)
867
+ this.penColor = f, this._reset(), this._addPoint(s);
868
+ else if (o !== n.length - 1) {
869
+ var u = this._addPoint(s), l = u.curve, v = u.widths;
870
+ l && v && a(l, v, f);
847
871
  }
848
872
  }
849
873
  else {
850
874
  this._reset();
851
- var m = a[0];
852
- n(m);
875
+ var y = n[0];
876
+ r(y);
853
877
  }
854
878
  }
855
879
  };
856
880
  z.prototype._toSVG = function() {
857
- var e = this, r = this._data, n = this._canvas, t = Math.max(window.devicePixelRatio || 1, 1), a = 0, i = 0, c = n.width / t, u = n.height / t, d = document.createElementNS("http://www.w3.org/2000/svg", "svg");
858
- d.setAttributeNS(null, "width", n.width), d.setAttributeNS(null, "height", n.height), this._fromData(r, function(y, W, j) {
881
+ var e = this, a = this._data, r = this._canvas, t = Math.max(window.devicePixelRatio || 1, 1), n = 0, o = 0, c = r.width / t, s = r.height / t, f = document.createElementNS("http://www.w3.org/2000/svg", "svg");
882
+ f.setAttributeNS(null, "width", r.width), f.setAttributeNS(null, "height", r.height), this._fromData(a, function(_, q, $) {
859
883
  var k = document.createElement("path");
860
- if (!isNaN(y.control1.x) && !isNaN(y.control1.y) && !isNaN(y.control2.x) && !isNaN(y.control2.y)) {
861
- var f = "M " + y.startPoint.x.toFixed(3) + "," + y.startPoint.y.toFixed(3) + " " + ("C " + y.control1.x.toFixed(3) + "," + y.control1.y.toFixed(3) + " ") + (y.control2.x.toFixed(3) + "," + y.control2.y.toFixed(3) + " ") + (y.endPoint.x.toFixed(3) + "," + y.endPoint.y.toFixed(3));
862
- k.setAttribute("d", f), k.setAttribute("stroke-width", (W.end * 2.25).toFixed(3)), k.setAttribute("stroke", j), k.setAttribute("fill", "none"), k.setAttribute("stroke-linecap", "round"), d.appendChild(k);
884
+ if (!isNaN(_.control1.x) && !isNaN(_.control1.y) && !isNaN(_.control2.x) && !isNaN(_.control2.y)) {
885
+ var d = "M " + _.startPoint.x.toFixed(3) + "," + _.startPoint.y.toFixed(3) + " " + ("C " + _.control1.x.toFixed(3) + "," + _.control1.y.toFixed(3) + " ") + (_.control2.x.toFixed(3) + "," + _.control2.y.toFixed(3) + " ") + (_.endPoint.x.toFixed(3) + "," + _.endPoint.y.toFixed(3));
886
+ k.setAttribute("d", d), k.setAttribute("stroke-width", (q.end * 2.25).toFixed(3)), k.setAttribute("stroke", $), k.setAttribute("fill", "none"), k.setAttribute("stroke-linecap", "round"), f.appendChild(k);
863
887
  }
864
- }, function(y) {
865
- var W = document.createElement("circle"), j = typeof e.dotSize == "function" ? e.dotSize() : e.dotSize;
866
- W.setAttribute("r", j), W.setAttribute("cx", y.x), W.setAttribute("cy", y.y), W.setAttribute("fill", y.color), d.appendChild(W);
888
+ }, function(_) {
889
+ var q = document.createElement("circle"), $ = typeof e.dotSize == "function" ? e.dotSize() : e.dotSize;
890
+ q.setAttribute("r", $), q.setAttribute("cx", _.x), q.setAttribute("cy", _.y), q.setAttribute("fill", _.color), f.appendChild(q);
867
891
  });
868
- var o = "data:image/svg+xml;base64,", l = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"' + (' viewBox="' + a + " " + i + " " + c + " " + u + '"') + (' width="' + c + '"') + (' height="' + u + '"') + ">", p = d.innerHTML;
869
- if (p === void 0) {
870
- var m = document.createElement("dummy"), _ = d.childNodes;
871
- m.innerHTML = "";
872
- for (var x = 0; x < _.length; x += 1)
873
- m.appendChild(_[x].cloneNode(!0));
874
- p = m.innerHTML;
892
+ var u = "data:image/svg+xml;base64,", l = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"' + (' viewBox="' + n + " " + o + " " + c + " " + s + '"') + (' width="' + c + '"') + (' height="' + s + '"') + ">", v = f.innerHTML;
893
+ if (v === void 0) {
894
+ var y = document.createElement("dummy"), b = f.childNodes;
895
+ y.innerHTML = "";
896
+ for (var T = 0; T < b.length; T += 1)
897
+ y.appendChild(b[T].cloneNode(!0));
898
+ v = y.innerHTML;
875
899
  }
876
- var b = "</svg>", S = l + p + b;
877
- return o + btoa(S);
900
+ var g = "</svg>", x = l + v + g;
901
+ return u + btoa(x);
878
902
  };
879
903
  z.prototype.fromData = function(e) {
880
- var r = this;
881
- this.clear(), this._fromData(e, function(n, t) {
882
- return r._drawCurve(n, t.start, t.end);
883
- }, function(n) {
884
- return r._drawDot(n);
904
+ var a = this;
905
+ this.clear(), this._fromData(e, function(r, t) {
906
+ return a._drawCurve(r, t.start, t.end);
907
+ }, function(r) {
908
+ return a._drawDot(r);
885
909
  }), this._data = e;
886
910
  };
887
911
  z.prototype.toData = function() {
888
912
  return this._data;
889
913
  };
890
- const rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
914
+ const tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
891
915
  __proto__: null,
892
916
  default: z
893
- }, Symbol.toStringTag, { value: "Module" })), at = /* @__PURE__ */ Ne(rt);
894
- var fe = { exports: {} }, ot = fe.exports, Le;
895
- function it() {
896
- return Le || (Le = 1, (function(e, r) {
897
- (function(n, t) {
917
+ }, Symbol.toStringTag, { value: "Module" })), rt = /* @__PURE__ */ Ye(tt);
918
+ var le = { exports: {} }, nt = le.exports, Ie;
919
+ function at() {
920
+ return Ie || (Ie = 1, (function(e, a) {
921
+ (function(r, t) {
898
922
  e.exports = t();
899
- })(ot, function() {
900
- return (function(n) {
901
- function t(i) {
902
- if (a[i]) return a[i].exports;
903
- var c = a[i] = { exports: {}, id: i, loaded: !1 };
904
- return n[i].call(c.exports, c, c.exports, t), c.loaded = !0, c.exports;
923
+ })(nt, function() {
924
+ return (function(r) {
925
+ function t(o) {
926
+ if (n[o]) return n[o].exports;
927
+ var c = n[o] = { exports: {}, id: o, loaded: !1 };
928
+ return r[o].call(c.exports, c, c.exports, t), c.loaded = !0, c.exports;
905
929
  }
906
- var a = {};
907
- return t.m = n, t.c = a, t.p = "", t(0);
908
- })([function(n, t) {
909
- function a(o) {
910
- var l = o.getContext("2d"), p = o.width, m = o.height, _ = l.getImageData(0, 0, p, m).data, x = u(!0, p, m, _), b = u(!1, p, m, _), S = d(!0, p, m, _), y = d(!1, p, m, _), W = y - S + 1, j = b - x + 1, k = l.getImageData(S, x, W, j);
911
- return o.width = W, o.height = j, l.clearRect(0, 0, W, j), l.putImageData(k, 0, 0), o;
930
+ var n = {};
931
+ return t.m = r, t.c = n, t.p = "", t(0);
932
+ })([function(r, t) {
933
+ function n(u) {
934
+ var l = u.getContext("2d"), v = u.width, y = u.height, b = l.getImageData(0, 0, v, y).data, T = s(!0, v, y, b), g = s(!1, v, y, b), x = f(!0, v, y, b), _ = f(!1, v, y, b), q = _ - x + 1, $ = g - T + 1, k = l.getImageData(x, T, q, $);
935
+ return u.width = q, u.height = $, l.clearRect(0, 0, q, $), l.putImageData(k, 0, 0), u;
912
936
  }
913
- function i(o, l, p, m) {
914
- return { red: m[4 * (p * l + o)], green: m[4 * (p * l + o) + 1], blue: m[4 * (p * l + o) + 2], alpha: m[4 * (p * l + o) + 3] };
937
+ function o(u, l, v, y) {
938
+ return { red: y[4 * (v * l + u)], green: y[4 * (v * l + u) + 1], blue: y[4 * (v * l + u) + 2], alpha: y[4 * (v * l + u) + 3] };
915
939
  }
916
- function c(o, l, p, m) {
917
- return i(o, l, p, m).alpha;
940
+ function c(u, l, v, y) {
941
+ return o(u, l, v, y).alpha;
918
942
  }
919
- function u(o, l, p, m) {
920
- for (var _ = o ? 1 : -1, x = o ? 0 : p - 1, b = x; o ? b < p : b > -1; b += _) for (var S = 0; S < l; S++) if (c(S, b, l, m)) return b;
943
+ function s(u, l, v, y) {
944
+ for (var b = u ? 1 : -1, T = u ? 0 : v - 1, g = T; u ? g < v : g > -1; g += b) for (var x = 0; x < l; x++) if (c(x, g, l, y)) return g;
921
945
  return null;
922
946
  }
923
- function d(o, l, p, m) {
924
- for (var _ = o ? 1 : -1, x = o ? 0 : l - 1, b = x; o ? b < l : b > -1; b += _) for (var S = 0; S < p; S++) if (c(b, S, l, m)) return b;
947
+ function f(u, l, v, y) {
948
+ for (var b = u ? 1 : -1, T = u ? 0 : l - 1, g = T; u ? g < l : g > -1; g += b) for (var x = 0; x < v; x++) if (c(g, x, l, y)) return g;
925
949
  return null;
926
950
  }
927
- Object.defineProperty(t, "__esModule", { value: !0 }), t.default = a;
951
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.default = n;
928
952
  }]);
929
953
  });
930
- })(fe)), fe.exports;
954
+ })(le)), le.exports;
931
955
  }
932
- var st = le.exports, je;
933
- function ut() {
934
- return je || (je = 1, (function(e, r) {
935
- (function(n, t) {
936
- e.exports = t(/* @__PURE__ */ tt(), ze, at, it());
937
- })(st, function(n, t, a, i) {
956
+ var ot = ce.exports, Le;
957
+ function it() {
958
+ return Le || (Le = 1, (function(e, a) {
959
+ (function(r, t) {
960
+ e.exports = t(/* @__PURE__ */ Qe(), ze, rt, at());
961
+ })(ot, function(r, t, n, o) {
938
962
  return (function(c) {
939
- function u(o) {
940
- if (d[o]) return d[o].exports;
941
- var l = d[o] = { exports: {}, id: o, loaded: !1 };
942
- return c[o].call(l.exports, l, l.exports, u), l.loaded = !0, l.exports;
963
+ function s(u) {
964
+ if (f[u]) return f[u].exports;
965
+ var l = f[u] = { exports: {}, id: u, loaded: !1 };
966
+ return c[u].call(l.exports, l, l.exports, s), l.loaded = !0, l.exports;
943
967
  }
944
- var d = {};
945
- return u.m = c, u.c = d, u.p = "", u(0);
946
- })([function(c, u, d) {
947
- function o(M) {
948
- return M && M.__esModule ? M : { default: M };
968
+ var f = {};
969
+ return s.m = c, s.c = f, s.p = "", s(0);
970
+ })([function(c, s, f) {
971
+ function u(A) {
972
+ return A && A.__esModule ? A : { default: A };
949
973
  }
950
- function l(M, P) {
951
- var B = {};
952
- for (var N in M) P.indexOf(N) >= 0 || Object.prototype.hasOwnProperty.call(M, N) && (B[N] = M[N]);
953
- return B;
974
+ function l(A, P) {
975
+ var N = {};
976
+ for (var R in A) P.indexOf(R) >= 0 || Object.prototype.hasOwnProperty.call(A, R) && (N[R] = A[R]);
977
+ return N;
954
978
  }
955
- function p(M, P) {
956
- if (!(M instanceof P)) throw new TypeError("Cannot call a class as a function");
979
+ function v(A, P) {
980
+ if (!(A instanceof P)) throw new TypeError("Cannot call a class as a function");
957
981
  }
958
- function m(M, P) {
959
- if (!M) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
960
- return !P || typeof P != "object" && typeof P != "function" ? M : P;
982
+ function y(A, P) {
983
+ if (!A) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
984
+ return !P || typeof P != "object" && typeof P != "function" ? A : P;
961
985
  }
962
- function _(M, P) {
986
+ function b(A, P) {
963
987
  if (typeof P != "function" && P !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof P);
964
- M.prototype = Object.create(P && P.prototype, { constructor: { value: M, enumerable: !1, writable: !0, configurable: !0 } }), P && (Object.setPrototypeOf ? Object.setPrototypeOf(M, P) : M.__proto__ = P);
988
+ A.prototype = Object.create(P && P.prototype, { constructor: { value: A, enumerable: !1, writable: !0, configurable: !0 } }), P && (Object.setPrototypeOf ? Object.setPrototypeOf(A, P) : A.__proto__ = P);
965
989
  }
966
- Object.defineProperty(u, "__esModule", { value: !0 });
967
- var x = Object.assign || function(M) {
990
+ Object.defineProperty(s, "__esModule", { value: !0 });
991
+ var T = Object.assign || function(A) {
968
992
  for (var P = 1; P < arguments.length; P++) {
969
- var B = arguments[P];
970
- for (var N in B) Object.prototype.hasOwnProperty.call(B, N) && (M[N] = B[N]);
993
+ var N = arguments[P];
994
+ for (var R in N) Object.prototype.hasOwnProperty.call(N, R) && (A[R] = N[R]);
971
995
  }
972
- return M;
973
- }, b = /* @__PURE__ */ (function() {
974
- function M(P, B) {
975
- for (var N = 0; N < B.length; N++) {
976
- var g = B[N];
977
- g.enumerable = g.enumerable || !1, g.configurable = !0, "value" in g && (g.writable = !0), Object.defineProperty(P, g.key, g);
996
+ return A;
997
+ }, g = /* @__PURE__ */ (function() {
998
+ function A(P, N) {
999
+ for (var R = 0; R < N.length; R++) {
1000
+ var m = N[R];
1001
+ m.enumerable = m.enumerable || !1, m.configurable = !0, "value" in m && (m.writable = !0), Object.defineProperty(P, m.key, m);
978
1002
  }
979
1003
  }
980
- return function(P, B, N) {
981
- return B && M(P.prototype, B), N && M(P, N), P;
1004
+ return function(P, N, R) {
1005
+ return N && A(P.prototype, N), R && A(P, R), P;
982
1006
  };
983
- })(), S = d(1), y = o(S), W = d(2), j = o(W), k = d(3), f = o(k), X = d(4), re = o(X), Q = (function(M) {
1007
+ })(), x = f(1), _ = u(x), q = f(2), $ = u(q), k = f(3), d = u(k), Z = f(4), re = u(Z), Q = (function(A) {
984
1008
  function P() {
985
- var B, N, g, G;
986
- p(this, P);
987
- for (var U = arguments.length, H = Array(U), J = 0; J < U; J++) H[J] = arguments[J];
988
- return N = g = m(this, (B = P.__proto__ || Object.getPrototypeOf(P)).call.apply(B, [this].concat(H))), g._sigPad = null, g._excludeOurProps = function() {
989
- var F = g.props, Z = (F.canvasProps, F.clearOnResize, l(F, ["canvasProps", "clearOnResize"]));
990
- return Z;
991
- }, g.getCanvas = function() {
992
- return g._canvas;
993
- }, g.getTrimmedCanvas = function() {
994
- var F = document.createElement("canvas");
995
- return F.width = g._canvas.width, F.height = g._canvas.height, F.getContext("2d").drawImage(g._canvas, 0, 0), (0, re.default)(F);
996
- }, g.getSignaturePad = function() {
997
- return g._sigPad;
998
- }, g._checkClearOnResize = function() {
999
- g.props.clearOnResize && g._resizeCanvas();
1000
- }, g._resizeCanvas = function() {
1001
- var F = g.props.canvasProps || {}, Z = F.width, s = F.height;
1002
- if (!Z || !s) {
1003
- var h = g._canvas, w = Math.max(window.devicePixelRatio || 1, 1);
1004
- Z || (h.width = h.offsetWidth * w), s || (h.height = h.offsetHeight * w), h.getContext("2d").scale(w, w), g.clear();
1009
+ var N, R, m, F;
1010
+ v(this, P);
1011
+ for (var G = arguments.length, V = Array(G), X = 0; X < G; X++) V[X] = arguments[X];
1012
+ return R = m = y(this, (N = P.__proto__ || Object.getPrototypeOf(P)).call.apply(N, [this].concat(V))), m._sigPad = null, m._excludeOurProps = function() {
1013
+ var B = m.props, J = (B.canvasProps, B.clearOnResize, l(B, ["canvasProps", "clearOnResize"]));
1014
+ return J;
1015
+ }, m.getCanvas = function() {
1016
+ return m._canvas;
1017
+ }, m.getTrimmedCanvas = function() {
1018
+ var B = document.createElement("canvas");
1019
+ return B.width = m._canvas.width, B.height = m._canvas.height, B.getContext("2d").drawImage(m._canvas, 0, 0), (0, re.default)(B);
1020
+ }, m.getSignaturePad = function() {
1021
+ return m._sigPad;
1022
+ }, m._checkClearOnResize = function() {
1023
+ m.props.clearOnResize && m._resizeCanvas();
1024
+ }, m._resizeCanvas = function() {
1025
+ var B = m.props.canvasProps || {}, J = B.width, i = B.height;
1026
+ if (!J || !i) {
1027
+ var h = m._canvas, w = Math.max(window.devicePixelRatio || 1, 1);
1028
+ J || (h.width = h.offsetWidth * w), i || (h.height = h.offsetHeight * w), h.getContext("2d").scale(w, w), m.clear();
1005
1029
  }
1006
- }, g.on = function() {
1007
- return window.addEventListener("resize", g._checkClearOnResize), g._sigPad.on();
1008
- }, g.off = function() {
1009
- return window.removeEventListener("resize", g._checkClearOnResize), g._sigPad.off();
1010
- }, g.clear = function() {
1011
- return g._sigPad.clear();
1012
- }, g.isEmpty = function() {
1013
- return g._sigPad.isEmpty();
1014
- }, g.fromDataURL = function(F, Z) {
1015
- return g._sigPad.fromDataURL(F, Z);
1016
- }, g.toDataURL = function(F, Z) {
1017
- return g._sigPad.toDataURL(F, Z);
1018
- }, g.fromData = function(F) {
1019
- return g._sigPad.fromData(F);
1020
- }, g.toData = function() {
1021
- return g._sigPad.toData();
1022
- }, G = N, m(g, G);
1030
+ }, m.on = function() {
1031
+ return window.addEventListener("resize", m._checkClearOnResize), m._sigPad.on();
1032
+ }, m.off = function() {
1033
+ return window.removeEventListener("resize", m._checkClearOnResize), m._sigPad.off();
1034
+ }, m.clear = function() {
1035
+ return m._sigPad.clear();
1036
+ }, m.isEmpty = function() {
1037
+ return m._sigPad.isEmpty();
1038
+ }, m.fromDataURL = function(B, J) {
1039
+ return m._sigPad.fromDataURL(B, J);
1040
+ }, m.toDataURL = function(B, J) {
1041
+ return m._sigPad.toDataURL(B, J);
1042
+ }, m.fromData = function(B) {
1043
+ return m._sigPad.fromData(B);
1044
+ }, m.toData = function() {
1045
+ return m._sigPad.toData();
1046
+ }, F = R, y(m, F);
1023
1047
  }
1024
- return _(P, M), b(P, [{ key: "componentDidMount", value: function() {
1025
- this._sigPad = new f.default(this._canvas, this._excludeOurProps()), this._resizeCanvas(), this.on();
1048
+ return b(P, A), g(P, [{ key: "componentDidMount", value: function() {
1049
+ this._sigPad = new d.default(this._canvas, this._excludeOurProps()), this._resizeCanvas(), this.on();
1026
1050
  } }, { key: "componentWillUnmount", value: function() {
1027
1051
  this.off();
1028
1052
  } }, { key: "componentDidUpdate", value: function() {
1029
1053
  Object.assign(this._sigPad, this._excludeOurProps());
1030
1054
  } }, { key: "render", value: function() {
1031
- var B = this, N = this.props.canvasProps;
1032
- return j.default.createElement("canvas", x({ ref: function(g) {
1033
- B._canvas = g;
1034
- } }, N));
1055
+ var N = this, R = this.props.canvasProps;
1056
+ return $.default.createElement("canvas", T({ ref: function(m) {
1057
+ N._canvas = m;
1058
+ } }, R));
1035
1059
  } }]), P;
1036
- })(W.Component);
1037
- Q.propTypes = { velocityFilterWeight: y.default.number, minWidth: y.default.number, maxWidth: y.default.number, minDistance: y.default.number, dotSize: y.default.oneOfType([y.default.number, y.default.func]), penColor: y.default.string, throttle: y.default.number, onEnd: y.default.func, onBegin: y.default.func, canvasProps: y.default.object, clearOnResize: y.default.bool }, Q.defaultProps = { clearOnResize: !0 }, u.default = Q;
1038
- }, function(c, u) {
1039
- c.exports = n;
1040
- }, function(c, u) {
1060
+ })(q.Component);
1061
+ Q.propTypes = { velocityFilterWeight: _.default.number, minWidth: _.default.number, maxWidth: _.default.number, minDistance: _.default.number, dotSize: _.default.oneOfType([_.default.number, _.default.func]), penColor: _.default.string, throttle: _.default.number, onEnd: _.default.func, onBegin: _.default.func, canvasProps: _.default.object, clearOnResize: _.default.bool }, Q.defaultProps = { clearOnResize: !0 }, s.default = Q;
1062
+ }, function(c, s) {
1063
+ c.exports = r;
1064
+ }, function(c, s) {
1041
1065
  c.exports = t;
1042
- }, function(c, u) {
1043
- c.exports = a;
1044
- }, function(c, u) {
1045
- c.exports = i;
1066
+ }, function(c, s) {
1067
+ c.exports = n;
1068
+ }, function(c, s) {
1069
+ c.exports = o;
1046
1070
  }]);
1047
1071
  });
1048
- })(le)), le.exports;
1072
+ })(ce)), ce.exports;
1049
1073
  }
1050
- var ct = ut();
1051
- const lt = /* @__PURE__ */ Be(ct), ft = "_Signature_qgimg_1", dt = "_SignatureMain_qgimg_5", ht = "_SignatureMainAuto_qgimg_15", vt = "_SignatureMainManual_qgimg_19", pt = "_Buttons_qgimg_24", gt = "_Header_qgimg_34", mt = "_HeaderManualDraw_qgimg_43", yt = "_HeaderNotManualDraw_qgimg_47", _t = "_Content_qgimg_51", bt = "_AutoContent_qgimg_57", xt = "_SignatureHeaderReset_qgimg_64", St = "_SignatureManualPanel_qgimg_71", Pt = "_SignatureManualPanelPlaceholder_qgimg_78", wt = "_SignatureManualPanelButton_qgimg_82", Et = "_SignatureAutoPanelImage_qgimg_97", Tt = "_SignatureAutoPanelLoader_qgimg_103", Ct = "_SignatureAutoPanelNoteIcon_qgimg_110", Rt = "_SignatureAutoPanelButton_qgimg_114", Mt = "_SignatureAutoLabel_qgimg_118", Ot = "_SignatureErrorLoading_qgimg_127", Y = {
1052
- Signature: ft,
1053
- SignatureMain: dt,
1054
- SignatureMainAuto: ht,
1055
- SignatureMainManual: vt,
1056
- Buttons: pt,
1057
- Header: gt,
1058
- HeaderManualDraw: mt,
1059
- HeaderNotManualDraw: yt,
1060
- Content: _t,
1061
- AutoContent: bt,
1062
- SignatureHeaderReset: xt,
1063
- SignatureManualPanel: St,
1064
- SignatureManualPanelPlaceholder: Pt,
1065
- SignatureManualPanelButton: wt,
1066
- SignatureAutoPanelImage: Et,
1067
- SignatureAutoPanelLoader: Tt,
1068
- SignatureAutoPanelNoteIcon: Ct,
1069
- SignatureAutoPanelButton: Rt,
1070
- SignatureAutoLabel: Mt,
1071
- SignatureErrorLoading: Ot
1072
- }, Ft = (e) => {
1073
- const { auto: r, manual: n, getSignature: t, onChangeManual: a, onChangeAuto: i, className: c = "" } = e, u = Pe(null), d = Pe(!1), [o, l] = ie(null), [p, m] = ie(n ? "manual" : "auto"), [_, x] = ie(""), [b, S] = ie(!1), { width: y = 0, height: W = 0 } = Fe({ ref: u, box: "border-box" }), j = p === "auto" ? r ? "auto-generated" : "auto-loading" : _ ? "manual-drawn" : n ? "manual-stored" : "manual-blank", k = r !== "" || b, f = n || _, X = ne(
1074
- (U) => {
1075
- !o || !y || !W || !U || o.fromDataURL(U, {
1076
- width: +y.toFixed(),
1077
- height: +W.toFixed()
1074
+ var st = it();
1075
+ const ut = /* @__PURE__ */ He(st), ct = "_Signature_1nnjp_1", lt = "_Main_1nnjp_7", ft = "_MainAuto_1nnjp_17", dt = "_MainManual_1nnjp_21", ht = "_Footer_1nnjp_27", pt = "_Header_1nnjp_37", vt = "_HeaderTitle_1nnjp_46", yt = "_HeaderManualDraw_1nnjp_51", mt = "_HeaderNotManualDraw_1nnjp_55", _t = "_HeaderReset_1nnjp_59", gt = "_ManualPanel_1nnjp_70", bt = "_ManualPanelButton_1nnjp_81", xt = "_AutoPanel_1nnjp_96", Pt = "_AutoPanelImage_1nnjp_103", wt = "_AutoPanelLoader_1nnjp_109", Et = "_AutoPanelButton_1nnjp_116", Tt = "_AutoPanelLabel_1nnjp_120", St = "_AutoPanelLabelIcon_1nnjp_128", Ct = "_AutoPanelLabelText_1nnjp_134", Ot = "_AutoPanelError_1nnjp_141", Rt = "_AutoPanelErrorTitle_1nnjp_150", U = {
1076
+ Signature: ct,
1077
+ Main: lt,
1078
+ MainAuto: ft,
1079
+ MainManual: dt,
1080
+ Footer: ht,
1081
+ Header: pt,
1082
+ HeaderTitle: vt,
1083
+ HeaderManualDraw: yt,
1084
+ HeaderNotManualDraw: mt,
1085
+ HeaderReset: _t,
1086
+ ManualPanel: gt,
1087
+ ManualPanelButton: bt,
1088
+ AutoPanel: xt,
1089
+ AutoPanelImage: Pt,
1090
+ AutoPanelLoader: wt,
1091
+ AutoPanelButton: Et,
1092
+ AutoPanelLabel: Tt,
1093
+ AutoPanelLabelIcon: St,
1094
+ AutoPanelLabelText: Ct,
1095
+ AutoPanelError: Ot,
1096
+ AutoPanelErrorTitle: Rt
1097
+ }, zt = ({
1098
+ // Signature props
1099
+ auto: e,
1100
+ manual: a,
1101
+ getSignature: r,
1102
+ onChangeManual: t,
1103
+ onChangeAuto: n,
1104
+ // Base props
1105
+ ...o
1106
+ }) => {
1107
+ const c = xe(null), s = xe(!1), [f, u] = oe(null), [l, v] = oe(a ? "manual" : "auto"), [y, b] = oe(""), [T, g] = oe(!1), { width: x = 0, height: _ = 0 } = Ne({ ref: c, box: "border-box" }), q = l === "auto" ? e ? "auto-generated" : "auto-loading" : y ? "manual-drawn" : a ? "manual-stored" : "manual-blank", $ = e !== "" || T, k = a || y, d = te(
1108
+ (F) => {
1109
+ !f || !x || !_ || !F || f.fromDataURL(F, {
1110
+ width: +x.toFixed(),
1111
+ height: +_.toFixed()
1078
1112
  });
1079
1113
  },
1080
- [o, y, W]
1081
- ), re = ne(() => {
1082
- if (!o) return;
1083
- const U = o.getCanvas().toDataURL("image/png");
1084
- x(U), a(U);
1085
- }, [o, a]), Q = ne(() => {
1086
- o && (o.clear(), x(""), a(""));
1087
- }, [o, a]), M = ne(() => {
1088
- m("auto"), x("");
1089
- }, []), P = ne(() => {
1090
- m("manual");
1091
- }, []), B = ne(() => {
1092
- m("manual"), x(""), a("");
1093
- }, [a]), N = ne(() => {
1094
- _ && x("");
1095
- }, [_]), g = (U) => U.includes(j);
1096
- we(() => {
1097
- p === "manual" && _ && y && W && X(_);
1098
- }, [p, _, y, W, X]), we(() => {
1099
- if (r) {
1100
- d.current = !1;
1114
+ [f, x, _]
1115
+ ), Z = te(() => {
1116
+ if (!f) return;
1117
+ const F = f.getCanvas().toDataURL("image/png");
1118
+ b(F), t(F);
1119
+ }, [f, t]), re = te(() => {
1120
+ f && (f.clear(), b(""), t(""));
1121
+ }, [f, t]), Q = te(() => {
1122
+ v("auto"), b("");
1123
+ }, []), A = te(() => {
1124
+ v("manual");
1125
+ }, []), P = te(() => {
1126
+ v("manual"), b(""), t("");
1127
+ }, [t]), N = te(() => {
1128
+ y && b("");
1129
+ }, [y]), R = (F) => F.includes(q);
1130
+ Pe(() => {
1131
+ l === "manual" && y && x && _ && d(y);
1132
+ }, [l, y, x, _, d]), Pe(() => {
1133
+ if (e) {
1134
+ s.current = !1;
1101
1135
  return;
1102
1136
  }
1103
- d.current || (d.current = !0, t().then((U) => {
1104
- const H = `data:image/png;base64,${U.signature}`;
1105
- S(!1), i(H);
1137
+ s.current || (s.current = !0, r().then((F) => {
1138
+ const G = `data:image/png;base64,${F.signature}`;
1139
+ g(!1), n(G);
1106
1140
  }).catch(() => {
1107
- S(!0);
1141
+ g(!0);
1108
1142
  }));
1109
- }, [r, t, i]);
1110
- const G = ne(() => {
1111
- S(!1), d.current = !0, t().then((U) => {
1112
- const H = `data:image/png;base64,${U.signature}`;
1113
- S(!1), i(H);
1143
+ }, [e, r, n]);
1144
+ const m = te(() => {
1145
+ g(!1), s.current = !0, r().then((F) => {
1146
+ const G = `data:image/png;base64,${F.signature}`;
1147
+ g(!1), n(G);
1114
1148
  }).catch(() => {
1115
- S(!0);
1149
+ g(!0);
1116
1150
  });
1117
- }, [t, i]);
1118
- return /* @__PURE__ */ ee("div", { className: de(Y.Signature, c), children: [
1119
- /* @__PURE__ */ ee(
1120
- "div",
1121
- {
1122
- className: de(
1123
- Y.SignatureMain,
1124
- g(["auto-generated", "auto-loading"]) ? Y.SignatureMainAuto : Y.SignatureMainManual
1151
+ }, [r, n]);
1152
+ return /* @__PURE__ */ ee(
1153
+ "div",
1154
+ {
1155
+ "data-testid": Ee(o, "data-testid", "signature"),
1156
+ className: fe(U.Signature, Ee(o, "className")),
1157
+ children: [
1158
+ /* @__PURE__ */ ee(
1159
+ "div",
1160
+ {
1161
+ className: fe(U.Main, R(["auto-generated", "auto-loading"]) ? U.MainAuto : U.MainManual),
1162
+ ref: c,
1163
+ children: [
1164
+ /* @__PURE__ */ ee("div", { className: fe(U.Header, R(["manual-drawn"]) ? U.HeaderManualDraw : U.HeaderNotManualDraw), children: [
1165
+ R(["auto-generated", "auto-loading"]) && /* @__PURE__ */ H("span", { className: U.HeaderTitle, children: "Wir haben eine digitale Signature Sie generiert." }),
1166
+ R(["manual-blank", "manual-stored"]) && /* @__PURE__ */ H("span", { className: U.HeaderTitle, children: "Ihre Signatur:" }),
1167
+ R(["manual-drawn"]) && /* @__PURE__ */ H(
1168
+ ie,
1169
+ {
1170
+ blurAfterClick: !0,
1171
+ text: "Neu starten",
1172
+ underlined: !0,
1173
+ icon: /* @__PURE__ */ H(Fe, {}),
1174
+ className: U.HeaderReset,
1175
+ onClick: re
1176
+ }
1177
+ )
1178
+ ] }),
1179
+ R(["auto-generated", "auto-loading"]) ? /* @__PURE__ */ ee("div", { className: U.AutoPanel, children: [
1180
+ e !== "" && /* @__PURE__ */ H("img", { className: U.AutoPanelImage, src: e, alt: "signature" }),
1181
+ e === "" && !T && /* @__PURE__ */ H(Ue, { size: "sm", color: "accent-primary", className: U.AutoPanelLoader }),
1182
+ e === "" && T && /* @__PURE__ */ ee("div", { className: U.AutoPanelError, children: [
1183
+ /* @__PURE__ */ H("span", { className: U.AutoPanelErrorTitle, children: "Automatische Signatur konnte nicht geladen werden." }),
1184
+ /* @__PURE__ */ H(
1185
+ ie,
1186
+ {
1187
+ blurAfterClick: !0,
1188
+ underlined: !0,
1189
+ text: "Erneut versuchen",
1190
+ size: "sm",
1191
+ iconPosition: "right",
1192
+ icon: /* @__PURE__ */ H(qe, {}),
1193
+ onClick: m
1194
+ }
1195
+ )
1196
+ ] }),
1197
+ e !== "" && /* @__PURE__ */ ee("div", { className: U.AutoPanelLabel, children: [
1198
+ /* @__PURE__ */ H(Be, { className: U.AutoPanelLabelIcon }),
1199
+ /* @__PURE__ */ H("span", { className: U.AutoPanelLabelText, children: "Diese Unterschrift ist ausreichend" })
1200
+ ] }),
1201
+ $ && /* @__PURE__ */ H(
1202
+ ie,
1203
+ {
1204
+ blurAfterClick: !0,
1205
+ text: "Per Hand/Maus unterschreiben",
1206
+ underlined: !0,
1207
+ className: U.AutoPanelButton,
1208
+ onClick: A
1209
+ }
1210
+ )
1211
+ ] }) : /* @__PURE__ */ ee("div", { className: U.ManualPanel, children: [
1212
+ R(["manual-stored"]) ? /* @__PURE__ */ H("img", { width: x, height: _, alt: "signature", src: k }) : /* @__PURE__ */ H(
1213
+ ut,
1214
+ {
1215
+ penColor: "#262626",
1216
+ dotSize: 2,
1217
+ minWidth: 0.25,
1218
+ maxWidth: 2.75,
1219
+ throttle: 12,
1220
+ canvasProps: { width: +(x || 0).toFixed(), height: +(_ || 0).toFixed() },
1221
+ ref: (F) => u(F),
1222
+ clearOnResize: !0,
1223
+ onEnd: Z
1224
+ }
1225
+ ),
1226
+ R(["manual-stored"]) && /* @__PURE__ */ H(
1227
+ ie,
1228
+ {
1229
+ blurAfterClick: !0,
1230
+ underlined: !0,
1231
+ text: "Zurücksetzen",
1232
+ className: U.ManualPanelButton,
1233
+ onClick: P
1234
+ }
1235
+ )
1236
+ ] })
1237
+ ]
1238
+ }
1125
1239
  ),
1126
- ref: u,
1127
- children: [
1128
- /* @__PURE__ */ ee("div", { className: de(Y.Header, g(["manual-drawn"]) ? Y.HeaderManualDraw : Y.HeaderNotManualDraw), children: [
1129
- /* @__PURE__ */ ee(he, { tag: "h6", weight: "medium", align: "center", children: [
1130
- /* @__PURE__ */ I(te, { name: "generated-signature", condition: g(["auto-generated", "auto-loading"]), children: "Wir haben eine digitale Signature Sie generiert." }),
1131
- /* @__PURE__ */ I(te, { name: "create-signature", condition: g(["manual-blank", "manual-stored"]), children: "Ihre Signatur:" })
1132
- ] }),
1133
- /* @__PURE__ */ I(Ve, { name: "reset", direction: "rtl", condition: g(["manual-drawn"]), children: /* @__PURE__ */ I("div", { className: Y.SignatureHeaderReset, children: /* @__PURE__ */ I(se, { blurAfterClick: !0, underlined: !0, icon: /* @__PURE__ */ I(Ue, {}), onClick: Q, children: "Neu starten" }) }) })
1134
- ] }),
1135
- /* @__PURE__ */ I("div", { className: Y.Content, children: g(["auto-generated", "auto-loading"]) ? /* @__PURE__ */ ee("div", { className: Y.AutoContent, children: [
1136
- /* @__PURE__ */ I(te, { name: "signature", condition: r !== "", children: /* @__PURE__ */ I("img", { className: Y.SignatureAutoPanelImage, src: r, alt: "signature" }) }),
1137
- /* @__PURE__ */ I(te, { name: "signature", condition: r === "" && !b, children: /* @__PURE__ */ I("div", { className: Y.SignatureAutoPanelLoader, style: { height: 142 }, children: /* @__PURE__ */ I(Xe, { size: "sm", color: "accent-primary" }) }) }),
1138
- /* @__PURE__ */ I(te, { name: "auto-failed", condition: r === "" && b, children: /* @__PURE__ */ ee("div", { className: Y.SignatureErrorLoading, children: [
1139
- /* @__PURE__ */ I(he, { tag: "span", size: "body-small", color: "text-secondary", children: "Automatische Signatur konnte nicht geladen werden." }),
1140
- /* @__PURE__ */ I(
1141
- se,
1142
- {
1143
- blurAfterClick: !0,
1144
- underlined: !0,
1145
- size: "sm",
1146
- iconPosition: "right",
1147
- icon: /* @__PURE__ */ I(Ye, {}),
1148
- onClick: G,
1149
- children: "Erneut versuchen"
1150
- }
1151
- )
1152
- ] }) }),
1153
- /* @__PURE__ */ I(te, { name: "auto-note", condition: r !== "", children: /* @__PURE__ */ ee("div", { className: Y.SignatureAutoLabel, children: [
1154
- /* @__PURE__ */ I(He, { size: 24, className: Y.SignatureAutoPanelNoteIcon }),
1155
- /* @__PURE__ */ I(he, { tag: "span", size: "body-small", color: "text-secondary", children: "Diese Unterschrift ist ausreichend" })
1156
- ] }) }),
1157
- /* @__PURE__ */ I(te, { name: "manual-switch", condition: k, children: /* @__PURE__ */ I("div", { className: Y.SignatureAutoPanelButton, children: /* @__PURE__ */ I(se, { blurAfterClick: !0, underlined: !0, onClick: P, children: "per Hand/Maus unterschreiben" }) }) })
1158
- ] }) : /* @__PURE__ */ ee("div", { className: Y.SignatureManualPanel, children: [
1159
- /* @__PURE__ */ I("div", { className: Y.SignatureManualPanelPlaceholder }),
1160
- g(["manual-stored"]) ? /* @__PURE__ */ I("img", { width: y, height: W, alt: "signature", src: f }) : /* @__PURE__ */ I(
1161
- lt,
1162
- {
1163
- penColor: "#262626",
1164
- dotSize: 2,
1165
- minWidth: 0.25,
1166
- maxWidth: 2.75,
1167
- throttle: 12,
1168
- canvasProps: { width: +(y || 0).toFixed(), height: +(W || 0).toFixed() },
1169
- ref: (U) => l(U),
1170
- clearOnResize: !0,
1171
- onEnd: re
1172
- }
1173
- ),
1174
- /* @__PURE__ */ I(
1175
- te,
1176
- {
1177
- name: "to-generated",
1178
- condition: g(["manual-stored"]),
1179
- className: Y.SignatureManualPanelButton,
1180
- children: /* @__PURE__ */ I(se, { blurAfterClick: !0, underlined: !0, onClick: B, children: "Zurücksetzen" })
1181
- }
1182
- )
1183
- ] }) })
1184
- ]
1185
- }
1186
- ),
1187
- /* @__PURE__ */ I(te, { name: "footer", condition: g(["manual-blank", "manual-drawn"]), children: /* @__PURE__ */ ee("div", { className: Y.Buttons, children: [
1188
- /* @__PURE__ */ I(Ee, { fullWidth: !0, blurAfterClick: !0, color: "tertiary", onClick: M, children: "Abbrechen" }),
1189
- /* @__PURE__ */ I(Ee, { fullWidth: !0, blurAfterClick: !0, color: "primary", disabled: !_, onClick: N, children: "Speichern" })
1190
- ] }) })
1191
- ] });
1240
+ R(["manual-blank", "manual-drawn"]) && /* @__PURE__ */ ee("div", { className: U.Footer, children: [
1241
+ /* @__PURE__ */ H(we, { fullWidth: !0, blurAfterClick: !0, text: "Abbrechen", color: "tertiary", onClick: Q }),
1242
+ /* @__PURE__ */ H(
1243
+ we,
1244
+ {
1245
+ fullWidth: !0,
1246
+ blurAfterClick: !0,
1247
+ text: "Speichern",
1248
+ color: "primary",
1249
+ disabled: !y,
1250
+ onClick: N
1251
+ }
1252
+ )
1253
+ ] })
1254
+ ]
1255
+ }
1256
+ );
1192
1257
  };
1193
1258
  export {
1194
- Ft as Signature
1259
+ zt as Signature
1195
1260
  };