altcha 2.3.0 → 3.0.0-beta.1

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 (494) hide show
  1. package/LICENSE.txt +1 -1
  2. package/README.md +149 -204
  3. package/dist/external/altcha.css +1 -0
  4. package/dist/external/altcha.js +6681 -0
  5. package/dist/external/altcha.min.js +1 -0
  6. package/dist/external/altcha.umd.cjs +6687 -0
  7. package/dist/external/altcha.umd.min.cjs +1 -0
  8. package/dist/external/index.d.ts +1 -0
  9. package/dist/i18n/419.d.ts +1 -0
  10. package/dist/i18n/af.d.ts +1 -0
  11. package/dist/i18n/af.js +22 -0
  12. package/dist/i18n/af.umd.cjs +27 -0
  13. package/dist/i18n/africa.d.ts +1 -0
  14. package/{dist_i18n → dist/i18n}/africa.js +52 -97
  15. package/dist/i18n/africa.umd.cjs +159 -0
  16. package/dist/i18n/all.d.ts +1 -0
  17. package/{dist_i18n → dist/i18n}/all.js +465 -299
  18. package/dist/i18n/all.umd.cjs +1325 -0
  19. package/dist/i18n/am.d.ts +1 -0
  20. package/dist/i18n/am.js +22 -0
  21. package/dist/i18n/am.umd.cjs +27 -0
  22. package/dist/i18n/americas.d.ts +1 -0
  23. package/{dist_i18n → dist/i18n}/americas.js +24 -85
  24. package/dist/i18n/americas.umd.cjs +71 -0
  25. package/dist/i18n/ar.d.ts +1 -0
  26. package/dist/i18n/ar.js +22 -0
  27. package/dist/i18n/ar.umd.cjs +27 -0
  28. package/dist/i18n/asia.d.ts +1 -0
  29. package/{dist_i18n → dist/i18n}/asia.js +177 -158
  30. package/dist/i18n/asia.umd.cjs +511 -0
  31. package/dist/i18n/az.d.ts +1 -0
  32. package/dist/i18n/az.js +22 -0
  33. package/dist/i18n/az.umd.cjs +27 -0
  34. package/dist/i18n/be.d.ts +1 -0
  35. package/dist/i18n/be.js +22 -0
  36. package/dist/i18n/be.umd.cjs +27 -0
  37. package/dist/i18n/bg.d.ts +1 -0
  38. package/dist/i18n/bg.js +22 -0
  39. package/dist/i18n/bg.umd.cjs +27 -0
  40. package/dist/i18n/bn.d.ts +1 -0
  41. package/dist/i18n/bn.js +22 -0
  42. package/dist/i18n/bn.umd.cjs +27 -0
  43. package/dist/i18n/br.d.ts +1 -0
  44. package/dist/i18n/bs.d.ts +1 -0
  45. package/dist/i18n/bs.js +22 -0
  46. package/dist/i18n/bs.umd.cjs +27 -0
  47. package/dist/i18n/ca.d.ts +1 -0
  48. package/dist/i18n/ca.js +22 -0
  49. package/dist/i18n/ca.umd.cjs +27 -0
  50. package/dist/i18n/cn.d.ts +1 -0
  51. package/dist/i18n/cs.d.ts +1 -0
  52. package/dist/i18n/cs.js +22 -0
  53. package/dist/i18n/cs.umd.cjs +27 -0
  54. package/dist/i18n/da.d.ts +1 -0
  55. package/dist/i18n/da.js +22 -0
  56. package/dist/i18n/da.umd.cjs +27 -0
  57. package/dist/i18n/de.d.ts +1 -0
  58. package/dist/i18n/de.js +22 -0
  59. package/dist/i18n/de.umd.cjs +27 -0
  60. package/dist/i18n/el.d.ts +1 -0
  61. package/dist/i18n/el.js +22 -0
  62. package/dist/i18n/el.umd.cjs +27 -0
  63. package/dist/i18n/en.d.ts +1 -0
  64. package/dist/i18n/en.js +22 -0
  65. package/dist/i18n/en.umd.cjs +27 -0
  66. package/dist/i18n/es-419.js +22 -0
  67. package/dist/i18n/es-419.umd.cjs +27 -0
  68. package/dist/i18n/es-es.js +22 -0
  69. package/dist/i18n/es-es.umd.cjs +27 -0
  70. package/dist/i18n/es.d.ts +1 -0
  71. package/dist/i18n/et.d.ts +1 -0
  72. package/dist/i18n/et.js +22 -0
  73. package/dist/i18n/et.umd.cjs +27 -0
  74. package/dist/i18n/eu.d.ts +1 -0
  75. package/dist/i18n/eu.js +22 -0
  76. package/dist/i18n/eu.umd.cjs +27 -0
  77. package/dist/i18n/europe.d.ts +1 -0
  78. package/{dist_i18n → dist/i18n}/europe.js +283 -209
  79. package/dist/i18n/europe.umd.cjs +819 -0
  80. package/dist/i18n/fa.d.ts +1 -0
  81. package/dist/i18n/fa.js +22 -0
  82. package/dist/i18n/fa.umd.cjs +27 -0
  83. package/dist/i18n/fi.d.ts +1 -0
  84. package/dist/i18n/fi.js +22 -0
  85. package/dist/i18n/fi.umd.cjs +27 -0
  86. package/dist/i18n/fr-ca.js +22 -0
  87. package/dist/i18n/fr-ca.umd.cjs +27 -0
  88. package/dist/i18n/fr-fr.js +22 -0
  89. package/dist/i18n/fr-fr.umd.cjs +27 -0
  90. package/dist/i18n/fr.d.ts +1 -0
  91. package/dist/i18n/ga.d.ts +1 -0
  92. package/dist/i18n/ga.js +22 -0
  93. package/dist/i18n/ga.umd.cjs +27 -0
  94. package/dist/i18n/he.d.ts +1 -0
  95. package/dist/i18n/he.js +22 -0
  96. package/dist/i18n/he.umd.cjs +27 -0
  97. package/dist/i18n/hi.d.ts +1 -0
  98. package/dist/i18n/hi.js +22 -0
  99. package/dist/i18n/hi.umd.cjs +27 -0
  100. package/dist/i18n/hr.d.ts +1 -0
  101. package/dist/i18n/hr.js +22 -0
  102. package/dist/i18n/hr.umd.cjs +27 -0
  103. package/dist/i18n/hu.d.ts +1 -0
  104. package/dist/i18n/hu.js +22 -0
  105. package/dist/i18n/hu.umd.cjs +27 -0
  106. package/dist/i18n/hy.d.ts +1 -0
  107. package/dist/i18n/hy.js +22 -0
  108. package/dist/i18n/hy.umd.cjs +27 -0
  109. package/dist/i18n/id.d.ts +1 -0
  110. package/dist/i18n/id.js +22 -0
  111. package/dist/i18n/id.umd.cjs +27 -0
  112. package/dist/i18n/is.d.ts +1 -0
  113. package/dist/i18n/is.js +22 -0
  114. package/dist/i18n/is.umd.cjs +27 -0
  115. package/dist/i18n/it.d.ts +1 -0
  116. package/dist/i18n/it.js +22 -0
  117. package/dist/i18n/it.umd.cjs +27 -0
  118. package/dist/i18n/ja.d.ts +1 -0
  119. package/dist/i18n/ja.js +22 -0
  120. package/dist/i18n/ja.umd.cjs +27 -0
  121. package/dist/i18n/ka.d.ts +1 -0
  122. package/dist/i18n/ka.js +22 -0
  123. package/dist/i18n/ka.umd.cjs +27 -0
  124. package/dist/i18n/kk.d.ts +1 -0
  125. package/dist/i18n/kk.js +22 -0
  126. package/dist/i18n/kk.umd.cjs +27 -0
  127. package/dist/i18n/ko.d.ts +1 -0
  128. package/dist/i18n/ko.js +22 -0
  129. package/dist/i18n/ko.umd.cjs +27 -0
  130. package/dist/i18n/lb.d.ts +1 -0
  131. package/dist/i18n/lb.js +22 -0
  132. package/dist/i18n/lb.umd.cjs +27 -0
  133. package/dist/i18n/lt.d.ts +1 -0
  134. package/dist/i18n/lt.js +22 -0
  135. package/dist/i18n/lt.umd.cjs +27 -0
  136. package/dist/i18n/lv.d.ts +1 -0
  137. package/dist/i18n/lv.js +22 -0
  138. package/dist/i18n/lv.umd.cjs +27 -0
  139. package/dist/i18n/me.d.ts +1 -0
  140. package/dist/i18n/me.js +22 -0
  141. package/dist/i18n/me.umd.cjs +27 -0
  142. package/dist/i18n/mk.d.ts +1 -0
  143. package/dist/i18n/mk.js +22 -0
  144. package/dist/i18n/mk.umd.cjs +27 -0
  145. package/dist/i18n/mr.d.ts +1 -0
  146. package/dist/i18n/mr.js +22 -0
  147. package/dist/i18n/mr.umd.cjs +27 -0
  148. package/dist/i18n/mt.d.ts +1 -0
  149. package/dist/i18n/mt.js +22 -0
  150. package/dist/i18n/mt.umd.cjs +27 -0
  151. package/dist/i18n/nb.d.ts +1 -0
  152. package/dist/i18n/nb.js +22 -0
  153. package/dist/i18n/nb.umd.cjs +27 -0
  154. package/dist/i18n/nl.d.ts +1 -0
  155. package/dist/i18n/nl.js +22 -0
  156. package/dist/i18n/nl.umd.cjs +27 -0
  157. package/dist/i18n/pl.d.ts +1 -0
  158. package/dist/i18n/pl.js +22 -0
  159. package/dist/i18n/pl.umd.cjs +27 -0
  160. package/dist/i18n/pt-br.js +22 -0
  161. package/dist/i18n/pt-br.umd.cjs +27 -0
  162. package/dist/i18n/pt-pt.js +22 -0
  163. package/dist/i18n/pt-pt.umd.cjs +27 -0
  164. package/dist/i18n/pt.d.ts +1 -0
  165. package/dist/i18n/ro.d.ts +1 -0
  166. package/dist/i18n/ro.js +22 -0
  167. package/dist/i18n/ro.umd.cjs +27 -0
  168. package/dist/i18n/ru.d.ts +1 -0
  169. package/dist/i18n/ru.js +22 -0
  170. package/dist/i18n/ru.umd.cjs +27 -0
  171. package/dist/i18n/sk.d.ts +1 -0
  172. package/dist/i18n/sk.js +22 -0
  173. package/dist/i18n/sk.umd.cjs +27 -0
  174. package/dist/i18n/sl.d.ts +1 -0
  175. package/dist/i18n/sl.js +22 -0
  176. package/dist/i18n/sl.umd.cjs +27 -0
  177. package/dist/i18n/sq.d.ts +1 -0
  178. package/dist/i18n/sq.js +22 -0
  179. package/dist/i18n/sq.umd.cjs +27 -0
  180. package/dist/i18n/sr.d.ts +1 -0
  181. package/dist/i18n/sr.js +22 -0
  182. package/dist/i18n/sr.umd.cjs +27 -0
  183. package/dist/i18n/sv.d.ts +1 -0
  184. package/dist/i18n/sv.js +22 -0
  185. package/dist/i18n/sv.umd.cjs +27 -0
  186. package/dist/i18n/sw.d.ts +1 -0
  187. package/dist/i18n/sw.js +22 -0
  188. package/dist/i18n/sw.umd.cjs +27 -0
  189. package/dist/i18n/ta.d.ts +1 -0
  190. package/dist/i18n/ta.js +22 -0
  191. package/dist/i18n/ta.umd.cjs +27 -0
  192. package/dist/i18n/te.d.ts +1 -0
  193. package/dist/i18n/te.js +22 -0
  194. package/dist/i18n/te.umd.cjs +27 -0
  195. package/dist/i18n/th.d.ts +1 -0
  196. package/dist/i18n/th.js +22 -0
  197. package/dist/i18n/th.umd.cjs +27 -0
  198. package/dist/i18n/tk.d.ts +1 -0
  199. package/dist/i18n/tk.js +22 -0
  200. package/dist/i18n/tk.umd.cjs +27 -0
  201. package/dist/i18n/tr.d.ts +1 -0
  202. package/dist/i18n/tr.js +22 -0
  203. package/dist/i18n/tr.umd.cjs +27 -0
  204. package/dist/i18n/tw.d.ts +1 -0
  205. package/dist/i18n/uk.d.ts +1 -0
  206. package/dist/i18n/uk.js +22 -0
  207. package/dist/i18n/uk.umd.cjs +27 -0
  208. package/dist/i18n/ur.d.ts +1 -0
  209. package/dist/i18n/ur.js +22 -0
  210. package/dist/i18n/ur.umd.cjs +27 -0
  211. package/dist/i18n/uz.d.ts +1 -0
  212. package/dist/i18n/uz.js +22 -0
  213. package/dist/i18n/uz.umd.cjs +27 -0
  214. package/dist/i18n/vi.d.ts +1 -0
  215. package/dist/i18n/vi.js +22 -0
  216. package/dist/i18n/vi.umd.cjs +27 -0
  217. package/dist/i18n/yo.d.ts +1 -0
  218. package/dist/i18n/yo.js +22 -0
  219. package/dist/i18n/yo.umd.cjs +27 -0
  220. package/dist/i18n/zh-cn.js +22 -0
  221. package/dist/i18n/zh-cn.umd.cjs +27 -0
  222. package/dist/i18n/zh-tw.js +22 -0
  223. package/dist/i18n/zh-tw.umd.cjs +27 -0
  224. package/dist/lib/index.d.ts +143 -0
  225. package/dist/lib/index.js +1344 -0
  226. package/dist/lib/index.min.js +1 -0
  227. package/dist/lib/index.umd.cjs +1348 -0
  228. package/dist/lib/index.umd.min.cjs +1 -0
  229. package/dist/main/altcha.i18n.js +8389 -0
  230. package/dist/main/altcha.i18n.min.js +1 -0
  231. package/dist/main/altcha.i18n.umd.cjs +8392 -0
  232. package/dist/main/altcha.i18n.umd.min.cjs +1 -0
  233. package/dist/main/altcha.js +7069 -0
  234. package/dist/main/altcha.min.js +1 -0
  235. package/dist/main/altcha.umd.cjs +7072 -0
  236. package/dist/main/altcha.umd.min.cjs +1 -0
  237. package/dist/plugins/obfuscation.plugin.d.ts +1 -0
  238. package/dist/plugins/obfuscation.plugin.js +320 -0
  239. package/dist/plugins/obfuscation.plugin.min.js +1 -0
  240. package/dist/plugins/obfuscation.plugin.umd.cjs +325 -0
  241. package/dist/plugins/obfuscation.plugin.umd.min.cjs +1 -0
  242. package/dist/themes/aqua.css +19 -0
  243. package/dist/themes/aqua.min.css +1 -0
  244. package/dist/themes/business.css +15 -0
  245. package/dist/themes/business.min.css +1 -0
  246. package/dist/themes/caramel.css +19 -0
  247. package/dist/themes/caramel.min.css +1 -0
  248. package/dist/themes/cupcake.css +16 -0
  249. package/dist/themes/cupcake.min.css +1 -0
  250. package/dist/themes/cyberpunk.css +24 -0
  251. package/dist/themes/cyberpunk.min.css +1 -0
  252. package/dist/themes/lime.css +13 -0
  253. package/dist/themes/lime.min.css +1 -0
  254. package/dist/themes/wireframe.css +17 -0
  255. package/dist/themes/wireframe.min.css +1 -0
  256. package/dist/types/generic.d.ts +25 -0
  257. package/dist/types/generic.js +1 -0
  258. package/dist/types/global.d.ts +5 -0
  259. package/dist/types/global.js +1 -0
  260. package/dist/types/index.d.ts +352 -0
  261. package/dist/types/index.js +23 -0
  262. package/dist/types/jsx.d.ts +13 -0
  263. package/dist/types/jsx.js +1 -0
  264. package/dist/types/react.d.ts +35 -0
  265. package/dist/types/react.js +1 -0
  266. package/dist/types/svelte.d.ts +26 -0
  267. package/dist/types/svelte.js +1 -0
  268. package/dist/workers/argon2id.js +786 -0
  269. package/dist/workers/pbkdf2.js +166 -0
  270. package/dist/workers/scrypt.js +739 -0
  271. package/dist/workers/sha.js +160 -0
  272. package/package.json +115 -81
  273. package/dist/altcha.d.ts +0 -183
  274. package/dist/altcha.i18n.d.ts +0 -183
  275. package/dist/altcha.i18n.js +0 -4182
  276. package/dist/altcha.i18n.umd.js +0 -4
  277. package/dist/altcha.js +0 -3105
  278. package/dist/altcha.umd.cjs +0 -4
  279. package/dist_external/altcha.css +0 -1
  280. package/dist_external/altcha.d.ts +0 -183
  281. package/dist_external/altcha.js +0 -3075
  282. package/dist_external/altcha.umd.cjs +0 -3
  283. package/dist_external/worker.js +0 -1
  284. package/dist_i18n/af.d.ts +0 -1
  285. package/dist_i18n/af.js +0 -94
  286. package/dist_i18n/af.umd.cjs +0 -1
  287. package/dist_i18n/africa.d.ts +0 -1
  288. package/dist_i18n/africa.umd.cjs +0 -1
  289. package/dist_i18n/all.d.ts +0 -1
  290. package/dist_i18n/all.umd.cjs +0 -1
  291. package/dist_i18n/am.d.ts +0 -1
  292. package/dist_i18n/am.js +0 -94
  293. package/dist_i18n/am.umd.cjs +0 -1
  294. package/dist_i18n/americas.d.ts +0 -1
  295. package/dist_i18n/americas.umd.cjs +0 -1
  296. package/dist_i18n/ar.d.ts +0 -1
  297. package/dist_i18n/ar.js +0 -94
  298. package/dist_i18n/ar.umd.cjs +0 -1
  299. package/dist_i18n/asia.d.ts +0 -1
  300. package/dist_i18n/asia.umd.cjs +0 -1
  301. package/dist_i18n/az.d.ts +0 -1
  302. package/dist_i18n/az.js +0 -94
  303. package/dist_i18n/az.umd.cjs +0 -1
  304. package/dist_i18n/be.d.ts +0 -1
  305. package/dist_i18n/be.js +0 -94
  306. package/dist_i18n/be.umd.cjs +0 -1
  307. package/dist_i18n/bg.d.ts +0 -1
  308. package/dist_i18n/bg.js +0 -94
  309. package/dist_i18n/bg.umd.cjs +0 -1
  310. package/dist_i18n/bn.d.ts +0 -1
  311. package/dist_i18n/bn.js +0 -94
  312. package/dist_i18n/bn.umd.cjs +0 -1
  313. package/dist_i18n/bs.d.ts +0 -1
  314. package/dist_i18n/bs.js +0 -94
  315. package/dist_i18n/bs.umd.cjs +0 -1
  316. package/dist_i18n/ca.d.ts +0 -1
  317. package/dist_i18n/ca.js +0 -94
  318. package/dist_i18n/ca.umd.cjs +0 -1
  319. package/dist_i18n/cs.d.ts +0 -1
  320. package/dist_i18n/cs.js +0 -94
  321. package/dist_i18n/cs.umd.cjs +0 -1
  322. package/dist_i18n/da.d.ts +0 -1
  323. package/dist_i18n/da.js +0 -94
  324. package/dist_i18n/da.umd.cjs +0 -1
  325. package/dist_i18n/de.d.ts +0 -1
  326. package/dist_i18n/de.js +0 -94
  327. package/dist_i18n/de.umd.cjs +0 -1
  328. package/dist_i18n/el.d.ts +0 -1
  329. package/dist_i18n/el.js +0 -94
  330. package/dist_i18n/el.umd.cjs +0 -1
  331. package/dist_i18n/en.d.ts +0 -1
  332. package/dist_i18n/en.js +0 -94
  333. package/dist_i18n/en.umd.cjs +0 -1
  334. package/dist_i18n/es-419.d.ts +0 -1
  335. package/dist_i18n/es-419.js +0 -94
  336. package/dist_i18n/es-419.umd.cjs +0 -1
  337. package/dist_i18n/es-es.d.ts +0 -1
  338. package/dist_i18n/es-es.js +0 -94
  339. package/dist_i18n/es-es.umd.cjs +0 -1
  340. package/dist_i18n/et.d.ts +0 -1
  341. package/dist_i18n/et.js +0 -94
  342. package/dist_i18n/et.umd.cjs +0 -1
  343. package/dist_i18n/eu.d.ts +0 -1
  344. package/dist_i18n/eu.js +0 -94
  345. package/dist_i18n/eu.umd.cjs +0 -1
  346. package/dist_i18n/europe.d.ts +0 -1
  347. package/dist_i18n/europe.umd.cjs +0 -1
  348. package/dist_i18n/fa.d.ts +0 -1
  349. package/dist_i18n/fa.js +0 -94
  350. package/dist_i18n/fa.umd.cjs +0 -1
  351. package/dist_i18n/fi.d.ts +0 -1
  352. package/dist_i18n/fi.js +0 -94
  353. package/dist_i18n/fi.umd.cjs +0 -1
  354. package/dist_i18n/fr-ca.d.ts +0 -1
  355. package/dist_i18n/fr-ca.js +0 -94
  356. package/dist_i18n/fr-ca.umd.cjs +0 -1
  357. package/dist_i18n/fr-fr.d.ts +0 -1
  358. package/dist_i18n/fr-fr.js +0 -94
  359. package/dist_i18n/fr-fr.umd.cjs +0 -1
  360. package/dist_i18n/ga.d.ts +0 -1
  361. package/dist_i18n/ga.js +0 -94
  362. package/dist_i18n/ga.umd.cjs +0 -1
  363. package/dist_i18n/he.d.ts +0 -1
  364. package/dist_i18n/he.js +0 -94
  365. package/dist_i18n/he.umd.cjs +0 -1
  366. package/dist_i18n/hi.d.ts +0 -1
  367. package/dist_i18n/hi.js +0 -94
  368. package/dist_i18n/hi.umd.cjs +0 -1
  369. package/dist_i18n/hr.d.ts +0 -1
  370. package/dist_i18n/hr.js +0 -94
  371. package/dist_i18n/hr.umd.cjs +0 -1
  372. package/dist_i18n/hu.d.ts +0 -1
  373. package/dist_i18n/hu.js +0 -94
  374. package/dist_i18n/hu.umd.cjs +0 -1
  375. package/dist_i18n/hy.d.ts +0 -1
  376. package/dist_i18n/hy.js +0 -94
  377. package/dist_i18n/hy.umd.cjs +0 -1
  378. package/dist_i18n/id.d.ts +0 -1
  379. package/dist_i18n/id.js +0 -94
  380. package/dist_i18n/id.umd.cjs +0 -1
  381. package/dist_i18n/is.d.ts +0 -1
  382. package/dist_i18n/is.js +0 -94
  383. package/dist_i18n/is.umd.cjs +0 -1
  384. package/dist_i18n/it.d.ts +0 -1
  385. package/dist_i18n/it.js +0 -94
  386. package/dist_i18n/it.umd.cjs +0 -1
  387. package/dist_i18n/ja.d.ts +0 -1
  388. package/dist_i18n/ja.js +0 -94
  389. package/dist_i18n/ja.umd.cjs +0 -1
  390. package/dist_i18n/ka.d.ts +0 -1
  391. package/dist_i18n/ka.js +0 -94
  392. package/dist_i18n/ka.umd.cjs +0 -1
  393. package/dist_i18n/kk.d.ts +0 -1
  394. package/dist_i18n/kk.js +0 -94
  395. package/dist_i18n/kk.umd.cjs +0 -1
  396. package/dist_i18n/ko.d.ts +0 -1
  397. package/dist_i18n/ko.js +0 -94
  398. package/dist_i18n/ko.umd.cjs +0 -1
  399. package/dist_i18n/lb.d.ts +0 -1
  400. package/dist_i18n/lb.js +0 -94
  401. package/dist_i18n/lb.umd.cjs +0 -1
  402. package/dist_i18n/lt.d.ts +0 -1
  403. package/dist_i18n/lt.js +0 -94
  404. package/dist_i18n/lt.umd.cjs +0 -1
  405. package/dist_i18n/lv.d.ts +0 -1
  406. package/dist_i18n/lv.js +0 -94
  407. package/dist_i18n/lv.umd.cjs +0 -1
  408. package/dist_i18n/me.d.ts +0 -1
  409. package/dist_i18n/me.js +0 -94
  410. package/dist_i18n/me.umd.cjs +0 -1
  411. package/dist_i18n/mk.d.ts +0 -1
  412. package/dist_i18n/mk.js +0 -94
  413. package/dist_i18n/mk.umd.cjs +0 -1
  414. package/dist_i18n/mr.d.ts +0 -1
  415. package/dist_i18n/mr.js +0 -94
  416. package/dist_i18n/mr.umd.cjs +0 -1
  417. package/dist_i18n/mt.d.ts +0 -1
  418. package/dist_i18n/mt.js +0 -94
  419. package/dist_i18n/mt.umd.cjs +0 -1
  420. package/dist_i18n/nb.d.ts +0 -1
  421. package/dist_i18n/nb.js +0 -95
  422. package/dist_i18n/nb.umd.cjs +0 -1
  423. package/dist_i18n/nl.d.ts +0 -1
  424. package/dist_i18n/nl.js +0 -94
  425. package/dist_i18n/nl.umd.cjs +0 -1
  426. package/dist_i18n/pl.d.ts +0 -1
  427. package/dist_i18n/pl.js +0 -94
  428. package/dist_i18n/pl.umd.cjs +0 -1
  429. package/dist_i18n/pt-br.d.ts +0 -1
  430. package/dist_i18n/pt-br.js +0 -94
  431. package/dist_i18n/pt-br.umd.cjs +0 -1
  432. package/dist_i18n/pt-pt.d.ts +0 -1
  433. package/dist_i18n/pt-pt.js +0 -94
  434. package/dist_i18n/pt-pt.umd.cjs +0 -1
  435. package/dist_i18n/ro.d.ts +0 -1
  436. package/dist_i18n/ro.js +0 -94
  437. package/dist_i18n/ro.umd.cjs +0 -1
  438. package/dist_i18n/ru.d.ts +0 -1
  439. package/dist_i18n/ru.js +0 -94
  440. package/dist_i18n/ru.umd.cjs +0 -1
  441. package/dist_i18n/sk.d.ts +0 -1
  442. package/dist_i18n/sk.js +0 -94
  443. package/dist_i18n/sk.umd.cjs +0 -1
  444. package/dist_i18n/sl.d.ts +0 -1
  445. package/dist_i18n/sl.js +0 -94
  446. package/dist_i18n/sl.umd.cjs +0 -1
  447. package/dist_i18n/sq.d.ts +0 -1
  448. package/dist_i18n/sq.js +0 -94
  449. package/dist_i18n/sq.umd.cjs +0 -1
  450. package/dist_i18n/sr.d.ts +0 -1
  451. package/dist_i18n/sr.js +0 -94
  452. package/dist_i18n/sr.umd.cjs +0 -1
  453. package/dist_i18n/sv.d.ts +0 -1
  454. package/dist_i18n/sv.js +0 -94
  455. package/dist_i18n/sv.umd.cjs +0 -1
  456. package/dist_i18n/sw.d.ts +0 -1
  457. package/dist_i18n/sw.js +0 -94
  458. package/dist_i18n/sw.umd.cjs +0 -1
  459. package/dist_i18n/ta.d.ts +0 -1
  460. package/dist_i18n/ta.js +0 -94
  461. package/dist_i18n/ta.umd.cjs +0 -1
  462. package/dist_i18n/te.d.ts +0 -1
  463. package/dist_i18n/te.js +0 -94
  464. package/dist_i18n/te.umd.cjs +0 -1
  465. package/dist_i18n/th.d.ts +0 -1
  466. package/dist_i18n/th.js +0 -94
  467. package/dist_i18n/th.umd.cjs +0 -1
  468. package/dist_i18n/tk.d.ts +0 -1
  469. package/dist_i18n/tk.js +0 -94
  470. package/dist_i18n/tk.umd.cjs +0 -1
  471. package/dist_i18n/tr.d.ts +0 -1
  472. package/dist_i18n/tr.js +0 -94
  473. package/dist_i18n/tr.umd.cjs +0 -1
  474. package/dist_i18n/uk.d.ts +0 -1
  475. package/dist_i18n/uk.js +0 -94
  476. package/dist_i18n/uk.umd.cjs +0 -1
  477. package/dist_i18n/ur.d.ts +0 -1
  478. package/dist_i18n/ur.js +0 -94
  479. package/dist_i18n/ur.umd.cjs +0 -1
  480. package/dist_i18n/uz.d.ts +0 -1
  481. package/dist_i18n/uz.js +0 -94
  482. package/dist_i18n/uz.umd.cjs +0 -1
  483. package/dist_i18n/vi.d.ts +0 -1
  484. package/dist_i18n/vi.js +0 -94
  485. package/dist_i18n/vi.umd.cjs +0 -1
  486. package/dist_i18n/yo.d.ts +0 -1
  487. package/dist_i18n/yo.js +0 -94
  488. package/dist_i18n/yo.umd.cjs +0 -1
  489. package/dist_i18n/zh-cn.d.ts +0 -1
  490. package/dist_i18n/zh-cn.js +0 -94
  491. package/dist_i18n/zh-cn.umd.cjs +0 -1
  492. package/dist_i18n/zh-tw.d.ts +0 -1
  493. package/dist_i18n/zh-tw.js +0 -94
  494. package/dist_i18n/zh-tw.umd.cjs +0 -1
@@ -0,0 +1 @@
1
+ !function(e){"function"==typeof define&&define.amd?define(e):e()}(function(){"use strict";var e=document.createElement("style");e.textContent=':root {\n --altcha-border-color: var(--altcha-color-neutral);\n --altcha-border-width: 1px;\n --altcha-border-radius: 6px;\n --altcha-color-base: light-dark(oklch(100% 0.00011 271.152), oklch(20.904% 0.00002 271.152));\n --altcha-color-base-content: light-dark(\n \toklch(20.904% 0.00002 271.152),\n \toklch(100% 0.00011 271.152)\n );\n --altcha-color-error: oklch(51.284% 0.20527 28.678);\n --altcha-color-error-content: oklch(100% 0.00011 271.152);\n --altcha-color-neutral: light-dark(oklch(83.591% 0.0001 271.152), oklch(46.04% 0.00005 271.152));\n --altcha-color-neutral-content: light-dark(\n \toklch(46.76% 0.00005 271.152),\n \toklch(100% 0.00011 271.152)\n );\n --altcha-color-primary: oklch(40.279% 0.2449 268.131);\n --altcha-color-primary-content: oklch(100% 0.00011 271.152);\n --altcha-color-success: oklch(55.748% 0.18968 142.511);\n --altcha-color-success-content: oklch(100% 0.00011 271.152);\n --altcha-checkbox-border-color: var(--altcha-color-neutral);\n --altcha-checkbox-border-radius: 5px;\n --altcha-checkbox-border-width: var(--altcha-border-width);\n --altcha-checkbox-outline: 2px solid var(--altcha-checkbox-outline-color);\n --altcha-checkbox-outline-color: light-dark(\n \tcolor-mix(in srgb, var(--altcha-color-primary) 20%, transparent),\n \tcolor-mix(in srgb, var(--altcha-color-primary) 60%, transparent)\n );\n --altcha-checkbox-outline-offset: 2px;\n --altcha-checkbox-size: 22px;\n --altcha-checkbox-transition-duration: var(--altcha-transition-duration);\n --altcha-input-background-color: var(--altcha-color-base);\n --altcha-input-border-radius: 3px;\n --altcha-input-border-width: 1px;\n --altcha-input-color: var(--altcha-color-base-content);\n --altcha-max-width: 320px;\n --altcha-padding: 0.75rem;\n --altcha-popover-arrow-size: 6px;\n --altcha-popover-color: var(--altcha-border-color);\n --altcha-shadow: drop-shadow(3px 3px 6px oklch(0% 0 0 / 0.2));\n --altcha-spinner-color: var(--altcha-color-base-content);\n --altcha-switch-background-color: var(--altcha-color-neutral);\n --altcha-switch-border-radius: calc(infinity * 1px);\n --altcha-switch-height: var(--altcha-checkbox-size);\n --altcha-switch-padding: 0.25rem;\n --altcha-switch-width: calc(var(--altcha-checkbox-size) * 1.75);\n --altcha-switch-toggle-border-radius: 100%;\n --altcha-switch-toggle-color: var(--altcha-color-neutral-content);\n --altcha-switch-toggle-size: calc(\n \tvar(--altcha-switch-height) - calc(var(--altcha-switch-padding) * 2)\n );\n --altcha-transition-duration: 0.6s;\n --altcha-z-index: 99999999;\n --altcha-z-index-popover: 999999999;\n}\n\n.altcha {\n all: revert-layer;\n display: none;\n font-family: inherit;\n font-size: inherit;\n position: relative;\n}\n.altcha[data-visible] {\n display: block;\n}\n.altcha-popover, .altcha-popover * {\n all: revert-layer;\n box-sizing: border-box;\n font-family: inherit;\n font-size: inherit;\n line-height: 1.25;\n}\n.altcha * {\n all: revert-layer;\n box-sizing: border-box;\n font-family: inherit;\n font-size: inherit;\n line-height: 1.25;\n}\n.altcha a, .altcha-popover a {\n color: currentColor;\n text-decoration: none;\n}\n.altcha a:hover, .altcha-popover a:hover {\n color: currentColor;\n}\n.altcha-main {\n align-items: start;\n background-color: var(--altcha-color-base);\n border: var(--altcha-border-width, 1px) solid var(--altcha-border-color);\n border-radius: var(--altcha-border-radius, 0);\n color: var(--altcha-color-base-content);\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n justify-content: space-between;\n padding: var(--altcha-padding);\n max-width: var(--altcha-max-width, 100%);\n}\n.altcha-main > * {\n display: flex;\n width: 100%;\n}\n.altcha-main > *:first-child {\n flex-grow: 1;\n}\n.altcha-checkbox-wrap {\n align-items: center;\n display: flex;\n flex-direction: row;\n flex-grow: 1;\n gap: 0.5rem;\n}\n.altcha-checkbox-wrap > * {\n display: flex;\n}\n.altcha-logo {\n opacity: 0.7;\n}\n.altcha-footer {\n align-items: center;\n display: flex;\n flex-grow: 1;\n gap: 0.5rem;\n justify-content: flex-end;\n font-size: 0.7rem;\n opacity: 0.7;\n}\n.altcha-error {\n font-size: 0.85rem;\n}\n.altcha-button {\n align-items: center;\n background: var(--altcha-color-primary);\n border: var(--altcha-input-border-width) solid var(--altcha-color-primary);\n border-radius: var(--altcha-input-border-radius);\n color: var(--altcha-color-primary-content);\n cursor: pointer;\n display: flex;\n font-size: 0.9rem;\n gap: 0.5rem;\n padding: 0.35rem;\n}\n.altcha-button:focus {\n border-color: var(--altcha-color-primary);\n outline: var(--altcha-checkbox-outline);\n outline-offset: var(--altcha-checkbox-outline-offset);\n}\n.altcha-button > .altcha-spinner, .altcha-button > svg {\n height: 20px;\n width: 20px;\n}\n.altcha-button-secondary {\n background: transparent;\n border-color: var(--altcha-color-neutral);\n color: var(--altcha-color-neutral-content);\n}\n.altcha-input {\n background: var(--altcha-input-background-color);\n border: var(--altcha-input-border-width) solid var(--altcha-color-neutral);\n border-radius: var(--altcha-input-border-radius);\n color: var(--altcha-input-color);\n flex-grow: 1;\n font-size: 1rem;\n min-width: 0;\n padding: 0.25rem;\n width: auto;\n}\n.altcha-input:focus {\n border-color: var(--altcha-color-primary);\n outline: var(--altcha-checkbox-outline);\n outline-offset: var(--altcha-checkbox-outline-offset);\n}\n.altcha-spinner {\n animation: altcha-rotate 0.6s linear infinite;\n border-radius: 100%;\n border: var(--altcha-checkbox-border-width) solid var(--altcha-spinner-color);\n border-bottom-color: transparent;\n border-right-color: transparent;\n opacity: 0.5;\n}\n.altcha-popover {\n background-color: var(--altcha-color-base);\n border: var(--altcha-border-width) solid var(--altcha-border-color);\n border-radius: var(--altcha-border-radius);\n color: var(--altcha-color-base-content);\n filter: var(--altcha-shadow);\n position: absolute;\n left: calc(var(--altcha-padding) / 2);\n max-width: calc(var(--altcha-max-width) - var(--altcha-padding));\n top: calc(var(--altcha-padding) + var(--altcha-checkbox-size) + var(--altcha-popover-arrow-size));\n z-index: var(--altcha-z-index-popover);\n}\n.altcha-popover-arrow {\n border: var(--altcha-popover-arrow-size) solid transparent;\n border-bottom-color: var(--altcha-popover-color);\n content: "";\n height: 0;\n left: calc(var(--altcha-checkbox-size) / 2);\n position: absolute;\n top: calc(var(--altcha-popover-arrow-size) * -2);\n width: 0;\n}\n.altcha-popover-content {\n max-height: 100dvh;\n overflow: auto;\n padding: var(--altcha-padding);\n}\n.altcha-popover[data-top=true][data-display=standard] {\n bottom: calc(100% - (var(--altcha-padding) - var(--altcha-popover-arrow-size)));\n top: auto;\n}\n.altcha-popover[data-top=true][data-display=standard] .altcha-popover-arrow {\n border-bottom-color: transparent;\n border-top-color: var(--altcha-popover-color);\n bottom: calc(var(--altcha-popover-arrow-size) * -2);\n top: auto;\n}\n.altcha-popover[data-variant=error] {\n --altcha-popover-color: var(--altcha-color-error);\n background-color: var(--altcha-color-error);\n border-color: var(--altcha-color-error);\n color: var(--altcha-color-error-content);\n}\n.altcha-popover[data-variant=error] .altcha-popover-content {\n padding: calc(var(--altcha-padding) / 1.5) var(--altcha-padding);\n}\n.altcha-popover[data-display=overlay] {\n animation: altcha-overlay-slidein 0.5s forwards;\n left: 50%;\n position: fixed;\n top: 45%;\n transform: translate(-50%, -50%);\n width: var(--altcha-max-width);\n z-index: var(--altcha-z-index);\n}\n.altcha-popover[data-display=bottomsheet] {\n animation: altcha-bottomsheet-slideup 0.5s forwards;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n border-bottom: 0;\n bottom: -100%;\n left: 50%;\n position: fixed;\n top: auto;\n transform: translate(-50%, 0);\n width: var(--altcha-max-width);\n z-index: var(--altcha-z-index);\n}\n.altcha-popover[data-display=bottomsheet] .altcha-popover-content {\n padding-bottom: calc(var(--altcha-padding) * 2);\n}\n.altcha-popover-backdrop {\n background: var(--altcha-color-base-content);\n bottom: 0;\n left: 0;\n opacity: 0.1;\n position: fixed;\n right: 0;\n top: 0;\n transition: opacity 0.5s;\n z-index: var(--altcha-z-index);\n}\n.altcha-popover-close {\n color: var(--altcha-color-base-content);\n cursor: pointer;\n display: inline-block;\n font-size: 1rem;\n height: 1.25rem;\n line-height: 0.95;\n position: absolute;\n right: 0;\n text-align: center;\n text-shadow: 0 0 1px var(--altcha-color-base);\n top: -1.5rem;\n width: 1.25rem;\n z-index: var(--altcha-z-index);\n}\n.altcha-popover[data-display=bottomsheet] .altcha-footer, .altcha-popover[data-display=overlay] .altcha-footer {\n align-items: center;\n justify-content: center;\n padding-top: 1rem;\n gap: 0.5rem;\n}\n.altcha-popover[data-display=bottomsheet] .altcha-footer svg, .altcha-popover[data-display=overlay] .altcha-footer svg {\n height: 18px;\n width: 18px;\n vertical-align: middle;\n}\n.altcha-code-challenge > form {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n}\n.altcha-code-challenge-title {\n font-weight: 600;\n}\n.altcha-code-challenge-text {\n font-size: 0.85rem;\n}\n.altcha-code-challenge-image {\n background: white;\n border: var(--altcha-input-border-width) solid var(--altcha-color-neutral);\n border-radius: var(--altcha-input-border-radius);\n object-fit: contain;\n height: 50px;\n}\n.altcha-code-challenge-row {\n display: flex;\n gap: 0.5rem;\n}\n.altcha-code-challenge-buttons {\n align-items: center;\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n margin-top: var(--altcha-padding);\n justify-content: space-between;\n}\n.altcha-code-challenge-buttons button {\n justify-content: center;\n width: 100%;\n}\n.altcha-checkbox {\n cursor: pointer;\n height: var(--altcha-checkbox-size);\n position: relative;\n width: var(--altcha-checkbox-size);\n}\n.altcha-checkbox input {\n appearance: none;\n background: var(--altcha-input-background-color);\n border: var(--altcha-checkbox-border-width, 2px) solid var(--altcha-checkbox-border-color);\n border-radius: var(--altcha-checkbox-border-radius);\n height: var(--altcha-checkbox-size);\n left: 0;\n margin: 0;\n outline: none;\n padding: 0;\n position: absolute;\n top: 0;\n width: var(--altcha-checkbox-size);\n}\n.altcha-checkbox input:before {\n border-radius: var(--altcha-checkbox-border-radius);\n content: "";\n width: 100%;\n height: 100%;\n background: var(--altcha-color-neutral);\n display: block;\n transform: scale(0);\n}\n.altcha-checkbox input:focus {\n outline: var(--altcha-checkbox-outline);\n outline-offset: var(--altcha-checkbox-outline-offset);\n}\n.altcha-checkbox input:checked {\n background-color: var(--altcha-color-success);\n border-color: var(--altcha-color-success);\n}\n.altcha-checkbox input:checked::before {\n background-color: var(--altcha-color-success);\n opacity: 0;\n transform: scale(2.2);\n transition: all var(--altcha-checkbox-transition-duration) ease;\n transition-delay: 0.1s;\n}\n.altcha-checkbox svg {\n --altcha-radio-svg-size: calc(var(--altcha-checkbox-size) * 0.5);\n --altcha-radio-svg-offset: calc(var(--altcha-checkbox-size) * 0.25);\n fill: none;\n left: var(--altcha-radio-svg-offset);\n height: var(--altcha-radio-svg-size);\n opacity: 0;\n position: absolute;\n stroke: currentColor;\n stroke-width: 2;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-dasharray: 16px;\n stroke-dashoffset: 16px;\n top: var(--altcha-radio-svg-offset);\n transform: translate3d(0, 0, 0);\n width: var(--altcha-radio-svg-size);\n}\n.altcha-checkbox input:checked + svg {\n color: var(--altcha-color-success-content);\n opacity: 1;\n stroke-dashoffset: 0;\n transition: all var(--altcha-checkbox-transition-duration) ease;\n transition-delay: 0.1s;\n}\n.altcha-checkbox-spinner {\n display: none;\n left: 0;\n height: var(--altcha-checkbox-size);\n position: absolute;\n top: 0;\n width: var(--altcha-checkbox-size);\n}\n.altcha-checkbox[data-loading=true] input {\n appearance: none;\n opacity: 0;\n pointer-events: none;\n}\n.altcha-checkbox[data-loading=true] .altcha-checkbox-spinner {\n display: block;\n}\n.altcha-checkbox-native {\n height: var(--altcha-checkbox-size);\n position: relative;\n width: var(--altcha-checkbox-size);\n}\n.altcha-checkbox-native input {\n height: var(--altcha-checkbox-size);\n margin: 0;\n width: var(--altcha-checkbox-size);\n}\n.altcha-checkbox-native input:focus {\n outline: var(--altcha-checkbox-outline);\n outline-offset: var(--altcha-checkbox-outline-offset);\n}\n.altcha-checkbox-native-spinner {\n display: none;\n left: 0;\n height: var(--altcha-checkbox-size);\n position: absolute;\n top: 0;\n width: var(--altcha-checkbox-size);\n}\n.altcha-checkbox-native[data-loading=true] input {\n appearance: none;\n opacity: 0;\n pointer-events: none;\n}\n.altcha-checkbox-native[data-loading=true] .altcha-checkbox-native-spinner {\n display: block;\n}\n.altcha-switch {\n align-items: center;\n border-radius: var(--altcha-switch-border-radius);\n background-color: var(--altcha-switch-background-color);\n cursor: pointer;\n display: flex;\n height: var(--altcha-switch-height);\n padding: var(--altcha-switch-padding);\n position: relative;\n width: var(--altcha-switch-width);\n}\n.altcha-switch:focus-within {\n outline: var(--altcha-checkbox-outline);\n outline-offset: var(--altcha-checkbox-outline-offset);\n}\n.altcha-switch input {\n appearance: none;\n height: 100%;\n left: 0;\n opacity: 0;\n position: absolute;\n top: 0;\n width: 100%;\n}\n.altcha-switch-toggle {\n align-items: center;\n background-color: var(--altcha-switch-toggle-color);\n border-radius: var(--altcha-switch-toggle-border-radius);\n display: flex;\n height: var(--altcha-switch-toggle-size);\n justify-content: center;\n left: var(--altcha-switch-padding);\n position: absolute;\n transition: width 150ms ease-out, left 150ms ease-out;\n width: var(--altcha-switch-toggle-size);\n}\n.altcha-switch-spinner {\n display: none;\n height: var(--altcha-switch-toggle-size);\n width: var(--altcha-switch-toggle-size);\n}\n.altcha-switch[data-loading=true] {\n pointer-events: none;\n}\n.altcha-switch[data-loading=true] .altcha-switch-spinner {\n display: block;\n}\n.altcha-switch[data-loading=true] .altcha-switch-toggle {\n background-color: transparent;\n left: calc(50% - var(--altcha-switch-toggle-size) / 2);\n}\n[data-state=verified] .altcha-switch {\n --altcha-switch-background-color: var(--altcha-color-success);\n}\n[data-state=verified] .altcha-switch-toggle {\n background-color: var(--altcha-color-success-content);\n left: calc(100% - var(--altcha-switch-height) + var(--altcha-switch-padding));\n}\n[dir=rtl] .altcha-switch-toggle {\n left: calc(100% - var(--altcha-switch-height) + var(--altcha-switch-padding));\n}\n[dir=rtl][data-state=verified] .altcha-switch-toggle {\n left: var(--altcha-switch-padding);\n}\n.altcha-floating-arrow {\n border: 6px solid transparent;\n border-bottom-color: var(--altcha-border-color);\n content: "";\n height: 0;\n left: 12px;\n position: absolute;\n top: -12px;\n width: 0;\n}\n.altcha-overlay-backdrop {\n bottom: 0;\n left: 0;\n position: fixed;\n right: 0;\n top: 0;\n transition: opacity var(--altcha-transition-duration);\n z-index: var(--altcha-z-index);\n}\n.altcha-overlay-close {\n display: inline-block;\n color: currentColor;\n cursor: pointer;\n font-size: 1rem;\n height: 1rem;\n line-height: 0.85;\n position: absolute;\n right: 0;\n text-align: center;\n text-shadow: 0 0 1px var(--altcha-color-base);\n top: -1.5rem;\n width: 1rem;\n z-index: var(--altcha-z-index);\n}\n.altcha[data-display=overlay] {\n animation: altcha-overlay-slidein var(--altcha-transition-duration) forwards;\n filter: var(--altcha-shadow);\n left: 50%;\n opacity: 0;\n position: fixed;\n top: 45%;\n transform: translate(-50%, -50%);\n z-index: var(--altcha-z-index);\n}\n.altcha[data-display=overlay] .altcha-main {\n width: var(--altcha-max-width);\n}\n.altcha[data-display=floating] {\n display: none;\n filter: var(--altcha-shadow);\n left: var(--altcha-floating-left, -100%);\n position: fixed;\n top: var(--altcha-floating-top, -100%);\n z-index: var(--altcha-z-index);\n}\n.altcha[data-display=floating] .altcha-main {\n width: var(--altcha-max-width);\n}\n.altcha[data-display=floating][data-placement=top] .altcha-floating-arrow {\n border-bottom-color: transparent;\n border-top-color: var(--altcha-border-color);\n bottom: -12px;\n top: auto;\n}\n.altcha[data-display=floating][data-visible] {\n display: flex;\n}\n.altcha[data-display=bar] {\n bottom: -100%;\n filter: var(--altcha-shadow);\n left: 0;\n position: fixed;\n right: 0;\n transition: bottom var(--altcha-transition-duration), top var(--altcha-transition-duration);\n z-index: var(--altcha-z-index);\n}\n.altcha[data-display=bar] .altcha-main {\n align-items: center;\n border-radius: 0;\n border-width: var(--altcha-border-width) 0 0 0;\n flex-direction: row;\n max-width: 100% !important;\n}\n.altcha[data-display=bar] .altcha-main > * {\n width: auto;\n}\n.altcha[data-display=bar][data-placement=top] {\n bottom: auto;\n top: -100%;\n}\n.altcha[data-display=bar][data-placement=top] .altcha-main {\n border-width: 0 0 var(--altcha-border-width) 0;\n}\n.altcha[data-display=bar][data-placement=bottom]:not([data-state=unverified]) {\n bottom: 0;\n}\n.altcha[data-display=bar][data-placement=top]:not([data-state=unverified]) {\n top: 0;\n}\n.altcha[data-display=invisible] {\n display: none;\n}\n\n@keyframes altcha-rotate {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes altcha-bottomsheet-slideup {\n 100% {\n bottom: 0;\n }\n}\n@keyframes altcha-overlay-slidein {\n 100% {\n opacity: 1;\n top: 50%;\n }\n}/*$vite$:1*/',document.head.appendChild(e);const t=!1;var n=Array.isArray,r=Array.prototype.indexOf,a=Array.prototype.includes,o=Array.from,i=Object.keys,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyDescriptors,u=Object.prototype,d=Array.prototype,f=Object.getPrototypeOf,h=Object.isExtensible;const v=()=>{};function p(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}const g=1<<24,b=16,m=32,y=64,w=512,_=1024,x=2048,k=4096,$=8192,C=16384,E=32768,S=65536,O=1<<17,R=1<<18,A=1<<19,I=65536,P=1<<21,L=1<<23,T=Symbol("$state"),z=Symbol("legacy props"),N=Symbol(""),V=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},M=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function D(e){return e===this.v}function j(e,t){return e!=e?t==t:e!==t||null!==e&&"object"==typeof e||"function"==typeof e}function F(e){return!j(e,this.v)}const U="[",q="[!",H={},G=Symbol(),B="http://www.w3.org/1999/xhtml";let Z=null;function J(e){Z=e}function Y(e,t=!1,n){Z={p:Z,i:!1,c:null,e:null,s:e,x:null,l:null}}function W(e){var t=Z,n=t.e;if(null!==n)for(var r of(t.e=null,n))nn(r);return void 0!==e&&(t.x=e),t.i=!0,Z=t.p,e??{}}let K=[];function X(){var e=K;K=[],function(e){for(var t=0;t<e.length;t++)e[t]()}(e)}function Q(e){if(0===K.length&&!Ue){var t=K;queueMicrotask(()=>{t===K&&X()})}K.push(e)}function ee(){for(;K.length>0;)X()}function te(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let ne,re=!1;function ae(e){re=e}function oe(e){if(null===e)throw te(),H;return ne=e}function ie(){return oe(xe(ne))}function le(e){if(re){if(null!==xe(ne))throw te(),H;ne=e}}function ce(e=1){if(re){for(var t=e,n=ne;t--;)n=xe(n);ne=n}}function se(e=!0){for(var t=0,n=ne;;){if(8===n.nodeType){var r=n.data;if("]"===r){if(0===t)return n;t-=1}else(r===U||r===q||"["===r[0]&&!isNaN(Number(r.slice(1))))&&(t+=1)}var a=xe(n);e&&n.remove(),n=a}}function ue(e){if(!e||8!==e.nodeType)throw te(),H;return e.data}function de(e){if("object"!=typeof e||null===e||T in e)return e;const t=f(e);if(t!==u&&t!==d)return e;var r=new Map,a=n(e),o=ft(0),i=Vt,l=e=>{if(Vt===i)return e();var t=Ct,n=Vt;St(null),Mt(i);var r=e();return St(t),Mt(n),r};return a&&r.set("length",ft(e.length)),new Proxy(e,{defineProperty(e,t,n){"value"in n&&!1!==n.configurable&&!1!==n.enumerable&&!1!==n.writable||function(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}();var a=r.get(t);return void 0===a?l(()=>{var e=ft(n.value);return r.set(t,e),e}):vt(a,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(void 0===n){if(t in e){const e=l(()=>ft(G));r.set(t,e),gt(o)}}else vt(n,G),gt(o);return!0},get(t,n,a){if(n===T)return e;var o=r.get(n),i=n in t;if(void 0!==o||i&&!c(t,n)?.writable||(o=l(()=>ft(de(i?t[n]:G))),r.set(n,o)),void 0!==o){var s=Zt(o);return s===G?void 0:s}return Reflect.get(t,n,a)},getOwnPropertyDescriptor(e,t){var n=Reflect.getOwnPropertyDescriptor(e,t);if(n&&"value"in n){var a=r.get(t);a&&(n.value=Zt(a))}else if(void 0===n){var o=r.get(t),i=o?.v;if(void 0!==o&&i!==G)return{enumerable:!0,configurable:!0,value:i,writable:!0}}return n},has(e,t){if(t===T)return!0;var n=r.get(t),a=void 0!==n&&n.v!==G||Reflect.has(e,t);if((void 0!==n||null!==Ot&&(!a||c(e,t)?.writable))&&(void 0===n&&(n=l(()=>ft(a?de(e[t]):G)),r.set(t,n)),Zt(n)===G))return!1;return a},set(e,t,n,i){var s=r.get(t),u=t in e;if(a&&"length"===t)for(var d=n;d<s.v;d+=1){var f=r.get(d+"");void 0!==f?vt(f,G):d in e&&(f=l(()=>ft(G)),r.set(d+"",f))}void 0===s?u&&!c(e,t)?.writable||(vt(s=l(()=>ft(void 0)),de(n)),r.set(t,s)):(u=s.v!==G,vt(s,l(()=>de(n))));var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(i,n),!u){if(a&&"string"==typeof t){var v=r.get("length"),p=Number(t);Number.isInteger(p)&&p>=v.v&&vt(v,p+1)}gt(o)}return!0},ownKeys(e){Zt(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return void 0===t||t.v!==G});for(var[n,a]of r)a.v===G||n in e||t.push(n);return t},setPrototypeOf(){!function(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}()}})}function fe(e){try{if(null!==e&&"object"==typeof e&&T in e)return e[T]}catch{}return e}function he(e,t){return Object.is(fe(e),fe(t))}var ve,pe,ge,be,me;function ye(){if(void 0===ve){ve=window,pe=document,ge=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;be=c(t,"firstChild").get,me=c(t,"nextSibling").get,h(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),h(n)&&(n.__t=void 0)}}function we(e=""){return document.createTextNode(e)}function _e(e){return be.call(e)}function xe(e){return me.call(e)}function ke(e,t){if(!re)return _e(e);var n=_e(ne);if(null===n)n=ne.appendChild(we());else if(t&&3!==n.nodeType){var r=we();return n?.before(r),oe(r),r}return t&&Se(n),oe(n),n}function $e(e,t=!1){if(!re){var n=_e(e);return n instanceof Comment&&""===n.data?xe(n):n}if(t){if(3!==ne?.nodeType){var r=we();return ne?.before(r),oe(r),r}Se(ne)}return ne}function Ce(e,t=1,n=!1){let r=re?ne:e;for(var a;t--;)a=r,r=xe(r);if(!re)return r;if(n){if(3!==r?.nodeType){var o=we();return null===r?a?.after(o):r.before(o),oe(o),o}Se(r)}return oe(r),r}function Ee(e,t,n){let r;return document.createElementNS(t??B,e,r)}function Se(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;null!==t&&3===t.nodeType;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Oe(e){var t=Ot;if(null===t)return Ct.f|=L,e;if(0===(t.f&E)&&!(4&t.f))throw e;Re(e,t)}function Re(e,t){for(;null!==t;){if(128&t.f){if(0===(t.f&E))throw e;try{return void t.b.error(e)}catch(t){e=t}}t=t.parent}throw e}const Ae=-7169;function Ie(e,t){e.f=e.f&Ae|t}function Pe(e){0!==(e.f&w)||null===e.deps?Ie(e,_):Ie(e,k)}function Le(e){if(null!==e)for(const t of e)2&t.f&&0!==(t.f&I)&&(t.f^=I,Le(t.deps))}function Te(e,t,n){0!==(e.f&x)?t.add(e):0!==(e.f&k)&&n.add(e),Le(e.deps),Ie(e,_)}const ze=new Set;let Ne=null,Ve=null,Me=null,De=[],je=null,Fe=!1,Ue=!1;class qe{current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=0;#a=null;#o=new Set;#i=new Set;#l=new Map;is_fork=!1;#c=!1;#s(){return this.is_fork||this.#r>0}skip_effect(e){this.#l.has(e)||this.#l.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#l.get(e);if(t){for(var n of(this.#l.delete(e),t.d))Ie(n,x),Ke(n);for(n of t.m)Ie(n,k),Ke(n)}}process(e){De=[],this.apply();var t=[],n=[];for(const r of e)this.#u(r,t,n);if(this.#s()){this.#d(n),this.#d(t);for(const[e,t]of this.#l)Xe(e,t)}else{for(const e of this.#e)e();this.#e.clear(),0===this.#n&&this.#f(),Ve=this,Ne=null,Je(n),Je(t),Ve=null,this.#a?.resolve()}Me=null}#u(e,t,n){e.f^=_;for(var r=e.first;null!==r;){var a=r.f,o=!!(96&a);if(!(o&&0!==(a&_)||0!==(a&$)||this.#l.has(r))&&null!==r.fn){o?r.f^=_:4&a?t.push(r):jt(r)&&(0!==(a&b)&&this.#i.add(r),Gt(r));var i=r.first;if(null!==i){r=i;continue}}for(;null!==r;){var l=r.next;if(null!==l){r=l;break}r=r.parent}}}#d(e){for(var t=0;t<e.length;t+=1)Te(e[t],this.#o,this.#i)}capture(e,t){t===G||this.previous.has(e)||this.previous.set(e,t),0===(e.f&L)&&(this.current.set(e,e.v),Me?.set(e,e.v))}activate(){Ne=this,this.apply()}deactivate(){Ne===this&&(Ne=null,Me=null)}flush(){if(this.activate(),De.length>0){if(Ge(),null!==Ne&&Ne!==this)return}else 0===this.#n&&this.process([]);this.deactivate()}discard(){for(const e of this.#t)e(this);this.#t.clear()}#f(){if(ze.size>1){this.previous.clear();var e=Me,t=!0;for(const e of ze){if(e===this){t=!1;continue}const r=[];for(const[n,a]of this.current){if(e.current.has(n)){if(!t||a===e.current.get(n))continue;e.current.set(n,a)}r.push(n)}if(0===r.length)continue;const a=[...e.current.keys()].filter(e=>!this.current.has(e));if(a.length>0){var n=De;De=[];const t=new Set,o=new Map;for(const e of r)Ye(e,a,t,o);if(De.length>0){Ne=e,e.apply();for(const t of De)e.#u(t,[],[]);e.deactivate()}De=n}}Ne=null,Me=e}ze.delete(this)}increment(e){this.#n+=1,e&&(this.#r+=1)}decrement(e){this.#n-=1,e&&(this.#r-=1),this.#c||(this.#c=!0,Q(()=>{this.#c=!1,this.#s()?De.length>0&&this.flush():this.revive()}))}revive(){for(const e of this.#o)this.#i.delete(e),Ie(e,x),Ke(e);for(const e of this.#i)Ie(e,k),Ke(e);this.flush()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#a??=p()).promise}static ensure(){if(null===Ne){const e=Ne=new qe;ze.add(Ne),Ue||Q(()=>{Ne===e&&e.flush()})}return Ne}apply(){}}function He(e){var t=Ue;Ue=!0;try{for(;;){if(ee(),0===De.length&&(Ne?.flush(),0===De.length))return void(je=null);Ge()}}finally{Ue=t}}function Ge(){Fe=!0;try{for(var e=0;De.length>0;){var n=qe.ensure();if(e++>1e3)t,Be();n.process(De),st.clear()}}finally{De=[],Fe=!1,je=null}}function Be(){try{!function(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(e){Re(e,je)}}let Ze=null;function Je(e){var t=e.length;if(0!==t){for(var n=0;n<t;){var r=e[n++];if(!(24576&r.f)&&jt(r)&&(Ze=new Set,Gt(r),null===r.deps&&null===r.first&&null===r.nodes&&null===r.teardown&&null===r.ac&&vn(r),Ze?.size>0)){st.clear();for(const e of Ze){if(24576&e.f)continue;const t=[e];let n=e.parent;for(;null!==n;)Ze.has(n)&&(Ze.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){const n=t[e];24576&n.f||Gt(n)}}Ze.clear()}}Ze=null}}function Ye(e,t,n,r){if(!n.has(e)&&(n.add(e),null!==e.reactions))for(const a of e.reactions){const e=a.f;2&e?Ye(a,t,n,r):4194320&e&&0===(e&x)&&We(a,t,r)&&(Ie(a,x),Ke(a))}}function We(e,t,n){const r=n.get(e);if(void 0!==r)return r;if(null!==e.deps)for(const r of e.deps){if(a.call(t,r))return!0;if(2&r.f&&We(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function Ke(e){var t=je=e,n=t.b;if(n?.is_pending&&16777228&e.f&&0===(e.f&E))n.defer_effect(e);else{for(;null!==t.parent;){var r=(t=t.parent).f;if(Fe&&t===Ot&&0!==(r&b)&&0===(r&R)&&0!==(r&E))return;if(96&r){if(0===(r&_))return;t.f^=_}}De.push(t)}}function Xe(e,t){if(0===(e.f&m)||0===(e.f&_)){0!==(e.f&x)?t.d.push(e):0!==(e.f&k)&&t.m.push(e),Ie(e,_);for(var n=e.first;null!==n;)Xe(n,t),n=n.next}}class Qe{parent;is_pending=!1;transform_error;#h;#v=re?ne:null;#p;#g;#b;#m=null;#y=null;#w=null;#_=null;#x=0;#k=0;#$=!1;#o=new Set;#i=new Set;#C=null;#E=function(e){let t,n=0,r=dt(0);return()=>{Qt()&&(Zt(r),an(()=>(0===n&&(t=Wt(()=>e(()=>gt(r)))),n+=1,()=>{Q(()=>{n-=1,0===n&&(t?.(),t=void 0,gt(r))})})))}}(()=>(this.#C=dt(this.#x),()=>{this.#C=null}));constructor(e,t,n,r){this.#h=e,this.#p=t,this.#g=e=>{var t=Ot;t.b=this,t.f|=128,n(e)},this.parent=Ot.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#b=ln(()=>{if(re){const e=this.#v;ie();const t=e.data===q;if(e.data.startsWith("[?")){const t=JSON.parse(e.data.slice(2));this.#S(t)}else t?this.#O():this.#R()}else this.#A()},589824),re&&(this.#h=ne)}#R(){try{this.#m=sn(()=>this.#g(this.#h))}catch(e){this.error(e)}}#S(e){const t=this.#p.failed;t&&(this.#w=sn(()=>{t(this.#h,()=>e,()=>()=>{})}))}#O(){const e=this.#p.pending;e&&(this.is_pending=!0,this.#y=sn(()=>e(this.#h)),Q(()=>{var e=this.#_=document.createDocumentFragment(),t=we();e.append(t),this.#m=this.#I(()=>(qe.ensure(),sn(()=>this.#g(t)))),0===this.#k&&(this.#h.before(e),this.#_=null,pn(this.#y,()=>{this.#y=null}),this.#P())}))}#A(){try{if(this.is_pending=this.has_pending_snippet(),this.#k=0,this.#x=0,this.#m=sn(()=>{this.#g(this.#h)}),this.#k>0){var e=this.#_=document.createDocumentFragment();yn(this.#m,e);const t=this.#p.pending;this.#y=sn(()=>t(this.#h))}else this.#P()}catch(e){this.error(e)}}#P(){this.is_pending=!1;for(const e of this.#o)Ie(e,x),Ke(e);for(const e of this.#i)Ie(e,k),Ke(e);this.#o.clear(),this.#i.clear()}defer_effect(e){Te(e,this.#o,this.#i)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#p.pending}#I(e){var t=Ot,n=Ct,r=Z;Rt(this.#b),St(this.#b),J(this.#b.ctx);try{return e()}catch(e){return Oe(e),null}finally{Rt(t),St(n),J(r)}}#L(e){this.has_pending_snippet()?(this.#k+=e,0===this.#k&&(this.#P(),this.#y&&pn(this.#y,()=>{this.#y=null}),this.#_&&(this.#h.before(this.#_),this.#_=null))):this.parent&&this.parent.#L(e)}update_pending_count(e){this.#L(e),this.#x+=e,this.#C&&!this.#$&&(this.#$=!0,Q(()=>{this.#$=!1,this.#C&&pt(this.#C,this.#x)}))}get_effect_pending(){return this.#E(),Zt(this.#C)}error(e){var t=this.#p.onerror;let n=this.#p.failed;if(!t&&!n)throw e;this.#m&&(fn(this.#m),this.#m=null),this.#y&&(fn(this.#y),this.#y=null),this.#w&&(fn(this.#w),this.#w=null),re&&(oe(this.#v),ce(),oe(se()));var r=!1,a=!1;const o=()=>{r?console.warn("https://svelte.dev/e/svelte_boundary_reset_noop"):(r=!0,a&&function(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}(),null!==this.#w&&pn(this.#w,()=>{this.#w=null}),this.#I(()=>{qe.ensure(),this.#A()}))},i=e=>{try{a=!0,t?.(e,o),a=!1}catch(e){Re(e,this.#b&&this.#b.parent)}n&&(this.#w=this.#I(()=>{qe.ensure();try{return sn(()=>{var t=Ot;t.b=this,t.f|=128,n(this.#h,()=>e,()=>o)})}catch(e){return Re(e,this.#b.parent),null}}))};Q(()=>{var t;try{t=this.transform_error(e)}catch(e){return void Re(e,this.#b&&this.#b.parent)}null!==t&&"object"==typeof t&&"function"==typeof t.then?t.then(i,e=>Re(e,this.#b&&this.#b.parent)):i(t)})}}function et(e,t,n,r){const a=nt;var o=e.filter(e=>!e.settled);if(0!==n.length||0!==o.length){var i,l,c,s,u=Ot,d=(i=Ot,l=Ct,c=Z,s=Ne,function(e=!0){Rt(i),St(l),J(c),e&&s?.activate()}),f=1===o.length?o[0].promise:o.length>1?Promise.all(o.map(e=>e.promise)):null;0!==n.length?f?f.then(v):v():f.then(()=>h(t.map(a)))}else r(t.map(a));function h(e){d();try{r(e)}catch(e){0===(u.f&C)&&Re(e,u)}tt()}function v(){d(),Promise.all(n.map(e=>rt(e))).then(e=>h([...t.map(a),...e])).catch(e=>Re(e,u))}}function tt(e=!0){Rt(null),St(null),J(null),e&&Ne?.deactivate()}function nt(e){var t=null!==Ct&&2&Ct.f?Ct:null;null!==Ot&&(Ot.f|=A);return{ctx:Z,deps:null,effects:null,equals:D,f:2050,fn:e,reactions:null,rv:0,v:G,wv:0,parent:t??Ot,ac:null}}function rt(e,t,n){null===Ot&&function(){throw new Error("https://svelte.dev/e/async_derived_orphan")}();var r=void 0,a=dt(G),o=!Ct,i=new Map;return function(e){Xt(4718592,e,!0)}(()=>{var t=p();r=t.promise;try{Promise.resolve(e()).then(t.resolve,t.reject).finally(tt)}catch(e){t.reject(e),tt()}var n=Ne;if(o){var l=function(){var e=Ot.b,t=Ne,n=e.is_rendered();return e.update_pending_count(1),t.increment(n),()=>{e.update_pending_count(-1),t.decrement(n)}}();i.get(n)?.reject(V),i.delete(n),i.set(n,t)}const c=(e,t=void 0)=>{if(n.activate(),t)t!==V&&(a.f|=L,pt(a,t));else{0!==(a.f&L)&&(a.f^=L),pt(a,e);for(const[e,t]of i){if(i.delete(e),e===n)break;t.reject(V)}}l&&l()};t.promise.then(c,e=>c(null,e||"unknown"))}),en(()=>{for(const e of i.values())e.reject(V)}),new Promise(e=>{!function t(n){function o(){n===r?e(a):t(r)}n.then(o,o)}(r)})}function at(e){const t=nt(e);return It(t),t}function ot(e){var t,n=Ot;Rt(function(e){for(var t=e.parent;null!==t;){if(!(2&t.f))return 0===(t.f&C)?t:null;t=t.parent}return null}(e));try{e.f&=-65537,function(e){var t=e.effects;if(null!==t){e.effects=null;for(var n=0;n<t.length;n+=1)fn(t[n])}}(e),t=Ut(e)}finally{Rt(n)}return t}function it(e){var t=ot(e);e.equals(t)||(e.wv=Dt(),Ne?.is_fork&&null!==e.deps||(e.v=t,null!==e.deps))?kt||(null!==Me?(Qt()||Ne?.is_fork)&&Me.set(e,t):Pe(e)):Ie(e,_)}function lt(e){if(null!==e.effects)for(const t of e.effects)t.teardown&&Gt(t)}let ct=new Set;const st=new Map;let ut=!1;function dt(e,t){return{f:0,v:e,reactions:null,equals:D,rv:0,wv:0}}function ft(e,t){const n=dt(e);return It(n),n}function ht(e,t=!1,n=!0){const r=dt(e);return t||(r.equals=F),r}function vt(e,t,n=!1){return null===Ct||Et&&0===(Ct.f&O)||!(4325394&Ct.f)||null!==At&&a.call(At,e)||function(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}(),pt(e,n?de(t):t)}function pt(e,t){if(!e.equals(t)){var n=e.v;kt?st.set(e,t):st.set(e,n),e.v=t;var r=qe.ensure();if(r.capture(e,n),2&e.f){const t=e;0!==(e.f&x)&&ot(t),Pe(t)}e.wv=Dt(),bt(e,x),null===Ot||0===(Ot.f&_)||96&Ot.f||(null===Tt?function(e){Tt=e}([e]):Tt.push(e)),!r.is_fork&&ct.size>0&&!ut&&function(){ut=!1;for(const e of ct)0!==(e.f&_)&&Ie(e,k),jt(e)&&Gt(e);ct.clear()}()}return t}function gt(e){vt(e,e.v+1)}function bt(e,t){var n=e.reactions;if(null!==n)for(var r=n.length,a=0;a<r;a++){var o=n[a],i=o.f,l=0===(i&x);if(l&&Ie(o,t),2&i){var c=o;Me?.delete(c),0===(i&I)&&(i&w&&(o.f|=I),bt(c,k))}else l&&(0!==(i&b)&&null!==Ze&&Ze.add(o),Ke(o))}}function mt(e,t){if(t){const t=document.body;e.autofocus=!0,Q(()=>{document.activeElement===t&&e.focus()})}}let yt=!1;function wt(){yt||(yt=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function _t(e){var t=Ct,n=Ot;St(null),Rt(null);try{return e()}finally{St(t),Rt(n)}}let xt=!1,kt=!1;function $t(e){kt=e}let Ct=null,Et=!1;function St(e){Ct=e}let Ot=null;function Rt(e){Ot=e}let At=null;function It(e){null!==Ct&&(null===At?At=[e]:At.push(e))}let Pt=null,Lt=0,Tt=null;let zt=1,Nt=0,Vt=Nt;function Mt(e){Vt=e}function Dt(){return++zt}function jt(e){var t=e.f;if(0!==(t&x))return!0;if(2&t&&(e.f&=-65537),0!==(t&k)){for(var n=e.deps,r=n.length,a=0;a<r;a++){var o=n[a];if(jt(o)&&it(o),o.wv>e.wv)return!0}0!==(t&w)&&null===Me&&Ie(e,_)}return!1}function Ft(e,t,n=!0){var r=e.reactions;if(null!==r&&(null===At||!a.call(At,e)))for(var o=0;o<r.length;o++){var i=r[o];2&i.f?Ft(i,t,!1):t===i&&(n?Ie(i,x):0!==(i.f&_)&&Ie(i,k),Ke(i))}}function Ut(e){var t=Pt,n=Lt,r=Tt,a=Ct,o=At,i=Z,l=Et,c=Vt,s=e.f;Pt=null,Lt=0,Tt=null,Ct=96&s?null:e,At=null,J(e.ctx),Et=!1,Vt=++Nt,null!==e.ac&&(_t(()=>{e.ac.abort(V)}),e.ac=null);try{e.f|=P;var u=(0,e.fn)();e.f|=E;var d=e.deps,f=Ne?.is_fork;if(null!==Pt){var h;if(f||Ht(e,Lt),null!==d&&Lt>0)for(d.length=Lt+Pt.length,h=0;h<Pt.length;h++)d[Lt+h]=Pt[h];else e.deps=d=Pt;if(Qt()&&0!==(e.f&w))for(h=Lt;h<d.length;h++)(d[h].reactions??=[]).push(e)}else!f&&null!==d&&Lt<d.length&&(Ht(e,Lt),d.length=Lt);if(!(null===Tt||Et||null===d||6146&e.f))for(h=0;h<Tt.length;h++)Ft(Tt[h],e);if(null!==a&&a!==e){if(Nt++,null!==a.deps)for(let e=0;e<n;e+=1)a.deps[e].rv=Nt;if(null!==t)for(const e of t)e.rv=Nt;null!==Tt&&(null===r?r=Tt:r.push(...Tt))}return 0!==(e.f&L)&&(e.f^=L),u}catch(e){return Oe(e)}finally{e.f^=P,Pt=t,Lt=n,Tt=r,Ct=a,At=o,J(i),Et=l,Vt=c}}function qt(e,t){let n=t.reactions;if(null!==n){var o=r.call(n,e);if(-1!==o){var i=n.length-1;0===i?n=t.reactions=null:(n[o]=n[i],n.pop())}}if(null===n&&2&t.f&&(null===Pt||!a.call(Pt,t))){var l=t;0!==(l.f&w)&&(l.f^=w,l.f&=-65537),Pe(l),function(e){if(null!==e.effects)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(V),t.teardown=v,t.ac=null,Ht(t,0),dn(t))}(l),Ht(l,0)}}function Ht(e,t){var n=e.deps;if(null!==n)for(var r=t;r<n.length;r++)qt(e,n[r])}function Gt(e){var t=e.f;if(0===(t&C)){Ie(e,_);var n=Ot,r=xt;Ot=e,xt=!0;try{16777232&t?function(e){var t=e.first;for(;null!==t;){var n=t.next;0===(t.f&m)&&fn(t),t=n}}(e):dn(e),un(e);var a=Ut(e);e.teardown="function"==typeof a?a:null,e.wv=zt}finally{xt=r,Ot=n}}}async function Bt(){await Promise.resolve(),He()}function Zt(e){var t=!!(2&e.f);if(null!==Ct&&!Et&&!(null!==Ot&&0!==(Ot.f&C)||null!==At&&a.call(At,e))){var n=Ct.deps;if(0!==(Ct.f&P))e.rv<Nt&&(e.rv=Nt,null===Pt&&null!==n&&n[Lt]===e?Lt++:null===Pt?Pt=[e]:Pt.push(e));else{(Ct.deps??=[]).push(e);var r=e.reactions;null===r?e.reactions=[Ct]:a.call(r,Ct)||r.push(Ct)}}if(kt&&st.has(e))return st.get(e);if(t){var o=e;if(kt){var i=o.v;return(0===(o.f&_)&&null!==o.reactions||Yt(o))&&(i=ot(o)),st.set(o,i),i}var l=0===(o.f&w)&&!Et&&null!==Ct&&(xt||0!==(Ct.f&w)),c=0===(o.f&E);jt(o)&&(l&&(o.f|=w),it(o)),l&&!c&&(lt(o),Jt(o))}if(Me?.has(e))return Me.get(e);if(0!==(e.f&L))throw e.v;return e.v}function Jt(e){if(e.f|=w,null!==e.deps)for(const t of e.deps)(t.reactions??=[]).push(e),2&t.f&&0===(t.f&w)&&(lt(t),Jt(t))}function Yt(e){if(e.v===G)return!0;if(null===e.deps)return!1;for(const t of e.deps){if(st.has(t))return!0;if(2&t.f&&Yt(t))return!0}return!1}function Wt(e){var t=Et;try{return Et=!0,e()}finally{Et=t}}function Kt(e){null===Ot&&(null===Ct&&function(){throw new Error("https://svelte.dev/e/effect_orphan")}(),function(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}()),kt&&function(){throw new Error("https://svelte.dev/e/effect_in_teardown")}()}function Xt(e,t,n){var r=Ot;null!==r&&0!==(r.f&$)&&(e|=$);var a={ctx:Z,deps:null,nodes:null,f:e|x|w,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{Gt(a)}catch(e){throw fn(a),e}else null!==t&&Ke(a);var o=a;if(n&&null===o.deps&&null===o.teardown&&null===o.nodes&&o.first===o.last&&0===(o.f&A)&&(o=o.first,0!==(e&b)&&0!==(e&S)&&null!==o&&(o.f|=S)),null!==o&&(o.parent=r,null!==r&&function(e,t){var n=t.last;null===n?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}(o,r),null!==Ct&&2&Ct.f&&0===(e&y))){var i=Ct;(i.effects??=[]).push(o)}return a}function Qt(){return null!==Ct&&!Et}function en(e){const t=Xt(8,null,!1);return Ie(t,_),t.teardown=e,t}function tn(e){Kt();var t=Ot.f;if(!(!Ct&&0!==(t&m)&&0===(t&E)))return nn(e);var n=Z;(n.e??=[]).push(e)}function nn(e){return Xt(1048580,e,!1)}function rn(e){return Xt(4,e,!1)}function an(e,t=0){return Xt(8|t,e,!0)}function on(e,t=[],n=[],r=[]){et(r,t,n,t=>{Xt(8,()=>e(...t.map(Zt)),!0)})}function ln(e,t=0){return Xt(b|t,e,!0)}function cn(e,t=0){return Xt(g|t,e,!0)}function sn(e){return Xt(524320,e,!0)}function un(e){var t=e.teardown;if(null!==t){const e=kt,n=Ct;$t(!0),St(null);try{t.call(null)}finally{$t(e),St(n)}}}function dn(e,t=!1){var n=e.first;for(e.first=e.last=null;null!==n;){const e=n.ac;null!==e&&_t(()=>{e.abort(V)});var r=n.next;0!==(n.f&y)?n.parent=null:fn(n,t),n=r}}function fn(e,t=!0){var n=!1;!t&&0===(e.f&R)||null===e.nodes||null===e.nodes.end||(hn(e.nodes.start,e.nodes.end),n=!0),dn(e,t&&!n),Ht(e,0),Ie(e,C);var r=e.nodes&&e.nodes.t;if(null!==r)for(const e of r)e.stop();un(e);var a=e.parent;null!==a&&null!==a.first&&vn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function hn(e,t){for(;null!==e;){var n=e===t?null:xe(e);e.remove(),e=n}}function vn(e){var t=e.parent,n=e.prev,r=e.next;null!==n&&(n.next=r),null!==r&&(r.prev=n),null!==t&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function pn(e,t,n=!0){var r=[];gn(e,r,!0);var a=()=>{n&&fn(e),t&&t()},o=r.length;if(o>0){var i=()=>--o||a();for(var l of r)l.out(i)}else a()}function gn(e,t,n){if(0===(e.f&$)){e.f^=$;var r=e.nodes&&e.nodes.t;if(null!==r)for(const e of r)(e.is_global||n)&&t.push(e);for(var a=e.first;null!==a;){var o=a.next;gn(a,t,!!(0!==(a.f&S)||0!==(a.f&m)&&0!==(e.f&b))&&n),a=o}}}function bn(e){mn(e,!0)}function mn(e,t){if(0!==(e.f&$)){e.f^=$,0===(e.f&_)&&(Ie(e,x),Ke(e));for(var n=e.first;null!==n;){var r=n.next;mn(n,!!(0!==(n.f&S)||0!==(n.f&m))&&t),n=r}var a=e.nodes&&e.nodes.t;if(null!==a)for(const e of a)(e.is_global||t)&&e.in()}}function yn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;null!==n;){var a=n===r?null:xe(n);t.append(n),n=a}}function wn(e){return e.endsWith("capture")&&"gotpointercapture"!==e&&"lostpointercapture"!==e}const _n=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function xn(e){return _n.includes(e)}const kn={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function $n(e){return e=e.toLowerCase(),kn[e]??e}const Cn=["touchstart","touchmove"];function En(e){return Cn.includes(e)}const Sn=Symbol("events"),On=new Set,Rn=new Set;function An(e,t,n,r={}){function a(e){if(r.capture||zn.call(t,e),!e.cancelBubble)return _t(()=>n?.call(this,e))}return e.startsWith("pointer")||e.startsWith("touch")||"wheel"===e?Q(()=>{t.addEventListener(e,a,r)}):t.addEventListener(e,a,r),a}function In(e,t,n,r,a){var o={capture:r,passive:a},i=An(e,t,n,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&en(()=>{t.removeEventListener(e,i,o)})}function Pn(e,t,n){(t[Sn]??={})[e]=n}function Ln(e){for(var t=0;t<e.length;t++)On.add(e[t]);for(var n of Rn)n(e)}let Tn=null;function zn(e){var t=this,n=t.ownerDocument,r=e.type,a=e.composedPath?.()||[],o=a[0]||e.target;Tn=e;var i=0,c=Tn===e&&e[Sn];if(c){var s=a.indexOf(c);if(-1!==s&&(t===document||t===window))return void(e[Sn]=t);var u=a.indexOf(t);if(-1===u)return;s<=u&&(i=s)}if((o=a[i]||e.target)!==t){l(e,"currentTarget",{configurable:!0,get:()=>o||n});var d=Ct,f=Ot;St(null),Rt(null);try{for(var h,v=[];null!==o;){var p=o.assignedSlot||o.parentNode||o.host||null;try{var g=o[Sn]?.[r];null==g||o.disabled&&e.target!==o||g.call(o,e)}catch(e){h?v.push(e):h=e}if(e.cancelBubble||p===t||null===p)break;o=p}if(h){for(let e of v)queueMicrotask(()=>{throw e});throw h}}finally{e[Sn]=t,delete e.currentTarget,St(d),Rt(f)}}}const Nn=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Vn(e){var t=Ee("template");return t.innerHTML=function(e){return Nn?.createHTML(e)??e}(e.replaceAll("<!>","\x3c!----\x3e")),t.content}function Mn(e,t){var n=Ot;null===n.nodes&&(n.nodes={start:e,end:t,a:null,t:null})}function Dn(e,t){var n,r=!!(1&t),a=!!(2&t),o=!e.startsWith("<!>");return()=>{if(re)return Mn(ne,null),ne;void 0===n&&(n=Vn(o?e:"<!>"+e),r||(n=_e(n)));var t=a||ge?document.importNode(n,!0):n.cloneNode(!0);r?Mn(_e(t),t.lastChild):Mn(t,t);return t}}function jn(e,t,n="svg"){var r,a=`<${n}>${!e.startsWith("<!>")?e:"<!>"+e}</${n}>`;return()=>{if(re)return Mn(ne,null),ne;if(!r){var e=Vn(a);r=_e(_e(e))}var t=r.cloneNode(!0);return Mn(t,t),t}}function Fn(e,t){return jn(e,0,"svg")}function Un(e=""){if(!re){var t=we(e+"");return Mn(t,t),t}var n=ne;return 3!==n.nodeType?(n.before(n=we()),oe(n)):Se(n),Mn(n,n),n}function qn(){if(re)return Mn(ne,null),ne;var e=document.createDocumentFragment(),t=document.createComment(""),n=we();return e.append(t,n),Mn(t,n),e}function Hn(e,t){if(re){var n=Ot;return 0!==(n.f&E)&&null!==n.nodes.end||(n.nodes.end=ne),void ie()}null!==e&&e.before(t)}function Gn(e,t){var n=null==t?"":"object"==typeof t?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function Bn(e,t){return Yn(e,t)}function Zn(e,t){ye(),t.intro=t.intro??!1;const n=t.target,r=re,a=ne;try{for(var o=_e(n);o&&(8!==o.nodeType||o.data!==U);)o=xe(o);if(!o)throw H;ae(!0),oe(o);const r=Yn(e,{...t,anchor:o});return ae(!1),r}catch(r){if(r instanceof Error&&r.message.split("\n").some(e=>e.startsWith("https://svelte.dev/e/")))throw r;return r!==H&&console.warn("Failed to hydrate: ",r),!1===t.recover&&function(){throw new Error("https://svelte.dev/e/hydration_failed")}(),ye(),n.textContent="",ae(!1),Bn(e,t)}finally{ae(r),oe(a)}}const Jn=new Map;function Yn(e,{target:t,anchor:n,props:r={},events:a,context:i,intro:l=!0,transformError:c}){ye();var s=void 0,u=function(e){qe.ensure();const t=Xt(524352,e,!0);return(e={})=>new Promise(n=>{e.outro?pn(t,()=>{fn(t),n(void 0)}):(fn(t),n(void 0))})}(()=>{var l=n??t.appendChild(we());!function(e,t,n,r){new Qe(e,t,n,r)}(l,{pending:()=>{}},t=>{if(Y({}),i&&(Z.c=i),a&&(r.$$events=a),re&&Mn(t,null),s=e(t,r)||{},re&&(Ot.nodes.end=ne,null===ne||8!==ne.nodeType||"]"!==ne.data))throw te(),H;W()},c);var u=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var a=En(r);for(const e of[t,document]){var o=Jn.get(e);void 0===o&&(o=new Map,Jn.set(e,o));var i=o.get(r);void 0===i?(e.addEventListener(r,zn,{passive:a}),o.set(r,1)):o.set(r,i+1)}}}};return d(o(On)),Rn.add(d),()=>{for(var e of u)for(const n of[t,document]){var r=Jn.get(n),a=r.get(e);0==--a?(n.removeEventListener(e,zn),r.delete(e),0===r.size&&Jn.delete(n)):r.set(e,a)}Rn.delete(d),l!==n&&l.parentNode?.removeChild(l)}});return Wn.set(s,u),s}let Wn=new WeakMap;class Kn{anchor;#T=new Map;#z=new Map;#N=new Map;#V=new Set;#M=!0;constructor(e,t=!0){this.anchor=e,this.#M=t}#f=()=>{var e=Ne;if(this.#T.has(e)){var t=this.#T.get(e),n=this.#z.get(t);if(n)bn(n),this.#V.delete(t);else{var r=this.#N.get(t);r&&(this.#z.set(t,r.effect),this.#N.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(const[t,n]of this.#T){if(this.#T.delete(t),t===e)break;const r=this.#N.get(n);r&&(fn(r.effect),this.#N.delete(n))}for(const[e,r]of this.#z){if(e===t||this.#V.has(e))continue;const a=()=>{if(Array.from(this.#T.values()).includes(e)){var t=document.createDocumentFragment();yn(r,t),t.append(we()),this.#N.set(e,{effect:r,fragment:t})}else fn(r);this.#V.delete(e),this.#z.delete(e)};this.#M||!n?(this.#V.add(e),pn(r,a,!1)):a()}}};#D=e=>{this.#T.delete(e);const t=Array.from(this.#T.values());for(const[e,n]of this.#N)t.includes(e)||(fn(n.effect),this.#N.delete(e))};ensure(e,t){var n=Ne;!t||this.#z.has(e)||this.#N.has(e)||this.#z.set(e,sn(()=>t(this.anchor)));this.#T.set(n,e),re&&(this.anchor=ne),this.#f()}}function Xn(e,t,n=!1){re&&ie();var r=new Kn(e);function a(t,n){if(re){const o=ue(e);if(t!==(o===U?0:o!==q&&parseInt(o.substring(1)))){var a=se();return oe(a),r.anchor=a,ae(!1),r.ensure(t,n),void ae(!0)}}r.ensure(t,n)}ln(()=>{var e=!1;t((t,n=0)=>{e=!0,a(n,t)}),e||a(!1,null)},n?S:0)}const Qn=Symbol("NaN");function er(e,t,n=!1,r=!1,a=!1){var o=e,i="";on(()=>{var e=Ot;if(i!==(i=t()??"")){if(null!==e.nodes&&(hn(e.nodes.start,e.nodes.end),e.nodes=null),""!==i){if(re){ne.data;for(var a=ie(),l=a;null!==a&&(8!==a.nodeType||""!==a.data);)l=a,a=xe(a);if(null===a)throw te(),H;return Mn(ne,l),void(o=oe(a))}var c=Ee(n?"svg":r?"math":"template",n?"http://www.w3.org/2000/svg":r?"http://www.w3.org/1998/Math/MathML":void 0);c.innerHTML=i;var s=n||r?c:c.content;if(Mn(_e(s),s.lastChild),n||r)for(;_e(s);)o.before(_e(s));else o.before(s)}}else re&&ie()})}function tr(e,t){var n,r=void 0;cn(()=>{r!==(r=t())&&(n&&(fn(n),n=null),r&&(n=sn(()=>{rn(()=>r(e))})))})}function nr(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=nr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function rr(e){return"object"==typeof e?function(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=nr(e))&&(r&&(r+=" "),r+=t);return r}(e):e??""}const ar=[..." \t\n\r\f \v\ufeff"];function or(e,t=!1){var n=t?" !important;":";",r="";for(var a of Object.keys(e)){var o=e[a];null!=o&&""!==o&&(r+=" "+a+": "+o+n)}return r}function ir(e){return"-"!==e[0]||"-"!==e[1]?e.toLowerCase():e}function lr(e,t,n,r,a,o){var i=e.__className;if(re||i!==n||void 0===i){var l=function(e,t,n){var r=null==e?"":""+e;if(n)for(var a of Object.keys(n))if(n[a])r=r?r+" "+a:a;else if(r.length)for(var o=a.length,i=0;(i=r.indexOf(a,i))>=0;){var l=i+o;0!==i&&!ar.includes(r[i-1])||l!==r.length&&!ar.includes(r[l])?i=l:r=(0===i?"":r.substring(0,i))+r.substring(l+1)}return""===r?null:r}(n,0,o);re&&l===e.getAttribute("class")||(null==l?e.removeAttribute("class"):t?e.className=l:e.setAttribute("class",l)),e.__className=n}else if(o&&a!==o)for(var c in o){var s=!!o[c];null!=a&&s===!!a[c]||e.classList.toggle(c,s)}return o}function cr(e,t={},n,r){for(var a in n){var o=n[a];t[a]!==o&&(null==n[a]?e.style.removeProperty(a):e.style.setProperty(a,o,r))}}function sr(e,t,n,r){var a=e.__style;if(re||a!==t){var o=function(e,t){if(t){var n,r,a="";if(Array.isArray(t)?(n=t[0],r=t[1]):n=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,i=0,l=!1,c=[];n&&c.push(...Object.keys(n).map(ir)),r&&c.push(...Object.keys(r).map(ir));var s=0,u=-1;const t=e.length;for(var d=0;d<t;d++){var f=e[d];if(l?"/"===f&&"*"===e[d-1]&&(l=!1):o?o===f&&(o=!1):"/"===f&&"*"===e[d+1]?l=!0:'"'===f||"'"===f?o=f:"("===f?i++:")"===f&&i--,!l&&!1===o&&0===i)if(":"===f&&-1===u)u=d;else if(";"===f||d===t-1){if(-1!==u){var h=ir(e.substring(s,u).trim());c.includes(h)||(";"!==f&&d++,a+=" "+e.substring(s,d).trim()+";")}s=d+1,u=-1}}}return n&&(a+=or(n)),r&&(a+=or(r,!0)),""===(a=a.trim())?null:a}return null==e?null:String(e)}(t,r);re&&o===e.getAttribute("style")||(null==o?e.removeAttribute("style"):e.style.cssText=o),e.__style=t}else r&&(Array.isArray(r)?(cr(e,n?.[0],r[0]),cr(e,n?.[1],r[1],"important")):cr(e,n,r));return r}function ur(e,t,r=!1){if(e.multiple){if(null==t)return;if(!n(t))return void console.warn("https://svelte.dev/e/select_multiple_invalid_value");for(var a of e.options)a.selected=t.includes(dr(a))}else{for(a of e.options){if(he(dr(a),t))return void(a.selected=!0)}r&&void 0===t||(e.selectedIndex=-1)}}function dr(e){return"__value"in e?e.__value:e.value}const fr=Symbol("class"),hr=Symbol("style"),vr=Symbol("is custom element"),pr=Symbol("is html"),gr=M?"link":"LINK",br=M?"input":"INPUT",mr=M?"option":"OPTION",yr=M?"select":"SELECT",wr=M?"progress":"PROGRESS";function _r(e){if(re){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;kr(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var r=e.checked;kr(e,"checked",null),e.checked=r}}};e.__on_r=n,Q(n),wt()}}function xr(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function kr(e,t,n,r){var a=Cr(e);re&&(a[t]=e.getAttribute(t),"src"===t||"srcset"===t||"href"===t&&e.nodeName===gr)||a[t]!==(a[t]=n)&&("loading"===t&&(e[N]=n),null==n?e.removeAttribute(t):"string"!=typeof n&&Sr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function $r(e,t,n=[],r=[],a=[],o,i=!1,l=!1){et(a,n,r,n=>{var r=void 0,a={},o=e.nodeName===yr,c=!1;if(cn(()=>{var s=t(...n.map(Zt)),u=function(e,t,n,r,a=!1){if(re&&a&&e.nodeName===br){var o=e;("checkbox"===o.type?"defaultChecked":"defaultValue")in n||_r(o)}var i=Cr(e),l=i[vr],c=!i[pr];let s=re&&l;s&&ae(!1);var u=t||{},d=e.nodeName===mr;for(var f in t)f in n||(n[f]=null);n.class?n.class=rr(n.class):n[fr]&&(n.class=null),n[hr]&&(n.style??=null);var h=Sr(e);for(const r in n){let a=n[r];if(d&&"value"===r&&null==a)e.value=e.__value="",u[r]=a;else if("class"!==r)if("style"!==r){var v=u[r];if(a!==v||void 0===a&&e.hasAttribute(r)){u[r]=a;var p=r[0]+r[1];if("$$"!==p)if("on"===p){const t={},n="$$"+r;let o=r.slice(2);var g=xn(o);if(wn(o)&&(o=o.slice(0,-7),t.capture=!0),!g&&v){if(null!=a)continue;e.removeEventListener(o,u[n],t),u[n]=null}if(g)Pn(o,e,a),Ln([o]);else if(null!=a){let a=function(e){u[r].call(this,e)};u[n]=An(o,e,a,t)}}else if("style"===r)kr(e,r,a);else if("autofocus"===r)mt(e,Boolean(a));else if(l||"__value"!==r&&("value"!==r||null==a))if("selected"===r&&d)xr(e,a);else{var b=r;c||(b=$n(b));var m="defaultValue"===b||"defaultChecked"===b;if(null!=a||l||m)m||h.includes(b)&&(l||"string"!=typeof a)?(e[b]=a,b in i&&(i[b]=G)):"function"!=typeof a&&kr(e,b,a);else if(i[r]=null,"value"===b||"checked"===b){let n=e;const r=void 0===t;if("value"===b){let e=n.defaultValue;n.removeAttribute(b),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(b),n.defaultChecked=e,n.checked=!!r&&e}}else e.removeAttribute(r)}else e.value=e.__value=a}}else sr(e,a,t?.[hr],n[hr]),u[r]=a,u[hr]=n[hr];else lr(e,"http://www.w3.org/1999/xhtml"===e.namespaceURI,a,0,t?.[fr],n[fr]),u[r]=a,u[fr]=n[fr]}return s&&ae(!0),u}(e,r,s,0,i,l);c&&o&&"value"in s&&ur(e,s.value);for(let e of Object.getOwnPropertySymbols(a))s[e]||fn(a[e]);for(let t of Object.getOwnPropertySymbols(s)){var d=s[t];"@attach"!==t.description||r&&d===r[t]||(a[t]&&fn(a[t]),a[t]=sn(()=>tr(e,()=>d))),u[t]=d}r=u}),o){var s=e;rn(()=>{ur(s,r.value,!0),function(e){var t=new MutationObserver(()=>{ur(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),en(()=>{t.disconnect()})}(s)})}c=!0})}function Cr(e){return e.__attributes??={[vr]:e.nodeName.includes("-"),[pr]:e.namespaceURI===B}}var Er=new Map;function Sr(e){var t,n=e.getAttribute("is")||e.nodeName,r=Er.get(n);if(r)return r;Er.set(n,r=[]);for(var a=e,o=Element.prototype;o!==a;){for(var i in t=s(a))t[i].set&&r.push(i);a=f(a)}return r}function Or(e,t,n=t){var r=new WeakSet;!function(e,t,n,r=n){e.addEventListener(t,()=>_t(n));const a=e.__on_r;e.__on_r=a?()=>{a(),r(!0)}:()=>r(!0),wt()}(e,"input",async a=>{var o=a?e.defaultValue:e.value;if(o=Rr(e)?Ar(o):o,n(o),null!==Ne&&r.add(Ne),await Bt(),o!==(o=t())){var i=e.selectionStart,l=e.selectionEnd,c=e.value.length;if(e.value=o??"",null!==l){var s=e.value.length;i===l&&l===c&&s>c?(e.selectionStart=s,e.selectionEnd=s):(e.selectionStart=i,e.selectionEnd=Math.min(l,s))}}}),(re&&e.defaultValue!==e.value||null==Wt(t)&&e.value)&&(n(Rr(e)?Ar(e.value):e.value),null!==Ne&&r.add(Ne)),an(()=>{var n=t();if(e===document.activeElement){var a=Ve??Ne;if(r.has(a))return}Rr(e)&&n===Ar(e.value)||("date"!==e.type||n||e.value)&&n!==e.value&&(e.value=n??"")})}function Rr(e){var t=e.type;return"number"===t||"range"===t}function Ar(e){return""===e?null:+e}function Ir(e,t){return e===t||e?.[T]===t}function Pr(e={},t,n,r){return rn(()=>{var r,a;return an(()=>{r=a,a=[],Wt(()=>{e!==n(...a)&&(t(e,...a),r&&Ir(n(...r),e)&&t(null,...r))})}),()=>{Q(()=>{a&&Ir(n(...a),e)&&t(null,...a)})}}),e}let Lr=Symbol();function Tr(e,t,n){const r=n[t]??={store:null,source:ht(void 0),unsubscribe:v};if(r.store!==e&&!(Lr in n))if(r.unsubscribe(),r.store=e??null,null==e)r.source.v=void 0,r.unsubscribe=v;else{var a=!0;r.unsubscribe=qr(e,e=>{a?r.source.v=e:vt(r.source,e)}),a=!1}return e&&Lr in n?Br(e):Zt(r.source)}const zr={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set:(e,t)=>!1,getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t))return t in e.props?{enumerable:!0,configurable:!0,value:e.props[t]}:void 0},has:(e,t)=>!e.exclude.includes(t)&&t in e.props,ownKeys:e=>Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))};function Nr(e,t,n){return new Proxy({props:e,exclude:t},zr)}function Vr(e,t,n,r){var a,o=r,i=!0,l=()=>(i&&(i=!1,o=r),o);void 0===e[t]&&void 0!==r&&l(),a=()=>{var n=e[t];return void 0===n?l():(i=!0,n)};var c=!1,s=nt(()=>(c=!1,a())),u=Ot;return function(e,t){if(arguments.length>0){const n=t?Zt(s):e;return vt(s,n),c=!0,void 0!==o&&(o=n),e}return kt&&c||0!==(u.f&C)?s.v:Zt(s)}}class Mr{#j;#F;constructor(e){var t=new Map,n=(e,n)=>{var r=ht(n,!1,!1);return t.set(e,r),r};const r=new Proxy({...e.props||{},$$events:{}},{get:(e,r)=>Zt(t.get(r)??n(r,Reflect.get(e,r))),has:(e,r)=>r===z||(Zt(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r)),set:(e,r,a)=>(vt(t.get(r)??n(r,a),a),Reflect.set(e,r,a))});this.#F=(e.hydrate?Zn:Bn)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),e?.props?.$$host&&!1!==e.sync||He(),this.#j=r.$$events;for(const e of Object.keys(this.#F))"$set"!==e&&"$destroy"!==e&&"$on"!==e&&l(this,e,{get(){return this.#F[e]},set(t){this.#F[e]=t},enumerable:!0});this.#F.$set=e=>{Object.assign(r,e)},this.#F.$destroy=()=>{!function(e,t){const n=Wn.get(e);n?(Wn.delete(e),n(t)):Promise.resolve()}(this.#F)}}$set(e){this.#F.$set(e)}$on(e,t){this.#j[e]=this.#j[e]||[];const n=(...e)=>t.call(this,...e);return this.#j[e].push(n),()=>{this.#j[e]=this.#j[e].filter(e=>e!==n)}}$destroy(){this.#F.$destroy()}}let Dr=class{};function jr(e,t,n,r){const a=n[e]?.type;if(t="Boolean"===a&&"boolean"!=typeof t?null!=t:t,!r||!n[e])return t;if("toAttribute"===r)switch(a){case"Object":case"Array":return null==t?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return null==t?null:t;default:return t}else switch(a){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":default:return t;case"Number":return null!=t?+t:t}}function Fr(e,t,n,r,a,o){let s=class extends Dr{constructor(){super(e,n,a),this.$$p_d=t}static get observedAttributes(){return i(t).map(e=>(t[e].attribute||e).toLowerCase())}};return i(t).forEach(e=>{l(s.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=jr(e,n,t),this.$$d[e]=n;var r=this.$$c;if(r){var a=c(r,e)?.get;a?r[e]=n:r.$set({[e]:n})}}})}),r.forEach(e=>{l(s.prototype,e,{get(){return this.$$c?.[e]}})}),e.element=s,s}function Ur(e){null===Z&&function(){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}(),tn(()=>{const t=Wt(e);if("function"==typeof t)return t})}function qr(e,t,n){if(null==e)return t(void 0),v;const r=Wt(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}"function"==typeof HTMLElement&&(Dr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(e){return t=>{const n=Ee("slot");"default"!==e&&(n.name=e),Hn(t,n)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=function(e){const t={};return e.childNodes.forEach(e=>{t[e.slot||"default"]=!0}),t}(this);for(const e of this.$$s)e in r&&("default"!==e||this.$$d.children?n[e]=t(e):(this.$$d.children=t(e),n.default=!0));for(const e of this.attributes){const t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=jr(t,e.value,this.$$p_d,"toProp"))}for(const e in this.$$p_d)e in this.$$d||void 0===this[e]||(this.$$d[e]=this[e],delete this[e]);this.$$c=(e={component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:n,$$host:this}},new Mr(e)),this.$$me=function(e){qe.ensure();const t=Xt(524352,e,!0);return()=>{fn(t)}}(()=>{an(()=>{this.$$r=!0;for(const e of i(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];const t=jr(e,this.$$d[e],this.$$p_d,"toAttribute");null==t?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(const e in this.$$l)for(const t of this.$$l[e]){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}var e}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=jr(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return i(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});const Hr=[];function Gr(e,t=v){let n=null;const r=new Set;function a(t){if(j(e,t)&&(e=t,n)){const t=!Hr.length;for(const t of r)t[1](),Hr.push(t,e);if(t){for(let e=0;e<Hr.length;e+=2)Hr[e][0](Hr[e+1]);Hr.length=0}}}function o(t){a(t(e))}return{set:a,update:o,subscribe:function(i,l=v){const c=[i,l];return r.add(c),1===r.size&&(n=t(a,o)||v),i(e),()=>{r.delete(c),0===r.size&&n&&(n(),n=null)}}}}function Br(e){let t;return qr(e,e=>t=e)(),t}function Zr(e){const t={get:e=>Br(t.store)[e],set:(e,n)=>{"string"==typeof e?Object.assign(Br(t.store),{[e]:n}):Object.assign(Br(t.store),e),t.store.set(Br(t.store))},store:Gr(e)};return t}globalThis.$altcha=globalThis.$altcha||{algorithms:new Map,defaults:Zr({}),i18n:Zr({}),instances:new Set,plugins:new Set};const Jr={ariaLinkLabel:"Visit Altcha.org",cancel:"Cancel",enterCode:"Enter code",enterCodeAria:"Enter code you hear. Press Space to play audio.",enterCodeFromImage:"To proceed, please enter the code from the image below.",error:"Verification failed. Try again later.",expired:"Verification expired. Try again.",footer:'Protected by <a href="https://altcha.org/" target="_blank" aria-label="Visit Altcha.org">ALTCHA</a>',getAudioChallenge:"Get an audio challenge",label:"I'm not a robot",loading:"Loading...",reload:"Reload",verify:"Verify",verificationRequired:"Verification required!",verified:"Verified",verifying:"Verifying...",waitAlert:"Verifying... please wait."};"$altcha"in globalThis&&globalThis.$altcha.i18n.set("en",Jr);"undefined"!=typeof window&&((window.__svelte??={}).v??=new Set).add("5");var Yr=Dn('<label class="altcha-checkbox"><input/> <svg width="12" height="9" viewBox="0 0 12 9"><polyline points="1 5 4 8 11 1"></polyline></svg> <div class="altcha-spinner altcha-checkbox-spinner" aria-hidden="true"></div></label>');function Wr(e,t){Y(t,!0);let n=Vr(t,"loading"),r=Nr(t,["$$slots","$$events","$$legacy","$$host","loading"]);var a={get loading(){return n()},set loading(e){n(e),He()}},o=Yr();return $r(ke(o),()=>({type:"checkbox",...r}),void 0,void 0,void 0,0,!0),ce(4),le(o),on(()=>kr(o,"data-loading",n())),Hn(e,o),W(a)}Fr(Wr,{loading:{}},[],[],{mode:"open"});var Kr=Dn('<div class="altcha-checkbox-native"><input/> <div class="altcha-spinner altcha-checkbox-native-spinner"></div></div>');function Xr(e,t){Y(t,!0);let n=Vr(t,"loading"),r=Nr(t,["$$slots","$$events","$$legacy","$$host","loading"]);var a={get loading(){return n()},set loading(e){n(e),He()}},o=Kr();return $r(ke(o),()=>({type:"checkbox",...r}),void 0,void 0,void 0,0,!0),ce(2),le(o),on(()=>kr(o,"data-loading",n())),Hn(e,o),W(a)}Fr(Xr,{loading:{}},[],[],{mode:"open"});var Qr=Dn('<div><a target="_blank" class="altcha-logo" aria-hidden="true"><svg width="22" height="22" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.33955 16.4279C5.88954 20.6586 12.1971 21.2105 16.4279 17.6604C18.4699 15.947 19.6548 13.5911 19.9352 11.1365L17.9886 10.4279C17.8738 12.5624 16.909 14.6459 15.1423 16.1284C11.7577 18.9684 6.71167 18.5269 3.87164 15.1423C1.03163 11.7577 1.4731 6.71166 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577C16.9767 5.86872 17.5322 7.02798 17.804 8.2324L19.9522 9.01429C19.7622 7.07737 19.0059 5.17558 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956C-0.658625 5.88958 -1.21046 12.1971 2.33955 16.4279Z" fill="currentColor"></path><path d="M3.57212 2.33956C1.65755 3.94607 0.496389 6.11731 0.12782 8.40523L2.04639 9.13961C2.26047 7.15832 3.21057 5.25375 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577L13.8302 6.78606L19.9633 9.13364C19.7929 7.15555 19.0335 5.20847 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956Z" fill="currentColor"></path><path d="M7 10H5C5 12.7614 7.23858 15 10 15C12.7614 15 15 12.7614 15 10H13C13 11.6569 11.6569 13 10 13C8.3431 13 7 11.6569 7 10Z" fill="currentColor"></path></svg></a></div>');function ea(e,t){Y(t,!0);let n=Vr(t,"strings");var r={get strings(){return n()},set strings(e){n(e),He()}},a=Qr(),o=ke(a);return kr(o,"href","https://altcha.org"),le(a),on(()=>kr(o,"aria-label",n().ariaLinkLabel)),Hn(e,a),W(r)}Fr(ea,{strings:{}},[],[],{mode:"open"});var ta=Dn('<div class="altcha-footer"><div><!></div> <!></div>');function na(e,t){Y(t,!0);let n=Vr(t,"logo"),r=Vr(t,"strings");var a={get logo(){return n()},set logo(e){n(e),He()},get strings(){return r()},set strings(e){r(e),He()}},o=ta(),i=ke(o);er(ke(i),()=>r().footer),le(i);var l=Ce(i,2),c=e=>{ea(e,{get strings(){return r()}})};return Xn(l,e=>{n()&&e(c)}),le(o),Hn(e,o),W(a)}Fr(na,{logo:{},strings:{}},[],[],{mode:"open"});var ra=Dn('<label class="altcha-switch"><input/> <div class="altcha-switch-toggle"><div class="altcha-spinner altcha-switch-spinner"></div></div></label>');function aa(e,t){Y(t,!0);let n=Vr(t,"loading"),r=Nr(t,["$$slots","$$events","$$legacy","$$host","loading"]);var a={get loading(){return n()},set loading(e){n(e),He()}},o=ra();return $r(ke(o),()=>({type:"checkbox",...r}),void 0,void 0,void 0,0,!0),ce(2),le(o),on(()=>kr(o,"data-loading",n())),Hn(e,o),W(a)}Fr(aa,{loading:{}},[],[],{mode:"open"});var oa=(e=>(e.ERROR="error",e.LOADING="loading",e.PLAYING="playing",e.PAUSED="paused",e.READY="ready",e))(oa||{}),ia=(e=>(e.CODE="code",e.ERROR="error",e.VERIFIED="verified",e.VERIFYING="verifying",e.UNVERIFIED="unverified",e.EXPIRED="expired",e))(ia||{}),la=Dn('<div class="altcha-code-challenge-title"> </div>'),ca=Dn('<div class="altcha-spinner"></div>'),sa=Fn('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12.8659 3.00017L22.3922 19.5002C22.6684 19.9785 22.5045 20.5901 22.0262 20.8662C21.8742 20.954 21.7017 21.0002 21.5262 21.0002H2.47363C1.92135 21.0002 1.47363 20.5525 1.47363 20.0002C1.47363 19.8246 1.51984 19.6522 1.60761 19.5002L11.1339 3.00017C11.41 2.52187 12.0216 2.358 12.4999 2.63414C12.6519 2.72191 12.7782 2.84815 12.8659 3.00017ZM10.9999 16.0002V18.0002H12.9999V16.0002H10.9999ZM10.9999 9.00017V14.0002H12.9999V9.00017H10.9999Z"></path></svg>'),ua=Fn('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M15 7C15 6.44772 15.4477 6 16 6C16.5523 6 17 6.44772 17 7V17C17 17.5523 16.5523 18 16 18C15.4477 18 15 17.5523 15 17V7ZM7 7C7 6.44772 7.44772 6 8 6C8.55228 6 9 6.44772 9 7V17C9 17.5523 8.55228 18 8 18C7.44772 18 7 17.5523 7 17V7Z"></path></svg>'),da=Fn('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4 12H7C8.10457 12 9 12.8954 9 14V19C9 20.1046 8.10457 21 7 21H4C2.89543 21 2 20.1046 2 19V12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12V19C22 20.1046 21.1046 21 20 21H17C15.8954 21 15 20.1046 15 19V14C15 12.8954 15.8954 12 17 12H20C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12Z"></path></svg>'),fa=Dn('<button type="button" class="altcha-button altcha-button-secondary"><!></button>'),ha=Dn('<audio hidden="" autoplay=""><source/></audio>'),va=Dn('<div class="altcha-code-challenge"><form data-code-challenge="true"><!> <div class="altcha-code-challenge-text"> </div> <img class="altcha-code-challenge-image" alt=""/> <div class="altcha-code-challenge-row"><input type="text" class="altcha-input" autocomplete="off" name="" required=""/> <!> <button type="button" class="altcha-button altcha-button-secondary"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2V4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 9.25022 5.38734 6.82447 7.50024 5.38451L7.5 8H9.5V2L3.5 2V4L5.99918 3.99989C3.57075 5.82434 2 8.72873 2 12Z"></path></svg></button></div> <div class="altcha-code-challenge-buttons"><button type="submit" class="altcha-button"> </button> <button type="button" class="altcha-button altcha-button-secondary"> </button></div></form> <!></div>');function pa(e,t){Y(t,!0);let n=Vr(t,"audioUrl"),r=Vr(t,"codeChallenge"),a=Vr(t,"config"),o=Vr(t,"imageUrl"),i=Vr(t,"onCancel"),l=Vr(t,"onReload"),c=Vr(t,"onSubmit"),s=Vr(t,"strings"),u=ft(void 0),d=ft(void 0),f=ft(void 0),h=ft(!1),v=ft(""),p=ft(!1);function g(){vt(u,oa.PAUSED,!0)}function b(e){vt(u,oa.ERROR,!0)}function m(){vt(u,oa.READY,!0)}function y(){vt(u,oa.LOADING,!0)}function w(){vt(u,oa.PLAYING,!0)}function _(){vt(u,oa.PAUSED,!0)}function x(){Zt(d)?Zt(u)===oa.LOADING||(Zt(d).paused?(Zt(d).currentTime=0,Zt(d).play()):Zt(d).pause()):(vt(p,!0),requestAnimationFrame(()=>{Zt(d)?.play()}))}Ur(()=>(a().disableAutoFocus||Bt().then(()=>{Zt(f)?.focus()}),()=>{Zt(d)&&(Zt(d).pause(),vt(d,void 0))}));var k={get audioUrl(){return n()},set audioUrl(e){n(e),He()},get codeChallenge(){return r()},set codeChallenge(e){r(e),He()},get config(){return a()},set config(e){a(e),He()},get imageUrl(){return o()},set imageUrl(e){o(e),He()},get onCancel(){return i()},set onCancel(e){i(e),He()},get onReload(){return l()},set onReload(e){l(e),He()},get onSubmit(){return c()},set onSubmit(e){c(e),He()},get strings(){return s()},set strings(e){s(e),He()}},$=va(),C=ke($),E=ke(C),S=e=>{var t=la(),n=ke(t,!0);le(t),on(()=>Gn(n,s().verificationRequired)),Hn(e,t)};Xn(E,e=>{"standard"!==a().codeChallengeDisplay&&e(S)});var O=Ce(E,2),R=ke(O,!0);le(O);var A=Ce(O,2),I=Ce(A,2),P=ke(I);_r(P),P.disabled=Zt(h),Pr(P,e=>vt(f,e),()=>Zt(f));var L=Ce(P,2),T=e=>{var t=fa(),n=ke(t),r=e=>{Hn(e,ca())},a=e=>{Hn(e,sa())},o=e=>{Hn(e,ua())},i=e=>{Hn(e,da())};Xn(n,e=>{Zt(u)===oa.LOADING?e(r):Zt(u)===oa.ERROR?e(a,1):Zt(u)===oa.PLAYING?e(o,2):e(i,!1)}),le(t),on(()=>{kr(t,"title",s().getAudioChallenge),t.disabled=Zt(u)===oa.LOADING||Zt(u)===oa.ERROR,kr(t,"aria-label",Zt(u)===oa.LOADING?s().loading:s().getAudioChallenge)}),Pn("click",t,()=>x()),Hn(e,t)};Xn(L,e=>{r().audio&&e(T)});var z=Ce(L,2);le(I);var N=Ce(I,2),V=ke(N),M=ke(V,!0);le(V);var D=Ce(V,2),j=ke(D,!0);le(D),le(N),le(C);var F=Ce(C,2),U=e=>{var t=ha(),r=ke(t);le(t),Pr(t,e=>vt(d,e),()=>Zt(d)),on(()=>kr(r,"src",n())),In("loadstart",t,y),In("canplay",t,m),In("pause",t,_),In("playing",t,w),In("ended",t,g),In("error",r,b),Hn(e,t)};return Xn(F,e=>{Zt(p)&&n()&&e(U)}),le($),on(()=>{Gn(R,s().enterCodeFromImage),kr(A,"src",o()),kr(P,"minlength",r().length||1),kr(P,"maxlength",r().length),kr(P,"placeholder",s().enterCode),kr(P,"aria-label",Zt(u)===oa.LOADING?s().loading:Zt(u)===oa.PLAYING?"":s().enterCodeAria),kr(P,"aria-live",Zt(u)?"assertive":"polite"),kr(P,"aria-busy",Zt(u)===oa.LOADING),kr(z,"title",s().reload),kr(z,"aria-label",s().reload),kr(V,"aria-label",s().verify),Gn(M,s().verify),kr(D,"aria-label",s().cancel),Gn(j,s().cancel)}),In("submit",C,function(e){e.preventDefault(),e.stopPropagation(),c()?.(Zt(v))},!0),Pn("keydown",P,function(e){"Space"===e.code?(e.preventDefault(),e.stopPropagation(),x()):"Escape"===e.code&&(e.preventDefault(),e.stopPropagation(),i()?.())}),Or(P,()=>Zt(v),e=>vt(v,e)),Pn("click",z,()=>l()?.()),Pn("click",D,()=>i()?.()),Hn(e,$),W(k)}Ln(["keydown","click"]),Fr(pa,{audioUrl:{},codeChallenge:{},config:{},imageUrl:{},onCancel:{},onReload:{},onSubmit:{},strings:{}},[],[],{mode:"open"});var ga=Dn('<div class="altcha-popover-backdrop" data-backdrop=""></div>'),ba=Dn('<div class="altcha-popover-arrow"></div>'),ma=Dn('<div role="button" class="altcha-popover-close">&times;</div>'),ya=Dn('<!> <div><!> <!> <div class="altcha-popover-content"><!></div></div>',1);function wa(e,t){Y(t,!0);let n=Vr(t,"anchor"),r=Vr(t,"children"),a=Vr(t,"display",0,"standard"),o=Vr(t,"backdrop",0,!1),i=Vr(t,"onClickOutside"),l=Vr(t,"onClickOutsideDelay",0,600),c=Vr(t,"onClose"),s=Vr(t,"variant",0,"neutral"),u=Nr(t,["$$slots","$$events","$$legacy","$$host","anchor","children","display","backdrop","onClickOutside","onClickOutsideDelay","onClose","variant"]),d=ft(void 0),f=ft(void 0),h=ft(!1),p=ft(0);function g(){c()?.()}function b(){if(n()&&Zt(d)){const e=n().getBoundingClientRect(),t=document.documentElement.clientHeight-(e.top+e.height)<Zt(d).clientHeight;Zt(h)!==t&&vt(h,t)}}Ur(()=>{const e="bottomsheet"===a()||"overlay"===a();return e&&(Zt(f)&&document.body.append(Zt(f)),Zt(d)&&document.body.append(Zt(d))),b(),Bt().then(()=>{vt(p,Date.now(),!0)}),()=>{e&&(Zt(f)&&document.body.removeChild(Zt(f)),Zt(d)&&document.body.removeChild(Zt(d)))}});var m={get anchor(){return n()},set anchor(e){n(e),He()},get children(){return r()},set children(e){r(e),He()},get display(){return a()},set display(e="standard"){a(e),He()},get backdrop(){return o()},set backdrop(e=!1){o(e),He()},get onClickOutside(){return i()},set onClickOutside(e){i(e),He()},get onClickOutsideDelay(){return l()},set onClickOutsideDelay(e=600){l(e),He()},get onClose(){return c()},set onClose(e){c(e),He()},get variant(){return s()},set variant(e="neutral"){s(e),He()}},y=ya();In("click",ve,function(e){const t=e.target;!Zt(d)?.contains(t)&&Zt(p)&&Zt(p)+l()<Date.now()&&i()?.()}),In("resize",ve,function(){b()}),In("scroll",ve,function(){b()});var w=$e(y),_=e=>{var t=ga();Pr(t,e=>vt(f,e),()=>Zt(f)),Hn(e,t)};Xn(w,e=>{o()&&e(_)});var x=Ce(w,2);$r(x,()=>({...u,class:`altcha-popover ${(t.class||"")??""}`,"data-popover":!0,"data-variant":s(),"data-top":Zt(h),"data-display":a()}));var k=ke(x),$=e=>{Hn(e,ba())};Xn(k,e=>{"standard"===a()&&e($)});var C=Ce(k,2),E=e=>{var t=ma();Pn("click",t,g),Hn(e,t)};Xn(C,e=>{"standard"!==a()&&e(E)});var O=Ce(C,2);return function(e,t,...n){var r=new Kn(e);ln(()=>{const e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},S)}(ke(O),()=>r()??v),le(O),le(x),Pr(x,e=>vt(d,e),()=>Zt(d)),Hn(e,y),W(m)}async function _a(e){let{challenge:t,concurrency:n=navigator.hardwareConcurrency,controller:r=new AbortController,createWorker:a,onOutOfMemory:o=e=>e>1?Math.floor(e/2):0,counterMode:i}=e;n=Math.min(16,Math.max(1,n));const l=[],c=()=>{for(const e of l)e.terminate()};for(let e=0;e<n;e++)l.push(await a(t.parameters.algorithm));let s=null;try{s=await Promise.race(l.map((e,a)=>(r.signal.addEventListener("abort",()=>{e.postMessage({type:"abort"})}),new Promise((r,o)=>{e.addEventListener("error",e=>{o(e)}),e.addEventListener("message",t=>{if(t.data){for(const t of l)t!==e&&t.postMessage({type:"abort"});if(t.data.error)return o(new Error(t.data.error))}r(t.data)}),e.postMessage({challenge:t,counterMode:i,counterStart:a,counterStep:n,type:"work"})}))))}catch(i){if(!!i?.message?.includes("Out of memory")&&o){c();const i=o(n);if(i)return _a({...e,challenge:t,controller:r,concurrency:i,createWorker:a})}throw i}finally{c()}return r.signal.aborted?null:s||null}Ln(["click"]),Fr(wa,{anchor:{},children:{},display:{},backdrop:{},onClickOutside:{},onClickOutsideDelay:{},onClose:{},variant:{}},[],[],{mode:"open"});var xa=Dn('<div class="altcha-overlay-backdrop" data-backdrop=""></div>'),ka=Dn('<div class="altcha-overlay-content"><!></div>'),$a=Dn('<div role="button" class="altcha-overlay-close">&times;</div> <!>',1),Ca=Dn('<div class="altcha-floating-arrow"></div>'),Ea=Dn('<div class="altcha-error">Secure context (HTTPS) required.</div>'),Sa=Dn('<div class="altcha-error"> </div>'),Oa=Dn('<div class="altcha-error"> </div>'),Ra=Dn("<!> <!>",1),Aa=Dn('<!> <div class="altcha"><!> <div class="altcha-main"><div><div class="altcha-checkbox-wrap"><!> <label><!></label></div> <!></div> <!> <!> <input type="hidden"/></div> <!></div>',1);Ln(["click"]),"undefined"!=typeof window&&window.customElements&&customElements.define("altcha-widget",Fr(function(e,t){Y(t,!0);const[n,r]=function(){const e={};return[e,function(){en(()=>{for(var t in e)e[t].unsubscribe();l(e,Lr,{enumerable:!1,value:!0})})}]}(),a=["ar","fa","he","ur"],{isSecureContext:o}=globalThis,{store:i}=globalThis.$altcha.defaults,c=navigator.hardwareConcurrency||2,s=navigator.deviceMemory||0,u=s&&s<=4?Math.min(4,c):c,d=globalThis.$altcha.i18n.store,f=t.$$host,h=(e,t)=>{Bt().then(()=>{f?.dispatchEvent(new CustomEvent(e,{detail:t}))})};let v=ft(de(new URL(location.origin))),p=ft(!1),g=ft(null),b=ft(null),m=ft(de(ia.UNVERIFIED)),y=ft(void 0),w=ft(void 0),_=ft(null),x=ft(void 0),k=ft(null),$=ft(null),C=ft(null),E=ft(null),O=ft(de([])),R=ft(de({})),A=ft(!0);const I=at(()=>({fetch:(e,t)=>fetch(e,t),audioChallengeLanguage:"",auto:"off",barPlacement:"bottom",challenge:"",codeChallenge:null,codeChallengeDisplay:"standard",credentials:null,debug:!1,disableAutoFocus:!1,display:"standard",floatingAnchor:"",floatingOffset:8,floatingPersist:!1,floatingPlacement:"auto",hideFooter:!1,hideLogo:!1,language:"",mockError:!1,minDuration:500,overlayContent:"",name:"altcha",retryOnOutOfMemoryError:!0,serverVerificationFields:!1,serverVerificationTimeZone:!1,test:!1,type:"checkbox",validationMessage:"",verifyFunction:null,verifyUrl:"",workers:u,...Tr(i,"$altchaDefaults",n),...Zt(R)})),P=at(()=>`altcha-checkbox-${t.id||Math.floor(1e12*Math.random()).toString(16)}`),L=at(()=>function(e){switch(e){case"checkbox":return Wr;case"switch":return aa;default:return Xr}}(Zt(I).type)),T=at(()=>Zt(m)===ia.VERIFYING),z=at(()=>!Zt(I).hideFooter),N=at(()=>!Zt(I).hideLogo&&"bar"!==Zt(I).display),V=at(()=>function(e,t){const n=Object.keys(e).map(e=>e.toLowerCase());let r=t.reduce((t,r)=>(r=r.toLowerCase(),t||(e[r]?r:null)||n.find(e=>r.split("-")[0]===e.split("-")[0])||null),null);e[r||""]||(r="en");return{language:r,strings:e[r]}}(Tr(d,"$altchaI18nStore",n),[Zt(I).language,document.documentElement.lang,...navigator.languages])),M=at(()=>a.includes(Zt(V).language)?"rtl":void 0),D=at(()=>({...Zt(V).strings})),j=at(()=>Zt(g)?.audio?.match(/^(https?:)?\//)?J(Zt(g).audio,Zt(v),{language:Zt(I).audioChallengeLanguage||Zt(V).language}).toString():Zt(g)?.audio),F=at(()=>Zt(g)?.image?.match(/^(https?:)?\//)?J(Zt(g).image,Zt(v)):Zt(g)?.image);async function q(e,...t){let n;for(const r of Zt(O))n=await r[e].call(r,...t);return n}async function H(e){await new Promise(t=>setTimeout(t,e))}async function G(e=Zt(I).challenge){const t=await q("onFetchChallenge",e);if(void 0!==t)return t;if("string"==typeof e){let t=null;if(e.match(/^(https?:)?\//)){we("fetching challenge from",e),vt(v,new URL(e,location.origin),!0);const n=await Zt(I).fetch(e,{credentials:Zt(I).credentials||void 0});ge(n);const r=n.headers.get("x-altcha-config");r&&function(e){try{const t=JSON.parse(e);t&&"object"==typeof t&&me({serverVerificationFields:t?.sentinel?.fields,serverVerificationTimeZone:t?.sentinel?.timeZone,verifyUrl:t.verifyurl,...t})}catch(e){we("unable to configure from x-altcha-config header",e)}}(r),t=await n.json()}else{we("parsing JSON challenge");try{t=JSON.parse(e)}catch{throw new Error("Unable to parse JSON challenge.")}}if("object"==typeof t&&"challenge"in t&&(t=function(e){const[t,n]=e.salt.split("?"),r={};if(n)try{Object.assign(r,Object.fromEntries(new URLSearchParams(n).entries()))}catch{}const a={codeChallenge:e.codeChallenge,parameters:{algorithm:e.algorithm,cost:1,data:r,expiresAt:r?.expires?parseInt(r.expires,10):void 0,keyLength:"SHA-512"===e.algorithm?64:"SHA-384"===e.algorithm?48:32,nonce:(o=(new TextEncoder).encode(e.salt),Array.from(new Uint8Array(o)).map(e=>e.toString(16).padStart(2,"0")).join("")),keyPrefix:e.challenge,salt:""},signature:e.signature};var o;return Object.defineProperties(a,{_originalSalt:{enumerable:!1,value:e.salt,writable:!1},_version:{enumerable:!1,value:1,writable:!1}}),a}(t)),!function(e){return!!e&&"object"==typeof e&&"parameters"in e&&"signature"in e&&!!e.parameters&&"object"==typeof e.parameters&&"algorithm"in e.parameters&&"nonce"in e.parameters&&"salt"in e.parameters&&"keyPrefix"in e.parameters}(t))throw new Error("Challenge validation failed.");return t}return e&&"object"==typeof e?JSON.parse(JSON.stringify(e)):null}function B(){return document.getElementById(Zt(P))}function Z(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}function J(e,t,n){const r=new URL(e,t);if(r.search||(r.search=t.search),n)for(const e in n)void 0!==n[e]&&null!==n[e]&&r.searchParams.set(e,n[e]);return r.toString()}function K(e){!Zt(p)&&e.currentTarget.checked?(e.preventDefault(),e.currentTarget.checked=!1,Zt(m)!==ia.VERIFYING&&Oe()):e.currentTarget.checked||(e.preventDefault(),_e())}function X(e){Zt(m)===ia.VERIFYING?e.currentTarget.setCustomValidity(Zt(D).waitAlert):Zt(I).validationMessage&&e.currentTarget.setCustomValidity(Zt(I).validationMessage)}function Q(){Zt(b)&&Zt(b).abort(),he(Zt(I).display),_e()}function ee(e){"onfocus"===Zt(I).auto&&Zt(m)===ia.UNVERIFIED&&Oe()}function te(){Zt(b)&&Zt(b).abort(),he(Zt(I).display),_e()}function ce(e){vt(k,e.submitter,!0),"onsubmit"===Zt(I).auto&&Zt(m)===ia.UNVERIFIED&&(e.preventDefault(),e.stopPropagation(),Ee(),Oe().then(e=>{e&&!Zt(g)&&Bt().then(()=>{fe(Zt(k))})}))}function fe(e){Zt(_)&&"requestSubmit"in Zt(_)?Zt(_).requestSubmit(e):Zt(_)?.reportValidity()&&(e?e.click():Zt(_).submit())}function he(e){switch(e){case"bar":case"floating":case"overlay":ye(),Zt(I).auto&&"off"!==Zt(I).auto||(Zt(R).auto="onsubmit");break;case"standard":Ee()}}function ge(e){if(e.status>=400)throw new Error(`Server responded with ${e.status}.`);const t=e.headers.get("content-type");if(!t||!t.includes("/json"))throw new Error(`Server responded with invalid content-type. Expected application/json, received ${t}.`)}async function be(e){if(!Zt(E))return void xe(ia.ERROR,"Cannot verify code challenge without PoW payload.");xe(ia.VERIFYING);let t=null;if(Zt(I).verifyUrl)t=await async function(e,t){const n=await q("onRequestServerVerification",e,t);if(void 0!==n)return n;if(we("requesting server verification from",Zt(I).verifyUrl),!Zt(I).verifyUrl)throw new Error("Parameter verifyUrl must be set for server verification.");const r=await Zt(I).fetch(J(Zt(I).verifyUrl,Zt(v)),{body:JSON.stringify({code:t,fields:Zt(I).serverVerificationFields?[...Zt(_)?.querySelectorAll('input[type="text"]:not([data-no-spamfilter]), textarea:not([data-no-spamfilter])')||[]].reduce((e,t)=>{const n=t.name,r=t.value;return n&&r&&(e[n]=/\n/.test(r)?r.replace(new RegExp("(?<!\\r)\\n","g"),"\r\n"):r),e},{}):void 0,payload:e,timeZone:Zt(I).serverVerificationTimeZone?Z():void 0}),credentials:Zt(I).credentials||void 0,headers:{"Content-Type":"application/json"},method:"POST"});ge(r);const a=await r.json();return a&&"object"==typeof a&&"payload"in a&&a.payload&&h("serververification",a),a}(Zt(E),e);else{if(!Zt(I).verifyFunction)return void xe(ia.ERROR,"Parameter verifyUrl is required for code challenge verification.");t=await Zt(I).verifyFunction(Zt(E),e)}t?.payload&&(vt(E,t.payload,!0),we("server payload",Zt(E))),!0===t?.verified?(we("verified"),xe(ia.VERIFIED),h("verified",{payload:Zt(E)}),"onsubmit"===Zt(I).auto&&Bt().then(()=>{fe(Zt(k))})):xe(ia.ERROR,t?.reason||"Verification failed."),Zt(I).disableAutoFocus||B()?.focus()}function me(e){Object.assign(Zt(R),{...Object.fromEntries(Object.entries(e).filter(([e,t])=>void 0!==t))})}function ye(){vt(A,!1)}function we(...e){(Zt(I).debug||e.some(e=>e instanceof Error))&&console[e[0]instanceof Error?"error":"log"]("ALTCHA",`[name=${Zt(I).name}]`,...e)}function _e(e=ia.UNVERIFIED,t=null){vt(p,!1),vt($,t,!0),vt(E,null),Zt(C)&&(clearTimeout(Zt(C)),vt(C,null)),xe(e)}function xe(e,t=null){vt(m,e,!0),vt($,t,!0),h("statechange",{payload:Zt(E),state:Zt(m)})}function Ee(){vt(A,!0),Bt().then(()=>{Se()})}function Se(){if("floating"===Zt(I).display)return function(e=20){if(!Zt(x))return;const t=Zt(I).floatingPlacement;if(!Zt(w)&&(vt(w,(Zt(I).floatingAnchor instanceof HTMLElement?Zt(I).floatingAnchor:Zt(I).floatingAnchor?document.querySelector(Zt(I).floatingAnchor):Zt(_)?.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])'))||Zt(_),!0),!Zt(w)))return void we("unable to find floating anchor element");const n=parseInt(Zt(I).floatingOffset,10)||12,r=Zt(w).getBoundingClientRect(),a=Zt(x).getBoundingClientRect(),o=document.documentElement.clientHeight,i=document.documentElement.clientWidth,l=t&&"auto"!==t?"top"===t:r.bottom+a.height+n+e>o,c=Math.max(e,Math.min(i-e-a.width,r.left+r.width/2-a.width/2));if(Zt(x).style.setProperty("--altcha-floating-left",`${c}px`),Zt(x).style.setProperty("--altcha-floating-top",l?r.top-(a.height+n)+"px":`${r.bottom+n}px`),Zt(x).setAttribute("data-floating-position",l?"top":"bottom"),Zt(y)){const e=Zt(y).getBoundingClientRect();Zt(y).style.left=r.left-c+r.width/2-e.width/2+"px"}}()}async function Oe(e={}){const{concurrency:t=Math.max(1,Zt(I).workers),controller:n=new AbortController,minDuration:r=Zt(I).minDuration}=e,a=performance.now();let i=null,l=null,c=!1;const s=await q("onVerify",e);if(void 0!==s)return s;vt(b,n,!0),_e(ia.VERIFYING);try{if(!o)throw new Error("Secure context (HTTPS) required.");if(Zt(I).mockError)throw new Error("Mock error.");if(Zt(I).test)return we("running test mode with null challenge"),await H(Math.max(0,r-(performance.now()-a))),vt(E,btoa(JSON.stringify({challenge:null,solution:null,test:!0})),!0),we("verified"),xe(ia.VERIFIED),h("vefified",{payload:Zt(E)}),{payload:Zt(E)};if(i=await G(),!i)throw new Error("Failed to fetch challenge.");we("challenge",i),i.parameters.expiresAt&&function(e){Zt(C)&&clearTimeout(Zt(C));const t=()=>{Zt(m)!==ia.UNVERIFIED?xe(ia.EXPIRED):_e(),h("expired")},n=1e3*e-Date.now();n>=1?vt(C,setTimeout(t,n),!0):t()}(i.parameters.expiresAt),c="_version"in i&&1===i._version;const e=globalThis.$altcha.algorithms.get(i.parameters.algorithm);if(!e)throw new Error(`Unsupported algorithm ${i.parameters.algorithm}.`);if(l=await _a({challenge:i,concurrency:t,controller:n,createWorker:e,counterMode:c?"string":"uint32",onOutOfMemory:e=>{if(we("out of memory error received"),h("outofmemory"),Zt(I).retryOnOutOfMemoryError&&e>1){const t=Math.floor(e/2);return we(`retrying with ${t} workers...`),t}}}),Zt(b)?.signal.aborted)return _e(),null;if(!l)throw new Error("Failed to find solution.");we("solution",l),await H(Math.max(0,r-(performance.now()-a))),vt(g,i.codeChallenge||Zt(I).codeChallenge||null,!0),vt(E,c?btoa(JSON.stringify(function(e,t){return{algorithm:e.parameters.algorithm,challenge:e.parameters.keyPrefix,number:t.counter,salt:"_originalSalt"in e?e._originalSalt:e.parameters.nonce,signature:e.signature,took:t.time||0}}(i,l))):btoa(JSON.stringify({challenge:{...i,codeChallenge:void 0},solution:l})),!0),Zt(g)?(we("requesting code verification"),xe(ia.CODE),h("codechallenge",{codeChallenge:Zt(g)})):Zt(I).verifyUrl?await be():(we("verified"),xe(ia.VERIFIED),h("vefified",{payload:Zt(E)}))}catch(e){return we("verification failed",e),xe(ia.ERROR,String(e)),null}finally{vt(b,null)}return{challenge:i,payload:Zt(E),solution:l}}tn(()=>{me({auto:t.auto,challenge:t.challenge,display:t.display,language:t.language,name:t.name,type:t.type,workers:t.workers})}),tn(()=>{if(t.configuration)try{me(JSON.parse(t.configuration))}catch{we("unable to parse the `configuration` attribute (JSON expected)")}}),tn(()=>{he(Zt(I).display)}),tn(()=>{Zt(p)&&Zt(m)===ia.VERIFYING&&vt(p,!1)}),tn(()=>{Zt(p)||Zt(m)!==ia.VERIFIED||vt(p,!0)}),tn(()=>{if(!Zt(p)){const e=B();e&&e.checked&&(e.checked=!1)}}),tn(()=>{Zt(m)===ia.VERIFIED&&B()?.setCustomValidity("")}),tn(()=>{if("onload"===Zt(I).auto){const e=setTimeout(()=>{Oe()},1);return()=>{e&&clearTimeout(e)}}}),tn(()=>{Zt($)&&we("error:",Zt($))}),Ur(()=>(we("mounted","3.0.0-beta.1"),f&&globalThis.$altcha.instances.add(f),vt(_,Zt(x)?.closest("form"),!0),Zt(_)?.addEventListener("reset",te),Zt(_)?.addEventListener("submit",ce),Zt(_)?.addEventListener("focusin",ee),function(){vt(O,[...globalThis.$altcha.plugins].map(e=>new e(f)),!0),we("activating plugins",Zt(O).map(e=>e.constructor.name));for(const e of Zt(O))e.activate()}(),h("load"),o||we("secure context (HTTPS) required"),()=>{!function(){for(const e of Zt(O))e.destroy()}(),f&&globalThis.$altcha.instances.delete(f),Zt(C)&&clearTimeout(Zt(C)),Zt(_)?.removeEventListener("reset",te),Zt(_)?.removeEventListener("submit",ce),Zt(_)?.removeEventListener("focusin",ee)}));var Re={configure:me,getConfiguration:function(){return{...Zt(I)}},getState:function(){return Zt(m)},hide:ye,log:we,reset:_e,setState:xe,show:Ee,updateUI:Se,verify:Oe},Ae=Aa();In("scroll",pe,function(){Se()}),In("click",pe,function(e){const t=e.target;"floating"!==Zt(I).display||!t||f?.contains(t)||t.hasAttribute("data-backdrop")||t.closest("[data-popover]")||Zt(m)===ia.VERIFIED||Zt(I).floatingPersist||ye()}),In("pageshow",ve,function(){_e()}),In("resize",ve,function(){Se()});var Ie=$e(Ae),Pe=e=>{Hn(e,xa())};Xn(Ie,e=>{"overlay"===Zt(I).display&&Zt(A)&&e(Pe)});var Le=Ce(Ie,2),Te=ke(Le),ze=e=>{var t=$a(),n=$e(t),r=Ce(n,2),a=e=>{var t=ka();er(ke(t),()=>document.querySelector(Zt(I).overlayContent)?.innerHTML),le(t),Hn(e,t)};Xn(r,e=>{Zt(I).overlayContent&&e(a)}),Pn("click",n,Q),Hn(e,t)};Xn(Te,e=>{"overlay"===Zt(I).display&&Zt(A)&&e(ze)});var Ne=Ce(Te,2),Ve=ke(Ne),Me=ke(Ve),De=ke(Me);{let e=at(()=>"standard"===Zt(I).display&&"onsubmit"!==Zt(I).auto||Zt(m)===ia.VERIFYING);!function(e,t,n){var r;re&&(r=ne,ie());var a=new Kn(e);ln(()=>{var e=t()??null;if(re&&ue(r)===U!=(null!==e)){var o=se();return oe(o),a.anchor=o,ae(!1),a.ensure(e,e&&(t=>n(t,e))),void ae(!0)}a.ensure(e,e&&(t=>n(t,e)))},S)}(De,()=>Zt(L),(t,n)=>{n(t,{get id(){return Zt(P)},name:"",get required(){return Zt(e)},get loading(){return Zt(T)},get checked(){return Zt(p)},onchange:K,oninvalid:X})})}var je=Ce(De,2),Fe=ke(je),Ue=e=>{var t=Un();on(()=>Gn(t,Zt(D).verificationRequired)),Hn(e,t)},qe=e=>{var t=Un();on(()=>Gn(t,Zt(D).verifying)),Hn(e,t)},He=e=>{var t=Un();on(()=>Gn(t,Zt(D).verified)),Hn(e,t)},Ge=e=>{var t=Un();on(()=>Gn(t,Zt(D).label)),Hn(e,t)};Xn(Fe,e=>{Zt(m)===ia.CODE&&Zt(g)?e(Ue):Zt(m)===ia.VERIFYING?e(qe,1):Zt(m)===ia.VERIFIED?e(He,2):e(Ge,!1)}),le(je),le(Me);var Be=Ce(Me,2),Ze=e=>{ea(e,{get strings(){return Zt(D)}})};Xn(Be,e=>{Zt(N)&&e(Ze)}),le(Ve);var Je=Ce(Ve,2),Ye=e=>{{let t=at(()=>"bar"===Zt(I).display&&Zt(N));na(e,{get logo(){return Zt(t)},get strings(){return Zt(D)}})}};Xn(Je,e=>{Zt(z)&&e(Ye)});var We=Ce(Je,2),Ke=e=>{var t=Ca();Pr(t,e=>vt(y,e),()=>Zt(y)),Hn(e,t)};Xn(We,e=>{"floating"===Zt(I).display&&e(Ke)});var Xe=Ce(We,2);_r(Xe),le(Ne);var Qe=Ce(Ne,2),et=e=>{wa(e,{get anchor(){return Zt(x)},onClickOutside:()=>{o&&_e()},role:"alert",variant:"error",get dir(){return Zt(M)},children:(e,t)=>{var n=qn(),r=$e(n),a=e=>{Hn(e,Ea())},i=e=>{var t=Sa(),n=ke(t,!0);le(t),on(()=>Gn(n,Zt(D).expired)),Hn(e,t)},l=e=>{var t=Oa(),n=ke(t,!0);le(t),on(()=>{kr(t,"title",Zt($)),Gn(n,Zt(D).error)}),Hn(e,t)};Xn(r,e=>{Zt($)||o?Zt($)||Zt(m)!==ia.EXPIRED?e(l,!1):e(i,1):e(a)}),Hn(e,n)},$$slots:{default:!0}})},tt=e=>{var t=qn();!function(e,t,n){re&&ie();var r=new Kn(e);ln(()=>{var e=t();e!=e&&(e=Qn),r.ensure(e,n)})}($e(t),()=>Zt(g),e=>{{let t=at(()=>"standard"!==Zt(I).codeChallengeDisplay);wa(e,{get anchor(){return Zt(x)},get backdrop(){return Zt(t)},get display(){return Zt(I).codeChallengeDisplay},onClose:()=>{_e()},role:"dialog",get"aria-label"(){return Zt(D).verificationRequired},get dir(){return Zt(M)},children:(e,t)=>{var n=Ra(),r=$e(n);pa(r,{get audioUrl(){return Zt(j)},get imageUrl(){return Zt(F)},onCancel:()=>_e(),onReload:()=>Oe(),onSubmit:e=>be(e),get codeChallenge(){return Zt(g)},get config(){return Zt(I)},get strings(){return Zt(D)}});var a=Ce(r,2),o=e=>{na(e,{get logo(){return Zt(N)},get strings(){return Zt(D)}})};Xn(a,e=>{Zt(z)&&"standard"!==Zt(I).codeChallengeDisplay&&e(o)}),Hn(e,n)},$$slots:{default:!0}})}}),Hn(e,t)};Xn(Qe,e=>{Zt($)||Zt(m)===ia.EXPIRED||!o?e(et):Zt(g)&&Zt(m)===ia.CODE&&e(tt,1)}),le(Le),Pr(Le,e=>vt(x,e),()=>Zt(x)),on(e=>{var t,n,r;kr(Le,"data-state",Zt(m)),kr(Le,"data-display",Zt(I).display||void 0),kr(Le,"data-placement",e),kr(Le,"data-visible",Zt(A)||void 0),kr(Le,"dir",Zt(M)),kr(je,"for",Zt(P)),kr(Xe,"name",Zt(I).name),t=Xe,n=Zt(E),(r=Cr(t)).value!==(r.value=n??void 0)&&(t.value!==n||0===n&&t.nodeName===wr)&&(t.value=n??""),Le.dir=Le.dir},[()=>function(e){switch(e){case"bar":return Zt(I).barPlacement||"bottom";case"floating":return Zt(I).floatingPlacement||"auto";default:return}}(Zt(I).display)]),Hn(e,Ae);var nt=W(Re);return r(),nt},{auto:{type:"String"},challenge:{type:"String"},configuration:{type:"String"},display:{type:"String"},language:{type:"String"},name:{type:"String"},theme:{type:"String"},type:{type:"String"},workers:{type:"Number"}},[],["configure","getConfiguration","getState","hide","log","reset","setState","show","updateUI","verify"]))});
@@ -0,0 +1 @@
1
+ declare module 'altcha/external'; export {};
@@ -0,0 +1 @@
1
+ declare module 'altcha/i18n/419'; export {};
@@ -0,0 +1 @@
1
+ declare module 'altcha/i18n/af'; export {};
@@ -0,0 +1,22 @@
1
+ const i18n = {
2
+ ariaLinkLabel: "Besoek Altcha.org",
3
+ enterCode: "Voer kode in",
4
+ enterCodeAria: "Voer die kode in wat jy hoor. Druk Spasie om die klank af te speel.",
5
+ error: "Verifikasie het misluk. Probeer later weer.",
6
+ expired: "Verifikasie het verval. Probeer weer.",
7
+ footer: 'Beskerm deur <a href="https://altcha.org/" target="_blank" aria-label="Besoek Altcha.org">ALTCHA</a>',
8
+ getAudioChallenge: "Kry 'n klankuitdaging",
9
+ label: "Ek is nie 'n robot nie",
10
+ loading: "Laai...",
11
+ reload: "Laai weer",
12
+ verify: "Verifieer",
13
+ verificationRequired: "Verifikasie is vereis!",
14
+ verified: "Geverifieer",
15
+ verifying: "Verifieer...",
16
+ waitAlert: "Verifieer... wag asseblief.",
17
+ cancel: "Kanselleer",
18
+ enterCodeFromImage: "Om voort te gaan, voer asseblief die kode vanaf die onderstaande prentjie in."
19
+ };
20
+ if ("$altcha" in globalThis) {
21
+ globalThis.$altcha.i18n.set("af", i18n);
22
+ }
@@ -0,0 +1,27 @@
1
+ (function(factory) {
2
+ typeof define === "function" && define.amd ? define(factory) : factory();
3
+ })((function() {
4
+ "use strict";
5
+ const i18n = {
6
+ ariaLinkLabel: "Besoek Altcha.org",
7
+ enterCode: "Voer kode in",
8
+ enterCodeAria: "Voer die kode in wat jy hoor. Druk Spasie om die klank af te speel.",
9
+ error: "Verifikasie het misluk. Probeer later weer.",
10
+ expired: "Verifikasie het verval. Probeer weer.",
11
+ footer: 'Beskerm deur <a href="https://altcha.org/" target="_blank" aria-label="Besoek Altcha.org">ALTCHA</a>',
12
+ getAudioChallenge: "Kry 'n klankuitdaging",
13
+ label: "Ek is nie 'n robot nie",
14
+ loading: "Laai...",
15
+ reload: "Laai weer",
16
+ verify: "Verifieer",
17
+ verificationRequired: "Verifikasie is vereis!",
18
+ verified: "Geverifieer",
19
+ verifying: "Verifieer...",
20
+ waitAlert: "Verifieer... wag asseblief.",
21
+ cancel: "Kanselleer",
22
+ enterCodeFromImage: "Om voort te gaan, voer asseblief die kode vanaf die onderstaande prentjie in."
23
+ };
24
+ if ("$altcha" in globalThis) {
25
+ globalThis.$altcha.i18n.set("af", i18n);
26
+ }
27
+ }));
@@ -0,0 +1 @@
1
+ declare module 'altcha/i18n/africa'; export {};
@@ -1,77 +1,4 @@
1
- const l = () => {
2
- };
3
- function g(e, i) {
4
- return e != e ? i == i : e !== i || e !== null && typeof e == "object" || typeof e == "function";
5
- }
6
- let u = !1;
7
- function b(e) {
8
- var i = u;
9
- try {
10
- return u = !0, e();
11
- } finally {
12
- u = i;
13
- }
14
- }
15
- function A(e, i, r) {
16
- if (e == null)
17
- return i(void 0), l;
18
- const t = b(
19
- () => e.subscribe(
20
- i,
21
- // @ts-expect-error
22
- r
23
- )
24
- );
25
- return t.unsubscribe ? () => t.unsubscribe() : t;
26
- }
27
- const n = [];
28
- function k(e, i = l) {
29
- let r = null;
30
- const t = /* @__PURE__ */ new Set();
31
- function s(o) {
32
- if (g(e, o) && (e = o, r)) {
33
- const c = !n.length;
34
- for (const a of t)
35
- a[1](), n.push(a, e);
36
- if (c) {
37
- for (let a = 0; a < n.length; a += 2)
38
- n[a][0](n[a + 1]);
39
- n.length = 0;
40
- }
41
- }
42
- }
43
- function h(o) {
44
- s(o(
45
- /** @type {T} */
46
- e
47
- ));
48
- }
49
- function f(o, c = l) {
50
- const a = [o, c];
51
- return t.add(a), t.size === 1 && (r = i(s, h) || l), o(
52
- /** @type {T} */
53
- e
54
- ), () => {
55
- t.delete(a), t.size === 0 && r && (r(), r = null);
56
- };
57
- }
58
- return { set: s, update: h, subscribe: f };
59
- }
60
- function d(e) {
61
- let i;
62
- return A(e, (r) => i = r)(), i;
63
- }
64
- globalThis.altchaPlugins = globalThis.altchaPlugins || [];
65
- globalThis.altchaI18n = globalThis.altchaI18n || {
66
- get: (e) => d(globalThis.altchaI18n.store)[e],
67
- set: (e, i) => {
68
- Object.assign(d(globalThis.altchaI18n.store), {
69
- [e]: i
70
- }), globalThis.altchaI18n.store.set(d(globalThis.altchaI18n.store));
71
- },
72
- store: k({})
73
- };
74
- const p = {
1
+ const i18n$6 = {
75
2
  ariaLinkLabel: "Besoek Altcha.org",
76
3
  enterCode: "Voer kode in",
77
4
  enterCodeAria: "Voer die kode in wat jy hoor. Druk Spasie om die klank af te speel.",
@@ -86,10 +13,14 @@ const p = {
86
13
  verificationRequired: "Verifikasie is vereis!",
87
14
  verified: "Geverifieer",
88
15
  verifying: "Verifieer...",
89
- waitAlert: "Verifieer... wag asseblief."
16
+ waitAlert: "Verifieer... wag asseblief.",
17
+ cancel: "Kanselleer",
18
+ enterCodeFromImage: "Om voort te gaan, voer asseblief die kode vanaf die onderstaande prentjie in."
90
19
  };
91
- globalThis.altchaI18n.set("af", p);
92
- const v = {
20
+ if ("$altcha" in globalThis) {
21
+ globalThis.$altcha.i18n.set("af", i18n$6);
22
+ }
23
+ const i18n$5 = {
93
24
  ariaLinkLabel: "Altcha.org ይጎብኙ",
94
25
  enterCode: "ኮድ አስገባ",
95
26
  enterCodeAria: "የሚሰማዎትን ኮድ ያስገቡ። ድምጽ ለመጫወት Space ን ይጫኑ።",
@@ -104,64 +35,80 @@ const v = {
104
35
  verificationRequired: "ማረጋገጫ ያስፈልጋል!",
105
36
  verified: "ተረጋግጧል",
106
37
  verifying: "በማረጋገጥ ላይ...",
107
- waitAlert: "በማረጋገጥ ላይ... እባክዎ ይጠብቁ።"
38
+ waitAlert: "በማረጋገጥ ላይ... እባክዎ ይጠብቁ።",
39
+ cancel: "ይቅር",
40
+ enterCodeFromImage: "ለመቀጠል፣ እባክዎን ከታች ካለው ምስል ኮዱን ያስገቡ።"
108
41
  };
109
- globalThis.altchaI18n.set("am", v);
110
- const y = {
42
+ if ("$altcha" in globalThis) {
43
+ globalThis.$altcha.i18n.set("am", i18n$5);
44
+ }
45
+ const i18n$4 = {
111
46
  ariaLinkLabel: "زور Altcha.org",
112
47
  enterCode: "أدخل الرمز",
113
48
  enterCodeAria: "أدخل الرمز الذي تسمعه. اضغط على المسافة لتشغيل الصوت.",
114
49
  error: "فشل التحقق. حاول مرة أخرى لاحقاً.",
115
50
  expired: "انتهت صلاحية التحقق. حاول مرة أخرى.",
116
- verificationRequired: "مطلوب التحقق!",
117
51
  footer: 'محمي بواسطة <a href="https://altcha.org/" target="_blank" aria-label="زور Altcha.org">ALTCHA</a>',
118
52
  getAudioChallenge: "احصل على تحدي صوتي",
119
53
  label: "أنا لست روبوتاً",
120
54
  loading: "جارٍ التحميل...",
121
55
  reload: "إعادة تحميل",
122
56
  verify: "تحقق",
57
+ verificationRequired: "مطلوب التحقق!",
123
58
  verified: "تم التحقق",
124
59
  verifying: "جارٍ التحقق...",
125
- waitAlert: "جارٍ التحقق... يرجى الانتظار."
60
+ waitAlert: "جارٍ التحقق... يرجى الانتظار.",
61
+ cancel: "إلغاء",
62
+ enterCodeFromImage: "للمتابعة، يرجى إدخال الرمز من الصورة أدناه."
126
63
  };
127
- globalThis.altchaI18n.set("ar", y);
128
- const T = {
64
+ if ("$altcha" in globalThis) {
65
+ globalThis.$altcha.i18n.set("ar", i18n$4);
66
+ }
67
+ const i18n$3 = {
129
68
  ariaLinkLabel: "Visitez Altcha.org",
130
69
  enterCode: "Entrez le code",
131
70
  enterCodeAria: "Entrez le code que vous entendez. Appuyez sur Espace pour écouter l'audio.",
132
71
  error: "Échec de la vérification. Essayez à nouveau plus tard.",
133
72
  expired: "La vérification a expiré. Essayez à nouveau.",
134
- verificationRequired: "Vérification requise !",
135
73
  footer: 'Protégé par <a href="https://altcha.org/" target="_blank" aria-label="Visitez Altcha.org">ALTCHA</a>',
136
74
  getAudioChallenge: "Obtenir un défi audio",
137
75
  label: "Pas un robot",
138
76
  loading: "Chargement...",
139
77
  reload: "Recharger",
140
78
  verify: "Vérifier",
79
+ verificationRequired: "Vérification requise !",
141
80
  verified: "Vérifié",
142
81
  verifying: "Vérification en cours...",
143
- waitAlert: "Vérification en cours... veuillez patienter."
82
+ waitAlert: "Vérification en cours... veuillez patienter.",
83
+ cancel: "Annuler",
84
+ enterCodeFromImage: "Pour continuer, veuillez entrer le code de l'image ci-dessous."
144
85
  };
145
- globalThis.altchaI18n.set("fr-fr", T);
146
- const C = {
86
+ if ("$altcha" in globalThis) {
87
+ globalThis.$altcha.i18n.set("fr-fr", i18n$3);
88
+ }
89
+ const i18n$2 = {
147
90
  ariaLinkLabel: "Visitar Altcha.org",
148
91
  enterCode: "Introduza o código",
149
92
  enterCodeAria: "Introduza o código que ouve. Prima Espaço para reproduzir o áudio.",
150
93
  error: "A verificação falhou. Por favor, tente novamente mais tarde.",
151
94
  expired: "Verificação expirada. Por favor, tente novamente.",
152
- verificationRequired: "Verificação necessária!",
153
95
  footer: 'Protegido por <a href="https://altcha.org/" target="_blank" aria-label="Visitar Altcha.org">ALTCHA</a>',
154
96
  getAudioChallenge: "Obter desafio de áudio",
155
97
  label: "Não sou um robô",
156
98
  loading: "A carregar...",
157
99
  reload: "Recarregar",
158
100
  verify: "Verificar",
101
+ verificationRequired: "Verificação necessária!",
159
102
  verified: "Verificado",
160
103
  verifying: "A verificar...",
161
- waitAlert: "A verificar... por favor aguarde."
104
+ waitAlert: "A verificar... por favor aguarde.",
105
+ cancel: "Cancelar",
106
+ enterCodeFromImage: "Para prosseguir, introduza o código da imagem abaixo."
162
107
  };
163
- globalThis.altchaI18n.set("pt-pt", C);
164
- const w = {
108
+ if ("$altcha" in globalThis) {
109
+ globalThis.$altcha.i18n.set("pt-pt", i18n$2);
110
+ }
111
+ const i18n$1 = {
165
112
  ariaLinkLabel: "Tembelea Altcha.org",
166
113
  enterCode: "Weka nambari",
167
114
  enterCodeAria: "Weka nambari unayosikia. Bonyeza Space kucheza sauti.",
@@ -176,10 +123,14 @@ const w = {
176
123
  verificationRequired: "Uthibitishaji unahitajika!",
177
124
  verified: "Imethibitishwa",
178
125
  verifying: "Inathibitisha...",
179
- waitAlert: "Inathibitisha... tafadhali subiri."
126
+ waitAlert: "Inathibitisha... tafadhali subiri.",
127
+ cancel: "Ghairi",
128
+ enterCodeFromImage: "Ili kuendelea, tafadhali weka nambari kutoka kwa picha hapa chini."
180
129
  };
181
- globalThis.altchaI18n.set("sw", w);
182
- const L = {
130
+ if ("$altcha" in globalThis) {
131
+ globalThis.$altcha.i18n.set("sw", i18n$1);
132
+ }
133
+ const i18n = {
183
134
  ariaLinkLabel: "Ṣe abẹwo si Altcha.org",
184
135
  enterCode: "Tẹ koodu sii",
185
136
  enterCodeAria: "Tẹ koodu ti o ngbọ sii. Tẹ Space lati ṣe ohun orin.",
@@ -194,6 +145,10 @@ const L = {
194
145
  verificationRequired: "Ìdájọ́kòwò ni a nílò!",
195
146
  verified: "A ti dájọ́",
196
147
  verifying: "Ó ń ṣàdájọ́...",
197
- waitAlert: "Ó ń ṣàdájọ́... ẹ jọ̀ọ́ ẹ duro."
148
+ waitAlert: "Ó ń ṣàdájọ́... ẹ jọ̀ọ́ ẹ duro.",
149
+ cancel: "Fagbọsẹ",
150
+ enterCodeFromImage: "Lati tẹsiwaju, jọwọ tẹ koodu ti o wa lati aworan isalẹ sii."
198
151
  };
199
- globalThis.altchaI18n.set("yo", L);
152
+ if ("$altcha" in globalThis) {
153
+ globalThis.$altcha.i18n.set("yo", i18n);
154
+ }