@kanorio/elements 0.0.0-stage → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (274) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +57 -2
  3. package/dist/MediaPlayer-7IBSXL7Q.js +2 -0
  4. package/dist/MediaPlayer-HTXF4T2V.js +2 -0
  5. package/dist/PDFViewerFull-FBLYNUDX.js +3 -0
  6. package/dist/PDFViewerFull-KMUVT2BL.js +13 -0
  7. package/dist/altcha-J22D7W3J.js +4 -0
  8. package/dist/altcha-NPBMCOEY.js +4 -0
  9. package/dist/ar-3VA7IUCO.js +2 -0
  10. package/dist/ar-AUQCHHZG.js +2 -0
  11. package/dist/ar-DCOOI5KT.js +2 -0
  12. package/dist/ar-HRZRFWUW.js +2 -0
  13. package/dist/bg-3IK4HFKG.js +2 -0
  14. package/dist/bg-IRGRVWOG.js +2 -0
  15. package/dist/bg-QWC2KG3G.js +2 -0
  16. package/dist/bg-TNDZDXHZ.js +2 -0
  17. package/dist/bn-BHRS66N3.js +2 -0
  18. package/dist/bn-DM5WNGJ5.js +2 -0
  19. package/dist/bn-L44L7SBD.js +2 -0
  20. package/dist/bn-RR3LC6EH.js +2 -0
  21. package/dist/chunk-2UVUNYL6.js +2 -0
  22. package/dist/chunk-37VDVTUT.js +2 -0
  23. package/dist/chunk-3OGF7I4H.js +2 -0
  24. package/dist/chunk-3ZTUZPSD.js +2 -0
  25. package/dist/chunk-5AWUTOK7.js +2 -0
  26. package/dist/chunk-5U2SZE3H.js +2 -0
  27. package/dist/chunk-6LGTFWQS.js +15 -0
  28. package/dist/chunk-A77JMBLF.js +2 -0
  29. package/dist/chunk-BZJ5YCGP.js +2 -0
  30. package/dist/chunk-CDG7S4P5.js +2 -0
  31. package/dist/chunk-CP347QFQ.js +2 -0
  32. package/dist/chunk-DTDUK36B.js +8 -0
  33. package/dist/chunk-DXTWCLOM.js +4 -0
  34. package/dist/chunk-EY4JAVE3.js +2 -0
  35. package/dist/chunk-F5NEDREL.js +2 -0
  36. package/dist/chunk-HBNSRIEP.js +2 -0
  37. package/dist/chunk-JZXJO62T.js +15 -0
  38. package/dist/chunk-LLHBSWTL.js +2 -0
  39. package/dist/chunk-M5GS2ENM.js +2 -0
  40. package/dist/chunk-MG2FK3GU.js +5 -0
  41. package/dist/chunk-N7SSXSF5.js +2 -0
  42. package/dist/chunk-NOCGHD2O.js +2 -0
  43. package/dist/chunk-S4ZA2INU.js +415 -0
  44. package/dist/chunk-TLBIYET7.js +404 -0
  45. package/dist/chunk-TLRFFLH4.js +94 -0
  46. package/dist/chunk-U3U5KVR6.js +2 -0
  47. package/dist/chunk-UBMXRFSK.js +4 -0
  48. package/dist/chunk-V4OWPVBD.js +2 -0
  49. package/dist/chunk-ZDU7A7WZ.js +2 -0
  50. package/dist/chunk-ZSRHO7CJ.js +2 -0
  51. package/dist/cs-3IX2ZQKJ.js +2 -0
  52. package/dist/cs-MFQPSNCV.js +2 -0
  53. package/dist/cs-NZW6FBFY.js +2 -0
  54. package/dist/cs-OMRFBZVP.js +2 -0
  55. package/dist/da-7SYMTSVT.js +2 -0
  56. package/dist/da-AFMLFM32.js +2 -0
  57. package/dist/da-MEA64IPM.js +2 -0
  58. package/dist/da-PZ32KKTE.js +2 -0
  59. package/dist/de-5JPEK4HF.js +2 -0
  60. package/dist/de-7GBTXFMH.js +2 -0
  61. package/dist/de-E4Z2FEBZ.js +2 -0
  62. package/dist/de-MVL4XGYR.js +2 -0
  63. package/dist/deliverables-FBCRGMTB.js +93 -0
  64. package/dist/deliverables-FMKPDHJH.js +92 -0
  65. package/dist/el-BCFO2NS3.js +2 -0
  66. package/dist/el-G2AWU43W.js +2 -0
  67. package/dist/el-O7W5IGS6.js +2 -0
  68. package/dist/el-SMBF7FG4.js +2 -0
  69. package/dist/elements.css +2 -0
  70. package/dist/en-AIAENVLI.js +2 -0
  71. package/dist/en-AU-LB5UVGIW.js +2 -0
  72. package/dist/en-AU-Q2O2HPJ2.js +2 -0
  73. package/dist/en-CA-AZDOY7PW.js +2 -0
  74. package/dist/en-CA-PVKXM3WS.js +2 -0
  75. package/dist/en-CMYO4GCN.js +2 -0
  76. package/dist/en-GB-2N4WB6SL.js +2 -0
  77. package/dist/en-GB-Y5QRPC7S.js +2 -0
  78. package/dist/en-LHV2B2XG.js +2 -0
  79. package/dist/en-SAXQF5YW.js +2 -0
  80. package/dist/en-US-74L4OI3J.js +2 -0
  81. package/dist/en-US-EKS52JBW.js +2 -0
  82. package/dist/errors-OILTIMI5.js +2 -0
  83. package/dist/errors-S4JOS2FB.js +2 -0
  84. package/dist/es-419-CN2GZEOV.js +2 -0
  85. package/dist/es-419-KBS42HIO.js +2 -0
  86. package/dist/es-419-Q5IH6W5F.js +2 -0
  87. package/dist/es-419-VSZWGONE.js +2 -0
  88. package/dist/es-ES-7L55KPLO.js +2 -0
  89. package/dist/es-ES-ETSYFLPQ.js +2 -0
  90. package/dist/es-es-GNKRK4H2.js +2 -0
  91. package/dist/es-es-ZHEJP4O2.js +2 -0
  92. package/dist/fa-FBR4MORA.js +2 -0
  93. package/dist/fa-OYP2Q5EV.js +2 -0
  94. package/dist/fa-QWGXRQ4X.js +2 -0
  95. package/dist/fa-WRJCKGS3.js +2 -0
  96. package/dist/fi-44ST6B6Q.js +2 -0
  97. package/dist/fi-BATN376F.js +2 -0
  98. package/dist/fi-J6NJBPNK.js +2 -0
  99. package/dist/fi-PSUMYQZD.js +2 -0
  100. package/dist/fr-CA-KXRNFZBP.js +2 -0
  101. package/dist/fr-CA-PWWAPLBH.js +2 -0
  102. package/dist/fr-FR-FMLQPLOD.js +2 -0
  103. package/dist/fr-FR-MQAFE7IX.js +2 -0
  104. package/dist/fr-ca-2B3TKJL6.js +2 -0
  105. package/dist/fr-ca-A4GWIOE7.js +2 -0
  106. package/dist/fr-fr-FEUFFV6I.js +2 -0
  107. package/dist/fr-fr-TONIMGOJ.js +2 -0
  108. package/dist/gu-BREQK3GJ.js +2 -0
  109. package/dist/gu-RNCZTEOA.js +2 -0
  110. package/dist/he-4AQSZCU4.js +2 -0
  111. package/dist/he-GNC45OCB.js +2 -0
  112. package/dist/he-RZE7SAH3.js +2 -0
  113. package/dist/he-VXZCGAHY.js +2 -0
  114. package/dist/hi-DKG5TPYX.js +2 -0
  115. package/dist/hi-F7Y62LAZ.js +2 -0
  116. package/dist/hi-G5IRZBZ5.js +2 -0
  117. package/dist/hi-LFKLYYDS.js +2 -0
  118. package/dist/hls-7WKCHYU6.js +45 -0
  119. package/dist/hls-KJIMXAWZ.js +30 -0
  120. package/dist/hu-3Y5YEIFL.js +2 -0
  121. package/dist/hu-BPCAJCJ3.js +2 -0
  122. package/dist/hu-L6W5O2G5.js +2 -0
  123. package/dist/hu-YRQRLSFJ.js +2 -0
  124. package/dist/id-64FYGYA6.js +2 -0
  125. package/dist/id-7DWHYYFC.js +2 -0
  126. package/dist/id-DCV57AQB.js +2 -0
  127. package/dist/id-E4ZYT3YK.js +2 -0
  128. package/dist/index.d.ts +3045 -0
  129. package/dist/index.js +2 -0
  130. package/dist/it-7RASZ4SK.js +2 -0
  131. package/dist/it-BGPYU5QL.js +2 -0
  132. package/dist/it-JICU5WVL.js +2 -0
  133. package/dist/it-YD6A6Q35.js +2 -0
  134. package/dist/ja-4V7QJLTM.js +2 -0
  135. package/dist/ja-52MBIM3T.js +2 -0
  136. package/dist/ja-EGKR5NHK.js +2 -0
  137. package/dist/ja-MA2A5SFZ.js +2 -0
  138. package/dist/kanorio-elements.js +98 -0
  139. package/dist/km-HPCMYWAG.js +2 -0
  140. package/dist/km-PHVYTPLT.js +2 -0
  141. package/dist/kn-5DYCOYAN.js +2 -0
  142. package/dist/kn-QAWBGLHG.js +2 -0
  143. package/dist/ko-55JV4VQK.js +2 -0
  144. package/dist/ko-7QD664NG.js +2 -0
  145. package/dist/ko-FZIJZG6K.js +2 -0
  146. package/dist/ko-G4I5K2UY.js +2 -0
  147. package/dist/lo-JNUKFIQV.js +2 -0
  148. package/dist/lo-YRHYLRZC.js +2 -0
  149. package/dist/ml-3LXSDTNF.js +2 -0
  150. package/dist/ml-QO64O4H6.js +2 -0
  151. package/dist/mr-5WLN37JQ.js +2 -0
  152. package/dist/mr-HGKBSCPM.js +2 -0
  153. package/dist/mr-PLM72664.js +2 -0
  154. package/dist/mr-Q2RUE6T6.js +2 -0
  155. package/dist/ms-N544Y63H.js +2 -0
  156. package/dist/ms-PIAATVMD.js +2 -0
  157. package/dist/my-3J665CWK.js +2 -0
  158. package/dist/my-6IKSM3XW.js +2 -0
  159. package/dist/nb-345ACUTX.js +2 -0
  160. package/dist/nb-F33WYJ6T.js +2 -0
  161. package/dist/nb-VXSPTUAK.js +2 -0
  162. package/dist/nb-ZOWEL6VQ.js +2 -0
  163. package/dist/ne-AAIECB2W.js +2 -0
  164. package/dist/ne-ASFNHMO3.js +2 -0
  165. package/dist/nl-4KAIKVKC.js +2 -0
  166. package/dist/nl-BE-SHZLAL5T.js +2 -0
  167. package/dist/nl-BE-WK4C6XRZ.js +2 -0
  168. package/dist/nl-NL-2YLHGJZL.js +2 -0
  169. package/dist/nl-NL-PHRY43UB.js +2 -0
  170. package/dist/nl-VXJ7CRDZ.js +2 -0
  171. package/dist/nn-I5A2LCBH.js +2 -0
  172. package/dist/nn-S3SNETRB.js +2 -0
  173. package/dist/pa-P2GAYL5A.js +2 -0
  174. package/dist/pa-VX5TUNDP.js +2 -0
  175. package/dist/pl-4Y4BWTLT.js +2 -0
  176. package/dist/pl-BRJ5H72A.js +2 -0
  177. package/dist/pl-OV5IAHMC.js +2 -0
  178. package/dist/pl-SGPLZAER.js +2 -0
  179. package/dist/prod-3BEPDL7S.js +2 -0
  180. package/dist/prod-4MTOPW55.js +2 -0
  181. package/dist/pt-BR-CW3MRSRP.js +2 -0
  182. package/dist/pt-BR-WKEKB5CG.js +2 -0
  183. package/dist/pt-PT-AJZQS2C6.js +2 -0
  184. package/dist/pt-PT-ZTPCI2K6.js +2 -0
  185. package/dist/pt-br-EXNYC3L5.js +2 -0
  186. package/dist/pt-br-IOF65TN2.js +2 -0
  187. package/dist/pt-pt-7BYW57KC.js +2 -0
  188. package/dist/pt-pt-DGEIQHKN.js +2 -0
  189. package/dist/ro-ANISGUFX.js +2 -0
  190. package/dist/ro-GDWJ3F3A.js +2 -0
  191. package/dist/ro-HRV64STT.js +2 -0
  192. package/dist/ro-SLAZ33BA.js +2 -0
  193. package/dist/ru-2GEOOKZX.js +2 -0
  194. package/dist/ru-7U566HR4.js +2 -0
  195. package/dist/ru-EJILX4Y7.js +2 -0
  196. package/dist/ru-PKSZKOLH.js +2 -0
  197. package/dist/si-5F7RWQIE.js +2 -0
  198. package/dist/si-5VUM5FGR.js +2 -0
  199. package/dist/srt-parser-7ZH4HLCL.js +3 -0
  200. package/dist/srt-parser-YWFHXAO4.js +2 -0
  201. package/dist/ssa-parser-2BHZLTC3.js +5 -0
  202. package/dist/ssa-parser-R6G7ZJLU.js +2 -0
  203. package/dist/sv-GFAENRIP.js +2 -0
  204. package/dist/sv-HZVCM7LG.js +2 -0
  205. package/dist/sv-UJ5LCXFA.js +2 -0
  206. package/dist/sv-UOGO55PW.js +2 -0
  207. package/dist/sw-5XU65KFC.js +2 -0
  208. package/dist/sw-EVYAYVM2.js +2 -0
  209. package/dist/sw-HPTUVWO6.js +2 -0
  210. package/dist/sw-KVAYRFED.js +2 -0
  211. package/dist/ta-L62HPFNH.js +2 -0
  212. package/dist/ta-MNWTH3F5.js +2 -0
  213. package/dist/ta-R73RBA23.js +2 -0
  214. package/dist/ta-TOIAFCN5.js +2 -0
  215. package/dist/te-5SBVH4OF.js +2 -0
  216. package/dist/te-GVW56XDM.js +2 -0
  217. package/dist/te-PWIXXRJP.js +2 -0
  218. package/dist/te-WKXYDHSM.js +2 -0
  219. package/dist/th-2GWK7DBB.js +2 -0
  220. package/dist/th-3VH5JHWP.js +2 -0
  221. package/dist/th-F7RKJACJ.js +2 -0
  222. package/dist/th-G6SY3D2Q.js +2 -0
  223. package/dist/tl-OCD2O6J3.js +2 -0
  224. package/dist/tl-PZNXANIM.js +2 -0
  225. package/dist/tr-2BDM6H5Q.js +2 -0
  226. package/dist/tr-RJO57G2Z.js +2 -0
  227. package/dist/tr-TCPMEXLQ.js +2 -0
  228. package/dist/tr-VFMHVRQX.js +2 -0
  229. package/dist/uk-6S7TMK7C.js +2 -0
  230. package/dist/uk-JZQ5M5JE.js +2 -0
  231. package/dist/uk-OQRACKKD.js +2 -0
  232. package/dist/uk-PGHXMWJR.js +2 -0
  233. package/dist/ur-4CR64XUI.js +2 -0
  234. package/dist/ur-CV7QI6IC.js +2 -0
  235. package/dist/ur-J5HV4NTW.js +2 -0
  236. package/dist/ur-PJPC3XAH.js +2 -0
  237. package/dist/vi-MQSOSIUY.js +2 -0
  238. package/dist/vi-THIT43PD.js +2 -0
  239. package/dist/vi-U7OT2LM7.js +2 -0
  240. package/dist/vi-XMAGDR5G.js +2 -0
  241. package/dist/vidstack-B9fTkxQO-EQ52NVZW.js +2 -0
  242. package/dist/vidstack-B9fTkxQO-GEVQP7HO.js +2 -0
  243. package/dist/vidstack-BmcqUMKx-JZPVW77Y.js +2 -0
  244. package/dist/vidstack-BmcqUMKx-XYI2YLUH.js +2 -0
  245. package/dist/vidstack-C0fPJIzs-MDJPXUYY.js +2 -0
  246. package/dist/vidstack-C0fPJIzs-S4BCJHHV.js +2 -0
  247. package/dist/vidstack-CHcsWfRV-UMLDE4ND.js +2 -0
  248. package/dist/vidstack-CHcsWfRV-VTC6J2M3.js +2 -0
  249. package/dist/vidstack-CvezEmSQ-GSHFFL5T.js +2 -0
  250. package/dist/vidstack-CvezEmSQ-X4CSXZAN.js +2 -0
  251. package/dist/vidstack-D2vrrUMs-LK4VWKXR.js +2 -0
  252. package/dist/vidstack-D2vrrUMs-MZTRJLT6.js +2 -0
  253. package/dist/vidstack-Di0HObvT-G6SYBHQL.js +2 -0
  254. package/dist/vidstack-Di0HObvT-P5UCUZVE.js +2 -0
  255. package/dist/vidstack-DiaLSJYx-4FNR72DU.js +2 -0
  256. package/dist/vidstack-DiaLSJYx-SXHLLWKT.js +2 -0
  257. package/dist/vidstack-Dy74GavT-BN73KZQD.js +2 -0
  258. package/dist/vidstack-Dy74GavT-R7RVPT3S.js +2 -0
  259. package/dist/vidstack-GkTzay8D-IY3RQGM5.js +2 -0
  260. package/dist/vidstack-GkTzay8D-PBE5ZIYA.js +2 -0
  261. package/dist/web-components.d.ts +12 -0
  262. package/dist/web-components.js +2 -0
  263. package/dist/worker.js +1 -0
  264. package/dist/zh-CN-CCYHPSVA.js +2 -0
  265. package/dist/zh-CN-RNW2BEY7.js +2 -0
  266. package/dist/zh-HK-HE2T63O2.js +2 -0
  267. package/dist/zh-HK-RKREDSAO.js +2 -0
  268. package/dist/zh-Hant-GBQLGJDF.js +2 -0
  269. package/dist/zh-Hant-T6KHSA5B.js +2 -0
  270. package/dist/zh-cn-NBHEPFJJ.js +2 -0
  271. package/dist/zh-cn-XPV5D6U6.js +2 -0
  272. package/dist/zh-tw-EGRDKAEG.js +2 -0
  273. package/dist/zh-tw-HNBFCMMO.js +2 -0
  274. package/package.json +83 -3
@@ -0,0 +1,4 @@
1
+ import"./chunk-CDG7S4P5.js";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");var ki=1,Ni=4,Li=8,Si=16,Di=1,Pi=2,jn="[",Gr="[!",Wr="]",yt={},ie=Symbol(),Oi="http://www.w3.org/1999/xhtml",Vi=!1;function Yr(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Xr=Array.isArray,Ti=Array.prototype.indexOf,Mi=Array.from,on=Object.keys,Tt=Object.defineProperty,tt=Object.getOwnPropertyDescriptor,Fi=Object.getOwnPropertyDescriptors,ji=Object.prototype,qi=Array.prototype,Jr=Object.getPrototypeOf,Dr=Object.isExtensible,bt=()=>{};function zr(e){for(var t=0;t<e.length;t++)e[t]()}function Hi(e,t,n=!1){return e===void 0?n?t():t:e}var me=2,Kr=4,dn=8,qn=16,Se=32,ot=64,ln=128,fe=256,an=512,le=1024,Ie=2048,it=4096,wt=8192,vn=16384,Ui=32768,Hn=65536,Bi=1<<19,Qr=1<<20,Ln=1<<21,Ot=Symbol("$state"),eo=Symbol("legacy props"),Zi=Symbol("");function Gi(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Wi(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Yi(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Xi(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ji(){throw new Error("https://svelte.dev/e/hydration_failed")}function zi(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ki(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Qi(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function el(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function hn(e){console.warn("https://svelte.dev/e/hydration_mismatch")}var V=!1;function mt(e){V=e}var O;function qe(e){if(e===null)throw hn(),yt;return O=e}function $t(){return qe(Be(O))}function W(e){if(V){if(Be(O)!==null)throw hn(),yt;O=e}}function tl(){for(var e=0,t=O;;){if(t.nodeType===8){var n=t.data;if(n===Wr){if(e===0)return t;e-=1}else(n===jn||n===Gr)&&(e+=1)}var o=Be(t);t.remove(),t=o}}var nl=!1;function Fe(e){if(typeof e!="object"||e===null||Ot in e)return e;let t=Jr(e);if(t!==ji&&t!==qi)return e;var n=new Map,o=Xr(e),a=D(0),l=N,u=c=>{var f=N;Re(l);var d=c();return Re(f),d};return o&&n.set("length",D(e.length)),new Proxy(e,{defineProperty(c,f,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&Ki();var m=n.get(f);return m===void 0?(m=u(()=>D(d.value)),n.set(f,m)):b(m,u(()=>Fe(d.value))),!0},deleteProperty(c,f){var d=n.get(f);if(d===void 0)f in c&&(n.set(f,u(()=>D(ie))),Rn(a));else{if(o&&typeof f=="string"){var m=n.get("length"),h=Number(f);Number.isInteger(h)&&h<m.v&&b(m,h)}b(d,ie),Rn(a)}return!0},get(c,f,d){if(f===Ot)return e;var m=n.get(f),h=f in c;if(m===void 0&&(!h||tt(c,f)?.writable)&&(m=u(()=>D(Fe(h?c[f]:ie))),n.set(f,m)),m!==void 0){var y=i(m);return y===ie?void 0:y}return Reflect.get(c,f,d)},getOwnPropertyDescriptor(c,f){var d=Reflect.getOwnPropertyDescriptor(c,f);if(d&&"value"in d){var m=n.get(f);m&&(d.value=i(m))}else if(d===void 0){var h=n.get(f),y=h?.v;if(h!==void 0&&y!==ie)return{enumerable:!0,configurable:!0,value:y,writable:!0}}return d},has(c,f){if(f===Ot)return!0;var d=n.get(f),m=d!==void 0&&d.v!==ie||Reflect.has(c,f);if(d!==void 0||L!==null&&(!m||tt(c,f)?.writable)){d===void 0&&(d=u(()=>D(m?Fe(c[f]):ie)),n.set(f,d));var h=i(d);if(h===ie)return!1}return m},set(c,f,d,m){var h=n.get(f),y=f in c;if(o&&f==="length")for(var $=d;$<h.v;$+=1){var T=n.get($+"");T!==void 0?b(T,ie):$ in c&&(T=u(()=>D(ie)),n.set($+"",T))}h===void 0?(!y||tt(c,f)?.writable)&&(h=u(()=>D(void 0)),b(h,u(()=>Fe(d))),n.set(f,h)):(y=h.v!==ie,b(h,u(()=>Fe(d))));var M=Reflect.getOwnPropertyDescriptor(c,f);if(M?.set&&M.set.call(m,d),!y){if(o&&typeof f=="string"){var q=n.get("length"),A=Number(f);Number.isInteger(A)&&A>=q.v&&b(q,A+1)}Rn(a)}return!0},ownKeys(c){i(a);var f=Reflect.ownKeys(c).filter(h=>{var y=n.get(h);return y===void 0||y.v!==ie});for(var[d,m]of n)m.v!==ie&&!(d in c)&&f.push(d);return f},setPrototypeOf(){Qi()}})}function Rn(e,t=1){b(e,e.v+t)}var Pr,to,no,ro;function Sn(){if(Pr===void 0){Pr=window,to=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;no=tt(t,"firstChild").get,ro=tt(t,"nextSibling").get,Dr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Dr(n)&&(n.__t=void 0)}}function gn(e=""){return document.createTextNode(e)}function he(e){return no.call(e)}function Be(e){return ro.call(e)}function Y(e,t){if(!V)return he(e);var n=he(O);return n===null&&(n=O.appendChild(gn())),qe(n),n}function St(e,t){if(!V){var n=he(e);return n instanceof Comment&&n.data===""?Be(n):n}return O}function X(e,t=1,n=!1){let o=V?O:e;for(var a;t--;)a=o,o=Be(o);if(!V)return o;var l=o?.nodeType;if(n&&l!==3){var u=gn();return o===null?a?.after(u):o.before(u),qe(u),u}return qe(o),o}function rl(e){e.textContent=""}function oo(e){return e===this.v}function io(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Un(e){return!io(e,this.v)}function pn(e){var t=me|Ie,n=N!==null&&(N.f&me)!==0?N:null;return L===null||n!==null&&(n.f&fe)!==0?t|=fe:L.f|=Qr,{ctx:re,deps:null,effects:null,equals:oo,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:n??L}}function Dt(e){let t=pn(e);return bo(t),t}function ol(e){let t=pn(e);return t.equals=Un,t}function lo(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)He(t[n])}}function il(e){for(var t=e.parent;t!==null;){if((t.f&me)===0)return t;t=t.parent}return null}function ao(e){var t,n=L;Ue(il(e));try{lo(e),t=Co(e)}finally{Ue(n)}return t}function so(e){var t=ao(e),n=(je||(e.f&fe)!==0)&&e.deps!==null?it:le;ye(e,n),e.equals(t)||(e.v=t,e.wv=$o())}function ll(e){L===null&&N===null&&Yi(),N!==null&&(N.f&fe)!==0&&L===null&&Wi(),qt&&Gi()}function al(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function lt(e,t,n,o=!0){var a=L,l={ctx:re,deps:null,nodes_start:null,nodes_end:null,f:e|Ie,first:null,fn:t,last:null,next:null,parent:a,prev:null,teardown:null,transitions:null,wv:0};if(n)try{Yn(l),l.f|=Ui}catch(f){throw He(l),f}else t!==null&&yn(l);var u=n&&l.deps===null&&l.first===null&&l.nodes_start===null&&l.teardown===null&&(l.f&(Qr|ln))===0;if(!u&&o&&(a!==null&&al(l,a),N!==null&&(N.f&me)!==0)){var c=N;(c.effects??=[]).push(l)}return l}function Bn(e){let t=lt(dn,null,!1);return ye(t,le),t.teardown=e,t}function Dn(e){ll();var t=L!==null&&(L.f&Se)!==0&&re!==null&&!re.m;if(t){var n=re;(n.e??=[]).push({fn:e,effect:L,reaction:N})}else{var o=Zn(e);return o}}function sl(e){let t=lt(ot,e,!0);return()=>{He(t)}}function ul(e){let t=lt(ot,e,!0);return(n={})=>new Promise(o=>{n.outro?On(t,()=>{He(t),o(void 0)}):(He(t),o(void 0))})}function Zn(e){return lt(Kr,e,!1)}function Gn(e){return lt(dn,e,!0)}function xe(e,t=[],n=pn){let o=t.map(n);return uo(()=>e(...o.map(i)))}function uo(e,t=0){return lt(dn|qn|t,e,!0)}function Pn(e,t=!0){return lt(dn|Se,e,!0,t)}function co(e){var t=e.teardown;if(t!==null){let n=qt,o=N;Vr(!0),Re(null);try{t.call(null)}finally{Vr(n),Re(o)}}}function fo(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){var o=n.next;(n.f&ot)!==0?n.parent=null:He(n,t),n=o}}function cl(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&Se)===0&&He(t),t=n}}function He(e,t=!0){var n=!1;(t||(e.f&Bi)!==0)&&e.nodes_start!==null&&(vo(e.nodes_start,e.nodes_end),n=!0),fo(e,t&&!n),fn(e,0),ye(e,vn);var o=e.transitions;if(o!==null)for(let l of o)l.stop();co(e);var a=e.parent;a!==null&&a.first!==null&&ho(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function vo(e,t){for(;e!==null;){var n=e===t?null:Be(e);e.remove(),e=n}}function ho(e){var t=e.parent,n=e.prev,o=e.next;n!==null&&(n.next=o),o!==null&&(o.prev=n),t!==null&&(t.first===e&&(t.first=o),t.last===e&&(t.last=n))}function On(e,t){var n=[];go(e,n,!0),fl(n,()=>{He(e),t&&t()})}function fl(e,t){var n=e.length;if(n>0){var o=()=>--n||t();for(var a of e)a.out(o)}else t()}function go(e,t,n){if((e.f&wt)===0){if(e.f^=wt,e.transitions!==null)for(let u of e.transitions)(u.is_global||n)&&t.push(u);for(var o=e.first;o!==null;){var a=o.next,l=(o.f&Hn)!==0||(o.f&Se)!==0;go(o,t,l?n:!1),o=a}}}function Or(e){po(e,!0)}function po(e,t){if((e.f&wt)!==0){e.f^=wt,(e.f&le)===0&&(e.f^=le),Ht(e)&&(ye(e,Ie),yn(e));for(var n=e.first;n!==null;){var o=n.next,a=(n.f&Hn)!==0||(n.f&Se)!==0;po(n,a?t:!1),n=o}if(e.transitions!==null)for(let l of e.transitions)(l.is_global||t)&&l.in()}}var dl=typeof requestIdleCallback>"u"?e=>setTimeout(e,1):requestIdleCallback,Mt=[],Ft=[];function mo(){var e=Mt;Mt=[],zr(e)}function yo(){var e=Ft;Ft=[],zr(e)}function Wn(e){Mt.length===0&&queueMicrotask(mo),Mt.push(e)}function vl(e){Ft.length===0&&dl(yo),Ft.push(e)}function hl(){Mt.length>0&&mo(),Ft.length>0&&yo()}var tn=!1,sn=!1,un=null,nt=!1,qt=!1;function Vr(e){qt=e}var Vt=[],N=null,_e=!1;function Re(e){N=e}var L=null;function Ue(e){L=e}var Le=null;function bo(e){N!==null&&N.f&Ln&&(Le===null?Le=[e]:Le.push(e))}var ne=null,ce=0,ve=null;function gl(e){ve=e}var wo=1,cn=0,je=!1;function $o(){return++wo}function Ht(e){var t=e.f;if((t&Ie)!==0)return!0;if((t&it)!==0){var n=e.deps,o=(t&fe)!==0;if(n!==null){var a,l,u=(t&an)!==0,c=o&&L!==null&&!je,f=n.length;if(u||c){var d=e,m=d.parent;for(a=0;a<f;a++)l=n[a],(u||!l?.reactions?.includes(d))&&(l.reactions??=[]).push(d);u&&(d.f^=an),c&&m!==null&&(m.f&fe)===0&&(d.f^=fe)}for(a=0;a<f;a++)if(l=n[a],Ht(l)&&so(l),l.wv>e.wv)return!0}(!o||L!==null&&!je)&&ye(e,le)}return!1}function pl(e,t){for(var n=t;n!==null;){if((n.f&ln)!==0)try{n.fn(e);return}catch{n.f^=ln}n=n.parent}throw tn=!1,e}function Tr(e){return(e.f&vn)===0&&(e.parent===null||(e.parent.f&ln)===0)}function mn(e,t,n,o){if(tn){if(n===null&&(tn=!1),Tr(t))throw e;return}if(n!==null&&(tn=!0),pl(e,t),Tr(t))throw e}function Eo(e,t,n=!0){var o=e.reactions;if(o!==null)for(var a=0;a<o.length;a++){var l=o[a];Le?.includes(e)||((l.f&me)!==0?Eo(l,t,!1):t===l&&(n?ye(l,Ie):(l.f&le)!==0&&ye(l,it),yn(l)))}}function Co(e){var t=ne,n=ce,o=ve,a=N,l=je,u=Le,c=re,f=_e,d=e.f;ne=null,ce=0,ve=null,je=(d&fe)!==0&&(_e||!nt||N===null),N=(d&(Se|ot))===0?e:null,Le=null,Mr(e.ctx),_e=!1,cn++,e.f|=Ln;try{var m=(0,e.fn)(),h=e.deps;if(ne!==null){var y;if(fn(e,ce),h!==null&&ce>0)for(h.length=ce+ne.length,y=0;y<ne.length;y++)h[ce+y]=ne[y];else e.deps=h=ne;if(!je)for(y=ce;y<h.length;y++)(h[y].reactions??=[]).push(e)}else h!==null&&ce<h.length&&(fn(e,ce),h.length=ce);if(ko()&&ve!==null&&!_e&&h!==null&&(e.f&(me|it|Ie))===0)for(y=0;y<ve.length;y++)Eo(ve[y],e);return a!==null&&a!==e&&(cn++,ve!==null&&(o===null?o=ve:o.push(...ve))),m}finally{ne=t,ce=n,ve=o,N=a,je=l,Le=u,Mr(c),_e=f,e.f^=Ln}}function ml(e,t){let n=t.reactions;if(n!==null){var o=Ti.call(n,e);if(o!==-1){var a=n.length-1;a===0?n=t.reactions=null:(n[o]=n[a],n.pop())}}n===null&&(t.f&me)!==0&&(ne===null||!ne.includes(t))&&(ye(t,it),(t.f&(fe|an))===0&&(t.f^=an),lo(t),fn(t,0))}function fn(e,t){var n=e.deps;if(n!==null)for(var o=t;o<n.length;o++)ml(e,n[o])}function Yn(e){var t=e.f;if((t&vn)===0){ye(e,le);var n=L,o=re,a=nt;L=e,nt=!0;try{(t&qn)!==0?cl(e):fo(e),co(e);var l=Co(e);e.teardown=typeof l=="function"?l:null,e.wv=wo;var u=e.deps,c;Vi&&nl&&e.f&Ie}catch(f){mn(f,e,n,o||e.ctx)}finally{nt=a,L=n}}}function yl(){try{Xi()}catch(e){if(un!==null)mn(e,un,null);else throw e}}function xo(){var e=nt;try{var t=0;for(nt=!0;Vt.length>0;){t++>1e3&&yl();var n=Vt,o=n.length;Vt=[];for(var a=0;a<o;a++){var l=wl(n[a]);bl(l)}jt.clear()}}finally{sn=!1,nt=e,un=null}}function bl(e){var t=e.length;if(t!==0)for(var n=0;n<t;n++){var o=e[n];if((o.f&(vn|wt))===0)try{Ht(o)&&(Yn(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?ho(o):o.fn=null))}catch(a){mn(a,o,null,o.ctx)}}}function yn(e){sn||(sn=!0,queueMicrotask(xo));for(var t=un=e;t.parent!==null;){t=t.parent;var n=t.f;if((n&(ot|Se))!==0){if((n&le)===0)return;t.f^=le}}Vt.push(t)}function wl(e){for(var t=[],n=e;n!==null;){var o=n.f,a=(o&(Se|ot))!==0,l=a&&(o&le)!==0;if(!l&&(o&wt)===0){if((o&Kr)!==0)t.push(n);else if(a)n.f^=le;else try{Ht(n)&&Yn(n)}catch(f){mn(f,n,null,n.ctx)}var u=n.first;if(u!==null){n=u;continue}}var c=n.parent;for(n=n.next;n===null&&c!==null;)n=c.next,c=c.parent}return t}function E(e){for(var t;;){if(hl(),Vt.length===0)return t;sn=!0,xo()}}async function kn(){await Promise.resolve(),E()}function i(e){var t=e.f,n=(t&me)!==0;if(N!==null&&!_e){if(!Le?.includes(e)){var o=N.deps;e.rv<cn&&(e.rv=cn,ne===null&&o!==null&&o[ce]===e?ce++:ne===null?ne=[e]:(!je||!ne.includes(e))&&ne.push(e))}}else if(n&&e.deps===null&&e.effects===null){var a=e,l=a.parent;l!==null&&(l.f&fe)===0&&(a.f^=fe)}return n&&(a=e,Ht(a)&&so(a)),qt&&jt.has(e)?jt.get(e):e.v}function rt(e){var t=_e;try{return _e=!0,e()}finally{_e=t}}var $l=-7169;function ye(e,t){e.f=e.f&$l|t}var jt=new Map;function _o(e,t){var n={f:0,v:e,reactions:null,equals:oo,rv:0,wv:0};return n}function D(e,t){let n=_o(e);return bo(n),n}function Xn(e,t=!1){let n=_o(e);return t||(n.equals=Un),n}function b(e,t,n=!1){N!==null&&!_e&&ko()&&(N.f&(me|qn))!==0&&!Le?.includes(e)&&el();let o=n?Fe(t):t;return El(e,o)}function El(e,t){if(!e.equals(t)){var n=e.v;qt?jt.set(e,t):jt.set(e,n),e.v=t,(e.f&me)!==0&&((e.f&Ie)!==0&&ao(e),ye(e,(e.f&fe)===0?le:it)),e.wv=$o(),Ao(e,Ie),L!==null&&(L.f&le)!==0&&(L.f&(Se|ot))===0&&(ve===null?gl([e]):ve.push(e))}return t}function Ao(e,t){var n=e.reactions;if(n!==null)for(var o=n.length,a=0;a<o;a++){var l=n[a],u=l.f;(u&Ie)===0&&(ye(l,t),(u&(le|fe))!==0&&((u&me)!==0?Ao(l,it):yn(l)))}}var re=null;function Mr(e){re=e}function Io(e,t=!1,n){var o=re={p:re,c:null,d:!1,e:null,m:!1,s:e,x:null,l:null};Bn(()=>{o.d=!0})}function Ro(e){let t=re;if(t!==null){e!==void 0&&(t.x=e);let u=t.e;if(u!==null){var n=L,o=N;t.e=null;try{for(var a=0;a<u.length;a++){var l=u[a];Ue(l.effect),Re(l.reaction),Zn(l.fn)}}finally{Ue(n),Re(o)}}re=t.p,t.m=!0}return e||{}}function ko(){return!0}var Cl=["touchstart","touchmove"];function xl(e){return Cl.includes(e)}function _l(e,t){if(t){let n=document.body;e.autofocus=!0,Wn(()=>{document.activeElement===n&&e.focus()})}}var Fr=!1;function No(){Fr||(Fr=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Lo(e){var t=N,n=L;Re(null),Ue(null);try{return e()}finally{Re(t),Ue(n)}}function Al(e,t,n,o=n){e.addEventListener(t,()=>Lo(n));let a=e.__on_r;a?e.__on_r=()=>{a(),o(!0)}:e.__on_r=()=>o(!0),No()}var So=new Set,Vn=new Set;function Il(e,t,n,o={}){function a(l){if(o.capture||Pt.call(t,l),!l.cancelBubble)return Lo(()=>n?.call(this,l))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Wn(()=>{t.addEventListener(e,a,o)}):t.addEventListener(e,a,o),a}function Me(e,t,n,o,a){var l={capture:o,passive:a},u=Il(e,t,n,l);(t===document.body||t===window||t===document)&&Bn(()=>{t.removeEventListener(e,u,l)})}function Rl(e){for(var t=0;t<e.length;t++)So.add(e[t]);for(var n of Vn)n(e)}function Pt(e){var t=this,n=t.ownerDocument,o=e.type,a=e.composedPath?.()||[],l=a[0]||e.target,u=0,c=e.__root;if(c){var f=a.indexOf(c);if(f!==-1&&(t===document||t===window)){e.__root=t;return}var d=a.indexOf(t);if(d===-1)return;f<=d&&(u=f)}if(l=a[u]||e.target,l!==t){Tt(e,"currentTarget",{configurable:!0,get(){return l||n}});var m=N,h=L;Re(null),Ue(null);try{for(var y,$=[];l!==null;){var T=l.assignedSlot||l.parentNode||l.host||null;try{var M=l["__"+o];if(M!=null&&(!l.disabled||e.target===l))if(Xr(M)){var[q,...A]=M;q.apply(l,[e,...A])}else M.call(l,e)}catch(Q){y?$.push(Q):y=Q}if(e.cancelBubble||T===t||T===null)break;l=T}if(y){for(let Q of $)queueMicrotask(()=>{throw Q});throw y}}finally{e.__root=t,delete e.currentTarget,Re(m),Ue(h)}}}function Jn(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function Ae(e,t){var n=L;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function be(e,t){var n=(t&Di)!==0,o=(t&Pi)!==0,a,l=!e.startsWith("<!>");return()=>{if(V)return Ae(O,null),O;a===void 0&&(a=Jn(l?e:"<!>"+e),n||(a=he(a)));var u=o||to?document.importNode(a,!0):a.cloneNode(!0);if(n){var c=he(u),f=u.lastChild;Ae(c,f)}else Ae(u,u);return u}}function bn(e,t,n="svg"){var o=!e.startsWith("<!>"),a=`<${n}>${o?e:"<!>"+e}</${n}>`,l;return()=>{if(V)return Ae(O,null),O;if(!l){var u=Jn(a),c=he(u);l=he(c)}var f=l.cloneNode(!0);return Ae(f,f),f}}function Kt(){if(V)return Ae(O,null),O;var e=document.createDocumentFragment(),t=document.createComment(""),n=gn();return e.append(t,n),Ae(t,n),e}function U(e,t){if(V){L.nodes_end=O,$t();return}e!==null&&e.before(t)}function kl(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function Do(e,t){return Po(e,t)}function Nl(e,t){Sn(),t.intro=t.intro??!1;let n=t.target,o=V,a=O;try{for(var l=he(n);l&&(l.nodeType!==8||l.data!==jn);)l=Be(l);if(!l)throw yt;mt(!0),qe(l),$t();let u=Po(e,{...t,anchor:l});if(O===null||O.nodeType!==8||O.data!==Wr)throw hn(),yt;return mt(!1),u}catch(u){if(u===yt)return t.recover===!1&&Ji(),Sn(),rl(n),mt(!1),Do(e,t);throw u}finally{mt(o),qe(a)}}var gt=new Map;function Po(e,{target:t,anchor:n,props:o={},events:a,context:l,intro:u=!0}){Sn();var c=new Set,f=h=>{for(var y=0;y<h.length;y++){var $=h[y];if(!c.has($)){c.add($);var T=xl($);t.addEventListener($,Pt,{passive:T});var M=gt.get($);M===void 0?(document.addEventListener($,Pt,{passive:T}),gt.set($,1)):gt.set($,M+1)}}};f(Mi(So)),Vn.add(f);var d=void 0,m=ul(()=>{var h=n??t.appendChild(gn());return Pn(()=>{if(l){Io({});var y=re;y.c=l}a&&(o.$$events=a),V&&Ae(h,null),d=e(h,o)||{},V&&(L.nodes_end=O),l&&Ro()}),()=>{for(var y of c){t.removeEventListener(y,Pt);var $=gt.get(y);--$===0?(document.removeEventListener(y,Pt),gt.delete(y)):gt.set(y,$)}Vn.delete(f),h!==n&&h.parentNode?.removeChild(h)}});return Tn.set(d,m),d}var Tn=new WeakMap;function Ll(e,t){let n=Tn.get(e);return n?(Tn.delete(e),n(t)):Promise.resolve()}function J(e,t,[n,o]=[0,0]){V&&n===0&&$t();var a=e,l=null,u=null,c=ie,f=n>0?Hn:0,d=!1;let m=(y,$=!0)=>{d=!0,h($,y)},h=(y,$)=>{if(c===(c=y))return;let T=!1;if(V&&o!==-1){if(n===0){let q=a.data;q===jn?o=0:q===Gr?o=1/0:(o=parseInt(q.substring(1)),o!==o&&(o=c?1/0:-1))}let M=o>n;!!c===M&&(a=tl(),qe(a),mt(!1),T=!0,o=-1)}c?(l?Or(l):$&&(l=Pn(()=>$(a))),u&&On(u,()=>{u=null})):(u?Or(u):$&&(u=Pn(()=>$(a,[n+1,o]))),l&&On(l,()=>{l=null})),T&&mt(!0)};uo(()=>{d=!1,t(m),d||h(null,null)},f),V&&(a=O)}function et(e,t,n=!1,o=!1,a=!1){var l=e,u="";xe(()=>{var c=L;if(u===(u=t()??"")){V&&$t();return}if(c.nodes_start!==null&&(vo(c.nodes_start,c.nodes_end),c.nodes_start=c.nodes_end=null),u!==""){if(V){O.data;for(var f=$t(),d=f;f!==null&&(f.nodeType!==8||f.data!=="");)d=f,f=Be(f);if(f===null)throw hn(),yt;Ae(O,d),l=qe(f);return}var m=u+"";n?m=`<svg>${m}</svg>`:o&&(m=`<math>${m}</math>`);var h=Jn(m);if((n||o)&&(h=he(h)),Ae(he(h),h.lastChild),n||o)for(;he(h);)l.before(he(h));else l.before(h)}})}function Sl(e,t,n,o,a){V&&$t();var l=t.$$slots?.[n],u=!1;l===!0&&(l=t.children,u=!0),l===void 0||l(e,u?()=>o:o)}var jr=[...`
2
+ \r\f\xA0\v\uFEFF`];function Dl(e,t,n){var o=""+e;if(n){for(var a in n)if(n[a])o=o?o+" "+a:a;else if(o.length)for(var l=a.length,u=0;(u=o.indexOf(a,u))>=0;){var c=u+l;(u===0||jr.includes(o[u-1]))&&(c===o.length||jr.includes(o[c]))?o=(u===0?"":o.substring(0,u))+o.substring(c+1):u=c}}return o===""?null:o}function Pl(e,t,n,o,a,l){var u=e.__className;if(V||u!==n||u===void 0){var c=Dl(n,o,l);(!V||c!==e.getAttribute("class"))&&(c==null?e.removeAttribute("class"):e.className=c),e.__className=n}else if(l&&a!==l)for(var f in l){var d=!!l[f];(a==null||d!==!!a[f])&&e.classList.toggle(f,d)}return l}var Ol=Symbol("is custom element"),Vl=Symbol("is html");function qr(e){if(V){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var o=e.value;k(e,"value",null),e.value=o}if(e.hasAttribute("checked")){var a=e.checked;k(e,"checked",null),e.checked=a}}};e.__on_r=n,vl(n),No()}}function Tl(e,t){var n=Oo(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!=="PROGRESS")||(e.value=t??"")}function k(e,t,n,o){var a=Oo(e);V&&(a[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||a[t]!==(a[t]=n)&&(t==="loading"&&(e[Zi]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Ml(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Oo(e){return e.__attributes??={[Ol]:e.nodeName.includes("-"),[Vl]:e.namespaceURI===Oi}}var Hr=new Map;function Ml(e){var t=Hr.get(e.nodeName);if(t)return t;Hr.set(e.nodeName,t=[]);for(var n,o=e,a=Element.prototype;a!==o;){n=Fi(o);for(var l in n)n[l].set&&t.push(l);o=Jr(o)}return t}function Fl(e,t,n=t){Al(e,"change",o=>{var a=o?e.defaultChecked:e.checked;n(a)}),(V&&e.defaultChecked!==e.checked||rt(t)==null)&&n(e.checked),Gn(()=>{var o=t();e.checked=!!o})}function Ur(e,t){return e===t||e?.[Ot]===t}function Qt(e={},t,n,o){return Zn(()=>{var a,l;return Gn(()=>{a=l,l=[],rt(()=>{e!==n(...l)&&(t(e,...l),a&&Ur(n(...a),e)&&t(null,...a))})}),()=>{Wn(()=>{l&&Ur(n(...l),e)&&t(null,...l)})}}),e}function Vo(e){re===null&&Yr(),Dn(()=>{let t=rt(e);if(typeof t=="function")return t})}function jl(e){re===null&&Yr(),Vo(()=>()=>rt(e))}function To(e,t,n){if(e==null)return t(void 0),bt;let o=rt(()=>e.subscribe(t,n));return o.unsubscribe?()=>o.unsubscribe():o}var pt=[];function ql(e,t=bt){let n=null,o=new Set;function a(c){if(io(e,c)&&(e=c,n)){let f=!pt.length;for(let d of o)d[1](),pt.push(d,e);if(f){for(let d=0;d<pt.length;d+=2)pt[d][0](pt[d+1]);pt.length=0}}}function l(c){a(c(e))}function u(c,f=bt){let d=[c,f];return o.add(d),o.size===1&&(n=t(a,l)||bt),c(e),()=>{o.delete(d),o.size===0&&n&&(n(),n=null)}}return{set:a,update:l,subscribe:u}}function nn(e){let t;return To(e,n=>t=n)(),t}var en=!1,Mn=Symbol();function Hl(e,t,n){let o=n[t]??={store:null,source:Xn(void 0),unsubscribe:bt};if(o.store!==e&&!(Mn in n))if(o.unsubscribe(),o.store=e??null,e==null)o.source.v=void 0,o.unsubscribe=bt;else{var a=!0;o.unsubscribe=To(e,l=>{a?o.source.v=l:b(o.source,l)}),a=!1}return e&&Mn in n?nn(e):i(o.source)}function Ul(){let e={};function t(){Bn(()=>{for(var n in e)e[n].unsubscribe();Tt(e,Mn,{enumerable:!1,value:!0})})}return[e,t]}function Bl(e){var t=en;try{return en=!1,[e(),en]}finally{en=t}}function Br(e){return e.ctx?.d??!1}function C(e,t,n,o){var a=(n&ki)!==0,l=!0,u=(n&Li)!==0,c=(n&Si)!==0,f=!1,d;u?[d,f]=Bl(()=>e[t]):d=e[t];var m=Ot in e||eo in e,h=u&&(tt(e,t)?.set??(m&&t in e&&(H=>e[t]=H)))||void 0,y=o,$=!0,T=!1,M=()=>(T=!0,$&&($=!1,c?y=rt(o):y=o),y);d===void 0&&o!==void 0&&(h&&l&&zi(),d=M(),h&&h(d));var q;if(q=()=>{var H=e[t];return H===void 0?M():($=!0,T=!1,H)},(n&Ni)===0)return q;if(h){var A=e.$$legacy;return function(H,ae){return arguments.length>0?((!ae||A||f)&&h(ae?q():H),H):q()}}var Q=!1,ke=Xn(d),z=pn(()=>{var H=q(),ae=i(ke);return Q?(Q=!1,ae):ke.v=H});return u&&i(z),a||(z.equals=Un),function(H,ae){if(arguments.length>0){let Ze=ae?i(z):u?Fe(H):H;if(!z.equals(Ze)){if(Q=!0,b(ke,Ze),T&&y!==void 0&&(y=Ze),Br(z))return H;rt(()=>i(z))}return H}return Br(z)?z.v:i(z)}}function Zl(e){return new Fn(e)}var Fn=class{#t;#e;constructor(t){var n=new Map,o=(l,u)=>{var c=Xn(u);return n.set(l,c),c};let a=new Proxy({...t.props||{},$$events:{}},{get(l,u){return i(n.get(u)??o(u,Reflect.get(l,u)))},has(l,u){return u===eo?!0:(i(n.get(u)??o(u,Reflect.get(l,u))),Reflect.has(l,u))},set(l,u,c){return b(n.get(u)??o(u,c),c),Reflect.set(l,u,c)}});this.#e=(t.hydrate?Nl:Do)(t.component,{target:t.target,anchor:t.anchor,props:a,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&E(),this.#t=a.$$events;for(let l of Object.keys(this.#e))l==="$set"||l==="$destroy"||l==="$on"||Tt(this,l,{get(){return this.#e[l]},set(u){this.#e[l]=u},enumerable:!0});this.#e.$set=l=>{Object.assign(a,l)},this.#e.$destroy=()=>{Ll(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];let o=(...a)=>n.call(this,...a);return this.#t[t].push(o),()=>{this.#t[t]=this.#t[t].filter(a=>a!==o)}}$destroy(){this.#e.$destroy()}},Mo;typeof HTMLElement=="function"&&(Mo=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(o){return a=>{let l=document.createElement("slot");o!=="default"&&(l.name=o),U(a,l)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=Gl(this);for(let o of this.$$s)o in n&&(o==="default"&&!this.$$d.children?(this.$$d.children=e(o),t.default=!0):t[o]=e(o));for(let o of this.attributes){let a=this.$$g_p(o.name);a in this.$$d||(this.$$d[a]=rn(a,o.value,this.$$p_d,"toProp"))}for(let o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=Zl({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=sl(()=>{Gn(()=>{this.$$r=!0;for(let o of on(this.$$c)){if(!this.$$p_d[o]?.reflect)continue;this.$$d[o]=this.$$c[o];let a=rn(o,this.$$d[o],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,a)}this.$$r=!1})});for(let o in this.$$l)for(let a of this.$$l[o]){let l=this.$$c.$on(o,a);this.$$l_u.set(a,l)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=rn(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 on(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function rn(e,t,n,o){let a=n[e]?.type;if(t=a==="Boolean"&&typeof t!="boolean"?t!=null:t,!o||!n[e])return t;if(o==="toAttribute")switch(a){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(a){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Gl(e){let t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Wl(e,t,n,o,a,l){let u=class extends Mo{constructor(){super(e,n,a),this.$$p_d=t}static get observedAttributes(){return on(t).map(c=>(t[c].attribute||c).toLowerCase())}};return on(t).forEach(c=>{Tt(u.prototype,c,{get(){return this.$$c&&c in this.$$c?this.$$c[c]:this.$$d[c]},set(f){f=rn(c,f,t),this.$$d[c]=f;var d=this.$$c;if(d){var m=tt(d,c)?.get;m?d[c]=f:d.$set({[c]:f})}}})}),o.forEach(c=>{Tt(u.prototype,c,{get(){return this.$$c?.[c]}})}),e.element=u,u}var Fo=new TextEncoder;function Yl(e){return[...new Uint8Array(e)].map(t=>t.toString(16).padStart(2,"0")).join("")}async function Xl(e,t="SHA-256",n=1e5){let o=Date.now().toString(16);e||(e=Math.round(Math.random()*n));let a=await jo(o,e,t);return{algorithm:t,challenge:a,salt:o,signature:""}}async function jo(e,t,n){if(typeof crypto>"u"||!("subtle"in crypto)||!("digest"in crypto.subtle))throw new Error("Web Crypto is not available. Secure context is required (https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).");return Yl(await crypto.subtle.digest(n.toUpperCase(),Fo.encode(e+t)))}function Jl(e,t,n="SHA-256",o=1e6,a=0){let l=new AbortController,u=Date.now();return{promise:(async()=>{for(let c=a;c<=o;c+=1){if(l.signal.aborted)return null;if(await jo(t,c,n)===e)return{number:c,took:Date.now()-u}}return null})(),controller:l}}function Zr(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}function zl(e){let t=atob(e),n=new Uint8Array(t.length);for(let o=0;o<t.length;o++)n[o]=t.charCodeAt(o);return n}function Kl(e,t=12){let n=new Uint8Array(t);for(let o=0;o<t;o++)n[o]=e%256,e=Math.floor(e/256);return n}async function Ql(e,t="",n=1e6,o=0){let a="AES-GCM",l=new AbortController,u=Date.now(),c=async()=>{for(let m=o;m<=n;m+=1){if(l.signal.aborted||!f||!d)return null;try{let h=await crypto.subtle.decrypt({name:a,iv:Kl(m)},f,d);if(h)return{clearText:new TextDecoder().decode(h),took:Date.now()-u}}catch{}}return null},f=null,d=null;try{d=zl(e);let m=await crypto.subtle.digest("SHA-256",Fo.encode(t));f=await crypto.subtle.importKey("raw",m,a,!1,["decrypt"])}catch{return{promise:Promise.reject(),controller:l}}return{promise:c(),controller:l}}var w=(e=>(e.CODE="code",e.ERROR="error",e.VERIFIED="verified",e.VERIFYING="verifying",e.UNVERIFIED="unverified",e.EXPIRED="expired",e))(w||{}),K=(e=>(e.ERROR="error",e.LOADING="loading",e.PLAYING="playing",e.PAUSED="paused",e.READY="ready",e))(K||{});globalThis.altchaPlugins=globalThis.altchaPlugins||[];globalThis.altchaI18n=globalThis.altchaI18n||{get:e=>nn(globalThis.altchaI18n.store)[e],set:(e,t)=>{Object.assign(nn(globalThis.altchaI18n.store),{[e]:t}),globalThis.altchaI18n.store.set(nn(globalThis.altchaI18n.store))},store:ql({})};var ea={ariaLinkLabel:"Visit Altcha.org",enterCode:"Enter code",enterCodeAria:"Enter code you hear. Press Space to play audio.",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."};globalThis.altchaI18n.set("en",ea);var Nn=(e,t)=>{let n=ol(()=>Hi(t?.(),24));var o=oa();xe(()=>{k(o,"width",i(n)),k(o,"height",i(n))}),U(e,o)};function ta(e,t){e.code==="Space"&&(e.preventDefault(),e.stopImmediatePropagation(),t())}function na(e,t){e.preventDefault(),t()}function ra(e,t,n,o,a,l,u,c){[w.UNVERIFIED,w.ERROR,w.EXPIRED,w.CODE].includes(i(t))?n()!==!1&&i(o)?.reportValidity()===!1?b(a,!1):l()?u():c():b(a,!0)}var oa=bn('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="altcha-spinner"><path d="M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z" fill="currentColor" opacity=".25"></path><path d="M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z" fill="currentColor"></path></svg>'),ia=be('<input type="hidden">'),la=be('<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>'),aa=bn('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12.8659 3.00017L22.3922 19.5002C22.6684 19.9785 22.5045 20.5901 22.0262 20.8662C21.8742 20.954 21.7017 21.0002 21.5262 21.0002H2.47363C1.92135 21.0002 1.47363 20.5525 1.47363 20.0002C1.47363 19.8246 1.51984 19.6522 1.60761 19.5002L11.1339 3.00017C11.41 2.52187 12.0216 2.358 12.4999 2.63414C12.6519 2.72191 12.7782 2.84815 12.8659 3.00017ZM10.9999 16.0002V18.0002H12.9999V16.0002H10.9999ZM10.9999 9.00017V14.0002H12.9999V9.00017H10.9999Z"></path></svg>'),sa=bn('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M15 7C15 6.44772 15.4477 6 16 6C16.5523 6 17 6.44772 17 7V17C17 17.5523 16.5523 18 16 18C15.4477 18 15 17.5523 15 17V7ZM7 7C7 6.44772 7.44772 6 8 6C8.55228 6 9 6.44772 9 7V17C9 17.5523 8.55228 18 8 18C7.44772 18 7 17.5523 7 17V7Z"></path></svg>'),ua=bn('<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>'),ca=be('<button type="button" class="altcha-code-challenge-audio"><!></button>'),fa=be("<audio hidden autoplay><source></audio>"),da=be('<div class="altcha-code-challenge" role="dialog"><div class="altcha-code-challenge-arrow"></div> <form data-code-challenge-form="1"><img class="altcha-code-challenge-image" alt=""> <input type="text" autocomplete="off" name="code" class="altcha-code-challenge-input" required> <div class="altcha-code-challenge-buttons"><div class="altcha-code-challenge-buttons-left"><!> <button type="button" class="altcha-code-challenge-reload"><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> <button type="submit" class="altcha-code-challenge-verify"><!> </button></div> <!></form></div>'),va=be("<div><!></div>"),ha=be("<div><!></div>"),ga=be('<div class="altcha-error"><svg width="14" height="14" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"></path></svg> <!></div>'),pa=be('<div class="altcha-footer"><div><!></div></div>'),ma=be('<div class="altcha-anchor-arrow"></div>'),ya=be('<!> <div class="altcha"><div class="altcha-main"><div><!> <input type="checkbox"></div> <label class="altcha-label"><!></label> <!> <!> <!></div> <!> <!> <!></div>',1);function ba(e,t){Io(t,!0);let[n,o]=Ul(),a=()=>Hl(Ho,"$altchaI18nStore",n),l=C(t,"auto",7,void 0),u=C(t,"blockspam",7,void 0),c=C(t,"challengeurl",7,void 0),f=C(t,"challengejson",7,void 0),d=C(t,"credentials",7,void 0),m=C(t,"customfetch",7,void 0),h=C(t,"debug",7,!1),y=C(t,"delay",7,0),$=C(t,"disableautofocus",7,!1),T=C(t,"refetchonexpire",7,!0),M=C(t,"disablerefetchonexpire",23,()=>!T()),q=C(t,"expire",7,void 0),A=C(t,"floating",7,void 0),Q=C(t,"floatinganchor",7,void 0),ke=C(t,"floatingoffset",7,void 0),z=C(t,"floatingpersist",7,!1),H=C(t,"hidefooter",7,!1),ae=C(t,"hidelogo",7,!1),Ze=C(t,"id",7,void 0),Ut=C(t,"language",7,void 0),Ge=C(t,"name",7,"altcha"),We=C(t,"maxnumber",7,1e6),Et=C(t,"mockerror",7,!1),De=C(t,"obfuscated",7,void 0),ge=C(t,"overlay",7,void 0),Ct=C(t,"overlaycontent",7,void 0),Bt=C(t,"plugins",7,void 0),Ye=C(t,"sentinel",7,void 0),we=C(t,"spamfilter",7,!1),at=C(t,"strings",7,void 0),de=C(t,"test",7,!1),ee=C(t,"verifyurl",7,void 0),st=C(t,"workers",23,()=>Math.min(16,navigator.hardwareConcurrency||8)),xt=C(t,"workerurl",7,void 0),{altchaI18n:qo}=globalThis,Ho=qo.store,zn=["SHA-256","SHA-384","SHA-512"],Uo="https://altcha.org/",Pe=(r,s)=>{t.$$host.dispatchEvent(new CustomEvent(r,{detail:s}))},Kn=document.documentElement.lang?.split("-")?.[0],wn=Dt(()=>c()&&new URL(c(),location.origin).host.endsWith(".altcha.org")&&!!c()?.includes("apiKey=ckey_")),Zt=Dt(()=>f()?dr(f()):void 0),Bo=Dt(()=>at()?dr(at()):{}),P=Dt(()=>({...tr(a()),...i(Bo)})),Qn=Dt(()=>`${Ze()||Ge()}_checkbox_${Math.round(Math.random()*1e8)}`),Xe=D(null),_t=D(!1),B=D(null),x=D(Fe(w.UNVERIFIED)),F=D(void 0),At=D(null),Oe=D(null),se=D(null),$n=D(null),ut=D(null),S=D(null),It=D(null),Je=D(null),$e=null,Z=D(null),ze=D(!1),Ve=[],En=D(!1),Ee=D(null);Dn(()=>{ri(i(Je))}),Dn(()=>{oi(i(x))}),jl(()=>{Zo(),b(It,null),i(S)&&(i(S).removeEventListener("submit",ar),i(S).removeEventListener("reset",sr),i(S).removeEventListener("focusin",lr),b(S,null)),$e&&(clearTimeout($e),$e=null),document.removeEventListener("click",or),document.removeEventListener("scroll",ir),window.removeEventListener("resize",fr)}),Vo(()=>{_("mounted","2.2.4"),_("workers",st()),Xo(),_("plugins",Ve.length?Ve.map(r=>r.constructor.pluginName).join(", "):"none"),de()&&_("using test mode"),q()&&xn(q()),l()!==void 0&&_("auto",l()),A()!==void 0&&pr(A()),b(S,i(F)?.closest("form"),!0),i(S)&&(i(S).addEventListener("submit",ar,{capture:!0}),i(S).addEventListener("reset",sr),(l()==="onfocus"||z()==="focus")&&i(S).addEventListener("focusin",lr)),ge()&&mr(!0),l()==="onload"&&(De()?Rt():Ne()),i(wn)&&(H()||ae())&&_("Attributes hidefooter and hidelogo ignored because usage with free API Keys requires attribution."),requestAnimationFrame(()=>{Pe("load")})});function Gt(r,s){return btoa(JSON.stringify({algorithm:r.algorithm,challenge:r.challenge,number:s.number,salt:r.salt,signature:r.signature,test:de()?!0:void 0,took:s.took}))}function Zo(){for(let r of Ve)r.destroy()}function er(){c()&&!M()&&i(x)===w.VERIFIED?Ne():Ke(w.EXPIRED,i(P).expired)}async function Go(){if(Et())throw _("mocking error"),new Error("Mocked error.");if(i(Zt))return _("using provided json data"),vr(i(Zt).salt),i(Zt);if(de())return _("generating test challenge",{test:de()}),Xl(typeof de()!="boolean"?+de():void 0);{if(!c()&&i(S)){let g=i(S).getAttribute("action");g?.includes("/form/")&&c(g+"/altcha")}if(!c())throw new Error("Attribute challengeurl not set.");_("fetching challenge from",c());let r={credentials:typeof d()=="boolean"?"include":d(),headers:we()!==!1?{"x-altcha-spam-filter":"1"}:{}},s=await Cn()(c(),r);if(!s||!(s instanceof Response))throw new Error("Custom fetch function did not return a response.");if(s.status!==200)throw new Error(`Server responded with ${s.status}.`);let v=s.headers.get("X-Altcha-Config"),p=await s.json();if(vr(p.salt),v)try{let g=JSON.parse(v);g&&typeof g=="object"&&(g.verifyurl&&!g.verifyurl.startsWith("fn:")&&(g.verifyurl=rr(g.verifyurl)),wr(g))}catch(g){_("unable to configure from X-Altcha-Config",g)}return p}}function Wo(r){let s=i(S)?.querySelector(typeof r=="string"?`input[name="${r}"]`:'input[type="email"]:not([data-no-spamfilter])');return s?.value?.slice(s.value.indexOf("@"))||void 0}function Cn(){let r=fetch;if(m())if(_("using customfetch"),typeof m()=="string"){if(r=globalThis[m()]||null,!r)throw new Error(`Custom fetch function not found: ${m()}`)}else r=m();return r}function tr(r,s=[Ut()||"",document.documentElement.lang||"",...navigator.languages]){let v=Object.keys(r).map(g=>g.toLowerCase()),p=s.reduce((g,R)=>(R=R.toLowerCase(),g||(r[R]?R:null)||v.find(I=>R.split("-")[0]===I.split("-")[0])||null),null);return r[p||"en"]}function Yo(){return we()==="ipAddress"?{blockedCountries:void 0,classifier:void 0,disableRules:void 0,email:!1,expectedCountries:void 0,expectedLanguages:void 0,fields:!1,ipAddress:void 0,text:void 0,timeZone:void 0}:typeof we()=="object"?we():{blockedCountries:void 0,classifier:void 0,disableRules:void 0,email:void 0,expectedCountries:void 0,expectedLanguages:void 0,fields:void 0,ipAddress:void 0,text:void 0,timeZone:void 0}}function nr(r){return[...i(S)?.querySelectorAll(r?.length?r.map(s=>`input[name="${s}"]`).join(", "):'input[type="text"]:not([data-no-spamfilter]), textarea:not([data-no-spamfilter])')||[]].reduce((s,v)=>{let p=v.name,g=v.value;return p&&g&&(s[p]=/\n/.test(g)?g.replace(new RegExp("(?<!\\r)\\n","g"),`\r
3
+ `):g),s},{})}function rr(r,s){let v=new URL(c()||location.origin),p=new URL(r,v);if(p.search||(p.search=v.search),s)for(let g in s)s[g]!==void 0&&s[g]!==null&&p.searchParams.set(g,s[g]);return p.toString()}function Xo(){let r=Bt()!==void 0?Bt().split(","):void 0;for(let s of globalThis.altchaPlugins)(!r||r.includes(s.pluginName))&&Ve.push(new s({el:i(F),clarify:Rt,dispatch:Pe,getConfiguration:$r,getFloatingAnchor:Er,getState:Cr,log:_,reset:Ke,solve:br,setState:Ce,setFloatingAnchor:xr,verify:Ne}))}function _(...r){(h()||r.some(s=>s instanceof Error))&&console[r[0]instanceof Error?"error":"log"]("ALTCHA",`[name=${Ge()}]`,...r)}function Jo(){b(Z,K.PAUSED,!0)}function zo(r){b(Z,K.ERROR,!0)}function Ko(){b(Z,K.READY,!0)}function Qo(){b(Z,K.LOADING,!0)}function ei(){b(Z,K.PLAYING,!0)}function ti(){b(Z,K.PAUSED,!0)}function ni(r){if(r.preventDefault(),r.stopPropagation(),i(B)){let s=new FormData(r.target),v=String(s.get("code"));if(ee()?.startsWith("fn:")){let p=ee().replace(/^fn:/,"");if(_(`calling ${p} function instead of verifyurl`),!(p in globalThis))throw new Error(`Global function "${p}" is undefined.`);return globalThis[p]({challenge:i(B).challenge,code:v,solution:i(B).solution})}b(ze,!0),hr(Gt(i(B).challenge,i(B).solution),v).then(({reason:p,verified:g})=>{g?(b(B,null),Ce(w.VERIFIED),_("verified"),kn().then(()=>{i($n)?.focus(),Pe("verified",{payload:i(Ee)}),l()==="onsubmit"?gr(i(It)):ge()&&kt()})):(Ke(),b(Je,p||"Verification failed",!0))}).catch(p=>{b(B,null),Ce(w.ERROR,p),_("sentinel verification failed:",p)}).finally(()=>{b(ze,!1)})}}function or(r){let s=r.target;A()&&s&&!i(F).contains(s)&&(i(x)===w.VERIFIED&&z()===!1||i(x)===w.VERIFIED&&z()==="focus"&&!i(S)?.matches(":focus-within")||l()==="off"&&i(x)===w.UNVERIFIED)&&kt()}function ir(){A()&&i(x)!==w.UNVERIFIED&&Nt()}function ri(r){for(let s of Ve)typeof s.onErrorChange=="function"&&s.onErrorChange(i(Je))}function lr(r){i(x)===w.UNVERIFIED?Ne():A()&&z()==="focus"&&i(x)===w.VERIFIED&&Wt()}function ar(r){r.target?.hasAttribute("data-code-challenge-form")||(b(It,r.submitter,!0),i(S)&&l()==="onsubmit"?(i(It)?.blur(),i(x)===w.UNVERIFIED?(r.preventDefault(),r.stopPropagation(),Ne().then(()=>{gr(i(It))})):i(x)!==w.VERIFIED&&(r.preventDefault(),r.stopPropagation(),i(x)===w.VERIFYING&&ur())):i(S)&&A()&&l()==="off"&&i(x)===w.UNVERIFIED&&(r.preventDefault(),r.stopPropagation(),Wt()))}function sr(){Ke()}function ur(){i(x)===w.VERIFYING&&i(P).waitAlert&&alert(i(P).waitAlert)}function cr(){i(Oe)?i(Oe).paused?(i(Oe).currentTime=0,i(Oe).play()):i(Oe).pause():(b(En,!0),requestAnimationFrame(()=>{i(Oe)?.play()}))}function oi(r){for(let s of Ve)typeof s.onStateChange=="function"&&s.onStateChange(i(x));A()&&i(x)!==w.UNVERIFIED&&requestAnimationFrame(()=>{Nt()}),b(_t,i(x)===w.VERIFIED),ge()&&i(se)&&(i(x)!==w.UNVERIFIED?Wt():kt())}function fr(){A()&&Nt()}function dr(r){return JSON.parse(r)}function vr(r){let s=new URLSearchParams(r.split("?")?.[1]),v=s.get("expires")||s.get("expire");if(v){let p=new Date(+v*1e3),g=isNaN(p.getTime())?0:p.getTime()-Date.now();g>0&&xn(g)}else $e&&(clearTimeout($e),$e=null)}async function ii(r){if(!ee())throw new Error("Attribute verifyurl not set.");_("requesting server verification from",ee());let s={payload:r};if(we()!==!1){let{blockedCountries:g,classifier:R,disableRules:I,email:j,expectedLanguages:oe,expectedCountries:te,fields:ue,ipAddress:Te,text:ft,timeZone:Jt}=Yo();s.blockedCountries=g,s.classifier=R,s.disableRules=I,s.email=j===!1?void 0:Wo(j),s.expectedCountries=te,s.expectedLanguages=oe||(Kn?[Kn]:void 0),s.fields=ue===!1?void 0:nr(ue),s.ipAddress=Te===!1?void 0:Te||"auto",s.text=ft,s.timeZone=Jt===!1?void 0:Jt||Zr()}let v=await Cn()(ee(),{body:JSON.stringify(s),headers:{"content-type":"application/json"},method:"POST"});if(!v||!(v instanceof Response))throw new Error("Custom fetch function did not return a response.");if(v.status!==200)throw new Error(`Server responded with ${v.status}.`);let p=await v.json();if(p?.payload&&b(Ee,p.payload,!0),Pe("serververification",p),u()&&p.classification==="BAD")throw new Error("SpamFilter returned negative classification.")}async function hr(r,s){if(!ee())throw new Error("Attribute verifyurl not set.");_("requesting sentinel verification from",ee());let v={code:s,payload:r};Ye()&&(v.fields=Ye().fields?nr():void 0,v.timeZone=Ye().timeZone?Zr():void 0);let p=await Cn()(ee(),{body:JSON.stringify(v),headers:{"content-type":"application/json"},method:"POST"});if(!p||!(p instanceof Response))throw new Error("Fetch function did not return a response.");if(p.status!==200)throw new Error(`Server responded with ${p.status}.`);let g=await p.json();return g?.payload&&b(Ee,g.payload,!0),Pe("sentinelverification",g),g}function gr(r){i(S)&&"requestSubmit"in i(S)?i(S).requestSubmit(r):i(S)?.reportValidity()&&(r?r.click():i(S).submit())}function xn(r){_("expire",r),$e&&(clearTimeout($e),$e=null),r<1?er():$e=setTimeout(er,r)}function pr(r){_("floating",r),A()!==r&&(i(F).style.left="",i(F).style.top=""),A(r===!0||r===""?"auto":r===!1||r==="false"?void 0:A()),A()?(l()||l("onsubmit"),document.addEventListener("scroll",ir),document.addEventListener("click",or),window.addEventListener("resize",fr)):l()==="onsubmit"&&l(void 0)}function mr(r){if(_("overlay",r),ge(r),r){if(l()||l("onsubmit"),i(se)&&i(F).parentElement&&i(se).replaceWith(i(F).parentElement),i(F)?.parentElement?.parentElement){b(se,document.createElement("div"),!0),i(F).parentElement.parentElement.appendChild(i(se));let s=document.createElement("div"),v=document.createElement("button");v.type="button",v.innerHTML="&times;",v.addEventListener("click",p=>{p.preventDefault(),Ke()}),i(se).classList.add("altcha-overlay-backdrop"),v.classList.add("altcha-overlay-close-button"),s.classList.add("altcha-overlay"),i(se).append(s),s.append(v),Ct()&&s.append(...document.querySelectorAll(Ct())),s.append(i(F).parentElement)}}else i(se)&&i(F).parentElement&&(i(se).replaceWith(i(F).parentElement),i(F).style.display="block")}function yr(r){if(!r.algorithm)throw new Error("Invalid challenge. Property algorithm is missing.");if(r.signature===void 0)throw new Error("Invalid challenge. Property signature is missing.");if(!zn.includes(r.algorithm.toUpperCase()))throw new Error(`Unknown algorithm value. Allowed values: ${zn.join(", ")}`);if(!r.challenge||r.challenge.length<40)throw new Error("Challenge is too short. Min. 40 chars.");if(!r.salt||r.salt.length<10)throw new Error("Salt is too short. Min. 10 chars.")}async function br(r){let s=null,v=null;if("Worker"in window){try{s=li(r,r.maxNumber||r.maxnumber||We()),b(Xe,s.controller,!0),v=await s.promise}catch(p){_(p)}finally{b(Xe,null)}if(v===null||v?.number!==void 0||"obfuscated"in r)return{data:r,solution:v}}if("obfuscated"in r){let p=await Ql(r.obfuscated,r.key,r.maxNumber||r.maxnumber);return{data:r,solution:await p.promise}}s=Jl(r.challenge,r.salt,r.algorithm,r.maxNumber||r.maxnumber||We()),b(Xe,s.controller,!0);try{v=await s.promise}catch(p){_(p)}finally{b(Xe,null)}return{data:r,solution:v}}function li(r,s=typeof de()=="number"?de():r.maxNumber||r.maxnumber||We(),v=Math.ceil(st())){let p=new AbortController,g=[];v=Math.min(16,s,Math.max(1,v));for(let I=0;I<v;I++)g.push(altchaCreateWorker(xt()));let R=Math.ceil(s/v);return{promise:(async()=>{let I=await Promise.all(g.map((j,oe)=>{let te=oe*R;return p.signal.addEventListener("abort",()=>{j.postMessage({type:"abort"})}),new Promise(ue=>{j.addEventListener("message",Te=>{if(Te.data)for(let ft of g)ft!==j&&ft.postMessage({type:"abort"});ue(Te.data)}),j.postMessage({payload:r,max:te+R,start:te,type:"work"})})}));for(let j of g)j.terminate();return I.find(j=>!!j)||null})(),controller:p}}async function Rt(){if(!De()){Ce(w.ERROR);return}let r=Ve.find(s=>s.constructor.pluginName==="obfuscation");if(!r||!("clarify"in r)){Ce(w.ERROR),_("Plugin `obfuscation` not found. Import `altcha/plugins/obfuscation` to load it.");return}if("clarify"in r&&typeof r.clarify=="function")return r.clarify()}function wr(r){r.obfuscated!==void 0&&De(r.obfuscated),r.auto!==void 0&&(l(r.auto),l()==="onload"&&(De()?Rt():Ne())),r.blockspam!==void 0&&u(!!r.blockspam),r.customfetch!==void 0&&m(r.customfetch),r.floatinganchor!==void 0&&Q(r.floatinganchor),r.delay!==void 0&&y(r.delay),r.floatingoffset!==void 0&&ke(r.floatingoffset),r.floating!==void 0&&pr(r.floating),r.expire!==void 0&&(xn(r.expire),q(r.expire)),r.challenge&&(f(typeof r.challenge=="string"?r.challenge:JSON.stringify(r.challenge)),yr(i(Zt))),r.challengeurl!==void 0&&c(r.challengeurl),r.debug!==void 0&&h(!!r.debug),r.hidefooter!==void 0&&H(!!r.hidefooter),r.hidelogo!==void 0&&ae(!!r.hidelogo),r.language!==void 0&&at(tr(a(),[r.language])),r.maxnumber!==void 0&&We(+r.maxnumber),r.mockerror!==void 0&&Et(!!r.mockerror),r.name!==void 0&&Ge(r.name),r.overlaycontent!==void 0&&Ct(r.overlaycontent),r.overlay!==void 0&&mr(r.overlay),r.refetchonexpire!==void 0&&M(!r.refetchonexpire),r.disablerefetchonexpire!==void 0&&M(!r.disablerefetchonexpire),r.sentinel!==void 0&&typeof r.sentinel=="object"&&Ye(r.sentinel),r.spamfilter!==void 0&&we(typeof r.spamfilter=="object"?r.spamfilter:!!r.spamfilter),r.strings&&at(typeof r.strings=="string"?r.strings:JSON.stringify(r.strings)),r.test!==void 0&&de(typeof r.test=="number"?r.test:!!r.test),r.verifyurl!==void 0&&ee(r.verifyurl),r.workers!==void 0&&st(+r.workers),r.workerurl!==void 0&&xt(r.workerurl)}function $r(){return{auto:l(),blockspam:u(),challengeurl:c(),debug:h(),delay:y(),disableautofocus:$(),disablerefetchonexpire:M(),expire:q(),floating:A(),floatinganchor:Q(),floatingoffset:ke(),hidefooter:H(),hidelogo:ae(),name:Ge(),maxnumber:We(),mockerror:Et(),obfuscated:De(),overlay:ge(),refetchonexpire:!M(),spamfilter:we(),strings:i(P),test:de(),verifyurl:ee(),workers:st(),workerurl:xt()}}function Er(){return i(ut)}function ai(r){return Ve.find(s=>s.constructor.pluginName===r)}function Cr(){return i(x)}function kt(){i(F).style.display="none",ge()&&i(se)&&(i(se).style.display="none")}function Nt(r=20){if(i(F))if(i(ut)||b(ut,(Q()?document.querySelector(Q()):i(S)?.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])'))||i(S),!0),i(ut)){let s=parseInt(ke(),10)||12,v=i(ut).getBoundingClientRect(),p=i(F).getBoundingClientRect(),g=document.documentElement.clientHeight,R=document.documentElement.clientWidth,I=A()==="auto"?v.bottom+p.height+s+r>g:A()==="top",j=Math.max(r,Math.min(R-r-p.width,v.left+v.width/2-p.width/2));if(I?i(F).style.top=`${v.top-(p.height+s)}px`:i(F).style.top=`${v.bottom+s}px`,i(F).style.left=`${j}px`,i(F).setAttribute("data-floating",I?"top":"bottom"),i(At)){let oe=i(At).getBoundingClientRect();i(At).style.left=v.left-j+v.width/2-oe.width/2+"px"}}else _("unable to find floating anchor element")}function Ke(r=w.UNVERIFIED,s=null){i(Xe)&&(i(Xe).abort(),b(Xe,null)),b(_t,!1),b(Ee,null),b(B,null),b(En,!1),b(Z,null),Ce(r,s)}function xr(r){b(ut,r,!0)}function Ce(r,s=null){b(x,r,!0),b(Je,s,!0),Pe("statechange",{payload:i(Ee),state:i(x)})}function Wt(){i(F).style.display="block",A()&&Nt(),ge()&&i(se)&&(i(se).style.display="flex")}async function Ne(){return Ke(w.VERIFYING),await new Promise(r=>setTimeout(r,y()||0)),Go().then(r=>(yr(r),_("challenge",r),br(r))).then(({data:r,solution:s})=>{if(_("solution",s),!s||r&&"challenge"in r&&!("clearText"in s)){if(s?.number!==void 0&&"challenge"in r)if(ee()&&"codeChallenge"in r)["INPUT","BUTTON","SELECT","TEXTAREA"].includes(document.activeElement?.tagName||"")&&$()===!1&&document.activeElement.blur(),b(B,{challenge:r,solution:s},!0);else{if(ee()&&Ye()!==void 0)return hr(Gt(r,s));if(ee())return ii(Gt(r,s));b(Ee,Gt(r,s),!0),_("payload",i(Ee))}else if(i(x)!==w.EXPIRED)throw _("Unable to find a solution. Ensure that the 'maxnumber' attribute is greater than the randomly generated number."),new Error("Unexpected result returned.")}}).then(()=>{i(B)?(Ce(w.CODE),kn().then(()=>{Pe("code",{codeChallenge:i(B)})})):i(Ee)&&(Ce(w.VERIFIED),_("verified"),kn().then(()=>{Pe("verified",{payload:i(Ee)}),ge()&&kt()}))}).catch(r=>{_(r),Ce(w.ERROR,r.message)})}var _r=ya(),Ar=St(_r);Sl(Ar,t,"default",{});var ct=X(Ar,2),_n=Y(ct),Yt=Y(_n);let Ir;var Rr=Y(Yt);{var si=r=>{Nn(r)};J(Rr,r=>{i(x)===w.VERIFYING&&r(si)})}var Qe=X(Rr,2);qr(Qe),Qe.__change=[ra,x,we,S,_t,De,Rt,Ne],Qt(Qe,r=>b($n,r),()=>i($n)),W(Yt);var Xt=X(Yt,2),ui=Y(Xt);{var ci=r=>{var s=Kt(),v=St(s);et(v,()=>i(P).verified),U(r,s)},fi=(r,s)=>{{var v=g=>{var R=Kt(),I=St(R);et(I,()=>i(P).verifying),U(g,R)},p=(g,R)=>{{var I=oe=>{var te=Kt(),ue=St(te);et(ue,()=>i(P).verificationRequired),U(oe,te)},j=oe=>{var te=Kt(),ue=St(te);et(ue,()=>i(P).label),U(oe,te)};J(g,oe=>{i(x)===w.CODE?oe(I):oe(j,!1)},R)}};J(r,g=>{i(x)===w.VERIFYING?g(v):g(p,!1)},s)}};J(ui,r=>{i(x)===w.VERIFIED?r(ci):r(fi,!1)})}W(Xt);var kr=X(Xt,2);{var di=r=>{var s=ia();qr(s),xe(()=>{k(s,"name",Ge()),Tl(s,i(Ee))}),U(r,s)};J(kr,r=>{i(x)===w.VERIFIED&&r(di)})}var Nr=X(kr,2);{var vi=r=>{var s=la(),v=Y(s);k(v,"href",Uo),W(s),xe(()=>k(v,"aria-label",i(P).ariaLinkLabel)),U(r,s)};J(Nr,r=>{(ae()!==!0||i(wn))&&r(vi)})}var hi=X(Nr,2);{var gi=r=>{var s=da(),v=X(Y(s),2),p=Y(v),g=X(p,2);_l(g,!$()),g.__keydown=[ta,cr];var R=X(g,2),I=Y(R),j=Y(I);{var oe=pe=>{var G=ca();G.__click=cr;var zt=Y(G);{var Lt=dt=>{Nn(dt,()=>20)},Ci=(dt,xi)=>{{var _i=vt=>{var An=aa();U(vt,An)},Ai=(vt,An)=>{{var Ii=ht=>{var In=sa();U(ht,In)},Ri=ht=>{var In=ua();U(ht,In)};J(vt,ht=>{i(Z)===K.PLAYING?ht(Ii):ht(Ri,!1)},An)}};J(dt,vt=>{i(Z)===K.ERROR?vt(_i):vt(Ai,!1)},xi)}};J(zt,dt=>{i(Z)===K.LOADING?dt(Lt):dt(Ci,!1)})}W(G),xe(()=>{k(G,"title",i(P).getAudioChallenge),G.disabled=i(Z)===K.LOADING||i(Z)===K.ERROR||i(ze),k(G,"aria-label",i(Z)===K.LOADING?i(P).loading:i(P).getAudioChallenge)}),U(pe,G)};J(j,pe=>{i(B).challenge.codeChallenge.audio&&pe(oe)})}var te=X(j,2);te.__click=[na,Ne],W(I);var ue=X(I,2),Te=Y(ue);{var ft=pe=>{Nn(pe,()=>16)};J(Te,pe=>{i(ze)&&pe(ft)})}var Jt=X(Te);W(ue),W(R);var $i=X(R,2);{var Ei=pe=>{var G=fa(),zt=Y(G);W(G),Qt(G,Lt=>b(Oe,Lt),()=>i(Oe)),xe(Lt=>k(zt,"src",Lt),[()=>rr(i(B).challenge.codeChallenge.audio,{language:Ut()})]),Me("loadstart",G,Qo),Me("canplay",G,Ko),Me("pause",G,ti),Me("playing",G,ei),Me("ended",G,Jo),Me("error",zt,zo),U(pe,G)};J($i,pe=>{i(B).challenge.codeChallenge.audio&&i(En)&&pe(Ei)})}W(v),W(s),xe(()=>{k(s,"aria-label",i(P).verificationRequired),k(p,"src",i(B).challenge.codeChallenge.image),k(g,"minlength",i(B).challenge.codeChallenge.length||1),k(g,"maxlength",i(B).challenge.codeChallenge.length),k(g,"placeholder",i(P).enterCode),k(g,"aria-label",i(Z)===K.LOADING?i(P).loading:i(Z)===K.PLAYING?"":i(P).enterCodeAria),k(g,"aria-live",i(Z)?"assertive":"polite"),k(g,"aria-busy",i(Z)===K.LOADING),g.disabled=i(ze),k(te,"aria-label",i(P).reload),k(te,"title",i(P).reload),te.disabled=i(ze),ue.disabled=i(ze),k(ue,"aria-label",i(P).verify),kl(Jt,` ${i(P).verify??""}`)}),Me("submit",v,ni,!0),U(r,s)};J(hi,r=>{i(B)?.challenge.codeChallenge&&r(gi)})}W(_n);var Lr=X(_n,2);{var pi=r=>{var s=ga(),v=X(Y(s),2);{var p=R=>{var I=va(),j=Y(I);et(j,()=>i(P).expired),W(I),xe(()=>k(I,"title",i(Je))),U(R,I)},g=R=>{var I=ha(),j=Y(I);et(j,()=>i(P).error),W(I),xe(()=>k(I,"title",i(Je))),U(R,I)};J(v,R=>{i(x)===w.EXPIRED?R(p):R(g,!1)})}W(s),U(r,s)};J(Lr,r=>{(i(Je)||i(x)===w.EXPIRED)&&r(pi)})}var Sr=X(Lr,2);{var mi=r=>{var s=pa(),v=Y(s),p=Y(v);et(p,()=>i(P).footer),W(v),W(s),U(r,s)};J(Sr,r=>{i(P).footer&&(H()!==!0||i(wn))&&r(mi)})}var yi=X(Sr,2);{var bi=r=>{var s=ma();Qt(s,v=>b(At,v),()=>i(At)),U(r,s)};J(yi,r=>{A()&&r(bi)})}W(ct),Qt(ct,r=>b(F,r),()=>i(F)),xe(r=>{k(ct,"data-state",i(x)),k(ct,"data-floating",A()),k(ct,"data-overlay",ge()),Ir=Pl(Yt,1,"altcha-checkbox",null,Ir,r),k(Qe,"id",i(Qn)),Qe.required=l()!=="onsubmit"&&(!A()||l()!=="off"),k(Xt,"for",i(Qn))},[()=>({"altcha-checkbox-verifying":i(x)===w.VERIFYING})]),Me("invalid",Qe,ur),Fl(Qe,()=>i(_t),r=>b(_t,r)),U(e,_r);var wi=Ro({clarify:Rt,configure:wr,getConfiguration:$r,getFloatingAnchor:Er,getPlugin:ai,getState:Cr,hide:kt,repositionFloating:Nt,reset:Ke,setFloatingAnchor:xr,setState:Ce,show:Wt,verify:Ne,get auto(){return l()},set auto(r=void 0){l(r),E()},get blockspam(){return u()},set blockspam(r=void 0){u(r),E()},get challengeurl(){return c()},set challengeurl(r=void 0){c(r),E()},get challengejson(){return f()},set challengejson(r=void 0){f(r),E()},get credentials(){return d()},set credentials(r=void 0){d(r),E()},get customfetch(){return m()},set customfetch(r=void 0){m(r),E()},get debug(){return h()},set debug(r=!1){h(r),E()},get delay(){return y()},set delay(r=0){y(r),E()},get disableautofocus(){return $()},set disableautofocus(r=!1){$(r),E()},get refetchonexpire(){return T()},set refetchonexpire(r=!0){T(r),E()},get disablerefetchonexpire(){return M()},set disablerefetchonexpire(r=!T){M(r),E()},get expire(){return q()},set expire(r=void 0){q(r),E()},get floating(){return A()},set floating(r=void 0){A(r),E()},get floatinganchor(){return Q()},set floatinganchor(r=void 0){Q(r),E()},get floatingoffset(){return ke()},set floatingoffset(r=void 0){ke(r),E()},get floatingpersist(){return z()},set floatingpersist(r=!1){z(r),E()},get hidefooter(){return H()},set hidefooter(r=!1){H(r),E()},get hidelogo(){return ae()},set hidelogo(r=!1){ae(r),E()},get id(){return Ze()},set id(r=void 0){Ze(r),E()},get language(){return Ut()},set language(r=void 0){Ut(r),E()},get name(){return Ge()},set name(r="altcha"){Ge(r),E()},get maxnumber(){return We()},set maxnumber(r=1e6){We(r),E()},get mockerror(){return Et()},set mockerror(r=!1){Et(r),E()},get obfuscated(){return De()},set obfuscated(r=void 0){De(r),E()},get overlay(){return ge()},set overlay(r=void 0){ge(r),E()},get overlaycontent(){return Ct()},set overlaycontent(r=void 0){Ct(r),E()},get plugins(){return Bt()},set plugins(r=void 0){Bt(r),E()},get sentinel(){return Ye()},set sentinel(r=void 0){Ye(r),E()},get spamfilter(){return we()},set spamfilter(r=!1){we(r),E()},get strings(){return at()},set strings(r=void 0){at(r),E()},get test(){return de()},set test(r=!1){de(r),E()},get verifyurl(){return ee()},set verifyurl(r=void 0){ee(r),E()},get workers(){return st()},set workers(r=Math.min(16,navigator.hardwareConcurrency||8)){st(r),E()},get workerurl(){return xt()},set workerurl(r=void 0){xt(r),E()}});return o(),wi}Rl(["change","keydown","click"]);customElements.define("altcha-widget",Wl(ba,{blockspam:{type:"Boolean"},debug:{type:"Boolean"},delay:{type:"Number"},disableautofocus:{type:"Boolean"},disablerefetchonexpire:{type:"Boolean"},expire:{type:"Number"},floatingoffset:{type:"Number"},hidefooter:{type:"Boolean"},hidelogo:{type:"Boolean"},maxnumber:{type:"Number"},mockerror:{type:"Boolean"},refetchonexpire:{type:"Boolean"},test:{type:"Boolean"},workers:{type:"Number"},auto:{},challengeurl:{},challengejson:{},credentials:{},customfetch:{},floating:{},floatinganchor:{},floatingpersist:{},id:{},language:{},name:{},obfuscated:{},overlay:{},overlaycontent:{},plugins:{},sentinel:{},spamfilter:{},strings:{},verifyurl:{},workerurl:{}},["default"],["clarify","configure","getConfiguration","getFloatingAnchor","getPlugin","getState","hide","repositionFloating","reset","setFloatingAnchor","setState","show","verify"],!1));globalThis.altchaCreateWorker=e=>new Worker(new URL(e||"./worker.js",import.meta.url));export{ba as Altcha};
4
+ //# sourceMappingURL=altcha-J22D7W3J.js.map
@@ -0,0 +1,4 @@
1
+ import"./chunk-3ZTUZPSD.js";var $l="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add($l);var kl=1;var Sl=4;var Tl=8;var Nl=16;var Dl=1;var Ll=2;var Mn="[";var Gr="[!";var Zr="]";var pt={};var oe=Symbol();var Pl="http://www.w3.org/1999/xhtml";var Nr=false;function Wr(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Jr=Array.isArray;var Ol=Array.prototype.indexOf;var Fl=Array.from;var ln=Object.keys;var Vt=Object.defineProperty;var nt=Object.getOwnPropertyDescriptor;var Vl=Object.getOwnPropertyDescriptors;var Ml=Object.prototype;var ql=Array.prototype;var Kr=Object.getPrototypeOf;var Dr=Object.isExtensible;var yt=()=>{};function Xr(e){for(var t=0;t<e.length;t++)e[t]()}function Ul(e,t,n=false){return e===void 0?n?t():t:e}var me=2;var zr=4;var dn=8;var qn=16;var Ne=32;var lt=64;var on=128;var ce=256;var an=512;var ae=1024;var Re=2048;var ot=4096;var wt=8192;var vn=16384;var jl=32768;var Un=65536;var Bl=1<<19;var Qr=1<<20;var Tn=1<<21;var Ot=Symbol("$state");var ei=Symbol("legacy props");var Hl=Symbol("");function Yl(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Gl(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Zl(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Wl(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Jl(){throw new Error("https://svelte.dev/e/hydration_failed")}function Kl(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Xl(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function zl(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ql(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function hn(e){console.warn("https://svelte.dev/e/hydration_mismatch")}var O=false;function bt(e){O=e}var P;function qe(e){if(e===null)throw hn(),pt;return P=e}function Et(){return qe(Be(P))}function W(e){if(O){if(Be(P)!==null)throw hn(),pt;P=e}}function eo(){for(var e=0,t=P;;){if(t.nodeType===8){var n=t.data;if(n===Zr){if(e===0)return t;e-=1}else(n===Mn||n===Gr)&&(e+=1)}var i=Be(t);t.remove(),t=i}}var to=false;function Ve(e){if(typeof e!="object"||e===null||Ot in e)return e;const t=Kr(e);if(t!==Ml&&t!==ql)return e;var n=new Map,i=Jr(e),a=D(0),o=k,s=f=>{var c=k;$e(o);var d=f();return $e(c),d};return i&&n.set("length",D(e.length)),new Proxy(e,{defineProperty(f,c,d){(!("value"in d)||d.configurable===false||d.enumerable===false||d.writable===false)&&Xl();var m=n.get(c);return m===void 0?(m=s(()=>D(d.value)),n.set(c,m)):p(m,s(()=>Ve(d.value))),true},deleteProperty(f,c){var d=n.get(c);if(d===void 0)c in f&&(n.set(c,s(()=>D(oe))),$n(a));else{if(i&&typeof c=="string"){var m=n.get("length"),h=Number(c);Number.isInteger(h)&&h<m.v&&p(m,h)}p(d,oe),$n(a)}return true},get(f,c,d){if(c===Ot)return e;var m=n.get(c),h=c in f;if(m===void 0&&(!h||nt(f,c)?.writable)&&(m=s(()=>D(Ve(h?f[c]:oe))),n.set(c,m)),m!==void 0){var b=l(m);return b===oe?void 0:b}return Reflect.get(f,c,d)},getOwnPropertyDescriptor(f,c){var d=Reflect.getOwnPropertyDescriptor(f,c);if(d&&"value"in d){var m=n.get(c);m&&(d.value=l(m))}else if(d===void 0){var h=n.get(c),b=h?.v;if(h!==void 0&&b!==oe)return{enumerable:true,configurable:true,value:b,writable:true}}return d},has(f,c){if(c===Ot)return true;var d=n.get(c),m=d!==void 0&&d.v!==oe||Reflect.has(f,c);if(d!==void 0||S!==null&&(!m||nt(f,c)?.writable)){d===void 0&&(d=s(()=>D(m?Ve(f[c]):oe)),n.set(c,d));var h=l(d);if(h===oe)return false}return m},set(f,c,d,m){var h=n.get(c),b=c in f;if(i&&c==="length")for(var w=d;w<h.v;w+=1){var F=n.get(w+"");F!==void 0?p(F,oe):w in f&&(F=s(()=>D(oe)),n.set(w+"",F))}h===void 0?(!b||nt(f,c)?.writable)&&(h=s(()=>D(void 0)),p(h,s(()=>Ve(d))),n.set(c,h)):(b=h.v!==oe,p(h,s(()=>Ve(d))));var V=Reflect.getOwnPropertyDescriptor(f,c);if(V?.set&&V.set.call(m,d),!b){if(i&&typeof c=="string"){var q=n.get("length"),R=Number(c);Number.isInteger(R)&&R>=q.v&&p(q,R+1)}$n(a)}return true},ownKeys(f){l(a);var c=Reflect.ownKeys(f).filter(h=>{var b=n.get(h);return b===void 0||b.v!==oe});for(var[d,m]of n)m.v!==oe&&!(d in f)&&c.push(d);return c},setPrototypeOf(){zl()}})}function $n(e,t=1){p(e,e.v+t)}var Lr;var ti;var ni;var ri;function Nn(){if(Lr===void 0){Lr=window,ti=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;ni=nt(t,"firstChild").get,ri=nt(t,"nextSibling").get,Dr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Dr(n)&&(n.__t=void 0)}}function gn(e=""){return document.createTextNode(e)}function he(e){return ni.call(e)}function Be(e){return ri.call(e)}function J(e,t){if(!O)return he(e);var n=he(P);return n===null&&(n=P.appendChild(gn())),qe(n),n}function Dt(e,t){if(!O){var n=he(e);return n instanceof Comment&&n.data===""?Be(n):n}return P}function K(e,t=1,n=false){let i=O?P:e;for(var a;t--;)a=i,i=Be(i);if(!O)return i;var o=i?.nodeType;if(n&&o!==3){var s=gn();return i===null?a?.after(s):i.before(s),qe(s),s}return qe(i),i}function no(e){e.textContent=""}function ii(e){return e===this.v}function li(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function jn(e){return!li(e,this.v)}function _n(e){var t=me|Re,n=k!==null&&(k.f&me)!==0?k:null;return S===null||n!==null&&(n.f&ce)!==0?t|=ce:S.f|=Qr,{ctx:re,deps:null,effects:null,equals:ii,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:n??S}}function Lt(e){const t=_n(e);return bi(t),t}function ro(e){const t=_n(e);return t.equals=jn,t}function oi(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Ue(t[n])}}function io(e){for(var t=e.parent;t!==null;){if((t.f&me)===0)return t;t=t.parent}return null}function ai(e){var t,n=S;je(io(e));try{oi(e),t=Ei(e)}finally{je(n)}return t}function si(e){var t=ai(e),n=(Me||(e.f&ce)!==0)&&e.deps!==null?ot:ae;be(e,n),e.equals(t)||(e.v=t,e.wv=yi())}function lo(e){S===null&&k===null&&Zl(),k!==null&&(k.f&ce)!==0&&S===null&&Gl(),jt&&Yl()}function oo(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function at(e,t,n,i=true){var a=S,o={ctx:re,deps:null,nodes_start:null,nodes_end:null,f:e|Re,first:null,fn:t,last:null,next:null,parent:a,prev:null,teardown:null,transitions:null,wv:0};if(n)try{Zn(o),o.f|=jl}catch(c){throw Ue(o),c}else t!==null&&bn(o);var s=n&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&(Qr|on))===0;if(!s&&i&&(a!==null&&oo(o,a),k!==null&&(k.f&me)!==0)){var f=k;(f.effects??=[]).push(o)}return o}function Bn(e){const t=at(dn,null,false);return be(t,ae),t.teardown=e,t}function Dn(e){lo();var t=S!==null&&(S.f&Ne)!==0&&re!==null&&!re.m;if(t){var n=re;(n.e??=[]).push({fn:e,effect:S,reaction:k})}else{var i=Hn(e);return i}}function ao(e){const t=at(lt,e,true);return()=>{Ue(t)}}function so(e){const t=at(lt,e,true);return(n={})=>new Promise(i=>{n.outro?Pn(t,()=>{Ue(t),i(void 0)}):(Ue(t),i(void 0))})}function Hn(e){return at(zr,e,false)}function Yn(e){return at(dn,e,true)}function Ae(e,t=[],n=_n){const i=t.map(n);return ui(()=>e(...i.map(l)))}function ui(e,t=0){return at(dn|qn|t,e,true)}function Ln(e,t=true){return at(dn|Ne,e,true,t)}function fi(e){var t=e.teardown;if(t!==null){const n=jt,i=k;Or(true),$e(null);try{t.call(null)}finally{Or(n),$e(i)}}}function ci(e,t=false){var n=e.first;for(e.first=e.last=null;n!==null;){var i=n.next;(n.f&lt)!==0?n.parent=null:Ue(n,t),n=i}}function uo(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&Ne)===0&&Ue(t),t=n}}function Ue(e,t=true){var n=false;(t||(e.f&Bl)!==0)&&e.nodes_start!==null&&(di(e.nodes_start,e.nodes_end),n=true),ci(e,t&&!n),cn(e,0),be(e,vn);var i=e.transitions;if(i!==null)for(const o of i)o.stop();fi(e);var a=e.parent;a!==null&&a.first!==null&&vi(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function di(e,t){for(;e!==null;){var n=e===t?null:Be(e);e.remove(),e=n}}function vi(e){var t=e.parent,n=e.prev,i=e.next;n!==null&&(n.next=i),i!==null&&(i.prev=n),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=n))}function Pn(e,t){var n=[];hi(e,n,true),fo(n,()=>{Ue(e),t&&t()})}function fo(e,t){var n=e.length;if(n>0){var i=()=>--n||t();for(var a of e)a.out(i)}else t()}function hi(e,t,n){if((e.f&wt)===0){if(e.f^=wt,e.transitions!==null)for(const s of e.transitions)(s.is_global||n)&&t.push(s);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&Un)!==0||(i.f&Ne)!==0;hi(i,t,o?n:false),i=a}}}function Pr(e){gi(e,true)}function gi(e,t){if((e.f&wt)!==0){e.f^=wt,(e.f&ae)===0&&(e.f^=ae),Bt(e)&&(be(e,Re),bn(e));for(var n=e.first;n!==null;){var i=n.next,a=(n.f&Un)!==0||(n.f&Ne)!==0;gi(n,a?t:false),n=i}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}var co=typeof requestIdleCallback>"u"?e=>setTimeout(e,1):requestIdleCallback;var Mt=[];var qt=[];function _i(){var e=Mt;Mt=[],Xr(e)}function mi(){var e=qt;qt=[],Xr(e)}function Gn(e){Mt.length===0&&queueMicrotask(_i),Mt.push(e)}function vo(e){qt.length===0&&co(mi),qt.push(e)}function ho(){Mt.length>0&&_i(),qt.length>0&&mi()}var tn=false;var sn=false;var un=null;var rt=false;var jt=false;function Or(e){jt=e}var Ft=[];var k=null;var Ie=false;function $e(e){k=e}var S=null;function je(e){S=e}var Te=null;function bi(e){k!==null&&k.f&Tn&&(Te===null?Te=[e]:Te.push(e))}var ne=null;var fe=0;var ve=null;function go(e){ve=e}var pi=1;var fn=0;var Me=false;function yi(){return++pi}function Bt(e){var t=e.f;if((t&Re)!==0)return true;if((t&ot)!==0){var n=e.deps,i=(t&ce)!==0;if(n!==null){var a,o,s=(t&an)!==0,f=i&&S!==null&&!Me,c=n.length;if(s||f){var d=e,m=d.parent;for(a=0;a<c;a++)o=n[a],(s||!o?.reactions?.includes(d))&&(o.reactions??=[]).push(d);s&&(d.f^=an),f&&m!==null&&(m.f&ce)===0&&(d.f^=ce)}for(a=0;a<c;a++)if(o=n[a],Bt(o)&&si(o),o.wv>e.wv)return true}(!i||S!==null&&!Me)&&be(e,ae)}return false}function _o(e,t){for(var n=t;n!==null;){if((n.f&on)!==0)try{n.fn(e);return}catch{n.f^=on}n=n.parent}throw tn=false,e}function Fr(e){return(e.f&vn)===0&&(e.parent===null||(e.parent.f&on)===0)}function mn(e,t,n,i){if(tn){if(n===null&&(tn=false),Fr(t))throw e;return}if(n!==null&&(tn=true),_o(e,t),Fr(t))throw e}function wi(e,t,n=true){var i=e.reactions;if(i!==null)for(var a=0;a<i.length;a++){var o=i[a];Te?.includes(e)||((o.f&me)!==0?wi(o,t,false):t===o&&(n?be(o,Re):(o.f&ae)!==0&&be(o,ot),bn(o)))}}function Ei(e){var t=ne,n=fe,i=ve,a=k,o=Me,s=Te,f=re,c=Ie,d=e.f;ne=null,fe=0,ve=null,Me=(d&ce)!==0&&(Ie||!rt||k===null),k=(d&(Ne|lt))===0?e:null,Te=null,Vr(e.ctx),Ie=false,fn++,e.f|=Tn;try{var m=(0,e.fn)(),h=e.deps;if(ne!==null){var b;if(cn(e,fe),h!==null&&fe>0)for(h.length=fe+ne.length,b=0;b<ne.length;b++)h[fe+b]=ne[b];else e.deps=h=ne;if(!Me)for(b=fe;b<h.length;b++)(h[b].reactions??=[]).push(e)}else h!==null&&fe<h.length&&(cn(e,fe),h.length=fe);if($i()&&ve!==null&&!Ie&&h!==null&&(e.f&(me|ot|Re))===0)for(b=0;b<ve.length;b++)wi(ve[b],e);return a!==null&&a!==e&&(fn++,ve!==null&&(i===null?i=ve:i.push(...ve))),m}finally{ne=t,fe=n,ve=i,k=a,Me=o,Te=s,Vr(f),Ie=c,e.f^=Tn}}function mo(e,t){let n=t.reactions;if(n!==null){var i=Ol.call(n,e);if(i!==-1){var a=n.length-1;a===0?n=t.reactions=null:(n[i]=n[a],n.pop())}}n===null&&(t.f&me)!==0&&(ne===null||!ne.includes(t))&&(be(t,ot),(t.f&(ce|an))===0&&(t.f^=an),oi(t),cn(t,0))}function cn(e,t){var n=e.deps;if(n!==null)for(var i=t;i<n.length;i++)mo(e,n[i])}function Zn(e){var t=e.f;if((t&vn)===0){be(e,ae);var n=S,i=re,a=rt;S=e,rt=true;try{(t&qn)!==0?uo(e):ci(e),fi(e);var o=Ei(e);e.teardown=typeof o=="function"?o:null,e.wv=pi;var s=e.deps,f;Nr&&to&&e.f&Re}catch(c){mn(c,e,n,i||e.ctx)}finally{rt=a,S=n}}}function bo(){try{Wl()}catch(e){if(un!==null)mn(e,un,null);else throw e}}function Ci(){var e=rt;try{var t=0;for(rt=true;Ft.length>0;){t++>1e3&&bo();var n=Ft,i=n.length;Ft=[];for(var a=0;a<i;a++){var o=yo(n[a]);po(o)}Ut.clear()}}finally{sn=false,rt=e,un=null}}function po(e){var t=e.length;if(t!==0)for(var n=0;n<t;n++){var i=e[n];if((i.f&(vn|wt))===0)try{Bt(i)&&(Zn(i),i.deps===null&&i.first===null&&i.nodes_start===null&&(i.teardown===null?vi(i):i.fn=null))}catch(a){mn(a,i,null,i.ctx)}}}function bn(e){sn||(sn=true,queueMicrotask(Ci));for(var t=un=e;t.parent!==null;){t=t.parent;var n=t.f;if((n&(lt|Ne))!==0){if((n&ae)===0)return;t.f^=ae}}Ft.push(t)}function yo(e){for(var t=[],n=e;n!==null;){var i=n.f,a=(i&(Ne|lt))!==0,o=a&&(i&ae)!==0;if(!o&&(i&wt)===0){if((i&zr)!==0)t.push(n);else if(a)n.f^=ae;else try{Bt(n)&&Zn(n)}catch(c){mn(c,n,null,n.ctx)}var s=n.first;if(s!==null){n=s;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)n=f.next,f=f.parent}return t}function E(e){for(var t;;){if(ho(),Ft.length===0)return t;sn=true,Ci()}}async function kn(){await Promise.resolve(),E()}function l(e){var t=e.f,n=(t&me)!==0;if(k!==null&&!Ie){if(!Te?.includes(e)){var i=k.deps;e.rv<fn&&(e.rv=fn,ne===null&&i!==null&&i[fe]===e?fe++:ne===null?ne=[e]:(!Me||!ne.includes(e))&&ne.push(e))}}else if(n&&e.deps===null&&e.effects===null){var a=e,o=a.parent;o!==null&&(o.f&ce)===0&&(a.f^=ce)}return n&&(a=e,Bt(a)&&si(a)),jt&&Ut.has(e)?Ut.get(e):e.v}function it(e){var t=Ie;try{return Ie=true,e()}finally{Ie=t}}var wo=-7169;function be(e,t){e.f=e.f&wo|t}var Ut=new Map;function Ai(e,t){var n={f:0,v:e,reactions:null,equals:ii,rv:0,wv:0};return n}function D(e,t){const n=Ai(e);return bi(n),n}function Wn(e,t=false){const n=Ai(e);return t||(n.equals=jn),n}function p(e,t,n=false){k!==null&&!Ie&&$i()&&(k.f&(me|qn))!==0&&!Te?.includes(e)&&Ql();let i=n?Ve(t):t;return Eo(e,i)}function Eo(e,t){if(!e.equals(t)){var n=e.v;jt?Ut.set(e,t):Ut.set(e,n),e.v=t,(e.f&me)!==0&&((e.f&Re)!==0&&ai(e),be(e,(e.f&ce)===0?ae:ot)),e.wv=yi(),Ii(e,Re),S!==null&&(S.f&ae)!==0&&(S.f&(Ne|lt))===0&&(ve===null?go([e]):ve.push(e))}return t}function Ii(e,t){var n=e.reactions;if(n!==null)for(var i=n.length,a=0;a<i;a++){var o=n[a],s=o.f;(s&Re)===0&&(be(o,t),(s&(ae|ce))!==0&&((s&me)!==0?Ii(o,ot):bn(o)))}}var re=null;function Vr(e){re=e}function xi(e,t=false,n){var i=re={p:re,c:null,d:false,e:null,m:false,s:e,x:null,l:null};Bn(()=>{i.d=true})}function Ri(e){const t=re;if(t!==null){e!==void 0&&(t.x=e);const s=t.e;if(s!==null){var n=S,i=k;t.e=null;try{for(var a=0;a<s.length;a++){var o=s[a];je(o.effect),$e(o.reaction),Hn(o.fn)}}finally{je(n),$e(i)}}re=t.p,t.m=true}return e||{}}function $i(){return true}var Co=["touchstart","touchmove"];function Ao(e){return Co.includes(e)}function Io(e,t){if(t){const n=document.body;e.autofocus=true,Gn(()=>{document.activeElement===n&&e.focus()})}}var Mr=false;function ki(){Mr||(Mr=true,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:true}))}function Si(e){var t=k,n=S;$e(null),je(null);try{return e()}finally{$e(t),je(n)}}function xo(e,t,n,i=n){e.addEventListener(t,()=>Si(n));const a=e.__on_r;a?e.__on_r=()=>{a(),i(true)}:e.__on_r=()=>i(true),ki()}var Ti=new Set;var On=new Set;function Ro(e,t,n,i={}){function a(o){if(i.capture||Pt.call(t,o),!o.cancelBubble)return Si(()=>n?.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Gn(()=>{t.addEventListener(e,a,i)}):t.addEventListener(e,a,i),a}function Fe(e,t,n,i,a){var o={capture:i,passive:a},s=Ro(e,t,n,o);(t===document.body||t===window||t===document)&&Bn(()=>{t.removeEventListener(e,s,o)})}function $o(e){for(var t=0;t<e.length;t++)Ti.add(e[t]);for(var n of On)n(e)}function Pt(e){var t=this,n=t.ownerDocument,i=e.type,a=e.composedPath?.()||[],o=a[0]||e.target,s=0,f=e.__root;if(f){var c=a.indexOf(f);if(c!==-1&&(t===document||t===window)){e.__root=t;return}var d=a.indexOf(t);if(d===-1)return;c<=d&&(s=c)}if(o=a[s]||e.target,o!==t){Vt(e,"currentTarget",{configurable:true,get(){return o||n}});var m=k,h=S;$e(null),je(null);try{for(var b,w=[];o!==null;){var F=o.assignedSlot||o.parentNode||o.host||null;try{var V=o["__"+i];if(V!=null&&(!o.disabled||e.target===o))if(Jr(V)){var[q,...R]=V;q.apply(o,[e,...R])}else V.call(o,e)}catch(ee){b?w.push(ee):b=ee}if(e.cancelBubble||F===t||F===null)break;o=F}if(b){for(let ee of w)queueMicrotask(()=>{throw ee});throw b}}finally{e.__root=t,delete e.currentTarget,$e(m),je(h)}}}function Jn(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function xe(e,t){var n=S;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function pe(e,t){var n=(t&Dl)!==0,i=(t&Ll)!==0,a,o=!e.startsWith("<!>");return()=>{if(O)return xe(P,null),P;a===void 0&&(a=Jn(o?e:"<!>"+e),n||(a=he(a)));var s=i||ti?document.importNode(a,true):a.cloneNode(true);if(n){var f=he(s),c=s.lastChild;xe(f,c)}else xe(s,s);return s}}function pn(e,t,n="svg"){var i=!e.startsWith("<!>"),a=`<${n}>${i?e:"<!>"+e}</${n}>`,o;return()=>{if(O)return xe(P,null),P;if(!o){var s=Jn(a),f=he(s);o=he(f)}var c=o.cloneNode(true);return xe(c,c),c}}function zt(){if(O)return xe(P,null),P;var e=document.createDocumentFragment(),t=document.createComment(""),n=gn();return e.append(t,n),xe(t,n),e}function B(e,t){if(O){S.nodes_end=P,Et();return}e!==null&&e.before(t)}function ko(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function Ni(e,t){return Di(e,t)}function So(e,t){Nn(),t.intro=t.intro??false;const n=t.target,i=O,a=P;try{for(var o=he(n);o&&(o.nodeType!==8||o.data!==Mn);)o=Be(o);if(!o)throw pt;bt(true),qe(o),Et();const s=Di(e,{...t,anchor:o});if(P===null||P.nodeType!==8||P.data!==Zr)throw hn(),pt;return bt(false),s}catch(s){if(s===pt)return t.recover===false&&Jl(),Nn(),no(n),bt(false),Ni(e,t);throw s}finally{bt(i),qe(a)}}var _t=new Map;function Di(e,{target:t,anchor:n,props:i={},events:a,context:o,intro:s=true}){Nn();var f=new Set,c=h=>{for(var b=0;b<h.length;b++){var w=h[b];if(!f.has(w)){f.add(w);var F=Ao(w);t.addEventListener(w,Pt,{passive:F});var V=_t.get(w);V===void 0?(document.addEventListener(w,Pt,{passive:F}),_t.set(w,1)):_t.set(w,V+1)}}};c(Fl(Ti)),On.add(c);var d=void 0,m=so(()=>{var h=n??t.appendChild(gn());return Ln(()=>{if(o){xi({});var b=re;b.c=o}a&&(i.$$events=a),O&&xe(h,null),d=e(h,i)||{},O&&(S.nodes_end=P),o&&Ri()}),()=>{for(var b of f){t.removeEventListener(b,Pt);var w=_t.get(b);--w===0?(document.removeEventListener(b,Pt),_t.delete(b)):_t.set(b,w)}On.delete(c),h!==n&&h.parentNode?.removeChild(h)}});return Fn.set(d,m),d}var Fn=new WeakMap;function To(e,t){const n=Fn.get(e);return n?(Fn.delete(e),n(t)):Promise.resolve()}function X(e,t,[n,i]=[0,0]){O&&n===0&&Et();var a=e,o=null,s=null,f=oe,c=n>0?Un:0,d=false;const m=(b,w=true)=>{d=true,h(w,b)},h=(b,w)=>{if(f===(f=b))return;let F=false;if(O&&i!==-1){if(n===0){const q=a.data;q===Mn?i=0:q===Gr?i=1/0:(i=parseInt(q.substring(1)),i!==i&&(i=f?1/0:-1))}const V=i>n;!!f===V&&(a=eo(),qe(a),bt(false),F=true,i=-1)}f?(o?Pr(o):w&&(o=Ln(()=>w(a))),s&&Pn(s,()=>{s=null})):(s?Pr(s):w&&(s=Ln(()=>w(a,[n+1,i]))),o&&Pn(o,()=>{o=null})),F&&bt(true)};ui(()=>{d=false,t(m),d||h(null,null)},c),O&&(a=P)}function tt(e,t,n=false,i=false,a=false){var o=e,s="";Ae(()=>{var f=S;if(s===(s=t()??"")){O&&Et();return}if(f.nodes_start!==null&&(di(f.nodes_start,f.nodes_end),f.nodes_start=f.nodes_end=null),s!==""){if(O){P.data;for(var c=Et(),d=c;c!==null&&(c.nodeType!==8||c.data!=="");)d=c,c=Be(c);if(c===null)throw hn(),pt;xe(P,d),o=qe(c);return}var m=s+"";n?m=`<svg>${m}</svg>`:i&&(m=`<math>${m}</math>`);var h=Jn(m);if((n||i)&&(h=he(h)),xe(he(h),h.lastChild),n||i)for(;he(h);)o.before(he(h));else o.before(h)}})}function No(e,t,n,i,a){O&&Et();var o=t.$$slots?.[n],s=false;o===true&&(o=t.children,s=true),o===void 0||o(e,s?()=>i:i)}var qr=[...`
2
+ \r\f\xA0\v\uFEFF`];function Do(e,t,n){var i=""+e;if(n){for(var a in n)if(n[a])i=i?i+" "+a:a;else if(i.length)for(var o=a.length,s=0;(s=i.indexOf(a,s))>=0;){var f=s+o;(s===0||qr.includes(i[s-1]))&&(f===i.length||qr.includes(i[f]))?i=(s===0?"":i.substring(0,s))+i.substring(f+1):s=f}}return i===""?null:i}function Lo(e,t,n,i,a,o){var s=e.__className;if(O||s!==n||s===void 0){var f=Do(n,i,o);(!O||f!==e.getAttribute("class"))&&(f==null?e.removeAttribute("class"):e.className=f),e.__className=n}else if(o&&a!==o)for(var c in o){var d=!!o[c];(a==null||d!==!!a[c])&&e.classList.toggle(c,d)}return o}var Po=Symbol("is custom element");var Oo=Symbol("is html");function Ur(e){if(O){var t=false,n=()=>{if(!t){if(t=true,e.hasAttribute("value")){var i=e.value;$(e,"value",null),e.value=i}if(e.hasAttribute("checked")){var a=e.checked;$(e,"checked",null),e.checked=a}}};e.__on_r=n,vo(n),ki()}}function Fo(e,t){var n=Li(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!=="PROGRESS")||(e.value=t??"")}function $(e,t,n,i){var a=Li(e);O&&(a[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||a[t]!==(a[t]=n)&&(t==="loading"&&(e[Hl]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Vo(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Li(e){return e.__attributes??={[Po]:e.nodeName.includes("-"),[Oo]:e.namespaceURI===Pl}}var jr=new Map;function Vo(e){var t=jr.get(e.nodeName);if(t)return t;jr.set(e.nodeName,t=[]);for(var n,i=e,a=Element.prototype;a!==i;){n=Vl(i);for(var o in n)n[o].set&&t.push(o);i=Kr(i)}return t}function Mo(e,t,n=t){xo(e,"change",i=>{var a=i?e.defaultChecked:e.checked;n(a)}),(O&&e.defaultChecked!==e.checked||it(t)==null)&&n(e.checked),Yn(()=>{var i=t();e.checked=!!i})}function Br(e,t){return e===t||e?.[Ot]===t}function Qt(e={},t,n,i){return Hn(()=>{var a,o;return Yn(()=>{a=o,o=[],it(()=>{e!==n(...o)&&(t(e,...o),a&&Br(n(...a),e)&&t(null,...a))})}),()=>{Gn(()=>{o&&Br(n(...o),e)&&t(null,...o)})}}),e}function Pi(e){re===null&&Wr(),Dn(()=>{const t=it(e);if(typeof t=="function")return t})}function qo(e){re===null&&Wr(),Pi(()=>()=>it(e))}function Oi(e,t,n){if(e==null)return t(void 0),yt;const i=it(()=>e.subscribe(t,n));return i.unsubscribe?()=>i.unsubscribe():i}var mt=[];function Uo(e,t=yt){let n=null;const i=new Set;function a(f){if(li(e,f)&&(e=f,n)){const c=!mt.length;for(const d of i)d[1](),mt.push(d,e);if(c){for(let d=0;d<mt.length;d+=2)mt[d][0](mt[d+1]);mt.length=0}}}function o(f){a(f(e))}function s(f,c=yt){const d=[f,c];return i.add(d),i.size===1&&(n=t(a,o)||yt),f(e),()=>{i.delete(d),i.size===0&&n&&(n(),n=null)}}return{set:a,update:o,subscribe:s}}function nn(e){let t;return Oi(e,n=>t=n)(),t}var en=false;var Vn=Symbol();function jo(e,t,n){const i=n[t]??={store:null,source:Wn(void 0),unsubscribe:yt};if(i.store!==e&&!(Vn in n))if(i.unsubscribe(),i.store=e??null,e==null)i.source.v=void 0,i.unsubscribe=yt;else{var a=true;i.unsubscribe=Oi(e,o=>{a?i.source.v=o:p(i.source,o)}),a=false}return e&&Vn in n?nn(e):l(i.source)}function Bo(){const e={};function t(){Bn(()=>{for(var n in e)e[n].unsubscribe();Vt(e,Vn,{enumerable:false,value:true})})}return[e,t]}function Ho(e){var t=en;try{return en=false,[e(),en]}finally{en=t}}function Hr(e){return e.ctx?.d??false}function C(e,t,n,i){var a=(n&kl)!==0,o=true,s=(n&Tl)!==0,f=(n&Nl)!==0,c=false,d;s?[d,c]=Ho(()=>e[t]):d=e[t];var m=Ot in e||ei in e,h=s&&(nt(e,t)?.set??(m&&t in e&&(U=>e[t]=U)))||void 0,b=i,w=true,F=false,V=()=>(F=true,w&&(w=false,f?b=it(i):b=i),b);d===void 0&&i!==void 0&&(h&&o&&Kl(),d=V(),h&&h(d));var q;if(q=()=>{var U=e[t];return U===void 0?V():(w=true,F=false,U)},(n&Sl)===0)return q;if(h){var R=e.$$legacy;return function(U,se){return arguments.length>0?((!se||R||c)&&h(se?q():U),U):q()}}var ee=false,ke=Wn(d),z=_n(()=>{var U=q(),se=l(ke);return ee?(ee=false,se):ke.v=U});return s&&l(z),a||(z.equals=jn),function(U,se){if(arguments.length>0){const He=se?l(z):s?Ve(U):U;if(!z.equals(He)){if(ee=true,p(ke,He),F&&b!==void 0&&(b=He),Hr(z))return U;it(()=>l(z))}return U}return Hr(z)?z.v:l(z)}}function Yo(e){return new Go(e)}var Go=class{#t;#e;constructor(t){var n=new Map,i=(o,s)=>{var f=Wn(s);return n.set(o,f),f};const a=new Proxy({...t.props||{},$$events:{}},{get(o,s){return l(n.get(s)??i(s,Reflect.get(o,s)))},has(o,s){return s===ei?true:(l(n.get(s)??i(s,Reflect.get(o,s))),Reflect.has(o,s))},set(o,s,f){return p(n.get(s)??i(s,f),f),Reflect.set(o,s,f)}});this.#e=(t.hydrate?So:Ni)(t.component,{target:t.target,anchor:t.anchor,props:a,context:t.context,intro:t.intro??false,recover:t.recover}),(!t?.props?.$$host||t.sync===false)&&E(),this.#t=a.$$events;for(const o of Object.keys(this.#e))o==="$set"||o==="$destroy"||o==="$on"||Vt(this,o,{get(){return this.#e[o]},set(s){this.#e[o]=s},enumerable:true});this.#e.$set=o=>{Object.assign(a,o)},this.#e.$destroy=()=>{To(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const i=(...a)=>n.call(this,...a);return this.#t[t].push(i),()=>{this.#t[t]=this.#t[t].filter(a=>a!==i)}}$destroy(){this.#e.$destroy()}};var Fi;typeof HTMLElement=="function"&&(Fi=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=false;$$d={};$$r=false;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const i=this.$$c.$on(e,t);this.$$l_u.set(t,i)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const i=this.$$l_u.get(t);i&&(i(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=true,!this.$$c){let e=function(i){return a=>{const o=document.createElement("slot");i!=="default"&&(o.name=i),B(a,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Zo(this);for(const i of this.$$s)i in n&&(i==="default"&&!this.$$d.children?(this.$$d.children=e(i),t.default=true):t[i]=e(i));for(const i of this.attributes){const a=this.$$g_p(i.name);a in this.$$d||(this.$$d[a]=rn(a,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=Yo({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=ao(()=>{Yn(()=>{this.$$r=true;for(const i of ln(this.$$c)){if(!this.$$p_d[i]?.reflect)continue;this.$$d[i]=this.$$c[i];const a=rn(i,this.$$d[i],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,a)}this.$$r=false})});for(const i in this.$$l)for(const a of this.$$l[i]){const o=this.$$c.$on(i,a);this.$$l_u.set(a,o)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=rn(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=false,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return ln(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function rn(e,t,n,i){const a=n[e]?.type;if(t=a==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(a){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(a){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Zo(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=true}),t}function Wo(e,t,n,i,a,o){let s=class extends Fi{constructor(){super(e,n,a),this.$$p_d=t}static get observedAttributes(){return ln(t).map(f=>(t[f].attribute||f).toLowerCase())}};return ln(t).forEach(f=>{Vt(s.prototype,f,{get(){return this.$$c&&f in this.$$c?this.$$c[f]:this.$$d[f]},set(c){c=rn(f,c,t),this.$$d[f]=c;var d=this.$$c;if(d){var m=nt(d,f)?.get;m?d[f]=c:d.$set({[f]:c})}}})}),i.forEach(f=>{Vt(s.prototype,f,{get(){return this.$$c?.[f]}})}),e.element=s,s}var Vi=new TextEncoder;function Jo(e){return[...new Uint8Array(e)].map(t=>t.toString(16).padStart(2,"0")).join("")}async function Ko(e,t="SHA-256",n=1e5){const i=Date.now().toString(16);e||(e=Math.round(Math.random()*n));const a=await Mi(i,e,t);return{algorithm:t,challenge:a,salt:i,signature:""}}async function Mi(e,t,n){if(typeof crypto>"u"||!("subtle"in crypto)||!("digest"in crypto.subtle))throw new Error("Web Crypto is not available. Secure context is required (https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).");return Jo(await crypto.subtle.digest(n.toUpperCase(),Vi.encode(e+t)))}function Xo(e,t,n="SHA-256",i=1e6,a=0){const o=new AbortController,s=Date.now();return{promise:(async()=>{for(let c=a;c<=i;c+=1){if(o.signal.aborted)return null;if(await Mi(t,c,n)===e)return{number:c,took:Date.now()-s}}return null})(),controller:o}}function Yr(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}function zo(e){const t=atob(e),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}function Qo(e,t=12){const n=new Uint8Array(t);for(let i=0;i<t;i++)n[i]=e%256,e=Math.floor(e/256);return n}async function ea(e,t="",n=1e6,i=0){const a="AES-GCM",o=new AbortController,s=Date.now(),f=async()=>{for(let m=i;m<=n;m+=1){if(o.signal.aborted||!c||!d)return null;try{const h=await crypto.subtle.decrypt({name:a,iv:Qo(m)},c,d);if(h)return{clearText:new TextDecoder().decode(h),took:Date.now()-s}}catch{}}return null};let c=null,d=null;try{d=zo(e);const m=await crypto.subtle.digest("SHA-256",Vi.encode(t));c=await crypto.subtle.importKey("raw",m,a,false,["decrypt"])}catch{return{promise:Promise.reject(),controller:o}}return{promise:f(),controller:o}}var y=(e=>(e.CODE="code",e.ERROR="error",e.VERIFIED="verified",e.VERIFYING="verifying",e.UNVERIFIED="unverified",e.EXPIRED="expired",e))(y||{});var Q=(e=>(e.ERROR="error",e.LOADING="loading",e.PLAYING="playing",e.PAUSED="paused",e.READY="ready",e))(Q||{});globalThis.altchaPlugins=globalThis.altchaPlugins||[];globalThis.altchaI18n=globalThis.altchaI18n||{get:e=>nn(globalThis.altchaI18n.store)[e],set:(e,t)=>{Object.assign(nn(globalThis.altchaI18n.store),{[e]:t}),globalThis.altchaI18n.store.set(nn(globalThis.altchaI18n.store))},store:Uo({})};var ta={ariaLinkLabel:"Visit Altcha.org",enterCode:"Enter code",enterCodeAria:"Enter code you hear. Press Space to play audio.",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."};globalThis.altchaI18n.set("en",ta);var Sn=(e,t)=>{let n=ro(()=>Ul(t?.(),24));var i=la();Ae(()=>{$(i,"width",l(n)),$(i,"height",l(n))}),B(e,i)};function na(e,t){e.code==="Space"&&(e.preventDefault(),e.stopImmediatePropagation(),t())}function ra(e,t){e.preventDefault(),t()}function ia(e,t,n,i,a,o,s,f){[y.UNVERIFIED,y.ERROR,y.EXPIRED,y.CODE].includes(l(t))?n()!==false&&l(i)?.reportValidity()===false?p(a,false):o()?s():f():p(a,true)}var la=pn('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="altcha-spinner"><path d="M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z" fill="currentColor" opacity=".25"></path><path d="M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z" fill="currentColor"></path></svg>');var oa=pe('<input type="hidden">');var aa=pe('<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>');var sa=pn('<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>');var ua=pn('<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>');var fa=pn('<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>');var ca=pe('<button type="button" class="altcha-code-challenge-audio"><!></button>');var da=pe("<audio hidden autoplay><source></audio>");var va=pe('<div class="altcha-code-challenge" role="dialog"><div class="altcha-code-challenge-arrow"></div> <form data-code-challenge-form="1"><img class="altcha-code-challenge-image" alt=""> <input type="text" autocomplete="off" name="code" class="altcha-code-challenge-input" required> <div class="altcha-code-challenge-buttons"><div class="altcha-code-challenge-buttons-left"><!> <button type="button" class="altcha-code-challenge-reload"><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> <button type="submit" class="altcha-code-challenge-verify"><!> </button></div> <!></form></div>');var ha=pe("<div><!></div>");var ga=pe("<div><!></div>");var _a=pe('<div class="altcha-error"><svg width="14" height="14" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"></path></svg> <!></div>');var ma=pe('<div class="altcha-footer"><div><!></div></div>');var ba=pe('<div class="altcha-anchor-arrow"></div>');var pa=pe('<!> <div class="altcha"><div class="altcha-main"><div><!> <input type="checkbox"></div> <label class="altcha-label"><!></label> <!> <!> <!></div> <!> <!> <!></div>',1);function ya(e,t){xi(t,true);const[n,i]=Bo(),a=()=>jo(Ui,"$altchaI18nStore",n);let o=C(t,"auto",7,void 0),s=C(t,"blockspam",7,void 0),f=C(t,"challengeurl",7,void 0),c=C(t,"challengejson",7,void 0),d=C(t,"credentials",7,void 0),m=C(t,"customfetch",7,void 0),h=C(t,"debug",7,false),b=C(t,"delay",7,0),w=C(t,"disableautofocus",7,false),F=C(t,"refetchonexpire",7,true),V=C(t,"disablerefetchonexpire",23,()=>!F()),q=C(t,"expire",7,void 0),R=C(t,"floating",7,void 0),ee=C(t,"floatinganchor",7,void 0),ke=C(t,"floatingoffset",7,void 0),z=C(t,"floatingpersist",7,false),U=C(t,"hidefooter",7,false),se=C(t,"hidelogo",7,false),He=C(t,"id",7,void 0),Ht=C(t,"language",7,void 0),Ye=C(t,"name",7,"altcha"),Ge=C(t,"maxnumber",7,1e6),Ct=C(t,"mockerror",7,false),De=C(t,"obfuscated",7,void 0),ge=C(t,"overlay",7,void 0),At=C(t,"overlaycontent",7,void 0),Yt=C(t,"plugins",7,void 0),Ze=C(t,"sentinel",7,void 0),ye=C(t,"spamfilter",7,false),st=C(t,"strings",7,void 0),de=C(t,"test",7,false),te=C(t,"verifyurl",7,void 0),ut=C(t,"workers",23,()=>Math.min(16,navigator.hardwareConcurrency||8)),It=C(t,"workerurl",7,void 0);const{altchaI18n:qi}=globalThis,Ui=qi.store,Kn=["SHA-256","SHA-384","SHA-512"],ji="https://altcha.org/",Le=(r,u)=>{t.$$host.dispatchEvent(new CustomEvent(r,{detail:u}))},Xn=document.documentElement.lang?.split("-")?.[0],yn=Lt(()=>f()&&new URL(f(),location.origin).host.endsWith(".altcha.org")&&!!f()?.includes("apiKey=ckey_")),Gt=Lt(()=>c()?cr(c()):void 0),Bi=Lt(()=>st()?cr(st()):{}),L=Lt(()=>({...er(a()),...l(Bi)})),zn=Lt(()=>`${He()||Ye()}_checkbox_${Math.round(Math.random()*1e8)}`);let We=D(null),xt=D(false),Y=D(null),I=D(Ve(y.UNVERIFIED)),M=D(void 0),Rt=D(null),Pe=D(null),ue=D(null),wn=D(null),ft=D(null),T=D(null),$t=D(null),Je=D(null),we=null,G=D(null),Ke=D(false),Oe=[],En=D(false),Ee=D(null);Dn(()=>{nl(l(Je))}),Dn(()=>{rl(l(I))}),qo(()=>{Hi(),p($t,null),l(T)&&(l(T).removeEventListener("submit",or),l(T).removeEventListener("reset",ar),l(T).removeEventListener("focusin",lr),p(T,null)),we&&(clearTimeout(we),we=null),document.removeEventListener("click",rr),document.removeEventListener("scroll",ir),window.removeEventListener("resize",fr)}),Pi(()=>{x("mounted","2.2.4"),x("workers",ut()),Wi(),x("plugins",Oe.length?Oe.map(r=>r.constructor.pluginName).join(", "):"none"),de()&&x("using test mode"),q()&&An(q()),o()!==void 0&&x("auto",o()),R()!==void 0&&gr(R()),p(T,l(M)?.closest("form"),true),l(T)&&(l(T).addEventListener("submit",or,{capture:true}),l(T).addEventListener("reset",ar),(o()==="onfocus"||z()==="focus")&&l(T).addEventListener("focusin",lr)),ge()&&_r(true),o()==="onload"&&(De()?kt():Se()),l(yn)&&(U()||se())&&x("Attributes hidefooter and hidelogo ignored because usage with free API Keys requires attribution."),requestAnimationFrame(()=>{Le("load")})});function Zt(r,u){return btoa(JSON.stringify({algorithm:r.algorithm,challenge:r.challenge,number:u.number,salt:r.salt,signature:r.signature,test:de()?true:void 0,took:u.took}))}function Hi(){for(const r of Oe)r.destroy()}function Qn(){f()&&!V()&&l(I)===y.VERIFIED?Se():Xe(y.EXPIRED,l(L).expired)}async function Yi(){if(Ct())throw x("mocking error"),new Error("Mocked error.");if(l(Gt))return x("using provided json data"),dr(l(Gt).salt),l(Gt);if(de())return x("generating test challenge",{test:de()}),Ko(typeof de()!="boolean"?+de():void 0);{if(!f()&&l(T)){const g=l(T).getAttribute("action");g?.includes("/form/")&&f(g+"/altcha")}if(!f())throw new Error("Attribute challengeurl not set.");x("fetching challenge from",f());const r={credentials:typeof d()=="boolean"?"include":d(),headers:ye()!==false?{"x-altcha-spam-filter":"1"}:{}},u=await Cn()(f(),r);if(!u||!(u instanceof Response))throw new Error("Custom fetch function did not return a response.");if(u.status!==200)throw new Error(`Server responded with ${u.status}.`);const v=u.headers.get("X-Altcha-Config"),_=await u.json();if(dr(_.salt),v)try{const g=JSON.parse(v);g&&typeof g=="object"&&(g.verifyurl&&!g.verifyurl.startsWith("fn:")&&(g.verifyurl=nr(g.verifyurl)),pr(g))}catch(g){x("unable to configure from X-Altcha-Config",g)}return _}}function Gi(r){const u=l(T)?.querySelector(typeof r=="string"?`input[name="${r}"]`:'input[type="email"]:not([data-no-spamfilter])');return u?.value?.slice(u.value.indexOf("@"))||void 0}function Cn(){let r=fetch;if(m())if(x("using customfetch"),typeof m()=="string"){if(r=globalThis[m()]||null,!r)throw new Error(`Custom fetch function not found: ${m()}`)}else r=m();return r}function er(r,u=[Ht()||"",document.documentElement.lang||"",...navigator.languages]){const v=Object.keys(r).map(g=>g.toLowerCase()),_=u.reduce((g,A)=>(A=A.toLowerCase(),g||(r[A]?A:null)||v.find(N=>A.split("-")[0]===N.split("-")[0])||null),null);return r[_||"en"]}function Zi(){return ye()==="ipAddress"?{blockedCountries:void 0,classifier:void 0,disableRules:void 0,email:false,expectedCountries:void 0,expectedLanguages:void 0,fields:false,ipAddress:void 0,text:void 0,timeZone:void 0}:typeof ye()=="object"?ye():{blockedCountries:void 0,classifier:void 0,disableRules:void 0,email:void 0,expectedCountries:void 0,expectedLanguages:void 0,fields:void 0,ipAddress:void 0,text:void 0,timeZone:void 0}}function tr(r){return[...l(T)?.querySelectorAll(r?.length?r.map(v=>`input[name="${v}"]`).join(", "):'input[type="text"]:not([data-no-spamfilter]), textarea:not([data-no-spamfilter])')||[]].reduce((v,_)=>{const g=_.name,A=_.value;return g&&A&&(v[g]=/\n/.test(A)?A.replace(new RegExp("(?<!\\r)\\n","g"),`\r
3
+ `):A),v},{})}function nr(r,u){const v=new URL(f()||location.origin),_=new URL(r,v);if(_.search||(_.search=v.search),u)for(const g in u)u[g]!==void 0&&u[g]!==null&&_.searchParams.set(g,u[g]);return _.toString()}function Wi(){const r=Yt()!==void 0?Yt().split(","):void 0;for(const u of globalThis.altchaPlugins)(!r||r.includes(u.pluginName))&&Oe.push(new u({el:l(M),clarify:kt,dispatch:Le,getConfiguration:yr,getFloatingAnchor:wr,getState:Er,log:x,reset:Xe,solve:br,setState:Ce,setFloatingAnchor:Cr,verify:Se}))}function x(...r){(h()||r.some(u=>u instanceof Error))&&console[r[0]instanceof Error?"error":"log"]("ALTCHA",`[name=${Ye()}]`,...r)}function Ji(){p(G,Q.PAUSED,true)}function Ki(r){p(G,Q.ERROR,true)}function Xi(){p(G,Q.READY,true)}function zi(){p(G,Q.LOADING,true)}function Qi(){p(G,Q.PLAYING,true)}function el(){p(G,Q.PAUSED,true)}function tl(r){if(r.preventDefault(),r.stopPropagation(),l(Y)){const u=new FormData(r.target),v=String(u.get("code"));if(te()?.startsWith("fn:")){const _=te().replace(/^fn:/,"");if(x(`calling ${_} function instead of verifyurl`),!(_ in globalThis))throw new Error(`Global function "${_}" is undefined.`);return globalThis[_]({challenge:l(Y).challenge,code:v,solution:l(Y).solution})}p(Ke,true),vr(Zt(l(Y).challenge,l(Y).solution),v).then(({reason:_,verified:g})=>{g?(p(Y,null),Ce(y.VERIFIED),x("verified"),kn().then(()=>{l(wn)?.focus(),Le("verified",{payload:l(Ee)}),o()==="onsubmit"?hr(l($t)):ge()&&St()})):(Xe(),p(Je,_||"Verification failed",true))}).catch(_=>{p(Y,null),Ce(y.ERROR,_),x("sentinel verification failed:",_)}).finally(()=>{p(Ke,false)})}}function rr(r){const u=r.target;R()&&u&&!l(M).contains(u)&&(l(I)===y.VERIFIED&&z()===false||l(I)===y.VERIFIED&&z()==="focus"&&!l(T)?.matches(":focus-within")||o()==="off"&&l(I)===y.UNVERIFIED)&&St()}function ir(){R()&&l(I)!==y.UNVERIFIED&&Tt()}function nl(r){for(const u of Oe)typeof u.onErrorChange=="function"&&u.onErrorChange(l(Je))}function lr(r){l(I)===y.UNVERIFIED?Se():R()&&z()==="focus"&&l(I)===y.VERIFIED&&Wt()}function or(r){r.target?.hasAttribute("data-code-challenge-form")||(p($t,r.submitter,true),l(T)&&o()==="onsubmit"?(l($t)?.blur(),l(I)===y.UNVERIFIED?(r.preventDefault(),r.stopPropagation(),Se().then(()=>{hr(l($t))})):l(I)!==y.VERIFIED&&(r.preventDefault(),r.stopPropagation(),l(I)===y.VERIFYING&&sr())):l(T)&&R()&&o()==="off"&&l(I)===y.UNVERIFIED&&(r.preventDefault(),r.stopPropagation(),Wt()))}function ar(){Xe()}function sr(){l(I)===y.VERIFYING&&l(L).waitAlert&&alert(l(L).waitAlert)}function ur(){l(Pe)?l(Pe).paused?(l(Pe).currentTime=0,l(Pe).play()):l(Pe).pause():(p(En,true),requestAnimationFrame(()=>{l(Pe)?.play()}))}function rl(r){for(const u of Oe)typeof u.onStateChange=="function"&&u.onStateChange(l(I));R()&&l(I)!==y.UNVERIFIED&&requestAnimationFrame(()=>{Tt()}),p(xt,l(I)===y.VERIFIED),ge()&&l(ue)&&(l(I)!==y.UNVERIFIED?Wt():St())}function fr(){R()&&Tt()}function cr(r){return JSON.parse(r)}function dr(r){const u=new URLSearchParams(r.split("?")?.[1]),v=u.get("expires")||u.get("expire");if(v){const _=new Date(+v*1e3),g=isNaN(_.getTime())?0:_.getTime()-Date.now();g>0&&An(g)}else we&&(clearTimeout(we),we=null)}async function il(r){if(!te())throw new Error("Attribute verifyurl not set.");x("requesting server verification from",te());const u={payload:r};if(ye()!==false){const{blockedCountries:g,classifier:A,disableRules:N,email:H,expectedLanguages:j,expectedCountries:ie,fields:le,ipAddress:Qe,text:dt,timeZone:et}=Zi();u.blockedCountries=g,u.classifier=A,u.disableRules=N,u.email=H===false?void 0:Gi(H),u.expectedCountries=ie,u.expectedLanguages=j||(Xn?[Xn]:void 0),u.fields=le===false?void 0:tr(le),u.ipAddress=Qe===false?void 0:Qe||"auto",u.text=dt,u.timeZone=et===false?void 0:et||Yr()}const v=await Cn()(te(),{body:JSON.stringify(u),headers:{"content-type":"application/json"},method:"POST"});if(!v||!(v instanceof Response))throw new Error("Custom fetch function did not return a response.");if(v.status!==200)throw new Error(`Server responded with ${v.status}.`);const _=await v.json();if(_?.payload&&p(Ee,_.payload,true),Le("serververification",_),s()&&_.classification==="BAD")throw new Error("SpamFilter returned negative classification.")}async function vr(r,u){if(!te())throw new Error("Attribute verifyurl not set.");x("requesting sentinel verification from",te());const v={code:u,payload:r};Ze()&&(v.fields=Ze().fields?tr():void 0,v.timeZone=Ze().timeZone?Yr():void 0);const _=await Cn()(te(),{body:JSON.stringify(v),headers:{"content-type":"application/json"},method:"POST"});if(!_||!(_ instanceof Response))throw new Error("Fetch function did not return a response.");if(_.status!==200)throw new Error(`Server responded with ${_.status}.`);const g=await _.json();return g?.payload&&p(Ee,g.payload,true),Le("sentinelverification",g),g}function hr(r){l(T)&&"requestSubmit"in l(T)?l(T).requestSubmit(r):l(T)?.reportValidity()&&(r?r.click():l(T).submit())}function An(r){x("expire",r),we&&(clearTimeout(we),we=null),r<1?Qn():we=setTimeout(Qn,r)}function gr(r){x("floating",r),R()!==r&&(l(M).style.left="",l(M).style.top=""),R(r===true||r===""?"auto":r===false||r==="false"?void 0:R()),R()?(o()||o("onsubmit"),document.addEventListener("scroll",ir),document.addEventListener("click",rr),window.addEventListener("resize",fr)):o()==="onsubmit"&&o(void 0)}function _r(r){if(x("overlay",r),ge(r),r){if(o()||o("onsubmit"),l(ue)&&l(M).parentElement&&l(ue).replaceWith(l(M).parentElement),l(M)?.parentElement?.parentElement){p(ue,document.createElement("div"),true),l(M).parentElement.parentElement.appendChild(l(ue));const u=document.createElement("div"),v=document.createElement("button");v.type="button",v.innerHTML="&times;",v.addEventListener("click",_=>{_.preventDefault(),Xe()}),l(ue).classList.add("altcha-overlay-backdrop"),v.classList.add("altcha-overlay-close-button"),u.classList.add("altcha-overlay"),l(ue).append(u),u.append(v),At()&&u.append(...document.querySelectorAll(At())),u.append(l(M).parentElement)}}else l(ue)&&l(M).parentElement&&(l(ue).replaceWith(l(M).parentElement),l(M).style.display="block")}function mr(r){if(!r.algorithm)throw new Error("Invalid challenge. Property algorithm is missing.");if(r.signature===void 0)throw new Error("Invalid challenge. Property signature is missing.");if(!Kn.includes(r.algorithm.toUpperCase()))throw new Error(`Unknown algorithm value. Allowed values: ${Kn.join(", ")}`);if(!r.challenge||r.challenge.length<40)throw new Error("Challenge is too short. Min. 40 chars.");if(!r.salt||r.salt.length<10)throw new Error("Salt is too short. Min. 10 chars.")}async function br(r){let u=null,v=null;if("Worker"in window){try{u=ll(r,r.maxNumber||r.maxnumber||Ge()),p(We,u.controller,true),v=await u.promise}catch(_){x(_)}finally{p(We,null)}if(v===null||v?.number!==void 0||"obfuscated"in r)return{data:r,solution:v}}if("obfuscated"in r){const _=await ea(r.obfuscated,r.key,r.maxNumber||r.maxnumber);return{data:r,solution:await _.promise}}u=Xo(r.challenge,r.salt,r.algorithm,r.maxNumber||r.maxnumber||Ge()),p(We,u.controller,true);try{v=await u.promise}catch(_){x(_)}finally{p(We,null)}return{data:r,solution:v}}function ll(r,u=typeof de()=="number"?de():r.maxNumber||r.maxnumber||Ge(),v=Math.ceil(ut())){const _=new AbortController,g=[];v=Math.min(16,u,Math.max(1,v));for(let H=0;H<v;H++)g.push(altchaCreateWorker(It()));const A=Math.ceil(u/v);return{promise:(async()=>{const H=await Promise.all(g.map((j,ie)=>{const le=ie*A;return _.signal.addEventListener("abort",()=>{j.postMessage({type:"abort"})}),new Promise(Qe=>{j.addEventListener("message",dt=>{if(dt.data)for(const et of g)et!==j&&et.postMessage({type:"abort"});Qe(dt.data)}),j.postMessage({payload:r,max:le+A,start:le,type:"work"})})}));for(const j of g)j.terminate();return H.find(j=>!!j)||null})(),controller:_}}async function kt(){if(!De()){Ce(y.ERROR);return}const r=Oe.find(u=>u.constructor.pluginName==="obfuscation");if(!r||!("clarify"in r)){Ce(y.ERROR),x("Plugin `obfuscation` not found. Import `altcha/plugins/obfuscation` to load it.");return}if("clarify"in r&&typeof r.clarify=="function")return r.clarify()}function pr(r){r.obfuscated!==void 0&&De(r.obfuscated),r.auto!==void 0&&(o(r.auto),o()==="onload"&&(De()?kt():Se())),r.blockspam!==void 0&&s(!!r.blockspam),r.customfetch!==void 0&&m(r.customfetch),r.floatinganchor!==void 0&&ee(r.floatinganchor),r.delay!==void 0&&b(r.delay),r.floatingoffset!==void 0&&ke(r.floatingoffset),r.floating!==void 0&&gr(r.floating),r.expire!==void 0&&(An(r.expire),q(r.expire)),r.challenge&&(c(typeof r.challenge=="string"?r.challenge:JSON.stringify(r.challenge)),mr(l(Gt))),r.challengeurl!==void 0&&f(r.challengeurl),r.debug!==void 0&&h(!!r.debug),r.hidefooter!==void 0&&U(!!r.hidefooter),r.hidelogo!==void 0&&se(!!r.hidelogo),r.language!==void 0&&st(er(a(),[r.language])),r.maxnumber!==void 0&&Ge(+r.maxnumber),r.mockerror!==void 0&&Ct(!!r.mockerror),r.name!==void 0&&Ye(r.name),r.overlaycontent!==void 0&&At(r.overlaycontent),r.overlay!==void 0&&_r(r.overlay),r.refetchonexpire!==void 0&&V(!r.refetchonexpire),r.disablerefetchonexpire!==void 0&&V(!r.disablerefetchonexpire),r.sentinel!==void 0&&typeof r.sentinel=="object"&&Ze(r.sentinel),r.spamfilter!==void 0&&ye(typeof r.spamfilter=="object"?r.spamfilter:!!r.spamfilter),r.strings&&st(typeof r.strings=="string"?r.strings:JSON.stringify(r.strings)),r.test!==void 0&&de(typeof r.test=="number"?r.test:!!r.test),r.verifyurl!==void 0&&te(r.verifyurl),r.workers!==void 0&&ut(+r.workers),r.workerurl!==void 0&&It(r.workerurl)}function yr(){return{auto:o(),blockspam:s(),challengeurl:f(),debug:h(),delay:b(),disableautofocus:w(),disablerefetchonexpire:V(),expire:q(),floating:R(),floatinganchor:ee(),floatingoffset:ke(),hidefooter:U(),hidelogo:se(),name:Ye(),maxnumber:Ge(),mockerror:Ct(),obfuscated:De(),overlay:ge(),refetchonexpire:!V(),spamfilter:ye(),strings:l(L),test:de(),verifyurl:te(),workers:ut(),workerurl:It()}}function wr(){return l(ft)}function ol(r){return Oe.find(u=>u.constructor.pluginName===r)}function Er(){return l(I)}function St(){l(M).style.display="none",ge()&&l(ue)&&(l(ue).style.display="none")}function Tt(r=20){if(l(M))if(l(ft)||p(ft,(ee()?document.querySelector(ee()):l(T)?.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])'))||l(T),true),l(ft)){const u=parseInt(ke(),10)||12,v=l(ft).getBoundingClientRect(),_=l(M).getBoundingClientRect(),g=document.documentElement.clientHeight,A=document.documentElement.clientWidth,N=R()==="auto"?v.bottom+_.height+u+r>g:R()==="top",H=Math.max(r,Math.min(A-r-_.width,v.left+v.width/2-_.width/2));if(N?l(M).style.top=`${v.top-(_.height+u)}px`:l(M).style.top=`${v.bottom+u}px`,l(M).style.left=`${H}px`,l(M).setAttribute("data-floating",N?"top":"bottom"),l(Rt)){const j=l(Rt).getBoundingClientRect();l(Rt).style.left=v.left-H+v.width/2-j.width/2+"px"}}else x("unable to find floating anchor element")}function Xe(r=y.UNVERIFIED,u=null){l(We)&&(l(We).abort(),p(We,null)),p(xt,false),p(Ee,null),p(Y,null),p(En,false),p(G,null),Ce(r,u)}function Cr(r){p(ft,r,true)}function Ce(r,u=null){p(I,r,true),p(Je,u,true),Le("statechange",{payload:l(Ee),state:l(I)})}function Wt(){l(M).style.display="block",R()&&Tt(),ge()&&l(ue)&&(l(ue).style.display="flex")}async function Se(){return Xe(y.VERIFYING),await new Promise(r=>setTimeout(r,b()||0)),Yi().then(r=>(mr(r),x("challenge",r),br(r))).then(({data:r,solution:u})=>{if(x("solution",u),!u||r&&"challenge"in r&&!("clearText"in u)){if(u?.number!==void 0&&"challenge"in r)if(te()&&"codeChallenge"in r)["INPUT","BUTTON","SELECT","TEXTAREA"].includes(document.activeElement?.tagName||"")&&w()===false&&document.activeElement.blur(),p(Y,{challenge:r,solution:u},true);else{if(te()&&Ze()!==void 0)return vr(Zt(r,u));if(te())return il(Zt(r,u));p(Ee,Zt(r,u),true),x("payload",l(Ee))}else if(l(I)!==y.EXPIRED)throw x("Unable to find a solution. Ensure that the 'maxnumber' attribute is greater than the randomly generated number."),new Error("Unexpected result returned.")}}).then(()=>{l(Y)?(Ce(y.CODE),kn().then(()=>{Le("code",{codeChallenge:l(Y)})})):l(Ee)&&(Ce(y.VERIFIED),x("verified"),kn().then(()=>{Le("verified",{payload:l(Ee)}),ge()&&St()}))}).catch(r=>{x(r),Ce(y.ERROR,r.message)})}var Ar=pa(),Ir=Dt(Ar);No(Ir,t,"default",{});var ct=K(Ir,2),In=J(ct),Jt=J(In);let xr;var Rr=J(Jt);{var al=r=>{Sn(r)};X(Rr,r=>{l(I)===y.VERIFYING&&r(al)})}var ze=K(Rr,2);Ur(ze),ze.__change=[ia,I,ye,T,xt,De,kt,Se],Qt(ze,r=>p(wn,r),()=>l(wn)),W(Jt);var Kt=K(Jt,2),sl=J(Kt);{var ul=r=>{var u=zt(),v=Dt(u);tt(v,()=>l(L).verified),B(r,u)},fl=(r,u)=>{{var v=g=>{var A=zt(),N=Dt(A);tt(N,()=>l(L).verifying),B(g,A)},_=(g,A)=>{{var N=j=>{var ie=zt(),le=Dt(ie);tt(le,()=>l(L).verificationRequired),B(j,ie)},H=j=>{var ie=zt(),le=Dt(ie);tt(le,()=>l(L).label),B(j,ie)};X(g,j=>{l(I)===y.CODE?j(N):j(H,false)},A)}};X(r,g=>{l(I)===y.VERIFYING?g(v):g(_,false)},u)}};X(sl,r=>{l(I)===y.VERIFIED?r(ul):r(fl,false)})}W(Kt);var $r=K(Kt,2);{var cl=r=>{var u=oa();Ur(u),Ae(()=>{$(u,"name",Ye()),Fo(u,l(Ee))}),B(r,u)};X($r,r=>{l(I)===y.VERIFIED&&r(cl)})}var kr=K($r,2);{var dl=r=>{var u=aa(),v=J(u);$(v,"href",ji),W(u),Ae(()=>$(v,"aria-label",l(L).ariaLinkLabel)),B(r,u)};X(kr,r=>{(se()!==true||l(yn))&&r(dl)})}var vl=K(kr,2);{var hl=r=>{var u=va(),v=K(J(u),2),_=J(v),g=K(_,2);Io(g,!w()),g.__keydown=[na,ur];var A=K(g,2),N=J(A),H=J(N);{var j=_e=>{var Z=ca();Z.__click=ur;var Xt=J(Z);{var Nt=vt=>{Sn(vt,()=>20)},El=(vt,Cl)=>{{var Al=ht=>{var xn=sa();B(ht,xn)},Il=(ht,xn)=>{{var xl=gt=>{var Rn=ua();B(gt,Rn)},Rl=gt=>{var Rn=fa();B(gt,Rn)};X(ht,gt=>{l(G)===Q.PLAYING?gt(xl):gt(Rl,false)},xn)}};X(vt,ht=>{l(G)===Q.ERROR?ht(Al):ht(Il,false)},Cl)}};X(Xt,vt=>{l(G)===Q.LOADING?vt(Nt):vt(El,false)})}W(Z),Ae(()=>{$(Z,"title",l(L).getAudioChallenge),Z.disabled=l(G)===Q.LOADING||l(G)===Q.ERROR||l(Ke),$(Z,"aria-label",l(G)===Q.LOADING?l(L).loading:l(L).getAudioChallenge)}),B(_e,Z)};X(H,_e=>{l(Y).challenge.codeChallenge.audio&&_e(j)})}var ie=K(H,2);ie.__click=[ra,Se],W(N);var le=K(N,2),Qe=J(le);{var dt=_e=>{Sn(_e,()=>16)};X(Qe,_e=>{l(Ke)&&_e(dt)})}var et=K(Qe);W(le),W(A);var yl=K(A,2);{var wl=_e=>{var Z=da(),Xt=J(Z);W(Z),Qt(Z,Nt=>p(Pe,Nt),()=>l(Pe)),Ae(Nt=>$(Xt,"src",Nt),[()=>nr(l(Y).challenge.codeChallenge.audio,{language:Ht()})]),Fe("loadstart",Z,zi),Fe("canplay",Z,Xi),Fe("pause",Z,el),Fe("playing",Z,Qi),Fe("ended",Z,Ji),Fe("error",Xt,Ki),B(_e,Z)};X(yl,_e=>{l(Y).challenge.codeChallenge.audio&&l(En)&&_e(wl)})}W(v),W(u),Ae(()=>{$(u,"aria-label",l(L).verificationRequired),$(_,"src",l(Y).challenge.codeChallenge.image),$(g,"minlength",l(Y).challenge.codeChallenge.length||1),$(g,"maxlength",l(Y).challenge.codeChallenge.length),$(g,"placeholder",l(L).enterCode),$(g,"aria-label",l(G)===Q.LOADING?l(L).loading:l(G)===Q.PLAYING?"":l(L).enterCodeAria),$(g,"aria-live",l(G)?"assertive":"polite"),$(g,"aria-busy",l(G)===Q.LOADING),g.disabled=l(Ke),$(ie,"aria-label",l(L).reload),$(ie,"title",l(L).reload),ie.disabled=l(Ke),le.disabled=l(Ke),$(le,"aria-label",l(L).verify),ko(et,` ${l(L).verify??""}`)}),Fe("submit",v,tl,true),B(r,u)};X(vl,r=>{l(Y)?.challenge.codeChallenge&&r(hl)})}W(In);var Sr=K(In,2);{var gl=r=>{var u=_a(),v=K(J(u),2);{var _=A=>{var N=ha(),H=J(N);tt(H,()=>l(L).expired),W(N),Ae(()=>$(N,"title",l(Je))),B(A,N)},g=A=>{var N=ga(),H=J(N);tt(H,()=>l(L).error),W(N),Ae(()=>$(N,"title",l(Je))),B(A,N)};X(v,A=>{l(I)===y.EXPIRED?A(_):A(g,false)})}W(u),B(r,u)};X(Sr,r=>{(l(Je)||l(I)===y.EXPIRED)&&r(gl)})}var Tr=K(Sr,2);{var _l=r=>{var u=ma(),v=J(u),_=J(v);tt(_,()=>l(L).footer),W(v),W(u),B(r,u)};X(Tr,r=>{l(L).footer&&(U()!==true||l(yn))&&r(_l)})}var ml=K(Tr,2);{var bl=r=>{var u=ba();Qt(u,v=>p(Rt,v),()=>l(Rt)),B(r,u)};X(ml,r=>{R()&&r(bl)})}W(ct),Qt(ct,r=>p(M,r),()=>l(M)),Ae(r=>{$(ct,"data-state",l(I)),$(ct,"data-floating",R()),$(ct,"data-overlay",ge()),xr=Lo(Jt,1,"altcha-checkbox",null,xr,r),$(ze,"id",l(zn)),ze.required=o()!=="onsubmit"&&(!R()||o()!=="off"),$(Kt,"for",l(zn))},[()=>({"altcha-checkbox-verifying":l(I)===y.VERIFYING})]),Fe("invalid",ze,sr),Mo(ze,()=>l(xt),r=>p(xt,r)),B(e,Ar);var pl=Ri({clarify:kt,configure:pr,getConfiguration:yr,getFloatingAnchor:wr,getPlugin:ol,getState:Er,hide:St,repositionFloating:Tt,reset:Xe,setFloatingAnchor:Cr,setState:Ce,show:Wt,verify:Se,get auto(){return o()},set auto(r=void 0){o(r),E()},get blockspam(){return s()},set blockspam(r=void 0){s(r),E()},get challengeurl(){return f()},set challengeurl(r=void 0){f(r),E()},get challengejson(){return c()},set challengejson(r=void 0){c(r),E()},get credentials(){return d()},set credentials(r=void 0){d(r),E()},get customfetch(){return m()},set customfetch(r=void 0){m(r),E()},get debug(){return h()},set debug(r=false){h(r),E()},get delay(){return b()},set delay(r=0){b(r),E()},get disableautofocus(){return w()},set disableautofocus(r=false){w(r),E()},get refetchonexpire(){return F()},set refetchonexpire(r=true){F(r),E()},get disablerefetchonexpire(){return V()},set disablerefetchonexpire(r=!F){V(r),E()},get expire(){return q()},set expire(r=void 0){q(r),E()},get floating(){return R()},set floating(r=void 0){R(r),E()},get floatinganchor(){return ee()},set floatinganchor(r=void 0){ee(r),E()},get floatingoffset(){return ke()},set floatingoffset(r=void 0){ke(r),E()},get floatingpersist(){return z()},set floatingpersist(r=false){z(r),E()},get hidefooter(){return U()},set hidefooter(r=false){U(r),E()},get hidelogo(){return se()},set hidelogo(r=false){se(r),E()},get id(){return He()},set id(r=void 0){He(r),E()},get language(){return Ht()},set language(r=void 0){Ht(r),E()},get name(){return Ye()},set name(r="altcha"){Ye(r),E()},get maxnumber(){return Ge()},set maxnumber(r=1e6){Ge(r),E()},get mockerror(){return Ct()},set mockerror(r=false){Ct(r),E()},get obfuscated(){return De()},set obfuscated(r=void 0){De(r),E()},get overlay(){return ge()},set overlay(r=void 0){ge(r),E()},get overlaycontent(){return At()},set overlaycontent(r=void 0){At(r),E()},get plugins(){return Yt()},set plugins(r=void 0){Yt(r),E()},get sentinel(){return Ze()},set sentinel(r=void 0){Ze(r),E()},get spamfilter(){return ye()},set spamfilter(r=false){ye(r),E()},get strings(){return st()},set strings(r=void 0){st(r),E()},get test(){return de()},set test(r=false){de(r),E()},get verifyurl(){return te()},set verifyurl(r=void 0){te(r),E()},get workers(){return ut()},set workers(r=Math.min(16,navigator.hardwareConcurrency||8)){ut(r),E()},get workerurl(){return It()},set workerurl(r=void 0){It(r),E()}});return i(),pl}$o(["change","keydown","click"]);customElements.define("altcha-widget",Wo(ya,{blockspam:{type:"Boolean"},debug:{type:"Boolean"},delay:{type:"Number"},disableautofocus:{type:"Boolean"},disablerefetchonexpire:{type:"Boolean"},expire:{type:"Number"},floatingoffset:{type:"Number"},hidefooter:{type:"Boolean"},hidelogo:{type:"Boolean"},maxnumber:{type:"Number"},mockerror:{type:"Boolean"},refetchonexpire:{type:"Boolean"},test:{type:"Boolean"},workers:{type:"Number"},auto:{},challengeurl:{},challengejson:{},credentials:{},customfetch:{},floating:{},floatinganchor:{},floatingpersist:{},id:{},language:{},name:{},obfuscated:{},overlay:{},overlaycontent:{},plugins:{},sentinel:{},spamfilter:{},strings:{},verifyurl:{},workerurl:{}},["default"],["clarify","configure","getConfiguration","getFloatingAnchor","getPlugin","getState","hide","repositionFloating","reset","setFloatingAnchor","setState","show","verify"],false));globalThis.altchaCreateWorker=e=>new Worker(new URL(e||"./worker.js",import.meta.url));export{ya as Altcha};
4
+ //# sourceMappingURL=altcha-NPBMCOEY.js.map