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.
- package/LICENSE.txt +1 -1
- package/README.md +149 -204
- package/dist/external/altcha.css +1 -0
- package/dist/external/altcha.js +6681 -0
- package/dist/external/altcha.min.js +1 -0
- package/dist/external/altcha.umd.cjs +6687 -0
- package/dist/external/altcha.umd.min.cjs +1 -0
- package/dist/external/index.d.ts +1 -0
- package/dist/i18n/419.d.ts +1 -0
- package/dist/i18n/af.d.ts +1 -0
- package/dist/i18n/af.js +22 -0
- package/dist/i18n/af.umd.cjs +27 -0
- package/dist/i18n/africa.d.ts +1 -0
- package/{dist_i18n → dist/i18n}/africa.js +52 -97
- package/dist/i18n/africa.umd.cjs +159 -0
- package/dist/i18n/all.d.ts +1 -0
- package/{dist_i18n → dist/i18n}/all.js +465 -299
- package/dist/i18n/all.umd.cjs +1325 -0
- package/dist/i18n/am.d.ts +1 -0
- package/dist/i18n/am.js +22 -0
- package/dist/i18n/am.umd.cjs +27 -0
- package/dist/i18n/americas.d.ts +1 -0
- package/{dist_i18n → dist/i18n}/americas.js +24 -85
- package/dist/i18n/americas.umd.cjs +71 -0
- package/dist/i18n/ar.d.ts +1 -0
- package/dist/i18n/ar.js +22 -0
- package/dist/i18n/ar.umd.cjs +27 -0
- package/dist/i18n/asia.d.ts +1 -0
- package/{dist_i18n → dist/i18n}/asia.js +177 -158
- package/dist/i18n/asia.umd.cjs +511 -0
- package/dist/i18n/az.d.ts +1 -0
- package/dist/i18n/az.js +22 -0
- package/dist/i18n/az.umd.cjs +27 -0
- package/dist/i18n/be.d.ts +1 -0
- package/dist/i18n/be.js +22 -0
- package/dist/i18n/be.umd.cjs +27 -0
- package/dist/i18n/bg.d.ts +1 -0
- package/dist/i18n/bg.js +22 -0
- package/dist/i18n/bg.umd.cjs +27 -0
- package/dist/i18n/bn.d.ts +1 -0
- package/dist/i18n/bn.js +22 -0
- package/dist/i18n/bn.umd.cjs +27 -0
- package/dist/i18n/br.d.ts +1 -0
- package/dist/i18n/bs.d.ts +1 -0
- package/dist/i18n/bs.js +22 -0
- package/dist/i18n/bs.umd.cjs +27 -0
- package/dist/i18n/ca.d.ts +1 -0
- package/dist/i18n/ca.js +22 -0
- package/dist/i18n/ca.umd.cjs +27 -0
- package/dist/i18n/cn.d.ts +1 -0
- package/dist/i18n/cs.d.ts +1 -0
- package/dist/i18n/cs.js +22 -0
- package/dist/i18n/cs.umd.cjs +27 -0
- package/dist/i18n/da.d.ts +1 -0
- package/dist/i18n/da.js +22 -0
- package/dist/i18n/da.umd.cjs +27 -0
- package/dist/i18n/de.d.ts +1 -0
- package/dist/i18n/de.js +22 -0
- package/dist/i18n/de.umd.cjs +27 -0
- package/dist/i18n/el.d.ts +1 -0
- package/dist/i18n/el.js +22 -0
- package/dist/i18n/el.umd.cjs +27 -0
- package/dist/i18n/en.d.ts +1 -0
- package/dist/i18n/en.js +22 -0
- package/dist/i18n/en.umd.cjs +27 -0
- package/dist/i18n/es-419.js +22 -0
- package/dist/i18n/es-419.umd.cjs +27 -0
- package/dist/i18n/es-es.js +22 -0
- package/dist/i18n/es-es.umd.cjs +27 -0
- package/dist/i18n/es.d.ts +1 -0
- package/dist/i18n/et.d.ts +1 -0
- package/dist/i18n/et.js +22 -0
- package/dist/i18n/et.umd.cjs +27 -0
- package/dist/i18n/eu.d.ts +1 -0
- package/dist/i18n/eu.js +22 -0
- package/dist/i18n/eu.umd.cjs +27 -0
- package/dist/i18n/europe.d.ts +1 -0
- package/{dist_i18n → dist/i18n}/europe.js +283 -209
- package/dist/i18n/europe.umd.cjs +819 -0
- package/dist/i18n/fa.d.ts +1 -0
- package/dist/i18n/fa.js +22 -0
- package/dist/i18n/fa.umd.cjs +27 -0
- package/dist/i18n/fi.d.ts +1 -0
- package/dist/i18n/fi.js +22 -0
- package/dist/i18n/fi.umd.cjs +27 -0
- package/dist/i18n/fr-ca.js +22 -0
- package/dist/i18n/fr-ca.umd.cjs +27 -0
- package/dist/i18n/fr-fr.js +22 -0
- package/dist/i18n/fr-fr.umd.cjs +27 -0
- package/dist/i18n/fr.d.ts +1 -0
- package/dist/i18n/ga.d.ts +1 -0
- package/dist/i18n/ga.js +22 -0
- package/dist/i18n/ga.umd.cjs +27 -0
- package/dist/i18n/he.d.ts +1 -0
- package/dist/i18n/he.js +22 -0
- package/dist/i18n/he.umd.cjs +27 -0
- package/dist/i18n/hi.d.ts +1 -0
- package/dist/i18n/hi.js +22 -0
- package/dist/i18n/hi.umd.cjs +27 -0
- package/dist/i18n/hr.d.ts +1 -0
- package/dist/i18n/hr.js +22 -0
- package/dist/i18n/hr.umd.cjs +27 -0
- package/dist/i18n/hu.d.ts +1 -0
- package/dist/i18n/hu.js +22 -0
- package/dist/i18n/hu.umd.cjs +27 -0
- package/dist/i18n/hy.d.ts +1 -0
- package/dist/i18n/hy.js +22 -0
- package/dist/i18n/hy.umd.cjs +27 -0
- package/dist/i18n/id.d.ts +1 -0
- package/dist/i18n/id.js +22 -0
- package/dist/i18n/id.umd.cjs +27 -0
- package/dist/i18n/is.d.ts +1 -0
- package/dist/i18n/is.js +22 -0
- package/dist/i18n/is.umd.cjs +27 -0
- package/dist/i18n/it.d.ts +1 -0
- package/dist/i18n/it.js +22 -0
- package/dist/i18n/it.umd.cjs +27 -0
- package/dist/i18n/ja.d.ts +1 -0
- package/dist/i18n/ja.js +22 -0
- package/dist/i18n/ja.umd.cjs +27 -0
- package/dist/i18n/ka.d.ts +1 -0
- package/dist/i18n/ka.js +22 -0
- package/dist/i18n/ka.umd.cjs +27 -0
- package/dist/i18n/kk.d.ts +1 -0
- package/dist/i18n/kk.js +22 -0
- package/dist/i18n/kk.umd.cjs +27 -0
- package/dist/i18n/ko.d.ts +1 -0
- package/dist/i18n/ko.js +22 -0
- package/dist/i18n/ko.umd.cjs +27 -0
- package/dist/i18n/lb.d.ts +1 -0
- package/dist/i18n/lb.js +22 -0
- package/dist/i18n/lb.umd.cjs +27 -0
- package/dist/i18n/lt.d.ts +1 -0
- package/dist/i18n/lt.js +22 -0
- package/dist/i18n/lt.umd.cjs +27 -0
- package/dist/i18n/lv.d.ts +1 -0
- package/dist/i18n/lv.js +22 -0
- package/dist/i18n/lv.umd.cjs +27 -0
- package/dist/i18n/me.d.ts +1 -0
- package/dist/i18n/me.js +22 -0
- package/dist/i18n/me.umd.cjs +27 -0
- package/dist/i18n/mk.d.ts +1 -0
- package/dist/i18n/mk.js +22 -0
- package/dist/i18n/mk.umd.cjs +27 -0
- package/dist/i18n/mr.d.ts +1 -0
- package/dist/i18n/mr.js +22 -0
- package/dist/i18n/mr.umd.cjs +27 -0
- package/dist/i18n/mt.d.ts +1 -0
- package/dist/i18n/mt.js +22 -0
- package/dist/i18n/mt.umd.cjs +27 -0
- package/dist/i18n/nb.d.ts +1 -0
- package/dist/i18n/nb.js +22 -0
- package/dist/i18n/nb.umd.cjs +27 -0
- package/dist/i18n/nl.d.ts +1 -0
- package/dist/i18n/nl.js +22 -0
- package/dist/i18n/nl.umd.cjs +27 -0
- package/dist/i18n/pl.d.ts +1 -0
- package/dist/i18n/pl.js +22 -0
- package/dist/i18n/pl.umd.cjs +27 -0
- package/dist/i18n/pt-br.js +22 -0
- package/dist/i18n/pt-br.umd.cjs +27 -0
- package/dist/i18n/pt-pt.js +22 -0
- package/dist/i18n/pt-pt.umd.cjs +27 -0
- package/dist/i18n/pt.d.ts +1 -0
- package/dist/i18n/ro.d.ts +1 -0
- package/dist/i18n/ro.js +22 -0
- package/dist/i18n/ro.umd.cjs +27 -0
- package/dist/i18n/ru.d.ts +1 -0
- package/dist/i18n/ru.js +22 -0
- package/dist/i18n/ru.umd.cjs +27 -0
- package/dist/i18n/sk.d.ts +1 -0
- package/dist/i18n/sk.js +22 -0
- package/dist/i18n/sk.umd.cjs +27 -0
- package/dist/i18n/sl.d.ts +1 -0
- package/dist/i18n/sl.js +22 -0
- package/dist/i18n/sl.umd.cjs +27 -0
- package/dist/i18n/sq.d.ts +1 -0
- package/dist/i18n/sq.js +22 -0
- package/dist/i18n/sq.umd.cjs +27 -0
- package/dist/i18n/sr.d.ts +1 -0
- package/dist/i18n/sr.js +22 -0
- package/dist/i18n/sr.umd.cjs +27 -0
- package/dist/i18n/sv.d.ts +1 -0
- package/dist/i18n/sv.js +22 -0
- package/dist/i18n/sv.umd.cjs +27 -0
- package/dist/i18n/sw.d.ts +1 -0
- package/dist/i18n/sw.js +22 -0
- package/dist/i18n/sw.umd.cjs +27 -0
- package/dist/i18n/ta.d.ts +1 -0
- package/dist/i18n/ta.js +22 -0
- package/dist/i18n/ta.umd.cjs +27 -0
- package/dist/i18n/te.d.ts +1 -0
- package/dist/i18n/te.js +22 -0
- package/dist/i18n/te.umd.cjs +27 -0
- package/dist/i18n/th.d.ts +1 -0
- package/dist/i18n/th.js +22 -0
- package/dist/i18n/th.umd.cjs +27 -0
- package/dist/i18n/tk.d.ts +1 -0
- package/dist/i18n/tk.js +22 -0
- package/dist/i18n/tk.umd.cjs +27 -0
- package/dist/i18n/tr.d.ts +1 -0
- package/dist/i18n/tr.js +22 -0
- package/dist/i18n/tr.umd.cjs +27 -0
- package/dist/i18n/tw.d.ts +1 -0
- package/dist/i18n/uk.d.ts +1 -0
- package/dist/i18n/uk.js +22 -0
- package/dist/i18n/uk.umd.cjs +27 -0
- package/dist/i18n/ur.d.ts +1 -0
- package/dist/i18n/ur.js +22 -0
- package/dist/i18n/ur.umd.cjs +27 -0
- package/dist/i18n/uz.d.ts +1 -0
- package/dist/i18n/uz.js +22 -0
- package/dist/i18n/uz.umd.cjs +27 -0
- package/dist/i18n/vi.d.ts +1 -0
- package/dist/i18n/vi.js +22 -0
- package/dist/i18n/vi.umd.cjs +27 -0
- package/dist/i18n/yo.d.ts +1 -0
- package/dist/i18n/yo.js +22 -0
- package/dist/i18n/yo.umd.cjs +27 -0
- package/dist/i18n/zh-cn.js +22 -0
- package/dist/i18n/zh-cn.umd.cjs +27 -0
- package/dist/i18n/zh-tw.js +22 -0
- package/dist/i18n/zh-tw.umd.cjs +27 -0
- package/dist/lib/index.d.ts +143 -0
- package/dist/lib/index.js +1344 -0
- package/dist/lib/index.min.js +1 -0
- package/dist/lib/index.umd.cjs +1348 -0
- package/dist/lib/index.umd.min.cjs +1 -0
- package/dist/main/altcha.i18n.js +8389 -0
- package/dist/main/altcha.i18n.min.js +1 -0
- package/dist/main/altcha.i18n.umd.cjs +8392 -0
- package/dist/main/altcha.i18n.umd.min.cjs +1 -0
- package/dist/main/altcha.js +7069 -0
- package/dist/main/altcha.min.js +1 -0
- package/dist/main/altcha.umd.cjs +7072 -0
- package/dist/main/altcha.umd.min.cjs +1 -0
- package/dist/plugins/obfuscation.plugin.d.ts +1 -0
- package/dist/plugins/obfuscation.plugin.js +320 -0
- package/dist/plugins/obfuscation.plugin.min.js +1 -0
- package/dist/plugins/obfuscation.plugin.umd.cjs +325 -0
- package/dist/plugins/obfuscation.plugin.umd.min.cjs +1 -0
- package/dist/themes/aqua.css +19 -0
- package/dist/themes/aqua.min.css +1 -0
- package/dist/themes/business.css +15 -0
- package/dist/themes/business.min.css +1 -0
- package/dist/themes/caramel.css +19 -0
- package/dist/themes/caramel.min.css +1 -0
- package/dist/themes/cupcake.css +16 -0
- package/dist/themes/cupcake.min.css +1 -0
- package/dist/themes/cyberpunk.css +24 -0
- package/dist/themes/cyberpunk.min.css +1 -0
- package/dist/themes/lime.css +13 -0
- package/dist/themes/lime.min.css +1 -0
- package/dist/themes/wireframe.css +17 -0
- package/dist/themes/wireframe.min.css +1 -0
- package/dist/types/generic.d.ts +25 -0
- package/dist/types/generic.js +1 -0
- package/dist/types/global.d.ts +5 -0
- package/dist/types/global.js +1 -0
- package/dist/types/index.d.ts +352 -0
- package/dist/types/index.js +23 -0
- package/dist/types/jsx.d.ts +13 -0
- package/dist/types/jsx.js +1 -0
- package/dist/types/react.d.ts +35 -0
- package/dist/types/react.js +1 -0
- package/dist/types/svelte.d.ts +26 -0
- package/dist/types/svelte.js +1 -0
- package/dist/workers/argon2id.js +786 -0
- package/dist/workers/pbkdf2.js +166 -0
- package/dist/workers/scrypt.js +739 -0
- package/dist/workers/sha.js +160 -0
- package/package.json +115 -81
- package/dist/altcha.d.ts +0 -183
- package/dist/altcha.i18n.d.ts +0 -183
- package/dist/altcha.i18n.js +0 -4182
- package/dist/altcha.i18n.umd.js +0 -4
- package/dist/altcha.js +0 -3105
- package/dist/altcha.umd.cjs +0 -4
- package/dist_external/altcha.css +0 -1
- package/dist_external/altcha.d.ts +0 -183
- package/dist_external/altcha.js +0 -3075
- package/dist_external/altcha.umd.cjs +0 -3
- package/dist_external/worker.js +0 -1
- package/dist_i18n/af.d.ts +0 -1
- package/dist_i18n/af.js +0 -94
- package/dist_i18n/af.umd.cjs +0 -1
- package/dist_i18n/africa.d.ts +0 -1
- package/dist_i18n/africa.umd.cjs +0 -1
- package/dist_i18n/all.d.ts +0 -1
- package/dist_i18n/all.umd.cjs +0 -1
- package/dist_i18n/am.d.ts +0 -1
- package/dist_i18n/am.js +0 -94
- package/dist_i18n/am.umd.cjs +0 -1
- package/dist_i18n/americas.d.ts +0 -1
- package/dist_i18n/americas.umd.cjs +0 -1
- package/dist_i18n/ar.d.ts +0 -1
- package/dist_i18n/ar.js +0 -94
- package/dist_i18n/ar.umd.cjs +0 -1
- package/dist_i18n/asia.d.ts +0 -1
- package/dist_i18n/asia.umd.cjs +0 -1
- package/dist_i18n/az.d.ts +0 -1
- package/dist_i18n/az.js +0 -94
- package/dist_i18n/az.umd.cjs +0 -1
- package/dist_i18n/be.d.ts +0 -1
- package/dist_i18n/be.js +0 -94
- package/dist_i18n/be.umd.cjs +0 -1
- package/dist_i18n/bg.d.ts +0 -1
- package/dist_i18n/bg.js +0 -94
- package/dist_i18n/bg.umd.cjs +0 -1
- package/dist_i18n/bn.d.ts +0 -1
- package/dist_i18n/bn.js +0 -94
- package/dist_i18n/bn.umd.cjs +0 -1
- package/dist_i18n/bs.d.ts +0 -1
- package/dist_i18n/bs.js +0 -94
- package/dist_i18n/bs.umd.cjs +0 -1
- package/dist_i18n/ca.d.ts +0 -1
- package/dist_i18n/ca.js +0 -94
- package/dist_i18n/ca.umd.cjs +0 -1
- package/dist_i18n/cs.d.ts +0 -1
- package/dist_i18n/cs.js +0 -94
- package/dist_i18n/cs.umd.cjs +0 -1
- package/dist_i18n/da.d.ts +0 -1
- package/dist_i18n/da.js +0 -94
- package/dist_i18n/da.umd.cjs +0 -1
- package/dist_i18n/de.d.ts +0 -1
- package/dist_i18n/de.js +0 -94
- package/dist_i18n/de.umd.cjs +0 -1
- package/dist_i18n/el.d.ts +0 -1
- package/dist_i18n/el.js +0 -94
- package/dist_i18n/el.umd.cjs +0 -1
- package/dist_i18n/en.d.ts +0 -1
- package/dist_i18n/en.js +0 -94
- package/dist_i18n/en.umd.cjs +0 -1
- package/dist_i18n/es-419.d.ts +0 -1
- package/dist_i18n/es-419.js +0 -94
- package/dist_i18n/es-419.umd.cjs +0 -1
- package/dist_i18n/es-es.d.ts +0 -1
- package/dist_i18n/es-es.js +0 -94
- package/dist_i18n/es-es.umd.cjs +0 -1
- package/dist_i18n/et.d.ts +0 -1
- package/dist_i18n/et.js +0 -94
- package/dist_i18n/et.umd.cjs +0 -1
- package/dist_i18n/eu.d.ts +0 -1
- package/dist_i18n/eu.js +0 -94
- package/dist_i18n/eu.umd.cjs +0 -1
- package/dist_i18n/europe.d.ts +0 -1
- package/dist_i18n/europe.umd.cjs +0 -1
- package/dist_i18n/fa.d.ts +0 -1
- package/dist_i18n/fa.js +0 -94
- package/dist_i18n/fa.umd.cjs +0 -1
- package/dist_i18n/fi.d.ts +0 -1
- package/dist_i18n/fi.js +0 -94
- package/dist_i18n/fi.umd.cjs +0 -1
- package/dist_i18n/fr-ca.d.ts +0 -1
- package/dist_i18n/fr-ca.js +0 -94
- package/dist_i18n/fr-ca.umd.cjs +0 -1
- package/dist_i18n/fr-fr.d.ts +0 -1
- package/dist_i18n/fr-fr.js +0 -94
- package/dist_i18n/fr-fr.umd.cjs +0 -1
- package/dist_i18n/ga.d.ts +0 -1
- package/dist_i18n/ga.js +0 -94
- package/dist_i18n/ga.umd.cjs +0 -1
- package/dist_i18n/he.d.ts +0 -1
- package/dist_i18n/he.js +0 -94
- package/dist_i18n/he.umd.cjs +0 -1
- package/dist_i18n/hi.d.ts +0 -1
- package/dist_i18n/hi.js +0 -94
- package/dist_i18n/hi.umd.cjs +0 -1
- package/dist_i18n/hr.d.ts +0 -1
- package/dist_i18n/hr.js +0 -94
- package/dist_i18n/hr.umd.cjs +0 -1
- package/dist_i18n/hu.d.ts +0 -1
- package/dist_i18n/hu.js +0 -94
- package/dist_i18n/hu.umd.cjs +0 -1
- package/dist_i18n/hy.d.ts +0 -1
- package/dist_i18n/hy.js +0 -94
- package/dist_i18n/hy.umd.cjs +0 -1
- package/dist_i18n/id.d.ts +0 -1
- package/dist_i18n/id.js +0 -94
- package/dist_i18n/id.umd.cjs +0 -1
- package/dist_i18n/is.d.ts +0 -1
- package/dist_i18n/is.js +0 -94
- package/dist_i18n/is.umd.cjs +0 -1
- package/dist_i18n/it.d.ts +0 -1
- package/dist_i18n/it.js +0 -94
- package/dist_i18n/it.umd.cjs +0 -1
- package/dist_i18n/ja.d.ts +0 -1
- package/dist_i18n/ja.js +0 -94
- package/dist_i18n/ja.umd.cjs +0 -1
- package/dist_i18n/ka.d.ts +0 -1
- package/dist_i18n/ka.js +0 -94
- package/dist_i18n/ka.umd.cjs +0 -1
- package/dist_i18n/kk.d.ts +0 -1
- package/dist_i18n/kk.js +0 -94
- package/dist_i18n/kk.umd.cjs +0 -1
- package/dist_i18n/ko.d.ts +0 -1
- package/dist_i18n/ko.js +0 -94
- package/dist_i18n/ko.umd.cjs +0 -1
- package/dist_i18n/lb.d.ts +0 -1
- package/dist_i18n/lb.js +0 -94
- package/dist_i18n/lb.umd.cjs +0 -1
- package/dist_i18n/lt.d.ts +0 -1
- package/dist_i18n/lt.js +0 -94
- package/dist_i18n/lt.umd.cjs +0 -1
- package/dist_i18n/lv.d.ts +0 -1
- package/dist_i18n/lv.js +0 -94
- package/dist_i18n/lv.umd.cjs +0 -1
- package/dist_i18n/me.d.ts +0 -1
- package/dist_i18n/me.js +0 -94
- package/dist_i18n/me.umd.cjs +0 -1
- package/dist_i18n/mk.d.ts +0 -1
- package/dist_i18n/mk.js +0 -94
- package/dist_i18n/mk.umd.cjs +0 -1
- package/dist_i18n/mr.d.ts +0 -1
- package/dist_i18n/mr.js +0 -94
- package/dist_i18n/mr.umd.cjs +0 -1
- package/dist_i18n/mt.d.ts +0 -1
- package/dist_i18n/mt.js +0 -94
- package/dist_i18n/mt.umd.cjs +0 -1
- package/dist_i18n/nb.d.ts +0 -1
- package/dist_i18n/nb.js +0 -95
- package/dist_i18n/nb.umd.cjs +0 -1
- package/dist_i18n/nl.d.ts +0 -1
- package/dist_i18n/nl.js +0 -94
- package/dist_i18n/nl.umd.cjs +0 -1
- package/dist_i18n/pl.d.ts +0 -1
- package/dist_i18n/pl.js +0 -94
- package/dist_i18n/pl.umd.cjs +0 -1
- package/dist_i18n/pt-br.d.ts +0 -1
- package/dist_i18n/pt-br.js +0 -94
- package/dist_i18n/pt-br.umd.cjs +0 -1
- package/dist_i18n/pt-pt.d.ts +0 -1
- package/dist_i18n/pt-pt.js +0 -94
- package/dist_i18n/pt-pt.umd.cjs +0 -1
- package/dist_i18n/ro.d.ts +0 -1
- package/dist_i18n/ro.js +0 -94
- package/dist_i18n/ro.umd.cjs +0 -1
- package/dist_i18n/ru.d.ts +0 -1
- package/dist_i18n/ru.js +0 -94
- package/dist_i18n/ru.umd.cjs +0 -1
- package/dist_i18n/sk.d.ts +0 -1
- package/dist_i18n/sk.js +0 -94
- package/dist_i18n/sk.umd.cjs +0 -1
- package/dist_i18n/sl.d.ts +0 -1
- package/dist_i18n/sl.js +0 -94
- package/dist_i18n/sl.umd.cjs +0 -1
- package/dist_i18n/sq.d.ts +0 -1
- package/dist_i18n/sq.js +0 -94
- package/dist_i18n/sq.umd.cjs +0 -1
- package/dist_i18n/sr.d.ts +0 -1
- package/dist_i18n/sr.js +0 -94
- package/dist_i18n/sr.umd.cjs +0 -1
- package/dist_i18n/sv.d.ts +0 -1
- package/dist_i18n/sv.js +0 -94
- package/dist_i18n/sv.umd.cjs +0 -1
- package/dist_i18n/sw.d.ts +0 -1
- package/dist_i18n/sw.js +0 -94
- package/dist_i18n/sw.umd.cjs +0 -1
- package/dist_i18n/ta.d.ts +0 -1
- package/dist_i18n/ta.js +0 -94
- package/dist_i18n/ta.umd.cjs +0 -1
- package/dist_i18n/te.d.ts +0 -1
- package/dist_i18n/te.js +0 -94
- package/dist_i18n/te.umd.cjs +0 -1
- package/dist_i18n/th.d.ts +0 -1
- package/dist_i18n/th.js +0 -94
- package/dist_i18n/th.umd.cjs +0 -1
- package/dist_i18n/tk.d.ts +0 -1
- package/dist_i18n/tk.js +0 -94
- package/dist_i18n/tk.umd.cjs +0 -1
- package/dist_i18n/tr.d.ts +0 -1
- package/dist_i18n/tr.js +0 -94
- package/dist_i18n/tr.umd.cjs +0 -1
- package/dist_i18n/uk.d.ts +0 -1
- package/dist_i18n/uk.js +0 -94
- package/dist_i18n/uk.umd.cjs +0 -1
- package/dist_i18n/ur.d.ts +0 -1
- package/dist_i18n/ur.js +0 -94
- package/dist_i18n/ur.umd.cjs +0 -1
- package/dist_i18n/uz.d.ts +0 -1
- package/dist_i18n/uz.js +0 -94
- package/dist_i18n/uz.umd.cjs +0 -1
- package/dist_i18n/vi.d.ts +0 -1
- package/dist_i18n/vi.js +0 -94
- package/dist_i18n/vi.umd.cjs +0 -1
- package/dist_i18n/yo.d.ts +0 -1
- package/dist_i18n/yo.js +0 -94
- package/dist_i18n/yo.umd.cjs +0 -1
- package/dist_i18n/zh-cn.d.ts +0 -1
- package/dist_i18n/zh-cn.js +0 -94
- package/dist_i18n/zh-cn.umd.cjs +0 -1
- package/dist_i18n/zh-tw.d.ts +0 -1
- package/dist_i18n/zh-tw.js +0 -94
- package/dist_i18n/zh-tw.umd.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=!1;var t=Array.isArray,n=Array.prototype.indexOf,r=Array.prototype.includes,a=Array.from,o=Object.keys,i=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyDescriptors,s=Object.prototype,u=Array.prototype,f=Object.getPrototypeOf,d=Object.isExtensible;const h=()=>{};function p(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}const v=1<<24,g=16,b=32,m=64,y=512,w=1024,x=2048,_=4096,k=8192,$=16384,C=32768,E=65536,S=1<<17,A=1<<18,O=1<<19,R=65536,P=1<<21,T=1<<23,L=Symbol("$state"),I=Symbol("legacy props"),M=Symbol(""),V=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},D=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function N(e){return e===this.v}function U(e,t){return e!=e?t==t:e!==t||null!==e&&"object"==typeof e||"function"==typeof e}function z(e){return!U(e,this.v)}const j="[",B="[!",K={},F=Symbol(),H="http://www.w3.org/1999/xhtml";let q=null;function G(e){q=e}function W(e,t=!1,n){q={p:q,i:!1,c:null,e:null,s:e,x:null,l:null}}function Y(e){var t=q,n=t.e;if(null!==n)for(var r of(t.e=null,n))tn(r);return void 0!==e&&(t.x=e),t.i=!0,q=t.p,e??{}}let Z=[];function J(){var e=Z;Z=[],function(e){for(var t=0;t<e.length;t++)e[t]()}(e)}function X(e){if(0===Z.length&&!je){var t=Z;queueMicrotask(()=>{t===Z&&J()})}Z.push(e)}function Q(){for(;Z.length>0;)J()}function ee(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let te,ne=!1;function re(e){ne=e}function ae(e){if(null===e)throw ee(),K;return te=e}function oe(){return ae(xe(te))}function ie(e){if(ne){if(null!==xe(te))throw ee(),K;te=e}}function le(e=1){if(ne){for(var t=e,n=te;t--;)n=xe(n);te=n}}function ce(e=!0){for(var t=0,n=te;;){if(8===n.nodeType){var r=n.data;if("]"===r){if(0===t)return n;t-=1}else(r===j||r===B||"["===r[0]&&!isNaN(Number(r.slice(1))))&&(t+=1)}var a=xe(n);e&&n.remove(),n=a}}function se(e){if(!e||8!==e.nodeType)throw ee(),K;return e.data}function ue(e){if("object"!=typeof e||null===e||L in e)return e;const n=f(e);if(n!==s&&n!==u)return e;var r=new Map,a=t(e),o=ft(0),i=Vt,c=e=>{if(Vt===i)return e();var t=$t,n=Vt;Et(null),Dt(i);var r=e();return Et(t),Dt(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?c(()=>{var e=ft(n.value);return r.set(t,e),e}):ht(a,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(void 0===n){if(t in e){const e=c(()=>ft(F));r.set(t,e),vt(o)}}else ht(n,F),vt(o);return!0},get(t,n,a){if(n===L)return e;var o=r.get(n),i=n in t;if(void 0!==o||i&&!l(t,n)?.writable||(o=c(()=>ft(ue(i?t[n]:F))),r.set(n,o)),void 0!==o){var s=qt(o);return s===F?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=qt(a))}else if(void 0===n){var o=r.get(t),i=o?.v;if(void 0!==o&&i!==F)return{enumerable:!0,configurable:!0,value:i,writable:!0}}return n},has(e,t){if(t===L)return!0;var n=r.get(t),a=void 0!==n&&n.v!==F||Reflect.has(e,t);if((void 0!==n||null!==St&&(!a||l(e,t)?.writable))&&(void 0===n&&(n=c(()=>ft(a?ue(e[t]):F)),r.set(t,n)),qt(n)===F))return!1;return a},set(e,t,n,i){var s=r.get(t),u=t in e;if(a&&"length"===t)for(var f=n;f<s.v;f+=1){var d=r.get(f+"");void 0!==d?ht(d,F):f in e&&(d=c(()=>ft(F)),r.set(f+"",d))}void 0===s?u&&!l(e,t)?.writable||(ht(s=c(()=>ft(void 0)),ue(n)),r.set(t,s)):(u=s.v!==F,ht(s,c(()=>ue(n))));var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(i,n),!u){if(a&&"string"==typeof t){var p=r.get("length"),v=Number(t);Number.isInteger(v)&&v>=p.v&&ht(p,v+1)}vt(o)}return!0},ownKeys(e){qt(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return void 0===t||t.v!==F});for(var[n,a]of r)a.v===F||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&&L in e)return e[L]}catch{}return e}function de(e,t){return Object.is(fe(e),fe(t))}var he,pe,ve,ge,be;function me(){if(void 0===he){he=window,pe=document,ve=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;ge=l(t,"firstChild").get,be=l(t,"nextSibling").get,d(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),d(n)&&(n.__t=void 0)}}function ye(e=""){return document.createTextNode(e)}function we(e){return ge.call(e)}function xe(e){return be.call(e)}function _e(e,t){if(!ne)return we(e);var n=we(te);if(null===n)n=te.appendChild(ye());else if(t&&3!==n.nodeType){var r=ye();return n?.before(r),ae(r),r}return t&&Ee(n),ae(n),n}function ke(e,t=!1){if(!ne){var n=we(e);return n instanceof Comment&&""===n.data?xe(n):n}if(t){if(3!==te?.nodeType){var r=ye();return te?.before(r),ae(r),r}Ee(te)}return te}function $e(e,t=1,n=!1){let r=ne?te:e;for(var a;t--;)a=r,r=xe(r);if(!ne)return r;if(n){if(3!==r?.nodeType){var o=ye();return null===r?a?.after(o):r.before(o),ae(o),o}Ee(r)}return ae(r),r}function Ce(e,t,n){let r;return document.createElementNS(t??H,e,r)}function Ee(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 Se(e){var t=St;if(null===t)return $t.f|=T,e;if(0===(t.f&C)&&!(4&t.f))throw e;Ae(e,t)}function Ae(e,t){for(;null!==t;){if(128&t.f){if(0===(t.f&C))throw e;try{return void t.b.error(e)}catch(t){e=t}}t=t.parent}throw e}const Oe=-7169;function Re(e,t){e.f=e.f&Oe|t}function Pe(e){0!==(e.f&y)||null===e.deps?Re(e,w):Re(e,_)}function Te(e){if(null!==e)for(const t of e)2&t.f&&0!==(t.f&R)&&(t.f^=R,Te(t.deps))}function Le(e,t,n){0!==(e.f&x)?t.add(e):0!==(e.f&_)&&n.add(e),Te(e.deps),Re(e,w)}const Ie=new Set;let Me=null,Ve=null,De=null,Ne=[],Ue=null,ze=!1,je=!1;class Be{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))Re(n,x),Ze(n);for(n of t.m)Re(n,_),Ze(n)}}process(e){Ne=[],this.apply();var t=[],n=[];for(const r of e)this.#u(r,t,n);if(this.#s()){this.#f(n),this.#f(t);for(const[e,t]of this.#l)Je(e,t)}else{for(const e of this.#e)e();this.#e.clear(),0===this.#n&&this.#d(),Ve=this,Me=null,Ge(n),Ge(t),Ve=null,this.#a?.resolve()}De=null}#u(e,t,n){e.f^=w;for(var r=e.first;null!==r;){var a=r.f,o=!!(96&a);if(!(o&&0!==(a&w)||0!==(a&k)||this.#l.has(r))&&null!==r.fn){o?r.f^=w:4&a?t.push(r):Ut(r)&&(0!==(a&g)&&this.#i.add(r),Ft(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}}}#f(e){for(var t=0;t<e.length;t+=1)Le(e[t],this.#o,this.#i)}capture(e,t){t===F||this.previous.has(e)||this.previous.set(e,t),0===(e.f&T)&&(this.current.set(e,e.v),De?.set(e,e.v))}activate(){Me=this,this.apply()}deactivate(){Me===this&&(Me=null,De=null)}flush(){if(this.activate(),Ne.length>0){if(Fe(),null!==Me&&Me!==this)return}else 0===this.#n&&this.process([]);this.deactivate()}discard(){for(const e of this.#t)e(this);this.#t.clear()}#d(){if(Ie.size>1){this.previous.clear();var e=De,t=!0;for(const e of Ie){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=Ne;Ne=[];const t=new Set,o=new Map;for(const e of r)We(e,a,t,o);if(Ne.length>0){Me=e,e.apply();for(const t of Ne)e.#u(t,[],[]);e.deactivate()}Ne=n}}Me=null,De=e}Ie.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,X(()=>{this.#c=!1,this.#s()?Ne.length>0&&this.flush():this.revive()}))}revive(){for(const e of this.#o)this.#i.delete(e),Re(e,x),Ze(e);for(const e of this.#i)Re(e,_),Ze(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===Me){const e=Me=new Be;Ie.add(Me),je||X(()=>{Me===e&&e.flush()})}return Me}apply(){}}function Ke(e){var t=je;je=!0;try{for(;;){if(Q(),0===Ne.length&&(Me?.flush(),0===Ne.length))return void(Ue=null);Fe()}}finally{je=t}}function Fe(){ze=!0;try{for(var t=0;Ne.length>0;){var n=Be.ensure();if(t++>1e3)e,He();n.process(Ne),ct.clear()}}finally{Ne=[],ze=!1,Ue=null}}function He(){try{!function(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(e){Ae(e,Ue)}}let qe=null;function Ge(e){var t=e.length;if(0!==t){for(var n=0;n<t;){var r=e[n++];if(!(24576&r.f)&&Ut(r)&&(qe=new Set,Ft(r),null===r.deps&&null===r.first&&null===r.nodes&&null===r.teardown&&null===r.ac&&hn(r),qe?.size>0)){ct.clear();for(const e of qe){if(24576&e.f)continue;const t=[e];let n=e.parent;for(;null!==n;)qe.has(n)&&(qe.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){const n=t[e];24576&n.f||Ft(n)}}qe.clear()}}qe=null}}function We(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?We(a,t,n,r):4194320&e&&0===(e&x)&&Ye(a,t,r)&&(Re(a,x),Ze(a))}}function Ye(e,t,n){const a=n.get(e);if(void 0!==a)return a;if(null!==e.deps)for(const a of e.deps){if(r.call(t,a))return!0;if(2&a.f&&Ye(a,t,n))return n.set(a,!0),!0}return n.set(e,!1),!1}function Ze(e){var t=Ue=e,n=t.b;if(n?.is_pending&&16777228&e.f&&0===(e.f&C))n.defer_effect(e);else{for(;null!==t.parent;){var r=(t=t.parent).f;if(ze&&t===St&&0!==(r&g)&&0===(r&A)&&0!==(r&C))return;if(96&r){if(0===(r&w))return;t.f^=w}}Ne.push(t)}}function Je(e,t){if(0===(e.f&b)||0===(e.f&w)){0!==(e.f&x)?t.d.push(e):0!==(e.f&_)&&t.m.push(e),Re(e,w);for(var n=e.first;null!==n;)Je(n,t),n=n.next}}class Xe{parent;is_pending=!1;transform_error;#h;#p=ne?te:null;#v;#g;#b;#m=null;#y=null;#w=null;#x=null;#_=0;#k=0;#$=!1;#o=new Set;#i=new Set;#C=null;#E=function(e){let t,n=0,r=ut(0);return()=>{Xt()&&(qt(r),rn(()=>(0===n&&(t=Yt(()=>e(()=>vt(r)))),n+=1,()=>{X(()=>{n-=1,0===n&&(t?.(),t=void 0,vt(r))})})))}}(()=>(this.#C=ut(this.#_),()=>{this.#C=null}));constructor(e,t,n,r){this.#h=e,this.#v=t,this.#g=e=>{var t=St;t.b=this,t.f|=128,n(e)},this.parent=St.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#b=on(()=>{if(ne){const e=this.#p;oe();const t=e.data===B;if(e.data.startsWith("[?")){const t=JSON.parse(e.data.slice(2));this.#S(t)}else t?this.#A():this.#O()}else this.#R()},589824),ne&&(this.#h=te)}#O(){try{this.#m=cn(()=>this.#g(this.#h))}catch(e){this.error(e)}}#S(e){const t=this.#v.failed;t&&(this.#w=cn(()=>{t(this.#h,()=>e,()=>()=>{})}))}#A(){const e=this.#v.pending;e&&(this.is_pending=!0,this.#y=cn(()=>e(this.#h)),X(()=>{var e=this.#x=document.createDocumentFragment(),t=ye();e.append(t),this.#m=this.#P(()=>(Be.ensure(),cn(()=>this.#g(t)))),0===this.#k&&(this.#h.before(e),this.#x=null,pn(this.#y,()=>{this.#y=null}),this.#T())}))}#R(){try{if(this.is_pending=this.has_pending_snippet(),this.#k=0,this.#_=0,this.#m=cn(()=>{this.#g(this.#h)}),this.#k>0){var e=this.#x=document.createDocumentFragment();mn(this.#m,e);const t=this.#v.pending;this.#y=cn(()=>t(this.#h))}else this.#T()}catch(e){this.error(e)}}#T(){this.is_pending=!1;for(const e of this.#o)Re(e,x),Ze(e);for(const e of this.#i)Re(e,_),Ze(e);this.#o.clear(),this.#i.clear()}defer_effect(e){Le(e,this.#o,this.#i)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#v.pending}#P(e){var t=St,n=$t,r=q;At(this.#b),Et(this.#b),G(this.#b.ctx);try{return e()}catch(e){return Se(e),null}finally{At(t),Et(n),G(r)}}#L(e){this.has_pending_snippet()?(this.#k+=e,0===this.#k&&(this.#T(),this.#y&&pn(this.#y,()=>{this.#y=null}),this.#x&&(this.#h.before(this.#x),this.#x=null))):this.parent&&this.parent.#L(e)}update_pending_count(e){this.#L(e),this.#_+=e,this.#C&&!this.#$&&(this.#$=!0,X(()=>{this.#$=!1,this.#C&&pt(this.#C,this.#_)}))}get_effect_pending(){return this.#E(),qt(this.#C)}error(e){var t=this.#v.onerror;let n=this.#v.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),ne&&(ae(this.#p),le(),ae(ce()));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.#P(()=>{Be.ensure(),this.#R()}))},i=e=>{try{a=!0,t?.(e,o),a=!1}catch(e){Ae(e,this.#b&&this.#b.parent)}n&&(this.#w=this.#P(()=>{Be.ensure();try{return cn(()=>{var t=St;t.b=this,t.f|=128,n(this.#h,()=>e,()=>o)})}catch(e){return Ae(e,this.#b.parent),null}}))};X(()=>{var t;try{t=this.transform_error(e)}catch(e){return void Ae(e,this.#b&&this.#b.parent)}null!==t&&"object"==typeof t&&"function"==typeof t.then?t.then(i,e=>Ae(e,this.#b&&this.#b.parent)):i(t)})}}function Qe(e,t,n,r){const a=tt;var o=e.filter(e=>!e.settled);if(0!==n.length||0!==o.length){var i,l,c,s,u=St,f=(i=St,l=$t,c=q,s=Me,function(e=!0){At(i),Et(l),G(c),e&&s?.activate()}),d=1===o.length?o[0].promise:o.length>1?Promise.all(o.map(e=>e.promise)):null;0!==n.length?d?d.then(p):p():d.then(()=>h(t.map(a)))}else r(t.map(a));function h(e){f();try{r(e)}catch(e){0===(u.f&$)&&Ae(e,u)}et()}function p(){f(),Promise.all(n.map(e=>nt(e))).then(e=>h([...t.map(a),...e])).catch(e=>Ae(e,u))}}function et(e=!0){At(null),Et(null),G(null),e&&Me?.deactivate()}function tt(e){var t=null!==$t&&2&$t.f?$t:null;null!==St&&(St.f|=O);return{ctx:q,deps:null,effects:null,equals:N,f:2050,fn:e,reactions:null,rv:0,v:F,wv:0,parent:t??St,ac:null}}function nt(e,t,n){null===St&&function(){throw new Error("https://svelte.dev/e/async_derived_orphan")}();var r=void 0,a=ut(F),o=!$t,i=new Map;return function(e){Jt(4718592,e,!0)}(()=>{var t=p();r=t.promise;try{Promise.resolve(e()).then(t.resolve,t.reject).finally(et)}catch(e){t.reject(e),et()}var n=Me;if(o){var l=function(){var e=St.b,t=Me,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|=T,pt(a,t));else{0!==(a.f&T)&&(a.f^=T),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"))}),Qt(()=>{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 rt(e){const t=tt(e);return Rt(t),t}function at(e){var t,n=St;At(function(e){for(var t=e.parent;null!==t;){if(!(2&t.f))return 0===(t.f&$)?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=jt(e)}finally{At(n)}return t}function ot(e){var t=at(e);e.equals(t)||(e.wv=Nt(),Me?.is_fork&&null!==e.deps||(e.v=t,null!==e.deps))?_t||(null!==De?(Xt()||Me?.is_fork)&&De.set(e,t):Pe(e)):Re(e,w)}function it(e){if(null!==e.effects)for(const t of e.effects)t.teardown&&Ft(t)}let lt=new Set;const ct=new Map;let st=!1;function ut(e,t){return{f:0,v:e,reactions:null,equals:N,rv:0,wv:0}}function ft(e,t){const n=ut(e);return Rt(n),n}function dt(e,t=!1,n=!0){const r=ut(e);return t||(r.equals=z),r}function ht(e,t,n=!1){return null===$t||Ct&&0===($t.f&S)||!(4325394&$t.f)||null!==Ot&&r.call(Ot,e)||function(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}(),pt(e,n?ue(t):t)}function pt(e,t){if(!e.equals(t)){var n=e.v;_t?ct.set(e,t):ct.set(e,n),e.v=t;var r=Be.ensure();if(r.capture(e,n),2&e.f){const t=e;0!==(e.f&x)&&at(t),Pe(t)}e.wv=Nt(),gt(e,x),null===St||0===(St.f&w)||96&St.f||(null===Lt?function(e){Lt=e}([e]):Lt.push(e)),!r.is_fork&<.size>0&&!st&&function(){st=!1;for(const e of lt)0!==(e.f&w)&&Re(e,_),Ut(e)&&Ft(e);lt.clear()}()}return t}function vt(e){ht(e,e.v+1)}function gt(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&&Re(o,t),2&i){var c=o;De?.delete(c),0===(i&R)&&(i&y&&(o.f|=R),gt(c,_))}else l&&(0!==(i&g)&&null!==qe&&qe.add(o),Ze(o))}}function bt(e,t){if(t){const t=document.body;e.autofocus=!0,X(()=>{document.activeElement===t&&e.focus()})}}let mt=!1;function yt(){mt||(mt=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function wt(e){var t=$t,n=St;Et(null),At(null);try{return e()}finally{Et(t),At(n)}}let xt=!1,_t=!1;function kt(e){_t=e}let $t=null,Ct=!1;function Et(e){$t=e}let St=null;function At(e){St=e}let Ot=null;function Rt(e){null!==$t&&(null===Ot?Ot=[e]:Ot.push(e))}let Pt=null,Tt=0,Lt=null;let It=1,Mt=0,Vt=Mt;function Dt(e){Vt=e}function Nt(){return++It}function Ut(e){var t=e.f;if(0!==(t&x))return!0;if(2&t&&(e.f&=-65537),0!==(t&_)){for(var n=e.deps,r=n.length,a=0;a<r;a++){var o=n[a];if(Ut(o)&&ot(o),o.wv>e.wv)return!0}0!==(t&y)&&null===De&&Re(e,w)}return!1}function zt(e,t,n=!0){var a=e.reactions;if(null!==a&&(null===Ot||!r.call(Ot,e)))for(var o=0;o<a.length;o++){var i=a[o];2&i.f?zt(i,t,!1):t===i&&(n?Re(i,x):0!==(i.f&w)&&Re(i,_),Ze(i))}}function jt(e){var t=Pt,n=Tt,r=Lt,a=$t,o=Ot,i=q,l=Ct,c=Vt,s=e.f;Pt=null,Tt=0,Lt=null,$t=96&s?null:e,Ot=null,G(e.ctx),Ct=!1,Vt=++Mt,null!==e.ac&&(wt(()=>{e.ac.abort(V)}),e.ac=null);try{e.f|=P;var u=(0,e.fn)();e.f|=C;var f=e.deps,d=Me?.is_fork;if(null!==Pt){var h;if(d||Kt(e,Tt),null!==f&&Tt>0)for(f.length=Tt+Pt.length,h=0;h<Pt.length;h++)f[Tt+h]=Pt[h];else e.deps=f=Pt;if(Xt()&&0!==(e.f&y))for(h=Tt;h<f.length;h++)(f[h].reactions??=[]).push(e)}else!d&&null!==f&&Tt<f.length&&(Kt(e,Tt),f.length=Tt);if(!(null===Lt||Ct||null===f||6146&e.f))for(h=0;h<Lt.length;h++)zt(Lt[h],e);if(null!==a&&a!==e){if(Mt++,null!==a.deps)for(let e=0;e<n;e+=1)a.deps[e].rv=Mt;if(null!==t)for(const e of t)e.rv=Mt;null!==Lt&&(null===r?r=Lt:r.push(...Lt))}return 0!==(e.f&T)&&(e.f^=T),u}catch(e){return Se(e)}finally{e.f^=P,Pt=t,Tt=n,Lt=r,$t=a,Ot=o,G(i),Ct=l,Vt=c}}function Bt(e,t){let a=t.reactions;if(null!==a){var o=n.call(a,e);if(-1!==o){var i=a.length-1;0===i?a=t.reactions=null:(a[o]=a[i],a.pop())}}if(null===a&&2&t.f&&(null===Pt||!r.call(Pt,t))){var l=t;0!==(l.f&y)&&(l.f^=y,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=h,t.ac=null,Kt(t,0),un(t))}(l),Kt(l,0)}}function Kt(e,t){var n=e.deps;if(null!==n)for(var r=t;r<n.length;r++)Bt(e,n[r])}function Ft(e){var t=e.f;if(0===(t&$)){Re(e,w);var n=St,r=xt;St=e,xt=!0;try{16777232&t?function(e){var t=e.first;for(;null!==t;){var n=t.next;0===(t.f&b)&&fn(t),t=n}}(e):un(e),sn(e);var a=jt(e);e.teardown="function"==typeof a?a:null,e.wv=It}finally{xt=r,St=n}}}async function Ht(){await Promise.resolve(),Ke()}function qt(e){var t=!!(2&e.f);if(null!==$t&&!Ct&&!(null!==St&&0!==(St.f&$)||null!==Ot&&r.call(Ot,e))){var n=$t.deps;if(0!==($t.f&P))e.rv<Mt&&(e.rv=Mt,null===Pt&&null!==n&&n[Tt]===e?Tt++:null===Pt?Pt=[e]:Pt.push(e));else{($t.deps??=[]).push(e);var a=e.reactions;null===a?e.reactions=[$t]:r.call(a,$t)||a.push($t)}}if(_t&&ct.has(e))return ct.get(e);if(t){var o=e;if(_t){var i=o.v;return(0===(o.f&w)&&null!==o.reactions||Wt(o))&&(i=at(o)),ct.set(o,i),i}var l=0===(o.f&y)&&!Ct&&null!==$t&&(xt||0!==($t.f&y)),c=0===(o.f&C);Ut(o)&&(l&&(o.f|=y),ot(o)),l&&!c&&(it(o),Gt(o))}if(De?.has(e))return De.get(e);if(0!==(e.f&T))throw e.v;return e.v}function Gt(e){if(e.f|=y,null!==e.deps)for(const t of e.deps)(t.reactions??=[]).push(e),2&t.f&&0===(t.f&y)&&(it(t),Gt(t))}function Wt(e){if(e.v===F)return!0;if(null===e.deps)return!1;for(const t of e.deps){if(ct.has(t))return!0;if(2&t.f&&Wt(t))return!0}return!1}function Yt(e){var t=Ct;try{return Ct=!0,e()}finally{Ct=t}}function Zt(e){null===St&&(null===$t&&function(){throw new Error("https://svelte.dev/e/effect_orphan")}(),function(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}()),_t&&function(){throw new Error("https://svelte.dev/e/effect_in_teardown")}()}function Jt(e,t,n){var r=St;null!==r&&0!==(r.f&k)&&(e|=k);var a={ctx:q,deps:null,nodes:null,f:e|x|y,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{Ft(a)}catch(e){throw fn(a),e}else null!==t&&Ze(a);var o=a;if(n&&null===o.deps&&null===o.teardown&&null===o.nodes&&o.first===o.last&&0===(o.f&O)&&(o=o.first,0!==(e&g)&&0!==(e&E)&&null!==o&&(o.f|=E)),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!==$t&&2&$t.f&&0===(e&m))){var i=$t;(i.effects??=[]).push(o)}return a}function Xt(){return null!==$t&&!Ct}function Qt(e){const t=Jt(8,null,!1);return Re(t,w),t.teardown=e,t}function en(e){Zt();var t=St.f;if(!(!$t&&0!==(t&b)&&0===(t&C)))return tn(e);var n=q;(n.e??=[]).push(e)}function tn(e){return Jt(1048580,e,!1)}function nn(e){return Jt(4,e,!1)}function rn(e,t=0){return Jt(8|t,e,!0)}function an(e,t=[],n=[],r=[]){Qe(r,t,n,t=>{Jt(8,()=>e(...t.map(qt)),!0)})}function on(e,t=0){return Jt(g|t,e,!0)}function ln(e,t=0){return Jt(v|t,e,!0)}function cn(e){return Jt(524320,e,!0)}function sn(e){var t=e.teardown;if(null!==t){const e=_t,n=$t;kt(!0),Et(null);try{t.call(null)}finally{kt(e),Et(n)}}}function un(e,t=!1){var n=e.first;for(e.first=e.last=null;null!==n;){const e=n.ac;null!==e&&wt(()=>{e.abort(V)});var r=n.next;0!==(n.f&m)?n.parent=null:fn(n,t),n=r}}function fn(e,t=!0){var n=!1;!t&&0===(e.f&A)||null===e.nodes||null===e.nodes.end||(dn(e.nodes.start,e.nodes.end),n=!0),un(e,t&&!n),Kt(e,0),Re(e,$);var r=e.nodes&&e.nodes.t;if(null!==r)for(const e of r)e.stop();sn(e);var a=e.parent;null!==a&&null!==a.first&&hn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function dn(e,t){for(;null!==e;){var n=e===t?null:xe(e);e.remove(),e=n}}function hn(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=[];vn(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 vn(e,t,n){if(0===(e.f&k)){e.f^=k;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;vn(a,t,!!(0!==(a.f&E)||0!==(a.f&b)&&0!==(e.f&g))&&n),a=o}}}function gn(e){bn(e,!0)}function bn(e,t){if(0!==(e.f&k)){e.f^=k,0===(e.f&w)&&(Re(e,x),Ze(e));for(var n=e.first;null!==n;){var r=n.next;bn(n,!!(0!==(n.f&E)||0!==(n.f&b))&&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 mn(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 yn(e){return e.endsWith("capture")&&"gotpointercapture"!==e&&"lostpointercapture"!==e}const wn=["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 wn.includes(e)}const _n={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 kn(e){return e=e.toLowerCase(),_n[e]??e}const $n=["touchstart","touchmove"];function Cn(e){return $n.includes(e)}const En=Symbol("events"),Sn=new Set,An=new Set;function On(e,t,n,r={}){function a(e){if(r.capture||In.call(t,e),!e.cancelBubble)return wt(()=>n?.call(this,e))}return e.startsWith("pointer")||e.startsWith("touch")||"wheel"===e?X(()=>{t.addEventListener(e,a,r)}):t.addEventListener(e,a,r),a}function Rn(e,t,n,r,a){var o={capture:r,passive:a},i=On(e,t,n,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Qt(()=>{t.removeEventListener(e,i,o)})}function Pn(e,t,n){(t[En]??={})[e]=n}function Tn(e){for(var t=0;t<e.length;t++)Sn.add(e[t]);for(var n of An)n(e)}let Ln=null;function In(e){var t=this,n=t.ownerDocument,r=e.type,a=e.composedPath?.()||[],o=a[0]||e.target;Ln=e;var l=0,c=Ln===e&&e[En];if(c){var s=a.indexOf(c);if(-1!==s&&(t===document||t===window))return void(e[En]=t);var u=a.indexOf(t);if(-1===u)return;s<=u&&(l=s)}if((o=a[l]||e.target)!==t){i(e,"currentTarget",{configurable:!0,get:()=>o||n});var f=$t,d=St;Et(null),At(null);try{for(var h,p=[];null!==o;){var v=o.assignedSlot||o.parentNode||o.host||null;try{var g=o[En]?.[r];null==g||o.disabled&&e.target!==o||g.call(o,e)}catch(e){h?p.push(e):h=e}if(e.cancelBubble||v===t||null===v)break;o=v}if(h){for(let e of p)queueMicrotask(()=>{throw e});throw h}}finally{e[En]=t,delete e.currentTarget,Et(f),At(d)}}}const Mn=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Vn(e){var t=Ce("template");return t.innerHTML=function(e){return Mn?.createHTML(e)??e}(e.replaceAll("<!>","\x3c!----\x3e")),t.content}function Dn(e,t){var n=St;null===n.nodes&&(n.nodes={start:e,end:t,a:null,t:null})}function Nn(e,t){var n,r=!!(1&t),a=!!(2&t),o=!e.startsWith("<!>");return()=>{if(ne)return Dn(te,null),te;void 0===n&&(n=Vn(o?e:"<!>"+e),r||(n=we(n)));var t=a||ve?document.importNode(n,!0):n.cloneNode(!0);r?Dn(we(t),t.lastChild):Dn(t,t);return t}}function Un(e,t,n="svg"){var r,a=`<${n}>${!e.startsWith("<!>")?e:"<!>"+e}</${n}>`;return()=>{if(ne)return Dn(te,null),te;if(!r){var e=Vn(a);r=we(we(e))}var t=r.cloneNode(!0);return Dn(t,t),t}}function zn(e,t){return Un(e,0,"svg")}function jn(e=""){if(!ne){var t=ye(e+"");return Dn(t,t),t}var n=te;return 3!==n.nodeType?(n.before(n=ye()),ae(n)):Ee(n),Dn(n,n),n}function Bn(){if(ne)return Dn(te,null),te;var e=document.createDocumentFragment(),t=document.createComment(""),n=ye();return e.append(t,n),Dn(t,n),e}function Kn(e,t){if(ne){var n=St;return 0!==(n.f&C)&&null!==n.nodes.end||(n.nodes.end=te),void oe()}null!==e&&e.before(t)}function Fn(e,t){var n=null==t?"":"object"==typeof t?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function Hn(e,t){return Wn(e,t)}function qn(e,t){me(),t.intro=t.intro??!1;const n=t.target,r=ne,a=te;try{for(var o=we(n);o&&(8!==o.nodeType||o.data!==j);)o=xe(o);if(!o)throw K;re(!0),ae(o);const r=Wn(e,{...t,anchor:o});return re(!1),r}catch(r){if(r instanceof Error&&r.message.split("\n").some(e=>e.startsWith("https://svelte.dev/e/")))throw r;return r!==K&&console.warn("Failed to hydrate: ",r),!1===t.recover&&function(){throw new Error("https://svelte.dev/e/hydration_failed")}(),me(),n.textContent="",re(!1),Hn(e,t)}finally{re(r),ae(a)}}const Gn=new Map;function Wn(e,{target:t,anchor:n,props:r={},events:o,context:i,intro:l=!0,transformError:c}){me();var s=void 0,u=function(e){Be.ensure();const t=Jt(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(ye());!function(e,t,n,r){new Xe(e,t,n,r)}(l,{pending:()=>{}},t=>{if(W({}),i&&(q.c=i),o&&(r.$$events=o),ne&&Dn(t,null),s=e(t,r)||{},ne&&(St.nodes.end=te,null===te||8!==te.nodeType||"]"!==te.data))throw ee(),K;Y()},c);var u=new Set,f=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var a=Cn(r);for(const e of[t,document]){var o=Gn.get(e);void 0===o&&(o=new Map,Gn.set(e,o));var i=o.get(r);void 0===i?(e.addEventListener(r,In,{passive:a}),o.set(r,1)):o.set(r,i+1)}}}};return f(a(Sn)),An.add(f),()=>{for(var e of u)for(const n of[t,document]){var r=Gn.get(n),a=r.get(e);0==--a?(n.removeEventListener(e,In),r.delete(e),0===r.size&&Gn.delete(n)):r.set(e,a)}An.delete(f),l!==n&&l.parentNode?.removeChild(l)}});return Yn.set(s,u),s}let Yn=new WeakMap;class Zn{anchor;#I=new Map;#M=new Map;#V=new Map;#D=new Set;#N=!0;constructor(e,t=!0){this.anchor=e,this.#N=t}#d=()=>{var e=Me;if(this.#I.has(e)){var t=this.#I.get(e),n=this.#M.get(t);if(n)gn(n),this.#D.delete(t);else{var r=this.#V.get(t);r&&(this.#M.set(t,r.effect),this.#V.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(const[t,n]of this.#I){if(this.#I.delete(t),t===e)break;const r=this.#V.get(n);r&&(fn(r.effect),this.#V.delete(n))}for(const[e,r]of this.#M){if(e===t||this.#D.has(e))continue;const a=()=>{if(Array.from(this.#I.values()).includes(e)){var t=document.createDocumentFragment();mn(r,t),t.append(ye()),this.#V.set(e,{effect:r,fragment:t})}else fn(r);this.#D.delete(e),this.#M.delete(e)};this.#N||!n?(this.#D.add(e),pn(r,a,!1)):a()}}};#U=e=>{this.#I.delete(e);const t=Array.from(this.#I.values());for(const[e,n]of this.#V)t.includes(e)||(fn(n.effect),this.#V.delete(e))};ensure(e,t){var n=Me;!t||this.#M.has(e)||this.#V.has(e)||this.#M.set(e,cn(()=>t(this.anchor)));this.#I.set(n,e),ne&&(this.anchor=te),this.#d()}}function Jn(e,t,n=!1){ne&&oe();var r=new Zn(e);function a(t,n){if(ne){const o=se(e);if(t!==(o===j?0:o!==B&&parseInt(o.substring(1)))){var a=ce();return ae(a),r.anchor=a,re(!1),r.ensure(t,n),void re(!0)}}r.ensure(t,n)}on(()=>{var e=!1;t((t,n=0)=>{e=!0,a(n,t)}),e||a(!1,null)},n?E:0)}const Xn=Symbol("NaN");function Qn(e,t,n=!1,r=!1,a=!1){var o=e,i="";an(()=>{var e=St;if(i!==(i=t()??"")){if(null!==e.nodes&&(dn(e.nodes.start,e.nodes.end),e.nodes=null),""!==i){if(ne){te.data;for(var a=oe(),l=a;null!==a&&(8!==a.nodeType||""!==a.data);)l=a,a=xe(a);if(null===a)throw ee(),K;return Dn(te,l),void(o=ae(a))}var c=Ce(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(Dn(we(s),s.lastChild),n||r)for(;we(s);)o.before(we(s));else o.before(s)}}else ne&&oe()})}function er(e,t){var n,r=void 0;ln(()=>{r!==(r=t())&&(n&&(fn(n),n=null),r&&(n=cn(()=>{nn(()=>r(e))})))})}function tr(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=tr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function nr(e){return"object"==typeof e?function(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=tr(e))&&(r&&(r+=" "),r+=t);return r}(e):e??""}const rr=[..." \t\n\r\f \v\ufeff"];function ar(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 or(e){return"-"!==e[0]||"-"!==e[1]?e.toLowerCase():e}function ir(e,t,n,r,a,o){var i=e.__className;if(ne||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&&!rr.includes(r[i-1])||l!==r.length&&!rr.includes(r[l])?i=l:r=(0===i?"":r.substring(0,i))+r.substring(l+1)}return""===r?null:r}(n,0,o);ne&&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 lr(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 cr(e,t,n,r){var a=e.__style;if(ne||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(or)),r&&c.push(...Object.keys(r).map(or));var s=0,u=-1;const t=e.length;for(var f=0;f<t;f++){var d=e[f];if(l?"/"===d&&"*"===e[f-1]&&(l=!1):o?o===d&&(o=!1):"/"===d&&"*"===e[f+1]?l=!0:'"'===d||"'"===d?o=d:"("===d?i++:")"===d&&i--,!l&&!1===o&&0===i)if(":"===d&&-1===u)u=f;else if(";"===d||f===t-1){if(-1!==u){var h=or(e.substring(s,u).trim());c.includes(h)||(";"!==d&&f++,a+=" "+e.substring(s,f).trim()+";")}s=f+1,u=-1}}}return n&&(a+=ar(n)),r&&(a+=ar(r,!0)),""===(a=a.trim())?null:a}return null==e?null:String(e)}(t,r);ne&&o===e.getAttribute("style")||(null==o?e.removeAttribute("style"):e.style.cssText=o),e.__style=t}else r&&(Array.isArray(r)?(lr(e,n?.[0],r[0]),lr(e,n?.[1],r[1],"important")):lr(e,n,r));return r}function sr(e,n,r=!1){if(e.multiple){if(null==n)return;if(!t(n))return void console.warn("https://svelte.dev/e/select_multiple_invalid_value");for(var a of e.options)a.selected=n.includes(ur(a))}else{for(a of e.options){if(de(ur(a),n))return void(a.selected=!0)}r&&void 0===n||(e.selectedIndex=-1)}}function ur(e){return"__value"in e?e.__value:e.value}const fr=Symbol("class"),dr=Symbol("style"),hr=Symbol("is custom element"),pr=Symbol("is html"),vr=D?"link":"LINK",gr=D?"input":"INPUT",br=D?"option":"OPTION",mr=D?"select":"SELECT",yr=D?"progress":"PROGRESS";function wr(e){if(ne){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;_r(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var r=e.checked;_r(e,"checked",null),e.checked=r}}};e.__on_r=n,X(n),yt()}}function xr(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function _r(e,t,n,r){var a=$r(e);ne&&(a[t]=e.getAttribute(t),"src"===t||"srcset"===t||"href"===t&&e.nodeName===vr)||a[t]!==(a[t]=n)&&("loading"===t&&(e[M]=n),null==n?e.removeAttribute(t):"string"!=typeof n&&Er(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function kr(e,t,n=[],r=[],a=[],o,i=!1,l=!1){Qe(a,n,r,n=>{var r=void 0,a={},o=e.nodeName===mr,c=!1;if(ln(()=>{var s=t(...n.map(qt)),u=function(e,t,n,r,a=!1){if(ne&&a&&e.nodeName===gr){var o=e;("checkbox"===o.type?"defaultChecked":"defaultValue")in n||wr(o)}var i=$r(e),l=i[hr],c=!i[pr];let s=ne&&l;s&&re(!1);var u=t||{},f=e.nodeName===br;for(var d in t)d in n||(n[d]=null);n.class?n.class=nr(n.class):n[fr]&&(n.class=null),n[dr]&&(n.style??=null);var h=Er(e);for(const r in n){let a=n[r];if(f&&"value"===r&&null==a)e.value=e.__value="",u[r]=a;else if("class"!==r)if("style"!==r){var p=u[r];if(a!==p||void 0===a&&e.hasAttribute(r)){u[r]=a;var v=r[0]+r[1];if("$$"!==v)if("on"===v){const t={},n="$$"+r;let o=r.slice(2);var g=xn(o);if(yn(o)&&(o=o.slice(0,-7),t.capture=!0),!g&&p){if(null!=a)continue;e.removeEventListener(o,u[n],t),u[n]=null}if(g)Pn(o,e,a),Tn([o]);else if(null!=a){let a=function(e){u[r].call(this,e)};u[n]=On(o,e,a,t)}}else if("style"===r)_r(e,r,a);else if("autofocus"===r)bt(e,Boolean(a));else if(l||"__value"!==r&&("value"!==r||null==a))if("selected"===r&&f)xr(e,a);else{var b=r;c||(b=kn(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]=F)):"function"!=typeof a&&_r(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 cr(e,a,t?.[dr],n[dr]),u[r]=a,u[dr]=n[dr];else ir(e,"http://www.w3.org/1999/xhtml"===e.namespaceURI,a,0,t?.[fr],n[fr]),u[r]=a,u[fr]=n[fr]}return s&&re(!0),u}(e,r,s,0,i,l);c&&o&&"value"in s&&sr(e,s.value);for(let e of Object.getOwnPropertySymbols(a))s[e]||fn(a[e]);for(let t of Object.getOwnPropertySymbols(s)){var f=s[t];"@attach"!==t.description||r&&f===r[t]||(a[t]&&fn(a[t]),a[t]=cn(()=>er(e,()=>f))),u[t]=f}r=u}),o){var s=e;nn(()=>{sr(s,r.value,!0),function(e){var t=new MutationObserver(()=>{sr(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Qt(()=>{t.disconnect()})}(s)})}c=!0})}function $r(e){return e.__attributes??={[hr]:e.nodeName.includes("-"),[pr]:e.namespaceURI===H}}var Cr=new Map;function Er(e){var t,n=e.getAttribute("is")||e.nodeName,r=Cr.get(n);if(r)return r;Cr.set(n,r=[]);for(var a=e,o=Element.prototype;o!==a;){for(var i in t=c(a))t[i].set&&r.push(i);a=f(a)}return r}function Sr(e,t,n=t){var r=new WeakSet;!function(e,t,n,r=n){e.addEventListener(t,()=>wt(n));const a=e.__on_r;e.__on_r=a?()=>{a(),r(!0)}:()=>r(!0),yt()}(e,"input",async a=>{var o=a?e.defaultValue:e.value;if(o=Ar(e)?Or(o):o,n(o),null!==Me&&r.add(Me),await Ht(),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))}}}),(ne&&e.defaultValue!==e.value||null==Yt(t)&&e.value)&&(n(Ar(e)?Or(e.value):e.value),null!==Me&&r.add(Me)),rn(()=>{var n=t();if(e===document.activeElement){var a=Ve??Me;if(r.has(a))return}Ar(e)&&n===Or(e.value)||("date"!==e.type||n||e.value)&&n!==e.value&&(e.value=n??"")})}function Ar(e){var t=e.type;return"number"===t||"range"===t}function Or(e){return""===e?null:+e}function Rr(e,t){return e===t||e?.[L]===t}function Pr(e={},t,n,r){return nn(()=>{var r,a;return rn(()=>{r=a,a=[],Yt(()=>{e!==n(...a)&&(t(e,...a),r&&Rr(n(...r),e)&&t(null,...r))})}),()=>{X(()=>{a&&Rr(n(...a),e)&&t(null,...a)})}}),e}let Tr=Symbol();function Lr(e,t,n){const r=n[t]??={store:null,source:dt(void 0),unsubscribe:h};if(r.store!==e&&!(Tr in n))if(r.unsubscribe(),r.store=e??null,null==e)r.source.v=void 0,r.unsubscribe=h;else{var a=!0;r.unsubscribe=Br(e,e=>{a?r.source.v=e:ht(r.source,e)}),a=!1}return e&&Tr in n?Hr(e):qt(r.source)}const Ir={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 Mr(e,t,n){return new Proxy({props:e,exclude:t},Ir)}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=tt(()=>(c=!1,a())),u=St;return function(e,t){if(arguments.length>0){const n=t?qt(s):e;return ht(s,n),c=!0,void 0!==o&&(o=n),e}return _t&&c||0!==(u.f&$)?s.v:qt(s)}}class Dr{#z;#j;constructor(e){var t=new Map,n=(e,n)=>{var r=dt(n,!1,!1);return t.set(e,r),r};const r=new Proxy({...e.props||{},$$events:{}},{get:(e,r)=>qt(t.get(r)??n(r,Reflect.get(e,r))),has:(e,r)=>r===I||(qt(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r)),set:(e,r,a)=>(ht(t.get(r)??n(r,a),a),Reflect.set(e,r,a))});this.#j=(e.hydrate?qn:Hn)(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||Ke(),this.#z=r.$$events;for(const e of Object.keys(this.#j))"$set"!==e&&"$destroy"!==e&&"$on"!==e&&i(this,e,{get(){return this.#j[e]},set(t){this.#j[e]=t},enumerable:!0});this.#j.$set=e=>{Object.assign(r,e)},this.#j.$destroy=()=>{!function(e,t){const n=Yn.get(e);n?(Yn.delete(e),n(t)):Promise.resolve()}(this.#j)}}$set(e){this.#j.$set(e)}$on(e,t){this.#z[e]=this.#z[e]||[];const n=(...e)=>t.call(this,...e);return this.#z[e].push(n),()=>{this.#z[e]=this.#z[e].filter(e=>e!==n)}}$destroy(){this.#j.$destroy()}}let Nr=class{};function Ur(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 zr(e,t,n,r,a,c){let s=class extends Nr{constructor(){super(e,n,a),this.$$p_d=t}static get observedAttributes(){return o(t).map(e=>(t[e].attribute||e).toLowerCase())}};return o(t).forEach(e=>{i(s.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Ur(e,n,t),this.$$d[e]=n;var r=this.$$c;if(r){var a=l(r,e)?.get;a?r[e]=n:r.$set({[e]:n})}}})}),r.forEach(e=>{i(s.prototype,e,{get(){return this.$$c?.[e]}})}),e.element=s,s}function jr(e){null===q&&function(){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}(),en(()=>{const t=Yt(e);if("function"==typeof t)return t})}function Br(e,t,n){if(null==e)return t(void 0),h;const r=Yt(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}"function"==typeof HTMLElement&&(Nr=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=Ce("slot");"default"!==e&&(n.name=e),Kn(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]=Ur(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 Dr(e)),this.$$me=function(e){Be.ensure();const t=Jt(524352,e,!0);return()=>{fn(t)}}(()=>{rn(()=>{this.$$r=!0;for(const e of o(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];const t=Ur(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]=Ur(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 o(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});const Kr=[];function Fr(e,t=h){let n=null;const r=new Set;function a(t){if(U(e,t)&&(e=t,n)){const t=!Kr.length;for(const t of r)t[1](),Kr.push(t,e);if(t){for(let e=0;e<Kr.length;e+=2)Kr[e][0](Kr[e+1]);Kr.length=0}}}function o(t){a(t(e))}return{set:a,update:o,subscribe:function(i,l=h){const c=[i,l];return r.add(c),1===r.size&&(n=t(a,o)||h),i(e),()=>{r.delete(c),0===r.size&&n&&(n(),n=null)}}}}function Hr(e){let t;return Br(e,e=>t=e)(),t}function qr(e){const t={get:e=>Hr(t.store)[e],set:(e,n)=>{"string"==typeof e?Object.assign(Hr(t.store),{[e]:n}):Object.assign(Hr(t.store),e),t.store.set(Hr(t.store))},store:Fr(e)};return t}globalThis.$altcha=globalThis.$altcha||{algorithms:new Map,defaults:qr({}),i18n:qr({}),instances:new Set,plugins:new Set};const Gr={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",Gr);"undefined"!=typeof window&&((window.__svelte??={}).v??=new Set).add("5");var Wr=Nn('<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 Yr(e,t){W(t,!0);let n=Vr(t,"loading"),r=Mr(t,["$$slots","$$events","$$legacy","$$host","loading"]);var a={get loading(){return n()},set loading(e){n(e),Ke()}},o=Wr();return kr(_e(o),()=>({type:"checkbox",...r}),void 0,void 0,void 0,0,!0),le(4),ie(o),an(()=>_r(o,"data-loading",n())),Kn(e,o),Y(a)}zr(Yr,{loading:{}},[],[],{mode:"open"});var Zr=Nn('<div class="altcha-checkbox-native"><input/> <div class="altcha-spinner altcha-checkbox-native-spinner"></div></div>');function Jr(e,t){W(t,!0);let n=Vr(t,"loading"),r=Mr(t,["$$slots","$$events","$$legacy","$$host","loading"]);var a={get loading(){return n()},set loading(e){n(e),Ke()}},o=Zr();return kr(_e(o),()=>({type:"checkbox",...r}),void 0,void 0,void 0,0,!0),le(2),ie(o),an(()=>_r(o,"data-loading",n())),Kn(e,o),Y(a)}zr(Jr,{loading:{}},[],[],{mode:"open"});var Xr=Nn('<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 Qr(e,t){W(t,!0);let n=Vr(t,"strings");var r={get strings(){return n()},set strings(e){n(e),Ke()}},a=Xr(),o=_e(a);return _r(o,"href","https://altcha.org"),ie(a),an(()=>_r(o,"aria-label",n().ariaLinkLabel)),Kn(e,a),Y(r)}zr(Qr,{strings:{}},[],[],{mode:"open"});var ea=Nn('<div class="altcha-footer"><div><!></div> <!></div>');function ta(e,t){W(t,!0);let n=Vr(t,"logo"),r=Vr(t,"strings");var a={get logo(){return n()},set logo(e){n(e),Ke()},get strings(){return r()},set strings(e){r(e),Ke()}},o=ea(),i=_e(o);Qn(_e(i),()=>r().footer),ie(i);var l=$e(i,2),c=e=>{Qr(e,{get strings(){return r()}})};return Jn(l,e=>{n()&&e(c)}),ie(o),Kn(e,o),Y(a)}zr(ta,{logo:{},strings:{}},[],[],{mode:"open"});var na=Nn('<label class="altcha-switch"><input/> <div class="altcha-switch-toggle"><div class="altcha-spinner altcha-switch-spinner"></div></div></label>');function ra(e,t){W(t,!0);let n=Vr(t,"loading"),r=Mr(t,["$$slots","$$events","$$legacy","$$host","loading"]);var a={get loading(){return n()},set loading(e){n(e),Ke()}},o=na();return kr(_e(o),()=>({type:"checkbox",...r}),void 0,void 0,void 0,0,!0),le(2),ie(o),an(()=>_r(o,"data-loading",n())),Kn(e,o),Y(a)}zr(ra,{loading:{}},[],[],{mode:"open"});var aa=(e=>(e.ERROR="error",e.LOADING="loading",e.PLAYING="playing",e.PAUSED="paused",e.READY="ready",e))(aa||{}),oa=(e=>(e.CODE="code",e.ERROR="error",e.VERIFIED="verified",e.VERIFYING="verifying",e.UNVERIFIED="unverified",e.EXPIRED="expired",e))(oa||{}),ia=Nn('<div class="altcha-code-challenge-title"> </div>'),la=Nn('<div class="altcha-spinner"></div>'),ca=zn('<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>'),sa=zn('<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>'),ua=zn('<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=Nn('<button type="button" class="altcha-button altcha-button-secondary"><!></button>'),da=Nn('<audio hidden="" autoplay=""><source/></audio>'),ha=Nn('<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){W(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),f=ft(void 0),d=ft(void 0),h=ft(!1),p=ft(""),v=ft(!1);function g(){ht(u,aa.PAUSED,!0)}function b(e){ht(u,aa.ERROR,!0)}function m(){ht(u,aa.READY,!0)}function y(){ht(u,aa.LOADING,!0)}function w(){ht(u,aa.PLAYING,!0)}function x(){ht(u,aa.PAUSED,!0)}function _(){qt(f)?qt(u)===aa.LOADING||(qt(f).paused?(qt(f).currentTime=0,qt(f).play()):qt(f).pause()):(ht(v,!0),requestAnimationFrame(()=>{qt(f)?.play()}))}jr(()=>(a().disableAutoFocus||Ht().then(()=>{qt(d)?.focus()}),()=>{qt(f)&&(qt(f).pause(),ht(f,void 0))}));var k={get audioUrl(){return n()},set audioUrl(e){n(e),Ke()},get codeChallenge(){return r()},set codeChallenge(e){r(e),Ke()},get config(){return a()},set config(e){a(e),Ke()},get imageUrl(){return o()},set imageUrl(e){o(e),Ke()},get onCancel(){return i()},set onCancel(e){i(e),Ke()},get onReload(){return l()},set onReload(e){l(e),Ke()},get onSubmit(){return c()},set onSubmit(e){c(e),Ke()},get strings(){return s()},set strings(e){s(e),Ke()}},$=ha(),C=_e($),E=_e(C),S=e=>{var t=ia(),n=_e(t,!0);ie(t),an(()=>Fn(n,s().verificationRequired)),Kn(e,t)};Jn(E,e=>{"standard"!==a().codeChallengeDisplay&&e(S)});var A=$e(E,2),O=_e(A,!0);ie(A);var R=$e(A,2),P=$e(R,2),T=_e(P);wr(T),T.disabled=qt(h),Pr(T,e=>ht(d,e),()=>qt(d));var L=$e(T,2),I=e=>{var t=fa(),n=_e(t),r=e=>{Kn(e,la())},a=e=>{Kn(e,ca())},o=e=>{Kn(e,sa())},i=e=>{Kn(e,ua())};Jn(n,e=>{qt(u)===aa.LOADING?e(r):qt(u)===aa.ERROR?e(a,1):qt(u)===aa.PLAYING?e(o,2):e(i,!1)}),ie(t),an(()=>{_r(t,"title",s().getAudioChallenge),t.disabled=qt(u)===aa.LOADING||qt(u)===aa.ERROR,_r(t,"aria-label",qt(u)===aa.LOADING?s().loading:s().getAudioChallenge)}),Pn("click",t,()=>_()),Kn(e,t)};Jn(L,e=>{r().audio&&e(I)});var M=$e(L,2);ie(P);var V=$e(P,2),D=_e(V),N=_e(D,!0);ie(D);var U=$e(D,2),z=_e(U,!0);ie(U),ie(V),ie(C);var j=$e(C,2),B=e=>{var t=da(),r=_e(t);ie(t),Pr(t,e=>ht(f,e),()=>qt(f)),an(()=>_r(r,"src",n())),Rn("loadstart",t,y),Rn("canplay",t,m),Rn("pause",t,x),Rn("playing",t,w),Rn("ended",t,g),Rn("error",r,b),Kn(e,t)};return Jn(j,e=>{qt(v)&&n()&&e(B)}),ie($),an(()=>{Fn(O,s().enterCodeFromImage),_r(R,"src",o()),_r(T,"minlength",r().length||1),_r(T,"maxlength",r().length),_r(T,"placeholder",s().enterCode),_r(T,"aria-label",qt(u)===aa.LOADING?s().loading:qt(u)===aa.PLAYING?"":s().enterCodeAria),_r(T,"aria-live",qt(u)?"assertive":"polite"),_r(T,"aria-busy",qt(u)===aa.LOADING),_r(M,"title",s().reload),_r(M,"aria-label",s().reload),_r(D,"aria-label",s().verify),Fn(N,s().verify),_r(U,"aria-label",s().cancel),Fn(z,s().cancel)}),Rn("submit",C,function(e){e.preventDefault(),e.stopPropagation(),c()?.(qt(p))},!0),Pn("keydown",T,function(e){"Space"===e.code?(e.preventDefault(),e.stopPropagation(),_()):"Escape"===e.code&&(e.preventDefault(),e.stopPropagation(),i()?.())}),Sr(T,()=>qt(p),e=>ht(p,e)),Pn("click",M,()=>l()?.()),Pn("click",U,()=>i()?.()),Kn(e,$),Y(k)}Tn(["keydown","click"]),zr(pa,{audioUrl:{},codeChallenge:{},config:{},imageUrl:{},onCancel:{},onReload:{},onSubmit:{},strings:{}},[],[],{mode:"open"});var va=Nn('<div class="altcha-popover-backdrop" data-backdrop=""></div>'),ga=Nn('<div class="altcha-popover-arrow"></div>'),ba=Nn('<div role="button" class="altcha-popover-close">×</div>'),ma=Nn('<!> <div><!> <!> <div class="altcha-popover-content"><!></div></div>',1);function ya(e,t){W(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=Mr(t,["$$slots","$$events","$$legacy","$$host","anchor","children","display","backdrop","onClickOutside","onClickOutsideDelay","onClose","variant"]),f=ft(void 0),d=ft(void 0),p=ft(!1),v=ft(0);function g(){c()?.()}function b(){if(n()&&qt(f)){const e=n().getBoundingClientRect(),t=document.documentElement.clientHeight-(e.top+e.height)<qt(f).clientHeight;qt(p)!==t&&ht(p,t)}}jr(()=>{const e="bottomsheet"===a()||"overlay"===a();return e&&(qt(d)&&document.body.append(qt(d)),qt(f)&&document.body.append(qt(f))),b(),Ht().then(()=>{ht(v,Date.now(),!0)}),()=>{e&&(qt(d)&&document.body.removeChild(qt(d)),qt(f)&&document.body.removeChild(qt(f)))}});var m={get anchor(){return n()},set anchor(e){n(e),Ke()},get children(){return r()},set children(e){r(e),Ke()},get display(){return a()},set display(e="standard"){a(e),Ke()},get backdrop(){return o()},set backdrop(e=!1){o(e),Ke()},get onClickOutside(){return i()},set onClickOutside(e){i(e),Ke()},get onClickOutsideDelay(){return l()},set onClickOutsideDelay(e=600){l(e),Ke()},get onClose(){return c()},set onClose(e){c(e),Ke()},get variant(){return s()},set variant(e="neutral"){s(e),Ke()}},y=ma();Rn("click",he,function(e){const t=e.target;!qt(f)?.contains(t)&&qt(v)&&qt(v)+l()<Date.now()&&i()?.()}),Rn("resize",he,function(){b()}),Rn("scroll",he,function(){b()});var w=ke(y),x=e=>{var t=va();Pr(t,e=>ht(d,e),()=>qt(d)),Kn(e,t)};Jn(w,e=>{o()&&e(x)});var _=$e(w,2);kr(_,()=>({...u,class:`altcha-popover ${(t.class||"")??""}`,"data-popover":!0,"data-variant":s(),"data-top":qt(p),"data-display":a()}));var k=_e(_),$=e=>{Kn(e,ga())};Jn(k,e=>{"standard"===a()&&e($)});var C=$e(k,2),S=e=>{var t=ba();Pn("click",t,g),Kn(e,t)};Jn(C,e=>{"standard"!==a()&&e(S)});var A=$e(C,2);return function(e,t,...n){var r=new Zn(e);on(()=>{const e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},E)}(_e(A),()=>r()??h),ie(A),ie(_),Pr(_,e=>ht(f,e),()=>qt(f)),Kn(e,y),Y(m)}async function wa(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 wa({...e,challenge:t,controller:r,concurrency:i,createWorker:a})}throw i}finally{c()}return r.signal.aborted?null:s||null}Tn(["click"]),zr(ya,{anchor:{},children:{},display:{},backdrop:{},onClickOutside:{},onClickOutsideDelay:{},onClose:{},variant:{}},[],[],{mode:"open"});var xa=Nn('<div class="altcha-overlay-backdrop" data-backdrop=""></div>'),_a=Nn('<div class="altcha-overlay-content"><!></div>'),ka=Nn('<div role="button" class="altcha-overlay-close">×</div> <!>',1),$a=Nn('<div class="altcha-floating-arrow"></div>'),Ca=Nn('<div class="altcha-error">Secure context (HTTPS) required.</div>'),Ea=Nn('<div class="altcha-error"> </div>'),Sa=Nn('<div class="altcha-error"> </div>'),Aa=Nn("<!> <!>",1),Oa=Nn('<!> <div class="altcha"><!> <div class="altcha-main"><div><div class="altcha-checkbox-wrap"><!> <label><!></label></div> <!></div> <!> <!> <input type="hidden"/></div> <!></div>',1);Tn(["click"]),"undefined"!=typeof window&&window.customElements&&customElements.define("altcha-widget",zr(function(e,t){W(t,!0);const[n,r]=function(){const e={};return[e,function(){Qt(()=>{for(var t in e)e[t].unsubscribe();i(e,Tr,{enumerable:!1,value:!0})})}]}(),a=["ar","fa","he","ur"],{isSecureContext:o}=globalThis,{store:l}=globalThis.$altcha.defaults,c=navigator.hardwareConcurrency||2,s=navigator.deviceMemory||0,u=s&&s<=4?Math.min(4,c):c,f=globalThis.$altcha.i18n.store,d=t.$$host,h=(e,t)=>{Ht().then(()=>{d?.dispatchEvent(new CustomEvent(e,{detail:t}))})};let p=ft(ue(new URL(location.origin))),v=ft(!1),g=ft(null),b=ft(null),m=ft(ue(oa.UNVERIFIED)),y=ft(void 0),w=ft(void 0),x=ft(null),_=ft(void 0),k=ft(null),$=ft(null),C=ft(null),S=ft(null),A=ft(ue([])),O=ft(ue({})),R=ft(!0);const P=rt(()=>({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,...Lr(l,"$altchaDefaults",n),...qt(O)})),T=rt(()=>`altcha-checkbox-${t.id||Math.floor(1e12*Math.random()).toString(16)}`),L=rt(()=>function(e){switch(e){case"checkbox":return Yr;case"switch":return ra;default:return Jr}}(qt(P).type)),I=rt(()=>qt(m)===oa.VERIFYING),M=rt(()=>!qt(P).hideFooter),V=rt(()=>!qt(P).hideLogo&&"bar"!==qt(P).display),D=rt(()=>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]}}(Lr(f,"$altchaI18nStore",n),[qt(P).language,document.documentElement.lang,...navigator.languages])),N=rt(()=>a.includes(qt(D).language)?"rtl":void 0),U=rt(()=>({...qt(D).strings})),z=rt(()=>qt(g)?.audio?.match(/^(https?:)?\//)?Z(qt(g).audio,qt(p),{language:qt(P).audioChallengeLanguage||qt(D).language}).toString():qt(g)?.audio),B=rt(()=>qt(g)?.image?.match(/^(https?:)?\//)?Z(qt(g).image,qt(p)):qt(g)?.image);async function K(e,...t){let n;for(const r of qt(A))n=await r[e].call(r,...t);return n}async function F(e){await new Promise(t=>setTimeout(t,e))}async function H(e=qt(P).challenge){const t=await K("onFetchChallenge",e);if(void 0!==t)return t;if("string"==typeof e){let t=null;if(e.match(/^(https?:)?\//)){we("fetching challenge from",e),ht(p,new URL(e,location.origin),!0);const n=await qt(P).fetch(e,{credentials:qt(P).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 q(){return document.getElementById(qt(T))}function G(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}function Z(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 J(e){!qt(v)&&e.currentTarget.checked?(e.preventDefault(),e.currentTarget.checked=!1,qt(m)!==oa.VERIFYING&&Ae()):e.currentTarget.checked||(e.preventDefault(),xe())}function X(e){qt(m)===oa.VERIFYING?e.currentTarget.setCustomValidity(qt(U).waitAlert):qt(P).validationMessage&&e.currentTarget.setCustomValidity(qt(P).validationMessage)}function Q(){qt(b)&&qt(b).abort(),ve(qt(P).display),xe()}function ee(e){"onfocus"===qt(P).auto&&qt(m)===oa.UNVERIFIED&&Ae()}function le(){qt(b)&&qt(b).abort(),ve(qt(P).display),xe()}function fe(e){ht(k,e.submitter,!0),"onsubmit"===qt(P).auto&&qt(m)===oa.UNVERIFIED&&(e.preventDefault(),e.stopPropagation(),Ee(),Ae().then(e=>{e&&!qt(g)&&Ht().then(()=>{de(qt(k))})}))}function de(e){qt(x)&&"requestSubmit"in qt(x)?qt(x).requestSubmit(e):qt(x)?.reportValidity()&&(e?e.click():qt(x).submit())}function ve(e){switch(e){case"bar":case"floating":case"overlay":ye(),qt(P).auto&&"off"!==qt(P).auto||(qt(O).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(!qt(S))return void Ce(oa.ERROR,"Cannot verify code challenge without PoW payload.");Ce(oa.VERIFYING);let t=null;if(qt(P).verifyUrl)t=await async function(e,t){const n=await K("onRequestServerVerification",e,t);if(void 0!==n)return n;if(we("requesting server verification from",qt(P).verifyUrl),!qt(P).verifyUrl)throw new Error("Parameter verifyUrl must be set for server verification.");const r=await qt(P).fetch(Z(qt(P).verifyUrl,qt(p)),{body:JSON.stringify({code:t,fields:qt(P).serverVerificationFields?[...qt(x)?.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:qt(P).serverVerificationTimeZone?G():void 0}),credentials:qt(P).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}(qt(S),e);else{if(!qt(P).verifyFunction)return void Ce(oa.ERROR,"Parameter verifyUrl is required for code challenge verification.");t=await qt(P).verifyFunction(qt(S),e)}t?.payload&&(ht(S,t.payload,!0),we("server payload",qt(S))),!0===t?.verified?(we("verified"),Ce(oa.VERIFIED),h("verified",{payload:qt(S)}),"onsubmit"===qt(P).auto&&Ht().then(()=>{de(qt(k))})):Ce(oa.ERROR,t?.reason||"Verification failed."),qt(P).disableAutoFocus||q()?.focus()}function me(e){Object.assign(qt(O),{...Object.fromEntries(Object.entries(e).filter(([e,t])=>void 0!==t))})}function ye(){ht(R,!1)}function we(...e){(qt(P).debug||e.some(e=>e instanceof Error))&&console[e[0]instanceof Error?"error":"log"]("ALTCHA",`[name=${qt(P).name}]`,...e)}function xe(e=oa.UNVERIFIED,t=null){ht(v,!1),ht($,t,!0),ht(S,null),qt(C)&&(clearTimeout(qt(C)),ht(C,null)),Ce(e)}function Ce(e,t=null){ht(m,e,!0),ht($,t,!0),h("statechange",{payload:qt(S),state:qt(m)})}function Ee(){ht(R,!0),Ht().then(()=>{Se()})}function Se(){if("floating"===qt(P).display)return function(e=20){if(!qt(_))return;const t=qt(P).floatingPlacement;if(!qt(w)&&(ht(w,(qt(P).floatingAnchor instanceof HTMLElement?qt(P).floatingAnchor:qt(P).floatingAnchor?document.querySelector(qt(P).floatingAnchor):qt(x)?.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])'))||qt(x),!0),!qt(w)))return void we("unable to find floating anchor element");const n=parseInt(qt(P).floatingOffset,10)||12,r=qt(w).getBoundingClientRect(),a=qt(_).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(qt(_).style.setProperty("--altcha-floating-left",`${c}px`),qt(_).style.setProperty("--altcha-floating-top",l?r.top-(a.height+n)+"px":`${r.bottom+n}px`),qt(_).setAttribute("data-floating-position",l?"top":"bottom"),qt(y)){const e=qt(y).getBoundingClientRect();qt(y).style.left=r.left-c+r.width/2-e.width/2+"px"}}()}async function Ae(e={}){const{concurrency:t=Math.max(1,qt(P).workers),controller:n=new AbortController,minDuration:r=qt(P).minDuration}=e,a=performance.now();let i=null,l=null,c=!1;const s=await K("onVerify",e);if(void 0!==s)return s;ht(b,n,!0),xe(oa.VERIFYING);try{if(!o)throw new Error("Secure context (HTTPS) required.");if(qt(P).mockError)throw new Error("Mock error.");if(qt(P).test)return we("running test mode with null challenge"),await F(Math.max(0,r-(performance.now()-a))),ht(S,btoa(JSON.stringify({challenge:null,solution:null,test:!0})),!0),we("verified"),Ce(oa.VERIFIED),h("vefified",{payload:qt(S)}),{payload:qt(S)};if(i=await H(),!i)throw new Error("Failed to fetch challenge.");we("challenge",i),i.parameters.expiresAt&&function(e){qt(C)&&clearTimeout(qt(C));const t=()=>{qt(m)!==oa.UNVERIFIED?Ce(oa.EXPIRED):xe(),h("expired")},n=1e3*e-Date.now();n>=1?ht(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 wa({challenge:i,concurrency:t,controller:n,createWorker:e,counterMode:c?"string":"uint32",onOutOfMemory:e=>{if(we("out of memory error received"),h("outofmemory"),qt(P).retryOnOutOfMemoryError&&e>1){const t=Math.floor(e/2);return we(`retrying with ${t} workers...`),t}}}),qt(b)?.signal.aborted)return xe(),null;if(!l)throw new Error("Failed to find solution.");we("solution",l),await F(Math.max(0,r-(performance.now()-a))),ht(g,i.codeChallenge||qt(P).codeChallenge||null,!0),ht(S,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),qt(g)?(we("requesting code verification"),Ce(oa.CODE),h("codechallenge",{codeChallenge:qt(g)})):qt(P).verifyUrl?await be():(we("verified"),Ce(oa.VERIFIED),h("vefified",{payload:qt(S)}))}catch(e){return we("verification failed",e),Ce(oa.ERROR,String(e)),null}finally{ht(b,null)}return{challenge:i,payload:qt(S),solution:l}}en(()=>{me({auto:t.auto,challenge:t.challenge,display:t.display,language:t.language,name:t.name,type:t.type,workers:t.workers})}),en(()=>{if(t.configuration)try{me(JSON.parse(t.configuration))}catch{we("unable to parse the `configuration` attribute (JSON expected)")}}),en(()=>{ve(qt(P).display)}),en(()=>{qt(v)&&qt(m)===oa.VERIFYING&&ht(v,!1)}),en(()=>{qt(v)||qt(m)!==oa.VERIFIED||ht(v,!0)}),en(()=>{if(!qt(v)){const e=q();e&&e.checked&&(e.checked=!1)}}),en(()=>{qt(m)===oa.VERIFIED&&q()?.setCustomValidity("")}),en(()=>{if("onload"===qt(P).auto){const e=setTimeout(()=>{Ae()},1);return()=>{e&&clearTimeout(e)}}}),en(()=>{qt($)&&we("error:",qt($))}),jr(()=>(we("mounted","3.0.0-beta.1"),d&&globalThis.$altcha.instances.add(d),ht(x,qt(_)?.closest("form"),!0),qt(x)?.addEventListener("reset",le),qt(x)?.addEventListener("submit",fe),qt(x)?.addEventListener("focusin",ee),function(){ht(A,[...globalThis.$altcha.plugins].map(e=>new e(d)),!0),we("activating plugins",qt(A).map(e=>e.constructor.name));for(const e of qt(A))e.activate()}(),h("load"),o||we("secure context (HTTPS) required"),()=>{!function(){for(const e of qt(A))e.destroy()}(),d&&globalThis.$altcha.instances.delete(d),qt(C)&&clearTimeout(qt(C)),qt(x)?.removeEventListener("reset",le),qt(x)?.removeEventListener("submit",fe),qt(x)?.removeEventListener("focusin",ee)}));var Oe={configure:me,getConfiguration:function(){return{...qt(P)}},getState:function(){return qt(m)},hide:ye,log:we,reset:xe,setState:Ce,show:Ee,updateUI:Se,verify:Ae},Re=Oa();Rn("scroll",pe,function(){Se()}),Rn("click",pe,function(e){const t=e.target;"floating"!==qt(P).display||!t||d?.contains(t)||t.hasAttribute("data-backdrop")||t.closest("[data-popover]")||qt(m)===oa.VERIFIED||qt(P).floatingPersist||ye()}),Rn("pageshow",he,function(){xe()}),Rn("resize",he,function(){Se()});var Pe=ke(Re),Te=e=>{Kn(e,xa())};Jn(Pe,e=>{"overlay"===qt(P).display&&qt(R)&&e(Te)});var Le=$e(Pe,2),Ie=_e(Le),Me=e=>{var t=ka(),n=ke(t),r=$e(n,2),a=e=>{var t=_a();Qn(_e(t),()=>document.querySelector(qt(P).overlayContent)?.innerHTML),ie(t),Kn(e,t)};Jn(r,e=>{qt(P).overlayContent&&e(a)}),Pn("click",n,Q),Kn(e,t)};Jn(Ie,e=>{"overlay"===qt(P).display&&qt(R)&&e(Me)});var Ve=$e(Ie,2),De=_e(Ve),Ne=_e(De),Ue=_e(Ne);{let e=rt(()=>"standard"===qt(P).display&&"onsubmit"!==qt(P).auto||qt(m)===oa.VERIFYING);!function(e,t,n){var r;ne&&(r=te,oe());var a=new Zn(e);on(()=>{var e=t()??null;if(ne&&se(r)===j!=(null!==e)){var o=ce();return ae(o),a.anchor=o,re(!1),a.ensure(e,e&&(t=>n(t,e))),void re(!0)}a.ensure(e,e&&(t=>n(t,e)))},E)}(Ue,()=>qt(L),(t,n)=>{n(t,{get id(){return qt(T)},name:"",get required(){return qt(e)},get loading(){return qt(I)},get checked(){return qt(v)},onchange:J,oninvalid:X})})}var ze=$e(Ue,2),je=_e(ze),Be=e=>{var t=jn();an(()=>Fn(t,qt(U).verificationRequired)),Kn(e,t)},Ke=e=>{var t=jn();an(()=>Fn(t,qt(U).verifying)),Kn(e,t)},Fe=e=>{var t=jn();an(()=>Fn(t,qt(U).verified)),Kn(e,t)},He=e=>{var t=jn();an(()=>Fn(t,qt(U).label)),Kn(e,t)};Jn(je,e=>{qt(m)===oa.CODE&&qt(g)?e(Be):qt(m)===oa.VERIFYING?e(Ke,1):qt(m)===oa.VERIFIED?e(Fe,2):e(He,!1)}),ie(ze),ie(Ne);var qe=$e(Ne,2),Ge=e=>{Qr(e,{get strings(){return qt(U)}})};Jn(qe,e=>{qt(V)&&e(Ge)}),ie(De);var We=$e(De,2),Ye=e=>{{let t=rt(()=>"bar"===qt(P).display&&qt(V));ta(e,{get logo(){return qt(t)},get strings(){return qt(U)}})}};Jn(We,e=>{qt(M)&&e(Ye)});var Ze=$e(We,2),Je=e=>{var t=$a();Pr(t,e=>ht(y,e),()=>qt(y)),Kn(e,t)};Jn(Ze,e=>{"floating"===qt(P).display&&e(Je)});var Xe=$e(Ze,2);wr(Xe),ie(Ve);var Qe=$e(Ve,2),et=e=>{ya(e,{get anchor(){return qt(_)},onClickOutside:()=>{o&&xe()},role:"alert",variant:"error",get dir(){return qt(N)},children:(e,t)=>{var n=Bn(),r=ke(n),a=e=>{Kn(e,Ca())},i=e=>{var t=Ea(),n=_e(t,!0);ie(t),an(()=>Fn(n,qt(U).expired)),Kn(e,t)},l=e=>{var t=Sa(),n=_e(t,!0);ie(t),an(()=>{_r(t,"title",qt($)),Fn(n,qt(U).error)}),Kn(e,t)};Jn(r,e=>{qt($)||o?qt($)||qt(m)!==oa.EXPIRED?e(l,!1):e(i,1):e(a)}),Kn(e,n)},$$slots:{default:!0}})},tt=e=>{var t=Bn();!function(e,t,n){ne&&oe();var r=new Zn(e);on(()=>{var e=t();e!=e&&(e=Xn),r.ensure(e,n)})}(ke(t),()=>qt(g),e=>{{let t=rt(()=>"standard"!==qt(P).codeChallengeDisplay);ya(e,{get anchor(){return qt(_)},get backdrop(){return qt(t)},get display(){return qt(P).codeChallengeDisplay},onClose:()=>{xe()},role:"dialog",get"aria-label"(){return qt(U).verificationRequired},get dir(){return qt(N)},children:(e,t)=>{var n=Aa(),r=ke(n);pa(r,{get audioUrl(){return qt(z)},get imageUrl(){return qt(B)},onCancel:()=>xe(),onReload:()=>Ae(),onSubmit:e=>be(e),get codeChallenge(){return qt(g)},get config(){return qt(P)},get strings(){return qt(U)}});var a=$e(r,2),o=e=>{ta(e,{get logo(){return qt(V)},get strings(){return qt(U)}})};Jn(a,e=>{qt(M)&&"standard"!==qt(P).codeChallengeDisplay&&e(o)}),Kn(e,n)},$$slots:{default:!0}})}}),Kn(e,t)};Jn(Qe,e=>{qt($)||qt(m)===oa.EXPIRED||!o?e(et):qt(g)&&qt(m)===oa.CODE&&e(tt,1)}),ie(Le),Pr(Le,e=>ht(_,e),()=>qt(_)),an(e=>{var t,n,r;_r(Le,"data-state",qt(m)),_r(Le,"data-display",qt(P).display||void 0),_r(Le,"data-placement",e),_r(Le,"data-visible",qt(R)||void 0),_r(Le,"dir",qt(N)),_r(ze,"for",qt(T)),_r(Xe,"name",qt(P).name),t=Xe,n=qt(S),(r=$r(t)).value!==(r.value=n??void 0)&&(t.value!==n||0===n&&t.nodeName===yr)&&(t.value=n??""),Le.dir=Le.dir},[()=>function(e){switch(e){case"bar":return qt(P).barPlacement||"bottom";case"floating":return qt(P).floatingPlacement||"auto";default:return}}(qt(P).display)]),Kn(e,Re);var nt=Y(Oe);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"]));const Ra='(function() {\n "use strict";\n class PasswordBuffer {\n constructor(nonce, mode = "uint32") {\n this.nonce = nonce;\n this.mode = mode;\n this.buffer = new Uint8Array(this.nonce.length + this.COUNTER_BYTES);\n this.buffer.set(this.nonce, 0);\n this.dataView = new DataView(this.buffer.buffer);\n }\n COUNTER_BYTES = 4;\n buffer;\n dataView;\n encoder = new TextEncoder();\n /**\n * Appends the counter to the nonce buffer.\n * In \'string\' mode, encodes the counter as a UTF-8 string.\n * In \'uint32\' mode, writes the counter as a big-endian 32-bit integer.\n */\n setCounter(n) {\n if (this.mode === "string") {\n return concatBuffers(this.nonce, this.encoder.encode(n.toString()));\n }\n this.dataView.setUint32(this.nonce.length, n, false);\n return this.buffer;\n }\n }\n function bufferToHex(buffer) {\n return Array.from(new Uint8Array(buffer)).map((b) => b.toString(16).padStart(2, "0")).join("");\n }\n function concatBuffers(a, b) {\n const out = new Uint8Array(a.length + b.length);\n out.set(a, 0);\n out.set(b, a.length);\n return out;\n }\n function hexToBuffer(hex) {\n if (hex.length % 2 !== 0) {\n throw new Error(`Hex string must have an even length. Got: ${hex}`);\n }\n const buffer = new ArrayBuffer(hex.length / 2);\n const view = new DataView(buffer);\n for (let i = 0; i < hex.length; i += 2) {\n const byteString = hex.substring(i, i + 2);\n const byteValue = parseInt(byteString, 16);\n view.setUint8(i / 2, byteValue);\n }\n return new Uint8Array(buffer);\n }\n async function solveChallenge(options) {\n const {\n challenge,\n controller,\n counterMode = "uint32",\n counterStart = 0,\n counterStep = 1,\n deriveKey: deriveKey2,\n timeout = 9e4\n } = options;\n let { nonce, keyPrefix, salt } = challenge.parameters;\n const nonceBuf = hexToBuffer(nonce);\n const saltBuf = hexToBuffer(salt);\n const keyPrefixBuf = keyPrefix.length % 2 === 0 ? hexToBuffer(keyPrefix) : null;\n const password = new PasswordBuffer(nonceBuf, counterMode);\n const start = performance.now();\n let counter = counterStart;\n let derivedKeyHex = "";\n let lastYield = start;\n while (true) {\n if (controller?.signal.aborted || timeout && counter % 10 === 0 && performance.now() - start > timeout) {\n return null;\n }\n const { derivedKey } = await deriveKey2(\n challenge.parameters,\n saltBuf,\n password.setCounter(counter)\n );\n if (counter % 10 === 0 && performance.now() - lastYield > 200) {\n await delay(0);\n lastYield = performance.now();\n }\n if (keyPrefixBuf ? bufferStartsWith(derivedKey, keyPrefixBuf) : bufferToHex(derivedKey).startsWith(keyPrefix)) {\n derivedKeyHex = bufferToHex(derivedKey);\n break;\n }\n counter = counter + counterStep;\n }\n return {\n counter,\n derivedKey: derivedKeyHex,\n time: timeDuration(start)\n };\n }\n function bufferStartsWith(buffer, prefix) {\n if (prefix.length > buffer.length) {\n return false;\n }\n for (let i = 0; i < prefix.length; i++) {\n if (buffer[i] !== prefix[i]) {\n return false;\n }\n }\n return true;\n }\n async function delay(ms) {\n await new Promise((resolve) => setTimeout(resolve, ms));\n }\n function timeDuration(start) {\n return Math.floor((performance.now() - start) * 10) / 10;\n }\n function handler(options) {\n const { deriveKey: deriveKey2 } = options;\n let controller = void 0;\n self.onmessage = async (message) => {\n const { challenge, counterMode, counterStart, counterStep, type } = message.data;\n if (type === "abort") {\n controller?.abort();\n } else if (type === "work") {\n controller = new AbortController();\n let solution;\n try {\n solution = await solveChallenge({\n challenge,\n controller,\n counterStart,\n counterStep,\n deriveKey: deriveKey2,\n counterMode\n });\n } catch (err) {\n return self.postMessage({ error: err });\n }\n self.postMessage(solution);\n }\n };\n }\n async function deriveKey(parameters, salt, password) {\n const { cost, keyLength = 32 } = parameters;\n const hash = parameters.algorithm.startsWith("PBKDF2/") ? parameters.algorithm.slice(7) : "SHA-256";\n const passwordKey = await crypto.subtle.importKey(\n "raw",\n password,\n { name: "PBKDF2" },\n false,\n ["deriveKey"]\n );\n const derivedKey = await crypto.subtle.deriveKey(\n {\n name: "PBKDF2",\n salt,\n iterations: cost,\n hash\n },\n passwordKey,\n { name: "AES-GCM", length: keyLength * 8 },\n true,\n ["encrypt"]\n );\n return {\n derivedKey: new Uint8Array(await crypto.subtle.exportKey("raw", derivedKey))\n };\n }\n handler({\n deriveKey\n });\n})();\n',Pa="undefined"!=typeof self&&self.Blob&&new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);",Ra],{type:"text/javascript;charset=utf-8"});function Ta(e){let t;try{if(t=Pa&&(self.URL||self.webkitURL).createObjectURL(Pa),!t)throw"";const n=new Worker(t,{name:e?.name});return n.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),n}catch(t){return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(Ra),{name:e?.name})}}const La='(function() {\n "use strict";\n class PasswordBuffer {\n constructor(nonce, mode = "uint32") {\n this.nonce = nonce;\n this.mode = mode;\n this.buffer = new Uint8Array(this.nonce.length + this.COUNTER_BYTES);\n this.buffer.set(this.nonce, 0);\n this.dataView = new DataView(this.buffer.buffer);\n }\n COUNTER_BYTES = 4;\n buffer;\n dataView;\n encoder = new TextEncoder();\n /**\n * Appends the counter to the nonce buffer.\n * In \'string\' mode, encodes the counter as a UTF-8 string.\n * In \'uint32\' mode, writes the counter as a big-endian 32-bit integer.\n */\n setCounter(n) {\n if (this.mode === "string") {\n return concatBuffers(this.nonce, this.encoder.encode(n.toString()));\n }\n this.dataView.setUint32(this.nonce.length, n, false);\n return this.buffer;\n }\n }\n function bufferToHex(buffer) {\n return Array.from(new Uint8Array(buffer)).map((b) => b.toString(16).padStart(2, "0")).join("");\n }\n function concatBuffers(a, b) {\n const out = new Uint8Array(a.length + b.length);\n out.set(a, 0);\n out.set(b, a.length);\n return out;\n }\n function hexToBuffer(hex) {\n if (hex.length % 2 !== 0) {\n throw new Error(`Hex string must have an even length. Got: ${hex}`);\n }\n const buffer = new ArrayBuffer(hex.length / 2);\n const view = new DataView(buffer);\n for (let i = 0; i < hex.length; i += 2) {\n const byteString = hex.substring(i, i + 2);\n const byteValue = parseInt(byteString, 16);\n view.setUint8(i / 2, byteValue);\n }\n return new Uint8Array(buffer);\n }\n async function solveChallenge(options) {\n const {\n challenge,\n controller,\n counterMode = "uint32",\n counterStart = 0,\n counterStep = 1,\n deriveKey: deriveKey2,\n timeout = 9e4\n } = options;\n let { nonce, keyPrefix, salt } = challenge.parameters;\n const nonceBuf = hexToBuffer(nonce);\n const saltBuf = hexToBuffer(salt);\n const keyPrefixBuf = keyPrefix.length % 2 === 0 ? hexToBuffer(keyPrefix) : null;\n const password = new PasswordBuffer(nonceBuf, counterMode);\n const start = performance.now();\n let counter = counterStart;\n let derivedKeyHex = "";\n let lastYield = start;\n while (true) {\n if (controller?.signal.aborted || timeout && counter % 10 === 0 && performance.now() - start > timeout) {\n return null;\n }\n const { derivedKey } = await deriveKey2(\n challenge.parameters,\n saltBuf,\n password.setCounter(counter)\n );\n if (counter % 10 === 0 && performance.now() - lastYield > 200) {\n await delay(0);\n lastYield = performance.now();\n }\n if (keyPrefixBuf ? bufferStartsWith(derivedKey, keyPrefixBuf) : bufferToHex(derivedKey).startsWith(keyPrefix)) {\n derivedKeyHex = bufferToHex(derivedKey);\n break;\n }\n counter = counter + counterStep;\n }\n return {\n counter,\n derivedKey: derivedKeyHex,\n time: timeDuration(start)\n };\n }\n function bufferStartsWith(buffer, prefix) {\n if (prefix.length > buffer.length) {\n return false;\n }\n for (let i = 0; i < prefix.length; i++) {\n if (buffer[i] !== prefix[i]) {\n return false;\n }\n }\n return true;\n }\n async function delay(ms) {\n await new Promise((resolve) => setTimeout(resolve, ms));\n }\n function timeDuration(start) {\n return Math.floor((performance.now() - start) * 10) / 10;\n }\n function handler(options) {\n const { deriveKey: deriveKey2 } = options;\n let controller = void 0;\n self.onmessage = async (message) => {\n const { challenge, counterMode, counterStart, counterStep, type } = message.data;\n if (type === "abort") {\n controller?.abort();\n } else if (type === "work") {\n controller = new AbortController();\n let solution;\n try {\n solution = await solveChallenge({\n challenge,\n controller,\n counterStart,\n counterStep,\n deriveKey: deriveKey2,\n counterMode\n });\n } catch (err) {\n return self.postMessage({ error: err });\n }\n self.postMessage(solution);\n }\n };\n }\n async function deriveKey(parameters, salt, password) {\n const { algorithm, keyLength = 32 } = parameters;\n const iterations = Math.max(1, parameters.cost);\n let data = void 0;\n let derivedKey = void 0;\n for (let i = 0; i < iterations; i++) {\n if (i === 0) {\n data = concatBuffers(salt, password);\n } else {\n data = derivedKey;\n }\n derivedKey = new Uint8Array(\n (await crypto.subtle.digest(algorithm, data)).slice(0, keyLength)\n );\n }\n return {\n parameters: {},\n derivedKey\n };\n }\n handler({\n deriveKey\n });\n})();\n',Ia="undefined"!=typeof self&&self.Blob&&new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);",La],{type:"text/javascript;charset=utf-8"});function Ma(e){let t;try{if(t=Ia&&(self.URL||self.webkitURL).createObjectURL(Ia),!t)throw"";const n=new Worker(t,{name:e?.name});return n.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),n}catch(t){return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(La),{name:e?.name})}}!function(e,t="altcha-css"){if("undefined"!=typeof document&&document&&!document.getElementById(t)){const n=document.createElement("style");n.id=t,n.textContent=e,document.head.appendChild(n)}}(':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}'),$altcha.algorithms.set("SHA-256",()=>new Ma),$altcha.algorithms.set("SHA-384",()=>new Ma),$altcha.algorithms.set("SHA-512",()=>new Ma),$altcha.algorithms.set("PBKDF2/SHA-256",()=>new Ta),$altcha.algorithms.set("PBKDF2/SHA-384",()=>new Ta),$altcha.algorithms.set("PBKDF2/SHA-512",()=>new Ta);
|