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,i=Array.from,o=Object.keys,a=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyDescriptors,c=Object.prototype,u=Array.prototype,f=Object.getPrototypeOf,d=Object.isExtensible;const h=()=>{};function v(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}const p=1<<24,g=16,m=32,y=64,b=512,w=1024,_=2048,$=4096,C=8192,E=16384,k=32768,S=65536,x=1<<17,O=1<<18,R=1<<19,A=65536,I=1<<21,P=1<<23,L=Symbol("$state"),T=Symbol("legacy props"),N=Symbol(""),V=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},M=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function D(e){return e===this.v}function j(e,t){return e!=e?t==t:e!==t||null!==e&&"object"==typeof e||"function"==typeof e}function F(e){return!j(e,this.v)}const U="[",q="[!",H={},G=Symbol(),B="http://www.w3.org/1999/xhtml";let Z=null;function J(e){Z=e}function Y(e,t=!1,n){Z={p:Z,i:!1,c:null,e:null,s:e,x:null,l:null}}function W(e){var t=Z,n=t.e;if(null!==n)for(var r of(t.e=null,n))tn(r);return void 0!==e&&(t.x=e),t.i=!0,Z=t.p,e??{}}let z=[];function K(){var e=z;z=[],function(e){for(var t=0;t<e.length;t++)e[t]()}(e)}function X(e){if(0===z.length&&!Ue){var t=z;queueMicrotask(()=>{t===z&&K()})}z.push(e)}function Q(){for(;z.length>0;)K()}function ee(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let te,ne=!1;function re(e){ne=e}function ie(e){if(null===e)throw ee(),H;return te=e}function oe(){return ie(_e(te))}function ae(e){if(ne){if(null!==_e(te))throw ee(),H;te=e}}function le(e=1){if(ne){for(var t=e,n=te;t--;)n=_e(n);te=n}}function se(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===U||r===q||"["===r[0]&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=_e(n);e&&n.remove(),n=i}}function ce(e){if(!e||8!==e.nodeType)throw ee(),H;return e.data}function ue(e){if("object"!=typeof e||null===e||L in e)return e;const n=f(e);if(n!==c&&n!==u)return e;var r=new Map,i=t(e),o=ft(0),a=Vt,s=e=>{if(Vt===a)return e();var t=Et,n=Vt;St(null),Mt(a);var r=e();return St(t),Mt(n),r};return i&&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 i=r.get(t);return void 0===i?s(()=>{var e=ft(n.value);return r.set(t,e),e}):ht(i,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(void 0===n){if(t in e){const e=s(()=>ft(G));r.set(t,e),pt(o)}}else ht(n,G),pt(o);return!0},get(t,n,i){if(n===L)return e;var o=r.get(n),a=n in t;if(void 0!==o||a&&!l(t,n)?.writable||(o=s(()=>ft(ue(a?t[n]:G))),r.set(n,o)),void 0!==o){var c=Zt(o);return c===G?void 0:c}return Reflect.get(t,n,i)},getOwnPropertyDescriptor(e,t){var n=Reflect.getOwnPropertyDescriptor(e,t);if(n&&"value"in n){var i=r.get(t);i&&(n.value=Zt(i))}else if(void 0===n){var o=r.get(t),a=o?.v;if(void 0!==o&&a!==G)return{enumerable:!0,configurable:!0,value:a,writable:!0}}return n},has(e,t){if(t===L)return!0;var n=r.get(t),i=void 0!==n&&n.v!==G||Reflect.has(e,t);if((void 0!==n||null!==xt&&(!i||l(e,t)?.writable))&&(void 0===n&&(n=s(()=>ft(i?ue(e[t]):G)),r.set(t,n)),Zt(n)===G))return!1;return i},set(e,t,n,a){var c=r.get(t),u=t in e;if(i&&"length"===t)for(var f=n;f<c.v;f+=1){var d=r.get(f+"");void 0!==d?ht(d,G):f in e&&(d=s(()=>ft(G)),r.set(f+"",d))}void 0===c?u&&!l(e,t)?.writable||(ht(c=s(()=>ft(void 0)),ue(n)),r.set(t,c)):(u=c.v!==G,ht(c,s(()=>ue(n))));var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(a,n),!u){if(i&&"string"==typeof t){var v=r.get("length"),p=Number(t);Number.isInteger(p)&&p>=v.v&&ht(v,p+1)}pt(o)}return!0},ownKeys(e){Zt(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return void 0===t||t.v!==G});for(var[n,i]of r)i.v===G||n in e||t.push(n);return t},setPrototypeOf(){!function(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}()}})}function fe(e){try{if(null!==e&&"object"==typeof e&&L in e)return e[L]}catch{}return e}function de(e,t){return Object.is(fe(e),fe(t))}var he,ve,pe,ge,me;function ye(){if(void 0===he){he=window,ve=document,pe=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;ge=l(t,"firstChild").get,me=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 be(e=""){return document.createTextNode(e)}function we(e){return ge.call(e)}function _e(e){return me.call(e)}function $e(e,t){if(!ne)return we(e);var n=we(te);if(null===n)n=te.appendChild(be());else if(t&&3!==n.nodeType){var r=be();return n?.before(r),ie(r),r}return t&&Se(n),ie(n),n}function Ce(e,t=!1){if(!ne){var n=we(e);return n instanceof Comment&&""===n.data?_e(n):n}if(t){if(3!==te?.nodeType){var r=be();return te?.before(r),ie(r),r}Se(te)}return te}function Ee(e,t=1,n=!1){let r=ne?te:e;for(var i;t--;)i=r,r=_e(r);if(!ne)return r;if(n){if(3!==r?.nodeType){var o=be();return null===r?i?.after(o):r.before(o),ie(o),o}Se(r)}return ie(r),r}function ke(e,t,n){let r;return document.createElementNS(t??B,e,r)}function Se(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;null!==t&&3===t.nodeType;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function xe(e){var t=xt;if(null===t)return Et.f|=P,e;if(0===(t.f&k)&&!(4&t.f))throw e;Oe(e,t)}function Oe(e,t){for(;null!==t;){if(128&t.f){if(0===(t.f&k))throw e;try{return void t.b.error(e)}catch(t){e=t}}t=t.parent}throw e}const Re=-7169;function Ae(e,t){e.f=e.f&Re|t}function Ie(e){0!==(e.f&b)||null===e.deps?Ae(e,w):Ae(e,$)}function Pe(e){if(null!==e)for(const t of e)2&t.f&&0!==(t.f&A)&&(t.f^=A,Pe(t.deps))}function Le(e,t,n){0!==(e.f&_)?t.add(e):0!==(e.f&$)&&n.add(e),Pe(e.deps),Ae(e,w)}const Te=new Set;let Ne=null,Ve=null,Me=null,De=[],je=null,Fe=!1,Ue=!1;class qe{current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=0;#i=null;#o=new Set;#a=new Set;#l=new Map;is_fork=!1;#s=!1;#c(){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))Ae(n,_),ze(n);for(n of t.m)Ae(n,$),ze(n)}}process(e){De=[],this.apply();var t=[],n=[];for(const r of e)this.#u(r,t,n);if(this.#c()){this.#f(n),this.#f(t);for(const[e,t]of this.#l)Ke(e,t)}else{for(const e of this.#e)e();this.#e.clear(),0===this.#n&&this.#d(),Ve=this,Ne=null,Je(n),Je(t),Ve=null,this.#i?.resolve()}Me=null}#u(e,t,n){e.f^=w;for(var r=e.first;null!==r;){var i=r.f,o=!!(96&i);if(!(o&&0!==(i&w)||0!==(i&C)||this.#l.has(r))&&null!==r.fn){o?r.f^=w:4&i?t.push(r):jt(r)&&(0!==(i&g)&&this.#a.add(r),Gt(r));var a=r.first;if(null!==a){r=a;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.#a)}capture(e,t){t===G||this.previous.has(e)||this.previous.set(e,t),0===(e.f&P)&&(this.current.set(e,e.v),Me?.set(e,e.v))}activate(){Ne=this,this.apply()}deactivate(){Ne===this&&(Ne=null,Me=null)}flush(){if(this.activate(),De.length>0){if(Ge(),null!==Ne&&Ne!==this)return}else 0===this.#n&&this.process([]);this.deactivate()}discard(){for(const e of this.#t)e(this);this.#t.clear()}#d(){if(Te.size>1){this.previous.clear();var e=Me,t=!0;for(const e of Te){if(e===this){t=!1;continue}const r=[];for(const[n,i]of this.current){if(e.current.has(n)){if(!t||i===e.current.get(n))continue;e.current.set(n,i)}r.push(n)}if(0===r.length)continue;const i=[...e.current.keys()].filter(e=>!this.current.has(e));if(i.length>0){var n=De;De=[];const t=new Set,o=new Map;for(const e of r)Ye(e,i,t,o);if(De.length>0){Ne=e,e.apply();for(const t of De)e.#u(t,[],[]);e.deactivate()}De=n}}Ne=null,Me=e}Te.delete(this)}increment(e){this.#n+=1,e&&(this.#r+=1)}decrement(e){this.#n-=1,e&&(this.#r-=1),this.#s||(this.#s=!0,X(()=>{this.#s=!1,this.#c()?De.length>0&&this.flush():this.revive()}))}revive(){for(const e of this.#o)this.#a.delete(e),Ae(e,_),ze(e);for(const e of this.#a)Ae(e,$),ze(e);this.flush()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=v()).promise}static ensure(){if(null===Ne){const e=Ne=new qe;Te.add(Ne),Ue||X(()=>{Ne===e&&e.flush()})}return Ne}apply(){}}function He(e){var t=Ue;Ue=!0;try{for(;;){if(Q(),0===De.length&&(Ne?.flush(),0===De.length))return void(je=null);Ge()}}finally{Ue=t}}function Ge(){Fe=!0;try{for(var t=0;De.length>0;){var n=qe.ensure();if(t++>1e3)e,Be();n.process(De),st.clear()}}finally{De=[],Fe=!1,je=null}}function Be(){try{!function(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(e){Oe(e,je)}}let Ze=null;function Je(e){var t=e.length;if(0!==t){for(var n=0;n<t;){var r=e[n++];if(!(24576&r.f)&&jt(r)&&(Ze=new Set,Gt(r),null===r.deps&&null===r.first&&null===r.nodes&&null===r.teardown&&null===r.ac&&hn(r),Ze?.size>0)){st.clear();for(const e of Ze){if(24576&e.f)continue;const t=[e];let n=e.parent;for(;null!==n;)Ze.has(n)&&(Ze.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){const n=t[e];24576&n.f||Gt(n)}}Ze.clear()}}Ze=null}}function Ye(e,t,n,r){if(!n.has(e)&&(n.add(e),null!==e.reactions))for(const i of e.reactions){const e=i.f;2&e?Ye(i,t,n,r):4194320&e&&0===(e&_)&&We(i,t,r)&&(Ae(i,_),ze(i))}}function We(e,t,n){const i=n.get(e);if(void 0!==i)return i;if(null!==e.deps)for(const i of e.deps){if(r.call(t,i))return!0;if(2&i.f&&We(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function ze(e){var t=je=e,n=t.b;if(n?.is_pending&&16777228&e.f&&0===(e.f&k))n.defer_effect(e);else{for(;null!==t.parent;){var r=(t=t.parent).f;if(Fe&&t===xt&&0!==(r&g)&&0===(r&O)&&0!==(r&k))return;if(96&r){if(0===(r&w))return;t.f^=w}}De.push(t)}}function Ke(e,t){if(0===(e.f&m)||0===(e.f&w)){0!==(e.f&_)?t.d.push(e):0!==(e.f&$)&&t.m.push(e),Ae(e,w);for(var n=e.first;null!==n;)Ke(n,t),n=n.next}}class Xe{parent;is_pending=!1;transform_error;#h;#v=ne?te:null;#p;#g;#m;#y=null;#b=null;#w=null;#_=null;#$=0;#C=0;#E=!1;#o=new Set;#a=new Set;#k=null;#S=function(e){let t,n=0,r=ut(0);return()=>{Xt()&&(Zt(r),rn(()=>(0===n&&(t=Wt(()=>e(()=>pt(r)))),n+=1,()=>{X(()=>{n-=1,0===n&&(t?.(),t=void 0,pt(r))})})))}}(()=>(this.#k=ut(this.#$),()=>{this.#k=null}));constructor(e,t,n,r){this.#h=e,this.#p=t,this.#g=e=>{var t=xt;t.b=this,t.f|=128,n(e)},this.parent=xt.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#m=an(()=>{if(ne){const e=this.#v;oe();const t=e.data===q;if(e.data.startsWith("[?")){const t=JSON.parse(e.data.slice(2));this.#x(t)}else t?this.#O():this.#R()}else this.#A()},589824),ne&&(this.#h=te)}#R(){try{this.#y=sn(()=>this.#g(this.#h))}catch(e){this.error(e)}}#x(e){const t=this.#p.failed;t&&(this.#w=sn(()=>{t(this.#h,()=>e,()=>()=>{})}))}#O(){const e=this.#p.pending;e&&(this.is_pending=!0,this.#b=sn(()=>e(this.#h)),X(()=>{var e=this.#_=document.createDocumentFragment(),t=be();e.append(t),this.#y=this.#I(()=>(qe.ensure(),sn(()=>this.#g(t)))),0===this.#C&&(this.#h.before(e),this.#_=null,vn(this.#b,()=>{this.#b=null}),this.#P())}))}#A(){try{if(this.is_pending=this.has_pending_snippet(),this.#C=0,this.#$=0,this.#y=sn(()=>{this.#g(this.#h)}),this.#C>0){var e=this.#_=document.createDocumentFragment();yn(this.#y,e);const t=this.#p.pending;this.#b=sn(()=>t(this.#h))}else this.#P()}catch(e){this.error(e)}}#P(){this.is_pending=!1;for(const e of this.#o)Ae(e,_),ze(e);for(const e of this.#a)Ae(e,$),ze(e);this.#o.clear(),this.#a.clear()}defer_effect(e){Le(e,this.#o,this.#a)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#p.pending}#I(e){var t=xt,n=Et,r=Z;Ot(this.#m),St(this.#m),J(this.#m.ctx);try{return e()}catch(e){return xe(e),null}finally{Ot(t),St(n),J(r)}}#L(e){this.has_pending_snippet()?(this.#C+=e,0===this.#C&&(this.#P(),this.#b&&vn(this.#b,()=>{this.#b=null}),this.#_&&(this.#h.before(this.#_),this.#_=null))):this.parent&&this.parent.#L(e)}update_pending_count(e){this.#L(e),this.#$+=e,this.#k&&!this.#E&&(this.#E=!0,X(()=>{this.#E=!1,this.#k&&vt(this.#k,this.#$)}))}get_effect_pending(){return this.#S(),Zt(this.#k)}error(e){var t=this.#p.onerror;let n=this.#p.failed;if(!t&&!n)throw e;this.#y&&(fn(this.#y),this.#y=null),this.#b&&(fn(this.#b),this.#b=null),this.#w&&(fn(this.#w),this.#w=null),ne&&(ie(this.#v),le(),ie(se()));var r=!1,i=!1;const o=()=>{r?console.warn("https://svelte.dev/e/svelte_boundary_reset_noop"):(r=!0,i&&function(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}(),null!==this.#w&&vn(this.#w,()=>{this.#w=null}),this.#I(()=>{qe.ensure(),this.#A()}))},a=e=>{try{i=!0,t?.(e,o),i=!1}catch(e){Oe(e,this.#m&&this.#m.parent)}n&&(this.#w=this.#I(()=>{qe.ensure();try{return sn(()=>{var t=xt;t.b=this,t.f|=128,n(this.#h,()=>e,()=>o)})}catch(e){return Oe(e,this.#m.parent),null}}))};X(()=>{var t;try{t=this.transform_error(e)}catch(e){return void Oe(e,this.#m&&this.#m.parent)}null!==t&&"object"==typeof t&&"function"==typeof t.then?t.then(a,e=>Oe(e,this.#m&&this.#m.parent)):a(t)})}}function Qe(e,t,n,r){const i=tt;var o=e.filter(e=>!e.settled);if(0!==n.length||0!==o.length){var a,l,s,c,u=xt,f=(a=xt,l=Et,s=Z,c=Ne,function(e=!0){Ot(a),St(l),J(s),e&&c?.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(v):v():d.then(()=>h(t.map(i)))}else r(t.map(i));function h(e){f();try{r(e)}catch(e){0===(u.f&E)&&Oe(e,u)}et()}function v(){f(),Promise.all(n.map(e=>nt(e))).then(e=>h([...t.map(i),...e])).catch(e=>Oe(e,u))}}function et(e=!0){Ot(null),St(null),J(null),e&&Ne?.deactivate()}function tt(e){var t=null!==Et&&2&Et.f?Et:null;null!==xt&&(xt.f|=R);return{ctx:Z,deps:null,effects:null,equals:D,f:2050,fn:e,reactions:null,rv:0,v:G,wv:0,parent:t??xt,ac:null}}function nt(e,t,n){null===xt&&function(){throw new Error("https://svelte.dev/e/async_derived_orphan")}();var r=void 0,i=ut(G),o=!Et,a=new Map;return function(e){Kt(4718592,e,!0)}(()=>{var t=v();r=t.promise;try{Promise.resolve(e()).then(t.resolve,t.reject).finally(et)}catch(e){t.reject(e),et()}var n=Ne;if(o){var l=function(){var e=xt.b,t=Ne,n=e.is_rendered();return e.update_pending_count(1),t.increment(n),()=>{e.update_pending_count(-1),t.decrement(n)}}();a.get(n)?.reject(V),a.delete(n),a.set(n,t)}const s=(e,t=void 0)=>{if(n.activate(),t)t!==V&&(i.f|=P,vt(i,t));else{0!==(i.f&P)&&(i.f^=P),vt(i,e);for(const[e,t]of a){if(a.delete(e),e===n)break;t.reject(V)}}l&&l()};t.promise.then(s,e=>s(null,e||"unknown"))}),Qt(()=>{for(const e of a.values())e.reject(V)}),new Promise(e=>{!function t(n){function o(){n===r?e(i):t(r)}n.then(o,o)}(r)})}function rt(e){const t=tt(e);return At(t),t}function it(e){var t,n=xt;Ot(function(e){for(var t=e.parent;null!==t;){if(!(2&t.f))return 0===(t.f&E)?t:null;t=t.parent}return null}(e));try{e.f&=-65537,function(e){var t=e.effects;if(null!==t){e.effects=null;for(var n=0;n<t.length;n+=1)fn(t[n])}}(e),t=Ut(e)}finally{Ot(n)}return t}function ot(e){var t=it(e);e.equals(t)||(e.wv=Dt(),Ne?.is_fork&&null!==e.deps||(e.v=t,null!==e.deps))?$t||(null!==Me?(Xt()||Ne?.is_fork)&&Me.set(e,t):Ie(e)):Ae(e,w)}function at(e){if(null!==e.effects)for(const t of e.effects)t.teardown&&Gt(t)}let lt=new Set;const st=new Map;let ct=!1;function ut(e,t){return{f:0,v:e,reactions:null,equals:D,rv:0,wv:0}}function ft(e,t){const n=ut(e);return At(n),n}function dt(e,t=!1,n=!0){const r=ut(e);return t||(r.equals=F),r}function ht(e,t,n=!1){return null===Et||kt&&0===(Et.f&x)||!(4325394&Et.f)||null!==Rt&&r.call(Rt,e)||function(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}(),vt(e,n?ue(t):t)}function vt(e,t){if(!e.equals(t)){var n=e.v;$t?st.set(e,t):st.set(e,n),e.v=t;var r=qe.ensure();if(r.capture(e,n),2&e.f){const t=e;0!==(e.f&_)&&it(t),Ie(t)}e.wv=Dt(),gt(e,_),null===xt||0===(xt.f&w)||96&xt.f||(null===Lt?function(e){Lt=e}([e]):Lt.push(e)),!r.is_fork&<.size>0&&!ct&&function(){ct=!1;for(const e of lt)0!==(e.f&w)&&Ae(e,$),jt(e)&&Gt(e);lt.clear()}()}return t}function pt(e){ht(e,e.v+1)}function gt(e,t){var n=e.reactions;if(null!==n)for(var r=n.length,i=0;i<r;i++){var o=n[i],a=o.f,l=0===(a&_);if(l&&Ae(o,t),2&a){var s=o;Me?.delete(s),0===(a&A)&&(a&b&&(o.f|=A),gt(s,$))}else l&&(0!==(a&g)&&null!==Ze&&Ze.add(o),ze(o))}}function mt(e,t){if(t){const t=document.body;e.autofocus=!0,X(()=>{document.activeElement===t&&e.focus()})}}let yt=!1;function bt(){yt||(yt=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function wt(e){var t=Et,n=xt;St(null),Ot(null);try{return e()}finally{St(t),Ot(n)}}let _t=!1,$t=!1;function Ct(e){$t=e}let Et=null,kt=!1;function St(e){Et=e}let xt=null;function Ot(e){xt=e}let Rt=null;function At(e){null!==Et&&(null===Rt?Rt=[e]:Rt.push(e))}let It=null,Pt=0,Lt=null;let Tt=1,Nt=0,Vt=Nt;function Mt(e){Vt=e}function Dt(){return++Tt}function jt(e){var t=e.f;if(0!==(t&_))return!0;if(2&t&&(e.f&=-65537),0!==(t&$)){for(var n=e.deps,r=n.length,i=0;i<r;i++){var o=n[i];if(jt(o)&&ot(o),o.wv>e.wv)return!0}0!==(t&b)&&null===Me&&Ae(e,w)}return!1}function Ft(e,t,n=!0){var i=e.reactions;if(null!==i&&(null===Rt||!r.call(Rt,e)))for(var o=0;o<i.length;o++){var a=i[o];2&a.f?Ft(a,t,!1):t===a&&(n?Ae(a,_):0!==(a.f&w)&&Ae(a,$),ze(a))}}function Ut(e){var t=It,n=Pt,r=Lt,i=Et,o=Rt,a=Z,l=kt,s=Vt,c=e.f;It=null,Pt=0,Lt=null,Et=96&c?null:e,Rt=null,J(e.ctx),kt=!1,Vt=++Nt,null!==e.ac&&(wt(()=>{e.ac.abort(V)}),e.ac=null);try{e.f|=I;var u=(0,e.fn)();e.f|=k;var f=e.deps,d=Ne?.is_fork;if(null!==It){var h;if(d||Ht(e,Pt),null!==f&&Pt>0)for(f.length=Pt+It.length,h=0;h<It.length;h++)f[Pt+h]=It[h];else e.deps=f=It;if(Xt()&&0!==(e.f&b))for(h=Pt;h<f.length;h++)(f[h].reactions??=[]).push(e)}else!d&&null!==f&&Pt<f.length&&(Ht(e,Pt),f.length=Pt);if(!(null===Lt||kt||null===f||6146&e.f))for(h=0;h<Lt.length;h++)Ft(Lt[h],e);if(null!==i&&i!==e){if(Nt++,null!==i.deps)for(let e=0;e<n;e+=1)i.deps[e].rv=Nt;if(null!==t)for(const e of t)e.rv=Nt;null!==Lt&&(null===r?r=Lt:r.push(...Lt))}return 0!==(e.f&P)&&(e.f^=P),u}catch(e){return xe(e)}finally{e.f^=I,It=t,Pt=n,Lt=r,Et=i,Rt=o,J(a),kt=l,Vt=s}}function qt(e,t){let i=t.reactions;if(null!==i){var o=n.call(i,e);if(-1!==o){var a=i.length-1;0===a?i=t.reactions=null:(i[o]=i[a],i.pop())}}if(null===i&&2&t.f&&(null===It||!r.call(It,t))){var l=t;0!==(l.f&b)&&(l.f^=b,l.f&=-65537),Ie(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,Ht(t,0),un(t))}(l),Ht(l,0)}}function Ht(e,t){var n=e.deps;if(null!==n)for(var r=t;r<n.length;r++)qt(e,n[r])}function Gt(e){var t=e.f;if(0===(t&E)){Ae(e,w);var n=xt,r=_t;xt=e,_t=!0;try{16777232&t?function(e){var t=e.first;for(;null!==t;){var n=t.next;0===(t.f&m)&&fn(t),t=n}}(e):un(e),cn(e);var i=Ut(e);e.teardown="function"==typeof i?i:null,e.wv=Tt}finally{_t=r,xt=n}}}async function Bt(){await Promise.resolve(),He()}function Zt(e){var t=!!(2&e.f);if(null!==Et&&!kt&&!(null!==xt&&0!==(xt.f&E)||null!==Rt&&r.call(Rt,e))){var n=Et.deps;if(0!==(Et.f&I))e.rv<Nt&&(e.rv=Nt,null===It&&null!==n&&n[Pt]===e?Pt++:null===It?It=[e]:It.push(e));else{(Et.deps??=[]).push(e);var i=e.reactions;null===i?e.reactions=[Et]:r.call(i,Et)||i.push(Et)}}if($t&&st.has(e))return st.get(e);if(t){var o=e;if($t){var a=o.v;return(0===(o.f&w)&&null!==o.reactions||Yt(o))&&(a=it(o)),st.set(o,a),a}var l=0===(o.f&b)&&!kt&&null!==Et&&(_t||0!==(Et.f&b)),s=0===(o.f&k);jt(o)&&(l&&(o.f|=b),ot(o)),l&&!s&&(at(o),Jt(o))}if(Me?.has(e))return Me.get(e);if(0!==(e.f&P))throw e.v;return e.v}function Jt(e){if(e.f|=b,null!==e.deps)for(const t of e.deps)(t.reactions??=[]).push(e),2&t.f&&0===(t.f&b)&&(at(t),Jt(t))}function Yt(e){if(e.v===G)return!0;if(null===e.deps)return!1;for(const t of e.deps){if(st.has(t))return!0;if(2&t.f&&Yt(t))return!0}return!1}function Wt(e){var t=kt;try{return kt=!0,e()}finally{kt=t}}function zt(e){null===xt&&(null===Et&&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 Kt(e,t,n){var r=xt;null!==r&&0!==(r.f&C)&&(e|=C);var i={ctx:Z,deps:null,nodes:null,f:e|_|b,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{Gt(i)}catch(e){throw fn(i),e}else null!==t&&ze(i);var o=i;if(n&&null===o.deps&&null===o.teardown&&null===o.nodes&&o.first===o.last&&0===(o.f&R)&&(o=o.first,0!==(e&g)&&0!==(e&S)&&null!==o&&(o.f|=S)),null!==o&&(o.parent=r,null!==r&&function(e,t){var n=t.last;null===n?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}(o,r),null!==Et&&2&Et.f&&0===(e&y))){var a=Et;(a.effects??=[]).push(o)}return i}function Xt(){return null!==Et&&!kt}function Qt(e){const t=Kt(8,null,!1);return Ae(t,w),t.teardown=e,t}function en(e){zt();var t=xt.f;if(!(!Et&&0!==(t&m)&&0===(t&k)))return tn(e);var n=Z;(n.e??=[]).push(e)}function tn(e){return Kt(1048580,e,!1)}function nn(e){return Kt(4,e,!1)}function rn(e,t=0){return Kt(8|t,e,!0)}function on(e,t=[],n=[],r=[]){Qe(r,t,n,t=>{Kt(8,()=>e(...t.map(Zt)),!0)})}function an(e,t=0){return Kt(g|t,e,!0)}function ln(e,t=0){return Kt(p|t,e,!0)}function sn(e){return Kt(524320,e,!0)}function cn(e){var t=e.teardown;if(null!==t){const e=$t,n=Et;Ct(!0),St(null);try{t.call(null)}finally{Ct(e),St(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&y)?n.parent=null:fn(n,t),n=r}}function fn(e,t=!0){var n=!1;!t&&0===(e.f&O)||null===e.nodes||null===e.nodes.end||(dn(e.nodes.start,e.nodes.end),n=!0),un(e,t&&!n),Ht(e,0),Ae(e,E);var r=e.nodes&&e.nodes.t;if(null!==r)for(const e of r)e.stop();cn(e);var i=e.parent;null!==i&&null!==i.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:_e(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 vn(e,t,n=!0){var r=[];pn(e,r,!0);var i=()=>{n&&fn(e),t&&t()},o=r.length;if(o>0){var a=()=>--o||i();for(var l of r)l.out(a)}else i()}function pn(e,t,n){if(0===(e.f&C)){e.f^=C;var r=e.nodes&&e.nodes.t;if(null!==r)for(const e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;null!==i;){var o=i.next;pn(i,t,!!(0!==(i.f&S)||0!==(i.f&m)&&0!==(e.f&g))&&n),i=o}}}function gn(e){mn(e,!0)}function mn(e,t){if(0!==(e.f&C)){e.f^=C,0===(e.f&w)&&(Ae(e,_),ze(e));for(var n=e.first;null!==n;){var r=n.next;mn(n,!!(0!==(n.f&S)||0!==(n.f&m))&&t),n=r}var i=e.nodes&&e.nodes.t;if(null!==i)for(const e of i)(e.is_global||t)&&e.in()}}function yn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;null!==n;){var i=n===r?null:_e(n);t.append(n),n=i}}function bn(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 _n(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 Cn(e){return e=e.toLowerCase(),$n[e]??e}const En=["touchstart","touchmove"];function kn(e){return En.includes(e)}const Sn=Symbol("events"),xn=new Set,On=new Set;function Rn(e,t,n,r={}){function i(e){if(r.capture||Tn.call(t,e),!e.cancelBubble)return wt(()=>n?.call(this,e))}return e.startsWith("pointer")||e.startsWith("touch")||"wheel"===e?X(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function An(e,t,n,r,i){var o={capture:r,passive:i},a=Rn(e,t,n,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Qt(()=>{t.removeEventListener(e,a,o)})}function In(e,t,n){(t[Sn]??={})[e]=n}function Pn(e){for(var t=0;t<e.length;t++)xn.add(e[t]);for(var n of On)n(e)}let Ln=null;function Tn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],o=i[0]||e.target;Ln=e;var l=0,s=Ln===e&&e[Sn];if(s){var c=i.indexOf(s);if(-1!==c&&(t===document||t===window))return void(e[Sn]=t);var u=i.indexOf(t);if(-1===u)return;c<=u&&(l=c)}if((o=i[l]||e.target)!==t){a(e,"currentTarget",{configurable:!0,get:()=>o||n});var f=Et,d=xt;St(null),Ot(null);try{for(var h,v=[];null!==o;){var p=o.assignedSlot||o.parentNode||o.host||null;try{var g=o[Sn]?.[r];null==g||o.disabled&&e.target!==o||g.call(o,e)}catch(e){h?v.push(e):h=e}if(e.cancelBubble||p===t||null===p)break;o=p}if(h){for(let e of v)queueMicrotask(()=>{throw e});throw h}}finally{e[Sn]=t,delete e.currentTarget,St(f),Ot(d)}}}const Nn=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Vn(e){var t=ke("template");return t.innerHTML=function(e){return Nn?.createHTML(e)??e}(e.replaceAll("<!>","\x3c!----\x3e")),t.content}function Mn(e,t){var n=xt;null===n.nodes&&(n.nodes={start:e,end:t,a:null,t:null})}function Dn(e,t){var n,r=!!(1&t),i=!!(2&t),o=!e.startsWith("<!>");return()=>{if(ne)return Mn(te,null),te;void 0===n&&(n=Vn(o?e:"<!>"+e),r||(n=we(n)));var t=i||pe?document.importNode(n,!0):n.cloneNode(!0);r?Mn(we(t),t.lastChild):Mn(t,t);return t}}function jn(e,t,n="svg"){var r,i=`<${n}>${!e.startsWith("<!>")?e:"<!>"+e}</${n}>`;return()=>{if(ne)return Mn(te,null),te;if(!r){var e=Vn(i);r=we(we(e))}var t=r.cloneNode(!0);return Mn(t,t),t}}function Fn(e,t){return jn(e,0,"svg")}function Un(e=""){if(!ne){var t=be(e+"");return Mn(t,t),t}var n=te;return 3!==n.nodeType?(n.before(n=be()),ie(n)):Se(n),Mn(n,n),n}function qn(){if(ne)return Mn(te,null),te;var e=document.createDocumentFragment(),t=document.createComment(""),n=be();return e.append(t,n),Mn(t,n),e}function Hn(e,t){if(ne){var n=xt;return 0!==(n.f&k)&&null!==n.nodes.end||(n.nodes.end=te),void oe()}null!==e&&e.before(t)}function Gn(e,t){var n=null==t?"":"object"==typeof t?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function Bn(e,t){return Yn(e,t)}function Zn(e,t){ye(),t.intro=t.intro??!1;const n=t.target,r=ne,i=te;try{for(var o=we(n);o&&(8!==o.nodeType||o.data!==U);)o=_e(o);if(!o)throw H;re(!0),ie(o);const r=Yn(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!==H&&console.warn("Failed to hydrate: ",r),!1===t.recover&&function(){throw new Error("https://svelte.dev/e/hydration_failed")}(),ye(),n.textContent="",re(!1),Bn(e,t)}finally{re(r),ie(i)}}const Jn=new Map;function Yn(e,{target:t,anchor:n,props:r={},events:o,context:a,intro:l=!0,transformError:s}){ye();var c=void 0,u=function(e){qe.ensure();const t=Kt(524352,e,!0);return(e={})=>new Promise(n=>{e.outro?vn(t,()=>{fn(t),n(void 0)}):(fn(t),n(void 0))})}(()=>{var l=n??t.appendChild(be());!function(e,t,n,r){new Xe(e,t,n,r)}(l,{pending:()=>{}},t=>{if(Y({}),a&&(Z.c=a),o&&(r.$$events=o),ne&&Mn(t,null),c=e(t,r)||{},ne&&(xt.nodes.end=te,null===te||8!==te.nodeType||"]"!==te.data))throw ee(),H;W()},s);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 i=kn(r);for(const e of[t,document]){var o=Jn.get(e);void 0===o&&(o=new Map,Jn.set(e,o));var a=o.get(r);void 0===a?(e.addEventListener(r,Tn,{passive:i}),o.set(r,1)):o.set(r,a+1)}}}};return f(i(xn)),On.add(f),()=>{for(var e of u)for(const n of[t,document]){var r=Jn.get(n),i=r.get(e);0==--i?(n.removeEventListener(e,Tn),r.delete(e),0===r.size&&Jn.delete(n)):r.set(e,i)}On.delete(f),l!==n&&l.parentNode?.removeChild(l)}});return Wn.set(c,u),c}let Wn=new WeakMap;class zn{anchor;#T=new Map;#N=new Map;#V=new Map;#M=new Set;#D=!0;constructor(e,t=!0){this.anchor=e,this.#D=t}#d=()=>{var e=Ne;if(this.#T.has(e)){var t=this.#T.get(e),n=this.#N.get(t);if(n)gn(n),this.#M.delete(t);else{var r=this.#V.get(t);r&&(this.#N.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.#T){if(this.#T.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.#N){if(e===t||this.#M.has(e))continue;const i=()=>{if(Array.from(this.#T.values()).includes(e)){var t=document.createDocumentFragment();yn(r,t),t.append(be()),this.#V.set(e,{effect:r,fragment:t})}else fn(r);this.#M.delete(e),this.#N.delete(e)};this.#D||!n?(this.#M.add(e),vn(r,i,!1)):i()}}};#j=e=>{this.#T.delete(e);const t=Array.from(this.#T.values());for(const[e,n]of this.#V)t.includes(e)||(fn(n.effect),this.#V.delete(e))};ensure(e,t){var n=Ne;!t||this.#N.has(e)||this.#V.has(e)||this.#N.set(e,sn(()=>t(this.anchor)));this.#T.set(n,e),ne&&(this.anchor=te),this.#d()}}function Kn(e,t,n=!1){ne&&oe();var r=new zn(e);function i(t,n){if(ne){const o=ce(e);if(t!==(o===U?0:o!==q&&parseInt(o.substring(1)))){var i=se();return ie(i),r.anchor=i,re(!1),r.ensure(t,n),void re(!0)}}r.ensure(t,n)}an(()=>{var e=!1;t((t,n=0)=>{e=!0,i(n,t)}),e||i(!1,null)},n?S:0)}const Xn=Symbol("NaN");function Qn(e,t,n=!1,r=!1,i=!1){var o=e,a="";on(()=>{var e=xt;if(a!==(a=t()??"")){if(null!==e.nodes&&(dn(e.nodes.start,e.nodes.end),e.nodes=null),""!==a){if(ne){te.data;for(var i=oe(),l=i;null!==i&&(8!==i.nodeType||""!==i.data);)l=i,i=_e(i);if(null===i)throw ee(),H;return Mn(te,l),void(o=ie(i))}var s=ke(n?"svg":r?"math":"template",n?"http://www.w3.org/2000/svg":r?"http://www.w3.org/1998/Math/MathML":void 0);s.innerHTML=a;var c=n||r?s:s.content;if(Mn(we(c),c.lastChild),n||r)for(;we(c);)o.before(we(c));else o.before(c)}}else ne&&oe()})}function er(e,t){var n,r=void 0;ln(()=>{r!==(r=t())&&(n&&(fn(n),n=null),r&&(n=sn(()=>{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 i=e.length;for(t=0;t<i;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="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=tr(e))&&(r&&(r+=" "),r+=t);return r}(e):e??""}const rr=[..." \t\n\r\f \v\ufeff"];function ir(e,t=!1){var n=t?" !important;":";",r="";for(var i of Object.keys(e)){var o=e[i];null!=o&&""!==o&&(r+=" "+i+": "+o+n)}return r}function or(e){return"-"!==e[0]||"-"!==e[1]?e.toLowerCase():e}function ar(e,t,n,r,i,o){var a=e.__className;if(ne||a!==n||void 0===a){var l=function(e,t,n){var r=null==e?"":""+e;if(n)for(var i of Object.keys(n))if(n[i])r=r?r+" "+i:i;else if(r.length)for(var o=i.length,a=0;(a=r.indexOf(i,a))>=0;){var l=a+o;0!==a&&!rr.includes(r[a-1])||l!==r.length&&!rr.includes(r[l])?a=l:r=(0===a?"":r.substring(0,a))+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&&i!==o)for(var s in o){var c=!!o[s];null!=i&&c===!!i[s]||e.classList.toggle(s,c)}return o}function lr(e,t={},n,r){for(var i in n){var o=n[i];t[i]!==o&&(null==n[i]?e.style.removeProperty(i):e.style.setProperty(i,o,r))}}function sr(e,t,n,r){var i=e.__style;if(ne||i!==t){var o=function(e,t){if(t){var n,r,i="";if(Array.isArray(t)?(n=t[0],r=t[1]):n=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,a=0,l=!1,s=[];n&&s.push(...Object.keys(n).map(or)),r&&s.push(...Object.keys(r).map(or));var c=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?a++:")"===d&&a--,!l&&!1===o&&0===a)if(":"===d&&-1===u)u=f;else if(";"===d||f===t-1){if(-1!==u){var h=or(e.substring(c,u).trim());s.includes(h)||(";"!==d&&f++,i+=" "+e.substring(c,f).trim()+";")}c=f+1,u=-1}}}return n&&(i+=ir(n)),r&&(i+=ir(r,!0)),""===(i=i.trim())?null:i}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 cr(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 i of e.options)i.selected=n.includes(ur(i))}else{for(i of e.options){if(de(ur(i),n))return void(i.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"),vr=Symbol("is html"),pr=M?"link":"LINK",gr=M?"input":"INPUT",mr=M?"option":"OPTION",yr=M?"select":"SELECT",br=M?"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),bt()}}function _r(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function $r(e,t,n,r){var i=Er(e);ne&&(i[t]=e.getAttribute(t),"src"===t||"srcset"===t||"href"===t&&e.nodeName===pr)||i[t]!==(i[t]=n)&&("loading"===t&&(e[N]=n),null==n?e.removeAttribute(t):"string"!=typeof n&&Sr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Cr(e,t,n=[],r=[],i=[],o,a=!1,l=!1){Qe(i,n,r,n=>{var r=void 0,i={},o=e.nodeName===yr,s=!1;if(ln(()=>{var c=t(...n.map(Zt)),u=function(e,t,n,r,i=!1){if(ne&&i&&e.nodeName===gr){var o=e;("checkbox"===o.type?"defaultChecked":"defaultValue")in n||wr(o)}var a=Er(e),l=a[hr],s=!a[vr];let c=ne&&l;c&&re(!1);var u=t||{},f=e.nodeName===mr;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=Sr(e);for(const r in n){let i=n[r];if(f&&"value"===r&&null==i)e.value=e.__value="",u[r]=i;else if("class"!==r)if("style"!==r){var v=u[r];if(i!==v||void 0===i&&e.hasAttribute(r)){u[r]=i;var p=r[0]+r[1];if("$$"!==p)if("on"===p){const t={},n="$$"+r;let o=r.slice(2);var g=_n(o);if(bn(o)&&(o=o.slice(0,-7),t.capture=!0),!g&&v){if(null!=i)continue;e.removeEventListener(o,u[n],t),u[n]=null}if(g)In(o,e,i),Pn([o]);else if(null!=i){let i=function(e){u[r].call(this,e)};u[n]=Rn(o,e,i,t)}}else if("style"===r)$r(e,r,i);else if("autofocus"===r)mt(e,Boolean(i));else if(l||"__value"!==r&&("value"!==r||null==i))if("selected"===r&&f)_r(e,i);else{var m=r;s||(m=Cn(m));var y="defaultValue"===m||"defaultChecked"===m;if(null!=i||l||y)y||h.includes(m)&&(l||"string"!=typeof i)?(e[m]=i,m in a&&(a[m]=G)):"function"!=typeof i&&$r(e,m,i);else if(a[r]=null,"value"===m||"checked"===m){let n=e;const r=void 0===t;if("value"===m){let e=n.defaultValue;n.removeAttribute(m),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(m),n.defaultChecked=e,n.checked=!!r&&e}}else e.removeAttribute(r)}else e.value=e.__value=i}}else sr(e,i,t?.[dr],n[dr]),u[r]=i,u[dr]=n[dr];else ar(e,"http://www.w3.org/1999/xhtml"===e.namespaceURI,i,0,t?.[fr],n[fr]),u[r]=i,u[fr]=n[fr]}return c&&re(!0),u}(e,r,c,0,a,l);s&&o&&"value"in c&&cr(e,c.value);for(let e of Object.getOwnPropertySymbols(i))c[e]||fn(i[e]);for(let t of Object.getOwnPropertySymbols(c)){var f=c[t];"@attach"!==t.description||r&&f===r[t]||(i[t]&&fn(i[t]),i[t]=sn(()=>er(e,()=>f))),u[t]=f}r=u}),o){var c=e;nn(()=>{cr(c,r.value,!0),function(e){var t=new MutationObserver(()=>{cr(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Qt(()=>{t.disconnect()})}(c)})}s=!0})}function Er(e){return e.__attributes??={[hr]:e.nodeName.includes("-"),[vr]:e.namespaceURI===B}}var kr=new Map;function Sr(e){var t,n=e.getAttribute("is")||e.nodeName,r=kr.get(n);if(r)return r;kr.set(n,r=[]);for(var i=e,o=Element.prototype;o!==i;){for(var a in t=s(i))t[a].set&&r.push(a);i=f(i)}return r}function xr(e,t,n=t){var r=new WeakSet;!function(e,t,n,r=n){e.addEventListener(t,()=>wt(n));const i=e.__on_r;e.__on_r=i?()=>{i(),r(!0)}:()=>r(!0),bt()}(e,"input",async i=>{var o=i?e.defaultValue:e.value;if(o=Or(e)?Rr(o):o,n(o),null!==Ne&&r.add(Ne),await Bt(),o!==(o=t())){var a=e.selectionStart,l=e.selectionEnd,s=e.value.length;if(e.value=o??"",null!==l){var c=e.value.length;a===l&&l===s&&c>s?(e.selectionStart=c,e.selectionEnd=c):(e.selectionStart=a,e.selectionEnd=Math.min(l,c))}}}),(ne&&e.defaultValue!==e.value||null==Wt(t)&&e.value)&&(n(Or(e)?Rr(e.value):e.value),null!==Ne&&r.add(Ne)),rn(()=>{var n=t();if(e===document.activeElement){var i=Ve??Ne;if(r.has(i))return}Or(e)&&n===Rr(e.value)||("date"!==e.type||n||e.value)&&n!==e.value&&(e.value=n??"")})}function Or(e){var t=e.type;return"number"===t||"range"===t}function Rr(e){return""===e?null:+e}function Ar(e,t){return e===t||e?.[L]===t}function Ir(e={},t,n,r){return nn(()=>{var r,i;return rn(()=>{r=i,i=[],Wt(()=>{e!==n(...i)&&(t(e,...i),r&&Ar(n(...r),e)&&t(null,...r))})}),()=>{X(()=>{i&&Ar(n(...i),e)&&t(null,...i)})}}),e}let Pr=Symbol();function Lr(e,t,n){const r=n[t]??={store:null,source:dt(void 0),unsubscribe:h};if(r.store!==e&&!(Pr in n))if(r.unsubscribe(),r.store=e??null,null==e)r.source.v=void 0,r.unsubscribe=h;else{var i=!0;r.unsubscribe=qr(e,e=>{i?r.source.v=e:ht(r.source,e)}),i=!1}return e&&Pr in n?Br(e):Zt(r.source)}const Tr={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set:(e,t)=>!1,getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t))return t in e.props?{enumerable:!0,configurable:!0,value:e.props[t]}:void 0},has:(e,t)=>!e.exclude.includes(t)&&t in e.props,ownKeys:e=>Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))};function Nr(e,t,n){return new Proxy({props:e,exclude:t},Tr)}function Vr(e,t,n,r){var i,o=r,a=!0,l=()=>(a&&(a=!1,o=r),o);void 0===e[t]&&void 0!==r&&l(),i=()=>{var n=e[t];return void 0===n?l():(a=!0,n)};var s=!1,c=tt(()=>(s=!1,i())),u=xt;return function(e,t){if(arguments.length>0){const n=t?Zt(c):e;return ht(c,n),s=!0,void 0!==o&&(o=n),e}return $t&&s||0!==(u.f&E)?c.v:Zt(c)}}class Mr{#F;#U;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)=>Zt(t.get(r)??n(r,Reflect.get(e,r))),has:(e,r)=>r===T||(Zt(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r)),set:(e,r,i)=>(ht(t.get(r)??n(r,i),i),Reflect.set(e,r,i))});this.#U=(e.hydrate?Zn:Bn)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),e?.props?.$$host&&!1!==e.sync||He(),this.#F=r.$$events;for(const e of Object.keys(this.#U))"$set"!==e&&"$destroy"!==e&&"$on"!==e&&a(this,e,{get(){return this.#U[e]},set(t){this.#U[e]=t},enumerable:!0});this.#U.$set=e=>{Object.assign(r,e)},this.#U.$destroy=()=>{!function(e,t){const n=Wn.get(e);n?(Wn.delete(e),n(t)):Promise.resolve()}(this.#U)}}$set(e){this.#U.$set(e)}$on(e,t){this.#F[e]=this.#F[e]||[];const n=(...e)=>t.call(this,...e);return this.#F[e].push(n),()=>{this.#F[e]=this.#F[e].filter(e=>e!==n)}}$destroy(){this.#U.$destroy()}}let Dr=class{};function jr(e,t,n,r){const i=n[e]?.type;if(t="Boolean"===i&&"boolean"!=typeof t?null!=t:t,!r||!n[e])return t;if("toAttribute"===r)switch(i){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(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":default:return t;case"Number":return null!=t?+t:t}}function Fr(e,t,n,r,i,s){let c=class extends Dr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return o(t).map(e=>(t[e].attribute||e).toLowerCase())}};return o(t).forEach(e=>{a(c.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=jr(e,n,t),this.$$d[e]=n;var r=this.$$c;if(r){var i=l(r,e)?.get;i?r[e]=n:r.$set({[e]:n})}}})}),r.forEach(e=>{a(c.prototype,e,{get(){return this.$$c?.[e]}})}),e.element=c,c}function Ur(e){null===Z&&function(){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}(),en(()=>{const t=Wt(e);if("function"==typeof t)return t})}function qr(e,t,n){if(null==e)return t(void 0),h;const r=Wt(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}"function"==typeof HTMLElement&&(Dr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(e){return t=>{const n=ke("slot");"default"!==e&&(n.name=e),Hn(t,n)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=function(e){const t={};return e.childNodes.forEach(e=>{t[e.slot||"default"]=!0}),t}(this);for(const e of this.$$s)e in r&&("default"!==e||this.$$d.children?n[e]=t(e):(this.$$d.children=t(e),n.default=!0));for(const e of this.attributes){const t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=jr(t,e.value,this.$$p_d,"toProp"))}for(const e in this.$$p_d)e in this.$$d||void 0===this[e]||(this.$$d[e]=this[e],delete this[e]);this.$$c=(e={component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:n,$$host:this}},new Mr(e)),this.$$me=function(e){qe.ensure();const t=Kt(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=jr(e,this.$$d[e],this.$$p_d,"toAttribute");null==t?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(const e in this.$$l)for(const t of this.$$l[e]){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}var e}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=jr(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return o(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});const Hr=[];function Gr(e,t=h){let n=null;const r=new Set;function i(t){if(j(e,t)&&(e=t,n)){const t=!Hr.length;for(const t of r)t[1](),Hr.push(t,e);if(t){for(let e=0;e<Hr.length;e+=2)Hr[e][0](Hr[e+1]);Hr.length=0}}}function o(t){i(t(e))}return{set:i,update:o,subscribe:function(a,l=h){const s=[a,l];return r.add(s),1===r.size&&(n=t(i,o)||h),a(e),()=>{r.delete(s),0===r.size&&n&&(n(),n=null)}}}}function Br(e){let t;return qr(e,e=>t=e)(),t}function Zr(e){const t={get:e=>Br(t.store)[e],set:(e,n)=>{"string"==typeof e?Object.assign(Br(t.store),{[e]:n}):Object.assign(Br(t.store),e),t.store.set(Br(t.store))},store:Gr(e)};return t}globalThis.$altcha=globalThis.$altcha||{algorithms:new Map,defaults:Zr({}),i18n:Zr({}),instances:new Set,plugins:new Set};const Jr={ariaLinkLabel:"Visit Altcha.org",cancel:"Cancel",enterCode:"Enter code",enterCodeAria:"Enter code you hear. Press Space to play audio.",enterCodeFromImage:"To proceed, please enter the code from the image below.",error:"Verification failed. Try again later.",expired:"Verification expired. Try again.",footer:'Protected by <a href="https://altcha.org/" target="_blank" aria-label="Visit Altcha.org">ALTCHA</a>',getAudioChallenge:"Get an audio challenge",label:"I'm not a robot",loading:"Loading...",reload:"Reload",verify:"Verify",verificationRequired:"Verification required!",verified:"Verified",verifying:"Verifying...",waitAlert:"Verifying... please wait."};"$altcha"in globalThis&&globalThis.$altcha.i18n.set("en",Jr);"undefined"!=typeof window&&((window.__svelte??={}).v??=new Set).add("5");var Yr=Dn('<label class="altcha-checkbox"><input/> <svg width="12" height="9" viewBox="0 0 12 9"><polyline points="1 5 4 8 11 1"></polyline></svg> <div class="altcha-spinner altcha-checkbox-spinner" aria-hidden="true"></div></label>');function Wr(e,t){Y(t,!0);let n=Vr(t,"loading"),r=Nr(t,["$$slots","$$events","$$legacy","$$host","loading"]);var i={get loading(){return n()},set loading(e){n(e),He()}},o=Yr();return Cr($e(o),()=>({type:"checkbox",...r}),void 0,void 0,void 0,0,!0),le(4),ae(o),on(()=>$r(o,"data-loading",n())),Hn(e,o),W(i)}Fr(Wr,{loading:{}},[],[],{mode:"open"});var zr=Dn('<div class="altcha-checkbox-native"><input/> <div class="altcha-spinner altcha-checkbox-native-spinner"></div></div>');function Kr(e,t){Y(t,!0);let n=Vr(t,"loading"),r=Nr(t,["$$slots","$$events","$$legacy","$$host","loading"]);var i={get loading(){return n()},set loading(e){n(e),He()}},o=zr();return Cr($e(o),()=>({type:"checkbox",...r}),void 0,void 0,void 0,0,!0),le(2),ae(o),on(()=>$r(o,"data-loading",n())),Hn(e,o),W(i)}Fr(Kr,{loading:{}},[],[],{mode:"open"});var Xr=Dn('<div><a target="_blank" class="altcha-logo" aria-hidden="true"><svg width="22" height="22" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.33955 16.4279C5.88954 20.6586 12.1971 21.2105 16.4279 17.6604C18.4699 15.947 19.6548 13.5911 19.9352 11.1365L17.9886 10.4279C17.8738 12.5624 16.909 14.6459 15.1423 16.1284C11.7577 18.9684 6.71167 18.5269 3.87164 15.1423C1.03163 11.7577 1.4731 6.71166 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577C16.9767 5.86872 17.5322 7.02798 17.804 8.2324L19.9522 9.01429C19.7622 7.07737 19.0059 5.17558 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956C-0.658625 5.88958 -1.21046 12.1971 2.33955 16.4279Z" fill="currentColor"></path><path d="M3.57212 2.33956C1.65755 3.94607 0.496389 6.11731 0.12782 8.40523L2.04639 9.13961C2.26047 7.15832 3.21057 5.25375 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577L13.8302 6.78606L19.9633 9.13364C19.7929 7.15555 19.0335 5.20847 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956Z" fill="currentColor"></path><path d="M7 10H5C5 12.7614 7.23858 15 10 15C12.7614 15 15 12.7614 15 10H13C13 11.6569 11.6569 13 10 13C8.3431 13 7 11.6569 7 10Z" fill="currentColor"></path></svg></a></div>');function Qr(e,t){Y(t,!0);let n=Vr(t,"strings");var r={get strings(){return n()},set strings(e){n(e),He()}},i=Xr(),o=$e(i);return $r(o,"href","https://altcha.org"),ae(i),on(()=>$r(o,"aria-label",n().ariaLinkLabel)),Hn(e,i),W(r)}Fr(Qr,{strings:{}},[],[],{mode:"open"});var ei=Dn('<div class="altcha-footer"><div><!></div> <!></div>');function ti(e,t){Y(t,!0);let n=Vr(t,"logo"),r=Vr(t,"strings");var i={get logo(){return n()},set logo(e){n(e),He()},get strings(){return r()},set strings(e){r(e),He()}},o=ei(),a=$e(o);Qn($e(a),()=>r().footer),ae(a);var l=Ee(a,2),s=e=>{Qr(e,{get strings(){return r()}})};return Kn(l,e=>{n()&&e(s)}),ae(o),Hn(e,o),W(i)}Fr(ti,{logo:{},strings:{}},[],[],{mode:"open"});var ni=Dn('<label class="altcha-switch"><input/> <div class="altcha-switch-toggle"><div class="altcha-spinner altcha-switch-spinner"></div></div></label>');function ri(e,t){Y(t,!0);let n=Vr(t,"loading"),r=Nr(t,["$$slots","$$events","$$legacy","$$host","loading"]);var i={get loading(){return n()},set loading(e){n(e),He()}},o=ni();return Cr($e(o),()=>({type:"checkbox",...r}),void 0,void 0,void 0,0,!0),le(2),ae(o),on(()=>$r(o,"data-loading",n())),Hn(e,o),W(i)}Fr(ri,{loading:{}},[],[],{mode:"open"});var ii=(e=>(e.ERROR="error",e.LOADING="loading",e.PLAYING="playing",e.PAUSED="paused",e.READY="ready",e))(ii||{}),oi=(e=>(e.CODE="code",e.ERROR="error",e.VERIFIED="verified",e.VERIFYING="verifying",e.UNVERIFIED="unverified",e.EXPIRED="expired",e))(oi||{}),ai=Dn('<div class="altcha-code-challenge-title"> </div>'),li=Dn('<div class="altcha-spinner"></div>'),si=Fn('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12.8659 3.00017L22.3922 19.5002C22.6684 19.9785 22.5045 20.5901 22.0262 20.8662C21.8742 20.954 21.7017 21.0002 21.5262 21.0002H2.47363C1.92135 21.0002 1.47363 20.5525 1.47363 20.0002C1.47363 19.8246 1.51984 19.6522 1.60761 19.5002L11.1339 3.00017C11.41 2.52187 12.0216 2.358 12.4999 2.63414C12.6519 2.72191 12.7782 2.84815 12.8659 3.00017ZM10.9999 16.0002V18.0002H12.9999V16.0002H10.9999ZM10.9999 9.00017V14.0002H12.9999V9.00017H10.9999Z"></path></svg>'),ci=Fn('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M15 7C15 6.44772 15.4477 6 16 6C16.5523 6 17 6.44772 17 7V17C17 17.5523 16.5523 18 16 18C15.4477 18 15 17.5523 15 17V7ZM7 7C7 6.44772 7.44772 6 8 6C8.55228 6 9 6.44772 9 7V17C9 17.5523 8.55228 18 8 18C7.44772 18 7 17.5523 7 17V7Z"></path></svg>'),ui=Fn('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4 12H7C8.10457 12 9 12.8954 9 14V19C9 20.1046 8.10457 21 7 21H4C2.89543 21 2 20.1046 2 19V12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12V19C22 20.1046 21.1046 21 20 21H17C15.8954 21 15 20.1046 15 19V14C15 12.8954 15.8954 12 17 12H20C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12Z"></path></svg>'),fi=Dn('<button type="button" class="altcha-button altcha-button-secondary"><!></button>'),di=Dn('<audio hidden="" autoplay=""><source/></audio>'),hi=Dn('<div class="altcha-code-challenge"><form data-code-challenge="true"><!> <div class="altcha-code-challenge-text"> </div> <img class="altcha-code-challenge-image" alt=""/> <div class="altcha-code-challenge-row"><input type="text" class="altcha-input" autocomplete="off" name="" required=""/> <!> <button type="button" class="altcha-button altcha-button-secondary"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2V4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 9.25022 5.38734 6.82447 7.50024 5.38451L7.5 8H9.5V2L3.5 2V4L5.99918 3.99989C3.57075 5.82434 2 8.72873 2 12Z"></path></svg></button></div> <div class="altcha-code-challenge-buttons"><button type="submit" class="altcha-button"> </button> <button type="button" class="altcha-button altcha-button-secondary"> </button></div></form> <!></div>');function vi(e,t){Y(t,!0);let n=Vr(t,"audioUrl"),r=Vr(t,"codeChallenge"),i=Vr(t,"config"),o=Vr(t,"imageUrl"),a=Vr(t,"onCancel"),l=Vr(t,"onReload"),s=Vr(t,"onSubmit"),c=Vr(t,"strings"),u=ft(void 0),f=ft(void 0),d=ft(void 0),h=ft(!1),v=ft(""),p=ft(!1);function g(){ht(u,ii.PAUSED,!0)}function m(e){ht(u,ii.ERROR,!0)}function y(){ht(u,ii.READY,!0)}function b(){ht(u,ii.LOADING,!0)}function w(){ht(u,ii.PLAYING,!0)}function _(){ht(u,ii.PAUSED,!0)}function $(){Zt(f)?Zt(u)===ii.LOADING||(Zt(f).paused?(Zt(f).currentTime=0,Zt(f).play()):Zt(f).pause()):(ht(p,!0),requestAnimationFrame(()=>{Zt(f)?.play()}))}Ur(()=>(i().disableAutoFocus||Bt().then(()=>{Zt(d)?.focus()}),()=>{Zt(f)&&(Zt(f).pause(),ht(f,void 0))}));var C={get audioUrl(){return n()},set audioUrl(e){n(e),He()},get codeChallenge(){return r()},set codeChallenge(e){r(e),He()},get config(){return i()},set config(e){i(e),He()},get imageUrl(){return o()},set imageUrl(e){o(e),He()},get onCancel(){return a()},set onCancel(e){a(e),He()},get onReload(){return l()},set onReload(e){l(e),He()},get onSubmit(){return s()},set onSubmit(e){s(e),He()},get strings(){return c()},set strings(e){c(e),He()}},E=hi(),k=$e(E),S=$e(k),x=e=>{var t=ai(),n=$e(t,!0);ae(t),on(()=>Gn(n,c().verificationRequired)),Hn(e,t)};Kn(S,e=>{"standard"!==i().codeChallengeDisplay&&e(x)});var O=Ee(S,2),R=$e(O,!0);ae(O);var A=Ee(O,2),I=Ee(A,2),P=$e(I);wr(P),P.disabled=Zt(h),Ir(P,e=>ht(d,e),()=>Zt(d));var L=Ee(P,2),T=e=>{var t=fi(),n=$e(t),r=e=>{Hn(e,li())},i=e=>{Hn(e,si())},o=e=>{Hn(e,ci())},a=e=>{Hn(e,ui())};Kn(n,e=>{Zt(u)===ii.LOADING?e(r):Zt(u)===ii.ERROR?e(i,1):Zt(u)===ii.PLAYING?e(o,2):e(a,!1)}),ae(t),on(()=>{$r(t,"title",c().getAudioChallenge),t.disabled=Zt(u)===ii.LOADING||Zt(u)===ii.ERROR,$r(t,"aria-label",Zt(u)===ii.LOADING?c().loading:c().getAudioChallenge)}),In("click",t,()=>$()),Hn(e,t)};Kn(L,e=>{r().audio&&e(T)});var N=Ee(L,2);ae(I);var V=Ee(I,2),M=$e(V),D=$e(M,!0);ae(M);var j=Ee(M,2),F=$e(j,!0);ae(j),ae(V),ae(k);var U=Ee(k,2),q=e=>{var t=di(),r=$e(t);ae(t),Ir(t,e=>ht(f,e),()=>Zt(f)),on(()=>$r(r,"src",n())),An("loadstart",t,b),An("canplay",t,y),An("pause",t,_),An("playing",t,w),An("ended",t,g),An("error",r,m),Hn(e,t)};return Kn(U,e=>{Zt(p)&&n()&&e(q)}),ae(E),on(()=>{Gn(R,c().enterCodeFromImage),$r(A,"src",o()),$r(P,"minlength",r().length||1),$r(P,"maxlength",r().length),$r(P,"placeholder",c().enterCode),$r(P,"aria-label",Zt(u)===ii.LOADING?c().loading:Zt(u)===ii.PLAYING?"":c().enterCodeAria),$r(P,"aria-live",Zt(u)?"assertive":"polite"),$r(P,"aria-busy",Zt(u)===ii.LOADING),$r(N,"title",c().reload),$r(N,"aria-label",c().reload),$r(M,"aria-label",c().verify),Gn(D,c().verify),$r(j,"aria-label",c().cancel),Gn(F,c().cancel)}),An("submit",k,function(e){e.preventDefault(),e.stopPropagation(),s()?.(Zt(v))},!0),In("keydown",P,function(e){"Space"===e.code?(e.preventDefault(),e.stopPropagation(),$()):"Escape"===e.code&&(e.preventDefault(),e.stopPropagation(),a()?.())}),xr(P,()=>Zt(v),e=>ht(v,e)),In("click",N,()=>l()?.()),In("click",j,()=>a()?.()),Hn(e,E),W(C)}Pn(["keydown","click"]),Fr(vi,{audioUrl:{},codeChallenge:{},config:{},imageUrl:{},onCancel:{},onReload:{},onSubmit:{},strings:{}},[],[],{mode:"open"});var pi=Dn('<div class="altcha-popover-backdrop" data-backdrop=""></div>'),gi=Dn('<div class="altcha-popover-arrow"></div>'),mi=Dn('<div role="button" class="altcha-popover-close">×</div>'),yi=Dn('<!> <div><!> <!> <div class="altcha-popover-content"><!></div></div>',1);function bi(e,t){Y(t,!0);let n=Vr(t,"anchor"),r=Vr(t,"children"),i=Vr(t,"display",0,"standard"),o=Vr(t,"backdrop",0,!1),a=Vr(t,"onClickOutside"),l=Vr(t,"onClickOutsideDelay",0,600),s=Vr(t,"onClose"),c=Vr(t,"variant",0,"neutral"),u=Nr(t,["$$slots","$$events","$$legacy","$$host","anchor","children","display","backdrop","onClickOutside","onClickOutsideDelay","onClose","variant"]),f=ft(void 0),d=ft(void 0),v=ft(!1),p=ft(0);function g(){s()?.()}function m(){if(n()&&Zt(f)){const e=n().getBoundingClientRect(),t=document.documentElement.clientHeight-(e.top+e.height)<Zt(f).clientHeight;Zt(v)!==t&&ht(v,t)}}Ur(()=>{const e="bottomsheet"===i()||"overlay"===i();return e&&(Zt(d)&&document.body.append(Zt(d)),Zt(f)&&document.body.append(Zt(f))),m(),Bt().then(()=>{ht(p,Date.now(),!0)}),()=>{e&&(Zt(d)&&document.body.removeChild(Zt(d)),Zt(f)&&document.body.removeChild(Zt(f)))}});var y={get anchor(){return n()},set anchor(e){n(e),He()},get children(){return r()},set children(e){r(e),He()},get display(){return i()},set display(e="standard"){i(e),He()},get backdrop(){return o()},set backdrop(e=!1){o(e),He()},get onClickOutside(){return a()},set onClickOutside(e){a(e),He()},get onClickOutsideDelay(){return l()},set onClickOutsideDelay(e=600){l(e),He()},get onClose(){return s()},set onClose(e){s(e),He()},get variant(){return c()},set variant(e="neutral"){c(e),He()}},b=yi();An("click",he,function(e){const t=e.target;!Zt(f)?.contains(t)&&Zt(p)&&Zt(p)+l()<Date.now()&&a()?.()}),An("resize",he,function(){m()}),An("scroll",he,function(){m()});var w=Ce(b),_=e=>{var t=pi();Ir(t,e=>ht(d,e),()=>Zt(d)),Hn(e,t)};Kn(w,e=>{o()&&e(_)});var $=Ee(w,2);Cr($,()=>({...u,class:`altcha-popover ${(t.class||"")??""}`,"data-popover":!0,"data-variant":c(),"data-top":Zt(v),"data-display":i()}));var C=$e($),E=e=>{Hn(e,gi())};Kn(C,e=>{"standard"===i()&&e(E)});var k=Ee(C,2),x=e=>{var t=mi();In("click",t,g),Hn(e,t)};Kn(k,e=>{"standard"!==i()&&e(x)});var O=Ee(k,2);return function(e,t,...n){var r=new zn(e);an(()=>{const e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},S)}($e(O),()=>r()??h),ae(O),ae($),Ir($,e=>ht(f,e),()=>Zt(f)),Hn(e,b),W(y)}async function wi(e){let{challenge:t,concurrency:n=navigator.hardwareConcurrency,controller:r=new AbortController,createWorker:i,onOutOfMemory:o=e=>e>1?Math.floor(e/2):0,counterMode:a}=e;n=Math.min(16,Math.max(1,n));const l=[],s=()=>{for(const e of l)e.terminate()};for(let e=0;e<n;e++)l.push(await i(t.parameters.algorithm));let c=null;try{c=await Promise.race(l.map((e,i)=>(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:a,counterStart:i,counterStep:n,type:"work"})}))))}catch(a){if(!!a?.message?.includes("Out of memory")&&o){s();const a=o(n);if(a)return wi({...e,challenge:t,controller:r,concurrency:a,createWorker:i})}throw a}finally{s()}return r.signal.aborted?null:c||null}Pn(["click"]),Fr(bi,{anchor:{},children:{},display:{},backdrop:{},onClickOutside:{},onClickOutsideDelay:{},onClose:{},variant:{}},[],[],{mode:"open"});var _i=Dn('<div class="altcha-overlay-backdrop" data-backdrop=""></div>'),$i=Dn('<div class="altcha-overlay-content"><!></div>'),Ci=Dn('<div role="button" class="altcha-overlay-close">×</div> <!>',1),Ei=Dn('<div class="altcha-floating-arrow"></div>'),ki=Dn('<div class="altcha-error">Secure context (HTTPS) required.</div>'),Si=Dn('<div class="altcha-error"> </div>'),xi=Dn('<div class="altcha-error"> </div>'),Oi=Dn("<!> <!>",1),Ri=Dn('<!> <div class="altcha"><!> <div class="altcha-main"><div><div class="altcha-checkbox-wrap"><!> <label><!></label></div> <!></div> <!> <!> <input type="hidden"/></div> <!></div>',1);Pn(["click"]),"undefined"!=typeof window&&window.customElements&&customElements.define("altcha-widget",Fr(function(e,t){Y(t,!0);const[n,r]=function(){const e={};return[e,function(){Qt(()=>{for(var t in e)e[t].unsubscribe();a(e,Pr,{enumerable:!1,value:!0})})}]}(),i=["ar","fa","he","ur"],{isSecureContext:o}=globalThis,{store:l}=globalThis.$altcha.defaults,s=navigator.hardwareConcurrency||2,c=navigator.deviceMemory||0,u=c&&c<=4?Math.min(4,s):s,f=globalThis.$altcha.i18n.store,d=t.$$host,h=(e,t)=>{Bt().then(()=>{d?.dispatchEvent(new CustomEvent(e,{detail:t}))})};let v=ft(ue(new URL(location.origin))),p=ft(!1),g=ft(null),m=ft(null),y=ft(ue(oi.UNVERIFIED)),b=ft(void 0),w=ft(void 0),_=ft(null),$=ft(void 0),C=ft(null),E=ft(null),k=ft(null),x=ft(null),O=ft(ue([])),R=ft(ue({})),A=ft(!0);const I=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),...Zt(R)})),P=rt(()=>`altcha-checkbox-${t.id||Math.floor(1e12*Math.random()).toString(16)}`),L=rt(()=>function(e){switch(e){case"checkbox":return Wr;case"switch":return ri;default:return Kr}}(Zt(I).type)),T=rt(()=>Zt(y)===oi.VERIFYING),N=rt(()=>!Zt(I).hideFooter),V=rt(()=>!Zt(I).hideLogo&&"bar"!==Zt(I).display),M=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),[Zt(I).language,document.documentElement.lang,...navigator.languages])),D=rt(()=>i.includes(Zt(M).language)?"rtl":void 0),j=rt(()=>({...Zt(M).strings})),F=rt(()=>Zt(g)?.audio?.match(/^(https?:)?\//)?z(Zt(g).audio,Zt(v),{language:Zt(I).audioChallengeLanguage||Zt(M).language}).toString():Zt(g)?.audio),q=rt(()=>Zt(g)?.image?.match(/^(https?:)?\//)?z(Zt(g).image,Zt(v)):Zt(g)?.image);async function H(e,...t){let n;for(const r of Zt(O))n=await r[e].call(r,...t);return n}async function G(e){await new Promise(t=>setTimeout(t,e))}async function B(e=Zt(I).challenge){const t=await H("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(v,new URL(e,location.origin),!0);const n=await Zt(I).fetch(e,{credentials:Zt(I).credentials||void 0});ge(n);const r=n.headers.get("x-altcha-config");r&&function(e){try{const t=JSON.parse(e);t&&"object"==typeof t&&ye({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 i={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(i,{_originalSalt:{enumerable:!1,value:e.salt,writable:!1},_version:{enumerable:!1,value:1,writable:!1}}),i}(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 Z(){return document.getElementById(Zt(P))}function J(){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 K(e){!Zt(p)&&e.currentTarget.checked?(e.preventDefault(),e.currentTarget.checked=!1,Zt(y)!==oi.VERIFYING&&Oe()):e.currentTarget.checked||(e.preventDefault(),_e())}function X(e){Zt(y)===oi.VERIFYING?e.currentTarget.setCustomValidity(Zt(j).waitAlert):Zt(I).validationMessage&&e.currentTarget.setCustomValidity(Zt(I).validationMessage)}function Q(){Zt(m)&&Zt(m).abort(),pe(Zt(I).display),_e()}function ee(e){"onfocus"===Zt(I).auto&&Zt(y)===oi.UNVERIFIED&&Oe()}function le(){Zt(m)&&Zt(m).abort(),pe(Zt(I).display),_e()}function fe(e){ht(C,e.submitter,!0),"onsubmit"===Zt(I).auto&&Zt(y)===oi.UNVERIFIED&&(e.preventDefault(),e.stopPropagation(),Se(),Oe().then(e=>{e&&!Zt(g)&&Bt().then(()=>{de(Zt(C))})}))}function de(e){Zt(_)&&"requestSubmit"in Zt(_)?Zt(_).requestSubmit(e):Zt(_)?.reportValidity()&&(e?e.click():Zt(_).submit())}function pe(e){switch(e){case"bar":case"floating":case"overlay":be(),Zt(I).auto&&"off"!==Zt(I).auto||(Zt(R).auto="onsubmit");break;case"standard":Se()}}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 me(e){if(!Zt(x))return void ke(oi.ERROR,"Cannot verify code challenge without PoW payload.");ke(oi.VERIFYING);let t=null;if(Zt(I).verifyUrl)t=await async function(e,t){const n=await H("onRequestServerVerification",e,t);if(void 0!==n)return n;if(we("requesting server verification from",Zt(I).verifyUrl),!Zt(I).verifyUrl)throw new Error("Parameter verifyUrl must be set for server verification.");const r=await Zt(I).fetch(z(Zt(I).verifyUrl,Zt(v)),{body:JSON.stringify({code:t,fields:Zt(I).serverVerificationFields?[...Zt(_)?.querySelectorAll('input[type="text"]:not([data-no-spamfilter]), textarea:not([data-no-spamfilter])')||[]].reduce((e,t)=>{const n=t.name,r=t.value;return n&&r&&(e[n]=/\n/.test(r)?r.replace(new RegExp("(?<!\\r)\\n","g"),"\r\n"):r),e},{}):void 0,payload:e,timeZone:Zt(I).serverVerificationTimeZone?J():void 0}),credentials:Zt(I).credentials||void 0,headers:{"Content-Type":"application/json"},method:"POST"});ge(r);const i=await r.json();return i&&"object"==typeof i&&"payload"in i&&i.payload&&h("serververification",i),i}(Zt(x),e);else{if(!Zt(I).verifyFunction)return void ke(oi.ERROR,"Parameter verifyUrl is required for code challenge verification.");t=await Zt(I).verifyFunction(Zt(x),e)}t?.payload&&(ht(x,t.payload,!0),we("server payload",Zt(x))),!0===t?.verified?(we("verified"),ke(oi.VERIFIED),h("verified",{payload:Zt(x)}),"onsubmit"===Zt(I).auto&&Bt().then(()=>{de(Zt(C))})):ke(oi.ERROR,t?.reason||"Verification failed."),Zt(I).disableAutoFocus||Z()?.focus()}function ye(e){Object.assign(Zt(R),{...Object.fromEntries(Object.entries(e).filter(([e,t])=>void 0!==t))})}function be(){ht(A,!1)}function we(...e){(Zt(I).debug||e.some(e=>e instanceof Error))&&console[e[0]instanceof Error?"error":"log"]("ALTCHA",`[name=${Zt(I).name}]`,...e)}function _e(e=oi.UNVERIFIED,t=null){ht(p,!1),ht(E,t,!0),ht(x,null),Zt(k)&&(clearTimeout(Zt(k)),ht(k,null)),ke(e)}function ke(e,t=null){ht(y,e,!0),ht(E,t,!0),h("statechange",{payload:Zt(x),state:Zt(y)})}function Se(){ht(A,!0),Bt().then(()=>{xe()})}function xe(){if("floating"===Zt(I).display)return function(e=20){if(!Zt($))return;const t=Zt(I).floatingPlacement;if(!Zt(w)&&(ht(w,(Zt(I).floatingAnchor instanceof HTMLElement?Zt(I).floatingAnchor:Zt(I).floatingAnchor?document.querySelector(Zt(I).floatingAnchor):Zt(_)?.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])'))||Zt(_),!0),!Zt(w)))return void we("unable to find floating anchor element");const n=parseInt(Zt(I).floatingOffset,10)||12,r=Zt(w).getBoundingClientRect(),i=Zt($).getBoundingClientRect(),o=document.documentElement.clientHeight,a=document.documentElement.clientWidth,l=t&&"auto"!==t?"top"===t:r.bottom+i.height+n+e>o,s=Math.max(e,Math.min(a-e-i.width,r.left+r.width/2-i.width/2));if(Zt($).style.setProperty("--altcha-floating-left",`${s}px`),Zt($).style.setProperty("--altcha-floating-top",l?r.top-(i.height+n)+"px":`${r.bottom+n}px`),Zt($).setAttribute("data-floating-position",l?"top":"bottom"),Zt(b)){const e=Zt(b).getBoundingClientRect();Zt(b).style.left=r.left-s+r.width/2-e.width/2+"px"}}()}async function Oe(e={}){const{concurrency:t=Math.max(1,Zt(I).workers),controller:n=new AbortController,minDuration:r=Zt(I).minDuration}=e,i=performance.now();let a=null,l=null,s=!1;const c=await H("onVerify",e);if(void 0!==c)return c;ht(m,n,!0),_e(oi.VERIFYING);try{if(!o)throw new Error("Secure context (HTTPS) required.");if(Zt(I).mockError)throw new Error("Mock error.");if(Zt(I).test)return we("running test mode with null challenge"),await G(Math.max(0,r-(performance.now()-i))),ht(x,btoa(JSON.stringify({challenge:null,solution:null,test:!0})),!0),we("verified"),ke(oi.VERIFIED),h("vefified",{payload:Zt(x)}),{payload:Zt(x)};if(a=await B(),!a)throw new Error("Failed to fetch challenge.");we("challenge",a),a.parameters.expiresAt&&function(e){Zt(k)&&clearTimeout(Zt(k));const t=()=>{Zt(y)!==oi.UNVERIFIED?ke(oi.EXPIRED):_e(),h("expired")},n=1e3*e-Date.now();n>=1?ht(k,setTimeout(t,n),!0):t()}(a.parameters.expiresAt),s="_version"in a&&1===a._version;const e=globalThis.$altcha.algorithms.get(a.parameters.algorithm);if(!e)throw new Error(`Unsupported algorithm ${a.parameters.algorithm}.`);if(l=await wi({challenge:a,concurrency:t,controller:n,createWorker:e,counterMode:s?"string":"uint32",onOutOfMemory:e=>{if(we("out of memory error received"),h("outofmemory"),Zt(I).retryOnOutOfMemoryError&&e>1){const t=Math.floor(e/2);return we(`retrying with ${t} workers...`),t}}}),Zt(m)?.signal.aborted)return _e(),null;if(!l)throw new Error("Failed to find solution.");we("solution",l),await G(Math.max(0,r-(performance.now()-i))),ht(g,a.codeChallenge||Zt(I).codeChallenge||null,!0),ht(x,s?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}}(a,l))):btoa(JSON.stringify({challenge:{...a,codeChallenge:void 0},solution:l})),!0),Zt(g)?(we("requesting code verification"),ke(oi.CODE),h("codechallenge",{codeChallenge:Zt(g)})):Zt(I).verifyUrl?await me():(we("verified"),ke(oi.VERIFIED),h("vefified",{payload:Zt(x)}))}catch(e){return we("verification failed",e),ke(oi.ERROR,String(e)),null}finally{ht(m,null)}return{challenge:a,payload:Zt(x),solution:l}}en(()=>{ye({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{ye(JSON.parse(t.configuration))}catch{we("unable to parse the `configuration` attribute (JSON expected)")}}),en(()=>{pe(Zt(I).display)}),en(()=>{Zt(p)&&Zt(y)===oi.VERIFYING&&ht(p,!1)}),en(()=>{Zt(p)||Zt(y)!==oi.VERIFIED||ht(p,!0)}),en(()=>{if(!Zt(p)){const e=Z();e&&e.checked&&(e.checked=!1)}}),en(()=>{Zt(y)===oi.VERIFIED&&Z()?.setCustomValidity("")}),en(()=>{if("onload"===Zt(I).auto){const e=setTimeout(()=>{Oe()},1);return()=>{e&&clearTimeout(e)}}}),en(()=>{Zt(E)&&we("error:",Zt(E))}),Ur(()=>(we("mounted","3.0.0-beta.1"),d&&globalThis.$altcha.instances.add(d),ht(_,Zt($)?.closest("form"),!0),Zt(_)?.addEventListener("reset",le),Zt(_)?.addEventListener("submit",fe),Zt(_)?.addEventListener("focusin",ee),function(){ht(O,[...globalThis.$altcha.plugins].map(e=>new e(d)),!0),we("activating plugins",Zt(O).map(e=>e.constructor.name));for(const e of Zt(O))e.activate()}(),h("load"),o||we("secure context (HTTPS) required"),()=>{!function(){for(const e of Zt(O))e.destroy()}(),d&&globalThis.$altcha.instances.delete(d),Zt(k)&&clearTimeout(Zt(k)),Zt(_)?.removeEventListener("reset",le),Zt(_)?.removeEventListener("submit",fe),Zt(_)?.removeEventListener("focusin",ee)}));var Re={configure:ye,getConfiguration:function(){return{...Zt(I)}},getState:function(){return Zt(y)},hide:be,log:we,reset:_e,setState:ke,show:Se,updateUI:xe,verify:Oe},Ae=Ri();An("scroll",ve,function(){xe()}),An("click",ve,function(e){const t=e.target;"floating"!==Zt(I).display||!t||d?.contains(t)||t.hasAttribute("data-backdrop")||t.closest("[data-popover]")||Zt(y)===oi.VERIFIED||Zt(I).floatingPersist||be()}),An("pageshow",he,function(){_e()}),An("resize",he,function(){xe()});var Ie=Ce(Ae),Pe=e=>{Hn(e,_i())};Kn(Ie,e=>{"overlay"===Zt(I).display&&Zt(A)&&e(Pe)});var Le=Ee(Ie,2),Te=$e(Le),Ne=e=>{var t=Ci(),n=Ce(t),r=Ee(n,2),i=e=>{var t=$i();Qn($e(t),()=>document.querySelector(Zt(I).overlayContent)?.innerHTML),ae(t),Hn(e,t)};Kn(r,e=>{Zt(I).overlayContent&&e(i)}),In("click",n,Q),Hn(e,t)};Kn(Te,e=>{"overlay"===Zt(I).display&&Zt(A)&&e(Ne)});var Ve=Ee(Te,2),Me=$e(Ve),De=$e(Me),je=$e(De);{let e=rt(()=>"standard"===Zt(I).display&&"onsubmit"!==Zt(I).auto||Zt(y)===oi.VERIFYING);!function(e,t,n){var r;ne&&(r=te,oe());var i=new zn(e);an(()=>{var e=t()??null;if(ne&&ce(r)===U!=(null!==e)){var o=se();return ie(o),i.anchor=o,re(!1),i.ensure(e,e&&(t=>n(t,e))),void re(!0)}i.ensure(e,e&&(t=>n(t,e)))},S)}(je,()=>Zt(L),(t,n)=>{n(t,{get id(){return Zt(P)},name:"",get required(){return Zt(e)},get loading(){return Zt(T)},get checked(){return Zt(p)},onchange:K,oninvalid:X})})}var Fe=Ee(je,2),Ue=$e(Fe),qe=e=>{var t=Un();on(()=>Gn(t,Zt(j).verificationRequired)),Hn(e,t)},He=e=>{var t=Un();on(()=>Gn(t,Zt(j).verifying)),Hn(e,t)},Ge=e=>{var t=Un();on(()=>Gn(t,Zt(j).verified)),Hn(e,t)},Be=e=>{var t=Un();on(()=>Gn(t,Zt(j).label)),Hn(e,t)};Kn(Ue,e=>{Zt(y)===oi.CODE&&Zt(g)?e(qe):Zt(y)===oi.VERIFYING?e(He,1):Zt(y)===oi.VERIFIED?e(Ge,2):e(Be,!1)}),ae(Fe),ae(De);var Ze=Ee(De,2),Je=e=>{Qr(e,{get strings(){return Zt(j)}})};Kn(Ze,e=>{Zt(V)&&e(Je)}),ae(Me);var Ye=Ee(Me,2),We=e=>{{let t=rt(()=>"bar"===Zt(I).display&&Zt(V));ti(e,{get logo(){return Zt(t)},get strings(){return Zt(j)}})}};Kn(Ye,e=>{Zt(N)&&e(We)});var ze=Ee(Ye,2),Ke=e=>{var t=Ei();Ir(t,e=>ht(b,e),()=>Zt(b)),Hn(e,t)};Kn(ze,e=>{"floating"===Zt(I).display&&e(Ke)});var Xe=Ee(ze,2);wr(Xe),ae(Ve);var Qe=Ee(Ve,2),et=e=>{bi(e,{get anchor(){return Zt($)},onClickOutside:()=>{o&&_e()},role:"alert",variant:"error",get dir(){return Zt(D)},children:(e,t)=>{var n=qn(),r=Ce(n),i=e=>{Hn(e,ki())},a=e=>{var t=Si(),n=$e(t,!0);ae(t),on(()=>Gn(n,Zt(j).expired)),Hn(e,t)},l=e=>{var t=xi(),n=$e(t,!0);ae(t),on(()=>{$r(t,"title",Zt(E)),Gn(n,Zt(j).error)}),Hn(e,t)};Kn(r,e=>{Zt(E)||o?Zt(E)||Zt(y)!==oi.EXPIRED?e(l,!1):e(a,1):e(i)}),Hn(e,n)},$$slots:{default:!0}})},tt=e=>{var t=qn();!function(e,t,n){ne&&oe();var r=new zn(e);an(()=>{var e=t();e!=e&&(e=Xn),r.ensure(e,n)})}(Ce(t),()=>Zt(g),e=>{{let t=rt(()=>"standard"!==Zt(I).codeChallengeDisplay);bi(e,{get anchor(){return Zt($)},get backdrop(){return Zt(t)},get display(){return Zt(I).codeChallengeDisplay},onClose:()=>{_e()},role:"dialog",get"aria-label"(){return Zt(j).verificationRequired},get dir(){return Zt(D)},children:(e,t)=>{var n=Oi(),r=Ce(n);vi(r,{get audioUrl(){return Zt(F)},get imageUrl(){return Zt(q)},onCancel:()=>_e(),onReload:()=>Oe(),onSubmit:e=>me(e),get codeChallenge(){return Zt(g)},get config(){return Zt(I)},get strings(){return Zt(j)}});var i=Ee(r,2),o=e=>{ti(e,{get logo(){return Zt(V)},get strings(){return Zt(j)}})};Kn(i,e=>{Zt(N)&&"standard"!==Zt(I).codeChallengeDisplay&&e(o)}),Hn(e,n)},$$slots:{default:!0}})}}),Hn(e,t)};Kn(Qe,e=>{Zt(E)||Zt(y)===oi.EXPIRED||!o?e(et):Zt(g)&&Zt(y)===oi.CODE&&e(tt,1)}),ae(Le),Ir(Le,e=>ht($,e),()=>Zt($)),on(e=>{var t,n,r;$r(Le,"data-state",Zt(y)),$r(Le,"data-display",Zt(I).display||void 0),$r(Le,"data-placement",e),$r(Le,"data-visible",Zt(A)||void 0),$r(Le,"dir",Zt(D)),$r(Fe,"for",Zt(P)),$r(Xe,"name",Zt(I).name),t=Xe,n=Zt(x),(r=Er(t)).value!==(r.value=n??void 0)&&(t.value!==n||0===n&&t.nodeName===br)&&(t.value=n??""),Le.dir=Le.dir},[()=>function(e){switch(e){case"bar":return Zt(I).barPlacement||"bottom";case"floating":return Zt(I).floatingPlacement||"auto";default:return}}(Zt(I).display)]),Hn(e,Ae);var nt=W(Re);return r(),nt},{auto:{type:"String"},challenge:{type:"String"},configuration:{type:"String"},display:{type:"String"},language:{type:"String"},name:{type:"String"},theme:{type:"String"},type:{type:"String"},workers:{type:"Number"}},[],["configure","getConfiguration","getState","hide","log","reset","setState","show","updateUI","verify"]));
|