@prosopo/procaptcha-bundle 3.0.13 → 3.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/index.d.ts.map +1 -1
  2. package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/index.js +10 -1
  3. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.js.map +1 -0
  4. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/procaptchaReady.unit.test.d.ts +2 -0
  5. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/procaptchaReady.unit.test.d.ts.map +1 -0
  6. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/procaptchaReady.unit.test.js +32 -0
  7. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/procaptchaReady.unit.test.js.map +1 -0
  8. package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js +19 -9
  9. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js.map +1 -0
  10. package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.d.ts.map +1 -1
  11. package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.js +1 -1
  12. package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.js.map +1 -1
  13. package/{dist → .rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist}/bundle/util/captcha/captchaProps.d.ts +1 -0
  14. package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.d.ts.map +1 -1
  15. package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts +1 -1
  16. package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts.map +1 -1
  17. package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js +2 -1
  18. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js.map +1 -0
  19. package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.d.ts.map +1 -1
  20. package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.js +2 -2
  21. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.js.map +1 -0
  22. package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.d.ts.map +1 -1
  23. package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.js +0 -1
  24. package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.js.map +1 -1
  25. package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.d.ts.map +1 -1
  26. package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js +6 -2
  27. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js.map +1 -0
  28. package/CHANGELOG.md +440 -0
  29. package/coverage/base.css +224 -0
  30. package/coverage/block-navigation.js +87 -0
  31. package/coverage/clover.xml +599 -0
  32. package/coverage/coverage-final.json +17 -0
  33. package/coverage/favicon.png +0 -0
  34. package/coverage/index.html +161 -0
  35. package/coverage/prettify.css +1 -0
  36. package/coverage/prettify.js +2 -0
  37. package/coverage/sort-arrow-sprite.png +0 -0
  38. package/coverage/sorter.js +210 -0
  39. package/coverage/src/components.ts.html +139 -0
  40. package/coverage/src/index.html +131 -0
  41. package/coverage/src/index.ts.html +844 -0
  42. package/coverage/src/util/captcha/captchaComponentProvider.tsx.html +214 -0
  43. package/coverage/src/util/captcha/captchaComponentsList.ts.html +178 -0
  44. package/coverage/src/util/captcha/captchaProps.ts.html +166 -0
  45. package/coverage/src/util/captcha/captchaRenderer.tsx.html +481 -0
  46. package/coverage/src/util/captcha/captchaType.ts.html +181 -0
  47. package/coverage/src/util/captcha/components/frictionlessCaptcha.tsx.html +205 -0
  48. package/coverage/src/util/captcha/components/imageCaptcha.tsx.html +178 -0
  49. package/coverage/src/util/captcha/components/index.html +146 -0
  50. package/coverage/src/util/captcha/components/powCaptcha.tsx.html +178 -0
  51. package/coverage/src/util/captcha/index.html +176 -0
  52. package/coverage/src/util/config.ts.html +172 -0
  53. package/coverage/src/util/configCreator.ts.html +241 -0
  54. package/coverage/src/util/index.html +191 -0
  55. package/coverage/src/util/language.ts.html +244 -0
  56. package/coverage/src/util/timeout.ts.html +214 -0
  57. package/coverage/src/util/widgetFactory.ts.html +532 -0
  58. package/coverage/src/util/widgetThemeResolver.ts.html +205 -0
  59. package/dist/bundle/{ProcaptchaWidget-CXxnCzl2.js → ProcaptchaWidget-CuMH13Bh.js} +340 -320
  60. package/dist/bundle/{ProcaptchaWidget-BIt2pcrz.js → ProcaptchaWidget-DsflBBn_.js} +25 -25
  61. package/dist/bundle/{browser-ponyfill-CvzSbL_o.js → browser-ponyfill-DXriyH6D.js} +4 -4
  62. package/dist/bundle/{builder-DNHtDoNG.js → builder-ByZ5z580.js} +3 -1
  63. package/dist/bundle/captchaComponentProvider-D02Su4nd.js +1013 -0
  64. package/dist/bundle/captchaRenderer-BV-WgbEA.js +70 -0
  65. package/dist/bundle/{commonChunk-BKceWhtS.js → commonChunk-PB26mndo.js} +66 -69
  66. package/dist/bundle/{emotion-element-5486c51c.browser.esm-CimrRZxS.js → emotion-element-c39617d8.browser.esm-DG1XhEZ1.js} +343 -345
  67. package/dist/bundle/{index-KHTbPva_.js → index-B9KeZfID.js} +3 -3
  68. package/dist/bundle/{index-hrOz2CPm.js → index-Calnfnac.js} +97 -87
  69. package/dist/bundle/index-DU371vQ0.js +1634 -0
  70. package/dist/bundle/index.d.ts.map +1 -1
  71. package/dist/bundle/nobleChunk-Bbltwf44.js +2728 -0
  72. package/dist/bundle/procaptcha.bundle.js +2 -2
  73. package/dist/bundle/tests/procaptchaReady.unit.test.d.ts.map +1 -0
  74. package/dist/bundle/util/captcha/captchaComponentProvider.d.ts.map +1 -1
  75. package/dist/bundle/util/captcha/captchaProps.d.ts.map +1 -1
  76. package/dist/bundle/util/captcha/captchaRenderer.d.ts.map +1 -1
  77. package/dist/bundle/util/captcha/components/frictionlessCaptcha.d.ts.map +1 -1
  78. package/dist/bundle/util/configCreator.d.ts.map +1 -1
  79. package/dist/bundle/util/widgetFactory.d.ts.map +1 -1
  80. package/dist/bundle/{utilChunk-DPr6oTOj.js → utilChunk-WRTGKXbU.js} +109 -102
  81. package/dist/bundle/{utilCryptoChunk-BKe3CKqn.js → utilCryptoChunk-B4ZdOwus.js} +252 -243
  82. package/dist/bundle/{web2Chunk-Cqw91v-J.js → web2Chunk-BGN6Hv-C.js} +1097 -1002
  83. package/dist/bundle/web3Chunk-BIX2T9Eo.js +525 -0
  84. package/dist/bundle/{zodChunk-wTu9ZHzV.js → zodChunk-CaINhWMQ.js} +10 -10
  85. package/dist/cjs/index.cjs +10 -1
  86. package/dist/cjs/util/captcha/captchaComponentProvider.cjs +3 -2
  87. package/dist/cjs/util/captcha/captchaRenderer.cjs +4 -3
  88. package/dist/cjs/util/captcha/components/frictionlessCaptcha.cjs +4 -3
  89. package/dist/cjs/util/captcha/components/imageCaptcha.cjs +1 -1
  90. package/dist/cjs/util/captcha/components/powCaptcha.cjs +1 -1
  91. package/dist/cjs/util/configCreator.cjs +0 -1
  92. package/dist/cjs/util/widgetFactory.cjs +7 -2
  93. package/dist/components.d.ts.map +1 -0
  94. package/dist/components.js +5 -0
  95. package/dist/components.js.map +1 -0
  96. package/dist/index.d.ts.map +1 -0
  97. package/dist/index.js +10 -1
  98. package/dist/index.js.map +1 -0
  99. package/dist/tests/procaptchaReady.unit.test.d.ts +2 -0
  100. package/dist/tests/procaptchaReady.unit.test.d.ts.map +1 -0
  101. package/dist/tests/procaptchaReady.unit.test.js +32 -0
  102. package/dist/tests/procaptchaReady.unit.test.js.map +1 -0
  103. package/dist/tests/util/captchaType.test.d.ts.map +1 -0
  104. package/dist/tests/util/captchaType.test.js +36 -0
  105. package/dist/tests/util/captchaType.test.js.map +1 -0
  106. package/dist/tests/util/config.test.d.ts.map +1 -0
  107. package/dist/tests/util/config.test.js +69 -0
  108. package/dist/tests/util/config.test.js.map +1 -0
  109. package/dist/tests/util/renderLogic.test.d.ts.map +1 -0
  110. package/dist/tests/util/renderLogic.test.js +136 -0
  111. package/dist/tests/util/renderLogic.test.js.map +1 -0
  112. package/dist/util/captcha/captchaComponentProvider.d.ts.map +1 -0
  113. package/dist/util/captcha/captchaComponentProvider.js +3 -2
  114. package/dist/util/captcha/captchaComponentProvider.js.map +1 -0
  115. package/dist/util/captcha/captchaComponentsList.d.ts.map +1 -0
  116. package/dist/util/captcha/captchaComponentsList.js.map +1 -0
  117. package/{.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle → dist}/util/captcha/captchaProps.d.ts +1 -0
  118. package/dist/util/captcha/captchaProps.d.ts.map +1 -0
  119. package/dist/util/captcha/captchaProps.js +2 -0
  120. package/dist/util/captcha/captchaProps.js.map +1 -0
  121. package/dist/{bundle/util → util}/captcha/captchaRenderer.d.ts +1 -1
  122. package/dist/util/captcha/captchaRenderer.d.ts.map +1 -0
  123. package/dist/util/captcha/captchaRenderer.js +4 -3
  124. package/dist/util/captcha/captchaRenderer.js.map +1 -0
  125. package/dist/util/captcha/captchaType.d.ts.map +1 -0
  126. package/dist/util/captcha/captchaType.js.map +1 -0
  127. package/dist/util/captcha/components/frictionlessCaptcha.d.ts.map +1 -0
  128. package/dist/util/captcha/components/frictionlessCaptcha.js +4 -3
  129. package/dist/util/captcha/components/frictionlessCaptcha.js.map +1 -0
  130. package/dist/util/captcha/components/imageCaptcha.d.ts.map +1 -0
  131. package/dist/util/captcha/components/imageCaptcha.js +1 -1
  132. package/dist/util/captcha/components/imageCaptcha.js.map +1 -0
  133. package/dist/util/captcha/components/powCaptcha.d.ts.map +1 -0
  134. package/dist/util/captcha/components/powCaptcha.js +1 -1
  135. package/dist/util/captcha/components/powCaptcha.js.map +1 -0
  136. package/dist/util/config.d.ts.map +1 -0
  137. package/dist/util/config.js.map +1 -0
  138. package/dist/util/configCreator.d.ts.map +1 -0
  139. package/dist/util/configCreator.js +0 -1
  140. package/dist/util/configCreator.js.map +1 -0
  141. package/dist/util/language.d.ts.map +1 -0
  142. package/dist/util/language.js.map +1 -0
  143. package/dist/util/timeout.d.ts.map +1 -0
  144. package/dist/util/timeout.js.map +1 -0
  145. package/dist/util/widgetFactory.d.ts.map +1 -0
  146. package/dist/util/widgetFactory.js +7 -2
  147. package/dist/util/widgetFactory.js.map +1 -0
  148. package/dist/util/widgetThemeResolver.d.ts.map +1 -0
  149. package/dist/util/widgetThemeResolver.js.map +1 -0
  150. package/package.json +24 -25
  151. package/stats.html +2239 -2132
  152. package/vite.test.config.ts +3 -2
  153. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/index.js.map +0 -1
  154. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js.map +0 -1
  155. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js.map +0 -1
  156. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.js.map +0 -1
  157. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js.map +0 -1
  158. package/dist/bundle/captchaComponentProvider-BGEAkC9Y.js +0 -968
  159. package/dist/bundle/captchaRenderer-CqnUYyKY.js +0 -70
  160. package/dist/bundle/index-7Xh-Mf8v.js +0 -1318
  161. package/dist/bundle/nobleChunk-CQ4ENyKh.js +0 -3769
  162. package/dist/bundle/web3Chunk-BcwDKvjL.js +0 -517
  163. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/components.d.ts +0 -0
  164. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/components.d.ts.map +0 -0
  165. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/components.js +0 -0
  166. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/components.js.map +0 -0
  167. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/index.d.ts +0 -0
  168. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.d.ts +0 -0
  169. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.d.ts.map +0 -0
  170. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.js +0 -0
  171. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.js.map +0 -0
  172. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.d.ts +0 -0
  173. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.d.ts.map +0 -0
  174. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.js +0 -0
  175. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.js.map +0 -0
  176. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.d.ts +0 -0
  177. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.d.ts.map +0 -0
  178. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.d.ts +0 -0
  179. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.d.ts +0 -0
  180. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.d.ts.map +0 -0
  181. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.js +0 -0
  182. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.js.map +0 -0
  183. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.js +0 -0
  184. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.js.map +0 -0
  185. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.d.ts +0 -0
  186. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.d.ts.map +0 -0
  187. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.js +0 -0
  188. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.js.map +0 -0
  189. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.d.ts +0 -0
  190. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.d.ts +0 -0
  191. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.d.ts.map +0 -0
  192. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.js +0 -0
  193. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.js.map +0 -0
  194. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.d.ts +0 -0
  195. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.d.ts.map +0 -0
  196. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.js +0 -0
  197. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.js.map +0 -0
  198. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/config.d.ts +0 -0
  199. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/config.d.ts.map +0 -0
  200. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/config.js +0 -0
  201. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/config.js.map +0 -0
  202. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.d.ts +0 -0
  203. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/language.d.ts +0 -0
  204. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/language.d.ts.map +0 -0
  205. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/language.js +0 -0
  206. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/language.js.map +0 -0
  207. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.d.ts +0 -0
  208. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.d.ts.map +0 -0
  209. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.js +0 -0
  210. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.js.map +0 -0
  211. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.d.ts +0 -0
  212. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.d.ts +0 -0
  213. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.d.ts.map +0 -0
  214. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.js +0 -0
  215. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.js.map +0 -0
  216. /package/dist/{bundle/components.d.ts → components.d.ts} +0 -0
  217. /package/dist/{bundle/index.d.ts → index.d.ts} +0 -0
  218. /package/dist/{bundle/tests → tests}/util/captchaType.test.d.ts +0 -0
  219. /package/dist/{bundle/tests → tests}/util/config.test.d.ts +0 -0
  220. /package/dist/{bundle/tests → tests}/util/renderLogic.test.d.ts +0 -0
  221. /package/dist/{bundle/util → util}/captcha/captchaComponentProvider.d.ts +0 -0
  222. /package/dist/{bundle/util → util}/captcha/captchaComponentsList.d.ts +0 -0
  223. /package/dist/{bundle/util → util}/captcha/captchaType.d.ts +0 -0
  224. /package/dist/{bundle/util → util}/captcha/components/frictionlessCaptcha.d.ts +0 -0
  225. /package/dist/{bundle/util → util}/captcha/components/imageCaptcha.d.ts +0 -0
  226. /package/dist/{bundle/util → util}/captcha/components/powCaptcha.d.ts +0 -0
  227. /package/dist/{bundle/util → util}/config.d.ts +0 -0
  228. /package/dist/{bundle/util → util}/configCreator.d.ts +0 -0
  229. /package/dist/{bundle/util → util}/language.d.ts +0 -0
  230. /package/dist/{bundle/util → util}/timeout.d.ts +0 -0
  231. /package/dist/{bundle/util → util}/widgetFactory.d.ts +0 -0
  232. /package/dist/{bundle/util → util}/widgetThemeResolver.d.ts +0 -0
@@ -1,15 +1,14 @@
1
- var Rt = (n) => {
1
+ var $t = (n) => {
2
2
  throw TypeError(n);
3
3
  };
4
- var $t = (n, e, t) => e.has(n) || Rt("Cannot " + t);
5
- var j = (n, e, t) => ($t(n, e, "read from private field"), t ? t.call(n) : e.get(n)), pe = (n, e, t) => e.has(n) ? Rt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(n) : e.set(n, t), he = (n, e, t, r) => ($t(n, e, "write to private field"), r ? r.call(n, t) : e.set(n, t), t);
6
- import { j as Dr } from "./nobleChunk-CQ4ENyKh.js";
7
- import { g as Fr } from "./bnChunk-DRlDxTFg.js";
8
- import { z as R, n as Le, o as y, a as S, b as K, s as p, c as _r, u as Ue, d as At, e as De, f as Nt, g as ze, r as Sn, l as jt } from "./zodChunk-wTu9ZHzV.js";
9
- import { h as Mr } from "./commonChunk-BKceWhtS.js";
10
- import { j as Hr, s as Vr, n as Br, a as Kr, c as qr, d as zr, e as Wr, f as Jr, g as Xr, h as Gr, k as Yr, i as xn, l as On, m as $e, o as Qr, p as Zr, q as ei, r as ti } from "./utilCryptoChunk-BKe3CKqn.js";
11
- import { r as et, b as lt, o as En, u as ct, a as Ut, t as ni, i as ri, c as Ae, k as tt, s as Tn } from "./utilChunk-DPr6oTOj.js";
12
- function ii(n, e) {
4
+ var Nt = (n, e, t) => e.has(n) || $t("Cannot " + t);
5
+ var j = (n, e, t) => (Nt(n, e, "read from private field"), t ? t.call(n) : e.get(n)), me = (n, e, t) => e.has(n) ? $t("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(n) : e.set(n, t), ye = (n, e, t, r) => (Nt(n, e, "write to private field"), r ? r.call(n, t) : e.set(n, t), t);
6
+ import { g as Hr } from "./bnChunk-DRlDxTFg.js";
7
+ import { j as Vr } from "./nobleChunk-Bbltwf44.js";
8
+ import { z as L, n as ke, o as y, b as Y, a as w, c as q, s as p, d as Br, u as _e, e as jt, f as Dt, g as Je, r as En, l as Ut } from "./zodChunk-CaINhWMQ.js";
9
+ import { j as Kr, s as qr, n as zr, a as Wr, b as Jr, c as Xr, d as Yr, e as Gr, f as Qr, g as Zr, k as ei, h as On, i as Tn, l as je, m as ti, o as ni, p as ri, q as ii, r as oi } from "./utilCryptoChunk-B4ZdOwus.js";
10
+ import { r as nt, b as ft, o as Ln, u as dt, a as Ft, t as si, i as ai, c as De, k as rt, s as Cn } from "./utilChunk-WRTGKXbU.js";
11
+ function ui(n, e) {
13
12
  for (var t = 0; t < e.length; t++) {
14
13
  const r = e[t];
15
14
  if (typeof r != "string" && !Array.isArray(r)) {
@@ -25,77 +24,70 @@ function ii(n, e) {
25
24
  }
26
25
  return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
27
26
  }
28
- const ma = (n) => new Promise((e) => setTimeout(e, n)), ya = (n, e) => {
29
- let t = 0;
30
- const r = "0".repeat(e);
31
- for (; ; ) {
32
- const i = new TextEncoder().encode(t + n);
33
- if (oi(Dr(i)).startsWith(r))
34
- return t;
35
- t += 1;
36
- }
37
- }, oi = (n) => Array.from(n).map((e) => e.toString(16).padStart(2, "0")).join("");
38
- function va(n, e, t) {
39
- if (n.length === 0)
40
- throw new Error("Array is empty");
41
- if (!Number.isFinite(e))
42
- throw new Error(`Index ${e} is not a finite number`);
43
- if (e > 0 ? e = e % n.length : e = Math.ceil(Math.abs(e) / n.length) * n.length + e, e >= n.length)
44
- throw new Error(`Index ${e} larger than array length ${n.length}`);
45
- if (e < 0)
46
- throw new Error(`Index ${e} smaller than 0`);
47
- return n[e];
48
- }
49
- const si = (n) => Array.isArray(n) && n !== null, ai = "dev", Fe = new Array(256), Ln = new Array(256 * 256);
50
- for (let n = 0; n < 256; n++)
51
- Fe[n] = n.toString(16).padStart(2, "0");
52
- for (let n = 0; n < 256; n++) {
53
- const e = n << 8;
54
- for (let t = 0; t < 256; t++)
55
- Ln[e | t] = Fe[n] + Fe[t];
56
- }
57
- function nt(n, e) {
58
- const t = n.length % 2 | 0, r = n.length - t | 0;
59
- for (let i = 0; i < r; i += 2)
60
- e += Ln[n[i] << 8 | n[i + 1]];
61
- return t && (e += Fe[n[r] | 0]), e;
62
- }
63
- function We(n, e = -1, t = !0) {
64
- const r = t ? "0x" : "";
65
- if (!(n != null && n.length))
66
- return r;
67
- if (e > 0) {
68
- const i = Math.ceil(e / 8);
69
- if (n.length > i)
70
- return `${nt(n.subarray(0, i / 2), r)}…${nt(n.subarray(n.length - i / 2), "")}`;
71
- }
72
- return nt(n, r);
73
- }
74
- const wa = (n) => si(n) ? We(new Uint8Array(n)) : n.toString();
75
- var h = /* @__PURE__ */ ((n) => (n.datasetId = "datasetId", n.user = "user", n.dapp = "dapp", n.provider = "provider", n.blockNumber = "blockNumber", n.requestHash = "requestHash", n.captchas = "captchas", n.commitmentId = "commitmentId", n.proof = "proof", n.dappSignature = "dappSignature", n.dappUserSignature = "dappUserSignature", n.providerUrl = "providerUrl", n.procaptchaResponse = "procaptcha-response", n.verifiedTimeout = "verifiedTimeout", n.maxVerifiedTime = "maxVerifiedTime", n.verified = "verified", n.status = "status", n.challenge = "challenge", n.difficulty = "difficulty", n.nonce = "nonce", n.timeouts = "timeouts", n.token = "token", n.secret = "secret", n.timestamp = "timestamp", n.signature = "signature", n.error = "error", n.siteKey = "siteKey", n.captchaType = "captchaType", n.sessionId = "sessionId", n.settings = "settings", n.domains = "domains", n.frictionlessThreshold = "frictionlessThreshold", n.powDifficulty = "powDifficulty", n.score = "score", n.tier = "tier", n.detectorKey = "detectorKey", n.ip = "ip", n))(h || {}), wt = /* @__PURE__ */ ((n) => (n.Free = "free", n.Professional = "professional", n.Enterprise = "enterprise", n))(wt || {});
76
- R.nativeEnum(wt);
77
- var Je = /* @__PURE__ */ ((n) => (n.image = "image", n.pow = "pow", n.frictionless = "frictionless", n.invisible = "invisible", n))(Je || {});
78
- R.nativeEnum(Je);
79
- const ui = Le(Je), li = Je.frictionless, ci = [], fi = 0.5, di = 4, pi = 0.8, hi = y({
80
- captchaType: ui.optional().default(li),
81
- domains: K(p()).optional().default([...ci]),
82
- frictionlessThreshold: S().optional().default(fi),
83
- powDifficulty: S().optional().default(di),
84
- imageThreshold: S().optional().default(pi)
27
+ var h = /* @__PURE__ */ ((n) => (n.datasetId = "datasetId", n.user = "user", n.dapp = "dapp", n.provider = "provider", n.blockNumber = "blockNumber", n.requestHash = "requestHash", n.captchas = "captchas", n.commitmentId = "commitmentId", n.proof = "proof", n.dappSignature = "dappSignature", n.dappUserSignature = "dappUserSignature", n.providerUrl = "providerUrl", n.procaptchaResponse = "procaptcha-response", n.verifiedTimeout = "verifiedTimeout", n.maxVerifiedTime = "maxVerifiedTime", n.verified = "verified", n.status = "status", n.challenge = "challenge", n.difficulty = "difficulty", n.nonce = "nonce", n.timeouts = "timeouts", n.token = "token", n.secret = "secret", n.timestamp = "timestamp", n.signature = "signature", n.error = "error", n.siteKey = "siteKey", n.captchaType = "captchaType", n.sessionId = "sessionId", n.settings = "settings", n.domains = "domains", n.frictionlessThreshold = "frictionlessThreshold", n.powDifficulty = "powDifficulty", n.score = "score", n.tier = "tier", n.detectorKey = "detectorKey", n.ip = "ip", n.expirationInSeconds = "expirationInSeconds", n.enabled = "enabled", n.headHash = "headHash", n))(h || {}), St = /* @__PURE__ */ ((n) => (n.Free = "free", n.Professional = "professional", n.Enterprise = "enterprise", n))(St || {});
28
+ L.nativeEnum(St);
29
+ var Xe = /* @__PURE__ */ ((n) => (n.image = "image", n.pow = "pow", n.frictionless = "frictionless", n.invisible = "invisible", n))(Xe || {});
30
+ L.nativeEnum(Xe);
31
+ const li = ke(Xe), ci = Xe.frictionless, fi = [], di = 0.5, pi = 4, hi = 0.8;
32
+ var Pn = /* @__PURE__ */ ((n) => (n.Allow = "allow", n.Reject = "reject", n.Flag = "flag", n))(Pn || {});
33
+ const B = L.nativeEnum(Pn), gi = "allow", mi = "allow", yi = "allow", vi = 1e3, wi = 5e-3, bi = "reject", Si = "reject", xi = !1, Ei = y({
34
+ actions: y({
35
+ countryChangeAction: B.optional(),
36
+ cityChangeAction: B.optional(),
37
+ ispChangeAction: B.optional(),
38
+ distanceExceedAction: B.optional(),
39
+ abuseScoreExceedAction: B.optional()
40
+ }).partial(),
41
+ // all optional, so you can just override what you need
42
+ distanceThresholdKm: w().positive().optional(),
43
+ abuseScoreThreshold: w().positive().optional(),
44
+ requireAllConditions: Y().optional()
45
+ }), Oi = y({
46
+ actions: y({
47
+ countryChangeAction: B.optional().default(
48
+ gi
49
+ ),
50
+ cityChangeAction: B.optional().default(
51
+ mi
52
+ ),
53
+ ispChangeAction: B.optional().default(
54
+ yi
55
+ ),
56
+ distanceExceedAction: B.optional().default(
57
+ bi
58
+ ),
59
+ abuseScoreExceedAction: B.optional().default(
60
+ Si
61
+ )
62
+ }),
63
+ distanceThresholdKm: w().positive().optional().default(vi),
64
+ abuseScoreThreshold: w().positive().optional().default(wi),
65
+ requireAllConditions: L.boolean().optional().default(xi),
66
+ // overrides are now lightweight, not recursive
67
+ countryOverrides: L.record(p(), Ei).optional(),
68
+ forceConsistentIp: Y().optional().default(!1)
69
+ }), Ti = y({
70
+ captchaType: li.optional().default(ci),
71
+ domains: q(p()).optional().default([...fi]),
72
+ frictionlessThreshold: w().optional().default(di),
73
+ powDifficulty: w().optional().default(pi),
74
+ imageThreshold: w().optional().default(hi),
75
+ ipValidationRules: Oi.optional(),
76
+ disallowWebView: Y().optional().default(!1)
85
77
  });
86
- let rt;
87
- async function ba(n) {
78
+ let it;
79
+ async function Ia(n) {
88
80
  return new Promise((e, t) => {
89
81
  try {
90
- Promise.resolve().then(() => Qo).then(({ default: r }) => {
91
- rt ? e(rt) : rt = r(e);
82
+ Promise.resolve().then(() => ls).then(({ default: r }) => {
83
+ it ? e(it) : it = r(e);
92
84
  });
93
85
  } catch (r) {
94
86
  t(r);
95
87
  }
96
88
  });
97
89
  }
98
- const Cn = {
90
+ const kn = {
99
91
  arabic: "ar",
100
92
  azerbaijani: "az",
101
93
  czech: "cs",
@@ -128,45 +120,45 @@ const Cn = {
128
120
  ukrainian: "uk",
129
121
  vietnamese: "vi",
130
122
  chinese: "zh-CN"
131
- }, kn = R.enum(
132
- Object.values(Cn)
123
+ }, In = L.enum(
124
+ Object.values(kn)
133
125
  );
134
- var Pn = { exports: {} }, x = {};
135
- var Ce = Symbol.for("react.element"), gi = Symbol.for("react.portal"), mi = Symbol.for("react.fragment"), yi = Symbol.for("react.strict_mode"), vi = Symbol.for("react.profiler"), wi = Symbol.for("react.provider"), bi = Symbol.for("react.context"), Si = Symbol.for("react.forward_ref"), xi = Symbol.for("react.suspense"), Oi = Symbol.for("react.memo"), Ei = Symbol.for("react.lazy"), Dt = Symbol.iterator;
136
- function Ti(n) {
137
- return n === null || typeof n != "object" ? null : (n = Dt && n[Dt] || n["@@iterator"], typeof n == "function" ? n : null);
126
+ var Rn = { exports: {} }, x = {};
127
+ var Ie = Symbol.for("react.element"), Li = Symbol.for("react.portal"), Ci = Symbol.for("react.fragment"), Pi = Symbol.for("react.strict_mode"), ki = Symbol.for("react.profiler"), Ii = Symbol.for("react.provider"), Ri = Symbol.for("react.context"), Ai = Symbol.for("react.forward_ref"), $i = Symbol.for("react.suspense"), Ni = Symbol.for("react.memo"), ji = Symbol.for("react.lazy"), _t = Symbol.iterator;
128
+ function Di(n) {
129
+ return n === null || typeof n != "object" ? null : (n = _t && n[_t] || n["@@iterator"], typeof n == "function" ? n : null);
138
130
  }
139
- var In = { isMounted: function() {
131
+ var An = { isMounted: function() {
140
132
  return !1;
141
133
  }, enqueueForceUpdate: function() {
142
134
  }, enqueueReplaceState: function() {
143
135
  }, enqueueSetState: function() {
144
- } }, Rn = Object.assign, $n = {};
145
- function ce(n, e, t) {
146
- this.props = n, this.context = e, this.refs = $n, this.updater = t || In;
136
+ } }, $n = Object.assign, Nn = {};
137
+ function pe(n, e, t) {
138
+ this.props = n, this.context = e, this.refs = Nn, this.updater = t || An;
147
139
  }
148
- ce.prototype.isReactComponent = {};
149
- ce.prototype.setState = function(n, e) {
140
+ pe.prototype.isReactComponent = {};
141
+ pe.prototype.setState = function(n, e) {
150
142
  if (typeof n != "object" && typeof n != "function" && n != null) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
151
143
  this.updater.enqueueSetState(this, n, e, "setState");
152
144
  };
153
- ce.prototype.forceUpdate = function(n) {
145
+ pe.prototype.forceUpdate = function(n) {
154
146
  this.updater.enqueueForceUpdate(this, n, "forceUpdate");
155
147
  };
156
- function An() {
157
- }
158
- An.prototype = ce.prototype;
159
- function bt(n, e, t) {
160
- this.props = n, this.context = e, this.refs = $n, this.updater = t || In;
161
- }
162
- var St = bt.prototype = new An();
163
- St.constructor = bt;
164
- Rn(St, ce.prototype);
165
- St.isPureReactComponent = !0;
166
- var Ft = Array.isArray, Nn = Object.prototype.hasOwnProperty, xt = { current: null }, jn = { key: !0, ref: !0, __self: !0, __source: !0 };
167
- function Un(n, e, t) {
148
+ function jn() {
149
+ }
150
+ jn.prototype = pe.prototype;
151
+ function xt(n, e, t) {
152
+ this.props = n, this.context = e, this.refs = Nn, this.updater = t || An;
153
+ }
154
+ var Et = xt.prototype = new jn();
155
+ Et.constructor = xt;
156
+ $n(Et, pe.prototype);
157
+ Et.isPureReactComponent = !0;
158
+ var Mt = Array.isArray, Dn = Object.prototype.hasOwnProperty, Ot = { current: null }, Un = { key: !0, ref: !0, __self: !0, __source: !0 };
159
+ function Fn(n, e, t) {
168
160
  var r, i = {}, o = null, s = null;
169
- if (e != null) for (r in e.ref !== void 0 && (s = e.ref), e.key !== void 0 && (o = "" + e.key), e) Nn.call(e, r) && !jn.hasOwnProperty(r) && (i[r] = e[r]);
161
+ if (e != null) for (r in e.ref !== void 0 && (s = e.ref), e.key !== void 0 && (o = "" + e.key), e) Dn.call(e, r) && !Un.hasOwnProperty(r) && (i[r] = e[r]);
170
162
  var a = arguments.length - 2;
171
163
  if (a === 1) i.children = t;
172
164
  else if (1 < a) {
@@ -174,25 +166,25 @@ function Un(n, e, t) {
174
166
  i.children = u;
175
167
  }
176
168
  if (n && n.defaultProps) for (r in a = n.defaultProps, a) i[r] === void 0 && (i[r] = a[r]);
177
- return { $$typeof: Ce, type: n, key: o, ref: s, props: i, _owner: xt.current };
169
+ return { $$typeof: Ie, type: n, key: o, ref: s, props: i, _owner: Ot.current };
178
170
  }
179
- function Li(n, e) {
180
- return { $$typeof: Ce, type: n.type, key: e, ref: n.ref, props: n.props, _owner: n._owner };
171
+ function Ui(n, e) {
172
+ return { $$typeof: Ie, type: n.type, key: e, ref: n.ref, props: n.props, _owner: n._owner };
181
173
  }
182
- function Ot(n) {
183
- return typeof n == "object" && n !== null && n.$$typeof === Ce;
174
+ function Tt(n) {
175
+ return typeof n == "object" && n !== null && n.$$typeof === Ie;
184
176
  }
185
- function Ci(n) {
177
+ function Fi(n) {
186
178
  var e = { "=": "=0", ":": "=2" };
187
179
  return "$" + n.replace(/[=:]/g, function(t) {
188
180
  return e[t];
189
181
  });
190
182
  }
191
- var _t = /\/+/g;
192
- function it(n, e) {
193
- return typeof n == "object" && n !== null && n.key != null ? Ci("" + n.key) : e.toString(36);
183
+ var Ht = /\/+/g;
184
+ function ot(n, e) {
185
+ return typeof n == "object" && n !== null && n.key != null ? Fi("" + n.key) : e.toString(36);
194
186
  }
195
- function Ne(n, e, t, r, i) {
187
+ function Ue(n, e, t, r, i) {
196
188
  var o = typeof n;
197
189
  (o === "undefined" || o === "boolean") && (n = null);
198
190
  var s = !1;
@@ -204,31 +196,31 @@ function Ne(n, e, t, r, i) {
204
196
  break;
205
197
  case "object":
206
198
  switch (n.$$typeof) {
207
- case Ce:
208
- case gi:
199
+ case Ie:
200
+ case Li:
209
201
  s = !0;
210
202
  }
211
203
  }
212
- if (s) return s = n, i = i(s), n = r === "" ? "." + it(s, 0) : r, Ft(i) ? (t = "", n != null && (t = n.replace(_t, "$&/") + "/"), Ne(i, e, t, "", function(c) {
204
+ if (s) return s = n, i = i(s), n = r === "" ? "." + ot(s, 0) : r, Mt(i) ? (t = "", n != null && (t = n.replace(Ht, "$&/") + "/"), Ue(i, e, t, "", function(c) {
213
205
  return c;
214
- })) : i != null && (Ot(i) && (i = Li(i, t + (!i.key || s && s.key === i.key ? "" : ("" + i.key).replace(_t, "$&/") + "/") + n)), e.push(i)), 1;
215
- if (s = 0, r = r === "" ? "." : r + ":", Ft(n)) for (var a = 0; a < n.length; a++) {
206
+ })) : i != null && (Tt(i) && (i = Ui(i, t + (!i.key || s && s.key === i.key ? "" : ("" + i.key).replace(Ht, "$&/") + "/") + n)), e.push(i)), 1;
207
+ if (s = 0, r = r === "" ? "." : r + ":", Mt(n)) for (var a = 0; a < n.length; a++) {
216
208
  o = n[a];
217
- var u = r + it(o, a);
218
- s += Ne(o, e, t, u, i);
209
+ var u = r + ot(o, a);
210
+ s += Ue(o, e, t, u, i);
219
211
  }
220
- else if (u = Ti(n), typeof u == "function") for (n = u.call(n), a = 0; !(o = n.next()).done; ) o = o.value, u = r + it(o, a++), s += Ne(o, e, t, u, i);
212
+ else if (u = Di(n), typeof u == "function") for (n = u.call(n), a = 0; !(o = n.next()).done; ) o = o.value, u = r + ot(o, a++), s += Ue(o, e, t, u, i);
221
213
  else if (o === "object") throw e = String(n), Error("Objects are not valid as a React child (found: " + (e === "[object Object]" ? "object with keys {" + Object.keys(n).join(", ") + "}" : e) + "). If you meant to render a collection of children, use an array instead.");
222
214
  return s;
223
215
  }
224
- function Ie(n, e, t) {
216
+ function $e(n, e, t) {
225
217
  if (n == null) return n;
226
218
  var r = [], i = 0;
227
- return Ne(n, r, "", "", function(o) {
219
+ return Ue(n, r, "", "", function(o) {
228
220
  return e.call(t, o, i++);
229
221
  }), r;
230
222
  }
231
- function ki(n) {
223
+ function _i(n) {
232
224
  if (n._status === -1) {
233
225
  var e = n._result;
234
226
  e = e(), e.then(function(t) {
@@ -240,41 +232,41 @@ function ki(n) {
240
232
  if (n._status === 1) return n._result.default;
241
233
  throw n._result;
242
234
  }
243
- var $ = { current: null }, je = { transition: null }, Pi = { ReactCurrentDispatcher: $, ReactCurrentBatchConfig: je, ReactCurrentOwner: xt };
244
- function Dn() {
235
+ var A = { current: null }, Fe = { transition: null }, Mi = { ReactCurrentDispatcher: A, ReactCurrentBatchConfig: Fe, ReactCurrentOwner: Ot };
236
+ function _n() {
245
237
  throw Error("act(...) is not supported in production builds of React.");
246
238
  }
247
- x.Children = { map: Ie, forEach: function(n, e, t) {
248
- Ie(n, function() {
239
+ x.Children = { map: $e, forEach: function(n, e, t) {
240
+ $e(n, function() {
249
241
  e.apply(this, arguments);
250
242
  }, t);
251
243
  }, count: function(n) {
252
244
  var e = 0;
253
- return Ie(n, function() {
245
+ return $e(n, function() {
254
246
  e++;
255
247
  }), e;
256
248
  }, toArray: function(n) {
257
- return Ie(n, function(e) {
249
+ return $e(n, function(e) {
258
250
  return e;
259
251
  }) || [];
260
252
  }, only: function(n) {
261
- if (!Ot(n)) throw Error("React.Children.only expected to receive a single React element child.");
253
+ if (!Tt(n)) throw Error("React.Children.only expected to receive a single React element child.");
262
254
  return n;
263
255
  } };
264
- x.Component = ce;
265
- x.Fragment = mi;
266
- x.Profiler = vi;
267
- x.PureComponent = bt;
268
- x.StrictMode = yi;
269
- x.Suspense = xi;
270
- x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Pi;
271
- x.act = Dn;
256
+ x.Component = pe;
257
+ x.Fragment = Ci;
258
+ x.Profiler = ki;
259
+ x.PureComponent = xt;
260
+ x.StrictMode = Pi;
261
+ x.Suspense = $i;
262
+ x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Mi;
263
+ x.act = _n;
272
264
  x.cloneElement = function(n, e, t) {
273
265
  if (n == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + n + ".");
274
- var r = Rn({}, n.props), i = n.key, o = n.ref, s = n._owner;
266
+ var r = $n({}, n.props), i = n.key, o = n.ref, s = n._owner;
275
267
  if (e != null) {
276
- if (e.ref !== void 0 && (o = e.ref, s = xt.current), e.key !== void 0 && (i = "" + e.key), n.type && n.type.defaultProps) var a = n.type.defaultProps;
277
- for (u in e) Nn.call(e, u) && !jn.hasOwnProperty(u) && (r[u] = e[u] === void 0 && a !== void 0 ? a[u] : e[u]);
268
+ if (e.ref !== void 0 && (o = e.ref, s = Ot.current), e.key !== void 0 && (i = "" + e.key), n.type && n.type.defaultProps) var a = n.type.defaultProps;
269
+ for (u in e) Dn.call(e, u) && !Un.hasOwnProperty(u) && (r[u] = e[u] === void 0 && a !== void 0 ? a[u] : e[u]);
278
270
  }
279
271
  var u = arguments.length - 2;
280
272
  if (u === 1) r.children = t;
@@ -283,90 +275,90 @@ x.cloneElement = function(n, e, t) {
283
275
  for (var c = 0; c < u; c++) a[c] = arguments[c + 2];
284
276
  r.children = a;
285
277
  }
286
- return { $$typeof: Ce, type: n.type, key: i, ref: o, props: r, _owner: s };
278
+ return { $$typeof: Ie, type: n.type, key: i, ref: o, props: r, _owner: s };
287
279
  };
288
280
  x.createContext = function(n) {
289
- return n = { $$typeof: bi, _currentValue: n, _currentValue2: n, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, n.Provider = { $$typeof: wi, _context: n }, n.Consumer = n;
281
+ return n = { $$typeof: Ri, _currentValue: n, _currentValue2: n, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, n.Provider = { $$typeof: Ii, _context: n }, n.Consumer = n;
290
282
  };
291
- x.createElement = Un;
283
+ x.createElement = Fn;
292
284
  x.createFactory = function(n) {
293
- var e = Un.bind(null, n);
285
+ var e = Fn.bind(null, n);
294
286
  return e.type = n, e;
295
287
  };
296
288
  x.createRef = function() {
297
289
  return { current: null };
298
290
  };
299
291
  x.forwardRef = function(n) {
300
- return { $$typeof: Si, render: n };
292
+ return { $$typeof: Ai, render: n };
301
293
  };
302
- x.isValidElement = Ot;
294
+ x.isValidElement = Tt;
303
295
  x.lazy = function(n) {
304
- return { $$typeof: Ei, _payload: { _status: -1, _result: n }, _init: ki };
296
+ return { $$typeof: ji, _payload: { _status: -1, _result: n }, _init: _i };
305
297
  };
306
298
  x.memo = function(n, e) {
307
- return { $$typeof: Oi, type: n, compare: e === void 0 ? null : e };
299
+ return { $$typeof: Ni, type: n, compare: e === void 0 ? null : e };
308
300
  };
309
301
  x.startTransition = function(n) {
310
- var e = je.transition;
311
- je.transition = {};
302
+ var e = Fe.transition;
303
+ Fe.transition = {};
312
304
  try {
313
305
  n();
314
306
  } finally {
315
- je.transition = e;
307
+ Fe.transition = e;
316
308
  }
317
309
  };
318
- x.unstable_act = Dn;
310
+ x.unstable_act = _n;
319
311
  x.useCallback = function(n, e) {
320
- return $.current.useCallback(n, e);
312
+ return A.current.useCallback(n, e);
321
313
  };
322
314
  x.useContext = function(n) {
323
- return $.current.useContext(n);
315
+ return A.current.useContext(n);
324
316
  };
325
317
  x.useDebugValue = function() {
326
318
  };
327
319
  x.useDeferredValue = function(n) {
328
- return $.current.useDeferredValue(n);
320
+ return A.current.useDeferredValue(n);
329
321
  };
330
322
  x.useEffect = function(n, e) {
331
- return $.current.useEffect(n, e);
323
+ return A.current.useEffect(n, e);
332
324
  };
333
325
  x.useId = function() {
334
- return $.current.useId();
326
+ return A.current.useId();
335
327
  };
336
328
  x.useImperativeHandle = function(n, e, t) {
337
- return $.current.useImperativeHandle(n, e, t);
329
+ return A.current.useImperativeHandle(n, e, t);
338
330
  };
339
331
  x.useInsertionEffect = function(n, e) {
340
- return $.current.useInsertionEffect(n, e);
332
+ return A.current.useInsertionEffect(n, e);
341
333
  };
342
334
  x.useLayoutEffect = function(n, e) {
343
- return $.current.useLayoutEffect(n, e);
335
+ return A.current.useLayoutEffect(n, e);
344
336
  };
345
337
  x.useMemo = function(n, e) {
346
- return $.current.useMemo(n, e);
338
+ return A.current.useMemo(n, e);
347
339
  };
348
340
  x.useReducer = function(n, e, t) {
349
- return $.current.useReducer(n, e, t);
341
+ return A.current.useReducer(n, e, t);
350
342
  };
351
343
  x.useRef = function(n) {
352
- return $.current.useRef(n);
344
+ return A.current.useRef(n);
353
345
  };
354
346
  x.useState = function(n) {
355
- return $.current.useState(n);
347
+ return A.current.useState(n);
356
348
  };
357
349
  x.useSyncExternalStore = function(n, e, t) {
358
- return $.current.useSyncExternalStore(n, e, t);
350
+ return A.current.useSyncExternalStore(n, e, t);
359
351
  };
360
352
  x.useTransition = function() {
361
- return $.current.useTransition();
353
+ return A.current.useTransition();
362
354
  };
363
355
  x.version = "18.3.1";
364
- Pn.exports = x;
365
- var F = Pn.exports;
366
- const Ii = /* @__PURE__ */ Fr(F), Sa = /* @__PURE__ */ ii({
356
+ Rn.exports = x;
357
+ var F = Rn.exports;
358
+ const Hi = /* @__PURE__ */ Hr(F), Ra = /* @__PURE__ */ ui({
367
359
  __proto__: null,
368
- default: Ii
369
- }, [F]), Ri = (n, e, t, r) => {
360
+ default: Hi
361
+ }, [F]), Vi = (n, e, t, r) => {
370
362
  var o, s, a, u;
371
363
  const i = [t, {
372
364
  code: e,
@@ -374,10 +366,10 @@ const Ii = /* @__PURE__ */ Fr(F), Sa = /* @__PURE__ */ ii({
374
366
  }];
375
367
  if ((s = (o = n == null ? void 0 : n.services) == null ? void 0 : o.logger) != null && s.forward)
376
368
  return n.services.logger.forward(i, "warn", "react-i18next::", !0);
377
- Q(i[0]) && (i[0] = `react-i18next:: ${i[0]}`), (u = (a = n == null ? void 0 : n.services) == null ? void 0 : a.logger) != null && u.warn ? n.services.logger.warn(...i) : console != null && console.warn && [...i];
378
- }, Mt = {}, ft = (n, e, t, r) => {
379
- Q(t) && Mt[t] || (Q(t) && (Mt[t] = /* @__PURE__ */ new Date()), Ri(n, e, t, r));
380
- }, Fn = (n, e) => () => {
369
+ te(i[0]) && (i[0] = `react-i18next:: ${i[0]}`), (u = (a = n == null ? void 0 : n.services) == null ? void 0 : a.logger) != null && u.warn ? n.services.logger.warn(...i) : console != null && console.warn && [...i];
370
+ }, Vt = {}, pt = (n, e, t, r) => {
371
+ te(t) && Vt[t] || (te(t) && (Vt[t] = /* @__PURE__ */ new Date()), Vi(n, e, t, r));
372
+ }, Mn = (n, e) => () => {
381
373
  if (n.isInitialized)
382
374
  e();
383
375
  else {
@@ -388,14 +380,14 @@ const Ii = /* @__PURE__ */ Fr(F), Sa = /* @__PURE__ */ ii({
388
380
  };
389
381
  n.on("initialized", t);
390
382
  }
391
- }, dt = (n, e, t) => {
392
- n.loadNamespaces(e, Fn(n, t));
393
- }, Ht = (n, e, t, r) => {
394
- if (Q(t) && (t = [t]), n.options.preload && n.options.preload.indexOf(e) > -1) return dt(n, t, r);
383
+ }, ht = (n, e, t) => {
384
+ n.loadNamespaces(e, Mn(n, t));
385
+ }, Bt = (n, e, t, r) => {
386
+ if (te(t) && (t = [t]), n.options.preload && n.options.preload.indexOf(e) > -1) return ht(n, t, r);
395
387
  t.forEach((i) => {
396
388
  n.options.ns.indexOf(i) < 0 && n.options.ns.push(i);
397
- }), n.loadLanguages(e, Fn(n, r));
398
- }, $i = (n, e, t = {}) => !e.languages || !e.languages.length ? (ft(e, "NO_LANGUAGES", "i18n.languages were undefined or empty", {
389
+ }), n.loadLanguages(e, Mn(n, r));
390
+ }, Bi = (n, e, t = {}) => !e.languages || !e.languages.length ? (pt(e, "NO_LANGUAGES", "i18n.languages were undefined or empty", {
399
391
  languages: e.languages
400
392
  }), !0) : e.hasLoadedNamespace(n, {
401
393
  lng: t.lng,
@@ -403,7 +395,7 @@ const Ii = /* @__PURE__ */ Fr(F), Sa = /* @__PURE__ */ ii({
403
395
  var o;
404
396
  if (((o = t.bindI18n) == null ? void 0 : o.indexOf("languageChanging")) > -1 && r.services.backendConnector.backend && r.isLanguageChangingTo && !i(r.isLanguageChangingTo, n)) return !1;
405
397
  }
406
- }), Q = (n) => typeof n == "string", Ai = (n) => typeof n == "object" && n !== null, Ni = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, ji = {
398
+ }), te = (n) => typeof n == "string", Ki = (n) => typeof n == "object" && n !== null, qi = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, zi = {
407
399
  "&amp;": "&",
408
400
  "&#38;": "&",
409
401
  "&lt;": "<",
@@ -424,8 +416,8 @@ const Ii = /* @__PURE__ */ Fr(F), Sa = /* @__PURE__ */ ii({
424
416
  "&#8230;": "…",
425
417
  "&#x2F;": "/",
426
418
  "&#47;": "/"
427
- }, Ui = (n) => ji[n], Di = (n) => n.replace(Ni, Ui);
428
- let pt = {
419
+ }, Wi = (n) => zi[n], Ji = (n) => n.replace(qi, Wi);
420
+ let gt = {
429
421
  bindI18n: "languageChanged",
430
422
  bindI18nStore: "",
431
423
  transEmptyNodeValue: "",
@@ -433,24 +425,24 @@ let pt = {
433
425
  transWrapTextNodes: "",
434
426
  transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
435
427
  useSuspense: !0,
436
- unescape: Di
428
+ unescape: Ji
437
429
  };
438
- const Fi = (n = {}) => {
439
- pt = {
440
- ...pt,
430
+ const Xi = (n = {}) => {
431
+ gt = {
432
+ ...gt,
441
433
  ...n
442
434
  };
443
- }, _i = () => pt;
444
- let _n;
445
- const Mi = (n) => {
446
- _n = n;
447
- }, Hi = () => _n, Vi = {
435
+ }, Yi = () => gt;
436
+ let Hn;
437
+ const Gi = (n) => {
438
+ Hn = n;
439
+ }, Qi = () => Hn, Zi = {
448
440
  type: "3rdParty",
449
441
  init(n) {
450
- Fi(n.options.react), Mi(n);
442
+ Xi(n.options.react), Gi(n);
451
443
  }
452
- }, Bi = F.createContext();
453
- class Ki {
444
+ }, eo = F.createContext();
445
+ class to {
454
446
  constructor() {
455
447
  this.usedNamespaces = {};
456
448
  }
@@ -463,120 +455,120 @@ class Ki {
463
455
  return Object.keys(this.usedNamespaces);
464
456
  }
465
457
  }
466
- const qi = (n, e) => {
458
+ const no = (n, e) => {
467
459
  const t = F.useRef();
468
460
  return F.useEffect(() => {
469
461
  t.current = n;
470
462
  }, [n, e]), t.current;
471
- }, Mn = (n, e, t, r) => n.getFixedT(e, t, r), zi = (n, e, t, r) => F.useCallback(Mn(n, e, t, r), [n, e, t, r]), Wi = (n, e = {}) => {
472
- var A, z, W, k;
463
+ }, Vn = (n, e, t, r) => n.getFixedT(e, t, r), ro = (n, e, t, r) => F.useCallback(Vn(n, e, t, r), [n, e, t, r]), io = (n, e = {}) => {
464
+ var $, J, X, k;
473
465
  const {
474
466
  i18n: t
475
467
  } = e, {
476
468
  i18n: r,
477
469
  defaultNS: i
478
- } = F.useContext(Bi) || {}, o = t || r || Hi();
479
- if (o && !o.reportNamespaces && (o.reportNamespaces = new Ki()), !o) {
480
- ft(o, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
481
- const O = (I, T) => Q(T) ? T : Ai(T) && Q(T.defaultValue) ? T.defaultValue : Array.isArray(I) ? I[I.length - 1] : I, P = [O, {}, !1];
482
- return P.t = O, P.i18n = {}, P.ready = !1, P;
470
+ } = F.useContext(eo) || {}, o = t || r || Qi();
471
+ if (o && !o.reportNamespaces && (o.reportNamespaces = new to()), !o) {
472
+ pt(o, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
473
+ const E = (R, T) => te(T) ? T : Ki(T) && te(T.defaultValue) ? T.defaultValue : Array.isArray(R) ? R[R.length - 1] : R, I = [E, {}, !1];
474
+ return I.t = E, I.i18n = {}, I.ready = !1, I;
483
475
  }
484
- (A = o.options.react) != null && A.wait && ft(o, "DEPRECATED_OPTION", "useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
476
+ ($ = o.options.react) != null && $.wait && pt(o, "DEPRECATED_OPTION", "useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
485
477
  const s = {
486
- ..._i(),
478
+ ...Yi(),
487
479
  ...o.options.react,
488
480
  ...e
489
481
  }, {
490
482
  useSuspense: a,
491
483
  keyPrefix: u
492
484
  } = s;
493
- let c = n || i || ((z = o.options) == null ? void 0 : z.defaultNS);
494
- c = Q(c) ? [c] : c || ["translation"], (k = (W = o.reportNamespaces).addUsedNamespaces) == null || k.call(W, c);
495
- const l = (o.isInitialized || o.initializedStoreOnce) && c.every((O) => $i(O, o, s)), f = zi(o, e.lng || null, s.nsMode === "fallback" ? c : c[0], u), d = () => f, g = () => Mn(o, e.lng || null, s.nsMode === "fallback" ? c : c[0], u), [m, v] = F.useState(d);
496
- let w = c.join();
497
- e.lng && (w = `${e.lng}${w}`);
498
- const C = qi(w), E = F.useRef(!0);
485
+ let c = n || i || ((J = o.options) == null ? void 0 : J.defaultNS);
486
+ c = te(c) ? [c] : c || ["translation"], (k = (X = o.reportNamespaces).addUsedNamespaces) == null || k.call(X, c);
487
+ const l = (o.isInitialized || o.initializedStoreOnce) && c.every((E) => Bi(E, o, s)), f = ro(o, e.lng || null, s.nsMode === "fallback" ? c : c[0], u), d = () => f, g = () => Vn(o, e.lng || null, s.nsMode === "fallback" ? c : c[0], u), [m, v] = F.useState(d);
488
+ let b = c.join();
489
+ e.lng && (b = `${e.lng}${b}`);
490
+ const P = no(b), O = F.useRef(!0);
499
491
  F.useEffect(() => {
500
492
  const {
501
- bindI18n: O,
502
- bindI18nStore: P
493
+ bindI18n: E,
494
+ bindI18nStore: I
503
495
  } = s;
504
- E.current = !0, !l && !a && (e.lng ? Ht(o, e.lng, c, () => {
505
- E.current && v(g);
506
- }) : dt(o, c, () => {
507
- E.current && v(g);
508
- })), l && C && C !== w && E.current && v(g);
509
- const I = () => {
510
- E.current && v(g);
496
+ O.current = !0, !l && !a && (e.lng ? Bt(o, e.lng, c, () => {
497
+ O.current && v(g);
498
+ }) : ht(o, c, () => {
499
+ O.current && v(g);
500
+ })), l && P && P !== b && O.current && v(g);
501
+ const R = () => {
502
+ O.current && v(g);
511
503
  };
512
- return O && (o == null || o.on(O, I)), P && (o == null || o.store.on(P, I)), () => {
513
- E.current = !1, o && (O == null || O.split(" ").forEach((T) => o.off(T, I))), P && o && P.split(" ").forEach((T) => o.store.off(T, I));
504
+ return E && (o == null || o.on(E, R)), I && (o == null || o.store.on(I, R)), () => {
505
+ O.current = !1, o && (E == null || E.split(" ").forEach((T) => o.off(T, R))), I && o && I.split(" ").forEach((T) => o.store.off(T, R));
514
506
  };
515
- }, [o, w]), F.useEffect(() => {
516
- E.current && l && v(d);
507
+ }, [o, b]), F.useEffect(() => {
508
+ O.current && l && v(d);
517
509
  }, [o, u, l]);
518
- const L = [m, o, l];
519
- if (L.t = m, L.i18n = o, L.ready = l, l || !l && !a) return L;
520
- throw new Promise((O) => {
521
- e.lng ? Ht(o, e.lng, c, () => O()) : dt(o, c, () => O());
510
+ const C = [m, o, l];
511
+ if (C.t = m, C.i18n = o, C.ready = l, l || !l && !a) return C;
512
+ throw new Promise((E) => {
513
+ e.lng ? Bt(o, e.lng, c, () => E()) : ht(o, c, () => E());
522
514
  });
523
- }, b = (n) => typeof n == "string", ge = () => {
515
+ }, S = (n) => typeof n == "string", ve = () => {
524
516
  let n, e;
525
517
  const t = new Promise((r, i) => {
526
518
  n = r, e = i;
527
519
  });
528
520
  return t.resolve = n, t.reject = e, t;
529
- }, Vt = (n) => n == null ? "" : "" + n, Ji = (n, e, t) => {
521
+ }, Kt = (n) => n == null ? "" : "" + n, oo = (n, e, t) => {
530
522
  n.forEach((r) => {
531
523
  e[r] && (t[r] = e[r]);
532
524
  });
533
- }, Xi = /###/g, Bt = (n) => n && n.indexOf("###") > -1 ? n.replace(Xi, ".") : n, Kt = (n) => !n || b(n), be = (n, e, t) => {
534
- const r = b(e) ? e.split(".") : e;
525
+ }, so = /###/g, qt = (n) => n && n.indexOf("###") > -1 ? n.replace(so, ".") : n, zt = (n) => !n || S(n), Ee = (n, e, t) => {
526
+ const r = S(e) ? e.split(".") : e;
535
527
  let i = 0;
536
528
  for (; i < r.length - 1; ) {
537
- if (Kt(n)) return {};
538
- const o = Bt(r[i]);
529
+ if (zt(n)) return {};
530
+ const o = qt(r[i]);
539
531
  !n[o] && t && (n[o] = new t()), Object.prototype.hasOwnProperty.call(n, o) ? n = n[o] : n = {}, ++i;
540
532
  }
541
- return Kt(n) ? {} : {
533
+ return zt(n) ? {} : {
542
534
  obj: n,
543
- k: Bt(r[i])
535
+ k: qt(r[i])
544
536
  };
545
- }, qt = (n, e, t) => {
537
+ }, Wt = (n, e, t) => {
546
538
  const {
547
539
  obj: r,
548
540
  k: i
549
- } = be(n, e, Object);
541
+ } = Ee(n, e, Object);
550
542
  if (r !== void 0 || e.length === 1) {
551
543
  r[i] = t;
552
544
  return;
553
545
  }
554
- let o = e[e.length - 1], s = e.slice(0, e.length - 1), a = be(n, s, Object);
546
+ let o = e[e.length - 1], s = e.slice(0, e.length - 1), a = Ee(n, s, Object);
555
547
  for (; a.obj === void 0 && s.length; )
556
- o = `${s[s.length - 1]}.${o}`, s = s.slice(0, s.length - 1), a = be(n, s, Object), a != null && a.obj && typeof a.obj[`${a.k}.${o}`] < "u" && (a.obj = void 0);
548
+ o = `${s[s.length - 1]}.${o}`, s = s.slice(0, s.length - 1), a = Ee(n, s, Object), a != null && a.obj && typeof a.obj[`${a.k}.${o}`] < "u" && (a.obj = void 0);
557
549
  a.obj[`${a.k}.${o}`] = t;
558
- }, Gi = (n, e, t, r) => {
550
+ }, ao = (n, e, t, r) => {
559
551
  const {
560
552
  obj: i,
561
553
  k: o
562
- } = be(n, e, Object);
554
+ } = Ee(n, e, Object);
563
555
  i[o] = i[o] || [], i[o].push(t);
564
- }, _e = (n, e) => {
556
+ }, Me = (n, e) => {
565
557
  const {
566
558
  obj: t,
567
559
  k: r
568
- } = be(n, e);
560
+ } = Ee(n, e);
569
561
  if (t && Object.prototype.hasOwnProperty.call(t, r))
570
562
  return t[r];
571
- }, Yi = (n, e, t) => {
572
- const r = _e(n, t);
573
- return r !== void 0 ? r : _e(e, t);
574
- }, Hn = (n, e, t) => {
563
+ }, uo = (n, e, t) => {
564
+ const r = Me(n, t);
565
+ return r !== void 0 ? r : Me(e, t);
566
+ }, Bn = (n, e, t) => {
575
567
  for (const r in e)
576
- r !== "__proto__" && r !== "constructor" && (r in n ? b(n[r]) || n[r] instanceof String || b(e[r]) || e[r] instanceof String ? t && (n[r] = e[r]) : Hn(n[r], e[r], t) : n[r] = e[r]);
568
+ r !== "__proto__" && r !== "constructor" && (r in n ? S(n[r]) || n[r] instanceof String || S(e[r]) || e[r] instanceof String ? t && (n[r] = e[r]) : Bn(n[r], e[r], t) : n[r] = e[r]);
577
569
  return n;
578
- }, te = (n) => n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
579
- var Qi = {
570
+ }, ie = (n) => n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
571
+ var lo = {
580
572
  "&": "&amp;",
581
573
  "<": "&lt;",
582
574
  ">": "&gt;",
@@ -584,8 +576,8 @@ var Qi = {
584
576
  "'": "&#39;",
585
577
  "/": "&#x2F;"
586
578
  };
587
- const Zi = (n) => b(n) ? n.replace(/[&<>"'\/]/g, (e) => Qi[e]) : n;
588
- class eo {
579
+ const co = (n) => S(n) ? n.replace(/[&<>"'\/]/g, (e) => lo[e]) : n;
580
+ class fo {
589
581
  constructor(e) {
590
582
  this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
591
583
  }
@@ -597,18 +589,18 @@ class eo {
597
589
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, r), this.regExpQueue.push(e), r;
598
590
  }
599
591
  }
600
- const to = [" ", ",", "?", "!", ";"], no = new eo(20), ro = (n, e, t) => {
592
+ const po = [" ", ",", "?", "!", ";"], ho = new fo(20), go = (n, e, t) => {
601
593
  e = e || "", t = t || "";
602
- const r = to.filter((s) => e.indexOf(s) < 0 && t.indexOf(s) < 0);
594
+ const r = po.filter((s) => e.indexOf(s) < 0 && t.indexOf(s) < 0);
603
595
  if (r.length === 0) return !0;
604
- const i = no.getRegExp(`(${r.map((s) => s === "?" ? "\\?" : s).join("|")})`);
596
+ const i = ho.getRegExp(`(${r.map((s) => s === "?" ? "\\?" : s).join("|")})`);
605
597
  let o = !i.test(n);
606
598
  if (!o) {
607
599
  const s = n.indexOf(t);
608
600
  s > 0 && !i.test(n.substring(0, s)) && (o = !0);
609
601
  }
610
602
  return o;
611
- }, ht = function(n, e) {
603
+ }, mt = function(n, e) {
612
604
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
613
605
  if (!n) return;
614
606
  if (n[e])
@@ -629,7 +621,7 @@ const to = [" ", ",", "?", "!", ";"], no = new eo(20), ro = (n, e, t) => {
629
621
  i = s;
630
622
  }
631
623
  return i;
632
- }, Me = (n) => n == null ? void 0 : n.replace("_", "-"), io = {
624
+ }, He = (n) => n == null ? void 0 : n.replace("_", "-"), mo = {
633
625
  type: "logger",
634
626
  log(n) {
635
627
  this.output("log", n);
@@ -645,14 +637,14 @@ const to = [" ", ",", "?", "!", ";"], no = new eo(20), ro = (n, e, t) => {
645
637
  (r = (t = console == null ? void 0 : console[n]) == null ? void 0 : t.apply) == null || r.call(t, console, e);
646
638
  }
647
639
  };
648
- class He {
640
+ class Ve {
649
641
  constructor(e) {
650
642
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
651
643
  this.init(e, t);
652
644
  }
653
645
  init(e) {
654
646
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
655
- this.prefix = t.prefix || "i18next:", this.logger = e || io, this.options = t, this.debug = t.debug;
647
+ this.prefix = t.prefix || "i18next:", this.logger = e || mo, this.options = t, this.debug = t.debug;
656
648
  }
657
649
  log() {
658
650
  for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
@@ -675,20 +667,20 @@ class He {
675
667
  return this.forward(t, "warn", "WARNING DEPRECATED: ", !0);
676
668
  }
677
669
  forward(e, t, r, i) {
678
- return i && !this.debug ? null : (b(e[0]) && (e[0] = `${r}${this.prefix} ${e[0]}`), this.logger[t](e));
670
+ return i && !this.debug ? null : (S(e[0]) && (e[0] = `${r}${this.prefix} ${e[0]}`), this.logger[t](e));
679
671
  }
680
672
  create(e) {
681
- return new He(this.logger, {
673
+ return new Ve(this.logger, {
682
674
  prefix: `${this.prefix}:${e}:`,
683
675
  ...this.options
684
676
  });
685
677
  }
686
678
  clone(e) {
687
- return e = e || this.options, e.prefix = e.prefix || this.prefix, new He(this.logger, e);
679
+ return e = e || this.options, e.prefix = e.prefix || this.prefix, new Ve(this.logger, e);
688
680
  }
689
681
  }
690
- var B = new He();
691
- class Xe {
682
+ var K = new Ve();
683
+ class Ye {
692
684
  constructor() {
693
685
  this.observers = {};
694
686
  }
@@ -722,7 +714,7 @@ class Xe {
722
714
  });
723
715
  }
724
716
  }
725
- class zt extends Xe {
717
+ class Jt extends Ye {
726
718
  constructor(e) {
727
719
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
728
720
  ns: ["translation"],
@@ -742,9 +734,9 @@ class zt extends Xe {
742
734
  let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
743
735
  const o = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator, s = i.ignoreJSONStructure !== void 0 ? i.ignoreJSONStructure : this.options.ignoreJSONStructure;
744
736
  let a;
745
- e.indexOf(".") > -1 ? a = e.split(".") : (a = [e, t], r && (Array.isArray(r) ? a.push(...r) : b(r) && o ? a.push(...r.split(o)) : a.push(r)));
746
- const u = _e(this.data, a);
747
- return !u && !t && !r && e.indexOf(".") > -1 && (e = a[0], t = a[1], r = a.slice(2).join(".")), u || !s || !b(r) ? u : ht((l = (c = this.data) == null ? void 0 : c[e]) == null ? void 0 : l[t], r, o);
737
+ e.indexOf(".") > -1 ? a = e.split(".") : (a = [e, t], r && (Array.isArray(r) ? a.push(...r) : S(r) && o ? a.push(...r.split(o)) : a.push(r)));
738
+ const u = Me(this.data, a);
739
+ return !u && !t && !r && e.indexOf(".") > -1 && (e = a[0], t = a[1], r = a.slice(2).join(".")), u || !s || !S(r) ? u : mt((l = (c = this.data) == null ? void 0 : c[e]) == null ? void 0 : l[t], r, o);
748
740
  }
749
741
  addResource(e, t, r, i) {
750
742
  let o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
@@ -752,14 +744,14 @@ class zt extends Xe {
752
744
  };
753
745
  const s = o.keySeparator !== void 0 ? o.keySeparator : this.options.keySeparator;
754
746
  let a = [e, t];
755
- r && (a = a.concat(s ? r.split(s) : r)), e.indexOf(".") > -1 && (a = e.split("."), i = t, t = a[1]), this.addNamespaces(t), qt(this.data, a, i), o.silent || this.emit("added", e, t, r, i);
747
+ r && (a = a.concat(s ? r.split(s) : r)), e.indexOf(".") > -1 && (a = e.split("."), i = t, t = a[1]), this.addNamespaces(t), Wt(this.data, a, i), o.silent || this.emit("added", e, t, r, i);
756
748
  }
757
749
  addResources(e, t, r) {
758
750
  let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
759
751
  silent: !1
760
752
  };
761
753
  for (const o in r)
762
- (b(r[o]) || Array.isArray(r[o])) && this.addResource(e, t, o, r[o], {
754
+ (S(r[o]) || Array.isArray(r[o])) && this.addResource(e, t, o, r[o], {
763
755
  silent: !0
764
756
  });
765
757
  i.silent || this.emit("added", e, t, r);
@@ -770,11 +762,11 @@ class zt extends Xe {
770
762
  skipCopy: !1
771
763
  }, a = [e, t];
772
764
  e.indexOf(".") > -1 && (a = e.split("."), i = r, r = t, t = a[1]), this.addNamespaces(t);
773
- let u = _e(this.data, a) || {};
774
- s.skipCopy || (r = JSON.parse(JSON.stringify(r))), i ? Hn(u, r, o) : u = {
765
+ let u = Me(this.data, a) || {};
766
+ s.skipCopy || (r = JSON.parse(JSON.stringify(r))), i ? Bn(u, r, o) : u = {
775
767
  ...u,
776
768
  ...r
777
- }, qt(this.data, a, u), s.silent || this.emit("added", e, t, r);
769
+ }, Wt(this.data, a, u), s.silent || this.emit("added", e, t, r);
778
770
  }
779
771
  removeResourceBundle(e, t) {
780
772
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -796,7 +788,7 @@ class zt extends Xe {
796
788
  return this.data;
797
789
  }
798
790
  }
799
- var Vn = {
791
+ var Kn = {
800
792
  processors: {},
801
793
  addPostProcessor(n) {
802
794
  this.processors[n.name] = n;
@@ -808,11 +800,11 @@ var Vn = {
808
800
  }), e;
809
801
  }
810
802
  };
811
- const Wt = {}, Jt = (n) => !b(n) && typeof n != "boolean" && typeof n != "number";
812
- class Ve extends Xe {
803
+ const Xt = {}, Yt = (n) => !S(n) && typeof n != "boolean" && typeof n != "number";
804
+ class Be extends Ye {
813
805
  constructor(e) {
814
806
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
815
- super(), Ji(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = B.create("translator");
807
+ super(), oo(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = K.create("translator");
816
808
  }
817
809
  changeLanguage(e) {
818
810
  e && (this.language = e);
@@ -831,20 +823,20 @@ class Ve extends Xe {
831
823
  r === void 0 && (r = ":");
832
824
  const i = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
833
825
  let o = t.ns || this.options.defaultNS || [];
834
- const s = r && e.indexOf(r) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !ro(e, r, i);
826
+ const s = r && e.indexOf(r) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !go(e, r, i);
835
827
  if (s && !a) {
836
828
  const u = e.match(this.interpolator.nestingRegexp);
837
829
  if (u && u.length > 0)
838
830
  return {
839
831
  key: e,
840
- namespaces: b(o) ? [o] : o
832
+ namespaces: S(o) ? [o] : o
841
833
  };
842
834
  const c = e.split(r);
843
835
  (r !== i || r === i && this.options.ns.indexOf(c[0]) > -1) && (o = c.shift()), e = c.join(i);
844
836
  }
845
837
  return {
846
838
  key: e,
847
- namespaces: b(o) ? [o] : o
839
+ namespaces: S(o) ? [o] : o
848
840
  };
849
841
  }
850
842
  translate(e, t, r) {
@@ -879,72 +871,72 @@ class Ve extends Xe {
879
871
  }
880
872
  const f = this.resolve(e, t);
881
873
  let d = f == null ? void 0 : f.res;
882
- const g = (f == null ? void 0 : f.usedKey) || s, m = (f == null ? void 0 : f.exactUsedKey) || s, v = ["[object Number]", "[object Function]", "[object RegExp]"], w = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, C = !this.i18nFormat || this.i18nFormat.handleAsObject, E = t.count !== void 0 && !b(t.count), L = Ve.hasDefaultValue(t), A = E ? this.pluralResolver.getSuffix(c, t.count, t) : "", z = t.ordinal && E ? this.pluralResolver.getSuffix(c, t.count, {
874
+ const g = (f == null ? void 0 : f.usedKey) || s, m = (f == null ? void 0 : f.exactUsedKey) || s, v = ["[object Number]", "[object Function]", "[object RegExp]"], b = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, P = !this.i18nFormat || this.i18nFormat.handleAsObject, O = t.count !== void 0 && !S(t.count), C = Be.hasDefaultValue(t), $ = O ? this.pluralResolver.getSuffix(c, t.count, t) : "", J = t.ordinal && O ? this.pluralResolver.getSuffix(c, t.count, {
883
875
  ordinal: !1
884
- }) : "", W = E && !t.ordinal && t.count === 0, k = W && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${A}`] || t[`defaultValue${z}`] || t.defaultValue;
885
- let O = d;
886
- C && !d && L && (O = k);
887
- const P = Jt(O), I = Object.prototype.toString.apply(O);
888
- if (C && O && P && v.indexOf(I) < 0 && !(b(w) && Array.isArray(O))) {
876
+ }) : "", X = O && !t.ordinal && t.count === 0, k = X && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${$}`] || t[`defaultValue${J}`] || t.defaultValue;
877
+ let E = d;
878
+ P && !d && C && (E = k);
879
+ const I = Yt(E), R = Object.prototype.toString.apply(E);
880
+ if (P && E && I && v.indexOf(R) < 0 && !(S(b) && Array.isArray(E))) {
889
881
  if (!t.returnObjects && !this.options.returnObjects) {
890
882
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
891
- const T = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(g, O, {
883
+ const T = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(g, E, {
892
884
  ...t,
893
885
  ns: a
894
886
  }) : `key '${s} (${this.language})' returned an object instead of string.`;
895
887
  return i ? (f.res = T, f.usedParams = this.getUsedParamsDetails(t), f) : T;
896
888
  }
897
889
  if (o) {
898
- const T = Array.isArray(O), D = T ? [] : {}, Ct = T ? m : g;
899
- for (const _ in O)
900
- if (Object.prototype.hasOwnProperty.call(O, _)) {
901
- const q = `${Ct}${o}${_}`;
902
- L && !d ? D[_] = this.translate(q, {
890
+ const T = Array.isArray(E), U = T ? [] : {}, kt = T ? m : g;
891
+ for (const _ in E)
892
+ if (Object.prototype.hasOwnProperty.call(E, _)) {
893
+ const z = `${kt}${o}${_}`;
894
+ C && !d ? U[_] = this.translate(z, {
903
895
  ...t,
904
- defaultValue: Jt(k) ? k[_] : void 0,
896
+ defaultValue: Yt(k) ? k[_] : void 0,
905
897
  joinArrays: !1,
906
898
  ns: a
907
- }) : D[_] = this.translate(q, {
899
+ }) : U[_] = this.translate(z, {
908
900
  ...t,
909
901
  joinArrays: !1,
910
902
  ns: a
911
- }), D[_] === q && (D[_] = O[_]);
903
+ }), U[_] === z && (U[_] = E[_]);
912
904
  }
913
- d = D;
905
+ d = U;
914
906
  }
915
- } else if (C && b(w) && Array.isArray(d))
916
- d = d.join(w), d && (d = this.extendTranslation(d, e, t, r));
907
+ } else if (P && S(b) && Array.isArray(d))
908
+ d = d.join(b), d && (d = this.extendTranslation(d, e, t, r));
917
909
  else {
918
- let T = !1, D = !1;
919
- !this.isValidLookup(d) && L && (T = !0, d = k), this.isValidLookup(d) || (D = !0, d = s);
920
- const _ = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && D ? void 0 : d, q = L && k !== d && this.options.updateMissing;
921
- if (D || T || q) {
922
- if (this.logger.log(q ? "updateKey" : "missingKey", c, u, s, q ? k : d), o) {
910
+ let T = !1, U = !1;
911
+ !this.isValidLookup(d) && C && (T = !0, d = k), this.isValidLookup(d) || (U = !0, d = s);
912
+ const _ = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && U ? void 0 : d, z = C && k !== d && this.options.updateMissing;
913
+ if (U || T || z) {
914
+ if (this.logger.log(z ? "updateKey" : "missingKey", c, u, s, z ? k : d), o) {
923
915
  const N = this.resolve(s, {
924
916
  ...t,
925
917
  keySeparator: !1
926
918
  });
927
919
  N && N.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
928
920
  }
929
- let fe = [];
930
- const Pe = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
931
- if (this.options.saveMissingTo === "fallback" && Pe && Pe[0])
932
- for (let N = 0; N < Pe.length; N++)
933
- fe.push(Pe[N]);
934
- else this.options.saveMissingTo === "all" ? fe = this.languageUtils.toResolveHierarchy(t.lng || this.language) : fe.push(t.lng || this.language);
935
- const kt = (N, G, de) => {
936
- var It;
937
- const Pt = L && de !== d ? de : _;
938
- this.options.missingKeyHandler ? this.options.missingKeyHandler(N, u, G, Pt, q, t) : (It = this.backendConnector) != null && It.saveMissing && this.backendConnector.saveMissing(N, u, G, Pt, q, t), this.emit("missingKey", N, u, G, d);
921
+ let he = [];
922
+ const Ae = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
923
+ if (this.options.saveMissingTo === "fallback" && Ae && Ae[0])
924
+ for (let N = 0; N < Ae.length; N++)
925
+ he.push(Ae[N]);
926
+ else this.options.saveMissingTo === "all" ? he = this.languageUtils.toResolveHierarchy(t.lng || this.language) : he.push(t.lng || this.language);
927
+ const It = (N, Z, ge) => {
928
+ var At;
929
+ const Rt = C && ge !== d ? ge : _;
930
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(N, u, Z, Rt, z, t) : (At = this.backendConnector) != null && At.saveMissing && this.backendConnector.saveMissing(N, u, Z, Rt, z, t), this.emit("missingKey", N, u, Z, d);
939
931
  };
940
- this.options.saveMissing && (this.options.saveMissingPlurals && E ? fe.forEach((N) => {
941
- const G = this.pluralResolver.getSuffixes(N, t);
942
- W && t[`defaultValue${this.options.pluralSeparator}zero`] && G.indexOf(`${this.options.pluralSeparator}zero`) < 0 && G.push(`${this.options.pluralSeparator}zero`), G.forEach((de) => {
943
- kt([N], s + de, t[`defaultValue${de}`] || k);
932
+ this.options.saveMissing && (this.options.saveMissingPlurals && O ? he.forEach((N) => {
933
+ const Z = this.pluralResolver.getSuffixes(N, t);
934
+ X && t[`defaultValue${this.options.pluralSeparator}zero`] && Z.indexOf(`${this.options.pluralSeparator}zero`) < 0 && Z.push(`${this.options.pluralSeparator}zero`), Z.forEach((ge) => {
935
+ It([N], s + ge, t[`defaultValue${ge}`] || k);
944
936
  });
945
- }) : kt(fe, s, k));
937
+ }) : It(he, s, k));
946
938
  }
947
- d = this.extendTranslation(d, e, t, f, r), D && d === s && this.options.appendNamespaceToMissingKey && (d = `${u}:${s}`), (D || T) && this.options.parseMissingKeyHandler && (d = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${u}:${s}` : s, T ? d : void 0));
939
+ d = this.extendTranslation(d, e, t, f, r), U && d === s && this.options.appendNamespaceToMissingKey && (d = `${u}:${s}`), (U || T) && this.options.parseMissingKeyHandler && (d = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${u}:${s}` : s, T ? d : void 0));
948
940
  }
949
941
  return i ? (f.res = d, f.usedParams = this.getUsedParamsDetails(t), f) : d;
950
942
  }
@@ -966,13 +958,13 @@ class Ve extends Xe {
966
958
  ...r.interpolation
967
959
  }
968
960
  });
969
- const f = b(e) && (((l = r == null ? void 0 : r.interpolation) == null ? void 0 : l.skipOnVariables) !== void 0 ? r.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
961
+ const f = S(e) && (((l = r == null ? void 0 : r.interpolation) == null ? void 0 : l.skipOnVariables) !== void 0 ? r.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
970
962
  let d;
971
963
  if (f) {
972
964
  const m = e.match(this.interpolator.nestingRegexp);
973
965
  d = m && m.length;
974
966
  }
975
- let g = r.replace && !b(r.replace) ? r.replace : r;
967
+ let g = r.replace && !S(r.replace) ? r.replace : r;
976
968
  if (this.options.interpolation.defaultVariables && (g = {
977
969
  ...this.options.interpolation.defaultVariables,
978
970
  ...g
@@ -981,13 +973,13 @@ class Ve extends Xe {
981
973
  d < v && (r.nest = !1);
982
974
  }
983
975
  !r.lng && i && i.res && (r.lng = this.language || i.usedLng), r.nest !== !1 && (e = this.interpolator.nest(e, function() {
984
- for (var m = arguments.length, v = new Array(m), w = 0; w < m; w++)
985
- v[w] = arguments[w];
976
+ for (var m = arguments.length, v = new Array(m), b = 0; b < m; b++)
977
+ v[b] = arguments[b];
986
978
  return (o == null ? void 0 : o[0]) === v[0] && !r.context ? (s.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${t[0]}`), null) : s.translate(...v, t);
987
979
  }, r)), r.interpolation && this.interpolator.reset();
988
980
  }
989
- const a = r.postProcess || this.options.postProcess, u = b(a) ? [a] : a;
990
- return e != null && (u != null && u.length) && r.applyPostProcessor !== !1 && (e = Vn.handle(u, e, t, this.options && this.options.postProcessPassResolved ? {
981
+ const a = r.postProcess || this.options.postProcess, u = S(a) ? [a] : a;
982
+ return e != null && (u != null && u.length) && r.applyPostProcessor !== !1 && (e = Kn.handle(u, e, t, this.options && this.options.postProcessPassResolved ? {
991
983
  i18nResolved: {
992
984
  ...i,
993
985
  usedParams: this.getUsedParamsDetails(r)
@@ -997,34 +989,34 @@ class Ve extends Xe {
997
989
  }
998
990
  resolve(e) {
999
991
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r, i, o, s, a;
1000
- return b(e) && (e = [e]), e.forEach((u) => {
992
+ return S(e) && (e = [e]), e.forEach((u) => {
1001
993
  if (this.isValidLookup(r)) return;
1002
994
  const c = this.extractFromKey(u, t), l = c.key;
1003
995
  i = l;
1004
996
  let f = c.namespaces;
1005
997
  this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
1006
- const d = t.count !== void 0 && !b(t.count), g = d && !t.ordinal && t.count === 0, m = t.context !== void 0 && (b(t.context) || typeof t.context == "number") && t.context !== "", v = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
1007
- f.forEach((w) => {
1008
- var C, E;
1009
- this.isValidLookup(r) || (a = w, !Wt[`${v[0]}-${w}`] && ((C = this.utils) != null && C.hasLoadedNamespace) && !((E = this.utils) != null && E.hasLoadedNamespace(a)) && (Wt[`${v[0]}-${w}`] = !0, this.logger.warn(`key "${i}" for languages "${v.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), v.forEach((L) => {
1010
- var W;
998
+ const d = t.count !== void 0 && !S(t.count), g = d && !t.ordinal && t.count === 0, m = t.context !== void 0 && (S(t.context) || typeof t.context == "number") && t.context !== "", v = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
999
+ f.forEach((b) => {
1000
+ var P, O;
1001
+ this.isValidLookup(r) || (a = b, !Xt[`${v[0]}-${b}`] && ((P = this.utils) != null && P.hasLoadedNamespace) && !((O = this.utils) != null && O.hasLoadedNamespace(a)) && (Xt[`${v[0]}-${b}`] = !0, this.logger.warn(`key "${i}" for languages "${v.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), v.forEach((C) => {
1002
+ var X;
1011
1003
  if (this.isValidLookup(r)) return;
1012
- s = L;
1013
- const A = [l];
1014
- if ((W = this.i18nFormat) != null && W.addLookupKeys)
1015
- this.i18nFormat.addLookupKeys(A, l, L, w, t);
1004
+ s = C;
1005
+ const $ = [l];
1006
+ if ((X = this.i18nFormat) != null && X.addLookupKeys)
1007
+ this.i18nFormat.addLookupKeys($, l, C, b, t);
1016
1008
  else {
1017
1009
  let k;
1018
- d && (k = this.pluralResolver.getSuffix(L, t.count, t));
1019
- const O = `${this.options.pluralSeparator}zero`, P = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
1020
- if (d && (A.push(l + k), t.ordinal && k.indexOf(P) === 0 && A.push(l + k.replace(P, this.options.pluralSeparator)), g && A.push(l + O)), m) {
1021
- const I = `${l}${this.options.contextSeparator}${t.context}`;
1022
- A.push(I), d && (A.push(I + k), t.ordinal && k.indexOf(P) === 0 && A.push(I + k.replace(P, this.options.pluralSeparator)), g && A.push(I + O));
1010
+ d && (k = this.pluralResolver.getSuffix(C, t.count, t));
1011
+ const E = `${this.options.pluralSeparator}zero`, I = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
1012
+ if (d && ($.push(l + k), t.ordinal && k.indexOf(I) === 0 && $.push(l + k.replace(I, this.options.pluralSeparator)), g && $.push(l + E)), m) {
1013
+ const R = `${l}${this.options.contextSeparator}${t.context}`;
1014
+ $.push(R), d && ($.push(R + k), t.ordinal && k.indexOf(I) === 0 && $.push(R + k.replace(I, this.options.pluralSeparator)), g && $.push(R + E));
1023
1015
  }
1024
1016
  }
1025
- let z;
1026
- for (; z = A.pop(); )
1027
- this.isValidLookup(r) || (o = z, r = this.getResource(L, w, z, t));
1017
+ let J;
1018
+ for (; J = $.pop(); )
1019
+ this.isValidLookup(r) || (o = J, r = this.getResource(C, b, J, t));
1028
1020
  }));
1029
1021
  });
1030
1022
  }), {
@@ -1045,7 +1037,7 @@ class Ve extends Xe {
1045
1037
  }
1046
1038
  getUsedParamsDetails() {
1047
1039
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1048
- const t = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], r = e.replace && !b(e.replace);
1040
+ const t = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], r = e.replace && !S(e.replace);
1049
1041
  let i = r ? e.replace : e;
1050
1042
  if (r && typeof e.count < "u" && (i.count = e.count), this.options.interpolation.defaultVariables && (i = {
1051
1043
  ...this.options.interpolation.defaultVariables,
@@ -1067,22 +1059,22 @@ class Ve extends Xe {
1067
1059
  return !1;
1068
1060
  }
1069
1061
  }
1070
- class Xt {
1062
+ class Gt {
1071
1063
  constructor(e) {
1072
- this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = B.create("languageUtils");
1064
+ this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = K.create("languageUtils");
1073
1065
  }
1074
1066
  getScriptPartFromCode(e) {
1075
- if (e = Me(e), !e || e.indexOf("-") < 0) return null;
1067
+ if (e = He(e), !e || e.indexOf("-") < 0) return null;
1076
1068
  const t = e.split("-");
1077
1069
  return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
1078
1070
  }
1079
1071
  getLanguagePartFromCode(e) {
1080
- if (e = Me(e), !e || e.indexOf("-") < 0) return e;
1072
+ if (e = He(e), !e || e.indexOf("-") < 0) return e;
1081
1073
  const t = e.split("-");
1082
1074
  return this.formatLanguageCode(t[0]);
1083
1075
  }
1084
1076
  formatLanguageCode(e) {
1085
- if (b(e) && e.indexOf("-") > -1) {
1077
+ if (S(e) && e.indexOf("-") > -1) {
1086
1078
  let t;
1087
1079
  try {
1088
1080
  t = Intl.getCanonicalLocales(e)[0];
@@ -1115,7 +1107,7 @@ class Xt {
1115
1107
  }
1116
1108
  getFallbackCodes(e, t) {
1117
1109
  if (!e) return [];
1118
- if (typeof e == "function" && (e = e(t)), b(e) && (e = [e]), Array.isArray(e)) return e;
1110
+ if (typeof e == "function" && (e = e(t)), S(e) && (e = [e]), Array.isArray(e)) return e;
1119
1111
  if (!t) return e.default || [];
1120
1112
  let r = e[t];
1121
1113
  return r || (r = e[this.getScriptPartFromCode(t)]), r || (r = e[this.formatLanguageCode(t)]), r || (r = e[this.getLanguagePartFromCode(t)]), r || (r = e.default), r || [];
@@ -1124,28 +1116,28 @@ class Xt {
1124
1116
  const r = this.getFallbackCodes(t || this.options.fallbackLng || [], e), i = [], o = (s) => {
1125
1117
  s && (this.isSupportedCode(s) ? i.push(s) : this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`));
1126
1118
  };
1127
- return b(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && o(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && o(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && o(this.getLanguagePartFromCode(e))) : b(e) && o(this.formatLanguageCode(e)), r.forEach((s) => {
1119
+ return S(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && o(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && o(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && o(this.getLanguagePartFromCode(e))) : S(e) && o(this.formatLanguageCode(e)), r.forEach((s) => {
1128
1120
  i.indexOf(s) < 0 && o(this.formatLanguageCode(s));
1129
1121
  }), i;
1130
1122
  }
1131
1123
  }
1132
- const Gt = {
1124
+ const Qt = {
1133
1125
  zero: 0,
1134
1126
  one: 1,
1135
1127
  two: 2,
1136
1128
  few: 3,
1137
1129
  many: 4,
1138
1130
  other: 5
1139
- }, Yt = {
1131
+ }, Zt = {
1140
1132
  select: (n) => n === 1 ? "one" : "other",
1141
1133
  resolvedOptions: () => ({
1142
1134
  pluralCategories: ["one", "other"]
1143
1135
  })
1144
1136
  };
1145
- class oo {
1137
+ class yo {
1146
1138
  constructor(e) {
1147
1139
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1148
- this.languageUtils = e, this.options = t, this.logger = B.create("pluralResolver"), this.pluralRulesCache = {};
1140
+ this.languageUtils = e, this.options = t, this.logger = K.create("pluralResolver"), this.pluralRulesCache = {};
1149
1141
  }
1150
1142
  addRule(e, t) {
1151
1143
  this.rules[e] = t;
@@ -1155,7 +1147,7 @@ class oo {
1155
1147
  }
1156
1148
  getRule(e) {
1157
1149
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1158
- const r = Me(e === "dev" ? "en" : e), i = t.ordinal ? "ordinal" : "cardinal", o = JSON.stringify({
1150
+ const r = He(e === "dev" ? "en" : e), i = t.ordinal ? "ordinal" : "cardinal", o = JSON.stringify({
1159
1151
  cleanedCode: r,
1160
1152
  type: i
1161
1153
  });
@@ -1168,8 +1160,8 @@ class oo {
1168
1160
  });
1169
1161
  } catch {
1170
1162
  if (!Intl)
1171
- return this.logger.error("No Intl support, please use an Intl polyfill!"), Yt;
1172
- if (!e.match(/-|_/)) return Yt;
1163
+ return this.logger.error("No Intl support, please use an Intl polyfill!"), Zt;
1164
+ if (!e.match(/-|_/)) return Zt;
1173
1165
  const u = this.languageUtils.getLanguagePartFromCode(e);
1174
1166
  s = this.getRule(u, t);
1175
1167
  }
@@ -1185,7 +1177,7 @@ class oo {
1185
1177
  }
1186
1178
  getSuffixes(e) {
1187
1179
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = this.getRule(e, t);
1188
- return r || (r = this.getRule("dev", t)), r ? r.resolvedOptions().pluralCategories.sort((i, o) => Gt[i] - Gt[o]).map((i) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${i}`) : [];
1180
+ return r || (r = this.getRule("dev", t)), r ? r.resolvedOptions().pluralCategories.sort((i, o) => Qt[i] - Qt[o]).map((i) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${i}`) : [];
1189
1181
  }
1190
1182
  getSuffix(e, t) {
1191
1183
  let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
@@ -1193,15 +1185,15 @@ class oo {
1193
1185
  return i ? `${this.options.prepend}${r.ordinal ? `ordinal${this.options.prepend}` : ""}${i.select(t)}` : (this.logger.warn(`no plural rule found for: ${e}`), this.getSuffix("dev", t, r));
1194
1186
  }
1195
1187
  }
1196
- const Qt = function(n, e, t) {
1197
- let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, o = Yi(n, e, t);
1198
- return !o && i && b(t) && (o = ht(n, t, r), o === void 0 && (o = ht(e, t, r))), o;
1199
- }, ot = (n) => n.replace(/\$/g, "$$$$");
1200
- class so {
1188
+ const en = function(n, e, t) {
1189
+ let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, o = uo(n, e, t);
1190
+ return !o && i && S(t) && (o = mt(n, t, r), o === void 0 && (o = mt(e, t, r))), o;
1191
+ }, st = (n) => n.replace(/\$/g, "$$$$");
1192
+ class vo {
1201
1193
  constructor() {
1202
1194
  var t;
1203
1195
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1204
- this.logger = B.create("interpolator"), this.options = e, this.format = ((t = e == null ? void 0 : e.interpolation) == null ? void 0 : t.format) || ((r) => r), this.init(e);
1196
+ this.logger = K.create("interpolator"), this.options = e, this.format = ((t = e == null ? void 0 : e.interpolation) == null ? void 0 : t.format) || ((r) => r), this.init(e);
1205
1197
  }
1206
1198
  init() {
1207
1199
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -1223,11 +1215,11 @@ class so {
1223
1215
  nestingPrefixEscaped: g,
1224
1216
  nestingSuffix: m,
1225
1217
  nestingSuffixEscaped: v,
1226
- nestingOptionsSeparator: w,
1227
- maxReplaces: C,
1228
- alwaysFormat: E
1218
+ nestingOptionsSeparator: b,
1219
+ maxReplaces: P,
1220
+ alwaysFormat: O
1229
1221
  } = e.interpolation;
1230
- this.escape = t !== void 0 ? t : Zi, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = o ? te(o) : s || "{{", this.suffix = a ? te(a) : u || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = d ? te(d) : g || te("$t("), this.nestingSuffix = m ? te(m) : v || te(")"), this.nestingOptionsSeparator = w || ",", this.maxReplaces = C || 1e3, this.alwaysFormat = E !== void 0 ? E : !1, this.resetRegExp();
1222
+ this.escape = t !== void 0 ? t : co, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = o ? ie(o) : s || "{{", this.suffix = a ? ie(a) : u || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = d ? ie(d) : g || ie("$t("), this.nestingSuffix = m ? ie(m) : v || ie(")"), this.nestingOptionsSeparator = b || ",", this.maxReplaces = P || 1e3, this.alwaysFormat = O !== void 0 ? O : !1, this.resetRegExp();
1231
1223
  }
1232
1224
  reset() {
1233
1225
  this.options && this.init(this.options);
@@ -1241,35 +1233,35 @@ class so {
1241
1233
  let o, s, a;
1242
1234
  const u = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (m) => {
1243
1235
  if (m.indexOf(this.formatSeparator) < 0) {
1244
- const E = Qt(t, u, m, this.options.keySeparator, this.options.ignoreJSONStructure);
1245
- return this.alwaysFormat ? this.format(E, void 0, r, {
1236
+ const O = en(t, u, m, this.options.keySeparator, this.options.ignoreJSONStructure);
1237
+ return this.alwaysFormat ? this.format(O, void 0, r, {
1246
1238
  ...i,
1247
1239
  ...t,
1248
1240
  interpolationkey: m
1249
- }) : E;
1241
+ }) : O;
1250
1242
  }
1251
- const v = m.split(this.formatSeparator), w = v.shift().trim(), C = v.join(this.formatSeparator).trim();
1252
- return this.format(Qt(t, u, w, this.options.keySeparator, this.options.ignoreJSONStructure), C, r, {
1243
+ const v = m.split(this.formatSeparator), b = v.shift().trim(), P = v.join(this.formatSeparator).trim();
1244
+ return this.format(en(t, u, b, this.options.keySeparator, this.options.ignoreJSONStructure), P, r, {
1253
1245
  ...i,
1254
1246
  ...t,
1255
- interpolationkey: w
1247
+ interpolationkey: b
1256
1248
  });
1257
1249
  };
1258
1250
  this.resetRegExp();
1259
1251
  const l = (i == null ? void 0 : i.missingInterpolationHandler) || this.options.missingInterpolationHandler, f = ((g = i == null ? void 0 : i.interpolation) == null ? void 0 : g.skipOnVariables) !== void 0 ? i.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
1260
1252
  return [{
1261
1253
  regex: this.regexpUnescape,
1262
- safeValue: (m) => ot(m)
1254
+ safeValue: (m) => st(m)
1263
1255
  }, {
1264
1256
  regex: this.regexp,
1265
- safeValue: (m) => this.escapeValue ? ot(this.escape(m)) : ot(m)
1257
+ safeValue: (m) => this.escapeValue ? st(this.escape(m)) : st(m)
1266
1258
  }].forEach((m) => {
1267
1259
  for (a = 0; o = m.regex.exec(e); ) {
1268
1260
  const v = o[1].trim();
1269
1261
  if (s = c(v), s === void 0)
1270
1262
  if (typeof l == "function") {
1271
- const C = l(e, o, i);
1272
- s = b(C) ? C : "";
1263
+ const P = l(e, o, i);
1264
+ s = S(P) ? P : "";
1273
1265
  } else if (i && Object.prototype.hasOwnProperty.call(i, v))
1274
1266
  s = "";
1275
1267
  else if (f) {
@@ -1277,9 +1269,9 @@ class so {
1277
1269
  continue;
1278
1270
  } else
1279
1271
  this.logger.warn(`missed to pass in variable ${v} for interpolating ${e}`), s = "";
1280
- else !b(s) && !this.useRawValueToEscape && (s = Vt(s));
1281
- const w = m.safeValue(s);
1282
- if (e = e.replace(o[0], w), f ? (m.regex.lastIndex += s.length, m.regex.lastIndex -= o[0].length) : m.regex.lastIndex = 0, a++, a >= this.maxReplaces)
1272
+ else !S(s) && !this.useRawValueToEscape && (s = Kt(s));
1273
+ const b = m.safeValue(s);
1274
+ if (e = e.replace(o[0], b), f ? (m.regex.lastIndex += s.length, m.regex.lastIndex -= o[0].length) : m.regex.lastIndex = 0, a++, a >= this.maxReplaces)
1283
1275
  break;
1284
1276
  }
1285
1277
  }), e;
@@ -1308,14 +1300,14 @@ class so {
1308
1300
  let u = [];
1309
1301
  s = {
1310
1302
  ...r
1311
- }, s = s.replace && !b(s.replace) ? s.replace : s, s.applyPostProcessor = !1, delete s.defaultValue;
1303
+ }, s = s.replace && !S(s.replace) ? s.replace : s, s.applyPostProcessor = !1, delete s.defaultValue;
1312
1304
  let c = !1;
1313
1305
  if (i[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(i[1])) {
1314
1306
  const l = i[1].split(this.formatSeparator).map((f) => f.trim());
1315
1307
  i[1] = l.shift(), u = l, c = !0;
1316
1308
  }
1317
- if (o = t(a.call(this, i[1].trim(), s), s), o && i[0] === e && !b(o)) return o;
1318
- b(o) || (o = Vt(o)), o || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`), o = ""), c && (o = u.reduce((l, f) => this.format(l, f, r.lng, {
1309
+ if (o = t(a.call(this, i[1].trim(), s), s), o && i[0] === e && !S(o)) return o;
1310
+ S(o) || (o = Kt(o)), o || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`), o = ""), c && (o = u.reduce((l, f) => this.format(l, f, r.lng, {
1319
1311
  ...r,
1320
1312
  interpolationkey: i[1].trim()
1321
1313
  }), o.trim())), e = e.replace(i[0], o), this.regexp.lastIndex = 0;
@@ -1323,7 +1315,7 @@ class so {
1323
1315
  return e;
1324
1316
  }
1325
1317
  }
1326
- const ao = (n) => {
1318
+ const wo = (n) => {
1327
1319
  let e = n.toLowerCase().trim();
1328
1320
  const t = {};
1329
1321
  if (n.indexOf("(") > -1) {
@@ -1341,7 +1333,7 @@ const ao = (n) => {
1341
1333
  formatName: e,
1342
1334
  formatOptions: t
1343
1335
  };
1344
- }, ne = (n) => {
1336
+ }, oe = (n) => {
1345
1337
  const e = {};
1346
1338
  return (t, r, i) => {
1347
1339
  let o = i;
@@ -1351,39 +1343,39 @@ const ao = (n) => {
1351
1343
  });
1352
1344
  const s = r + JSON.stringify(o);
1353
1345
  let a = e[s];
1354
- return a || (a = n(Me(r), i), e[s] = a), a(t);
1346
+ return a || (a = n(He(r), i), e[s] = a), a(t);
1355
1347
  };
1356
1348
  };
1357
- class uo {
1349
+ class bo {
1358
1350
  constructor() {
1359
1351
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1360
- this.logger = B.create("formatter"), this.options = e, this.formats = {
1361
- number: ne((t, r) => {
1352
+ this.logger = K.create("formatter"), this.options = e, this.formats = {
1353
+ number: oe((t, r) => {
1362
1354
  const i = new Intl.NumberFormat(t, {
1363
1355
  ...r
1364
1356
  });
1365
1357
  return (o) => i.format(o);
1366
1358
  }),
1367
- currency: ne((t, r) => {
1359
+ currency: oe((t, r) => {
1368
1360
  const i = new Intl.NumberFormat(t, {
1369
1361
  ...r,
1370
1362
  style: "currency"
1371
1363
  });
1372
1364
  return (o) => i.format(o);
1373
1365
  }),
1374
- datetime: ne((t, r) => {
1366
+ datetime: oe((t, r) => {
1375
1367
  const i = new Intl.DateTimeFormat(t, {
1376
1368
  ...r
1377
1369
  });
1378
1370
  return (o) => i.format(o);
1379
1371
  }),
1380
- relativetime: ne((t, r) => {
1372
+ relativetime: oe((t, r) => {
1381
1373
  const i = new Intl.RelativeTimeFormat(t, {
1382
1374
  ...r
1383
1375
  });
1384
1376
  return (o) => i.format(o, r.range || "day");
1385
1377
  }),
1386
- list: ne((t, r) => {
1378
+ list: oe((t, r) => {
1387
1379
  const i = new Intl.ListFormat(t, {
1388
1380
  ...r
1389
1381
  });
@@ -1401,7 +1393,7 @@ class uo {
1401
1393
  this.formats[e.toLowerCase().trim()] = t;
1402
1394
  }
1403
1395
  addCached(e, t) {
1404
- this.formats[e.toLowerCase().trim()] = ne(t);
1396
+ this.formats[e.toLowerCase().trim()] = oe(t);
1405
1397
  }
1406
1398
  format(e, t, r) {
1407
1399
  let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
@@ -1415,7 +1407,7 @@ class uo {
1415
1407
  const {
1416
1408
  formatName: c,
1417
1409
  formatOptions: l
1418
- } = ao(u);
1410
+ } = wo(u);
1419
1411
  if (this.formats[c]) {
1420
1412
  let d = a;
1421
1413
  try {
@@ -1435,14 +1427,14 @@ class uo {
1435
1427
  }, e);
1436
1428
  }
1437
1429
  }
1438
- const lo = (n, e) => {
1430
+ const So = (n, e) => {
1439
1431
  n.pending[e] !== void 0 && (delete n.pending[e], n.pendingCount--);
1440
1432
  };
1441
- class co extends Xe {
1433
+ class xo extends Ye {
1442
1434
  constructor(e, t, r) {
1443
1435
  var o, s;
1444
1436
  let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
1445
- super(), this.backend = e, this.store = t, this.services = r, this.languageUtils = r.languageUtils, this.options = i, this.logger = B.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = i.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = i.maxRetries >= 0 ? i.maxRetries : 5, this.retryTimeout = i.retryTimeout >= 1 ? i.retryTimeout : 350, this.state = {}, this.queue = [], (s = (o = this.backend) == null ? void 0 : o.init) == null || s.call(o, r, i.backend, i);
1437
+ super(), this.backend = e, this.store = t, this.services = r, this.languageUtils = r.languageUtils, this.options = i, this.logger = K.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = i.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = i.maxRetries >= 0 ? i.maxRetries : 5, this.retryTimeout = i.retryTimeout >= 1 ? i.retryTimeout : 350, this.state = {}, this.queue = [], (s = (o = this.backend) == null ? void 0 : o.init) == null || s.call(o, r, i.backend, i);
1446
1438
  }
1447
1439
  queueLoad(e, t, r, i) {
1448
1440
  const o = {}, s = {}, a = {}, u = {};
@@ -1472,7 +1464,7 @@ class co extends Xe {
1472
1464
  }), this.state[e] = t ? -1 : 2, t && r && (this.state[e] = 0);
1473
1465
  const a = {};
1474
1466
  this.queue.forEach((u) => {
1475
- Gi(u.loaded, [o], s), lo(u, e), t && u.errors.push(t), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((c) => {
1467
+ ao(u.loaded, [o], s), So(u, e), t && u.errors.push(t), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((c) => {
1476
1468
  a[c] || (a[c] = {});
1477
1469
  const l = u.loaded[c];
1478
1470
  l.length && l.forEach((f) => {
@@ -1524,7 +1516,7 @@ class co extends Xe {
1524
1516
  let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = arguments.length > 3 ? arguments[3] : void 0;
1525
1517
  if (!this.backend)
1526
1518
  return this.logger.warn("No backend was added via i18next.use. Will not load resources."), i && i();
1527
- b(e) && (e = this.languageUtils.toResolveHierarchy(e)), b(t) && (t = [t]);
1519
+ S(e) && (e = this.languageUtils.toResolveHierarchy(e)), S(t) && (t = [t]);
1528
1520
  const o = this.queueLoad(e, t, r, i);
1529
1521
  if (!o.toLoad.length)
1530
1522
  return o.pending.length || i(), null;
@@ -1564,7 +1556,7 @@ class co extends Xe {
1564
1556
  if (m.length < 6)
1565
1557
  try {
1566
1558
  let v;
1567
- m.length === 5 ? v = m(e, t, r, i, g) : v = m(e, t, r, i), v && typeof v.then == "function" ? v.then((w) => a(null, w)).catch(a) : a(null, v);
1559
+ m.length === 5 ? v = m(e, t, r, i, g) : v = m(e, t, r, i), v && typeof v.then == "function" ? v.then((b) => a(null, b)).catch(a) : a(null, v);
1568
1560
  } catch (v) {
1569
1561
  a(v);
1570
1562
  }
@@ -1575,7 +1567,7 @@ class co extends Xe {
1575
1567
  }
1576
1568
  }
1577
1569
  }
1578
- const Zt = () => ({
1570
+ const tn = () => ({
1579
1571
  debug: !1,
1580
1572
  initAsync: !0,
1581
1573
  ns: ["translation"],
@@ -1610,7 +1602,7 @@ const Zt = () => ({
1610
1602
  appendNamespaceToCIMode: !1,
1611
1603
  overloadTranslationOptionHandler: (n) => {
1612
1604
  let e = {};
1613
- if (typeof n[1] == "object" && (e = n[1]), b(n[1]) && (e.defaultValue = n[1]), b(n[2]) && (e.tDescription = n[2]), typeof n[2] == "object" || typeof n[3] == "object") {
1605
+ if (typeof n[1] == "object" && (e = n[1]), S(n[1]) && (e.defaultValue = n[1]), S(n[2]) && (e.tDescription = n[2]), typeof n[2] == "object" || typeof n[3] == "object") {
1614
1606
  const t = n[3] || n[2];
1615
1607
  Object.keys(t).forEach((r) => {
1616
1608
  e[r] = t[r];
@@ -1631,21 +1623,21 @@ const Zt = () => ({
1631
1623
  maxReplaces: 1e3,
1632
1624
  skipOnVariables: !0
1633
1625
  }
1634
- }), en = (n) => {
1626
+ }), nn = (n) => {
1635
1627
  var e, t;
1636
- return b(n.ns) && (n.ns = [n.ns]), b(n.fallbackLng) && (n.fallbackLng = [n.fallbackLng]), b(n.fallbackNS) && (n.fallbackNS = [n.fallbackNS]), ((t = (e = n.supportedLngs) == null ? void 0 : e.indexOf) == null ? void 0 : t.call(e, "cimode")) < 0 && (n.supportedLngs = n.supportedLngs.concat(["cimode"])), typeof n.initImmediate == "boolean" && (n.initAsync = n.initImmediate), n;
1637
- }, Re = () => {
1638
- }, fo = (n) => {
1628
+ return S(n.ns) && (n.ns = [n.ns]), S(n.fallbackLng) && (n.fallbackLng = [n.fallbackLng]), S(n.fallbackNS) && (n.fallbackNS = [n.fallbackNS]), ((t = (e = n.supportedLngs) == null ? void 0 : e.indexOf) == null ? void 0 : t.call(e, "cimode")) < 0 && (n.supportedLngs = n.supportedLngs.concat(["cimode"])), typeof n.initImmediate == "boolean" && (n.initAsync = n.initImmediate), n;
1629
+ }, Ne = () => {
1630
+ }, Eo = (n) => {
1639
1631
  Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((t) => {
1640
1632
  typeof n[t] == "function" && (n[t] = n[t].bind(n));
1641
1633
  });
1642
1634
  };
1643
- class Se extends Xe {
1635
+ class Oe extends Ye {
1644
1636
  constructor() {
1645
1637
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
1646
- if (super(), this.options = en(e), this.services = {}, this.logger = B, this.modules = {
1638
+ if (super(), this.options = nn(e), this.services = {}, this.logger = K, this.modules = {
1647
1639
  external: []
1648
- }, fo(this), t && !this.isInitialized && !e.isClone) {
1640
+ }, Eo(this), t && !this.isInitialized && !e.isClone) {
1649
1641
  if (!this.options.initAsync)
1650
1642
  return this.init(e, t), this;
1651
1643
  setTimeout(() => {
@@ -1656,42 +1648,42 @@ class Se extends Xe {
1656
1648
  init() {
1657
1649
  var e = this;
1658
1650
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
1659
- this.isInitializing = !0, typeof t == "function" && (r = t, t = {}), t.defaultNS == null && t.ns && (b(t.ns) ? t.defaultNS = t.ns : t.ns.indexOf("translation") < 0 && (t.defaultNS = t.ns[0]));
1660
- const i = Zt();
1651
+ this.isInitializing = !0, typeof t == "function" && (r = t, t = {}), t.defaultNS == null && t.ns && (S(t.ns) ? t.defaultNS = t.ns : t.ns.indexOf("translation") < 0 && (t.defaultNS = t.ns[0]));
1652
+ const i = tn();
1661
1653
  this.options = {
1662
1654
  ...i,
1663
1655
  ...this.options,
1664
- ...en(t)
1656
+ ...nn(t)
1665
1657
  }, this.options.interpolation = {
1666
1658
  ...i.interpolation,
1667
1659
  ...this.options.interpolation
1668
1660
  }, t.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = t.keySeparator), t.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = t.nsSeparator);
1669
1661
  const o = (l) => l ? typeof l == "function" ? new l() : l : null;
1670
1662
  if (!this.options.isClone) {
1671
- this.modules.logger ? B.init(o(this.modules.logger), this.options) : B.init(null, this.options);
1663
+ this.modules.logger ? K.init(o(this.modules.logger), this.options) : K.init(null, this.options);
1672
1664
  let l;
1673
- this.modules.formatter ? l = this.modules.formatter : l = uo;
1674
- const f = new Xt(this.options);
1675
- this.store = new zt(this.options.resources, this.options);
1665
+ this.modules.formatter ? l = this.modules.formatter : l = bo;
1666
+ const f = new Gt(this.options);
1667
+ this.store = new Jt(this.options.resources, this.options);
1676
1668
  const d = this.services;
1677
- d.logger = B, d.resourceStore = this.store, d.languageUtils = f, d.pluralResolver = new oo(f, {
1669
+ d.logger = K, d.resourceStore = this.store, d.languageUtils = f, d.pluralResolver = new yo(f, {
1678
1670
  prepend: this.options.pluralSeparator,
1679
1671
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
1680
- }), l && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (d.formatter = o(l), d.formatter.init(d, this.options), this.options.interpolation.format = d.formatter.format.bind(d.formatter)), d.interpolator = new so(this.options), d.utils = {
1672
+ }), l && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (d.formatter = o(l), d.formatter.init(d, this.options), this.options.interpolation.format = d.formatter.format.bind(d.formatter)), d.interpolator = new vo(this.options), d.utils = {
1681
1673
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
1682
- }, d.backendConnector = new co(o(this.modules.backend), d.resourceStore, d, this.options), d.backendConnector.on("*", function(g) {
1683
- for (var m = arguments.length, v = new Array(m > 1 ? m - 1 : 0), w = 1; w < m; w++)
1684
- v[w - 1] = arguments[w];
1674
+ }, d.backendConnector = new xo(o(this.modules.backend), d.resourceStore, d, this.options), d.backendConnector.on("*", function(g) {
1675
+ for (var m = arguments.length, v = new Array(m > 1 ? m - 1 : 0), b = 1; b < m; b++)
1676
+ v[b - 1] = arguments[b];
1685
1677
  e.emit(g, ...v);
1686
- }), this.modules.languageDetector && (d.languageDetector = o(this.modules.languageDetector), d.languageDetector.init && d.languageDetector.init(d, this.options.detection, this.options)), this.modules.i18nFormat && (d.i18nFormat = o(this.modules.i18nFormat), d.i18nFormat.init && d.i18nFormat.init(this)), this.translator = new Ve(this.services, this.options), this.translator.on("*", function(g) {
1687
- for (var m = arguments.length, v = new Array(m > 1 ? m - 1 : 0), w = 1; w < m; w++)
1688
- v[w - 1] = arguments[w];
1678
+ }), this.modules.languageDetector && (d.languageDetector = o(this.modules.languageDetector), d.languageDetector.init && d.languageDetector.init(d, this.options.detection, this.options)), this.modules.i18nFormat && (d.i18nFormat = o(this.modules.i18nFormat), d.i18nFormat.init && d.i18nFormat.init(this)), this.translator = new Be(this.services, this.options), this.translator.on("*", function(g) {
1679
+ for (var m = arguments.length, v = new Array(m > 1 ? m - 1 : 0), b = 1; b < m; b++)
1680
+ v[b - 1] = arguments[b];
1689
1681
  e.emit(g, ...v);
1690
1682
  }), this.modules.external.forEach((g) => {
1691
1683
  g.init && g.init(this);
1692
1684
  });
1693
1685
  }
1694
- if (this.format = this.options.interpolation.format, r || (r = Re), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
1686
+ if (this.format = this.options.interpolation.format, r || (r = Ne), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
1695
1687
  const l = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
1696
1688
  l.length > 0 && l[0] !== "dev" && (this.options.lng = l[0]);
1697
1689
  }
@@ -1704,7 +1696,7 @@ class Se extends Xe {
1704
1696
  return e.store[l](...arguments), e;
1705
1697
  };
1706
1698
  });
1707
- const u = ge(), c = () => {
1699
+ const u = ve(), c = () => {
1708
1700
  const l = (f, d) => {
1709
1701
  this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), u.resolve(d), r(f, d);
1710
1702
  };
@@ -1715,8 +1707,8 @@ class Se extends Xe {
1715
1707
  }
1716
1708
  loadResources(e) {
1717
1709
  var o, s;
1718
- let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Re;
1719
- const i = b(e) ? e : this.language;
1710
+ let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Ne;
1711
+ const i = S(e) ? e : this.language;
1720
1712
  if (typeof e == "function" && (r = e), !this.options.resources || this.options.partialBundledLanguages) {
1721
1713
  if ((i == null ? void 0 : i.toLowerCase()) === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return r();
1722
1714
  const a = [], u = (c) => {
@@ -1732,15 +1724,15 @@ class Se extends Xe {
1732
1724
  r(null);
1733
1725
  }
1734
1726
  reloadResources(e, t, r) {
1735
- const i = ge();
1736
- return typeof e == "function" && (r = e, e = void 0), typeof t == "function" && (r = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), r || (r = Re), this.services.backendConnector.reload(e, t, (o) => {
1727
+ const i = ve();
1728
+ return typeof e == "function" && (r = e, e = void 0), typeof t == "function" && (r = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), r || (r = Ne), this.services.backendConnector.reload(e, t, (o) => {
1737
1729
  i.resolve(), r(o);
1738
1730
  }), i;
1739
1731
  }
1740
1732
  use(e) {
1741
1733
  if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
1742
1734
  if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
1743
- return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && Vn.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
1735
+ return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && Kn.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
1744
1736
  }
1745
1737
  setResolvedLanguage(e) {
1746
1738
  if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1))
@@ -1755,7 +1747,7 @@ class Se extends Xe {
1755
1747
  changeLanguage(e, t) {
1756
1748
  var r = this;
1757
1749
  this.isLanguageChangingTo = e;
1758
- const i = ge();
1750
+ const i = ve();
1759
1751
  this.emit("languageChanging", e);
1760
1752
  const o = (u) => {
1761
1753
  this.language = u, this.languages = this.services.languageUtils.toResolveHierarchy(u), this.resolvedLanguage = void 0, this.setResolvedLanguage(u);
@@ -1768,7 +1760,7 @@ class Se extends Xe {
1768
1760
  }, a = (u) => {
1769
1761
  var l, f;
1770
1762
  !e && !u && this.services.languageDetector && (u = []);
1771
- const c = b(u) ? u : this.services.languageUtils.getBestMatchFromCodes(u);
1763
+ const c = S(u) ? u : this.services.languageUtils.getBestMatchFromCodes(u);
1772
1764
  c && (this.language || o(c), this.translator.language || this.translator.changeLanguage(c), (f = (l = this.services.languageDetector) == null ? void 0 : l.cacheUserLanguage) == null || f.call(l, c)), this.loadResources(c, (d) => {
1773
1765
  s(d, c);
1774
1766
  });
@@ -1792,7 +1784,7 @@ class Se extends Xe {
1792
1784
  let g;
1793
1785
  return u.keyPrefix && Array.isArray(s) ? g = s.map((m) => `${u.keyPrefix}${d}${m}`) : g = u.keyPrefix ? `${u.keyPrefix}${d}${s}` : s, i.t(g, u);
1794
1786
  };
1795
- return b(e) ? o.lng = e : o.lngs = e, o.ns = t, o.keyPrefix = r, o;
1787
+ return S(e) ? o.lng = e : o.lngs = e, o.ns = t, o.keyPrefix = r, o;
1796
1788
  }
1797
1789
  t() {
1798
1790
  var i;
@@ -1828,16 +1820,16 @@ class Se extends Xe {
1828
1820
  return !!(this.hasResourceBundle(r, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || s(r, e) && (!i || s(o, e)));
1829
1821
  }
1830
1822
  loadNamespaces(e, t) {
1831
- const r = ge();
1832
- return this.options.ns ? (b(e) && (e = [e]), e.forEach((i) => {
1823
+ const r = ve();
1824
+ return this.options.ns ? (S(e) && (e = [e]), e.forEach((i) => {
1833
1825
  this.options.ns.indexOf(i) < 0 && this.options.ns.push(i);
1834
1826
  }), this.loadResources((i) => {
1835
1827
  r.resolve(), t && t(i);
1836
1828
  }), r) : (t && t(), Promise.resolve());
1837
1829
  }
1838
1830
  loadLanguages(e, t) {
1839
- const r = ge();
1840
- b(e) && (e = [e]);
1831
+ const r = ve();
1832
+ S(e) && (e = [e]);
1841
1833
  const i = this.options.preload || [], o = e.filter((s) => i.indexOf(s) < 0 && this.services.languageUtils.isSupportedCode(s));
1842
1834
  return o.length ? (this.options.preload = i.concat(o), this.loadResources((s) => {
1843
1835
  r.resolve(), t && t(s);
@@ -1846,22 +1838,22 @@ class Se extends Xe {
1846
1838
  dir(e) {
1847
1839
  var i, o;
1848
1840
  if (e || (e = this.resolvedLanguage || (((i = this.languages) == null ? void 0 : i.length) > 0 ? this.languages[0] : this.language)), !e) return "rtl";
1849
- const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], r = ((o = this.services) == null ? void 0 : o.languageUtils) || new Xt(Zt());
1841
+ const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], r = ((o = this.services) == null ? void 0 : o.languageUtils) || new Gt(tn());
1850
1842
  return t.indexOf(r.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
1851
1843
  }
1852
1844
  static createInstance() {
1853
1845
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
1854
- return new Se(e, t);
1846
+ return new Oe(e, t);
1855
1847
  }
1856
1848
  cloneInstance() {
1857
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Re;
1849
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Ne;
1858
1850
  const r = e.forkResourceStore;
1859
1851
  r && delete e.forkResourceStore;
1860
1852
  const i = {
1861
1853
  ...this.options,
1862
1854
  ...e,
1863
1855
  isClone: !0
1864
- }, o = new Se(i);
1856
+ }, o = new Oe(i);
1865
1857
  if ((e.debug !== void 0 || e.prefix !== void 0) && (o.logger = o.logger.clone(e)), ["store", "services", "language"].forEach((a) => {
1866
1858
  o[a] = this[a];
1867
1859
  }), o.services = {
@@ -1874,9 +1866,9 @@ class Se extends Xe {
1874
1866
  }, Object.keys(u[c]).reduce((l, f) => (l[f] = {
1875
1867
  ...u[c][f]
1876
1868
  }, l), {})), {});
1877
- o.store = new zt(a, i), o.services.resourceStore = o.store;
1869
+ o.store = new Jt(a, i), o.services.resourceStore = o.store;
1878
1870
  }
1879
- return o.translator = new Ve(o.services, i), o.translator.on("*", function(a) {
1871
+ return o.translator = new Be(o.services, i), o.translator.on("*", function(a) {
1880
1872
  for (var u = arguments.length, c = new Array(u > 1 ? u - 1 : 0), l = 1; l < u; l++)
1881
1873
  c[l - 1] = arguments[l];
1882
1874
  o.emit(a, ...c);
@@ -1894,20 +1886,20 @@ class Se extends Xe {
1894
1886
  };
1895
1887
  }
1896
1888
  }
1897
- const re = Se.createInstance();
1898
- re.createInstance = Se.createInstance;
1889
+ const se = Oe.createInstance();
1890
+ se.createInstance = Oe.createInstance;
1899
1891
  const {
1900
- slice: po,
1901
- forEach: ho
1892
+ slice: Oo,
1893
+ forEach: To
1902
1894
  } = [];
1903
- function go(n) {
1904
- return ho.call(po.call(arguments, 1), (e) => {
1895
+ function Lo(n) {
1896
+ return To.call(Oo.call(arguments, 1), (e) => {
1905
1897
  if (e)
1906
1898
  for (const t in e)
1907
1899
  n[t] === void 0 && (n[t] = e[t]);
1908
1900
  }), n;
1909
1901
  }
1910
- const tn = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, mo = function(n, e) {
1902
+ const rn = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Co = function(n, e) {
1911
1903
  const r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
1912
1904
  path: "/"
1913
1905
  }, i = encodeURIComponent(e);
@@ -1918,12 +1910,12 @@ const tn = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, mo = function(n, e) {
1918
1910
  o += `; Max-Age=${Math.floor(s)}`;
1919
1911
  }
1920
1912
  if (r.domain) {
1921
- if (!tn.test(r.domain))
1913
+ if (!rn.test(r.domain))
1922
1914
  throw new TypeError("option domain is invalid");
1923
1915
  o += `; Domain=${r.domain}`;
1924
1916
  }
1925
1917
  if (r.path) {
1926
- if (!tn.test(r.path))
1918
+ if (!rn.test(r.path))
1927
1919
  throw new TypeError("option path is invalid");
1928
1920
  o += `; Path=${r.path}`;
1929
1921
  }
@@ -1950,13 +1942,13 @@ const tn = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, mo = function(n, e) {
1950
1942
  throw new TypeError("option sameSite is invalid");
1951
1943
  }
1952
1944
  return o;
1953
- }, nn = {
1945
+ }, on = {
1954
1946
  create(n, e, t, r) {
1955
1947
  let i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
1956
1948
  path: "/",
1957
1949
  sameSite: "strict"
1958
1950
  };
1959
- t && (i.expires = /* @__PURE__ */ new Date(), i.expires.setTime(i.expires.getTime() + t * 60 * 1e3)), r && (i.domain = r), document.cookie = mo(n, encodeURIComponent(e), i);
1951
+ t && (i.expires = /* @__PURE__ */ new Date(), i.expires.setTime(i.expires.getTime() + t * 60 * 1e3)), r && (i.domain = r), document.cookie = Co(n, encodeURIComponent(e), i);
1960
1952
  },
1961
1953
  read(n) {
1962
1954
  const e = `${n}=`, t = document.cookie.split(";");
@@ -1971,7 +1963,7 @@ const tn = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, mo = function(n, e) {
1971
1963
  this.create(n, "", -1);
1972
1964
  }
1973
1965
  };
1974
- var yo = {
1966
+ var Po = {
1975
1967
  name: "cookie",
1976
1968
  // Deconstruct the options object and extract the lookupCookie property
1977
1969
  lookup(n) {
@@ -1979,7 +1971,7 @@ var yo = {
1979
1971
  lookupCookie: e
1980
1972
  } = n;
1981
1973
  if (e && typeof document < "u")
1982
- return nn.read(e) || void 0;
1974
+ return on.read(e) || void 0;
1983
1975
  },
1984
1976
  // Deconstruct the options object and extract the lookupCookie, cookieMinutes, cookieDomain, and cookieOptions properties
1985
1977
  cacheUserLanguage(n, e) {
@@ -1989,9 +1981,9 @@ var yo = {
1989
1981
  cookieDomain: i,
1990
1982
  cookieOptions: o
1991
1983
  } = e;
1992
- t && typeof document < "u" && nn.create(t, n, r, i, o);
1984
+ t && typeof document < "u" && on.create(t, n, r, i, o);
1993
1985
  }
1994
- }, vo = {
1986
+ }, ko = {
1995
1987
  name: "querystring",
1996
1988
  // Deconstruct the options object and extract the lookupQuerystring property
1997
1989
  lookup(n) {
@@ -2013,26 +2005,26 @@ var yo = {
2013
2005
  return t;
2014
2006
  }
2015
2007
  };
2016
- let me = null;
2017
- const rn = () => {
2018
- if (me !== null) return me;
2008
+ let we = null;
2009
+ const sn = () => {
2010
+ if (we !== null) return we;
2019
2011
  try {
2020
- me = window !== "undefined" && window.localStorage !== null;
2012
+ we = window !== "undefined" && window.localStorage !== null;
2021
2013
  const n = "i18next.translate.boo";
2022
2014
  window.localStorage.setItem(n, "foo"), window.localStorage.removeItem(n);
2023
2015
  } catch {
2024
- me = !1;
2016
+ we = !1;
2025
2017
  }
2026
- return me;
2018
+ return we;
2027
2019
  };
2028
- var wo = {
2020
+ var Io = {
2029
2021
  name: "localStorage",
2030
2022
  // Deconstruct the options object and extract the lookupLocalStorage property
2031
2023
  lookup(n) {
2032
2024
  let {
2033
2025
  lookupLocalStorage: e
2034
2026
  } = n;
2035
- if (e && rn())
2027
+ if (e && sn())
2036
2028
  return window.localStorage.getItem(e) || void 0;
2037
2029
  },
2038
2030
  // Deconstruct the options object and extract the lookupLocalStorage property
@@ -2040,37 +2032,37 @@ var wo = {
2040
2032
  let {
2041
2033
  lookupLocalStorage: t
2042
2034
  } = e;
2043
- t && rn() && window.localStorage.setItem(t, n);
2035
+ t && sn() && window.localStorage.setItem(t, n);
2044
2036
  }
2045
2037
  };
2046
- let ye = null;
2047
- const on = () => {
2048
- if (ye !== null) return ye;
2038
+ let be = null;
2039
+ const an = () => {
2040
+ if (be !== null) return be;
2049
2041
  try {
2050
- ye = window !== "undefined" && window.sessionStorage !== null;
2042
+ be = window !== "undefined" && window.sessionStorage !== null;
2051
2043
  const n = "i18next.translate.boo";
2052
2044
  window.sessionStorage.setItem(n, "foo"), window.sessionStorage.removeItem(n);
2053
2045
  } catch {
2054
- ye = !1;
2046
+ be = !1;
2055
2047
  }
2056
- return ye;
2048
+ return be;
2057
2049
  };
2058
- var bo = {
2050
+ var Ro = {
2059
2051
  name: "sessionStorage",
2060
2052
  lookup(n) {
2061
2053
  let {
2062
2054
  lookupSessionStorage: e
2063
2055
  } = n;
2064
- if (e && on())
2056
+ if (e && an())
2065
2057
  return window.sessionStorage.getItem(e) || void 0;
2066
2058
  },
2067
2059
  cacheUserLanguage(n, e) {
2068
2060
  let {
2069
2061
  lookupSessionStorage: t
2070
2062
  } = e;
2071
- t && on() && window.sessionStorage.setItem(t, n);
2063
+ t && an() && window.sessionStorage.setItem(t, n);
2072
2064
  }
2073
- }, So = {
2065
+ }, Ao = {
2074
2066
  name: "navigator",
2075
2067
  lookup(n) {
2076
2068
  const e = [];
@@ -2087,7 +2079,7 @@ var bo = {
2087
2079
  }
2088
2080
  return e.length > 0 ? e : void 0;
2089
2081
  }
2090
- }, xo = {
2082
+ }, $o = {
2091
2083
  name: "htmlTag",
2092
2084
  // Deconstruct the options object and extract the htmlTag property
2093
2085
  lookup(n) {
@@ -2097,7 +2089,7 @@ var bo = {
2097
2089
  const r = e || (typeof document < "u" ? document.documentElement : null);
2098
2090
  return r && typeof r.getAttribute == "function" && (t = r.getAttribute("lang")), t;
2099
2091
  }
2100
- }, Oo = {
2092
+ }, No = {
2101
2093
  name: "path",
2102
2094
  // Deconstruct the options object and extract the lookupFromPathIndex property
2103
2095
  lookup(n) {
@@ -2109,7 +2101,7 @@ var bo = {
2109
2101
  const t = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
2110
2102
  return Array.isArray(t) ? (i = t[typeof e == "number" ? e : 0]) == null ? void 0 : i.replace("/", "") : void 0;
2111
2103
  }
2112
- }, Eo = {
2104
+ }, jo = {
2113
2105
  name: "subdomain",
2114
2106
  lookup(n) {
2115
2107
  var i, o;
@@ -2121,15 +2113,15 @@ var bo = {
2121
2113
  return r[t];
2122
2114
  }
2123
2115
  };
2124
- let Bn = !1;
2116
+ let qn = !1;
2125
2117
  try {
2126
- Bn = !0;
2118
+ qn = !0;
2127
2119
  } catch {
2128
2120
  }
2129
- const Kn = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
2130
- Bn || Kn.splice(1, 1);
2131
- const To = () => ({
2132
- order: Kn,
2121
+ const zn = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
2122
+ qn || zn.splice(1, 1);
2123
+ const Do = () => ({
2124
+ order: zn,
2133
2125
  lookupQuerystring: "lng",
2134
2126
  lookupCookie: "i18next",
2135
2127
  lookupLocalStorage: "i18nextLng",
@@ -2141,7 +2133,7 @@ const To = () => ({
2141
2133
  // cookieDomain: 'myDomain'
2142
2134
  convertDetectedLanguage: (n) => n
2143
2135
  });
2144
- class qn {
2136
+ class Wn {
2145
2137
  constructor(e) {
2146
2138
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2147
2139
  this.type = "languageDetector", this.detectors = {}, this.init(e, t);
@@ -2150,7 +2142,7 @@ class qn {
2150
2142
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
2151
2143
  languageUtils: {}
2152
2144
  }, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2153
- this.services = e, this.options = go(t, this.options || {}, To()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (i) => i.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = r, this.addDetector(yo), this.addDetector(vo), this.addDetector(wo), this.addDetector(bo), this.addDetector(So), this.addDetector(xo), this.addDetector(Oo), this.addDetector(Eo);
2145
+ this.services = e, this.options = Lo(t, this.options || {}, Do()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (i) => i.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = r, this.addDetector(Po), this.addDetector(ko), this.addDetector(Io), this.addDetector(Ro), this.addDetector(Ao), this.addDetector($o), this.addDetector(No), this.addDetector(jo);
2154
2146
  }
2155
2147
  addDetector(e) {
2156
2148
  return this.detectors[e.name] = e, this;
@@ -2171,55 +2163,55 @@ class qn {
2171
2163
  }));
2172
2164
  }
2173
2165
  }
2174
- qn.type = "languageDetector";
2175
- function Lo(n, e) {
2166
+ Wn.type = "languageDetector";
2167
+ function Uo(n, e) {
2176
2168
  if (!(n instanceof e)) throw new TypeError("Cannot call a class as a function");
2177
2169
  }
2178
- function xe(n) {
2170
+ function Te(n) {
2179
2171
  "@babel/helpers - typeof";
2180
- return xe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2172
+ return Te = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2181
2173
  return typeof e;
2182
2174
  } : function(e) {
2183
2175
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2184
- }, xe(n);
2176
+ }, Te(n);
2185
2177
  }
2186
- function Co(n, e) {
2187
- if (xe(n) != "object" || !n) return n;
2178
+ function Fo(n, e) {
2179
+ if (Te(n) != "object" || !n) return n;
2188
2180
  var t = n[Symbol.toPrimitive];
2189
2181
  if (t !== void 0) {
2190
2182
  var r = t.call(n, e);
2191
- if (xe(r) != "object") return r;
2183
+ if (Te(r) != "object") return r;
2192
2184
  throw new TypeError("@@toPrimitive must return a primitive value.");
2193
2185
  }
2194
2186
  return String(n);
2195
2187
  }
2196
- function ko(n) {
2197
- var e = Co(n, "string");
2198
- return xe(e) == "symbol" ? e : e + "";
2188
+ function _o(n) {
2189
+ var e = Fo(n, "string");
2190
+ return Te(e) == "symbol" ? e : e + "";
2199
2191
  }
2200
- function Po(n, e) {
2192
+ function Mo(n, e) {
2201
2193
  for (var t = 0; t < e.length; t++) {
2202
2194
  var r = e[t];
2203
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(n, ko(r.key), r);
2195
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(n, _o(r.key), r);
2204
2196
  }
2205
2197
  }
2206
- function Io(n, e, t) {
2207
- return e && Po(n.prototype, e), Object.defineProperty(n, "prototype", {
2198
+ function Ho(n, e, t) {
2199
+ return e && Mo(n.prototype, e), Object.defineProperty(n, "prototype", {
2208
2200
  writable: !1
2209
2201
  }), n;
2210
2202
  }
2211
- var zn = [], Ro = zn.forEach, $o = zn.slice;
2212
- function Ao(n) {
2213
- return Ro.call($o.call(arguments, 1), function(e) {
2203
+ var Jn = [], Vo = Jn.forEach, Bo = Jn.slice;
2204
+ function Ko(n) {
2205
+ return Vo.call(Bo.call(arguments, 1), function(e) {
2214
2206
  if (e)
2215
2207
  for (var t in e)
2216
2208
  n[t] === void 0 && (n[t] = e[t]);
2217
2209
  }), n;
2218
2210
  }
2219
- function No(n) {
2211
+ function qo(n) {
2220
2212
  return n ? typeof n == "function" ? new n() : n : null;
2221
2213
  }
2222
- function jo() {
2214
+ function zo() {
2223
2215
  return {
2224
2216
  handleEmptyResourcesAsFailed: !0,
2225
2217
  cacheHitMode: "none"
@@ -2227,7 +2219,7 @@ function jo() {
2227
2219
  // refreshExpirationTime: 60 * 60 * 1000
2228
2220
  };
2229
2221
  }
2230
- function sn(n, e, t, r) {
2222
+ function un(n, e, t, r) {
2231
2223
  var i = n.read.bind(n);
2232
2224
  if (i.length === 2) {
2233
2225
  try {
@@ -2242,17 +2234,17 @@ function sn(n, e, t, r) {
2242
2234
  }
2243
2235
  i(e, t, r);
2244
2236
  }
2245
- var Wn = /* @__PURE__ */ function() {
2237
+ var Xn = /* @__PURE__ */ (function() {
2246
2238
  function n(e) {
2247
2239
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2248
- Lo(this, n), this.backends = [], this.type = "backend", this.allOptions = r, this.init(e, t);
2240
+ Uo(this, n), this.backends = [], this.type = "backend", this.allOptions = r, this.init(e, t);
2249
2241
  }
2250
- return Io(n, [{
2242
+ return Ho(n, [{
2251
2243
  key: "init",
2252
2244
  value: function(t) {
2253
2245
  var r = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2254
- this.services = t, this.options = Ao(i, this.options || {}, jo()), this.allOptions = o, this.options.backends && this.options.backends.forEach(function(s, a) {
2255
- r.backends[a] = r.backends[a] || No(s), r.backends[a].init(t, r.options.backendOptions && r.options.backendOptions[a] || {}, o);
2246
+ this.services = t, this.options = Ko(i, this.options || {}, zo()), this.allOptions = o, this.options.backends && this.options.backends.forEach(function(s, a) {
2247
+ r.backends[a] = r.backends[a] || qo(s), r.backends[a].init(t, r.options.backendOptions && r.options.backendOptions[a] || {}, o);
2256
2248
  }), this.services && this.options.reloadInterval && setInterval(function() {
2257
2249
  return r.reload();
2258
2250
  }, this.options.reloadInterval);
@@ -2263,13 +2255,13 @@ var Wn = /* @__PURE__ */ function() {
2263
2255
  var o = this, s = this.backends.length, a = function c(l) {
2264
2256
  if (l >= s) return i(new Error("non of the backend loaded data", !0));
2265
2257
  var f = l === s - 1, d = o.options.handleEmptyResourcesAsFailed && !f ? 0 : -1, g = o.backends[l];
2266
- g.read ? sn(g, t, r, function(m, v, w) {
2258
+ g.read ? un(g, t, r, function(m, v, b) {
2267
2259
  if (!m && v && Object.keys(v).length > d) {
2268
2260
  if (i(null, v, l), u(l - 1, v), g.save && o.options.cacheHitMode && ["refresh", "refreshAndUpdateStore"].indexOf(o.options.cacheHitMode) > -1) {
2269
- if (w && o.options.refreshExpirationTime && w + o.options.refreshExpirationTime > Date.now()) return;
2270
- var C = o.backends[l + 1];
2271
- C && C.read && sn(C, t, r, function(E, L) {
2272
- E || L && (Object.keys(L).length <= d || (u(l, L), o.options.cacheHitMode === "refreshAndUpdateStore" && o.services && o.services.resourceStore && o.services.resourceStore.addResourceBundle(t, r, L)));
2261
+ if (b && o.options.refreshExpirationTime && b + o.options.refreshExpirationTime > Date.now()) return;
2262
+ var P = o.backends[l + 1];
2263
+ P && P.read && un(P, t, r, function(O, C) {
2264
+ O || C && (Object.keys(C).length <= d || (u(l, C), o.options.cacheHitMode === "refreshAndUpdateStore" && o.services && o.services.resourceStore && o.services.resourceStore.addResourceBundle(t, r, C)));
2273
2265
  });
2274
2266
  }
2275
2267
  } else
@@ -2329,26 +2321,26 @@ var Wn = /* @__PURE__ */ function() {
2329
2321
  }
2330
2322
  }
2331
2323
  }]), n;
2332
- }();
2333
- Wn.type = "backend";
2334
- function gt(n) {
2324
+ })();
2325
+ Xn.type = "backend";
2326
+ function yt(n) {
2335
2327
  "@babel/helpers - typeof";
2336
- return gt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2328
+ return yt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2337
2329
  return typeof e;
2338
2330
  } : function(e) {
2339
2331
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2340
- }, gt(n);
2332
+ }, yt(n);
2341
2333
  }
2342
- function Jn() {
2343
- return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : gt(XMLHttpRequest)) === "object";
2334
+ function Yn() {
2335
+ return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : yt(XMLHttpRequest)) === "object";
2344
2336
  }
2345
- function Uo(n) {
2337
+ function Wo(n) {
2346
2338
  return !!n && typeof n.then == "function";
2347
2339
  }
2348
- function Do(n) {
2349
- return Uo(n) ? n : Promise.resolve(n);
2340
+ function Jo(n) {
2341
+ return Wo(n) ? n : Promise.resolve(n);
2350
2342
  }
2351
- function an(n, e) {
2343
+ function ln(n, e) {
2352
2344
  var t = Object.keys(n);
2353
2345
  if (Object.getOwnPropertySymbols) {
2354
2346
  var r = Object.getOwnPropertySymbols(n);
@@ -2358,59 +2350,59 @@ function an(n, e) {
2358
2350
  }
2359
2351
  return t;
2360
2352
  }
2361
- function un(n) {
2353
+ function cn(n) {
2362
2354
  for (var e = 1; e < arguments.length; e++) {
2363
2355
  var t = arguments[e] != null ? arguments[e] : {};
2364
- e % 2 ? an(Object(t), !0).forEach(function(r) {
2365
- Fo(n, r, t[r]);
2366
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : an(Object(t)).forEach(function(r) {
2356
+ e % 2 ? ln(Object(t), !0).forEach(function(r) {
2357
+ Xo(n, r, t[r]);
2358
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : ln(Object(t)).forEach(function(r) {
2367
2359
  Object.defineProperty(n, r, Object.getOwnPropertyDescriptor(t, r));
2368
2360
  });
2369
2361
  }
2370
2362
  return n;
2371
2363
  }
2372
- function Fo(n, e, t) {
2373
- return (e = _o(e)) in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n;
2364
+ function Xo(n, e, t) {
2365
+ return (e = Yo(e)) in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n;
2374
2366
  }
2375
- function _o(n) {
2376
- var e = Mo(n, "string");
2377
- return Z(e) == "symbol" ? e : e + "";
2367
+ function Yo(n) {
2368
+ var e = Go(n, "string");
2369
+ return ne(e) == "symbol" ? e : e + "";
2378
2370
  }
2379
- function Mo(n, e) {
2380
- if (Z(n) != "object" || !n) return n;
2371
+ function Go(n, e) {
2372
+ if (ne(n) != "object" || !n) return n;
2381
2373
  var t = n[Symbol.toPrimitive];
2382
2374
  if (t !== void 0) {
2383
2375
  var r = t.call(n, e);
2384
- if (Z(r) != "object") return r;
2376
+ if (ne(r) != "object") return r;
2385
2377
  throw new TypeError("@@toPrimitive must return a primitive value.");
2386
2378
  }
2387
2379
  return (e === "string" ? String : Number)(n);
2388
2380
  }
2389
- function Z(n) {
2381
+ function ne(n) {
2390
2382
  "@babel/helpers - typeof";
2391
- return Z = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2383
+ return ne = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2392
2384
  return typeof e;
2393
2385
  } : function(e) {
2394
2386
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2395
- }, Z(n);
2396
- }
2397
- var J = typeof fetch == "function" ? fetch : void 0;
2398
- typeof global < "u" && global.fetch ? J = global.fetch : typeof window < "u" && window.fetch && (J = window.fetch);
2399
- var Oe;
2400
- Jn() && (typeof global < "u" && global.XMLHttpRequest ? Oe = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (Oe = window.XMLHttpRequest));
2401
- var Be;
2402
- typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ? Be = global.ActiveXObject : typeof window < "u" && window.ActiveXObject && (Be = window.ActiveXObject));
2403
- typeof J != "function" && (J = void 0);
2404
- if (!J && !Oe && !Be)
2387
+ }, ne(n);
2388
+ }
2389
+ var G = typeof fetch == "function" ? fetch : void 0;
2390
+ typeof global < "u" && global.fetch ? G = global.fetch : typeof window < "u" && window.fetch && (G = window.fetch);
2391
+ var Le;
2392
+ Yn() && (typeof global < "u" && global.XMLHttpRequest ? Le = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (Le = window.XMLHttpRequest));
2393
+ var Ke;
2394
+ typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ? Ke = global.ActiveXObject : typeof window < "u" && window.ActiveXObject && (Ke = window.ActiveXObject));
2395
+ typeof G != "function" && (G = void 0);
2396
+ if (!G && !Le && !Ke)
2405
2397
  try {
2406
- import("./browser-ponyfill-CvzSbL_o.js").then((n) => n.b).then(function(n) {
2407
- J = n.default;
2398
+ import("./browser-ponyfill-DXriyH6D.js").then((n) => n.b).then(function(n) {
2399
+ G = n.default;
2408
2400
  }).catch(function() {
2409
2401
  });
2410
2402
  } catch {
2411
2403
  }
2412
- var mt = function(e, t) {
2413
- if (t && Z(t) === "object") {
2404
+ var vt = function(e, t) {
2405
+ if (t && ne(t) === "object") {
2414
2406
  var r = "";
2415
2407
  for (var i in t)
2416
2408
  r += "&" + encodeURIComponent(i) + "=" + encodeURIComponent(t[i]);
@@ -2418,7 +2410,7 @@ var mt = function(e, t) {
2418
2410
  e = e + (e.indexOf("?") !== -1 ? "&" : "?") + r.slice(1);
2419
2411
  }
2420
2412
  return e;
2421
- }, ln = function(e, t, r, i) {
2413
+ }, fn = function(e, t, r, i) {
2422
2414
  var o = function(u) {
2423
2415
  if (!u.ok) return r(u.statusText || "Error", {
2424
2416
  status: u.status
@@ -2437,33 +2429,33 @@ var mt = function(e, t) {
2437
2429
  return;
2438
2430
  }
2439
2431
  }
2440
- typeof fetch == "function" ? fetch(e, t).then(o).catch(r) : J(e, t).then(o).catch(r);
2441
- }, cn = !1, Ho = function(e, t, r, i) {
2442
- e.queryStringParams && (t = mt(t, e.queryStringParams));
2443
- var o = un({}, typeof e.customHeaders == "function" ? e.customHeaders() : e.customHeaders);
2432
+ typeof fetch == "function" ? fetch(e, t).then(o).catch(r) : G(e, t).then(o).catch(r);
2433
+ }, dn = !1, Qo = function(e, t, r, i) {
2434
+ e.queryStringParams && (t = vt(t, e.queryStringParams));
2435
+ var o = cn({}, typeof e.customHeaders == "function" ? e.customHeaders() : e.customHeaders);
2444
2436
  typeof window > "u" && typeof global < "u" && typeof global.process < "u" && global.process.versions && global.process.versions.node && (o["User-Agent"] = "i18next-http-backend (node/".concat(global.process.version, "; ").concat(global.process.platform, " ").concat(global.process.arch, ")")), r && (o["Content-Type"] = "application/json");
2445
- var s = typeof e.requestOptions == "function" ? e.requestOptions(r) : e.requestOptions, a = un({
2437
+ var s = typeof e.requestOptions == "function" ? e.requestOptions(r) : e.requestOptions, a = cn({
2446
2438
  method: r ? "POST" : "GET",
2447
2439
  body: r ? e.stringify(r) : void 0,
2448
2440
  headers: o
2449
- }, cn ? {} : s), u = typeof e.alternateFetch == "function" && e.alternateFetch.length >= 1 ? e.alternateFetch : void 0;
2441
+ }, dn ? {} : s), u = typeof e.alternateFetch == "function" && e.alternateFetch.length >= 1 ? e.alternateFetch : void 0;
2450
2442
  try {
2451
- ln(t, a, i, u);
2443
+ fn(t, a, i, u);
2452
2444
  } catch (c) {
2453
2445
  if (!s || Object.keys(s).length === 0 || !c.message || c.message.indexOf("not implemented") < 0)
2454
2446
  return i(c);
2455
2447
  try {
2456
2448
  Object.keys(s).forEach(function(l) {
2457
2449
  delete a[l];
2458
- }), ln(t, a, i, u), cn = !0;
2450
+ }), fn(t, a, i, u), dn = !0;
2459
2451
  } catch (l) {
2460
2452
  i(l);
2461
2453
  }
2462
2454
  }
2463
- }, Vo = function(e, t, r, i) {
2464
- r && Z(r) === "object" && (r = mt("", r).slice(1)), e.queryStringParams && (t = mt(t, e.queryStringParams));
2455
+ }, Zo = function(e, t, r, i) {
2456
+ r && ne(r) === "object" && (r = vt("", r).slice(1)), e.queryStringParams && (t = vt(t, e.queryStringParams));
2465
2457
  try {
2466
- var o = Oe ? new Oe() : new Be("MSXML2.XMLHTTP.3.0");
2458
+ var o = Le ? new Le() : new Ke("MSXML2.XMLHTTP.3.0");
2467
2459
  o.open(r ? "POST" : "GET", t, 1), e.crossDomain || o.setRequestHeader("X-Requested-With", "XMLHttpRequest"), o.withCredentials = !!e.withCredentials, r && o.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), o.overrideMimeType && o.overrideMimeType("application/json");
2468
2460
  var s = e.customHeaders;
2469
2461
  if (s = typeof s == "function" ? s() : s, s)
@@ -2477,23 +2469,23 @@ var mt = function(e, t) {
2477
2469
  }, o.send(r);
2478
2470
  } catch (u) {
2479
2471
  }
2480
- }, Bo = function(e, t, r, i) {
2472
+ }, es = function(e, t, r, i) {
2481
2473
  if (typeof r == "function" && (i = r, r = void 0), i = i || function() {
2482
- }, J && t.indexOf("file:") !== 0)
2483
- return Ho(e, t, r, i);
2484
- if (Jn() || typeof ActiveXObject == "function")
2485
- return Vo(e, t, r, i);
2474
+ }, G && t.indexOf("file:") !== 0)
2475
+ return Qo(e, t, r, i);
2476
+ if (Yn() || typeof ActiveXObject == "function")
2477
+ return Zo(e, t, r, i);
2486
2478
  i(new Error("No fetch and no xhr implementation found!"));
2487
2479
  };
2488
- function ue(n) {
2480
+ function fe(n) {
2489
2481
  "@babel/helpers - typeof";
2490
- return ue = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2482
+ return fe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2491
2483
  return typeof e;
2492
2484
  } : function(e) {
2493
2485
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2494
- }, ue(n);
2486
+ }, fe(n);
2495
2487
  }
2496
- function fn(n, e) {
2488
+ function pn(n, e) {
2497
2489
  var t = Object.keys(n);
2498
2490
  if (Object.getOwnPropertySymbols) {
2499
2491
  var r = Object.getOwnPropertySymbols(n);
@@ -2503,47 +2495,47 @@ function fn(n, e) {
2503
2495
  }
2504
2496
  return t;
2505
2497
  }
2506
- function st(n) {
2498
+ function at(n) {
2507
2499
  for (var e = 1; e < arguments.length; e++) {
2508
2500
  var t = arguments[e] != null ? arguments[e] : {};
2509
- e % 2 ? fn(Object(t), !0).forEach(function(r) {
2510
- Xn(n, r, t[r]);
2511
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : fn(Object(t)).forEach(function(r) {
2501
+ e % 2 ? pn(Object(t), !0).forEach(function(r) {
2502
+ Gn(n, r, t[r]);
2503
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : pn(Object(t)).forEach(function(r) {
2512
2504
  Object.defineProperty(n, r, Object.getOwnPropertyDescriptor(t, r));
2513
2505
  });
2514
2506
  }
2515
2507
  return n;
2516
2508
  }
2517
- function Ko(n, e) {
2509
+ function ts(n, e) {
2518
2510
  if (!(n instanceof e)) throw new TypeError("Cannot call a class as a function");
2519
2511
  }
2520
- function qo(n, e) {
2512
+ function ns(n, e) {
2521
2513
  for (var t = 0; t < e.length; t++) {
2522
2514
  var r = e[t];
2523
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(n, Gn(r.key), r);
2515
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(n, Qn(r.key), r);
2524
2516
  }
2525
2517
  }
2526
- function zo(n, e, t) {
2527
- return e && qo(n.prototype, e), Object.defineProperty(n, "prototype", { writable: !1 }), n;
2518
+ function rs(n, e, t) {
2519
+ return e && ns(n.prototype, e), Object.defineProperty(n, "prototype", { writable: !1 }), n;
2528
2520
  }
2529
- function Xn(n, e, t) {
2530
- return (e = Gn(e)) in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n;
2521
+ function Gn(n, e, t) {
2522
+ return (e = Qn(e)) in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n;
2531
2523
  }
2532
- function Gn(n) {
2533
- var e = Wo(n, "string");
2534
- return ue(e) == "symbol" ? e : e + "";
2524
+ function Qn(n) {
2525
+ var e = is(n, "string");
2526
+ return fe(e) == "symbol" ? e : e + "";
2535
2527
  }
2536
- function Wo(n, e) {
2537
- if (ue(n) != "object" || !n) return n;
2528
+ function is(n, e) {
2529
+ if (fe(n) != "object" || !n) return n;
2538
2530
  var t = n[Symbol.toPrimitive];
2539
2531
  if (t !== void 0) {
2540
2532
  var r = t.call(n, e);
2541
- if (ue(r) != "object") return r;
2533
+ if (fe(r) != "object") return r;
2542
2534
  throw new TypeError("@@toPrimitive must return a primitive value.");
2543
2535
  }
2544
2536
  return String(n);
2545
2537
  }
2546
- var Jo = function() {
2538
+ var os = function() {
2547
2539
  return {
2548
2540
  loadPath: "/locales/{{lng}}/{{ns}}.json",
2549
2541
  addPath: "/locales/add/{{lng}}/{{ns}}",
@@ -2552,12 +2544,12 @@ var Jo = function() {
2552
2544
  },
2553
2545
  stringify: JSON.stringify,
2554
2546
  parsePayload: function(t, r, i) {
2555
- return Xn({}, r, i || "");
2547
+ return Gn({}, r, i || "");
2556
2548
  },
2557
2549
  parseLoadPayload: function(t, r) {
2558
2550
  },
2559
- request: Bo,
2560
- reloadInterval: typeof window < "u" ? !1 : 60 * 60 * 1e3,
2551
+ request: es,
2552
+ reloadInterval: typeof window < "u" ? !1 : 3600 * 1e3,
2561
2553
  customHeaders: {},
2562
2554
  queryStringParams: {},
2563
2555
  crossDomain: !1,
@@ -2569,20 +2561,20 @@ var Jo = function() {
2569
2561
  cache: "default"
2570
2562
  }
2571
2563
  };
2572
- }, Yn = function() {
2564
+ }, Zn = (function() {
2573
2565
  function n(e) {
2574
2566
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2575
- Ko(this, n), this.services = e, this.options = t, this.allOptions = r, this.type = "backend", this.init(e, t, r);
2567
+ ts(this, n), this.services = e, this.options = t, this.allOptions = r, this.type = "backend", this.init(e, t, r);
2576
2568
  }
2577
- return zo(n, [{
2569
+ return rs(n, [{
2578
2570
  key: "init",
2579
2571
  value: function(t) {
2580
2572
  var r = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2581
- if (this.services = t, this.options = st(st(st({}, Jo()), this.options || {}), i), this.allOptions = o, this.services && this.options.reloadInterval) {
2573
+ if (this.services = t, this.options = at(at(at({}, os()), this.options || {}), i), this.allOptions = o, this.services && this.options.reloadInterval) {
2582
2574
  var s = setInterval(function() {
2583
2575
  return r.reload();
2584
2576
  }, this.options.reloadInterval);
2585
- ue(s) === "object" && typeof s.unref == "function" && s.unref();
2577
+ fe(s) === "object" && typeof s.unref == "function" && s.unref();
2586
2578
  }
2587
2579
  }
2588
2580
  }, {
@@ -2599,7 +2591,7 @@ var Jo = function() {
2599
2591
  key: "_readAny",
2600
2592
  value: function(t, r, i, o, s) {
2601
2593
  var a = this, u = this.options.loadPath;
2602
- typeof this.options.loadPath == "function" && (u = this.options.loadPath(t, i)), u = Do(u), u.then(function(c) {
2594
+ typeof this.options.loadPath == "function" && (u = this.options.loadPath(t, i)), u = Jo(u), u.then(function(c) {
2603
2595
  if (!c) return s(null, {});
2604
2596
  var l = a.services.interpolator.interpolate(c, {
2605
2597
  lng: t.join("+"),
@@ -2616,8 +2608,8 @@ var Jo = function() {
2616
2608
  if (f && (f.status >= 500 && f.status < 600 || !f.status)) return r("failed loading " + t + "; status code: " + f.status, !0);
2617
2609
  if (f && f.status >= 400 && f.status < 500) return r("failed loading " + t + "; status code: " + f.status, !1);
2618
2610
  if (!f && l && l.message) {
2619
- var d = l.message.toLowerCase(), g = ["failed", "fetch", "network", "load"].find(function(w) {
2620
- return d.indexOf(w) > -1;
2611
+ var d = l.message.toLowerCase(), g = ["failed", "fetch", "network", "load"].find(function(b) {
2612
+ return d.indexOf(b) > -1;
2621
2613
  });
2622
2614
  if (g)
2623
2615
  return r("failed loading " + t + ": " + l.message, !0);
@@ -2647,8 +2639,8 @@ var Jo = function() {
2647
2639
  lng: d,
2648
2640
  ns: r
2649
2641
  });
2650
- a.options.request(a.options, m, u, function(v, w) {
2651
- c += 1, l.push(v), f.push(w), c === t.length && typeof s == "function" && s(l, f);
2642
+ a.options.request(a.options, m, u, function(v, b) {
2643
+ c += 1, l.push(v), f.push(b), c === t.length && typeof s == "function" && s(l, f);
2652
2644
  });
2653
2645
  });
2654
2646
  }
@@ -2676,9 +2668,9 @@ var Jo = function() {
2676
2668
  }
2677
2669
  }
2678
2670
  }]);
2679
- }();
2680
- Yn.type = "backend";
2681
- var Xo = function(e) {
2671
+ })();
2672
+ Zn.type = "backend";
2673
+ var ss = function(e) {
2682
2674
  return {
2683
2675
  type: "backend",
2684
2676
  init: function(r, i, o) {
@@ -2703,13 +2695,13 @@ var Xo = function(e) {
2703
2695
  }
2704
2696
  };
2705
2697
  };
2706
- const Go = {
2698
+ const as = {
2707
2699
  debug: !1,
2708
- fallbackLng: kn.enum.en,
2700
+ fallbackLng: In.enum.en,
2709
2701
  namespace: "translation",
2710
- supportedLngs: Object.values(Cn),
2702
+ supportedLngs: Object.values(kn),
2711
2703
  nonExplicitSupportedLngs: !1
2712
- }, Yo = {
2704
+ }, us = {
2713
2705
  react: {
2714
2706
  useSuspense: !0
2715
2707
  },
@@ -2717,111 +2709,189 @@ const Go = {
2717
2709
  order: ["navigator", "htmlTag", "path", "subdomain"],
2718
2710
  caches: ["localStorage", "cookie"]
2719
2711
  }
2720
- }, dn = (n, e) => {
2712
+ }, hn = (n, e) => {
2721
2713
  const t = import.meta.url.split("/").pop();
2722
2714
  return `${import.meta.url.replace(`/${t}`, "")}/locales/${n}/${e}.json`;
2723
2715
  };
2724
- function yt(n) {
2725
- return re.isInitialized || (re.use(Wn).use(
2726
- new qn(null, {
2716
+ function wt(n) {
2717
+ return se.isInitialized || (se.use(Xn).use(
2718
+ new Wn(null, {
2727
2719
  order: ["cookie", "localStorage", "navigator"],
2728
2720
  lookupQuerystring: "lng",
2729
2721
  lookupCookie: "i18next",
2730
2722
  lookupLocalStorage: "i18nextLng",
2731
2723
  caches: ["localStorage", "cookie"]
2732
2724
  })
2733
- ).use(Vi).init({
2734
- ...Go,
2725
+ ).use(Zi).init({
2726
+ ...as,
2735
2727
  backend: {
2736
2728
  backends: [
2737
- Yn,
2729
+ Zn,
2738
2730
  // if a namespace can't be loaded via normal http-backend loadPath, then the inMemoryLocalBackend will try to return the correct resources
2739
2731
  // with dynamic import, you have to use the "default" key of the module ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#importing_defaults )
2740
- Xo(
2741
- (e, t) => import(dn(e, t))
2732
+ ss(
2733
+ (e, t) => import(hn(e, t))
2742
2734
  )
2743
2735
  ],
2744
2736
  backendOptions: [
2745
2737
  {
2746
- loadPath: dn("{{lng}}", "{{ns}}")
2738
+ loadPath: hn("{{lng}}", "{{ns}}")
2747
2739
  }
2748
2740
  ]
2749
2741
  },
2750
- ...Yo
2751
- }), re.on("loaded", () => {
2752
- n == null || n(re);
2753
- })), re;
2742
+ ...us
2743
+ }), se.on("loaded", () => {
2744
+ n == null || n(se);
2745
+ })), se;
2754
2746
  }
2755
- const Qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2747
+ const ls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2756
2748
  __proto__: null,
2757
- default: yt,
2758
- initializeI18n: yt
2749
+ default: wt,
2750
+ initializeI18n: wt
2759
2751
  }, Symbol.toStringTag, { value: "Module" }));
2760
- function xa(n) {
2761
- const e = yt();
2762
- return Wi("translation", { i18n: e, ...n });
2763
- }
2764
- const Et = 60 * 1e3, ke = Et, Qn = ke * 2, Zn = ke * 3, Tt = ke * 15, Ge = Et, Ye = Ge * 2, er = Ge * 3, tr = Et * 15;
2765
- var nr = /* @__PURE__ */ ((n) => (n.SelectAll = "SelectAll", n))(nr || {}), rr = /* @__PURE__ */ ((n) => (n.Text = "text", n.Image = "image", n))(rr || {});
2766
- S();
2767
- const Zo = "___", es = _r((n) => {
2768
- const e = n.split(Zo);
2752
+ function Aa(n) {
2753
+ const e = wt();
2754
+ return io("translation", { i18n: e, ...n });
2755
+ }
2756
+ const Lt = 60 * 1e3, Re = Lt, er = Re * 2, tr = Re * 3, Ct = Re * 15, Ge = Lt, Qe = Ge * 2, nr = Ge * 3, rr = Lt * 15;
2757
+ var ir = /* @__PURE__ */ ((n) => (n.SelectAll = "SelectAll", n))(ir || {}), or = /* @__PURE__ */ ((n) => (n.Text = "text", n.Image = "image", n))(or || {});
2758
+ w();
2759
+ const cs = "___", fs = Br((n) => {
2760
+ const e = n.split(cs);
2769
2761
  try {
2770
2762
  return e.length === 4;
2771
2763
  } catch {
2772
2764
  return !1;
2773
2765
  }
2774
- }), ts = y({
2775
- captchaId: Ue([p(), At()]),
2776
- captchaContentId: Ue([p(), At()]),
2766
+ }), ds = y({
2767
+ captchaId: _e([p(), jt()]),
2768
+ captchaContentId: _e([p(), jt()]),
2777
2769
  salt: p().min(34),
2778
- solution: S().array().optional(),
2779
- unlabelled: S().array().optional(),
2780
- timeLimit: S().optional()
2781
- }), ir = y({
2770
+ solution: w().array().optional(),
2771
+ unlabelled: w().array().optional(),
2772
+ timeLimit: w().optional()
2773
+ }), sr = y({
2782
2774
  hash: p(),
2783
2775
  data: p(),
2784
- type: Le(rr)
2785
- }), or = ir.extend({
2776
+ type: ke(or)
2777
+ }), ar = sr.extend({
2786
2778
  hash: p()
2787
- }), ns = or.extend({
2779
+ }), ps = ar.extend({
2788
2780
  label: p()
2789
- }), rs = or.extend({
2781
+ }), hs = ar.extend({
2790
2782
  label: p().optional()
2791
- }), sr = ts.extend({
2792
- items: K(ir),
2783
+ }), ur = ds.extend({
2784
+ items: q(sr),
2793
2785
  target: p()
2794
- }), is = sr.extend({
2786
+ }), gs = ur.extend({
2795
2787
  solution: p().array().optional(),
2796
2788
  unlabelled: p().array().optional()
2797
- }), os = is.extend({
2798
- solution: S().array().optional(),
2799
- unlabelled: S().array().optional()
2800
- }), ss = K(sr);
2801
- K(
2802
- os
2789
+ }), ms = gs.extend({
2790
+ solution: w().array().optional(),
2791
+ unlabelled: w().array().optional()
2792
+ }), ys = q(ur);
2793
+ q(
2794
+ ms
2803
2795
  );
2804
- const ar = y({
2796
+ const lr = y({
2805
2797
  captchaId: p(),
2806
2798
  captchaContentId: p(),
2807
2799
  solution: p().array(),
2808
- salt: p().min(34)
2800
+ salt: p()
2809
2801
  });
2810
- K(ar);
2802
+ q(lr);
2811
2803
  y({
2812
- items: K(rs)
2804
+ items: q(hs)
2813
2805
  });
2814
2806
  y({
2815
- items: K(ns)
2807
+ items: q(ps)
2816
2808
  });
2817
2809
  y({
2818
- captchas: ss,
2819
- format: Le(nr)
2810
+ captchas: ys,
2811
+ format: ke(ir)
2820
2812
  });
2821
2813
  y({
2822
- labels: K(p())
2814
+ labels: q(p())
2823
2815
  });
2824
- var as = Object.defineProperty, us = (n, e, t) => e in n ? as(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, pn = (n, e, t) => (us(n, typeof e != "symbol" ? e + "" : e, t), t), at = {
2816
+ const $a = (n) => new Promise((e) => setTimeout(e, n)), Na = (n, e) => {
2817
+ let t = 0;
2818
+ const r = "0".repeat(e);
2819
+ for (; ; ) {
2820
+ const i = new TextEncoder().encode(t + n);
2821
+ if (vs(Vr(i)).startsWith(r))
2822
+ return t;
2823
+ t += 1;
2824
+ }
2825
+ }, vs = (n) => Array.from(n).map((e) => e.toString(16).padStart(2, "0")).join("");
2826
+ function W(n, e, t) {
2827
+ if (n.length === 0)
2828
+ throw new Error("Array is empty");
2829
+ if (!Number.isFinite(e))
2830
+ throw new Error(`Index ${e} is not a finite number`);
2831
+ if (e > 0 ? e = e % n.length : e = Math.ceil(Math.abs(e) / n.length) * n.length + e, e >= n.length)
2832
+ throw new Error(`Index ${e} larger than array length ${n.length}`);
2833
+ if (e < 0)
2834
+ throw new Error(`Index ${e} smaller than 0`);
2835
+ return n[e];
2836
+ }
2837
+ const ws = (n) => Array.isArray(n) && n !== null, bs = "2.5.5", qe = new Array(256), cr = new Array(256 * 256);
2838
+ for (let n = 0; n < 256; n++)
2839
+ qe[n] = n.toString(16).padStart(2, "0");
2840
+ for (let n = 0; n < 256; n++) {
2841
+ const e = n << 8;
2842
+ for (let t = 0; t < 256; t++)
2843
+ cr[e | t] = qe[n] + qe[t];
2844
+ }
2845
+ function ut(n, e) {
2846
+ const t = n.length % 2 | 0, r = n.length - t | 0;
2847
+ for (let i = 0; i < r; i += 2)
2848
+ e += cr[n[i] << 8 | n[i + 1]];
2849
+ return t && (e += qe[n[r] | 0]), e;
2850
+ }
2851
+ function Ze(n, e = -1, t = !0) {
2852
+ const r = t ? "0x" : "";
2853
+ if (!(n != null && n.length))
2854
+ return r;
2855
+ if (e > 0) {
2856
+ const i = Math.ceil(e / 8);
2857
+ if (n.length > i)
2858
+ return `${ut(n.subarray(0, i / 2), r)}…${ut(n.subarray(n.length - i / 2), "")}`;
2859
+ }
2860
+ return ut(n, r);
2861
+ }
2862
+ const ja = (n) => ws(n) ? Ze(new Uint8Array(n)) : n.toString(), Da = (n, e) => {
2863
+ const t = n.replace(/^0x/, "").split("");
2864
+ let r = 0, i = t.length - 1;
2865
+ const o = e.length.toString(16).padStart(2, "0");
2866
+ t[r++] = W(o, 0), t[r++] = W(o, 1);
2867
+ const s = [], a = [];
2868
+ let u = 0;
2869
+ for (const c of e) {
2870
+ const l = c.toString(16), f = l.length;
2871
+ u += f;
2872
+ const d = i - f + 1;
2873
+ s.push(d), a.push(f);
2874
+ for (let g = 0; g < f; g++)
2875
+ t[d + g] = W(l, g);
2876
+ i -= f;
2877
+ }
2878
+ if (u > n.length)
2879
+ throw new Error(
2880
+ `Hex data length ${u} exceeds length of hex string ${t.length}`
2881
+ );
2882
+ for (let c = 0; c < e.length; c++) {
2883
+ const l = W(s, c).toString(16).padStart(2, "0");
2884
+ u += l.length;
2885
+ const f = W(a, c).toString(16).padStart(2, "0");
2886
+ if (u += f.length, u > n.length)
2887
+ throw new Error(
2888
+ `Hex data length ${u} exceeds length of hex string ${t.length}`
2889
+ );
2890
+ t[r++] = W(l, 0), t[r++] = W(l, 1), t[r++] = W(f, 0), t[r++] = W(f, 1);
2891
+ }
2892
+ return `0x${t.join("")}`;
2893
+ };
2894
+ var Ss = Object.defineProperty, xs = (n, e, t) => e in n ? Ss(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, gn = (n, e, t) => (xs(n, typeof e != "symbol" ? e + "" : e, t), t), lt = {
2825
2895
  0: 0,
2826
2896
  1: 1,
2827
2897
  2: 2,
@@ -2845,24 +2915,24 @@ var as = Object.defineProperty, us = (n, e, t) => e in n ? as(n, e, { enumerable
2845
2915
  E: 14,
2846
2916
  F: 15
2847
2917
  };
2848
- function ls(n) {
2918
+ function Es(n) {
2849
2919
  const e = n.length % 2, t = (n[1] === "x" ? 2 : 0) + e, r = (n.length - t) / 2 + e, i = new Uint8Array(r);
2850
- e && (i[0] = 0 | at[n[2]]);
2920
+ e && (i[0] = 0 | lt[n[2]]);
2851
2921
  for (let o = 0; o < r; ) {
2852
- const s = t + o * 2, a = at[n[s]], u = at[n[s + 1]];
2922
+ const s = t + o * 2, a = lt[n[s]], u = lt[n[s + 1]];
2853
2923
  i[e + o++] = a << 4 | u;
2854
2924
  }
2855
2925
  return i;
2856
2926
  }
2857
- var hn = class extends Uint8Array {
2927
+ var mn = class extends Uint8Array {
2858
2928
  constructor(n) {
2859
- super(n), pn(this, "i", 0), pn(this, "v"), this.v = new DataView(n);
2929
+ super(n), gn(this, "i", 0), gn(this, "v"), this.v = new DataView(n);
2860
2930
  }
2861
- }, ee = (n) => (e) => n(e instanceof hn ? e : new hn(e instanceof Uint8Array ? e.buffer : typeof e == "string" ? ls(e).buffer : e)), Qe = (n) => {
2931
+ }, re = (n) => (e) => n(e instanceof mn ? e : new mn(e instanceof Uint8Array ? e.buffer : typeof e == "string" ? Es(e).buffer : e)), et = (n) => {
2862
2932
  const e = n.length;
2863
2933
  let t = 0;
2864
2934
  for (let i = 0; i < e; i++)
2865
- t += n[i].byteLength;
2935
+ t += n[i].length;
2866
2936
  const r = new Uint8Array(t);
2867
2937
  for (let i = 0, o = 0; i < e; i++) {
2868
2938
  const s = n[i];
@@ -2870,7 +2940,7 @@ var hn = class extends Uint8Array {
2870
2940
  }
2871
2941
  return r;
2872
2942
  };
2873
- function gn(n, e) {
2943
+ function yn(n, e) {
2874
2944
  const t = Object.keys(n), r = t.length, i = {};
2875
2945
  for (let o = 0; o < r; o++) {
2876
2946
  const s = t[o];
@@ -2878,120 +2948,117 @@ function gn(n, e) {
2878
2948
  }
2879
2949
  return i;
2880
2950
  }
2881
- var U = (n, e) => {
2951
+ var D = (n, e) => {
2882
2952
  const t = [n, e];
2883
2953
  return t.enc = n, t.dec = e, t;
2884
- }, ur = (n, e) => (t) => n(e(t)), lr = (n, e) => (t) => e(n(t)), cs = ([n, e], t, r) => U(ur(n, t), lr(e, r));
2885
- function fs(n, e) {
2886
- return ee((t) => {
2954
+ }, fr = (n, e) => (t) => n(e(t)), dr = (n, e) => (t) => e(n(t)), Os = ([n, e], t, r) => D(fr(n, t), dr(e, r));
2955
+ function Ts(n, e) {
2956
+ return re((t) => {
2887
2957
  const r = t.v[e](t.i, !0);
2888
2958
  return t.i += n, r;
2889
2959
  });
2890
2960
  }
2891
- function ds(n, e) {
2961
+ function Ls(n, e) {
2892
2962
  return (t) => {
2893
2963
  const r = new Uint8Array(n);
2894
2964
  return new DataView(r.buffer)[e](0, t, !0), r;
2895
2965
  };
2896
2966
  }
2897
- function X(n, e, t) {
2898
- return U(ds(n, t), fs(n, e));
2967
+ function Q(n, e, t) {
2968
+ return D(Ls(n, t), Ts(n, e));
2899
2969
  }
2900
- var le = X(1, "getUint8", "setUint8"), Ke = X(2, "getUint16", "setUint16"), Ee = X(4, "getUint32", "setUint32"), cr = X(8, "getBigUint64", "setBigUint64");
2901
- X(1, "getInt8", "setInt8");
2902
- X(2, "getInt16", "setInt16");
2903
- X(4, "getInt32", "setInt32");
2904
- X(8, "getBigInt64", "setBigInt64");
2905
- var fr = (n) => {
2970
+ var de = Q(1, "getUint8", "setUint8"), ze = Q(2, "getUint16", "setUint16"), Ce = Q(4, "getUint32", "setUint32"), pr = Q(8, "getBigUint64", "setBigUint64");
2971
+ Q(1, "getInt8", "setInt8");
2972
+ Q(2, "getInt16", "setInt16");
2973
+ Q(4, "getInt32", "setInt32");
2974
+ Q(8, "getBigInt64", "setBigInt64");
2975
+ var hr = (n) => {
2906
2976
  const e = new Uint8Array(16), t = new DataView(e.buffer);
2907
2977
  return t.setBigInt64(0, n, !0), t.setBigInt64(8, n >> 64n, !0), e;
2908
- }, dr = (n) => ee((e) => {
2978
+ }, gr = (n) => re((e) => {
2909
2979
  const { v: t, i: r } = e, i = t.getBigUint64(r, !0), o = t[n](r + 8, !0);
2910
2980
  return e.i += 16, o << 64n | i;
2911
2981
  });
2912
- U(fr, dr("getBigUint64"));
2913
- U(fr, dr("getBigInt64"));
2914
- var pr = (n) => {
2982
+ D(hr, gr("getBigUint64"));
2983
+ D(hr, gr("getBigInt64"));
2984
+ var mr = (n) => {
2915
2985
  const e = new Uint8Array(32), t = new DataView(e.buffer);
2916
2986
  return t.setBigInt64(0, n, !0), t.setBigInt64(8, n >> 64n, !0), t.setBigInt64(16, n >> 128n, !0), t.setBigInt64(24, n >> 192n, !0), e;
2917
- }, hr = (n) => ee((e) => {
2987
+ }, yr = (n) => re((e) => {
2918
2988
  let t = e.v.getBigUint64(e.i, !0);
2919
2989
  return e.i += 8, t |= e.v.getBigUint64(e.i, !0) << 64n, e.i += 8, t |= e.v.getBigUint64(e.i, !0) << 128n, e.i += 8, t |= e.v[n](e.i, !0) << 192n, e.i += 8, t;
2920
2990
  });
2921
- U(pr, hr("getBigUint64"));
2922
- U(pr, hr("getBigInt64"));
2923
- var gr = cs(le, (n) => n ? 1 : 0, Boolean), ps = [le[1], Ke[1], Ee[1]], hs = ee((n) => {
2991
+ D(mr, yr("getBigUint64"));
2992
+ D(mr, yr("getBigInt64"));
2993
+ Os(de, (n) => n ? 1 : 0, Boolean);
2994
+ var Cs = [de[1], ze[1], Ce[1]], Ps = re((n) => {
2924
2995
  const e = n[n.i], t = e & 3;
2925
2996
  if (t < 3)
2926
- return ps[t](n) >>> 2;
2997
+ return Cs[t](n) >>> 2;
2927
2998
  const r = (e >>> 2) + 4;
2928
2999
  n.i++;
2929
3000
  let i = 0n;
2930
3001
  const o = r / 8 | 0;
2931
3002
  let s = 0n;
2932
3003
  for (let u = 0; u < o; u++)
2933
- i = cr[1](n) << s | i, s += 64n;
3004
+ i = pr[1](n) << s | i, s += 64n;
2934
3005
  let a = r % 8;
2935
- return a > 3 && (i = BigInt(Ee[1](n)) << s | i, s += 32n, a -= 4), a > 1 && (i = BigInt(Ke[1](n)) << s | i, s += 16n, a -= 2), a && (i = BigInt(le[1](n)) << s | i), i;
2936
- }), gs = 1n << 56n, ms = 1 << 24, ys = 256, vs = 4294967295n, ws = 64, bs = 16384, Ss = 1 << 30, xs = (n) => {
3006
+ return a > 3 && (i = BigInt(Ce[1](n)) << s | i, s += 32n, a -= 4), a > 1 && (i = BigInt(ze[1](n)) << s | i, s += 16n, a -= 2), a && (i = BigInt(de[1](n)) << s | i), i;
3007
+ }), ks = 1n << 56n, Is = 1 << 24, Rs = 256, As = 4294967295n, $s = 64, Ns = 16384, js = 1 << 30, Ds = (n) => {
2937
3008
  if (n < 0)
2938
3009
  throw new Error(`Wrong compact input (${n})`);
2939
3010
  const e = Number(n) << 2;
2940
- if (n < ws)
2941
- return le[0](e);
2942
- if (n < bs)
2943
- return Ke[0](e | 1);
2944
- if (n < Ss)
2945
- return Ee[0](e | 2);
3011
+ if (n < $s)
3012
+ return de[0](e);
3013
+ if (n < Ns)
3014
+ return ze[0](e | 1);
3015
+ if (n < js)
3016
+ return Ce[0](e | 2);
2946
3017
  let t = [new Uint8Array(1)], r = BigInt(n);
2947
- for (; r >= gs; )
2948
- t.push(cr[0](r)), r >>= 64n;
2949
- r >= ms && (t.push(Ee[0](Number(r & vs))), r >>= 32n);
3018
+ for (; r >= ks; )
3019
+ t.push(pr[0](r)), r >>= 64n;
3020
+ r >= Is && (t.push(Ce[0](Number(r & As))), r >>= 32n);
2950
3021
  let i = Number(r);
2951
- i >= ys && (t.push(Ke[0](i)), i >>= 16), i && t.push(le[0](i));
2952
- const o = Qe(t);
3022
+ i >= Rs && (t.push(ze[0](i)), i >>= 16), i && t.push(de[0](i));
3023
+ const o = et(t);
2953
3024
  return o[0] = o.length - 5 << 2 | 3, o;
2954
- }, mr = U(xs, hs), Os = new TextEncoder(), Es = (n) => {
2955
- const e = Os.encode(n);
2956
- return Qe([mr.enc(e.length), e]);
2957
- }, Ts = new TextDecoder(), Ls = ee((n) => {
2958
- let e = mr.dec(n);
3025
+ }, vr = D(Ds, Ps), Us = new TextEncoder(), Fs = (n) => {
3026
+ const e = Us.encode(n);
3027
+ return et([vr.enc(e.length), e]);
3028
+ }, _s = new TextDecoder(), Ms = re((n) => {
3029
+ let e = vr.dec(n);
2959
3030
  const t = new DataView(n.buffer, n.i, e);
2960
- return n.i += e, Ts.decode(t);
2961
- }), M = U(Es, Ls), Cs = () => {
2962
- }, ks = new Uint8Array(0);
2963
- U(() => ks, Cs);
2964
- var yr = (n) => ee((e) => {
2965
- const t = le.dec(e);
2966
- if (t !== 0)
2967
- return n === gr[1] ? t === 1 : n(e);
2968
- }), vr = (n) => (e) => {
3031
+ return n.i += e, _s.decode(t);
3032
+ }), M = D(Fs, Ms), Hs = () => {
3033
+ }, Vs = new Uint8Array(0);
3034
+ D(() => Vs, Hs);
3035
+ var wr = (n) => re((e) => de[1](e) > 0 ? n(e) : void 0), br = (n) => (e) => {
2969
3036
  const t = new Uint8Array(1);
2970
- return e === void 0 ? (t[0] = 0, t) : (t[0] = 1, n === gr[0] ? (t[0] = e ? 1 : 2, t) : Qe([t, n(e)]));
2971
- }, H = (n) => U(vr(n[0]), yr(n[1]));
2972
- H.enc = vr;
2973
- H.dec = yr;
2974
- var wr = (...n) => ee((e) => n.map((t) => t(e))), br = (...n) => (e) => Qe(n.map((t, r) => t(e[r]))), Ze = (...n) => U(br(...n.map(([e]) => e)), wr(...n.map(([, e]) => e)));
2975
- Ze.enc = br;
2976
- Ze.dec = wr;
2977
- var Sr = (n) => {
3037
+ return e === void 0 ? t : (t[0] = 1, et([t, n(e)]));
3038
+ }, H = (n) => D(br(n[0]), wr(n[1]));
3039
+ H.enc = br;
3040
+ H.dec = wr;
3041
+ var Sr = (...n) => re((e) => n.map((t) => t(e))), xr = (...n) => (e) => et(n.map((t, r) => t(e[r]))), tt = (...n) => D(xr(...n.map(([e]) => e)), Sr(...n.map(([, e]) => e)));
3042
+ tt.enc = xr;
3043
+ tt.dec = Sr;
3044
+ var Er = (n) => {
2978
3045
  const e = Object.keys(n);
2979
- return ur(Ze.enc(...Object.values(n)), (t) => e.map((r) => t[r]));
2980
- }, xr = (n) => {
3046
+ return fr(tt.enc(...Object.values(n)), (t) => e.map((r) => t[r]));
3047
+ }, Or = (n) => {
2981
3048
  const e = Object.keys(n);
2982
- return lr(Ze.dec(...Object.values(n)), (t) => Object.fromEntries(t.map((r, i) => [e[i], r])));
2983
- }, se = (n) => U(Sr(gn(n, (e) => e[0])), xr(gn(n, (e) => e[1])));
2984
- se.enc = Sr;
2985
- se.dec = xr;
2986
- const Ps = y({
3049
+ return dr(tt.dec(...Object.values(n)), (t) => Object.fromEntries(t.map((r, i) => [e[i], r])));
3050
+ }, le = (n) => D(Er(yn(n, (e) => e[0])), Or(yn(n, (e) => e[1])));
3051
+ le.enc = Er;
3052
+ le.dec = Or;
3053
+ const Bs = y({
2987
3054
  [h.requestHash]: p()
2988
3055
  });
2989
3056
  y({
2990
3057
  [h.challenge]: p()
2991
3058
  });
2992
- const Is = y({
3059
+ const Ks = y({
2993
3060
  [h.timestamp]: p()
2994
- }), mn = y({
3061
+ }), vn = y({
2995
3062
  [h.challenge]: p().optional(),
2996
3063
  [h.requestHash]: p().optional(),
2997
3064
  [h.timestamp]: p().optional()
@@ -3002,35 +3069,35 @@ y({
3002
3069
  [h.dapp]: p(),
3003
3070
  [h.user]: p(),
3004
3071
  [h.challenge]: p().optional(),
3005
- [h.nonce]: S().optional(),
3072
+ [h.nonce]: w().optional(),
3006
3073
  [h.timestamp]: p(),
3007
3074
  [h.signature]: y({
3008
- [h.provider]: mn,
3009
- [h.user]: mn
3075
+ [h.provider]: vn,
3076
+ [h.user]: vn
3010
3077
  })
3011
3078
  });
3012
- const Rs = se({
3079
+ const qs = le({
3013
3080
  [h.commitmentId]: H(M),
3014
3081
  [h.providerUrl]: H(M),
3015
3082
  [h.dapp]: M,
3016
3083
  [h.user]: M,
3017
3084
  [h.challenge]: H(M),
3018
- [h.nonce]: H(Ee),
3085
+ [h.nonce]: H(Ce),
3019
3086
  [h.timestamp]: M,
3020
- [h.signature]: se({
3021
- [h.provider]: se({
3087
+ [h.signature]: le({
3088
+ [h.provider]: le({
3022
3089
  [h.challenge]: H(M),
3023
3090
  [h.requestHash]: H(M)
3024
3091
  }),
3025
- [h.user]: se({
3092
+ [h.user]: le({
3026
3093
  [h.timestamp]: H(M),
3027
3094
  [h.requestHash]: H(M)
3028
3095
  })
3029
3096
  })
3030
- }), Or = p().startsWith("0x"), Oa = (n) => {
3097
+ }), Tr = p().startsWith("0x"), Ua = (n) => {
3031
3098
  var e, t, r, i;
3032
- return We(
3033
- Rs.enc({
3099
+ return Ze(
3100
+ qs.enc({
3034
3101
  [h.commitmentId]: void 0,
3035
3102
  [h.providerUrl]: void 0,
3036
3103
  [h.challenge]: void 0,
@@ -3049,9 +3116,19 @@ const Rs = se({
3049
3116
  }
3050
3117
  })
3051
3118
  );
3052
- }, Er = 2, Tr = 0;
3053
- var $s = /* @__PURE__ */ ((n) => (n.GetImageCaptchaChallenge = "/v1/prosopo/provider/client/captcha/image", n.GetPowCaptchaChallenge = "/v1/prosopo/provider/client/captcha/pow", n.GetFrictionlessCaptchaChallenge = "/v1/prosopo/provider/client/captcha/frictionless", n.SubmitImageCaptchaSolution = "/v1/prosopo/provider/client/solution", n.SubmitPowCaptchaSolution = "/v1/prosopo/provider/client/pow/solution", n.VerifyPowCaptchaSolution = "/v1/prosopo/provider/client/pow/verify", n.VerifyImageCaptchaSolutionDapp = "/v1/prosopo/provider/client/image/dapp/verify", n.GetProviderStatus = "/v1/prosopo/provider/client/status", n.SubmitUserEvents = "/v1/prosopo/provider/client/events", n))($s || {}), As = /* @__PURE__ */ ((n) => (n.Healthz = "/healthz", n.GetProviderDetails = "/v1/prosopo/provider/public/details", n))(As || {}), Ns = /* @__PURE__ */ ((n) => (n.SiteKeyRegister = "/v1/prosopo/provider/admin/sitekey/register", n.UpdateDetectorKey = "/v1/prosopo/provider/admin/detector/update", n.RemoveDetectorKey = "/v1/prosopo/provider/admin/detector/remove", n))(Ns || {});
3054
- const Lr = {
3119
+ }, Lr = 2, Cr = 0;
3120
+ var zs = /* @__PURE__ */ ((n) => (n.GetImageCaptchaChallenge = "/v1/prosopo/provider/client/captcha/image", n.GetPowCaptchaChallenge = "/v1/prosopo/provider/client/captcha/pow", n.GetFrictionlessCaptchaChallenge = "/v1/prosopo/provider/client/captcha/frictionless", n.SubmitImageCaptchaSolution = "/v1/prosopo/provider/client/solution", n.SubmitPowCaptchaSolution = "/v1/prosopo/provider/client/pow/solution", n.VerifyPowCaptchaSolution = "/v1/prosopo/provider/client/pow/verify", n.VerifyImageCaptchaSolutionDapp = "/v1/prosopo/provider/client/image/dapp/verify", n.GetProviderStatus = "/v1/prosopo/provider/client/status", n.SubmitUserEvents = "/v1/prosopo/provider/client/events", n))(zs || {}), Ws = /* @__PURE__ */ ((n) => (n.Healthz = "/healthz", n.GetProviderDetails = "/v1/prosopo/provider/public/details", n))(Ws || {});
3121
+ y({
3122
+ version: p(),
3123
+ message: p(),
3124
+ redis: y({
3125
+ actor: p(),
3126
+ isReady: Y(),
3127
+ awaitingTimeSeconds: w()
3128
+ }).array()
3129
+ });
3130
+ var Js = /* @__PURE__ */ ((n) => (n.SiteKeyRegister = "/v1/prosopo/provider/admin/sitekey/register", n.UpdateDetectorKey = "/v1/prosopo/provider/admin/detector/update", n.RemoveDetectorKey = "/v1/prosopo/provider/admin/detector/remove", n.ToggleMaintenanceMode = "/v1/prosopo/provider/admin/maintenance/toggle", n))(Js || {});
3131
+ const Pr = {
3055
3132
  "/v1/prosopo/provider/client/captcha/image": { windowMs: 6e4, limit: 30 },
3056
3133
  "/v1/prosopo/provider/client/captcha/pow": { windowMs: 6e4, limit: 60 },
3057
3134
  "/v1/prosopo/provider/client/solution": { windowMs: 6e4, limit: 60 },
@@ -3070,48 +3147,49 @@ const Lr = {
3070
3147
  "/v1/prosopo/provider/client/events": { windowMs: 6e4, limit: 60 },
3071
3148
  "/v1/prosopo/provider/admin/sitekey/register": { windowMs: 6e4, limit: 5 },
3072
3149
  "/v1/prosopo/provider/admin/detector/update": { windowMs: 6e4, limit: 5 },
3073
- "/v1/prosopo/provider/admin/detector/remove": { windowMs: 6e4, limit: 5 }
3074
- }, js = (n) => y(
3150
+ "/v1/prosopo/provider/admin/detector/remove": { windowMs: 6e4, limit: 5 },
3151
+ "/v1/prosopo/provider/admin/maintenance/toggle": { windowMs: 6e4, limit: 5 }
3152
+ }, Xs = (n) => y(
3075
3153
  Object.entries(n).reduce(
3076
3154
  (e, [t, r]) => {
3077
3155
  const i = t;
3078
3156
  return e[i] = y({
3079
- windowMs: Nt.number().optional().default(r.windowMs),
3080
- limit: Nt.number().optional().default(r.limit)
3157
+ windowMs: Dt.number().optional().default(r.windowMs),
3158
+ limit: Dt.number().optional().default(r.limit)
3081
3159
  }), e;
3082
3160
  },
3083
3161
  {}
3084
3162
  )
3085
- ), Us = js(
3086
- Lr
3163
+ ), Ys = Xs(
3164
+ Pr
3087
3165
  );
3088
3166
  y({
3089
3167
  [h.user]: p(),
3090
3168
  [h.dapp]: p(),
3091
- [h.datasetId]: Ue([p(), K(S())]),
3169
+ [h.datasetId]: _e([p(), q(w())]),
3092
3170
  [h.sessionId]: p().optional()
3093
3171
  });
3094
3172
  y({
3095
3173
  [h.user]: p(),
3096
3174
  [h.dapp]: p(),
3097
- [h.captchas]: K(ar),
3175
+ [h.captchas]: q(lr),
3098
3176
  [h.requestHash]: p(),
3099
3177
  [h.timestamp]: p(),
3100
3178
  [h.signature]: y({
3101
- [h.user]: Is,
3102
- [h.provider]: Ps
3179
+ [h.user]: Ks,
3180
+ [h.provider]: Bs
3103
3181
  })
3104
3182
  });
3105
3183
  y({
3106
- [h.token]: Or,
3184
+ [h.token]: Tr,
3107
3185
  [h.dappSignature]: p(),
3108
- [h.maxVerifiedTime]: S().optional().default(Tt),
3186
+ [h.maxVerifiedTime]: w().optional().default(Ct),
3109
3187
  [h.ip]: p().optional()
3110
3188
  });
3111
3189
  y({
3112
- [h.token]: Or,
3190
+ [h.token]: Tr,
3113
3191
  [h.dappSignature]: p(),
3114
- [h.verifiedTimeout]: S().optional().default(Ye),
3192
+ [h.verifiedTimeout]: w().optional().default(Qe),
3115
3193
  [h.ip]: p().optional()
3116
3194
  });
3117
3195
  y({
@@ -3119,9 +3197,9 @@ y({
3119
3197
  [h.dapp]: p(),
3120
3198
  [h.sessionId]: p().optional()
3121
3199
  });
3122
- const Ea = y({
3123
- [h.challenge]: es,
3124
- [h.difficulty]: S(),
3200
+ const Fa = y({
3201
+ [h.challenge]: fs,
3202
+ [h.difficulty]: w(),
3125
3203
  [h.signature]: y({
3126
3204
  [h.user]: y({
3127
3205
  [h.timestamp]: p()
@@ -3132,48 +3210,56 @@ const Ea = y({
3132
3210
  }),
3133
3211
  [h.user]: p(),
3134
3212
  [h.dapp]: p(),
3135
- [h.nonce]: S(),
3136
- [h.verifiedTimeout]: S().optional().default(Ye)
3213
+ [h.nonce]: w(),
3214
+ [h.verifiedTimeout]: w().optional().default(Qe)
3137
3215
  });
3138
3216
  y({
3139
3217
  [h.dapp]: p(),
3140
3218
  [h.token]: p(),
3141
- [h.user]: p()
3219
+ [h.user]: p(),
3220
+ [h.headHash]: p()
3142
3221
  });
3143
3222
  y({
3144
3223
  [h.siteKey]: p()
3145
3224
  });
3146
3225
  y({
3147
3226
  [h.siteKey]: p(),
3148
- [h.tier]: Le(wt),
3149
- [h.settings]: hi.optional()
3227
+ [h.tier]: ke(St),
3228
+ [h.settings]: Ti.optional()
3150
3229
  });
3151
- const Ta = y({
3230
+ const _a = y({
3152
3231
  [h.detectorKey]: p()
3153
- }), Cr = y({
3232
+ }), Ma = y({
3233
+ [h.detectorKey]: p(),
3234
+ [h.expirationInSeconds]: w().positive().optional()
3235
+ }), Ha = y({
3236
+ [h.enabled]: Y()
3237
+ }), kr = y({
3154
3238
  solved: y({
3155
- count: S().positive()
3156
- }).optional().default({ count: Er }),
3239
+ count: w().positive()
3240
+ }).optional().default({ count: Lr }),
3157
3241
  unsolved: y({
3158
- count: S().nonnegative()
3159
- }).optional().default({ count: Tr })
3242
+ count: w().nonnegative()
3243
+ }).optional().default({ count: Cr })
3160
3244
  });
3161
- var kr = /* @__PURE__ */ ((n) => (n.ipAddress = "ipAddress", n.userAccount = "userAccount", n))(kr || {});
3162
- const Ds = Le(kr);
3245
+ var Ir = /* @__PURE__ */ ((n) => (n.ipAddress = "ipAddress", n.userAccount = "userAccount", n))(Ir || {});
3246
+ const Gs = ke(Ir);
3163
3247
  y({
3164
- global: De(),
3165
- hardBlock: De(),
3166
- type: Ds,
3248
+ global: Y(),
3249
+ hardBlock: Y(),
3250
+ type: Gs,
3167
3251
  dappAccount: p().optional(),
3168
- captchaConfig: Cr.optional()
3252
+ captchaConfig: kr.optional()
3169
3253
  });
3170
3254
  y({
3171
3255
  [h.dapp]: p()
3172
3256
  });
3173
- const Pr = 0.2, Ir = 0.5, Fs = y({
3174
- PENALTY_OLD_TIMESTAMP: S().positive().optional().default(Pr),
3175
- PENALTY_ACCESS_RULE: S().positive().optional().default(Ir)
3176
- }), yn = ze([
3257
+ const Rr = 0.2, Ar = 0.5, $r = 0.2, Nr = 0.1, Qs = y({
3258
+ PENALTY_OLD_TIMESTAMP: w().positive().optional().default(Rr),
3259
+ PENALTY_ACCESS_RULE: w().positive().optional().default(Ar),
3260
+ PENALTY_UNVERIFIED_HOST: w().positive().optional().default($r),
3261
+ PENALTY_WEBVIEW: w().positive().optional().default(Nr)
3262
+ }), wn = Je([
3177
3263
  "trace",
3178
3264
  "debug",
3179
3265
  "info",
@@ -3182,29 +3268,29 @@ const Pr = 0.2, Ir = 0.5, Fs = y({
3182
3268
  "fatal",
3183
3269
  "log"
3184
3270
  ]);
3185
- ze([
3271
+ Je([
3186
3272
  "mongo",
3187
3273
  "mongoMemory",
3188
3274
  "provider",
3189
3275
  "client",
3190
3276
  "captcha"
3191
3277
  ]);
3192
- const vt = ze([
3278
+ const bt = Je([
3193
3279
  "development",
3194
3280
  "staging",
3195
3281
  "production"
3196
- ]), _s = Sn(
3197
- vt,
3282
+ ]), Zs = En(
3283
+ bt,
3198
3284
  y({
3199
3285
  type: p(),
3200
3286
  endpoint: p(),
3201
3287
  dbname: p().default("prosopo"),
3202
3288
  authSource: p().default("admin")
3203
3289
  })
3204
- ), Ms = y({
3205
- logLevel: yn.optional().default(yn.enum.info),
3206
- defaultEnvironment: vt.default(
3207
- vt.Values.production
3290
+ ), ea = y({
3291
+ logLevel: wn.optional().default(wn.enum.info),
3292
+ defaultEnvironment: bt.default(
3293
+ bt.Values.production
3208
3294
  ),
3209
3295
  // The account with which to query the contract.merge sign transactions
3210
3296
  account: y({
@@ -3213,122 +3299,127 @@ const vt = ze([
3213
3299
  password: p().optional()
3214
3300
  })
3215
3301
  });
3216
- R.object({
3217
- encoded: R.string(),
3218
- encoding: R.object({
3219
- content: R.array(R.string()),
3220
- type: R.array(R.string()),
3221
- version: R.string()
3302
+ L.object({
3303
+ encoded: L.string(),
3304
+ encoding: L.object({
3305
+ content: L.array(L.string()),
3306
+ type: L.array(L.string()),
3307
+ version: L.string()
3222
3308
  }),
3223
- address: R.string(),
3224
- meta: R.object({
3225
- genesisHash: R.string(),
3226
- name: R.string(),
3227
- whenCreated: R.number()
3309
+ address: L.string(),
3310
+ meta: L.object({
3311
+ genesisHash: L.string(),
3312
+ name: L.string(),
3313
+ whenCreated: L.number()
3228
3314
  })
3229
3315
  });
3230
- const Rr = Ms.merge(
3316
+ const jr = ea.merge(
3231
3317
  y({
3232
- database: _s.optional(),
3233
- devOnlyWatchEvents: De().optional()
3318
+ database: Zs.optional()
3234
3319
  })
3235
- ), Hs = y({
3320
+ ), ta = y({
3236
3321
  baseURL: p().url(),
3237
- port: S().optional().default(9229)
3322
+ port: w().optional().default(9229)
3238
3323
  }).default({
3239
3324
  baseURL: "http://localhost",
3240
3325
  port: 9229
3241
3326
  });
3242
3327
  y({
3243
- requiredNumberOfSolutions: S().positive().min(2),
3244
- solutionWinningPercentage: S().positive().max(100),
3245
- captchaBlockRecency: S().positive().min(2)
3328
+ requiredNumberOfSolutions: w().positive().min(2),
3329
+ solutionWinningPercentage: w().positive().max(100),
3330
+ captchaBlockRecency: w().positive().min(2)
3246
3331
  });
3247
- const $r = Rr.merge(
3332
+ const Dr = jr.merge(
3248
3333
  y({
3249
3334
  userAccountAddress: p().optional(),
3250
- web2: De().optional().default(!0),
3251
- solutionThreshold: S().positive().max(100).optional().default(80),
3335
+ web2: Y().optional().default(!0),
3336
+ solutionThreshold: w().positive().max(100).optional().default(80),
3252
3337
  dappName: p().optional().default("ProsopoClientDapp"),
3253
3338
  serverUrl: p().optional()
3254
3339
  })
3255
- ), Ar = {
3256
- challengeTimeout: ke,
3257
- solutionTimeout: Qn,
3258
- verifiedTimeout: Zn,
3259
- cachedTimeout: Tt
3260
- }, Nr = {
3261
- challengeTimeout: Ye,
3340
+ ), Ur = {
3341
+ challengeTimeout: Re,
3342
+ solutionTimeout: er,
3343
+ verifiedTimeout: tr,
3344
+ cachedTimeout: Ct
3345
+ }, Fr = {
3346
+ challengeTimeout: Qe,
3262
3347
  solutionTimeout: Ge,
3263
- cachedTimeout: er
3264
- }, jr = {
3265
- maxVerifiedTime: tr
3266
- }, Lt = {
3267
- image: Ar,
3268
- pow: Nr,
3269
- contract: jr
3270
- }, Ur = y({
3348
+ cachedTimeout: nr
3349
+ }, _r = {
3350
+ maxVerifiedTime: rr
3351
+ }, Pt = {
3352
+ image: Ur,
3353
+ pow: Fr,
3354
+ contract: _r
3355
+ }, Mr = y({
3271
3356
  image: y({
3272
3357
  // Set this to a default value for the frontend
3273
- challengeTimeout: S().positive().optional().default(ke),
3358
+ challengeTimeout: w().positive().optional().default(Re),
3274
3359
  // Set this to a default value for the frontend
3275
- solutionTimeout: S().positive().optional().default(Qn),
3276
- verifiedTimeout: S().positive().optional().default(Zn),
3277
- cachedTimeout: S().positive().optional().default(Tt)
3278
- }).default(Ar),
3360
+ solutionTimeout: w().positive().optional().default(er),
3361
+ verifiedTimeout: w().positive().optional().default(tr),
3362
+ cachedTimeout: w().positive().optional().default(Ct)
3363
+ }).default(Ur),
3279
3364
  pow: y({
3280
- verifiedTimeout: S().positive().optional().default(Ye),
3281
- solutionTimeout: S().positive().optional().default(Ge),
3282
- cachedTimeout: S().positive().optional().default(er)
3283
- }).default(Nr),
3365
+ verifiedTimeout: w().positive().optional().default(Qe),
3366
+ solutionTimeout: w().positive().optional().default(Ge),
3367
+ cachedTimeout: w().positive().optional().default(nr)
3368
+ }).default(Fr),
3284
3369
  contract: y({
3285
- maxVerifiedTime: S().positive().optional().default(tr)
3286
- }).default(jr)
3287
- }).default(Lt);
3288
- $r.merge(
3370
+ maxVerifiedTime: w().positive().optional().default(rr)
3371
+ }).default(_r)
3372
+ }).default(Pt);
3373
+ Dr.merge(
3289
3374
  y({
3290
3375
  serverUrl: p().url().optional(),
3291
- timeouts: Ur.optional().default(Lt)
3376
+ timeouts: Mr.optional().default(Pt)
3292
3377
  })
3293
3378
  );
3294
3379
  y({
3295
3380
  area: y({
3296
- width: S().positive(),
3297
- height: S().positive()
3381
+ width: w().positive(),
3382
+ height: w().positive()
3298
3383
  }),
3299
- offsetParameter: S().positive(),
3300
- multiplier: S().positive(),
3301
- fontSizeFactor: S().positive(),
3302
- maxShadowBlur: S().positive(),
3303
- numberOfRounds: S().positive(),
3304
- seed: S().positive()
3384
+ offsetParameter: w().positive(),
3385
+ multiplier: w().positive(),
3386
+ fontSizeFactor: w().positive(),
3387
+ maxShadowBlur: w().positive(),
3388
+ numberOfRounds: w().positive(),
3389
+ seed: w().positive()
3305
3390
  });
3306
- const Vs = Ue([jt("light"), jt("dark")]);
3307
- var Bs = /* @__PURE__ */ ((n) => (n.visible = "visible", n.invisible = "invisible", n))(Bs || {});
3308
- const Ks = ze([
3391
+ const na = _e([Ut("light"), Ut("dark")]);
3392
+ var ra = /* @__PURE__ */ ((n) => (n.visible = "visible", n.invisible = "invisible", n))(ra || {});
3393
+ const ia = Je([
3309
3394
  "visible",
3310
3395
  "invisible"
3311
3396
  /* invisible */
3312
- ]).optional(), La = $r.and(
3397
+ ]).optional(), Va = Dr.and(
3313
3398
  y({
3314
- theme: Vs.optional().default("light"),
3315
- captchas: Ur.optional().default(Lt),
3316
- language: kn.optional(),
3317
- mode: Ks.optional().default(
3399
+ theme: na.optional().default("light"),
3400
+ captchas: Mr.optional().default(Pt),
3401
+ language: In.optional(),
3402
+ mode: ia.optional().default(
3318
3403
  "visible"
3319
3404
  /* visible */
3320
3405
  )
3321
3406
  })
3322
- );
3323
- Rr.merge(
3407
+ ), oa = L.object({
3408
+ apiKey: L.string(),
3409
+ baseUrl: L.string().url()
3410
+ });
3411
+ jr.merge(
3324
3412
  y({
3325
- captchas: Cr.optional().default({
3326
- solved: { count: Er },
3327
- unsolved: { count: Tr }
3413
+ host: p(),
3414
+ captchas: kr.optional().default({
3415
+ solved: { count: Lr },
3416
+ unsolved: { count: Cr }
3328
3417
  }),
3329
- penalties: Fs.optional().default({
3330
- PENALTY_OLD_TIMESTAMP: Pr,
3331
- PENALTY_ACCESS_RULE: Ir
3418
+ penalties: Qs.optional().default({
3419
+ PENALTY_OLD_TIMESTAMP: Rr,
3420
+ PENALTY_ACCESS_RULE: Ar,
3421
+ PENALTY_UNVERIFIED_HOST: $r,
3422
+ PENALTY_WEBVIEW: Nr
3332
3423
  }),
3333
3424
  scheduledTasks: y({
3334
3425
  captchaScheduler: y({
@@ -3338,10 +3429,11 @@ Rr.merge(
3338
3429
  schedule: p().optional()
3339
3430
  }).optional()
3340
3431
  }).optional(),
3341
- server: Hs.optional(),
3432
+ server: ta.optional(),
3342
3433
  mongoEventsUri: p().optional(),
3343
3434
  mongoCaptchaUri: p().optional(),
3344
3435
  mongoClientUri: p().optional(),
3436
+ ipApi: oa,
3345
3437
  redisConnection: y({
3346
3438
  url: p(),
3347
3439
  password: p(),
@@ -3350,9 +3442,9 @@ Rr.merge(
3350
3442
  url: "redis://localhost:6379",
3351
3443
  password: "root"
3352
3444
  }),
3353
- rateLimits: Us.default(Lr),
3354
- proxyCount: S().optional().default(0),
3355
- lRules: Sn(p(), S()).optional(),
3445
+ rateLimits: Ys.default(Pr),
3446
+ proxyCount: w().optional().default(0),
3447
+ lRules: En(p(), w()).optional(),
3356
3448
  authAccount: y({
3357
3449
  address: p().optional(),
3358
3450
  secret: p().optional(),
@@ -3360,7 +3452,7 @@ Rr.merge(
3360
3452
  })
3361
3453
  })
3362
3454
  );
3363
- const qs = async () => (await import("./fp.esm-DYWeNGcH.js")).default, zs = async () => (await (await (await qs()).load()).get()).visitorId, ie = new Uint8Array([161, 35, 3, 33, 0]), qe = new Uint8Array([
3455
+ const sa = async () => (await import("./fp.esm-DYWeNGcH.js")).default, aa = async () => (await (await (await sa()).load()).get()).visitorId, ae = new Uint8Array([161, 35, 3, 33, 0]), We = new Uint8Array([
3364
3456
  48,
3365
3457
  83,
3366
3458
  2,
@@ -3377,40 +3469,40 @@ const qs = async () => (await import("./fp.esm-DYWeNGcH.js")).default, zs = asyn
3377
3469
  34,
3378
3470
  4,
3379
3471
  32
3380
- ]), Ws = 32, vn = 64, Js = 32, ve = qe.length;
3381
- function Xs(n, e, t) {
3382
- const r = Array.isArray(t) || t === void 0 ? t : [t], i = Hr(e, n, r), o = i.subarray(0, qe.length);
3383
- if (!et(o, qe))
3472
+ ]), ua = 32, bn = 64, la = 32, Se = We.length;
3473
+ function ca(n, e, t) {
3474
+ const r = Array.isArray(t) || t === void 0 ? t : [t], i = Kr(e, n, r), o = i.subarray(0, We.length);
3475
+ if (!nt(o, We))
3384
3476
  throw new Error("Invalid encoding header found in body");
3385
- let s = i.subarray(ve, ve + vn), a = ve + vn, u = i.subarray(a, a + ie.length);
3386
- if (!et(u, ie) && (a = ve + Js, s = i.subarray(ve, a), u = i.subarray(a, a + ie.length), !et(u, ie)))
3477
+ let s = i.subarray(Se, Se + bn), a = Se + bn, u = i.subarray(a, a + ae.length);
3478
+ if (!nt(u, ae) && (a = Se + la, s = i.subarray(Se, a), u = i.subarray(a, a + ae.length), !nt(u, ae)))
3387
3479
  throw new Error("Invalid encoding divider found in body");
3388
- const c = a + ie.length;
3480
+ const c = a + ae.length;
3389
3481
  return {
3390
- publicKey: i.subarray(c, c + Ws),
3482
+ publicKey: i.subarray(c, c + ua),
3391
3483
  secretKey: s
3392
3484
  };
3393
3485
  }
3394
- function Gs({ publicKey: n, secretKey: e }, t) {
3486
+ function fa({ publicKey: n, secretKey: e }, t) {
3395
3487
  if (!e)
3396
3488
  throw new Error("Expected a valid secretKey to be passed to encode");
3397
- const r = lt(qe, e, ie, n);
3489
+ const r = ft(We, e, ae, n);
3398
3490
  if (!t)
3399
3491
  return r;
3400
- const { params: i, password: o, salt: s } = Vr(t), { encrypted: a, nonce: u } = Br(r, o.subarray(0, 32));
3401
- return lt(Kr(s, i), u, a);
3492
+ const { params: i, password: o, salt: s } = qr(t), { encrypted: a, nonce: u } = zr(r, o.subarray(0, 32));
3493
+ return ft(Wr(s, i), u, a);
3402
3494
  }
3403
- function Ys(n, { address: e, meta: t }, r, i) {
3404
- return En(
3405
- qr(r, ["pkcs8", n], i),
3495
+ function da(n, { address: e, meta: t }, r, i) {
3496
+ return Ln(
3497
+ Jr(r, ["pkcs8", n], i),
3406
3498
  {
3407
3499
  address: e,
3408
3500
  meta: t
3409
3501
  }
3410
3502
  );
3411
3503
  }
3412
- const Qs = new Uint8Array([]), Zs = {
3413
- sr25519: On,
3504
+ const pa = new Uint8Array([]), ha = {
3505
+ sr25519: Tn,
3414
3506
  ed25519: () => {
3415
3507
  throw new Error("Not Implemented");
3416
3508
  },
@@ -3420,13 +3512,13 @@ const Qs = new Uint8Array([]), Zs = {
3420
3512
  ethereum: () => {
3421
3513
  throw new Error("Not Implemented");
3422
3514
  }
3423
- }, ea = {
3515
+ }, ga = {
3424
3516
  ecdsa: new Uint8Array([2]),
3425
3517
  ed25519: new Uint8Array([0]),
3426
3518
  ethereum: new Uint8Array([2]),
3427
3519
  sr25519: new Uint8Array([1])
3428
- }, ta = {
3429
- sr25519: Gr,
3520
+ }, ma = {
3521
+ sr25519: Zr,
3430
3522
  ed25519: () => {
3431
3523
  throw new Error("Not Implemented");
3432
3524
  },
@@ -3436,7 +3528,7 @@ const Qs = new Uint8Array([]), Zs = {
3436
3528
  ethereum: () => {
3437
3529
  throw new Error("Not Implemented");
3438
3530
  }
3439
- }, ut = {
3531
+ }, ct = {
3440
3532
  sr25519: (n) => n,
3441
3533
  ed25519: () => {
3442
3534
  throw new Error("Not Implemented");
@@ -3448,20 +3540,20 @@ const Qs = new Uint8Array([]), Zs = {
3448
3540
  throw new Error("Not Implemented");
3449
3541
  }
3450
3542
  };
3451
- function we(n) {
3452
- return !n || ni(n);
3543
+ function xe(n) {
3544
+ return !n || si(n);
3453
3545
  }
3454
- function oe({ toSS58: n, type: e }, { publicKey: t, secretKey: r }, i = {}, o = null, s) {
3546
+ function ue({ toSS58: n, type: e }, { publicKey: t, secretKey: r }, i = {}, o = null, s) {
3455
3547
  const a = (l, f) => {
3456
- const d = Xs(l, f || o, s);
3548
+ const d = ca(l, f || o, s);
3457
3549
  if (d.secretKey.length === 64)
3458
3550
  t = d.publicKey, r = d.secretKey;
3459
3551
  else {
3460
- const g = Zs[e](d.secretKey);
3552
+ const g = ha[e](d.secretKey);
3461
3553
  t = g.publicKey, r = g.secretKey;
3462
3554
  }
3463
- }, u = (l) => (we(r) && o && a(l, o), o = Gs({ publicKey: t, secretKey: r }, l), s = void 0, o), c = () => {
3464
- const l = ut[e](t);
3555
+ }, u = (l) => (xe(r) && o && a(l, o), o = fa({ publicKey: t, secretKey: r }, l), s = void 0, o), c = () => {
3556
+ const l = ct[e](t);
3465
3557
  return n(l);
3466
3558
  };
3467
3559
  return {
@@ -3469,10 +3561,10 @@ function oe({ toSS58: n, type: e }, { publicKey: t, secretKey: r }, i = {}, o =
3469
3561
  return c();
3470
3562
  },
3471
3563
  get addressRaw() {
3472
- return ut[e](t);
3564
+ return ct[e](t);
3473
3565
  },
3474
3566
  get isLocked() {
3475
- return we(r);
3567
+ return xe(r);
3476
3568
  },
3477
3569
  get meta() {
3478
3570
  return i;
@@ -3486,29 +3578,29 @@ function oe({ toSS58: n, type: e }, { publicKey: t, secretKey: r }, i = {}, o =
3486
3578
  // eslint-disable-next-line sort-keys
3487
3579
  decodePkcs8: a,
3488
3580
  derive: (l, f) => {
3489
- if (we(r))
3581
+ if (xe(r))
3490
3582
  throw new Error("Cannot derive on a locked keypair");
3491
- const { path: d } = Yr(l), g = xn({ publicKey: t, secretKey: r }, d, e);
3492
- return oe({ toSS58: n, type: e }, g, f, null);
3583
+ const { path: d } = ei(l), g = On({ publicKey: t, secretKey: r }, d, e);
3584
+ return ue({ toSS58: n, type: e }, g, f, null);
3493
3585
  },
3494
3586
  encodePkcs8: (l) => u(l),
3495
3587
  lock: () => {
3496
3588
  r = new Uint8Array([]);
3497
3589
  },
3498
3590
  setMeta: (l) => {
3499
- i = En({}, i, l);
3591
+ i = Ln({}, i, l);
3500
3592
  },
3501
3593
  sign: (l, f = {}) => {
3502
- if (we(r))
3594
+ if (xe(r))
3503
3595
  throw new Error("Cannot sign with a locked key pair");
3504
- return lt(
3505
- f.withType ? ea[e] : Qs,
3506
- ta[e](ct(l), { publicKey: t, secretKey: r })
3596
+ return ft(
3597
+ f.withType ? ga[e] : pa,
3598
+ ma[e](dt(l), { publicKey: t, secretKey: r })
3507
3599
  );
3508
3600
  },
3509
3601
  toJson: (l) => {
3510
- const f = ["ecdsa", "ethereum"].includes(e) ? t.length === 20 ? Ut(t) : Ut(Xr(t)) : c();
3511
- return Ys(
3602
+ const f = ["ecdsa", "ethereum"].includes(e) ? t.length === 20 ? Ft(t) : Ft(Qr(t)) : c();
3603
+ return da(
3512
3604
  e,
3513
3605
  { address: f, meta: i },
3514
3606
  u(l),
@@ -3518,45 +3610,45 @@ function oe({ toSS58: n, type: e }, { publicKey: t, secretKey: r }, i = {}, o =
3518
3610
  unlock: (l) => {
3519
3611
  a(l);
3520
3612
  },
3521
- verify: (l, f, d) => Jr(
3613
+ verify: (l, f, d) => Gr(
3522
3614
  l,
3523
3615
  f,
3524
- ut[e](ct(d))
3616
+ ct[e](dt(d))
3525
3617
  ).isValid,
3526
3618
  vrfSign: (l, f, d) => {
3527
- if (we(r))
3619
+ if (xe(r))
3528
3620
  throw new Error("Cannot sign with a locked key pair");
3529
- return Wr(l, { secretKey: r }, f, d);
3621
+ return Yr(l, { secretKey: r }, f, d);
3530
3622
  },
3531
- vrfVerify: (l, f, d, g, m) => zr(l, f, t, g, m)
3623
+ vrfVerify: (l, f, d, g, m) => Xr(l, f, t, g, m)
3532
3624
  };
3533
3625
  }
3534
- var Y;
3535
- class na {
3626
+ var ee;
3627
+ class ya {
3536
3628
  constructor() {
3537
- pe(this, Y, {});
3629
+ me(this, ee, {});
3538
3630
  }
3539
3631
  add(e) {
3540
- return j(this, Y)[$e(e.address).toString()] = e, e;
3632
+ return j(this, ee)[je(e.address).toString()] = e, e;
3541
3633
  }
3542
3634
  all() {
3543
- return Object.values(j(this, Y));
3635
+ return Object.values(j(this, ee));
3544
3636
  }
3545
3637
  get(e) {
3546
- const t = j(this, Y)[$e(e).toString()];
3638
+ const t = j(this, ee)[je(e).toString()];
3547
3639
  if (!t)
3548
3640
  throw new Error(
3549
- `Unable to retrieve keypair '${ri(e) || Ae(e) ? We(ct(e)) : e}'`
3641
+ `Unable to retrieve keypair '${ai(e) || De(e) ? Ze(dt(e)) : e}'`
3550
3642
  );
3551
3643
  return t;
3552
3644
  }
3553
3645
  remove(e) {
3554
- delete j(this, Y)[$e(e).toString()];
3646
+ delete j(this, ee)[je(e).toString()];
3555
3647
  }
3556
3648
  }
3557
- Y = new WeakMap();
3558
- const ra = "bottom drive obey lake curtain smoke basket hold race lonely fit walk", wn = {
3559
- sr25519: (n) => On(n),
3649
+ ee = new WeakMap();
3650
+ const va = "bottom drive obey lake curtain smoke basket hold race lonely fit walk", Sn = {
3651
+ sr25519: (n) => Tn(n),
3560
3652
  ed25519: () => {
3561
3653
  throw new Error("Not Implemented");
3562
3654
  },
@@ -3567,20 +3659,20 @@ const ra = "bottom drive obey lake curtain smoke basket hold race lonely fit wal
3567
3659
  throw new Error("Not Implemented");
3568
3660
  }
3569
3661
  };
3570
- function ia({ publicKey: n }) {
3662
+ function wa({ publicKey: n }) {
3571
3663
  return n;
3572
3664
  }
3573
- var V, Te, ae;
3574
- class oa {
3665
+ var V, Pe, ce;
3666
+ class ba {
3575
3667
  constructor(e = {}) {
3576
- pe(this, V);
3577
- pe(this, Te);
3578
- pe(this, ae);
3579
- if (this.decodeAddress = $e, this.encodeAddress = (t, r) => Qr(t, r ?? j(this, ae)), e.type = e.type || "sr25519", !["sr25519"].includes(e.type || "undefined"))
3668
+ me(this, V);
3669
+ me(this, Pe);
3670
+ me(this, ce);
3671
+ if (this.decodeAddress = je, this.encodeAddress = (t, r) => ti(t, r ?? j(this, ce)), e.type = e.type || "sr25519", !["sr25519"].includes(e.type || "undefined"))
3580
3672
  throw new Error(
3581
3673
  `Expected a keyring type of either 'sr25519', found '${e.type || "unknown"}`
3582
3674
  );
3583
- he(this, V, new na()), he(this, ae, e.ss58Format), he(this, Te, e.type);
3675
+ ye(this, V, new ya()), ye(this, ce, e.ss58Format), ye(this, Pe, e.type);
3584
3676
  }
3585
3677
  /**
3586
3678
  * @description retrieve the pairs (alias for getPairs)
@@ -3598,7 +3690,7 @@ class oa {
3598
3690
  * @description Returns the type of the keyring, ed25519, sr25519 or ecdsa
3599
3691
  */
3600
3692
  get type() {
3601
- return j(this, Te);
3693
+ return j(this, Pe);
3602
3694
  }
3603
3695
  /**
3604
3696
  * @name addPair
@@ -3618,7 +3710,7 @@ class oa {
3618
3710
  addFromAddress(e, t = {}, r = null, i = this.type, o, s) {
3619
3711
  const a = this.decodeAddress(e, o);
3620
3712
  return this.addPair(
3621
- oe(
3713
+ ue(
3622
3714
  { toSS58: this.encodeAddress, type: i },
3623
3715
  { publicKey: a, secretKey: new Uint8Array() },
3624
3716
  t,
@@ -3664,9 +3756,9 @@ class oa {
3664
3756
  */
3665
3757
  addFromSeed(e, t = {}, r = this.type) {
3666
3758
  return this.addPair(
3667
- oe(
3759
+ ue(
3668
3760
  { toSS58: this.encodeAddress, type: r },
3669
- wn[r](e),
3761
+ Sn[r](e),
3670
3762
  t,
3671
3763
  null
3672
3764
  )
@@ -3700,8 +3792,8 @@ class oa {
3700
3792
  const c = Array.isArray(i) ? i : [i];
3701
3793
  if (!["sr25519"].includes(u))
3702
3794
  throw new Error(`Unknown crypto type ${u}`);
3703
- const l = Ae(e) ? tt(e) : this.decodeAddress(e, a), f = Ae(t) ? tt(t) : Zr(t);
3704
- return oe(
3795
+ const l = De(e) ? rt(e) : this.decodeAddress(e, a), f = De(t) ? rt(t) : ni(t);
3796
+ return ue(
3705
3797
  { toSS58: this.encodeAddress, type: u },
3706
3798
  { publicKey: l, secretKey: new Uint8Array() },
3707
3799
  s,
@@ -3714,7 +3806,7 @@ class oa {
3714
3806
  * @summary Creates a pair from an explicit publicKey/secreteKey combination
3715
3807
  */
3716
3808
  createFromPair(e, t = {}, r = this.type) {
3717
- return oe({ toSS58: this.encodeAddress, type: r }, e, t, null);
3809
+ return ue({ toSS58: this.encodeAddress, type: r }, e, t, null);
3718
3810
  }
3719
3811
  /**
3720
3812
  * @name createFromUri
@@ -3722,10 +3814,10 @@ class oa {
3722
3814
  * @description This creates a pair from the suri, but does not add it to the keyring
3723
3815
  */
3724
3816
  createFromUri(e, t = {}, r = this.type) {
3725
- const i = e.startsWith("//") ? `${ra}${e}` : e, { password: o, path: s, phrase: a } = ei(i);
3817
+ const i = e.startsWith("//") ? `${va}${e}` : e, { password: o, path: s, phrase: a } = ri(i);
3726
3818
  let u;
3727
- if (Ae(a, 256))
3728
- u = tt(a);
3819
+ if (De(a, 256))
3820
+ u = rt(a);
3729
3821
  else {
3730
3822
  const f = a.split(" ");
3731
3823
  if ([12, 15, 18, 21, 24].includes(f.length))
@@ -3733,17 +3825,17 @@ class oa {
3733
3825
  throw new Error(
3734
3826
  "Not implemented - Prosopo Keyring supports sr25519 only"
3735
3827
  );
3736
- })() : ti(a, o);
3828
+ })() : ii(a, o);
3737
3829
  else {
3738
3830
  if (a.length > 32)
3739
3831
  throw new Error(
3740
3832
  "specified phrase is not a valid mnemonic and is invalid as a raw seed at > 32 bytes"
3741
3833
  );
3742
- u = Tn(a.padEnd(32));
3834
+ u = Cn(a.padEnd(32));
3743
3835
  }
3744
3836
  }
3745
- const l = xn(wn[r](u), s, r);
3746
- return oe(
3837
+ const l = On(Sn[r](u), s, r);
3838
+ return ue(
3747
3839
  { toSS58: this.encodeAddress, type: r },
3748
3840
  l,
3749
3841
  t,
@@ -3773,7 +3865,7 @@ class oa {
3773
3865
  * @description Returns an array list of all the public keys associated with each of the keyring pair values that are stored in the keyring pair dictionary.
3774
3866
  */
3775
3867
  getPublicKeys() {
3776
- return j(this, V).all().map(ia);
3868
+ return j(this, V).all().map(wa);
3777
3869
  }
3778
3870
  /**
3779
3871
  * @name removePair
@@ -3787,7 +3879,7 @@ class oa {
3787
3879
  * @description Sets the ss58 format for the keyring
3788
3880
  */
3789
3881
  setSS58Format(e) {
3790
- he(this, ae, e);
3882
+ ye(this, ce, e);
3791
3883
  }
3792
3884
  /**
3793
3885
  * @name toJson
@@ -3801,11 +3893,11 @@ class oa {
3801
3893
  return j(this, V).get(e).toJson(t);
3802
3894
  }
3803
3895
  }
3804
- V = new WeakMap(), Te = new WeakMap(), ae = new WeakMap();
3805
- class sa {
3896
+ V = new WeakMap(), Pe = new WeakMap(), ce = new WeakMap();
3897
+ class Sa {
3806
3898
  }
3807
- const aa = async () => (await import("./Signer-DP9drQ55.js")).default, ua = async () => (await import("./utilCryptoChunk-BKe3CKqn.js").then((n) => n.v)).entropyToMnemonic;
3808
- class bn extends sa {
3899
+ const xa = async () => (await import("./Signer-DP9drQ55.js")).default, Ea = async () => (await import("./utilCryptoChunk-B4ZdOwus.js").then((n) => n.w)).entropyToMnemonic;
3900
+ class xn extends Sa {
3809
3901
  async getAccount(e) {
3810
3902
  const t = await this.createAccount(e), r = await this.createExtension(t);
3811
3903
  return {
@@ -3814,14 +3906,14 @@ class bn extends sa {
3814
3906
  };
3815
3907
  }
3816
3908
  async createExtension(e) {
3817
- const t = await aa(), r = new t(async () => {
3909
+ const t = await xa(), r = new t(async () => {
3818
3910
  });
3819
3911
  return r.signRaw = async (i) => {
3820
3912
  const o = e.keypair.sign(i.data);
3821
3913
  return {
3822
3914
  id: 1,
3823
3915
  // the id of the request to sign. This should be incremented each time and adjust the signature, but we're hacking around this. Hence the signature will always be the same given the same payload.
3824
- signature: We(o)
3916
+ signature: Ze(o)
3825
3917
  };
3826
3918
  }, {
3827
3919
  accounts: {
@@ -3830,12 +3922,12 @@ class bn extends sa {
3830
3922
  }
3831
3923
  },
3832
3924
  name: "procaptcha-web2",
3833
- version: ai,
3925
+ version: bs,
3834
3926
  signer: r
3835
3927
  };
3836
3928
  }
3837
3929
  async createAccount(e) {
3838
- const t = await zs(), r = Mr(t, 128).slice(2), i = Tn(r), s = (await ua())(i), a = "sr25519", c = new oa({
3930
+ const t = await aa(), r = oi(t, 128).slice(2), i = Cn(r), s = (await Ea())(i), a = "sr25519", c = new ba({
3839
3931
  type: a
3840
3932
  }).addFromMnemonic(s), l = c.address;
3841
3933
  return {
@@ -3845,33 +3937,36 @@ class bn extends sa {
3845
3937
  };
3846
3938
  }
3847
3939
  }
3848
- const Ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3940
+ const Ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3849
3941
  __proto__: null,
3850
- ExtensionWeb2: bn,
3851
- default: bn
3942
+ ExtensionWeb2: xn,
3943
+ default: xn
3852
3944
  }, Symbol.toStringTag, { value: "Module" }));
3853
3945
  export {
3854
3946
  h as A,
3855
- Je as C,
3856
- sa as E,
3857
- kn as L,
3858
- Bs as M,
3859
- La as P,
3860
- Sa as R,
3861
- Ea as S,
3862
- Ta as U,
3863
- va as a,
3864
- vt as b,
3865
- $s as c,
3866
- As as d,
3867
- Ns as e,
3868
- Oa as f,
3869
- Ii as g,
3870
- wa as h,
3871
- ya as i,
3872
- Ca as j,
3873
- ba as l,
3947
+ Xe as C,
3948
+ Sa as E,
3949
+ In as L,
3950
+ ra as M,
3951
+ Va as P,
3952
+ Ma as R,
3953
+ Fa as S,
3954
+ Ha as T,
3955
+ _a as U,
3956
+ W as a,
3957
+ bt as b,
3958
+ zs as c,
3959
+ Ws as d,
3960
+ Js as e,
3961
+ Ra as f,
3962
+ Da as g,
3963
+ Ua as h,
3964
+ ja as i,
3965
+ Hi as j,
3966
+ Na as k,
3967
+ Ia as l,
3968
+ Ba as m,
3874
3969
  F as r,
3875
- ma as s,
3876
- xa as u
3970
+ $a as s,
3971
+ Aa as u
3877
3972
  };